diff --git a/app/build.gradle b/app/build.gradle index 980d598fa9..5338a7f620 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId 'com.discord' minSdkVersion 21 targetSdkVersion 30 - versionCode 105013 - versionName "105.13 - Stable" + versionCode 106010 + versionName "106.10 - Stable" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 416071521a..c3a35d3cf0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - + diff --git a/app/src/main/java/android/support/v4/media/MediaBrowserCompat.java b/app/src/main/java/android/support/v4/media/MediaBrowserCompat.java index 41748cd616..50af5ba63a 100644 --- a/app/src/main/java/android/support/v4/media/MediaBrowserCompat.java +++ b/app/src/main/java/android/support/v4/media/MediaBrowserCompat.java @@ -36,7 +36,9 @@ import java.util.Objects; import x.a.b.b.a.b; public final class MediaBrowserCompat { public static final boolean a = Log.isLoggable("MediaBrowserCompat", 3); - public final d b; + + /* renamed from: b reason: collision with root package name */ + public final d f14b; public static class CustomActionResultReceiver extends ResultReceiver { @Override // android.support.v4.os.ResultReceiver @@ -168,24 +170,26 @@ public final class MediaBrowserCompat { public static class b extends Handler { public final WeakReference a; - public WeakReference b; + + /* renamed from: b reason: collision with root package name */ + public WeakReference f15b; public b(h hVar) { this.a = new WeakReference<>(hVar); } public void a(Messenger messenger) { - this.b = new WeakReference<>(messenger); + this.f15b = new WeakReference<>(messenger); } @Override // android.os.Handler public void handleMessage(@NonNull Message message) { - WeakReference weakReference = this.b; + WeakReference weakReference = this.f15b; if (weakReference != null && weakReference.get() != null && this.a.get() != null) { Bundle data = message.getData(); MediaSessionCompat.a(data); h hVar = this.a.get(); - Messenger messenger = this.b.get(); + Messenger messenger = this.f15b.get(); try { int i = message.what; if (i == 1) { @@ -229,12 +233,12 @@ public final class MediaBrowserCompat { e eVar = (e) bVar; Objects.requireNonNull(eVar); try { - Bundle extras = eVar.b.getExtras(); + Bundle extras = eVar.f16b.getExtras(); if (extras != null) { extras.getInt(MediaBrowserProtocol.EXTRA_SERVICE_VERSION, 0); IBinder binder = BundleCompat.getBinder(extras, MediaBrowserProtocol.EXTRA_MESSENGER_BINDER); if (binder != null) { - eVar.f = new i(binder, eVar.f13c); + eVar.f = new i(binder, eVar.c); Messenger messenger = new Messenger(eVar.d); eVar.g = messenger; eVar.d.a(messenger); @@ -246,7 +250,7 @@ public final class MediaBrowserCompat { Bundle bundle = new Bundle(); bundle.putString(MediaBrowserProtocol.DATA_PACKAGE_NAME, context.getPackageName()); bundle.putInt(MediaBrowserProtocol.DATA_CALLING_PID, Process.myPid()); - bundle.putBundle(MediaBrowserProtocol.DATA_ROOT_HINTS, iVar.b); + bundle.putBundle(MediaBrowserProtocol.DATA_ROOT_HINTS, iVar.f17b); iVar.a(6, bundle, messenger2); } catch (RemoteException unused) { Log.i("MediaBrowserCompat", "Remote error registering client messenger."); @@ -254,7 +258,7 @@ public final class MediaBrowserCompat { } x.a.b.b.a.b e = b.a.e(BundleCompat.getBinder(extras, MediaBrowserProtocol.EXTRA_SESSION_BINDER)); if (e != null) { - eVar.h = MediaSessionCompat.Token.a(eVar.b.getSessionToken(), e); + eVar.h = MediaSessionCompat.Token.a(eVar.f16b.getSessionToken(), e); } } } catch (IllegalStateException e2) { @@ -313,10 +317,10 @@ public final class MediaBrowserCompat { @RequiresApi(21) public static class e implements d, h, c.b { public final Context a; - public final MediaBrowser b; - /* renamed from: c reason: collision with root package name */ - public final Bundle f13c; + /* renamed from: b reason: collision with root package name */ + public final MediaBrowser f16b; + public final Bundle c; public final b d = new b(this); public final ArrayMap e = new ArrayMap<>(); public i f; @@ -326,11 +330,11 @@ public final class MediaBrowserCompat { public e(Context context, ComponentName componentName, c cVar, Bundle bundle) { this.a = context; Bundle bundle2 = bundle != null ? new Bundle(bundle) : new Bundle(); - this.f13c = bundle2; + this.c = bundle2; bundle2.putInt(MediaBrowserProtocol.EXTRA_CLIENT_VERSION, 1); bundle2.putInt(MediaBrowserProtocol.EXTRA_CALLING_PID, Process.myPid()); cVar.setInternalConnectionCallback(this); - this.b = new MediaBrowser(context, componentName, cVar.mConnectionCallbackFwk, bundle2); + this.f16b = new MediaBrowser(context, componentName, cVar.mConnectionCallbackFwk, bundle2); } @Override // android.support.v4.media.MediaBrowserCompat.h @@ -378,11 +382,13 @@ public final class MediaBrowserCompat { public static class i { public Messenger a; - public Bundle b; + + /* renamed from: b reason: collision with root package name */ + public Bundle f17b; public i(IBinder iBinder, Bundle bundle) { this.a = new Messenger(iBinder); - this.b = bundle; + this.f17b = bundle; } public final void a(int i, Bundle bundle, Messenger messenger) throws RemoteException { @@ -397,11 +403,13 @@ public final class MediaBrowserCompat { public static class j { public final List a = new ArrayList(); - public final List b = new ArrayList(); + + /* renamed from: b reason: collision with root package name */ + public final List f18b = new ArrayList(); public k a(Bundle bundle) { - for (int i = 0; i < this.b.size(); i++) { - if (MediaBrowserCompatUtils.areSameOptions(this.b.get(i), bundle)) { + for (int i = 0; i < this.f18b.size(); i++) { + if (MediaBrowserCompatUtils.areSameOptions(this.f18b.get(i), bundle)) { return this.a.get(i); } } @@ -464,11 +472,11 @@ public final class MediaBrowserCompat { public MediaBrowserCompat(Context context, ComponentName componentName, c cVar, Bundle bundle) { int i2 = Build.VERSION.SDK_INT; if (i2 >= 26) { - this.b = new g(context, componentName, cVar, null); + this.f14b = new g(context, componentName, cVar, null); } else if (i2 >= 23) { - this.b = new f(context, componentName, cVar, null); + this.f14b = new f(context, componentName, cVar, null); } else { - this.b = new e(context, componentName, cVar, null); + this.f14b = new e(context, componentName, cVar, null); } } } diff --git a/app/src/main/java/android/support/v4/media/RatingCompat.java b/app/src/main/java/android/support/v4/media/RatingCompat.java index 2d87f9da69..95be16e58e 100644 --- a/app/src/main/java/android/support/v4/media/RatingCompat.java +++ b/app/src/main/java/android/support/v4/media/RatingCompat.java @@ -35,7 +35,7 @@ public final class RatingCompat implements Parcelable { @Override // java.lang.Object public String toString() { - StringBuilder R = c.d.b.a.a.R("Rating:style="); + StringBuilder R = b.d.b.a.a.R("Rating:style="); R.append(this.j); R.append(" rating="); float f = this.k; diff --git a/app/src/main/java/android/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21.java b/app/src/main/java/android/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21.java index cf995731a2..0901e54093 100644 --- a/app/src/main/java/android/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21.java +++ b/app/src/main/java/android/support/v4/media/session/MediaControllerCompat$MediaControllerImplApi21.java @@ -23,11 +23,11 @@ import x.a.b.b.a.c; @RequiresApi(21) public class MediaControllerCompat$MediaControllerImplApi21 { public final MediaController a; - public final Object b = new Object(); - @GuardedBy("mLock") - /* renamed from: c reason: collision with root package name */ - public final List f14c = new ArrayList(); + /* renamed from: b reason: collision with root package name */ + public final Object f20b = new Object(); + @GuardedBy("mLock") + public final List c = new ArrayList(); public HashMap d = new HashMap<>(); public final MediaSessionCompat.Token e; @@ -43,7 +43,7 @@ public class MediaControllerCompat$MediaControllerImplApi21 { public void onReceiveResult(int i, Bundle bundle) { MediaControllerCompat$MediaControllerImplApi21 mediaControllerCompat$MediaControllerImplApi21 = this.j.get(); if (mediaControllerCompat$MediaControllerImplApi21 != null && bundle != null) { - synchronized (mediaControllerCompat$MediaControllerImplApi21.b) { + synchronized (mediaControllerCompat$MediaControllerImplApi21.f20b) { MediaSessionCompat.Token token = mediaControllerCompat$MediaControllerImplApi21.e; b e = b.a.e(BundleCompat.getBinder(bundle, "android.support.v4.media.session.EXTRA_BINDER")); synchronized (token.j) { @@ -108,7 +108,7 @@ public class MediaControllerCompat$MediaControllerImplApi21 { @GuardedBy("mLock") public void a() { if (this.e.b() != null) { - for (c cVar : this.f14c) { + for (c cVar : this.c) { a aVar = new a(cVar); this.d.put(cVar, aVar); cVar.a = aVar; @@ -118,7 +118,7 @@ public class MediaControllerCompat$MediaControllerImplApi21 { Log.e("MediaControllerCompat", "Dead object in registerCallback.", e); } } - this.f14c.clear(); + this.c.clear(); } } } diff --git a/app/src/main/java/android/support/v4/media/session/MediaSessionCompat.java b/app/src/main/java/android/support/v4/media/session/MediaSessionCompat.java index c860f5aaa2..106d09220f 100644 --- a/app/src/main/java/android/support/v4/media/session/MediaSessionCompat.java +++ b/app/src/main/java/android/support/v4/media/session/MediaSessionCompat.java @@ -83,10 +83,10 @@ public class MediaSessionCompat { @Override // java.lang.Object public String toString() { - StringBuilder R = c.d.b.a.a.R("MediaSession.QueueItem {Description="); + StringBuilder R = b.d.b.a.a.R("MediaSession.QueueItem {Description="); R.append(this.j); R.append(", Id="); - return c.d.b.a.a.B(R, this.k, " }"); + return b.d.b.a.a.B(R, this.k, " }"); } @Override // android.os.Parcelable diff --git a/app/src/main/java/android/support/v4/media/session/PlaybackStateCompat.java b/app/src/main/java/android/support/v4/media/session/PlaybackStateCompat.java index 07e334765b..dbe4543f38 100644 --- a/app/src/main/java/android/support/v4/media/session/PlaybackStateCompat.java +++ b/app/src/main/java/android/support/v4/media/session/PlaybackStateCompat.java @@ -24,7 +24,7 @@ public final class PlaybackStateCompat implements Parcelable { public List r; /* renamed from: s reason: collision with root package name */ - public final long f15s; + public final long f21s; public final Bundle t; public static final class CustomAction implements Parcelable { @@ -69,7 +69,7 @@ public final class PlaybackStateCompat implements Parcelable { @Override // java.lang.Object public String toString() { - StringBuilder R = c.d.b.a.a.R("Action:mName='"); + StringBuilder R = b.d.b.a.a.R("Action:mName='"); R.append((Object) this.k); R.append(", mIcon="); R.append(this.l); @@ -247,7 +247,7 @@ public final class PlaybackStateCompat implements Parcelable { this.p = charSequence; this.q = j4; this.r = new ArrayList(list); - this.f15s = j5; + this.f21s = j5; this.t = bundle; } @@ -260,7 +260,7 @@ public final class PlaybackStateCompat implements Parcelable { this.n = parcel.readLong(); this.p = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); this.r = parcel.createTypedArrayList(CustomAction.CREATOR); - this.f15s = parcel.readLong(); + this.f21s = parcel.readLong(); this.t = parcel.readBundle(MediaSessionCompat.class.getClassLoader()); this.o = parcel.readInt(); } @@ -292,7 +292,7 @@ public final class PlaybackStateCompat implements Parcelable { sb.append(", custom actions="); sb.append(this.r); sb.append(", active item id="); - return c.d.b.a.a.B(sb, this.f15s, "}"); + return b.d.b.a.a.B(sb, this.f21s, "}"); } @Override // android.os.Parcelable @@ -305,7 +305,7 @@ public final class PlaybackStateCompat implements Parcelable { parcel.writeLong(this.n); TextUtils.writeToParcel(this.p, parcel, i); parcel.writeTypedList(this.r); - parcel.writeLong(this.f15s); + parcel.writeLong(this.f21s); parcel.writeBundle(this.t); parcel.writeInt(this.o); } diff --git a/app/src/main/java/android/support/v4/os/ResultReceiver.java b/app/src/main/java/android/support/v4/os/ResultReceiver.java index 48181c6035..6468594567 100644 --- a/app/src/main/java/android/support/v4/os/ResultReceiver.java +++ b/app/src/main/java/android/support/v4/os/ResultReceiver.java @@ -30,7 +30,7 @@ public class ResultReceiver implements Parcelable { } } - public class b extends a.AbstractBinderC0363a { + public class b extends a.AbstractBinderC0361a { public b() { } @@ -44,12 +44,12 @@ public class ResultReceiver implements Parcelable { public ResultReceiver(Parcel parcel) { x.a.b.c.a aVar; IBinder readStrongBinder = parcel.readStrongBinder(); - int i = a.AbstractBinderC0363a.a; + int i = a.AbstractBinderC0361a.a; if (readStrongBinder == null) { aVar = null; } else { IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("android.support.v4.os.IResultReceiver"); - aVar = (queryLocalInterface == null || !(queryLocalInterface instanceof x.a.b.c.a)) ? new a.AbstractBinderC0363a.C0364a(readStrongBinder) : (x.a.b.c.a) queryLocalInterface; + aVar = (queryLocalInterface == null || !(queryLocalInterface instanceof x.a.b.c.a)) ? new a.AbstractBinderC0361a.C0362a(readStrongBinder) : (x.a.b.c.a) queryLocalInterface; } this.j = aVar; } diff --git a/app/src/main/java/androidx/activity/ComponentActivity.java b/app/src/main/java/androidx/activity/ComponentActivity.java index 84fd3e5279..b4a9de0a55 100644 --- a/app/src/main/java/androidx/activity/ComponentActivity.java +++ b/app/src/main/java/androidx/activity/ComponentActivity.java @@ -49,7 +49,7 @@ import androidx.savedstate.SavedStateRegistryController; import androidx.savedstate.SavedStateRegistryOwner; import androidx.savedstate.ViewTreeSavedStateRegistryOwner; import androidx.tracing.Trace; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.concurrent.atomic.AtomicInteger; public class ComponentActivity extends androidx.core.app.ComponentActivity implements ContextAware, LifecycleOwner, ViewModelStoreOwner, HasDefaultViewModelProviderFactory, SavedStateRegistryOwner, OnBackPressedDispatcherOwner, ActivityResultRegistryOwner, ActivityResultCaller { diff --git a/app/src/main/java/androidx/activity/result/ActivityResult.java b/app/src/main/java/androidx/activity/result/ActivityResult.java index 004beec863..3a4cee1fc5 100644 --- a/app/src/main/java/androidx/activity/result/ActivityResult.java +++ b/app/src/main/java/androidx/activity/result/ActivityResult.java @@ -6,7 +6,7 @@ import android.os.Parcel; import android.os.Parcelable; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; @SuppressLint({"BanParcelableUsage"}) public final class ActivityResult implements Parcelable { @NonNull diff --git a/app/src/main/java/androidx/activity/result/ActivityResultRegistry.java b/app/src/main/java/androidx/activity/result/ActivityResultRegistry.java index 042d68715e..6918d9cca6 100644 --- a/app/src/main/java/androidx/activity/result/ActivityResultRegistry.java +++ b/app/src/main/java/androidx/activity/result/ActivityResultRegistry.java @@ -12,7 +12,7 @@ import androidx.core.app.ActivityOptionsCompat; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleEventObserver; import androidx.lifecycle.LifecycleOwner; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; diff --git a/app/src/main/java/androidx/appcompat/app/AlertController.java b/app/src/main/java/androidx/appcompat/app/AlertController.java index 117bf2eedd..82a7770ca0 100644 --- a/app/src/main/java/androidx/appcompat/app/AlertController.java +++ b/app/src/main/java/androidx/appcompat/app/AlertController.java @@ -805,8 +805,8 @@ public class AlertController { i4 = 2; } int i5 = z3 ? 1 : 0; + char c = z3 ? 1 : 0; char c2 = z3 ? 1 : 0; - char c3 = z3 ? 1 : 0; setScrollIndicators(resolvePanel2, view2, i5 | i4, 3); } } diff --git a/app/src/main/java/androidx/appcompat/app/AppCompatDelegateImpl.java b/app/src/main/java/androidx/appcompat/app/AppCompatDelegateImpl.java index ba33f9664a..b624a50637 100644 --- a/app/src/main/java/androidx/appcompat/app/AppCompatDelegateImpl.java +++ b/app/src/main/java/androidx/appcompat/app/AppCompatDelegateImpl.java @@ -95,7 +95,7 @@ import androidx.core.view.WindowInsetsCompat; import androidx.core.widget.PopupWindowCompat; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleOwner; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.Thread; import java.util.List; import org.webrtc.MediaStreamTrack; @@ -754,10 +754,10 @@ public class AppCompatDelegateImpl extends AppCompatDelegate implements MenuBuil public int windowAnimations; /* renamed from: x reason: collision with root package name */ - public int f16x; + public int f23x; /* renamed from: y reason: collision with root package name */ - public int f17y; + public int f24y; @SuppressLint({"BanParcelableUsage"}) public static class SavedState implements Parcelable { @@ -1555,7 +1555,7 @@ public class AppCompatDelegateImpl extends AppCompatDelegate implements MenuBuil if (!(view == null || (layoutParams = view.getLayoutParams()) == null || layoutParams.width != -1)) { i = -1; panelFeatureState.isHandled = false; - WindowManager.LayoutParams layoutParams3 = new WindowManager.LayoutParams(i, -2, panelFeatureState.f16x, panelFeatureState.f17y, PointerIconCompat.TYPE_HAND, 8519680, -3); + WindowManager.LayoutParams layoutParams3 = new WindowManager.LayoutParams(i, -2, panelFeatureState.f23x, panelFeatureState.f24y, PointerIconCompat.TYPE_HAND, 8519680, -3); layoutParams3.gravity = panelFeatureState.gravity; layoutParams3.windowAnimations = panelFeatureState.windowAnimations; windowManager.addView(panelFeatureState.decorView, layoutParams3); @@ -1565,7 +1565,7 @@ public class AppCompatDelegateImpl extends AppCompatDelegate implements MenuBuil } i = -2; panelFeatureState.isHandled = false; - WindowManager.LayoutParams layoutParams3 = new WindowManager.LayoutParams(i, -2, panelFeatureState.f16x, panelFeatureState.f17y, PointerIconCompat.TYPE_HAND, 8519680, -3); + WindowManager.LayoutParams layoutParams3 = new WindowManager.LayoutParams(i, -2, panelFeatureState.f23x, panelFeatureState.f24y, PointerIconCompat.TYPE_HAND, 8519680, -3); layoutParams3.gravity = panelFeatureState.gravity; layoutParams3.windowAnimations = panelFeatureState.windowAnimations; windowManager.addView(panelFeatureState.decorView, layoutParams3); diff --git a/app/src/main/java/androidx/appcompat/app/AppCompatViewInflater.java b/app/src/main/java/androidx/appcompat/app/AppCompatViewInflater.java index 830a7e8afb..decbc48eb4 100644 --- a/app/src/main/java/androidx/appcompat/app/AppCompatViewInflater.java +++ b/app/src/main/java/androidx/appcompat/app/AppCompatViewInflater.java @@ -28,7 +28,7 @@ import androidx.appcompat.widget.AppCompatToggleButton; import androidx.appcompat.widget.TintContextWrapper; import androidx.collection.SimpleArrayMap; import androidx.core.view.ViewCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -135,8 +135,8 @@ public class AppCompatViewInflater { if (str.equals("view")) { str = attributeSet.getAttributeValue(null, "class"); } - char c2 = 1; - char c3 = 0; + char c = 1; + char c2 = 0; try { Object[] objArr = this.mConstructorArgs; objArr[0] = context; @@ -169,8 +169,8 @@ public class AppCompatViewInflater { return null; } finally { Object[] objArr4 = this.mConstructorArgs; - objArr4[c3] = obj; objArr4[c2] = obj; + objArr4[c] = obj; } } @@ -275,94 +275,94 @@ public class AppCompatViewInflater { context2 = TintContextWrapper.wrap(context2); } str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1946472170: if (str.equals("RatingBar")) { - c2 = 0; + c = 0; break; } break; case -1455429095: if (str.equals("CheckedTextView")) { - c2 = 1; + c = 1; break; } break; case -1346021293: if (str.equals("MultiAutoCompleteTextView")) { - c2 = 2; + c = 2; break; } break; case -938935918: if (str.equals("TextView")) { - c2 = 3; + c = 3; break; } break; case -937446323: if (str.equals("ImageButton")) { - c2 = 4; + c = 4; break; } break; case -658531749: if (str.equals("SeekBar")) { - c2 = 5; + c = 5; break; } break; case -339785223: if (str.equals("Spinner")) { - c2 = 6; + c = 6; break; } break; case 776382189: if (str.equals("RadioButton")) { - c2 = 7; + c = 7; break; } break; case 799298502: if (str.equals("ToggleButton")) { - c2 = '\b'; + c = '\b'; break; } break; case 1125864064: if (str.equals("ImageView")) { - c2 = '\t'; + c = '\t'; break; } break; case 1413872058: if (str.equals("AutoCompleteTextView")) { - c2 = '\n'; + c = '\n'; break; } break; case 1601505219: if (str.equals("CheckBox")) { - c2 = 11; + c = 11; break; } break; case 1666676343: if (str.equals("EditText")) { - c2 = '\f'; + c = '\f'; break; } break; case 2001146706: if (str.equals("Button")) { - c2 = '\r'; + c = '\r'; break; } break; } - switch (c2) { + switch (c) { case 0: view2 = createRatingBar(context2, attributeSet); verifyNotNull(view2, str); diff --git a/app/src/main/java/androidx/appcompat/app/WindowDecorActionBar.java b/app/src/main/java/androidx/appcompat/app/WindowDecorActionBar.java index 8d7221c85b..f90b55b15b 100644 --- a/app/src/main/java/androidx/appcompat/app/WindowDecorActionBar.java +++ b/app/src/main/java/androidx/appcompat/app/WindowDecorActionBar.java @@ -45,7 +45,7 @@ import androidx.core.view.ViewPropertyAnimatorListenerAdapter; import androidx.core.view.ViewPropertyAnimatorUpdateListener; import androidx.fragment.app.FragmentActivity; import androidx.fragment.app.FragmentTransaction; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.ref.WeakReference; import java.util.ArrayList; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) diff --git a/app/src/main/java/androidx/appcompat/graphics/drawable/DrawerArrowDrawable.java b/app/src/main/java/androidx/appcompat/graphics/drawable/DrawerArrowDrawable.java index 7bbca31569..89ad09ee7e 100644 --- a/app/src/main/java/androidx/appcompat/graphics/drawable/DrawerArrowDrawable.java +++ b/app/src/main/java/androidx/appcompat/graphics/drawable/DrawerArrowDrawable.java @@ -13,7 +13,7 @@ import androidx.annotation.FloatRange; import androidx.annotation.RestrictTo; import androidx.appcompat.R; import androidx.core.graphics.drawable.DrawableCompat; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/app/src/main/java/androidx/appcompat/view/SupportMenuInflater.java b/app/src/main/java/androidx/appcompat/view/SupportMenuInflater.java index 106cbaf5f2..981c6df13e 100644 --- a/app/src/main/java/androidx/appcompat/view/SupportMenuInflater.java +++ b/app/src/main/java/androidx/appcompat/view/SupportMenuInflater.java @@ -26,7 +26,7 @@ import androidx.appcompat.widget.TintTypedArray; import androidx.core.internal.view.SupportMenu; import androidx.core.view.ActionProvider; import androidx.core.view.MenuItemCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.Method; diff --git a/app/src/main/java/androidx/appcompat/view/menu/ActionMenuItem.java b/app/src/main/java/androidx/appcompat/view/menu/ActionMenuItem.java index 476e95517c..b08699457a 100644 --- a/app/src/main/java/androidx/appcompat/view/menu/ActionMenuItem.java +++ b/app/src/main/java/androidx/appcompat/view/menu/ActionMenuItem.java @@ -251,14 +251,14 @@ public class ActionMenuItem implements SupportMenuItem { } @Override // android.view.MenuItem - public MenuItem setAlphabeticShortcut(char c2) { - this.mShortcutAlphabeticChar = Character.toLowerCase(c2); + public MenuItem setAlphabeticShortcut(char c) { + this.mShortcutAlphabeticChar = Character.toLowerCase(c); return this; } @Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem - public MenuItem setAlphabeticShortcut(char c2, int i) { - this.mShortcutAlphabeticChar = Character.toLowerCase(c2); + public MenuItem setAlphabeticShortcut(char c, int i) { + this.mShortcutAlphabeticChar = Character.toLowerCase(c); this.mShortcutAlphabeticModifiers = KeyEvent.normalizeMetaState(i); return this; } @@ -329,14 +329,14 @@ public class ActionMenuItem implements SupportMenuItem { } @Override // android.view.MenuItem - public MenuItem setNumericShortcut(char c2) { - this.mShortcutNumericChar = c2; + public MenuItem setNumericShortcut(char c) { + this.mShortcutNumericChar = c; return this; } @Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem - public MenuItem setNumericShortcut(char c2, int i) { - this.mShortcutNumericChar = c2; + public MenuItem setNumericShortcut(char c, int i) { + this.mShortcutNumericChar = c; this.mShortcutNumericModifiers = KeyEvent.normalizeMetaState(i); return this; } @@ -353,17 +353,17 @@ public class ActionMenuItem implements SupportMenuItem { } @Override // android.view.MenuItem - public MenuItem setShortcut(char c2, char c3) { - this.mShortcutNumericChar = c2; - this.mShortcutAlphabeticChar = Character.toLowerCase(c3); + public MenuItem setShortcut(char c, char c2) { + this.mShortcutNumericChar = c; + this.mShortcutAlphabeticChar = Character.toLowerCase(c2); return this; } @Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem - public MenuItem setShortcut(char c2, char c3, int i, int i2) { - this.mShortcutNumericChar = c2; + public MenuItem setShortcut(char c, char c2, int i, int i2) { + this.mShortcutNumericChar = c; this.mShortcutNumericModifiers = KeyEvent.normalizeMetaState(i); - this.mShortcutAlphabeticChar = Character.toLowerCase(c3); + this.mShortcutAlphabeticChar = Character.toLowerCase(c2); this.mShortcutAlphabeticModifiers = KeyEvent.normalizeMetaState(i2); return this; } diff --git a/app/src/main/java/androidx/appcompat/view/menu/ActionMenuItemView.java b/app/src/main/java/androidx/appcompat/view/menu/ActionMenuItemView.java index 765da12b88..7a84f72b05 100644 --- a/app/src/main/java/androidx/appcompat/view/menu/ActionMenuItemView.java +++ b/app/src/main/java/androidx/appcompat/view/menu/ActionMenuItemView.java @@ -256,7 +256,7 @@ public class ActionMenuItemView extends AppCompatTextView implements MenuView.It } @Override // androidx.appcompat.view.menu.MenuView.ItemView - public void setShortcut(boolean z2, char c2) { + public void setShortcut(boolean z2, char c) { } @Override // androidx.appcompat.view.menu.MenuView.ItemView diff --git a/app/src/main/java/androidx/appcompat/view/menu/ListMenuItemView.java b/app/src/main/java/androidx/appcompat/view/menu/ListMenuItemView.java index b2e0c52b75..0ac8124f3b 100644 --- a/app/src/main/java/androidx/appcompat/view/menu/ListMenuItemView.java +++ b/app/src/main/java/androidx/appcompat/view/menu/ListMenuItemView.java @@ -265,7 +265,7 @@ public class ListMenuItemView extends LinearLayout implements MenuView.ItemView, } @Override // androidx.appcompat.view.menu.MenuView.ItemView - public void setShortcut(boolean z2, char c2) { + public void setShortcut(boolean z2, char c) { int i = (!z2 || !this.mItemData.shouldShowShortcut()) ? 8 : 0; if (i == 0) { this.mShortcutView.setText(this.mItemData.getShortcutLabel()); diff --git a/app/src/main/java/androidx/appcompat/view/menu/MenuItemImpl.java b/app/src/main/java/androidx/appcompat/view/menu/MenuItemImpl.java index 6b082300d3..184f47c043 100644 --- a/app/src/main/java/androidx/appcompat/view/menu/MenuItemImpl.java +++ b/app/src/main/java/androidx/appcompat/view/menu/MenuItemImpl.java @@ -430,21 +430,21 @@ public final class MenuItemImpl implements SupportMenuItem { } @Override // android.view.MenuItem - public MenuItem setAlphabeticShortcut(char c2) { - if (this.mShortcutAlphabeticChar == c2) { + public MenuItem setAlphabeticShortcut(char c) { + if (this.mShortcutAlphabeticChar == c) { return this; } - this.mShortcutAlphabeticChar = Character.toLowerCase(c2); + this.mShortcutAlphabeticChar = Character.toLowerCase(c); this.mMenu.onItemsChanged(false); return this; } @Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem - public MenuItem setAlphabeticShortcut(char c2, int i) { - if (this.mShortcutAlphabeticChar == c2 && this.mShortcutAlphabeticModifiers == i) { + public MenuItem setAlphabeticShortcut(char c, int i) { + if (this.mShortcutAlphabeticChar == c && this.mShortcutAlphabeticModifiers == i) { return this; } - this.mShortcutAlphabeticChar = Character.toLowerCase(c2); + this.mShortcutAlphabeticChar = Character.toLowerCase(c); this.mShortcutAlphabeticModifiers = KeyEvent.normalizeMetaState(i); this.mMenu.onItemsChanged(false); return this; @@ -562,21 +562,21 @@ public final class MenuItemImpl implements SupportMenuItem { } @Override // android.view.MenuItem - public MenuItem setNumericShortcut(char c2) { - if (this.mShortcutNumericChar == c2) { + public MenuItem setNumericShortcut(char c) { + if (this.mShortcutNumericChar == c) { return this; } - this.mShortcutNumericChar = c2; + this.mShortcutNumericChar = c; this.mMenu.onItemsChanged(false); return this; } @Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem - public MenuItem setNumericShortcut(char c2, int i) { - if (this.mShortcutNumericChar == c2 && this.mShortcutNumericModifiers == i) { + public MenuItem setNumericShortcut(char c, int i) { + if (this.mShortcutNumericChar == c && this.mShortcutNumericModifiers == i) { return this; } - this.mShortcutNumericChar = c2; + this.mShortcutNumericChar = c; this.mShortcutNumericModifiers = KeyEvent.normalizeMetaState(i); this.mMenu.onItemsChanged(false); return this; @@ -595,18 +595,18 @@ public final class MenuItemImpl implements SupportMenuItem { } @Override // android.view.MenuItem - public MenuItem setShortcut(char c2, char c3) { - this.mShortcutNumericChar = c2; - this.mShortcutAlphabeticChar = Character.toLowerCase(c3); + public MenuItem setShortcut(char c, char c2) { + this.mShortcutNumericChar = c; + this.mShortcutAlphabeticChar = Character.toLowerCase(c2); this.mMenu.onItemsChanged(false); return this; } @Override // androidx.core.internal.view.SupportMenuItem, android.view.MenuItem - public MenuItem setShortcut(char c2, char c3, int i, int i2) { - this.mShortcutNumericChar = c2; + public MenuItem setShortcut(char c, char c2, int i, int i2) { + this.mShortcutNumericChar = c; this.mShortcutNumericModifiers = KeyEvent.normalizeMetaState(i); - this.mShortcutAlphabeticChar = Character.toLowerCase(c3); + this.mShortcutAlphabeticChar = Character.toLowerCase(c2); this.mShortcutAlphabeticModifiers = KeyEvent.normalizeMetaState(i2); this.mMenu.onItemsChanged(false); return this; diff --git a/app/src/main/java/androidx/appcompat/view/menu/MenuItemWrapperICS.java b/app/src/main/java/androidx/appcompat/view/menu/MenuItemWrapperICS.java index 0f9481b93d..0174890548 100644 --- a/app/src/main/java/androidx/appcompat/view/menu/MenuItemWrapperICS.java +++ b/app/src/main/java/androidx/appcompat/view/menu/MenuItemWrapperICS.java @@ -331,14 +331,14 @@ public class MenuItemWrapperICS extends BaseMenuWrapper implements MenuItem { } @Override // android.view.MenuItem - public MenuItem setAlphabeticShortcut(char c2) { - this.mWrappedObject.setAlphabeticShortcut(c2); + public MenuItem setAlphabeticShortcut(char c) { + this.mWrappedObject.setAlphabeticShortcut(c); return this; } @Override // android.view.MenuItem - public MenuItem setAlphabeticShortcut(char c2, int i) { - this.mWrappedObject.setAlphabeticShortcut(c2, i); + public MenuItem setAlphabeticShortcut(char c, int i) { + this.mWrappedObject.setAlphabeticShortcut(c, i); return this; } @@ -408,14 +408,14 @@ public class MenuItemWrapperICS extends BaseMenuWrapper implements MenuItem { } @Override // android.view.MenuItem - public MenuItem setNumericShortcut(char c2) { - this.mWrappedObject.setNumericShortcut(c2); + public MenuItem setNumericShortcut(char c) { + this.mWrappedObject.setNumericShortcut(c); return this; } @Override // android.view.MenuItem - public MenuItem setNumericShortcut(char c2, int i) { - this.mWrappedObject.setNumericShortcut(c2, i); + public MenuItem setNumericShortcut(char c, int i) { + this.mWrappedObject.setNumericShortcut(c, i); return this; } @@ -432,14 +432,14 @@ public class MenuItemWrapperICS extends BaseMenuWrapper implements MenuItem { } @Override // android.view.MenuItem - public MenuItem setShortcut(char c2, char c3) { - this.mWrappedObject.setShortcut(c2, c3); + public MenuItem setShortcut(char c, char c2) { + this.mWrappedObject.setShortcut(c, c2); return this; } @Override // android.view.MenuItem - public MenuItem setShortcut(char c2, char c3, int i, int i2) { - this.mWrappedObject.setShortcut(c2, c3, i, i2); + public MenuItem setShortcut(char c, char c2, int i, int i2) { + this.mWrappedObject.setShortcut(c, c2, i, i2); return this; } diff --git a/app/src/main/java/androidx/appcompat/view/menu/MenuView.java b/app/src/main/java/androidx/appcompat/view/menu/MenuView.java index 46444c295b..1d3de51062 100644 --- a/app/src/main/java/androidx/appcompat/view/menu/MenuView.java +++ b/app/src/main/java/androidx/appcompat/view/menu/MenuView.java @@ -21,7 +21,7 @@ public interface MenuView { void setIcon(Drawable drawable); - void setShortcut(boolean z2, char c2); + void setShortcut(boolean z2, char c); void setTitle(CharSequence charSequence); diff --git a/app/src/main/java/androidx/appcompat/widget/ActionBarOverlayLayout.java b/app/src/main/java/androidx/appcompat/widget/ActionBarOverlayLayout.java index 403b480afa..81a596feae 100644 --- a/app/src/main/java/androidx/appcompat/widget/ActionBarOverlayLayout.java +++ b/app/src/main/java/androidx/appcompat/widget/ActionBarOverlayLayout.java @@ -32,7 +32,7 @@ import androidx.core.view.NestedScrollingParent3; import androidx.core.view.NestedScrollingParentHelper; import androidx.core.view.ViewCompat; import androidx.core.view.WindowInsetsCompat; -import c.d.b.a.a; +import b.d.b.a.a; @SuppressLint({"UnknownNullness"}) @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public class ActionBarOverlayLayout extends ViewGroup implements DecorContentParent, NestedScrollingParent, NestedScrollingParent2, NestedScrollingParent3 { diff --git a/app/src/main/java/androidx/appcompat/widget/ActivityChooserModel.java b/app/src/main/java/androidx/appcompat/widget/ActivityChooserModel.java index 954de1f64d..abf0ffc394 100644 --- a/app/src/main/java/androidx/appcompat/widget/ActivityChooserModel.java +++ b/app/src/main/java/androidx/appcompat/widget/ActivityChooserModel.java @@ -10,7 +10,7 @@ import android.os.AsyncTask; import android.text.TextUtils; import android.util.Log; import android.util.Xml; -import c.d.b.a.a; +import b.d.b.a.a; import com.adjust.sdk.Constants; import java.io.FileInputStream; import java.io.FileNotFoundException; diff --git a/app/src/main/java/androidx/appcompat/widget/AppCompatTextViewAutoSizeHelper.java b/app/src/main/java/androidx/appcompat/widget/AppCompatTextViewAutoSizeHelper.java index 72d7e139e4..f1fd3bf1a5 100644 --- a/app/src/main/java/androidx/appcompat/widget/AppCompatTextViewAutoSizeHelper.java +++ b/app/src/main/java/androidx/appcompat/widget/AppCompatTextViewAutoSizeHelper.java @@ -23,7 +23,7 @@ import androidx.annotation.RestrictTo; import androidx.annotation.VisibleForTesting; import androidx.appcompat.R; import androidx.core.view.ViewCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/appcompat/widget/DrawableUtils.java b/app/src/main/java/androidx/appcompat/widget/DrawableUtils.java index e0eb836057..6ad606562a 100644 --- a/app/src/main/java/androidx/appcompat/widget/DrawableUtils.java +++ b/app/src/main/java/androidx/appcompat/widget/DrawableUtils.java @@ -95,40 +95,40 @@ public class DrawableUtils { Field[] fields = sInsetsClazz.getFields(); for (Field field : fields) { String name = field.getName(); - char c2 = 65535; + char c = 65535; switch (name.hashCode()) { case -1383228885: if (name.equals("bottom")) { - c2 = 3; + c = 3; break; } break; case 115029: if (name.equals("top")) { - c2 = 1; + c = 1; break; } break; case 3317767: if (name.equals("left")) { - c2 = 0; + c = 0; break; } break; case 108511772: if (name.equals("right")) { - c2 = 2; + c = 2; break; } break; } - if (c2 == 0) { + if (c == 0) { rect2.left = field.getInt(invoke); - } else if (c2 == 1) { + } else if (c == 1) { rect2.top = field.getInt(invoke); - } else if (c2 == 2) { + } else if (c == 2) { rect2.right = field.getInt(invoke); - } else if (c2 == 3) { + } else if (c == 3) { rect2.bottom = field.getInt(invoke); } } diff --git a/app/src/main/java/androidx/appcompat/widget/LinearLayoutCompat.java b/app/src/main/java/androidx/appcompat/widget/LinearLayoutCompat.java index e94b105f19..eb561245d5 100644 --- a/app/src/main/java/androidx/appcompat/widget/LinearLayoutCompat.java +++ b/app/src/main/java/androidx/appcompat/widget/LinearLayoutCompat.java @@ -17,7 +17,7 @@ import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; import androidx.core.view.GravityCompat; import androidx.core.view.InputDeviceCompat; import androidx.core.view.ViewCompat; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.badge.BadgeDrawable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/app/src/main/java/androidx/appcompat/widget/ListPopupWindow.java b/app/src/main/java/androidx/appcompat/widget/ListPopupWindow.java index 836fdafb4f..50e6350dfb 100644 --- a/app/src/main/java/androidx/appcompat/widget/ListPopupWindow.java +++ b/app/src/main/java/androidx/appcompat/widget/ListPopupWindow.java @@ -31,7 +31,7 @@ import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; import androidx.core.view.PointerIconCompat; import androidx.core.view.ViewCompat; import androidx.core.widget.PopupWindowCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Method; public class ListPopupWindow implements ShowableListMenu { private static final boolean DEBUG = false; diff --git a/app/src/main/java/androidx/appcompat/widget/SearchView.java b/app/src/main/java/androidx/appcompat/widget/SearchView.java index 609fe54619..c4b9c3a3a7 100644 --- a/app/src/main/java/androidx/appcompat/widget/SearchView.java +++ b/app/src/main/java/androidx/appcompat/widget/SearchView.java @@ -48,7 +48,7 @@ import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; import androidx.core.view.ViewCompat; import androidx.cursoradapter.widget.CursorAdapter; import androidx.customview.view.AbsSavedState; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import java.lang.reflect.Method; import java.util.WeakHashMap; diff --git a/app/src/main/java/androidx/appcompat/widget/SuggestionsAdapter.java b/app/src/main/java/androidx/appcompat/widget/SuggestionsAdapter.java index de22c6c970..17e8601249 100644 --- a/app/src/main/java/androidx/appcompat/widget/SuggestionsAdapter.java +++ b/app/src/main/java/androidx/appcompat/widget/SuggestionsAdapter.java @@ -24,7 +24,7 @@ import android.widget.TextView; import androidx.appcompat.R; import androidx.core.content.ContextCompat; import androidx.cursoradapter.widget.ResourceCursorAdapter; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import java.io.FileNotFoundException; import java.io.IOException; diff --git a/app/src/main/java/androidx/appcompat/widget/Toolbar.java b/app/src/main/java/androidx/appcompat/widget/Toolbar.java index 3a66aba089..06d2aeba67 100644 --- a/app/src/main/java/androidx/appcompat/widget/Toolbar.java +++ b/app/src/main/java/androidx/appcompat/widget/Toolbar.java @@ -1307,8 +1307,8 @@ public class Toolbar extends ViewGroup { @Override // android.view.View public void onMeasure(int i, int i2) { + char c; char c2; - char c3; int i3; int i4; int i5; @@ -1319,11 +1319,11 @@ public class Toolbar extends ViewGroup { int[] iArr = this.mTempMargins; int i10 = 0; if (ViewUtils.isLayoutRtl(this)) { - c3 = 1; - c2 = 0; - } else { - c3 = 0; c2 = 1; + c = 0; + } else { + c2 = 0; + c = 1; } if (shouldLayout(this.mNavButtonView)) { measureChildConstrained(this.mNavButtonView, i, 0, i2, 0, this.mMaxButtonHeight); @@ -1343,7 +1343,7 @@ public class Toolbar extends ViewGroup { } int currentContentInsetStart = getCurrentContentInsetStart(); int max = Math.max(currentContentInsetStart, i5) + 0; - iArr[c3] = Math.max(0, currentContentInsetStart - i5); + iArr[c2] = Math.max(0, currentContentInsetStart - i5); if (shouldLayout(this.mMenuView)) { measureChildConstrained(this.mMenuView, i, max, i2, 0, this.mMaxButtonHeight); i6 = this.mMenuView.getMeasuredWidth() + getHorizontalMargins(this.mMenuView); @@ -1354,7 +1354,7 @@ public class Toolbar extends ViewGroup { } int currentContentInsetEnd = getCurrentContentInsetEnd(); int max2 = Math.max(currentContentInsetEnd, i6) + max; - iArr[c2] = Math.max(0, currentContentInsetEnd - i6); + iArr[c] = Math.max(0, currentContentInsetEnd - i6); if (shouldLayout(this.mExpandedActionView)) { max2 += measureChildCollapseMargins(this.mExpandedActionView, i, max2, i2, 0, iArr); i4 = Math.max(i4, this.mExpandedActionView.getMeasuredHeight() + getVerticalMargins(this.mExpandedActionView)); diff --git a/app/src/main/java/androidx/appcompat/widget/ToolbarWidgetWrapper.java b/app/src/main/java/androidx/appcompat/widget/ToolbarWidgetWrapper.java index d0cfd35c09..da48d2a52b 100644 --- a/app/src/main/java/androidx/appcompat/widget/ToolbarWidgetWrapper.java +++ b/app/src/main/java/androidx/appcompat/widget/ToolbarWidgetWrapper.java @@ -24,7 +24,7 @@ import androidx.appcompat.widget.Toolbar; import androidx.core.view.ViewCompat; import androidx.core.view.ViewPropertyAnimatorCompat; import androidx.core.view.ViewPropertyAnimatorListenerAdapter; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.badge.BadgeDrawable; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public class ToolbarWidgetWrapper implements DecorToolbar { diff --git a/app/src/main/java/androidx/arch/core/internal/SafeIterableMap.java b/app/src/main/java/androidx/arch/core/internal/SafeIterableMap.java index 97c8e7f925..062eaaf2ac 100644 --- a/app/src/main/java/androidx/arch/core/internal/SafeIterableMap.java +++ b/app/src/main/java/androidx/arch/core/internal/SafeIterableMap.java @@ -2,7 +2,7 @@ package androidx.arch.core.internal; import androidx.annotation.NonNull; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Iterator; import java.util.Map; import java.util.WeakHashMap; diff --git a/app/src/main/java/androidx/browser/browseractions/BrowserActionsFallbackMenuAdapter.java b/app/src/main/java/androidx/browser/browseractions/BrowserActionsFallbackMenuAdapter.java index e66f11fc8b..dc395c8006 100644 --- a/app/src/main/java/androidx/browser/browseractions/BrowserActionsFallbackMenuAdapter.java +++ b/app/src/main/java/androidx/browser/browseractions/BrowserActionsFallbackMenuAdapter.java @@ -12,7 +12,7 @@ import android.widget.TextView; import androidx.annotation.NonNull; import androidx.browser.R; import androidx.core.content.res.ResourcesCompat; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.Executor; diff --git a/app/src/main/java/androidx/browser/browseractions/BrowserServiceFileProvider.java b/app/src/main/java/androidx/browser/browseractions/BrowserServiceFileProvider.java index 40c1bd9b8e..9b0e5cc9e0 100644 --- a/app/src/main/java/androidx/browser/browseractions/BrowserServiceFileProvider.java +++ b/app/src/main/java/androidx/browser/browseractions/BrowserServiceFileProvider.java @@ -19,7 +19,7 @@ import androidx.annotation.UiThread; import androidx.concurrent.futures.ResolvableFuture; import androidx.core.content.FileProvider; import androidx.core.util.AtomicFile; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; @@ -221,7 +221,7 @@ public final class BrowserServiceFileProvider extends FileProvider { } @NonNull - public static c.i.b.d.a.a loadBitmap(@NonNull ContentResolver contentResolver, @NonNull Uri uri) { + public static b.i.b.d.a.a loadBitmap(@NonNull ContentResolver contentResolver, @NonNull Uri uri) { ResolvableFuture create = ResolvableFuture.create(); AsyncTask.THREAD_POOL_EXECUTOR.execute(new AnonymousClass1(contentResolver, uri, create)); return create; diff --git a/app/src/main/java/androidx/browser/customtabs/CustomTabsClient.java b/app/src/main/java/androidx/browser/customtabs/CustomTabsClient.java index 9c5a2623c0..6c9a2dcba0 100644 --- a/app/src/main/java/androidx/browser/customtabs/CustomTabsClient.java +++ b/app/src/main/java/androidx/browser/customtabs/CustomTabsClient.java @@ -48,7 +48,7 @@ public class CustomTabsClient { } /* renamed from: androidx.browser.customtabs.CustomTabsClient$2 reason: invalid class name */ - public class AnonymousClass2 extends a.AbstractBinderC0352a { + public class AnonymousClass2 extends a.AbstractBinderC0350a { private Handler mHandler = new Handler(Looper.getMainLooper()); public final /* synthetic */ CustomTabsCallback val$callback; @@ -219,7 +219,7 @@ public class CustomTabsClient { } } - private a.AbstractBinderC0352a createCallbackWrapper(@Nullable CustomTabsCallback customTabsCallback) { + private a.AbstractBinderC0350a createCallbackWrapper(@Nullable CustomTabsCallback customTabsCallback) { return new AnonymousClass2(customTabsCallback); } @@ -270,7 +270,7 @@ public class CustomTabsClient { @Nullable private CustomTabsSession newSessionInternal(@Nullable CustomTabsCallback customTabsCallback, @Nullable PendingIntent pendingIntent) { boolean z2; - a.AbstractBinderC0352a createCallbackWrapper = createCallbackWrapper(customTabsCallback); + a.AbstractBinderC0350a createCallbackWrapper = createCallbackWrapper(customTabsCallback); if (pendingIntent != null) { try { Bundle bundle = new Bundle(); diff --git a/app/src/main/java/androidx/browser/customtabs/CustomTabsIntent.java b/app/src/main/java/androidx/browser/customtabs/CustomTabsIntent.java index 479a6897c0..7b9f0eb432 100644 --- a/app/src/main/java/androidx/browser/customtabs/CustomTabsIntent.java +++ b/app/src/main/java/androidx/browser/customtabs/CustomTabsIntent.java @@ -19,7 +19,7 @@ import androidx.browser.customtabs.CustomTabsSession; import androidx.core.app.ActivityOptionsCompat; import androidx.core.app.BundleCompat; import androidx.core.content.ContextCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/browser/customtabs/CustomTabsSessionToken.java b/app/src/main/java/androidx/browser/customtabs/CustomTabsSessionToken.java index 7d7f8c429d..b4e8b4e702 100644 --- a/app/src/main/java/androidx/browser/customtabs/CustomTabsSessionToken.java +++ b/app/src/main/java/androidx/browser/customtabs/CustomTabsSessionToken.java @@ -83,8 +83,8 @@ public class CustomTabsSessionToken { } } - public static class MockCallback extends a.AbstractBinderC0352a { - @Override // x.a.a.a.AbstractBinderC0352a, android.os.IInterface + public static class MockCallback extends a.AbstractBinderC0350a { + @Override // x.a.a.a.AbstractBinderC0350a, android.os.IInterface public IBinder asBinder() { return this; } @@ -150,7 +150,7 @@ public class CustomTabsSessionToken { return null; } if (binder != null) { - aVar = a.AbstractBinderC0352a.asInterface(binder); + aVar = a.AbstractBinderC0350a.asInterface(binder); } return new CustomTabsSessionToken(aVar, pendingIntent); } diff --git a/app/src/main/java/androidx/browser/customtabs/PostMessageServiceConnection.java b/app/src/main/java/androidx/browser/customtabs/PostMessageServiceConnection.java index 966a423108..0aaf96add2 100644 --- a/app/src/main/java/androidx/browser/customtabs/PostMessageServiceConnection.java +++ b/app/src/main/java/androidx/browser/customtabs/PostMessageServiceConnection.java @@ -26,7 +26,7 @@ public abstract class PostMessageServiceConnection implements PostMessageBackend public PostMessageServiceConnection(@NonNull CustomTabsSessionToken customTabsSessionToken) { IBinder callbackBinder = customTabsSessionToken.getCallbackBinder(); if (callbackBinder != null) { - this.mSessionBinder = a.AbstractBinderC0352a.asInterface(callbackBinder); + this.mSessionBinder = a.AbstractBinderC0350a.asInterface(callbackBinder); return; } throw new IllegalArgumentException("Provided session must have binder."); diff --git a/app/src/main/java/androidx/browser/trusted/ConnectionHolder.java b/app/src/main/java/androidx/browser/trusted/ConnectionHolder.java index 5a2465d257..225490e595 100644 --- a/app/src/main/java/androidx/browser/trusted/ConnectionHolder.java +++ b/app/src/main/java/androidx/browser/trusted/ConnectionHolder.java @@ -7,7 +7,7 @@ import androidx.annotation.MainThread; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.concurrent.futures.CallbackToFutureAdapter; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.List; import x.a.a.d.b; @@ -84,7 +84,7 @@ public class ConnectionHolder implements ServiceConnection { @NonNull @MainThread - public c.i.b.d.a.a getServiceWrapper() { + public b.i.b.d.a.a getServiceWrapper() { return CallbackToFutureAdapter.getFuture(new y.a.b.a(this)); } diff --git a/app/src/main/java/androidx/browser/trusted/FutureUtils.java b/app/src/main/java/androidx/browser/trusted/FutureUtils.java index abf3a7d8c7..bba2895cfd 100644 --- a/app/src/main/java/androidx/browser/trusted/FutureUtils.java +++ b/app/src/main/java/androidx/browser/trusted/FutureUtils.java @@ -2,7 +2,7 @@ package androidx.browser.trusted; import androidx.annotation.NonNull; import androidx.concurrent.futures.ResolvableFuture; -import c.i.b.d.a.a; +import b.i.b.d.a.a; public class FutureUtils { private FutureUtils() { } diff --git a/app/src/main/java/androidx/browser/trusted/TrustedWebActivityCallbackRemote.java b/app/src/main/java/androidx/browser/trusted/TrustedWebActivityCallbackRemote.java index 6a90acd8ea..111a3cebbf 100644 --- a/app/src/main/java/androidx/browser/trusted/TrustedWebActivityCallbackRemote.java +++ b/app/src/main/java/androidx/browser/trusted/TrustedWebActivityCallbackRemote.java @@ -15,7 +15,7 @@ public class TrustedWebActivityCallbackRemote { @Nullable public static TrustedWebActivityCallbackRemote fromBinder(@Nullable IBinder iBinder) { - a asInterface = iBinder == null ? null : a.AbstractBinderC0356a.asInterface(iBinder); + a asInterface = iBinder == null ? null : a.AbstractBinderC0354a.asInterface(iBinder); if (asInterface == null) { return null; } diff --git a/app/src/main/java/androidx/browser/trusted/TrustedWebActivityServiceConnection.java b/app/src/main/java/androidx/browser/trusted/TrustedWebActivityServiceConnection.java index 715762e4b9..945a74f65c 100644 --- a/app/src/main/java/androidx/browser/trusted/TrustedWebActivityServiceConnection.java +++ b/app/src/main/java/androidx/browser/trusted/TrustedWebActivityServiceConnection.java @@ -23,7 +23,7 @@ public final class TrustedWebActivityServiceConnection { private final b mService; /* renamed from: androidx.browser.trusted.TrustedWebActivityServiceConnection$1 reason: invalid class name */ - public class AnonymousClass1 extends a.AbstractBinderC0356a { + public class AnonymousClass1 extends a.AbstractBinderC0354a { public final /* synthetic */ TrustedWebActivityCallback val$callback; public AnonymousClass1(TrustedWebActivityCallback trustedWebActivityCallback) { @@ -154,7 +154,7 @@ public final class TrustedWebActivityServiceConnection { public static void ensureBundleContains(Bundle bundle, String str) { if (!bundle.containsKey(str)) { - throw new IllegalArgumentException(c.d.b.a.a.v("Bundle must contain ", str)); + throw new IllegalArgumentException(b.d.b.a.a.v("Bundle must contain ", str)); } } diff --git a/app/src/main/java/androidx/browser/trusted/TrustedWebActivityServiceConnectionPool.java b/app/src/main/java/androidx/browser/trusted/TrustedWebActivityServiceConnectionPool.java index 3bb1959ab3..83d4186966 100644 --- a/app/src/main/java/androidx/browser/trusted/TrustedWebActivityServiceConnectionPool.java +++ b/app/src/main/java/androidx/browser/trusted/TrustedWebActivityServiceConnectionPool.java @@ -11,7 +11,7 @@ import androidx.annotation.MainThread; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.FragmentTransaction; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -121,7 +121,7 @@ public final class TrustedWebActivityServiceConnectionPool { @NonNull @MainThread - public c.i.b.d.a.a connect(@NonNull Uri uri, @NonNull Set set, @NonNull Executor executor) { + public b.i.b.d.a.a connect(@NonNull Uri uri, @NonNull Set set, @NonNull Executor executor) { ConnectionHolder connectionHolder = this.mConnections.get(uri); if (connectionHolder != null) { return connectionHolder.getServiceWrapper(); diff --git a/app/src/main/java/androidx/concurrent/futures/AbstractResolvableFuture.java b/app/src/main/java/androidx/concurrent/futures/AbstractResolvableFuture.java index ec5d5d5a73..8b30494ee8 100644 --- a/app/src/main/java/androidx/concurrent/futures/AbstractResolvableFuture.java +++ b/app/src/main/java/androidx/concurrent/futures/AbstractResolvableFuture.java @@ -3,7 +3,7 @@ package androidx.concurrent.futures; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.Locale; import java.util.Objects; import java.util.concurrent.CancellationException; @@ -449,7 +449,7 @@ public abstract class AbstractResolvableFuture implements a { return obj == this ? "this future" : String.valueOf(obj); } - @Override // c.i.b.d.a.a + @Override // b.i.b.d.a.a public final void addListener(Runnable runnable, Executor executor) { checkNotNull(runnable); checkNotNull(executor); @@ -597,7 +597,7 @@ public abstract class AbstractResolvableFuture implements a { String lowerCase = timeUnit2.toLowerCase(locale); String str = "Waited " + j + " " + timeUnit.toString().toLowerCase(locale); if (nanos + 1000 < 0) { - String v = c.d.b.a.a.v(str, " (plus "); + String v = b.d.b.a.a.v(str, " (plus "); long j2 = -nanos; long convert = timeUnit.convert(j2, TimeUnit.NANOSECONDS); long nanos2 = j2 - timeUnit.toNanos(convert); @@ -606,19 +606,19 @@ public abstract class AbstractResolvableFuture implements a { if (i > 0) { String str2 = v + convert + " " + lowerCase; if (z2) { - str2 = c.d.b.a.a.v(str2, ","); + str2 = b.d.b.a.a.v(str2, ","); } - v = c.d.b.a.a.v(str2, " "); + v = b.d.b.a.a.v(str2, " "); } if (z2) { v = v + nanos2 + " nanoseconds "; } - str = c.d.b.a.a.v(v, "delay)"); + str = b.d.b.a.a.v(v, "delay)"); } if (isDone()) { - throw new TimeoutException(c.d.b.a.a.v(str, " but future completed as timeout expired")); + throw new TimeoutException(b.d.b.a.a.v(str, " but future completed as timeout expired")); } - throw new TimeoutException(c.d.b.a.a.w(str, " for ", abstractResolvableFuture)); + throw new TimeoutException(b.d.b.a.a.w(str, " for ", abstractResolvableFuture)); } throw new InterruptedException(); } @@ -647,12 +647,12 @@ public abstract class AbstractResolvableFuture implements a { public String pendingToString() { Object obj = this.value; if (obj instanceof SetFuture) { - return c.d.b.a.a.H(c.d.b.a.a.R("setFuture=["), userObjectToString(((SetFuture) obj).future), "]"); + return b.d.b.a.a.H(b.d.b.a.a.R("setFuture=["), userObjectToString(((SetFuture) obj).future), "]"); } if (!(this instanceof ScheduledFuture)) { return null; } - StringBuilder R = c.d.b.a.a.R("remaining delay=["); + StringBuilder R = b.d.b.a.a.R("remaining delay=["); R.append(((ScheduledFuture) this).getDelay(TimeUnit.MILLISECONDS)); R.append(" ms]"); return R.toString(); @@ -723,7 +723,7 @@ public abstract class AbstractResolvableFuture implements a { try { str = pendingToString(); } catch (RuntimeException e) { - StringBuilder R = c.d.b.a.a.R("Exception thrown from implementation: "); + StringBuilder R = b.d.b.a.a.R("Exception thrown from implementation: "); R.append(e.getClass()); str = R.toString(); } diff --git a/app/src/main/java/androidx/concurrent/futures/CallbackToFutureAdapter.java b/app/src/main/java/androidx/concurrent/futures/CallbackToFutureAdapter.java index 9358b7363c..8bdcc375f2 100644 --- a/app/src/main/java/androidx/concurrent/futures/CallbackToFutureAdapter.java +++ b/app/src/main/java/androidx/concurrent/futures/CallbackToFutureAdapter.java @@ -2,7 +2,7 @@ package androidx.concurrent.futures; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.ref.WeakReference; import java.util.concurrent.ExecutionException; import java.util.concurrent.Executor; @@ -104,7 +104,7 @@ public final class CallbackToFutureAdapter { Object attachCompleter(@NonNull Completer completer) throws Exception; } - public static final class SafeFuture implements c.i.b.d.a.a { + public static final class SafeFuture implements b.i.b.d.a.a { public final WeakReference> completerWeakReference; private final AbstractResolvableFuture delegate = new AnonymousClass1(); @@ -130,7 +130,7 @@ public final class CallbackToFutureAdapter { this.completerWeakReference = new WeakReference<>(completer); } - @Override // c.i.b.d.a.a + @Override // b.i.b.d.a.a public void addListener(@NonNull Runnable runnable, @NonNull Executor executor) { this.delegate.addListener(runnable, executor); } @@ -187,7 +187,7 @@ public final class CallbackToFutureAdapter { } @NonNull - public static c.i.b.d.a.a getFuture(@NonNull Resolver resolver) { + public static b.i.b.d.a.a getFuture(@NonNull Resolver resolver) { Completer completer = new Completer<>(); SafeFuture safeFuture = new SafeFuture<>(completer); completer.future = safeFuture; diff --git a/app/src/main/java/androidx/concurrent/futures/ResolvableFuture.java b/app/src/main/java/androidx/concurrent/futures/ResolvableFuture.java index 547d15b8dd..0d3073a635 100644 --- a/app/src/main/java/androidx/concurrent/futures/ResolvableFuture.java +++ b/app/src/main/java/androidx/concurrent/futures/ResolvableFuture.java @@ -2,7 +2,7 @@ package androidx.concurrent.futures; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; -import c.i.b.d.a.a; +import b.i.b.d.a.a; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public final class ResolvableFuture extends AbstractResolvableFuture { private ResolvableFuture() { diff --git a/app/src/main/java/androidx/constraintlayout/motion/utils/Easing.java b/app/src/main/java/androidx/constraintlayout/motion/utils/Easing.java index 5704490f1c..9cc93798c6 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/utils/Easing.java +++ b/app/src/main/java/androidx/constraintlayout/motion/utils/Easing.java @@ -1,7 +1,7 @@ package androidx.constraintlayout.motion.utils; import android.util.Log; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.analytics.utils.RegistrationSteps; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.util.Arrays; @@ -132,34 +132,34 @@ public class Easing { return new CubicEasing(str); } str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1354466595: if (str.equals(ACCELERATE_NAME)) { - c2 = 0; + c = 0; break; } break; case -1263948740: if (str.equals(DECELERATE_NAME)) { - c2 = 1; + c = 1; break; } break; case -1102672091: if (str.equals(LINEAR_NAME)) { - c2 = 2; + c = 2; break; } break; case 1312628413: if (str.equals(STANDARD_NAME)) { - c2 = 3; + c = 3; break; } break; } - switch (c2) { + switch (c) { case 0: return new CubicEasing(ACCELERATE); case 1: diff --git a/app/src/main/java/androidx/constraintlayout/motion/utils/Oscillator.java b/app/src/main/java/androidx/constraintlayout/motion/utils/Oscillator.java index f197190882..404cb514ad 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/utils/Oscillator.java +++ b/app/src/main/java/androidx/constraintlayout/motion/utils/Oscillator.java @@ -1,6 +1,6 @@ package androidx.constraintlayout.motion.utils; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.util.Arrays; public class Oscillator { diff --git a/app/src/main/java/androidx/constraintlayout/motion/utils/StopLogic.java b/app/src/main/java/androidx/constraintlayout/motion/utils/StopLogic.java index 9063ad9149..811f0bfce1 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/utils/StopLogic.java +++ b/app/src/main/java/androidx/constraintlayout/motion/utils/StopLogic.java @@ -2,7 +2,7 @@ package androidx.constraintlayout.motion.utils; import android.util.Log; import androidx.constraintlayout.motion.widget.MotionInterpolator; -import c.d.b.a.a; +import b.d.b.a.a; public class StopLogic extends MotionInterpolator { private boolean mBackwards = false; private float mLastPosition; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/Debug.java b/app/src/main/java/androidx/constraintlayout/motion/widget/Debug.java index 1cb4994d68..332f0b543f 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/Debug.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/Debug.java @@ -6,7 +6,7 @@ import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.PrintStream; import java.lang.reflect.Field; import java.lang.reflect.Modifier; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyAttributes.java b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyAttributes.java index a366e173ac..0920d0e449 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyAttributes.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyAttributes.java @@ -8,7 +8,7 @@ import android.util.SparseIntArray; import androidx.constraintlayout.motion.widget.SplineSet; import androidx.constraintlayout.widget.ConstraintAttribute; import androidx.constraintlayout.widget.R; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; @@ -325,7 +325,7 @@ public class KeyAttributes extends Key { while (it.hasNext()) { String next = it.next(); SplineSet splineSet = hashMap.get(next); - char c2 = 7; + char c = 7; if (next.startsWith(Key.CUSTOM)) { ConstraintAttribute constraintAttribute = this.mCustomConstraints.get(next.substring(7)); if (constraintAttribute != null) { @@ -335,102 +335,102 @@ public class KeyAttributes extends Key { switch (next.hashCode()) { case -1249320806: if (next.equals(Key.ROTATION_X)) { - c2 = 0; + c = 0; break; } - c2 = 65535; + c = 65535; break; case -1249320805: if (next.equals(Key.ROTATION_Y)) { - c2 = 1; + c = 1; break; } - c2 = 65535; + c = 65535; break; case -1225497657: if (next.equals(Key.TRANSLATION_X)) { - c2 = 2; + c = 2; break; } - c2 = 65535; + c = 65535; break; case -1225497656: if (next.equals(Key.TRANSLATION_Y)) { - c2 = 3; + c = 3; break; } - c2 = 65535; + c = 65535; break; case -1225497655: if (next.equals(Key.TRANSLATION_Z)) { - c2 = 4; + c = 4; break; } - c2 = 65535; + c = 65535; break; case -1001078227: if (next.equals("progress")) { - c2 = 5; + c = 5; break; } - c2 = 65535; + c = 65535; break; case -908189618: if (next.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } - c2 = 65535; + c = 65535; break; case -908189617: break; case -760884510: if (next.equals(Key.PIVOT_X)) { - c2 = '\b'; + c = '\b'; break; } - c2 = 65535; + c = 65535; break; case -760884509: if (next.equals(Key.PIVOT_Y)) { - c2 = '\t'; + c = '\t'; break; } - c2 = 65535; + c = 65535; break; case -40300674: if (next.equals(Key.ROTATION)) { - c2 = '\n'; + c = '\n'; break; } - c2 = 65535; + c = 65535; break; case -4379043: if (next.equals(Key.ELEVATION)) { - c2 = 11; + c = 11; break; } - c2 = 65535; + c = 65535; break; case 37232917: if (next.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\f'; + c = '\f'; break; } - c2 = 65535; + c = 65535; break; case 92909918: if (next.equals(Key.ALPHA)) { - c2 = '\r'; + c = '\r'; break; } - c2 = 65535; + c = 65535; break; default: - c2 = 65535; + c = 65535; break; } - switch (c2) { + switch (c) { case 0: if (!Float.isNaN(this.mRotationX)) { splineSet.setPoint(this.mFramePosition, this.mRotationX); @@ -654,112 +654,112 @@ public class KeyAttributes extends Key { @Override // androidx.constraintlayout.motion.widget.Key public void setValue(String str, Object obj) { str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1913008125: if (str.equals("motionProgress")) { - c2 = 0; + c = 0; break; } break; case -1812823328: if (str.equals("transitionEasing")) { - c2 = 1; + c = 1; break; } break; case -1249320806: if (str.equals(Key.ROTATION_X)) { - c2 = 2; + c = 2; break; } break; case -1249320805: if (str.equals(Key.ROTATION_Y)) { - c2 = 3; + c = 3; break; } break; case -1225497657: if (str.equals(Key.TRANSLATION_X)) { - c2 = 4; + c = 4; break; } break; case -1225497656: if (str.equals(Key.TRANSLATION_Y)) { - c2 = 5; + c = 5; break; } break; case -987906986: if (str.equals("pivotX")) { - c2 = 6; + c = 6; break; } break; case -987906985: if (str.equals("pivotY")) { - c2 = 7; + c = 7; break; } break; case -908189618: if (str.equals(Key.SCALE_X)) { - c2 = '\b'; + c = '\b'; break; } break; case -908189617: if (str.equals(Key.SCALE_Y)) { - c2 = '\t'; + c = '\t'; break; } break; case -40300674: if (str.equals(Key.ROTATION)) { - c2 = '\n'; + c = '\n'; break; } break; case -4379043: if (str.equals(Key.ELEVATION)) { - c2 = 11; + c = 11; break; } break; case 37232917: if (str.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\f'; + c = '\f'; break; } break; case 92909918: if (str.equals(Key.ALPHA)) { - c2 = '\r'; + c = '\r'; break; } break; case 579057826: if (str.equals("curveFit")) { - c2 = 14; + c = 14; break; } break; case 1317633238: if (str.equals("mTranslationZ")) { - c2 = 15; + c = 15; break; } break; case 1941332754: if (str.equals("visibility")) { - c2 = 16; + c = 16; break; } break; } - switch (c2) { + switch (c) { case 0: this.mProgress = toFloat(obj); return; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyCycle.java b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyCycle.java index 5c7b53375b..7e3476a91d 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyCycle.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyCycle.java @@ -7,7 +7,7 @@ import android.util.Log; import android.util.SparseIntArray; import androidx.constraintlayout.widget.ConstraintAttribute; import androidx.constraintlayout.widget.R; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; @@ -376,88 +376,88 @@ public class KeyCycle extends Key { SplineSet splineSet = hashMap.get(str); str.hashCode(); str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1249320806: if (str.equals(Key.ROTATION_X)) { - c2 = 0; + c = 0; break; } break; case -1249320805: if (str.equals(Key.ROTATION_Y)) { - c2 = 1; + c = 1; break; } break; case -1225497657: if (str.equals(Key.TRANSLATION_X)) { - c2 = 2; + c = 2; break; } break; case -1225497656: if (str.equals(Key.TRANSLATION_Y)) { - c2 = 3; + c = 3; break; } break; case -1225497655: if (str.equals(Key.TRANSLATION_Z)) { - c2 = 4; + c = 4; break; } break; case -1001078227: if (str.equals("progress")) { - c2 = 5; + c = 5; break; } break; case -908189618: if (str.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } break; case -908189617: if (str.equals(Key.SCALE_Y)) { - c2 = 7; + c = 7; break; } break; case -40300674: if (str.equals(Key.ROTATION)) { - c2 = '\b'; + c = '\b'; break; } break; case -4379043: if (str.equals(Key.ELEVATION)) { - c2 = '\t'; + c = '\t'; break; } break; case 37232917: if (str.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\n'; + c = '\n'; break; } break; case 92909918: if (str.equals(Key.ALPHA)) { - c2 = 11; + c = 11; break; } break; case 156108012: if (str.equals(Key.WAVE_OFFSET)) { - c2 = '\f'; + c = '\f'; break; } break; } - switch (c2) { + switch (c) { case 0: splineSet.setPoint(this.mFramePosition, this.mRotationX); break; @@ -549,88 +549,88 @@ public class KeyCycle extends Key { public float getValue(String str) { str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1249320806: if (str.equals(Key.ROTATION_X)) { - c2 = 0; + c = 0; break; } break; case -1249320805: if (str.equals(Key.ROTATION_Y)) { - c2 = 1; + c = 1; break; } break; case -1225497657: if (str.equals(Key.TRANSLATION_X)) { - c2 = 2; + c = 2; break; } break; case -1225497656: if (str.equals(Key.TRANSLATION_Y)) { - c2 = 3; + c = 3; break; } break; case -1225497655: if (str.equals(Key.TRANSLATION_Z)) { - c2 = 4; + c = 4; break; } break; case -1001078227: if (str.equals("progress")) { - c2 = 5; + c = 5; break; } break; case -908189618: if (str.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } break; case -908189617: if (str.equals(Key.SCALE_Y)) { - c2 = 7; + c = 7; break; } break; case -40300674: if (str.equals(Key.ROTATION)) { - c2 = '\b'; + c = '\b'; break; } break; case -4379043: if (str.equals(Key.ELEVATION)) { - c2 = '\t'; + c = '\t'; break; } break; case 37232917: if (str.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\n'; + c = '\n'; break; } break; case 92909918: if (str.equals(Key.ALPHA)) { - c2 = 11; + c = 11; break; } break; case 156108012: if (str.equals(Key.WAVE_OFFSET)) { - c2 = '\f'; + c = '\f'; break; } break; } - switch (c2) { + switch (c) { case 0: return this.mRotationX; case 1: @@ -671,106 +671,106 @@ public class KeyCycle extends Key { @Override // androidx.constraintlayout.motion.widget.Key public void setValue(String str, Object obj) { str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1812823328: if (str.equals("transitionEasing")) { - c2 = 0; + c = 0; break; } break; case -1249320806: if (str.equals(Key.ROTATION_X)) { - c2 = 1; + c = 1; break; } break; case -1249320805: if (str.equals(Key.ROTATION_Y)) { - c2 = 2; + c = 2; break; } break; case -1225497657: if (str.equals(Key.TRANSLATION_X)) { - c2 = 3; + c = 3; break; } break; case -1225497656: if (str.equals(Key.TRANSLATION_Y)) { - c2 = 4; + c = 4; break; } break; case -1001078227: if (str.equals("progress")) { - c2 = 5; + c = 5; break; } break; case -908189618: if (str.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } break; case -908189617: if (str.equals(Key.SCALE_Y)) { - c2 = 7; + c = 7; break; } break; case -40300674: if (str.equals(Key.ROTATION)) { - c2 = '\b'; + c = '\b'; break; } break; case -4379043: if (str.equals(Key.ELEVATION)) { - c2 = '\t'; + c = '\t'; break; } break; case 37232917: if (str.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\n'; + c = '\n'; break; } break; case 92909918: if (str.equals(Key.ALPHA)) { - c2 = 11; + c = 11; break; } break; case 156108012: if (str.equals(Key.WAVE_OFFSET)) { - c2 = '\f'; + c = '\f'; break; } break; case 184161818: if (str.equals(Key.WAVE_PERIOD)) { - c2 = '\r'; + c = '\r'; break; } break; case 579057826: if (str.equals("curveFit")) { - c2 = 14; + c = 14; break; } break; case 1317633238: if (str.equals("mTranslationZ")) { - c2 = 15; + c = 15; break; } break; } - switch (c2) { + switch (c) { case 0: this.mTransitionEasing = obj.toString(); return; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyCycleOscillator.java b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyCycleOscillator.java index 7012de075c..678843f0e3 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyCycleOscillator.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyCycleOscillator.java @@ -6,7 +6,7 @@ import android.view.View; import androidx.constraintlayout.motion.utils.CurveFit; import androidx.constraintlayout.motion.utils.Oscillator; import androidx.constraintlayout.widget.ConstraintAttribute; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; @@ -400,94 +400,94 @@ public abstract class KeyCycleOscillator { if (str.startsWith(Key.CUSTOM)) { return new CustomSet(); } - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1249320806: if (str.equals(Key.ROTATION_X)) { - c2 = 0; + c = 0; break; } break; case -1249320805: if (str.equals(Key.ROTATION_Y)) { - c2 = 1; + c = 1; break; } break; case -1225497657: if (str.equals(Key.TRANSLATION_X)) { - c2 = 2; + c = 2; break; } break; case -1225497656: if (str.equals(Key.TRANSLATION_Y)) { - c2 = 3; + c = 3; break; } break; case -1225497655: if (str.equals(Key.TRANSLATION_Z)) { - c2 = 4; + c = 4; break; } break; case -1001078227: if (str.equals("progress")) { - c2 = 5; + c = 5; break; } break; case -908189618: if (str.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } break; case -908189617: if (str.equals(Key.SCALE_Y)) { - c2 = 7; + c = 7; break; } break; case -797520672: if (str.equals(Key.WAVE_VARIES_BY)) { - c2 = '\b'; + c = '\b'; break; } break; case -40300674: if (str.equals(Key.ROTATION)) { - c2 = '\t'; + c = '\t'; break; } break; case -4379043: if (str.equals(Key.ELEVATION)) { - c2 = '\n'; + c = '\n'; break; } break; case 37232917: if (str.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = 11; + c = 11; break; } break; case 92909918: if (str.equals(Key.ALPHA)) { - c2 = '\f'; + c = '\f'; break; } break; case 156108012: if (str.equals(Key.WAVE_OFFSET)) { - c2 = '\r'; + c = '\r'; break; } break; } - switch (c2) { + switch (c) { case 0: return new RotationXset(); case 1: diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyPosition.java b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyPosition.java index 3f556c2ab9..db39abb12d 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyPosition.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyPosition.java @@ -10,7 +10,7 @@ import android.view.View; import android.view.ViewGroup; import androidx.constraintlayout.motion.utils.Easing; import androidx.constraintlayout.widget.R; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; public class KeyPosition extends KeyPositionBase { public static final int KEY_TYPE = 2; @@ -309,52 +309,52 @@ public class KeyPosition extends KeyPositionBase { @Override // androidx.constraintlayout.motion.widget.Key public void setValue(String str, Object obj) { str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1812823328: if (str.equals("transitionEasing")) { - c2 = 0; + c = 0; break; } break; case -1127236479: if (str.equals("percentWidth")) { - c2 = 1; + c = 1; break; } break; case -1017587252: if (str.equals("percentHeight")) { - c2 = 2; + c = 2; break; } break; case -827014263: if (str.equals("drawPath")) { - c2 = 3; + c = 3; break; } break; case -200259324: if (str.equals("sizePercent")) { - c2 = 4; + c = 4; break; } break; case 428090547: if (str.equals(PERCENT_X)) { - c2 = 5; + c = 5; break; } break; case 428090548: if (str.equals(PERCENT_Y)) { - c2 = 6; + c = 6; break; } break; } - switch (c2) { + switch (c) { case 0: this.mTransitionEasing = obj.toString(); return; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyTimeCycle.java b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyTimeCycle.java index 6bbc141ccb..0bffa11c88 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyTimeCycle.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyTimeCycle.java @@ -8,7 +8,7 @@ import android.util.SparseIntArray; import androidx.constraintlayout.motion.widget.TimeCycleSplineSet; import androidx.constraintlayout.widget.ConstraintAttribute; import androidx.constraintlayout.widget.R; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; @@ -343,7 +343,7 @@ public class KeyTimeCycle extends Key { while (it.hasNext()) { String next = it.next(); TimeCycleSplineSet timeCycleSplineSet = hashMap.get(next); - char c2 = 7; + char c = 7; if (next.startsWith(Key.CUSTOM)) { ConstraintAttribute constraintAttribute = this.mCustomConstraints.get(next.substring(7)); if (constraintAttribute != null) { @@ -353,88 +353,88 @@ public class KeyTimeCycle extends Key { switch (next.hashCode()) { case -1249320806: if (next.equals(Key.ROTATION_X)) { - c2 = 0; + c = 0; break; } - c2 = 65535; + c = 65535; break; case -1249320805: if (next.equals(Key.ROTATION_Y)) { - c2 = 1; + c = 1; break; } - c2 = 65535; + c = 65535; break; case -1225497657: if (next.equals(Key.TRANSLATION_X)) { - c2 = 2; + c = 2; break; } - c2 = 65535; + c = 65535; break; case -1225497656: if (next.equals(Key.TRANSLATION_Y)) { - c2 = 3; + c = 3; break; } - c2 = 65535; + c = 65535; break; case -1225497655: if (next.equals(Key.TRANSLATION_Z)) { - c2 = 4; + c = 4; break; } - c2 = 65535; + c = 65535; break; case -1001078227: if (next.equals("progress")) { - c2 = 5; + c = 5; break; } - c2 = 65535; + c = 65535; break; case -908189618: if (next.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } - c2 = 65535; + c = 65535; break; case -908189617: break; case -40300674: if (next.equals(Key.ROTATION)) { - c2 = '\b'; + c = '\b'; break; } - c2 = 65535; + c = 65535; break; case -4379043: if (next.equals(Key.ELEVATION)) { - c2 = '\t'; + c = '\t'; break; } - c2 = 65535; + c = 65535; break; case 37232917: if (next.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\n'; + c = '\n'; break; } - c2 = 65535; + c = 65535; break; case 92909918: if (next.equals(Key.ALPHA)) { - c2 = 11; + c = 11; break; } - c2 = 65535; + c = 65535; break; default: - c2 = 65535; + c = 65535; break; } - switch (c2) { + switch (c) { case 0: if (!Float.isNaN(this.mRotationX)) { timeCycleSplineSet.setPoint(this.mFramePosition, this.mRotationX, this.mWavePeriod, this.mWaveShape, this.mWaveOffset); @@ -633,94 +633,94 @@ public class KeyTimeCycle extends Key { @Override // androidx.constraintlayout.motion.widget.Key public void setValue(String str, Object obj) { str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1812823328: if (str.equals("transitionEasing")) { - c2 = 0; + c = 0; break; } break; case -1249320806: if (str.equals(Key.ROTATION_X)) { - c2 = 1; + c = 1; break; } break; case -1249320805: if (str.equals(Key.ROTATION_Y)) { - c2 = 2; + c = 2; break; } break; case -1225497657: if (str.equals(Key.TRANSLATION_X)) { - c2 = 3; + c = 3; break; } break; case -1225497656: if (str.equals(Key.TRANSLATION_Y)) { - c2 = 4; + c = 4; break; } break; case -1001078227: if (str.equals("progress")) { - c2 = 5; + c = 5; break; } break; case -908189618: if (str.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } break; case -908189617: if (str.equals(Key.SCALE_Y)) { - c2 = 7; + c = 7; break; } break; case -40300674: if (str.equals(Key.ROTATION)) { - c2 = '\b'; + c = '\b'; break; } break; case -4379043: if (str.equals(Key.ELEVATION)) { - c2 = '\t'; + c = '\t'; break; } break; case 37232917: if (str.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\n'; + c = '\n'; break; } break; case 92909918: if (str.equals(Key.ALPHA)) { - c2 = 11; + c = 11; break; } break; case 579057826: if (str.equals("curveFit")) { - c2 = '\f'; + c = '\f'; break; } break; case 1317633238: if (str.equals("mTranslationZ")) { - c2 = '\r'; + c = '\r'; break; } break; } - switch (c2) { + switch (c) { case 0: this.mTransitionEasing = obj.toString(); return; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyTrigger.java b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyTrigger.java index bccdd352d9..2bb90e557d 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/KeyTrigger.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/KeyTrigger.java @@ -9,7 +9,7 @@ import android.util.SparseIntArray; import android.view.View; import android.view.ViewGroup; import androidx.constraintlayout.widget.R; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Method; import java.util.HashMap; import java.util.HashSet; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/MotionConstrainedPoint.java b/app/src/main/java/androidx/constraintlayout/motion/widget/MotionConstrainedPoint.java index f2425d7b05..5bf176849e 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/MotionConstrainedPoint.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/MotionConstrainedPoint.java @@ -45,10 +45,10 @@ public class MotionConstrainedPoint implements Comparable 1.0E-6f; @@ -58,96 +58,96 @@ public class MotionConstrainedPoint implements Comparable(); Iterator it2 = hashSet2.iterator(); @@ -990,7 +990,7 @@ public class MotionController { String next2 = it2.next(); if (next2.startsWith("CUSTOM,")) { SparseArray sparseArray = new SparseArray(); - String str = next2.split(",")[c3]; + String str = next2.split(",")[c2]; Iterator it3 = this.mKeyList.iterator(); while (it3.hasNext()) { Key next3 = it3.next(); @@ -1007,7 +1007,7 @@ public class MotionController { splineSet.setType(next2); this.mAttributesMap.put(next2, splineSet); } - c3 = 1; + c2 = 1; } ArrayList arrayList3 = this.mKeyList; if (arrayList3 != null) { @@ -1181,7 +1181,7 @@ public class MotionController { dArr3 = new double[size]; int[] iArr5 = new int[i5]; iArr5[1] = motionPathsArr[i18].getCustomDataCount(str7); - iArr5[c2] = size; + iArr5[c] = size; dArr4 = (double[][]) Array.newInstance(double.class, iArr5); } dArr3[i19] = (double) motionPathsArr[i18].time; @@ -1190,12 +1190,12 @@ public class MotionController { } i18++; i5 = 2; - c2 = 0; + c = 0; } i17++; this.mSpline[i17] = CurveFit.get(this.mCurveFitType, Arrays.copyOf(dArr3, i19), (double[][]) Arrays.copyOf(dArr4, i19)); i5 = 2; - c2 = 0; + c = 0; } this.mSpline[0] = CurveFit.get(this.mCurveFitType, dArr2, dArr); if (motionPathsArr[0].mPathMotionArc != Key.UNSET) { @@ -1208,8 +1208,8 @@ public class MotionController { for (int i20 = 0; i20 < size; i20++) { iArr6[i20] = motionPathsArr[i20].mPathMotionArc; dArr5[i20] = (double) motionPathsArr[i20].time; - dArr6[i20][0] = (double) motionPathsArr[i20].f21x; - dArr6[i20][1] = (double) motionPathsArr[i20].f22y; + dArr6[i20][0] = (double) motionPathsArr[i20].f28x; + dArr6[i20][1] = (double) motionPathsArr[i20].f29y; } this.mArcSpline = CurveFit.getArc(iArr6, dArr5, dArr6); } @@ -1243,13 +1243,13 @@ public class MotionController { public String toString() { StringBuilder R = a.R(" start: x: "); - R.append(this.mStartMotionPath.f21x); + R.append(this.mStartMotionPath.f28x); R.append(" y: "); - R.append(this.mStartMotionPath.f22y); + R.append(this.mStartMotionPath.f29y); R.append(" end: x: "); - R.append(this.mEndMotionPath.f21x); + R.append(this.mEndMotionPath.f28x); R.append(" y: "); - R.append(this.mEndMotionPath.f22y); + R.append(this.mEndMotionPath.f29y); return R.toString(); } } diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/MotionLayout.java b/app/src/main/java/androidx/constraintlayout/motion/widget/MotionLayout.java index 79c0cbd6ee..8958c17e24 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/MotionLayout.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/MotionLayout.java @@ -43,7 +43,7 @@ import androidx.core.internal.view.SupportMenu; import androidx.core.view.NestedScrollingParent3; import androidx.core.view.ViewCompat; import androidx.exifinterface.media.ExifInterface; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.util.ArrayList; import java.util.HashMap; @@ -926,15 +926,15 @@ public class MotionLayout extends ConstraintLayout implements NestedScrollingPar public static class MyTracker implements MotionTracker { /* renamed from: me reason: collision with root package name */ - private static MyTracker f20me = new MyTracker(); + private static MyTracker f27me = new MyTracker(); public VelocityTracker tracker; private MyTracker() { } public static MyTracker obtain() { - f20me.tracker = VelocityTracker.obtain(); - return f20me; + f27me.tracker = VelocityTracker.obtain(); + return f27me; } @Override // androidx.constraintlayout.motion.widget.MotionLayout.MotionTracker diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/MotionPaths.java b/app/src/main/java/androidx/constraintlayout/motion/widget/MotionPaths.java index ecd8015650..2cebe77ede 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/MotionPaths.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/MotionPaths.java @@ -39,10 +39,10 @@ public class MotionPaths implements Comparable { public float width; /* renamed from: x reason: collision with root package name */ - public float f21x; + public float f28x; /* renamed from: y reason: collision with root package name */ - public float f22y; + public float f29y; public MotionPaths() { this.mDrawPath = 0; @@ -107,14 +107,14 @@ public class MotionPaths implements Comparable { public void different(MotionPaths motionPaths, boolean[] zArr, String[] strArr, boolean z2) { zArr[0] = zArr[0] | diff(this.position, motionPaths.position); - zArr[1] = zArr[1] | diff(this.f21x, motionPaths.f21x) | z2; - zArr[2] = z2 | diff(this.f22y, motionPaths.f22y) | zArr[2]; + zArr[1] = zArr[1] | diff(this.f28x, motionPaths.f28x) | z2; + zArr[2] = z2 | diff(this.f29y, motionPaths.f29y) | zArr[2]; zArr[3] = zArr[3] | diff(this.width, motionPaths.width); zArr[4] = diff(this.height, motionPaths.height) | zArr[4]; } public void fillStandard(double[] dArr, int[] iArr) { - float[] fArr = {this.position, this.f21x, this.f22y, this.width, this.height, this.mPathRotate}; + float[] fArr = {this.position, this.f28x, this.f29y, this.width, this.height, this.mPathRotate}; int i = 0; for (int i2 = 0; i2 < iArr.length; i2++) { if (iArr[i2] < 6) { @@ -141,8 +141,8 @@ public class MotionPaths implements Comparable { } public void getCenter(int[] iArr, double[] dArr, float[] fArr, int i) { - float f = this.f21x; - float f2 = this.f22y; + float f = this.f28x; + float f2 = this.f29y; float f3 = this.width; float f4 = this.height; for (int i2 = 0; i2 < iArr.length; i2++) { @@ -185,8 +185,8 @@ public class MotionPaths implements Comparable { } public void getRect(int[] iArr, double[] dArr, float[] fArr, int i) { - float f = this.f21x; - float f2 = this.f22y; + float f = this.f28x; + float f2 = this.f29y; float f3 = this.width; float f4 = this.height; for (int i2 = 0; i2 < iArr.length; i2++) { @@ -239,17 +239,17 @@ public class MotionPaths implements Comparable { float f8 = motionPaths.height; float f9 = f7 - f8; this.position = this.time; - float f10 = motionPaths.f21x; - float f11 = motionPaths.f22y; - float f12 = ((f4 / 2.0f) + motionPaths2.f21x) - ((f5 / 2.0f) + f10); - float f13 = ((f7 / 2.0f) + motionPaths2.f22y) - ((f8 / 2.0f) + f11); + float f10 = motionPaths.f28x; + float f11 = motionPaths.f29y; + float f12 = ((f4 / 2.0f) + motionPaths2.f28x) - ((f5 / 2.0f) + f10); + float f13 = ((f7 / 2.0f) + motionPaths2.f29y) - ((f8 / 2.0f) + f11); float f14 = f6 * f2; float f15 = f14 / 2.0f; - this.f21x = (float) ((int) (((f12 * f) + f10) - f15)); + this.f28x = (float) ((int) (((f12 * f) + f10) - f15)); float f16 = (f13 * f) + f11; float f17 = f9 * f3; float f18 = f17 / 2.0f; - this.f22y = (float) ((int) (f16 - f18)); + this.f29y = (float) ((int) (f16 - f18)); this.width = (float) ((int) (f5 + f14)); this.height = (float) ((int) (f8 + f17)); float f19 = Float.isNaN(keyPosition.mPercentX) ? f : keyPosition.mPercentX; @@ -262,8 +262,8 @@ public class MotionPaths implements Comparable { f20 = keyPosition.mAltPercentX; } this.mMode = 2; - this.f21x = (float) ((int) (((f20 * f13) + ((f19 * f12) + motionPaths.f21x)) - f15)); - this.f22y = (float) ((int) (((f13 * f) + ((f12 * f21) + motionPaths.f22y)) - f18)); + this.f28x = (float) ((int) (((f20 * f13) + ((f19 * f12) + motionPaths.f28x)) - f15)); + this.f29y = (float) ((int) (((f13 * f) + ((f12 * f21) + motionPaths.f29y)) - f18)); this.mKeyFrameEasing = Easing.getInterpolator(keyPosition.mTransitionEasing); this.mPathMotionArc = keyPosition.mPathMotionArc; } @@ -280,30 +280,30 @@ public class MotionPaths implements Comparable { if (!Float.isNaN(keyPosition.mPercentX)) { f = keyPosition.mPercentX; } - float f6 = motionPaths.f21x; + float f6 = motionPaths.f28x; float f7 = motionPaths.width; - float f8 = motionPaths.f22y; + float f8 = motionPaths.f29y; float f9 = motionPaths.height; - float f10 = ((motionPaths2.width / 2.0f) + motionPaths2.f21x) - ((f7 / 2.0f) + f6); - float f11 = ((motionPaths2.height / 2.0f) + motionPaths2.f22y) - ((f9 / 2.0f) + f8); + float f10 = ((motionPaths2.width / 2.0f) + motionPaths2.f28x) - ((f7 / 2.0f) + f6); + float f11 = ((motionPaths2.height / 2.0f) + motionPaths2.f29y) - ((f9 / 2.0f) + f8); float f12 = f10 * f; float f13 = f4 * f2; float f14 = f13 / 2.0f; - this.f21x = (float) ((int) ((f6 + f12) - f14)); + this.f28x = (float) ((int) ((f6 + f12) - f14)); float f15 = f * f11; float f16 = f5 * f3; float f17 = f16 / 2.0f; - this.f22y = (float) ((int) ((f8 + f15) - f17)); + this.f29y = (float) ((int) ((f8 + f15) - f17)); this.width = (float) ((int) (f7 + f13)); this.height = (float) ((int) (f9 + f16)); float f18 = Float.isNaN(keyPosition.mPercentY) ? 0.0f : keyPosition.mPercentY; this.mMode = 1; - float f19 = (float) ((int) ((motionPaths.f21x + f12) - f14)); - this.f21x = f19; - float f20 = (float) ((int) ((motionPaths.f22y + f15) - f17)); - this.f22y = f20; - this.f21x = f19 + ((-f11) * f18); - this.f22y = f20 + (f10 * f18); + float f19 = (float) ((int) ((motionPaths.f28x + f12) - f14)); + this.f28x = f19; + float f20 = (float) ((int) ((motionPaths.f29y + f15) - f17)); + this.f29y = f20; + this.f28x = f19 + ((-f11) * f18); + this.f29y = f20 + (f10 * f18); this.mKeyFrameEasing = Easing.getInterpolator(keyPosition.mTransitionEasing); this.mPathMotionArc = keyPosition.mPathMotionArc; } @@ -321,30 +321,30 @@ public class MotionPaths implements Comparable { float f8 = motionPaths.height; float f9 = f7 - f8; this.position = this.time; - float f10 = motionPaths.f21x; - float f11 = motionPaths.f22y; - float f12 = (f4 / 2.0f) + motionPaths2.f21x; - float f13 = (f7 / 2.0f) + motionPaths2.f22y; + float f10 = motionPaths.f28x; + float f11 = motionPaths.f29y; + float f12 = (f4 / 2.0f) + motionPaths2.f28x; + float f13 = (f7 / 2.0f) + motionPaths2.f29y; float f14 = f6 * f2; - this.f21x = (float) ((int) ((((f12 - ((f5 / 2.0f) + f10)) * f) + f10) - (f14 / 2.0f))); + this.f28x = (float) ((int) ((((f12 - ((f5 / 2.0f) + f10)) * f) + f10) - (f14 / 2.0f))); float f15 = f9 * f3; - this.f22y = (float) ((int) ((((f13 - ((f8 / 2.0f) + f11)) * f) + f11) - (f15 / 2.0f))); + this.f29y = (float) ((int) ((((f13 - ((f8 / 2.0f) + f11)) * f) + f11) - (f15 / 2.0f))); this.width = (float) ((int) (f5 + f14)); this.height = (float) ((int) (f8 + f15)); this.mMode = 3; if (!Float.isNaN(keyPosition.mPercentX)) { - this.f21x = (float) ((int) (keyPosition.mPercentX * ((float) ((int) (((float) i) - this.width))))); + this.f28x = (float) ((int) (keyPosition.mPercentX * ((float) ((int) (((float) i) - this.width))))); } if (!Float.isNaN(keyPosition.mPercentY)) { - this.f22y = (float) ((int) (keyPosition.mPercentY * ((float) ((int) (((float) i2) - this.height))))); + this.f29y = (float) ((int) (keyPosition.mPercentY * ((float) ((int) (((float) i2) - this.height))))); } this.mKeyFrameEasing = Easing.getInterpolator(keyPosition.mTransitionEasing); this.mPathMotionArc = keyPosition.mPathMotionArc; } public void setBounds(float f, float f2, float f3, float f4) { - this.f21x = f; - this.f22y = f2; + this.f28x = f; + this.f29y = f2; this.width = f3; this.height = f4; } @@ -376,8 +376,8 @@ public class MotionPaths implements Comparable { public void setView(View view, int[] iArr, double[] dArr, double[] dArr2, double[] dArr3) { float f; - float f2 = this.f21x; - float f3 = this.f22y; + float f2 = this.f28x; + float f3 = this.f29y; float f4 = this.width; float f5 = this.height; if (iArr.length != 0 && this.mTempValue.length <= iArr[iArr.length - 1]) { diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/MotionScene.java b/app/src/main/java/androidx/constraintlayout/motion/widget/MotionScene.java index b866262717..70821b2fef 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/MotionScene.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/MotionScene.java @@ -23,7 +23,7 @@ import androidx.constraintlayout.motion.widget.MotionLayout; import androidx.constraintlayout.widget.ConstraintSet; import androidx.constraintlayout.widget.R; import androidx.constraintlayout.widget.StateSet; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.models.domain.ModelAuditLogEntry; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import com.google.android.material.shadow.ShadowDrawableWrapper; @@ -615,7 +615,7 @@ public class MotionScene { try { int eventType = xml.getEventType(); while (true) { - char c2 = 1; + char c = 1; if (eventType != 1) { if (eventType == 0) { xml.getName(); @@ -628,53 +628,53 @@ public class MotionScene { switch (name.hashCode()) { case -1349929691: if (name.equals("ConstraintSet")) { - c2 = 5; + c = 5; break; } - c2 = 65535; + c = 65535; break; case -1239391468: if (name.equals("KeyFrameSet")) { - c2 = 6; + c = 6; break; } - c2 = 65535; + c = 65535; break; case 269306229: break; case 312750793: if (name.equals("OnClick")) { - c2 = 3; + c = 3; break; } - c2 = 65535; + c = 65535; break; case 327855227: if (name.equals("OnSwipe")) { - c2 = 2; + c = 2; break; } - c2 = 65535; + c = 65535; break; case 793277014: if (name.equals(TAG)) { - c2 = 0; + c = 0; break; } - c2 = 65535; + c = 65535; break; case 1382829617: if (name.equals("StateSet")) { - c2 = 4; + c = 4; break; } - c2 = 65535; + c = 65535; break; default: - c2 = 65535; + c = 65535; break; } - switch (c2) { + switch (c) { case 0: parseMotionSceneTags(context, xml); continue; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/SplineSet.java b/app/src/main/java/androidx/constraintlayout/motion/widget/SplineSet.java index 09131e13c4..1ef9d7f06b 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/SplineSet.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/SplineSet.java @@ -5,7 +5,7 @@ import android.util.SparseArray; import android.view.View; import androidx.constraintlayout.motion.utils.CurveFit; import androidx.constraintlayout.widget.ConstraintAttribute; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -250,106 +250,106 @@ public abstract class SplineSet { public static SplineSet makeSpline(String str) { str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1249320806: if (str.equals(Key.ROTATION_X)) { - c2 = 0; + c = 0; break; } break; case -1249320805: if (str.equals(Key.ROTATION_Y)) { - c2 = 1; + c = 1; break; } break; case -1225497657: if (str.equals(Key.TRANSLATION_X)) { - c2 = 2; + c = 2; break; } break; case -1225497656: if (str.equals(Key.TRANSLATION_Y)) { - c2 = 3; + c = 3; break; } break; case -1225497655: if (str.equals(Key.TRANSLATION_Z)) { - c2 = 4; + c = 4; break; } break; case -1001078227: if (str.equals("progress")) { - c2 = 5; + c = 5; break; } break; case -908189618: if (str.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } break; case -908189617: if (str.equals(Key.SCALE_Y)) { - c2 = 7; + c = 7; break; } break; case -797520672: if (str.equals(Key.WAVE_VARIES_BY)) { - c2 = '\b'; + c = '\b'; break; } break; case -760884510: if (str.equals(Key.PIVOT_X)) { - c2 = '\t'; + c = '\t'; break; } break; case -760884509: if (str.equals(Key.PIVOT_Y)) { - c2 = '\n'; + c = '\n'; break; } break; case -40300674: if (str.equals(Key.ROTATION)) { - c2 = 11; + c = 11; break; } break; case -4379043: if (str.equals(Key.ELEVATION)) { - c2 = '\f'; + c = '\f'; break; } break; case 37232917: if (str.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\r'; + c = '\r'; break; } break; case 92909918: if (str.equals(Key.ALPHA)) { - c2 = 14; + c = 14; break; } break; case 156108012: if (str.equals(Key.WAVE_OFFSET)) { - c2 = 15; + c = 15; break; } break; } - switch (c2) { + switch (c) { case 0: return new RotationXset(); case 1: diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/TimeCycleSplineSet.java b/app/src/main/java/androidx/constraintlayout/motion/widget/TimeCycleSplineSet.java index c98896ca95..d40e09b207 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/TimeCycleSplineSet.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/TimeCycleSplineSet.java @@ -5,7 +5,7 @@ import android.util.SparseArray; import android.view.View; import androidx.constraintlayout.motion.utils.CurveFit; import androidx.constraintlayout.widget.ConstraintAttribute; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; @@ -303,82 +303,82 @@ public abstract class TimeCycleSplineSet { public static TimeCycleSplineSet makeSpline(String str, long j) { TimeCycleSplineSet timeCycleSplineSet; str.hashCode(); - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -1249320806: if (str.equals(Key.ROTATION_X)) { - c2 = 0; + c = 0; break; } break; case -1249320805: if (str.equals(Key.ROTATION_Y)) { - c2 = 1; + c = 1; break; } break; case -1225497657: if (str.equals(Key.TRANSLATION_X)) { - c2 = 2; + c = 2; break; } break; case -1225497656: if (str.equals(Key.TRANSLATION_Y)) { - c2 = 3; + c = 3; break; } break; case -1225497655: if (str.equals(Key.TRANSLATION_Z)) { - c2 = 4; + c = 4; break; } break; case -1001078227: if (str.equals("progress")) { - c2 = 5; + c = 5; break; } break; case -908189618: if (str.equals(Key.SCALE_X)) { - c2 = 6; + c = 6; break; } break; case -908189617: if (str.equals(Key.SCALE_Y)) { - c2 = 7; + c = 7; break; } break; case -40300674: if (str.equals(Key.ROTATION)) { - c2 = '\b'; + c = '\b'; break; } break; case -4379043: if (str.equals(Key.ELEVATION)) { - c2 = '\t'; + c = '\t'; break; } break; case 37232917: if (str.equals(Key.TRANSITION_PATH_ROTATE)) { - c2 = '\n'; + c = '\n'; break; } break; case 92909918: if (str.equals(Key.ALPHA)) { - c2 = 11; + c = 11; break; } break; } - switch (c2) { + switch (c) { case 0: timeCycleSplineSet = new RotationXset(); break; diff --git a/app/src/main/java/androidx/constraintlayout/motion/widget/TouchResponse.java b/app/src/main/java/androidx/constraintlayout/motion/widget/TouchResponse.java index 510fe0f45b..c3bfca2bad 100644 --- a/app/src/main/java/androidx/constraintlayout/motion/widget/TouchResponse.java +++ b/app/src/main/java/androidx/constraintlayout/motion/widget/TouchResponse.java @@ -12,7 +12,7 @@ import android.view.ViewGroup; import androidx.constraintlayout.motion.widget.MotionLayout; import androidx.constraintlayout.widget.R; import androidx.core.widget.NestedScrollView; -import c.d.b.a.a; +import b.d.b.a.a; import org.xmlpull.v1.XmlPullParser; public class TouchResponse { private static final boolean DEBUG = false; diff --git a/app/src/main/java/androidx/constraintlayout/solver/ArrayLinkedVariables.java b/app/src/main/java/androidx/constraintlayout/solver/ArrayLinkedVariables.java index 4928d16d9d..bdcad3cd12 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/ArrayLinkedVariables.java +++ b/app/src/main/java/androidx/constraintlayout/solver/ArrayLinkedVariables.java @@ -1,7 +1,7 @@ package androidx.constraintlayout.solver; import androidx.constraintlayout.solver.ArrayRow; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.PrintStream; import java.util.Arrays; public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { @@ -34,7 +34,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { if (i == -1) { this.mHead = 0; this.mArrayValues[0] = f; - this.mArrayIndices[0] = solverVariable.f23id; + this.mArrayIndices[0] = solverVariable.f30id; this.mArrayNextIndices[0] = -1; solverVariable.usageInRowCount++; solverVariable.addToRow(this.mRow); @@ -57,7 +57,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { while (i != -1 && i3 < this.currentSize) { int[] iArr2 = this.mArrayIndices; int i5 = iArr2[i]; - int i6 = solverVariable.f23id; + int i6 = solverVariable.f30id; if (i5 == i6) { float[] fArr = this.mArrayValues; float f3 = fArr[i] + f; @@ -127,7 +127,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { this.mArrayIndices = Arrays.copyOf(this.mArrayIndices, this.ROW_SIZE); this.mArrayNextIndices = Arrays.copyOf(this.mArrayNextIndices, this.ROW_SIZE); } - this.mArrayIndices[i7] = solverVariable.f23id; + this.mArrayIndices[i7] = solverVariable.f30id; this.mArrayValues[i7] = f; if (i4 != -1) { int[] iArr8 = this.mArrayNextIndices; @@ -178,7 +178,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { } int i2 = 0; while (i != -1 && i2 < this.currentSize) { - if (this.mArrayIndices[i] == solverVariable.f23id) { + if (this.mArrayIndices[i] == solverVariable.f30id) { return true; } i = this.mArrayNextIndices[i]; @@ -218,7 +218,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { int i = this.mHead; int i2 = 0; while (i != -1 && i2 < this.currentSize) { - if (this.mArrayIndices[i] == solverVariable.f23id) { + if (this.mArrayIndices[i] == solverVariable.f30id) { return this.mArrayValues[i]; } i = this.mArrayNextIndices[i]; @@ -318,7 +318,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { } int i2 = 0; while (i != -1 && i2 < this.currentSize) { - if (this.mArrayIndices[i] == solverVariable.f23id) { + if (this.mArrayIndices[i] == solverVariable.f30id) { return i; } i = this.mArrayNextIndices[i]; @@ -349,7 +349,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { if (i == -1) { this.mHead = 0; this.mArrayValues[0] = f; - this.mArrayIndices[0] = solverVariable.f23id; + this.mArrayIndices[0] = solverVariable.f30id; this.mArrayNextIndices[0] = -1; solverVariable.usageInRowCount++; solverVariable.addToRow(this.mRow); @@ -372,7 +372,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { while (i != -1 && i3 < this.currentSize) { int[] iArr2 = this.mArrayIndices; int i5 = iArr2[i]; - int i6 = solverVariable.f23id; + int i6 = solverVariable.f30id; if (i5 == i6) { this.mArrayValues[i] = f; return; @@ -419,7 +419,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { this.mArrayIndices = Arrays.copyOf(this.mArrayIndices, this.ROW_SIZE); this.mArrayNextIndices = Arrays.copyOf(this.mArrayNextIndices, this.ROW_SIZE); } - this.mArrayIndices[i7] = solverVariable.f23id; + this.mArrayIndices[i7] = solverVariable.f30id; this.mArrayValues[i7] = f; if (i4 != -1) { int[] iArr7 = this.mArrayNextIndices; @@ -458,7 +458,7 @@ public class ArrayLinkedVariables implements ArrayRow.ArrayRowVariables { int i2 = 0; int i3 = -1; while (i != -1 && i2 < this.currentSize) { - if (this.mArrayIndices[i] == solverVariable.f23id) { + if (this.mArrayIndices[i] == solverVariable.f30id) { if (i == this.mHead) { this.mHead = this.mArrayNextIndices[i]; } else { diff --git a/app/src/main/java/androidx/constraintlayout/solver/ArrayRow.java b/app/src/main/java/androidx/constraintlayout/solver/ArrayRow.java index d7d788b8d3..bd4974e85b 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/ArrayRow.java +++ b/app/src/main/java/androidx/constraintlayout/solver/ArrayRow.java @@ -2,7 +2,7 @@ package androidx.constraintlayout.solver; import androidx.constraintlayout.solver.LinearSystem; import androidx.constraintlayout.solver.SolverVariable; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; public class ArrayRow implements LinearSystem.Row { private static final boolean DEBUG = false; @@ -66,7 +66,7 @@ public class ArrayRow implements LinearSystem.Row { float variableValue = this.variables.getVariableValue(i); if (variableValue < 0.0f) { SolverVariable variable = this.variables.getVariable(i); - if ((zArr == null || !zArr[variable.f23id]) && variable != solverVariable && (((type = variable.mType) == SolverVariable.Type.SLACK || type == SolverVariable.Type.ERROR) && variableValue < f)) { + if ((zArr == null || !zArr[variable.f30id]) && variable != solverVariable && (((type = variable.mType) == SolverVariable.Type.SLACK || type == SolverVariable.Type.ERROR) && variableValue < f)) { f = variableValue; solverVariable2 = variable; } diff --git a/app/src/main/java/androidx/constraintlayout/solver/LinearSystem.java b/app/src/main/java/androidx/constraintlayout/solver/LinearSystem.java index 4f34e3b22a..e83a377fe3 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/LinearSystem.java +++ b/app/src/main/java/androidx/constraintlayout/solver/LinearSystem.java @@ -3,7 +3,7 @@ package androidx.constraintlayout.solver; import androidx.constraintlayout.solver.SolverVariable; import androidx.constraintlayout.solver.widgets.ConstraintAnchor; import androidx.constraintlayout.solver.widgets.ConstraintWidget; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import java.io.PrintStream; import java.util.Arrays; @@ -206,7 +206,7 @@ public class LinearSystem { int i = this.mVariablesID + 1; this.mVariablesID = i; this.mNumColumns++; - acquireSolverVariable.f23id = i; + acquireSolverVariable.f30id = i; if (this.mVariables == null) { this.mVariables = new HashMap<>(); } @@ -281,7 +281,7 @@ public class LinearSystem { while (i9 < i7) { float f3 = variable.strengthVector[i9] / f2; if ((f3 < f && i9 == i5) || i9 > i5) { - i4 = variable.f23id; + i4 = variable.f30id; i5 = i9; i3 = i6; f = f3; @@ -387,12 +387,12 @@ public class LinearSystem { return i2; } if (row.getKey() != null) { - this.mAlreadyTestedCandidates[row.getKey().f23id] = true; + this.mAlreadyTestedCandidates[row.getKey().f30id] = true; } SolverVariable pivotCandidate = row.getPivotCandidate(this, this.mAlreadyTestedCandidates); if (pivotCandidate != null) { boolean[] zArr = this.mAlreadyTestedCandidates; - int i3 = pivotCandidate.f23id; + int i3 = pivotCandidate.f30id; if (zArr[i3]) { return i2; } @@ -594,7 +594,7 @@ public class LinearSystem { solverVariable.setFinalValue(this, f); for (int i3 = 0; i3 < this.mVariablesID + 1; i3++) { SolverVariable solverVariable2 = this.mCache.mIndexedVariables[i3]; - if (solverVariable2 != null && solverVariable2.isSynonym && solverVariable2.synonym == solverVariable.f23id) { + if (solverVariable2 != null && solverVariable2.isSynonym && solverVariable2.synonym == solverVariable.f30id) { solverVariable2.setFinalValue(this, solverVariable2.synonymDelta + f); } } @@ -715,7 +715,7 @@ public class LinearSystem { int i2 = this.mVariablesID + 1; this.mVariablesID = i2; this.mNumColumns++; - acquireSolverVariable.f23id = i2; + acquireSolverVariable.f30id = i2; acquireSolverVariable.strength = i; this.mCache.mIndexedVariables[i2] = acquireSolverVariable; this.mGoal.addError(acquireSolverVariable); @@ -734,7 +734,7 @@ public class LinearSystem { int i = this.mVariablesID + 1; this.mVariablesID = i; this.mNumColumns++; - acquireSolverVariable.f23id = i; + acquireSolverVariable.f30id = i; this.mCache.mIndexedVariables[i] = acquireSolverVariable; return acquireSolverVariable; } @@ -754,7 +754,7 @@ public class LinearSystem { constraintAnchor.resetSolverVariable(this.mCache); solverVariable = constraintAnchor.getSolverVariable(); } - int i = solverVariable.f23id; + int i = solverVariable.f30id; if (i == -1 || i > this.mVariablesID || this.mCache.mIndexedVariables[i] == null) { if (i != -1) { solverVariable.reset(); @@ -762,7 +762,7 @@ public class LinearSystem { int i2 = this.mVariablesID + 1; this.mVariablesID = i2; this.mNumColumns++; - solverVariable.f23id = i2; + solverVariable.f30id = i2; solverVariable.mType = SolverVariable.Type.UNRESTRICTED; this.mCache.mIndexedVariables[i2] = solverVariable; } @@ -805,7 +805,7 @@ public class LinearSystem { int i = this.mVariablesID + 1; this.mVariablesID = i; this.mNumColumns++; - acquireSolverVariable.f23id = i; + acquireSolverVariable.f30id = i; this.mCache.mIndexedVariables[i] = acquireSolverVariable; return acquireSolverVariable; } diff --git a/app/src/main/java/androidx/constraintlayout/solver/Metrics.java b/app/src/main/java/androidx/constraintlayout/solver/Metrics.java index 430e6dc65c..19ddd2617e 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/Metrics.java +++ b/app/src/main/java/androidx/constraintlayout/solver/Metrics.java @@ -1,6 +1,6 @@ package androidx.constraintlayout.solver; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; public class Metrics { public long additionalMeasures; diff --git a/app/src/main/java/androidx/constraintlayout/solver/PriorityGoalRow.java b/app/src/main/java/androidx/constraintlayout/solver/PriorityGoalRow.java index e11f71d2ce..e95a265e61 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/PriorityGoalRow.java +++ b/app/src/main/java/androidx/constraintlayout/solver/PriorityGoalRow.java @@ -1,7 +1,7 @@ package androidx.constraintlayout.solver; import androidx.constraintlayout.solver.ArrayRow; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Arrays; import java.util.Comparator; public class PriorityGoalRow extends ArrayRow { @@ -21,7 +21,7 @@ public class PriorityGoalRow extends ArrayRow { } public int compare(SolverVariable solverVariable, SolverVariable solverVariable2) { - return solverVariable.f23id - solverVariable2.f23id; + return solverVariable.f30id - solverVariable2.f30id; } } @@ -77,7 +77,7 @@ public class PriorityGoalRow extends ArrayRow { @Override // java.lang.Comparable public int compareTo(Object obj) { - return this.variable.f23id - ((SolverVariable) obj).f23id; + return this.variable.f30id - ((SolverVariable) obj).f30id; } public void init(SolverVariable solverVariable) { @@ -167,7 +167,7 @@ public class PriorityGoalRow extends ArrayRow { solverVariableArr3[i3] = solverVariable; int i4 = i3 + 1; this.numGoals = i4; - if (i4 > 1 && solverVariableArr3[i4 - 1].f23id > solverVariable.f23id) { + if (i4 > 1 && solverVariableArr3[i4 - 1].f30id > solverVariable.f30id) { int i5 = 0; while (true) { i = this.numGoals; @@ -228,7 +228,7 @@ public class PriorityGoalRow extends ArrayRow { int i = -1; for (int i2 = 0; i2 < this.numGoals; i2++) { SolverVariable solverVariable = this.arrayGoals[i2]; - if (!zArr[solverVariable.f23id]) { + if (!zArr[solverVariable.f30id]) { this.accessor.init(solverVariable); if (i == -1) { if (!this.accessor.isNegative()) { diff --git a/app/src/main/java/androidx/constraintlayout/solver/SolverVariable.java b/app/src/main/java/androidx/constraintlayout/solver/SolverVariable.java index 522586c119..cbde20ba7f 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/SolverVariable.java +++ b/app/src/main/java/androidx/constraintlayout/solver/SolverVariable.java @@ -1,7 +1,7 @@ package androidx.constraintlayout.solver; import androidx.exifinterface.media.ExifInterface; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Arrays; import java.util.HashSet; public class SolverVariable { @@ -27,7 +27,7 @@ public class SolverVariable { public float[] goalStrengthVector; /* renamed from: id reason: collision with root package name */ - public int f23id; + public int f30id; public boolean inGoal; public HashSet inRows; public boolean isFinalValue; @@ -82,7 +82,7 @@ public class SolverVariable { } public SolverVariable(Type type, String str) { - this.f23id = -1; + this.f30id = -1; this.definitionId = -1; this.strength = 0; this.isFinalValue = false; @@ -99,7 +99,7 @@ public class SolverVariable { } public SolverVariable(String str, Type type) { - this.f23id = -1; + this.f30id = -1; this.definitionId = -1; this.strength = 0; this.isFinalValue = false; @@ -216,7 +216,7 @@ public class SolverVariable { this.mName = null; this.mType = Type.UNKNOWN; this.strength = 0; - this.f23id = -1; + this.f30id = -1; this.definitionId = -1; this.computedValue = 0.0f; this.isFinalValue = false; @@ -253,7 +253,7 @@ public class SolverVariable { public void setSynonym(LinearSystem linearSystem, SolverVariable solverVariable, float f) { this.isSynonym = true; - this.synonym = solverVariable.f23id; + this.synonym = solverVariable.f30id; this.synonymDelta = f; int i = this.mClientEquationsCount; this.definitionId = -1; @@ -302,7 +302,7 @@ public class SolverVariable { return R.toString(); } StringBuilder R2 = a.R(""); - R2.append(this.f23id); + R2.append(this.f30id); return R2.toString(); } diff --git a/app/src/main/java/androidx/constraintlayout/solver/SolverVariableValues.java b/app/src/main/java/androidx/constraintlayout/solver/SolverVariableValues.java index 12eceb74f2..9f68ecce42 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/SolverVariableValues.java +++ b/app/src/main/java/androidx/constraintlayout/solver/SolverVariableValues.java @@ -1,7 +1,7 @@ package androidx.constraintlayout.solver; import androidx.constraintlayout.solver.ArrayRow; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.PrintStream; import java.util.Arrays; public class SolverVariableValues implements ArrayRow.ArrayRowVariables { @@ -30,7 +30,7 @@ public class SolverVariableValues implements ArrayRow.ArrayRowVariables { private void addToHashMap(SolverVariable solverVariable, int i) { int[] iArr; - int i2 = solverVariable.f23id % this.HASH_SIZE; + int i2 = solverVariable.f30id % this.HASH_SIZE; int[] iArr2 = this.keys; int i3 = iArr2[i2]; if (i3 == -1) { @@ -49,7 +49,7 @@ public class SolverVariableValues implements ArrayRow.ArrayRowVariables { } private void addVariable(int i, SolverVariable solverVariable, float f) { - this.variables[i] = solverVariable.f23id; + this.variables[i] = solverVariable.f30id; this.values[i] = f; this.previous[i] = -1; this.next[i] = -1; @@ -129,7 +129,7 @@ public class SolverVariableValues implements ArrayRow.ArrayRowVariables { private void removeFromHashMap(SolverVariable solverVariable) { int[] iArr; - int i = solverVariable.f23id; + int i = solverVariable.f30id; int i2 = i % this.HASH_SIZE; int[] iArr2 = this.keys; int i3 = iArr2[i2]; @@ -281,7 +281,7 @@ public class SolverVariableValues implements ArrayRow.ArrayRowVariables { public int indexOf(SolverVariable solverVariable) { int[] iArr; if (!(this.mCount == 0 || solverVariable == null)) { - int i = solverVariable.f23id; + int i = solverVariable.f30id; int i2 = this.keys[i % this.HASH_SIZE]; if (i2 == -1) { return -1; @@ -341,7 +341,7 @@ public class SolverVariableValues implements ArrayRow.ArrayRowVariables { for (int i4 = 0; i4 < i; i4++) { int[] iArr = this.variables; int i5 = iArr[i2]; - int i6 = solverVariable.f23id; + int i6 = solverVariable.f30id; if (i5 == i6) { this.values[i2] = f; return; diff --git a/app/src/main/java/androidx/constraintlayout/solver/state/ConstraintReference.java b/app/src/main/java/androidx/constraintlayout/solver/state/ConstraintReference.java index 3e1ec8a4d3..66831540d4 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/state/ConstraintReference.java +++ b/app/src/main/java/androidx/constraintlayout/solver/state/ConstraintReference.java @@ -3,7 +3,7 @@ package androidx.constraintlayout.solver.state; import androidx.constraintlayout.solver.state.State; import androidx.constraintlayout.solver.widgets.ConstraintAnchor; import androidx.constraintlayout.solver.widgets.ConstraintWidget; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; public class ConstraintReference implements Reference { private Object key; diff --git a/app/src/main/java/androidx/constraintlayout/solver/state/State.java b/app/src/main/java/androidx/constraintlayout/solver/state/State.java index db879be847..976a869189 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/state/State.java +++ b/app/src/main/java/androidx/constraintlayout/solver/state/State.java @@ -9,7 +9,7 @@ import androidx.constraintlayout.solver.state.helpers.VerticalChainReference; import androidx.constraintlayout.solver.widgets.ConstraintWidget; import androidx.constraintlayout.solver.widgets.ConstraintWidgetContainer; import androidx.constraintlayout.solver.widgets.HelperWidget; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; import java.util.Iterator; public class State { diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/Barrier.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/Barrier.java index f88d523675..da64fd4456 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/Barrier.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/Barrier.java @@ -4,7 +4,7 @@ import androidx.constraintlayout.solver.LinearSystem; import androidx.constraintlayout.solver.SolverVariable; import androidx.constraintlayout.solver.widgets.ConstraintAnchor; import androidx.constraintlayout.solver.widgets.ConstraintWidget; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; public class Barrier extends HelperWidget { public static final int BOTTOM = 3; diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/ConstraintWidget.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/ConstraintWidget.java index 2d2d083977..f1dd3b70d7 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/ConstraintWidget.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/ConstraintWidget.java @@ -11,7 +11,7 @@ import androidx.constraintlayout.solver.widgets.analyzer.HorizontalWidgetRun; import androidx.constraintlayout.solver.widgets.analyzer.VerticalWidgetRun; import androidx.constraintlayout.solver.widgets.analyzer.WidgetRun; import androidx.exifinterface.media.ExifInterface; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; @@ -1142,7 +1142,7 @@ public class ConstraintWidget { int i2; int i3; SolverVariable solverVariable; - char c2; + char c; boolean z7; int i4; boolean z8; @@ -1160,7 +1160,7 @@ public class ConstraintWidget { LinearSystem linearSystem2; SolverVariable solverVariable6; SolverVariable solverVariable7; - char c3; + char c2; int i6; boolean z12; int i7; @@ -1332,14 +1332,14 @@ public class ConstraintWidget { i9 = 3; if (i15 == 3 && i16 == 3) { setupDimensionRatio(z4, z3, z19, z20); - c2 = 0; + c = 0; i = i15; i2 = i16; i4 = i11; i3 = i13; z7 = true; int[] iArr = this.mResolvedMatchConstraintDefault; - iArr[c2] = i; + iArr[c] = i; iArr[1] = i2; this.mResolvedHasRatio = z7; if (!z7) { @@ -1393,9 +1393,9 @@ public class ConstraintWidget { if (constraintWidget6 == null || z6 || !z11) { i7 = 8; i6 = 0; - c3 = 1; + c2 = 1; } else { - c3 = 1; + c2 = 1; if (constraintWidget.isTerminalWidget[1]) { i7 = 8; i6 = 0; @@ -1410,7 +1410,7 @@ public class ConstraintWidget { solverVariable10 = solverVariable7; solverVariable9 = solverVariable6; } else { - boolean z26 = constraintWidget.mListDimensionBehaviors[c3] == dimensionBehaviour && (constraintWidget instanceof ConstraintWidgetContainer); + boolean z26 = constraintWidget.mListDimensionBehaviors[c2] == dimensionBehaviour && (constraintWidget instanceof ConstraintWidgetContainer); if (z26) { i3 = 0; } @@ -1426,11 +1426,11 @@ public class ConstraintWidget { linearSystem2.addGreaterThan(createObjectVariable6, linearSystem2.createObjectVariable(constraintWidget.mBottom), i6, 5); } z13 = false; - boolean z27 = constraintWidget.isTerminalWidget[c3]; + boolean z27 = constraintWidget.isTerminalWidget[c2]; DimensionBehaviour[] dimensionBehaviourArr2 = constraintWidget.mListDimensionBehaviors; solverVariable10 = solverVariable7; solverVariable9 = solverVariable6; - applyConstraints(linearSystem, false, z11, z9, z27, createObjectVariable7, createObjectVariable6, dimensionBehaviourArr2[c3], z26, constraintWidget.mTop, constraintWidget.mBottom, constraintWidget.mY, i3, constraintWidget.mMinHeight, constraintWidget.mMaxDimension[c3], constraintWidget.mVerticalBiasPercent, z21, dimensionBehaviourArr2[0] != dimensionBehaviour2, z6, z5, z25, i2, i, constraintWidget.mMatchConstraintMinHeight, constraintWidget.mMatchConstraintMaxHeight, constraintWidget.mMatchConstraintPercentHeight, z13); + applyConstraints(linearSystem, false, z11, z9, z27, createObjectVariable7, createObjectVariable6, dimensionBehaviourArr2[c2], z26, constraintWidget.mTop, constraintWidget.mBottom, constraintWidget.mY, i3, constraintWidget.mMinHeight, constraintWidget.mMaxDimension[c2], constraintWidget.mVerticalBiasPercent, z21, dimensionBehaviourArr2[0] != dimensionBehaviour2, z6, z5, z25, i2, i, constraintWidget.mMatchConstraintMinHeight, constraintWidget.mMatchConstraintMaxHeight, constraintWidget.mMatchConstraintPercentHeight, z13); } else if (constraintWidget.mVisibility == i7) { linearSystem2.addEquality(solverVariable8, solverVariable6, i6, i7); } else { @@ -1438,11 +1438,11 @@ public class ConstraintWidget { } } z13 = z23; - boolean z27 = constraintWidget.isTerminalWidget[c3]; + boolean z27 = constraintWidget.isTerminalWidget[c2]; DimensionBehaviour[] dimensionBehaviourArr2 = constraintWidget.mListDimensionBehaviors; solverVariable10 = solverVariable7; solverVariable9 = solverVariable6; - applyConstraints(linearSystem, false, z11, z9, z27, createObjectVariable7, createObjectVariable6, dimensionBehaviourArr2[c3], z26, constraintWidget.mTop, constraintWidget.mBottom, constraintWidget.mY, i3, constraintWidget.mMinHeight, constraintWidget.mMaxDimension[c3], constraintWidget.mVerticalBiasPercent, z21, dimensionBehaviourArr2[0] != dimensionBehaviour2, z6, z5, z25, i2, i, constraintWidget.mMatchConstraintMinHeight, constraintWidget.mMatchConstraintMaxHeight, constraintWidget.mMatchConstraintPercentHeight, z13); + applyConstraints(linearSystem, false, z11, z9, z27, createObjectVariable7, createObjectVariable6, dimensionBehaviourArr2[c2], z26, constraintWidget.mTop, constraintWidget.mBottom, constraintWidget.mY, i3, constraintWidget.mMinHeight, constraintWidget.mMaxDimension[c2], constraintWidget.mVerticalBiasPercent, z21, dimensionBehaviourArr2[0] != dimensionBehaviour2, z6, z5, z25, i2, i, constraintWidget.mMatchConstraintMinHeight, constraintWidget.mMatchConstraintMaxHeight, constraintWidget.mMatchConstraintPercentHeight, z13); } if (!z10) { constraintWidget2 = this; @@ -1468,11 +1468,11 @@ public class ConstraintWidget { solverVariable6 = solverVariable2; i7 = 8; i6 = 0; - c3 = 1; + c2 = 1; } else { i7 = 8; i6 = 0; - c3 = 1; + c2 = 1; constraintWidget = this; linearSystem2 = linearSystem; solverVariable8 = solverVariable4; @@ -1580,17 +1580,17 @@ public class ConstraintWidget { i2 = i16; i3 = i13; z7 = false; - c2 = 0; + c = 0; i = 4; } else { i = i15; i2 = i16; i3 = i13; z7 = true; - c2 = 0; + c = 0; } int[] iArr = this.mResolvedMatchConstraintDefault; - iArr[c2] = i; + iArr[c] = i; iArr[1] = i2; this.mResolvedHasRatio = z7; if (!z7) { @@ -1617,7 +1617,7 @@ public class ConstraintWidget { if (i14 == -1) { this.mResolvedDimensionRatio = 1.0f / f; } - c2 = 0; + c = 0; DimensionBehaviour dimensionBehaviour7 = dimensionBehaviourArr[0]; i3 = (int) (this.mResolvedDimensionRatio * ((float) i10)); i = i15; @@ -1626,7 +1626,7 @@ public class ConstraintWidget { z7 = false; i2 = 4; int[] iArr = this.mResolvedMatchConstraintDefault; - iArr[c2] = i; + iArr[c] = i; iArr[1] = i2; this.mResolvedHasRatio = z7; if (!z7) { @@ -1652,7 +1652,7 @@ public class ConstraintWidget { i4 = i11; z7 = true; int[] iArr = this.mResolvedMatchConstraintDefault; - iArr[c2] = i; + iArr[c] = i; iArr[1] = i2; this.mResolvedHasRatio = z7; if (!z7) { @@ -1675,14 +1675,14 @@ public class ConstraintWidget { } } } - c2 = 0; + c = 0; i = i15; i2 = i16; i4 = i11; i3 = i13; z7 = true; int[] iArr = this.mResolvedMatchConstraintDefault; - iArr[c2] = i; + iArr[c] = i; iArr[1] = i2; this.mResolvedHasRatio = z7; if (!z7) { @@ -1708,14 +1708,14 @@ public class ConstraintWidget { } else { solverVariable = createObjectVariable; } - c2 = 0; + c = 0; i = i15; i2 = i16; i4 = i11; i3 = i13; z7 = false; int[] iArr = this.mResolvedMatchConstraintDefault; - iArr[c2] = i; + iArr[c] = i; iArr[1] = i2; this.mResolvedHasRatio = z7; if (!z7) { @@ -2439,10 +2439,10 @@ public class ConstraintWidget { } public boolean oppositeDimensionDependsOn(int i) { - char c2 = i == 0 ? (char) 1 : 0; + char c = i == 0 ? (char) 1 : 0; DimensionBehaviour[] dimensionBehaviourArr = this.mListDimensionBehaviors; DimensionBehaviour dimensionBehaviour = dimensionBehaviourArr[i]; - DimensionBehaviour dimensionBehaviour2 = dimensionBehaviourArr[c2]; + DimensionBehaviour dimensionBehaviour2 = dimensionBehaviourArr[c]; DimensionBehaviour dimensionBehaviour3 = DimensionBehaviour.MATCH_CONSTRAINT; return dimensionBehaviour == dimensionBehaviour3 && dimensionBehaviour2 == dimensionBehaviour3; } diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/ConstraintWidgetContainer.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/ConstraintWidgetContainer.java index 4c4fbbfd7b..291c8a160b 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/ConstraintWidgetContainer.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/ConstraintWidgetContainer.java @@ -682,10 +682,10 @@ public class ConstraintWidgetContainer extends WidgetContainer { z4 = true; } ConstraintWidget.DimensionBehaviour[] dimensionBehaviourArr2 = this.mListDimensionBehaviors; + char c = r6 == true ? 1 : 0; char c2 = r6 == true ? 1 : 0; char c3 = r6 == true ? 1 : 0; - char c4 = r6 == true ? 1 : 0; - if (dimensionBehaviourArr2[c2] == dimensionBehaviour10 && i > 0 && getHeight() > i) { + if (dimensionBehaviourArr2[c] == dimensionBehaviour10 && i > 0 && getHeight() > i) { this.mHeightMeasuredTooSmall = r6; this.mListDimensionBehaviors[r6] = ConstraintWidget.DimensionBehaviour.FIXED; setHeight(i); diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/Flow.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/Flow.java index a3117d5844..81964c0138 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/Flow.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/Flow.java @@ -884,7 +884,7 @@ public class Flow extends VirtualLayout { int i6; int[] iArr; boolean z2; - char c2; + char c; if (this.mWidgetsCount <= 0 || measureChildren()) { int paddingLeft = getPaddingLeft(); int paddingRight = getPaddingRight(); @@ -951,17 +951,17 @@ public class Flow extends VirtualLayout { measureChainWrap(constraintWidgetArr, i6, this.mOrientation, i7, iArr2); } else if (i13 != 2) { iArr = iArr2; - c2 = 0; + c = 0; z2 = true; - int i14 = iArr[c2] + paddingLeft + paddingRight; + int i14 = iArr[c] + paddingLeft + paddingRight; + char c2 = z2 ? 1 : 0; char c3 = z2 ? 1 : 0; char c4 = z2 ? 1 : 0; char c5 = z2 ? 1 : 0; char c6 = z2 ? 1 : 0; char c7 = z2 ? 1 : 0; char c8 = z2 ? 1 : 0; - char c9 = z2 ? 1 : 0; - int i15 = iArr[c3] + paddingTop + paddingBottom; + int i15 = iArr[c2] + paddingTop + paddingBottom; if (i != 1073741824) { i14 = i2; } else if (i == Integer.MIN_VALUE) { @@ -989,16 +989,16 @@ public class Flow extends VirtualLayout { iArr = iArr2; measureAligned(constraintWidgetArr, i6, this.mOrientation, i7, iArr2); } - c2 = 0; - int i14 = iArr[c2] + paddingLeft + paddingRight; + c = 0; + int i14 = iArr[c] + paddingLeft + paddingRight; + char c2 = z2 ? 1 : 0; char c3 = z2 ? 1 : 0; char c4 = z2 ? 1 : 0; char c5 = z2 ? 1 : 0; char c6 = z2 ? 1 : 0; char c7 = z2 ? 1 : 0; char c8 = z2 ? 1 : 0; - char c9 = z2 ? 1 : 0; - int i15 = iArr[c3] + paddingTop + paddingBottom; + int i15 = iArr[c2] + paddingTop + paddingBottom; if (i != 1073741824) { } if (i3 != 1073741824) { diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/Rectangle.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/Rectangle.java index 53e890c842..a16707a850 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/Rectangle.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/Rectangle.java @@ -4,28 +4,28 @@ public class Rectangle { public int width; /* renamed from: x reason: collision with root package name */ - public int f24x; + public int f31x; /* renamed from: y reason: collision with root package name */ - public int f25y; + public int f32y; public boolean contains(int i, int i2) { int i3; - int i4 = this.f24x; - return i >= i4 && i < i4 + this.width && i2 >= (i3 = this.f25y) && i2 < i3 + this.height; + int i4 = this.f31x; + return i >= i4 && i < i4 + this.width && i2 >= (i3 = this.f32y) && i2 < i3 + this.height; } public int getCenterX() { - return (this.f24x + this.width) / 2; + return (this.f31x + this.width) / 2; } public int getCenterY() { - return (this.f25y + this.height) / 2; + return (this.f32y + this.height) / 2; } public void grow(int i, int i2) { - this.f24x -= i; - this.f25y -= i2; + this.f31x -= i; + this.f32y -= i2; this.width = (i * 2) + this.width; this.height = (i2 * 2) + this.height; } @@ -33,14 +33,14 @@ public class Rectangle { public boolean intersects(Rectangle rectangle) { int i; int i2; - int i3 = this.f24x; - int i4 = rectangle.f24x; - return i3 >= i4 && i3 < i4 + rectangle.width && (i = this.f25y) >= (i2 = rectangle.f25y) && i < i2 + rectangle.height; + int i3 = this.f31x; + int i4 = rectangle.f31x; + return i3 >= i4 && i3 < i4 + rectangle.width && (i = this.f32y) >= (i2 = rectangle.f32y) && i < i2 + rectangle.height; } public void setBounds(int i, int i2, int i3, int i4) { - this.f24x = i; - this.f25y = i2; + this.f31x = i; + this.f32y = i2; this.width = i3; this.height = i4; } diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/ChainRun.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/ChainRun.java index cdd6b00dc8..5293bb712d 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/ChainRun.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/ChainRun.java @@ -3,7 +3,7 @@ package androidx.constraintlayout.solver.widgets.analyzer; import androidx.constraintlayout.solver.widgets.ConstraintAnchor; import androidx.constraintlayout.solver.widgets.ConstraintWidget; import androidx.constraintlayout.solver.widgets.ConstraintWidgetContainer; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Iterator; public class ChainRun extends WidgetRun { diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/DependencyGraph.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/DependencyGraph.java index 2f7dfca117..a996a94363 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/DependencyGraph.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/DependencyGraph.java @@ -7,7 +7,7 @@ import androidx.constraintlayout.solver.widgets.ConstraintWidgetContainer; import androidx.constraintlayout.solver.widgets.Guideline; import androidx.constraintlayout.solver.widgets.HelperWidget; import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import java.io.PrintStream; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/DependencyNode.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/DependencyNode.java index d40a85475e..018b9380d4 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/DependencyNode.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/DependencyNode.java @@ -1,6 +1,6 @@ package androidx.constraintlayout.solver.widgets.analyzer; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.List; public class DependencyNode implements Dependency { diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/Grouping.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/Grouping.java index d7510373f6..489e045772 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/Grouping.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/Grouping.java @@ -19,7 +19,7 @@ public class Grouping { int findGroupInDependents; int i2 = i == 0 ? constraintWidget.horizontalGroup : constraintWidget.verticalGroup; int i3 = 0; - if (i2 != -1 && (widgetGroup == null || i2 != widgetGroup.f26id)) { + if (i2 != -1 && (widgetGroup == null || i2 != widgetGroup.f33id)) { int i4 = 0; while (true) { if (i4 >= arrayList.size()) { @@ -87,7 +87,7 @@ public class Grouping { int size = arrayList.size(); for (int i2 = 0; i2 < size; i2++) { WidgetGroup widgetGroup = arrayList.get(i2); - if (i == widgetGroup.f26id) { + if (i == widgetGroup.f33id) { return widgetGroup; } } diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/HorizontalWidgetRun.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/HorizontalWidgetRun.java index e38459c9c4..e9a9e3233f 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/HorizontalWidgetRun.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/HorizontalWidgetRun.java @@ -5,7 +5,7 @@ import androidx.constraintlayout.solver.widgets.ConstraintWidget; import androidx.constraintlayout.solver.widgets.Helper; import androidx.constraintlayout.solver.widgets.analyzer.DependencyNode; import androidx.constraintlayout.solver.widgets.analyzer.WidgetRun; -import c.d.b.a.a; +import b.d.b.a.a; public class HorizontalWidgetRun extends WidgetRun { private static int[] tempDimensions = new int[2]; diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/RunGroup.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/RunGroup.java index 064e0598bb..05ec499a57 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/RunGroup.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/RunGroup.java @@ -1,7 +1,7 @@ package androidx.constraintlayout.solver.widgets.analyzer; import androidx.constraintlayout.solver.widgets.ConstraintWidgetContainer; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Iterator; public class RunGroup { diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/VerticalWidgetRun.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/VerticalWidgetRun.java index 760121c8de..bb40647966 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/VerticalWidgetRun.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/VerticalWidgetRun.java @@ -5,7 +5,7 @@ import androidx.constraintlayout.solver.widgets.ConstraintWidget; import androidx.constraintlayout.solver.widgets.Helper; import androidx.constraintlayout.solver.widgets.analyzer.DependencyNode; import androidx.constraintlayout.solver.widgets.analyzer.WidgetRun; -import c.d.b.a.a; +import b.d.b.a.a; public class VerticalWidgetRun extends WidgetRun { public DependencyNode baseline; public DimensionDependency baselineDimension = null; diff --git a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/WidgetGroup.java b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/WidgetGroup.java index 455b8f1738..ca542a5c80 100644 --- a/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/WidgetGroup.java +++ b/app/src/main/java/androidx/constraintlayout/solver/widgets/analyzer/WidgetGroup.java @@ -4,7 +4,7 @@ import androidx.constraintlayout.solver.LinearSystem; import androidx.constraintlayout.solver.widgets.Chain; import androidx.constraintlayout.solver.widgets.ConstraintWidget; import androidx.constraintlayout.solver.widgets.ConstraintWidgetContainer; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Iterator; @@ -14,7 +14,7 @@ public class WidgetGroup { public boolean authoritative = false; /* renamed from: id reason: collision with root package name */ - public int f26id = -1; + public int f33id = -1; private int moveTo = -1; public int orientation = 0; public ArrayList results = null; @@ -50,7 +50,7 @@ public class WidgetGroup { public WidgetGroup(int i) { int i2 = count; count = i2 + 1; - this.f26id = i2; + this.f33id = i2; this.orientation = i; } @@ -128,7 +128,7 @@ public class WidgetGroup { if (this.moveTo != -1 && size > 0) { for (int i = 0; i < arrayList.size(); i++) { WidgetGroup widgetGroup = arrayList.get(i); - if (this.moveTo == widgetGroup.f26id) { + if (this.moveTo == widgetGroup.f33id) { moveTo(this.orientation, widgetGroup); } } @@ -143,7 +143,7 @@ public class WidgetGroup { } public int getId() { - return this.f26id; + return this.f33id; } public int getOrientation() { @@ -181,7 +181,7 @@ public class WidgetGroup { next.verticalGroup = widgetGroup.getId(); } } - this.moveTo = widgetGroup.f26id; + this.moveTo = widgetGroup.f33id; } public void setAuthoritative(boolean z2) { @@ -200,7 +200,7 @@ public class WidgetGroup { StringBuilder sb = new StringBuilder(); sb.append(getOrientationString()); sb.append(" ["); - String A = a.A(sb, this.f26id, "] <"); + String A = a.A(sb, this.f33id, "] <"); Iterator it = this.widgets.iterator(); while (it.hasNext()) { StringBuilder V = a.V(A, " "); diff --git a/app/src/main/java/androidx/constraintlayout/widget/ConstraintAttribute.java b/app/src/main/java/androidx/constraintlayout/widget/ConstraintAttribute.java index 68cf131b91..04b6f50635 100644 --- a/app/src/main/java/androidx/constraintlayout/widget/ConstraintAttribute.java +++ b/app/src/main/java/androidx/constraintlayout/widget/ConstraintAttribute.java @@ -11,7 +11,7 @@ import android.util.Xml; import android.view.View; import androidx.constraintlayout.motion.widget.Debug; import androidx.core.view.ViewCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; diff --git a/app/src/main/java/androidx/constraintlayout/widget/ConstraintHelper.java b/app/src/main/java/androidx/constraintlayout/widget/ConstraintHelper.java index e235b91cf9..8be6b39a01 100644 --- a/app/src/main/java/androidx/constraintlayout/widget/ConstraintHelper.java +++ b/app/src/main/java/androidx/constraintlayout/widget/ConstraintHelper.java @@ -17,7 +17,7 @@ import androidx.constraintlayout.solver.widgets.HelperWidget; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.ConstraintSet; import androidx.constraintlayout.widget.R; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.models.domain.ModelAuditLogEntry; import java.util.Arrays; import java.util.HashMap; diff --git a/app/src/main/java/androidx/constraintlayout/widget/ConstraintLayoutStates.java b/app/src/main/java/androidx/constraintlayout/widget/ConstraintLayoutStates.java index 43da99acaa..3e9170e9d4 100644 --- a/app/src/main/java/androidx/constraintlayout/widget/ConstraintLayoutStates.java +++ b/app/src/main/java/androidx/constraintlayout/widget/ConstraintLayoutStates.java @@ -130,49 +130,49 @@ public class ConstraintLayoutStates { xml.getName(); } else if (eventType == 2) { String name = xml.getName(); - char c2 = 65535; + char c = 65535; switch (name.hashCode()) { case -1349929691: if (name.equals("ConstraintSet")) { - c2 = 4; + c = 4; break; } break; case 80204913: if (name.equals("State")) { - c2 = 2; + c = 2; break; } break; case 1382829617: if (name.equals("StateSet")) { - c2 = 1; + c = 1; break; } break; case 1657696882: if (name.equals("layoutDescription")) { - c2 = 0; + c = 0; break; } break; case 1901439077: if (name.equals("Variant")) { - c2 = 3; + c = 3; break; } break; } - if (!(c2 == 0 || c2 == 1)) { - if (c2 == 2) { + if (!(c == 0 || c == 1)) { + if (c == 2) { state = new State(context, xml); this.mStateList.put(state.mId, state); - } else if (c2 == 3) { + } else if (c == 3) { Variant variant = new Variant(context, xml); if (state != null) { state.add(variant); } - } else if (c2 != 4) { + } else if (c != 4) { Log.v("ConstraintLayoutStates", "unknown tag " + name); } else { parseConstraintSet(context, xml); diff --git a/app/src/main/java/androidx/constraintlayout/widget/ConstraintProperties.java b/app/src/main/java/androidx/constraintlayout/widget/ConstraintProperties.java index ef1b1007b2..0cf91264ff 100644 --- a/app/src/main/java/androidx/constraintlayout/widget/ConstraintProperties.java +++ b/app/src/main/java/androidx/constraintlayout/widget/ConstraintProperties.java @@ -3,7 +3,7 @@ package androidx.constraintlayout.widget; import android.view.View; import android.view.ViewGroup; import androidx.constraintlayout.widget.ConstraintLayout; -import c.d.b.a.a; +import b.d.b.a.a; public class ConstraintProperties { public static final int BASELINE = 5; public static final int BOTTOM = 4; diff --git a/app/src/main/java/androidx/constraintlayout/widget/ConstraintSet.java b/app/src/main/java/androidx/constraintlayout/widget/ConstraintSet.java index fb0d0bd439..30001e2495 100644 --- a/app/src/main/java/androidx/constraintlayout/widget/ConstraintSet.java +++ b/app/src/main/java/androidx/constraintlayout/widget/ConstraintSet.java @@ -21,7 +21,7 @@ import androidx.constraintlayout.widget.ConstraintAttribute; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.Constraints; import androidx.constraintlayout.widget.R; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.models.domain.ModelAuditLogEntry; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.io.IOException; @@ -2527,66 +2527,66 @@ public class ConstraintSet { Constraint constraint2 = null; while (eventType != 1) { if (eventType != 0) { - char c2 = 3; + char c = 3; if (eventType == 2) { String name = xmlPullParser.getName(); switch (name.hashCode()) { case -2025855158: if (name.equals("Layout")) { - c2 = 5; + c = 5; break; } - c2 = 65535; + c = 65535; break; case -1984451626: if (name.equals("Motion")) { - c2 = 6; + c = 6; break; } - c2 = 65535; + c = 65535; break; case -1269513683: break; case -1238332596: if (name.equals("Transform")) { - c2 = 4; + c = 4; break; } - c2 = 65535; + c = 65535; break; case -71750448: if (name.equals("Guideline")) { - c2 = 1; + c = 1; break; } - c2 = 65535; + c = 65535; break; case 1331510167: if (name.equals("Barrier")) { - c2 = 2; + c = 2; break; } - c2 = 65535; + c = 65535; break; case 1791837707: if (name.equals("CustomAttribute")) { - c2 = 7; + c = 7; break; } - c2 = 65535; + c = 65535; break; case 1803088381: if (name.equals("Constraint")) { - c2 = 0; + c = 0; break; } - c2 = 65535; + c = 65535; break; default: - c2 = 65535; + c = 65535; break; } - switch (c2) { + switch (c) { case 0: constraint = fillFromAttributeList(context, Xml.asAttributeSet(xmlPullParser)); constraint2 = constraint; @@ -2669,7 +2669,7 @@ public class ConstraintSet { for (int i = 0; i < split.length; i++) { String[] split2 = split[i].split("="); if (split2.length != 2) { - a.n0(a.R(" Unable to parse "), split[i], TAG); + a.o0(a.R(" Unable to parse "), split[i], TAG); } else { Constraint.access$600(constraint, split2[0], Color.parseColor(split2[1])); } @@ -2681,7 +2681,7 @@ public class ConstraintSet { for (int i = 0; i < split.length; i++) { String[] split2 = split[i].split("="); if (split2.length != 2) { - a.n0(a.R(" Unable to parse "), split[i], TAG); + a.o0(a.R(" Unable to parse "), split[i], TAG); } else { Constraint.access$700(constraint, split2[0], Float.parseFloat(split2[1])); } @@ -2693,7 +2693,7 @@ public class ConstraintSet { for (int i = 0; i < split.length; i++) { String[] split2 = split[i].split("="); if (split2.length != 2) { - a.n0(a.R(" Unable to parse "), split[i], TAG); + a.o0(a.R(" Unable to parse "), split[i], TAG); } else { Constraint.access$700(constraint, split2[0], (float) Integer.decode(split2[1]).intValue()); } @@ -2704,7 +2704,7 @@ public class ConstraintSet { String[] splitString = splitString(str); for (int i = 0; i < splitString.length; i++) { String[] split = splitString[i].split("="); - a.n0(a.R(" Unable to parse "), splitString[i], TAG); + a.o0(a.R(" Unable to parse "), splitString[i], TAG); Constraint.access$800(constraint, split[0], split[1]); } } diff --git a/app/src/main/java/androidx/constraintlayout/widget/StateSet.java b/app/src/main/java/androidx/constraintlayout/widget/StateSet.java index a6ac2be6ff..8cec063469 100644 --- a/app/src/main/java/androidx/constraintlayout/widget/StateSet.java +++ b/app/src/main/java/androidx/constraintlayout/widget/StateSet.java @@ -134,38 +134,38 @@ public class StateSet { xmlPullParser.getName(); } else if (eventType == 2) { String name = xmlPullParser.getName(); - char c2 = 65535; + char c = 65535; switch (name.hashCode()) { case 80204913: if (name.equals("State")) { - c2 = 2; + c = 2; break; } break; case 1301459538: if (name.equals("LayoutDescription")) { - c2 = 0; + c = 0; break; } break; case 1382829617: if (name.equals("StateSet")) { - c2 = 1; + c = 1; break; } break; case 1901439077: if (name.equals("Variant")) { - c2 = 3; + c = 3; break; } break; } - if (!(c2 == 0 || c2 == 1)) { - if (c2 == 2) { + if (!(c == 0 || c == 1)) { + if (c == 2) { state = new State(context, xmlPullParser); this.mStateList.put(state.mId, state); - } else if (c2 != 3) { + } else if (c != 3) { Log.v("ConstraintLayoutStates", "unknown tag " + name); } else { Variant variant = new Variant(context, xmlPullParser); diff --git a/app/src/main/java/androidx/coordinatorlayout/widget/CoordinatorLayout.java b/app/src/main/java/androidx/coordinatorlayout/widget/CoordinatorLayout.java index 03d7e37df5..f4a0a50e4a 100644 --- a/app/src/main/java/androidx/coordinatorlayout/widget/CoordinatorLayout.java +++ b/app/src/main/java/androidx/coordinatorlayout/widget/CoordinatorLayout.java @@ -44,7 +44,7 @@ import androidx.core.view.OnApplyWindowInsetsListener; import androidx.core.view.ViewCompat; import androidx.core.view.WindowInsetsCompat; import androidx.customview.view.AbsSavedState; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.badge.BadgeDrawable; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.lang.annotation.Retention; diff --git a/app/src/main/java/androidx/core/accessibilityservice/AccessibilityServiceInfoCompat.java b/app/src/main/java/androidx/core/accessibilityservice/AccessibilityServiceInfoCompat.java index 5cb715f6c9..7830c49dbb 100644 --- a/app/src/main/java/androidx/core/accessibilityservice/AccessibilityServiceInfoCompat.java +++ b/app/src/main/java/androidx/core/accessibilityservice/AccessibilityServiceInfoCompat.java @@ -4,7 +4,7 @@ import android.accessibilityservice.AccessibilityServiceInfo; import android.content.pm.PackageManager; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; public final class AccessibilityServiceInfoCompat { public static final int CAPABILITY_CAN_FILTER_KEY_EVENTS = 8; public static final int CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY = 4; diff --git a/app/src/main/java/androidx/core/app/ActivityCompat.java b/app/src/main/java/androidx/core/app/ActivityCompat.java index 3685804c50..5c9e1364e0 100644 --- a/app/src/main/java/androidx/core/app/ActivityCompat.java +++ b/app/src/main/java/androidx/core/app/ActivityCompat.java @@ -27,7 +27,7 @@ import androidx.core.app.SharedElementCallback; import androidx.core.content.ContextCompat; import androidx.core.content.LocusIdCompat; import androidx.core.view.DragAndDropPermissionsCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Arrays; import java.util.List; import java.util.Map; diff --git a/app/src/main/java/androidx/core/app/JobIntentService.java b/app/src/main/java/androidx/core/app/JobIntentService.java index df62161c32..c8b1ad3d0d 100644 --- a/app/src/main/java/androidx/core/app/JobIntentService.java +++ b/app/src/main/java/androidx/core/app/JobIntentService.java @@ -17,7 +17,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.work.impl.background.systemalarm.CommandHandler; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.HashMap; @Deprecated diff --git a/app/src/main/java/androidx/core/app/NavUtils.java b/app/src/main/java/androidx/core/app/NavUtils.java index d10911b92c..f914f7b6b2 100644 --- a/app/src/main/java/androidx/core/app/NavUtils.java +++ b/app/src/main/java/androidx/core/app/NavUtils.java @@ -11,7 +11,7 @@ import android.os.Bundle; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; public final class NavUtils { public static final String PARENT_ACTIVITY = "android.support.PARENT_ACTIVITY"; private static final String TAG = "NavUtils"; diff --git a/app/src/main/java/androidx/core/app/NotificationCompat.java b/app/src/main/java/androidx/core/app/NotificationCompat.java index 7a4686a18d..e0c98ee3bd 100644 --- a/app/src/main/java/androidx/core/app/NotificationCompat.java +++ b/app/src/main/java/androidx/core/app/NotificationCompat.java @@ -2838,40 +2838,40 @@ public class NotificationCompat { if (str == null) { return null; } - char c2 = 65535; + char c = 65535; switch (str.hashCode()) { case -716705180: if (str.equals("androidx.core.app.NotificationCompat$DecoratedCustomViewStyle")) { - c2 = 0; + c = 0; break; } break; case -171946061: if (str.equals("androidx.core.app.NotificationCompat$BigPictureStyle")) { - c2 = 1; + c = 1; break; } break; case 912942987: if (str.equals("androidx.core.app.NotificationCompat$InboxStyle")) { - c2 = 2; + c = 2; break; } break; case 919595044: if (str.equals("androidx.core.app.NotificationCompat$BigTextStyle")) { - c2 = 3; + c = 3; break; } break; case 2090799565: if (str.equals("androidx.core.app.NotificationCompat$MessagingStyle")) { - c2 = 4; + c = 4; break; } break; } - switch (c2) { + switch (c) { case 0: return new DecoratedCustomViewStyle(); case 1: diff --git a/app/src/main/java/androidx/core/app/NotificationCompatSideChannelService.java b/app/src/main/java/androidx/core/app/NotificationCompatSideChannelService.java index 3b93b92179..8e1fd8c3e4 100644 --- a/app/src/main/java/androidx/core/app/NotificationCompatSideChannelService.java +++ b/app/src/main/java/androidx/core/app/NotificationCompatSideChannelService.java @@ -9,7 +9,7 @@ import android.os.RemoteException; import x.a.b.a.a; public abstract class NotificationCompatSideChannelService extends Service { - public class NotificationSideChannelStub extends a.AbstractBinderC0359a { + public class NotificationSideChannelStub extends a.AbstractBinderC0357a { public NotificationSideChannelStub() { } diff --git a/app/src/main/java/androidx/core/app/NotificationManagerCompat.java b/app/src/main/java/androidx/core/app/NotificationManagerCompat.java index cf7159803d..e6c117a4af 100644 --- a/app/src/main/java/androidx/core/app/NotificationManagerCompat.java +++ b/app/src/main/java/androidx/core/app/NotificationManagerCompat.java @@ -69,20 +69,20 @@ public final class NotificationManagerCompat { public final boolean all; /* renamed from: id reason: collision with root package name */ - public final int f27id; + public final int f34id; public final String packageName; public final String tag; public CancelTask(String str) { this.packageName = str; - this.f27id = 0; + this.f34id = 0; this.tag = null; this.all = true; } public CancelTask(String str, int i, String str2) { this.packageName = str; - this.f27id = i; + this.f34id = i; this.tag = str2; this.all = false; } @@ -92,7 +92,7 @@ public final class NotificationManagerCompat { if (this.all) { aVar.cancelAll(this.packageName); } else { - aVar.cancel(this.packageName, this.f27id, this.tag); + aVar.cancel(this.packageName, this.f34id, this.tag); } } @@ -102,32 +102,32 @@ public final class NotificationManagerCompat { sb.append("packageName:"); sb.append(this.packageName); sb.append(", id:"); - sb.append(this.f27id); + sb.append(this.f34id); sb.append(", tag:"); sb.append(this.tag); sb.append(", all:"); - return c.d.b.a.a.L(sb, this.all, "]"); + return b.d.b.a.a.L(sb, this.all, "]"); } } public static class NotifyTask implements Task { /* renamed from: id reason: collision with root package name */ - public final int f28id; + public final int f35id; public final Notification notif; public final String packageName; public final String tag; public NotifyTask(String str, int i, String str2, Notification notification) { this.packageName = str; - this.f28id = i; + this.f35id = i; this.tag = str2; this.notif = notification; } @Override // androidx.core.app.NotificationManagerCompat.Task public void send(a aVar) throws RemoteException { - aVar.notify(this.packageName, this.f28id, this.tag, this.notif); + aVar.notify(this.packageName, this.f35id, this.tag, this.notif); } @NonNull @@ -136,9 +136,9 @@ public final class NotificationManagerCompat { sb.append("packageName:"); sb.append(this.packageName); sb.append(", id:"); - sb.append(this.f28id); + sb.append(this.f35id); sb.append(", tag:"); - return c.d.b.a.a.H(sb, this.tag, "]"); + return b.d.b.a.a.H(sb, this.tag, "]"); } } @@ -192,7 +192,7 @@ public final class NotificationManagerCompat { if (bindService) { listenerRecord.retryCount = 0; } else { - StringBuilder R = c.d.b.a.a.R("Unable to bind to listener "); + StringBuilder R = b.d.b.a.a.R("Unable to bind to listener "); R.append(listenerRecord.componentName); Log.w(NotificationManagerCompat.TAG, R.toString()); this.mContext.unbindService(this); @@ -226,7 +226,7 @@ public final class NotificationManagerCompat { private void handleServiceConnected(ComponentName componentName, IBinder iBinder) { ListenerRecord listenerRecord = this.mRecordMap.get(componentName); if (listenerRecord != null) { - listenerRecord.service = a.AbstractBinderC0359a.asInterface(iBinder); + listenerRecord.service = a.AbstractBinderC0357a.asInterface(iBinder); listenerRecord.retryCount = 0; processListenerQueue(listenerRecord); } @@ -241,7 +241,7 @@ public final class NotificationManagerCompat { private void processListenerQueue(ListenerRecord listenerRecord) { if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) { - StringBuilder R = c.d.b.a.a.R("Processing component "); + StringBuilder R = b.d.b.a.a.R("Processing component "); R.append(listenerRecord.componentName); R.append(", "); R.append(listenerRecord.taskQueue.size()); @@ -266,12 +266,12 @@ public final class NotificationManagerCompat { listenerRecord.taskQueue.remove(); } catch (DeadObjectException unused) { if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) { - StringBuilder R2 = c.d.b.a.a.R("Remote service has died: "); + StringBuilder R2 = b.d.b.a.a.R("Remote service has died: "); R2.append(listenerRecord.componentName); Log.d(NotificationManagerCompat.TAG, R2.toString()); } } catch (RemoteException e) { - StringBuilder R3 = c.d.b.a.a.R("RemoteException communicating with "); + StringBuilder R3 = b.d.b.a.a.R("RemoteException communicating with "); R3.append(listenerRecord.componentName); Log.w(NotificationManagerCompat.TAG, R3.toString(), e); } @@ -287,7 +287,7 @@ public final class NotificationManagerCompat { int i = listenerRecord.retryCount + 1; listenerRecord.retryCount = i; if (i > 6) { - StringBuilder R = c.d.b.a.a.R("Giving up on delivering "); + StringBuilder R = b.d.b.a.a.R("Giving up on delivering "); R.append(listenerRecord.taskQueue.size()); R.append(" tasks to "); R.append(listenerRecord.componentName); @@ -338,7 +338,7 @@ public final class NotificationManagerCompat { Map.Entry next = it2.next(); if (!hashSet.contains(next.getKey())) { if (Log.isLoggable(NotificationManagerCompat.TAG, 3)) { - StringBuilder R = c.d.b.a.a.R("Removing listener record for "); + StringBuilder R = b.d.b.a.a.R("Removing listener record for "); R.append(next.getKey()); Log.d(NotificationManagerCompat.TAG, R.toString()); } diff --git a/app/src/main/java/androidx/core/app/Person.java b/app/src/main/java/androidx/core/app/Person.java index 0c28806f36..e91869e3db 100644 --- a/app/src/main/java/androidx/core/app/Person.java +++ b/app/src/main/java/androidx/core/app/Person.java @@ -8,7 +8,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; import androidx.core.graphics.drawable.IconCompat; -import c.d.b.a.a; +import b.d.b.a.a; public class Person { private static final String ICON_KEY = "icon"; private static final String IS_BOT_KEY = "isBot"; diff --git a/app/src/main/java/androidx/core/app/RemoteInput.java b/app/src/main/java/androidx/core/app/RemoteInput.java index 5ca469ccb3..7b29ba8f54 100644 --- a/app/src/main/java/androidx/core/app/RemoteInput.java +++ b/app/src/main/java/androidx/core/app/RemoteInput.java @@ -11,7 +11,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.HashMap; diff --git a/app/src/main/java/androidx/core/app/ShareCompat.java b/app/src/main/java/androidx/core/app/ShareCompat.java index 8dbf65b1e2..88151999ee 100644 --- a/app/src/main/java/androidx/core/app/ShareCompat.java +++ b/app/src/main/java/androidx/core/app/ShareCompat.java @@ -23,7 +23,7 @@ import androidx.annotation.RequiresApi; import androidx.annotation.StringRes; import androidx.core.content.IntentCompat; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; public final class ShareCompat { public static final String EXTRA_CALLING_ACTIVITY = "androidx.core.app.EXTRA_CALLING_ACTIVITY"; diff --git a/app/src/main/java/androidx/core/content/FileProvider.java b/app/src/main/java/androidx/core/content/FileProvider.java index 0640727250..fd044441c9 100644 --- a/app/src/main/java/androidx/core/content/FileProvider.java +++ b/app/src/main/java/androidx/core/content/FileProvider.java @@ -16,7 +16,7 @@ import android.webkit.MimeTypeMap; import androidx.annotation.GuardedBy; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.widgets.chat.input.MentionUtilsKt; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import java.io.File; diff --git a/app/src/main/java/androidx/core/content/LocusIdCompat.java b/app/src/main/java/androidx/core/content/LocusIdCompat.java index 27b9cbc5f4..40e0f4b1f4 100644 --- a/app/src/main/java/androidx/core/content/LocusIdCompat.java +++ b/app/src/main/java/androidx/core/content/LocusIdCompat.java @@ -6,7 +6,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; public final class LocusIdCompat { private final String mId; private final LocusId mWrapped; diff --git a/app/src/main/java/androidx/core/content/pm/PackageInfoCompat.java b/app/src/main/java/androidx/core/content/pm/PackageInfoCompat.java index e163f5742a..4e723cb601 100644 --- a/app/src/main/java/androidx/core/content/pm/PackageInfoCompat.java +++ b/app/src/main/java/androidx/core/content/pm/PackageInfoCompat.java @@ -9,7 +9,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.annotation.Size; -import c.d.b.a.a; +import b.d.b.a.a; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Arrays; diff --git a/app/src/main/java/androidx/core/content/pm/ShortcutInfoCompat.java b/app/src/main/java/androidx/core/content/pm/ShortcutInfoCompat.java index 9b0c530178..209dd9b7a0 100644 --- a/app/src/main/java/androidx/core/content/pm/ShortcutInfoCompat.java +++ b/app/src/main/java/androidx/core/content/pm/ShortcutInfoCompat.java @@ -21,7 +21,7 @@ import androidx.core.app.Person; import androidx.core.content.LocusIdCompat; import androidx.core.graphics.drawable.IconCompat; import androidx.core.net.UriCompat; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import java.util.ArrayList; import java.util.Arrays; diff --git a/app/src/main/java/androidx/core/content/res/ResourcesCompat.java b/app/src/main/java/androidx/core/content/res/ResourcesCompat.java index 30f226eb95..32b3c51b99 100644 --- a/app/src/main/java/androidx/core/content/res/ResourcesCompat.java +++ b/app/src/main/java/androidx/core/content/res/ResourcesCompat.java @@ -26,7 +26,7 @@ import androidx.core.content.res.FontResourcesParserCompat; import androidx.core.graphics.TypefaceCompat; import androidx.core.util.ObjectsCompat; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; diff --git a/app/src/main/java/androidx/core/graphics/CanvasKt.java b/app/src/main/java/androidx/core/graphics/CanvasKt.java index 11fc3598b2..080ed971c1 100644 --- a/app/src/main/java/androidx/core/graphics/CanvasKt.java +++ b/app/src/main/java/androidx/core/graphics/CanvasKt.java @@ -5,7 +5,7 @@ import android.graphics.Matrix; import android.graphics.Path; import android.graphics.Rect; import android.graphics.RectF; -import c.d.b.a.a; +import b.d.b.a.a; import d0.z.d.m; import kotlin.Unit; import kotlin.jvm.functions.Function1; diff --git a/app/src/main/java/androidx/core/graphics/ColorUtils.java b/app/src/main/java/androidx/core/graphics/ColorUtils.java index 14ac1e5dee..b6e1304517 100644 --- a/app/src/main/java/androidx/core/graphics/ColorUtils.java +++ b/app/src/main/java/androidx/core/graphics/ColorUtils.java @@ -8,7 +8,7 @@ import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import androidx.annotation.VisibleForTesting; import androidx.core.view.ViewCompat; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.util.Objects; public final class ColorUtils { diff --git a/app/src/main/java/androidx/core/graphics/Insets.java b/app/src/main/java/androidx/core/graphics/Insets.java index 94d9886601..a588c5e0a7 100644 --- a/app/src/main/java/androidx/core/graphics/Insets.java +++ b/app/src/main/java/androidx/core/graphics/Insets.java @@ -4,7 +4,7 @@ import android.graphics.Rect; import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; public final class Insets { @NonNull public static final Insets NONE = new Insets(0, 0, 0, 0); diff --git a/app/src/main/java/androidx/core/graphics/PathParser.java b/app/src/main/java/androidx/core/graphics/PathParser.java index b57c0dbedb..bf3c5a0cc0 100644 --- a/app/src/main/java/androidx/core/graphics/PathParser.java +++ b/app/src/main/java/androidx/core/graphics/PathParser.java @@ -3,7 +3,7 @@ package androidx.core.graphics; import android.graphics.Path; import android.util.Log; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.util.ArrayList; public class PathParser { @@ -18,8 +18,8 @@ public class PathParser { public float[] mParams; public char mType; - public PathDataNode(char c2, float[] fArr) { - this.mType = c2; + public PathDataNode(char c, float[] fArr) { + this.mType = c; this.mParams = fArr; } @@ -30,7 +30,7 @@ public class PathParser { } /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ - private static void addCommand(Path path, float[] fArr, char c2, char c3, float[] fArr2) { + private static void addCommand(Path path, float[] fArr, char c, char c2, float[] fArr2) { int i; int i2; float f; @@ -41,14 +41,14 @@ public class PathParser { float f6; float f7; float f8; - char c4 = c3; + char c3 = c2; float f9 = fArr[0]; float f10 = fArr[1]; float f11 = fArr[2]; float f12 = fArr[3]; float f13 = fArr[4]; float f14 = fArr[5]; - switch (c4) { + switch (c3) { case 'A': case 'a': i = 7; @@ -94,10 +94,10 @@ public class PathParser { float f17 = f13; float f18 = f14; int i3 = 0; - char c5 = c2; + char c4 = c; while (i3 < fArr2.length) { - if (c4 != 'A') { - if (c4 == 'C') { + if (c3 != 'A') { + if (c3 == 'C') { i2 = i3; int i4 = i2 + 2; int i5 = i2 + 3; @@ -111,12 +111,12 @@ public class PathParser { f16 = f19; f12 = f21; f11 = f20; - } else if (c4 == 'H') { + } else if (c3 == 'H') { i2 = i3; int i8 = i2 + 0; path.lineTo(fArr2[i8], f16); f15 = fArr2[i8]; - } else if (c4 == 'Q') { + } else if (c3 == 'Q') { i2 = i3; int i9 = i2 + 0; int i10 = i2 + 1; @@ -129,13 +129,13 @@ public class PathParser { f16 = fArr2[i12]; f11 = f22; f12 = f23; - } else if (c4 == 'V') { + } else if (c3 == 'V') { i2 = i3; int i13 = i2 + 0; path.lineTo(f15, fArr2[i13]); f16 = fArr2[i13]; - } else if (c4 != 'a') { - if (c4 == 'c') { + } else if (c3 != 'a') { + if (c3 == 'c') { int i14 = i3 + 2; int i15 = i3 + 3; int i16 = i3 + 4; @@ -148,14 +148,14 @@ public class PathParser { f16 += f3; f11 = f2; f12 = f; - } else if (c4 != 'h') { - if (c4 != 'q') { - if (c4 == 'v') { + } else if (c3 != 'h') { + if (c3 != 'q') { + if (c3 == 'v') { int i18 = i3 + 0; path.rLineTo(0.0f, fArr2[i18]); f4 = fArr2[i18]; - } else if (c4 != 'L') { - if (c4 == 'M') { + } else if (c3 != 'L') { + if (c3 == 'M') { int i19 = i3 + 0; f15 = fArr2[i19]; int i20 = i3 + 1; @@ -165,8 +165,8 @@ public class PathParser { } else { path.moveTo(fArr2[i19], fArr2[i20]); } - } else if (c4 == 'S') { - if (c5 == 'c' || c5 == 's' || c5 == 'C' || c5 == 'S') { + } else if (c3 == 'S') { + if (c4 == 'c' || c4 == 's' || c4 == 'C' || c4 == 'S') { f15 = (f15 * 2.0f) - f11; f16 = (f16 * 2.0f) - f12; } @@ -181,8 +181,8 @@ public class PathParser { f16 = fArr2[i24]; f11 = f2; f12 = f; - } else if (c4 == 'T') { - if (c5 == 'q' || c5 == 't' || c5 == 'Q' || c5 == 'T') { + } else if (c3 == 'T') { + if (c4 == 'q' || c4 == 't' || c4 == 'Q' || c4 == 'T') { f15 = (f15 * 2.0f) - f11; f16 = (f16 * 2.0f) - f12; } @@ -196,13 +196,13 @@ public class PathParser { f11 = f15; f15 = f24; f16 = f25; - } else if (c4 == 'l') { + } else if (c3 == 'l') { int i27 = i3 + 0; int i28 = i3 + 1; path.rLineTo(fArr2[i27], fArr2[i28]); f15 += fArr2[i27]; f4 = fArr2[i28]; - } else if (c4 == 'm') { + } else if (c3 == 'm') { int i29 = i3 + 0; f15 += fArr2[i29]; int i30 = i3 + 1; @@ -212,8 +212,8 @@ public class PathParser { } else { path.rMoveTo(fArr2[i29], fArr2[i30]); } - } else if (c4 == 's') { - if (c5 == 'c' || c5 == 's' || c5 == 'C' || c5 == 'S') { + } else if (c3 == 's') { + if (c4 == 'c' || c4 == 's' || c4 == 'C' || c4 == 'S') { float f26 = f15 - f11; f5 = f16 - f12; f6 = f26; @@ -230,8 +230,8 @@ public class PathParser { f = fArr2[i32] + f16; f15 += fArr2[i33]; f3 = fArr2[i34]; - } else if (c4 == 't') { - if (c5 == 'q' || c5 == 't' || c5 == 'Q' || c5 == 'T') { + } else if (c3 == 't') { + if (c4 == 'q' || c4 == 't' || c4 == 'Q' || c4 == 'T') { f7 = f15 - f11; f8 = f16 - f12; } else { @@ -288,8 +288,8 @@ public class PathParser { f16 += fArr2[i45]; } i3 = i2 + i; - c5 = c3; - c4 = c5; + c4 = c2; + c3 = c4; } else { i2 = i3; int i46 = i2 + 5; @@ -301,8 +301,8 @@ public class PathParser { f12 = f16; f11 = f15; i3 = i2 + i; - c5 = c3; - c4 = c5; + c4 = c2; + c3 = c4; } fArr[0] = f15; fArr[1] = f16; @@ -416,10 +416,10 @@ public class PathParser { public static void nodesToPath(PathDataNode[] pathDataNodeArr, Path path) { float[] fArr = new float[6]; - char c2 = 'm'; + char c = 'm'; for (int i = 0; i < pathDataNodeArr.length; i++) { - addCommand(path, fArr, c2, pathDataNodeArr[i].mType, pathDataNodeArr[i].mParams); - c2 = pathDataNodeArr[i].mType; + addCommand(path, fArr, c, pathDataNodeArr[i].mType, pathDataNodeArr[i].mParams); + c = pathDataNodeArr[i].mType; } } @@ -441,8 +441,8 @@ public class PathParser { private PathParser() { } - private static void addNode(ArrayList arrayList, char c2, float[] fArr) { - arrayList.add(new PathDataNode(c2, fArr)); + private static void addNode(ArrayList arrayList, char c, float[] fArr) { + arrayList.add(new PathDataNode(c, fArr)); } public static boolean canMorph(@Nullable PathDataNode[] pathDataNodeArr, @Nullable PathDataNode[] pathDataNodeArr2) { diff --git a/app/src/main/java/androidx/core/graphics/PathSegment.java b/app/src/main/java/androidx/core/graphics/PathSegment.java index a7a3c6137e..abb4d0e28d 100644 --- a/app/src/main/java/androidx/core/graphics/PathSegment.java +++ b/app/src/main/java/androidx/core/graphics/PathSegment.java @@ -3,7 +3,7 @@ package androidx.core.graphics; import android.graphics.PointF; import androidx.annotation.NonNull; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; public final class PathSegment { private final PointF mEnd; private final float mEndFraction; diff --git a/app/src/main/java/androidx/core/graphics/TypefaceCompatApi26Impl.java b/app/src/main/java/androidx/core/graphics/TypefaceCompatApi26Impl.java index 134a81e296..db072a4808 100644 --- a/app/src/main/java/androidx/core/graphics/TypefaceCompatApi26Impl.java +++ b/app/src/main/java/androidx/core/graphics/TypefaceCompatApi26Impl.java @@ -15,7 +15,7 @@ import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; import androidx.core.content.res.FontResourcesParserCompat; import androidx.core.provider.FontsContractCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.IOException; import java.lang.reflect.Array; import java.lang.reflect.Constructor; diff --git a/app/src/main/java/androidx/core/graphics/TypefaceCompatUtil.java b/app/src/main/java/androidx/core/graphics/TypefaceCompatUtil.java index 8317964a5d..b21e374659 100644 --- a/app/src/main/java/androidx/core/graphics/TypefaceCompatUtil.java +++ b/app/src/main/java/androidx/core/graphics/TypefaceCompatUtil.java @@ -13,7 +13,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; import androidx.core.provider.FontsContractCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.Closeable; import java.io.File; import java.io.FileInputStream; diff --git a/app/src/main/java/androidx/core/graphics/drawable/IconCompat.java b/app/src/main/java/androidx/core/graphics/drawable/IconCompat.java index 988bcd617d..0082316258 100644 --- a/app/src/main/java/androidx/core/graphics/drawable/IconCompat.java +++ b/app/src/main/java/androidx/core/graphics/drawable/IconCompat.java @@ -39,7 +39,7 @@ import androidx.core.content.res.ResourcesCompat; import androidx.core.util.Preconditions; import androidx.core.view.ViewCompat; import androidx.versionedparcelable.CustomVersionedParcelable; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import java.io.ByteArrayOutputStream; import java.io.File; diff --git a/app/src/main/java/androidx/core/internal/view/SupportMenuItem.java b/app/src/main/java/androidx/core/internal/view/SupportMenuItem.java index 9c4303e9cd..853b055322 100644 --- a/app/src/main/java/androidx/core/internal/view/SupportMenuItem.java +++ b/app/src/main/java/androidx/core/internal/view/SupportMenuItem.java @@ -57,7 +57,7 @@ public interface SupportMenuItem extends MenuItem { MenuItem setActionView(View view); @Override // android.view.MenuItem - MenuItem setAlphabeticShortcut(char c2, int i); + MenuItem setAlphabeticShortcut(char c, int i); @Override // android.view.MenuItem /* bridge */ /* synthetic */ MenuItem setContentDescription(CharSequence charSequence); @@ -72,10 +72,10 @@ public interface SupportMenuItem extends MenuItem { MenuItem setIconTintMode(PorterDuff.Mode mode); @Override // android.view.MenuItem - MenuItem setNumericShortcut(char c2, int i); + MenuItem setNumericShortcut(char c, int i); @Override // android.view.MenuItem - MenuItem setShortcut(char c2, char c3, int i, int i2); + MenuItem setShortcut(char c, char c2, int i, int i2); @Override // android.view.MenuItem void setShowAsAction(int i); diff --git a/app/src/main/java/androidx/core/net/MailTo.java b/app/src/main/java/androidx/core/net/MailTo.java index d59cf5964f..9a634f14d7 100644 --- a/app/src/main/java/androidx/core/net/MailTo.java +++ b/app/src/main/java/androidx/core/net/MailTo.java @@ -4,7 +4,7 @@ import android.net.Uri; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; import java.util.Locale; import java.util.Map; diff --git a/app/src/main/java/androidx/core/net/UriCompat.java b/app/src/main/java/androidx/core/net/UriCompat.java index 62a0325d5f..3bece7b202 100644 --- a/app/src/main/java/androidx/core/net/UriCompat.java +++ b/app/src/main/java/androidx/core/net/UriCompat.java @@ -2,7 +2,7 @@ package androidx.core.net; import android.net.Uri; import androidx.annotation.NonNull; -import c.d.b.a.a; +import b.d.b.a.a; import com.adjust.sdk.Constants; import com.discord.widgets.chat.input.MentionUtilsKt; public final class UriCompat { diff --git a/app/src/main/java/androidx/core/os/LocaleListCompat.java b/app/src/main/java/androidx/core/os/LocaleListCompat.java index c8eb3737f8..da6bdc976b 100644 --- a/app/src/main/java/androidx/core/os/LocaleListCompat.java +++ b/app/src/main/java/androidx/core/os/LocaleListCompat.java @@ -7,7 +7,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.annotation.Size; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Locale; public final class LocaleListCompat { private static final LocaleListCompat sEmptyLocaleList = create(new Locale[0]); diff --git a/app/src/main/java/androidx/core/os/LocaleListCompatWrapper.java b/app/src/main/java/androidx/core/os/LocaleListCompatWrapper.java index 588f1633e6..819856fd49 100644 --- a/app/src/main/java/androidx/core/os/LocaleListCompatWrapper.java +++ b/app/src/main/java/androidx/core/os/LocaleListCompatWrapper.java @@ -4,7 +4,7 @@ import androidx.annotation.IntRange; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; diff --git a/app/src/main/java/androidx/core/provider/FontProvider.java b/app/src/main/java/androidx/core/provider/FontProvider.java index 48404c43e3..16ad6e60fb 100644 --- a/app/src/main/java/androidx/core/provider/FontProvider.java +++ b/app/src/main/java/androidx/core/provider/FontProvider.java @@ -14,7 +14,7 @@ import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; import androidx.core.content.res.FontResourcesParserCompat; import androidx.core.provider.FontsContractCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; diff --git a/app/src/main/java/androidx/core/provider/FontRequest.java b/app/src/main/java/androidx/core/provider/FontRequest.java index 409a8fac1e..584d068bef 100644 --- a/app/src/main/java/androidx/core/provider/FontRequest.java +++ b/app/src/main/java/androidx/core/provider/FontRequest.java @@ -6,7 +6,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.List; public final class FontRequest { private final List> mCertificates; diff --git a/app/src/main/java/androidx/core/text/BidiFormatter.java b/app/src/main/java/androidx/core/text/BidiFormatter.java index 1325e1fc08..7ac4a0f809 100644 --- a/app/src/main/java/androidx/core/text/BidiFormatter.java +++ b/app/src/main/java/androidx/core/text/BidiFormatter.java @@ -90,8 +90,8 @@ public final class BidiFormatter { this.length = charSequence.length(); } - private static byte getCachedDirectionality(char c2) { - return c2 < DIR_TYPE_CACHE_SIZE ? DIR_TYPE_CACHE[c2] : Character.getDirectionality(c2); + private static byte getCachedDirectionality(char c) { + return c < DIR_TYPE_CACHE_SIZE ? DIR_TYPE_CACHE[c] : Character.getDirectionality(c); } private byte skipEntityBackward() { @@ -214,8 +214,8 @@ public final class BidiFormatter { if (!this.isHtml) { return cachedDirectionality; } - char c2 = this.lastChar; - return c2 == '>' ? skipTagBackward() : c2 == ';' ? skipEntityBackward() : cachedDirectionality; + char c = this.lastChar; + return c == '>' ? skipTagBackward() : c == ';' ? skipEntityBackward() : cachedDirectionality; } public byte dirTypeForward() { @@ -231,8 +231,8 @@ public final class BidiFormatter { if (!this.isHtml) { return cachedDirectionality; } - char c2 = this.lastChar; - return c2 == '<' ? skipTagForward() : c2 == '&' ? skipEntityForward() : cachedDirectionality; + char c = this.lastChar; + return c == '<' ? skipTagForward() : c == '&' ? skipEntityForward() : cachedDirectionality; } public int getEntryDir() { diff --git a/app/src/main/java/androidx/core/text/PrecomputedTextCompat.java b/app/src/main/java/androidx/core/text/PrecomputedTextCompat.java index b7967b4c29..9f05e1ef71 100644 --- a/app/src/main/java/androidx/core/text/PrecomputedTextCompat.java +++ b/app/src/main/java/androidx/core/text/PrecomputedTextCompat.java @@ -22,7 +22,7 @@ import androidx.annotation.UiThread; import androidx.core.os.TraceCompat; import androidx.core.util.ObjectsCompat; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.concurrent.Callable; import java.util.concurrent.Executor; diff --git a/app/src/main/java/androidx/core/text/util/LinkifyCompat.java b/app/src/main/java/androidx/core/text/util/LinkifyCompat.java index 47450bbf63..8cc6b5488d 100644 --- a/app/src/main/java/androidx/core/text/util/LinkifyCompat.java +++ b/app/src/main/java/androidx/core/text/util/LinkifyCompat.java @@ -14,7 +14,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; import androidx.core.net.MailTo; import androidx.core.util.PatternsCompat; -import c.d.b.a.a; +import b.d.b.a.a; import com.adjust.sdk.Constants; import java.io.UnsupportedEncodingException; import java.lang.annotation.Retention; diff --git a/app/src/main/java/androidx/core/util/AtomicFile.java b/app/src/main/java/androidx/core/util/AtomicFile.java index f9ba7cb525..45df1c511d 100644 --- a/app/src/main/java/androidx/core/util/AtomicFile.java +++ b/app/src/main/java/androidx/core/util/AtomicFile.java @@ -3,7 +3,7 @@ package androidx.core.util; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; diff --git a/app/src/main/java/androidx/core/util/LogWriter.java b/app/src/main/java/androidx/core/util/LogWriter.java index d0beccb3a9..73691e5b15 100644 --- a/app/src/main/java/androidx/core/util/LogWriter.java +++ b/app/src/main/java/androidx/core/util/LogWriter.java @@ -34,11 +34,11 @@ public class LogWriter extends Writer { @Override // java.io.Writer public void write(char[] cArr, int i, int i2) { for (int i3 = 0; i3 < i2; i3++) { - char c2 = cArr[i + i3]; - if (c2 == '\n') { + char c = cArr[i + i3]; + if (c == '\n') { flushBuilder(); } else { - this.mBuilder.append(c2); + this.mBuilder.append(c); } } } diff --git a/app/src/main/java/androidx/core/util/Pair.java b/app/src/main/java/androidx/core/util/Pair.java index 47c33d00e0..b8af590236 100644 --- a/app/src/main/java/androidx/core/util/Pair.java +++ b/app/src/main/java/androidx/core/util/Pair.java @@ -1,7 +1,7 @@ package androidx.core.util; import androidx.annotation.NonNull; -import c.d.b.a.a; +import b.d.b.a.a; public class Pair { public final F first; public final S second; @@ -12,8 +12,8 @@ public class Pair { } @NonNull - public static Pair create(A a, B b) { - return new Pair<>(a, b); + public static Pair create(A a, B b2) { + return new Pair<>(a, b2); } public boolean equals(Object obj) { diff --git a/app/src/main/java/androidx/core/util/Preconditions.java b/app/src/main/java/androidx/core/util/Preconditions.java index 5eef27dd61..04d6b6ded3 100644 --- a/app/src/main/java/androidx/core/util/Preconditions.java +++ b/app/src/main/java/androidx/core/util/Preconditions.java @@ -5,7 +5,7 @@ import androidx.annotation.IntRange; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Locale; import java.util.Objects; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) diff --git a/app/src/main/java/androidx/core/util/RangeKt$toClosedRange$1.java b/app/src/main/java/androidx/core/util/RangeKt$toClosedRange$1.java index 08533f038e..8581a8e58c 100644 --- a/app/src/main/java/androidx/core/util/RangeKt$toClosedRange$1.java +++ b/app/src/main/java/androidx/core/util/RangeKt$toClosedRange$1.java @@ -12,7 +12,7 @@ public final class RangeKt$toClosedRange$1 implements a { @Override // d0.d0.a public boolean contains(T t) { - return a.C0197a.contains(this, t); + return a.C0195a.contains(this, t); } /* JADX WARNING: Unknown variable types count: 1 */ @@ -28,6 +28,6 @@ public final class RangeKt$toClosedRange$1 implements a { } public boolean isEmpty() { - return a.C0197a.isEmpty(this); + return a.C0195a.isEmpty(this); } } diff --git a/app/src/main/java/androidx/core/util/TimeUtils.java b/app/src/main/java/androidx/core/util/TimeUtils.java index 00a89d4ec7..8ee08cb4d4 100644 --- a/app/src/main/java/androidx/core/util/TimeUtils.java +++ b/app/src/main/java/androidx/core/util/TimeUtils.java @@ -57,7 +57,7 @@ public final class TimeUtils { } private static int formatDurationLocked(long j, int i) { - char c2; + char c; int i2; int i3; int i4; @@ -78,9 +78,9 @@ public final class TimeUtils { return 1; } if (i7 > 0) { - c2 = '+'; + c = '+'; } else { - c2 = '-'; + c = '-'; j2 = -j2; } int i9 = (int) (j2 % 1000); @@ -118,7 +118,7 @@ public final class TimeUtils { } else { i6 = 0; } - cArr[i6] = c2; + cArr[i6] = c; int i11 = i6 + 1; boolean z2 = i != 0; int printField = printField(cArr, i2, 'd', i11, false, 0); @@ -130,7 +130,7 @@ public final class TimeUtils { return printField5 + 1; } - private static int printField(char[] cArr, int i, char c2, int i2, boolean z2, int i3) { + private static int printField(char[] cArr, int i, char c, int i2, boolean z2, int i3) { int i4; if (!z2 && i <= 0) { return i2; @@ -151,7 +151,7 @@ public final class TimeUtils { } cArr[i4] = (char) (i + 48); int i7 = i4 + 1; - cArr[i7] = c2; + cArr[i7] = c; return i7 + 1; } } diff --git a/app/src/main/java/androidx/core/view/ActionProvider.java b/app/src/main/java/androidx/core/view/ActionProvider.java index 9310407b4e..15a1a3f815 100644 --- a/app/src/main/java/androidx/core/view/ActionProvider.java +++ b/app/src/main/java/androidx/core/view/ActionProvider.java @@ -6,7 +6,7 @@ import android.view.MenuItem; import android.view.SubMenu; import android.view.View; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; public abstract class ActionProvider { private static final String TAG = "ActionProvider(support)"; private final Context mContext; diff --git a/app/src/main/java/androidx/core/view/ContentInfoCompat.java b/app/src/main/java/androidx/core/view/ContentInfoCompat.java index e1fb890913..5ef11df89c 100644 --- a/app/src/main/java/androidx/core/view/ContentInfoCompat.java +++ b/app/src/main/java/androidx/core/view/ContentInfoCompat.java @@ -10,7 +10,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; import androidx.core.util.Preconditions; import androidx.core.util.Predicate; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/core/view/DisplayCutoutCompat.java b/app/src/main/java/androidx/core/view/DisplayCutoutCompat.java index 0848f3f1eb..2e2852926b 100644 --- a/app/src/main/java/androidx/core/view/DisplayCutoutCompat.java +++ b/app/src/main/java/androidx/core/view/DisplayCutoutCompat.java @@ -9,7 +9,7 @@ import androidx.annotation.RequiresApi; import androidx.core.graphics.Insets; import androidx.core.os.BuildCompat; import androidx.core.util.ObjectsCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Collections; import java.util.List; diff --git a/app/src/main/java/androidx/core/view/LayoutInflaterCompat.java b/app/src/main/java/androidx/core/view/LayoutInflaterCompat.java index d28b9fcf12..d36a7311c5 100644 --- a/app/src/main/java/androidx/core/view/LayoutInflaterCompat.java +++ b/app/src/main/java/androidx/core/view/LayoutInflaterCompat.java @@ -6,7 +6,7 @@ import android.util.Log; import android.view.LayoutInflater; import android.view.View; import androidx.annotation.NonNull; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Field; public final class LayoutInflaterCompat { private static final String TAG = "LayoutInflaterCompatHC"; diff --git a/app/src/main/java/androidx/core/view/MenuItemCompat.java b/app/src/main/java/androidx/core/view/MenuItemCompat.java index 6b2da81c7b..b2ddbc56cf 100644 --- a/app/src/main/java/androidx/core/view/MenuItemCompat.java +++ b/app/src/main/java/androidx/core/view/MenuItemCompat.java @@ -155,11 +155,11 @@ public final class MenuItemCompat { return menuItem.setActionView(view); } - public static void setAlphabeticShortcut(MenuItem menuItem, char c2, int i) { + public static void setAlphabeticShortcut(MenuItem menuItem, char c, int i) { if (menuItem instanceof SupportMenuItem) { - ((SupportMenuItem) menuItem).setAlphabeticShortcut(c2, i); + ((SupportMenuItem) menuItem).setAlphabeticShortcut(c, i); } else if (Build.VERSION.SDK_INT >= 26) { - menuItem.setAlphabeticShortcut(c2, i); + menuItem.setAlphabeticShortcut(c, i); } } @@ -187,11 +187,11 @@ public final class MenuItemCompat { } } - public static void setNumericShortcut(MenuItem menuItem, char c2, int i) { + public static void setNumericShortcut(MenuItem menuItem, char c, int i) { if (menuItem instanceof SupportMenuItem) { - ((SupportMenuItem) menuItem).setNumericShortcut(c2, i); + ((SupportMenuItem) menuItem).setNumericShortcut(c, i); } else if (Build.VERSION.SDK_INT >= 26) { - menuItem.setNumericShortcut(c2, i); + menuItem.setNumericShortcut(c, i); } } @@ -200,11 +200,11 @@ public final class MenuItemCompat { return menuItem.setOnActionExpandListener(new AnonymousClass1(onActionExpandListener)); } - public static void setShortcut(MenuItem menuItem, char c2, char c3, int i, int i2) { + public static void setShortcut(MenuItem menuItem, char c, char c2, int i, int i2) { if (menuItem instanceof SupportMenuItem) { - ((SupportMenuItem) menuItem).setShortcut(c2, c3, i, i2); + ((SupportMenuItem) menuItem).setShortcut(c, c2, i, i2); } else if (Build.VERSION.SDK_INT >= 26) { - menuItem.setShortcut(c2, c3, i, i2); + menuItem.setShortcut(c, c2, i, i2); } } diff --git a/app/src/main/java/androidx/core/view/ViewCompat.java b/app/src/main/java/androidx/core/view/ViewCompat.java index 0ea2d1c31d..3faf5fea7e 100644 --- a/app/src/main/java/androidx/core/view/ViewCompat.java +++ b/app/src/main/java/androidx/core/view/ViewCompat.java @@ -48,7 +48,7 @@ import androidx.core.view.WindowInsetsCompat; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; import androidx.core.view.accessibility.AccessibilityNodeProviderCompat; import androidx.core.view.accessibility.AccessibilityViewCommand; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.ref.WeakReference; diff --git a/app/src/main/java/androidx/core/view/ViewGroupKt.java b/app/src/main/java/androidx/core/view/ViewGroupKt.java index bd15b1d57c..78a2bed6d9 100644 --- a/app/src/main/java/androidx/core/view/ViewGroupKt.java +++ b/app/src/main/java/androidx/core/view/ViewGroupKt.java @@ -4,7 +4,7 @@ import android.view.View; import android.view.ViewGroup; import androidx.annotation.Px; import androidx.annotation.RequiresApi; -import c.d.b.a.a; +import b.d.b.a.a; import d0.f0.l; import d0.z.d.m; import java.util.Iterator; diff --git a/app/src/main/java/androidx/core/view/WindowInsetsAnimationCompat.java b/app/src/main/java/androidx/core/view/WindowInsetsAnimationCompat.java index 3a52802809..366d29d74a 100644 --- a/app/src/main/java/androidx/core/view/WindowInsetsAnimationCompat.java +++ b/app/src/main/java/androidx/core/view/WindowInsetsAnimationCompat.java @@ -19,7 +19,7 @@ import androidx.annotation.RestrictTo; import androidx.core.R; import androidx.core.graphics.Insets; import androidx.core.view.WindowInsetsCompat; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/app/src/main/java/androidx/core/view/WindowInsetsAnimationControllerCompat.java b/app/src/main/java/androidx/core/view/WindowInsetsAnimationControllerCompat.java index 962bec17a3..29ea95eceb 100644 --- a/app/src/main/java/androidx/core/view/WindowInsetsAnimationControllerCompat.java +++ b/app/src/main/java/androidx/core/view/WindowInsetsAnimationControllerCompat.java @@ -7,7 +7,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.core.graphics.Insets; -import c.d.b.a.a; +import b.d.b.a.a; import com.google.android.material.shadow.ShadowDrawableWrapper; public final class WindowInsetsAnimationControllerCompat { private final Impl mImpl; diff --git a/app/src/main/java/androidx/core/view/WindowInsetsCompat.java b/app/src/main/java/androidx/core/view/WindowInsetsCompat.java index 5f81668129..f16e7e20ea 100644 --- a/app/src/main/java/androidx/core/view/WindowInsetsCompat.java +++ b/app/src/main/java/androidx/core/view/WindowInsetsCompat.java @@ -14,7 +14,7 @@ import androidx.annotation.RestrictTo; import androidx.core.graphics.Insets; import androidx.core.util.ObjectsCompat; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.reflect.Constructor; diff --git a/app/src/main/java/androidx/core/view/animation/PathInterpolatorApi14.java b/app/src/main/java/androidx/core/view/animation/PathInterpolatorApi14.java index 37d57afa08..e4049e0382 100644 --- a/app/src/main/java/androidx/core/view/animation/PathInterpolatorApi14.java +++ b/app/src/main/java/androidx/core/view/animation/PathInterpolatorApi14.java @@ -3,7 +3,7 @@ package androidx.core.view.animation; import android.graphics.Path; import android.graphics.PathMeasure; import android.view.animation.Interpolator; -import c.d.b.a.a; +import b.d.b.a.a; public class PathInterpolatorApi14 implements Interpolator { private static final float PRECISION = 0.002f; private final float[] mX; diff --git a/app/src/main/java/androidx/core/widget/NestedScrollView.java b/app/src/main/java/androidx/core/widget/NestedScrollView.java index 708fce8da8..e555d6800d 100644 --- a/app/src/main/java/androidx/core/widget/NestedScrollView.java +++ b/app/src/main/java/androidx/core/widget/NestedScrollView.java @@ -38,7 +38,7 @@ import androidx.core.view.ScrollingView; import androidx.core.view.ViewCompat; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; import androidx.core.view.accessibility.AccessibilityRecordCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; public class NestedScrollView extends FrameLayout implements NestedScrollingParent3, NestedScrollingChild3, ScrollingView { private static final AccessibilityDelegate ACCESSIBILITY_DELEGATE = new AccessibilityDelegate(); diff --git a/app/src/main/java/androidx/core/widget/TextViewCompat.java b/app/src/main/java/androidx/core/widget/TextViewCompat.java index 840b873d87..0e27afff2c 100644 --- a/app/src/main/java/androidx/core/widget/TextViewCompat.java +++ b/app/src/main/java/androidx/core/widget/TextViewCompat.java @@ -32,7 +32,7 @@ import androidx.annotation.RestrictTo; import androidx.annotation.StyleRes; import androidx.core.text.PrecomputedTextCompat; import androidx.core.util.Preconditions; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.restapi.RestAPIBuilder; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/app/src/main/java/androidx/cursoradapter/widget/CursorAdapter.java b/app/src/main/java/androidx/cursoradapter/widget/CursorAdapter.java index 48a8d4c605..432e7374c7 100644 --- a/app/src/main/java/androidx/cursoradapter/widget/CursorAdapter.java +++ b/app/src/main/java/androidx/cursoradapter/widget/CursorAdapter.java @@ -13,7 +13,7 @@ import android.widget.FilterQueryProvider; import android.widget.Filterable; import androidx.annotation.RestrictTo; import androidx.cursoradapter.widget.CursorFilter; -import c.d.b.a.a; +import b.d.b.a.a; public abstract class CursorAdapter extends BaseAdapter implements Filterable, CursorFilter.CursorFilterClient { @Deprecated public static final int FLAG_AUTO_REQUERY = 1; diff --git a/app/src/main/java/androidx/customview/widget/ViewDragHelper.java b/app/src/main/java/androidx/customview/widget/ViewDragHelper.java index 3d3fe6f6e0..e217242bb8 100644 --- a/app/src/main/java/androidx/customview/widget/ViewDragHelper.java +++ b/app/src/main/java/androidx/customview/widget/ViewDragHelper.java @@ -13,7 +13,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.Px; import androidx.core.view.ViewCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Arrays; public class ViewDragHelper { private static final int BASE_SETTLE_DURATION = 256; diff --git a/app/src/main/java/androidx/documentfile/provider/RawDocumentFile.java b/app/src/main/java/androidx/documentfile/provider/RawDocumentFile.java index eb0b1745b9..347751c838 100644 --- a/app/src/main/java/androidx/documentfile/provider/RawDocumentFile.java +++ b/app/src/main/java/androidx/documentfile/provider/RawDocumentFile.java @@ -4,7 +4,7 @@ import android.net.Uri; import android.util.Log; import android.webkit.MimeTypeMap; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.File; import java.io.IOException; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/drawerlayout/widget/DrawerLayout.java b/app/src/main/java/androidx/drawerlayout/widget/DrawerLayout.java index d9c0a16b21..713aed4cca 100644 --- a/app/src/main/java/androidx/drawerlayout/widget/DrawerLayout.java +++ b/app/src/main/java/androidx/drawerlayout/widget/DrawerLayout.java @@ -34,7 +34,7 @@ import androidx.core.view.ViewCompat; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; import androidx.customview.view.AbsSavedState; import androidx.customview.widget.ViewDragHelper; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.List; public class DrawerLayout extends ViewGroup { diff --git a/app/src/main/java/androidx/exifinterface/media/ExifInterface.java b/app/src/main/java/androidx/exifinterface/media/ExifInterface.java index 49ff24a610..3a1a8fc31a 100644 --- a/app/src/main/java/androidx/exifinterface/media/ExifInterface.java +++ b/app/src/main/java/androidx/exifinterface/media/ExifInterface.java @@ -17,7 +17,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; import androidx.core.view.InputDeviceCompat; import androidx.media.AudioAttributesCompat; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.widgets.chat.input.MentionUtilsKt; import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; import com.google.android.material.badge.BadgeDrawable; @@ -1158,7 +1158,7 @@ public class ExifInterface { Throwable th; IOException e; ByteOrderedDataInputStream byteOrderedDataInputStream; - byte b; + byte b2; byte[] bArr; ByteOrderedDataInputStream byteOrderedDataInputStream2 = null; try { @@ -1206,9 +1206,9 @@ public class ExifInterface { } } StringBuilder sb = new StringBuilder(); - while (i < this.numberOfComponents && (b = this.bytes[i]) != 0) { - if (b >= 32) { - sb.append((char) b); + while (i < this.numberOfComponents && (b2 = this.bytes[i]) != 0) { + if (b2 >= 32) { + sb.append((char) b2); } else { sb.append('?'); } @@ -1889,11 +1889,11 @@ public class ExifInterface { if (DEBUG) { Log.d(TAG, "getJpegAttributes starting with: " + byteOrderedDataInputStream); } - char c2 = 0; + char c = 0; byteOrderedDataInputStream.mark(0); byteOrderedDataInputStream.setByteOrder(ByteOrder.BIG_ENDIAN); byte readByte = byteOrderedDataInputStream.readByte(); - byte b = -1; + byte b2 = -1; if (readByte != -1) { StringBuilder R = a.R("Invalid marker: "); R.append(Integer.toHexString(readByte & 255)); @@ -1903,7 +1903,7 @@ public class ExifInterface { int i4 = 2; while (true) { byte readByte2 = byteOrderedDataInputStream.readByte(); - if (readByte2 == b) { + if (readByte2 == b2) { int i5 = i4 + 1; byte readByte3 = byteOrderedDataInputStream.readByte(); boolean z2 = DEBUG; @@ -1941,7 +1941,7 @@ public class ExifInterface { int length = i7 + bArr3.length; byte[] copyOfRange2 = Arrays.copyOfRange(bArr, bArr3.length, readUnsignedShort); if (getAttribute(TAG_XMP) == null) { - this.mAttributes[c2].put(TAG_XMP, new ExifAttribute(1, copyOfRange2.length, (long) length, copyOfRange2)); + this.mAttributes[c].put(TAG_XMP, new ExifAttribute(1, copyOfRange2.length, (long) length, copyOfRange2)); this.mXmpIsFromSeparateMarker = true; } } @@ -1983,9 +1983,9 @@ public class ExifInterface { throw new IOException("Invalid length"); } else if (byteOrderedDataInputStream.skipBytes(readUnsignedShort) == readUnsignedShort) { i4 = i7 + readUnsignedShort; - c2 = 0; + c = 0; i3 = 2; - b = -1; + b2 = -1; } else { throw new IOException("Invalid JPEG segment"); } @@ -2172,7 +2172,7 @@ public class ExifInterface { byteOrderedDataInputStream.setByteOrder(ByteOrder.BIG_ENDIAN); int readInt = byteOrderedDataInputStream.readInt(); if (z2) { - a.k0("numberOfDirectoryEntry: ", readInt, TAG); + a.l0("numberOfDirectoryEntry: ", readInt, TAG); } for (int i4 = 0; i4 < readInt; i4++) { int readUnsignedShort = byteOrderedDataInputStream.readUnsignedShort(); @@ -2746,100 +2746,100 @@ public class ExifInterface { Objects.requireNonNull(str, "mimeType shouldn't be null"); String lowerCase = str.toLowerCase(Locale.ROOT); lowerCase.hashCode(); - char c2 = 65535; + char c = 65535; switch (lowerCase.hashCode()) { case -1875291391: if (lowerCase.equals("image/x-fuji-raf")) { - c2 = 0; + c = 0; break; } break; case -1635437028: if (lowerCase.equals("image/x-samsung-srw")) { - c2 = 1; + c = 1; break; } break; case -1594371159: if (lowerCase.equals("image/x-sony-arw")) { - c2 = 2; + c = 2; break; } break; case -1487464693: if (lowerCase.equals("image/heic")) { - c2 = 3; + c = 3; break; } break; case -1487464690: if (lowerCase.equals("image/heif")) { - c2 = 4; + c = 4; break; } break; case -1487394660: if (lowerCase.equals("image/jpeg")) { - c2 = 5; + c = 5; break; } break; case -1487018032: if (lowerCase.equals("image/webp")) { - c2 = 6; + c = 6; break; } break; case -1423313290: if (lowerCase.equals("image/x-adobe-dng")) { - c2 = 7; + c = 7; break; } break; case -985160897: if (lowerCase.equals("image/x-panasonic-rw2")) { - c2 = '\b'; + c = '\b'; break; } break; case -879258763: if (lowerCase.equals("image/png")) { - c2 = '\t'; + c = '\t'; break; } break; case -332763809: if (lowerCase.equals("image/x-pentax-pef")) { - c2 = '\n'; + c = '\n'; break; } break; case 1378106698: if (lowerCase.equals("image/x-olympus-orf")) { - c2 = 11; + c = 11; break; } break; case 2099152104: if (lowerCase.equals("image/x-nikon-nef")) { - c2 = '\f'; + c = '\f'; break; } break; case 2099152524: if (lowerCase.equals("image/x-nikon-nrw")) { - c2 = '\r'; + c = '\r'; break; } break; case 2111234748: if (lowerCase.equals("image/x-canon-cr2")) { - c2 = 14; + c = 14; break; } break; } - switch (c2) { + switch (c) { case 0: case 1: case 2: @@ -3121,10 +3121,10 @@ public class ExifInterface { if (byteOrderedDataInputStream.mPosition + 2 <= byteOrderedDataInputStream.mLength) { short readShort = byteOrderedDataInputStream.readShort(); if (DEBUG) { - a.k0("numberOfDirectoryEntry: ", readShort, TAG); + a.l0("numberOfDirectoryEntry: ", readShort, TAG); } if ((readShort * 12) + byteOrderedDataInputStream.mPosition <= byteOrderedDataInputStream.mLength && readShort > 0) { - char c2 = 0; + char c = 0; short s4 = 0; while (s4 < readShort) { int readUnsignedShort = byteOrderedDataInputStream.readUnsignedShort(); @@ -3135,7 +3135,7 @@ public class ExifInterface { boolean z3 = DEBUG; if (z3) { Object[] objArr = new Object[5]; - objArr[c2] = Integer.valueOf(i); + objArr[c] = Integer.valueOf(i); objArr[1] = Integer.valueOf(readUnsignedShort); objArr[2] = exifTag2 != null ? exifTag2.name : null; objArr[3] = Integer.valueOf(readUnsignedShort2); @@ -3155,7 +3155,7 @@ public class ExifInterface { j = ((long) readInt) * ((long) iArr[readUnsignedShort2]); if (j < 0 || j > 2147483647L) { if (z3) { - a.k0("Skip the tag entry since the number of components is invalid: ", readInt, TAG); + a.l0("Skip the tag entry since the number of components is invalid: ", readInt, TAG); } z2 = false; if (z2) { @@ -3164,7 +3164,7 @@ public class ExifInterface { if (j > 4) { int readInt2 = byteOrderedDataInputStream.readInt(); if (z3) { - a.k0("seek to data offset: ", readInt2, TAG); + a.l0("seek to data offset: ", readInt2, TAG); } i3 = readUnsignedShort2; if (this.mMimeType == 7) { @@ -3187,7 +3187,7 @@ public class ExifInterface { byteOrderedDataInputStream.seek(j4); } else { if (z3) { - a.k0("Skip the tag entry since data offset is invalid: ", readInt2, TAG); + a.l0("Skip the tag entry since data offset is invalid: ", readInt2, TAG); } byteOrderedDataInputStream.seek(peek); } @@ -3270,7 +3270,7 @@ public class ExifInterface { } } s4 = (short) (s2 + 1); - c2 = 0; + c = 0; i5 = i; readShort = s3; } else { @@ -3278,7 +3278,7 @@ public class ExifInterface { if (z2) { } s4 = (short) (s2 + 1); - c2 = 0; + c = 0; i5 = i; readShort = s3; } @@ -3294,18 +3294,18 @@ public class ExifInterface { s3 = readShort; s2 = s4; if (z3) { - a.k0("Skip the tag entry since data format is invalid: ", readUnsignedShort2, TAG); + a.l0("Skip the tag entry since data format is invalid: ", readUnsignedShort2, TAG); } j = 0; z2 = false; if (z2) { } s4 = (short) (s2 + 1); - c2 = 0; + c = 0; i5 = i; readShort = s3; } else if (z3) { - a.k0("Skip the tag entry since tag number is not defined: ", readUnsignedShort, TAG); + a.l0("Skip the tag entry since tag number is not defined: ", readUnsignedShort, TAG); } s3 = readShort; s2 = s4; @@ -3314,7 +3314,7 @@ public class ExifInterface { if (z2) { } s4 = (short) (s2 + 1); - c2 = 0; + c = 0; i5 = i; readShort = s3; } @@ -3327,7 +3327,7 @@ public class ExifInterface { long j6 = (long) readInt3; if (j6 <= 0 || readInt3 >= byteOrderedDataInputStream.mLength) { if (z4) { - a.k0("Stop reading file since a wrong offset may cause an infinite loop: ", readInt3, TAG); + a.l0("Stop reading file since a wrong offset may cause an infinite loop: ", readInt3, TAG); } } else if (!this.mAttributesOffsets.contains(Integer.valueOf(readInt3))) { byteOrderedDataInputStream.seek(j6); @@ -3337,7 +3337,7 @@ public class ExifInterface { readImageFileDirectory(byteOrderedDataInputStream, 5); } } else if (z4) { - a.k0("Stop reading file since re-reading an IFD may cause an infinite loop: ", readInt3, TAG); + a.l0("Stop reading file since re-reading an IFD may cause an infinite loop: ", readInt3, TAG); } } } @@ -4696,7 +4696,7 @@ public class ExifInterface { } } } - char c2 = 0; + char c = 0; int i4 = 0; while (i4 < EXIF_TAGS.length) { if ((i4 != 4 || this.mHasThumbnail) && (exifTag = sExifTagMapsForWriting[i4].get(str4)) != null) { @@ -4782,7 +4782,7 @@ public class ExifInterface { case 11: default: if (DEBUG) { - a.k0("Data format isn't one of expected formats: ", i, TAG); + a.l0("Data format isn't one of expected formats: ", i, TAG); break; } else { continue; @@ -4801,9 +4801,9 @@ public class ExifInterface { int i12 = 0; while (i12 < split6.length) { String[] split7 = split6[i12].split(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN, -1); - rationalArr2[i12] = new Rational((long) Double.parseDouble(split7[c2]), (long) Double.parseDouble(split7[i3])); + rationalArr2[i12] = new Rational((long) Double.parseDouble(split7[c]), (long) Double.parseDouble(split7[i3])); i12++; - c2 = 0; + c = 0; i3 = 1; split6 = split6; } @@ -4822,7 +4822,7 @@ public class ExifInterface { } i4++; i2 = 2; - c2 = 0; + c = 0; i3 = 1; } } diff --git a/app/src/main/java/androidx/fragment/app/BackStackRecord.java b/app/src/main/java/androidx/fragment/app/BackStackRecord.java index fa81b438f9..09722a43a4 100644 --- a/app/src/main/java/androidx/fragment/app/BackStackRecord.java +++ b/app/src/main/java/androidx/fragment/app/BackStackRecord.java @@ -7,7 +7,7 @@ import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; import androidx.lifecycle.Lifecycle; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.PrintWriter; import java.util.ArrayList; public final class BackStackRecord extends FragmentTransaction implements FragmentManager.BackStackEntry, FragmentManager.OpGenerator { diff --git a/app/src/main/java/androidx/fragment/app/DefaultSpecialEffectsController.java b/app/src/main/java/androidx/fragment/app/DefaultSpecialEffectsController.java index f4324d24f3..bd30bf4116 100644 --- a/app/src/main/java/androidx/fragment/app/DefaultSpecialEffectsController.java +++ b/app/src/main/java/androidx/fragment/app/DefaultSpecialEffectsController.java @@ -19,7 +19,7 @@ import androidx.core.view.ViewCompat; import androidx.core.view.ViewGroupCompat; import androidx.fragment.app.FragmentAnim; import androidx.fragment.app.SpecialEffectsController; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; diff --git a/app/src/main/java/androidx/fragment/app/Fragment.java b/app/src/main/java/androidx/fragment/app/Fragment.java index 596207698b..36a1045f09 100644 --- a/app/src/main/java/androidx/fragment/app/Fragment.java +++ b/app/src/main/java/androidx/fragment/app/Fragment.java @@ -64,7 +64,7 @@ import androidx.savedstate.SavedStateRegistry; import androidx.savedstate.SavedStateRegistryController; import androidx.savedstate.SavedStateRegistryOwner; import androidx.savedstate.ViewTreeSavedStateRegistryOwner; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.FileDescriptor; import java.io.PrintWriter; import java.lang.reflect.InvocationTargetException; diff --git a/app/src/main/java/androidx/fragment/app/FragmentContainerView.java b/app/src/main/java/androidx/fragment/app/FragmentContainerView.java index df85f7abce..4d2a63ee39 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentContainerView.java +++ b/app/src/main/java/androidx/fragment/app/FragmentContainerView.java @@ -14,7 +14,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.fragment.R; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; public final class FragmentContainerView extends FrameLayout { private ArrayList mDisappearingFragmentChildren; diff --git a/app/src/main/java/androidx/fragment/app/FragmentFactory.java b/app/src/main/java/androidx/fragment/app/FragmentFactory.java index 0b3a8eacd0..64f14e17f8 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentFactory.java +++ b/app/src/main/java/androidx/fragment/app/FragmentFactory.java @@ -3,7 +3,7 @@ package androidx.fragment.app; import androidx.annotation.NonNull; import androidx.collection.SimpleArrayMap; import androidx.fragment.app.Fragment; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.InvocationTargetException; public class FragmentFactory { private static final SimpleArrayMap>> sClassCacheMap = new SimpleArrayMap<>(); diff --git a/app/src/main/java/androidx/fragment/app/FragmentLayoutInflaterFactory.java b/app/src/main/java/androidx/fragment/app/FragmentLayoutInflaterFactory.java index 58cc3c0313..aff073ab76 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentLayoutInflaterFactory.java +++ b/app/src/main/java/androidx/fragment/app/FragmentLayoutInflaterFactory.java @@ -10,7 +10,7 @@ import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.R; -import c.d.b.a.a; +import b.d.b.a.a; public class FragmentLayoutInflaterFactory implements LayoutInflater.Factory2 { private static final String TAG = "FragmentManager"; private final FragmentManager mFragmentManager; diff --git a/app/src/main/java/androidx/fragment/app/FragmentManager.java b/app/src/main/java/androidx/fragment/app/FragmentManager.java index a63e05754b..7786791089 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentManager.java +++ b/app/src/main/java/androidx/fragment/app/FragmentManager.java @@ -50,7 +50,7 @@ import androidx.lifecycle.LifecycleEventObserver; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.ViewModelStore; import androidx.lifecycle.ViewModelStoreOwner; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.FileDescriptor; import java.io.PrintWriter; import java.util.ArrayDeque; diff --git a/app/src/main/java/androidx/fragment/app/FragmentStateManager.java b/app/src/main/java/androidx/fragment/app/FragmentStateManager.java index cbed80a9e2..a28edd2fcf 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentStateManager.java +++ b/app/src/main/java/androidx/fragment/app/FragmentStateManager.java @@ -19,7 +19,7 @@ import androidx.fragment.app.Fragment; import androidx.fragment.app.SpecialEffectsController; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.ViewModelStoreOwner; -import c.d.b.a.a; +import b.d.b.a.a; public class FragmentStateManager { private static final String TAG = "FragmentManager"; private static final String TARGET_REQUEST_CODE_STATE_TAG = "android:target_req_state"; diff --git a/app/src/main/java/androidx/fragment/app/FragmentStatePagerAdapter.java b/app/src/main/java/androidx/fragment/app/FragmentStatePagerAdapter.java index e1f6e8f509..f83d3b70c6 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentStatePagerAdapter.java +++ b/app/src/main/java/androidx/fragment/app/FragmentStatePagerAdapter.java @@ -10,7 +10,7 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.lifecycle.Lifecycle; import androidx.viewpager.widget.PagerAdapter; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; @Deprecated public abstract class FragmentStatePagerAdapter extends PagerAdapter { diff --git a/app/src/main/java/androidx/fragment/app/FragmentStore.java b/app/src/main/java/androidx/fragment/app/FragmentStore.java index e761d37aa9..d674f507f7 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentStore.java +++ b/app/src/main/java/androidx/fragment/app/FragmentStore.java @@ -6,7 +6,7 @@ import android.view.ViewGroup; import androidx.annotation.IdRes; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.FileDescriptor; import java.io.PrintWriter; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/fragment/app/FragmentTabHost.java b/app/src/main/java/androidx/fragment/app/FragmentTabHost.java index ac0d8fbbac..18ed6c2e35 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentTabHost.java +++ b/app/src/main/java/androidx/fragment/app/FragmentTabHost.java @@ -14,7 +14,7 @@ import android.widget.TabHost; import android.widget.TabWidget; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; @Deprecated public class FragmentTabHost extends TabHost implements TabHost.OnTabChangeListener { diff --git a/app/src/main/java/androidx/fragment/app/FragmentTransaction.java b/app/src/main/java/androidx/fragment/app/FragmentTransaction.java index 624594c446..12937af558 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentTransaction.java +++ b/app/src/main/java/androidx/fragment/app/FragmentTransaction.java @@ -12,7 +12,7 @@ import androidx.annotation.StringRes; import androidx.annotation.StyleRes; import androidx.core.view.ViewCompat; import androidx.lifecycle.Lifecycle; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Modifier; import java.util.ArrayList; public abstract class FragmentTransaction { diff --git a/app/src/main/java/androidx/fragment/app/FragmentViewModelLazyKt$activityViewModels$1.java b/app/src/main/java/androidx/fragment/app/FragmentViewModelLazyKt$activityViewModels$1.java index 0bd213c749..89d41ff371 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentViewModelLazyKt$activityViewModels$1.java +++ b/app/src/main/java/androidx/fragment/app/FragmentViewModelLazyKt$activityViewModels$1.java @@ -1,7 +1,7 @@ package androidx.fragment.app; import androidx.lifecycle.ViewModelStore; -import c.d.b.a.a; +import b.d.b.a.a; import d0.z.d.o; import kotlin.jvm.functions.Function0; /* compiled from: FragmentViewModelLazy.kt */ diff --git a/app/src/main/java/androidx/fragment/app/FragmentViewModelLazyKt$activityViewModels$2.java b/app/src/main/java/androidx/fragment/app/FragmentViewModelLazyKt$activityViewModels$2.java index 851ebde956..78780640a1 100644 --- a/app/src/main/java/androidx/fragment/app/FragmentViewModelLazyKt$activityViewModels$2.java +++ b/app/src/main/java/androidx/fragment/app/FragmentViewModelLazyKt$activityViewModels$2.java @@ -1,7 +1,7 @@ package androidx.fragment.app; import androidx.lifecycle.ViewModelProvider; -import c.d.b.a.a; +import b.d.b.a.a; import d0.z.d.o; import kotlin.jvm.functions.Function0; /* compiled from: FragmentViewModelLazy.kt */ diff --git a/app/src/main/java/androidx/fragment/app/LogWriter.java b/app/src/main/java/androidx/fragment/app/LogWriter.java index 4602563e27..00af8d8bcf 100644 --- a/app/src/main/java/androidx/fragment/app/LogWriter.java +++ b/app/src/main/java/androidx/fragment/app/LogWriter.java @@ -31,11 +31,11 @@ public final class LogWriter extends Writer { @Override // java.io.Writer public void write(char[] cArr, int i, int i2) { for (int i3 = 0; i3 < i2; i3++) { - char c2 = cArr[i + i3]; - if (c2 == '\n') { + char c = cArr[i + i3]; + if (c == '\n') { flushBuilder(); } else { - this.mBuilder.append(c2); + this.mBuilder.append(c); } } } diff --git a/app/src/main/java/androidx/fragment/app/SpecialEffectsController.java b/app/src/main/java/androidx/fragment/app/SpecialEffectsController.java index 8f97bd5650..d51ec6595f 100644 --- a/app/src/main/java/androidx/fragment/app/SpecialEffectsController.java +++ b/app/src/main/java/androidx/fragment/app/SpecialEffectsController.java @@ -9,7 +9,7 @@ import androidx.annotation.Nullable; import androidx.core.os.CancellationSignal; import androidx.core.view.ViewCompat; import androidx.fragment.R; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; diff --git a/app/src/main/java/androidx/interpolator/view/animation/LookupTableInterpolator.java b/app/src/main/java/androidx/interpolator/view/animation/LookupTableInterpolator.java index b0ec6d16e9..9c3c5e9c4b 100644 --- a/app/src/main/java/androidx/interpolator/view/animation/LookupTableInterpolator.java +++ b/app/src/main/java/androidx/interpolator/view/animation/LookupTableInterpolator.java @@ -1,7 +1,7 @@ package androidx.interpolator.view.animation; import android.view.animation.Interpolator; -import c.d.b.a.a; +import b.d.b.a.a; public abstract class LookupTableInterpolator implements Interpolator { private final float mStepSize; private final float[] mValues; diff --git a/app/src/main/java/androidx/lifecycle/BlockRunner$cancel$1.java b/app/src/main/java/androidx/lifecycle/BlockRunner$cancel$1.java index 1612eb639d..00b91c3082 100644 --- a/app/src/main/java/androidx/lifecycle/BlockRunner$cancel$1.java +++ b/app/src/main/java/androidx/lifecycle/BlockRunner$cancel$1.java @@ -1,6 +1,6 @@ package androidx.lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.l; import d0.w.h.c; import d0.w.i.a.e; diff --git a/app/src/main/java/androidx/lifecycle/BlockRunner.java b/app/src/main/java/androidx/lifecycle/BlockRunner.java index a805f87e60..0c2487ba7e 100644 --- a/app/src/main/java/androidx/lifecycle/BlockRunner.java +++ b/app/src/main/java/androidx/lifecycle/BlockRunner.java @@ -1,7 +1,7 @@ package androidx.lifecycle; import androidx.annotation.MainThread; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import kotlin.Unit; import kotlin.coroutines.Continuation; @@ -65,7 +65,7 @@ public final class BlockRunner { if (this.cancellationJob == null) { CoroutineScope coroutineScope = this.scope; CoroutineDispatcher coroutineDispatcher = k0.a; - this.cancellationJob = f.F0(coroutineScope, n.b.H(), null, new BlockRunner$cancel$1(this, null), 2, null); + this.cancellationJob = f.F0(coroutineScope, n.f3787b.H(), null, new BlockRunner$cancel$1(this, null), 2, null); return; } throw new IllegalStateException("Cancel call cannot happen without a maybeRun".toString()); diff --git a/app/src/main/java/androidx/lifecycle/ClassesInfoCache.java b/app/src/main/java/androidx/lifecycle/ClassesInfoCache.java index 4b8745483f..e6bd57eeb0 100644 --- a/app/src/main/java/androidx/lifecycle/ClassesInfoCache.java +++ b/app/src/main/java/androidx/lifecycle/ClassesInfoCache.java @@ -2,7 +2,7 @@ package androidx.lifecycle; import androidx.annotation.Nullable; import androidx.lifecycle.Lifecycle; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/lifecycle/CloseableCoroutineScope.java b/app/src/main/java/androidx/lifecycle/CloseableCoroutineScope.java index a0a8109a71..f654f3e639 100644 --- a/app/src/main/java/androidx/lifecycle/CloseableCoroutineScope.java +++ b/app/src/main/java/androidx/lifecycle/CloseableCoroutineScope.java @@ -1,6 +1,6 @@ package androidx.lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import java.io.Closeable; import kotlin.coroutines.CoroutineContext; diff --git a/app/src/main/java/androidx/lifecycle/CoroutineLiveData.java b/app/src/main/java/androidx/lifecycle/CoroutineLiveData.java index 91bf614833..ac1728f255 100644 --- a/app/src/main/java/androidx/lifecycle/CoroutineLiveData.java +++ b/app/src/main/java/androidx/lifecycle/CoroutineLiveData.java @@ -1,6 +1,6 @@ package androidx.lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.l; import d0.w.h.c; import d0.z.d.m; @@ -45,7 +45,7 @@ public final class CoroutineLiveData extends MediatorLiveData { m.checkNotNullParameter(function2, "block"); t1 t1Var = new t1((Job) coroutineContext.get(Job.h)); CoroutineDispatcher coroutineDispatcher = k0.a; - this.blockRunner = new BlockRunner<>(this, function2, j, f.c(n.b.H().plus(coroutineContext).plus(t1Var)), new AnonymousClass1(this)); + this.blockRunner = new BlockRunner<>(this, function2, j, f.c(n.f3787b.H().plus(coroutineContext).plus(t1Var)), new AnonymousClass1(this)); } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ diff --git a/app/src/main/java/androidx/lifecycle/CoroutineLiveDataKt.java b/app/src/main/java/androidx/lifecycle/CoroutineLiveDataKt.java index 5cc1e6fcf0..756b61797f 100644 --- a/app/src/main/java/androidx/lifecycle/CoroutineLiveDataKt.java +++ b/app/src/main/java/androidx/lifecycle/CoroutineLiveDataKt.java @@ -1,7 +1,7 @@ package androidx.lifecycle; import androidx.annotation.RequiresApi; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import java.time.Duration; import kotlin.Unit; @@ -17,7 +17,7 @@ public final class CoroutineLiveDataKt { public static final Object addDisposableSource(MediatorLiveData mediatorLiveData, LiveData liveData, Continuation continuation) { CoroutineDispatcher coroutineDispatcher = k0.a; - return f.t1(n.b.H(), new CoroutineLiveDataKt$addDisposableSource$2(mediatorLiveData, liveData, null), continuation); + return f.t1(n.f3787b.H(), new CoroutineLiveDataKt$addDisposableSource$2(mediatorLiveData, liveData, null), continuation); } public static final LiveData liveData(CoroutineContext coroutineContext, long j, Function2, ? super Continuation, ? extends Object> function2) { diff --git a/app/src/main/java/androidx/lifecycle/DispatchQueue.java b/app/src/main/java/androidx/lifecycle/DispatchQueue.java index 63ca4bc860..455ef0c24a 100644 --- a/app/src/main/java/androidx/lifecycle/DispatchQueue.java +++ b/app/src/main/java/androidx/lifecycle/DispatchQueue.java @@ -42,7 +42,7 @@ public final class DispatchQueue { m.checkNotNullParameter(coroutineContext, "context"); m.checkNotNullParameter(runnable, "runnable"); CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); if (H.isDispatchNeeded(coroutineContext) || canRun()) { H.dispatch(coroutineContext, new DispatchQueue$dispatchAndEnqueue$$inlined$with$lambda$1(this, coroutineContext, runnable)); } else { diff --git a/app/src/main/java/androidx/lifecycle/EmittedSource.java b/app/src/main/java/androidx/lifecycle/EmittedSource.java index e5211a62e9..183d1cd46c 100644 --- a/app/src/main/java/androidx/lifecycle/EmittedSource.java +++ b/app/src/main/java/androidx/lifecycle/EmittedSource.java @@ -1,7 +1,7 @@ package androidx.lifecycle; import androidx.annotation.MainThread; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.w.h.c; import d0.z.d.m; import kotlin.Unit; @@ -39,12 +39,12 @@ public final class EmittedSource implements m0 { @Override // s.a.m0 public void dispose() { CoroutineDispatcher coroutineDispatcher = k0.a; - f.F0(f.c(n.b.H()), null, null, new EmittedSource$dispose$1(this, null), 3, null); + f.F0(f.c(n.f3787b.H()), null, null, new EmittedSource$dispose$1(this, null), 3, null); } public final Object disposeNow(Continuation continuation) { CoroutineDispatcher coroutineDispatcher = k0.a; - Object t1 = f.t1(n.b.H(), new EmittedSource$disposeNow$2(this, null), continuation); + Object t1 = f.t1(n.f3787b.H(), new EmittedSource$disposeNow$2(this, null), continuation); return t1 == c.getCOROUTINE_SUSPENDED() ? t1 : Unit.a; } } diff --git a/app/src/main/java/androidx/lifecycle/FlowLiveDataConversions$asFlow$1.java b/app/src/main/java/androidx/lifecycle/FlowLiveDataConversions$asFlow$1.java index 1aa65a709f..4df5446358 100644 --- a/app/src/main/java/androidx/lifecycle/FlowLiveDataConversions$asFlow$1.java +++ b/app/src/main/java/androidx/lifecycle/FlowLiveDataConversions$asFlow$1.java @@ -143,19 +143,19 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio if (i == 0) { l.throwOnFailure(obj); eVar2 = (s.a.c2.e) this.L$0; - f b = c.i.a.f.e.o.f.b(-1, null, null, 6); - observer3 = new FlowLiveDataConversions$asFlow$1$observer$1(b); + f b2 = b.i.a.f.e.o.f.b(-1, null, null, 6); + observer3 = new FlowLiveDataConversions$asFlow$1$observer$1(b2); CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); AnonymousClass1 r8 = new AnonymousClass1(this, observer3, null); this.L$0 = eVar2; - this.L$1 = b; + this.L$1 = b2; this.L$2 = observer3; this.label = 1; - if (c.i.a.f.e.o.f.t1(H, r8, this) == coroutine_suspended) { + if (b.i.a.f.e.o.f.t1(H, r8, this) == coroutine_suspended) { return coroutine_suspended; } - fVar = b; + fVar = b2; } else if (i == 1) { observer3 = (Observer) this.L$2; fVar = (f) this.L$1; @@ -171,7 +171,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio } x0 x0Var = x0.j; CoroutineDispatcher coroutineDispatcher2 = k0.a; - c.i.a.f.e.o.f.F0(x0Var, n.b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer2, null), 2, null); + b.i.a.f.e.o.f.F0(x0Var, n.f3787b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer2, null), 2, null); return Unit.a; } else if (i == 3) { g gVar3 = (g) this.L$2; @@ -214,14 +214,14 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio } x0 x0Var = x0.j; CoroutineDispatcher coroutineDispatcher2 = k0.a; - c.i.a.f.e.o.f.F0(x0Var, n.b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer2, null), 2, null); + b.i.a.f.e.o.f.F0(x0Var, n.f3787b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer2, null), 2, null); return Unit.a; } catch (Throwable th2) { th = th2; observer = observer2; x0 x0Var2 = x0.j; CoroutineDispatcher coroutineDispatcher3 = k0.a; - c.i.a.f.e.o.f.F0(x0Var2, n.b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null); + b.i.a.f.e.o.f.F0(x0Var2, n.f3787b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null); throw th; } } @@ -231,7 +231,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio flowLiveDataConversions$asFlow$1 = this; x0 x0Var2 = x0.j; CoroutineDispatcher coroutineDispatcher3 = k0.a; - c.i.a.f.e.o.f.F0(x0Var2, n.b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null); + b.i.a.f.e.o.f.F0(x0Var2, n.f3787b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null); throw th; } } else { @@ -247,7 +247,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio flowLiveDataConversions$asFlow$1 = this; x0 x0Var2 = x0.j; CoroutineDispatcher coroutineDispatcher3 = k0.a; - c.i.a.f.e.o.f.F0(x0Var2, n.b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null); + b.i.a.f.e.o.f.F0(x0Var2, n.f3787b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null); throw th; } try { @@ -263,7 +263,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio th = th5; x0 x0Var2 = x0.j; CoroutineDispatcher coroutineDispatcher3 = k0.a; - c.i.a.f.e.o.f.F0(x0Var2, n.b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null); + b.i.a.f.e.o.f.F0(x0Var2, n.f3787b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null); throw th; } } diff --git a/app/src/main/java/androidx/lifecycle/LifecycleController$observer$1.java b/app/src/main/java/androidx/lifecycle/LifecycleController$observer$1.java index b1010ba3d3..dc8288069a 100644 --- a/app/src/main/java/androidx/lifecycle/LifecycleController$observer$1.java +++ b/app/src/main/java/androidx/lifecycle/LifecycleController$observer$1.java @@ -1,7 +1,7 @@ package androidx.lifecycle; import androidx.lifecycle.Lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import kotlinx.coroutines.Job; /* compiled from: LifecycleController.kt */ diff --git a/app/src/main/java/androidx/lifecycle/LifecycleController.java b/app/src/main/java/androidx/lifecycle/LifecycleController.java index 73dabcc5c0..0eca182cd6 100644 --- a/app/src/main/java/androidx/lifecycle/LifecycleController.java +++ b/app/src/main/java/androidx/lifecycle/LifecycleController.java @@ -2,7 +2,7 @@ package androidx.lifecycle; import androidx.annotation.MainThread; import androidx.lifecycle.Lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import kotlinx.coroutines.Job; /* compiled from: LifecycleController.kt */ diff --git a/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScope.java b/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScope.java index af2d59828d..3bb307dd11 100644 --- a/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScope.java +++ b/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScope.java @@ -1,6 +1,6 @@ package androidx.lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import kotlin.Unit; import kotlin.coroutines.Continuation; diff --git a/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScopeImpl$register$1.java b/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScopeImpl$register$1.java index fea806db52..1fcd7488dc 100644 --- a/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScopeImpl$register$1.java +++ b/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScopeImpl$register$1.java @@ -1,7 +1,7 @@ package androidx.lifecycle; import androidx.lifecycle.Lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.l; import d0.w.h.c; import d0.w.i.a.e; diff --git a/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScopeImpl.java b/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScopeImpl.java index 8f16ca9b5b..190ca365c5 100644 --- a/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScopeImpl.java +++ b/app/src/main/java/androidx/lifecycle/LifecycleCoroutineScopeImpl.java @@ -1,7 +1,7 @@ package androidx.lifecycle; import androidx.lifecycle.Lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import kotlin.coroutines.CoroutineContext; import kotlinx.coroutines.CoroutineDispatcher; @@ -44,6 +44,6 @@ public final class LifecycleCoroutineScopeImpl extends LifecycleCoroutineScope i public final void register() { CoroutineDispatcher coroutineDispatcher = k0.a; - f.F0(this, n.b.H(), null, new LifecycleCoroutineScopeImpl$register$1(this, null), 2, null); + f.F0(this, n.f3787b.H(), null, new LifecycleCoroutineScopeImpl$register$1(this, null), 2, null); } } diff --git a/app/src/main/java/androidx/lifecycle/LifecycleKt.java b/app/src/main/java/androidx/lifecycle/LifecycleKt.java index 856f33d2da..c3f72fb68b 100644 --- a/app/src/main/java/androidx/lifecycle/LifecycleKt.java +++ b/app/src/main/java/androidx/lifecycle/LifecycleKt.java @@ -1,6 +1,6 @@ package androidx.lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import kotlin.coroutines.CoroutineContext; import kotlinx.coroutines.CoroutineDispatcher; @@ -20,7 +20,7 @@ public final class LifecycleKt { } u d = f.d(null, 1); CoroutineDispatcher coroutineDispatcher = k0.a; - lifecycleCoroutineScopeImpl = new LifecycleCoroutineScopeImpl(lifecycle, CoroutineContext.Element.a.plus((h1) d, n.b.H())); + lifecycleCoroutineScopeImpl = new LifecycleCoroutineScopeImpl(lifecycle, CoroutineContext.Element.a.plus((h1) d, n.f3787b.H())); } while (!lifecycle.mInternalScopeRef.compareAndSet(null, lifecycleCoroutineScopeImpl)); lifecycleCoroutineScopeImpl.register(); return lifecycleCoroutineScopeImpl; diff --git a/app/src/main/java/androidx/lifecycle/LifecycleRegistry.java b/app/src/main/java/androidx/lifecycle/LifecycleRegistry.java index 50d1d6f841..de6f1f14c4 100644 --- a/app/src/main/java/androidx/lifecycle/LifecycleRegistry.java +++ b/app/src/main/java/androidx/lifecycle/LifecycleRegistry.java @@ -9,7 +9,7 @@ import androidx.arch.core.executor.ArchTaskExecutor; import androidx.arch.core.internal.FastSafeIterableMap; import androidx.arch.core.internal.SafeIterableMap; import androidx.lifecycle.Lifecycle; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Iterator; diff --git a/app/src/main/java/androidx/lifecycle/LiveData.java b/app/src/main/java/androidx/lifecycle/LiveData.java index 736fe5c932..1be7290019 100644 --- a/app/src/main/java/androidx/lifecycle/LiveData.java +++ b/app/src/main/java/androidx/lifecycle/LiveData.java @@ -6,7 +6,7 @@ import androidx.annotation.Nullable; import androidx.arch.core.executor.ArchTaskExecutor; import androidx.arch.core.internal.SafeIterableMap; import androidx.lifecycle.Lifecycle; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Iterator; import java.util.Map; public abstract class LiveData { diff --git a/app/src/main/java/androidx/lifecycle/LiveDataScopeImpl.java b/app/src/main/java/androidx/lifecycle/LiveDataScopeImpl.java index f9b77573be..59a8243ab6 100644 --- a/app/src/main/java/androidx/lifecycle/LiveDataScopeImpl.java +++ b/app/src/main/java/androidx/lifecycle/LiveDataScopeImpl.java @@ -1,6 +1,6 @@ package androidx.lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.w.h.c; import d0.z.d.m; import kotlin.Unit; @@ -20,7 +20,7 @@ public final class LiveDataScopeImpl implements LiveDataScope { m.checkNotNullParameter(coroutineContext, "context"); this.target = coroutineLiveData; CoroutineDispatcher coroutineDispatcher = k0.a; - this.coroutineContext = coroutineContext.plus(n.b.H()); + this.coroutineContext = coroutineContext.plus(n.f3787b.H()); } @Override // androidx.lifecycle.LiveDataScope diff --git a/app/src/main/java/androidx/lifecycle/PausingDispatcher.java b/app/src/main/java/androidx/lifecycle/PausingDispatcher.java index 40b33796bf..a58bb5f86c 100644 --- a/app/src/main/java/androidx/lifecycle/PausingDispatcher.java +++ b/app/src/main/java/androidx/lifecycle/PausingDispatcher.java @@ -20,7 +20,7 @@ public final class PausingDispatcher extends CoroutineDispatcher { public boolean isDispatchNeeded(CoroutineContext coroutineContext) { m.checkNotNullParameter(coroutineContext, "context"); CoroutineDispatcher coroutineDispatcher = k0.a; - if (n.b.H().isDispatchNeeded(coroutineContext)) { + if (n.f3787b.H().isDispatchNeeded(coroutineContext)) { return true; } return !this.dispatchQueue.canRun(); diff --git a/app/src/main/java/androidx/lifecycle/PausingDispatcherKt$whenStateAtLeast$2.java b/app/src/main/java/androidx/lifecycle/PausingDispatcherKt$whenStateAtLeast$2.java index 44feb05367..c217925b32 100644 --- a/app/src/main/java/androidx/lifecycle/PausingDispatcherKt$whenStateAtLeast$2.java +++ b/app/src/main/java/androidx/lifecycle/PausingDispatcherKt$whenStateAtLeast$2.java @@ -1,7 +1,7 @@ package androidx.lifecycle; import androidx.lifecycle.Lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.l; import d0.w.h.c; import d0.w.i.a.e; diff --git a/app/src/main/java/androidx/lifecycle/PausingDispatcherKt.java b/app/src/main/java/androidx/lifecycle/PausingDispatcherKt.java index 8ebdaff2f8..aaa565c303 100644 --- a/app/src/main/java/androidx/lifecycle/PausingDispatcherKt.java +++ b/app/src/main/java/androidx/lifecycle/PausingDispatcherKt.java @@ -1,7 +1,7 @@ package androidx.lifecycle; import androidx.lifecycle.Lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import kotlin.coroutines.Continuation; import kotlin.jvm.functions.Function2; @@ -43,6 +43,6 @@ public final class PausingDispatcherKt { public static final Object whenStateAtLeast(Lifecycle lifecycle, Lifecycle.State state, Function2, ? extends Object> function2, Continuation continuation) { CoroutineDispatcher coroutineDispatcher = k0.a; - return f.t1(n.b.H(), new PausingDispatcherKt$whenStateAtLeast$2(lifecycle, state, function2, null), continuation); + return f.t1(n.f3787b.H(), new PausingDispatcherKt$whenStateAtLeast$2(lifecycle, state, function2, null), continuation); } } diff --git a/app/src/main/java/androidx/lifecycle/SavedStateHandle.java b/app/src/main/java/androidx/lifecycle/SavedStateHandle.java index bfe30c777a..d428edc589 100644 --- a/app/src/main/java/androidx/lifecycle/SavedStateHandle.java +++ b/app/src/main/java/androidx/lifecycle/SavedStateHandle.java @@ -11,7 +11,7 @@ import androidx.annotation.MainThread; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.savedstate.SavedStateRegistry; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; diff --git a/app/src/main/java/androidx/lifecycle/ViewModelKt.java b/app/src/main/java/androidx/lifecycle/ViewModelKt.java index 5aebde195d..886b12e59d 100644 --- a/app/src/main/java/androidx/lifecycle/ViewModelKt.java +++ b/app/src/main/java/androidx/lifecycle/ViewModelKt.java @@ -1,6 +1,6 @@ package androidx.lifecycle; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; import d0.z.d.m; import kotlin.coroutines.CoroutineContext; import kotlinx.coroutines.CoroutineDispatcher; @@ -21,7 +21,7 @@ public final class ViewModelKt { } u d = f.d(null, 1); CoroutineDispatcher coroutineDispatcher = k0.a; - Object tagIfAbsent = viewModel.setTagIfAbsent(JOB_KEY, new CloseableCoroutineScope(CoroutineContext.Element.a.plus((h1) d, n.b.H()))); + Object tagIfAbsent = viewModel.setTagIfAbsent(JOB_KEY, new CloseableCoroutineScope(CoroutineContext.Element.a.plus((h1) d, n.f3787b.H()))); m.checkNotNullExpressionValue(tagIfAbsent, "setTagIfAbsent(\n …Main.immediate)\n )"); return (CoroutineScope) tagIfAbsent; } diff --git a/app/src/main/java/androidx/lifecycle/WithLifecycleStateKt.java b/app/src/main/java/androidx/lifecycle/WithLifecycleStateKt.java index e8f2f3bdd2..d5b9dccd54 100644 --- a/app/src/main/java/androidx/lifecycle/WithLifecycleStateKt.java +++ b/app/src/main/java/androidx/lifecycle/WithLifecycleStateKt.java @@ -35,7 +35,7 @@ public final class WithLifecycleStateKt { public static final Object withCreated(Lifecycle lifecycle, Function0 function0, Continuation continuation) { Lifecycle.State state = Lifecycle.State.CREATED; CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -52,7 +52,7 @@ public final class WithLifecycleStateKt { m.checkNotNullExpressionValue(lifecycle, "lifecycle"); Lifecycle.State state = Lifecycle.State.CREATED; CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -67,7 +67,7 @@ public final class WithLifecycleStateKt { private static final Object withCreated$$forInline(Lifecycle lifecycle, Function0 function0, Continuation continuation) { Lifecycle.State state = Lifecycle.State.CREATED; CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } @@ -76,7 +76,7 @@ public final class WithLifecycleStateKt { m.checkNotNullExpressionValue(lifecycleOwner.getLifecycle(), "lifecycle"); Lifecycle.State state = Lifecycle.State.CREATED; CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } @@ -84,7 +84,7 @@ public final class WithLifecycleStateKt { public static final Object withResumed(Lifecycle lifecycle, Function0 function0, Continuation continuation) { Lifecycle.State state = Lifecycle.State.RESUMED; CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -101,7 +101,7 @@ public final class WithLifecycleStateKt { m.checkNotNullExpressionValue(lifecycle, "lifecycle"); Lifecycle.State state = Lifecycle.State.RESUMED; CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -116,7 +116,7 @@ public final class WithLifecycleStateKt { private static final Object withResumed$$forInline(Lifecycle lifecycle, Function0 function0, Continuation continuation) { Lifecycle.State state = Lifecycle.State.RESUMED; CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } @@ -125,7 +125,7 @@ public final class WithLifecycleStateKt { m.checkNotNullExpressionValue(lifecycleOwner.getLifecycle(), "lifecycle"); Lifecycle.State state = Lifecycle.State.RESUMED; CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } @@ -133,7 +133,7 @@ public final class WithLifecycleStateKt { public static final Object withStarted(Lifecycle lifecycle, Function0 function0, Continuation continuation) { Lifecycle.State state = Lifecycle.State.STARTED; CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -150,7 +150,7 @@ public final class WithLifecycleStateKt { m.checkNotNullExpressionValue(lifecycle, "lifecycle"); Lifecycle.State state = Lifecycle.State.STARTED; CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -165,7 +165,7 @@ public final class WithLifecycleStateKt { private static final Object withStarted$$forInline(Lifecycle lifecycle, Function0 function0, Continuation continuation) { Lifecycle.State state = Lifecycle.State.STARTED; CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } @@ -174,7 +174,7 @@ public final class WithLifecycleStateKt { m.checkNotNullExpressionValue(lifecycleOwner.getLifecycle(), "lifecycle"); Lifecycle.State state = Lifecycle.State.STARTED; CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } @@ -182,7 +182,7 @@ public final class WithLifecycleStateKt { public static final Object withStateAtLeast(Lifecycle lifecycle, Lifecycle.State state, Function0 function0, Continuation continuation) { if (state.compareTo(Lifecycle.State.CREATED) >= 0) { CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -201,7 +201,7 @@ public final class WithLifecycleStateKt { m.checkNotNullExpressionValue(lifecycle, "lifecycle"); if (state.compareTo(Lifecycle.State.CREATED) >= 0) { CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -220,7 +220,7 @@ public final class WithLifecycleStateKt { throw new IllegalArgumentException(("target state must be CREATED or greater, found " + state).toString()); } CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } @@ -231,14 +231,14 @@ public final class WithLifecycleStateKt { throw new IllegalArgumentException(("target state must be CREATED or greater, found " + state).toString()); } CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } public static final Object withStateAtLeastUnchecked(Lifecycle lifecycle, Lifecycle.State state, Function0 function0, Continuation continuation) { CoroutineDispatcher coroutineDispatcher = k0.a; - l1 H = n.b.H(); + l1 H = n.f3787b.H(); boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext()); if (!isDispatchNeeded) { if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) { @@ -252,7 +252,7 @@ public final class WithLifecycleStateKt { private static final Object withStateAtLeastUnchecked$$forInline(Lifecycle lifecycle, Lifecycle.State state, Function0 function0, Continuation continuation) { CoroutineDispatcher coroutineDispatcher = k0.a; - n.b.H(); + n.f3787b.H(); d0.z.d.l.mark(3); throw null; } diff --git a/app/src/main/java/androidx/loader/app/LoaderManagerImpl.java b/app/src/main/java/androidx/loader/app/LoaderManagerImpl.java index 385c0193e5..666cbdfe9a 100644 --- a/app/src/main/java/androidx/loader/app/LoaderManagerImpl.java +++ b/app/src/main/java/androidx/loader/app/LoaderManagerImpl.java @@ -16,7 +16,7 @@ import androidx.lifecycle.ViewModelProvider; import androidx.lifecycle.ViewModelStore; import androidx.loader.app.LoaderManager; import androidx.loader.content.Loader; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.FileDescriptor; import java.io.PrintWriter; import java.lang.reflect.Modifier; diff --git a/app/src/main/java/androidx/loader/content/Loader.java b/app/src/main/java/androidx/loader/content/Loader.java index f382eb501b..28f0c2c3d7 100644 --- a/app/src/main/java/androidx/loader/content/Loader.java +++ b/app/src/main/java/androidx/loader/content/Loader.java @@ -7,7 +7,7 @@ import androidx.annotation.MainThread; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.util.DebugUtils; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.FileDescriptor; import java.io.PrintWriter; public class Loader { diff --git a/app/src/main/java/androidx/loader/content/ModernAsyncTask.java b/app/src/main/java/androidx/loader/content/ModernAsyncTask.java index dcf42e93f0..9b2cbfafa5 100644 --- a/app/src/main/java/androidx/loader/content/ModernAsyncTask.java +++ b/app/src/main/java/androidx/loader/content/ModernAsyncTask.java @@ -7,7 +7,7 @@ import android.os.Message; import android.os.Process; import android.util.Log; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.concurrent.BlockingQueue; import java.util.concurrent.Callable; import java.util.concurrent.CancellationException; diff --git a/app/src/main/java/androidx/media/AudioAttributesCompat.java b/app/src/main/java/androidx/media/AudioAttributesCompat.java index ee57ae83f6..bc9aeaca75 100644 --- a/app/src/main/java/androidx/media/AudioAttributesCompat.java +++ b/app/src/main/java/androidx/media/AudioAttributesCompat.java @@ -11,7 +11,7 @@ import androidx.media.AudioAttributesImplApi21; import androidx.media.AudioAttributesImplApi26; import androidx.media.AudioAttributesImplBase; import androidx.versionedparcelable.VersionedParcelable; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; public class AudioAttributesCompat implements VersionedParcelable { diff --git a/app/src/main/java/androidx/media/AudioAttributesImplApi21.java b/app/src/main/java/androidx/media/AudioAttributesImplApi21.java index 94cc1deccf..500eddb5d0 100644 --- a/app/src/main/java/androidx/media/AudioAttributesImplApi21.java +++ b/app/src/main/java/androidx/media/AudioAttributesImplApi21.java @@ -6,7 +6,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; import androidx.media.AudioAttributesImpl; -import c.d.b.a.a; +import b.d.b.a.a; @RequiresApi(21) @RestrictTo({RestrictTo.Scope.LIBRARY}) public class AudioAttributesImplApi21 implements AudioAttributesImpl { diff --git a/app/src/main/java/androidx/media/AudioFocusRequestCompat.java b/app/src/main/java/androidx/media/AudioFocusRequestCompat.java index d6cc6b7dd5..63710327d4 100644 --- a/app/src/main/java/androidx/media/AudioFocusRequestCompat.java +++ b/app/src/main/java/androidx/media/AudioFocusRequestCompat.java @@ -12,7 +12,7 @@ import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import androidx.core.util.ObjectsCompat; import androidx.media.AudioAttributesCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Objects; public class AudioFocusRequestCompat { public static final AudioAttributesCompat FOCUS_DEFAULT_ATTR = new AudioAttributesCompat.Builder().setUsage(1).build(); diff --git a/app/src/main/java/androidx/media/MediaBrowserServiceCompat.java b/app/src/main/java/androidx/media/MediaBrowserServiceCompat.java index 6667a5922b..74f73fd9df 100644 --- a/app/src/main/java/androidx/media/MediaBrowserServiceCompat.java +++ b/app/src/main/java/androidx/media/MediaBrowserServiceCompat.java @@ -30,7 +30,7 @@ import androidx.collection.ArrayMap; import androidx.core.app.BundleCompat; import androidx.core.util.Pair; import androidx.media.MediaSessionManager; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.FileDescriptor; import java.io.PrintWriter; import java.util.ArrayList; @@ -92,7 +92,7 @@ public abstract class MediaBrowserServiceCompat extends Service { StringBuilder R = a.R("Calling onLoadChildren() failed for id="); R.append(this.val$parentId); R.append(" package="); - a.n0(R, this.val$connection.pkg, MediaBrowserServiceCompat.TAG); + a.o0(R, this.val$connection.pkg, MediaBrowserServiceCompat.TAG); } } else if (MediaBrowserServiceCompat.DEBUG) { StringBuilder R2 = a.R("Not sending onLoadChildren result for connection that has been disconnected. pkg="); @@ -462,8 +462,8 @@ public abstract class MediaBrowserServiceCompat extends Service { BundleCompat.putBinder(bundle2, MediaBrowserProtocol.EXTRA_MESSENGER_BINDER, this.mMessenger.getBinder()); MediaSessionCompat.Token token = MediaBrowserServiceCompat.this.mSession; if (token != null) { - b b = token.b(); - BundleCompat.putBinder(bundle2, MediaBrowserProtocol.EXTRA_SESSION_BINDER, b == null ? null : b.asBinder()); + b b2 = token.b(); + BundleCompat.putBinder(bundle2, MediaBrowserProtocol.EXTRA_SESSION_BINDER, b2 == null ? null : b2.asBinder()); } else { this.mRootExtrasList.add(bundle2); } @@ -506,10 +506,10 @@ public abstract class MediaBrowserServiceCompat extends Service { public void setSessionTokenOnHandler(MediaSessionCompat.Token token) { if (!this.mRootExtrasList.isEmpty()) { - b b = token.b(); - if (b != null) { + b b2 = token.b(); + if (b2 != null) { for (Bundle bundle : this.mRootExtrasList) { - BundleCompat.putBinder(bundle, MediaBrowserProtocol.EXTRA_SESSION_BINDER, b.asBinder()); + BundleCompat.putBinder(bundle, MediaBrowserProtocol.EXTRA_SESSION_BINDER, b2.asBinder()); } } this.mRootExtrasList.clear(); @@ -1006,7 +1006,7 @@ public abstract class MediaBrowserServiceCompat extends Service { try { this.val$callbacks.onConnectFailed(); } catch (RemoteException unused) { - a.n0(a.R("Calling onConnectFailed() failed. Ignoring. pkg="), this.val$pkg, MediaBrowserServiceCompat.TAG); + a.o0(a.R("Calling onConnectFailed() failed. Ignoring. pkg="), this.val$pkg, MediaBrowserServiceCompat.TAG); } } else { try { @@ -1016,7 +1016,7 @@ public abstract class MediaBrowserServiceCompat extends Service { this.val$callbacks.onConnect(connectionRecord.root.getRootId(), MediaBrowserServiceCompat.this.mSession, connectionRecord.root.getExtras()); } } catch (RemoteException unused2) { - a.n0(a.R("Calling onConnect() failed. Dropping client. pkg="), this.val$pkg, MediaBrowserServiceCompat.TAG); + a.o0(a.R("Calling onConnect() failed. Dropping client. pkg="), this.val$pkg, MediaBrowserServiceCompat.TAG); MediaBrowserServiceCompat.this.mConnections.remove(asBinder); } } @@ -1058,7 +1058,7 @@ public abstract class MediaBrowserServiceCompat extends Service { public void run() { ConnectionRecord connectionRecord = MediaBrowserServiceCompat.this.mConnections.get(this.val$callbacks.asBinder()); if (connectionRecord == null) { - a.n0(a.R("addSubscription for callback that isn't registered id="), this.val$id, MediaBrowserServiceCompat.TAG); + a.o0(a.R("addSubscription for callback that isn't registered id="), this.val$id, MediaBrowserServiceCompat.TAG); } else { MediaBrowserServiceCompat.this.addSubscription(this.val$id, connectionRecord, this.val$token, this.val$options); } @@ -1081,7 +1081,7 @@ public abstract class MediaBrowserServiceCompat extends Service { public void run() { ConnectionRecord connectionRecord = MediaBrowserServiceCompat.this.mConnections.get(this.val$callbacks.asBinder()); if (connectionRecord == null) { - a.n0(a.R("removeSubscription for callback that isn't registered id="), this.val$id, MediaBrowserServiceCompat.TAG); + a.o0(a.R("removeSubscription for callback that isn't registered id="), this.val$id, MediaBrowserServiceCompat.TAG); } else if (!MediaBrowserServiceCompat.this.removeSubscription(this.val$id, connectionRecord, this.val$token)) { StringBuilder R = a.R("removeSubscription called for "); R.append(this.val$id); @@ -1107,7 +1107,7 @@ public abstract class MediaBrowserServiceCompat extends Service { public void run() { ConnectionRecord connectionRecord = MediaBrowserServiceCompat.this.mConnections.get(this.val$callbacks.asBinder()); if (connectionRecord == null) { - a.n0(a.R("getMediaItem for callback that isn't registered id="), this.val$mediaId, MediaBrowserServiceCompat.TAG); + a.o0(a.R("getMediaItem for callback that isn't registered id="), this.val$mediaId, MediaBrowserServiceCompat.TAG); } else { MediaBrowserServiceCompat.this.performLoadItem(this.val$mediaId, connectionRecord, this.val$receiver); } @@ -1197,7 +1197,7 @@ public abstract class MediaBrowserServiceCompat extends Service { public void run() { ConnectionRecord connectionRecord = MediaBrowserServiceCompat.this.mConnections.get(this.val$callbacks.asBinder()); if (connectionRecord == null) { - a.n0(a.R("search for callback that isn't registered query="), this.val$query, MediaBrowserServiceCompat.TAG); + a.o0(a.R("search for callback that isn't registered query="), this.val$query, MediaBrowserServiceCompat.TAG); } else { MediaBrowserServiceCompat.this.performSearch(this.val$query, this.val$extras, connectionRecord, this.val$receiver); } diff --git a/app/src/main/java/androidx/media/MediaSessionManagerImplBase.java b/app/src/main/java/androidx/media/MediaSessionManagerImplBase.java index d695c57d37..5d653bfe5c 100644 --- a/app/src/main/java/androidx/media/MediaSessionManagerImplBase.java +++ b/app/src/main/java/androidx/media/MediaSessionManagerImplBase.java @@ -10,7 +10,7 @@ import android.util.Log; import androidx.annotation.NonNull; import androidx.core.util.ObjectsCompat; import androidx.media.MediaSessionManager; -import c.d.b.a.a; +import b.d.b.a.a; public class MediaSessionManagerImplBase implements MediaSessionManager.MediaSessionManagerImpl { private static final boolean DEBUG = MediaSessionManager.DEBUG; private static final String ENABLED_NOTIFICATION_LISTENERS = "enabled_notification_listeners"; diff --git a/app/src/main/java/androidx/media/session/MediaButtonReceiver.java b/app/src/main/java/androidx/media/session/MediaButtonReceiver.java index f8acb08c57..6d92d56694 100644 --- a/app/src/main/java/androidx/media/session/MediaButtonReceiver.java +++ b/app/src/main/java/androidx/media/session/MediaButtonReceiver.java @@ -20,7 +20,7 @@ import android.view.KeyEvent; import androidx.annotation.RestrictTo; import androidx.core.content.ContextCompat; import androidx.media.MediaBrowserServiceCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.List; import java.util.concurrent.ConcurrentHashMap; public class MediaButtonReceiver extends BroadcastReceiver { @@ -40,7 +40,7 @@ public class MediaButtonReceiver extends BroadcastReceiver { private void finish() { Messenger messenger; - MediaBrowserCompat.e eVar = (MediaBrowserCompat.e) this.mMediaBrowser.b; + MediaBrowserCompat.e eVar = (MediaBrowserCompat.e) this.mMediaBrowser.f14b; MediaBrowserCompat.i iVar = eVar.f; if (!(iVar == null || (messenger = eVar.g) == null)) { try { @@ -49,16 +49,16 @@ public class MediaButtonReceiver extends BroadcastReceiver { Log.i("MediaBrowserCompat", "Remote error unregistering client messenger."); } } - eVar.b.disconnect(); + eVar.f16b.disconnect(); this.mPendingResult.finish(); } @Override // android.support.v4.media.MediaBrowserCompat.c public void onConnected() { Context context = this.mContext; - MediaBrowserCompat.e eVar = (MediaBrowserCompat.e) this.mMediaBrowser.b; + MediaBrowserCompat.e eVar = (MediaBrowserCompat.e) this.mMediaBrowser.f14b; if (eVar.h == null) { - eVar.h = MediaSessionCompat.Token.a(eVar.b.getSessionToken(), null); + eVar.h = MediaSessionCompat.Token.a(eVar.f16b.getSessionToken(), null); } MediaSessionCompat.Token token = eVar.h; new ConcurrentHashMap(); @@ -178,7 +178,7 @@ public class MediaButtonReceiver extends BroadcastReceiver { MediaBrowserCompat mediaBrowserCompat = new MediaBrowserCompat(applicationContext, serviceComponentByAction2, mediaButtonConnectionCallback, null); mediaButtonConnectionCallback.setMediaBrowser(mediaBrowserCompat); Log.d("MediaBrowserCompat", "Connecting to a MediaBrowserService."); - ((MediaBrowserCompat.e) mediaBrowserCompat.b).b.connect(); + ((MediaBrowserCompat.e) mediaBrowserCompat.f14b).f16b.connect(); return; } throw new IllegalStateException("Could not find any Service that handles android.intent.action.MEDIA_BUTTON or implements a media browser service."); diff --git a/app/src/main/java/androidx/preference/Preference.java b/app/src/main/java/androidx/preference/Preference.java index 16b8a84873..b4556a0d1d 100644 --- a/app/src/main/java/androidx/preference/Preference.java +++ b/app/src/main/java/androidx/preference/Preference.java @@ -29,7 +29,7 @@ import androidx.core.content.res.TypedArrayUtils; import androidx.core.view.ViewCompat; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; import androidx.preference.PreferenceManager; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.List; import java.util.Set; diff --git a/app/src/main/java/androidx/preference/PreferenceFragment.java b/app/src/main/java/androidx/preference/PreferenceFragment.java index 58efb2b0e5..1265e31853 100644 --- a/app/src/main/java/androidx/preference/PreferenceFragment.java +++ b/app/src/main/java/androidx/preference/PreferenceFragment.java @@ -25,7 +25,7 @@ import androidx.preference.PreferenceGroup; import androidx.preference.PreferenceManager; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; @Deprecated public abstract class PreferenceFragment extends Fragment implements PreferenceManager.OnPreferenceTreeClickListener, PreferenceManager.OnDisplayPreferenceDialogListener, PreferenceManager.OnNavigateToScreenListener, DialogPreference.TargetFragment { @Deprecated diff --git a/app/src/main/java/androidx/preference/PreferenceFragmentCompat.java b/app/src/main/java/androidx/preference/PreferenceFragmentCompat.java index 9a60fa5e5c..8556c0ca51 100644 --- a/app/src/main/java/androidx/preference/PreferenceFragmentCompat.java +++ b/app/src/main/java/androidx/preference/PreferenceFragmentCompat.java @@ -24,7 +24,7 @@ import androidx.preference.PreferenceGroup; import androidx.preference.PreferenceManager; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; public abstract class PreferenceFragmentCompat extends Fragment implements PreferenceManager.OnPreferenceTreeClickListener, PreferenceManager.OnDisplayPreferenceDialogListener, PreferenceManager.OnNavigateToScreenListener, DialogPreference.TargetFragment { public static final String ARG_PREFERENCE_ROOT = "androidx.preference.PreferenceFragmentCompat.PREFERENCE_ROOT"; private static final String DIALOG_FRAGMENT_TAG = "androidx.preference.PreferenceFragment.DIALOG"; diff --git a/app/src/main/java/androidx/preference/PreferenceGroupKt.java b/app/src/main/java/androidx/preference/PreferenceGroupKt.java index 0eea3ca206..19ecf0278e 100644 --- a/app/src/main/java/androidx/preference/PreferenceGroupKt.java +++ b/app/src/main/java/androidx/preference/PreferenceGroupKt.java @@ -1,6 +1,6 @@ package androidx.preference; -import c.d.b.a.a; +import b.d.b.a.a; import d0.z.d.m; import java.util.Iterator; import kotlin.Unit; diff --git a/app/src/main/java/androidx/recyclerview/widget/AdapterHelper.java b/app/src/main/java/androidx/recyclerview/widget/AdapterHelper.java index eb873c3b42..96c67d9d6f 100644 --- a/app/src/main/java/androidx/recyclerview/widget/AdapterHelper.java +++ b/app/src/main/java/androidx/recyclerview/widget/AdapterHelper.java @@ -122,30 +122,30 @@ public final class AdapterHelper implements OpReorderer.Callback { } private void applyRemove(UpdateOp updateOp) { - char c2; + char c; boolean z2; int i = updateOp.positionStart; int i2 = updateOp.itemCount + i; - char c3 = 65535; + char c2 = 65535; int i3 = i; int i4 = 0; while (i3 < i2) { if (this.mCallback.findViewHolder(i3) != null || canFindInPreLayout(i3)) { - if (c3 == 0) { + if (c2 == 0) { dispatchAndUpdateViewHolders(obtainUpdateOp(2, i, i4, null)); z2 = true; } else { z2 = false; } - c2 = 1; + c = 1; } else { - if (c3 == 1) { + if (c2 == 1) { postponeAndUpdateViewHolders(obtainUpdateOp(2, i, i4, null)); z2 = true; } else { z2 = false; } - c2 = 0; + c = 0; } if (z2) { i3 -= i4; @@ -155,13 +155,13 @@ public final class AdapterHelper implements OpReorderer.Callback { i4++; } i3++; - c3 = c2; + c2 = c; } if (i4 != updateOp.itemCount) { recycleUpdateOp(updateOp); updateOp = obtainUpdateOp(2, i, i4, null); } - if (c3 == 0) { + if (c2 == 0) { dispatchAndUpdateViewHolders(updateOp); } else { postponeAndUpdateViewHolders(updateOp); @@ -172,23 +172,23 @@ public final class AdapterHelper implements OpReorderer.Callback { int i = updateOp.positionStart; int i2 = updateOp.itemCount + i; int i3 = i; - char c2 = 65535; + char c = 65535; int i4 = 0; while (i < i2) { if (this.mCallback.findViewHolder(i) != null || canFindInPreLayout(i)) { - if (c2 == 0) { + if (c == 0) { dispatchAndUpdateViewHolders(obtainUpdateOp(4, i3, i4, updateOp.payload)); i3 = i; i4 = 0; } - c2 = 1; + c = 1; } else { - if (c2 == 1) { + if (c == 1) { postponeAndUpdateViewHolders(obtainUpdateOp(4, i3, i4, updateOp.payload)); i3 = i; i4 = 0; } - c2 = 0; + c = 0; } i4++; i++; @@ -198,7 +198,7 @@ public final class AdapterHelper implements OpReorderer.Callback { recycleUpdateOp(updateOp); updateOp = obtainUpdateOp(4, i3, i4, obj); } - if (c2 == 0) { + if (c == 0) { dispatchAndUpdateViewHolders(updateOp); } else { postponeAndUpdateViewHolders(updateOp); diff --git a/app/src/main/java/androidx/recyclerview/widget/AsyncListUtil.java b/app/src/main/java/androidx/recyclerview/widget/AsyncListUtil.java index 85ca828b22..30bbd0a46e 100644 --- a/app/src/main/java/androidx/recyclerview/widget/AsyncListUtil.java +++ b/app/src/main/java/androidx/recyclerview/widget/AsyncListUtil.java @@ -9,7 +9,7 @@ import androidx.annotation.UiThread; import androidx.annotation.WorkerThread; import androidx.recyclerview.widget.ThreadUtil; import androidx.recyclerview.widget.TileList; -import c.d.b.a.a; +import b.d.b.a.a; public class AsyncListUtil { public static final boolean DEBUG = false; public static final String TAG = "AsyncListUtil"; diff --git a/app/src/main/java/androidx/recyclerview/widget/ConcatAdapterController.java b/app/src/main/java/androidx/recyclerview/widget/ConcatAdapterController.java index dbabdfe0e5..b102c091b4 100644 --- a/app/src/main/java/androidx/recyclerview/widget/ConcatAdapterController.java +++ b/app/src/main/java/androidx/recyclerview/widget/ConcatAdapterController.java @@ -10,7 +10,7 @@ import androidx.recyclerview.widget.NestedAdapterWrapper; import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.StableIdStorage; import androidx.recyclerview.widget.ViewTypeStorage; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Collections; diff --git a/app/src/main/java/androidx/recyclerview/widget/DefaultItemAnimator.java b/app/src/main/java/androidx/recyclerview/widget/DefaultItemAnimator.java index 722260217d..a3a1a61ef5 100644 --- a/app/src/main/java/androidx/recyclerview/widget/DefaultItemAnimator.java +++ b/app/src/main/java/androidx/recyclerview/widget/DefaultItemAnimator.java @@ -9,7 +9,7 @@ import android.view.ViewPropertyAnimator; import androidx.annotation.NonNull; import androidx.core.view.ViewCompat; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Iterator; import java.util.List; diff --git a/app/src/main/java/androidx/recyclerview/widget/DiffUtil.java b/app/src/main/java/androidx/recyclerview/widget/DiffUtil.java index a36a3fe6f8..fbcba76e55 100644 --- a/app/src/main/java/androidx/recyclerview/widget/DiffUtil.java +++ b/app/src/main/java/androidx/recyclerview/widget/DiffUtil.java @@ -4,7 +4,7 @@ import androidx.annotation.IntRange; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; @@ -19,7 +19,7 @@ public class DiffUtil { /* renamed from: androidx.recyclerview.widget.DiffUtil$1 reason: invalid class name */ public class AnonymousClass1 implements Comparator { public int compare(Diagonal diagonal, Diagonal diagonal2) { - return diagonal.f29x - diagonal2.f29x; + return diagonal.f36x - diagonal2.f36x; } } @@ -69,23 +69,23 @@ public class DiffUtil { public final int size; /* renamed from: x reason: collision with root package name */ - public final int f29x; + public final int f36x; /* renamed from: y reason: collision with root package name */ - public final int f30y; + public final int f37y; public Diagonal(int i, int i2, int i3) { - this.f29x = i; - this.f30y = i2; + this.f36x = i; + this.f37y = i2; this.size = i3; } public int endX() { - return this.f29x + this.size; + return this.f36x + this.size; } public int endY() { - return this.f30y + this.size; + return this.f37y + this.size; } } @@ -122,7 +122,7 @@ public class DiffUtil { private void addEdgeDiagonals() { Diagonal diagonal = this.mDiagonals.isEmpty() ? null : this.mDiagonals.get(0); - if (!(diagonal != null && diagonal.f29x == 0 && diagonal.f30y == 0)) { + if (!(diagonal != null && diagonal.f36x == 0 && diagonal.f37y == 0)) { this.mDiagonals.add(0, new Diagonal(0, 0, 0)); } this.mDiagonals.add(new Diagonal(this.mOldListSize, this.mNewListSize, 0)); @@ -133,7 +133,7 @@ public class DiffUtil { int i2 = 0; for (int i3 = 0; i3 < size; i3++) { Diagonal diagonal = this.mDiagonals.get(i3); - while (i2 < diagonal.f30y) { + while (i2 < diagonal.f37y) { if (this.mNewItemStatuses[i2] != 0 || !this.mCallback.areItemsTheSame(i, i2)) { i2++; } else { @@ -150,8 +150,8 @@ public class DiffUtil { private void findMatchingItems() { for (Diagonal diagonal : this.mDiagonals) { for (int i = 0; i < diagonal.size; i++) { - int i2 = diagonal.f29x + i; - int i3 = diagonal.f30y + i; + int i2 = diagonal.f36x + i; + int i3 = diagonal.f37y + i; int i4 = this.mCallback.areContentsTheSame(i2, i3) ? 1 : 2; this.mOldItemStatuses[i2] = (i3 << 4) | i4; this.mNewItemStatuses[i3] = (i2 << 4) | i4; @@ -165,7 +165,7 @@ public class DiffUtil { private void findMoveMatches() { int i = 0; for (Diagonal diagonal : this.mDiagonals) { - while (i < diagonal.f29x) { + while (i < diagonal.f36x) { if (this.mOldItemStatuses[i] == 0) { findMatchingAddition(i); } @@ -280,8 +280,8 @@ public class DiffUtil { i2++; } } - int i10 = diagonal.f29x; - int i11 = diagonal.f30y; + int i10 = diagonal.f36x; + int i11 = diagonal.f37y; for (i = 0; i < diagonal.size; i++) { if ((this.mOldItemStatuses[i10] & 15) == 2) { batchingListUpdateCallback.onChanged(i10, 1, this.mCallback.getChangePayload(i10, i11)); @@ -289,8 +289,8 @@ public class DiffUtil { i10++; i11++; } - i3 = diagonal.f29x; - i4 = diagonal.f30y; + i3 = diagonal.f36x; + i4 = diagonal.f37y; } batchingListUpdateCallback.dispatchLastEvent(); } diff --git a/app/src/main/java/androidx/recyclerview/widget/GridLayoutManager.java b/app/src/main/java/androidx/recyclerview/widget/GridLayoutManager.java index f79f152f67..63439ee6a7 100644 --- a/app/src/main/java/androidx/recyclerview/widget/GridLayoutManager.java +++ b/app/src/main/java/androidx/recyclerview/widget/GridLayoutManager.java @@ -11,7 +11,7 @@ import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Arrays; public class GridLayoutManager extends LinearLayoutManager { private static final boolean DEBUG = false; diff --git a/app/src/main/java/androidx/recyclerview/widget/ItemTouchHelper.java b/app/src/main/java/androidx/recyclerview/widget/ItemTouchHelper.java index ccbd7e5ee7..99f505232b 100644 --- a/app/src/main/java/androidx/recyclerview/widget/ItemTouchHelper.java +++ b/app/src/main/java/androidx/recyclerview/widget/ItemTouchHelper.java @@ -20,7 +20,7 @@ import androidx.core.view.GestureDetectorCompat; import androidx.core.view.ViewCompat; import androidx.recyclerview.R; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.List; public class ItemTouchHelper extends RecyclerView.ItemDecoration implements RecyclerView.OnChildAttachStateChangeListener { diff --git a/app/src/main/java/androidx/recyclerview/widget/LayoutState.java b/app/src/main/java/androidx/recyclerview/widget/LayoutState.java index 09ca3374c5..7bc9e07941 100644 --- a/app/src/main/java/androidx/recyclerview/widget/LayoutState.java +++ b/app/src/main/java/androidx/recyclerview/widget/LayoutState.java @@ -2,7 +2,7 @@ package androidx.recyclerview.widget; import android.view.View; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; public class LayoutState { public static final int INVALID_LAYOUT = Integer.MIN_VALUE; public static final int ITEM_DIRECTION_HEAD = -1; diff --git a/app/src/main/java/androidx/recyclerview/widget/LinearLayoutManager.java b/app/src/main/java/androidx/recyclerview/widget/LinearLayoutManager.java index 7f971fdb2a..3a75e4f809 100644 --- a/app/src/main/java/androidx/recyclerview/widget/LinearLayoutManager.java +++ b/app/src/main/java/androidx/recyclerview/widget/LinearLayoutManager.java @@ -14,7 +14,7 @@ import androidx.annotation.RestrictTo; import androidx.fragment.app.FragmentTransaction; import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.List; public class LinearLayoutManager extends RecyclerView.LayoutManager implements ItemTouchHelper.ViewDropHandler, RecyclerView.SmoothScroller.ScrollVectorProvider { public static final boolean DEBUG = false; @@ -418,11 +418,11 @@ public class LinearLayoutManager extends RecyclerView.LayoutManager implements I for (int i5 = 0; i5 < size; i5++) { RecyclerView.ViewHolder viewHolder = scrapList.get(i5); if (!viewHolder.isRemoved()) { - char c2 = 1; + char c = 1; if ((viewHolder.getLayoutPosition() < position) != this.mShouldReverseLayout) { - c2 = 65535; + c = 65535; } - if (c2 == 65535) { + if (c == 65535) { i3 += this.mOrientationHelper.getDecoratedMeasurement(viewHolder.itemView); } else { i4 += this.mOrientationHelper.getDecoratedMeasurement(viewHolder.itemView); @@ -1414,14 +1414,14 @@ public class LinearLayoutManager extends RecyclerView.LayoutManager implements I resolveShouldLayoutReverse(); int position = getPosition(view); int position2 = getPosition(view2); - char c2 = position < position2 ? (char) 1 : 65535; + char c = position < position2 ? (char) 1 : 65535; if (this.mShouldReverseLayout) { - if (c2 == 1) { + if (c == 1) { scrollToPositionWithOffset(position2, this.mOrientationHelper.getEndAfterPadding() - (this.mOrientationHelper.getDecoratedMeasurement(view) + this.mOrientationHelper.getDecoratedStart(view2))); } else { scrollToPositionWithOffset(position2, this.mOrientationHelper.getEndAfterPadding() - this.mOrientationHelper.getDecoratedEnd(view2)); } - } else if (c2 == 65535) { + } else if (c == 65535) { scrollToPositionWithOffset(position2, this.mOrientationHelper.getDecoratedStart(view2)); } else { scrollToPositionWithOffset(position2, this.mOrientationHelper.getDecoratedEnd(view2) - this.mOrientationHelper.getDecoratedMeasurement(view)); diff --git a/app/src/main/java/androidx/recyclerview/widget/MessageThreadUtil.java b/app/src/main/java/androidx/recyclerview/widget/MessageThreadUtil.java index b6a5b1300c..79aaa039c6 100644 --- a/app/src/main/java/androidx/recyclerview/widget/MessageThreadUtil.java +++ b/app/src/main/java/androidx/recyclerview/widget/MessageThreadUtil.java @@ -6,7 +6,7 @@ import android.os.Looper; import android.util.Log; import androidx.recyclerview.widget.ThreadUtil; import androidx.recyclerview.widget.TileList; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.concurrent.Executor; import java.util.concurrent.atomic.AtomicBoolean; public class MessageThreadUtil implements ThreadUtil { diff --git a/app/src/main/java/androidx/recyclerview/widget/RecyclerView.java b/app/src/main/java/androidx/recyclerview/widget/RecyclerView.java index 66068fd430..56fce988bc 100644 --- a/app/src/main/java/androidx/recyclerview/widget/RecyclerView.java +++ b/app/src/main/java/androidx/recyclerview/widget/RecyclerView.java @@ -62,7 +62,7 @@ import androidx.recyclerview.widget.GapWorker; import androidx.recyclerview.widget.RecyclerViewAccessibilityDelegate; import androidx.recyclerview.widget.ViewBoundsCheck; import androidx.recyclerview.widget.ViewInfoStore; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.ref.WeakReference; @@ -4845,7 +4845,7 @@ public class RecyclerView extends ViewGroup implements ScrollingView, NestedScro this.mTempRect2.set(0, 0, view2.getWidth(), view2.getHeight()); offsetDescendantRectToMyCoords(view, this.mTempRect); offsetDescendantRectToMyCoords(view2, this.mTempRect2); - char c2 = 65535; + char c = 65535; int i3 = this.mLayout.getLayoutDirection() == 1 ? -1 : 1; Rect rect = this.mTempRect; int i4 = rect.left; @@ -4861,31 +4861,31 @@ public class RecyclerView extends ViewGroup implements ScrollingView, NestedScro int i8 = rect.top; int i9 = rect2.top; if ((i8 < i9 || rect.bottom <= i9) && rect.bottom < rect2.bottom) { - c2 = 1; + c = 1; } else { int i10 = rect.bottom; int i11 = rect2.bottom; if ((i10 <= i11 && i8 < i11) || i8 <= i9) { - c2 = 0; + c = 0; } } if (i == 1) { - return c2 < 0 || (c2 == 0 && i2 * i3 < 0); + return c < 0 || (c == 0 && i2 * i3 < 0); } if (i == 2) { - return c2 > 0 || (c2 == 0 && i2 * i3 > 0); + return c > 0 || (c == 0 && i2 * i3 > 0); } if (i == 17) { return i2 < 0; } if (i == 33) { - return c2 < 0; + return c < 0; } if (i == 66) { return i2 > 0; } if (i == 130) { - return c2 > 0; + return c > 0; } StringBuilder sb = new StringBuilder(); sb.append("Invalid direction: "); @@ -6495,7 +6495,7 @@ public class RecyclerView extends ViewGroup implements ScrollingView, NestedScro iArr[0] = 0; if (canScrollVertically) { boolean z3 = canScrollHorizontally ? 1 : 0; - char c2 = canScrollHorizontally ? 1 : 0; + char c = canScrollHorizontally ? 1 : 0; canScrollHorizontally = z3 | true; } int i = canScrollHorizontally ? 1 : 0; @@ -6717,7 +6717,7 @@ public class RecyclerView extends ViewGroup implements ScrollingView, NestedScro this.mInitialTouchY = y2; if (canScrollVertically) { boolean z4 = canScrollHorizontally ? 1 : 0; - char c2 = canScrollHorizontally ? 1 : 0; + char c = canScrollHorizontally ? 1 : 0; canScrollHorizontally = z4 | true; } int i = canScrollHorizontally ? 1 : 0; diff --git a/app/src/main/java/androidx/recyclerview/widget/SortedList.java b/app/src/main/java/androidx/recyclerview/widget/SortedList.java index 1d3584ee4d..a6457819c8 100644 --- a/app/src/main/java/androidx/recyclerview/widget/SortedList.java +++ b/app/src/main/java/androidx/recyclerview/widget/SortedList.java @@ -2,7 +2,7 @@ package androidx.recyclerview.widget; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Array; import java.util.Arrays; import java.util.Collection; diff --git a/app/src/main/java/androidx/recyclerview/widget/StaggeredGridLayoutManager.java b/app/src/main/java/androidx/recyclerview/widget/StaggeredGridLayoutManager.java index 783e890de4..13b7fdcee1 100644 --- a/app/src/main/java/androidx/recyclerview/widget/StaggeredGridLayoutManager.java +++ b/app/src/main/java/androidx/recyclerview/widget/StaggeredGridLayoutManager.java @@ -14,7 +14,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Arrays; import java.util.BitSet; @@ -1004,10 +1004,10 @@ public class StaggeredGridLayoutManager extends RecyclerView.LayoutManager imple if (z4) { if (layoutParams.mFullSpan) { Span[] spanArr = this.mSpans; + char c = z2 ? 1 : 0; char c2 = z2 ? 1 : 0; char c3 = z2 ? 1 : 0; - char c4 = z2 ? 1 : 0; - span = spanArr[c2]; + span = spanArr[c]; } else { span = getNextSpan(layoutState); } @@ -1964,7 +1964,7 @@ public class StaggeredGridLayoutManager extends RecyclerView.LayoutManager imple BitSet bitSet = new BitSet(this.mSpanCount); bitSet.set(0, this.mSpanCount, true); int i3 = -1; - char c2 = (this.mOrientation != 1 || !isLayoutRTL()) ? (char) 65535 : 1; + char c = (this.mOrientation != 1 || !isLayoutRTL()) ? (char) 65535 : 1; if (this.mShouldReverseLayout) { i = -1; } else { @@ -2002,7 +2002,7 @@ public class StaggeredGridLayoutManager extends RecyclerView.LayoutManager imple if (!z2) { continue; } else { - if ((layoutParams.mSpan.mIndex - ((LayoutParams) childAt2.getLayoutParams()).mSpan.mIndex < 0) != (c2 < 0)) { + if ((layoutParams.mSpan.mIndex - ((LayoutParams) childAt2.getLayoutParams()).mSpan.mIndex < 0) != (c < 0)) { return childAt; } } diff --git a/app/src/main/java/androidx/recyclerview/widget/ViewTypeStorage.java b/app/src/main/java/androidx/recyclerview/widget/ViewTypeStorage.java index 939b2de755..0271db95b5 100644 --- a/app/src/main/java/androidx/recyclerview/widget/ViewTypeStorage.java +++ b/app/src/main/java/androidx/recyclerview/widget/ViewTypeStorage.java @@ -3,7 +3,7 @@ package androidx.recyclerview.widget; import android.util.SparseArray; import android.util.SparseIntArray; import androidx.annotation.NonNull; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.List; public interface ViewTypeStorage { diff --git a/app/src/main/java/androidx/room/InvalidationTracker.java b/app/src/main/java/androidx/room/InvalidationTracker.java index 091dc25f37..911c63ed8a 100644 --- a/app/src/main/java/androidx/room/InvalidationTracker.java +++ b/app/src/main/java/androidx/room/InvalidationTracker.java @@ -15,7 +15,7 @@ import androidx.lifecycle.LiveData; import androidx.sqlite.db.SimpleSQLiteQuery; import androidx.sqlite.db.SupportSQLiteDatabase; import androidx.sqlite.db.SupportSQLiteStatement; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.ref.WeakReference; import java.util.Arrays; import java.util.Collections; @@ -386,7 +386,7 @@ public class InvalidationTracker { } private static void appendTriggerName(StringBuilder sb, String str, String str2) { - a.o0(sb, "`", "room_table_modification_trigger_", str, "_"); + a.q0(sb, "`", "room_table_modification_trigger_", str, "_"); sb.append(str2); sb.append("`"); } @@ -413,9 +413,9 @@ public class InvalidationTracker { sb.setLength(0); sb.append("CREATE TEMP TRIGGER IF NOT EXISTS "); appendTriggerName(sb, str, str2); - a.o0(sb, " AFTER ", str2, " ON `", str); - a.o0(sb, "` BEGIN UPDATE ", UPDATE_TABLE_NAME, " SET ", INVALIDATED_COLUMN_NAME); - a.o0(sb, " = 1", " WHERE ", TABLE_ID_COLUMN_NAME, " = "); + a.q0(sb, " AFTER ", str2, " ON `", str); + a.q0(sb, "` BEGIN UPDATE ", UPDATE_TABLE_NAME, " SET ", INVALIDATED_COLUMN_NAME); + a.q0(sb, " = 1", " WHERE ", TABLE_ID_COLUMN_NAME, " = "); sb.append(i); sb.append(" AND "); sb.append(INVALIDATED_COLUMN_NAME); diff --git a/app/src/main/java/androidx/room/Room.java b/app/src/main/java/androidx/room/Room.java index 4afb8be76c..a258f9ab08 100644 --- a/app/src/main/java/androidx/room/Room.java +++ b/app/src/main/java/androidx/room/Room.java @@ -3,7 +3,7 @@ package androidx.room; import android.content.Context; import androidx.annotation.NonNull; import androidx.room.RoomDatabase; -import c.d.b.a.a; +import b.d.b.a.a; public class Room { private static final String CURSOR_CONV_SUFFIX = "_CursorConverter"; public static final String LOG_TAG = "ROOM"; diff --git a/app/src/main/java/androidx/room/RoomMasterTable.java b/app/src/main/java/androidx/room/RoomMasterTable.java index 7f64fe9eb4..8964695c6e 100644 --- a/app/src/main/java/androidx/room/RoomMasterTable.java +++ b/app/src/main/java/androidx/room/RoomMasterTable.java @@ -1,7 +1,7 @@ package androidx.room; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public class RoomMasterTable { private static final String COLUMN_ID = "id"; diff --git a/app/src/main/java/androidx/room/RoomOpenHelper.java b/app/src/main/java/androidx/room/RoomOpenHelper.java index 87d617d860..1ad689644c 100644 --- a/app/src/main/java/androidx/room/RoomOpenHelper.java +++ b/app/src/main/java/androidx/room/RoomOpenHelper.java @@ -8,7 +8,7 @@ import androidx.room.migration.Migration; import androidx.sqlite.db.SimpleSQLiteQuery; import androidx.sqlite.db.SupportSQLiteDatabase; import androidx.sqlite.db.SupportSQLiteOpenHelper; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.List; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public class RoomOpenHelper extends SupportSQLiteOpenHelper.Callback { diff --git a/app/src/main/java/androidx/room/SQLiteCopyOpenHelper.java b/app/src/main/java/androidx/room/SQLiteCopyOpenHelper.java index dd870075c7..c0f20f43e3 100644 --- a/app/src/main/java/androidx/room/SQLiteCopyOpenHelper.java +++ b/app/src/main/java/androidx/room/SQLiteCopyOpenHelper.java @@ -10,7 +10,7 @@ import androidx.room.util.DBUtil; import androidx.room.util.FileUtil; import androidx.sqlite.db.SupportSQLiteDatabase; import androidx.sqlite.db.SupportSQLiteOpenHelper; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; diff --git a/app/src/main/java/androidx/room/paging/LimitOffsetDataSource.java b/app/src/main/java/androidx/room/paging/LimitOffsetDataSource.java index 833fae8069..211850183c 100644 --- a/app/src/main/java/androidx/room/paging/LimitOffsetDataSource.java +++ b/app/src/main/java/androidx/room/paging/LimitOffsetDataSource.java @@ -8,7 +8,7 @@ import androidx.room.InvalidationTracker; import androidx.room.RoomDatabase; import androidx.room.RoomSQLiteQuery; import androidx.sqlite.db.SupportSQLiteQuery; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Collections; import java.util.List; import java.util.Set; diff --git a/app/src/main/java/androidx/room/util/CopyLock.java b/app/src/main/java/androidx/room/util/CopyLock.java index 725308e501..18e0e8a9ec 100644 --- a/app/src/main/java/androidx/room/util/CopyLock.java +++ b/app/src/main/java/androidx/room/util/CopyLock.java @@ -2,7 +2,7 @@ package androidx.room.util; import androidx.annotation.NonNull; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; diff --git a/app/src/main/java/androidx/room/util/FtsTableInfo.java b/app/src/main/java/androidx/room/util/FtsTableInfo.java index afba626fd5..86070a5d81 100644 --- a/app/src/main/java/androidx/room/util/FtsTableInfo.java +++ b/app/src/main/java/androidx/room/util/FtsTableInfo.java @@ -4,7 +4,7 @@ import android.database.Cursor; import androidx.annotation.RestrictTo; import androidx.annotation.VisibleForTesting; import androidx.sqlite.db.SupportSQLiteDatabase; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.models.domain.ModelAuditLogEntry; import java.util.ArrayDeque; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/room/util/TableInfo.java b/app/src/main/java/androidx/room/util/TableInfo.java index 93cbb0635b..532e18a2a2 100644 --- a/app/src/main/java/androidx/room/util/TableInfo.java +++ b/app/src/main/java/androidx/room/util/TableInfo.java @@ -6,7 +6,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; import androidx.room.ColumnInfo; import androidx.sqlite.db.SupportSQLiteDatabase; -import c.d.b.a.a; +import b.d.b.a.a; import com.discord.models.domain.ModelAuditLogEntry; import java.util.ArrayList; import java.util.Collections; diff --git a/app/src/main/java/androidx/room/util/ViewInfo.java b/app/src/main/java/androidx/room/util/ViewInfo.java index 8ba5226c9f..bc274b1c63 100644 --- a/app/src/main/java/androidx/room/util/ViewInfo.java +++ b/app/src/main/java/androidx/room/util/ViewInfo.java @@ -3,7 +3,7 @@ package androidx.room.util; import android.database.Cursor; import androidx.annotation.RestrictTo; import androidx.sqlite.db.SupportSQLiteDatabase; -import c.d.b.a.a; +import b.d.b.a.a; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public class ViewInfo { public final String name; diff --git a/app/src/main/java/androidx/savedstate/Recreator.java b/app/src/main/java/androidx/savedstate/Recreator.java index 5638f301ab..d82b82be7b 100644 --- a/app/src/main/java/androidx/savedstate/Recreator.java +++ b/app/src/main/java/androidx/savedstate/Recreator.java @@ -7,7 +7,7 @@ import androidx.lifecycle.GenericLifecycleObserver; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleOwner; import androidx.savedstate.SavedStateRegistry; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.HashSet; diff --git a/app/src/main/java/androidx/savedstate/SavedStateRegistry.java b/app/src/main/java/androidx/savedstate/SavedStateRegistry.java index b9845f9cb2..21d9b64cef 100644 --- a/app/src/main/java/androidx/savedstate/SavedStateRegistry.java +++ b/app/src/main/java/androidx/savedstate/SavedStateRegistry.java @@ -10,7 +10,7 @@ import androidx.lifecycle.GenericLifecycleObserver; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleOwner; import androidx.savedstate.Recreator; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.Map; @SuppressLint({"RestrictedApi"}) public final class SavedStateRegistry { diff --git a/app/src/main/java/androidx/sharetarget/ShareTargetXmlParser.java b/app/src/main/java/androidx/sharetarget/ShareTargetXmlParser.java index f41aa27618..7f564feb88 100644 --- a/app/src/main/java/androidx/sharetarget/ShareTargetXmlParser.java +++ b/app/src/main/java/androidx/sharetarget/ShareTargetXmlParser.java @@ -10,7 +10,7 @@ import android.util.Log; import androidx.annotation.RestrictTo; import androidx.annotation.WorkerThread; import androidx.sharetarget.ShareTargetCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.List; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) diff --git a/app/src/main/java/androidx/sharetarget/ShortcutInfoCompatSaverImpl.java b/app/src/main/java/androidx/sharetarget/ShortcutInfoCompatSaverImpl.java index 50ba9d423b..22a7f74eca 100644 --- a/app/src/main/java/androidx/sharetarget/ShortcutInfoCompatSaverImpl.java +++ b/app/src/main/java/androidx/sharetarget/ShortcutInfoCompatSaverImpl.java @@ -15,7 +15,7 @@ import androidx.core.content.pm.ShortcutInfoCompat; import androidx.core.content.pm.ShortcutInfoCompatSaver; import androidx.core.graphics.drawable.IconCompat; import androidx.sharetarget.ShortcutsInfoSerialization; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; @@ -446,7 +446,7 @@ public class ShortcutInfoCompatSaverImpl extends ShortcutInfoCompatSaver } } catch (IOException | OutOfMemoryError | RuntimeException e) { Log.wtf(TAG, "Unable to write bitmap to file", e); - throw new RuntimeException(c.d.b.a.a.v("Unable to write bitmap to file ", str), e); + throw new RuntimeException(b.d.b.a.a.v("Unable to write bitmap to file ", str), e); } } else { throw new IllegalArgumentException("path is empty"); diff --git a/app/src/main/java/androidx/sharetarget/ShortcutsInfoSerialization.java b/app/src/main/java/androidx/sharetarget/ShortcutsInfoSerialization.java index da08b542e6..5f56411d0e 100644 --- a/app/src/main/java/androidx/sharetarget/ShortcutsInfoSerialization.java +++ b/app/src/main/java/androidx/sharetarget/ShortcutsInfoSerialization.java @@ -11,7 +11,7 @@ import androidx.annotation.WorkerThread; import androidx.collection.ArrayMap; import androidx.core.content.pm.ShortcutInfoCompat; import androidx.core.util.AtomicFile; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; diff --git a/app/src/main/java/androidx/sqlite/db/SupportSQLiteOpenHelper.java b/app/src/main/java/androidx/sqlite/db/SupportSQLiteOpenHelper.java index 2edeca1185..e19a85748b 100644 --- a/app/src/main/java/androidx/sqlite/db/SupportSQLiteOpenHelper.java +++ b/app/src/main/java/androidx/sqlite/db/SupportSQLiteOpenHelper.java @@ -9,7 +9,7 @@ import android.util.Pair; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.Closeable; import java.io.File; import java.io.IOException; diff --git a/app/src/main/java/androidx/sqlite/db/SupportSQLiteQueryBuilder.java b/app/src/main/java/androidx/sqlite/db/SupportSQLiteQueryBuilder.java index cca2cf6e09..421aa1b6c8 100644 --- a/app/src/main/java/androidx/sqlite/db/SupportSQLiteQueryBuilder.java +++ b/app/src/main/java/androidx/sqlite/db/SupportSQLiteQueryBuilder.java @@ -1,6 +1,6 @@ package androidx.sqlite.db; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.regex.Pattern; public final class SupportSQLiteQueryBuilder { private static final Pattern sLimitPattern = Pattern.compile("\\s*\\d+\\s*(,\\s*\\d+\\s*)?"); diff --git a/app/src/main/java/androidx/sqlite/db/framework/FrameworkSQLiteDatabase.java b/app/src/main/java/androidx/sqlite/db/framework/FrameworkSQLiteDatabase.java index b7dd3a5015..2a1859297a 100644 --- a/app/src/main/java/androidx/sqlite/db/framework/FrameworkSQLiteDatabase.java +++ b/app/src/main/java/androidx/sqlite/db/framework/FrameworkSQLiteDatabase.java @@ -16,7 +16,7 @@ import androidx.sqlite.db.SimpleSQLiteQuery; import androidx.sqlite.db.SupportSQLiteDatabase; import androidx.sqlite.db.SupportSQLiteQuery; import androidx.sqlite.db.SupportSQLiteStatement; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.IOException; import java.util.List; import java.util.Locale; diff --git a/app/src/main/java/androidx/transition/ArcMotion.java b/app/src/main/java/androidx/transition/ArcMotion.java index 771649f432..6d10f2c0d0 100644 --- a/app/src/main/java/androidx/transition/ArcMotion.java +++ b/app/src/main/java/androidx/transition/ArcMotion.java @@ -6,7 +6,7 @@ import android.content.res.TypedArray; import android.graphics.Path; import android.util.AttributeSet; import androidx.core.content.res.TypedArrayUtils; -import c.d.b.a.a; +import b.d.b.a.a; import org.xmlpull.v1.XmlPullParser; public class ArcMotion extends PathMotion { private static final float DEFAULT_MAX_ANGLE_DEGREES = 70.0f; diff --git a/app/src/main/java/androidx/transition/FloatArrayEvaluator.java b/app/src/main/java/androidx/transition/FloatArrayEvaluator.java index 58f749a79f..0459819da7 100644 --- a/app/src/main/java/androidx/transition/FloatArrayEvaluator.java +++ b/app/src/main/java/androidx/transition/FloatArrayEvaluator.java @@ -1,7 +1,7 @@ package androidx.transition; import android.animation.TypeEvaluator; -import c.d.b.a.a; +import b.d.b.a.a; public class FloatArrayEvaluator implements TypeEvaluator { private float[] mArray; diff --git a/app/src/main/java/androidx/transition/Transition.java b/app/src/main/java/androidx/transition/Transition.java index 99eacf52f4..383075b9af 100644 --- a/app/src/main/java/androidx/transition/Transition.java +++ b/app/src/main/java/androidx/transition/Transition.java @@ -26,7 +26,7 @@ import androidx.collection.LongSparseArray; import androidx.core.content.res.TypedArrayUtils; import androidx.core.view.ViewCompat; import androidx.recyclerview.widget.RecyclerView; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/transition/TransitionInflater.java b/app/src/main/java/androidx/transition/TransitionInflater.java index bfab3c27b0..10e72f23e1 100644 --- a/app/src/main/java/androidx/transition/TransitionInflater.java +++ b/app/src/main/java/androidx/transition/TransitionInflater.java @@ -12,7 +12,7 @@ import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.collection.ArrayMap; import androidx.core.content.res.TypedArrayUtils; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.IOException; import java.lang.reflect.Constructor; import org.xmlpull.v1.XmlPullParser; diff --git a/app/src/main/java/androidx/transition/TransitionSet.java b/app/src/main/java/androidx/transition/TransitionSet.java index 068168bcb8..73eabd70c7 100644 --- a/app/src/main/java/androidx/transition/TransitionSet.java +++ b/app/src/main/java/androidx/transition/TransitionSet.java @@ -15,7 +15,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; import androidx.core.content.res.TypedArrayUtils; import androidx.transition.Transition; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.Iterator; public class TransitionSet extends Transition { diff --git a/app/src/main/java/androidx/transition/TransitionValues.java b/app/src/main/java/androidx/transition/TransitionValues.java index 9aabb45ccb..abc1b3ea3d 100644 --- a/app/src/main/java/androidx/transition/TransitionValues.java +++ b/app/src/main/java/androidx/transition/TransitionValues.java @@ -2,7 +2,7 @@ package androidx.transition; import android.view.View; import androidx.annotation.NonNull; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; diff --git a/app/src/main/java/androidx/vectordrawable/graphics/drawable/AnimationUtilsCompat.java b/app/src/main/java/androidx/vectordrawable/graphics/drawable/AnimationUtilsCompat.java index 676a3b0177..a3ef85aa9f 100644 --- a/app/src/main/java/androidx/vectordrawable/graphics/drawable/AnimationUtilsCompat.java +++ b/app/src/main/java/androidx/vectordrawable/graphics/drawable/AnimationUtilsCompat.java @@ -16,7 +16,7 @@ import android.view.animation.Interpolator; import android.view.animation.LinearInterpolator; import android.view.animation.OvershootInterpolator; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; diff --git a/app/src/main/java/androidx/vectordrawable/graphics/drawable/AnimatorInflaterCompat.java b/app/src/main/java/androidx/vectordrawable/graphics/drawable/AnimatorInflaterCompat.java index 0e96e73145..d2561efb84 100644 --- a/app/src/main/java/androidx/vectordrawable/graphics/drawable/AnimatorInflaterCompat.java +++ b/app/src/main/java/androidx/vectordrawable/graphics/drawable/AnimatorInflaterCompat.java @@ -24,7 +24,7 @@ import androidx.annotation.AnimatorRes; import androidx.annotation.RestrictTo; import androidx.core.content.res.TypedArrayUtils; import androidx.core.graphics.PathParser; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; diff --git a/app/src/main/java/androidx/vectordrawable/graphics/drawable/ArgbEvaluator.java b/app/src/main/java/androidx/vectordrawable/graphics/drawable/ArgbEvaluator.java index 63ec0ed0ad..d5ee744c75 100644 --- a/app/src/main/java/androidx/vectordrawable/graphics/drawable/ArgbEvaluator.java +++ b/app/src/main/java/androidx/vectordrawable/graphics/drawable/ArgbEvaluator.java @@ -2,7 +2,7 @@ package androidx.vectordrawable.graphics.drawable; import android.animation.TypeEvaluator; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public class ArgbEvaluator implements TypeEvaluator { private static final ArgbEvaluator sInstance = new ArgbEvaluator(); diff --git a/app/src/main/java/androidx/vectordrawable/graphics/drawable/PathInterpolatorCompat.java b/app/src/main/java/androidx/vectordrawable/graphics/drawable/PathInterpolatorCompat.java index bef08c1ebb..fc7d6a3d89 100644 --- a/app/src/main/java/androidx/vectordrawable/graphics/drawable/PathInterpolatorCompat.java +++ b/app/src/main/java/androidx/vectordrawable/graphics/drawable/PathInterpolatorCompat.java @@ -11,7 +11,7 @@ import android.view.animation.Interpolator; import androidx.annotation.RestrictTo; import androidx.core.content.res.TypedArrayUtils; import androidx.core.graphics.PathParser; -import c.d.b.a.a; +import b.d.b.a.a; import org.xmlpull.v1.XmlPullParser; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public class PathInterpolatorCompat implements Interpolator { diff --git a/app/src/main/java/androidx/vectordrawable/graphics/drawable/VectorDrawableCompat.java b/app/src/main/java/androidx/vectordrawable/graphics/drawable/VectorDrawableCompat.java index 4853b0f352..1f0221afbb 100644 --- a/app/src/main/java/androidx/vectordrawable/graphics/drawable/VectorDrawableCompat.java +++ b/app/src/main/java/androidx/vectordrawable/graphics/drawable/VectorDrawableCompat.java @@ -37,7 +37,7 @@ import androidx.core.content.res.TypedArrayUtils; import androidx.core.graphics.PathParser; import androidx.core.graphics.drawable.DrawableCompat; import androidx.core.view.ViewCompat; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.IOException; import java.util.ArrayDeque; import java.util.ArrayList; diff --git a/app/src/main/java/androidx/versionedparcelable/VersionedParcel.java b/app/src/main/java/androidx/versionedparcelable/VersionedParcel.java index fdbd0eb5a0..a7971c3e7a 100644 --- a/app/src/main/java/androidx/versionedparcelable/VersionedParcel.java +++ b/app/src/main/java/androidx/versionedparcelable/VersionedParcel.java @@ -14,7 +14,7 @@ import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; import androidx.collection.ArrayMap; import androidx.collection.ArraySet; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -382,8 +382,8 @@ public abstract class VersionedParcel { return !readField(i) ? bundle : readBundle(); } - public byte readByte(byte b, int i) { - return !readField(i) ? b : (byte) (readInt() & 255); + public byte readByte(byte b2, int i) { + return !readField(i) ? b2 : (byte) (readInt() & 255); } public abstract byte[] readByteArray(); @@ -719,9 +719,9 @@ public abstract class VersionedParcel { writeBundle(bundle); } - public void writeByte(byte b, int i) { + public void writeByte(byte b2, int i) { setOutputField(i); - writeInt(b); + writeInt(b2); } public abstract void writeByteArray(byte[] bArr); @@ -743,8 +743,8 @@ public abstract class VersionedParcel { if (cArr != null) { int length = cArr.length; writeInt(length); - for (char c2 : cArr) { - writeInt(c2); + for (char c : cArr) { + writeInt(c); } return; } diff --git a/app/src/main/java/androidx/versionedparcelable/VersionedParcelParcel.java b/app/src/main/java/androidx/versionedparcelable/VersionedParcelParcel.java index 00f052d50d..66c80eb456 100644 --- a/app/src/main/java/androidx/versionedparcelable/VersionedParcelParcel.java +++ b/app/src/main/java/androidx/versionedparcelable/VersionedParcelParcel.java @@ -9,7 +9,7 @@ import android.text.TextUtils; import android.util.SparseIntArray; import androidx.annotation.RestrictTo; import androidx.collection.ArrayMap; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.reflect.Method; @RestrictTo({RestrictTo.Scope.LIBRARY}) public class VersionedParcelParcel extends VersionedParcel { diff --git a/app/src/main/java/androidx/versionedparcelable/VersionedParcelStream.java b/app/src/main/java/androidx/versionedparcelable/VersionedParcelStream.java index 504ce53e69..af0cf8a8c1 100644 --- a/app/src/main/java/androidx/versionedparcelable/VersionedParcelStream.java +++ b/app/src/main/java/androidx/versionedparcelable/VersionedParcelStream.java @@ -7,7 +7,7 @@ import android.os.Parcelable; import androidx.annotation.RestrictTo; import androidx.collection.ArrayMap; import androidx.versionedparcelable.VersionedParcel; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; diff --git a/app/src/main/java/androidx/viewpager/widget/ViewPager.java b/app/src/main/java/androidx/viewpager/widget/ViewPager.java index c83f2f2a68..3a740f3f85 100644 --- a/app/src/main/java/androidx/viewpager/widget/ViewPager.java +++ b/app/src/main/java/androidx/viewpager/widget/ViewPager.java @@ -39,7 +39,7 @@ import androidx.core.view.ViewCompat; import androidx.core.view.WindowInsetsCompat; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; import androidx.customview.view.AbsSavedState; -import c.d.b.a.a; +import b.d.b.a.a; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; diff --git a/app/src/main/java/androidx/viewpager2/adapter/FragmentStateAdapter.java b/app/src/main/java/androidx/viewpager2/adapter/FragmentStateAdapter.java index 1b34421221..93ba0f0d82 100644 --- a/app/src/main/java/androidx/viewpager2/adapter/FragmentStateAdapter.java +++ b/app/src/main/java/androidx/viewpager2/adapter/FragmentStateAdapter.java @@ -24,7 +24,7 @@ import androidx.lifecycle.LifecycleEventObserver; import androidx.lifecycle.LifecycleOwner; import androidx.recyclerview.widget.RecyclerView; import androidx.viewpager2.widget.ViewPager2; -import c.d.b.a.a; +import b.d.b.a.a; public abstract class FragmentStateAdapter extends RecyclerView.Adapter implements StatefulAdapter { private static final long GRACE_WINDOW_TIME_MS = 10000; private static final String KEY_PREFIX_FRAGMENT = "f#"; diff --git a/app/src/main/java/androidx/work/CoroutineWorker$await$$inlined$suspendCancellableCoroutine$lambda$1.java b/app/src/main/java/androidx/work/CoroutineWorker$await$$inlined$suspendCancellableCoroutine$lambda$1.java index 769432d4c1..1f43735057 100644 --- a/app/src/main/java/androidx/work/CoroutineWorker$await$$inlined$suspendCancellableCoroutine$lambda$1.java +++ b/app/src/main/java/androidx/work/CoroutineWorker$await$$inlined$suspendCancellableCoroutine$lambda$1.java @@ -1,6 +1,6 @@ package androidx.work; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import d0.k; import d0.l; import java.util.concurrent.CancellationException; diff --git a/app/src/main/java/androidx/work/CoroutineWorker$await$$inlined$suspendCancellableCoroutine$lambda$2.java b/app/src/main/java/androidx/work/CoroutineWorker$await$$inlined$suspendCancellableCoroutine$lambda$2.java index 423a68d5ed..1a69713351 100644 --- a/app/src/main/java/androidx/work/CoroutineWorker$await$$inlined$suspendCancellableCoroutine$lambda$2.java +++ b/app/src/main/java/androidx/work/CoroutineWorker$await$$inlined$suspendCancellableCoroutine$lambda$2.java @@ -1,6 +1,6 @@ package androidx.work; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import d0.k; import d0.l; import java.util.concurrent.CancellationException; diff --git a/app/src/main/java/androidx/work/CoroutineWorker.java b/app/src/main/java/androidx/work/CoroutineWorker.java index c5cf401cab..6cd79feab8 100644 --- a/app/src/main/java/androidx/work/CoroutineWorker.java +++ b/app/src/main/java/androidx/work/CoroutineWorker.java @@ -4,8 +4,8 @@ import android.content.Context; import androidx.work.ListenableWorker; import androidx.work.impl.utils.futures.SettableFuture; import androidx.work.impl.utils.taskexecutor.TaskExecutor; -import c.i.a.f.e.o.f; -import c.i.b.d.a.a; +import b.i.a.f.e.o.f; +import b.i.b.d.a.a; import d0.w.h.b; import d0.w.h.c; import d0.w.i.a.g; diff --git a/app/src/main/java/androidx/work/Data.java b/app/src/main/java/androidx/work/Data.java index e617409b47..71e935cdeb 100644 --- a/app/src/main/java/androidx/work/Data.java +++ b/app/src/main/java/androidx/work/Data.java @@ -89,8 +89,8 @@ public final class Data { } @NonNull - public Builder putByte(@NonNull String str, byte b) { - this.mValues.put(str, Byte.valueOf(b)); + public Builder putByte(@NonNull String str, byte b2) { + this.mValues.put(str, Byte.valueOf(b2)); return this; } @@ -447,9 +447,9 @@ public final class Data { return zArr; } - public byte getByte(@NonNull String str, byte b) { + public byte getByte(@NonNull String str, byte b2) { Object obj = this.mValues.get(str); - return obj instanceof Byte ? ((Byte) obj).byteValue() : b; + return obj instanceof Byte ? ((Byte) obj).byteValue() : b2; } @Nullable diff --git a/app/src/main/java/androidx/work/ForegroundUpdater.java b/app/src/main/java/androidx/work/ForegroundUpdater.java index 3f7c11dac4..f0e430a4f7 100644 --- a/app/src/main/java/androidx/work/ForegroundUpdater.java +++ b/app/src/main/java/androidx/work/ForegroundUpdater.java @@ -2,7 +2,7 @@ package androidx.work; import android.content.Context; import androidx.annotation.NonNull; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.UUID; public interface ForegroundUpdater { @NonNull diff --git a/app/src/main/java/androidx/work/InputMerger.java b/app/src/main/java/androidx/work/InputMerger.java index 14641ffec7..7c8864f1ce 100644 --- a/app/src/main/java/androidx/work/InputMerger.java +++ b/app/src/main/java/androidx/work/InputMerger.java @@ -2,7 +2,7 @@ package androidx.work; import androidx.annotation.NonNull; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.List; public abstract class InputMerger { private static final String TAG = Logger.tagWithPrefix("InputMerger"); diff --git a/app/src/main/java/androidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1.java b/app/src/main/java/androidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1.java index 7d8640451c..3f32034c63 100644 --- a/app/src/main/java/androidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1.java +++ b/app/src/main/java/androidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1.java @@ -1,6 +1,6 @@ package androidx.work; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import d0.k; import d0.l; import java.util.concurrent.CancellationException; diff --git a/app/src/main/java/androidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$2.java b/app/src/main/java/androidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$2.java index 13623f80df..94d60a54ca 100644 --- a/app/src/main/java/androidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$2.java +++ b/app/src/main/java/androidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$2.java @@ -1,6 +1,6 @@ package androidx.work; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import d0.k; import d0.l; import java.util.concurrent.CancellationException; diff --git a/app/src/main/java/androidx/work/ListenableFutureKt.java b/app/src/main/java/androidx/work/ListenableFutureKt.java index b5963d7e81..592b022e58 100644 --- a/app/src/main/java/androidx/work/ListenableFutureKt.java +++ b/app/src/main/java/androidx/work/ListenableFutureKt.java @@ -1,7 +1,7 @@ package androidx.work; import androidx.annotation.RestrictTo; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import d0.w.h.b; import d0.w.h.c; import d0.w.i.a.g; diff --git a/app/src/main/java/androidx/work/ListenableWorker.java b/app/src/main/java/androidx/work/ListenableWorker.java index 4472a439bd..80a778d326 100644 --- a/app/src/main/java/androidx/work/ListenableWorker.java +++ b/app/src/main/java/androidx/work/ListenableWorker.java @@ -12,7 +12,7 @@ import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.annotation.RestrictTo; import androidx.work.impl.utils.taskexecutor.TaskExecutor; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.List; import java.util.Set; import java.util.UUID; @@ -244,13 +244,13 @@ public abstract class ListenableWorker { } @NonNull - public final c.i.b.d.a.a setForegroundAsync(@NonNull ForegroundInfo foregroundInfo) { + public final b.i.b.d.a.a setForegroundAsync(@NonNull ForegroundInfo foregroundInfo) { this.mRunInForeground = true; return this.mWorkerParams.getForegroundUpdater().setForegroundAsync(getApplicationContext(), getId(), foregroundInfo); } @NonNull - public final c.i.b.d.a.a setProgressAsync(@NonNull Data data) { + public final b.i.b.d.a.a setProgressAsync(@NonNull Data data) { return this.mWorkerParams.getProgressUpdater().updateProgress(getApplicationContext(), getId(), data); } @@ -261,7 +261,7 @@ public abstract class ListenableWorker { @NonNull @MainThread - public abstract c.i.b.d.a.a startWork(); + public abstract b.i.b.d.a.a startWork(); @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public final void stop() { diff --git a/app/src/main/java/androidx/work/Operation.java b/app/src/main/java/androidx/work/Operation.java index a636b9df07..a739b38c12 100644 --- a/app/src/main/java/androidx/work/Operation.java +++ b/app/src/main/java/androidx/work/Operation.java @@ -4,7 +4,7 @@ import android.annotation.SuppressLint; import androidx.annotation.NonNull; import androidx.annotation.RestrictTo; import androidx.lifecycle.LiveData; -import c.i.b.d.a.a; +import b.i.b.d.a.a; public interface Operation { @SuppressLint({"SyntheticAccessor"}) @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) diff --git a/app/src/main/java/androidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1.java b/app/src/main/java/androidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1.java index 76e985936f..2eaf25356b 100644 --- a/app/src/main/java/androidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1.java +++ b/app/src/main/java/androidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1.java @@ -1,6 +1,6 @@ package androidx.work; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import d0.k; import d0.l; import java.util.concurrent.CancellationException; diff --git a/app/src/main/java/androidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$2.java b/app/src/main/java/androidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$2.java index 74f1caf4d6..69f348b2db 100644 --- a/app/src/main/java/androidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$2.java +++ b/app/src/main/java/androidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$2.java @@ -1,6 +1,6 @@ package androidx.work; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import d0.k; import d0.l; import java.util.concurrent.CancellationException; diff --git a/app/src/main/java/androidx/work/OperationKt.java b/app/src/main/java/androidx/work/OperationKt.java index 2e2961d72c..00fa2505a6 100644 --- a/app/src/main/java/androidx/work/OperationKt.java +++ b/app/src/main/java/androidx/work/OperationKt.java @@ -1,7 +1,7 @@ package androidx.work; import androidx.work.Operation; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import d0.w.h.b; import d0.w.h.c; import d0.w.i.a.g; diff --git a/app/src/main/java/androidx/work/ProgressUpdater.java b/app/src/main/java/androidx/work/ProgressUpdater.java index b91b3cbf74..23b122bf18 100644 --- a/app/src/main/java/androidx/work/ProgressUpdater.java +++ b/app/src/main/java/androidx/work/ProgressUpdater.java @@ -2,7 +2,7 @@ package androidx.work; import android.content.Context; import androidx.annotation.NonNull; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.UUID; public interface ProgressUpdater { @NonNull diff --git a/app/src/main/java/androidx/work/WorkContinuation.java b/app/src/main/java/androidx/work/WorkContinuation.java index d78cbf2d66..e56c52fa78 100644 --- a/app/src/main/java/androidx/work/WorkContinuation.java +++ b/app/src/main/java/androidx/work/WorkContinuation.java @@ -3,7 +3,7 @@ package androidx.work; import androidx.annotation.NonNull; import androidx.annotation.RestrictTo; import androidx.lifecycle.LiveData; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.Collections; import java.util.List; public abstract class WorkContinuation { diff --git a/app/src/main/java/androidx/work/WorkInfo.java b/app/src/main/java/androidx/work/WorkInfo.java index abd19d8ec0..2d64790947 100644 --- a/app/src/main/java/androidx/work/WorkInfo.java +++ b/app/src/main/java/androidx/work/WorkInfo.java @@ -3,7 +3,7 @@ package androidx.work; import androidx.annotation.IntRange; import androidx.annotation.NonNull; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashSet; import java.util.List; import java.util.Set; diff --git a/app/src/main/java/androidx/work/WorkManager.java b/app/src/main/java/androidx/work/WorkManager.java index e641158a10..d7241e11c2 100644 --- a/app/src/main/java/androidx/work/WorkManager.java +++ b/app/src/main/java/androidx/work/WorkManager.java @@ -6,7 +6,7 @@ import android.content.Context; import androidx.annotation.NonNull; import androidx.lifecycle.LiveData; import androidx.work.impl.WorkManagerImpl; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.Collections; import java.util.List; import java.util.UUID; diff --git a/app/src/main/java/androidx/work/WorkRequest.java b/app/src/main/java/androidx/work/WorkRequest.java index e0f6c7ab9e..a3846d3e1c 100644 --- a/app/src/main/java/androidx/work/WorkRequest.java +++ b/app/src/main/java/androidx/work/WorkRequest.java @@ -51,7 +51,7 @@ public abstract class WorkRequest { this.mId = UUID.randomUUID(); WorkSpec workSpec = new WorkSpec(this.mWorkSpec); this.mWorkSpec = workSpec; - workSpec.f31id = this.mId.toString(); + workSpec.f38id = this.mId.toString(); return buildInternal; } diff --git a/app/src/main/java/androidx/work/Worker.java b/app/src/main/java/androidx/work/Worker.java index 72844fec17..00a38a4475 100644 --- a/app/src/main/java/androidx/work/Worker.java +++ b/app/src/main/java/androidx/work/Worker.java @@ -7,7 +7,7 @@ import androidx.annotation.NonNull; import androidx.annotation.WorkerThread; import androidx.work.ListenableWorker; import androidx.work.impl.utils.futures.SettableFuture; -import c.i.b.d.a.a; +import b.i.b.d.a.a; public abstract class Worker extends ListenableWorker { public SettableFuture mFuture; diff --git a/app/src/main/java/androidx/work/WorkerFactory.java b/app/src/main/java/androidx/work/WorkerFactory.java index 449c39d35f..76debd7283 100644 --- a/app/src/main/java/androidx/work/WorkerFactory.java +++ b/app/src/main/java/androidx/work/WorkerFactory.java @@ -4,7 +4,7 @@ import android.content.Context; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; -import c.d.b.a.a; +import b.d.b.a.a; public abstract class WorkerFactory { private static final String TAG = Logger.tagWithPrefix("WorkerFactory"); diff --git a/app/src/main/java/androidx/work/impl/OperationImpl.java b/app/src/main/java/androidx/work/impl/OperationImpl.java index 4b28d9d6c4..6badebbfb5 100644 --- a/app/src/main/java/androidx/work/impl/OperationImpl.java +++ b/app/src/main/java/androidx/work/impl/OperationImpl.java @@ -6,7 +6,7 @@ import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.work.Operation; import androidx.work.impl.utils.futures.SettableFuture; -import c.i.b.d.a.a; +import b.i.b.d.a.a; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public class OperationImpl implements Operation { private final SettableFuture mOperationFuture = SettableFuture.create(); diff --git a/app/src/main/java/androidx/work/impl/Processor.java b/app/src/main/java/androidx/work/impl/Processor.java index 506f7169e2..3e7f494003 100644 --- a/app/src/main/java/androidx/work/impl/Processor.java +++ b/app/src/main/java/androidx/work/impl/Processor.java @@ -16,7 +16,7 @@ import androidx.work.impl.foreground.SystemForegroundDispatcher; import androidx.work.impl.foreground.SystemForegroundService; import androidx.work.impl.utils.WakeLocks; import androidx.work.impl.utils.taskexecutor.TaskExecutor; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/app/src/main/java/androidx/work/impl/Schedulers.java b/app/src/main/java/androidx/work/impl/Schedulers.java index 71344cfc00..0ce239522f 100644 --- a/app/src/main/java/androidx/work/impl/Schedulers.java +++ b/app/src/main/java/androidx/work/impl/Schedulers.java @@ -51,7 +51,7 @@ public class Schedulers { if (eligibleWorkForScheduling != null && eligibleWorkForScheduling.size() > 0) { long currentTimeMillis = System.currentTimeMillis(); for (WorkSpec workSpec : eligibleWorkForScheduling) { - workSpecDao.markWorkSpecScheduled(workSpec.f31id, currentTimeMillis); + workSpecDao.markWorkSpecScheduled(workSpec.f38id, currentTimeMillis); } } workDatabase.setTransactionSuccessful(); diff --git a/app/src/main/java/androidx/work/impl/WorkContinuationImpl.java b/app/src/main/java/androidx/work/impl/WorkContinuationImpl.java index 3805116a33..c9e6a0ae3d 100644 --- a/app/src/main/java/androidx/work/impl/WorkContinuationImpl.java +++ b/app/src/main/java/androidx/work/impl/WorkContinuationImpl.java @@ -16,7 +16,7 @@ import androidx.work.WorkRequest; import androidx.work.impl.utils.EnqueueRunnable; import androidx.work.impl.utils.StatusRunnable; import androidx.work.impl.workers.CombineContinuationsWorker; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; diff --git a/app/src/main/java/androidx/work/impl/WorkDatabase.java b/app/src/main/java/androidx/work/impl/WorkDatabase.java index cbd40b6ab4..5200ccd350 100644 --- a/app/src/main/java/androidx/work/impl/WorkDatabase.java +++ b/app/src/main/java/androidx/work/impl/WorkDatabase.java @@ -28,7 +28,7 @@ import androidx.work.impl.model.WorkSpecDao; import androidx.work.impl.model.WorkTag; import androidx.work.impl.model.WorkTagDao; import androidx.work.impl.model.WorkTypeConverters; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.concurrent.Executor; import java.util.concurrent.TimeUnit; @TypeConverters({Data.class, WorkTypeConverters.class}) diff --git a/app/src/main/java/androidx/work/impl/WorkManagerImpl.java b/app/src/main/java/androidx/work/impl/WorkManagerImpl.java index a4ac60cfcd..8d489ed1f7 100644 --- a/app/src/main/java/androidx/work/impl/WorkManagerImpl.java +++ b/app/src/main/java/androidx/work/impl/WorkManagerImpl.java @@ -39,7 +39,7 @@ import androidx.work.impl.utils.StopWorkRunnable; import androidx.work.impl.utils.futures.SettableFuture; import androidx.work.impl.utils.taskexecutor.TaskExecutor; import androidx.work.impl.utils.taskexecutor.WorkManagerTaskExecutor; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.Arrays; import java.util.Collections; import java.util.List; diff --git a/app/src/main/java/androidx/work/impl/WorkerWrapper.java b/app/src/main/java/androidx/work/impl/WorkerWrapper.java index 5501c43902..c475466a90 100644 --- a/app/src/main/java/androidx/work/impl/WorkerWrapper.java +++ b/app/src/main/java/androidx/work/impl/WorkerWrapper.java @@ -25,7 +25,7 @@ import androidx.work.impl.utils.WorkForegroundUpdater; import androidx.work.impl.utils.WorkProgressUpdater; import androidx.work.impl.utils.futures.SettableFuture; import androidx.work.impl.utils.taskexecutor.TaskExecutor; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; diff --git a/app/src/main/java/androidx/work/impl/background/greedy/DelayedWorkTracker.java b/app/src/main/java/androidx/work/impl/background/greedy/DelayedWorkTracker.java index 509f21b81d..dfbe309122 100644 --- a/app/src/main/java/androidx/work/impl/background/greedy/DelayedWorkTracker.java +++ b/app/src/main/java/androidx/work/impl/background/greedy/DelayedWorkTracker.java @@ -24,7 +24,7 @@ public class DelayedWorkTracker { @Override // java.lang.Runnable public void run() { - Logger.get().debug(DelayedWorkTracker.TAG, String.format("Scheduling work %s", this.val$workSpec.f31id), new Throwable[0]); + Logger.get().debug(DelayedWorkTracker.TAG, String.format("Scheduling work %s", this.val$workSpec.f38id), new Throwable[0]); DelayedWorkTracker.this.mGreedyScheduler.schedule(this.val$workSpec); } } @@ -35,12 +35,12 @@ public class DelayedWorkTracker { } public void schedule(@NonNull WorkSpec workSpec) { - Runnable remove = this.mRunnables.remove(workSpec.f31id); + Runnable remove = this.mRunnables.remove(workSpec.f38id); if (remove != null) { this.mRunnableScheduler.cancel(remove); } AnonymousClass1 r0 = new AnonymousClass1(workSpec); - this.mRunnables.put(workSpec.f31id, r0); + this.mRunnables.put(workSpec.f38id, r0); long currentTimeMillis = System.currentTimeMillis(); this.mRunnableScheduler.scheduleWithDelay(workSpec.calculateNextRunTime() - currentTimeMillis, r0); } diff --git a/app/src/main/java/androidx/work/impl/background/greedy/GreedyScheduler.java b/app/src/main/java/androidx/work/impl/background/greedy/GreedyScheduler.java index 0b6023bf4c..92c696e560 100644 --- a/app/src/main/java/androidx/work/impl/background/greedy/GreedyScheduler.java +++ b/app/src/main/java/androidx/work/impl/background/greedy/GreedyScheduler.java @@ -98,7 +98,7 @@ public class GreedyScheduler implements Scheduler, WorkConstraintsCallback, Exec break; } WorkSpec next = it.next(); - if (next.f31id.equals(str)) { + if (next.f38id.equals(str)) { Logger.get().debug(TAG, String.format("Stopping tracking for %s", str), new Throwable[0]); this.mConstrainedWorkSpecs.remove(next); this.mWorkConstraintsTracker.replace(this.mConstrainedWorkSpecs); @@ -179,13 +179,13 @@ public class GreedyScheduler implements Scheduler, WorkConstraintsCallback, Exec Logger.get().debug(TAG, String.format("Ignoring WorkSpec %s, Requires device idle.", workSpec), new Throwable[0]); } else if (i < 24 || !workSpec.constraints.hasContentUriTriggers()) { hashSet.add(workSpec); - hashSet2.add(workSpec.f31id); + hashSet2.add(workSpec.f38id); } else { Logger.get().debug(TAG, String.format("Ignoring WorkSpec %s, Requires ContentUri triggers.", workSpec), new Throwable[0]); } } else { - Logger.get().debug(TAG, String.format("Starting work for %s", workSpec.f31id), new Throwable[0]); - this.mWorkManagerImpl.startWork(workSpec.f31id); + Logger.get().debug(TAG, String.format("Starting work for %s", workSpec.f38id), new Throwable[0]); + this.mWorkManagerImpl.startWork(workSpec.f38id); } } } diff --git a/app/src/main/java/androidx/work/impl/background/systemalarm/ConstraintsCommandHandler.java b/app/src/main/java/androidx/work/impl/background/systemalarm/ConstraintsCommandHandler.java index 5274e49b4f..91689b5f76 100644 --- a/app/src/main/java/androidx/work/impl/background/systemalarm/ConstraintsCommandHandler.java +++ b/app/src/main/java/androidx/work/impl/background/systemalarm/ConstraintsCommandHandler.java @@ -35,14 +35,14 @@ public class ConstraintsCommandHandler { ArrayList arrayList = new ArrayList(scheduledWork.size()); long currentTimeMillis = System.currentTimeMillis(); for (WorkSpec workSpec : scheduledWork) { - String str = workSpec.f31id; + String str = workSpec.f38id; if (currentTimeMillis >= workSpec.calculateNextRunTime() && (!workSpec.hasConstraints() || this.mWorkConstraintsTracker.areAllConstraintsMet(str))) { arrayList.add(workSpec); } } Iterator it = arrayList.iterator(); while (it.hasNext()) { - String str2 = ((WorkSpec) it.next()).f31id; + String str2 = ((WorkSpec) it.next()).f38id; Intent createDelayMetIntent = CommandHandler.createDelayMetIntent(this.mContext, str2); Logger.get().debug(TAG, String.format("Creating a delay_met command for workSpec with id (%s)", str2), new Throwable[0]); SystemAlarmDispatcher systemAlarmDispatcher = this.mDispatcher; diff --git a/app/src/main/java/androidx/work/impl/background/systemalarm/SystemAlarmScheduler.java b/app/src/main/java/androidx/work/impl/background/systemalarm/SystemAlarmScheduler.java index db8f28682c..98dd56420c 100644 --- a/app/src/main/java/androidx/work/impl/background/systemalarm/SystemAlarmScheduler.java +++ b/app/src/main/java/androidx/work/impl/background/systemalarm/SystemAlarmScheduler.java @@ -16,8 +16,8 @@ public class SystemAlarmScheduler implements Scheduler { } private void scheduleWorkSpec(@NonNull WorkSpec workSpec) { - Logger.get().debug(TAG, String.format("Scheduling work with workSpecId %s", workSpec.f31id), new Throwable[0]); - this.mContext.startService(CommandHandler.createScheduleWorkIntent(this.mContext, workSpec.f31id)); + Logger.get().debug(TAG, String.format("Scheduling work with workSpecId %s", workSpec.f38id), new Throwable[0]); + this.mContext.startService(CommandHandler.createScheduleWorkIntent(this.mContext, workSpec.f38id)); } @Override // androidx.work.impl.Scheduler diff --git a/app/src/main/java/androidx/work/impl/background/systemjob/SystemJobInfoConverter.java b/app/src/main/java/androidx/work/impl/background/systemjob/SystemJobInfoConverter.java index 643c68b841..9a9b61ec30 100644 --- a/app/src/main/java/androidx/work/impl/background/systemjob/SystemJobInfoConverter.java +++ b/app/src/main/java/androidx/work/impl/background/systemjob/SystemJobInfoConverter.java @@ -90,7 +90,7 @@ public class SystemJobInfoConverter { Constraints constraints = workSpec.constraints; int convertNetworkType = convertNetworkType(constraints.getRequiredNetworkType()); PersistableBundle persistableBundle = new PersistableBundle(); - persistableBundle.putString(EXTRA_WORK_SPEC_ID, workSpec.f31id); + persistableBundle.putString(EXTRA_WORK_SPEC_ID, workSpec.f38id); persistableBundle.putBoolean(EXTRA_IS_PERIODIC, workSpec.isPeriodic()); JobInfo.Builder extras = new JobInfo.Builder(i, this.mWorkServiceComponent).setRequiredNetworkType(convertNetworkType).setRequiresCharging(constraints.requiresCharging()).setRequiresDeviceIdle(constraints.requiresDeviceIdle()).setExtras(persistableBundle); if (!constraints.requiresDeviceIdle()) { diff --git a/app/src/main/java/androidx/work/impl/background/systemjob/SystemJobScheduler.java b/app/src/main/java/androidx/work/impl/background/systemjob/SystemJobScheduler.java index c5312a5407..34cf8c3e37 100644 --- a/app/src/main/java/androidx/work/impl/background/systemjob/SystemJobScheduler.java +++ b/app/src/main/java/androidx/work/impl/background/systemjob/SystemJobScheduler.java @@ -151,21 +151,21 @@ public class SystemJobScheduler implements Scheduler { for (WorkSpec workSpec : workSpecArr) { workDatabase.beginTransaction(); try { - WorkSpec workSpec2 = workDatabase.workSpecDao().getWorkSpec(workSpec.f31id); + WorkSpec workSpec2 = workDatabase.workSpecDao().getWorkSpec(workSpec.f38id); if (workSpec2 == null) { - Logger.get().warning(TAG, "Skipping scheduling " + workSpec.f31id + " because it's no longer in the DB", new Throwable[0]); + Logger.get().warning(TAG, "Skipping scheduling " + workSpec.f38id + " because it's no longer in the DB", new Throwable[0]); workDatabase.setTransactionSuccessful(); } else if (workSpec2.state != WorkInfo.State.ENQUEUED) { - Logger.get().warning(TAG, "Skipping scheduling " + workSpec.f31id + " because it is no longer enqueued", new Throwable[0]); + Logger.get().warning(TAG, "Skipping scheduling " + workSpec.f38id + " because it is no longer enqueued", new Throwable[0]); workDatabase.setTransactionSuccessful(); } else { - SystemIdInfo systemIdInfo = workDatabase.systemIdInfoDao().getSystemIdInfo(workSpec.f31id); + SystemIdInfo systemIdInfo = workDatabase.systemIdInfoDao().getSystemIdInfo(workSpec.f38id); int nextJobSchedulerIdWithRange = systemIdInfo != null ? systemIdInfo.systemId : idGenerator.nextJobSchedulerIdWithRange(this.mWorkManager.getConfiguration().getMinJobSchedulerId(), this.mWorkManager.getConfiguration().getMaxJobSchedulerId()); if (systemIdInfo == null) { - this.mWorkManager.getWorkDatabase().systemIdInfoDao().insertSystemIdInfo(new SystemIdInfo(workSpec.f31id, nextJobSchedulerIdWithRange)); + this.mWorkManager.getWorkDatabase().systemIdInfoDao().insertSystemIdInfo(new SystemIdInfo(workSpec.f38id, nextJobSchedulerIdWithRange)); } scheduleInternal(workSpec, nextJobSchedulerIdWithRange); - if (Build.VERSION.SDK_INT == 23 && (pendingJobIds = getPendingJobIds(this.mContext, this.mJobScheduler, workSpec.f31id)) != null) { + if (Build.VERSION.SDK_INT == 23 && (pendingJobIds = getPendingJobIds(this.mContext, this.mJobScheduler, workSpec.f38id)) != null) { int indexOf = pendingJobIds.indexOf(Integer.valueOf(nextJobSchedulerIdWithRange)); if (indexOf >= 0) { pendingJobIds.remove(indexOf); @@ -185,7 +185,7 @@ public class SystemJobScheduler implements Scheduler { @VisibleForTesting public void scheduleInternal(WorkSpec workSpec, int i) { JobInfo convert = this.mSystemJobInfoConverter.convert(workSpec, i); - Logger.get().debug(TAG, String.format("Scheduling work ID %s Job ID %s", workSpec.f31id, Integer.valueOf(i)), new Throwable[0]); + Logger.get().debug(TAG, String.format("Scheduling work ID %s Job ID %s", workSpec.f38id, Integer.valueOf(i)), new Throwable[0]); try { this.mJobScheduler.schedule(convert); } catch (IllegalStateException e) { diff --git a/app/src/main/java/androidx/work/impl/constraints/controllers/ConstraintController.java b/app/src/main/java/androidx/work/impl/constraints/controllers/ConstraintController.java index e628a56172..1c4810293b 100644 --- a/app/src/main/java/androidx/work/impl/constraints/controllers/ConstraintController.java +++ b/app/src/main/java/androidx/work/impl/constraints/controllers/ConstraintController.java @@ -52,7 +52,7 @@ public abstract class ConstraintController implements ConstraintListener { this.mMatchingWorkSpecIds.clear(); for (WorkSpec workSpec : iterable) { if (hasConstraint(workSpec)) { - this.mMatchingWorkSpecIds.add(workSpec.f31id); + this.mMatchingWorkSpecIds.add(workSpec.f38id); } } if (this.mMatchingWorkSpecIds.isEmpty()) { diff --git a/app/src/main/java/androidx/work/impl/constraints/trackers/BatteryChargingTracker.java b/app/src/main/java/androidx/work/impl/constraints/trackers/BatteryChargingTracker.java index efd7cd2c25..45997480d0 100644 --- a/app/src/main/java/androidx/work/impl/constraints/trackers/BatteryChargingTracker.java +++ b/app/src/main/java/androidx/work/impl/constraints/trackers/BatteryChargingTracker.java @@ -59,37 +59,37 @@ public class BatteryChargingTracker extends BroadcastReceiverConstraintTracker list = this.progress; - return new WorkInfo(UUID.fromString(this.f33id), this.state, this.output, this.tags, (list == null || list.isEmpty()) ? Data.EMPTY : this.progress.get(0), this.runAttemptCount); + return new WorkInfo(UUID.fromString(this.f40id), this.state, this.output, this.tags, (list == null || list.isEmpty()) ? Data.EMPTY : this.progress.get(0), this.runAttemptCount); } } @@ -193,7 +193,7 @@ public final class WorkSpec { this.backoffPolicy = BackoffPolicy.EXPONENTIAL; this.backoffDelayDuration = 30000; this.scheduleRequestedAt = -1; - this.f31id = workSpec.f31id; + this.f38id = workSpec.f38id; this.workerClassName = workSpec.workerClassName; this.state = workSpec.state; this.inputMergerClassName = workSpec.inputMergerClassName; @@ -220,7 +220,7 @@ public final class WorkSpec { this.backoffPolicy = BackoffPolicy.EXPONENTIAL; this.backoffDelayDuration = 30000; this.scheduleRequestedAt = -1; - this.f31id = str; + this.f38id = str; this.workerClassName = str2; } @@ -274,7 +274,7 @@ public final class WorkSpec { return false; } WorkSpec workSpec = (WorkSpec) obj; - if (this.initialDelay != workSpec.initialDelay || this.intervalDuration != workSpec.intervalDuration || this.flexDuration != workSpec.flexDuration || this.runAttemptCount != workSpec.runAttemptCount || this.backoffDelayDuration != workSpec.backoffDelayDuration || this.periodStartTime != workSpec.periodStartTime || this.minimumRetentionDuration != workSpec.minimumRetentionDuration || this.scheduleRequestedAt != workSpec.scheduleRequestedAt || this.runInForeground != workSpec.runInForeground || !this.f31id.equals(workSpec.f31id) || this.state != workSpec.state || !this.workerClassName.equals(workSpec.workerClassName)) { + if (this.initialDelay != workSpec.initialDelay || this.intervalDuration != workSpec.intervalDuration || this.flexDuration != workSpec.flexDuration || this.runAttemptCount != workSpec.runAttemptCount || this.backoffDelayDuration != workSpec.backoffDelayDuration || this.periodStartTime != workSpec.periodStartTime || this.minimumRetentionDuration != workSpec.minimumRetentionDuration || this.scheduleRequestedAt != workSpec.scheduleRequestedAt || this.runInForeground != workSpec.runInForeground || !this.f38id.equals(workSpec.f38id) || this.state != workSpec.state || !this.workerClassName.equals(workSpec.workerClassName)) { return false; } String str = this.inputMergerClassName; @@ -289,7 +289,7 @@ public final class WorkSpec { } public int hashCode() { - int m = a.m(this.workerClassName, (this.state.hashCode() + (this.f31id.hashCode() * 31)) * 31, 31); + int m = a.m(this.workerClassName, (this.state.hashCode() + (this.f38id.hashCode() * 31)) * 31, 31); String str = this.inputMergerClassName; int hashCode = str != null ? str.hashCode() : 0; int hashCode2 = this.input.hashCode(); @@ -353,6 +353,6 @@ public final class WorkSpec { @NonNull public String toString() { - return a.H(a.R("{WorkSpec: "), this.f31id, "}"); + return a.H(a.R("{WorkSpec: "), this.f38id, "}"); } } diff --git a/app/src/main/java/androidx/work/impl/model/WorkSpecDao_Impl.java b/app/src/main/java/androidx/work/impl/model/WorkSpecDao_Impl.java index f71e7d0f12..0f6d9ef260 100644 --- a/app/src/main/java/androidx/work/impl/model/WorkSpecDao_Impl.java +++ b/app/src/main/java/androidx/work/impl/model/WorkSpecDao_Impl.java @@ -39,7 +39,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { } public void bind(SupportSQLiteStatement supportSQLiteStatement, WorkSpec workSpec) { - String str = workSpec.f31id; + String str = workSpec.f38id; if (str == null) { supportSQLiteStatement.bindNull(1); } else { @@ -162,7 +162,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { arrayList3 = new ArrayList(); } WorkSpec.WorkInfoPojo workInfoPojo = new WorkSpec.WorkInfoPojo(); - workInfoPojo.f33id = query.getString(columnIndexOrThrow); + workInfoPojo.f40id = query.getString(columnIndexOrThrow); workInfoPojo.state = WorkTypeConverters.intToState(query.getInt(columnIndexOrThrow2)); workInfoPojo.output = Data.fromByteArray(query.getBlob(columnIndexOrThrow3)); workInfoPojo.runAttemptCount = query.getInt(columnIndexOrThrow4); @@ -237,7 +237,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { arrayList3 = new ArrayList(); } WorkSpec.WorkInfoPojo workInfoPojo = new WorkSpec.WorkInfoPojo(); - workInfoPojo.f33id = query.getString(columnIndexOrThrow); + workInfoPojo.f40id = query.getString(columnIndexOrThrow); workInfoPojo.state = WorkTypeConverters.intToState(query.getInt(columnIndexOrThrow2)); workInfoPojo.output = Data.fromByteArray(query.getBlob(columnIndexOrThrow3)); workInfoPojo.runAttemptCount = query.getInt(columnIndexOrThrow4); @@ -312,7 +312,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { arrayList3 = new ArrayList(); } WorkSpec.WorkInfoPojo workInfoPojo = new WorkSpec.WorkInfoPojo(); - workInfoPojo.f33id = query.getString(columnIndexOrThrow); + workInfoPojo.f40id = query.getString(columnIndexOrThrow); workInfoPojo.state = WorkTypeConverters.intToState(query.getInt(columnIndexOrThrow2)); workInfoPojo.output = Data.fromByteArray(query.getBlob(columnIndexOrThrow3)); workInfoPojo.runAttemptCount = query.getInt(columnIndexOrThrow4); @@ -1340,7 +1340,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { ArrayList arrayList = new ArrayList(query.getCount()); while (query.moveToNext()) { WorkSpec.IdAndState idAndState = new WorkSpec.IdAndState(); - idAndState.f32id = query.getString(columnIndexOrThrow); + idAndState.f39id = query.getString(columnIndexOrThrow); idAndState.state = WorkTypeConverters.intToState(query.getInt(columnIndexOrThrow2)); arrayList.add(idAndState); } @@ -1521,7 +1521,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { arrayList = new ArrayList<>(); } WorkSpec.WorkInfoPojo workInfoPojo2 = new WorkSpec.WorkInfoPojo(); - workInfoPojo2.f33id = query.getString(columnIndexOrThrow); + workInfoPojo2.f40id = query.getString(columnIndexOrThrow); workInfoPojo2.state = WorkTypeConverters.intToState(query.getInt(columnIndexOrThrow2)); workInfoPojo2.output = Data.fromByteArray(query.getBlob(columnIndexOrThrow3)); workInfoPojo2.runAttemptCount = query.getInt(columnIndexOrThrow4); @@ -1600,7 +1600,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { arrayList3 = new ArrayList<>(); } WorkSpec.WorkInfoPojo workInfoPojo = new WorkSpec.WorkInfoPojo(); - workInfoPojo.f33id = query.getString(columnIndexOrThrow); + workInfoPojo.f40id = query.getString(columnIndexOrThrow); workInfoPojo.state = WorkTypeConverters.intToState(query.getInt(columnIndexOrThrow2)); workInfoPojo.output = Data.fromByteArray(query.getBlob(columnIndexOrThrow3)); workInfoPojo.runAttemptCount = query.getInt(columnIndexOrThrow4); @@ -1670,7 +1670,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { arrayList3 = new ArrayList<>(); } WorkSpec.WorkInfoPojo workInfoPojo = new WorkSpec.WorkInfoPojo(); - workInfoPojo.f33id = query.getString(columnIndexOrThrow); + workInfoPojo.f40id = query.getString(columnIndexOrThrow); workInfoPojo.state = WorkTypeConverters.intToState(query.getInt(columnIndexOrThrow2)); workInfoPojo.output = Data.fromByteArray(query.getBlob(columnIndexOrThrow3)); workInfoPojo.runAttemptCount = query.getInt(columnIndexOrThrow4); @@ -1740,7 +1740,7 @@ public final class WorkSpecDao_Impl implements WorkSpecDao { arrayList3 = new ArrayList<>(); } WorkSpec.WorkInfoPojo workInfoPojo = new WorkSpec.WorkInfoPojo(); - workInfoPojo.f33id = query.getString(columnIndexOrThrow); + workInfoPojo.f40id = query.getString(columnIndexOrThrow); workInfoPojo.state = WorkTypeConverters.intToState(query.getInt(columnIndexOrThrow2)); workInfoPojo.output = Data.fromByteArray(query.getBlob(columnIndexOrThrow3)); workInfoPojo.runAttemptCount = query.getInt(columnIndexOrThrow4); diff --git a/app/src/main/java/androidx/work/impl/model/WorkTypeConverters.java b/app/src/main/java/androidx/work/impl/model/WorkTypeConverters.java index 356f880786..4ad069f920 100644 --- a/app/src/main/java/androidx/work/impl/model/WorkTypeConverters.java +++ b/app/src/main/java/androidx/work/impl/model/WorkTypeConverters.java @@ -6,7 +6,7 @@ import androidx.work.BackoffPolicy; import androidx.work.ContentUriTriggers; import androidx.work.NetworkType; import androidx.work.WorkInfo; -import c.d.b.a.a; +import b.d.b.a.a; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/app/src/main/java/androidx/work/impl/utils/EnqueueRunnable.java b/app/src/main/java/androidx/work/impl/utils/EnqueueRunnable.java index ed9f43265e..e074ae3131 100644 --- a/app/src/main/java/androidx/work/impl/utils/EnqueueRunnable.java +++ b/app/src/main/java/androidx/work/impl/utils/EnqueueRunnable.java @@ -100,7 +100,7 @@ public class EnqueueRunnable implements Runnable { DependencyDao dependencyDao2 = workDatabase.dependencyDao(); ArrayList arrayList2 = new ArrayList(); for (WorkSpec.IdAndState idAndState : workSpecIdAndStatesForName) { - if (!dependencyDao2.hasDependents(idAndState.f32id)) { + if (!dependencyDao2.hasDependents(idAndState.f39id)) { WorkInfo.State state2 = idAndState.state; dependencyDao = dependencyDao2; boolean z9 = (state2 == WorkInfo.State.SUCCEEDED) & z4; @@ -109,7 +109,7 @@ public class EnqueueRunnable implements Runnable { } else if (state2 == WorkInfo.State.CANCELLED) { z3 = true; } - arrayList2.add(idAndState.f32id); + arrayList2.add(idAndState.f39id); z4 = z9; } else { dependencyDao = dependencyDao2; @@ -122,7 +122,7 @@ public class EnqueueRunnable implements Runnable { } else { WorkSpecDao workSpecDao = workDatabase.workSpecDao(); for (WorkSpec.IdAndState idAndState2 : workSpecDao.getWorkSpecIdAndStatesForName(str)) { - workSpecDao.delete(idAndState2.f32id); + workSpecDao.delete(idAndState2.f39id); } z6 = false; z3 = false; @@ -145,7 +145,7 @@ public class EnqueueRunnable implements Runnable { CancelWorkRunnable.forName(str, workManagerImpl2, false).run(); WorkSpecDao workSpecDao2 = workDatabase.workSpecDao(); for (WorkSpec.IdAndState idAndState4 : workSpecIdAndStatesForName) { - workSpecDao2.delete(idAndState4.f32id); + workSpecDao2.delete(idAndState4.f39id); } z5 = true; for (WorkRequest workRequest : list) { diff --git a/app/src/main/java/androidx/work/impl/utils/ForceStopRunnable.java b/app/src/main/java/androidx/work/impl/utils/ForceStopRunnable.java index a3b01e3252..5e75a32b11 100644 --- a/app/src/main/java/androidx/work/impl/utils/ForceStopRunnable.java +++ b/app/src/main/java/androidx/work/impl/utils/ForceStopRunnable.java @@ -88,8 +88,8 @@ public class ForceStopRunnable implements Runnable { boolean z2 = runningWork != null && !runningWork.isEmpty(); if (z2) { for (WorkSpec workSpec : runningWork) { - workSpecDao.setState(WorkInfo.State.ENQUEUED, workSpec.f31id); - workSpecDao.markWorkSpecScheduled(workSpec.f31id, -1); + workSpecDao.setState(WorkInfo.State.ENQUEUED, workSpec.f38id); + workSpecDao.markWorkSpecScheduled(workSpec.f38id, -1); } } workProgressDao.deleteAll(); diff --git a/app/src/main/java/androidx/work/impl/utils/StatusRunnable.java b/app/src/main/java/androidx/work/impl/utils/StatusRunnable.java index 8f8916ca44..7c5b12674b 100644 --- a/app/src/main/java/androidx/work/impl/utils/StatusRunnable.java +++ b/app/src/main/java/androidx/work/impl/utils/StatusRunnable.java @@ -8,7 +8,7 @@ import androidx.work.WorkQuery; import androidx.work.impl.WorkManagerImpl; import androidx.work.impl.model.WorkSpec; import androidx.work.impl.utils.futures.SettableFuture; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.List; import java.util.UUID; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) diff --git a/app/src/main/java/androidx/work/impl/utils/WakeLocks.java b/app/src/main/java/androidx/work/impl/utils/WakeLocks.java index 2650d5af2a..79b850bfb8 100644 --- a/app/src/main/java/androidx/work/impl/utils/WakeLocks.java +++ b/app/src/main/java/androidx/work/impl/utils/WakeLocks.java @@ -5,7 +5,7 @@ import android.os.PowerManager; import androidx.annotation.NonNull; import androidx.annotation.RestrictTo; import androidx.work.Logger; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; import java.util.WeakHashMap; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) diff --git a/app/src/main/java/androidx/work/impl/utils/WorkForegroundUpdater.java b/app/src/main/java/androidx/work/impl/utils/WorkForegroundUpdater.java index a81207ccc6..d59e298494 100644 --- a/app/src/main/java/androidx/work/impl/utils/WorkForegroundUpdater.java +++ b/app/src/main/java/androidx/work/impl/utils/WorkForegroundUpdater.java @@ -12,7 +12,7 @@ import androidx.work.impl.foreground.SystemForegroundDispatcher; import androidx.work.impl.model.WorkSpecDao; import androidx.work.impl.utils.futures.SettableFuture; import androidx.work.impl.utils.taskexecutor.TaskExecutor; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.UUID; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public class WorkForegroundUpdater implements ForegroundUpdater { diff --git a/app/src/main/java/androidx/work/impl/utils/WorkProgressUpdater.java b/app/src/main/java/androidx/work/impl/utils/WorkProgressUpdater.java index d35824ecaf..8eb721dcfa 100644 --- a/app/src/main/java/androidx/work/impl/utils/WorkProgressUpdater.java +++ b/app/src/main/java/androidx/work/impl/utils/WorkProgressUpdater.java @@ -12,7 +12,7 @@ import androidx.work.impl.model.WorkProgress; import androidx.work.impl.model.WorkSpec; import androidx.work.impl.utils.futures.SettableFuture; import androidx.work.impl.utils.taskexecutor.TaskExecutor; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.UUID; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public class WorkProgressUpdater implements ProgressUpdater { diff --git a/app/src/main/java/androidx/work/impl/utils/WorkTimer.java b/app/src/main/java/androidx/work/impl/utils/WorkTimer.java index d6f69d9d20..50e867d355 100644 --- a/app/src/main/java/androidx/work/impl/utils/WorkTimer.java +++ b/app/src/main/java/androidx/work/impl/utils/WorkTimer.java @@ -4,7 +4,7 @@ import androidx.annotation.NonNull; import androidx.annotation.RestrictTo; import androidx.annotation.VisibleForTesting; import androidx.work.Logger; -import c.d.b.a.a; +import b.d.b.a.a; import java.util.HashMap; import java.util.Map; import java.util.concurrent.Executors; diff --git a/app/src/main/java/androidx/work/impl/utils/futures/AbstractFuture.java b/app/src/main/java/androidx/work/impl/utils/futures/AbstractFuture.java index 4c9b77e49e..462f4dc587 100644 --- a/app/src/main/java/androidx/work/impl/utils/futures/AbstractFuture.java +++ b/app/src/main/java/androidx/work/impl/utils/futures/AbstractFuture.java @@ -3,7 +3,7 @@ package androidx.work.impl.utils.futures; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.Locale; import java.util.Objects; import java.util.concurrent.CancellationException; @@ -449,7 +449,7 @@ public abstract class AbstractFuture implements a { return obj == this ? "this future" : String.valueOf(obj); } - @Override // c.i.b.d.a.a + @Override // b.i.b.d.a.a public final void addListener(Runnable runnable, Executor executor) { checkNotNull(runnable); checkNotNull(executor); @@ -597,7 +597,7 @@ public abstract class AbstractFuture implements a { String lowerCase = timeUnit2.toLowerCase(locale); String str = "Waited " + j + " " + timeUnit.toString().toLowerCase(locale); if (nanos + 1000 < 0) { - String v = c.d.b.a.a.v(str, " (plus "); + String v = b.d.b.a.a.v(str, " (plus "); long j2 = -nanos; long convert = timeUnit.convert(j2, TimeUnit.NANOSECONDS); long nanos2 = j2 - timeUnit.toNanos(convert); @@ -606,19 +606,19 @@ public abstract class AbstractFuture implements a { if (i > 0) { String str2 = v + convert + " " + lowerCase; if (z2) { - str2 = c.d.b.a.a.v(str2, ","); + str2 = b.d.b.a.a.v(str2, ","); } - v = c.d.b.a.a.v(str2, " "); + v = b.d.b.a.a.v(str2, " "); } if (z2) { v = v + nanos2 + " nanoseconds "; } - str = c.d.b.a.a.v(v, "delay)"); + str = b.d.b.a.a.v(v, "delay)"); } if (isDone()) { - throw new TimeoutException(c.d.b.a.a.v(str, " but future completed as timeout expired")); + throw new TimeoutException(b.d.b.a.a.v(str, " but future completed as timeout expired")); } - throw new TimeoutException(c.d.b.a.a.w(str, " for ", abstractFuture)); + throw new TimeoutException(b.d.b.a.a.w(str, " for ", abstractFuture)); } throw new InterruptedException(); } @@ -647,12 +647,12 @@ public abstract class AbstractFuture implements a { public String pendingToString() { Object obj = this.value; if (obj instanceof SetFuture) { - return c.d.b.a.a.H(c.d.b.a.a.R("setFuture=["), userObjectToString(((SetFuture) obj).future), "]"); + return b.d.b.a.a.H(b.d.b.a.a.R("setFuture=["), userObjectToString(((SetFuture) obj).future), "]"); } if (!(this instanceof ScheduledFuture)) { return null; } - StringBuilder R = c.d.b.a.a.R("remaining delay=["); + StringBuilder R = b.d.b.a.a.R("remaining delay=["); R.append(((ScheduledFuture) this).getDelay(TimeUnit.MILLISECONDS)); R.append(" ms]"); return R.toString(); @@ -723,7 +723,7 @@ public abstract class AbstractFuture implements a { try { str = pendingToString(); } catch (RuntimeException e) { - StringBuilder R = c.d.b.a.a.R("Exception thrown from implementation: "); + StringBuilder R = b.d.b.a.a.R("Exception thrown from implementation: "); R.append(e.getClass()); str = R.toString(); } diff --git a/app/src/main/java/androidx/work/impl/utils/futures/SettableFuture.java b/app/src/main/java/androidx/work/impl/utils/futures/SettableFuture.java index 251c3fa699..c38e46f873 100644 --- a/app/src/main/java/androidx/work/impl/utils/futures/SettableFuture.java +++ b/app/src/main/java/androidx/work/impl/utils/futures/SettableFuture.java @@ -2,7 +2,7 @@ package androidx.work.impl.utils.futures; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; -import c.i.b.d.a.a; +import b.i.b.d.a.a; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public final class SettableFuture extends AbstractFuture { private SettableFuture() { diff --git a/app/src/main/java/androidx/work/impl/workers/ConstraintTrackingWorker.java b/app/src/main/java/androidx/work/impl/workers/ConstraintTrackingWorker.java index c11ffa69c5..5cbd85db83 100644 --- a/app/src/main/java/androidx/work/impl/workers/ConstraintTrackingWorker.java +++ b/app/src/main/java/androidx/work/impl/workers/ConstraintTrackingWorker.java @@ -16,7 +16,7 @@ import androidx.work.impl.constraints.WorkConstraintsTracker; import androidx.work.impl.model.WorkSpec; import androidx.work.impl.utils.futures.SettableFuture; import androidx.work.impl.utils.taskexecutor.TaskExecutor; -import c.i.b.d.a.a; +import b.i.b.d.a.a; import java.util.Collections; import java.util.List; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) diff --git a/app/src/main/java/androidx/work/impl/workers/DiagnosticsWorker.java b/app/src/main/java/androidx/work/impl/workers/DiagnosticsWorker.java index fd9cb541ec..3bf1f015d5 100644 --- a/app/src/main/java/androidx/work/impl/workers/DiagnosticsWorker.java +++ b/app/src/main/java/androidx/work/impl/workers/DiagnosticsWorker.java @@ -30,7 +30,7 @@ public class DiagnosticsWorker extends Worker { @NonNull private static String workSpecRow(@NonNull WorkSpec workSpec, @Nullable String str, @Nullable Integer num, @NonNull String str2) { - return String.format("\n%s\t %s\t %s\t %s\t %s\t %s\t", workSpec.f31id, workSpec.workerClassName, num, workSpec.state.name(), str, str2); + return String.format("\n%s\t %s\t %s\t %s\t %s\t %s\t", workSpec.f38id, workSpec.workerClassName, num, workSpec.state.name(), str, str2); } @NonNull @@ -39,11 +39,11 @@ public class DiagnosticsWorker extends Worker { sb.append(String.format("\n Id \t Class Name\t %s\t State\t Unique Name\t Tags\t", Build.VERSION.SDK_INT >= 23 ? "Job Id" : "Alarm Id")); for (WorkSpec workSpec : list) { Integer num = null; - SystemIdInfo systemIdInfo = systemIdInfoDao.getSystemIdInfo(workSpec.f31id); + SystemIdInfo systemIdInfo = systemIdInfoDao.getSystemIdInfo(workSpec.f38id); if (systemIdInfo != null) { num = Integer.valueOf(systemIdInfo.systemId); } - sb.append(workSpecRow(workSpec, TextUtils.join(",", workNameDao.getNamesForWorkSpecId(workSpec.f31id)), num, TextUtils.join(",", workTagDao.getTagsForWorkSpecId(workSpec.f31id)))); + sb.append(workSpecRow(workSpec, TextUtils.join(",", workNameDao.getNamesForWorkSpecId(workSpec.f38id)), num, TextUtils.join(",", workTagDao.getTagsForWorkSpecId(workSpec.f38id)))); } return sb.toString(); } diff --git a/app/src/main/java/b/a/a/a/a.java b/app/src/main/java/b/a/a/a/a.java new file mode 100644 index 0000000000..464c08a13d --- /dev/null +++ b/app/src/main/java/b/a/a/a/a.java @@ -0,0 +1,292 @@ +package b.a.a.a; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentViewModelLazyKt; +import b.a.a.a.k; +import b.a.d.f0; +import b.a.d.h0; +import b.a.i.s; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.app.AppViewFlipper; +import com.discord.app.AppViewModel; +import com.discord.utilities.premium.GuildBoostUtils; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.view.extensions.ViewExtensions; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.views.LoadingButton; +import com.google.android.material.button.MaterialButton; +import d0.g; +import d0.z.d.a0; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Lazy; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +import rx.Observable; +/* compiled from: GuildBoostUncancelDialog.kt */ +public final class a extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(a.class, "binding", "getBinding()Lcom/discord/databinding/GuildBoostUncancelDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + public final Lazy m; + public final Lazy n; + + /* compiled from: java-style lambda group */ + /* renamed from: b.a.a.a.a$a reason: collision with other inner class name */ + public static final class View$OnClickListenerC0000a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public View$OnClickListenerC0000a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + k kVar = (k) ((a) this.k).m.getValue(); + k.c viewState = kVar.getViewState(); + if (!m.areEqual(viewState, k.c.C0005c.a)) { + if ((viewState instanceof k.c.b) || (viewState instanceof k.c.a)) { + kVar.updateViewState(new k.c.a(null, 1)); + } + } + } else if (i == 1) { + k kVar2 = (k) ((a) this.k).m.getValue(); + k.c viewState2 = kVar2.getViewState(); + if (!m.areEqual(viewState2, k.c.C0005c.a)) { + if (viewState2 instanceof k.c.b) { + k.c viewState3 = kVar2.getViewState(); + Objects.requireNonNull(viewState3, "null cannot be cast to non-null type com.discord.dialogs.guildboost.GuildBoostUncancelViewModel.ViewState.Loaded"); + if (!((k.c.b) viewState3).f43b) { + k.c viewState4 = kVar2.getViewState(); + if (!(viewState4 instanceof k.c.b)) { + viewState4 = null; + } + k.c.b bVar = (k.c.b) viewState4; + if (bVar != null) { + kVar2.updateViewState(k.c.b.a(bVar, null, true, false, 5)); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(GuildBoostUtils.INSTANCE.uncancelGuildBoostSlot(kVar2.n, kVar2.k, bVar.a, kVar2.m), kVar2, null, 2, null), k.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new l(kVar2, bVar), 62, (Object) null); + } + } + } else if ((viewState2 instanceof k.c.d) || (viewState2 instanceof k.c.a)) { + kVar2.updateViewState(new k.c.a(null, 1)); + } + } + } else { + throw null; + } + } + } + + /* compiled from: GuildBoostUncancelDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: GuildBoostUncancelDialog.kt */ + public static final /* synthetic */ class c extends d0.z.d.k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, s.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildBoostUncancelDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public s invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.guild_boost_uncancel_body; + TextView textView = (TextView) view2.findViewById(R.id.guild_boost_uncancel_body); + if (textView != null) { + i = R.id.guild_boost_uncancel_confirm; + LoadingButton loadingButton = (LoadingButton) view2.findViewById(R.id.guild_boost_uncancel_confirm); + if (loadingButton != null) { + i = R.id.guild_boost_uncancel_error; + TextView textView2 = (TextView) view2.findViewById(R.id.guild_boost_uncancel_error); + if (textView2 != null) { + i = R.id.guild_boost_uncancel_flipper; + AppViewFlipper appViewFlipper = (AppViewFlipper) view2.findViewById(R.id.guild_boost_uncancel_flipper); + if (appViewFlipper != null) { + i = R.id.guild_boost_uncancel_header; + TextView textView3 = (TextView) view2.findViewById(R.id.guild_boost_uncancel_header); + if (textView3 != null) { + i = R.id.guild_boost_uncancel_image; + ImageView imageView = (ImageView) view2.findViewById(R.id.guild_boost_uncancel_image); + if (imageView != null) { + i = R.id.guild_boost_uncancel_nevermind; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_boost_uncancel_nevermind); + if (materialButton != null) { + i = R.id.notice_header_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container); + if (linearLayout != null) { + return new s((LinearLayout) view2, textView, loadingButton, textView2, appViewFlipper, textView3, imageView, materialButton, linearLayout); + } + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: GuildBoostUncancelDialog.kt */ + public static final class d extends o implements Function1 { + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(a aVar) { + super(1); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(k.c cVar) { + k.c cVar2 = cVar; + a aVar = this.this$0; + m.checkNotNullExpressionValue(cVar2, "it"); + KProperty[] kPropertyArr = a.j; + AppViewFlipper appViewFlipper = aVar.g().e; + m.checkNotNullExpressionValue(appViewFlipper, "binding.guildBoostUncancelFlipper"); + boolean z2 = true; + appViewFlipper.setDisplayedChild(!(cVar2 instanceof k.c.C0005c) ? 1 : 0); + TextView textView = aVar.g().d; + m.checkNotNullExpressionValue(textView, "binding.guildBoostUncancelError"); + boolean z3 = cVar2 instanceof k.c.b; + int i = 8; + textView.setVisibility(z3 && ((k.c.b) cVar2).c ? 0 : 8); + MaterialButton materialButton = aVar.g().h; + m.checkNotNullExpressionValue(materialButton, "binding.guildBoostUncancelNevermind"); + if (z3) { + i = 0; + } + materialButton.setVisibility(i); + MaterialButton materialButton2 = aVar.g().h; + m.checkNotNullExpressionValue(materialButton2, "binding.guildBoostUncancelNevermind"); + ViewExtensions.setEnabledAndAlpha$default(materialButton2, z3 && !((k.c.b) cVar2).f43b, 0.0f, 2, null); + aVar.g().c.setIsLoading(z3 && ((k.c.b) cVar2).f43b); + k.c.C0005c cVar3 = k.c.C0005c.a; + if (!(!m.areEqual(cVar2, cVar3)) || !z3 || ((k.c.b) cVar2).f43b) { + z2 = false; + } + aVar.setCancelable(z2); + if (!m.areEqual(cVar2, cVar3)) { + if (z3) { + TextView textView2 = aVar.g().f; + m.checkNotNullExpressionValue(textView2, "binding.guildBoostUncancelHeader"); + textView2.setText(aVar.getString(R.string.premium_guild_subscription_inventory_uncancel_title_mobile)); + TextView textView3 = aVar.g().f189b; + m.checkNotNullExpressionValue(textView3, "binding.guildBoostUncancelBody"); + textView3.setText(aVar.getString(R.string.premium_guild_subscription_inventory_uncancel_description)); + } else if (m.areEqual(cVar2, k.c.d.a)) { + TextView textView4 = aVar.g().f; + m.checkNotNullExpressionValue(textView4, "binding.guildBoostUncancelHeader"); + textView4.setText(aVar.getString(R.string.premium_guild_subscription_inventory_uncancel_confirm_title)); + ImageView imageView = aVar.g().g; + m.checkNotNullExpressionValue(imageView, "binding.guildBoostUncancelImage"); + imageView.setVisibility(0); + TextView textView5 = aVar.g().f189b; + m.checkNotNullExpressionValue(textView5, "binding.guildBoostUncancelBody"); + textView5.setText(aVar.getString(R.string.premium_guild_subscription_inventory_uncancel_confirm_description)); + aVar.g().c.setText(aVar.getString(R.string.okay)); + } else if (cVar2 instanceof k.c.a) { + Integer num = ((k.c.a) cVar2).a; + if (num != null) { + b.a.d.m.i(aVar, num.intValue(), 0, 4); + } + aVar.dismiss(); + } + } + return Unit.a; + } + } + + /* compiled from: GuildBoostUncancelDialog.kt */ + public static final class e extends o implements Function0 { + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(a aVar) { + super(0); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Long mo1invoke() { + Bundle arguments = this.this$0.getArguments(); + Long valueOf = arguments != null ? Long.valueOf(arguments.getLong("extra_slot_id")) : null; + Objects.requireNonNull(valueOf, "null cannot be cast to non-null type com.discord.primitives.GuildBoostSlotId /* = kotlin.Long */"); + return Long.valueOf(valueOf.longValue()); + } + } + + /* compiled from: GuildBoostUncancelDialog.kt */ + public static final class f extends o implements Function0> { + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(a aVar) { + super(0); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public AppViewModel mo1invoke() { + return new k(((Number) this.this$0.n.getValue()).longValue(), null, null, null, null, 30); + } + } + + public a() { + super(R.layout.guild_boost_uncancel_dialog); + f fVar = new f(this); + f0 f0Var = new f0(this); + this.m = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(k.class), new k(3, f0Var), new h0(fVar)); + this.n = g.lazy(new e(this)); + } + + public final s g() { + return (s) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + g().h.setOnClickListener(new View$OnClickListenerC0000a(0, this)); + g().c.setOnClickListener(new View$OnClickListenerC0000a(1, this)); + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + super.onViewBoundOrOnResume(); + Observable q = ((k) this.m.getValue()).observeViewState().q(); + m.checkNotNullExpressionValue(q, "viewModel\n .obser… .distinctUntilChanged()"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(q, this, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/a/b.java b/app/src/main/java/b/a/a/a/b.java new file mode 100644 index 0000000000..502c9f0d13 --- /dev/null +++ b/app/src/main/java/b/a/a/a/b.java @@ -0,0 +1,296 @@ +package b.a.a.a; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentViewModelLazyKt; +import b.a.a.a.f; +import b.a.d.f0; +import b.a.d.h0; +import b.a.i.r; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.app.AppViewFlipper; +import com.discord.app.AppViewModel; +import com.discord.models.domain.ModelSubscription; +import com.discord.utilities.color.ColorCompat; +import com.discord.utilities.premium.GuildBoostUtils; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.time.TimeUtils; +import com.discord.utilities.view.extensions.ViewExtensions; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.views.LoadingButton; +import com.google.android.material.button.MaterialButton; +import d0.g; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import java.text.DateFormat; +import java.util.Objects; +import kotlin.Lazy; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +import rx.Observable; +/* compiled from: GuildBoostCancelDialog.kt */ +public final class b extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(b.class, "binding", "getBinding()Lcom/discord/databinding/GuildBoostCancelDialogBinding;", 0)}; + public static final C0001b k = new C0001b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + public final Lazy m; + public final Lazy n; + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + f fVar = (f) ((b) this.k).m.getValue(); + f.c viewState = fVar.getViewState(); + if ((viewState instanceof f.c.C0004f) || (viewState instanceof f.c.a)) { + return; + } + if ((viewState instanceof f.c.e) || (viewState instanceof f.c.d) || (viewState instanceof f.c.b)) { + fVar.updateViewState(new f.c.C0003c(null, 1)); + } + } else if (i == 1) { + f fVar2 = (f) ((b) this.k).m.getValue(); + f.c viewState2 = fVar2.getViewState(); + if ((viewState2 instanceof f.c.C0004f) || (viewState2 instanceof f.c.a)) { + return; + } + if ((viewState2 instanceof f.c.e) || (viewState2 instanceof f.c.d)) { + f.c viewState3 = fVar2.getViewState(); + ModelSubscription modelSubscription = viewState3 instanceof f.c.e ? ((f.c.e) viewState3).f : viewState3 instanceof f.c.d ? ((f.c.d) viewState3).f : null; + if (modelSubscription != null) { + fVar2.updateViewState(new f.c.a(modelSubscription)); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(GuildBoostUtils.INSTANCE.cancelGuildBoostSlot(fVar2.n, fVar2.k, modelSubscription, fVar2.l), fVar2, null, 2, null), f.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new g(fVar2, modelSubscription), 62, (Object) null); + } + } else if (viewState2 instanceof f.c.b) { + fVar2.updateViewState(new f.c.C0003c(null, 1)); + } + } else { + throw null; + } + } + } + + /* compiled from: GuildBoostCancelDialog.kt */ + /* renamed from: b.a.a.a.b$b reason: collision with other inner class name */ + public static final class C0001b { + public C0001b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: GuildBoostCancelDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, r.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildBoostCancelDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public r invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.active_subscription_progress; + ProgressBar progressBar = (ProgressBar) view2.findViewById(R.id.active_subscription_progress); + if (progressBar != null) { + i = R.id.guild_boost_cancel_body; + TextView textView = (TextView) view2.findViewById(R.id.guild_boost_cancel_body); + if (textView != null) { + i = R.id.guild_boost_cancel_confirm; + LoadingButton loadingButton = (LoadingButton) view2.findViewById(R.id.guild_boost_cancel_confirm); + if (loadingButton != null) { + i = R.id.guild_boost_cancel_error; + TextView textView2 = (TextView) view2.findViewById(R.id.guild_boost_cancel_error); + if (textView2 != null) { + i = R.id.guild_boost_cancel_flipper; + AppViewFlipper appViewFlipper = (AppViewFlipper) view2.findViewById(R.id.guild_boost_cancel_flipper); + if (appViewFlipper != null) { + i = R.id.guild_boost_cancel_header; + TextView textView3 = (TextView) view2.findViewById(R.id.guild_boost_cancel_header); + if (textView3 != null) { + i = R.id.guild_boost_cancel_nevermind; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_boost_cancel_nevermind); + if (materialButton != null) { + i = R.id.notice_header_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container); + if (linearLayout != null) { + return new r((LinearLayout) view2, progressBar, textView, loadingButton, textView2, appViewFlipper, textView3, materialButton, linearLayout); + } + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: GuildBoostCancelDialog.kt */ + public static final class d extends o implements Function1 { + public final /* synthetic */ b this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(b bVar) { + super(1); + this.this$0 = bVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(f.c cVar) { + f.c cVar2 = cVar; + b bVar = this.this$0; + m.checkNotNullExpressionValue(cVar2, "it"); + KProperty[] kPropertyArr = b.j; + TextView textView = bVar.g().d; + m.checkNotNullExpressionValue(textView, "binding.guildBoostCancelError"); + int i = 8; + textView.setVisibility(cVar2.a ? 0 : 8); + MaterialButton materialButton = bVar.g().g; + m.checkNotNullExpressionValue(materialButton, "binding.guildBoostCancelNevermind"); + if (cVar2.f42b) { + i = 0; + } + materialButton.setVisibility(i); + MaterialButton materialButton2 = bVar.g().g; + m.checkNotNullExpressionValue(materialButton2, "binding.guildBoostCancelNevermind"); + ViewExtensions.setEnabledAndAlpha$default(materialButton2, cVar2.c, 0.0f, 2, null); + bVar.setCancelable(cVar2.e); + bVar.g().c.setIsLoading(cVar2.d); + AppViewFlipper appViewFlipper = bVar.g().e; + m.checkNotNullExpressionValue(appViewFlipper, "binding.guildBoostCancelFlipper"); + appViewFlipper.setDisplayedChild(!(cVar2 instanceof f.c.C0004f) ? 1 : 0); + if (cVar2 instanceof f.c.e) { + TimeUtils timeUtils = TimeUtils.INSTANCE; + f.c.e eVar = (f.c.e) cVar2; + String currentPeriodEnd = eVar.f.getCurrentPeriodEnd(); + Context requireContext = bVar.requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + String renderUtcDate$default = TimeUtils.renderUtcDate$default(timeUtils, currentPeriodEnd, requireContext, (String) null, (DateFormat) null, 0, 28, (Object) null); + if (eVar.g) { + TextView textView2 = bVar.g().f183b; + m.checkNotNullExpressionValue(textView2, "binding.guildBoostCancelBody"); + b.a.k.b.n(textView2, R.string.premium_guild_subscription_cancel_body_inventory, new Object[]{renderUtcDate$default}, null, 4); + } else { + TextView textView3 = bVar.g().f183b; + m.checkNotNullExpressionValue(textView3, "binding.guildBoostCancelBody"); + b.a.k.b.n(textView3, R.string.premium_guild_subscription_cancel_body_guild, new Object[]{renderUtcDate$default}, null, 4); + } + bVar.g().c.setBackgroundColor(ColorCompat.getColor(bVar, (int) R.color.status_red_500)); + } else if (cVar2 instanceof f.c.b) { + TextView textView4 = bVar.g().f; + m.checkNotNullExpressionValue(textView4, "binding.guildBoostCancelHeader"); + textView4.setText(bVar.getString(R.string.premium_guild_subscription_cancel_title_pending_cancellation)); + TextView textView5 = bVar.g().f183b; + m.checkNotNullExpressionValue(textView5, "binding.guildBoostCancelBody"); + TimeUtils timeUtils2 = TimeUtils.INSTANCE; + String currentPeriodEnd2 = ((f.c.b) cVar2).f.getCurrentPeriodEnd(); + Context requireContext2 = bVar.requireContext(); + m.checkNotNullExpressionValue(requireContext2, "requireContext()"); + b.a.k.b.n(textView5, R.string.premium_guild_subscription_confirm_body, new Object[]{TimeUtils.renderUtcDate$default(timeUtils2, currentPeriodEnd2, requireContext2, (String) null, (DateFormat) null, 0, 28, (Object) null)}, null, 4); + bVar.g().c.setText(bVar.getString(R.string.okay)); + bVar.g().c.setBackgroundColor(ColorCompat.getThemedColor(bVar, (int) R.attr.color_brand_500)); + } else if (cVar2 instanceof f.c.C0003c) { + Integer num = ((f.c.C0003c) cVar2).f; + if (num != null) { + b.a.d.m.g(bVar.requireContext(), num.intValue(), 0, null, 12); + } + bVar.dismiss(); + } + return Unit.a; + } + } + + /* compiled from: GuildBoostCancelDialog.kt */ + public static final class e extends o implements Function0 { + public final /* synthetic */ b this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(b bVar) { + super(0); + this.this$0 = bVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Long mo1invoke() { + Bundle arguments = this.this$0.getArguments(); + Long valueOf = arguments != null ? Long.valueOf(arguments.getLong("extra_slot_id")) : null; + Objects.requireNonNull(valueOf, "null cannot be cast to non-null type com.discord.primitives.GuildBoostSlotId /* = kotlin.Long */"); + return Long.valueOf(valueOf.longValue()); + } + } + + /* compiled from: GuildBoostCancelDialog.kt */ + public static final class f extends o implements Function0> { + public final /* synthetic */ b this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(b bVar) { + super(0); + this.this$0 = bVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public AppViewModel mo1invoke() { + return new f(((Number) this.this$0.n.getValue()).longValue(), null, null, null, null, 30); + } + } + + public b() { + super(R.layout.guild_boost_cancel_dialog); + f fVar = new f(this); + f0 f0Var = new f0(this); + this.m = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(f.class), new k(2, f0Var), new h0(fVar)); + this.n = g.lazy(new e(this)); + } + + public final r g() { + return (r) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + g().g.setOnClickListener(new a(0, this)); + g().c.setOnClickListener(new a(1, this)); + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + super.onViewBoundOrOnResume(); + Observable q = ((f) this.m.getValue()).observeViewState().q(); + m.checkNotNullExpressionValue(q, "viewModel\n .obser… .distinctUntilChanged()"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(q, this, null, 2, null), b.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/a/c.java b/app/src/main/java/b/a/a/a/c.java new file mode 100644 index 0000000000..d00d6b1e1e --- /dev/null +++ b/app/src/main/java/b/a/a/a/c.java @@ -0,0 +1,146 @@ +package b.a.a.a; + +import android.content.Context; +import android.content.DialogInterface; +import android.os.Bundle; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import b.a.i.q; +import com.airbnb.lottie.LottieAnimationView; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.animations.LottieAnimationUtilsKt; +import com.discord.utilities.resources.StringResourceUtilsKt; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.ranges.IntRange; +import kotlin.reflect.KProperty; +/* compiled from: GuildBoostActivatedDialog.kt */ +public final class c extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/GuildBoostActivatedDialogBinding;", 0)}; + public static final IntRange k = new IntRange(540, 825); + public static final a l = new a(null); + public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + public Function0 n; + + /* compiled from: GuildBoostActivatedDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final void a(FragmentManager fragmentManager, Context context, String str, int i, boolean z2, Function0 function0) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(function0, "dismissListener"); + CharSequence h = z2 ? b.a.k.b.h(context, R.string.guild_subscription_purchase_modal_transferred_description_mobile1, new Object[0], null, 4) : b.a.k.b.h(context, R.string.guild_subscription_purchase_modal_activated_description_mobile1, new Object[0], null, 4); + CharSequence h2 = str == null ? b.a.k.b.h(context, R.string.guild_subscription_purchase_modal_activated_description_no_application, new Object[]{StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_activated_description_no_application_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4) : z2 ? b.a.k.b.h(context, R.string.guild_subscription_purchase_modal_transferred_description_mobile2, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_transferred_description_mobile2_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4) : b.a.k.b.h(context, R.string.guild_subscription_purchase_modal_activated_description_mobile2, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_activated_description_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4); + c cVar = new c(); + cVar.n = function0; + Bundle bundle = new Bundle(); + bundle.putCharSequence("extra_body1_text", h); + bundle.putCharSequence("extra_body2_text", h2); + cVar.setArguments(bundle); + cVar.show(fragmentManager, c.class.getName()); + } + } + + /* compiled from: GuildBoostActivatedDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, q.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildBoostActivatedDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public q invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.guild_boost_activated_body_1; + TextView textView = (TextView) view2.findViewById(R.id.guild_boost_activated_body_1); + if (textView != null) { + i = R.id.guild_boost_activated_body_2; + TextView textView2 = (TextView) view2.findViewById(R.id.guild_boost_activated_body_2); + if (textView2 != null) { + i = R.id.guild_boost_activated_lottie; + LottieAnimationView lottieAnimationView = (LottieAnimationView) view2.findViewById(R.id.guild_boost_activated_lottie); + if (lottieAnimationView != null) { + i = R.id.guild_boost_activated_ok; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_boost_activated_ok); + if (materialButton != null) { + return new q((LinearLayout) view2, textView, textView2, lottieAnimationView, materialButton); + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: GuildBoostActivatedDialog.kt */ + /* renamed from: b.a.a.a.c$c reason: collision with other inner class name */ + public static final class View$OnClickListenerC0002c implements View.OnClickListener { + public final /* synthetic */ c j; + + public View$OnClickListenerC0002c(c cVar) { + this.j = cVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.dismiss(); + } + } + + public c() { + super(R.layout.guild_boost_activated_dialog); + } + + public final q g() { + return (q) this.m.getValue((Fragment) this, j[0]); + } + + @Override // androidx.fragment.app.DialogFragment, android.content.DialogInterface.OnDismissListener + public void onDismiss(DialogInterface dialogInterface) { + m.checkNotNullParameter(dialogInterface, "dialog"); + Function0 function0 = this.n; + if (function0 != null) { + function0.mo1invoke(); + } + super.onDismiss(dialogInterface); + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + super.onViewBoundOrOnResume(); + TextView textView = g().f177b; + m.checkNotNullExpressionValue(textView, "binding.guildBoostActivatedBody1"); + Bundle arguments = getArguments(); + CharSequence charSequence = null; + textView.setText(arguments != null ? arguments.getCharSequence("extra_body1_text") : null); + TextView textView2 = g().c; + m.checkNotNullExpressionValue(textView2, "binding.guildBoostActivatedBody2"); + Bundle arguments2 = getArguments(); + if (arguments2 != null) { + charSequence = arguments2.getCharSequence("extra_body2_text"); + } + textView2.setText(charSequence); + g().e.setOnClickListener(new View$OnClickListenerC0002c(this)); + LottieAnimationView lottieAnimationView = g().d; + m.checkNotNullExpressionValue(lottieAnimationView, "binding.guildBoostActivatedLottie"); + LottieAnimationUtilsKt.loopFrom$default(lottieAnimationView, BaseTransientBottomBar.ANIMATION_FADE_DURATION, k, false, 4, null); + } +} diff --git a/app/src/main/java/b/a/a/a/d.java b/app/src/main/java/b/a/a/a/d.java new file mode 100644 index 0000000000..8aa6afd96f --- /dev/null +++ b/app/src/main/java/b/a/a/a/d.java @@ -0,0 +1,61 @@ +package b.a.a.a; + +import b.a.a.a.f; +import com.discord.R; +import com.discord.models.domain.ModelAppliedGuildBoost; +import com.discord.models.domain.ModelGuildBoostSlot; +import com.discord.models.domain.ModelSubscription; +import com.discord.stores.StoreGuildBoost; +import com.discord.stores.StoreSubscriptions; +import d0.t.u; +import d0.z.d.m; +import d0.z.d.o; +import java.util.List; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: GuildBoostCancelViewModel.kt */ +public final class d extends o implements Function1 { + public final /* synthetic */ f this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(f fVar) { + super(1); + this.this$0 = fVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(f.b bVar) { + Object obj; + ModelAppliedGuildBoost premiumGuildSubscription; + f.b bVar2 = bVar; + m.checkNotNullParameter(bVar2, "storeState"); + f fVar = this.this$0; + Objects.requireNonNull(fVar); + StoreGuildBoost.State state = bVar2.a; + StoreSubscriptions.SubscriptionsState subscriptionsState = bVar2.f41b; + if (!(fVar.getViewState() instanceof f.c.b) && !(fVar.getViewState() instanceof f.c.C0003c)) { + if ((state instanceof StoreGuildBoost.State.Loading) || (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Loading)) { + obj = f.c.C0004f.f; + } else if ((state instanceof StoreGuildBoost.State.Failure) || (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Failure)) { + obj = new f.c.C0003c(Integer.valueOf((int) R.string.premium_guild_subscription_cancel_error_mobile)); + } else if (!(state instanceof StoreGuildBoost.State.Loaded) || !(subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Loaded)) { + obj = new f.c.C0003c(Integer.valueOf((int) R.string.premium_guild_subscription_cancel_error_mobile)); + } else { + ModelSubscription modelSubscription = (ModelSubscription) u.firstOrNull((List) ((StoreSubscriptions.SubscriptionsState.Loaded) subscriptionsState).getSubscriptions()); + if (modelSubscription == null) { + obj = new f.c.C0003c(Integer.valueOf((int) R.string.premium_guild_subscription_cancel_error_mobile)); + } else if (fVar.getViewState() instanceof f.c.b) { + obj = new f.c.b(modelSubscription); + } else { + ModelGuildBoostSlot modelGuildBoostSlot = ((StoreGuildBoost.State.Loaded) state).getBoostSlotMap().get(Long.valueOf(fVar.k)); + obj = new f.c.e(modelSubscription, ((modelGuildBoostSlot == null || (premiumGuildSubscription = modelGuildBoostSlot.getPremiumGuildSubscription()) == null) ? null : Long.valueOf(premiumGuildSubscription.getGuildId())) != null); + } + } + fVar.updateViewState(obj); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/a/e.java b/app/src/main/java/b/a/a/a/e.java new file mode 100644 index 0000000000..ef7039b990 --- /dev/null +++ b/app/src/main/java/b/a/a/a/e.java @@ -0,0 +1,27 @@ +package b.a.a.a; + +import b.a.a.a.f; +import com.discord.stores.StoreGuildBoost; +import com.discord.stores.StoreSubscriptions; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.jvm.functions.Function2; +/* compiled from: GuildBoostCancelViewModel.kt */ +public final /* synthetic */ class e extends k implements Function2 { + public static final e j = new e(); + + public e() { + super(2, f.b.class, "", "(Lcom/discord/stores/StoreGuildBoost$State;Lcom/discord/stores/StoreSubscriptions$SubscriptionsState;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public f.b invoke(StoreGuildBoost.State state, StoreSubscriptions.SubscriptionsState subscriptionsState) { + StoreGuildBoost.State state2 = state; + StoreSubscriptions.SubscriptionsState subscriptionsState2 = subscriptionsState; + m.checkNotNullParameter(state2, "p1"); + m.checkNotNullParameter(subscriptionsState2, "p2"); + return new f.b(state2, subscriptionsState2); + } +} diff --git a/app/src/main/java/b/a/a/a/f.java b/app/src/main/java/b/a/a/a/f.java new file mode 100644 index 0000000000..8b1328323c --- /dev/null +++ b/app/src/main/java/b/a/a/a/f.java @@ -0,0 +1,323 @@ +package b.a.a.a; + +import android.content.Context; +import androidx.annotation.StringRes; +import com.discord.app.AppViewModel; +import com.discord.models.domain.ModelSubscription; +import com.discord.stores.StoreGuildBoost; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreSubscriptions; +import com.discord.utilities.analytics.Traits; +import com.discord.utilities.rest.RestAPI; +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import rx.Observable; +import rx.functions.Func2; +/* compiled from: GuildBoostCancelViewModel.kt */ +public final class f extends AppViewModel { + public static final a j = new a(null); + public final long k; + public final StoreGuildBoost l; + public final StoreSubscriptions m; + public final RestAPI n; + + /* compiled from: GuildBoostCancelViewModel.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: GuildBoostCancelViewModel.kt */ + public static final class b { + public final StoreGuildBoost.State a; + + /* renamed from: b reason: collision with root package name */ + public final StoreSubscriptions.SubscriptionsState f41b; + + public b(StoreGuildBoost.State state, StoreSubscriptions.SubscriptionsState subscriptionsState) { + m.checkNotNullParameter(state, "guildBoostState"); + m.checkNotNullParameter(subscriptionsState, "subscriptionState"); + this.a = state; + this.f41b = subscriptionsState; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return m.areEqual(this.a, bVar.a) && m.areEqual(this.f41b, bVar.f41b); + } + + public int hashCode() { + StoreGuildBoost.State state = this.a; + int i = 0; + int hashCode = (state != null ? state.hashCode() : 0) * 31; + StoreSubscriptions.SubscriptionsState subscriptionsState = this.f41b; + if (subscriptionsState != null) { + i = subscriptionsState.hashCode(); + } + return hashCode + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("StoreState(guildBoostState="); + R.append(this.a); + R.append(", subscriptionState="); + R.append(this.f41b); + R.append(")"); + return R.toString(); + } + } + + /* compiled from: GuildBoostCancelViewModel.kt */ + public static abstract class c { + public final boolean a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f42b; + public final boolean c; + public final boolean d; + public final boolean e; + + /* compiled from: GuildBoostCancelViewModel.kt */ + public static final class a extends c { + public final ModelSubscription f; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(ModelSubscription modelSubscription) { + super(false, true, false, true, false, null); + m.checkNotNullParameter(modelSubscription, Traits.Payment.Type.SUBSCRIPTION); + this.f = modelSubscription; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof a) && m.areEqual(this.f, ((a) obj).f); + } + return true; + } + + public int hashCode() { + ModelSubscription modelSubscription = this.f; + if (modelSubscription != null) { + return modelSubscription.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("CancelInProgress(subscription="); + R.append(this.f); + R.append(")"); + return R.toString(); + } + } + + /* compiled from: GuildBoostCancelViewModel.kt */ + public static final class b extends c { + public final ModelSubscription f; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(ModelSubscription modelSubscription) { + super(false, false, false, false, true, null); + m.checkNotNullParameter(modelSubscription, Traits.Payment.Type.SUBSCRIPTION); + this.f = modelSubscription; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof b) && m.areEqual(this.f, ((b) obj).f); + } + return true; + } + + public int hashCode() { + ModelSubscription modelSubscription = this.f; + if (modelSubscription != null) { + return modelSubscription.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Cancelled(subscription="); + R.append(this.f); + R.append(")"); + return R.toString(); + } + } + + /* compiled from: GuildBoostCancelViewModel.kt */ + /* renamed from: b.a.a.a.f$c$c reason: collision with other inner class name */ + public static final class C0003c extends c { + public final Integer f; + + public C0003c() { + this(null, 1); + } + + public C0003c(@StringRes Integer num) { + super(false, false, false, false, true, null); + this.f = num; + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public /* synthetic */ C0003c(Integer num, int i) { + this(null); + int i2 = i & 1; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof C0003c) && m.areEqual(this.f, ((C0003c) obj).f); + } + return true; + } + + public int hashCode() { + Integer num = this.f; + if (num != null) { + return num.hashCode(); + } + return 0; + } + + public String toString() { + return b.d.b.a.a.E(b.d.b.a.a.R("Dismiss(dismissStringId="), this.f, ")"); + } + } + + /* compiled from: GuildBoostCancelViewModel.kt */ + public static final class d extends c { + public final ModelSubscription f; + + public d(ModelSubscription modelSubscription) { + super(true, true, true, false, true, null); + this.f = modelSubscription; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof d) && m.areEqual(this.f, ((d) obj).f); + } + return true; + } + + public int hashCode() { + ModelSubscription modelSubscription = this.f; + if (modelSubscription != null) { + return modelSubscription.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("FailureCancelling(subscription="); + R.append(this.f); + R.append(")"); + return R.toString(); + } + } + + /* compiled from: GuildBoostCancelViewModel.kt */ + public static final class e extends c { + public final ModelSubscription f; + public final boolean g; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(ModelSubscription modelSubscription, boolean z2) { + super(false, true, true, false, true, null); + m.checkNotNullParameter(modelSubscription, Traits.Payment.Type.SUBSCRIPTION); + this.f = modelSubscription; + this.g = z2; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof e)) { + return false; + } + e eVar = (e) obj; + return m.areEqual(this.f, eVar.f) && this.g == eVar.g; + } + + public int hashCode() { + ModelSubscription modelSubscription = this.f; + int hashCode = (modelSubscription != null ? modelSubscription.hashCode() : 0) * 31; + boolean z2 = this.g; + if (z2) { + z2 = true; + } + int i = z2 ? 1 : 0; + int i2 = z2 ? 1 : 0; + int i3 = z2 ? 1 : 0; + return hashCode + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Loaded(subscription="); + R.append(this.f); + R.append(", isFromInventory="); + return b.d.b.a.a.L(R, this.g, ")"); + } + } + + /* compiled from: GuildBoostCancelViewModel.kt */ + /* renamed from: b.a.a.a.f$c$f reason: collision with other inner class name */ + public static final class C0004f extends c { + public static final C0004f f = new C0004f(); + + public C0004f() { + super(false, true, false, false, true, null); + } + } + + public c(boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, DefaultConstructorMarker defaultConstructorMarker) { + this.a = z2; + this.f42b = z3; + this.c = z4; + this.d = z5; + this.e = z6; + } + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + /* JADX WARNING: Unknown variable types count: 1 */ + public f(long j2, StoreGuildBoost storeGuildBoost, StoreSubscriptions storeSubscriptions, RestAPI restAPI, Observable observable, int i) { + super(c.C0004f.f); + Observable observable2; + StoreGuildBoost guildBoosts = (i & 2) != 0 ? StoreStream.Companion.getGuildBoosts() : null; + StoreSubscriptions subscriptions = (i & 4) != 0 ? StoreStream.Companion.getSubscriptions() : null; + RestAPI api = (i & 8) != 0 ? RestAPI.Companion.getApi() : null; + if ((i & 16) != 0) { + Observable observeGuildBoostState$default = StoreGuildBoost.observeGuildBoostState$default(guildBoosts, null, 1, null); + Observable observeSubscriptions = subscriptions.observeSubscriptions(); + e eVar = e.j; + observable2 = Observable.j(observeGuildBoostState$default, observeSubscriptions, (Func2) (eVar != null ? new h(eVar) : eVar)); + m.checkNotNullExpressionValue(observable2, "Observable.combineLatest… ::StoreState\n )"); + } else { + observable2 = null; + } + m.checkNotNullParameter(guildBoosts, "storeGuildBoost"); + m.checkNotNullParameter(subscriptions, "storeSubscriptions"); + m.checkNotNullParameter(api, "api"); + m.checkNotNullParameter(observable2, "storeObservable"); + this.k = j2; + this.l = guildBoosts; + this.m = subscriptions; + this.n = api; + guildBoosts.fetchUserGuildBoostState(); + subscriptions.fetchSubscriptions(); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), f.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/a/g.java b/app/src/main/java/b/a/a/a/g.java new file mode 100644 index 0000000000..cb30c669c3 --- /dev/null +++ b/app/src/main/java/b/a/a/a/g.java @@ -0,0 +1,41 @@ +package b.a.a.a; + +import b.a.a.a.f; +import com.discord.models.domain.ModelSubscription; +import com.discord.utilities.premium.GuildBoostUtils; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: GuildBoostCancelViewModel.kt */ +public final class g extends o implements Function1 { + public final /* synthetic */ ModelSubscription $subscription; + public final /* synthetic */ f this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(f fVar, ModelSubscription modelSubscription) { + super(1); + this.this$0 = fVar; + this.$subscription = modelSubscription; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + /* JADX WARNING: Code restructure failed: missing block: B:5:0x0012, code lost: + if (r3 != 2) goto L_0x002e; + */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(GuildBoostUtils.ModifyGuildBoostSlotResult modifyGuildBoostSlotResult) { + GuildBoostUtils.ModifyGuildBoostSlotResult modifyGuildBoostSlotResult2 = modifyGuildBoostSlotResult; + m.checkNotNullParameter(modifyGuildBoostSlotResult2, "result"); + int ordinal = modifyGuildBoostSlotResult2.ordinal(); + if (ordinal != 0) { + if (ordinal == 1) { + this.this$0.updateViewState(new f.c.d(this.$subscription)); + } + return Unit.a; + } + this.this$0.updateViewState(new f.c.b(this.$subscription)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/a/h.java b/app/src/main/java/b/a/a/a/h.java new file mode 100644 index 0000000000..5ec78d5010 --- /dev/null +++ b/app/src/main/java/b/a/a/a/h.java @@ -0,0 +1,17 @@ +package b.a.a.a; + +import kotlin.jvm.functions.Function2; +import rx.functions.Func2; +/* compiled from: GuildBoostCancelViewModel.kt */ +public final class h implements Func2 { + public final /* synthetic */ Function2 j; + + public h(Function2 function2) { + this.j = function2; + } + + @Override // rx.functions.Func2 + public final /* synthetic */ Object call(Object obj, Object obj2) { + return this.j.invoke(obj, obj2); + } +} diff --git a/app/src/main/java/b/a/a/a/i.java b/app/src/main/java/b/a/a/a/i.java new file mode 100644 index 0000000000..66f147967b --- /dev/null +++ b/app/src/main/java/b/a/a/a/i.java @@ -0,0 +1,47 @@ +package b.a.a.a; + +import b.a.a.a.k; +import com.discord.R; +import com.discord.models.domain.ModelSubscription; +import com.discord.stores.StoreSubscriptions; +import d0.t.u; +import d0.z.d.m; +import d0.z.d.o; +import java.util.List; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: GuildBoostUncancelViewModel.kt */ +public final class i extends o implements Function1 { + public final /* synthetic */ k this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(k kVar) { + super(1); + this.this$0 = kVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(k.b bVar) { + Object obj; + k.b bVar2 = bVar; + m.checkNotNullParameter(bVar2, "storeState"); + k kVar = this.this$0; + if (!(kVar.getViewState() instanceof k.c.d) && !(kVar.getViewState() instanceof k.c.a)) { + StoreSubscriptions.SubscriptionsState subscriptionsState = bVar2.a; + if (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Loading) { + obj = k.c.C0005c.a; + } else if (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Failure) { + obj = new k.c.a(Integer.valueOf((int) R.string.premium_guild_subscription_cancel_error_mobile)); + } else if (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Loaded) { + ModelSubscription modelSubscription = (ModelSubscription) u.firstOrNull((List) ((StoreSubscriptions.SubscriptionsState.Loaded) subscriptionsState).getSubscriptions()); + obj = modelSubscription == null ? new k.c.a(Integer.valueOf((int) R.string.premium_guild_subscription_cancel_error_mobile)) : new k.c.b(modelSubscription, false, false); + } else { + obj = new k.c.a(null, 1); + } + kVar.updateViewState(obj); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/a/j.java b/app/src/main/java/b/a/a/a/j.java new file mode 100644 index 0000000000..3174bd858d --- /dev/null +++ b/app/src/main/java/b/a/a/a/j.java @@ -0,0 +1,19 @@ +package b.a.a.a; + +import b.a.a.a.k; +import com.discord.stores.StoreSubscriptions; +import d0.z.d.m; +import j0.k.b; +/* compiled from: GuildBoostUncancelViewModel.kt */ +public final class j implements b { + public static final j j = new j(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public k.b call(StoreSubscriptions.SubscriptionsState subscriptionsState) { + StoreSubscriptions.SubscriptionsState subscriptionsState2 = subscriptionsState; + m.checkNotNullExpressionValue(subscriptionsState2, "it"); + return new k.b(subscriptionsState2); + } +} diff --git a/app/src/main/java/b/a/a/a/k.java b/app/src/main/java/b/a/a/a/k.java new file mode 100644 index 0000000000..33c5f2691d --- /dev/null +++ b/app/src/main/java/b/a/a/a/k.java @@ -0,0 +1,226 @@ +package b.a.a.a; + +import android.content.Context; +import com.discord.app.AppViewModel; +import com.discord.models.domain.ModelSubscription; +import com.discord.stores.StoreGuildBoost; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreSubscriptions; +import com.discord.utilities.analytics.Traits; +import com.discord.utilities.rest.RestAPI; +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import java.util.Objects; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import rx.Observable; +/* compiled from: GuildBoostUncancelViewModel.kt */ +public final class k extends AppViewModel { + public static final a j = new a(null); + public final long k; + public final StoreSubscriptions l; + public final StoreGuildBoost m; + public final RestAPI n; + + /* compiled from: GuildBoostUncancelViewModel.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: GuildBoostUncancelViewModel.kt */ + public static final class b { + public final StoreSubscriptions.SubscriptionsState a; + + public b(StoreSubscriptions.SubscriptionsState subscriptionsState) { + m.checkNotNullParameter(subscriptionsState, "subscriptionState"); + this.a = subscriptionsState; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof b) && m.areEqual(this.a, ((b) obj).a); + } + return true; + } + + public int hashCode() { + StoreSubscriptions.SubscriptionsState subscriptionsState = this.a; + if (subscriptionsState != null) { + return subscriptionsState.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("StoreState(subscriptionState="); + R.append(this.a); + R.append(")"); + return R.toString(); + } + } + + /* compiled from: GuildBoostUncancelViewModel.kt */ + public static abstract class c { + + /* compiled from: GuildBoostUncancelViewModel.kt */ + public static final class a extends c { + public final Integer a; + + public a() { + this(null, 1); + } + + public a(Integer num) { + super(null); + this.a = num; + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public /* synthetic */ a(Integer num, int i) { + this(null); + int i2 = i & 1; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof a) && m.areEqual(this.a, ((a) obj).a); + } + return true; + } + + public int hashCode() { + Integer num = this.a; + if (num != null) { + return num.hashCode(); + } + return 0; + } + + public String toString() { + return b.d.b.a.a.E(b.d.b.a.a.R("Dismiss(errorToastStringResId="), this.a, ")"); + } + } + + /* compiled from: GuildBoostUncancelViewModel.kt */ + public static final class b extends c { + public final ModelSubscription a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f43b; + public final boolean c; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(ModelSubscription modelSubscription, boolean z2, boolean z3) { + super(null); + m.checkNotNullParameter(modelSubscription, Traits.Payment.Type.SUBSCRIPTION); + this.a = modelSubscription; + this.f43b = z2; + this.c = z3; + } + + public static b a(b bVar, ModelSubscription modelSubscription, boolean z2, boolean z3, int i) { + ModelSubscription modelSubscription2 = (i & 1) != 0 ? bVar.a : null; + if ((i & 2) != 0) { + z2 = bVar.f43b; + } + if ((i & 4) != 0) { + z3 = bVar.c; + } + Objects.requireNonNull(bVar); + m.checkNotNullParameter(modelSubscription2, Traits.Payment.Type.SUBSCRIPTION); + return new b(modelSubscription2, z2, z3); + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return m.areEqual(this.a, bVar.a) && this.f43b == bVar.f43b && this.c == bVar.c; + } + + public int hashCode() { + ModelSubscription modelSubscription = this.a; + int hashCode = (modelSubscription != null ? modelSubscription.hashCode() : 0) * 31; + boolean z2 = this.f43b; + int i = 1; + if (z2) { + z2 = true; + } + int i2 = z2 ? 1 : 0; + int i3 = z2 ? 1 : 0; + int i4 = z2 ? 1 : 0; + int i5 = (hashCode + i2) * 31; + boolean z3 = this.c; + if (!z3) { + i = z3 ? 1 : 0; + } + return i5 + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Loaded(subscription="); + R.append(this.a); + R.append(", uncancelInProgress="); + R.append(this.f43b); + R.append(", error="); + return b.d.b.a.a.L(R, this.c, ")"); + } + } + + /* compiled from: GuildBoostUncancelViewModel.kt */ + /* renamed from: b.a.a.a.k$c$c reason: collision with other inner class name */ + public static final class C0005c extends c { + public static final C0005c a = new C0005c(); + + public C0005c() { + super(null); + } + } + + /* compiled from: GuildBoostUncancelViewModel.kt */ + public static final class d extends c { + public static final d a = new d(); + + public d() { + super(null); + } + } + + public c() { + } + + public c(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(long j2, StoreSubscriptions storeSubscriptions, StoreGuildBoost storeGuildBoost, RestAPI restAPI, Observable observable, int i) { + super(c.C0005c.a); + Observable observable2; + StoreSubscriptions subscriptions = (i & 2) != 0 ? StoreStream.Companion.getSubscriptions() : null; + StoreGuildBoost guildBoosts = (i & 4) != 0 ? StoreStream.Companion.getGuildBoosts() : null; + RestAPI api = (i & 8) != 0 ? RestAPI.Companion.getApi() : null; + if ((i & 16) != 0) { + observable2 = subscriptions.observeSubscriptions().F(j.j); + m.checkNotNullExpressionValue(observable2, "storeSubscriptions\n …toreState(it)\n }"); + } else { + observable2 = null; + } + m.checkNotNullParameter(subscriptions, "storeSubscriptions"); + m.checkNotNullParameter(guildBoosts, "storeGuildBoost"); + m.checkNotNullParameter(api, "restAPI"); + m.checkNotNullParameter(observable2, "storeObservable"); + this.k = j2; + this.l = subscriptions; + this.m = guildBoosts; + this.n = api; + subscriptions.fetchSubscriptions(); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), k.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new i(this), 62, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/a/l.java b/app/src/main/java/b/a/a/a/l.java new file mode 100644 index 0000000000..8f8a090d52 --- /dev/null +++ b/app/src/main/java/b/a/a/a/l.java @@ -0,0 +1,40 @@ +package b.a.a.a; + +import b.a.a.a.k; +import com.discord.utilities.premium.GuildBoostUtils; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: GuildBoostUncancelViewModel.kt */ +public final class l extends o implements Function1 { + public final /* synthetic */ k.c.b $loadedViewState; + public final /* synthetic */ k this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(k kVar, k.c.b bVar) { + super(1); + this.this$0 = kVar; + this.$loadedViewState = bVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + /* JADX WARNING: Code restructure failed: missing block: B:5:0x0012, code lost: + if (r6 != 2) goto L_0x002b; + */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(GuildBoostUtils.ModifyGuildBoostSlotResult modifyGuildBoostSlotResult) { + GuildBoostUtils.ModifyGuildBoostSlotResult modifyGuildBoostSlotResult2 = modifyGuildBoostSlotResult; + m.checkNotNullParameter(modifyGuildBoostSlotResult2, "result"); + int ordinal = modifyGuildBoostSlotResult2.ordinal(); + if (ordinal != 0) { + if (ordinal == 1) { + this.this$0.updateViewState(k.c.b.a(this.$loadedViewState, null, false, true, 3)); + } + return Unit.a; + } + this.this$0.updateViewState(k.c.d.a); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/b/a.java b/app/src/main/java/b/a/a/b/a.java new file mode 100644 index 0000000000..c65de83f69 --- /dev/null +++ b/app/src/main/java/b/a/a/b/a.java @@ -0,0 +1,155 @@ +package b.a.a.b; + +import android.app.Dialog; +import android.content.Context; +import android.view.View; +import android.view.Window; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import b.a.i.t; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.resources.StringResourceUtilsKt; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: UpgradeGuildBoostDialog.kt */ +public final class a extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(a.class, "binding", "getBinding()Lcom/discord/databinding/GuildBoostUpgradeDialogBinding;", 0)}; + public static final b k = new b(null); + public Function0 l; + public Function0 m; + public String n; + public boolean o; + public final FragmentViewBindingDelegate p = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + + /* compiled from: java-style lambda group */ + /* renamed from: b.a.a.b.a$a reason: collision with other inner class name */ + public static final class View$OnClickListenerC0006a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public View$OnClickListenerC0006a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + Function0 function0 = ((a) this.k).l; + if (function0 != null) { + function0.mo1invoke(); + } + ((a) this.k).dismiss(); + } else if (i == 1) { + Function0 function02 = ((a) this.k).m; + if (function02 != null) { + function02.mo1invoke(); + } + ((a) this.k).dismiss(); + } else if (i == 2) { + ((a) this.k).dismiss(); + } else { + throw null; + } + } + } + + /* compiled from: UpgradeGuildBoostDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: UpgradeGuildBoostDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, t.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildBoostUpgradeDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public t invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.continue_button; + TextView textView = (TextView) view2.findViewById(R.id.continue_button); + if (textView != null) { + i = R.id.premium_upsell_close; + ImageView imageView = (ImageView) view2.findViewById(R.id.premium_upsell_close); + if (imageView != null) { + i = R.id.premium_upsell_description; + TextView textView2 = (TextView) view2.findViewById(R.id.premium_upsell_description); + if (textView2 != null) { + i = R.id.premium_upsell_server_perk; + TextView textView3 = (TextView) view2.findViewById(R.id.premium_upsell_server_perk); + if (textView3 != null) { + i = R.id.upgrade_button; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.upgrade_button); + if (materialButton != null) { + return new t((RelativeLayout) view2, textView, imageView, textView2, textView3, materialButton); + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + public a() { + super(R.layout.guild_boost_upgrade_dialog); + } + + public final t g() { + return (t) this.p.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog, androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment + public void onStart() { + super.onStart(); + Dialog requireDialog = requireDialog(); + m.checkNotNullExpressionValue(requireDialog, "requireDialog()"); + Window window = requireDialog.getWindow(); + if (window != null) { + window.setLayout(-1, -2); + } + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + super.onViewBoundOrOnResume(); + if (this.l == null || this.m == null) { + dismiss(); + } + requireDialog().setCanceledOnTouchOutside(true); + TextView textView = g().d; + m.checkNotNullExpressionValue(textView, "binding.premiumUpsellDescription"); + b.a.k.b.n(textView, R.string.premium_upsell_feature_pretext, new Object[]{this.n}, null, 4); + TextView textView2 = g().e; + m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellServerPerk"); + Context requireContext = requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + b.a.k.b.n(textView2, R.string.premium_upsell_feature_free_guild_subscription, new Object[]{StringResourceUtilsKt.getI18nPluralString(requireContext, R.plurals.premium_upsell_feature_free_guild_subscription_numFreeGuildSubscriptions, 2, 2)}, null, 4); + TextView textView3 = g().f196b; + m.checkNotNullExpressionValue(textView3, "binding.continueButton"); + textView3.setVisibility(this.o ^ true ? 0 : 8); + g().f196b.setOnClickListener(new View$OnClickListenerC0006a(0, this)); + g().f.setOnClickListener(new View$OnClickListenerC0006a(1, this)); + g().c.setOnClickListener(new View$OnClickListenerC0006a(2, this)); + } +} diff --git a/app/src/main/java/b/a/a/b/b.java b/app/src/main/java/b/a/a/b/b.java new file mode 100644 index 0000000000..b3e1fcd357 --- /dev/null +++ b/app/src/main/java/b/a/a/b/b.java @@ -0,0 +1,205 @@ +package b.a.a.b; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import b.a.i.u; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.analytics.AnalyticsTracker; +import com.discord.utilities.analytics.Traits; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.widgets.servers.guildboost.WidgetGuildBoost; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: GuildBoostUpsellDialog.kt */ +public final class b extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(b.class, "binding", "getBinding()Lcom/discord/databinding/GuildBoostUpsellDialogBinding;", 0)}; + public static final C0007b k = new C0007b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + ((b) this.k).dismiss(); + } else if (i == 1) { + ((b) this.k).dismiss(); + } else { + throw null; + } + } + } + + /* compiled from: GuildBoostUpsellDialog.kt */ + /* renamed from: b.a.a.b.b$b reason: collision with other inner class name */ + public static final class C0007b { + public C0007b(DefaultConstructorMarker defaultConstructorMarker) { + } + + /* JADX WARNING: Removed duplicated region for block: B:17:0x0041 */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x004c */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x0076 */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x007c */ + /* JADX WARNING: Removed duplicated region for block: B:29:0x007f */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x0085 */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x0088 */ + public final void a(FragmentManager fragmentManager, long j, Long l, Integer num, Traits.Location location) { + String str; + Bundle I; + String page; + String str2; + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + b bVar = new b(); + String str3 = null; + if (num != null && num.intValue() == 1) { + str2 = Traits.Location.ObjType.TIER_1; + } else if (num != null && num.intValue() == 2) { + str2 = Traits.Location.ObjType.TIER_2; + } else if (num != null && num.intValue() == 3) { + str2 = Traits.Location.ObjType.TIER_3; + } else { + str = null; + I = b.d.b.a.a.I("extra_guild_id", j); + if (l != null) { + I.putLong("extra_channel_id", l.longValue()); + } + if (str != null) { + I.putString("extra_object_type", str); + } + if (!(location == null || (page = location.getPage()) == null)) { + I.putString("extra_page", page); + } + bVar.setArguments(I); + bVar.show(fragmentManager, b.class.getSimpleName()); + AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; + String v = b.d.b.a.a.v("Premium Guild Upsell Modal - Tier ", str); + String page2 = location == null ? location.getPage() : null; + String str4 = location == null ? location.get_object() : null; + if (location != null) { + str3 = location.getSection(); + } + analyticsTracker.openModal(v, new Traits.Location(page2, str3, str4, str, null, 16, null)); + } + str = str2; + I = b.d.b.a.a.I("extra_guild_id", j); + if (l != null) { + } + if (str != null) { + } + I.putString("extra_page", page); + bVar.setArguments(I); + bVar.show(fragmentManager, b.class.getSimpleName()); + AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; + String v = b.d.b.a.a.v("Premium Guild Upsell Modal - Tier ", str); + if (location == null) { + } + if (location == null) { + } + if (location != null) { + } + analyticsTracker.openModal(v, new Traits.Location(page2, str3, str4, str, null, 16, null)); + } + } + + /* compiled from: GuildBoostUpsellDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, u.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildBoostUpsellDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public u invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.guild_boost_upsell_close; + ImageView imageView = (ImageView) view2.findViewById(R.id.guild_boost_upsell_close); + if (imageView != null) { + i = R.id.guild_boost_upsell_close_button; + TextView textView = (TextView) view2.findViewById(R.id.guild_boost_upsell_close_button); + if (textView != null) { + i = R.id.guild_boost_upsell_subscribe_button; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_boost_upsell_subscribe_button); + if (materialButton != null) { + return new u((RelativeLayout) view2, imageView, textView, materialButton); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: GuildBoostUpsellDialog.kt */ + public static final class d implements View.OnClickListener { + public final /* synthetic */ b j; + public final /* synthetic */ long k; + public final /* synthetic */ Long l; + public final /* synthetic */ String m; + public final /* synthetic */ String n; + + public d(b bVar, long j, Long l, String str, String str2) { + this.j = bVar; + this.k = j; + this.l = l; + this.m = str; + this.n = str2; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + AnalyticsTracker.INSTANCE.guildBoostPromotionOpened(this.k, new Traits.Location(this.m, Traits.Location.Section.PREMIUM_GUILD_UPSELL_MODAL, Traits.Location.Obj.BUTTON_CTA, this.n, null, 16, null), this.l); + WidgetGuildBoost.Companion companion = WidgetGuildBoost.Companion; + Context requireContext = this.j.requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + companion.create(requireContext, this.k); + this.j.dismiss(); + } + } + + public b() { + super(R.layout.guild_boost_upsell_dialog); + } + + public final u g() { + return (u) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + long j2 = getArgumentsOrDefault().getLong("extra_guild_id", -1); + Bundle arguments = getArguments(); + Long valueOf = arguments != null ? Long.valueOf(arguments.getLong("extra_channel_id")) : null; + Bundle arguments2 = getArguments(); + String string = arguments2 != null ? arguments2.getString("extra_object_type") : null; + Bundle arguments3 = getArguments(); + g().d.setOnClickListener(new d(this, j2, valueOf, arguments3 != null ? arguments3.getString("extra_page") : null, string)); + g().f202b.setOnClickListener(new a(0, this)); + g().c.setOnClickListener(new a(1, this)); + } +} diff --git a/app/src/main/java/b/a/a/b/c.java b/app/src/main/java/b/a/a/b/c.java new file mode 100644 index 0000000000..0e1b0ebe61 --- /dev/null +++ b/app/src/main/java/b/a/a/b/c.java @@ -0,0 +1,453 @@ +package b.a.a.b; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.DrawableRes; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import androidx.viewpager2.adapter.FragmentStateAdapter; +import androidx.viewpager2.widget.ViewPager2; +import b.a.i.p5; +import b.a.i.u0; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.app.AppFragment; +import com.discord.utilities.analytics.AnalyticsTracker; +import com.discord.utilities.analytics.Traits; +import com.discord.utilities.view.recycler.ViewPager2ExtensionsKt; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.widgets.settings.premium.WidgetSettingsPremium; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.tabs.TabLayout; +import d0.t.n; +import d0.t.u; +import d0.z.d.k; +import d0.z.d.m; +import java.util.List; +import java.util.Objects; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: MultiValuePropPremiumUpsellDialog.kt */ +public final class c extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, f.j, null, 2, null); + public e m; + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + ((c) this.k).dismiss(); + } else if (i == 1) { + c.g((c) this.k); + } else if (i == 2) { + c.g((c) this.k); + } else { + throw null; + } + } + } + + /* compiled from: MultiValuePropPremiumUpsellDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + + public static void a(b bVar, FragmentManager fragmentManager, int i, String str, String str2, String str3, String str4, String str5, String str6, boolean z2, boolean z3, int i2) { + if ((i2 & 4) != 0) { + str = null; + } + if ((i2 & 8) != 0) { + str2 = null; + } + if ((i2 & 16) != 0) { + str3 = null; + } + if ((i2 & 32) != 0) { + str4 = null; + } + if ((i2 & 64) != 0) { + str5 = null; + } + if ((i2 & 128) != 0) { + str6 = null; + } + if ((i2 & 256) != 0) { + z2 = true; + } + if ((i2 & 512) != 0) { + z3 = true; + } + Objects.requireNonNull(bVar); + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + c cVar = new c(); + Bundle bundle = new Bundle(); + bundle.putInt("extra_page_number", i); + if (str != null) { + bundle.putString("extra_header_string", str); + } + if (str2 != null) { + bundle.putString("extra_body_text", str2); + } + bundle.putString("extra_page_name", str3); + bundle.putString("extra_section_name", str4); + bundle.putString("extra_object_name", str5); + bundle.putString("extra_object_type", str6); + bundle.putBoolean("extra_show_other_pages", z2); + bundle.putBoolean("extra_show_learn_more", z3); + cVar.setArguments(bundle); + cVar.show(fragmentManager, c.class.getName()); + } + } + + /* compiled from: MultiValuePropPremiumUpsellDialog.kt */ + /* renamed from: b.a.a.b.c$c reason: collision with other inner class name */ + public static final class C0008c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public CharSequence f44b; + public CharSequence c; + + public C0008c(@DrawableRes int i, CharSequence charSequence, CharSequence charSequence2) { + m.checkNotNullParameter(charSequence, "headerText"); + m.checkNotNullParameter(charSequence2, "bodyText"); + this.a = i; + this.f44b = charSequence; + this.c = charSequence2; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof C0008c)) { + return false; + } + C0008c cVar = (C0008c) obj; + return this.a == cVar.a && m.areEqual(this.f44b, cVar.f44b) && m.areEqual(this.c, cVar.c); + } + + public int hashCode() { + int i = this.a * 31; + CharSequence charSequence = this.f44b; + int i2 = 0; + int hashCode = (i + (charSequence != null ? charSequence.hashCode() : 0)) * 31; + CharSequence charSequence2 = this.c; + if (charSequence2 != null) { + i2 = charSequence2.hashCode(); + } + return hashCode + i2; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("UpsellData(imageResId="); + R.append(this.a); + R.append(", headerText="); + R.append(this.f44b); + R.append(", bodyText="); + return b.d.b.a.a.D(R, this.c, ")"); + } + } + + /* compiled from: MultiValuePropPremiumUpsellDialog.kt */ + public static final class d extends AppFragment { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(d.class, "binding", "getBinding()Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0)}; + public static final a k = new a(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: MultiValuePropPremiumUpsellDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: MultiValuePropPremiumUpsellDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, p5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public p5 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.premium_upsell_body; + TextView textView = (TextView) view2.findViewById(R.id.premium_upsell_body); + if (textView != null) { + i = R.id.premium_upsell_header; + TextView textView2 = (TextView) view2.findViewById(R.id.premium_upsell_header); + if (textView2 != null) { + i = R.id.premium_upsell_img; + ImageView imageView = (ImageView) view2.findViewById(R.id.premium_upsell_img); + if (imageView != null) { + return new p5((LinearLayout) view2, textView, textView2, imageView); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + public d() { + super(R.layout.widget_premium_upsell); + } + + public final p5 g() { + return (p5) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppFragment + public void onViewBoundOrOnResume() { + String string; + super.onViewBoundOrOnResume(); + ImageView imageView = g().d; + Bundle arguments = getArguments(); + imageView.setImageResource(arguments != null ? arguments.getInt("extra_image_id") : 0); + TextView textView = g().c; + m.checkNotNullExpressionValue(textView, "binding.premiumUpsellHeader"); + Bundle arguments2 = getArguments(); + textView.setText(arguments2 != null ? arguments2.getString("extra_header_string") : null); + TextView textView2 = g().f176b; + m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellBody"); + Bundle arguments3 = getArguments(); + textView2.setText((arguments3 == null || (string = arguments3.getString("extra_body_text")) == null) ? "" : b.a.k.b.l(string, new Object[0], null, 2)); + } + } + + /* compiled from: MultiValuePropPremiumUpsellDialog.kt */ + public static final class e extends FragmentStateAdapter { + public final List a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(Fragment fragment, List list) { + super(fragment); + m.checkNotNullParameter(fragment, "fragment"); + m.checkNotNullParameter(list, "pages"); + this.a = list; + } + + @Override // androidx.viewpager2.adapter.FragmentStateAdapter + public Fragment createFragment(int i) { + C0008c cVar = this.a.get(i); + d.a aVar = d.k; + int i2 = cVar.a; + CharSequence charSequence = cVar.f44b; + CharSequence charSequence2 = cVar.c; + Objects.requireNonNull(aVar); + m.checkNotNullParameter(charSequence, "headerText"); + m.checkNotNullParameter(charSequence2, "bodyText"); + Bundle bundle = new Bundle(); + bundle.putInt("extra_image_id", i2); + bundle.putString("extra_header_string", charSequence.toString()); + bundle.putString("extra_body_text", charSequence2.toString()); + d dVar = new d(); + dVar.setArguments(bundle); + return dVar; + } + + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public int getItemCount() { + return this.a.size(); + } + } + + /* compiled from: MultiValuePropPremiumUpsellDialog.kt */ + public static final /* synthetic */ class f extends k implements Function1 { + public static final f j = new f(); + + public f() { + super(1, u0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public u0 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.premium_upsell_button_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.premium_upsell_button_container); + if (linearLayout != null) { + i = R.id.premium_upsell_close; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.premium_upsell_close); + if (materialButton != null) { + i = R.id.premium_upsell_divider; + View findViewById = view2.findViewById(R.id.premium_upsell_divider); + if (findViewById != null) { + i = R.id.premium_upsell_dots; + TabLayout tabLayout = (TabLayout) view2.findViewById(R.id.premium_upsell_dots); + if (tabLayout != null) { + i = R.id.premium_upsell_get_premium; + MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.premium_upsell_get_premium); + if (materialButton2 != null) { + i = R.id.premium_upsell_learn_more; + MaterialButton materialButton3 = (MaterialButton) view2.findViewById(R.id.premium_upsell_learn_more); + if (materialButton3 != null) { + i = R.id.premium_upsell_viewpager; + ViewPager2 viewPager2 = (ViewPager2) view2.findViewById(R.id.premium_upsell_viewpager); + if (viewPager2 != null) { + return new u0((RelativeLayout) view2, linearLayout, materialButton, findViewById, tabLayout, materialButton2, materialButton3, viewPager2); + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + public c() { + super(R.layout.multi_value_prop_premium_upsell_dialog); + } + + public static final void g(c cVar) { + Bundle arguments = cVar.getArguments(); + String string = arguments != null ? arguments.getString("extra_page_name") : null; + Bundle arguments2 = cVar.getArguments(); + String string2 = arguments2 != null ? arguments2.getString("extra_section_name") : null; + Bundle arguments3 = cVar.getArguments(); + String string3 = arguments3 != null ? arguments3.getString("extra_object_name") : null; + Bundle arguments4 = cVar.getArguments(); + AnalyticsTracker.INSTANCE.premiumSettingsOpened(new Traits.Location(string, string2, string3, arguments4 != null ? arguments4.getString("extra_object_type") : null, null, 16, null)); + WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion; + Context requireContext = cVar.requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null); + cVar.dismiss(); + } + + public final u0 h() { + return (u0) this.l.getValue((Fragment) this, j[0]); + } + + public final boolean i() { + Bundle arguments = getArguments(); + return arguments != null && arguments.getBoolean("extra_show_learn_more"); + } + + public final boolean j() { + Bundle arguments = getArguments(); + return arguments != null && arguments.getBoolean("extra_show_other_pages"); + } + + @Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment + public void onCreate(Bundle bundle) { + String string; + String str; + super.onCreate(bundle); + AppDialog.hideKeyboard$default(this, null, 1, null); + String string2 = getString(R.string.premium_upsell_tag_passive_mobile); + m.checkNotNullExpressionValue(string2, "getString(R.string.premi…psell_tag_passive_mobile)"); + String string3 = getString(R.string.premium_upsell_tag_description_mobile); + m.checkNotNullExpressionValue(string3, "getString(R.string.premi…l_tag_description_mobile)"); + String string4 = getString(R.string.premium_upsell_emoji_passive_mobile); + m.checkNotNullExpressionValue(string4, "getString(R.string.premi…ell_emoji_passive_mobile)"); + String string5 = getString(R.string.premium_upsell_emoji_description_mobile); + m.checkNotNullExpressionValue(string5, "getString(R.string.premi…emoji_description_mobile)"); + String string6 = getString(R.string.premium_upsell_animated_emojis_passive_mobile); + m.checkNotNullExpressionValue(string6, "getString(R.string.premi…ed_emojis_passive_mobile)"); + String string7 = getString(R.string.premium_upsell_animated_emojis_description_mobile); + m.checkNotNullExpressionValue(string7, "getString(R.string.premi…mojis_description_mobile)"); + CharSequence k2 = b.a.k.b.k(this, R.string.premium_upsell_upload_passive_mobile, new Object[0], null, 4); + Object[] objArr = {b.a.k.b.k(this, R.string.file_upload_limit_standard, new Object[0], null, 4), b.a.k.b.k(this, R.string.file_upload_limit_premium_tier_2, new Object[0], null, 4)}; + String string8 = getString(R.string.premium_upsell_animated_avatar_passive_mobile); + m.checkNotNullExpressionValue(string8, "getString(R.string.premi…ed_avatar_passive_mobile)"); + String string9 = getString(R.string.premium_upsell_animated_avatar_description_mobile); + m.checkNotNullExpressionValue(string9, "getString(R.string.premi…vatar_description_mobile)"); + String string10 = getString(R.string.premium_upsell_badge_passive_mobile); + m.checkNotNullExpressionValue(string10, "getString(R.string.premi…ell_badge_passive_mobile)"); + String string11 = getString(R.string.premium_upsell_badge_description_mobile); + m.checkNotNullExpressionValue(string11, "getString(R.string.premi…badge_description_mobile)"); + List listOf = n.listOf((Object[]) new C0008c[]{new C0008c(R.drawable.img_tag_upsell, string2, string3), new C0008c(R.drawable.img_global_emoji_upsell, string4, string5), new C0008c(R.drawable.img_animated_emoji_upsell, string6, string7), new C0008c(R.drawable.img_upload_upsell, k2, b.a.k.b.k(this, R.string.premium_upsell_upload_description_mobile, objArr, null, 4)), new C0008c(R.drawable.img_avatar_upsell, string8, string9), new C0008c(R.drawable.img_badge_upsell, string10, string11)}); + Bundle arguments = getArguments(); + int i = arguments != null ? arguments.getInt("extra_page_number") : 0; + Bundle arguments2 = getArguments(); + String str2 = ""; + if (arguments2 != null && arguments2.containsKey("extra_header_string")) { + C0008c cVar = (C0008c) listOf.get(i); + Bundle arguments3 = getArguments(); + if (arguments3 == null || (str = arguments3.getString("extra_header_string")) == null) { + str = str2; + } + Objects.requireNonNull(cVar); + m.checkNotNullParameter(str, ""); + cVar.f44b = str; + } + Bundle arguments4 = getArguments(); + if (arguments4 != null && arguments4.containsKey("extra_body_text")) { + C0008c cVar2 = (C0008c) listOf.get(i); + Bundle arguments5 = getArguments(); + if (!(arguments5 == null || (string = arguments5.getString("extra_body_text")) == null)) { + str2 = string; + } + Objects.requireNonNull(cVar2); + m.checkNotNullParameter(str2, ""); + cVar2.c = str2; + } + C0008c cVar3 = (C0008c) listOf.get(i); + List mutableListOf = n.mutableListOf(cVar3); + if (j()) { + mutableListOf.addAll(u.minus(listOf, cVar3)); + } + this.m = new e(this, mutableListOf); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + ViewPager2 viewPager2 = h().f; + m.checkNotNullExpressionValue(viewPager2, "binding.premiumUpsellViewpager"); + e eVar = this.m; + if (eVar == null) { + m.throwUninitializedPropertyAccessException("pagerAdapter"); + } + viewPager2.setAdapter(eVar); + TabLayout tabLayout = h().c; + m.checkNotNullExpressionValue(tabLayout, "binding.premiumUpsellDots"); + int i = 8; + tabLayout.setVisibility(j() ? 0 : 8); + TabLayout tabLayout2 = h().c; + m.checkNotNullExpressionValue(tabLayout2, "binding.premiumUpsellDots"); + ViewPager2 viewPager22 = h().f; + m.checkNotNullExpressionValue(viewPager22, "binding.premiumUpsellViewpager"); + ViewPager2ExtensionsKt.setUpWithViewPager2$default(tabLayout2, viewPager22, null, 2, null); + h().f203b.setOnClickListener(new a(0, this)); + MaterialButton materialButton = h().e; + m.checkNotNullExpressionValue(materialButton, "binding.premiumUpsellLearnMore"); + materialButton.setVisibility(i() ? 0 : 8); + h().e.setOnClickListener(new a(1, this)); + MaterialButton materialButton2 = h().d; + m.checkNotNullExpressionValue(materialButton2, "binding.premiumUpsellGetPremium"); + if (!i()) { + i = 0; + } + materialButton2.setVisibility(i); + h().d.setOnClickListener(new a(2, this)); + } +} diff --git a/app/src/main/java/b/a/a/b/d.java b/app/src/main/java/b/a/a/b/d.java new file mode 100644 index 0000000000..ba1ebe5673 --- /dev/null +++ b/app/src/main/java/b/a/a/b/d.java @@ -0,0 +1,172 @@ +package b.a.a.b; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.DrawableRes; +import androidx.core.content.ContextCompat; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import b.a.i.n1; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.analytics.AnalyticsTracker; +import com.discord.utilities.analytics.Traits; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.views.premium.ShinyButton; +import com.discord.widgets.settings.premium.WidgetSettingsPremium; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import java.util.Objects; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: SingleValuePropPremiumUpsellDialog.kt */ +public final class d extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(d.class, "binding", "getBinding()Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + ((d) this.k).dismiss(); + } else if (i == 1) { + d dVar = (d) this.k; + KProperty[] kPropertyArr = d.j; + Objects.requireNonNull(dVar); + WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion; + Context requireContext = dVar.requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null); + dVar.dismiss(); + } else { + throw null; + } + } + } + + /* compiled from: SingleValuePropPremiumUpsellDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final void a(FragmentManager fragmentManager, AnalyticsTracker.PremiumUpsellType premiumUpsellType, @DrawableRes int i, String str, String str2, String str3, String str4, String str5) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + m.checkNotNullParameter(premiumUpsellType, "premiumUpsellType"); + d dVar = new d(); + Bundle bundle = new Bundle(); + bundle.putInt("extra_image_drawable_res", i); + bundle.putString("extra_header_text", str); + bundle.putString("extra_body_text", str2); + dVar.setArguments(bundle); + dVar.show(fragmentManager, d.class.getName()); + AnalyticsTracker.premiumUpsellViewed$default(AnalyticsTracker.INSTANCE, premiumUpsellType, null, null, new Traits.Source(str3, str4, str5, null, null, 24, null), 6, null); + } + } + + /* compiled from: SingleValuePropPremiumUpsellDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, n1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public n1 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.button_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.button_container); + if (linearLayout != null) { + i = R.id.close_button; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.close_button); + if (materialButton != null) { + i = R.id.content_background; + View findViewById = view2.findViewById(R.id.content_background); + if (findViewById != null) { + i = R.id.get_premium_button; + ShinyButton shinyButton = (ShinyButton) view2.findViewById(R.id.get_premium_button); + if (shinyButton != null) { + i = R.id.transparent_space; + View findViewById2 = view2.findViewById(R.id.transparent_space); + if (findViewById2 != null) { + i = R.id.upsell_body_text; + TextView textView = (TextView) view2.findViewById(R.id.upsell_body_text); + if (textView != null) { + i = R.id.upsell_header_text; + TextView textView2 = (TextView) view2.findViewById(R.id.upsell_header_text); + if (textView2 != null) { + i = R.id.value_prop_image; + ImageView imageView = (ImageView) view2.findViewById(R.id.value_prop_image); + if (imageView != null) { + return new n1((LinearLayout) view2, linearLayout, materialButton, findViewById, shinyButton, findViewById2, textView, textView2, imageView); + } + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + public d() { + super(R.layout.single_value_prop_premium_upsell_dialog); + } + + public final n1 g() { + return (n1) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + Bundle arguments = getArguments(); + String str = null; + Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("extra_image_drawable_res")) : null; + Bundle arguments2 = getArguments(); + String string = arguments2 != null ? arguments2.getString("extra_header_text") : null; + Bundle arguments3 = getArguments(); + if (arguments3 != null) { + str = arguments3.getString("extra_body_text"); + } + if (valueOf != null) { + g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), valueOf.intValue())); + } + if (string != null) { + TextView textView = g().e; + m.checkNotNullExpressionValue(textView, "binding.upsellHeaderText"); + textView.setText(string); + } + if (str != null) { + TextView textView2 = g().d; + m.checkNotNullExpressionValue(textView2, "binding.upsellBodyText"); + textView2.setText(str); + } + g().f161b.setOnClickListener(new a(0, this)); + g().c.setOnClickListener(new a(1, this)); + } +} diff --git a/app/src/main/java/b/a/a/b/e.java b/app/src/main/java/b/a/a/b/e.java new file mode 100644 index 0000000000..93fdbc6b6a --- /dev/null +++ b/app/src/main/java/b/a/a/b/e.java @@ -0,0 +1,154 @@ +package b.a.a.b; + +import android.app.Dialog; +import android.view.View; +import android.view.Window; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import b.a.i.d1; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import java.text.NumberFormat; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: UpgradePremiumYearlyDialog.kt */ +public final class e extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(e.class, "binding", "getBinding()Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0)}; + public static final b k = new b(null); + public Function0 l; + public Function0 m; + public String n; + public boolean o; + public final FragmentViewBindingDelegate p = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + Function0 function0 = ((e) this.k).l; + if (function0 != null) { + function0.mo1invoke(); + } + ((e) this.k).dismiss(); + } else if (i == 1) { + Function0 function02 = ((e) this.k).m; + if (function02 != null) { + function02.mo1invoke(); + } + ((e) this.k).dismiss(); + } else { + throw null; + } + } + } + + /* compiled from: UpgradePremiumYearlyDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: UpgradePremiumYearlyDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, d1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public d1 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.premium_upsell_header; + ImageView imageView = (ImageView) view2.findViewById(R.id.premium_upsell_header); + if (imageView != null) { + i = R.id.premium_upsell_yearly_description; + TextView textView = (TextView) view2.findViewById(R.id.premium_upsell_yearly_description); + if (textView != null) { + i = R.id.premium_upsell_yearly_title; + TextView textView2 = (TextView) view2.findViewById(R.id.premium_upsell_yearly_title); + if (textView2 != null) { + i = R.id.purchase_premium_monthly; + TextView textView3 = (TextView) view2.findViewById(R.id.purchase_premium_monthly); + if (textView3 != null) { + i = R.id.purchase_premium_yearly; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.purchase_premium_yearly); + if (materialButton != null) { + return new d1((LinearLayout) view2, imageView, textView, textView2, textView3, materialButton); + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + public e() { + super(R.layout.premium_upgrade_yearly_dialog); + } + + public final d1 g() { + return (d1) this.p.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog, androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment + public void onStart() { + super.onStart(); + Dialog requireDialog = requireDialog(); + m.checkNotNullExpressionValue(requireDialog, "requireDialog()"); + Window window = requireDialog.getWindow(); + if (window != null) { + window.setLayout(-1, -2); + } + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + super.onViewBoundOrOnResume(); + if (this.l == null || this.m == null) { + dismiss(); + } + requireDialog().setCanceledOnTouchOutside(true); + boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1"); + CharSequence k2 = b.a.k.b.k(this, z2 ? R.string.premium_tier_1 : R.string.premium_tier_2, new Object[0], null, 4); + TextView textView = g().d; + m.checkNotNullExpressionValue(textView, "binding.premiumUpsellYearlyTitle"); + b.a.k.b.n(textView, R.string.premium_upsell_yearly_title, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f)), k2}, null, 4); + TextView textView2 = g().c; + m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellYearlyDescription"); + b.a.k.b.n(textView2, R.string.premium_upsell_yearly_description, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f))}, null, 4); + MaterialButton materialButton = g().f; + m.checkNotNullExpressionValue(materialButton, "binding.purchasePremiumYearly"); + b.a.k.b.n(materialButton, R.string.premium_upsell_yearly_cta, new Object[]{this.n}, null, 4); + g().f95b.setImageResource(z2 ? R.drawable.img_premium_guild_subscription_purchase_header_tier_1 : R.drawable.img_premium_guild_subscription_purchase_header_tier_2); + TextView textView3 = g().e; + m.checkNotNullExpressionValue(textView3, "binding.purchasePremiumMonthly"); + textView3.setVisibility(this.o ^ true ? 0 : 8); + g().e.setOnClickListener(new a(0, this)); + g().f.setOnClickListener(new a(1, this)); + } +} diff --git a/app/src/main/java/b/a/a/b/f.java b/app/src/main/java/b/a/a/b/f.java new file mode 100644 index 0000000000..ca8a960ad3 --- /dev/null +++ b/app/src/main/java/b/a/a/b/f.java @@ -0,0 +1,153 @@ +package b.a.a.b; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.core.content.ContextCompat; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import b.a.i.b1; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.drawable.DrawableCompat; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: PremiumActivatedDialog.kt */ +public final class f extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(f.class, "binding", "getBinding()Lcom/discord/databinding/PremiumActivatedDialogBinding;", 0)}; + public static final a k = new a(null); + public Function0 l; + public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: PremiumActivatedDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final void a(FragmentManager fragmentManager, Function0 function0, boolean z2) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + m.checkNotNullParameter(function0, "onDismiss"); + f fVar = new f(); + fVar.l = function0; + Bundle bundle = new Bundle(); + bundle.putBoolean("ARG_IS_TIER_1", z2); + fVar.setArguments(bundle); + fVar.show(fragmentManager, f.class.getSimpleName()); + } + } + + /* compiled from: PremiumActivatedDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, b1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumActivatedDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public b1 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.premium_activated_confirm; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.premium_activated_confirm); + if (materialButton != null) { + i = R.id.premium_activated_description; + TextView textView = (TextView) view2.findViewById(R.id.premium_activated_description); + if (textView != null) { + i = R.id.premium_activated_header_background; + ImageView imageView = (ImageView) view2.findViewById(R.id.premium_activated_header_background); + if (imageView != null) { + i = R.id.premium_activated_logo; + ImageView imageView2 = (ImageView) view2.findViewById(R.id.premium_activated_logo); + if (imageView2 != null) { + i = R.id.premium_activated_title; + ImageView imageView3 = (ImageView) view2.findViewById(R.id.premium_activated_title); + if (imageView3 != null) { + i = R.id.premium_activated_wumpus; + ImageView imageView4 = (ImageView) view2.findViewById(R.id.premium_activated_wumpus); + if (imageView4 != null) { + return new b1((LinearLayout) view2, materialButton, textView, imageView, imageView2, imageView3, imageView4); + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: PremiumActivatedDialog.kt */ + public static final class c implements View.OnClickListener { + public final /* synthetic */ f j; + + public c(f fVar) { + this.j = fVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + Function0 function0 = this.j.l; + if (function0 != null) { + function0.mo1invoke(); + } + this.j.dismiss(); + } + } + + public f() { + super(R.layout.premium_activated_dialog); + } + + public final b1 g() { + return (b1) this.m.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment + public void onResume() { + int i; + super.onResume(); + if (this.l == null) { + dismiss(); + } + boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1"); + int i2 = z2 ? R.drawable.bg_premium_classic_subscription_header : R.drawable.bg_premium_subscription_header; + int i3 = z2 ? R.drawable.img_logo_nitro_classic : R.drawable.img_logo_discord_nitro; + int i4 = z2 ? R.drawable.img_wumpus_riding_wheel : R.drawable.img_wumpus_jetpack; + if (z2) { + Context requireContext = requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + i = DrawableCompat.getThemedDrawableRes$default(requireContext, (int) R.attr.img_premium_activated_tier_1, 0, 2, (Object) null); + } else { + Context requireContext2 = requireContext(); + m.checkNotNullExpressionValue(requireContext2, "requireContext()"); + i = DrawableCompat.getThemedDrawableRes$default(requireContext2, (int) R.attr.img_premium_activated_tier_2, 0, 2, (Object) null); + } + int i5 = z2 ? R.string.billing_switch_plan_confirm_tier_1 : R.string.billing_switch_plan_confirm_tier_2; + g().d.setBackgroundResource(i2); + g().e.setImageDrawable(ContextCompat.getDrawable(requireContext(), i3)); + g().g.setImageDrawable(ContextCompat.getDrawable(requireContext(), i4)); + ImageView imageView = g().g; + m.checkNotNullExpressionValue(imageView, "binding.premiumActivatedWumpus"); + imageView.setScaleX(z2 ? 1.0f : -1.0f); + g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), i)); + TextView textView = g().c; + m.checkNotNullExpressionValue(textView, "binding.premiumActivatedDescription"); + textView.setText(getString(i5)); + requireDialog().setCanceledOnTouchOutside(true); + g().f82b.setOnClickListener(new c(this)); + } +} diff --git a/app/src/main/java/b/a/a/b/g.java b/app/src/main/java/b/a/a/b/g.java new file mode 100644 index 0000000000..1b5c1d2abe --- /dev/null +++ b/app/src/main/java/b/a/a/b/g.java @@ -0,0 +1,103 @@ +package b.a.a.b; + +import android.os.Bundle; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import b.a.i.c1; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: PremiumAndGuildBoostActivatedDialog.kt */ +public final class g extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(g.class, "binding", "getBinding()Lcom/discord/databinding/PremiumAndGuildBoostActivatedDialogBinding;", 0)}; + public static final a k = new a(null); + public Function0 l; + public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: PremiumAndGuildBoostActivatedDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: PremiumAndGuildBoostActivatedDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, c1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumAndGuildBoostActivatedDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public c1 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.premium_activated_confirm; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.premium_activated_confirm); + if (materialButton != null) { + i = R.id.premium_and_guild_boost_activated_text; + TextView textView = (TextView) view2.findViewById(R.id.premium_and_guild_boost_activated_text); + if (textView != null) { + return new c1((LinearLayout) view2, materialButton, textView); + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: PremiumAndGuildBoostActivatedDialog.kt */ + public static final class c implements View.OnClickListener { + public final /* synthetic */ g j; + + public c(g gVar) { + this.j = gVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + Function0 function0 = this.j.l; + if (function0 != null) { + function0.mo1invoke(); + } + this.j.dismiss(); + } + } + + public g() { + super(R.layout.premium_and_guild_boost_activated_dialog); + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + String str; + super.onViewBoundOrOnResume(); + if (this.l == null) { + dismiss(); + } + Bundle arguments = getArguments(); + if (arguments == null || (str = arguments.getString("extra_plan_text")) == null) { + str = ""; + } + m.checkNotNullExpressionValue(str, "arguments?.getString(EXTRA_PLAN_NAME) ?: \"\""); + FragmentViewBindingDelegate fragmentViewBindingDelegate = this.m; + KProperty[] kPropertyArr = j; + TextView textView = ((c1) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).c; + m.checkNotNullExpressionValue(textView, "binding.premiumAndGuildBoostActivatedText"); + b.a.k.b.n(textView, R.string.billing_premium_and_premium_guild_plan_activated, new Object[]{str}, null, 4); + requireDialog().setCanceledOnTouchOutside(true); + ((c1) this.m.getValue((Fragment) this, kPropertyArr[0])).f88b.setOnClickListener(new c(this)); + } +} diff --git a/app/src/main/java/b/a/a/c.java b/app/src/main/java/b/a/a/c.java new file mode 100644 index 0000000000..269ae7707a --- /dev/null +++ b/app/src/main/java/b/a/a/c.java @@ -0,0 +1,250 @@ +package b.a.a; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.CompoundButton; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import b.a.i.a0; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.dialogs.ImageUploadDialog; +import com.discord.stores.StoreStream; +import com.discord.utilities.analytics.AnalyticsTracker; +import com.discord.utilities.analytics.Traits; +import com.discord.utilities.rest.FileUploadAlertType; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.widgets.settings.premium.WidgetSettingsPremium; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.switchmaterial.SwitchMaterial; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: ImageUploadFailedDialog.kt */ +public final class c extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/ImageUploadFailedDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, C0009c.j, null, 2, null); + public Function0 m; + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + Function0 function0 = ((c) this.k).m; + if (function0 != null) { + function0.mo1invoke(); + } + ((c) this.k).dismiss(); + } else if (i == 1) { + ((c) this.k).dismiss(); + } else if (i == 2) { + ((c) this.k).dismiss(); + } else if (i == 3) { + AnalyticsTracker.INSTANCE.premiumSettingsOpened(new Traits.Location(null, "File Upload Popout (w/ Compression)", null, null, null, 29, null)); + WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion; + m.checkNotNullExpressionValue(view, "it"); + Context context = view.getContext(); + m.checkNotNullExpressionValue(context, "it.context"); + WidgetSettingsPremium.Companion.launch$default(companion, context, null, null, 6, null); + ((c) this.k).dismiss(); + } else if (i == 4) { + KProperty[] kPropertyArr = c.j; + ((c) this.k).g().c.toggle(); + } else { + throw null; + } + } + } + + /* compiled from: ImageUploadFailedDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final void a(FragmentManager fragmentManager, boolean z2, int i, float f, float f2, Function0 function0, int i2, boolean z3, boolean z4, boolean z5) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + float f3 = (float) 1048576; + StoreStream.Companion.getAnalytics().trackFileUploadAlertViewed(z2 ? FileUploadAlertType.OVER_MAX_SIZE : FileUploadAlertType.NITRO_UPSELL, i2, (int) (f * f3), (int) (f3 * f2), z3, z4, z2); + c cVar = new c(); + cVar.m = function0; + Bundle bundle = new Bundle(); + bundle.putBoolean("PARAM_IS_USER_PREMIUM", z2); + bundle.putBoolean("PARAM_CAN_COMPRESS", !z4 && !z5); + bundle.putInt("PARAM_MAX_FILE_SIZE_MB", i); + cVar.setArguments(bundle); + cVar.show(fragmentManager, ImageUploadDialog.class.getName()); + } + } + + /* compiled from: ImageUploadFailedDialog.kt */ + /* renamed from: b.a.a.c$c reason: collision with other inner class name */ + public static final /* synthetic */ class C0009c extends k implements Function1 { + public static final C0009c j = new C0009c(); + + public C0009c() { + super(1, a0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/ImageUploadFailedDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public a0 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.chat_input_upload_too_large_center_file; + ImageView imageView = (ImageView) view2.findViewById(R.id.chat_input_upload_too_large_center_file); + if (imageView != null) { + i = R.id.image_upload_failed_cancel; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.image_upload_failed_cancel); + if (materialButton != null) { + i = R.id.image_upload_failed_compression_settings_checkbox; + SwitchMaterial switchMaterial = (SwitchMaterial) view2.findViewById(R.id.image_upload_failed_compression_settings_checkbox); + if (switchMaterial != null) { + i = R.id.image_upload_failed_compression_settings_container; + RelativeLayout relativeLayout = (RelativeLayout) view2.findViewById(R.id.image_upload_failed_compression_settings_container); + if (relativeLayout != null) { + i = R.id.image_upload_failed_divider; + View findViewById = view2.findViewById(R.id.image_upload_failed_divider); + if (findViewById != null) { + i = R.id.image_upload_failed_nitro; + MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.image_upload_failed_nitro); + if (materialButton2 != null) { + i = R.id.image_upload_failed_nitro_wrapper; + RelativeLayout relativeLayout2 = (RelativeLayout) view2.findViewById(R.id.image_upload_failed_nitro_wrapper); + if (relativeLayout2 != null) { + i = R.id.image_upload_failed_okay; + MaterialButton materialButton3 = (MaterialButton) view2.findViewById(R.id.image_upload_failed_okay); + if (materialButton3 != null) { + i = R.id.image_upload_failed_send_compress; + MaterialButton materialButton4 = (MaterialButton) view2.findViewById(R.id.image_upload_failed_send_compress); + if (materialButton4 != null) { + i = R.id.image_upload_failed_text; + TextView textView = (TextView) view2.findViewById(R.id.image_upload_failed_text); + if (textView != null) { + i = R.id.setting_label; + TextView textView2 = (TextView) view2.findViewById(R.id.setting_label); + if (textView2 != null) { + i = R.id.setting_subtext; + TextView textView3 = (TextView) view2.findViewById(R.id.setting_subtext); + if (textView3 != null) { + return new a0((RelativeLayout) view2, imageView, materialButton, switchMaterial, relativeLayout, findViewById, materialButton2, relativeLayout2, materialButton3, materialButton4, textView, textView2, textView3); + } + } + } + } + } + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: ImageUploadFailedDialog.kt */ + public static final class d implements CompoundButton.OnCheckedChangeListener { + public static final d a = new d(); + + @Override // android.widget.CompoundButton.OnCheckedChangeListener + public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) { + StoreStream.Companion.getUserSettings().setIsAutoImageCompressionEnabled(z2); + } + } + + public c() { + super(R.layout.image_upload_failed_dialog); + } + + public final a0 g() { + return (a0) this.l.getValue((Fragment) this, j[0]); + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0161: APUT (r3v2 java.lang.Object[]), (0 ??[int, short, byte, char]), (r10v7 java.lang.CharSequence) */ + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0181: APUT (r3v1 java.lang.Object[]), (0 ??[int, short, byte, char]), (r10v4 java.lang.CharSequence) */ + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + int i = getArgumentsOrDefault().getInt("PARAM_MAX_FILE_SIZE_MB"); + boolean z2 = getArgumentsOrDefault().getBoolean("PARAM_IS_USER_PREMIUM"); + boolean z3 = this.m != null && getArgumentsOrDefault().getBoolean("PARAM_CAN_COMPRESS"); + int i2 = 8; + int i3 = i != 8 ? i != 50 ? i != 100 ? 0 : R.string.file_upload_limit_premium_tier_2 : R.string.file_upload_limit_premium_tier_1 : R.string.file_upload_limit_standard; + MaterialButton materialButton = g().i; + m.checkNotNullExpressionValue(materialButton, "binding.imageUploadFailedSendCompress"); + materialButton.setVisibility(z3 ? 0 : 8); + g().i.setOnClickListener(new a(0, this)); + boolean z4 = z2 && !z3; + View view2 = g().e; + m.checkNotNullExpressionValue(view2, "binding.imageUploadFailedDivider"); + boolean z5 = !z4; + view2.setVisibility(z5 ? 0 : 8); + MaterialButton materialButton2 = g().h; + m.checkNotNullExpressionValue(materialButton2, "binding.imageUploadFailedOkay"); + materialButton2.setVisibility(z4 ? 0 : 8); + g().h.setOnClickListener(new a(1, this)); + MaterialButton materialButton3 = g().f73b; + m.checkNotNullExpressionValue(materialButton3, "binding.imageUploadFailedCancel"); + materialButton3.setVisibility(z5 ? 0 : 8); + g().f73b.setOnClickListener(new a(2, this)); + RelativeLayout relativeLayout = g().g; + m.checkNotNullExpressionValue(relativeLayout, "binding.imageUploadFailedNitroWrapper"); + relativeLayout.setVisibility(z2 ^ true ? 0 : 8); + g().f.setOnClickListener(new a(3, this)); + RelativeLayout relativeLayout2 = g().d; + m.checkNotNullExpressionValue(relativeLayout2, "binding.imageUploadFaile…pressionSettingsContainer"); + if (z3) { + i2 = 0; + } + relativeLayout2.setVisibility(i2); + g().d.setOnClickListener(new a(4, this)); + SwitchMaterial switchMaterial = g().c; + m.checkNotNullExpressionValue(switchMaterial, "binding.imageUploadFaile…mpressionSettingsCheckbox"); + switchMaterial.setChecked(StoreStream.Companion.getUserSettings().getIsAutoImageCompressionEnabled()); + g().c.setOnCheckedChangeListener(d.a); + TextView textView = g().j; + m.checkNotNullExpressionValue(textView, "binding.imageUploadFailedText"); + CharSequence charSequence = null; + if (z2 || !z3) { + Context context = getContext(); + if (context != null) { + Object[] objArr = new Object[1]; + Context context2 = getContext(); + objArr[0] = context2 != null ? b.a.k.b.h(context2, i3, new Object[0], null, 4) : null; + charSequence = b.a.k.b.h(context, R.string.upload_area_too_large_help, objArr, null, 4); + } + } else { + Context context3 = getContext(); + if (context3 != null) { + Object[] objArr2 = new Object[1]; + Context context4 = getContext(); + objArr2[0] = context4 != null ? b.a.k.b.h(context4, i3, new Object[0], null, 4) : null; + charSequence = b.a.k.b.h(context3, R.string.upload_area_too_large_help_mobile, objArr2, null, 4); + } + } + textView.setText(charSequence); + } +} diff --git a/app/src/main/java/b/a/a/d/a.java b/app/src/main/java/b/a/a/d/a.java new file mode 100644 index 0000000000..3dcd5f0378 --- /dev/null +++ b/app/src/main/java/b/a/a/d/a.java @@ -0,0 +1,265 @@ +package b.a.a.d; + +import android.content.Context; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentViewModelLazyKt; +import b.a.a.d.f; +import b.a.d.f0; +import b.a.d.h0; +import b.a.i.s1; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.app.AppViewModel; +import com.discord.models.user.User; +import com.discord.utilities.icon.IconUtils; +import com.discord.utilities.images.MGImages; +import com.discord.utilities.rest.RestAPI; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.widgets.user.UserNameFormatterKt; +import com.facebook.drawee.view.SimpleDraweeView; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Lazy; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +import rx.Observable; +import rx.subjects.PublishSubject; +/* compiled from: UserActionsDialog.kt */ +public final class a extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(a.class, "binding", "getBinding()Lcom/discord/databinding/UserActionsDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + public final Lazy m; + public final MGImages.DistinctChangeDetector n; + + /* compiled from: java-style lambda group */ + /* renamed from: b.a.a.d.a$a reason: collision with other inner class name */ + public static final class View$OnClickListenerC0010a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public View$OnClickListenerC0010a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + KProperty[] kPropertyArr = a.j; + f h = ((a) this.k).h(); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.addRelationship$default(h.m, "User Profile", h.l, 2, null, 8, null), false, 1, null), h, null, 2, null), f.class, (Context) null, (Function1) null, new h(h), (Function0) null, (Function0) null, new g(h), 54, (Object) null); + } else if (i == 1) { + KProperty[] kPropertyArr2 = a.j; + ((a) this.k).h().removeRelationship(R.string.user_has_been_unblocked); + } else if (i == 2) { + KProperty[] kPropertyArr3 = a.j; + ((a) this.k).h().removeRelationship(R.string.friend_has_been_deleted); + } else { + throw null; + } + } + } + + /* compiled from: UserActionsDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: UserActionsDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, s1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/UserActionsDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public s1 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.user_actions_dialog_avatar; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view2.findViewById(R.id.user_actions_dialog_avatar); + if (simpleDraweeView != null) { + i = R.id.user_actions_dialog_block_item; + TextView textView = (TextView) view2.findViewById(R.id.user_actions_dialog_block_item); + if (textView != null) { + i = R.id.user_actions_dialog_remove_friend_item; + TextView textView2 = (TextView) view2.findViewById(R.id.user_actions_dialog_remove_friend_item); + if (textView2 != null) { + i = R.id.user_actions_dialog_unblock_item; + TextView textView3 = (TextView) view2.findViewById(R.id.user_actions_dialog_unblock_item); + if (textView3 != null) { + i = R.id.user_actions_dialog_user_name; + TextView textView4 = (TextView) view2.findViewById(R.id.user_actions_dialog_user_name); + if (textView4 != null) { + return new s1((LinearLayout) view2, simpleDraweeView, textView, textView2, textView3, textView4); + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: ObservableExtensions.kt */ + public static final class d implements j0.k.b { + public static final d j = new d(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // j0.k.b + public Boolean call(Object obj) { + return Boolean.valueOf(obj instanceof f.d.a); + } + } + + /* compiled from: ObservableExtensions.kt */ + public static final class e implements j0.k.b { + public static final e j = new e(); + + @Override // j0.k.b + public final T call(Object obj) { + Objects.requireNonNull(obj, "null cannot be cast to non-null type com.discord.dialogs.useractions.UserActionsDialogViewModel.ViewState.Loaded"); + return (T) ((f.d.a) obj); + } + } + + /* compiled from: UserActionsDialog.kt */ + public static final /* synthetic */ class f extends k implements Function1 { + public f(a aVar) { + super(1, aVar, a.class, "updateView", "updateView(Lcom/discord/dialogs/useractions/UserActionsDialogViewModel$ViewState$Loaded;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(f.d.a aVar) { + f.d.a aVar2 = aVar; + m.checkNotNullParameter(aVar2, "p1"); + a aVar3 = (a) this.receiver; + KProperty[] kPropertyArr = a.j; + SimpleDraweeView simpleDraweeView = aVar3.g().f191b; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.userActionsDialogAvatar"); + IconUtils.setIcon$default(simpleDraweeView, IconUtils.getForUser$default(aVar2.a, true, null, 4, null), 0, (Function1) null, aVar3.n, 12, (Object) null); + TextView textView = aVar3.g().f; + m.checkNotNullExpressionValue(textView, "binding.userActionsDialogUserName"); + User user = aVar2.a; + String str = aVar2.f46b; + Context requireContext = aVar3.requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + textView.setText(UserNameFormatterKt.getSpannableForUserNameWithDiscrim(user, str, requireContext, R.attr.colorHeaderPrimary, R.attr.font_primary_semibold, R.integer.uikit_textsize_large_sp, R.attr.colorTextMuted, R.attr.font_primary_normal, R.integer.uikit_textsize_large_sp)); + TextView textView2 = aVar3.g().c; + m.checkNotNullExpressionValue(textView2, "binding.userActionsDialogBlockItem"); + int i = 8; + textView2.setVisibility(aVar2.c ? 0 : 8); + TextView textView3 = aVar3.g().e; + m.checkNotNullExpressionValue(textView3, "binding.userActionsDialogUnblockItem"); + textView3.setVisibility(aVar2.d ? 0 : 8); + TextView textView4 = aVar3.g().d; + m.checkNotNullExpressionValue(textView4, "binding.userActionsDialogRemoveFriendItem"); + if (aVar2.e) { + i = 0; + } + textView4.setVisibility(i); + return Unit.a; + } + } + + /* compiled from: UserActionsDialog.kt */ + public static final /* synthetic */ class g extends k implements Function1 { + public g(a aVar) { + super(1, aVar, a.class, "handleEvent", "handleEvent(Lcom/discord/dialogs/useractions/UserActionsDialogViewModel$Event;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(f.b bVar) { + f.b bVar2 = bVar; + m.checkNotNullParameter(bVar2, "p1"); + a aVar = (a) this.receiver; + KProperty[] kPropertyArr = a.j; + Objects.requireNonNull(aVar); + if (bVar2 instanceof f.b.C0011b) { + b.a.d.m.i(aVar, ((f.b.C0011b) bVar2).a, 0, 4); + aVar.dismiss(); + } else if (bVar2 instanceof f.b.a) { + b.a.d.m.i(aVar, ((f.b.a) bVar2).a, 0, 4); + aVar.dismiss(); + } + return Unit.a; + } + } + + /* compiled from: UserActionsDialog.kt */ + public static final class h extends o implements Function0> { + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(a aVar) { + super(0); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public AppViewModel mo1invoke() { + a aVar = this.this$0; + KProperty[] kPropertyArr = a.j; + return new f(aVar.getArgumentsOrDefault().getLong("com.discord.intent.extra.EXTRA_USER_ID", 0), this.this$0.getArgumentsOrDefault().getLong("com.discord.intent.extra.EXTRA_CHANNEL_ID", 0), null, null, 12); + } + } + + public a() { + super(R.layout.user_actions_dialog); + h hVar = new h(this); + f0 f0Var = new f0(this); + this.m = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(f.class), new k(4, f0Var), new h0(hVar)); + this.n = new MGImages.DistinctChangeDetector(); + } + + public final s1 g() { + return (s1) this.l.getValue((Fragment) this, j[0]); + } + + public final f h() { + return (f) this.m.getValue(); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + g().c.setOnClickListener(new View$OnClickListenerC0010a(0, this)); + g().e.setOnClickListener(new View$OnClickListenerC0010a(1, this)); + g().d.setOnClickListener(new View$OnClickListenerC0010a(2, this)); + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + super.onViewBoundOrOnResume(); + Observable F = h().observeViewState().x(d.j).F(e.j); + m.checkNotNullExpressionValue(F, "filter { it is T }.map { it as T }"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(F, this, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new f(this), 62, (Object) null); + PublishSubject publishSubject = h().k; + m.checkNotNullExpressionValue(publishSubject, "eventSubject"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(publishSubject, this, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new g(this), 62, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/d/b.java b/app/src/main/java/b/a/a/d/b.java new file mode 100644 index 0000000000..a1326976cc --- /dev/null +++ b/app/src/main/java/b/a/a/d/b.java @@ -0,0 +1,44 @@ +package b.a.a.d; + +import b.a.a.d.f; +import com.discord.R; +import com.discord.models.domain.ModelUserRelationship; +import com.discord.models.member.GuildMember; +import com.discord.models.user.User; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: UserActionsDialogViewModel.kt */ +public final class b extends o implements Function1 { + public final /* synthetic */ f this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(f fVar) { + super(1); + this.this$0 = fVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(f.c cVar) { + f.c cVar2 = cVar; + m.checkNotNullParameter(cVar2, "storeState"); + f fVar = this.this$0; + Objects.requireNonNull(fVar); + User user = cVar2.a; + if (user == null) { + fVar.k.k.onNext(new f.b.a(R.string.default_failure_to_perform_action_message)); + } else { + int type = ModelUserRelationship.getType(cVar2.f45b); + boolean z2 = type != 2; + boolean z3 = type == 2; + boolean z4 = type == 1; + GuildMember guildMember = cVar2.c; + fVar.updateViewState(new f.d.a(user, guildMember != null ? guildMember.getNick() : null, z2, z3, z4)); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/d/c.java b/app/src/main/java/b/a/a/d/c.java new file mode 100644 index 0000000000..cc5be909c6 --- /dev/null +++ b/app/src/main/java/b/a/a/d/c.java @@ -0,0 +1,21 @@ +package b.a.a.d; + +import com.discord.api.channel.Channel; +import com.discord.models.member.GuildMember; +import j0.k.b; +import java.util.Map; +/* compiled from: UserActionsDialogViewModel.kt */ +public final class c implements b, GuildMember> { + public final /* synthetic */ d j; + + public c(d dVar, Channel channel) { + this.j = dVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public GuildMember call(Map map) { + return (GuildMember) map.get(Long.valueOf(this.j.k)); + } +} diff --git a/app/src/main/java/b/a/a/d/d.java b/app/src/main/java/b/a/a/d/d.java new file mode 100644 index 0000000000..a392d5fb61 --- /dev/null +++ b/app/src/main/java/b/a/a/d/d.java @@ -0,0 +1,27 @@ +package b.a.a.d; + +import com.discord.api.channel.Channel; +import com.discord.models.member.GuildMember; +import com.discord.stores.StoreGuilds; +import d0.t.m0; +import j0.k.b; +import j0.l.e.k; +import rx.Observable; +/* compiled from: UserActionsDialogViewModel.kt */ +public final class d implements b> { + public final /* synthetic */ StoreGuilds j; + public final /* synthetic */ long k; + + public d(StoreGuilds storeGuilds, long j) { + this.j = storeGuilds; + this.k = j; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Observable call(Channel channel) { + Channel channel2 = channel; + return channel2 != null ? this.j.observeComputed(channel2.f(), m0.setOf(Long.valueOf(this.k))).F(new c(this, channel2)) : new k(null); + } +} diff --git a/app/src/main/java/b/a/a/d/e.java b/app/src/main/java/b/a/a/d/e.java new file mode 100644 index 0000000000..8e40e2ef52 --- /dev/null +++ b/app/src/main/java/b/a/a/d/e.java @@ -0,0 +1,17 @@ +package b.a.a.d; + +import b.a.a.d.f; +import com.discord.models.member.GuildMember; +import com.discord.models.user.User; +import rx.functions.Func3; +/* compiled from: UserActionsDialogViewModel.kt */ +public final class e implements Func3 { + public static final e a = new e(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */ + @Override // rx.functions.Func3 + public f.c call(User user, Integer num, GuildMember guildMember) { + return new f.c(user, num, guildMember); + } +} diff --git a/app/src/main/java/b/a/a/d/f.java b/app/src/main/java/b/a/a/d/f.java new file mode 100644 index 0000000000..1cd62104dc --- /dev/null +++ b/app/src/main/java/b/a/a/d/f.java @@ -0,0 +1,286 @@ +package b.a.a.d; + +import android.content.Context; +import androidx.annotation.StringRes; +import com.discord.R; +import com.discord.app.AppViewModel; +import com.discord.models.member.GuildMember; +import com.discord.models.user.User; +import com.discord.stores.StoreChannels; +import com.discord.stores.StoreGuilds; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreUser; +import com.discord.stores.StoreUserRelationships; +import com.discord.utilities.error.Error; +import com.discord.utilities.rest.RestAPI; +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import rx.Observable; +import rx.subjects.PublishSubject; +/* compiled from: UserActionsDialogViewModel.kt */ +public final class f extends AppViewModel { + public static final a j = new a(null); + public final PublishSubject k; + public final long l; + public final RestAPI m; + + /* compiled from: UserActionsDialogViewModel.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: UserActionsDialogViewModel.kt */ + public static abstract class b { + + /* compiled from: UserActionsDialogViewModel.kt */ + public static final class a extends b { + public final int a; + + public a(int i) { + super(null); + this.a = i; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof a) && this.a == ((a) obj).a; + } + return true; + } + + public int hashCode() { + return this.a; + } + + public String toString() { + return b.d.b.a.a.A(b.d.b.a.a.R("Failure(failureMessageStringRes="), this.a, ")"); + } + } + + /* compiled from: UserActionsDialogViewModel.kt */ + /* renamed from: b.a.a.d.f$b$b reason: collision with other inner class name */ + public static final class C0011b extends b { + public final int a; + + public C0011b(int i) { + super(null); + this.a = i; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof C0011b) && this.a == ((C0011b) obj).a; + } + return true; + } + + public int hashCode() { + return this.a; + } + + public String toString() { + return b.d.b.a.a.A(b.d.b.a.a.R("Success(successMessageStringRes="), this.a, ")"); + } + } + + public b() { + } + + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: UserActionsDialogViewModel.kt */ + public static final class c { + public final User a; + + /* renamed from: b reason: collision with root package name */ + public final Integer f45b; + public final GuildMember c; + + public c(User user, Integer num, GuildMember guildMember) { + this.a = user; + this.f45b = num; + this.c = guildMember; + } + } + + /* compiled from: UserActionsDialogViewModel.kt */ + public static abstract class d { + + /* compiled from: UserActionsDialogViewModel.kt */ + public static final class a extends d { + public final User a; + + /* renamed from: b reason: collision with root package name */ + public final String f46b; + public final boolean c; + public final boolean d; + public final boolean e; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(User user, String str, boolean z2, boolean z3, boolean z4) { + super(null); + m.checkNotNullParameter(user, "user"); + this.a = user; + this.f46b = str; + this.c = z2; + this.d = z3; + this.e = z4; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return m.areEqual(this.a, aVar.a) && m.areEqual(this.f46b, aVar.f46b) && this.c == aVar.c && this.d == aVar.d && this.e == aVar.e; + } + + public int hashCode() { + User user = this.a; + int i = 0; + int hashCode = (user != null ? user.hashCode() : 0) * 31; + String str = this.f46b; + if (str != null) { + i = str.hashCode(); + } + int i2 = (hashCode + i) * 31; + boolean z2 = this.c; + int i3 = 1; + if (z2) { + z2 = true; + } + int i4 = z2 ? 1 : 0; + int i5 = z2 ? 1 : 0; + int i6 = z2 ? 1 : 0; + int i7 = (i2 + i4) * 31; + boolean z3 = this.d; + if (z3) { + z3 = true; + } + int i8 = z3 ? 1 : 0; + int i9 = z3 ? 1 : 0; + int i10 = z3 ? 1 : 0; + int i11 = (i7 + i8) * 31; + boolean z4 = this.e; + if (!z4) { + i3 = z4 ? 1 : 0; + } + return i11 + i3; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Loaded(user="); + R.append(this.a); + R.append(", userNickname="); + R.append(this.f46b); + R.append(", showBlockItem="); + R.append(this.c); + R.append(", showUnblockItem="); + R.append(this.d); + R.append(", showRemoveFriendItem="); + return b.d.b.a.a.L(R, this.e, ")"); + } + } + + /* compiled from: UserActionsDialogViewModel.kt */ + public static final class b extends d { + public static final b a = new b(); + + public b() { + super(null); + } + } + + public d(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: UserActionsDialogViewModel.kt */ + public static final class e extends o implements Function1 { + public final /* synthetic */ int $successMessageStringRes; + public final /* synthetic */ f this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(f fVar, int i) { + super(1); + this.this$0 = fVar; + this.$successMessageStringRes = i; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Void r3) { + f fVar = this.this$0; + int i = this.$successMessageStringRes; + PublishSubject publishSubject = fVar.k; + publishSubject.k.onNext(new b.C0011b(i)); + return Unit.a; + } + } + + /* compiled from: UserActionsDialogViewModel.kt */ + /* renamed from: b.a.a.d.f$f reason: collision with other inner class name */ + public static final class C0012f extends o implements Function1 { + public final /* synthetic */ f this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0012f(f fVar) { + super(1); + this.this$0 = fVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Error error) { + m.checkNotNullParameter(error, "it"); + PublishSubject publishSubject = this.this$0.k; + publishSubject.k.onNext(new b.a(R.string.default_failure_to_perform_action_message)); + return Unit.a; + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(long j2, long j3, RestAPI restAPI, Observable observable, int i) { + super(d.b.a); + Observable observable2; + RestAPI api = (i & 4) != 0 ? RestAPI.Companion.getApi() : null; + if ((i & 8) != 0) { + StoreStream.Companion companion = StoreStream.Companion; + StoreUser users = companion.getUsers(); + StoreUserRelationships userRelationships = companion.getUserRelationships(); + StoreGuilds guilds = companion.getGuilds(); + StoreChannels channels = companion.getChannels(); + Observable observeUser = users.observeUser(j2); + Observable observe = userRelationships.observe(j2); + Observable q = channels.observeChannel(j3).Y(new d(guilds, j2)).q(); + m.checkNotNullExpressionValue(q, "storeChannels\n … .distinctUntilChanged()"); + observable2 = Observable.i(observeUser, observe, q, e.a).q(); + m.checkNotNullExpressionValue(observable2, "Observable.combineLatest… .distinctUntilChanged()"); + } else { + observable2 = null; + } + m.checkNotNullParameter(api, "restAPI"); + m.checkNotNullParameter(observable2, "storeObservable"); + this.l = j2; + this.m = api; + this.k = PublishSubject.k0(); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), f.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(this), 62, (Object) null); + } + + public final void removeRelationship(@StringRes int i) { + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(this.m.removeRelationship("User Profile", this.l), false, 1, null), this, null, 2, null), f.class, (Context) null, (Function1) null, new C0012f(this), (Function0) null, (Function0) null, new e(this, i), 54, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/d/g.java b/app/src/main/java/b/a/a/d/g.java new file mode 100644 index 0000000000..30b4c51bf2 --- /dev/null +++ b/app/src/main/java/b/a/a/d/g.java @@ -0,0 +1,27 @@ +package b.a.a.d; + +import b.a.a.d.f; +import com.discord.R; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.subjects.PublishSubject; +/* compiled from: UserActionsDialogViewModel.kt */ +public final class g extends o implements Function1 { + public final /* synthetic */ f this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(f fVar) { + super(1); + this.this$0 = fVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Void r3) { + PublishSubject publishSubject = this.this$0.k; + publishSubject.k.onNext(new f.b.C0011b(R.string.user_has_been_blocked)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/d/h.java b/app/src/main/java/b/a/a/d/h.java new file mode 100644 index 0000000000..7cfd960382 --- /dev/null +++ b/app/src/main/java/b/a/a/d/h.java @@ -0,0 +1,30 @@ +package b.a.a.d; + +import b.a.a.d.f; +import com.discord.R; +import com.discord.utilities.error.Error; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.subjects.PublishSubject; +/* compiled from: UserActionsDialogViewModel.kt */ +public final class h extends o implements Function1 { + public final /* synthetic */ f this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(f fVar) { + super(1); + this.this$0 = fVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Error error) { + m.checkNotNullParameter(error, "it"); + PublishSubject publishSubject = this.this$0.k; + publishSubject.k.onNext(new f.b.a(R.string.default_failure_to_perform_action_message)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/e.java b/app/src/main/java/b/a/a/e.java new file mode 100644 index 0000000000..b7e407fe6d --- /dev/null +++ b/app/src/main/java/b/a/a/e.java @@ -0,0 +1,178 @@ +package b.a.a; + +import android.os.Bundle; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import b.a.i.m1; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.dialogs.SimpleConfirmationDialogArgs; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.g; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Lazy; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: SimpleConfirmationDialog.kt */ +public final class e extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(e.class, "binding", "getBinding()Lcom/discord/databinding/SimpleConfirmationDialogBinding;", 0)}; + public static final c k = new c(null); + public final Lazy l = g.lazy(new b(this, "intent_args_key")); + public View.OnClickListener m; + public final FragmentViewBindingDelegate n = FragmentViewBindingDelegateKt.viewBinding$default(this, d.j, null, 2, null); + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + View.OnClickListener onClickListener = ((e) this.k).m; + if (onClickListener != null) { + onClickListener.onClick(view); + } + ((e) this.k).dismiss(); + } else if (i == 1) { + ((e) this.k).dismiss(); + } else { + throw null; + } + } + } + + /* compiled from: ArgUtils.kt */ + public static final class b extends o implements Function0 { + public final /* synthetic */ String $argsKey; + public final /* synthetic */ AppDialog $this_args; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(AppDialog appDialog, String str) { + super(0); + this.$this_args = appDialog; + this.$argsKey = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public SimpleConfirmationDialogArgs mo1invoke() { + Bundle arguments = this.$this_args.getArguments(); + SimpleConfirmationDialogArgs simpleConfirmationDialogArgs = null; + Object obj = arguments != null ? arguments.get(this.$argsKey) : null; + if (obj instanceof SimpleConfirmationDialogArgs) { + simpleConfirmationDialogArgs = obj; + } + SimpleConfirmationDialogArgs simpleConfirmationDialogArgs2 = simpleConfirmationDialogArgs; + if (simpleConfirmationDialogArgs2 != null) { + return simpleConfirmationDialogArgs2; + } + StringBuilder R = b.d.b.a.a.R("Missing args for class type "); + b.d.b.a.a.j0(SimpleConfirmationDialogArgs.class, R, " + key "); + throw new IllegalStateException(b.d.b.a.a.G(R, this.$argsKey, '!')); + } + } + + /* compiled from: SimpleConfirmationDialog.kt */ + public static final class c { + public c(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final e a(FragmentManager fragmentManager, SimpleConfirmationDialogArgs simpleConfirmationDialogArgs, View.OnClickListener onClickListener) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + m.checkNotNullParameter(simpleConfirmationDialogArgs, "args"); + m.checkNotNullParameter(onClickListener, "positiveClickListener"); + e eVar = new e(); + eVar.setArguments(b.c.a.a0.d.c2(simpleConfirmationDialogArgs)); + eVar.m = onClickListener; + eVar.show(fragmentManager, a0.getOrCreateKotlinClass(e.class).toString()); + return eVar; + } + } + + /* compiled from: SimpleConfirmationDialog.kt */ + public static final /* synthetic */ class d extends k implements Function1 { + public static final d j = new d(); + + public d() { + super(1, m1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SimpleConfirmationDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public m1 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.notice_header_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container); + if (linearLayout != null) { + i = R.id.simple_confirmation_dialog_description; + TextView textView = (TextView) view2.findViewById(R.id.simple_confirmation_dialog_description); + if (textView != null) { + i = R.id.simple_confirmation_dialog_negative; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.simple_confirmation_dialog_negative); + if (materialButton != null) { + i = R.id.simple_confirmation_dialog_positive; + MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.simple_confirmation_dialog_positive); + if (materialButton2 != null) { + i = R.id.simple_confirmation_dialog_title; + TextView textView2 = (TextView) view2.findViewById(R.id.simple_confirmation_dialog_title); + if (textView2 != null) { + return new m1((LinearLayout) view2, linearLayout, textView, materialButton, materialButton2, textView2); + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + public e() { + super(R.layout.simple_confirmation_dialog); + } + + public final SimpleConfirmationDialogArgs g() { + return (SimpleConfirmationDialogArgs) this.l.getValue(); + } + + public final m1 h() { + return (m1) this.n.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + super.onViewBoundOrOnResume(); + requireDialog().setCanceledOnTouchOutside(true); + h().d.setOnClickListener(new a(0, this)); + h().d.setText(g().l); + h().c.setOnClickListener(new a(1, this)); + MaterialButton materialButton = h().c; + m.checkNotNullExpressionValue(materialButton, "binding.simpleConfirmationDialogNegative"); + materialButton.setText(g().m); + TextView textView = h().e; + m.checkNotNullExpressionValue(textView, "binding.simpleConfirmationDialogTitle"); + b.a.k.b.a(textView, g().j); + TextView textView2 = h().f155b; + m.checkNotNullExpressionValue(textView2, "binding.simpleConfirmationDialogDescription"); + b.a.k.b.a(textView2, g().k); + } +} diff --git a/app/src/main/java/b/a/a/f/a/a.java b/app/src/main/java/b/a/a/f/a/a.java new file mode 100644 index 0000000000..0d53785d08 --- /dev/null +++ b/app/src/main/java/b/a/a/f/a/a.java @@ -0,0 +1,259 @@ +package b.a.a.f.a; + +import android.content.Context; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.RadioGroup; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentViewModelLazyKt; +import b.a.a.f.a.d; +import b.a.d.f0; +import b.a.d.h0; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.app.AppViewModel; +import com.discord.rtcconnection.audio.DiscordAudioManager; +import com.discord.utilities.color.ColorCompat; +import com.discord.utilities.color.ColorCompatKt; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.radiobutton.MaterialRadioButton; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +import kotlin.Lazy; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +import rx.Observable; +/* compiled from: AudioOutputSelectionDialog.kt */ +public final class a extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(a.class, "binding", "getBinding()Lcom/discord/databinding/AudioOutputSelectionDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + public final Lazy m; + + /* compiled from: java-style lambda group */ + /* renamed from: b.a.a.f.a.a$a reason: collision with other inner class name */ + public static final class View$OnClickListenerC0013a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public View$OnClickListenerC0013a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + a.h((a) this.k).j.selectOutputDevice(DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET); + a.g((a) this.k); + } else if (i == 1) { + a.h((a) this.k).j.selectOutputDevice(DiscordAudioManager.DeviceTypes.SPEAKERPHONE); + a.g((a) this.k); + } else if (i == 2) { + a.h((a) this.k).j.selectOutputDevice(DiscordAudioManager.DeviceTypes.WIRED_HEADSET); + a.g((a) this.k); + } else if (i == 3) { + a.h((a) this.k).j.selectOutputDevice(DiscordAudioManager.DeviceTypes.EARPIECE); + a.g((a) this.k); + } else { + throw null; + } + } + } + + /* compiled from: AudioOutputSelectionDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: AudioOutputSelectionDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, b.a.i.b.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AudioOutputSelectionDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public b.a.i.b invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.audio_output_selection_bluetooth_radio; + MaterialRadioButton materialRadioButton = (MaterialRadioButton) view2.findViewById(R.id.audio_output_selection_bluetooth_radio); + if (materialRadioButton != null) { + i = R.id.audio_output_selection_dialog_header; + TextView textView = (TextView) view2.findViewById(R.id.audio_output_selection_dialog_header); + if (textView != null) { + i = R.id.audio_output_selection_dialog_radio_group; + RadioGroup radioGroup = (RadioGroup) view2.findViewById(R.id.audio_output_selection_dialog_radio_group); + if (radioGroup != null) { + i = R.id.audio_output_selection_earpiece_radio; + MaterialRadioButton materialRadioButton2 = (MaterialRadioButton) view2.findViewById(R.id.audio_output_selection_earpiece_radio); + if (materialRadioButton2 != null) { + i = R.id.audio_output_selection_speaker_radio; + MaterialRadioButton materialRadioButton3 = (MaterialRadioButton) view2.findViewById(R.id.audio_output_selection_speaker_radio); + if (materialRadioButton3 != null) { + i = R.id.audio_output_selection_wired_radio; + MaterialRadioButton materialRadioButton4 = (MaterialRadioButton) view2.findViewById(R.id.audio_output_selection_wired_radio); + if (materialRadioButton4 != null) { + return new b.a.i.b((LinearLayout) view2, materialRadioButton, textView, radioGroup, materialRadioButton2, materialRadioButton3, materialRadioButton4); + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: AudioOutputSelectionDialog.kt */ + public static final class d extends o implements Function1 { + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(a aVar) { + super(1); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(d.a aVar) { + int i; + d.a aVar2 = aVar; + m.checkNotNullParameter(aVar2, "viewState"); + a aVar3 = this.this$0; + Objects.requireNonNull(aVar3); + m.checkNotNullParameter(aVar2, "viewState"); + if (!(aVar2 instanceof d.a.b) && (aVar2 instanceof d.a.C0014a)) { + d.a.C0014a aVar4 = (d.a.C0014a) aVar2; + int ordinal = aVar4.a.ordinal(); + if (ordinal == 2) { + MaterialRadioButton materialRadioButton = aVar3.i().e; + m.checkNotNullExpressionValue(materialRadioButton, "binding.audioOutputSelectionSpeakerRadio"); + i = materialRadioButton.getId(); + } else if (ordinal == 3) { + MaterialRadioButton materialRadioButton2 = aVar3.i().f; + m.checkNotNullExpressionValue(materialRadioButton2, "binding.audioOutputSelectionWiredRadio"); + i = materialRadioButton2.getId(); + } else if (ordinal == 4) { + MaterialRadioButton materialRadioButton3 = aVar3.i().d; + m.checkNotNullExpressionValue(materialRadioButton3, "binding.audioOutputSelectionEarpieceRadio"); + i = materialRadioButton3.getId(); + } else if (ordinal == 5) { + MaterialRadioButton materialRadioButton4 = aVar3.i().f80b; + m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionBluetoothRadio"); + i = materialRadioButton4.getId(); + } + aVar3.i().c.check(i); + MaterialRadioButton materialRadioButton5 = aVar3.i().f80b; + m.checkNotNullExpressionValue(materialRadioButton5, "binding.audioOutputSelectionBluetoothRadio"); + int i2 = 0; + materialRadioButton5.setVisibility(aVar4.f47b ? 0 : 8); + MaterialRadioButton materialRadioButton6 = aVar3.i().f80b; + m.checkNotNullExpressionValue(materialRadioButton6, "binding.audioOutputSelectionBluetoothRadio"); + String str = aVar4.c; + if (str == null) { + str = aVar3.getString(R.string.audio_devices_bluetooth); + } + materialRadioButton6.setText(str); + MaterialRadioButton materialRadioButton7 = aVar3.i().e; + m.checkNotNullExpressionValue(materialRadioButton7, "binding.audioOutputSelectionSpeakerRadio"); + materialRadioButton7.setVisibility(aVar4.d ? 0 : 8); + MaterialRadioButton materialRadioButton8 = aVar3.i().f; + m.checkNotNullExpressionValue(materialRadioButton8, "binding.audioOutputSelectionWiredRadio"); + materialRadioButton8.setVisibility(aVar4.e ? 0 : 8); + MaterialRadioButton materialRadioButton9 = aVar3.i().d; + m.checkNotNullExpressionValue(materialRadioButton9, "binding.audioOutputSelectionEarpieceRadio"); + if (!aVar4.f) { + i2 = 8; + } + materialRadioButton9.setVisibility(i2); + } + return Unit.a; + } + } + + /* compiled from: AudioOutputSelectionDialog.kt */ + public static final class e extends o implements Function0> { + public static final e j = new e(); + + public e() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public AppViewModel mo1invoke() { + return new d(null, null, 3); + } + } + + public a() { + super(R.layout.audio_output_selection_dialog); + e eVar = e.j; + f0 f0Var = new f0(this); + this.m = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(d.class), new k(5, f0Var), new h0(eVar)); + } + + public static final void g(a aVar) { + Objects.requireNonNull(aVar); + Observable d02 = Observable.d0(300, TimeUnit.MILLISECONDS); + m.checkNotNullExpressionValue(d02, "Observable\n .time…S, TimeUnit.MILLISECONDS)"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(d02, aVar, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(aVar), 62, (Object) null); + } + + public static final d h(a aVar) { + return (d) aVar.m.getValue(); + } + + public final b.a.i.b i() { + return (b.a.i.b) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + int themedColor = ColorCompat.getThemedColor(view, (int) R.attr.colorInteractiveNormal); + MaterialRadioButton materialRadioButton = i().f80b; + m.checkNotNullExpressionValue(materialRadioButton, "binding.audioOutputSelectionBluetoothRadio"); + ColorCompatKt.setDrawableColor(materialRadioButton, themedColor); + MaterialRadioButton materialRadioButton2 = i().e; + m.checkNotNullExpressionValue(materialRadioButton2, "binding.audioOutputSelectionSpeakerRadio"); + ColorCompatKt.setDrawableColor(materialRadioButton2, themedColor); + MaterialRadioButton materialRadioButton3 = i().f; + m.checkNotNullExpressionValue(materialRadioButton3, "binding.audioOutputSelectionWiredRadio"); + ColorCompatKt.setDrawableColor(materialRadioButton3, themedColor); + MaterialRadioButton materialRadioButton4 = i().d; + m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionEarpieceRadio"); + ColorCompatKt.setDrawableColor(materialRadioButton4, themedColor); + i().f80b.setOnClickListener(new View$OnClickListenerC0013a(0, this)); + i().e.setOnClickListener(new View$OnClickListenerC0013a(1, this)); + i().f.setOnClickListener(new View$OnClickListenerC0013a(2, this)); + i().d.setOnClickListener(new View$OnClickListenerC0013a(3, this)); + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + super.onViewBoundOrOnResume(); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(((d) this.m.getValue()).observeViewState(), this, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/f/a/b.java b/app/src/main/java/b/a/a/f/a/b.java new file mode 100644 index 0000000000..ad7121b1e8 --- /dev/null +++ b/app/src/main/java/b/a/a/f/a/b.java @@ -0,0 +1,23 @@ +package b.a.a.f.a; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: AudioOutputSelectionDialog.kt */ +public final class b extends o implements Function1 { + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(a aVar) { + super(1); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Long l) { + this.this$0.requireDialog().cancel(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/f/a/c.java b/app/src/main/java/b/a/a/f/a/c.java new file mode 100644 index 0000000000..ef2cd1924f --- /dev/null +++ b/app/src/main/java/b/a/a/f/a/c.java @@ -0,0 +1,36 @@ +package b.a.a.f.a; + +import b.a.a.f.a.d; +import com.discord.rtcconnection.audio.DiscordAudioManager; +import com.discord.stores.StoreAudioManagerV2; +import d0.z.d.m; +import d0.z.d.o; +import java.util.List; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: AudioOutputSelectionDialogViewModel.kt */ +public final class c extends o implements Function1 { + public final /* synthetic */ d this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(d dVar) { + super(1); + this.this$0 = dVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(StoreAudioManagerV2.State state) { + StoreAudioManagerV2.State state2 = state; + m.checkNotNullParameter(state2, "storeState"); + d dVar = this.this$0; + Objects.requireNonNull(dVar); + List audioDevices = state2.getAudioDevices(); + DiscordAudioManager.DeviceTypes activeAudioDevice = state2.getActiveAudioDevice(); + DiscordAudioManager.DeviceTypes deviceTypes = DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET; + dVar.updateViewState(new d.a.C0014a(activeAudioDevice, audioDevices.get(deviceTypes.getValue()).f2746b, audioDevices.get(deviceTypes.getValue()).d, audioDevices.get(DiscordAudioManager.DeviceTypes.SPEAKERPHONE.getValue()).f2746b, audioDevices.get(DiscordAudioManager.DeviceTypes.WIRED_HEADSET.getValue()).f2746b, audioDevices.get(DiscordAudioManager.DeviceTypes.EARPIECE.getValue()).f2746b)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/f/a/d.java b/app/src/main/java/b/a/a/f/a/d.java new file mode 100644 index 0000000000..286c8c5fd0 --- /dev/null +++ b/app/src/main/java/b/a/a/f/a/d.java @@ -0,0 +1,143 @@ +package b.a.a.f.a; + +import android.content.Context; +import com.discord.app.AppViewModel; +import com.discord.rtcconnection.audio.DiscordAudioManager; +import com.discord.stores.StoreAudioManagerV2; +import com.discord.stores.StoreStream; +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import rx.Observable; +/* compiled from: AudioOutputSelectionDialogViewModel.kt */ +public final class d extends AppViewModel { + public final StoreAudioManagerV2 j; + + /* compiled from: AudioOutputSelectionDialogViewModel.kt */ + public static abstract class a { + + /* compiled from: AudioOutputSelectionDialogViewModel.kt */ + /* renamed from: b.a.a.f.a.d$a$a reason: collision with other inner class name */ + public static final class C0014a extends a { + public final DiscordAudioManager.DeviceTypes a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f47b; + public final String c; + public final boolean d; + public final boolean e; + public final boolean f; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0014a(DiscordAudioManager.DeviceTypes deviceTypes, boolean z2, String str, boolean z3, boolean z4, boolean z5) { + super(null); + m.checkNotNullParameter(deviceTypes, "selectedAudioOutput"); + this.a = deviceTypes; + this.f47b = z2; + this.c = str; + this.d = z3; + this.e = z4; + this.f = z5; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof C0014a)) { + return false; + } + C0014a aVar = (C0014a) obj; + return m.areEqual(this.a, aVar.a) && this.f47b == aVar.f47b && m.areEqual(this.c, aVar.c) && this.d == aVar.d && this.e == aVar.e && this.f == aVar.f; + } + + public int hashCode() { + DiscordAudioManager.DeviceTypes deviceTypes = this.a; + int i = 0; + int hashCode = (deviceTypes != null ? deviceTypes.hashCode() : 0) * 31; + boolean z2 = this.f47b; + int i2 = 1; + if (z2) { + z2 = true; + } + int i3 = z2 ? 1 : 0; + int i4 = z2 ? 1 : 0; + int i5 = z2 ? 1 : 0; + int i6 = (hashCode + i3) * 31; + String str = this.c; + if (str != null) { + i = str.hashCode(); + } + int i7 = (i6 + i) * 31; + boolean z3 = this.d; + if (z3) { + z3 = true; + } + int i8 = z3 ? 1 : 0; + int i9 = z3 ? 1 : 0; + int i10 = z3 ? 1 : 0; + int i11 = (i7 + i8) * 31; + boolean z4 = this.e; + if (z4) { + z4 = true; + } + int i12 = z4 ? 1 : 0; + int i13 = z4 ? 1 : 0; + int i14 = z4 ? 1 : 0; + int i15 = (i11 + i12) * 31; + boolean z5 = this.f; + if (!z5) { + i2 = z5 ? 1 : 0; + } + return i15 + i2; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Loaded(selectedAudioOutput="); + R.append(this.a); + R.append(", showBluetoothItem="); + R.append(this.f47b); + R.append(", bluetoothDeviceName="); + R.append(this.c); + R.append(", showSpeakerItem="); + R.append(this.d); + R.append(", showWiredItem="); + R.append(this.e); + R.append(", showEarpieceItem="); + return b.d.b.a.a.L(R, this.f, ")"); + } + } + + /* compiled from: AudioOutputSelectionDialogViewModel.kt */ + public static final class b extends a { + public static final b a = new b(); + + public b() { + super(null); + } + } + + public a() { + } + + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + public d() { + this(null, null, 3); + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(StoreAudioManagerV2 storeAudioManagerV2, Observable observable, int i) { + super(a.b.a); + StoreAudioManagerV2 audioManagerV2 = (i & 1) != 0 ? StoreStream.Companion.getAudioManagerV2() : null; + Observable observeAudioManagerState = (i & 2) != 0 ? audioManagerV2.observeAudioManagerState() : null; + m.checkNotNullParameter(audioManagerV2, "storeAudioManager"); + m.checkNotNullParameter(observeAudioManagerState, "storeStateObservable"); + this.j = audioManagerV2; + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observeAudioManagerState), this, null, 2, null), d.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/g/a.java b/app/src/main/java/b/a/a/g/a.java new file mode 100644 index 0000000000..fe1e60244f --- /dev/null +++ b/app/src/main/java/b/a/a/g/a.java @@ -0,0 +1,174 @@ +package b.a.a.g; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import b.a.i.l5; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.stores.StoreNotices; +import com.discord.stores.StoreStream; +import com.discord.utilities.string.StringUtilsKt; +import com.discord.utilities.uri.UriHandler; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: WidgetMaskedLinksDialog.kt */ +public final class a extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(a.class, "binding", "getBinding()Lcom/discord/databinding/WidgetMaskedLinksDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + + /* compiled from: java-style lambda group */ + /* renamed from: b.a.a.g.a$a reason: collision with other inner class name */ + public static final class View$OnClickListenerC0015a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + public final /* synthetic */ Object l; + + public View$OnClickListenerC0015a(int i, Object obj, Object obj2) { + this.j = i; + this.k = obj; + this.l = obj2; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + a aVar = (a) this.k; + m.checkNotNullExpressionValue(view, "v"); + Context context = view.getContext(); + m.checkNotNullExpressionValue(context, "v.context"); + String str = (String) this.l; + KProperty[] kPropertyArr = a.j; + Objects.requireNonNull(aVar); + UriHandler.handle$default(UriHandler.INSTANCE, context, str, null, 4, null); + aVar.dismiss(); + } else if (i == 1) { + a aVar2 = (a) this.k; + m.checkNotNullExpressionValue(view, "v"); + Context context2 = view.getContext(); + m.checkNotNullExpressionValue(context2, "v.context"); + String str2 = (String) this.l; + KProperty[] kPropertyArr2 = a.j; + Objects.requireNonNull(aVar2); + StoreStream.Companion.getMaskedLinks().trustDomain(str2); + UriHandler.handle$default(UriHandler.INSTANCE, context2, str2, null, 4, null); + aVar2.dismiss(); + } else { + throw null; + } + } + } + + /* compiled from: WidgetMaskedLinksDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: WidgetMaskedLinksDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, l5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetMaskedLinksDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public l5 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.masked_links_body_text; + TextView textView = (TextView) view2.findViewById(R.id.masked_links_body_text); + if (textView != null) { + i = R.id.masked_links_cancel; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.masked_links_cancel); + if (materialButton != null) { + i = R.id.masked_links_confirm; + MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.masked_links_confirm); + if (materialButton2 != null) { + i = R.id.masked_links_trust_domain; + TextView textView2 = (TextView) view2.findViewById(R.id.masked_links_trust_domain); + if (textView2 != null) { + i = R.id.view_dialog_confirmation_header; + TextView textView3 = (TextView) view2.findViewById(R.id.view_dialog_confirmation_header); + if (textView3 != null) { + return new l5((LinearLayout) view2, textView, materialButton, materialButton2, textView2, textView3); + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: WidgetMaskedLinksDialog.kt */ + public static final class d implements View.OnClickListener { + public final /* synthetic */ a j; + + public d(a aVar) { + this.j = aVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.dismiss(); + } + } + + public a() { + super(R.layout.widget_masked_links_dialog); + } + + public final l5 g() { + return (l5) this.l.getValue((Fragment) this, j[0]); + } + + @Override // androidx.fragment.app.Fragment + public void onDestroy() { + super.onDestroy(); + StoreNotices notices = StoreStream.Companion.getNotices(); + Objects.requireNonNull(k); + StoreNotices.markSeen$default(notices, "WIDGET_SPOOPY_LINKS_DIALOG", 0, 2, null); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + String str; + Object obj; + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + Bundle arguments = getArguments(); + if (arguments == null || (str = arguments.getString("WIDGET_SPOOPY_LINKS_DIALOG_URL")) == null) { + str = ""; + } + m.checkNotNullExpressionValue(str, "arguments?.getString(DIALOG_URL) ?: \"\""); + try { + obj = StringUtilsKt.toPunyCodeASCIIUrl(str); + } catch (Exception unused) { + dismiss(); + obj = Unit.a; + } + TextView textView = g().f152b; + m.checkNotNullExpressionValue(textView, "binding.maskedLinksBodyText"); + b.a.k.b.n(textView, R.string.masked_link_body, new Object[]{obj}, null, 4); + g().c.setOnClickListener(new d(this)); + g().d.setOnClickListener(new View$OnClickListenerC0015a(0, this, str)); + g().e.setOnClickListener(new View$OnClickListenerC0015a(1, this, str)); + } +} diff --git a/app/src/main/java/b/a/a/h.java b/app/src/main/java/b/a/a/h.java new file mode 100644 index 0000000000..ef33b7d59e --- /dev/null +++ b/app/src/main/java/b/a/a/h.java @@ -0,0 +1,142 @@ +package b.a.a; + +import android.content.Context; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentViewModelLazyKt; +import b.a.a.p; +import b.a.d.f; +import b.a.d.f0; +import b.a.d.h0; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.app.AppViewModel; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Lazy; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: WidgetAccessibilityDetectionDialog.kt */ +public final class h extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(h.class, "binding", "getBinding()Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + public final Lazy m; + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + h.g((h) this.k, false); + } else if (i == 1) { + h.g((h) this.k, true); + } else { + throw null; + } + } + } + + /* compiled from: WidgetAccessibilityDetectionDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: WidgetAccessibilityDetectionDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, b.a.i.a.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public b.a.i.a invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.accessibility_detection_body_text; + TextView textView = (TextView) view2.findViewById(R.id.accessibility_detection_body_text); + if (textView != null) { + i = R.id.accessibility_detection_disable; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.accessibility_detection_disable); + if (materialButton != null) { + i = R.id.accessibility_detection_enable; + MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.accessibility_detection_enable); + if (materialButton2 != null) { + i = R.id.view_dialog_confirmation_header; + TextView textView2 = (TextView) view2.findViewById(R.id.view_dialog_confirmation_header); + if (textView2 != null) { + return new b.a.i.a((LinearLayout) view2, textView, materialButton, materialButton2, textView2); + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: WidgetAccessibilityDetectionDialog.kt */ + public static final class d extends o implements Function0> { + public static final d j = new d(); + + public d() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public AppViewModel mo1invoke() { + return new p(null, null, 3); + } + } + + public h() { + super(R.layout.allow_accessibility_detection_dialog); + d dVar = d.j; + f0 f0Var = new f0(this); + this.m = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(p.class), new k(0, f0Var), new h0(dVar)); + } + + public static final void g(h hVar, boolean z2) { + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(((p) hVar.m.getValue()).j.setIsAccessibilityDetectionAllowed(z2), false, 1, null), p.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, q.j, 62, (Object) null); + hVar.dismiss(); + } + + public final b.a.i.a h() { + return (b.a.i.a) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + h().c.setOnClickListener(new a(0, this)); + h().d.setOnClickListener(new a(1, this)); + TextView textView = h().f72b; + m.checkNotNullExpressionValue(textView, "binding.accessibilityDetectionBodyText"); + b.a.k.b.n(textView, R.string.accessibility_detection_modal_body, new Object[]{f.a.a(360035966492L, null)}, null, 4); + } +} diff --git a/app/src/main/java/b/a/a/i.java b/app/src/main/java/b/a/a/i.java new file mode 100644 index 0000000000..57631c843b --- /dev/null +++ b/app/src/main/java/b/a/a/i.java @@ -0,0 +1,127 @@ +package b.a.a; + +import android.content.Context; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import b.a.i.h; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.drawable.DrawableCompat; +import com.discord.utilities.uri.UriHandler; +import com.discord.utilities.view.extensions.ViewExtensions; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: ConnectedAccountActionsDialog.kt */ +public final class i extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(i.class, "binding", "getBinding()Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0)}; + public static final b k = new b(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + + /* compiled from: java-style lambda group */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + public final /* synthetic */ Object l; + + public a(int i, Object obj, Object obj2) { + this.j = i; + this.k = obj; + this.l = obj2; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + UriHandler uriHandler = UriHandler.INSTANCE; + Context requireContext = ((i) this.k).requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + UriHandler.handle$default(uriHandler, requireContext, (String) this.l, null, 4, null); + ((i) this.k).dismiss(); + } else if (i == 1) { + Context requireContext2 = ((i) this.k).requireContext(); + m.checkNotNullExpressionValue(requireContext2, "requireContext()"); + String str = (String) this.l; + m.checkNotNullExpressionValue(str, "username"); + b.a.d.m.a(requireContext2, str, R.string.copied_text); + ((i) this.k).dismiss(); + } else { + throw null; + } + } + } + + /* compiled from: ConnectedAccountActionsDialog.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: ConnectedAccountActionsDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, h.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public h invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.connected_account_actions_dialog_copy_username; + TextView textView = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_copy_username); + if (textView != null) { + i = R.id.connected_account_actions_dialog_header; + TextView textView2 = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_header); + if (textView2 != null) { + i = R.id.connected_account_actions_dialog_open_in_browser; + TextView textView3 = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_open_in_browser); + if (textView3 != null) { + return new h((LinearLayout) view2, textView, textView2, textView3); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + public i() { + super(R.layout.connected_account_actions_dialog); + } + + public final h g() { + return (h) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + String string = getArgumentsOrDefault().getString("ARG_PROFILE_URL", ""); + String string2 = getArgumentsOrDefault().getString("ARG_USERNAME", ""); + int i = getArgumentsOrDefault().getInt("ARG_THEMED_PLATFORM_IMAGE_RES", 0); + if (i != 0) { + TextView textView = g().c; + m.checkNotNullExpressionValue(textView, "binding.connectedAccountActionsDialogHeader"); + ViewExtensions.setCompoundDrawableWithIntrinsicBounds$default(textView, DrawableCompat.getThemedDrawableRes$default(view, i, 0, 2, (Object) null), 0, 0, 0, 14, null); + } + TextView textView2 = g().c; + m.checkNotNullExpressionValue(textView2, "binding.connectedAccountActionsDialogHeader"); + textView2.setText(string2); + TextView textView3 = g().d; + m.checkNotNullExpressionValue(textView3, "binding.connectedAccountActionsDialogOpenInBrowser"); + textView3.setVisibility((string == null || string.length() == 0) ^ true ? 0 : 8); + g().d.setOnClickListener(new a(0, this, string)); + g().f118b.setOnClickListener(new a(1, this, string2)); + } +} diff --git a/app/src/main/java/b/a/a/j.java b/app/src/main/java/b/a/a/j.java new file mode 100644 index 0000000000..7c6fd1e474 --- /dev/null +++ b/app/src/main/java/b/a/a/j.java @@ -0,0 +1,103 @@ +package b.a.a; + +import android.os.Bundle; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import b.a.i.e; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: CameraCapacityDialog.kt */ +public final class j extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(j.class, "binding", "getBinding()Lcom/discord/databinding/CameraCapacityDialogBinding;", 0)}; + public static final a k = new a(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: CameraCapacityDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final void a(FragmentManager fragmentManager, int i) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + Bundle bundle = new Bundle(); + bundle.putInt("ARG_MAX_VIDEO_CHANNEL_USERS", i); + j jVar = new j(); + jVar.setArguments(bundle); + jVar.show(fragmentManager, j.class.getSimpleName()); + } + } + + /* compiled from: CameraCapacityDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, e.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/CameraCapacityDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public e invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.camera_capacity_body; + TextView textView = (TextView) view2.findViewById(R.id.camera_capacity_body); + if (textView != null) { + i = R.id.camera_capacity_confirm; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.camera_capacity_confirm); + if (materialButton != null) { + i = R.id.notice_header_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container); + if (linearLayout != null) { + return new e((LinearLayout) view2, textView, materialButton, linearLayout); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: CameraCapacityDialog.kt */ + public static final class c implements View.OnClickListener { + public final /* synthetic */ j j; + + public c(j jVar) { + this.j = jVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.dismiss(); + } + } + + public j() { + super(R.layout.camera_capacity_dialog); + } + + @Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment + public void onResume() { + super.onResume(); + requireDialog().setCanceledOnTouchOutside(true); + FragmentViewBindingDelegate fragmentViewBindingDelegate = this.l; + KProperty[] kPropertyArr = j; + ((e) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).c.setOnClickListener(new c(this)); + Bundle arguments = getArguments(); + Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("ARG_MAX_VIDEO_CHANNEL_USERS")) : null; + TextView textView = ((e) this.l.getValue((Fragment) this, kPropertyArr[0])).f100b; + m.checkNotNullExpressionValue(textView, "binding.cameraCapacityBody"); + textView.setText(b.a.k.b.k(this, R.string.video_capacity_modal_body, new Object[]{String.valueOf(valueOf)}, null, 4)); + } +} diff --git a/app/src/main/java/b/a/a/k.java b/app/src/main/java/b/a/a/k.java new file mode 100644 index 0000000000..b256df0dbe --- /dev/null +++ b/app/src/main/java/b/a/a/k.java @@ -0,0 +1,172 @@ +package b.a.a; + +import android.os.Bundle; +import android.view.View; +import android.widget.DatePicker; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.birthday.BirthdayHelper; +import com.discord.utilities.font.FontUtils; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.m; +import java.util.Calendar; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: DatePickerDialog.kt */ +public final class k extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(k.class, "binding", "getBinding()Lcom/discord/databinding/DialogDatePickerBinding;", 0)}; + public static final a k = new a(null); + public Function1 l; + public long m; + public boolean n; + public final FragmentViewBindingDelegate o = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: DatePickerDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final k a(FragmentManager fragmentManager, CharSequence charSequence, long j, long j2) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + m.checkNotNullParameter(charSequence, "label"); + k kVar = new k(); + Bundle bundle = new Bundle(); + bundle.putCharSequence("label", charSequence); + bundle.putLong("initial_date", j); + bundle.putLong("max_date", j2); + kVar.setArguments(bundle); + kVar.show(fragmentManager, k.class.getName()); + return kVar; + } + } + + /* compiled from: DatePickerDialog.kt */ + public static final /* synthetic */ class b extends d0.z.d.k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, b.a.i.k.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogDatePickerBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public b.a.i.k invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.dialog_date_picker_done; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.dialog_date_picker_done); + if (materialButton != null) { + i = R.id.dialog_date_picker_input; + DatePicker datePicker = (DatePicker) view2.findViewById(R.id.dialog_date_picker_input); + if (datePicker != null) { + i = R.id.dialog_date_picker_title; + TextView textView = (TextView) view2.findViewById(R.id.dialog_date_picker_title); + if (textView != null) { + return new b.a.i.k((LinearLayout) view2, materialButton, datePicker, textView); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: DatePickerDialog.kt */ + public static final class c implements DatePicker.OnDateChangedListener { + public final /* synthetic */ k j; + + public c(k kVar) { + this.j = kVar; + } + + @Override // android.widget.DatePicker.OnDateChangedListener + public final void onDateChanged(DatePicker datePicker, int i, int i2, int i3) { + Calendar instance = Calendar.getInstance(); + instance.set(i, i2, i3); + k kVar = this.j; + m.checkNotNullExpressionValue(instance, "cal"); + kVar.m = instance.getTimeInMillis(); + k kVar2 = this.j; + kVar2.n = true; + Function1 function1 = kVar2.l; + if (function1 != null) { + function1.invoke(Long.valueOf(kVar2.m)); + } + } + } + + /* compiled from: DatePickerDialog.kt */ + public static final class d implements View.OnClickListener { + public final /* synthetic */ k j; + + public d(k kVar) { + this.j = kVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + Function1 function1; + k kVar = this.j; + if (kVar.n && (function1 = kVar.l) != null) { + function1.invoke(Long.valueOf(kVar.m)); + } + this.j.dismiss(); + } + } + + public k() { + super(R.layout.dialog_date_picker); + } + + public final b.a.i.k g() { + return (b.a.i.k) this.o.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment + public void onPause() { + super.onPause(); + g().c.clearFocus(); + } + + @Override // com.discord.app.AppDialog + public void onViewBoundOrOnResume() { + CharSequence charSequence; + super.onViewBoundOrOnResume(); + TextView textView = g().d; + m.checkNotNullExpressionValue(textView, "binding.dialogDatePickerTitle"); + Bundle arguments = getArguments(); + if (arguments == null || (charSequence = arguments.getCharSequence("label")) == null) { + charSequence = ""; + } + textView.setText(charSequence); + DatePicker datePicker = g().c; + m.checkNotNullExpressionValue(datePicker, "binding.dialogDatePickerInput"); + Bundle arguments2 = getArguments(); + long j2 = 0; + datePicker.setMaxDate(arguments2 != null ? arguments2.getLong("max_date") : 0); + DatePicker datePicker2 = g().c; + m.checkNotNullExpressionValue(datePicker2, "binding.dialogDatePickerInput"); + datePicker2.setMinDate(BirthdayHelper.INSTANCE.subtractYearsFromToday(FontUtils.MAX_FONT_SCALING)); + Bundle arguments3 = getArguments(); + if (arguments3 != null) { + j2 = arguments3.getLong("initial_date"); + } + this.m = j2; + if (this.l == null) { + dismiss(); + } + Calendar instance = Calendar.getInstance(); + m.checkNotNullExpressionValue(instance, "calendar"); + instance.setTimeInMillis(this.m); + g().c.init(instance.get(1), instance.get(2), instance.get(5), new c(this)); + g().f139b.setOnClickListener(new d(this)); + } +} diff --git a/app/src/main/java/b/a/a/l.java b/app/src/main/java/b/a/a/l.java new file mode 100644 index 0000000000..4eef77182c --- /dev/null +++ b/app/src/main/java/b/a/a/l.java @@ -0,0 +1,27 @@ +package b.a.a; + +import android.view.View; +import com.discord.R; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: FriendRequestDialogs.kt */ +public final class l extends o implements Function1 { + public final /* synthetic */ Function1 $onConfirm; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(Function1 function1) { + super(1); + this.$onConfirm = function1; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(View view) { + m.checkNotNullParameter(view, ""); + this.$onConfirm.invoke(Integer.valueOf((int) R.string.friend_request_cancelled)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/m.java b/app/src/main/java/b/a/a/m.java new file mode 100644 index 0000000000..00e86c9480 --- /dev/null +++ b/app/src/main/java/b/a/a/m.java @@ -0,0 +1,85 @@ +package b.a.a; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import b.a.i.x; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: GuildVideoAtCapacityDialog.kt */ +public final class m extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(m.class, "binding", "getBinding()Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0)}; + public static final a k = new a(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: GuildVideoAtCapacityDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final void a(FragmentManager fragmentManager) { + d0.z.d.m.checkNotNullParameter(fragmentManager, "fragmentManager"); + new m().show(fragmentManager, m.class.getSimpleName()); + } + } + + /* compiled from: GuildVideoAtCapacityDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, x.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public x invoke(View view) { + View view2 = view; + d0.z.d.m.checkNotNullParameter(view2, "p1"); + int i = R.id.guild_video_at_capacity_confirm; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_video_at_capacity_confirm); + if (materialButton != null) { + i = R.id.notice_header_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container); + if (linearLayout != null) { + return new x((LinearLayout) view2, materialButton, linearLayout); + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: GuildVideoAtCapacityDialog.kt */ + public static final class c implements View.OnClickListener { + public final /* synthetic */ m j; + + public c(m mVar) { + this.j = mVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.dismiss(); + } + } + + public m() { + super(R.layout.guild_video_at_capacity); + } + + @Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment + public void onResume() { + super.onResume(); + requireDialog().setCanceledOnTouchOutside(true); + ((x) this.l.getValue((Fragment) this, j[0])).f221b.setOnClickListener(new c(this)); + } +} diff --git a/app/src/main/java/b/a/a/n.java b/app/src/main/java/b/a/a/n.java new file mode 100644 index 0000000000..a17dedb183 --- /dev/null +++ b/app/src/main/java/b/a/a/n.java @@ -0,0 +1,197 @@ +package b.a.a; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import androidx.recyclerview.widget.RecyclerView; +import b.a.i.l; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.databinding.DialogSimpleSelectorItemBinding; +import com.discord.utilities.view.recycler.MaxHeightRecyclerView; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.utilities.views.SimpleRecyclerAdapter; +import com.google.android.material.button.MaterialButton; +import d0.t.j; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.functions.Function2; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: SelectorDialog.kt */ +public final class n extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(n.class, "binding", "getBinding()Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0)}; + public static final a k = new a(null); + public Function1 l; + public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null); + + /* compiled from: SelectorDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final n a(FragmentManager fragmentManager, CharSequence charSequence, CharSequence[] charSequenceArr, Function1 function1) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + m.checkNotNullParameter(charSequence, "title"); + m.checkNotNullParameter(charSequenceArr, "options"); + m.checkNotNullParameter(function1, "onSelectedListener"); + n nVar = new n(); + Bundle bundle = new Bundle(); + bundle.putCharSequence("INTENT_DIALOG_TITLE", charSequence); + bundle.putCharSequenceArray("INTENT_DIALOG_OPTIONS", charSequenceArr); + nVar.setArguments(bundle); + nVar.l = function1; + nVar.show(fragmentManager, a0.getOrCreateKotlinClass(n.class).toString()); + return nVar; + } + } + + /* compiled from: SelectorDialog.kt */ + public final class b extends SimpleRecyclerAdapter.ViewHolder { + public final DialogSimpleSelectorItemBinding a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ n f48b; + + /* JADX WARNING: Illegal instructions before constructor call */ + public b(n nVar, DialogSimpleSelectorItemBinding dialogSimpleSelectorItemBinding) { + super(r2); + m.checkNotNullParameter(dialogSimpleSelectorItemBinding, "binding"); + this.f48b = nVar; + TextView textView = dialogSimpleSelectorItemBinding.a; + m.checkNotNullExpressionValue(textView, "binding.root"); + this.a = dialogSimpleSelectorItemBinding; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.discord.utilities.views.SimpleRecyclerAdapter.ViewHolder + public void bind(CharSequence charSequence) { + CharSequence charSequence2 = charSequence; + m.checkNotNullParameter(charSequence2, "data"); + TextView textView = this.a.a; + m.checkNotNullExpressionValue(textView, "binding.root"); + textView.setText(charSequence2); + this.a.a.setOnClickListener(new o(this)); + } + } + + /* compiled from: SelectorDialog.kt */ + public static final /* synthetic */ class c extends k implements Function1 { + public static final c j = new c(); + + public c() { + super(1, l.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public l invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.dialog_cancel; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.dialog_cancel); + if (materialButton != null) { + i = R.id.dialog_selections; + MaxHeightRecyclerView maxHeightRecyclerView = (MaxHeightRecyclerView) view2.findViewById(R.id.dialog_selections); + if (maxHeightRecyclerView != null) { + i = R.id.dialog_title; + TextView textView = (TextView) view2.findViewById(R.id.dialog_title); + if (textView != null) { + return new l((LinearLayout) view2, materialButton, maxHeightRecyclerView, textView); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: SelectorDialog.kt */ + public static final class d implements View.OnClickListener { + public final /* synthetic */ n j; + + public d(n nVar) { + this.j = nVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.dismiss(); + } + } + + /* compiled from: SelectorDialog.kt */ + public static final class e extends o implements Function2 { + public final /* synthetic */ n this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(n nVar) { + super(2); + this.this$0 = nVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public b invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) { + LayoutInflater layoutInflater2 = layoutInflater; + ViewGroup viewGroup2 = viewGroup; + m.checkNotNullParameter(layoutInflater2, "inflater"); + m.checkNotNullParameter(viewGroup2, "parent"); + DialogSimpleSelectorItemBinding a = DialogSimpleSelectorItemBinding.a(layoutInflater2, viewGroup2, false); + m.checkNotNullExpressionValue(a, "DialogSimpleSelectorItem…(inflater, parent, false)"); + return new b(this.this$0, a); + } + } + + public n() { + super(R.layout.dialog_simple_selector); + } + + public final l g() { + return (l) this.m.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment + public void onPause() { + super.onPause(); + dismiss(); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + TextView textView = g().d; + m.checkNotNullExpressionValue(textView, "binding.dialogTitle"); + textView.setText(getArgumentsOrDefault().getCharSequence("INTENT_DIALOG_TITLE", null)); + g().f146b.setOnClickListener(new d(this)); + CharSequence[] charSequenceArray = getArgumentsOrDefault().getCharSequenceArray("INTENT_DIALOG_OPTIONS"); + if (charSequenceArray != null) { + MaxHeightRecyclerView maxHeightRecyclerView = g().c; + m.checkNotNullExpressionValue(maxHeightRecyclerView, "binding.dialogSelections"); + maxHeightRecyclerView.setAdapter(new SimpleRecyclerAdapter(j.asList(charSequenceArray), new e(this))); + MaxHeightRecyclerView maxHeightRecyclerView2 = g().c; + RecyclerView.Adapter adapter = maxHeightRecyclerView2.getAdapter(); + if (adapter != null) { + adapter.notifyDataSetChanged(); + } + maxHeightRecyclerView2.setHasFixedSize(false); + maxHeightRecyclerView2.setNestedScrollingEnabled(false); + SimpleRecyclerAdapter.Companion companion = SimpleRecyclerAdapter.Companion; + MaxHeightRecyclerView maxHeightRecyclerView3 = g().c; + m.checkNotNullExpressionValue(maxHeightRecyclerView3, "binding.dialogSelections"); + companion.addThemedDivider(maxHeightRecyclerView3); + } + } +} diff --git a/app/src/main/java/b/a/a/o.java b/app/src/main/java/b/a/a/o.java new file mode 100644 index 0000000000..607b1cb034 --- /dev/null +++ b/app/src/main/java/b/a/a/o.java @@ -0,0 +1,24 @@ +package b.a.a; + +import android.view.View; +import b.a.a.n; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: SelectorDialog.kt */ +public final class o implements View.OnClickListener { + public final /* synthetic */ n.b j; + + public o(n.b bVar) { + this.j = bVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + n.b bVar = this.j; + Function1 function1 = bVar.f48b.l; + if (function1 != null) { + function1.invoke(Integer.valueOf(bVar.getAdapterPosition())); + } + this.j.f48b.dismiss(); + } +} diff --git a/app/src/main/java/b/a/a/p.java b/app/src/main/java/b/a/a/p.java new file mode 100644 index 0000000000..0052b9ac2a --- /dev/null +++ b/app/src/main/java/b/a/a/p.java @@ -0,0 +1,54 @@ +package b.a.a; + +import com.discord.app.AppViewModel; +import com.discord.stores.StoreNotices; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreUserSettings; +import d0.z.d.m; +import java.util.Objects; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */ +public final class p extends AppViewModel { + public final StoreUserSettings j; + public final StoreNotices k; + + /* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */ + public static abstract class a { + + /* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */ + /* renamed from: b.a.a.p$a$a reason: collision with other inner class name */ + public static final class C0016a extends a { + public static final C0016a a = new C0016a(); + + public C0016a() { + super(null); + } + } + + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + public p() { + this(null, null, 3); + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public p(StoreUserSettings storeUserSettings, StoreNotices storeNotices, int i) { + super(a.C0016a.a); + StoreNotices storeNotices2 = null; + StoreUserSettings userSettings = (i & 1) != 0 ? StoreStream.Companion.getUserSettings() : null; + storeNotices2 = (i & 2) != 0 ? StoreStream.Companion.getNotices() : storeNotices2; + m.checkNotNullParameter(userSettings, "storeUserSettings"); + m.checkNotNullParameter(storeNotices2, "storeNotices"); + this.j = userSettings; + this.k = storeNotices2; + } + + @Override // com.discord.app.AppViewModel, androidx.lifecycle.ViewModel + public void onCleared() { + StoreNotices storeNotices = this.k; + Objects.requireNonNull(h.k); + StoreNotices.markSeen$default(storeNotices, "ALLOW_ACCESSIBILITY_DETECTION_DIALOG", 0, 2, null); + } +} diff --git a/app/src/main/java/b/a/a/q.java b/app/src/main/java/b/a/a/q.java new file mode 100644 index 0000000000..1ff0856b7f --- /dev/null +++ b/app/src/main/java/b/a/a/q.java @@ -0,0 +1,23 @@ +package b.a.a; + +import com.discord.models.domain.ModelUserSettings; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */ +public final class q extends o implements Function1 { + public static final q j = new q(); + + public q() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(ModelUserSettings modelUserSettings) { + m.checkNotNullParameter(modelUserSettings, "it"); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/r.java b/app/src/main/java/b/a/a/r.java new file mode 100644 index 0000000000..f1c65ecbe7 --- /dev/null +++ b/app/src/main/java/b/a/a/r.java @@ -0,0 +1,217 @@ +package b.a.a; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentActivity; +import b.a.i.c5; +import com.discord.R; +import com.discord.api.auth.mfa.EnableMfaResponse; +import com.discord.app.AppDialog; +import com.discord.restapi.RestAPIParams; +import com.discord.utilities.error.Error; +import com.discord.utilities.rest.RestAPI; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.view.extensions.ViewExtensions; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.views.LoadingButton; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.textfield.TextInputLayout; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +import rx.Observable; +/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */ +public final class r extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(r.class, "binding", "getBinding()Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0)}; + public static final a k = new a(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + public Function1 m = c.j; + + /* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, c5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public c5 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.enable_two_factor_password_body_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.enable_two_factor_password_body_container); + if (linearLayout != null) { + i = R.id.enable_two_factor_password_body_text; + TextView textView = (TextView) view2.findViewById(R.id.enable_two_factor_password_body_text); + if (textView != null) { + i = R.id.enable_two_factor_password_cancel; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.enable_two_factor_password_cancel); + if (materialButton != null) { + i = R.id.enable_two_factor_password_header; + TextView textView2 = (TextView) view2.findViewById(R.id.enable_two_factor_password_header); + if (textView2 != null) { + i = R.id.enable_two_factor_password_header_container; + LinearLayout linearLayout2 = (LinearLayout) view2.findViewById(R.id.enable_two_factor_password_header_container); + if (linearLayout2 != null) { + i = R.id.enable_two_factor_password_ok; + LoadingButton loadingButton = (LoadingButton) view2.findViewById(R.id.enable_two_factor_password_ok); + if (loadingButton != null) { + i = R.id.enable_two_factor_password_view_input; + TextInputLayout textInputLayout = (TextInputLayout) view2.findViewById(R.id.enable_two_factor_password_view_input); + if (textInputLayout != null) { + return new c5((LinearLayout) view2, linearLayout, textView, materialButton, textView2, linearLayout2, loadingButton, textInputLayout); + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */ + public static final class c extends o implements Function1 { + public static final c j = new c(); + + public c() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(String str) { + m.checkNotNullParameter(str, "it"); + return Unit.a; + } + } + + /* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */ + public static final class d implements View.OnClickListener { + public final /* synthetic */ r j; + public final /* synthetic */ View k; + + /* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */ + public static final class a extends o implements Function1 { + public static final a j = new a(); + + public a() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(EnableMfaResponse enableMfaResponse) { + m.checkNotNullParameter(enableMfaResponse, "it"); + return Unit.a; + } + } + + /* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */ + public static final class b extends o implements Function1 { + public final /* synthetic */ d this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(d dVar) { + super(1); + this.this$0 = dVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Error error) { + Error error2 = error; + m.checkNotNullParameter(error2, "error"); + r rVar = this.this$0.j; + KProperty[] kPropertyArr = r.j; + rVar.g().c.setIsLoading(false); + Error.Response response = error2.getResponse(); + m.checkNotNullExpressionValue(response, "error.response"); + if (response.getCode() == 60005) { + error2.setShowErrorToasts(false); + this.this$0.j.dismiss(); + r rVar2 = this.this$0.j; + Function1 function1 = rVar2.m; + TextInputLayout textInputLayout = rVar2.g().d; + m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput"); + function1.invoke(ViewExtensions.getTextOrEmpty(textInputLayout)); + } + return Unit.a; + } + } + + public d(r rVar, View view) { + this.j = rVar; + this.k = view; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + r rVar = this.j; + KProperty[] kPropertyArr = r.j; + TextInputLayout textInputLayout = rVar.g().d; + m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput"); + String textOrEmpty = ViewExtensions.getTextOrEmpty(textInputLayout); + this.j.g().c.setIsLoading(true); + Observable ui$default = ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().enableMFA(new RestAPIParams.EnableMFA("random code", "random secret", textOrEmpty)), false, 1, null), this.j, null, 2, null); + a aVar = a.j; + ObservableExtensionsKt.appSubscribe$default(ui$default, this.j.getClass(), this.k.getContext(), (Function1) null, new b(this), (Function0) null, (Function0) null, aVar, 52, (Object) null); + } + } + + /* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */ + public static final class e implements View.OnClickListener { + public final /* synthetic */ r j; + + public e(r rVar) { + this.j = rVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + FragmentActivity activity = this.j.getActivity(); + if (activity != null) { + activity.onBackPressed(); + } + } + } + + public r() { + super(R.layout.widget_enable_two_factor_password_dialog); + } + + public final c5 g() { + return (c5) this.l.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + setCancelable(false); + g().c.setIsLoading(false); + g().c.setOnClickListener(new d(this, view)); + g().f92b.setOnClickListener(new e(this)); + } +} diff --git a/app/src/main/java/b/a/a/s.java b/app/src/main/java/b/a/a/s.java new file mode 100644 index 0000000000..443657e1ba --- /dev/null +++ b/app/src/main/java/b/a/a/s.java @@ -0,0 +1,186 @@ +package b.a.a; + +import android.content.Context; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentViewModelLazyKt; +import b.a.a.w; +import b.a.d.f0; +import b.a.d.h0; +import b.a.i.y5; +import com.discord.R; +import com.discord.app.AppDialog; +import com.discord.app.AppViewModel; +import com.discord.stores.StoreStream; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.views.LoadingButton; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Lazy; +import kotlin.NoWhenBranchMatchedException; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +import rx.subjects.PublishSubject; +/* compiled from: WidgetUrgentMessageDialog.kt */ +public final class s extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(s.class, "binding", "getBinding()Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0)}; + public static final a k = new a(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + public final Lazy m; + + /* compiled from: WidgetUrgentMessageDialog.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: WidgetUrgentMessageDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, y5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public y5 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.view_dialog_confirmation_confirm; + LoadingButton loadingButton = (LoadingButton) view2.findViewById(R.id.view_dialog_confirmation_confirm); + if (loadingButton != null) { + i = R.id.view_dialog_confirmation_header; + TextView textView = (TextView) view2.findViewById(R.id.view_dialog_confirmation_header); + if (textView != null) { + i = R.id.view_dialog_confirmation_text; + TextView textView2 = (TextView) view2.findViewById(R.id.view_dialog_confirmation_text); + if (textView2 != null) { + return new y5((LinearLayout) view2, loadingButton, textView, textView2); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: WidgetUrgentMessageDialog.kt */ + public static final class c extends o implements Function1 { + public final /* synthetic */ s this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(s sVar) { + super(1); + this.this$0 = sVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(w.d dVar) { + w.d dVar2 = dVar; + m.checkNotNullParameter(dVar2, "viewState"); + s sVar = this.this$0; + KProperty[] kPropertyArr = s.j; + TextView textView = sVar.g().c; + m.checkNotNullExpressionValue(textView, "binding.viewDialogConfirmationHeader"); + textView.setText(sVar.getString(R.string.system_dm_urgent_message_modal_header)); + TextView textView2 = sVar.g().d; + m.checkNotNullExpressionValue(textView2, "binding.viewDialogConfirmationText"); + textView2.setText(sVar.getString(R.string.system_dm_urgent_message_modal_body)); + sVar.g().f231b.setText(sVar.getString(R.string.okay)); + sVar.g().f231b.setIsLoading(dVar2.f49b); + sVar.g().f231b.setOnClickListener(new t(sVar)); + return Unit.a; + } + } + + /* compiled from: WidgetUrgentMessageDialog.kt */ + public static final class d extends o implements Function1 { + public final /* synthetic */ s this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(s sVar) { + super(1); + this.this$0 = sVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(w.b bVar) { + w.b bVar2 = bVar; + m.checkNotNullParameter(bVar2, "event"); + s sVar = this.this$0; + KProperty[] kPropertyArr = s.j; + Objects.requireNonNull(sVar); + if (m.areEqual(bVar2, w.b.a.a)) { + sVar.dismiss(); + } else if (m.areEqual(bVar2, w.b.C0017b.a)) { + b.a.d.m.g(sVar.getContext(), R.string.internal_server_error, 0, null, 12); + } else { + throw new NoWhenBranchMatchedException(); + } + return Unit.a; + } + } + + /* compiled from: WidgetUrgentMessageDialog.kt */ + public static final class e extends o implements Function0> { + public static final e j = new e(); + + public e() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public AppViewModel mo1invoke() { + return new w(null, null, null, 7); + } + } + + public s() { + super(R.layout.widget_urgent_message_dialog); + e eVar = e.j; + f0 f0Var = new f0(this); + this.m = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(w.class), new k(1, f0Var), new h0(eVar)); + } + + public final y5 g() { + return (y5) this.l.getValue((Fragment) this, j[0]); + } + + public final w h() { + return (w) this.m.getValue(); + } + + @Override // androidx.fragment.app.Fragment + public void onDestroy() { + StoreStream.Companion.getNotices().markDialogSeen("URGENT_MESSAGE_DIALOG"); + super.onDestroy(); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + setCancelable(false); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(h().observeViewState(), this, null, 2, null), s.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null); + PublishSubject publishSubject = h().k; + m.checkNotNullExpressionValue(publishSubject, "eventSubject"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(publishSubject, this, null, 2, null), s.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/t.java b/app/src/main/java/b/a/a/t.java new file mode 100644 index 0000000000..071adc9a17 --- /dev/null +++ b/app/src/main/java/b/a/a/t.java @@ -0,0 +1,42 @@ +package b.a.a; + +import android.content.Context; +import android.view.View; +import b.a.a.w; +import com.discord.restapi.RestAPIParams; +import com.discord.utilities.channel.ChannelSelector; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.user.UserUtils; +import d0.z.d.m; +import java.util.Objects; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.reflect.KProperty; +/* compiled from: WidgetUrgentMessageDialog.kt */ +public final class t implements View.OnClickListener { + public final /* synthetic */ s j; + + public t(s sVar) { + this.j = sVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + Integer num; + s sVar = this.j; + KProperty[] kPropertyArr = s.j; + w h = sVar.h(); + m.checkNotNullExpressionValue(view, "button"); + Context context = view.getContext(); + m.checkNotNullExpressionValue(context, "button.context"); + Objects.requireNonNull(h); + m.checkNotNullParameter(context, "context"); + ChannelSelector.Companion.getInstance().findAndSetDirectMessage(context, UserUtils.SYSTEM_USER_ID); + w.d viewState = h.getViewState(); + if (viewState != null && (num = viewState.a) != null) { + RestAPIParams.UserInfo userInfo = new RestAPIParams.UserInfo(null, null, null, null, null, null, null, null, Integer.valueOf(num.intValue() & -8193), null, 767, null); + h.updateViewState(new w.d(viewState.a, true)); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(h.l.patchUser(userInfo), false, 1, null), h, null, 2, null), w.class, (Context) null, (Function1) null, new y(h), (Function0) null, (Function0) null, new x(h), 54, (Object) null); + } + } +} diff --git a/app/src/main/java/b/a/a/u.java b/app/src/main/java/b/a/a/u.java new file mode 100644 index 0000000000..f60e4e7f34 --- /dev/null +++ b/app/src/main/java/b/a/a/u.java @@ -0,0 +1,33 @@ +package b.a.a; + +import b.a.a.w; +import com.discord.models.user.User; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: WidgetUrgentMessageDialogViewModel.kt */ +public final class u extends o implements Function1 { + public final /* synthetic */ w this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public u(w wVar) { + super(1); + this.this$0 = wVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(w.c cVar) { + w.c cVar2 = cVar; + m.checkNotNullParameter(cVar2, "storeState"); + w wVar = this.this$0; + Objects.requireNonNull(wVar); + User user = cVar2.a; + w.d viewState = wVar.getViewState(); + wVar.updateViewState(new w.d(Integer.valueOf(user.getFlags()), viewState == null ? false : viewState.f49b)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/v.java b/app/src/main/java/b/a/a/v.java new file mode 100644 index 0000000000..875f828c68 --- /dev/null +++ b/app/src/main/java/b/a/a/v.java @@ -0,0 +1,19 @@ +package b.a.a; + +import b.a.a.w; +import com.discord.models.user.MeUser; +import d0.z.d.m; +import j0.k.b; +/* compiled from: WidgetUrgentMessageDialogViewModel.kt */ +public final class v implements b { + public static final v j = new v(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public w.c call(MeUser meUser) { + MeUser meUser2 = meUser; + m.checkNotNullExpressionValue(meUser2, "meUser"); + return new w.c(meUser2); + } +} diff --git a/app/src/main/java/b/a/a/w.java b/app/src/main/java/b/a/a/w.java new file mode 100644 index 0000000000..070358b415 --- /dev/null +++ b/app/src/main/java/b/a/a/w.java @@ -0,0 +1,156 @@ +package b.a.a; + +import android.content.Context; +import com.discord.app.AppViewModel; +import com.discord.models.user.User; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreUser; +import com.discord.utilities.rest.RestAPI; +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import rx.Observable; +import rx.subjects.PublishSubject; +/* compiled from: WidgetUrgentMessageDialogViewModel.kt */ +public final class w extends AppViewModel { + public static final a j = new a(null); + public final PublishSubject k; + public final RestAPI l; + + /* compiled from: WidgetUrgentMessageDialogViewModel.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: WidgetUrgentMessageDialogViewModel.kt */ + public static abstract class b { + + /* compiled from: WidgetUrgentMessageDialogViewModel.kt */ + public static final class a extends b { + public static final a a = new a(); + + public a() { + super(null); + } + } + + /* compiled from: WidgetUrgentMessageDialogViewModel.kt */ + /* renamed from: b.a.a.w$b$b reason: collision with other inner class name */ + public static final class C0017b extends b { + public static final C0017b a = new C0017b(); + + public C0017b() { + super(null); + } + } + + public b() { + } + + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: WidgetUrgentMessageDialogViewModel.kt */ + public static final class c { + public final User a; + + public c(User user) { + m.checkNotNullParameter(user, "user"); + this.a = user; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof c) && m.areEqual(this.a, ((c) obj).a); + } + return true; + } + + public int hashCode() { + User user = this.a; + if (user != null) { + return user.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("StoreState(user="); + R.append(this.a); + R.append(")"); + return R.toString(); + } + } + + /* compiled from: WidgetUrgentMessageDialogViewModel.kt */ + public static final class d { + public final Integer a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f49b; + + public d(Integer num, boolean z2) { + this.a = num; + this.f49b = z2; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof d)) { + return false; + } + d dVar = (d) obj; + return m.areEqual(this.a, dVar.a) && this.f49b == dVar.f49b; + } + + public int hashCode() { + Integer num = this.a; + int hashCode = (num != null ? num.hashCode() : 0) * 31; + boolean z2 = this.f49b; + if (z2) { + z2 = true; + } + int i = z2 ? 1 : 0; + int i2 = z2 ? 1 : 0; + int i3 = z2 ? 1 : 0; + return hashCode + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("ViewState(userFlags="); + R.append(this.a); + R.append(", isBusy="); + return b.d.b.a.a.L(R, this.f49b, ")"); + } + } + + public w() { + this(null, null, null, 7); + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public w(RestAPI restAPI, StoreUser storeUser, Observable observable, int i) { + super(null, 1, null); + Observable observable2; + RestAPI api = (i & 1) != 0 ? RestAPI.Companion.getApi() : null; + StoreUser users = (i & 2) != 0 ? StoreStream.Companion.getUsers() : null; + if ((i & 4) != 0) { + observable2 = StoreUser.observeMe$default(users, false, 1, null).F(v.j); + m.checkNotNullExpressionValue(observable2, "storeUser.observeMe().ma…oreState(user = meUser) }"); + } else { + observable2 = null; + } + m.checkNotNullParameter(api, "restAPI"); + m.checkNotNullParameter(users, "storeUser"); + m.checkNotNullParameter(observable2, "storeObservable"); + this.l = api; + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), w.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new u(this), 62, (Object) null); + this.k = PublishSubject.k0(); + } +} diff --git a/app/src/main/java/b/a/a/x.java b/app/src/main/java/b/a/a/x.java new file mode 100644 index 0000000000..f05f4ec213 --- /dev/null +++ b/app/src/main/java/b/a/a/x.java @@ -0,0 +1,29 @@ +package b.a.a; + +import b.a.a.w; +import com.discord.api.user.User; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.subjects.PublishSubject; +/* compiled from: WidgetUrgentMessageDialogViewModel.kt */ +public final class x extends o implements Function1 { + public final /* synthetic */ w this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public x(w wVar) { + super(1); + this.this$0 = wVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(User user) { + m.checkNotNullParameter(user, "it"); + PublishSubject publishSubject = this.this$0.k; + publishSubject.k.onNext(w.b.a.a); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/y.java b/app/src/main/java/b/a/a/y.java new file mode 100644 index 0000000000..768933d48f --- /dev/null +++ b/app/src/main/java/b/a/a/y.java @@ -0,0 +1,29 @@ +package b.a.a; + +import b.a.a.w; +import com.discord.utilities.error.Error; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.subjects.PublishSubject; +/* compiled from: WidgetUrgentMessageDialogViewModel.kt */ +public final class y extends o implements Function1 { + public final /* synthetic */ w this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public y(w wVar) { + super(1); + this.this$0 = wVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Error error) { + m.checkNotNullParameter(error, "it"); + PublishSubject publishSubject = this.this$0.k; + publishSubject.k.onNext(w.b.C0017b.a); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/z/a.java b/app/src/main/java/b/a/a/z/a.java new file mode 100644 index 0000000000..de71f8d885 --- /dev/null +++ b/app/src/main/java/b/a/a/z/a.java @@ -0,0 +1,226 @@ +package b.a.a.z; + +import android.content.ClipData; +import android.content.ClipboardManager; +import android.content.Context; +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import b.a.i.p; +import com.discord.R; +import com.discord.api.premium.PremiumTier; +import com.discord.api.premium.SubscriptionInterval; +import com.discord.app.AppDialog; +import com.discord.i18n.RenderContext; +import com.discord.models.domain.premium.SubscriptionPlanType; +import com.discord.utilities.billing.GooglePlayInAppSku; +import com.discord.utilities.billing.GooglePlayInAppSkus; +import com.discord.utilities.drawable.DrawableCompat; +import com.discord.utilities.gifting.GiftingUtils; +import com.discord.utilities.resources.StringResourceUtilsKt; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.google.android.material.button.MaterialButton; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Pair; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: GiftPurchasedDialog.kt */ +public final class a extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(a.class, "binding", "getBinding()Lcom/discord/databinding/GiftPurchasedDialogBinding;", 0)}; + public static final C0018a k = new C0018a(null); + public Function0 l; + public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: GiftPurchasedDialog.kt */ + /* renamed from: b.a.a.z.a$a reason: collision with other inner class name */ + public static final class C0018a { + public C0018a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: GiftPurchasedDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, p.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GiftPurchasedDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public p invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.gift_entitlement_code; + TextView textView = (TextView) view2.findViewById(R.id.gift_entitlement_code); + if (textView != null) { + i = R.id.gift_entitlement_code_container; + RelativeLayout relativeLayout = (RelativeLayout) view2.findViewById(R.id.gift_entitlement_code_container); + if (relativeLayout != null) { + i = R.id.gift_entitlement_copy; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.gift_entitlement_copy); + if (materialButton != null) { + i = R.id.gift_link_subtext; + LinkifiedTextView linkifiedTextView = (LinkifiedTextView) view2.findViewById(R.id.gift_link_subtext); + if (linkifiedTextView != null) { + i = R.id.gift_purchased_dialog_confirm; + MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.gift_purchased_dialog_confirm); + if (materialButton2 != null) { + i = R.id.gift_purchased_dialog_subtext; + TextView textView2 = (TextView) view2.findViewById(R.id.gift_purchased_dialog_subtext); + if (textView2 != null) { + i = R.id.gift_purchased_icon; + ImageView imageView = (ImageView) view2.findViewById(R.id.gift_purchased_icon); + if (imageView != null) { + return new p((LinearLayout) view2, textView, relativeLayout, materialButton, linkifiedTextView, materialButton2, textView2, imageView); + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: GiftPurchasedDialog.kt */ + public static final class c implements View.OnClickListener { + public final /* synthetic */ a j; + + public c(a aVar) { + this.j = aVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + Function0 function0 = this.j.l; + if (function0 != null) { + function0.mo1invoke(); + } + this.j.dismiss(); + } + } + + /* compiled from: GiftPurchasedDialog.kt */ + public static final class d extends o implements Function1 { + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(a aVar) { + super(1); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(RenderContext renderContext) { + RenderContext renderContext2 = renderContext; + m.checkNotNullParameter(renderContext2, "$receiver"); + renderContext2.b("onInventoryClick", new b(this)); + return Unit.a; + } + } + + /* compiled from: GiftPurchasedDialog.kt */ + public static final class e implements View.OnClickListener { + public final /* synthetic */ a j; + public final /* synthetic */ String k; + + public e(a aVar, String str) { + this.j = aVar; + this.k = str; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + Context context = this.j.getContext(); + if (context != null) { + m.checkNotNullExpressionValue(context, "context ?: return@setOnClickListener"); + Object systemService = context.getSystemService("clipboard"); + if (!(systemService instanceof ClipboardManager)) { + systemService = null; + } + ClipboardManager clipboardManager = (ClipboardManager) systemService; + if (clipboardManager != null) { + clipboardManager.setPrimaryClip(ClipData.newPlainText("", this.k)); + } + a aVar = this.j; + KProperty[] kPropertyArr = a.j; + MaterialButton materialButton = aVar.g().d; + m.checkNotNullExpressionValue(materialButton, "binding.giftEntitlementCopy"); + materialButton.setText(context.getString(R.string.copied)); + this.j.g().c.setBackgroundResource(DrawableCompat.getThemedDrawableRes$default(context, (int) R.attr.gift_code_copied_outline, 0, 2, (Object) null)); + } + } + } + + public a() { + super(R.layout.gift_purchased_dialog); + } + + public final p g() { + return (p) this.m.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment + public void onResume() { + super.onResume(); + if (this.l == null) { + dismiss(); + } + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x00fa: APUT (r6v2 java.lang.Object[]), (0 ??[int, short, byte, char]), (r2v10 java.lang.CharSequence) */ + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + g().f.setOnClickListener(new c(this)); + String string = getArgumentsOrDefault().getString("ARG_SKU_NAME"); + GooglePlayInAppSku inAppSku = string != null ? GooglePlayInAppSkus.INSTANCE.getInAppSku(string) : null; + if ((inAppSku != null ? inAppSku.getSkuDetails() : null) == null) { + g().f.callOnClick(); + return; + } + LinkifiedTextView linkifiedTextView = g().e; + m.checkNotNullExpressionValue(linkifiedTextView, "binding.giftLinkSubtext"); + b.a.k.b.m(linkifiedTextView, R.string.application_store_gift_purchase_confirmation_subtext, new Object[0], new d(this)); + GiftingUtils giftingUtils = GiftingUtils.INSTANCE; + Integer iconForSku = giftingUtils.getIconForSku(inAppSku); + if (iconForSku != null) { + g().h.setImageResource(iconForSku.intValue()); + } + Pair pair = SubscriptionPlanType.Companion.from(inAppSku.getPaymentGatewaySkuId()).getInterval() == SubscriptionInterval.MONTHLY ? new Pair(Integer.valueOf((int) R.string.application_store_gift_purchase_confirm_monthly_mobile), Integer.valueOf((int) R.plurals.application_store_gift_purchase_confirm_monthly_mobile_intervalCount)) : new Pair(Integer.valueOf((int) R.string.application_store_gift_purchase_confirm_yearly_mobile), Integer.valueOf((int) R.plurals.application_store_gift_purchase_confirm_yearly_mobile_intervalCount)); + int intValue = ((Number) pair.component1()).intValue(); + int intValue2 = ((Number) pair.component2()).intValue(); + String string2 = getString(giftingUtils.getTierForSku(inAppSku.getSkuId()) == PremiumTier.TIER_1 ? R.string.premium_tier_1 : R.string.premium_tier_2); + m.checkNotNullExpressionValue(string2, "getString(\n if (G…ring.premium_tier_2\n )"); + TextView textView = g().g; + m.checkNotNullExpressionValue(textView, "binding.giftPurchasedDialogSubtext"); + Object[] objArr = new Object[2]; + Context context = getContext(); + objArr[0] = context != null ? StringResourceUtilsKt.getI18nPluralString(context, intValue2, 1, 1) : null; + objArr[1] = string2; + textView.setText(b.a.k.b.k(this, intValue, objArr, null, 4)); + String string3 = getArgumentsOrDefault().getString("ARG_GIFT_CODE", ""); + m.checkNotNullExpressionValue(string3, "giftCode"); + String generateGiftUrl = giftingUtils.generateGiftUrl(string3); + TextView textView2 = g().f170b; + m.checkNotNullExpressionValue(textView2, "binding.giftEntitlementCode"); + textView2.setText(generateGiftUrl); + g().d.setOnClickListener(new e(this, generateGiftUrl)); + } +} diff --git a/app/src/main/java/b/a/a/z/b.java b/app/src/main/java/b/a/a/z/b.java new file mode 100644 index 0000000000..205a715cb7 --- /dev/null +++ b/app/src/main/java/b/a/a/z/b.java @@ -0,0 +1,30 @@ +package b.a.a.z; + +import android.view.View; +import b.a.a.z.a; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import kotlin.reflect.KProperty; +/* compiled from: GiftPurchasedDialog.kt */ +public final class b extends o implements Function1 { + public final /* synthetic */ a.d this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(a.d dVar) { + super(1); + this.this$0 = dVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(View view) { + m.checkNotNullParameter(view, "it"); + a aVar = this.this$0.this$0; + KProperty[] kPropertyArr = a.j; + aVar.g().f.callOnClick(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/a/z/c.java b/app/src/main/java/b/a/a/z/c.java new file mode 100644 index 0000000000..2d4b0d4e49 --- /dev/null +++ b/app/src/main/java/b/a/a/z/c.java @@ -0,0 +1,596 @@ +package b.a.a.z; + +import android.content.Context; +import android.os.Bundle; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentActivity; +import androidx.fragment.app.FragmentManager; +import b.a.i.i4; +import com.discord.R; +import com.discord.api.application.Application; +import com.discord.api.premium.SubscriptionPlan; +import com.discord.app.AppDialog; +import com.discord.app.AppViewFlipper; +import com.discord.models.domain.ModelGift; +import com.discord.models.domain.ModelSku; +import com.discord.models.domain.ModelStoreListing; +import com.discord.rlottie.RLottieImageView; +import com.discord.stores.StoreGifting; +import com.discord.stores.StoreNotices; +import com.discord.stores.StoreStream; +import com.discord.utilities.dimen.DimenUtils; +import com.discord.utilities.error.Error; +import com.discord.utilities.font.FontUtils; +import com.discord.utilities.gifting.GiftStyle; +import com.discord.utilities.gifting.GiftStyleKt; +import com.discord.utilities.icon.IconUtils; +import com.discord.utilities.images.MGImages; +import com.discord.utilities.premium.PremiumUtils; +import com.discord.utilities.resources.StringResourceUtilsKt; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.utilities.views.ViewCoroutineScopeKt; +import com.discord.widgets.home.WidgetHome; +import com.discord.widgets.settings.premium.WidgetSettingsGifting; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.button.MaterialButton; +import d0.l; +import d0.t.n; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.NoWhenBranchMatchedException; +import kotlin.Unit; +import kotlin.coroutines.Continuation; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.functions.Function2; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +import kotlinx.coroutines.CoroutineScope; +import rx.Observable; +import rx.functions.Func2; +/* compiled from: WidgetGiftAcceptDialog.kt */ +public final class c extends AppDialog { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/WidgetAcceptGiftDialogBinding;", 0)}; + public static final a k = new a(null); + public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: WidgetGiftAcceptDialog.kt */ + public static final class a { + + /* compiled from: WidgetGiftAcceptDialog.kt */ + /* renamed from: b.a.a.z.c$a$a reason: collision with other inner class name */ + public static final class C0019a { + public final StoreGifting.GiftState a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f50b; + + public C0019a(StoreGifting.GiftState giftState, boolean z2) { + m.checkNotNullParameter(giftState, "giftState"); + this.a = giftState; + this.f50b = z2; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof C0019a)) { + return false; + } + C0019a aVar = (C0019a) obj; + return m.areEqual(this.a, aVar.a) && this.f50b == aVar.f50b; + } + + public int hashCode() { + StoreGifting.GiftState giftState = this.a; + int hashCode = (giftState != null ? giftState.hashCode() : 0) * 31; + boolean z2 = this.f50b; + if (z2) { + z2 = true; + } + int i = z2 ? 1 : 0; + int i2 = z2 ? 1 : 0; + int i3 = z2 ? 1 : 0; + return hashCode + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("GiftUiState(giftState="); + R.append(this.a); + R.append(", reduceMotion="); + return b.d.b.a.a.L(R, this.f50b, ")"); + } + } + + /* compiled from: WidgetGiftAcceptDialog.kt */ + public static final class b extends o implements Function1 { + public final /* synthetic */ long $channelId; + public final /* synthetic */ String $giftCode; + public final /* synthetic */ String $source; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(String str, String str2, long j) { + super(1); + this.$giftCode = str; + this.$source = str2; + this.$channelId = j; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Boolean invoke(FragmentActivity fragmentActivity) { + FragmentActivity fragmentActivity2 = fragmentActivity; + m.checkNotNullParameter(fragmentActivity2, "appActivity"); + StoreStream.Companion.getAnalytics().trackOpenGiftAcceptModal(this.$giftCode, this.$source, this.$channelId); + c cVar = new c(); + Bundle bundle = new Bundle(); + bundle.putString("ARG_GIFT_CODE", this.$giftCode); + cVar.setArguments(bundle); + FragmentManager supportFragmentManager = fragmentActivity2.getSupportFragmentManager(); + m.checkNotNullExpressionValue(supportFragmentManager, "appActivity.supportFragmentManager"); + cVar.show(supportFragmentManager, a0.getOrCreateKotlinClass(c.class).toString()); + return Boolean.TRUE; + } + } + + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + public final void a(String str, String str2, long j) { + m.checkNotNullParameter(str, "giftCode"); + m.checkNotNullParameter(str2, "source"); + m.checkNotNullParameter(str, "giftCode"); + StoreStream.Companion.getNotices().requestToShow(new StoreNotices.Notice("gift:" + str, null, 0, 0, false, n.listOf((Object[]) new d0.e0.c[]{a0.getOrCreateKotlinClass(WidgetSettingsGifting.class), a0.getOrCreateKotlinClass(WidgetHome.class)}), 0, false, 0, new b(str, str2, j), FontUtils.MAX_FONT_SCALING, null)); + } + } + + /* compiled from: WidgetGiftAcceptDialog.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, i4.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetAcceptGiftDialogBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public i4 invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.accept_gift_body_container; + LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.accept_gift_body_container); + if (linearLayout != null) { + i = R.id.accept_gift_body_image; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view2.findViewById(R.id.accept_gift_body_image); + if (simpleDraweeView != null) { + i = R.id.accept_gift_body_lottie; + RLottieImageView rLottieImageView = (RLottieImageView) view2.findViewById(R.id.accept_gift_body_lottie); + if (rLottieImageView != null) { + i = R.id.accept_gift_body_text; + TextView textView = (TextView) view2.findViewById(R.id.accept_gift_body_text); + if (textView != null) { + i = R.id.accept_gift_confirm; + MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.accept_gift_confirm); + if (materialButton != null) { + i = R.id.accept_gift_disclaimer_container; + LinearLayout linearLayout2 = (LinearLayout) view2.findViewById(R.id.accept_gift_disclaimer_container); + if (linearLayout2 != null) { + i = R.id.accept_gift_disclaimer_text; + LinkifiedTextView linkifiedTextView = (LinkifiedTextView) view2.findViewById(R.id.accept_gift_disclaimer_text); + if (linkifiedTextView != null) { + i = R.id.accept_gift_flipper; + AppViewFlipper appViewFlipper = (AppViewFlipper) view2.findViewById(R.id.accept_gift_flipper); + if (appViewFlipper != null) { + i = R.id.accept_gift_header; + TextView textView2 = (TextView) view2.findViewById(R.id.accept_gift_header); + if (textView2 != null) { + i = R.id.accept_gift_progress; + ProgressBar progressBar = (ProgressBar) view2.findViewById(R.id.accept_gift_progress); + if (progressBar != null) { + return new i4((LinearLayout) view2, linearLayout, simpleDraweeView, rLottieImageView, textView, materialButton, linearLayout2, linkifiedTextView, appViewFlipper, textView2, progressBar); + } + } + } + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: WidgetGiftAcceptDialog.kt */ + @d0.w.i.a.e(c = "com.discord.dialogs.gifting.WidgetGiftAcceptDialog$configureUI$1$1", f = "WidgetGiftAcceptDialog.kt", l = {117}, m = "invokeSuspend") + /* renamed from: b.a.a.z.c$c reason: collision with other inner class name */ + public static final class C0020c extends d0.w.i.a.k implements Function2, Object> { + public final /* synthetic */ RLottieImageView $this_apply; + public int label; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0020c(RLottieImageView rLottieImageView, Continuation continuation) { + super(2, continuation); + this.$this_apply = rLottieImageView; + } + + @Override // d0.w.i.a.a + public final Continuation create(Object obj, Continuation continuation) { + m.checkNotNullParameter(continuation, "completion"); + return new C0020c(this.$this_apply, continuation); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { + Continuation continuation2 = continuation; + m.checkNotNullParameter(continuation2, "completion"); + return new C0020c(this.$this_apply, continuation2).invokeSuspend(Unit.a); + } + + @Override // d0.w.i.a.a + public final Object invokeSuspend(Object obj) { + Object coroutine_suspended = d0.w.h.c.getCOROUTINE_SUSPENDED(); + int i = this.label; + if (i == 0) { + l.throwOnFailure(obj); + this.label = 1; + if (b.i.a.f.e.o.f.O(200, this) == coroutine_suspended) { + return coroutine_suspended; + } + } else if (i == 1) { + l.throwOnFailure(obj); + } else { + throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); + } + this.$this_apply.b(); + return Unit.a; + } + } + + /* compiled from: WidgetGiftAcceptDialog.kt */ + public static final class d implements Func2 { + public static final d j = new d(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // rx.functions.Func2 + public a.C0019a call(StoreGifting.GiftState giftState, Boolean bool) { + StoreGifting.GiftState giftState2 = giftState; + Boolean bool2 = bool; + m.checkNotNullExpressionValue(giftState2, "giftState"); + m.checkNotNullExpressionValue(bool2, "reduceMotion"); + return new a.C0019a(giftState2, bool2.booleanValue()); + } + } + + /* compiled from: WidgetGiftAcceptDialog.kt */ + public static final class e extends o implements Function1 { + public final /* synthetic */ c this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(c cVar) { + super(1); + this.this$0 = cVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(a.C0019a aVar) { + ModelSku sku; + ModelSku sku2; + String str; + ModelSku sku3; + a.C0019a aVar2 = aVar; + StoreGifting.GiftState giftState = aVar2.a; + int i = 0; + if (giftState instanceof StoreGifting.GiftState.Loading) { + c cVar = this.this$0; + KProperty[] kPropertyArr = c.j; + AppViewFlipper appViewFlipper = cVar.h().h; + m.checkNotNullExpressionValue(appViewFlipper, "binding.acceptGiftFlipper"); + appViewFlipper.setDisplayedChild(0); + } else { + CharSequence charSequence = null; + int i2 = 8; + if (giftState instanceof StoreGifting.GiftState.Resolved) { + StoreGifting.GiftState.Resolved resolved = (StoreGifting.GiftState.Resolved) giftState; + if (resolved.getGift().getRedeemed()) { + c cVar2 = this.this$0; + m.checkNotNullExpressionValue(aVar2, "giftUiState"); + KProperty[] kPropertyArr2 = c.j; + Objects.requireNonNull(cVar2); + ModelGift gift = resolved.getGift(); + cVar2.g(gift, aVar2); + ModelStoreListing storeListing = gift.getStoreListing(); + if (storeListing == null || (sku3 = storeListing.getSku()) == null || (str = sku3.getName()) == null) { + str = ""; + } + CharSequence i3 = cVar2.i(gift); + LinearLayout linearLayout = b.d.b.a.a.p0(b.d.b.a.a.p0(cVar2.h().i, "binding.acceptGiftHeader", gift.isAnyNitroGift() ? b.a.k.b.k(cVar2, R.string.gift_confirmation_header_success_nitro, new Object[]{str}, null, 4) : b.a.k.b.k(cVar2, R.string.gift_confirmation_header_success, new Object[0], null, 4), cVar2).d, "binding.acceptGiftBodyText", gift.isNitroClassicGift() ? b.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_nitro_classic_mobile, new Object[]{i3}, null, 4) : gift.isNitroGift() ? b.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_nitro_mobile, new Object[]{i3}, null, 4) : b.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_mobile, new Object[]{str}, null, 4), cVar2).f; + m.checkNotNullExpressionValue(linearLayout, "binding.acceptGiftDisclaimerContainer"); + linearLayout.setVisibility(8); + MaterialButton materialButton = cVar2.h().e; + m.checkNotNullExpressionValue(materialButton, "binding.acceptGiftConfirm"); + Context context = cVar2.getContext(); + if (context != null) { + charSequence = context.getText(R.string.gift_confirmation_button_success_mobile); + } + materialButton.setText(charSequence); + cVar2.h().e.setOnClickListener(new d(cVar2)); + } else if (resolved.getGift().getMaxUses() == resolved.getGift().getUses()) { + c cVar3 = this.this$0; + m.checkNotNullExpressionValue(aVar2, "giftUiState"); + KProperty[] kPropertyArr3 = c.j; + Objects.requireNonNull(cVar3); + cVar3.g(resolved.getGift(), aVar2); + TextView textView = cVar3.h().i; + m.checkNotNullExpressionValue(textView, "binding.acceptGiftHeader"); + b.a.k.b.n(textView, R.string.gift_confirmation_header_fail, new Object[0], null, 4); + TextView textView2 = cVar3.h().d; + m.checkNotNullExpressionValue(textView2, "binding.acceptGiftBodyText"); + b.a.k.b.n(textView2, R.string.gift_confirmation_body_claimed, new Object[0], null, 4); + LinearLayout linearLayout2 = cVar3.h().f; + m.checkNotNullExpressionValue(linearLayout2, "binding.acceptGiftDisclaimerContainer"); + linearLayout2.setVisibility(8); + MaterialButton materialButton2 = cVar3.h().e; + m.checkNotNullExpressionValue(materialButton2, "binding.acceptGiftConfirm"); + b.a.k.b.n(materialButton2, R.string.gift_confirmation_button_fail, new Object[0], null, 4); + cVar3.h().e.setOnClickListener(new e(cVar3)); + } else { + c cVar4 = this.this$0; + m.checkNotNullExpressionValue(aVar2, "giftUiState"); + KProperty[] kPropertyArr4 = c.j; + Objects.requireNonNull(cVar4); + ModelGift gift2 = ((StoreGifting.HasGift) giftState).getGift(); + cVar4.g(gift2, aVar2); + ModelStoreListing storeListing2 = gift2.getStoreListing(); + String name = (storeListing2 == null || (sku2 = storeListing2.getSku()) == null) ? null : sku2.getName(); + LinearLayout linearLayout3 = b.d.b.a.a.p0(b.d.b.a.a.p0(cVar4.h().i, "binding.acceptGiftHeader", gift2.isAnyNitroGift() ? b.a.k.b.k(cVar4, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name}, null, 4) : b.a.k.b.k(cVar4, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar4).d, "binding.acceptGiftBodyText", gift2.isAnyNitroGift() ? b.a.k.b.k(cVar4, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name, cVar4.i(gift2)}, null, 4) : b.a.k.b.k(cVar4, R.string.gift_confirmation_body_confirm, new Object[]{name}, null, 4), cVar4).f; + m.checkNotNullExpressionValue(linearLayout3, "binding.acceptGiftDisclaimerContainer"); + if (gift2.isAnyNitroGift()) { + i2 = 0; + } + linearLayout3.setVisibility(i2); + MaterialButton materialButton3 = cVar4.h().e; + m.checkNotNullExpressionValue(materialButton3, "binding.acceptGiftConfirm"); + b.a.k.b.n(materialButton3, R.string.gift_confirmation_button_confirm_mobile, new Object[0], null, 4); + cVar4.h().e.setOnClickListener(new f(gift2)); + } + } else if (giftState instanceof StoreGifting.GiftState.Redeeming) { + c cVar5 = this.this$0; + m.checkNotNullExpressionValue(aVar2, "giftUiState"); + KProperty[] kPropertyArr5 = c.j; + Objects.requireNonNull(cVar5); + ModelGift gift3 = ((StoreGifting.GiftState.Redeeming) giftState).getGift(); + cVar5.g(gift3, aVar2); + ModelStoreListing storeListing3 = gift3.getStoreListing(); + String name2 = (storeListing3 == null || (sku = storeListing3.getSku()) == null) ? null : sku.getName(); + MaterialButton materialButton4 = cVar5.h().e; + m.checkNotNullExpressionValue(materialButton4, "binding.acceptGiftConfirm"); + materialButton4.setVisibility(8); + ProgressBar progressBar = cVar5.h().j; + m.checkNotNullExpressionValue(progressBar, "binding.acceptGiftProgress"); + progressBar.setVisibility(0); + LinearLayout linearLayout4 = b.d.b.a.a.p0(b.d.b.a.a.p0(cVar5.h().i, "binding.acceptGiftHeader", gift3.isAnyNitroGift() ? b.a.k.b.k(cVar5, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name2}, null, 4) : b.a.k.b.k(cVar5, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar5).d, "binding.acceptGiftBodyText", gift3.isAnyNitroGift() ? b.a.k.b.k(cVar5, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name2, cVar5.i(gift3)}, null, 4) : b.a.k.b.k(cVar5, R.string.gift_confirmation_body_confirm, new Object[]{name2}, null, 4), cVar5).f; + m.checkNotNullExpressionValue(linearLayout4, "binding.acceptGiftDisclaimerContainer"); + if (!gift3.isAnyNitroGift()) { + i = 8; + } + linearLayout4.setVisibility(i); + } else if (giftState instanceof StoreGifting.GiftState.RedeemedFailed) { + c cVar6 = this.this$0; + StoreGifting.GiftState.RedeemedFailed redeemedFailed = (StoreGifting.GiftState.RedeemedFailed) giftState; + m.checkNotNullExpressionValue(aVar2, "giftUiState"); + KProperty[] kPropertyArr6 = c.j; + Objects.requireNonNull(cVar6); + cVar6.g(redeemedFailed.getGift(), aVar2); + TextView textView3 = cVar6.h().i; + m.checkNotNullExpressionValue(textView3, "binding.acceptGiftHeader"); + textView3.setText(b.a.k.b.k(cVar6, R.string.gift_confirmation_header_fail, new Object[0], null, 4)); + TextView textView4 = cVar6.h().d; + m.checkNotNullExpressionValue(textView4, "binding.acceptGiftBodyText"); + b.a.k.b.n(textView4, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4); + if (redeemedFailed.getCanRetry()) { + TextView textView5 = cVar6.h().d; + m.checkNotNullExpressionValue(textView5, "binding.acceptGiftBodyText"); + b.a.k.b.n(textView5, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4); + MaterialButton materialButton5 = cVar6.h().e; + m.checkNotNullExpressionValue(materialButton5, "binding.acceptGiftConfirm"); + Context context2 = cVar6.getContext(); + if (context2 != null) { + charSequence = context2.getText(R.string.retry); + } + materialButton5.setText(charSequence); + cVar6.h().e.setOnClickListener(new g(0, redeemedFailed)); + } else { + Integer errorCode = redeemedFailed.getErrorCode(); + if (errorCode != null && errorCode.intValue() == 50054) { + cVar6.h().d.setText(R.string.gift_confirmation_body_self_gift_no_payment); + } else if (errorCode != null && errorCode.intValue() == 100024) { + cVar6.h().d.setText(R.string.gift_confirmation_body_error_nitro_upgrade_downgrade); + } else if (errorCode != null && errorCode.intValue() == 100022) { + cVar6.h().d.setText(R.string.gift_confirmation_body_error_subscription_managed); + } else if (errorCode != null && errorCode.intValue() == 100025) { + cVar6.h().d.setText(R.string.gift_confirmation_body_error_invoice_open); + } + MaterialButton materialButton6 = cVar6.h().e; + m.checkNotNullExpressionValue(materialButton6, "binding.acceptGiftConfirm"); + Context context3 = cVar6.getContext(); + if (context3 != null) { + charSequence = context3.getText(R.string.gift_confirmation_button_fail); + } + materialButton6.setText(charSequence); + cVar6.h().e.setOnClickListener(new g(1, cVar6)); + } + } else if ((giftState instanceof StoreGifting.GiftState.Invalid) || (giftState instanceof StoreGifting.GiftState.LoadFailed) || (giftState instanceof StoreGifting.GiftState.Revoking)) { + this.this$0.dismiss(); + } + } + return Unit.a; + } + } + + /* compiled from: WidgetGiftAcceptDialog.kt */ + public static final class f extends o implements Function1 { + public final /* synthetic */ c this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(c cVar) { + super(1); + this.this$0 = cVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Error error) { + m.checkNotNullParameter(error, "it"); + this.this$0.dismiss(); + return Unit.a; + } + } + + public c() { + super(R.layout.widget_accept_gift_dialog); + } + + public final void g(ModelGift modelGift, a.C0019a aVar) { + ModelSku sku; + Application application; + String f2; + ModelSku sku2; + AppViewFlipper appViewFlipper = h().h; + m.checkNotNullExpressionValue(appViewFlipper, "binding.acceptGiftFlipper"); + appViewFlipper.setDisplayedChild(1); + String str = null; + if (modelGift.isAnyNitroGift()) { + GiftStyle customStyle = GiftStyleKt.getCustomStyle(modelGift); + if (customStyle != null) { + RLottieImageView rLottieImageView = h().c; + m.checkNotNullExpressionValue(rLottieImageView, "binding.acceptGiftBodyLottie"); + rLottieImageView.setVisibility(0); + SimpleDraweeView simpleDraweeView = h().f130b; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.acceptGiftBodyImage"); + simpleDraweeView.setVisibility(8); + RLottieImageView rLottieImageView2 = h().c; + if (aVar.f50b) { + rLottieImageView2.setImageResource(customStyle.getStaticRes()); + } else { + int animRes = customStyle.getAnimRes(); + RLottieImageView rLottieImageView3 = h().c; + m.checkNotNullExpressionValue(rLottieImageView3, "binding.acceptGiftBodyLottie"); + int dpToPixels = DimenUtils.dpToPixels(rLottieImageView3.getLayoutParams().width); + RLottieImageView rLottieImageView4 = h().c; + m.checkNotNullExpressionValue(rLottieImageView4, "binding.acceptGiftBodyLottie"); + rLottieImageView2.c(animRes, dpToPixels, DimenUtils.dpToPixels(rLottieImageView4.getLayoutParams().height)); + CoroutineScope coroutineScope = ViewCoroutineScopeKt.getCoroutineScope(rLottieImageView2); + if (coroutineScope != null) { + b.i.a.f.e.o.f.F0(coroutineScope, null, null, new C0020c(rLottieImageView2, null), 3, null); + } + } + m.checkNotNullExpressionValue(rLottieImageView2, "binding.acceptGiftBodyLo… }\n }\n }"); + } else { + MGImages mGImages = MGImages.INSTANCE; + SimpleDraweeView simpleDraweeView2 = h().f130b; + m.checkNotNullExpressionValue(simpleDraweeView2, "binding.acceptGiftBodyImage"); + MGImages.setImage$default(mGImages, simpleDraweeView2, PremiumUtils.INSTANCE.getNitroGiftIcon(modelGift), (MGImages.ChangeDetector) null, 4, (Object) null); + } + } else { + ModelStoreListing storeListing = modelGift.getStoreListing(); + if (!(storeListing == null || (sku = storeListing.getSku()) == null || (application = sku.getApplication()) == null || (f2 = application.f()) == null)) { + ModelStoreListing storeListing2 = modelGift.getStoreListing(); + str = IconUtils.getApplicationIcon$default((storeListing2 == null || (sku2 = storeListing2.getSku()) == null) ? 0 : sku2.getApplicationId(), f2, 0, 4, (Object) null); + } + h().f130b.setImageURI(str); + } + MaterialButton materialButton = h().e; + m.checkNotNullExpressionValue(materialButton, "binding.acceptGiftConfirm"); + materialButton.setVisibility(0); + ProgressBar progressBar = h().j; + m.checkNotNullExpressionValue(progressBar, "binding.acceptGiftProgress"); + progressBar.setVisibility(8); + } + + public final i4 h() { + return (i4) this.l.getValue((Fragment) this, j[0]); + } + + public final CharSequence i(ModelGift modelGift) { + int i; + SubscriptionPlan subscriptionPlan = modelGift.getSubscriptionPlan(); + if (subscriptionPlan == null) { + return ""; + } + int ordinal = subscriptionPlan.b().ordinal(); + if (ordinal == 0) { + i = R.plurals.gift_confirmation_nitro_time_frame_months_time; + } else if (ordinal == 1) { + i = R.plurals.gift_confirmation_nitro_time_frame_years_time; + } else { + throw new NoWhenBranchMatchedException(); + } + Context requireContext = requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + CharSequence i18nPluralString = StringResourceUtilsKt.getI18nPluralString(requireContext, i, subscriptionPlan.c(), Integer.valueOf(subscriptionPlan.c())); + int ordinal2 = subscriptionPlan.b().ordinal(); + if (ordinal2 == 0) { + return b.a.k.b.k(this, R.string.gift_confirmation_nitro_time_frame_months, new Object[]{i18nPluralString}, null, 4); + } + if (ordinal2 == 1) { + return b.a.k.b.k(this, R.string.gift_confirmation_nitro_time_frame_years, new Object[]{i18nPluralString}, null, 4); + } + throw new NoWhenBranchMatchedException(); + } + + @Override // androidx.fragment.app.Fragment + public void onDestroy() { + String string; + Bundle arguments = getArguments(); + if (!(arguments == null || (string = arguments.getString("ARG_GIFT_CODE")) == null)) { + a aVar = k; + m.checkNotNullExpressionValue(string, "it"); + Objects.requireNonNull(aVar); + m.checkNotNullParameter(string, "giftCode"); + String str = "gift:" + string; + if (str != null) { + StoreStream.Companion.getNotices().markDialogSeen(str); + } + } + super.onDestroy(); + } + + @Override // com.discord.app.AppDialog + public void onViewBound(View view) { + m.checkNotNullParameter(view, "view"); + super.onViewBound(view); + Bundle arguments = getArguments(); + String string = arguments != null ? arguments.getString("ARG_GIFT_CODE") : null; + if (string == null) { + dismiss(); + return; + } + LinkifiedTextView linkifiedTextView = h().g; + m.checkNotNullExpressionValue(linkifiedTextView, "binding.acceptGiftDisclaimerText"); + b.a.k.b.n(linkifiedTextView, R.string.gift_confirmation_body_confirm_nitro_disclaimer, new Object[]{b.a.d.f.a.a(360055386693L, null)}, null, 4); + StoreStream.Companion companion = StoreStream.Companion; + Observable j2 = Observable.j(companion.getGifting().requestGift(string), companion.getAccessibility().observeReducedMotionEnabled(), d.j); + m.checkNotNullExpressionValue(j2, "Observable.combineLatest…iftState, reduceMotion) }"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(j2, this, null, 2, null), c.class, (Context) null, (Function1) null, new f(this), (Function0) null, (Function0) null, new e(this), 54, (Object) null); + } +} diff --git a/app/src/main/java/b/a/a/z/d.java b/app/src/main/java/b/a/a/z/d.java new file mode 100644 index 0000000000..6317277780 --- /dev/null +++ b/app/src/main/java/b/a/a/z/d.java @@ -0,0 +1,16 @@ +package b.a.a.z; + +import android.view.View; +/* compiled from: WidgetGiftAcceptDialog.kt */ +public final class d implements View.OnClickListener { + public final /* synthetic */ c j; + + public d(c cVar) { + this.j = cVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.dismiss(); + } +} diff --git a/app/src/main/java/b/a/a/z/e.java b/app/src/main/java/b/a/a/z/e.java new file mode 100644 index 0000000000..659ad59ce9 --- /dev/null +++ b/app/src/main/java/b/a/a/z/e.java @@ -0,0 +1,16 @@ +package b.a.a.z; + +import android.view.View; +/* compiled from: WidgetGiftAcceptDialog.kt */ +public final class e implements View.OnClickListener { + public final /* synthetic */ c j; + + public e(c cVar) { + this.j = cVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.dismiss(); + } +} diff --git a/app/src/main/java/b/a/a/z/f.java b/app/src/main/java/b/a/a/z/f.java new file mode 100644 index 0000000000..67e3ae9640 --- /dev/null +++ b/app/src/main/java/b/a/a/z/f.java @@ -0,0 +1,18 @@ +package b.a.a.z; + +import android.view.View; +import com.discord.models.domain.ModelGift; +import com.discord.stores.StoreStream; +/* compiled from: WidgetGiftAcceptDialog.kt */ +public final class f implements View.OnClickListener { + public final /* synthetic */ ModelGift j; + + public f(ModelGift modelGift) { + this.j = modelGift; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + StoreStream.Companion.getGifting().acceptGift(this.j); + } +} diff --git a/app/src/main/java/b/a/b/a.java b/app/src/main/java/b/a/b/a.java new file mode 100644 index 0000000000..f95ebb80b9 --- /dev/null +++ b/app/src/main/java/b/a/b/a.java @@ -0,0 +1,256 @@ +package b.a.b; + +import b.i.d.e; +import com.discord.api.activity.ActivityPlatform; +import com.discord.api.activity.ActivityPlatformTypeAdapter; +import com.discord.api.activity.ActivityType; +import com.discord.api.activity.ActivityTypeTypeAdapter; +import com.discord.api.application.ApplicationType; +import com.discord.api.application.ApplicationTypeAdapter; +import com.discord.api.auth.OAuthScope; +import com.discord.api.auth.OAuthScopeTypeAdapter; +import com.discord.api.botuikit.ButtonStyle; +import com.discord.api.botuikit.ButtonStyleTypeAdapter; +import com.discord.api.botuikit.ComponentType; +import com.discord.api.botuikit.gson.ComponentRuntimeTypeAdapter; +import com.discord.api.botuikit.gson.ComponentTypeTypeAdapter; +import com.discord.api.commands.ApplicationCommandPermissionType; +import com.discord.api.commands.ApplicationCommandPermissionTypeTypeAdapter; +import com.discord.api.commands.ApplicationCommandType; +import com.discord.api.commands.CommandTypeAdapter; +import com.discord.api.friendsuggestions.AllowedInSuggestionsType; +import com.discord.api.friendsuggestions.AllowedInSuggestionsTypeAdapter; +import com.discord.api.friendsuggestions.FriendSuggestionReasonType; +import com.discord.api.friendsuggestions.FriendSuggestionReasonTypeAdapter; +import com.discord.api.guild.GuildExplicitContentFilter; +import com.discord.api.guild.GuildExplicitContentFilterTypeAdapter; +import com.discord.api.guild.GuildHubType; +import com.discord.api.guild.GuildHubTypeTypeAdapter; +import com.discord.api.guild.GuildMaxVideoChannelUsers; +import com.discord.api.guild.GuildMaxVideoChannelUsersTypeAdapter; +import com.discord.api.guild.GuildVerificationLevel; +import com.discord.api.guild.GuildVerificationLevelTypeAdapter; +import com.discord.api.guildjoinrequest.ApplicationStatus; +import com.discord.api.guildjoinrequest.ApplicationStatusTypeAdapter; +import com.discord.api.guildrolesubscription.GuildRoleSubscriptionBenefitType; +import com.discord.api.guildrolesubscription.GuildRoleSubscriptionBenefitTypeAdapter; +import com.discord.api.guildrolesubscription.PayoutGroupStatus; +import com.discord.api.guildrolesubscription.PayoutGroupStatusTypeAdapter; +import com.discord.api.guildrolesubscription.PayoutGroupType; +import com.discord.api.guildrolesubscription.PayoutGroupTypeAdapter; +import com.discord.api.guildrolesubscription.PayoutStatus; +import com.discord.api.guildrolesubscription.PayoutStatusAdapter; +import com.discord.api.guildscheduledevent.GuildScheduledEventEntityType; +import com.discord.api.guildscheduledevent.GuildScheduledEventEntityTypeTypeAdapter; +import com.discord.api.guildscheduledevent.GuildScheduledEventStatus; +import com.discord.api.guildscheduledevent.GuildScheduledEventStatusTypeAdapter; +import com.discord.api.localizedstring.LocalizedString; +import com.discord.api.localizedstring.LocalizedStringTypeAdapter; +import com.discord.api.message.activity.MessageActivityType; +import com.discord.api.message.activity.MessageActivityTypeTypeAdapter; +import com.discord.api.message.embed.EmbedType; +import com.discord.api.message.embed.EmbedTypeTypeAdapter; +import com.discord.api.premium.PremiumTier; +import com.discord.api.premium.PremiumTierTypeAdapter; +import com.discord.api.premium.PriceTierType; +import com.discord.api.premium.PriceTierTypeAdapter; +import com.discord.api.report.ReportNodeBottomButton; +import com.discord.api.report.ReportNodeBottomButtonTypeAdapter; +import com.discord.api.report.ReportNodeChild; +import com.discord.api.report.ReportNodeChildTypeAdapter; +import com.discord.api.report.ReportNodeElementData; +import com.discord.api.report.ReportNodeElementDataTypeAdapter; +import com.discord.api.science.AnalyticsSchemaTypeAdapter; +import com.discord.api.science.Science; +import com.discord.api.stageinstance.StageInstancePrivacyLevel; +import com.discord.api.stageinstance.StageInstancePrivacyLevelTypeAdapter; +import com.discord.api.sticker.StickerFormatType; +import com.discord.api.sticker.StickerFormatTypeTypeAdapter; +import com.discord.api.sticker.StickerType; +import com.discord.api.sticker.StickerTypeTypeAdapter; +import com.discord.api.user.NsfwAllowance; +import com.discord.api.user.NsfwAllowanceTypeAdapter; +import com.discord.api.user.Phone; +import com.discord.api.user.PhoneTypeAdapter; +import com.discord.api.utcdatetime.UtcDateTime; +import com.discord.api.utcdatetime.UtcDateTimeTypeAdapter; +import com.discord.nullserializable.NullSerializableTypeAdapterFactory; +import d0.o; +import d0.t.h0; +import d0.t.n; +import d0.z.d.m; +import java.util.List; +import java.util.Map; +import kotlin.jvm.functions.Function0; +/* compiled from: TypeAdapterRegistrar.kt */ +public final class a { + public static final Map, Function0> a = h0.mapOf(o.to(ActivityPlatform.class, b.j), o.to(ActivityType.class, C0021a.D), o.to(ApplicationStatus.class, C0021a.M), o.to(UtcDateTime.class, C0021a.N), o.to(NsfwAllowance.class, C0021a.O), o.to(PremiumTier.class, C0021a.P), o.to(ActivityType.class, C0021a.Q), o.to(Phone.class, C0021a.R), o.to(ApplicationCommandType.class, C0021a.S), o.to(OAuthScope.class, C0021a.j), o.to(GuildHubType.class, C0021a.k), o.to(GuildVerificationLevel.class, C0021a.l), o.to(GuildExplicitContentFilter.class, C0021a.m), o.to(GuildMaxVideoChannelUsers.class, C0021a.n), o.to(ComponentType.class, C0021a.o), o.to(ButtonStyle.class, C0021a.p), o.to(ReportNodeChild.class, C0021a.q), o.to(ReportNodeElementData.class, C0021a.r), o.to(ReportNodeBottomButton.class, C0021a.f52s), o.to(ApplicationCommandPermissionType.class, C0021a.t), o.to(StageInstancePrivacyLevel.class, C0021a.u), o.to(FriendSuggestionReasonType.class, C0021a.v), o.to(AllowedInSuggestionsType.class, C0021a.w), o.to(StickerFormatType.class, C0021a.f53x), o.to(LocalizedString.class, C0021a.f54y), o.to(MessageActivityType.class, C0021a.f55z), o.to(EmbedType.class, C0021a.A), o.to(StickerType.class, C0021a.B), o.to(GuildScheduledEventStatus.class, C0021a.C), o.to(GuildScheduledEventEntityType.class, C0021a.E), o.to(Science.Event.SchemaObject.class, C0021a.F), o.to(GuildRoleSubscriptionBenefitType.class, C0021a.G), o.to(PriceTierType.class, C0021a.H), o.to(ApplicationType.class, C0021a.I), o.to(PayoutStatus.class, C0021a.J), o.to(PayoutGroupType.class, C0021a.K), o.to(PayoutGroupStatus.class, C0021a.L)); + + /* renamed from: b reason: collision with root package name */ + public static final List f51b = n.listOf((Object[]) new b.i.d.o[]{ComponentRuntimeTypeAdapter.INSTANCE.a(), new NullSerializableTypeAdapterFactory()}); + + /* compiled from: kotlin-style lambda group */ + /* renamed from: b.a.b.a$a reason: collision with other inner class name */ + public static final class C0021a extends d0.z.d.o implements Function0 { + public static final C0021a A = new C0021a(17); + public static final C0021a B = new C0021a(18); + public static final C0021a C = new C0021a(19); + public static final C0021a D = new C0021a(20); + public static final C0021a E = new C0021a(21); + public static final C0021a F = new C0021a(22); + public static final C0021a G = new C0021a(23); + public static final C0021a H = new C0021a(24); + public static final C0021a I = new C0021a(25); + public static final C0021a J = new C0021a(26); + public static final C0021a K = new C0021a(27); + public static final C0021a L = new C0021a(28); + public static final C0021a M = new C0021a(29); + public static final C0021a N = new C0021a(30); + public static final C0021a O = new C0021a(31); + public static final C0021a P = new C0021a(32); + public static final C0021a Q = new C0021a(33); + public static final C0021a R = new C0021a(34); + public static final C0021a S = new C0021a(35); + public static final C0021a j = new C0021a(0); + public static final C0021a k = new C0021a(1); + public static final C0021a l = new C0021a(2); + public static final C0021a m = new C0021a(3); + public static final C0021a n = new C0021a(4); + public static final C0021a o = new C0021a(5); + public static final C0021a p = new C0021a(6); + public static final C0021a q = new C0021a(7); + public static final C0021a r = new C0021a(8); + + /* renamed from: s reason: collision with root package name */ + public static final C0021a f52s = new C0021a(9); + public static final C0021a t = new C0021a(10); + public static final C0021a u = new C0021a(11); + public static final C0021a v = new C0021a(12); + public static final C0021a w = new C0021a(13); + + /* renamed from: x reason: collision with root package name */ + public static final C0021a f53x = new C0021a(14); + + /* renamed from: y reason: collision with root package name */ + public static final C0021a f54y = new C0021a(15); + + /* renamed from: z reason: collision with root package name */ + public static final C0021a f55z = new C0021a(16); + public final /* synthetic */ int T; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0021a(int i) { + super(0); + this.T = i; + } + + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final Object mo1invoke() { + switch (this.T) { + case 0: + return new OAuthScopeTypeAdapter(); + case 1: + return new GuildHubTypeTypeAdapter(); + case 2: + return new GuildVerificationLevelTypeAdapter(); + case 3: + return new GuildExplicitContentFilterTypeAdapter(); + case 4: + return new GuildMaxVideoChannelUsersTypeAdapter(); + case 5: + return new ComponentTypeTypeAdapter(); + case 6: + return new ButtonStyleTypeAdapter(); + case 7: + return new ReportNodeChildTypeAdapter(); + case 8: + return new ReportNodeElementDataTypeAdapter(); + case 9: + return new ReportNodeBottomButtonTypeAdapter(); + case 10: + return new ApplicationCommandPermissionTypeTypeAdapter(); + case 11: + return new StageInstancePrivacyLevelTypeAdapter(); + case 12: + return new FriendSuggestionReasonTypeAdapter(); + case 13: + return new AllowedInSuggestionsTypeAdapter(); + case 14: + return new StickerFormatTypeTypeAdapter(); + case 15: + return new LocalizedStringTypeAdapter(); + case 16: + return new MessageActivityTypeTypeAdapter(); + case 17: + return new EmbedTypeTypeAdapter(); + case 18: + return new StickerTypeTypeAdapter(); + case 19: + return new GuildScheduledEventStatusTypeAdapter(); + case 20: + return new ActivityTypeTypeAdapter(); + case 21: + return new GuildScheduledEventEntityTypeTypeAdapter(); + case 22: + return new AnalyticsSchemaTypeAdapter(); + case 23: + return new GuildRoleSubscriptionBenefitTypeAdapter(); + case 24: + return new PriceTierTypeAdapter(); + case 25: + return new ApplicationTypeAdapter(); + case 26: + return new PayoutStatusAdapter(); + case 27: + return new PayoutGroupTypeAdapter(); + case 28: + return new PayoutGroupStatusTypeAdapter(); + case 29: + return new ApplicationStatusTypeAdapter(); + case 30: + return new UtcDateTimeTypeAdapter(); + case 31: + return new NsfwAllowanceTypeAdapter(); + case 32: + return new PremiumTierTypeAdapter(); + case 33: + return new ActivityTypeTypeAdapter(); + case 34: + return new PhoneTypeAdapter(); + case 35: + return new CommandTypeAdapter(); + default: + throw null; + } + } + } + + /* compiled from: TypeAdapterRegistrar.kt */ + public static final class b extends d0.z.d.o implements Function0 { + public static final b j = new b(); + + public b() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public ActivityPlatformTypeAdapter mo1invoke() { + return new ActivityPlatformTypeAdapter(); + } + } + + public static final e a(e eVar) { + m.checkNotNullParameter(eVar, "$this$registerDiscordApiTypeAdapters"); + for (Map.Entry, Function0> entry : a.entrySet()) { + eVar.b(entry.getKey(), entry.getValue().mo1invoke()); + } + m.checkNotNullParameter(eVar, "$this$registerDiscordApiTypeAdapterFactories"); + for (b.i.d.o oVar : f51b) { + eVar.e.add(oVar); + } + return eVar; + } +} diff --git a/app/src/main/java/b/a/c.java b/app/src/main/java/b/a/c.java new file mode 100644 index 0000000000..28a291ec45 --- /dev/null +++ b/app/src/main/java/b/a/c.java @@ -0,0 +1,8 @@ +package b.a; +/* compiled from: DiscordMediaCodec */ +public class c { + public static final String[] a = {"omx.qcom.", "omx.exynos.", "omx.intel.", "omx.nvidia.", "omx.mtk.", "omx.hisi.", "omx.img.topaz."}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f56b = {"samsung-sgh-i337", "nexus 4", "nexus 7"}; +} diff --git a/app/src/main/java/b/a/d/a.java b/app/src/main/java/b/a/d/a.java new file mode 100644 index 0000000000..84986af9c8 --- /dev/null +++ b/app/src/main/java/b/a/d/a.java @@ -0,0 +1,18 @@ +package b.a.d; + +import d0.z.d.m; +import kotlin.jvm.functions.Function3; +import rx.functions.Action3; +/* compiled from: App.kt */ +public final class a implements Action3 { + public final /* synthetic */ Function3 j; + + public a(Function3 function3) { + this.j = function3; + } + + @Override // rx.functions.Action3 + public final /* synthetic */ void call(Object obj, Object obj2, Object obj3) { + m.checkNotNullExpressionValue(this.j.invoke(obj, obj2, obj3), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/d/a0.java b/app/src/main/java/b/a/d/a0.java new file mode 100644 index 0000000000..ba0d100f6d --- /dev/null +++ b/app/src/main/java/b/a/d/a0.java @@ -0,0 +1,21 @@ +package b.a.d; + +import kotlin.jvm.functions.Function1; +import rx.Observable; +/* compiled from: AppTransformers.kt */ +public final class a0 implements Observable.c { + public final /* synthetic */ Function1 j; + public final /* synthetic */ Function1 k; + public final /* synthetic */ Function1 l; + + public a0(Function1 function1, Function1 function12, Function1 function13) { + this.j = function1; + this.k = function12; + this.l = function13; + } + + @Override // j0.k.b + public Object call(Object obj) { + return ((Observable) obj).Y(new z(this)); + } +} diff --git a/app/src/main/java/b/a/d/b.java b/app/src/main/java/b/a/d/b.java new file mode 100644 index 0000000000..23010a12a3 --- /dev/null +++ b/app/src/main/java/b/a/d/b.java @@ -0,0 +1,30 @@ +package b.a.d; + +import android.view.MenuItem; +import androidx.appcompat.widget.Toolbar; +import rx.functions.Action1; +import rx.functions.Action2; +/* compiled from: AppActivity.kt */ +public final class b implements Toolbar.OnMenuItemClickListener { + public final /* synthetic */ Toolbar a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Action2 f57b; + public final /* synthetic */ Action1 c; + + public b(Toolbar toolbar, int i, Action2 action2, Action1 action1) { + this.a = toolbar; + this.f57b = action2; + this.c = action1; + } + + @Override // androidx.appcompat.widget.Toolbar.OnMenuItemClickListener + public final boolean onMenuItemClick(MenuItem menuItem) { + Action2 action2 = this.f57b; + if (action2 == null) { + return true; + } + action2.call(menuItem, this.a.getContext()); + return true; + } +} diff --git a/app/src/main/java/b/a/d/b0.java b/app/src/main/java/b/a/d/b0.java new file mode 100644 index 0000000000..313b753e72 --- /dev/null +++ b/app/src/main/java/b/a/d/b0.java @@ -0,0 +1,24 @@ +package b.a.d; + +import d0.z.d.m; +import d0.z.d.o; +import j0.l.e.k; +import kotlin.jvm.functions.Function1; +import rx.Observable; +/* compiled from: AppTransformers.kt */ +public final class b0 extends o implements Function1> { + public final /* synthetic */ Object $switchedValue; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b0(Object obj) { + super(1); + this.$switchedValue = obj; + } + + @Override // kotlin.jvm.functions.Function1 + public Object invoke(Object obj) { + k kVar = new k(this.$switchedValue); + m.checkNotNullExpressionValue(kVar, "Observable.just(switchedValue)"); + return kVar; + } +} diff --git a/app/src/main/java/b/a/d/c.java b/app/src/main/java/b/a/d/c.java new file mode 100644 index 0000000000..d5aff5ea01 --- /dev/null +++ b/app/src/main/java/b/a/d/c.java @@ -0,0 +1,27 @@ +package b.a.d; + +import android.util.TypedValue; +import com.discord.app.AppActivity; +import d0.z.d.o; +import kotlin.jvm.functions.Function2; +/* compiled from: AppActivity.kt */ +public final class c extends o implements Function2 { + public final /* synthetic */ AppActivity this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(AppActivity appActivity) { + super(2); + this.this$0 = appActivity; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public TypedValue invoke(Integer num, Boolean bool) { + int intValue = num.intValue(); + boolean booleanValue = bool.booleanValue(); + TypedValue typedValue = new TypedValue(); + this.this$0.getTheme().resolveAttribute(intValue, typedValue, booleanValue); + return typedValue; + } +} diff --git a/app/src/main/java/b/a/d/c0.java b/app/src/main/java/b/a/d/c0.java new file mode 100644 index 0000000000..9feb8df0d1 --- /dev/null +++ b/app/src/main/java/b/a/d/c0.java @@ -0,0 +1,23 @@ +package b.a.d; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.functions.Action1; +/* compiled from: AppTransformers.kt */ +public final class c0 extends o implements Function1 { + public final /* synthetic */ Action1 $action; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c0(Action1 action1) { + super(1); + this.$action = action1; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Object obj) { + this.$action.call(obj); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/d/d.java b/app/src/main/java/b/a/d/d.java new file mode 100644 index 0000000000..61006f792c --- /dev/null +++ b/app/src/main/java/b/a/d/d.java @@ -0,0 +1,48 @@ +package b.a.d; + +import com.discord.app.AppTransitionActivity; +import d0.z.d.m; +import java.util.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.TreeMap; +import kotlin.jvm.functions.Function0; +/* compiled from: AppEventHandlerActivity.kt */ +public abstract class d extends AppTransitionActivity { + public final TreeMap>> l = new TreeMap<>(); + + @Override // com.discord.app.AppTransitionActivity, androidx.activity.ComponentActivity, android.app.Activity + public void onBackPressed() { + boolean z2; + Collection>> values = this.l.values(); + m.checkNotNullExpressionValue(values, "backPressHandlers\n .values"); + Iterator it = values.iterator(); + loop0: + while (true) { + if (!it.hasNext()) { + z2 = false; + break; + } + Collection values2 = ((HashMap) it.next()).values(); + m.checkNotNullExpressionValue(values2, "handlers\n .values"); + Iterator it2 = values2.iterator(); + while (true) { + if (it2.hasNext()) { + if (((Boolean) ((Function0) it2.next()).mo1invoke()).booleanValue()) { + z2 = true; + break loop0; + } + } + } + } + if (!z2 && !isFinishing()) { + try { + super.onBackPressed(); + } catch (Exception e) { + if (!(e instanceof IllegalArgumentException) && !(e instanceof IllegalStateException)) { + throw e; + } + } + } + } +} diff --git a/app/src/main/java/b/a/d/d0.java b/app/src/main/java/b/a/d/d0.java new file mode 100644 index 0000000000..dd0f0142b5 --- /dev/null +++ b/app/src/main/java/b/a/d/d0.java @@ -0,0 +1,19 @@ +package b.a.d; + +import androidx.lifecycle.ViewModel; +import androidx.lifecycle.ViewModelProvider; +import d0.z.d.m; +/* compiled from: AppViewModelDelegates.kt */ +public final class d0 implements ViewModelProvider.Factory { + public final /* synthetic */ e0 a; + + public d0(e0 e0Var) { + this.a = e0Var; + } + + @Override // androidx.lifecycle.ViewModelProvider.Factory + public T create(Class cls) { + m.checkNotNullParameter(cls, "modelClass"); + return (T) ((ViewModel) this.a.$viewModelProducer.mo1invoke()); + } +} diff --git a/app/src/main/java/b/a/d/e.java b/app/src/main/java/b/a/d/e.java new file mode 100644 index 0000000000..b60fc5bd65 --- /dev/null +++ b/app/src/main/java/b/a/d/e.java @@ -0,0 +1,30 @@ +package b.a.d; + +import b.a.k.b; +import com.discord.R; +import com.discord.app.AppFragment; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: AppFragment.kt */ +public final class e extends o implements Function1 { + public final /* synthetic */ AppFragment.d this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(AppFragment.d dVar) { + super(1); + this.this$0 = dVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Exception exc) { + Exception exc2 = exc; + m.checkNotNullParameter(exc2, "e"); + AppFragment appFragment = this.this$0.this$0; + m.j(appFragment, b.k(appFragment, R.string.unable_to_open_media_chooser, new Object[]{exc2.getMessage()}, null, 4), 0, 4); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/d/e0.java b/app/src/main/java/b/a/d/e0.java new file mode 100644 index 0000000000..5d801c652e --- /dev/null +++ b/app/src/main/java/b/a/d/e0.java @@ -0,0 +1,22 @@ +package b.a.d; + +import androidx.lifecycle.ViewModelProvider; +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: AppViewModelDelegates.kt */ +public final class e0 extends o implements Function0 { + public final /* synthetic */ Function0 $viewModelProducer; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e0(Function0 function0) { + super(0); + this.$viewModelProducer = function0; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public ViewModelProvider.Factory mo1invoke() { + return new d0(this); + } +} diff --git a/app/src/main/java/b/a/d/f.java b/app/src/main/java/b/a/d/f.java new file mode 100644 index 0000000000..b5bae2e2f4 --- /dev/null +++ b/app/src/main/java/b/a/d/f.java @@ -0,0 +1,49 @@ +package b.a.d; + +import android.annotation.SuppressLint; +import b.d.b.a.a; +import com.discord.stores.StoreStream; +import com.discord.widgets.chat.input.MentionUtilsKt; +import d0.z.d.m; +import java.util.Objects; +/* compiled from: AppHelpDesk.kt */ +public final class f { + public static final f a = new f(); + + public static final String c() { + StringBuilder V = a.V("https://support.discord.com", "/hc/"); + String locale = StoreStream.Companion.getUserSettingsSystem().getLocale(); + Objects.requireNonNull(locale, "null cannot be cast to non-null type java.lang.String"); + String lowerCase = locale.toLowerCase(); + m.checkNotNullExpressionValue(lowerCase, "(this as java.lang.String).toLowerCase()"); + V.append(lowerCase); + V.append("/requests/new"); + return V.toString(); + } + + public final String a(long j, String str) { + if (str != null) { + StringBuilder V = a.V("https://support.discord.com", "/hc/"); + V.append(b()); + V.append("/articles/"); + V.append(j); + V.append(MentionUtilsKt.CHANNELS_CHAR); + V.append(str); + return V.toString(); + } + StringBuilder V2 = a.V("https://support.discord.com", "/hc/"); + V2.append(b()); + V2.append("/articles/"); + V2.append(j); + return V2.toString(); + } + + @SuppressLint({"DefaultLocale"}) + public final String b() { + String locale = StoreStream.Companion.getUserSettingsSystem().getLocale(); + Objects.requireNonNull(locale, "null cannot be cast to non-null type java.lang.String"); + String lowerCase = locale.toLowerCase(); + m.checkNotNullExpressionValue(lowerCase, "(this as java.lang.String).toLowerCase()"); + return lowerCase; + } +} diff --git a/app/src/main/java/b/a/d/f0.java b/app/src/main/java/b/a/d/f0.java new file mode 100644 index 0000000000..80fab546b7 --- /dev/null +++ b/app/src/main/java/b/a/d/f0.java @@ -0,0 +1,22 @@ +package b.a.d; + +import androidx.fragment.app.Fragment; +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: AppViewModelDelegates.kt */ +public final class f0 extends o implements Function0 { + public final /* synthetic */ Fragment $this_appViewModels; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f0(Fragment fragment) { + super(0); + this.$this_appViewModels = fragment; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Fragment mo1invoke() { + return this.$this_appViewModels; + } +} diff --git a/app/src/main/java/b/a/d/g.java b/app/src/main/java/b/a/d/g.java new file mode 100644 index 0000000000..1aaf424747 --- /dev/null +++ b/app/src/main/java/b/a/d/g.java @@ -0,0 +1,39 @@ +package b.a.d; + +import com.discord.app.AppLog; +import com.discord.utilities.logging.Logger; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function3; +/* compiled from: AppLog.kt */ +public final class g extends o implements Function3 { + public final /* synthetic */ String $tag; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(String str) { + super(3); + this.$tag = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function3 + public Unit invoke(Integer num, String str, Exception exc) { + int intValue = num.intValue(); + String str2 = str; + Exception exc2 = exc; + m.checkNotNullParameter(str2, "message"); + if (intValue == 4) { + AppLog appLog = AppLog.g; + appLog.i(this.$tag + ' ' + str2, exc2); + } else if (intValue == 5) { + AppLog appLog2 = AppLog.g; + appLog2.w(this.$tag + ' ' + str2, exc2); + } else if (intValue == 6 || intValue == 7) { + AppLog appLog3 = AppLog.g; + Logger.e$default(appLog3, this.$tag + ' ' + str2, exc2, null, 4, null); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/d/g0.java b/app/src/main/java/b/a/d/g0.java new file mode 100644 index 0000000000..2584563f4f --- /dev/null +++ b/app/src/main/java/b/a/d/g0.java @@ -0,0 +1,19 @@ +package b.a.d; + +import androidx.lifecycle.ViewModel; +import androidx.lifecycle.ViewModelProvider; +import d0.z.d.m; +/* compiled from: AppViewModelDelegates.kt */ +public final class g0 implements ViewModelProvider.Factory { + public final /* synthetic */ h0 a; + + public g0(h0 h0Var) { + this.a = h0Var; + } + + @Override // androidx.lifecycle.ViewModelProvider.Factory + public T create(Class cls) { + m.checkNotNullParameter(cls, "modelClass"); + return (T) ((ViewModel) this.a.$viewModelProducer.mo1invoke()); + } +} diff --git a/app/src/main/java/b/a/d/h.java b/app/src/main/java/b/a/d/h.java new file mode 100644 index 0000000000..1c0ac26188 --- /dev/null +++ b/app/src/main/java/b/a/d/h.java @@ -0,0 +1,377 @@ +package b.a.d; + +import android.os.Build; +import androidx.activity.ComponentActivity; +import androidx.activity.result.ActivityResultCallback; +import androidx.activity.result.ActivityResultLauncher; +import androidx.activity.result.contract.ActivityResultContracts; +import androidx.annotation.MainThread; +import androidx.appcompat.widget.ActivityChooserModel; +import androidx.core.content.ContextCompat; +import com.discord.R; +import com.discord.app.AppPermissionsRequests; +import com.discord.stores.StoreStream; +import com.discord.utilities.time.ClockFactory; +import d0.z.d.m; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: AppPermissions.kt */ +public final class h implements AppPermissionsRequests { + @Deprecated + public static final HashMap j; + public static final a k = new a(null); + public Function0 l; + public Function1, Unit> m; + public long n; + public final ActivityResultLauncher o; + public final ComponentActivity p; + + /* compiled from: AppPermissions.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: AppPermissions.kt */ + public static final class b implements ActivityResultCallback> { + public final /* synthetic */ h a; + + public b(h hVar) { + this.a = hVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // androidx.activity.result.ActivityResultCallback + public void onActivityResult(Map map) { + Map map2 = map; + if (map2.containsValue(Boolean.FALSE)) { + Function1, Unit> function1 = this.a.m; + if (function1 != null) { + m.checkNotNullExpressionValue(map2, "grantResults"); + function1.invoke(map2); + } + } else { + Function0 function0 = this.a.l; + if (function0 != null) { + function0.mo1invoke(); + } + } + h hVar = this.a; + hVar.m = null; + hVar.l = null; + hVar.n = 0; + } + } + + /* compiled from: AppPermissions.kt */ + public static final class c extends o implements Function1, Unit> { + public final /* synthetic */ Function0 $onFailure; + public final /* synthetic */ h this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(h hVar, Function0 function0) { + super(1); + this.this$0 = hVar; + this.$onFailure = function0; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Map map) { + m.checkNotNullParameter(map, "it"); + Function0 function0 = this.$onFailure; + if (function0 == null || ((Unit) function0.mo1invoke()) == null) { + h.a(this.this$0, R.string.permission_qr_scanner_denied); + } + return Unit.a; + } + } + + /* compiled from: AppPermissions.kt */ + public static final class d extends o implements Function1, Unit> { + public final /* synthetic */ Function0 $onFailure; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(Function0 function0) { + super(1); + this.$onFailure = function0; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Map map) { + m.checkNotNullParameter(map, "it"); + this.$onFailure.mo1invoke(); + return Unit.a; + } + } + + /* compiled from: AppPermissions.kt */ + public static final class e extends o implements Function1, Unit> { + public final /* synthetic */ h this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(h hVar) { + super(1); + this.this$0 = hVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Map map) { + m.checkNotNullParameter(map, "it"); + h.a(this.this$0, R.string.permission_media_denied); + return Unit.a; + } + } + + /* compiled from: AppPermissions.kt */ + public static final class f extends o implements Function1, Unit> { + public final /* synthetic */ h this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(h hVar) { + super(1); + this.this$0 = hVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Map map) { + m.checkNotNullParameter(map, "it"); + h.a(this.this$0, R.string.permission_media_download_denied); + return Unit.a; + } + } + + /* compiled from: AppPermissions.kt */ + public static final class g extends o implements Function0 { + public final /* synthetic */ boolean $hadPermissions; + public final /* synthetic */ Function0 $onSuccess; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(boolean z2, Function0 function0) { + super(0); + this.$hadPermissions = z2; + this.$onSuccess = function0; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + if (!this.$hadPermissions) { + StoreStream.Companion.getMediaEngine().handleMicrophonePermissionGranted(); + } + StoreStream.Companion.getMediaEngine().setAudioInputEnabled(true); + this.$onSuccess.mo1invoke(); + return Unit.a; + } + } + + /* compiled from: AppPermissions.kt */ + /* renamed from: b.a.d.h$h reason: collision with other inner class name */ + public static final class C0022h extends o implements Function1, Unit> { + public final /* synthetic */ Function0 $onFailure; + public final /* synthetic */ h this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0022h(h hVar, Function0 function0) { + super(1); + this.this$0 = hVar; + this.$onFailure = function0; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Map map) { + m.checkNotNullParameter(map, "it"); + Function0 function0 = this.$onFailure; + if (function0 == null || ((Unit) function0.mo1invoke()) == null) { + h.a(this.this$0, R.string.permission_microphone_denied); + } + return Unit.a; + } + } + + /* compiled from: AppPermissions.kt */ + public static final class i extends o implements Function1, Unit> { + public final /* synthetic */ h this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(h hVar) { + super(1); + this.this$0 = hVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Map map) { + Map map2 = map; + m.checkNotNullParameter(map2, "grantResults"); + Object obj = map2.get("android.permission.RECORD_AUDIO"); + if (obj == null) { + obj = Boolean.FALSE; + } + if (!((Boolean) obj).booleanValue()) { + h.a(this.this$0, R.string.permission_microphone_denied); + } else { + Object obj2 = map2.get("android.permission.CAMERA"); + if (obj2 == null) { + obj2 = Boolean.FALSE; + } + if (!((Boolean) obj2).booleanValue()) { + h.a(this.this$0, R.string.no_camera_access); + } else { + h.a(this.this$0, R.string.no_camera_access); + } + } + return Unit.a; + } + } + + static { + HashMap hashMap = new HashMap<>(); + j = hashMap; + hashMap.put(211, new String[]{"android.permission.RECORD_AUDIO"}); + hashMap.put(210, new String[]{"android.permission.RECORD_AUDIO", "android.permission.CAMERA"}); + hashMap.put(222, new String[]{"android.permission.CAMERA", "android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE"}); + hashMap.put(213, new String[]{"android.permission.WRITE_EXTERNAL_STORAGE"}); + hashMap.put(214, new String[]{"android.permission.CAMERA"}); + hashMap.put(215, new String[]{"android.permission.READ_CONTACTS"}); + } + + public h(ComponentActivity componentActivity) { + m.checkNotNullParameter(componentActivity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + this.p = componentActivity; + ActivityResultLauncher registerForActivityResult = componentActivity.registerForActivityResult(new ActivityResultContracts.RequestMultiplePermissions(), new b(this)); + m.checkNotNullExpressionValue(registerForActivityResult, "activity.registerForActi…rtTimeMillis = 0L\n }"); + this.o = registerForActivityResult; + } + + public static final void a(h hVar, int i2) { + m.g(hVar.p, i2, 0, null, 12); + } + + public final boolean b(int i2) { + String[] strArr = j.get(Integer.valueOf(i2)); + if (strArr == null) { + return false; + } + m.checkNotNullExpressionValue(strArr, "PERMISSION_GROUPS[requestCode] ?: return false"); + ArrayList arrayList = new ArrayList(strArr.length); + int length = strArr.length; + int i3 = 0; + while (true) { + boolean z2 = true; + if (i3 >= length) { + break; + } + String str = strArr[i3]; + if (m.areEqual(str, "android.permission.WRITE_EXTERNAL_STORAGE")) { + if (!(Build.VERSION.SDK_INT < 29)) { + arrayList.add(Boolean.valueOf(z2)); + i3++; + } + } + if (ContextCompat.checkSelfPermission(this.p, str) != 0) { + z2 = false; + } + arrayList.add(Boolean.valueOf(z2)); + i3++; + } + if (!arrayList.isEmpty()) { + for (Boolean bool : arrayList) { + if (!bool.booleanValue()) { + return false; + } + } + } + return true; + } + + public final void c(int i2, Function0 function0, Function1, Unit> function1) { + String[] strArr = j.get(Integer.valueOf(i2)); + if (strArr != null) { + m.checkNotNullExpressionValue(strArr, "PERMISSION_GROUPS[requestCode] ?: return"); + if (b(i2)) { + function0.mo1invoke(); + return; + } + if (!(ClockFactory.get().currentTimeMillis() - this.n < 350)) { + this.l = function0; + this.m = function1; + this.n = ClockFactory.get().currentTimeMillis(); + this.o.launch(strArr); + } + } + } + + @Override // com.discord.app.AppPermissionsRequests + @MainThread + public boolean hasMedia() { + return b(222); + } + + @Override // com.discord.app.AppPermissionsRequests + @MainThread + public void requestCameraQRScanner(Function0 function0) { + m.checkNotNullParameter(function0, "onSuccess"); + requestCameraQRScanner(function0, null); + } + + @Override // com.discord.app.AppPermissionsRequests + @MainThread + public void requestCameraQRScanner(Function0 function0, Function0 function02) { + m.checkNotNullParameter(function0, "onSuccess"); + c(214, function0, new c(this, function02)); + } + + @Override // com.discord.app.AppPermissionsRequests + @MainThread + public void requestContacts(Function0 function0, Function0 function02) { + m.checkNotNullParameter(function0, "onSuccess"); + m.checkNotNullParameter(function02, "onFailure"); + c(215, function0, new d(function02)); + } + + @Override // com.discord.app.AppPermissionsRequests + @MainThread + public void requestMedia(Function0 function0) { + m.checkNotNullParameter(function0, "onSuccess"); + c(222, function0, new e(this)); + } + + @Override // com.discord.app.AppPermissionsRequests + @MainThread + public void requestMediaDownload(Function0 function0) { + m.checkNotNullParameter(function0, "onSuccess"); + c(213, function0, new f(this)); + } + + @Override // com.discord.app.AppPermissionsRequests + @MainThread + public void requestMicrophone(Function0 function0, Function0 function02) { + m.checkNotNullParameter(function02, "onSuccess"); + c(211, new g(b(211), function02), new C0022h(this, function0)); + } + + @Override // com.discord.app.AppPermissionsRequests + @MainThread + public void requestVideoCallPermissions(Function0 function0) { + m.checkNotNullParameter(function0, "onSuccess"); + c(210, function0, new i(this)); + } +} diff --git a/app/src/main/java/b/a/d/h0.java b/app/src/main/java/b/a/d/h0.java new file mode 100644 index 0000000000..8269214b5c --- /dev/null +++ b/app/src/main/java/b/a/d/h0.java @@ -0,0 +1,22 @@ +package b.a.d; + +import androidx.lifecycle.ViewModelProvider; +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: AppViewModelDelegates.kt */ +public final class h0 extends o implements Function0 { + public final /* synthetic */ Function0 $viewModelProducer; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h0(Function0 function0) { + super(0); + this.$viewModelProducer = function0; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public ViewModelProvider.Factory mo1invoke() { + return new g0(this); + } +} diff --git a/app/src/main/java/b/a/d/i.java b/app/src/main/java/b/a/d/i.java new file mode 100644 index 0000000000..30481d911b --- /dev/null +++ b/app/src/main/java/b/a/d/i.java @@ -0,0 +1,16 @@ +package b.a.d; + +import com.discord.app.AppActivity; +/* compiled from: AppScreen.kt */ +public final class i implements Runnable { + public final /* synthetic */ AppActivity j; + + public i(AppActivity appActivity) { + this.j = appActivity; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.recreate(); + } +} diff --git a/app/src/main/java/b/a/d/i0.java b/app/src/main/java/b/a/d/i0.java new file mode 100644 index 0000000000..d2d3d50f6f --- /dev/null +++ b/app/src/main/java/b/a/d/i0.java @@ -0,0 +1,14 @@ +package b.a.d; + +import j0.k.b; +/* compiled from: DiscordConnectService.kt */ +public final class i0 implements b { + public static final i0 j = new i0(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Boolean call(Boolean bool) { + return bool; + } +} diff --git a/app/src/main/java/b/a/d/j.java b/app/src/main/java/b/a/d/j.java new file mode 100644 index 0000000000..c336a85787 --- /dev/null +++ b/app/src/main/java/b/a/d/j.java @@ -0,0 +1,204 @@ +package b.a.d; + +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.os.Parcelable; +import androidx.activity.result.ActivityResultLauncher; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import androidx.fragment.app.FragmentTransaction; +import b.c.a.a0.d; +import com.discord.app.AppActivity; +import com.discord.app.AppComponent; +import com.discord.app.AppFragment; +import com.discord.app.AppLog; +import com.discord.stores.StoreNavigation; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreTabsNavigation; +import com.discord.widgets.auth.WidgetAgeVerify; +import com.discord.widgets.auth.WidgetAuthAgeGated; +import com.discord.widgets.auth.WidgetAuthBirthday; +import com.discord.widgets.auth.WidgetAuthCaptcha; +import com.discord.widgets.auth.WidgetAuthLanding; +import com.discord.widgets.auth.WidgetAuthLogin; +import com.discord.widgets.auth.WidgetAuthMfa; +import com.discord.widgets.auth.WidgetAuthPhoneVerify; +import com.discord.widgets.auth.WidgetAuthRegisterAccountInformation; +import com.discord.widgets.auth.WidgetAuthRegisterIdentity; +import com.discord.widgets.auth.WidgetAuthResetPassword; +import com.discord.widgets.auth.WidgetAuthUndeleteAccount; +import com.discord.widgets.auth.WidgetOauth2Authorize; +import com.discord.widgets.auth.WidgetOauth2AuthorizeSamsung; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsEditPermissions; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsOverview; +import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventSettings; +import com.discord.widgets.nux.WidgetNuxChannelPrompt; +import com.discord.widgets.servers.WidgetServerNotifications; +import com.discord.widgets.servers.WidgetServerSettingsBans; +import com.discord.widgets.servers.WidgetServerSettingsChannels; +import com.discord.widgets.servers.WidgetServerSettingsEditMember; +import com.discord.widgets.servers.WidgetServerSettingsEditRole; +import com.discord.widgets.servers.WidgetServerSettingsEmojis; +import com.discord.widgets.servers.WidgetServerSettingsEmojisEdit; +import com.discord.widgets.servers.WidgetServerSettingsIntegrations; +import com.discord.widgets.servers.WidgetServerSettingsModeration; +import com.discord.widgets.servers.WidgetServerSettingsOverview; +import com.discord.widgets.servers.WidgetServerSettingsRoles; +import com.discord.widgets.servers.WidgetServerSettingsSecurity; +import com.discord.widgets.servers.WidgetServerSettingsVanityUrl; +import com.discord.widgets.servers.community.WidgetServerSettingsCommunityOverview; +import com.discord.widgets.servers.community.WidgetServerSettingsEnableCommunitySteps; +import com.discord.widgets.servers.settings.invites.WidgetServerSettingsInstantInvites; +import com.discord.widgets.servers.settings.members.WidgetServerSettingsMembers; +import com.discord.widgets.settings.WidgetSettingsAppearance; +import com.discord.widgets.settings.WidgetSettingsAuthorizedApps; +import com.discord.widgets.settings.WidgetSettingsBehavior; +import com.discord.widgets.settings.WidgetSettingsLanguage; +import com.discord.widgets.settings.WidgetSettingsMedia; +import com.discord.widgets.settings.WidgetSettingsNotifications; +import com.discord.widgets.settings.WidgetSettingsPrivacy; +import com.discord.widgets.settings.WidgetSettingsVoice; +import com.discord.widgets.settings.account.WidgetSettingsAccount; +import com.discord.widgets.settings.account.WidgetSettingsAccountBackupCodes; +import com.discord.widgets.settings.account.WidgetSettingsAccountChangePassword; +import com.discord.widgets.settings.account.WidgetSettingsAccountEmailEdit; +import com.discord.widgets.settings.account.WidgetSettingsAccountUsernameEdit; +import com.discord.widgets.settings.account.WidgetSettingsBlockedUsers; +import com.discord.widgets.settings.account.mfa.WidgetEnableMFASteps; +import com.discord.widgets.settings.connections.WidgetSettingsUserConnections; +import com.discord.widgets.settings.developer.WidgetSettingsDeveloper; +import com.discord.widgets.settings.premium.WidgetChoosePlan; +import com.discord.widgets.settings.premium.WidgetSettingsPremium; +import com.discord.widgets.tabs.WidgetTabsHost; +import com.discord.widgets.user.WidgetUserPasswordVerify; +import com.discord.widgets.user.account.WidgetUserAccountVerify; +import com.discord.widgets.user.email.WidgetUserEmailUpdate; +import com.discord.widgets.user.email.WidgetUserEmailVerify; +import com.discord.widgets.user.phone.WidgetUserPhoneManage; +import com.discord.widgets.user.phone.WidgetUserPhoneVerify; +import d0.e0.c; +import d0.t.m; +import d0.t.n; +import d0.z.d.a0; +import java.util.List; +/* compiled from: AppScreen.kt */ +public final class j { + public static final List> a = n.listOf((Object[]) new c[]{a0.getOrCreateKotlinClass(WidgetAuthLanding.class), a0.getOrCreateKotlinClass(WidgetAuthLogin.class), a0.getOrCreateKotlinClass(WidgetAuthRegisterIdentity.class), a0.getOrCreateKotlinClass(WidgetAuthRegisterAccountInformation.class), a0.getOrCreateKotlinClass(WidgetAuthUndeleteAccount.class), a0.getOrCreateKotlinClass(WidgetAuthCaptcha.class), a0.getOrCreateKotlinClass(WidgetAuthMfa.class), a0.getOrCreateKotlinClass(WidgetAuthBirthday.class), a0.getOrCreateKotlinClass(WidgetAuthAgeGated.class), a0.getOrCreateKotlinClass(WidgetAuthPhoneVerify.class), a0.getOrCreateKotlinClass(WidgetAuthResetPassword.class)}); + + /* renamed from: b reason: collision with root package name */ + public static final List> f58b = m.listOf(a0.getOrCreateKotlinClass(WidgetAgeVerify.class)); + public static final List> c = n.listOf((Object[]) new c[]{a0.getOrCreateKotlinClass(WidgetOauth2Authorize.class), a0.getOrCreateKotlinClass(WidgetOauth2AuthorizeSamsung.class)}); + public static final List> d = n.listOf((Object[]) new c[]{a0.getOrCreateKotlinClass(WidgetSettingsAccount.class), a0.getOrCreateKotlinClass(WidgetSettingsAccountBackupCodes.class), a0.getOrCreateKotlinClass(WidgetSettingsAccountChangePassword.class), a0.getOrCreateKotlinClass(WidgetSettingsAccountUsernameEdit.class), a0.getOrCreateKotlinClass(WidgetSettingsAccountEmailEdit.class), a0.getOrCreateKotlinClass(WidgetUserPasswordVerify.class), a0.getOrCreateKotlinClass(WidgetEnableMFASteps.class), a0.getOrCreateKotlinClass(WidgetSettingsAppearance.class), a0.getOrCreateKotlinClass(WidgetSettingsBehavior.class), a0.getOrCreateKotlinClass(WidgetSettingsLanguage.class), a0.getOrCreateKotlinClass(WidgetSettingsMedia.class), a0.getOrCreateKotlinClass(WidgetSettingsPremium.class), a0.getOrCreateKotlinClass(WidgetSettingsNotifications.class), a0.getOrCreateKotlinClass(WidgetSettingsUserConnections.class), a0.getOrCreateKotlinClass(WidgetSettingsVoice.class), a0.getOrCreateKotlinClass(WidgetSettingsPrivacy.class), a0.getOrCreateKotlinClass(WidgetSettingsAuthorizedApps.class), a0.getOrCreateKotlinClass(WidgetServerNotifications.class), a0.getOrCreateKotlinClass(WidgetServerSettingsOverview.class), a0.getOrCreateKotlinClass(WidgetServerSettingsChannels.class), a0.getOrCreateKotlinClass(WidgetServerSettingsEditMember.class), a0.getOrCreateKotlinClass(WidgetServerSettingsEditRole.class), a0.getOrCreateKotlinClass(WidgetServerSettingsIntegrations.class), a0.getOrCreateKotlinClass(WidgetServerSettingsModeration.class), a0.getOrCreateKotlinClass(WidgetServerSettingsVanityUrl.class), a0.getOrCreateKotlinClass(WidgetServerSettingsSecurity.class), a0.getOrCreateKotlinClass(WidgetServerSettingsMembers.class), a0.getOrCreateKotlinClass(WidgetServerSettingsEmojis.class), a0.getOrCreateKotlinClass(WidgetServerSettingsEmojisEdit.class), a0.getOrCreateKotlinClass(WidgetServerSettingsRoles.class), a0.getOrCreateKotlinClass(WidgetServerSettingsInstantInvites.class), a0.getOrCreateKotlinClass(WidgetServerSettingsBans.class), a0.getOrCreateKotlinClass(WidgetChannelSettingsEditPermissions.class), a0.getOrCreateKotlinClass(WidgetChannelSettingsPermissionsOverview.class), a0.getOrCreateKotlinClass(WidgetAuthRegisterIdentity.class), a0.getOrCreateKotlinClass(WidgetAuthRegisterAccountInformation.class), a0.getOrCreateKotlinClass(WidgetAuthBirthday.class), a0.getOrCreateKotlinClass(WidgetAuthAgeGated.class), a0.getOrCreateKotlinClass(WidgetAuthLogin.class), a0.getOrCreateKotlinClass(WidgetAuthPhoneVerify.class), a0.getOrCreateKotlinClass(WidgetAuthResetPassword.class), a0.getOrCreateKotlinClass(WidgetSettingsDeveloper.class), a0.getOrCreateKotlinClass(WidgetSettingsBlockedUsers.class), a0.getOrCreateKotlinClass(WidgetNuxChannelPrompt.class), a0.getOrCreateKotlinClass(WidgetChoosePlan.class), a0.getOrCreateKotlinClass(WidgetServerSettingsCommunityOverview.class), a0.getOrCreateKotlinClass(WidgetServerSettingsEnableCommunitySteps.class), a0.getOrCreateKotlinClass(WidgetGuildScheduledEventSettings.class)}); + public static final List> e = n.listOf((Object[]) new c[]{a0.getOrCreateKotlinClass(WidgetUserAccountVerify.class), a0.getOrCreateKotlinClass(WidgetUserEmailVerify.class), a0.getOrCreateKotlinClass(WidgetUserEmailUpdate.class), a0.getOrCreateKotlinClass(WidgetUserPhoneManage.class), a0.getOrCreateKotlinClass(WidgetUserPhoneVerify.class), a0.getOrCreateKotlinClass(WidgetUserPasswordVerify.class)}); + public static final List> f = m.listOf(a0.getOrCreateKotlinClass(WidgetTabsHost.class)); + public static final j g = new j(); + + public static final void b(Context context, boolean z2, Intent intent) { + Class cls; + d0.z.d.m.checkNotNullParameter(context, "context"); + if (z2) { + StoreTabsNavigation.selectHomeTab$default(StoreStream.Companion.getTabsNavigation(), intent != null ? intent.getBooleanExtra("com.discord.intent.extra.EXTRA_OPEN_PANEL", false) : false ? StoreNavigation.PanelAction.OPEN : StoreNavigation.PanelAction.CLOSE, false, 2, null); + cls = WidgetTabsHost.class; + } else { + cls = WidgetAuthLanding.class; + } + d(context, cls, intent); + } + + public static /* synthetic */ void c(Context context, boolean z2, Intent intent, int i) { + if ((i & 2) != 0) { + z2 = true; + } + if ((i & 4) != 0) { + intent = null; + } + b(context, z2, intent); + } + + public static final void d(Context context, Class cls, Parcelable parcelable) { + d0.z.d.m.checkNotNullParameter(context, "context"); + d0.z.d.m.checkNotNullParameter(cls, "screen"); + Intent intent = null; + Intent intent2 = (Intent) (!(parcelable instanceof Intent) ? null : parcelable); + if (intent2 != null) { + intent = intent2; + } else if (parcelable != null) { + intent = d.e2(parcelable); + } + AppLog appLog = AppLog.g; + String simpleName = context.getClass().getSimpleName(); + d0.z.d.m.checkNotNullExpressionValue(simpleName, "javaClass.simpleName"); + String simpleName2 = cls.getSimpleName(); + d0.z.d.m.checkNotNullExpressionValue(simpleName2, "screen.simpleName"); + appLog.f(simpleName, simpleName2); + Intent putExtra = (intent != null ? new Intent(intent) : new Intent()).setClass(context, AppActivity.class).putExtra("com.discord.intent.extra.EXTRA_SCREEN", cls); + d0.z.d.m.checkNotNullExpressionValue(putExtra, "if (extras != null) {\n …nts.EXTRA_SCREEN, screen)"); + context.startActivity(putExtra); + } + + public static /* synthetic */ void e(Context context, Class cls, Parcelable parcelable, int i) { + int i2 = i & 4; + d(context, cls, null); + } + + public static void g(j jVar, FragmentManager fragmentManager, Context context, Class cls, int i, boolean z2, String str, Parcelable parcelable, int i2) { + if ((i2 & 8) != 0) { + i = 16908290; + } + if ((i2 & 16) != 0) { + z2 = false; + } + int i3 = i2 & 32; + if ((i2 & 64) != 0) { + parcelable = null; + } + d0.z.d.m.checkNotNullParameter(context, "context"); + d0.z.d.m.checkNotNullParameter(cls, "screen"); + if (fragmentManager != null) { + FragmentTransaction beginTransaction = fragmentManager.beginTransaction(); + d0.z.d.m.checkNotNullExpressionValue(beginTransaction, "fragmentManager.beginTransaction()"); + Fragment instantiate = Fragment.instantiate(context, cls.getName()); + if (parcelable != null) { + d0.z.d.m.checkNotNullExpressionValue(instantiate, "fragment"); + Bundle bundle = (Bundle) (!(parcelable instanceof Bundle) ? null : parcelable); + if (bundle == null) { + bundle = d.c2(parcelable); + } + instantiate.setArguments(bundle); + } + d0.z.d.m.checkNotNullExpressionValue(instantiate, "Fragment.instantiate(con….toBundle()\n }\n }"); + beginTransaction.replace(i, instantiate, cls.getName()); + if (z2) { + beginTransaction.addToBackStack(null); + } + beginTransaction.commit(); + } + } + + public final Intent a(Context context, Class cls, Intent intent) { + AppLog appLog = AppLog.g; + String simpleName = context.getClass().getSimpleName(); + d0.z.d.m.checkNotNullExpressionValue(simpleName, "javaClass.simpleName"); + String simpleName2 = cls.getSimpleName(); + d0.z.d.m.checkNotNullExpressionValue(simpleName2, "screen.simpleName"); + appLog.f(simpleName, simpleName2); + Intent putExtra = (intent != null ? new Intent(intent) : new Intent()).setClass(context, AppActivity.class).putExtra("com.discord.intent.extra.EXTRA_SCREEN", cls); + d0.z.d.m.checkNotNullExpressionValue(putExtra, "if (extras != null) {\n …nts.EXTRA_SCREEN, screen)"); + return putExtra; + } + + public final void f(Context context, ActivityResultLauncher activityResultLauncher, Class cls, Parcelable parcelable) { + d0.z.d.m.checkNotNullParameter(context, "context"); + d0.z.d.m.checkNotNullParameter(activityResultLauncher, "launcher"); + d0.z.d.m.checkNotNullParameter(cls, "screen"); + Intent intent = null; + Intent intent2 = (Intent) (!(parcelable instanceof Intent) ? null : parcelable); + if (intent2 != null) { + intent = intent2; + } else if (parcelable != null) { + intent = d.e2(parcelable); + } + activityResultLauncher.launch(a(context, cls, intent)); + } +} diff --git a/app/src/main/java/b/a/d/j0.java b/app/src/main/java/b/a/d/j0.java new file mode 100644 index 0000000000..0cca6126aa --- /dev/null +++ b/app/src/main/java/b/a/d/j0.java @@ -0,0 +1,16 @@ +package b.a.d; + +import com.discord.rtcconnection.RtcConnection; +import j0.k.b; +/* compiled from: DiscordConnectService.kt */ +public final class j0 implements b { + public static final j0 j = new j0(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Boolean call(RtcConnection.StateChange stateChange) { + RtcConnection.State state = stateChange.a; + return Boolean.valueOf(!(state instanceof RtcConnection.State.d) && !(state instanceof RtcConnection.State.h)); + } +} diff --git a/app/src/main/java/b/a/d/k.java b/app/src/main/java/b/a/d/k.java new file mode 100644 index 0000000000..60b82a3929 --- /dev/null +++ b/app/src/main/java/b/a/d/k.java @@ -0,0 +1,14 @@ +package b.a.d; + +import j0.k.b; +/* compiled from: AppState.kt */ +public final class k implements b { + public static final k j = new k(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Boolean call(Integer num) { + return Boolean.valueOf(num.intValue() > 0); + } +} diff --git a/app/src/main/java/b/a/d/k0.java b/app/src/main/java/b/a/d/k0.java new file mode 100644 index 0000000000..e4788acd2f --- /dev/null +++ b/app/src/main/java/b/a/d/k0.java @@ -0,0 +1,17 @@ +package b.a.d; + +import com.discord.rtcconnection.RtcConnection; +import com.discord.stores.StoreStream; +import j0.k.b; +import rx.Observable; +/* compiled from: DiscordConnectService.kt */ +public final class k0 implements b> { + public static final k0 j = new k0(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Observable call(Boolean bool) { + return StoreStream.Companion.getRtcConnection().getConnectionState().x(j0.j); + } +} diff --git a/app/src/main/java/b/a/d/l.java b/app/src/main/java/b/a/d/l.java new file mode 100644 index 0000000000..a9142d1566 --- /dev/null +++ b/app/src/main/java/b/a/d/l.java @@ -0,0 +1,33 @@ +package b.a.d; + +import com.discord.app.AppLog; +import com.discord.utilities.logging.Logger; +import d0.z.d.m; +import java.util.ArrayList; +import rx.subjects.BehaviorSubject; +/* compiled from: AppState.kt */ +public final class l { + public static final ArrayList a = new ArrayList<>(4); + + /* renamed from: b reason: collision with root package name */ + public static final BehaviorSubject f59b = BehaviorSubject.l0(0); + public static final l c = new l(); + + public final synchronized void a(Object obj) { + m.checkNotNullParameter(obj, "consumer"); + ArrayList arrayList = a; + arrayList.add(obj); + AppLog appLog = AppLog.g; + Logger.d$default(appLog, "Gateway Connection consumer add " + obj, null, 2, null); + f59b.onNext(Integer.valueOf(arrayList.size())); + } + + public final synchronized void b(Object obj) { + m.checkNotNullParameter(obj, "consumer"); + ArrayList arrayList = a; + arrayList.remove(obj); + AppLog appLog = AppLog.g; + Logger.d$default(appLog, "Gateway Connection consumer rm " + obj, null, 2, null); + f59b.onNext(Integer.valueOf(arrayList.size())); + } +} diff --git a/app/src/main/java/b/a/d/l0/a.java b/app/src/main/java/b/a/d/l0/a.java new file mode 100644 index 0000000000..1320571b55 --- /dev/null +++ b/app/src/main/java/b/a/d/l0/a.java @@ -0,0 +1,135 @@ +package b.a.d.l0; + +import android.net.Uri; +import com.discord.BuildConfig; +import d0.g0.i; +import d0.g0.t; +import d0.z.d.m; +import kotlin.text.Regex; +/* compiled from: RoutingPatterns.kt */ +public final class a { + public static final Regex A; + public static final Regex B; + public static final Regex C = new Regex("^/ra/([\\w-]+)$"); + public static final Regex D; + public static final Regex E; + public static final a F; + public static final String a; + + /* renamed from: b reason: collision with root package name */ + public static final String f60b; + public static final String c; + public static final String d; + public static final String e; + public static final String f; + public static final String g; + public static final String h; + public static final String i; + public static final String j; + public static final String k; + public static final Regex l; + public static final Regex m; + public static final Regex n; + public static final Regex o; + public static final Regex p; + public static final Regex q; + public static final Regex r; + + /* renamed from: s reason: collision with root package name */ + public static final Regex f61s; + public static final Regex t; + public static final Regex u; + public static final Regex v; + public static final Regex w; + + /* renamed from: x reason: collision with root package name */ + public static final Regex f62x; + + /* renamed from: y reason: collision with root package name */ + public static final Regex f63y; + + /* renamed from: z reason: collision with root package name */ + public static final Regex f64z; + + static { + a aVar = new a(); + F = aVar; + String b2 = aVar.b(BuildConfig.HOST); + a = b2; + String b3 = aVar.b(BuildConfig.HOST_ALTERNATE); + f60b = b3; + String b4 = aVar.b(BuildConfig.HOST_GIFT); + c = b4; + String b5 = aVar.b(BuildConfig.HOST_INVITE); + d = b5; + String b6 = aVar.b(BuildConfig.HOST_GUILD_TEMPLATE); + e = b6; + String replace$default = t.replace$default(b2, ".", "\\.", false, 4, (Object) null); + f = replace$default; + String replace$default2 = t.replace$default(b3, ".", "\\.", false, 4, (Object) null); + g = replace$default2; + String str = "(?:" + replace$default + '|' + replace$default2 + ')'; + h = str; + String replace$default3 = t.replace$default(b4, ".", "\\.", false, 4, (Object) null); + i = replace$default3; + String replace$default4 = t.replace$default(b5, ".", "\\.", false, 4, (Object) null); + j = replace$default4; + String replace$default5 = t.replace$default(b6, ".", "\\.", false, 4, (Object) null); + k = replace$default5; + i iVar = i.IGNORE_CASE; + l = new Regex("^(?:ptb|canary|www)." + str + '$', iVar); + m = new Regex("^/(?:(invite|gift|template)/)?([\\w-]+)/?$", iVar); + n = new Regex("^/(?:invite/)?([\\w-]+)/?$", iVar); + StringBuilder sb = new StringBuilder(); + sb.append("(?:https?://(?:(?:" + str + "/invite)|"); + sb.append("(?:" + replace$default4 + "))|"); + sb.append("(?:^" + replace$default4 + "))/([\\w-]+)/?"); + sb.append("(?:(?:\\S*[\\?&]event=)([\\w-]+))?"); + String sb2 = sb.toString(); + m.checkNotNullExpressionValue(sb2, "StringBuilder()\n …\"\")\n .toString()"); + o = new Regex(sb2, iVar); + p = new Regex("^/(?:template/)?([\\w-]+)/?$", iVar); + StringBuilder sb3 = new StringBuilder(); + sb3.append("(?:https?://(?:(?:" + str + "/template)|"); + sb3.append("(?:" + replace$default5 + "))|"); + sb3.append("(?:" + replace$default5 + "))/([\\w-]+)/?"); + String sb4 = sb3.toString(); + m.checkNotNullExpressionValue(sb4, "StringBuilder()\n …?\")\n .toString()"); + q = new Regex(sb4, iVar); + StringBuilder sb5 = new StringBuilder(); + sb5.append("(?:https?://)?(?:(?:" + str + "/gifts)|"); + sb5.append("(?:" + replace$default3 + "))/([\\w-]+)/?"); + String sb6 = sb5.toString(); + m.checkNotNullExpressionValue(sb6, "StringBuilder()\n …?\")\n .toString()"); + r = new Regex(sb6, iVar); + f61s = new Regex("^/connect(?:/(\\d+))?/?$", iVar); + t = new Regex("^/channels/((?:@me)|(?:\\d+))(?:/(\\d+))?(?:/(\\d+))?/?$", iVar); + u = new Regex("^/channels/@me/-1?/?$", iVar); + v = new Regex("^/lurk/(\\d+)(?:/(\\d+))?/?$", iVar); + w = new Regex("^/channels/@me/user/(\\d+)/?$", iVar); + f62x = new Regex("^/users/(\\d+)/?$", iVar); + f63y = new Regex("^/settings(/\\w+)*/?$", iVar); + f64z = new Regex("^/feature(/\\w+)*/?$", iVar); + A = new Regex("^/query(/\\w+)*/?$", iVar); + B = new Regex("^/(?:oauth2|connect)/authorize/?$", iVar); + D = new Regex("^/guild/((?:@me)|(?:\\d+))/premiumguild/?$", iVar); + E = new Regex("^/events/(\\d+)/(\\d+)/?$", iVar); + } + + public final boolean a(String str) { + if (str == null) { + return false; + } + if (!m.areEqual(str, a) && !m.areEqual(str, f60b) && !m.areEqual(str, c) && !m.areEqual(str, e) && !m.areEqual(str, d)) { + return l.matches(str); + } + return true; + } + + public final String b(String str) { + Uri parse = Uri.parse(str); + m.checkNotNullExpressionValue(parse, "Uri.parse(this)"); + String host = parse.getHost(); + return host != null ? host : ""; + } +} diff --git a/app/src/main/java/b/a/d/m.java b/app/src/main/java/b/a/d/m.java new file mode 100644 index 0000000000..2ac21be959 --- /dev/null +++ b/app/src/main/java/b/a/d/m.java @@ -0,0 +1,113 @@ +package b.a.d; + +import android.content.ClipData; +import android.content.ClipboardManager; +import android.content.Context; +import android.view.ContextThemeWrapper; +import android.widget.TextView; +import android.widget.Toast; +import androidx.annotation.StringRes; +import androidx.core.app.NotificationCompat; +import androidx.fragment.app.Fragment; +import com.discord.R; +import com.discord.utilities.view.ToastManager; +import com.discord.utilities.view.text.SimpleDraweeSpanTextView; +import com.facebook.drawee.span.DraweeSpanStringBuilder; +/* compiled from: AppToast.kt */ +public final class m { + public static final void a(Context context, CharSequence charSequence, int i) { + d0.z.d.m.checkNotNullParameter(context, "context"); + d0.z.d.m.checkNotNullParameter(charSequence, NotificationCompat.MessagingStyle.Message.KEY_TEXT); + String string = context.getString(i); + d0.z.d.m.checkNotNullExpressionValue(string, "context.getString(toastResId)"); + b(context, charSequence, string); + } + + public static final void b(Context context, CharSequence charSequence, CharSequence charSequence2) { + d0.z.d.m.checkNotNullParameter(context, "context"); + d0.z.d.m.checkNotNullParameter(charSequence, NotificationCompat.MessagingStyle.Message.KEY_TEXT); + d0.z.d.m.checkNotNullParameter(charSequence2, "toastText"); + Object systemService = context.getSystemService("clipboard"); + if (!(systemService instanceof ClipboardManager)) { + systemService = null; + } + ClipboardManager clipboardManager = (ClipboardManager) systemService; + ClipData newPlainText = ClipData.newPlainText("", charSequence); + if (clipboardManager != null) { + clipboardManager.setPrimaryClip(newPlainText); + } + h(context, charSequence2, 0, null, 12); + } + + public static /* synthetic */ void c(Context context, CharSequence charSequence, int i, int i2) { + if ((i2 & 4) != 0) { + i = R.string.copied_text; + } + a(context, charSequence, i); + } + + public static final void d(Context context, @StringRes int i, int i2, ToastManager toastManager) { + e(context, context != null ? context.getString(i) : null, i2, toastManager); + } + + public static final void e(Context context, CharSequence charSequence, int i, ToastManager toastManager) { + SimpleDraweeSpanTextView simpleDraweeSpanTextView; + if (context != null) { + Toast toast = new Toast(context); + ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(context, (int) R.style.UiKit_Toast); + if (charSequence instanceof DraweeSpanStringBuilder) { + SimpleDraweeSpanTextView simpleDraweeSpanTextView2 = new SimpleDraweeSpanTextView(contextThemeWrapper); + simpleDraweeSpanTextView2.setDraweeSpanStringBuilder((DraweeSpanStringBuilder) charSequence); + simpleDraweeSpanTextView = simpleDraweeSpanTextView2; + } else { + TextView textView = new TextView(contextThemeWrapper); + textView.setText(charSequence); + simpleDraweeSpanTextView = textView; + } + toast.setView(simpleDraweeSpanTextView); + toast.setDuration(i); + if (toastManager != null) { + toastManager.show(toast); + } else { + toast.show(); + } + } + } + + public static final void f(Fragment fragment, CharSequence charSequence, int i) { + h(fragment != null ? fragment.getContext() : null, charSequence, i, null, 8); + } + + public static /* synthetic */ void g(Context context, int i, int i2, ToastManager toastManager, int i3) { + if ((i3 & 4) != 0) { + i2 = 0; + } + int i4 = i3 & 8; + d(context, i, i2, null); + } + + public static /* synthetic */ void h(Context context, CharSequence charSequence, int i, ToastManager toastManager, int i2) { + if ((i2 & 4) != 0) { + i = 0; + } + if ((i2 & 8) != 0) { + toastManager = null; + } + e(context, charSequence, i, toastManager); + } + + public static void i(Fragment fragment, int i, int i2, int i3) { + Context context; + if ((i3 & 4) != 0) { + i2 = 0; + } + f(fragment, (fragment == null || (context = fragment.getContext()) == null) ? null : context.getString(i), i2); + } + + public static /* synthetic */ void j(Fragment fragment, CharSequence charSequence, int i, int i2) { + if ((i2 & 4) != 0) { + i = 0; + } + f(fragment, charSequence, i); + } +} diff --git a/app/src/main/java/b/a/d/n.java b/app/src/main/java/b/a/d/n.java new file mode 100644 index 0000000000..0c6cafa30e --- /dev/null +++ b/app/src/main/java/b/a/d/n.java @@ -0,0 +1,16 @@ +package b.a.d; + +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import rx.Observable; +/* compiled from: AppTransformers.kt */ +public final class n implements Observable.c { + public static final n j = new n(); + + @Override // j0.k.b + public Object call(Object obj) { + Observable observable = (Observable) obj; + m.checkNotNullExpressionValue(observable, "observable"); + return ObservableExtensionsKt.computationBuffered(observable).q(); + } +} diff --git a/app/src/main/java/b/a/d/o.java b/app/src/main/java/b/a/d/o.java new file mode 100644 index 0000000000..6209570edd --- /dev/null +++ b/app/src/main/java/b/a/d/o.java @@ -0,0 +1,178 @@ +package b.a.d; + +import android.content.Context; +import androidx.core.app.NotificationCompat; +import com.discord.app.AppFragment; +import com.discord.utilities.error.Error; +import d0.t.h0; +import d0.z.d.m; +import j0.l.e.k; +import java.util.Collection; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import rx.Observable; +import rx.functions.Action1; +/* compiled from: AppTransformers.kt */ +public final class o { + public static final o a = new o(); + + /* compiled from: AppTransformers.kt */ + public static final class a extends d0.z.d.o implements Function1 { + public static final a j = new a(); + + public a() { + super(1); + } + + @Override // kotlin.jvm.functions.Function1 + public final T invoke(T t) { + m.checkNotNull(t); + return t; + } + } + + /* compiled from: AppTransformers.kt */ + public static final class b implements Observable.c, Map> { + public static final b j = new b(); + + @Override // j0.k.b + public Object call(Object obj) { + Observable observable = (Observable) obj; + return new k(h0.emptyMap()); + } + } + + /* compiled from: AppTransformers.kt */ + public static final class c implements Observable.c, Map> { + public final /* synthetic */ Collection j; + public final /* synthetic */ Function1 k; + + public c(Collection collection, Function1 function1) { + this.j = collection; + this.k = function1; + } + + @Override // j0.k.b + public Object call(Object obj) { + return ((Observable) obj).Y(new s(this)).q(); + } + } + + /* compiled from: AppTransformers.kt */ + public static final class d implements Observable.c { + public final /* synthetic */ Function1 j; + public final /* synthetic */ Object k; + public final /* synthetic */ long l; + public final /* synthetic */ TimeUnit m; + + public d(Function1 function1, Object obj, long j, TimeUnit timeUnit) { + this.j = function1; + this.k = obj; + this.l = j; + this.m = timeUnit; + } + + @Override // j0.k.b + public Object call(Object obj) { + return ((Observable) obj).Y(new t(this)); + } + } + + /* compiled from: AppTransformers.kt */ + public static final /* synthetic */ class e extends d0.z.d.k implements Function1 { + public e(Action1 action1) { + super(1, action1, Action1.class, NotificationCompat.CATEGORY_CALL, "call(Ljava/lang/Object;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Object obj) { + ((Action1) this.receiver).call(obj); + return Unit.a; + } + } + + /* compiled from: AppTransformers.kt */ + public static final /* synthetic */ class f extends d0.z.d.k implements Function1 { + public f(Action1 action1) { + super(1, action1, Action1.class, NotificationCompat.CATEGORY_CALL, "call(Ljava/lang/Object;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Object obj) { + ((Action1) this.receiver).call(obj); + return Unit.a; + } + } + + public static final Observable.c, Map> a(Collection collection) { + m.checkNotNullParameter(collection, "filterKeys"); + return b(collection, a.j); + } + + public static final Observable.c, Map> b(Collection collection, Function1 function1) { + m.checkNotNullParameter(function1, "valueMapper"); + return (collection == null || collection.isEmpty()) ? b.j : new c(collection, function1); + } + + public static final Observable.c c(Function1 function1, T t, long j, TimeUnit timeUnit) { + m.checkNotNullParameter(function1, "predicate"); + m.checkNotNullParameter(timeUnit, "timeUnit"); + return new d(function1, t, j, timeUnit); + } + + public static /* synthetic */ Observable.c d(Function1 function1, Object obj, long j, TimeUnit timeUnit, int i) { + if ((i & 4) != 0) { + j = 5000; + } + return c(function1, obj, j, (i & 8) != 0 ? TimeUnit.MILLISECONDS : null); + } + + public static final Observable.c e(Action1 action1, Class cls) { + m.checkNotNullParameter(action1, "onNext"); + m.checkNotNullParameter(cls, "errorClass"); + return new w(null, cls, null, action1, null); + } + + public static Observable.c f(o oVar, Function1 function1, String str, Function1 function12, Function1 function13, Context context, Function0 function0, int i) { + Function1 function14 = (i & 4) != 0 ? null : function12; + int i2 = i & 8; + Context context2 = (i & 16) != 0 ? null : context; + int i3 = i & 32; + m.checkNotNullParameter(function1, "onNext"); + m.checkNotNullParameter(str, "errorTag"); + return new y(context2, str, null, function1, function14, null); + } + + public static final Observable.c h(Action1 action1, Context context, Action1 action12) { + m.checkNotNullParameter(action1, "onNext"); + e eVar = new e(action1); + c0 c0Var = true & true ? null : action12 != null ? new c0(action12) : null; + boolean z2 = true & true; + Context context2 = true & true ? null : context; + boolean z3 = true & true; + m.checkNotNullParameter(eVar, "onNext"); + m.checkNotNullParameter("restClient", "errorTag"); + return new y(context2, "restClient", null, eVar, c0Var, null); + } + + public static final Observable.c i(Action1 action1, AppFragment appFragment) { + m.checkNotNullParameter(action1, "onNext"); + m.checkNotNullParameter(appFragment, "fragment"); + return a.g(appFragment.getContext(), new f(action1), null); + } + + public static /* synthetic */ Observable.c j(Action1 action1, Context context, Action1 action12, int i) { + int i2 = i & 4; + return h(action1, context, null); + } + + public final Observable.c g(Context context, Function1 function1, Action1 action1) { + m.checkNotNullParameter(function1, "onNext"); + return f(this, function1, "restClient", action1 != null ? new c0(action1) : null, null, context, null, 40); + } +} diff --git a/app/src/main/java/b/a/d/p.java b/app/src/main/java/b/a/d/p.java new file mode 100644 index 0000000000..b5edaea3d9 --- /dev/null +++ b/app/src/main/java/b/a/d/p.java @@ -0,0 +1,18 @@ +package b.a.d; + +import j0.k.b; +import java.util.Map; +/* compiled from: AppTransformers.kt */ +public final class p implements b { + public final /* synthetic */ Map j; + + public p(Map map) { + this.j = map; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // j0.k.b + public Boolean call(Object obj) { + return Boolean.valueOf(this.j.containsKey(obj)); + } +} diff --git a/app/src/main/java/b/a/d/q.java b/app/src/main/java/b/a/d/q.java new file mode 100644 index 0000000000..aa0f00cf30 --- /dev/null +++ b/app/src/main/java/b/a/d/q.java @@ -0,0 +1,12 @@ +package b.a.d; + +import j0.k.b; +/* compiled from: AppTransformers.kt */ +public final class q implements b { + public static final q j = new q(); + + @Override // j0.k.b + public final K call(K k) { + return k; + } +} diff --git a/app/src/main/java/b/a/d/r.java b/app/src/main/java/b/a/d/r.java new file mode 100644 index 0000000000..2727dbe074 --- /dev/null +++ b/app/src/main/java/b/a/d/r.java @@ -0,0 +1,20 @@ +package b.a.d; + +import j0.k.b; +import java.util.Map; +/* compiled from: AppTransformers.kt */ +public final class r implements b { + public final /* synthetic */ s j; + public final /* synthetic */ Map k; + + public r(s sVar, Map map) { + this.j = sVar; + this.k = map; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // j0.k.b + public final V1 call(K k) { + return this.j.j.k.invoke(this.k.get(k)); + } +} diff --git a/app/src/main/java/b/a/d/s.java b/app/src/main/java/b/a/d/s.java new file mode 100644 index 0000000000..88b09e9b37 --- /dev/null +++ b/app/src/main/java/b/a/d/s.java @@ -0,0 +1,20 @@ +package b.a.d; + +import b.a.d.o; +import j0.k.b; +import java.util.Map; +import rx.Observable; +/* compiled from: AppTransformers.kt */ +public final class s implements b, Observable>> { + public final /* synthetic */ o.c j; + + public s(o.c cVar) { + this.j = cVar; + } + + @Override // j0.k.b + public Object call(Object obj) { + Map map = (Map) obj; + return Observable.A(this.j.j).x(new p(map)).g0(q.j, new r(this, map)); + } +} diff --git a/app/src/main/java/b/a/d/t.java b/app/src/main/java/b/a/d/t.java new file mode 100644 index 0000000000..f9afbb1c77 --- /dev/null +++ b/app/src/main/java/b/a/d/t.java @@ -0,0 +1,24 @@ +package b.a.d; + +import b.a.d.o; +import j0.k.b; +import j0.l.e.k; +import rx.Observable; +/* compiled from: AppTransformers.kt */ +public final class t implements b> { + public final /* synthetic */ o.d j; + + public t(o.d dVar) { + this.j = dVar; + } + + @Override // j0.k.b + public Object call(Object obj) { + if (((Boolean) this.j.j.invoke(obj)).booleanValue()) { + return new k(obj); + } + k kVar = new k(this.j.k); + o.d dVar = this.j; + return kVar.p(dVar.l, dVar.m); + } +} diff --git a/app/src/main/java/b/a/d/u.java b/app/src/main/java/b/a/d/u.java new file mode 100644 index 0000000000..382634b137 --- /dev/null +++ b/app/src/main/java/b/a/d/u.java @@ -0,0 +1,20 @@ +package b.a.d; + +import androidx.core.app.NotificationCompat; +import d0.z.d.k; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.functions.Action1; +/* compiled from: AppTransformers.kt */ +public final /* synthetic */ class u extends k implements Function1 { + public u(Action1 action1) { + super(1, action1, Action1.class, NotificationCompat.CATEGORY_CALL, "call(Ljava/lang/Object;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Object obj) { + ((Action1) this.receiver).call(obj); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/d/v.java b/app/src/main/java/b/a/d/v.java new file mode 100644 index 0000000000..424c460e98 --- /dev/null +++ b/app/src/main/java/b/a/d/v.java @@ -0,0 +1,20 @@ +package b.a.d; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: AppTransformers.kt */ +public final class v extends o implements Function0 { + public static final v j = new v(); + + public v() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/d/w.java b/app/src/main/java/b/a/d/w.java new file mode 100644 index 0000000000..5e284efc38 --- /dev/null +++ b/app/src/main/java/b/a/d/w.java @@ -0,0 +1,39 @@ +package b.a.d; + +import android.content.Context; +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +import rx.Observable; +import rx.functions.Action1; +/* compiled from: AppTransformers.kt */ +public final class w implements Observable.c { + public final /* synthetic */ Context j; + public final /* synthetic */ Class k; + public final /* synthetic */ Action1 l; + public final /* synthetic */ Action1 m; + public final /* synthetic */ Action1 n; + + public w(Context context, Class cls, Action1 action1, Action1 action12, Action1 action13) { + this.j = context; + this.k = cls; + this.l = action1; + this.m = action12; + this.n = action13; + } + + @Override // j0.k.b + public Object call(Object obj) { + Observable observable = (Observable) obj; + m.checkNotNullExpressionValue(observable, "observable"); + Context context = this.j; + String simpleName = this.k.getSimpleName(); + m.checkNotNullExpressionValue(simpleName, "errorClass.simpleName"); + Action1 action1 = this.l; + c0 c0Var = action1 != null ? new c0(action1) : null; + u uVar = new u(this.m); + Action1 action12 = this.n; + ObservableExtensionsKt.appSubscribe$default(observable, context, simpleName, c0Var, uVar, action12 != null ? new c0(action12) : null, v.j, (Function0) null, 64, (Object) null); + return null; + } +} diff --git a/app/src/main/java/b/a/d/x.java b/app/src/main/java/b/a/d/x.java new file mode 100644 index 0000000000..d87a839fef --- /dev/null +++ b/app/src/main/java/b/a/d/x.java @@ -0,0 +1,20 @@ +package b.a.d; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: AppTransformers.kt */ +public final class x extends o implements Function0 { + public static final x j = new x(); + + public x() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/d/y.java b/app/src/main/java/b/a/d/y.java new file mode 100644 index 0000000000..8d2990d01f --- /dev/null +++ b/app/src/main/java/b/a/d/y.java @@ -0,0 +1,43 @@ +package b.a.d; + +import android.content.Context; +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import rx.Observable; +/* compiled from: AppTransformers.kt */ +public final class y implements Observable.c { + public final /* synthetic */ Context j; + public final /* synthetic */ String k; + public final /* synthetic */ Function1 l; + public final /* synthetic */ Function1 m; + public final /* synthetic */ Function1 n; + public final /* synthetic */ Function0 o; + + public y(Context context, String str, Function1 function1, Function1 function12, Function1 function13, Function0 function0) { + this.j = context; + this.k = str; + this.l = function1; + this.m = function12; + this.n = function13; + this.o = function0; + } + + @Override // j0.k.b + public Object call(Object obj) { + Observable observable = (Observable) obj; + m.checkNotNullExpressionValue(observable, "observable"); + Context context = this.j; + String str = this.k; + Function1 function1 = this.l; + Function1 function12 = this.m; + Function1 function13 = this.n; + Function0 function0 = this.o; + if (function0 == null) { + function0 = x.j; + } + ObservableExtensionsKt.appSubscribe$default(observable, context, str, function1, function12, function13, function0, (Function0) null, 64, (Object) null); + return null; + } +} diff --git a/app/src/main/java/b/a/d/z.java b/app/src/main/java/b/a/d/z.java new file mode 100644 index 0000000000..476bb1325a --- /dev/null +++ b/app/src/main/java/b/a/d/z.java @@ -0,0 +1,17 @@ +package b.a.d; + +import j0.k.b; +import rx.Observable; +/* compiled from: AppTransformers.kt */ +public final class z implements b> { + public final /* synthetic */ a0 j; + + public z(a0 a0Var) { + this.j = a0Var; + } + + @Override // j0.k.b + public Object call(Object obj) { + return ((Boolean) this.j.j.invoke(obj)).booleanValue() ? (Observable) this.j.k.invoke(obj) : (Observable) this.j.l.invoke(obj); + } +} diff --git a/app/src/main/java/b/a/e/a.java b/app/src/main/java/b/a/e/a.java new file mode 100644 index 0000000000..3fd5fb384b --- /dev/null +++ b/app/src/main/java/b/a/e/a.java @@ -0,0 +1,29 @@ +package b.a.e; + +import d0.z.d.k; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.Subscription; +/* compiled from: Backgrounded.kt */ +public final /* synthetic */ class a extends k implements Function1 { + public a(d dVar) { + super(1, dVar, d.class, "emit", "emit(Z)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Boolean bool) { + boolean booleanValue = bool.booleanValue(); + boolean z2 = d.a; + Objects.requireNonNull((d) this.receiver); + d.a = booleanValue; + Subscription subscription = d.c; + if (subscription != null) { + subscription.unsubscribe(); + } + d.f65b.onNext(Boolean.valueOf(booleanValue)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/e/b.java b/app/src/main/java/b/a/e/b.java new file mode 100644 index 0000000000..9c23d80f7d --- /dev/null +++ b/app/src/main/java/b/a/e/b.java @@ -0,0 +1,75 @@ +package b.a.e; + +import android.app.Activity; +import android.app.Application; +import android.os.Bundle; +import androidx.appcompat.widget.ActivityChooserModel; +import d0.z.d.m; +import j0.l.e.k; +import java.util.concurrent.TimeUnit; +import kotlin.jvm.functions.Function1; +import rx.Observable; +import rx.Subscription; +import rx.functions.Action1; +/* compiled from: Backgrounded.kt */ +public final class b implements Application.ActivityLifecycleCallbacks { + public final /* synthetic */ Function1 j; + + public b(Function1 function1) { + this.j = function1; + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityCreated(Activity activity, Bundle bundle) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityDestroyed(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX DEBUG: Type inference failed for r1v1. Raw type applied. Possible types: rx.Observable, rx.Observable */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityPaused(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + d dVar = d.d; + Function1 function1 = this.j; + Observable p = new k(Boolean.TRUE).p(2000, TimeUnit.MILLISECONDS); + c cVar = new c(new a(dVar)); + if (function1 != null) { + function1 = new c(function1); + } + d.c = p.W(cVar, (Action1) function1); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityResumed(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + d dVar = d.d; + d.a = false; + Subscription subscription = d.c; + if (subscription != null) { + subscription.unsubscribe(); + } + d.f65b.onNext(Boolean.FALSE); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivitySaveInstanceState(Activity activity, Bundle bundle) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + m.checkNotNullParameter(bundle, "bundle"); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityStarted(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityStopped(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + } +} diff --git a/app/src/main/java/b/a/e/c.java b/app/src/main/java/b/a/e/c.java new file mode 100644 index 0000000000..724b224595 --- /dev/null +++ b/app/src/main/java/b/a/e/c.java @@ -0,0 +1,18 @@ +package b.a.e; + +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +import rx.functions.Action1; +/* compiled from: Backgrounded.kt */ +public final class c implements Action1 { + public final /* synthetic */ Function1 j; + + public c(Function1 function1) { + this.j = function1; + } + + @Override // rx.functions.Action1 + public final /* synthetic */ void call(Object obj) { + m.checkNotNullExpressionValue(this.j.invoke(obj), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/e/d.java b/app/src/main/java/b/a/e/d.java new file mode 100644 index 0000000000..7a2599a393 --- /dev/null +++ b/app/src/main/java/b/a/e/d.java @@ -0,0 +1,28 @@ +package b.a.e; + +import d0.z.d.m; +import rx.Observable; +import rx.Subscription; +import rx.subjects.BehaviorSubject; +import rx.subjects.Subject; +/* compiled from: Backgrounded.kt */ +public final class d { + public static boolean a = true; + + /* renamed from: b reason: collision with root package name */ + public static final Subject f65b; + public static Subscription c; + public static final d d = new d(); + + static { + BehaviorSubject l0 = BehaviorSubject.l0(true); + m.checkNotNullExpressionValue(l0, "BehaviorSubject.create(isBackgrounded)"); + f65b = l0; + } + + public final Observable a() { + Observable q = f65b.q(); + m.checkNotNullExpressionValue(q, "emitter.distinctUntilChanged()"); + return q; + } +} diff --git a/app/src/main/java/b/a/f/a.java b/app/src/main/java/b/a/f/a.java new file mode 100644 index 0000000000..52449b037a --- /dev/null +++ b/app/src/main/java/b/a/f/a.java @@ -0,0 +1,116 @@ +package b.a.f; + +import android.view.View; +import com.discord.chips_view.ChipsView; +import com.discord.chips_view.ChipsView.a; +import d0.z.d.m; +import java.util.Objects; +/* compiled from: Chip.kt */ +public final class a implements View.OnClickListener { + public b.a.f.h.a j; + public boolean k; + public String l; + public String m; + public final K n; + public final T o; + public final C0023a p; + public final ChipsView q; + + /* compiled from: Chip.kt */ + /* renamed from: b.a.f.a$a reason: collision with other inner class name */ + public static final class C0023a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f66b; + public final int c; + public final int d; + public final int e; + public final int f; + + public C0023a(int i, float f, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) { + this.a = i; + this.f66b = i2; + this.c = i3; + this.d = i4; + this.e = i5; + this.f = i8; + } + } + + public a(String str, String str2, K k, T t, C0023a aVar, ChipsView chipsView) { + m.checkNotNullParameter(aVar, "params"); + m.checkNotNullParameter(chipsView, "container"); + this.l = str; + this.m = str2; + this.n = k; + this.o = t; + this.p = aVar; + this.q = chipsView; + String str3 = null; + if (str == null) { + this.l = t != null ? t.getDisplayString() : null; + } + String str4 = this.l; + if ((str4 != null ? str4.length() : 0) > 30) { + String str5 = this.l; + if (str5 != null) { + str3 = str5.substring(0, 30); + m.checkNotNullExpressionValue(str3, "(this as java.lang.Strin…ing(startIndex, endIndex)"); + } + this.l = m.stringPlus(str3, "..."); + } + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj instanceof a) { + return m.areEqual(this.o, ((a) obj).o); + } + return false; + } + + @Override // java.lang.Object + public int hashCode() { + String str = this.l; + int i = 0; + int hashCode = (str != null ? str.hashCode() : 0) * 31; + String str2 = this.m; + int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31; + K k = this.n; + int hashCode3 = (hashCode2 + (k != null ? k.hashCode() : 0)) * 31; + T t = this.o; + int hashCode4 = (this.q.hashCode() + ((this.p.hashCode() + ((hashCode3 + (t != null ? t.hashCode() : 0)) * 31)) * 31)) * 31; + b.a.f.h.a aVar = this.j; + if (aVar != null) { + i = aVar.hashCode(); + } + return c.a(this.k) + ((hashCode4 + i) * 31); + } + + @Override // android.view.View.OnClickListener + public void onClick(View view) { + m.checkNotNullParameter(view, "v"); + this.q.A.clearFocus(); + ChipsView chipsView = this.q; + Objects.requireNonNull(chipsView); + m.checkNotNullParameter(this, "chip"); + chipsView.f(this); + chipsView.e(this); + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("{[Data: "); + R.append(this.o); + R.append(']'); + R.append("[Label: "); + R.append(this.l); + R.append(']'); + R.append("[ImageDescription: "); + R.append(this.m); + R.append(']'); + R.append('}'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/a/f/b.java b/app/src/main/java/b/a/f/b.java new file mode 100644 index 0000000000..98787464cd --- /dev/null +++ b/app/src/main/java/b/a/f/b.java @@ -0,0 +1,29 @@ +package b.a.f; + +import android.graphics.PorterDuff; +import android.graphics.drawable.Drawable; +import android.widget.RelativeLayout; +import d0.z.d.m; +import java.util.Objects; +/* compiled from: Chip.kt */ +public final class b implements Runnable { + public final /* synthetic */ RelativeLayout j; + public final /* synthetic */ a k; + + public b(RelativeLayout relativeLayout, a aVar) { + this.j = relativeLayout; + this.k = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + a aVar = this.k; + RelativeLayout relativeLayout = this.j; + m.checkNotNullExpressionValue(relativeLayout, "it"); + Drawable background = relativeLayout.getBackground(); + m.checkNotNullExpressionValue(background, "it.background"); + int i = this.k.p.c; + Objects.requireNonNull(aVar); + background.setColorFilter(i, PorterDuff.Mode.SRC_ATOP); + } +} diff --git a/app/src/main/java/b/a/f/c.java b/app/src/main/java/b/a/f/c.java new file mode 100644 index 0000000000..5a7861a8c3 --- /dev/null +++ b/app/src/main/java/b/a/f/c.java @@ -0,0 +1,6 @@ +package b.a.f; +public /* synthetic */ class c { + public static /* synthetic */ int a(boolean z2) { + return z2 ? 1231 : 1237; + } +} diff --git a/app/src/main/java/b/a/f/d.java b/app/src/main/java/b/a/f/d.java new file mode 100644 index 0000000000..9c8f7fea84 --- /dev/null +++ b/app/src/main/java/b/a/f/d.java @@ -0,0 +1,32 @@ +package b.a.f; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.view.inputmethod.EditorInfo; +import android.view.inputmethod.InputConnection; +import androidx.appcompat.widget.AppCompatEditText; +import d0.z.d.m; +/* compiled from: ChipsEditText.kt */ +@SuppressLint({"ViewConstructor"}) +public final class d extends AppCompatEditText { + public final a j; + + /* compiled from: ChipsEditText.kt */ + public interface a { + InputConnection a(InputConnection inputConnection); + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(Context context, a aVar) { + super(context); + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(aVar, "mInputConnectionWrapperInterface"); + this.j = aVar; + } + + @Override // androidx.appcompat.widget.AppCompatEditText, android.widget.TextView, android.view.View + public InputConnection onCreateInputConnection(EditorInfo editorInfo) { + m.checkNotNullParameter(editorInfo, "outAttrs"); + return this.j.a(super.onCreateInputConnection(editorInfo)); + } +} diff --git a/app/src/main/java/b/a/f/e.java b/app/src/main/java/b/a/f/e.java new file mode 100644 index 0000000000..171d3c1a3e --- /dev/null +++ b/app/src/main/java/b/a/f/e.java @@ -0,0 +1,42 @@ +package b.a.f; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.view.ViewGroup; +import android.widget.LinearLayout; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.List; +/* compiled from: ChipsVerticalLinearLayout.kt */ +@SuppressLint({"ViewConstructor"}) +public final class e extends LinearLayout { + public final List j = new ArrayList(); + public final int k; + + /* compiled from: ChipsVerticalLinearLayout.kt */ + public static final class a { + public int a; + + public a(int i, int i2) { + this.a = i2; + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(Context context, int i) { + super(context); + m.checkNotNullParameter(context, "context"); + this.k = i; + setOrientation(1); + } + + public final LinearLayout a() { + LinearLayout linearLayout = new LinearLayout(getContext()); + linearLayout.setLayoutParams(new ViewGroup.LayoutParams(-1, this.k)); + linearLayout.setPadding(0, 0, 0, 0); + linearLayout.setOrientation(0); + addView(linearLayout); + this.j.add(linearLayout); + return linearLayout; + } +} diff --git a/app/src/main/java/b/a/f/f.java b/app/src/main/java/b/a/f/f.java new file mode 100644 index 0000000000..54e9803abd --- /dev/null +++ b/app/src/main/java/b/a/f/f.java @@ -0,0 +1,21 @@ +package b.a.f; + +import android.view.View; +import com.discord.chips_view.ChipsView; +/* compiled from: ChipsView.kt */ +public final class f implements View.OnFocusChangeListener { + public final /* synthetic */ ChipsView j; + + public f(ChipsView chipsView) { + this.j = chipsView; + } + + @Override // android.view.View.OnFocusChangeListener + public final void onFocusChange(View view, boolean z2) { + if (z2) { + ChipsView chipsView = this.j; + int i = ChipsView.j; + chipsView.f(null); + } + } +} diff --git a/app/src/main/java/b/a/f/g.java b/app/src/main/java/b/a/f/g.java new file mode 100644 index 0000000000..e16158d9ce --- /dev/null +++ b/app/src/main/java/b/a/f/g.java @@ -0,0 +1,18 @@ +package b.a.f; + +import android.view.View; +import com.discord.chips_view.ChipsView; +/* compiled from: ChipsView.kt */ +public final class g implements View.OnClickListener { + public final /* synthetic */ ChipsView j; + + public g(ChipsView chipsView) { + this.j = chipsView; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.A.requestFocus(); + this.j.f(null); + } +} diff --git a/app/src/main/java/b/a/f/h/a.java b/app/src/main/java/b/a/f/h/a.java new file mode 100644 index 0000000000..cdd0ba0319 --- /dev/null +++ b/app/src/main/java/b/a/f/h/a.java @@ -0,0 +1,31 @@ +package b.a.f.h; + +import android.view.View; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewChipDefaultBinding */ +public final class a implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f67b; + @NonNull + public final TextView c; + + public a(@NonNull RelativeLayout relativeLayout, @NonNull ImageView imageView, @NonNull TextView textView) { + this.a = relativeLayout; + this.f67b = imageView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/g/a.java b/app/src/main/java/b/a/g/a.java new file mode 100644 index 0000000000..a036132161 --- /dev/null +++ b/app/src/main/java/b/a/g/a.java @@ -0,0 +1,314 @@ +package b.a.g; + +import android.graphics.Color; +import android.util.SparseIntArray; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Comparator; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.PriorityQueue; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: ColorCutQuantizer.kt */ +public final class a { + public static final b a = new b(null); + + /* renamed from: b reason: collision with root package name */ + public final float[] f68b = new float[3]; + public final int[] c; + public final SparseIntArray d; + public final List e; + + /* compiled from: ColorCutQuantizer.kt */ + /* renamed from: b.a.g.a$a reason: collision with other inner class name */ + public static final class C0024a implements Comparator { + public static final C0024a j = new C0024a(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(c cVar, c cVar2) { + return cVar2.b() - cVar.b(); + } + } + + /* compiled from: ColorCutQuantizer.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: ColorCutQuantizer.kt */ + public final class c { + public int a; + + /* renamed from: b reason: collision with root package name */ + public int f69b; + public int c; + public int d; + public int e; + public int f; + public final int g; + public int h; + + public c(int i, int i2) { + this.g = i; + this.h = i2; + a(); + } + + public final void a() { + this.e = 255; + this.c = 255; + this.a = 255; + this.f = 0; + this.d = 0; + this.f69b = 0; + int i = this.g; + int i2 = this.h; + if (i <= i2) { + while (true) { + int i3 = a.this.c[i]; + int red = Color.red(i3); + int green = Color.green(i3); + int blue = Color.blue(i3); + if (red > this.f69b) { + this.f69b = red; + } + if (red < this.a) { + this.a = red; + } + if (green > this.d) { + this.d = green; + } + if (green < this.c) { + this.c = green; + } + if (blue > this.f) { + this.f = blue; + } + if (blue < this.e) { + this.e = blue; + } + if (i != i2) { + i++; + } else { + return; + } + } + } + } + + public final int b() { + return ((this.f - this.e) + 1) * ((this.d - this.c) + 1) * ((this.f69b - this.a) + 1); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:123:0x025b */ + /* JADX WARNING: Removed duplicated region for block: B:134:0x00a7 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:149:0x0268 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:152:0x01bb A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:35:0x009b */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x00a0 */ + public a(b bVar, int i, DefaultConstructorMarker defaultConstructorMarker) { + int i2; + int i3; + int i4; + int i5; + boolean z2; + boolean z3; + c cVar; + boolean z4; + boolean z5; + if (i >= 1) { + int i6 = bVar.d; + int[] iArr = bVar.f70b; + int[] iArr2 = bVar.c; + this.d = new SparseIntArray(i6); + int length = iArr.length; + for (int i7 = 0; i7 < length; i7++) { + this.d.append(iArr[i7], iArr2[i7]); + } + this.c = new int[i6]; + int i8 = 0; + for (int i9 : iArr) { + int alpha = Color.alpha(i9); + c.a(Color.red(i9), Color.green(i9), Color.blue(i9), this.f68b); + if (alpha >= 250) { + float[] fArr = this.f68b; + if (!(fArr[2] >= 0.95f)) { + if (!(fArr[2] <= 0.05f)) { + float f = fArr[0]; + if (!(f >= 10.0f && f <= 37.0f && fArr[1] <= 0.82f)) { + z5 = false; + if (!z5) { + z4 = false; + if (z4) { + this.c[i8] = i9; + i8++; + } + } + } + } + } + z5 = true; + if (!z5) { + } + } + z4 = true; + if (z4) { + } + } + if (i8 <= i) { + this.e = new ArrayList(); + int[] iArr3 = this.c; + for (int i10 : iArr3) { + this.e.add(new d(i10, this.d.get(i10))); + } + return; + } + PriorityQueue priorityQueue = new PriorityQueue(i, C0024a.j); + priorityQueue.offer(new c(0, i8 - 1)); + while (priorityQueue.size() < i && (cVar = (c) priorityQueue.poll()) != null) { + int i11 = cVar.h; + int i12 = cVar.g; + int i13 = i11 - i12; + if (!(i13 > 1)) { + break; + } + if (i13 > 1) { + int i14 = cVar.f69b - cVar.a; + int i15 = cVar.d - cVar.c; + int i16 = cVar.f - cVar.e; + int i17 = (i14 < i15 || i14 < i16) ? (i15 < i14 || i15 < i16) ? -1 : -2 : -3; + a(a.this, i17, i12, i11); + Arrays.sort(a.this.c, cVar.g, cVar.h + 1); + a(a.this, i17, cVar.g, cVar.h); + int i18 = i17 != -3 ? i17 != -2 ? i17 != -1 ? (cVar.a + cVar.f69b) / 2 : (cVar.e + cVar.f) / 2 : (cVar.c + cVar.d) / 2 : (cVar.a + cVar.f69b) / 2; + int i19 = cVar.g; + int i20 = cVar.h; + while (true) { + if (i19 >= i20) { + i19 = cVar.g; + break; + } + int i21 = a.this.c[i19]; + if (i17 != -3) { + if (i17 != -2) { + if (i17 == -1 && Color.blue(i21) > i18) { + break; + } + } else if (Color.green(i21) >= i18) { + break; + } + } else if (Color.red(i21) >= i18) { + break; + } + i19++; + } + c cVar2 = new c(i19 + 1, cVar.h); + cVar.h = i19; + cVar.a(); + priorityQueue.offer(cVar2); + priorityQueue.offer(cVar); + } else { + throw new IllegalStateException("Can not split a box with only 1 color".toString()); + } + } + ArrayList arrayList = new ArrayList(priorityQueue.size()); + Iterator it = priorityQueue.iterator(); + while (it.hasNext()) { + c cVar3 = (c) it.next(); + int i22 = cVar3.g; + int i23 = cVar3.h; + if (i22 <= i23) { + i5 = 0; + i4 = 0; + i3 = 0; + i2 = 0; + while (true) { + a aVar = a.this; + int i24 = aVar.c[i22]; + int i25 = aVar.d.get(i24); + i5 += i25; + i4 = (Color.red(i24) * i25) + i4; + i3 = (Color.green(i24) * i25) + i3; + i2 += Color.blue(i24) * i25; + if (i22 == i23) { + break; + } + i22++; + } + } else { + i5 = 0; + i4 = 0; + i3 = 0; + i2 = 0; + } + float f2 = (float) i5; + d dVar = new d(Math.round(((float) i4) / f2), Math.round(((float) i3) / f2), Math.round(((float) i2) / f2), i5); + float[] a2 = dVar.a(); + m.checkNotNullExpressionValue(a2, "color.hsl"); + if (!(a2[2] >= 0.95f)) { + if (!(a2[2] <= 0.05f)) { + float f3 = a2[0]; + if (f3 >= 10.0f) { + if (f3 <= 37.0f) { + if (a2[1] <= 0.82f) { + z3 = true; + if (!z3) { + z2 = false; + if (!z2) { + arrayList.add(dVar); + } + } + z2 = true; + if (!z2) { + } + } + z3 = false; + if (!z3) { + } + z2 = true; + if (!z2) { + } + } + } + z3 = false; + if (!z3) { + } + z2 = true; + if (!z2) { + } + } + } + z2 = true; + if (!z2) { + } + } + this.e = arrayList; + return; + } + throw new IllegalArgumentException("maxColors must be 1 or greater".toString()); + } + + public static final void a(a aVar, int i, int i2, int i3) { + Objects.requireNonNull(aVar); + if (i == -2) { + while (i2 <= i3) { + int[] iArr = aVar.c; + int i4 = iArr[i2]; + iArr[i2] = Color.rgb((i4 >> 8) & 255, (i4 >> 16) & 255, i4 & 255); + i2++; + } + } else if (i == -1) { + while (i2 <= i3) { + int[] iArr2 = aVar.c; + int i5 = iArr2[i2]; + iArr2[i2] = Color.rgb(i5 & 255, (i5 >> 8) & 255, (i5 >> 16) & 255); + i2++; + } + } + } +} diff --git a/app/src/main/java/b/a/g/b.java b/app/src/main/java/b/a/g/b.java new file mode 100644 index 0000000000..e30bba439e --- /dev/null +++ b/app/src/main/java/b/a/g/b.java @@ -0,0 +1,65 @@ +package b.a.g; + +import d0.z.d.m; +import java.util.Arrays; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: ColorHistogram.kt */ +public final class b { + public static final a a = new a(null); + + /* renamed from: b reason: collision with root package name */ + public final int[] f70b; + public final int[] c; + public final int d; + + /* compiled from: ColorHistogram.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + public b(int[] iArr) { + int i; + m.checkNotNullParameter(iArr, "pixels"); + Arrays.sort(iArr); + int i2 = 0; + if (iArr.length < 2) { + i = iArr.length; + } else { + int i3 = iArr[0]; + int length = iArr.length; + int i4 = i3; + i = 1; + for (int i5 = 1; i5 < length; i5++) { + if (iArr[i5] != i4) { + i4 = iArr[i5]; + i++; + } + } + } + this.d = i; + int[] iArr2 = new int[i]; + this.f70b = iArr2; + int[] iArr3 = new int[i]; + this.c = iArr3; + if (!(iArr.length == 0)) { + int i6 = iArr[0]; + iArr2[0] = i6; + iArr3[0] = 1; + if (iArr.length != 1) { + int length2 = iArr.length; + for (int i7 = 1; i7 < length2; i7++) { + if (iArr[i7] == i6) { + int[] iArr4 = this.c; + iArr4[i2] = iArr4[i2] + 1; + } else { + i6 = iArr[i7]; + i2++; + this.f70b[i2] = i6; + this.c[i2] = 1; + } + } + } + } + } +} diff --git a/app/src/main/java/b/a/g/c.java b/app/src/main/java/b/a/g/c.java new file mode 100644 index 0000000000..c0abd23fdb --- /dev/null +++ b/app/src/main/java/b/a/g/c.java @@ -0,0 +1,28 @@ +package b.a.g; + +import d0.z.d.m; +/* compiled from: ColorUtils.kt */ +public final class c { + public static final void a(int i, int i2, int i3, float[] fArr) { + float f; + float f2; + m.checkNotNullParameter(fArr, "hsl"); + float f3 = ((float) i) / 255.0f; + float f4 = ((float) i2) / 255.0f; + float f5 = ((float) i3) / 255.0f; + float max = Math.max(f3, Math.max(f4, f5)); + float min = Math.min(f3, Math.min(f4, f5)); + float f6 = max - min; + float f7 = (max + min) / 2.0f; + if (max == min) { + f2 = 0.0f; + f = 0.0f; + } else { + f2 = max == f3 ? ((f4 - f5) / f6) % 6.0f : max == f4 ? ((f5 - f3) / f6) + 2.0f : ((f3 - f4) / f6) + 4.0f; + f = f6 / (1.0f - Math.abs((2.0f * f7) - 1.0f)); + } + fArr[0] = (f2 * 60.0f) % 360.0f; + fArr[1] = f; + fArr[2] = f7; + } +} diff --git a/app/src/main/java/b/a/g/d.java b/app/src/main/java/b/a/g/d.java new file mode 100644 index 0000000000..7d1a4da220 --- /dev/null +++ b/app/src/main/java/b/a/g/d.java @@ -0,0 +1,54 @@ +package b.a.g; + +import android.graphics.Color; +import b.d.b.a.a; +import java.util.Arrays; +/* compiled from: Swatch */ +public final class d { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f71b; + public final int c; + public final int d; + public final int e; + public float[] f; + + public d(int i, int i2) { + this.a = Color.red(i); + this.f71b = Color.green(i); + this.c = Color.blue(i); + this.d = i; + this.e = i2; + } + + public d(int i, int i2, int i3, int i4) { + this.a = i; + this.f71b = i2; + this.c = i3; + this.d = Color.rgb(i, i2, i3); + this.e = i4; + } + + public float[] a() { + if (this.f == null) { + float[] fArr = new float[3]; + this.f = fArr; + c.a(this.a, this.f71b, this.c, fArr); + } + return this.f; + } + + public String toString() { + StringBuilder sb = new StringBuilder(d.class.getSimpleName()); + sb.append(" "); + sb.append("["); + sb.append(Integer.toHexString(this.d)); + sb.append(']'); + sb.append("[HSL: "); + sb.append(Arrays.toString(a())); + sb.append(']'); + sb.append("[Population: "); + return a.z(sb, this.e, ']'); + } +} diff --git a/app/src/main/java/b/a/h/a.java b/app/src/main/java/b/a/h/a.java new file mode 100644 index 0000000000..77b7baec2d --- /dev/null +++ b/app/src/main/java/b/a/h/a.java @@ -0,0 +1,92 @@ +package b.a.h; + +import android.content.Context; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; +import android.net.Uri; +import androidx.browser.customtabs.CustomTabsService; +import d0.t.u; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +/* compiled from: CustomTabsPackages.kt */ +public final class a { + public static final String a(Context context) { + Object obj; + Object obj2; + Object obj3; + m.checkNotNullParameter(context, "$this$getCustomTabsDefaultPackage"); + PackageManager packageManager = context.getPackageManager(); + Object obj4 = null; + Intent data = new Intent().setAction("android.intent.action.VIEW").addCategory("android.intent.category.BROWSABLE").setData(Uri.fromParts("http", "", null)); + m.checkNotNullExpressionValue(data, "Intent()\n .setA…mParts(\"http\", \"\", null))"); + List queryIntentActivities = packageManager.queryIntentActivities(data, 0); + m.checkNotNullExpressionValue(queryIntentActivities, "packageManager.queryInte…ltViewIntentHandler(), 0)"); + ArrayList arrayList = new ArrayList(); + for (ResolveInfo resolveInfo : queryIntentActivities) { + Intent intent = new Intent().setAction(CustomTabsService.ACTION_CUSTOM_TABS_CONNECTION).setPackage(resolveInfo.activityInfo.packageName); + m.checkNotNullExpressionValue(intent, "Intent()\n .se…activityInfo.packageName)"); + String str = context.getPackageManager().resolveService(intent, 0) != null ? resolveInfo.activityInfo.packageName : null; + if (str != null) { + arrayList.add(str); + } + } + Iterator it = arrayList.iterator(); + while (true) { + if (!it.hasNext()) { + obj = null; + break; + } + obj = it.next(); + if (m.areEqual((String) obj, "com.android.chrome")) { + break; + } + } + String str2 = (String) obj; + if (str2 == null) { + Iterator it2 = arrayList.iterator(); + while (true) { + if (!it2.hasNext()) { + obj3 = null; + break; + } + obj3 = it2.next(); + if (m.areEqual((String) obj3, "com.chrome.beta")) { + break; + } + } + str2 = (String) obj3; + } + if (str2 == null) { + Iterator it3 = arrayList.iterator(); + while (true) { + if (!it3.hasNext()) { + obj2 = null; + break; + } + obj2 = it3.next(); + if (m.areEqual((String) obj2, "com.chrome.dev")) { + break; + } + } + str2 = (String) obj2; + } + if (str2 == null) { + Iterator it4 = arrayList.iterator(); + while (true) { + if (!it4.hasNext()) { + break; + } + Object next = it4.next(); + if (m.areEqual((String) next, "com.google.android.apps.chrome")) { + obj4 = next; + break; + } + } + str2 = (String) obj4; + } + return str2 != null ? str2 : (String) u.firstOrNull((List) arrayList); + } +} diff --git a/app/src/main/java/b/a/h/b.java b/app/src/main/java/b/a/h/b.java new file mode 100644 index 0000000000..e539af4ca7 --- /dev/null +++ b/app/src/main/java/b/a/h/b.java @@ -0,0 +1,50 @@ +package b.a.h; + +import android.content.ComponentName; +import android.net.Uri; +import android.os.Bundle; +import androidx.browser.customtabs.CustomTabsCallback; +import androidx.browser.customtabs.CustomTabsClient; +import androidx.browser.customtabs.CustomTabsService; +import androidx.browser.customtabs.CustomTabsServiceConnection; +import androidx.browser.customtabs.CustomTabsSession; +import com.discord.models.domain.ModelAuditLogEntry; +import d0.t.o; +import d0.t.u; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.List; +/* compiled from: CustomTabsService.kt */ +public final class b extends CustomTabsServiceConnection { + public final List j; + + /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.util.List */ + /* JADX WARN: Multi-variable type inference failed */ + public b(List list) { + m.checkNotNullParameter(list, "uris"); + this.j = list; + } + + @Override // androidx.browser.customtabs.CustomTabsServiceConnection + public void onCustomTabsServiceConnected(ComponentName componentName, CustomTabsClient customTabsClient) { + m.checkNotNullParameter(componentName, ModelAuditLogEntry.CHANGE_KEY_NAME); + m.checkNotNullParameter(customTabsClient, "client"); + customTabsClient.warmup(0); + CustomTabsSession newSession = customTabsClient.newSession(new CustomTabsCallback()); + if (newSession != null) { + Uri uri = (Uri) u.first((List) this.j); + List drop = u.drop(this.j, 1); + ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(drop, 10)); + for (Uri uri2 : drop) { + Bundle bundle = new Bundle(); + bundle.putParcelable(CustomTabsService.KEY_URL, uri2); + arrayList.add(bundle); + } + newSession.mayLaunchUrl(uri, Bundle.EMPTY, arrayList); + } + } + + @Override // android.content.ServiceConnection + public void onServiceDisconnected(ComponentName componentName) { + } +} diff --git a/app/src/main/java/b/a/i/a.java b/app/src/main/java/b/a/i/a.java new file mode 100644 index 0000000000..e4c0ff8ac3 --- /dev/null +++ b/app/src/main/java/b/a/i/a.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: AllowAccessibilityDetectionDialogBinding */ +public final class a implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f72b; + @NonNull + public final MaterialButton c; + @NonNull + public final MaterialButton d; + + public a(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull TextView textView2) { + this.a = linearLayout; + this.f72b = textView; + this.c = materialButton; + this.d = materialButton2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/a0.java b/app/src/main/java/b/a/i/a0.java new file mode 100644 index 0000000000..34c57a676c --- /dev/null +++ b/app/src/main/java/b/a/i/a0.java @@ -0,0 +1,54 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.switchmaterial.SwitchMaterial; +/* compiled from: ImageUploadFailedDialogBinding */ +public final class a0 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f73b; + @NonNull + public final SwitchMaterial c; + @NonNull + public final RelativeLayout d; + @NonNull + public final View e; + @NonNull + public final MaterialButton f; + @NonNull + public final RelativeLayout g; + @NonNull + public final MaterialButton h; + @NonNull + public final MaterialButton i; + @NonNull + public final TextView j; + + public a0(@NonNull RelativeLayout relativeLayout, @NonNull ImageView imageView, @NonNull MaterialButton materialButton, @NonNull SwitchMaterial switchMaterial, @NonNull RelativeLayout relativeLayout2, @NonNull View view, @NonNull MaterialButton materialButton2, @NonNull RelativeLayout relativeLayout3, @NonNull MaterialButton materialButton3, @NonNull MaterialButton materialButton4, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = relativeLayout; + this.f73b = materialButton; + this.c = switchMaterial; + this.d = relativeLayout2; + this.e = view; + this.f = materialButton2; + this.g = relativeLayout3; + this.h = materialButton3; + this.i = materialButton4; + this.j = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/a1.java b/app/src/main/java/b/a/i/a1.java new file mode 100644 index 0000000000..68cdd87c92 --- /dev/null +++ b/app/src/main/java/b/a/i/a1.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.CutoutView; +/* compiled from: PileItemOverflowViewBinding */ +public final class a1 implements ViewBinding { + @NonNull + public final CutoutView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f74b; + + public a1(@NonNull CutoutView cutoutView, @NonNull TextView textView) { + this.a = cutoutView; + this.f74b = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/a2.java b/app/src/main/java/b/a/i/a2.java new file mode 100644 index 0000000000..9cda8bae65 --- /dev/null +++ b/app/src/main/java/b/a/i/a2.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewChatUploadBinding */ +public final class a2 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f75b; + @NonNull + public final ImageView c; + @NonNull + public final TextView d; + + public a2(@NonNull ConstraintLayout constraintLayout, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f75b = textView; + this.c = imageView2; + this.d = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/a3.java b/app/src/main/java/b/a/i/a3.java new file mode 100644 index 0000000000..e55d472bb1 --- /dev/null +++ b/app/src/main/java/b/a/i/a3.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewScreenTitleBinding */ +public final class a3 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f76b; + @NonNull + public final TextView c; + + public a3(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = linearLayout; + this.f76b = textView; + this.c = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/a4.java b/app/src/main/java/b/a/i/a4.java new file mode 100644 index 0000000000..c688c1df0c --- /dev/null +++ b/app/src/main/java/b/a/i/a4.java @@ -0,0 +1,54 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +/* compiled from: ViewUserStatusPresenceBinding */ +public final class a4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f77b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + + public a4(@NonNull LinearLayout linearLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull LinearLayout linearLayout2) { + this.a = linearLayout; + this.f77b = imageView; + this.c = textView; + this.d = textView2; + } + + @NonNull + public static a4 a(@NonNull View view) { + int i = R.id.user_status_presence_dot; + ImageView imageView = (ImageView) view.findViewById(R.id.user_status_presence_dot); + if (imageView != null) { + i = R.id.user_status_presence_subtitle; + TextView textView = (TextView) view.findViewById(R.id.user_status_presence_subtitle); + if (textView != null) { + i = R.id.user_status_presence_title; + TextView textView2 = (TextView) view.findViewById(R.id.user_status_presence_title); + if (textView2 != null) { + LinearLayout linearLayout = (LinearLayout) view; + return new a4(linearLayout, imageView, textView, textView2, linearLayout); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/a5.java b/app/src/main/java/b/a/i/a5.java new file mode 100644 index 0000000000..46b9341681 --- /dev/null +++ b/app/src/main/java/b/a/i/a5.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetDiscoveryOtherSpeakersCountBinding */ +public final class a5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f78b; + + public a5(@NonNull LinearLayout linearLayout, @NonNull TextView textView) { + this.a = linearLayout; + this.f78b = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/a6.java b/app/src/main/java/b/a/i/a6.java new file mode 100644 index 0000000000..674f017303 --- /dev/null +++ b/app/src/main/java/b/a/i/a6.java @@ -0,0 +1,120 @@ +package b.a.i; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.LinearLayout; +import android.widget.Space; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.constraintlayout.widget.Barrier; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetUserRichPresenceBinding */ +public final class a6 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f79b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final SimpleDraweeView e; + @NonNull + public final SimpleDraweeView f; + @NonNull + public final MaterialButton g; + @NonNull + public final MaterialButton h; + @NonNull + public final TextView i; + @NonNull + public final TextView j; + @NonNull + public final TextView k; + + public a6(@NonNull LinearLayout linearLayout, @NonNull Barrier barrier, @NonNull Space space, @NonNull LinearLayout linearLayout2, @NonNull TextView textView, @NonNull TextView textView2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5) { + this.a = linearLayout; + this.f79b = linearLayout2; + this.c = textView; + this.d = textView2; + this.e = simpleDraweeView; + this.f = simpleDraweeView2; + this.g = materialButton; + this.h = materialButton2; + this.i = textView3; + this.j = textView4; + this.k = textView5; + } + + @NonNull + public static a6 a(@NonNull LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, boolean z2) { + View inflate = layoutInflater.inflate(R.layout.widget_user_rich_presence, viewGroup, false); + if (z2) { + viewGroup.addView(inflate); + } + int i = R.id.barrier; + Barrier barrier = (Barrier) inflate.findViewById(R.id.barrier); + if (barrier != null) { + i = R.id.image_bottom_guideline; + Space space = (Space) inflate.findViewById(R.id.image_bottom_guideline); + if (space != null) { + i = R.id.rich_presence_container_data; + LinearLayout linearLayout = (LinearLayout) inflate.findViewById(R.id.rich_presence_container_data); + if (linearLayout != null) { + i = R.id.rich_presence_details; + TextView textView = (TextView) inflate.findViewById(R.id.rich_presence_details); + if (textView != null) { + i = R.id.rich_presence_header; + TextView textView2 = (TextView) inflate.findViewById(R.id.rich_presence_header); + if (textView2 != null) { + i = R.id.rich_presence_image_large; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(R.id.rich_presence_image_large); + if (simpleDraweeView != null) { + i = R.id.rich_presence_image_small; + SimpleDraweeView simpleDraweeView2 = (SimpleDraweeView) inflate.findViewById(R.id.rich_presence_image_small); + if (simpleDraweeView2 != null) { + i = R.id.rich_presence_primary_button; + MaterialButton materialButton = (MaterialButton) inflate.findViewById(R.id.rich_presence_primary_button); + if (materialButton != null) { + i = R.id.rich_presence_secondary_button; + MaterialButton materialButton2 = (MaterialButton) inflate.findViewById(R.id.rich_presence_secondary_button); + if (materialButton2 != null) { + i = R.id.rich_presence_state; + TextView textView3 = (TextView) inflate.findViewById(R.id.rich_presence_state); + if (textView3 != null) { + i = R.id.rich_presence_time; + TextView textView4 = (TextView) inflate.findViewById(R.id.rich_presence_time); + if (textView4 != null) { + i = R.id.rich_presence_title; + TextView textView5 = (TextView) inflate.findViewById(R.id.rich_presence_title); + if (textView5 != null) { + return new a6((LinearLayout) inflate, barrier, space, linearLayout, textView, textView2, simpleDraweeView, simpleDraweeView2, materialButton, materialButton2, textView3, textView4, textView5); + } + } + } + } + } + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/b.java b/app/src/main/java/b/a/i/b.java new file mode 100644 index 0000000000..3bf728b578 --- /dev/null +++ b/app/src/main/java/b/a/i/b.java @@ -0,0 +1,41 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.RadioGroup; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.radiobutton.MaterialRadioButton; +/* compiled from: AudioOutputSelectionDialogBinding */ +public final class b implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialRadioButton f80b; + @NonNull + public final RadioGroup c; + @NonNull + public final MaterialRadioButton d; + @NonNull + public final MaterialRadioButton e; + @NonNull + public final MaterialRadioButton f; + + public b(@NonNull LinearLayout linearLayout, @NonNull MaterialRadioButton materialRadioButton, @NonNull TextView textView, @NonNull RadioGroup radioGroup, @NonNull MaterialRadioButton materialRadioButton2, @NonNull MaterialRadioButton materialRadioButton3, @NonNull MaterialRadioButton materialRadioButton4) { + this.a = linearLayout; + this.f80b = materialRadioButton; + this.c = radioGroup; + this.d = materialRadioButton2; + this.e = materialRadioButton3; + this.f = materialRadioButton4; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/b0.java b/app/src/main/java/b/a/i/b0.java new file mode 100644 index 0000000000..1174fc746f --- /dev/null +++ b/app/src/main/java/b/a/i/b0.java @@ -0,0 +1,40 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: IntegrationSyncSettingsBinding */ +public final class b0 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f81b; + @NonNull + public final TextView c; + @NonNull + public final RelativeLayout d; + @NonNull + public final TextView e; + @NonNull + public final RelativeLayout f; + + public b0(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull RelativeLayout relativeLayout, @NonNull TextView textView3, @NonNull RelativeLayout relativeLayout2) { + this.a = linearLayout; + this.f81b = textView; + this.c = textView2; + this.d = relativeLayout; + this.e = textView3; + this.f = relativeLayout2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/b1.java b/app/src/main/java/b/a/i/b1.java new file mode 100644 index 0000000000..fcdc8939b9 --- /dev/null +++ b/app/src/main/java/b/a/i/b1.java @@ -0,0 +1,44 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: PremiumActivatedDialogBinding */ +public final class b1 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f82b; + @NonNull + public final TextView c; + @NonNull + public final ImageView d; + @NonNull + public final ImageView e; + @NonNull + public final ImageView f; + @NonNull + public final ImageView g; + + public b1(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull ImageView imageView3, @NonNull ImageView imageView4) { + this.a = linearLayout; + this.f82b = materialButton; + this.c = textView; + this.d = imageView; + this.e = imageView2; + this.f = imageView3; + this.g = imageView4; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/b2.java b/app/src/main/java/b/a/i/b2.java new file mode 100644 index 0000000000..51fdb9e4f1 --- /dev/null +++ b/app/src/main/java/b/a/i/b2.java @@ -0,0 +1,33 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.FailedUploadView; +/* compiled from: ViewChatUploadListBinding */ +public final class b2 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final FailedUploadView f83b; + @NonNull + public final FailedUploadView c; + @NonNull + public final FailedUploadView d; + + public b2(@NonNull LinearLayout linearLayout, @NonNull FailedUploadView failedUploadView, @NonNull FailedUploadView failedUploadView2, @NonNull FailedUploadView failedUploadView3) { + this.a = linearLayout; + this.f83b = failedUploadView; + this.c = failedUploadView2; + this.d = failedUploadView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/b3.java b/app/src/main/java/b/a/i/b3.java new file mode 100644 index 0000000000..68d2c736dd --- /dev/null +++ b/app/src/main/java/b/a/i/b3.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewServerDiscoveryHeaderBinding */ +public final class b3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f84b; + @NonNull + public final FrameLayout c; + @NonNull + public final TextView d; + + public b3(@NonNull View view, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull FrameLayout frameLayout, @NonNull TextView textView2) { + this.a = view; + this.f84b = textView; + this.c = frameLayout; + this.d = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/b4.java b/app/src/main/java/b/a/i/b4.java new file mode 100644 index 0000000000..e7ce55d6ec --- /dev/null +++ b/app/src/main/java/b/a/i/b4.java @@ -0,0 +1,37 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.discord.views.CutoutView; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewUserSummaryItemBinding */ +public final class b4 implements ViewBinding { + @NonNull + public final CutoutView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f85b; + + public b4(@NonNull CutoutView cutoutView, @NonNull SimpleDraweeView simpleDraweeView) { + this.a = cutoutView; + this.f85b = simpleDraweeView; + } + + @NonNull + public static b4 a(@NonNull View view) { + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(R.id.avatar); + if (simpleDraweeView != null) { + return new b4((CutoutView) view, simpleDraweeView); + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(R.id.avatar))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/b5.java b/app/src/main/java/b/a/i/b5.java new file mode 100644 index 0000000000..da4ebc2889 --- /dev/null +++ b/app/src/main/java/b/a/i/b5.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: WidgetDiscoveryStageCardSpeakerBinding */ +public final class b5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f86b; + @NonNull + public final TextView c; + + public b5(@NonNull LinearLayout linearLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView) { + this.a = linearLayout; + this.f86b = simpleDraweeView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/c.java b/app/src/main/java/b/a/i/c.java new file mode 100644 index 0000000000..3aec4ba727 --- /dev/null +++ b/app/src/main/java/b/a/i/c.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.recycler.MaxHeightRecyclerView; +/* compiled from: BottomSheetSimpleSelectorBinding */ +public final class c implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ConstraintLayout f87b; + @NonNull + public final TextView c; + @NonNull + public final MaxHeightRecyclerView d; + + public c(@NonNull ConstraintLayout constraintLayout, @NonNull ConstraintLayout constraintLayout2, @NonNull TextView textView, @NonNull MaxHeightRecyclerView maxHeightRecyclerView) { + this.a = constraintLayout; + this.f87b = constraintLayout2; + this.c = textView; + this.d = maxHeightRecyclerView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/c0.java b/app/src/main/java/b/a/i/c0.java new file mode 100644 index 0000000000..d2b958e417 --- /dev/null +++ b/app/src/main/java/b/a/i/c0.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.appcompat.widget.AppCompatRadioButton; +import androidx.viewbinding.ViewBinding; +/* compiled from: InviteSettingsRadioButtonBinding */ +public final class c0 implements ViewBinding { + @NonNull + public final AppCompatRadioButton a; + + public c0(@NonNull AppCompatRadioButton appCompatRadioButton) { + this.a = appCompatRadioButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/c1.java b/app/src/main/java/b/a/i/c1.java new file mode 100644 index 0000000000..4638c513c1 --- /dev/null +++ b/app/src/main/java/b/a/i/c1.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: PremiumAndGuildBoostActivatedDialogBinding */ +public final class c1 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f88b; + @NonNull + public final TextView c; + + public c1(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull TextView textView) { + this.a = linearLayout; + this.f88b = materialButton; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/c2.java b/app/src/main/java/b/a/i/c2.java new file mode 100644 index 0000000000..6b51654b14 --- /dev/null +++ b/app/src/main/java/b/a/i/c2.java @@ -0,0 +1,26 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.flexbox.FlexboxLayout; +/* compiled from: ViewCodeVerificationBinding */ +public final class c2 implements ViewBinding { + @NonNull + public final FlexboxLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final FlexboxLayout f89b; + + public c2(@NonNull FlexboxLayout flexboxLayout, @NonNull FlexboxLayout flexboxLayout2) { + this.a = flexboxLayout; + this.f89b = flexboxLayout2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/c3.java b/app/src/main/java/b/a/i/c3.java new file mode 100644 index 0000000000..878556a382 --- /dev/null +++ b/app/src/main/java/b/a/i/c3.java @@ -0,0 +1,45 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.Barrier; +import androidx.viewbinding.ViewBinding; +import com.discord.views.GuildView; +import com.discord.views.guilds.ServerMemberCount; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewServerDiscoveryItemBinding */ +public final class c3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f90b; + @NonNull + public final MaterialButton c; + @NonNull + public final ServerMemberCount d; + @NonNull + public final TextView e; + @NonNull + public final GuildView f; + @NonNull + public final TextView g; + + public c3(@NonNull View view, @NonNull Barrier barrier, @NonNull Barrier barrier2, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull ServerMemberCount serverMemberCount, @NonNull TextView textView, @NonNull GuildView guildView, @NonNull TextView textView2) { + this.a = view; + this.f90b = materialButton; + this.c = materialButton2; + this.d = serverMemberCount; + this.e = textView; + this.f = guildView; + this.g = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/c4.java b/app/src/main/java/b/a/i/c4.java new file mode 100644 index 0000000000..a96a70caf9 --- /dev/null +++ b/app/src/main/java/b/a/i/c4.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.span.SimpleDraweeSpanTextView; +/* compiled from: ViewUsernameBinding */ +public final class c4 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f91b; + @NonNull + public final SimpleDraweeSpanTextView c; + + public c4(@NonNull View view, @NonNull TextView textView, @NonNull SimpleDraweeSpanTextView simpleDraweeSpanTextView) { + this.a = view; + this.f91b = textView; + this.c = simpleDraweeSpanTextView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/c5.java b/app/src/main/java/b/a/i/c5.java new file mode 100644 index 0000000000..7f079d1cb7 --- /dev/null +++ b/app/src/main/java/b/a/i/c5.java @@ -0,0 +1,36 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.LoadingButton; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: WidgetEnableTwoFactorPasswordDialogBinding */ +public final class c5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f92b; + @NonNull + public final LoadingButton c; + @NonNull + public final TextInputLayout d; + + public c5(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull TextView textView2, @NonNull LinearLayout linearLayout3, @NonNull LoadingButton loadingButton, @NonNull TextInputLayout textInputLayout) { + this.a = linearLayout; + this.f92b = materialButton; + this.c = loadingButton; + this.d = textInputLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/d.java b/app/src/main/java/b/a/i/d.java new file mode 100644 index 0000000000..df291b7c86 --- /dev/null +++ b/app/src/main/java/b/a/i/d.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.textview.MaterialTextView; +/* compiled from: BottomSheetSimpleSelectorItemBinding */ +public final class d implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialTextView f93b; + @NonNull + public final SimpleDraweeView c; + @NonNull + public final MaterialTextView d; + + public d(@NonNull ConstraintLayout constraintLayout, @NonNull MaterialTextView materialTextView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull MaterialTextView materialTextView2) { + this.a = constraintLayout; + this.f93b = materialTextView; + this.c = simpleDraweeView; + this.d = materialTextView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/d0.java b/app/src/main/java/b/a/i/d0.java new file mode 100644 index 0000000000..6f812909eb --- /dev/null +++ b/app/src/main/java/b/a/i/d0.java @@ -0,0 +1,33 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.cardview.widget.CardView; +import androidx.viewbinding.ViewBinding; +import com.discord.views.premium.AccountCreditView; +/* compiled from: LayoutAccountCreditsListBinding */ +public final class d0 implements ViewBinding { + @NonNull + public final CardView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final AccountCreditView f94b; + @NonNull + public final AccountCreditView c; + @NonNull + public final View d; + + public d0(@NonNull CardView cardView, @NonNull AccountCreditView accountCreditView, @NonNull AccountCreditView accountCreditView2, @NonNull View view) { + this.a = cardView; + this.f94b = accountCreditView; + this.c = accountCreditView2; + this.d = view; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/d1.java b/app/src/main/java/b/a/i/d1.java new file mode 100644 index 0000000000..5aec2681c6 --- /dev/null +++ b/app/src/main/java/b/a/i/d1.java @@ -0,0 +1,41 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: PremiumUpgradeYearlyDialogBinding */ +public final class d1 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f95b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + @NonNull + public final MaterialButton f; + + public d1(@NonNull LinearLayout linearLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull MaterialButton materialButton) { + this.a = linearLayout; + this.f95b = imageView; + this.c = textView; + this.d = textView2; + this.e = textView3; + this.f = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/d2.java b/app/src/main/java/b/a/i/d2.java new file mode 100644 index 0000000000..94860088bb --- /dev/null +++ b/app/src/main/java/b/a/i/d2.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.Space; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewCodeVerificationSpaceBinding */ +public final class d2 implements ViewBinding { + @NonNull + public final Space a; + + public d2(@NonNull Space space) { + this.a = space; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/d3.java b/app/src/main/java/b/a/i/d3.java new file mode 100644 index 0000000000..4b4bdd45ce --- /dev/null +++ b/app/src/main/java/b/a/i/d3.java @@ -0,0 +1,43 @@ +package b.a.i; + +import android.view.View; +import android.widget.GridLayout; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.GuildView; +/* compiled from: ViewServerFolderBinding */ +public final class d3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f96b; + @NonNull + public final GuildView c; + @NonNull + public final GuildView d; + @NonNull + public final GuildView e; + @NonNull + public final GuildView f; + @NonNull + public final GridLayout g; + + public d3(@NonNull View view, @NonNull ImageView imageView, @NonNull GuildView guildView, @NonNull GuildView guildView2, @NonNull GuildView guildView3, @NonNull GuildView guildView4, @NonNull GridLayout gridLayout) { + this.a = view; + this.f96b = imageView; + this.c = guildView; + this.d = guildView2; + this.e = guildView3; + this.f = guildView4; + this.g = gridLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/d4.java b/app/src/main/java/b/a/i/d4.java new file mode 100644 index 0000000000..72919e4619 --- /dev/null +++ b/app/src/main/java/b/a/i/d4.java @@ -0,0 +1,87 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.ProgressBar; +import android.widget.Space; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.views.VoiceUserView; +import com.discord.views.calls.AppVideoStreamRenderer; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewVideoCallParticipantBinding */ +public final class d4 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final View f97b; + @NonNull + public final View c; + @NonNull + public final ImageView d; + @NonNull + public final ConstraintLayout e; + @NonNull + public final ImageView f; + @NonNull + public final TextView g; + @NonNull + public final TextView h; + @NonNull + public final TextView i; + @NonNull + public final ImageView j; + @NonNull + public final ConstraintLayout k; + @NonNull + public final TextView l; + @NonNull + public final SimpleDraweeView m; + @NonNull + public final TextView n; + @NonNull + public final TextView o; + @NonNull + public final ProgressBar p; + @NonNull + public final AppVideoStreamRenderer q; + @NonNull + public final LinearLayout r; + @NonNull + + /* renamed from: s reason: collision with root package name */ + public final VoiceUserView f98s; + + public d4(@NonNull View view, @NonNull View view2, @NonNull View view3, @NonNull ImageView imageView, @NonNull ConstraintLayout constraintLayout, @NonNull Space space, @NonNull ImageView imageView2, @NonNull TextView textView, @NonNull LinearLayout linearLayout, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull ImageView imageView3, @NonNull ConstraintLayout constraintLayout2, @NonNull ImageView imageView4, @NonNull TextView textView4, @NonNull TextView textView5, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView6, @NonNull TextView textView7, @NonNull ProgressBar progressBar, @NonNull AppVideoStreamRenderer appVideoStreamRenderer, @NonNull LinearLayout linearLayout2, @NonNull VoiceUserView voiceUserView) { + this.a = view; + this.f97b = view2; + this.c = view3; + this.d = imageView; + this.e = constraintLayout; + this.f = imageView2; + this.g = textView; + this.h = textView2; + this.i = textView3; + this.j = imageView3; + this.k = constraintLayout2; + this.l = textView5; + this.m = simpleDraweeView; + this.n = textView6; + this.o = textView7; + this.p = progressBar; + this.q = appVideoStreamRenderer; + this.r = linearLayout2; + this.f98s = voiceUserView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/d5.java b/app/src/main/java/b/a/i/d5.java new file mode 100644 index 0000000000..3f5f9c874f --- /dev/null +++ b/app/src/main/java/b/a/i/d5.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.fragment.app.FragmentContainerView; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.rounded.RoundedRelativeLayout; +/* compiled from: WidgetHomePanelCenterBinding */ +public final class d5 implements ViewBinding { + @NonNull + public final RoundedRelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final e5 f99b; + @NonNull + public final FragmentContainerView c; + + public d5(@NonNull RoundedRelativeLayout roundedRelativeLayout, @NonNull e5 e5Var, @NonNull FragmentContainerView fragmentContainerView) { + this.a = roundedRelativeLayout; + this.f99b = e5Var; + this.c = fragmentContainerView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/e.java b/app/src/main/java/b/a/i/e.java new file mode 100644 index 0000000000..92e1ebe583 --- /dev/null +++ b/app/src/main/java/b/a/i/e.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: CameraCapacityDialogBinding */ +public final class e implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f100b; + @NonNull + public final MaterialButton c; + + public e(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout2) { + this.a = linearLayout; + this.f100b = textView; + this.c = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/e0.java b/app/src/main/java/b/a/i/e0.java new file mode 100644 index 0000000000..2abe4b3365 --- /dev/null +++ b/app/src/main/java/b/a/i/e0.java @@ -0,0 +1,36 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.views.LoadingButton; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: LayoutAgeVerifyBinding */ +public final class e0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinkifiedTextView f101b; + @NonNull + public final TextInputLayout c; + @NonNull + public final LoadingButton d; + + public e0(@NonNull ConstraintLayout constraintLayout, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextInputLayout textInputLayout, @NonNull LoadingButton loadingButton, @NonNull TextView textView) { + this.a = constraintLayout; + this.f101b = linkifiedTextView; + this.c = textInputLayout; + this.d = loadingButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/e1.java b/app/src/main/java/b/a/i/e1.java new file mode 100644 index 0000000000..18670c3d1f --- /dev/null +++ b/app/src/main/java/b/a/i/e1.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: PrivateChannelSideBarActionsViewBinding */ +public final class e1 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f102b; + @NonNull + public final MaterialButton c; + @NonNull + public final MaterialButton d; + @NonNull + public final MaterialButton e; + + public e1(@NonNull View view, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull MaterialButton materialButton3, @NonNull MaterialButton materialButton4) { + this.a = view; + this.f102b = materialButton; + this.c = materialButton2; + this.d = materialButton3; + this.e = materialButton4; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/e2.java b/app/src/main/java/b/a/i/e2.java new file mode 100644 index 0000000000..3b17f742b5 --- /dev/null +++ b/app/src/main/java/b/a/i/e2.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewCodeVerificationTextBinding */ +public final class e2 implements ViewBinding { + @NonNull + public final TextView a; + + public e2(@NonNull TextView textView) { + this.a = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/e3.java b/app/src/main/java/b/a/i/e3.java new file mode 100644 index 0000000000..bdedcc9b87 --- /dev/null +++ b/app/src/main/java/b/a/i/e3.java @@ -0,0 +1,37 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewServerMemberCountBinding */ +public final class e3 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f103b; + @NonNull + public final TextView c; + @NonNull + public final ImageView d; + @NonNull + public final TextView e; + + public e3(@NonNull LinearLayout linearLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull ImageView imageView2, @NonNull TextView textView2) { + this.a = linearLayout; + this.f103b = imageView; + this.c = textView; + this.d = imageView2; + this.e = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/e4.java b/app/src/main/java/b/a/i/e4.java new file mode 100644 index 0000000000..f5ad97a2d5 --- /dev/null +++ b/app/src/main/java/b/a/i/e4.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewVoiceCallActiveEventBinding */ +public final class e4 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f104b; + @NonNull + public final TextView c; + + public e4(@NonNull ConstraintLayout constraintLayout, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f104b = textView; + this.c = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/e5.java b/app/src/main/java/b/a/i/e5.java new file mode 100644 index 0000000000..f1768c2e86 --- /dev/null +++ b/app/src/main/java/b/a/i/e5.java @@ -0,0 +1,38 @@ +package b.a.i; + +import android.view.View; +import android.view.ViewStub; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.fragment.app.FragmentContainerView; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.appbar.AppBarLayout; +/* compiled from: WidgetHomePanelCenterChatBinding */ +public final class e5 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ViewStub f105b; + @NonNull + public final f5 c; + @NonNull + public final FragmentContainerView d; + @NonNull + public final FragmentContainerView e; + + public e5(@NonNull ConstraintLayout constraintLayout, @NonNull AppBarLayout appBarLayout, @NonNull ViewStub viewStub, @NonNull ViewStub viewStub2, @NonNull f5 f5Var, @NonNull View view, @NonNull FragmentContainerView fragmentContainerView, @NonNull FragmentContainerView fragmentContainerView2, @NonNull FragmentContainerView fragmentContainerView3, @NonNull FragmentContainerView fragmentContainerView4, @NonNull ConstraintLayout constraintLayout2, @NonNull FragmentContainerView fragmentContainerView5, @NonNull FragmentContainerView fragmentContainerView6) { + this.a = constraintLayout; + this.f105b = viewStub2; + this.c = f5Var; + this.d = fragmentContainerView; + this.e = fragmentContainerView4; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/f.java b/app/src/main/java/b/a/i/f.java new file mode 100644 index 0000000000..4ed1b72951 --- /dev/null +++ b/app/src/main/java/b/a/i/f.java @@ -0,0 +1,29 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: CardSegmentViewBinding */ +public final class f implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f106b; + @NonNull + public final TextView c; + + public f(@NonNull View view, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = view; + this.f106b = textView; + this.c = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/f0.java b/app/src/main/java/b/a/i/f0.java new file mode 100644 index 0000000000..c0fc3ac2ad --- /dev/null +++ b/app/src/main/java/b/a/i/f0.java @@ -0,0 +1,39 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.views.LoadingButton; +import com.google.android.material.button.MaterialButton; +/* compiled from: LayoutAgeVerifyConfirmBinding */ +public final class f0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f107b; + @NonNull + public final LoadingButton c; + @NonNull + public final LinkifiedTextView d; + @NonNull + public final TextView e; + + public f0(@NonNull ConstraintLayout constraintLayout, @NonNull MaterialButton materialButton, @NonNull LoadingButton loadingButton, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView) { + this.a = constraintLayout; + this.f107b = materialButton; + this.c = loadingButton; + this.d = linkifiedTextView; + this.e = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/f1.java b/app/src/main/java/b/a/i/f1.java new file mode 100644 index 0000000000..40a3de9c7a --- /dev/null +++ b/app/src/main/java/b/a/i/f1.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ReactionQuickAddBinding */ +public final class f1 implements ViewBinding { + @NonNull + public final ImageView a; + + public f1(@NonNull ImageView imageView, @NonNull ImageView imageView2) { + this.a = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/f2.java b/app/src/main/java/b/a/i/f2.java new file mode 100644 index 0000000000..37e3e644f0 --- /dev/null +++ b/app/src/main/java/b/a/i/f2.java @@ -0,0 +1,40 @@ +package b.a.i; + +import android.view.View; +import android.widget.Spinner; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.card.MaterialCardView; +/* compiled from: ViewExperimentOverrideBinding */ +public final class f2 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f108b; + @NonNull + public final Spinner c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + @NonNull + public final TextView f; + + public f2(@NonNull View view, @NonNull TextView textView, @NonNull Spinner spinner, @NonNull MaterialCardView materialCardView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4) { + this.a = view; + this.f108b = textView; + this.c = spinner; + this.d = textView2; + this.e = textView3; + this.f = textView4; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/f3.java b/app/src/main/java/b/a/i/f3.java new file mode 100644 index 0000000000..94fa7ad156 --- /dev/null +++ b/app/src/main/java/b/a/i/f3.java @@ -0,0 +1,41 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: ViewServerSettingsIconNameBinding */ +public final class f3 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f109b; + @NonNull + public final TextInputLayout c; + @NonNull + public final SimpleDraweeView d; + @NonNull + public final TextView e; + @NonNull + public final TextView f; + + public f3(@NonNull ConstraintLayout constraintLayout, @NonNull TextView textView, @NonNull TextInputLayout textInputLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull ConstraintLayout constraintLayout2, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = constraintLayout; + this.f109b = textView; + this.c = textInputLayout; + this.d = simpleDraweeView; + this.e = textView2; + this.f = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/f4.java b/app/src/main/java/b/a/i/f4.java new file mode 100644 index 0000000000..0c03754fc2 --- /dev/null +++ b/app/src/main/java/b/a/i/f4.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewVoiceUserBinding */ +public final class f4 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f110b; + @NonNull + public final TextView c; + + public f4(@NonNull View view, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView) { + this.a = view; + this.f110b = simpleDraweeView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/f5.java b/app/src/main/java/b/a/i/f5.java new file mode 100644 index 0000000000..a6b3f8031e --- /dev/null +++ b/app/src/main/java/b/a/i/f5.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetHomePanelCenterContentUnreadBinding */ +public final class f5 implements ViewBinding { + @NonNull + public final TextView a; + + public f5(@NonNull TextView textView, @NonNull TextView textView2) { + this.a = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/g.java b/app/src/main/java/b/a/i/g.java new file mode 100644 index 0000000000..ebd058c9df --- /dev/null +++ b/app/src/main/java/b/a/i/g.java @@ -0,0 +1,37 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ChannelPermissionOwnerViewBinding */ +public final class g implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f111b; + @NonNull + public final TextView c; + @NonNull + public final SimpleDraweeView d; + @NonNull + public final TextView e; + + public g(@NonNull View view, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView2) { + this.a = view; + this.f111b = imageView; + this.c = textView; + this.d = simpleDraweeView; + this.e = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/g0.java b/app/src/main/java/b/a/i/g0.java new file mode 100644 index 0000000000..3f84d95faa --- /dev/null +++ b/app/src/main/java/b/a/i/g0.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.google.android.material.button.MaterialButton; +/* compiled from: LayoutAgeVerifyUnderageBinding */ +public final class g0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f112b; + @NonNull + public final LinkifiedTextView c; + @NonNull + public final TextView d; + + public g0(@NonNull ConstraintLayout constraintLayout, @NonNull MaterialButton materialButton, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f112b = materialButton; + this.c = linkifiedTextView; + this.d = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/g1.java b/app/src/main/java/b/a/i/g1.java new file mode 100644 index 0000000000..aea7bfd769 --- /dev/null +++ b/app/src/main/java/b/a/i/g1.java @@ -0,0 +1,38 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextSwitcher; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.SimpleDraweeSpanTextView; +/* compiled from: ReactionViewBinding */ +public final class g1 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f113b; + @NonNull + public final TextView c; + @NonNull + public final TextSwitcher d; + @NonNull + public final SimpleDraweeSpanTextView e; + + public g1(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextSwitcher textSwitcher, @NonNull SimpleDraweeSpanTextView simpleDraweeSpanTextView) { + this.a = linearLayout; + this.f113b = textView; + this.c = textView2; + this.d = textSwitcher; + this.e = simpleDraweeSpanTextView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/g2.java b/app/src/main/java/b/a/i/g2.java new file mode 100644 index 0000000000..b478cf5b17 --- /dev/null +++ b/app/src/main/java/b/a/i/g2.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewGuildBinding */ +public final class g2 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f114b; + @NonNull + public final TextView c; + + public g2(@NonNull View view, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView) { + this.a = view; + this.f114b = simpleDraweeView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/g3.java b/app/src/main/java/b/a/i/g3.java new file mode 100644 index 0000000000..c23a25784f --- /dev/null +++ b/app/src/main/java/b/a/i/g3.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.CheckedSetting; +/* compiled from: ViewServerSettingsNotificationsBinding */ +public final class g3 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final CheckedSetting f115b; + @NonNull + public final CheckedSetting c; + + public g3(@NonNull LinearLayout linearLayout, @NonNull CheckedSetting checkedSetting, @NonNull CheckedSetting checkedSetting2) { + this.a = linearLayout; + this.f115b = checkedSetting; + this.c = checkedSetting2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/g4.java b/app/src/main/java/b/a/i/g4.java new file mode 100644 index 0000000000..9367ec7434 --- /dev/null +++ b/app/src/main/java/b/a/i/g4.java @@ -0,0 +1,29 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: VoiceUserLimitViewBinding */ +public final class g4 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f116b; + @NonNull + public final TextView c; + + public g4(@NonNull View view, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = view; + this.f116b = textView; + this.c = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/g5.java b/app/src/main/java/b/a/i/g5.java new file mode 100644 index 0000000000..e7dbbac509 --- /dev/null +++ b/app/src/main/java/b/a/i/g5.java @@ -0,0 +1,32 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.fragment.app.FragmentContainerView; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetHomePanelLeftBinding */ +public final class g5 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f117b; + @NonNull + public final FragmentContainerView c; + + public g5(@NonNull RelativeLayout relativeLayout, @NonNull TextView textView, @NonNull FragmentContainerView fragmentContainerView, @NonNull FragmentContainerView fragmentContainerView2, @NonNull FrameLayout frameLayout) { + this.a = relativeLayout; + this.f117b = textView; + this.c = fragmentContainerView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/h.java b/app/src/main/java/b/a/i/h.java new file mode 100644 index 0000000000..a4122730cf --- /dev/null +++ b/app/src/main/java/b/a/i/h.java @@ -0,0 +1,33 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ConnectedAccountActionsDialogBinding */ +public final class h implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f118b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + + public h(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = linearLayout; + this.f118b = textView; + this.c = textView2; + this.d = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/h0.java b/app/src/main/java/b/a/i/h0.java new file mode 100644 index 0000000000..801b3da9b4 --- /dev/null +++ b/app/src/main/java/b/a/i/h0.java @@ -0,0 +1,32 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.views.phone.PhoneOrEmailInputView; +import com.google.android.material.button.MaterialButton; +/* compiled from: LayoutContactSyncAddPhoneBinding */ +public final class h0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final PhoneOrEmailInputView f119b; + @NonNull + public final MaterialButton c; + + public h0(@NonNull ConstraintLayout constraintLayout, @NonNull PhoneOrEmailInputView phoneOrEmailInputView, @NonNull MaterialButton materialButton, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f119b = phoneOrEmailInputView; + this.c = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/h1.java b/app/src/main/java/b/a/i/h1.java new file mode 100644 index 0000000000..448dabafd4 --- /dev/null +++ b/app/src/main/java/b/a/i/h1.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.textfield.TextInputEditText; +/* compiled from: SearchInputViewBinding */ +public final class h1 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f120b; + @NonNull + public final TextInputEditText c; + + public h1(@NonNull View view, @NonNull ImageView imageView, @NonNull TextInputEditText textInputEditText) { + this.a = view; + this.f120b = imageView; + this.c = textInputEditText; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/h2.java b/app/src/main/java/b/a/i/h2.java new file mode 100644 index 0000000000..21909cab19 --- /dev/null +++ b/app/src/main/java/b/a/i/h2.java @@ -0,0 +1,41 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.chip.Chip; +/* compiled from: ViewGuildBoostConfirmationBinding */ +public final class h2 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f121b; + @NonNull + public final TextView c; + @NonNull + public final Chip d; + @NonNull + public final Chip e; + @NonNull + public final ImageView f; + + public h2(@NonNull View view, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView, @NonNull Chip chip, @NonNull Chip chip2, @NonNull ImageView imageView) { + this.a = view; + this.f121b = simpleDraweeView; + this.c = textView; + this.d = chip; + this.e = chip2; + this.f = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/h3.java b/app/src/main/java/b/a/i/h3.java new file mode 100644 index 0000000000..eeba027af0 --- /dev/null +++ b/app/src/main/java/b/a/i/h3.java @@ -0,0 +1,40 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.CheckedSetting; +/* compiled from: ViewServerSettingsSystemChannelWrapBinding */ +public final class h3 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f122b; + @NonNull + public final CheckedSetting c; + @NonNull + public final CheckedSetting d; + @NonNull + public final CheckedSetting e; + @NonNull + public final LinearLayout f; + + public h3(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull CheckedSetting checkedSetting, @NonNull CheckedSetting checkedSetting2, @NonNull CheckedSetting checkedSetting3, @NonNull LinearLayout linearLayout2) { + this.a = linearLayout; + this.f122b = textView; + this.c = checkedSetting; + this.d = checkedSetting2; + this.e = checkedSetting3; + this.f = linearLayout2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/h4.java b/app/src/main/java/b/a/i/h4.java new file mode 100644 index 0000000000..7fe91f6585 --- /dev/null +++ b/app/src/main/java/b/a/i/h4.java @@ -0,0 +1,33 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.SeekBar; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: VolumeSliderViewBinding */ +public final class h4 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f123b; + @NonNull + public final ImageView c; + @NonNull + public final SeekBar d; + + public h4(@NonNull View view, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull SeekBar seekBar) { + this.a = view; + this.f123b = imageView; + this.c = imageView2; + this.d = seekBar; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/h5.java b/app/src/main/java/b/a/i/h5.java new file mode 100644 index 0000000000..b64988412f --- /dev/null +++ b/app/src/main/java/b/a/i/h5.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetHomePanelLoadingBinding */ +public final class h5 implements ViewBinding { + @NonNull + public final FrameLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f124b; + + public h5(@NonNull FrameLayout frameLayout, @NonNull ImageView imageView) { + this.a = frameLayout; + this.f124b = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/i.java b/app/src/main/java/b/a/i/i.java new file mode 100644 index 0000000000..adefaaa35e --- /dev/null +++ b/app/src/main/java/b/a/i/i.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: DefaultTooltipViewBottomBinding */ +public final class i implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f125b; + + public i(@NonNull ConstraintLayout constraintLayout, @NonNull TextView textView) { + this.a = constraintLayout; + this.f125b = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/i0.java b/app/src/main/java/b/a/i/i0.java new file mode 100644 index 0000000000..1304d520dd --- /dev/null +++ b/app/src/main/java/b/a/i/i0.java @@ -0,0 +1,38 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.views.LoadingButton; +/* compiled from: LayoutContactSyncLandingBinding */ +public final class i0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f126b; + @NonNull + public final LoadingButton c; + @NonNull + public final View d; + @NonNull + public final m0 e; + + public i0(@NonNull ConstraintLayout constraintLayout, @NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull LoadingButton loadingButton, @NonNull View view, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull m0 m0Var) { + this.a = constraintLayout; + this.f126b = textView; + this.c = loadingButton; + this.d = view; + this.e = m0Var; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/i1.java b/app/src/main/java/b/a/i/i1.java new file mode 100644 index 0000000000..f29551f28e --- /dev/null +++ b/app/src/main/java/b/a/i/i1.java @@ -0,0 +1,26 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ServerSettingsMembersRoleSpinnerItemBinding */ +public final class i1 implements ViewBinding { + @NonNull + public final TextView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f127b; + + public i1(@NonNull TextView textView, @NonNull TextView textView2) { + this.a = textView; + this.f127b = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/i2.java b/app/src/main/java/b/a/i/i2.java new file mode 100644 index 0000000000..e0d5b6711b --- /dev/null +++ b/app/src/main/java/b/a/i/i2.java @@ -0,0 +1,28 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewInteractionFailedLabelBinding */ +public final class i2 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f128b; + + public i2(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull TextView textView) { + this.a = constraintLayout; + this.f128b = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/i3.java b/app/src/main/java/b/a/i/i3.java new file mode 100644 index 0000000000..89520f909d --- /dev/null +++ b/app/src/main/java/b/a/i/i3.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewServerSettingsUploadBannerAnimatedUpsellBinding */ +public final class i3 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f129b; + @NonNull + public final LinearLayout c; + @NonNull + public final TextView d; + + public i3(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout2, @NonNull TextView textView) { + this.a = linearLayout; + this.f129b = materialButton; + this.c = linearLayout2; + this.d = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/i4.java b/app/src/main/java/b/a/i/i4.java new file mode 100644 index 0000000000..f7b54b2d48 --- /dev/null +++ b/app/src/main/java/b/a/i/i4.java @@ -0,0 +1,57 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.app.AppViewFlipper; +import com.discord.rlottie.RLottieImageView; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetAcceptGiftDialogBinding */ +public final class i4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f130b; + @NonNull + public final RLottieImageView c; + @NonNull + public final TextView d; + @NonNull + public final MaterialButton e; + @NonNull + public final LinearLayout f; + @NonNull + public final LinkifiedTextView g; + @NonNull + public final AppViewFlipper h; + @NonNull + public final TextView i; + @NonNull + public final ProgressBar j; + + public i4(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull RLottieImageView rLottieImageView, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout3, @NonNull LinkifiedTextView linkifiedTextView, @NonNull AppViewFlipper appViewFlipper, @NonNull TextView textView2, @NonNull ProgressBar progressBar) { + this.a = linearLayout; + this.f130b = simpleDraweeView; + this.c = rLottieImageView; + this.d = textView; + this.e = materialButton; + this.f = linearLayout3; + this.g = linkifiedTextView; + this.h = appViewFlipper; + this.i = textView2; + this.j = progressBar; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/i5.java b/app/src/main/java/b/a/i/i5.java new file mode 100644 index 0000000000..d5d82bdb2f --- /dev/null +++ b/app/src/main/java/b/a/i/i5.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import androidx.annotation.NonNull; +import androidx.fragment.app.FragmentContainerView; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.rounded.RoundedRelativeLayout; +/* compiled from: WidgetHomePanelRightBinding */ +public final class i5 implements ViewBinding { + @NonNull + public final FrameLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final RoundedRelativeLayout f131b; + @NonNull + public final FragmentContainerView c; + + public i5(@NonNull FrameLayout frameLayout, @NonNull RoundedRelativeLayout roundedRelativeLayout, @NonNull FragmentContainerView fragmentContainerView, @NonNull FragmentContainerView fragmentContainerView2, @NonNull FragmentContainerView fragmentContainerView3) { + this.a = frameLayout; + this.f131b = roundedRelativeLayout; + this.c = fragmentContainerView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/j.java b/app/src/main/java/b/a/i/j.java new file mode 100644 index 0000000000..3caff65f34 --- /dev/null +++ b/app/src/main/java/b/a/i/j.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: DefaultTooltipViewTopBinding */ +public final class j implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f132b; + + public j(@NonNull ConstraintLayout constraintLayout, @NonNull TextView textView) { + this.a = constraintLayout; + this.f132b = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/j0.java b/app/src/main/java/b/a/i/j0.java new file mode 100644 index 0000000000..7cd7ef02eb --- /dev/null +++ b/app/src/main/java/b/a/i/j0.java @@ -0,0 +1,39 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.views.LoadingButton; +import com.google.android.material.textfield.TextInputEditText; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: LayoutContactSyncNameInputBinding */ +public final class j0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextInputEditText f133b; + @NonNull + public final TextInputLayout c; + @NonNull + public final LoadingButton d; + @NonNull + public final TextView e; + + public j0(@NonNull ConstraintLayout constraintLayout, @NonNull TextInputEditText textInputEditText, @NonNull TextInputLayout textInputLayout, @NonNull LoadingButton loadingButton, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = constraintLayout; + this.f133b = textInputEditText; + this.c = textInputLayout; + this.d = loadingButton; + this.e = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/j1.java b/app/src/main/java/b/a/i/j1.java new file mode 100644 index 0000000000..9db2839bc7 --- /dev/null +++ b/app/src/main/java/b/a/i/j1.java @@ -0,0 +1,26 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ServerSettingsMembersRoleSpinnerItemOpenBinding */ +public final class j1 implements ViewBinding { + @NonNull + public final TextView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f134b; + + public j1(@NonNull TextView textView, @NonNull TextView textView2) { + this.a = textView; + this.f134b = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/j2.java b/app/src/main/java/b/a/i/j2.java new file mode 100644 index 0000000000..de726cc335 --- /dev/null +++ b/app/src/main/java/b/a/i/j2.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.ProgressBar; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewLoadingButtonBinding */ +public final class j2 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f135b; + @NonNull + public final ProgressBar c; + + public j2(@NonNull View view, @NonNull MaterialButton materialButton, @NonNull ProgressBar progressBar) { + this.a = view; + this.f135b = materialButton; + this.c = progressBar; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/j3.java b/app/src/main/java/b/a/i/j3.java new file mode 100644 index 0000000000..189ac5d038 --- /dev/null +++ b/app/src/main/java/b/a/i/j3.java @@ -0,0 +1,52 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +/* compiled from: ViewServerSettingsUploadBannerBinding */ +public final class j3 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final i3 f136b; + @NonNull + public final FrameLayout c; + @NonNull + public final TextView d; + @NonNull + public final SimpleDraweeView e; + @NonNull + public final FloatingActionButton f; + @NonNull + public final LinkifiedTextView g; + @NonNull + public final TextView h; + @NonNull + public final TextView i; + + public j3(@NonNull LinearLayout linearLayout, @NonNull i3 i3Var, @NonNull FrameLayout frameLayout, @NonNull TextView textView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull FloatingActionButton floatingActionButton, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = linearLayout; + this.f136b = i3Var; + this.c = frameLayout; + this.d = textView; + this.e = simpleDraweeView; + this.f = floatingActionButton; + this.g = linkifiedTextView; + this.h = textView2; + this.i = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/j4.java b/app/src/main/java/b/a/i/j4.java new file mode 100644 index 0000000000..2d70823977 --- /dev/null +++ b/app/src/main/java/b/a/i/j4.java @@ -0,0 +1,32 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetAuthMfaInfoBinding */ +public final class j4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f137b; + @NonNull + public final LinkifiedTextView c; + + public j4(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull LinkifiedTextView linkifiedTextView) { + this.a = linearLayout; + this.f137b = materialButton; + this.c = linkifiedTextView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/j5.java b/app/src/main/java/b/a/i/j5.java new file mode 100644 index 0000000000..7f6e6fbb5a --- /dev/null +++ b/app/src/main/java/b/a/i/j5.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.core.widget.NestedScrollView; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +/* compiled from: WidgetHubEmailFlowConfirmationBinding */ +public final class j5 implements ViewBinding { + @NonNull + public final NestedScrollView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinkifiedTextView f138b; + @NonNull + public final TextView c; + @NonNull + public final LinkifiedTextView d; + + public j5(@NonNull NestedScrollView nestedScrollView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView, @NonNull LinkifiedTextView linkifiedTextView2) { + this.a = nestedScrollView; + this.f138b = linkifiedTextView; + this.c = textView; + this.d = linkifiedTextView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/k.java b/app/src/main/java/b/a/i/k.java new file mode 100644 index 0000000000..f8d9365e65 --- /dev/null +++ b/app/src/main/java/b/a/i/k.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.DatePicker; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: DialogDatePickerBinding */ +public final class k implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f139b; + @NonNull + public final DatePicker c; + @NonNull + public final TextView d; + + public k(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull DatePicker datePicker, @NonNull TextView textView) { + this.a = linearLayout; + this.f139b = materialButton; + this.c = datePicker; + this.d = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/k0.java b/app/src/main/java/b/a/i/k0.java new file mode 100644 index 0000000000..47fdacb61d --- /dev/null +++ b/app/src/main/java/b/a/i/k0.java @@ -0,0 +1,33 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.recyclerview.widget.RecyclerView; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.views.LoadingButton; +/* compiled from: LayoutContactSyncSuggestionsBinding */ +public final class k0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final RecyclerView f140b; + @NonNull + public final LoadingButton c; + + public k0(@NonNull ConstraintLayout constraintLayout, @NonNull RecyclerView recyclerView, @NonNull LoadingButton loadingButton, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView) { + this.a = constraintLayout; + this.f140b = recyclerView; + this.c = loadingButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/k1.java b/app/src/main/java/b/a/i/k1.java new file mode 100644 index 0000000000..6d603e54a0 --- /dev/null +++ b/app/src/main/java/b/a/i/k1.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.UsernameView; +import com.facebook.drawee.span.SimpleDraweeSpanTextView; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: SettingsMemberViewBinding */ +public final class k1 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f141b; + @NonNull + public final SimpleDraweeSpanTextView c; + @NonNull + public final UsernameView d; + + public k1(@NonNull View view, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeSpanTextView simpleDraweeSpanTextView, @NonNull UsernameView usernameView) { + this.a = view; + this.f141b = simpleDraweeView; + this.c = simpleDraweeSpanTextView; + this.d = usernameView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/k2.java b/app/src/main/java/b/a/i/k2.java new file mode 100644 index 0000000000..73663ce05b --- /dev/null +++ b/app/src/main/java/b/a/i/k2.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewMobileReportBlockUserBinding */ +public final class k2 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f142b; + @NonNull + public final MaterialButton c; + @NonNull + public final TextView d; + + public k2(@NonNull LinearLayout linearLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull MaterialButton materialButton, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = linearLayout; + this.f142b = simpleDraweeView; + this.c = materialButton; + this.d = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/k3.java b/app/src/main/java/b/a/i/k3.java new file mode 100644 index 0000000000..16552e3131 --- /dev/null +++ b/app/src/main/java/b/a/i/k3.java @@ -0,0 +1,49 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +/* compiled from: ViewServerSettingsUploadSplashBinding */ +public final class k3 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final FrameLayout f143b; + @NonNull + public final FloatingActionButton c; + @NonNull + public final TextView d; + @NonNull + public final SimpleDraweeView e; + @NonNull + public final LinkifiedTextView f; + @NonNull + public final TextView g; + @NonNull + public final TextView h; + + public k3(@NonNull LinearLayout linearLayout, @NonNull FrameLayout frameLayout, @NonNull FloatingActionButton floatingActionButton, @NonNull TextView textView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = linearLayout; + this.f143b = frameLayout; + this.c = floatingActionButton; + this.d = textView; + this.e = simpleDraweeView; + this.f = linkifiedTextView; + this.g = textView2; + this.h = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/k4.java b/app/src/main/java/b/a/i/k4.java new file mode 100644 index 0000000000..aab2290512 --- /dev/null +++ b/app/src/main/java/b/a/i/k4.java @@ -0,0 +1,25 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetCallFullscreenAudioShareWarningBinding */ +public final class k4 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final View f144b; + + public k4(@NonNull View view, @NonNull View view2) { + this.a = view; + this.f144b = view2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/k5.java b/app/src/main/java/b/a/i/k5.java new file mode 100644 index 0000000000..e464f3cd4b --- /dev/null +++ b/app/src/main/java/b/a/i/k5.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.core.widget.NestedScrollView; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetHubEmailFlowWaitlistBinding */ +public final class k5 implements ViewBinding { + @NonNull + public final NestedScrollView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f145b; + + public k5(@NonNull NestedScrollView nestedScrollView, @NonNull TextView textView) { + this.a = nestedScrollView; + this.f145b = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/l.java b/app/src/main/java/b/a/i/l.java new file mode 100644 index 0000000000..4ed787f87e --- /dev/null +++ b/app/src/main/java/b/a/i/l.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.recycler.MaxHeightRecyclerView; +import com.google.android.material.button.MaterialButton; +/* compiled from: DialogSimpleSelectorBinding */ +public final class l implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f146b; + @NonNull + public final MaxHeightRecyclerView c; + @NonNull + public final TextView d; + + public l(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull MaxHeightRecyclerView maxHeightRecyclerView, @NonNull TextView textView) { + this.a = linearLayout; + this.f146b = materialButton; + this.c = maxHeightRecyclerView; + this.d = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/l0.java b/app/src/main/java/b/a/i/l0.java new file mode 100644 index 0000000000..ddd220e14b --- /dev/null +++ b/app/src/main/java/b/a/i/l0.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: LayoutContactSyncSuggestionsEmptyBinding */ +public final class l0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f147b; + @NonNull + public final MaterialButton c; + + public l0(@NonNull ConstraintLayout constraintLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2) { + this.a = constraintLayout; + this.f147b = materialButton; + this.c = materialButton2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/l1.java b/app/src/main/java/b/a/i/l1.java new file mode 100644 index 0000000000..afe4ebd6a7 --- /dev/null +++ b/app/src/main/java/b/a/i/l1.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ShinyButtonBinding */ +public final class l1 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f148b; + @NonNull + public final ImageView c; + @NonNull + public final TextView d; + + public l1(@NonNull View view, @NonNull LinearLayout linearLayout, @NonNull ImageView imageView, @NonNull TextView textView) { + this.a = view; + this.f148b = linearLayout; + this.c = imageView; + this.d = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/l2.java b/app/src/main/java/b/a/i/l2.java new file mode 100644 index 0000000000..2e5135efff --- /dev/null +++ b/app/src/main/java/b/a/i/l2.java @@ -0,0 +1,54 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.views.GuildView; +/* compiled from: ViewMobileReportsChannelPreviewBinding */ +public final class l2 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final GuildView f149b; + @NonNull + public final TextView c; + @NonNull + public final LinkifiedTextView d; + + public l2(@NonNull ConstraintLayout constraintLayout, @NonNull GuildView guildView, @NonNull TextView textView, @NonNull LinkifiedTextView linkifiedTextView) { + this.a = constraintLayout; + this.f149b = guildView; + this.c = textView; + this.d = linkifiedTextView; + } + + @NonNull + public static l2 a(@NonNull View view) { + int i = R.id.image; + GuildView guildView = (GuildView) view.findViewById(R.id.image); + if (guildView != null) { + i = R.id.kicker; + TextView textView = (TextView) view.findViewById(R.id.kicker); + if (textView != null) { + i = R.id.text; + LinkifiedTextView linkifiedTextView = (LinkifiedTextView) view.findViewById(R.id.text); + if (linkifiedTextView != null) { + return new l2((ConstraintLayout) view, guildView, textView, linkifiedTextView); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/l3.java b/app/src/main/java/b/a/i/l3.java new file mode 100644 index 0000000000..d366c2b07b --- /dev/null +++ b/app/src/main/java/b/a/i/l3.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.checkbox.MaterialCheckBox; +/* compiled from: ViewSettingCheckBinding */ +public final class l3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialCheckBox f150b; + @NonNull + public final ConstraintLayout c; + + public l3(@NonNull View view, @NonNull MaterialCheckBox materialCheckBox, @NonNull ConstraintLayout constraintLayout) { + this.a = view; + this.f150b = materialCheckBox; + this.c = constraintLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/l4.java b/app/src/main/java/b/a/i/l4.java new file mode 100644 index 0000000000..cad3c0a5e7 --- /dev/null +++ b/app/src/main/java/b/a/i/l4.java @@ -0,0 +1,51 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.widgets.voice.fullscreen.grid.PrivateCallBlurredGridView; +import com.discord.widgets.voice.fullscreen.grid.PrivateCallGridView; +/* compiled from: WidgetCallFullscreenPrivateCallBinding */ +public final class l4 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final PrivateCallBlurredGridView f151b; + @NonNull + public final TextView c; + @NonNull + public final RelativeLayout d; + @NonNull + public final LinearLayout e; + @NonNull + public final PrivateCallGridView f; + @NonNull + public final TextView g; + @NonNull + public final TextView h; + @NonNull + public final TextView i; + + public l4(@NonNull RelativeLayout relativeLayout, @NonNull PrivateCallBlurredGridView privateCallBlurredGridView, @NonNull TextView textView, @NonNull RelativeLayout relativeLayout2, @NonNull LinearLayout linearLayout, @NonNull PrivateCallGridView privateCallGridView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4) { + this.a = relativeLayout; + this.f151b = privateCallBlurredGridView; + this.c = textView; + this.d = relativeLayout2; + this.e = linearLayout; + this.f = privateCallGridView; + this.g = textView2; + this.h = textView3; + this.i = textView4; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/l5.java b/app/src/main/java/b/a/i/l5.java new file mode 100644 index 0000000000..7dafb81196 --- /dev/null +++ b/app/src/main/java/b/a/i/l5.java @@ -0,0 +1,37 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetMaskedLinksDialogBinding */ +public final class l5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f152b; + @NonNull + public final MaterialButton c; + @NonNull + public final MaterialButton d; + @NonNull + public final TextView e; + + public l5(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = linearLayout; + this.f152b = textView; + this.c = materialButton; + this.d = materialButton2; + this.e = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/m.java b/app/src/main/java/b/a/i/m.java new file mode 100644 index 0000000000..e771536b50 --- /dev/null +++ b/app/src/main/java/b/a/i/m.java @@ -0,0 +1,26 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: DirectoryChannelTabBinding */ +public final class m implements ViewBinding { + @NonNull + public final TextView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f153b; + + public m(@NonNull TextView textView, @NonNull TextView textView2) { + this.a = textView; + this.f153b = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/m0.java b/app/src/main/java/b/a/i/m0.java new file mode 100644 index 0000000000..7d8a33d1ef --- /dev/null +++ b/app/src/main/java/b/a/i/m0.java @@ -0,0 +1,51 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.views.CheckedSetting; +/* compiled from: LayoutContactSyncToggleInfoBinding */ +public final class m0 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinkifiedTextView f154b; + @NonNull + public final CheckedSetting c; + + public m0(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull CheckedSetting checkedSetting) { + this.a = linearLayout; + this.f154b = linkifiedTextView; + this.c = checkedSetting; + } + + @NonNull + public static m0 a(@NonNull View view) { + int i = R.id.contact_sync_discovery_info_1; + TextView textView = (TextView) view.findViewById(R.id.contact_sync_discovery_info_1); + if (textView != null) { + i = R.id.contact_sync_discovery_info_2; + LinkifiedTextView linkifiedTextView = (LinkifiedTextView) view.findViewById(R.id.contact_sync_discovery_info_2); + if (linkifiedTextView != null) { + i = R.id.contact_sync_discovery_toggle; + CheckedSetting checkedSetting = (CheckedSetting) view.findViewById(R.id.contact_sync_discovery_toggle); + if (checkedSetting != null) { + return new m0((LinearLayout) view, textView, linkifiedTextView, checkedSetting); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/m1.java b/app/src/main/java/b/a/i/m1.java new file mode 100644 index 0000000000..bdea240c51 --- /dev/null +++ b/app/src/main/java/b/a/i/m1.java @@ -0,0 +1,37 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: SimpleConfirmationDialogBinding */ +public final class m1 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f155b; + @NonNull + public final MaterialButton c; + @NonNull + public final MaterialButton d; + @NonNull + public final TextView e; + + public m1(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull TextView textView2) { + this.a = linearLayout; + this.f155b = textView; + this.c = materialButton; + this.d = materialButton2; + this.e = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/m2.java b/app/src/main/java/b/a/i/m2.java new file mode 100644 index 0000000000..0eec525e3a --- /dev/null +++ b/app/src/main/java/b/a/i/m2.java @@ -0,0 +1,28 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.cardview.widget.CardView; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewMobileReportsChildBinding */ +public final class m2 implements ViewBinding { + @NonNull + public final FrameLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f156b; + + public m2(@NonNull FrameLayout frameLayout, @NonNull CardView cardView, @NonNull TextView textView) { + this.a = frameLayout; + this.f156b = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/m3.java b/app/src/main/java/b/a/i/m3.java new file mode 100644 index 0000000000..c56ba10651 --- /dev/null +++ b/app/src/main/java/b/a/i/m3.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.radiobutton.MaterialRadioButton; +/* compiled from: ViewSettingRadioBinding */ +public final class m3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialRadioButton f157b; + @NonNull + public final ConstraintLayout c; + + public m3(@NonNull View view, @NonNull MaterialRadioButton materialRadioButton, @NonNull ConstraintLayout constraintLayout) { + this.a = view; + this.f157b = materialRadioButton; + this.c = constraintLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/m4.java b/app/src/main/java/b/a/i/m4.java new file mode 100644 index 0000000000..8e0630f5f4 --- /dev/null +++ b/app/src/main/java/b/a/i/m4.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetChannelSettingsCannotDeleteBinding */ +public final class m4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f158b; + @NonNull + public final MaterialButton c; + + public m4(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull TextView textView2) { + this.a = linearLayout; + this.f158b = textView; + this.c = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/m5.java b/app/src/main/java/b/a/i/m5.java new file mode 100644 index 0000000000..9d550c2e47 --- /dev/null +++ b/app/src/main/java/b/a/i/m5.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.RadioButton; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetMemberVerificationMultipleChoiceRadioItemBinding */ +public final class m5 implements ViewBinding { + @NonNull + public final RadioButton a; + + public m5(@NonNull RadioButton radioButton) { + this.a = radioButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/n.java b/app/src/main/java/b/a/i/n.java new file mode 100644 index 0000000000..c106287a6e --- /dev/null +++ b/app/src/main/java/b/a/i/n.java @@ -0,0 +1,25 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ExpressionPickerCategorySelectionOverlineViewBinding */ +public final class n implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final View f159b; + + public n(@NonNull View view, @NonNull View view2) { + this.a = view; + this.f159b = view2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/n0.java b/app/src/main/java/b/a/i/n0.java new file mode 100644 index 0000000000..402de367ad --- /dev/null +++ b/app/src/main/java/b/a/i/n0.java @@ -0,0 +1,28 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.views.CodeVerificationView; +/* compiled from: LayoutContactSyncVerifyPhoneBinding */ +public final class n0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final CodeVerificationView f160b; + + public n0(@NonNull ConstraintLayout constraintLayout, @NonNull CodeVerificationView codeVerificationView, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f160b = codeVerificationView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/n1.java b/app/src/main/java/b/a/i/n1.java new file mode 100644 index 0000000000..edeff1bcc9 --- /dev/null +++ b/app/src/main/java/b/a/i/n1.java @@ -0,0 +1,42 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.premium.ShinyButton; +import com.google.android.material.button.MaterialButton; +/* compiled from: SingleValuePropPremiumUpsellDialogBinding */ +public final class n1 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f161b; + @NonNull + public final ShinyButton c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + @NonNull + public final ImageView f; + + public n1(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull MaterialButton materialButton, @NonNull View view, @NonNull ShinyButton shinyButton, @NonNull View view2, @NonNull TextView textView, @NonNull TextView textView2, @NonNull ImageView imageView) { + this.a = linearLayout; + this.f161b = materialButton; + this.c = shinyButton; + this.d = textView; + this.e = textView2; + this.f = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/n2.java b/app/src/main/java/b/a/i/n2.java new file mode 100644 index 0000000000..f555398b6d --- /dev/null +++ b/app/src/main/java/b/a/i/n2.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.CheckedSetting; +/* compiled from: ViewMobileReportsMulticheckItemBinding */ +public final class n2 implements ViewBinding { + @NonNull + public final CheckedSetting a; + + public n2(@NonNull CheckedSetting checkedSetting) { + this.a = checkedSetting; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/n3.java b/app/src/main/java/b/a/i/n3.java new file mode 100644 index 0000000000..6213f1f264 --- /dev/null +++ b/app/src/main/java/b/a/i/n3.java @@ -0,0 +1,37 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +/* compiled from: ViewSettingSharedBinding */ +public final class n3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f162b; + @NonNull + public final TextView c; + @NonNull + public final LinkifiedTextView d; + @NonNull + public final TextView e; + + public n3(@NonNull View view, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView2) { + this.a = view; + this.f162b = imageView; + this.c = textView; + this.d = linkifiedTextView; + this.e = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/n4.java b/app/src/main/java/b/a/i/n4.java new file mode 100644 index 0000000000..7aa73c5f5c --- /dev/null +++ b/app/src/main/java/b/a/i/n4.java @@ -0,0 +1,67 @@ +package b.a.i; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetChannelSettingsDeleteBinding */ +public final class n4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f163b; + @NonNull + public final MaterialButton c; + @NonNull + public final MaterialButton d; + @NonNull + public final TextView e; + + public n4(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull TextView textView2) { + this.a = linearLayout; + this.f163b = textView; + this.c = materialButton; + this.d = materialButton2; + this.e = textView2; + } + + @NonNull + public static n4 a(@NonNull LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, boolean z2) { + View inflate = layoutInflater.inflate(R.layout.widget_channel_settings_delete, (ViewGroup) null, false); + if (!z2) { + int i = R.id.channel_settings_delete_body; + TextView textView = (TextView) inflate.findViewById(R.id.channel_settings_delete_body); + if (textView != null) { + i = R.id.channel_settings_delete_cancel; + MaterialButton materialButton = (MaterialButton) inflate.findViewById(R.id.channel_settings_delete_cancel); + if (materialButton != null) { + i = R.id.channel_settings_delete_confirm; + MaterialButton materialButton2 = (MaterialButton) inflate.findViewById(R.id.channel_settings_delete_confirm); + if (materialButton2 != null) { + i = R.id.channel_settings_delete_title; + TextView textView2 = (TextView) inflate.findViewById(R.id.channel_settings_delete_title); + if (textView2 != null) { + return new n4((LinearLayout) inflate, textView, materialButton, materialButton2, textView2); + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); + } + throw null; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/n5.java b/app/src/main/java/b/a/i/n5.java new file mode 100644 index 0000000000..7437fed7ea --- /dev/null +++ b/app/src/main/java/b/a/i/n5.java @@ -0,0 +1,63 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.SeekBar; +import android.widget.Space; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.Barrier; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetMusicRichPresenceBinding */ +public final class n5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f164b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final SimpleDraweeView e; + @NonNull + public final SimpleDraweeView f; + @NonNull + public final TextView g; + @NonNull + public final TextView h; + @NonNull + public final MaterialButton i; + @NonNull + public final SeekBar j; + @NonNull + public final TextView k; + @NonNull + public final TextView l; + + public n5(@NonNull LinearLayout linearLayout, @NonNull Barrier barrier, @NonNull Space space, @NonNull LinearLayout linearLayout2, @NonNull TextView textView, @NonNull TextView textView2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull FrameLayout frameLayout, @NonNull MaterialButton materialButton, @NonNull SeekBar seekBar, @NonNull TextView textView5, @NonNull TextView textView6) { + this.a = linearLayout; + this.f164b = linearLayout2; + this.c = textView; + this.d = textView2; + this.e = simpleDraweeView; + this.f = simpleDraweeView2; + this.g = textView3; + this.h = textView4; + this.i = materialButton; + this.j = seekBar; + this.k = textView5; + this.l = textView6; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/o.java b/app/src/main/java/b/a/i/o.java new file mode 100644 index 0000000000..7a40708c28 --- /dev/null +++ b/app/src/main/java/b/a/i/o.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: GifSearchEmptyStateTextBoxViewBinding */ +public final class o implements ViewBinding { + @NonNull + public final TextView a; + + public o(@NonNull TextView textView) { + this.a = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/o0.java b/app/src/main/java/b/a/i/o0.java new file mode 100644 index 0000000000..a3f5c8d4ed --- /dev/null +++ b/app/src/main/java/b/a/i/o0.java @@ -0,0 +1,23 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: LayoutFullscreenCallPreviewEmptyBinding */ +public final class o0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + + public o0(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = constraintLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/o1.java b/app/src/main/java/b/a/i/o1.java new file mode 100644 index 0000000000..52e0230b42 --- /dev/null +++ b/app/src/main/java/b/a/i/o1.java @@ -0,0 +1,26 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: SparkleViewBinding */ +public final class o1 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f165b; + + public o1(@NonNull View view, @NonNull ImageView imageView) { + this.a = view; + this.f165b = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/o2.java b/app/src/main/java/b/a/i/o2.java new file mode 100644 index 0000000000..2ce8ac229c --- /dev/null +++ b/app/src/main/java/b/a/i/o2.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewOverlayMenuBinding */ +public final class o2 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final p2 f166b; + @NonNull + public final ImageView c; + @NonNull + public final ImageView d; + @NonNull + public final ImageView e; + + public o2(@NonNull View view, @NonNull p2 p2Var, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull ImageView imageView3) { + this.a = view; + this.f166b = p2Var; + this.c = imageView; + this.d = imageView2; + this.e = imageView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/o3.java b/app/src/main/java/b/a/i/o3.java new file mode 100644 index 0000000000..75f1263595 --- /dev/null +++ b/app/src/main/java/b/a/i/o3.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.switchmaterial.SwitchMaterial; +/* compiled from: ViewSettingSwitchBinding */ +public final class o3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SwitchMaterial f167b; + @NonNull + public final ConstraintLayout c; + + public o3(@NonNull View view, @NonNull SwitchMaterial switchMaterial, @NonNull ConstraintLayout constraintLayout) { + this.a = view; + this.f167b = switchMaterial; + this.c = constraintLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/o4.java b/app/src/main/java/b/a/i/o4.java new file mode 100644 index 0000000000..f79c9a306a --- /dev/null +++ b/app/src/main/java/b/a/i/o4.java @@ -0,0 +1,32 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.cardview.widget.CardView; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetChatInputCommunicationDisabledGuardBinding */ +public final class o4 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f168b; + @NonNull + public final TextView c; + + public o4(@NonNull RelativeLayout relativeLayout, @NonNull CardView cardView, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = relativeLayout; + this.f168b = textView2; + this.c = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/o5.java b/app/src/main/java/b/a/i/o5.java new file mode 100644 index 0000000000..0b3b48a951 --- /dev/null +++ b/app/src/main/java/b/a/i/o5.java @@ -0,0 +1,49 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.Space; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.Barrier; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetPlatformRichPresenceBinding */ +public final class o5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f169b; + @NonNull + public final TextView c; + @NonNull + public final SimpleDraweeView d; + @NonNull + public final SimpleDraweeView e; + @NonNull + public final MaterialButton f; + @NonNull + public final TextView g; + @NonNull + public final TextView h; + + public o5(@NonNull LinearLayout linearLayout, @NonNull Barrier barrier, @NonNull Space space, @NonNull LinearLayout linearLayout2, @NonNull TextView textView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull MaterialButton materialButton, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = linearLayout; + this.f169b = linearLayout2; + this.c = textView; + this.d = simpleDraweeView; + this.e = simpleDraweeView2; + this.f = materialButton; + this.g = textView2; + this.h = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/p.java b/app/src/main/java/b/a/i/p.java new file mode 100644 index 0000000000..1af2ba16d7 --- /dev/null +++ b/app/src/main/java/b/a/i/p.java @@ -0,0 +1,49 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.google.android.material.button.MaterialButton; +/* compiled from: GiftPurchasedDialogBinding */ +public final class p implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f170b; + @NonNull + public final RelativeLayout c; + @NonNull + public final MaterialButton d; + @NonNull + public final LinkifiedTextView e; + @NonNull + public final MaterialButton f; + @NonNull + public final TextView g; + @NonNull + public final ImageView h; + + public p(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull RelativeLayout relativeLayout, @NonNull MaterialButton materialButton, @NonNull LinkifiedTextView linkifiedTextView, @NonNull MaterialButton materialButton2, @NonNull TextView textView2, @NonNull ImageView imageView) { + this.a = linearLayout; + this.f170b = textView; + this.c = relativeLayout; + this.d = materialButton; + this.e = linkifiedTextView; + this.f = materialButton2; + this.g = textView2; + this.h = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/p0.java b/app/src/main/java/b/a/i/p0.java new file mode 100644 index 0000000000..0a135bc2bd --- /dev/null +++ b/app/src/main/java/b/a/i/p0.java @@ -0,0 +1,64 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.constraintlayout.widget.Group; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: LayoutIconUploaderBinding */ +public final class p0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f171b; + @NonNull + public final Group c; + + public p0(@NonNull ConstraintLayout constraintLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull TextView textView, @NonNull ImageView imageView3, @NonNull Group group) { + this.a = constraintLayout; + this.f171b = simpleDraweeView; + this.c = group; + } + + @NonNull + public static p0 a(@NonNull View view) { + int i = R.id.icon_uploader_image; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(R.id.icon_uploader_image); + if (simpleDraweeView != null) { + i = R.id.icon_uploader_placeholder_border; + ImageView imageView = (ImageView) view.findViewById(R.id.icon_uploader_placeholder_border); + if (imageView != null) { + i = R.id.icon_uploader_placeholder_icon; + ImageView imageView2 = (ImageView) view.findViewById(R.id.icon_uploader_placeholder_icon); + if (imageView2 != null) { + i = R.id.icon_uploader_placeholder_text; + TextView textView = (TextView) view.findViewById(R.id.icon_uploader_placeholder_text); + if (textView != null) { + i = R.id.icon_uploader_plus; + ImageView imageView3 = (ImageView) view.findViewById(R.id.icon_uploader_plus); + if (imageView3 != null) { + i = R.id.placeholder_group; + Group group = (Group) view.findViewById(R.id.placeholder_group); + if (group != null) { + return new p0((ConstraintLayout) view, simpleDraweeView, imageView, imageView2, textView, imageView3, group); + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/p1.java b/app/src/main/java/b/a/i/p1.java new file mode 100644 index 0000000000..739fbb56a1 --- /dev/null +++ b/app/src/main/java/b/a/i/p1.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.rlottie.RLottieImageView; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: StickerViewBinding */ +public final class p1 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f172b; + @NonNull + public final RLottieImageView c; + @NonNull + public final ImageView d; + + public p1(@NonNull View view, @NonNull SimpleDraweeView simpleDraweeView, @NonNull RLottieImageView rLottieImageView, @NonNull ImageView imageView) { + this.a = view; + this.f172b = simpleDraweeView; + this.c = rLottieImageView; + this.d = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/p2.java b/app/src/main/java/b/a/i/p2.java new file mode 100644 index 0000000000..17e4ac1ab2 --- /dev/null +++ b/app/src/main/java/b/a/i/p2.java @@ -0,0 +1,43 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.cardview.widget.CardView; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewOverlayMenuContentBinding */ +public final class p2 implements ViewBinding { + @NonNull + public final CardView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f173b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final ImageView e; + @NonNull + public final TextView f; + @NonNull + public final TextView g; + + public p2(@NonNull CardView cardView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull ImageView imageView, @NonNull TextView textView4, @NonNull TextView textView5) { + this.a = cardView; + this.f173b = textView; + this.c = textView2; + this.d = textView3; + this.e = imageView; + this.f = textView4; + this.g = textView5; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/p3.java b/app/src/main/java/b/a/i/p3.java new file mode 100644 index 0000000000..e8a142b673 --- /dev/null +++ b/app/src/main/java/b/a/i/p3.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.appcompat.widget.LinearLayoutCompat; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewSettingsPremiumGuildNoGuildsBinding */ +public final class p3 implements ViewBinding { + @NonNull + public final LinearLayoutCompat a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f174b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + + public p3(@NonNull LinearLayoutCompat linearLayoutCompat, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = linearLayoutCompat; + this.f174b = imageView; + this.c = textView; + this.d = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/p4.java b/app/src/main/java/b/a/i/p4.java new file mode 100644 index 0000000000..5a9039705e --- /dev/null +++ b/app/src/main/java/b/a/i/p4.java @@ -0,0 +1,37 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetChatInputGuardBinding */ +public final class p4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f175b; + @NonNull + public final MaterialButton c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + + public p4(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = linearLayout; + this.f175b = materialButton; + this.c = materialButton2; + this.d = textView; + this.e = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/p5.java b/app/src/main/java/b/a/i/p5.java new file mode 100644 index 0000000000..9bd397d772 --- /dev/null +++ b/app/src/main/java/b/a/i/p5.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetPremiumUpsellBinding */ +public final class p5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f176b; + @NonNull + public final TextView c; + @NonNull + public final ImageView d; + + public p5(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull ImageView imageView) { + this.a = linearLayout; + this.f176b = textView; + this.c = textView2; + this.d = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/q.java b/app/src/main/java/b/a/i/q.java new file mode 100644 index 0000000000..4f3f51e6ed --- /dev/null +++ b/app/src/main/java/b/a/i/q.java @@ -0,0 +1,38 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.airbnb.lottie.LottieAnimationView; +import com.google.android.material.button.MaterialButton; +/* compiled from: GuildBoostActivatedDialogBinding */ +public final class q implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f177b; + @NonNull + public final TextView c; + @NonNull + public final LottieAnimationView d; + @NonNull + public final MaterialButton e; + + public q(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull LottieAnimationView lottieAnimationView, @NonNull MaterialButton materialButton) { + this.a = linearLayout; + this.f177b = textView; + this.c = textView2; + this.d = lottieAnimationView; + this.e = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/q0.java b/app/src/main/java/b/a/i/q0.java new file mode 100644 index 0000000000..5977656bdf --- /dev/null +++ b/app/src/main/java/b/a/i/q0.java @@ -0,0 +1,43 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: LayoutPremiumSettingsPaymentBinding */ +public final class q0 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f178b; + @NonNull + public final View c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + @NonNull + public final LinearLayout f; + @NonNull + public final TextView g; + + public q0(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull View view, @NonNull TextView textView, @NonNull TextView textView2, @NonNull LinearLayout linearLayout2, @NonNull TextView textView3) { + this.a = linearLayout; + this.f178b = materialButton; + this.c = view; + this.d = textView; + this.e = textView2; + this.f = linearLayout2; + this.g = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/q1.java b/app/src/main/java/b/a/i/q1.java new file mode 100644 index 0000000000..257def7916 --- /dev/null +++ b/app/src/main/java/b/a/i/q1.java @@ -0,0 +1,59 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.google.android.material.button.MaterialButton; +/* compiled from: ThreadBrowserEmptyBinding */ +public final class q1 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ConstraintLayout f179b; + @NonNull + public final MaterialButton c; + @NonNull + public final TextView d; + + public q1(@NonNull ConstraintLayout constraintLayout, @NonNull ConstraintLayout constraintLayout2, @NonNull MaterialButton materialButton, @NonNull TextView textView, @NonNull TextView textView2, @NonNull ImageView imageView) { + this.a = constraintLayout; + this.f179b = constraintLayout2; + this.c = materialButton; + this.d = textView; + } + + @NonNull + public static q1 a(@NonNull View view) { + ConstraintLayout constraintLayout = (ConstraintLayout) view; + int i = R.id.thread_browser_empty_create_button; + MaterialButton materialButton = (MaterialButton) view.findViewById(R.id.thread_browser_empty_create_button); + if (materialButton != null) { + i = R.id.thread_browser_empty_heading; + TextView textView = (TextView) view.findViewById(R.id.thread_browser_empty_heading); + if (textView != null) { + i = R.id.thread_browser_empty_subheading; + TextView textView2 = (TextView) view.findViewById(R.id.thread_browser_empty_subheading); + if (textView2 != null) { + i = R.id.thread_icon; + ImageView imageView = (ImageView) view.findViewById(R.id.thread_icon); + if (imageView != null) { + return new q1(constraintLayout, constraintLayout, materialButton, textView, textView2, imageView); + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/q2.java b/app/src/main/java/b/a/i/q2.java new file mode 100644 index 0000000000..8a95ed3df4 --- /dev/null +++ b/app/src/main/java/b/a/i/q2.java @@ -0,0 +1,33 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.textfield.TextInputEditText; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: ViewPhoneOrEmailInputBinding */ +public final class q2 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextInputLayout f180b; + @NonNull + public final TextInputEditText c; + @NonNull + public final TextInputLayout d; + + public q2(@NonNull View view, @NonNull TextInputLayout textInputLayout, @NonNull TextInputEditText textInputEditText, @NonNull TextInputLayout textInputLayout2) { + this.a = view; + this.f180b = textInputLayout; + this.c = textInputEditText; + this.d = textInputLayout2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/q3.java b/app/src/main/java/b/a/i/q3.java new file mode 100644 index 0000000000..2861582b02 --- /dev/null +++ b/app/src/main/java/b/a/i/q3.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewSimpleSpinnerDropdownItemBinding */ +public final class q3 implements ViewBinding { + @NonNull + public final TextView a; + + public q3(@NonNull TextView textView) { + this.a = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/q4.java b/app/src/main/java/b/a/i/q4.java new file mode 100644 index 0000000000..ef8a769a1d --- /dev/null +++ b/app/src/main/java/b/a/i/q4.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.cardview.widget.CardView; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetChatInputMemberVerificationGuardBinding */ +public final class q4 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f181b; + @NonNull + public final ImageView c; + @NonNull + public final TextView d; + + public q4(@NonNull RelativeLayout relativeLayout, @NonNull CardView cardView, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull TextView textView) { + this.a = relativeLayout; + this.f181b = imageView; + this.c = imageView2; + this.d = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/q5.java b/app/src/main/java/b/a/i/q5.java new file mode 100644 index 0000000000..d88a8310d4 --- /dev/null +++ b/app/src/main/java/b/a/i/q5.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetRemoteAuthNotFoundBinding */ +public final class q5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f182b; + + public q5(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton) { + this.a = linearLayout; + this.f182b = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/r.java b/app/src/main/java/b/a/i/r.java new file mode 100644 index 0000000000..a6ba76d95b --- /dev/null +++ b/app/src/main/java/b/a/i/r.java @@ -0,0 +1,46 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.app.AppViewFlipper; +import com.discord.views.LoadingButton; +import com.google.android.material.button.MaterialButton; +/* compiled from: GuildBoostCancelDialogBinding */ +public final class r implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f183b; + @NonNull + public final LoadingButton c; + @NonNull + public final TextView d; + @NonNull + public final AppViewFlipper e; + @NonNull + public final TextView f; + @NonNull + public final MaterialButton g; + + public r(@NonNull LinearLayout linearLayout, @NonNull ProgressBar progressBar, @NonNull TextView textView, @NonNull LoadingButton loadingButton, @NonNull TextView textView2, @NonNull AppViewFlipper appViewFlipper, @NonNull TextView textView3, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout2) { + this.a = linearLayout; + this.f183b = textView; + this.c = loadingButton; + this.d = textView2; + this.e = appViewFlipper; + this.f = textView3; + this.g = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/r0.java b/app/src/main/java/b/a/i/r0.java new file mode 100644 index 0000000000..ffe88192b4 --- /dev/null +++ b/app/src/main/java/b/a/i/r0.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: LayoutVoiceBottomSheetEmptyBinding */ +public final class r0 implements ViewBinding { + @NonNull + public final LinearLayout a; + + public r0(@NonNull LinearLayout linearLayout) { + this.a = linearLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/r1.java b/app/src/main/java/b/a/i/r1.java new file mode 100644 index 0000000000..53cb13a751 --- /dev/null +++ b/app/src/main/java/b/a/i/r1.java @@ -0,0 +1,32 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.typing.TypingDot; +/* compiled from: TypingDotsViewBinding */ +public final class r1 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TypingDot f184b; + @NonNull + public final TypingDot c; + @NonNull + public final TypingDot d; + + public r1(@NonNull View view, @NonNull TypingDot typingDot, @NonNull TypingDot typingDot2, @NonNull TypingDot typingDot3) { + this.a = view; + this.f184b = typingDot; + this.c = typingDot2; + this.d = typingDot3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/r2.java b/app/src/main/java/b/a/i/r2.java new file mode 100644 index 0000000000..10c3d2988b --- /dev/null +++ b/app/src/main/java/b/a/i/r2.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.CutoutView; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewPileItemBinding */ +public final class r2 implements ViewBinding { + @NonNull + public final CutoutView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f185b; + @NonNull + public final SimpleDraweeView c; + @NonNull + public final TextView d; + + public r2(@NonNull CutoutView cutoutView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull TextView textView) { + this.a = cutoutView; + this.f185b = simpleDraweeView; + this.c = simpleDraweeView2; + this.d = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/r3.java b/app/src/main/java/b/a/i/r3.java new file mode 100644 index 0000000000..907279db28 --- /dev/null +++ b/app/src/main/java/b/a/i/r3.java @@ -0,0 +1,26 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.stages.SpeakersRecyclerView; +/* compiled from: ViewStageCardSpeakersBinding */ +public final class r3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SpeakersRecyclerView f186b; + + public r3(@NonNull View view, @NonNull SpeakersRecyclerView speakersRecyclerView) { + this.a = view; + this.f186b = speakersRecyclerView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/r4.java b/app/src/main/java/b/a/i/r4.java new file mode 100644 index 0000000000..8e89df9fb4 --- /dev/null +++ b/app/src/main/java/b/a/i/r4.java @@ -0,0 +1,28 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetChatInputPermReqFilesBinding */ +public final class r4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f187b; + + public r4(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull TextView textView) { + this.a = linearLayout; + this.f187b = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/r5.java b/app/src/main/java/b/a/i/r5.java new file mode 100644 index 0000000000..3fff4fef50 --- /dev/null +++ b/app/src/main/java/b/a/i/r5.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.switchmaterial.SwitchMaterial; +/* compiled from: WidgetRemoteAuthPendingLoginBinding */ +public final class r5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f188b; + @NonNull + public final MaterialButton c; + @NonNull + public final SwitchMaterial d; + + public r5(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull SwitchMaterial switchMaterial) { + this.a = linearLayout; + this.f188b = materialButton; + this.c = materialButton2; + this.d = switchMaterial; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/s.java b/app/src/main/java/b/a/i/s.java new file mode 100644 index 0000000000..0cbf30992a --- /dev/null +++ b/app/src/main/java/b/a/i/s.java @@ -0,0 +1,49 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.app.AppViewFlipper; +import com.discord.views.LoadingButton; +import com.google.android.material.button.MaterialButton; +/* compiled from: GuildBoostUncancelDialogBinding */ +public final class s implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f189b; + @NonNull + public final LoadingButton c; + @NonNull + public final TextView d; + @NonNull + public final AppViewFlipper e; + @NonNull + public final TextView f; + @NonNull + public final ImageView g; + @NonNull + public final MaterialButton h; + + public s(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull LoadingButton loadingButton, @NonNull TextView textView2, @NonNull AppViewFlipper appViewFlipper, @NonNull TextView textView3, @NonNull ImageView imageView, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout2) { + this.a = linearLayout; + this.f189b = textView; + this.c = loadingButton; + this.d = textView2; + this.e = appViewFlipper; + this.f = textView3; + this.g = imageView; + this.h = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/s0.java b/app/src/main/java/b/a/i/s0.java new file mode 100644 index 0000000000..96116986f1 --- /dev/null +++ b/app/src/main/java/b/a/i/s0.java @@ -0,0 +1,44 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.Barrier; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: LayoutVoiceBottomSheetHeaderBinding */ +public final class s0 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f190b; + @NonNull + public final ImageView c; + @NonNull + public final ImageView d; + @NonNull + public final ImageView e; + @NonNull + public final TextView f; + @NonNull + public final TextView g; + + public s0(@NonNull ConstraintLayout constraintLayout, @NonNull Barrier barrier, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull ImageView imageView3, @NonNull ImageView imageView4, @NonNull ImageView imageView5, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f190b = imageView; + this.c = imageView3; + this.d = imageView4; + this.e = imageView5; + this.f = textView; + this.g = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/s1.java b/app/src/main/java/b/a/i/s1.java new file mode 100644 index 0000000000..6c7cdf6a1e --- /dev/null +++ b/app/src/main/java/b/a/i/s1.java @@ -0,0 +1,40 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: UserActionsDialogBinding */ +public final class s1 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f191b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + @NonNull + public final TextView f; + + public s1(@NonNull LinearLayout linearLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4) { + this.a = linearLayout; + this.f191b = simpleDraweeView; + this.c = textView; + this.d = textView2; + this.e = textView3; + this.f = textView4; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/s2.java b/app/src/main/java/b/a/i/s2.java new file mode 100644 index 0000000000..651b9c3243 --- /dev/null +++ b/app/src/main/java/b/a/i/s2.java @@ -0,0 +1,52 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewPremiumGuildProgressBarBinding */ +public final class s2 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ProgressBar f192b; + @NonNull + public final ImageView c; + @NonNull + public final ImageView d; + @NonNull + public final TextView e; + @NonNull + public final ImageView f; + @NonNull + public final TextView g; + @NonNull + public final ImageView h; + @NonNull + public final TextView i; + + public s2(@NonNull ConstraintLayout constraintLayout, @NonNull ProgressBar progressBar, @NonNull FrameLayout frameLayout, @NonNull ImageView imageView, @NonNull LinearLayout linearLayout, @NonNull ImageView imageView2, @NonNull TextView textView, @NonNull LinearLayout linearLayout2, @NonNull ImageView imageView3, @NonNull TextView textView2, @NonNull LinearLayout linearLayout3, @NonNull ImageView imageView4, @NonNull TextView textView3) { + this.a = constraintLayout; + this.f192b = progressBar; + this.c = imageView; + this.d = imageView2; + this.e = textView; + this.f = imageView3; + this.g = textView2; + this.h = imageView4; + this.i = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/s3.java b/app/src/main/java/b/a/i/s3.java new file mode 100644 index 0000000000..51f5342e5d --- /dev/null +++ b/app/src/main/java/b/a/i/s3.java @@ -0,0 +1,47 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.VoiceUserView; +import com.discord.views.calls.SpeakerPulseView; +/* compiled from: ViewStageChannelSpeakerBinding */ +public final class s3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final VoiceUserView f193b; + @NonNull + public final ImageView c; + @NonNull + public final ImageView d; + @NonNull + public final ImageView e; + @NonNull + public final ImageView f; + @NonNull + public final TextView g; + @NonNull + public final SpeakerPulseView h; + + public s3(@NonNull View view, @NonNull VoiceUserView voiceUserView, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull ImageView imageView3, @NonNull ImageView imageView4, @NonNull TextView textView, @NonNull SpeakerPulseView speakerPulseView) { + this.a = view; + this.f193b = voiceUserView; + this.c = imageView; + this.d = imageView2; + this.e = imageView3; + this.f = imageView4; + this.g = textView; + this.h = speakerPulseView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/s4.java b/app/src/main/java/b/a/i/s4.java new file mode 100644 index 0000000000..81bf53994f --- /dev/null +++ b/app/src/main/java/b/a/i/s4.java @@ -0,0 +1,40 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.sticker.StickerView; +/* compiled from: WidgetChatInputStickerSuggestionsBinding */ +public final class s4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final StickerView f194b; + @NonNull + public final StickerView c; + @NonNull + public final StickerView d; + @NonNull + public final StickerView e; + @NonNull + public final ImageView f; + + public s4(@NonNull LinearLayout linearLayout, @NonNull StickerView stickerView, @NonNull StickerView stickerView2, @NonNull StickerView stickerView3, @NonNull StickerView stickerView4, @NonNull ImageView imageView) { + this.a = linearLayout; + this.f194b = stickerView; + this.c = stickerView2; + this.d = stickerView3; + this.e = stickerView4; + this.f = imageView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/s5.java b/app/src/main/java/b/a/i/s5.java new file mode 100644 index 0000000000..8d895f3da3 --- /dev/null +++ b/app/src/main/java/b/a/i/s5.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetRemoteAuthSuccessBinding */ +public final class s5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f195b; + + public s5(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton) { + this.a = linearLayout; + this.f195b = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/t.java b/app/src/main/java/b/a/i/t.java new file mode 100644 index 0000000000..d68c478624 --- /dev/null +++ b/app/src/main/java/b/a/i/t.java @@ -0,0 +1,41 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: GuildBoostUpgradeDialogBinding */ +public final class t implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f196b; + @NonNull + public final ImageView c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + @NonNull + public final MaterialButton f; + + public t(@NonNull RelativeLayout relativeLayout, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull MaterialButton materialButton) { + this.a = relativeLayout; + this.f196b = textView; + this.c = imageView; + this.d = textView2; + this.e = textView3; + this.f = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/t0.java b/app/src/main/java/b/a/i/t0.java new file mode 100644 index 0000000000..a406203461 --- /dev/null +++ b/app/src/main/java/b/a/i/t0.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: MemberVerificationAvatarViewBinding */ +public final class t0 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f197b; + @NonNull + public final TextView c; + + public t0(@NonNull View view, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView) { + this.a = view; + this.f197b = simpleDraweeView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/t1.java b/app/src/main/java/b/a/i/t1.java new file mode 100644 index 0000000000..08a34039c6 --- /dev/null +++ b/app/src/main/java/b/a/i/t1.java @@ -0,0 +1,39 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.StatusView; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: UserAvatarPresenceViewBinding */ +public final class t1 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f198b; + @NonNull + public final ImageView c; + @NonNull + public final SimpleDraweeView d; + @NonNull + public final StatusView e; + + public t1(@NonNull RelativeLayout relativeLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull FrameLayout frameLayout, @NonNull ImageView imageView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull RelativeLayout relativeLayout2, @NonNull StatusView statusView) { + this.a = relativeLayout; + this.f198b = simpleDraweeView; + this.c = imageView; + this.d = simpleDraweeView2; + this.e = statusView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/t2.java b/app/src/main/java/b/a/i/t2.java new file mode 100644 index 0000000000..c4daabeedf --- /dev/null +++ b/app/src/main/java/b/a/i/t2.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewPremiumGuildProgressBinding */ +public final class t2 implements ViewBinding { + @NonNull + public final FrameLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f199b; + @NonNull + public final TextView c; + @NonNull + public final ProgressBar d; + + public t2(@NonNull FrameLayout frameLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull ProgressBar progressBar) { + this.a = frameLayout; + this.f199b = imageView; + this.c = textView; + this.d = progressBar; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/t3.java b/app/src/main/java/b/a/i/t3.java new file mode 100644 index 0000000000..60fdbeac7d --- /dev/null +++ b/app/src/main/java/b/a/i/t3.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewStageChannelVisitCommunityBinding */ +public final class t3 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f200b; + @NonNull + public final TextView c; + + public t3(@NonNull ConstraintLayout constraintLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f200b = simpleDraweeView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/t4.java b/app/src/main/java/b/a/i/t4.java new file mode 100644 index 0000000000..c8c696a1c3 --- /dev/null +++ b/app/src/main/java/b/a/i/t4.java @@ -0,0 +1,22 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +/* compiled from: WidgetChatListAdapterItemEmbedFieldBinding */ +public final class t4 implements ViewBinding { + @NonNull + public final LinearLayout a; + + public t4(@NonNull LinearLayout linearLayout, @NonNull LinkifiedTextView linkifiedTextView, @NonNull LinkifiedTextView linkifiedTextView2) { + this.a = linearLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/t5.java b/app/src/main/java/b/a/i/t5.java new file mode 100644 index 0000000000..091c28bf04 --- /dev/null +++ b/app/src/main/java/b/a/i/t5.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetServerSettingsConfirmDisableIntegrationBinding */ +public final class t5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f201b; + @NonNull + public final MaterialButton c; + @NonNull + public final MaterialButton d; + + public t5(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull TextView textView2) { + this.a = linearLayout; + this.f201b = textView; + this.c = materialButton; + this.d = materialButton2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/u.java b/app/src/main/java/b/a/i/u.java new file mode 100644 index 0000000000..4af555cc33 --- /dev/null +++ b/app/src/main/java/b/a/i/u.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: GuildBoostUpsellDialogBinding */ +public final class u implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f202b; + @NonNull + public final TextView c; + @NonNull + public final MaterialButton d; + + public u(@NonNull RelativeLayout relativeLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull MaterialButton materialButton) { + this.a = relativeLayout; + this.f202b = imageView; + this.c = textView; + this.d = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/u0.java b/app/src/main/java/b/a/i/u0.java new file mode 100644 index 0000000000..db49ec7cf7 --- /dev/null +++ b/app/src/main/java/b/a/i/u0.java @@ -0,0 +1,42 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import androidx.viewpager2.widget.ViewPager2; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.tabs.TabLayout; +/* compiled from: MultiValuePropPremiumUpsellDialogBinding */ +public final class u0 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f203b; + @NonNull + public final TabLayout c; + @NonNull + public final MaterialButton d; + @NonNull + public final MaterialButton e; + @NonNull + public final ViewPager2 f; + + public u0(@NonNull RelativeLayout relativeLayout, @NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull View view, @NonNull TabLayout tabLayout, @NonNull MaterialButton materialButton2, @NonNull MaterialButton materialButton3, @NonNull ViewPager2 viewPager2) { + this.a = relativeLayout; + this.f203b = materialButton; + this.c = tabLayout; + this.d = materialButton2; + this.e = materialButton3; + this.f = viewPager2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/u1.java b/app/src/main/java/b/a/i/u1.java new file mode 100644 index 0000000000..0e504ee4c0 --- /dev/null +++ b/app/src/main/java/b/a/i/u1.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.calls.VideoCallParticipantView; +/* compiled from: VideoCallGridItemBinding */ +public final class u1 implements ViewBinding { + @NonNull + public final VideoCallParticipantView a; + + public u1(@NonNull VideoCallParticipantView videoCallParticipantView) { + this.a = videoCallParticipantView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/u2.java b/app/src/main/java/b/a/i/u2.java new file mode 100644 index 0000000000..5c4d5e61fc --- /dev/null +++ b/app/src/main/java/b/a/i/u2.java @@ -0,0 +1,52 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewPremiumMarketingBinding */ +public final class u2 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f204b; + @NonNull + public final MaterialButton c; + @NonNull + public final LinearLayout d; + @NonNull + public final TextView e; + @NonNull + public final TextView f; + @NonNull + public final TextView g; + @NonNull + public final TextView h; + @NonNull + public final TextView i; + @NonNull + public final TextView j; + + public u2(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout3, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5, @NonNull TextView textView6) { + this.a = linearLayout; + this.f204b = linearLayout2; + this.c = materialButton; + this.d = linearLayout3; + this.e = textView; + this.f = textView2; + this.g = textView3; + this.h = textView4; + this.i = textView5; + this.j = textView6; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/u3.java b/app/src/main/java/b/a/i/u3.java new file mode 100644 index 0000000000..38ad87992f --- /dev/null +++ b/app/src/main/java/b/a/i/u3.java @@ -0,0 +1,54 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import androidx.viewpager2.widget.ViewPager2; +import com.discord.views.LoadingButton; +import com.discord.views.steps.StepsProgressIndicatorView; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewStepsBinding */ +public final class u3 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f205b; + @NonNull + public final TextView c; + @NonNull + public final ImageView d; + @NonNull + public final LoadingButton e; + @NonNull + public final MaterialButton f; + @NonNull + public final StepsProgressIndicatorView g; + @NonNull + public final TextView h; + @NonNull + public final ViewPager2 i; + + public u3(@NonNull RelativeLayout relativeLayout, @NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull LoadingButton loadingButton, @NonNull MaterialButton materialButton, @NonNull StepsProgressIndicatorView stepsProgressIndicatorView, @NonNull TextView textView2, @NonNull ViewPager2 viewPager2) { + this.a = relativeLayout; + this.f205b = linearLayout; + this.c = textView; + this.d = imageView; + this.e = loadingButton; + this.f = materialButton; + this.g = stepsProgressIndicatorView; + this.h = textView2; + this.i = viewPager2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/u4.java b/app/src/main/java/b/a/i/u4.java new file mode 100644 index 0000000000..9e7933e332 --- /dev/null +++ b/app/src/main/java/b/a/i/u4.java @@ -0,0 +1,40 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.constraintlayout.widget.Guideline; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: WidgetChatListAdapterItemSingleLineMessagePreviewBinding */ +public final class u4 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f206b; + @NonNull + public final LinkifiedTextView c; + @NonNull + public final SimpleDraweeView d; + @NonNull + public final TextView e; + + public u4(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView, @NonNull Guideline guideline, @NonNull Guideline guideline2, @NonNull Guideline guideline3) { + this.a = constraintLayout; + this.f206b = imageView; + this.c = linkifiedTextView; + this.d = simpleDraweeView; + this.e = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/u5.java b/app/src/main/java/b/a/i/u5.java new file mode 100644 index 0000000000..792cbea4c2 --- /dev/null +++ b/app/src/main/java/b/a/i/u5.java @@ -0,0 +1,36 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: WidgetServerSettingsOverviewSectionAfkChannelBinding */ +public final class u5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f207b; + @NonNull + public final LinearLayout c; + @NonNull + public final TextView d; + @NonNull + public final LinearLayout e; + + public u5(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull LinearLayout linearLayout2, @NonNull TextView textView2, @NonNull LinearLayout linearLayout3) { + this.a = linearLayout; + this.f207b = textView; + this.c = linearLayout2; + this.d = textView2; + this.e = linearLayout3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/v.java b/app/src/main/java/b/a/i/v.java new file mode 100644 index 0000000000..a2d367495e --- /dev/null +++ b/app/src/main/java/b/a/i/v.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: GuildChannelSideBarActionsViewBinding */ +public final class v implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f208b; + @NonNull + public final MaterialButton c; + @NonNull + public final MaterialButton d; + @NonNull + public final MaterialButton e; + + public v(@NonNull View view, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull MaterialButton materialButton3, @NonNull MaterialButton materialButton4) { + this.a = view; + this.f208b = materialButton; + this.c = materialButton2; + this.d = materialButton3; + this.e = materialButton4; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/v0.java b/app/src/main/java/b/a/i/v0.java new file mode 100644 index 0000000000..516e1d3675 --- /dev/null +++ b/app/src/main/java/b/a/i/v0.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: OauthTokenPermissionListItemBinding */ +public final class v0 implements ViewBinding { + @NonNull + public final TextView a; + + public v0(@NonNull TextView textView) { + this.a = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/v1.java b/app/src/main/java/b/a/i/v1.java new file mode 100644 index 0000000000..6a3b902101 --- /dev/null +++ b/app/src/main/java/b/a/i/v1.java @@ -0,0 +1,38 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewAccountCreditBinding */ +public final class v1 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f209b; + @NonNull + public final ImageView c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + + public v1(@NonNull ConstraintLayout constraintLayout, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull TextView textView2, @NonNull LinearLayout linearLayout, @NonNull TextView textView3) { + this.a = constraintLayout; + this.f209b = textView; + this.c = imageView; + this.d = textView2; + this.e = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/v2.java b/app/src/main/java/b/a/i/v2.java new file mode 100644 index 0000000000..632ac57a1b --- /dev/null +++ b/app/src/main/java/b/a/i/v2.java @@ -0,0 +1,36 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewPremiumSettingsPerksBinding */ +public final class v2 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f210b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + + public v2(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5) { + this.a = linearLayout; + this.f210b = textView; + this.c = textView3; + this.d = textView4; + this.e = textView5; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/v3.java b/app/src/main/java/b/a/i/v3.java new file mode 100644 index 0000000000..748e1b7a39 --- /dev/null +++ b/app/src/main/java/b/a/i/v3.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewStreamPreviewBinding */ +public final class v3 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f211b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + + public v3(@NonNull ConstraintLayout constraintLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f211b = simpleDraweeView; + this.c = textView; + this.d = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/v4.java b/app/src/main/java/b/a/i/v4.java new file mode 100644 index 0000000000..525aaf4def --- /dev/null +++ b/app/src/main/java/b/a/i/v4.java @@ -0,0 +1,57 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.discord.widgets.botuikit.views.ActionRowComponentView; +import com.google.android.flexbox.FlexboxLayout; +/* compiled from: WidgetChatListBotUiActionRowComponentBinding */ +public final class v4 implements ViewBinding { + @NonNull + public final ActionRowComponentView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final FlexboxLayout f212b; + @NonNull + public final i2 c; + + public v4(@NonNull ActionRowComponentView actionRowComponentView, @NonNull FlexboxLayout flexboxLayout, @NonNull i2 i2Var) { + this.a = actionRowComponentView; + this.f212b = flexboxLayout; + this.c = i2Var; + } + + @NonNull + public static v4 a(@NonNull View view) { + int i = R.id.action_row_component_view_group; + FlexboxLayout flexboxLayout = (FlexboxLayout) view.findViewById(R.id.action_row_component_view_group); + if (flexboxLayout != null) { + i = R.id.action_row_component_view_group_error_row; + View findViewById = view.findViewById(R.id.action_row_component_view_group_error_row); + if (findViewById != null) { + int i2 = R.id.view_interaction_failed_label_icon; + ImageView imageView = (ImageView) findViewById.findViewById(R.id.view_interaction_failed_label_icon); + if (imageView != null) { + i2 = R.id.view_interaction_failed_label_message; + TextView textView = (TextView) findViewById.findViewById(R.id.view_interaction_failed_label_message); + if (textView != null) { + return new v4((ActionRowComponentView) view, flexboxLayout, new i2((ConstraintLayout) findViewById, imageView, textView)); + } + } + throw new NullPointerException("Missing required view with ID: ".concat(findViewById.getResources().getResourceName(i2))); + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/v5.java b/app/src/main/java/b/a/i/v5.java new file mode 100644 index 0000000000..a5bc11c97b --- /dev/null +++ b/app/src/main/java/b/a/i/v5.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetSettingsPrivacyDefaultsBinding */ +public final class v5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f213b; + @NonNull + public final MaterialButton c; + + public v5(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2) { + this.a = linearLayout; + this.f213b = materialButton; + this.c = materialButton2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/w.java b/app/src/main/java/b/a/i/w.java new file mode 100644 index 0000000000..13c1411bd0 --- /dev/null +++ b/app/src/main/java/b/a/i/w.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.cardview.widget.CardView; +import androidx.viewbinding.ViewBinding; +import com.discord.widgets.roles.RoleIconView; +/* compiled from: GuildRoleChipBinding */ +public final class w implements ViewBinding { + @NonNull + public final CardView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f214b; + @NonNull + public final RoleIconView c; + @NonNull + public final TextView d; + + public w(@NonNull CardView cardView, @NonNull ImageView imageView, @NonNull RoleIconView roleIconView, @NonNull TextView textView) { + this.a = cardView; + this.f214b = imageView; + this.c = roleIconView; + this.d = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/w0.java b/app/src/main/java/b/a/i/w0.java new file mode 100644 index 0000000000..8fa934b6ef --- /dev/null +++ b/app/src/main/java/b/a/i/w0.java @@ -0,0 +1,41 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; +import androidx.viewbinding.ViewBinding; +import com.discord.views.OverlayMenuView; +/* compiled from: OverlayBubbleMenuBinding */ +public final class w0 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f215b; + @NonNull + public final View c; + @NonNull + public final TextView d; + @NonNull + public final RecyclerView e; + @NonNull + public final OverlayMenuView f; + + public w0(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull View view, @NonNull TextView textView, @NonNull RecyclerView recyclerView, @NonNull OverlayMenuView overlayMenuView) { + this.a = linearLayout; + this.f215b = linearLayout2; + this.c = view; + this.d = textView; + this.e = recyclerView; + this.f = overlayMenuView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/w1.java b/app/src/main/java/b/a/i/w1.java new file mode 100644 index 0000000000..8a38bb051a --- /dev/null +++ b/app/src/main/java/b/a/i/w1.java @@ -0,0 +1,51 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewActiveSubscriptionBinding */ +public final class w1 implements ViewBinding { + @NonNull + public final FrameLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f216b; + @NonNull + public final ImageView c; + @NonNull + public final ImageView d; + @NonNull + public final ImageView e; + @NonNull + public final TextView f; + @NonNull + public final MaterialButton g; + @NonNull + public final ProgressBar h; + @NonNull + public final MaterialButton i; + + public w1(@NonNull FrameLayout frameLayout, @NonNull TextView textView, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull ImageView imageView3, @NonNull TextView textView2, @NonNull MaterialButton materialButton, @NonNull ProgressBar progressBar, @NonNull MaterialButton materialButton2) { + this.a = frameLayout; + this.f216b = textView; + this.c = imageView; + this.d = imageView2; + this.e = imageView3; + this.f = textView2; + this.g = materialButton; + this.h = progressBar; + this.i = materialButton2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/w2.java b/app/src/main/java/b/a/i/w2.java new file mode 100644 index 0000000000..e15e524c09 --- /dev/null +++ b/app/src/main/java/b/a/i/w2.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewPremiumSettingsTier1Binding */ +public final class w2 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f217b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + + public w2(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = linearLayout; + this.f217b = materialButton; + this.c = textView; + this.d = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/w3.java b/app/src/main/java/b/a/i/w3.java new file mode 100644 index 0000000000..bd3c0f8f67 --- /dev/null +++ b/app/src/main/java/b/a/i/w3.java @@ -0,0 +1,51 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.views.CheckableImageView; +/* compiled from: ViewTernaryCheckboxBinding */ +public final class w3 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final FrameLayout f218b; + @NonNull + public final View c; + @NonNull + public final View d; + @NonNull + public final TextView e; + @NonNull + public final LinkifiedTextView f; + @NonNull + public final CheckableImageView g; + @NonNull + public final CheckableImageView h; + @NonNull + public final CheckableImageView i; + + public w3(@NonNull LinearLayout linearLayout, @NonNull FrameLayout frameLayout, @NonNull LinearLayout linearLayout2, @NonNull View view, @NonNull View view2, @NonNull TextView textView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull CheckableImageView checkableImageView, @NonNull CheckableImageView checkableImageView2, @NonNull CheckableImageView checkableImageView3) { + this.a = linearLayout; + this.f218b = frameLayout; + this.c = view; + this.d = view2; + this.e = textView; + this.f = linkifiedTextView; + this.g = checkableImageView; + this.h = checkableImageView2; + this.i = checkableImageView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/w4.java b/app/src/main/java/b/a/i/w4.java new file mode 100644 index 0000000000..324873e524 --- /dev/null +++ b/app/src/main/java/b/a/i/w4.java @@ -0,0 +1,70 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.discord.views.typing.TypingDots; +import com.discord.widgets.botuikit.views.select.SelectComponentView; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.flexbox.FlexboxLayout; +import com.google.android.material.textview.MaterialTextView; +/* compiled from: WidgetChatListBotUiSelectComponentBinding */ +public final class w4 implements ViewBinding { + @NonNull + public final SelectComponentView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f219b; + @NonNull + public final TypingDots c; + @NonNull + public final SimpleDraweeView d; + @NonNull + public final MaterialTextView e; + @NonNull + public final FlexboxLayout f; + + public w4(@NonNull SelectComponentView selectComponentView, @NonNull ImageView imageView, @NonNull TypingDots typingDots, @NonNull SimpleDraweeView simpleDraweeView, @NonNull MaterialTextView materialTextView, @NonNull FlexboxLayout flexboxLayout) { + this.a = selectComponentView; + this.f219b = imageView; + this.c = typingDots; + this.d = simpleDraweeView; + this.e = materialTextView; + this.f = flexboxLayout; + } + + @NonNull + public static w4 a(@NonNull View view) { + int i = R.id.select_component_chevron; + ImageView imageView = (ImageView) view.findViewById(R.id.select_component_chevron); + if (imageView != null) { + i = R.id.select_component_loading; + TypingDots typingDots = (TypingDots) view.findViewById(R.id.select_component_loading); + if (typingDots != null) { + i = R.id.select_component_selection_icon; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(R.id.select_component_selection_icon); + if (simpleDraweeView != null) { + i = R.id.select_component_selection_text; + MaterialTextView materialTextView = (MaterialTextView) view.findViewById(R.id.select_component_selection_text); + if (materialTextView != null) { + i = R.id.select_component_selections_root; + FlexboxLayout flexboxLayout = (FlexboxLayout) view.findViewById(R.id.select_component_selections_root); + if (flexboxLayout != null) { + return new w4((SelectComponentView) view, imageView, typingDots, simpleDraweeView, materialTextView, flexboxLayout); + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/w5.java b/app/src/main/java/b/a/i/w5.java new file mode 100644 index 0000000000..b786d06beb --- /dev/null +++ b/app/src/main/java/b/a/i/w5.java @@ -0,0 +1,53 @@ +package b.a.i; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.Space; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.Barrier; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.button.MaterialButton; +/* compiled from: WidgetStageChannelRichPresenceBinding */ +public final class w5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f220b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final SimpleDraweeView e; + @NonNull + public final TextView f; + @NonNull + public final MaterialButton g; + @NonNull + public final TextView h; + @NonNull + public final TextView i; + + public w5(@NonNull LinearLayout linearLayout, @NonNull Barrier barrier, @NonNull Space space, @NonNull LinearLayout linearLayout2, @NonNull TextView textView, @NonNull TextView textView2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView3, @NonNull FrameLayout frameLayout, @NonNull MaterialButton materialButton, @NonNull TextView textView4, @NonNull TextView textView5) { + this.a = linearLayout; + this.f220b = linearLayout2; + this.c = textView; + this.d = textView2; + this.e = simpleDraweeView; + this.f = textView3; + this.g = materialButton; + this.h = textView4; + this.i = textView5; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/x.java b/app/src/main/java/b/a/i/x.java new file mode 100644 index 0000000000..35a29d8fe8 --- /dev/null +++ b/app/src/main/java/b/a/i/x.java @@ -0,0 +1,27 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: GuildVideoAtCapacityBinding */ +public final class x implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f221b; + + public x(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout2) { + this.a = linearLayout; + this.f221b = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/x0.java b/app/src/main/java/b/a/i/x0.java new file mode 100644 index 0000000000..52fd6c6925 --- /dev/null +++ b/app/src/main/java/b/a/i/x0.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.VoiceUserView; +/* compiled from: OverlayMenuVoiceMembersItemBinding */ +public final class x0 implements ViewBinding { + @NonNull + public final VoiceUserView a; + + public x0(@NonNull VoiceUserView voiceUserView) { + this.a = voiceUserView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/x1.java b/app/src/main/java/b/a/i/x1.java new file mode 100644 index 0000000000..34ad1ad78b --- /dev/null +++ b/app/src/main/java/b/a/i/x1.java @@ -0,0 +1,24 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.constraintlayout.widget.Guideline; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewAddOverrideItemBinding */ +public final class x1 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + + public x1(@NonNull ConstraintLayout constraintLayout, @NonNull TextView textView, @NonNull Guideline guideline, @NonNull ImageView imageView) { + this.a = constraintLayout; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/x2.java b/app/src/main/java/b/a/i/x2.java new file mode 100644 index 0000000000..055efb3950 --- /dev/null +++ b/app/src/main/java/b/a/i/x2.java @@ -0,0 +1,28 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.button.MaterialButton; +/* compiled from: ViewPremiumSettingsTier2Binding */ +public final class x2 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f222b; + + public x2(@NonNull LinearLayout linearLayout, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull MaterialButton materialButton) { + this.a = linearLayout; + this.f222b = materialButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/x3.java b/app/src/main/java/b/a/i/x3.java new file mode 100644 index 0000000000..754811351d --- /dev/null +++ b/app/src/main/java/b/a/i/x3.java @@ -0,0 +1,40 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.StatusView; +/* compiled from: ViewToolbarTitleBinding */ +public final class x3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f223b; + @NonNull + public final StatusView c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + @NonNull + public final ImageView f; + + public x3(@NonNull View view, @NonNull ImageView imageView, @NonNull StatusView statusView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull ImageView imageView2) { + this.a = view; + this.f223b = imageView; + this.c = statusView; + this.d = textView; + this.e = textView2; + this.f = imageView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/x4.java b/app/src/main/java/b/a/i/x4.java new file mode 100644 index 0000000000..51526388b3 --- /dev/null +++ b/app/src/main/java/b/a/i/x4.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.google.android.material.textview.MaterialTextView; +/* compiled from: WidgetChatListBotUiSelectComponentPillBinding */ +public final class x4 implements ViewBinding { + @NonNull + public final MaterialTextView a; + + public x4(@NonNull MaterialTextView materialTextView) { + this.a = materialTextView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/x5.java b/app/src/main/java/b/a/i/x5.java new file mode 100644 index 0000000000..deb3604c74 --- /dev/null +++ b/app/src/main/java/b/a/i/x5.java @@ -0,0 +1,51 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.discord.views.StreamPreviewView; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: WidgetStreamRichPresenceBinding */ +public final class x5 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinearLayout f224b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final SimpleDraweeView e; + @NonNull + public final TextView f; + @NonNull + public final TextView g; + @NonNull + public final TextView h; + @NonNull + public final StreamPreviewView i; + + public x5(@NonNull ConstraintLayout constraintLayout, @NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5, @NonNull StreamPreviewView streamPreviewView) { + this.a = constraintLayout; + this.f224b = linearLayout; + this.c = textView; + this.d = textView2; + this.e = simpleDraweeView; + this.f = textView3; + this.g = textView4; + this.h = textView5; + this.i = streamPreviewView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/y.java b/app/src/main/java/b/a/i/y.java new file mode 100644 index 0000000000..20e8d5c27f --- /dev/null +++ b/app/src/main/java/b/a/i/y.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: IconRowBinding */ +public final class y implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f225b; + @NonNull + public final TextView c; + + public y(@NonNull View view, @NonNull View view2, @NonNull ImageView imageView, @NonNull TextView textView) { + this.a = view; + this.f225b = imageView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/y0.java b/app/src/main/java/b/a/i/y0.java new file mode 100644 index 0000000000..b830bddb2e --- /dev/null +++ b/app/src/main/java/b/a/i/y0.java @@ -0,0 +1,26 @@ +package b.a.i; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: OverlayVoiceBubbleBinding */ +public final class y0 implements ViewBinding { + @NonNull + public final SimpleDraweeView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f226b; + + public y0(@NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2) { + this.a = simpleDraweeView; + this.f226b = simpleDraweeView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/y1.java b/app/src/main/java/b/a/i/y1.java new file mode 100644 index 0000000000..d7e656bbab --- /dev/null +++ b/app/src/main/java/b/a/i/y1.java @@ -0,0 +1,31 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewCallEventsButtonBinding */ +public final class y1 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f227b; + @NonNull + public final TextView c; + + public y1(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull TextView textView) { + this.a = constraintLayout; + this.f227b = imageView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/y2.java b/app/src/main/java/b/a/i/y2.java new file mode 100644 index 0000000000..707ad6aa31 --- /dev/null +++ b/app/src/main/java/b/a/i/y2.java @@ -0,0 +1,33 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewPremiumUpsellInfoBinding */ +public final class y2 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f228b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + + public y2(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3) { + this.a = linearLayout; + this.f228b = textView; + this.c = textView2; + this.d = textView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/y3.java b/app/src/main/java/b/a/i/y3.java new file mode 100644 index 0000000000..089c2537de --- /dev/null +++ b/app/src/main/java/b/a/i/y3.java @@ -0,0 +1,38 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewUploadProgressBinding */ +public final class y3 implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ProgressBar f229b; + @NonNull + public final ImageView c; + @NonNull + public final TextView d; + @NonNull + public final TextView e; + + public y3(@NonNull ConstraintLayout constraintLayout, @NonNull ProgressBar progressBar, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = constraintLayout; + this.f229b = progressBar; + this.c = imageView; + this.d = textView; + this.e = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/y4.java b/app/src/main/java/b/a/i/y4.java new file mode 100644 index 0000000000..fd4aea2d82 --- /dev/null +++ b/app/src/main/java/b/a/i/y4.java @@ -0,0 +1,35 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.views.ChatActionItem; +/* compiled from: WidgetDirectoryChannelEmptyBinding */ +public final class y4 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextView f230b; + @NonNull + public final ChatActionItem c; + @NonNull + public final ChatActionItem d; + + public y4(@NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull ChatActionItem chatActionItem, @NonNull ChatActionItem chatActionItem2) { + this.a = linearLayout; + this.f230b = textView; + this.c = chatActionItem; + this.d = chatActionItem2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/y5.java b/app/src/main/java/b/a/i/y5.java new file mode 100644 index 0000000000..d26556853a --- /dev/null +++ b/app/src/main/java/b/a/i/y5.java @@ -0,0 +1,34 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.LoadingButton; +/* compiled from: WidgetUrgentMessageDialogBinding */ +public final class y5 implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LoadingButton f231b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + + public y5(@NonNull LinearLayout linearLayout, @NonNull LoadingButton loadingButton, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = linearLayout; + this.f231b = loadingButton; + this.c = textView; + this.d = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/z.java b/app/src/main/java/b/a/i/z.java new file mode 100644 index 0000000000..57c309bfd6 --- /dev/null +++ b/app/src/main/java/b/a/i/z.java @@ -0,0 +1,38 @@ +package b.a.i; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.button.MaterialButton; +/* compiled from: ImageUploadDialogBinding */ +public final class z implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final MaterialButton f232b; + @NonNull + public final TextView c; + @NonNull + public final SimpleDraweeView d; + @NonNull + public final MaterialButton e; + + public z(@NonNull LinearLayout linearLayout, @NonNull MaterialButton materialButton, @NonNull TextView textView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull MaterialButton materialButton2) { + this.a = linearLayout; + this.f232b = materialButton; + this.c = textView; + this.d = simpleDraweeView; + this.e = materialButton2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/z0.java b/app/src/main/java/b/a/i/z0.java new file mode 100644 index 0000000000..50e04b7de1 --- /dev/null +++ b/app/src/main/java/b/a/i/z0.java @@ -0,0 +1,77 @@ +package b.a.i; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.cardview.widget.CardView; +import androidx.recyclerview.widget.RecyclerView; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: OverlayVoiceChannelSelectorBinding */ +public final class z0 implements ViewBinding { + @NonNull + public final CardView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f233b; + @NonNull + public final CardView c; + @NonNull + public final TextView d; + @NonNull + public final TextInputLayout e; + @NonNull + public final RecyclerView f; + + public z0(@NonNull CardView cardView, @NonNull ImageView imageView, @NonNull CardView cardView2, @NonNull TextView textView, @NonNull TextInputLayout textInputLayout, @NonNull RecyclerView recyclerView, @NonNull TextView textView2) { + this.a = cardView; + this.f233b = imageView; + this.c = cardView2; + this.d = textView; + this.e = textInputLayout; + this.f = recyclerView; + } + + @NonNull + public static z0 a(@NonNull LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, boolean z2) { + View inflate = layoutInflater.inflate(R.layout.overlay_voice_channel_selector, viewGroup, false); + if (z2) { + viewGroup.addView(inflate); + } + int i = R.id.close; + ImageView imageView = (ImageView) inflate.findViewById(R.id.close); + if (imageView != null) { + CardView cardView = (CardView) inflate; + i = R.id.empty_results; + TextView textView = (TextView) inflate.findViewById(R.id.empty_results); + if (textView != null) { + i = R.id.overlay_channel_search; + TextInputLayout textInputLayout = (TextInputLayout) inflate.findViewById(R.id.overlay_channel_search); + if (textInputLayout != null) { + i = R.id.results_rv; + RecyclerView recyclerView = (RecyclerView) inflate.findViewById(R.id.results_rv); + if (recyclerView != null) { + i = R.id.test; + TextView textView2 = (TextView) inflate.findViewById(R.id.test); + if (textView2 != null) { + return new z0(cardView, imageView, cardView, textView, textInputLayout, recyclerView, textView2); + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/z1.java b/app/src/main/java/b/a/i/z1.java new file mode 100644 index 0000000000..9ab211c7e1 --- /dev/null +++ b/app/src/main/java/b/a/i/z1.java @@ -0,0 +1,30 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewChatActionItemBinding */ +public final class z1 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f234b; + @NonNull + public final TextView c; + + public z1(@NonNull View view, @NonNull ImageView imageView, @NonNull TextView textView) { + this.a = view; + this.f234b = imageView; + this.c = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/z2.java b/app/src/main/java/b/a/i/z2.java new file mode 100644 index 0000000000..8e961c63bf --- /dev/null +++ b/app/src/main/java/b/a/i/z2.java @@ -0,0 +1,21 @@ +package b.a.i; + +import android.view.View; +import android.widget.RadioButton; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: ViewRadioButtonBinding */ +public final class z2 implements ViewBinding { + @NonNull + public final RadioButton a; + + public z2(@NonNull RadioButton radioButton) { + this.a = radioButton; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/z3.java b/app/src/main/java/b/a/i/z3.java new file mode 100644 index 0000000000..224dbe710a --- /dev/null +++ b/app/src/main/java/b/a/i/z3.java @@ -0,0 +1,37 @@ +package b.a.i; + +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.views.StatusView; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewUserListItemBinding */ +public final class z3 implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f235b; + @NonNull + public final TextView c; + @NonNull + public final TextView d; + @NonNull + public final StatusView e; + + public z3(@NonNull View view, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull StatusView statusView) { + this.a = view; + this.f235b = simpleDraweeView; + this.c = textView; + this.d = textView2; + this.e = statusView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/z4.java b/app/src/main/java/b/a/i/z4.java new file mode 100644 index 0000000000..6f7e90ee5d --- /dev/null +++ b/app/src/main/java/b/a/i/z4.java @@ -0,0 +1,43 @@ +package b.a.i; + +import android.view.View; +import android.widget.ImageView; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.core.widget.NestedScrollView; +import androidx.viewbinding.ViewBinding; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.google.android.material.textfield.TextInputEditText; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: WidgetDiscordHubEmailInputBinding */ +public final class z4 implements ViewBinding { + @NonNull + public final NestedScrollView a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final LinkifiedTextView f236b; + @NonNull + public final TextInputEditText c; + @NonNull + public final TextInputLayout d; + @NonNull + public final TextView e; + @NonNull + public final TextView f; + + public z4(@NonNull NestedScrollView nestedScrollView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextInputEditText textInputEditText, @NonNull TextInputLayout textInputLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull TextView textView2) { + this.a = nestedScrollView; + this.f236b = linkifiedTextView; + this.c = textInputEditText; + this.d = textInputLayout; + this.e = textView; + this.f = textView2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/i/z5.java b/app/src/main/java/b/a/i/z5.java new file mode 100644 index 0000000000..5cfcd9d2a6 --- /dev/null +++ b/app/src/main/java/b/a/i/z5.java @@ -0,0 +1,46 @@ +package b.a.i; + +import android.view.View; +import android.widget.RelativeLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.discord.R; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: WidgetUserProfileAdapterItemFriendMutualServerBinding */ +public final class z5 implements ViewBinding { + @NonNull + public final RelativeLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f237b; + @NonNull + public final TextView c; + + public z5(@NonNull RelativeLayout relativeLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView) { + this.a = relativeLayout; + this.f237b = simpleDraweeView; + this.c = textView; + } + + @NonNull + public static z5 a(@NonNull View view) { + int i = R.id.user_profile_adapter_item_friend_mutual_image; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(R.id.user_profile_adapter_item_friend_mutual_image); + if (simpleDraweeView != null) { + i = R.id.user_profile_adapter_item_friend_mutual_text; + TextView textView = (TextView) view.findViewById(R.id.user_profile_adapter_item_friend_mutual_text); + if (textView != null) { + return new z5((RelativeLayout) view, simpleDraweeView, textView); + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/j/a.java b/app/src/main/java/b/a/j/a.java new file mode 100644 index 0000000000..745afa3290 --- /dev/null +++ b/app/src/main/java/b/a/j/a.java @@ -0,0 +1,92 @@ +package b.a.j; + +import android.view.View; +import android.view.ViewGroup; +import android.view.ViewTreeObserver; +import androidx.annotation.MainThread; +import com.discord.floating_view_manager.FloatingViewGravity; +import com.discord.utilities.logging.Logger; +import d0.z.d.m; +import java.lang.ref.WeakReference; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import kotlin.NoWhenBranchMatchedException; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: FloatingViewManager.kt */ +public final class a { + public Function1 a; + + /* renamed from: b reason: collision with root package name */ + public final Map f238b = new LinkedHashMap(); + public final Logger c; + + /* compiled from: FloatingViewManager.kt */ + /* renamed from: b.a.j.a$a reason: collision with other inner class name */ + public static final class C0025a { + public final View a; + + /* renamed from: b reason: collision with root package name */ + public final ViewGroup f239b; + public final ViewTreeObserver.OnPreDrawListener c; + + public C0025a(View view, ViewGroup viewGroup, ViewTreeObserver.OnPreDrawListener onPreDrawListener) { + m.checkNotNullParameter(view, "floatingView"); + m.checkNotNullParameter(viewGroup, "ancestorViewGroup"); + m.checkNotNullParameter(onPreDrawListener, "ancestorPreDrawListener"); + this.a = view; + this.f239b = viewGroup; + this.c = onPreDrawListener; + } + } + + /* compiled from: FloatingViewManager.kt */ + public static final class b { + public static WeakReference a; + } + + public a(Logger logger) { + m.checkNotNullParameter(logger, "logger"); + this.c = logger; + } + + public static final void a(a aVar, View view, View view2, FloatingViewGravity floatingViewGravity, int i, int i2) { + int i3; + Objects.requireNonNull(aVar); + int[] iArr = new int[2]; + view2.getLocationInWindow(iArr); + int i4 = iArr[0]; + int i5 = iArr[1]; + int width = (((view2.getWidth() / 2) + i4) - (view.getWidth() / 2)) + i; + int ordinal = floatingViewGravity.ordinal(); + if (ordinal == 0) { + i3 = i5 - view.getHeight(); + } else if (ordinal == 1) { + i3 = ((view2.getHeight() / 2) + i5) - (view.getHeight() / 2); + } else if (ordinal == 2) { + i3 = view2.getHeight() + i5; + } else { + throw new NoWhenBranchMatchedException(); + } + view.setX((float) width); + view.setY((float) (i3 + i2)); + } + + @MainThread + public final void b(int i) { + C0025a aVar = this.f238b.get(Integer.valueOf(i)); + if (aVar != null) { + ViewGroup viewGroup = aVar.f239b; + View view = aVar.a; + ViewTreeObserver.OnPreDrawListener onPreDrawListener = aVar.c; + this.f238b.remove(Integer.valueOf(i)); + viewGroup.getViewTreeObserver().removeOnPreDrawListener(onPreDrawListener); + viewGroup.removeView(view); + Function1 function1 = this.a; + if (function1 != null) { + function1.invoke(Integer.valueOf(i)); + } + } + } +} diff --git a/app/src/main/java/b/a/j/b.java b/app/src/main/java/b/a/j/b.java new file mode 100644 index 0000000000..1008d35deb --- /dev/null +++ b/app/src/main/java/b/a/j/b.java @@ -0,0 +1,55 @@ +package b.a.j; + +import android.view.View; +import androidx.core.view.ViewCompat; +import com.discord.floating_view_manager.FloatingViewGravity; +import d0.z.d.m; +/* compiled from: View.kt */ +public final class b implements View.OnLayoutChangeListener { + public final /* synthetic */ a j; + public final /* synthetic */ View k; + public final /* synthetic */ View l; + public final /* synthetic */ FloatingViewGravity m; + public final /* synthetic */ int n; + public final /* synthetic */ int o; + + /* compiled from: View.kt */ + public static final class a implements View.OnLayoutChangeListener { + public final /* synthetic */ b j; + + public a(b bVar) { + this.j = bVar; + } + + @Override // android.view.View.OnLayoutChangeListener + public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) { + m.checkNotNullParameter(view, "view"); + view.removeOnLayoutChangeListener(this); + b bVar = this.j; + a.a(bVar.j, bVar.l, bVar.k, bVar.m, bVar.n, bVar.o); + this.j.l.setVisibility(0); + } + } + + public b(a aVar, View view, View view2, FloatingViewGravity floatingViewGravity, int i, int i2) { + this.j = aVar; + this.k = view; + this.l = view2; + this.m = floatingViewGravity; + this.n = i; + this.o = i2; + } + + @Override // android.view.View.OnLayoutChangeListener + public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) { + m.checkNotNullParameter(view, "view"); + view.removeOnLayoutChangeListener(this); + View view2 = this.k; + if (!ViewCompat.isLaidOut(view2) || view2.isLayoutRequested()) { + view2.addOnLayoutChangeListener(new a(this)); + return; + } + a.a(this.j, this.l, this.k, this.m, this.n, this.o); + this.l.setVisibility(0); + } +} diff --git a/app/src/main/java/b/a/j/c.java b/app/src/main/java/b/a/j/c.java new file mode 100644 index 0000000000..29d71b40ad --- /dev/null +++ b/app/src/main/java/b/a/j/c.java @@ -0,0 +1,31 @@ +package b.a.j; + +import android.view.View; +import com.discord.floating_view_manager.FloatingViewGravity; +import d0.z.d.m; +/* compiled from: View.kt */ +public final class c implements View.OnLayoutChangeListener { + public final /* synthetic */ a j; + public final /* synthetic */ View k; + public final /* synthetic */ View l; + public final /* synthetic */ FloatingViewGravity m; + public final /* synthetic */ int n; + public final /* synthetic */ int o; + + public c(a aVar, View view, View view2, FloatingViewGravity floatingViewGravity, int i, int i2) { + this.j = aVar; + this.k = view; + this.l = view2; + this.m = floatingViewGravity; + this.n = i; + this.o = i2; + } + + @Override // android.view.View.OnLayoutChangeListener + public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) { + m.checkNotNullParameter(view, "view"); + view.removeOnLayoutChangeListener(this); + a.a(this.j, this.l, this.k, this.m, this.n, this.o); + this.l.setVisibility(0); + } +} diff --git a/app/src/main/java/b/a/j/d.java b/app/src/main/java/b/a/j/d.java new file mode 100644 index 0000000000..854de3cfae --- /dev/null +++ b/app/src/main/java/b/a/j/d.java @@ -0,0 +1,21 @@ +package b.a.j; + +import android.view.View; +import kotlin.Unit; +import rx.functions.Action1; +/* compiled from: FloatingViewManager.kt */ +public final class d implements Action1 { + public final /* synthetic */ a j; + public final /* synthetic */ View k; + + public d(a aVar, View view) { + this.j = aVar; + this.k = view; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Unit unit) { + this.j.b(this.k.getId()); + } +} diff --git a/app/src/main/java/b/a/j/e.java b/app/src/main/java/b/a/j/e.java new file mode 100644 index 0000000000..c70f4ce69b --- /dev/null +++ b/app/src/main/java/b/a/j/e.java @@ -0,0 +1,18 @@ +package b.a.j; + +import com.discord.utilities.logging.Logger; +import rx.functions.Action1; +/* compiled from: FloatingViewManager.kt */ +public final class e implements Action1 { + public final /* synthetic */ a j; + + public e(a aVar) { + this.j = aVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + Logger.e$default(this.j.c, "error while subscribing to componentPausedObservable for hiding floating view", th, null, 4, null); + } +} diff --git a/app/src/main/java/b/a/j/f.java b/app/src/main/java/b/a/j/f.java new file mode 100644 index 0000000000..9f567a69c4 --- /dev/null +++ b/app/src/main/java/b/a/j/f.java @@ -0,0 +1,29 @@ +package b.a.j; + +import android.view.View; +import android.view.ViewTreeObserver; +import com.discord.floating_view_manager.FloatingViewGravity; +/* compiled from: FloatingViewManager.kt */ +public final class f implements ViewTreeObserver.OnPreDrawListener { + public final /* synthetic */ a j; + public final /* synthetic */ View k; + public final /* synthetic */ View l; + public final /* synthetic */ FloatingViewGravity m; + public final /* synthetic */ int n; + public final /* synthetic */ int o; + + public f(a aVar, View view, View view2, FloatingViewGravity floatingViewGravity, int i, int i2) { + this.j = aVar; + this.k = view; + this.l = view2; + this.m = floatingViewGravity; + this.n = i; + this.o = i2; + } + + @Override // android.view.ViewTreeObserver.OnPreDrawListener + public final boolean onPreDraw() { + a.a(this.j, this.k, this.l, this.m, this.n, this.o); + return true; + } +} diff --git a/app/src/main/java/b/a/k/a.java b/app/src/main/java/b/a/k/a.java new file mode 100644 index 0000000000..93e83b988c --- /dev/null +++ b/app/src/main/java/b/a/k/a.java @@ -0,0 +1,53 @@ +package b.a.k; + +import android.view.View; +import androidx.core.view.ViewCompat; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function2; +/* compiled from: Format.kt */ +public final class a { + public static b.a.k.g.b a; + + /* renamed from: b reason: collision with root package name */ + public static Function0 f240b = C0026a.j; + public static Function2 c = b.j; + public static final a d = null; + + /* compiled from: Format.kt */ + /* renamed from: b.a.k.a$a reason: collision with other inner class name */ + public static final class C0026a extends o implements Function0 { + public static final C0026a j = new C0026a(); + + public C0026a() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public /* bridge */ /* synthetic */ Integer mo1invoke() { + return Integer.valueOf((int) ViewCompat.MEASURED_STATE_MASK); + } + } + + /* compiled from: Format.kt */ + public static final class b extends o implements Function2 { + public static final b j = new b(); + + public b() { + super(2); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public Unit invoke(String str, View view) { + m.checkNotNullParameter(str, ""); + m.checkNotNullParameter(view, ""); + return Unit.a; + } + } +} diff --git a/app/src/main/java/b/a/k/b.java b/app/src/main/java/b/a/k/b.java new file mode 100644 index 0000000000..2cde4e364a --- /dev/null +++ b/app/src/main/java/b/a/k/b.java @@ -0,0 +1,319 @@ +package b.a.k; + +import android.content.Context; +import android.content.res.Resources; +import android.text.SpannableStringBuilder; +import android.text.method.LinkMovementMethod; +import android.text.method.MovementMethod; +import android.view.View; +import android.widget.TextView; +import androidx.annotation.StringRes; +import androidx.fragment.app.Fragment; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.parser.Parser; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Arrays; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import kotlin.text.MatchResult; +import kotlin.text.Regex; +/* compiled from: FormatUtils.kt */ +public final class b { + public static final Regex a = new Regex("\\{(\\S+?)\\}"); + + /* compiled from: FormatUtils.kt */ + public static final class a extends o implements Function1 { + public static final a j = new a(); + + public a() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(RenderContext renderContext) { + m.checkNotNullParameter(renderContext, "$receiver"); + return Unit.a; + } + } + + /* compiled from: FormatUtils.kt */ + /* renamed from: b.a.k.b$b reason: collision with other inner class name */ + public static final class C0027b extends o implements Function1 { + public static final C0027b j = new C0027b(); + + public C0027b() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(RenderContext renderContext) { + m.checkNotNullParameter(renderContext, "$receiver"); + return Unit.a; + } + } + + /* compiled from: FormatUtils.kt */ + public static final class c extends o implements Function1 { + public static final c j = new c(); + + public c() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(RenderContext renderContext) { + m.checkNotNullParameter(renderContext, "$receiver"); + return Unit.a; + } + } + + /* compiled from: FormatUtils.kt */ + public static final class d extends o implements Function1 { + public static final d j = new d(); + + public d() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(RenderContext renderContext) { + m.checkNotNullParameter(renderContext, "$receiver"); + return Unit.a; + } + } + + /* compiled from: FormatUtils.kt */ + public static final class e extends o implements Function1 { + public static final e j = new e(); + + public e() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(RenderContext renderContext) { + m.checkNotNullParameter(renderContext, "$receiver"); + return Unit.a; + } + } + + /* compiled from: FormatUtils.kt */ + public static final class f extends o implements Function1 { + public final /* synthetic */ Map $namedArgs; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(Map map) { + super(1); + this.$namedArgs = map; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public CharSequence invoke(MatchResult matchResult) { + MatchResult matchResult2 = matchResult; + m.checkNotNullParameter(matchResult2, "matchResult"); + String str = (String) this.$namedArgs.get(matchResult2.getGroupValues().get(1)); + return str != null ? str : matchResult2.getValue(); + } + } + + /* compiled from: FormatUtils.kt */ + public static final class g extends o implements Function1 { + public static final g j = new g(); + + public g() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(RenderContext renderContext) { + m.checkNotNullParameter(renderContext, "$receiver"); + return Unit.a; + } + } + + /* compiled from: FormatUtils.kt */ + public static final class h extends o implements Function1 { + public static final h j = new h(); + + public h() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(RenderContext renderContext) { + m.checkNotNullParameter(renderContext, "$receiver"); + return Unit.a; + } + } + + public static final void a(TextView textView, CharSequence charSequence) { + m.checkNotNullParameter(textView, "$this$bindText"); + textView.setText(charSequence); + int i = 0; + if (!(!(charSequence == null || charSequence.length() == 0))) { + i = 8; + } + textView.setVisibility(i); + } + + public static final CharSequence b(Context context, @StringRes int i, Object[] objArr, Function1 function1) { + m.checkNotNullParameter(context, "$this$i18nFormat"); + m.checkNotNullParameter(objArr, "formatArgs"); + m.checkNotNullParameter(function1, "initializer"); + Resources resources = context.getResources(); + m.checkNotNullExpressionValue(resources, "resources"); + return c(resources, i, Arrays.copyOf(objArr, objArr.length), function1); + } + + public static final CharSequence c(Resources resources, @StringRes int i, Object[] objArr, Function1 function1) { + m.checkNotNullParameter(resources, "$this$i18nFormat"); + m.checkNotNullParameter(objArr, "formatArgs"); + m.checkNotNullParameter(function1, "initializer"); + String string = resources.getString(i); + m.checkNotNullExpressionValue(string, "getString(stringResId)"); + return g(string, Arrays.copyOf(objArr, objArr.length), function1); + } + + public static final CharSequence d(View view, @StringRes int i, Object[] objArr, Function1 function1) { + m.checkNotNullParameter(view, "$this$i18nFormat"); + m.checkNotNullParameter(objArr, "formatArgs"); + m.checkNotNullParameter(function1, "initializer"); + Context context = view.getContext(); + m.checkNotNullExpressionValue(context, "context"); + return b(context, i, Arrays.copyOf(objArr, objArr.length), function1); + } + + public static final CharSequence e(Fragment fragment, @StringRes int i, Object[] objArr, Function1 function1) { + m.checkNotNullParameter(fragment, "$this$i18nFormat"); + m.checkNotNullParameter(objArr, "formatArgs"); + m.checkNotNullParameter(function1, "initializer"); + Context requireContext = fragment.requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + return b(requireContext, i, Arrays.copyOf(objArr, objArr.length), function1); + } + + public static final CharSequence f(CharSequence charSequence, Object[] objArr, RenderContext renderContext) { + m.checkNotNullParameter(charSequence, "$this$i18nFormat"); + m.checkNotNullParameter(objArr, "formatArgs"); + m.checkNotNullParameter(renderContext, "renderContext"); + Map map = renderContext.a; + List list = renderContext.c; + boolean z2 = true; + if (!map.isEmpty()) { + charSequence = a.replace(charSequence, new f(map)); + } else { + if (list != null && !list.isEmpty()) { + z2 = false; + } + if (!z2) { + String replace = a.replace(charSequence, "%s"); + Object[] copyOf = Arrays.copyOf(objArr, objArr.length); + charSequence = b.d.b.a.a.M(copyOf, copyOf.length, replace, "java.lang.String.format(this, *args)"); + } + } + a aVar = a.d; + b.a.k.g.b bVar = a.a; + if (bVar == null) { + m.throwUninitializedPropertyAccessException("formattingParserProvider"); + } + b.a.k.g.a a2 = bVar.a(); + if (renderContext.f) { + String obj = charSequence.toString(); + Locale locale = Locale.ROOT; + m.checkNotNullExpressionValue(locale, "Locale.ROOT"); + Objects.requireNonNull(obj, "null cannot be cast to non-null type java.lang.String"); + charSequence = obj.toUpperCase(locale); + m.checkNotNullExpressionValue(charSequence, "(this as java.lang.String).toUpperCase(locale)"); + } + Objects.requireNonNull(a2); + m.checkNotNullParameter(charSequence, "input"); + m.checkNotNullParameter(renderContext, "renderContext"); + List parse$default = Parser.parse$default(a2, charSequence, new b.a.k.g.c(false, 0, 3), null, 4, null); + SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(); + b.a.t.b.b.h.a(spannableStringBuilder, parse$default, renderContext); + return spannableStringBuilder; + } + + public static final CharSequence g(CharSequence charSequence, Object[] objArr, Function1 function1) { + m.checkNotNullParameter(charSequence, "$this$i18nFormat"); + m.checkNotNullParameter(objArr, "formatArgs"); + m.checkNotNullParameter(function1, "initializer"); + return f(charSequence, objArr, b.c.a.a0.d.P1(function1, Arrays.copyOf(objArr, objArr.length))); + } + + public static /* synthetic */ CharSequence h(Context context, int i, Object[] objArr, Function1 function1, int i2) { + return b(context, i, objArr, (i2 & 4) != 0 ? C0027b.j : null); + } + + public static /* synthetic */ CharSequence i(Resources resources, int i, Object[] objArr, Function1 function1, int i2) { + return c(resources, i, objArr, (i2 & 4) != 0 ? d.j : null); + } + + public static /* synthetic */ CharSequence j(View view, int i, Object[] objArr, Function1 function1, int i2) { + return d(view, i, objArr, (i2 & 4) != 0 ? c.j : null); + } + + public static /* synthetic */ CharSequence k(Fragment fragment, int i, Object[] objArr, Function1 function1, int i2) { + return e(fragment, i, objArr, (i2 & 4) != 0 ? a.j : null); + } + + public static /* synthetic */ CharSequence l(CharSequence charSequence, Object[] objArr, Function1 function1, int i) { + return g(charSequence, objArr, (i & 2) != 0 ? e.j : null); + } + + public static final void m(TextView textView, @StringRes int i, Object[] objArr, Function1 function1) { + m.checkNotNullParameter(textView, "$this$i18nSetText"); + m.checkNotNullParameter(objArr, "formatArgs"); + m.checkNotNullParameter(function1, "initializer"); + RenderContext P1 = b.c.a.a0.d.P1(function1, Arrays.copyOf(objArr, objArr.length)); + textView.setMovementMethod(P1.g ? LinkMovementMethod.getInstance() : null); + String string = textView.getContext().getString(i); + m.checkNotNullExpressionValue(string, "context.getString(stringResId)"); + textView.setText(f(string, objArr, P1)); + } + + public static /* synthetic */ void n(TextView textView, int i, Object[] objArr, Function1 function1, int i2) { + m(textView, i, objArr, (i2 & 4) != 0 ? g.j : null); + } + + public static void o(TextView textView, CharSequence charSequence, Object[] objArr, Function1 function1, int i) { + int i2 = i & 4; + MovementMethod movementMethod = null; + h hVar = i2 != 0 ? h.j : null; + m.checkNotNullParameter(textView, "$this$i18nSetText"); + m.checkNotNullParameter(objArr, "formatArgs"); + m.checkNotNullParameter(hVar, "initializer"); + if (charSequence == null) { + textView.setText((CharSequence) null); + textView.setMovementMethod(null); + return; + } + RenderContext P1 = b.c.a.a0.d.P1(hVar, Arrays.copyOf(objArr, objArr.length)); + if (P1.g) { + movementMethod = LinkMovementMethod.getInstance(); + } + textView.setMovementMethod(movementMethod); + textView.setText(f(charSequence, objArr, P1)); + } +} diff --git a/app/src/main/java/b/a/k/c.java b/app/src/main/java/b/a/k/c.java new file mode 100644 index 0000000000..a6ffbbef45 --- /dev/null +++ b/app/src/main/java/b/a/k/c.java @@ -0,0 +1,24 @@ +package b.a.k; + +import android.view.View; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: Hook.kt */ +public final class c extends o implements Function2 { + public static final c j = new c(); + + public c() { + super(2); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public Unit invoke(String str, View view) { + m.checkNotNullParameter(str, ""); + m.checkNotNullParameter(view, ""); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/k/d.java b/app/src/main/java/b/a/k/d.java new file mode 100644 index 0000000000..3678d6a873 --- /dev/null +++ b/app/src/main/java/b/a/k/d.java @@ -0,0 +1,29 @@ +package b.a.k; + +import android.view.View; +import com.discord.i18n.RenderContext; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: RenderContext.kt */ +public final class d extends o implements Function2 { + public final /* synthetic */ RenderContext.a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(RenderContext.a aVar) { + super(2); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public Unit invoke(String str, View view) { + View view2 = view; + m.checkNotNullParameter(str, ""); + m.checkNotNullParameter(view2, "view"); + this.this$0.$onClick.invoke(view2); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/k/e/a.java b/app/src/main/java/b/a/k/e/a.java new file mode 100644 index 0000000000..94d27043a9 --- /dev/null +++ b/app/src/main/java/b/a/k/e/a.java @@ -0,0 +1,39 @@ +package b.a.k.e; + +import android.text.TextPaint; +import android.text.style.ClickableSpan; +import android.view.View; +import androidx.annotation.ColorInt; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: ClickableSpan.kt */ +public final class a extends ClickableSpan { + public final Function1 j; + public final Integer k; + + /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: kotlin.jvm.functions.Function1 */ + /* JADX WARN: Multi-variable type inference failed */ + public a(Function1 function1, @ColorInt Integer num) { + m.checkNotNullParameter(function1, "clickHandler"); + this.j = function1; + this.k = num; + } + + @Override // android.text.style.ClickableSpan + public void onClick(View view) { + m.checkNotNullParameter(view, "widget"); + this.j.invoke(view); + } + + @Override // android.text.style.ClickableSpan, android.text.style.CharacterStyle + public void updateDrawState(TextPaint textPaint) { + m.checkNotNullParameter(textPaint, "ds"); + super.updateDrawState(textPaint); + Integer num = this.k; + if (num != null) { + textPaint.setColor(num.intValue()); + } + textPaint.setUnderlineText(false); + } +} diff --git a/app/src/main/java/b/a/k/f/a.java b/app/src/main/java/b/a/k/f/a.java new file mode 100644 index 0000000000..63fd8576c7 --- /dev/null +++ b/app/src/main/java/b/a/k/f/a.java @@ -0,0 +1,28 @@ +package b.a.k.f; + +import android.text.SpannableStringBuilder; +import android.text.style.ForegroundColorSpan; +import android.text.style.StyleSpan; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.node.Node; +import d0.z.d.m; +/* compiled from: BoldNode.kt */ +public final class a extends Node.a { + public a() { + super(new Node[0]); + } + + @Override // com.discord.simpleast.core.node.Node.a, com.discord.simpleast.core.node.Node + public void render(SpannableStringBuilder spannableStringBuilder, Object obj) { + RenderContext renderContext = (RenderContext) obj; + m.checkNotNullParameter(spannableStringBuilder, "builder"); + m.checkNotNullParameter(renderContext, "renderContext"); + int length = spannableStringBuilder.length(); + super.render(spannableStringBuilder, renderContext); + spannableStringBuilder.setSpan(new StyleSpan(1), length, spannableStringBuilder.length(), 33); + Integer num = renderContext.d; + if (num != null) { + spannableStringBuilder.setSpan(new ForegroundColorSpan(num.intValue()), length, spannableStringBuilder.length(), 33); + } + } +} diff --git a/app/src/main/java/b/a/k/f/b.java b/app/src/main/java/b/a/k/f/b.java new file mode 100644 index 0000000000..da4d606d8d --- /dev/null +++ b/app/src/main/java/b/a/k/f/b.java @@ -0,0 +1,30 @@ +package b.a.k.f; + +import android.view.View; +import com.discord.i18n.Hook; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: HookNode.kt */ +public final class b extends o implements Function1 { + public final /* synthetic */ Hook.a $clickHandler; + public final /* synthetic */ c this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(c cVar, Hook.a aVar) { + super(1); + this.this$0 = cVar; + this.$clickHandler = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "view"); + this.$clickHandler.f2667b.invoke(this.this$0.a, view2); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/k/f/c.java b/app/src/main/java/b/a/k/f/c.java new file mode 100644 index 0000000000..648c837bc3 --- /dev/null +++ b/app/src/main/java/b/a/k/f/c.java @@ -0,0 +1,58 @@ +package b.a.k.f; + +import android.text.SpannableStringBuilder; +import android.webkit.URLUtil; +import b.a.k.a; +import com.discord.i18n.Hook; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.node.Node; +import d0.z.d.m; +import java.util.List; +/* compiled from: HookNode.kt */ +public final class c extends Node.a { + public final String a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(String str) { + super(new Node[0]); + m.checkNotNullParameter(str, "key"); + this.a = str; + } + + @Override // com.discord.simpleast.core.node.Node.a, com.discord.simpleast.core.node.Node + public void render(SpannableStringBuilder spannableStringBuilder, Object obj) { + List list; + RenderContext renderContext = (RenderContext) obj; + m.checkNotNullParameter(spannableStringBuilder, "builder"); + m.checkNotNullParameter(renderContext, "renderContext"); + Hook hook = renderContext.f2668b.get(this.a); + int length = spannableStringBuilder.length(); + super.render(spannableStringBuilder, renderContext); + Hook.a aVar = null; + CharSequence charSequence = hook != null ? hook.f2666b : null; + if (charSequence != null) { + spannableStringBuilder.replace(length, spannableStringBuilder.length(), charSequence); + } + if (!(hook == null || (list = hook.a) == null)) { + for (Object obj2 : list) { + spannableStringBuilder.setSpan(obj2, length, spannableStringBuilder.length(), 33); + } + } + Hook.a aVar2 = hook != null ? hook.c : null; + if (aVar2 != null) { + aVar = aVar2; + } else if (URLUtil.isValidUrl(this.a)) { + a aVar3 = a.d; + aVar = new Hook.a(a.f240b.mo1invoke(), a.c); + } + if (aVar != null) { + Integer num = aVar.a; + if (num == null) { + a aVar4 = a.d; + num = a.f240b.mo1invoke(); + } + spannableStringBuilder.setSpan(new b.a.k.e.a(new b(this, aVar), num), length, spannableStringBuilder.length(), 33); + renderContext.g = true; + } + } +} diff --git a/app/src/main/java/b/a/k/f/d.java b/app/src/main/java/b/a/k/f/d.java new file mode 100644 index 0000000000..3aff8b4685 --- /dev/null +++ b/app/src/main/java/b/a/k/f/d.java @@ -0,0 +1,28 @@ +package b.a.k.f; + +import android.text.SpannableStringBuilder; +import android.text.style.ForegroundColorSpan; +import android.text.style.StrikethroughSpan; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.node.Node; +import d0.z.d.m; +/* compiled from: StrikethroughNode.kt */ +public final class d extends Node.a { + public d() { + super(new Node[0]); + } + + @Override // com.discord.simpleast.core.node.Node.a, com.discord.simpleast.core.node.Node + public void render(SpannableStringBuilder spannableStringBuilder, Object obj) { + RenderContext renderContext = (RenderContext) obj; + m.checkNotNullParameter(spannableStringBuilder, "builder"); + m.checkNotNullParameter(renderContext, "renderContext"); + int length = spannableStringBuilder.length(); + super.render(spannableStringBuilder, renderContext); + spannableStringBuilder.setSpan(new StrikethroughSpan(), length, spannableStringBuilder.length(), 33); + Integer num = renderContext.e; + if (num != null) { + spannableStringBuilder.setSpan(new ForegroundColorSpan(num.intValue()), length, spannableStringBuilder.length(), 33); + } + } +} diff --git a/app/src/main/java/b/a/k/g/a.java b/app/src/main/java/b/a/k/g/a.java new file mode 100644 index 0000000000..624c9efbf2 --- /dev/null +++ b/app/src/main/java/b/a/k/g/a.java @@ -0,0 +1,41 @@ +package b.a.k.g; + +import b.a.k.h.b; +import b.a.k.h.c; +import b.a.k.h.d; +import b.a.k.h.e; +import b.a.k.h.f; +import b.a.k.h.g; +import b.a.k.h.h; +import b.a.k.h.i; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.Parser; +import d0.z.d.m; +import java.util.regex.Pattern; +/* compiled from: FormattingParser.kt */ +public final class a extends Parser, c> { + public a() { + super(false, 1, null); + Pattern pattern = b.a; + m.checkNotNullExpressionValue(pattern, "PATTERN_BANG_ESCAPE"); + addRule(new b.a.k.h.a(pattern)); + Pattern pattern2 = g.a; + m.checkNotNullExpressionValue(pattern2, "PATTERN_HOOK"); + addRule(new f(pattern2)); + Pattern pattern3 = e.a; + m.checkNotNullExpressionValue(pattern3, "PATTERN_CLICK_LISTENER"); + addRule(new d(pattern3)); + b.a.t.b.b.e eVar = b.a.t.b.b.e.h; + Pattern pattern4 = b.a.t.b.b.e.a; + m.checkNotNullExpressionValue(pattern4, "SimpleMarkdownRules.PATTERN_BOLD"); + addRule(new c(pattern4)); + Pattern pattern5 = b.a.t.b.b.e.g; + m.checkNotNullExpressionValue(pattern5, "SimpleMarkdownRules.PATTERN_ITALICS"); + addRule(new h(pattern5)); + Pattern pattern6 = b.a.t.b.b.e.c; + m.checkNotNullExpressionValue(pattern6, "SimpleMarkdownRules.PATTERN_STRIKETHRU"); + addRule(new i(pattern6)); + addRule(eVar.d()); + } +} diff --git a/app/src/main/java/b/a/k/g/b.java b/app/src/main/java/b/a/k/g/b.java new file mode 100644 index 0000000000..3cb82198fa --- /dev/null +++ b/app/src/main/java/b/a/k/g/b.java @@ -0,0 +1,5 @@ +package b.a.k.g; +/* compiled from: FormattingParserProvider.kt */ +public abstract class b { + public abstract a a(); +} diff --git a/app/src/main/java/b/a/k/g/c.java b/app/src/main/java/b/a/k/g/c.java new file mode 100644 index 0000000000..06d628c056 --- /dev/null +++ b/app/src/main/java/b/a/k/g/c.java @@ -0,0 +1,55 @@ +package b.a.k.g; + +import b.d.b.a.a; +/* compiled from: ParseState.kt */ +public final class c { + public final boolean a; + + /* renamed from: b reason: collision with root package name */ + public int f241b; + + public c() { + this(false, 0, 3); + } + + public c(boolean z2, int i) { + this.a = z2; + this.f241b = i; + } + + public c(boolean z2, int i, int i2) { + z2 = (i2 & 1) != 0 ? false : z2; + i = (i2 & 2) != 0 ? 0 : i; + this.a = z2; + this.f241b = i; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof c)) { + return false; + } + c cVar = (c) obj; + return this.a == cVar.a && this.f241b == cVar.f241b; + } + + public int hashCode() { + boolean z2 = this.a; + if (z2) { + z2 = true; + } + int i = z2 ? 1 : 0; + int i2 = z2 ? 1 : 0; + int i3 = z2 ? 1 : 0; + return (i * 31) + this.f241b; + } + + public String toString() { + StringBuilder R = a.R("ParseState(isEscaped="); + R.append(this.a); + R.append(", argumentIndex="); + return a.A(R, this.f241b, ")"); + } +} diff --git a/app/src/main/java/b/a/k/g/d.java b/app/src/main/java/b/a/k/g/d.java new file mode 100644 index 0000000000..198717f187 --- /dev/null +++ b/app/src/main/java/b/a/k/g/d.java @@ -0,0 +1,47 @@ +package b.a.k.g; + +import d0.g; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Lazy; +import kotlin.jvm.functions.Function0; +/* compiled from: FormattingParserProvider.kt */ +public final class d extends b { + public static final Lazy a = g.lazy(a.j); + + /* renamed from: b reason: collision with root package name */ + public static final d f242b = null; + public final ThreadLocal c = new b(); + + /* compiled from: FormattingParserProvider.kt */ + public static final class a extends o implements Function0 { + public static final a j = new a(); + + public a() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public d mo1invoke() { + return new d(); + } + } + + /* compiled from: FormattingParserProvider.kt */ + public static final class b extends ThreadLocal { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.lang.ThreadLocal + public a initialValue() { + return new a(); + } + } + + @Override // b.a.k.g.b + public a a() { + a aVar = this.c.get(); + m.checkNotNull(aVar); + return aVar; + } +} diff --git a/app/src/main/java/b/a/k/h/a.java b/app/src/main/java/b/a/k/h/a.java new file mode 100644 index 0000000000..446a5adafa --- /dev/null +++ b/app/src/main/java/b/a/k/h/a.java @@ -0,0 +1,31 @@ +package b.a.k.h; + +import b.a.k.g.c; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: BangEscapeRule.kt */ +public final class a extends Rule, c> { + public a(Pattern pattern) { + super(pattern); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.util.regex.Matcher, com.discord.simpleast.core.parser.Parser, java.lang.Object] */ + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser parser, c cVar) { + c cVar2 = cVar; + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + m.checkNotNullParameter(cVar2, "state"); + c cVar3 = new c(true, cVar2.f241b); + Node.a aVar = new Node.a(new Node[0]); + int start = matcher.start(1); + int end = matcher.end(1); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec(aVar, cVar3, start, end); + } +} diff --git a/app/src/main/java/b/a/k/h/b.java b/app/src/main/java/b/a/k/h/b.java new file mode 100644 index 0000000000..9fa5b5ae3c --- /dev/null +++ b/app/src/main/java/b/a/k/h/b.java @@ -0,0 +1,7 @@ +package b.a.k.h; + +import java.util.regex.Pattern; +/* compiled from: BangEscapeRule.kt */ +public final class b { + public static final Pattern a = Pattern.compile("^!!(?=\\S)([\\s\\S]*?\\S)!!"); +} diff --git a/app/src/main/java/b/a/k/h/c.java b/app/src/main/java/b/a/k/h/c.java new file mode 100644 index 0000000000..581d350e5f --- /dev/null +++ b/app/src/main/java/b/a/k/h/c.java @@ -0,0 +1,32 @@ +package b.a.k.h; + +import b.a.k.f.a; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: BoldRule.kt */ +public final class c extends Rule, b.a.k.g.c> { + public c(Pattern pattern) { + super(pattern); + } + + /* Return type fixed from 'com.discord.simpleast.core.parser.ParseSpec' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.util.regex.Matcher, com.discord.simpleast.core.parser.Parser, java.lang.Object] */ + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, b.a.k.g.c> parser, b.a.k.g.c cVar) { + b.a.k.g.c cVar2 = cVar; + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + m.checkNotNullParameter(cVar2, "state"); + Node aVar = cVar2.a ? new Node.a(new Node[0]) : new a(); + int start = matcher.start(1); + int end = matcher.end(1); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, cVar2, start, end); + } +} diff --git a/app/src/main/java/b/a/k/h/d.java b/app/src/main/java/b/a/k/h/d.java new file mode 100644 index 0000000000..4284501a41 --- /dev/null +++ b/app/src/main/java/b/a/k/h/d.java @@ -0,0 +1,29 @@ +package b.a.k.h; + +import b.a.k.f.c; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: ClickListenerRule.kt */ +public final class d extends Rule { + public d(Pattern pattern) { + super(pattern); + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(2); + m.checkNotNull(group); + c cVar = new c(group); + int start = matcher.start(1); + int end = matcher.end(1); + m.checkNotNullParameter(cVar, "node"); + return new ParseSpec<>(cVar, s2, start, end); + } +} diff --git a/app/src/main/java/b/a/k/h/e.java b/app/src/main/java/b/a/k/h/e.java new file mode 100644 index 0000000000..c7a3dec46b --- /dev/null +++ b/app/src/main/java/b/a/k/h/e.java @@ -0,0 +1,7 @@ +package b.a.k.h; + +import java.util.regex.Pattern; +/* compiled from: ClickListenerRule.kt */ +public final class e { + public static final Pattern a = Pattern.compile("^\\[((?:\\[[^]]*]|[^]]|](?=[^\\[]*]))*)]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"); +} diff --git a/app/src/main/java/b/a/k/h/f.java b/app/src/main/java/b/a/k/h/f.java new file mode 100644 index 0000000000..90ebdfce8c --- /dev/null +++ b/app/src/main/java/b/a/k/h/f.java @@ -0,0 +1,34 @@ +package b.a.k.h; + +import b.a.k.f.c; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: HookRule.kt */ +public final class f extends Rule { + public f(Pattern pattern) { + super(pattern); + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(2); + m.checkNotNull(group); + if (matcher.start(1) == matcher.end(1)) { + c cVar = new c(group); + m.checkNotNullParameter(cVar, "node"); + return new ParseSpec<>(cVar, s2); + } + c cVar2 = new c(group); + int start = matcher.start(1); + int end = matcher.end(1); + m.checkNotNullParameter(cVar2, "node"); + return new ParseSpec<>(cVar2, s2, start, end); + } +} diff --git a/app/src/main/java/b/a/k/h/g.java b/app/src/main/java/b/a/k/h/g.java new file mode 100644 index 0000000000..2f13aa9d16 --- /dev/null +++ b/app/src/main/java/b/a/k/h/g.java @@ -0,0 +1,7 @@ +package b.a.k.h; + +import java.util.regex.Pattern; +/* compiled from: HookRule.kt */ +public final class g { + public static final Pattern a = Pattern.compile("^\\$\\[([\\s\\S]*?)]\\(([\\s\\S]*?)\\)"); +} diff --git a/app/src/main/java/b/a/k/h/h.java b/app/src/main/java/b/a/k/h/h.java new file mode 100644 index 0000000000..240e80c4ec --- /dev/null +++ b/app/src/main/java/b/a/k/h/h.java @@ -0,0 +1,47 @@ +package b.a.k.h; + +import android.text.style.StyleSpan; +import b.a.k.g.c; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: ItalicsRule.kt */ +public final class h extends Rule, c> { + public h(Pattern pattern) { + super(pattern); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.util.regex.Matcher, com.discord.simpleast.core.parser.Parser, java.lang.Object] */ + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser parser, c cVar) { + int i; + int i2; + c cVar2 = cVar; + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + m.checkNotNullParameter(cVar2, "state"); + boolean z2 = false; + Node aVar = cVar2.a ? new Node.a(new Node[0]) : new StyleNode(d0.t.m.listOf(new StyleSpan(2))); + String group = matcher.group(2); + if (group != null) { + if (group.length() > 0) { + z2 = true; + } + if (z2) { + i2 = matcher.start(2); + i = matcher.end(2); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec(aVar, cVar2, i2, i); + } + } + i2 = matcher.start(1); + i = matcher.end(1); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec(aVar, cVar2, i2, i); + } +} diff --git a/app/src/main/java/b/a/k/h/i.java b/app/src/main/java/b/a/k/h/i.java new file mode 100644 index 0000000000..d0f7c97efd --- /dev/null +++ b/app/src/main/java/b/a/k/h/i.java @@ -0,0 +1,33 @@ +package b.a.k.h; + +import b.a.k.f.d; +import b.a.k.g.c; +import com.discord.i18n.RenderContext; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: StrikethroughRule.kt */ +public final class i extends Rule, c> { + public i(Pattern pattern) { + super(pattern); + } + + /* Return type fixed from 'com.discord.simpleast.core.parser.ParseSpec' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.util.regex.Matcher, com.discord.simpleast.core.parser.Parser, java.lang.Object] */ + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, c> parser, c cVar) { + c cVar2 = cVar; + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + m.checkNotNullParameter(cVar2, "state"); + Node aVar = cVar2.a ? new Node.a(new Node[0]) : new d(); + int start = matcher.start(1); + int end = matcher.end(1); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, cVar2, start, end); + } +} diff --git a/app/src/main/java/b/a/l/a.java b/app/src/main/java/b/a/l/a.java new file mode 100644 index 0000000000..09fab0fff1 --- /dev/null +++ b/app/src/main/java/b/a/l/a.java @@ -0,0 +1,28 @@ +package b.a.l; + +import android.content.Intent; +import android.net.Uri; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaPickerChooser.kt */ +public final class a extends o implements Function1 { + public final /* synthetic */ Uri $captureFileURI; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(Uri uri) { + super(1); + this.$captureFileURI = uri; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Intent intent) { + Intent intent2 = intent; + m.checkNotNullParameter(intent2, "intent"); + intent2.putExtra("output", this.$captureFileURI); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/l/b.java b/app/src/main/java/b/a/l/b.java new file mode 100644 index 0000000000..a0b044e82d --- /dev/null +++ b/app/src/main/java/b/a/l/b.java @@ -0,0 +1,73 @@ +package b.a.l; + +import android.content.ComponentName; +import android.content.Intent; +import android.content.pm.ActivityInfo; +import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; +import android.net.Uri; +import android.os.Parcelable; +import d0.z.d.m; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaPickerChooser.kt */ +public final class b { + public static final void a(Map map, PackageManager packageManager, Intent intent, Function1 function1) { + for (ResolveInfo resolveInfo : packageManager.queryIntentActivities(intent, 0)) { + ActivityInfo activityInfo = resolveInfo.activityInfo; + ComponentName componentName = new ComponentName(activityInfo.packageName, activityInfo.name); + Intent intent2 = new Intent(intent); + intent2.setComponent(componentName); + intent2.setPackage(resolveInfo.activityInfo.packageName); + if (function1 != null) { + ((a) function1).invoke(intent2); + } + String str = resolveInfo.activityInfo.packageName; + m.checkNotNullExpressionValue(str, "resolveInfo.activityInfo.packageName"); + map.put(str, intent2); + } + } + + public static final Intent b(PackageManager packageManager, CharSequence charSequence, Uri uri, String str) throws IOException { + m.checkNotNullParameter(packageManager, "packageManager"); + m.checkNotNullParameter(uri, "captureFileURI"); + m.checkNotNullParameter(str, "mimeType"); + Intent addFlags = new Intent("android.media.action.IMAGE_CAPTURE").putExtra("output", uri).addFlags(2).addFlags(1); + m.checkNotNullExpressionValue(addFlags, "Intent(MediaStore.ACTION…RANT_READ_URI_PERMISSION)"); + Intent intent = new Intent("android.intent.action.PICK"); + intent.setType(str); + intent.putExtra("android.intent.extra.MIME_TYPES", str); + Intent intent2 = new Intent("android.intent.action.GET_CONTENT"); + intent2.setType(str); + intent2.putExtra("android.intent.extra.MIME_TYPES", str); + LinkedHashMap linkedHashMap = new LinkedHashMap(); + a(linkedHashMap, packageManager, intent2, null); + a(linkedHashMap, packageManager, intent, null); + a(linkedHashMap, packageManager, addFlags, new a(uri)); + Collection values = linkedHashMap.values(); + if (!values.isEmpty()) { + Iterator it = values.iterator(); + Intent intent3 = (Intent) it.next(); + ArrayList arrayList = new ArrayList(); + while (it.hasNext()) { + arrayList.add(it.next()); + } + Intent createChooser = Intent.createChooser(intent3, charSequence); + if (!arrayList.isEmpty()) { + Object[] array = arrayList.toArray(new Parcelable[0]); + Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array"); + createChooser.putExtra("android.intent.extra.INITIAL_INTENTS", (Parcelable[]) array); + } + m.checkNotNullExpressionValue(createChooser, "chooserIntent"); + return createChooser; + } + throw new IOException("No media applications available on this device."); + } +} diff --git a/app/src/main/java/b/a/m/a/a.java b/app/src/main/java/b/a/m/a/a.java new file mode 100644 index 0000000000..a93f25f4e5 --- /dev/null +++ b/app/src/main/java/b/a/m/a/a.java @@ -0,0 +1,16 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ a(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return this.a.nextLongOrNull(); + } +} diff --git a/app/src/main/java/b/a/m/a/a0.java b/app/src/main/java/b/a/m/a/a0.java new file mode 100644 index 0000000000..e80c1b547c --- /dev/null +++ b/app/src/main/java/b/a/m/a/a0.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.experiments.dto.UserExperimentDto; +/* compiled from: lambda */ +public final /* synthetic */ class a0 implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ a0(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return UserExperimentDto.Parser.parse(this.a); + } +} diff --git a/app/src/main/java/b/a/m/a/b.java b/app/src/main/java/b/a/m/a/b.java new file mode 100644 index 0000000000..013e3d76fd --- /dev/null +++ b/app/src/main/java/b/a/m/a/b.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelAuditLogEntry; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ b(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelAuditLogEntry) this.a.parse(new ModelAuditLogEntry()); + } +} diff --git a/app/src/main/java/b/a/m/a/b0.java b/app/src/main/java/b/a/m/a/b0.java new file mode 100644 index 0000000000..623cb802b4 --- /dev/null +++ b/app/src/main/java/b/a/m/a/b0.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.channel.Channel; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class b0 implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ b0(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (Channel) InboundGatewayGsonParser.fromJson(this.a, Channel.class); + } +} diff --git a/app/src/main/java/b/a/m/a/c.java b/app/src/main/java/b/a/m/a/c.java new file mode 100644 index 0000000000..cd4f48c73e --- /dev/null +++ b/app/src/main/java/b/a/m/a/c.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.guildscheduledevent.GuildScheduledEvent; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ c(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (GuildScheduledEvent) InboundGatewayGsonParser.fromJson(this.a, GuildScheduledEvent.class); + } +} diff --git a/app/src/main/java/b/a/m/a/c0.java b/app/src/main/java/b/a/m/a/c0.java new file mode 100644 index 0000000000..4288880468 --- /dev/null +++ b/app/src/main/java/b/a/m/a/c0.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.activity.Activity; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class c0 implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ c0(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (Activity) InboundGatewayGsonParser.fromJson(this.a, Activity.class); + } +} diff --git a/app/src/main/java/b/a/m/a/d.java b/app/src/main/java/b/a/m/a/d.java new file mode 100644 index 0000000000..494fbe4cc8 --- /dev/null +++ b/app/src/main/java/b/a/m/a/d.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelGuildIntegration; +/* compiled from: lambda */ +public final /* synthetic */ class d implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ d(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelGuildIntegration) this.a.parse(new ModelGuildIntegration()); + } +} diff --git a/app/src/main/java/b/a/m/a/d0.java b/app/src/main/java/b/a/m/a/d0.java new file mode 100644 index 0000000000..22fd71bacf --- /dev/null +++ b/app/src/main/java/b/a/m/a/d0.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelGuildFolder; +/* compiled from: lambda */ +public final /* synthetic */ class d0 implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ d0(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return ModelGuildFolder.Parser.INSTANCE.parse(this.a); + } +} diff --git a/app/src/main/java/b/a/m/a/e.java b/app/src/main/java/b/a/m/a/e.java new file mode 100644 index 0000000000..b4e65ada7d --- /dev/null +++ b/app/src/main/java/b/a/m/a/e.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelWebhook; +/* compiled from: lambda */ +public final /* synthetic */ class e implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ e(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelWebhook) this.a.parse(new ModelWebhook()); + } +} diff --git a/app/src/main/java/b/a/m/a/e0.java b/app/src/main/java/b/a/m/a/e0.java new file mode 100644 index 0000000000..96a095cef0 --- /dev/null +++ b/app/src/main/java/b/a/m/a/e0.java @@ -0,0 +1,13 @@ +package b.a.m.a; + +import java.util.HashMap; +import rx.functions.Func0; +/* compiled from: lambda */ +public final /* synthetic */ class e0 implements Func0 { + public static final /* synthetic */ e0 j = new e0(); + + @Override // rx.functions.Func0, java.util.concurrent.Callable + public final Object call() { + return new HashMap(); + } +} diff --git a/app/src/main/java/b/a/m/a/f.java b/app/src/main/java/b/a/m/a/f.java new file mode 100644 index 0000000000..2f1ea88bbc --- /dev/null +++ b/app/src/main/java/b/a/m/a/f.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.channel.Channel; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class f implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ f(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (Channel) InboundGatewayGsonParser.fromJson(this.a, Channel.class); + } +} diff --git a/app/src/main/java/b/a/m/a/f0.java b/app/src/main/java/b/a/m/a/f0.java new file mode 100644 index 0000000000..6fd373c31f --- /dev/null +++ b/app/src/main/java/b/a/m/a/f0.java @@ -0,0 +1,13 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.experiments.dto.UserExperimentDto; +/* compiled from: lambda */ +public final /* synthetic */ class f0 implements Model.JsonReader.KeySelector { + public static final /* synthetic */ f0 a = new f0(); + + @Override // com.discord.models.domain.Model.JsonReader.KeySelector + public final Object get(Object obj) { + return Long.valueOf(((UserExperimentDto) obj).getNameHash()); + } +} diff --git a/app/src/main/java/b/a/m/a/g.java b/app/src/main/java/b/a/m/a/g.java new file mode 100644 index 0000000000..43e5fd21dc --- /dev/null +++ b/app/src/main/java/b/a/m/a/g.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.user.User; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class g implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ g(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (User) InboundGatewayGsonParser.fromJson(this.a, User.class); + } +} diff --git a/app/src/main/java/b/a/m/a/g0.java b/app/src/main/java/b/a/m/a/g0.java new file mode 100644 index 0000000000..142ebe552e --- /dev/null +++ b/app/src/main/java/b/a/m/a/g0.java @@ -0,0 +1,16 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class g0 implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ g0(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return this.a.nextStringOrNull(); + } +} diff --git a/app/src/main/java/b/a/m/a/h.java b/app/src/main/java/b/a/m/a/h.java new file mode 100644 index 0000000000..edd832bb8e --- /dev/null +++ b/app/src/main/java/b/a/m/a/h.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelAuditLogEntry; +/* compiled from: lambda */ +public final /* synthetic */ class h implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ h(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelAuditLogEntry.Change) this.a.parse(new ModelAuditLogEntry.Change()); + } +} diff --git a/app/src/main/java/b/a/m/a/h0/a.java b/app/src/main/java/b/a/m/a/h0/a.java new file mode 100644 index 0000000000..bd895b43ba --- /dev/null +++ b/app/src/main/java/b/a/m/a/h0/a.java @@ -0,0 +1,17 @@ +package b.a.m.a.h0; + +import com.discord.models.domain.Model; +import com.discord.models.domain.emoji.ModelEmojiUnicode; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ a(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelEmojiUnicode) this.a.parse(new ModelEmojiUnicode()); + } +} diff --git a/app/src/main/java/b/a/m/a/h0/b.java b/app/src/main/java/b/a/m/a/h0/b.java new file mode 100644 index 0000000000..8638fa46c8 --- /dev/null +++ b/app/src/main/java/b/a/m/a/h0/b.java @@ -0,0 +1,17 @@ +package b.a.m.a.h0; + +import com.discord.models.domain.Model; +import com.discord.models.domain.emoji.ModelEmojiUnicode; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ b(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelEmojiUnicode) this.a.parse(new ModelEmojiUnicode()); + } +} diff --git a/app/src/main/java/b/a/m/a/h0/c.java b/app/src/main/java/b/a/m/a/h0/c.java new file mode 100644 index 0000000000..b34f26cb3d --- /dev/null +++ b/app/src/main/java/b/a/m/a/h0/c.java @@ -0,0 +1,20 @@ +package b.a.m.a.h0; + +import android.os.Parcelable; +import com.discord.models.domain.Model; +import com.discord.models.domain.emoji.ModelEmojiUnicode; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ c(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + Model.JsonReader jsonReader = this.a; + Parcelable.Creator creator = ModelEmojiUnicode.CREATOR; + return jsonReader.nextString(null); + } +} diff --git a/app/src/main/java/b/a/m/a/i.java b/app/src/main/java/b/a/m/a/i.java new file mode 100644 index 0000000000..12b74dc64e --- /dev/null +++ b/app/src/main/java/b/a/m/a/i.java @@ -0,0 +1,19 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelCall; +/* compiled from: lambda */ +public final /* synthetic */ class i implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ i(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + Model.JsonReader jsonReader = this.a; + int i = ModelCall.j; + return Long.valueOf(jsonReader.nextLong(1)); + } +} diff --git a/app/src/main/java/b/a/m/a/j.java b/app/src/main/java/b/a/m/a/j.java new file mode 100644 index 0000000000..f3075e3354 --- /dev/null +++ b/app/src/main/java/b/a/m/a/j.java @@ -0,0 +1,21 @@ +package b.a.m.a; + +import com.discord.api.voice.state.VoiceState; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelCall; +/* compiled from: lambda */ +public final /* synthetic */ class j implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ j(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + Model.JsonReader jsonReader = this.a; + int i = ModelCall.j; + return (VoiceState) InboundGatewayGsonParser.fromJson(jsonReader, VoiceState.class); + } +} diff --git a/app/src/main/java/b/a/m/a/k.java b/app/src/main/java/b/a/m/a/k.java new file mode 100644 index 0000000000..e7072de872 --- /dev/null +++ b/app/src/main/java/b/a/m/a/k.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelNotificationSettings; +/* compiled from: lambda */ +public final /* synthetic */ class k implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ k(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelNotificationSettings.ChannelOverride) this.a.parse(new ModelNotificationSettings.ChannelOverride()); + } +} diff --git a/app/src/main/java/b/a/m/a/l.java b/app/src/main/java/b/a/m/a/l.java new file mode 100644 index 0000000000..5057b809a8 --- /dev/null +++ b/app/src/main/java/b/a/m/a/l.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.guild.Guild; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class l implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ l(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (Guild) InboundGatewayGsonParser.fromJson(this.a, Guild.class); + } +} diff --git a/app/src/main/java/b/a/m/a/m.java b/app/src/main/java/b/a/m/a/m.java new file mode 100644 index 0000000000..e21cb1b617 --- /dev/null +++ b/app/src/main/java/b/a/m/a/m.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelSession; +/* compiled from: lambda */ +public final /* synthetic */ class m implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ m(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelSession) this.a.parse(new ModelSession()); + } +} diff --git a/app/src/main/java/b/a/m/a/n.java b/app/src/main/java/b/a/m/a/n.java new file mode 100644 index 0000000000..a9f2a72910 --- /dev/null +++ b/app/src/main/java/b/a/m/a/n.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.connectedaccounts.ConnectedAccount; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class n implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ n(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ConnectedAccount) InboundGatewayGsonParser.fromJson(this.a, ConnectedAccount.class); + } +} diff --git a/app/src/main/java/b/a/m/a/o.java b/app/src/main/java/b/a/m/a/o.java new file mode 100644 index 0000000000..8bac0dc702 --- /dev/null +++ b/app/src/main/java/b/a/m/a/o.java @@ -0,0 +1,16 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class o implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ o(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return this.a.nextString(null); + } +} diff --git a/app/src/main/java/b/a/m/a/p.java b/app/src/main/java/b/a/m/a/p.java new file mode 100644 index 0000000000..0f5e953dfb --- /dev/null +++ b/app/src/main/java/b/a/m/a/p.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.presence.Presence; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class p implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ p(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (Presence) InboundGatewayGsonParser.fromJson(this.a, Presence.class); + } +} diff --git a/app/src/main/java/b/a/m/a/q.java b/app/src/main/java/b/a/m/a/q.java new file mode 100644 index 0000000000..9ab538457a --- /dev/null +++ b/app/src/main/java/b/a/m/a/q.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.presence.Presence; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class q implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ q(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (Presence) InboundGatewayGsonParser.fromJson(this.a, Presence.class); + } +} diff --git a/app/src/main/java/b/a/m/a/r.java b/app/src/main/java/b/a/m/a/r.java new file mode 100644 index 0000000000..94b678985c --- /dev/null +++ b/app/src/main/java/b/a/m/a/r.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class r implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ r(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + Model.JsonReader jsonReader = this.a; + return jsonReader.nextList(new q(jsonReader)); + } +} diff --git a/app/src/main/java/b/a/m/a/s.java b/app/src/main/java/b/a/m/a/s.java new file mode 100644 index 0000000000..bf5c169871 --- /dev/null +++ b/app/src/main/java/b/a/m/a/s.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class s implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ s(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + Model.JsonReader jsonReader = this.a; + return jsonReader.nextList(new u(jsonReader)); + } +} diff --git a/app/src/main/java/b/a/m/a/t.java b/app/src/main/java/b/a/m/a/t.java new file mode 100644 index 0000000000..cc8acf8ba5 --- /dev/null +++ b/app/src/main/java/b/a/m/a/t.java @@ -0,0 +1,21 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelPayload; +/* compiled from: lambda */ +public final /* synthetic */ class t implements Model.JsonReader.ItemFactory { + public final /* synthetic */ ModelPayload.VersionedModel a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Model.JsonReader f243b; + + public /* synthetic */ t(ModelPayload.VersionedModel versionedModel, Model.JsonReader jsonReader) { + this.a = versionedModel; + this.f243b = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return this.a.parseEntry(this.f243b); + } +} diff --git a/app/src/main/java/b/a/m/a/u.java b/app/src/main/java/b/a/m/a/u.java new file mode 100644 index 0000000000..2eb394ed54 --- /dev/null +++ b/app/src/main/java/b/a/m/a/u.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.guildmember.GuildMember; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class u implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ u(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (GuildMember) InboundGatewayGsonParser.fromJson(this.a, GuildMember.class); + } +} diff --git a/app/src/main/java/b/a/m/a/v.java b/app/src/main/java/b/a/m/a/v.java new file mode 100644 index 0000000000..b301375228 --- /dev/null +++ b/app/src/main/java/b/a/m/a/v.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.presence.Presence; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class v implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ v(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (Presence) InboundGatewayGsonParser.fromJson(this.a, Presence.class); + } +} diff --git a/app/src/main/java/b/a/m/a/w.java b/app/src/main/java/b/a/m/a/w.java new file mode 100644 index 0000000000..372b4b1ee8 --- /dev/null +++ b/app/src/main/java/b/a/m/a/w.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.user.User; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class w implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ w(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (User) InboundGatewayGsonParser.fromJson(this.a, User.class); + } +} diff --git a/app/src/main/java/b/a/m/a/x.java b/app/src/main/java/b/a/m/a/x.java new file mode 100644 index 0000000000..5143a56e02 --- /dev/null +++ b/app/src/main/java/b/a/m/a/x.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.domain.ModelUserRelationship; +/* compiled from: lambda */ +public final /* synthetic */ class x implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ x(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (ModelUserRelationship) this.a.parse(new ModelUserRelationship()); + } +} diff --git a/app/src/main/java/b/a/m/a/y.java b/app/src/main/java/b/a/m/a/y.java new file mode 100644 index 0000000000..015971f3c6 --- /dev/null +++ b/app/src/main/java/b/a/m/a/y.java @@ -0,0 +1,18 @@ +package b.a.m.a; + +import com.discord.api.guildjoinrequest.GuildJoinRequest; +import com.discord.models.deserialization.gson.InboundGatewayGsonParser; +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class y implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ y(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (GuildJoinRequest) InboundGatewayGsonParser.fromJson(this.a, GuildJoinRequest.class); + } +} diff --git a/app/src/main/java/b/a/m/a/z.java b/app/src/main/java/b/a/m/a/z.java new file mode 100644 index 0000000000..847b303dbd --- /dev/null +++ b/app/src/main/java/b/a/m/a/z.java @@ -0,0 +1,17 @@ +package b.a.m.a; + +import com.discord.models.domain.Model; +import com.discord.models.experiments.dto.GuildExperimentDto; +/* compiled from: lambda */ +public final /* synthetic */ class z implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ z(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return GuildExperimentDto.Parser.parse(this.a); + } +} diff --git a/app/src/main/java/b/a/n/a.java b/app/src/main/java/b/a/n/a.java new file mode 100644 index 0000000000..6ff7074eb7 --- /dev/null +++ b/app/src/main/java/b/a/n/a.java @@ -0,0 +1,71 @@ +package b.a.n; + +import android.animation.Animator; +import android.animation.AnimatorInflater; +import android.graphics.Point; +import android.util.Log; +import android.view.MotionEvent; +import android.view.View; +import com.discord.overlay.OverlayManager; +import com.discord.overlay.R; +import com.discord.overlay.views.OverlayBubbleWrap; +import d0.z.d.m; +import java.util.Objects; +/* compiled from: OverlayManager.kt */ +public final class a implements View.OnTouchListener { + public final /* synthetic */ OverlayManager j; + + public a(OverlayManager overlayManager) { + this.j = overlayManager; + } + + /* JADX WARNING: Removed duplicated region for block: B:11:0x0030 */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x00aa */ + @Override // android.view.View.OnTouchListener + public final boolean onTouch(View view, MotionEvent motionEvent) { + boolean z2; + m.checkNotNullExpressionValue(motionEvent, "event"); + int action = motionEvent.getAction(); + if (action == 1 || action == 2) { + b.a.n.h.a aVar = this.j.n; + if (aVar != null) { + if (aVar.n.contains((int) motionEvent.getRawX(), (int) motionEvent.getRawY())) { + z2 = true; + if (!z2) { + Objects.requireNonNull(view, "null cannot be cast to non-null type com.discord.overlay.views.OverlayBubbleWrap"); + OverlayBubbleWrap overlayBubbleWrap = (OverlayBubbleWrap) view; + if (motionEvent.getAction() == 1) { + OverlayManager overlayManager = this.j; + Objects.requireNonNull(overlayManager); + Point point = overlayBubbleWrap.w; + if (point != null) { + Point point2 = overlayBubbleWrap.v; + point2.x = point.x; + point2.y = point.y; + String simpleName = overlayBubbleWrap.getClass().getSimpleName(); + StringBuilder R = b.d.b.a.a.R("Moved to anchor ["); + R.append(overlayBubbleWrap.v); + R.append(']'); + Log.d(simpleName, R.toString()); + } + overlayManager.c(null); + Animator loadAnimator = AnimatorInflater.loadAnimator(overlayBubbleWrap.getContext(), R.a.fade_out); + loadAnimator.setTarget(overlayBubbleWrap); + loadAnimator.addListener(new e(overlayManager, overlayBubbleWrap)); + loadAnimator.start(); + OverlayBubbleWrap.c(overlayBubbleWrap, (int) overlayBubbleWrap.getX(), (overlayBubbleWrap.getHeight() / 2) + ((int) overlayBubbleWrap.getY()), null, 4, null); + return true; + } + this.j.c(overlayBubbleWrap); + } else { + this.j.c(null); + } + } + } + z2 = false; + if (!z2) { + } + } + return false; + } +} diff --git a/app/src/main/java/b/a/n/b.java b/app/src/main/java/b/a/n/b.java new file mode 100644 index 0000000000..bc7e1a5e2e --- /dev/null +++ b/app/src/main/java/b/a/n/b.java @@ -0,0 +1,34 @@ +package b.a.n; + +import com.discord.overlay.OverlayManager; +import com.discord.overlay.views.OverlayBubbleWrap; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.jvm.functions.Function1; +/* compiled from: OverlayManager.kt */ +public final class b extends o implements Function1 { + public final /* synthetic */ OverlayManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(OverlayManager overlayManager) { + super(1); + this.this$0 = overlayManager; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Boolean invoke(OverlayBubbleWrap overlayBubbleWrap) { + boolean z2; + OverlayBubbleWrap overlayBubbleWrap2 = overlayBubbleWrap; + m.checkNotNullParameter(overlayBubbleWrap2, "bubbleWrap"); + try { + this.this$0.f2713s.removeViewImmediate(overlayBubbleWrap2); + this.this$0.m.invoke(overlayBubbleWrap2); + z2 = true; + } catch (IllegalArgumentException unused) { + z2 = false; + } + return Boolean.valueOf(z2); + } +} diff --git a/app/src/main/java/b/a/n/c.java b/app/src/main/java/b/a/n/c.java new file mode 100644 index 0000000000..c88d68ca4a --- /dev/null +++ b/app/src/main/java/b/a/n/c.java @@ -0,0 +1,39 @@ +package b.a.n; + +import b.a.n.h.a; +import com.discord.overlay.OverlayManager; +import com.discord.overlay.views.OverlayBubbleWrap; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: OverlayManager.kt */ +public final class c extends o implements Function1 { + public final /* synthetic */ OverlayBubbleWrap $bubble; + public final /* synthetic */ OverlayManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(OverlayManager overlayManager, OverlayBubbleWrap overlayBubbleWrap) { + super(1); + this.this$0 = overlayManager; + this.$bubble = overlayBubbleWrap; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Boolean bool) { + if (bool.booleanValue()) { + a aVar = this.this$0.n; + if (aVar != null) { + aVar.l.start(); + } + } else { + a aVar2 = this.this$0.n; + if (aVar2 != null) { + aVar2.m.start(); + } + this.this$0.b(this.$bubble); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/n/d.java b/app/src/main/java/b/a/n/d.java new file mode 100644 index 0000000000..1076dd6ca4 --- /dev/null +++ b/app/src/main/java/b/a/n/d.java @@ -0,0 +1,85 @@ +package b.a.n; + +import android.view.View; +import android.view.WindowManager; +import androidx.core.view.ViewCompat; +import com.discord.overlay.OverlayManager; +import com.discord.overlay.views.OverlayBubbleWrap; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +/* compiled from: OverlayManager.kt */ +public final class d implements View.OnClickListener { + public final /* synthetic */ OverlayManager j; + public final /* synthetic */ Function1 k; + public final /* synthetic */ OverlayBubbleWrap l; + public final /* synthetic */ Object m; + + /* compiled from: OverlayManager.kt */ + public static final class a implements View.OnAttachStateChangeListener { + public final /* synthetic */ d j; + + /* compiled from: View.kt */ + /* renamed from: b.a.n.d$a$a reason: collision with other inner class name */ + public static final class View$OnLayoutChangeListenerC0028a implements View.OnLayoutChangeListener { + public final /* synthetic */ a j; + public final /* synthetic */ View k; + + public View$OnLayoutChangeListenerC0028a(a aVar, View view) { + this.j = aVar; + this.k = view; + } + + @Override // android.view.View.OnLayoutChangeListener + public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) { + m.checkNotNullParameter(view, "view"); + view.removeOnLayoutChangeListener(this); + View findViewWithTag = this.k.findViewWithTag(this.j.j.m); + m.checkNotNullExpressionValue(findViewWithTag, "v.findViewWithTag(anchorViewTag)"); + this.j.j.l.b(findViewWithTag); + } + } + + public a(d dVar) { + this.j = dVar; + } + + @Override // android.view.View.OnAttachStateChangeListener + public void onViewAttachedToWindow(View view) { + m.checkNotNullParameter(view, "v"); + if (!ViewCompat.isLaidOut(view) || view.isLayoutRequested()) { + view.addOnLayoutChangeListener(new View$OnLayoutChangeListenerC0028a(this, view)); + return; + } + View findViewWithTag = view.findViewWithTag(this.j.m); + m.checkNotNullExpressionValue(findViewWithTag, "v.findViewWithTag(anchorViewTag)"); + this.j.l.b(findViewWithTag); + } + + @Override // android.view.View.OnAttachStateChangeListener + public void onViewDetachedFromWindow(View view) { + if (ViewCompat.isAttachedToWindow(this.j.l)) { + this.j.l.setBubbleTouchable(true); + this.j.l.a(true); + } + } + } + + public d(OverlayManager overlayManager, Function1 function1, OverlayBubbleWrap overlayBubbleWrap, Object obj) { + this.j = overlayManager; + this.k = function1; + this.l = overlayBubbleWrap; + this.m = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + OverlayBubbleWrap overlayBubbleWrap = (OverlayBubbleWrap) this.k.invoke(this.l); + overlayBubbleWrap.addOnAttachStateChangeListener(new a(this)); + this.j.a(overlayBubbleWrap); + this.l.setBubbleTouchable(false); + this.j.f2713s.removeViewImmediate(this.l); + WindowManager windowManager = this.j.f2713s; + OverlayBubbleWrap overlayBubbleWrap2 = this.l; + windowManager.addView(overlayBubbleWrap2, overlayBubbleWrap2.getWindowLayoutParams()); + } +} diff --git a/app/src/main/java/b/a/n/e.java b/app/src/main/java/b/a/n/e.java new file mode 100644 index 0000000000..abd66747cd --- /dev/null +++ b/app/src/main/java/b/a/n/e.java @@ -0,0 +1,47 @@ +package b.a.n; + +import android.animation.Animator; +import com.discord.overlay.OverlayManager; +import com.discord.overlay.views.OverlayBubbleWrap; +import d0.z.d.m; +/* compiled from: Animator.kt */ +public final class e implements Animator.AnimatorListener { + public final /* synthetic */ OverlayManager a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ OverlayBubbleWrap f244b; + + public e(OverlayManager overlayManager, OverlayBubbleWrap overlayBubbleWrap) { + this.a = overlayManager; + this.f244b = overlayBubbleWrap; + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationCancel(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + if (this.a.n != null) { + OverlayBubbleWrap overlayBubbleWrap = this.f244b; + m.checkNotNullParameter(overlayBubbleWrap, "bubble"); + m.checkNotNullParameter(overlayBubbleWrap, "bubble"); + } + f fVar = this.a.o; + if (fVar != null) { + fVar.b(this.f244b); + } + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationRepeat(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } +} diff --git a/app/src/main/java/b/a/n/f.java b/app/src/main/java/b/a/n/f.java new file mode 100644 index 0000000000..4155341161 --- /dev/null +++ b/app/src/main/java/b/a/n/f.java @@ -0,0 +1,9 @@ +package b.a.n; + +import com.discord.overlay.views.OverlayBubbleWrap; +/* compiled from: TrashEventListener.kt */ +public interface f { + void a(OverlayBubbleWrap overlayBubbleWrap); + + void b(OverlayBubbleWrap overlayBubbleWrap); +} diff --git a/app/src/main/java/b/a/n/g/a.java b/app/src/main/java/b/a/n/g/a.java new file mode 100644 index 0000000000..a28ab2402a --- /dev/null +++ b/app/src/main/java/b/a/n/g/a.java @@ -0,0 +1,33 @@ +package b.a.n.g; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +/* compiled from: TrashWrapBinding */ +public final class a implements ViewBinding { + @NonNull + public final View a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ImageView f245b; + @NonNull + public final FrameLayout c; + @NonNull + public final FrameLayout d; + + public a(@NonNull View view, @NonNull ImageView imageView, @NonNull FrameLayout frameLayout, @NonNull FrameLayout frameLayout2) { + this.a = view; + this.f245b = imageView; + this.c = frameLayout; + this.d = frameLayout2; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/a/n/h/a.java b/app/src/main/java/b/a/n/h/a.java new file mode 100644 index 0000000000..3d0edac53b --- /dev/null +++ b/app/src/main/java/b/a/n/h/a.java @@ -0,0 +1,231 @@ +package b.a.n.h; + +import android.animation.Animator; +import android.animation.AnimatorInflater; +import android.animation.AnimatorSet; +import android.content.Context; +import android.graphics.Rect; +import android.os.Build; +import android.view.LayoutInflater; +import android.view.WindowManager; +import android.view.animation.ScaleAnimation; +import android.widget.FrameLayout; +import android.widget.ImageView; +import b.a.n.f; +import com.discord.overlay.R; +import com.discord.overlay.views.OverlayBubbleWrap; +import d0.z.d.m; +import kotlin.reflect.KProperty; +/* compiled from: OverlayTrashWrap.kt */ +public final class a extends FrameLayout implements f { + public final b.a.n.g.a j; + public WindowManager.LayoutParams k; + public final Animator l; + public final Animator m; + public final Rect n; + public final int[] o; + public OverlayBubbleWrap p; + + /* compiled from: Animator.kt */ + /* renamed from: b.a.n.h.a$a reason: collision with other inner class name */ + public static final class C0029a implements Animator.AnimatorListener { + public final /* synthetic */ a a; + + public C0029a(a aVar) { + this.a = aVar; + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationCancel(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationRepeat(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + this.a.setVisibility(0); + } + } + + /* compiled from: Animator.kt */ + public static final class b implements Animator.AnimatorListener { + public final /* synthetic */ a a; + + public b(a aVar) { + this.a = aVar; + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationCancel(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + this.a.setVisibility(4); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationRepeat(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(Context context) { + super(context); + m.checkNotNullParameter(context, "context"); + LayoutInflater.from(getContext()).inflate(R.e.trash_wrap, this); + int i = R.d.trash_wrap_icon; + ImageView imageView = (ImageView) findViewById(i); + if (imageView != null) { + i = R.d.trash_wrap_target_container; + FrameLayout frameLayout = (FrameLayout) findViewById(i); + if (frameLayout != null) { + i = R.d.trash_wrap_target_zone; + FrameLayout frameLayout2 = (FrameLayout) findViewById(i); + if (frameLayout2 != null) { + b.a.n.g.a aVar = new b.a.n.g.a(this, imageView, frameLayout, frameLayout2); + m.checkNotNullExpressionValue(aVar, "TrashWrapBinding.inflate…ater.from(context), this)"); + this.j = aVar; + WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(-2, -2, Build.VERSION.SDK_INT <= 25 ? 2007 : 2038, 16777768, -3); + layoutParams.width = -1; + layoutParams.gravity = 81; + m.checkNotNullParameter(layoutParams, "$this$addFlag"); + layoutParams.flags = 16 | layoutParams.flags; + this.k = layoutParams; + setBackgroundResource(R.c.trash_bg); + setVisibility(4); + AnimatorSet animatorSet = new AnimatorSet(); + Animator loadAnimator = AnimatorInflater.loadAnimator(getContext(), R.a.fade_in); + loadAnimator.setTarget(this); + Animator loadAnimator2 = AnimatorInflater.loadAnimator(getContext(), R.a.slide_in_bottom); + loadAnimator2.setTarget(frameLayout2); + animatorSet.playTogether(loadAnimator, loadAnimator2); + animatorSet.addListener(new C0029a(this)); + this.l = animatorSet; + AnimatorSet animatorSet2 = new AnimatorSet(); + Animator loadAnimator3 = AnimatorInflater.loadAnimator(getContext(), R.a.fade_out); + loadAnimator3.setTarget(this); + Animator loadAnimator4 = AnimatorInflater.loadAnimator(getContext(), R.a.slide_out_bottom); + loadAnimator4.setTarget(frameLayout2); + animatorSet2.playTogether(loadAnimator3, loadAnimator4); + animatorSet2.addListener(new b(this)); + this.m = animatorSet2; + this.n = new Rect(); + this.o = new int[]{0, 0}; + return; + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(getResources().getResourceName(i))); + } + + @Override // b.a.n.f + public void a(OverlayBubbleWrap overlayBubbleWrap) { + if (overlayBubbleWrap != null) { + FrameLayout frameLayout = this.j.c; + m.checkNotNullExpressionValue(frameLayout, "binding.trashWrapTargetContainer"); + frameLayout.setActivated(true); + int max = Math.max(overlayBubbleWrap.getWidth(), overlayBubbleWrap.getHeight()); + FrameLayout frameLayout2 = this.j.c; + m.checkNotNullExpressionValue(frameLayout2, "binding.trashWrapTargetContainer"); + FrameLayout frameLayout3 = this.j.c; + m.checkNotNullExpressionValue(frameLayout3, "binding.trashWrapTargetContainer"); + float max2 = (((float) Math.max(max, frameLayout2.getWidth())) / ((float) frameLayout3.getWidth())) + 0.5f; + FrameLayout frameLayout4 = this.j.c; + m.checkNotNullExpressionValue(frameLayout4, "binding.trashWrapTargetContainer"); + float scaleX = frameLayout4.getScaleX(); + FrameLayout frameLayout5 = this.j.c; + m.checkNotNullExpressionValue(frameLayout5, "binding.trashWrapTargetContainer"); + float scaleY = frameLayout5.getScaleY(); + FrameLayout frameLayout6 = this.j.c; + m.checkNotNullExpressionValue(frameLayout6, "binding.trashWrapTargetContainer"); + float pivotX = frameLayout6.getPivotX(); + FrameLayout frameLayout7 = this.j.c; + m.checkNotNullExpressionValue(frameLayout7, "binding.trashWrapTargetContainer"); + ScaleAnimation scaleAnimation = new ScaleAnimation(scaleX, max2, scaleY, max2, pivotX, frameLayout7.getPivotY()); + scaleAnimation.setDuration(200); + scaleAnimation.setInterpolator(getContext(), 17563656); + scaleAnimation.setFillAfter(true); + this.j.c.startAnimation(scaleAnimation); + } else { + FrameLayout frameLayout8 = this.j.c; + m.checkNotNullExpressionValue(frameLayout8, "binding.trashWrapTargetContainer"); + frameLayout8.setActivated(false); + setActivated(false); + FrameLayout frameLayout9 = this.j.c; + m.checkNotNullExpressionValue(frameLayout9, "binding.trashWrapTargetContainer"); + float scaleX2 = frameLayout9.getScaleX(); + FrameLayout frameLayout10 = this.j.c; + m.checkNotNullExpressionValue(frameLayout10, "binding.trashWrapTargetContainer"); + ScaleAnimation scaleAnimation2 = new ScaleAnimation(scaleX2, 1.0f, frameLayout10.getScaleY(), 1.0f); + scaleAnimation2.setDuration(200); + scaleAnimation2.setInterpolator(getContext(), 17563655); + scaleAnimation2.setFillAfter(true); + this.j.c.startAnimation(scaleAnimation2); + } + if (!m.areEqual(overlayBubbleWrap, this.p)) { + if (overlayBubbleWrap != null) { + ImageView imageView = this.j.f245b; + m.checkNotNullExpressionValue(imageView, "binding.trashWrapIcon"); + overlayBubbleWrap.b(imageView); + } + performHapticFeedback(Build.VERSION.SDK_INT >= 23 ? 6 : 0); + OverlayBubbleWrap overlayBubbleWrap2 = this.p; + if (overlayBubbleWrap2 != null) { + KProperty[] kPropertyArr = OverlayBubbleWrap.j; + overlayBubbleWrap2.a(false); + } + this.p = overlayBubbleWrap; + } + } + + @Override // b.a.n.f + public void b(OverlayBubbleWrap overlayBubbleWrap) { + m.checkNotNullParameter(overlayBubbleWrap, "bubble"); + m.checkNotNullParameter(overlayBubbleWrap, "bubble"); + } + + public final WindowManager.LayoutParams getWindowLayoutParams() { + return this.k; + } + + @Override // android.widget.FrameLayout, android.view.View, android.view.ViewGroup + public void onLayout(boolean z2, int i, int i2, int i3, int i4) { + super.onLayout(z2, i, i2, i3, i4); + if (z2) { + this.j.d.getLocationOnScreen(this.o); + int[] iArr = this.o; + int i5 = iArr[0]; + int i6 = iArr[1]; + Rect rect = this.n; + FrameLayout frameLayout = this.j.d; + m.checkNotNullExpressionValue(frameLayout, "binding.trashWrapTargetZone"); + FrameLayout frameLayout2 = this.j.d; + m.checkNotNullExpressionValue(frameLayout2, "binding.trashWrapTargetZone"); + rect.set(i5, i6, frameLayout.getWidth() + i5, frameLayout2.getHeight() + i6); + } + } + + public final void setWindowLayoutParams(WindowManager.LayoutParams layoutParams) { + m.checkNotNullParameter(layoutParams, ""); + this.k = layoutParams; + } +} diff --git a/app/src/main/java/b/a/o/a.java b/app/src/main/java/b/a/o/a.java new file mode 100644 index 0000000000..151c1a67af --- /dev/null +++ b/app/src/main/java/b/a/o/a.java @@ -0,0 +1,39 @@ +package b.a.o; + +import android.content.Context; +import android.content.res.Resources; +import androidx.core.os.ConfigurationCompat; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Locale; +import kotlin.jvm.functions.Function1; +/* compiled from: LocaleProvider.kt */ +public final class a { + public static Function1 a = C0030a.j; + + /* renamed from: b reason: collision with root package name */ + public static final a f246b = null; + + /* compiled from: LocaleProvider.kt */ + /* renamed from: b.a.o.a$a reason: collision with other inner class name */ + public static final class C0030a extends o implements Function1 { + public static final C0030a j = new C0030a(); + + public C0030a() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Locale invoke(Context context) { + Context context2 = context; + m.checkParameterIsNotNull(context2, "context"); + Resources resources = context2.getResources(); + m.checkExpressionValueIsNotNull(resources, "context.resources"); + Locale locale = ConfigurationCompat.getLocales(resources.getConfiguration()).get(0); + m.checkExpressionValueIsNotNull(locale, "ConfigurationCompat.getL…sources.configuration)[0]"); + return locale; + } + } +} diff --git a/app/src/main/java/b/a/o/b.java b/app/src/main/java/b/a/o/b.java new file mode 100644 index 0000000000..5319f63ec8 --- /dev/null +++ b/app/src/main/java/b/a/o/b.java @@ -0,0 +1,112 @@ +package b.a.o; + +import android.graphics.Rect; +import android.util.Log; +import android.view.View; +import android.view.ViewTreeObserver; +import androidx.annotation.UiThread; +import d0.t.u; +import d0.z.d.m; +import java.lang.ref.WeakReference; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +/* compiled from: PanelsChildGestureRegionObserver.kt */ +public final class b implements View.OnLayoutChangeListener { + public final Map j = new LinkedHashMap(); + public final Map k = new LinkedHashMap(); + public final Set l = new LinkedHashSet(); + + /* compiled from: PanelsChildGestureRegionObserver.kt */ + public interface a { + void onGestureRegionsUpdate(List list); + } + + /* compiled from: PanelsChildGestureRegionObserver.kt */ + /* renamed from: b.a.o.b$b reason: collision with other inner class name */ + public static final class C0031b { + public static WeakReference a = new WeakReference<>(null); + + @UiThread + public static final b a() { + b bVar = a.get(); + if (bVar != null) { + return bVar; + } + b bVar2 = new b(); + a = new WeakReference<>(bVar2); + return bVar2; + } + } + + /* compiled from: PanelsChildGestureRegionObserver.kt */ + public static final class c implements ViewTreeObserver.OnScrollChangedListener { + public final /* synthetic */ b a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ View f247b; + + public c(b bVar, View view) { + this.a = bVar; + this.f247b = view; + } + + @Override // android.view.ViewTreeObserver.OnScrollChangedListener + public final void onScrollChanged() { + b bVar = this.a; + View view = this.f247b; + bVar.onLayoutChange(view, view.getLeft(), this.f247b.getTop(), this.f247b.getRight(), this.f247b.getBottom(), 0, 0, 0, 0); + } + } + + public final void a() { + List list = u.toList(this.j.values()); + for (a aVar : this.l) { + aVar.onGestureRegionsUpdate(list); + } + } + + @UiThread + public final void b(View view) { + m.checkParameterIsNotNull(view, "view"); + if (this.k.containsKey(Integer.valueOf(view.getId()))) { + String simpleName = b.class.getSimpleName(); + StringBuilder R = b.d.b.a.a.R("failed to register view with ID "); + R.append(view.getId()); + R.append(". already registered"); + Log.w(simpleName, R.toString()); + return; + } + view.addOnLayoutChangeListener(this); + c cVar = new c(this, view); + view.getViewTreeObserver().addOnScrollChangedListener(cVar); + this.k.put(Integer.valueOf(view.getId()), cVar); + } + + @UiThread + public final void c(View view) { + m.checkParameterIsNotNull(view, "view"); + ViewTreeObserver.OnScrollChangedListener remove = this.k.remove(Integer.valueOf(view.getId())); + if (remove != null) { + view.getViewTreeObserver().removeOnScrollChangedListener(remove); + } + view.removeOnLayoutChangeListener(this); + this.j.remove(Integer.valueOf(view.getId())); + a(); + } + + @Override // android.view.View.OnLayoutChangeListener + public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) { + m.checkParameterIsNotNull(view, "view"); + if (this.k.keySet().contains(Integer.valueOf(view.getId()))) { + int[] iArr = {0, 0}; + view.getLocationInWindow(iArr); + int i9 = iArr[0]; + int i10 = iArr[1]; + this.j.put(Integer.valueOf(view.getId()), new Rect(i9, i10, i3 + i9, i4 + i10)); + a(); + } + } +} diff --git a/app/src/main/java/b/a/p/a.java b/app/src/main/java/b/a/p/a.java new file mode 100644 index 0000000000..d526fb6972 --- /dev/null +++ b/app/src/main/java/b/a/p/a.java @@ -0,0 +1,19 @@ +package b.a.p; + +import b.a.p.k; +import com.discord.player.AppMediaPlayer; +import rx.functions.Action1; +/* compiled from: AppMediaPlayer.kt */ +public final class a implements Action1 { + public final /* synthetic */ AppMediaPlayer j; + + public a(AppMediaPlayer appMediaPlayer) { + this.j = appMediaPlayer; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(k.a aVar) { + this.j.a.k.onNext(aVar.a ? AppMediaPlayer.Event.f.a : AppMediaPlayer.Event.d.a); + } +} diff --git a/app/src/main/java/b/a/p/b.java b/app/src/main/java/b/a/p/b.java new file mode 100644 index 0000000000..7f14a198dc --- /dev/null +++ b/app/src/main/java/b/a/p/b.java @@ -0,0 +1,19 @@ +package b.a.p; + +import com.discord.player.AppMediaPlayer; +import com.discord.utilities.logging.Logger; +import rx.functions.Action1; +/* compiled from: AppMediaPlayer.kt */ +public final class b implements Action1 { + public final /* synthetic */ AppMediaPlayer j; + + public b(AppMediaPlayer appMediaPlayer) { + this.j = appMediaPlayer; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + Logger.e$default(this.j.j, "error while listening to isPlayingChanges", th, null, 4, null); + } +} diff --git a/app/src/main/java/b/a/p/c.java b/app/src/main/java/b/a/p/c.java new file mode 100644 index 0000000000..8faf4b6aaa --- /dev/null +++ b/app/src/main/java/b/a/p/c.java @@ -0,0 +1,26 @@ +package b.a.p; + +import b.a.p.k; +import com.discord.player.AppMediaPlayer; +import com.discord.utilities.logging.Logger; +import d0.z.d.m; +import rx.functions.Action1; +/* compiled from: AppMediaPlayer.kt */ +public final class c implements Action1 { + public final /* synthetic */ AppMediaPlayer j; + public final /* synthetic */ String k; + + public c(AppMediaPlayer appMediaPlayer, String str) { + this.j = appMediaPlayer; + this.k = str; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(k.b bVar) { + Logger logger = this.j.j; + String simpleName = AppMediaPlayer.class.getSimpleName(); + m.checkNotNullExpressionValue(simpleName, "javaClass.simpleName"); + Logger.e$default(logger, simpleName, "playback error for feature: " + this.k, bVar.a, null, 8, null); + } +} diff --git a/app/src/main/java/b/a/p/d.java b/app/src/main/java/b/a/p/d.java new file mode 100644 index 0000000000..056241664c --- /dev/null +++ b/app/src/main/java/b/a/p/d.java @@ -0,0 +1,19 @@ +package b.a.p; + +import com.discord.player.AppMediaPlayer; +import com.discord.utilities.logging.Logger; +import rx.functions.Action1; +/* compiled from: AppMediaPlayer.kt */ +public final class d implements Action1 { + public final /* synthetic */ AppMediaPlayer j; + + public d(AppMediaPlayer appMediaPlayer) { + this.j = appMediaPlayer; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + Logger.e$default(this.j.j, "error while listening to player errors", th, null, 4, null); + } +} diff --git a/app/src/main/java/b/a/p/e.java b/app/src/main/java/b/a/p/e.java new file mode 100644 index 0000000000..0895047f8f --- /dev/null +++ b/app/src/main/java/b/a/p/e.java @@ -0,0 +1,48 @@ +package b.a.p; + +import b.a.p.k; +import b.i.a.c.k2; +import com.discord.player.AppMediaPlayer; +import j0.j.b.a; +import java.util.concurrent.TimeUnit; +import rx.Observable; +import rx.Subscription; +import rx.functions.Action1; +import rx.subjects.PublishSubject; +/* compiled from: AppMediaPlayer.kt */ +public final class e implements Action1 { + public final /* synthetic */ AppMediaPlayer j; + + public e(AppMediaPlayer appMediaPlayer) { + this.j = appMediaPlayer; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(k.c cVar) { + int i = cVar.a; + if (i == 2) { + PublishSubject publishSubject = this.j.a; + publishSubject.k.onNext(AppMediaPlayer.Event.b.a); + } else if (i == 3) { + PublishSubject publishSubject2 = this.j.a; + publishSubject2.k.onNext(AppMediaPlayer.Event.a.a); + AppMediaPlayer appMediaPlayer = this.j; + Subscription subscription = appMediaPlayer.f2716b; + if (subscription != null) { + subscription.unsubscribe(); + } + appMediaPlayer.f2716b = Observable.E(500, 500, TimeUnit.MILLISECONDS, appMediaPlayer.i).K().I(a.a()).W(new g(appMediaPlayer), new h(appMediaPlayer)); + } else if (i == 4) { + PublishSubject publishSubject3 = this.j.a; + publishSubject3.k.onNext(AppMediaPlayer.Event.e.a); + Subscription subscription2 = this.j.f2716b; + if (subscription2 != null) { + subscription2.unsubscribe(); + } + AppMediaPlayer appMediaPlayer2 = this.j; + PublishSubject publishSubject4 = appMediaPlayer2.a; + publishSubject4.k.onNext(new AppMediaPlayer.Event.c(((k2) appMediaPlayer2.f).T())); + } + } +} diff --git a/app/src/main/java/b/a/p/f.java b/app/src/main/java/b/a/p/f.java new file mode 100644 index 0000000000..351ea01959 --- /dev/null +++ b/app/src/main/java/b/a/p/f.java @@ -0,0 +1,19 @@ +package b.a.p; + +import com.discord.player.AppMediaPlayer; +import com.discord.utilities.logging.Logger; +import rx.functions.Action1; +/* compiled from: AppMediaPlayer.kt */ +public final class f implements Action1 { + public final /* synthetic */ AppMediaPlayer j; + + public f(AppMediaPlayer appMediaPlayer) { + this.j = appMediaPlayer; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + Logger.e$default(this.j.j, "error while listening to player states", th, null, 4, null); + } +} diff --git a/app/src/main/java/b/a/p/g.java b/app/src/main/java/b/a/p/g.java new file mode 100644 index 0000000000..2d8977878b --- /dev/null +++ b/app/src/main/java/b/a/p/g.java @@ -0,0 +1,22 @@ +package b.a.p; + +import b.i.a.c.k2; +import com.discord.player.AppMediaPlayer; +import rx.functions.Action1; +import rx.subjects.PublishSubject; +/* compiled from: AppMediaPlayer.kt */ +public final class g implements Action1 { + public final /* synthetic */ AppMediaPlayer j; + + public g(AppMediaPlayer appMediaPlayer) { + this.j = appMediaPlayer; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Long l) { + AppMediaPlayer appMediaPlayer = this.j; + PublishSubject publishSubject = appMediaPlayer.a; + publishSubject.k.onNext(new AppMediaPlayer.Event.c(((k2) appMediaPlayer.f).T())); + } +} diff --git a/app/src/main/java/b/a/p/h.java b/app/src/main/java/b/a/p/h.java new file mode 100644 index 0000000000..fc03267d3a --- /dev/null +++ b/app/src/main/java/b/a/p/h.java @@ -0,0 +1,19 @@ +package b.a.p; + +import com.discord.player.AppMediaPlayer; +import com.discord.utilities.logging.Logger; +import rx.functions.Action1; +/* compiled from: AppMediaPlayer.kt */ +public final class h implements Action1 { + public final /* synthetic */ AppMediaPlayer j; + + public h(AppMediaPlayer appMediaPlayer) { + this.j = appMediaPlayer; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + Logger.e$default(this.j.j, "error while polling progress position", th, null, 4, null); + } +} diff --git a/app/src/main/java/b/a/p/i.java b/app/src/main/java/b/a/p/i.java new file mode 100644 index 0000000000..0693c2d613 --- /dev/null +++ b/app/src/main/java/b/a/p/i.java @@ -0,0 +1,46 @@ +package b.a.p; + +import android.content.Context; +import b.c.a.a0.d; +import b.i.a.c.e1; +import b.i.a.c.e3.o; +import b.i.a.c.e3.q; +import b.i.a.c.k2; +import b.i.a.c.z0; +import com.discord.app.AppLog; +import com.discord.player.AppMediaPlayer; +import com.discord.utilities.guilds.GuildConstantsKt; +import d0.z.d.m; +import j0.p.a; +import rx.Scheduler; +/* compiled from: AppMediaPlayerFactory.kt */ +public final class i { + public static final AppMediaPlayer a(Context context) { + m.checkNotNullParameter(context, "context"); + AppLog appLog = AppLog.g; + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(appLog, "logger"); + j jVar = new j(new q.a(context), (long) 104857600); + k kVar = new k(); + d.D(true); + z0.j(GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES, 0, "bufferForPlaybackMs", "0"); + z0.j(5000, 0, "bufferForPlaybackAfterRebufferMs", "0"); + z0.j(10000, GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES, "minBufferMs", "bufferForPlaybackMs"); + z0.j(10000, 5000, "minBufferMs", "bufferForPlaybackAfterRebufferMs"); + z0.j(30000, 10000, "maxBufferMs", "minBufferMs"); + d.D(true); + z0 z0Var = new z0(new o(true, 65536), 10000, 30000, GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES, 5000, -1, false, 0, false); + m.checkNotNullExpressionValue(z0Var, "DefaultLoadControl.Build… )\n .build()"); + e1.b bVar = new e1.b(context); + d.D(!bVar.f910s); + bVar.f = new b.i.a.c.d(z0Var); + d.D(!bVar.f910s); + bVar.f910s = true; + k2 k2Var = new k2(bVar); + m.checkNotNullExpressionValue(k2Var, "ExoPlayer\n .Bui…ntrol)\n .build()"); + k2Var.x(kVar); + Scheduler a = a.a(); + m.checkNotNullExpressionValue(a, "Schedulers.computation()"); + return new AppMediaPlayer(k2Var, kVar, jVar, a, appLog); + } +} diff --git a/app/src/main/java/b/a/p/j.java b/app/src/main/java/b/a/p/j.java new file mode 100644 index 0000000000..a273dd6658 --- /dev/null +++ b/app/src/main/java/b/a/p/j.java @@ -0,0 +1,30 @@ +package b.a.p; + +import b.i.a.c.e3.b0.c; +import b.i.a.c.e3.b0.r; +import b.i.a.c.e3.l; +import b.i.a.c.e3.q; +import com.google.android.exoplayer2.upstream.FileDataSource; +import com.google.android.exoplayer2.upstream.cache.CacheDataSink; +import d0.z.d.m; +/* compiled from: CacheDataSourceFactory.kt */ +public final class j implements l.a { + public final q.a a; + + /* renamed from: b reason: collision with root package name */ + public final long f248b; + + public j(q.a aVar, long j) { + m.checkNotNullParameter(aVar, "defaultDatasourceFactory"); + this.a = aVar; + this.f248b = j; + } + + @Override // b.i.a.c.e3.l.a + public l a() { + l lVar = l.f249b; + r rVar = (r) l.a.getValue(); + q.a aVar = this.a; + return new c(rVar, new q(aVar.a, aVar.f935b.a()), new FileDataSource(), new CacheDataSink(rVar, this.f248b), 3, null); + } +} diff --git a/app/src/main/java/b/a/p/k.java b/app/src/main/java/b/a/p/k.java new file mode 100644 index 0000000000..f8f7b5df3c --- /dev/null +++ b/app/src/main/java/b/a/p/k.java @@ -0,0 +1,268 @@ +package b.a.p; + +import b.i.a.c.a2; +import b.i.a.c.a3.o0; +import b.i.a.c.c1; +import b.i.a.c.c3.n; +import b.i.a.c.g3.y; +import b.i.a.c.o1; +import b.i.a.c.o2; +import b.i.a.c.p1; +import b.i.a.c.p2; +import b.i.a.c.x1; +import b.i.a.c.y1; +import b.i.a.c.z1; +import com.google.android.exoplayer2.PlaybackException; +import com.google.android.exoplayer2.metadata.Metadata; +import d0.z.d.m; +import java.util.List; +import rx.subjects.PublishSubject; +/* compiled from: RxPlayerEventListener.kt */ +public final class k implements y1.e { + public final PublishSubject j = PublishSubject.k0(); + public final PublishSubject k = PublishSubject.k0(); + public final PublishSubject l = PublishSubject.k0(); + + /* compiled from: RxPlayerEventListener.kt */ + public static final class a { + public final boolean a; + + public a(boolean z2) { + this.a = z2; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof a) && this.a == ((a) obj).a; + } + return true; + } + + public int hashCode() { + boolean z2 = this.a; + if (z2) { + return 1; + } + return z2 ? 1 : 0; + } + + public String toString() { + return b.d.b.a.a.L(b.d.b.a.a.R("IsPlayingChange(isPlaying="), this.a, ")"); + } + } + + /* compiled from: RxPlayerEventListener.kt */ + public static final class b { + public final PlaybackException a; + + public b(PlaybackException playbackException) { + m.checkNotNullParameter(playbackException, "exoPlaybackException"); + this.a = playbackException; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof b) && m.areEqual(this.a, ((b) obj).a); + } + return true; + } + + public int hashCode() { + PlaybackException playbackException = this.a; + if (playbackException != null) { + return playbackException.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("PlayerError(exoPlaybackException="); + R.append(this.a); + R.append(")"); + return R.toString(); + } + } + + /* compiled from: RxPlayerEventListener.kt */ + public static final class c { + public final int a; + + public c(int i) { + this.a = i; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof c) && this.a == ((c) obj).a; + } + return true; + } + + public int hashCode() { + return this.a; + } + + public String toString() { + return b.d.b.a.a.A(b.d.b.a.a.R("PlayerStateChange(playbackState="), this.a, ")"); + } + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void A(p1 p1Var) { + a2.i(this, p1Var); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void D(boolean z2) { + a2.t(this, z2); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void E(y1 y1Var, y1.d dVar) { + a2.e(this, y1Var, dVar); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void G(int i, boolean z2) { + a2.d(this, i, z2); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void H(boolean z2, int i) { + z1.k(this, z2, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void L(int i) { + a2.s(this, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void M(o1 o1Var, int i) { + a2.h(this, o1Var, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void W(boolean z2, int i) { + a2.k(this, z2, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void Y(o0 o0Var, n nVar) { + z1.r(this, o0Var, nVar); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void a() { + z1.o(this); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void a0(int i, int i2) { + a2.v(this, i, i2); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void b(Metadata metadata) { + a2.j(this, metadata); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void b0(x1 x1Var) { + a2.l(this, x1Var); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void c() { + a2.r(this); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void d(boolean z2) { + a2.u(this, z2); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void e(List list) { + a2.b(this, list); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void f(y yVar) { + a2.y(this, yVar); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void f0(PlaybackException playbackException) { + a2.p(this, playbackException); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void g(y1.f fVar, y1.f fVar2, int i) { + a2.q(this, fVar, fVar2, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void h(int i) { + a2.n(this, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void i(boolean z2) { + z1.d(this, z2); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void j(int i) { + z1.l(this, i); + } + + @Override // b.i.a.c.y1.c + public void j0(boolean z2) { + PublishSubject publishSubject = this.k; + publishSubject.k.onNext(new a(z2)); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void p(p2 p2Var) { + a2.x(this, p2Var); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void r(boolean z2) { + a2.f(this, z2); + } + + @Override // b.i.a.c.y1.c + public void s(PlaybackException playbackException) { + m.checkNotNullParameter(playbackException, "error"); + PublishSubject publishSubject = this.l; + publishSubject.k.onNext(new b(playbackException)); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void t(y1.b bVar) { + a2.a(this, bVar); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void v(o2 o2Var, int i) { + a2.w(this, o2Var, i); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void w(float f) { + a2.z(this, f); + } + + @Override // b.i.a.c.y1.c + public void y(int i) { + PublishSubject publishSubject = this.j; + publishSubject.k.onNext(new c(i)); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void z(c1 c1Var) { + a2.c(this, c1Var); + } +} diff --git a/app/src/main/java/b/a/p/l.java b/app/src/main/java/b/a/p/l.java new file mode 100644 index 0000000000..654ad1f9b8 --- /dev/null +++ b/app/src/main/java/b/a/p/l.java @@ -0,0 +1,37 @@ +package b.a.p; + +import android.content.Context; +import b.i.a.c.e3.b0.r; +import b.i.a.c.u2.b; +import com.discord.utilities.lifecycle.ApplicationProvider; +import d0.g; +import d0.z.d.m; +import d0.z.d.o; +import java.io.File; +import kotlin.Lazy; +import kotlin.jvm.functions.Function0; +/* compiled from: SimpleCacheProvider.kt */ +public final class l { + public static final Lazy a = g.lazy(a.j); + + /* renamed from: b reason: collision with root package name */ + public static final l f249b = null; + + /* compiled from: SimpleCacheProvider.kt */ + public static final class a extends o implements Function0 { + public static final a j = new a(); + + public a() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public r mo1invoke() { + Context applicationContext = ApplicationProvider.INSTANCE.get().getApplicationContext(); + m.checkNotNullExpressionValue(applicationContext, "context"); + return new r(new File(applicationContext.getCacheDir(), "app_media_player"), new b.i.a.c.e3.b0.o(104857600), new b(applicationContext)); + } + } +} diff --git a/app/src/main/java/b/a/q/a.java b/app/src/main/java/b/a/q/a.java new file mode 100644 index 0000000000..53b33d0036 --- /dev/null +++ b/app/src/main/java/b/a/q/a.java @@ -0,0 +1,43 @@ +package b.a.q; + +import d0.z.d.m; +/* compiled from: MediaSinkWantsLadder.kt */ +public final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f250b; + public final Integer c; + + public a(int i, int i2, Integer num) { + this.a = i; + this.f250b = i2; + this.c = num; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.f250b == aVar.f250b && m.areEqual(this.c, aVar.c); + } + + public int hashCode() { + int i = ((this.a * 31) + this.f250b) * 31; + Integer num = this.c; + return i + (num != null ? num.hashCode() : 0); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Bitrate(min="); + R.append(this.a); + R.append(", max="); + R.append(this.f250b); + R.append(", target="); + return b.d.b.a.a.E(R, this.c, ")"); + } +} diff --git a/app/src/main/java/b/a/q/a0.java b/app/src/main/java/b/a/q/a0.java new file mode 100644 index 0000000000..b84736e72d --- /dev/null +++ b/app/src/main/java/b/a/q/a0.java @@ -0,0 +1,49 @@ +package b.a.q; + +import b.a.q.n0.a; +import com.discord.rtcconnection.EncodeQuality; +import com.discord.rtcconnection.RtcConnection; +import d0.t.g0; +import d0.z.d.k; +import d0.z.d.m; +import java.util.LinkedHashMap; +import java.util.Map; +import kotlin.Pair; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: RtcConnection.kt */ +public final /* synthetic */ class a0 extends k implements Function1, ? extends RtcConnection.State>, Unit> { + public a0(RtcConnection rtcConnection) { + super(1, rtcConnection, RtcConnection.class, "onLocalMediaSinkWants", "onLocalMediaSinkWants(Lkotlin/Pair;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Pair, ? extends RtcConnection.State> pair) { + Pair, ? extends RtcConnection.State> pair2 = pair; + m.checkNotNullParameter(pair2, "p1"); + RtcConnection rtcConnection = (RtcConnection) this.receiver; + if (rtcConnection.f2731b0) { + Map map = (Map) pair2.component1(); + if (m.areEqual((RtcConnection.State) pair2.component2(), RtcConnection.State.f.a)) { + rtcConnection.V.i(rtcConnection.l, "local MediaSinkWants: " + map, null); + a aVar = rtcConnection.w; + if (aVar == null) { + RtcConnection.o(rtcConnection, "onLocalMediaSinkWants() socket was null.", null, null, 6); + } else { + LinkedHashMap linkedHashMap = new LinkedHashMap(g0.mapCapacity(map.size())); + for (Map.Entry entry : map.entrySet()) { + linkedHashMap.put(entry.getKey(), Integer.valueOf(((EncodeQuality) entry.getValue()).getValue())); + } + m.checkNotNullParameter(linkedHashMap, "wants"); + aVar.H.a(); + if (aVar.r >= 5) { + aVar.n(15, linkedHashMap); + } + } + } + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/b.java b/app/src/main/java/b/a/q/b.java new file mode 100644 index 0000000000..a7312b0c2a --- /dev/null +++ b/app/src/main/java/b/a/q/b.java @@ -0,0 +1,48 @@ +package b.a.q; + +import b.d.b.a.a; +import d0.z.d.m; +/* compiled from: MediaSinkWantsLadder.kt */ +public final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f251b; + public final int c; + public final Integer d; + + public b(int i, int i2, int i3, Integer num) { + this.a = i; + this.f251b = i2; + this.c = i3; + this.d = num; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.a == bVar.a && this.f251b == bVar.f251b && this.c == bVar.c && m.areEqual(this.d, bVar.d); + } + + public int hashCode() { + int i = ((((this.a * 31) + this.f251b) * 31) + this.c) * 31; + Integer num = this.d; + return i + (num != null ? num.hashCode() : 0); + } + + public String toString() { + StringBuilder R = a.R("IVideoQuality(width="); + R.append(this.a); + R.append(", height="); + R.append(this.f251b); + R.append(", framerate="); + R.append(this.c); + R.append(", pixelCount="); + return a.E(R, this.d, ")"); + } +} diff --git a/app/src/main/java/b/a/q/b0.java b/app/src/main/java/b/a/q/b0.java new file mode 100644 index 0000000000..b872b7421b --- /dev/null +++ b/app/src/main/java/b/a/q/b0.java @@ -0,0 +1,242 @@ +package b.a.q; + +import b.a.q.m0.a; +import b.a.q.o0.b; +import b.a.q.o0.c; +import b.a.q.o0.d; +import b.a.q.o0.e; +import co.discord.media_engine.MediaType; +import co.discord.media_engine.StreamParameters; +import co.discord.media_engine.VoiceQuality; +import com.discord.rtcconnection.KrispOveruseDetector; +import com.discord.rtcconnection.MediaSinkWantsManager; +import com.discord.rtcconnection.RtcConnection; +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import com.discord.rtcconnection.socket.io.Payloads; +import d0.t.h0; +import d0.t.j; +import d0.t.o; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +import kotlin.NoWhenBranchMatchedException; +import org.webrtc.MediaStreamTrack; +import rx.Observable; +import rx.Subscription; +/* compiled from: RtcConnection.kt */ +public final class b0 implements MediaEngineConnection.d { + public final /* synthetic */ RtcConnection a; + + public b0(RtcConnection rtcConnection) { + this.a = rtcConnection; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onConnected(MediaEngineConnection mediaEngineConnection, MediaEngineConnection.TransportInfo transportInfo, List list) { + m.checkNotNullParameter(mediaEngineConnection, "connection"); + m.checkNotNullParameter(transportInfo, "transportInfo"); + m.checkNotNullParameter(list, "supportedVideoCodecs"); + RtcConnection rtcConnection = this.a; + rtcConnection.q.succeed(); + rtcConnection.r = transportInfo; + MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2735x; + if (mediaEngineConnection2 != null) { + d dVar = new d(1000, rtcConnection.V, mediaEngineConnection2, new VoiceQuality(), rtcConnection.B, new KrispOveruseDetector(mediaEngineConnection2), 0, 64); + dVar.a.clear(); + Subscription subscription = dVar.f274b; + if (subscription != null && !subscription.isUnsubscribed()) { + dVar.a(); + } + dVar.f274b = Observable.D(0, dVar.c, TimeUnit.MILLISECONDS).W(new b(dVar), new c(dVar)); + rtcConnection.o = dVar; + rtcConnection.p = false; + } + if (transportInfo.c.ordinal() != 0) { + StringBuilder R = b.d.b.a.a.R("Unsupported protocol: "); + R.append(transportInfo.c); + R.append('.'); + RtcConnection.j(rtcConnection, true, R.toString(), null, false, 12); + } else { + rtcConnection.V.recordBreadcrumb("Sending UDP info to RTC server.", rtcConnection.l); + b.a.q.n0.a aVar = rtcConnection.w; + if (aVar == null) { + RtcConnection.o(rtcConnection, "onEngineConnectionConnected() socket was null.", null, null, 6); + return; + } + String str = transportInfo.a; + int i = transportInfo.f2755b; + m.checkNotNullParameter("udp", "protocol"); + m.checkNotNullParameter(str, "address"); + m.checkNotNullParameter("xsalsa20_poly1305", "mode"); + m.checkNotNullParameter(list, "codecs"); + aVar.H.a(); + Payloads.Protocol.ProtocolInfo protocolInfo = new Payloads.Protocol.ProtocolInfo(str, i, "xsalsa20_poly1305"); + ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(list, 10)); + for (a aVar2 : list) { + arrayList.add(new Payloads.Protocol.CodecInfo(aVar2.a, aVar2.f261b, aVar2.c, aVar2.d, aVar2.e)); + } + aVar.n(1, new Payloads.Protocol("udp", protocolInfo, arrayList)); + } + for (RtcConnection.c cVar : rtcConnection.n) { + cVar.onMediaEngineConnectionConnected(rtcConnection); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onConnectionStateChange(MediaEngineConnection mediaEngineConnection, MediaEngineConnection.ConnectionState connectionState) { + RtcConnection.State state; + m.checkNotNullParameter(mediaEngineConnection, "connection"); + m.checkNotNullParameter(connectionState, "connectionState"); + RtcConnection rtcConnection = this.a; + RtcConnection.StateChange stateChange = rtcConnection.f2734s; + rtcConnection.r("Connection state change: " + connectionState); + int ordinal = connectionState.ordinal(); + if (ordinal == 0) { + state = RtcConnection.State.h.a; + } else if (ordinal == 1) { + state = RtcConnection.State.g.a; + } else if (ordinal == 2) { + state = RtcConnection.State.f.a; + } else if (ordinal == 3) { + state = RtcConnection.State.e.a; + } else { + throw new NoWhenBranchMatchedException(); + } + rtcConnection.u(state); + if (stateChange.a == RtcConnection.State.g.a && rtcConnection.f2734s.a == RtcConnection.State.h.a) { + rtcConnection.q(); + } + if (rtcConnection.f2734s.a == RtcConnection.State.f.a) { + rtcConnection.D = Long.valueOf(rtcConnection.W.currentTimeMillis()); + rtcConnection.J = true; + Map mutableMapOf = h0.mutableMapOf(d0.o.to("connect_count", Integer.valueOf(rtcConnection.E))); + Long l = rtcConnection.C; + Long l2 = rtcConnection.D; + Long valueOf = (l2 == null || l == null) ? null : Long.valueOf(l2.longValue() - l.longValue()); + if (valueOf != null) { + mutableMapOf.put("connect_time", Long.valueOf(valueOf.longValue())); + } + rtcConnection.b(mutableMapOf); + rtcConnection.p(RtcConnection.AnalyticsEvent.VOICE_CONNECTION_SUCCESS, mutableMapOf); + MediaSinkWantsManager mediaSinkWantsManager = rtcConnection.H; + if (mediaSinkWantsManager != null) { + mediaSinkWantsManager.b(new i(mediaSinkWantsManager, rtcConnection.f2735x)); + } + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onDestroy(MediaEngineConnection mediaEngineConnection) { + m.checkNotNullParameter(mediaEngineConnection, "connection"); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onError(MediaEngineConnection mediaEngineConnection, MediaEngineConnection.FailedConnectionException failedConnectionException) { + m.checkNotNullParameter(mediaEngineConnection, "connection"); + m.checkNotNullParameter(failedConnectionException, "exception"); + RtcConnection rtcConnection = this.a; + Objects.requireNonNull(rtcConnection); + String str = "connection error: " + failedConnectionException.a(); + int ordinal = failedConnectionException.a().ordinal(); + if (ordinal == 0 || ordinal == 1 || ordinal == 2) { + StringBuilder V = b.d.b.a.a.V(str, " -- "); + V.append(failedConnectionException.getMessage()); + rtcConnection.r(V.toString()); + } else { + RtcConnection.AnalyticsEvent analyticsEvent = RtcConnection.AnalyticsEvent.VOICE_CONNECTION_FAILURE; + Map mutableMapOf = h0.mutableMapOf(d0.o.to("connect_count", Integer.valueOf(rtcConnection.E))); + rtcConnection.b(mutableMapOf); + rtcConnection.p(analyticsEvent, mutableMapOf); + } + RtcConnection.j(rtcConnection, true, str, failedConnectionException, false, 8); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onKrispStatus(MediaEngineConnection mediaEngineConnection, KrispOveruseDetector.Status status) { + m.checkNotNullParameter(mediaEngineConnection, "connection"); + m.checkNotNullParameter(status, "status"); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onLocalMute(long j, boolean z2) { + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onLocalVideoOffScreen(long j, boolean z2) { + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onSpeaking(long j, int i, boolean z2) { + b.a.q.n0.a aVar; + RtcConnection rtcConnection = this.a; + if (j == rtcConnection.T && (aVar = rtcConnection.w) != null) { + aVar.H.a(); + aVar.n(5, new Payloads.Speaking(i, Integer.valueOf(z2 ? 1 : 0), 0, null, 8, null)); + } + for (RtcConnection.c cVar : rtcConnection.n) { + cVar.onSpeaking(j, z2); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onTargetBitrate(int i) { + e eVar = this.a.B; + synchronized (eVar) { + eVar.l.k = i; + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onTargetFrameRate(int i) { + e eVar = this.a.B; + synchronized (eVar) { + eVar.l.l = i; + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onVideo(long j, Integer num, int i, int i2, int i3, StreamParameters[] streamParametersArr) { + m.checkNotNullParameter(streamParametersArr, "streams"); + RtcConnection rtcConnection = this.a; + List asList = j.asList(streamParametersArr); + if (j == rtcConnection.T) { + b.a.q.n0.a aVar = rtcConnection.w; + if (aVar == null) { + RtcConnection.o(rtcConnection, "sendVideo() socket was null.", null, null, 6); + } else { + rtcConnection.L = (long) i2; + if (i2 != 0) { + rtcConnection.p = true; + } + ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(asList, 10)); + for (StreamParameters streamParameters : asList) { + String str = streamParameters.getType() == MediaType.Audio ? MediaStreamTrack.AUDIO_TRACK_KIND : MediaStreamTrack.VIDEO_TRACK_KIND; + String rid = streamParameters.getRid(); + Integer valueOf = Integer.valueOf(streamParameters.getSsrc()); + Integer valueOf2 = Integer.valueOf(streamParameters.getRtxSsrc()); + Boolean valueOf3 = Boolean.valueOf(streamParameters.getActive()); + Integer valueOf4 = Integer.valueOf(streamParameters.getMaxBitrate()); + Integer valueOf5 = Integer.valueOf(streamParameters.getQuality()); + j0 j0Var = f.a; + Integer valueOf6 = Integer.valueOf(j0Var.f255b.c); + Payloads.ResolutionType resolutionType = Payloads.ResolutionType.Fixed; + b bVar = j0Var.f255b; + arrayList.add(new Payloads.Stream(str, rid, valueOf6, valueOf5, valueOf, valueOf2, new Payloads.Stream.MaxResolution(resolutionType, bVar.a, bVar.f251b), valueOf3, valueOf4)); + } + m.checkNotNullParameter(arrayList, "streams"); + aVar.H.a(); + aVar.n(12, new Payloads.Video(i, i2, i3, null, arrayList)); + } + MediaSinkWantsManager mediaSinkWantsManager = rtcConnection.H; + if (mediaSinkWantsManager != null) { + mediaSinkWantsManager.b(new k(mediaSinkWantsManager, i2 != 0)); + } + } + for (RtcConnection.c cVar : rtcConnection.n) { + cVar.onVideoStream(j, num, i, i2, i3); + } + } +} diff --git a/app/src/main/java/b/a/q/c.java b/app/src/main/java/b/a/q/c.java new file mode 100644 index 0000000000..a168d971c2 --- /dev/null +++ b/app/src/main/java/b/a/q/c.java @@ -0,0 +1,120 @@ +package b.a.q; + +import android.os.Handler; +import android.os.Looper; +import android.os.Process; +import b.c.a.a0.d; +import d0.z.d.m; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: MediaEngineExecutorService.kt */ +public final class c implements ExecutorService { + public static final AtomicInteger j = new AtomicInteger(); + public volatile int k = -1; + public final ExecutorService l; + public final boolean m; + + /* compiled from: MediaEngineExecutorService.kt */ + public static final class a implements Runnable { + public final /* synthetic */ c j; + + public a(c cVar) { + this.j = cVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.k = Process.myTid(); + Thread currentThread = Thread.currentThread(); + m.checkNotNullExpressionValue(currentThread, "Thread.currentThread()"); + currentThread.setName("MediaEngineExecutor-" + c.j.getAndIncrement()); + } + } + + public c(ExecutorService executorService, boolean z2) { + m.checkNotNullParameter(executorService, "es"); + this.l = executorService; + this.m = z2; + executorService.submit(new a(this)); + } + + public final void a() { + if (Process.myTid() != this.k) { + IllegalStateException illegalStateException = new IllegalStateException("oops! not called on the MediaEngineExecutor"); + d.b1("MediaEngineExecutor", "oops! not called on the MediaEngineExecutor", illegalStateException); + if (this.m) { + new Handler(Looper.getMainLooper()).post(new d(illegalStateException)); + } + } + } + + @Override // java.util.concurrent.ExecutorService + public boolean awaitTermination(long j2, TimeUnit timeUnit) { + return this.l.awaitTermination(j2, timeUnit); + } + + @Override // java.util.concurrent.Executor + public void execute(Runnable runnable) { + this.l.execute(runnable); + } + + @Override // java.util.concurrent.ExecutorService + public List> invokeAll(Collection> collection) { + return this.l.invokeAll(collection); + } + + @Override // java.util.concurrent.ExecutorService + public List> invokeAll(Collection> collection, long j2, TimeUnit timeUnit) { + return this.l.invokeAll(collection, j2, timeUnit); + } + + @Override // java.util.concurrent.ExecutorService + public T invokeAny(Collection> collection) { + return (T) this.l.invokeAny(collection); + } + + @Override // java.util.concurrent.ExecutorService + public T invokeAny(Collection> collection, long j2, TimeUnit timeUnit) { + return (T) this.l.invokeAny(collection, j2, timeUnit); + } + + @Override // java.util.concurrent.ExecutorService + public boolean isShutdown() { + return this.l.isShutdown(); + } + + @Override // java.util.concurrent.ExecutorService + public boolean isTerminated() { + return this.l.isTerminated(); + } + + @Override // java.util.concurrent.ExecutorService + public void shutdown() { + this.l.shutdown(); + } + + @Override // java.util.concurrent.ExecutorService + public List shutdownNow() { + return this.l.shutdownNow(); + } + + @Override // java.util.concurrent.ExecutorService + public Future submit(Runnable runnable) { + return this.l.submit(runnable); + } + + @Override // java.util.concurrent.ExecutorService + public Future submit(Runnable runnable, T t) { + return this.l.submit(runnable, t); + } + + @Override // java.util.concurrent.ExecutorService + public Future submit(Callable callable) { + return this.l.submit(callable); + } +} diff --git a/app/src/main/java/b/a/q/c0.java b/app/src/main/java/b/a/q/c0.java new file mode 100644 index 0000000000..fb76c10f16 --- /dev/null +++ b/app/src/main/java/b/a/q/c0.java @@ -0,0 +1,23 @@ +package b.a.q; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcConnection.kt */ +public final class c0 extends o implements Function0 { + public final /* synthetic */ d0 this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c0(d0 d0Var) { + super(0); + this.this$0 = d0Var; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + this.this$0.this$0.q(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/d.java b/app/src/main/java/b/a/q/d.java new file mode 100644 index 0000000000..5f97c09d77 --- /dev/null +++ b/app/src/main/java/b/a/q/d.java @@ -0,0 +1,14 @@ +package b.a.q; +/* compiled from: MediaEngineExecutorService.kt */ +public final class d implements Runnable { + public final /* synthetic */ IllegalStateException j; + + public d(IllegalStateException illegalStateException) { + this.j = illegalStateException; + } + + @Override // java.lang.Runnable + public final void run() { + throw this.j; + } +} diff --git a/app/src/main/java/b/a/q/d0.java b/app/src/main/java/b/a/q/d0.java new file mode 100644 index 0000000000..a468457cc7 --- /dev/null +++ b/app/src/main/java/b/a/q/d0.java @@ -0,0 +1,24 @@ +package b.a.q; + +import com.discord.rtcconnection.RtcConnection; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcConnection.kt */ +public final class d0 extends o implements Function0 { + public final /* synthetic */ RtcConnection this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d0(RtcConnection rtcConnection) { + super(0); + this.this$0 = rtcConnection; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + this.this$0.s(new c0(this)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/e.java b/app/src/main/java/b/a/q/e.java new file mode 100644 index 0000000000..befea6277d --- /dev/null +++ b/app/src/main/java/b/a/q/e.java @@ -0,0 +1,204 @@ +package b.a.q; + +import com.discord.rtcconnection.EncodeQuality; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import d0.t.n0; +import d0.t.u; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.ListIterator; +import java.util.Map; +import java.util.Set; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: MediaSinkWantsLadder.kt */ +public final class e { + public static final b a = new b(null); + + /* renamed from: b reason: collision with root package name */ + public final int f252b; + public final Map c; + public final List d; + public final j0 e; + + /* compiled from: MediaSinkWantsLadder.kt */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f253b; + public final double c; + public final int d; + + public a(int i, int i2, double d, int i3) { + this.a = i; + this.f253b = i2; + this.c = d; + this.d = i3; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.f253b == aVar.f253b && Double.compare(this.c, aVar.c) == 0 && this.d == aVar.d; + } + + public int hashCode() { + return ((a0.a.a.a.a(this.c) + (((this.a * 31) + this.f253b) * 31)) * 31) + this.d; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("CandidateResolution(width="); + R.append(this.a); + R.append(", height="); + R.append(this.f253b); + R.append(", budgetPortion="); + R.append(this.c); + R.append(", pixelCount="); + return b.d.b.a.a.A(R, this.d, ")"); + } + } + + /* compiled from: MediaSinkWantsLadder.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: MediaSinkWantsLadder.kt */ + public static final class c { + public final n a; + + /* renamed from: b reason: collision with root package name */ + public final int f254b; + public final EncodeQuality c; + + public c(n nVar, int i, EncodeQuality encodeQuality) { + m.checkNotNullParameter(nVar, "budget"); + m.checkNotNullParameter(encodeQuality, "wantValue"); + this.a = nVar; + this.f254b = i; + this.c = encodeQuality; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof c)) { + return false; + } + c cVar = (c) obj; + return m.areEqual(this.a, cVar.a) && this.f254b == cVar.f254b && m.areEqual(this.c, cVar.c); + } + + public int hashCode() { + n nVar = this.a; + int i = 0; + int hashCode = (((nVar != null ? nVar.hashCode() : 0) * 31) + this.f254b) * 31; + EncodeQuality encodeQuality = this.c; + if (encodeQuality != null) { + i = encodeQuality.hashCode(); + } + return hashCode + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("OrderedLadder(budget="); + R.append(this.a); + R.append(", pixelCount="); + R.append(this.f254b); + R.append(", wantValue="); + R.append(this.c); + R.append(")"); + return R.toString(); + } + } + + public e(j0 j0Var, int i) { + n nVar; + Object obj; + int i2; + EncodeQuality encodeQuality; + boolean z2; + j0 j0Var2 = (i & 1) != 0 ? f.a : null; + m.checkNotNullParameter(j0Var2, "options"); + this.e = j0Var2; + b bVar = j0Var2.a; + int i3 = bVar.a * bVar.f251b; + this.f252b = i3; + Set of = n0.setOf((Object[]) new Double[]{Double.valueOf((double) ShadowDrawableWrapper.COS_45), Double.valueOf(4.0d), Double.valueOf(8.0d), Double.valueOf(10.0d)}); + ArrayList arrayList = new ArrayList(); + for (int i4 = 1; i4 < 4096; i4++) { + double d = (double) i4; + double d2 = (d * 16.0d) / 9.0d; + if (of.contains(Double.valueOf(d2 % 16.0d)) && of.contains(Double.valueOf(d % 16.0d))) { + double d3 = d * d2; + arrayList.add(new a((int) d2, i4, d3 / ((double) i3), (int) d3)); + } + } + LinkedHashMap linkedHashMap = new LinkedHashMap(); + EncodeQuality encodeQuality2 = EncodeQuality.Hundred; + int i5 = 1; + int i6 = 0; + while (i5 <= 25) { + ListIterator listIterator = arrayList.listIterator(arrayList.size()); + while (true) { + if (!listIterator.hasPrevious()) { + obj = null; + break; + } + obj = listIterator.previous(); + if (((a) obj).d * i5 <= i3) { + z2 = true; + continue; + } else { + z2 = false; + continue; + } + if (z2) { + break; + } + } + a aVar = (a) obj; + aVar = aVar == null ? (a) u.first((List) arrayList) : aVar; + if (i6 != aVar.a) { + i2 = i3; + linkedHashMap.put(encodeQuality2, new n(aVar.a, aVar.f253b, aVar.c, encodeQuality2.compareTo(EncodeQuality.Twenty) <= 0 ? 12 : 20, 30)); + EncodeQuality[] values = EncodeQuality.values(); + int i7 = 10; + while (true) { + if (i7 < 0) { + encodeQuality = null; + break; + } + encodeQuality = values[i7]; + if (encodeQuality.getValue() < encodeQuality2.getValue()) { + break; + } + i7--; + } + encodeQuality2 = encodeQuality == null ? EncodeQuality.Zero : encodeQuality; + i6 = aVar.a; + } else { + i2 = i3; + } + i5++; + i3 = i2; + } + this.c = linkedHashMap; + EncodeQuality[] values2 = EncodeQuality.values(); + ArrayList arrayList2 = new ArrayList(11); + for (int i8 = 0; i8 < 11; i8++) { + EncodeQuality encodeQuality3 = values2[i8]; + arrayList2.add((encodeQuality3 == EncodeQuality.Zero || (nVar = (n) linkedHashMap.get(encodeQuality3)) == null) ? null : new c(nVar, nVar.f269b * nVar.a, encodeQuality3)); + } + this.d = u.filterNotNull(arrayList2); + } +} diff --git a/app/src/main/java/b/a/q/e0.java b/app/src/main/java/b/a/q/e0.java new file mode 100644 index 0000000000..d36f180258 --- /dev/null +++ b/app/src/main/java/b/a/q/e0.java @@ -0,0 +1,32 @@ +package b.a.q; + +import b.d.b.a.a; +import com.discord.rtcconnection.RtcConnection; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: RtcConnection.kt */ +public final class e0 extends o implements Function1 { + public final /* synthetic */ RtcConnection this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e0(RtcConnection rtcConnection) { + super(1); + this.this$0 = rtcConnection; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Exception exc) { + Exception exc2 = exc; + m.checkNotNullParameter(exc2, "it"); + RtcConnection rtcConnection = this.this$0; + StringBuilder R = a.R("Error occurred while connecting to RTC server: "); + R.append(exc2.getMessage()); + R.append('.'); + RtcConnection.j(rtcConnection, true, R.toString(), null, false, 12); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/f.java b/app/src/main/java/b/a/q/f.java new file mode 100644 index 0000000000..ede0e768ab --- /dev/null +++ b/app/src/main/java/b/a/q/f.java @@ -0,0 +1,5 @@ +package b.a.q; +/* compiled from: MediaSinkWantsLadder.kt */ +public final class f { + public static final j0 a = new j0(new b(1280, 720, 30, 921600), new b(1280, 720, 30, 921600), new a(150000, 2500000, 600000), 150000, new a(500000, 4000000, 600000)); +} diff --git a/app/src/main/java/b/a/q/f0.java b/app/src/main/java/b/a/q/f0.java new file mode 100644 index 0000000000..0bd6387944 --- /dev/null +++ b/app/src/main/java/b/a/q/f0.java @@ -0,0 +1,17 @@ +package b.a.q; + +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcConnection.kt */ +public final class f0 implements Runnable { + public final /* synthetic */ Function0 j; + + public f0(Function0 function0) { + this.j = function0; + } + + @Override // java.lang.Runnable + public final /* synthetic */ void run() { + m.checkNotNullExpressionValue(this.j.mo1invoke(), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/q/g.java b/app/src/main/java/b/a/q/g.java new file mode 100644 index 0000000000..9a245b2d39 --- /dev/null +++ b/app/src/main/java/b/a/q/g.java @@ -0,0 +1,29 @@ +package b.a.q; + +import com.discord.rtcconnection.MediaSinkWantsManager; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaSinkWantsManager.kt */ +public final class g extends o implements Function0 { + public final /* synthetic */ MediaSinkWantsManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(MediaSinkWantsManager mediaSinkWantsManager) { + super(0); + this.this$0 = mediaSinkWantsManager; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + MediaSinkWantsManager mediaSinkWantsManager = this.this$0; + Objects.requireNonNull(mediaSinkWantsManager); + mediaSinkWantsManager.b(new i(mediaSinkWantsManager, null)); + this.this$0.a.clear(); + this.this$0.f2728b.clear(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/g0.java b/app/src/main/java/b/a/q/g0.java new file mode 100644 index 0000000000..633af39fda --- /dev/null +++ b/app/src/main/java/b/a/q/g0.java @@ -0,0 +1,18 @@ +package b.a.q; + +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +import rx.functions.Action1; +/* compiled from: RtcConnection.kt */ +public final class g0 implements Action1 { + public final /* synthetic */ Function1 j; + + public g0(Function1 function1) { + this.j = function1; + } + + @Override // rx.functions.Action1 + public final /* synthetic */ void call(Object obj) { + m.checkNotNullExpressionValue(this.j.invoke(obj), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/q/h.java b/app/src/main/java/b/a/q/h.java new file mode 100644 index 0000000000..7fbb41e2ec --- /dev/null +++ b/app/src/main/java/b/a/q/h.java @@ -0,0 +1,24 @@ +package b.a.q; + +import com.discord.rtcconnection.MediaSinkWantsManager; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaSinkWantsManager.kt */ +public final class h extends o implements Function0 { + public final /* synthetic */ MediaSinkWantsManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(MediaSinkWantsManager mediaSinkWantsManager) { + super(0); + this.this$0 = mediaSinkWantsManager; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + MediaSinkWantsManager.e(this.this$0, null, 1); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/h0.java b/app/src/main/java/b/a/q/h0.java new file mode 100644 index 0000000000..6c78c42f95 --- /dev/null +++ b/app/src/main/java/b/a/q/h0.java @@ -0,0 +1,407 @@ +package b.a.q; + +import b.a.q.e; +import b.a.q.n0.a; +import b.a.q.o0.d; +import b.a.q.o0.e; +import co.discord.media_engine.MediaType; +import co.discord.media_engine.StreamParameters; +import com.discord.rtcconnection.EncodeQuality; +import com.discord.rtcconnection.MediaSinkWantsManager; +import com.discord.rtcconnection.RtcConnection; +import com.discord.rtcconnection.VideoMetadata; +import com.discord.rtcconnection.mediaengine.MediaEngine; +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import com.discord.rtcconnection.socket.io.Payloads; +import com.discord.utilities.logging.Logger; +import d0.t.n; +import d0.t.o; +import d0.t.r; +import d0.t.u; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.ListIterator; +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import kotlin.NoWhenBranchMatchedException; +import org.webrtc.MediaStreamTrack; +/* compiled from: RtcConnection.kt */ +public final class h0 implements a.d { + public final /* synthetic */ RtcConnection a; + + public h0(RtcConnection rtcConnection) { + this.a = rtcConnection; + } + + @Override // b.a.q.n0.a.d + public void a(String str, String str2) { + m.checkNotNullParameter(str, "audioCodec"); + m.checkNotNullParameter(str2, "videoCodec"); + MediaEngineConnection mediaEngineConnection = this.a.f2735x; + if (mediaEngineConnection != null) { + mediaEngineConnection.r(str, str2); + } + } + + @Override // b.a.q.n0.a.d + public void b(boolean z2, Integer num, String str) { + RtcConnection rtcConnection = this.a; + Objects.requireNonNull(rtcConnection); + rtcConnection.r("Disconnected from RTC server. wasFatal: " + z2 + " -- code: " + num + " -- reason: " + str); + MediaEngineConnection mediaEngineConnection = rtcConnection.f2735x; + if (mediaEngineConnection != null) { + mediaEngineConnection.destroy(); + } + MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2735x; + if (mediaEngineConnection2 != null) { + mediaEngineConnection2.o(rtcConnection.N); + } + Long l = rtcConnection.G; + long currentTimeMillis = l != null ? rtcConnection.W.currentTimeMillis() - l.longValue() : 0; + boolean z3 = true; + boolean z4 = currentTimeMillis > 30000; + if ((num != null && num.intValue() == 1000) || z4) { + z3 = false; + } + if (!(rtcConnection.f2734s.a instanceof RtcConnection.State.d)) { + rtcConnection.n(z3, str); + d dVar = rtcConnection.o; + if (dVar != null) { + dVar.a(); + } + rtcConnection.o = null; + rtcConnection.p = false; + } + rtcConnection.A = 0; + rtcConnection.D = null; + MediaSinkWantsManager mediaSinkWantsManager = rtcConnection.H; + if (mediaSinkWantsManager != null) { + mediaSinkWantsManager.b(new g(mediaSinkWantsManager)); + } + rtcConnection.u(new RtcConnection.State.d(z3)); + if (z3) { + long fail = rtcConnection.q.fail(new d0(rtcConnection)); + Logger.w$default(rtcConnection.V, rtcConnection.l, "Disconnect was not clean! Reason: " + str + ", code: " + num + ". Reconnecting in " + (fail / ((long) 1000)) + " seconds.", null, 4, null); + } + } + + @Override // b.a.q.n0.a.d + public void c(String str, List list) { + m.checkNotNullParameter(str, "mode"); + m.checkNotNullParameter(list, "secretKey"); + MediaEngineConnection mediaEngineConnection = this.a.f2735x; + if (mediaEngineConnection != null) { + mediaEngineConnection.t(str, u.toIntArray(list)); + } + } + + @Override // b.a.q.n0.a.d + public void d(String str) { + m.checkNotNullParameter(str, "mediaSessionId"); + RtcConnection rtcConnection = this.a; + rtcConnection.K = str; + for (RtcConnection.c cVar : rtcConnection.n) { + cVar.onMediaSessionIdReceived(); + rtcConnection.p(RtcConnection.AnalyticsEvent.MEDIA_SESSION_JOINED, new LinkedHashMap()); + } + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:50:0x00a5 */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX DEBUG: Type inference failed for r2v2. Raw type applied. Possible types: java.util.Iterator, java.util.Iterator */ + /* JADX DEBUG: Type inference failed for r2v6. Raw type applied. Possible types: java.util.Iterator, java.util.Iterator */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.a.q.n0.a.d + public void e(long j, int i, int i2, List list) { + VideoMetadata videoMetadata; + Object obj; + boolean z2; + ?? r3; + RtcConnection rtcConnection = this.a; + e eVar = rtcConnection.B; + long j2 = (long) i2; + synchronized (eVar) { + if (j2 != 0) { + eVar.n.put(Long.valueOf(j2), Long.valueOf(eVar.q.currentTimeMillis())); + Logger.i$default(eVar.p, "VideoQuality: handleVideoStreamUpdate(userId: " + j + ", videoSsrc: " + j2 + ')', null, 2, null); + } + } + if (j != rtcConnection.T) { + boolean z3 = false; + if (rtcConnection.H != null) { + if (list != null) { + r3 = new ArrayList(o.collectionSizeOrDefault(list, 10)); + for (Payloads.Stream stream : list) { + r3.add(Payloads.Stream.copy$default(stream, MediaStreamTrack.VIDEO_TRACK_KIND, null, null, null, null, null, null, Boolean.valueOf(i2 > 0), null, 382, null)); + } + } else { + r3 = n.emptyList(); + } + boolean isEmpty = r3.isEmpty(); + List list2 = r3; + if (isEmpty) { + Integer valueOf = Integer.valueOf(i2); + Integer valueOf2 = Integer.valueOf(i2 + 1); + if (i2 > 0) { + z3 = true; + } + list2 = d0.t.m.listOf(new Payloads.Stream(MediaStreamTrack.VIDEO_TRACK_KIND, "100", null, 100, valueOf, valueOf2, null, Boolean.valueOf(z3), null)); + } + rtcConnection.H.c(j, Long.valueOf((long) i)); + MediaSinkWantsManager mediaSinkWantsManager = rtcConnection.H; + Objects.requireNonNull(mediaSinkWantsManager); + m.checkNotNullParameter(list2, "ssrcs"); + mediaSinkWantsManager.b(new l(mediaSinkWantsManager, list2, j)); + return; + } + if (list != null) { + Iterator it = list.iterator(); + while (true) { + if (!it.hasNext()) { + obj = null; + break; + } + obj = it.next(); + Payloads.Stream stream2 = (Payloads.Stream) obj; + Integer ssrc = stream2.getSsrc(); + if (ssrc == null || ssrc.intValue() != i2 || stream2.getMaxResolution() == null) { + z2 = false; + continue; + } else { + z2 = true; + continue; + } + if (z2) { + break; + } + } + Payloads.Stream stream3 = (Payloads.Stream) obj; + if (stream3 != null) { + Payloads.Stream.MaxResolution maxResolution = stream3.getMaxResolution(); + m.checkNotNull(maxResolution); + videoMetadata = new VideoMetadata(j, maxResolution.getWidth(), stream3.getMaxResolution().getHeight(), stream3.getMaxFrameRate(), stream3.getMaxResolution().getType()); + rtcConnection.d(j, (long) i, j2, videoMetadata); + } + } + videoMetadata = null; + rtcConnection.d(j, (long) i, j2, videoMetadata); + } + } + + @Override // b.a.q.n0.a.d + public void f(Map map) { + boolean z2; + Integer num; + m.checkNotNullParameter(map, "wants"); + RtcConnection rtcConnection = this.a; + if (rtcConnection.H != null) { + long j = rtcConnection.L; + int intValue = (j == 0 || (num = map.get(String.valueOf(j))) == null) ? 0 : num.intValue(); + Integer num2 = map.get("any"); + int intValue2 = num2 != null ? num2.intValue() : 0; + if (intValue <= 0) { + intValue = intValue2 > 0 ? intValue2 : 100; + } + e.c cVar = null; + rtcConnection.V.i(rtcConnection.l, "remote MediaSinkWants: " + map + ", decided on encode quality " + intValue, null); + EncodeQuality[] values = EncodeQuality.values(); + for (int i = 10; i >= 0; i--) { + EncodeQuality encodeQuality = values[i]; + if (encodeQuality.getValue() <= intValue) { + e eVar = rtcConnection.H.j; + j0 j0Var = eVar.e; + m.checkNotNullParameter(encodeQuality, "wantValue"); + List list = eVar.d; + ListIterator listIterator = list.listIterator(list.size()); + while (true) { + if (!listIterator.hasPrevious()) { + break; + } + e.c previous = listIterator.previous(); + if (encodeQuality.compareTo(previous.c) >= 0) { + z2 = true; + continue; + } else { + z2 = false; + continue; + } + if (z2) { + cVar = previous; + break; + } + } + e.c cVar2 = cVar; + if (cVar2 == null) { + cVar2 = (e.c) u.first((List) eVar.d); + } + n nVar = cVar2.a; + int max = Math.max((int) (((double) j0Var.c.a) * nVar.c), j0Var.d); + int max2 = Math.max((int) (((double) j0Var.c.f250b) * nVar.c), j0Var.d); + MediaEngineConnection mediaEngineConnection = rtcConnection.f2735x; + if (mediaEngineConnection != null) { + mediaEngineConnection.m(new MediaEngineConnection.b(max, max2, nVar.a, nVar.f269b, nVar.d, nVar.e)); + return; + } + return; + } + } + throw new NoSuchElementException("Array contains no element matching the predicate."); + } + } + + @Override // b.a.q.n0.a.d + public void g(long j) { + RtcConnection rtcConnection = this.a; + rtcConnection.v.add(Long.valueOf(j)); + if (rtcConnection.v.size() > 5) { + r.removeFirst(rtcConnection.v); + } + if (j > ((long) 500)) { + rtcConnection.A++; + } + double d = (double) j; + Objects.requireNonNull(RtcConnection.Quality.Companion); + RtcConnection.Quality quality = Double.isNaN(d) ? RtcConnection.Quality.UNKNOWN : d < ((double) 250) ? RtcConnection.Quality.FINE : d < ((double) 500) ? RtcConnection.Quality.AVERAGE : RtcConnection.Quality.BAD; + for (RtcConnection.c cVar : rtcConnection.n) { + cVar.onQualityUpdate(quality); + } + } + + @Override // b.a.q.n0.a.d + public void h() { + } + + @Override // b.a.q.n0.a.d + public void i() { + RtcConnection rtcConnection = this.a; + rtcConnection.q.cancel(); + rtcConnection.V.recordBreadcrumb("Connected to RTC server.", rtcConnection.l); + a aVar = rtcConnection.w; + if (aVar == null) { + RtcConnection.o(rtcConnection, "onSocketConnect() socket was null.", null, null, 6); + return; + } + List listOf = d0.t.m.listOf(new Payloads.Stream(MediaStreamTrack.VIDEO_TRACK_KIND, "100", null, 100, null, null, null, null, null)); + String str = rtcConnection.S; + long j = rtcConnection.T; + String str2 = rtcConnection.Q; + boolean z2 = rtcConnection.R; + m.checkNotNullParameter(str, "serverId"); + m.checkNotNullParameter(str2, "sessionId"); + m.checkNotNullParameter(listOf, "streams"); + aVar.H.a(); + aVar.t = str; + aVar.u = str2; + aVar.B = a.c.IDENTIFYING; + aVar.n(0, new Payloads.Identify(str, j, str2, aVar.E, z2, listOf)); + rtcConnection.u(RtcConnection.State.a.a); + } + + @Override // b.a.q.n0.a.d + public void j(long j) { + Map c; + RtcConnection rtcConnection = this.a; + if ((rtcConnection.X instanceof RtcConnection.d.a) && (c = rtcConnection.B.c(String.valueOf(j))) != null) { + rtcConnection.l(j, c); + } + MediaSinkWantsManager mediaSinkWantsManager = rtcConnection.H; + if (mediaSinkWantsManager != null) { + mediaSinkWantsManager.c(j, null); + } + MediaSinkWantsManager mediaSinkWantsManager2 = rtcConnection.H; + if (mediaSinkWantsManager2 != null) { + List emptyList = n.emptyList(); + m.checkNotNullParameter(emptyList, "ssrcs"); + mediaSinkWantsManager2.b(new l(mediaSinkWantsManager2, emptyList, j)); + } + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.a.q.n0.a.d + public void k(int i, int i2, String str, List list) { + MediaEngineConnection.Type type; + m.checkNotNullParameter(str, "ip"); + m.checkNotNullParameter(list, "streams"); + RtcConnection rtcConnection = this.a; + Objects.requireNonNull(rtcConnection); + rtcConnection.r("Discovered dedicated UDP server on port " + i); + rtcConnection.u(RtcConnection.State.g.a); + ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(list, 10)); + for (Iterator it = list.iterator(); it.hasNext(); it = it) { + Payloads.Stream stream = (Payloads.Stream) it.next(); + MediaType mediaType = MediaStreamTrack.VIDEO_TRACK_KIND.equals(stream.getType()) ? MediaType.Video : MediaType.Audio; + String rid = stream.getRid(); + if (rid == null) { + rid = ""; + } + Integer ssrc = stream.getSsrc(); + int intValue = ssrc != null ? ssrc.intValue() : 0; + Integer rtxSsrc = stream.getRtxSsrc(); + int intValue2 = rtxSsrc != null ? rtxSsrc.intValue() : 0; + Boolean active = stream.getActive(); + boolean booleanValue = active != null ? active.booleanValue() : false; + Integer maxBitrate = stream.getMaxBitrate(); + int intValue3 = maxBitrate != null ? maxBitrate.intValue() : 0; + Integer quality = stream.getQuality(); + arrayList.add(new StreamParameters(mediaType, rid, intValue, intValue2, booleanValue, intValue3, quality != null ? quality.intValue() : 100, 0)); + } + boolean isEmpty = arrayList.isEmpty(); + ArrayList arrayList2 = arrayList; + if (isEmpty) { + arrayList2 = d0.t.m.listOf(new StreamParameters(MediaType.Video, "100", i2 + 1, i2 + 2, false, 0, 100, 0)); + } + MediaEngine mediaEngine = rtcConnection.U; + long j = rtcConnection.T; + MediaEngine.a aVar = new MediaEngine.a(i2, str, i, arrayList2); + RtcConnection.d dVar = rtcConnection.X; + if (m.areEqual(dVar, RtcConnection.d.a.a)) { + type = MediaEngineConnection.Type.DEFAULT; + } else if (dVar instanceof RtcConnection.d.b) { + type = MediaEngineConnection.Type.STREAM; + } else { + throw new NoWhenBranchMatchedException(); + } + MediaEngineConnection g = mediaEngine.g(j, aVar, type, new e0(rtcConnection)); + if (g == null) { + RtcConnection.o(rtcConnection, "onSocketHello(): connect() return null.", null, null, 6); + return; + } + g.l(rtcConnection.N); + rtcConnection.f2735x = g; + } + + @Override // b.a.q.n0.a.d + public void onConnecting() { + RtcConnection rtcConnection = this.a; + rtcConnection.q.cancel(); + StringBuilder sb = new StringBuilder(); + sb.append("Connecting to RTC server "); + a aVar = rtcConnection.w; + sb.append(aVar != null ? aVar.D : null); + rtcConnection.r(sb.toString()); + rtcConnection.u(RtcConnection.State.c.a); + } + + @Override // b.a.q.n0.a.d + public void onSpeaking(long j, int i, boolean z2) { + RtcConnection rtcConnection = this.a; + if (j != rtcConnection.T) { + MediaEngineConnection mediaEngineConnection = rtcConnection.f2735x; + if (mediaEngineConnection != null) { + mediaEngineConnection.s(j, i, null, rtcConnection.g(j), rtcConnection.h(j)); + } + MediaSinkWantsManager mediaSinkWantsManager = rtcConnection.H; + if (mediaSinkWantsManager != null) { + mediaSinkWantsManager.c(j, Long.valueOf((long) i)); + } + for (RtcConnection.c cVar : rtcConnection.n) { + cVar.onUserCreated(rtcConnection, j); + } + } + } +} diff --git a/app/src/main/java/b/a/q/i.java b/app/src/main/java/b/a/q/i.java new file mode 100644 index 0000000000..7b7139e63b --- /dev/null +++ b/app/src/main/java/b/a/q/i.java @@ -0,0 +1,48 @@ +package b.a.q; + +import com.discord.rtcconnection.MediaSinkWantsManager; +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.Set; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaSinkWantsManager.kt */ +public final class i extends o implements Function0 { + public final /* synthetic */ MediaEngineConnection $connection; + public final /* synthetic */ MediaSinkWantsManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(MediaSinkWantsManager mediaSinkWantsManager, MediaEngineConnection mediaEngineConnection) { + super(0); + this.this$0 = mediaSinkWantsManager; + this.$connection = mediaEngineConnection; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + MediaSinkWantsManager mediaSinkWantsManager = this.this$0; + MediaEngineConnection mediaEngineConnection = mediaSinkWantsManager.d; + if (mediaEngineConnection != null) { + mediaEngineConnection.o(mediaSinkWantsManager); + } + MediaSinkWantsManager mediaSinkWantsManager2 = this.this$0; + MediaEngineConnection mediaEngineConnection2 = this.$connection; + mediaSinkWantsManager2.d = mediaEngineConnection2; + if (mediaEngineConnection2 != null) { + mediaEngineConnection2.l(mediaSinkWantsManager2); + } + if (this.$connection != null) { + MediaSinkWantsManager mediaSinkWantsManager3 = this.this$0; + Set keySet = mediaSinkWantsManager3.f2728b.keySet(); + ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(keySet, 10)); + for (Number number : keySet) { + arrayList.add(String.valueOf(number.longValue())); + } + mediaSinkWantsManager3.d(arrayList); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/i0.java b/app/src/main/java/b/a/q/i0.java new file mode 100644 index 0000000000..d2d330ad7b --- /dev/null +++ b/app/src/main/java/b/a/q/i0.java @@ -0,0 +1,140 @@ +package b.a.q; + +import android.app.Application; +import android.os.Handler; +import android.os.Looper; +import android.os.PowerManager; +import androidx.annotation.AnyThread; +import androidx.annotation.RequiresApi; +import b.c.a.a0.d; +import com.discord.rtcconnection.enums.ThermalStatus; +import com.discord.utilities.debug.DebugPrintBuilder; +import com.discord.utilities.debug.DebugPrintable; +import com.discord.utilities.lifecycle.ApplicationProvider; +import com.discord.utilities.logging.LoggingProvider; +import d0.g; +import d0.i; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Lazy; +import kotlin.jvm.functions.Function0; +/* compiled from: ThermalDetector.kt */ +@AnyThread +@RequiresApi(29) +public final class i0 implements PowerManager.OnThermalStatusChangedListener, Runnable, DebugPrintable { + public static final Lazy j = g.lazy(i.NONE, a.j); + public static boolean k; + public static boolean l; + public static boolean m; + public static final i0 n = new i0(); + + /* compiled from: ThermalDetector.kt */ + public static final class a extends o implements Function0 { + public static final a j = new a(); + + public a() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Handler mo1invoke() { + return new Handler(Looper.getMainLooper()); + } + } + + public final ThermalStatus a() { + ThermalStatus.a aVar = ThermalStatus.Companion; + Application application = ApplicationProvider.INSTANCE.get(); + Objects.requireNonNull(aVar); + m.checkNotNullParameter(application, "context"); + Object systemService = application.getSystemService("power"); + Objects.requireNonNull(systemService, "null cannot be cast to non-null type android.os.PowerManager"); + return aVar.a(((PowerManager) systemService).getCurrentThermalStatus()); + } + + public final void b(ThermalStatus thermalStatus) { + LoggingProvider.INSTANCE.get().recordBreadcrumb("thermalStatus = " + thermalStatus, "thermal"); + switch (thermalStatus.ordinal()) { + case 0: + if (l) { + d.c1("ThermalDetector", "totally cool: no longer in thermal trouble"); + l = false; + if (m) { + ((Handler) j.getValue()).removeCallbacks(this); + m = false; + return; + } + return; + } + d.d1("ThermalDetector", "totally cool: thermal status is nominal"); + return; + case 1: + case 2: + if (l) { + d.c1("ThermalDetector", "cooling down: thermal status = " + thermalStatus); + c(); + return; + } + d.d1("ThermalDetector", "pretty warm: ignoring low priority thermal status = " + thermalStatus); + return; + case 3: + case 4: + case 5: + case 6: + if (!l) { + d.e1("ThermalDetector", "we're starting to be in thermal trouble"); + l = true; + } + String str = "very toasty: thermal status = " + thermalStatus; + if (thermalStatus.compareTo(ThermalStatus.Emergency) < 0) { + d.e1("ThermalDetector", str); + } else { + d.b1("ThermalDetector", str, new RuntimeException(str)); + } + c(); + return; + default: + return; + } + } + + public final void c() { + if (!m) { + ((Handler) j.getValue()).postDelayed(this, 1000); + m = true; + } + } + + @Override // com.discord.utilities.debug.DebugPrintable + @AnyThread + public void debugPrint(DebugPrintBuilder debugPrintBuilder) { + m.checkNotNullParameter(debugPrintBuilder, "dp"); + debugPrintBuilder.appendKeyValue("registered", Boolean.valueOf(k)); + debugPrintBuilder.appendKeyValue("inThermalTrouble", Boolean.valueOf(l)); + debugPrintBuilder.appendKeyValue("updateScheduled", Boolean.valueOf(m)); + debugPrintBuilder.appendKeyValue("currentThermalStatus", a()); + } + + @Override // android.os.PowerManager.OnThermalStatusChangedListener + public synchronized void onThermalStatusChanged(int i) { + ThermalStatus a2 = ThermalStatus.Companion.a(i); + d.a1("ThermalDetector", "system update: onThermalStatusChanged( " + a2 + " )"); + b(a2); + } + + @Override // java.lang.Runnable + public synchronized void run() { + m = false; + ThermalStatus a2 = a(); + d.a1("ThermalDetector", "scheduled update: current thermal status = " + a2); + b(a2); + } + + @Override // java.lang.Object + public synchronized String toString() { + return "ThermalDetector(registered=" + k + ", inThermalTrouble=" + l + ", updateScheduled=" + m + ')'; + } +} diff --git a/app/src/main/java/b/a/q/j.java b/app/src/main/java/b/a/q/j.java new file mode 100644 index 0000000000..0c51674244 --- /dev/null +++ b/app/src/main/java/b/a/q/j.java @@ -0,0 +1,64 @@ +package b.a.q; + +import b.d.b.a.a; +import com.discord.rtcconnection.MediaSinkWantsManager; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.Iterator; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaSinkWantsManager.kt */ +public final class j extends o implements Function0 { + public final /* synthetic */ Long $userId; + public final /* synthetic */ MediaSinkWantsManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j(MediaSinkWantsManager mediaSinkWantsManager, Long l) { + super(0); + this.this$0 = mediaSinkWantsManager; + this.$userId = l; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + ArrayList arrayList = new ArrayList(); + MediaSinkWantsManager mediaSinkWantsManager = this.this$0; + Long l = mediaSinkWantsManager.e; + if (l != null) { + if (l.longValue() != mediaSinkWantsManager.h) { + arrayList.add(l); + } + } + Long l2 = this.$userId; + if (l2 == null) { + this.this$0.e = null; + } else if (this.this$0.c.contains(l2)) { + MediaSinkWantsManager mediaSinkWantsManager2 = this.this$0; + Long l3 = this.$userId; + mediaSinkWantsManager2.e = l3; + arrayList.add(l3); + } else { + long j = this.this$0.h; + Long l4 = this.$userId; + if (l4 != null && j == l4.longValue()) { + this.this$0.e = this.$userId; + } else { + MediaSinkWantsManager mediaSinkWantsManager3 = this.this$0; + StringBuilder R = a.R("Participant not found: "); + R.append(this.$userId); + mediaSinkWantsManager3.a(R.toString()); + return Unit.a; + } + } + MediaSinkWantsManager mediaSinkWantsManager4 = this.this$0; + ArrayList arrayList2 = new ArrayList(d0.t.o.collectionSizeOrDefault(arrayList, 10)); + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + arrayList2.add(String.valueOf(((Number) it.next()).longValue())); + } + mediaSinkWantsManager4.d(arrayList2); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/j0.java b/app/src/main/java/b/a/q/j0.java new file mode 100644 index 0000000000..57cfb6ce6d --- /dev/null +++ b/app/src/main/java/b/a/q/j0.java @@ -0,0 +1,67 @@ +package b.a.q; + +import b.d.b.a.a; +import d0.z.d.m; +/* compiled from: MediaSinkWantsLadder.kt */ +public final class j0 { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final b f255b; + public final a c; + public final int d; + public final a e; + + public j0(b bVar, b bVar2, a aVar, int i, a aVar2) { + m.checkNotNullParameter(bVar, "videoBudget"); + m.checkNotNullParameter(bVar2, "videoCapture"); + m.checkNotNullParameter(aVar, "videoBitrate"); + m.checkNotNullParameter(aVar2, "desktopBitrate"); + this.a = bVar; + this.f255b = bVar2; + this.c = aVar; + this.d = i; + this.e = aVar2; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof j0)) { + return false; + } + j0 j0Var = (j0) obj; + return m.areEqual(this.a, j0Var.a) && m.areEqual(this.f255b, j0Var.f255b) && m.areEqual(this.c, j0Var.c) && this.d == j0Var.d && m.areEqual(this.e, j0Var.e); + } + + public int hashCode() { + b bVar = this.a; + int i = 0; + int hashCode = (bVar != null ? bVar.hashCode() : 0) * 31; + b bVar2 = this.f255b; + int hashCode2 = (hashCode + (bVar2 != null ? bVar2.hashCode() : 0)) * 31; + a aVar = this.c; + int hashCode3 = (((hashCode2 + (aVar != null ? aVar.hashCode() : 0)) * 31) + this.d) * 31; + a aVar2 = this.e; + if (aVar2 != null) { + i = aVar2.hashCode(); + } + return hashCode3 + i; + } + + public String toString() { + StringBuilder R = a.R("VideoQualityManagerOptions(videoBudget="); + R.append(this.a); + R.append(", videoCapture="); + R.append(this.f255b); + R.append(", videoBitrate="); + R.append(this.c); + R.append(", videoBitrateFloor="); + R.append(this.d); + R.append(", desktopBitrate="); + R.append(this.e); + R.append(")"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/a/q/k.java b/app/src/main/java/b/a/q/k.java new file mode 100644 index 0000000000..3008d4a41a --- /dev/null +++ b/app/src/main/java/b/a/q/k.java @@ -0,0 +1,28 @@ +package b.a.q; + +import com.discord.rtcconnection.MediaSinkWantsManager; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaSinkWantsManager.kt */ +public final class k extends o implements Function0 { + public final /* synthetic */ boolean $sendVideo; + public final /* synthetic */ MediaSinkWantsManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(MediaSinkWantsManager mediaSinkWantsManager, boolean z2) { + super(0); + this.this$0 = mediaSinkWantsManager; + this.$sendVideo = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + Objects.requireNonNull(this.this$0); + MediaSinkWantsManager.e(this.this$0, null, 1); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/k0/a.java b/app/src/main/java/b/a/q/k0/a.java new file mode 100644 index 0000000000..382d702d38 --- /dev/null +++ b/app/src/main/java/b/a/q/k0/a.java @@ -0,0 +1,121 @@ +package b.a.q.k0; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.media.AudioManager; +import androidx.annotation.MainThread; +import androidx.core.os.EnvironmentCompat; +import b.a.q.l0.a; +import b.c.a.a0.d; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.rtcconnection.enums.AudioManagerBroadcastAction; +import com.discord.rtcconnection.enums.ScoAudioState; +import d0.z.d.m; +import java.util.Objects; +import kotlin.jvm.internal.DefaultConstructorMarker; +import org.webrtc.MediaStreamTrack; +import org.webrtc.ThreadUtils; +/* compiled from: AudioManagerBroadcastReceiver.kt */ +public final class a extends BroadcastReceiver { + public static final C0032a a = new C0032a(null); + + /* renamed from: b reason: collision with root package name */ + public final Context f256b; + public final h c; + + /* compiled from: AudioManagerBroadcastReceiver.kt */ + /* renamed from: b.a.q.k0.a$a reason: collision with other inner class name */ + public static final class C0032a { + public C0032a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + public a(Context context, h hVar) { + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(hVar, "listener"); + this.f256b = context; + this.c = hVar; + } + + @Override // android.content.BroadcastReceiver + @MainThread + public void onReceive(Context context, Intent intent) { + b.a.q.l0.a aVar; + m.checkNotNullParameter(context, "context"); + ThreadUtils.checkIsOnMainThread(); + if (intent != null) { + Objects.requireNonNull(AudioManagerBroadcastAction.Companion); + m.checkNotNullParameter(intent, "intent"); + String action = intent.getAction(); + AudioManagerBroadcastAction audioManagerBroadcastAction = null; + boolean z2 = false; + if (action != null) { + m.checkNotNullParameter(action, "action"); + AudioManagerBroadcastAction[] values = AudioManagerBroadcastAction.values(); + int i = 0; + while (true) { + if (i >= 5) { + break; + } + AudioManagerBroadcastAction audioManagerBroadcastAction2 = values[i]; + if (m.areEqual(audioManagerBroadcastAction2.getAction(), action)) { + audioManagerBroadcastAction = audioManagerBroadcastAction2; + break; + } + i++; + } + } + if (audioManagerBroadcastAction == null) { + StringBuilder R = b.d.b.a.a.R("unable to parse AudioManagerBroadcastAction for action: "); + R.append(intent.getAction()); + d.e1("AudioManagerBroadcastReceiver", R.toString()); + return; + } + d.d1("AudioManagerBroadcastReceiver", "onReceive: action = " + audioManagerBroadcastAction); + try { + h hVar = this.c; + int ordinal = audioManagerBroadcastAction.ordinal(); + if (ordinal == 0) { + hVar.c(context); + } else if (ordinal == 1) { + m.checkNotNullParameter(intent, "intent"); + if (m.areEqual(intent.getAction(), "android.intent.action.HEADSET_PLUG")) { + if (!(intent.getIntExtra("state", 0) == 1)) { + aVar = a.b.a; + } else { + String stringExtra = intent.getStringExtra(ModelAuditLogEntry.CHANGE_KEY_NAME); + if (stringExtra == null) { + stringExtra = EnvironmentCompat.MEDIA_UNKNOWN; + } + m.checkNotNullExpressionValue(stringExtra, "intent.getStringExtra(\"name\") ?: \"unknown\""); + if (intent.getIntExtra("microphone", 0) == 1) { + z2 = true; + } + aVar = new a.C0033a(stringExtra, z2); + } + hVar.e(context, aVar); + return; + } + throw new IllegalArgumentException("Failed requirement.".toString()); + } else if (ordinal == 2) { + hVar.b(context, ScoAudioState.Companion.b(intent)); + } else if (ordinal == 3) { + m.checkNotNullParameter(context, "$this$isMicrophoneMute"); + m.checkNotNullParameter(context, "$this$getAudioManager"); + Object systemService = context.getSystemService(MediaStreamTrack.AUDIO_TRACK_KIND); + Objects.requireNonNull(systemService, "null cannot be cast to non-null type android.media.AudioManager"); + hVar.a(context, ((AudioManager) systemService).isMicrophoneMute()); + } else if (ordinal == 4) { + m.checkNotNullParameter(context, "$this$isSpeakerphoneOn"); + m.checkNotNullParameter(context, "$this$getAudioManager"); + Object systemService2 = context.getSystemService(MediaStreamTrack.AUDIO_TRACK_KIND); + Objects.requireNonNull(systemService2, "null cannot be cast to non-null type android.media.AudioManager"); + hVar.d(context, ((AudioManager) systemService2).isSpeakerphoneOn()); + } + } catch (Throwable th) { + d.b1("AudioManagerBroadcastReceiver", "error handling " + audioManagerBroadcastAction, th); + } + } + } +} diff --git a/app/src/main/java/b/a/q/k0/b.java b/app/src/main/java/b/a/q/k0/b.java new file mode 100644 index 0000000000..a61a6471cf --- /dev/null +++ b/app/src/main/java/b/a/q/k0/b.java @@ -0,0 +1,87 @@ +package b.a.q.k0; + +import android.content.Context; +import android.os.Process; +import b.c.a.a0.d; +import d0.z.d.m; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: AudioPermissions.kt */ +public final class b { + public static final a a = new a(null); + + /* renamed from: b reason: collision with root package name */ + public final boolean f257b; + public final boolean c; + public final boolean d; + + /* compiled from: AudioPermissions.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + public b(Context context) { + m.checkNotNullParameter(context, "context"); + boolean z2 = true; + boolean z3 = context.checkPermission("android.permission.MODIFY_AUDIO_SETTINGS", Process.myPid(), Process.myUid()) == 0; + boolean z4 = context.checkPermission("android.permission.RECORD_AUDIO", Process.myPid(), Process.myUid()) == 0; + z2 = context.checkPermission("android.permission.BLUETOOTH", Process.myPid(), Process.myUid()) != 0 ? false : z2; + this.f257b = z3; + this.c = z4; + this.d = z2; + if (!z3) { + d.e1("AudioPermissions", "MODIFY_AUDIO_SETTINGS permission is missing"); + } + if (!z4) { + d.e1("AudioPermissions", "RECORD_AUDIO permission is missing"); + } + if (!z2) { + d.e1("AudioPermissions", "BLUETOOTH permission is missing"); + } + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.f257b == bVar.f257b && this.c == bVar.c && this.d == bVar.d; + } + + public int hashCode() { + boolean z2 = this.f257b; + int i = 1; + if (z2) { + z2 = true; + } + int i2 = z2 ? 1 : 0; + int i3 = z2 ? 1 : 0; + int i4 = z2 ? 1 : 0; + int i5 = i2 * 31; + boolean z3 = this.c; + if (z3) { + z3 = true; + } + int i6 = z3 ? 1 : 0; + int i7 = z3 ? 1 : 0; + int i8 = z3 ? 1 : 0; + int i9 = (i5 + i6) * 31; + boolean z4 = this.d; + if (!z4) { + i = z4 ? 1 : 0; + } + return i9 + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("AudioPermissions(hasModifyAudioSettingsPermission="); + R.append(this.f257b); + R.append(", hasRecordAudioPermission="); + R.append(this.c); + R.append(", hasBluetoothPermission="); + return b.d.b.a.a.L(R, this.d, ")"); + } +} diff --git a/app/src/main/java/b/a/q/k0/c.java b/app/src/main/java/b/a/q/k0/c.java new file mode 100644 index 0000000000..423d084314 --- /dev/null +++ b/app/src/main/java/b/a/q/k0/c.java @@ -0,0 +1,117 @@ +package b.a.q.k0; + +import android.bluetooth.BluetoothDevice; +import android.bluetooth.BluetoothHeadset; +import android.bluetooth.BluetoothProfile; +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import androidx.annotation.MainThread; +import b.c.a.a0.d; +import com.discord.rtcconnection.enums.BluetoothBroadcastAction; +import com.discord.rtcconnection.enums.BluetoothHeadsetAudioState; +import com.discord.rtcconnection.enums.BluetoothProfileConnectionState; +import d0.t.n0; +import d0.z.d.m; +import java.util.Objects; +import java.util.Set; +import kotlin.jvm.internal.DefaultConstructorMarker; +import org.webrtc.ThreadUtils; +/* compiled from: BluetoothBroadcastReceiver.kt */ +public final class c extends BroadcastReceiver implements BluetoothProfile.ServiceListener { + public static final Set j = n0.setOf((Object[]) new BluetoothBroadcastAction[]{BluetoothBroadcastAction.HeadsetConnectionStateChanged, BluetoothBroadcastAction.HeadsetAudioStateChanged}); + public static final a k = new a(null); + public boolean l; + public BluetoothHeadset m; + public final Context n; + public final i o; + + /* compiled from: BluetoothBroadcastReceiver.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + public c(Context context, i iVar) { + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(iVar, "listener"); + this.n = context; + this.o = iVar; + } + + @Override // android.content.BroadcastReceiver + @MainThread + public void onReceive(Context context, Intent intent) { + BluetoothBroadcastAction bluetoothBroadcastAction; + m.checkNotNullParameter(context, "context"); + ThreadUtils.checkIsOnMainThread(); + if (intent != null) { + BluetoothBroadcastAction.a aVar = BluetoothBroadcastAction.Companion; + String action = intent.getAction(); + m.checkNotNull(action); + m.checkNotNullExpressionValue(action, "intent.action!!"); + Objects.requireNonNull(aVar); + m.checkNotNullParameter(action, "action"); + BluetoothBroadcastAction[] values = BluetoothBroadcastAction.values(); + int i = 0; + while (true) { + if (i >= 5) { + bluetoothBroadcastAction = null; + break; + } + bluetoothBroadcastAction = values[i]; + if (m.areEqual(bluetoothBroadcastAction.getAction(), action)) { + break; + } + i++; + } + if (bluetoothBroadcastAction == null) { + StringBuilder R = b.d.b.a.a.R("unable to parse BluetoothBroadcastAction for action: "); + R.append(intent.getAction()); + d.e1("BluetoothBroadcastReceiver", R.toString()); + return; + } + d.d1("BluetoothBroadcastReceiver", "onReceive: action = " + bluetoothBroadcastAction); + try { + i iVar = this.o; + int ordinal = bluetoothBroadcastAction.ordinal(); + if (ordinal == 0) { + iVar.d(context, BluetoothProfileConnectionState.Companion.b(intent)); + } else if (ordinal == 1) { + iVar.a(context, BluetoothHeadsetAudioState.Companion.b(intent)); + } else if (ordinal != 4) { + d.e1("BluetoothBroadcastReceiver", "unexpected " + bluetoothBroadcastAction); + } else { + m.checkNotNullParameter(intent, "$this$getBluetoothDeviceExtra"); + iVar.b((BluetoothDevice) intent.getParcelableExtra("android.bluetooth.device.extra.DEVICE")); + } + } catch (Throwable th) { + d.b1("BluetoothBroadcastReceiver", "error handling " + bluetoothBroadcastAction, th); + } + } + } + + @Override // android.bluetooth.BluetoothProfile.ServiceListener + public void onServiceConnected(int i, BluetoothProfile bluetoothProfile) { + ThreadUtils.checkIsOnMainThread(); + if (i == 1 && this.l) { + d.a1("BluetoothBroadcastReceiver", "BluetoothProfile.ServiceListener.onServiceConnected"); + if (!(bluetoothProfile instanceof BluetoothHeadset)) { + bluetoothProfile = null; + } + BluetoothHeadset bluetoothHeadset = (BluetoothHeadset) bluetoothProfile; + this.m = bluetoothHeadset; + this.o.c(bluetoothHeadset); + } + } + + @Override // android.bluetooth.BluetoothProfile.ServiceListener + public void onServiceDisconnected(int i) { + ThreadUtils.checkIsOnMainThread(); + if (i == 1 && this.l) { + d.a1("BluetoothBroadcastReceiver", "BluetoothProfile.ServiceListener.onServiceDisconnected"); + this.m = null; + this.o.c(null); + } + } +} diff --git a/app/src/main/java/b/a/q/k0/d.java b/app/src/main/java/b/a/q/k0/d.java new file mode 100644 index 0000000000..edf01140d0 --- /dev/null +++ b/app/src/main/java/b/a/q/k0/d.java @@ -0,0 +1,62 @@ +package b.a.q.k0; + +import android.annotation.SuppressLint; +import android.bluetooth.BluetoothHeadset; +import d0.g; +import d0.z.d.o; +import java.lang.reflect.Method; +import kotlin.Lazy; +import kotlin.jvm.functions.Function0; +/* compiled from: BluetoothHeadsetPrivateApi.kt */ +@SuppressLint({"DiscouragedPrivateApi"}) +public final class d { + public static final Lazy a = g.lazy(a.j); + + /* renamed from: b reason: collision with root package name */ + public static final Lazy f258b = g.lazy(b.j); + public static final d c = null; + + /* compiled from: BluetoothHeadsetPrivateApi.kt */ + public static final class a extends o implements Function0 { + public static final a j = new a(); + + public a() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public String mo1invoke() { + try { + Object obj = BluetoothHeadset.class.getField("ACTION_ACTIVE_DEVICE_CHANGED").get(null); + if (!(obj instanceof String)) { + obj = null; + } + return (String) obj; + } catch (Throwable unused) { + return null; + } + } + } + + /* compiled from: BluetoothHeadsetPrivateApi.kt */ + public static final class b extends o implements Function0 { + public static final b j = new b(); + + public b() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Method mo1invoke() { + try { + return BluetoothHeadset.class.getDeclaredMethod("getActiveDevice", new Class[0]); + } catch (Throwable unused) { + return null; + } + } + } +} diff --git a/app/src/main/java/b/a/q/k0/e.java b/app/src/main/java/b/a/q/k0/e.java new file mode 100644 index 0000000000..a031d48a45 --- /dev/null +++ b/app/src/main/java/b/a/q/k0/e.java @@ -0,0 +1,24 @@ +package b.a.q.k0; + +import android.media.AudioManager; +import b.c.a.a0.d; +import com.discord.rtcconnection.audio.DiscordAudioManager; +/* compiled from: DiscordAudioManager.kt */ +public final class e implements AudioManager.OnAudioFocusChangeListener { + public final /* synthetic */ DiscordAudioManager j; + + public e(DiscordAudioManager discordAudioManager) { + this.j = discordAudioManager; + } + + @Override // android.media.AudioManager.OnAudioFocusChangeListener + public final void onAudioFocusChange(int i) { + d.a1("DiscordAudioManager", "[AudioFocus] new focus: " + i); + if (i == -3 || i == -2) { + this.j.i(false); + } else if (i == 1) { + this.j.i(true); + this.j.l(); + } + } +} diff --git a/app/src/main/java/b/a/q/k0/f.java b/app/src/main/java/b/a/q/k0/f.java new file mode 100644 index 0000000000..58c7f2c107 --- /dev/null +++ b/app/src/main/java/b/a/q/k0/f.java @@ -0,0 +1,26 @@ +package b.a.q.k0; + +import android.database.ContentObserver; +import android.os.Handler; +import com.discord.rtcconnection.audio.DiscordAudioManager; +import rx.subjects.SerializedSubject; +/* compiled from: DiscordAudioManager.kt */ +public final class f extends ContentObserver { + public final /* synthetic */ DiscordAudioManager a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(DiscordAudioManager discordAudioManager, Handler handler) { + super(handler); + this.a = discordAudioManager; + } + + @Override // android.database.ContentObserver + public void onChange(boolean z2) { + super.onChange(z2); + DiscordAudioManager discordAudioManager = this.a; + int streamVolume = discordAudioManager.e.getStreamVolume(3); + discordAudioManager.w = streamVolume; + SerializedSubject serializedSubject = discordAudioManager.f2744y; + serializedSubject.k.onNext(Integer.valueOf(streamVolume)); + } +} diff --git a/app/src/main/java/b/a/q/k0/g.java b/app/src/main/java/b/a/q/k0/g.java new file mode 100644 index 0000000000..531c947a27 --- /dev/null +++ b/app/src/main/java/b/a/q/k0/g.java @@ -0,0 +1,72 @@ +package b.a.q.k0; + +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: EchoCancellation.kt */ +public final class g { + public static final g a = new g(true, false, false); + + /* renamed from: b reason: collision with root package name */ + public static final g f259b = new g(true, false, false); + public static final a c = new a(null); + public volatile boolean d; + public final boolean e; + public final boolean f; + public final boolean g; + + /* compiled from: EchoCancellation.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + public g(boolean z2, boolean z3, boolean z4) { + this.e = z2; + this.f = z3; + this.g = z4; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof g)) { + return false; + } + g gVar = (g) obj; + return this.e == gVar.e && this.f == gVar.f && this.g == gVar.g; + } + + public int hashCode() { + boolean z2 = this.e; + int i = 1; + if (z2) { + z2 = true; + } + int i2 = z2 ? 1 : 0; + int i3 = z2 ? 1 : 0; + int i4 = z2 ? 1 : 0; + int i5 = i2 * 31; + boolean z3 = this.f; + if (z3) { + z3 = true; + } + int i6 = z3 ? 1 : 0; + int i7 = z3 ? 1 : 0; + int i8 = z3 ? 1 : 0; + int i9 = (i5 + i6) * 31; + boolean z4 = this.g; + if (!z4) { + i = z4 ? 1 : 0; + } + return i9 + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("EchoCancellation(shouldEarlyEnableHwAec="); + R.append(this.e); + R.append(", alwaysEnableAec="); + R.append(this.f); + R.append(", disableSwAecWhenHwIsEnabled="); + return b.d.b.a.a.L(R, this.g, ")"); + } +} diff --git a/app/src/main/java/b/a/q/k0/h.java b/app/src/main/java/b/a/q/k0/h.java new file mode 100644 index 0000000000..a3821f198c --- /dev/null +++ b/app/src/main/java/b/a/q/k0/h.java @@ -0,0 +1,19 @@ +package b.a.q.k0; + +import android.content.Context; +import androidx.annotation.MainThread; +import b.a.q.l0.a; +import com.discord.rtcconnection.enums.ScoAudioState; +/* compiled from: OnAudioManagerBroadcastListener.kt */ +@MainThread +public interface h { + void a(Context context, boolean z2); + + void b(Context context, ScoAudioState.b bVar); + + void c(Context context); + + void d(Context context, boolean z2); + + void e(Context context, a aVar); +} diff --git a/app/src/main/java/b/a/q/k0/i.java b/app/src/main/java/b/a/q/k0/i.java new file mode 100644 index 0000000000..a18293f060 --- /dev/null +++ b/app/src/main/java/b/a/q/k0/i.java @@ -0,0 +1,19 @@ +package b.a.q.k0; + +import android.bluetooth.BluetoothDevice; +import android.bluetooth.BluetoothHeadset; +import android.content.Context; +import androidx.annotation.MainThread; +import com.discord.rtcconnection.enums.BluetoothHeadsetAudioState; +import com.discord.rtcconnection.enums.BluetoothProfileConnectionState; +/* compiled from: OnBluetoothBroadcastListener.kt */ +@MainThread +public interface i { + void a(Context context, BluetoothHeadsetAudioState.b bVar); + + void b(BluetoothDevice bluetoothDevice); + + void c(BluetoothHeadset bluetoothHeadset); + + void d(Context context, BluetoothProfileConnectionState.b bVar); +} diff --git a/app/src/main/java/b/a/q/l.java b/app/src/main/java/b/a/q/l.java new file mode 100644 index 0000000000..c07c77e555 --- /dev/null +++ b/app/src/main/java/b/a/q/l.java @@ -0,0 +1,107 @@ +package b.a.q; + +import com.discord.rtcconnection.EncodeQuality; +import com.discord.rtcconnection.MediaSinkWantsManager; +import com.discord.rtcconnection.VideoMetadata; +import com.discord.rtcconnection.socket.io.Payloads; +import d0.t.n; +import d0.z.d.m; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaSinkWantsManager.kt */ +public final class l extends o implements Function0 { + public final /* synthetic */ List $ssrcs; + public final /* synthetic */ long $userId; + public final /* synthetic */ MediaSinkWantsManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(MediaSinkWantsManager mediaSinkWantsManager, List list, long j) { + super(0); + this.this$0 = mediaSinkWantsManager; + this.$ssrcs = list; + this.$userId = j; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX WARNING: Code restructure failed: missing block: B:12:0x0036, code lost: + if ((r6 != null ? r6.intValue() : 0) > 0) goto L_0x003a; + */ + /* JADX WARNING: Code restructure failed: missing block: B:31:0x0086, code lost: + if (r10 != null) goto L_0x008b; + */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + EncodeQuality encodeQuality; + List list = this.$ssrcs; + ArrayList arrayList = new ArrayList(); + Iterator it = list.iterator(); + while (true) { + boolean z2 = true; + if (!it.hasNext()) { + break; + } + Object next = it.next(); + Payloads.Stream stream = (Payloads.Stream) next; + Boolean active = stream.getActive(); + if (active != null ? active.booleanValue() : false) { + Integer ssrc = stream.getSsrc(); + } + z2 = false; + if (z2) { + arrayList.add(next); + } + } + ArrayList arrayList2 = new ArrayList(d0.t.o.collectionSizeOrDefault(arrayList, 10)); + Iterator it2 = arrayList.iterator(); + while (it2.hasNext()) { + Payloads.Stream stream2 = (Payloads.Stream) it2.next(); + Integer quality = stream2.getQuality(); + VideoMetadata videoMetadata = null; + if (quality != null) { + int intValue = quality.intValue(); + Objects.requireNonNull(EncodeQuality.Companion); + EncodeQuality[] values = EncodeQuality.values(); + int i = 0; + while (true) { + if (i >= 11) { + encodeQuality = null; + break; + } + encodeQuality = values[i]; + if (encodeQuality.getValue() == intValue) { + break; + } + i++; + } + } + encodeQuality = EncodeQuality.Hundred; + Integer ssrc2 = stream2.getSsrc(); + m.checkNotNull(ssrc2); + long intValue2 = (long) ssrc2.intValue(); + MediaSinkWantsManager mediaSinkWantsManager = this.this$0; + long j = this.$userId; + Objects.requireNonNull(mediaSinkWantsManager); + if (stream2.getMaxResolution() != null) { + videoMetadata = new VideoMetadata(j, stream2.getMaxResolution().getWidth(), stream2.getMaxResolution().getHeight(), stream2.getMaxFrameRate(), stream2.getMaxResolution().getType()); + } else { + mediaSinkWantsManager.a("metadataOf: " + stream2 + " has no maxResolution!"); + } + arrayList2.add(new MediaSinkWantsManager.b(encodeQuality, intValue2, videoMetadata)); + } + if (arrayList2.isEmpty()) { + this.this$0.f2728b.remove(Long.valueOf(this.$userId)); + this.this$0.c.remove(Long.valueOf(this.$userId)); + } else { + this.this$0.f2728b.put(Long.valueOf(this.$userId), arrayList2); + this.this$0.c.add(Long.valueOf(this.$userId)); + } + this.this$0.d(arrayList2.isEmpty() ? n.emptyList() : d0.t.m.listOf(String.valueOf(this.$userId))); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/l0/a.java b/app/src/main/java/b/a/q/l0/a.java new file mode 100644 index 0000000000..c3d6f9f51c --- /dev/null +++ b/app/src/main/java/b/a/q/l0/a.java @@ -0,0 +1,72 @@ +package b.a.q.l0; + +import com.discord.models.domain.ModelAuditLogEntry; +import d0.z.d.m; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: WiredHeadsetState.kt */ +public abstract class a { + + /* compiled from: WiredHeadsetState.kt */ + /* renamed from: b.a.q.l0.a$a reason: collision with other inner class name */ + public static final class C0033a extends a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f260b; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0033a(String str, boolean z2) { + super(false, null); + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME); + this.a = str; + this.f260b = z2; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof C0033a)) { + return false; + } + C0033a aVar = (C0033a) obj; + return m.areEqual(this.a, aVar.a) && this.f260b == aVar.f260b; + } + + public int hashCode() { + String str = this.a; + int hashCode = (str != null ? str.hashCode() : 0) * 31; + boolean z2 = this.f260b; + if (z2) { + z2 = true; + } + int i = z2 ? 1 : 0; + int i2 = z2 ? 1 : 0; + int i3 = z2 ? 1 : 0; + return hashCode + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("PluggedIn(name="); + R.append(this.a); + R.append(", hasMic="); + return b.d.b.a.a.L(R, this.f260b, ")"); + } + } + + /* compiled from: WiredHeadsetState.kt */ + public static final class b extends a { + public static final b a = new b(); + + public b() { + super(false, null); + } + + public String toString() { + return "WiredHeadsetState.Unplugged"; + } + } + + public a(boolean z2, DefaultConstructorMarker defaultConstructorMarker) { + } +} diff --git a/app/src/main/java/b/a/q/m.java b/app/src/main/java/b/a/q/m.java new file mode 100644 index 0000000000..45228a6a0f --- /dev/null +++ b/app/src/main/java/b/a/q/m.java @@ -0,0 +1,16 @@ +package b.a.q; + +import kotlin.jvm.functions.Function0; +/* compiled from: MediaSinkWantsManager.kt */ +public final class m implements Runnable { + public final /* synthetic */ Function0 j; + + public m(Function0 function0) { + this.j = function0; + } + + @Override // java.lang.Runnable + public final /* synthetic */ void run() { + d0.z.d.m.checkNotNullExpressionValue(this.j.mo1invoke(), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/q/m0/a.java b/app/src/main/java/b/a/q/m0/a.java new file mode 100644 index 0000000000..536582d1bd --- /dev/null +++ b/app/src/main/java/b/a/q/m0/a.java @@ -0,0 +1,61 @@ +package b.a.q.m0; + +import com.discord.models.domain.ModelAuditLogEntry; +import d0.z.d.m; +/* compiled from: Codec.kt */ +public final class a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f261b; + public final String c; + public final int d; + public final Integer e; + + public a(String str, int i, String str2, int i2, Integer num) { + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME); + m.checkNotNullParameter(str2, "type"); + this.a = str; + this.f261b = i; + this.c = str2; + this.d = i2; + this.e = num; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return m.areEqual(this.a, aVar.a) && this.f261b == aVar.f261b && m.areEqual(this.c, aVar.c) && this.d == aVar.d && m.areEqual(this.e, aVar.e); + } + + public int hashCode() { + String str = this.a; + int i = 0; + int hashCode = (((str != null ? str.hashCode() : 0) * 31) + this.f261b) * 31; + String str2 = this.c; + int hashCode2 = (((hashCode + (str2 != null ? str2.hashCode() : 0)) * 31) + this.d) * 31; + Integer num = this.e; + if (num != null) { + i = num.hashCode(); + } + return hashCode2 + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Codec(name="); + R.append(this.a); + R.append(", priority="); + R.append(this.f261b); + R.append(", type="); + R.append(this.c); + R.append(", payloadType="); + R.append(this.d); + R.append(", rtxPayloadType="); + return b.d.b.a.a.E(R, this.e, ")"); + } +} diff --git a/app/src/main/java/b/a/q/m0/b.java b/app/src/main/java/b/a/q/m0/b.java new file mode 100644 index 0000000000..a9cb658ec6 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/b.java @@ -0,0 +1,291 @@ +package b.a.q.m0; + +import android.content.Context; +import android.content.Intent; +import android.graphics.Point; +import android.graphics.Rect; +import android.media.AudioFormat; +import android.media.AudioPlaybackCaptureConfiguration; +import android.media.AudioRecord; +import android.media.projection.MediaProjection; +import android.os.Build; +import android.os.Handler; +import android.os.Looper; +import android.util.Log; +import androidx.annotation.RequiresApi; +import androidx.recyclerview.widget.RecyclerView; +import co.discord.media_engine.NativeCapturerObserver; +import co.discord.media_engine.SoundshareAudioSource; +import com.discord.rtcconnection.mediaengine.ThumbnailEmitter; +import com.discord.utilities.display.DisplayUtils; +import com.discord.utilities.logging.Logger; +import d0.z.d.m; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicReference; +import kotlin.jvm.internal.DefaultConstructorMarker; +import org.webrtc.CapturerObserver; +import org.webrtc.JniCommon; +import org.webrtc.ScreenCapturerAndroid; +import org.webrtc.SurfaceTextureHelper; +import org.webrtc.TimestampAligner; +import org.webrtc.VideoFrame; +import rx.Observable; +import rx.Subscription; +import rx.functions.Action1; +/* compiled from: ScreenCapturer.kt */ +public final class b extends ScreenCapturerAndroid { + public static final a j = new a(null); + public final RunnableC0034b k = new RunnableC0034b(); + public NativeCapturerObserver l; + public SurfaceTextureHelper m; + public Context n; + public final SoundshareAudioSource o = new SoundshareAudioSource(); + public int p; + public int q; + public Long r; + + /* renamed from: s reason: collision with root package name */ + public final Rect f262s = new Rect(); + public final Rect t = new Rect(); + public final Point u = new Point(); + public int v; + public Subscription w; + + /* renamed from: x reason: collision with root package name */ + public final Logger f263x; + + /* renamed from: y reason: collision with root package name */ + public final ThumbnailEmitter f264y; + + /* compiled from: ScreenCapturer.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: ScreenCapturer.kt */ + /* renamed from: b.a.q.m0.b$b reason: collision with other inner class name */ + public final class RunnableC0034b implements Runnable { + public RunnableC0034b() { + } + + @Override // java.lang.Runnable + public void run() { + b bVar = b.this; + if (bVar.p > 0) { + Long l = bVar.r; + if (l != null) { + long rtcTimeNanos = TimestampAligner.getRtcTimeNanos() - l.longValue(); + b bVar2 = b.this; + if (rtcTimeNanos > ((long) bVar2.q)) { + NativeCapturerObserver nativeCapturerObserver = bVar2.l; + if (nativeCapturerObserver == null) { + m.throwUninitializedPropertyAccessException("nativeObserver"); + } + nativeCapturerObserver.repeatLastFrame(); + } + } + b.this.c(); + } + } + } + + /* compiled from: ScreenCapturer.kt */ + public static final class c implements Action1 { + public final /* synthetic */ b j; + + public c(b bVar) { + this.j = bVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Long l) { + this.j.k.run(); + } + } + + /* compiled from: ScreenCapturer.kt */ + public static final class d implements Action1 { + public static final d j = new d(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(Intent intent, MediaProjection.Callback callback, Logger logger, ThumbnailEmitter thumbnailEmitter) { + super(intent, callback); + m.checkNotNullParameter(intent, "mediaProjectionPermissionResultData"); + m.checkNotNullParameter(callback, "mediaProjectionCallback"); + m.checkNotNullParameter(logger, "logger"); + this.f263x = logger; + this.f264y = thumbnailEmitter; + } + + public final synchronized void a(Rect rect, int i) { + m.checkNotNullParameter(rect, "measuredSize"); + int max = Math.max(rect.width(), rect.height()); + if (max > 0) { + float f = ((float) i) / ((float) max); + this.u.set((int) (((float) rect.width()) * f), (int) (((float) rect.height()) * f)); + Point point = this.u; + int i2 = point.x; + int i3 = i2 % 16; + if (i3 >= 8) { + i2 += 16; + } + int i4 = i2 - i3; + int i5 = point.y; + int i6 = i5 % 16; + if (i6 >= 8) { + i5 += 16; + } + point.set(i4, i5 - i6); + Point point2 = this.u; + super.changeCaptureFormat(point2.x, point2.y, this.p); + } + } + + @RequiresApi(29) + public final AudioRecord b() { + MediaProjection mediaProjection = this.mediaProjection; + if (mediaProjection == null) { + return null; + } + AudioPlaybackCaptureConfiguration build = new AudioPlaybackCaptureConfiguration.Builder(mediaProjection).addMatchingUsage(1).addMatchingUsage(14).addMatchingUsage(0).build(); + m.checkNotNullExpressionValue(build, "AudioPlaybackCaptureConf…KNOWN)\n .build()"); + try { + return new AudioRecord.Builder().setAudioFormat(new AudioFormat.Builder().setEncoding(2).setSampleRate(44100).setChannelMask(16).build()).setAudioPlaybackCaptureConfig(build).build(); + } catch (SecurityException unused) { + Log.w(b.class.getName(), "Failed to record audio"); + return null; + } + } + + public final void c() { + if (this.p > 0) { + Subscription subscription = this.w; + if (subscription != null) { + subscription.unsubscribe(); + } + Observable d02 = Observable.d0(((long) this.q) / 1000000, TimeUnit.MILLISECONDS); + SurfaceTextureHelper surfaceTextureHelper = this.m; + if (surfaceTextureHelper == null) { + m.throwUninitializedPropertyAccessException("surfaceTextureHelper"); + } + Handler handler = surfaceTextureHelper.getHandler(); + m.checkNotNullExpressionValue(handler, "surfaceTextureHelper.handler"); + Looper looper = handler.getLooper(); + AtomicReference atomicReference = j0.j.b.a.a; + Objects.requireNonNull(looper, "looper == null"); + this.w = d02.X(new j0.j.b.b(looper)).W(new c(this), d.j); + } + } + + @Override // org.webrtc.ScreenCapturerAndroid, org.webrtc.VideoCapturer + public synchronized void changeCaptureFormat(int i, int i2, int i3) { + a(this.f262s, Math.max(i, i2)); + d(i3); + } + + @Override // org.webrtc.ScreenCapturerAndroid + public void createVirtualDisplay() { + try { + super.createVirtualDisplay(); + } catch (Throwable th) { + Logger.e$default(this.f263x, "ScreenCapturer", "error in createVirtualDisplay", th, null, 8, null); + } + } + + public final void d(int i) { + if (i <= 0) { + this.p = 0; + this.q = 0; + return; + } + this.p = i; + this.q = 1000000000 / Math.max(10, i / 2); + } + + @Override // org.webrtc.ScreenCapturerAndroid, org.webrtc.VideoCapturer + public void dispose() { + stopCapture(); + ThumbnailEmitter thumbnailEmitter = this.f264y; + if (thumbnailEmitter != null) { + synchronized (thumbnailEmitter) { + thumbnailEmitter.d.release(); + thumbnailEmitter.c.release(); + JniCommon.nativeFreeByteBuffer(thumbnailEmitter.f2758b); + thumbnailEmitter.a = RecyclerView.FOREVER_NS; + } + } + this.o.release(); + super.dispose(); + } + + @Override // org.webrtc.ScreenCapturerAndroid, org.webrtc.VideoCapturer + public synchronized void initialize(SurfaceTextureHelper surfaceTextureHelper, Context context, CapturerObserver capturerObserver) { + m.checkNotNullParameter(surfaceTextureHelper, "surfaceTextureHelper"); + m.checkNotNullParameter(context, "applicationContext"); + m.checkNotNullParameter(capturerObserver, "capturerObserver"); + this.m = surfaceTextureHelper; + this.n = context; + this.l = (NativeCapturerObserver) capturerObserver; + super.initialize(surfaceTextureHelper, context, capturerObserver); + } + + @Override // org.webrtc.ScreenCapturerAndroid, org.webrtc.VideoSink + public void onFrame(VideoFrame videoFrame) { + Rect rect = this.t; + Context context = this.n; + if (context == null) { + m.throwUninitializedPropertyAccessException("context"); + } + rect.set(DisplayUtils.getScreenSize(context)); + if (!m.areEqual(this.t, this.f262s)) { + this.f262s.set(this.t); + a(this.t, this.v); + } + this.r = Long.valueOf(videoFrame.getTimestampNs()); + ThumbnailEmitter thumbnailEmitter = this.f264y; + if (thumbnailEmitter != null) { + synchronized (thumbnailEmitter) { + m.checkNotNullParameter(videoFrame, "frame"); + long currentTimeMillis = thumbnailEmitter.k.currentTimeMillis() - thumbnailEmitter.e; + long timestampNs = videoFrame.getTimestampNs() - thumbnailEmitter.a; + if (currentTimeMillis > thumbnailEmitter.j) { + long j2 = (long) 1000; + if (timestampNs > thumbnailEmitter.i * j2 * j2) { + thumbnailEmitter.a = videoFrame.getTimestampNs(); + thumbnailEmitter.l.invoke(thumbnailEmitter.a(videoFrame)); + } + } + } + } + super.onFrame(videoFrame); + } + + @Override // org.webrtc.ScreenCapturerAndroid, org.webrtc.VideoCapturer + public synchronized void startCapture(int i, int i2, int i3) { + AudioRecord b2; + super.startCapture(i, i2, i3); + this.v = Math.max(i, i2); + d(i3); + if (Build.VERSION.SDK_INT >= 29 && (b2 = b()) != null) { + this.o.startRecording(b2); + } + c(); + } + + @Override // org.webrtc.ScreenCapturerAndroid, org.webrtc.VideoCapturer + public synchronized void stopCapture() { + super.stopCapture(); + this.o.stopRecording(); + this.p = 0; + this.r = null; + } +} diff --git a/app/src/main/java/b/a/q/m0/c/a.java b/app/src/main/java/b/a/q/m0/c/a.java new file mode 100644 index 0000000000..ebba7f58f5 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/a.java @@ -0,0 +1,29 @@ +package b.a.q.m0.c; + +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class a extends o implements Function1 { + public final /* synthetic */ MediaEngineConnection.ConnectionState $value; + public final /* synthetic */ e this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(e eVar, MediaEngineConnection.ConnectionState connectionState) { + super(1); + this.this$0 = eVar; + this.$value = connectionState; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + m.checkNotNullParameter(dVar2, "it"); + dVar2.onConnectionStateChange(this.this$0, this.$value); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/m0/c/b.java b/app/src/main/java/b/a/q/m0/c/b.java new file mode 100644 index 0000000000..f45a21204b --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/b.java @@ -0,0 +1,56 @@ +package b.a.q.m0.c; + +import co.discord.media_engine.Connection; +import co.discord.media_engine.StreamParameters; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class b implements Connection.OnVideoCallback { + public final /* synthetic */ e a; + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class a extends o implements Function0 { + public final /* synthetic */ int $ssrc; + public final /* synthetic */ String $streamIdentifier; + public final /* synthetic */ StreamParameters[] $streams; + public final /* synthetic */ long $userId; + public final /* synthetic */ b this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(b bVar, long j, int i, String str, StreamParameters[] streamParametersArr) { + super(0); + this.this$0 = bVar; + this.$userId = j; + this.$ssrc = i; + this.$streamIdentifier = str; + this.$streams = streamParametersArr; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + e eVar = this.this$0.a; + long j = this.$userId; + int i = this.$ssrc; + String str = this.$streamIdentifier; + StreamParameters[] streamParametersArr = this.$streams; + eVar.e.put(Long.valueOf(j), Long.valueOf((long) i)); + eVar.y(new h(eVar, j, str, i, streamParametersArr)); + return Unit.a; + } + } + + public b(e eVar) { + this.a = eVar; + } + + @Override // co.discord.media_engine.Connection.OnVideoCallback + public void onVideo(long j, int i, String str, StreamParameters[] streamParametersArr) { + m.checkNotNullParameter(str, "streamIdentifier"); + m.checkNotNullParameter(streamParametersArr, "streams"); + e.x(this.a, new a(this, j, i, str, streamParametersArr)); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/c.java b/app/src/main/java/b/a/q/m0/c/c.java new file mode 100644 index 0000000000..43a9fc27e9 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/c.java @@ -0,0 +1,46 @@ +package b.a.q.m0.c; + +import co.discord.media_engine.Connection; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class c implements Connection.UserSpeakingStatusChangedCallback { + public final /* synthetic */ e a; + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class a extends o implements Function0 { + public final /* synthetic */ boolean $isUserSpeakingNow; + public final /* synthetic */ long $userId; + public final /* synthetic */ c this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(c cVar, long j, boolean z2) { + super(0); + this.this$0 = cVar; + this.$userId = j; + this.$isUserSpeakingNow = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + e eVar = this.this$0.a; + long j = this.$userId; + boolean z2 = this.$isUserSpeakingNow; + Integer num = eVar.d.get(Long.valueOf(j)); + eVar.y(new g(j, num != null ? num.intValue() : 0, z2)); + return Unit.a; + } + } + + public c(e eVar) { + this.a = eVar; + } + + @Override // co.discord.media_engine.Connection.UserSpeakingStatusChangedCallback + public void onUserSpeakingStatusChanged(long j, boolean z2, boolean z3) { + e.x(this.a, new a(this, j, z2)); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/d.java b/app/src/main/java/b/a/q/m0/c/d.java new file mode 100644 index 0000000000..c96d266923 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/d.java @@ -0,0 +1,79 @@ +package b.a.q.m0.c; + +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import com.discord.utilities.logging.Logger; +import com.hammerandchisel.libdiscord.Discord; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import org.webrtc.MediaStreamTrack; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class d implements Discord.ConnectToServerCallback { + public final /* synthetic */ e a; + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class a extends o implements Function0 { + public final /* synthetic */ Discord.ConnectionInfo $connectionInfo; + public final /* synthetic */ String $errorMessage; + public final /* synthetic */ d this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(d dVar, Discord.ConnectionInfo connectionInfo, String str) { + super(0); + this.this$0 = dVar; + this.$connectionInfo = connectionInfo; + this.$errorMessage = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + e eVar = this.this$0.a; + Discord.ConnectionInfo connectionInfo = this.$connectionInfo; + String str = this.$errorMessage; + Logger.i$default(eVar.l, "MediaEngineConnectionLegacy", b.d.b.a.a.v("handleConnection(). errorMessage: ", str), null, 4, null); + if (connectionInfo != null) { + if (str == null || str.length() == 0) { + String str2 = connectionInfo.localAddress; + m.checkNotNullExpressionValue(str2, "connectionInfo.localAddress"); + int i = connectionInfo.localPort; + String str3 = connectionInfo.protocol; + m.checkNotNullExpressionValue(str3, "connectionInfo.protocol"); + Objects.requireNonNull(str3, "null cannot be cast to non-null type java.lang.String"); + String upperCase = str3.toUpperCase(); + m.checkNotNullExpressionValue(upperCase, "(this as java.lang.String).toUpperCase()"); + MediaEngineConnection.TransportInfo transportInfo = new MediaEngineConnection.TransportInfo(str2, i, MediaEngineConnection.TransportInfo.Protocol.valueOf(upperCase)); + MediaEngineConnection.ConnectionState connectionState = MediaEngineConnection.ConnectionState.CONNECTED; + eVar.f265b = connectionState; + eVar.y(new a(eVar, connectionState)); + b.a.q.m0.a aVar = new b.a.q.m0.a("opus", 1, MediaStreamTrack.AUDIO_TRACK_KIND, 120, null); + eVar.i.clear(); + eVar.i.add(aVar); + eVar.i.addAll(eVar.o); + eVar.y(new m(0, eVar, transportInfo)); + return Unit.a; + } + } + if (connectionInfo == null) { + eVar.y(new m(1, eVar, str)); + } else { + eVar.y(new m(2, eVar, str)); + } + return Unit.a; + } + } + + public d(e eVar) { + this.a = eVar; + } + + @Override // com.hammerandchisel.libdiscord.Discord.ConnectToServerCallback + public final void onConnectToServer(Discord.ConnectionInfo connectionInfo, String str) { + m.checkNotNullParameter(connectionInfo, "connectionInfo"); + m.checkNotNullParameter(str, "errorMessage"); + e.x(this.a, new a(this, connectionInfo, str)); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/e.java b/app/src/main/java/b/a/q/m0/c/e.java new file mode 100644 index 0000000000..23630b8ae3 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/e.java @@ -0,0 +1,876 @@ +package b.a.q.m0.c; + +import android.content.Intent; +import android.media.projection.MediaProjection; +import co.discord.media_engine.AudioDecoder; +import co.discord.media_engine.AudioEncoder; +import co.discord.media_engine.Connection; +import co.discord.media_engine.EncryptionSettings; +import co.discord.media_engine.Stats; +import co.discord.media_engine.StreamParameters; +import co.discord.media_engine.VideoDecoder; +import co.discord.media_engine.VideoEncoder; +import com.discord.rtcconnection.KrispOveruseDetector; +import com.discord.rtcconnection.mediaengine.MediaEngine; +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import com.discord.rtcconnection.mediaengine.ThumbnailEmitter; +import com.discord.utilities.logging.Logger; +import com.hammerandchisel.libdiscord.Discord; +import d0.t.g0; +import d0.t.h0; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.CopyOnWriteArrayList; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class e implements MediaEngineConnection { + public final CopyOnWriteArrayList a; + + /* renamed from: b reason: collision with root package name */ + public MediaEngineConnection.ConnectionState f265b; + public boolean c; + public final Map d; + public final Map e = new LinkedHashMap(); + public final Set f = new LinkedHashSet(); + public final Set g = new LinkedHashSet(); + public final Set h = new LinkedHashSet(); + public final List i = new ArrayList(); + public final Connection j; + public final b.a.q.c k; + public final Logger l; + public final u m; + public final Discord n; + public final List o; + public final MediaEngineConnection.Type p; + public final long q; + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class a extends d0.z.d.o implements Function1 { + public final /* synthetic */ int $audioSsrc; + public final /* synthetic */ boolean $isMuted; + public final /* synthetic */ long $resolvedVideoSsrc; + public final /* synthetic */ long $userId; + public final /* synthetic */ float $volume; + public final /* synthetic */ e this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(e eVar, long j, int i, long j2, boolean z2, float f) { + super(1); + this.this$0 = eVar; + this.$userId = j; + this.$audioSsrc = i; + this.$resolvedVideoSsrc = j2; + this.$isMuted = z2; + this.$volume = f; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + long j = this.$userId; + int i = this.$audioSsrc; + int i2 = (int) this.$resolvedVideoSsrc; + Objects.requireNonNull(this.this$0); + connection2.connectUser(j, i, i2, i2 > 0 ? i2 + 1 : 0, this.$isMuted, this.$volume); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final /* synthetic */ class b extends d0.z.d.k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, Connection.class, "dispose", "dispose()V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "p1"); + connection2.dispose(); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class c extends d0.z.d.o implements Function1 { + public final /* synthetic */ e this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(e eVar) { + super(1); + this.this$0 = eVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + d0.z.d.m.checkNotNullParameter(dVar2, "it"); + dVar2.onConnectionStateChange(this.this$0, MediaEngineConnection.ConnectionState.DISCONNECTED); + dVar2.onDestroy(this.this$0); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class d extends d0.z.d.o implements Function1 { + public final /* synthetic */ boolean $disabled; + public final /* synthetic */ long $userId; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(long j, boolean z2) { + super(1); + this.$userId = j; + this.$disabled = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.disableVideo(this.$userId, this.$disabled); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + /* renamed from: b.a.q.m0.c.e$e reason: collision with other inner class name */ + public static final class C0035e extends d0.z.d.o implements Function1 { + public final /* synthetic */ KrispOveruseDetector.Status $status; + public final /* synthetic */ e this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0035e(e eVar, KrispOveruseDetector.Status status) { + super(1); + this.this$0 = eVar; + this.$status = status; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + d0.z.d.m.checkNotNullParameter(dVar2, "it"); + dVar2.onKrispStatus(this.this$0, this.$status); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class f extends d0.z.d.o implements Function1 { + public final /* synthetic */ Function1 $onStats; + public final /* synthetic */ e this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(e eVar, Function1 function1) { + super(1); + this.this$0 = eVar; + this.$onStats = function1; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.getStats(new f(this)); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class g extends d0.z.d.o implements Function1 { + public final /* synthetic */ MediaEngineConnection.FailedConnectionException $e; + public final /* synthetic */ e this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(e eVar, MediaEngineConnection.FailedConnectionException failedConnectionException) { + super(1); + this.this$0 = eVar; + this.$e = failedConnectionException; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + d0.z.d.m.checkNotNullParameter(dVar2, "it"); + dVar2.onError(this.this$0, this.$e); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class h extends d0.z.d.o implements Function1 { + public final /* synthetic */ AudioDecoder $audioDecoder; + public final /* synthetic */ AudioEncoder $audioEncoder; + public final /* synthetic */ VideoDecoder $videoDecoder; + public final /* synthetic */ VideoEncoder $videoEncoder; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(AudioEncoder audioEncoder, VideoEncoder videoEncoder, AudioDecoder audioDecoder, VideoDecoder videoDecoder) { + super(1); + this.$audioEncoder = audioEncoder; + this.$videoEncoder = videoEncoder; + this.$audioDecoder = audioDecoder; + this.$videoDecoder = videoDecoder; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.setCodecs(this.$audioEncoder, this.$videoEncoder, new AudioDecoder[]{this.$audioDecoder}, new VideoDecoder[]{this.$videoDecoder}); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class i extends d0.z.d.o implements Function1 { + public final /* synthetic */ EncryptionSettings $encryptionSettings; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(EncryptionSettings encryptionSettings) { + super(1); + this.$encryptionSettings = encryptionSettings; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.setEncryptionSettings(this.$encryptionSettings); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class j extends d0.z.d.o implements Function1 { + public final /* synthetic */ MediaEngineConnection.InputMode $inputMode; + public final /* synthetic */ MediaEngineConnection.c $inputModeOptions; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j(MediaEngineConnection.c cVar, MediaEngineConnection.InputMode inputMode) { + super(1); + this.$inputModeOptions = cVar; + this.$inputMode = inputMode; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.setVADLeadingFramesToBuffer(this.$inputModeOptions.f2757b); + connection2.setVADTrailingFramesToSend(this.$inputModeOptions.c); + connection2.setVADTriggerThreshold((float) this.$inputModeOptions.a); + connection2.setVADAutoThreshold(this.$inputModeOptions.d ? 3 : -1); + connection2.setVADUseKrisp(this.$inputModeOptions.e); + connection2.setAudioInputMode(this.$inputMode.getNumeral()); + connection2.enableForwardErrorCorrection(true); + connection2.setExpectedPacketLossRate(0.3f); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class k extends d0.z.d.o implements Function1 { + public final /* synthetic */ boolean $mute; + public final /* synthetic */ long $userId; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(long j, boolean z2) { + super(1); + this.$userId = j; + this.$mute = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.muteUser(this.$userId, this.$mute); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class l extends d0.z.d.o implements Function1 { + public final /* synthetic */ boolean $mute; + public final /* synthetic */ long $userId; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(long j, boolean z2) { + super(1); + this.$userId = j; + this.$mute = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + d0.z.d.m.checkNotNullParameter(dVar2, "it"); + dVar2.onLocalMute(this.$userId, this.$mute); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class m extends d0.z.d.o implements Function1 { + public final /* synthetic */ boolean $offScreen; + public final /* synthetic */ long $userId; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public m(long j, boolean z2) { + super(1); + this.$userId = j; + this.$offScreen = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + d0.z.d.m.checkNotNullParameter(dVar2, "it"); + dVar2.onLocalVideoOffScreen(this.$userId, this.$offScreen); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class n extends d0.z.d.o implements Function1 { + public final /* synthetic */ long $userId; + public final /* synthetic */ float $volume; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public n(long j, float f) { + super(1); + this.$userId = j; + this.$volume = f; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.setUserPlayoutVolume(this.$userId, this.$volume / 100.0f); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class o extends d0.z.d.o implements Function1 { + public final /* synthetic */ boolean $active; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public o(boolean z2) { + super(1); + this.$active = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.setPTTActive(this.$active); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class p extends d0.z.d.o implements Function1 { + public final /* synthetic */ int $frameRate; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public p(int i) { + super(1); + this.$frameRate = i; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + d0.z.d.m.checkNotNullParameter(dVar2, "it"); + dVar2.onTargetFrameRate(this.$frameRate); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class q extends d0.z.d.o implements Function1 { + public final /* synthetic */ MediaEngineConnection.b $quality; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public q(MediaEngineConnection.b bVar) { + super(1); + this.$quality = bVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + d0.z.d.m.checkNotNullParameter(dVar2, "it"); + dVar2.onTargetBitrate(this.$quality.f2756b); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class r extends d0.z.d.o implements Function1 { + public final /* synthetic */ int $frameRate; + public final /* synthetic */ MediaEngineConnection.b $quality; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public r(MediaEngineConnection.b bVar, int i) { + super(1); + this.$quality = bVar; + this.$frameRate = i; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + MediaEngineConnection.b bVar = this.$quality; + connection2.setEncodingQuality(bVar.a, bVar.f2756b, bVar.c, bVar.d, this.$frameRate); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class s extends d0.z.d.o implements Function1 { + public final /* synthetic */ boolean $selfDeaf; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public s(boolean z2) { + super(1); + this.$selfDeaf = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.deafenLocalUser(this.$selfDeaf); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class t extends d0.z.d.o implements Function1 { + public final /* synthetic */ boolean $selfMute; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public t(boolean z2) { + super(1); + this.$selfMute = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.muteLocalUser(this.$selfMute); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class u extends d0.z.d.o implements Function1 { + public final /* synthetic */ boolean $isVideoBroadcast; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public u(boolean z2) { + super(1); + this.$isVideoBroadcast = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.setVideoBroadcast(this.$isVideoBroadcast); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class v extends d0.z.d.o implements Function1 { + public final /* synthetic */ b.a.q.m0.b $screenCapturer; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public v(b.a.q.m0.b bVar) { + super(1); + this.$screenCapturer = bVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + b.a.q.m0.b bVar = this.$screenCapturer; + connection2.startScreenshareBroadcast(bVar, bVar.o.getNativeInstance()); + return Unit.a; + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class w extends MediaProjection.Callback { + @Override // android.media.projection.MediaProjection.Callback + public void onStop() { + } + } + + /* compiled from: MediaEngineConnectionLegacy.kt */ + public static final class x extends d0.z.d.o implements Function1 { + public static final x j = new x(); + + public x() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Connection connection) { + Connection connection2 = connection; + d0.z.d.m.checkNotNullParameter(connection2, "$receiver"); + connection2.stopScreenshareBroadcast(); + return Unit.a; + } + } + + public e(b.a.q.c cVar, Logger logger, u uVar, Discord discord, List list, MediaEngineConnection.Type type, long j2, MediaEngine.a aVar, List list2) { + d0.z.d.m.checkNotNullParameter(cVar, "mediaEngineThreadExecutor"); + d0.z.d.m.checkNotNullParameter(logger, "logger"); + d0.z.d.m.checkNotNullParameter(uVar, "noiseCancellationConfig"); + d0.z.d.m.checkNotNullParameter(discord, "voiceEngineLegacy"); + d0.z.d.m.checkNotNullParameter(list, "supportedVideoCodecs"); + d0.z.d.m.checkNotNullParameter(type, "type"); + d0.z.d.m.checkNotNullParameter(aVar, "connectionOptions"); + d0.z.d.m.checkNotNullParameter(list2, "listeners"); + this.k = cVar; + this.l = logger; + this.m = uVar; + this.n = discord; + this.o = list; + this.p = type; + this.q = j2; + MediaEngineConnection.ConnectionState connectionState = MediaEngineConnection.ConnectionState.CONNECTING; + this.f265b = connectionState; + this.d = h0.mutableMapOf(d0.o.to(Long.valueOf(j2), Integer.valueOf(aVar.a))); + int i2 = aVar.a; + String str = aVar.f2754b; + int i3 = aVar.c; + Object[] array = aVar.d.toArray(new StreamParameters[0]); + Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array"); + Connection connectToServer = discord.connectToServer(i2, j2, str, i3, (StreamParameters[]) array, new d(this)); + d0.z.d.m.checkNotNullExpressionValue(connectToServer, "voiceEngineLegacy.connec…fo, errorMessage) }\n }"); + connectToServer.setOnVideoCallback(new b(this)); + connectToServer.setUserSpeakingStatusChangedCallback(new c(this)); + this.j = connectToServer; + this.a = new CopyOnWriteArrayList<>(list2); + this.f265b = connectionState; + y(new a(this, connectionState)); + } + + public static final void x(e eVar, Function0 function0) { + b.a.q.c cVar = eVar.k; + cVar.l.execute(new i(function0)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public synchronized void a(Intent intent, ThumbnailEmitter thumbnailEmitter) { + d0.z.d.m.checkNotNullParameter(intent, "permission"); + z(new v(new b.a.q.m0.b(intent, new w(), this.l, thumbnailEmitter))); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public boolean b() { + return this.m.a; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void c(boolean z2) { + this.c = z2; + z(new t(z2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void d(long j2, boolean z2) { + if (z2) { + this.h.add(Long.valueOf(j2)); + } else { + this.h.remove(Long.valueOf(j2)); + } + y(new m(j2, z2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void destroy() { + Logger.i$default(this.l, "MediaEngineConnectionLegacy", "destroy(). Disconnecting from server", null, 4, null); + z(b.j); + y(new c(this)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void e(long j2, float f2) { + z(new n(j2, f2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void f(KrispOveruseDetector.Status status) { + d0.z.d.m.checkNotNullParameter(status, "status"); + y(new C0035e(this, status)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public boolean g(long j2) { + return this.g.contains(Long.valueOf(j2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public MediaEngineConnection.Type getType() { + return this.p; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public synchronized void h() { + z(x.j); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void i(long j2, boolean z2) { + z(new d(j2, z2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void j(boolean z2) { + z(new u(z2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void k(MediaEngineConnection.InputMode inputMode, MediaEngineConnection.c cVar) { + d0.z.d.m.checkNotNullParameter(inputMode, "inputMode"); + d0.z.d.m.checkNotNullParameter(cVar, "inputModeOptions"); + u uVar = this.m; + if (inputMode == MediaEngineConnection.InputMode.VOICE_ACTIVITY) { + boolean z2 = cVar.d; + } + Objects.requireNonNull(uVar); + z(new j(cVar, inputMode)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void l(MediaEngineConnection.d dVar) { + d0.z.d.m.checkNotNullParameter(dVar, "listener"); + this.a.add(dVar); + dVar.onConnectionStateChange(this, this.f265b); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void m(MediaEngineConnection.b bVar) { + d0.z.d.m.checkNotNullParameter(bVar, "quality"); + int i2 = this.c ? bVar.e : bVar.f; + y(new p(i2)); + y(new q(bVar)); + z(new r(bVar, i2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void n(Function1 function1) { + d0.z.d.m.checkNotNullParameter(function1, "onStats"); + z(new f(this, function1)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void o(MediaEngineConnection.d dVar) { + d0.z.d.m.checkNotNullParameter(dVar, "listener"); + this.a.remove(dVar); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public boolean p(long j2) { + return this.h.contains(Long.valueOf(j2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void q(boolean z2) { + z(new o(z2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void r(String str, String str2) { + Object obj; + Object obj2; + d0.z.d.m.checkNotNullParameter(str, "audioCodec"); + d0.z.d.m.checkNotNullParameter(str2, "videoCodec"); + Iterator it = this.i.iterator(); + while (true) { + obj = null; + if (!it.hasNext()) { + obj2 = null; + break; + } + obj2 = it.next(); + if (d0.z.d.m.areEqual(((b.a.q.m0.a) obj2).a, str)) { + break; + } + } + b.a.q.m0.a aVar = (b.a.q.m0.a) obj2; + Iterator it2 = this.i.iterator(); + while (true) { + if (!it2.hasNext()) { + break; + } + Object next = it2.next(); + if (d0.z.d.m.areEqual(((b.a.q.m0.a) next).a, str2)) { + obj = next; + break; + } + } + b.a.q.m0.a aVar2 = (b.a.q.m0.a) obj; + if (aVar == null) { + throw new MediaEngineConnection.FailedConnectionException("Missing audio codec: " + str + '.', MediaEngineConnection.FailedConnectionException.FailureType.CODEC_NEGOTIATION_FAILED); + } else if (aVar2 != null) { + try { + Integer num = aVar2.e; + if (num != null) { + num.intValue(); + AudioEncoder audioEncoder = new AudioEncoder(aVar.d, str, 48000, 960, 1, 64000); + AudioDecoder audioDecoder = new AudioDecoder(aVar.d, str, 48000, 2, g0.mapOf(d0.o.to("stereo", "1"))); + Map mapOf = h0.mapOf(d0.o.to("level-asymmetry-allowed", "1"), d0.o.to("packetization-mode", "1"), d0.o.to("profile-level-id", "42e01f")); + z(new h(audioEncoder, new VideoEncoder(str2, aVar2.d, aVar2.e.intValue(), mapOf), audioDecoder, new VideoDecoder(str2, aVar2.d, aVar2.e.intValue(), mapOf))); + return; + } + throw new MediaEngineConnection.FailedConnectionException("Video codec " + str2 + " rtxPayloadType was null.", MediaEngineConnection.FailedConnectionException.FailureType.CODEC_NEGOTIATION_FAILED); + } catch (MediaEngineConnection.FailedConnectionException e) { + y(new g(this, e)); + } + } else { + throw new MediaEngineConnection.FailedConnectionException("Missing video codec: " + str2 + '.', MediaEngineConnection.FailedConnectionException.FailureType.CODEC_NEGOTIATION_FAILED); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void s(long j2, int i2, Integer num, boolean z2, float f2) { + if (i2 == 0) { + Logger logger = this.l; + Logger.w$default(logger, "MediaEngineConnectionLegacy", "Attempting to create user " + j2 + " with 0 audio SSRC", null, 4, null); + return; + } + Long valueOf = num != null ? Long.valueOf((long) num.intValue()) : this.e.get(Long.valueOf(j2)); + long longValue = valueOf != null ? valueOf.longValue() : 0; + Integer num2 = this.d.get(Long.valueOf(j2)); + boolean z3 = false; + boolean z4 = num2 == null || num2.intValue() != i2; + Long l2 = this.e.get(Long.valueOf(j2)); + if (l2 == null || l2.longValue() != longValue) { + z3 = true; + } + if (z4 || z3) { + Logger logger2 = this.l; + Logger.i$default(logger2, "MediaEngineConnectionLegacy", "creating user: " + j2 + " with audio SSRC: " + i2 + " and video SSRC: " + num, null, 4, null); + z(new a(this, j2, i2, longValue, z2, f2)); + } + if (z2) { + this.f.add(Long.valueOf(j2)); + } else { + this.f.remove(Long.valueOf(j2)); + } + this.d.put(Long.valueOf(j2), Integer.valueOf(i2)); + this.e.put(Long.valueOf(j2), Long.valueOf(longValue)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void t(String str, int[] iArr) { + d0.z.d.m.checkNotNullParameter(str, "mode"); + d0.z.d.m.checkNotNullParameter(iArr, "secretKey"); + z(new i(new EncryptionSettings(str, iArr))); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public boolean u(long j2) { + return this.f.contains(Long.valueOf(j2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void v(boolean z2) { + z(new s(z2)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection + public void w(long j2, boolean z2) { + z(new k(j2, z2)); + if (z2) { + this.f.add(Long.valueOf(j2)); + } else { + this.f.remove(Long.valueOf(j2)); + } + y(new l(j2, z2)); + } + + public final void y(Function1 function1) { + for (MediaEngineConnection.d dVar : this.a) { + try { + d0.z.d.m.checkNotNullExpressionValue(dVar, "it"); + function1.invoke(dVar); + } catch (Exception e) { + Logger.e$default(this.l, "MediaEngineConnectionLegacy", "Error in listener", e, null, 8, null); + } + } + } + + public final synchronized void z(Function1 function1) { + function1.invoke(this.j); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/f.java b/app/src/main/java/b/a/q/m0/c/f.java new file mode 100644 index 0000000000..8d432129c9 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/f.java @@ -0,0 +1,26 @@ +package b.a.q.m0.c; + +import b.a.q.m0.c.e; +import co.discord.media_engine.Connection; +import co.discord.media_engine.Stats; +import com.discord.utilities.logging.Logger; +import d0.z.d.m; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class f implements Connection.GetStatsCallback { + public final /* synthetic */ e.f a; + + public f(e.f fVar) { + this.a = fVar; + } + + @Override // co.discord.media_engine.Connection.GetStatsCallback + public void onStats(Stats stats) { + m.checkNotNullParameter(stats, "stats"); + this.a.$onStats.invoke(stats); + } + + @Override // co.discord.media_engine.Connection.GetStatsCallback + public void onStatsError(Throwable th) { + Logger.e$default(this.a.this$0.l, "MediaEngineConnectionLegacy", "error collecting stats", th, null, 8, null); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/g.java b/app/src/main/java/b/a/q/m0/c/g.java new file mode 100644 index 0000000000..fd58fc9b48 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/g.java @@ -0,0 +1,31 @@ +package b.a.q.m0.c; + +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class g extends o implements Function1 { + public final /* synthetic */ int $audioSsrc; + public final /* synthetic */ boolean $isSpeaking; + public final /* synthetic */ long $userId; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(long j, int i, boolean z2) { + super(1); + this.$userId = j; + this.$audioSsrc = i; + this.$isSpeaking = z2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + m.checkNotNullParameter(dVar2, "it"); + dVar2.onSpeaking(this.$userId, this.$audioSsrc, this.$isSpeaking); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/m0/c/h.java b/app/src/main/java/b/a/q/m0/c/h.java new file mode 100644 index 0000000000..c62f014d75 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/h.java @@ -0,0 +1,45 @@ +package b.a.q.m0.c; + +import co.discord.media_engine.StreamParameters; +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import d0.g0.s; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class h extends o implements Function1 { + public final /* synthetic */ String $streamId; + public final /* synthetic */ StreamParameters[] $streams; + public final /* synthetic */ long $userId; + public final /* synthetic */ int $videoSsrc; + public final /* synthetic */ e this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(e eVar, long j, String str, int i, StreamParameters[] streamParametersArr) { + super(1); + this.this$0 = eVar; + this.$userId = j; + this.$streamId = str; + this.$videoSsrc = i; + this.$streams = streamParametersArr; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngineConnection.d dVar) { + MediaEngineConnection.d dVar2 = dVar; + m.checkNotNullParameter(dVar2, "it"); + long j = this.$userId; + String str = this.$streamId; + Integer intOrNull = str != null ? s.toIntOrNull(str) : null; + Integer num = this.this$0.d.get(Long.valueOf(this.$userId)); + int intValue = num != null ? num.intValue() : 0; + int i = this.$videoSsrc; + Objects.requireNonNull(this.this$0); + dVar2.onVideo(j, intOrNull, intValue, i, i > 0 ? i + 1 : 0, this.$streams); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/m0/c/i.java b/app/src/main/java/b/a/q/m0/c/i.java new file mode 100644 index 0000000000..4fb1f71e90 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/i.java @@ -0,0 +1,17 @@ +package b.a.q.m0.c; + +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaEngineConnectionLegacy.kt */ +public final class i implements Runnable { + public final /* synthetic */ Function0 j; + + public i(Function0 function0) { + this.j = function0; + } + + @Override // java.lang.Runnable + public final /* synthetic */ void run() { + m.checkNotNullExpressionValue(this.j.mo1invoke(), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/j.java b/app/src/main/java/b/a/q/m0/c/j.java new file mode 100644 index 0000000000..b9302d5084 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/j.java @@ -0,0 +1,25 @@ +package b.a.q.m0.c; + +import com.discord.rtcconnection.mediaengine.MediaEngine; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaEngineLegacy.kt */ +public final class j extends o implements Function1 { + public static final j j = new j(); + + public j() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngine.c cVar) { + MediaEngine.c cVar2 = cVar; + m.checkNotNullParameter(cVar2, "it"); + cVar2.onConnecting(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/m0/c/k.java b/app/src/main/java/b/a/q/m0/c/k.java new file mode 100644 index 0000000000..19c56d8709 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/k.java @@ -0,0 +1,698 @@ +package b.a.q.m0.c; + +import android.content.Context; +import android.os.Build; +import androidx.annotation.AnyThread; +import b.a.q.e0; +import co.discord.media_engine.RtcRegion; +import co.discord.media_engine.VideoInputDeviceDescription; +import com.discord.rtcconnection.mediaengine.MediaEngine; +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import com.discord.utilities.logging.Logger; +import com.hammerandchisel.libdiscord.Discord; +import d0.t.n0; +import d0.t.u; +import d0.z.d.m; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.Future; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import org.webrtc.Logging; +import org.webrtc.voiceengine.WebRtcAudioManager; +import org.webrtc.voiceengine.WebRtcAudioUtils; +import rx.Emitter; +import rx.Observable; +import rx.functions.Action1; +/* compiled from: MediaEngineLegacy.kt */ +public final class k implements MediaEngine { + public static final Set a = n0.setOf((Object[]) new String[]{"Pixel", "Pixel XL", "Pixel 3a XL", "Pixel 4", "Pixel 4 XL", "Pixel 5"}); + + /* renamed from: b reason: collision with root package name */ + public static final Set f266b = n0.setOf((Object[]) new String[]{"Pixel 3a", "Redmi Note 8 Pro", "Redmi Note 8 pro"}); + public final u c; + public final List d; + public boolean e; + public Discord f; + public List g; + public MediaEngine.OpenSLUsageMode h; + public MediaEngine.EchoCancellationInfo i; + public final Context j; + public final MediaEngine.c k; + public final b.a.q.c l; + public final MediaEngine.OpenSLESConfig m; + public final Logger n; + public final b.a.q.k0.g o; + public final MediaEngine.b p; + public final Set q; + public final Set r; + + /* compiled from: MediaEngineLegacy.kt */ + public static final class a extends o implements Function0 { + public final /* synthetic */ k this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(k kVar) { + super(0); + this.this$0 = kVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + k kVar = this.this$0; + j jVar = j.j; + Set set = k.a; + kVar.n(jVar); + return Unit.a; + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class b extends o implements Function1 { + public final /* synthetic */ e $connection; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(e eVar) { + super(1); + this.$connection = eVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngine.c cVar) { + MediaEngine.c cVar2 = cVar; + m.checkNotNullParameter(cVar2, "it"); + cVar2.onNewConnection(this.$connection); + return Unit.a; + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class c extends MediaEngineConnection.a { + public final /* synthetic */ k a; + + /* compiled from: MediaEngineLegacy.kt */ + public static final class a extends o implements Function0 { + public final /* synthetic */ c this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(c cVar) { + super(0); + this.this$0 = cVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + k kVar = this.this$0.a; + l lVar = l.j; + Set set = k.a; + kVar.n(lVar); + return Unit.a; + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class b extends o implements Function0 { + public final /* synthetic */ MediaEngineConnection $connection; + public final /* synthetic */ c this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(c cVar, MediaEngineConnection mediaEngineConnection) { + super(0); + this.this$0 = cVar; + this.$connection = mediaEngineConnection; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + k.m(this.this$0.a, this.$connection); + return Unit.a; + } + } + + /* compiled from: MediaEngineLegacy.kt */ + /* renamed from: b.a.q.m0.c.k$c$c reason: collision with other inner class name */ + public static final class C0036c extends o implements Function0 { + public final /* synthetic */ MediaEngineConnection $connection; + public final /* synthetic */ c this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0036c(c cVar, MediaEngineConnection mediaEngineConnection) { + super(0); + this.this$0 = cVar; + this.$connection = mediaEngineConnection; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + k.m(this.this$0.a, this.$connection); + return Unit.a; + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class d extends o implements Function0 { + public final /* synthetic */ MediaEngineConnection $connection; + public final /* synthetic */ c this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(c cVar, MediaEngineConnection mediaEngineConnection) { + super(0); + this.this$0 = cVar; + this.$connection = mediaEngineConnection; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + k.m(this.this$0.a, this.$connection); + return Unit.a; + } + } + + public c(k kVar) { + this.a = kVar; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.a, com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onConnected(MediaEngineConnection mediaEngineConnection, MediaEngineConnection.TransportInfo transportInfo, List list) { + m.checkNotNullParameter(mediaEngineConnection, "connection"); + m.checkNotNullParameter(transportInfo, "transportInfo"); + m.checkNotNullParameter(list, "supportedVideoCodecs"); + this.a.o(new a(this)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.a, com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onConnectionStateChange(MediaEngineConnection mediaEngineConnection, MediaEngineConnection.ConnectionState connectionState) { + m.checkNotNullParameter(mediaEngineConnection, "connection"); + m.checkNotNullParameter(connectionState, "connectionState"); + if (connectionState == MediaEngineConnection.ConnectionState.DISCONNECTED) { + this.a.o(new b(this, mediaEngineConnection)); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.a, com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onDestroy(MediaEngineConnection mediaEngineConnection) { + m.checkNotNullParameter(mediaEngineConnection, "connection"); + this.a.o(new C0036c(this, mediaEngineConnection)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.a, com.discord.rtcconnection.mediaengine.MediaEngineConnection.d + public void onError(MediaEngineConnection mediaEngineConnection, MediaEngineConnection.FailedConnectionException failedConnectionException) { + m.checkNotNullParameter(mediaEngineConnection, "connection"); + m.checkNotNullParameter(failedConnectionException, "exception"); + this.a.o(new d(this, mediaEngineConnection)); + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class d implements Action1> { + public final /* synthetic */ k j; + + public d(k kVar) { + this.j = kVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Emitter emitter) { + Emitter emitter2 = emitter; + Discord discord = this.j.f; + if (discord != null) { + discord.getAudioSubsystem(new o(emitter2)); + } + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class e implements Action1> { + public final /* synthetic */ k j; + + public e(k kVar) { + this.j = kVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: java.util.List */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // rx.functions.Action1 + public void call(List list) { + List list2 = list; + k kVar = this.j; + m.checkNotNullExpressionValue(list2, "codecs"); + kVar.g = list2; + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class f implements j0.k.b, Unit> { + public static final f j = new f(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Unit call(List list) { + return Unit.a; + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class g implements Discord.LocalVoiceLevelChangedCallback { + public final /* synthetic */ Function1 a; + + public g(Function1 function1) { + this.a = function1; + } + + @Override // com.hammerandchisel.libdiscord.Discord.LocalVoiceLevelChangedCallback + public final void onLocalVoiceLevelChanged(float f, int i) { + boolean z2 = true; + if ((i & 1) == 0) { + z2 = false; + } + this.a.invoke(new MediaEngine.LocalVoiceStatus(f, z2)); + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class h implements Discord.BuiltinAECCallback { + public final /* synthetic */ b.a.q.k0.g a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ k f267b; + + /* compiled from: MediaEngineLegacy.kt */ + public static final class a extends o implements Function0 { + public final /* synthetic */ boolean $available; + public final /* synthetic */ boolean $enabled; + public final /* synthetic */ boolean $requestEnabled; + public final /* synthetic */ h this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(h hVar, boolean z2, boolean z3, boolean z4) { + super(0); + this.this$0 = hVar; + this.$enabled = z2; + this.$requestEnabled = z3; + this.$available = z4; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + this.this$0.a.d = this.$enabled; + k kVar = this.this$0.f267b; + boolean z2 = this.$requestEnabled; + boolean z3 = this.$available; + Objects.requireNonNull(kVar.o); + kVar.i = new MediaEngine.EchoCancellationInfo(z2, z3, WebRtcAudioUtils.isAcousticEchoCancelerSupported(), this.$enabled, false, false, false, false, false, 496); + return Unit.a; + } + } + + public h(b.a.q.k0.g gVar, Discord discord, k kVar) { + this.a = gVar; + this.f267b = kVar; + } + + @Override // com.hammerandchisel.libdiscord.Discord.BuiltinAECCallback + public final void onConfigureBuiltinAEC(boolean z2, boolean z3, boolean z4) { + this.f267b.o(new a(this, z4, z2, z3)); + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final class i implements Logging.ExternalReporter { + public final /* synthetic */ k a; + + public i(k kVar) { + this.a = kVar; + } + + @Override // org.webrtc.Logging.ExternalReporter + public final void e(String str, String str2, Throwable th) { + Logger logger = this.a.n; + m.checkNotNullExpressionValue(str, "tag"); + m.checkNotNullExpressionValue(str2, "message"); + Logger.e$default(logger, str, str2, th, null, 8, null); + } + } + + /* compiled from: MediaEngineLegacy.kt */ + public static final /* synthetic */ class j extends d0.z.d.k implements Function1 { + public static final j j = new j(); + + public j() { + super(1, MediaEngine.c.class, "onNativeEngineInitialized", "onNativeEngineInitialized()V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngine.c cVar) { + MediaEngine.c cVar2 = cVar; + m.checkNotNullParameter(cVar2, "p1"); + cVar2.onNativeEngineInitialized(); + return Unit.a; + } + } + + /* compiled from: MediaEngineLegacy.kt */ + /* renamed from: b.a.q.m0.c.k$k reason: collision with other inner class name */ + public static final class C0037k extends o implements Function0 { + public final /* synthetic */ MediaEngine.VoiceConfig $voiceConfig; + public final /* synthetic */ k this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0037k(k kVar, MediaEngine.VoiceConfig voiceConfig) { + super(0); + this.this$0 = kVar; + this.$voiceConfig = voiceConfig; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + boolean z2; + StringBuilder R = b.d.b.a.a.R("updateVoiceConfig: "); + R.append(this.$voiceConfig); + b.c.a.a0.d.a1("MediaEngineLegacy", R.toString()); + MediaEngine.VoiceConfig voiceConfig = this.$voiceConfig; + k kVar = this.this$0; + float f = voiceConfig.a; + Discord discord = kVar.f; + if (discord != null) { + discord.setSpeakerVolume(Math.min(300.0f, Math.max(0.0f, f)) / 100.0f); + } + k kVar2 = this.this$0; + boolean z3 = voiceConfig.f2753b; + kVar2.l.a(); + b.a.q.k0.g gVar = kVar2.o; + if (gVar.g && gVar.d) { + z2 = false; + } else { + b.a.q.k0.g gVar2 = kVar2.o; + z2 = gVar2.f && !gVar2.d ? true : z3; + } + if (z2 != z3) { + b.c.a.a0.d.a1("MediaEngineLegacy", "ignoring call to setEchoCancellation(" + z3 + "), config=" + kVar2.o); + } + Discord discord2 = kVar2.f; + if (discord2 != null) { + discord2.setEchoCancellation(z2, false, new m(kVar2)); + } + k kVar3 = this.this$0; + boolean z4 = voiceConfig.c; + Discord discord3 = kVar3.f; + if (discord3 != null) { + discord3.setNoiseSuppression(z4); + } + k kVar4 = this.this$0; + boolean z5 = voiceConfig.d; + kVar4.c.a = z5; + Discord discord4 = kVar4.f; + if (discord4 != null) { + discord4.setNoiseCancellation(z5); + } + k kVar5 = this.this$0; + boolean z6 = voiceConfig.e; + Discord discord5 = kVar5.f; + if (discord5 != null) { + discord5.setAutomaticGainControl(z6); + } + for (MediaEngineConnection mediaEngineConnection : this.this$0.getConnections()) { + mediaEngineConnection.k(voiceConfig.f, voiceConfig.g); + mediaEngineConnection.v(voiceConfig.h); + mediaEngineConnection.c(voiceConfig.i || mediaEngineConnection.getType() == MediaEngineConnection.Type.STREAM); + } + return Unit.a; + } + } + + public k(Context context, MediaEngine.c cVar, b.a.q.c cVar2, MediaEngine.OpenSLESConfig openSLESConfig, Logger logger, b.a.q.k0.g gVar, MediaEngine.b bVar, Set set, Set set2, int i2) { + Set set3 = null; + Set set4 = (i2 & 128) != 0 ? a : null; + set3 = (i2 & 256) != 0 ? f266b : set3; + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(cVar, "listener"); + m.checkNotNullParameter(cVar2, "mediaEngineThreadExecutor"); + m.checkNotNullParameter(openSLESConfig, "openSLESConfig"); + m.checkNotNullParameter(logger, "logger"); + m.checkNotNullParameter(gVar, "echoCancellation"); + m.checkNotNullParameter(bVar, "echoCancellationCallback"); + m.checkNotNullParameter(set4, "defaultOpenSLAllowList"); + m.checkNotNullParameter(set3, "defaultOpenSLExcludeList"); + this.j = context; + this.k = cVar; + this.l = cVar2; + this.m = openSLESConfig; + this.n = logger; + this.o = gVar; + this.p = bVar; + this.q = set4; + this.r = set3; + this.c = new u(); + this.d = new ArrayList(); + this.e = true; + this.h = MediaEngine.OpenSLUsageMode.ALLOW_LIST; + } + + public static final void m(k kVar, MediaEngineConnection mediaEngineConnection) { + synchronized (kVar) { + Discord discord = kVar.f; + if (discord != null) { + discord.setLocalVoiceLevelChangedCallback(null); + } + kVar.d.remove(mediaEngineConnection); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public Observable a() { + if (this.g != null) { + j0.l.e.k kVar = new j0.l.e.k(Unit.a); + m.checkNotNullExpressionValue(kVar, "Observable.just(Unit)"); + return kVar; + } + p(); + if (this.f == null) { + Observable w = Observable.w(new IllegalStateException("Failed to initialize native media engine")); + m.checkNotNullExpressionValue(w, "Observable.error(Illegal…ze native media engine\"))"); + return w; + } + Observable n = Observable.n(new q(this), Emitter.BackpressureMode.NONE); + m.checkNotNullExpressionValue(n, "Observable.create({ emit…er.BackpressureMode.NONE)"); + Observable F = n.t(new e(this)).F(f.j); + m.checkNotNullExpressionValue(F, "getSupportedVideoCodecs(…s }\n .map { Unit }"); + return F; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public void b(RtcRegion[] rtcRegionArr, Function1 function1) { + m.checkNotNullParameter(rtcRegionArr, "regionsWithIps"); + m.checkNotNullParameter(function1, "callback"); + p(); + Discord discord = this.f; + if (discord != null) { + discord.getRankedRtcRegions(rtcRegionArr, new r(function1)); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public b.a.q.c c() { + return this.l; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + @AnyThread + public void d(MediaEngine.VoiceConfig voiceConfig) { + m.checkNotNullParameter(voiceConfig, "voiceConfig"); + o(new C0037k(this, voiceConfig)); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public Observable e() { + Observable n = Observable.n(new d(this), Emitter.BackpressureMode.LATEST); + m.checkNotNullExpressionValue(n, "Observable.create({ emit….BackpressureMode.LATEST)"); + return n; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public void f(int i2) { + Discord discord = this.f; + if (discord != null) { + discord.setVideoInputDevice(i2); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public synchronized MediaEngineConnection g(long j2, MediaEngine.a aVar, MediaEngineConnection.Type type, Function1 function1) { + m.checkNotNullParameter(aVar, "options"); + m.checkNotNullParameter(type, "type"); + m.checkNotNullParameter(function1, "onFailure"); + if (!(this.g != null)) { + ((e0) function1).invoke(new IllegalStateException("connect() called on unprepared media engine.")); + return null; + } + Discord discord = this.f; + if (discord == null) { + Logger.e$default(this.n, "MediaEngineLegacy", "connect() called without voiceEngineLegacy.", null, null, 12, null); + return null; + } + o(new a(this)); + Logger logger = this.n; + Logger.i$default(logger, "MediaEngineLegacy", "Connecting with options: " + aVar, null, 4, null); + c cVar = new c(this); + b.a.q.c cVar2 = this.l; + Logger logger2 = this.n; + u uVar = this.c; + List list = this.g; + if (list == null) { + m.throwUninitializedPropertyAccessException("supportedVideoCodecs"); + } + e eVar = new e(cVar2, logger2, uVar, discord, list, type, j2, aVar, d0.t.m.listOf(cVar)); + this.d.add(eVar); + n(new b(eVar)); + return eVar; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public synchronized List getConnections() { + return u.toList(this.d); + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public void h(MediaEngine.OpenSLUsageMode openSLUsageMode) { + m.checkNotNullParameter(openSLUsageMode, "openSLUsageMode"); + if (this.f != null) { + Logger.e$default(this.n, "MediaEngineLegacy", "setting openSLUsageMode too late", null, null, 12, null); + } + this.h = openSLUsageMode; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public Discord i() { + return this.f; + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public void j(Function1 function1) { + m.checkNotNullParameter(function1, "devicesCallback"); + p(); + Discord discord = this.f; + if (discord != null) { + discord.getVideoInputDevices(new s(function1)); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public void k(boolean z2) { + this.e = z2; + Discord discord = this.f; + if (discord != null) { + discord.setAudioInputEnabled(z2); + } + } + + @Override // com.discord.rtcconnection.mediaengine.MediaEngine + public void l(Function1 function1) { + if (function1 != null) { + p(); + Discord discord = this.f; + if (discord != null) { + discord.setLocalVoiceLevelChangedCallback(new g(function1)); + return; + } + return; + } + Discord discord2 = this.f; + if (discord2 != null) { + discord2.setLocalVoiceLevelChangedCallback(null); + } + } + + public final void n(Function1 function1) { + try { + function1.invoke(this.k); + } catch (Exception e2) { + Logger.e$default(this.n, "MediaEngineLegacy", "Error in listener", e2, null, 8, null); + } + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + public final Future o(Function0 function0) { + b.a.q.c cVar = this.l; + if (function0 != null) { + function0 = new t(function0); + } + return cVar.submit((Runnable) function0); + } + + public final void p() { + if (this.f == null) { + Logger logger = this.n; + StringBuilder R = b.d.b.a.a.R("initializing voice engine. OpenSL ES: "); + R.append(this.m); + R.append(", OpenSL usage mode: "); + R.append(this.h); + Logger.i$default(logger, "MediaEngineLegacy", R.toString(), null, 4, null); + int ordinal = this.m.ordinal(); + boolean z2 = false; + if (ordinal == 0) { + if (this.h == MediaEngine.OpenSLUsageMode.ALLOW_LIST) { + z2 = this.q.contains(Build.MODEL); + } else if (!this.r.contains(Build.MODEL)) { + z2 = true; + } + Logger logger2 = this.n; + StringBuilder R2 = b.d.b.a.a.R("OpenSL ES default. mode: "); + R2.append(this.h); + R2.append(", enableOpenSL: "); + R2.append(z2); + R2.append(", model: '"); + Logger.i$default(logger2, "MediaEngineLegacy", b.d.b.a.a.G(R2, Build.MODEL, '\''), null, 4, null); + WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(!z2); + } else if (ordinal == 1) { + WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(false); + } else if (ordinal == 2) { + WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(true); + } + Logging.externalReporter = new i(this); + try { + Discord discord = new Discord(this.j, 2); + b.a.q.k0.g gVar = this.o; + if (gVar.e) { + discord.enableBuiltInAEC(true, new h(gVar, discord, this)); + } + discord.setAudioInputEnabled(this.e); + this.f = discord; + } catch (ExceptionInInitializerError e2) { + Logger.e$default(this.n, "MediaEngineLegacy", "Unable to initialize voice engine.", e2, null, 8, null); + } catch (UnsatisfiedLinkError e3) { + Logger.e$default(this.n, "MediaEngineLegacy", "Unable to initialize voice engine.", e3, null, 8, null); + } catch (Throwable th) { + Logger.e$default(this.n, "MediaEngineLegacy", "Unable to initialize voice engine, new error discovered", th, null, 8, null); + } + if (this.f != null) { + n(j.j); + } + } + } +} diff --git a/app/src/main/java/b/a/q/m0/c/l.java b/app/src/main/java/b/a/q/m0/c/l.java new file mode 100644 index 0000000000..d9a9d3ec2a --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/l.java @@ -0,0 +1,25 @@ +package b.a.q.m0.c; + +import com.discord.rtcconnection.mediaengine.MediaEngine; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaEngineLegacy.kt */ +public final class l extends o implements Function1 { + public static final l j = new l(); + + public l() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(MediaEngine.c cVar) { + MediaEngine.c cVar2 = cVar; + m.checkNotNullParameter(cVar2, "it"); + cVar2.onConnected(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/m0/c/m.java b/app/src/main/java/b/a/q/m0/c/m.java new file mode 100644 index 0000000000..e3618d6828 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/m.java @@ -0,0 +1,57 @@ +package b.a.q.m0.c; + +import b.c.a.a0.d; +import com.discord.rtcconnection.mediaengine.MediaEngine; +import com.hammerandchisel.libdiscord.Discord; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaEngineLegacy.kt */ +public final class m implements Discord.AecConfigCallback { + public final /* synthetic */ k a; + + /* compiled from: MediaEngineLegacy.kt */ + public static final class a extends o implements Function0 { + public final /* synthetic */ boolean $enabled; + public final /* synthetic */ boolean $previouslyEnabled; + public final /* synthetic */ boolean $previouslyMobileMode; + public final /* synthetic */ boolean $requestEnable; + public final /* synthetic */ boolean $requestMobileMode; + public final /* synthetic */ m this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(m mVar, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { + super(0); + this.this$0 = mVar; + this.$requestEnable = z2; + this.$enabled = z3; + this.$requestMobileMode = z4; + this.$previouslyEnabled = z5; + this.$previouslyMobileMode = z6; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + k kVar = this.this$0.a; + MediaEngine.EchoCancellationInfo echoCancellationInfo = kVar.i; + kVar.i = null; + if (echoCancellationInfo != null) { + MediaEngine.EchoCancellationInfo echoCancellationInfo2 = new MediaEngine.EchoCancellationInfo(echoCancellationInfo.a, echoCancellationInfo.f2751b, echoCancellationInfo.c, echoCancellationInfo.d, this.$requestEnable, this.$enabled, this.$requestMobileMode, this.$previouslyEnabled, this.$previouslyMobileMode); + d.c1("MediaEngineLegacy", "onEchoCancellationUpdated: " + echoCancellationInfo2); + this.this$0.a.p.onEchoCancellationUpdated(echoCancellationInfo2); + } + return Unit.a; + } + } + + public m(k kVar) { + this.a = kVar; + } + + @Override // com.hammerandchisel.libdiscord.Discord.AecConfigCallback + public final void onConfigureAEC(boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { + this.a.o(new a(this, z2, z4, z3, z5, z6)); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/n.java b/app/src/main/java/b/a/q/m0/c/n.java new file mode 100644 index 0000000000..9b1e3fb23a --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/n.java @@ -0,0 +1,12 @@ +package b.a.q.m0.c; + +import d0.u.a; +import d0.z.d.m; +import java.util.Comparator; +/* compiled from: Comparisons.kt */ +public final class n implements Comparator { + @Override // java.util.Comparator + public final int compare(T t, T t2) { + return a.compareValues(Integer.valueOf(!m.areEqual(t, "H264") ? 1 : 0), Integer.valueOf(!m.areEqual(t2, "H264") ? 1 : 0)); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/o.java b/app/src/main/java/b/a/q/m0/c/o.java new file mode 100644 index 0000000000..c7f3dc8067 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/o.java @@ -0,0 +1,22 @@ +package b.a.q.m0.c; + +import com.discord.rtcconnection.mediaengine.MediaEngine; +import com.hammerandchisel.libdiscord.Discord; +import d0.z.d.m; +import rx.Emitter; +/* compiled from: MediaEngineLegacy.kt */ +public final class o implements Discord.GetAudioSubsystemCallback { + public final /* synthetic */ Emitter a; + + public o(Emitter emitter) { + this.a = emitter; + } + + @Override // com.hammerandchisel.libdiscord.Discord.GetAudioSubsystemCallback + public final void onAudioSubsystem(String str, String str2) { + m.checkNotNullParameter(str, "audioSubsystem"); + m.checkNotNullParameter(str2, "audioLayer"); + this.a.onNext(new MediaEngine.AudioInfo(str, str2)); + this.a.onCompleted(); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/p.java b/app/src/main/java/b/a/q/m0/c/p.java new file mode 100644 index 0000000000..81ea012561 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/p.java @@ -0,0 +1,58 @@ +package b.a.q.m0.c; + +import b.a.q.m0.a; +import com.hammerandchisel.libdiscord.Discord; +import d0.t.n; +import d0.t.o; +import d0.t.u; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.List; +import java.util.Locale; +import java.util.Objects; +import java.util.Set; +import org.webrtc.MediaStreamTrack; +import rx.Emitter; +/* compiled from: MediaEngineLegacy.kt */ +public final class p implements Discord.GetSupportedVideoCodecsCallback { + public final /* synthetic */ q a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Emitter f268b; + + public p(q qVar, Emitter emitter) { + this.a = qVar; + this.f268b = emitter; + } + + @Override // com.hammerandchisel.libdiscord.Discord.GetSupportedVideoCodecsCallback + public final void onSupportedVideoCodecs(String[] strArr) { + m.checkNotNullParameter(strArr, "videoCodecsStringArray"); + k kVar = this.a.j; + Set set = k.a; + Objects.requireNonNull(kVar); + ArrayList arrayList = new ArrayList(strArr.length); + int i = 0; + for (String str : strArr) { + Locale locale = Locale.ROOT; + m.checkNotNullExpressionValue(locale, "Locale.ROOT"); + Objects.requireNonNull(str, "null cannot be cast to non-null type java.lang.String"); + String upperCase = str.toUpperCase(locale); + m.checkNotNullExpressionValue(upperCase, "(this as java.lang.String).toUpperCase(locale)"); + arrayList.add(upperCase); + } + List sortedWith = u.sortedWith(arrayList, new n()); + ArrayList arrayList2 = new ArrayList(o.collectionSizeOrDefault(sortedWith, 10)); + for (Object obj : sortedWith) { + int i2 = i + 1; + if (i < 0) { + n.throwIndexOverflow(); + } + int i3 = (i * 2) + 101; + arrayList2.add(new a((String) obj, i2, MediaStreamTrack.VIDEO_TRACK_KIND, i3, Integer.valueOf(i3 + 1))); + i = i2; + } + this.f268b.onNext(arrayList2); + this.f268b.onCompleted(); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/q.java b/app/src/main/java/b/a/q/m0/c/q.java new file mode 100644 index 0000000000..a7d9e123d1 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/q.java @@ -0,0 +1,25 @@ +package b.a.q.m0.c; + +import b.a.q.m0.a; +import com.hammerandchisel.libdiscord.Discord; +import java.util.List; +import rx.Emitter; +import rx.functions.Action1; +/* compiled from: MediaEngineLegacy.kt */ +public final class q implements Action1>> { + public final /* synthetic */ k j; + + public q(k kVar) { + this.j = kVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Emitter> emitter) { + Emitter> emitter2 = emitter; + Discord discord = this.j.f; + if (discord != null) { + discord.getSupportedVideoCodecs(new p(this, emitter2)); + } + } +} diff --git a/app/src/main/java/b/a/q/m0/c/r.java b/app/src/main/java/b/a/q/m0/c/r.java new file mode 100644 index 0000000000..7e6235b580 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/r.java @@ -0,0 +1,20 @@ +package b.a.q.m0.c; + +import androidx.annotation.NonNull; +import com.hammerandchisel.libdiscord.Discord; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaEngineLegacy.kt */ +public final class r implements Discord.GetRankedRtcRegionsCallback { + public final /* synthetic */ Function1 a; + + public r(Function1 function1) { + this.a = function1; + } + + @Override // com.hammerandchisel.libdiscord.Discord.GetRankedRtcRegionsCallback + public final /* synthetic */ void onRankedRtcRegions(@NonNull String[] strArr) { + m.checkNotNullParameter(strArr, "p0"); + m.checkNotNullExpressionValue(this.a.invoke(strArr), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/s.java b/app/src/main/java/b/a/q/m0/c/s.java new file mode 100644 index 0000000000..4903e34a66 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/s.java @@ -0,0 +1,21 @@ +package b.a.q.m0.c; + +import androidx.annotation.NonNull; +import co.discord.media_engine.VideoInputDeviceDescription; +import com.hammerandchisel.libdiscord.Discord; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaEngineLegacy.kt */ +public final class s implements Discord.GetVideoInputDevicesCallback { + public final /* synthetic */ Function1 a; + + public s(Function1 function1) { + this.a = function1; + } + + @Override // com.hammerandchisel.libdiscord.Discord.GetVideoInputDevicesCallback + public final /* synthetic */ void onDevices(@NonNull VideoInputDeviceDescription[] videoInputDeviceDescriptionArr) { + m.checkNotNullParameter(videoInputDeviceDescriptionArr, "p0"); + m.checkNotNullExpressionValue(this.a.invoke(videoInputDeviceDescriptionArr), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/t.java b/app/src/main/java/b/a/q/m0/c/t.java new file mode 100644 index 0000000000..3ab35b68ad --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/t.java @@ -0,0 +1,17 @@ +package b.a.q.m0.c; + +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +/* compiled from: MediaEngineLegacy.kt */ +public final class t implements Runnable { + public final /* synthetic */ Function0 j; + + public t(Function0 function0) { + this.j = function0; + } + + @Override // java.lang.Runnable + public final /* synthetic */ void run() { + m.checkNotNullExpressionValue(this.j.mo1invoke(), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/q/m0/c/u.java b/app/src/main/java/b/a/q/m0/c/u.java new file mode 100644 index 0000000000..99e7854c81 --- /dev/null +++ b/app/src/main/java/b/a/q/m0/c/u.java @@ -0,0 +1,5 @@ +package b.a.q.m0.c; +/* compiled from: NoiseCancellationConfig.kt */ +public final class u { + public boolean a; +} diff --git a/app/src/main/java/b/a/q/n.java b/app/src/main/java/b/a/q/n.java new file mode 100644 index 0000000000..7a27cdb541 --- /dev/null +++ b/app/src/main/java/b/a/q/n.java @@ -0,0 +1,49 @@ +package b.a.q; + +import a0.a.a.a; +/* compiled from: MediaSinkWantsLadder.kt */ +public final class n { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f269b; + public final double c; + public final int d; + public final int e; + + public n(int i, int i2, double d, int i3, int i4) { + this.a = i; + this.f269b = i2; + this.c = d; + this.d = i3; + this.e = i4; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof n)) { + return false; + } + n nVar = (n) obj; + return this.a == nVar.a && this.f269b == nVar.f269b && Double.compare(this.c, nVar.c) == 0 && this.d == nVar.d && this.e == nVar.e; + } + + public int hashCode() { + return ((((a.a(this.c) + (((this.a * 31) + this.f269b) * 31)) * 31) + this.d) * 31) + this.e; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("ResolutionBudget(width="); + R.append(this.a); + R.append(", height="); + R.append(this.f269b); + R.append(", budgetPortion="); + R.append(this.c); + R.append(", mutedFramerate="); + R.append(this.d); + R.append(", framerate="); + return b.d.b.a.a.A(R, this.e, ")"); + } +} diff --git a/app/src/main/java/b/a/q/n0/a.java b/app/src/main/java/b/a/q/n0/a.java new file mode 100644 index 0000000000..139427b681 --- /dev/null +++ b/app/src/main/java/b/a/q/n0/a.java @@ -0,0 +1,795 @@ +package b.a.q.n0; + +import androidx.annotation.AnyThread; +import androidx.core.app.NotificationCompat; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.rtcconnection.socket.io.Opcodes; +import com.discord.rtcconnection.socket.io.Payloads; +import com.discord.utilities.debug.DebugPrintBuilder; +import com.discord.utilities.debug.DebugPrintable; +import com.discord.utilities.logging.Logger; +import com.discord.utilities.networking.Backoff; +import com.discord.utilities.rest.SendUtils; +import com.discord.utilities.time.Clock; +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.reflect.TypeToken; +import d0.z.d.m; +import d0.z.d.o; +import f0.e0.k.h; +import f0.x; +import java.lang.reflect.Type; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Timer; +import java.util.TimerTask; +import java.util.concurrent.CopyOnWriteArraySet; +import java.util.concurrent.TimeUnit; +import javax.net.ssl.SSLSocketFactory; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.WebSocket; +import okhttp3.WebSocketListener; +/* compiled from: RtcControlSocket.kt */ +public final class a extends WebSocketListener implements DebugPrintable { + public static int j; + public static final Type k = new C0038a().getType(); + public static final b l = new b(null); + public Long A; + public c B; + public boolean C; + public final String D; + public final String E; + public final SSLSocketFactory F; + public final Logger G; + public final b.a.q.c H; + public final Clock I; + public final String J; + public final String m; + public final Gson n = new b.i.d.e().a(); + public final Timer o = new Timer(); + public final Backoff p; + public final CopyOnWriteArraySet q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public WebSocket f270s; + public String t; + public String u; + public Long v; + public boolean w; + + /* renamed from: x reason: collision with root package name */ + public b f271x; + + /* renamed from: y reason: collision with root package name */ + public Long f272y; + + /* renamed from: z reason: collision with root package name */ + public TimerTask f273z; + + /* compiled from: RtcControlSocket.kt */ + /* renamed from: b.a.q.n0.a$a reason: collision with other inner class name */ + public static final class C0038a extends TypeToken> { + } + + /* compiled from: RtcControlSocket.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: RtcControlSocket.kt */ + public enum c { + DISCONNECTED, + CONNECTING, + IDENTIFYING, + RESUMING, + CONNECTED, + RECONNECTING + } + + /* compiled from: RtcControlSocket.kt */ + public interface d { + void a(String str, String str2); + + void b(boolean z2, Integer num, String str); + + void c(String str, List list); + + void d(String str); + + void e(long j, int i, int i2, List list); + + void f(Map map); + + void g(long j); + + void h(); + + void i(); + + void j(long j); + + void k(int i, int i2, String str, List list); + + void onConnecting(); + + void onSpeaking(long j, int i, boolean z2); + } + + /* compiled from: RtcControlSocket.kt */ + public static final class e extends o implements Function1 { + public static final e j = new e(); + + public e() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(WebSocket webSocket) { + WebSocket webSocket2 = webSocket; + m.checkNotNullParameter(webSocket2, "it"); + webSocket2.e(1000, "Force Close"); + return Unit.a; + } + } + + /* compiled from: RtcControlSocket.kt */ + public static final class f extends o implements Function1 { + public static final f j = new f(); + + public f() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(WebSocket webSocket) { + WebSocket webSocket2 = webSocket; + m.checkNotNullParameter(webSocket2, "it"); + webSocket2.e(SendUtils.MAX_MESSAGE_CHARACTER_COUNT_PREMIUM, "close reason"); + return Unit.a; + } + } + + /* compiled from: RtcControlSocket.kt */ + public static final class g extends TimerTask { + public final /* synthetic */ a j; + + /* compiled from: RtcControlSocket.kt */ + /* renamed from: b.a.q.n0.a$g$a reason: collision with other inner class name */ + public static final class C0039a extends o implements Function0 { + public final /* synthetic */ g this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0039a(g gVar) { + super(0); + this.this$0 = gVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + a.a(this.this$0.j, true, null, "The connection timed out. Did not receive OP_HELLO in time."); + return Unit.a; + } + } + + public g(a aVar) { + this.j = aVar; + } + + @Override // java.util.TimerTask, java.lang.Runnable + public void run() { + this.j.m(new C0039a(this)); + } + } + + /* compiled from: RtcControlSocket.kt */ + public static final class h extends o implements Function0 { + public final /* synthetic */ int $code; + public final /* synthetic */ String $reason; + public final /* synthetic */ WebSocket $webSocket; + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(a aVar, WebSocket webSocket, int i, String str) { + super(0); + this.this$0 = aVar; + this.$webSocket = webSocket; + this.$code = i; + this.$reason = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + if (!(!m.areEqual(this.$webSocket, this.this$0.f270s))) { + a.a(this.this$0, true, Integer.valueOf(this.$code), this.$reason); + } + return Unit.a; + } + } + + /* compiled from: RtcControlSocket.kt */ + public static final class i extends o implements Function0 { + public final /* synthetic */ Throwable $t; + public final /* synthetic */ WebSocket $webSocket; + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(a aVar, WebSocket webSocket, Throwable th) { + super(0); + this.this$0 = aVar; + this.$webSocket = webSocket; + this.$t = th; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + if (!(!m.areEqual(this.$webSocket, this.this$0.f270s))) { + a aVar = this.this$0; + StringBuilder R = b.d.b.a.a.R("An error with the websocket occurred: "); + R.append(this.$t.getMessage()); + a.a(aVar, true, null, R.toString()); + } + return Unit.a; + } + } + + /* compiled from: RtcControlSocket.kt */ + public static final class j extends o implements Function0 { + public final /* synthetic */ Payloads.Incoming $message; + public final /* synthetic */ WebSocket $webSocket; + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j(a aVar, WebSocket webSocket, Payloads.Incoming incoming) { + super(0); + this.this$0 = aVar; + this.$webSocket = webSocket; + this.$message = incoming; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + boolean z2 = true; + if (!(!m.areEqual(this.$webSocket, this.this$0.f270s))) { + switch (this.$message.getOpcode()) { + case 2: + a aVar = this.this$0; + Object c = aVar.n.c(this.$message.getData(), Payloads.Ready.class); + m.checkNotNullExpressionValue(c, "gson.fromJson(message.da…yloads.Ready::class.java)"); + Payloads.Ready ready = (Payloads.Ready) c; + aVar.p.succeed(); + long currentTimeMillis = aVar.I.currentTimeMillis(); + Long l = aVar.A; + long longValue = currentTimeMillis - (l != null ? l.longValue() : 0); + aVar.i("[READY] took " + longValue + " ms"); + aVar.H.a(); + for (d dVar : aVar.q) { + m.checkNotNullExpressionValue(dVar, "it"); + dVar.k(ready.getPort(), ready.getSsrc(), ready.getIp(), ready.getStreams()); + } + break; + case 3: + a aVar2 = this.this$0; + aVar2.n(3, String.valueOf(aVar2.I.currentTimeMillis())); + break; + case 4: + a aVar3 = this.this$0; + Object c2 = aVar3.n.c(this.$message.getData(), Payloads.Description.class); + m.checkNotNullExpressionValue(c2, "gson.fromJson(message.da….Description::class.java)"); + Payloads.Description description = (Payloads.Description) c2; + aVar3.H.a(); + for (d dVar2 : aVar3.q) { + m.checkNotNullExpressionValue(dVar2, "it"); + dVar2.c(description.getMode(), description.getSecretKey()); + dVar2.a(description.getAudioCodec(), description.getVideoCodec()); + String mediaSessionId = description.getMediaSessionId(); + if (mediaSessionId != null) { + dVar2.d(mediaSessionId); + } + } + aVar3.C = true; + break; + case 5: + a aVar4 = this.this$0; + Object c3 = aVar4.n.c(this.$message.getData(), Payloads.Speaking.class); + m.checkNotNullExpressionValue(c3, "gson.fromJson(message.da…ads.Speaking::class.java)"); + Payloads.Speaking speaking = (Payloads.Speaking) c3; + if (!(speaking.getUserId() == null || speaking.getSpeaking() == null)) { + Integer speaking2 = speaking.getSpeaking(); + if (speaking2 == null || speaking2.intValue() != 1) { + z2 = false; + } + aVar4.H.a(); + for (d dVar3 : aVar4.q) { + m.checkNotNullExpressionValue(dVar3, "it"); + dVar3.onSpeaking(speaking.getUserId().longValue(), speaking.getSsrc(), z2); + } + break; + } + case 6: + a aVar5 = this.this$0; + Object c4 = aVar5.n.c(this.$message.getData(), Long.TYPE); + m.checkNotNullExpressionValue(c4, "gson.fromJson(message.data, Long::class.java)"); + long longValue2 = ((Number) c4).longValue(); + long currentTimeMillis2 = aVar5.I.currentTimeMillis(); + long j = currentTimeMillis2 - longValue2; + aVar5.h("got heartbeat ack after " + j + " ms"); + aVar5.f272y = Long.valueOf(currentTimeMillis2); + aVar5.w = true; + aVar5.H.a(); + for (d dVar4 : aVar5.q) { + m.checkNotNullExpressionValue(dVar4, "it"); + dVar4.g(j); + } + break; + case 7: + case 10: + case 11: + default: + a aVar6 = this.this$0; + StringBuilder R = b.d.b.a.a.R("unknown opcode: "); + R.append(this.$message.getOpcode()); + aVar6.i(R.toString()); + break; + case 8: + a aVar7 = this.this$0; + Object c5 = aVar7.n.c(this.$message.getData(), Payloads.Hello.class); + m.checkNotNullExpressionValue(c5, "gson.fromJson(message.da…yloads.Hello::class.java)"); + Payloads.Hello hello = (Payloads.Hello) c5; + TimerTask timerTask = aVar7.f273z; + if (timerTask != null) { + timerTask.cancel(); + } + aVar7.i("[HELLO] raw: " + hello); + aVar7.v = Long.valueOf(hello.getHeartbeatIntervalMs()); + aVar7.r = hello.getServerVersion(); + aVar7.f271x.cancel(); + aVar7.w = true; + aVar7.k(); + break; + case 9: + this.this$0.p.succeed(); + break; + case 12: + a aVar8 = this.this$0; + Object c6 = aVar8.n.c(this.$message.getData(), Payloads.Video.class); + m.checkNotNullExpressionValue(c6, "gson.fromJson(message.da…yloads.Video::class.java)"); + Payloads.Video video = (Payloads.Video) c6; + if (video.getUserId() != null) { + aVar8.H.a(); + for (d dVar5 : aVar8.q) { + m.checkNotNullExpressionValue(dVar5, "it"); + dVar5.e(video.getUserId().longValue(), video.getAudioSsrc(), video.getVideoSsrc(), video.getStreams()); + } + break; + } + break; + case 13: + a aVar9 = this.this$0; + Object c7 = aVar9.n.c(this.$message.getData(), Payloads.ClientDisconnect.class); + m.checkNotNullExpressionValue(c7, "gson.fromJson(message.da…ntDisconnect::class.java)"); + Payloads.ClientDisconnect clientDisconnect = (Payloads.ClientDisconnect) c7; + aVar9.H.a(); + for (d dVar6 : aVar9.q) { + m.checkNotNullExpressionValue(dVar6, "it"); + dVar6.j(clientDisconnect.getUserId()); + } + break; + case 14: + a aVar10 = this.this$0; + Object c8 = aVar10.n.c(this.$message.getData(), Payloads.SessionUpdate.class); + m.checkNotNullExpressionValue(c8, "gson.fromJson(message.da…essionUpdate::class.java)"); + Payloads.SessionUpdate sessionUpdate = (Payloads.SessionUpdate) c8; + aVar10.H.a(); + for (d dVar7 : aVar10.q) { + m.checkNotNullExpressionValue(dVar7, "it"); + String mediaSessionId2 = sessionUpdate.getMediaSessionId(); + if (mediaSessionId2 != null) { + dVar7.d(mediaSessionId2); + } + } + break; + case 15: + a aVar11 = this.this$0; + Gson gson = aVar11.n; + JsonElement data = this.$message.getData(); + Type type = a.k; + Objects.requireNonNull(gson); + Object d = data == null ? null : gson.d(new b.i.d.q.x.a(data), type); + m.checkNotNullExpressionValue(d, "gson.fromJson(message.data, MEDIA_SINK_WANTS_TYPE)"); + Map map = (Map) d; + aVar11.H.a(); + for (d dVar8 : aVar11.q) { + m.checkNotNullExpressionValue(dVar8, "it"); + dVar8.f(map); + } + break; + } + } + return Unit.a; + } + } + + /* compiled from: RtcControlSocket.kt */ + public static final class k extends o implements Function0 { + public final /* synthetic */ WebSocket $webSocket; + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(a aVar, WebSocket webSocket) { + super(0); + this.this$0 = aVar; + this.$webSocket = webSocket; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + boolean z2 = true; + if (!(!m.areEqual(this.$webSocket, this.this$0.f270s))) { + a aVar = this.this$0; + c cVar = aVar.B; + if (cVar == c.CONNECTING) { + aVar.H.a(); + for (d dVar : aVar.q) { + m.checkNotNullExpressionValue(dVar, "it"); + dVar.i(); + } + } else if (cVar == c.RECONNECTING) { + String str = aVar.u; + String str2 = aVar.t; + String str3 = aVar.E; + Long l = aVar.f272y; + if (l != null && aVar.I.currentTimeMillis() - l.longValue() > 60000) { + z2 = false; + } + if (str == null || str2 == null || !aVar.C || !z2) { + StringBuilder R = b.d.b.a.a.R("Cannot resume connection. resumable: "); + R.append(aVar.C); + R.append(" -- isHeartbeatRecentEnough: "); + R.append(z2); + aVar.f(false, 4801, R.toString()); + } else { + aVar.i("[RESUME] resuming session. serverId=" + str2 + " sessionId=" + str); + aVar.H.a(); + for (d dVar2 : aVar.q) { + m.checkNotNullExpressionValue(dVar2, "it"); + dVar2.h(); + } + aVar.B = c.RESUMING; + aVar.n(7, new Payloads.Resume(str3, str, str2)); + } + } + a aVar2 = this.this$0; + aVar2.B = c.CONNECTED; + long currentTimeMillis = aVar2.I.currentTimeMillis(); + Long l2 = this.this$0.A; + long longValue = currentTimeMillis - (l2 != null ? l2.longValue() : 0); + a aVar3 = this.this$0; + StringBuilder R2 = b.d.b.a.a.R("[CONNECTED] to "); + R2.append(this.this$0.D); + aVar3.i(R2.toString()); + a aVar4 = this.this$0; + aVar4.H.a(); + for (d dVar3 : aVar4.q) { + m.checkNotNullExpressionValue(dVar3, "it"); + dVar3.g(longValue / ((long) 2)); + } + } + return Unit.a; + } + } + + /* compiled from: RtcControlSocket.kt */ + public static final class l extends o implements Function1 { + public static final l j = new l(); + + public l() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(WebSocket webSocket) { + WebSocket webSocket2 = webSocket; + m.checkNotNullParameter(webSocket2, "it"); + webSocket2.e(SendUtils.MAX_MESSAGE_CHARACTER_COUNT_PREMIUM, "reconnecting"); + return Unit.a; + } + } + + public a(String str, String str2, SSLSocketFactory sSLSocketFactory, Logger logger, b.a.q.c cVar, Clock clock, String str3) { + m.checkNotNullParameter(str, "endpoint"); + m.checkNotNullParameter(str2, "token"); + m.checkNotNullParameter(logger, "logger"); + m.checkNotNullParameter(cVar, "mediaEngineThreadExecutor"); + m.checkNotNullParameter(clock, "clock"); + m.checkNotNullParameter(str3, "loggingTagPrefix"); + this.D = str; + this.E = str2; + this.F = sSLSocketFactory; + this.G = logger; + this.H = cVar; + this.I = clock; + this.J = str3; + StringBuilder V = b.d.b.a.a.V(str3, "->RtcControlSocket "); + int i2 = j + 1; + j = i2; + V.append(i2); + String sb = V.toString(); + this.m = sb; + this.p = new Backoff(1000, 5000, 3, false, new Backoff.TimerScheduler(sb, cVar), 8, null); + this.q = new CopyOnWriteArraySet<>(); + this.r = 3; + this.f271x = new b(this); + this.B = c.DISCONNECTED; + } + + public static final void a(a aVar, boolean z2, Integer num, String str) { + aVar.B = c.DISCONNECTED; + if ((num != null && num.intValue() == 4004) || ((num != null && num.intValue() == 4015) || ((num != null && num.intValue() == 4011) || (num != null && num.intValue() == 4006)))) { + aVar.f(true, num, str); + } else if (aVar.p.hasReachedFailureThreshold()) { + aVar.j("[WS CLOSED] Backoff exceeded. Resetting."); + aVar.f(z2, num, str); + } else { + aVar.b(null); + String M = b.d.b.a.a.M(new Object[]{Double.valueOf(((double) aVar.p.fail(new c(aVar, z2, num, str))) / 1000.0d)}, 1, "%.2f", "java.lang.String.format(this, *args)"); + aVar.j("`[WS CLOSED] (" + z2 + ", " + num + ", " + str + ") retrying in " + M + " seconds."); + } + } + + public final void b(Function1 function1) { + this.p.cancel(); + this.f271x.cancel(); + TimerTask timerTask = this.f273z; + if (timerTask != null) { + timerTask.cancel(); + } + WebSocket webSocket = this.f270s; + if (!(webSocket == null || function1 == null)) { + function1.invoke(webSocket); + } + this.f270s = null; + } + + public final void c() { + this.H.a(); + i("[CLOSE]"); + b(e.j); + this.t = null; + this.u = null; + this.C = false; + this.B = c.DISCONNECTED; + this.H.a(); + for (d dVar : this.q) { + m.checkNotNullExpressionValue(dVar, "it"); + dVar.b(false, 1000, "Force Close"); + } + } + + public final boolean d() { + this.H.a(); + if (this.B != c.DISCONNECTED) { + j("Cannot start a new connection, connection state is not disconnected"); + return false; + } + this.B = c.CONNECTING; + e(); + this.H.a(); + for (d dVar : this.q) { + m.checkNotNullExpressionValue(dVar, "it"); + dVar.onConnecting(); + } + return true; + } + + @Override // com.discord.utilities.debug.DebugPrintable + public void debugPrint(DebugPrintBuilder debugPrintBuilder) { + m.checkNotNullParameter(debugPrintBuilder, "dp"); + debugPrintBuilder.appendKeyValue("serverId", this.t); + debugPrintBuilder.appendKeyValue("sessionId", this.u); + debugPrintBuilder.appendKeyValue("heartbeatInterval", this.v); + debugPrintBuilder.appendKeyValue("lastHeartbeatAckTime", this.f272y); + debugPrintBuilder.appendKeyValue("connectionStartTime", this.A); + debugPrintBuilder.appendKeyValue("connectionState", this.B); + debugPrintBuilder.appendKeyValue("resumable", Boolean.valueOf(this.C)); + } + + public final void e() { + StringBuilder R = b.d.b.a.a.R("[CONNECT] "); + R.append(this.D); + i(R.toString()); + if (this.f270s != null) { + this.G.e(this.m, "Connect called with already existing websocket", null, null); + b(f.j); + return; + } + this.A = Long.valueOf(this.I.currentTimeMillis()); + TimerTask timerTask = this.f273z; + if (timerTask != null) { + timerTask.cancel(); + } + g gVar = new g(this); + this.f273z = gVar; + this.o.schedule(gVar, 20000); + x.a aVar = new x.a(); + aVar.a(1, TimeUnit.MINUTES); + SSLSocketFactory sSLSocketFactory = this.F; + if (sSLSocketFactory != null) { + h.a aVar2 = f0.e0.k.h.c; + aVar.b(sSLSocketFactory, f0.e0.k.h.a.n()); + } + String H = b.d.b.a.a.H(new StringBuilder(), this.D, "?v=5"); + i("attempting WSS connection with " + H); + x xVar = new x(aVar); + Request.a aVar3 = new Request.a(); + aVar3.f(H); + this.f270s = xVar.g(aVar3.a(), this); + } + + public final void f(boolean z2, Integer num, String str) { + j("[DISCONNECT] (" + z2 + ", " + num + ", " + str + ')'); + b(null); + this.t = null; + this.u = null; + this.C = false; + this.B = c.DISCONNECTED; + this.H.a(); + for (d dVar : this.q) { + m.checkNotNullExpressionValue(dVar, "it"); + dVar.b(z2, num, str); + } + } + + public final void g(long j2, String str, boolean z2) { + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_REASON); + this.H.a(); + if (this.f270s != null) { + i("Performing an immediate heartbeat on existing socket: " + str); + this.f271x.cancel(); + b bVar = new b(this); + this.f271x = bVar; + this.o.schedule(bVar, j2); + } else if (!z2) { + i("Immediate heartbeat requested, but is disconnected and a reset was not requested: " + str); + } else if (this.p.isPending() && this.f270s == null) { + i("Connection backoff reset Immediate heartbeat when socket was disconnected."); + this.p.succeed(); + l(false, 4802, "Reset backoff."); + } + } + + public final void h(String str) { + Logger.d$default(this.G, this.m, str, null, 4, null); + } + + public final void i(String str) { + Logger.i$default(this.G, this.m, str, null, 4, null); + } + + public final void j(String str) { + Logger.w$default(this.G, this.m, str, null, 4, null); + } + + public final void k() { + if (this.w) { + this.w = false; + n(3, String.valueOf(this.I.currentTimeMillis())); + Long l2 = this.v; + if (l2 != null) { + b bVar = new b(this); + this.f271x = bVar; + this.o.schedule(bVar, l2.longValue()); + return; + } + j("onHeartbeatInterval called when heartbeatInterval was null"); + return; + } + b(d.j); + String M = b.d.b.a.a.M(new Object[]{Double.valueOf(((double) this.p.fail(new e(this))) / 1000.0d)}, 1, "%.2f", "java.lang.String.format(this, *args)"); + j("[ACK TIMEOUT] reconnecting in " + M + " seconds."); + } + + public final void l(boolean z2, Integer num, String str) { + i("[RECONNECT] wasFatal=" + z2 + " code=" + num + " reason=" + str); + b(l.j); + this.B = c.RECONNECTING; + e(); + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + @AnyThread + public final void m(Function0 function0) { + b.a.q.c cVar = this.H; + if (function0 != null) { + function0 = new f(function0); + } + cVar.l.execute((Runnable) function0); + } + + public final void n(int i2, Object obj) { + WebSocket webSocket = this.f270s; + if (webSocket == null) { + StringBuilder R = b.d.b.a.a.R("opcode() websocket null. opcode: "); + R.append(Opcodes.INSTANCE.getNameOf(i2)); + this.G.e(this.m, R.toString(), null, null); + return; + } + try { + String m = this.n.m(new Payloads.Outgoing(i2, obj)); + h("sending (" + Opcodes.INSTANCE.getNameOf(i2) + "): " + m); + m.checkNotNullExpressionValue(m, "json"); + webSocket.a(m); + } catch (Exception unused) { + j("exception sending opcode: " + i2 + " and payload: " + obj); + } + } + + @Override // okhttp3.WebSocketListener + public void onClosed(WebSocket webSocket, int i2, String str) { + m.checkNotNullParameter(webSocket, "webSocket"); + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_REASON); + super.onClosed(webSocket, i2, str); + m(new h(this, webSocket, i2, str)); + } + + @Override // okhttp3.WebSocketListener + public void onClosing(WebSocket webSocket, int i2, String str) { + m.checkNotNullParameter(webSocket, "webSocket"); + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_REASON); + ((f0.e0.n.d) webSocket).e(i2, str); + } + + @Override // okhttp3.WebSocketListener + public void onFailure(WebSocket webSocket, Throwable th, Response response) { + m.checkNotNullParameter(webSocket, "webSocket"); + m.checkNotNullParameter(th, "t"); + super.onFailure(webSocket, th, response); + m(new i(this, webSocket, th)); + } + + @Override // okhttp3.WebSocketListener + public void onMessage(WebSocket webSocket, String str) { + m.checkNotNullParameter(webSocket, "webSocket"); + m.checkNotNullParameter(str, NotificationCompat.MessagingStyle.Message.KEY_TEXT); + Payloads.Incoming incoming = (Payloads.Incoming) b.i.a.f.e.o.f.v1(Payloads.Incoming.class).cast(this.n.g(str, Payloads.Incoming.class)); + super.onMessage(webSocket, str); + StringBuilder R = b.d.b.a.a.R("received ("); + R.append(Opcodes.INSTANCE.getNameOf(incoming.getOpcode())); + R.append("): "); + R.append(incoming); + h(R.toString()); + m(new j(this, webSocket, incoming)); + } + + @Override // okhttp3.WebSocketListener + public void onOpen(WebSocket webSocket, Response response) { + m.checkNotNullParameter(webSocket, "webSocket"); + m.checkNotNullParameter(response, "response"); + super.onOpen(webSocket, response); + m(new k(this, webSocket)); + } +} diff --git a/app/src/main/java/b/a/q/n0/b.java b/app/src/main/java/b/a/q/n0/b.java new file mode 100644 index 0000000000..ae9d54acd8 --- /dev/null +++ b/app/src/main/java/b/a/q/n0/b.java @@ -0,0 +1,40 @@ +package b.a.q.n0; + +import d0.z.d.o; +import java.util.TimerTask; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcControlSocket.kt */ +public final class b extends TimerTask { + public final /* synthetic */ a j; + + /* compiled from: RtcControlSocket.kt */ + public static final class a extends o implements Function0 { + public final /* synthetic */ b this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(b bVar) { + super(0); + this.this$0 = bVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + a aVar = this.this$0.j; + int i = a.j; + aVar.k(); + return Unit.a; + } + } + + public b(a aVar) { + this.j = aVar; + } + + @Override // java.util.TimerTask, java.lang.Runnable + public void run() { + this.j.m(new a(this)); + } +} diff --git a/app/src/main/java/b/a/q/n0/c.java b/app/src/main/java/b/a/q/n0/c.java new file mode 100644 index 0000000000..a49402185c --- /dev/null +++ b/app/src/main/java/b/a/q/n0/c.java @@ -0,0 +1,34 @@ +package b.a.q.n0; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcControlSocket.kt */ +public final class c extends o implements Function0 { + public final /* synthetic */ Integer $code; + public final /* synthetic */ String $reason; + public final /* synthetic */ boolean $wasFatal; + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(a aVar, boolean z2, Integer num, String str) { + super(0); + this.this$0 = aVar; + this.$wasFatal = z2; + this.$code = num; + this.$reason = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + a aVar = this.this$0; + boolean z2 = this.$wasFatal; + Integer num = this.$code; + String str = this.$reason; + int i = a.j; + aVar.l(z2, num, str); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/n0/d.java b/app/src/main/java/b/a/q/n0/d.java new file mode 100644 index 0000000000..62a4889f52 --- /dev/null +++ b/app/src/main/java/b/a/q/n0/d.java @@ -0,0 +1,25 @@ +package b.a.q.n0; + +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import okhttp3.WebSocket; +/* compiled from: RtcControlSocket.kt */ +public final class d extends o implements Function1 { + public static final d j = new d(); + + public d() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(WebSocket webSocket) { + WebSocket webSocket2 = webSocket; + m.checkNotNullParameter(webSocket2, "it"); + webSocket2.e(4800, "Heartbeat timeout."); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/n0/e.java b/app/src/main/java/b/a/q/n0/e.java new file mode 100644 index 0000000000..0d5886ae0c --- /dev/null +++ b/app/src/main/java/b/a/q/n0/e.java @@ -0,0 +1,25 @@ +package b.a.q.n0; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcControlSocket.kt */ +public final class e extends o implements Function0 { + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(a aVar) { + super(0); + this.this$0 = aVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + a aVar = this.this$0; + int i = a.j; + aVar.l(true, 4800, "Heartbeat timeout."); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/n0/f.java b/app/src/main/java/b/a/q/n0/f.java new file mode 100644 index 0000000000..67b6345ee4 --- /dev/null +++ b/app/src/main/java/b/a/q/n0/f.java @@ -0,0 +1,17 @@ +package b.a.q.n0; + +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcControlSocket.kt */ +public final class f implements Runnable { + public final /* synthetic */ Function0 j; + + public f(Function0 function0) { + this.j = function0; + } + + @Override // java.lang.Runnable + public final /* synthetic */ void run() { + m.checkNotNullExpressionValue(this.j.mo1invoke(), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/q/o.java b/app/src/main/java/b/a/q/o.java new file mode 100644 index 0000000000..adafadfab0 --- /dev/null +++ b/app/src/main/java/b/a/q/o.java @@ -0,0 +1,38 @@ +package b.a.q; + +import b.a.q.n0.a; +import com.discord.rtcconnection.RtcConnection; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcConnection.kt */ +public final class o extends d0.z.d.o implements Function0 { + public final /* synthetic */ Boolean $isConnected; + public final /* synthetic */ p this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public o(p pVar, Boolean bool) { + super(0); + this.this$0 = pVar; + this.$isConnected = bool; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + RtcConnection rtcConnection = this.this$0.j; + Boolean bool = this.$isConnected; + m.checkNotNullExpressionValue(bool, "isConnected"); + boolean booleanValue = bool.booleanValue(); + a aVar = rtcConnection.w; + if (aVar == null) { + RtcConnection.o(rtcConnection, "handleConnectivityChange() socket was null.", null, null, 6); + } else if (booleanValue) { + aVar.g(5000, "network detected online", true); + } else { + aVar.g(15000, "network detected offline", false); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/o0/a.java b/app/src/main/java/b/a/q/o0/a.java new file mode 100644 index 0000000000..cab65ea6e6 --- /dev/null +++ b/app/src/main/java/b/a/q/o0/a.java @@ -0,0 +1,123 @@ +package b.a.q.o0; + +import b.a.q.o0.e; +import co.discord.media_engine.InboundRtpVideo; +import co.discord.media_engine.OutboundRtpAudio; +import co.discord.media_engine.OutboundRtpVideo; +import co.discord.media_engine.ReceiverReport; +import co.discord.media_engine.Stats; +import co.discord.media_engine.Transport; +import com.discord.rtcconnection.KrispOveruseDetector; +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import com.discord.utilities.logging.Logger; +import d0.z.d.k; +import d0.z.d.m; +import f0.e0.c; +import java.util.Map; +import java.util.Objects; +import kotlin.Pair; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: RtcStatsCollector.kt */ +public final /* synthetic */ class a extends k implements Function1 { + public a(d dVar) { + super(1, dVar, d.class, "onStatsReceived", "onStatsReceived(Lco/discord/media_engine/Stats;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Stats stats) { + long j; + OutboundRtpVideo outboundRtpVideo; + ReceiverReport[] receiverReports; + Stats stats2 = stats; + m.checkNotNullParameter(stats2, "p1"); + d dVar = (d) this.receiver; + dVar.a.add(stats2); + if (dVar.a.size() > dVar.i) { + dVar.a.removeFirst(); + } + dVar.f.update(stats2); + e eVar = dVar.g; + synchronized (eVar) { + m.checkNotNullParameter(stats2, "stats"); + long currentTimeMillis = eVar.q.currentTimeMillis(); + Transport transport = stats2.getTransport(); + eVar.g(null, Integer.valueOf((transport == null || (receiverReports = transport.getReceiverReports()) == null) ? 0 : receiverReports.length), currentTimeMillis); + if (!eVar.k.a() && (outboundRtpVideo = stats2.getOutboundRtpVideo()) != null) { + eVar.a(eVar.l, new e.g((long) outboundRtpVideo.getResolution().getHeight(), currentTimeMillis, new e.a(outboundRtpVideo.getFramesEncoded(), outboundRtpVideo.getFramesSent(), outboundRtpVideo.getPacketsSent(), (long) outboundRtpVideo.getPacketsLost(), 0, outboundRtpVideo.getBytesSent(), outboundRtpVideo.getNackCount(), outboundRtpVideo.getPliCount(), outboundRtpVideo.getQpSum(), 0, 0, 0, 0, 0))); + if (eVar.l.d == null && outboundRtpVideo.getFramesEncoded() > 0) { + eVar.l.d = Long.valueOf(currentTimeMillis - eVar.g); + Logger.i$default(eVar.p, "VideoQuality: outboundStats.timeToFirstFrame: " + eVar.l.d, null, 2, null); + } + eVar.b(outboundRtpVideo.getBitrateTarget()); + } + if (!eVar.i.a()) { + for (Map.Entry entry : stats2.getInboundRtpVideo().entrySet()) { + String key = entry.getKey(); + InboundRtpVideo value = entry.getValue(); + Map map = eVar.m; + e.C0040e eVar2 = map.get(key); + if (eVar2 == null) { + eVar2 = new e.C0040e(); + map.put(key, eVar2); + } + e.C0040e eVar3 = eVar2; + eVar.a(eVar3, eVar.f(value, currentTimeMillis)); + if (eVar3.d == null && value.getFramesDecoded() > 0) { + byte[] bArr = c.a; + m.checkParameterIsNotNull(key, "$this$toLongOrDefault"); + try { + j = Long.parseLong(key); + } catch (NumberFormatException unused) { + j = 0; + } + Long l = eVar.n.get(Long.valueOf(value.getSsrc())); + if (l != null) { + eVar3.d = Long.valueOf(currentTimeMillis - l.longValue()); + Logger.i$default(eVar.p, "VideoQuality: inbound.timeToFirstFrame: " + eVar3.d + " (userId: " + j + ", ssrc: " + value.getSsrc() + ')', null, 2, null); + } else { + Logger.e$default(eVar.p, "VideoQuality: inbound.timeToFirstFrame: Unable to locate start time. (userId: " + j + ", ssrc: " + value.getSsrc() + ')', null, null, 6, null); + } + } + } + } + } + KrispOveruseDetector krispOveruseDetector = dVar.h; + Objects.requireNonNull(krispOveruseDetector); + m.checkNotNullParameter(stats2, "stats"); + if (krispOveruseDetector.d.getType() == MediaEngineConnection.Type.DEFAULT && krispOveruseDetector.d.b()) { + OutboundRtpAudio outboundRtpAudio = stats2.getOutboundRtpAudio(); + if (outboundRtpAudio != null && outboundRtpAudio.getNoiseCancellerIsEnabled()) { + OutboundRtpAudio outboundRtpAudio2 = krispOveruseDetector.f2727b; + if (outboundRtpAudio2 != null) { + Pair a = krispOveruseDetector.a(outboundRtpAudio2, stats2.getOutboundRtpAudio(), 8.0d); + boolean booleanValue = a.component1().booleanValue(); + long longValue = a.component2().longValue(); + if (booleanValue) { + krispOveruseDetector.d.f(KrispOveruseDetector.Status.CPU_OVERUSE); + } else if (longValue == 0) { + int i = krispOveruseDetector.c + 1; + krispOveruseDetector.c = i; + if (i > 2) { + krispOveruseDetector.d.f(KrispOveruseDetector.Status.FAILED); + } + } else { + krispOveruseDetector.c = 0; + } + } + krispOveruseDetector.f2727b = stats2.getOutboundRtpAudio(); + } + OutboundRtpAudio outboundRtpAudio3 = stats2.getOutboundRtpAudio(); + if (outboundRtpAudio3 != null && outboundRtpAudio3.getVoiceActivityDetectorIsEnabled()) { + OutboundRtpAudio outboundRtpAudio4 = krispOveruseDetector.a; + if (outboundRtpAudio4 != null && krispOveruseDetector.a(outboundRtpAudio4, stats2.getOutboundRtpAudio(), 4.0d).component1().booleanValue()) { + krispOveruseDetector.d.f(KrispOveruseDetector.Status.VAD_CPU_OVERUSE); + } + krispOveruseDetector.a = stats2.getOutboundRtpAudio(); + } + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/o0/b.java b/app/src/main/java/b/a/q/o0/b.java new file mode 100644 index 0000000000..6c5a87c6f8 --- /dev/null +++ b/app/src/main/java/b/a/q/o0/b.java @@ -0,0 +1,17 @@ +package b.a.q.o0; + +import rx.functions.Action1; +/* compiled from: RtcStatsCollector.kt */ +public final class b implements Action1 { + public final /* synthetic */ d j; + + public b(d dVar) { + this.j = dVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Long l) { + this.j.e.n(new a(this.j)); + } +} diff --git a/app/src/main/java/b/a/q/o0/c.java b/app/src/main/java/b/a/q/o0/c.java new file mode 100644 index 0000000000..a8034abda5 --- /dev/null +++ b/app/src/main/java/b/a/q/o0/c.java @@ -0,0 +1,18 @@ +package b.a.q.o0; + +import com.discord.utilities.logging.Logger; +import rx.functions.Action1; +/* compiled from: RtcStatsCollector.kt */ +public final class c implements Action1 { + public final /* synthetic */ d j; + + public c(d dVar) { + this.j = dVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + Logger.e$default(this.j.d, "RtcStatsCollector: Error collecting stats", th, null, 4, null); + } +} diff --git a/app/src/main/java/b/a/q/o0/d.java b/app/src/main/java/b/a/q/o0/d.java new file mode 100644 index 0000000000..e3de3f0d75 --- /dev/null +++ b/app/src/main/java/b/a/q/o0/d.java @@ -0,0 +1,49 @@ +package b.a.q.o0; + +import co.discord.media_engine.Stats; +import co.discord.media_engine.VoiceQuality; +import com.discord.rtcconnection.KrispOveruseDetector; +import com.discord.rtcconnection.mediaengine.MediaEngineConnection; +import com.discord.utilities.logging.Logger; +import d0.z.d.m; +import java.util.Deque; +import java.util.LinkedList; +import rx.Subscription; +/* compiled from: RtcStatsCollector.kt */ +public final class d { + public final Deque a; + + /* renamed from: b reason: collision with root package name */ + public Subscription f274b; + public final long c; + public final Logger d; + public final MediaEngineConnection e; + public final VoiceQuality f; + public final e g; + public final KrispOveruseDetector h; + public final int i; + + public d(long j, Logger logger, MediaEngineConnection mediaEngineConnection, VoiceQuality voiceQuality, e eVar, KrispOveruseDetector krispOveruseDetector, int i, int i2) { + i = (i2 & 64) != 0 ? 30 : i; + m.checkNotNullParameter(logger, "logger"); + m.checkNotNullParameter(mediaEngineConnection, "connection"); + m.checkNotNullParameter(voiceQuality, "voiceQuality"); + m.checkNotNullParameter(eVar, "videoQuality"); + m.checkNotNullParameter(krispOveruseDetector, "krispOveruseDetector"); + this.c = j; + this.d = logger; + this.e = mediaEngineConnection; + this.f = voiceQuality; + this.g = eVar; + this.h = krispOveruseDetector; + this.i = i; + this.a = new LinkedList(); + } + + public final void a() { + Subscription subscription = this.f274b; + if (subscription != null) { + subscription.unsubscribe(); + } + } +} diff --git a/app/src/main/java/b/a/q/o0/e.java b/app/src/main/java/b/a/q/o0/e.java new file mode 100644 index 0000000000..36c0408fe5 --- /dev/null +++ b/app/src/main/java/b/a/q/o0/e.java @@ -0,0 +1,538 @@ +package b.a.q.o0; + +import androidx.annotation.AnyThread; +import co.discord.media_engine.InboundRtpVideo; +import com.discord.utilities.collections.Histogram; +import com.discord.utilities.collections.ListenerCollection; +import com.discord.utilities.collections.ListenerCollectionSubject; +import com.discord.utilities.logging.Logger; +import com.discord.utilities.system.DeviceResourceUsageMonitor; +import com.discord.utilities.time.Clock; +import com.discord.utilities.time.TimeSpan; +import d0.t.h0; +import d0.t.n; +import d0.t.r; +import d0.z.d.m; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import kotlin.Pair; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: VideoQuality.kt */ +public final class e { + public static final List a = n.listOf((Object[]) new Integer[]{0, 500000, 1000000, 1500000, 2000000, 3000000, 4000000, 5000000, 6000000, 7000000, 8000000}); + + /* renamed from: b reason: collision with root package name */ + public static final List f275b = n.listOf((Object[]) new Integer[]{0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60}); + public static final List c = n.listOf((Object[]) new Integer[]{720, 480, 360}); + public static final b d = new b(null); + public final ListenerCollectionSubject e; + public final ListenerCollection f; + public final long g; + public Long h; + public final d i; + public final d j; + public final d k; + public final f l = new f(); + public final Map m = new LinkedHashMap(); + public final Map n = new LinkedHashMap(); + public final DeviceResourceUsageMonitor o; + public final Logger p; + public final Clock q; + + /* compiled from: VideoQuality.kt */ + public static final class a { + public long a; + + /* renamed from: b reason: collision with root package name */ + public long f276b; + public long c; + public long d; + public long e; + public long f; + public long g; + public long h; + public long i; + public long j; + public long k; + public long l; + public long m; + public long n; + + public a() { + this(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16383); + } + + public a(long j, long j2, long j3, long j4, long j5, long j6, long j7, long j8, long j9, long j10, long j11, long j12, long j13, long j14) { + this.a = j; + this.f276b = j2; + this.c = j3; + this.d = j4; + this.e = j5; + this.f = j6; + this.g = j7; + this.h = j8; + this.i = j9; + this.j = j10; + this.k = j11; + this.l = j12; + this.m = j13; + this.n = j14; + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public /* synthetic */ a(long j, long j2, long j3, long j4, long j5, long j6, long j7, long j8, long j9, long j10, long j11, long j12, long j13, long j14, int i) { + this((i & 1) != 0 ? 0 : j, (i & 2) != 0 ? 0 : j2, (i & 4) != 0 ? 0 : j3, (i & 8) != 0 ? 0 : j4, (i & 16) != 0 ? 0 : j5, (i & 32) != 0 ? 0 : j6, (i & 64) != 0 ? 0 : j7, (i & 128) != 0 ? 0 : j8, (i & 256) != 0 ? 0 : j9, (i & 512) != 0 ? 0 : j10, (i & 1024) != 0 ? 0 : j11, (i & 2048) != 0 ? 0 : j12, (i & 4096) != 0 ? 0 : j13, (i & 8192) == 0 ? j14 : 0); + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.f276b == aVar.f276b && this.c == aVar.c && this.d == aVar.d && this.e == aVar.e && this.f == aVar.f && this.g == aVar.g && this.h == aVar.h && this.i == aVar.i && this.j == aVar.j && this.k == aVar.k && this.l == aVar.l && this.m == aVar.m && this.n == aVar.n; + } + + public int hashCode() { + int a = a0.a.a.b.a(this.f276b); + int a2 = a0.a.a.b.a(this.c); + int a3 = a0.a.a.b.a(this.d); + int a4 = a0.a.a.b.a(this.e); + int a5 = a0.a.a.b.a(this.f); + int a6 = a0.a.a.b.a(this.g); + int a7 = a0.a.a.b.a(this.h); + int a8 = a0.a.a.b.a(this.i); + int a9 = a0.a.a.b.a(this.j); + int a10 = a0.a.a.b.a(this.k); + int a11 = a0.a.a.b.a(this.l); + int a12 = a0.a.a.b.a(this.m); + return a0.a.a.b.a(this.n) + ((a12 + ((a11 + ((a10 + ((a9 + ((a8 + ((a7 + ((a6 + ((a5 + ((a4 + ((a3 + ((a2 + ((a + (a0.a.a.b.a(this.a) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("AggregatedProperties(framesCodec="); + R.append(this.a); + R.append(", framesNetwork="); + R.append(this.f276b); + R.append(", packets="); + R.append(this.c); + R.append(", packetsLost="); + R.append(this.d); + R.append(", framesDropped="); + R.append(this.e); + R.append(", bytes="); + R.append(this.f); + R.append(", nackCount="); + R.append(this.g); + R.append(", pliCount="); + R.append(this.h); + R.append(", qpSum="); + R.append(this.i); + R.append(", freezeCount="); + R.append(this.j); + R.append(", pauseCount="); + R.append(this.k); + R.append(", totalFreezesDuration="); + R.append(this.l); + R.append(", totalPausesDuration="); + R.append(this.m); + R.append(", totalFramesDuration="); + return b.d.b.a.a.B(R, this.n, ")"); + } + } + + /* compiled from: VideoQuality.kt */ + public static final class b { + public b(DefaultConstructorMarker defaultConstructorMarker) { + } + + public static final long a(b bVar, Float f) { + if (f != null) { + return d0.a0.a.roundToLong(f.floatValue()); + } + return 0; + } + } + + /* compiled from: VideoQuality.kt */ + public static abstract class c { + } + + /* compiled from: VideoQuality.kt */ + public static final class d { + public Long a; + + /* renamed from: b reason: collision with root package name */ + public long f277b; + + public d(boolean z2, long j) { + this.a = z2 ? Long.valueOf(j) : null; + } + + public final boolean a() { + return this.a != null; + } + + public final void b(boolean z2, long j) { + Long l = this.a; + if (l == null) { + if (z2) { + this.a = Long.valueOf(j); + } + } else if (l != null) { + long longValue = l.longValue(); + if (!z2) { + this.f277b = (j - longValue) + this.f277b; + this.a = null; + } + } + } + + public final long c(long j) { + Long l = this.a; + if (l == null) { + return this.f277b; + } + return (this.f277b + j) - l.longValue(); + } + } + + /* compiled from: VideoQuality.kt */ + /* renamed from: b.a.q.o0.e$e reason: collision with other inner class name */ + public static class C0040e { + public List a = new ArrayList(); + + /* renamed from: b reason: collision with root package name */ + public final Histogram f278b = new Histogram(5, 0, 2, null); + public final Histogram c = new Histogram(25600, 0, 2, null); + public Long d; + public a e = new a(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16383); + public long f; + public Map g = new LinkedHashMap(); + public Map h = new LinkedHashMap(); + public float i; + public Map j = new LinkedHashMap(); + + public C0040e() { + for (Number number : e.a) { + this.g.put(Integer.valueOf(number.intValue()), Float.valueOf(0.0f)); + } + for (Number number2 : e.f275b) { + this.h.put(Integer.valueOf(number2.intValue()), Float.valueOf(0.0f)); + } + for (Number number3 : e.c) { + this.j.put(Integer.valueOf(number3.intValue()), Float.valueOf(0.0f)); + } + } + } + + /* compiled from: VideoQuality.kt */ + public static final class f extends C0040e { + public int k = 2500000; + public int l = 30; + public long m; + public long n; + public long o; + } + + /* compiled from: VideoQuality.kt */ + public static final class g { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f279b; + public final a c; + + public g() { + this(0, 0, new a(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16383)); + } + + public g(long j, long j2, a aVar) { + m.checkNotNullParameter(aVar, "aggregatedProperties"); + this.a = j; + this.f279b = j2; + this.c = aVar; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof g)) { + return false; + } + g gVar = (g) obj; + return this.a == gVar.a && this.f279b == gVar.f279b && m.areEqual(this.c, gVar.c); + } + + public int hashCode() { + int a = (a0.a.a.b.a(this.f279b) + (a0.a.a.b.a(this.a) * 31)) * 31; + a aVar = this.c; + return a + (aVar != null ? aVar.hashCode() : 0); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("RawVideoStats(resolution="); + R.append(this.a); + R.append(", timestamp="); + R.append(this.f279b); + R.append(", aggregatedProperties="); + R.append(this.c); + R.append(")"); + return R.toString(); + } + } + + /* compiled from: VideoQuality.kt */ + public static final class h extends o implements Function1 { + public final /* synthetic */ e this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(e eVar) { + super(1); + this.this$0 = eVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(DeviceResourceUsageMonitor.ResourceUsage resourceUsage) { + DeviceResourceUsageMonitor.ResourceUsage resourceUsage2 = resourceUsage; + m.checkNotNullParameter(resourceUsage2, "it"); + e eVar = this.this$0; + List list = e.a; + synchronized (eVar) { + for (Map.Entry entry : eVar.m.entrySet()) { + C0040e value = entry.getValue(); + value.f278b.addSample((long) resourceUsage2.getCpuUsagePercent()); + value.c.addSample(resourceUsage2.getMemoryRssBytes()); + } + eVar.l.f278b.addSample((long) resourceUsage2.getCpuUsagePercent()); + eVar.l.c.addSample(resourceUsage2.getMemoryRssBytes()); + } + return Unit.a; + } + } + + public e(Logger logger, Clock clock) { + m.checkNotNullParameter(logger, "logger"); + m.checkNotNullParameter(clock, "clock"); + this.p = logger; + this.q = clock; + ListenerCollectionSubject listenerCollectionSubject = new ListenerCollectionSubject<>(); + this.e = listenerCollectionSubject; + this.f = listenerCollectionSubject; + long currentTimeMillis = clock.currentTimeMillis(); + this.g = currentTimeMillis; + this.i = new d(false, currentTimeMillis); + this.j = new d(false, currentTimeMillis); + this.k = new d(false, currentTimeMillis); + DeviceResourceUsageMonitor deviceResourceUsageMonitor = new DeviceResourceUsageMonitor(new TimeSpan(1, TimeUnit.SECONDS), clock, new h(this)); + this.o = deviceResourceUsageMonitor; + deviceResourceUsageMonitor.start(); + } + + public final void a(C0040e eVar, g gVar) { + eVar.a.add(gVar); + if (eVar.a.size() >= 2) { + List list = eVar.a; + g gVar2 = list.get(list.size() - 1); + List list2 = eVar.a; + g gVar3 = list2.get(list2.size() - 2); + f fVar = f.j; + eVar.f = (gVar2.f279b - gVar3.f279b) + eVar.f; + a aVar = eVar.e; + a aVar2 = gVar2.c; + a aVar3 = gVar3.c; + aVar.a = fVar.a(aVar2.a, aVar3.a) + aVar.a; + aVar.f276b = fVar.a(aVar2.f276b, aVar3.f276b) + aVar.f276b; + aVar.c = fVar.a(aVar2.c, aVar3.c) + aVar.c; + aVar.d = fVar.a(aVar2.d, aVar3.d) + aVar.d; + aVar.e = fVar.a(aVar2.e, aVar3.e) + aVar.e; + aVar.f = fVar.a(aVar2.f, aVar3.f) + aVar.f; + aVar.g = fVar.a(aVar2.g, aVar3.g) + aVar.g; + aVar.h = fVar.a(aVar2.h, aVar3.h) + aVar.h; + aVar.i = fVar.a(aVar2.i, aVar3.i) + aVar.i; + aVar.j = fVar.a(aVar2.j, aVar3.j) + aVar.j; + aVar.k = fVar.a(aVar2.j, aVar3.j) + aVar.k; + aVar.l = fVar.a(aVar2.l, aVar3.l) + aVar.l; + aVar.m = fVar.a(aVar2.m, aVar3.m) + aVar.m; + aVar.n = fVar.a(aVar2.n, aVar3.n) + aVar.n; + a aVar4 = gVar2.c; + long j = aVar4.f; + long j2 = aVar4.a; + long j3 = gVar2.f279b; + long j4 = gVar2.a; + float f2 = ((float) (j3 - gVar3.f279b)) / 1000.0f; + eVar.i = (((float) j4) * f2) + eVar.i; + if (eVar.a.size() >= 6) { + List list3 = eVar.a; + g gVar4 = list3.get(list3.size() - 3); + a aVar5 = gVar4.c; + long j5 = aVar5.f; + long j6 = aVar5.a; + long j7 = gVar4.f279b; + Iterator it = c.iterator(); + while (true) { + float f3 = 0.0f; + if (!it.hasNext()) { + break; + } + int intValue = ((Number) it.next()).intValue(); + if (j4 <= ((long) intValue)) { + Map map = eVar.j; + Integer valueOf = Integer.valueOf(intValue); + Float f4 = eVar.j.get(Integer.valueOf(intValue)); + if (f4 != null) { + f3 = f4.floatValue(); + } + map.put(valueOf, Float.valueOf(f3 + f2)); + } + j2 = j2; + j6 = j6; + } + float f5 = ((float) (j3 - j7)) / 1000.0f; + float f6 = ((float) ((j - j5) * ((long) 8))) / f5; + float f7 = ((float) (j2 - j6)) / f5; + for (Number number : a) { + int intValue2 = number.intValue(); + if (f6 <= ((float) intValue2)) { + Map map2 = eVar.g; + Integer valueOf2 = Integer.valueOf(intValue2); + Float f8 = eVar.g.get(Integer.valueOf(intValue2)); + map2.put(valueOf2, Float.valueOf((f8 != null ? f8.floatValue() : 0.0f) + f2)); + } + } + for (Number number2 : f275b) { + int intValue3 = number2.intValue(); + if (f7 <= ((float) intValue3)) { + Map map3 = eVar.h; + Integer valueOf3 = Integer.valueOf(intValue3); + Float f9 = eVar.h.get(Integer.valueOf(intValue3)); + map3.put(valueOf3, Float.valueOf((f9 != null ? f9.floatValue() : 0.0f) + f2)); + } + } + r.removeFirst(eVar.a); + } + } + } + + public final void b(int i) { + if (this.l.a.size() >= 2) { + List list = this.l.a; + long j = list.get(list.size() - 1).f279b; + List list2 = this.l.a; + float f2 = ((float) (j - list2.get(list2.size() - 2).f279b)) / 1000.0f; + f fVar = this.l; + long j2 = fVar.m; + Float valueOf = Float.valueOf(((float) fVar.l) * f2); + long j3 = 0; + fVar.m = j2 + (valueOf != null ? d0.a0.a.roundToLong(valueOf.floatValue()) : 0); + f fVar2 = this.l; + long j4 = fVar2.n; + Float valueOf2 = Float.valueOf((((float) i) / 8.0f) * f2); + fVar2.n = j4 + (valueOf2 != null ? d0.a0.a.roundToLong(valueOf2.floatValue()) : 0); + f fVar3 = this.l; + long j5 = fVar3.o; + Float valueOf3 = Float.valueOf((((float) fVar3.k) / 8.0f) * f2); + if (valueOf3 != null) { + j3 = d0.a0.a.roundToLong(valueOf3.floatValue()); + } + fVar3.o = j5 + j3; + } + } + + @AnyThread + public final synchronized Map c(String str) { + C0040e eVar; + m.checkNotNullParameter(str, "userId"); + eVar = this.m.get(str); + return eVar != null ? e(eVar) : null; + } + + @AnyThread + public final synchronized Map d() { + f fVar; + float f2; + int i; + Float valueOf; + Float valueOf2; + Float valueOf3; + fVar = this.l; + f2 = ((float) fVar.f) / 1000.0f; + i = (f2 > ((float) 0) ? 1 : (f2 == ((float) 0) ? 0 : -1)); + return h0.plus(e(this.l), h0.mapOf(d0.o.to("target_bitrate_max", Long.valueOf((i <= 0 || (valueOf3 = Float.valueOf(((float) (fVar.o * ((long) 8))) / f2)) == null) ? 0 : d0.a0.a.roundToLong(valueOf3.floatValue()))), d0.o.to("target_bitrate_network", Long.valueOf((i <= 0 || (valueOf2 = Float.valueOf(((float) (this.l.n * ((long) 8))) / f2)) == null) ? 0 : d0.a0.a.roundToLong(valueOf2.floatValue()))), d0.o.to("target_fps", Long.valueOf((i <= 0 || (valueOf = Float.valueOf(((float) this.l.m) / f2)) == null) ? 0 : d0.a0.a.roundToLong(valueOf.floatValue()))), d0.o.to("duration_encoder_nvidia_cuda", 0L), d0.o.to("duration_encoder_nvidia_direct3d", 0L), d0.o.to("duration_encoder_openh264", 0L), d0.o.to("duration_encoder_videotoolbox", 0L), d0.o.to("duration_encoder_amd_direct3d", 0L), d0.o.to("duration_encoder_intel", 0L), d0.o.to("duration_encoder_intel_direct3d", 0L), d0.o.to("duration_encoder_unknown", 0L))); + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x04e4: APUT + (r6v4 kotlin.Pair[]) + (6 ??[int, float, short, byte, char]) + (wrap: kotlin.Pair : 0x04df: INVOKE (r1v3 kotlin.Pair) = + ("time_to_first_frame_ms") + (wrap: java.lang.Long : 0x04d8: INVOKE (r1v2 java.lang.Long) = (r4v22 long) type: STATIC call: java.lang.Long.valueOf(long):java.lang.Long) + type: STATIC call: d0.o.to(java.lang.Object, java.lang.Object):kotlin.Pair) + */ + public final Map e(C0040e eVar) { + Float valueOf; + long currentTimeMillis = this.q.currentTimeMillis(); + Long l = this.h; + float longValue = ((float) (l != null ? l.longValue() - this.g : currentTimeMillis - this.g)) / 1000.0f; + float f2 = ((float) eVar.f) / 1000.0f; + int i = (f2 > ((float) 0) ? 1 : (f2 == ((float) 0) ? 0 : -1)); + long roundToLong = (i <= 0 || (valueOf = Float.valueOf(eVar.i / f2)) == null) ? 0 : d0.a0.a.roundToLong(valueOf.floatValue()); + Histogram.Report report = eVar.f278b.getReport(); + Histogram.Report report2 = eVar.c.getReport(); + b bVar = d; + long j = (long) 1024; + Map mapOf = h0.mapOf(d0.o.to("duration", Double.valueOf(Math.floor((double) longValue))), b.d.b.a.a.Z(bVar, eVar.g.get(8000000), "duration_stream_under_8mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(7000000), "duration_stream_under_7mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(6000000), "duration_stream_under_6mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(5000000), "duration_stream_under_5mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(4000000), "duration_stream_under_4mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(3000000), "duration_stream_under_3mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(2000000), "duration_stream_under_2mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(1500000), "duration_stream_under_1_5mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(1000000), "duration_stream_under_1mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(500000), "duration_stream_under_0_5mbps"), b.d.b.a.a.Z(bVar, eVar.g.get(0), "duration_stream_at_0mbps"), b.d.b.a.a.Z(bVar, eVar.h.get(60), "duration_fps_under_60"), b.d.b.a.a.Z(bVar, eVar.h.get(55), "duration_fps_under_55"), b.d.b.a.a.Z(bVar, eVar.h.get(50), "duration_fps_under_50"), b.d.b.a.a.Z(bVar, eVar.h.get(45), "duration_fps_under_45"), b.d.b.a.a.Z(bVar, eVar.h.get(40), "duration_fps_under_40"), b.d.b.a.a.Z(bVar, eVar.h.get(35), "duration_fps_under_35"), b.d.b.a.a.Z(bVar, eVar.h.get(30), "duration_fps_under_30"), b.d.b.a.a.Z(bVar, eVar.h.get(25), "duration_fps_under_25"), b.d.b.a.a.Z(bVar, eVar.h.get(20), "duration_fps_under_20"), b.d.b.a.a.Z(bVar, eVar.h.get(15), "duration_fps_under_15"), b.d.b.a.a.Z(bVar, eVar.h.get(10), "duration_fps_under_10"), b.d.b.a.a.Z(bVar, eVar.h.get(5), "duration_fps_under_5"), b.d.b.a.a.Z(bVar, eVar.h.get(0), "duration_fps_at_0"), d0.o.to("avg_resolution", Long.valueOf(roundToLong)), b.d.b.a.a.Z(bVar, eVar.j.get(720), "duration_resolution_under_720"), b.d.b.a.a.Z(bVar, eVar.j.get(480), "duration_resolution_under_480"), b.d.b.a.a.Z(bVar, eVar.j.get(360), "duration_resolution_under_360"), d0.o.to("num_pauses", 0), d0.o.to("duration_paused", Long.valueOf(b.a(bVar, Float.valueOf(((float) this.i.c(currentTimeMillis)) / 1000.0f)))), d0.o.to("duration_zero_receivers", Long.valueOf(b.a(bVar, Float.valueOf(((float) this.j.c(currentTimeMillis)) / 1000.0f)))), d0.o.to("duration_video_stopped", Long.valueOf(b.a(bVar, Float.valueOf(((float) this.k.c(currentTimeMillis)) / 1000.0f)))), d0.o.to("client_performance_cpu_percentile25", Long.valueOf(report.getPercentile25())), d0.o.to("client_performance_cpu_percentile50", Long.valueOf(report.getPercentile50())), d0.o.to("client_performance_cpu_percentile75", Long.valueOf(report.getPercentile75())), d0.o.to("client_performance_cpu_percentile90", Long.valueOf(report.getPercentile90())), d0.o.to("client_performance_cpu_percentile95", Long.valueOf(report.getPercentile95())), d0.o.to("client_performance_memory_percentile25", Long.valueOf(report2.getPercentile25() / j)), d0.o.to("client_performance_memory_percentile50", Long.valueOf(report2.getPercentile50() / j)), d0.o.to("client_performance_memory_percentile75", Long.valueOf(report2.getPercentile75() / j)), d0.o.to("client_performance_memory_percentile90", Long.valueOf(report2.getPercentile90() / j)), d0.o.to("client_performance_memory_percentile95", Long.valueOf(report2.getPercentile95() / j)), d0.o.to("client_performance_memory_min", Long.valueOf(report2.getMin() / j)), d0.o.to("client_performance_memory_max", Long.valueOf(report2.getMax() / j))); + a aVar = eVar.e; + long a2 = i > 0 ? b.a(bVar, Float.valueOf(((float) (aVar.f * ((long) 8))) / f2)) : 0; + long a3 = i > 0 ? b.a(bVar, Float.valueOf(((float) aVar.a) / f2)) : 0; + Pair[] pairArr = new Pair[16]; + pairArr[0] = d0.o.to("avg_bitrate", Long.valueOf(a2)); + pairArr[1] = d0.o.to("avg_fps", Long.valueOf(a3)); + pairArr[2] = d0.o.to("num_bytes", Long.valueOf(aVar.f)); + pairArr[3] = d0.o.to("num_packets_lost", Long.valueOf(aVar.d)); + pairArr[4] = d0.o.to("num_packets", Long.valueOf(aVar.c)); + pairArr[5] = d0.o.to("num_frames", Long.valueOf(aVar.f276b)); + Long l2 = eVar.d; + pairArr[6] = d0.o.to("time_to_first_frame_ms", Long.valueOf(l2 != null ? l2.longValue() : 0)); + pairArr[7] = d0.o.to("num_frames_dropped", Long.valueOf(aVar.e)); + pairArr[8] = d0.o.to("num_nacks", Long.valueOf(aVar.g)); + pairArr[9] = d0.o.to("num_plis", Long.valueOf(aVar.h)); + pairArr[10] = d0.o.to("qp_sum", Long.valueOf(aVar.i)); + pairArr[11] = d0.o.to("receiver_freeze_count", Long.valueOf(aVar.j)); + pairArr[12] = d0.o.to("receiver_pause_count", Long.valueOf(aVar.k)); + pairArr[13] = d0.o.to("receiver_total_freezes_duration", Long.valueOf(aVar.l)); + pairArr[14] = d0.o.to("receiver_total_pauses_duration", Long.valueOf(aVar.m)); + pairArr[15] = d0.o.to("receiver_total_frames_duration", Long.valueOf(aVar.n)); + return h0.plus(mapOf, h0.mapOf(pairArr)); + } + + public final g f(InboundRtpVideo inboundRtpVideo, long j) { + return new g((long) inboundRtpVideo.getResolution().getHeight(), j, new a((long) inboundRtpVideo.getFramesDecoded(), (long) inboundRtpVideo.getFramesReceived(), (long) inboundRtpVideo.getPacketsReceived(), (long) inboundRtpVideo.getPacketsLost(), (long) inboundRtpVideo.getFramesDropped(), inboundRtpVideo.getBytesReceived(), inboundRtpVideo.getNackCount(), inboundRtpVideo.getPliCount(), inboundRtpVideo.getQpSum(), inboundRtpVideo.getFreezeCount(), inboundRtpVideo.getPauseCount(), inboundRtpVideo.getTotalFreezesDuration(), inboundRtpVideo.getTotalPausesDuration(), inboundRtpVideo.getTotalFramesDuration())); + } + + public final void g(Boolean bool, Integer num, long j) { + boolean z2 = false; + if (num != null) { + this.j.b(num.intValue() == 0, j); + } + if (this.i.a() || this.j.a()) { + z2 = true; + } + if (z2 != this.k.a()) { + this.k.b(z2, j); + this.l.a.clear(); + } + } +} diff --git a/app/src/main/java/b/a/q/o0/f.java b/app/src/main/java/b/a/q/o0/f.java new file mode 100644 index 0000000000..822be55a44 --- /dev/null +++ b/app/src/main/java/b/a/q/o0/f.java @@ -0,0 +1,23 @@ +package b.a.q.o0; + +import d0.z.d.o; +import kotlin.jvm.functions.Function2; +/* compiled from: VideoQuality.kt */ +public final class f extends o implements Function2 { + public static final f j = new f(); + + public f() { + super(2); + } + + public final long a(long j2, long j3) { + return j3 > j2 ? j2 : j2 - j3; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public /* bridge */ /* synthetic */ Long invoke(Long l, Long l2) { + return Long.valueOf(a(l.longValue(), l2.longValue())); + } +} diff --git a/app/src/main/java/b/a/q/p.java b/app/src/main/java/b/a/q/p.java new file mode 100644 index 0000000000..05a7afbadd --- /dev/null +++ b/app/src/main/java/b/a/q/p.java @@ -0,0 +1,23 @@ +package b.a.q; + +import com.discord.rtcconnection.RtcConnection; +import d0.z.d.m; +import rx.functions.Action1; +/* compiled from: RtcConnection.kt */ +public final class p implements Action1 { + public final /* synthetic */ RtcConnection j; + + public p(RtcConnection rtcConnection) { + this.j = rtcConnection; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Boolean bool) { + Boolean bool2 = bool; + this.j.s(new o(this, bool2)); + RtcConnection rtcConnection = this.j; + m.checkNotNullExpressionValue(bool2, "isConnected"); + rtcConnection.G = bool2.booleanValue() ? null : Long.valueOf(this.j.W.currentTimeMillis()); + } +} diff --git a/app/src/main/java/b/a/q/q.java b/app/src/main/java/b/a/q/q.java new file mode 100644 index 0000000000..d4eba9e00d --- /dev/null +++ b/app/src/main/java/b/a/q/q.java @@ -0,0 +1,22 @@ +package b.a.q; + +import b.d.b.a.a; +import com.discord.rtcconnection.RtcConnection; +import rx.functions.Action1; +/* compiled from: RtcConnection.kt */ +public final class q implements Action1 { + public final /* synthetic */ RtcConnection j; + + public q(RtcConnection rtcConnection) { + this.j = rtcConnection; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + RtcConnection rtcConnection = this.j; + StringBuilder R = a.R("failed to handle connectivity change in "); + R.append(this.j.l); + RtcConnection.o(rtcConnection, R.toString(), th, null, 4); + } +} diff --git a/app/src/main/java/b/a/q/r.java b/app/src/main/java/b/a/q/r.java new file mode 100644 index 0000000000..2df622b7f5 --- /dev/null +++ b/app/src/main/java/b/a/q/r.java @@ -0,0 +1,18 @@ +package b.a.q; + +import com.discord.rtcconnection.RtcConnection; +import d0.z.d.m; +/* compiled from: RtcConnection.kt */ +public final class r extends RtcConnection.b { + public final /* synthetic */ RtcConnection j; + + public r(RtcConnection rtcConnection) { + this.j = rtcConnection; + } + + @Override // com.discord.rtcconnection.RtcConnection.b, com.discord.rtcconnection.RtcConnection.c + public void onStateChange(RtcConnection.StateChange stateChange) { + m.checkNotNullParameter(stateChange, "stateChange"); + this.j.t.onNext(stateChange); + } +} diff --git a/app/src/main/java/b/a/q/s.java b/app/src/main/java/b/a/q/s.java new file mode 100644 index 0000000000..6da7f6a93b --- /dev/null +++ b/app/src/main/java/b/a/q/s.java @@ -0,0 +1,71 @@ +package b.a.q; + +import b.a.q.n0.a; +import com.discord.rtcconnection.RtcConnection; +import d0.g0.t; +import d0.t.g0; +import d0.z.d.m; +import d0.z.d.o; +import java.net.URI; +import javax.net.ssl.SSLSocketFactory; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcConnection.kt */ +public final class s extends o implements Function0 { + public final /* synthetic */ t this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public s(t tVar) { + super(0); + this.this$0 = tVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + w wVar = this.this$0.j; + RtcConnection rtcConnection = wVar.this$0; + String str = wVar.$endpoint; + String str2 = wVar.$token; + SSLSocketFactory sSLSocketFactory = wVar.$sslSocketFactory; + rtcConnection.q.succeed(); + String str3 = sSLSocketFactory != null ? "wss" : "ws"; + if (str == null || str.length() == 0) { + a aVar = rtcConnection.w; + if (aVar != null) { + aVar.c(); + } + rtcConnection.u(RtcConnection.State.b.a); + } else { + String replace$default = t.replace$default(str, ".gg", ".media", false, 4, (Object) null); + String w = b.d.b.a.a.w(str3, "://", replace$default); + String replace$default2 = t.replace$default(w, ":80", ":443", false, 4, (Object) null); + a aVar2 = rtcConnection.w; + if (aVar2 != null) { + aVar2.c(); + } + if (rtcConnection.u) { + RtcConnection.j(rtcConnection, false, "Connect called on destroyed instance.", null, false, 4); + } else if (str2 == null) { + RtcConnection.j(rtcConnection, false, "Connect called with no token.", null, false, 12); + } else { + rtcConnection.r("connecting via endpoint: " + replace$default + " token: " + str2); + try { + URI uri = new URI(w); + rtcConnection.f2736y = uri.getHost(); + rtcConnection.f2737z = Integer.valueOf(uri.getPort()); + } catch (Exception e) { + rtcConnection.V.e(rtcConnection.l, "Failed to parse RTC endpoint", e, g0.mapOf(d0.o.to("endpoint", replace$default))); + } + a aVar3 = new a(replace$default2, str2, sSLSocketFactory, rtcConnection.V, rtcConnection.U.c(), rtcConnection.W, rtcConnection.l); + h0 h0Var = rtcConnection.M; + m.checkNotNullParameter(h0Var, "listener"); + aVar3.q.add(h0Var); + aVar3.d(); + rtcConnection.w = aVar3; + } + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/t.java b/app/src/main/java/b/a/q/t.java new file mode 100644 index 0000000000..9fcd274c1c --- /dev/null +++ b/app/src/main/java/b/a/q/t.java @@ -0,0 +1,18 @@ +package b.a.q; + +import kotlin.Unit; +import rx.functions.Action1; +/* compiled from: RtcConnection.kt */ +public final class t implements Action1 { + public final /* synthetic */ w j; + + public t(w wVar) { + this.j = wVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Unit unit) { + this.j.this$0.s(new s(this)); + } +} diff --git a/app/src/main/java/b/a/q/u.java b/app/src/main/java/b/a/q/u.java new file mode 100644 index 0000000000..64ed8b04c3 --- /dev/null +++ b/app/src/main/java/b/a/q/u.java @@ -0,0 +1,32 @@ +package b.a.q; + +import com.discord.rtcconnection.RtcConnection; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcConnection.kt */ +public final class u extends o implements Function0 { + public final /* synthetic */ Throwable $throwable; + public final /* synthetic */ v this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public u(v vVar, Throwable th) { + super(0); + this.this$0 = vVar; + this.$throwable = th; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + RtcConnection rtcConnection = this.this$0.j.this$0; + Throwable th = this.$throwable; + m.checkNotNullExpressionValue(th, "throwable"); + Objects.requireNonNull(rtcConnection); + rtcConnection.s(new y(rtcConnection, th)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/v.java b/app/src/main/java/b/a/q/v.java new file mode 100644 index 0000000000..e1effde0f6 --- /dev/null +++ b/app/src/main/java/b/a/q/v.java @@ -0,0 +1,17 @@ +package b.a.q; + +import rx.functions.Action1; +/* compiled from: RtcConnection.kt */ +public final class v implements Action1 { + public final /* synthetic */ w j; + + public v(w wVar) { + this.j = wVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Throwable th) { + this.j.this$0.s(new u(this, th)); + } +} diff --git a/app/src/main/java/b/a/q/w.java b/app/src/main/java/b/a/q/w.java new file mode 100644 index 0000000000..8e76a784a7 --- /dev/null +++ b/app/src/main/java/b/a/q/w.java @@ -0,0 +1,36 @@ +package b.a.q; + +import com.discord.rtcconnection.RtcConnection; +import d0.z.d.o; +import java.util.concurrent.TimeUnit; +import javax.net.ssl.SSLSocketFactory; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcConnection.kt */ +public final class w extends o implements Function0 { + public final /* synthetic */ String $endpoint; + public final /* synthetic */ SSLSocketFactory $sslSocketFactory; + public final /* synthetic */ String $token; + public final /* synthetic */ RtcConnection this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public w(RtcConnection rtcConnection, String str, String str2, SSLSocketFactory sSLSocketFactory) { + super(0); + this.this$0 = rtcConnection; + this.$endpoint = str; + this.$token = str2; + this.$sslSocketFactory = sSLSocketFactory; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + RtcConnection rtcConnection = this.this$0; + rtcConnection.C = Long.valueOf(rtcConnection.W.currentTimeMillis()); + RtcConnection rtcConnection2 = this.this$0; + rtcConnection2.E++; + rtcConnection2.F = rtcConnection2.U.a().c0(2, TimeUnit.SECONDS).W(new t(this), new v(this)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/x.java b/app/src/main/java/b/a/q/x.java new file mode 100644 index 0000000000..c53a9d3f09 --- /dev/null +++ b/app/src/main/java/b/a/q/x.java @@ -0,0 +1,12 @@ +package b.a.q; + +import b.a.q.o0.e; +import com.discord.rtcconnection.RtcConnection; +/* compiled from: RtcConnection.kt */ +public final class x extends e.c { + public final /* synthetic */ RtcConnection a; + + public x(RtcConnection rtcConnection) { + this.a = rtcConnection; + } +} diff --git a/app/src/main/java/b/a/q/y.java b/app/src/main/java/b/a/q/y.java new file mode 100644 index 0000000000..9bc65ab196 --- /dev/null +++ b/app/src/main/java/b/a/q/y.java @@ -0,0 +1,26 @@ +package b.a.q; + +import com.discord.rtcconnection.RtcConnection; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: RtcConnection.kt */ +public final class y extends o implements Function0 { + public final /* synthetic */ Throwable $throwable; + public final /* synthetic */ RtcConnection this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public y(RtcConnection rtcConnection, Throwable th) { + super(0); + this.this$0 = rtcConnection; + this.$throwable = th; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + RtcConnection.j(this.this$0, false, "Unable to prepare media engine.", this.$throwable, false, 8); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/q/z.java b/app/src/main/java/b/a/q/z.java new file mode 100644 index 0000000000..60bd2b3c5d --- /dev/null +++ b/app/src/main/java/b/a/q/z.java @@ -0,0 +1,19 @@ +package b.a.q; + +import com.discord.rtcconnection.EncodeQuality; +import com.discord.rtcconnection.RtcConnection; +import d0.o; +import java.util.Map; +import kotlin.Pair; +import rx.functions.Func2; +/* compiled from: RtcConnection.kt */ +public final class z implements Func2, RtcConnection.StateChange, Pair, ? extends RtcConnection.State>> { + public static final z j = new z(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // rx.functions.Func2 + public Pair, ? extends RtcConnection.State> call(Map map, RtcConnection.StateChange stateChange) { + return o.to(map, stateChange.a); + } +} diff --git a/app/src/main/java/b/a/r/a.java b/app/src/main/java/b/a/r/a.java new file mode 100644 index 0000000000..bd2f43510f --- /dev/null +++ b/app/src/main/java/b/a/r/a.java @@ -0,0 +1,88 @@ +package b.a.r; + +import android.net.Uri; +import androidx.browser.trusted.sharing.ShareTarget; +import androidx.core.os.EnvironmentCompat; +import com.discord.samsung.SamsungConnect$SamsungCallbackException; +import d0.g0.w; +import d0.l; +import d0.w.h.c; +import d0.w.i.a.e; +import d0.w.i.a.k; +import d0.z.d.m; +import f0.x; +import kotlin.Unit; +import kotlin.coroutines.Continuation; +import kotlin.jvm.functions.Function2; +import kotlinx.coroutines.CoroutineScope; +import okhttp3.Request; +import okhttp3.Response; +/* compiled from: SamsungConnect.kt */ +@e(c = "com.discord.samsung.SamsungConnect$getSamsungAuthorizeCallback$2", f = "SamsungConnect.kt", l = {}, m = "invokeSuspend") +public final class a extends k implements Function2, Object> { + public final /* synthetic */ x $okHttpClient; + public final /* synthetic */ String $url; + public int label; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(String str, x xVar, Continuation continuation) { + super(2, continuation); + this.$url = str; + this.$okHttpClient = xVar; + } + + @Override // d0.w.i.a.a + public final Continuation create(Object obj, Continuation continuation) { + m.checkNotNullParameter(continuation, "completion"); + return new a(this.$url, this.$okHttpClient, continuation); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { + Continuation continuation2 = continuation; + m.checkNotNullParameter(continuation2, "completion"); + return new a(this.$url, this.$okHttpClient, continuation2).invokeSuspend(Unit.a); + } + + /* JADX WARNING: Code restructure failed: missing block: B:21:0x0061, code lost: + if (r4 == false) goto L_0x0064; + */ + @Override // d0.w.i.a.a + public final Object invokeSuspend(Object obj) { + String str; + String query; + c.getCOROUTINE_SUSPENDED(); + if (this.label == 0) { + l.throwOnFailure(obj); + Request.a aVar = new Request.a(); + String str2 = null; + aVar.c(ShareTarget.METHOD_GET, null); + aVar.f(this.$url); + Response execute = ((f0.e0.g.e) this.$okHttpClient.b(aVar.a())).execute(); + String a = Response.a(execute, "Location", null, 2); + Uri parse = a != null ? Uri.parse(a) : null; + boolean z2 = false; + if (!((parse == null || (query = parse.getQuery()) == null) ? false : w.contains$default((CharSequence) query, (CharSequence) "error", false, 2, (Object) null))) { + if (!execute.b()) { + int i = execute.m; + if (!(i == 307 || i == 308)) { + switch (i) { + } + } + z2 = true; + } + return parse; + } + if (parse == null || (str = parse.getQueryParameter("error")) == null) { + str = EnvironmentCompat.MEDIA_UNKNOWN; + } + m.checkNotNullExpressionValue(str, "location?.getQueryParameter(\"error\") ?: \"unknown\""); + if (parse != null) { + str2 = parse.getQueryParameter("error_description"); + } + throw new SamsungConnect$SamsungCallbackException(str, str2); + } + throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); + } +} diff --git a/app/src/main/java/b/a/r/b.java b/app/src/main/java/b/a/r/b.java new file mode 100644 index 0000000000..111a4424e2 --- /dev/null +++ b/app/src/main/java/b/a/r/b.java @@ -0,0 +1,112 @@ +package b.a.r; + +import android.net.Uri; +import androidx.browser.trusted.sharing.ShareTarget; +import androidx.core.os.EnvironmentCompat; +import b.d.b.a.a; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.samsung.SamsungConnect$SamsungCallbackException; +import d0.g0.w; +import d0.l; +import d0.o; +import d0.t.h0; +import d0.t.u; +import d0.w.h.c; +import d0.w.i.a.e; +import d0.w.i.a.k; +import d0.z.d.m; +import f0.x; +import java.util.ArrayList; +import java.util.Map; +import kotlin.Unit; +import kotlin.coroutines.Continuation; +import kotlin.jvm.functions.Function2; +import kotlinx.coroutines.CoroutineScope; +import okhttp3.MediaType; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +/* compiled from: SamsungConnect.kt */ +@e(c = "com.discord.samsung.SamsungConnect$postSamsungAuthorizeCallback$2", f = "SamsungConnect.kt", l = {}, m = "invokeSuspend") +public final class b extends k implements Function2, Object> { + public final /* synthetic */ x $okHttpClient; + public final /* synthetic */ String $samsungAuthCode; + public final /* synthetic */ String $state; + public final /* synthetic */ String $url; + public int label; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(String str, String str2, String str3, x xVar, Continuation continuation) { + super(2, continuation); + this.$state = str; + this.$samsungAuthCode = str2; + this.$url = str3; + this.$okHttpClient = xVar; + } + + @Override // d0.w.i.a.a + public final Continuation create(Object obj, Continuation continuation) { + m.checkNotNullParameter(continuation, "completion"); + return new b(this.$state, this.$samsungAuthCode, this.$url, this.$okHttpClient, continuation); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { + return ((b) create(coroutineScope, continuation)).invokeSuspend(Unit.a); + } + + /* JADX WARNING: Code restructure failed: missing block: B:25:0x00f2, code lost: + if (r2 == false) goto L_0x00f5; + */ + @Override // d0.w.i.a.a + public final Object invokeSuspend(Object obj) { + String str; + String query; + c.getCOROUTINE_SUSPENDED(); + if (this.label == 0) { + l.throwOnFailure(obj); + boolean z2 = false; + StringBuilder R = a.R("{\"code\":\""); + R.append(this.$samsungAuthCode); + R.append("\"}"); + Map mapOf = h0.mapOf(o.to("state", this.$state), o.to(ModelAuditLogEntry.CHANGE_KEY_CODE, R.toString())); + ArrayList arrayList = new ArrayList(mapOf.size()); + for (Map.Entry entry : mapOf.entrySet()) { + arrayList.add(((String) entry.getKey()) + '=' + ((String) entry.getValue())); + } + String joinToString$default = u.joinToString$default(arrayList, "&", null, null, 0, null, null, 62, null); + RequestBody.Companion companion = RequestBody.Companion; + MediaType.a aVar = MediaType.c; + RequestBody a = companion.a(joinToString$default, MediaType.a.a(ShareTarget.ENCODING_TYPE_URL_ENCODED)); + Request.a aVar2 = new Request.a(); + m.checkParameterIsNotNull(a, "body"); + aVar2.c(ShareTarget.METHOD_POST, a); + aVar2.f(this.$url); + Response execute = ((f0.e0.g.e) this.$okHttpClient.b(aVar2.a())).execute(); + String str2 = null; + String a2 = Response.a(execute, "Location", null, 2); + Uri parse = a2 != null ? Uri.parse(a2) : null; + if (!((parse == null || (query = parse.getQuery()) == null) ? false : w.contains$default((CharSequence) query, (CharSequence) "error", false, 2, (Object) null))) { + if (!execute.b()) { + int i = execute.m; + if (!(i == 307 || i == 308)) { + switch (i) { + } + } + z2 = true; + } + return parse; + } + if (parse == null || (str = parse.getQueryParameter("error")) == null) { + str = EnvironmentCompat.MEDIA_UNKNOWN; + } + m.checkNotNullExpressionValue(str, "location?.getQueryParameter(\"error\") ?: \"unknown\""); + if (parse != null) { + str2 = parse.getQueryParameter("error_description"); + } + throw new SamsungConnect$SamsungCallbackException(str, str2); + } + throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); + } +} diff --git a/app/src/main/java/b/a/r/c.java b/app/src/main/java/b/a/r/c.java new file mode 100644 index 0000000000..f18df76e25 --- /dev/null +++ b/app/src/main/java/b/a/r/c.java @@ -0,0 +1,49 @@ +package b.a.r; + +import android.content.Intent; +import androidx.activity.result.ActivityResult; +import androidx.activity.result.ActivityResultCallback; +import com.discord.samsung.SamsungConnectActivity; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +/* compiled from: SamsungConnectActivity.kt */ +public final class c implements ActivityResultCallback { + public final /* synthetic */ Function1 a; + + public c(Function1 function1) { + this.a = function1; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // androidx.activity.result.ActivityResultCallback + public void onActivityResult(ActivityResult activityResult) { + ActivityResult activityResult2 = activityResult; + m.checkNotNullExpressionValue(activityResult2, "activityResult"); + int i = 0; + if (activityResult2.getResultCode() == 500) { + Function1 function1 = this.a; + Intent data = activityResult2.getData(); + if (data != null) { + i = data.getIntExtra("com.discord.samsung.intent.extra.ATTEMPT_COUNT", 0); + } + function1.invoke(new SamsungConnectActivity.Result.Failure(true, i)); + return; + } + Intent data2 = activityResult2.getData(); + if (data2 == null) { + this.a.invoke(new SamsungConnectActivity.Result.Failure(false, 0, 2)); + return; + } + Function1 function12 = this.a; + String stringExtra = data2.getStringExtra("com.discord.samsung.intent.extra.AUTH_CODE"); + String str = ""; + if (stringExtra == null) { + stringExtra = str; + } + String stringExtra2 = data2.getStringExtra("com.discord.samsung.intent.extra.SERVER_URL"); + if (stringExtra2 != null) { + str = stringExtra2; + } + function12.invoke(new SamsungConnectActivity.Result.Success(stringExtra, str)); + } +} diff --git a/app/src/main/java/b/a/r/d.java b/app/src/main/java/b/a/r/d.java new file mode 100644 index 0000000000..b8cd8a33e3 --- /dev/null +++ b/app/src/main/java/b/a/r/d.java @@ -0,0 +1,12 @@ +package b.a.r; + +import b.n.a.a.a; +import com.discord.samsung.SamsungConnectActivity; +/* compiled from: SamsungConnectActivity.kt */ +public final class d extends a.AbstractBinderC0157a { + public final /* synthetic */ SamsungConnectActivity a; + + public d(SamsungConnectActivity samsungConnectActivity) { + this.a = samsungConnectActivity; + } +} diff --git a/app/src/main/java/b/a/s/a.java b/app/src/main/java/b/a/s/a.java new file mode 100644 index 0000000000..27dcfc6376 --- /dev/null +++ b/app/src/main/java/b/a/s/a.java @@ -0,0 +1,77 @@ +package b.a.s; + +import android.app.Activity; +import android.app.Application; +import android.os.Bundle; +import android.provider.MediaStore; +import androidx.appcompat.widget.ActivityChooserModel; +import d0.z.d.m; +/* compiled from: ScreenshotDetector.kt */ +public final class a implements Application.ActivityLifecycleCallbacks { + public boolean j; + public final b k; + + public a(b bVar) { + m.checkNotNullParameter(bVar, "observer"); + this.k = bVar; + } + + public final void a(boolean z2) { + if (!z2 && this.j) { + b bVar = this.k; + bVar.d.unregisterContentObserver(bVar); + this.j = false; + } + if (z2 && !this.j) { + b bVar2 = this.k; + bVar2.d.registerContentObserver(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, true, bVar2); + this.j = true; + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityCreated(Activity activity, Bundle bundle) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityDestroyed(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityPaused(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + if (this.j) { + b bVar = this.k; + bVar.d.unregisterContentObserver(bVar); + this.j = false; + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityResumed(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + if (!this.j) { + b bVar = this.k; + bVar.d.registerContentObserver(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, true, bVar); + this.j = true; + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivitySaveInstanceState(Activity activity, Bundle bundle) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + m.checkNotNullParameter(bundle, "outState"); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityStarted(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public void onActivityStopped(Activity activity) { + m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY); + } +} diff --git a/app/src/main/java/b/a/s/b.java b/app/src/main/java/b/a/s/b.java new file mode 100644 index 0000000000..03fe109125 --- /dev/null +++ b/app/src/main/java/b/a/s/b.java @@ -0,0 +1,202 @@ +package b.a.s; + +import android.content.ContentResolver; +import android.database.ContentObserver; +import android.database.Cursor; +import android.net.Uri; +import android.os.Build; +import android.provider.MediaStore; +import androidx.core.app.NotificationCompat; +import com.discord.utilities.logging.Logger; +import com.discord.utilities.time.Clock; +import com.discord.utilities.time.ClockFactory; +import com.discord.widgets.chat.input.MentionUtilsKt; +import d0.g0.t; +import d0.g0.w; +import d0.t.j; +import d0.z.d.m; +import java.util.Locale; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: ScreenshotContentObserver.kt */ +public final class b extends ContentObserver { + public static final a a = new a(null); + + /* renamed from: b reason: collision with root package name */ + public String f280b; + public final Logger c; + public final ContentResolver d; + public final Clock e; + public final Function2 f; + + /* compiled from: ScreenshotContentObserver.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* compiled from: ScreenshotContentObserver.kt */ + /* renamed from: b.a.s.b$b reason: collision with other inner class name */ + public static final class C0041b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final long f281b; + public final String c; + public final String d; + public final Uri e; + public final long f; + + public C0041b(long j, String str, String str2, Uri uri, long j2) { + m.checkNotNullParameter(str, "fileName"); + m.checkNotNullParameter(str2, "relativePath"); + m.checkNotNullParameter(uri, NotificationCompat.MessagingStyle.Message.KEY_DATA_URI); + this.f281b = j; + this.c = str; + this.d = str2; + this.e = uri; + this.f = j2; + this.a = str2 + MentionUtilsKt.SLASH_CHAR + str; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof C0041b)) { + return false; + } + C0041b bVar = (C0041b) obj; + return this.f281b == bVar.f281b && m.areEqual(this.c, bVar.c) && m.areEqual(this.d, bVar.d) && m.areEqual(this.e, bVar.e) && this.f == bVar.f; + } + + public int hashCode() { + int a = a0.a.a.b.a(this.f281b) * 31; + String str = this.c; + int i = 0; + int hashCode = (a + (str != null ? str.hashCode() : 0)) * 31; + String str2 = this.d; + int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31; + Uri uri = this.e; + if (uri != null) { + i = uri.hashCode(); + } + return a0.a.a.b.a(this.f) + ((hashCode2 + i) * 31); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("ScreenshotData(id="); + R.append(this.f281b); + R.append(", fileName="); + R.append(this.c); + R.append(", relativePath="); + R.append(this.d); + R.append(", uri="); + R.append(this.e); + R.append(", dateAdded="); + return b.d.b.a.a.B(R, this.f, ")"); + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(Logger logger, ContentResolver contentResolver, Clock clock, Function2 function2, int i) { + super(null); + Clock clock2 = (i & 4) != 0 ? ClockFactory.get() : null; + m.checkNotNullParameter(logger, "logger"); + m.checkNotNullParameter(contentResolver, "contentResolver"); + m.checkNotNullParameter(clock2, "clock"); + m.checkNotNullParameter(function2, "onScreenshot"); + this.c = logger; + this.d = contentResolver; + this.e = clock2; + this.f = function2; + } + + /* JADX WARNING: Code restructure failed: missing block: B:25:0x00b6, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:26:0x00b7, code lost: + d0.y.b.closeFinally(r2, r0); + */ + /* JADX WARNING: Code restructure failed: missing block: B:27:0x00bb, code lost: + throw r0; + */ + /* JADX WARNING: Removed duplicated region for block: B:31:0x00c2 */ + /* JADX WARNING: Removed duplicated region for block: B:45:? A[RETURN, SYNTHETIC] */ + public final void a(Uri uri) { + C0041b bVar; + String str; + ContentResolver contentResolver = this.d; + int i = Build.VERSION.SDK_INT; + Cursor query = contentResolver.query(uri, (String[]) j.plus(j.plus(new String[]{"_display_name", "date_added", "_id"}, i >= 29 ? new String[]{"is_pending", "relative_path"} : new String[0]), i >= 29 ? new String[]{"relative_path"} : new String[]{"_data"}), null, null, "date_added DESC"); + if (query != null) { + if (query.moveToFirst()) { + if (i < 29 || query.getInt(query.getColumnIndex("is_pending")) != 1) { + if (i >= 29) { + str = query.getString(query.getColumnIndex("relative_path")); + } else { + String string = query.getString(query.getColumnIndex("_data")); + m.checkNotNullExpressionValue(string, "cursor.getString(cursor.…mages.ImageColumns.DATA))"); + str = w.substringBeforeLast$default(string, (char) MentionUtilsKt.SLASH_CHAR, (String) null, 2, (Object) null); + } + long j = query.getLong(query.getColumnIndex("_id")); + String string2 = query.getString(query.getColumnIndex("_display_name")); + m.checkNotNullExpressionValue(string2, "cursor.getString(cursor.…ages.Media.DISPLAY_NAME))"); + m.checkNotNullExpressionValue(str, "relativePath"); + bVar = new C0041b(j, string2, str, uri, query.getLong(query.getColumnIndex("date_added"))); + d0.y.b.closeFinally(query, null); + if (bVar != null) { + String str2 = this.f280b; + if (str2 == null || !t.equals$default(str2, bVar.a, false, 2, null)) { + String str3 = bVar.a; + Locale locale = Locale.getDefault(); + m.checkNotNullExpressionValue(locale, "Locale.getDefault()"); + Objects.requireNonNull(str3, "null cannot be cast to non-null type java.lang.String"); + String lowerCase = str3.toLowerCase(locale); + m.checkNotNullExpressionValue(lowerCase, "(this as java.lang.String).toLowerCase(locale)"); + if (w.contains$default((CharSequence) lowerCase, (CharSequence) "screenshots/", false, 2, (Object) null)) { + if (Math.abs((this.e.currentTimeMillis() / ((long) 1000)) - bVar.f) <= 10) { + this.f280b = bVar.a; + this.f.invoke(bVar.e, bVar.c); + return; + } + return; + } + return; + } + return; + } + return; + } + d0.y.b.closeFinally(query, null); + bVar = null; + if (bVar != null) { + } + } + } + d0.y.b.closeFinally(query, null); + bVar = null; + if (bVar != null) { + } + } + + @Override // android.database.ContentObserver + public void onChange(boolean z2, Uri uri) { + super.onChange(z2, uri); + if (uri != null) { + String uri2 = uri.toString(); + m.checkNotNullExpressionValue(uri2, "uri.toString()"); + String uri3 = MediaStore.Images.Media.EXTERNAL_CONTENT_URI.toString(); + m.checkNotNullExpressionValue(uri3, "MediaStore.Images.Media.…AL_CONTENT_URI.toString()"); + if (t.startsWith$default(uri2, uri3, false, 2, null)) { + try { + a(uri); + } catch (Exception e) { + Logger.e$default(this.c, "Error processing screenshot", e, null, 4, null); + } + } + } + } +} diff --git a/app/src/main/java/b/a/t/a/a.java b/app/src/main/java/b/a/t/a/a.java new file mode 100644 index 0000000000..1707bac223 --- /dev/null +++ b/app/src/main/java/b/a/t/a/a.java @@ -0,0 +1,63 @@ +package b.a.t.a; + +import com.discord.simpleast.code.CodeNode; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.g0.w; +import d0.z.d.m; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import kotlin.jvm.functions.Function3; +/* compiled from: CodeRules.kt */ +public final class a extends Rule, S> { + public final /* synthetic */ Map a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ StyleNode.a f282b; + public final /* synthetic */ Function3 c; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(e eVar, Map map, StyleNode.a aVar, Function3 function3, Pattern pattern) { + super(pattern); + this.a = map; + this.f282b = aVar; + this.c = function3; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + CodeNode.a aVar; + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + String group2 = matcher.group(3); + if (group2 == null) { + group2 = ""; + } + String group3 = matcher.group(2); + List list = null; + boolean z2 = false; + if (group3 != null) { + z2 = w.contains$default((CharSequence) group3, '\n', false, 2, (Object) null); + } + if (group != null) { + list = (List) this.a.get(group); + } + if (list != null) { + List parse = parser.parse(group2, s2, list); + Objects.requireNonNull(parse, "null cannot be cast to non-null type kotlin.collections.List>"); + aVar = new CodeNode.a.C0177a(group2, parse); + } else { + aVar = new CodeNode.a.b(group2); + } + Node node = (Node) this.c.invoke(new CodeNode(aVar, group, this.f282b), Boolean.valueOf(z2), s2); + m.checkNotNullParameter(node, "node"); + return new ParseSpec<>(node, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/b.java b/app/src/main/java/b/a/t/a/b.java new file mode 100644 index 0000000000..b583697f34 --- /dev/null +++ b/app/src/main/java/b/a/t/a/b.java @@ -0,0 +1,33 @@ +package b.a.t.a; + +import com.discord.simpleast.code.CodeNode; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: CodeRules.kt */ +public final class b extends Rule, S> { + public final /* synthetic */ f a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(f fVar, String[] strArr, Pattern pattern) { + super(pattern); + this.a = fVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + m.checkNotNull(group); + String group2 = matcher.group(2); + m.checkNotNull(group2); + CodeNode.b bVar = new CodeNode.b(group, group2, this.a); + m.checkNotNullParameter(bVar, "node"); + return new ParseSpec<>(bVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/c.java b/app/src/main/java/b/a/t/a/c.java new file mode 100644 index 0000000000..ee10fe3989 --- /dev/null +++ b/app/src/main/java/b/a/t/a/c.java @@ -0,0 +1,70 @@ +package b.a.t.a; + +import android.text.SpannableStringBuilder; +import com.discord.simpleast.code.CodeNode; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.Iterator; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: CodeRules.kt */ +public final class c extends Rule, S> { + public final /* synthetic */ StyleNode.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ StyleNode.a f283b; + + /* compiled from: CodeRules.kt */ + public static final class a extends Node.a { + public final /* synthetic */ c a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(c cVar, CodeNode codeNode, Node[] nodeArr) { + super(nodeArr); + this.a = cVar; + } + + @Override // com.discord.simpleast.core.node.Node.a, com.discord.simpleast.core.node.Node + public void render(SpannableStringBuilder spannableStringBuilder, R r) { + m.checkNotNullParameter(spannableStringBuilder, "builder"); + int length = spannableStringBuilder.length(); + super.render(spannableStringBuilder, r); + Iterator it = this.a.f283b.get(r).iterator(); + while (it.hasNext()) { + spannableStringBuilder.setSpan(it.next(), length, spannableStringBuilder.length(), 33); + } + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(e eVar, StyleNode.a aVar, StyleNode.a aVar2, Pattern pattern) { + super(pattern); + this.a = aVar; + this.f283b = aVar2; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(2); + if (group == null) { + group = ""; + } + if (group.length() == 0) { + String group2 = matcher.group(); + m.checkNotNullExpressionValue(group2, "matcher.group()"); + b.a.t.b.a.a aVar = new b.a.t.b.a.a(group2); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, s2); + } + CodeNode codeNode = new CodeNode(new CodeNode.a.b(group), null, this.a); + a aVar2 = new a(this, codeNode, new Node[]{codeNode}); + m.checkNotNullParameter(aVar2, "node"); + return new ParseSpec<>(aVar2, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/d.java b/app/src/main/java/b/a/t/a/d.java new file mode 100644 index 0000000000..bda83e2b7a --- /dev/null +++ b/app/src/main/java/b/a/t/a/d.java @@ -0,0 +1,39 @@ +package b.a.t.a; + +import b.a.t.b.a.a; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: CodeRules.kt */ +public final class d extends Rule, S> { + public final /* synthetic */ int a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ StyleNode.a f284b; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(Pattern pattern, int i, StyleNode.a aVar, Pattern pattern2) { + super(pattern2); + this.a = i; + this.f284b = aVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(this.a); + if (group == null) { + group = ""; + } + StyleNode.a aVar = this.f284b; + Node bVar = aVar != null ? new StyleNode.b(group, aVar) : new a(group); + m.checkNotNullParameter(bVar, "node"); + return new ParseSpec<>(bVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/e.java b/app/src/main/java/b/a/t/a/e.java new file mode 100644 index 0000000000..dea8c7e3aa --- /dev/null +++ b/app/src/main/java/b/a/t/a/e.java @@ -0,0 +1,83 @@ +package b.a.t.a; + +import b.d.b.a.a; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import com.discord.simpleast.core.parser.Rule; +import d0.t.k; +import d0.t.n; +import d0.t.u; +import d0.z.d.m; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; +import java.util.regex.Pattern; +import kotlin.jvm.functions.Function1; +/* compiled from: CodeRules.kt */ +public final class e { + public static final Pattern a; + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f285b; + public static final Pattern c; + public static final Pattern d; + public static final Pattern e; + public static final e f = new e(); + + static { + Pattern compile = Pattern.compile("^```(?:([\\w+\\-.]+?)?(\\s*\\n))?([^\\n].*?)\\n*```", 32); + m.checkNotNullExpressionValue(compile, "Pattern.compile(\"\"\"^```(…n*```\"\"\", Pattern.DOTALL)"); + a = compile; + Pattern compile2 = Pattern.compile("^(``?)([^`]*)\\1", 32); + m.checkNotNullExpressionValue(compile2, "Pattern.compile(\"\"\"^(``?…]*)\\1\"\"\", Pattern.DOTALL)"); + f285b = compile2; + Pattern compile3 = Pattern.compile("^(?:\\n\\s*)+"); + m.checkNotNullExpressionValue(compile3, "Pattern.compile(\"\"\"^(?:\\n\\s*)+\"\"\")"); + c = compile3; + Pattern compile4 = Pattern.compile("^[\\s\\S]+?(?=\\b|[^0-9A-Za-z\\s\\u00c0-\\uffff]|\\n| {2,}\\n|\\w+:\\S|$)"); + m.checkNotNullExpressionValue(compile4, "Pattern.compile(\"\"\"^[\\s\\…|\\n| {2,}\\n|\\w+:\\S|$)\"\"\")"); + d = compile4; + Pattern compile5 = Pattern.compile("^\\b\\d+?\\b"); + m.checkNotNullExpressionValue(compile5, "Pattern.compile(\"\"\"^\\b\\d+?\\b\"\"\")"); + e = compile5; + } + + public static Rule d(e eVar, Pattern pattern, int i, StyleNode.a aVar, int i2) { + if ((i2 & 1) != 0) { + i = 0; + } + if ((i2 & 2) != 0) { + aVar = null; + } + m.checkNotNullParameter(pattern, "$this$toMatchGroupRule"); + return new d(pattern, i, aVar, pattern); + } + + public final List, S>> a(f fVar, List, S>> list, String[] strArr, String[] strArr2, String... strArr3) { + String[] strArr4 = (String[]) Arrays.copyOf(strArr, strArr.length); + m.checkNotNullParameter(fVar, "codeStyleProviders"); + m.checkNotNullParameter(strArr4, "identifiers"); + StringBuilder R = a.R("^\\b("); + R.append(k.joinToString$default(strArr4, "|", (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, (Function1) null, 62, (Object) null)); + R.append(")(\\s+\\w+)"); + Pattern compile = Pattern.compile(R.toString()); + m.checkNotNullExpressionValue(compile, "Pattern.compile(\"\"\"^\\b($…String(\"|\")})(\\s+\\w+)\"\"\")"); + Pattern c2 = c((String[]) Arrays.copyOf(strArr2, strArr2.length)); + m.checkNotNullExpressionValue(c2, "createWordPattern(*builtIns)"); + Pattern c3 = c((String[]) Arrays.copyOf(strArr3, strArr3.length)); + m.checkNotNullExpressionValue(c3, "createWordPattern(*keywords)"); + return u.plus((Collection) list, (Iterable) n.listOf((Object[]) new Rule[]{new b(fVar, strArr4, compile), d(this, c2, 0, fVar.g, 1), d(this, c3, 0, fVar.d, 1), d(this, e, 0, fVar.c, 1), d(this, c, 0, null, 3), d(this, d, 0, null, 3)})); + } + + public final Pattern b(String str) { + return Pattern.compile("^(?:" + str + ".*?(?=\\n|$))"); + } + + public final Pattern c(String... strArr) { + m.checkNotNullParameter(strArr, "words"); + StringBuilder R = a.R("^\\b(?:"); + R.append(k.joinToString$default(strArr, "|", (CharSequence) null, (CharSequence) null, 0, (CharSequence) null, (Function1) null, 62, (Object) null)); + R.append(")\\b"); + return Pattern.compile(R.toString()); + } +} diff --git a/app/src/main/java/b/a/t/a/f.java b/app/src/main/java/b/a/t/a/f.java new file mode 100644 index 0000000000..374bcd3a1f --- /dev/null +++ b/app/src/main/java/b/a/t/a/f.java @@ -0,0 +1,98 @@ +package b.a.t.a; + +import b.d.b.a.a; +import com.discord.simpleast.core.node.StyleNode; +import d0.z.d.m; +/* compiled from: CodeStyleProviders.kt */ +public final class f { + public final StyleNode.a a; + + /* renamed from: b reason: collision with root package name */ + public final StyleNode.a f286b; + public final StyleNode.a c; + public final StyleNode.a d; + public final StyleNode.a e; + public final StyleNode.a f; + public final StyleNode.a g; + public final StyleNode.a h; + + /* JADX WARNING: Illegal instructions before constructor call */ + public f() { + this(r8, r8, r8, r8, r8, r8, r8, r8); + g gVar = g.a; + } + + public f(StyleNode.a aVar, StyleNode.a aVar2, StyleNode.a aVar3, StyleNode.a aVar4, StyleNode.a aVar5, StyleNode.a aVar6, StyleNode.a aVar7, StyleNode.a aVar8) { + m.checkNotNullParameter(aVar, "defaultStyleProvider"); + m.checkNotNullParameter(aVar2, "commentStyleProvider"); + m.checkNotNullParameter(aVar3, "literalStyleProvider"); + m.checkNotNullParameter(aVar4, "keywordStyleProvider"); + m.checkNotNullParameter(aVar5, "identifierStyleProvider"); + m.checkNotNullParameter(aVar6, "typesStyleProvider"); + m.checkNotNullParameter(aVar7, "genericsStyleProvider"); + m.checkNotNullParameter(aVar8, "paramsStyleProvider"); + this.a = aVar; + this.f286b = aVar2; + this.c = aVar3; + this.d = aVar4; + this.e = aVar5; + this.f = aVar6; + this.g = aVar7; + this.h = aVar8; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof f)) { + return false; + } + f fVar = (f) obj; + return m.areEqual(this.a, fVar.a) && m.areEqual(this.f286b, fVar.f286b) && m.areEqual(this.c, fVar.c) && m.areEqual(this.d, fVar.d) && m.areEqual(this.e, fVar.e) && m.areEqual(this.f, fVar.f) && m.areEqual(this.g, fVar.g) && m.areEqual(this.h, fVar.h); + } + + public int hashCode() { + StyleNode.a aVar = this.a; + int i = 0; + int hashCode = (aVar != null ? aVar.hashCode() : 0) * 31; + StyleNode.a aVar2 = this.f286b; + int hashCode2 = (hashCode + (aVar2 != null ? aVar2.hashCode() : 0)) * 31; + StyleNode.a aVar3 = this.c; + int hashCode3 = (hashCode2 + (aVar3 != null ? aVar3.hashCode() : 0)) * 31; + StyleNode.a aVar4 = this.d; + int hashCode4 = (hashCode3 + (aVar4 != null ? aVar4.hashCode() : 0)) * 31; + StyleNode.a aVar5 = this.e; + int hashCode5 = (hashCode4 + (aVar5 != null ? aVar5.hashCode() : 0)) * 31; + StyleNode.a aVar6 = this.f; + int hashCode6 = (hashCode5 + (aVar6 != null ? aVar6.hashCode() : 0)) * 31; + StyleNode.a aVar7 = this.g; + int hashCode7 = (hashCode6 + (aVar7 != null ? aVar7.hashCode() : 0)) * 31; + StyleNode.a aVar8 = this.h; + if (aVar8 != null) { + i = aVar8.hashCode(); + } + return hashCode7 + i; + } + + public String toString() { + StringBuilder R = a.R("CodeStyleProviders(defaultStyleProvider="); + R.append(this.a); + R.append(", commentStyleProvider="); + R.append(this.f286b); + R.append(", literalStyleProvider="); + R.append(this.c); + R.append(", keywordStyleProvider="); + R.append(this.d); + R.append(", identifierStyleProvider="); + R.append(this.e); + R.append(", typesStyleProvider="); + R.append(this.f); + R.append(", genericsStyleProvider="); + R.append(this.g); + R.append(", paramsStyleProvider="); + R.append(this.h); + R.append(")"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/a/t/a/g.java b/app/src/main/java/b/a/t/a/g.java new file mode 100644 index 0000000000..c85a1c7915 --- /dev/null +++ b/app/src/main/java/b/a/t/a/g.java @@ -0,0 +1,13 @@ +package b.a.t.a; + +import com.discord.simpleast.core.node.StyleNode; +import d0.t.n; +/* compiled from: CodeStyleProviders.kt */ +public final class g implements StyleNode.a { + public static final g a = new g(); + + @Override // com.discord.simpleast.core.node.StyleNode.a + public final Iterable get(R r) { + return n.emptyList(); + } +} diff --git a/app/src/main/java/b/a/t/a/h.java b/app/src/main/java/b/a/t/a/h.java new file mode 100644 index 0000000000..b8daeeebc4 --- /dev/null +++ b/app/src/main/java/b/a/t/a/h.java @@ -0,0 +1,34 @@ +package b.a.t.a; + +import b.a.t.a.i; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: Crystal.kt */ +public final class h extends Rule, S> { + public final /* synthetic */ f a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(i.a.C0042a aVar, f fVar, Pattern pattern) { + super(pattern); + this.a = fVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + String group2 = matcher.group(2); + String group3 = matcher.group(3); + m.checkNotNull(group); + m.checkNotNull(group2); + i.a aVar = new i.a(group, group2, group3, this.a); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/i.java b/app/src/main/java/b/a/t/a/i.java new file mode 100644 index 0000000000..3308d0e955 --- /dev/null +++ b/app/src/main/java/b/a/t/a/i.java @@ -0,0 +1,52 @@ +package b.a.t.a; + +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import d0.z.d.m; +import java.util.regex.Pattern; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: Crystal.kt */ +public final class i { + public static final String[] a = {"true|false|nil", "module|require|include|extend|lib", "abstract|private|protected", "annotation|class|finalize|new|initialize|allocate|self|super", "union|typeof|forall|is_a?|nil?|as?|as|responds_to?|alias|type", "property|getter|setter|struct|of", "previous_def|method|fun|enum|macro", "rescue|raise|begin|end|ensure", "if|else|elsif|then|unless|until", "for|in|of|do|when|select|with", "while|break|next|yield|case", "print|puts|return"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f287b = {"Nil|Bool|true|false|Void|NoReturn", "Number|BigDecimal|BigRational|BigFloat|BigInt", "Int|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float|Float32|Float64", "Char|String|Symbol|Regex", "StaticArray|Array|Set|Hash|Range|Tuple|NamedTuple|Union|BitArray", "Proc|Command|Enum|Class", "Reference|Value|Struct|Object|Pointer", "Exception|ArgumentError|KeyError|TypeCastError|IndexError|RuntimeError|NilAssertionError|InvalidBigDecimalException|NotImplementedError|OverflowError", "pointerof|sizeof|instance_sizeof|offsetof|uninitialized"}; + public static final Pattern c = Pattern.compile("^(#.*)"); + public static final Pattern d = Pattern.compile("^@\\[(\\w+)(?:\\(.+\\))?]"); + public static final Pattern e = Pattern.compile("^\"[\\s\\S]*?(?)?|>(?=[>=\\s])[>=]?(?:(?<==)>)?)|\\[][?=]?|(?:!(?=[=~\\s])[=~]?|=?(?:~|==?)))(?:(? extends Node.a { + public static final Pattern a = Pattern.compile("^(def)( +\\w+)( *\\( *(?:@\\w+ +: +\\w*)?\\w+(?: +[:=] +.*)? *\\))?(?!.+)"); + + /* renamed from: b reason: collision with root package name */ + public static final C0042a f288b = new C0042a(null); + + /* compiled from: Crystal.kt */ + /* renamed from: b.a.t.a.i$a$a reason: collision with other inner class name */ + public static final class C0042a { + public C0042a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0034: APUT + (r0v4 com.discord.simpleast.core.node.Node[]) + (2 ??[int, float, short, byte, char]) + (r5v1 com.discord.simpleast.core.node.StyleNode$b) + */ + /* JADX WARNING: Illegal instructions before constructor call */ + public a(String str, String str2, String str3, f fVar) { + super(r0); + m.checkNotNullParameter(str, "pre"); + m.checkNotNullParameter(str2, "signature"); + m.checkNotNullParameter(fVar, "codeStyleProviders"); + Node[] nodeArr = new Node[3]; + nodeArr[0] = new StyleNode.b(str, fVar.d); + nodeArr[1] = new StyleNode.b(str2, fVar.e); + nodeArr[2] = str3 != null ? new StyleNode.b(str3, fVar.h) : null; + } + } +} diff --git a/app/src/main/java/b/a/t/a/j.java b/app/src/main/java/b/a/t/a/j.java new file mode 100644 index 0000000000..9e074d420e --- /dev/null +++ b/app/src/main/java/b/a/t/a/j.java @@ -0,0 +1,33 @@ +package b.a.t.a; + +import b.a.t.a.k; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: JavaScript.kt */ +public final class j extends Rule, S> { + public final /* synthetic */ f a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j(k.a.C0043a aVar, f fVar, Pattern pattern) { + super(pattern); + this.a = fVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + String group2 = matcher.group(2); + m.checkNotNull(group); + m.checkNotNull(group2); + k.a aVar = new k.a(group, group2, this.a); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/k.java b/app/src/main/java/b/a/t/a/k.java new file mode 100644 index 0000000000..bafb1e93ce --- /dev/null +++ b/app/src/main/java/b/a/t/a/k.java @@ -0,0 +1,99 @@ +package b.a.t.a; + +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import d0.g0.i; +import d0.z.d.m; +import java.util.regex.Pattern; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.text.Regex; +/* compiled from: JavaScript.kt */ +public final class k { + public static final String[] a = {"import|from|export|default|package", "class|enum", "function|super|extends|implements|arguments", "var|let|const|static|get|set|new", "return|break|continue|yield|void", "if|else|for|while|do|switch|async|await|case|try|catch|finally|delete|throw|NaN|Infinity", "of|in|instanceof|typeof", "debugger|with", "true|false|null|undefined"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f289b = {"String|Boolean|RegExp|Number|Date|Math|JSON|Symbol|BigInt|Atomics|DataView", "Function|Promise|Generator|GeneratorFunction|AsyncFunction|AsyncGenerator|AsyncGeneratorFunction", "Array|Object|Map|Set|WeakMap|WeakSet|Int8Array|Int16Array|Int32Array|Uint8Array|Uint16Array", "Uint32Array|Uint8ClampedArray|Float32Array|Float64Array|BigInt64Array|BigUint64Array|Buffer", "ArrayBuffer|SharedArrayBuffer", "Reflect|Proxy|Intl|WebAssembly", "console|process|require|isNaN|parseInt|parseFloat|encodeURI|decodeURI|encodeURIComponent", "decodeURIComponent|this|global|globalThis|eval|isFinite|module", "setTimeout|setInterval|clearTimeout|clearInterval|setImmediate|clearImmediate", "queueMicrotask|document|window", "Error|SyntaxError|TypeError|RangeError|ReferenceError|EvalError|InternalError|URIError", "AggregateError|escape|unescape|URL|URLSearchParams|TextEncoder|TextDecoder", "AbortController|AbortSignal|EventTarget|Event|MessageChannel", "MessagePort|MessageEvent|FinalizationRegistry|WeakRef", "regeneratorRuntime|performance"}; + public static final Pattern c = Pattern.compile("^/.+(?"); + public static final Pattern e = Pattern.compile("^(?:(?://.*?(?=\\n|$))|(/\\*.*?\\*/))", 32); + public static final Pattern f = Pattern.compile("^('.*?(? extends Node.a { + public static final Pattern a = Pattern.compile("^(var|let|const)(\\s+[a-zA-Z_$][a-zA-Z0-9_$]*)"); + + /* renamed from: b reason: collision with root package name */ + public static final C0043a f290b = new C0043a(null); + + /* compiled from: JavaScript.kt */ + /* renamed from: b.a.t.a.k$a$a reason: collision with other inner class name */ + public static final class C0043a { + public C0043a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(String str, String str2, f fVar) { + super(new StyleNode.b(str, fVar.d), new StyleNode.b(str2, fVar.e)); + m.checkNotNullParameter(str, "definition"); + m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_NAME); + m.checkNotNullParameter(fVar, "codeStyleProviders"); + } + } + + /* compiled from: JavaScript.kt */ + public static final class b extends Node.a { + public static final Pattern a = new Regex("^(function\\*?|static|get|set|async)(\\s+[a-zA-Z_$][a-zA-Z0-9_$]*)?(\\s*\\(.*?\\))", i.DOT_MATCHES_ALL).toPattern(); + + /* renamed from: b reason: collision with root package name */ + public static final a f291b = new a(null); + + /* compiled from: JavaScript.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x002a: APUT + (r0v4 com.discord.simpleast.core.node.Node[]) + (1 ??[boolean, int, float, short, byte, char]) + (r1v1 com.discord.simpleast.core.node.StyleNode$b) + */ + /* JADX WARNING: Illegal instructions before constructor call */ + public b(String str, String str2, String str3, f fVar) { + super(r0); + m.checkNotNullParameter(str, "pre"); + m.checkNotNullParameter(str3, "params"); + m.checkNotNullParameter(fVar, "codeStyleProviders"); + Node[] nodeArr = new Node[3]; + nodeArr[0] = new StyleNode.b(str, fVar.d); + nodeArr[1] = str2 != null ? new StyleNode.b(str2, fVar.e) : null; + nodeArr[2] = new StyleNode.b(str3, fVar.h); + } + } + + /* compiled from: JavaScript.kt */ + public static final class c extends Node.a { + public static final Pattern a = Pattern.compile("^([\\{\\[\\,])(\\s*[a-zA-Z0-9_$]+)(\\s*:)"); + + /* renamed from: b reason: collision with root package name */ + public static final a f292b = new a(null); + + /* compiled from: JavaScript.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(String str, String str2, String str3, f fVar) { + super(new StyleNode.b(str, fVar.a), new StyleNode.b(str2, fVar.e), new StyleNode.b(str3, fVar.a)); + m.checkNotNullParameter(str, "prefix"); + m.checkNotNullParameter(str2, "property"); + m.checkNotNullParameter(str3, "suffix"); + m.checkNotNullParameter(fVar, "codeStyleProviders"); + } + } +} diff --git a/app/src/main/java/b/a/t/a/l.java b/app/src/main/java/b/a/t/a/l.java new file mode 100644 index 0000000000..6dceebc463 --- /dev/null +++ b/app/src/main/java/b/a/t/a/l.java @@ -0,0 +1,34 @@ +package b.a.t.a; + +import b.a.t.a.k; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: JavaScript.kt */ +public final class l extends Rule, S> { + public final /* synthetic */ f a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(k.b.a aVar, f fVar, Pattern pattern) { + super(pattern); + this.a = fVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + String group2 = matcher.group(2); + String group3 = matcher.group(3); + m.checkNotNull(group); + m.checkNotNull(group3); + k.b bVar = new k.b(group, group2, group3, this.a); + m.checkNotNullParameter(bVar, "node"); + return new ParseSpec<>(bVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/m.java b/app/src/main/java/b/a/t/a/m.java new file mode 100644 index 0000000000..03e8c7872c --- /dev/null +++ b/app/src/main/java/b/a/t/a/m.java @@ -0,0 +1,34 @@ +package b.a.t.a; + +import b.a.t.a.k; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: JavaScript.kt */ +public final class m extends Rule, S> { + public final /* synthetic */ f a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public m(k.c.a aVar, f fVar, Pattern pattern) { + super(pattern); + this.a = fVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + d0.z.d.m.checkNotNullParameter(matcher, "matcher"); + d0.z.d.m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + String group2 = matcher.group(2); + String group3 = matcher.group(3); + d0.z.d.m.checkNotNull(group); + d0.z.d.m.checkNotNull(group2); + d0.z.d.m.checkNotNull(group3); + k.c cVar = new k.c(group, group2, group3, this.a); + d0.z.d.m.checkNotNullParameter(cVar, "node"); + return new ParseSpec<>(cVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/n.java b/app/src/main/java/b/a/t/a/n.java new file mode 100644 index 0000000000..2b814b66cd --- /dev/null +++ b/app/src/main/java/b/a/t/a/n.java @@ -0,0 +1,33 @@ +package b.a.t.a; + +import b.a.t.a.o; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: Kotlin.kt */ +public final class n extends Rule, S> { + public final /* synthetic */ f a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public n(o.a.C0044a aVar, f fVar, Pattern pattern) { + super(pattern); + this.a = fVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + String group2 = matcher.group(2); + m.checkNotNull(group); + m.checkNotNull(group2); + o.a aVar = new o.a(group, group2, this.a); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/o.java b/app/src/main/java/b/a/t/a/o.java new file mode 100644 index 0000000000..a54b5ea118 --- /dev/null +++ b/app/src/main/java/b/a/t/a/o.java @@ -0,0 +1,77 @@ +package b.a.t.a; + +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import d0.g0.i; +import d0.z.d.m; +import java.util.regex.Pattern; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.text.Regex; +/* compiled from: Kotlin.kt */ +public final class o { + public static final String[] a = {"public|private|internal|inline|lateinit|abstract|open|reified", "import|package", "class|interface|data|enum|sealed|object|typealias", "fun|override|this|super|where|constructor|init|param|delegate", "const|val|var|get|final|vararg|it", "return|break|continue|suspend", "for|while|do|if|else|when|try|catch|finally|throw", "in|out|is|as|typeof", "shr|ushr|shl|ushl", "true|false|null"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f293b = {"true|false|Boolean|String|Char", "Int|UInt|Long|ULong|Float|Double|Byte|UByte|Short|UShort", "Self|Set|Map|MutableMap|List|MutableList|Array|Runnable|Unit", "arrayOf|listOf|mapOf|setOf|let|also|apply|run"}; + public static final Pattern c = Pattern.compile("^(?:(?://.*?(?=\\n|$))|(/\\*.*?\\*/))", 32); + public static final Pattern d = Pattern.compile("^@(\\w+)"); + public static final Pattern e = Pattern.compile("^\"[\\s\\S]*?(? extends Node.a { + public static final Pattern a = Pattern.compile("^(val|var)(\\s+\\w+)", 32); + + /* renamed from: b reason: collision with root package name */ + public static final C0044a f294b = new C0044a(null); + + /* compiled from: Kotlin.kt */ + /* renamed from: b.a.t.a.o$a$a reason: collision with other inner class name */ + public static final class C0044a { + public C0044a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(String str, String str2, f fVar) { + super(new StyleNode.b(str, fVar.d), new StyleNode.b(str2, fVar.e)); + m.checkNotNullParameter(str, "definition"); + m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_NAME); + m.checkNotNullParameter(fVar, "codeStyleProviders"); + } + } + + /* compiled from: Kotlin.kt */ + public static final class b extends Node.a { + public static final Pattern a = new Regex("^(fun)( *<.*>)?( \\w+)( *\\(.*?\\))", i.DOT_MATCHES_ALL).toPattern(); + + /* renamed from: b reason: collision with root package name */ + public static final a f295b = new a(null); + + /* compiled from: Kotlin.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0030: APUT + (r0v5 com.discord.simpleast.core.node.Node[]) + (1 ??[boolean, int, float, short, byte, char]) + (r1v1 com.discord.simpleast.core.node.StyleNode$b) + */ + /* JADX WARNING: Illegal instructions before constructor call */ + public b(String str, String str2, String str3, String str4, f fVar) { + super(r0); + m.checkNotNullParameter(str, "pre"); + m.checkNotNullParameter(str3, "signature"); + m.checkNotNullParameter(str4, "params"); + m.checkNotNullParameter(fVar, "codeStyleProviders"); + Node[] nodeArr = new Node[4]; + nodeArr[0] = new StyleNode.b(str, fVar.d); + nodeArr[1] = str2 != null ? new StyleNode.b(str2, fVar.g) : null; + nodeArr[2] = new StyleNode.b(str3, fVar.e); + nodeArr[3] = new StyleNode.b(str4, fVar.h); + } + } +} diff --git a/app/src/main/java/b/a/t/a/p.java b/app/src/main/java/b/a/t/a/p.java new file mode 100644 index 0000000000..5094491d73 --- /dev/null +++ b/app/src/main/java/b/a/t/a/p.java @@ -0,0 +1,36 @@ +package b.a.t.a; + +import b.a.t.a.o; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: Kotlin.kt */ +public final class p extends Rule, S> { + public final /* synthetic */ f a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public p(o.b.a aVar, f fVar, Pattern pattern) { + super(pattern); + this.a = fVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + String group2 = matcher.group(2); + String group3 = matcher.group(3); + String group4 = matcher.group(4); + m.checkNotNull(group); + m.checkNotNull(group3); + m.checkNotNull(group4); + o.b bVar = new o.b(group, group2, group3, group4, this.a); + m.checkNotNullParameter(bVar, "node"); + return new ParseSpec<>(bVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/a/q.java b/app/src/main/java/b/a/t/a/q.java new file mode 100644 index 0000000000..dd08234a8f --- /dev/null +++ b/app/src/main/java/b/a/t/a/q.java @@ -0,0 +1,131 @@ +package b.a.t.a; + +import android.text.SpannableStringBuilder; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import d0.o; +import d0.z.d.k; +import d0.z.d.m; +import java.util.Iterator; +import java.util.Objects; +import java.util.regex.Pattern; +import kotlin.Pair; +import kotlin.jvm.functions.Function1; +/* compiled from: Xml.kt */ +public final class q { + public static final Pattern a; + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f296b; + public static final q c = new q(); + + /* compiled from: Xml.kt */ + public static final class a extends Node.a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f297b; + public final f c; + + /* compiled from: Xml.kt */ + /* renamed from: b.a.t.a.q$a$a reason: collision with other inner class name */ + public static final /* synthetic */ class C0045a extends k implements Function1> { + public C0045a(StyleNode.a aVar) { + super(1, aVar, StyleNode.a.class, "get", "get(Ljava/lang/Object;)Ljava/lang/Iterable;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function1 + public Iterable invoke(Object obj) { + return ((StyleNode.a) this.receiver).get(obj); + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(String str, String str2, f fVar) { + super(new Node[0]); + m.checkNotNullParameter(str, "opening"); + m.checkNotNullParameter(fVar, "codeStyleProviders"); + this.a = str; + this.f297b = str2; + this.c = fVar; + } + + @Override // com.discord.simpleast.core.node.Node.a, com.discord.simpleast.core.node.Node + public void render(SpannableStringBuilder spannableStringBuilder, RC rc) { + Pair pair; + m.checkNotNullParameter(spannableStringBuilder, "builder"); + String str = this.a; + int length = str.length(); + boolean z2 = false; + int i = 0; + while (true) { + if (i >= length) { + i = -1; + break; + } + char charAt = str.charAt(i); + if (d0.g0.a.isWhitespace(charAt) || charAt == '/') { + break; + } + i++; + } + if (i != -1) { + String str2 = this.a; + Objects.requireNonNull(str2, "null cannot be cast to non-null type java.lang.String"); + String substring = str2.substring(0, i); + m.checkNotNullExpressionValue(substring, "(this as java.lang.Strin…ing(startIndex, endIndex)"); + String str3 = this.a; + Objects.requireNonNull(str3, "null cannot be cast to non-null type java.lang.String"); + String substring2 = str3.substring(i); + m.checkNotNullExpressionValue(substring2, "(this as java.lang.String).substring(startIndex)"); + pair = o.to(substring, substring2); + } else { + pair = o.to(this.a, ""); + } + String str4 = (String) pair.component2(); + C0045a aVar = new C0045a(this.c.g); + int length2 = spannableStringBuilder.length(); + spannableStringBuilder.append((CharSequence) ('<' + ((String) pair.component1()))); + Iterator it = aVar.invoke(rc).iterator(); + while (it.hasNext()) { + spannableStringBuilder.setSpan(it.next(), length2, spannableStringBuilder.length(), 33); + } + int length3 = spannableStringBuilder.length(); + spannableStringBuilder.append((CharSequence) (str4 + '>')); + Iterator it2 = this.c.h.get(rc).iterator(); + while (it2.hasNext()) { + spannableStringBuilder.setSpan(it2.next(), length3, spannableStringBuilder.length() - 1, 33); + } + Iterator it3 = aVar.invoke(rc).iterator(); + while (it3.hasNext()) { + spannableStringBuilder.setSpan(it3.next(), spannableStringBuilder.length() - 1, spannableStringBuilder.length(), 33); + } + super.render(spannableStringBuilder, rc); + String str5 = this.f297b; + if (str5 == null || str5.length() == 0) { + z2 = true; + } + if (!z2) { + int length4 = spannableStringBuilder.length(); + StringBuilder R = b.d.b.a.a.R("'); + spannableStringBuilder.append((CharSequence) R.toString()); + Iterator it4 = aVar.invoke(rc).iterator(); + while (it4.hasNext()) { + spannableStringBuilder.setSpan(it4.next(), length4 + 1, spannableStringBuilder.length(), 33); + } + } + } + } + + static { + Pattern compile = Pattern.compile("^", 32); + m.checkNotNullExpressionValue(compile, "Pattern.compile(\"\"\"^\"\"\", Pattern.DOTALL)"); + a = compile; + Pattern compile2 = Pattern.compile("^<([\\s\\S]+?)(?:>(.*?)<\\/([\\s\\S]+?))?>", 32); + m.checkNotNullExpressionValue(compile2, "Pattern.compile(\n \"…?))?>\"\"\", Pattern.DOTALL)"); + f296b = compile2; + } +} diff --git a/app/src/main/java/b/a/t/a/r.java b/app/src/main/java/b/a/t/a/r.java new file mode 100644 index 0000000000..21aa17964e --- /dev/null +++ b/app/src/main/java/b/a/t/a/r.java @@ -0,0 +1,39 @@ +package b.a.t.a; + +import b.a.t.a.q; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: Xml.kt */ +public final class r extends Rule, S> { + public final /* synthetic */ f a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public r(q qVar, f fVar, Pattern pattern) { + super(pattern); + this.a = fVar; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + m.checkNotNull(group); + String group2 = matcher.group(3); + if (matcher.group(2) != null) { + q.a aVar = new q.a(group, group2, this.a); + int start = matcher.start(2); + int end = matcher.end(2); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, s2, start, end); + } + q.a aVar2 = new q.a(group, group2, this.a); + m.checkNotNullParameter(aVar2, "node"); + return new ParseSpec<>(aVar2, s2); + } +} diff --git a/app/src/main/java/b/a/t/b/a/a.java b/app/src/main/java/b/a/t/b/a/a.java new file mode 100644 index 0000000000..dc33825d6f --- /dev/null +++ b/app/src/main/java/b/a/t/b/a/a.java @@ -0,0 +1,30 @@ +package b.a.t.b.a; + +import android.text.SpannableStringBuilder; +import com.discord.simpleast.core.node.Node; +import d0.z.d.m; +/* compiled from: TextNode.kt */ +public class a extends Node { + private final String content; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(String str) { + super(null, 1, null); + m.checkNotNullParameter(str, "content"); + this.content = str; + } + + public final String getContent() { + return this.content; + } + + @Override // com.discord.simpleast.core.node.Node + public void render(SpannableStringBuilder spannableStringBuilder, R r) { + m.checkNotNullParameter(spannableStringBuilder, "builder"); + spannableStringBuilder.append((CharSequence) this.content); + } + + public String toString() { + return getClass().getSimpleName() + ": " + this.content; + } +} diff --git a/app/src/main/java/b/a/t/b/b/a.java b/app/src/main/java/b/a/t/b/b/a.java new file mode 100644 index 0000000000..610a329785 --- /dev/null +++ b/app/src/main/java/b/a/t/b/b/a.java @@ -0,0 +1,23 @@ +package b.a.t.b.b; + +import android.text.style.CharacterStyle; +import android.text.style.StyleSpan; +import d0.t.m; +import d0.z.d.o; +import java.util.List; +import kotlin.jvm.functions.Function0; +/* compiled from: SimpleMarkdownRules.kt */ +public final class a extends o implements Function0> { + public static final a j = new a(); + + public a() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public List mo1invoke() { + return m.listOf(new StyleSpan(1)); + } +} diff --git a/app/src/main/java/b/a/t/b/b/b.java b/app/src/main/java/b/a/t/b/b/b.java new file mode 100644 index 0000000000..4513e8d750 --- /dev/null +++ b/app/src/main/java/b/a/t/b/b/b.java @@ -0,0 +1,27 @@ +package b.a.t.b.b; + +import b.a.t.b.a.a; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: SimpleMarkdownRules.kt */ +public final class b extends Rule, S> { + public b(e eVar, Pattern pattern) { + super(pattern); + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + m.checkNotNull(group); + a aVar = new a(group); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/b/b/c.java b/app/src/main/java/b/a/t/b/b/c.java new file mode 100644 index 0000000000..9b0099e6ea --- /dev/null +++ b/app/src/main/java/b/a/t/b/b/c.java @@ -0,0 +1,45 @@ +package b.a.t.b.b; + +import android.text.style.StyleSpan; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: SimpleMarkdownRules.kt */ +public final class c extends Rule, S> { + public c(e eVar, Pattern pattern) { + super(pattern); + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + int i; + int i2; + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(2); + if (group != null) { + if (group.length() > 0) { + i2 = matcher.start(2); + i = matcher.end(2); + ArrayList arrayList = new ArrayList(1); + arrayList.add(new StyleSpan(2)); + StyleNode styleNode = new StyleNode(arrayList); + m.checkNotNullParameter(styleNode, "node"); + return new ParseSpec<>(styleNode, s2, i2, i); + } + } + i2 = matcher.start(1); + i = matcher.end(1); + ArrayList arrayList = new ArrayList(1); + arrayList.add(new StyleSpan(2)); + StyleNode styleNode = new StyleNode(arrayList); + m.checkNotNullParameter(styleNode, "node"); + return new ParseSpec<>(styleNode, s2, i2, i); + } +} diff --git a/app/src/main/java/b/a/t/b/b/d.java b/app/src/main/java/b/a/t/b/b/d.java new file mode 100644 index 0000000000..dd4b6d1d50 --- /dev/null +++ b/app/src/main/java/b/a/t/b/b/d.java @@ -0,0 +1,25 @@ +package b.a.t.b.b; + +import b.a.t.b.a.a; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: SimpleMarkdownRules.kt */ +public final class d extends Rule.BlockRule, S> { + public d(e eVar, Pattern pattern) { + super(pattern); + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + a aVar = new a("\n"); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, s2); + } +} diff --git a/app/src/main/java/b/a/t/b/b/e.java b/app/src/main/java/b/a/t/b/b/e.java new file mode 100644 index 0000000000..87297ec3fd --- /dev/null +++ b/app/src/main/java/b/a/t/b/b/e.java @@ -0,0 +1,119 @@ +package b.a.t.b.b; + +import android.text.style.CharacterStyle; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import kotlin.jvm.functions.Function0; +/* compiled from: SimpleMarkdownRules.kt */ +public final class e { + public static final Pattern a = Pattern.compile("^\\*\\*([\\s\\S]+?)\\*\\*(?!\\*)"); + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f298b = Pattern.compile("^__([\\s\\S]+?)__(?!_)"); + public static final Pattern c = Pattern.compile("^~~(?=\\S)([\\s\\S]*?\\S)~~"); + public static final Pattern d = Pattern.compile("^(?:\\n *)*\\n"); + public static final Pattern e = Pattern.compile("^[\\s\\S]+?(?=[^0-9A-Za-z\\s\\u00c0-\\uffff]|\\n| {2,}\\n|\\w+:\\S|$)"); + public static final Pattern f = Pattern.compile("^\\\\([^0-9A-Za-z\\s])"); + public static final Pattern g = Pattern.compile("^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b|^\\*(?=\\S)((?:\\*\\*|\\s+(?:[^*\\s]|\\*\\*)|[^\\s*])+?)\\*(?!\\*)"); + public static final e h = new e(); + + /* compiled from: SimpleMarkdownRules.kt */ + public static final class a extends Rule, S> { + public final /* synthetic */ Function0 a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(Function0 function0, Pattern pattern, Pattern pattern2) { + super(pattern2); + this.a = function0; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + StyleNode styleNode = new StyleNode((List) this.a.mo1invoke()); + int start = matcher.start(1); + int end = matcher.end(1); + m.checkNotNullParameter(styleNode, "node"); + return new ParseSpec<>(styleNode, s2, start, end); + } + } + + /* compiled from: SimpleMarkdownRules.kt */ + public static final class b extends Rule, S> { + public b(e eVar, Pattern pattern) { + super(pattern); + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(); + m.checkNotNullExpressionValue(group, "matcher.group()"); + b.a.t.b.a.a aVar = new b.a.t.b.a.a(group); + m.checkNotNullParameter(aVar, "node"); + return new ParseSpec<>(aVar, s2); + } + } + + public static final List, S>> a(boolean z2, boolean z3) { + ArrayList arrayList = new ArrayList(); + if (z3) { + e eVar = h; + Pattern pattern = f; + m.checkNotNullExpressionValue(pattern, "PATTERN_ESCAPE"); + arrayList.add(new b(eVar, pattern)); + } + e eVar2 = h; + Pattern pattern2 = d; + m.checkNotNullExpressionValue(pattern2, "PATTERN_NEWLINE"); + arrayList.add(new d(eVar2, pattern2)); + Pattern pattern3 = a; + m.checkNotNullExpressionValue(pattern3, "PATTERN_BOLD"); + arrayList.add(c(pattern3, a.j)); + Pattern pattern4 = f298b; + m.checkNotNullExpressionValue(pattern4, "PATTERN_UNDERLINE"); + arrayList.add(c(pattern4, g.j)); + Pattern pattern5 = g; + m.checkNotNullExpressionValue(pattern5, "PATTERN_ITALICS"); + arrayList.add(new c(eVar2, pattern5)); + Pattern pattern6 = c; + m.checkNotNullExpressionValue(pattern6, "PATTERN_STRIKETHRU"); + arrayList.add(c(pattern6, f.j)); + if (z2) { + arrayList.add(eVar2.d()); + } + return arrayList; + } + + public static /* synthetic */ List b(boolean z2, boolean z3, int i) { + if ((i & 1) != 0) { + z2 = true; + } + if ((i & 2) != 0) { + z3 = true; + } + return a(z2, z3); + } + + public static final Rule, S> c(Pattern pattern, Function0> function0) { + m.checkNotNullParameter(pattern, "pattern"); + m.checkNotNullParameter(function0, "styleFactory"); + return new a(function0, pattern, pattern); + } + + public final Rule, S> d() { + Pattern pattern = e; + m.checkNotNullExpressionValue(pattern, "PATTERN_TEXT"); + return new b(this, pattern); + } +} diff --git a/app/src/main/java/b/a/t/b/b/f.java b/app/src/main/java/b/a/t/b/b/f.java new file mode 100644 index 0000000000..f58db47c60 --- /dev/null +++ b/app/src/main/java/b/a/t/b/b/f.java @@ -0,0 +1,23 @@ +package b.a.t.b.b; + +import android.text.style.CharacterStyle; +import android.text.style.StrikethroughSpan; +import d0.t.m; +import d0.z.d.o; +import java.util.List; +import kotlin.jvm.functions.Function0; +/* compiled from: SimpleMarkdownRules.kt */ +public final class f extends o implements Function0> { + public static final f j = new f(); + + public f() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public List mo1invoke() { + return m.listOf(new StrikethroughSpan()); + } +} diff --git a/app/src/main/java/b/a/t/b/b/g.java b/app/src/main/java/b/a/t/b/b/g.java new file mode 100644 index 0000000000..9bf85481b2 --- /dev/null +++ b/app/src/main/java/b/a/t/b/b/g.java @@ -0,0 +1,23 @@ +package b.a.t.b.b; + +import android.text.style.CharacterStyle; +import android.text.style.UnderlineSpan; +import d0.t.m; +import d0.z.d.o; +import java.util.List; +import kotlin.jvm.functions.Function0; +/* compiled from: SimpleMarkdownRules.kt */ +public final class g extends o implements Function0> { + public static final g j = new g(); + + public g() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public List mo1invoke() { + return m.listOf(new UnderlineSpan()); + } +} diff --git a/app/src/main/java/b/a/t/b/b/h.java b/app/src/main/java/b/a/t/b/b/h.java new file mode 100644 index 0000000000..b8feb5d616 --- /dev/null +++ b/app/src/main/java/b/a/t/b/b/h.java @@ -0,0 +1,19 @@ +package b.a.t.b.b; + +import android.text.SpannableStringBuilder; +import com.discord.simpleast.core.node.Node; +import d0.z.d.m; +import java.util.Collection; +import java.util.Iterator; +/* compiled from: SimpleRenderer.kt */ +public final class h { + public static final T a(T t, Collection> collection, R r) { + m.checkNotNullParameter(t, "builder"); + m.checkNotNullParameter(collection, "ast"); + Iterator> it = collection.iterator(); + while (it.hasNext()) { + ((Node) it.next()).render(t, r); + } + return t; + } +} diff --git a/app/src/main/java/b/a/t/b/c/a.java b/app/src/main/java/b/a/t/b/c/a.java new file mode 100644 index 0000000000..cb59e7c2a5 --- /dev/null +++ b/app/src/main/java/b/a/t/b/c/a.java @@ -0,0 +1,7 @@ +package b.a.t.b.c; + +import com.discord.simpleast.core.node.Node; +/* compiled from: NodeProcessor */ +public interface a { + void processNode(Node node); +} diff --git a/app/src/main/java/b/a/t/c/a.java b/app/src/main/java/b/a/t/c/a.java new file mode 100644 index 0000000000..cdeb67f82e --- /dev/null +++ b/app/src/main/java/b/a/t/c/a.java @@ -0,0 +1,194 @@ +package b.a.t.c; + +import android.text.style.CharacterStyle; +import b.a.t.b.b.e; +import com.discord.simpleast.core.node.Node; +import com.discord.simpleast.core.node.StyleNode; +import com.discord.simpleast.core.parser.ParseSpec; +import com.discord.simpleast.core.parser.Parser; +import com.discord.simpleast.core.parser.Rule; +import d0.g0.w; +import d0.t.n; +import d0.t.u; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.text.Regex; +/* compiled from: MarkdownRules.kt */ +public final class a { + public static final Pattern a; + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f299b; + public static final Pattern c; + public static final Pattern d = new Regex("^\\s*(?:(?:(.+)(?: +\\{([\\w ]*)\\}))|(.*))[ \\t]*\\n *([=\\-]){3,}[ \\t]*(?=\\n|$)").toPattern(); + public static final a e = new a(); + + /* compiled from: MarkdownRules.kt */ + /* renamed from: b.a.t.c.a$a reason: collision with other inner class name */ + public static class C0046a extends b { + private final Function1 classSpanProvider; + private final List, S>> innerRules; + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public C0046a(Function1 function1, Function1 function12) { + this(function1, function12, u.plus((Collection) e.b(false, false, 2), e.h.d())); + m.checkNotNullParameter(function1, "styleSpanProvider"); + m.checkNotNullParameter(function12, "classSpanProvider"); + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: kotlin.jvm.functions.Function1 */ + /* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: java.util.List, S>> */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0046a(Function1 function1, Function1 function12, List, S>> list) { + super(a.d, function1); + m.checkNotNullParameter(function1, "styleSpanProvider"); + m.checkNotNullParameter(function12, "classSpanProvider"); + m.checkNotNullParameter(list, "innerRules"); + a aVar = a.e; + this.classSpanProvider = function12; + this.innerRules = list; + } + + public final Function1 getClassSpanProvider() { + return this.classSpanProvider; + } + + public final List, S>> getInnerRules() { + return this.innerRules; + } + + @Override // b.a.t.c.a.b, b.a.t.c.a.c, com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + List list; + String obj; + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(4); + m.checkNotNullExpressionValue(group, "matcher.group(4)"); + StyleNode createHeaderStyleNode = createHeaderStyleNode(group); + String group2 = matcher.group(1); + if (group2 == null) { + group2 = matcher.group(3); + } + m.checkNotNullExpressionValue(group2, "headerBody"); + for (T t : parser.parse(group2, s2, this.innerRules)) { + Objects.requireNonNull(t, "null cannot be cast to non-null type com.discord.simpleast.core.node.Node"); + createHeaderStyleNode.addChild(t); + } + String group3 = matcher.group(2); + List split$default = (group3 == null || (obj = w.trim(group3).toString()) == null) ? null : w.split$default((CharSequence) obj, new char[]{' '}, false, 0, 6, (Object) null); + if (split$default != null) { + list = new ArrayList(); + for (T t2 : split$default) { + T invoke = this.classSpanProvider.invoke(t2); + if (invoke != null) { + list.add(invoke); + } + } + } else { + list = n.emptyList(); + } + if (!list.isEmpty()) { + StyleNode styleNode = new StyleNode<>(list); + styleNode.addChild(createHeaderStyleNode); + createHeaderStyleNode = styleNode; + } + m.checkNotNullParameter(createHeaderStyleNode, "node"); + return new ParseSpec<>(createHeaderStyleNode, s2); + } + } + + /* compiled from: MarkdownRules.kt */ + public static class b extends c { + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(Pattern pattern, Function1 function1) { + super(pattern, function1); + m.checkNotNullParameter(pattern, "pattern"); + m.checkNotNullParameter(function1, "styleSpanProvider"); + } + + /* JADX WARNING: Illegal instructions before constructor call */ + public b(Pattern pattern, Function1 function1, int i, DefaultConstructorMarker defaultConstructorMarker) { + this(pattern, function1); + if ((i & 1) != 0) { + a aVar = a.e; + pattern = a.c; + } + } + + @Override // b.a.t.c.a.c + public StyleNode createHeaderStyleNode(String str) { + m.checkNotNullParameter(str, "headerStyleGroup"); + return new StyleNode<>(d0.t.m.listOf(getStyleSpanProvider().invoke(Integer.valueOf((str.hashCode() == 61 && str.equals("=")) ? 1 : 2)))); + } + + @Override // b.a.t.c.a.c, com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + throw null; + } + } + + /* compiled from: MarkdownRules.kt */ + public static class c extends Rule.BlockRule, S> { + private final Function1 styleSpanProvider; + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: kotlin.jvm.functions.Function1 */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(Pattern pattern, Function1 function1) { + super(pattern); + m.checkNotNullParameter(pattern, "pattern"); + m.checkNotNullParameter(function1, "styleSpanProvider"); + this.styleSpanProvider = function1; + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public c(Function1 function1) { + this(a.f299b, function1); + m.checkNotNullParameter(function1, "styleSpanProvider"); + a aVar = a.e; + } + + public StyleNode createHeaderStyleNode(String str) { + m.checkNotNullParameter(str, "headerStyleGroup"); + return new StyleNode<>(d0.t.m.listOf(this.styleSpanProvider.invoke(Integer.valueOf(str.length())))); + } + + public final Function1 getStyleSpanProvider() { + return this.styleSpanProvider; + } + + @Override // com.discord.simpleast.core.parser.Rule + public ParseSpec parse(Matcher matcher, Parser, S> parser, S s2) { + m.checkNotNullParameter(matcher, "matcher"); + m.checkNotNullParameter(parser, "parser"); + String group = matcher.group(1); + m.checkNotNullExpressionValue(group, "matcher.group(1)"); + StyleNode createHeaderStyleNode = createHeaderStyleNode(group); + int start = matcher.start(2); + int end = matcher.end(2); + m.checkNotNullParameter(createHeaderStyleNode, "node"); + return new ParseSpec<>(createHeaderStyleNode, s2, start, end); + } + } + + static { + Pattern compile = Pattern.compile("^\\*[ \\t](.*)(?=\\n|$)", 0); + m.checkNotNullExpressionValue(compile, "java.util.regex.Pattern.compile(this, flags)"); + a = compile; + Pattern compile2 = Pattern.compile("^\\s*(#+)[ \\t](.*) *(?=\\n|$)", 0); + m.checkNotNullExpressionValue(compile2, "java.util.regex.Pattern.compile(this, flags)"); + f299b = compile2; + Pattern compile3 = Pattern.compile("^\\s*(.+)\\n *(=|-){3,} *(?=\\n|$)", 0); + m.checkNotNullExpressionValue(compile3, "java.util.regex.Pattern.compile(this, flags)"); + c = compile3; + } +} diff --git a/app/src/main/java/b/a/u/a.java b/app/src/main/java/b/a/u/a.java new file mode 100644 index 0000000000..0b4a6c6d8a --- /dev/null +++ b/app/src/main/java/b/a/u/a.java @@ -0,0 +1,12 @@ +package b.a.u; + +import rx.functions.Action1; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Action1 { + public static final /* synthetic */ a j = new a(); + + @Override // rx.functions.Action1 + public final void call(Object obj) { + Throwable th = (Throwable) obj; + } +} diff --git a/app/src/main/java/b/a/u/b.java b/app/src/main/java/b/a/u/b.java new file mode 100644 index 0000000000..8fd70deaa4 --- /dev/null +++ b/app/src/main/java/b/a/u/b.java @@ -0,0 +1,17 @@ +package b.a.u; + +import com.discord.stores.StoreMessagesHolder; +import rx.functions.Action1; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Action1 { + public final /* synthetic */ StoreMessagesHolder j; + + public /* synthetic */ b(StoreMessagesHolder storeMessagesHolder) { + this.j = storeMessagesHolder; + } + + @Override // rx.functions.Action1 + public final void call(Object obj) { + this.j.a(obj); + } +} diff --git a/app/src/main/java/b/a/v/a.java b/app/src/main/java/b/a/v/a.java new file mode 100644 index 0000000000..b721690d72 --- /dev/null +++ b/app/src/main/java/b/a/v/a.java @@ -0,0 +1,21 @@ +package b.a.v; + +import android.content.SharedPreferences; +import com.discord.utilities.cache.SharedPreferencesProvider; +import d0.z.d.m; +/* compiled from: AcknowledgedTooltipsCache.kt */ +public final class a { + public final SharedPreferences a; + + public a() { + SharedPreferences sharedPreferences = SharedPreferencesProvider.INSTANCE.get(); + m.checkNotNullParameter(sharedPreferences, "sharedPreferences"); + this.a = sharedPreferences; + } + + public a(SharedPreferences sharedPreferences, int i) { + SharedPreferences sharedPreferences2 = (i & 1) != 0 ? SharedPreferencesProvider.INSTANCE.get() : null; + m.checkNotNullParameter(sharedPreferences2, "sharedPreferences"); + this.a = sharedPreferences2; + } +} diff --git a/app/src/main/java/b/a/v/b.java b/app/src/main/java/b/a/v/b.java new file mode 100644 index 0000000000..883f2d3989 --- /dev/null +++ b/app/src/main/java/b/a/v/b.java @@ -0,0 +1,21 @@ +package b.a.v; + +import android.view.View; +import com.discord.tooltips.DefaultTooltipCreator; +import com.discord.tooltips.TooltipManager; +/* compiled from: DefaultTooltipCreator.kt */ +public final class b implements View.OnClickListener { + public final /* synthetic */ DefaultTooltipCreator j; + public final /* synthetic */ TooltipManager.b k; + + public b(DefaultTooltipCreator defaultTooltipCreator, TooltipManager.b bVar) { + this.j = defaultTooltipCreator; + this.k = bVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.a.a(this.k); + this.j.a.c(this.k); + } +} diff --git a/app/src/main/java/b/a/v/c.java b/app/src/main/java/b/a/v/c.java new file mode 100644 index 0000000000..bf0a0d738a --- /dev/null +++ b/app/src/main/java/b/a/v/c.java @@ -0,0 +1,23 @@ +package b.a.v; + +import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat; +import com.discord.tooltips.SparkleView; +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: SparkleView.kt */ +public final class c extends o implements Function0 { + public final /* synthetic */ SparkleView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(SparkleView sparkleView) { + super(0); + this.this$0 = sparkleView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public AnimatedVectorDrawableCompat mo1invoke() { + return AnimatedVectorDrawableCompat.create(this.this$0.getContext(), this.this$0.k); + } +} diff --git a/app/src/main/java/b/a/v/d.java b/app/src/main/java/b/a/v/d.java new file mode 100644 index 0000000000..5b7151bbcc --- /dev/null +++ b/app/src/main/java/b/a/v/d.java @@ -0,0 +1,83 @@ +package b.a.v; + +import android.graphics.drawable.Drawable; +import androidx.vectordrawable.graphics.drawable.Animatable2Compat; +import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat; +import b.i.a.f.e.o.f; +import com.discord.tooltips.SparkleView; +import com.discord.utilities.views.ViewCoroutineScopeKt; +import d0.l; +import d0.w.h.c; +import d0.w.i.a.e; +import d0.w.i.a.k; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.coroutines.Continuation; +import kotlin.jvm.functions.Function2; +import kotlinx.coroutines.CoroutineScope; +/* compiled from: SparkleView.kt */ +public final class d extends Animatable2Compat.AnimationCallback { + public final /* synthetic */ SparkleView a; + + /* compiled from: SparkleView.kt */ + @e(c = "com.discord.tooltips.SparkleView$startAnimation$1$onAnimationEnd$1", f = "SparkleView.kt", l = {61}, m = "invokeSuspend") + public static final class a extends k implements Function2, Object> { + public int label; + public final /* synthetic */ d this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(d dVar, Continuation continuation) { + super(2, continuation); + this.this$0 = dVar; + } + + @Override // d0.w.i.a.a + public final Continuation create(Object obj, Continuation continuation) { + m.checkNotNullParameter(continuation, "completion"); + return new a(this.this$0, continuation); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { + Continuation continuation2 = continuation; + m.checkNotNullParameter(continuation2, "completion"); + return new a(this.this$0, continuation2).invokeSuspend(Unit.a); + } + + @Override // d0.w.i.a.a + public final Object invokeSuspend(Object obj) { + Object coroutine_suspended = c.getCOROUTINE_SUSPENDED(); + int i = this.label; + if (i == 0) { + l.throwOnFailure(obj); + this.label = 1; + if (f.O(500, this) == coroutine_suspended) { + return coroutine_suspended; + } + } else if (i == 1) { + l.throwOnFailure(obj); + } else { + throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); + } + AnimatedVectorDrawableCompat a = SparkleView.a(this.this$0.a); + if (a != null) { + a.start(); + } + return Unit.a; + } + } + + public d(SparkleView sparkleView) { + this.a = sparkleView; + } + + @Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat.AnimationCallback + public void onAnimationEnd(Drawable drawable) { + m.checkNotNullParameter(drawable, "drawable"); + CoroutineScope coroutineScope = ViewCoroutineScopeKt.getCoroutineScope(this.a); + if (coroutineScope != null) { + f.F0(coroutineScope, null, null, new a(this, null), 3, null); + } + } +} diff --git a/app/src/main/java/b/a/v/e.java b/app/src/main/java/b/a/v/e.java new file mode 100644 index 0000000000..52aa4e7bf8 --- /dev/null +++ b/app/src/main/java/b/a/v/e.java @@ -0,0 +1,36 @@ +package b.a.v; + +import com.discord.tooltips.TooltipManager; +import d0.t.h0; +import d0.z.d.o; +import java.util.LinkedHashMap; +import java.util.Map; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: TooltipManager.kt */ +public final class e extends o implements Function1 { + public final /* synthetic */ TooltipManager this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(TooltipManager tooltipManager) { + super(1); + this.this$0 = tooltipManager; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Integer num) { + int intValue = num.intValue(); + TooltipManager tooltipManager = this.this$0; + Map map = tooltipManager.a; + LinkedHashMap linkedHashMap = new LinkedHashMap(); + for (Map.Entry entry : map.entrySet()) { + if (entry.getValue().intValue() != intValue) { + linkedHashMap.put(entry.getKey(), entry.getValue()); + } + } + tooltipManager.a = h0.toMutableMap(linkedHashMap); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/w/a.java b/app/src/main/java/b/a/w/a.java new file mode 100644 index 0000000000..6e2991ebcd --- /dev/null +++ b/app/src/main/java/b/a/w/a.java @@ -0,0 +1,21 @@ +package b.a.w; + +import com.google.gson.reflect.TypeToken; +import d0.z.d.m; +import java.lang.reflect.Type; +import java.util.List; +/* compiled from: TypeTokens.kt */ +public final class a { + public static final Type a; + + /* compiled from: TypeTokens.kt */ + /* renamed from: b.a.w.a$a reason: collision with other inner class name */ + public static final class C0047a extends TypeToken> { + } + + static { + Type type = new C0047a().getType(); + m.checkNotNullExpressionValue(type, "object : TypeToken>() {}.type"); + a = type; + } +} diff --git a/app/src/main/java/b/a/x/a/a.java b/app/src/main/java/b/a/x/a/a.java new file mode 100644 index 0000000000..873f3fa82a --- /dev/null +++ b/app/src/main/java/b/a/x/a/a.java @@ -0,0 +1,16 @@ +package b.a.x.a; + +import com.discord.models.domain.Model; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ a(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return this.a.nextString(null); + } +} diff --git a/app/src/main/java/b/a/x/a/b.java b/app/src/main/java/b/a/x/a/b.java new file mode 100644 index 0000000000..8db1ea5741 --- /dev/null +++ b/app/src/main/java/b/a/x/a/b.java @@ -0,0 +1,17 @@ +package b.a.x.a; + +import com.discord.models.domain.Model; +import com.discord.utilities.error.Error; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Model.JsonReader.ItemFactory { + public final /* synthetic */ Model.JsonReader a; + + public /* synthetic */ b(Model.JsonReader jsonReader) { + this.a = jsonReader; + } + + @Override // com.discord.models.domain.Model.JsonReader.ItemFactory + public final Object get() { + return (Error.SkemaErrorItem) this.a.parse(new Error.SkemaErrorItem(null)); + } +} diff --git a/app/src/main/java/b/a/y/a.java b/app/src/main/java/b/a/y/a.java new file mode 100644 index 0000000000..65bb4155ea --- /dev/null +++ b/app/src/main/java/b/a/y/a.java @@ -0,0 +1,20 @@ +package b.a.y; + +import android.view.View; +import com.discord.views.CodeVerificationView; +import d0.z.d.m; +/* compiled from: View.kt */ +public final class a implements View.OnLayoutChangeListener { + public final /* synthetic */ CodeVerificationView j; + + public a(CodeVerificationView codeVerificationView) { + this.j = codeVerificationView; + } + + @Override // android.view.View.OnLayoutChangeListener + public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) { + m.checkNotNullParameter(view, "view"); + view.removeOnLayoutChangeListener(this); + CodeVerificationView.a(this.j); + } +} diff --git a/app/src/main/java/b/a/y/a0.java b/app/src/main/java/b/a/y/a0.java new file mode 100644 index 0000000000..1553d4d302 --- /dev/null +++ b/app/src/main/java/b/a/y/a0.java @@ -0,0 +1,22 @@ +package b.a.y; + +import d0.z.d.o; +import kotlin.jvm.functions.Function1; +/* compiled from: PileView.kt */ +public final class a0 extends o implements Function1 { + public final /* synthetic */ String $avatarUrl; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a0(String str) { + super(1); + this.$avatarUrl = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public String invoke(Integer num) { + num.intValue(); + return this.$avatarUrl; + } +} diff --git a/app/src/main/java/b/a/y/b.java b/app/src/main/java/b/a/y/b.java new file mode 100644 index 0000000000..884bedba83 --- /dev/null +++ b/app/src/main/java/b/a/y/b.java @@ -0,0 +1,19 @@ +package b.a.y; + +import android.view.View; +import com.discord.views.CodeVerificationView; +/* compiled from: CodeVerificationView.kt */ +public final class b implements View.OnFocusChangeListener { + public final /* synthetic */ CodeVerificationView j; + + public b(CodeVerificationView codeVerificationView) { + this.j = codeVerificationView; + } + + @Override // android.view.View.OnFocusChangeListener + public final void onFocusChange(View view, boolean z2) { + if (z2) { + CodeVerificationView.a(this.j); + } + } +} diff --git a/app/src/main/java/b/a/y/b0.java b/app/src/main/java/b/a/y/b0.java new file mode 100644 index 0000000000..cb0fca5c61 --- /dev/null +++ b/app/src/main/java/b/a/y/b0.java @@ -0,0 +1,100 @@ +package b.a.y; + +import android.content.Context; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.LinearLayout; +import android.widget.TextSwitcher; +import android.widget.TextView; +import b.a.i.g1; +import com.discord.R; +import com.discord.api.message.reaction.MessageReaction; +import com.discord.utilities.textprocessing.node.EmojiNode; +import com.discord.utilities.view.text.SimpleDraweeSpanTextView; +import d0.z.d.m; +/* compiled from: ReactionView.kt */ +public final class b0 extends LinearLayout { + public int j; + public Long k; + public MessageReaction l; + public final g1 m; + + public b0(Context context) { + super(context); + View inflate = LayoutInflater.from(getContext()).inflate(R.layout.reaction_view, (ViewGroup) this, false); + addView(inflate); + int i = R.id.counter_text_1; + TextView textView = (TextView) inflate.findViewById(R.id.counter_text_1); + if (textView != null) { + i = R.id.counter_text_2; + TextView textView2 = (TextView) inflate.findViewById(R.id.counter_text_2); + if (textView2 != null) { + i = R.id.counter_text_switcher; + TextSwitcher textSwitcher = (TextSwitcher) inflate.findViewById(R.id.counter_text_switcher); + if (textSwitcher != null) { + i = R.id.emoji_text_view; + SimpleDraweeSpanTextView simpleDraweeSpanTextView = (SimpleDraweeSpanTextView) inflate.findViewById(R.id.emoji_text_view); + if (simpleDraweeSpanTextView != null) { + g1 g1Var = new g1((LinearLayout) inflate, textView, textView2, textSwitcher, simpleDraweeSpanTextView); + m.checkNotNullExpressionValue(g1Var, "ReactionViewBinding.infl…rom(context), this, true)"); + this.m = g1Var; + return; + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); + } + + private final void setIsMe(boolean z2) { + setActivated(z2); + setSelected(z2); + TextView textView = this.m.f113b; + m.checkNotNullExpressionValue(textView, "binding.counterText1"); + textView.setActivated(z2); + TextView textView2 = this.m.c; + m.checkNotNullExpressionValue(textView2, "binding.counterText2"); + textView2.setActivated(z2); + } + + public final void a(MessageReaction messageReaction, long j, boolean z2) { + m.checkNotNullParameter(messageReaction, "reaction"); + Long l = this.k; + boolean z3 = l == null || l == null || l.longValue() != j; + MessageReaction messageReaction2 = this.l; + int a = messageReaction.a(); + g1 g1Var = this.m; + int i = this.j; + if (a != i) { + if (z3) { + g1Var.d.setCurrentText(String.valueOf(a)); + } else { + if (a > i) { + TextSwitcher textSwitcher = g1Var.d; + textSwitcher.setInAnimation(textSwitcher.getContext(), R.anim.anim_slide_in_up); + textSwitcher.setOutAnimation(textSwitcher.getContext(), R.anim.anim_slide_out_up); + } else { + TextSwitcher textSwitcher2 = g1Var.d; + textSwitcher2.setInAnimation(textSwitcher2.getContext(), R.anim.anim_slide_in_down); + textSwitcher2.setOutAnimation(textSwitcher2.getContext(), R.anim.anim_slide_out_down); + } + g1Var.d.setText(String.valueOf(a)); + } + this.j = a; + } + if (messageReaction2 == null || (!m.areEqual(messageReaction.b(), messageReaction2.b()))) { + EmojiNode.Companion companion = EmojiNode.Companion; + SimpleDraweeSpanTextView simpleDraweeSpanTextView = this.m.e; + m.checkNotNullExpressionValue(simpleDraweeSpanTextView, "binding.emojiTextView"); + EmojiNode.Companion.renderEmoji$default(companion, simpleDraweeSpanTextView, messageReaction.b(), z2, 0, 4, null); + } + setIsMe(messageReaction.c()); + this.l = messageReaction; + this.k = Long.valueOf(j); + } + + public final MessageReaction getReaction() { + return this.l; + } +} diff --git a/app/src/main/java/b/a/y/c.java b/app/src/main/java/b/a/y/c.java new file mode 100644 index 0000000000..dce82d8df7 --- /dev/null +++ b/app/src/main/java/b/a/y/c.java @@ -0,0 +1,17 @@ +package b.a.y; + +import android.view.View; +import com.discord.views.CodeVerificationView; +/* compiled from: CodeVerificationView.kt */ +public final class c implements View.OnClickListener { + public final /* synthetic */ CodeVerificationView j; + + public c(CodeVerificationView codeVerificationView) { + this.j = codeVerificationView; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + CodeVerificationView.a(this.j); + } +} diff --git a/app/src/main/java/b/a/y/c0.java b/app/src/main/java/b/a/y/c0.java new file mode 100644 index 0000000000..0f7635f830 --- /dev/null +++ b/app/src/main/java/b/a/y/c0.java @@ -0,0 +1,231 @@ +package b.a.y; + +import android.app.Dialog; +import android.content.DialogInterface; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.core.os.BundleKt; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import androidx.recyclerview.widget.RecyclerView; +import b.a.i.d; +import com.discord.R; +import com.discord.app.AppBottomSheet; +import com.discord.utilities.view.recycler.MaxHeightRecyclerView; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; +import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; +import com.discord.utilities.views.SimpleRecyclerAdapter; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.textview.MaterialTextView; +import d0.z.d.a0; +import d0.z.d.k; +import d0.z.d.m; +import d0.z.d.o; +import java.io.Serializable; +import java.util.List; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.functions.Function2; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.reflect.KProperty; +/* compiled from: SelectorBottomSheet.kt */ +public final class c0 extends AppBottomSheet implements i { + public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(c0.class, "binding", "getBinding()Lcom/discord/databinding/BottomSheetSimpleSelectorBinding;", 0)}; + public static final a k = new a(null); + public Function1 l; + public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null); + + /* compiled from: SelectorBottomSheet.kt */ + public static final class a { + + /* compiled from: SelectorBottomSheet.kt */ + /* renamed from: b.a.y.c0$a$a reason: collision with other inner class name */ + public static final class C0048a extends o implements Function1 { + public static final C0048a j = new C0048a(); + + public C0048a() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Integer num) { + num.intValue(); + return Unit.a; + } + } + + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + /* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: b.a.y.c0$a */ + /* JADX WARN: Multi-variable type inference failed */ + public static /* synthetic */ c0 b(a aVar, FragmentManager fragmentManager, String str, List list, boolean z2, Function1 function1, int i) { + boolean z3 = (i & 8) != 0 ? true : z2; + if ((i & 16) != 0) { + function1 = C0048a.j; + } + return aVar.a(fragmentManager, str, list, z3, function1); + } + + public final c0 a(FragmentManager fragmentManager, String str, List list, boolean z2, Function1 function1) { + m.checkNotNullParameter(fragmentManager, "fragmentManager"); + m.checkNotNullParameter(str, "title"); + m.checkNotNullParameter(list, "options"); + m.checkNotNullParameter(function1, "onSelectedListener"); + c0 c0Var = new c0(); + c0Var.setArguments(BundleKt.bundleOf(d0.o.to("simple_bottom_sheet_title", str), d0.o.to("simple_bottom_sheet_options", list), d0.o.to("simple_bottom_sheet_show_dividers", Boolean.valueOf(z2)))); + c0Var.l = function1; + c0Var.show(fragmentManager, a0.getOrCreateKotlinClass(c0.class).toString()); + return c0Var; + } + } + + /* compiled from: SelectorBottomSheet.kt */ + public static final /* synthetic */ class b extends k implements Function1 { + public static final b j = new b(); + + public b() { + super(1, b.a.i.c.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/BottomSheetSimpleSelectorBinding;", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public b.a.i.c invoke(View view) { + View view2 = view; + m.checkNotNullParameter(view2, "p1"); + int i = R.id.widget_simple_bottom_sheet_selector_header; + ConstraintLayout constraintLayout = (ConstraintLayout) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_header); + if (constraintLayout != null) { + i = R.id.widget_simple_bottom_sheet_selector_placeholder; + TextView textView = (TextView) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_placeholder); + if (textView != null) { + i = R.id.widget_simple_bottom_sheet_selector_recycler; + MaxHeightRecyclerView maxHeightRecyclerView = (MaxHeightRecyclerView) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_recycler); + if (maxHeightRecyclerView != null) { + return new b.a.i.c((ConstraintLayout) view2, constraintLayout, textView, maxHeightRecyclerView); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i))); + } + } + + /* compiled from: SelectorBottomSheet.kt */ + public static final class c extends o implements Function2 { + public final /* synthetic */ c0 this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(c0 c0Var) { + super(2); + this.this$0 = c0Var; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public f0 invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) { + LayoutInflater layoutInflater2 = layoutInflater; + ViewGroup viewGroup2 = viewGroup; + m.checkNotNullParameter(layoutInflater2, "inflater"); + m.checkNotNullParameter(viewGroup2, "parent"); + View inflate = layoutInflater2.inflate(R.layout.bottom_sheet_simple_selector_item, viewGroup2, false); + int i = R.id.select_component_sheet_item_description; + MaterialTextView materialTextView = (MaterialTextView) inflate.findViewById(R.id.select_component_sheet_item_description); + if (materialTextView != null) { + i = R.id.select_component_sheet_item_icon; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(R.id.select_component_sheet_item_icon); + if (simpleDraweeView != null) { + i = R.id.select_component_sheet_item_title; + MaterialTextView materialTextView2 = (MaterialTextView) inflate.findViewById(R.id.select_component_sheet_item_title); + if (materialTextView2 != null) { + d dVar = new d((ConstraintLayout) inflate, materialTextView, simpleDraweeView, materialTextView2); + m.checkNotNullExpressionValue(dVar, "BottomSheetSimpleSelecto…(inflater, parent, false)"); + c0 c0Var = this.this$0; + Dialog requireDialog = c0Var.requireDialog(); + m.checkNotNullExpressionValue(requireDialog, "requireDialog()"); + return new f0(c0Var, requireDialog, dVar); + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); + } + } + + public c0() { + super(false, 1, null); + } + + @Override // b.a.y.i + public void c(int i) { + Function1 function1 = this.l; + if (function1 != null) { + function1.invoke(Integer.valueOf(i)); + } + } + + public final b.a.i.c g() { + return (b.a.i.c) this.m.getValue((Fragment) this, j[0]); + } + + @Override // com.discord.app.AppBottomSheet + public int getContentViewResId() { + return R.layout.bottom_sheet_simple_selector; + } + + @Override // androidx.fragment.app.DialogFragment, android.content.DialogInterface.OnDismissListener + public void onDismiss(DialogInterface dialogInterface) { + m.checkNotNullParameter(dialogInterface, "dialog"); + super.onDismiss(dialogInterface); + this.l = null; + } + + @Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment + public void onPause() { + super.onPause(); + dismiss(); + } + + @Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment + public void onViewCreated(View view, Bundle bundle) { + m.checkNotNullParameter(view, "view"); + super.onViewCreated(view, bundle); + setBottomSheetCollapsedStateDisabled(); + String string = getArgumentsOrDefault().getString("simple_bottom_sheet_title"); + Serializable serializable = getArgumentsOrDefault().getSerializable("simple_bottom_sheet_options"); + if (!(serializable instanceof List)) { + serializable = null; + } + List list = (List) serializable; + boolean z2 = getArgumentsOrDefault().getBoolean("simple_bottom_sheet_show_dividers"); + TextView textView = g().c; + m.checkNotNullExpressionValue(textView, "binding.widgetSimpleBottomSheetSelectorPlaceholder"); + textView.setText(string); + ConstraintLayout constraintLayout = g().f87b; + m.checkNotNullExpressionValue(constraintLayout, "binding.widgetSimpleBottomSheetSelectorHeader"); + int i = 0; + if (!(!(string == null || string.length() == 0))) { + i = 8; + } + constraintLayout.setVisibility(i); + if (list != null) { + MaxHeightRecyclerView maxHeightRecyclerView = g().d; + m.checkNotNullExpressionValue(maxHeightRecyclerView, "binding.widgetSimpleBottomSheetSelectorRecycler"); + maxHeightRecyclerView.setAdapter(new SimpleRecyclerAdapter(list, new c(this))); + MaxHeightRecyclerView maxHeightRecyclerView2 = g().d; + RecyclerView.Adapter adapter = maxHeightRecyclerView2.getAdapter(); + if (adapter != null) { + adapter.notifyDataSetChanged(); + } + if (z2) { + SimpleRecyclerAdapter.Companion.addThemedDivider(maxHeightRecyclerView2); + } + } + } +} diff --git a/app/src/main/java/b/a/y/d.java b/app/src/main/java/b/a/y/d.java new file mode 100644 index 0000000000..10ac442b90 --- /dev/null +++ b/app/src/main/java/b/a/y/d.java @@ -0,0 +1,40 @@ +package b.a.y; + +import android.view.KeyEvent; +import android.view.View; +import com.discord.views.CodeVerificationView; +import d0.g0.y; +import d0.z.d.m; +import java.util.Objects; +/* compiled from: CodeVerificationView.kt */ +public final class d implements View.OnKeyListener { + public final /* synthetic */ CodeVerificationView j; + + public d(CodeVerificationView codeVerificationView) { + this.j = codeVerificationView; + } + + @Override // android.view.View.OnKeyListener + public final boolean onKey(View view, int i, KeyEvent keyEvent) { + m.checkNotNullExpressionValue(keyEvent, "event"); + if (keyEvent.getAction() == 0) { + CodeVerificationView codeVerificationView = this.j; + CodeVerificationView.a aVar = CodeVerificationView.j; + Objects.requireNonNull(codeVerificationView); + if (keyEvent.getKeyCode() == 67) { + if (codeVerificationView.q.length() > 0) { + codeVerificationView.q = y.dropLast(codeVerificationView.q, 1); + codeVerificationView.d(); + } + } else if (keyEvent.getKeyCode() == 7) { + codeVerificationView.c('0'); + } else { + int unicodeChar = keyEvent.getUnicodeChar(); + if (unicodeChar != 0) { + codeVerificationView.c((char) unicodeChar); + } + } + } + return true; + } +} diff --git a/app/src/main/java/b/a/y/d0.java b/app/src/main/java/b/a/y/d0.java new file mode 100644 index 0000000000..887be1f31f --- /dev/null +++ b/app/src/main/java/b/a/y/d0.java @@ -0,0 +1,116 @@ +package b.a.y; + +import b.d.b.a.a; +import d0.z.d.m; +import java.io.Serializable; +/* compiled from: SelectorBottomSheet.kt */ +public final class d0 implements Serializable { + private final CharSequence description; + private final Integer iconRes; + private final Integer iconTint; + private final String iconUri; + private final String title; + private final Integer titleEndIcon; + private final Integer titleTextColor; + + public d0() { + this(null, null, null, null, null, null, null, 127); + } + + public d0(String str, CharSequence charSequence, Integer num, String str2, Integer num2, Integer num3, Integer num4, int i) { + str = (i & 1) != 0 ? null : str; + charSequence = (i & 2) != 0 ? null : charSequence; + num = (i & 4) != 0 ? null : num; + str2 = (i & 8) != 0 ? null : str2; + int i2 = i & 16; + num3 = (i & 32) != 0 ? null : num3; + int i3 = i & 64; + this.title = str; + this.description = charSequence; + this.iconRes = num; + this.iconUri = str2; + this.iconTint = null; + this.titleTextColor = num3; + this.titleEndIcon = null; + } + + public final CharSequence a() { + return this.description; + } + + public final Integer b() { + return this.iconRes; + } + + public final Integer c() { + return this.iconTint; + } + + public final String d() { + return this.iconUri; + } + + public final String e() { + return this.title; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof d0)) { + return false; + } + d0 d0Var = (d0) obj; + return m.areEqual(this.title, d0Var.title) && m.areEqual(this.description, d0Var.description) && m.areEqual(this.iconRes, d0Var.iconRes) && m.areEqual(this.iconUri, d0Var.iconUri) && m.areEqual(this.iconTint, d0Var.iconTint) && m.areEqual(this.titleTextColor, d0Var.titleTextColor) && m.areEqual(this.titleEndIcon, d0Var.titleEndIcon); + } + + public final Integer f() { + return this.titleEndIcon; + } + + public final Integer g() { + return this.titleTextColor; + } + + @Override // java.lang.Object + public int hashCode() { + String str = this.title; + int i = 0; + int hashCode = (str != null ? str.hashCode() : 0) * 31; + CharSequence charSequence = this.description; + int hashCode2 = (hashCode + (charSequence != null ? charSequence.hashCode() : 0)) * 31; + Integer num = this.iconRes; + int hashCode3 = (hashCode2 + (num != null ? num.hashCode() : 0)) * 31; + String str2 = this.iconUri; + int hashCode4 = (hashCode3 + (str2 != null ? str2.hashCode() : 0)) * 31; + Integer num2 = this.iconTint; + int hashCode5 = (hashCode4 + (num2 != null ? num2.hashCode() : 0)) * 31; + Integer num3 = this.titleTextColor; + int hashCode6 = (hashCode5 + (num3 != null ? num3.hashCode() : 0)) * 31; + Integer num4 = this.titleEndIcon; + if (num4 != null) { + i = num4.hashCode(); + } + return hashCode6 + i; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("SimpleBottomSheetItem(title="); + R.append(this.title); + R.append(", description="); + R.append(this.description); + R.append(", iconRes="); + R.append(this.iconRes); + R.append(", iconUri="); + R.append(this.iconUri); + R.append(", iconTint="); + R.append(this.iconTint); + R.append(", titleTextColor="); + R.append(this.titleTextColor); + R.append(", titleEndIcon="); + return a.E(R, this.titleEndIcon, ")"); + } +} diff --git a/app/src/main/java/b/a/y/e.java b/app/src/main/java/b/a/y/e.java new file mode 100644 index 0000000000..961660af90 --- /dev/null +++ b/app/src/main/java/b/a/y/e.java @@ -0,0 +1,22 @@ +package b.a.y; + +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: CodeVerificationView.kt */ +public final class e extends o implements Function1 { + public static final e j = new e(); + + public e() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(String str) { + m.checkNotNullParameter(str, "it"); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/e0.java b/app/src/main/java/b/a/y/e0.java new file mode 100644 index 0000000000..fea38dfa35 --- /dev/null +++ b/app/src/main/java/b/a/y/e0.java @@ -0,0 +1,18 @@ +package b.a.y; + +import android.view.View; +/* compiled from: SelectorBottomSheet.kt */ +public final class e0 implements View.OnClickListener { + public final /* synthetic */ f0 j; + + public e0(f0 f0Var) { + this.j = f0Var; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + f0 f0Var = this.j; + f0Var.a.c(f0Var.getAdapterPosition()); + this.j.f301b.dismiss(); + } +} diff --git a/app/src/main/java/b/a/y/f.java b/app/src/main/java/b/a/y/f.java new file mode 100644 index 0000000000..2759b0263b --- /dev/null +++ b/app/src/main/java/b/a/y/f.java @@ -0,0 +1,67 @@ +package b.a.y; + +import android.content.Context; +import android.graphics.Canvas; +import android.graphics.drawable.Drawable; +import android.view.View; +import android.view.ViewGroup; +import androidx.core.content.ContextCompat; +import androidx.core.graphics.drawable.DrawableCompat; +import androidx.recyclerview.widget.DividerItemDecoration; +import androidx.recyclerview.widget.RecyclerView; +import com.discord.R; +import com.discord.utilities.color.ColorCompat; +import d0.z.d.m; +import java.util.Objects; +/* compiled from: DividerDecoration.kt */ +public final class f extends DividerItemDecoration { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f300b; + public final int c; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(Context context, int i, int i2, int i3, int i4, int i5) { + super(context, i); + i2 = (i5 & 4) != 0 ? ColorCompat.getThemedColor(context, (int) R.attr.colorPrimaryDivider) : i2; + i3 = (i5 & 8) != 0 ? 0 : i3; + i4 = (i5 & 16) != 0 ? 0 : i4; + m.checkNotNullParameter(context, "context"); + this.a = i2; + this.f300b = i3; + this.c = i4; + Drawable drawable = ContextCompat.getDrawable(context, R.drawable.drawable_divider); + if (drawable != null) { + Drawable wrap = DrawableCompat.wrap(drawable); + DrawableCompat.setTint(wrap, i2); + setDrawable(wrap); + } + } + + @Override // androidx.recyclerview.widget.DividerItemDecoration, androidx.recyclerview.widget.RecyclerView.ItemDecoration + public void onDraw(Canvas canvas, RecyclerView recyclerView, RecyclerView.State state) { + m.checkNotNullParameter(canvas, "c"); + m.checkNotNullParameter(recyclerView, "parent"); + m.checkNotNullParameter(state, "state"); + int paddingLeft = recyclerView.getPaddingLeft() + this.f300b; + int width = (recyclerView.getWidth() - recyclerView.getPaddingRight()) - this.c; + Drawable drawable = getDrawable(); + int childCount = recyclerView.getChildCount(); + for (int i = 0; i < childCount; i++) { + View childAt = recyclerView.getChildAt(i); + m.checkNotNullExpressionValue(childAt, "parent.getChildAt(i)"); + int bottom = childAt.getBottom(); + ViewGroup.LayoutParams layoutParams = childAt.getLayoutParams(); + Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type androidx.recyclerview.widget.RecyclerView.LayoutParams"); + int i2 = bottom + ((ViewGroup.MarginLayoutParams) ((RecyclerView.LayoutParams) layoutParams)).bottomMargin; + int intrinsicHeight = (drawable != null ? drawable.getIntrinsicHeight() : 0) + i2; + if (drawable != null) { + drawable.setBounds(paddingLeft, i2, width, intrinsicHeight); + } + if (drawable != null) { + drawable.draw(canvas); + } + } + } +} diff --git a/app/src/main/java/b/a/y/f0.java b/app/src/main/java/b/a/y/f0.java new file mode 100644 index 0000000000..a57449c7b8 --- /dev/null +++ b/app/src/main/java/b/a/y/f0.java @@ -0,0 +1,101 @@ +package b.a.y; + +import android.content.DialogInterface; +import android.graphics.drawable.Drawable; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.core.content.ContextCompat; +import androidx.core.graphics.drawable.DrawableCompat; +import b.a.i.d; +import b.a.k.b; +import com.discord.R; +import com.discord.utilities.color.ColorCompat; +import com.discord.utilities.images.MGImages; +import com.discord.utilities.view.extensions.ViewExtensions; +import com.discord.utilities.views.SimpleRecyclerAdapter; +import com.facebook.drawee.view.SimpleDraweeView; +import com.google.android.material.textview.MaterialTextView; +import d0.z.d.m; +/* compiled from: SelectorBottomSheet.kt */ +public final class f0 extends SimpleRecyclerAdapter.ViewHolder { + public final i a; + + /* renamed from: b reason: collision with root package name */ + public final DialogInterface f301b; + public final d c; + + /* JADX WARNING: Illegal instructions before constructor call */ + public f0(i iVar, DialogInterface dialogInterface, d dVar) { + super(r0); + m.checkNotNullParameter(iVar, "onSelectedListener"); + m.checkNotNullParameter(dialogInterface, "dialogInterface"); + m.checkNotNullParameter(dVar, "itemBinding"); + ConstraintLayout constraintLayout = dVar.a; + m.checkNotNullExpressionValue(constraintLayout, "itemBinding.root"); + this.a = iVar; + this.f301b = dialogInterface; + this.c = dVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.discord.utilities.views.SimpleRecyclerAdapter.ViewHolder + public void bind(d0 d0Var) { + int i; + Drawable drawable; + d0 d0Var2 = d0Var; + m.checkNotNullParameter(d0Var2, "data"); + MaterialTextView materialTextView = this.c.d; + m.checkNotNullExpressionValue(materialTextView, "itemBinding.selectComponentSheetItemTitle"); + b.a(materialTextView, d0Var2.e()); + MaterialTextView materialTextView2 = this.c.f93b; + m.checkNotNullExpressionValue(materialTextView2, "itemBinding.selectComponentSheetItemDescription"); + ViewExtensions.setTextAndVisibilityBy(materialTextView2, d0Var2.a()); + SimpleDraweeView simpleDraweeView = this.c.c; + m.checkNotNullExpressionValue(simpleDraweeView, "itemBinding.selectComponentSheetItemIcon"); + int i2 = 0; + if (!((d0Var2.d() == null && d0Var2.b() == null) ? false : true)) { + i2 = 8; + } + simpleDraweeView.setVisibility(i2); + String d = d0Var2.d(); + if (d != null) { + SimpleDraweeView simpleDraweeView2 = this.c.c; + m.checkNotNullExpressionValue(simpleDraweeView2, "itemBinding.selectComponentSheetItemIcon"); + MGImages.setImage$default(simpleDraweeView2, d, R.dimen.emoji_size, R.dimen.emoji_size, true, null, null, 96, null); + } else { + Integer b2 = d0Var2.b(); + if (b2 != null) { + this.c.c.setImageResource(b2.intValue()); + } + } + Integer c = d0Var2.c(); + if (c != null) { + this.c.c.setColorFilter(c.intValue()); + } + MaterialTextView materialTextView3 = this.c.d; + materialTextView3.setText(d0Var2.e()); + Integer g = d0Var2.g(); + if (g != null) { + i = g.intValue(); + } else { + m.checkNotNullExpressionValue(materialTextView3, "this"); + i = ColorCompat.getThemedColor(materialTextView3, (int) R.attr.colorHeaderPrimary); + } + materialTextView3.setTextColor(i); + Integer f = d0Var2.f(); + if (f != null) { + f.intValue(); + Drawable drawable2 = ContextCompat.getDrawable(materialTextView3.getContext(), d0Var2.f().intValue()); + if (drawable2 != null) { + MaterialTextView materialTextView4 = this.c.d; + m.checkNotNullExpressionValue(materialTextView4, "itemBinding.selectComponentSheetItemTitle"); + DrawableCompat.setTint(drawable2, ColorCompat.getThemedColor(materialTextView4, (int) R.attr.colorHeaderPrimary)); + drawable = drawable2; + com.discord.utilities.drawable.DrawableCompat.setCompoundDrawablesCompat$default(materialTextView3, (Drawable) null, (Drawable) null, drawable, (Drawable) null, 11, (Object) null); + this.c.a.setOnClickListener(new e0(this)); + } + } + drawable = null; + com.discord.utilities.drawable.DrawableCompat.setCompoundDrawablesCompat$default(materialTextView3, (Drawable) null, (Drawable) null, drawable, (Drawable) null, 11, (Object) null); + this.c.a.setOnClickListener(new e0(this)); + } +} diff --git a/app/src/main/java/b/a/y/g.java b/app/src/main/java/b/a/y/g.java new file mode 100644 index 0000000000..b3becf3a7b --- /dev/null +++ b/app/src/main/java/b/a/y/g.java @@ -0,0 +1,17 @@ +package b.a.y; + +import android.view.View; +import kotlin.jvm.functions.Function0; +/* compiled from: JoinVoiceChannelButton.kt */ +public final class g implements View.OnClickListener { + public final /* synthetic */ Function0 j; + + public g(Function0 function0) { + this.j = function0; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.mo1invoke(); + } +} diff --git a/app/src/main/java/b/a/y/g0.java b/app/src/main/java/b/a/y/g0.java new file mode 100644 index 0000000000..e218b87e1e --- /dev/null +++ b/app/src/main/java/b/a/y/g0.java @@ -0,0 +1,30 @@ +package b.a.y; + +import android.graphics.drawable.Drawable; +import androidx.core.content.ContextCompat; +import com.discord.R; +import com.discord.utilities.color.ColorCompat; +import com.discord.views.VoiceUserLimitView; +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: VoiceUserLimitView.kt */ +public final class g0 extends o implements Function0 { + public final /* synthetic */ VoiceUserLimitView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g0(VoiceUserLimitView voiceUserLimitView) { + super(0); + this.this$0 = voiceUserLimitView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Drawable mo1invoke() { + Drawable drawable = ContextCompat.getDrawable(this.this$0.getContext(), R.drawable.ic_videocam_white_12dp); + if (drawable != null) { + drawable.setTint(ColorCompat.getThemedColor(this.this$0.getContext(), (int) R.attr.colorInteractiveNormal)); + } + return drawable; + } +} diff --git a/app/src/main/java/b/a/y/h.java b/app/src/main/java/b/a/y/h.java new file mode 100644 index 0000000000..e185830b8c --- /dev/null +++ b/app/src/main/java/b/a/y/h.java @@ -0,0 +1,36 @@ +package b.a.y; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; +import b.a.i.v0; +import com.discord.R; +import com.discord.views.OAuthPermissionViews; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.jvm.functions.Function2; +/* compiled from: OAuthPermissionViews.kt */ +public final class h extends o implements Function2 { + public static final h j = new h(); + + public h() { + super(2); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public OAuthPermissionViews.a invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) { + LayoutInflater layoutInflater2 = layoutInflater; + ViewGroup viewGroup2 = viewGroup; + m.checkNotNullParameter(layoutInflater2, "inflater"); + m.checkNotNullParameter(viewGroup2, "parent"); + View inflate = layoutInflater2.inflate(R.layout.oauth_token_permission_list_item, viewGroup2, false); + Objects.requireNonNull(inflate, "rootView"); + v0 v0Var = new v0((TextView) inflate); + m.checkNotNullExpressionValue(v0Var, "OauthTokenPermissionList…(inflater, parent, false)"); + return new OAuthPermissionViews.a(v0Var); + } +} diff --git a/app/src/main/java/b/a/y/h0.java b/app/src/main/java/b/a/y/h0.java new file mode 100644 index 0000000000..72d30e70e8 --- /dev/null +++ b/app/src/main/java/b/a/y/h0.java @@ -0,0 +1,23 @@ +package b.a.y; + +import android.graphics.Bitmap; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: VoiceUserView.kt */ +public final class h0 extends o implements Function2 { + public static final h0 j = new h0(); + + public h0() { + super(2); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public Unit invoke(Bitmap bitmap, String str) { + m.checkNotNullParameter(bitmap, ""); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/i.java b/app/src/main/java/b/a/y/i.java new file mode 100644 index 0000000000..e7031b9d4a --- /dev/null +++ b/app/src/main/java/b/a/y/i.java @@ -0,0 +1,5 @@ +package b.a.y; +/* compiled from: SelectorBottomSheet.kt */ +public interface i { + void c(int i); +} diff --git a/app/src/main/java/b/a/y/i0.java b/app/src/main/java/b/a/y/i0.java new file mode 100644 index 0000000000..97dc4087be --- /dev/null +++ b/app/src/main/java/b/a/y/i0.java @@ -0,0 +1,23 @@ +package b.a.y; + +import com.discord.views.VoiceUserView; +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: VoiceUserView.kt */ +public final class i0 extends o implements Function0 { + public final /* synthetic */ VoiceUserView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i0(VoiceUserView voiceUserView) { + super(0); + this.this$0 = voiceUserView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Boolean mo1invoke() { + VoiceUserView voiceUserView = this.this$0; + return Boolean.valueOf(voiceUserView.m == VoiceUserView.a.RINGING && voiceUserView.f2793s); + } +} diff --git a/app/src/main/java/b/a/y/j.java b/app/src/main/java/b/a/y/j.java new file mode 100644 index 0000000000..dd8251bd97 --- /dev/null +++ b/app/src/main/java/b/a/y/j.java @@ -0,0 +1,21 @@ +package b.a.y; + +import android.widget.SeekBar; +import d0.z.d.m; +/* compiled from: OnSeekBarChangeListenerAdapter.kt */ +public class j implements SeekBar.OnSeekBarChangeListener { + @Override // android.widget.SeekBar.OnSeekBarChangeListener + public void onProgressChanged(SeekBar seekBar, int i, boolean z2) { + m.checkNotNullParameter(seekBar, "seekBar"); + } + + @Override // android.widget.SeekBar.OnSeekBarChangeListener + public void onStartTrackingTouch(SeekBar seekBar) { + m.checkNotNullParameter(seekBar, "seekBar"); + } + + @Override // android.widget.SeekBar.OnSeekBarChangeListener + public void onStopTrackingTouch(SeekBar seekBar) { + m.checkNotNullParameter(seekBar, "seekBar"); + } +} diff --git a/app/src/main/java/b/a/y/j0.java b/app/src/main/java/b/a/y/j0.java new file mode 100644 index 0000000000..7ad19a8fdf --- /dev/null +++ b/app/src/main/java/b/a/y/j0.java @@ -0,0 +1,26 @@ +package b.a.y; + +import android.graphics.Bitmap; +import b.f.j.q.a; +import com.discord.views.VoiceUserView; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: VoiceUserView.kt */ +public final class j0 extends a { + public final /* synthetic */ VoiceUserView.c a; + + public j0(VoiceUserView.c cVar) { + this.a = cVar; + } + + @Override // b.f.j.q.a + public void process(Bitmap bitmap) { + if (bitmap != null) { + Function2 function2 = this.a.this$0.p; + Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false); + m.checkNotNullExpressionValue(copy, "bitmap.copy(Bitmap.Config.ARGB_8888, false)"); + function2.invoke(copy, this.a.$newAvatarUrl); + } + } +} diff --git a/app/src/main/java/b/a/y/k.java b/app/src/main/java/b/a/y/k.java new file mode 100644 index 0000000000..61e588f31f --- /dev/null +++ b/app/src/main/java/b/a/y/k.java @@ -0,0 +1,16 @@ +package b.a.y; + +import android.view.View; +/* compiled from: OverlayAppDialog.kt */ +public final class k implements View.OnClickListener { + public final /* synthetic */ l j; + + public k(l lVar) { + this.j = lVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.g(); + } +} diff --git a/app/src/main/java/b/a/y/k0/a.java b/app/src/main/java/b/a/y/k0/a.java new file mode 100644 index 0000000000..8e94b7f103 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/a.java @@ -0,0 +1,25 @@ +package b.a.y.k0; + +import android.graphics.Point; +import d0.z.d.m; +import j0.k.b; +import java.util.concurrent.TimeUnit; +import kotlin.Unit; +import rx.Observable; +/* compiled from: AppVideoStreamRenderer.kt */ +public final class a implements b> { + public final /* synthetic */ e j; + + public a(e eVar) { + this.j = eVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Observable call(Unit unit) { + Observable K = this.j.j.O(50, TimeUnit.MILLISECONDS).F(f.j).K(); + m.checkNotNullExpressionValue(K, "frameResolutionSubject\n … .onBackpressureLatest()"); + return K; + } +} diff --git a/app/src/main/java/b/a/y/k0/b.java b/app/src/main/java/b/a/y/k0/b.java new file mode 100644 index 0000000000..04b69f19a6 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/b.java @@ -0,0 +1,28 @@ +package b.a.y.k0; + +import android.graphics.Point; +import com.discord.views.calls.AppVideoStreamRenderer; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: AppVideoStreamRenderer.kt */ +public final class b extends o implements Function1 { + public final /* synthetic */ AppVideoStreamRenderer this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(AppVideoStreamRenderer appVideoStreamRenderer) { + super(1); + this.this$0 = appVideoStreamRenderer; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Point point) { + Point point2 = point; + m.checkNotNullParameter(point2, "resolution"); + this.this$0.n.onNext(point2); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/k0/c.java b/app/src/main/java/b/a/y/k0/c.java new file mode 100644 index 0000000000..a680edcc82 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/c.java @@ -0,0 +1,28 @@ +package b.a.y.k0; + +import com.discord.views.calls.AppVideoStreamRenderer; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.Subscription; +/* compiled from: AppVideoStreamRenderer.kt */ +public final class c extends o implements Function1 { + public final /* synthetic */ AppVideoStreamRenderer this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(AppVideoStreamRenderer appVideoStreamRenderer) { + super(1); + this.this$0 = appVideoStreamRenderer; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Subscription subscription) { + Subscription subscription2 = subscription; + m.checkNotNullParameter(subscription2, "it"); + this.this$0.l = subscription2; + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/k0/d.java b/app/src/main/java/b/a/y/k0/d.java new file mode 100644 index 0000000000..ae3bf547a5 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/d.java @@ -0,0 +1,8 @@ +package b.a.y.k0; + +import co.discord.media_engine.VideoStreamRenderer; +import java.util.HashMap; +/* compiled from: AppVideoStreamRenderer.kt */ +public final class d { + public static final HashMap a = new HashMap<>(); +} diff --git a/app/src/main/java/b/a/y/k0/e.java b/app/src/main/java/b/a/y/k0/e.java new file mode 100644 index 0000000000..f62513603f --- /dev/null +++ b/app/src/main/java/b/a/y/k0/e.java @@ -0,0 +1,56 @@ +package b.a.y.k0; + +import org.webrtc.RendererCommon; +import rx.subjects.BehaviorSubject; +/* compiled from: RxRendererEvents.kt */ +public final class e implements RendererCommon.RendererEvents { + public final BehaviorSubject j = BehaviorSubject.k0(); + + /* compiled from: RxRendererEvents.kt */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f302b; + public final int c; + + public a(int i, int i2, int i3) { + this.a = i; + this.f302b = i2; + this.c = i3; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.f302b == aVar.f302b && this.c == aVar.c; + } + + public int hashCode() { + return (((this.a * 31) + this.f302b) * 31) + this.c; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Resolution(width="); + R.append(this.a); + R.append(", height="); + R.append(this.f302b); + R.append(", rotation="); + return b.d.b.a.a.A(R, this.c, ")"); + } + } + + @Override // org.webrtc.RendererCommon.RendererEvents + public void onFirstFrameRendered() { + } + + @Override // org.webrtc.RendererCommon.RendererEvents + public void onFrameResolutionChanged(int i, int i2, int i3) { + this.j.onNext(new a(i, i2, i3)); + } +} diff --git a/app/src/main/java/b/a/y/k0/f.java b/app/src/main/java/b/a/y/k0/f.java new file mode 100644 index 0000000000..249610e5a6 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/f.java @@ -0,0 +1,21 @@ +package b.a.y.k0; + +import android.graphics.Point; +import b.a.y.k0.e; +import j0.k.b; +/* compiled from: RxRendererEvents.kt */ +public final class f implements b { + public static final f j = new f(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Point call(e.a aVar) { + e.a aVar2 = aVar; + if (aVar2 == null) { + return null; + } + int i = aVar2.c; + return (i == -180 || i == 0 || i == 180) ? new Point(aVar2.a, aVar2.f302b) : new Point(aVar2.f302b, aVar2.a); + } +} diff --git a/app/src/main/java/b/a/y/k0/g.java b/app/src/main/java/b/a/y/k0/g.java new file mode 100644 index 0000000000..97f362f064 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/g.java @@ -0,0 +1,28 @@ +package b.a.y.k0; + +import android.graphics.Bitmap; +import com.discord.utilities.colors.RepresentativeColorsKt; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: StageCallSpeakerView.kt */ +public final class g extends o implements Function2 { + public final /* synthetic */ String $colorId; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(String str) { + super(2); + this.$colorId = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public Unit invoke(Bitmap bitmap, String str) { + Bitmap bitmap2 = bitmap; + m.checkNotNullParameter(bitmap2, "bitmap"); + RepresentativeColorsKt.getUserRepresentativeColors().handleBitmap(this.$colorId, bitmap2, str); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/k0/h.java b/app/src/main/java/b/a/y/k0/h.java new file mode 100644 index 0000000000..78f4b7896d --- /dev/null +++ b/app/src/main/java/b/a/y/k0/h.java @@ -0,0 +1,28 @@ +package b.a.y.k0; + +import com.discord.views.calls.StageCallSpeakerView; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.Subscription; +/* compiled from: StageCallSpeakerView.kt */ +public final class h extends o implements Function1 { + public final /* synthetic */ StageCallSpeakerView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(StageCallSpeakerView stageCallSpeakerView) { + super(1); + this.this$0 = stageCallSpeakerView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Subscription subscription) { + Subscription subscription2 = subscription; + m.checkNotNullParameter(subscription2, "it"); + this.this$0.k = subscription2; + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/k0/i.java b/app/src/main/java/b/a/y/k0/i.java new file mode 100644 index 0000000000..9ef20c99f1 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/i.java @@ -0,0 +1,29 @@ +package b.a.y.k0; + +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.views.calls.StageCallSpeakerView; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: StageCallSpeakerView.kt */ +public final class i extends o implements Function1 { + public final /* synthetic */ StageCallSpeakerView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(StageCallSpeakerView stageCallSpeakerView) { + super(1); + this.this$0 = stageCallSpeakerView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Integer num) { + Integer num2 = num; + StageCallSpeakerView stageCallSpeakerView = this.this$0; + m.checkNotNullExpressionValue(num2, ModelAuditLogEntry.CHANGE_KEY_COLOR); + stageCallSpeakerView.setCardBackgroundColor(num2.intValue()); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/k0/j.java b/app/src/main/java/b/a/y/k0/j.java new file mode 100644 index 0000000000..ed6b4422ec --- /dev/null +++ b/app/src/main/java/b/a/y/k0/j.java @@ -0,0 +1,22 @@ +package b.a.y.k0; + +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: VideoCallParticipantView.kt */ +public final class j extends o implements Function1 { + public static final j j = new j(); + + public j() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(String str) { + m.checkNotNullParameter(str, "it"); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/k0/k.java b/app/src/main/java/b/a/y/k0/k.java new file mode 100644 index 0000000000..6022bffa71 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/k.java @@ -0,0 +1,28 @@ +package b.a.y.k0; + +import android.graphics.Bitmap; +import com.discord.utilities.colors.RepresentativeColorsKt; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: VideoCallParticipantView.kt */ +public final class k extends o implements Function2 { + public final /* synthetic */ String $colorId; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(String str) { + super(2); + this.$colorId = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public Unit invoke(Bitmap bitmap, String str) { + Bitmap bitmap2 = bitmap; + m.checkNotNullParameter(bitmap2, "bitmap"); + RepresentativeColorsKt.getUserRepresentativeColors().handleBitmap(this.$colorId, bitmap2, str); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/k0/l.java b/app/src/main/java/b/a/y/k0/l.java new file mode 100644 index 0000000000..5e3b30c6e6 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/l.java @@ -0,0 +1,14 @@ +package b.a.y.k0; + +import j0.k.b; +/* compiled from: VideoCallParticipantView.kt */ +public final class l implements b { + public static final l j = new l(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Boolean call(Integer num) { + return Boolean.valueOf(num != null); + } +} diff --git a/app/src/main/java/b/a/y/k0/m.java b/app/src/main/java/b/a/y/k0/m.java new file mode 100644 index 0000000000..4eca07135a --- /dev/null +++ b/app/src/main/java/b/a/y/k0/m.java @@ -0,0 +1,27 @@ +package b.a.y.k0; + +import com.discord.views.calls.VideoCallParticipantView; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: VideoCallParticipantView.kt */ +public final class m extends o implements Function1 { + public final /* synthetic */ VideoCallParticipantView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public m(VideoCallParticipantView videoCallParticipantView) { + super(1); + this.this$0 = videoCallParticipantView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Integer num) { + Integer num2 = num; + if (num2 != null) { + this.this$0.j.f97b.setBackgroundColor(num2.intValue()); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/k0/n.java b/app/src/main/java/b/a/y/k0/n.java new file mode 100644 index 0000000000..be1264b5b5 --- /dev/null +++ b/app/src/main/java/b/a/y/k0/n.java @@ -0,0 +1,21 @@ +package b.a.y.k0; + +import android.view.View; +import com.discord.views.calls.VideoCallParticipantView; +/* compiled from: VideoCallParticipantView.kt */ +public final class n implements View.OnClickListener { + public final /* synthetic */ VideoCallParticipantView j; + public final /* synthetic */ VideoCallParticipantView.ParticipantData k; + + public n(VideoCallParticipantView videoCallParticipantView, VideoCallParticipantView.ParticipantData participantData) { + this.j = videoCallParticipantView; + this.k = participantData; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + if (this.k.f2797b.getApplicationStream() != null) { + this.j.n.invoke(this.k.f2797b.getApplicationStream().getEncodedStreamKey()); + } + } +} diff --git a/app/src/main/java/b/a/y/k0/o.java b/app/src/main/java/b/a/y/k0/o.java new file mode 100644 index 0000000000..a28d67decb --- /dev/null +++ b/app/src/main/java/b/a/y/k0/o.java @@ -0,0 +1,56 @@ +package b.a.y.k0; + +import android.graphics.Point; +import android.view.View; +import android.widget.ProgressBar; +import android.widget.TextView; +import com.discord.views.calls.AppVideoStreamRenderer; +import com.discord.views.calls.VideoCallParticipantView; +import com.facebook.drawee.view.SimpleDraweeView; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: VideoCallParticipantView.kt */ +public final class o extends d0.z.d.o implements Function1 { + public final /* synthetic */ VideoCallParticipantView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public o(VideoCallParticipantView videoCallParticipantView) { + super(1); + this.this$0 = videoCallParticipantView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Point point) { + Point point2 = point; + m.checkNotNullParameter(point2, "it"); + VideoCallParticipantView videoCallParticipantView = this.this$0; + AppVideoStreamRenderer appVideoStreamRenderer = videoCallParticipantView.j.q; + m.checkNotNullExpressionValue(appVideoStreamRenderer, "binding.participantVideoStreamRenderer"); + boolean z2 = false; + appVideoStreamRenderer.setVisibility(0); + View view = videoCallParticipantView.j.c; + m.checkNotNullExpressionValue(view, "binding.participantBgLetterbox"); + view.setVisibility(0); + ProgressBar progressBar = videoCallParticipantView.j.p; + m.checkNotNullExpressionValue(progressBar, "binding.participantVideoLoadingIndicator"); + progressBar.setVisibility(8); + SimpleDraweeView simpleDraweeView = videoCallParticipantView.j.m; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.participantStreamPreviewImage"); + simpleDraweeView.setVisibility(8); + TextView textView = videoCallParticipantView.j.n; + m.checkNotNullExpressionValue(textView, "binding.participantStreamPreviewText"); + textView.setVisibility(8); + if ((point2.x > point2.y) != (videoCallParticipantView.getWidth() > videoCallParticipantView.getHeight())) { + z2 = true; + } + if (videoCallParticipantView.k && z2) { + int height = videoCallParticipantView.getHeight(); + videoCallParticipantView.getLayoutParams().height = videoCallParticipantView.getWidth(); + videoCallParticipantView.getLayoutParams().width = height; + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/l.java b/app/src/main/java/b/a/y/l.java new file mode 100644 index 0000000000..3fb3f241f7 --- /dev/null +++ b/app/src/main/java/b/a/y/l.java @@ -0,0 +1,117 @@ +package b.a.y; + +import android.animation.Animator; +import android.content.Context; +import android.util.Log; +import android.view.View; +import androidx.core.view.ViewCompat; +import com.discord.app.AppComponent; +import com.discord.overlay.views.OverlayDialog; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.subjects.PublishSubject; +import rx.subjects.Subject; +/* compiled from: OverlayAppDialog.kt */ +public abstract class l extends OverlayDialog implements AppComponent { + + /* renamed from: x reason: collision with root package name */ + public final Subject f303x; + + /* renamed from: y reason: collision with root package name */ + public Function1 f304y = m.j; + + /* compiled from: Animator.kt */ + public static final class a implements Animator.AnimatorListener { + public final /* synthetic */ l a; + + public a(l lVar) { + this.a = lVar; + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationCancel(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + this.a.getOnDialogClosed().invoke(this.a); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationRepeat(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + + @Override // android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + m.checkNotNullParameter(animator, "animator"); + } + } + + /* compiled from: OverlayAppDialog.kt */ + public static final class b implements View.OnAttachStateChangeListener { + public final /* synthetic */ Animator j; + + public b(Animator animator) { + this.j = animator; + } + + @Override // android.view.View.OnAttachStateChangeListener + public void onViewAttachedToWindow(View view) { + } + + @Override // android.view.View.OnAttachStateChangeListener + public void onViewDetachedFromWindow(View view) { + this.j.end(); + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(Context context) { + super(context); + m.checkNotNullParameter(context, "context"); + PublishSubject k0 = PublishSubject.k0(); + m.checkNotNullExpressionValue(k0, "PublishSubject.create()"); + this.f303x = k0; + setOnClickListener(new k(this)); + } + + public final void g() { + getUnsubscribeSignal().onNext(null); + Log.i(getClass().getSimpleName(), "closing"); + if (!ViewCompat.isAttachedToWindow(this)) { + this.f304y.invoke(this); + return; + } + Animator closingAnimator = getClosingAnimator(); + closingAnimator.addListener(new a(this)); + closingAnimator.start(); + addOnAttachStateChangeListener(new b(closingAnimator)); + } + + public abstract Animator getClosingAnimator(); + + /* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1 */ + public final Function1 getOnDialogClosed() { + return this.f304y; + } + + @Override // com.discord.app.AppComponent + public Subject getUnsubscribeSignal() { + return this.f303x; + } + + @Override // android.view.View, android.view.ViewGroup + public void onDetachedFromWindow() { + getUnsubscribeSignal().onNext(null); + super.onDetachedFromWindow(); + } + + public final void setOnDialogClosed(Function1 function1) { + m.checkNotNullParameter(function1, ""); + this.f304y = function1; + } +} diff --git a/app/src/main/java/b/a/y/l0/a.java b/app/src/main/java/b/a/y/l0/a.java new file mode 100644 index 0000000000..ab40d7a0c5 --- /dev/null +++ b/app/src/main/java/b/a/y/l0/a.java @@ -0,0 +1,18 @@ +package b.a.y.l0; + +import android.view.View; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +/* compiled from: GuildChannelSideBarActionsView.kt */ +public final class a implements View.OnClickListener { + public final /* synthetic */ Function1 j; + + public a(Function1 function1) { + this.j = function1; + } + + @Override // android.view.View.OnClickListener + public final /* synthetic */ void onClick(View view) { + m.checkNotNullExpressionValue(this.j.invoke(view), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/y/l0/b.java b/app/src/main/java/b/a/y/l0/b.java new file mode 100644 index 0000000000..6ad72a15fc --- /dev/null +++ b/app/src/main/java/b/a/y/l0/b.java @@ -0,0 +1,18 @@ +package b.a.y.l0; + +import android.view.View; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +/* compiled from: GuildChannelSideBarActionsView.kt */ +public final class b implements View.OnClickListener { + public final /* synthetic */ Function1 j; + + public b(Function1 function1) { + this.j = function1; + } + + @Override // android.view.View.OnClickListener + public final /* synthetic */ void onClick(View view) { + m.checkNotNullExpressionValue(this.j.invoke(view), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/a/y/m.java b/app/src/main/java/b/a/y/m.java new file mode 100644 index 0000000000..d922b6d92c --- /dev/null +++ b/app/src/main/java/b/a/y/m.java @@ -0,0 +1,22 @@ +package b.a.y; + +import com.discord.overlay.views.OverlayDialog; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: OverlayAppDialog.kt */ +public final class m extends o implements Function1 { + public static final m j = new m(); + + public m() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(OverlayDialog overlayDialog) { + d0.z.d.m.checkNotNullParameter(overlayDialog, "it"); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/m0/a.java b/app/src/main/java/b/a/y/m0/a.java new file mode 100644 index 0000000000..0751fd016c --- /dev/null +++ b/app/src/main/java/b/a/y/m0/a.java @@ -0,0 +1,24 @@ +package b.a.y.m0; + +import android.view.View; +import android.widget.AdapterView; +import kotlin.jvm.functions.Function1; +/* compiled from: ExperimentOverrideView.kt */ +public final class a implements AdapterView.OnItemSelectedListener { + public final /* synthetic */ Function1 j; + + public a(Function1 function1) { + this.j = function1; + } + + @Override // android.widget.AdapterView.OnItemSelectedListener + public void onItemSelected(AdapterView adapterView, View view, int i, long j) { + if (j != -1) { + this.j.invoke(Integer.valueOf((int) j)); + } + } + + @Override // android.widget.AdapterView.OnItemSelectedListener + public void onNothingSelected(AdapterView adapterView) { + } +} diff --git a/app/src/main/java/b/a/y/m0/b.java b/app/src/main/java/b/a/y/m0/b.java new file mode 100644 index 0000000000..ba04795a72 --- /dev/null +++ b/app/src/main/java/b/a/y/m0/b.java @@ -0,0 +1,17 @@ +package b.a.y.m0; + +import android.view.View; +import kotlin.jvm.functions.Function0; +/* compiled from: ExperimentOverrideView.kt */ +public final class b implements View.OnClickListener { + public final /* synthetic */ Function0 j; + + public b(Function0 function0) { + this.j = function0; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.mo1invoke(); + } +} diff --git a/app/src/main/java/b/a/y/n.java b/app/src/main/java/b/a/y/n.java new file mode 100644 index 0000000000..7cd1e7b19a --- /dev/null +++ b/app/src/main/java/b/a/y/n.java @@ -0,0 +1,36 @@ +package b.a.y; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import b.a.i.x0; +import com.discord.R; +import com.discord.views.OverlayMenuBubbleDialog; +import com.discord.views.VoiceUserView; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Objects; +import kotlin.jvm.functions.Function2; +/* compiled from: OverlayMenuBubbleDialog.kt */ +public final class n extends o implements Function2 { + public static final n j = new n(); + + public n() { + super(2); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public OverlayMenuBubbleDialog.a invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) { + LayoutInflater layoutInflater2 = layoutInflater; + ViewGroup viewGroup2 = viewGroup; + m.checkNotNullParameter(layoutInflater2, "layoutInflater"); + m.checkNotNullParameter(viewGroup2, "parent"); + View inflate = layoutInflater2.inflate(R.layout.overlay_menu_voice_members_item, viewGroup2, false); + Objects.requireNonNull(inflate, "rootView"); + x0 x0Var = new x0((VoiceUserView) inflate); + m.checkNotNullExpressionValue(x0Var, "OverlayMenuVoiceMembersI…tInflater, parent, false)"); + return new OverlayMenuBubbleDialog.a(x0Var); + } +} diff --git a/app/src/main/java/b/a/y/n0/a.java b/app/src/main/java/b/a/y/n0/a.java new file mode 100644 index 0000000000..532b32c2ad --- /dev/null +++ b/app/src/main/java/b/a/y/n0/a.java @@ -0,0 +1,26 @@ +package b.a.y.n0; + +import android.view.View; +import com.discord.utilities.billing.GooglePlayInAppSku; +import com.discord.views.premium.GiftSelectView; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: GiftSelectView.kt */ +public final class a implements View.OnClickListener { + public final /* synthetic */ GiftSelectView j; + + public a(GiftSelectView giftSelectView) { + this.j = giftSelectView; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + Function1 function1; + GiftSelectView giftSelectView = this.j; + GooglePlayInAppSku googlePlayInAppSku = giftSelectView.l; + if (!(googlePlayInAppSku == null || (function1 = giftSelectView.k) == null)) { + function1.invoke(googlePlayInAppSku); + } + giftSelectView.j.c.setOnClickListener(null); + } +} diff --git a/app/src/main/java/b/a/y/o.java b/app/src/main/java/b/a/y/o.java new file mode 100644 index 0000000000..d5c105a6f9 --- /dev/null +++ b/app/src/main/java/b/a/y/o.java @@ -0,0 +1,49 @@ +package b.a.y; + +import com.discord.api.channel.Channel; +import com.discord.api.channel.ChannelUtils; +import com.discord.api.voice.state.VoiceState; +import com.discord.stores.StoreVoiceParticipants; +import j0.k.b; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; +/* compiled from: OverlayMenuBubbleDialog.kt */ +public final class o implements b, List> { + public final /* synthetic */ Channel j; + + public o(Channel channel) { + this.j = channel; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + /* JADX WARNING: Code restructure failed: missing block: B:12:0x0038, code lost: + if ((r2 != null ? b.c.a.a0.d.x0(r2) : null) == com.discord.api.voice.state.StageRequestToSpeakState.ON_STAGE) goto L_0x003a; + */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x003f A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:21:0x000f A[SYNTHETIC] */ + @Override // j0.k.b + public List call(Map map) { + boolean z2; + Collection values = map.values(); + ArrayList arrayList = new ArrayList(); + for (T t : values) { + T t2 = t; + if (t2.isConnected()) { + if (ChannelUtils.z(this.j)) { + VoiceState voiceState = t2.getVoiceState(); + } + z2 = true; + if (!z2) { + arrayList.add(t); + } + } + z2 = false; + if (!z2) { + } + } + return arrayList; + } +} diff --git a/app/src/main/java/b/a/y/o0/a.java b/app/src/main/java/b/a/y/o0/a.java new file mode 100644 index 0000000000..7bb80a13a9 --- /dev/null +++ b/app/src/main/java/b/a/y/o0/a.java @@ -0,0 +1,5 @@ +package b.a.y.o0; +/* compiled from: SegmentedControlSegment.kt */ +public interface a { + void a(boolean z2); +} diff --git a/app/src/main/java/b/a/y/p.java b/app/src/main/java/b/a/y/p.java new file mode 100644 index 0000000000..9e6988ec3c --- /dev/null +++ b/app/src/main/java/b/a/y/p.java @@ -0,0 +1,33 @@ +package b.a.y; + +import com.discord.api.channel.Channel; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreVoiceParticipants; +import d0.t.n; +import d0.z.d.m; +import j0.k.b; +import j0.l.e.k; +import java.util.List; +import rx.Observable; +/* compiled from: OverlayMenuBubbleDialog.kt */ +public final class p implements b>> { + public final /* synthetic */ Long j; + + public p(Long l) { + this.j = l; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Observable> call(Channel channel) { + Channel channel2 = channel; + if (channel2 == null) { + return new k(n.emptyList()); + } + StoreVoiceParticipants voiceParticipants = StoreStream.Companion.getVoiceParticipants(); + Long l = this.j; + m.checkNotNullExpressionValue(l, "channelId"); + return voiceParticipants.get(l.longValue()).F(new o(channel2)).q(); + } +} diff --git a/app/src/main/java/b/a/y/p0/a.java b/app/src/main/java/b/a/y/p0/a.java new file mode 100644 index 0000000000..270aca481d --- /dev/null +++ b/app/src/main/java/b/a/y/p0/a.java @@ -0,0 +1,51 @@ +package b.a.y.p0; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import b.a.i.b5; +import b.a.y.p0.d; +import com.discord.R; +import com.discord.utilities.extensions.SimpleDraweeViewExtensionsKt; +import com.discord.utilities.mg_recycler.MGRecyclerViewHolder; +import com.facebook.drawee.view.SimpleDraweeView; +import d0.z.d.m; +/* compiled from: SpeakersViewHolder.kt */ +public final class a extends MGRecyclerViewHolder { + public final b5 a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(c cVar) { + super((int) R.layout.widget_discovery_stage_card_speaker, cVar); + m.checkNotNullParameter(cVar, "adapter"); + View view = this.itemView; + int i = R.id.discovery_stage_card_speaker_avatar; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(R.id.discovery_stage_card_speaker_avatar); + if (simpleDraweeView != null) { + i = R.id.discovery_stage_card_speaker_name; + TextView textView = (TextView) view.findViewById(R.id.discovery_stage_card_speaker_name); + if (textView != null) { + b5 b5Var = new b5((LinearLayout) view, simpleDraweeView, textView); + m.checkNotNullExpressionValue(b5Var, "WidgetDiscoveryStageCard…kerBinding.bind(itemView)"); + this.a = b5Var; + return; + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [int, java.lang.Object] */ + @Override // com.discord.utilities.mg_recycler.MGRecyclerViewHolder + public void onConfigure(int i, d dVar) { + d dVar2 = dVar; + m.checkNotNullParameter(dVar2, "data"); + super.onConfigure(i, dVar2); + d.a aVar = (d.a) dVar2; + SimpleDraweeView simpleDraweeView = this.a.f86b; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.discoveryStageCardSpeakerAvatar"); + SimpleDraweeViewExtensionsKt.setAvatar$default(simpleDraweeView, aVar.l, false, R.dimen.avatar_size_medium, aVar.m, 2, null); + TextView textView = this.a.c; + m.checkNotNullExpressionValue(textView, "binding.discoveryStageCardSpeakerName"); + textView.setText(aVar.n); + } +} diff --git a/app/src/main/java/b/a/y/p0/b.java b/app/src/main/java/b/a/y/p0/b.java new file mode 100644 index 0000000000..dd3898ea3c --- /dev/null +++ b/app/src/main/java/b/a/y/p0/b.java @@ -0,0 +1,45 @@ +package b.a.y.p0; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import b.a.i.a5; +import b.a.y.p0.d; +import b.d.b.a.a; +import com.discord.R; +import com.discord.utilities.mg_recycler.MGRecyclerViewHolder; +import com.discord.utilities.resources.StringResourceUtilsKt; +import d0.z.d.m; +/* compiled from: SpeakersViewHolder.kt */ +public final class b extends MGRecyclerViewHolder { + public final a5 a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(c cVar) { + super((int) R.layout.widget_discovery_other_speakers_count, cVar); + m.checkNotNullParameter(cVar, "adapter"); + View view = this.itemView; + TextView textView = (TextView) view.findViewById(R.id.other_speakers_count_text); + if (textView != null) { + a5 a5Var = new a5((LinearLayout) view, textView); + m.checkNotNullExpressionValue(a5Var, "WidgetDiscoveryOtherSpea…untBinding.bind(itemView)"); + this.a = a5Var; + return; + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(R.id.other_speakers_count_text))); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [int, java.lang.Object] */ + @Override // com.discord.utilities.mg_recycler.MGRecyclerViewHolder + public void onConfigure(int i, d dVar) { + d dVar2 = dVar; + m.checkNotNullParameter(dVar2, "data"); + super.onConfigure(i, dVar2); + int i2 = ((d.b) dVar2).l; + TextView textView = this.a.f78b; + m.checkNotNullExpressionValue(textView, "binding.otherSpeakersCountText"); + View view = this.itemView; + m.checkNotNullExpressionValue(view, "itemView"); + textView.setText(b.a.k.b.j(view, R.string.discovery_speaker_count, new Object[]{StringResourceUtilsKt.getI18nPluralString(a.x(this.itemView, "itemView", "itemView.context"), R.plurals.discovery_speaker_count_speakersCount, i2, Integer.valueOf(i2))}, null, 4)); + } +} diff --git a/app/src/main/java/b/a/y/p0/c.java b/app/src/main/java/b/a/y/p0/c.java new file mode 100644 index 0000000000..638605197a --- /dev/null +++ b/app/src/main/java/b/a/y/p0/c.java @@ -0,0 +1,37 @@ +package b.a.y.p0; + +import android.view.ViewGroup; +import androidx.recyclerview.widget.GridLayoutManager; +import androidx.recyclerview.widget.RecyclerView; +import com.discord.utilities.mg_recycler.MGRecyclerAdapterSimple; +import d0.z.d.m; +/* compiled from: SpeakersAdapter.kt */ +public final class c extends MGRecyclerAdapterSimple { + public final GridLayoutManager.SpanSizeLookup a = new a(); + + /* compiled from: SpeakersAdapter.kt */ + public static final class a extends GridLayoutManager.SpanSizeLookup { + @Override // androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup + public int getSpanSize(int i) { + return 1; + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(RecyclerView recyclerView) { + super(recyclerView, false, 2, null); + m.checkNotNullParameter(recyclerView, "recyclerView"); + } + + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { + m.checkNotNullParameter(viewGroup, "parent"); + if (i == 0) { + return new a(this); + } + if (i == 1) { + return new b(this); + } + throw new IllegalStateException(b.d.b.a.a.p("Invalid view type: ", i)); + } +} diff --git a/app/src/main/java/b/a/y/p0/d.java b/app/src/main/java/b/a/y/p0/d.java new file mode 100644 index 0000000000..d6c74ed2da --- /dev/null +++ b/app/src/main/java/b/a/y/p0/d.java @@ -0,0 +1,122 @@ +package b.a.y.p0; + +import com.discord.models.member.GuildMember; +import com.discord.models.user.User; +import com.discord.utilities.mg_recycler.MGRecyclerDataPayload; +import d0.z.d.m; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: SpeakersItem.kt */ +public abstract class d implements MGRecyclerDataPayload { + public final String j; + public final int k; + + /* compiled from: SpeakersItem.kt */ + public static final class a extends d { + public final User l; + public final GuildMember m; + public final String n; + public final String o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(User user, GuildMember guildMember, String str, String str2) { + super(String.valueOf(user.getId()), 0, null); + m.checkNotNullParameter(user, "user"); + m.checkNotNullParameter(str, "displayName"); + m.checkNotNullParameter(str2, "positionKey"); + this.l = user; + this.m = guildMember; + this.n = str; + this.o = str2; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return m.areEqual(this.l, aVar.l) && m.areEqual(this.m, aVar.m) && m.areEqual(this.n, aVar.n) && m.areEqual(this.o, aVar.o); + } + + public int hashCode() { + User user = this.l; + int i = 0; + int hashCode = (user != null ? user.hashCode() : 0) * 31; + GuildMember guildMember = this.m; + int hashCode2 = (hashCode + (guildMember != null ? guildMember.hashCode() : 0)) * 31; + String str = this.n; + int hashCode3 = (hashCode2 + (str != null ? str.hashCode() : 0)) * 31; + String str2 = this.o; + if (str2 != null) { + i = str2.hashCode(); + } + return hashCode3 + i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("IndividualSpeakerItem(user="); + R.append(this.l); + R.append(", guildMember="); + R.append(this.m); + R.append(", displayName="); + R.append(this.n); + R.append(", positionKey="); + return b.d.b.a.a.H(R, this.o, ")"); + } + } + + /* compiled from: SpeakersItem.kt */ + public static final class b extends d { + public final int l; + public final String m; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(int i, String str) { + super("other-speakers-count", 1, null); + m.checkNotNullParameter(str, "positionKey"); + this.l = i; + this.m = str; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.l == bVar.l && m.areEqual(this.m, bVar.m); + } + + public int hashCode() { + int i = this.l * 31; + String str = this.m; + return i + (str != null ? str.hashCode() : 0); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("OtherSpeakersCountItem(otherSpeakersCount="); + R.append(this.l); + R.append(", positionKey="); + return b.d.b.a.a.H(R, this.m, ")"); + } + } + + public d(String str, int i, DefaultConstructorMarker defaultConstructorMarker) { + this.j = str; + this.k = i; + } + + @Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider + public String getKey() { + return this.j; + } + + @Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload + public int getType() { + return this.k; + } +} diff --git a/app/src/main/java/b/a/y/q.java b/app/src/main/java/b/a/y/q.java new file mode 100644 index 0000000000..29a513bb9c --- /dev/null +++ b/app/src/main/java/b/a/y/q.java @@ -0,0 +1,26 @@ +package b.a.y; + +import com.discord.models.guild.Guild; +import com.discord.rtcconnection.RtcConnection; +import com.discord.views.OverlayMenuView; +import com.discord.widgets.voice.model.CallModel; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.jvm.functions.Function4; +/* compiled from: OverlayMenuView.kt */ +public final /* synthetic */ class q extends k implements Function4 { + public static final q j = new q(); + + public q() { + super(4, OverlayMenuView.a.class, "", "(Ljava/lang/Long;Lcom/discord/models/guild/Guild;Lcom/discord/widgets/voice/model/CallModel;Lcom/discord/rtcconnection/RtcConnection$Quality;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function4 + public OverlayMenuView.a invoke(Long l, Guild guild, CallModel callModel, RtcConnection.Quality quality) { + RtcConnection.Quality quality2 = quality; + m.checkNotNullParameter(quality2, "p4"); + return new OverlayMenuView.a(l, guild, callModel, quality2); + } +} diff --git a/app/src/main/java/b/a/y/q0/a.java b/app/src/main/java/b/a/y/q0/a.java new file mode 100644 index 0000000000..77726c712c --- /dev/null +++ b/app/src/main/java/b/a/y/q0/a.java @@ -0,0 +1,21 @@ +package b.a.y.q0; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: StepsView.kt */ +public final class a extends o implements Function1 { + public static final a j = new a(); + + public a() { + super(1); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Integer num) { + num.intValue(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/r.java b/app/src/main/java/b/a/y/r.java new file mode 100644 index 0000000000..7cefde5f2b --- /dev/null +++ b/app/src/main/java/b/a/y/r.java @@ -0,0 +1,38 @@ +package b.a.y; + +import com.discord.api.channel.Channel; +import com.discord.models.guild.Guild; +import com.discord.rtcconnection.RtcConnection; +import com.discord.stores.StoreStream; +import com.discord.views.OverlayMenuView; +import com.discord.widgets.voice.model.CallModel; +import j0.k.b; +import j0.l.e.k; +import rx.Observable; +import rx.functions.Func4; +/* compiled from: OverlayMenuView.kt */ +public final class r implements b> { + public static final r j = new r(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // j0.k.b + public Observable call(Channel channel) { + Channel channel2 = channel; + if (channel2 == null) { + return new k(null); + } + StoreStream.Companion companion = StoreStream.Companion; + Observable observePermissionsForChannel = companion.getPermissions().observePermissionsForChannel(channel2.h()); + Observable observeGuild = companion.getGuilds().observeGuild(channel2.f()); + Observable observable = CallModel.Companion.get(channel2.h()); + Observable quality = companion.getRtcConnection().getQuality(); + q qVar = q.j; + if (qVar != null) { + qVar = new u(qVar); + } + return Observable.h(observePermissionsForChannel, observeGuild, observable, quality, (Func4) qVar); + } +} diff --git a/app/src/main/java/b/a/y/r0/a.java b/app/src/main/java/b/a/y/r0/a.java new file mode 100644 index 0000000000..bb27d74a48 --- /dev/null +++ b/app/src/main/java/b/a/y/r0/a.java @@ -0,0 +1,16 @@ +package b.a.y.r0; + +import com.discord.utilities.file.DownloadUtils; +import kotlin.Pair; +import rx.functions.Func2; +/* compiled from: StickerView.kt */ +public final class a implements Func2> { + public static final a j = new a(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // rx.functions.Func2 + public Pair call(DownloadUtils.DownloadState downloadState, Integer num) { + return new Pair<>(downloadState, num); + } +} diff --git a/app/src/main/java/b/a/y/r0/b.java b/app/src/main/java/b/a/y/r0/b.java new file mode 100644 index 0000000000..f533ad53ea --- /dev/null +++ b/app/src/main/java/b/a/y/r0/b.java @@ -0,0 +1,28 @@ +package b.a.y.r0; + +import com.discord.views.sticker.StickerView; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.Subscription; +/* compiled from: StickerView.kt */ +public final class b extends o implements Function1 { + public final /* synthetic */ StickerView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(StickerView stickerView) { + super(1); + this.this$0 = stickerView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Subscription subscription) { + Subscription subscription2 = subscription; + m.checkNotNullParameter(subscription2, "it"); + this.this$0.l = subscription2; + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/r0/c.java b/app/src/main/java/b/a/y/r0/c.java new file mode 100644 index 0000000000..da9e59af29 --- /dev/null +++ b/app/src/main/java/b/a/y/r0/c.java @@ -0,0 +1,31 @@ +package b.a.y.r0; + +import android.view.View; +import com.discord.utilities.file.DownloadUtils; +import com.discord.views.sticker.StickerView; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: StickerView.kt */ +public final class c extends o implements Function1 { + public final /* synthetic */ DownloadUtils.DownloadState $downloadState; + public final /* synthetic */ d this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(d dVar, DownloadUtils.DownloadState downloadState) { + super(1); + this.this$0 = dVar; + this.$downloadState = downloadState; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(View view) { + m.checkNotNullParameter(view, "it"); + StickerView stickerView = this.this$0.this$0; + stickerView.m = StickerView.a(stickerView, ((DownloadUtils.DownloadState.Completed) this.$downloadState).getFile(), true); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/r0/d.java b/app/src/main/java/b/a/y/r0/d.java new file mode 100644 index 0000000000..a29ed8fa97 --- /dev/null +++ b/app/src/main/java/b/a/y/r0/d.java @@ -0,0 +1,67 @@ +package b.a.y.r0; + +import android.widget.ImageView; +import com.discord.api.sticker.BaseSticker; +import com.discord.utilities.file.DownloadUtils; +import com.discord.utilities.images.MGImages; +import com.discord.utilities.stickers.StickerUtils; +import com.discord.utilities.view.extensions.ViewExtensions; +import com.discord.views.sticker.StickerView; +import com.facebook.drawee.view.SimpleDraweeView; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Pair; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: StickerView.kt */ +public final class d extends o implements Function1, Unit> { + public final /* synthetic */ Integer $localAnimationSettings; + public final /* synthetic */ BaseSticker $sticker; + public final /* synthetic */ StickerView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(StickerView stickerView, Integer num, BaseSticker baseSticker) { + super(1); + this.this$0 = stickerView; + this.$localAnimationSettings = num; + this.$sticker = baseSticker; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Pair pair) { + Pair pair2 = pair; + DownloadUtils.DownloadState downloadState = (DownloadUtils.DownloadState) pair2.component1(); + Integer num = (Integer) pair2.component2(); + if (downloadState instanceof DownloadUtils.DownloadState.Completed) { + Integer num2 = this.$localAnimationSettings; + if (num2 != null) { + num = num2; + } + ImageView imageView = this.this$0.j.d; + m.checkNotNullExpressionValue(imageView, "binding.stickerViewPlaceholder"); + imageView.setVisibility(8); + SimpleDraweeView simpleDraweeView = this.this$0.j.f172b; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.stickerViewImageview"); + simpleDraweeView.setContentDescription(this.this$0.c(this.$sticker)); + if (num != null && num.intValue() == 0) { + StickerView stickerView = this.this$0; + stickerView.m = StickerView.a(stickerView, ((DownloadUtils.DownloadState.Completed) downloadState).getFile(), true); + } else if (num != null && num.intValue() == 1) { + SimpleDraweeView simpleDraweeView2 = this.this$0.j.f172b; + m.checkNotNullExpressionValue(simpleDraweeView2, "binding.stickerViewImageview"); + MGImages.setImage$default(simpleDraweeView2, StickerUtils.getCDNAssetUrl$default(StickerUtils.INSTANCE, this.$sticker, null, false, 2, null), 0, 0, false, null, null, 124, null); + SimpleDraweeView simpleDraweeView3 = this.this$0.j.f172b; + m.checkNotNullExpressionValue(simpleDraweeView3, "binding.stickerViewImageview"); + ViewExtensions.setOnLongClickListenerConsumeClick(simpleDraweeView3, new c(this, downloadState)); + } else if (num != null && num.intValue() == 2) { + SimpleDraweeView simpleDraweeView4 = this.this$0.j.f172b; + m.checkNotNullExpressionValue(simpleDraweeView4, "binding.stickerViewImageview"); + MGImages.setImage$default(simpleDraweeView4, StickerUtils.getCDNAssetUrl$default(StickerUtils.INSTANCE, this.$sticker, null, false, 2, null), 0, 0, false, null, null, 124, null); + this.this$0.j.f172b.setOnLongClickListener(null); + } + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/r0/e.java b/app/src/main/java/b/a/y/r0/e.java new file mode 100644 index 0000000000..4a8091f2ba --- /dev/null +++ b/app/src/main/java/b/a/y/r0/e.java @@ -0,0 +1,16 @@ +package b.a.y.r0; + +import com.discord.utilities.file.DownloadUtils; +import kotlin.Pair; +import rx.functions.Func2; +/* compiled from: StickerView.kt */ +public final class e implements Func2> { + public static final e j = new e(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // rx.functions.Func2 + public Pair call(DownloadUtils.DownloadState downloadState, Integer num) { + return new Pair<>(downloadState, num); + } +} diff --git a/app/src/main/java/b/a/y/r0/f.java b/app/src/main/java/b/a/y/r0/f.java new file mode 100644 index 0000000000..20c4f2d8d1 --- /dev/null +++ b/app/src/main/java/b/a/y/r0/f.java @@ -0,0 +1,28 @@ +package b.a.y.r0; + +import com.discord.views.sticker.StickerView; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.Subscription; +/* compiled from: StickerView.kt */ +public final class f extends o implements Function1 { + public final /* synthetic */ StickerView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(StickerView stickerView) { + super(1); + this.this$0 = stickerView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Subscription subscription) { + Subscription subscription2 = subscription; + m.checkNotNullParameter(subscription2, "it"); + this.this$0.l = subscription2; + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/r0/g.java b/app/src/main/java/b/a/y/r0/g.java new file mode 100644 index 0000000000..9aba603b29 --- /dev/null +++ b/app/src/main/java/b/a/y/r0/g.java @@ -0,0 +1,28 @@ +package b.a.y.r0; + +import android.view.View; +import com.discord.rlottie.RLottieDrawable; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: StickerView.kt */ +public final class g extends o implements Function1 { + public final /* synthetic */ h this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(h hVar) { + super(1); + this.this$0 = hVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(View view) { + m.checkNotNullParameter(view, "it"); + this.this$0.this$0.j.c.setPlaybackMode(RLottieDrawable.PlaybackMode.LOOP); + this.this$0.this$0.j.c.b(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/r0/h.java b/app/src/main/java/b/a/y/r0/h.java new file mode 100644 index 0000000000..92b62a2a7b --- /dev/null +++ b/app/src/main/java/b/a/y/r0/h.java @@ -0,0 +1,84 @@ +package b.a.y.r0; + +import android.content.Context; +import android.widget.ImageView; +import com.discord.api.sticker.BaseSticker; +import com.discord.rlottie.RLottieDrawable; +import com.discord.rlottie.RLottieImageView; +import com.discord.utilities.file.DownloadUtils; +import com.discord.utilities.stickers.StickerUtils; +import com.discord.utilities.view.extensions.ViewExtensions; +import com.discord.views.sticker.StickerView; +import d0.z.d.m; +import d0.z.d.o; +import java.io.File; +import java.util.Objects; +import kotlin.Pair; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: StickerView.kt */ +public final class h extends o implements Function1, Unit> { + public final /* synthetic */ Integer $localAnimationSettings; + public final /* synthetic */ BaseSticker $sticker; + public final /* synthetic */ StickerView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(StickerView stickerView, Integer num, BaseSticker baseSticker) { + super(1); + this.this$0 = stickerView; + this.$localAnimationSettings = num; + this.$sticker = baseSticker; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Pair pair) { + Pair pair2 = pair; + DownloadUtils.DownloadState downloadState = (DownloadUtils.DownloadState) pair2.component1(); + Integer num = (Integer) pair2.component2(); + if (downloadState instanceof DownloadUtils.DownloadState.Completed) { + Integer num2 = this.$localAnimationSettings; + if (num2 != null) { + num = num2; + } + RLottieDrawable.PlaybackMode playbackMode = (num != null && num.intValue() == 0) ? RLottieDrawable.PlaybackMode.LOOP : RLottieDrawable.PlaybackMode.FREEZE; + ImageView imageView = this.this$0.j.d; + m.checkNotNullExpressionValue(imageView, "binding.stickerViewPlaceholder"); + imageView.setVisibility(8); + RLottieImageView rLottieImageView = this.this$0.j.c; + m.checkNotNullExpressionValue(rLottieImageView, "binding.stickerViewLottie"); + rLottieImageView.setContentDescription(this.this$0.c(this.$sticker)); + StickerView stickerView = this.this$0; + RLottieImageView rLottieImageView2 = stickerView.j.c; + Context context = stickerView.getContext(); + m.checkNotNullExpressionValue(context, "context"); + File file = ((DownloadUtils.DownloadState.Completed) downloadState).getFile(); + StickerUtils stickerUtils = StickerUtils.INSTANCE; + int default_sticker_size_px = stickerUtils.getDEFAULT_STICKER_SIZE_PX(); + int default_sticker_size_px2 = stickerUtils.getDEFAULT_STICKER_SIZE_PX(); + Objects.requireNonNull(rLottieImageView2); + m.checkParameterIsNotNull(context, "context"); + m.checkParameterIsNotNull(file, "file"); + m.checkParameterIsNotNull(playbackMode, "playbackMode"); + RLottieDrawable rLottieDrawable = new RLottieDrawable(file, default_sticker_size_px, default_sticker_size_px2, false, true, rLottieImageView2.a(context).getRefreshRate(), (int[]) null, 64); + rLottieImageView2.j = rLottieDrawable; + rLottieDrawable.f(playbackMode); + RLottieDrawable rLottieDrawable2 = rLottieImageView2.j; + if (rLottieDrawable2 != null) { + rLottieDrawable2.e(true); + } + rLottieImageView2.setImageDrawable(rLottieImageView2.j); + if (num != null && num.intValue() == 0) { + this.this$0.j.c.b(); + } else if (num != null && num.intValue() == 1) { + RLottieImageView rLottieImageView3 = this.this$0.j.c; + m.checkNotNullExpressionValue(rLottieImageView3, "binding.stickerViewLottie"); + ViewExtensions.setOnLongClickListenerConsumeClick(rLottieImageView3, new g(this)); + } else if (num != null && num.intValue() == 2) { + this.this$0.j.c.setOnLongClickListener(null); + } + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/s.java b/app/src/main/java/b/a/y/s.java new file mode 100644 index 0000000000..16c4f4d8ea --- /dev/null +++ b/app/src/main/java/b/a/y/s.java @@ -0,0 +1,28 @@ +package b.a.y; + +import com.discord.R; +import com.discord.utilities.error.Error; +import com.discord.views.OverlayMenuView; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: OverlayMenuView.kt */ +public final class s extends o implements Function1 { + public final /* synthetic */ OverlayMenuView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public s(OverlayMenuView overlayMenuView) { + super(1); + this.this$0 = overlayMenuView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Error error) { + m.checkNotNullParameter(error, "it"); + b.a.d.m.g(this.this$0.getContext(), R.string.instant_invite_failed_to_generate, 0, null, 12); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/s0/a.java b/app/src/main/java/b/a/y/s0/a.java new file mode 100644 index 0000000000..113dd36dea --- /dev/null +++ b/app/src/main/java/b/a/y/s0/a.java @@ -0,0 +1,26 @@ +package b.a.y.s0; + +import com.discord.views.typing.TypingDots; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: TypingDots.kt */ +public final class a extends o implements Function0 { + public final /* synthetic */ TypingDots this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(TypingDots typingDots) { + super(0); + this.this$0 = typingDots; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + if (this.this$0.isAttachedToWindow()) { + this.this$0.a(true); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/t.java b/app/src/main/java/b/a/y/t.java new file mode 100644 index 0000000000..c5f3b64b93 --- /dev/null +++ b/app/src/main/java/b/a/y/t.java @@ -0,0 +1,38 @@ +package b.a.y; + +import android.content.Context; +import com.discord.BuildConfig; +import com.discord.R; +import com.discord.models.domain.ModelInvite; +import com.discord.utilities.analytics.AnalyticsTracker; +import com.discord.views.OverlayMenuView; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: OverlayMenuView.kt */ +public final class t extends o implements Function1 { + public final /* synthetic */ OverlayMenuView this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public t(OverlayMenuView overlayMenuView) { + super(1); + this.this$0 = overlayMenuView; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(ModelInvite modelInvite) { + ModelInvite modelInvite2 = modelInvite; + m.checkNotNullParameter(modelInvite2, "invite"); + AnalyticsTracker.inviteCopied(modelInvite2, "Mobile Voice Overlay"); + Context context = this.this$0.getContext(); + m.checkNotNullExpressionValue(context, "context"); + String link = modelInvite2.toLink(this.this$0.getResources(), BuildConfig.HOST_INVITE); + m.checkNotNullExpressionValue(link, "invite.toLink(resources, BuildConfig.HOST_INVITE)"); + b.a.d.m.a(context, link, R.string.invite_link_copied); + this.this$0.getOnDismissRequested$app_productionGoogleRelease().mo1invoke(); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/t0/a.java b/app/src/main/java/b/a/y/t0/a.java new file mode 100644 index 0000000000..b35ab4db11 --- /dev/null +++ b/app/src/main/java/b/a/y/t0/a.java @@ -0,0 +1,25 @@ +package b.a.y.t0; + +import android.graphics.Bitmap; +import com.discord.views.user.UserAvatarPresenceView; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: UserAvatarPresenceView.kt */ +public final class a extends b.f.j.q.a { + public final /* synthetic */ UserAvatarPresenceView.c a; + + public a(UserAvatarPresenceView.c cVar) { + this.a = cVar; + } + + @Override // b.f.j.q.a + public void process(Bitmap bitmap) { + if (bitmap != null) { + Function2 function2 = this.a.this$0.m; + Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false); + m.checkNotNullExpressionValue(copy, "bitmap.copy(Bitmap.Config.ARGB_8888, false)"); + function2.invoke(copy, this.a.$iconUrl); + } + } +} diff --git a/app/src/main/java/b/a/y/t0/b.java b/app/src/main/java/b/a/y/t0/b.java new file mode 100644 index 0000000000..63edbc00d3 --- /dev/null +++ b/app/src/main/java/b/a/y/t0/b.java @@ -0,0 +1,26 @@ +package b.a.y.t0; + +import android.graphics.Bitmap; +import b.f.j.q.a; +import com.discord.views.user.UserAvatarPresenceView; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: UserAvatarPresenceView.kt */ +public final class b extends a { + public final /* synthetic */ UserAvatarPresenceView.d a; + + public b(UserAvatarPresenceView.d dVar) { + this.a = dVar; + } + + @Override // b.f.j.q.a + public void process(Bitmap bitmap) { + if (bitmap != null) { + Function2 function2 = this.a.this$0.m; + Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false); + m.checkNotNullExpressionValue(copy, "bitmap.copy(Bitmap.Config.ARGB_8888, false)"); + function2.invoke(copy, this.a.$iconUrl); + } + } +} diff --git a/app/src/main/java/b/a/y/u.java b/app/src/main/java/b/a/y/u.java new file mode 100644 index 0000000000..5c6e7550a3 --- /dev/null +++ b/app/src/main/java/b/a/y/u.java @@ -0,0 +1,17 @@ +package b.a.y; + +import kotlin.jvm.functions.Function4; +import rx.functions.Func4; +/* compiled from: OverlayMenuView.kt */ +public final class u implements Func4 { + public final /* synthetic */ Function4 a; + + public u(Function4 function4) { + this.a = function4; + } + + @Override // rx.functions.Func4 + public final /* synthetic */ Object call(Object obj, Object obj2, Object obj3, Object obj4) { + return this.a.invoke(obj, obj2, obj3, obj4); + } +} diff --git a/app/src/main/java/b/a/y/v.java b/app/src/main/java/b/a/y/v.java new file mode 100644 index 0000000000..de733d88c0 --- /dev/null +++ b/app/src/main/java/b/a/y/v.java @@ -0,0 +1,29 @@ +package b.a.y; + +import com.discord.stores.StoreVoiceParticipants; +import j0.k.b; +import java.util.Iterator; +import java.util.Map; +/* compiled from: OverlayVoiceBubble.kt */ +public final class v implements b, StoreVoiceParticipants.VoiceUser> { + public static final v j = new v(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public StoreVoiceParticipants.VoiceUser call(Map map) { + T t; + Iterator it = map.values().iterator(); + while (true) { + if (!it.hasNext()) { + t = null; + break; + } + t = it.next(); + if (t.isSpeaking()) { + break; + } + } + return t; + } +} diff --git a/app/src/main/java/b/a/y/w.java b/app/src/main/java/b/a/y/w.java new file mode 100644 index 0000000000..42d32b90ea --- /dev/null +++ b/app/src/main/java/b/a/y/w.java @@ -0,0 +1,157 @@ +package b.a.y; + +import android.content.Context; +import android.content.res.Configuration; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import b.a.i.y0; +import com.discord.R; +import com.discord.app.AppComponent; +import com.discord.overlay.views.OverlayBubbleWrap; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreVoiceParticipants; +import com.discord.utilities.icon.IconUtils; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.facebook.drawee.view.SimpleDraweeView; +import d0.z.d.m; +import d0.z.d.o; +import j0.l.e.k; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import rx.Observable; +import rx.subjects.PublishSubject; +import rx.subjects.Subject; +/* compiled from: OverlayVoiceBubble.kt */ +public final class w extends OverlayBubbleWrap implements AppComponent { + + /* renamed from: x reason: collision with root package name */ + public static final /* synthetic */ int f305x = 0; + + /* renamed from: y reason: collision with root package name */ + public final y0 f306y; + + /* renamed from: z reason: collision with root package name */ + public final Subject f307z; + + /* compiled from: OverlayVoiceBubble.kt */ + public static final class a implements j0.k.b> { + public static final a j = new a(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public Observable call(Long l) { + Long l2 = l; + if (l2 != null && l2.longValue() == 0) { + return new k(null); + } + StoreVoiceParticipants voiceParticipants = StoreStream.Companion.getVoiceParticipants(); + m.checkNotNullExpressionValue(l2, "channelId"); + return voiceParticipants.get(l2.longValue()).F(v.j).q(); + } + } + + /* compiled from: OverlayVoiceBubble.kt */ + public static final class b extends o implements Function1 { + public final /* synthetic */ w this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(w wVar) { + super(1); + this.this$0 = wVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(StoreVoiceParticipants.VoiceUser voiceUser) { + StoreVoiceParticipants.VoiceUser voiceUser2 = voiceUser; + w wVar = this.this$0; + int i = w.f305x; + if (voiceUser2 == null) { + wVar.h(); + } else { + IconUtils.setIcon$default(wVar.getImageView$app_productionGoogleRelease(), voiceUser2.getUser(), 0, null, null, voiceUser2.getGuildMember(), 28, null); + wVar.g(); + } + return Unit.a; + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public w(Context context) { + super(context); + m.checkNotNullParameter(context, "context"); + View inflate = LayoutInflater.from(getContext()).inflate(R.layout.overlay_voice_bubble, (ViewGroup) this, false); + addView(inflate); + Objects.requireNonNull(inflate, "rootView"); + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate; + y0 y0Var = new y0(simpleDraweeView, simpleDraweeView); + m.checkNotNullExpressionValue(y0Var, "OverlayVoiceBubbleBindin…rom(context), this, true)"); + this.f306y = y0Var; + PublishSubject k0 = PublishSubject.k0(); + m.checkNotNullExpressionValue(k0, "PublishSubject.create()"); + this.f307z = k0; + } + + @Override // com.discord.overlay.views.OverlayBubbleWrap + public void a(boolean z2) { + h(); + super.a(z2); + } + + @Override // com.discord.overlay.views.OverlayBubbleWrap + public void b(View view) { + m.checkNotNullParameter(view, "targetView"); + super.b(view); + g(); + } + + public final void g() { + getImageView$app_productionGoogleRelease().animate().setDuration(100).alpha(1.0f).start(); + } + + public final SimpleDraweeView getImageView$app_productionGoogleRelease() { + SimpleDraweeView simpleDraweeView = this.f306y.f226b; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.overlayBubbleIv"); + return simpleDraweeView; + } + + @Override // com.discord.app.AppComponent + public Subject getUnsubscribeSignal() { + return this.f307z; + } + + public final void h() { + getImageView$app_productionGoogleRelease().animate().setDuration(200).alpha(0.5f).start(); + } + + @Override // android.view.View, android.view.ViewGroup + public void onAttachedToWindow() { + super.onAttachedToWindow(); + Observable Y = StoreStream.Companion.getVoiceChannelSelected().observeSelectedVoiceChannelId().Y(a.j); + m.checkNotNullExpressionValue(Y, "StoreStream\n .get…d()\n }\n }"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(Y), this, null, 2, null), w.class, getContext(), (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(this), 60, (Object) null); + } + + @Override // com.discord.overlay.views.OverlayBubbleWrap, android.view.View + public void onConfigurationChanged(Configuration configuration) { + int i = getWindowLayoutParams().x; + Context context = getContext(); + m.checkNotNullExpressionValue(context, "context"); + int i2 = i > e(context).centerX() ? Integer.MAX_VALUE : Integer.MIN_VALUE; + super.onConfigurationChanged(configuration); + OverlayBubbleWrap.c(this, i2, getWindowLayoutParams().y, null, 4, null); + getSpringAnimationX().skipToEnd(); + getSpringAnimationY().skipToEnd(); + } + + @Override // android.view.View, android.view.ViewGroup + public void onDetachedFromWindow() { + getUnsubscribeSignal().onNext(null); + super.onDetachedFromWindow(); + } +} diff --git a/app/src/main/java/b/a/y/x.java b/app/src/main/java/b/a/y/x.java new file mode 100644 index 0000000000..ea5ce98127 --- /dev/null +++ b/app/src/main/java/b/a/y/x.java @@ -0,0 +1,33 @@ +package b.a.y; + +import com.discord.widgets.user.search.WidgetGlobalSearchModel; +import d0.z.d.m; +import d0.z.d.o; +import java.util.List; +import kotlin.Unit; +import kotlin.jvm.functions.Function2; +/* compiled from: OverlayVoiceSelectorBubbleDialog.kt */ +public final class x extends o implements Function2, List, Unit> { + public final /* synthetic */ WidgetGlobalSearchModel $searchModel$inlined; + public final /* synthetic */ z this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public x(z zVar, WidgetGlobalSearchModel widgetGlobalSearchModel) { + super(2); + this.this$0 = zVar; + this.$searchModel$inlined = widgetGlobalSearchModel; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public Unit invoke(List list, List list2) { + m.checkNotNullParameter(list, ""); + m.checkNotNullParameter(list2, ""); + if (!m.areEqual(this.this$0.C, this.$searchModel$inlined.getFilter())) { + this.this$0.f308z.f.scrollToPosition(0); + this.this$0.C = this.$searchModel$inlined.getFilter(); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/y.java b/app/src/main/java/b/a/y/y.java new file mode 100644 index 0000000000..e06f159485 --- /dev/null +++ b/app/src/main/java/b/a/y/y.java @@ -0,0 +1,42 @@ +package b.a.y; + +import android.content.Context; +import android.view.View; +import com.discord.app.DiscordConnectService; +import com.discord.widgets.user.search.WidgetGlobalSearchModel; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function4; +/* compiled from: OverlayVoiceSelectorBubbleDialog.kt */ +public final class y extends o implements Function4 { + public final /* synthetic */ WidgetGlobalSearchModel $searchModel$inlined; + public final /* synthetic */ z this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public y(z zVar, WidgetGlobalSearchModel widgetGlobalSearchModel) { + super(4); + this.this$0 = zVar; + this.$searchModel$inlined = widgetGlobalSearchModel; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function4 + public Unit invoke(View view, Integer num, WidgetGlobalSearchModel.ItemDataPayload itemDataPayload, Boolean bool) { + View view2 = view; + num.intValue(); + WidgetGlobalSearchModel.ItemDataPayload itemDataPayload2 = itemDataPayload; + bool.booleanValue(); + m.checkNotNullParameter(view2, "view"); + m.checkNotNullParameter(itemDataPayload2, "data"); + if (itemDataPayload2 instanceof WidgetGlobalSearchModel.ItemChannel) { + DiscordConnectService.a aVar = DiscordConnectService.j; + Context context = view2.getContext(); + m.checkNotNullExpressionValue(context, "view.context"); + aVar.b(context, ((WidgetGlobalSearchModel.ItemChannel) itemDataPayload2).getChannel().h()); + this.this$0.g(); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/y/z.java b/app/src/main/java/b/a/y/z.java new file mode 100644 index 0000000000..28e4edd0c7 --- /dev/null +++ b/app/src/main/java/b/a/y/z.java @@ -0,0 +1,195 @@ +package b.a.y; + +import android.animation.Animator; +import android.animation.AnimatorInflater; +import android.content.Context; +import android.content.res.Configuration; +import android.text.Editable; +import android.view.LayoutInflater; +import android.view.View; +import android.widget.EditText; +import android.widget.TextView; +import androidx.recyclerview.widget.RecyclerView; +import b.a.i.z0; +import com.discord.R; +import com.discord.api.channel.Channel; +import com.discord.api.channel.ChannelUtils; +import com.discord.app.AppComponent; +import com.discord.utilities.mg_recycler.MGRecyclerAdapter; +import com.discord.utilities.rx.ObservableExtensionsKt; +import com.discord.utilities.view.extensions.ViewExtensions; +import com.discord.utilities.view.text.TextWatcher; +import com.discord.widgets.user.search.WidgetGlobalSearchAdapter; +import com.discord.widgets.user.search.WidgetGlobalSearchModel; +import com.google.android.material.textfield.TextInputLayout; +import d0.z.d.m; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.List; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import rx.Observable; +import rx.subjects.BehaviorSubject; +/* compiled from: OverlayVoiceSelectorBubbleDialog.kt */ +public final class z extends l implements AppComponent { + public final WidgetGlobalSearchAdapter A; + public final BehaviorSubject B = BehaviorSubject.l0(""); + public String C; + + /* renamed from: z reason: collision with root package name */ + public z0 f308z; + + /* compiled from: OverlayVoiceSelectorBubbleDialog.kt */ + public static final class a implements View.OnClickListener { + public final /* synthetic */ z j; + + public a(z zVar) { + this.j = zVar; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + this.j.g(); + } + } + + /* compiled from: OverlayVoiceSelectorBubbleDialog.kt */ + public static final class b extends o implements Function1 { + public final /* synthetic */ z this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(z zVar) { + super(1); + this.this$0 = zVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Editable editable) { + Editable editable2 = editable; + m.checkNotNullParameter(editable2, "editable"); + this.this$0.B.onNext(editable2.toString()); + return Unit.a; + } + } + + /* compiled from: OverlayVoiceSelectorBubbleDialog.kt */ + public static final class c implements j0.k.b { + public static final c j = new c(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public String call(String str) { + return '!' + str; + } + } + + /* compiled from: OverlayVoiceSelectorBubbleDialog.kt */ + public static final class d extends o implements Function1 { + public final /* synthetic */ z this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(z zVar) { + super(1); + this.this$0 = zVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(WidgetGlobalSearchModel widgetGlobalSearchModel) { + WidgetGlobalSearchModel widgetGlobalSearchModel2 = widgetGlobalSearchModel; + m.checkNotNullParameter(widgetGlobalSearchModel2, "it"); + z zVar = this.this$0; + TextView textView = zVar.f308z.d; + m.checkNotNullExpressionValue(textView, "binding.emptyResults"); + int i = 8; + textView.setVisibility(widgetGlobalSearchModel2.getData().isEmpty() ? 0 : 8); + RecyclerView recyclerView = zVar.f308z.f; + m.checkNotNullExpressionValue(recyclerView, "binding.resultsRv"); + if (!widgetGlobalSearchModel2.getData().isEmpty()) { + i = 0; + } + recyclerView.setVisibility(i); + WidgetGlobalSearchAdapter widgetGlobalSearchAdapter = zVar.A; + widgetGlobalSearchAdapter.setOnUpdated(new x(zVar, widgetGlobalSearchModel2)); + List data = widgetGlobalSearchModel2.getData(); + ArrayList arrayList = new ArrayList(); + for (Object obj : data) { + Channel channel = ((WidgetGlobalSearchModel.ItemDataPayload) obj).getChannel(); + if (channel != null && ChannelUtils.E(channel)) { + arrayList.add(obj); + } + } + widgetGlobalSearchAdapter.setData(arrayList); + widgetGlobalSearchAdapter.setOnSelectedListener(new y(zVar, widgetGlobalSearchModel2)); + return Unit.a; + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public z(Context context) { + super(context); + m.checkNotNullParameter(context, "context"); + getWindowLayoutParams().flags &= -9; + z0 a2 = z0.a(LayoutInflater.from(getContext()), this, true); + m.checkNotNullExpressionValue(a2, "OverlayVoiceChannelSelec…rom(context), this, true)"); + this.f308z = a2; + RecyclerView recyclerView = this.f308z.f; + m.checkNotNullExpressionValue(recyclerView, "binding.resultsRv"); + this.A = new WidgetGlobalSearchAdapter(recyclerView); + } + + @Override // b.a.y.l + public Animator getClosingAnimator() { + Animator loadAnimator = AnimatorInflater.loadAnimator(getContext(), R.animator.overlay_slide_down_fade_out); + loadAnimator.setTarget(this.f308z.c); + m.checkNotNullExpressionValue(loadAnimator, "AnimatorInflater.loadAni…binding.dialogCard)\n }"); + return loadAnimator; + } + + public final void h() { + this.f308z.f233b.setOnClickListener(new a(this)); + TextInputLayout textInputLayout = this.f308z.e; + m.checkNotNullExpressionValue(textInputLayout, "binding.overlayChannelSearch"); + ViewExtensions.setText(textInputLayout, this.C); + TextInputLayout textInputLayout2 = this.f308z.e; + m.checkNotNullExpressionValue(textInputLayout2, "binding.overlayChannelSearch"); + EditText editText = textInputLayout2.getEditText(); + if (editText != null) { + editText.addTextChangedListener(new TextWatcher(null, null, new b(this), 3, null)); + } + WidgetGlobalSearchAdapter widgetGlobalSearchAdapter = this.A; + RecyclerView recyclerView = this.f308z.f; + m.checkNotNullExpressionValue(recyclerView, "binding.resultsRv"); + widgetGlobalSearchAdapter.setRecycler(recyclerView); + MGRecyclerAdapter.Companion.configure(this.A); + WidgetGlobalSearchModel.Companion companion = WidgetGlobalSearchModel.Companion; + Observable F = this.B.F(c.j); + m.checkNotNullExpressionValue(F, "filterPublisher.map { \"!$it\" }"); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui(companion.getForNav(F), this, this.A), z.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null); + } + + @Override // android.view.View, android.view.ViewGroup + public void onAttachedToWindow() { + super.onAttachedToWindow(); + h(); + Animator loadAnimator = AnimatorInflater.loadAnimator(getContext(), R.animator.overlay_slide_up_fade_in); + loadAnimator.setTarget(this.f308z.c); + loadAnimator.start(); + } + + @Override // com.discord.overlay.views.OverlayDialog, com.discord.overlay.views.OverlayBubbleWrap, android.view.View + public void onConfigurationChanged(Configuration configuration) { + super.onConfigurationChanged(configuration); + getUnsubscribeSignal().onNext(null); + removeAllViewsInLayout(); + z0 a2 = z0.a(LayoutInflater.from(getContext()), this, true); + m.checkNotNullExpressionValue(a2, "OverlayVoiceChannelSelec…rom(context), this, true)"); + this.f308z = a2; + h(); + } +} diff --git a/app/src/main/java/b/a/z/a/a/a.java b/app/src/main/java/b/a/z/a/a/a.java new file mode 100644 index 0000000000..d067ea8b33 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/a.java @@ -0,0 +1,17 @@ +package b.a.z.a.a; + +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember; +import rx.functions.Action1; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Action1 { + public final /* synthetic */ WidgetChannelSettingsPermissionsAddMember j; + + public /* synthetic */ a(WidgetChannelSettingsPermissionsAddMember widgetChannelSettingsPermissionsAddMember) { + this.j = widgetChannelSettingsPermissionsAddMember; + } + + @Override // rx.functions.Action1 + public final void call(Object obj) { + WidgetChannelSettingsPermissionsAddMember.g(this.j, (WidgetChannelSettingsPermissionsAddMember.Model) obj); + } +} diff --git a/app/src/main/java/b/a/z/a/a/b.java b/app/src/main/java/b/a/z/a/a/b.java new file mode 100644 index 0000000000..6e88b1fcf5 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/b.java @@ -0,0 +1,19 @@ +package b.a.z.a.a; + +import com.discord.stores.StoreStream; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember; +import rx.functions.Action1; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Action1 { + public final /* synthetic */ long j; + + public /* synthetic */ b(long j) { + this.j = j; + } + + @Override // rx.functions.Action1 + public final void call(Object obj) { + int i = WidgetChannelSettingsPermissionsAddMember.j; + StoreStream.getGatewaySocket().requestGuildMembers(this.j, (String) obj); + } +} diff --git a/app/src/main/java/b/a/z/a/a/c.java b/app/src/main/java/b/a/z/a/a/c.java new file mode 100644 index 0000000000..e2f4dc8270 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/c.java @@ -0,0 +1,25 @@ +package b.a.z.a.a; + +import com.discord.models.user.User; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsEditPermissions; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Function1 { + public final /* synthetic */ WidgetChannelSettingsPermissionsAddMember j; + public final /* synthetic */ WidgetChannelSettingsPermissionsAddMember.Model k; + + public /* synthetic */ c(WidgetChannelSettingsPermissionsAddMember widgetChannelSettingsPermissionsAddMember, WidgetChannelSettingsPermissionsAddMember.Model model) { + this.j = widgetChannelSettingsPermissionsAddMember; + this.k = model; + } + + @Override // kotlin.jvm.functions.Function1 + public final Object invoke(Object obj) { + WidgetChannelSettingsPermissionsAddMember widgetChannelSettingsPermissionsAddMember = this.j; + WidgetChannelSettingsPermissionsAddMember.Model model = this.k; + WidgetChannelSettingsEditPermissions.createForUser(widgetChannelSettingsPermissionsAddMember.getContext(), WidgetChannelSettingsPermissionsAddMember.Model.access$100(model).f(), WidgetChannelSettingsPermissionsAddMember.Model.access$100(model).h(), ((User) obj).getId()); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/z/a/a/d.java b/app/src/main/java/b/a/z/a/a/d.java new file mode 100644 index 0000000000..0e998eb5f3 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/d.java @@ -0,0 +1,22 @@ +package b.a.z.a.a; + +import b.d.b.a.a; +import com.discord.models.member.GuildMember; +import com.discord.models.user.User; +import com.discord.widgets.channels.SimpleMembersAdapter; +import j0.k.b; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class d implements b { + public final /* synthetic */ Map j; + + public /* synthetic */ d(Map map) { + this.j = map; + } + + @Override // j0.k.b + public final Object call(Object obj) { + User user = (User) obj; + return new SimpleMembersAdapter.MemberItem(user, (GuildMember) a.e(user, this.j)); + } +} diff --git a/app/src/main/java/b/a/z/a/a/e.java b/app/src/main/java/b/a/z/a/a/e.java new file mode 100644 index 0000000000..0e4f6c60d3 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/e.java @@ -0,0 +1,36 @@ +package b.a.z.a.a; + +import com.discord.api.channel.Channel; +import com.discord.stores.StoreStream; +import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.z.d.m; +import j0.k.b; +import j0.l.e.k; +import java.util.concurrent.TimeUnit; +import rx.Observable; +/* compiled from: lambda */ +public final /* synthetic */ class e implements b { + public final /* synthetic */ long j; + public final /* synthetic */ long k; + public final /* synthetic */ Observable l; + + public /* synthetic */ e(long j, long j2, Observable observable) { + this.j = j; + this.k = j2; + this.l = observable; + } + + @Override // j0.k.b + public final Object call(Object obj) { + long j = this.j; + long j2 = this.k; + Observable observable = this.l; + Channel channel = (Channel) obj; + if (channel == null) { + return new k(null); + } + Observable h = Observable.h(StoreStream.getUsers().observeMe(), StoreStream.getGuilds().observeGuild(j), StoreStream.getPermissions().observePermissionsForChannel(j2), observable.o(300, TimeUnit.MILLISECONDS).Y(new g(j, channel)).q(), new j(channel)); + m.checkNotNullExpressionValue(h, "observable"); + return ObservableExtensionsKt.computationBuffered(h).q(); + } +} diff --git a/app/src/main/java/b/a/z/a/a/f.java b/app/src/main/java/b/a/z/a/a/f.java new file mode 100644 index 0000000000..3ef77316d1 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/f.java @@ -0,0 +1,23 @@ +package b.a.z.a.a; + +import b.d.b.a.a; +import com.discord.models.member.GuildMember; +import com.discord.models.user.User; +import java.util.Map; +import rx.functions.Func2; +/* compiled from: lambda */ +public final /* synthetic */ class f implements Func2 { + public final /* synthetic */ Map j; + + public /* synthetic */ f(Map map) { + this.j = map; + } + + @Override // rx.functions.Func2 + public final Object call(Object obj, Object obj2) { + Map map = this.j; + User user = (User) obj; + User user2 = (User) obj2; + return Integer.valueOf(GuildMember.compareUserNames(user, user2, (GuildMember) a.e(user, map), (GuildMember) a.e(user2, map))); + } +} diff --git a/app/src/main/java/b/a/z/a/a/g.java b/app/src/main/java/b/a/z/a/a/g.java new file mode 100644 index 0000000000..567f412c31 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/g.java @@ -0,0 +1,20 @@ +package b.a.z.a.a; + +import com.discord.api.channel.Channel; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember; +import j0.k.b; +/* compiled from: lambda */ +public final /* synthetic */ class g implements b { + public final /* synthetic */ long j; + public final /* synthetic */ Channel k; + + public /* synthetic */ g(long j, Channel channel) { + this.j = j; + this.k = channel; + } + + @Override // j0.k.b + public final Object call(Object obj) { + return WidgetChannelSettingsPermissionsAddMember.Model.lambda$null$0(this.j, this.k, (String) obj); + } +} diff --git a/app/src/main/java/b/a/z/a/a/h.java b/app/src/main/java/b/a/z/a/a/h.java new file mode 100644 index 0000000000..c7b1512582 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/h.java @@ -0,0 +1,33 @@ +package b.a.z.a.a; + +import j0.k.b; +import j0.l.a.n; +import j0.l.a.o2; +import j0.l.a.r; +import j0.l.e.i; +import j0.l.e.k; +import j0.l.e.m; +import java.util.List; +import java.util.Map; +import rx.Observable; +/* compiled from: lambda */ +public final /* synthetic */ class h implements b { + public final /* synthetic */ List j; + public final /* synthetic */ Map k; + public final /* synthetic */ String l; + + public /* synthetic */ h(List list, Map map, String str) { + this.j = list; + this.k = map; + this.l = str; + } + + @Override // j0.k.b + public final Object call(Object obj) { + List list = this.j; + Map map = this.k; + Observable h02 = Observable.h0(new r(Observable.A(((Map) obj).values()).x(new l(list)).x(new m(map)).x(new k(this.l)).j, new o2(new f(map), 10))); + m mVar = m.INSTANCE; + return (h02 instanceof k ? Observable.h0(new n.b(((k) h02).l, mVar)) : Observable.h0(new n(h02, mVar, i.j))).F(new d(map)).f0(); + } +} diff --git a/app/src/main/java/b/a/z/a/a/i.java b/app/src/main/java/b/a/z/a/a/i.java new file mode 100644 index 0000000000..70d7afd3da --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/i.java @@ -0,0 +1,22 @@ +package b.a.z.a.a; + +import com.discord.stores.StoreStream; +import j0.k.b; +import java.util.List; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class i implements b { + public final /* synthetic */ List j; + public final /* synthetic */ String k; + + public /* synthetic */ i(List list, String str) { + this.j = list; + this.k = str; + } + + @Override // j0.k.b + public final Object call(Object obj) { + Map map = (Map) obj; + return StoreStream.getUsers().observeUsers(map.keySet()).Y(new h(this.j, map, this.k)); + } +} diff --git a/app/src/main/java/b/a/z/a/a/j.java b/app/src/main/java/b/a/z/a/a/j.java new file mode 100644 index 0000000000..d311336c3f --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/j.java @@ -0,0 +1,21 @@ +package b.a.z.a.a; + +import com.discord.api.channel.Channel; +import com.discord.models.guild.Guild; +import com.discord.models.user.MeUser; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember; +import java.util.List; +import rx.functions.Func4; +/* compiled from: lambda */ +public final /* synthetic */ class j implements Func4 { + public final /* synthetic */ Channel a; + + public /* synthetic */ j(Channel channel) { + this.a = channel; + } + + @Override // rx.functions.Func4 + public final Object call(Object obj, Object obj2, Object obj3, Object obj4) { + return WidgetChannelSettingsPermissionsAddMember.Model.lambda$null$1(this.a, (MeUser) obj, (Guild) obj2, (Long) obj3, (List) obj4); + } +} diff --git a/app/src/main/java/b/a/z/a/a/k.java b/app/src/main/java/b/a/z/a/a/k.java new file mode 100644 index 0000000000..92cabde3c5 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/k.java @@ -0,0 +1,18 @@ +package b.a.z.a.a; + +import com.discord.models.user.User; +import j0.k.b; +import java.util.Locale; +/* compiled from: lambda */ +public final /* synthetic */ class k implements b { + public final /* synthetic */ String j; + + public /* synthetic */ k(String str) { + this.j = str; + } + + @Override // j0.k.b + public final Object call(Object obj) { + return Boolean.valueOf(((User) obj).getUsername().toLowerCase(Locale.ROOT).contains(this.j)); + } +} diff --git a/app/src/main/java/b/a/z/a/a/l.java b/app/src/main/java/b/a/z/a/a/l.java new file mode 100644 index 0000000000..ee00808215 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/l.java @@ -0,0 +1,29 @@ +package b.a.z.a.a; + +import com.discord.api.permission.PermissionOverwrite; +import com.discord.models.user.User; +import j0.k.b; +import java.util.List; +/* compiled from: lambda */ +public final /* synthetic */ class l implements b { + public final /* synthetic */ List j; + + public /* synthetic */ l(List list) { + this.j = list; + } + + @Override // j0.k.b + public final Object call(Object obj) { + List list = this.j; + User user = (User) obj; + if (list == null) { + return Boolean.TRUE; + } + for (int i = 0; i < list.size(); i++) { + if (((PermissionOverwrite) list.get(i)).e() == user.getId()) { + return Boolean.FALSE; + } + } + return Boolean.TRUE; + } +} diff --git a/app/src/main/java/b/a/z/a/a/m.java b/app/src/main/java/b/a/z/a/a/m.java new file mode 100644 index 0000000000..3d1fb396ca --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/m.java @@ -0,0 +1,19 @@ +package b.a.z.a.a; + +import b.d.b.a.a; +import com.discord.models.user.User; +import j0.k.b; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class m implements b { + public final /* synthetic */ Map j; + + public /* synthetic */ m(Map map) { + this.j = map; + } + + @Override // j0.k.b + public final Object call(Object obj) { + return Boolean.valueOf(a.e((User) obj, this.j) != null); + } +} diff --git a/app/src/main/java/b/a/z/a/a/n.java b/app/src/main/java/b/a/z/a/a/n.java new file mode 100644 index 0000000000..f09293f346 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/n.java @@ -0,0 +1,19 @@ +package b.a.z.a.a; + +import android.text.Editable; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember; +import kotlin.jvm.functions.Function1; +/* compiled from: lambda */ +public final /* synthetic */ class n implements Function1 { + public final /* synthetic */ WidgetChannelSettingsPermissionsAddMember j; + + public /* synthetic */ n(WidgetChannelSettingsPermissionsAddMember widgetChannelSettingsPermissionsAddMember) { + this.j = widgetChannelSettingsPermissionsAddMember; + } + + @Override // kotlin.jvm.functions.Function1 + public final Object invoke(Object obj) { + this.j.h((Editable) obj); + return null; + } +} diff --git a/app/src/main/java/b/a/z/a/a/o.java b/app/src/main/java/b/a/z/a/a/o.java new file mode 100644 index 0000000000..e105fc5581 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/o.java @@ -0,0 +1,15 @@ +package b.a.z.a.a; + +import android.text.TextUtils; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember; +import j0.k.b; +/* compiled from: lambda */ +public final /* synthetic */ class o implements b { + public static final /* synthetic */ o j = new o(); + + @Override // j0.k.b + public final Object call(Object obj) { + int i = WidgetChannelSettingsPermissionsAddMember.j; + return Boolean.valueOf(!TextUtils.isEmpty((String) obj)); + } +} diff --git a/app/src/main/java/b/a/z/a/a/p.java b/app/src/main/java/b/a/z/a/a/p.java new file mode 100644 index 0000000000..a3e9d895a5 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/p.java @@ -0,0 +1,17 @@ +package b.a.z.a.a; + +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddRole; +import rx.functions.Action1; +/* compiled from: lambda */ +public final /* synthetic */ class p implements Action1 { + public final /* synthetic */ WidgetChannelSettingsPermissionsAddRole j; + + public /* synthetic */ p(WidgetChannelSettingsPermissionsAddRole widgetChannelSettingsPermissionsAddRole) { + this.j = widgetChannelSettingsPermissionsAddRole; + } + + @Override // rx.functions.Action1 + public final void call(Object obj) { + WidgetChannelSettingsPermissionsAddRole.g(this.j, (WidgetChannelSettingsPermissionsAddRole.Model) obj); + } +} diff --git a/app/src/main/java/b/a/z/a/a/q.java b/app/src/main/java/b/a/z/a/a/q.java new file mode 100644 index 0000000000..54bf8d242e --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/q.java @@ -0,0 +1,21 @@ +package b.a.z.a.a; + +import com.discord.api.channel.Channel; +import com.discord.stores.StoreStream; +import j0.k.b; +import j0.l.e.k; +import rx.Observable; +/* compiled from: lambda */ +public final /* synthetic */ class q implements b { + public final /* synthetic */ long j; + + public /* synthetic */ q(long j) { + this.j = j; + } + + @Override // j0.k.b + public final Object call(Object obj) { + Channel channel = (Channel) obj; + return channel == null ? new k(null) : Observable.h(StoreStream.getGuilds().observeGuild(channel.f()), StoreStream.getUsers().observeMe(), StoreStream.getPermissions().observePermissionsForChannel(this.j), StoreStream.getGuilds().observeSortedRoles(channel.f()).Y(new s(channel)), new r(channel)); + } +} diff --git a/app/src/main/java/b/a/z/a/a/r.java b/app/src/main/java/b/a/z/a/a/r.java new file mode 100644 index 0000000000..64a65ae691 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/r.java @@ -0,0 +1,21 @@ +package b.a.z.a.a; + +import com.discord.api.channel.Channel; +import com.discord.models.guild.Guild; +import com.discord.models.user.MeUser; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddRole; +import java.util.List; +import rx.functions.Func4; +/* compiled from: lambda */ +public final /* synthetic */ class r implements Func4 { + public final /* synthetic */ Channel a; + + public /* synthetic */ r(Channel channel) { + this.a = channel; + } + + @Override // rx.functions.Func4 + public final Object call(Object obj, Object obj2, Object obj3, Object obj4) { + return WidgetChannelSettingsPermissionsAddRole.Model.lambda$null$2(this.a, (Guild) obj, (MeUser) obj2, (Long) obj3, (List) obj4); + } +} diff --git a/app/src/main/java/b/a/z/a/a/s.java b/app/src/main/java/b/a/z/a/a/s.java new file mode 100644 index 0000000000..3367d01d7e --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/s.java @@ -0,0 +1,20 @@ +package b.a.z.a.a; + +import com.discord.api.channel.Channel; +import j0.k.b; +import j0.l.a.q; +import java.util.List; +import rx.Observable; +/* compiled from: lambda */ +public final /* synthetic */ class s implements b { + public final /* synthetic */ Channel j; + + public /* synthetic */ s(Channel channel) { + this.j = channel; + } + + @Override // j0.k.b + public final Object call(Object obj) { + return Observable.h0(new q((List) obj)).x(new t(this.j)).F(v.j).f0(); + } +} diff --git a/app/src/main/java/b/a/z/a/a/t.java b/app/src/main/java/b/a/z/a/a/t.java new file mode 100644 index 0000000000..709eb1abf4 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/t.java @@ -0,0 +1,28 @@ +package b.a.z.a.a; + +import com.discord.api.channel.Channel; +import com.discord.api.role.GuildRole; +import j0.k.b; +/* compiled from: lambda */ +public final /* synthetic */ class t implements b { + public final /* synthetic */ Channel j; + + public /* synthetic */ t(Channel channel) { + this.j = channel; + } + + @Override // j0.k.b + public final Object call(Object obj) { + Channel channel = this.j; + GuildRole guildRole = (GuildRole) obj; + if (channel.s() == null) { + return Boolean.TRUE; + } + for (int i = 0; i < channel.s().size(); i++) { + if (channel.s().get(i).e() == guildRole.getId()) { + return Boolean.FALSE; + } + } + return Boolean.TRUE; + } +} diff --git a/app/src/main/java/b/a/z/a/a/u.java b/app/src/main/java/b/a/z/a/a/u.java new file mode 100644 index 0000000000..b3ebd68c6d --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/u.java @@ -0,0 +1,25 @@ +package b.a.z.a.a; + +import com.discord.api.role.GuildRole; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsEditPermissions; +import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddRole; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: lambda */ +public final /* synthetic */ class u implements Function1 { + public final /* synthetic */ WidgetChannelSettingsPermissionsAddRole j; + public final /* synthetic */ WidgetChannelSettingsPermissionsAddRole.Model k; + + public /* synthetic */ u(WidgetChannelSettingsPermissionsAddRole widgetChannelSettingsPermissionsAddRole, WidgetChannelSettingsPermissionsAddRole.Model model) { + this.j = widgetChannelSettingsPermissionsAddRole; + this.k = model; + } + + @Override // kotlin.jvm.functions.Function1 + public final Object invoke(Object obj) { + WidgetChannelSettingsPermissionsAddRole widgetChannelSettingsPermissionsAddRole = this.j; + WidgetChannelSettingsPermissionsAddRole.Model model = this.k; + WidgetChannelSettingsEditPermissions.createForRole(widgetChannelSettingsPermissionsAddRole.getContext(), WidgetChannelSettingsPermissionsAddRole.Model.access$200(model).f(), WidgetChannelSettingsPermissionsAddRole.Model.access$200(model).h(), ((GuildRole) obj).getId()); + return Unit.a; + } +} diff --git a/app/src/main/java/b/a/z/a/a/v.java b/app/src/main/java/b/a/z/a/a/v.java new file mode 100644 index 0000000000..534ac0f061 --- /dev/null +++ b/app/src/main/java/b/a/z/a/a/v.java @@ -0,0 +1,14 @@ +package b.a.z.a.a; + +import com.discord.api.role.GuildRole; +import com.discord.widgets.channels.SimpleRolesAdapter; +import j0.k.b; +/* compiled from: lambda */ +public final /* synthetic */ class v implements b { + public static final /* synthetic */ v j = new v(); + + @Override // j0.k.b + public final Object call(Object obj) { + return new SimpleRolesAdapter.RoleItem((GuildRole) obj); + } +} diff --git a/app/src/main/java/b/b/a/a/a.java b/app/src/main/java/b/b/a/a/a.java new file mode 100644 index 0000000000..de36db2a9e --- /dev/null +++ b/app/src/main/java/b/b/a/a/a.java @@ -0,0 +1,485 @@ +package b.b.a.a; + +import android.annotation.SuppressLint; +import android.app.Dialog; +import android.content.ActivityNotFoundException; +import android.content.ClipData; +import android.content.ContentResolver; +import android.content.Context; +import android.content.Intent; +import android.content.res.ColorStateList; +import android.graphics.drawable.Drawable; +import android.net.Uri; +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.view.Window; +import android.view.animation.Animation; +import android.view.animation.AnimationUtils; +import android.widget.ImageView; +import android.widget.Toast; +import androidx.appcompat.app.AppCompatDialog; +import androidx.appcompat.app.AppCompatDialogFragment; +import androidx.appcompat.content.res.AppCompatResources; +import androidx.core.graphics.drawable.DrawableCompat; +import androidx.core.view.AccessibilityDelegateCompat; +import androidx.core.view.ViewCompat; +import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import androidx.fragment.app.FragmentTransaction; +import androidx.viewpager.widget.ViewPager; +import b.b.a.d.d; +import com.discord.utilities.color.ColorCompat; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.google.android.material.tabs.TabLayout; +import com.lytefast.flexinput.R; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import com.lytefast.flexinput.model.Attachment; +import com.lytefast.flexinput.utils.SelectionAggregator; +import com.lytefast.flexinput.utils.SelectionCoordinator; +import com.lytefast.flexinput.viewmodel.FlexInputViewModel; +import d0.t.c0; +import d0.z.d.m; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.Objects; +import kotlin.UninitializedPropertyAccessException; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import kotlin.ranges.IntRange; +/* compiled from: AddContentDialogFragment.kt */ +public class a extends AppCompatDialogFragment { + public static final /* synthetic */ int j = 0; + public ViewPager k; + public TabLayout l; + public FloatingActionButton m; + public ImageView n; + public SelectionAggregator> o; + public Function1 p; + public ViewPager.OnPageChangeListener q; + public final c r = new c(this); + + /* compiled from: java-style lambda group */ + /* renamed from: b.b.a.a.a$a reason: collision with other inner class name */ + public static final class View$OnClickListenerC0049a implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ Object k; + + public View$OnClickListenerC0049a(int i, Object obj) { + this.j = i; + this.k = obj; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + int i = this.j; + if (i == 0) { + a aVar = (a) this.k; + int i2 = a.j; + if (aVar.isCancelable()) { + aVar.h(true); + } + } else if (i == 1) { + a aVar2 = (a) this.k; + Objects.requireNonNull(aVar2); + Intent intent = new Intent("android.intent.action.OPEN_DOCUMENT"); + intent.setType("*/*"); + intent.addCategory("android.intent.category.OPENABLE"); + intent.putExtra("android.intent.extra.ALLOW_MULTIPLE", true); + try { + aVar2.startActivityForResult(intent, 5968); + } catch (ActivityNotFoundException unused) { + Toast.makeText(aVar2.getContext(), aVar2.getString(R.h.error_generic_title), 0).show(); + } + } else if (i == 2) { + FlexInputFragment flexInputFragment = (FlexInputFragment) ((Fragment) this.k); + FlexInputViewModel flexInputViewModel = flexInputFragment.f3124s; + if (flexInputViewModel != null) { + flexInputViewModel.onSendButtonClicked(flexInputFragment.o); + } + } else { + throw null; + } + } + } + + /* compiled from: AddContentDialogFragment.kt */ + public static final class b implements Animation.AnimationListener { + public final /* synthetic */ a j; + public final /* synthetic */ boolean k; + + public b(a aVar, boolean z2) { + this.j = aVar; + this.k = z2; + } + + @Override // android.view.animation.Animation.AnimationListener + public void onAnimationEnd(Animation animation) { + View view; + Function1 function1; + m.checkNotNullParameter(animation, "animation"); + this.j.dismissAllowingStateLoss(); + if (this.k && (view = this.j.getView()) != null && (function1 = this.j.p) != null) { + m.checkNotNullExpressionValue(view, "it"); + function1.invoke(view); + } + } + + @Override // android.view.animation.Animation.AnimationListener + public void onAnimationRepeat(Animation animation) { + m.checkNotNullParameter(animation, "animation"); + } + + @Override // android.view.animation.Animation.AnimationListener + public void onAnimationStart(Animation animation) { + m.checkNotNullParameter(animation, "animation"); + } + } + + /* compiled from: AddContentDialogFragment.kt */ + public static final class c implements SelectionCoordinator.ItemSelectionListener> { + public final /* synthetic */ a a; + + public c(a aVar) { + this.a = aVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void onItemSelected(Attachment attachment) { + m.checkNotNullParameter(attachment, "item"); + a.g(this.a); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void onItemUnselected(Attachment attachment) { + m.checkNotNullParameter(attachment, "item"); + a.g(this.a); + } + + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void unregister() { + } + } + + /* compiled from: AddContentDialogFragment.kt */ + public static final class d extends AppCompatDialog { + public d(a aVar, Context context, int i) { + super(context, i); + } + + @Override // android.app.Dialog + public void show() { + super.show(); + Window window = getWindow(); + if (window != null) { + window.setLayout(-1, -1); + } + } + } + + /* compiled from: AddContentDialogFragment.kt */ + public static final class e extends o implements Function0 { + public final /* synthetic */ Fragment $flexInputFragment; + public final /* synthetic */ a this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(a aVar, Fragment fragment) { + super(0); + this.this$0 = aVar; + this.$flexInputFragment = fragment; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + TabLayout tabLayout; + TabLayout.Tab tabAt; + FragmentManager childFragmentManager = this.this$0.getChildFragmentManager(); + m.checkNotNullExpressionValue(childFragmentManager, "childFragmentManager"); + d.a[] k = ((FlexInputFragment) this.$flexInputFragment).k(); + b.b.a.d.d dVar = new b.b.a.d.d(childFragmentManager, (d.a[]) Arrays.copyOf(k, k.length)); + a aVar = this.this$0; + Objects.requireNonNull(aVar); + m.checkNotNullParameter(dVar, "pagerAdapter"); + Context context = aVar.getContext(); + if (!(context == null || (tabLayout = aVar.l) == null)) { + m.checkNotNullExpressionValue(context, "context"); + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(tabLayout, "tabLayout"); + ColorStateList colorStateList = AppCompatResources.getColorStateList(context, R.c.tab_color_selector); + int tabCount = tabLayout.getTabCount(); + for (int i = 0; i < tabCount; i++) { + TabLayout.Tab tabAt2 = tabLayout.getTabAt(i); + if (tabAt2 != null) { + m.checkNotNullExpressionValue(colorStateList, "iconColors"); + Drawable icon = tabAt2.getIcon(); + if (icon != null) { + Drawable wrap = DrawableCompat.wrap(icon); + DrawableCompat.setTintList(wrap, colorStateList); + tabAt2.setIcon(wrap); + } + } + } + d.a[] aVarArr = dVar.a; + ArrayList arrayList = new ArrayList(aVarArr.length); + for (d.a aVar2 : aVarArr) { + TabLayout.Tab icon2 = tabLayout.newTab().setIcon(aVar2.getIcon()); + m.checkNotNullExpressionValue(icon2, "tabLayout.newTab()\n .setIcon(it.icon)"); + m.checkNotNullExpressionValue(colorStateList, "iconColors"); + Drawable icon3 = icon2.getIcon(); + if (icon3 != null) { + Drawable wrap2 = DrawableCompat.wrap(icon3); + DrawableCompat.setTintList(wrap2, colorStateList); + icon2.setIcon(wrap2); + } + arrayList.add(icon2.setContentDescription(aVar2.getContentDesc())); + } + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + tabLayout.addTab((TabLayout.Tab) it.next()); + } + ViewPager viewPager = aVar.k; + if (viewPager != null) { + viewPager.setAdapter(dVar); + } + TabLayout tabLayout2 = aVar.l; + if (tabLayout2 != null) { + tabLayout2.addOnTabSelectedListener((TabLayout.OnTabSelectedListener) new b(aVar)); + } + ViewPager viewPager2 = aVar.k; + if (viewPager2 != null) { + viewPager2.addOnPageChangeListener(new c(aVar)); + } + TabLayout tabLayout3 = aVar.l; + if (!(tabLayout3 == null || (tabAt = tabLayout3.getTabAt(0)) == null)) { + tabAt.select(); + } + } + return Unit.a; + } + } + + /* compiled from: AddContentDialogFragment.kt */ + public static final class f extends AccessibilityDelegateCompat { + public final /* synthetic */ a a; + + public f(a aVar) { + this.a = aVar; + } + + @Override // androidx.core.view.AccessibilityDelegateCompat + public void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) { + m.checkNotNullParameter(view, "host"); + m.checkNotNullParameter(accessibilityNodeInfoCompat, "info"); + ImageView imageView = this.a.n; + Objects.requireNonNull(imageView, "null cannot be cast to non-null type android.view.View"); + accessibilityNodeInfoCompat.setTraversalAfter(imageView); + super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat); + } + } + + /* compiled from: AddContentDialogFragment.kt */ + public static final class g implements Runnable { + public final /* synthetic */ a j; + + public g(a aVar) { + this.j = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + a.g(this.j); + } + } + + public static final void g(a aVar) { + FloatingActionButton floatingActionButton = aVar.m; + if (floatingActionButton != null) { + floatingActionButton.post(new d(aVar)); + } + } + + public final void h(boolean z2) { + Context context = getContext(); + if (context != null) { + m.checkNotNullExpressionValue(context, "context ?: return dismissAllowingStateLoss()"); + Animation loadAnimation = AnimationUtils.loadAnimation(context, com.google.android.material.R.anim.design_bottom_sheet_slide_out); + m.checkNotNullExpressionValue(loadAnimation, "animation"); + loadAnimation.setDuration((long) getResources().getInteger(com.google.android.material.R.integer.bottom_sheet_slide_duration)); + loadAnimation.setInterpolator(context, 17432580); + FloatingActionButton floatingActionButton = this.m; + if (floatingActionButton != null) { + floatingActionButton.hide(); + } + TabLayout tabLayout = this.l; + if (tabLayout != null) { + tabLayout.startAnimation(loadAnimation); + } + ViewPager viewPager = this.k; + if (viewPager != null) { + viewPager.startAnimation(loadAnimation); + } + ImageView imageView = this.n; + if (imageView != null) { + imageView.startAnimation(loadAnimation); + } + loadAnimation.setAnimationListener(new b(this, z2)); + return; + } + dismissAllowingStateLoss(); + } + + @Override // androidx.fragment.app.Fragment + public void onActivityResult(int i, int i2, Intent intent) { + ContentResolver contentResolver; + super.onActivityResult(i, i2, intent); + if (5968 == i && i2 != 0) { + if (-1 != i2 || intent == null) { + Toast.makeText(getContext(), "Error loading files", 0).show(); + return; + } + Context context = getContext(); + if (!(context == null || (contentResolver = context.getContentResolver()) == null)) { + ClipData clipData = intent.getClipData(); + Fragment parentFragment = getParentFragment(); + Objects.requireNonNull(parentFragment, "null cannot be cast to non-null type com.lytefast.flexinput.FlexInputCoordinator"); + b.b.a.b bVar = (b.b.a.b) parentFragment; + if (clipData == null) { + Uri data = intent.getData(); + if (data != null) { + bVar.f(Attachment.Companion.b(data, contentResolver)); + return; + } + return; + } + IntRange until = d0.d0.f.until(0, clipData.getItemCount()); + ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(until, 10)); + Iterator it = until.iterator(); + while (it.hasNext()) { + ClipData.Item itemAt = clipData.getItemAt(((c0) it).nextInt()); + m.checkNotNullExpressionValue(itemAt, "clipData.getItemAt(it)"); + arrayList.add(itemAt.getUri()); + } + for (Uri uri : arrayList) { + Attachment.Companion companion = Attachment.Companion; + m.checkNotNullExpressionValue(uri, "it"); + bVar.f(companion.b(uri, contentResolver)); + } + } + } + } + + @Override // androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.DialogFragment + @SuppressLint({"PrivateResource"}) + public Dialog onCreateDialog(Bundle bundle) { + d dVar = new d(this, getContext(), R.i.FlexInput_DialogWhenLarge); + dVar.supportRequestWindowFeature(1); + Window window = dVar.getWindow(); + if (window != null) { + window.setWindowAnimations(com.google.android.material.R.style.Animation_AppCompat_Dialog); + window.setBackgroundDrawableResource(17170445); + } + return dVar; + } + + @Override // androidx.fragment.app.Fragment + public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { + m.checkNotNullParameter(layoutInflater, "inflater"); + View inflate = layoutInflater.inflate(R.g.dialog_add_content_pager_with_fab, viewGroup, false); + if (inflate != null) { + inflate.setOnClickListener(new View$OnClickListenerC0049a(0, this)); + this.k = (ViewPager) inflate.findViewById(R.f.content_pager); + this.l = (TabLayout) inflate.findViewById(R.f.content_tabs); + this.m = (FloatingActionButton) inflate.findViewById(R.f.action_btn); + ImageView imageView = (ImageView) inflate.findViewById(R.f.launch_btn); + this.n = imageView; + if (imageView != null) { + imageView.setOnClickListener(new View$OnClickListenerC0049a(1, this)); + } + FloatingActionButton floatingActionButton = this.m; + Objects.requireNonNull(floatingActionButton, "null cannot be cast to non-null type com.google.android.material.floatingactionbutton.FloatingActionButton"); + floatingActionButton.setBackgroundTintList(ColorStateList.valueOf(ColorCompat.getThemedColor(inflate.getContext(), R.b.color_brand_500))); + } + Fragment parentFragment = getParentFragment(); + if (parentFragment instanceof FlexInputFragment) { + FlexInputFragment flexInputFragment = (FlexInputFragment) parentFragment; + e eVar = new e(this, parentFragment); + Objects.requireNonNull(flexInputFragment); + m.checkNotNullParameter(eVar, "onContentPagesInitialized"); + try { + flexInputFragment.k(); + eVar.mo1invoke(); + } catch (UninitializedPropertyAccessException unused) { + flexInputFragment.f3125x.add(eVar); + } + FloatingActionButton floatingActionButton2 = this.m; + if (floatingActionButton2 != null) { + floatingActionButton2.setOnClickListener(new View$OnClickListenerC0049a(2, parentFragment)); + } + this.o = flexInputFragment.b().addItemSelectionListener(this.r); + FloatingActionButton floatingActionButton3 = this.m; + Objects.requireNonNull(floatingActionButton3, "null cannot be cast to non-null type android.view.View"); + ViewCompat.setAccessibilityDelegate(floatingActionButton3, new f(this)); + } + return inflate; + } + + @Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment + public void onDestroyView() { + SelectionAggregator> selectionAggregator = this.o; + if (selectionAggregator != null) { + selectionAggregator.removeItemSelectionListener(this.r); + } + super.onDestroyView(); + } + + @Override // androidx.fragment.app.Fragment + public void onResume() { + super.onResume(); + FloatingActionButton floatingActionButton = this.m; + if (floatingActionButton != null) { + floatingActionButton.post(new g(this)); + } + } + + @Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment + public void onStart() { + super.onStart(); + Context context = getContext(); + if (context != null) { + m.checkNotNullExpressionValue(context, "it"); + Animation loadAnimation = AnimationUtils.loadAnimation(context, com.google.android.material.R.anim.design_bottom_sheet_slide_in); + m.checkNotNullExpressionValue(loadAnimation, "animation"); + loadAnimation.setDuration((long) getResources().getInteger(com.google.android.material.R.integer.bottom_sheet_slide_duration)); + loadAnimation.setInterpolator(context, 17432580); + TabLayout tabLayout = this.l; + if (tabLayout != null) { + tabLayout.startAnimation(loadAnimation); + } + ViewPager viewPager = this.k; + if (viewPager != null) { + viewPager.startAnimation(loadAnimation); + } + ImageView imageView = this.n; + if (imageView != null) { + imageView.startAnimation(loadAnimation); + } + } + } + + @Override // androidx.fragment.app.DialogFragment + @SuppressLint({"PrivateResource"}) + public int show(FragmentTransaction fragmentTransaction, String str) { + m.checkNotNullParameter(fragmentTransaction, "transaction"); + fragmentTransaction.setCustomAnimations(com.google.android.material.R.anim.abc_grow_fade_in_from_bottom, com.google.android.material.R.anim.abc_shrink_fade_out_from_bottom); + return super.show(fragmentTransaction, str); + } +} diff --git a/app/src/main/java/b/b/a/a/b.java b/app/src/main/java/b/b/a/a/b.java new file mode 100644 index 0000000000..0e2261b7fb --- /dev/null +++ b/app/src/main/java/b/b/a/a/b.java @@ -0,0 +1,46 @@ +package b.b.a.a; + +import androidx.fragment.app.Fragment; +import androidx.viewpager.widget.ViewPager; +import com.google.android.material.tabs.TabLayout; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import com.lytefast.flexinput.viewmodel.FlexInputViewModel; +import d0.z.d.m; +/* compiled from: AddContentDialogFragment.kt */ +public final class b implements TabLayout.OnTabSelectedListener { + public final /* synthetic */ a a; + + public b(a aVar) { + this.a = aVar; + } + + @Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener + public void onTabReselected(TabLayout.Tab tab) { + m.checkNotNullParameter(tab, "tab"); + } + + @Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener + public void onTabSelected(TabLayout.Tab tab) { + FlexInputViewModel flexInputViewModel; + m.checkNotNullParameter(tab, "tab"); + int position = tab.getPosition(); + if (position == 3) { + this.a.h(false); + Fragment parentFragment = this.a.getParentFragment(); + if ((parentFragment instanceof FlexInputFragment) && (flexInputViewModel = ((FlexInputFragment) parentFragment).f3124s) != null) { + flexInputViewModel.onCreateThreadSelected(); + return; + } + return; + } + ViewPager viewPager = this.a.k; + if (viewPager != null) { + viewPager.setCurrentItem(position); + } + } + + @Override // com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener + public void onTabUnselected(TabLayout.Tab tab) { + m.checkNotNullParameter(tab, "tab"); + } +} diff --git a/app/src/main/java/b/b/a/a/c.java b/app/src/main/java/b/b/a/a/c.java new file mode 100644 index 0000000000..0261cc97c3 --- /dev/null +++ b/app/src/main/java/b/b/a/a/c.java @@ -0,0 +1,29 @@ +package b.b.a.a; + +import androidx.viewpager.widget.ViewPager; +import com.google.android.material.tabs.TabLayout; +/* compiled from: AddContentDialogFragment.kt */ +public final class c implements ViewPager.OnPageChangeListener { + public final /* synthetic */ a a; + + public c(a aVar) { + this.a = aVar; + } + + @Override // androidx.viewpager.widget.ViewPager.OnPageChangeListener + public void onPageScrollStateChanged(int i) { + } + + @Override // androidx.viewpager.widget.ViewPager.OnPageChangeListener + public void onPageScrolled(int i, float f, int i2) { + } + + @Override // androidx.viewpager.widget.ViewPager.OnPageChangeListener + public void onPageSelected(int i) { + TabLayout.Tab tabAt; + TabLayout tabLayout = this.a.l; + if (tabLayout != null && (tabAt = tabLayout.getTabAt(i)) != null) { + tabAt.select(); + } + } +} diff --git a/app/src/main/java/b/b/a/a/d.java b/app/src/main/java/b/b/a/a/d.java new file mode 100644 index 0000000000..8bbe338b5c --- /dev/null +++ b/app/src/main/java/b/b/a/a/d.java @@ -0,0 +1,30 @@ +package b.b.a.a; + +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.lytefast.flexinput.model.Attachment; +import com.lytefast.flexinput.utils.SelectionAggregator; +/* compiled from: AddContentDialogFragment.kt */ +public final class d implements Runnable { + public final /* synthetic */ a j; + + public d(a aVar) { + this.j = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + SelectionAggregator> selectionAggregator = this.j.o; + if ((selectionAggregator != null ? selectionAggregator.getSize() : 0) > 0) { + FloatingActionButton floatingActionButton = this.j.m; + if (floatingActionButton != null) { + floatingActionButton.show(); + return; + } + return; + } + FloatingActionButton floatingActionButton2 = this.j.m; + if (floatingActionButton2 != null) { + floatingActionButton2.hide(); + } + } +} diff --git a/app/src/main/java/b/b/a/a/e.java b/app/src/main/java/b/b/a/a/e.java new file mode 100644 index 0000000000..3641f1c18f --- /dev/null +++ b/app/src/main/java/b/b/a/a/e.java @@ -0,0 +1,18 @@ +package b.b.a.a; + +import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; +import d0.z.d.m; +import kotlin.jvm.functions.Function0; +/* compiled from: FilesFragment.kt */ +public final class e implements SwipeRefreshLayout.OnRefreshListener { + public final /* synthetic */ Function0 a; + + public e(Function0 function0) { + this.a = function0; + } + + @Override // androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnRefreshListener + public final /* synthetic */ void onRefresh() { + m.checkNotNullExpressionValue(this.a.mo1invoke(), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/b/a/a/f.java b/app/src/main/java/b/b/a/a/f.java new file mode 100644 index 0000000000..8bcafcbcae --- /dev/null +++ b/app/src/main/java/b/b/a/a/f.java @@ -0,0 +1,29 @@ +package b.b.a.a; + +import androidx.viewpager.widget.ViewPager; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import com.lytefast.flexinput.viewmodel.FlexInputViewModel; +/* compiled from: FlexInputFragment.kt */ +public final class f implements ViewPager.OnPageChangeListener { + public final /* synthetic */ FlexInputFragment a; + + public f(FlexInputFragment flexInputFragment) { + this.a = flexInputFragment; + } + + @Override // androidx.viewpager.widget.ViewPager.OnPageChangeListener + public void onPageScrollStateChanged(int i) { + } + + @Override // androidx.viewpager.widget.ViewPager.OnPageChangeListener + public void onPageScrolled(int i, float f, int i2) { + } + + @Override // androidx.viewpager.widget.ViewPager.OnPageChangeListener + public void onPageSelected(int i) { + FlexInputViewModel flexInputViewModel = this.a.f3124s; + if (flexInputViewModel != null) { + flexInputViewModel.onContentDialogPageChanged(i); + } + } +} diff --git a/app/src/main/java/b/b/a/a/g.java b/app/src/main/java/b/b/a/a/g.java new file mode 100644 index 0000000000..52c020b5a2 --- /dev/null +++ b/app/src/main/java/b/b/a/a/g.java @@ -0,0 +1,22 @@ +package b.b.a.a; + +import android.content.DialogInterface; +import b.i.a.f.e.o.f; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import com.lytefast.flexinput.viewmodel.FlexInputViewModel; +/* compiled from: FlexInputFragment.kt */ +public final class g implements DialogInterface.OnDismissListener { + public final /* synthetic */ FlexInputFragment j; + + public g(FlexInputFragment flexInputFragment) { + this.j = flexInputFragment; + } + + @Override // android.content.DialogInterface.OnDismissListener + public final void onDismiss(DialogInterface dialogInterface) { + FlexInputViewModel flexInputViewModel; + if (this.j.isAdded() && !this.j.isHidden() && (flexInputViewModel = this.j.f3124s) != null) { + f.M0(flexInputViewModel, false, 1, null); + } + } +} diff --git a/app/src/main/java/b/b/a/a/h.java b/app/src/main/java/b/b/a/a/h.java new file mode 100644 index 0000000000..fd2633161c --- /dev/null +++ b/app/src/main/java/b/b/a/a/h.java @@ -0,0 +1,32 @@ +package b.b.a.a; + +import android.view.View; +import b.i.a.f.e.o.f; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import com.lytefast.flexinput.viewmodel.FlexInputViewModel; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: FlexInputFragment.kt */ +public final class h extends o implements Function1 { + public final /* synthetic */ FlexInputFragment this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(FlexInputFragment flexInputFragment) { + super(1); + this.this$0 = flexInputFragment; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(View view) { + m.checkNotNullParameter(view, "it"); + FlexInputViewModel flexInputViewModel = this.this$0.f3124s; + if (flexInputViewModel != null) { + f.M0(flexInputViewModel, false, 1, null); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/b/a/a/i.java b/app/src/main/java/b/b/a/a/i.java new file mode 100644 index 0000000000..6d90e6cb8a --- /dev/null +++ b/app/src/main/java/b/b/a/a/i.java @@ -0,0 +1,24 @@ +package b.b.a.a; + +import android.view.View; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import com.lytefast.flexinput.viewmodel.FlexInputViewModel; +import d0.z.d.m; +/* compiled from: FlexInputFragment.kt */ +public final class i implements View.OnLongClickListener { + public final /* synthetic */ FlexInputFragment j; + + public i(FlexInputFragment flexInputFragment) { + this.j = flexInputFragment; + } + + @Override // android.view.View.OnLongClickListener + public final boolean onLongClick(View view) { + FlexInputViewModel flexInputViewModel = this.j.f3124s; + if (flexInputViewModel == null) { + return false; + } + m.checkNotNullExpressionValue(view, "it"); + return flexInputViewModel.onToolTipButtonLongPressed(view); + } +} diff --git a/app/src/main/java/b/b/a/a/j.java b/app/src/main/java/b/b/a/a/j.java new file mode 100644 index 0000000000..75ec7fb0d2 --- /dev/null +++ b/app/src/main/java/b/b/a/a/j.java @@ -0,0 +1,29 @@ +package b.b.a.a; + +import android.util.Log; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: FlexInputFragment.kt */ +public final class j extends o implements Function1 { + public final /* synthetic */ FlexInputFragment this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j(FlexInputFragment flexInputFragment) { + super(1); + this.this$0 = flexInputFragment; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Integer num) { + try { + FlexInputFragment.g(this.this$0, num.intValue()); + } catch (Exception e) { + Log.d(FlexInputFragment.k, "Could not open AddContentDialogFragment", e); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/b/a/a/k.java b/app/src/main/java/b/b/a/a/k.java new file mode 100644 index 0000000000..4767ccc82b --- /dev/null +++ b/app/src/main/java/b/b/a/a/k.java @@ -0,0 +1,53 @@ +package b.b.a.a; + +import android.widget.FrameLayout; +import android.widget.ImageView; +import androidx.appcompat.widget.AppCompatImageButton; +import com.lytefast.flexinput.R; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.jvm.functions.Function1; +import kotlin.reflect.KProperty; +/* compiled from: FlexInputFragment.kt */ +public final class k extends o implements Function1 { + public final /* synthetic */ FlexInputFragment this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(FlexInputFragment flexInputFragment) { + super(1); + this.this$0 = flexInputFragment; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Boolean invoke(Boolean bool) { + invoke(bool.booleanValue()); + return Boolean.TRUE; + } + + public final boolean invoke(boolean z2) { + FlexInputFragment flexInputFragment = this.this$0; + KProperty[] kPropertyArr = FlexInputFragment.j; + FrameLayout frameLayout = flexInputFragment.j().k; + m.checkNotNullExpressionValue(frameLayout, "binding.expressionTrayContainer"); + int i = 8; + frameLayout.setVisibility(8); + FlexInputFragment.h(this.this$0, false); + ImageView imageView = this.this$0.j().j; + m.checkNotNullExpressionValue(imageView, "binding.expressionBtnBadge"); + if (z2) { + i = 0; + } + imageView.setVisibility(i); + this.this$0.j().i.setImageResource(z2 ? R.e.ic_expression_icon_cutout_24dp : R.e.ic_emoji_24dp); + AppCompatImageButton appCompatImageButton = this.this$0.j().i; + m.checkNotNullExpressionValue(appCompatImageButton, "binding.expressionBtn"); + appCompatImageButton.setContentDescription(this.this$0.getString(R.h.toggle_emoji_keyboard)); + FrameLayout frameLayout2 = this.this$0.j().g; + m.checkNotNullExpressionValue(frameLayout2, "binding.defaultWindowInsetsHandler"); + frameLayout2.setVisibility(0); + return true; + } +} diff --git a/app/src/main/java/b/b/a/a/l.java b/app/src/main/java/b/b/a/a/l.java new file mode 100644 index 0000000000..151bfa82f5 --- /dev/null +++ b/app/src/main/java/b/b/a/a/l.java @@ -0,0 +1,63 @@ +package b.b.a.a; + +import android.widget.FrameLayout; +import android.widget.ImageView; +import androidx.appcompat.widget.AppCompatImageButton; +import com.lytefast.flexinput.R; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import d0.z.d.m; +import d0.z.d.o; +import java.util.concurrent.TimeUnit; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.reflect.KProperty; +import rx.Observable; +import rx.functions.Action1; +/* compiled from: FlexInputFragment.kt */ +public final class l extends o implements Function0 { + public final /* synthetic */ FlexInputFragment this$0; + + /* compiled from: FlexInputFragment.kt */ + public static final class a implements Action1 { + public final /* synthetic */ l j; + + public a(l lVar) { + this.j = lVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // rx.functions.Action1 + public void call(Long l) { + FlexInputFragment flexInputFragment = this.j.this$0; + KProperty[] kPropertyArr = FlexInputFragment.j; + if (flexInputFragment.m()) { + FrameLayout frameLayout = this.j.this$0.j().k; + m.checkNotNullExpressionValue(frameLayout, "binding.expressionTrayContainer"); + frameLayout.setVisibility(0); + FlexInputFragment.h(this.j.this$0, true); + this.j.this$0.j().i.setImageResource(R.e.ic_keyboard_24dp); + ImageView imageView = this.j.this$0.j().j; + m.checkNotNullExpressionValue(imageView, "binding.expressionBtnBadge"); + imageView.setVisibility(8); + AppCompatImageButton appCompatImageButton = this.j.this$0.j().i; + m.checkNotNullExpressionValue(appCompatImageButton, "binding.expressionBtn"); + appCompatImageButton.setContentDescription(this.j.this$0.getString(R.h.show_keyboard)); + FrameLayout frameLayout2 = this.j.this$0.j().g; + m.checkNotNullExpressionValue(frameLayout2, "binding.defaultWindowInsetsHandler"); + frameLayout2.setVisibility(8); + } + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(FlexInputFragment flexInputFragment) { + super(0); + this.this$0 = flexInputFragment; + } + + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final void mo1invoke() { + this.this$0.v = Observable.d0(300, TimeUnit.MILLISECONDS).I(j0.j.b.a.a()).V(new a(this)); + } +} diff --git a/app/src/main/java/b/b/a/a/m.java b/app/src/main/java/b/b/a/a/m.java new file mode 100644 index 0000000000..468d6a8b93 --- /dev/null +++ b/app/src/main/java/b/b/a/a/m.java @@ -0,0 +1,40 @@ +package b.b.a.a; + +import com.lytefast.flexinput.fragment.FlexInputFragment; +import com.lytefast.flexinput.model.Attachment; +import com.lytefast.flexinput.utils.SelectionCoordinator; +import com.lytefast.flexinput.viewmodel.FlexInputViewModel; +/* compiled from: FlexInputFragment.kt */ +public final class m implements SelectionCoordinator.ItemSelectionListener> { + public final /* synthetic */ FlexInputFragment a; + + public m(FlexInputFragment flexInputFragment) { + this.a = flexInputFragment; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void onItemSelected(Attachment attachment) { + d0.z.d.m.checkNotNullParameter(attachment, "item"); + FlexInputFragment flexInputFragment = this.a; + FlexInputViewModel flexInputViewModel = flexInputFragment.f3124s; + if (flexInputViewModel != null) { + flexInputViewModel.onAttachmentsUpdated(flexInputFragment.b().getAttachments()); + } + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void onItemUnselected(Attachment attachment) { + d0.z.d.m.checkNotNullParameter(attachment, "item"); + FlexInputFragment flexInputFragment = this.a; + FlexInputViewModel flexInputViewModel = flexInputFragment.f3124s; + if (flexInputViewModel != null) { + flexInputViewModel.onAttachmentsUpdated(flexInputFragment.b().getAttachments()); + } + } + + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void unregister() { + } +} diff --git a/app/src/main/java/b/b/a/a/n.java b/app/src/main/java/b/b/a/a/n.java new file mode 100644 index 0000000000..b094cad83d --- /dev/null +++ b/app/src/main/java/b/b/a/a/n.java @@ -0,0 +1,18 @@ +package b.b.a.a; + +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +import rx.functions.Action1; +/* compiled from: FlexInputFragment.kt */ +public final class n implements Action1 { + public final /* synthetic */ Function1 j; + + public n(Function1 function1) { + this.j = function1; + } + + @Override // rx.functions.Action1 + public final /* synthetic */ void call(Object obj) { + m.checkNotNullExpressionValue(this.j.invoke(obj), "invoke(...)"); + } +} diff --git a/app/src/main/java/b/b/a/a/o.java b/app/src/main/java/b/b/a/a/o.java new file mode 100644 index 0000000000..ac0bf60c69 --- /dev/null +++ b/app/src/main/java/b/b/a/a/o.java @@ -0,0 +1,18 @@ +package b.b.a.a; + +import android.view.View; +import androidx.core.view.OnApplyWindowInsetsListener; +import androidx.core.view.WindowInsetsCompat; +import d0.z.d.m; +/* compiled from: FlexInputFragment.kt */ +public final class o implements OnApplyWindowInsetsListener { + public static final o a = new o(); + + @Override // androidx.core.view.OnApplyWindowInsetsListener + public final WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat windowInsetsCompat) { + m.checkNotNullParameter(view, "view"); + m.checkNotNullParameter(windowInsetsCompat, "insets"); + view.setPadding(view.getPaddingLeft(), view.getPaddingTop(), view.getPaddingRight(), windowInsetsCompat.getSystemWindowInsetBottom()); + return windowInsetsCompat.consumeSystemWindowInsets(); + } +} diff --git a/app/src/main/java/b/b/a/a/p.java b/app/src/main/java/b/b/a/a/p.java new file mode 100644 index 0000000000..8ffdb35cdf --- /dev/null +++ b/app/src/main/java/b/b/a/a/p.java @@ -0,0 +1,28 @@ +package b.b.a.a; + +import android.view.View; +import androidx.core.view.OnApplyWindowInsetsListener; +import androidx.core.view.ViewCompat; +import androidx.core.view.WindowInsetsCompat; +import com.lytefast.flexinput.fragment.FlexInputFragment; +import d0.z.d.m; +import kotlin.reflect.KProperty; +/* compiled from: FlexInputFragment.kt */ +public final class p implements OnApplyWindowInsetsListener { + public final /* synthetic */ FlexInputFragment a; + + public p(FlexInputFragment flexInputFragment) { + this.a = flexInputFragment; + } + + @Override // androidx.core.view.OnApplyWindowInsetsListener + public final WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat windowInsetsCompat) { + m.checkNotNullParameter(view, ""); + m.checkNotNullParameter(windowInsetsCompat, "insets"); + FlexInputFragment flexInputFragment = this.a; + KProperty[] kPropertyArr = FlexInputFragment.j; + ViewCompat.dispatchApplyWindowInsets(flexInputFragment.j().g, windowInsetsCompat); + ViewCompat.dispatchApplyWindowInsets(this.a.j().k, windowInsetsCompat); + return windowInsetsCompat.consumeSystemWindowInsets(); + } +} diff --git a/app/src/main/java/b/b/a/b.java b/app/src/main/java/b/b/a/b.java new file mode 100644 index 0000000000..834c9f8535 --- /dev/null +++ b/app/src/main/java/b/b/a/b.java @@ -0,0 +1,19 @@ +package b.b.a; + +import com.lytefast.flexinput.managers.FileManager; +import com.lytefast.flexinput.model.Attachment; +import com.lytefast.flexinput.utils.SelectionAggregator; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: FlexInputCoordinator.kt */ +public interface b { + SelectionAggregator> b(); + + void f(Attachment attachment); + + FileManager getFileManager(); + + boolean hasMediaPermissions(); + + void requestMediaPermissions(Function0 function0); +} diff --git a/app/src/main/java/b/b/a/c.java b/app/src/main/java/b/b/a/c.java new file mode 100644 index 0000000000..72d9edf9ca --- /dev/null +++ b/app/src/main/java/b/b/a/c.java @@ -0,0 +1,5 @@ +package b.b.a; +/* compiled from: FlexInputExpressionTrayStateChangeListener.kt */ +public interface c { + void isShown(boolean z2); +} diff --git a/app/src/main/java/b/b/a/d/a.java b/app/src/main/java/b/b/a/d/a.java new file mode 100644 index 0000000000..56568236c9 --- /dev/null +++ b/app/src/main/java/b/b/a/d/a.java @@ -0,0 +1,17 @@ +package b.b.a.d; + +import android.content.Context; +import androidx.fragment.app.Fragment; +import b.b.a.d.d; +import com.lytefast.flexinput.fragment.MediaFragment; +/* compiled from: AddContentPagerAdapter.kt */ +public final class a extends d.a { + public a(Context context, int i, int i2) { + super(i, i2); + } + + @Override // b.b.a.d.d.a + public Fragment createFragment() { + return new MediaFragment(); + } +} diff --git a/app/src/main/java/b/b/a/d/b.java b/app/src/main/java/b/b/a/d/b.java new file mode 100644 index 0000000000..6cb8a8837a --- /dev/null +++ b/app/src/main/java/b/b/a/d/b.java @@ -0,0 +1,17 @@ +package b.b.a.d; + +import android.content.Context; +import androidx.fragment.app.Fragment; +import b.b.a.d.d; +import com.lytefast.flexinput.fragment.FilesFragment; +/* compiled from: AddContentPagerAdapter.kt */ +public final class b extends d.a { + public b(Context context, int i, int i2) { + super(i, i2); + } + + @Override // b.b.a.d.d.a + public Fragment createFragment() { + return new FilesFragment(); + } +} diff --git a/app/src/main/java/b/b/a/d/c.java b/app/src/main/java/b/b/a/d/c.java new file mode 100644 index 0000000000..ae8b1ad0f4 --- /dev/null +++ b/app/src/main/java/b/b/a/d/c.java @@ -0,0 +1,17 @@ +package b.b.a.d; + +import android.content.Context; +import androidx.fragment.app.Fragment; +import b.b.a.d.d; +import com.lytefast.flexinput.fragment.CameraFragment; +/* compiled from: AddContentPagerAdapter.kt */ +public final class c extends d.a { + public c(Context context, int i, int i2) { + super(i, i2); + } + + @Override // b.b.a.d.d.a + public Fragment createFragment() { + return new CameraFragment(); + } +} diff --git a/app/src/main/java/b/b/a/d/d.java b/app/src/main/java/b/b/a/d/d.java new file mode 100644 index 0000000000..42bff7e7c7 --- /dev/null +++ b/app/src/main/java/b/b/a/d/d.java @@ -0,0 +1,51 @@ +package b.b.a.d; + +import androidx.annotation.DrawableRes; +import androidx.annotation.StringRes; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; +import androidx.fragment.app.FragmentStatePagerAdapter; +import d0.z.d.m; +/* compiled from: AddContentPagerAdapter.kt */ +public final class d extends FragmentStatePagerAdapter { + public final a[] a; + + /* compiled from: AddContentPagerAdapter.kt */ + public static abstract class a { + private final int contentDesc; + private final int icon; + + public a(@DrawableRes int i, @StringRes int i2) { + this.icon = i; + this.contentDesc = i2; + } + + public abstract Fragment createFragment(); + + public final int getContentDesc() { + return this.contentDesc; + } + + public final int getIcon() { + return this.icon; + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(FragmentManager fragmentManager, a... aVarArr) { + super(fragmentManager, 1); + m.checkNotNullParameter(fragmentManager, "childFragmentManager"); + m.checkNotNullParameter(aVarArr, "pageSuppliers"); + this.a = aVarArr; + } + + @Override // androidx.viewpager.widget.PagerAdapter + public int getCount() { + return this.a.length; + } + + @Override // androidx.fragment.app.FragmentStatePagerAdapter + public Fragment getItem(int i) { + return this.a[i].createFragment(); + } +} diff --git a/app/src/main/java/b/b/a/d/e.java b/app/src/main/java/b/b/a/d/e.java new file mode 100644 index 0000000000..b56af551e8 --- /dev/null +++ b/app/src/main/java/b/b/a/d/e.java @@ -0,0 +1,11 @@ +package b.b.a.d; + +import d0.u.a; +import java.util.Comparator; +/* compiled from: Comparisons.kt */ +public final class e implements Comparator { + @Override // java.util.Comparator + public final int compare(T t, T t2) { + return a.compareValues(t.getUri(), t2.getUri()); + } +} diff --git a/app/src/main/java/b/b/a/d/f.java b/app/src/main/java/b/b/a/d/f.java new file mode 100644 index 0000000000..fbd48d63bc --- /dev/null +++ b/app/src/main/java/b/b/a/d/f.java @@ -0,0 +1,29 @@ +package b.b.a.d; + +import com.lytefast.flexinput.adapters.FileListAdapter; +import d0.u.a; +import java.io.File; +import java.util.Comparator; +import java.util.Objects; +/* compiled from: Comparisons.kt */ +public final class f implements Comparator { + public final /* synthetic */ FileListAdapter.a j; + + public f(FileListAdapter.a aVar) { + this.j = aVar; + } + + @Override // java.util.Comparator + public final int compare(T t, T t2) { + Objects.requireNonNull(this.j); + File file = (File) t2.getData(); + long j = 0; + Long valueOf = Long.valueOf(file != null ? file.lastModified() : 0); + Objects.requireNonNull(this.j); + File file2 = (File) t.getData(); + if (file2 != null) { + j = file2.lastModified(); + } + return a.compareValues(valueOf, Long.valueOf(j)); + } +} diff --git a/app/src/main/java/b/b/a/d/g.java b/app/src/main/java/b/b/a/d/g.java new file mode 100644 index 0000000000..f30742036d --- /dev/null +++ b/app/src/main/java/b/b/a/d/g.java @@ -0,0 +1,25 @@ +package b.b.a.d; + +import d0.f0.n; +import d0.t.k; +import d0.z.d.m; +import d0.z.d.o; +import java.io.File; +import kotlin.jvm.functions.Function1; +import kotlin.sequences.Sequence; +/* compiled from: FileListAdapter.kt */ +public final class g extends o implements Function1> { + public static final g j = new g(); + + public g() { + super(1); + } + + /* renamed from: a */ + public final Sequence invoke(File file) { + Sequence asSequence; + m.checkNotNullParameter(file, "$this$getFileList"); + File[] listFiles = file.listFiles(); + return (listFiles == null || (asSequence = k.asSequence(listFiles)) == null) ? n.emptySequence() : asSequence; + } +} diff --git a/app/src/main/java/b/b/a/d/h.java b/app/src/main/java/b/b/a/d/h.java new file mode 100644 index 0000000000..3487f0c3ad --- /dev/null +++ b/app/src/main/java/b/b/a/d/h.java @@ -0,0 +1,379 @@ +package b.b.a.d; + +import android.animation.Animator; +import android.animation.AnimatorInflater; +import android.animation.AnimatorSet; +import android.content.AsyncQueryHandler; +import android.content.ContentResolver; +import android.content.Context; +import android.database.Cursor; +import android.graphics.drawable.Drawable; +import android.net.Uri; +import android.os.Build; +import android.provider.MediaStore; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.FrameLayout; +import android.widget.TextView; +import androidx.recyclerview.widget.RecyclerView; +import b.b.a.e.c; +import com.discord.utilities.time.TimeUtils; +import com.facebook.drawee.view.SimpleDraweeView; +import com.lytefast.flexinput.R; +import com.lytefast.flexinput.model.Media; +import com.lytefast.flexinput.utils.SelectionCoordinator; +import d0.z.d.m; +import d0.z.d.o; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: MediaCursorAdapter.kt */ +public final class h extends RecyclerView.Adapter { + public final SelectionCoordinator a; + + /* renamed from: b reason: collision with root package name */ + public Cursor f309b; + public int c; + public int d; + public int e; + public int f; + public Integer g; + public final int h; + public final int i; + + /* compiled from: MediaCursorAdapter.kt */ + public final class a extends i implements View.OnClickListener { + public Media p; + public final AnimatorSet q; + public final AnimatorSet r; + + /* renamed from: s reason: collision with root package name */ + public final c f310s; + public final /* synthetic */ h t; + + /* compiled from: MediaCursorAdapter.kt */ + /* renamed from: b.b.a.d.h$a$a reason: collision with other inner class name */ + public static final class C0050a extends o implements Function1 { + public final /* synthetic */ boolean $isAnimationRequested; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public C0050a(boolean z2) { + super(1); + this.$isAnimationRequested = z2; + } + + public final void a(AnimatorSet animatorSet) { + m.checkNotNullParameter(animatorSet, "animation"); + animatorSet.start(); + if (!this.$isAnimationRequested) { + animatorSet.end(); + } + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(AnimatorSet animatorSet) { + a(animatorSet); + return Unit.a; + } + } + + /* JADX WARNING: Illegal instructions before constructor call */ + public a(h hVar, c cVar) { + super(r4); + m.checkNotNullParameter(cVar, "binding"); + this.t = hVar; + FrameLayout frameLayout = cVar.a; + m.checkNotNullExpressionValue(frameLayout, "binding.root"); + this.f310s = cVar; + cVar.a.setOnClickListener(this); + FrameLayout frameLayout2 = cVar.a; + m.checkNotNullExpressionValue(frameLayout2, "binding.root"); + Animator loadAnimator = AnimatorInflater.loadAnimator(frameLayout2.getContext(), R.a.selection_shrink); + Objects.requireNonNull(loadAnimator, "null cannot be cast to non-null type android.animation.AnimatorSet"); + AnimatorSet animatorSet = (AnimatorSet) loadAnimator; + this.q = animatorSet; + animatorSet.setTarget(cVar.f314b); + FrameLayout frameLayout3 = cVar.a; + m.checkNotNullExpressionValue(frameLayout3, "binding.root"); + Animator loadAnimator2 = AnimatorInflater.loadAnimator(frameLayout3.getContext(), R.a.selection_grow); + Objects.requireNonNull(loadAnimator2, "null cannot be cast to non-null type android.animation.AnimatorSet"); + AnimatorSet animatorSet2 = (AnimatorSet) loadAnimator2; + this.r = animatorSet2; + animatorSet2.setTarget(cVar.f314b); + } + + @Override // b.b.a.d.i + public SimpleDraweeView a() { + SimpleDraweeView simpleDraweeView = this.f310s.c; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.contentIv"); + return simpleDraweeView; + } + + public final void d(boolean z2, boolean z3) { + FrameLayout frameLayout = this.f310s.a; + m.checkNotNullExpressionValue(frameLayout, "binding.root"); + frameLayout.setSelected(z2); + C0050a aVar = new C0050a(z3); + if (z2) { + SimpleDraweeView simpleDraweeView = this.f310s.d; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.itemCheckIndicator"); + simpleDraweeView.setVisibility(0); + FrameLayout frameLayout2 = this.f310s.f314b; + m.checkNotNullExpressionValue(frameLayout2, "binding.contentContainer"); + if (frameLayout2.getScaleX() == 1.0f) { + aVar.a(this.q); + return; + } + return; + } + SimpleDraweeView simpleDraweeView2 = this.f310s.d; + m.checkNotNullExpressionValue(simpleDraweeView2, "binding.itemCheckIndicator"); + simpleDraweeView2.setVisibility(8); + FrameLayout frameLayout3 = this.f310s.f314b; + m.checkNotNullExpressionValue(frameLayout3, "binding.contentContainer"); + if (frameLayout3.getScaleX() != 1.0f) { + aVar.a(this.r); + } + } + + @Override // android.view.View.OnClickListener + public void onClick(View view) { + m.checkNotNullParameter(view, "v"); + SelectionCoordinator selectionCoordinator = this.t.a; + Media media = this.p; + int adapterPosition = getAdapterPosition(); + Objects.requireNonNull(selectionCoordinator); + if (media != null && !selectionCoordinator.d(media)) { + selectionCoordinator.c(media, adapterPosition); + } + } + } + + /* compiled from: MediaCursorAdapter.kt */ + public static final class b extends AsyncQueryHandler { + public final /* synthetic */ h a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(h hVar, ContentResolver contentResolver) { + super(contentResolver); + this.a = hVar; + } + + @Override // android.content.AsyncQueryHandler + public void onQueryComplete(int i, Object obj, Cursor cursor) { + m.checkNotNullParameter(obj, "cookie"); + if (cursor != null) { + h hVar = this.a; + hVar.c = cursor.getColumnIndex("_id"); + hVar.d = cursor.getColumnIndex("_data"); + hVar.e = cursor.getColumnIndex("_display_name"); + hVar.f = cursor.getColumnIndex("media_type"); + if (Build.VERSION.SDK_INT >= 29) { + hVar.g = Integer.valueOf(cursor.getColumnIndex("duration")); + } + hVar.f309b = cursor; + this.a.notifyDataSetChanged(); + } + } + } + + public h(SelectionCoordinator selectionCoordinator, int i, int i2) { + m.checkNotNullParameter(selectionCoordinator, "selectionCoordinator"); + this.h = i; + this.i = i2; + Objects.requireNonNull(selectionCoordinator); + m.checkNotNullParameter(this, "adapter"); + selectionCoordinator.a = this; + this.a = selectionCoordinator; + setHasStableIds(true); + } + + public final Media a(int i) { + String str; + Cursor cursor = this.f309b; + Media media = null; + r1 = null; + Long l = null; + if (cursor != null) { + cursor.moveToPosition(i); + long j = cursor.getLong(this.c); + boolean z2 = cursor.getInt(this.f) == 3; + Uri withAppendedPath = z2 ? Uri.withAppendedPath(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, String.valueOf(j)) : Uri.withAppendedPath(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, String.valueOf(j)); + String str2 = z2 ? "vid" : "img"; + Integer num = this.g; + if (z2 && num != null) { + l = Long.valueOf(cursor.getLong(num.intValue())); + } + m.checkNotNullExpressionValue(withAppendedPath, "fileUri"); + String string = cursor.getString(this.e); + if (string != null) { + str = string; + } else { + str = str2 + '-' + j; + } + media = new Media(j, withAppendedPath, str, cursor.getString(this.d), z2, l); + } + return media; + } + + public final void b(ContentResolver contentResolver) { + m.checkNotNullParameter(contentResolver, "contentResolver"); + int i = Build.VERSION.SDK_INT; + new b(this, contentResolver).startQuery(1, this, MediaStore.Files.getContentUri("external"), i >= 29 ? new String[]{"_id", "_data", "_display_name", "media_type", "duration"} : new String[]{"_id", "_data", "_display_name", "media_type"}, i >= 29 ? "media_type = 1 OR media_type = 3" : "media_type = 1", null, "date_added DESC"); + } + + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public int getItemCount() { + Cursor cursor = this.f309b; + if (cursor != null) { + return cursor.getCount(); + } + return 0; + } + + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public long getItemId(int i) { + Media a2 = a(i); + if (a2 != null) { + return a2.getId(); + } + return -1; + } + + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public void onAttachedToRecyclerView(RecyclerView recyclerView) { + m.checkNotNullParameter(recyclerView, "recyclerView"); + super.onAttachedToRecyclerView(recyclerView); + Context context = recyclerView.getContext(); + m.checkNotNullExpressionValue(context, "recyclerView.context"); + ContentResolver contentResolver = context.getContentResolver(); + m.checkNotNullExpressionValue(contentResolver, "recyclerView.context.contentResolver"); + b(contentResolver); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [androidx.recyclerview.widget.RecyclerView$ViewHolder, int] */ + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public void onBindViewHolder(a aVar, int i) { + Long l; + a aVar2 = aVar; + m.checkNotNullParameter(aVar2, "holder"); + Media a2 = a(i); + aVar2.p = a2; + FrameLayout frameLayout = aVar2.f310s.a; + m.checkNotNullExpressionValue(frameLayout, "binding.root"); + Context context = frameLayout.getContext(); + int i2 = 0; + if (a2 != null) { + aVar2.d(aVar2.t.a.a(a2, aVar2.getAdapterPosition()), false); + } + aVar2.c(a2, Integer.valueOf(aVar2.t.h), Integer.valueOf(aVar2.t.i)); + boolean z2 = true; + if (a2 == null || !a2.j) { + z2 = false; + } + TextView textView = aVar2.f310s.e; + m.checkNotNullExpressionValue(textView, "binding.itemVideoIndicator"); + if (!z2) { + i2 = 8; + } + textView.setVisibility(i2); + if (z2) { + TextView textView2 = aVar2.f310s.e; + m.checkNotNullExpressionValue(textView2, "binding.itemVideoIndicator"); + Drawable background = textView2.getBackground(); + m.checkNotNullExpressionValue(background, "binding.itemVideoIndicator.background"); + background.setAlpha(127); + long longValue = (a2 == null || (l = a2.k) == null) ? 0 : l.longValue(); + TextView textView3 = aVar2.f310s.e; + m.checkNotNullExpressionValue(textView3, "binding.itemVideoIndicator"); + textView3.setText(longValue > 0 ? TimeUtils.toFriendlyStringSimple$default(TimeUtils.INSTANCE, longValue, null, null, 6, null) : context.getString(R.h.video)); + } + SimpleDraweeView simpleDraweeView = aVar2.f310s.c; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.contentIv"); + simpleDraweeView.setContentDescription(context.getString(z2 ? R.h.video : R.h.image)); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [androidx.recyclerview.widget.RecyclerView$ViewHolder, int, java.util.List] */ + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public void onBindViewHolder(a aVar, int i, List list) { + SelectionCoordinator.a aVar2; + Object obj; + a aVar3 = aVar; + m.checkNotNullParameter(aVar3, "holder"); + m.checkNotNullParameter(list, "payloads"); + Iterator it = list.iterator(); + while (true) { + aVar2 = null; + if (!it.hasNext()) { + obj = null; + break; + } + obj = it.next(); + if (obj instanceof SelectionCoordinator.a) { + break; + } + } + if (obj != null) { + if (obj instanceof SelectionCoordinator.a) { + aVar2 = obj; + } + SelectionCoordinator.a aVar4 = aVar2; + if (aVar4 != null) { + aVar3.d(aVar4.f3130b, true); + return; + } + } + super.onBindViewHolder(aVar3, i, list); + } + + /* Return type fixed from 'androidx.recyclerview.widget.RecyclerView$ViewHolder' to match base method */ + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public a onCreateViewHolder(ViewGroup viewGroup, int i) { + m.checkNotNullParameter(viewGroup, "parent"); + View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.g.view_grid_image, viewGroup, false); + int i2 = R.f.content_container; + FrameLayout frameLayout = (FrameLayout) inflate.findViewById(i2); + if (frameLayout != null) { + i2 = R.f.content_iv; + SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(i2); + if (simpleDraweeView != null) { + i2 = R.f.item_check_indicator; + SimpleDraweeView simpleDraweeView2 = (SimpleDraweeView) inflate.findViewById(i2); + if (simpleDraweeView2 != null) { + i2 = R.f.item_video_indicator; + TextView textView = (TextView) inflate.findViewById(i2); + if (textView != null) { + c cVar = new c((FrameLayout) inflate, frameLayout, simpleDraweeView, simpleDraweeView2, textView); + m.checkNotNullExpressionValue(cVar, "ViewGridImageBinding.inf….context), parent, false)"); + return new a(this, cVar); + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2))); + } + + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public void onDetachedFromRecyclerView(RecyclerView recyclerView) { + m.checkNotNullParameter(recyclerView, "recyclerView"); + Cursor cursor = this.f309b; + if (cursor != null) { + cursor.close(); + } + super.onDetachedFromRecyclerView(recyclerView); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [androidx.recyclerview.widget.RecyclerView$ViewHolder] */ + @Override // androidx.recyclerview.widget.RecyclerView.Adapter + public void onViewRecycled(a aVar) { + a aVar2 = aVar; + m.checkNotNullParameter(aVar2, "holder"); + super.onViewRecycled(aVar2); + aVar2.b(); + } +} diff --git a/app/src/main/java/b/b/a/d/i.java b/app/src/main/java/b/b/a/d/i.java new file mode 100644 index 0000000000..2986b1c84c --- /dev/null +++ b/app/src/main/java/b/b/a/d/i.java @@ -0,0 +1,217 @@ +package b.b.a.d; + +import android.content.ContentResolver; +import android.content.ContentUris; +import android.content.Context; +import android.database.Cursor; +import android.graphics.Bitmap; +import android.graphics.drawable.BitmapDrawable; +import android.graphics.drawable.ColorDrawable; +import android.net.Uri; +import android.os.AsyncTask; +import android.os.Build; +import android.os.CancellationSignal; +import android.provider.MediaStore; +import android.view.View; +import androidx.annotation.RequiresApi; +import androidx.core.app.NotificationCompat; +import androidx.recyclerview.widget.RecyclerView; +import b.f.g.e.r; +import b.f.g.e.s; +import b.i.a.f.e.o.f; +import com.discord.utilities.color.ColorCompat; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +import com.facebook.drawee.generic.GenericDraweeHierarchy; +import com.facebook.drawee.view.SimpleDraweeView; +import com.lytefast.flexinput.R; +import com.lytefast.flexinput.model.Media; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlinx.coroutines.CoroutineDispatcher; +import kotlinx.coroutines.Job; +import s.a.a.n; +import s.a.k0; +import s.a.x0; +/* compiled from: ThumbnailViewHolder.kt */ +public abstract class i extends RecyclerView.ViewHolder { + public static int j; + public static int k; + public static ColorDrawable l; + public static final a m = new a(null); + public b n; + public c o; + + /* compiled from: ThumbnailViewHolder.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + + public static final boolean a(a aVar) { + return Build.VERSION.SDK_INT >= 29; + } + } + + /* compiled from: ThumbnailViewHolder.kt */ + @RequiresApi(29) + public static final class b { + public Job a; + + /* renamed from: b reason: collision with root package name */ + public CancellationSignal f311b; + public Bitmap c; + public final ContentResolver d; + + public b(ContentResolver contentResolver) { + m.checkNotNullParameter(contentResolver, "contentResolver"); + this.d = contentResolver; + } + + public final void a() { + if (a.a(i.m)) { + Job job = this.a; + if (job != null) { + f.s(job, null, 1, null); + } + CancellationSignal cancellationSignal = this.f311b; + if (cancellationSignal != null) { + cancellationSignal.cancel(); + } + } + Bitmap bitmap = this.c; + if (bitmap != null) { + bitmap.recycle(); + } + this.c = null; + } + } + + /* compiled from: ThumbnailViewHolder.kt */ + public static final class c { + public final ContentResolver a; + + public c(ContentResolver contentResolver) { + m.checkNotNullParameter(contentResolver, "contentResolver"); + this.a = contentResolver; + } + } + + /* compiled from: ThumbnailViewHolder.kt */ + public static final class d extends o implements Function1 { + public final /* synthetic */ i this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(i iVar) { + super(1); + this.this$0 = iVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(Bitmap bitmap) { + BitmapDrawable bitmapDrawable = new BitmapDrawable(this.this$0.a().getResources(), bitmap); + GenericDraweeHierarchy hierarchy = this.this$0.a().getHierarchy(); + ScalingUtils$ScaleType scalingUtils$ScaleType = ScalingUtils$ScaleType.a; + ScalingUtils$ScaleType scalingUtils$ScaleType2 = s.l; + hierarchy.o(1, bitmapDrawable); + hierarchy.l(1).r(scalingUtils$ScaleType2); + return Unit.a; + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(View view) { + super(view); + m.checkNotNullParameter(view, "itemView"); + if (Build.VERSION.SDK_INT >= 29) { + Context context = view.getContext(); + m.checkNotNullExpressionValue(context, "itemView.context"); + ContentResolver contentResolver = context.getContentResolver(); + m.checkNotNullExpressionValue(contentResolver, "itemView.context.contentResolver"); + this.n = new b(contentResolver); + return; + } + Context context2 = view.getContext(); + m.checkNotNullExpressionValue(context2, "itemView.context"); + ContentResolver contentResolver2 = context2.getContentResolver(); + m.checkNotNullExpressionValue(contentResolver2, "itemView.context.contentResolver"); + this.o = new c(contentResolver2); + } + + public abstract SimpleDraweeView a(); + + public final void b() { + b bVar; + if ((Build.VERSION.SDK_INT >= 29) && (bVar = this.n) != null) { + bVar.a(); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:30:0x00c9, code lost: + r13 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:31:0x00ca, code lost: + d0.y.b.closeFinally(r0, r12); + */ + /* JADX WARNING: Code restructure failed: missing block: B:32:0x00cd, code lost: + throw r13; + */ + public final void c(Media media, Integer num, Integer num2) { + if (l == null) { + View view = this.itemView; + m.checkNotNullExpressionValue(view, "itemView"); + l = new ColorDrawable(ColorCompat.getThemedColor(view, R.b.flexInputDialogBackground)); + } + if (num != null) { + j = num.intValue(); + } + if (num2 != null) { + k = num2.intValue(); + } + if (media != null) { + Uri uri = null; + if (Build.VERSION.SDK_INT >= 29) { + ColorDrawable colorDrawable = l; + ScalingUtils$ScaleType scalingUtils$ScaleType = ScalingUtils$ScaleType.a; + a().getHierarchy().q(colorDrawable, r.l); + b bVar = this.n; + if (bVar != null) { + Uri uri2 = media.getUri(); + d dVar = new d(this); + m.checkNotNullParameter(uri2, NotificationCompat.MessagingStyle.Message.KEY_DATA_URI); + m.checkNotNullParameter(dVar, "onGenerate"); + bVar.a(); + x0 x0Var = x0.j; + CoroutineDispatcher coroutineDispatcher = k0.a; + bVar.a = f.F0(x0Var, n.f3787b, null, new j(bVar, uri2, dVar, null), 2, null); + return; + } + return; + } + c cVar = this.o; + if (cVar != null) { + long id2 = media.getId(); + Uri uri3 = media.getUri(); + m.checkNotNullParameter(uri3, NotificationCompat.MessagingStyle.Message.KEY_DATA_URI); + m mVar = new m(id2); + Cursor query = cVar.a.query(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, new String[]{"_id"}, "image_id = ? AND KIND = ?", new String[]{String.valueOf(id2), String.valueOf(1)}, null); + if (query == null || !query.moveToFirst()) { + ContentResolver contentResolver = cVar.a; + m.checkNotNullParameter(contentResolver, "contentResolver"); + AsyncTask.execute(new l(mVar, contentResolver)); + if (query != null) { + query.close(); + } + } else { + uri3 = ContentUris.withAppendedId(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, query.getLong(0)); + d0.y.b.closeFinally(query, null); + } + uri = uri3; + } + a().setImageURI(uri, a().getContext()); + } + } +} diff --git a/app/src/main/java/b/b/a/d/j.java b/app/src/main/java/b/b/a/d/j.java new file mode 100644 index 0000000000..85509419b6 --- /dev/null +++ b/app/src/main/java/b/b/a/d/j.java @@ -0,0 +1,82 @@ +package b.b.a.d; + +import android.content.ContentResolver; +import android.graphics.Bitmap; +import android.net.Uri; +import android.os.CancellationSignal; +import b.b.a.d.i; +import b.i.a.f.e.o.f; +import d0.l; +import d0.w.h.c; +import d0.w.i.a.e; +import d0.w.i.a.k; +import d0.z.d.m; +import java.util.Objects; +import kotlin.Unit; +import kotlin.coroutines.Continuation; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.functions.Function2; +import kotlinx.coroutines.CoroutineScope; +import s.a.k0; +/* compiled from: ThumbnailViewHolder.kt */ +@e(c = "com.lytefast.flexinput.adapters.ThumbnailViewHolder$ThumbnailBitmapGenerator$generate$1", f = "ThumbnailViewHolder.kt", l = {102}, m = "invokeSuspend") +public final class j extends k implements Function2, Object> { + public final /* synthetic */ Function1 $onGenerate; + public final /* synthetic */ Uri $uri; + public Object L$0; + public int label; + public final /* synthetic */ i.b this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j(i.b bVar, Uri uri, Function1 function1, Continuation continuation) { + super(2, continuation); + this.this$0 = bVar; + this.$uri = uri; + this.$onGenerate = function1; + } + + @Override // d0.w.i.a.a + public final Continuation create(Object obj, Continuation continuation) { + m.checkNotNullParameter(continuation, "completion"); + return new j(this.this$0, this.$uri, this.$onGenerate, continuation); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { + Continuation continuation2 = continuation; + m.checkNotNullParameter(continuation2, "completion"); + return new j(this.this$0, this.$uri, this.$onGenerate, continuation2).invokeSuspend(Unit.a); + } + + @Override // d0.w.i.a.a + public final Object invokeSuspend(Object obj) { + i.b bVar; + Object coroutine_suspended = c.getCOROUTINE_SUSPENDED(); + int i = this.label; + if (i == 0) { + l.throwOnFailure(obj); + this.this$0.f311b = new CancellationSignal(); + i.b bVar2 = this.this$0; + ContentResolver contentResolver = bVar2.d; + Uri uri = this.$uri; + this.L$0 = bVar2; + this.label = 1; + Objects.requireNonNull(bVar2); + Object t1 = f.t1(k0.f3799b, new k(bVar2, contentResolver, uri, null), this); + if (t1 == coroutine_suspended) { + return coroutine_suspended; + } + bVar = bVar2; + obj = t1; + } else if (i == 1) { + bVar = (i.b) this.L$0; + l.throwOnFailure(obj); + } else { + throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); + } + bVar.c = (Bitmap) obj; + this.$onGenerate.invoke(this.this$0.c); + return Unit.a; + } +} diff --git a/app/src/main/java/b/b/a/d/k.java b/app/src/main/java/b/b/a/d/k.java new file mode 100644 index 0000000000..5125e0f15a --- /dev/null +++ b/app/src/main/java/b/b/a/d/k.java @@ -0,0 +1,60 @@ +package b.b.a.d; + +import android.content.ContentResolver; +import android.graphics.Bitmap; +import android.net.Uri; +import android.util.Size; +import b.b.a.d.i; +import d0.l; +import d0.w.h.c; +import d0.w.i.a.e; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.coroutines.Continuation; +import kotlin.jvm.functions.Function2; +import kotlinx.coroutines.CoroutineScope; +/* compiled from: ThumbnailViewHolder.kt */ +@e(c = "com.lytefast.flexinput.adapters.ThumbnailViewHolder$ThumbnailBitmapGenerator$getThumbnailQ$2", f = "ThumbnailViewHolder.kt", l = {}, m = "invokeSuspend") +public final class k extends d0.w.i.a.k implements Function2, Object> { + public final /* synthetic */ ContentResolver $contentResolver; + public final /* synthetic */ Uri $uri; + public int label; + public final /* synthetic */ i.b this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(i.b bVar, ContentResolver contentResolver, Uri uri, Continuation continuation) { + super(2, continuation); + this.this$0 = bVar; + this.$contentResolver = contentResolver; + this.$uri = uri; + } + + @Override // d0.w.i.a.a + public final Continuation create(Object obj, Continuation continuation) { + m.checkNotNullParameter(continuation, "completion"); + return new k(this.this$0, this.$contentResolver, this.$uri, continuation); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function2 + public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) { + Continuation continuation2 = continuation; + m.checkNotNullParameter(continuation2, "completion"); + return new k(this.this$0, this.$contentResolver, this.$uri, continuation2).invokeSuspend(Unit.a); + } + + @Override // d0.w.i.a.a + public final Object invokeSuspend(Object obj) { + c.getCOROUTINE_SUSPENDED(); + if (this.label == 0) { + l.throwOnFailure(obj); + try { + return this.$contentResolver.loadThumbnail(this.$uri, new Size(i.j, i.k), this.this$0.f311b); + } catch (Exception unused) { + return null; + } + } else { + throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); + } + } +} diff --git a/app/src/main/java/b/b/a/d/l.java b/app/src/main/java/b/b/a/d/l.java new file mode 100644 index 0000000000..7d93456601 --- /dev/null +++ b/app/src/main/java/b/b/a/d/l.java @@ -0,0 +1,30 @@ +package b.b.a.d; + +import android.content.ContentResolver; +import android.provider.MediaStore; +import android.util.Log; +import b.d.b.a.a; +import com.lytefast.flexinput.model.Media; +/* compiled from: ThumbnailViewHolder.kt */ +public final class l implements Runnable { + public final /* synthetic */ m j; + public final /* synthetic */ ContentResolver k; + + public l(m mVar, ContentResolver contentResolver) { + this.j = mVar; + this.k = contentResolver; + } + + @Override // java.lang.Runnable + public final void run() { + try { + MediaStore.Images.Thumbnails.getThumbnail(this.k, this.j.$id, 1, null); + } catch (Exception unused) { + String name = Media.class.getName(); + StringBuilder R = a.R("Error generating thumbnail for photo "); + R.append(this.j.$id); + R.append('.'); + Log.v(name, R.toString()); + } + } +} diff --git a/app/src/main/java/b/b/a/d/m.java b/app/src/main/java/b/b/a/d/m.java new file mode 100644 index 0000000000..a6bbbbbf6f --- /dev/null +++ b/app/src/main/java/b/b/a/d/m.java @@ -0,0 +1,27 @@ +package b.b.a.d; + +import android.content.ContentResolver; +import android.os.AsyncTask; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: ThumbnailViewHolder.kt */ +public final class m extends o implements Function1 { + public final /* synthetic */ long $id; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public m(long j) { + super(1); + this.$id = j; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(ContentResolver contentResolver) { + ContentResolver contentResolver2 = contentResolver; + d0.z.d.m.checkNotNullParameter(contentResolver2, "contentResolver"); + AsyncTask.execute(new l(this, contentResolver2)); + return Unit.a; + } +} diff --git a/app/src/main/java/b/b/a/e/a.java b/app/src/main/java/b/b/a/e/a.java new file mode 100644 index 0000000000..dfece0f645 --- /dev/null +++ b/app/src/main/java/b/b/a/e/a.java @@ -0,0 +1,77 @@ +package b.b.a.e; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.appcompat.widget.AppCompatImageButton; +import androidx.recyclerview.widget.RecyclerView; +import androidx.viewbinding.ViewBinding; +import com.lytefast.flexinput.widget.FlexEditText; +/* compiled from: FlexInputWidgetBinding */ +public final class a implements ViewBinding { + @NonNull + public final LinearLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final AppCompatImageButton f312b; + @NonNull + public final LinearLayout c; + @NonNull + public final RecyclerView d; + @NonNull + public final TextView e; + @NonNull + public final LinearLayout f; + @NonNull + public final FrameLayout g; + @NonNull + public final AppCompatImageButton h; + @NonNull + public final AppCompatImageButton i; + @NonNull + public final ImageView j; + @NonNull + public final FrameLayout k; + @NonNull + public final AppCompatImageButton l; + @NonNull + public final AppCompatImageButton m; + @NonNull + public final LinearLayout n; + @NonNull + public final FrameLayout o; + @NonNull + public final ImageView p; + @NonNull + public final FlexEditText q; + + public a(@NonNull LinearLayout linearLayout, @NonNull AppCompatImageButton appCompatImageButton, @NonNull LinearLayout linearLayout2, @NonNull RecyclerView recyclerView, @NonNull TextView textView, @NonNull LinearLayout linearLayout3, @NonNull FrameLayout frameLayout, @NonNull AppCompatImageButton appCompatImageButton2, @NonNull AppCompatImageButton appCompatImageButton3, @NonNull ImageView imageView, @NonNull FrameLayout frameLayout2, @NonNull FrameLayout frameLayout3, @NonNull AppCompatImageButton appCompatImageButton4, @NonNull AppCompatImageButton appCompatImageButton5, @NonNull LinearLayout linearLayout4, @NonNull LinearLayout linearLayout5, @NonNull FrameLayout frameLayout4, @NonNull ImageView imageView2, @NonNull FlexEditText flexEditText) { + this.a = linearLayout; + this.f312b = appCompatImageButton; + this.c = linearLayout2; + this.d = recyclerView; + this.e = textView; + this.f = linearLayout3; + this.g = frameLayout; + this.h = appCompatImageButton2; + this.i = appCompatImageButton3; + this.j = imageView; + this.k = frameLayout3; + this.l = appCompatImageButton4; + this.m = appCompatImageButton5; + this.n = linearLayout5; + this.o = frameLayout4; + this.p = imageView2; + this.q = flexEditText; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/b/a/e/b.java b/app/src/main/java/b/b/a/e/b.java new file mode 100644 index 0000000000..4d1bc85223 --- /dev/null +++ b/app/src/main/java/b/b/a/e/b.java @@ -0,0 +1,36 @@ +package b.b.a.e; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewAttachmentPreviewItemBinding */ +public final class b implements ViewBinding { + @NonNull + public final ConstraintLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final SimpleDraweeView f313b; + @NonNull + public final SimpleDraweeView c; + @NonNull + public final View d; + @NonNull + public final SimpleDraweeView e; + + public b(@NonNull ConstraintLayout constraintLayout, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull View view, @NonNull SimpleDraweeView simpleDraweeView3) { + this.a = constraintLayout; + this.f313b = simpleDraweeView; + this.c = simpleDraweeView2; + this.d = view; + this.e = simpleDraweeView3; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/b/a/e/c.java b/app/src/main/java/b/b/a/e/c.java new file mode 100644 index 0000000000..f582a7cf73 --- /dev/null +++ b/app/src/main/java/b/b/a/e/c.java @@ -0,0 +1,37 @@ +package b.b.a.e; + +import android.view.View; +import android.widget.FrameLayout; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.viewbinding.ViewBinding; +import com.facebook.drawee.view.SimpleDraweeView; +/* compiled from: ViewGridImageBinding */ +public final class c implements ViewBinding { + @NonNull + public final FrameLayout a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final FrameLayout f314b; + @NonNull + public final SimpleDraweeView c; + @NonNull + public final SimpleDraweeView d; + @NonNull + public final TextView e; + + public c(@NonNull FrameLayout frameLayout, @NonNull FrameLayout frameLayout2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull TextView textView) { + this.a = frameLayout; + this.f314b = frameLayout2; + this.c = simpleDraweeView; + this.d = simpleDraweeView2; + this.e = textView; + } + + @Override // androidx.viewbinding.ViewBinding + @NonNull + public View getRoot() { + return this.a; + } +} diff --git a/app/src/main/java/b/b/a/f/a.java b/app/src/main/java/b/b/a/f/a.java new file mode 100644 index 0000000000..cd07d82cce --- /dev/null +++ b/app/src/main/java/b/b/a/f/a.java @@ -0,0 +1,9 @@ +package b.b.a.f; + +import android.view.View; +/* compiled from: KeyboardManager.kt */ +public interface a { + void requestDisplay(View view); + + void requestHide(); +} diff --git a/app/src/main/java/b/b/a/f/b.java b/app/src/main/java/b/b/a/f/b.java new file mode 100644 index 0000000000..a68c9814a9 --- /dev/null +++ b/app/src/main/java/b/b/a/f/b.java @@ -0,0 +1,64 @@ +package b.b.a.f; + +import android.content.Context; +import android.net.Uri; +import android.os.Environment; +import androidx.core.content.FileProvider; +import b.d.b.a.a; +import com.lytefast.flexinput.R; +import com.lytefast.flexinput.managers.FileManager; +import d0.z.d.m; +import java.io.File; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Locale; +/* compiled from: SimpleFileManager.kt */ +public class b implements FileManager { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final String f315b; + public final String c; + + public b(Context context, String str, String str2, int i) { + String str3; + String str4 = null; + if ((i & 2) != 0) { + str3 = context.getPackageName() + ".file-provider"; + } else { + str3 = null; + } + if ((i & 4) != 0) { + str4 = context.getString(R.h.discord); + m.checkNotNullExpressionValue(str4, "context.getString(R.string.discord)"); + } + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(str3, "providerAuthority"); + m.checkNotNullParameter(str4, "imageDirName"); + this.a = context; + this.f315b = str3; + this.c = str4; + } + + @Override // com.lytefast.flexinput.managers.FileManager + public Uri a(Context context, File file) { + m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(file, "file"); + Uri uriForFile = FileProvider.getUriForFile(context, this.f315b, file); + m.checkNotNullExpressionValue(uriForFile, "FileProvider.getUriForFi… providerAuthority, file)"); + return uriForFile; + } + + @Override // com.lytefast.flexinput.managers.FileManager + public File b() { + String format = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.getDefault()).format(new Date()); + Context context = this.a; + File file = new File(context.getExternalFilesDir(Environment.DIRECTORY_PICTURES), this.c); + file.mkdirs(); + if (!file.exists()) { + file = context.getFilesDir(); + m.checkNotNullExpressionValue(file, "context.filesDir"); + } + return new File(file, a.v(format, ".jpg")); + } +} diff --git a/app/src/main/java/b/b/a/g/a.java b/app/src/main/java/b/b/a/g/a.java new file mode 100644 index 0000000000..acecb2ca0e --- /dev/null +++ b/app/src/main/java/b/b/a/g/a.java @@ -0,0 +1,17 @@ +package b.b.a.g; + +import android.net.Uri; +import com.lytefast.flexinput.model.Attachment; +import d0.z.d.m; +import java.io.File; +/* compiled from: FileUtils.kt */ +public final class a { + public static final Attachment a(File file) { + m.checkNotNullParameter(file, "$this$toAttachment"); + Uri fromFile = Uri.fromFile(file); + m.checkNotNullExpressionValue(fromFile, "Uri.fromFile(this)"); + String name = file.getName(); + m.checkNotNullExpressionValue(name, "this.name"); + return new Attachment<>((long) file.hashCode(), fromFile, name, file, false, 16, null); + } +} diff --git a/app/src/main/java/b/b/a/g/b.java b/app/src/main/java/b/b/a/g/b.java new file mode 100644 index 0000000000..9e8a3f478e --- /dev/null +++ b/app/src/main/java/b/b/a/g/b.java @@ -0,0 +1,17 @@ +package b.b.a.g; + +import com.lytefast.flexinput.utils.SelectionCoordinator; +/* compiled from: SelectionCoordinator.kt */ +public final class b implements SelectionCoordinator.ItemSelectionListener { + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void onItemSelected(I i) { + } + + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void onItemUnselected(I i) { + } + + @Override // com.lytefast.flexinput.utils.SelectionCoordinator.ItemSelectionListener + public void unregister() { + } +} diff --git a/app/src/main/java/b/b/a/h/a.java b/app/src/main/java/b/b/a/h/a.java new file mode 100644 index 0000000000..7252d7ba99 --- /dev/null +++ b/app/src/main/java/b/b/a/h/a.java @@ -0,0 +1,99 @@ +package b.b.a.h; + +import androidx.annotation.StringRes; +import androidx.core.app.NotificationCompat; +import d0.z.d.m; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: FlexInputEvent.kt */ +public abstract class a { + + /* compiled from: FlexInputEvent.kt */ + /* renamed from: b.b.a.h.a$a reason: collision with other inner class name */ + public static final class C0051a extends a { + public static final C0051a a = new C0051a(); + + public C0051a() { + super(null); + } + } + + /* compiled from: FlexInputEvent.kt */ + public static final class b extends a { + public static final b a = new b(); + + public b() { + super(null); + } + } + + /* compiled from: FlexInputEvent.kt */ + public static final class c extends a { + public static final c a = new c(); + + public c() { + super(null); + } + } + + /* compiled from: FlexInputEvent.kt */ + public static final class d extends a { + public final String a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(String str) { + super(null); + m.checkNotNullParameter(str, NotificationCompat.MessagingStyle.Message.KEY_TEXT); + this.a = str; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof d) && m.areEqual(this.a, ((d) obj).a); + } + return true; + } + + public int hashCode() { + String str = this.a; + if (str != null) { + return str.hashCode(); + } + return 0; + } + + public String toString() { + return b.d.b.a.a.H(b.d.b.a.a.R("ShowToast(text="), this.a, ")"); + } + } + + /* compiled from: FlexInputEvent.kt */ + public static final class e extends a { + public final int a; + + public e(@StringRes int i) { + super(null); + this.a = i; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof e) && this.a == ((e) obj).a; + } + return true; + } + + public int hashCode() { + return this.a; + } + + public String toString() { + return b.d.b.a.a.A(b.d.b.a.a.R("ShowToastStringRes(textResId="), this.a, ")"); + } + } + + public a() { + } + + public a(DefaultConstructorMarker defaultConstructorMarker) { + } +} diff --git a/app/src/main/java/b/b/a/i/a.java b/app/src/main/java/b/b/a/i/a.java new file mode 100644 index 0000000000..dc62d64974 --- /dev/null +++ b/app/src/main/java/b/b/a/i/a.java @@ -0,0 +1,38 @@ +package b.b.a.i; + +import android.content.ContentResolver; +import android.content.Context; +import androidx.core.os.EnvironmentCompat; +import androidx.core.view.inputmethod.InputContentInfoCompat; +import com.lytefast.flexinput.model.Attachment; +import com.lytefast.flexinput.widget.FlexEditText; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: FlexEditText.kt */ +public final class a extends o implements Function1 { + public final /* synthetic */ FlexEditText this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(FlexEditText flexEditText) { + super(1); + this.this$0 = flexEditText; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public Unit invoke(InputContentInfoCompat inputContentInfoCompat) { + InputContentInfoCompat inputContentInfoCompat2 = inputContentInfoCompat; + if (inputContentInfoCompat2 != null) { + Attachment.Companion companion = Attachment.Companion; + Context context = this.this$0.getContext(); + m.checkNotNullExpressionValue(context, "context"); + ContentResolver contentResolver = context.getContentResolver(); + m.checkNotNullExpressionValue(contentResolver, "context.contentResolver"); + companion.c(inputContentInfoCompat2, contentResolver, true, EnvironmentCompat.MEDIA_UNKNOWN); + } + return Unit.a; + } +} diff --git a/app/src/main/java/b/c/a/a.java b/app/src/main/java/b/c/a/a.java new file mode 100644 index 0000000000..be3bec4390 --- /dev/null +++ b/app/src/main/java/b/c/a/a.java @@ -0,0 +1,4 @@ +package b.c.a; +/* compiled from: FontAssetDelegate */ +public class a { +} diff --git a/app/src/main/java/b/c/a/a0/a.java b/app/src/main/java/b/c/a/a0/a.java new file mode 100644 index 0000000000..fac01e0654 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/a.java @@ -0,0 +1,68 @@ +package b.c.a.a0; + +import android.graphics.PointF; +import b.c.a.a0.i0.c; +import b.c.a.b0.g; +import b.c.a.d; +import b.c.a.w.c.h; +import b.c.a.y.k.b; +import b.c.a.y.k.e; +import b.c.a.y.k.i; +import b.c.a.y.k.m; +import java.io.IOException; +import java.util.ArrayList; +/* compiled from: AnimatablePathValueParser */ +public class a { + public static c.a a = c.a.a("k", "x", "y"); + + public static e a(c cVar, d dVar) throws IOException { + ArrayList arrayList = new ArrayList(); + if (cVar.u() == c.b.BEGIN_ARRAY) { + cVar.a(); + while (cVar.e()) { + arrayList.add(new h(dVar, q.a(cVar, dVar, g.c(), v.a, cVar.u() == c.b.BEGIN_OBJECT))); + } + cVar.c(); + r.b(arrayList); + } else { + arrayList.add(new b.c.a.c0.a(p.b(cVar, g.c()))); + } + return new e(arrayList); + } + + public static m b(c cVar, d dVar) throws IOException { + c.b bVar = c.b.STRING; + cVar.b(); + e eVar = null; + b bVar2 = null; + b bVar3 = null; + boolean z2 = false; + while (cVar.u() != c.b.END_OBJECT) { + int y2 = cVar.y(a); + if (y2 != 0) { + if (y2 != 1) { + if (y2 != 2) { + cVar.A(); + cVar.C(); + } else if (cVar.u() == bVar) { + cVar.C(); + } else { + bVar3 = d.o1(cVar, dVar); + } + } else if (cVar.u() == bVar) { + cVar.C(); + } else { + bVar2 = d.o1(cVar, dVar); + } + z2 = true; + } else { + eVar = a(cVar, dVar); + } + } + cVar.d(); + if (z2) { + dVar.a("Lottie doesn't support expressions."); + } + return eVar != null ? eVar : new i(bVar2, bVar3); + } +} diff --git a/app/src/main/java/b/c/a/a0/a0.java b/app/src/main/java/b/c/a/a0/a0.java new file mode 100644 index 0000000000..79ad64cb2a --- /dev/null +++ b/app/src/main/java/b/c/a/a0/a0.java @@ -0,0 +1,27 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +import b.c.a.c0.d; +import java.io.IOException; +/* compiled from: ScaleXYParser */ +public class a0 implements h0 { + public static final a0 a = new a0(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public d a(c cVar, float f) throws IOException { + boolean z2 = cVar.u() == c.b.BEGIN_ARRAY; + if (z2) { + cVar.a(); + } + float n = (float) cVar.n(); + float n2 = (float) cVar.n(); + while (cVar.e()) { + cVar.C(); + } + if (z2) { + cVar.c(); + } + return new d((n / 100.0f) * f, (n2 / 100.0f) * f); + } +} diff --git a/app/src/main/java/b/c/a/a0/b.java b/app/src/main/java/b/c/a/a0/b.java new file mode 100644 index 0000000000..b265da3bad --- /dev/null +++ b/app/src/main/java/b/c/a/a0/b.java @@ -0,0 +1,10 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: AnimatableTextPropertiesParser */ +public class b { + public static c.a a = c.a.a("a"); + + /* renamed from: b reason: collision with root package name */ + public static c.a f316b = c.a.a("fc", "sc", "sw", "t"); +} diff --git a/app/src/main/java/b/c/a/a0/b0.java b/app/src/main/java/b/c/a/a0/b0.java new file mode 100644 index 0000000000..0ed7c7ad4c --- /dev/null +++ b/app/src/main/java/b/c/a/a0/b0.java @@ -0,0 +1,70 @@ +package b.c.a.a0; + +import android.graphics.PointF; +import b.c.a.a0.i0.c; +import b.c.a.b0.f; +import b.c.a.y.a; +import b.c.a.y.l.k; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +/* compiled from: ShapeDataParser */ +public class b0 implements h0 { + public static final b0 a = new b0(); + + /* renamed from: b reason: collision with root package name */ + public static final c.a f317b = c.a.a("c", "v", "i", "o"); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public k a(c cVar, float f) throws IOException { + if (cVar.u() == c.b.BEGIN_ARRAY) { + cVar.a(); + } + cVar.b(); + List list = null; + List list2 = null; + List list3 = null; + boolean z2 = false; + while (cVar.e()) { + int y2 = cVar.y(f317b); + if (y2 == 0) { + z2 = cVar.f(); + } else if (y2 == 1) { + list = p.c(cVar, f); + } else if (y2 == 2) { + list2 = p.c(cVar, f); + } else if (y2 != 3) { + cVar.A(); + cVar.C(); + } else { + list3 = p.c(cVar, f); + } + } + cVar.d(); + if (cVar.u() == c.b.END_ARRAY) { + cVar.c(); + } + if (list == null || list2 == null || list3 == null) { + throw new IllegalArgumentException("Shape data was missing information."); + } else if (list.isEmpty()) { + return new k(new PointF(), false, Collections.emptyList()); + } else { + int size = list.size(); + PointF pointF = list.get(0); + ArrayList arrayList = new ArrayList(size); + for (int i = 1; i < size; i++) { + PointF pointF2 = list.get(i); + int i2 = i - 1; + arrayList.add(new a(f.a(list.get(i2), list3.get(i2)), f.a(pointF2, list2.get(i)), pointF2)); + } + if (z2) { + PointF pointF3 = list.get(0); + int i3 = size - 1; + arrayList.add(new a(f.a(list.get(i3), list3.get(i3)), f.a(pointF3, list2.get(0)), pointF3)); + } + return new k(pointF, z2, arrayList); + } + } +} diff --git a/app/src/main/java/b/c/a/a0/c.java b/app/src/main/java/b/c/a/a0/c.java new file mode 100644 index 0000000000..306ae0dd3e --- /dev/null +++ b/app/src/main/java/b/c/a/a0/c.java @@ -0,0 +1,191 @@ +package b.c.a.a0; + +import android.graphics.PointF; +import b.c.a.a0.i0.c; +import b.c.a.c0.a; +import b.c.a.d; +import b.c.a.y.k.b; +import b.c.a.y.k.e; +import b.c.a.y.k.g; +import b.c.a.y.k.i; +import b.c.a.y.k.l; +import b.c.a.y.k.m; +import java.io.IOException; +/* compiled from: AnimatableTransformParser */ +public class c { + public static c.a a = c.a.a("a", "p", "s", "rz", "r", "o", "so", "eo", "sk", "sa"); + + /* renamed from: b reason: collision with root package name */ + public static c.a f318b = c.a.a("k"); + + /* JADX WARNING: Code restructure failed: missing block: B:80:0x01c0, code lost: + if ((r0.a == 1.0f && r0.f340b == 1.0f) != false) goto L_0x01c5; + */ + /* JADX WARNING: Code restructure failed: missing block: B:99:0x020e, code lost: + if (((b.c.a.c0.a) r12.a.get(0)).f337b.floatValue() == 0.0f) goto L_0x0216; + */ + /* JADX WARNING: Removed duplicated region for block: B:102:0x0214 */ + /* JADX WARNING: Removed duplicated region for block: B:105:0x0219 */ + /* JADX WARNING: Removed duplicated region for block: B:106:0x021c */ + /* JADX WARNING: Removed duplicated region for block: B:20:0x0068 */ + /* JADX WARNING: Removed duplicated region for block: B:21:0x009b */ + /* JADX WARNING: Removed duplicated region for block: B:84:0x01c8 */ + /* JADX WARNING: Removed duplicated region for block: B:85:0x01cb */ + /* JADX WARNING: Removed duplicated region for block: B:94:0x01f0 */ + /* JADX WARNING: Removed duplicated region for block: B:96:0x01f3 */ + public static l a(b.c.a.a0.i0.c cVar, d dVar) throws IOException { + b bVar; + g gVar; + boolean z2; + b bVar2; + boolean z3; + g gVar2; + b bVar3; + m mVar; + b p1; + b bVar4; + boolean z4 = false; + boolean z5 = cVar.u() == c.b.BEGIN_OBJECT; + if (z5) { + cVar.b(); + } + b bVar5 = null; + g gVar3 = null; + m mVar2 = null; + b bVar6 = null; + b bVar7 = null; + e eVar = null; + b.c.a.y.k.d dVar2 = null; + b bVar8 = null; + b bVar9 = null; + while (cVar.e()) { + switch (cVar.y(a)) { + case 0: + gVar2 = gVar3; + bVar3 = bVar6; + mVar = mVar2; + cVar.b(); + while (cVar.e()) { + if (cVar.y(f318b) != 0) { + cVar.A(); + cVar.C(); + } else { + eVar = a.a(cVar, dVar); + } + } + cVar.d(); + gVar3 = gVar2; + mVar2 = mVar; + break; + case 1: + bVar3 = bVar6; + mVar2 = a.b(cVar, dVar); + break; + case 2: + bVar3 = bVar6; + mVar = mVar2; + gVar3 = new g(d.m1(cVar, dVar, a0.a)); + mVar2 = mVar; + break; + case 3: + dVar.a("Lottie doesn't support 3D layers."); + p1 = d.p1(cVar, dVar, z4); + if (!p1.a.isEmpty()) { + bVar4 = p1; + gVar2 = gVar3; + bVar3 = bVar6; + mVar = mVar2; + p1.a.add(new a(dVar, Float.valueOf(0.0f), Float.valueOf(0.0f), null, 0.0f, Float.valueOf(dVar.l))); + } else { + bVar4 = p1; + gVar2 = gVar3; + bVar3 = bVar6; + mVar = mVar2; + if (((a) bVar4.a.get(0)).f337b == 0) { + bVar4.a.set(0, new a(dVar, Float.valueOf(0.0f), Float.valueOf(0.0f), null, 0.0f, Float.valueOf(dVar.l))); + } + } + bVar5 = bVar4; + gVar3 = gVar2; + mVar2 = mVar; + break; + case 4: + p1 = d.p1(cVar, dVar, z4); + if (!p1.a.isEmpty()) { + } + bVar5 = bVar4; + gVar3 = gVar2; + mVar2 = mVar; + break; + case 5: + dVar2 = d.q1(cVar, dVar); + continue; + case 6: + bVar8 = d.p1(cVar, dVar, z4); + continue; + case 7: + bVar9 = d.p1(cVar, dVar, z4); + continue; + case 8: + bVar7 = d.p1(cVar, dVar, z4); + continue; + case 9: + bVar6 = d.p1(cVar, dVar, z4); + continue; + default: + bVar3 = bVar6; + cVar.A(); + cVar.C(); + break; + } + bVar6 = bVar3; + z4 = false; + } + m mVar3 = mVar2; + if (z5) { + cVar.d(); + } + if (eVar == null || (eVar.isStatic() && eVar.a.get(0).f337b.equals(0.0f, 0.0f))) { + eVar = null; + } + if (mVar3 == null || (!(mVar3 instanceof i) && mVar3.isStatic() && mVar3.b().get(0).f337b.equals(0.0f, 0.0f))) { + mVar3 = null; + } + if (bVar5 == null || (bVar5.isStatic() && ((a) bVar5.a.get(0)).f337b.floatValue() == 0.0f)) { + gVar = gVar3; + bVar = null; + } else { + bVar = bVar5; + gVar = gVar3; + } + if (gVar != null) { + if (gVar.isStatic()) { + b.c.a.c0.d dVar3 = ((a) gVar.a.get(0)).f337b; + } + z2 = false; + g gVar4 = !z2 ? null : gVar; + if (bVar7 != null || (bVar7.isStatic() && ((a) bVar7.a.get(0)).f337b.floatValue() == 0.0f)) { + bVar7 = null; + } + if (bVar6 == null) { + bVar2 = bVar6; + if (bVar6.isStatic()) { + } + z3 = false; + return new l(eVar, mVar3, gVar4, bVar, dVar2, bVar8, bVar9, bVar7, z3 ? null : bVar2); + } + bVar2 = bVar6; + z3 = true; + return new l(eVar, mVar3, gVar4, bVar, dVar2, bVar8, bVar9, bVar7, z3 ? null : bVar2); + } + z2 = true; + if (!z2) { + } + if (bVar7 != null || (bVar7.isStatic() && ((a) bVar7.a.get(0)).f337b.floatValue() == 0.0f)) { + } + if (bVar6 == null) { + } + z3 = true; + return new l(eVar, mVar3, gVar4, bVar, dVar2, bVar8, bVar9, bVar7, z3 ? null : bVar2); + } +} diff --git a/app/src/main/java/b/c/a/a0/c0.java b/app/src/main/java/b/c/a/a0/c0.java new file mode 100644 index 0000000000..63a82e60ae --- /dev/null +++ b/app/src/main/java/b/c/a/a0/c0.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: ShapeFillParser */ +public class c0 { + public static final c.a a = c.a.a("nm", "c", "o", "fillEnabled", "r", "hd"); +} diff --git a/app/src/main/java/b/c/a/a0/d.java b/app/src/main/java/b/c/a/a0/d.java new file mode 100644 index 0000000000..285fafa673 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/d.java @@ -0,0 +1,3323 @@ +package b.c.a.a0; + +import android.annotation.TargetApi; +import android.content.Context; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.content.res.TypedArray; +import android.graphics.Color; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.StateListDrawable; +import android.media.MediaFormat; +import android.net.Uri; +import android.os.Build; +import android.os.Bundle; +import android.os.Handler; +import android.os.IBinder; +import android.os.Looper; +import android.os.Parcel; +import android.os.Parcelable; +import android.os.PowerManager; +import android.os.Process; +import android.os.Trace; +import android.text.Spannable; +import android.text.SpannableString; +import android.text.Spanned; +import android.text.TextUtils; +import android.util.AttributeSet; +import android.util.Base64; +import android.util.Log; +import android.util.Pair; +import androidx.annotation.ColorInt; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import androidx.core.app.NotificationCompat; +import androidx.core.internal.view.SupportMenu; +import androidx.core.text.TextUtilsCompat; +import androidx.core.view.ViewCompat; +import androidx.recyclerview.widget.ItemTouchHelper; +import b.c.a.b0.g; +import b.f.d.d.i; +import b.f.g.e.b0; +import b.f.g.e.d0; +import b.f.g.e.e0; +import b.f.g.e.p; +import b.f.g.e.r; +import b.f.g.e.s; +import b.f.g.e.u; +import b.f.g.e.v; +import b.f.g.f.c; +import b.f.j.d.e; +import b.f.m.h; +import b.g.a.a.p; +import b.g.a.c.j; +import b.i.a.b.i.d; +import b.i.a.c.b3.b; +import b.i.a.c.b3.t.f; +import b.i.a.c.f3.t; +import b.i.a.c.f3.x; +import b.i.a.c.g3.z.h; +import b.i.a.c.x2.o; +import b.i.a.c.x2.w; +import b.i.a.c.x2.z; +import com.adjust.sdk.Constants; +import com.discord.api.stageinstance.StageInstance; +import com.discord.api.stageinstance.StageInstancePrivacyLevel; +import com.discord.api.voice.state.StageRequestToSpeakState; +import com.discord.api.voice.state.VoiceState; +import com.discord.app.AppPermissionsRequests; +import com.discord.i18n.RenderContext; +import com.discord.player.MediaSource; +import com.discord.player.MediaType; +import com.discord.simpleast.core.node.Node; +import com.discord.utilities.logging.Logger; +import com.discord.utilities.logging.LoggingProvider; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.file.FileUtils$CreateDirectoryException; +import com.facebook.common.file.FileUtils$FileDeleteException; +import com.facebook.common.file.FileUtils$ParentDirNotFoundException; +import com.facebook.common.file.FileUtils$RenameException; +import com.facebook.datasource.DataSource; +import com.facebook.drawee.R; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +import com.facebook.soloader.SysUtil$LollipopSysdeps; +import com.facebook.soloader.SysUtil$MarshmallowSysdeps; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.gms.common.api.ApiException; +import com.google.android.gms.common.api.ResolvableApiException; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException; +import com.google.android.gms.tasks.TaskCompletionSource; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonToken; +import d0.t.k; +import d0.z.d.m; +import java.io.EOFException; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStream; +import java.io.RandomAccessFile; +import java.io.UnsupportedEncodingException; +import java.lang.reflect.Array; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.lang.reflect.TypeVariable; +import java.lang.reflect.WildcardType; +import java.net.URL; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.nio.channels.FileChannel; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.Date; +import java.util.GregorianCalendar; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +import java.util.concurrent.ScheduledExecutorService; +import java.util.zip.Inflater; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +import kotlin.jvm.functions.Function1; +import org.checkerframework.checker.nullness.qual.EnsuresNonNull; +import org.checkerframework.dataflow.qual.Pure; +import org.xmlpull.v1.XmlPullParser; +import org.xmlpull.v1.XmlPullParserException; +/* compiled from: AnimatableValueParser */ +public class d { + public static boolean a; + + /* renamed from: b reason: collision with root package name */ + public static ScheduledExecutorService f319b; + @Nullable + public static Boolean c; + @Nullable + public static Boolean d; + @Nullable + public static Boolean e; + @Nullable + public static Boolean f; + + /* compiled from: ArrayBuilders */ + public static class a { + public final /* synthetic */ Class a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f320b; + public final /* synthetic */ Object c; + + public a(Class cls, int i, Object obj) { + this.a = cls; + this.f320b = i; + this.c = obj; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(b.g.a.c.i0.d.o(obj, this.a) && Array.getLength(obj) == this.f320b)) { + return false; + } + for (int i = 0; i < this.f320b; i++) { + Object obj2 = Array.get(this.c, i); + Object obj3 = Array.get(obj, i); + if (!(obj2 == obj3 || obj2 == null || obj2.equals(obj3))) { + return false; + } + } + return true; + } + } + + @NonNull + @EnsuresNonNull({"#1"}) + public static T A(@Nullable T t) { + Objects.requireNonNull(t, "null reference"); + return t; + } + + @NonNull + public static String A0(@RecentlyNonNull int i) { + switch (i) { + case -1: + return "SUCCESS_CACHE"; + case 0: + return "SUCCESS"; + case 1: + case 9: + case 11: + case 12: + default: + return b.d.b.a.a.f(32, "unknown status code: ", i); + case 2: + return "SERVICE_VERSION_UPDATE_REQUIRED"; + case 3: + return "SERVICE_DISABLED"; + case 4: + return "SIGN_IN_REQUIRED"; + case 5: + return "INVALID_ACCOUNT"; + case 6: + return "RESOLUTION_REQUIRED"; + case 7: + return "NETWORK_ERROR"; + case 8: + return "INTERNAL_ERROR"; + case 10: + return "DEVELOPER_ERROR"; + case 13: + return "ERROR"; + case 14: + return "INTERRUPTED"; + case 15: + return "TIMEOUT"; + case 16: + return "CANCELED"; + case 17: + return "API_NOT_CONNECTED"; + case 18: + return "DEAD_CLIENT"; + case 19: + return "REMOTE_EXCEPTION"; + case 20: + return "CONNECTION_SUSPENDED_DURING_CALL"; + case 21: + return "RECONNECTION_TIMED_OUT_DURING_UPDATE"; + case 22: + return "RECONNECTION_TIMED_OUT"; + } + } + + public static void A1(FileChannel fileChannel, ByteBuffer byteBuffer, int i, long j) throws IOException { + int read; + byteBuffer.position(0); + byteBuffer.limit(i); + while (byteBuffer.remaining() > 0 && (read = fileChannel.read(byteBuffer, j)) != -1) { + j += (long) read; + } + if (byteBuffer.remaining() <= 0) { + byteBuffer.position(0); + return; + } + throw new h("ELF file truncated"); + } + + public static void A2(Parcel parcel, int i) { + int dataPosition = parcel.dataPosition(); + parcel.setDataPosition(i - 4); + parcel.writeInt(dataPosition - i); + parcel.setDataPosition(dataPosition); + } + + public static void B(boolean z2) { + if (!z2) { + throw new IllegalStateException(); + } + } + + public static String[] B0() { + return Build.VERSION.SDK_INT >= 23 ? SysUtil$MarshmallowSysdeps.getSupportedAbis() : SysUtil$LollipopSysdeps.getSupportedAbis(); + } + + public static int B1(InputStream inputStream) throws IOException { + return ((((byte) (inputStream.read() & 255)) << 16) & ItemTouchHelper.ACTION_MODE_DRAG_MASK) | ((((byte) (inputStream.read() & 255)) << 8) & 65280) | (((byte) (inputStream.read() & 255)) & 255); + } + + public static void C(boolean z2, Object obj) { + if (!z2) { + throw new IllegalStateException(String.valueOf(obj)); + } + } + + public static String C0(String str) { + return b.d.b.a.a.v("TransportRuntime.", str); + } + + @RecentlyNonNull + public static boolean C1(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + w2(parcel, i, 4); + return parcel.readInt() != 0; + } + + @Pure + public static void D(boolean z2) { + if (!z2) { + throw new IllegalStateException(); + } + } + + public static Pair D0(InputStream inputStream) throws IOException { + inputStream.skip(7); + short read = (short) (inputStream.read() & 255); + short read2 = (short) (inputStream.read() & 255); + short read3 = (short) (inputStream.read() & 255); + if (read == 157 && read2 == 1 && read3 == 42) { + return new Pair<>(Integer.valueOf(m0(inputStream)), Integer.valueOf(m0(inputStream))); + } + return null; + } + + @RecentlyNonNull + public static IBinder D1(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + IBinder readStrongBinder = parcel.readStrongBinder(); + parcel.setDataPosition(dataPosition + K1); + return readStrongBinder; + } + + @Pure + public static void E(boolean z2, Object obj) { + if (!z2) { + throw new IllegalStateException(String.valueOf(obj)); + } + } + + public static Pair E0(InputStream inputStream) throws IOException { + v0(inputStream); + if (((byte) (inputStream.read() & 255)) != 47) { + return null; + } + int read = ((byte) inputStream.read()) & 255; + return new Pair<>(Integer.valueOf(((((byte) inputStream.read()) & 255) | ((read & 63) << 8)) + 1), Integer.valueOf(((((((byte) inputStream.read()) & 255) & 15) << 10) | ((((byte) inputStream.read()) & 255) << 2) | ((read & 192) >> 6)) + 1)); + } + + @RecentlyNonNull + public static int E1(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + w2(parcel, i, 4); + return parcel.readInt(); + } + + public static void F(@RecentlyNonNull boolean z2) { + if (!z2) { + throw new IllegalStateException(); + } + } + + public static long F0(FileChannel fileChannel, ByteBuffer byteBuffer, long j) throws IOException { + A1(fileChannel, byteBuffer, 4, j); + return ((long) byteBuffer.getInt()) & 4294967295L; + } + + @RecentlyNonNull + public static long F1(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + w2(parcel, i, 8); + return parcel.readLong(); + } + + public static void G(@RecentlyNonNull boolean z2, @RecentlyNonNull Object obj) { + if (!z2) { + throw new IllegalStateException(String.valueOf(obj)); + } + } + + public static final boolean G0(Long l, long j) { + return l != null && (l.longValue() & j) == j; + } + + public static int G1(x xVar) { + int i = 0; + while (xVar.a() != 0) { + int t = xVar.t(); + i += t; + if (t != 255) { + return i; + } + } + return -1; + } + + @EnsuresNonNull({"#1"}) + @Pure + public static T H(@Nullable T t) { + if (t != null) { + return t; + } + throw new IllegalStateException(); + } + + public static boolean H0(byte[] bArr, byte[] bArr2, int i) { + Objects.requireNonNull(bArr); + Objects.requireNonNull(bArr2); + if (bArr2.length + i > bArr.length) { + return false; + } + for (int i2 = 0; i2 < bArr2.length; i2++) { + if (bArr[i + i2] != bArr2[i2]) { + return false; + } + } + return true; + } + + public static int H1(InputStream inputStream, int i, boolean z2) throws IOException { + int i2; + int i3 = 0; + for (int i4 = 0; i4 < i; i4++) { + int read = inputStream.read(); + if (read != -1) { + if (z2) { + i2 = (read & 255) << (i4 * 8); + } else { + i3 <<= 8; + i2 = read & 255; + } + i3 |= i2; + } else { + throw new IOException("no more bytes"); + } + } + return i3; + } + + public static boolean I(byte[] bArr, String str) { + if (bArr.length != str.length()) { + return false; + } + for (int i = 0; i < bArr.length; i++) { + if (str.charAt(i) != bArr[i]) { + return false; + } + } + return true; + } + + public static int I0(int i, int i2) { + return ((i + 31) * 31) + i2; + } + + public static long I1(x xVar, int i, int i2) { + xVar.E(i); + if (xVar.a() < 5) { + return -9223372036854775807L; + } + int f2 = xVar.f(); + if ((8388608 & f2) != 0 || ((2096896 & f2) >> 8) != i2) { + return -9223372036854775807L; + } + if (((f2 & 32) != 0) && xVar.t() >= 7 && xVar.a() >= 7) { + if ((xVar.t() & 16) == 16) { + byte[] bArr = new byte[6]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, 6); + xVar.f970b += 6; + return ((((long) bArr[0]) & 255) << 25) | ((((long) bArr[1]) & 255) << 17) | ((((long) bArr[2]) & 255) << 9) | ((((long) bArr[3]) & 255) << 1) | ((((long) bArr[4]) & 255) >> 7); + } + } + return -9223372036854775807L; + } + + public static void J(long j, x xVar, w[] wVarArr) { + while (true) { + boolean z2 = true; + if (xVar.a() > 1) { + int G1 = G1(xVar); + int G12 = G1(xVar); + int i = xVar.f970b + G12; + if (G12 == -1 || G12 > xVar.a()) { + Log.w("CeaUtil", "Skipping remainder of malformed SEI NAL unit."); + i = xVar.c; + } else if (G1 == 4 && G12 >= 8) { + int t = xVar.t(); + int y2 = xVar.y(); + int f2 = y2 == 49 ? xVar.f() : 0; + int t2 = xVar.t(); + if (y2 == 47) { + xVar.F(1); + } + boolean z3 = t == 181 && (y2 == 49 || y2 == 47) && t2 == 3; + if (y2 == 49) { + if (f2 != 1195456820) { + z2 = false; + } + z3 &= z2; + } + if (z3) { + K(j, xVar, wVarArr); + } + } + xVar.E(i); + } else { + return; + } + } + } + + public static int J0(Object obj, Object obj2) { + int i = 0; + int hashCode = obj == null ? 0 : obj.hashCode(); + if (obj2 != null) { + i = obj2.hashCode(); + } + return I0(hashCode, i); + } + + public static o.a J1(x xVar) { + xVar.F(1); + int v = xVar.v(); + long j = ((long) xVar.f970b) + ((long) v); + int i = v / 18; + long[] jArr = new long[i]; + long[] jArr2 = new long[i]; + int i2 = 0; + while (true) { + if (i2 >= i) { + break; + } + long m = xVar.m(); + if (m == -1) { + jArr = Arrays.copyOf(jArr, i2); + jArr2 = Arrays.copyOf(jArr2, i2); + break; + } + jArr[i2] = m; + jArr2[i2] = xVar.m(); + xVar.F(2); + i2++; + } + xVar.F((int) (j - ((long) xVar.f970b))); + return new o.a(jArr, jArr2); + } + + public static void K(long j, x xVar, w[] wVarArr) { + int t = xVar.t(); + if ((t & 64) != 0) { + xVar.F(1); + int i = (t & 31) * 3; + int i2 = xVar.f970b; + for (w wVar : wVarArr) { + xVar.E(i2); + wVar.c(xVar, i); + if (j != -9223372036854775807L) { + wVar.d(j, 1, i, 0, null); + } + } + } + } + + public static void K0(String str, String str2) { + Log.i(C0(str), str2); + } + + @RecentlyNonNull + public static int K1(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + return (i & SupportMenu.CATEGORY_MASK) != -65536 ? (i >> 16) & 65535 : parcel.readInt(); + } + + public static void L(Drawable drawable, Drawable drawable2) { + if (drawable != null && drawable != drawable2) { + drawable.setBounds(drawable2.getBounds()); + drawable.setChangingConfigurations(drawable2.getChangingConfigurations()); + drawable.setLevel(drawable2.getLevel()); + drawable.setVisible(drawable2.isVisible(), false); + drawable.setState(drawable2.getState()); + } + } + + public static int L0(int i) { + int i2 = 0; + while (i > 0) { + i2++; + i >>>= 1; + } + return i2; + } + + public static z L1(x xVar, boolean z2, boolean z3) throws ParserException { + if (z2) { + l2(3, xVar, false); + } + String q = xVar.q((int) xVar.j()); + long j = xVar.j(); + String[] strArr = new String[((int) j)]; + int length = q.length() + 11 + 4; + for (int i = 0; ((long) i) < j; i++) { + strArr[i] = xVar.q((int) xVar.j()); + length = length + 4 + strArr[i].length(); + } + if (!z3 || (xVar.t() & 1) != 0) { + return new z(q, strArr, length + 1); + } + throw ParserException.a("framing bit expected to be set", null); + } + + @RecentlyNonNull + public static Bundle M(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + Bundle readBundle = parcel.readBundle(); + parcel.setDataPosition(dataPosition + K1); + return readBundle; + } + + public static DataSource M0(Throwable th) { + b.f.e.h hVar = new b.f.e.h(); + Objects.requireNonNull(th); + hVar.k(th, null); + return hVar; + } + + public static void M1(b.C0084b bVar) { + bVar.k = -3.4028235E38f; + bVar.j = Integer.MIN_VALUE; + CharSequence charSequence = bVar.a; + if (charSequence instanceof Spanned) { + if (!(charSequence instanceof Spannable)) { + bVar.a = SpannableString.valueOf(charSequence); + } + CharSequence charSequence2 = bVar.a; + Objects.requireNonNull(charSequence2); + N1((Spannable) charSequence2, b.i.a.c.d3.h.a); + } + } + + @RecentlyNonNull + public static byte[] N(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + byte[] createByteArray = parcel.createByteArray(); + parcel.setDataPosition(dataPosition + K1); + return createByteArray; + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:98:0x01a2, code lost: + if (r0.equals("video/mp2t") == false) goto L_0x01bc; + */ + /* JADX WARNING: Removed duplicated region for block: B:102:0x01b1 */ + /* JADX WARNING: Removed duplicated region for block: B:105:0x01bc */ + /* JADX WARNING: Removed duplicated region for block: B:107:0x01c2 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:108:0x01c4 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:109:0x01c6 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:110:0x01c9 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:111:0x01cc A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:112:0x01ce A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:113:0x01d0 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:114:0x01d3 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:115:0x01d6 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:116:0x01d9 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:117:0x01db A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:118:0x01dd A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:119:0x01e0 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:120:0x01e3 A[ORIG_RETURN, RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x0072 */ + /* JADX WARNING: Removed duplicated region for block: B:31:0x007b */ + /* JADX WARNING: Removed duplicated region for block: B:34:0x0085 */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x0094 */ + /* JADX WARNING: Removed duplicated region for block: B:40:0x00a2 */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x00ae */ + /* JADX WARNING: Removed duplicated region for block: B:46:0x00ba */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x00c8 */ + /* JADX WARNING: Removed duplicated region for block: B:52:0x00d6 */ + /* JADX WARNING: Removed duplicated region for block: B:55:0x00e5 */ + /* JADX WARNING: Removed duplicated region for block: B:58:0x00f1 */ + /* JADX WARNING: Removed duplicated region for block: B:61:0x00ff */ + /* JADX WARNING: Removed duplicated region for block: B:64:0x010d */ + /* JADX WARNING: Removed duplicated region for block: B:67:0x011b */ + /* JADX WARNING: Removed duplicated region for block: B:70:0x0129 */ + /* JADX WARNING: Removed duplicated region for block: B:73:0x0137 */ + /* JADX WARNING: Removed duplicated region for block: B:76:0x0146 */ + /* JADX WARNING: Removed duplicated region for block: B:79:0x0154 */ + /* JADX WARNING: Removed duplicated region for block: B:82:0x0162 */ + /* JADX WARNING: Removed duplicated region for block: B:85:0x016e */ + /* JADX WARNING: Removed duplicated region for block: B:88:0x0179 */ + /* JADX WARNING: Removed duplicated region for block: B:91:0x0184 */ + /* JADX WARNING: Removed duplicated region for block: B:94:0x018f */ + /* JADX WARNING: Removed duplicated region for block: B:97:0x019b */ + /* JADX WARNING: Removed duplicated region for block: B:99:0x01a5 */ + public static int N0(Map> map) { + char c2; + List list = map.get("Content-Type"); + String str = (list == null || list.isEmpty()) ? null : list.get(0); + if (str != null) { + ArrayList arrayList = t.a; + int hashCode = str.hashCode(); + char c3 = 2; + if (hashCode != -1007807498) { + if (hashCode != -586683234) { + if (hashCode == 187090231 && str.equals("audio/mp3")) { + c2 = 2; + if (c2 != 0) { + str = "audio/flac"; + } else if (c2 == 1) { + str = "audio/wav"; + } else if (c2 == 2) { + str = "audio/mpeg"; + } + switch (str.hashCode()) { + case -2123537834: + if (str.equals("audio/eac3-joc")) { + c3 = 0; + break; + } + c3 = 65535; + break; + case -1662384011: + if (str.equals("video/mp2p")) { + c3 = 1; + break; + } + c3 = 65535; + break; + case -1662384007: + break; + case -1662095187: + if (str.equals("video/webm")) { + c3 = 3; + break; + } + c3 = 65535; + break; + case -1606874997: + if (str.equals("audio/amr-wb")) { + c3 = 4; + break; + } + c3 = 65535; + break; + case -1487394660: + if (str.equals("image/jpeg")) { + c3 = 5; + break; + } + c3 = 65535; + break; + case -1248337486: + if (str.equals("application/mp4")) { + c3 = 6; + break; + } + c3 = 65535; + break; + case -1004728940: + if (str.equals("text/vtt")) { + c3 = 7; + break; + } + c3 = 65535; + break; + case -387023398: + if (str.equals("audio/x-matroska")) { + c3 = '\b'; + break; + } + c3 = 65535; + break; + case -43467528: + if (str.equals("application/webm")) { + c3 = '\t'; + break; + } + c3 = 65535; + break; + case 13915911: + if (str.equals("video/x-flv")) { + c3 = '\n'; + break; + } + c3 = 65535; + break; + case 187078296: + if (str.equals("audio/ac3")) { + c3 = 11; + break; + } + c3 = 65535; + break; + case 187078297: + if (str.equals("audio/ac4")) { + c3 = '\f'; + break; + } + c3 = 65535; + break; + case 187078669: + if (str.equals("audio/amr")) { + c3 = '\r'; + break; + } + c3 = 65535; + break; + case 187090232: + if (str.equals("audio/mp4")) { + c3 = 14; + break; + } + c3 = 65535; + break; + case 187091926: + if (str.equals("audio/ogg")) { + c3 = 15; + break; + } + c3 = 65535; + break; + case 187099443: + if (str.equals("audio/wav")) { + c3 = 16; + break; + } + c3 = 65535; + break; + case 1331848029: + if (str.equals("video/mp4")) { + c3 = 17; + break; + } + c3 = 65535; + break; + case 1503095341: + if (str.equals("audio/3gpp")) { + c3 = 18; + break; + } + c3 = 65535; + break; + case 1504578661: + if (str.equals("audio/eac3")) { + c3 = 19; + break; + } + c3 = 65535; + break; + case 1504619009: + if (str.equals("audio/flac")) { + c3 = 20; + break; + } + c3 = 65535; + break; + case 1504831518: + if (str.equals("audio/mpeg")) { + c3 = 21; + break; + } + c3 = 65535; + break; + case 1505118770: + if (str.equals("audio/webm")) { + c3 = 22; + break; + } + c3 = 65535; + break; + case 2039520277: + if (str.equals("video/x-matroska")) { + c3 = 23; + break; + } + c3 = 65535; + break; + default: + c3 = 65535; + break; + } + switch (c3) { + case 0: + case 11: + case 19: + return 0; + case 1: + return 10; + case 2: + return 11; + case 3: + case '\b': + case '\t': + case 22: + case 23: + return 6; + case 4: + case '\r': + case 18: + return 3; + case 5: + return 14; + case 6: + case 14: + case 17: + return 8; + case 7: + return 13; + case '\n': + return 5; + case '\f': + return 1; + case 15: + return 9; + case 16: + return 12; + case 20: + return 4; + case 21: + return 7; + } + } + } else if (str.equals("audio/x-wav")) { + c2 = 1; + if (c2 != 0) { + } + switch (str.hashCode()) { + case -2123537834: + break; + case -1662384011: + break; + case -1662384007: + break; + case -1662095187: + break; + case -1606874997: + break; + case -1487394660: + break; + case -1248337486: + break; + case -1004728940: + break; + case -387023398: + break; + case -43467528: + break; + case 13915911: + break; + case 187078296: + break; + case 187078297: + break; + case 187078669: + break; + case 187090232: + break; + case 187091926: + break; + case 187099443: + break; + case 1331848029: + break; + case 1503095341: + break; + case 1504578661: + break; + case 1504619009: + break; + case 1504831518: + break; + case 1505118770: + break; + case 2039520277: + break; + } + switch (c3) { + } + } + } else if (str.equals("audio/x-flac")) { + c2 = 0; + if (c2 != 0) { + } + switch (str.hashCode()) { + case -2123537834: + break; + case -1662384011: + break; + case -1662384007: + break; + case -1662095187: + break; + case -1606874997: + break; + case -1487394660: + break; + case -1248337486: + break; + case -1004728940: + break; + case -387023398: + break; + case -43467528: + break; + case 13915911: + break; + case 187078296: + break; + case 187078297: + break; + case 187078669: + break; + case 187090232: + break; + case 187091926: + break; + case 187099443: + break; + case 1331848029: + break; + case 1503095341: + break; + case 1504578661: + break; + case 1504619009: + break; + case 1504831518: + break; + case 1505118770: + break; + case 2039520277: + break; + } + switch (c3) { + } + } + c2 = 65535; + if (c2 != 0) { + } + switch (str.hashCode()) { + case -2123537834: + break; + case -1662384011: + break; + case -1662384007: + break; + case -1662095187: + break; + case -1606874997: + break; + case -1487394660: + break; + case -1248337486: + break; + case -1004728940: + break; + case -387023398: + break; + case -43467528: + break; + case 13915911: + break; + case 187078296: + break; + case 187078297: + break; + case 187078669: + break; + case 187090232: + break; + case 187091926: + break; + case 187099443: + break; + case 1331848029: + break; + case 1503095341: + break; + case 1504578661: + break; + case 1504619009: + break; + case 1504831518: + break; + case 1505118770: + break; + case 2039520277: + break; + } + switch (c3) { + } + } + return -1; + } + + public static void N1(Spannable spannable, b.i.b.a.h hVar) { + Object[] spans = spannable.getSpans(0, spannable.length(), Object.class); + for (Object obj : spans) { + if (hVar.apply(obj)) { + spannable.removeSpan(obj); + } + } + } + + public static final MediaSource O(MediaType mediaType, String str, String str2) { + m.checkNotNullParameter(mediaType, "mediaType"); + m.checkNotNullParameter(str, "progressiveMediaUri"); + m.checkNotNullParameter(str2, "featureTag"); + Uri parse = Uri.parse(str); + m.checkNotNullExpressionValue(parse, "Uri.parse(progressiveMediaUri)"); + return new MediaSource(parse, str2, mediaType); + } + + public static int O0(Uri uri) { + String lastPathSegment = uri.getLastPathSegment(); + if (lastPathSegment == null) { + return -1; + } + if (lastPathSegment.endsWith(".ac3") || lastPathSegment.endsWith(".ec3")) { + return 0; + } + if (lastPathSegment.endsWith(".ac4")) { + return 1; + } + if (lastPathSegment.endsWith(".adts") || lastPathSegment.endsWith(".aac")) { + return 2; + } + if (lastPathSegment.endsWith(".amr")) { + return 3; + } + if (lastPathSegment.endsWith(".flac")) { + return 4; + } + if (lastPathSegment.endsWith(".flv")) { + return 5; + } + if (lastPathSegment.startsWith(".mk", lastPathSegment.length() - 4) || lastPathSegment.endsWith(".webm")) { + return 6; + } + if (lastPathSegment.endsWith(".mp3")) { + return 7; + } + if (lastPathSegment.endsWith(".mp4") || lastPathSegment.startsWith(".m4", lastPathSegment.length() - 4) || lastPathSegment.startsWith(".mp4", lastPathSegment.length() - 5) || lastPathSegment.startsWith(".cmf", lastPathSegment.length() - 5)) { + return 8; + } + if (lastPathSegment.startsWith(".og", lastPathSegment.length() - 4) || lastPathSegment.endsWith(".opus")) { + return 9; + } + if (lastPathSegment.endsWith(".ps") || lastPathSegment.endsWith(".mpeg") || lastPathSegment.endsWith(".mpg") || lastPathSegment.endsWith(".m2p")) { + return 10; + } + if (lastPathSegment.endsWith(".ts") || lastPathSegment.startsWith(".ts", lastPathSegment.length() - 4)) { + return 11; + } + if (lastPathSegment.endsWith(".wav") || lastPathSegment.endsWith(".wave")) { + return 12; + } + if (lastPathSegment.endsWith(".vtt") || lastPathSegment.endsWith(".webvtt")) { + return 13; + } + return (lastPathSegment.endsWith(".jpg") || lastPathSegment.endsWith(".jpeg")) ? 14 : -1; + } + + public static void O1(File file, File file2) throws FileUtils$RenameException { + Objects.requireNonNull(file); + file2.delete(); + if (!file.renameTo(file2)) { + Throwable th = null; + if (file2.exists()) { + th = new FileUtils$FileDeleteException(file2.getAbsolutePath()); + } else if (!file.getParentFile().exists()) { + th = new FileUtils$ParentDirNotFoundException(file.getAbsolutePath()); + } else if (!file.exists()) { + th = new FileNotFoundException(file.getAbsolutePath()); + } + StringBuilder R = b.d.b.a.a.R("Unknown error renaming "); + R.append(file.getAbsolutePath()); + R.append(" to "); + R.append(file2.getAbsolutePath()); + throw new FileUtils$RenameException(R.toString(), th); + } + } + + @RecentlyNonNull + public static T P(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull Parcelable.Creator creator) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + T createFromParcel = creator.createFromParcel(parcel); + parcel.setDataPosition(dataPosition + K1); + return createFromParcel; + } + + public static void P0(String str) { + throw new IllegalArgumentException(b.d.b.a.a.v("Unknown library: ", str)); + } + + public static final RenderContext P1(Function1 function1, Object... objArr) { + m.checkNotNullParameter(function1, "init"); + m.checkNotNullParameter(objArr, "orderedArguments"); + RenderContext renderContext = new RenderContext(); + function1.invoke(renderContext); + if (!(objArr.length == 0)) { + if (!(!renderContext.a.isEmpty())) { + renderContext.c = k.toList(objArr); + } else { + throw new IllegalArgumentException("must provide named arguments OR formatArgs, not both."); + } + } + return renderContext; + } + + @RecentlyNonNull + public static String Q(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + String readString = parcel.readString(); + parcel.setDataPosition(dataPosition + K1); + return readString; + } + + public static boolean Q0(XmlPullParser xmlPullParser, String str) throws XmlPullParserException { + return (xmlPullParser.getEventType() == 3) && xmlPullParser.getName().equals(str); + } + + public static /* synthetic */ void Q1(AppPermissionsRequests appPermissionsRequests, Function0 function0, Function0 function02, int i, Object obj) { + int i2 = i & 1; + appPermissionsRequests.requestMicrophone(null, function02); + } + + @RecentlyNonNull + public static String[] R(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + String[] createStringArray = parcel.createStringArray(); + parcel.setDataPosition(dataPosition + K1); + return createStringArray; + } + + public static boolean R0(int i, int i2, e eVar) { + return eVar == null ? ((float) n0(i)) >= 2048.0f && n0(i2) >= 2048 : n0(i) >= eVar.a && n0(i2) >= eVar.f554b; + } + + @Nullable + public static f R1(@Nullable f fVar, @Nullable String[] strArr, Map map) { + int i = 0; + if (fVar == null) { + if (strArr == null) { + return null; + } + if (strArr.length == 1) { + return map.get(strArr[0]); + } + if (strArr.length > 1) { + f fVar2 = new f(); + int length = strArr.length; + while (i < length) { + fVar2.a(map.get(strArr[i])); + i++; + } + return fVar2; + } + } else if (strArr != null && strArr.length == 1) { + fVar.a(map.get(strArr[0])); + return fVar; + } else if (strArr != null && strArr.length > 1) { + int length2 = strArr.length; + while (i < length2) { + fVar.a(map.get(strArr[i])); + i++; + } + } + return fVar; + } + + @RecentlyNonNull + public static ArrayList S(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + ArrayList createStringArrayList = parcel.createStringArrayList(); + parcel.setDataPosition(dataPosition + K1); + return createStringArrayList; + } + + public static boolean S0(b.f.j.j.e eVar, e eVar2) { + if (eVar == null) { + return false; + } + eVar.u(); + int i = eVar.m; + if (i == 90 || i == 270) { + eVar.u(); + int i2 = eVar.p; + eVar.u(); + return R0(i2, eVar.o, eVar2); + } + eVar.u(); + int i3 = eVar.o; + eVar.u(); + return R0(i3, eVar.p, eVar2); + } + + public static float S1(int i, float f2, int i2, int i3) { + float f3; + if (f2 == -3.4028235E38f) { + return -3.4028235E38f; + } + if (i == 0) { + f3 = (float) i3; + } else if (i == 1) { + f3 = (float) i2; + } else if (i != 2) { + return -3.4028235E38f; + } else { + return f2; + } + return f2 * f3; + } + + @RecentlyNonNull + public static T[] T(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull Parcelable.Creator creator) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + T[] tArr = (T[]) parcel.createTypedArray(creator); + parcel.setDataPosition(dataPosition + K1); + return tArr; + } + + public static final boolean T0(Context context) { + m.checkNotNullParameter(context, "$this$isLtr"); + return TextUtilsCompat.getLayoutDirectionFromLocale(Locale.getDefault()) == 0; + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + public static TResult T1(int i, TInput tinput, b.i.a.b.i.b bVar, b.i.a.b.j.s.a aVar) throws Throwable { + TResult tresult; + if (i < 1) { + return (TResult) bVar.a(tinput); + } + do { + tresult = (TResult) bVar.a(tinput); + TInput tinput2 = tinput; + TResult tresult2 = tresult; + URL url = tresult2.f732b; + if (url != null) { + W("CctTransportBackend", "Following redirect to: %s", url); + tinput = new d.a(tresult2.f732b, tinput2.f731b, tinput2.c); + } else { + tinput = null; + } + if (tinput == null) { + break; + } + i--; + } while (i >= 1); + return tresult; + } + + @RecentlyNonNull + public static ArrayList U(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull Parcelable.Creator creator) { + int K1 = K1(parcel, i); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + return null; + } + ArrayList createTypedArrayList = parcel.createTypedArrayList(creator); + parcel.setDataPosition(dataPosition + K1); + return createTypedArrayList; + } + + public static final boolean U0(VoiceState voiceState) { + m.checkNotNullParameter(voiceState, "$this$isMutedByAnySource"); + return voiceState.h() || voiceState.e() || voiceState.l(); + } + + public static String U1(CacheKey cacheKey) throws UnsupportedEncodingException { + byte[] bytes = cacheKey.b().getBytes(Constants.ENCODING); + try { + MessageDigest instance = MessageDigest.getInstance(Constants.SHA1); + instance.update(bytes, 0, bytes.length); + return Base64.encodeToString(instance.digest(), 11); + } catch (NoSuchAlgorithmException e2) { + throw new RuntimeException(e2); + } + } + + public static String V(String str) { + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(str, b.d.b.a.a.b(str, 5)), ".", str, ",.", str); + Q.append(" *"); + return Q.toString(); + } + + public static final boolean V0(StageInstance stageInstance) { + m.checkNotNullParameter(stageInstance, "$this$isPublic"); + return stageInstance.e() == StageInstancePrivacyLevel.PUBLIC; + } + + public static void V1(Drawable drawable, Drawable.Callback callback, e0 e0Var) { + if (drawable != null) { + drawable.setCallback(callback); + if (drawable instanceof d0) { + ((d0) drawable).b(e0Var); + } + } + } + + public static void W(String str, String str2, Object obj) { + Log.d(C0(str), String.format(str2, obj)); + } + + public static final boolean W0(VoiceState voiceState) { + m.checkNotNullParameter(voiceState, "$this$isRemoveSignal"); + return voiceState.a() == null; + } + + public static void W1(MediaFormat mediaFormat, List list) { + for (int i = 0; i < list.size(); i++) { + mediaFormat.setByteBuffer(b.d.b.a.a.f(15, "csd-", i), ByteBuffer.wrap(list.get(i))); + } + } + + public static void X(String str, String str2, Object... objArr) { + Log.d(C0(str), String.format(str2, objArr)); + } + + public static boolean X0(XmlPullParser xmlPullParser, String str) throws XmlPullParserException { + return (xmlPullParser.getEventType() == 2) && xmlPullParser.getName().equals(str); + } + + public static void X1(Drawable drawable, b.f.g.e.e eVar) { + if (drawable != null && eVar != null) { + int i = eVar.a; + if (i != -1) { + drawable.setAlpha(i); + } + if (eVar.f497b) { + drawable.setColorFilter(eVar.c); + } + int i2 = eVar.d; + boolean z2 = false; + if (i2 != -1) { + drawable.setDither(i2 != 0); + } + int i3 = eVar.e; + if (i3 != -1) { + if (i3 != 0) { + z2 = true; + } + drawable.setFilterBitmap(z2); + } + } + } + + public static boolean Y(File file) { + File[] listFiles; + if (file.isDirectory() && (listFiles = file.listFiles()) != null) { + for (File file2 : listFiles) { + Y(file2); + } + } + return file.delete(); + } + + @RecentlyNonNull + @TargetApi(20) + public static boolean Y0(@RecentlyNonNull Context context) { + PackageManager packageManager = context.getPackageManager(); + if (c == null) { + c = Boolean.valueOf(packageManager.hasSystemFeature("android.hardware.type.watch")); + } + return c.booleanValue(); + } + + public static void Y1(Status status, @Nullable TResult tresult, TaskCompletionSource taskCompletionSource) { + if (status.w0()) { + taskCompletionSource.a.t(tresult); + return; + } + taskCompletionSource.a.s(new ApiException(status)); + } + + /* JADX WARNING: Removed duplicated region for block: B:38:0x009c */ + /* JADX WARNING: Removed duplicated region for block: B:44:0x00b2 */ + /* JADX WARNING: Removed duplicated region for block: B:51:0x00dd */ + /* JADX WARNING: Removed duplicated region for block: B:52:0x00e0 */ + /* JADX WARNING: Removed duplicated region for block: B:55:0x00ea */ + public static int Z(b.f.j.d.f fVar, e eVar, b.f.j.j.e eVar2, int i) { + float f2; + int max; + float f3; + int i2; + int i3; + int i4; + int i5 = 1; + if (!b.f.j.j.e.q(eVar2)) { + return 1; + } + i(Boolean.valueOf(b.f.j.j.e.q(eVar2))); + if (eVar != null && eVar.f554b > 0 && eVar.a > 0) { + eVar2.u(); + if (eVar2.o != 0) { + eVar2.u(); + if (eVar2.p != 0) { + boolean z2 = false; + if (!fVar.c()) { + i2 = 0; + } else { + eVar2.u(); + i2 = eVar2.m; + i(Boolean.valueOf(i2 == 0 || i2 == 90 || i2 == 180 || i2 == 270)); + } + if (i2 == 90 || i2 == 270) { + z2 = true; + } + if (z2) { + eVar2.u(); + i3 = eVar2.p; + } else { + eVar2.u(); + i3 = eVar2.o; + } + if (z2) { + eVar2.u(); + i4 = eVar2.o; + } else { + eVar2.u(); + i4 = eVar2.p; + } + f2 = Math.max(((float) eVar.a) / ((float) i3), ((float) eVar.f554b) / ((float) i4)); + int i6 = b.f.d.e.a.a; + eVar2.u(); + int i7 = 2; + if (eVar2.l != b.f.i.b.a) { + if (f2 <= 0.6666667f) { + i5 = 2; + while (true) { + int i8 = i5 * 2; + double d2 = 1.0d / ((double) i8); + if ((d2 * 0.3333333432674408d) + d2 <= ((double) f2)) { + break; + } + i5 = i8; + } + } + } else if (f2 <= 0.6666667f) { + while (true) { + double d3 = (double) i7; + if (((1.0d / (Math.pow(d3, 2.0d) - d3)) * 0.3333333432674408d) + (1.0d / d3) <= ((double) f2)) { + break; + } + i7++; + } + i5 = i7 - 1; + } + eVar2.u(); + int i9 = eVar2.p; + eVar2.u(); + max = Math.max(i9, eVar2.o); + f3 = eVar == null ? eVar.c : (float) i; + while (((float) (max / i5)) > f3) { + eVar2.u(); + i5 = eVar2.l == b.f.i.b.a ? i5 * 2 : i5 + 1; + } + return i5; + } + } + } + f2 = 1.0f; + eVar2.u(); + int i7 = 2; + if (eVar2.l != b.f.i.b.a) { + } + eVar2.u(); + int i9 = eVar2.p; + eVar2.u(); + max = Math.max(i9, eVar2.o); + if (eVar == null) { + } + while (((float) (max / i5)) > f3) { + } + return i5; + } + + @RecentlyNonNull + @TargetApi(26) + public static boolean Z0(@RecentlyNonNull Context context) { + if (Y0(context)) { + if (Build.VERSION.SDK_INT >= 24) { + if (d == null) { + d = Boolean.valueOf(context.getPackageManager().hasSystemFeature("cn.google")); + } + if (!d.booleanValue() || b.i.a.f.e.o.f.y0()) { + } + } + return true; + } + return false; + } + + public static boolean Z1(Object obj, Collection collection, Collection collection2) { + if (collection == null && collection2 == null) { + return false; + } + return collection2 == null ? collection.contains(obj) : collection == null ? !collection2.contains(obj) : !collection2.contains(obj) || collection.contains(obj); + } + + public static float a(float f2) { + return f2 <= 0.04045f ? f2 / 12.92f : (float) Math.pow((double) ((f2 + 0.055f) / 1.055f), 2.4000000953674316d); + } + + public static void a0(File file) throws IOException { + if (file.isDirectory()) { + File[] listFiles = file.listFiles(); + if (listFiles != null) { + for (File file2 : listFiles) { + a0(file2); + } + } else { + return; + } + } + if (!file.delete() && file.exists()) { + throw new IOException("could not delete: " + file); + } + } + + public static final void a1(String str, String str2) { + m.checkNotNullParameter(str, "tag"); + m.checkNotNullParameter(str2, NotificationCompat.CATEGORY_MESSAGE); + Logger.d$default(LoggingProvider.INSTANCE.get(), str, str2, null, 4, null); + } + + public static long a2(InputStream inputStream, long j) throws IOException { + i(Boolean.valueOf(j >= 0)); + long j2 = j; + while (j2 > 0) { + long skip = inputStream.skip(j2); + if (skip <= 0) { + if (inputStream.read() == -1) { + return j - j2; + } + skip = 1; + } + j2 -= skip; + } + return j; + } + + public static float b(float f2) { + return f2 <= 0.0031308f ? f2 * 12.92f : (float) ((Math.pow((double) f2, 0.4166666567325592d) * 1.0549999475479126d) - 0.054999999701976776d); + } + + public static void b0(String str, String str2, Throwable th) { + Log.e(C0(str), str2, th); + } + + public static final void b1(String str, String str2, Throwable th) { + m.checkNotNullParameter(str, "tag"); + m.checkNotNullParameter(str2, NotificationCompat.CATEGORY_MESSAGE); + Logger.e$default(LoggingProvider.INSTANCE.get(), str, str2, th, null, 8, null); + } + + public static void b2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + parcel.setDataPosition(parcel.dataPosition() + K1(parcel, i)); + } + + public static void c(Spannable spannable, Object obj, int i, int i2, int i3) { + Object[] spans = spannable.getSpans(i, i2, obj.getClass()); + for (Object obj2 : spans) { + if (spannable.getSpanStart(obj2) == i && spannable.getSpanEnd(obj2) == i2 && spannable.getSpanFlags(obj2) == i3) { + spannable.removeSpan(obj2); + } + } + spannable.setSpan(obj, i, i2, i3); + } + + public static void c0() { + if (b.i.a.c.f3.e0.a >= 18) { + Trace.endSection(); + } + } + + public static final void c1(String str, String str2) { + m.checkNotNullParameter(str, "tag"); + m.checkNotNullParameter(str2, NotificationCompat.CATEGORY_MESSAGE); + Logger.i$default(LoggingProvider.INSTANCE.get(), str, str2, null, 4, null); + } + + public static final

Bundle c2(P p) { + m.checkNotNullParameter(p, "$this$toBundle"); + Bundle bundle = new Bundle(); + bundle.putParcelable("intent_args_key", p); + return bundle; + } + + public static int d(int i, int i2, int i3) { + return Math.min(Math.max(0, i3 - i), i2); + } + + public static synchronized void d0() { + synchronized (d.class) { + if (!a) { + b.f.m.n.a.c("native-imagetranscoder"); + a = true; + } + } + } + + public static final void d1(String str, String str2) { + m.checkNotNullParameter(str, "tag"); + m.checkNotNullParameter(str2, NotificationCompat.CATEGORY_MESSAGE); + Logger.v$default(LoggingProvider.INSTANCE.get(), str, str2, null, 4, null); + } + + public static String d2(@ColorInt int i) { + return b.i.a.c.f3.e0.k("rgba(%d,%d,%d,%.3f)", Integer.valueOf(Color.red(i)), Integer.valueOf(Color.green(i)), Integer.valueOf(Color.blue(i)), Double.valueOf(((double) Color.alpha(i)) / 255.0d)); + } + + public static byte[] e(String str) { + try { + return str.getBytes("ASCII"); + } catch (UnsupportedEncodingException e2) { + throw new RuntimeException("ASCII not found!", e2); + } + } + + public static void e0(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i) { + if (parcel.dataPosition() != i) { + throw new SafeParcelReader$ParseException(b.d.b.a.a.f(37, "Overread allowed size end=", i), parcel); + } + } + + public static final void e1(String str, String str2) { + m.checkNotNullParameter(str, "tag"); + m.checkNotNullParameter(str2, NotificationCompat.CATEGORY_MESSAGE); + Logger.w$default(LoggingProvider.INSTANCE.get(), str, str2, null, 4, null); + } + + public static final

Intent e2(P p) { + m.checkNotNullParameter(p, "$this$toIntent"); + Intent putExtra = new Intent().putExtra("intent_args_key", p); + m.checkNotNullExpressionValue(putExtra, "Intent().putExtra(INTENT_ARGS, this)"); + return putExtra; + } + + public static void f(String str) { + if (b.i.a.c.f3.e0.a >= 18) { + Trace.beginSection(str); + } + } + + public static boolean f0(Object obj, Object obj2) { + return obj == obj2 || (obj != null && obj.equals(obj2)); + } + + public static ParameterizedType f1(Type type) { + if (type instanceof ParameterizedType) { + return (ParameterizedType) type; + } + if (type instanceof WildcardType) { + WildcardType wildcardType = (WildcardType) type; + if (wildcardType.getLowerBounds().length != 0) { + return null; + } + Type[] upperBounds = wildcardType.getUpperBounds(); + if (upperBounds.length == 1) { + return f1(upperBounds[0]); + } + } + return null; + } + + public static i f2(Object obj) { + return new i(obj.getClass().getSimpleName(), null); + } + + public static List g(byte[] bArr) { + ArrayList arrayList = new ArrayList(3); + arrayList.add(bArr); + arrayList.add(h((((long) (((bArr[11] & 255) << 8) | (bArr[10] & 255))) * 1000000000) / 48000)); + arrayList.add(h(80000000)); + return arrayList; + } + + @RecentlyNonNull + public static boolean g0(@Nullable Object obj, @Nullable Object obj2) { + if (obj != obj2) { + return obj != null && obj.equals(obj2); + } + return true; + } + + public static TypeVariable g1(Type type) { + if (type instanceof TypeVariable) { + return (TypeVariable) type; + } + if (type instanceof WildcardType) { + WildcardType wildcardType = (WildcardType) type; + if (wildcardType.getLowerBounds().length != 0) { + return null; + } + Type[] upperBounds = wildcardType.getUpperBounds(); + if (upperBounds.length == 1) { + return g1(upperBounds[0]); + } + } + return null; + } + + public static void g2(Collection collection, b.a.t.b.c.a aVar) { + for (Node node : collection) { + h2(node, aVar); + } + } + + public static byte[] h(long j) { + return ByteBuffer.allocate(8).order(ByteOrder.nativeOrder()).putLong(j).array(); + } + + public static int h0(float f2, int i, int i2) { + if (i == i2) { + return i; + } + float f3 = ((float) ((i >> 24) & 255)) / 255.0f; + float a2 = a(((float) ((i >> 16) & 255)) / 255.0f); + float a3 = a(((float) ((i >> 8) & 255)) / 255.0f); + float a4 = a(((float) (i & 255)) / 255.0f); + float a5 = a(((float) ((i2 >> 16) & 255)) / 255.0f); + float a6 = a(((float) ((i2 >> 8) & 255)) / 255.0f); + float a7 = a(((float) (i2 & 255)) / 255.0f); + float a8 = b.d.b.a.a.a(((float) ((i2 >> 24) & 255)) / 255.0f, f3, f2, f3); + float a9 = b.d.b.a.a.a(a5, a2, f2, a2); + float a10 = b.d.b.a.a.a(a6, a3, f2, a3); + float a11 = b.d.b.a.a.a(a7, a4, f2, a4); + int round = Math.round(b(a9) * 255.0f) << 16; + return Math.round(b(a11) * 255.0f) | round | (Math.round(a8 * 255.0f) << 24) | (Math.round(b(a10) * 255.0f) << 8); + } + + public static void h1(MediaFormat mediaFormat, String str, int i) { + if (i != -1) { + mediaFormat.setInteger(str, i); + } + } + + public static void h2(Node node, b.a.t.b.c.a aVar) { + if (node.hasChildren()) { + for (Node node2 : node.getChildren()) { + h2(node2, aVar); + } + } + aVar.processNode(node); + } + + public static void i(Boolean bool) { + if (bool != null && !bool.booleanValue()) { + throw new IllegalArgumentException(); + } + } + + public static String[] i0(FileChannel fileChannel) throws IOException { + long j; + long j2; + long j3; + long j4; + long j5; + long j6; + long j7; + long j8; + long j9; + long j10; + long j11; + long j12; + long j13; + long j14; + int i = 8; + ByteBuffer allocate = ByteBuffer.allocate(8); + allocate.order(ByteOrder.LITTLE_ENDIAN); + if (F0(fileChannel, allocate, 0) == 1179403647) { + A1(fileChannel, allocate, 1, 4); + boolean z2 = ((short) (allocate.get() & 255)) == 1; + A1(fileChannel, allocate, 1, 5); + if (((short) (allocate.get() & 255)) == 2) { + allocate.order(ByteOrder.BIG_ENDIAN); + } + if (z2) { + j = F0(fileChannel, allocate, 28); + } else { + A1(fileChannel, allocate, 8, 32); + j = allocate.getLong(); + } + if (z2) { + A1(fileChannel, allocate, 2, 44); + j2 = (long) (allocate.getShort() & 65535); + } else { + A1(fileChannel, allocate, 2, 56); + j2 = (long) (allocate.getShort() & 65535); + } + A1(fileChannel, allocate, 2, z2 ? 42 : 54); + int i2 = allocate.getShort() & 65535; + if (j2 == 65535) { + if (z2) { + j14 = F0(fileChannel, allocate, 32); + } else { + A1(fileChannel, allocate, 8, 40); + j14 = allocate.getLong(); + } + j2 = z2 ? F0(fileChannel, allocate, j14 + 28) : F0(fileChannel, allocate, j14 + 44); + } + long j15 = j; + long j16 = 0; + while (true) { + if (j16 >= j2) { + j3 = 0; + break; + } + if ((z2 ? F0(fileChannel, allocate, j15 + 0) : F0(fileChannel, allocate, j15 + 0)) != 2) { + j15 += (long) i2; + j16++; + } else if (z2) { + j3 = F0(fileChannel, allocate, j15 + 4); + } else { + A1(fileChannel, allocate, 8, j15 + 8); + j3 = allocate.getLong(); + } + } + long j17 = 0; + if (j3 != 0) { + long j18 = j3; + long j19 = 0; + int i3 = 0; + while (true) { + long j20 = j18 + j17; + if (z2) { + j4 = F0(fileChannel, allocate, j20); + } else { + A1(fileChannel, allocate, i, j20); + j4 = allocate.getLong(); + } + if (j4 == 1) { + j5 = j3; + if (i3 != Integer.MAX_VALUE) { + i3++; + } else { + throw new h("malformed DT_NEEDED section"); + } + } else { + j5 = j3; + if (j4 == 5) { + if (z2) { + j13 = F0(fileChannel, allocate, j18 + 4); + } else { + A1(fileChannel, allocate, 8, j18 + 8); + j13 = allocate.getLong(); + } + j19 = j13; + } + } + long j21 = 16; + j18 += z2 ? 8 : 16; + long j22 = 0; + if (j4 != 0) { + j17 = 0; + j3 = j5; + i = 8; + } else if (j19 != 0) { + int i4 = 0; + while (true) { + if (((long) i4) >= j2) { + j6 = 0; + break; + } + if ((z2 ? F0(fileChannel, allocate, j + j22) : F0(fileChannel, allocate, j + j22)) == 1) { + if (z2) { + j10 = F0(fileChannel, allocate, j + 8); + } else { + A1(fileChannel, allocate, 8, j + j21); + j10 = allocate.getLong(); + } + if (z2) { + j9 = j2; + j11 = F0(fileChannel, allocate, j + 20); + } else { + j9 = j2; + A1(fileChannel, allocate, 8, j + 40); + j11 = allocate.getLong(); + } + if (j10 <= j19 && j19 < j11 + j10) { + if (z2) { + j12 = F0(fileChannel, allocate, j + 4); + } else { + A1(fileChannel, allocate, 8, j + 8); + j12 = allocate.getLong(); + } + j6 = j12 + (j19 - j10); + } + } else { + j9 = j2; + } + j += (long) i2; + i4++; + j2 = j9; + j21 = 16; + j22 = 0; + } + long j23 = 0; + if (j6 != 0) { + String[] strArr = new String[i3]; + int i5 = 0; + while (true) { + long j24 = j5 + j23; + if (z2) { + j7 = F0(fileChannel, allocate, j24); + } else { + A1(fileChannel, allocate, 8, j24); + j7 = allocate.getLong(); + } + if (j7 == 1) { + if (z2) { + j8 = F0(fileChannel, allocate, j5 + 4); + } else { + A1(fileChannel, allocate, 8, j5 + 8); + j8 = allocate.getLong(); + } + long j25 = j8 + j6; + StringBuilder sb = new StringBuilder(); + while (true) { + long j26 = j25 + 1; + A1(fileChannel, allocate, 1, j25); + short s2 = (short) (allocate.get() & 255); + if (s2 == 0) { + break; + } + sb.append((char) s2); + j25 = j26; + } + strArr[i5] = sb.toString(); + if (i5 != Integer.MAX_VALUE) { + i5++; + } else { + throw new h("malformed DT_NEEDED section"); + } + } + j5 += z2 ? 8 : 16; + if (j7 != 0) { + j23 = 0; + } else if (i5 == i3) { + return strArr; + } else { + throw new h("malformed DT_NEEDED section"); + } + } + } else { + throw new h("did not find file offset of DT_STRTAB table"); + } + } else { + throw new h("Dynamic section string-table not found"); + } + } + } else { + throw new h("ELF file does not contain dynamic linking information"); + } + } else { + throw new h("file is not ELF"); + } + } + + public static String i1(String str, String str2) { + int length = str.length() - str2.length(); + if (length < 0 || length > 1) { + throw new IllegalArgumentException("Invalid input received"); + } + StringBuilder sb = new StringBuilder(str2.length() + str.length()); + for (int i = 0; i < str.length(); i++) { + sb.append(str.charAt(i)); + if (str2.length() > i) { + sb.append(str2.charAt(i)); + } + } + return sb.toString(); + } + + public static void i2(Node node, b.a.t.b.c.a aVar) { + aVar.processNode(node); + if (node.hasChildren()) { + for (Node node2 : node.getChildren()) { + i2(node2, aVar); + } + } + } + + @Pure + public static void j(boolean z2) { + if (!z2) { + throw new IllegalArgumentException(); + } + } + + public static String j0(String str, Object... objArr) { + int indexOf; + String valueOf = String.valueOf(str); + StringBuilder sb = new StringBuilder((objArr.length * 16) + valueOf.length()); + int i = 0; + int i2 = 0; + while (i < objArr.length && (indexOf = valueOf.indexOf("%s", i2)) != -1) { + sb.append(valueOf.substring(i2, indexOf)); + sb.append(objArr[i]); + i2 = indexOf + 2; + i++; + } + sb.append(valueOf.substring(i2)); + if (i < objArr.length) { + sb.append(" ["); + sb.append(objArr[i]); + for (int i3 = i + 1; i3 < objArr.length; i3++) { + sb.append(", "); + sb.append(objArr[i3]); + } + sb.append(']'); + } + return sb.toString(); + } + + public static void j1(File file) throws FileUtils$CreateDirectoryException { + if (file.exists()) { + if (!file.isDirectory()) { + if (!file.delete()) { + throw new FileUtils$CreateDirectoryException(file.getAbsolutePath(), new FileUtils$FileDeleteException(file.getAbsolutePath())); + } + } else { + return; + } + } + if (!file.mkdirs() && !file.isDirectory()) { + throw new FileUtils$CreateDirectoryException(file.getAbsolutePath()); + } + } + + /* JADX INFO: finally extract failed */ + /* JADX WARNING: Code restructure failed: missing block: B:142:0x024a, code lost: + if (r15 != false) goto L_0x0266; + */ + /* JADX WARNING: Code restructure failed: missing block: B:156:0x0264, code lost: + if (r16 != false) goto L_0x0266; + */ + public static b.f.g.f.a j2(b.f.g.f.a aVar, Context context, AttributeSet attributeSet) { + int i; + int i2; + boolean z2; + boolean z3; + boolean z4; + boolean z5; + boolean z6; + boolean z7; + int i3; + boolean z8; + int i4; + boolean z9; + boolean z10; + Context context2 = context; + int i5 = 1; + if (attributeSet != null) { + TypedArray obtainStyledAttributes = context2.obtainStyledAttributes(attributeSet, R.a.GenericDraweeHierarchy); + try { + int indexCount = obtainStyledAttributes.getIndexCount(); + int i6 = 0; + int i7 = 0; + i = 0; + boolean z11 = true; + boolean z12 = true; + boolean z13 = true; + boolean z14 = true; + boolean z15 = true; + boolean z16 = true; + boolean z17 = true; + boolean z18 = true; + while (i6 < indexCount) { + int index = obtainStyledAttributes.getIndex(i6); + if (index == R.a.GenericDraweeHierarchy_actualImageScaleType) { + aVar.n = z0(obtainStyledAttributes, index); + } else if (index == R.a.GenericDraweeHierarchy_placeholderImage) { + aVar.f = t0(context2, obtainStyledAttributes, index); + } else { + if (index == R.a.GenericDraweeHierarchy_pressedStateOverlayImage) { + Drawable t0 = t0(context2, obtainStyledAttributes, index); + if (t0 == null) { + aVar.q = null; + } else { + StateListDrawable stateListDrawable = new StateListDrawable(); + i3 = indexCount; + int[] iArr = new int[i5]; + iArr[0] = 16842919; + stateListDrawable.addState(iArr, t0); + aVar.q = stateListDrawable; + } + } else { + i3 = indexCount; + if (index == R.a.GenericDraweeHierarchy_progressBarImage) { + aVar.l = t0(context2, obtainStyledAttributes, index); + } else if (index == R.a.GenericDraweeHierarchy_fadeDuration) { + aVar.d = obtainStyledAttributes.getInt(index, 0); + } else if (index == R.a.GenericDraweeHierarchy_viewAspectRatio) { + aVar.e = obtainStyledAttributes.getFloat(index, 0.0f); + } else if (index == R.a.GenericDraweeHierarchy_placeholderImageScaleType) { + aVar.g = z0(obtainStyledAttributes, index); + } else if (index == R.a.GenericDraweeHierarchy_retryImage) { + aVar.h = t0(context2, obtainStyledAttributes, index); + } else if (index == R.a.GenericDraweeHierarchy_retryImageScaleType) { + aVar.i = z0(obtainStyledAttributes, index); + } else if (index == R.a.GenericDraweeHierarchy_failureImage) { + aVar.j = t0(context2, obtainStyledAttributes, index); + } else if (index == R.a.GenericDraweeHierarchy_failureImageScaleType) { + aVar.k = z0(obtainStyledAttributes, index); + } else if (index == R.a.GenericDraweeHierarchy_progressBarImageScaleType) { + aVar.m = z0(obtainStyledAttributes, index); + } else { + if (index == R.a.GenericDraweeHierarchy_progressBarAutoRotateInterval) { + i = obtainStyledAttributes.getInteger(index, i); + } else if (index == R.a.GenericDraweeHierarchy_backgroundImage) { + aVar.o = t0(context2, obtainStyledAttributes, index); + } else if (index == R.a.GenericDraweeHierarchy_overlayImage) { + aVar.b(t0(context2, obtainStyledAttributes, index)); + } else if (index == R.a.GenericDraweeHierarchy_roundAsCircle) { + if (aVar.r == null) { + aVar.r = new c(); + } + aVar.r.f514b = obtainStyledAttributes.getBoolean(index, false); + } else if (index == R.a.GenericDraweeHierarchy_roundedCornerRadius) { + i7 = obtainStyledAttributes.getDimensionPixelSize(index, i7); + } else if (index == R.a.GenericDraweeHierarchy_roundTopLeft) { + z11 = obtainStyledAttributes.getBoolean(index, z11); + } else if (index == R.a.GenericDraweeHierarchy_roundTopRight) { + z14 = obtainStyledAttributes.getBoolean(index, z14); + } else { + if (index == R.a.GenericDraweeHierarchy_roundBottomLeft) { + z9 = obtainStyledAttributes.getBoolean(index, z18); + } else { + z9 = z18; + if (index == R.a.GenericDraweeHierarchy_roundBottomRight) { + z15 = obtainStyledAttributes.getBoolean(index, z15); + } else if (index == R.a.GenericDraweeHierarchy_roundTopStart) { + z12 = obtainStyledAttributes.getBoolean(index, z12); + } else if (index == R.a.GenericDraweeHierarchy_roundTopEnd) { + z13 = obtainStyledAttributes.getBoolean(index, z13); + } else { + if (index == R.a.GenericDraweeHierarchy_roundBottomStart) { + z8 = obtainStyledAttributes.getBoolean(index, z17); + } else { + z8 = z17; + if (index == R.a.GenericDraweeHierarchy_roundBottomEnd) { + z16 = obtainStyledAttributes.getBoolean(index, z16); + } else if (index == R.a.GenericDraweeHierarchy_roundWithOverlayColor) { + if (aVar.r == null) { + aVar.r = new c(); + } + aVar.r.b(obtainStyledAttributes.getColor(index, 0)); + } else { + if (index == R.a.GenericDraweeHierarchy_roundingBorderWidth) { + if (aVar.r == null) { + aVar.r = new c(); + } + c cVar = aVar.r; + float dimensionPixelSize = (float) obtainStyledAttributes.getDimensionPixelSize(index, 0); + Objects.requireNonNull(cVar); + if (dimensionPixelSize >= 0.0f) { + i4 = i7; + z10 = true; + } else { + i4 = i7; + z10 = false; + } + k(z10, "the border width cannot be < 0"); + cVar.e = dimensionPixelSize; + } else { + i4 = i7; + if (index == R.a.GenericDraweeHierarchy_roundingBorderColor) { + if (aVar.r == null) { + aVar.r = new c(); + } + aVar.r.f = obtainStyledAttributes.getColor(index, 0); + } else if (index == R.a.GenericDraweeHierarchy_roundingBorderPadding) { + if (aVar.r == null) { + aVar.r = new c(); + } + c cVar2 = aVar.r; + float dimensionPixelSize2 = (float) obtainStyledAttributes.getDimensionPixelSize(index, 0); + Objects.requireNonNull(cVar2); + k(dimensionPixelSize2 >= 0.0f, "the padding cannot be < 0"); + cVar2.g = dimensionPixelSize2; + } + } + i7 = i4; + z18 = z9; + i6++; + context2 = context; + z17 = z8; + i5 = 1; + indexCount = i3; + } + } + i4 = i7; + i7 = i4; + z18 = z9; + i6++; + context2 = context; + z17 = z8; + i5 = 1; + indexCount = i3; + } + } + i4 = i7; + z8 = z17; + i7 = i4; + z18 = z9; + i6++; + context2 = context; + z17 = z8; + i5 = 1; + indexCount = i3; + } + z8 = z17; + i6++; + context2 = context; + z17 = z8; + i5 = 1; + indexCount = i3; + } + } + z8 = z17; + z9 = z18; + i4 = i7; + i7 = i4; + z18 = z9; + i6++; + context2 = context; + z17 = z8; + i5 = 1; + indexCount = i3; + } + i3 = indexCount; + z8 = z17; + z9 = z18; + i4 = i7; + i7 = i4; + z18 = z9; + i6++; + context2 = context; + z17 = z8; + i5 = 1; + indexCount = i3; + } + obtainStyledAttributes.recycle(); + if (context.getResources().getConfiguration().getLayoutDirection() == 1) { + z7 = z11 && z13; + z6 = z14 && z12; + z3 = z15 && z17; + if (z18) { + } + z2 = false; + i2 = i7; + z4 = z7; + z5 = z6; + } else { + z7 = z11 && z12; + z6 = z14 && z13; + z3 = z15 && z16; + if (z18) { + } + z2 = false; + i2 = i7; + z4 = z7; + z5 = z6; + } + z2 = true; + i2 = i7; + z4 = z7; + z5 = z6; + } catch (Throwable th) { + obtainStyledAttributes.recycle(); + context.getResources().getConfiguration().getLayoutDirection(); + throw th; + } + } else { + z5 = true; + z4 = true; + z3 = true; + z2 = true; + i2 = 0; + i = 0; + } + if (aVar.l != null && i > 0) { + aVar.l = new b.f.g.e.c(aVar.l, i); + } + if (i2 > 0) { + if (aVar.r == null) { + aVar.r = new c(); + } + c cVar3 = aVar.r; + float f2 = z4 ? (float) i2 : 0.0f; + float f3 = z5 ? (float) i2 : 0.0f; + float f4 = z3 ? (float) i2 : 0.0f; + float f5 = z2 ? (float) i2 : 0.0f; + if (cVar3.c == null) { + cVar3.c = new float[8]; + } + float[] fArr = cVar3.c; + fArr[1] = f2; + fArr[0] = f2; + fArr[3] = f3; + fArr[2] = f3; + fArr[5] = f4; + fArr[4] = f4; + fArr[7] = f5; + fArr[6] = f5; + } + return aVar; + } + + public static void k(boolean z2, Object obj) { + if (!z2) { + throw new IllegalArgumentException(String.valueOf(obj)); + } + } + + @NonNull + public static ApiException k0(@NonNull Status status) { + return status.r != null ? new ResolvableApiException(status) : new ApiException(status); + } + + public static int k1(int i, int i2) { + if (i2 == 255) { + return i; + } + if (i2 == 0) { + return i & ViewCompat.MEASURED_SIZE_MASK; + } + int i3 = i2 + (i2 >> 7); + return (i & ViewCompat.MEASURED_SIZE_MASK) | ((((i >>> 24) * i3) >> 8) << 24); + } + + @RecentlyNonNull + public static int k2(@RecentlyNonNull Parcel parcel) { + int readInt = parcel.readInt(); + int K1 = K1(parcel, readInt); + int dataPosition = parcel.dataPosition(); + if ((65535 & readInt) != 20293) { + String valueOf = String.valueOf(Integer.toHexString(readInt)); + throw new SafeParcelReader$ParseException(valueOf.length() != 0 ? "Expected object header. Got 0x".concat(valueOf) : new String("Expected object header. Got 0x"), parcel); + } + int i = K1 + dataPosition; + if (i >= dataPosition && i <= parcel.dataSize()) { + return i; + } + throw new SafeParcelReader$ParseException(b.d.b.a.a.g(54, "Size read is invalid start=", dataPosition, " end=", i), parcel); + } + + public static void l(@RecentlyNonNull boolean z2) { + if (!z2) { + throw new IllegalArgumentException(); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:19:0x0051, code lost: + r1 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:21:?, code lost: + r0.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:22:0x0056, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x0057, code lost: + r3.addSuppressed(r0); + */ + /* JADX WARNING: Code restructure failed: missing block: B:24:0x005a, code lost: + throw r1; + */ + public static void l0(File file) throws IOException { + if (file.isDirectory()) { + File[] listFiles = file.listFiles(); + if (listFiles != null) { + for (File file2 : listFiles) { + l0(file2); + } + return; + } + throw new IOException("cannot list directory " + file); + } else if (!file.getPath().endsWith("_lock")) { + RandomAccessFile randomAccessFile = new RandomAccessFile(file, "r"); + randomAccessFile.getFD().sync(); + randomAccessFile.close(); + } + } + + public static final Integer l1(JsonReader jsonReader) { + m.checkNotNullParameter(jsonReader, "$this$nextIntOrNull"); + if (jsonReader.N() != JsonToken.NULL) { + return Integer.valueOf(jsonReader.y()); + } + jsonReader.H(); + return null; + } + + public static boolean l2(int i, x xVar, boolean z2) throws ParserException { + if (xVar.a() < 7) { + if (z2) { + return false; + } + throw b.d.b.a.a.t0(29, "too short header: ", xVar.a(), null); + } else if (xVar.t() != i) { + if (z2) { + return false; + } + String valueOf = String.valueOf(Integer.toHexString(i)); + throw ParserException.a(valueOf.length() != 0 ? "expected header type ".concat(valueOf) : new String("expected header type "), null); + } else if (xVar.t() == 118 && xVar.t() == 111 && xVar.t() == 114 && xVar.t() == 98 && xVar.t() == 105 && xVar.t() == 115) { + return true; + } else { + if (z2) { + return false; + } + throw ParserException.a("expected characters 'vorbis'", null); + } + } + + @Pure + public static void m(boolean z2, Object obj) { + if (!z2) { + throw new IllegalArgumentException(String.valueOf(obj)); + } + } + + public static int m0(InputStream inputStream) throws IOException { + return ((((byte) inputStream.read()) << 8) & 65280) | (((byte) inputStream.read()) & 255); + } + + @Nullable + public static List> m1(b.c.a.a0.i0.c cVar, b.c.a.d dVar, h0 h0Var) throws IOException { + return r.a(cVar, dVar, 1.0f, h0Var); + } + + public static void m2(File file, b.f.d.c.a aVar) { + aVar.b(file); + File[] listFiles = file.listFiles(); + if (listFiles != null) { + for (File file2 : listFiles) { + if (file2.isDirectory()) { + m2(file2, aVar); + } else { + aVar.a(file2); + } + } + } + aVar.c(file); + } + + public static void n(@RecentlyNonNull boolean z2, @RecentlyNonNull String str, @RecentlyNonNull Object... objArr) { + if (!z2) { + throw new IllegalArgumentException(String.format(str, objArr)); + } + } + + public static int n0(int i) { + return (int) (((float) i) * 1.3333334f); + } + + public static b.c.a.y.k.a n1(b.c.a.a0.i0.c cVar, b.c.a.d dVar) throws IOException { + return new b.c.a.y.k.a(m1(cVar, dVar, f.a)); + } + + public static void n2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull Bundle bundle, @RecentlyNonNull boolean z2) { + if (bundle != null) { + int v2 = v2(parcel, i); + parcel.writeBundle(bundle); + A2(parcel, v2); + } else if (z2) { + y2(parcel, i, 0); + } + } + + public static void o(@RecentlyNonNull boolean z2, @RecentlyNonNull Object obj) { + if (!z2) { + throw new IllegalArgumentException(String.valueOf(obj)); + } + } + + public static p o0(Drawable drawable) { + if (drawable == null) { + return null; + } + if (drawable instanceof p) { + return (p) drawable; + } + if (drawable instanceof b.f.g.e.d) { + return o0(((b.f.g.e.d) drawable).l()); + } + if (drawable instanceof b.f.g.e.b) { + b.f.g.e.b bVar = (b.f.g.e.b) drawable; + int length = bVar.l.length; + for (int i = 0; i < length; i++) { + p o0 = o0(bVar.a(i)); + if (o0 != null) { + return o0; + } + } + } + return null; + } + + public static b.c.a.y.k.b o1(b.c.a.a0.i0.c cVar, b.c.a.d dVar) throws IOException { + return p1(cVar, dVar, true); + } + + public static void o2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull byte[] bArr, @RecentlyNonNull boolean z2) { + if (bArr != null) { + int v2 = v2(parcel, i); + parcel.writeByteArray(bArr); + A2(parcel, v2); + } else if (z2) { + y2(parcel, i, 0); + } + } + + public static void p(int i, int i2, int i3, int i4, int i5) { + boolean z2 = true; + i(Boolean.valueOf(i4 >= 0)); + i(Boolean.valueOf(i >= 0)); + i(Boolean.valueOf(i3 >= 0)); + i(Boolean.valueOf(i + i4 <= i5)); + if (i3 + i4 > i2) { + z2 = false; + } + i(Boolean.valueOf(z2)); + } + + public static Object p0(Object obj) { + return new a(obj.getClass(), Array.getLength(obj), obj); + } + + public static b.c.a.y.k.b p1(b.c.a.a0.i0.c cVar, b.c.a.d dVar, boolean z2) throws IOException { + return new b.c.a.y.k.b(r.a(cVar, dVar, z2 ? g.c() : 1.0f, i.a)); + } + + public static void p2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull IBinder iBinder, @RecentlyNonNull boolean z2) { + if (iBinder != null) { + int v2 = v2(parcel, i); + parcel.writeStrongBinder(iBinder); + A2(parcel, v2); + } else if (z2) { + y2(parcel, i, 0); + } + } + + @Pure + public static void q(boolean z2, @Nullable String str) throws ParserException { + if (!z2) { + throw ParserException.a(str, null); + } + } + + @Nullable + public static String q0(XmlPullParser xmlPullParser, String str) { + int attributeCount = xmlPullParser.getAttributeCount(); + for (int i = 0; i < attributeCount; i++) { + if (xmlPullParser.getAttributeName(i).equals(str)) { + return xmlPullParser.getAttributeValue(i); + } + } + return null; + } + + public static b.c.a.y.k.d q1(b.c.a.a0.i0.c cVar, b.c.a.d dVar) throws IOException { + return new b.c.a.y.k.d(m1(cVar, dVar, o.a)); + } + + public static void q2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull Parcelable parcelable, @RecentlyNonNull int i2, @RecentlyNonNull boolean z2) { + if (parcelable != null) { + int v2 = v2(parcel, i); + parcelable.writeToParcel(parcel, i2); + A2(parcel, v2); + } else if (z2) { + y2(parcel, i, 0); + } + } + + public static boolean r(b.i.a.c.x2.i iVar) throws IOException { + x xVar = new x(8); + if (b.i.a.c.x2.l0.d.a(iVar, xVar).a != 1380533830) { + return false; + } + iVar.o(xVar.a, 0, 4); + xVar.E(0); + int f2 = xVar.f(); + if (f2 == 1463899717) { + return true; + } + StringBuilder sb = new StringBuilder(34); + sb.append("Unsupported form type: "); + sb.append(f2); + Log.e("WavHeaderReader", sb.toString()); + return false; + } + + public static int r0(int i) { + if (i == 3) { + return BaseTransientBottomBar.ANIMATION_FADE_DURATION; + } + if (i != 6) { + return i != 8 ? 0 : 270; + } + return 90; + } + + /* JADX WARNING: Removed duplicated region for block: B:58:0x01a5 */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x01bc A[SYNTHETIC] */ + @Nullable + public static ArrayList r1(x xVar) { + int i; + ArrayList arrayList; + ArrayList arrayList2; + h.a aVar; + x xVar2 = xVar; + if (xVar.t() != 0) { + return null; + } + xVar2.F(7); + int f2 = xVar.f(); + if (f2 == 1684433976) { + x xVar3 = new x(); + Inflater inflater = new Inflater(true); + try { + if (!b.i.a.c.f3.e0.x(xVar2, xVar3, inflater)) { + return null; + } + inflater.end(); + xVar2 = xVar3; + } finally { + inflater.end(); + } + } else if (f2 != 1918990112) { + return null; + } + ArrayList arrayList3 = new ArrayList<>(); + int i2 = xVar2.f970b; + int i3 = xVar2.c; + while (i2 < i3) { + int f3 = xVar2.f() + i2; + if (f3 > i2 && f3 <= i3) { + if (xVar2.f() == 1835365224) { + int f4 = xVar2.f(); + if (f4 <= 10000) { + float[] fArr = new float[f4]; + for (int i4 = 0; i4 < f4; i4++) { + fArr[i4] = Float.intBitsToFloat(xVar2.f()); + } + int f5 = xVar2.f(); + if (f5 <= 32000) { + double log = Math.log(2.0d); + arrayList2 = arrayList3; + int ceil = (int) Math.ceil(Math.log(((double) f4) * 2.0d) / log); + b.i.a.c.f3.w wVar = new b.i.a.c.f3.w(xVar2.a); + wVar.k(xVar2.f970b * 8); + float[] fArr2 = new float[(f5 * 5)]; + int i5 = 5; + int[] iArr = new int[5]; + int i6 = 0; + int i7 = 0; + while (true) { + if (i6 >= f5) { + wVar.k((wVar.e() + 7) & -8); + int i8 = 32; + int g = wVar.g(32); + h.b[] bVarArr = new h.b[g]; + int i9 = 0; + while (true) { + if (i9 >= g) { + i = i3; + aVar = new h.a(bVarArr); + break; + } + int g2 = wVar.g(8); + int g3 = wVar.g(8); + int g4 = wVar.g(i8); + if (g4 > 128000) { + break; + } + i = i3; + int ceil2 = (int) Math.ceil(Math.log(((double) f5) * 2.0d) / log); + float[] fArr3 = new float[(g4 * 3)]; + float[] fArr4 = new float[(g4 * 2)]; + int i10 = 0; + int i11 = 0; + while (i10 < g4) { + int g5 = wVar.g(ceil2); + int i12 = i11 + ((-(g5 & 1)) ^ (g5 >> 1)); + if (i12 < 0 || i12 >= f5) { + break; + } + int i13 = i10 * 3; + int i14 = i12 * 5; + fArr3[i13] = fArr2[i14]; + fArr3[i13 + 1] = fArr2[i14 + 1]; + fArr3[i13 + 2] = fArr2[i14 + 2]; + int i15 = i10 * 2; + fArr4[i15] = fArr2[i14 + 3]; + fArr4[i15 + 1] = fArr2[i14 + 4]; + i10++; + i11 = i12; + fArr4 = fArr4; + g = g; + wVar = wVar; + } + bVarArr[i9] = new h.b(g2, fArr3, fArr4, g3); + i9++; + i3 = i; + g = g; + i8 = 32; + } + } else { + int i16 = 0; + while (i16 < i5) { + int i17 = iArr[i16]; + int g6 = wVar.g(ceil); + int i18 = i17 + ((-(g6 & 1)) ^ (g6 >> 1)); + if (i18 >= f4 || i18 < 0) { + break; + } + fArr2[i7] = fArr[i18]; + iArr[i16] = i18; + i16++; + i7++; + i5 = 5; + } + i6++; + i5 = 5; + } + } + i = i3; + aVar = null; + if (aVar == null) { + arrayList = arrayList2; + arrayList.add(aVar); + } + } + } + arrayList2 = arrayList3; + i = i3; + aVar = null; + if (aVar == null) { + } + } else { + arrayList = arrayList3; + i = i3; + } + xVar2.E(f3); + arrayList3 = arrayList; + i2 = f3; + i3 = i; + } + return null; + } + return arrayList3; + } + + public static void r2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull String str, @RecentlyNonNull boolean z2) { + if (str != null) { + int v2 = v2(parcel, i); + parcel.writeString(str); + A2(parcel, v2); + } else if (z2) { + y2(parcel, i, 0); + } + } + + public static void s(@RecentlyNonNull Handler handler) { + Looper myLooper = Looper.myLooper(); + if (myLooper != handler.getLooper()) { + String name = myLooper != null ? myLooper.getThread().getName() : "null current looper"; + String name2 = handler.getLooper().getThread().getName(); + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(name, b.d.b.a.a.b(name2, 36)), "Must be called on ", name2, " thread, but got ", name); + Q.append("."); + throw new IllegalStateException(Q.toString()); + } + } + + public static Object s0(j jVar) { + Class cls = jVar._class; + Class v = b.g.a.c.i0.d.v(cls); + if (v != null) { + if (v == Integer.TYPE) { + return 0; + } + if (v == Long.TYPE) { + return 0L; + } + if (v == Boolean.TYPE) { + return Boolean.FALSE; + } + if (v == Double.TYPE) { + return Double.valueOf((double) ShadowDrawableWrapper.COS_45); + } + if (v == Float.TYPE) { + return Float.valueOf(0.0f); + } + if (v == Byte.TYPE) { + return (byte) 0; + } + if (v == Short.TYPE) { + return (short) 0; + } + if (v == Character.TYPE) { + return (char) 0; + } + throw new IllegalArgumentException(b.d.b.a.a.n(v, b.d.b.a.a.R("Class "), " is not a primitive type")); + } else if (jVar.v() || jVar.b()) { + return p.a.NON_EMPTY; + } else { + if (cls == String.class) { + return ""; + } + if (jVar.B(Date.class)) { + return new Date(0); + } + if (!jVar.B(Calendar.class)) { + return null; + } + GregorianCalendar gregorianCalendar = new GregorianCalendar(); + gregorianCalendar.setTimeInMillis(0); + return gregorianCalendar; + } + } + + public static b.c.a.y.k.f s1(b.c.a.a0.i0.c cVar, b.c.a.d dVar) throws IOException { + return new b.c.a.y.k.f(r.a(cVar, dVar, g.c(), w.a)); + } + + public static void s2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull String[] strArr, @RecentlyNonNull boolean z2) { + if (strArr != null) { + int v2 = v2(parcel, i); + parcel.writeStringArray(strArr); + A2(parcel, v2); + } else if (z2) { + y2(parcel, i, 0); + } + } + + @Pure + public static int t(int i, int i2, int i3) { + if (i >= i2 && i < i3) { + return i; + } + throw new IndexOutOfBoundsException(); + } + + public static Drawable t0(Context context, TypedArray typedArray, int i) { + int resourceId = typedArray.getResourceId(i, 0); + if (resourceId == 0) { + return null; + } + return context.getResources().getDrawable(resourceId); + } + + @Nullable + public static b.i.a.c.x2.i0.j t1(byte[] bArr) { + x xVar = new x(bArr); + if (xVar.c < 32) { + return null; + } + xVar.E(0); + if (xVar.f() != xVar.a() + 4 || xVar.f() != 1886614376) { + return null; + } + int f2 = (xVar.f() >> 24) & 255; + if (f2 > 1) { + b.d.b.a.a.d0(37, "Unsupported pssh version: ", f2, "PsshAtomUtil"); + return null; + } + UUID uuid = new UUID(xVar.m(), xVar.m()); + if (f2 == 1) { + xVar.F(xVar.w() * 16); + } + int w = xVar.w(); + if (w != xVar.a()) { + return null; + } + byte[] bArr2 = new byte[w]; + System.arraycopy(xVar.a, xVar.f970b, bArr2, 0, w); + xVar.f970b += w; + return new b.i.a.c.x2.i0.j(uuid, f2, bArr2); + } + + public static void t2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull T[] tArr, @RecentlyNonNull int i2, @RecentlyNonNull boolean z2) { + if (tArr != null) { + int v2 = v2(parcel, i); + int length = tArr.length; + parcel.writeInt(length); + for (T t : tArr) { + if (t == null) { + parcel.writeInt(0); + } else { + x2(parcel, t, i2); + } + } + A2(parcel, v2); + } else if (z2) { + y2(parcel, i, 0); + } + } + + public static void u(@RecentlyNonNull String str) { + if (!(Looper.getMainLooper() == Looper.myLooper())) { + throw new IllegalStateException(str); + } + } + + @RecentlyNonNull + public static String u0(@RecentlyNonNull PowerManager.WakeLock wakeLock, @RecentlyNonNull String str) { + String valueOf = String.valueOf(String.valueOf(((long) System.identityHashCode(wakeLock)) | (((long) Process.myPid()) << 32))); + String str2 = null; + if (TextUtils.isEmpty(null)) { + str2 = ""; + } + String valueOf2 = String.valueOf(str2); + return valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf); + } + + @Nullable + public static byte[] u1(byte[] bArr, UUID uuid) { + b.i.a.c.x2.i0.j t1 = t1(bArr); + if (t1 == null) { + return null; + } + if (uuid.equals(t1.a)) { + return t1.c; + } + String valueOf = String.valueOf(uuid); + String valueOf2 = String.valueOf(t1.a); + b.d.b.a.a.o0(b.d.b.a.a.Q(valueOf2.length() + valueOf.length() + 33, "UUID mismatch. Expected: ", valueOf, ", got: ", valueOf2), ".", "PsshAtomUtil"); + return null; + } + + public static void u2(@RecentlyNonNull Parcel parcel, @RecentlyNonNull int i, @RecentlyNonNull List list, @RecentlyNonNull boolean z2) { + if (list != null) { + int v2 = v2(parcel, i); + int size = list.size(); + parcel.writeInt(size); + for (int i2 = 0; i2 < size; i2++) { + T t = list.get(i2); + if (t == null) { + parcel.writeInt(0); + } else { + x2(parcel, t, 0); + } + } + A2(parcel, v2); + } else if (z2) { + y2(parcel, i, 0); + } + } + + @RecentlyNonNull + public static String v(@RecentlyNonNull String str, @RecentlyNonNull Object obj) { + if (!TextUtils.isEmpty(str)) { + return str; + } + throw new IllegalArgumentException(String.valueOf(obj)); + } + + public static int v0(InputStream inputStream) throws IOException { + return ((((byte) inputStream.read()) << 24) & ViewCompat.MEASURED_STATE_MASK) | ((((byte) inputStream.read()) << 16) & ItemTouchHelper.ACTION_MODE_DRAG_MASK) | ((((byte) inputStream.read()) << 8) & 65280) | (((byte) inputStream.read()) & 255); + } + + public static boolean v1(b.i.a.c.x2.i iVar, byte[] bArr, int i, int i2, boolean z2) throws IOException { + try { + return iVar.e(bArr, i, i2, z2); + } catch (EOFException e2) { + if (z2) { + return false; + } + throw e2; + } + } + + public static int v2(Parcel parcel, int i) { + parcel.writeInt(i | SupportMenu.CATEGORY_MASK); + parcel.writeInt(0); + return parcel.dataPosition(); + } + + @RecentlyNonNull + public static String w(@RecentlyNonNull String str) { + if (!TextUtils.isEmpty(str)) { + return str; + } + throw new IllegalArgumentException("Given String is empty or null"); + } + + public static final Integer w0(Intent intent, String str) { + m.checkNotNullParameter(intent, "$this$getIntExtraOrNull"); + m.checkNotNullParameter(str, "key"); + Integer valueOf = Integer.valueOf(intent.getIntExtra(str, Integer.MIN_VALUE)); + if (!(valueOf.intValue() == Integer.MIN_VALUE)) { + return valueOf; + } + return null; + } + + @Nullable + public static Metadata w1(b.i.a.c.x2.i iVar, boolean z2) throws IOException { + b.i.a.c.z2.k.a aVar; + if (z2) { + aVar = null; + } else { + int i = b.i.a.c.z2.k.b.a; + aVar = b.i.a.c.z2.k.a.a; + } + x xVar = new x(10); + Metadata metadata = null; + int i2 = 0; + while (true) { + try { + iVar.o(xVar.a, 0, 10); + xVar.E(0); + if (xVar.v() != 4801587) { + break; + } + xVar.F(3); + int s2 = xVar.s(); + int i3 = s2 + 10; + if (metadata == null) { + byte[] bArr = new byte[i3]; + System.arraycopy(xVar.a, 0, bArr, 0, 10); + iVar.o(bArr, 10, s2); + metadata = new b.i.a.c.z2.k.b(aVar).d(bArr, i3); + } else { + iVar.g(s2); + } + i2 += i3; + } catch (EOFException unused) { + } + } + iVar.k(); + iVar.g(i2); + if (metadata == null || metadata.j.length == 0) { + return null; + } + return metadata; + } + + public static void w2(Parcel parcel, int i, int i2) { + int K1 = K1(parcel, i); + if (K1 != i2) { + String hexString = Integer.toHexString(K1); + StringBuilder O = b.d.b.a.a.O(b.d.b.a.a.b(hexString, 46), "Expected size ", i2, " got ", K1); + O.append(" (0x"); + O.append(hexString); + O.append(")"); + throw new SafeParcelReader$ParseException(O.toString(), parcel); + } + } + + public static void x(@RecentlyNonNull String str) { + if (Looper.getMainLooper() == Looper.myLooper()) { + throw new IllegalStateException(str); + } + } + + public static final StageRequestToSpeakState x0(VoiceState voiceState) { + return voiceState == null ? StageRequestToSpeakState.NONE : (!voiceState.l() || voiceState.f() == null) ? (voiceState.l() || voiceState.f() == null) ? !voiceState.l() ? StageRequestToSpeakState.ON_STAGE : StageRequestToSpeakState.NONE : StageRequestToSpeakState.REQUESTED_TO_SPEAK_AND_AWAITING_USER_ACK : StageRequestToSpeakState.REQUESTED_TO_SPEAK; + } + + public static int x1(b.i.a.c.x2.i iVar, byte[] bArr, int i, int i2) throws IOException { + int i3 = 0; + while (i3 < i2) { + int i4 = iVar.i(bArr, i + i3, i2 - i3); + if (i4 == -1) { + break; + } + i3 += i4; + } + return i3; + } + + public static void x2(Parcel parcel, T t, int i) { + int dataPosition = parcel.dataPosition(); + parcel.writeInt(1); + int dataPosition2 = parcel.dataPosition(); + t.writeToParcel(parcel, i); + int dataPosition3 = parcel.dataPosition(); + parcel.setDataPosition(dataPosition); + parcel.writeInt(dataPosition3 - dataPosition2); + parcel.setDataPosition(dataPosition3); + } + + public static T y(T t, Object obj) { + if (t != null) { + return t; + } + throw new NullPointerException(String.valueOf(obj)); + } + + public static List y0(CacheKey cacheKey) { + try { + if (!(cacheKey instanceof b.f.b.a.c)) { + ArrayList arrayList = new ArrayList(1); + arrayList.add(cacheKey.a() ? cacheKey.b() : U1(cacheKey)); + return arrayList; + } + Objects.requireNonNull((b.f.b.a.c) cacheKey); + throw null; + } catch (UnsupportedEncodingException e2) { + throw new RuntimeException(e2); + } + } + + public static boolean y1(b.g.a.c.c0.e0 e0Var, j jVar, Type type) { + if (!jVar.B(e0Var.a(type)._class)) { + return false; + } + ParameterizedType f1 = f1(type); + if (f1 == null || !Objects.equals(jVar._class, f1.getRawType())) { + return true; + } + Type[] actualTypeArguments = f1.getActualTypeArguments(); + b.g.a.c.h0.m j = jVar.j(); + if (j.j() != actualTypeArguments.length) { + return false; + } + for (int i = 0; i < j.j(); i++) { + if (!y1(e0Var, j.f(i), actualTypeArguments[i])) { + return false; + } + } + return true; + } + + public static void y2(Parcel parcel, int i, int i2) { + if (i2 >= 65535) { + parcel.writeInt(i | SupportMenu.CATEGORY_MASK); + parcel.writeInt(i2); + return; + } + parcel.writeInt(i | (i2 << 16)); + } + + @NonNull + @EnsuresNonNull({"#1"}) + public static T z(@RecentlyNonNull T t, @RecentlyNonNull Object obj) { + if (t != null) { + return t; + } + throw new NullPointerException(String.valueOf(obj)); + } + + public static ScalingUtils$ScaleType z0(TypedArray typedArray, int i) { + switch (typedArray.getInt(i, -2)) { + case -1: + return null; + case 0: + ScalingUtils$ScaleType scalingUtils$ScaleType = ScalingUtils$ScaleType.a; + return b.f.g.e.z.l; + case 1: + ScalingUtils$ScaleType scalingUtils$ScaleType2 = ScalingUtils$ScaleType.a; + return b.f.g.e.x.l; + case 2: + ScalingUtils$ScaleType scalingUtils$ScaleType3 = ScalingUtils$ScaleType.a; + return v.l; + case 3: + ScalingUtils$ScaleType scalingUtils$ScaleType4 = ScalingUtils$ScaleType.a; + return b.f.g.e.w.l; + case 4: + ScalingUtils$ScaleType scalingUtils$ScaleType5 = ScalingUtils$ScaleType.a; + return r.l; + case 5: + ScalingUtils$ScaleType scalingUtils$ScaleType6 = ScalingUtils$ScaleType.a; + return b.f.g.e.t.l; + case 6: + ScalingUtils$ScaleType scalingUtils$ScaleType7 = ScalingUtils$ScaleType.a; + return s.l; + case 7: + ScalingUtils$ScaleType scalingUtils$ScaleType8 = ScalingUtils$ScaleType.a; + return b0.l; + case 8: + ScalingUtils$ScaleType scalingUtils$ScaleType9 = ScalingUtils$ScaleType.a; + return u.l; + default: + throw new RuntimeException("XML attribute not specified!"); + } + } + + public static int z1(InputStream inputStream, byte[] bArr, int i, int i2) throws IOException { + if (i2 >= 0) { + int i3 = 0; + while (i3 < i2) { + int read = inputStream.read(bArr, i + i3, i2 - i3); + if (read == -1) { + break; + } + i3 += read; + } + return i3; + } + throw new IndexOutOfBoundsException("len is negative"); + } + + public static void z2(Parcel parcel, int i, int i2) { + if (i != i2) { + String hexString = Integer.toHexString(i); + StringBuilder O = b.d.b.a.a.O(b.d.b.a.a.b(hexString, 46), "Expected size ", i2, " got ", i); + O.append(" (0x"); + O.append(hexString); + O.append(")"); + throw new SafeParcelReader$ParseException(O.toString(), parcel); + } + } +} diff --git a/app/src/main/java/b/c/a/a0/d0.java b/app/src/main/java/b/c/a/a0/d0.java new file mode 100644 index 0000000000..740c7a2148 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/d0.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: ShapeGroupParser */ +public class d0 { + public static c.a a = c.a.a("nm", "hd", "it"); +} diff --git a/app/src/main/java/b/c/a/a0/e.java b/app/src/main/java/b/c/a/a0/e.java new file mode 100644 index 0000000000..38c858551e --- /dev/null +++ b/app/src/main/java/b/c/a/a0/e.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: CircleShapeParser */ +public class e { + public static c.a a = c.a.a("nm", "p", "s", "hd", "d"); +} diff --git a/app/src/main/java/b/c/a/a0/e0.java b/app/src/main/java/b/c/a/a0/e0.java new file mode 100644 index 0000000000..7cd78d8b91 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/e0.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: ShapePathParser */ +public class e0 { + public static c.a a = c.a.a("nm", "ind", "ks", "hd"); +} diff --git a/app/src/main/java/b/c/a/a0/f.java b/app/src/main/java/b/c/a/a0/f.java new file mode 100644 index 0000000000..22d3a068ed --- /dev/null +++ b/app/src/main/java/b/c/a/a0/f.java @@ -0,0 +1,34 @@ +package b.c.a.a0; + +import android.graphics.Color; +import b.c.a.a0.i0.c; +import java.io.IOException; +/* compiled from: ColorParser */ +public class f implements h0 { + public static final f a = new f(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public Integer a(c cVar, float f) throws IOException { + boolean z2 = cVar.u() == c.b.BEGIN_ARRAY; + if (z2) { + cVar.a(); + } + double n = cVar.n(); + double n2 = cVar.n(); + double n3 = cVar.n(); + double n4 = cVar.n(); + if (z2) { + cVar.c(); + } + if (n <= 1.0d && n2 <= 1.0d && n3 <= 1.0d) { + n *= 255.0d; + n2 *= 255.0d; + n3 *= 255.0d; + if (n4 <= 1.0d) { + n4 *= 255.0d; + } + } + return Integer.valueOf(Color.argb((int) n4, (int) n, (int) n2, (int) n3)); + } +} diff --git a/app/src/main/java/b/c/a/a0/f0.java b/app/src/main/java/b/c/a/a0/f0.java new file mode 100644 index 0000000000..a2d9e79f01 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/f0.java @@ -0,0 +1,10 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: ShapeStrokeParser */ +public class f0 { + public static c.a a = c.a.a("nm", "c", "w", "o", "lc", "lj", "ml", "hd", "d"); + + /* renamed from: b reason: collision with root package name */ + public static final c.a f321b = c.a.a("n", "v"); +} diff --git a/app/src/main/java/b/c/a/a0/g.java b/app/src/main/java/b/c/a/a0/g.java new file mode 100644 index 0000000000..2d2ff34a00 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/g.java @@ -0,0 +1,20 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: ContentModelParser */ +public class g { + public static c.a a = c.a.a("ty", "d"); + + /* JADX ERROR: JadxRuntimeException in pass: BlockProcessor + jadx.core.utils.exceptions.JadxRuntimeException: CFG modification limit reached, blocks count: 649 + at jadx.core.dex.visitors.blocksmaker.BlockProcessor.processBlocksTree(BlockProcessor.java:72) + at jadx.core.dex.visitors.blocksmaker.BlockProcessor.visit(BlockProcessor.java:46) + */ + @androidx.annotation.Nullable + public static b.c.a.y.l.b a(b.c.a.a0.i0.c r29, b.c.a.d r30) throws java.io.IOException { + /* + // Method dump skipped, instructions count: 1882 + */ + throw new UnsupportedOperationException("Method not decompiled: b.c.a.a0.g.a(b.c.a.a0.i0.c, b.c.a.d):b.c.a.y.l.b"); + } +} diff --git a/app/src/main/java/b/c/a/a0/g0.java b/app/src/main/java/b/c/a/a0/g0.java new file mode 100644 index 0000000000..b88ef19283 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/g0.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: ShapeTrimPathParser */ +public class g0 { + public static c.a a = c.a.a("s", "e", "o", "nm", "m", "hd"); +} diff --git a/app/src/main/java/b/c/a/a0/h.java b/app/src/main/java/b/c/a/a0/h.java new file mode 100644 index 0000000000..e8cda3e6cf --- /dev/null +++ b/app/src/main/java/b/c/a/a0/h.java @@ -0,0 +1,79 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +import b.c.a.y.b; +import b.c.a.y.c; +import java.io.IOException; +/* compiled from: DocumentDataParser */ +public class h implements h0 { + public static final h a = new h(); + + /* renamed from: b reason: collision with root package name */ + public static final c.a f322b = c.a.a("t", "f", "s", "j", "tr", "lh", "ls", "fc", "sc", "sw", "of"); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public b.c.a.y.c a(b.c.a.a0.i0.c cVar, float f) throws IOException { + cVar.b(); + String str = null; + String str2 = null; + float f2 = 0.0f; + int i = 3; + int i2 = 0; + float f3 = 0.0f; + float f4 = 0.0f; + int i3 = 0; + int i4 = 0; + float f5 = 0.0f; + boolean z2 = true; + while (cVar.e()) { + switch (cVar.y(f322b)) { + case 0: + str = cVar.t(); + break; + case 1: + str2 = cVar.t(); + break; + case 2: + f2 = (float) cVar.n(); + break; + case 3: + int q = cVar.q(); + if (q <= 2 && q >= 0) { + i = b.com$airbnb$lottie$model$DocumentData$Justification$s$values()[q]; + break; + } else { + i = 3; + break; + } + case 4: + i2 = cVar.q(); + break; + case 5: + f3 = (float) cVar.n(); + break; + case 6: + f4 = (float) cVar.n(); + break; + case 7: + i3 = p.a(cVar); + break; + case 8: + i4 = p.a(cVar); + break; + case 9: + f5 = (float) cVar.n(); + break; + case 10: + z2 = cVar.f(); + break; + default: + cVar.A(); + cVar.C(); + break; + } + } + cVar.d(); + return new b.c.a.y.c(str, str2, f2, i, i2, f3, f4, i3, i4, f5, z2); + } +} diff --git a/app/src/main/java/b/c/a/a0/h0.java b/app/src/main/java/b/c/a/a0/h0.java new file mode 100644 index 0000000000..fb89fd596c --- /dev/null +++ b/app/src/main/java/b/c/a/a0/h0.java @@ -0,0 +1,8 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +import java.io.IOException; +/* compiled from: ValueParser */ +public interface h0 { + V a(c cVar, float f) throws IOException; +} diff --git a/app/src/main/java/b/c/a/a0/i.java b/app/src/main/java/b/c/a/a0/i.java new file mode 100644 index 0000000000..cc4ca7371e --- /dev/null +++ b/app/src/main/java/b/c/a/a0/i.java @@ -0,0 +1,14 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +import java.io.IOException; +/* compiled from: FloatParser */ +public class i implements h0 { + public static final i a = new i(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public Float a(c cVar, float f) throws IOException { + return Float.valueOf(p.d(cVar) * f); + } +} diff --git a/app/src/main/java/b/c/a/a0/i0/a.java b/app/src/main/java/b/c/a/a0/i0/a.java new file mode 100644 index 0000000000..831b834ffe --- /dev/null +++ b/app/src/main/java/b/c/a/a0/i0/a.java @@ -0,0 +1,9 @@ +package b.c.a.a0.i0; + +import androidx.annotation.Nullable; +/* compiled from: JsonDataException */ +public final class a extends RuntimeException { + public a(@Nullable String str) { + super(str); + } +} diff --git a/app/src/main/java/b/c/a/a0/i0/b.java b/app/src/main/java/b/c/a/a0/i0/b.java new file mode 100644 index 0000000000..45831bfc06 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/i0/b.java @@ -0,0 +1,10 @@ +package b.c.a.a0.i0; + +import androidx.annotation.Nullable; +import java.io.IOException; +/* compiled from: JsonEncodingException */ +public final class b extends IOException { + public b(@Nullable String str) { + super(str); + } +} diff --git a/app/src/main/java/b/c/a/a0/i0/c.java b/app/src/main/java/b/c/a/a0/i0/c.java new file mode 100644 index 0000000000..d329cafbdd --- /dev/null +++ b/app/src/main/java/b/c/a/a0/i0/c.java @@ -0,0 +1,176 @@ +package b.c.a.a0.i0; + +import g0.e; +import g0.o; +import java.io.Closeable; +import java.io.IOException; +import java.util.Arrays; +import okio.ByteString; +/* compiled from: JsonReader */ +public abstract class c implements Closeable { + public static final String[] j = new String[128]; + public int k; + public int[] l = new int[32]; + public String[] m = new String[32]; + public int[] n = new int[32]; + + /* compiled from: JsonReader */ + public static final class a { + public final String[] a; + + /* renamed from: b reason: collision with root package name */ + public final o f323b; + + public a(String[] strArr, o oVar) { + this.a = strArr; + this.f323b = oVar; + } + + public static a a(String... strArr) { + String str; + try { + ByteString[] byteStringArr = new ByteString[strArr.length]; + e eVar = new e(); + for (int i = 0; i < strArr.length; i++) { + String str2 = strArr[i]; + String[] strArr2 = c.j; + eVar.T(34); + int length = str2.length(); + int i2 = 0; + for (int i3 = 0; i3 < length; i3++) { + char charAt = str2.charAt(i3); + if (charAt < 128) { + str = strArr2[charAt]; + if (str == null) { + } + } else if (charAt == 8232) { + str = "\\u2028"; + } else if (charAt == 8233) { + str = "\\u2029"; + } + if (i2 < i3) { + eVar.c0(str2, i2, i3); + } + eVar.b0(str); + i2 = i3 + 1; + } + if (i2 < length) { + eVar.c0(str2, i2, length); + } + eVar.T(34); + eVar.readByte(); + byteStringArr[i] = eVar.x(); + } + return new a((String[]) strArr.clone(), o.k.c(byteStringArr)); + } catch (IOException e) { + throw new AssertionError(e); + } + } + } + + /* compiled from: JsonReader */ + public enum b { + BEGIN_ARRAY, + END_ARRAY, + BEGIN_OBJECT, + END_OBJECT, + NAME, + STRING, + NUMBER, + BOOLEAN, + NULL, + END_DOCUMENT + } + + static { + for (int i = 0; i <= 31; i++) { + j[i] = String.format("\\u%04x", Integer.valueOf(i)); + } + String[] strArr = j; + strArr[34] = "\\\""; + strArr[92] = "\\\\"; + strArr[9] = "\\t"; + strArr[8] = "\\b"; + strArr[10] = "\\n"; + strArr[13] = "\\r"; + strArr[12] = "\\f"; + } + + public abstract void A() throws IOException; + + public abstract void C() throws IOException; + + public final b D(String str) throws b { + StringBuilder V = b.d.b.a.a.V(str, " at path "); + V.append(getPath()); + throw new b(V.toString()); + } + + public abstract void a() throws IOException; + + public abstract void b() throws IOException; + + public abstract void c() throws IOException; + + public abstract void d() throws IOException; + + public abstract boolean e() throws IOException; + + public abstract boolean f() throws IOException; + + public final String getPath() { + int i = this.k; + int[] iArr = this.l; + String[] strArr = this.m; + int[] iArr2 = this.n; + StringBuilder N = b.d.b.a.a.N('$'); + for (int i2 = 0; i2 < i; i2++) { + int i3 = iArr[i2]; + if (i3 == 1 || i3 == 2) { + N.append('['); + N.append(iArr2[i2]); + N.append(']'); + } else if (i3 == 3 || i3 == 4 || i3 == 5) { + N.append('.'); + if (strArr[i2] != null) { + N.append(strArr[i2]); + } + } + } + return N.toString(); + } + + public abstract double n() throws IOException; + + public abstract int q() throws IOException; + + public abstract String s() throws IOException; + + public abstract String t() throws IOException; + + public abstract b u() throws IOException; + + public final void x(int i) { + int i2 = this.k; + int[] iArr = this.l; + if (i2 == iArr.length) { + if (i2 != 256) { + this.l = Arrays.copyOf(iArr, iArr.length * 2); + String[] strArr = this.m; + this.m = (String[]) Arrays.copyOf(strArr, strArr.length * 2); + int[] iArr2 = this.n; + this.n = Arrays.copyOf(iArr2, iArr2.length * 2); + } else { + StringBuilder R = b.d.b.a.a.R("Nesting too deep at "); + R.append(getPath()); + throw new a(R.toString()); + } + } + int[] iArr3 = this.l; + int i3 = this.k; + this.k = i3 + 1; + iArr3[i3] = i; + } + + public abstract int y(a aVar) throws IOException; +} diff --git a/app/src/main/java/b/c/a/a0/i0/d.java b/app/src/main/java/b/c/a/a0/i0/d.java new file mode 100644 index 0000000000..9b3bdd7015 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/i0/d.java @@ -0,0 +1,1006 @@ +package b.c.a.a0.i0; + +import androidx.annotation.Nullable; +import b.c.a.a0.i0.c; +import b.d.b.a.a; +import g0.e; +import g0.g; +import java.io.EOFException; +import java.io.IOException; +import java.util.Objects; +import okio.ByteString; +/* compiled from: JsonUtf8Reader */ +public final class d extends c { + public static final ByteString o = ByteString.h("'\\"); + public static final ByteString p = ByteString.h("\"\\"); + public static final ByteString q = ByteString.h("{}[]:, \n\t\r\f/\\;#="); + public static final ByteString r = ByteString.h("\n\r"); + + /* renamed from: s reason: collision with root package name */ + public static final ByteString f325s = ByteString.h("*/"); + public final g t; + public final e u; + public int v = 0; + public long w; + + /* renamed from: x reason: collision with root package name */ + public int f326x; + @Nullable + + /* renamed from: y reason: collision with root package name */ + public String f327y; + + public d(g gVar) { + Objects.requireNonNull(gVar, "source == null"); + this.t = gVar; + this.u = gVar.g(); + x(6); + } + + @Override // b.c.a.a0.i0.c + public void A() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 14) { + U(); + } else if (i == 13) { + T(p); + } else if (i == 12) { + T(o); + } else if (i != 15) { + StringBuilder R = a.R("Expected a name but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + this.v = 0; + this.m[this.k - 1] = "null"; + } + + @Override // b.c.a.a0.i0.c + public void C() throws IOException { + int i = 0; + do { + int i2 = this.v; + if (i2 == 0) { + i2 = I(); + } + if (i2 == 3) { + x(1); + } else if (i2 == 1) { + x(3); + } else { + if (i2 == 4) { + i--; + if (i >= 0) { + this.k--; + } else { + StringBuilder R = a.R("Expected a value but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + } else if (i2 == 2) { + i--; + if (i >= 0) { + this.k--; + } else { + StringBuilder R2 = a.R("Expected a value but was "); + R2.append(u()); + R2.append(" at path "); + R2.append(getPath()); + throw new a(R2.toString()); + } + } else if (i2 == 14 || i2 == 10) { + U(); + } else if (i2 == 9 || i2 == 13) { + T(p); + } else if (i2 == 8 || i2 == 12) { + T(o); + } else if (i2 == 17) { + this.u.skip((long) this.f326x); + } else if (i2 == 18) { + StringBuilder R3 = a.R("Expected a value but was "); + R3.append(u()); + R3.append(" at path "); + R3.append(getPath()); + throw new a(R3.toString()); + } + this.v = 0; + } + i++; + this.v = 0; + } while (i != 0); + int[] iArr = this.n; + int i3 = this.k; + int i4 = i3 - 1; + iArr[i4] = iArr[i4] + 1; + this.m[i3 - 1] = "null"; + } + + public final void H() throws IOException { + D("Use JsonReader.setLenient(true) to accept malformed JSON"); + throw null; + } + + /* JADX WARNING: Code restructure failed: missing block: B:121:0x01aa, code lost: + if (L(r2) != false) goto L_0x0210; + */ + /* JADX WARNING: Code restructure failed: missing block: B:122:0x01ad, code lost: + if (r1 != 2) goto L_0x01d3; + */ + /* JADX WARNING: Code restructure failed: missing block: B:123:0x01af, code lost: + if (r6 == false) goto L_0x01d2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:125:0x01b5, code lost: + if (r7 != Long.MIN_VALUE) goto L_0x01b9; + */ + /* JADX WARNING: Code restructure failed: missing block: B:126:0x01b7, code lost: + if (r9 == false) goto L_0x01d2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:128:0x01bd, code lost: + if (r7 != 0) goto L_0x01c1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:129:0x01bf, code lost: + if (r9 != false) goto L_0x01d2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:130:0x01c1, code lost: + if (r9 == false) goto L_0x01c4; + */ + /* JADX WARNING: Code restructure failed: missing block: B:131:0x01c4, code lost: + r7 = -r7; + */ + /* JADX WARNING: Code restructure failed: missing block: B:132:0x01c5, code lost: + r17.w = r7; + r17.u.skip((long) r5); + r15 = 16; + r17.v = 16; + */ + /* JADX WARNING: Code restructure failed: missing block: B:133:0x01d2, code lost: + r2 = 2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:134:0x01d3, code lost: + if (r1 == r2) goto L_0x01db; + */ + /* JADX WARNING: Code restructure failed: missing block: B:136:0x01d6, code lost: + if (r1 == 4) goto L_0x01db; + */ + /* JADX WARNING: Code restructure failed: missing block: B:138:0x01d9, code lost: + if (r1 != 7) goto L_0x0210; + */ + /* JADX WARNING: Code restructure failed: missing block: B:139:0x01db, code lost: + r17.f326x = r5; + r15 = 17; + r17.v = 17; + */ + /* JADX WARNING: Code restructure failed: missing block: B:82:0x0133, code lost: + r2 = 2; + */ + /* JADX WARNING: Removed duplicated region for block: B:78:0x0122 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:79:0x0123 */ + public final int I() throws IOException { + int i; + int i2; + String str; + String str2; + byte q2; + int[] iArr = this.l; + int i3 = this.k; + int i4 = iArr[i3 - 1]; + if (i4 == 1) { + iArr[i3 - 1] = 2; + } else if (i4 == 2) { + int N = N(true); + this.u.readByte(); + if (N != 44) { + if (N == 59) { + H(); + throw null; + } else if (N == 93) { + this.v = 4; + return 4; + } else { + D("Unterminated array"); + throw null; + } + } + } else if (i4 == 3 || i4 == 5) { + iArr[i3 - 1] = 4; + if (i4 == 5) { + int N2 = N(true); + this.u.readByte(); + if (N2 != 44) { + if (N2 == 59) { + H(); + throw null; + } else if (N2 == 125) { + this.v = 2; + return 2; + } else { + D("Unterminated object"); + throw null; + } + } + } + int N3 = N(true); + if (N3 == 34) { + this.u.readByte(); + this.v = 13; + return 13; + } else if (N3 == 39) { + this.u.readByte(); + H(); + throw null; + } else if (N3 != 125) { + H(); + throw null; + } else if (i4 != 5) { + this.u.readByte(); + this.v = 2; + return 2; + } else { + D("Expected name"); + throw null; + } + } else if (i4 == 4) { + iArr[i3 - 1] = 5; + int N4 = N(true); + this.u.readByte(); + if (N4 != 58) { + if (N4 != 61) { + D("Expected ':'"); + throw null; + } + H(); + throw null; + } + } else if (i4 == 6) { + iArr[i3 - 1] = 7; + } else if (i4 == 7) { + if (N(false) == -1) { + this.v = 18; + return 18; + } + H(); + throw null; + } else if (i4 == 8) { + throw new IllegalStateException("JsonReader is closed"); + } + int N5 = N(true); + if (N5 == 34) { + this.u.readByte(); + this.v = 9; + return 9; + } else if (N5 != 39) { + if (!(N5 == 44 || N5 == 59)) { + if (N5 == 91) { + this.u.readByte(); + this.v = 3; + return 3; + } else if (N5 != 93) { + if (N5 != 123) { + byte q3 = this.u.q(0); + if (q3 == 116 || q3 == 84) { + str2 = "true"; + str = "TRUE"; + i = 5; + } else if (q3 == 102 || q3 == 70) { + str2 = "false"; + str = "FALSE"; + i = 6; + } else { + if (q3 == 110 || q3 == 78) { + str2 = "null"; + str = "NULL"; + i = 7; + } + i = 0; + if (i == 0) { + return i; + } + long j = 0; + char c = 0; + int i5 = 0; + boolean z2 = true; + boolean z3 = false; + while (true) { + int i6 = i5 + 1; + if (!this.t.j((long) i6)) { + break; + } + byte q4 = this.u.q((long) i5); + if (q4 != 43) { + if (q4 != 69 && q4 != 101) { + if (q4 != 45) { + if (q4 == 46) { + i2 = i6; + if (c != 2) { + break; + } + c = 3; + i5 = i2; + } else if (q4 < 48 || q4 > 57) { + break; + } else { + if (c == 1 || c == 0) { + i2 = i6; + j = (long) (-(q4 - 48)); + c = 2; + } else if (c != 2) { + i2 = i6; + if (c == 3) { + c = 4; + i5 = i2; + } else if (c == 5 || c == 6) { + c = 7; + } + } else if (j == 0) { + break; + } else { + i2 = i6; + long j2 = (10 * j) - ((long) (q4 - 48)); + int i7 = (j > -922337203685477580L ? 1 : (j == -922337203685477580L ? 0 : -1)); + z2 = (i7 > 0 || (i7 == 0 && j2 < j)) & z2; + j = j2; + } + i5 = i2; + } + } else { + i2 = i6; + if (c != 0) { + if (c != 5) { + break; + } + } else { + c = 1; + z3 = true; + i5 = i2; + } + } + } else { + i2 = i6; + if (c != 2 && c != 4) { + break; + } + c = 5; + i5 = i2; + } + } else { + i2 = i6; + if (c != 5) { + break; + } + } + c = 6; + i5 = i2; + } + int i8 = 0; + if (i8 != 0) { + return i8; + } + if (!L(this.u.q(0))) { + D("Expected value"); + throw null; + } + H(); + throw null; + } + int length = str2.length(); + int i9 = 1; + while (true) { + if (i9 < length) { + int i10 = i9 + 1; + if (!this.t.j((long) i10) || ((q2 = this.u.q((long) i9)) != str2.charAt(i9) && q2 != str.charAt(i9))) { + break; + } + i9 = i10; + } else if (!this.t.j((long) (length + 1)) || !L(this.u.q((long) length))) { + this.u.skip((long) length); + this.v = i; + } + } + i = 0; + if (i == 0) { + } + } else { + this.u.readByte(); + this.v = 1; + return 1; + } + } else if (i4 == 1) { + this.u.readByte(); + this.v = 4; + return 4; + } + } + if (i4 == 1 || i4 == 2) { + H(); + throw null; + } + D("Unexpected value"); + throw null; + } else { + H(); + throw null; + } + } + + public final int J(String str, c.a aVar) { + int length = aVar.a.length; + for (int i = 0; i < length; i++) { + if (str.equals(aVar.a[i])) { + this.v = 0; + this.m[this.k - 1] = str; + return i; + } + } + return -1; + } + + public final boolean L(int i) throws IOException { + if (i == 9 || i == 10 || i == 12 || i == 13 || i == 32) { + return false; + } + if (i != 35) { + if (i == 44) { + return false; + } + if (!(i == 47 || i == 61)) { + if (i == 123 || i == 125 || i == 58) { + return false; + } + if (i != 59) { + switch (i) { + case 91: + case 93: + return false; + case 92: + break; + default: + return true; + } + } + } + } + H(); + throw null; + } + + public final int N(boolean z2) throws IOException { + int i = 0; + while (true) { + int i2 = i + 1; + if (this.t.j((long) i2)) { + byte q2 = this.u.q((long) i); + if (q2 == 10 || q2 == 32 || q2 == 13 || q2 == 9) { + i = i2; + } else { + this.u.skip((long) (i2 - 1)); + if (q2 == 47) { + if (!this.t.j(2)) { + return q2; + } + H(); + throw null; + } else if (q2 != 35) { + return q2; + } else { + H(); + throw null; + } + } + } else if (!z2) { + return -1; + } else { + throw new EOFException("End of input"); + } + } + } + + public final String O(ByteString byteString) throws IOException { + StringBuilder sb = null; + while (true) { + long E = this.t.E(byteString); + if (E == -1) { + D("Unterminated string"); + throw null; + } else if (this.u.q(E) == 92) { + if (sb == null) { + sb = new StringBuilder(); + } + sb.append(this.u.H(E)); + this.u.readByte(); + sb.append(S()); + } else if (sb == null) { + String H = this.u.H(E); + this.u.readByte(); + return H; + } else { + sb.append(this.u.H(E)); + this.u.readByte(); + return sb.toString(); + } + } + } + + public final String R() throws IOException { + long E = this.t.E(q); + return E != -1 ? this.u.H(E) : this.u.D(); + } + + public final char S() throws IOException { + int i; + int i2; + if (this.t.j(1)) { + byte readByte = this.u.readByte(); + if (readByte == 10 || readByte == 34 || readByte == 39 || readByte == 47 || readByte == 92) { + return (char) readByte; + } + if (readByte == 98) { + return '\b'; + } + if (readByte == 102) { + return '\f'; + } + if (readByte == 110) { + return '\n'; + } + if (readByte == 114) { + return '\r'; + } + if (readByte == 116) { + return '\t'; + } + if (readByte != 117) { + StringBuilder R = a.R("Invalid escape sequence: \\"); + R.append((char) readByte); + D(R.toString()); + throw null; + } else if (this.t.j(4)) { + char c = 0; + for (int i3 = 0; i3 < 4; i3++) { + byte q2 = this.u.q((long) i3); + char c2 = (char) (c << 4); + if (q2 < 48 || q2 > 57) { + if (q2 >= 97 && q2 <= 102) { + i2 = q2 - 97; + } else if (q2 < 65 || q2 > 70) { + StringBuilder R2 = a.R("\\u"); + R2.append(this.u.H(4)); + D(R2.toString()); + throw null; + } else { + i2 = q2 - 65; + } + i = i2 + 10; + } else { + i = q2 - 48; + } + c = (char) (i + c2); + } + this.u.skip(4); + return c; + } else { + StringBuilder R3 = a.R("Unterminated escape sequence at path "); + R3.append(getPath()); + throw new EOFException(R3.toString()); + } + } else { + D("Unterminated escape sequence"); + throw null; + } + } + + public final void T(ByteString byteString) throws IOException { + while (true) { + long E = this.t.E(byteString); + if (E == -1) { + D("Unterminated string"); + throw null; + } else if (this.u.q(E) == 92) { + this.u.skip(E + 1); + S(); + } else { + this.u.skip(E + 1); + return; + } + } + } + + public final void U() throws IOException { + long E = this.t.E(q); + e eVar = this.u; + if (E == -1) { + E = eVar.k; + } + eVar.skip(E); + } + + @Override // b.c.a.a0.i0.c + public void a() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 3) { + x(1); + this.n[this.k - 1] = 0; + this.v = 0; + return; + } + StringBuilder R = a.R("Expected BEGIN_ARRAY but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + + @Override // b.c.a.a0.i0.c + public void b() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 1) { + x(3); + this.v = 0; + return; + } + StringBuilder R = a.R("Expected BEGIN_OBJECT but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + + @Override // b.c.a.a0.i0.c + public void c() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 4) { + int i2 = this.k - 1; + this.k = i2; + int[] iArr = this.n; + int i3 = i2 - 1; + iArr[i3] = iArr[i3] + 1; + this.v = 0; + return; + } + StringBuilder R = a.R("Expected END_ARRAY but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + this.v = 0; + this.l[0] = 8; + this.k = 1; + e eVar = this.u; + eVar.skip(eVar.k); + this.t.close(); + } + + @Override // b.c.a.a0.i0.c + public void d() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 2) { + int i2 = this.k - 1; + this.k = i2; + this.m[i2] = null; + int[] iArr = this.n; + int i3 = i2 - 1; + iArr[i3] = iArr[i3] + 1; + this.v = 0; + return; + } + StringBuilder R = a.R("Expected END_OBJECT but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + + @Override // b.c.a.a0.i0.c + public boolean e() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + return (i == 2 || i == 4 || i == 18) ? false : true; + } + + @Override // b.c.a.a0.i0.c + public boolean f() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 5) { + this.v = 0; + int[] iArr = this.n; + int i2 = this.k - 1; + iArr[i2] = iArr[i2] + 1; + return true; + } else if (i == 6) { + this.v = 0; + int[] iArr2 = this.n; + int i3 = this.k - 1; + iArr2[i3] = iArr2[i3] + 1; + return false; + } else { + StringBuilder R = a.R("Expected a boolean but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + } + + @Override // b.c.a.a0.i0.c + public double n() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 16) { + this.v = 0; + int[] iArr = this.n; + int i2 = this.k - 1; + iArr[i2] = iArr[i2] + 1; + return (double) this.w; + } + if (i == 17) { + this.f327y = this.u.H((long) this.f326x); + } else if (i == 9) { + this.f327y = O(p); + } else if (i == 8) { + this.f327y = O(o); + } else if (i == 10) { + this.f327y = R(); + } else if (i != 11) { + StringBuilder R = a.R("Expected a double but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + this.v = 11; + try { + double parseDouble = Double.parseDouble(this.f327y); + if (Double.isNaN(parseDouble) || Double.isInfinite(parseDouble)) { + throw new b("JSON forbids NaN and infinities: " + parseDouble + " at path " + getPath()); + } + this.f327y = null; + this.v = 0; + int[] iArr2 = this.n; + int i3 = this.k - 1; + iArr2[i3] = iArr2[i3] + 1; + return parseDouble; + } catch (NumberFormatException unused) { + StringBuilder R2 = a.R("Expected a double but was "); + R2.append(this.f327y); + R2.append(" at path "); + R2.append(getPath()); + throw new a(R2.toString()); + } + } + + @Override // b.c.a.a0.i0.c + public int q() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 16) { + long j = this.w; + int i2 = (int) j; + if (j == ((long) i2)) { + this.v = 0; + int[] iArr = this.n; + int i3 = this.k - 1; + iArr[i3] = iArr[i3] + 1; + return i2; + } + StringBuilder R = a.R("Expected an int but was "); + R.append(this.w); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + if (i == 17) { + this.f327y = this.u.H((long) this.f326x); + } else if (i == 9 || i == 8) { + String O = i == 9 ? O(p) : O(o); + this.f327y = O; + try { + int parseInt = Integer.parseInt(O); + this.v = 0; + int[] iArr2 = this.n; + int i4 = this.k - 1; + iArr2[i4] = iArr2[i4] + 1; + return parseInt; + } catch (NumberFormatException unused) { + } + } else if (i != 11) { + StringBuilder R2 = a.R("Expected an int but was "); + R2.append(u()); + R2.append(" at path "); + R2.append(getPath()); + throw new a(R2.toString()); + } + this.v = 11; + try { + double parseDouble = Double.parseDouble(this.f327y); + int i5 = (int) parseDouble; + if (((double) i5) == parseDouble) { + this.f327y = null; + this.v = 0; + int[] iArr3 = this.n; + int i6 = this.k - 1; + iArr3[i6] = iArr3[i6] + 1; + return i5; + } + StringBuilder R3 = a.R("Expected an int but was "); + R3.append(this.f327y); + R3.append(" at path "); + R3.append(getPath()); + throw new a(R3.toString()); + } catch (NumberFormatException unused2) { + StringBuilder R4 = a.R("Expected an int but was "); + R4.append(this.f327y); + R4.append(" at path "); + R4.append(getPath()); + throw new a(R4.toString()); + } + } + + @Override // b.c.a.a0.i0.c + public String s() throws IOException { + String str; + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 14) { + str = R(); + } else if (i == 13) { + str = O(p); + } else if (i == 12) { + str = O(o); + } else if (i == 15) { + str = this.f327y; + } else { + StringBuilder R = a.R("Expected a name but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + this.v = 0; + this.m[this.k - 1] = str; + return str; + } + + @Override // b.c.a.a0.i0.c + public String t() throws IOException { + String str; + int i = this.v; + if (i == 0) { + i = I(); + } + if (i == 10) { + str = R(); + } else if (i == 9) { + str = O(p); + } else if (i == 8) { + str = O(o); + } else if (i == 11) { + str = this.f327y; + this.f327y = null; + } else if (i == 16) { + str = Long.toString(this.w); + } else if (i == 17) { + str = this.u.H((long) this.f326x); + } else { + StringBuilder R = a.R("Expected a string but was "); + R.append(u()); + R.append(" at path "); + R.append(getPath()); + throw new a(R.toString()); + } + this.v = 0; + int[] iArr = this.n; + int i2 = this.k - 1; + iArr[i2] = iArr[i2] + 1; + return str; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("JsonReader("); + R.append(this.t); + R.append(")"); + return R.toString(); + } + + @Override // b.c.a.a0.i0.c + public c.b u() throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + switch (i) { + case 1: + return c.b.BEGIN_OBJECT; + case 2: + return c.b.END_OBJECT; + case 3: + return c.b.BEGIN_ARRAY; + case 4: + return c.b.END_ARRAY; + case 5: + case 6: + return c.b.BOOLEAN; + case 7: + return c.b.NULL; + case 8: + case 9: + case 10: + case 11: + return c.b.STRING; + case 12: + case 13: + case 14: + case 15: + return c.b.NAME; + case 16: + case 17: + return c.b.NUMBER; + case 18: + return c.b.END_DOCUMENT; + default: + throw new AssertionError(); + } + } + + @Override // b.c.a.a0.i0.c + public int y(c.a aVar) throws IOException { + int i = this.v; + if (i == 0) { + i = I(); + } + if (i < 12 || i > 15) { + return -1; + } + if (i == 15) { + return J(this.f327y, aVar); + } + int v0 = this.t.v0(aVar.f323b); + if (v0 != -1) { + this.v = 0; + this.m[this.k - 1] = aVar.a[v0]; + return v0; + } + String str = this.m[this.k - 1]; + String s2 = s(); + int J = J(s2, aVar); + if (J == -1) { + this.v = 15; + this.f327y = s2; + this.m[this.k - 1] = str; + } + return J; + } +} diff --git a/app/src/main/java/b/c/a/a0/j.java b/app/src/main/java/b/c/a/a0/j.java new file mode 100644 index 0000000000..e5b48a50c5 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/j.java @@ -0,0 +1,10 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: FontCharacterParser */ +public class j { + public static final c.a a = c.a.a("ch", "size", "w", "style", "fFamily", "data"); + + /* renamed from: b reason: collision with root package name */ + public static final c.a f328b = c.a.a("shapes"); +} diff --git a/app/src/main/java/b/c/a/a0/k.java b/app/src/main/java/b/c/a/a0/k.java new file mode 100644 index 0000000000..0f39559484 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/k.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: FontParser */ +public class k { + public static final c.a a = c.a.a("fFamily", "fName", "fStyle", "ascent"); +} diff --git a/app/src/main/java/b/c/a/a0/l.java b/app/src/main/java/b/c/a/a0/l.java new file mode 100644 index 0000000000..5565a3abe8 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/l.java @@ -0,0 +1,109 @@ +package b.c.a.a0; + +import android.graphics.Color; +import android.graphics.PointF; +import b.c.a.a0.i0.c; +import b.c.a.b0.f; +import b.c.a.y.l.c; +import java.io.IOException; +import java.util.ArrayList; +/* compiled from: GradientColorParser */ +public class l implements h0 { + public int a; + + public l(int i) { + this.a = i; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public c a(b.c.a.a0.i0.c cVar, float f) throws IOException { + int i; + double d; + ArrayList arrayList = new ArrayList(); + int i2 = 0; + boolean z2 = cVar.u() == c.b.BEGIN_ARRAY; + if (z2) { + cVar.a(); + } + while (cVar.e()) { + arrayList.add(Float.valueOf((float) cVar.n())); + } + if (z2) { + cVar.c(); + } + if (this.a == -1) { + this.a = arrayList.size() / 4; + } + int i3 = this.a; + float[] fArr = new float[i3]; + int[] iArr = new int[i3]; + int i4 = 0; + int i5 = 0; + int i6 = 0; + while (true) { + i = this.a * 4; + if (i4 >= i) { + break; + } + int i7 = i4 / 4; + double floatValue = (double) ((Float) arrayList.get(i4)).floatValue(); + int i8 = i4 % 4; + if (i8 == 0) { + fArr[i7] = (float) floatValue; + } else if (i8 == 1) { + i5 = (int) (floatValue * 255.0d); + } else if (i8 == 2) { + i6 = (int) (floatValue * 255.0d); + } else if (i8 == 3) { + iArr[i7] = Color.argb(255, i5, i6, (int) (floatValue * 255.0d)); + } + i4++; + } + b.c.a.y.l.c cVar2 = new b.c.a.y.l.c(fArr, iArr); + if (arrayList.size() > i) { + int size = (arrayList.size() - i) / 2; + double[] dArr = new double[size]; + double[] dArr2 = new double[size]; + int i9 = 0; + while (i < arrayList.size()) { + if (i % 2 == 0) { + dArr[i9] = (double) ((Float) arrayList.get(i)).floatValue(); + } else { + dArr2[i9] = (double) ((Float) arrayList.get(i)).floatValue(); + i9++; + } + i++; + } + while (true) { + int[] iArr2 = cVar2.f406b; + if (i2 >= iArr2.length) { + break; + } + int i10 = iArr2[i2]; + double d2 = (double) cVar2.a[i2]; + int i11 = 1; + while (true) { + if (i11 >= size) { + d = dArr2[size - 1]; + break; + } + int i12 = i11 - 1; + double d3 = dArr[i12]; + double d4 = dArr[i11]; + if (dArr[i11] >= d2) { + double d5 = dArr2[i12]; + double d6 = dArr2[i11]; + PointF pointF = f.a; + d = ((d6 - d5) * ((d2 - d3) / (d4 - d3))) + d5; + break; + } + i11++; + } + cVar2.f406b[i2] = Color.argb((int) (d * 255.0d), Color.red(i10), Color.green(i10), Color.blue(i10)); + i2++; + } + } + return cVar2; + } +} diff --git a/app/src/main/java/b/c/a/a0/m.java b/app/src/main/java/b/c/a/a0/m.java new file mode 100644 index 0000000000..52713a7094 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/m.java @@ -0,0 +1,10 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: GradientFillParser */ +public class m { + public static final c.a a = c.a.a("nm", "g", "o", "t", "s", "e", "r", "hd"); + + /* renamed from: b reason: collision with root package name */ + public static final c.a f329b = c.a.a("p", "k"); +} diff --git a/app/src/main/java/b/c/a/a0/n.java b/app/src/main/java/b/c/a/a0/n.java new file mode 100644 index 0000000000..00017f5bad --- /dev/null +++ b/app/src/main/java/b/c/a/a0/n.java @@ -0,0 +1,11 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: GradientStrokeParser */ +public class n { + public static c.a a = c.a.a("nm", "g", "o", "t", "s", "e", "w", "lc", "lj", "ml", "hd", "d"); + + /* renamed from: b reason: collision with root package name */ + public static final c.a f330b = c.a.a("p", "k"); + public static final c.a c = c.a.a("n", "v"); +} diff --git a/app/src/main/java/b/c/a/a0/o.java b/app/src/main/java/b/c/a/a0/o.java new file mode 100644 index 0000000000..16bf3eff54 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/o.java @@ -0,0 +1,14 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +import java.io.IOException; +/* compiled from: IntegerParser */ +public class o implements h0 { + public static final o a = new o(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public Integer a(c cVar, float f) throws IOException { + return Integer.valueOf(Math.round(p.d(cVar) * f)); + } +} diff --git a/app/src/main/java/b/c/a/a0/p.java b/app/src/main/java/b/c/a/a0/p.java new file mode 100644 index 0000000000..8c1e38ba84 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/p.java @@ -0,0 +1,99 @@ +package b.c.a.a0; + +import android.graphics.Color; +import android.graphics.PointF; +import androidx.annotation.ColorInt; +import b.c.a.a0.i0.c; +import b.d.b.a.a; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/* compiled from: JsonUtils */ +public class p { + public static final c.a a = c.a.a("x", "y"); + + @ColorInt + public static int a(c cVar) throws IOException { + cVar.a(); + int n = (int) (cVar.n() * 255.0d); + int n2 = (int) (cVar.n() * 255.0d); + int n3 = (int) (cVar.n() * 255.0d); + while (cVar.e()) { + cVar.C(); + } + cVar.c(); + return Color.argb(255, n, n2, n3); + } + + public static PointF b(c cVar, float f) throws IOException { + int ordinal = cVar.u().ordinal(); + if (ordinal == 0) { + cVar.a(); + float n = (float) cVar.n(); + float n2 = (float) cVar.n(); + while (cVar.u() != c.b.END_ARRAY) { + cVar.C(); + } + cVar.c(); + return new PointF(n * f, n2 * f); + } else if (ordinal == 2) { + cVar.b(); + float f2 = 0.0f; + float f3 = 0.0f; + while (cVar.e()) { + int y2 = cVar.y(a); + if (y2 == 0) { + f2 = d(cVar); + } else if (y2 != 1) { + cVar.A(); + cVar.C(); + } else { + f3 = d(cVar); + } + } + cVar.d(); + return new PointF(f2 * f, f3 * f); + } else if (ordinal == 6) { + float n3 = (float) cVar.n(); + float n4 = (float) cVar.n(); + while (cVar.e()) { + cVar.C(); + } + return new PointF(n3 * f, n4 * f); + } else { + StringBuilder R = a.R("Unknown point starts with "); + R.append(cVar.u()); + throw new IllegalArgumentException(R.toString()); + } + } + + public static List c(c cVar, float f) throws IOException { + ArrayList arrayList = new ArrayList(); + cVar.a(); + while (cVar.u() == c.b.BEGIN_ARRAY) { + cVar.a(); + arrayList.add(b(cVar, f)); + cVar.c(); + } + cVar.c(); + return arrayList; + } + + public static float d(c cVar) throws IOException { + c.b u = cVar.u(); + int ordinal = u.ordinal(); + if (ordinal == 0) { + cVar.a(); + float n = (float) cVar.n(); + while (cVar.e()) { + cVar.C(); + } + cVar.c(); + return n; + } else if (ordinal == 6) { + return (float) cVar.n(); + } else { + throw new IllegalArgumentException("Unknown value for token of type " + u); + } + } +} diff --git a/app/src/main/java/b/c/a/a0/q.java b/app/src/main/java/b/c/a/a0/q.java new file mode 100644 index 0000000000..f75dbc90a0 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/q.java @@ -0,0 +1,144 @@ +package b.c.a.a0; + +import android.graphics.PathMeasure; +import android.graphics.PointF; +import android.view.animation.Interpolator; +import android.view.animation.LinearInterpolator; +import androidx.collection.SparseArrayCompat; +import androidx.core.view.animation.PathInterpolatorCompat; +import b.c.a.a0.i0.c; +import b.c.a.b0.f; +import b.c.a.b0.g; +import b.c.a.c0.a; +import b.c.a.d; +import java.io.IOException; +import java.lang.ref.WeakReference; +/* compiled from: KeyframeParser */ +public class q { + public static final Interpolator a = new LinearInterpolator(); + + /* renamed from: b reason: collision with root package name */ + public static SparseArrayCompat> f331b; + public static c.a c = c.a.a("t", "s", "e", "o", "i", "h", "to", "ti"); + + public static a a(c cVar, d dVar, float f, h0 h0Var, boolean z2) throws IOException { + T t; + WeakReference weakReference; + Interpolator interpolator; + if (!z2) { + return new a<>(h0Var.a(cVar, f)); + } + cVar.b(); + int i = 1; + Interpolator interpolator2 = null; + PointF pointF = null; + PointF pointF2 = null; + T t2 = null; + T t3 = null; + PointF pointF3 = null; + PointF pointF4 = null; + boolean z3 = false; + float f2 = 0.0f; + while (cVar.e()) { + switch (cVar.y(c)) { + case 0: + f2 = (float) cVar.n(); + break; + case 1: + t3 = h0Var.a(cVar, f); + continue; + case 2: + t2 = h0Var.a(cVar, f); + continue; + case 3: + pointF = p.b(cVar, f); + continue; + case 4: + pointF2 = p.b(cVar, f); + continue; + case 5: + if (cVar.q() == i) { + z3 = true; + continue; + } else { + z3 = false; + } + case 6: + pointF4 = p.b(cVar, f); + continue; + case 7: + pointF3 = p.b(cVar, f); + continue; + default: + cVar.C(); + break; + } + i = 1; + } + cVar.d(); + if (z3) { + interpolator2 = a; + t = t3; + } else { + if (pointF == null || pointF2 == null) { + interpolator2 = a; + } else { + float f3 = -f; + pointF.x = f.b(pointF.x, f3, f); + pointF.y = f.b(pointF.y, -100.0f, 100.0f); + pointF2.x = f.b(pointF2.x, f3, f); + float b2 = f.b(pointF2.y, -100.0f, 100.0f); + pointF2.y = b2; + float f4 = pointF.x; + float f5 = pointF.y; + float f6 = pointF2.x; + PathMeasure pathMeasure = g.a; + int i2 = f4 != 0.0f ? (int) (((float) 527) * f4) : 17; + if (f5 != 0.0f) { + i2 = (int) (((float) (i2 * 31)) * f5); + } + if (f6 != 0.0f) { + i2 = (int) (((float) (i2 * 31)) * f6); + } + if (b2 != 0.0f) { + i2 = (int) (((float) (i2 * 31)) * b2); + } + synchronized (q.class) { + if (f331b == null) { + f331b = new SparseArrayCompat<>(); + } + weakReference = f331b.get(i2); + } + if (weakReference != null) { + interpolator2 = weakReference.get(); + } + if (weakReference == null || interpolator2 == null) { + pointF.x /= f; + pointF.y /= f; + float f7 = pointF2.x / f; + pointF2.x = f7; + float f8 = pointF2.y / f; + pointF2.y = f8; + try { + interpolator = PathInterpolatorCompat.create(pointF.x, pointF.y, f7, f8); + } catch (IllegalArgumentException e) { + interpolator = e.getMessage().equals("The Path cannot loop back on itself.") ? PathInterpolatorCompat.create(Math.min(pointF.x, 1.0f), pointF.y, Math.max(pointF2.x, 0.0f), pointF2.y) : new LinearInterpolator(); + } + interpolator2 = interpolator; + try { + WeakReference weakReference2 = new WeakReference<>(interpolator2); + synchronized (q.class) { + f331b.put(i2, weakReference2); + } + } catch (ArrayIndexOutOfBoundsException unused) { + } + } + } + t = t2; + } + a aVar = new a<>(dVar, t3, t, interpolator2, f2, null); + aVar.m = pointF4; + aVar.n = pointF3; + return aVar; + } +} diff --git a/app/src/main/java/b/c/a/a0/r.java b/app/src/main/java/b/c/a/a0/r.java new file mode 100644 index 0000000000..274131fc07 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/r.java @@ -0,0 +1,69 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +import b.c.a.c0.a; +import b.c.a.d; +import b.c.a.w.c.h; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/* compiled from: KeyframesParser */ +public class r { + public static c.a a = c.a.a("k"); + + public static List> a(c cVar, d dVar, float f, h0 h0Var) throws IOException { + ArrayList arrayList = new ArrayList(); + if (cVar.u() == c.b.STRING) { + dVar.a("Lottie doesn't support expressions."); + return arrayList; + } + cVar.b(); + while (cVar.e()) { + if (cVar.y(a) != 0) { + cVar.C(); + } else if (cVar.u() == c.b.BEGIN_ARRAY) { + cVar.a(); + if (cVar.u() == c.b.NUMBER) { + arrayList.add(q.a(cVar, dVar, f, h0Var, false)); + } else { + while (cVar.e()) { + arrayList.add(q.a(cVar, dVar, f, h0Var, true)); + } + } + cVar.c(); + } else { + arrayList.add(q.a(cVar, dVar, f, h0Var, false)); + } + } + cVar.d(); + b(arrayList); + return arrayList; + } + + public static void b(List> list) { + int i; + T t; + int size = list.size(); + int i2 = 0; + while (true) { + i = size - 1; + if (i2 >= i) { + break; + } + a aVar = (a) list.get(i2); + i2++; + a aVar2 = (a) list.get(i2); + aVar.f = Float.valueOf(aVar2.e); + if (aVar.c == null && (t = aVar2.f337b) != null) { + aVar.c = t; + if (aVar instanceof h) { + ((h) aVar).e(); + } + } + } + a aVar3 = (a) list.get(i); + if ((aVar3.f337b == null || aVar3.c == null) && list.size() > 1) { + list.remove(aVar3); + } + } +} diff --git a/app/src/main/java/b/c/a/a0/s.java b/app/src/main/java/b/c/a/a0/s.java new file mode 100644 index 0000000000..f909ad6dbd --- /dev/null +++ b/app/src/main/java/b/c/a/a0/s.java @@ -0,0 +1,443 @@ +package b.c.a.a0; + +import android.graphics.Color; +import b.c.a.a0.i0.c; +import b.c.a.b0.g; +import b.c.a.d; +import b.c.a.y.k.a; +import b.c.a.y.k.b; +import b.c.a.y.k.h; +import b.c.a.y.k.j; +import b.c.a.y.k.k; +import b.c.a.y.k.l; +import b.c.a.y.l.f; +import b.c.a.y.m.e; +import java.io.IOException; +import java.util.ArrayList; +/* compiled from: LayerParser */ +public class s { + public static final c.a a = c.a.a("nm", "ind", "refId", "ty", "parent", "sw", "sh", "sc", "ks", "tt", "masksProperties", "shapes", "t", "ef", "sr", "st", "w", "h", "ip", "op", "tm", "cl", "hd"); + + /* renamed from: b reason: collision with root package name */ + public static final c.a f332b = c.a.a("d", "a"); + public static final c.a c = c.a.a("nm"); + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:226:0x0303 */ + /* JADX DEBUG: Multi-variable search result rejected for r6v10, resolved type: b.c.a.y.k.d */ + /* JADX DEBUG: Multi-variable search result rejected for r6v11, resolved type: b.c.a.y.k.d */ + /* JADX DEBUG: Multi-variable search result rejected for r6v13, resolved type: b.c.a.y.k.d */ + /* JADX DEBUG: Multi-variable search result rejected for r6v23, resolved type: b.c.a.y.k.d */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:110:0x0259 */ + /* JADX WARNING: Removed duplicated region for block: B:139:0x02b4 */ + /* JADX WARNING: Removed duplicated region for block: B:149:0x02e4 */ + /* JADX WARNING: Removed duplicated region for block: B:153:0x02fe */ + public static e a(c cVar, d dVar) throws IOException { + ArrayList arrayList; + ArrayList arrayList2; + String str; + String str2; + long j; + char c2; + char c3; + String str3; + ArrayList arrayList3 = new ArrayList(); + ArrayList arrayList4 = new ArrayList(); + cVar.b(); + Float valueOf = Float.valueOf(1.0f); + Float valueOf2 = Float.valueOf(0.0f); + int i = 1; + boolean z2 = false; + long j2 = -1; + float f = 0.0f; + String str4 = null; + e.a aVar = null; + String str5 = null; + l lVar = null; + int i2 = 0; + int i3 = 0; + int i4 = 0; + float f2 = 1.0f; + float f3 = 0.0f; + int i5 = 0; + int i6 = 0; + j jVar = null; + k kVar = null; + int i7 = 1; + b bVar = null; + boolean z3 = false; + long j3 = 0; + String str6 = "UNSET"; + float f4 = 0.0f; + while (cVar.e()) { + switch (cVar.y(a)) { + case 0: + str2 = str4; + str6 = cVar.t(); + str4 = str2; + i = 1; + z2 = false; + case 1: + str2 = str4; + j3 = (long) cVar.q(); + str4 = str2; + i = 1; + z2 = false; + case 2: + str2 = str4; + str5 = cVar.t(); + str4 = str2; + i = 1; + z2 = false; + case 3: + str2 = str4; + j = j3; + int q = cVar.q(); + aVar = q < 6 ? e.a.values()[q] : e.a.UNKNOWN; + j3 = j; + str4 = str2; + i = 1; + z2 = false; + case 4: + str2 = str4; + j = j3; + j2 = (long) cVar.q(); + j3 = j; + str4 = str2; + i = 1; + z2 = false; + case 5: + str2 = str4; + i2 = (int) (g.c() * ((float) cVar.q())); + str4 = str2; + i = 1; + z2 = false; + case 6: + str2 = str4; + i3 = (int) (g.c() * ((float) cVar.q())); + str4 = str2; + i = 1; + z2 = false; + case 7: + str2 = str4; + i4 = Color.parseColor(cVar.t()); + str4 = str2; + i = 1; + z2 = false; + case 8: + str2 = str4; + lVar = c.a(cVar, dVar); + str4 = str2; + i = 1; + z2 = false; + case 9: + str2 = str4; + j = j3; + i7 = b.c.a.y.b.com$airbnb$lottie$model$layer$Layer$MatteType$s$values()[cVar.q()]; + dVar.o++; + j3 = j; + str4 = str2; + i = 1; + z2 = false; + case 10: + str2 = str4; + h hVar = null; + cVar.a(); + while (cVar.e()) { + cVar.b(); + h hVar2 = hVar; + b.c.a.y.k.d dVar2 = hVar2; + int i8 = 0; + boolean z4 = false; + while (cVar.e()) { + String s2 = cVar.s(); + s2.hashCode(); + int hashCode = s2.hashCode(); + if (hashCode != 111) { + if (hashCode != 3588) { + if (hashCode != 104433) { + if (hashCode == 3357091 && s2.equals("mode")) { + c2 = 3; + if (c2 == 0) { + dVar2 = d.q1(cVar, dVar); + } else if (c2 == 1) { + hVar2 = new h(r.a(cVar, dVar, g.c(), b0.a)); + } else if (c2 == 2) { + z4 = cVar.f(); + } else if (c2 != 3) { + cVar.C(); + } else { + String t = cVar.t(); + t.hashCode(); + int hashCode2 = t.hashCode(); + if (hashCode2 != 97) { + if (hashCode2 != 105) { + if (hashCode2 != 110) { + if (hashCode2 == 115 && t.equals("s")) { + c3 = 3; + if (c3 != 0) { + if (c3 == 1) { + dVar.a("Animation contains intersect masks. They are not supported but will be treated like add masks."); + i8 = 3; + } else if (c3 == 2) { + i8 = 4; + } else if (c3 != 3) { + b.c.a.b0.c.b("Unknown mask mode " + s2 + ". Defaulting to Add."); + } else { + i8 = 2; + } + } + i8 = 1; + } + } else if (t.equals("n")) { + c3 = 2; + if (c3 != 0) { + } + i8 = 1; + } + } else if (t.equals("i")) { + c3 = 1; + if (c3 != 0) { + } + i8 = 1; + } + } else if (t.equals("a")) { + c3 = 0; + if (c3 != 0) { + } + i8 = 1; + } + c3 = 65535; + if (c3 != 0) { + } + i8 = 1; + } + j3 = j3; + dVar2 = dVar2; + } + } else if (s2.equals("inv")) { + c2 = 2; + if (c2 == 0) { + } + j3 = j3; + dVar2 = dVar2; + } + } else if (s2.equals("pt")) { + c2 = 1; + if (c2 == 0) { + } + j3 = j3; + dVar2 = dVar2; + } + } else if (s2.equals("o")) { + c2 = 0; + if (c2 == 0) { + } + j3 = j3; + dVar2 = dVar2; + } + c2 = 65535; + if (c2 == 0) { + } + j3 = j3; + dVar2 = dVar2; + } + cVar.d(); + arrayList3.add(new f(i8, hVar2, dVar2, z4)); + j3 = j3; + hVar = null; + } + j = j3; + dVar.o += arrayList3.size(); + cVar.c(); + j3 = j; + str4 = str2; + i = 1; + z2 = false; + case 11: + str2 = str4; + cVar.a(); + while (cVar.e()) { + b.c.a.y.l.b a2 = g.a(cVar, dVar); + if (a2 != null) { + arrayList4.add(a2); + } + } + cVar.c(); + j = j3; + j3 = j; + str4 = str2; + i = 1; + z2 = false; + case 12: + cVar.b(); + while (cVar.e()) { + int y2 = cVar.y(f332b); + if (y2 == 0) { + str3 = str4; + jVar = new j(d.m1(cVar, dVar, h.a)); + } else if (y2 != i) { + cVar.A(); + cVar.C(); + } else { + cVar.a(); + if (cVar.e()) { + c.a aVar2 = b.a; + cVar.b(); + k kVar2 = null; + while (cVar.e()) { + if (cVar.y(b.a) != 0) { + cVar.A(); + cVar.C(); + } else { + cVar.b(); + b bVar2 = null; + b bVar3 = null; + a aVar3 = null; + a aVar4 = null; + while (cVar.e()) { + int y3 = cVar.y(b.f316b); + if (y3 == 0) { + aVar3 = d.n1(cVar, dVar); + } else if (y3 == i) { + aVar4 = d.n1(cVar, dVar); + } else if (y3 == 2) { + bVar2 = d.o1(cVar, dVar); + } else if (y3 != 3) { + cVar.A(); + cVar.C(); + } else { + bVar3 = d.o1(cVar, dVar); + } + i = 1; + } + cVar.d(); + kVar2 = new k(aVar3, aVar4, bVar2, bVar3); + str4 = str4; + i = 1; + } + } + str3 = str4; + cVar.d(); + kVar = kVar2 == null ? new k(null, null, null, null) : kVar2; + } else { + str3 = str4; + } + while (cVar.e()) { + cVar.C(); + } + cVar.c(); + } + str4 = str3; + i = 1; + } + str2 = str4; + cVar.d(); + str4 = str2; + i = 1; + z2 = false; + case 13: + cVar.a(); + ArrayList arrayList5 = new ArrayList(); + while (cVar.e()) { + cVar.b(); + while (cVar.e()) { + if (cVar.y(c) != 0) { + cVar.A(); + cVar.C(); + } else { + arrayList5.add(cVar.t()); + } + } + cVar.d(); + } + cVar.c(); + dVar.a("Lottie doesn't support layer effects. If you are using them for fills, strokes, trim paths etc. then try adding them directly as contents in your shape. Found: " + arrayList5); + str2 = str4; + j = j3; + j3 = j; + str4 = str2; + i = 1; + z2 = false; + case 14: + f2 = (float) cVar.n(); + str2 = str4; + str4 = str2; + i = 1; + z2 = false; + case 15: + f3 = (float) cVar.n(); + str2 = str4; + str4 = str2; + i = 1; + z2 = false; + case 16: + i5 = (int) (g.c() * ((float) cVar.q())); + str2 = str4; + str4 = str2; + i = 1; + z2 = false; + case 17: + i6 = (int) (g.c() * ((float) cVar.q())); + str2 = str4; + str4 = str2; + i = 1; + z2 = false; + case 18: + f = (float) cVar.n(); + str2 = str4; + str4 = str2; + i = 1; + z2 = false; + case 19: + f4 = (float) cVar.n(); + i = 1; + z2 = false; + case 20: + bVar = d.p1(cVar, dVar, z2); + i = 1; + z2 = false; + case 21: + str4 = cVar.t(); + i = 1; + z2 = false; + case 22: + z3 = cVar.f(); + i = 1; + z2 = false; + default: + str2 = str4; + j = j3; + cVar.A(); + cVar.C(); + j3 = j; + str4 = str2; + i = 1; + z2 = false; + } + } + cVar.d(); + float f5 = f / f2; + float f6 = f4 / f2; + ArrayList arrayList6 = new ArrayList(); + if (f5 > 0.0f) { + arrayList = arrayList4; + arrayList2 = arrayList3; + str = str4; + arrayList6.add(new b.c.a.c0.a(dVar, valueOf2, valueOf2, null, 0.0f, Float.valueOf(f5))); + } else { + arrayList = arrayList4; + arrayList2 = arrayList3; + str = str4; + } + if (f6 <= 0.0f) { + f6 = dVar.l; + } + arrayList6.add(new b.c.a.c0.a(dVar, valueOf, valueOf, null, f5, Float.valueOf(f6))); + arrayList6.add(new b.c.a.c0.a(dVar, valueOf2, valueOf2, null, f6, Float.valueOf(Float.MAX_VALUE))); + if (str6.endsWith(".ai") || "ai".equals(str)) { + dVar.a("Convert your Illustrator layers to shape layers."); + } + return new e(arrayList, dVar, str6, j3, aVar, j2, str5, arrayList2, lVar, i2, i3, i4, f2, f3, i5, i6, jVar, kVar, arrayList6, i7, bVar, z3); + } +} diff --git a/app/src/main/java/b/c/a/a0/t.java b/app/src/main/java/b/c/a/a0/t.java new file mode 100644 index 0000000000..ec467dca29 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/t.java @@ -0,0 +1,354 @@ +package b.c.a.a0; + +import android.graphics.Rect; +import androidx.collection.LongSparseArray; +import androidx.collection.SparseArrayCompat; +import b.c.a.a0.i0.c; +import b.c.a.b0.g; +import b.c.a.d; +import b.c.a.k; +import b.c.a.y.e; +import b.c.a.y.i; +import b.c.a.y.l.m; +import b.c.a.y.m.e; +import com.discord.models.domain.ModelAuditLogEntry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +/* compiled from: LottieCompositionMoshiParser */ +public class t { + public static final c.a a = c.a.a("w", "h", "ip", "op", "fr", "v", "layers", "assets", "fonts", "chars", "markers"); + + /* renamed from: b reason: collision with root package name */ + public static c.a f333b = c.a.a(ModelAuditLogEntry.CHANGE_KEY_ID, "layers", "w", "h", "p", "u"); + public static final c.a c = c.a.a("list"); + public static final c.a d = c.a.a("cm", "tm", "dr"); + + public static d a(c cVar) throws IOException { + ArrayList arrayList; + SparseArrayCompat sparseArrayCompat; + ArrayList arrayList2; + float f; + float f2; + float f3; + float c2 = g.c(); + LongSparseArray longSparseArray = new LongSparseArray<>(); + ArrayList arrayList3 = new ArrayList(); + HashMap hashMap = new HashMap(); + HashMap hashMap2 = new HashMap(); + HashMap hashMap3 = new HashMap(); + ArrayList arrayList4 = new ArrayList(); + SparseArrayCompat sparseArrayCompat2 = new SparseArrayCompat<>(); + d dVar = new d(); + cVar.b(); + float f4 = 0.0f; + int i = 0; + int i2 = 0; + float f5 = 0.0f; + float f6 = 0.0f; + while (cVar.e()) { + switch (cVar.y(a)) { + case 0: + i = cVar.q(); + break; + case 1: + i2 = cVar.q(); + break; + case 2: + arrayList = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f5 = (float) cVar.n(); + f4 = f4; + arrayList4 = arrayList; + sparseArrayCompat2 = sparseArrayCompat; + case 3: + arrayList = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f6 = ((float) cVar.n()) - 0.01f; + f4 = f4; + arrayList4 = arrayList; + sparseArrayCompat2 = sparseArrayCompat; + case 4: + arrayList = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f4 = (float) cVar.n(); + arrayList4 = arrayList; + sparseArrayCompat2 = sparseArrayCompat; + case 5: + arrayList2 = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f = f5; + f2 = f6; + String[] split = cVar.t().split("\\."); + int parseInt = Integer.parseInt(split[0]); + boolean z2 = true; + int parseInt2 = Integer.parseInt(split[1]); + int parseInt3 = Integer.parseInt(split[2]); + if (parseInt < 4 || (parseInt <= 4 && (parseInt2 < 4 || (parseInt2 <= 4 && parseInt3 < 0)))) { + z2 = false; + } + if (!z2) { + dVar.a("Lottie only supports bodymovin >= 4.4.0"); + } + f4 = f4; + f5 = f; + arrayList4 = arrayList2; + f6 = f2; + sparseArrayCompat2 = sparseArrayCompat; + case 6: + arrayList2 = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f = f5; + f2 = f6; + cVar.a(); + int i3 = 0; + while (cVar.e()) { + b.c.a.y.m.e a2 = s.a(cVar, dVar); + if (a2.e == e.a.IMAGE) { + i3++; + } + arrayList3.add(a2); + longSparseArray.put(a2.d, a2); + if (i3 > 4) { + b.c.a.b0.c.b("You have " + i3 + " images. Lottie should primarily be used with shapes. If you are using Adobe Illustrator, convert the Illustrator layers to shape layers."); + } + } + cVar.c(); + f4 = f4; + f5 = f; + arrayList4 = arrayList2; + f6 = f2; + sparseArrayCompat2 = sparseArrayCompat; + case 7: + arrayList2 = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f = f5; + f2 = f6; + cVar.a(); + while (cVar.e()) { + ArrayList arrayList5 = new ArrayList(); + LongSparseArray longSparseArray2 = new LongSparseArray(); + cVar.b(); + String str = null; + String str2 = null; + String str3 = null; + int i4 = 0; + int i5 = 0; + while (cVar.e()) { + int y2 = cVar.y(f333b); + if (y2 == 0) { + str = cVar.t(); + } else if (y2 == 1) { + cVar.a(); + while (cVar.e()) { + b.c.a.y.m.e a3 = s.a(cVar, dVar); + longSparseArray2.put(a3.d, a3); + arrayList5.add(a3); + } + cVar.c(); + } else if (y2 == 2) { + i4 = cVar.q(); + } else if (y2 == 3) { + i5 = cVar.q(); + } else if (y2 == 4) { + str2 = cVar.t(); + } else if (y2 != 5) { + cVar.A(); + cVar.C(); + } else { + str3 = cVar.t(); + } + } + cVar.d(); + if (str2 != null) { + hashMap2.put(str, new k(i4, i5, str, str2, str3)); + } else { + hashMap.put(str, arrayList5); + } + } + cVar.c(); + f4 = f4; + f5 = f; + arrayList4 = arrayList2; + f6 = f2; + sparseArrayCompat2 = sparseArrayCompat; + case 8: + f = f5; + f2 = f6; + cVar.b(); + while (cVar.e()) { + if (cVar.y(c) != 0) { + cVar.A(); + cVar.C(); + } else { + cVar.a(); + while (cVar.e()) { + c.a aVar = k.a; + cVar.b(); + String str4 = null; + String str5 = null; + String str6 = null; + float f7 = 0.0f; + while (cVar.e()) { + int y3 = cVar.y(k.a); + if (y3 != 0) { + if (y3 == 1) { + str5 = cVar.t(); + } else if (y3 == 2) { + str6 = cVar.t(); + } else if (y3 != 3) { + cVar.A(); + cVar.C(); + } else { + f7 = (float) cVar.n(); + } + arrayList4 = arrayList4; + sparseArrayCompat2 = sparseArrayCompat2; + } else { + str4 = cVar.t(); + arrayList4 = arrayList4; + } + } + cVar.d(); + hashMap3.put(str5, new b.c.a.y.d(str4, str5, str6, f7)); + arrayList4 = arrayList4; + } + cVar.c(); + } + } + arrayList2 = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + cVar.d(); + f4 = f4; + f5 = f; + arrayList4 = arrayList2; + f6 = f2; + sparseArrayCompat2 = sparseArrayCompat; + case 9: + f = f5; + f2 = f6; + cVar.a(); + while (cVar.e()) { + c.a aVar2 = j.a; + ArrayList arrayList6 = new ArrayList(); + cVar.b(); + double d2 = 0.0d; + double d3 = 0.0d; + String str7 = null; + String str8 = null; + char c3 = 0; + while (cVar.e()) { + int y4 = cVar.y(j.a); + if (y4 == 0) { + c3 = cVar.t().charAt(0); + } else if (y4 == 1) { + d2 = cVar.n(); + } else if (y4 == 2) { + d3 = cVar.n(); + } else if (y4 == 3) { + str7 = cVar.t(); + } else if (y4 == 4) { + str8 = cVar.t(); + } else if (y4 != 5) { + cVar.A(); + cVar.C(); + } else { + cVar.b(); + while (cVar.e()) { + if (cVar.y(j.f328b) != 0) { + cVar.A(); + cVar.C(); + } else { + cVar.a(); + while (cVar.e()) { + arrayList6.add((m) g.a(cVar, dVar)); + } + cVar.c(); + } + } + cVar.d(); + } + } + cVar.d(); + b.c.a.y.e eVar = new b.c.a.y.e(arrayList6, c3, d2, d3, str7, str8); + sparseArrayCompat2.put(eVar.hashCode(), eVar); + } + cVar.c(); + arrayList2 = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f4 = f4; + f5 = f; + arrayList4 = arrayList2; + f6 = f2; + sparseArrayCompat2 = sparseArrayCompat; + case 10: + cVar.a(); + while (cVar.e()) { + cVar.b(); + String str9 = null; + float f8 = 0.0f; + float f9 = 0.0f; + while (cVar.e()) { + int y5 = cVar.y(d); + if (y5 != 0) { + if (y5 == 1) { + f3 = f5; + f8 = (float) cVar.n(); + } else if (y5 != 2) { + cVar.A(); + cVar.C(); + f6 = f6; + } else { + f3 = f5; + f9 = (float) cVar.n(); + } + f6 = f6; + f5 = f3; + } else { + str9 = cVar.t(); + } + } + cVar.d(); + arrayList4.add(new i(str9, f8, f9)); + f5 = f5; + f6 = f6; + } + f = f5; + f2 = f6; + cVar.c(); + arrayList2 = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f4 = f4; + f5 = f; + arrayList4 = arrayList2; + f6 = f2; + sparseArrayCompat2 = sparseArrayCompat; + default: + arrayList2 = arrayList4; + sparseArrayCompat = sparseArrayCompat2; + f = f5; + f2 = f6; + cVar.A(); + cVar.C(); + f4 = f4; + f5 = f; + arrayList4 = arrayList2; + f6 = f2; + sparseArrayCompat2 = sparseArrayCompat; + } + f4 = f4; + } + dVar.j = new Rect(0, 0, (int) (((float) i) * c2), (int) (((float) i2) * c2)); + dVar.k = f5; + dVar.l = f6; + dVar.m = f4; + dVar.i = arrayList3; + dVar.h = longSparseArray; + dVar.c = hashMap; + dVar.d = hashMap2; + dVar.g = sparseArrayCompat2; + dVar.e = hashMap3; + dVar.f = arrayList4; + return dVar; + } +} diff --git a/app/src/main/java/b/c/a/a0/u.java b/app/src/main/java/b/c/a/a0/u.java new file mode 100644 index 0000000000..e090ffa797 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/u.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: MergePathsParser */ +public class u { + public static final c.a a = c.a.a("nm", "mm", "hd"); +} diff --git a/app/src/main/java/b/c/a/a0/v.java b/app/src/main/java/b/c/a/a0/v.java new file mode 100644 index 0000000000..5b15d3954e --- /dev/null +++ b/app/src/main/java/b/c/a/a0/v.java @@ -0,0 +1,15 @@ +package b.c.a.a0; + +import android.graphics.PointF; +import b.c.a.a0.i0.c; +import java.io.IOException; +/* compiled from: PathParser */ +public class v implements h0 { + public static final v a = new v(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public PointF a(c cVar, float f) throws IOException { + return p.b(cVar, f); + } +} diff --git a/app/src/main/java/b/c/a/a0/w.java b/app/src/main/java/b/c/a/a0/w.java new file mode 100644 index 0000000000..3d5d774112 --- /dev/null +++ b/app/src/main/java/b/c/a/a0/w.java @@ -0,0 +1,29 @@ +package b.c.a.a0; + +import android.graphics.PointF; +import b.c.a.a0.i0.c; +import java.io.IOException; +/* compiled from: PointFParser */ +public class w implements h0 { + public static final w a = new w(); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.a0.h0 + public PointF a(c cVar, float f) throws IOException { + c.b u = cVar.u(); + if (u == c.b.BEGIN_ARRAY) { + return p.b(cVar, f); + } + if (u == c.b.BEGIN_OBJECT) { + return p.b(cVar, f); + } + if (u == c.b.NUMBER) { + PointF pointF = new PointF(((float) cVar.n()) * f, ((float) cVar.n()) * f); + while (cVar.e()) { + cVar.C(); + } + return pointF; + } + throw new IllegalArgumentException("Cannot convert json to point. Next token is " + u); + } +} diff --git a/app/src/main/java/b/c/a/a0/x.java b/app/src/main/java/b/c/a/a0/x.java new file mode 100644 index 0000000000..2521daae5b --- /dev/null +++ b/app/src/main/java/b/c/a/a0/x.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: PolystarShapeParser */ +public class x { + public static final c.a a = c.a.a("nm", "sy", "pt", "p", "r", "or", "os", "ir", "is", "hd"); +} diff --git a/app/src/main/java/b/c/a/a0/y.java b/app/src/main/java/b/c/a/a0/y.java new file mode 100644 index 0000000000..187eb8d73c --- /dev/null +++ b/app/src/main/java/b/c/a/a0/y.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: RectangleShapeParser */ +public class y { + public static c.a a = c.a.a("nm", "p", "s", "r", "hd"); +} diff --git a/app/src/main/java/b/c/a/a0/z.java b/app/src/main/java/b/c/a/a0/z.java new file mode 100644 index 0000000000..1fb38a524a --- /dev/null +++ b/app/src/main/java/b/c/a/a0/z.java @@ -0,0 +1,7 @@ +package b.c.a.a0; + +import b.c.a.a0.i0.c; +/* compiled from: RepeaterParser */ +public class z { + public static c.a a = c.a.a("nm", "c", "o", "tr", "hd"); +} diff --git a/app/src/main/java/b/c/a/b.java b/app/src/main/java/b/c/a/b.java new file mode 100644 index 0000000000..8e01cfe2bf --- /dev/null +++ b/app/src/main/java/b/c/a/b.java @@ -0,0 +1,9 @@ +package b.c.a; + +import android.graphics.Bitmap; +import androidx.annotation.Nullable; +/* compiled from: ImageAssetDelegate */ +public interface b { + @Nullable + Bitmap a(k kVar); +} diff --git a/app/src/main/java/b/c/a/b0/a.java b/app/src/main/java/b/c/a/b0/a.java new file mode 100644 index 0000000000..26d4190580 --- /dev/null +++ b/app/src/main/java/b/c/a/b0/a.java @@ -0,0 +1,79 @@ +package b.c.a.b0; + +import android.animation.Animator; +import android.animation.TimeInterpolator; +import android.animation.ValueAnimator; +import android.os.Build; +import java.util.Set; +import java.util.concurrent.CopyOnWriteArraySet; +/* compiled from: BaseLottieAnimator */ +public abstract class a extends ValueAnimator { + public final Set j = new CopyOnWriteArraySet(); + public final Set k = new CopyOnWriteArraySet(); + + @Override // android.animation.Animator + public void addListener(Animator.AnimatorListener animatorListener) { + this.k.add(animatorListener); + } + + @Override // android.animation.ValueAnimator + public void addUpdateListener(ValueAnimator.AnimatorUpdateListener animatorUpdateListener) { + this.j.add(animatorUpdateListener); + } + + public void b(boolean z2) { + for (Animator.AnimatorListener animatorListener : this.k) { + if (Build.VERSION.SDK_INT >= 26) { + animatorListener.onAnimationEnd(this, z2); + } else { + animatorListener.onAnimationEnd(this); + } + } + } + + public void f() { + for (ValueAnimator.AnimatorUpdateListener animatorUpdateListener : this.j) { + animatorUpdateListener.onAnimationUpdate(this); + } + } + + @Override // android.animation.ValueAnimator, android.animation.Animator + public long getStartDelay() { + throw new UnsupportedOperationException("LottieAnimator does not support getStartDelay."); + } + + @Override // android.animation.Animator + public void removeAllListeners() { + this.k.clear(); + } + + @Override // android.animation.ValueAnimator + public void removeAllUpdateListeners() { + this.j.clear(); + } + + @Override // android.animation.Animator + public void removeListener(Animator.AnimatorListener animatorListener) { + this.k.remove(animatorListener); + } + + @Override // android.animation.ValueAnimator + public void removeUpdateListener(ValueAnimator.AnimatorUpdateListener animatorUpdateListener) { + this.j.remove(animatorUpdateListener); + } + + @Override // android.animation.ValueAnimator, android.animation.Animator + public ValueAnimator setDuration(long j) { + throw new UnsupportedOperationException("LottieAnimator does not support setDuration."); + } + + @Override // android.animation.ValueAnimator, android.animation.Animator + public void setInterpolator(TimeInterpolator timeInterpolator) { + throw new UnsupportedOperationException("LottieAnimator does not support setInterpolator."); + } + + @Override // android.animation.ValueAnimator, android.animation.Animator + public void setStartDelay(long j) { + throw new UnsupportedOperationException("LottieAnimator does not support setStartDelay."); + } +} diff --git a/app/src/main/java/b/c/a/b0/b.java b/app/src/main/java/b/c/a/b0/b.java new file mode 100644 index 0000000000..527aeadc6f --- /dev/null +++ b/app/src/main/java/b/c/a/b0/b.java @@ -0,0 +1,9 @@ +package b.c.a.b0; + +import b.c.a.m; +import java.util.HashSet; +import java.util.Set; +/* compiled from: LogcatLogger */ +public class b implements m { + public static final Set a = new HashSet(); +} diff --git a/app/src/main/java/b/c/a/b0/c.java b/app/src/main/java/b/c/a/b0/c.java new file mode 100644 index 0000000000..01423c5919 --- /dev/null +++ b/app/src/main/java/b/c/a/b0/c.java @@ -0,0 +1,32 @@ +package b.c.a.b0; + +import android.util.Log; +import b.c.a.m; +import java.util.Objects; +import java.util.Set; +/* compiled from: Logger */ +public class c { + public static m a = new b(); + + public static void a(String str) { + Objects.requireNonNull((b) a); + } + + public static void b(String str) { + Objects.requireNonNull((b) a); + Set set = b.a; + if (!set.contains(str)) { + Log.w("LOTTIE", str, null); + set.add(str); + } + } + + public static void c(String str, Throwable th) { + Objects.requireNonNull((b) a); + Set set = b.a; + if (!set.contains(str)) { + Log.w("LOTTIE", str, th); + set.add(str); + } + } +} diff --git a/app/src/main/java/b/c/a/b0/d.java b/app/src/main/java/b/c/a/b0/d.java new file mode 100644 index 0000000000..7f73615850 --- /dev/null +++ b/app/src/main/java/b/c/a/b0/d.java @@ -0,0 +1,211 @@ +package b.c.a.b0; + +import android.animation.Animator; +import android.graphics.PointF; +import android.view.Choreographer; +import androidx.annotation.FloatRange; +import androidx.annotation.MainThread; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.c.a.c; +import com.google.android.material.shadow.ShadowDrawableWrapper; +/* compiled from: LottieValueAnimator */ +public class d extends a implements Choreographer.FrameCallback { + public float l = 1.0f; + public boolean m = false; + public long n = 0; + public float o = 0.0f; + public int p = 0; + public float q = -2.14748365E9f; + public float r = 2.14748365E9f; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public b.c.a.d f334s; + @VisibleForTesting + public boolean t = false; + + @Override // android.animation.ValueAnimator, android.animation.Animator + @MainThread + public void cancel() { + for (Animator.AnimatorListener animatorListener : this.k) { + animatorListener.onAnimationCancel(this); + } + m(); + } + + @Override // android.view.Choreographer.FrameCallback + public void doFrame(long j) { + l(); + b.c.a.d dVar = this.f334s; + if (dVar != null && this.t) { + long j2 = this.n; + long j3 = 0; + if (j2 != 0) { + j3 = j - j2; + } + float abs = ((float) j3) / ((1.0E9f / dVar.m) / Math.abs(this.l)); + float f = this.o; + if (k()) { + abs = -abs; + } + float f2 = f + abs; + this.o = f2; + float j4 = j(); + float i = i(); + PointF pointF = f.a; + boolean z2 = !(f2 >= j4 && f2 <= i); + this.o = f.b(this.o, j(), i()); + this.n = j; + f(); + if (z2) { + if (getRepeatCount() == -1 || this.p < getRepeatCount()) { + for (Animator.AnimatorListener animatorListener : this.k) { + animatorListener.onAnimationRepeat(this); + } + this.p++; + if (getRepeatMode() == 2) { + this.m = !this.m; + this.l = -this.l; + } else { + this.o = k() ? i() : j(); + } + this.n = j; + } else { + this.o = this.l < 0.0f ? j() : i(); + m(); + b(k()); + } + } + if (this.f334s != null) { + float f3 = this.o; + if (f3 < this.q || f3 > this.r) { + throw new IllegalStateException(String.format("Frame must be [%f,%f]. It is %f", Float.valueOf(this.q), Float.valueOf(this.r), Float.valueOf(this.o))); + } + } + c.a("LottieValueAnimator#doFrame"); + } + } + + @MainThread + public void g() { + m(); + b(k()); + } + + @Override // android.animation.ValueAnimator + @FloatRange(from = ShadowDrawableWrapper.COS_45, to = 1.0d) + public float getAnimatedFraction() { + float j; + float i; + float j2; + if (this.f334s == null) { + return 0.0f; + } + if (k()) { + j = i() - this.o; + i = i(); + j2 = j(); + } else { + j = this.o - j(); + i = i(); + j2 = j(); + } + return j / (i - j2); + } + + @Override // android.animation.ValueAnimator + public Object getAnimatedValue() { + return Float.valueOf(h()); + } + + @Override // android.animation.ValueAnimator, android.animation.Animator + public long getDuration() { + b.c.a.d dVar = this.f334s; + if (dVar == null) { + return 0; + } + return (long) dVar.b(); + } + + @FloatRange(from = ShadowDrawableWrapper.COS_45, to = 1.0d) + public float h() { + b.c.a.d dVar = this.f334s; + if (dVar == null) { + return 0.0f; + } + float f = this.o; + float f2 = dVar.k; + return (f - f2) / (dVar.l - f2); + } + + public float i() { + b.c.a.d dVar = this.f334s; + if (dVar == null) { + return 0.0f; + } + float f = this.r; + return f == 2.14748365E9f ? dVar.l : f; + } + + @Override // android.animation.ValueAnimator, android.animation.Animator + public boolean isRunning() { + return this.t; + } + + public float j() { + b.c.a.d dVar = this.f334s; + if (dVar == null) { + return 0.0f; + } + float f = this.q; + return f == -2.14748365E9f ? dVar.k : f; + } + + public final boolean k() { + return this.l < 0.0f; + } + + public void l() { + if (this.t) { + Choreographer.getInstance().removeFrameCallback(this); + Choreographer.getInstance().postFrameCallback(this); + } + } + + @MainThread + public void m() { + Choreographer.getInstance().removeFrameCallback(this); + this.t = false; + } + + public void n(float f) { + if (this.o != f) { + this.o = f.b(f, j(), i()); + this.n = 0; + f(); + } + } + + public void o(float f, float f2) { + if (f <= f2) { + b.c.a.d dVar = this.f334s; + float f3 = dVar == null ? -3.4028235E38f : dVar.k; + float f4 = dVar == null ? Float.MAX_VALUE : dVar.l; + this.q = f.b(f, f3, f4); + this.r = f.b(f2, f3, f4); + n((float) ((int) f.b(this.o, f, f2))); + return; + } + throw new IllegalArgumentException(String.format("minFrame (%s) must be <= maxFrame (%s)", Float.valueOf(f), Float.valueOf(f2))); + } + + @Override // android.animation.ValueAnimator + public void setRepeatMode(int i) { + super.setRepeatMode(i); + if (i != 2 && this.m) { + this.m = false; + this.l = -this.l; + } + } +} diff --git a/app/src/main/java/b/c/a/b0/e.java b/app/src/main/java/b/c/a/b0/e.java new file mode 100644 index 0000000000..d4cbf83637 --- /dev/null +++ b/app/src/main/java/b/c/a/b0/e.java @@ -0,0 +1,8 @@ +package b.c.a.b0; +/* compiled from: MeanCalculator */ +public class e { + public float a; + + /* renamed from: b reason: collision with root package name */ + public int f335b; +} diff --git a/app/src/main/java/b/c/a/b0/f.java b/app/src/main/java/b/c/a/b0/f.java new file mode 100644 index 0000000000..a85e8806eb --- /dev/null +++ b/app/src/main/java/b/c/a/b0/f.java @@ -0,0 +1,44 @@ +package b.c.a.b0; + +import android.graphics.PointF; +import androidx.annotation.FloatRange; +import b.c.a.w.b.k; +import b.d.b.a.a; +import java.util.List; +/* compiled from: MiscUtils */ +public class f { + public static PointF a = new PointF(); + + public static PointF a(PointF pointF, PointF pointF2) { + return new PointF(pointF.x + pointF2.x, pointF.y + pointF2.y); + } + + public static float b(float f, float f2, float f3) { + return Math.max(f2, Math.min(f3, f)); + } + + public static int c(int i, int i2, int i3) { + return Math.max(i2, Math.min(i3, i)); + } + + public static int d(float f, float f2) { + int i = (int) f; + int i2 = (int) f2; + int i3 = i / i2; + int i4 = i % i2; + if (!((i ^ i2) >= 0) && i4 != 0) { + i3--; + } + return i - (i2 * i3); + } + + public static float e(float f, float f2, @FloatRange(from = 0.0d, to = 1.0d) float f3) { + return a.a(f2, f, f3, f); + } + + public static void f(b.c.a.y.f fVar, int i, List list, b.c.a.y.f fVar2, k kVar) { + if (fVar.c(kVar.getName(), i)) { + list.add(fVar2.a(kVar.getName()).g(kVar)); + } + } +} diff --git a/app/src/main/java/b/c/a/b0/g.java b/app/src/main/java/b/c/a/b0/g.java new file mode 100644 index 0000000000..8f837d4546 --- /dev/null +++ b/app/src/main/java/b/c/a/b0/g.java @@ -0,0 +1,123 @@ +package b.c.a.b0; + +import android.content.res.Resources; +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.PathMeasure; +import android.graphics.RectF; +import android.os.Build; +import b.c.a.c; +import java.io.Closeable; +/* compiled from: Utils */ +public final class g { + public static final PathMeasure a = new PathMeasure(); + + /* renamed from: b reason: collision with root package name */ + public static final Path f336b = new Path(); + public static final Path c = new Path(); + public static final float[] d = new float[4]; + public static final float e = ((float) (Math.sqrt(2.0d) / 2.0d)); + public static float f = -1.0f; + + public static void a(Path path, float f2, float f3, float f4) { + PathMeasure pathMeasure = a; + pathMeasure.setPath(path, false); + float length = pathMeasure.getLength(); + if (f2 == 1.0f && f3 == 0.0f) { + c.a("applyTrimPathIfNeeded"); + } else if (length < 1.0f || ((double) Math.abs((f3 - f2) - 1.0f)) < 0.01d) { + c.a("applyTrimPathIfNeeded"); + } else { + float f5 = f2 * length; + float f6 = f3 * length; + float f7 = f4 * length; + float min = Math.min(f5, f6) + f7; + float max = Math.max(f5, f6) + f7; + if (min >= length && max >= length) { + min = (float) f.d(min, length); + max = (float) f.d(max, length); + } + if (min < 0.0f) { + min = (float) f.d(min, length); + } + if (max < 0.0f) { + max = (float) f.d(max, length); + } + int i = (min > max ? 1 : (min == max ? 0 : -1)); + if (i == 0) { + path.reset(); + c.a("applyTrimPathIfNeeded"); + return; + } + if (i >= 0) { + min -= length; + } + Path path2 = f336b; + path2.reset(); + pathMeasure.getSegment(min, max, path2, true); + if (max > length) { + Path path3 = c; + path3.reset(); + pathMeasure.getSegment(0.0f, max % length, path3, true); + path2.addPath(path3); + } else if (min < 0.0f) { + Path path4 = c; + path4.reset(); + pathMeasure.getSegment(min + length, length, path4, true); + path2.addPath(path4); + } + path.set(path2); + c.a("applyTrimPathIfNeeded"); + } + } + + public static void b(Closeable closeable) { + if (closeable != null) { + try { + closeable.close(); + } catch (RuntimeException e2) { + throw e2; + } catch (Exception unused) { + } + } + } + + public static float c() { + if (f == -1.0f) { + f = Resources.getSystem().getDisplayMetrics().density; + } + return f; + } + + public static float d(Matrix matrix) { + float[] fArr = d; + fArr[0] = 0.0f; + fArr[1] = 0.0f; + float f2 = e; + fArr[2] = f2; + fArr[3] = f2; + matrix.mapPoints(fArr); + return (float) Math.hypot((double) (fArr[2] - fArr[0]), (double) (fArr[3] - fArr[1])); + } + + public static Bitmap e(Bitmap bitmap, int i, int i2) { + if (bitmap.getWidth() == i && bitmap.getHeight() == i2) { + return bitmap; + } + Bitmap createScaledBitmap = Bitmap.createScaledBitmap(bitmap, i, i2, true); + bitmap.recycle(); + return createScaledBitmap; + } + + public static void f(Canvas canvas, RectF rectF, Paint paint, int i) { + if (Build.VERSION.SDK_INT < 23) { + canvas.saveLayer(rectF, paint, i); + } else { + canvas.saveLayer(rectF, paint); + } + c.a("Utils#saveLayer"); + } +} diff --git a/app/src/main/java/b/c/a/c.java b/app/src/main/java/b/c/a/c.java new file mode 100644 index 0000000000..19c492b715 --- /dev/null +++ b/app/src/main/java/b/c/a/c.java @@ -0,0 +1,16 @@ +package b.c.a; + +import androidx.annotation.RestrictTo; +/* compiled from: L */ +@RestrictTo({RestrictTo.Scope.LIBRARY}) +public class c { + public static int a; + + public static float a(String str) { + int i = a; + if (i > 0) { + a = i - 1; + } + return 0.0f; + } +} diff --git a/app/src/main/java/b/c/a/c0/a.java b/app/src/main/java/b/c/a/c0/a.java new file mode 100644 index 0000000000..37e6e717fa --- /dev/null +++ b/app/src/main/java/b/c/a/c0/a.java @@ -0,0 +1,113 @@ +package b.c.a.c0; + +import android.graphics.PointF; +import android.view.animation.Interpolator; +import androidx.annotation.FloatRange; +import androidx.annotation.Nullable; +import b.c.a.d; +/* compiled from: Keyframe */ +public class a { + @Nullable + public final d a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final T f337b; + @Nullable + public T c; + @Nullable + public final Interpolator d; + public final float e; + @Nullable + public Float f; + public float g; + public float h; + public int i; + public int j; + public float k; + public float l; + public PointF m; + public PointF n; + + public a(d dVar, @Nullable T t, @Nullable T t2, @Nullable Interpolator interpolator, float f, @Nullable Float f2) { + this.g = -3987645.8f; + this.h = -3987645.8f; + this.i = 784923401; + this.j = 784923401; + this.k = Float.MIN_VALUE; + this.l = Float.MIN_VALUE; + this.m = null; + this.n = null; + this.a = dVar; + this.f337b = t; + this.c = t2; + this.d = interpolator; + this.e = f; + this.f = f2; + } + + public a(T t) { + this.g = -3987645.8f; + this.h = -3987645.8f; + this.i = 784923401; + this.j = 784923401; + this.k = Float.MIN_VALUE; + this.l = Float.MIN_VALUE; + this.m = null; + this.n = null; + this.a = null; + this.f337b = t; + this.c = t; + this.d = null; + this.e = Float.MIN_VALUE; + this.f = Float.valueOf(Float.MAX_VALUE); + } + + public boolean a(@FloatRange(from = 0.0d, to = 1.0d) float f) { + return f >= c() && f < b(); + } + + public float b() { + if (this.a == null) { + return 1.0f; + } + if (this.l == Float.MIN_VALUE) { + if (this.f == null) { + this.l = 1.0f; + } else { + this.l = ((this.f.floatValue() - this.e) / this.a.c()) + c(); + } + } + return this.l; + } + + public float c() { + d dVar = this.a; + if (dVar == null) { + return 0.0f; + } + if (this.k == Float.MIN_VALUE) { + this.k = (this.e - dVar.k) / dVar.c(); + } + return this.k; + } + + public boolean d() { + return this.d == null; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Keyframe{startValue="); + R.append((Object) this.f337b); + R.append(", endValue="); + R.append((Object) this.c); + R.append(", startFrame="); + R.append(this.e); + R.append(", endFrame="); + R.append(this.f); + R.append(", interpolator="); + R.append(this.d); + R.append('}'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/c0/b.java b/app/src/main/java/b/c/a/c0/b.java new file mode 100644 index 0000000000..958eb68aae --- /dev/null +++ b/app/src/main/java/b/c/a/c0/b.java @@ -0,0 +1,8 @@ +package b.c.a.c0; +/* compiled from: LottieFrameInfo */ +public class b { + public T a; + + /* renamed from: b reason: collision with root package name */ + public T f338b; +} diff --git a/app/src/main/java/b/c/a/c0/c.java b/app/src/main/java/b/c/a/c0/c.java new file mode 100644 index 0000000000..b997fae7d3 --- /dev/null +++ b/app/src/main/java/b/c/a/c0/c.java @@ -0,0 +1,25 @@ +package b.c.a.c0; + +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +/* compiled from: LottieValueCallback */ +public class c { + public final b a = new b<>(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public T f339b = null; + + public c(@Nullable T t) { + this.f339b = t; + } + + @Nullable + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public final T a(float f, float f2, T t, T t2, float f3, float f4, float f5) { + b bVar = this.a; + bVar.a = t; + bVar.f338b = t2; + return this.f339b; + } +} diff --git a/app/src/main/java/b/c/a/c0/d.java b/app/src/main/java/b/c/a/c0/d.java new file mode 100644 index 0000000000..a5eac3db52 --- /dev/null +++ b/app/src/main/java/b/c/a/c0/d.java @@ -0,0 +1,22 @@ +package b.c.a.c0; +/* compiled from: ScaleXY */ +public class d { + public float a; + + /* renamed from: b reason: collision with root package name */ + public float f340b; + + public d() { + this.a = 1.0f; + this.f340b = 1.0f; + } + + public d(float f, float f2) { + this.a = f; + this.f340b = f2; + } + + public String toString() { + return this.a + "x" + this.f340b; + } +} diff --git a/app/src/main/java/b/c/a/d.java b/app/src/main/java/b/c/a/d.java new file mode 100644 index 0000000000..b215ce2215 --- /dev/null +++ b/app/src/main/java/b/c/a/d.java @@ -0,0 +1,82 @@ +package b.c.a; + +import android.graphics.Rect; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import androidx.collection.LongSparseArray; +import androidx.collection.SparseArrayCompat; +import b.c.a.b0.c; +import b.c.a.y.i; +import b.c.a.y.m.e; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +/* compiled from: LottieComposition */ +public class d { + public final s a = new s(); + + /* renamed from: b reason: collision with root package name */ + public final HashSet f341b = new HashSet<>(); + public Map> c; + public Map d; + public Map e; + public List f; + public SparseArrayCompat g; + public LongSparseArray h; + public List i; + public Rect j; + public float k; + public float l; + public float m; + public boolean n; + public int o = 0; + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public void a(String str) { + c.b(str); + this.f341b.add(str); + } + + public float b() { + return (float) ((long) ((c() / this.m) * 1000.0f)); + } + + public float c() { + return this.l - this.k; + } + + /* JADX WARNING: Code restructure failed: missing block: B:8:0x003a, code lost: + if (r3.substring(0, r3.length() - 1).equalsIgnoreCase(r7) != false) goto L_0x003e; + */ + @Nullable + public i d(String str) { + this.f.size(); + for (int i = 0; i < this.f.size(); i++) { + i iVar = this.f.get(i); + boolean z2 = true; + if (!iVar.a.equalsIgnoreCase(str)) { + if (iVar.a.endsWith("\r")) { + String str2 = iVar.a; + } + z2 = false; + } + if (z2) { + return iVar; + } + } + return null; + } + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public e e(long j) { + return this.h.get(j); + } + + public String toString() { + StringBuilder sb = new StringBuilder("LottieComposition:\n"); + for (e eVar : this.i) { + sb.append(eVar.a("\t")); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/c/a/e.java b/app/src/main/java/b/c/a/e.java new file mode 100644 index 0000000000..7b660f45b6 --- /dev/null +++ b/app/src/main/java/b/c/a/e.java @@ -0,0 +1,226 @@ +package b.c.a; + +import android.content.Context; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import androidx.annotation.Nullable; +import androidx.annotation.RawRes; +import androidx.annotation.WorkerThread; +import b.c.a.a0.i0.d; +import b.c.a.a0.t; +import b.c.a.b0.g; +import b.c.a.y.h; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import d0.z.d.m; +import g0.n; +import g0.r; +import g0.y; +import java.io.IOException; +import java.io.InputStream; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; +/* compiled from: LottieCompositionFactory */ +public class e { + public static final Map> a = new HashMap(); + + /* compiled from: LottieCompositionFactory */ + public class a implements l { + public final /* synthetic */ String a; + + public a(String str) { + this.a = str; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.c.a.l + public void a(d dVar) { + e.a.remove(this.a); + } + } + + /* compiled from: LottieCompositionFactory */ + public class b implements l { + public final /* synthetic */ String a; + + public b(String str) { + this.a = str; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.c.a.l + public void a(Throwable th) { + e.a.remove(this.a); + } + } + + /* compiled from: LottieCompositionFactory */ + public class c implements Callable> { + public final /* synthetic */ d j; + + public c(d dVar) { + this.j = dVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public p call() throws Exception { + return new p<>(this.j); + } + } + + public static r a(@Nullable String str, Callable> callable) { + d dVar; + if (str == null) { + dVar = null; + } else { + h hVar = h.a; + Objects.requireNonNull(hVar); + dVar = hVar.f399b.get(str); + } + if (dVar != null) { + return new r<>(new c(dVar)); + } + if (str != null) { + Map> map = a; + if (map.containsKey(str)) { + return map.get(str); + } + } + r rVar = new r<>(callable); + if (str != null) { + rVar.b(new a(str)); + rVar.a(new b(str)); + a.put(str, rVar); + } + return rVar; + } + + @WorkerThread + public static p b(InputStream inputStream, @Nullable String str) { + try { + m.checkParameterIsNotNull(inputStream, "$this$source"); + n nVar = new n(inputStream, new y()); + m.checkParameterIsNotNull(nVar, "$this$buffer"); + r rVar = new r(nVar); + String[] strArr = b.c.a.a0.i0.c.j; + return c(new d(rVar), str, true); + } finally { + g.b(inputStream); + } + } + + public static p c(b.c.a.a0.i0.c cVar, @Nullable String str, boolean z2) { + try { + d a2 = t.a(cVar); + if (str != null) { + h hVar = h.a; + Objects.requireNonNull(hVar); + hVar.f399b.put(str, a2); + } + p pVar = new p<>(a2); + if (z2) { + g.b(cVar); + } + return pVar; + } catch (Exception e) { + p pVar2 = new p<>(e); + if (z2) { + g.b(cVar); + } + return pVar2; + } catch (Throwable th) { + if (z2) { + g.b(cVar); + } + throw th; + } + } + + @WorkerThread + public static p d(ZipInputStream zipInputStream, @Nullable String str) { + try { + return e(zipInputStream, str); + } finally { + g.b(zipInputStream); + } + } + + @WorkerThread + public static p e(ZipInputStream zipInputStream, @Nullable String str) { + k kVar; + HashMap hashMap = new HashMap(); + try { + ZipEntry nextEntry = zipInputStream.getNextEntry(); + d dVar = null; + while (nextEntry != null) { + String name = nextEntry.getName(); + if (name.contains("__MACOSX")) { + zipInputStream.closeEntry(); + } else if (nextEntry.getName().contains(".json")) { + m.checkParameterIsNotNull(zipInputStream, "$this$source"); + n nVar = new n(zipInputStream, new y()); + m.checkParameterIsNotNull(nVar, "$this$buffer"); + r rVar = new r(nVar); + String[] strArr = b.c.a.a0.i0.c.j; + dVar = c(new d(rVar), null, false).a; + } else { + if (!name.contains(".png")) { + if (!name.contains(".webp")) { + zipInputStream.closeEntry(); + } + } + String[] split = name.split(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN); + hashMap.put(split[split.length - 1], BitmapFactory.decodeStream(zipInputStream)); + } + nextEntry = zipInputStream.getNextEntry(); + } + if (dVar == null) { + return new p<>(new IllegalArgumentException("Unable to parse composition")); + } + for (Map.Entry entry : hashMap.entrySet()) { + String str2 = (String) entry.getKey(); + Iterator it = dVar.d.values().iterator(); + while (true) { + if (!it.hasNext()) { + kVar = null; + break; + } + kVar = it.next(); + if (kVar.d.equals(str2)) { + break; + } + } + if (kVar != null) { + kVar.e = g.e((Bitmap) entry.getValue(), kVar.a, kVar.f357b); + } + } + for (Map.Entry entry2 : dVar.d.entrySet()) { + if (entry2.getValue().e == null) { + StringBuilder R = b.d.b.a.a.R("There is no image for "); + R.append(entry2.getValue().d); + return new p<>(new IllegalStateException(R.toString())); + } + } + if (str != null) { + h hVar = h.a; + Objects.requireNonNull(hVar); + hVar.f399b.put(str, dVar); + } + return new p<>(dVar); + } catch (IOException e) { + return new p<>(e); + } + } + + public static String f(Context context, @RawRes int i) { + StringBuilder R = b.d.b.a.a.R("rawRes"); + R.append((context.getResources().getConfiguration().uiMode & 48) == 32 ? "_night_" : "_day_"); + R.append(i); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/f.java b/app/src/main/java/b/c/a/f.java new file mode 100644 index 0000000000..81da91c50f --- /dev/null +++ b/app/src/main/java/b/c/a/f.java @@ -0,0 +1,86 @@ +package b.c.a; + +import android.content.Context; +import androidx.core.util.Pair; +import b.c.a.z.a; +import b.c.a.z.b; +import b.c.a.z.c; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStream; +import java.util.concurrent.Callable; +import java.util.zip.ZipInputStream; +/* compiled from: LottieCompositionFactory */ +public class f implements Callable> { + public final /* synthetic */ Context j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + + public f(Context context, String str, String str2) { + this.j = context; + this.k = str; + this.l = str2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX WARNING: Removed duplicated region for block: B:21:0x0077 */ + @Override // java.util.concurrent.Callable + public p call() throws Exception { + Pair pair; + c cVar = new c(this.j, this.k, this.l); + a aVar = a.ZIP; + b bVar = cVar.c; + d dVar = null; + if (bVar != null) { + String str = cVar.f437b; + try { + File b2 = bVar.b(); + a aVar2 = a.JSON; + File file = new File(b2, b.a(str, aVar2, false)); + if (!file.exists()) { + file = new File(bVar.b(), b.a(str, aVar, false)); + if (!file.exists()) { + file = null; + } + } + if (file == null) { + pair = null; + if (pair != null) { + a aVar3 = pair.first; + InputStream inputStream = pair.second; + d dVar2 = (aVar3 == aVar ? e.d(new ZipInputStream(inputStream), cVar.f437b) : e.b(inputStream, cVar.f437b)).a; + if (dVar2 != null) { + dVar = dVar2; + } + } + } else { + FileInputStream fileInputStream = new FileInputStream(file); + if (file.getAbsolutePath().endsWith(".zip")) { + aVar2 = aVar; + } + StringBuilder W = b.d.b.a.a.W("Cache hit for ", str, " at "); + W.append(file.getAbsolutePath()); + b.c.a.b0.c.a(W.toString()); + pair = new Pair(aVar2, fileInputStream); + if (pair != null) { + } + } + } catch (FileNotFoundException unused) { + } + } + if (dVar != null) { + return new p<>(dVar); + } + StringBuilder R = b.d.b.a.a.R("Animation for "); + R.append(cVar.f437b); + R.append(" not found in cache. Fetching from network."); + b.c.a.b0.c.a(R.toString()); + try { + return cVar.a(); + } catch (IOException e) { + return new p<>(e); + } + } +} diff --git a/app/src/main/java/b/c/a/g.java b/app/src/main/java/b/c/a/g.java new file mode 100644 index 0000000000..2f2d05898b --- /dev/null +++ b/app/src/main/java/b/c/a/g.java @@ -0,0 +1,31 @@ +package b.c.a; + +import android.content.Context; +import java.io.IOException; +import java.util.concurrent.Callable; +import java.util.zip.ZipInputStream; +/* compiled from: LottieCompositionFactory */ +public class g implements Callable> { + public final /* synthetic */ Context j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + + public g(Context context, String str, String str2) { + this.j = context; + this.k = str; + this.l = str2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public p call() throws Exception { + Context context = this.j; + String str = this.k; + String str2 = this.l; + try { + return str.endsWith(".zip") ? e.d(new ZipInputStream(context.getAssets().open(str)), str2) : e.b(context.getAssets().open(str), str2); + } catch (IOException e) { + return new p<>(e); + } + } +} diff --git a/app/src/main/java/b/c/a/h.java b/app/src/main/java/b/c/a/h.java new file mode 100644 index 0000000000..fafc18aed2 --- /dev/null +++ b/app/src/main/java/b/c/a/h.java @@ -0,0 +1,33 @@ +package b.c.a; + +import android.content.Context; +import android.content.res.Resources; +import java.lang.ref.WeakReference; +import java.util.concurrent.Callable; +/* compiled from: LottieCompositionFactory */ +public class h implements Callable> { + public final /* synthetic */ WeakReference j; + public final /* synthetic */ Context k; + public final /* synthetic */ int l; + + public h(WeakReference weakReference, Context context, int i) { + this.j = weakReference; + this.k = context; + this.l = i; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public p call() throws Exception { + Context context = (Context) this.j.get(); + if (context == null) { + context = this.k; + } + int i = this.l; + try { + return e.b(context.getResources().openRawResource(i), e.f(context, i)); + } catch (Resources.NotFoundException e) { + return new p<>(e); + } + } +} diff --git a/app/src/main/java/b/c/a/i.java b/app/src/main/java/b/c/a/i.java new file mode 100644 index 0000000000..a2a8c6a374 --- /dev/null +++ b/app/src/main/java/b/c/a/i.java @@ -0,0 +1,20 @@ +package b.c.a; + +import java.io.InputStream; +import java.util.concurrent.Callable; +/* compiled from: LottieCompositionFactory */ +public class i implements Callable> { + public final /* synthetic */ InputStream j; + public final /* synthetic */ String k; + + public i(InputStream inputStream, String str) { + this.j = inputStream; + this.k = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public p call() throws Exception { + return e.b(this.j, this.k); + } +} diff --git a/app/src/main/java/b/c/a/j.java b/app/src/main/java/b/c/a/j.java new file mode 100644 index 0000000000..6acba9aabe --- /dev/null +++ b/app/src/main/java/b/c/a/j.java @@ -0,0 +1,706 @@ +package b.c.a; + +import android.animation.Animator; +import android.animation.ValueAnimator; +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Rect; +import android.graphics.drawable.Animatable; +import android.graphics.drawable.Drawable; +import android.os.Build; +import android.widget.ImageView; +import androidx.annotation.FloatRange; +import androidx.annotation.IntRange; +import androidx.annotation.MainThread; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.c.a.a0.i0.c; +import b.c.a.a0.s; +import b.c.a.y.m.e; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Objects; +/* compiled from: LottieDrawable */ +public class j extends Drawable implements Drawable.Callback, Animatable { + public boolean A; + public boolean B; + public boolean C; + public final Matrix j = new Matrix(); + public d k; + public final b.c.a.b0.d l; + public float m; + public boolean n; + public boolean o; + public final ArrayList p; + public final ValueAnimator.AnimatorUpdateListener q; + @Nullable + public ImageView.ScaleType r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public b.c.a.x.b f342s; + @Nullable + public String t; + @Nullable + public b u; + @Nullable + public b.c.a.x.a v; + public boolean w; + @Nullable + + /* renamed from: x reason: collision with root package name */ + public b.c.a.y.m.c f343x; + + /* renamed from: y reason: collision with root package name */ + public int f344y; + + /* renamed from: z reason: collision with root package name */ + public boolean f345z; + + /* compiled from: LottieDrawable */ + public class a implements o { + public final /* synthetic */ String a; + + public a(String str) { + this.a = str; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.q(this.a); + } + } + + /* compiled from: LottieDrawable */ + public class b implements o { + public final /* synthetic */ int a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f347b; + + public b(int i, int i2) { + this.a = i; + this.f347b = i2; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.p(this.a, this.f347b); + } + } + + /* compiled from: LottieDrawable */ + public class c implements o { + public final /* synthetic */ int a; + + public c(int i) { + this.a = i; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.l(this.a); + } + } + + /* compiled from: LottieDrawable */ + public class d implements o { + public final /* synthetic */ float a; + + public d(float f) { + this.a = f; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.u(this.a); + } + } + + /* compiled from: LottieDrawable */ + public class e implements o { + public final /* synthetic */ b.c.a.y.f a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Object f350b; + public final /* synthetic */ b.c.a.c0.c c; + + public e(b.c.a.y.f fVar, Object obj, b.c.a.c0.c cVar) { + this.a = fVar; + this.f350b = obj; + this.c = cVar; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.a(this.a, this.f350b, this.c); + } + } + + /* compiled from: LottieDrawable */ + public class f implements ValueAnimator.AnimatorUpdateListener { + public f() { + } + + @Override // android.animation.ValueAnimator.AnimatorUpdateListener + public void onAnimationUpdate(ValueAnimator valueAnimator) { + j jVar = j.this; + b.c.a.y.m.c cVar = jVar.f343x; + if (cVar != null) { + cVar.o(jVar.l.h()); + } + } + } + + /* compiled from: LottieDrawable */ + public class g implements o { + public g() { + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.j(); + } + } + + /* compiled from: LottieDrawable */ + public class h implements o { + public h() { + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.k(); + } + } + + /* compiled from: LottieDrawable */ + public class i implements o { + public final /* synthetic */ int a; + + public i(int i) { + this.a = i; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.r(this.a); + } + } + + /* compiled from: LottieDrawable */ + /* renamed from: b.c.a.j$j reason: collision with other inner class name */ + public class C0052j implements o { + public final /* synthetic */ float a; + + public C0052j(float f) { + this.a = f; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.t(this.a); + } + } + + /* compiled from: LottieDrawable */ + public class k implements o { + public final /* synthetic */ int a; + + public k(int i) { + this.a = i; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.m(this.a); + } + } + + /* compiled from: LottieDrawable */ + public class l implements o { + public final /* synthetic */ float a; + + public l(float f) { + this.a = f; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.o(this.a); + } + } + + /* compiled from: LottieDrawable */ + public class m implements o { + public final /* synthetic */ String a; + + public m(String str) { + this.a = str; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.s(this.a); + } + } + + /* compiled from: LottieDrawable */ + public class n implements o { + public final /* synthetic */ String a; + + public n(String str) { + this.a = str; + } + + @Override // b.c.a.j.o + public void a(d dVar) { + j.this.n(this.a); + } + } + + /* compiled from: LottieDrawable */ + public interface o { + void a(d dVar); + } + + public j() { + b.c.a.b0.d dVar = new b.c.a.b0.d(); + this.l = dVar; + this.m = 1.0f; + this.n = true; + this.o = false; + new HashSet(); + this.p = new ArrayList<>(); + f fVar = new f(); + this.q = fVar; + this.f344y = 255; + this.B = true; + this.C = false; + dVar.j.add(fVar); + } + + public void a(b.c.a.y.f fVar, T t, b.c.a.c0.c cVar) { + List list; + b.c.a.y.m.c cVar2 = this.f343x; + if (cVar2 == null) { + this.p.add(new e(fVar, t, cVar)); + return; + } + boolean z2 = true; + if (fVar == b.c.a.y.f.a) { + cVar2.g(t, cVar); + } else { + b.c.a.y.g gVar = fVar.c; + if (gVar != null) { + gVar.g(t, cVar); + } else { + if (cVar2 == null) { + b.c.a.b0.c.b("Cannot resolve KeyPath. Composition is not set yet."); + list = Collections.emptyList(); + } else { + ArrayList arrayList = new ArrayList(); + this.f343x.c(fVar, 0, arrayList, new b.c.a.y.f(new String[0])); + list = arrayList; + } + for (int i2 = 0; i2 < list.size(); i2++) { + ((b.c.a.y.f) list.get(i2)).c.g(t, cVar); + } + z2 = true ^ list.isEmpty(); + } + } + if (z2) { + invalidateSelf(); + if (t == o.A) { + u(g()); + } + } + } + + public final void b() { + d dVar = this.k; + c.a aVar = s.a; + Rect rect = dVar.j; + b.c.a.y.m.e eVar = new b.c.a.y.m.e(Collections.emptyList(), dVar, "__container", -1, e.a.PRE_COMP, -1, null, Collections.emptyList(), new b.c.a.y.k.l(null, null, null, null, null, null, null, null, null), 0, 0, 0, 0.0f, 0.0f, rect.width(), rect.height(), null, null, Collections.emptyList(), 1, null, false); + d dVar2 = this.k; + this.f343x = new b.c.a.y.m.c(this, eVar, dVar2.i, dVar2); + } + + public void c() { + b.c.a.b0.d dVar = this.l; + if (dVar.t) { + dVar.cancel(); + } + this.k = null; + this.f343x = null; + this.f342s = null; + b.c.a.b0.d dVar2 = this.l; + dVar2.f334s = null; + dVar2.q = -2.14748365E9f; + dVar2.r = 2.14748365E9f; + invalidateSelf(); + } + + public final void d(@NonNull Canvas canvas) { + float f2; + float f3; + int i2 = -1; + if (ImageView.ScaleType.FIT_XY == this.r) { + if (this.f343x != null) { + Rect bounds = getBounds(); + float width = ((float) bounds.width()) / ((float) this.k.j.width()); + float height = ((float) bounds.height()) / ((float) this.k.j.height()); + if (this.B) { + float min = Math.min(width, height); + if (min < 1.0f) { + f3 = 1.0f / min; + width /= f3; + height /= f3; + } else { + f3 = 1.0f; + } + if (f3 > 1.0f) { + i2 = canvas.save(); + float width2 = ((float) bounds.width()) / 2.0f; + float height2 = ((float) bounds.height()) / 2.0f; + float f4 = width2 * min; + float f5 = min * height2; + canvas.translate(width2 - f4, height2 - f5); + canvas.scale(f3, f3, f4, f5); + } + } + this.j.reset(); + this.j.preScale(width, height); + this.f343x.f(canvas, this.j, this.f344y); + if (i2 > 0) { + canvas.restoreToCount(i2); + } + } + } else if (this.f343x != null) { + float f6 = this.m; + float min2 = Math.min(((float) canvas.getWidth()) / ((float) this.k.j.width()), ((float) canvas.getHeight()) / ((float) this.k.j.height())); + if (f6 > min2) { + f2 = this.m / min2; + } else { + min2 = f6; + f2 = 1.0f; + } + if (f2 > 1.0f) { + i2 = canvas.save(); + float width3 = ((float) this.k.j.width()) / 2.0f; + float height3 = ((float) this.k.j.height()) / 2.0f; + float f7 = width3 * min2; + float f8 = height3 * min2; + float f9 = this.m; + canvas.translate((width3 * f9) - f7, (f9 * height3) - f8); + canvas.scale(f2, f2, f7, f8); + } + this.j.reset(); + this.j.preScale(min2, min2); + this.f343x.f(canvas, this.j, this.f344y); + if (i2 > 0) { + canvas.restoreToCount(i2); + } + } + } + + @Override // android.graphics.drawable.Drawable + public void draw(@NonNull Canvas canvas) { + this.C = false; + if (this.o) { + try { + d(canvas); + } catch (Throwable unused) { + Objects.requireNonNull((b.c.a.b0.b) b.c.a.b0.c.a); + } + } else { + d(canvas); + } + c.a("Drawable#draw"); + } + + public float e() { + return this.l.i(); + } + + public float f() { + return this.l.j(); + } + + @FloatRange(from = ShadowDrawableWrapper.COS_45, to = 1.0d) + public float g() { + return this.l.h(); + } + + @Override // android.graphics.drawable.Drawable + public int getAlpha() { + return this.f344y; + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicHeight() { + d dVar = this.k; + if (dVar == null) { + return -1; + } + return (int) (((float) dVar.j.height()) * this.m); + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicWidth() { + d dVar = this.k; + if (dVar == null) { + return -1; + } + return (int) (((float) dVar.j.width()) * this.m); + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + return -3; + } + + public int h() { + return this.l.getRepeatCount(); + } + + public boolean i() { + b.c.a.b0.d dVar = this.l; + if (dVar == null) { + return false; + } + return dVar.t; + } + + @Override // android.graphics.drawable.Drawable.Callback + public void invalidateDrawable(@NonNull Drawable drawable) { + Drawable.Callback callback = getCallback(); + if (callback != null) { + callback.invalidateDrawable(this); + } + } + + @Override // android.graphics.drawable.Drawable + public void invalidateSelf() { + if (!this.C) { + this.C = true; + Drawable.Callback callback = getCallback(); + if (callback != null) { + callback.invalidateDrawable(this); + } + } + } + + @Override // android.graphics.drawable.Animatable + public boolean isRunning() { + return i(); + } + + @MainThread + public void j() { + if (this.f343x == null) { + this.p.add(new g()); + return; + } + if (this.n || h() == 0) { + b.c.a.b0.d dVar = this.l; + dVar.t = true; + boolean k2 = dVar.k(); + for (Animator.AnimatorListener animatorListener : dVar.k) { + if (Build.VERSION.SDK_INT >= 26) { + animatorListener.onAnimationStart(dVar, k2); + } else { + animatorListener.onAnimationStart(dVar); + } + } + dVar.n((float) ((int) (dVar.k() ? dVar.i() : dVar.j()))); + dVar.n = 0; + dVar.p = 0; + dVar.l(); + } + if (!this.n) { + l((int) (this.l.l < 0.0f ? f() : e())); + this.l.g(); + } + } + + @MainThread + public void k() { + if (this.f343x == null) { + this.p.add(new h()); + return; + } + if (this.n || h() == 0) { + b.c.a.b0.d dVar = this.l; + dVar.t = true; + dVar.l(); + dVar.n = 0; + if (dVar.k() && dVar.o == dVar.j()) { + dVar.o = dVar.i(); + } else if (!dVar.k() && dVar.o == dVar.i()) { + dVar.o = dVar.j(); + } + } + if (!this.n) { + l((int) (this.l.l < 0.0f ? f() : e())); + this.l.g(); + } + } + + public void l(int i2) { + if (this.k == null) { + this.p.add(new c(i2)); + } else { + this.l.n((float) i2); + } + } + + public void m(int i2) { + if (this.k == null) { + this.p.add(new k(i2)); + return; + } + b.c.a.b0.d dVar = this.l; + dVar.o(dVar.q, ((float) i2) + 0.99f); + } + + public void n(String str) { + d dVar = this.k; + if (dVar == null) { + this.p.add(new n(str)); + return; + } + b.c.a.y.i d2 = dVar.d(str); + if (d2 != null) { + m((int) (d2.f400b + d2.c)); + return; + } + throw new IllegalArgumentException(b.d.b.a.a.w("Cannot find marker with name ", str, ".")); + } + + public void o(@FloatRange(from = 0.0d, to = 1.0d) float f2) { + d dVar = this.k; + if (dVar == null) { + this.p.add(new l(f2)); + } else { + m((int) b.c.a.b0.f.e(dVar.k, dVar.l, f2)); + } + } + + public void p(int i2, int i3) { + if (this.k == null) { + this.p.add(new b(i2, i3)); + } else { + this.l.o((float) i2, ((float) i3) + 0.99f); + } + } + + public void q(String str) { + d dVar = this.k; + if (dVar == null) { + this.p.add(new a(str)); + return; + } + b.c.a.y.i d2 = dVar.d(str); + if (d2 != null) { + int i2 = (int) d2.f400b; + p(i2, ((int) d2.c) + i2); + return; + } + throw new IllegalArgumentException(b.d.b.a.a.w("Cannot find marker with name ", str, ".")); + } + + public void r(int i2) { + if (this.k == null) { + this.p.add(new i(i2)); + return; + } + b.c.a.b0.d dVar = this.l; + dVar.o((float) i2, (float) ((int) dVar.r)); + } + + public void s(String str) { + d dVar = this.k; + if (dVar == null) { + this.p.add(new m(str)); + return; + } + b.c.a.y.i d2 = dVar.d(str); + if (d2 != null) { + r((int) d2.f400b); + return; + } + throw new IllegalArgumentException(b.d.b.a.a.w("Cannot find marker with name ", str, ".")); + } + + @Override // android.graphics.drawable.Drawable.Callback + public void scheduleDrawable(@NonNull Drawable drawable, @NonNull Runnable runnable, long j) { + Drawable.Callback callback = getCallback(); + if (callback != null) { + callback.scheduleDrawable(this, runnable, j); + } + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(@IntRange(from = 0, to = 255) int i2) { + this.f344y = i2; + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(@Nullable ColorFilter colorFilter) { + b.c.a.b0.c.b("Use addColorFilter instead."); + } + + @Override // android.graphics.drawable.Animatable + @MainThread + public void start() { + j(); + } + + @Override // android.graphics.drawable.Animatable + @MainThread + public void stop() { + this.p.clear(); + this.l.g(); + } + + public void t(float f2) { + d dVar = this.k; + if (dVar == null) { + this.p.add(new C0052j(f2)); + } else { + r((int) b.c.a.b0.f.e(dVar.k, dVar.l, f2)); + } + } + + public void u(@FloatRange(from = 0.0d, to = 1.0d) float f2) { + d dVar = this.k; + if (dVar == null) { + this.p.add(new d(f2)); + return; + } + this.l.n(b.c.a.b0.f.e(dVar.k, dVar.l, f2)); + c.a("Drawable#setProgress"); + } + + @Override // android.graphics.drawable.Drawable.Callback + public void unscheduleDrawable(@NonNull Drawable drawable, @NonNull Runnable runnable) { + Drawable.Callback callback = getCallback(); + if (callback != null) { + callback.unscheduleDrawable(this, runnable); + } + } + + public final void v() { + d dVar = this.k; + if (dVar != null) { + float f2 = this.m; + setBounds(0, 0, (int) (((float) dVar.j.width()) * f2), (int) (((float) this.k.j.height()) * f2)); + } + } +} diff --git a/app/src/main/java/b/c/a/k.java b/app/src/main/java/b/c/a/k.java new file mode 100644 index 0000000000..eb357e25c6 --- /dev/null +++ b/app/src/main/java/b/c/a/k.java @@ -0,0 +1,24 @@ +package b.c.a; + +import android.graphics.Bitmap; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +/* compiled from: LottieImageAsset */ +public class k { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f357b; + public final String c; + public final String d; + @Nullable + public Bitmap e; + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public k(int i, int i2, String str, String str2, String str3) { + this.a = i; + this.f357b = i2; + this.c = str; + this.d = str2; + } +} diff --git a/app/src/main/java/b/c/a/l.java b/app/src/main/java/b/c/a/l.java new file mode 100644 index 0000000000..23d839163e --- /dev/null +++ b/app/src/main/java/b/c/a/l.java @@ -0,0 +1,5 @@ +package b.c.a; +/* compiled from: LottieListener */ +public interface l { + void a(T t); +} diff --git a/app/src/main/java/b/c/a/m.java b/app/src/main/java/b/c/a/m.java new file mode 100644 index 0000000000..68a3acba48 --- /dev/null +++ b/app/src/main/java/b/c/a/m.java @@ -0,0 +1,4 @@ +package b.c.a; +/* compiled from: LottieLogger */ +public interface m { +} diff --git a/app/src/main/java/b/c/a/n.java b/app/src/main/java/b/c/a/n.java new file mode 100644 index 0000000000..274701ce49 --- /dev/null +++ b/app/src/main/java/b/c/a/n.java @@ -0,0 +1,5 @@ +package b.c.a; +/* compiled from: LottieOnCompositionLoadedListener */ +public interface n { + void a(d dVar); +} diff --git a/app/src/main/java/b/c/a/o.java b/app/src/main/java/b/c/a/o.java new file mode 100644 index 0000000000..4e0b521fc1 --- /dev/null +++ b/app/src/main/java/b/c/a/o.java @@ -0,0 +1,55 @@ +package b.c.a; + +import android.graphics.ColorFilter; +import android.graphics.PointF; +import b.c.a.c0.d; +/* compiled from: LottieProperty */ +public interface o { + public static final Float A = Float.valueOf(13.0f); + public static final Float B = Float.valueOf(14.0f); + public static final ColorFilter C = new ColorFilter(); + public static final Integer[] D = new Integer[0]; + public static final Integer a = 1; + + /* renamed from: b reason: collision with root package name */ + public static final Integer f358b = 2; + public static final Integer c = 3; + public static final Integer d = 4; + public static final PointF e = new PointF(); + public static final PointF f = new PointF(); + public static final PointF g = new PointF(); + public static final PointF h = new PointF(); + public static final Float i; + public static final PointF j = new PointF(); + public static final d k = new d(); + public static final Float l = Float.valueOf(1.0f); + public static final Float m; + public static final Float n; + public static final Float o = Float.valueOf(2.0f); + public static final Float p = Float.valueOf(3.0f); + public static final Float q = Float.valueOf(4.0f); + public static final Float r = Float.valueOf(5.0f); + + /* renamed from: s reason: collision with root package name */ + public static final Float f359s = Float.valueOf(6.0f); + public static final Float t = Float.valueOf(7.0f); + public static final Float u = Float.valueOf(8.0f); + public static final Float v = Float.valueOf(9.0f); + public static final Float w = Float.valueOf(10.0f); + + /* renamed from: x reason: collision with root package name */ + public static final Float f360x = Float.valueOf(11.0f); + + /* renamed from: y reason: collision with root package name */ + public static final Float f361y = Float.valueOf(12.0f); + + /* renamed from: z reason: collision with root package name */ + public static final Float f362z = Float.valueOf(12.1f); + + static { + Float valueOf = Float.valueOf(0.0f); + i = valueOf; + m = valueOf; + n = valueOf; + } +} diff --git a/app/src/main/java/b/c/a/p.java b/app/src/main/java/b/c/a/p.java new file mode 100644 index 0000000000..906f35cff8 --- /dev/null +++ b/app/src/main/java/b/c/a/p.java @@ -0,0 +1,46 @@ +package b.c.a; + +import androidx.annotation.Nullable; +import java.util.Arrays; +/* compiled from: LottieResult */ +public final class p { + @Nullable + public final V a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final Throwable f363b; + + public p(V v) { + this.a = v; + this.f363b = null; + } + + public p(Throwable th) { + this.f363b = th; + this.a = null; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof p)) { + return false; + } + p pVar = (p) obj; + V v = this.a; + if (v != null && v.equals(pVar.a)) { + return true; + } + Throwable th = this.f363b; + if (th == null || pVar.f363b == null) { + return false; + } + return th.toString().equals(this.f363b.toString()); + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{this.a, this.f363b}); + } +} diff --git a/app/src/main/java/b/c/a/q.java b/app/src/main/java/b/c/a/q.java new file mode 100644 index 0000000000..aed390f45a --- /dev/null +++ b/app/src/main/java/b/c/a/q.java @@ -0,0 +1,46 @@ +package b.c.a; + +import b.c.a.b0.c; +import java.util.ArrayList; +import java.util.Iterator; +/* compiled from: LottieTask */ +public class q implements Runnable { + public final /* synthetic */ r j; + + public q(r rVar) { + this.j = rVar; + } + + /* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: V */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // java.lang.Runnable + public void run() { + if (this.j.e != null) { + p pVar = this.j.e; + V v = pVar.a; + if (v != 0) { + r rVar = this.j; + synchronized (rVar) { + Iterator it = new ArrayList(rVar.f364b).iterator(); + while (it.hasNext()) { + ((l) it.next()).a(v); + } + } + return; + } + r rVar2 = this.j; + Throwable th = pVar.f363b; + synchronized (rVar2) { + ArrayList arrayList = new ArrayList(rVar2.c); + if (arrayList.isEmpty()) { + c.c("Lottie encountered an error but no failure listener was added:", th); + return; + } + Iterator it2 = arrayList.iterator(); + while (it2.hasNext()) { + ((l) it2.next()).a(th); + } + } + } + } +} diff --git a/app/src/main/java/b/c/a/r.java b/app/src/main/java/b/c/a/r.java new file mode 100644 index 0000000000..41a74035e3 --- /dev/null +++ b/app/src/main/java/b/c/a/r.java @@ -0,0 +1,72 @@ +package b.c.a; + +import android.os.Handler; +import android.os.Looper; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import java.util.LinkedHashSet; +import java.util.Set; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Executor; +import java.util.concurrent.Executors; +import java.util.concurrent.FutureTask; +/* compiled from: LottieTask */ +public class r { + public static Executor a = Executors.newCachedThreadPool(); + + /* renamed from: b reason: collision with root package name */ + public final Set> f364b = new LinkedHashSet(1); + public final Set> c = new LinkedHashSet(1); + public final Handler d = new Handler(Looper.getMainLooper()); + @Nullable + public volatile p e = null; + + /* compiled from: LottieTask */ + public class a extends FutureTask> { + public a(Callable> callable) { + super(callable); + } + + @Override // java.util.concurrent.FutureTask + public void done() { + if (!isCancelled()) { + try { + r.this.c(get()); + } catch (InterruptedException | ExecutionException e) { + r.this.c(new p<>(e)); + } + } + } + } + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public r(Callable> callable) { + a.execute(new a(callable)); + } + + public synchronized r a(l lVar) { + if (!(this.e == null || this.e.f363b == null)) { + lVar.a(this.e.f363b); + } + this.c.add(lVar); + return this; + } + + public synchronized r b(l lVar) { + if (!(this.e == null || this.e.a == null)) { + lVar.a(this.e.a); + } + this.f364b.add(lVar); + return this; + } + + public final void c(@Nullable p pVar) { + if (this.e == null) { + this.e = pVar; + this.d.post(new q(this)); + return; + } + throw new IllegalStateException("A task may only be set once."); + } +} diff --git a/app/src/main/java/b/c/a/s.java b/app/src/main/java/b/c/a/s.java new file mode 100644 index 0000000000..b14a965ca8 --- /dev/null +++ b/app/src/main/java/b/c/a/s.java @@ -0,0 +1,20 @@ +package b.c.a; + +import androidx.collection.ArraySet; +import b.c.a.b0.e; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; +/* compiled from: PerformanceTracker */ +public class s { + public boolean a = false; + + /* renamed from: b reason: collision with root package name */ + public final Set f365b = new ArraySet(); + public final Map c = new HashMap(); + + /* compiled from: PerformanceTracker */ + public interface a { + void a(float f); + } +} diff --git a/app/src/main/java/b/c/a/t.java b/app/src/main/java/b/c/a/t.java new file mode 100644 index 0000000000..5c2ecf1162 --- /dev/null +++ b/app/src/main/java/b/c/a/t.java @@ -0,0 +1,7 @@ +package b.c.a; +/* compiled from: RenderMode */ +public enum t { + AUTOMATIC, + HARDWARE, + SOFTWARE +} diff --git a/app/src/main/java/b/c/a/u.java b/app/src/main/java/b/c/a/u.java new file mode 100644 index 0000000000..062da1ada8 --- /dev/null +++ b/app/src/main/java/b/c/a/u.java @@ -0,0 +1,11 @@ +package b.c.a; + +import android.graphics.PorterDuff; +import android.graphics.PorterDuffColorFilter; +import androidx.annotation.ColorInt; +/* compiled from: SimpleColorFilter */ +public class u extends PorterDuffColorFilter { + public u(@ColorInt int i) { + super(i, PorterDuff.Mode.SRC_ATOP); + } +} diff --git a/app/src/main/java/b/c/a/v.java b/app/src/main/java/b/c/a/v.java new file mode 100644 index 0000000000..78d1204163 --- /dev/null +++ b/app/src/main/java/b/c/a/v.java @@ -0,0 +1,4 @@ +package b.c.a; +/* compiled from: TextDelegate */ +public class v { +} diff --git a/app/src/main/java/b/c/a/w/a.java b/app/src/main/java/b/c/a/w/a.java new file mode 100644 index 0000000000..7bcd1abe82 --- /dev/null +++ b/app/src/main/java/b/c/a/w/a.java @@ -0,0 +1,29 @@ +package b.c.a.w; + +import android.graphics.Paint; +import android.graphics.PorterDuff; +import android.graphics.PorterDuffXfermode; +import android.os.LocaleList; +import androidx.annotation.NonNull; +/* compiled from: LPaint */ +public class a extends Paint { + public a() { + } + + public a(int i) { + super(i); + } + + public a(int i, PorterDuff.Mode mode) { + super(i); + setXfermode(new PorterDuffXfermode(mode)); + } + + public a(PorterDuff.Mode mode) { + setXfermode(new PorterDuffXfermode(mode)); + } + + @Override // android.graphics.Paint + public void setTextLocales(@NonNull LocaleList localeList) { + } +} diff --git a/app/src/main/java/b/c/a/w/b/a.java b/app/src/main/java/b/c/a/w/b/a.java new file mode 100644 index 0000000000..04e0c57761 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/a.java @@ -0,0 +1,321 @@ +package b.c.a.w.b; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.DashPathEffect; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.PathMeasure; +import android.graphics.RectF; +import androidx.annotation.CallSuper; +import androidx.annotation.Nullable; +import b.c.a.b0.g; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.w.c.c; +import b.c.a.w.c.e; +import b.c.a.w.c.p; +import b.c.a.y.f; +import b.c.a.y.k.d; +import java.util.ArrayList; +import java.util.List; +/* compiled from: BaseStrokeContent */ +public abstract class a implements a.b, k, e { + public final PathMeasure a = new PathMeasure(); + + /* renamed from: b reason: collision with root package name */ + public final Path f366b = new Path(); + public final Path c = new Path(); + public final RectF d = new RectF(); + public final j e; + public final b.c.a.y.m.b f; + public final List g = new ArrayList(); + public final float[] h; + public final Paint i; + public final b.c.a.w.c.a j; + public final b.c.a.w.c.a k; + public final List> l; + @Nullable + public final b.c.a.w.c.a m; + @Nullable + public b.c.a.w.c.a n; + + /* compiled from: BaseStrokeContent */ + public static final class b { + public final List a = new ArrayList(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final s f367b; + + public b(s sVar, C0053a aVar) { + this.f367b = sVar; + } + } + + public a(j jVar, b.c.a.y.m.b bVar, Paint.Cap cap, Paint.Join join, float f, d dVar, b.c.a.y.k.b bVar2, List list, b.c.a.y.k.b bVar3) { + b.c.a.w.a aVar = new b.c.a.w.a(1); + this.i = aVar; + this.e = jVar; + this.f = bVar; + aVar.setStyle(Paint.Style.STROKE); + aVar.setStrokeCap(cap); + aVar.setStrokeJoin(join); + aVar.setStrokeMiter(f); + this.k = dVar.a(); + this.j = bVar2.a(); + if (bVar3 == null) { + this.m = null; + } else { + this.m = bVar3.a(); + } + this.l = new ArrayList(list.size()); + this.h = new float[list.size()]; + for (int i = 0; i < list.size(); i++) { + this.l.add(list.get(i).a()); + } + bVar.e(this.k); + bVar.e(this.j); + for (int i2 = 0; i2 < this.l.size(); i2++) { + bVar.e(this.l.get(i2)); + } + b.c.a.w.c.a aVar2 = this.m; + if (aVar2 != null) { + bVar.e(aVar2); + } + this.k.a.add(this); + this.j.a.add(this); + for (int i3 = 0; i3 < list.size(); i3++) { + this.l.get(i3).a.add(this); + } + b.c.a.w.c.a aVar3 = this.m; + if (aVar3 != null) { + aVar3.a.add(this); + } + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.e.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + s sVar = null; + for (int size = list.size() - 1; size >= 0; size--) { + c cVar = list.get(size); + if (cVar instanceof s) { + s sVar2 = (s) cVar; + if (sVar2.c == 2) { + sVar = sVar2; + } + } + } + if (sVar != null) { + sVar.f381b.add(this); + } + b bVar = null; + for (int size2 = list2.size() - 1; size2 >= 0; size2--) { + c cVar2 = list2.get(size2); + if (cVar2 instanceof s) { + s sVar3 = (s) cVar2; + if (sVar3.c == 2) { + if (bVar != null) { + this.g.add(bVar); + } + bVar = new b(sVar3, null); + sVar3.f381b.add(this); + } + } + if (cVar2 instanceof m) { + if (bVar == null) { + bVar = new b(sVar, null); + } + bVar.a.add((m) cVar2); + } + } + if (bVar != null) { + this.g.add(bVar); + } + } + + @Override // b.c.a.y.g + public void c(f fVar, int i, List list, f fVar2) { + b.c.a.b0.f.f(fVar, i, list, fVar2, this); + } + + @Override // b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + this.f366b.reset(); + for (int i = 0; i < this.g.size(); i++) { + b bVar = this.g.get(i); + for (int i2 = 0; i2 < bVar.a.size(); i2++) { + this.f366b.addPath(bVar.a.get(i2).getPath(), matrix); + } + } + this.f366b.computeBounds(this.d, false); + float j = ((c) this.j).j(); + RectF rectF2 = this.d; + float f = j / 2.0f; + rectF2.set(rectF2.left - f, rectF2.top - f, rectF2.right + f, rectF2.bottom + f); + rectF.set(this.d); + rectF.set(rectF.left - 1.0f, rectF.top - 1.0f, rectF.right + 1.0f, rectF.bottom + 1.0f); + b.c.a.c.a("StrokeContent#getBounds"); + } + + @Override // b.c.a.w.b.e + public void f(Canvas canvas, Matrix matrix, int i) { + float[] fArr = g.d; + boolean z2 = false; + fArr[0] = 0.0f; + fArr[1] = 0.0f; + fArr[2] = 37394.73f; + fArr[3] = 39575.234f; + matrix.mapPoints(fArr); + if (fArr[0] == fArr[2] || fArr[1] == fArr[3]) { + b.c.a.c.a("StrokeContent#draw"); + return; + } + e eVar = (e) this.k; + float j = (((float) i) / 255.0f) * ((float) eVar.j(eVar.a(), eVar.c())); + float f = 100.0f; + this.i.setAlpha(b.c.a.b0.f.c((int) ((j / 100.0f) * 255.0f), 0, 255)); + this.i.setStrokeWidth(g.d(matrix) * ((c) this.j).j()); + if (this.i.getStrokeWidth() <= 0.0f) { + b.c.a.c.a("StrokeContent#draw"); + return; + } + float f2 = 1.0f; + if (this.l.isEmpty()) { + b.c.a.c.a("StrokeContent#applyDashPattern"); + } else { + float d = g.d(matrix); + for (int i2 = 0; i2 < this.l.size(); i2++) { + this.h[i2] = this.l.get(i2).e().floatValue(); + if (i2 % 2 == 0) { + float[] fArr2 = this.h; + if (fArr2[i2] < 1.0f) { + fArr2[i2] = 1.0f; + } + } else { + float[] fArr3 = this.h; + if (fArr3[i2] < 0.1f) { + fArr3[i2] = 0.1f; + } + } + float[] fArr4 = this.h; + fArr4[i2] = fArr4[i2] * d; + } + b.c.a.w.c.a aVar = this.m; + this.i.setPathEffect(new DashPathEffect(this.h, aVar == null ? 0.0f : aVar.e().floatValue() * d)); + b.c.a.c.a("StrokeContent#applyDashPattern"); + } + b.c.a.w.c.a aVar2 = this.n; + if (aVar2 != null) { + this.i.setColorFilter(aVar2.e()); + } + int i3 = 0; + while (i3 < this.g.size()) { + b bVar = this.g.get(i3); + s sVar = bVar.f367b; + if (sVar == null) { + this.f366b.reset(); + for (int size = bVar.a.size() - 1; size >= 0; size--) { + this.f366b.addPath(bVar.a.get(size).getPath(), matrix); + } + b.c.a.c.a("StrokeContent#buildPath"); + canvas.drawPath(this.f366b, this.i); + b.c.a.c.a("StrokeContent#drawPath"); + } else if (sVar == null) { + b.c.a.c.a("StrokeContent#applyTrimPath"); + } else { + this.f366b.reset(); + int size2 = bVar.a.size(); + while (true) { + size2--; + if (size2 < 0) { + break; + } + this.f366b.addPath(bVar.a.get(size2).getPath(), matrix); + } + this.a.setPath(this.f366b, z2); + float length = this.a.getLength(); + while (this.a.nextContour()) { + length += this.a.getLength(); + } + float floatValue = (bVar.f367b.f.e().floatValue() * length) / 360.0f; + float floatValue2 = ((bVar.f367b.d.e().floatValue() * length) / f) + floatValue; + float floatValue3 = ((bVar.f367b.e.e().floatValue() * length) / f) + floatValue; + int size3 = bVar.a.size() - 1; + float f3 = 0.0f; + while (size3 >= 0) { + this.c.set(bVar.a.get(size3).getPath()); + this.c.transform(matrix); + this.a.setPath(this.c, z2); + float length2 = this.a.getLength(); + if (floatValue3 > length) { + float f4 = floatValue3 - length; + if (f4 < f3 + length2 && f3 < f4) { + g.a(this.c, floatValue2 > length ? (floatValue2 - length) / length2 : 0.0f, Math.min(f4 / length2, f2), 0.0f); + canvas.drawPath(this.c, this.i); + f3 += length2; + size3--; + z2 = false; + f2 = 1.0f; + } + } + float f5 = f3 + length2; + if (f5 >= floatValue2 && f3 <= floatValue3) { + if (f5 > floatValue3 || floatValue2 >= f3) { + g.a(this.c, floatValue2 < f3 ? 0.0f : (floatValue2 - f3) / length2, floatValue3 > f5 ? 1.0f : (floatValue3 - f3) / length2, 0.0f); + canvas.drawPath(this.c, this.i); + } else { + canvas.drawPath(this.c, this.i); + } + } + f3 += length2; + size3--; + z2 = false; + f2 = 1.0f; + } + b.c.a.c.a("StrokeContent#applyTrimPath"); + } + i3++; + z2 = false; + f = 100.0f; + f2 = 1.0f; + } + b.c.a.c.a("StrokeContent#draw"); + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: b.c.a.c0.c */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.y.g + @CallSuper + public void g(T t, @Nullable b.c.a.c0.c cVar) { + if (t == o.d) { + b.c.a.w.c.a aVar = this.k; + b.c.a.c0.c cVar2 = aVar.e; + aVar.e = cVar; + } else if (t == o.o) { + b.c.a.w.c.a aVar2 = this.j; + b.c.a.c0.c cVar3 = aVar2.e; + aVar2.e = cVar; + } else if (t == o.C) { + b.c.a.w.c.a aVar3 = this.n; + if (aVar3 != null) { + this.f.u.remove(aVar3); + } + if (cVar == 0) { + this.n = null; + return; + } + p pVar = new p(cVar, null); + this.n = pVar; + pVar.a.add(this); + this.f.e(this.n); + } + } +} diff --git a/app/src/main/java/b/c/a/w/b/b.java b/app/src/main/java/b/c/a/w/b/b.java new file mode 100644 index 0000000000..5ad65bf6f6 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/b.java @@ -0,0 +1,22 @@ +package b.c.a.w.b; + +import android.graphics.Path; +import android.graphics.PathMeasure; +import b.c.a.b0.g; +import b.c.a.w.c.c; +import java.util.ArrayList; +import java.util.List; +/* compiled from: CompoundTrimPathContent */ +public class b { + public List a = new ArrayList(); + + public void a(Path path) { + for (int size = this.a.size() - 1; size >= 0; size--) { + s sVar = this.a.get(size); + PathMeasure pathMeasure = g.a; + if (sVar != null && !sVar.a) { + g.a(path, ((c) sVar.d).j() / 100.0f, ((c) sVar.e).j() / 100.0f, ((c) sVar.f).j() / 360.0f); + } + } + } +} diff --git a/app/src/main/java/b/c/a/w/b/c.java b/app/src/main/java/b/c/a/w/b/c.java new file mode 100644 index 0000000000..c1596c7bec --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/c.java @@ -0,0 +1,9 @@ +package b.c.a.w.b; + +import java.util.List; +/* compiled from: Content */ +public interface c { + void b(List list, List list2); + + String getName(); +} diff --git a/app/src/main/java/b/c/a/w/b/d.java b/app/src/main/java/b/c/a/w/b/d.java new file mode 100644 index 0000000000..fb30ef690b --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/d.java @@ -0,0 +1,257 @@ +package b.c.a.w.b; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.RectF; +import androidx.annotation.Nullable; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.w.c.a; +import b.c.a.w.c.o; +import b.c.a.y.f; +import b.c.a.y.g; +import b.c.a.y.k.l; +import b.c.a.y.l.m; +import b.c.a.y.m.b; +import java.util.ArrayList; +import java.util.List; +/* compiled from: ContentGroup */ +public class d implements e, m, a.b, g { + public Paint a; + + /* renamed from: b reason: collision with root package name */ + public RectF f368b; + public final Matrix c; + public final Path d; + public final RectF e; + public final String f; + public final boolean g; + public final List h; + public final j i; + @Nullable + public List j; + @Nullable + public o k; + + /* JADX WARNING: Illegal instructions before constructor call */ + public d(j jVar, b bVar, m mVar) { + this(jVar, bVar, r3, r4, r5, r6); + l lVar; + String str = mVar.a; + boolean z2 = mVar.c; + List list = mVar.f416b; + ArrayList arrayList = new ArrayList(list.size()); + int i = 0; + for (int i2 = 0; i2 < list.size(); i2++) { + c a = list.get(i2).a(jVar, bVar); + if (a != null) { + arrayList.add(a); + } + } + List list2 = mVar.f416b; + while (true) { + if (i >= list2.size()) { + lVar = null; + break; + } + b.c.a.y.l.b bVar2 = list2.get(i); + if (bVar2 instanceof l) { + lVar = (l) bVar2; + break; + } + i++; + } + } + + public d(j jVar, b bVar, String str, boolean z2, List list, @Nullable l lVar) { + this.a = new b.c.a.w.a(); + this.f368b = new RectF(); + this.c = new Matrix(); + this.d = new Path(); + this.e = new RectF(); + this.f = str; + this.i = jVar; + this.g = z2; + this.h = list; + if (lVar != null) { + o oVar = new o(lVar); + this.k = oVar; + oVar.a(bVar); + this.k.b(this); + } + ArrayList arrayList = new ArrayList(); + int size = list.size(); + while (true) { + size--; + if (size < 0) { + break; + } + c cVar = list.get(size); + if (cVar instanceof j) { + arrayList.add((j) cVar); + } + } + int size2 = arrayList.size(); + while (true) { + size2--; + if (size2 >= 0) { + ((j) arrayList.get(size2)).e(list.listIterator(list.size())); + } else { + return; + } + } + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.i.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + ArrayList arrayList = new ArrayList(this.h.size() + list.size()); + arrayList.addAll(list); + for (int size = this.h.size() - 1; size >= 0; size--) { + c cVar = this.h.get(size); + cVar.b(arrayList, this.h.subList(0, size)); + arrayList.add(cVar); + } + } + + @Override // b.c.a.y.g + public void c(f fVar, int i, List list, f fVar2) { + if (fVar.e(this.f, i)) { + if (!"__container".equals(this.f)) { + fVar2 = fVar2.a(this.f); + if (fVar.c(this.f, i)) { + list.add(fVar2.g(this)); + } + } + if (fVar.f(this.f, i)) { + int d = fVar.d(this.f, i) + i; + for (int i2 = 0; i2 < this.h.size(); i2++) { + c cVar = this.h.get(i2); + if (cVar instanceof g) { + ((g) cVar).c(fVar, d, list, fVar2); + } + } + } + } + } + + @Override // b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + this.c.set(matrix); + o oVar = this.k; + if (oVar != null) { + this.c.preConcat(oVar.e()); + } + this.e.set(0.0f, 0.0f, 0.0f, 0.0f); + for (int size = this.h.size() - 1; size >= 0; size--) { + c cVar = this.h.get(size); + if (cVar instanceof e) { + ((e) cVar).d(this.e, this.c, z2); + rectF.union(this.e); + } + } + } + + public List e() { + if (this.j == null) { + this.j = new ArrayList(); + for (int i = 0; i < this.h.size(); i++) { + c cVar = this.h.get(i); + if (cVar instanceof m) { + this.j.add((m) cVar); + } + } + } + return this.j; + } + + @Override // b.c.a.w.b.e + public void f(Canvas canvas, Matrix matrix, int i) { + boolean z2; + if (!this.g) { + this.c.set(matrix); + o oVar = this.k; + if (oVar != null) { + this.c.preConcat(oVar.e()); + a aVar = this.k.j; + i = (int) ((((((float) (aVar == null ? 100 : aVar.e().intValue())) / 100.0f) * ((float) i)) / 255.0f) * 255.0f); + } + boolean z3 = false; + if (this.i.A) { + int i2 = 0; + int i3 = 0; + while (true) { + if (i2 >= this.h.size()) { + z2 = false; + break; + } + if ((this.h.get(i2) instanceof e) && (i3 = i3 + 1) >= 2) { + z2 = true; + break; + } + i2++; + } + if (z2 && i != 255) { + z3 = true; + } + } + if (z3) { + this.f368b.set(0.0f, 0.0f, 0.0f, 0.0f); + d(this.f368b, this.c, true); + this.a.setAlpha(i); + b.c.a.b0.g.f(canvas, this.f368b, this.a, 31); + } + if (z3) { + i = 255; + } + for (int size = this.h.size() - 1; size >= 0; size--) { + c cVar = this.h.get(size); + if (cVar instanceof e) { + ((e) cVar).f(canvas, this.c, i); + } + } + if (z3) { + canvas.restore(); + } + } + } + + @Override // b.c.a.y.g + public void g(T t, @Nullable c cVar) { + o oVar = this.k; + if (oVar != null) { + oVar.c(t, cVar); + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.f; + } + + @Override // b.c.a.w.b.m + public Path getPath() { + this.c.reset(); + o oVar = this.k; + if (oVar != null) { + this.c.set(oVar.e()); + } + this.d.reset(); + if (this.g) { + return this.d; + } + for (int size = this.h.size() - 1; size >= 0; size--) { + c cVar = this.h.get(size); + if (cVar instanceof m) { + this.d.addPath(((m) cVar).getPath(), this.c); + } + } + return this.d; + } +} diff --git a/app/src/main/java/b/c/a/w/b/e.java b/app/src/main/java/b/c/a/w/b/e.java new file mode 100644 index 0000000000..6082e4cf48 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/e.java @@ -0,0 +1,11 @@ +package b.c.a.w.b; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.RectF; +/* compiled from: DrawingContent */ +public interface e extends c { + void d(RectF rectF, Matrix matrix, boolean z2); + + void f(Canvas canvas, Matrix matrix, int i); +} diff --git a/app/src/main/java/b/c/a/w/b/f.java b/app/src/main/java/b/c/a/w/b/f.java new file mode 100644 index 0000000000..a2f9097996 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/f.java @@ -0,0 +1,132 @@ +package b.c.a.w.b; + +import android.graphics.Path; +import android.graphics.PointF; +import androidx.annotation.Nullable; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.y.m.b; +import java.util.List; +/* compiled from: EllipseContent */ +public class f implements m, a.b, k { + public final Path a = new Path(); + + /* renamed from: b reason: collision with root package name */ + public final String f369b; + public final j c; + public final a d; + public final a e; + public final b.c.a.y.l.a f; + public b g = new b(); + public boolean h; + + public f(j jVar, b bVar, b.c.a.y.l.a aVar) { + this.f369b = aVar.a; + this.c = jVar; + a a = aVar.c.a(); + this.d = a; + a a2 = aVar.f405b.a(); + this.e = a2; + this.f = aVar; + bVar.e(a); + bVar.e(a2); + a.a.add(this); + a2.a.add(this); + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.h = false; + this.c.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + for (int i = 0; i < list.size(); i++) { + c cVar = list.get(i); + if (cVar instanceof s) { + s sVar = (s) cVar; + if (sVar.c == 1) { + this.g.a.add(sVar); + sVar.f381b.add(this); + } + } + } + } + + @Override // b.c.a.y.g + public void c(b.c.a.y.f fVar, int i, List list, b.c.a.y.f fVar2) { + b.c.a.b0.f.f(fVar, i, list, fVar2, this); + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: b.c.a.c0.c */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.y.g + public void g(T t, @Nullable c cVar) { + if (t == o.g) { + a aVar = this.d; + c cVar2 = aVar.e; + aVar.e = cVar; + } else if (t == o.j) { + a aVar2 = this.e; + c cVar3 = aVar2.e; + aVar2.e = cVar; + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.f369b; + } + + @Override // b.c.a.w.b.m + public Path getPath() { + if (this.h) { + return this.a; + } + this.a.reset(); + if (this.f.e) { + this.h = true; + return this.a; + } + PointF e = this.d.e(); + float f = e.x / 2.0f; + float f2 = e.y / 2.0f; + float f3 = f * 0.55228f; + float f4 = 0.55228f * f2; + this.a.reset(); + if (this.f.d) { + float f5 = -f2; + this.a.moveTo(0.0f, f5); + float f6 = 0.0f - f3; + float f7 = -f; + float f8 = 0.0f - f4; + this.a.cubicTo(f6, f5, f7, f8, f7, 0.0f); + float f9 = f4 + 0.0f; + this.a.cubicTo(f7, f9, f6, f2, 0.0f, f2); + float f10 = f3 + 0.0f; + this.a.cubicTo(f10, f2, f, f9, f, 0.0f); + this.a.cubicTo(f, f8, f10, f5, 0.0f, f5); + } else { + float f11 = -f2; + this.a.moveTo(0.0f, f11); + float f12 = f3 + 0.0f; + float f13 = 0.0f - f4; + this.a.cubicTo(f12, f11, f, f13, f, 0.0f); + float f14 = f4 + 0.0f; + this.a.cubicTo(f, f14, f12, f2, 0.0f, f2); + float f15 = 0.0f - f3; + float f16 = -f; + this.a.cubicTo(f15, f2, f16, f14, f16, 0.0f); + this.a.cubicTo(f16, f13, f15, f11, 0.0f, f11); + } + PointF e2 = this.e.e(); + this.a.offset(e2.x, e2.y); + this.a.close(); + this.g.a(this.a); + this.h = true; + return this.a; + } +} diff --git a/app/src/main/java/b/c/a/w/b/g.java b/app/src/main/java/b/c/a/w/b/g.java new file mode 100644 index 0000000000..24da97318d --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/g.java @@ -0,0 +1,141 @@ +package b.c.a.w.b; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.RectF; +import androidx.annotation.Nullable; +import b.c.a.c; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.w.c.p; +import b.c.a.y.f; +import b.c.a.y.l.l; +import b.c.a.y.m.b; +import java.util.ArrayList; +import java.util.List; +/* compiled from: FillContent */ +public class g implements e, a.b, k { + public final Path a; + + /* renamed from: b reason: collision with root package name */ + public final Paint f370b = new b.c.a.w.a(1); + public final b c; + public final String d; + public final boolean e; + public final List f = new ArrayList(); + public final a g; + public final a h; + @Nullable + public a i; + public final j j; + + public g(j jVar, b bVar, l lVar) { + Path path = new Path(); + this.a = path; + this.c = bVar; + this.d = lVar.c; + this.e = lVar.f; + this.j = jVar; + if (lVar.d == null || lVar.e == null) { + this.g = null; + this.h = null; + return; + } + path.setFillType(lVar.f415b); + a a = lVar.d.a(); + this.g = a; + a.a.add(this); + bVar.e(a); + a a2 = lVar.e.a(); + this.h = a2; + a2.a.add(this); + bVar.e(a2); + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.j.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + for (int i = 0; i < list2.size(); i++) { + c cVar = list2.get(i); + if (cVar instanceof m) { + this.f.add((m) cVar); + } + } + } + + @Override // b.c.a.y.g + public void c(f fVar, int i, List list, f fVar2) { + b.c.a.b0.f.f(fVar, i, list, fVar2, this); + } + + @Override // b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + this.a.reset(); + for (int i = 0; i < this.f.size(); i++) { + this.a.addPath(this.f.get(i).getPath(), matrix); + } + this.a.computeBounds(rectF, false); + rectF.set(rectF.left - 1.0f, rectF.top - 1.0f, rectF.right + 1.0f, rectF.bottom + 1.0f); + } + + @Override // b.c.a.w.b.e + public void f(Canvas canvas, Matrix matrix, int i) { + if (!this.e) { + Paint paint = this.f370b; + b.c.a.w.c.b bVar = (b.c.a.w.c.b) this.g; + paint.setColor(bVar.j(bVar.a(), bVar.c())); + this.f370b.setAlpha(b.c.a.b0.f.c((int) ((((((float) i) / 255.0f) * ((float) this.h.e().intValue())) / 100.0f) * 255.0f), 0, 255)); + a aVar = this.i; + if (aVar != null) { + this.f370b.setColorFilter(aVar.e()); + } + this.a.reset(); + for (int i2 = 0; i2 < this.f.size(); i2++) { + this.a.addPath(this.f.get(i2).getPath(), matrix); + } + canvas.drawPath(this.a, this.f370b); + c.a("FillContent#draw"); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: b.c.a.c0.c */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.y.g + public void g(T t, @Nullable b.c.a.c0.c cVar) { + if (t == o.a) { + a aVar = this.g; + b.c.a.c0.c cVar2 = aVar.e; + aVar.e = cVar; + } else if (t == o.d) { + a aVar2 = this.h; + b.c.a.c0.c cVar3 = aVar2.e; + aVar2.e = cVar; + } else if (t == o.C) { + a aVar3 = this.i; + if (aVar3 != null) { + this.c.u.remove(aVar3); + } + if (cVar == 0) { + this.i = null; + return; + } + p pVar = new p(cVar, null); + this.i = pVar; + pVar.a.add(this); + this.c.e(this.i); + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.d; + } +} diff --git a/app/src/main/java/b/c/a/w/b/h.java b/app/src/main/java/b/c/a/w/b/h.java new file mode 100644 index 0000000000..5729489d55 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/h.java @@ -0,0 +1,240 @@ +package b.c.a.w.b; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.LinearGradient; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.PointF; +import android.graphics.RadialGradient; +import android.graphics.RectF; +import android.graphics.Shader; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.collection.LongSparseArray; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.w.c.p; +import b.c.a.y.f; +import b.c.a.y.l.c; +import b.c.a.y.l.d; +import b.c.a.y.m.b; +import java.util.ArrayList; +import java.util.List; +/* compiled from: GradientFillContent */ +public class h implements e, a.b, k { + @NonNull + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f371b; + public final b c; + public final LongSparseArray d = new LongSparseArray<>(); + public final LongSparseArray e = new LongSparseArray<>(); + public final Path f; + public final Paint g; + public final RectF h; + public final List i; + public final int j; + public final a k; + public final a l; + public final a m; + public final a n; + @Nullable + public a o; + @Nullable + public p p; + public final j q; + public final int r; + + public h(j jVar, b bVar, d dVar) { + Path path = new Path(); + this.f = path; + this.g = new b.c.a.w.a(1); + this.h = new RectF(); + this.i = new ArrayList(); + this.c = bVar; + this.a = dVar.g; + this.f371b = dVar.h; + this.q = jVar; + this.j = dVar.a; + path.setFillType(dVar.f407b); + this.r = (int) (jVar.k.b() / 32.0f); + a a = dVar.c.a(); + this.k = a; + a.a.add(this); + bVar.e(a); + a a2 = dVar.d.a(); + this.l = a2; + a2.a.add(this); + bVar.e(a2); + a a3 = dVar.e.a(); + this.m = a3; + a3.a.add(this); + bVar.e(a3); + a a4 = dVar.f.a(); + this.n = a4; + a4.a.add(this); + bVar.e(a4); + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.q.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + for (int i = 0; i < list2.size(); i++) { + c cVar = list2.get(i); + if (cVar instanceof m) { + this.i.add((m) cVar); + } + } + } + + @Override // b.c.a.y.g + public void c(f fVar, int i, List list, f fVar2) { + b.c.a.b0.f.f(fVar, i, list, fVar2, this); + } + + @Override // b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + this.f.reset(); + for (int i = 0; i < this.i.size(); i++) { + this.f.addPath(this.i.get(i).getPath(), matrix); + } + this.f.computeBounds(rectF, false); + rectF.set(rectF.left - 1.0f, rectF.top - 1.0f, rectF.right + 1.0f, rectF.bottom + 1.0f); + } + + public final int[] e(int[] iArr) { + p pVar = this.p; + if (pVar != null) { + Integer[] numArr = (Integer[]) pVar.e(); + int i = 0; + if (iArr.length == numArr.length) { + while (i < iArr.length) { + iArr[i] = numArr[i].intValue(); + i++; + } + } else { + iArr = new int[numArr.length]; + while (i < numArr.length) { + iArr[i] = numArr[i].intValue(); + i++; + } + } + } + return iArr; + } + + /* JADX DEBUG: Multi-variable search result rejected for r4v19, resolved type: androidx.collection.LongSparseArray */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.w.b.e + public void f(Canvas canvas, Matrix matrix, int i) { + RadialGradient radialGradient; + if (!this.f371b) { + this.f.reset(); + for (int i2 = 0; i2 < this.i.size(); i2++) { + this.f.addPath(this.i.get(i2).getPath(), matrix); + } + this.f.computeBounds(this.h, false); + if (this.j == 1) { + long h = (long) h(); + radialGradient = this.d.get(h); + if (radialGradient == null) { + PointF e = this.m.e(); + PointF e2 = this.n.e(); + c e3 = this.k.e(); + LinearGradient linearGradient = new LinearGradient(e.x, e.y, e2.x, e2.y, e(e3.f406b), e3.a, Shader.TileMode.CLAMP); + this.d.put(h, linearGradient); + radialGradient = linearGradient; + } + } else { + long h2 = (long) h(); + radialGradient = this.e.get(h2); + if (radialGradient == null) { + PointF e4 = this.m.e(); + PointF e5 = this.n.e(); + c e6 = this.k.e(); + int[] e7 = e(e6.f406b); + float[] fArr = e6.a; + float f = e4.x; + float f2 = e4.y; + float hypot = (float) Math.hypot((double) (e5.x - f), (double) (e5.y - f2)); + radialGradient = new RadialGradient(f, f2, hypot <= 0.0f ? 0.001f : hypot, e7, fArr, Shader.TileMode.CLAMP); + this.e.put(h2, radialGradient); + } + } + radialGradient.setLocalMatrix(matrix); + this.g.setShader(radialGradient); + a aVar = this.o; + if (aVar != null) { + this.g.setColorFilter(aVar.e()); + } + this.g.setAlpha(b.c.a.b0.f.c((int) ((((((float) i) / 255.0f) * ((float) this.l.e().intValue())) / 100.0f) * 255.0f), 0, 255)); + canvas.drawPath(this.f, this.g); + b.c.a.c.a("GradientFillContent#draw"); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: b.c.a.c0.c */ + /* JADX DEBUG: Multi-variable search result rejected for r0v2, resolved type: java.lang.Integer[] */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.y.g + public void g(T t, @Nullable b.c.a.c0.c cVar) { + if (t == o.d) { + a aVar = this.l; + b.c.a.c0.c cVar2 = aVar.e; + aVar.e = cVar; + } else if (t == o.C) { + a aVar2 = this.o; + if (aVar2 != null) { + this.c.u.remove(aVar2); + } + if (cVar == 0) { + this.o = null; + return; + } + p pVar = new p(cVar, null); + this.o = pVar; + pVar.a.add(this); + this.c.e(this.o); + } else if (t == o.D) { + p pVar2 = this.p; + if (pVar2 != null) { + this.c.u.remove(pVar2); + } + if (cVar == 0) { + this.p = null; + return; + } + p pVar3 = new p(cVar, null); + this.p = pVar3; + pVar3.a.add(this); + this.c.e(this.p); + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.a; + } + + public final int h() { + int round = Math.round(this.m.d * ((float) this.r)); + int round2 = Math.round(this.n.d * ((float) this.r)); + int round3 = Math.round(this.k.d * ((float) this.r)); + int i = 17; + if (round != 0) { + i = 527 * round; + } + if (round2 != 0) { + i = i * 31 * round2; + } + return round3 != 0 ? i * 31 * round3 : i; + } +} diff --git a/app/src/main/java/b/c/a/w/b/i.java b/app/src/main/java/b/c/a/w/b/i.java new file mode 100644 index 0000000000..5979d62728 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/i.java @@ -0,0 +1,159 @@ +package b.c.a.w.b; + +import android.graphics.Canvas; +import android.graphics.LinearGradient; +import android.graphics.Matrix; +import android.graphics.PointF; +import android.graphics.RadialGradient; +import android.graphics.RectF; +import android.graphics.Shader; +import androidx.annotation.Nullable; +import androidx.collection.LongSparseArray; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.w.c.p; +import b.c.a.y.l.c; +import b.c.a.y.l.e; +import b.c.a.y.m.b; +/* compiled from: GradientStrokeContent */ +public class i extends a { + public final String o; + public final boolean p; + public final LongSparseArray q = new LongSparseArray<>(); + public final LongSparseArray r = new LongSparseArray<>(); + + /* renamed from: s reason: collision with root package name */ + public final RectF f372s = new RectF(); + public final int t; + public final int u; + public final a v; + public final a w; + + /* renamed from: x reason: collision with root package name */ + public final a f373x; + @Nullable + + /* renamed from: y reason: collision with root package name */ + public p f374y; + + public i(j jVar, b bVar, e eVar) { + super(jVar, bVar, b.c.a.y.b.k(eVar.h), b.c.a.y.b.l(eVar.i), eVar.j, eVar.d, eVar.g, eVar.k, eVar.l); + this.o = eVar.a; + this.t = eVar.f408b; + this.p = eVar.m; + this.u = (int) (jVar.k.b() / 32.0f); + a a = eVar.c.a(); + this.v = a; + a.a.add(this); + bVar.e(a); + a a2 = eVar.e.a(); + this.w = a2; + a2.a.add(this); + bVar.e(a2); + a a3 = eVar.f.a(); + this.f373x = a3; + a3.a.add(this); + bVar.e(a3); + } + + public final int[] e(int[] iArr) { + p pVar = this.f374y; + if (pVar != null) { + Integer[] numArr = (Integer[]) pVar.e(); + int i = 0; + if (iArr.length == numArr.length) { + while (i < iArr.length) { + iArr[i] = numArr[i].intValue(); + i++; + } + } else { + iArr = new int[numArr.length]; + while (i < numArr.length) { + iArr[i] = numArr[i].intValue(); + i++; + } + } + } + return iArr; + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v9, resolved type: androidx.collection.LongSparseArray */ + /* JADX DEBUG: Multi-variable search result rejected for r3v14, resolved type: androidx.collection.LongSparseArray */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.w.b.a, b.c.a.w.b.e + public void f(Canvas canvas, Matrix matrix, int i) { + RadialGradient radialGradient; + if (!this.p) { + d(this.f372s, matrix, false); + if (this.t == 1) { + long h = (long) h(); + radialGradient = this.q.get(h); + if (radialGradient == null) { + PointF e = this.w.e(); + PointF e2 = this.f373x.e(); + c e3 = this.v.e(); + radialGradient = new LinearGradient(e.x, e.y, e2.x, e2.y, e(e3.f406b), e3.a, Shader.TileMode.CLAMP); + this.q.put(h, radialGradient); + } + } else { + long h2 = (long) h(); + radialGradient = this.r.get(h2); + if (radialGradient == null) { + PointF e4 = this.w.e(); + PointF e5 = this.f373x.e(); + c e6 = this.v.e(); + int[] e7 = e(e6.f406b); + float[] fArr = e6.a; + float f = e4.x; + float f2 = e4.y; + radialGradient = new RadialGradient(f, f2, (float) Math.hypot((double) (e5.x - f), (double) (e5.y - f2)), e7, fArr, Shader.TileMode.CLAMP); + this.r.put(h2, radialGradient); + } + } + radialGradient.setLocalMatrix(matrix); + this.i.setShader(radialGradient); + super.f(canvas, matrix, i); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: java.lang.Integer[] */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.w.b.a, b.c.a.y.g + public void g(T t, @Nullable b.c.a.c0.c cVar) { + super.g(t, cVar); + if (t == o.D) { + p pVar = this.f374y; + if (pVar != null) { + this.f.u.remove(pVar); + } + if (cVar == null) { + this.f374y = null; + return; + } + p pVar2 = new p(cVar, null); + this.f374y = pVar2; + pVar2.a.add(this); + this.f.e(this.f374y); + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.o; + } + + public final int h() { + int round = Math.round(this.w.d * ((float) this.u)); + int round2 = Math.round(this.f373x.d * ((float) this.u)); + int round3 = Math.round(this.v.d * ((float) this.u)); + int i = 17; + if (round != 0) { + i = 527 * round; + } + if (round2 != 0) { + i = i * 31 * round2; + } + return round3 != 0 ? i * 31 * round3 : i; + } +} diff --git a/app/src/main/java/b/c/a/w/b/j.java b/app/src/main/java/b/c/a/w/b/j.java new file mode 100644 index 0000000000..1c6c6abf49 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/j.java @@ -0,0 +1,7 @@ +package b.c.a.w.b; + +import java.util.ListIterator; +/* compiled from: GreedyContent */ +public interface j { + void e(ListIterator listIterator); +} diff --git a/app/src/main/java/b/c/a/w/b/k.java b/app/src/main/java/b/c/a/w/b/k.java new file mode 100644 index 0000000000..3fbc85dace --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/k.java @@ -0,0 +1,6 @@ +package b.c.a.w.b; + +import b.c.a.y.g; +/* compiled from: KeyPathElementContent */ +public interface k extends g, c { +} diff --git a/app/src/main/java/b/c/a/w/b/l.java b/app/src/main/java/b/c/a/w/b/l.java new file mode 100644 index 0000000000..4016ca5eef --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/l.java @@ -0,0 +1,118 @@ +package b.c.a.w.b; + +import android.annotation.TargetApi; +import android.graphics.Matrix; +import android.graphics.Path; +import b.c.a.w.c.o; +import b.c.a.y.l.g; +import java.util.ArrayList; +import java.util.List; +import java.util.ListIterator; +/* compiled from: MergePathsContent */ +@TargetApi(19) +public class l implements m, j { + public final Path a = new Path(); + + /* renamed from: b reason: collision with root package name */ + public final Path f375b = new Path(); + public final Path c = new Path(); + public final List d = new ArrayList(); + public final g e; + + public l(g gVar) { + this.e = gVar; + } + + @TargetApi(19) + public final void a(Path.Op op) { + Matrix matrix; + Matrix matrix2; + this.f375b.reset(); + this.a.reset(); + for (int size = this.d.size() - 1; size >= 1; size--) { + m mVar = this.d.get(size); + if (mVar instanceof d) { + d dVar = (d) mVar; + List e = dVar.e(); + for (int size2 = e.size() - 1; size2 >= 0; size2--) { + Path path = e.get(size2).getPath(); + o oVar = dVar.k; + if (oVar != null) { + matrix2 = oVar.e(); + } else { + dVar.c.reset(); + matrix2 = dVar.c; + } + path.transform(matrix2); + this.f375b.addPath(path); + } + } else { + this.f375b.addPath(mVar.getPath()); + } + } + m mVar2 = this.d.get(0); + if (mVar2 instanceof d) { + d dVar2 = (d) mVar2; + List e2 = dVar2.e(); + for (int i = 0; i < e2.size(); i++) { + Path path2 = e2.get(i).getPath(); + o oVar2 = dVar2.k; + if (oVar2 != null) { + matrix = oVar2.e(); + } else { + dVar2.c.reset(); + matrix = dVar2.c; + } + path2.transform(matrix); + this.a.addPath(path2); + } + } else { + this.a.set(mVar2.getPath()); + } + this.c.op(this.a, this.f375b, op); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + for (int i = 0; i < this.d.size(); i++) { + this.d.get(i).b(list, list2); + } + } + + @Override // b.c.a.w.b.j + public void e(ListIterator listIterator) { + while (listIterator.hasPrevious() && listIterator.previous() != this) { + } + while (listIterator.hasPrevious()) { + c previous = listIterator.previous(); + if (previous instanceof m) { + this.d.add((m) previous); + listIterator.remove(); + } + } + } + + @Override // b.c.a.w.b.m + public Path getPath() { + this.c.reset(); + g gVar = this.e; + if (gVar.c) { + return this.c; + } + int ordinal = gVar.f410b.ordinal(); + if (ordinal == 0) { + for (int i = 0; i < this.d.size(); i++) { + this.c.addPath(this.d.get(i).getPath()); + } + } else if (ordinal == 1) { + a(Path.Op.UNION); + } else if (ordinal == 2) { + a(Path.Op.REVERSE_DIFFERENCE); + } else if (ordinal == 3) { + a(Path.Op.INTERSECT); + } else if (ordinal == 4) { + a(Path.Op.XOR); + } + return this.c; + } +} diff --git a/app/src/main/java/b/c/a/w/b/m.java b/app/src/main/java/b/c/a/w/b/m.java new file mode 100644 index 0000000000..f06f0b1c8a --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/m.java @@ -0,0 +1,7 @@ +package b.c.a.w.b; + +import android.graphics.Path; +/* compiled from: PathContent */ +public interface m extends c { + Path getPath(); +} diff --git a/app/src/main/java/b/c/a/w/b/n.java b/app/src/main/java/b/c/a/w/b/n.java new file mode 100644 index 0000000000..a57e46a990 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/n.java @@ -0,0 +1,341 @@ +package b.c.a.w.b; + +import android.graphics.Path; +import android.graphics.PointF; +import androidx.annotation.Nullable; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.y.f; +import b.c.a.y.l.h; +import b.c.a.y.m.b; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.List; +/* compiled from: PolystarContent */ +public class n implements m, a.b, k { + public final Path a = new Path(); + + /* renamed from: b reason: collision with root package name */ + public final String f376b; + public final j c; + public final h.a d; + public final boolean e; + public final a f; + public final a g; + public final a h; + @Nullable + public final a i; + public final a j; + @Nullable + public final a k; + public final a l; + public b m = new b(); + public boolean n; + + public n(j jVar, b bVar, h hVar) { + this.c = jVar; + this.f376b = hVar.a; + h.a aVar = hVar.f411b; + this.d = aVar; + this.e = hVar.j; + a a = hVar.c.a(); + this.f = a; + a a2 = hVar.d.a(); + this.g = a2; + a a3 = hVar.e.a(); + this.h = a3; + a a4 = hVar.g.a(); + this.j = a4; + a a5 = hVar.i.a(); + this.l = a5; + h.a aVar2 = h.a.STAR; + if (aVar == aVar2) { + this.i = hVar.f.a(); + this.k = hVar.h.a(); + } else { + this.i = null; + this.k = null; + } + bVar.e(a); + bVar.e(a2); + bVar.e(a3); + bVar.e(a4); + bVar.e(a5); + if (aVar == aVar2) { + bVar.e(this.i); + bVar.e(this.k); + } + a.a.add(this); + a2.a.add(this); + a3.a.add(this); + a4.a.add(this); + a5.a.add(this); + if (aVar == aVar2) { + this.i.a.add(this); + this.k.a.add(this); + } + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.n = false; + this.c.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + for (int i = 0; i < list.size(); i++) { + c cVar = list.get(i); + if (cVar instanceof s) { + s sVar = (s) cVar; + if (sVar.c == 1) { + this.m.a.add(sVar); + sVar.f381b.add(this); + } + } + } + } + + @Override // b.c.a.y.g + public void c(f fVar, int i, List list, f fVar2) { + b.c.a.b0.f.f(fVar, i, list, fVar2, this); + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: b.c.a.c0.c */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.y.g + public void g(T t, @Nullable c cVar) { + a aVar; + a aVar2; + if (t == o.f359s) { + a aVar3 = this.f; + c cVar2 = aVar3.e; + aVar3.e = cVar; + } else if (t == o.t) { + a aVar4 = this.h; + c cVar3 = aVar4.e; + aVar4.e = cVar; + } else if (t == o.j) { + a aVar5 = this.g; + c cVar4 = aVar5.e; + aVar5.e = cVar; + } else if (t == o.u && (aVar2 = this.i) != null) { + c cVar5 = aVar2.e; + aVar2.e = cVar; + } else if (t == o.v) { + a aVar6 = this.j; + c cVar6 = aVar6.e; + aVar6.e = cVar; + } else if (t == o.w && (aVar = this.k) != null) { + c cVar7 = aVar.e; + aVar.e = cVar; + } else if (t == o.f360x) { + a aVar7 = this.l; + c cVar8 = aVar7.e; + aVar7.e = cVar; + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.f376b; + } + + @Override // b.c.a.w.b.m + public Path getPath() { + float f; + float f2; + float f3; + float f4; + double d; + float f5; + float f6; + float f7; + float f8; + float f9; + double d2; + float f10; + float f11; + double d3; + double d4; + double d5; + if (this.n) { + return this.a; + } + this.a.reset(); + if (this.e) { + this.n = true; + return this.a; + } + int ordinal = this.d.ordinal(); + double d6 = ShadowDrawableWrapper.COS_45; + if (ordinal == 0) { + float floatValue = this.f.e().floatValue(); + a aVar = this.h; + if (aVar != null) { + d6 = (double) aVar.e().floatValue(); + } + double radians = Math.toRadians(d6 - 90.0d); + double d7 = (double) floatValue; + float f12 = (float) (6.283185307179586d / d7); + float f13 = f12 / 2.0f; + float f14 = floatValue - ((float) ((int) floatValue)); + int i = (f14 > 0.0f ? 1 : (f14 == 0.0f ? 0 : -1)); + if (i != 0) { + radians += (double) ((1.0f - f14) * f13); + } + float floatValue2 = this.j.e().floatValue(); + float floatValue3 = this.i.e().floatValue(); + a aVar2 = this.k; + float floatValue4 = aVar2 != null ? aVar2.e().floatValue() / 100.0f : 0.0f; + a aVar3 = this.l; + float floatValue5 = aVar3 != null ? aVar3.e().floatValue() / 100.0f : 0.0f; + if (i != 0) { + f5 = b.d.b.a.a.a(floatValue2, floatValue3, f14, floatValue3); + double d8 = (double) f5; + f2 = floatValue3; + f = floatValue4; + f4 = (float) (Math.cos(radians) * d8); + f3 = (float) (d8 * Math.sin(radians)); + this.a.moveTo(f4, f3); + d = radians + ((double) ((f12 * f14) / 2.0f)); + } else { + f2 = floatValue3; + f = floatValue4; + double d9 = (double) floatValue2; + float cos = (float) (Math.cos(radians) * d9); + f3 = (float) (Math.sin(radians) * d9); + this.a.moveTo(cos, f3); + d = radians + ((double) f13); + f4 = cos; + f5 = 0.0f; + } + double ceil = Math.ceil(d7) * 2.0d; + int i2 = 0; + boolean z2 = false; + while (true) { + double d10 = (double) i2; + if (d10 >= ceil) { + break; + } + float f15 = z2 ? floatValue2 : f2; + int i3 = (f5 > 0.0f ? 1 : (f5 == 0.0f ? 0 : -1)); + if (i3 == 0 || d10 != ceil - 2.0d) { + f6 = f12; + f7 = f13; + } else { + f6 = f12; + f7 = (f12 * f14) / 2.0f; + } + if (i3 == 0 || d10 != ceil - 1.0d) { + f8 = f5; + f5 = f15; + f9 = f7; + } else { + f9 = f7; + f8 = f5; + } + double d11 = (double) f5; + float cos2 = (float) (Math.cos(d) * d11); + float sin = (float) (d11 * Math.sin(d)); + if (f == 0.0f && floatValue5 == 0.0f) { + this.a.lineTo(cos2, sin); + f10 = sin; + d2 = d; + f11 = floatValue5; + } else { + d2 = d; + double atan2 = (double) ((float) (Math.atan2((double) f3, (double) f4) - 1.5707963267948966d)); + float cos3 = (float) Math.cos(atan2); + float sin2 = (float) Math.sin(atan2); + f10 = sin; + f11 = floatValue5; + double atan22 = (double) ((float) (Math.atan2((double) sin, (double) cos2) - 1.5707963267948966d)); + float cos4 = (float) Math.cos(atan22); + float sin3 = (float) Math.sin(atan22); + float f16 = z2 ? f : f11; + float f17 = z2 ? f11 : f; + float f18 = (z2 ? f2 : floatValue2) * f16 * 0.47829f; + float f19 = cos3 * f18; + float f20 = f18 * sin2; + float f21 = (z2 ? floatValue2 : f2) * f17 * 0.47829f; + float f22 = cos4 * f21; + float f23 = f21 * sin3; + if (i != 0) { + if (i2 == 0) { + f19 *= f14; + f20 *= f14; + } else if (d10 == ceil - 1.0d) { + f22 *= f14; + f23 *= f14; + } + } + this.a.cubicTo(f4 - f19, f3 - f20, cos2 + f22, f10 + f23, cos2, f10); + } + d = d2 + ((double) f9); + z2 = !z2; + i2++; + f4 = cos2; + f5 = f8; + f12 = f6; + f3 = f10; + floatValue5 = f11; + } + PointF e = this.g.e(); + this.a.offset(e.x, e.y); + this.a.close(); + } else if (ordinal == 1) { + int floor = (int) Math.floor((double) this.f.e().floatValue()); + a aVar4 = this.h; + if (aVar4 != null) { + d6 = (double) aVar4.e().floatValue(); + } + double radians2 = Math.toRadians(d6 - 90.0d); + double d12 = (double) floor; + float floatValue6 = this.l.e().floatValue() / 100.0f; + float floatValue7 = this.j.e().floatValue(); + double d13 = (double) floatValue7; + float cos5 = (float) (Math.cos(radians2) * d13); + float sin4 = (float) (Math.sin(radians2) * d13); + this.a.moveTo(cos5, sin4); + double d14 = (double) ((float) (6.283185307179586d / d12)); + double d15 = radians2 + d14; + double ceil2 = Math.ceil(d12); + int i4 = 0; + while (((double) i4) < ceil2) { + float cos6 = (float) (Math.cos(d15) * d13); + float sin5 = (float) (Math.sin(d15) * d13); + if (floatValue6 != 0.0f) { + d5 = d13; + d4 = d15; + double atan23 = (double) ((float) (Math.atan2((double) sin4, (double) cos5) - 1.5707963267948966d)); + float cos7 = (float) Math.cos(atan23); + d3 = d14; + double atan24 = (double) ((float) (Math.atan2((double) sin5, (double) cos6) - 1.5707963267948966d)); + float f24 = floatValue7 * floatValue6 * 0.25f; + this.a.cubicTo(cos5 - (cos7 * f24), sin4 - (((float) Math.sin(atan23)) * f24), cos6 + (((float) Math.cos(atan24)) * f24), sin5 + (f24 * ((float) Math.sin(atan24))), cos6, sin5); + } else { + d4 = d15; + d5 = d13; + d3 = d14; + this.a.lineTo(cos6, sin5); + } + d15 = d4 + d3; + i4++; + sin4 = sin5; + cos5 = cos6; + ceil2 = ceil2; + d13 = d5; + d14 = d3; + } + PointF e2 = this.g.e(); + this.a.offset(e2.x, e2.y); + this.a.close(); + } + this.a.close(); + this.m.a(this.a); + this.n = true; + return this.a; + } +} diff --git a/app/src/main/java/b/c/a/w/b/o.java b/app/src/main/java/b/c/a/w/b/o.java new file mode 100644 index 0000000000..bc6d721cdc --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/o.java @@ -0,0 +1,159 @@ +package b.c.a.w.b; + +import android.graphics.Path; +import android.graphics.PointF; +import android.graphics.RectF; +import androidx.annotation.Nullable; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.w.c.a; +import b.c.a.y.f; +import b.c.a.y.l.i; +import b.c.a.y.m.b; +import java.util.List; +/* compiled from: RectangleContent */ +public class o implements a.b, k, m { + public final Path a = new Path(); + + /* renamed from: b reason: collision with root package name */ + public final RectF f377b = new RectF(); + public final String c; + public final boolean d; + public final j e; + public final a f; + public final a g; + public final a h; + public b i = new b(); + public boolean j; + + public o(j jVar, b bVar, i iVar) { + this.c = iVar.a; + this.d = iVar.e; + this.e = jVar; + a a = iVar.f412b.a(); + this.f = a; + a a2 = iVar.c.a(); + this.g = a2; + a a3 = iVar.d.a(); + this.h = a3; + bVar.e(a); + bVar.e(a2); + bVar.e(a3); + a.a.add(this); + a2.a.add(this); + a3.a.add(this); + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.j = false; + this.e.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + for (int i = 0; i < list.size(); i++) { + c cVar = list.get(i); + if (cVar instanceof s) { + s sVar = (s) cVar; + if (sVar.c == 1) { + this.i.a.add(sVar); + sVar.f381b.add(this); + } + } + } + } + + @Override // b.c.a.y.g + public void c(f fVar, int i, List list, f fVar2) { + b.c.a.b0.f.f(fVar, i, list, fVar2, this); + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: b.c.a.c0.c */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.y.g + public void g(T t, @Nullable c cVar) { + if (t == b.c.a.o.h) { + a aVar = this.g; + c cVar2 = aVar.e; + aVar.e = cVar; + } else if (t == b.c.a.o.j) { + a aVar2 = this.f; + c cVar3 = aVar2.e; + aVar2.e = cVar; + } else if (t == b.c.a.o.i) { + a aVar3 = this.h; + c cVar4 = aVar3.e; + aVar3.e = cVar; + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.c; + } + + @Override // b.c.a.w.b.m + public Path getPath() { + if (this.j) { + return this.a; + } + this.a.reset(); + if (this.d) { + this.j = true; + return this.a; + } + PointF e = this.g.e(); + float f = e.x / 2.0f; + float f2 = e.y / 2.0f; + a aVar = this.h; + float j = aVar == null ? 0.0f : ((b.c.a.w.c.c) aVar).j(); + float min = Math.min(f, f2); + if (j > min) { + j = min; + } + PointF e2 = this.f.e(); + this.a.moveTo(e2.x + f, (e2.y - f2) + j); + this.a.lineTo(e2.x + f, (e2.y + f2) - j); + int i = (j > 0.0f ? 1 : (j == 0.0f ? 0 : -1)); + if (i > 0) { + RectF rectF = this.f377b; + float f3 = e2.x; + float f4 = j * 2.0f; + float f5 = e2.y; + rectF.set((f3 + f) - f4, (f5 + f2) - f4, f3 + f, f5 + f2); + this.a.arcTo(this.f377b, 0.0f, 90.0f, false); + } + this.a.lineTo((e2.x - f) + j, e2.y + f2); + if (i > 0) { + RectF rectF2 = this.f377b; + float f6 = e2.x; + float f7 = e2.y; + float f8 = j * 2.0f; + rectF2.set(f6 - f, (f7 + f2) - f8, (f6 - f) + f8, f7 + f2); + this.a.arcTo(this.f377b, 90.0f, 90.0f, false); + } + this.a.lineTo(e2.x - f, (e2.y - f2) + j); + if (i > 0) { + RectF rectF3 = this.f377b; + float f9 = e2.x; + float f10 = e2.y; + float f11 = j * 2.0f; + rectF3.set(f9 - f, f10 - f2, (f9 - f) + f11, (f10 - f2) + f11); + this.a.arcTo(this.f377b, 180.0f, 90.0f, false); + } + this.a.lineTo((e2.x + f) - j, e2.y - f2); + if (i > 0) { + RectF rectF4 = this.f377b; + float f12 = e2.x; + float f13 = j * 2.0f; + float f14 = e2.y; + rectF4.set((f12 + f) - f13, f14 - f2, f12 + f, (f14 - f2) + f13); + this.a.arcTo(this.f377b, 270.0f, 90.0f, false); + } + this.a.close(); + this.i.a(this.a); + this.j = true; + return this.a; + } +} diff --git a/app/src/main/java/b/c/a/w/b/p.java b/app/src/main/java/b/c/a/w/b/p.java new file mode 100644 index 0000000000..b45b0cf536 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/p.java @@ -0,0 +1,139 @@ +package b.c.a.w.b; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Path; +import android.graphics.RectF; +import androidx.annotation.Nullable; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.w.c.a; +import b.c.a.w.c.o; +import b.c.a.y.f; +import b.c.a.y.k.l; +import b.c.a.y.m.b; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.ListIterator; +import java.util.Objects; +/* compiled from: RepeaterContent */ +public class p implements e, m, j, a.b, k { + public final Matrix a = new Matrix(); + + /* renamed from: b reason: collision with root package name */ + public final Path f378b = new Path(); + public final j c; + public final b d; + public final String e; + public final boolean f; + public final a g; + public final a h; + public final o i; + public d j; + + public p(j jVar, b bVar, b.c.a.y.l.j jVar2) { + this.c = jVar; + this.d = bVar; + this.e = jVar2.a; + this.f = jVar2.e; + a a = jVar2.f413b.a(); + this.g = a; + bVar.e(a); + a.a.add(this); + a a2 = jVar2.c.a(); + this.h = a2; + bVar.e(a2); + a2.a.add(this); + l lVar = jVar2.d; + Objects.requireNonNull(lVar); + o oVar = new o(lVar); + this.i = oVar; + oVar.a(bVar); + oVar.b(this); + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.c.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + this.j.b(list, list2); + } + + @Override // b.c.a.y.g + public void c(f fVar, int i, List list, f fVar2) { + b.c.a.b0.f.f(fVar, i, list, fVar2, this); + } + + @Override // b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + this.j.d(rectF, matrix, z2); + } + + @Override // b.c.a.w.b.j + public void e(ListIterator listIterator) { + if (this.j == null) { + while (listIterator.hasPrevious() && listIterator.previous() != this) { + } + ArrayList arrayList = new ArrayList(); + while (listIterator.hasPrevious()) { + arrayList.add(listIterator.previous()); + listIterator.remove(); + } + Collections.reverse(arrayList); + this.j = new d(this.c, this.d, "Repeater", this.f, arrayList, null); + } + } + + @Override // b.c.a.w.b.e + public void f(Canvas canvas, Matrix matrix, int i) { + float floatValue = this.g.e().floatValue(); + float floatValue2 = this.h.e().floatValue(); + float floatValue3 = this.i.m.e().floatValue() / 100.0f; + float floatValue4 = this.i.n.e().floatValue() / 100.0f; + for (int i2 = ((int) floatValue) - 1; i2 >= 0; i2--) { + this.a.set(matrix); + float f = (float) i2; + this.a.preConcat(this.i.f(f + floatValue2)); + this.j.f(canvas, this.a, (int) (b.c.a.b0.f.e(floatValue3, floatValue4, f / floatValue) * ((float) i))); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: b.c.a.c0.c */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.y.g + public void g(T t, @Nullable c cVar) { + if (!this.i.c(t, cVar)) { + if (t == b.c.a.o.q) { + a aVar = this.g; + c cVar2 = aVar.e; + aVar.e = cVar; + } else if (t == b.c.a.o.r) { + a aVar2 = this.h; + c cVar3 = aVar2.e; + aVar2.e = cVar; + } + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.e; + } + + @Override // b.c.a.w.b.m + public Path getPath() { + Path path = this.j.getPath(); + this.f378b.reset(); + float floatValue = this.g.e().floatValue(); + float floatValue2 = this.h.e().floatValue(); + for (int i = ((int) floatValue) - 1; i >= 0; i--) { + this.a.set(this.i.f(((float) i) + floatValue2)); + this.f378b.addPath(path, this.a); + } + return this.f378b; + } +} diff --git a/app/src/main/java/b/c/a/w/b/q.java b/app/src/main/java/b/c/a/w/b/q.java new file mode 100644 index 0000000000..4bc8d28b47 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/q.java @@ -0,0 +1,66 @@ +package b.c.a.w.b; + +import android.graphics.Path; +import b.c.a.j; +import b.c.a.w.c.a; +import b.c.a.y.l.k; +import b.c.a.y.l.n; +import b.c.a.y.m.b; +import java.util.List; +/* compiled from: ShapeContent */ +public class q implements m, a.b { + public final Path a = new Path(); + + /* renamed from: b reason: collision with root package name */ + public final boolean f379b; + public final j c; + public final a d; + public boolean e; + public b f = new b(); + + public q(j jVar, b bVar, n nVar) { + this.f379b = nVar.d; + this.c = jVar; + a a = nVar.c.a(); + this.d = a; + bVar.e(a); + a.a.add(this); + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.e = false; + this.c.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + for (int i = 0; i < list.size(); i++) { + c cVar = list.get(i); + if (cVar instanceof s) { + s sVar = (s) cVar; + if (sVar.c == 1) { + this.f.a.add(sVar); + sVar.f381b.add(this); + } + } + } + } + + @Override // b.c.a.w.b.m + public Path getPath() { + if (this.e) { + return this.a; + } + this.a.reset(); + if (this.f379b) { + this.e = true; + return this.a; + } + this.a.set(this.d.e()); + this.a.setFillType(Path.FillType.EVEN_ODD); + this.f.a(this.a); + this.e = true; + return this.a; + } +} diff --git a/app/src/main/java/b/c/a/w/b/r.java b/app/src/main/java/b/c/a/w/b/r.java new file mode 100644 index 0000000000..1889086dd8 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/r.java @@ -0,0 +1,79 @@ +package b.c.a.w.b; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Paint; +import androidx.annotation.Nullable; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.w.c.a; +import b.c.a.w.c.p; +import b.c.a.y.l.o; +import b.c.a.y.m.b; +/* compiled from: StrokeContent */ +public class r extends a { + public final b o; + public final String p; + public final boolean q; + public final a r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public a f380s; + + public r(j jVar, b bVar, o oVar) { + super(jVar, bVar, b.c.a.y.b.k(oVar.g), b.c.a.y.b.l(oVar.h), oVar.i, oVar.e, oVar.f, oVar.c, oVar.f418b); + this.o = bVar; + this.p = oVar.a; + this.q = oVar.j; + a a = oVar.d.a(); + this.r = a; + a.a.add(this); + bVar.e(a); + } + + @Override // b.c.a.w.b.a, b.c.a.w.b.e + public void f(Canvas canvas, Matrix matrix, int i) { + if (!this.q) { + Paint paint = this.i; + b.c.a.w.c.b bVar = (b.c.a.w.c.b) this.r; + paint.setColor(bVar.j(bVar.a(), bVar.c())); + a aVar = this.f380s; + if (aVar != null) { + this.i.setColorFilter(aVar.e()); + } + super.f(canvas, matrix, i); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: b.c.a.c0.c */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.w.b.a, b.c.a.y.g + public void g(T t, @Nullable c cVar) { + super.g(t, cVar); + if (t == b.c.a.o.f358b) { + a aVar = this.r; + c cVar2 = aVar.e; + aVar.e = cVar; + } else if (t == b.c.a.o.C) { + a aVar2 = this.f380s; + if (aVar2 != null) { + this.o.u.remove(aVar2); + } + if (cVar == 0) { + this.f380s = null; + return; + } + p pVar = new p(cVar, null); + this.f380s = pVar; + pVar.a.add(this); + this.o.e(this.r); + } + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.p; + } +} diff --git a/app/src/main/java/b/c/a/w/b/s.java b/app/src/main/java/b/c/a/w/b/s.java new file mode 100644 index 0000000000..92a6e2a8d0 --- /dev/null +++ b/app/src/main/java/b/c/a/w/b/s.java @@ -0,0 +1,46 @@ +package b.c.a.w.b; + +import b.c.a.w.c.a; +import b.c.a.y.l.p; +import b.c.a.y.m.b; +import java.util.ArrayList; +import java.util.List; +/* compiled from: TrimPathContent */ +public class s implements c, a.b { + public final boolean a; + + /* renamed from: b reason: collision with root package name */ + public final List f381b = new ArrayList(); + public final int c; + public final a d; + public final a e; + public final a f; + + public s(b bVar, p pVar) { + this.a = pVar.f; + this.c = pVar.f419b; + a a = pVar.c.a(); + this.d = a; + a a2 = pVar.d.a(); + this.e = a2; + a a3 = pVar.e.a(); + this.f = a3; + bVar.e(a); + bVar.e(a2); + bVar.e(a3); + a.a.add(this); + a2.a.add(this); + a3.a.add(this); + } + + @Override // b.c.a.w.c.a.b + public void a() { + for (int i = 0; i < this.f381b.size(); i++) { + this.f381b.get(i).a(); + } + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + } +} diff --git a/app/src/main/java/b/c/a/w/c/a.java b/app/src/main/java/b/c/a/w/c/a.java new file mode 100644 index 0000000000..c0c2c32ec6 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/a.java @@ -0,0 +1,291 @@ +package b.c.a.w.c; + +import androidx.annotation.FloatRange; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.ArrayList; +import java.util.List; +/* compiled from: BaseKeyframeAnimation */ +public abstract class a { + public final List a = new ArrayList(1); + + /* renamed from: b reason: collision with root package name */ + public boolean f382b = false; + public final d c; + public float d = 0.0f; + @Nullable + public b.c.a.c0.c e; + @Nullable + public A f = null; + public float g = -1.0f; + public float h = -1.0f; + + /* compiled from: BaseKeyframeAnimation */ + public interface b { + void a(); + } + + /* compiled from: BaseKeyframeAnimation */ + public static final class c implements d { + public c(C0054a aVar) { + } + + @Override // b.c.a.w.c.a.d + public boolean a(float f) { + throw new IllegalStateException("not implemented"); + } + + @Override // b.c.a.w.c.a.d + public b.c.a.c0.a b() { + throw new IllegalStateException("not implemented"); + } + + @Override // b.c.a.w.c.a.d + public boolean c(float f) { + return false; + } + + @Override // b.c.a.w.c.a.d + public float d() { + return 1.0f; + } + + @Override // b.c.a.w.c.a.d + public float e() { + return 0.0f; + } + + @Override // b.c.a.w.c.a.d + public boolean isEmpty() { + return true; + } + } + + /* compiled from: BaseKeyframeAnimation */ + public interface d { + boolean a(float f); + + b.c.a.c0.a b(); + + boolean c(float f); + + @FloatRange(from = ShadowDrawableWrapper.COS_45, to = 1.0d) + float d(); + + @FloatRange(from = ShadowDrawableWrapper.COS_45, to = 1.0d) + float e(); + + boolean isEmpty(); + } + + /* compiled from: BaseKeyframeAnimation */ + public static final class e implements d { + public final List> a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public b.c.a.c0.a f383b; + public b.c.a.c0.a c = null; + public float d = -1.0f; + + public e(List> list) { + this.a = list; + this.f383b = f(0.0f); + } + + @Override // b.c.a.w.c.a.d + public boolean a(float f) { + b.c.a.c0.a aVar = this.c; + b.c.a.c0.a aVar2 = this.f383b; + if (aVar == aVar2 && this.d == f) { + return true; + } + this.c = aVar2; + this.d = f; + return false; + } + + @Override // b.c.a.w.c.a.d + @NonNull + public b.c.a.c0.a b() { + return this.f383b; + } + + @Override // b.c.a.w.c.a.d + public boolean c(float f) { + if (this.f383b.a(f)) { + return !this.f383b.d(); + } + this.f383b = f(f); + return true; + } + + @Override // b.c.a.w.c.a.d + public float d() { + List> list = this.a; + return ((b.c.a.c0.a) list.get(list.size() - 1)).b(); + } + + @Override // b.c.a.w.c.a.d + public float e() { + return ((b.c.a.c0.a) this.a.get(0)).c(); + } + + public final b.c.a.c0.a f(float f) { + List> list = this.a; + b.c.a.c0.a aVar = (b.c.a.c0.a) list.get(list.size() - 1); + if (f >= aVar.c()) { + return aVar; + } + for (int size = this.a.size() - 2; size >= 1; size--) { + b.c.a.c0.a aVar2 = (b.c.a.c0.a) this.a.get(size); + if (this.f383b != aVar2 && aVar2.a(f)) { + return aVar2; + } + } + return (b.c.a.c0.a) this.a.get(0); + } + + @Override // b.c.a.w.c.a.d + public boolean isEmpty() { + return false; + } + } + + /* compiled from: BaseKeyframeAnimation */ + public static final class f implements d { + @NonNull + public final b.c.a.c0.a a; + + /* renamed from: b reason: collision with root package name */ + public float f384b = -1.0f; + + public f(List> list) { + this.a = (b.c.a.c0.a) list.get(0); + } + + @Override // b.c.a.w.c.a.d + public boolean a(float f) { + if (this.f384b == f) { + return true; + } + this.f384b = f; + return false; + } + + @Override // b.c.a.w.c.a.d + public b.c.a.c0.a b() { + return this.a; + } + + @Override // b.c.a.w.c.a.d + public boolean c(float f) { + return !this.a.d(); + } + + @Override // b.c.a.w.c.a.d + public float d() { + return this.a.b(); + } + + @Override // b.c.a.w.c.a.d + public float e() { + return this.a.c(); + } + + @Override // b.c.a.w.c.a.d + public boolean isEmpty() { + return false; + } + } + + public a(List> list) { + d dVar; + if (list.isEmpty()) { + dVar = new c<>(null); + } else { + dVar = list.size() == 1 ? new f<>(list) : new e<>(list); + } + this.c = dVar; + } + + public b.c.a.c0.a a() { + b.c.a.c0.a b2 = this.c.b(); + b.c.a.c.a("BaseKeyframeAnimation#getCurrentKeyframe"); + return b2; + } + + @FloatRange(from = ShadowDrawableWrapper.COS_45, to = 1.0d) + public float b() { + if (this.h == -1.0f) { + this.h = this.c.d(); + } + return this.h; + } + + public float c() { + b.c.a.c0.a a = a(); + if (a.d()) { + return 0.0f; + } + return a.d.getInterpolation(d()); + } + + public float d() { + if (this.f382b) { + return 0.0f; + } + b.c.a.c0.a a = a(); + if (a.d()) { + return 0.0f; + } + return (this.d - a.c()) / (a.b() - a.c()); + } + + public A e() { + float c2 = c(); + if (this.e == null && this.c.a(c2)) { + return this.f; + } + A f2 = f(a(), c2); + this.f = f2; + return f2; + } + + public abstract A f(b.c.a.c0.a aVar, float f2); + + public void g() { + for (int i = 0; i < this.a.size(); i++) { + this.a.get(i).a(); + } + } + + public void h(@FloatRange(from = 0.0d, to = 1.0d) float f2) { + if (!this.c.isEmpty()) { + if (this.g == -1.0f) { + this.g = this.c.e(); + } + float f3 = this.g; + if (f2 < f3) { + if (f3 == -1.0f) { + this.g = this.c.e(); + } + f2 = this.g; + } else if (f2 > b()) { + f2 = b(); + } + if (f2 != this.d) { + this.d = f2; + if (this.c.c(f2)) { + g(); + } + } + } + } + + public void i(@Nullable b.c.a.c0.c cVar) { + b.c.a.c0.c cVar2 = this.e; + this.e = null; + } +} diff --git a/app/src/main/java/b/c/a/w/c/b.java b/app/src/main/java/b/c/a/w/c/b.java new file mode 100644 index 0000000000..529ff25ebe --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/b.java @@ -0,0 +1,30 @@ +package b.c.a.w.c; + +import b.c.a.a0.d; +import b.c.a.b0.f; +import b.c.a.c0.a; +import b.c.a.c0.c; +import java.util.List; +/* compiled from: ColorKeyframeAnimation */ +public class b extends f { + public b(List> list) { + super(list); + } + + @Override // b.c.a.w.c.a + public Object f(a aVar, float f) { + return Integer.valueOf(j(aVar, f)); + } + + public int j(a aVar, float f) { + Integer num; + Integer num2 = aVar.f337b; + if (num2 == null || aVar.c == null) { + throw new IllegalStateException("Missing values for keyframe."); + } + int intValue = num2.intValue(); + int intValue2 = aVar.c.intValue(); + c cVar = this.e; + return (cVar == 0 || (num = (Integer) cVar.a(aVar.e, aVar.f.floatValue(), Integer.valueOf(intValue), Integer.valueOf(intValue2), f, d(), this.d)) == null) ? d.h0(f.b(f, 0.0f, 1.0f), intValue, intValue2) : num.intValue(); + } +} diff --git a/app/src/main/java/b/c/a/w/c/c.java b/app/src/main/java/b/c/a/w/c/c.java new file mode 100644 index 0000000000..cc9e024a2b --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/c.java @@ -0,0 +1,39 @@ +package b.c.a.w.c; + +import b.c.a.b0.f; +import b.c.a.c0.a; +import java.util.List; +/* compiled from: FloatKeyframeAnimation */ +public class c extends f { + public c(List> list) { + super(list); + } + + @Override // b.c.a.w.c.a + public Object f(a aVar, float f) { + return Float.valueOf(k(aVar, f)); + } + + public float j() { + return k(a(), c()); + } + + public float k(a aVar, float f) { + Float f2; + if (aVar.f337b == null || aVar.c == null) { + throw new IllegalStateException("Missing values for keyframe."); + } + b.c.a.c0.c cVar = this.e; + if (cVar != 0 && (f2 = (Float) cVar.a(aVar.e, aVar.f.floatValue(), aVar.f337b, aVar.c, f, d(), this.d)) != null) { + return f2.floatValue(); + } + if (aVar.g == -3987645.8f) { + aVar.g = aVar.f337b.floatValue(); + } + float f3 = aVar.g; + if (aVar.h == -3987645.8f) { + aVar.h = aVar.c.floatValue(); + } + return f.e(f3, aVar.h, f); + } +} diff --git a/app/src/main/java/b/c/a/w/c/d.java b/app/src/main/java/b/c/a/w/c/d.java new file mode 100644 index 0000000000..6d91fbb7b6 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/d.java @@ -0,0 +1,38 @@ +package b.c.a.w.c; + +import b.c.a.b0.f; +import b.c.a.c0.a; +import b.c.a.y.l.c; +import java.util.List; +import java.util.Objects; +/* compiled from: GradientColorKeyframeAnimation */ +public class d extends f { + public final c i; + + public d(List> list) { + super(list); + int i = 0; + c cVar = list.get(0).f337b; + i = cVar != null ? cVar.f406b.length : i; + this.i = new c(new float[i], new int[i]); + } + + @Override // b.c.a.w.c.a + public Object f(a aVar, float f) { + c cVar = this.i; + c cVar2 = aVar.f337b; + c cVar3 = aVar.c; + Objects.requireNonNull(cVar); + if (cVar2.f406b.length == cVar3.f406b.length) { + for (int i = 0; i < cVar2.f406b.length; i++) { + cVar.a[i] = f.e(cVar2.a[i], cVar3.a[i], f); + cVar.f406b[i] = b.c.a.a0.d.h0(f, cVar2.f406b[i], cVar3.f406b[i]); + } + return this.i; + } + StringBuilder R = b.d.b.a.a.R("Cannot interpolate between gradients. Lengths vary ("); + R.append(cVar2.f406b.length); + R.append(" vs "); + throw new IllegalArgumentException(b.d.b.a.a.A(R, cVar3.f406b.length, ")")); + } +} diff --git a/app/src/main/java/b/c/a/w/c/e.java b/app/src/main/java/b/c/a/w/c/e.java new file mode 100644 index 0000000000..f6baab7fad --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/e.java @@ -0,0 +1,39 @@ +package b.c.a.w.c; + +import android.graphics.PointF; +import b.c.a.b0.f; +import b.c.a.c0.a; +import b.c.a.c0.c; +import java.util.List; +/* compiled from: IntegerKeyframeAnimation */ +public class e extends f { + public e(List> list) { + super(list); + } + + @Override // b.c.a.w.c.a + public Object f(a aVar, float f) { + return Integer.valueOf(j(aVar, f)); + } + + public int j(a aVar, float f) { + Integer num; + if (aVar.f337b == null || aVar.c == null) { + throw new IllegalStateException("Missing values for keyframe."); + } + c cVar = this.e; + if (cVar != 0 && (num = (Integer) cVar.a(aVar.e, aVar.f.floatValue(), aVar.f337b, aVar.c, f, d(), this.d)) != null) { + return num.intValue(); + } + if (aVar.i == 784923401) { + aVar.i = aVar.f337b.intValue(); + } + int i = aVar.i; + if (aVar.j == 784923401) { + aVar.j = aVar.c.intValue(); + } + int i2 = aVar.j; + PointF pointF = f.a; + return (int) ((f * ((float) (i2 - i))) + ((float) i)); + } +} diff --git a/app/src/main/java/b/c/a/w/c/f.java b/app/src/main/java/b/c/a/w/c/f.java new file mode 100644 index 0000000000..6e9499ed6a --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/f.java @@ -0,0 +1,10 @@ +package b.c.a.w.c; + +import b.c.a.c0.a; +import java.util.List; +/* compiled from: KeyframeAnimation */ +public abstract class f extends a { + public f(List> list) { + super(list); + } +} diff --git a/app/src/main/java/b/c/a/w/c/g.java b/app/src/main/java/b/c/a/w/c/g.java new file mode 100644 index 0000000000..daad8fa5c9 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/g.java @@ -0,0 +1,25 @@ +package b.c.a.w.c; + +import android.graphics.Path; +import b.c.a.y.l.f; +import b.c.a.y.l.k; +import java.util.ArrayList; +import java.util.List; +/* compiled from: MaskKeyframeAnimation */ +public class g { + public final List> a; + + /* renamed from: b reason: collision with root package name */ + public final List> f385b; + public final List c; + + public g(List list) { + this.c = list; + this.a = new ArrayList(list.size()); + this.f385b = new ArrayList(list.size()); + for (int i = 0; i < list.size(); i++) { + this.a.add(list.get(i).f409b.a()); + this.f385b.add(list.get(i).c.a()); + } + } +} diff --git a/app/src/main/java/b/c/a/w/c/h.java b/app/src/main/java/b/c/a/w/c/h.java new file mode 100644 index 0000000000..901a643923 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/h.java @@ -0,0 +1,47 @@ +package b.c.a.w.c; + +import android.graphics.Path; +import android.graphics.PathMeasure; +import android.graphics.PointF; +import androidx.annotation.Nullable; +import b.c.a.b0.g; +import b.c.a.c0.a; +import b.c.a.d; +/* compiled from: PathKeyframe */ +public class h extends a { + @Nullable + public Path o; + public final a p; + + public h(d dVar, a aVar) { + super(dVar, aVar.f337b, aVar.c, aVar.d, aVar.e, aVar.f); + this.p = aVar; + e(); + } + + public void e() { + PointF pointF; + PointF pointF2 = this.c; + boolean z2 = (pointF2 == null || (pointF = this.f337b) == null || !pointF.equals(pointF2.x, pointF2.y)) ? false : true; + PointF pointF3 = this.c; + if (pointF3 != null && !z2) { + PointF pointF4 = this.f337b; + PointF pointF5 = pointF3; + a aVar = this.p; + PointF pointF6 = aVar.m; + PointF pointF7 = aVar.n; + PathMeasure pathMeasure = g.a; + Path path = new Path(); + path.moveTo(pointF4.x, pointF4.y); + if (pointF6 == null || pointF7 == null || (pointF6.length() == 0.0f && pointF7.length() == 0.0f)) { + path.lineTo(pointF5.x, pointF5.y); + } else { + float f = pointF4.x; + float f2 = pointF5.x; + float f3 = pointF5.y; + path.cubicTo(pointF6.x + f, pointF4.y + pointF6.y, f2 + pointF7.x, f3 + pointF7.y, f2, f3); + } + this.o = path; + } + } +} diff --git a/app/src/main/java/b/c/a/w/c/i.java b/app/src/main/java/b/c/a/w/c/i.java new file mode 100644 index 0000000000..b74abc9b0a --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/i.java @@ -0,0 +1,46 @@ +package b.c.a.w.c; + +import android.graphics.Path; +import android.graphics.PathMeasure; +import android.graphics.PointF; +import b.c.a.c0.a; +import b.c.a.c0.c; +import java.util.List; +/* compiled from: PathKeyframeAnimation */ +public class i extends f { + public final PointF i = new PointF(); + public final float[] j = new float[2]; + public h k; + public PathMeasure l = new PathMeasure(); + + public i(List> list) { + super(list); + } + + /* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: T */ + /* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: T */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.c.a.w.c.a + public Object f(a aVar, float f) { + PointF pointF; + h hVar = (h) aVar; + Path path = hVar.o; + if (path == null) { + return aVar.f337b; + } + c cVar = this.e; + if (cVar != 0 && (pointF = (PointF) cVar.a(hVar.e, hVar.f.floatValue(), hVar.f337b, hVar.c, d(), f, this.d)) != null) { + return pointF; + } + if (this.k != hVar) { + this.l.setPath(path, false); + this.k = hVar; + } + PathMeasure pathMeasure = this.l; + pathMeasure.getPosTan(pathMeasure.getLength() * f, this.j, null); + PointF pointF2 = this.i; + float[] fArr = this.j; + pointF2.set(fArr[0], fArr[1]); + return this.i; + } +} diff --git a/app/src/main/java/b/c/a/w/c/j.java b/app/src/main/java/b/c/a/w/c/j.java new file mode 100644 index 0000000000..5d86f91f2b --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/j.java @@ -0,0 +1,36 @@ +package b.c.a.w.c; + +import android.graphics.PointF; +import b.c.a.c0.a; +import b.c.a.c0.c; +import java.util.List; +/* compiled from: PointKeyframeAnimation */ +public class j extends f { + public final PointF i = new PointF(); + + public j(List> list) { + super(list); + } + + @Override // b.c.a.w.c.a + public Object f(a aVar, float f) { + PointF pointF; + PointF pointF2; + PointF pointF3 = aVar.f337b; + if (pointF3 == null || (pointF = aVar.c) == null) { + throw new IllegalStateException("Missing values for keyframe."); + } + PointF pointF4 = pointF3; + PointF pointF5 = pointF; + c cVar = this.e; + if (cVar != 0 && (pointF2 = (PointF) cVar.a(aVar.e, aVar.f.floatValue(), pointF4, pointF5, f, d(), this.d)) != null) { + return pointF2; + } + PointF pointF6 = this.i; + float f2 = pointF4.x; + float a = b.d.b.a.a.a(pointF5.x, f2, f, f2); + float f3 = pointF4.y; + pointF6.set(a, ((pointF5.y - f3) * f) + f3); + return this.i; + } +} diff --git a/app/src/main/java/b/c/a/w/c/k.java b/app/src/main/java/b/c/a/w/c/k.java new file mode 100644 index 0000000000..fdee0cc215 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/k.java @@ -0,0 +1,37 @@ +package b.c.a.w.c; + +import b.c.a.b0.f; +import b.c.a.c0.a; +import b.c.a.c0.c; +import b.c.a.c0.d; +import java.util.List; +/* compiled from: ScaleKeyframeAnimation */ +public class k extends f { + public final d i = new d(); + + public k(List> list) { + super(list); + } + + @Override // b.c.a.w.c.a + public Object f(a aVar, float f) { + d dVar; + d dVar2; + d dVar3 = aVar.f337b; + if (dVar3 == null || (dVar = aVar.c) == null) { + throw new IllegalStateException("Missing values for keyframe."); + } + d dVar4 = dVar3; + d dVar5 = dVar; + c cVar = this.e; + if (cVar != 0 && (dVar2 = (d) cVar.a(aVar.e, aVar.f.floatValue(), dVar4, dVar5, f, d(), this.d)) != null) { + return dVar2; + } + d dVar6 = this.i; + float e = f.e(dVar4.a, dVar5.a, f); + float e2 = f.e(dVar4.f340b, dVar5.f340b, f); + dVar6.a = e; + dVar6.f340b = e2; + return this.i; + } +} diff --git a/app/src/main/java/b/c/a/w/c/l.java b/app/src/main/java/b/c/a/w/c/l.java new file mode 100644 index 0000000000..e90302dad9 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/l.java @@ -0,0 +1,92 @@ +package b.c.a.w.c; + +import android.graphics.Path; +import android.graphics.PointF; +import b.c.a.b0.c; +import b.c.a.b0.f; +import b.c.a.c0.a; +import b.c.a.y.l.k; +import java.util.List; +/* compiled from: ShapeKeyframeAnimation */ +public class l extends a { + public final k i = new k(); + public final Path j = new Path(); + + public l(List> list) { + super(list); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.c.a.c0.a, float] */ + @Override // b.c.a.w.c.a + public Path f(a aVar, float f) { + k kVar = aVar.f337b; + k kVar2 = aVar.c; + k kVar3 = this.i; + if (kVar3.f414b == null) { + kVar3.f414b = new PointF(); + } + kVar3.c = kVar.c || kVar2.c; + if (kVar.a.size() != kVar2.a.size()) { + StringBuilder R = b.d.b.a.a.R("Curves must have the same number of control points. Shape 1: "); + R.append(kVar.a.size()); + R.append("\tShape 2: "); + R.append(kVar2.a.size()); + c.b(R.toString()); + } + int min = Math.min(kVar.a.size(), kVar2.a.size()); + if (kVar3.a.size() < min) { + for (int size = kVar3.a.size(); size < min; size++) { + kVar3.a.add(new b.c.a.y.a()); + } + } else if (kVar3.a.size() > min) { + for (int size2 = kVar3.a.size() - 1; size2 >= min; size2--) { + List list = kVar3.a; + list.remove(list.size() - 1); + } + } + PointF pointF = kVar.f414b; + PointF pointF2 = kVar2.f414b; + float e = f.e(pointF.x, pointF2.x, f); + float e2 = f.e(pointF.y, pointF2.y, f); + if (kVar3.f414b == null) { + kVar3.f414b = new PointF(); + } + kVar3.f414b.set(e, e2); + for (int size3 = kVar3.a.size() - 1; size3 >= 0; size3--) { + b.c.a.y.a aVar2 = kVar.a.get(size3); + b.c.a.y.a aVar3 = kVar2.a.get(size3); + PointF pointF3 = aVar2.a; + PointF pointF4 = aVar2.f389b; + PointF pointF5 = aVar2.c; + PointF pointF6 = aVar3.a; + PointF pointF7 = aVar3.f389b; + PointF pointF8 = aVar3.c; + kVar3.a.get(size3).a.set(f.e(pointF3.x, pointF6.x, f), f.e(pointF3.y, pointF6.y, f)); + kVar3.a.get(size3).f389b.set(f.e(pointF4.x, pointF7.x, f), f.e(pointF4.y, pointF7.y, f)); + kVar3.a.get(size3).c.set(f.e(pointF5.x, pointF8.x, f), f.e(pointF5.y, pointF8.y, f)); + } + k kVar4 = this.i; + Path path = this.j; + path.reset(); + PointF pointF9 = kVar4.f414b; + path.moveTo(pointF9.x, pointF9.y); + f.a.set(pointF9.x, pointF9.y); + for (int i = 0; i < kVar4.a.size(); i++) { + b.c.a.y.a aVar4 = kVar4.a.get(i); + PointF pointF10 = aVar4.a; + PointF pointF11 = aVar4.f389b; + PointF pointF12 = aVar4.c; + if (!pointF10.equals(f.a) || !pointF11.equals(pointF12)) { + path.cubicTo(pointF10.x, pointF10.y, pointF11.x, pointF11.y, pointF12.x, pointF12.y); + } else { + path.lineTo(pointF12.x, pointF12.y); + } + f.a.set(pointF12.x, pointF12.y); + } + if (kVar4.c) { + path.close(); + } + return this.j; + } +} diff --git a/app/src/main/java/b/c/a/w/c/m.java b/app/src/main/java/b/c/a/w/c/m.java new file mode 100644 index 0000000000..bebc7399f4 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/m.java @@ -0,0 +1,41 @@ +package b.c.a.w.c; + +import android.graphics.PointF; +import b.c.a.c0.a; +import java.util.Collections; +/* compiled from: SplitDimensionPathKeyframeAnimation */ +public class m extends a { + public final PointF i = new PointF(); + public final a j; + public final a k; + + public m(a aVar, a aVar2) { + super(Collections.emptyList()); + this.j = aVar; + this.k = aVar2; + h(this.d); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.c.a.w.c.a + public PointF e() { + return this.i; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.c.a.c0.a, float] */ + @Override // b.c.a.w.c.a + public PointF f(a aVar, float f) { + return this.i; + } + + @Override // b.c.a.w.c.a + public void h(float f) { + this.j.h(f); + this.k.h(f); + this.i.set(this.j.e().floatValue(), this.k.e().floatValue()); + for (int i = 0; i < this.a.size(); i++) { + this.a.get(i).a(); + } + } +} diff --git a/app/src/main/java/b/c/a/w/c/n.java b/app/src/main/java/b/c/a/w/c/n.java new file mode 100644 index 0000000000..aff6e24c93 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/n.java @@ -0,0 +1,16 @@ +package b.c.a.w.c; + +import b.c.a.c0.a; +import b.c.a.y.c; +import java.util.List; +/* compiled from: TextKeyframeAnimation */ +public class n extends f { + public n(List> list) { + super(list); + } + + @Override // b.c.a.w.c.a + public Object f(a aVar, float f) { + return aVar.f337b; + } +} diff --git a/app/src/main/java/b/c/a/w/c/o.java b/app/src/main/java/b/c/a/w/c/o.java new file mode 100644 index 0000000000..354f7c4667 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/o.java @@ -0,0 +1,336 @@ +package b.c.a.w.c; + +import android.graphics.Matrix; +import android.graphics.PointF; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.c.a.c0.c; +import b.c.a.c0.d; +import b.c.a.w.c.a; +import b.c.a.y.k.b; +import b.c.a.y.k.e; +import b.c.a.y.k.g; +import b.c.a.y.k.l; +import b.c.a.y.k.m; +import java.util.Collections; +/* compiled from: TransformKeyframeAnimation */ +public class o { + public final Matrix a = new Matrix(); + + /* renamed from: b reason: collision with root package name */ + public final Matrix f386b; + public final Matrix c; + public final Matrix d; + public final float[] e; + @NonNull + public a f; + @NonNull + public a g; + @NonNull + public a h; + @NonNull + public a i; + @NonNull + public a j; + @Nullable + public c k; + @Nullable + public c l; + @Nullable + public a m; + @Nullable + public a n; + + public o(l lVar) { + e eVar = lVar.a; + this.f = eVar == null ? null : eVar.a(); + m mVar = lVar.f404b; + this.g = mVar == null ? null : mVar.a(); + g gVar = lVar.c; + this.h = gVar == null ? null : gVar.a(); + b bVar = lVar.d; + this.i = bVar == null ? null : bVar.a(); + b bVar2 = lVar.f; + c cVar = bVar2 == null ? null : (c) bVar2.a(); + this.k = cVar; + if (cVar != null) { + this.f386b = new Matrix(); + this.c = new Matrix(); + this.d = new Matrix(); + this.e = new float[9]; + } else { + this.f386b = null; + this.c = null; + this.d = null; + this.e = null; + } + b bVar3 = lVar.g; + this.l = bVar3 == null ? null : (c) bVar3.a(); + b.c.a.y.k.d dVar = lVar.e; + if (dVar != null) { + this.j = dVar.a(); + } + b bVar4 = lVar.h; + if (bVar4 != null) { + this.m = bVar4.a(); + } else { + this.m = null; + } + b bVar5 = lVar.i; + if (bVar5 != null) { + this.n = bVar5.a(); + } else { + this.n = null; + } + } + + public void a(b.c.a.y.m.b bVar) { + bVar.e(this.j); + bVar.e(this.m); + bVar.e(this.n); + bVar.e(this.f); + bVar.e(this.g); + bVar.e(this.h); + bVar.e(this.i); + bVar.e(this.k); + bVar.e(this.l); + } + + public void b(a.b bVar) { + a aVar = this.j; + if (aVar != null) { + aVar.a.add(bVar); + } + a aVar2 = this.m; + if (aVar2 != null) { + aVar2.a.add(bVar); + } + a aVar3 = this.n; + if (aVar3 != null) { + aVar3.a.add(bVar); + } + a aVar4 = this.f; + if (aVar4 != null) { + aVar4.a.add(bVar); + } + a aVar5 = this.g; + if (aVar5 != null) { + aVar5.a.add(bVar); + } + a aVar6 = this.h; + if (aVar6 != null) { + aVar6.a.add(bVar); + } + a aVar7 = this.i; + if (aVar7 != null) { + aVar7.a.add(bVar); + } + c cVar = this.k; + if (cVar != null) { + cVar.a.add(bVar); + } + c cVar2 = this.l; + if (cVar2 != null) { + cVar2.a.add(bVar); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: b.c.a.c0.c */ + /* JADX WARN: Multi-variable type inference failed */ + public boolean c(T t, @Nullable c cVar) { + c cVar2; + c cVar3; + a aVar; + a aVar2; + if (t == b.c.a.o.e) { + a aVar3 = this.f; + if (aVar3 == null) { + this.f = new p(cVar, new PointF()); + return true; + } + c cVar4 = aVar3.e; + aVar3.e = cVar; + return true; + } else if (t == b.c.a.o.f) { + a aVar4 = this.g; + if (aVar4 == null) { + this.g = new p(cVar, new PointF()); + return true; + } + c cVar5 = aVar4.e; + aVar4.e = cVar; + return true; + } else if (t == b.c.a.o.k) { + a aVar5 = this.h; + if (aVar5 == null) { + this.h = new p(cVar, new d()); + return true; + } + c cVar6 = aVar5.e; + aVar5.e = cVar; + return true; + } else if (t == b.c.a.o.l) { + a aVar6 = this.i; + if (aVar6 == null) { + this.i = new p(cVar, Float.valueOf(0.0f)); + return true; + } + c cVar7 = aVar6.e; + aVar6.e = cVar; + return true; + } else if (t == b.c.a.o.c) { + a aVar7 = this.j; + if (aVar7 == null) { + this.j = new p(cVar, 100); + return true; + } + c cVar8 = aVar7.e; + aVar7.e = cVar; + return true; + } else if (t != b.c.a.o.f361y || (aVar2 = this.m) == null) { + if (t != b.c.a.o.f362z || (aVar = this.n) == null) { + if (t == b.c.a.o.m && (cVar3 = this.k) != null) { + if (cVar3 == null) { + this.k = new c(Collections.singletonList(new b.c.a.c0.a(Float.valueOf(0.0f)))); + } + c cVar9 = this.k; + Object obj = cVar9.e; + cVar9.e = cVar; + return true; + } else if (t != b.c.a.o.n || (cVar2 = this.l) == null) { + return false; + } else { + if (cVar2 == null) { + this.l = new c(Collections.singletonList(new b.c.a.c0.a(Float.valueOf(0.0f)))); + } + c cVar10 = this.l; + Object obj2 = cVar10.e; + cVar10.e = cVar; + return true; + } + } else if (aVar == null) { + this.n = new p(cVar, 100); + return true; + } else { + c cVar11 = aVar.e; + aVar.e = cVar; + return true; + } + } else if (aVar2 == null) { + this.m = new p(cVar, 100); + return true; + } else { + c cVar12 = aVar2.e; + aVar2.e = cVar; + return true; + } + } + + public final void d() { + for (int i = 0; i < 9; i++) { + this.e[i] = 0.0f; + } + } + + public Matrix e() { + this.a.reset(); + a aVar = this.g; + if (aVar != null) { + PointF e = aVar.e(); + float f = e.x; + if (!(f == 0.0f && e.y == 0.0f)) { + this.a.preTranslate(f, e.y); + } + } + a aVar2 = this.i; + if (aVar2 != null) { + float floatValue = aVar2 instanceof p ? aVar2.e().floatValue() : ((c) aVar2).j(); + if (floatValue != 0.0f) { + this.a.preRotate(floatValue); + } + } + if (this.k != null) { + c cVar = this.l; + float cos = cVar == null ? 0.0f : (float) Math.cos(Math.toRadians((double) ((-cVar.j()) + 90.0f))); + c cVar2 = this.l; + float sin = cVar2 == null ? 1.0f : (float) Math.sin(Math.toRadians((double) ((-cVar2.j()) + 90.0f))); + d(); + float[] fArr = this.e; + fArr[0] = cos; + fArr[1] = sin; + float f2 = -sin; + fArr[3] = f2; + fArr[4] = cos; + fArr[8] = 1.0f; + this.f386b.setValues(fArr); + d(); + float[] fArr2 = this.e; + fArr2[0] = 1.0f; + fArr2[3] = (float) Math.tan(Math.toRadians((double) this.k.j())); + fArr2[4] = 1.0f; + fArr2[8] = 1.0f; + this.c.setValues(fArr2); + d(); + float[] fArr3 = this.e; + fArr3[0] = cos; + fArr3[1] = f2; + fArr3[3] = sin; + fArr3[4] = cos; + fArr3[8] = 1.0f; + this.d.setValues(fArr3); + this.c.preConcat(this.f386b); + this.d.preConcat(this.c); + this.a.preConcat(this.d); + } + a aVar3 = this.h; + if (aVar3 != null) { + d e2 = aVar3.e(); + float f3 = e2.a; + if (!(f3 == 1.0f && e2.f340b == 1.0f)) { + this.a.preScale(f3, e2.f340b); + } + } + a aVar4 = this.f; + if (aVar4 != null) { + PointF e3 = aVar4.e(); + float f4 = e3.x; + if (!(f4 == 0.0f && e3.y == 0.0f)) { + this.a.preTranslate(-f4, -e3.y); + } + } + return this.a; + } + + public Matrix f(float f) { + a aVar = this.g; + PointF pointF = null; + PointF e = aVar == null ? null : aVar.e(); + a aVar2 = this.h; + d e2 = aVar2 == null ? null : aVar2.e(); + this.a.reset(); + if (e != null) { + this.a.preTranslate(e.x * f, e.y * f); + } + if (e2 != null) { + double d = (double) f; + this.a.preScale((float) Math.pow((double) e2.a, d), (float) Math.pow((double) e2.f340b, d)); + } + a aVar3 = this.i; + if (aVar3 != null) { + float floatValue = aVar3.e().floatValue(); + a aVar4 = this.f; + if (aVar4 != null) { + pointF = aVar4.e(); + } + Matrix matrix = this.a; + float f2 = floatValue * f; + float f3 = 0.0f; + float f4 = pointF == null ? 0.0f : pointF.x; + if (pointF != null) { + f3 = pointF.y; + } + matrix.preRotate(f2, f4, f3); + } + return this.a; + } +} diff --git a/app/src/main/java/b/c/a/w/c/p.java b/app/src/main/java/b/c/a/w/c/p.java new file mode 100644 index 0000000000..9f1956eaf3 --- /dev/null +++ b/app/src/main/java/b/c/a/w/c/p.java @@ -0,0 +1,46 @@ +package b.c.a.w.c; + +import androidx.annotation.Nullable; +import b.c.a.c0.a; +import b.c.a.c0.c; +import java.util.Collections; +/* compiled from: ValueCallbackKeyframeAnimation */ +public class p extends a { + public final A i; + + public p(c cVar, @Nullable A a) { + super(Collections.emptyList()); + this.e = cVar; + this.i = a; + } + + @Override // b.c.a.w.c.a + public float b() { + return 1.0f; + } + + @Override // b.c.a.w.c.a + public A e() { + c cVar = this.e; + A a = this.i; + float f = this.d; + return cVar.a(0.0f, 0.0f, a, a, f, f, f); + } + + @Override // b.c.a.w.c.a + public A f(a aVar, float f) { + return e(); + } + + @Override // b.c.a.w.c.a + public void g() { + if (this.e != null) { + super.g(); + } + } + + @Override // b.c.a.w.c.a + public void h(float f) { + this.d = f; + } +} diff --git a/app/src/main/java/b/c/a/x/a.java b/app/src/main/java/b/c/a/x/a.java new file mode 100644 index 0000000000..c611ca1d90 --- /dev/null +++ b/app/src/main/java/b/c/a/x/a.java @@ -0,0 +1,29 @@ +package b.c.a.x; + +import android.content.res.AssetManager; +import android.graphics.Typeface; +import android.graphics.drawable.Drawable; +import android.view.View; +import b.c.a.b0.c; +import b.c.a.y.j; +import java.util.HashMap; +import java.util.Map; +/* compiled from: FontAssetManager */ +public class a { + public final j a = new j<>(); + + /* renamed from: b reason: collision with root package name */ + public final Map, Typeface> f387b = new HashMap(); + public final Map c = new HashMap(); + public final AssetManager d; + public String e = ".ttf"; + + public a(Drawable.Callback callback) { + if (!(callback instanceof View)) { + c.b("LottieDrawable must be inside of a view for images to work."); + this.d = null; + return; + } + this.d = ((View) callback).getContext().getAssets(); + } +} diff --git a/app/src/main/java/b/c/a/x/b.java b/app/src/main/java/b/c/a/x/b.java new file mode 100644 index 0000000000..bac8d4547a --- /dev/null +++ b/app/src/main/java/b/c/a/x/b.java @@ -0,0 +1,51 @@ +package b.c.a.x; + +import android.content.Context; +import android.graphics.Bitmap; +import android.graphics.drawable.Drawable; +import android.text.TextUtils; +import android.view.View; +import androidx.annotation.Nullable; +import b.c.a.b0.c; +import b.c.a.k; +import b.d.b.a.a; +import com.discord.widgets.chat.input.MentionUtilsKt; +import java.util.HashMap; +import java.util.Map; +/* compiled from: ImageAssetManager */ +public class b { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public final Context f388b; + public String c; + @Nullable + public b.c.a.b d; + public final Map e; + + public b(Drawable.Callback callback, String str, b.c.a.b bVar, Map map) { + this.c = str; + if (!TextUtils.isEmpty(str)) { + String str2 = this.c; + if (str2.charAt(str2.length() - 1) != '/') { + this.c = a.G(new StringBuilder(), this.c, MentionUtilsKt.SLASH_CHAR); + } + } + if (!(callback instanceof View)) { + c.b("LottieDrawable must be inside of a view for images to work."); + this.e = new HashMap(); + this.f388b = null; + return; + } + this.f388b = ((View) callback).getContext(); + this.e = map; + this.d = bVar; + } + + public final Bitmap a(String str, @Nullable Bitmap bitmap) { + synchronized (a) { + this.e.get(str).e = bitmap; + } + return bitmap; + } +} diff --git a/app/src/main/java/b/c/a/y/a.java b/app/src/main/java/b/c/a/y/a.java new file mode 100644 index 0000000000..686dd053fb --- /dev/null +++ b/app/src/main/java/b/c/a/y/a.java @@ -0,0 +1,25 @@ +package b.c.a.y; + +import android.graphics.PointF; +import androidx.annotation.RestrictTo; +/* compiled from: CubicCurveData */ +@RestrictTo({RestrictTo.Scope.LIBRARY}) +public class a { + public final PointF a; + + /* renamed from: b reason: collision with root package name */ + public final PointF f389b; + public final PointF c; + + public a() { + this.a = new PointF(); + this.f389b = new PointF(); + this.c = new PointF(); + } + + public a(PointF pointF, PointF pointF2, PointF pointF3) { + this.a = pointF; + this.f389b = pointF2; + this.c = pointF3; + } +} diff --git a/app/src/main/java/b/c/a/y/b.java b/app/src/main/java/b/c/a/y/b.java new file mode 100644 index 0000000000..be56806250 --- /dev/null +++ b/app/src/main/java/b/c/a/y/b.java @@ -0,0 +1,223 @@ +package b.c.a.y; + +import android.graphics.Paint; +import androidx.browser.trusted.sharing.ShareTarget; +public /* synthetic */ class b { + public static /* synthetic */ int[] A; + public static /* synthetic */ int[] B; + public static /* synthetic */ int[] C; + public static /* synthetic */ int[] D; + public static /* synthetic */ int[] E; + public static /* synthetic */ int[] F; + public static /* synthetic */ int[] G; + public static /* synthetic */ int[] H; + public static /* synthetic */ int[] I; + public static /* synthetic */ int[] J; + public static /* synthetic */ int[] K; + public static /* synthetic */ int[] L; + public static /* synthetic */ int[] M; + public static /* synthetic */ int[] a; + + /* renamed from: b reason: collision with root package name */ + public static /* synthetic */ int[] f390b; + public static /* synthetic */ int[] c; + public static /* synthetic */ int[] d; + public static /* synthetic */ int[] e; + public static /* synthetic */ int[] f; + public static /* synthetic */ int[] g; + public static /* synthetic */ int[] h; + public static /* synthetic */ int[] i; + public static /* synthetic */ int[] j; + public static /* synthetic */ int[] k; + public static /* synthetic */ int[] l; + public static /* synthetic */ int[] m; + public static /* synthetic */ int[] n; + public static /* synthetic */ int[] o; + public static /* synthetic */ int[] p; + public static /* synthetic */ int[] q; + public static /* synthetic */ int[] r; + + /* renamed from: s reason: collision with root package name */ + public static /* synthetic */ int[] f391s; + public static /* synthetic */ int[] t; + public static /* synthetic */ int[] u; + public static /* synthetic */ int[] v; + public static /* synthetic */ int[] w; + + /* renamed from: x reason: collision with root package name */ + public static /* synthetic */ int[] f392x; + + /* renamed from: y reason: collision with root package name */ + public static /* synthetic */ int[] f393y; + + /* renamed from: z reason: collision with root package name */ + public static /* synthetic */ int[] f394z; + + public static synchronized /* synthetic */ int[] a() { + int[] iArr; + synchronized (b.class) { + if (a == null) { + a = i(3); + } + iArr = a; + } + return iArr; + } + + public static synchronized /* synthetic */ int[] b() { + int[] iArr; + synchronized (b.class) { + if (d == null) { + d = i(3); + } + iArr = d; + } + return iArr; + } + + public static synchronized /* synthetic */ int[] c() { + int[] iArr; + synchronized (b.class) { + if (e == null) { + e = i(3); + } + iArr = e; + } + return iArr; + } + + public static int[] com$airbnb$lottie$model$DocumentData$Justification$s$values() { + return (int[]) a().clone(); + } + + public static int[] com$airbnb$lottie$model$content$ShapeStroke$LineCapType$s$values() { + return (int[]) b().clone(); + } + + public static int[] com$airbnb$lottie$model$content$ShapeStroke$LineJoinType$s$values() { + return (int[]) c().clone(); + } + + public static int[] com$airbnb$lottie$model$layer$Layer$MatteType$s$values() { + return (int[]) d().clone(); + } + + public static int[] com$fasterxml$jackson$databind$cfg$CoercionInputShape$s$values() { + return (int[]) e().clone(); + } + + public static int[] com$fasterxml$jackson$databind$type$LogicalType$s$values() { + return (int[]) f().clone(); + } + + public static synchronized /* synthetic */ int[] d() { + int[] iArr; + synchronized (b.class) { + if (g == null) { + g = i(4); + } + iArr = g; + } + return iArr; + } + + public static synchronized /* synthetic */ int[] e() { + int[] iArr; + synchronized (b.class) { + if (v == null) { + v = i(10); + } + iArr = v; + } + return iArr; + } + + public static synchronized /* synthetic */ int[] f() { + int[] iArr; + synchronized (b.class) { + if (w == null) { + w = i(13); + } + iArr = w; + } + return iArr; + } + + public static /* synthetic */ boolean g(int i2, int i3) { + if (i2 != 0) { + return i2 == i3; + } + throw null; + } + + public static /* synthetic */ int h(int i2) { + if (i2 != 0) { + return i2 - 1; + } + throw null; + } + + public static /* synthetic */ int[] i(int i2) { + int[] iArr = new int[i2]; + int i3 = 0; + while (i3 < i2) { + int i4 = i3 + 1; + iArr[i3] = i4; + i3 = i4; + } + return iArr; + } + + public static /* synthetic */ void j(int i2) { + if (i2 == 0) { + throw null; + } + } + + public static Paint.Cap k(int i2) { + int h2 = h(i2); + return h2 != 0 ? h2 != 1 ? Paint.Cap.SQUARE : Paint.Cap.ROUND : Paint.Cap.BUTT; + } + + public static Paint.Join l(int i2) { + int h2 = h(i2); + if (h2 == 0) { + return Paint.Join.MITER; + } + if (h2 == 1) { + return Paint.Join.ROUND; + } + if (h2 != 2) { + return null; + } + return Paint.Join.BEVEL; + } + + public static int m(b.i.c.m.d.s.h.b bVar) { + boolean z2 = false; + boolean z3 = bVar.g == 2; + if (bVar.h == 2) { + z2 = true; + } + if (!z3) { + return 1; + } + return !z2 ? 2 : 3; + } + + public static /* synthetic */ String n(int i2) { + if (i2 == 1) { + return ShareTarget.METHOD_GET; + } + if (i2 == 2) { + return ShareTarget.METHOD_POST; + } + if (i2 == 3) { + return "PUT"; + } + if (i2 == 4) { + return "DELETE"; + } + throw null; + } +} diff --git a/app/src/main/java/b/c/a/y/c.java b/app/src/main/java/b/c/a/y/c.java new file mode 100644 index 0000000000..21c01e9a0a --- /dev/null +++ b/app/src/main/java/b/c/a/y/c.java @@ -0,0 +1,45 @@ +package b.c.a.y; + +import androidx.annotation.ColorInt; +import androidx.annotation.RestrictTo; +import b.d.b.a.a; +/* compiled from: DocumentData */ +@RestrictTo({RestrictTo.Scope.LIBRARY}) +public class c { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f395b; + public final float c; + public final int d; + public final int e; + public final float f; + public final float g; + @ColorInt + public final int h; + @ColorInt + public final int i; + public final float j; + public final boolean k; + + public c(String str, String str2, float f, int i, int i2, float f2, float f3, @ColorInt int i3, @ColorInt int i4, float f4, boolean z2) { + this.a = str; + this.f395b = str2; + this.c = f; + this.d = i; + this.e = i2; + this.f = f2; + this.g = f3; + this.h = i3; + this.i = i4; + this.j = f4; + this.k = z2; + } + + public int hashCode() { + String str = this.f395b; + int h = ((b.h(this.d) + (((int) (((float) a.m(str, this.a.hashCode() * 31, 31)) + this.c)) * 31)) * 31) + this.e; + long floatToRawIntBits = (long) Float.floatToRawIntBits(this.f); + return (((h * 31) + ((int) (floatToRawIntBits ^ (floatToRawIntBits >>> 32)))) * 31) + this.h; + } +} diff --git a/app/src/main/java/b/c/a/y/d.java b/app/src/main/java/b/c/a/y/d.java new file mode 100644 index 0000000000..9e14a6f57d --- /dev/null +++ b/app/src/main/java/b/c/a/y/d.java @@ -0,0 +1,18 @@ +package b.c.a.y; + +import androidx.annotation.RestrictTo; +/* compiled from: Font */ +@RestrictTo({RestrictTo.Scope.LIBRARY}) +public class d { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f396b; + public final String c; + + public d(String str, String str2, String str3, float f) { + this.a = str; + this.f396b = str2; + this.c = str3; + } +} diff --git a/app/src/main/java/b/c/a/y/e.java b/app/src/main/java/b/c/a/y/e.java new file mode 100644 index 0000000000..ca4605d426 --- /dev/null +++ b/app/src/main/java/b/c/a/y/e.java @@ -0,0 +1,33 @@ +package b.c.a.y; + +import androidx.annotation.RestrictTo; +import b.c.a.y.l.m; +import b.d.b.a.a; +import java.util.List; +/* compiled from: FontCharacter */ +@RestrictTo({RestrictTo.Scope.LIBRARY}) +public class e { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final char f397b; + public final double c; + public final String d; + public final String e; + + public e(List list, char c, double d, double d2, String str, String str2) { + this.a = list; + this.f397b = c; + this.c = d2; + this.d = str; + this.e = str2; + } + + public static int a(char c, String str, String str2) { + return str2.hashCode() + a.m(str, (c + 0) * 31, 31); + } + + public int hashCode() { + return a(this.f397b, this.e, this.d); + } +} diff --git a/app/src/main/java/b/c/a/y/f.java b/app/src/main/java/b/c/a/y/f.java new file mode 100644 index 0000000000..17fda51af6 --- /dev/null +++ b/app/src/main/java/b/c/a/y/f.java @@ -0,0 +1,106 @@ +package b.c.a.y; + +import androidx.annotation.CheckResult; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import b.d.b.a.a; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +/* compiled from: KeyPath */ +public class f { + public static final f a = new f("COMPOSITION"); + + /* renamed from: b reason: collision with root package name */ + public final List f398b; + @Nullable + public g c; + + public f(f fVar) { + this.f398b = new ArrayList(fVar.f398b); + this.c = fVar.c; + } + + public f(String... strArr) { + this.f398b = Arrays.asList(strArr); + } + + @CheckResult + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public f a(String str) { + f fVar = new f(this); + fVar.f398b.add(str); + return fVar; + } + + public final boolean b() { + List list = this.f398b; + return list.get(list.size() - 1).equals("**"); + } + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public boolean c(String str, int i) { + if (i >= this.f398b.size()) { + return false; + } + boolean z2 = i == this.f398b.size() - 1; + String str2 = this.f398b.get(i); + if (!str2.equals("**")) { + return (z2 || (i == this.f398b.size() + -2 && b())) && (str2.equals(str) || str2.equals("*")); + } + if (!z2 && this.f398b.get(i + 1).equals(str)) { + return i == this.f398b.size() + -2 || (i == this.f398b.size() + -3 && b()); + } + if (z2) { + return true; + } + int i2 = i + 1; + if (i2 < this.f398b.size() - 1) { + return false; + } + return this.f398b.get(i2).equals(str); + } + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public int d(String str, int i) { + if ("__container".equals(str)) { + return 0; + } + if (!this.f398b.get(i).equals("**")) { + return 1; + } + return (i != this.f398b.size() - 1 && this.f398b.get(i + 1).equals(str)) ? 2 : 0; + } + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public boolean e(String str, int i) { + if ("__container".equals(str)) { + return true; + } + if (i >= this.f398b.size()) { + return false; + } + return this.f398b.get(i).equals(str) || this.f398b.get(i).equals("**") || this.f398b.get(i).equals("*"); + } + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public boolean f(String str, int i) { + return "__container".equals(str) || i < this.f398b.size() - 1 || this.f398b.get(i).equals("**"); + } + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public f g(g gVar) { + f fVar = new f(this); + fVar.c = gVar; + return fVar; + } + + public String toString() { + StringBuilder R = a.R("KeyPath{keys="); + R.append(this.f398b); + R.append(",resolved="); + R.append(this.c != null); + R.append('}'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/g.java b/app/src/main/java/b/c/a/y/g.java new file mode 100644 index 0000000000..a63f001f54 --- /dev/null +++ b/app/src/main/java/b/c/a/y/g.java @@ -0,0 +1,13 @@ +package b.c.a.y; + +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import b.c.a.c0.c; +import java.util.List; +/* compiled from: KeyPathElement */ +@RestrictTo({RestrictTo.Scope.LIBRARY}) +public interface g { + void c(f fVar, int i, List list, f fVar2); + + void g(T t, @Nullable c cVar); +} diff --git a/app/src/main/java/b/c/a/y/h.java b/app/src/main/java/b/c/a/y/h.java new file mode 100644 index 0000000000..4838e160f2 --- /dev/null +++ b/app/src/main/java/b/c/a/y/h.java @@ -0,0 +1,13 @@ +package b.c.a.y; + +import androidx.annotation.RestrictTo; +import androidx.collection.LruCache; +import b.c.a.d; +/* compiled from: LottieCompositionCache */ +@RestrictTo({RestrictTo.Scope.LIBRARY}) +public class h { + public static final h a = new h(); + + /* renamed from: b reason: collision with root package name */ + public final LruCache f399b = new LruCache<>(20); +} diff --git a/app/src/main/java/b/c/a/y/i.java b/app/src/main/java/b/c/a/y/i.java new file mode 100644 index 0000000000..64523ad12e --- /dev/null +++ b/app/src/main/java/b/c/a/y/i.java @@ -0,0 +1,15 @@ +package b.c.a.y; +/* compiled from: Marker */ +public class i { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final float f400b; + public final float c; + + public i(String str, float f, float f2) { + this.a = str; + this.c = f2; + this.f400b = f; + } +} diff --git a/app/src/main/java/b/c/a/y/j.java b/app/src/main/java/b/c/a/y/j.java new file mode 100644 index 0000000000..80f1b74251 --- /dev/null +++ b/app/src/main/java/b/c/a/y/j.java @@ -0,0 +1,51 @@ +package b.c.a.y; + +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import androidx.core.util.Pair; +import b.d.b.a.a; +/* compiled from: MutablePair */ +@RestrictTo({RestrictTo.Scope.LIBRARY}) +public class j { + @Nullable + public T a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public T f401b; + + public boolean equals(Object obj) { + if (!(obj instanceof Pair)) { + return false; + } + Pair pair = (Pair) obj; + F f = pair.first; + Object obj2 = this.a; + if (!(f == obj2 || (f != 0 && f.equals(obj2)))) { + return false; + } + S s2 = pair.second; + Object obj3 = this.f401b; + return s2 == obj3 || (s2 != 0 && s2.equals(obj3)); + } + + public int hashCode() { + T t = this.a; + int i = 0; + int hashCode = t == null ? 0 : t.hashCode(); + T t2 = this.f401b; + if (t2 != null) { + i = t2.hashCode(); + } + return hashCode ^ i; + } + + public String toString() { + StringBuilder R = a.R("Pair{"); + R.append(String.valueOf(this.a)); + R.append(" "); + R.append(String.valueOf(this.f401b)); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/k/a.java b/app/src/main/java/b/c/a/y/k/a.java new file mode 100644 index 0000000000..98271c08eb --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/a.java @@ -0,0 +1,15 @@ +package b.c.a.y.k; + +import b.c.a.w.c.b; +import java.util.List; +/* compiled from: AnimatableColorValue */ +public class a extends n { + public a(List> list) { + super((List) list); + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return new b(this.a); + } +} diff --git a/app/src/main/java/b/c/a/y/k/b.java b/app/src/main/java/b/c/a/y/k/b.java new file mode 100644 index 0000000000..981a4c6600 --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/b.java @@ -0,0 +1,20 @@ +package b.c.a.y.k; + +import b.c.a.c0.a; +import b.c.a.w.c.c; +import java.util.List; +/* compiled from: AnimatableFloatValue */ +public class b extends n { + public b() { + super(Float.valueOf(0.0f)); + } + + public b(List> list) { + super((List) list); + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return new c(this.a); + } +} diff --git a/app/src/main/java/b/c/a/y/k/c.java b/app/src/main/java/b/c/a/y/k/c.java new file mode 100644 index 0000000000..f2d8a7d3fc --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/c.java @@ -0,0 +1,16 @@ +package b.c.a.y.k; + +import b.c.a.c0.a; +import b.c.a.w.c.d; +import java.util.List; +/* compiled from: AnimatableGradientColorValue */ +public class c extends n { + public c(List> list) { + super((List) list); + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return new d(this.a); + } +} diff --git a/app/src/main/java/b/c/a/y/k/d.java b/app/src/main/java/b/c/a/y/k/d.java new file mode 100644 index 0000000000..94833d5a4e --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/d.java @@ -0,0 +1,16 @@ +package b.c.a.y.k; + +import b.c.a.c0.a; +import b.c.a.w.c.e; +import java.util.List; +/* compiled from: AnimatableIntegerValue */ +public class d extends n { + public d(List> list) { + super((List) list); + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return new e(this.a); + } +} diff --git a/app/src/main/java/b/c/a/y/k/e.java b/app/src/main/java/b/c/a/y/k/e.java new file mode 100644 index 0000000000..53c9387b8f --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/e.java @@ -0,0 +1,30 @@ +package b.c.a.y.k; + +import android.graphics.PointF; +import b.c.a.c0.a; +import b.c.a.w.c.i; +import b.c.a.w.c.j; +import java.util.List; +/* compiled from: AnimatablePathValue */ +public class e implements m { + public final List> a; + + public e(List> list) { + this.a = list; + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return this.a.get(0).d() ? new j(this.a) : new i(this.a); + } + + @Override // b.c.a.y.k.m + public List> b() { + return this.a; + } + + @Override // b.c.a.y.k.m + public boolean isStatic() { + return this.a.size() == 1 && this.a.get(0).d(); + } +} diff --git a/app/src/main/java/b/c/a/y/k/f.java b/app/src/main/java/b/c/a/y/k/f.java new file mode 100644 index 0000000000..54f4a2c8ad --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/f.java @@ -0,0 +1,17 @@ +package b.c.a.y.k; + +import android.graphics.PointF; +import b.c.a.c0.a; +import b.c.a.w.c.j; +import java.util.List; +/* compiled from: AnimatablePointValue */ +public class f extends n { + public f(List> list) { + super((List) list); + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return new j(this.a); + } +} diff --git a/app/src/main/java/b/c/a/y/k/g.java b/app/src/main/java/b/c/a/y/k/g.java new file mode 100644 index 0000000000..5ed9d3ec61 --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/g.java @@ -0,0 +1,17 @@ +package b.c.a.y.k; + +import b.c.a.c0.a; +import b.c.a.c0.d; +import b.c.a.w.c.k; +import java.util.List; +/* compiled from: AnimatableScaleValue */ +public class g extends n { + public g(List> list) { + super((List) list); + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return new k(this.a); + } +} diff --git a/app/src/main/java/b/c/a/y/k/h.java b/app/src/main/java/b/c/a/y/k/h.java new file mode 100644 index 0000000000..5baf45c615 --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/h.java @@ -0,0 +1,18 @@ +package b.c.a.y.k; + +import android.graphics.Path; +import b.c.a.c0.a; +import b.c.a.w.c.l; +import b.c.a.y.l.k; +import java.util.List; +/* compiled from: AnimatableShapeValue */ +public class h extends n { + public h(List> list) { + super((List) list); + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return new l(this.a); + } +} diff --git a/app/src/main/java/b/c/a/y/k/i.java b/app/src/main/java/b/c/a/y/k/i.java new file mode 100644 index 0000000000..d5328d2451 --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/i.java @@ -0,0 +1,33 @@ +package b.c.a.y.k; + +import android.graphics.PointF; +import b.c.a.w.c.a; +import b.c.a.w.c.m; +import java.util.List; +/* compiled from: AnimatableSplitDimensionPathValue */ +public class i implements m { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final b f402b; + + public i(b bVar, b bVar2) { + this.a = bVar; + this.f402b = bVar2; + } + + @Override // b.c.a.y.k.m + public a a() { + return new m(this.a.a(), this.f402b.a()); + } + + @Override // b.c.a.y.k.m + public List> b() { + throw new UnsupportedOperationException("Cannot call getKeyframes on AnimatableSplitDimensionPathValue."); + } + + @Override // b.c.a.y.k.m + public boolean isStatic() { + return this.a.isStatic() && this.f402b.isStatic(); + } +} diff --git a/app/src/main/java/b/c/a/y/k/j.java b/app/src/main/java/b/c/a/y/k/j.java new file mode 100644 index 0000000000..087472a7e5 --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/j.java @@ -0,0 +1,17 @@ +package b.c.a.y.k; + +import b.c.a.c0.a; +import b.c.a.w.c.n; +import b.c.a.y.c; +import java.util.List; +/* compiled from: AnimatableTextFrame */ +public class j extends n { + public j(List> list) { + super((List) list); + } + + @Override // b.c.a.y.k.m + public b.c.a.w.c.a a() { + return new n(this.a); + } +} diff --git a/app/src/main/java/b/c/a/y/k/k.java b/app/src/main/java/b/c/a/y/k/k.java new file mode 100644 index 0000000000..4117b8dda3 --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/k.java @@ -0,0 +1,23 @@ +package b.c.a.y.k; + +import androidx.annotation.Nullable; +/* compiled from: AnimatableTextProperties */ +public class k { + @Nullable + public final a a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final a f403b; + @Nullable + public final b c; + @Nullable + public final b d; + + public k(@Nullable a aVar, @Nullable a aVar2, @Nullable b bVar, @Nullable b bVar2) { + this.a = aVar; + this.f403b = aVar2; + this.c = bVar; + this.d = bVar2; + } +} diff --git a/app/src/main/java/b/c/a/y/k/l.java b/app/src/main/java/b/c/a/y/k/l.java new file mode 100644 index 0000000000..279f1e6576 --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/l.java @@ -0,0 +1,52 @@ +package b.c.a.y.k; + +import android.graphics.PointF; +import androidx.annotation.Nullable; +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.y.l.b; +/* compiled from: AnimatableTransform */ +public class l implements b { + @Nullable + public final e a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final m f404b; + @Nullable + public final g c; + @Nullable + public final b d; + @Nullable + public final d e; + @Nullable + public final b f; + @Nullable + public final b g; + @Nullable + public final b h; + @Nullable + public final b i; + + public l() { + this(null, null, null, null, null, null, null, null, null); + } + + public l(@Nullable e eVar, @Nullable m mVar, @Nullable g gVar, @Nullable b bVar, @Nullable d dVar, @Nullable b bVar2, @Nullable b bVar3, @Nullable b bVar4, @Nullable b bVar5) { + this.a = eVar; + this.f404b = mVar; + this.c = gVar; + this.d = bVar; + this.e = dVar; + this.h = bVar2; + this.i = bVar3; + this.f = bVar4; + this.g = bVar5; + } + + @Override // b.c.a.y.l.b + @Nullable + public c a(j jVar, b.c.a.y.m.b bVar) { + return null; + } +} diff --git a/app/src/main/java/b/c/a/y/k/m.java b/app/src/main/java/b/c/a/y/k/m.java new file mode 100644 index 0000000000..812d80ac4e --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/m.java @@ -0,0 +1,12 @@ +package b.c.a.y.k; + +import b.c.a.w.c.a; +import java.util.List; +/* compiled from: AnimatableValue */ +public interface m { + a a(); + + List> b(); + + boolean isStatic(); +} diff --git a/app/src/main/java/b/c/a/y/k/n.java b/app/src/main/java/b/c/a/y/k/n.java new file mode 100644 index 0000000000..1ce162d6fd --- /dev/null +++ b/app/src/main/java/b/c/a/y/k/n.java @@ -0,0 +1,37 @@ +package b.c.a.y.k; + +import b.c.a.c0.a; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +/* compiled from: BaseAnimatableValue */ +public abstract class n implements m { + public final List> a; + + public n(V v) { + this.a = Collections.singletonList(new a(v)); + } + + public n(List> list) { + this.a = list; + } + + @Override // b.c.a.y.k.m + public List> b() { + return this.a; + } + + @Override // b.c.a.y.k.m + public boolean isStatic() { + return this.a.isEmpty() || (this.a.size() == 1 && this.a.get(0).d()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + if (!this.a.isEmpty()) { + sb.append("values="); + sb.append(Arrays.toString(this.a.toArray())); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/l/a.java b/app/src/main/java/b/c/a/y/l/a.java new file mode 100644 index 0000000000..30ffaf3563 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/a.java @@ -0,0 +1,31 @@ +package b.c.a.y.l; + +import android.graphics.PointF; +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.y.k.f; +import b.c.a.y.k.m; +import b.c.a.y.m.b; +/* compiled from: CircleShape */ +public class a implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final m f405b; + public final f c; + public final boolean d; + public final boolean e; + + public a(String str, m mVar, f fVar, boolean z2, boolean z3) { + this.a = str; + this.f405b = mVar; + this.c = fVar; + this.d = z2; + this.e = z3; + } + + @Override // b.c.a.y.l.b + public c a(j jVar, b bVar) { + return new b.c.a.w.b.f(jVar, bVar, this); + } +} diff --git a/app/src/main/java/b/c/a/y/l/b.java b/app/src/main/java/b/c/a/y/l/b.java new file mode 100644 index 0000000000..aa856b2f92 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/b.java @@ -0,0 +1,10 @@ +package b.c.a.y.l; + +import androidx.annotation.Nullable; +import b.c.a.j; +import b.c.a.w.b.c; +/* compiled from: ContentModel */ +public interface b { + @Nullable + c a(j jVar, b.c.a.y.m.b bVar); +} diff --git a/app/src/main/java/b/c/a/y/l/c.java b/app/src/main/java/b/c/a/y/l/c.java new file mode 100644 index 0000000000..7065ba5084 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/c.java @@ -0,0 +1,13 @@ +package b.c.a.y.l; +/* compiled from: GradientColor */ +public class c { + public final float[] a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f406b; + + public c(float[] fArr, int[] iArr) { + this.a = fArr; + this.f406b = iArr; + } +} diff --git a/app/src/main/java/b/c/a/y/l/d.java b/app/src/main/java/b/c/a/y/l/d.java new file mode 100644 index 0000000000..0cb9faf2e2 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/d.java @@ -0,0 +1,37 @@ +package b.c.a.y.l; + +import android.graphics.Path; +import b.c.a.j; +import b.c.a.w.b.h; +import b.c.a.y.k.b; +import b.c.a.y.k.c; +import b.c.a.y.k.f; +/* compiled from: GradientFill */ +public class d implements b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final Path.FillType f407b; + public final c c; + public final b.c.a.y.k.d d; + public final f e; + public final f f; + public final String g; + public final boolean h; + + public d(String str, int i, Path.FillType fillType, c cVar, b.c.a.y.k.d dVar, f fVar, f fVar2, b bVar, b bVar2, boolean z2) { + this.a = i; + this.f407b = fillType; + this.c = cVar; + this.d = dVar; + this.e = fVar; + this.f = fVar2; + this.g = str; + this.h = z2; + } + + @Override // b.c.a.y.l.b + public b.c.a.w.b.c a(j jVar, b.c.a.y.m.b bVar) { + return new h(jVar, bVar, this); + } +} diff --git a/app/src/main/java/b/c/a/y/l/e.java b/app/src/main/java/b/c/a/y/l/e.java new file mode 100644 index 0000000000..a8caf72618 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/e.java @@ -0,0 +1,51 @@ +package b.c.a.y.l; + +import androidx.annotation.Nullable; +import b.c.a.j; +import b.c.a.w.b.i; +import b.c.a.y.k.b; +import b.c.a.y.k.c; +import b.c.a.y.k.d; +import b.c.a.y.k.f; +import java.util.List; +/* compiled from: GradientStroke */ +public class e implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f408b; + public final c c; + public final d d; + public final f e; + public final f f; + public final b g; + public final int h; + public final int i; + public final float j; + public final List k; + @Nullable + public final b l; + public final boolean m; + + /* JADX WARN: Incorrect types in method signature: (Ljava/lang/String;Ljava/lang/Object;Lb/c/a/y/k/c;Lb/c/a/y/k/d;Lb/c/a/y/k/f;Lb/c/a/y/k/f;Lb/c/a/y/k/b;Ljava/lang/Object;Ljava/lang/Object;FLjava/util/List;Lb/c/a/y/k/b;Z)V */ + public e(String str, int i, c cVar, d dVar, f fVar, f fVar2, b bVar, int i2, int i3, float f, List list, @Nullable b bVar2, boolean z2) { + this.a = str; + this.f408b = i; + this.c = cVar; + this.d = dVar; + this.e = fVar; + this.f = fVar2; + this.g = bVar; + this.h = i2; + this.i = i3; + this.j = f; + this.k = list; + this.l = bVar2; + this.m = z2; + } + + @Override // b.c.a.y.l.b + public b.c.a.w.b.c a(j jVar, b.c.a.y.m.b bVar) { + return new i(jVar, bVar, this); + } +} diff --git a/app/src/main/java/b/c/a/y/l/f.java b/app/src/main/java/b/c/a/y/l/f.java new file mode 100644 index 0000000000..97960b2b5d --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/f.java @@ -0,0 +1,20 @@ +package b.c.a.y.l; + +import b.c.a.y.k.d; +import b.c.a.y.k.h; +/* compiled from: Mask */ +public class f { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final h f409b; + public final d c; + public final boolean d; + + public f(int i, h hVar, d dVar, boolean z2) { + this.a = i; + this.f409b = hVar; + this.c = dVar; + this.d = z2; + } +} diff --git a/app/src/main/java/b/c/a/y/l/g.java b/app/src/main/java/b/c/a/y/l/g.java new file mode 100644 index 0000000000..3c71e78775 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/g.java @@ -0,0 +1,47 @@ +package b.c.a.y.l; + +import androidx.annotation.Nullable; +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.w.b.l; +import b.c.a.y.m.b; +/* compiled from: MergePaths */ +public class g implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final a f410b; + public final boolean c; + + /* compiled from: MergePaths */ + public enum a { + MERGE, + ADD, + SUBTRACT, + INTERSECT, + EXCLUDE_INTERSECTIONS + } + + public g(String str, a aVar, boolean z2) { + this.a = str; + this.f410b = aVar; + this.c = z2; + } + + @Override // b.c.a.y.l.b + @Nullable + public c a(j jVar, b bVar) { + if (jVar.w) { + return new l(this); + } + b.c.a.b0.c.b("Animation contains merge paths but they are disabled."); + return null; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("MergePaths{mode="); + R.append(this.f410b); + R.append('}'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/l/h.java b/app/src/main/java/b/c/a/y/l/h.java new file mode 100644 index 0000000000..1232f53ee2 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/h.java @@ -0,0 +1,64 @@ +package b.c.a.y.l; + +import android.graphics.PointF; +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.w.b.n; +import b.c.a.y.k.b; +import b.c.a.y.k.m; +/* compiled from: PolystarShape */ +public class h implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final a f411b; + public final b c; + public final m d; + public final b e; + public final b f; + public final b g; + public final b h; + public final b i; + public final boolean j; + + /* compiled from: PolystarShape */ + public enum a { + STAR(1), + POLYGON(2); + + private final int value; + + public a(int i) { + this.value = i; + } + + public static a f(int i) { + a[] values = values(); + for (int i2 = 0; i2 < 2; i2++) { + a aVar = values[i2]; + if (aVar.value == i) { + return aVar; + } + } + return null; + } + } + + public h(String str, a aVar, b bVar, m mVar, b bVar2, b bVar3, b bVar4, b bVar5, b bVar6, boolean z2) { + this.a = str; + this.f411b = aVar; + this.c = bVar; + this.d = mVar; + this.e = bVar2; + this.f = bVar3; + this.g = bVar4; + this.h = bVar5; + this.i = bVar6; + this.j = z2; + } + + @Override // b.c.a.y.l.b + public c a(j jVar, b.c.a.y.m.b bVar) { + return new n(jVar, bVar, this); + } +} diff --git a/app/src/main/java/b/c/a/y/l/i.java b/app/src/main/java/b/c/a/y/l/i.java new file mode 100644 index 0000000000..99cb1a0077 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/i.java @@ -0,0 +1,42 @@ +package b.c.a.y.l; + +import android.graphics.PointF; +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.w.b.o; +import b.c.a.y.k.b; +import b.c.a.y.k.f; +import b.c.a.y.k.m; +import b.d.b.a.a; +/* compiled from: RectangleShape */ +public class i implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final m f412b; + public final f c; + public final b d; + public final boolean e; + + public i(String str, m mVar, f fVar, b bVar, boolean z2) { + this.a = str; + this.f412b = mVar; + this.c = fVar; + this.d = bVar; + this.e = z2; + } + + @Override // b.c.a.y.l.b + public c a(j jVar, b.c.a.y.m.b bVar) { + return new o(jVar, bVar, this); + } + + public String toString() { + StringBuilder R = a.R("RectangleShape{position="); + R.append(this.f412b); + R.append(", size="); + R.append(this.c); + R.append('}'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/l/j.java b/app/src/main/java/b/c/a/y/l/j.java new file mode 100644 index 0000000000..61cbe38d5a --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/j.java @@ -0,0 +1,31 @@ +package b.c.a.y.l; + +import androidx.annotation.Nullable; +import b.c.a.w.b.c; +import b.c.a.w.b.p; +import b.c.a.y.k.b; +import b.c.a.y.k.l; +/* compiled from: Repeater */ +public class j implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final b f413b; + public final b c; + public final l d; + public final boolean e; + + public j(String str, b bVar, b bVar2, l lVar, boolean z2) { + this.a = str; + this.f413b = bVar; + this.c = bVar2; + this.d = lVar; + this.e = z2; + } + + @Override // b.c.a.y.l.b + @Nullable + public c a(b.c.a.j jVar, b.c.a.y.m.b bVar) { + return new p(jVar, bVar, this); + } +} diff --git a/app/src/main/java/b/c/a/y/l/k.java b/app/src/main/java/b/c/a/y/l/k.java new file mode 100644 index 0000000000..984a1cf2ca --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/k.java @@ -0,0 +1,33 @@ +package b.c.a.y.l; + +import android.graphics.PointF; +import b.c.a.y.a; +import java.util.ArrayList; +import java.util.List; +/* compiled from: ShapeData */ +public class k { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public PointF f414b; + public boolean c; + + public k() { + this.a = new ArrayList(); + } + + public k(PointF pointF, boolean z2, List list) { + this.f414b = pointF; + this.c = z2; + this.a = new ArrayList(list); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("ShapeData{numCurves="); + R.append(this.a.size()); + R.append("closed="); + R.append(this.c); + R.append('}'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/l/l.java b/app/src/main/java/b/c/a/y/l/l.java new file mode 100644 index 0000000000..b37fdd3f9f --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/l.java @@ -0,0 +1,44 @@ +package b.c.a.y.l; + +import android.graphics.Path; +import androidx.annotation.Nullable; +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.w.b.g; +import b.c.a.y.k.a; +import b.c.a.y.k.d; +import b.c.a.y.m.b; +/* compiled from: ShapeFill */ +public class l implements b { + public final boolean a; + + /* renamed from: b reason: collision with root package name */ + public final Path.FillType f415b; + public final String c; + @Nullable + public final a d; + @Nullable + public final d e; + public final boolean f; + + public l(String str, boolean z2, Path.FillType fillType, @Nullable a aVar, @Nullable d dVar, boolean z3) { + this.c = str; + this.a = z2; + this.f415b = fillType; + this.d = aVar; + this.e = dVar; + this.f = z3; + } + + @Override // b.c.a.y.l.b + public c a(j jVar, b bVar) { + return new g(jVar, bVar, this); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("ShapeFill{color=, fillEnabled="); + R.append(this.a); + R.append('}'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/l/m.java b/app/src/main/java/b/c/a/y/l/m.java new file mode 100644 index 0000000000..42235d0a42 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/m.java @@ -0,0 +1,37 @@ +package b.c.a.y.l; + +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.w.b.d; +import b.c.a.y.m.b; +import b.d.b.a.a; +import java.util.Arrays; +import java.util.List; +/* compiled from: ShapeGroup */ +public class m implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final List f416b; + public final boolean c; + + public m(String str, List list, boolean z2) { + this.a = str; + this.f416b = list; + this.c = z2; + } + + @Override // b.c.a.y.l.b + public c a(j jVar, b bVar) { + return new d(jVar, bVar, this); + } + + public String toString() { + StringBuilder R = a.R("ShapeGroup{name='"); + R.append(this.a); + R.append("' Shapes: "); + R.append(Arrays.toString(this.f416b.toArray())); + R.append('}'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/l/n.java b/app/src/main/java/b/c/a/y/l/n.java new file mode 100644 index 0000000000..c5097f0c8a --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/n.java @@ -0,0 +1,36 @@ +package b.c.a.y.l; + +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.w.b.q; +import b.c.a.y.k.h; +import b.c.a.y.m.b; +import b.d.b.a.a; +/* compiled from: ShapePath */ +public class n implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f417b; + public final h c; + public final boolean d; + + public n(String str, int i, h hVar, boolean z2) { + this.a = str; + this.f417b = i; + this.c = hVar; + this.d = z2; + } + + @Override // b.c.a.y.l.b + public c a(j jVar, b bVar) { + return new q(jVar, bVar, this); + } + + public String toString() { + StringBuilder R = a.R("ShapePath{name="); + R.append(this.a); + R.append(", index="); + return a.z(R, this.f417b, '}'); + } +} diff --git a/app/src/main/java/b/c/a/y/l/o.java b/app/src/main/java/b/c/a/y/l/o.java new file mode 100644 index 0000000000..fc5c821148 --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/o.java @@ -0,0 +1,45 @@ +package b.c.a.y.l; + +import androidx.annotation.Nullable; +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.w.b.r; +import b.c.a.y.k.a; +import b.c.a.y.k.b; +import b.c.a.y.k.d; +import java.util.List; +/* compiled from: ShapeStroke */ +public class o implements b { + public final String a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final b f418b; + public final List c; + public final a d; + public final d e; + public final b f; + public final int g; + public final int h; + public final float i; + public final boolean j; + + /* JADX WARN: Incorrect types in method signature: (Ljava/lang/String;Lb/c/a/y/k/b;Ljava/util/List;Lb/c/a/y/k/a;Lb/c/a/y/k/d;Lb/c/a/y/k/b;Ljava/lang/Object;Ljava/lang/Object;FZ)V */ + public o(String str, @Nullable b bVar, List list, a aVar, d dVar, b bVar2, int i, int i2, float f, boolean z2) { + this.a = str; + this.f418b = bVar; + this.c = list; + this.d = aVar; + this.e = dVar; + this.f = bVar2; + this.g = i; + this.h = i2; + this.i = f; + this.j = z2; + } + + @Override // b.c.a.y.l.b + public c a(j jVar, b.c.a.y.m.b bVar) { + return new r(jVar, bVar, this); + } +} diff --git a/app/src/main/java/b/c/a/y/l/p.java b/app/src/main/java/b/c/a/y/l/p.java new file mode 100644 index 0000000000..ac42250ece --- /dev/null +++ b/app/src/main/java/b/c/a/y/l/p.java @@ -0,0 +1,43 @@ +package b.c.a.y.l; + +import b.c.a.j; +import b.c.a.w.b.c; +import b.c.a.w.b.s; +import b.c.a.y.k.b; +import b.d.b.a.a; +/* compiled from: ShapeTrimPath */ +public class p implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f419b; + public final b c; + public final b d; + public final b e; + public final boolean f; + + public p(String str, int i, b bVar, b bVar2, b bVar3, boolean z2) { + this.a = str; + this.f419b = i; + this.c = bVar; + this.d = bVar2; + this.e = bVar3; + this.f = z2; + } + + @Override // b.c.a.y.l.b + public c a(j jVar, b.c.a.y.m.b bVar) { + return new s(bVar, this); + } + + public String toString() { + StringBuilder R = a.R("Trim Path: {start: "); + R.append(this.c); + R.append(", end: "); + R.append(this.d); + R.append(", offset: "); + R.append(this.e); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/c/a/y/m/a.java b/app/src/main/java/b/c/a/y/m/a.java new file mode 100644 index 0000000000..0825c96214 --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/a.java @@ -0,0 +1,21 @@ +package b.c.a.y.m; + +import b.c.a.w.c.a; +/* compiled from: BaseLayer */ +public class a implements a.b { + public final /* synthetic */ b a; + + public a(b bVar) { + this.a = bVar; + } + + @Override // b.c.a.w.c.a.b + public void a() { + b bVar = this.a; + boolean z2 = bVar.q.j() == 1.0f; + if (z2 != bVar.w) { + bVar.w = z2; + bVar.n.invalidateSelf(); + } + } +} diff --git a/app/src/main/java/b/c/a/y/m/b.java b/app/src/main/java/b/c/a/y/m/b.java new file mode 100644 index 0000000000..d30dbe272d --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/b.java @@ -0,0 +1,516 @@ +package b.c.a.y.m; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.PointF; +import android.graphics.PorterDuff; +import android.graphics.PorterDuffXfermode; +import android.graphics.RectF; +import android.os.Build; +import androidx.annotation.CallSuper; +import androidx.annotation.FloatRange; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +import b.c.a.c0.d; +import b.c.a.j; +import b.c.a.s; +import b.c.a.w.b.e; +import b.c.a.w.c.a; +import b.c.a.w.c.c; +import b.c.a.w.c.o; +import b.c.a.y.g; +import b.c.a.y.k.l; +import b.c.a.y.l.f; +import b.c.a.y.l.k; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: BaseLayer */ +public abstract class b implements e, a.b, g { + public final Path a = new Path(); + + /* renamed from: b reason: collision with root package name */ + public final Matrix f420b = new Matrix(); + public final Paint c; + public final Paint d; + public final Paint e; + public final Paint f; + public final Paint g; + public final RectF h; + public final RectF i; + public final RectF j; + public final RectF k; + public final String l; + public final Matrix m; + public final j n; + public final e o; + @Nullable + public b.c.a.w.c.g p; + @Nullable + public c q; + @Nullable + public b r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public b f421s; + public List t; + public final List> u; + public final o v; + public boolean w; + + public b(j jVar, e eVar) { + boolean z2 = true; + this.c = new b.c.a.w.a(1); + this.d = new b.c.a.w.a(1, PorterDuff.Mode.DST_IN); + this.e = new b.c.a.w.a(1, PorterDuff.Mode.DST_OUT); + b.c.a.w.a aVar = new b.c.a.w.a(1); + this.f = aVar; + this.g = new b.c.a.w.a(PorterDuff.Mode.CLEAR); + this.h = new RectF(); + this.i = new RectF(); + this.j = new RectF(); + this.k = new RectF(); + this.m = new Matrix(); + this.u = new ArrayList(); + this.w = true; + this.n = jVar; + this.o = eVar; + this.l = b.d.b.a.a.H(new StringBuilder(), eVar.c, "#draw"); + if (eVar.u == 3) { + aVar.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OUT)); + } else { + aVar.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN)); + } + l lVar = eVar.i; + Objects.requireNonNull(lVar); + o oVar = new o(lVar); + this.v = oVar; + oVar.b(this); + List list = eVar.h; + if (list != null && !list.isEmpty()) { + b.c.a.w.c.g gVar = new b.c.a.w.c.g(eVar.h); + this.p = gVar; + for (a aVar2 : gVar.a) { + aVar2.a.add(this); + } + for (a aVar3 : this.p.f385b) { + e(aVar3); + aVar3.a.add(this); + } + } + if (!this.o.t.isEmpty()) { + c cVar = new c(this.o.t); + this.q = cVar; + cVar.f382b = true; + cVar.a.add(new a(this)); + p(this.q.e().floatValue() != 1.0f ? false : z2); + e(this.q); + return; + } + p(true); + } + + @Override // b.c.a.w.c.a.b + public void a() { + this.n.invalidateSelf(); + } + + @Override // b.c.a.w.b.c + public void b(List list, List list2) { + } + + @Override // b.c.a.y.g + public void c(b.c.a.y.f fVar, int i, List list, b.c.a.y.f fVar2) { + if (fVar.e(this.o.c, i)) { + if (!"__container".equals(this.o.c)) { + fVar2 = fVar2.a(this.o.c); + if (fVar.c(this.o.c, i)) { + list.add(fVar2.g(this)); + } + } + if (fVar.f(this.o.c, i)) { + n(fVar, fVar.d(this.o.c, i) + i, list, fVar2); + } + } + } + + @Override // b.c.a.w.b.e + @CallSuper + public void d(RectF rectF, Matrix matrix, boolean z2) { + this.h.set(0.0f, 0.0f, 0.0f, 0.0f); + h(); + this.m.set(matrix); + if (z2) { + List list = this.t; + if (list != null) { + for (int size = list.size() - 1; size >= 0; size--) { + this.m.preConcat(this.t.get(size).v.e()); + } + } else { + b bVar = this.f421s; + if (bVar != null) { + this.m.preConcat(bVar.v.e()); + } + } + } + this.m.preConcat(this.v.e()); + } + + public void e(@Nullable a aVar) { + if (aVar != null) { + this.u.add(aVar); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:110:0x03aa A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x012c */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x0134 */ + /* JADX WARNING: Removed duplicated region for block: B:75:0x024b */ + @Override // b.c.a.w.b.e + public void f(Canvas canvas, Matrix matrix, int i) { + boolean z2; + String str = this.l; + if (!this.w || this.o.v) { + b.c.a.c.a(str); + return; + } + h(); + this.f420b.reset(); + this.f420b.set(matrix); + int i2 = 1; + for (int size = this.t.size() - 1; size >= 0; size--) { + this.f420b.preConcat(this.t.get(size).v.e()); + } + b.c.a.c.a("Layer#parentMatrix"); + a aVar = this.v.j; + int intValue = (int) ((((((float) i) / 255.0f) * ((float) (aVar == null ? 100 : aVar.e().intValue()))) / 100.0f) * 255.0f); + float f = 0.0f; + if (l() || k()) { + boolean z3 = false; + d(this.h, this.f420b, false); + RectF rectF = this.h; + int i3 = 3; + if (l() && this.o.u != 3) { + this.j.set(0.0f, 0.0f, 0.0f, 0.0f); + this.r.d(this.j, matrix, true); + if (!rectF.intersect(this.j)) { + rectF.set(0.0f, 0.0f, 0.0f, 0.0f); + } + } + this.f420b.preConcat(this.v.e()); + RectF rectF2 = this.h; + Matrix matrix2 = this.f420b; + this.i.set(0.0f, 0.0f, 0.0f, 0.0f); + int i4 = 2; + if (k()) { + int size2 = this.p.c.size(); + int i5 = 0; + while (true) { + if (i5 < size2) { + f fVar = this.p.c.get(i5); + this.a.set(this.p.a.get(i5).e()); + this.a.transform(matrix2); + int h = b.c.a.y.b.h(fVar.a); + if (h != 0) { + if (h == 1) { + break; + } else if (h != i4) { + if (h == i3) { + break; + } + this.a.computeBounds(this.k, z3); + if (i5 != 0) { + this.i.set(this.k); + } else { + RectF rectF3 = this.i; + rectF3.set(Math.min(rectF3.left, this.k.left), Math.min(this.i.top, this.k.top), Math.max(this.i.right, this.k.right), Math.max(this.i.bottom, this.k.bottom)); + } + i5++; + z3 = false; + i3 = 3; + i4 = 2; + } + } + if (fVar.d) { + break; + } + this.a.computeBounds(this.k, z3); + if (i5 != 0) { + } + i5++; + z3 = false; + i3 = 3; + i4 = 2; + } else if (!rectF2.intersect(this.i)) { + f = 0.0f; + rectF2.set(0.0f, 0.0f, 0.0f, 0.0f); + } + } + f = 0.0f; + } + if (!this.h.intersect(f, f, (float) canvas.getWidth(), (float) canvas.getHeight())) { + this.h.set(f, f, f, f); + } + b.c.a.c.a("Layer#computeBounds"); + if (!this.h.isEmpty()) { + this.c.setAlpha(255); + b.c.a.b0.g.f(canvas, this.h, this.c, 31); + b.c.a.c.a("Layer#saveLayer"); + i(canvas); + j(canvas, this.f420b, intValue); + b.c.a.c.a("Layer#drawLayer"); + if (k()) { + Matrix matrix3 = this.f420b; + b.c.a.b0.g.f(canvas, this.h, this.d, 19); + if (Build.VERSION.SDK_INT < 28) { + i(canvas); + } + b.c.a.c.a("Layer#saveLayer"); + int i6 = 0; + while (i6 < this.p.c.size()) { + f fVar2 = this.p.c.get(i6); + a aVar2 = this.p.a.get(i6); + a aVar3 = this.p.f385b.get(i6); + int h2 = b.c.a.y.b.h(fVar2.a); + if (h2 != 0) { + if (h2 == i2) { + if (i6 == 0) { + this.c.setColor(ViewCompat.MEASURED_STATE_MASK); + this.c.setAlpha(255); + canvas.drawRect(this.h, this.c); + } + if (fVar2.d) { + b.c.a.b0.g.f(canvas, this.h, this.e, 31); + canvas.drawRect(this.h, this.c); + this.e.setAlpha((int) (((float) aVar3.e().intValue()) * 2.55f)); + this.a.set(aVar2.e()); + this.a.transform(matrix3); + canvas.drawPath(this.a, this.e); + canvas.restore(); + } else { + this.a.set(aVar2.e()); + this.a.transform(matrix3); + canvas.drawPath(this.a, this.e); + } + } else if (h2 != 2) { + if (h2 == 3) { + if (!this.p.a.isEmpty()) { + int i7 = 0; + while (true) { + if (i7 >= this.p.c.size()) { + z2 = true; + break; + } else if (this.p.c.get(i7).a != 4) { + break; + } else { + i7++; + } + } + if (!z2) { + this.c.setAlpha(255); + canvas.drawRect(this.h, this.c); + } + } + z2 = false; + if (!z2) { + } + } + } else if (fVar2.d) { + b.c.a.b0.g.f(canvas, this.h, this.d, 31); + canvas.drawRect(this.h, this.c); + this.e.setAlpha((int) (((float) aVar3.e().intValue()) * 2.55f)); + this.a.set(aVar2.e()); + this.a.transform(matrix3); + canvas.drawPath(this.a, this.e); + canvas.restore(); + } else { + b.c.a.b0.g.f(canvas, this.h, this.d, 31); + this.a.set(aVar2.e()); + this.a.transform(matrix3); + this.c.setAlpha((int) (((float) aVar3.e().intValue()) * 2.55f)); + canvas.drawPath(this.a, this.c); + canvas.restore(); + } + } else if (fVar2.d) { + b.c.a.b0.g.f(canvas, this.h, this.c, 31); + canvas.drawRect(this.h, this.c); + this.a.set(aVar2.e()); + this.a.transform(matrix3); + this.c.setAlpha((int) (((float) aVar3.e().intValue()) * 2.55f)); + canvas.drawPath(this.a, this.e); + canvas.restore(); + } else { + this.a.set(aVar2.e()); + this.a.transform(matrix3); + this.c.setAlpha((int) (((float) aVar3.e().intValue()) * 2.55f)); + canvas.drawPath(this.a, this.c); + } + i6++; + i2 = 1; + } + canvas.restore(); + b.c.a.c.a("Layer#restoreLayer"); + } + if (l()) { + b.c.a.b0.g.f(canvas, this.h, this.f, 19); + b.c.a.c.a("Layer#saveLayer"); + i(canvas); + this.r.f(canvas, matrix, intValue); + canvas.restore(); + b.c.a.c.a("Layer#restoreLayer"); + b.c.a.c.a("Layer#drawMatte"); + } + canvas.restore(); + b.c.a.c.a("Layer#restoreLayer"); + } + b.c.a.c.a(this.l); + m(0.0f); + return; + } + this.f420b.preConcat(this.v.e()); + j(canvas, this.f420b, intValue); + b.c.a.c.a("Layer#drawLayer"); + b.c.a.c.a(this.l); + m(0.0f); + } + + @Override // b.c.a.y.g + @CallSuper + public void g(T t, @Nullable b.c.a.c0.c cVar) { + this.v.c(t, cVar); + } + + @Override // b.c.a.w.b.c + public String getName() { + return this.o.c; + } + + public final void h() { + if (this.t == null) { + if (this.f421s == null) { + this.t = Collections.emptyList(); + return; + } + this.t = new ArrayList(); + for (b bVar = this.f421s; bVar != null; bVar = bVar.f421s) { + this.t.add(bVar); + } + } + } + + public final void i(Canvas canvas) { + RectF rectF = this.h; + canvas.drawRect(rectF.left - 1.0f, rectF.top - 1.0f, rectF.right + 1.0f, rectF.bottom + 1.0f, this.g); + b.c.a.c.a("Layer#clearLayer"); + } + + public abstract void j(Canvas canvas, Matrix matrix, int i); + + public boolean k() { + b.c.a.w.c.g gVar = this.p; + return gVar != null && !gVar.a.isEmpty(); + } + + public boolean l() { + return this.r != null; + } + + public final void m(float f) { + s sVar = this.n.k.a; + String str = this.o.c; + if (sVar.a) { + b.c.a.b0.e eVar = sVar.c.get(str); + if (eVar == null) { + eVar = new b.c.a.b0.e(); + sVar.c.put(str, eVar); + } + float f2 = eVar.a + f; + eVar.a = f2; + int i = eVar.f335b + 1; + eVar.f335b = i; + if (i == Integer.MAX_VALUE) { + eVar.a = f2 / 2.0f; + eVar.f335b = i / 2; + } + if (str.equals("__container")) { + for (s.a aVar : sVar.f365b) { + aVar.a(f); + } + } + } + } + + public void n(b.c.a.y.f fVar, int i, List list, b.c.a.y.f fVar2) { + } + + public void o(@FloatRange(from = 0.0d, to = 1.0d) float f) { + o oVar = this.v; + a aVar = oVar.j; + if (aVar != null) { + aVar.h(f); + } + a aVar2 = oVar.m; + if (aVar2 != null) { + aVar2.h(f); + } + a aVar3 = oVar.n; + if (aVar3 != null) { + aVar3.h(f); + } + a aVar4 = oVar.f; + if (aVar4 != null) { + aVar4.h(f); + } + a aVar5 = oVar.g; + if (aVar5 != null) { + aVar5.h(f); + } + a aVar6 = oVar.h; + if (aVar6 != null) { + aVar6.h(f); + } + a aVar7 = oVar.i; + if (aVar7 != null) { + aVar7.h(f); + } + c cVar = oVar.k; + if (cVar != null) { + cVar.h(f); + } + c cVar2 = oVar.l; + if (cVar2 != null) { + cVar2.h(f); + } + if (this.p != null) { + for (int i = 0; i < this.p.a.size(); i++) { + this.p.a.get(i).h(f); + } + } + float f2 = this.o.m; + if (f2 != 0.0f) { + f /= f2; + } + c cVar3 = this.q; + if (cVar3 != null) { + cVar3.h(f / f2); + } + b bVar = this.r; + if (bVar != null) { + bVar.o(bVar.o.m * f); + } + for (int i2 = 0; i2 < this.u.size(); i2++) { + this.u.get(i2).h(f); + } + } + + public final void p(boolean z2) { + if (z2 != this.w) { + this.w = z2; + this.n.invalidateSelf(); + } + } +} diff --git a/app/src/main/java/b/c/a/y/m/c.java b/app/src/main/java/b/c/a/y/m/c.java new file mode 100644 index 0000000000..6a845a542f --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/c.java @@ -0,0 +1,185 @@ +package b.c.a.y.m; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.RectF; +import androidx.annotation.FloatRange; +import androidx.annotation.Nullable; +import androidx.collection.LongSparseArray; +import b.c.a.b0.g; +import b.c.a.d; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.w.c.p; +import b.c.a.y.f; +import b.c.a.y.k.b; +import java.util.ArrayList; +import java.util.List; +/* compiled from: CompositionLayer */ +public class c extends b { + public final RectF A = new RectF(); + public Paint B = new Paint(); + @Nullable + + /* renamed from: x reason: collision with root package name */ + public a f422x; + + /* renamed from: y reason: collision with root package name */ + public final List f423y = new ArrayList(); + + /* renamed from: z reason: collision with root package name */ + public final RectF f424z = new RectF(); + + public c(j jVar, e eVar, List list, d dVar) { + super(jVar, eVar); + int i; + b bVar; + b bVar2; + b bVar3 = eVar.f429s; + if (bVar3 != null) { + a a = bVar3.a(); + this.f422x = a; + e(a); + this.f422x.a.add(this); + } else { + this.f422x = null; + } + LongSparseArray longSparseArray = new LongSparseArray(dVar.i.size()); + int size = list.size() - 1; + b bVar4 = null; + while (true) { + if (size < 0) { + break; + } + e eVar2 = list.get(size); + int ordinal = eVar2.e.ordinal(); + if (ordinal == 0) { + bVar2 = new c(jVar, eVar2, dVar.c.get(eVar2.g), dVar); + } else if (ordinal == 1) { + bVar2 = new h(jVar, eVar2); + } else if (ordinal == 2) { + bVar2 = new d(jVar, eVar2); + } else if (ordinal == 3) { + bVar2 = new f(jVar, eVar2); + } else if (ordinal == 4) { + bVar2 = new g(jVar, eVar2); + } else if (ordinal != 5) { + StringBuilder R = b.d.b.a.a.R("Unknown layer type "); + R.append(eVar2.e); + b.c.a.b0.c.b(R.toString()); + bVar2 = null; + } else { + bVar2 = new i(jVar, eVar2); + } + if (bVar2 != null) { + longSparseArray.put(bVar2.o.d, bVar2); + if (bVar4 != null) { + bVar4.r = bVar2; + bVar4 = null; + } else { + this.f423y.add(0, bVar2); + int h = b.c.a.y.b.h(eVar2.u); + if (h == 1 || h == 2) { + bVar4 = bVar2; + } + } + } + size--; + } + for (i = 0; i < longSparseArray.size(); i++) { + b bVar5 = (b) longSparseArray.get(longSparseArray.keyAt(i)); + if (!(bVar5 == null || (bVar = (b) longSparseArray.get(bVar5.o.f)) == null)) { + bVar5.f421s = bVar; + } + } + } + + @Override // b.c.a.y.m.b, b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + super.d(rectF, matrix, z2); + for (int size = this.f423y.size() - 1; size >= 0; size--) { + this.f424z.set(0.0f, 0.0f, 0.0f, 0.0f); + this.f423y.get(size).d(this.f424z, this.m, true); + rectF.union(this.f424z); + } + } + + @Override // b.c.a.y.m.b, b.c.a.y.g + public void g(T t, @Nullable b.c.a.c0.c cVar) { + this.v.c(t, cVar); + if (t != o.A) { + return; + } + if (cVar == null) { + a aVar = this.f422x; + if (aVar != null) { + aVar.i(null); + return; + } + return; + } + p pVar = new p(cVar, null); + this.f422x = pVar; + pVar.a.add(this); + e(this.f422x); + } + + @Override // b.c.a.y.m.b + public void j(Canvas canvas, Matrix matrix, int i) { + RectF rectF = this.A; + e eVar = this.o; + rectF.set(0.0f, 0.0f, (float) eVar.o, (float) eVar.p); + matrix.mapRect(this.A); + boolean z2 = this.n.A && this.f423y.size() > 1 && i != 255; + if (z2) { + this.B.setAlpha(i); + g.f(canvas, this.A, this.B, 31); + } else { + canvas.save(); + } + if (z2) { + i = 255; + } + for (int size = this.f423y.size() - 1; size >= 0; size--) { + if (!this.A.isEmpty() ? canvas.clipRect(this.A) : true) { + this.f423y.get(size).f(canvas, matrix, i); + } + } + canvas.restore(); + b.c.a.c.a("CompositionLayer#draw"); + } + + @Override // b.c.a.y.m.b + public void n(f fVar, int i, List list, f fVar2) { + for (int i2 = 0; i2 < this.f423y.size(); i2++) { + this.f423y.get(i2).c(fVar, i, list, fVar2); + } + } + + @Override // b.c.a.y.m.b + public void o(@FloatRange(from = 0.0d, to = 1.0d) float f) { + super.o(f); + if (this.f422x != null) { + f = ((this.f422x.e().floatValue() * this.o.f428b.m) - this.o.f428b.k) / (this.n.k.c() + 0.01f); + } + if (this.f422x == null) { + e eVar = this.o; + f -= eVar.n / eVar.f428b.c(); + } + float f2 = this.o.m; + if (f2 != 0.0f) { + f /= f2; + } + int size = this.f423y.size(); + while (true) { + size--; + if (size >= 0) { + this.f423y.get(size).o(f); + } else { + return; + } + } + } +} diff --git a/app/src/main/java/b/c/a/y/m/d.java b/app/src/main/java/b/c/a/y/m/d.java new file mode 100644 index 0000000000..79be386de6 --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/d.java @@ -0,0 +1,153 @@ +package b.c.a.y.m; + +import android.content.Context; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import android.text.TextUtils; +import android.util.Base64; +import android.view.View; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.c.a.b0.g; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.k; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.w.c.p; +import b.c.a.x.b; +import java.io.IOException; +/* compiled from: ImageLayer */ +public class d extends b { + @Nullable + public a A; + + /* renamed from: x reason: collision with root package name */ + public final Paint f425x = new b.c.a.w.a(3); + + /* renamed from: y reason: collision with root package name */ + public final Rect f426y = new Rect(); + + /* renamed from: z reason: collision with root package name */ + public final Rect f427z = new Rect(); + + public d(j jVar, e eVar) { + super(jVar, eVar); + } + + @Override // b.c.a.y.m.b, b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + super.d(rectF, matrix, z2); + Bitmap q = q(); + if (q != null) { + rectF.set(0.0f, 0.0f, g.c() * ((float) q.getWidth()), g.c() * ((float) q.getHeight())); + this.m.mapRect(rectF); + } + } + + @Override // b.c.a.y.m.b, b.c.a.y.g + public void g(T t, @Nullable c cVar) { + this.v.c(t, cVar); + if (t != o.C) { + return; + } + if (cVar == null) { + this.A = null; + } else { + this.A = new p(cVar, null); + } + } + + @Override // b.c.a.y.m.b + public void j(@NonNull Canvas canvas, Matrix matrix, int i) { + Bitmap q = q(); + if (q != null && !q.isRecycled()) { + float c = g.c(); + this.f425x.setAlpha(i); + a aVar = this.A; + if (aVar != null) { + this.f425x.setColorFilter(aVar.e()); + } + canvas.save(); + canvas.concat(matrix); + this.f426y.set(0, 0, q.getWidth(), q.getHeight()); + this.f427z.set(0, 0, (int) (((float) q.getWidth()) * c), (int) (((float) q.getHeight()) * c)); + canvas.drawBitmap(q, this.f426y, this.f427z, this.f425x); + canvas.restore(); + } + } + + @Nullable + public final Bitmap q() { + b bVar; + k kVar; + String str = this.o.g; + j jVar = this.n; + if (jVar.getCallback() == null) { + bVar = null; + } else { + b bVar2 = jVar.f342s; + if (bVar2 != null) { + Drawable.Callback callback = jVar.getCallback(); + Context context = (callback != null && (callback instanceof View)) ? ((View) callback).getContext() : null; + if (!((context == null && bVar2.f388b == null) || bVar2.f388b.equals(context))) { + jVar.f342s = null; + } + } + if (jVar.f342s == null) { + jVar.f342s = new b(jVar.getCallback(), jVar.t, jVar.u, jVar.k.d); + } + bVar = jVar.f342s; + } + if (bVar == null || (kVar = bVar.e.get(str)) == null) { + return null; + } + Bitmap bitmap = kVar.e; + if (bitmap != null) { + return bitmap; + } + b.c.a.b bVar3 = bVar.d; + if (bVar3 != null) { + Bitmap a = bVar3.a(kVar); + if (a == null) { + return a; + } + bVar.a(str, a); + return a; + } + String str2 = kVar.d; + BitmapFactory.Options options = new BitmapFactory.Options(); + options.inScaled = true; + options.inDensity = 160; + if (!str2.startsWith("data:") || str2.indexOf("base64,") <= 0) { + try { + if (!TextUtils.isEmpty(bVar.c)) { + Bitmap e = g.e(BitmapFactory.decodeStream(bVar.f388b.getAssets().open(bVar.c + str2), null, options), kVar.a, kVar.f357b); + bVar.a(str, e); + return e; + } + throw new IllegalStateException("You must set an images folder before loading an image. Set it with LottieComposition#setImagesFolder or LottieDrawable#setImagesFolder"); + } catch (IOException e2) { + b.c.a.b0.c.c("Unable to open asset.", e2); + return null; + } + } else { + try { + byte[] decode = Base64.decode(str2.substring(str2.indexOf(44) + 1), 0); + Bitmap decodeByteArray = BitmapFactory.decodeByteArray(decode, 0, decode.length, options); + bVar.a(str, decodeByteArray); + return decodeByteArray; + } catch (IllegalArgumentException e3) { + b.c.a.b0.c.c("data URL did not have correct base64 format.", e3); + return null; + } + } + } +} diff --git a/app/src/main/java/b/c/a/y/m/e.java b/app/src/main/java/b/c/a/y/m/e.java new file mode 100644 index 0000000000..42b6a9358d --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/e.java @@ -0,0 +1,126 @@ +package b.c.a.y.m; + +import androidx.annotation.Nullable; +import b.c.a.d; +import b.c.a.y.k.j; +import b.c.a.y.k.k; +import b.c.a.y.k.l; +import b.c.a.y.l.b; +import b.c.a.y.l.f; +import java.util.List; +import java.util.Locale; +/* compiled from: Layer */ +public class e { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final d f428b; + public final String c; + public final long d; + public final a e; + public final long f; + @Nullable + public final String g; + public final List h; + public final l i; + public final int j; + public final int k; + public final int l; + public final float m; + public final float n; + public final int o; + public final int p; + @Nullable + public final j q; + @Nullable + public final k r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public final b.c.a.y.k.b f429s; + public final List> t; + public final int u; + public final boolean v; + + /* compiled from: Layer */ + public enum a { + PRE_COMP, + SOLID, + IMAGE, + NULL, + SHAPE, + TEXT, + UNKNOWN + } + + /* JADX WARN: Incorrect types in method signature: (Ljava/util/List;Lb/c/a/d;Ljava/lang/String;JLb/c/a/y/m/e$a;JLjava/lang/String;Ljava/util/List;Lb/c/a/y/k/l;IIIFFIILb/c/a/y/k/j;Lb/c/a/y/k/k;Ljava/util/List;>;Ljava/lang/Object;Lb/c/a/y/k/b;Z)V */ + public e(List list, d dVar, String str, long j, a aVar, long j2, @Nullable String str2, List list2, l lVar, int i, int i2, int i3, float f, float f2, int i4, int i5, @Nullable j jVar, @Nullable k kVar, List list3, int i6, @Nullable b.c.a.y.k.b bVar, boolean z2) { + this.a = list; + this.f428b = dVar; + this.c = str; + this.d = j; + this.e = aVar; + this.f = j2; + this.g = str2; + this.h = list2; + this.i = lVar; + this.j = i; + this.k = i2; + this.l = i3; + this.m = f; + this.n = f2; + this.o = i4; + this.p = i5; + this.q = jVar; + this.r = kVar; + this.t = list3; + this.u = i6; + this.f429s = bVar; + this.v = z2; + } + + public String a(String str) { + StringBuilder R = b.d.b.a.a.R(str); + R.append(this.c); + R.append("\n"); + e e = this.f428b.e(this.f); + if (e != null) { + R.append("\t\tParents: "); + R.append(e.c); + e e2 = this.f428b.e(e.f); + while (e2 != null) { + R.append("->"); + R.append(e2.c); + e2 = this.f428b.e(e2.f); + } + R.append(str); + R.append("\n"); + } + if (!this.h.isEmpty()) { + R.append(str); + R.append("\tMasks: "); + R.append(this.h.size()); + R.append("\n"); + } + if (!(this.j == 0 || this.k == 0)) { + R.append(str); + R.append("\tBackground: "); + R.append(String.format(Locale.US, "%dx%d %X\n", Integer.valueOf(this.j), Integer.valueOf(this.k), Integer.valueOf(this.l))); + } + if (!this.a.isEmpty()) { + R.append(str); + R.append("\tShapes:\n"); + for (b bVar : this.a) { + R.append(str); + R.append("\t\t"); + R.append(bVar); + R.append("\n"); + } + } + return R.toString(); + } + + public String toString() { + return a(""); + } +} diff --git a/app/src/main/java/b/c/a/y/m/f.java b/app/src/main/java/b/c/a/y/m/f.java new file mode 100644 index 0000000000..910433b7a3 --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/f.java @@ -0,0 +1,22 @@ +package b.c.a.y.m; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.RectF; +import b.c.a.j; +/* compiled from: NullLayer */ +public class f extends b { + public f(j jVar, e eVar) { + super(jVar, eVar); + } + + @Override // b.c.a.y.m.b, b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + super.d(rectF, matrix, z2); + rectF.set(0.0f, 0.0f, 0.0f, 0.0f); + } + + @Override // b.c.a.y.m.b + public void j(Canvas canvas, Matrix matrix, int i) { + } +} diff --git a/app/src/main/java/b/c/a/y/m/g.java b/app/src/main/java/b/c/a/y/m/g.java new file mode 100644 index 0000000000..52c1813b53 --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/g.java @@ -0,0 +1,41 @@ +package b.c.a.y.m; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.RectF; +import androidx.annotation.NonNull; +import b.c.a.j; +import b.c.a.w.b.d; +import b.c.a.y.f; +import b.c.a.y.l.m; +import java.util.Collections; +import java.util.List; +/* compiled from: ShapeLayer */ +public class g extends b { + + /* renamed from: x reason: collision with root package name */ + public final d f430x; + + public g(j jVar, e eVar) { + super(jVar, eVar); + d dVar = new d(jVar, this, new m("__container", eVar.a, false)); + this.f430x = dVar; + dVar.b(Collections.emptyList(), Collections.emptyList()); + } + + @Override // b.c.a.y.m.b, b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + super.d(rectF, matrix, z2); + this.f430x.d(rectF, this.m, z2); + } + + @Override // b.c.a.y.m.b + public void j(@NonNull Canvas canvas, Matrix matrix, int i) { + this.f430x.f(canvas, matrix, i); + } + + @Override // b.c.a.y.m.b + public void n(f fVar, int i, List list, f fVar2) { + this.f430x.c(fVar, i, list, fVar2); + } +} diff --git a/app/src/main/java/b/c/a/y/m/h.java b/app/src/main/java/b/c/a/y/m/h.java new file mode 100644 index 0000000000..890caa7ce0 --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/h.java @@ -0,0 +1,113 @@ +package b.c.a.y.m; + +import android.graphics.Canvas; +import android.graphics.Color; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.RectF; +import androidx.annotation.Nullable; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.c.a; +import b.c.a.w.c.p; +/* compiled from: SolidLayer */ +public class h extends b { + public final Path A; + public final e B; + @Nullable + public a C; + + /* renamed from: x reason: collision with root package name */ + public final RectF f431x = new RectF(); + + /* renamed from: y reason: collision with root package name */ + public final Paint f432y; + + /* renamed from: z reason: collision with root package name */ + public final float[] f433z; + + public h(j jVar, e eVar) { + super(jVar, eVar); + b.c.a.w.a aVar = new b.c.a.w.a(); + this.f432y = aVar; + this.f433z = new float[8]; + this.A = new Path(); + this.B = eVar; + aVar.setAlpha(0); + aVar.setStyle(Paint.Style.FILL); + aVar.setColor(eVar.l); + } + + @Override // b.c.a.y.m.b, b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + super.d(rectF, matrix, z2); + RectF rectF2 = this.f431x; + e eVar = this.B; + rectF2.set(0.0f, 0.0f, (float) eVar.j, (float) eVar.k); + this.m.mapRect(this.f431x); + rectF.set(this.f431x); + } + + @Override // b.c.a.y.m.b, b.c.a.y.g + public void g(T t, @Nullable c cVar) { + this.v.c(t, cVar); + if (t != o.C) { + return; + } + if (cVar == null) { + this.C = null; + } else { + this.C = new p(cVar, null); + } + } + + @Override // b.c.a.y.m.b + public void j(Canvas canvas, Matrix matrix, int i) { + int alpha = Color.alpha(this.B.l); + if (alpha != 0) { + a aVar = this.v.j; + int intValue = (int) ((((((float) alpha) / 255.0f) * ((float) (aVar == null ? 100 : aVar.e().intValue()))) / 100.0f) * (((float) i) / 255.0f) * 255.0f); + this.f432y.setAlpha(intValue); + a aVar2 = this.C; + if (aVar2 != null) { + this.f432y.setColorFilter(aVar2.e()); + } + if (intValue > 0) { + float[] fArr = this.f433z; + fArr[0] = 0.0f; + fArr[1] = 0.0f; + e eVar = this.B; + int i2 = eVar.j; + fArr[2] = (float) i2; + fArr[3] = 0.0f; + fArr[4] = (float) i2; + int i3 = eVar.k; + fArr[5] = (float) i3; + fArr[6] = 0.0f; + fArr[7] = (float) i3; + matrix.mapPoints(fArr); + this.A.reset(); + Path path = this.A; + float[] fArr2 = this.f433z; + path.moveTo(fArr2[0], fArr2[1]); + Path path2 = this.A; + float[] fArr3 = this.f433z; + path2.lineTo(fArr3[2], fArr3[3]); + Path path3 = this.A; + float[] fArr4 = this.f433z; + path3.lineTo(fArr4[4], fArr4[5]); + Path path4 = this.A; + float[] fArr5 = this.f433z; + path4.lineTo(fArr5[6], fArr5[7]); + Path path5 = this.A; + float[] fArr6 = this.f433z; + path5.lineTo(fArr6[0], fArr6[1]); + this.A.close(); + canvas.drawPath(this.A, this.f432y); + } + } + } +} diff --git a/app/src/main/java/b/c/a/y/m/i.java b/app/src/main/java/b/c/a/y/m/i.java new file mode 100644 index 0000000000..a10324f912 --- /dev/null +++ b/app/src/main/java/b/c/a/y/m/i.java @@ -0,0 +1,507 @@ +package b.c.a.y.m; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.RectF; +import android.graphics.Typeface; +import androidx.annotation.Nullable; +import androidx.collection.LongSparseArray; +import b.c.a.b0.g; +import b.c.a.c0.c; +import b.c.a.j; +import b.c.a.o; +import b.c.a.w.b.d; +import b.c.a.w.c.n; +import b.c.a.w.c.p; +import b.c.a.y.e; +import b.c.a.y.k.k; +import b.c.a.y.l.m; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: TextLayer */ +public class i extends b { + public final Paint A = new a(this, 1); + public final Paint B = new b(this, 1); + public final Map> C = new HashMap(); + public final LongSparseArray D = new LongSparseArray<>(); + public final n E; + public final j F; + public final b.c.a.d G; + @Nullable + public b.c.a.w.c.a H; + @Nullable + public b.c.a.w.c.a I; + @Nullable + public b.c.a.w.c.a J; + @Nullable + public b.c.a.w.c.a K; + @Nullable + public b.c.a.w.c.a L; + @Nullable + public b.c.a.w.c.a M; + @Nullable + public b.c.a.w.c.a N; + @Nullable + public b.c.a.w.c.a O; + @Nullable + public b.c.a.w.c.a P; + + /* renamed from: x reason: collision with root package name */ + public final StringBuilder f434x = new StringBuilder(2); + + /* renamed from: y reason: collision with root package name */ + public final RectF f435y = new RectF(); + + /* renamed from: z reason: collision with root package name */ + public final Matrix f436z = new Matrix(); + + /* compiled from: TextLayer */ + public class a extends Paint { + public a(i iVar, int i) { + super(i); + setStyle(Paint.Style.FILL); + } + } + + /* compiled from: TextLayer */ + public class b extends Paint { + public b(i iVar, int i) { + super(i); + setStyle(Paint.Style.STROKE); + } + } + + public i(j jVar, e eVar) { + super(jVar, eVar); + b.c.a.y.k.b bVar; + b.c.a.y.k.b bVar2; + b.c.a.y.k.a aVar; + b.c.a.y.k.a aVar2; + this.F = jVar; + this.G = eVar.f428b; + n nVar = new n(eVar.q.a); + this.E = nVar; + nVar.a.add(this); + e(nVar); + k kVar = eVar.r; + if (!(kVar == null || (aVar2 = kVar.a) == null)) { + b.c.a.w.c.a a2 = aVar2.a(); + this.H = a2; + a2.a.add(this); + e(this.H); + } + if (!(kVar == null || (aVar = kVar.f403b) == null)) { + b.c.a.w.c.a a3 = aVar.a(); + this.J = a3; + a3.a.add(this); + e(this.J); + } + if (!(kVar == null || (bVar2 = kVar.c) == null)) { + b.c.a.w.c.a a4 = bVar2.a(); + this.L = a4; + a4.a.add(this); + e(this.L); + } + if (kVar != null && (bVar = kVar.d) != null) { + b.c.a.w.c.a a5 = bVar.a(); + this.N = a5; + a5.a.add(this); + e(this.N); + } + } + + @Override // b.c.a.y.m.b, b.c.a.w.b.e + public void d(RectF rectF, Matrix matrix, boolean z2) { + super.d(rectF, matrix, z2); + rectF.set(0.0f, 0.0f, (float) this.G.j.width(), (float) this.G.j.height()); + } + + @Override // b.c.a.y.m.b, b.c.a.y.g + public void g(T t, @Nullable c cVar) { + this.v.c(t, cVar); + if (t == o.a) { + b.c.a.w.c.a aVar = this.I; + if (aVar != null) { + this.u.remove(aVar); + } + if (cVar == null) { + this.I = null; + return; + } + p pVar = new p(cVar, null); + this.I = pVar; + pVar.a.add(this); + e(this.I); + } else if (t == o.f358b) { + b.c.a.w.c.a aVar2 = this.K; + if (aVar2 != null) { + this.u.remove(aVar2); + } + if (cVar == null) { + this.K = null; + return; + } + p pVar2 = new p(cVar, null); + this.K = pVar2; + pVar2.a.add(this); + e(this.K); + } else if (t == o.o) { + b.c.a.w.c.a aVar3 = this.M; + if (aVar3 != null) { + this.u.remove(aVar3); + } + if (cVar == null) { + this.M = null; + return; + } + p pVar3 = new p(cVar, null); + this.M = pVar3; + pVar3.a.add(this); + e(this.M); + } else if (t == o.p) { + b.c.a.w.c.a aVar4 = this.O; + if (aVar4 != null) { + this.u.remove(aVar4); + } + if (cVar == null) { + this.O = null; + return; + } + p pVar4 = new p(cVar, null); + this.O = pVar4; + pVar4.a.add(this); + e(this.O); + } else if (t == o.B) { + b.c.a.w.c.a aVar5 = this.P; + if (aVar5 != null) { + this.u.remove(aVar5); + } + if (cVar == null) { + this.P = null; + return; + } + p pVar5 = new p(cVar, null); + this.P = pVar5; + pVar5.a.add(this); + e(this.P); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r8v13, resolved type: java.util.Map */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 2 */ + @Override // b.c.a.y.m.b + public void j(Canvas canvas, Matrix matrix, int i) { + b.c.a.x.a aVar; + String str; + float f; + List list; + int i2; + String str2; + List list2; + float f2; + String str3; + int i3; + float f3; + canvas.save(); + if (!(this.F.k.g.size() > 0)) { + canvas.setMatrix(matrix); + } + b.c.a.y.c e = this.E.e(); + b.c.a.y.d dVar = this.G.e.get(e.f395b); + if (dVar == null) { + canvas.restore(); + return; + } + b.c.a.w.c.a aVar2 = this.I; + if (aVar2 != null) { + this.A.setColor(aVar2.e().intValue()); + } else { + b.c.a.w.c.a aVar3 = this.H; + if (aVar3 != null) { + this.A.setColor(aVar3.e().intValue()); + } else { + this.A.setColor(e.h); + } + } + b.c.a.w.c.a aVar4 = this.K; + if (aVar4 != null) { + this.B.setColor(aVar4.e().intValue()); + } else { + b.c.a.w.c.a aVar5 = this.J; + if (aVar5 != null) { + this.B.setColor(aVar5.e().intValue()); + } else { + this.B.setColor(e.i); + } + } + b.c.a.w.c.a aVar6 = this.v.j; + int intValue = ((aVar6 == null ? 100 : aVar6.e().intValue()) * 255) / 100; + this.A.setAlpha(intValue); + this.B.setAlpha(intValue); + b.c.a.w.c.a aVar7 = this.M; + if (aVar7 != null) { + this.B.setStrokeWidth(aVar7.e().floatValue()); + } else { + b.c.a.w.c.a aVar8 = this.L; + if (aVar8 != null) { + this.B.setStrokeWidth(aVar8.e().floatValue()); + } else { + this.B.setStrokeWidth(g.c() * e.j * g.d(matrix)); + } + } + if (this.F.k.g.size() > 0) { + b.c.a.w.c.a aVar9 = this.P; + float floatValue = (aVar9 != null ? aVar9.e().floatValue() : e.c) / 100.0f; + float d = g.d(matrix); + String str4 = e.a; + float c = g.c() * e.f; + List t = t(str4); + int size = t.size(); + int i4 = 0; + while (i4 < size) { + String str5 = t.get(i4); + float f4 = 0.0f; + int i5 = 0; + while (i5 < str5.length()) { + e eVar = this.G.g.get(e.a(str5.charAt(i5), dVar.a, dVar.c)); + if (eVar == null) { + f3 = c; + i3 = i4; + str3 = str5; + } else { + str3 = str5; + double d2 = eVar.c; + f3 = c; + i3 = i4; + f4 = (float) ((d2 * ((double) floatValue) * ((double) g.c()) * ((double) d)) + ((double) f4)); + } + i5++; + str5 = str3; + c = f3; + i4 = i3; + } + String str6 = str5; + canvas.save(); + q(e.d, canvas, f4); + canvas.translate(0.0f, (((float) i4) * c) - ((((float) (size - 1)) * c) / 2.0f)); + int i6 = 0; + while (i6 < str6.length()) { + String str7 = str6; + e eVar2 = this.G.g.get(e.a(str7.charAt(i6), dVar.a, dVar.c)); + if (eVar2 == null) { + list = t; + i2 = size; + str2 = str7; + } else { + if (this.C.containsKey(eVar2)) { + list2 = this.C.get(eVar2); + list = t; + i2 = size; + str2 = str7; + } else { + List list3 = eVar2.a; + int size2 = list3.size(); + ArrayList arrayList = new ArrayList(size2); + list = t; + int i7 = 0; + while (i7 < size2) { + arrayList.add(new d(this.F, this, list3.get(i7))); + i7++; + str7 = str7; + size = size; + list3 = list3; + } + i2 = size; + str2 = str7; + this.C.put(eVar2, arrayList); + list2 = arrayList; + } + int i8 = 0; + while (i8 < list2.size()) { + Path path = list2.get(i8).getPath(); + path.computeBounds(this.f435y, false); + this.f436z.set(matrix); + this.f436z.preTranslate(0.0f, (-e.g) * g.c()); + this.f436z.preScale(floatValue, floatValue); + path.transform(this.f436z); + if (e.k) { + s(path, this.A, canvas); + s(path, this.B, canvas); + } else { + s(path, this.B, canvas); + s(path, this.A, canvas); + } + i8++; + list2 = list2; + } + float c2 = g.c() * ((float) eVar2.c) * floatValue * d; + float f5 = ((float) e.e) / 10.0f; + b.c.a.w.c.a aVar10 = this.O; + if (aVar10 != null) { + f2 = aVar10.e().floatValue(); + } else { + b.c.a.w.c.a aVar11 = this.N; + if (aVar11 != null) { + f2 = aVar11.e().floatValue(); + } + canvas.translate((f5 * d) + c2, 0.0f); + } + f5 += f2; + canvas.translate((f5 * d) + c2, 0.0f); + } + i6++; + t = list; + str6 = str2; + size = i2; + } + canvas.restore(); + i4++; + c = c; + } + } else { + float d3 = g.d(matrix); + j jVar = this.F; + ?? r6 = dVar.a; + ?? r3 = dVar.c; + Typeface typeface = null; + if (jVar.getCallback() == null) { + aVar = null; + } else { + if (jVar.v == null) { + jVar.v = new b.c.a.x.a(jVar.getCallback()); + } + aVar = jVar.v; + } + if (aVar != null) { + b.c.a.y.j jVar2 = aVar.a; + jVar2.a = r6; + jVar2.f401b = r3; + typeface = aVar.f387b.get(jVar2); + if (typeface == null) { + Typeface typeface2 = aVar.c.get(r6); + if (typeface2 == null) { + StringBuilder V = b.d.b.a.a.V("fonts/", r6); + V.append(aVar.e); + typeface2 = Typeface.createFromAsset(aVar.d, V.toString()); + aVar.c.put(r6, typeface2); + } + boolean contains = r3.contains("Italic"); + boolean contains2 = r3.contains("Bold"); + int i9 = (!contains || !contains2) ? contains ? 2 : contains2 ? 1 : 0 : 3; + typeface = typeface2.getStyle() == i9 ? typeface2 : Typeface.create(typeface2, i9); + aVar.f387b.put(aVar.a, typeface); + } + } + if (typeface != null) { + String str8 = e.a; + Objects.requireNonNull(this.F); + this.A.setTypeface(typeface); + b.c.a.w.c.a aVar12 = this.P; + this.A.setTextSize(g.c() * (aVar12 != null ? aVar12.e().floatValue() : e.c)); + this.B.setTypeface(this.A.getTypeface()); + this.B.setTextSize(this.A.getTextSize()); + float c3 = g.c() * e.f; + List t2 = t(str8); + int size3 = t2.size(); + for (int i10 = 0; i10 < size3; i10++) { + String str9 = t2.get(i10); + q(e.d, canvas, this.B.measureText(str9)); + canvas.translate(0.0f, (((float) i10) * c3) - ((((float) (size3 - 1)) * c3) / 2.0f)); + int i11 = 0; + while (i11 < str9.length()) { + int codePointAt = str9.codePointAt(i11); + int charCount = Character.charCount(codePointAt) + i11; + while (charCount < str9.length()) { + int codePointAt2 = str9.codePointAt(charCount); + if (!(Character.getType(codePointAt2) == 16 || Character.getType(codePointAt2) == 27 || Character.getType(codePointAt2) == 6 || Character.getType(codePointAt2) == 28 || Character.getType(codePointAt2) == 19)) { + break; + } + charCount += Character.charCount(codePointAt2); + codePointAt = (codePointAt * 31) + codePointAt2; + } + long j = (long) codePointAt; + if (this.D.containsKey(j)) { + str = this.D.get(j); + } else { + this.f434x.setLength(0); + int i12 = i11; + while (i12 < charCount) { + int codePointAt3 = str9.codePointAt(i12); + this.f434x.appendCodePoint(codePointAt3); + i12 += Character.charCount(codePointAt3); + } + String sb = this.f434x.toString(); + this.D.put(j, sb); + str = sb; + } + i11 += str.length(); + if (e.k) { + r(str, this.A, canvas); + r(str, this.B, canvas); + } else { + r(str, this.B, canvas); + r(str, this.A, canvas); + } + float measureText = this.A.measureText(str, 0, 1); + float f6 = ((float) e.e) / 10.0f; + b.c.a.w.c.a aVar13 = this.O; + if (aVar13 != null) { + f = aVar13.e().floatValue(); + } else { + b.c.a.w.c.a aVar14 = this.N; + if (aVar14 != null) { + f = aVar14.e().floatValue(); + } else { + canvas.translate((f6 * d3) + measureText, 0.0f); + c3 = c3; + size3 = size3; + } + } + f6 += f; + canvas.translate((f6 * d3) + measureText, 0.0f); + c3 = c3; + size3 = size3; + } + canvas.setMatrix(matrix); + } + } + } + canvas.restore(); + } + + public final void q(int i, Canvas canvas, float f) { + int h = b.c.a.y.b.h(i); + if (h == 1) { + canvas.translate(-f, 0.0f); + } else if (h == 2) { + canvas.translate((-f) / 2.0f, 0.0f); + } + } + + public final void r(String str, Paint paint, Canvas canvas) { + if (paint.getColor() != 0) { + if (paint.getStyle() != Paint.Style.STROKE || paint.getStrokeWidth() != 0.0f) { + canvas.drawText(str, 0, str.length(), 0.0f, 0.0f, paint); + } + } + } + + public final void s(Path path, Paint paint, Canvas canvas) { + if (paint.getColor() != 0) { + if (paint.getStyle() != Paint.Style.STROKE || paint.getStrokeWidth() != 0.0f) { + canvas.drawPath(path, paint); + } + } + } + + public final List t(String str) { + return Arrays.asList(str.replaceAll("\r\n", "\r").replaceAll("\n", "\r").split("\r")); + } +} diff --git a/app/src/main/java/b/c/a/z/a.java b/app/src/main/java/b/c/a/z/a.java new file mode 100644 index 0000000000..9d81102cea --- /dev/null +++ b/app/src/main/java/b/c/a/z/a.java @@ -0,0 +1,17 @@ +package b.c.a.z; +/* compiled from: FileExtension */ +public enum a { + JSON(".json"), + ZIP(".zip"); + + public final String extension; + + public a(String str) { + this.extension = str; + } + + @Override // java.lang.Enum, java.lang.Object + public String toString() { + return this.extension; + } +} diff --git a/app/src/main/java/b/c/a/z/b.java b/app/src/main/java/b/c/a/z/b.java new file mode 100644 index 0000000000..db65b4276a --- /dev/null +++ b/app/src/main/java/b/c/a/z/b.java @@ -0,0 +1,68 @@ +package b.c.a.z; + +import android.content.Context; +import b.d.b.a.a; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; +/* compiled from: NetworkCache */ +public class b { + public final Context a; + + public b(Context context) { + this.a = context.getApplicationContext(); + } + + public static String a(String str, a aVar, boolean z2) { + String str2; + StringBuilder R = a.R("lottie_cache_"); + R.append(str.replaceAll("\\W+", "")); + if (z2) { + Objects.requireNonNull(aVar); + str2 = ".temp" + aVar.extension; + } else { + str2 = aVar.extension; + } + R.append(str2); + return R.toString(); + } + + public final File b() { + File file = new File(this.a.getCacheDir(), "lottie_network_cache"); + if (file.isFile()) { + file.delete(); + } + if (!file.exists()) { + file.mkdirs(); + } + return file; + } + + /* JADX INFO: finally extract failed */ + public File c(String str, InputStream inputStream, a aVar) throws IOException { + File file = new File(b(), a(str, aVar, true)); + try { + FileOutputStream fileOutputStream = new FileOutputStream(file); + try { + byte[] bArr = new byte[1024]; + while (true) { + int read = inputStream.read(bArr); + if (read != -1) { + fileOutputStream.write(bArr, 0, read); + } else { + fileOutputStream.flush(); + fileOutputStream.close(); + return file; + } + } + } catch (Throwable th) { + fileOutputStream.close(); + throw th; + } + } finally { + inputStream.close(); + } + } +} diff --git a/app/src/main/java/b/c/a/z/c.java b/app/src/main/java/b/c/a/z/c.java new file mode 100644 index 0000000000..52e3eb55ff --- /dev/null +++ b/app/src/main/java/b/c/a/z/c.java @@ -0,0 +1,135 @@ +package b.c.a.z; + +import android.content.Context; +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import androidx.browser.trusted.sharing.ShareTarget; +import b.c.a.d; +import b.c.a.e; +import b.c.a.p; +import b.d.b.a.a; +import com.discord.restapi.RestAPIBuilder; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.zip.ZipInputStream; +/* compiled from: NetworkFetcher */ +public class c { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final String f437b; + @Nullable + public final b c; + + public c(Context context, String str, @Nullable String str2) { + Context applicationContext = context.getApplicationContext(); + this.a = applicationContext; + this.f437b = str; + if (str2 == null) { + this.c = null; + } else { + this.c = new b(applicationContext); + } + } + + @WorkerThread + public final p a() throws IOException { + StringBuilder R = a.R("Fetching "); + R.append(this.f437b); + b.c.a.b0.c.a(R.toString()); + HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(this.f437b).openConnection(); + httpURLConnection.setRequestMethod(ShareTarget.METHOD_GET); + try { + httpURLConnection.connect(); + if (httpURLConnection.getErrorStream() == null) { + if (httpURLConnection.getResponseCode() == 200) { + p c = c(httpURLConnection); + StringBuilder sb = new StringBuilder(); + sb.append("Completed fetch from network. Success: "); + sb.append(c.a != null); + b.c.a.b0.c.a(sb.toString()); + httpURLConnection.disconnect(); + return c; + } + } + String b2 = b(httpURLConnection); + return new p<>(new IllegalArgumentException("Unable to fetch " + this.f437b + ". Failed with " + httpURLConnection.getResponseCode() + "\n" + b2)); + } catch (Exception e) { + return new p<>(e); + } finally { + httpURLConnection.disconnect(); + } + } + + public final String b(HttpURLConnection httpURLConnection) throws IOException { + httpURLConnection.getResponseCode(); + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getErrorStream())); + StringBuilder sb = new StringBuilder(); + while (true) { + try { + String readLine = bufferedReader.readLine(); + if (readLine != null) { + sb.append(readLine); + sb.append('\n'); + } else { + try { + break; + } catch (Exception unused) { + } + } + } catch (Exception e) { + throw e; + } catch (Throwable th) { + try { + bufferedReader.close(); + } catch (Exception unused2) { + } + throw th; + } + } + bufferedReader.close(); + return sb.toString(); + } + + @Nullable + public final p c(HttpURLConnection httpURLConnection) throws IOException { + p pVar; + a aVar; + String contentType = httpURLConnection.getContentType(); + if (contentType == null) { + contentType = RestAPIBuilder.CONTENT_TYPE_JSON; + } + if (contentType.contains("application/zip")) { + b.c.a.b0.c.a("Handling zip response."); + aVar = a.ZIP; + b bVar = this.c; + pVar = bVar == null ? e.d(new ZipInputStream(httpURLConnection.getInputStream()), null) : e.d(new ZipInputStream(new FileInputStream(bVar.c(this.f437b, httpURLConnection.getInputStream(), aVar))), this.f437b); + } else { + b.c.a.b0.c.a("Received json response."); + aVar = a.JSON; + b bVar2 = this.c; + pVar = bVar2 == null ? e.b(httpURLConnection.getInputStream(), null) : e.b(new FileInputStream(new File(bVar2.c(this.f437b, httpURLConnection.getInputStream(), aVar).getAbsolutePath())), this.f437b); + } + b bVar3 = this.c; + if (!(bVar3 == null || pVar.a == null)) { + File file = new File(bVar3.b(), b.a(this.f437b, aVar, true)); + File file2 = new File(file.getAbsolutePath().replace(".temp", "")); + boolean renameTo = file.renameTo(file2); + b.c.a.b0.c.a("Copying temp file to real file (" + file2 + ")"); + if (!renameTo) { + StringBuilder R = a.R("Unable to rename cache file "); + R.append(file.getAbsolutePath()); + R.append(" to "); + R.append(file2.getAbsolutePath()); + R.append("."); + b.c.a.b0.c.b(R.toString()); + } + } + return pVar; + } +} diff --git a/app/src/main/java/b/d/a/a/a.java b/app/src/main/java/b/d/a/a/a.java new file mode 100644 index 0000000000..3ce83d13b4 --- /dev/null +++ b/app/src/main/java/b/d/a/a/a.java @@ -0,0 +1,525 @@ +package b.d.a.a; + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; +import android.content.pm.ServiceInfo; +import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; +import android.text.TextUtils; +import androidx.annotation.AnyThread; +import androidx.annotation.Nullable; +import b.i.a.f.h.n.d; +import b.i.a.f.h.n.k; +import b.i.a.f.h.n.l; +import b.i.a.f.h.n.m; +import com.android.billingclient.api.BillingClient; +import com.android.billingclient.api.BillingFlowParams; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.ProxyBillingActivity; +import com.android.billingclient.api.SkuDetails; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.concurrent.CancellationException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public class a extends BillingClient { + public volatile int a; + + /* renamed from: b reason: collision with root package name */ + public final String f438b; + public final Handler c; + public volatile s d; + public Context e; + public volatile d f; + public volatile n g; + public boolean h; + public int i; + public boolean j; + public boolean k; + public boolean l; + public boolean m; + public boolean n; + public boolean o; + public boolean p; + public ExecutorService q; + + @AnyThread + public a(@Nullable String str, boolean z2, Context context, g gVar) { + String str2; + try { + str2 = (String) Class.forName("b.d.a.b.a").getField("VERSION_NAME").get(null); + } catch (Exception unused) { + str2 = "4.0.0"; + } + this.a = 0; + this.c = new Handler(Looper.getMainLooper()); + this.i = 0; + this.f438b = str2; + Context applicationContext = context.getApplicationContext(); + this.e = applicationContext; + this.d = new s(applicationContext, gVar); + this.p = z2; + } + + @Override // com.android.billingclient.api.BillingClient + public final void a(d dVar, e eVar) { + if (!d()) { + eVar.onConsumeResponse(p.j, dVar.a); + } else if (l(new t(this, dVar, eVar), 30000, new x(eVar, dVar), i()) == null) { + eVar.onConsumeResponse(k(), dVar.a); + } + } + + @Override // com.android.billingclient.api.BillingClient + public final void b() { + int i = 3; + try { + this.d.a(); + if (this.g != null) { + n nVar = this.g; + synchronized (nVar.j) { + nVar.l = null; + nVar.k = true; + } + } + if (!(this.g == null || this.f == null)) { + b.i.a.f.h.n.a.e("BillingClient", "Unbinding from service."); + this.e.unbindService(this.g); + this.g = null; + } + this.f = null; + ExecutorService executorService = this.q; + if (executorService != null) { + executorService.shutdownNow(); + this.q = null; + } + } catch (Exception e) { + String valueOf = String.valueOf(e); + StringBuilder sb = new StringBuilder(valueOf.length() + 48); + sb.append("There was an exception while ending connection: "); + sb.append(valueOf); + b.i.a.f.h.n.a.f("BillingClient", sb.toString()); + } finally { + this.a = i; + } + } + + @Override // com.android.billingclient.api.BillingClient + public final int c() { + return this.a; + } + + @Override // com.android.billingclient.api.BillingClient + public final boolean d() { + return (this.a != 2 || this.f == null || this.g == null) ? false : true; + } + + /* JADX WARNING: Code restructure failed: missing block: B:147:0x03d8, code lost: + r1 = r19; + */ + /* JADX WARNING: Code restructure failed: missing block: B:151:0x03df, code lost: + r1 = r19; + */ + /* JADX WARNING: Failed to process nested try/catch */ + /* JADX WARNING: Removed duplicated region for block: B:152:? A[ExcHandler: Exception (unused java.lang.Exception), SYNTHETIC, Splitter:B:134:0x0387] */ + @Override // com.android.billingclient.api.BillingClient + public final BillingResult e(Activity activity, BillingFlowParams billingFlowParams) { + String str; + String str2; + String str3; + String str4; + Future future; + String str5; + String str6; + String str7; + boolean z2; + String str8; + String str9; + if (!d()) { + BillingResult billingResult = p.j; + j(billingResult); + return billingResult; + } + Objects.requireNonNull(billingFlowParams); + ArrayList arrayList = new ArrayList(); + arrayList.addAll(billingFlowParams.f); + SkuDetails skuDetails = (SkuDetails) arrayList.get(0); + String e = skuDetails.e(); + String str10 = "BillingClient"; + if (e.equals("subs") && !this.h) { + b.i.a.f.h.n.a.f(str10, "Current client doesn't support subscriptions."); + BillingResult billingResult2 = p.l; + j(billingResult2); + return billingResult2; + } else if (((!billingFlowParams.g && billingFlowParams.f1986b == null && billingFlowParams.d == null && billingFlowParams.e == 0 && !billingFlowParams.a) ? false : true) && !this.j) { + b.i.a.f.h.n.a.f(str10, "Current client doesn't support extra params for buy intent."); + BillingResult billingResult3 = p.f; + j(billingResult3); + return billingResult3; + } else if (arrayList.size() <= 1 || this.o) { + String str11 = ""; + int i = 0; + String str12 = str11; + while (i < arrayList.size()) { + String valueOf = String.valueOf(str12); + String valueOf2 = String.valueOf(arrayList.get(i)); + String H = b.d.b.a.a.H(new StringBuilder(valueOf.length() + valueOf2.length()), valueOf, valueOf2); + if (i < arrayList.size() - 1) { + H = String.valueOf(H).concat(", "); + } + str12 = H; + i++; + str11 = str11; + } + StringBuilder sb = new StringBuilder(String.valueOf(str12).length() + 41 + e.length()); + sb.append("Constructing buy intent for "); + sb.append(str12); + sb.append(", item type: "); + sb.append(e); + b.i.a.f.h.n.a.e(str10, sb.toString()); + if (this.j) { + boolean z3 = this.k; + boolean z4 = this.p; + String str13 = this.f438b; + Bundle bundle = new Bundle(); + bundle.putString("playBillingLibraryVersion", str13); + int i2 = billingFlowParams.e; + if (i2 != 0) { + bundle.putInt("prorationMode", i2); + } + if (!TextUtils.isEmpty(billingFlowParams.f1986b)) { + bundle.putString("accountId", billingFlowParams.f1986b); + } + if (!TextUtils.isEmpty(billingFlowParams.d)) { + bundle.putString("obfuscatedProfileId", billingFlowParams.d); + } + if (billingFlowParams.g) { + bundle.putBoolean("vr", true); + } + if (!TextUtils.isEmpty(null)) { + bundle.putStringArrayList("skusToReplace", new ArrayList<>(Arrays.asList(null))); + } + if (!TextUtils.isEmpty(billingFlowParams.c)) { + bundle.putString("oldSkuPurchaseToken", billingFlowParams.c); + } + if (!TextUtils.isEmpty(null)) { + bundle.putString("oldSkuPurchaseId", null); + } + if (!TextUtils.isEmpty(null)) { + bundle.putString("paymentsPurchaseParams", null); + } + if (z3 && z4) { + bundle.putBoolean("enablePendingPurchases", true); + } + ArrayList arrayList2 = new ArrayList<>(); + ArrayList arrayList3 = new ArrayList<>(); + ArrayList arrayList4 = new ArrayList<>(); + ArrayList arrayList5 = new ArrayList<>(); + str4 = "; try to reconnect"; + ArrayList arrayList6 = new ArrayList<>(); + str3 = str12; + int size = arrayList.size(); + boolean z5 = false; + boolean z6 = false; + boolean z7 = false; + boolean z8 = false; + str = "BUY_INTENT"; + int i3 = 0; + while (i3 < size) { + SkuDetails skuDetails2 = (SkuDetails) arrayList.get(i3); + if (!skuDetails2.f1991b.optString("skuDetailsToken").isEmpty()) { + arrayList2.add(skuDetails2.f1991b.optString("skuDetailsToken")); + } + try { + str9 = new JSONObject(skuDetails2.a).optString("offer_id_token"); + } catch (JSONException unused) { + str9 = str11; + } + String optString = skuDetails2.f1991b.optString("offer_id"); + int optInt = skuDetails2.f1991b.optInt("offer_type"); + String optString2 = skuDetails2.f1991b.optString("serializedDocid"); + arrayList3.add(str9); + z5 |= !TextUtils.isEmpty(str9); + arrayList4.add(optString); + z6 |= !TextUtils.isEmpty(optString); + arrayList5.add(Integer.valueOf(optInt)); + z7 |= optInt != 0; + z8 |= !TextUtils.isEmpty(optString2); + arrayList6.add(optString2); + i3++; + str10 = str10; + size = size; + e = e; + } + str2 = str10; + if (!arrayList2.isEmpty()) { + bundle.putStringArrayList("skuDetailsTokens", arrayList2); + } + if (z5) { + if (!this.m) { + BillingResult billingResult4 = p.g; + j(billingResult4); + return billingResult4; + } + bundle.putStringArrayList("SKU_OFFER_ID_TOKEN_LIST", arrayList3); + } + if (z6) { + bundle.putStringArrayList("SKU_OFFER_ID_LIST", arrayList4); + } + if (z7) { + bundle.putIntegerArrayList("SKU_OFFER_TYPE_LIST", arrayList5); + } + if (z8) { + bundle.putStringArrayList("SKU_SERIALIZED_DOCID_LIST", arrayList6); + } + if (!TextUtils.isEmpty(skuDetails.f())) { + bundle.putString("skuPackageName", skuDetails.f()); + str8 = null; + z2 = true; + } else { + str8 = null; + z2 = false; + } + if (!TextUtils.isEmpty(str8)) { + bundle.putString("accountName", str8); + } + if (arrayList.size() > 1) { + ArrayList arrayList7 = new ArrayList<>(arrayList.size() - 1); + ArrayList arrayList8 = new ArrayList<>(arrayList.size() - 1); + for (int i4 = 1; i4 < arrayList.size(); i4++) { + arrayList7.add(((SkuDetails) arrayList.get(i4)).d()); + arrayList8.add(((SkuDetails) arrayList.get(i4)).e()); + } + bundle.putStringArrayList("additionalSkus", arrayList7); + bundle.putStringArrayList("additionalSkuTypes", arrayList8); + } + if (!TextUtils.isEmpty(activity.getIntent().getStringExtra("PROXY_PACKAGE"))) { + String stringExtra = activity.getIntent().getStringExtra("PROXY_PACKAGE"); + bundle.putString("proxyPackage", stringExtra); + try { + bundle.putString("proxyPackageVersion", this.e.getPackageManager().getPackageInfo(stringExtra, 0).versionName); + } catch (PackageManager.NameNotFoundException unused2) { + bundle.putString("proxyPackageVersion", "package not found"); + } + } + future = l(new b0(this, (!this.n || !z2) ? this.k ? 9 : billingFlowParams.g ? 7 : 6 : 15, skuDetails, e, billingFlowParams, bundle), 5000, null, this.c); + } else { + str = "BUY_INTENT"; + str4 = "; try to reconnect"; + str2 = str10; + str3 = str12; + future = l(new u(this, skuDetails, e), 5000, null, this.c); + } + try { + Bundle bundle2 = (Bundle) future.get(5000, TimeUnit.MILLISECONDS); + str6 = str2; + try { + int a = b.i.a.f.h.n.a.a(bundle2, str6); + String d = b.i.a.f.h.n.a.d(bundle2, str6); + if (a != 0) { + StringBuilder sb2 = new StringBuilder(52); + sb2.append("Unable to buy item, Error response code: "); + sb2.append(a); + b.i.a.f.h.n.a.f(str6, sb2.toString()); + BillingResult billingResult5 = new BillingResult(); + billingResult5.a = a; + billingResult5.f1988b = d; + j(billingResult5); + return billingResult5; + } + Intent intent = new Intent(activity, ProxyBillingActivity.class); + intent.putExtra(str, (PendingIntent) bundle2.getParcelable(str)); + activity.startActivity(intent); + return p.i; + } catch (CancellationException | TimeoutException unused3) { + str7 = str4; + str5 = str3; + StringBuilder sb3 = new StringBuilder(String.valueOf(str5).length() + 68); + sb3.append("Time out while launching billing flow: ; for sku: "); + sb3.append(str5); + sb3.append(str7); + b.i.a.f.h.n.a.f(str6, sb3.toString()); + BillingResult billingResult6 = p.k; + j(billingResult6); + return billingResult6; + } catch (Exception unused4) { + StringBuilder sb4 = new StringBuilder(String.valueOf(str3).length() + 69); + sb4.append("Exception while launching billing flow: ; for sku: "); + sb4.append(str3); + sb4.append(str4); + b.i.a.f.h.n.a.f(str6, sb4.toString()); + BillingResult billingResult7 = p.j; + j(billingResult7); + return billingResult7; + } + } catch (CancellationException | TimeoutException unused5) { + str7 = str4; + str5 = str3; + str6 = str2; + StringBuilder sb3 = new StringBuilder(String.valueOf(str5).length() + 68); + sb3.append("Time out while launching billing flow: ; for sku: "); + sb3.append(str5); + sb3.append(str7); + b.i.a.f.h.n.a.f(str6, sb3.toString()); + BillingResult billingResult6 = p.k; + j(billingResult6); + return billingResult6; + } catch (Exception unused6) { + } + } else { + b.i.a.f.h.n.a.f(str10, "Current client doesn't support multi-item purchases."); + BillingResult billingResult8 = p.m; + j(billingResult8); + return billingResult8; + } + } + + @Override // com.android.billingclient.api.BillingClient + public void f(String str, f fVar) { + if (!d()) { + BillingResult billingResult = p.j; + m mVar = k.k; + fVar.onQueryPurchasesResponse(billingResult, l.l); + } else if (TextUtils.isEmpty(str)) { + b.i.a.f.h.n.a.f("BillingClient", "Please provide a valid SKU type."); + BillingResult billingResult2 = p.e; + m mVar2 = k.k; + fVar.onQueryPurchasesResponse(billingResult2, l.l); + } else if (l(new j(this, str, fVar), 30000, new y(fVar), i()) == null) { + BillingResult k = k(); + m mVar3 = k.k; + fVar.onQueryPurchasesResponse(k, l.l); + } + } + + @Override // com.android.billingclient.api.BillingClient + public final void g(h hVar, i iVar) { + if (!d()) { + iVar.onSkuDetailsResponse(p.j, null); + return; + } + String str = hVar.a; + List list = hVar.f440b; + if (TextUtils.isEmpty(str)) { + b.i.a.f.h.n.a.f("BillingClient", "Please fix the input params. SKU type can't be empty."); + iVar.onSkuDetailsResponse(p.e, null); + } else if (list != null) { + ArrayList arrayList = new ArrayList(); + for (String str2 : list) { + if (!TextUtils.isEmpty(str2)) { + arrayList.add(new q(str2)); + } else { + throw new IllegalArgumentException("SKU must be set."); + } + } + if (l(new v(this, str, arrayList, iVar), 30000, new z(iVar), i()) == null) { + iVar.onSkuDetailsResponse(k(), null); + } + } else { + b.i.a.f.h.n.a.f("BillingClient", "Please fix the input params. The list of SKUs can't be empty - set SKU list or SkuWithOffer list."); + iVar.onSkuDetailsResponse(p.d, null); + } + } + + @Override // com.android.billingclient.api.BillingClient + public final void h(b bVar) { + ServiceInfo serviceInfo; + if (d()) { + b.i.a.f.h.n.a.e("BillingClient", "Service connection is valid. No need to re-initialize."); + bVar.onBillingSetupFinished(p.i); + } else if (this.a == 1) { + b.i.a.f.h.n.a.f("BillingClient", "Client is already in the process of connecting to billing service."); + bVar.onBillingSetupFinished(p.c); + } else if (this.a == 3) { + b.i.a.f.h.n.a.f("BillingClient", "Client was already closed and can't be reused. Please create another instance."); + bVar.onBillingSetupFinished(p.j); + } else { + this.a = 1; + s sVar = this.d; + r rVar = sVar.f443b; + Context context = sVar.a; + IntentFilter intentFilter = new IntentFilter("com.android.vending.billing.PURCHASES_UPDATED"); + if (!rVar.f442b) { + context.registerReceiver(rVar.c.f443b, intentFilter); + rVar.f442b = true; + } + b.i.a.f.h.n.a.e("BillingClient", "Starting in-app billing setup."); + this.g = new n(this, bVar); + Intent intent = new Intent("com.android.vending.billing.InAppBillingService.BIND"); + intent.setPackage("com.android.vending"); + List queryIntentServices = this.e.getPackageManager().queryIntentServices(intent, 0); + if (!(queryIntentServices == null || queryIntentServices.isEmpty() || (serviceInfo = queryIntentServices.get(0).serviceInfo) == null)) { + String str = serviceInfo.packageName; + String str2 = serviceInfo.name; + if (!"com.android.vending".equals(str) || str2 == null) { + b.i.a.f.h.n.a.f("BillingClient", "The device doesn't have valid Play Store."); + } else { + ComponentName componentName = new ComponentName(str, str2); + Intent intent2 = new Intent(intent); + intent2.setComponent(componentName); + intent2.putExtra("playBillingLibraryVersion", this.f438b); + if (this.e.bindService(intent2, this.g, 1)) { + b.i.a.f.h.n.a.e("BillingClient", "Service was bonded successfully."); + return; + } + b.i.a.f.h.n.a.f("BillingClient", "Connection to Billing service is blocked."); + } + } + this.a = 0; + b.i.a.f.h.n.a.e("BillingClient", "Billing service unavailable on device."); + bVar.onBillingSetupFinished(p.f441b); + } + } + + public final Handler i() { + return Looper.myLooper() == null ? this.c : new Handler(Looper.myLooper()); + } + + public final BillingResult j(BillingResult billingResult) { + if (Thread.interrupted()) { + return billingResult; + } + this.c.post(new w(this, billingResult)); + return billingResult; + } + + public final BillingResult k() { + return (this.a == 0 || this.a == 3) ? p.j : p.h; + } + + @Nullable + public final Future l(Callable callable, long j, @Nullable Runnable runnable, Handler handler) { + long j2 = (long) (((double) j) * 0.95d); + if (this.q == null) { + this.q = Executors.newFixedThreadPool(b.i.a.f.h.n.a.a, new k(this)); + } + try { + Future submit = this.q.submit(callable); + handler.postDelayed(new a0(submit, runnable), j2); + return submit; + } catch (Exception e) { + String valueOf = String.valueOf(e); + StringBuilder sb = new StringBuilder(valueOf.length() + 28); + sb.append("Async task throws exception "); + sb.append(valueOf); + b.i.a.f.h.n.a.f("BillingClient", sb.toString()); + return null; + } + } +} diff --git a/app/src/main/java/b/d/a/a/a0.java b/app/src/main/java/b/d/a/a/a0.java new file mode 100644 index 0000000000..4ee5ec209b --- /dev/null +++ b/app/src/main/java/b/d/a/a/a0.java @@ -0,0 +1,27 @@ +package b.d.a.a; + +import b.i.a.f.h.n.a; +import java.util.concurrent.Future; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class a0 implements Runnable { + public final /* synthetic */ Future j; + public final /* synthetic */ Runnable k; + + public /* synthetic */ a0(Future future, Runnable runnable) { + this.j = future; + this.k = runnable; + } + + @Override // java.lang.Runnable + public final void run() { + Future future = this.j; + Runnable runnable = this.k; + if (!future.isDone() && !future.isCancelled()) { + future.cancel(true); + a.f("BillingClient", "Async task is taking too long, cancel it!"); + if (runnable != null) { + runnable.run(); + } + } + } +} diff --git a/app/src/main/java/b/d/a/a/b.java b/app/src/main/java/b/d/a/a/b.java new file mode 100644 index 0000000000..ef33d028d0 --- /dev/null +++ b/app/src/main/java/b/d/a/a/b.java @@ -0,0 +1,10 @@ +package b.d.a.a; + +import androidx.annotation.NonNull; +import com.android.billingclient.api.BillingResult; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public interface b { + void onBillingServiceDisconnected(); + + void onBillingSetupFinished(@NonNull BillingResult billingResult); +} diff --git a/app/src/main/java/b/d/a/a/b0.java b/app/src/main/java/b/d/a/a/b0.java new file mode 100644 index 0000000000..69983d4d2f --- /dev/null +++ b/app/src/main/java/b/d/a/a/b0.java @@ -0,0 +1,32 @@ +package b.d.a.a; + +import android.os.Bundle; +import com.android.billingclient.api.BillingFlowParams; +import com.android.billingclient.api.SkuDetails; +import java.util.concurrent.Callable; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class b0 implements Callable { + public final /* synthetic */ a j; + public final /* synthetic */ int k; + public final /* synthetic */ SkuDetails l; + public final /* synthetic */ String m; + public final /* synthetic */ BillingFlowParams n; + public final /* synthetic */ Bundle o; + + public /* synthetic */ b0(a aVar, int i, SkuDetails skuDetails, String str, BillingFlowParams billingFlowParams, Bundle bundle) { + this.j = aVar; + this.k = i; + this.l = skuDetails; + this.m = str; + this.n = billingFlowParams; + this.o = bundle; + } + + @Override // java.util.concurrent.Callable + public final Object call() { + a aVar = this.j; + int i = this.k; + SkuDetails skuDetails = this.l; + return aVar.f.e0(i, aVar.e.getPackageName(), skuDetails.d(), this.m, null, this.o); + } +} diff --git a/app/src/main/java/b/d/a/a/c.java b/app/src/main/java/b/d/a/a/c.java new file mode 100644 index 0000000000..e525a535a8 --- /dev/null +++ b/app/src/main/java/b/d/a/a/c.java @@ -0,0 +1,8 @@ +package b.d.a.a; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public class c { + public String a; + + /* renamed from: b reason: collision with root package name */ + public int f439b = 0; +} diff --git a/app/src/main/java/b/d/a/a/d.java b/app/src/main/java/b/d/a/a/d.java new file mode 100644 index 0000000000..5cad833430 --- /dev/null +++ b/app/src/main/java/b/d/a/a/d.java @@ -0,0 +1,5 @@ +package b.d.a.a; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class d { + public String a; +} diff --git a/app/src/main/java/b/d/a/a/e.java b/app/src/main/java/b/d/a/a/e.java new file mode 100644 index 0000000000..6b60bf6a49 --- /dev/null +++ b/app/src/main/java/b/d/a/a/e.java @@ -0,0 +1,8 @@ +package b.d.a.a; + +import androidx.annotation.NonNull; +import com.android.billingclient.api.BillingResult; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public interface e { + void onConsumeResponse(@NonNull BillingResult billingResult, @NonNull String str); +} diff --git a/app/src/main/java/b/d/a/a/f.java b/app/src/main/java/b/d/a/a/f.java new file mode 100644 index 0000000000..a0ccc847cd --- /dev/null +++ b/app/src/main/java/b/d/a/a/f.java @@ -0,0 +1,10 @@ +package b.d.a.a; + +import androidx.annotation.NonNull; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; +import java.util.List; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public interface f { + void onQueryPurchasesResponse(@NonNull BillingResult billingResult, @NonNull List list); +} diff --git a/app/src/main/java/b/d/a/a/g.java b/app/src/main/java/b/d/a/a/g.java new file mode 100644 index 0000000000..6bf845758e --- /dev/null +++ b/app/src/main/java/b/d/a/a/g.java @@ -0,0 +1,11 @@ +package b.d.a.a; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; +import java.util.List; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public interface g { + void onPurchasesUpdated(@NonNull BillingResult billingResult, @Nullable List list); +} diff --git a/app/src/main/java/b/d/a/a/h.java b/app/src/main/java/b/d/a/a/h.java new file mode 100644 index 0000000000..69ee65ede7 --- /dev/null +++ b/app/src/main/java/b/d/a/a/h.java @@ -0,0 +1,10 @@ +package b.d.a.a; + +import java.util.List; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public class h { + public String a; + + /* renamed from: b reason: collision with root package name */ + public List f440b; +} diff --git a/app/src/main/java/b/d/a/a/i.java b/app/src/main/java/b/d/a/a/i.java new file mode 100644 index 0000000000..5057ee40da --- /dev/null +++ b/app/src/main/java/b/d/a/a/i.java @@ -0,0 +1,11 @@ +package b.d.a.a; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.SkuDetails; +import java.util.List; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public interface i { + void onSkuDetailsResponse(@NonNull BillingResult billingResult, @Nullable List list); +} diff --git a/app/src/main/java/b/d/a/a/j.java b/app/src/main/java/b/d/a/a/j.java new file mode 100644 index 0000000000..e70b1e491f --- /dev/null +++ b/app/src/main/java/b/d/a/a/j.java @@ -0,0 +1,141 @@ +package b.d.a.a; + +import android.os.Bundle; +import android.text.TextUtils; +import b.i.a.f.h.n.a; +import b.i.a.f.h.n.k; +import b.i.a.f.h.n.l; +import b.i.a.f.h.n.m; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.Callable; +import org.json.JSONException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class j implements Callable { + public final /* synthetic */ String j; + public final /* synthetic */ f k; + public final /* synthetic */ a l; + + public j(a aVar, String str, f fVar) { + this.l = aVar; + this.j = str; + this.k = fVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final Void call() throws Exception { + Purchase.a aVar; + a aVar2 = this.l; + String str = this.j; + String valueOf = String.valueOf(str); + a.e("BillingClient", valueOf.length() != 0 ? "Querying owned items, item type: ".concat(valueOf) : new String("Querying owned items, item type: ")); + ArrayList arrayList = new ArrayList(); + boolean z2 = aVar2.k; + boolean z3 = aVar2.p; + String str2 = aVar2.f438b; + Bundle bundle = new Bundle(); + bundle.putString("playBillingLibraryVersion", str2); + int i = 1; + if (z2 && z3) { + bundle.putBoolean("enablePendingPurchases", true); + } + String str3 = null; + while (true) { + try { + Bundle s0 = aVar2.k ? aVar2.f.s0(9, aVar2.e.getPackageName(), str, str3, bundle) : aVar2.f.F(3, aVar2.e.getPackageName(), str, str3); + BillingResult billingResult = p.h; + if (s0 == null) { + Object[] objArr = new Object[i]; + objArr[0] = "getPurchase()"; + a.f("BillingClient", String.format("%s got null owned items list", objArr)); + } else { + int a = a.a(s0, "BillingClient"); + String d = a.d(s0, "BillingClient"); + BillingResult billingResult2 = new BillingResult(); + billingResult2.a = a; + billingResult2.f1988b = d; + if (a != 0) { + a.f("BillingClient", String.format("%s failed. Response code: %s", "getPurchase()", Integer.valueOf(a))); + billingResult = billingResult2; + i = 1; + } else if (!s0.containsKey("INAPP_PURCHASE_ITEM_LIST") || !s0.containsKey("INAPP_PURCHASE_DATA_LIST") || !s0.containsKey("INAPP_DATA_SIGNATURE_LIST")) { + i = 1; + a.f("BillingClient", String.format("Bundle returned from %s doesn't contain required fields.", "getPurchase()")); + } else { + ArrayList stringArrayList = s0.getStringArrayList("INAPP_PURCHASE_ITEM_LIST"); + ArrayList stringArrayList2 = s0.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); + ArrayList stringArrayList3 = s0.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); + if (stringArrayList == null) { + i = 1; + a.f("BillingClient", String.format("Bundle returned from %s contains null SKUs list.", "getPurchase()")); + } else { + i = 1; + if (stringArrayList2 == null) { + a.f("BillingClient", String.format("Bundle returned from %s contains null purchases list.", "getPurchase()")); + } else if (stringArrayList3 == null) { + a.f("BillingClient", String.format("Bundle returned from %s contains null signatures list.", "getPurchase()")); + } else { + billingResult = p.i; + } + } + } + } + if (billingResult != p.i) { + aVar = new Purchase.a(billingResult, null); + break; + } + ArrayList stringArrayList4 = s0.getStringArrayList("INAPP_PURCHASE_ITEM_LIST"); + ArrayList stringArrayList5 = s0.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); + ArrayList stringArrayList6 = s0.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); + for (int i2 = 0; i2 < stringArrayList5.size(); i2++) { + String str4 = stringArrayList5.get(i2); + String str5 = stringArrayList6.get(i2); + String valueOf2 = String.valueOf(stringArrayList4.get(i2)); + a.e("BillingClient", valueOf2.length() != 0 ? "Sku is owned: ".concat(valueOf2) : new String("Sku is owned: ")); + try { + Purchase purchase = new Purchase(str4, str5); + if (TextUtils.isEmpty(purchase.a())) { + a.f("BillingClient", "BUG: empty/null token!"); + } + arrayList.add(purchase); + } catch (JSONException e) { + String valueOf3 = String.valueOf(e); + StringBuilder sb = new StringBuilder(valueOf3.length() + 48); + sb.append("Got an exception trying to decode the purchase: "); + sb.append(valueOf3); + a.f("BillingClient", sb.toString()); + aVar = new Purchase.a(p.h, null); + } + } + str3 = s0.getString("INAPP_CONTINUATION_TOKEN"); + String valueOf4 = String.valueOf(str3); + a.e("BillingClient", valueOf4.length() != 0 ? "Continuation token: ".concat(valueOf4) : new String("Continuation token: ")); + if (TextUtils.isEmpty(str3)) { + aVar = new Purchase.a(p.i, arrayList); + break; + } + } catch (Exception e2) { + String valueOf5 = String.valueOf(e2); + StringBuilder sb2 = new StringBuilder(valueOf5.length() + 57); + sb2.append("Got exception trying to get purchases: "); + sb2.append(valueOf5); + sb2.append("; try to reconnect"); + a.f("BillingClient", sb2.toString()); + aVar = new Purchase.a(p.j, null); + } + } + List list = aVar.a; + if (list != null) { + this.k.onQueryPurchasesResponse(aVar.f1990b, list); + return null; + } + f fVar = this.k; + BillingResult billingResult3 = aVar.f1990b; + m mVar = k.k; + fVar.onQueryPurchasesResponse(billingResult3, l.l); + return null; + } +} diff --git a/app/src/main/java/b/d/a/a/k.java b/app/src/main/java/b/d/a/a/k.java new file mode 100644 index 0000000000..4449730a8a --- /dev/null +++ b/app/src/main/java/b/d/a/a/k.java @@ -0,0 +1,24 @@ +package b.d.a.a; + +import java.util.concurrent.Executors; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class k implements ThreadFactory { + public final ThreadFactory j = Executors.defaultThreadFactory(); + public final AtomicInteger k = new AtomicInteger(1); + + public k(a aVar) { + } + + @Override // java.util.concurrent.ThreadFactory + public final Thread newThread(Runnable runnable) { + Thread newThread = this.j.newThread(runnable); + int andIncrement = this.k.getAndIncrement(); + StringBuilder sb = new StringBuilder(30); + sb.append("PlayBillingLibrary-"); + sb.append(andIncrement); + newThread.setName(sb.toString()); + return newThread; + } +} diff --git a/app/src/main/java/b/d/a/a/l.java b/app/src/main/java/b/d/a/a/l.java new file mode 100644 index 0000000000..dd69ea7c72 --- /dev/null +++ b/app/src/main/java/b/d/a/a/l.java @@ -0,0 +1,17 @@ +package b.d.a.a; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class l implements Runnable { + public final /* synthetic */ n j; + + public /* synthetic */ l(n nVar) { + this.j = nVar; + } + + @Override // java.lang.Runnable + public final void run() { + n nVar = this.j; + nVar.m.a = 0; + nVar.m.f = null; + nVar.a(p.k); + } +} diff --git a/app/src/main/java/b/d/a/a/m.java b/app/src/main/java/b/d/a/a/m.java new file mode 100644 index 0000000000..433c5075a0 --- /dev/null +++ b/app/src/main/java/b/d/a/a/m.java @@ -0,0 +1,105 @@ +package b.d.a.a; + +import b.i.a.f.h.n.a; +import java.util.Objects; +import java.util.concurrent.Callable; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class m implements Callable { + public final /* synthetic */ n j; + + public /* synthetic */ m(n nVar) { + this.j = nVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:67:0x00c6 */ + /* JADX WARNING: Removed duplicated region for block: B:68:0x00cc */ + @Override // java.util.concurrent.Callable + public final Object call() { + int i; + n nVar = this.j; + synchronized (nVar.j) { + if (!nVar.k) { + int i2 = 3; + try { + String packageName = nVar.m.e.getPackageName(); + int i3 = 16; + i = 3; + while (true) { + if (i3 < 3) { + i3 = 0; + break; + } + try { + i = nVar.m.f.N(i3, packageName, "subs"); + if (i == 0) { + break; + } + i3--; + } catch (Exception unused) { + i2 = i; + a.f("BillingClient", "Exception while checking if billing is supported; try to reconnect"); + nVar.m.a = 0; + nVar.m.f = null; + i = i2; + if (i == 0) { + } + return null; + } + } + Objects.requireNonNull(nVar.m); + boolean z2 = true; + nVar.m.h = i3 >= 3; + if (i3 < 3) { + a.e("BillingClient", "In-app billing API does not support subscription on this device."); + } + int i4 = 16; + while (true) { + if (i4 < 3) { + break; + } + i = nVar.m.f.N(i4, packageName, "inapp"); + if (i == 0) { + nVar.m.i = i4; + break; + } + i4--; + } + a aVar = nVar.m; + int i5 = aVar.i; + aVar.o = i5 >= 16; + aVar.n = i5 >= 15; + aVar.m = i5 >= 14; + aVar.l = i5 >= 10; + aVar.k = i5 >= 9; + if (i5 < 6) { + z2 = false; + } + aVar.j = z2; + if (i5 < 3) { + a.f("BillingClient", "In-app billing API version 3 is not supported on this device."); + } + if (i == 0) { + nVar.m.a = 2; + } else { + nVar.m.a = 0; + nVar.m.f = null; + } + } catch (Exception unused2) { + a.f("BillingClient", "Exception while checking if billing is supported; try to reconnect"); + nVar.m.a = 0; + nVar.m.f = null; + i = i2; + if (i == 0) { + } + return null; + } + if (i == 0) { + nVar.a(p.i); + } else { + nVar.a(p.a); + } + } + } + return null; + } +} diff --git a/app/src/main/java/b/d/a/a/n.java b/app/src/main/java/b/d/a/a/n.java new file mode 100644 index 0000000000..8f001a0cc5 --- /dev/null +++ b/app/src/main/java/b/d/a/a/n.java @@ -0,0 +1,64 @@ +package b.d.a.a; + +import android.content.ComponentName; +import android.content.ServiceConnection; +import android.os.IBinder; +import android.os.IInterface; +import b.i.a.f.h.n.a; +import b.i.a.f.h.n.b; +import b.i.a.f.h.n.c; +import b.i.a.f.h.n.d; +import com.android.billingclient.api.BillingResult; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class n implements ServiceConnection { + public final Object j = new Object(); + public boolean k = false; + public b l; + public final /* synthetic */ a m; + + public /* synthetic */ n(a aVar, b bVar) { + this.m = aVar; + this.l = bVar; + } + + public final void a(BillingResult billingResult) { + synchronized (this.j) { + b bVar = this.l; + if (bVar != null) { + bVar.onBillingSetupFinished(billingResult); + } + } + } + + @Override // android.content.ServiceConnection + public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { + d dVar; + a.e("BillingClient", "Billing service connected."); + a aVar = this.m; + int i = c.a; + if (iBinder == null) { + dVar = null; + } else { + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.android.vending.billing.IInAppBillingService"); + dVar = queryLocalInterface instanceof d ? (d) queryLocalInterface : new b(iBinder); + } + aVar.f = dVar; + a aVar2 = this.m; + if (aVar2.l(new m(this), 30000, new l(this), aVar2.i()) == null) { + a(this.m.k()); + } + } + + @Override // android.content.ServiceConnection + public final void onServiceDisconnected(ComponentName componentName) { + a.f("BillingClient", "Billing service disconnected."); + this.m.f = null; + this.m.a = 0; + synchronized (this.j) { + b bVar = this.l; + if (bVar != null) { + bVar.onBillingServiceDisconnected(); + } + } + } +} diff --git a/app/src/main/java/b/d/a/a/p.java b/app/src/main/java/b/d/a/a/p.java new file mode 100644 index 0000000000..adc193906b --- /dev/null +++ b/app/src/main/java/b/d/a/a/p.java @@ -0,0 +1,103 @@ +package b.d.a.a; + +import com.android.billingclient.api.BillingResult; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class p { + public static final BillingResult a; + + /* renamed from: b reason: collision with root package name */ + public static final BillingResult f441b; + public static final BillingResult c; + public static final BillingResult d; + public static final BillingResult e; + public static final BillingResult f; + public static final BillingResult g; + public static final BillingResult h; + public static final BillingResult i; + public static final BillingResult j; + public static final BillingResult k; + public static final BillingResult l; + public static final BillingResult m; + + static { + BillingResult billingResult = new BillingResult(); + billingResult.a = 3; + billingResult.f1988b = "Google Play In-app Billing API version is less than 3"; + a = billingResult; + BillingResult billingResult2 = new BillingResult(); + billingResult2.a = 3; + billingResult2.f1988b = "Google Play In-app Billing API version is less than 9"; + BillingResult billingResult3 = new BillingResult(); + billingResult3.a = 3; + billingResult3.f1988b = "Billing service unavailable on device."; + f441b = billingResult3; + BillingResult billingResult4 = new BillingResult(); + billingResult4.a = 5; + billingResult4.f1988b = "Client is already in the process of connecting to billing service."; + c = billingResult4; + BillingResult billingResult5 = new BillingResult(); + billingResult5.a = 3; + billingResult5.f1988b = "Play Store version installed does not support cross selling products."; + BillingResult billingResult6 = new BillingResult(); + billingResult6.a = 5; + billingResult6.f1988b = "The list of SKUs can't be empty."; + d = billingResult6; + BillingResult billingResult7 = new BillingResult(); + billingResult7.a = 5; + billingResult7.f1988b = "SKU type can't be empty."; + e = billingResult7; + BillingResult billingResult8 = new BillingResult(); + billingResult8.a = -2; + billingResult8.f1988b = "Client does not support extra params."; + f = billingResult8; + BillingResult billingResult9 = new BillingResult(); + billingResult9.a = -2; + billingResult9.f1988b = "Client does not support the feature."; + g = billingResult9; + BillingResult billingResult10 = new BillingResult(); + billingResult10.a = -2; + billingResult10.f1988b = "Client does not support get purchase history."; + BillingResult billingResult11 = new BillingResult(); + billingResult11.a = 5; + billingResult11.f1988b = "Invalid purchase token."; + BillingResult billingResult12 = new BillingResult(); + billingResult12.a = 6; + billingResult12.f1988b = "An internal error occurred."; + h = billingResult12; + BillingResult billingResult13 = new BillingResult(); + billingResult13.a = 4; + billingResult13.f1988b = "Item is unavailable for purchase."; + BillingResult billingResult14 = new BillingResult(); + billingResult14.a = 5; + billingResult14.f1988b = "SKU can't be null."; + BillingResult billingResult15 = new BillingResult(); + billingResult15.a = 5; + billingResult15.f1988b = "SKU type can't be null."; + BillingResult billingResult16 = new BillingResult(); + billingResult16.a = 0; + billingResult16.f1988b = ""; + i = billingResult16; + BillingResult billingResult17 = new BillingResult(); + billingResult17.a = -1; + billingResult17.f1988b = "Service connection is disconnected."; + j = billingResult17; + BillingResult billingResult18 = new BillingResult(); + billingResult18.a = -3; + billingResult18.f1988b = "Timeout communicating with service."; + k = billingResult18; + BillingResult billingResult19 = new BillingResult(); + billingResult19.a = -2; + billingResult19.f1988b = "Client doesn't support subscriptions."; + l = billingResult19; + BillingResult billingResult20 = new BillingResult(); + billingResult20.a = -2; + billingResult20.f1988b = "Client doesn't support subscriptions update."; + BillingResult billingResult21 = new BillingResult(); + billingResult21.a = -2; + billingResult21.f1988b = "Client doesn't support multi-item purchases."; + m = billingResult21; + BillingResult billingResult22 = new BillingResult(); + billingResult22.a = 5; + billingResult22.f1988b = "Unknown feature"; + } +} diff --git a/app/src/main/java/b/d/a/a/q.java b/app/src/main/java/b/d/a/a/q.java new file mode 100644 index 0000000000..4d77fbe22c --- /dev/null +++ b/app/src/main/java/b/d/a/a/q.java @@ -0,0 +1,9 @@ +package b.d.a.a; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public class q { + public final String a; + + public /* synthetic */ q(String str) { + this.a = str; + } +} diff --git a/app/src/main/java/b/d/a/a/r.java b/app/src/main/java/b/d/a/a/r.java new file mode 100644 index 0000000000..db9a20c9aa --- /dev/null +++ b/app/src/main/java/b/d/a/a/r.java @@ -0,0 +1,55 @@ +package b.d.a.a; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import b.i.a.f.h.n.a; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; +import java.util.ArrayList; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class r extends BroadcastReceiver { + public final g a; + + /* renamed from: b reason: collision with root package name */ + public boolean f442b; + public final /* synthetic */ s c; + + public /* synthetic */ r(s sVar, g gVar) { + this.c = sVar; + this.a = gVar; + } + + @Override // android.content.BroadcastReceiver + public final void onReceive(Context context, Intent intent) { + BillingResult c = a.c(intent, "BillingBroadcastManager"); + Bundle extras = intent.getExtras(); + ArrayList arrayList = null; + if (extras != null) { + ArrayList stringArrayList = extras.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); + ArrayList stringArrayList2 = extras.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); + ArrayList arrayList2 = new ArrayList(); + if (stringArrayList == null || stringArrayList2 == null) { + a.f("BillingHelper", "Couldn't find purchase lists, trying to find single data."); + Purchase g = a.g(extras.getString("INAPP_PURCHASE_DATA"), extras.getString("INAPP_DATA_SIGNATURE")); + if (g == null) { + a.f("BillingHelper", "Couldn't find single purchase data as well."); + } else { + arrayList2.add(g); + } + } else { + int i = 0; + while (i < stringArrayList.size() && i < stringArrayList2.size()) { + Purchase g2 = a.g(stringArrayList.get(i), stringArrayList2.get(i)); + if (g2 != null) { + arrayList2.add(g2); + } + i++; + } + } + arrayList = arrayList2; + } + this.a.onPurchasesUpdated(c, arrayList); + } +} diff --git a/app/src/main/java/b/d/a/a/s.java b/app/src/main/java/b/d/a/a/s.java new file mode 100644 index 0000000000..5d92e56d30 --- /dev/null +++ b/app/src/main/java/b/d/a/a/s.java @@ -0,0 +1,27 @@ +package b.d.a.a; + +import android.content.Context; +import b.i.a.f.h.n.a; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class s { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final r f443b; + + public s(Context context, g gVar) { + this.a = context; + this.f443b = new r(this, gVar); + } + + public final void a() { + r rVar = this.f443b; + Context context = this.a; + if (rVar.f442b) { + context.unregisterReceiver(rVar.c.f443b); + rVar.f442b = false; + return; + } + a.f("BillingBroadcastManager", "Receiver is not registered."); + } +} diff --git a/app/src/main/java/b/d/a/a/t.java b/app/src/main/java/b/d/a/a/t.java new file mode 100644 index 0000000000..62e8395e93 --- /dev/null +++ b/app/src/main/java/b/d/a/a/t.java @@ -0,0 +1,73 @@ +package b.d.a.a; + +import android.os.Bundle; +import b.i.a.f.h.n.a; +import b.i.a.f.h.n.d; +import com.android.billingclient.api.BillingResult; +import java.util.Objects; +import java.util.concurrent.Callable; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class t implements Callable { + public final /* synthetic */ a j; + public final /* synthetic */ d k; + public final /* synthetic */ e l; + + public /* synthetic */ t(a aVar, d dVar, e eVar) { + this.j = aVar; + this.k = dVar; + this.l = eVar; + } + + @Override // java.util.concurrent.Callable + public final Object call() { + int i; + String str; + a aVar = this.j; + d dVar = this.k; + e eVar = this.l; + Objects.requireNonNull(aVar); + String str2 = dVar.a; + try { + String valueOf = String.valueOf(str2); + a.e("BillingClient", valueOf.length() != 0 ? "Consuming purchase with token: ".concat(valueOf) : new String("Consuming purchase with token: ")); + if (aVar.k) { + d dVar2 = aVar.f; + String packageName = aVar.e.getPackageName(); + boolean z2 = aVar.k; + String str3 = aVar.f438b; + Bundle bundle = new Bundle(); + if (z2) { + bundle.putString("playBillingLibraryVersion", str3); + } + Bundle q = dVar2.q(9, packageName, str2, bundle); + i = q.getInt("RESPONSE_CODE"); + str = a.d(q, "BillingClient"); + } else { + i = aVar.f.p(3, aVar.e.getPackageName(), str2); + str = ""; + } + BillingResult billingResult = new BillingResult(); + billingResult.a = i; + billingResult.f1988b = str; + if (i == 0) { + a.e("BillingClient", "Successfully consumed purchase."); + eVar.onConsumeResponse(billingResult, str2); + return null; + } + StringBuilder sb = new StringBuilder(63); + sb.append("Error consuming purchase with token. Response code: "); + sb.append(i); + a.f("BillingClient", sb.toString()); + eVar.onConsumeResponse(billingResult, str2); + return null; + } catch (Exception e) { + String valueOf2 = String.valueOf(e); + StringBuilder sb2 = new StringBuilder(valueOf2.length() + 30); + sb2.append("Error consuming purchase; ex: "); + sb2.append(valueOf2); + a.f("BillingClient", sb2.toString()); + eVar.onConsumeResponse(p.j, str2); + return null; + } + } +} diff --git a/app/src/main/java/b/d/a/a/u.java b/app/src/main/java/b/d/a/a/u.java new file mode 100644 index 0000000000..e77b1ddaf3 --- /dev/null +++ b/app/src/main/java/b/d/a/a/u.java @@ -0,0 +1,23 @@ +package b.d.a.a; + +import com.android.billingclient.api.SkuDetails; +import java.util.concurrent.Callable; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class u implements Callable { + public final /* synthetic */ a j; + public final /* synthetic */ SkuDetails k; + public final /* synthetic */ String l; + + public /* synthetic */ u(a aVar, SkuDetails skuDetails, String str) { + this.j = aVar; + this.k = skuDetails; + this.l = str; + } + + @Override // java.util.concurrent.Callable + public final Object call() { + a aVar = this.j; + SkuDetails skuDetails = this.k; + return aVar.f.G(3, aVar.e.getPackageName(), skuDetails.d(), this.l, null); + } +} diff --git a/app/src/main/java/b/d/a/a/v.java b/app/src/main/java/b/d/a/a/v.java new file mode 100644 index 0000000000..24e01b8719 --- /dev/null +++ b/app/src/main/java/b/d/a/a/v.java @@ -0,0 +1,133 @@ +package b.d.a.a; + +import android.os.Bundle; +import b.i.a.f.h.n.a; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.SkuDetails; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.Callable; +import org.json.JSONException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class v implements Callable { + public final /* synthetic */ a j; + public final /* synthetic */ String k; + public final /* synthetic */ List l; + public final /* synthetic */ i m; + + public /* synthetic */ v(a aVar, String str, List list, i iVar) { + this.j = aVar; + this.k = str; + this.l = list; + this.m = iVar; + } + + /* JADX WARNING: Code restructure failed: missing block: B:26:0x00cd, code lost: + r14 = 4; + r0 = "Item is unavailable for purchase."; + */ + @Override // java.util.concurrent.Callable + public final Object call() { + String str; + int i; + Bundle bundle; + int i2; + a aVar = this.j; + String str2 = this.k; + List list = this.l; + i iVar = this.m; + Objects.requireNonNull(aVar); + ArrayList arrayList = new ArrayList(); + int size = list.size(); + int i3 = 0; + while (true) { + if (i3 >= size) { + str = ""; + i = 0; + break; + } + int i4 = i3 + 20; + ArrayList arrayList2 = new ArrayList(list.subList(i3, i4 > size ? size : i4)); + ArrayList arrayList3 = new ArrayList<>(); + int size2 = arrayList2.size(); + for (int i5 = 0; i5 < size2; i5++) { + arrayList3.add(((q) arrayList2.get(i5)).a); + } + Bundle bundle2 = new Bundle(); + bundle2.putStringArrayList("ITEM_ID_LIST", arrayList3); + bundle2.putString("playBillingLibraryVersion", aVar.f438b); + try { + if (aVar.l) { + i2 = i4; + bundle = aVar.f.n(10, aVar.e.getPackageName(), str2, bundle2, a.b(aVar.i, aVar.p, aVar.f438b, null, arrayList2)); + } else { + i2 = i4; + bundle = aVar.f.g0(3, aVar.e.getPackageName(), str2, bundle2); + } + if (bundle == null) { + a.f("BillingClient", "querySkuDetailsAsync got null sku details list"); + break; + } else if (!bundle.containsKey("DETAILS_LIST")) { + i = a.a(bundle, "BillingClient"); + str = a.d(bundle, "BillingClient"); + if (i != 0) { + StringBuilder sb = new StringBuilder(50); + sb.append("getSkuDetails() failed. Response code: "); + sb.append(i); + a.f("BillingClient", sb.toString()); + } else { + a.f("BillingClient", "getSkuDetails() returned a bundle with neither an error nor a detail list."); + } + } else { + ArrayList stringArrayList = bundle.getStringArrayList("DETAILS_LIST"); + if (stringArrayList == null) { + a.f("BillingClient", "querySkuDetailsAsync got null response list"); + break; + } + for (int i6 = 0; i6 < stringArrayList.size(); i6++) { + try { + SkuDetails skuDetails = new SkuDetails(stringArrayList.get(i6)); + String valueOf = String.valueOf(skuDetails); + StringBuilder sb2 = new StringBuilder(valueOf.length() + 17); + sb2.append("Got sku details: "); + sb2.append(valueOf); + a.e("BillingClient", sb2.toString()); + arrayList.add(skuDetails); + } catch (JSONException unused) { + a.f("BillingClient", "Got a JSON exception trying to decode SkuDetails."); + str = "Error trying to decode SkuDetails."; + arrayList = null; + i = 6; + BillingResult billingResult = new BillingResult(); + billingResult.a = i; + billingResult.f1988b = str; + iVar.onSkuDetailsResponse(billingResult, arrayList); + return null; + } + } + i3 = i2; + } + } catch (Exception e) { + String valueOf2 = String.valueOf(e); + StringBuilder sb3 = new StringBuilder(valueOf2.length() + 63); + sb3.append("querySkuDetailsAsync got a remote exception (try to reconnect)."); + sb3.append(valueOf2); + a.f("BillingClient", sb3.toString()); + i = -1; + str = "Service connection is disconnected."; + } + } + BillingResult billingResult = new BillingResult(); + billingResult.a = i; + billingResult.f1988b = str; + iVar.onSkuDetailsResponse(billingResult, arrayList); + return null; + arrayList = null; + BillingResult billingResult = new BillingResult(); + billingResult.a = i; + billingResult.f1988b = str; + iVar.onSkuDetailsResponse(billingResult, arrayList); + return null; + } +} diff --git a/app/src/main/java/b/d/a/a/w.java b/app/src/main/java/b/d/a/a/w.java new file mode 100644 index 0000000000..bd620577b5 --- /dev/null +++ b/app/src/main/java/b/d/a/a/w.java @@ -0,0 +1,19 @@ +package b.d.a.a; + +import com.android.billingclient.api.BillingResult; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class w implements Runnable { + public final /* synthetic */ a j; + public final /* synthetic */ BillingResult k; + + public /* synthetic */ w(a aVar, BillingResult billingResult) { + this.j = aVar; + this.k = billingResult; + } + + @Override // java.lang.Runnable + public final void run() { + a aVar = this.j; + aVar.d.f443b.a.onPurchasesUpdated(this.k, null); + } +} diff --git a/app/src/main/java/b/d/a/a/x.java b/app/src/main/java/b/d/a/a/x.java new file mode 100644 index 0000000000..1d6a066bb2 --- /dev/null +++ b/app/src/main/java/b/d/a/a/x.java @@ -0,0 +1,16 @@ +package b.d.a.a; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class x implements Runnable { + public final /* synthetic */ e j; + public final /* synthetic */ d k; + + public /* synthetic */ x(e eVar, d dVar) { + this.j = eVar; + this.k = dVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.onConsumeResponse(p.k, this.k.a); + } +} diff --git a/app/src/main/java/b/d/a/a/y.java b/app/src/main/java/b/d/a/a/y.java new file mode 100644 index 0000000000..f1626aa7a9 --- /dev/null +++ b/app/src/main/java/b/d/a/a/y.java @@ -0,0 +1,22 @@ +package b.d.a.a; + +import b.i.a.f.h.n.k; +import b.i.a.f.h.n.l; +import b.i.a.f.h.n.m; +import com.android.billingclient.api.BillingResult; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class y implements Runnable { + public final /* synthetic */ f j; + + public /* synthetic */ y(f fVar) { + this.j = fVar; + } + + @Override // java.lang.Runnable + public final void run() { + f fVar = this.j; + BillingResult billingResult = p.k; + m mVar = k.k; + fVar.onQueryPurchasesResponse(billingResult, l.l); + } +} diff --git a/app/src/main/java/b/d/a/a/z.java b/app/src/main/java/b/d/a/a/z.java new file mode 100644 index 0000000000..5e8acd7c87 --- /dev/null +++ b/app/src/main/java/b/d/a/a/z.java @@ -0,0 +1,14 @@ +package b.d.a.a; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class z implements Runnable { + public final /* synthetic */ i j; + + public /* synthetic */ z(i iVar) { + this.j = iVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.onSkuDetailsResponse(p.k, null); + } +} diff --git a/app/src/main/java/b/d/a/b/a.java b/app/src/main/java/b/d/a/b/a.java new file mode 100644 index 0000000000..6c06102a11 --- /dev/null +++ b/app/src/main/java/b/d/a/b/a.java @@ -0,0 +1,4 @@ +package b.d.a.b; +/* compiled from: com.android.billingclient:billing-ktx@@4.0.0 */ +public final class a { +} diff --git a/app/src/main/java/b/d/b/a/a.java b/app/src/main/java/b/d/b/a/a.java new file mode 100644 index 0000000000..0ad3b1f630 --- /dev/null +++ b/app/src/main/java/b/d/b/a/a.java @@ -0,0 +1,476 @@ +package b.d.b.a; + +import android.content.Context; +import android.graphics.Canvas; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.widget.TextView; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentActivity; +import androidx.lifecycle.ViewModelProvider; +import androidx.lifecycle.ViewModelStore; +import androidx.recyclerview.widget.RecyclerView; +import b.a.a.z.c; +import b.a.i.i4; +import b.a.q.o0.e; +import b.i.c.m.d.b; +import com.discord.api.channel.Channel; +import com.discord.models.domain.Model; +import com.discord.models.guild.Guild; +import com.discord.models.user.User; +import com.esotericsoftware.kryo.KryoException; +import com.google.android.exoplayer2.ParserException; +import d0.e0.g; +import d0.e0.p.d.m0.f.z.b; +import d0.e0.p.d.m0.n.n1.i; +import d0.o; +import d0.z.d.a0; +import d0.z.d.l; +import d0.z.d.m; +import d0.z.d.y; +import h0.a.a.v; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import kotlin.Pair; +import kotlin.jvm.internal.Ref$ObjectRef; +/* compiled from: outline */ +public class a { + public static String A(StringBuilder sb, int i, String str) { + sb.append(i); + sb.append(str); + return sb.toString(); + } + + public static String B(StringBuilder sb, long j, String str) { + sb.append(j); + sb.append(str); + return sb.toString(); + } + + public static String C(StringBuilder sb, Boolean bool, String str) { + sb.append(bool); + sb.append(str); + return sb.toString(); + } + + public static String D(StringBuilder sb, CharSequence charSequence, String str) { + sb.append(charSequence); + sb.append(str); + return sb.toString(); + } + + public static String E(StringBuilder sb, Integer num, String str) { + sb.append(num); + sb.append(str); + return sb.toString(); + } + + public static String F(StringBuilder sb, Long l, String str) { + sb.append(l); + sb.append(str); + return sb.toString(); + } + + public static String G(StringBuilder sb, String str, char c) { + sb.append(str); + sb.append(c); + return sb.toString(); + } + + public static String H(StringBuilder sb, String str, String str2) { + sb.append(str); + sb.append(str2); + return sb.toString(); + } + + public static Bundle I(String str, long j) { + Bundle bundle = new Bundle(); + bundle.putLong(str, j); + return bundle; + } + + public static String J(StringBuilder sb, List list, String str) { + sb.append(list); + sb.append(str); + return sb.toString(); + } + + public static String K(StringBuilder sb, Map map, String str) { + sb.append(map); + sb.append(str); + return sb.toString(); + } + + public static String L(StringBuilder sb, boolean z2, String str) { + sb.append(z2); + sb.append(str); + return sb.toString(); + } + + public static String M(Object[] objArr, int i, String str, String str2) { + String format = String.format(str, Arrays.copyOf(objArr, i)); + m.checkNotNullExpressionValue(format, str2); + return format; + } + + public static StringBuilder N(char c) { + StringBuilder sb = new StringBuilder(); + sb.append(c); + return sb; + } + + public static StringBuilder O(int i, String str, int i2, String str2, int i3) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(i2); + sb.append(str2); + sb.append(i3); + return sb; + } + + public static StringBuilder P(int i, String str, long j, String str2) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(j); + sb.append(str2); + return sb; + } + + public static StringBuilder Q(int i, String str, String str2, String str3, String str4) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(str2); + sb.append(str3); + sb.append(str4); + return sb; + } + + public static StringBuilder R(String str) { + StringBuilder sb = new StringBuilder(); + sb.append(str); + return sb; + } + + public static StringBuilder S(String str, int i, String str2) { + StringBuilder sb = new StringBuilder(); + sb.append(str); + sb.append(i); + sb.append(str2); + return sb; + } + + public static ViewModelProvider.Factory T(Fragment fragment, String str) { + FragmentActivity requireActivity = fragment.requireActivity(); + m.checkNotNullExpressionValue(requireActivity, str); + return requireActivity.getDefaultViewModelProviderFactory(); + } + + public static StringBuilder U(String str, int i, String str2, int i2, String str3) { + StringBuilder sb = new StringBuilder(); + sb.append(str); + sb.append(i); + sb.append(str2); + sb.append(i2); + sb.append(str3); + return sb; + } + + public static StringBuilder V(String str, String str2) { + StringBuilder sb = new StringBuilder(); + sb.append(str); + sb.append(str2); + return sb; + } + + public static StringBuilder W(String str, String str2, String str3) { + StringBuilder sb = new StringBuilder(); + sb.append(str); + sb.append(str2); + sb.append(str3); + return sb; + } + + public static StringBuilder X(String str, i iVar, String str2) { + StringBuilder sb = new StringBuilder(); + sb.append(str); + sb.append(iVar); + sb.append(str2); + return sb; + } + + public static ArrayList Y(List list, String str) { + m.checkNotNullExpressionValue(list, str); + return new ArrayList(); + } + + public static Pair Z(e.b bVar, Float f, String str) { + return o.to(str, Long.valueOf(e.b.a(bVar, f))); + } + + public static float a(float f, float f2, float f3, float f4) { + return ((f - f2) * f3) + f4; + } + + public static Ref$ObjectRef a0(Model.JsonReader jsonReader, String str) { + m.checkNotNullParameter(jsonReader, str); + return new Ref$ObjectRef(); + } + + public static int b(String str, int i) { + return String.valueOf(str).length() + i; + } + + public static g b0(Class cls, String str, String str2, int i) { + return a0.property1(new y(cls, str, str2, i)); + } + + public static Object c(Channel channel, Map map) { + return map.get(Long.valueOf(channel.h())); + } + + public static void c0(int i, Canvas canvas, int i2, int i3) { + l.finallyStart(i); + canvas.restoreToCount(i2); + l.finallyEnd(i3); + } + + public static Object d(Guild guild, Map map) { + return map.get(Long.valueOf(guild.getId())); + } + + public static void d0(int i, String str, int i2, String str2) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(i2); + Log.w(str2, sb.toString()); + } + + public static Object e(User user, Map map) { + return map.get(Long.valueOf(user.getId())); + } + + public static ViewModelStore e0(Fragment fragment, String str, String str2) { + FragmentActivity requireActivity = fragment.requireActivity(); + m.checkNotNullExpressionValue(requireActivity, str); + ViewModelStore viewModelStore = requireActivity.getViewModelStore(); + m.checkNotNullExpressionValue(viewModelStore, str2); + return viewModelStore; + } + + public static String f(int i, String str, int i2) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(i2); + return sb.toString(); + } + + public static void f0(int i, String str, String str2, String str3) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(str2); + Log.w(str3, sb.toString()); + } + + public static String g(int i, String str, int i2, String str2, int i3) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(i2); + sb.append(str2); + sb.append(i3); + return sb.toString(); + } + + public static void g0(int i, String str, String str2, String str3, String str4) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(str2); + sb.append(str3); + Log.w(str4, sb.toString()); + } + + public static String h(int i, String str, long j, String str2) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(j); + sb.append(str2); + return sb.toString(); + } + + public static void h0(int i, HashMap hashMap, String str, int i2, String str2, int i3, String str3, int i4, String str4) { + hashMap.put(str, Integer.valueOf(i)); + hashMap.put(str2, Integer.valueOf(i2)); + hashMap.put(str3, Integer.valueOf(i3)); + hashMap.put(str4, Integer.valueOf(i4)); + } + + public static String i(int i, String str, String str2) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(str2); + return sb.toString(); + } + + public static void i0(Class cls, StringBuilder sb, String str) { + sb.append(cls.getName()); + sb.append(str); + } + + public static String j(int i, String str, String str2, String str3) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(str2); + sb.append(str3); + return sb.toString(); + } + + public static void j0(Class cls, StringBuilder sb, String str) { + sb.append(a0.getOrCreateKotlinClass(cls).getSimpleName()); + sb.append(str); + } + + public static String k(int i, String str, String str2, String str3, String str4) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(str2); + sb.append(str3); + sb.append(str4); + return sb.toString(); + } + + public static void k0(Class cls, StringBuilder sb, String str, KryoException kryoException) { + sb.append(cls.getName()); + sb.append(str); + kryoException.addTrace(sb.toString()); + } + + public static String l(RecyclerView recyclerView, StringBuilder sb) { + sb.append(recyclerView.exceptionLabel()); + return sb.toString(); + } + + public static void l0(String str, int i, String str2) { + Log.d(str2, str + i); + } + + public static int m(String str, int i, int i2) { + return (str.hashCode() + i) * i2; + } + + public static void m0(String str, String str2, b bVar) { + bVar.b(str + str2); + } + + public static String n(Class cls, StringBuilder sb, String str) { + sb.append(cls.getName()); + sb.append(str); + return sb.toString(); + } + + public static void n0(String str, String str2, String str3, String str4, String str5, String str6) { + m.checkNotNullParameter(str, str2); + m.checkNotNullParameter(str3, str4); + m.checkNotNullParameter(str5, str6); + } + + public static String o(Class cls, StringBuilder sb, String str, String str2) { + sb.append(cls.getSimpleName()); + sb.append(str); + sb.append(cls.getSimpleName()); + sb.append(str2); + return sb.toString(); + } + + public static void o0(StringBuilder sb, String str, String str2) { + sb.append(str); + Log.w(str2, sb.toString()); + } + + public static String p(String str, int i) { + return str + i; + } + + public static i4 p0(TextView textView, String str, CharSequence charSequence, c cVar) { + m.checkNotNullExpressionValue(textView, str); + textView.setText(charSequence); + return cVar.h(); + } + + public static String q(String str, int i, String str2) { + return str + i + str2; + } + + public static void q0(StringBuilder sb, String str, String str2, String str3, String str4) { + sb.append(str); + sb.append(str2); + sb.append(str3); + sb.append(str4); + } + + public static String r(String str, int i, String str2, int i2) { + return str + i + str2 + i2; + } + + public static void r0(v vVar, String str, h0.a.a.c cVar, int i) { + cVar.j(vVar.l(str)); + cVar.i(i); + } + + public static String s(String str, long j) { + return str + j; + } + + public static boolean s0(b.C0257b bVar, int i, String str) { + Boolean bool = bVar.get(i); + m.checkNotNullExpressionValue(bool, str); + return bool.booleanValue(); + } + + public static String t(String str, Fragment fragment, String str2) { + return str + fragment + str2; + } + + public static ParserException t0(int i, String str, int i2, Throwable th) { + StringBuilder sb = new StringBuilder(i); + sb.append(str); + sb.append(i2); + return ParserException.a(sb.toString(), th); + } + + public static String u(String str, Object obj) { + return str + obj; + } + + public static Object u0(Channel channel, Map map) { + return map.get(Long.valueOf(channel.f())); + } + + public static String v(String str, String str2) { + return str + str2; + } + + public static String w(String str, String str2, String str3) { + return str + str2 + str3; + } + + public static Context x(View view, String str, String str2) { + m.checkNotNullExpressionValue(view, str); + Context context = view.getContext(); + m.checkNotNullExpressionValue(context, str2); + return context; + } + + public static String y(String str, Type type) { + return str + type; + } + + public static String z(StringBuilder sb, int i, char c) { + sb.append(i); + sb.append(c); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/e/a/a.java b/app/src/main/java/b/e/a/a.java new file mode 100644 index 0000000000..b7c3b3ab4a --- /dev/null +++ b/app/src/main/java/b/e/a/a.java @@ -0,0 +1,48 @@ +package b.e.a; + +import com.discord.widgets.chat.input.MentionUtilsKt; +import java.util.Date; +/* compiled from: Log */ +public class a { + public static C0055a a = new C0055a(); + + /* compiled from: Log */ + /* renamed from: b.e.a.a$a reason: collision with other inner class name */ + public static class C0055a { + public long a = new Date().getTime(); + + public void a(int i, String str, String str2, Throwable th) { + StringBuilder sb = new StringBuilder(256); + long time = new Date().getTime() - this.a; + long j = time / 60000; + long j2 = (time / 1000) % 60; + if (j <= 9) { + sb.append('0'); + } + sb.append(j); + sb.append(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR); + if (j2 <= 9) { + sb.append('0'); + } + sb.append(j2); + if (i == 1) { + sb.append(" TRACE: "); + } else if (i == 2) { + sb.append(" DEBUG: "); + } else if (i == 3) { + sb.append(" INFO: "); + } else if (i == 4) { + sb.append(" WARN: "); + } else if (i == 5) { + sb.append(" ERROR: "); + } + if (str != null) { + sb.append('['); + sb.append(str); + sb.append("] "); + } + sb.append(str2); + System.out.println(sb.toString()); + } + } +} diff --git a/app/src/main/java/b/e/b/a.java b/app/src/main/java/b/e/b/a.java new file mode 100644 index 0000000000..d33973873c --- /dev/null +++ b/app/src/main/java/b/e/b/a.java @@ -0,0 +1,87 @@ +package b.e.b; + +import java.lang.ref.WeakReference; +import java.lang.reflect.Method; +import java.security.ProtectionDomain; +import java.util.WeakHashMap; +/* compiled from: AccessClassLoader */ +public class a extends ClassLoader { + public static final WeakHashMap> a = new WeakHashMap<>(); + + /* renamed from: b reason: collision with root package name */ + public static final ClassLoader f444b; + public static volatile a c; + public static volatile Method d; + + static { + ClassLoader classLoader = a.class.getClassLoader(); + if (classLoader == null) { + classLoader = ClassLoader.getSystemClassLoader(); + } + f444b = classLoader; + c = new a(classLoader); + } + + public a(ClassLoader classLoader) { + super(classLoader); + } + + public static a b(Class cls) { + ClassLoader classLoader = cls.getClassLoader(); + if (classLoader == null) { + classLoader = ClassLoader.getSystemClassLoader(); + } + ClassLoader classLoader2 = f444b; + if (classLoader2.equals(classLoader)) { + if (c == null) { + synchronized (a) { + if (c == null) { + c = new a(classLoader2); + } + } + } + return c; + } + WeakHashMap> weakHashMap = a; + synchronized (weakHashMap) { + WeakReference weakReference = weakHashMap.get(classLoader); + if (weakReference != null) { + a aVar = weakReference.get(); + if (aVar != null) { + return aVar; + } + weakHashMap.remove(classLoader); + } + a aVar2 = new a(classLoader); + weakHashMap.put(classLoader, new WeakReference<>(aVar2)); + return aVar2; + } + } + + public static Method c() throws Exception { + if (d == null) { + synchronized (a) { + Class cls = Integer.TYPE; + d = ClassLoader.class.getDeclaredMethod("defineClass", String.class, byte[].class, cls, cls, ProtectionDomain.class); + try { + d.setAccessible(true); + } catch (Exception unused) { + } + } + } + return d; + } + + public Class a(String str, byte[] bArr) throws ClassFormatError { + try { + return (Class) c().invoke(getParent(), str, bArr, 0, Integer.valueOf(bArr.length), getClass().getProtectionDomain()); + } catch (Exception unused) { + return defineClass(str, bArr, 0, bArr.length, a.class.getProtectionDomain()); + } + } + + @Override // java.lang.ClassLoader + public Class loadClass(String str, boolean z2) throws ClassNotFoundException { + return str.equals(c.class.getName()) ? c.class : str.equals(d.class.getName()) ? d.class : str.equals(b.class.getName()) ? b.class : str.equals(e.class.getName()) ? e.class : super.loadClass(str, z2); + } +} diff --git a/app/src/main/java/b/e/b/b.java b/app/src/main/java/b/e/b/b.java new file mode 100644 index 0000000000..42b5816543 --- /dev/null +++ b/app/src/main/java/b/e/b/b.java @@ -0,0 +1,121 @@ +package b.e.b; + +import b.d.b.a.a; +import com.discord.widgets.chat.input.MentionUtilsKt; +import h0.a.a.f; +import h0.a.a.q; +import java.lang.reflect.Modifier; +import java.util.Objects; +/* compiled from: ConstructorAccess */ +public abstract class b { + public static b a(Class cls) { + Class cls2; + int modifiers; + Class enclosingClass = cls.getEnclosingClass(); + boolean z2 = false; + boolean z3 = enclosingClass != null && cls.isMemberClass() && !Modifier.isStatic(cls.getModifiers()); + String name = cls.getName(); + String v = a.v(name, "ConstructorAccess"); + if (v.startsWith("java.")) { + v = a.v("reflectasm.", v); + } + a b2 = a.b(cls); + try { + cls2 = b2.loadClass(v); + } catch (ClassNotFoundException unused) { + synchronized (b2) { + try { + cls2 = b2.loadClass(v); + } catch (ClassNotFoundException unused2) { + String replace = v.replace('.', MentionUtilsKt.SLASH_CHAR); + String replace2 = name.replace('.', MentionUtilsKt.SLASH_CHAR); + String str = null; + if (!z3) { + try { + modifiers = cls.getDeclaredConstructor(null).getModifiers(); + if (Modifier.isPrivate(modifiers)) { + throw new RuntimeException("Class cannot be created (the no-arg constructor is private): " + cls.getName()); + } + } catch (Exception e) { + throw new RuntimeException("Class cannot be created (missing no-arg constructor): " + cls.getName(), e); + } + } else { + str = enclosingClass.getName().replace('.', MentionUtilsKt.SLASH_CHAR); + try { + modifiers = cls.getDeclaredConstructor(enclosingClass).getModifiers(); + if (Modifier.isPrivate(modifiers)) { + throw new RuntimeException("Non-static member class cannot be created (the enclosing class constructor is private): " + cls.getName()); + } + } catch (Exception e2) { + throw new RuntimeException("Non-static member class cannot be created (missing enclosing class constructor): " + cls.getName(), e2); + } + } + String str2 = Modifier.isPublic(modifiers) ? "com/esotericsoftware/reflectasm/PublicConstructorAccess" : "com/esotericsoftware/reflectasm/ConstructorAccess"; + f fVar = new f(0); + fVar.c(196653, 33, replace, null, str2, null); + q e3 = fVar.e(1, "", "()V", null, null); + e3.t(25, 0); + e3.o(183, str2, "", "()V"); + e3.e(177); + e3.n(1, 1); + q e4 = fVar.e(1, "newInstance", "()Ljava/lang/Object;", null, null); + e4.s(187, replace2); + e4.e(89); + e4.o(183, replace2, "", "()V"); + e4.e(176); + e4.n(2, 1); + b(fVar, replace2, str); + cls2 = b2.a(v, fVar.b()); + } + } + } + try { + b bVar = (b) cls2.newInstance(); + if (!(bVar instanceof e)) { + if (cls.getPackage() == cls2.getPackage()) { + ClassLoader classLoader = cls.getClassLoader(); + ClassLoader classLoader2 = cls2.getClassLoader(); + ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader(); + if (classLoader != null ? !(classLoader2 != null ? classLoader != classLoader2 : classLoader != systemClassLoader) : classLoader2 == null || classLoader2 == systemClassLoader) { + z2 = true; + } + } + if (!z2) { + StringBuilder sb = new StringBuilder(); + sb.append(!z3 ? "Class cannot be created (the no-arg constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): " : "Non-static member class cannot be created (the enclosing class constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): "); + sb.append(cls.getName()); + throw new RuntimeException(sb.toString()); + } + } + Objects.requireNonNull(bVar); + return bVar; + } catch (Throwable th) { + throw new RuntimeException(a.v("Exception constructing constructor access class: ", v), th); + } + } + + public static void b(f fVar, String str, String str2) { + q e = fVar.e(1, "newInstance", "(Ljava/lang/Object;)Ljava/lang/Object;", null, null); + if (str2 != null) { + e.s(187, str); + e.e(89); + e.t(25, 1); + e.s(192, str2); + e.e(89); + e.o(182, "java/lang/Object", "getClass", "()Ljava/lang/Class;"); + e.e(87); + e.o(183, str, "", "(L" + str2 + ";)V"); + e.e(176); + e.n(4, 2); + return; + } + e.s(187, "java/lang/UnsupportedOperationException"); + e.e(89); + e.j("Not an inner class."); + e.o(183, "java/lang/UnsupportedOperationException", "", "(Ljava/lang/String;)V"); + e.e(191); + e.n(3, 2); + } + + public abstract T c(); +} diff --git a/app/src/main/java/b/e/b/c.java b/app/src/main/java/b/e/b/c.java new file mode 100644 index 0000000000..5ada42c815 --- /dev/null +++ b/app/src/main/java/b/e/b/c.java @@ -0,0 +1,541 @@ +package b.e.b; + +import b.d.b.a.a; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import h0.a.a.f; +import h0.a.a.p; +import h0.a.a.q; +import h0.a.a.w; +import java.lang.reflect.Field; +import java.lang.reflect.Modifier; +import java.util.ArrayList; +/* compiled from: FieldAccess */ +public abstract class c { + public String[] a; + + public static c a(Class cls) { + Class cls2; + ArrayList arrayList = new ArrayList(); + Class cls3 = cls; + while (true) { + if (cls3 == Object.class) { + break; + } + Field[] declaredFields = cls3.getDeclaredFields(); + for (Field field : declaredFields) { + int modifiers = field.getModifiers(); + if (!Modifier.isStatic(modifiers) && !Modifier.isPrivate(modifiers)) { + arrayList.add(field); + } + } + cls3 = cls3.getSuperclass(); + } + int size = arrayList.size(); + String[] strArr = new String[size]; + Class[] clsArr = new Class[arrayList.size()]; + for (int i = 0; i < size; i++) { + strArr[i] = ((Field) arrayList.get(i)).getName(); + clsArr[i] = ((Field) arrayList.get(i)).getType(); + } + String name = cls.getName(); + String v = a.v(name, "FieldAccess"); + if (v.startsWith("java.")) { + v = a.v("reflectasm.", v); + } + a b2 = a.b(cls); + try { + cls2 = b2.loadClass(v); + } catch (ClassNotFoundException unused) { + synchronized (b2) { + try { + cls2 = b2.loadClass(v); + } catch (ClassNotFoundException unused2) { + String replace = v.replace('.', MentionUtilsKt.SLASH_CHAR); + String replace2 = name.replace('.', MentionUtilsKt.SLASH_CHAR); + f fVar = new f(0); + fVar.c(196653, 33, replace, null, "com/esotericsoftware/reflectasm/FieldAccess", null); + q e = fVar.e(1, "", "()V", null, null); + e.t(25, 0); + e.o(183, "com/esotericsoftware/reflectasm/FieldAccess", "", "()V"); + e.e(177); + e.n(1, 1); + m(fVar, replace2, arrayList); + p(fVar, replace2, arrayList); + n(fVar, replace2, arrayList, w.f3685b); + q(fVar, replace2, arrayList, w.f3685b); + n(fVar, replace2, arrayList, w.d); + q(fVar, replace2, arrayList, w.d); + n(fVar, replace2, arrayList, w.e); + q(fVar, replace2, arrayList, w.e); + n(fVar, replace2, arrayList, w.f); + q(fVar, replace2, arrayList, w.f); + n(fVar, replace2, arrayList, w.h); + q(fVar, replace2, arrayList, w.h); + n(fVar, replace2, arrayList, w.i); + q(fVar, replace2, arrayList, w.i); + n(fVar, replace2, arrayList, w.g); + q(fVar, replace2, arrayList, w.g); + n(fVar, replace2, arrayList, w.c); + q(fVar, replace2, arrayList, w.c); + o(fVar, replace2, arrayList); + cls2 = b2.a(v, fVar.b()); + } + } + } + try { + c cVar = (c) cls2.newInstance(); + cVar.a = strArr; + return cVar; + } catch (Throwable th) { + throw new RuntimeException(a.v("Error constructing field access class: ", v), th); + } + } + + public static void m(f fVar, String str, ArrayList arrayList) { + int i; + q e = fVar.e(1, "get", "(Ljava/lang/Object;I)Ljava/lang/Object;", null, null); + e.t(21, 2); + if (!arrayList.isEmpty()) { + i = 5; + int size = arrayList.size(); + p[] pVarArr = new p[size]; + for (int i2 = 0; i2 < size; i2++) { + pVarArr[i2] = new p(); + } + p pVar = new p(); + e.q(0, size - 1, pVar, pVarArr); + for (int i3 = 0; i3 < size; i3++) { + Field field = arrayList.get(i3); + e.i(pVarArr[i3]); + e.c(3, 0, null, 0, null); + e.t(25, 1); + e.s(192, str); + e.b(BaseTransientBottomBar.ANIMATION_FADE_DURATION, str, field.getName(), w.e(field.getType())); + switch (w.j(field.getType()).i()) { + case 1: + e.o(184, "java/lang/Boolean", "valueOf", "(Z)Ljava/lang/Boolean;"); + break; + case 2: + e.o(184, "java/lang/Character", "valueOf", "(C)Ljava/lang/Character;"); + break; + case 3: + e.o(184, "java/lang/Byte", "valueOf", "(B)Ljava/lang/Byte;"); + break; + case 4: + e.o(184, "java/lang/Short", "valueOf", "(S)Ljava/lang/Short;"); + break; + case 5: + e.o(184, "java/lang/Integer", "valueOf", "(I)Ljava/lang/Integer;"); + break; + case 6: + e.o(184, "java/lang/Float", "valueOf", "(F)Ljava/lang/Float;"); + break; + case 7: + e.o(184, "java/lang/Long", "valueOf", "(J)Ljava/lang/Long;"); + break; + case 8: + e.o(184, "java/lang/Double", "valueOf", "(D)Ljava/lang/Double;"); + break; + } + e.e(176); + } + e.i(pVar); + e.c(3, 0, null, 0, null); + } else { + i = 6; + } + r(e); + e.n(i, 3); + } + + public static void n(f fVar, String str, ArrayList arrayList, w wVar) { + String str2; + int i; + String d = wVar.d(); + int i2 = 172; + switch (wVar.i()) { + case 1: + str2 = "getBoolean"; + break; + case 2: + str2 = "getChar"; + break; + case 3: + str2 = "getByte"; + break; + case 4: + str2 = "getShort"; + break; + case 5: + str2 = "getInt"; + break; + case 6: + i2 = 174; + str2 = "getFloat"; + break; + case 7: + i2 = 173; + str2 = "getLong"; + break; + case 8: + i2 = HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION; + str2 = "getDouble"; + break; + default: + i2 = 176; + str2 = "get"; + break; + } + q e = fVar.e(1, str2, a.v("(Ljava/lang/Object;I)", d), null, null); + e.t(21, 2); + if (!arrayList.isEmpty()) { + int size = arrayList.size(); + p[] pVarArr = new p[size]; + p pVar = new p(); + boolean z2 = false; + for (int i3 = 0; i3 < size; i3++) { + if (w.j(arrayList.get(i3).getType()).equals(wVar)) { + pVarArr[i3] = new p(); + } else { + pVarArr[i3] = pVar; + z2 = true; + } + } + p pVar2 = new p(); + e.q(0, size - 1, pVar2, pVarArr); + for (int i4 = 0; i4 < size; i4++) { + Field field = arrayList.get(i4); + if (!pVarArr[i4].equals(pVar)) { + e.i(pVarArr[i4]); + e.c(3, 0, null, 0, null); + e.t(25, 1); + e.s(192, str); + e.b(BaseTransientBottomBar.ANIMATION_FADE_DURATION, str, field.getName(), d); + e.e(i2); + } + } + if (z2) { + e.i(pVar); + e.c(3, 0, null, 0, null); + s(e, wVar.c()); + } + e.i(pVar2); + e.c(3, 0, null, 0, null); + i = 5; + } else { + i = 6; + } + r(e); + e.n(i, 3); + } + + public static void o(f fVar, String str, ArrayList arrayList) { + int i; + q e = fVar.e(1, "getString", "(Ljava/lang/Object;I)Ljava/lang/String;", null, null); + e.t(21, 2); + if (!arrayList.isEmpty()) { + int size = arrayList.size(); + p[] pVarArr = new p[size]; + p pVar = new p(); + boolean z2 = false; + for (int i2 = 0; i2 < size; i2++) { + if (arrayList.get(i2).getType().equals(String.class)) { + pVarArr[i2] = new p(); + } else { + pVarArr[i2] = pVar; + z2 = true; + } + } + p pVar2 = new p(); + e.q(0, size - 1, pVar2, pVarArr); + for (int i3 = 0; i3 < size; i3++) { + if (!pVarArr[i3].equals(pVar)) { + e.i(pVarArr[i3]); + e.c(3, 0, null, 0, null); + e.t(25, 1); + e.s(192, str); + e.b(BaseTransientBottomBar.ANIMATION_FADE_DURATION, str, arrayList.get(i3).getName(), "Ljava/lang/String;"); + e.e(176); + } + } + if (z2) { + e.i(pVar); + e.c(3, 0, null, 0, null); + s(e, "String"); + } + e.i(pVar2); + e.c(3, 0, null, 0, null); + i = 5; + } else { + i = 6; + } + r(e); + e.n(i, 3); + } + + public static void p(f fVar, String str, ArrayList arrayList) { + int i; + q e = fVar.e(1, "set", "(Ljava/lang/Object;ILjava/lang/Object;)V", null, null); + e.t(21, 2); + if (!arrayList.isEmpty()) { + i = 5; + int size = arrayList.size(); + p[] pVarArr = new p[size]; + for (int i2 = 0; i2 < size; i2++) { + pVarArr[i2] = new p(); + } + p pVar = new p(); + e.q(0, size - 1, pVar, pVarArr); + for (int i3 = 0; i3 < size; i3++) { + Field field = arrayList.get(i3); + w j = w.j(field.getType()); + e.i(pVarArr[i3]); + e.c(3, 0, null, 0, null); + e.t(25, 1); + e.s(192, str); + e.t(25, 3); + switch (j.i()) { + case 1: + e.s(192, "java/lang/Boolean"); + e.o(182, "java/lang/Boolean", "booleanValue", "()Z"); + break; + case 2: + e.s(192, "java/lang/Character"); + e.o(182, "java/lang/Character", "charValue", "()C"); + break; + case 3: + e.s(192, "java/lang/Byte"); + e.o(182, "java/lang/Byte", "byteValue", "()B"); + break; + case 4: + e.s(192, "java/lang/Short"); + e.o(182, "java/lang/Short", "shortValue", "()S"); + break; + case 5: + e.s(192, "java/lang/Integer"); + e.o(182, "java/lang/Integer", "intValue", "()I"); + break; + case 6: + e.s(192, "java/lang/Float"); + e.o(182, "java/lang/Float", "floatValue", "()F"); + break; + case 7: + e.s(192, "java/lang/Long"); + e.o(182, "java/lang/Long", "longValue", "()J"); + break; + case 8: + e.s(192, "java/lang/Double"); + e.o(182, "java/lang/Double", "doubleValue", "()D"); + break; + case 9: + e.s(192, j.d()); + break; + case 10: + e.s(192, j.g()); + break; + } + e.b(181, str, field.getName(), j.d()); + e.e(177); + } + e.i(pVar); + e.c(3, 0, null, 0, null); + } else { + i = 6; + } + r(e); + e.n(i, 4); + } + + public static void q(f fVar, String str, ArrayList arrayList, w wVar) { + int i; + String str2; + int i2; + int i3; + String str3; + String str4; + String str5; + String d = wVar.d(); + switch (wVar.i()) { + case 1: + str4 = "setBoolean"; + str3 = str4; + i2 = 21; + str2 = str3; + i = 4; + break; + case 2: + str4 = "setChar"; + str3 = str4; + i2 = 21; + str2 = str3; + i = 4; + break; + case 3: + str4 = "setByte"; + str3 = str4; + i2 = 21; + str2 = str3; + i = 4; + break; + case 4: + str4 = "setShort"; + str3 = str4; + i2 = 21; + str2 = str3; + i = 4; + break; + case 5: + str4 = "setInt"; + str3 = str4; + i2 = 21; + str2 = str3; + i = 4; + break; + case 6: + i2 = 23; + str3 = "setFloat"; + str2 = str3; + i = 4; + break; + case 7: + i2 = 22; + str5 = "setLong"; + str2 = str5; + i = 5; + break; + case 8: + i2 = 24; + str5 = "setDouble"; + str2 = str5; + i = 5; + break; + default: + str3 = "set"; + i2 = 25; + str2 = str3; + i = 4; + break; + } + q e = fVar.e(1, str2, a.w("(Ljava/lang/Object;I", d, ")V"), null, null); + e.t(21, 2); + if (!arrayList.isEmpty()) { + int size = arrayList.size(); + p[] pVarArr = new p[size]; + p pVar = new p(); + boolean z2 = false; + for (int i4 = 0; i4 < size; i4++) { + if (w.j(arrayList.get(i4).getType()).equals(wVar)) { + pVarArr[i4] = new p(); + } else { + pVarArr[i4] = pVar; + z2 = true; + } + } + p pVar2 = new p(); + e.q(0, size - 1, pVar2, pVarArr); + for (int i5 = 0; i5 < size; i5++) { + if (!pVarArr[i5].equals(pVar)) { + e.i(pVarArr[i5]); + e.c(3, 0, null, 0, null); + e.t(25, 1); + e.s(192, str); + e.t(i2, 3); + e.b(181, str, arrayList.get(i5).getName(), d); + e.e(177); + } + } + if (z2) { + e.i(pVar); + e.c(3, 0, null, 0, null); + s(e, wVar.c()); + } + e.i(pVar2); + e.c(3, 0, null, 0, null); + i3 = 5; + } else { + i3 = 6; + } + r(e); + e.n(i3, i); + } + + public static q r(q qVar) { + qVar.s(187, "java/lang/IllegalArgumentException"); + qVar.e(89); + qVar.s(187, "java/lang/StringBuilder"); + qVar.e(89); + qVar.j("Field not found: "); + qVar.o(183, "java/lang/StringBuilder", "", "(Ljava/lang/String;)V"); + qVar.t(21, 2); + qVar.o(182, "java/lang/StringBuilder", "append", "(I)Ljava/lang/StringBuilder;"); + qVar.o(182, "java/lang/StringBuilder", "toString", "()Ljava/lang/String;"); + qVar.o(183, "java/lang/IllegalArgumentException", "", "(Ljava/lang/String;)V"); + qVar.e(191); + return qVar; + } + + public static q s(q qVar, String str) { + qVar.s(187, "java/lang/IllegalArgumentException"); + qVar.e(89); + qVar.s(187, "java/lang/StringBuilder"); + qVar.e(89); + qVar.j("Field not declared as " + str + ": "); + qVar.o(183, "java/lang/StringBuilder", "", "(Ljava/lang/String;)V"); + qVar.t(21, 2); + qVar.o(182, "java/lang/StringBuilder", "append", "(I)Ljava/lang/StringBuilder;"); + qVar.o(182, "java/lang/StringBuilder", "toString", "()Ljava/lang/String;"); + qVar.o(183, "java/lang/IllegalArgumentException", "", "(Ljava/lang/String;)V"); + qVar.e(191); + return qVar; + } + + public abstract void A(Object obj, int i, long j); + + public abstract void B(Object obj, int i, short s2); + + public abstract Object b(Object obj, int i); + + public abstract boolean c(Object obj, int i); + + public abstract byte d(Object obj, int i); + + public abstract char e(Object obj, int i); + + public abstract double f(Object obj, int i); + + public abstract float g(Object obj, int i); + + public int h(String str) { + int length = this.a.length; + for (int i = 0; i < length; i++) { + if (this.a[i].equals(str)) { + return i; + } + } + throw new IllegalArgumentException(a.v("Unable to find non-private field: ", str)); + } + + public abstract int i(Object obj, int i); + + public abstract long j(Object obj, int i); + + public abstract short k(Object obj, int i); + + public abstract String l(Object obj, int i); + + public abstract void t(Object obj, int i, Object obj2); + + public abstract void u(Object obj, int i, boolean z2); + + public abstract void v(Object obj, int i, byte b2); + + public abstract void w(Object obj, int i, char c); + + public abstract void x(Object obj, int i, double d); + + public abstract void y(Object obj, int i, float f); + + public abstract void z(Object obj, int i, int i2); +} diff --git a/app/src/main/java/b/e/b/d.java b/app/src/main/java/b/e/b/d.java new file mode 100644 index 0000000000..836977d29b --- /dev/null +++ b/app/src/main/java/b/e/b/d.java @@ -0,0 +1,305 @@ +package b.e.b; + +import b.d.b.a.a; +import com.discord.widgets.chat.input.MentionUtilsKt; +import h0.a.a.f; +import h0.a.a.p; +import h0.a.a.q; +import h0.a.a.w; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.util.ArrayList; +import java.util.Arrays; +/* compiled from: MethodAccess */ +public abstract class d { + public String[] a; + + /* renamed from: b reason: collision with root package name */ + public Class[][] f445b; + + public static void a(Class cls, ArrayList arrayList) { + Method[] declaredMethods = cls.getDeclaredMethods(); + for (Method method : declaredMethods) { + if (!Modifier.isPrivate(method.getModifiers())) { + arrayList.add(method); + } + } + } + + public static d b(Class cls) { + Class[][] clsArr; + Class cls2; + String str; + q qVar; + q qVar2; + p pVar; + int i; + p[] pVarArr; + Class[] clsArr2; + String str2; + Class[][] clsArr3; + ArrayList arrayList = new ArrayList(); + boolean isInterface = cls.isInterface(); + if (!isInterface) { + for (Class cls3 = cls; cls3 != Object.class; cls3 = cls3.getSuperclass()) { + a(cls3, arrayList); + } + } else { + e(cls, arrayList); + } + int size = arrayList.size(); + String[] strArr = new String[size]; + Class[][] clsArr4 = new Class[size][]; + Class[] clsArr5 = new Class[size]; + for (int i2 = 0; i2 < size; i2++) { + Method method = (Method) arrayList.get(i2); + strArr[i2] = method.getName(); + clsArr4[i2] = method.getParameterTypes(); + clsArr5[i2] = method.getReturnType(); + } + String name = cls.getName(); + String v = a.v(name, "MethodAccess"); + if (v.startsWith("java.")) { + v = a.v("reflectasm.", v); + } + a b2 = a.b(cls); + try { + cls2 = b2.loadClass(v); + clsArr = clsArr4; + } catch (ClassNotFoundException unused) { + synchronized (b2) { + try { + cls2 = b2.loadClass(v); + clsArr = clsArr4; + } catch (ClassNotFoundException unused2) { + String replace = v.replace('.', MentionUtilsKt.SLASH_CHAR); + String replace2 = name.replace('.', MentionUtilsKt.SLASH_CHAR); + f fVar = new f(1); + fVar.c(196653, 33, replace, null, "com/esotericsoftware/reflectasm/MethodAccess", null); + q e = fVar.e(1, "", "()V", null, null); + e.t(25, 0); + e.o(183, "com/esotericsoftware/reflectasm/MethodAccess", "", "()V"); + e.e(177); + e.n(0, 0); + q e2 = fVar.e(129, "invoke", "(Ljava/lang/Object;I[Ljava/lang/Object;)Ljava/lang/Object;", null, null); + if (!arrayList.isEmpty()) { + e2.t(25, 1); + e2.s(192, replace2); + e2.t(58, 4); + e2.t(21, 2); + p[] pVarArr2 = new p[size]; + for (int i3 = 0; i3 < size; i3++) { + pVarArr2[i3] = new p(); + } + p pVar2 = new p(); + e2.q(0, size - 1, pVar2, pVarArr2); + StringBuilder sb = new StringBuilder(128); + int i4 = 0; + while (i4 < size) { + e2.i(pVarArr2[i4]); + if (i4 == 0) { + i = i4; + pVar = pVar2; + pVarArr = pVarArr2; + qVar2 = e2; + e2.c(1, 1, new Object[]{replace2}, 0, null); + } else { + i = i4; + pVar = pVar2; + pVarArr = pVarArr2; + qVar2 = e2; + qVar2.c(3, 0, null, 0, null); + } + e2 = qVar2; + e2.t(25, 4); + sb.setLength(0); + sb.append('('); + Class[] clsArr6 = clsArr4[i]; + Class cls4 = clsArr5[i]; + int i5 = 0; + while (i5 < clsArr6.length) { + e2.t(25, 3); + e2.g(16, i5); + e2.e(50); + w j = w.j(clsArr6[i5]); + switch (j.i()) { + case 1: + clsArr3 = clsArr4; + str2 = v; + clsArr2 = clsArr6; + e2.s(192, "java/lang/Boolean"); + e2.o(182, "java/lang/Boolean", "booleanValue", "()Z"); + break; + case 2: + clsArr3 = clsArr4; + str2 = v; + clsArr2 = clsArr6; + e2.s(192, "java/lang/Character"); + e2.o(182, "java/lang/Character", "charValue", "()C"); + break; + case 3: + clsArr3 = clsArr4; + str2 = v; + clsArr2 = clsArr6; + e2.s(192, "java/lang/Byte"); + e2.o(182, "java/lang/Byte", "byteValue", "()B"); + break; + case 4: + clsArr3 = clsArr4; + str2 = v; + clsArr2 = clsArr6; + e2.s(192, "java/lang/Short"); + e2.o(182, "java/lang/Short", "shortValue", "()S"); + break; + case 5: + clsArr3 = clsArr4; + str2 = v; + clsArr2 = clsArr6; + e2.s(192, "java/lang/Integer"); + e2.o(182, "java/lang/Integer", "intValue", "()I"); + break; + case 6: + clsArr3 = clsArr4; + str2 = v; + clsArr2 = clsArr6; + e2.s(192, "java/lang/Float"); + e2.o(182, "java/lang/Float", "floatValue", "()F"); + break; + case 7: + clsArr3 = clsArr4; + str2 = v; + clsArr2 = clsArr6; + e2.s(192, "java/lang/Long"); + e2.o(182, "java/lang/Long", "longValue", "()J"); + break; + case 8: + clsArr2 = clsArr6; + e2.s(192, "java/lang/Double"); + clsArr3 = clsArr4; + str2 = v; + e2.o(182, "java/lang/Double", "doubleValue", "()D"); + break; + case 9: + clsArr2 = clsArr6; + e2.s(192, j.d()); + clsArr3 = clsArr4; + str2 = v; + break; + case 10: + clsArr2 = clsArr6; + e2.s(192, j.g()); + clsArr3 = clsArr4; + str2 = v; + break; + default: + clsArr3 = clsArr4; + str2 = v; + clsArr2 = clsArr6; + break; + } + sb.append(j.d()); + i5++; + clsArr6 = clsArr2; + clsArr5 = clsArr5; + clsArr4 = clsArr3; + v = str2; + } + sb.append(')'); + sb.append(w.e(cls4)); + e2.o(isInterface ? 185 : Modifier.isStatic(((Method) arrayList.get(i)).getModifiers()) ? 184 : 182, replace2, strArr[i], sb.toString()); + switch (w.j(cls4).i()) { + case 0: + e2.e(1); + break; + case 1: + e2.o(184, "java/lang/Boolean", "valueOf", "(Z)Ljava/lang/Boolean;"); + break; + case 2: + e2.o(184, "java/lang/Character", "valueOf", "(C)Ljava/lang/Character;"); + break; + case 3: + e2.o(184, "java/lang/Byte", "valueOf", "(B)Ljava/lang/Byte;"); + break; + case 4: + e2.o(184, "java/lang/Short", "valueOf", "(S)Ljava/lang/Short;"); + break; + case 5: + e2.o(184, "java/lang/Integer", "valueOf", "(I)Ljava/lang/Integer;"); + break; + case 6: + e2.o(184, "java/lang/Float", "valueOf", "(F)Ljava/lang/Float;"); + break; + case 7: + e2.o(184, "java/lang/Long", "valueOf", "(J)Ljava/lang/Long;"); + break; + case 8: + e2.o(184, "java/lang/Double", "valueOf", "(D)Ljava/lang/Double;"); + break; + } + e2.e(176); + i4 = i + 1; + size = size; + pVarArr2 = pVarArr; + clsArr5 = clsArr5; + clsArr4 = clsArr4; + v = v; + pVar2 = pVar; + } + clsArr = clsArr4; + str = v; + e2.i(pVar2); + qVar = e2; + e2.c(3, 0, null, 0, null); + } else { + clsArr = clsArr4; + str = v; + qVar = e2; + } + qVar.s(187, "java/lang/IllegalArgumentException"); + qVar.e(89); + qVar.s(187, "java/lang/StringBuilder"); + qVar.e(89); + qVar.j("Method not found: "); + qVar.o(183, "java/lang/StringBuilder", "", "(Ljava/lang/String;)V"); + qVar.t(21, 2); + qVar.o(182, "java/lang/StringBuilder", "append", "(I)Ljava/lang/StringBuilder;"); + qVar.o(182, "java/lang/StringBuilder", "toString", "()Ljava/lang/String;"); + qVar.o(183, "java/lang/IllegalArgumentException", "", "(Ljava/lang/String;)V"); + qVar.e(191); + qVar.n(0, 0); + v = str; + cls2 = b2.a(v, fVar.b()); + } + } + } + try { + d dVar = (d) cls2.newInstance(); + dVar.a = strArr; + dVar.f445b = clsArr; + return dVar; + } catch (Throwable th) { + throw new RuntimeException(a.v("Error constructing method access class: ", v), th); + } + } + + public static void e(Class cls, ArrayList arrayList) { + a(cls, arrayList); + for (Class cls2 : cls.getInterfaces()) { + e(cls2, arrayList); + } + } + + public int c(String str, Class... clsArr) { + int length = this.a.length; + for (int i = 0; i < length; i++) { + if (this.a[i].equals(str) && Arrays.equals(clsArr, this.f445b[i])) { + return i; + } + } + StringBuilder W = a.W("Unable to find non-private method: ", str, " "); + W.append(Arrays.toString(clsArr)); + throw new IllegalArgumentException(W.toString()); + } + + public abstract Object d(Object obj, int i, Object... objArr); +} diff --git a/app/src/main/java/b/e/b/e.java b/app/src/main/java/b/e/b/e.java new file mode 100644 index 0000000000..1c45648e26 --- /dev/null +++ b/app/src/main/java/b/e/b/e.java @@ -0,0 +1,4 @@ +package b.e.b; +/* compiled from: PublicConstructorAccess */ +public abstract class e extends b { +} diff --git a/app/src/main/java/b/f/a/a.java b/app/src/main/java/b/f/a/a.java new file mode 100644 index 0000000000..7ffec8df81 --- /dev/null +++ b/app/src/main/java/b/f/a/a.java @@ -0,0 +1,28 @@ +package b.f.a; + +import java.io.File; +import java.util.Objects; +/* compiled from: FileBinaryResource */ +public class a { + public final File a; + + public a(File file) { + Objects.requireNonNull(file); + this.a = file; + } + + public long a() { + return this.a.length(); + } + + public boolean equals(Object obj) { + if (obj == null || !(obj instanceof a)) { + return false; + } + return this.a.equals(((a) obj).a); + } + + public int hashCode() { + return this.a.hashCode(); + } +} diff --git a/app/src/main/java/b/f/b/a/a.java b/app/src/main/java/b/f/b/a/a.java new file mode 100644 index 0000000000..45e6ddcfd7 --- /dev/null +++ b/app/src/main/java/b/f/b/a/a.java @@ -0,0 +1,4 @@ +package b.f.b.a; +/* compiled from: CacheErrorLogger */ +public interface a { +} diff --git a/app/src/main/java/b/f/b/a/b.java b/app/src/main/java/b/f/b/a/b.java new file mode 100644 index 0000000000..3480cd479c --- /dev/null +++ b/app/src/main/java/b/f/b/a/b.java @@ -0,0 +1,4 @@ +package b.f.b.a; +/* compiled from: CacheEventListener */ +public interface b { +} diff --git a/app/src/main/java/b/f/b/a/c.java b/app/src/main/java/b/f/b/a/c.java new file mode 100644 index 0000000000..b72c6d32ba --- /dev/null +++ b/app/src/main/java/b/f/b/a/c.java @@ -0,0 +1,38 @@ +package b.f.b.a; + +import com.facebook.cache.common.CacheKey; +import java.util.Objects; +/* compiled from: MultiCacheKey */ +public class c implements CacheKey { + @Override // com.facebook.cache.common.CacheKey + public boolean a() { + return false; + } + + @Override // com.facebook.cache.common.CacheKey + public String b() { + throw null; + } + + @Override // com.facebook.cache.common.CacheKey + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof c)) { + return false; + } + Objects.requireNonNull((c) obj); + throw null; + } + + @Override // com.facebook.cache.common.CacheKey + public int hashCode() { + throw null; + } + + public String toString() { + new StringBuilder().append("MultiCacheKey:"); + throw null; + } +} diff --git a/app/src/main/java/b/f/b/a/d.java b/app/src/main/java/b/f/b/a/d.java new file mode 100644 index 0000000000..187a419814 --- /dev/null +++ b/app/src/main/java/b/f/b/a/d.java @@ -0,0 +1,5 @@ +package b.f.b.a; +/* compiled from: NoOpCacheErrorLogger */ +public class d implements a { + public static d a; +} diff --git a/app/src/main/java/b/f/b/a/e.java b/app/src/main/java/b/f/b/a/e.java new file mode 100644 index 0000000000..1aa5dd39fd --- /dev/null +++ b/app/src/main/java/b/f/b/a/e.java @@ -0,0 +1,5 @@ +package b.f.b.a; +/* compiled from: NoOpCacheEventListener */ +public class e implements b { + public static e a; +} diff --git a/app/src/main/java/b/f/b/a/f.java b/app/src/main/java/b/f/b/a/f.java new file mode 100644 index 0000000000..966b3cb684 --- /dev/null +++ b/app/src/main/java/b/f/b/a/f.java @@ -0,0 +1,46 @@ +package b.f.b.a; + +import com.facebook.cache.common.CacheKey; +import java.util.Objects; +/* compiled from: SimpleCacheKey */ +public class f implements CacheKey { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f446b = false; + + public f(String str) { + Objects.requireNonNull(str); + this.a = str; + } + + @Override // com.facebook.cache.common.CacheKey + public boolean a() { + return this.f446b; + } + + @Override // com.facebook.cache.common.CacheKey + public String b() { + return this.a; + } + + @Override // com.facebook.cache.common.CacheKey + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof f) { + return this.a.equals(((f) obj).a); + } + return false; + } + + @Override // com.facebook.cache.common.CacheKey + public int hashCode() { + return this.a.hashCode(); + } + + public String toString() { + return this.a; + } +} diff --git a/app/src/main/java/b/f/b/a/g.java b/app/src/main/java/b/f/b/a/g.java new file mode 100644 index 0000000000..e546172b0d --- /dev/null +++ b/app/src/main/java/b/f/b/a/g.java @@ -0,0 +1,4 @@ +package b.f.b.a; +/* compiled from: WriterCallback */ +public interface g { +} diff --git a/app/src/main/java/b/f/b/b/a.java b/app/src/main/java/b/f/b/b/a.java new file mode 100644 index 0000000000..11af0a0e53 --- /dev/null +++ b/app/src/main/java/b/f/b/b/a.java @@ -0,0 +1,429 @@ +package b.f.b.b; + +import android.os.Environment; +import androidx.annotation.VisibleForTesting; +import b.f.b.b.c; +import b.f.j.c.h; +import com.facebook.common.file.FileUtils$CreateDirectoryException; +import com.facebook.common.file.FileUtils$ParentDirNotFoundException; +import com.facebook.common.file.FileUtils$RenameException; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +/* compiled from: DefaultDiskStorage */ +public class a implements c { + public static final long a = TimeUnit.MINUTES.toMillis(30); + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ int f447b = 0; + public final File c; + public final boolean d; + public final File e; + public final b.f.b.a.a f; + public final b.f.d.k.a g; + + /* compiled from: DefaultDiskStorage */ + public class b implements b.f.d.c.a { + public final List a = new ArrayList(); + + public b(C0056a aVar) { + } + + @Override // b.f.d.c.a + public void a(File file) { + d h = a.h(a.this, file); + if (h != null && h.a == ".cnt") { + this.a.add(new c(h.f450b, file, null)); + } + } + + @Override // b.f.d.c.a + public void b(File file) { + } + + @Override // b.f.d.c.a + public void c(File file) { + } + } + + /* compiled from: DefaultDiskStorage */ + @VisibleForTesting + public static class c implements c.a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final b.f.a.a f449b; + public long c = -1; + public long d = -1; + + public c(String str, File file, C0056a aVar) { + Objects.requireNonNull(str); + this.a = str; + this.f449b = new b.f.a.a(file); + } + + @Override // b.f.b.b.c.a + public long a() { + if (this.d < 0) { + this.d = this.f449b.a.lastModified(); + } + return this.d; + } + + @Override // b.f.b.b.c.a + public String getId() { + return this.a; + } + + @Override // b.f.b.b.c.a + public long getSize() { + if (this.c < 0) { + this.c = this.f449b.a(); + } + return this.c; + } + } + + /* compiled from: DefaultDiskStorage */ + public static class d { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f450b; + + public d(String str, String str2) { + this.a = str; + this.f450b = str2; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(this.a); + sb.append("("); + return b.d.b.a.a.H(sb, this.f450b, ")"); + } + } + + /* compiled from: DefaultDiskStorage */ + public static class e extends IOException { + public final long actual; + public final long expected; + + public e(long j, long j2) { + super("File was not written completely. Expected: " + j + ", found: " + j2); + this.expected = j; + this.actual = j2; + } + } + + /* compiled from: DefaultDiskStorage */ + @VisibleForTesting + public class f implements c.b { + public final String a; + @VisibleForTesting + + /* renamed from: b reason: collision with root package name */ + public final File f451b; + + public f(String str, File file) { + this.a = str; + this.f451b = file; + } + + public boolean a() { + return !this.f451b.exists() || this.f451b.delete(); + } + + public b.f.a.a b(Object obj) throws IOException { + Objects.requireNonNull((b.f.d.k.c) a.this.g); + long currentTimeMillis = System.currentTimeMillis(); + File j = a.this.j(this.a); + try { + b.c.a.a0.d.O1(this.f451b, j); + if (j.exists()) { + j.setLastModified(currentTimeMillis); + } + return new b.f.a.a(j); + } catch (FileUtils$RenameException e) { + Throwable cause = e.getCause(); + if (cause != null && !(cause instanceof FileUtils$ParentDirNotFoundException)) { + boolean z2 = cause instanceof FileNotFoundException; + } + b.f.b.a.a aVar = a.this.f; + int i = a.f447b; + Objects.requireNonNull((b.f.b.a.d) aVar); + throw e; + } + } + + /* JADX INFO: finally extract failed */ + public void c(b.f.b.a.g gVar, Object obj) throws IOException { + try { + FileOutputStream fileOutputStream = new FileOutputStream(this.f451b); + try { + b.f.d.d.b bVar = new b.f.d.d.b(fileOutputStream); + h hVar = (h) gVar; + hVar.f546b.c.a(hVar.a.e(), bVar); + bVar.flush(); + long j = bVar.j; + fileOutputStream.close(); + if (this.f451b.length() != j) { + throw new e(j, this.f451b.length()); + } + } catch (Throwable th) { + fileOutputStream.close(); + throw th; + } + } catch (FileNotFoundException e) { + b.f.b.a.a aVar = a.this.f; + int i = a.f447b; + Objects.requireNonNull((b.f.b.a.d) aVar); + throw e; + } + } + } + + /* compiled from: DefaultDiskStorage */ + public class g implements b.f.d.c.a { + public boolean a; + + public g(C0056a aVar) { + } + + /* JADX WARNING: Code restructure failed: missing block: B:7:0x002b, code lost: + if (r3 > (java.lang.System.currentTimeMillis() - b.f.b.b.a.a)) goto L_0x0036; + */ + @Override // b.f.d.c.a + public void a(File file) { + if (this.a) { + d h = a.h(a.this, file); + boolean z2 = false; + if (h != null) { + String str = h.a; + if (str == ".tmp") { + long lastModified = file.lastModified(); + Objects.requireNonNull((b.f.d.k.c) a.this.g); + } else { + if (str == ".cnt") { + z2 = true; + } + b.c.a.a0.d.B(z2); + } + z2 = true; + } + if (z2) { + return; + } + } + file.delete(); + } + + @Override // b.f.d.c.a + public void b(File file) { + if (!this.a && file.equals(a.this.e)) { + this.a = true; + } + } + + @Override // b.f.d.c.a + public void c(File file) { + if (!a.this.c.equals(file) && !this.a) { + file.delete(); + } + if (this.a && file.equals(a.this.e)) { + this.a = false; + } + } + } + + /* JADX WARNING: Removed duplicated region for block: B:14:0x005b */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x0069 A[SYNTHETIC, Splitter:B:19:0x0069] */ + public a(File file, int i, b.f.b.a.a aVar) { + boolean z2; + this.c = file; + boolean z3 = false; + try { + File externalStorageDirectory = Environment.getExternalStorageDirectory(); + if (externalStorageDirectory != null) { + try { + z2 = file.getCanonicalPath().contains(externalStorageDirectory.toString()); + } catch (IOException unused) { + Objects.requireNonNull((b.f.b.a.d) aVar); + } + this.d = z2; + File file2 = new File(this.c, String.format(null, "%s.ols%d.%d", "v2", 100, Integer.valueOf(i))); + this.e = file2; + this.f = aVar; + if (this.c.exists()) { + if (!file2.exists()) { + b.c.a.a0.d.Y(this.c); + } + if (z3) { + try { + b.c.a.a0.d.j1(file2); + } catch (FileUtils$CreateDirectoryException unused2) { + b.f.b.a.a aVar2 = this.f; + StringBuilder R = b.d.b.a.a.R("version directory could not be created: "); + R.append(this.e); + R.toString(); + Objects.requireNonNull((b.f.b.a.d) aVar2); + } + } + this.g = b.f.d.k.c.a; + } + z3 = true; + if (z3) { + } + this.g = b.f.d.k.c.a; + } + } catch (Exception unused3) { + Objects.requireNonNull((b.f.b.a.d) aVar); + } + z2 = false; + this.d = z2; + File file2 = new File(this.c, String.format(null, "%s.ols%d.%d", "v2", 100, Integer.valueOf(i))); + this.e = file2; + this.f = aVar; + if (this.c.exists()) { + } + z3 = true; + if (z3) { + } + this.g = b.f.d.k.c.a; + } + + public static d h(a aVar, File file) { + d dVar; + Objects.requireNonNull(aVar); + String name = file.getName(); + int lastIndexOf = name.lastIndexOf(46); + if (lastIndexOf > 0) { + String substring = name.substring(lastIndexOf); + String str = ".cnt"; + if (!str.equals(substring)) { + str = ".tmp".equals(substring) ? ".tmp" : null; + } + if (str != null) { + String substring2 = name.substring(0, lastIndexOf); + if (str.equals(".tmp")) { + int lastIndexOf2 = substring2.lastIndexOf(46); + if (lastIndexOf2 > 0) { + substring2 = substring2.substring(0, lastIndexOf2); + } + } + dVar = new d(str, substring2); + if (dVar == null && new File(aVar.k(dVar.f450b)).equals(file.getParentFile())) { + return dVar; + } + return null; + } + } + dVar = null; + if (dVar == null) { + return null; + } + return dVar; + } + + @Override // b.f.b.b.c + public void a() { + b.c.a.a0.d.m2(this.c, new g(null)); + } + + @Override // b.f.b.b.c + public c.b b(String str, Object obj) throws IOException { + File file = new File(k(str)); + if (!file.exists()) { + try { + b.c.a.a0.d.j1(file); + } catch (FileUtils$CreateDirectoryException e2) { + Objects.requireNonNull((b.f.b.a.d) this.f); + throw e2; + } + } + try { + return new f(str, File.createTempFile(str + ".", ".tmp", file)); + } catch (IOException e3) { + Objects.requireNonNull((b.f.b.a.d) this.f); + throw e3; + } + } + + @Override // b.f.b.b.c + public boolean c(String str, Object obj) { + File j = j(str); + boolean exists = j.exists(); + if (exists) { + Objects.requireNonNull((b.f.d.k.c) this.g); + j.setLastModified(System.currentTimeMillis()); + } + return exists; + } + + @Override // b.f.b.b.c + public b.f.a.a d(String str, Object obj) { + File j = j(str); + if (!j.exists()) { + return null; + } + Objects.requireNonNull((b.f.d.k.c) this.g); + j.setLastModified(System.currentTimeMillis()); + return new b.f.a.a(j); + } + + @Override // b.f.b.b.c + public Collection e() throws IOException { + b bVar = new b(null); + b.c.a.a0.d.m2(this.e, bVar); + return Collections.unmodifiableList(bVar.a); + } + + @Override // b.f.b.b.c + public long f(String str) { + return i(j(str)); + } + + @Override // b.f.b.b.c + public long g(c.a aVar) { + return i(((c) aVar).f449b.a); + } + + public final long i(File file) { + if (!file.exists()) { + return 0; + } + long length = file.length(); + if (file.delete()) { + return length; + } + return -1; + } + + @Override // b.f.b.b.c + public boolean isExternal() { + return this.d; + } + + @VisibleForTesting + public File j(String str) { + StringBuilder R = b.d.b.a.a.R(k(str)); + R.append(File.separator); + R.append(str); + R.append(".cnt"); + return new File(R.toString()); + } + + public final String k(String str) { + String valueOf = String.valueOf(Math.abs(str.hashCode() % 100)); + StringBuilder sb = new StringBuilder(); + sb.append(this.e); + return b.d.b.a.a.H(sb, File.separator, valueOf); + } +} diff --git a/app/src/main/java/b/f/b/b/b.java b/app/src/main/java/b/f/b/b/b.java new file mode 100644 index 0000000000..8e02d2d24c --- /dev/null +++ b/app/src/main/java/b/f/b/b/b.java @@ -0,0 +1,28 @@ +package b.f.b.b; + +import b.f.b.b.c; +/* compiled from: DefaultEntryEvictionComparatorSupplier */ +public class b implements g { + + /* compiled from: DefaultEntryEvictionComparatorSupplier */ + public class a implements f { + public a(b bVar) { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(c.a aVar, c.a aVar2) { + long a = aVar.a(); + long a2 = aVar2.a(); + if (a < a2) { + return -1; + } + return a2 == a ? 0 : 1; + } + } + + @Override // b.f.b.b.g + public f get() { + return new a(this); + } +} diff --git a/app/src/main/java/b/f/b/b/c.java b/app/src/main/java/b/f/b/b/c.java new file mode 100644 index 0000000000..64003c2531 --- /dev/null +++ b/app/src/main/java/b/f/b/b/c.java @@ -0,0 +1,36 @@ +package b.f.b.b; + +import java.io.IOException; +import java.util.Collection; +/* compiled from: DiskStorage */ +public interface c { + + /* compiled from: DiskStorage */ + public interface a { + long a(); + + String getId(); + + long getSize(); + } + + /* compiled from: DiskStorage */ + public interface b { + } + + void a(); + + b b(String str, Object obj) throws IOException; + + boolean c(String str, Object obj) throws IOException; + + b.f.a.a d(String str, Object obj) throws IOException; + + Collection e() throws IOException; + + long f(String str) throws IOException; + + long g(a aVar) throws IOException; + + boolean isExternal(); +} diff --git a/app/src/main/java/b/f/b/b/d.java b/app/src/main/java/b/f/b/b/d.java new file mode 100644 index 0000000000..792b7ff157 --- /dev/null +++ b/app/src/main/java/b/f/b/b/d.java @@ -0,0 +1,417 @@ +package b.f.b.b; + +import android.os.StatFs; +import android.os.SystemClock; +import androidx.annotation.VisibleForTesting; +import b.f.b.a.e; +import b.f.b.a.g; +import b.f.b.b.a; +import b.f.b.b.c; +import com.facebook.cache.common.CacheKey; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.Executor; +import java.util.concurrent.TimeUnit; +/* compiled from: DiskStorageCache */ +public class d implements h { + public static final long a = TimeUnit.HOURS.toMillis(2); + + /* renamed from: b reason: collision with root package name */ + public static final long f453b = TimeUnit.MINUTES.toMillis(30); + public final long c; + public final long d; + public final CountDownLatch e; + public long f; + public final b.f.b.a.b g; + @VisibleForTesting + public final Set h; + public long i; + public final b.f.d.i.a j; + public final c k; + public final g l; + public final b.f.b.a.a m; + public final boolean n; + public final b o; + public final b.f.d.k.a p; + public final Object q = new Object(); + + /* compiled from: DiskStorageCache */ + public class a implements Runnable { + public a() { + } + + @Override // java.lang.Runnable + public void run() { + synchronized (d.this.q) { + d.this.e(); + } + Objects.requireNonNull(d.this); + d.this.e.countDown(); + } + } + + /* compiled from: DiskStorageCache */ + @VisibleForTesting + public static class b { + public boolean a = false; + + /* renamed from: b reason: collision with root package name */ + public long f454b = -1; + public long c = -1; + + public synchronized long a() { + return this.f454b; + } + + public synchronized void b(long j, long j2) { + if (this.a) { + this.f454b += j; + this.c += j2; + } + } + } + + /* compiled from: DiskStorageCache */ + public static class c { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f455b; + public final long c; + + public c(long j, long j2, long j3) { + this.a = j; + this.f455b = j2; + this.c = j3; + } + } + + public d(c cVar, g gVar, c cVar2, b.f.b.a.b bVar, b.f.b.a.a aVar, b.f.d.a.a aVar2, Executor executor, boolean z2) { + b.f.d.i.a aVar3; + this.c = cVar2.f455b; + long j = cVar2.c; + this.d = j; + this.f = j; + b.f.d.i.a aVar4 = b.f.d.i.a.a; + synchronized (b.f.d.i.a.class) { + if (b.f.d.i.a.a == null) { + b.f.d.i.a.a = new b.f.d.i.a(); + } + aVar3 = b.f.d.i.a.a; + } + this.j = aVar3; + this.k = cVar; + this.l = gVar; + this.i = -1; + this.g = bVar; + this.m = aVar; + this.o = new b(); + this.p = b.f.d.k.c.a; + this.n = z2; + this.h = new HashSet(); + if (z2) { + this.e = new CountDownLatch(1); + executor.execute(new a()); + return; + } + this.e = new CountDownLatch(0); + } + + public final void a(long j, int i) throws IOException { + try { + Collection c2 = c(this.k.e()); + long a2 = this.o.a() - j; + int i2 = 0; + Iterator it = ((ArrayList) c2).iterator(); + long j2 = 0; + while (it.hasNext()) { + c.a aVar = (c.a) it.next(); + if (j2 > a2) { + break; + } + long g = this.k.g(aVar); + this.h.remove(aVar.getId()); + if (g > 0) { + i2++; + j2 += g; + i a3 = i.a(); + aVar.getId(); + Objects.requireNonNull((e) this.g); + a3.b(); + } + } + this.o.b(-j2, (long) (-i2)); + this.k.a(); + } catch (IOException e) { + b.f.b.a.a aVar2 = this.m; + e.getMessage(); + Objects.requireNonNull((b.f.b.a.d) aVar2); + throw e; + } + } + + public b.f.a.a b(CacheKey cacheKey) { + b.f.a.a aVar; + i a2 = i.a(); + a2.d = cacheKey; + try { + synchronized (this.q) { + List y0 = b.c.a.a0.d.y0(cacheKey); + int i = 0; + String str = null; + aVar = null; + while (true) { + ArrayList arrayList = (ArrayList) y0; + if (i >= arrayList.size()) { + break; + } + str = (String) arrayList.get(i); + aVar = this.k.d(str, cacheKey); + if (aVar != null) { + break; + } + i++; + } + if (aVar == null) { + Objects.requireNonNull((e) this.g); + this.h.remove(str); + } else { + Objects.requireNonNull(str); + Objects.requireNonNull((e) this.g); + this.h.add(str); + } + } + return aVar; + } catch (IOException unused) { + Objects.requireNonNull((b.f.b.a.d) this.m); + Objects.requireNonNull((e) this.g); + return null; + } finally { + a2.b(); + } + } + + public final Collection c(Collection collection) { + Objects.requireNonNull((b.f.d.k.c) this.p); + long currentTimeMillis = System.currentTimeMillis() + a; + ArrayList arrayList = new ArrayList(collection.size()); + ArrayList arrayList2 = new ArrayList(collection.size()); + for (c.a aVar : collection) { + if (aVar.a() > currentTimeMillis) { + arrayList.add(aVar); + } else { + arrayList2.add(aVar); + } + } + Collections.sort(arrayList2, this.l.get()); + arrayList.addAll(arrayList2); + return arrayList; + } + + public b.f.a.a d(CacheKey cacheKey, g gVar) throws IOException { + String U1; + b.f.a.a b2; + i a2 = i.a(); + a2.d = cacheKey; + Objects.requireNonNull((e) this.g); + synchronized (this.q) { + try { + if (!(cacheKey instanceof b.f.b.a.c)) { + U1 = b.c.a.a0.d.U1(cacheKey); + } else { + b.f.b.a.c cVar = (b.f.b.a.c) cacheKey; + throw null; + } + } catch (UnsupportedEncodingException e) { + throw new RuntimeException(e); + } + } + try { + c.b g = g(U1, cacheKey); + try { + a.f fVar = (a.f) g; + fVar.c(gVar, cacheKey); + synchronized (this.q) { + b2 = fVar.b(cacheKey); + this.h.add(U1); + this.o.b(b2.a(), 1); + } + b2.a(); + this.o.a(); + Objects.requireNonNull((e) this.g); + if (!fVar.a()) { + b.f.d.e.a.a(d.class, "Failed to delete temp file"); + } + a2.b(); + return b2; + } catch (Throwable th) { + if (!((a.f) g).a()) { + b.f.d.e.a.a(d.class, "Failed to delete temp file"); + } + throw th; + } + } catch (IOException e2) { + Objects.requireNonNull((e) this.g); + b.f.d.e.a.b(d.class, "Failed inserting a file into the cache", e2); + throw e2; + } catch (Throwable th2) { + a2.b(); + throw th2; + } + } + + public final boolean e() { + boolean z2; + long j; + long j2; + Objects.requireNonNull((b.f.d.k.c) this.p); + long currentTimeMillis = System.currentTimeMillis(); + b bVar = this.o; + synchronized (bVar) { + z2 = bVar.a; + } + long j3 = -1; + if (z2) { + long j4 = this.i; + if (j4 != -1 && currentTimeMillis - j4 <= f453b) { + return false; + } + } + Objects.requireNonNull((b.f.d.k.c) this.p); + long currentTimeMillis2 = System.currentTimeMillis(); + long j5 = a + currentTimeMillis2; + Set hashSet = (!this.n || !this.h.isEmpty()) ? this.n ? new HashSet<>() : null : this.h; + try { + long j6 = 0; + boolean z3 = false; + int i = 0; + for (c.a aVar : this.k.e()) { + i++; + j6 += aVar.getSize(); + if (aVar.a() > j5) { + aVar.getSize(); + j2 = j5; + j3 = Math.max(aVar.a() - currentTimeMillis2, j3); + z3 = true; + } else { + j2 = j5; + if (this.n) { + Objects.requireNonNull(hashSet); + hashSet.add(aVar.getId()); + } + } + j5 = j2; + } + if (z3) { + Objects.requireNonNull((b.f.b.a.d) this.m); + } + b bVar2 = this.o; + synchronized (bVar2) { + j = bVar2.c; + } + long j7 = (long) i; + if (!(j == j7 && this.o.a() == j6)) { + if (this.n && this.h != hashSet) { + Objects.requireNonNull(hashSet); + this.h.clear(); + this.h.addAll(hashSet); + } + b bVar3 = this.o; + synchronized (bVar3) { + bVar3.c = j7; + bVar3.f454b = j6; + bVar3.a = true; + } + } + this.i = currentTimeMillis2; + return true; + } catch (IOException e) { + b.f.b.a.a aVar2 = this.m; + e.getMessage(); + Objects.requireNonNull((b.f.b.a.d) aVar2); + return false; + } + } + + public void f(CacheKey cacheKey) { + synchronized (this.q) { + try { + List y0 = b.c.a.a0.d.y0(cacheKey); + int i = 0; + while (true) { + ArrayList arrayList = (ArrayList) y0; + if (i >= arrayList.size()) { + break; + } + String str = (String) arrayList.get(i); + this.k.f(str); + this.h.remove(str); + i++; + } + } catch (IOException e) { + b.f.b.a.a aVar = this.m; + e.getMessage(); + Objects.requireNonNull((b.f.b.a.d) aVar); + } + } + } + + public final c.b g(String str, CacheKey cacheKey) throws IOException { + synchronized (this.q) { + boolean e = e(); + h(); + long a2 = this.o.a(); + if (a2 > this.f && !e) { + b bVar = this.o; + synchronized (bVar) { + bVar.a = false; + bVar.c = -1; + bVar.f454b = -1; + } + e(); + } + long j = this.f; + if (a2 > j) { + a((j * 9) / 10, 1); + } + } + return this.k.b(str, cacheKey); + } + + public final void h() { + boolean z2 = true; + char c2 = this.k.isExternal() ? (char) 2 : 1; + b.f.d.i.a aVar = this.j; + long a2 = this.d - this.o.a(); + aVar.a(); + aVar.a(); + if (aVar.h.tryLock()) { + try { + if (SystemClock.uptimeMillis() - aVar.g > b.f.d.i.a.f463b) { + aVar.b(); + } + } finally { + aVar.h.unlock(); + } + } + StatFs statFs = c2 == 1 ? aVar.c : aVar.e; + long availableBlocksLong = statFs != null ? statFs.getAvailableBlocksLong() * statFs.getBlockSizeLong() : 0; + if (availableBlocksLong > 0 && availableBlocksLong >= a2) { + z2 = false; + } + if (z2) { + this.f = this.c; + } else { + this.f = this.d; + } + } +} diff --git a/app/src/main/java/b/f/b/b/e.java b/app/src/main/java/b/f/b/b/e.java new file mode 100644 index 0000000000..4eae4afa08 --- /dev/null +++ b/app/src/main/java/b/f/b/b/e.java @@ -0,0 +1,133 @@ +package b.f.b.b; + +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.f.b.b.c; +import com.facebook.common.file.FileUtils$CreateDirectoryException; +import com.facebook.common.internal.Supplier; +import java.io.File; +import java.io.IOException; +import java.util.Collection; +import java.util.Objects; +/* compiled from: DynamicDefaultDiskStorage */ +public class e implements c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final Supplier f456b; + public final String c; + public final b.f.b.a.a d; + @VisibleForTesting + public volatile a e = new a(null, null); + + /* compiled from: DynamicDefaultDiskStorage */ + @VisibleForTesting + public static class a { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final File f457b; + + @VisibleForTesting + public a(File file, c cVar) { + this.a = cVar; + this.f457b = file; + } + } + + public e(int i, Supplier supplier, String str, b.f.b.a.a aVar) { + this.a = i; + this.d = aVar; + this.f456b = supplier; + this.c = str; + } + + @Override // b.f.b.b.c + public void a() { + try { + i().a(); + } catch (IOException e) { + b.f.d.e.a.b(e.class, "purgeUnexpectedResources", e); + } + } + + @Override // b.f.b.b.c + public c.b b(String str, Object obj) throws IOException { + return i().b(str, obj); + } + + @Override // b.f.b.b.c + public boolean c(String str, Object obj) throws IOException { + return i().c(str, obj); + } + + @Override // b.f.b.b.c + public b.f.a.a d(String str, Object obj) throws IOException { + return i().d(str, obj); + } + + @Override // b.f.b.b.c + public Collection e() throws IOException { + return i().e(); + } + + @Override // b.f.b.b.c + public long f(String str) throws IOException { + return i().f(str); + } + + @Override // b.f.b.b.c + public long g(c.a aVar) throws IOException { + return i().g(aVar); + } + + public final void h() throws IOException { + File file = new File(this.f456b.get(), this.c); + try { + d.j1(file); + file.getAbsolutePath(); + int i = b.f.d.e.a.a; + this.e = new a(file, new a(file, this.a, this.d)); + } catch (FileUtils$CreateDirectoryException e) { + Objects.requireNonNull((b.f.b.a.d) this.d); + throw e; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:12:0x0017 */ + @VisibleForTesting + public synchronized c i() throws IOException { + boolean z2; + c cVar; + File file; + a aVar = this.e; + if (!(aVar.a == null || (file = aVar.f457b) == null)) { + if (file.exists()) { + z2 = false; + if (z2) { + if (!(this.e.a == null || this.e.f457b == null)) { + d.Y(this.e.f457b); + } + h(); + } + cVar = this.e.a; + Objects.requireNonNull(cVar); + } + } + z2 = true; + if (z2) { + } + cVar = this.e.a; + Objects.requireNonNull(cVar); + return cVar; + } + + @Override // b.f.b.b.c + public boolean isExternal() { + try { + return i().isExternal(); + } catch (IOException unused) { + return false; + } + } +} diff --git a/app/src/main/java/b/f/b/b/f.java b/app/src/main/java/b/f/b/b/f.java new file mode 100644 index 0000000000..7c5a3dcf29 --- /dev/null +++ b/app/src/main/java/b/f/b/b/f.java @@ -0,0 +1,7 @@ +package b.f.b.b; + +import b.f.b.b.c; +import java.util.Comparator; +/* compiled from: EntryEvictionComparator */ +public interface f extends Comparator { +} diff --git a/app/src/main/java/b/f/b/b/g.java b/app/src/main/java/b/f/b/b/g.java new file mode 100644 index 0000000000..a974e2d298 --- /dev/null +++ b/app/src/main/java/b/f/b/b/g.java @@ -0,0 +1,5 @@ +package b.f.b.b; +/* compiled from: EntryEvictionComparatorSupplier */ +public interface g { + f get(); +} diff --git a/app/src/main/java/b/f/b/b/h.java b/app/src/main/java/b/f/b/b/h.java new file mode 100644 index 0000000000..b3c2c7b81f --- /dev/null +++ b/app/src/main/java/b/f/b/b/h.java @@ -0,0 +1,4 @@ +package b.f.b.b; +/* compiled from: FileCache */ +public interface h { +} diff --git a/app/src/main/java/b/f/b/b/i.java b/app/src/main/java/b/f/b/b/i.java new file mode 100644 index 0000000000..383c4498b0 --- /dev/null +++ b/app/src/main/java/b/f/b/b/i.java @@ -0,0 +1,40 @@ +package b.f.b.b; + +import com.facebook.cache.common.CacheKey; +/* compiled from: SettableCacheEvent */ +public class i { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static i f458b; + public static int c; + public CacheKey d; + public i e; + + public static i a() { + synchronized (a) { + i iVar = f458b; + if (iVar == null) { + return new i(); + } + f458b = iVar.e; + iVar.e = null; + c--; + return iVar; + } + } + + public void b() { + synchronized (a) { + int i = c; + if (i < 5) { + c = i + 1; + i iVar = f458b; + if (iVar != null) { + this.e = iVar; + } + f458b = this; + } + } + } +} diff --git a/app/src/main/java/b/f/c/a.java b/app/src/main/java/b/f/c/a.java new file mode 100644 index 0000000000..553c4a1f08 --- /dev/null +++ b/app/src/main/java/b/f/c/a.java @@ -0,0 +1,5 @@ +package b.f.c; +/* compiled from: CallerContextVerifier */ +public interface a { + void a(Object obj, boolean z2); +} diff --git a/app/src/main/java/b/f/d/a/a.java b/app/src/main/java/b/f/d/a/a.java new file mode 100644 index 0000000000..822ae0892a --- /dev/null +++ b/app/src/main/java/b/f/d/a/a.java @@ -0,0 +1,4 @@ +package b.f.d.a; +/* compiled from: DiskTrimmableRegistry */ +public interface a { +} diff --git a/app/src/main/java/b/f/d/a/b.java b/app/src/main/java/b/f/d/a/b.java new file mode 100644 index 0000000000..ae274c9001 --- /dev/null +++ b/app/src/main/java/b/f/d/a/b.java @@ -0,0 +1,5 @@ +package b.f.d.a; +/* compiled from: NoOpDiskTrimmableRegistry */ +public class b implements a { + public static b a; +} diff --git a/app/src/main/java/b/f/d/b/a.java b/app/src/main/java/b/f/d/b/a.java new file mode 100644 index 0000000000..d3ff461cd1 --- /dev/null +++ b/app/src/main/java/b/f/d/b/a.java @@ -0,0 +1,39 @@ +package b.f.d.b; + +import java.util.Collections; +import java.util.List; +import java.util.concurrent.AbstractExecutorService; +import java.util.concurrent.TimeUnit; +/* compiled from: CallerThreadExecutor */ +public class a extends AbstractExecutorService { + public static final a j = new a(); + + @Override // java.util.concurrent.ExecutorService + public boolean awaitTermination(long j2, TimeUnit timeUnit) throws InterruptedException { + return true; + } + + @Override // java.util.concurrent.Executor + public void execute(Runnable runnable) { + runnable.run(); + } + + @Override // java.util.concurrent.ExecutorService + public boolean isShutdown() { + return false; + } + + @Override // java.util.concurrent.ExecutorService + public boolean isTerminated() { + return false; + } + + @Override // java.util.concurrent.ExecutorService + public void shutdown() { + } + + @Override // java.util.concurrent.ExecutorService + public List shutdownNow() { + return Collections.emptyList(); + } +} diff --git a/app/src/main/java/b/f/d/b/b.java b/app/src/main/java/b/f/d/b/b.java new file mode 100644 index 0000000000..a5079b52fb --- /dev/null +++ b/app/src/main/java/b/f/d/b/b.java @@ -0,0 +1,128 @@ +package b.f.d.b; + +import java.util.List; +import java.util.Objects; +import java.util.concurrent.AbstractExecutorService; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Executor; +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: ConstrainedExecutorService */ +public class b extends AbstractExecutorService { + public static final Class j = b.class; + public final String k; + public final Executor l; + public volatile int m; + public final BlockingQueue n; + public final RunnableC0057b o; + public final AtomicInteger p; + public final AtomicInteger q; + + /* compiled from: ConstrainedExecutorService */ + /* renamed from: b.f.d.b.b$b reason: collision with other inner class name */ + public class RunnableC0057b implements Runnable { + public RunnableC0057b(a aVar) { + } + + @Override // java.lang.Runnable + public void run() { + boolean isEmpty; + try { + Runnable poll = b.this.n.poll(); + if (poll != null) { + poll.run(); + } else { + Class cls = b.j; + Class cls2 = b.j; + String str = b.this.k; + int i = b.f.d.e.a.a; + } + if (isEmpty) { + Class cls3 = b.j; + Class cls4 = b.j; + String str2 = b.this.k; + int i2 = b.f.d.e.a.a; + } + } finally { + b.this.p.decrementAndGet(); + if (!b.this.n.isEmpty()) { + b.this.a(); + } else { + Class cls5 = b.j; + Class cls6 = b.j; + String str3 = b.this.k; + int i3 = b.f.d.e.a.a; + } + } + } + } + + public b(String str, int i, Executor executor, BlockingQueue blockingQueue) { + if (i > 0) { + this.k = str; + this.l = executor; + this.m = i; + this.n = blockingQueue; + this.o = new RunnableC0057b(null); + this.p = new AtomicInteger(0); + this.q = new AtomicInteger(0); + return; + } + throw new IllegalArgumentException("max concurrency must be > 0"); + } + + public final void a() { + int i = this.p.get(); + while (i < this.m) { + int i2 = i + 1; + if (this.p.compareAndSet(i, i2)) { + b.f.d.e.a.j(j, "%s: starting worker %d of %d", this.k, Integer.valueOf(i2), Integer.valueOf(this.m)); + this.l.execute(this.o); + return; + } + int i3 = b.f.d.e.a.a; + i = this.p.get(); + } + } + + @Override // java.util.concurrent.ExecutorService + public boolean awaitTermination(long j2, TimeUnit timeUnit) throws InterruptedException { + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.Executor + public void execute(Runnable runnable) { + Objects.requireNonNull(runnable, "runnable parameter is null"); + if (this.n.offer(runnable)) { + int size = this.n.size(); + int i = this.q.get(); + if (size > i && this.q.compareAndSet(i, size)) { + int i2 = b.f.d.e.a.a; + } + a(); + return; + } + throw new RejectedExecutionException(this.k + " queue is full, size=" + this.n.size()); + } + + @Override // java.util.concurrent.ExecutorService + public boolean isShutdown() { + return false; + } + + @Override // java.util.concurrent.ExecutorService + public boolean isTerminated() { + return false; + } + + @Override // java.util.concurrent.ExecutorService + public void shutdown() { + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.ExecutorService + public List shutdownNow() { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/f/d/b/c.java b/app/src/main/java/b/f/d/b/c.java new file mode 100644 index 0000000000..dd9fbe841d --- /dev/null +++ b/app/src/main/java/b/f/d/b/c.java @@ -0,0 +1,16 @@ +package b.f.d.b; + +import java.util.concurrent.Executor; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.LinkedBlockingQueue; +/* compiled from: DefaultSerialExecutorService */ +public class c extends b implements ExecutorService { + public c(Executor executor) { + super("SerialExecutor", 1, executor, new LinkedBlockingQueue()); + } + + @Override // b.f.d.b.b, java.util.concurrent.Executor + public synchronized void execute(Runnable runnable) { + super.execute(runnable); + } +} diff --git a/app/src/main/java/b/f/d/b/d.java b/app/src/main/java/b/f/d/b/d.java new file mode 100644 index 0000000000..6aba971330 --- /dev/null +++ b/app/src/main/java/b/f/d/b/d.java @@ -0,0 +1,108 @@ +package b.f.d.b; + +import android.os.Handler; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.AbstractExecutorService; +import java.util.concurrent.Callable; +import java.util.concurrent.Future; +import java.util.concurrent.RunnableFuture; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; +/* compiled from: HandlerExecutorServiceImpl */ +public class d extends AbstractExecutorService implements ScheduledExecutorService { + public final Handler j; + + public d(Handler handler) { + this.j = handler; + } + + @Override // java.util.concurrent.ExecutorService + public boolean awaitTermination(long j, TimeUnit timeUnit) throws InterruptedException { + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.Executor + public void execute(Runnable runnable) { + throw null; + } + + @Override // java.util.concurrent.ExecutorService + public boolean isShutdown() { + return false; + } + + @Override // java.util.concurrent.ExecutorService + public boolean isTerminated() { + return false; + } + + @Override // java.util.concurrent.AbstractExecutorService + public RunnableFuture newTaskFor(Runnable runnable, Object obj) { + return new e(this.j, runnable, obj); + } + + @Override // java.util.concurrent.AbstractExecutorService + public RunnableFuture newTaskFor(Callable callable) { + return new e(this.j, callable); + } + + @Override // java.util.concurrent.ScheduledExecutorService + public ScheduledFuture schedule(Runnable runnable, long j, TimeUnit timeUnit) { + e eVar = new e(this.j, runnable, null); + this.j.postDelayed(eVar, timeUnit.toMillis(j)); + return eVar; + } + + @Override // java.util.concurrent.ScheduledExecutorService + public ScheduledFuture schedule(Callable callable, long j, TimeUnit timeUnit) { + e eVar = new e(this.j, callable); + this.j.postDelayed(eVar, timeUnit.toMillis(j)); + return eVar; + } + + @Override // java.util.concurrent.ScheduledExecutorService + public ScheduledFuture scheduleAtFixedRate(Runnable runnable, long j, long j2, TimeUnit timeUnit) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.ScheduledExecutorService + public ScheduledFuture scheduleWithFixedDelay(Runnable runnable, long j, long j2, TimeUnit timeUnit) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.ExecutorService + public void shutdown() { + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.ExecutorService + public List shutdownNow() { + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.AbstractExecutorService, java.util.concurrent.ExecutorService + public Future submit(Runnable runnable) { + Objects.requireNonNull(runnable); + e eVar = new e(this.j, runnable, null); + execute(eVar); + return eVar; + } + + @Override // java.util.concurrent.AbstractExecutorService, java.util.concurrent.ExecutorService + public Future submit(Runnable runnable, Object obj) { + Objects.requireNonNull(runnable); + e eVar = new e(this.j, runnable, obj); + execute(eVar); + return eVar; + } + + @Override // java.util.concurrent.AbstractExecutorService, java.util.concurrent.ExecutorService + public Future submit(Callable callable) { + Objects.requireNonNull(callable); + e eVar = new e(this.j, callable); + execute(eVar); + return eVar; + } +} diff --git a/app/src/main/java/b/f/d/b/e.java b/app/src/main/java/b/f/d/b/e.java new file mode 100644 index 0000000000..506d6d2f40 --- /dev/null +++ b/app/src/main/java/b/f/d/b/e.java @@ -0,0 +1,64 @@ +package b.f.d.b; + +import android.os.Handler; +import java.util.concurrent.Callable; +import java.util.concurrent.Delayed; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.FutureTask; +import java.util.concurrent.RunnableFuture; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +/* compiled from: ScheduledFutureImpl */ +public class e implements RunnableFuture, ScheduledFuture { + public final FutureTask j; + + public e(Handler handler, Runnable runnable, V v) { + this.j = new FutureTask<>(runnable, v); + } + + public e(Handler handler, Callable callable) { + this.j = new FutureTask<>(callable); + } + + @Override // java.util.concurrent.Future + public boolean cancel(boolean z2) { + return this.j.cancel(z2); + } + + @Override // java.lang.Comparable + public int compareTo(Object obj) { + Delayed delayed = (Delayed) obj; + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.Future + public V get() throws InterruptedException, ExecutionException { + return this.j.get(); + } + + @Override // java.util.concurrent.Future + public V get(long j, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException { + return this.j.get(j, timeUnit); + } + + @Override // java.util.concurrent.Delayed + public long getDelay(TimeUnit timeUnit) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.concurrent.Future + public boolean isCancelled() { + return this.j.isCancelled(); + } + + @Override // java.util.concurrent.Future + public boolean isDone() { + return this.j.isDone(); + } + + @Override // java.util.concurrent.RunnableFuture, java.lang.Runnable + public void run() { + this.j.run(); + } +} diff --git a/app/src/main/java/b/f/d/b/f.java b/app/src/main/java/b/f/d/b/f.java new file mode 100644 index 0000000000..38bc7b99cb --- /dev/null +++ b/app/src/main/java/b/f/d/b/f.java @@ -0,0 +1,21 @@ +package b.f.d.b; + +import android.os.Handler; +import android.os.Looper; +/* compiled from: UiThreadImmediateExecutorService */ +public class f extends d { + public static f k; + + public f() { + super(new Handler(Looper.getMainLooper())); + } + + @Override // b.f.d.b.d, java.util.concurrent.Executor + public void execute(Runnable runnable) { + if (Thread.currentThread() == this.j.getLooper().getThread()) { + runnable.run(); + } else { + this.j.post(runnable); + } + } +} diff --git a/app/src/main/java/b/f/d/c/a.java b/app/src/main/java/b/f/d/c/a.java new file mode 100644 index 0000000000..e43e3f45f0 --- /dev/null +++ b/app/src/main/java/b/f/d/c/a.java @@ -0,0 +1,11 @@ +package b.f.d.c; + +import java.io.File; +/* compiled from: FileTreeVisitor */ +public interface a { + void a(File file); + + void b(File file); + + void c(File file); +} diff --git a/app/src/main/java/b/f/d/d/a.java b/app/src/main/java/b/f/d/d/a.java new file mode 100644 index 0000000000..9e039b4bbe --- /dev/null +++ b/app/src/main/java/b/f/d/d/a.java @@ -0,0 +1,35 @@ +package b.f.d.d; + +import androidx.annotation.VisibleForTesting; +import java.io.Closeable; +import java.io.IOException; +import java.io.InputStream; +import java.util.logging.Level; +import java.util.logging.Logger; +/* compiled from: Closeables */ +public final class a { + @VisibleForTesting + public static final Logger a = Logger.getLogger(a.class.getName()); + + public static void a(Closeable closeable, boolean z2) throws IOException { + if (closeable != null) { + try { + closeable.close(); + } catch (IOException e) { + if (z2) { + a.log(Level.WARNING, "IOException thrown while closing Closeable.", (Throwable) e); + return; + } + throw e; + } + } + } + + public static void b(InputStream inputStream) { + try { + a(inputStream, true); + } catch (IOException e) { + throw new AssertionError(e); + } + } +} diff --git a/app/src/main/java/b/f/d/d/b.java b/app/src/main/java/b/f/d/d/b.java new file mode 100644 index 0000000000..e4eaa2fadf --- /dev/null +++ b/app/src/main/java/b/f/d/d/b.java @@ -0,0 +1,30 @@ +package b.f.d.d; + +import java.io.FilterOutputStream; +import java.io.IOException; +import java.io.OutputStream; +/* compiled from: CountingOutputStream */ +public class b extends FilterOutputStream { + public long j = 0; + + public b(OutputStream outputStream) { + super(outputStream); + } + + @Override // java.io.FilterOutputStream, java.io.OutputStream, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + ((FilterOutputStream) this).out.close(); + } + + @Override // java.io.FilterOutputStream, java.io.OutputStream + public void write(int i) throws IOException { + ((FilterOutputStream) this).out.write(i); + this.j++; + } + + @Override // java.io.FilterOutputStream, java.io.OutputStream + public void write(byte[] bArr, int i, int i2) throws IOException { + ((FilterOutputStream) this).out.write(bArr, i, i2); + this.j += (long) i2; + } +} diff --git a/app/src/main/java/b/f/d/d/c.java b/app/src/main/java/b/f/d/d/c.java new file mode 100644 index 0000000000..91ea538c80 --- /dev/null +++ b/app/src/main/java/b/f/d/d/c.java @@ -0,0 +1,11 @@ +package b.f.d.d; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: DoNotStrip */ +@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR}) +@Retention(RetentionPolicy.CLASS) +public @interface c { +} diff --git a/app/src/main/java/b/f/d/d/d.java b/app/src/main/java/b/f/d/d/d.java new file mode 100644 index 0000000000..d58ec07264 --- /dev/null +++ b/app/src/main/java/b/f/d/d/d.java @@ -0,0 +1,4 @@ +package b.f.d.d; +/* compiled from: Fn */ +public interface d { +} diff --git a/app/src/main/java/b/f/d/d/e.java b/app/src/main/java/b/f/d/d/e.java new file mode 100644 index 0000000000..13b0756694 --- /dev/null +++ b/app/src/main/java/b/f/d/d/e.java @@ -0,0 +1,9 @@ +package b.f.d.d; + +import java.util.ArrayList; +/* compiled from: ImmutableList */ +public class e extends ArrayList { + public e(int i) { + super(i); + } +} diff --git a/app/src/main/java/b/f/d/d/f.java b/app/src/main/java/b/f/d/d/f.java new file mode 100644 index 0000000000..55969665ef --- /dev/null +++ b/app/src/main/java/b/f/d/d/f.java @@ -0,0 +1,24 @@ +package b.f.d.d; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +/* compiled from: ImmutableMap */ +public class f extends HashMap { + public f(Map map) { + super(map); + } + + public static Map of(K k, V v) { + HashMap hashMap = new HashMap(1); + hashMap.put(k, v); + return Collections.unmodifiableMap(hashMap); + } + + public static Map of(K k, V v, K k2, V v2) { + HashMap hashMap = new HashMap(2); + hashMap.put(k, v); + hashMap.put(k2, v2); + return Collections.unmodifiableMap(hashMap); + } +} diff --git a/app/src/main/java/b/f/d/d/g.java b/app/src/main/java/b/f/d/d/g.java new file mode 100644 index 0000000000..66727a8d1a --- /dev/null +++ b/app/src/main/java/b/f/d/d/g.java @@ -0,0 +1,12 @@ +package b.f.d.d; + +import java.util.HashSet; +import java.util.Set; +/* compiled from: ImmutableSet */ +public class g extends HashSet { + public static final /* synthetic */ int j = 0; + + public g(Set set) { + super(set); + } +} diff --git a/app/src/main/java/b/f/d/d/i.java b/app/src/main/java/b/f/d/d/i.java new file mode 100644 index 0000000000..4745185e6c --- /dev/null +++ b/app/src/main/java/b/f/d/d/i.java @@ -0,0 +1,78 @@ +package b.f.d.d; + +import java.util.Arrays; +import java.util.Objects; +/* compiled from: Objects */ +public final class i { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final a f459b; + public a c; + + /* compiled from: Objects */ + public static final class a { + public String a; + + /* renamed from: b reason: collision with root package name */ + public Object f460b; + public a c; + + public a(h hVar) { + } + } + + public i(String str, h hVar) { + a aVar = new a(null); + this.f459b = aVar; + this.c = aVar; + this.a = str; + } + + public i a(String str, int i) { + c(str, String.valueOf(i)); + return this; + } + + public i b(String str, boolean z2) { + c(str, String.valueOf(z2)); + return this; + } + + public final i c(String str, Object obj) { + a aVar = new a(null); + this.c.c = aVar; + this.c = aVar; + aVar.f460b = obj; + Objects.requireNonNull(str); + aVar.a = str; + return this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(32); + sb.append(this.a); + sb.append('{'); + a aVar = this.f459b.c; + String str = ""; + while (aVar != null) { + Object obj = aVar.f460b; + sb.append(str); + String str2 = aVar.a; + if (str2 != null) { + sb.append(str2); + sb.append('='); + } + if (obj == null || !obj.getClass().isArray()) { + sb.append(obj); + } else { + String deepToString = Arrays.deepToString(new Object[]{obj}); + sb.append((CharSequence) deepToString, 1, deepToString.length() - 1); + } + aVar = aVar.c; + str = ", "; + } + sb.append('}'); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/f/d/d/j.java b/app/src/main/java/b/f/d/d/j.java new file mode 100644 index 0000000000..f2885fe7ee --- /dev/null +++ b/app/src/main/java/b/f/d/d/j.java @@ -0,0 +1,4 @@ +package b.f.d.d; +/* compiled from: Predicate */ +public interface j { +} diff --git a/app/src/main/java/b/f/d/d/k.java b/app/src/main/java/b/f/d/d/k.java new file mode 100644 index 0000000000..bff8e29139 --- /dev/null +++ b/app/src/main/java/b/f/d/d/k.java @@ -0,0 +1,17 @@ +package b.f.d.d; + +import com.facebook.common.internal.Supplier; +/* compiled from: Suppliers */ +public final class k implements Supplier { + public final /* synthetic */ Object a; + + public k(Object obj) { + this.a = obj; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // com.facebook.common.internal.Supplier + public T get() { + return this.a; + } +} diff --git a/app/src/main/java/b/f/d/d/l.java b/app/src/main/java/b/f/d/d/l.java new file mode 100644 index 0000000000..4e421f83d6 --- /dev/null +++ b/app/src/main/java/b/f/d/d/l.java @@ -0,0 +1,16 @@ +package b.f.d.d; + +import com.facebook.common.internal.Supplier; +/* compiled from: Suppliers */ +public class l { + public static final Supplier a = new a(); + + /* compiled from: Suppliers */ + public static class a implements Supplier { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // com.facebook.common.internal.Supplier + public /* bridge */ /* synthetic */ Boolean get() { + return Boolean.FALSE; + } + } +} diff --git a/app/src/main/java/b/f/d/d/m.java b/app/src/main/java/b/f/d/d/m.java new file mode 100644 index 0000000000..aa1cff9f8a --- /dev/null +++ b/app/src/main/java/b/f/d/d/m.java @@ -0,0 +1,11 @@ +package b.f.d.d; +/* compiled from: Throwables */ +public final class m { + public static void a(Throwable th) { + if (Error.class.isInstance(th)) { + throw ((Throwable) Error.class.cast(th)); + } else if (RuntimeException.class.isInstance(th)) { + throw ((Throwable) RuntimeException.class.cast(th)); + } + } +} diff --git a/app/src/main/java/b/f/d/e/a.java b/app/src/main/java/b/f/d/e/a.java new file mode 100644 index 0000000000..c97eb5eb3b --- /dev/null +++ b/app/src/main/java/b/f/d/e/a.java @@ -0,0 +1,133 @@ +package b.f.d.e; + +import android.util.Log; +import androidx.core.os.EnvironmentCompat; +import java.io.PrintWriter; +import java.io.StringWriter; +/* compiled from: FLog */ +public class a { + public static final /* synthetic */ int a = 0; + + public static void a(Class cls, String str) { + String simpleName = cls.getSimpleName(); + Log.println(6, EnvironmentCompat.MEDIA_UNKNOWN + ":" + simpleName, str); + } + + public static void b(Class cls, String str, Throwable th) { + String w = b.d.b.a.a.w(EnvironmentCompat.MEDIA_UNKNOWN, ":", cls.getSimpleName()); + StringBuilder sb = new StringBuilder(); + sb.append(str); + sb.append('\n'); + StringWriter stringWriter = new StringWriter(); + th.printStackTrace(new PrintWriter(stringWriter)); + sb.append(stringWriter.toString()); + Log.println(6, w, sb.toString()); + } + + public static void c(Class cls, String str, Object... objArr) { + String simpleName = cls.getSimpleName(); + String g = g(str, objArr); + Log.println(6, EnvironmentCompat.MEDIA_UNKNOWN + ":" + simpleName, g); + } + + public static void d(Class cls, Throwable th, String str, Object... objArr) { + String simpleName = cls.getSimpleName(); + String g = g(str, objArr); + String w = b.d.b.a.a.w(EnvironmentCompat.MEDIA_UNKNOWN, ":", simpleName); + StringBuilder sb = new StringBuilder(); + sb.append(g); + sb.append('\n'); + StringWriter stringWriter = new StringWriter(); + th.printStackTrace(new PrintWriter(stringWriter)); + sb.append(stringWriter.toString()); + Log.println(6, w, sb.toString()); + } + + public static void e(String str, String str2) { + Log.println(6, EnvironmentCompat.MEDIA_UNKNOWN + ":" + str, str2); + } + + public static void f(String str, String str2, Throwable th) { + String str3; + String w = b.d.b.a.a.w(EnvironmentCompat.MEDIA_UNKNOWN, ":", str); + StringBuilder sb = new StringBuilder(); + sb.append(str2); + sb.append('\n'); + if (th == null) { + str3 = ""; + } else { + StringWriter stringWriter = new StringWriter(); + th.printStackTrace(new PrintWriter(stringWriter)); + str3 = stringWriter.toString(); + } + sb.append(str3); + Log.println(6, w, sb.toString()); + } + + public static String g(String str, Object... objArr) { + return String.format(null, str, objArr); + } + + public static boolean h(int i) { + return 5 <= i; + } + + public static void i(Class cls, String str) { + if (0 != 0) { + String simpleName = cls.getSimpleName(); + Log.println(2, EnvironmentCompat.MEDIA_UNKNOWN + ":" + simpleName, str); + } + } + + public static void j(Class cls, String str, Object obj, Object obj2, Object obj3) { + if (h(2)) { + i(cls, g(str, obj, obj2, obj3)); + } + } + + public static void k(Class cls, String str) { + String simpleName = cls.getSimpleName(); + Log.println(5, EnvironmentCompat.MEDIA_UNKNOWN + ":" + simpleName, str); + } + + public static void l(Class cls, String str, Throwable th) { + String str2; + if (1 != 0) { + String w = b.d.b.a.a.w(EnvironmentCompat.MEDIA_UNKNOWN, ":", cls.getSimpleName()); + StringBuilder sb = new StringBuilder(); + sb.append(str); + sb.append('\n'); + if (th == null) { + str2 = ""; + } else { + StringWriter stringWriter = new StringWriter(); + th.printStackTrace(new PrintWriter(stringWriter)); + str2 = stringWriter.toString(); + } + sb.append(str2); + Log.println(5, w, sb.toString()); + } + } + + public static void m(Class cls, String str, Object... objArr) { + String simpleName = cls.getSimpleName(); + String g = g(str, objArr); + Log.println(5, EnvironmentCompat.MEDIA_UNKNOWN + ":" + simpleName, g); + } + + public static void n(Class cls, Throwable th, String str, Object... objArr) { + if (h(5)) { + l(cls, g(str, objArr), th); + } + } + + public static void o(String str, String str2, Object... objArr) { + String g = g(str2, objArr); + Log.println(5, EnvironmentCompat.MEDIA_UNKNOWN + ":" + str, g); + } + + public static void p(String str, String str2, Object... objArr) { + String g = g(str2, objArr); + Log.println(6, EnvironmentCompat.MEDIA_UNKNOWN + ":" + str, g); + } +} diff --git a/app/src/main/java/b/f/d/f/a.java b/app/src/main/java/b/f/d/f/a.java new file mode 100644 index 0000000000..4002d1f47c --- /dev/null +++ b/app/src/main/java/b/f/d/f/a.java @@ -0,0 +1,8 @@ +package b.f.d.f; + +import b.f.d.d.f; +import java.util.Map; +/* compiled from: MediaUtils */ +public class a { + public static final Map a = f.of("mkv", "video/x-matroska", "glb", "model/gltf-binary"); +} diff --git a/app/src/main/java/b/f/d/f/b.java b/app/src/main/java/b/f/d/f/b.java new file mode 100644 index 0000000000..30c7e13096 --- /dev/null +++ b/app/src/main/java/b/f/d/f/b.java @@ -0,0 +1,13 @@ +package b.f.d.f; + +import android.webkit.MimeTypeMap; +import b.f.d.d.f; +import java.util.Map; +/* compiled from: MimeTypeMapWrapper */ +public class b { + public static final MimeTypeMap a = MimeTypeMap.getSingleton(); + + /* renamed from: b reason: collision with root package name */ + public static final Map f461b = f.of("image/heif", "heif", "image/heic", "heic"); + public static final Map c = f.of("heif", "image/heif", "heic", "image/heic"); +} diff --git a/app/src/main/java/b/f/d/g/a.java b/app/src/main/java/b/f/d/g/a.java new file mode 100644 index 0000000000..733d4734b3 --- /dev/null +++ b/app/src/main/java/b/f/d/g/a.java @@ -0,0 +1,4 @@ +package b.f.d.g; +/* compiled from: ByteArrayPool */ +public interface a extends e { +} diff --git a/app/src/main/java/b/f/d/g/b.java b/app/src/main/java/b/f/d/g/b.java new file mode 100644 index 0000000000..9fa1b6c8f8 --- /dev/null +++ b/app/src/main/java/b/f/d/g/b.java @@ -0,0 +1,4 @@ +package b.f.d.g; +/* compiled from: MemoryTrimmable */ +public interface b { +} diff --git a/app/src/main/java/b/f/d/g/c.java b/app/src/main/java/b/f/d/g/c.java new file mode 100644 index 0000000000..4112e2da96 --- /dev/null +++ b/app/src/main/java/b/f/d/g/c.java @@ -0,0 +1,5 @@ +package b.f.d.g; +/* compiled from: MemoryTrimmableRegistry */ +public interface c { + void a(b bVar); +} diff --git a/app/src/main/java/b/f/d/g/d.java b/app/src/main/java/b/f/d/g/d.java new file mode 100644 index 0000000000..9507de782b --- /dev/null +++ b/app/src/main/java/b/f/d/g/d.java @@ -0,0 +1,20 @@ +package b.f.d.g; +/* compiled from: NoOpMemoryTrimmableRegistry */ +public class d implements c { + public static d a; + + public static synchronized d b() { + d dVar; + synchronized (d.class) { + if (a == null) { + a = new d(); + } + dVar = a; + } + return dVar; + } + + @Override // b.f.d.g.c + public void a(b bVar) { + } +} diff --git a/app/src/main/java/b/f/d/g/e.java b/app/src/main/java/b/f/d/g/e.java new file mode 100644 index 0000000000..d10f6e2d8d --- /dev/null +++ b/app/src/main/java/b/f/d/g/e.java @@ -0,0 +1,10 @@ +package b.f.d.g; + +import b.f.d.h.f; +/* compiled from: Pool */ +public interface e extends f, b { + V get(int i); + + @Override // b.f.d.h.f + void release(V v); +} diff --git a/app/src/main/java/b/f/d/g/f.java b/app/src/main/java/b/f/d/g/f.java new file mode 100644 index 0000000000..bcd40d8ee5 --- /dev/null +++ b/app/src/main/java/b/f/d/g/f.java @@ -0,0 +1,110 @@ +package b.f.d.g; + +import b.c.a.a0.d; +import b.f.d.e.a; +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; +/* compiled from: PooledByteArrayBufferedInputStream */ +public class f extends InputStream { + public final InputStream j; + public final byte[] k; + public final b.f.d.h.f l; + public int m = 0; + public int n = 0; + public boolean o = false; + + public f(InputStream inputStream, byte[] bArr, b.f.d.h.f fVar) { + Objects.requireNonNull(inputStream); + this.j = inputStream; + Objects.requireNonNull(bArr); + this.k = bArr; + Objects.requireNonNull(fVar); + this.l = fVar; + } + + public final boolean a() throws IOException { + if (this.n < this.m) { + return true; + } + int read = this.j.read(this.k); + if (read <= 0) { + return false; + } + this.m = read; + this.n = 0; + return true; + } + + @Override // java.io.InputStream + public int available() throws IOException { + d.B(this.n <= this.m); + b(); + return this.j.available() + (this.m - this.n); + } + + public final void b() throws IOException { + if (this.o) { + throw new IOException("stream already closed"); + } + } + + @Override // java.io.InputStream, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + if (!this.o) { + this.o = true; + this.l.release(this.k); + super.close(); + } + } + + @Override // java.lang.Object + public void finalize() throws Throwable { + if (!this.o) { + a.e("PooledByteInputStream", "Finalized without closing"); + close(); + } + super.finalize(); + } + + @Override // java.io.InputStream + public int read() throws IOException { + d.B(this.n <= this.m); + b(); + if (!a()) { + return -1; + } + byte[] bArr = this.k; + int i = this.n; + this.n = i + 1; + return bArr[i] & 255; + } + + @Override // java.io.InputStream + public int read(byte[] bArr, int i, int i2) throws IOException { + d.B(this.n <= this.m); + b(); + if (!a()) { + return -1; + } + int min = Math.min(this.m - this.n, i2); + System.arraycopy(this.k, this.n, bArr, i, min); + this.n += min; + return min; + } + + @Override // java.io.InputStream + public long skip(long j) throws IOException { + d.B(this.n <= this.m); + b(); + int i = this.m; + int i2 = this.n; + long j2 = (long) (i - i2); + if (j2 >= j) { + this.n = (int) (((long) i2) + j); + return j; + } + this.n = i; + return this.j.skip(j - j2) + j2; + } +} diff --git a/app/src/main/java/b/f/d/g/g.java b/app/src/main/java/b/f/d/g/g.java new file mode 100644 index 0000000000..05f988e343 --- /dev/null +++ b/app/src/main/java/b/f/d/g/g.java @@ -0,0 +1,17 @@ +package b.f.d.g; + +import com.facebook.common.memory.PooledByteBuffer; +import java.io.IOException; +import java.io.InputStream; +/* compiled from: PooledByteBufferFactory */ +public interface g { + i a(); + + PooledByteBuffer b(byte[] bArr); + + PooledByteBuffer c(InputStream inputStream) throws IOException; + + PooledByteBuffer d(InputStream inputStream, int i) throws IOException; + + i e(int i); +} diff --git a/app/src/main/java/b/f/d/g/h.java b/app/src/main/java/b/f/d/g/h.java new file mode 100644 index 0000000000..da9ce721ff --- /dev/null +++ b/app/src/main/java/b/f/d/g/h.java @@ -0,0 +1,89 @@ +package b.f.d.g; + +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.d.b.a.a; +import com.facebook.common.memory.PooledByteBuffer; +import java.io.InputStream; +/* compiled from: PooledByteBufferInputStream */ +public class h extends InputStream { + @VisibleForTesting + public final PooledByteBuffer j; + @VisibleForTesting + public int k = 0; + @VisibleForTesting + public int l = 0; + + public h(PooledByteBuffer pooledByteBuffer) { + d.i(Boolean.valueOf(!pooledByteBuffer.isClosed())); + this.j = pooledByteBuffer; + } + + @Override // java.io.InputStream + public int available() { + return this.j.size() - this.k; + } + + @Override // java.io.InputStream + public void mark(int i) { + this.l = this.k; + } + + @Override // java.io.InputStream + public boolean markSupported() { + return true; + } + + @Override // java.io.InputStream + public int read() { + if (available() <= 0) { + return -1; + } + PooledByteBuffer pooledByteBuffer = this.j; + int i = this.k; + this.k = i + 1; + return pooledByteBuffer.h(i) & 255; + } + + @Override // java.io.InputStream + public int read(byte[] bArr) { + return read(bArr, 0, bArr.length); + } + + @Override // java.io.InputStream + public int read(byte[] bArr, int i, int i2) { + if (i < 0 || i2 < 0 || i + i2 > bArr.length) { + StringBuilder R = a.R("length="); + R.append(bArr.length); + R.append("; regionStart="); + R.append(i); + R.append("; regionLength="); + R.append(i2); + throw new ArrayIndexOutOfBoundsException(R.toString()); + } + int available = available(); + if (available <= 0) { + return -1; + } + if (i2 <= 0) { + return 0; + } + int min = Math.min(available, i2); + this.j.i(this.k, bArr, i, min); + this.k += min; + return min; + } + + @Override // java.io.InputStream + public void reset() { + this.k = this.l; + } + + @Override // java.io.InputStream + public long skip(long j) { + d.i(Boolean.valueOf(j >= 0)); + int min = Math.min((int) j, available()); + this.k += min; + return (long) min; + } +} diff --git a/app/src/main/java/b/f/d/g/i.java b/app/src/main/java/b/f/d/g/i.java new file mode 100644 index 0000000000..d8af5bf43a --- /dev/null +++ b/app/src/main/java/b/f/d/g/i.java @@ -0,0 +1,17 @@ +package b.f.d.g; + +import b.f.d.d.m; +import java.io.IOException; +import java.io.OutputStream; +/* compiled from: PooledByteBufferOutputStream */ +public abstract class i extends OutputStream { + @Override // java.io.OutputStream, java.io.Closeable, java.lang.AutoCloseable + public void close() { + try { + super.close(); + } catch (IOException e) { + m.a(e); + throw new RuntimeException(e); + } + } +} diff --git a/app/src/main/java/b/f/d/g/j.java b/app/src/main/java/b/f/d/g/j.java new file mode 100644 index 0000000000..7404042762 --- /dev/null +++ b/app/src/main/java/b/f/d/g/j.java @@ -0,0 +1,35 @@ +package b.f.d.g; + +import b.c.a.a0.d; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +/* compiled from: PooledByteStreams */ +public class j { + public final int a = 16384; + + /* renamed from: b reason: collision with root package name */ + public final a f462b; + + public j(a aVar) { + d.i(true); + this.f462b = aVar; + } + + public long a(InputStream inputStream, OutputStream outputStream) throws IOException { + byte[] bArr = this.f462b.get(this.a); + long j = 0; + while (true) { + try { + int read = inputStream.read(bArr, 0, this.a); + if (read == -1) { + return j; + } + outputStream.write(bArr, 0, read); + j += (long) read; + } finally { + this.f462b.release(bArr); + } + } + } +} diff --git a/app/src/main/java/b/f/d/h/a.java b/app/src/main/java/b/f/d/h/a.java new file mode 100644 index 0000000000..8de67040ce --- /dev/null +++ b/app/src/main/java/b/f/d/h/a.java @@ -0,0 +1,45 @@ +package b.f.d.h; + +import b.c.a.a0.d; +import com.facebook.common.references.CloseableReference; +import com.facebook.common.references.SharedReference; +/* compiled from: DefaultCloseableReference */ +public class a extends CloseableReference { + public a(SharedReference sharedReference, CloseableReference.c cVar, Throwable th) { + super(sharedReference, cVar, th); + } + + public a(T t, f fVar, CloseableReference.c cVar, Throwable th) { + super(t, fVar, cVar, th); + } + + @Override // com.facebook.common.references.CloseableReference + /* renamed from: b */ + public CloseableReference clone() { + d.B(x()); + return new a(this.o, this.p, this.q != null ? new Throwable(this.q) : null); + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x003d: APUT (r3v1 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r0v5 java.lang.String) */ + @Override // com.facebook.common.references.CloseableReference, java.lang.Object + public void finalize() throws Throwable { + try { + synchronized (this) { + if (this.n) { + return; + } + } + T c = this.o.c(); + Object[] objArr = new Object[3]; + objArr[0] = Integer.valueOf(System.identityHashCode(this)); + objArr[1] = Integer.valueOf(System.identityHashCode(this.o)); + objArr[2] = c == null ? null : c.getClass().getName(); + b.f.d.e.a.o("DefaultCloseableReference", "Finalized without closing: %x %x (type = %s)", objArr); + this.p.a(this.o, this.q); + close(); + super.finalize(); + } finally { + super.finalize(); + } + } +} diff --git a/app/src/main/java/b/f/d/h/b.java b/app/src/main/java/b/f/d/h/b.java new file mode 100644 index 0000000000..6f4d9f5b1b --- /dev/null +++ b/app/src/main/java/b/f/d/h/b.java @@ -0,0 +1,46 @@ +package b.f.d.h; + +import b.f.d.e.a; +import com.facebook.common.references.CloseableReference; +/* compiled from: FinalizerCloseableReference */ +public class b extends CloseableReference { + public b(T t, f fVar, CloseableReference.c cVar, Throwable th) { + super(t, fVar, cVar, th); + } + + @Override // com.facebook.common.references.CloseableReference + public CloseableReference b() { + return this; + } + + @Override // com.facebook.common.references.CloseableReference, java.lang.Object + public Object clone() throws CloneNotSupportedException { + return this; + } + + @Override // com.facebook.common.references.CloseableReference, java.io.Closeable, java.lang.AutoCloseable + public void close() { + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x003d: APUT (r3v1 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r0v5 java.lang.String) */ + @Override // com.facebook.common.references.CloseableReference, java.lang.Object + public void finalize() throws Throwable { + try { + synchronized (this) { + if (this.n) { + return; + } + } + T c = this.o.c(); + Object[] objArr = new Object[3]; + objArr[0] = Integer.valueOf(System.identityHashCode(this)); + objArr[1] = Integer.valueOf(System.identityHashCode(this.o)); + objArr[2] = c == null ? null : c.getClass().getName(); + a.o("FinalizerCloseableReference", "Finalized without closing: %x %x (type = %s)", objArr); + this.o.a(); + super.finalize(); + } finally { + super.finalize(); + } + } +} diff --git a/app/src/main/java/b/f/d/h/c.java b/app/src/main/java/b/f/d/h/c.java new file mode 100644 index 0000000000..5e4dd42bc1 --- /dev/null +++ b/app/src/main/java/b/f/d/h/c.java @@ -0,0 +1,4 @@ +package b.f.d.h; +/* compiled from: HasBitmap */ +public interface c { +} diff --git a/app/src/main/java/b/f/d/h/d.java b/app/src/main/java/b/f/d/h/d.java new file mode 100644 index 0000000000..c6ab0cc669 --- /dev/null +++ b/app/src/main/java/b/f/d/h/d.java @@ -0,0 +1,23 @@ +package b.f.d.h; + +import com.facebook.common.references.CloseableReference; +/* compiled from: NoOpCloseableReference */ +public class d extends CloseableReference { + public d(T t, f fVar, CloseableReference.c cVar, Throwable th) { + super(t, fVar, cVar, th); + } + + @Override // com.facebook.common.references.CloseableReference + public CloseableReference b() { + return this; + } + + @Override // com.facebook.common.references.CloseableReference, java.lang.Object + public Object clone() throws CloneNotSupportedException { + return this; + } + + @Override // com.facebook.common.references.CloseableReference, java.io.Closeable, java.lang.AutoCloseable + public void close() { + } +} diff --git a/app/src/main/java/b/f/d/h/e.java b/app/src/main/java/b/f/d/h/e.java new file mode 100644 index 0000000000..17c341de18 --- /dev/null +++ b/app/src/main/java/b/f/d/h/e.java @@ -0,0 +1,22 @@ +package b.f.d.h; + +import b.c.a.a0.d; +import com.facebook.common.references.CloseableReference; +import com.facebook.common.references.SharedReference; +/* compiled from: RefCountCloseableReference */ +public class e extends CloseableReference { + public e(SharedReference sharedReference, CloseableReference.c cVar, Throwable th) { + super(sharedReference, cVar, th); + } + + public e(T t, f fVar, CloseableReference.c cVar, Throwable th) { + super(t, fVar, cVar, th); + } + + @Override // com.facebook.common.references.CloseableReference + /* renamed from: b */ + public CloseableReference clone() { + d.B(x()); + return new e(this.o, this.p, this.q); + } +} diff --git a/app/src/main/java/b/f/d/h/f.java b/app/src/main/java/b/f/d/h/f.java new file mode 100644 index 0000000000..ebde8bdb05 --- /dev/null +++ b/app/src/main/java/b/f/d/h/f.java @@ -0,0 +1,5 @@ +package b.f.d.h; +/* compiled from: ResourceReleaser */ +public interface f { + void release(T t); +} diff --git a/app/src/main/java/b/f/d/i/a.java b/app/src/main/java/b/f/d/i/a.java new file mode 100644 index 0000000000..fe85ec7634 --- /dev/null +++ b/app/src/main/java/b/f/d/i/a.java @@ -0,0 +1,65 @@ +package b.f.d.i; + +import android.os.Environment; +import android.os.StatFs; +import android.os.SystemClock; +import b.f.d.d.m; +import java.io.File; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; +/* compiled from: StatFsHelper */ +public class a { + public static a a; + + /* renamed from: b reason: collision with root package name */ + public static final long f463b = TimeUnit.MINUTES.toMillis(2); + public volatile StatFs c = null; + public volatile File d; + public volatile StatFs e = null; + public volatile File f; + public long g; + public final Lock h = new ReentrantLock(); + public volatile boolean i = false; + + public final void a() { + if (!this.i) { + this.h.lock(); + try { + if (!this.i) { + this.d = Environment.getDataDirectory(); + this.f = Environment.getExternalStorageDirectory(); + b(); + this.i = true; + } + } finally { + this.h.unlock(); + } + } + } + + public final void b() { + this.c = c(this.c, this.d); + this.e = c(this.e, this.f); + this.g = SystemClock.uptimeMillis(); + } + + public final StatFs c(StatFs statFs, File file) { + if (file == null || !file.exists()) { + return null; + } + if (statFs == null) { + try { + statFs = new StatFs(file.getAbsolutePath()); + } catch (IllegalArgumentException unused) { + return null; + } catch (Throwable th) { + m.a(th); + throw new RuntimeException(th); + } + } else { + statFs.restat(file.getAbsolutePath()); + } + return statFs; + } +} diff --git a/app/src/main/java/b/f/d/j/a.java b/app/src/main/java/b/f/d/j/a.java new file mode 100644 index 0000000000..162c0cb33d --- /dev/null +++ b/app/src/main/java/b/f/d/j/a.java @@ -0,0 +1,77 @@ +package b.f.d.j; + +import java.io.FilterInputStream; +import java.io.IOException; +import java.io.InputStream; +/* compiled from: LimitedInputStream */ +public class a extends FilterInputStream { + public int j; + public int k; + + public a(InputStream inputStream, int i) { + super(inputStream); + if (i >= 0) { + this.j = i; + this.k = -1; + return; + } + throw new IllegalArgumentException("limit must be >= 0"); + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public int available() throws IOException { + return Math.min(((FilterInputStream) this).in.available(), this.j); + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public void mark(int i) { + if (((FilterInputStream) this).in.markSupported()) { + ((FilterInputStream) this).in.mark(i); + this.k = this.j; + } + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public int read() throws IOException { + if (this.j == 0) { + return -1; + } + int read = ((FilterInputStream) this).in.read(); + if (read != -1) { + this.j--; + } + return read; + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public int read(byte[] bArr, int i, int i2) throws IOException { + int i3 = this.j; + if (i3 == 0) { + return -1; + } + int read = ((FilterInputStream) this).in.read(bArr, i, Math.min(i2, i3)); + if (read > 0) { + this.j -= read; + } + return read; + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public void reset() throws IOException { + if (!((FilterInputStream) this).in.markSupported()) { + throw new IOException("mark is not supported"); + } else if (this.k != -1) { + ((FilterInputStream) this).in.reset(); + this.j = this.k; + } else { + throw new IOException("mark not set"); + } + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public long skip(long j) throws IOException { + long skip = ((FilterInputStream) this).in.skip(Math.min(j, (long) this.j)); + this.j = (int) (((long) this.j) - skip); + return skip; + } +} diff --git a/app/src/main/java/b/f/d/j/b.java b/app/src/main/java/b/f/d/j/b.java new file mode 100644 index 0000000000..50454d36ea --- /dev/null +++ b/app/src/main/java/b/f/d/j/b.java @@ -0,0 +1,79 @@ +package b.f.d.j; + +import java.io.FilterInputStream; +import java.io.IOException; +import java.io.InputStream; +/* compiled from: TailAppendingInputStream */ +public class b extends FilterInputStream { + public final byte[] j; + public int k; + public int l; + + public b(InputStream inputStream, byte[] bArr) { + super(inputStream); + this.j = bArr; + } + + public final int a() { + int i = this.k; + byte[] bArr = this.j; + if (i >= bArr.length) { + return -1; + } + this.k = i + 1; + return bArr[i] & 255; + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public void mark(int i) { + if (((FilterInputStream) this).in.markSupported()) { + super.mark(i); + this.l = this.k; + } + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public int read() throws IOException { + int read = ((FilterInputStream) this).in.read(); + return read != -1 ? read : a(); + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public int read(byte[] bArr) throws IOException { + return read(bArr, 0, bArr.length); + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public int read(byte[] bArr, int i, int i2) throws IOException { + int read = ((FilterInputStream) this).in.read(bArr, i, i2); + if (read != -1) { + return read; + } + int i3 = 0; + if (i2 == 0) { + return 0; + } + while (i3 < i2) { + int a = a(); + if (a == -1) { + break; + } + bArr[i + i3] = (byte) a; + i3++; + } + if (i3 > 0) { + return i3; + } + return -1; + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public void reset() throws IOException { + if (((FilterInputStream) this).in.markSupported()) { + ((FilterInputStream) this).in.reset(); + this.k = this.l; + return; + } + throw new IOException("mark is not supported"); + } +} diff --git a/app/src/main/java/b/f/d/k/a.java b/app/src/main/java/b/f/d/k/a.java new file mode 100644 index 0000000000..db8069beed --- /dev/null +++ b/app/src/main/java/b/f/d/k/a.java @@ -0,0 +1,4 @@ +package b.f.d.k; +/* compiled from: Clock */ +public interface a { +} diff --git a/app/src/main/java/b/f/d/k/b.java b/app/src/main/java/b/f/d/k/b.java new file mode 100644 index 0000000000..c355761517 --- /dev/null +++ b/app/src/main/java/b/f/d/k/b.java @@ -0,0 +1,8 @@ +package b.f.d.k; + +import b.f.d.d.c; +/* compiled from: MonotonicClock */ +public interface b { + @c + long now(); +} diff --git a/app/src/main/java/b/f/d/k/c.java b/app/src/main/java/b/f/d/k/c.java new file mode 100644 index 0000000000..47185d2962 --- /dev/null +++ b/app/src/main/java/b/f/d/k/c.java @@ -0,0 +1,5 @@ +package b.f.d.k; +/* compiled from: SystemClock */ +public class c implements a { + public static final c a = new c(); +} diff --git a/app/src/main/java/b/f/d/l/a.java b/app/src/main/java/b/f/d/l/a.java new file mode 100644 index 0000000000..c4ccded5ae --- /dev/null +++ b/app/src/main/java/b/f/d/l/a.java @@ -0,0 +1,11 @@ +package b.f.d.l; +/* compiled from: TriState */ +public enum a { + YES, + NO, + UNSET; + + public static a f(boolean z2) { + return z2 ? YES : NO; + } +} diff --git a/app/src/main/java/b/f/d/l/b.java b/app/src/main/java/b/f/d/l/b.java new file mode 100644 index 0000000000..70faba8d65 --- /dev/null +++ b/app/src/main/java/b/f/d/l/b.java @@ -0,0 +1,35 @@ +package b.f.d.l; + +import android.net.Uri; +import android.provider.ContactsContract; +import android.provider.MediaStore; +import com.adjust.sdk.Constants; +/* compiled from: UriUtil */ +public class b { + public static final Uri a = Uri.withAppendedPath(ContactsContract.AUTHORITY_URI, "display_photo"); + + public static String a(Uri uri) { + if (uri == null) { + return null; + } + return uri.getScheme(); + } + + public static boolean b(Uri uri) { + String uri2 = uri.toString(); + return uri2.startsWith(MediaStore.Images.Media.EXTERNAL_CONTENT_URI.toString()) || uri2.startsWith(MediaStore.Images.Media.INTERNAL_CONTENT_URI.toString()); + } + + public static boolean c(Uri uri) { + return "content".equals(a(uri)); + } + + public static boolean d(Uri uri) { + return "file".equals(a(uri)); + } + + public static boolean e(Uri uri) { + String a2 = a(uri); + return Constants.SCHEME.equals(a2) || "http".equals(a2); + } +} diff --git a/app/src/main/java/b/f/d/m/a.java b/app/src/main/java/b/f/d/m/a.java new file mode 100644 index 0000000000..1ee99e409f --- /dev/null +++ b/app/src/main/java/b/f/d/m/a.java @@ -0,0 +1,7 @@ +package b.f.d.m; + +import android.graphics.Bitmap; +/* compiled from: BitmapCreator */ +public interface a { + Bitmap a(int i, int i2, Bitmap.Config config); +} diff --git a/app/src/main/java/b/f/d/m/b.java b/app/src/main/java/b/f/d/m/b.java new file mode 100644 index 0000000000..dd7c335ac4 --- /dev/null +++ b/app/src/main/java/b/f/d/m/b.java @@ -0,0 +1,16 @@ +package b.f.d.m; + +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.Rect; +import java.io.FileDescriptor; +/* compiled from: WebpBitmapFactory */ +public interface b { + + /* compiled from: WebpBitmapFactory */ + public interface a { + void a(String str, String str2); + } + + Bitmap a(FileDescriptor fileDescriptor, Rect rect, BitmapFactory.Options options); +} diff --git a/app/src/main/java/b/f/d/m/c.java b/app/src/main/java/b/f/d/m/c.java new file mode 100644 index 0000000000..d4382ca0a7 --- /dev/null +++ b/app/src/main/java/b/f/d/m/c.java @@ -0,0 +1,52 @@ +package b.f.d.m; + +import java.io.UnsupportedEncodingException; +/* compiled from: WebpSupportStatus */ +public class c { + public static b a = null; + + /* renamed from: b reason: collision with root package name */ + public static boolean f464b = false; + public static final byte[] c = a("RIFF"); + public static final byte[] d = a("WEBP"); + public static final byte[] e = a("VP8 "); + public static final byte[] f = a("VP8L"); + public static final byte[] g = a("VP8X"); + + public static byte[] a(String str) { + try { + return str.getBytes("ASCII"); + } catch (UnsupportedEncodingException e2) { + throw new RuntimeException("ASCII not found!", e2); + } + } + + public static boolean b(byte[] bArr, int i, int i2) { + return i2 >= 20 && d(bArr, i, c) && d(bArr, i + 8, d); + } + + public static b c() { + if (f464b) { + return a; + } + b bVar = null; + try { + bVar = (b) Class.forName("com.facebook.webpsupport.WebpBitmapFactoryImpl").newInstance(); + } catch (Throwable unused) { + } + f464b = true; + return bVar; + } + + public static boolean d(byte[] bArr, int i, byte[] bArr2) { + if (bArr2 == null || bArr == null || bArr2.length + i > bArr.length) { + return false; + } + for (int i2 = 0; i2 < bArr2.length; i2++) { + if (bArr[i2 + i] != bArr2[i2]) { + return false; + } + } + return true; + } +} diff --git a/app/src/main/java/b/f/e/a.java b/app/src/main/java/b/f/e/a.java new file mode 100644 index 0000000000..2fe58dcf1e --- /dev/null +++ b/app/src/main/java/b/f/e/a.java @@ -0,0 +1,26 @@ +package b.f.e; +/* compiled from: AbstractDataSource */ +public class a implements Runnable { + public final /* synthetic */ boolean j; + public final /* synthetic */ f k; + public final /* synthetic */ boolean l; + public final /* synthetic */ c m; + + public a(c cVar, boolean z2, f fVar, boolean z3) { + this.m = cVar; + this.j = z2; + this.k = fVar; + this.l = z3; + } + + @Override // java.lang.Runnable + public void run() { + if (this.j) { + this.k.onFailure(this.m); + } else if (this.l) { + this.k.onCancellation(this.m); + } else { + this.k.onNewResult(this.m); + } + } +} diff --git a/app/src/main/java/b/f/e/b.java b/app/src/main/java/b/f/e/b.java new file mode 100644 index 0000000000..1a324ac559 --- /dev/null +++ b/app/src/main/java/b/f/e/b.java @@ -0,0 +1,16 @@ +package b.f.e; +/* compiled from: AbstractDataSource */ +public class b implements Runnable { + public final /* synthetic */ f j; + public final /* synthetic */ c k; + + public b(c cVar, f fVar) { + this.k = cVar; + this.j = fVar; + } + + @Override // java.lang.Runnable + public void run() { + this.j.onProgressUpdate(this.k); + } +} diff --git a/app/src/main/java/b/f/e/c.java b/app/src/main/java/b/f/e/c.java new file mode 100644 index 0000000000..30e36b4633 --- /dev/null +++ b/app/src/main/java/b/f/e/c.java @@ -0,0 +1,263 @@ +package b.f.e; + +import android.util.Pair; +import com.facebook.datasource.DataSource; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.Executor; +/* compiled from: AbstractDataSource */ +public abstract class c implements DataSource { + public Map a; + + /* renamed from: b reason: collision with root package name */ + public int f465b = 1; + public boolean c = false; + public T d = null; + public Throwable e = null; + public float f = 0.0f; + public final ConcurrentLinkedQueue, Executor>> g = new ConcurrentLinkedQueue<>(); + + @Override // com.facebook.datasource.DataSource + public Map a() { + return this.a; + } + + @Override // com.facebook.datasource.DataSource + public synchronized boolean b() { + return this.d != null; + } + + @Override // com.facebook.datasource.DataSource + public synchronized boolean c() { + boolean z2; + z2 = true; + if (this.f465b == 1) { + z2 = false; + } + return z2; + } + + @Override // com.facebook.datasource.DataSource + public boolean close() { + T t; + synchronized (this) { + if (this.c) { + return false; + } + this.c = true; + t = this.d; + this.d = null; + } + if (t != null) { + g(t); + } + if (!c()) { + j(); + } + synchronized (this) { + this.g.clear(); + } + return true; + } + + @Override // com.facebook.datasource.DataSource + public synchronized Throwable d() { + return this.e; + } + + @Override // com.facebook.datasource.DataSource + public boolean e() { + return false; + } + + @Override // com.facebook.datasource.DataSource + public void f(f fVar, Executor executor) { + boolean z2; + Objects.requireNonNull(executor); + synchronized (this) { + if (!this.c) { + z2 = true; + if (this.f465b == 1) { + this.g.add(Pair.create(fVar, executor)); + } + if (!b() && !c()) { + if (!n()) { + z2 = false; + } + } + } else { + return; + } + } + if (z2) { + executor.execute(new a(this, h(), fVar, n())); + } + } + + public void g(T t) { + } + + @Override // com.facebook.datasource.DataSource + public synchronized float getProgress() { + return this.f; + } + + @Override // com.facebook.datasource.DataSource + public synchronized T getResult() { + return this.d; + } + + public synchronized boolean h() { + return this.f465b == 3; + } + + public synchronized boolean i() { + return this.c; + } + + public final void j() { + boolean h = h(); + boolean n = n(); + Iterator, Executor>> it = this.g.iterator(); + while (it.hasNext()) { + Pair, Executor> next = it.next(); + ((Executor) next.second).execute(new a(this, h, (f) next.first, n)); + } + } + + public boolean k(Throwable th, Map map) { + boolean z2; + synchronized (this) { + z2 = true; + if (!this.c) { + if (this.f465b == 1) { + this.f465b = 3; + this.e = th; + this.a = map; + } + } + z2 = false; + } + if (z2) { + j(); + } + return z2; + } + + public boolean l(float f) { + boolean z2; + synchronized (this) { + z2 = false; + if (!this.c) { + if (this.f465b == 1) { + if (f >= this.f) { + this.f = f; + z2 = true; + } + } + } + } + if (z2) { + Iterator, Executor>> it = this.g.iterator(); + while (it.hasNext()) { + Pair, Executor> next = it.next(); + ((Executor) next.second).execute(new b(this, (f) next.first)); + } + } + return z2; + } + + /* JADX WARNING: Code restructure failed: missing block: B:20:0x0023, code lost: + if (r4 == null) goto L_0x002d; + */ + /* JADX WARNING: Code restructure failed: missing block: B:24:0x0028, code lost: + if (r4 != null) goto L_0x002a; + */ + /* JADX WARNING: Code restructure failed: missing block: B:25:0x002a, code lost: + g(r4); + */ + /* JADX WARNING: Code restructure failed: missing block: B:26:0x002d, code lost: + if (r1 == false) goto L_0x0032; + */ + /* JADX WARNING: Code restructure failed: missing block: B:27:0x002f, code lost: + j(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:28:0x0032, code lost: + return r1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:38:0x003d, code lost: + r4 = th; + */ + /* JADX WARNING: Code restructure failed: missing block: B:39:0x003e, code lost: + r6 = r6; + */ + public boolean m(T t, boolean z2, Map map) { + Throwable th; + this.a = map; + T t2 = null; + try { + synchronized (this) { + try { + boolean z3 = true; + if (!this.c) { + if (this.f465b == 1) { + if (z2) { + this.f465b = 2; + this.f = 1.0f; + } + T t3 = this.d; + if (t3 != t) { + try { + this.d = t; + t = t3; + } catch (Throwable th2) { + th = th2; + t2 = t3; + while (true) { + try { + break; + } catch (Throwable th3) { + th = th3; + } + } + throw th; + } + } else { + t = null; + } + try { + } catch (Throwable th4) { + t3 = t; + th = th4; + t2 = t3; + while (true) { + break; + } + throw th; + } + } + } + z3 = false; + } catch (Throwable th5) { + th = th5; + while (true) { + break; + } + throw th; + } + } + } catch (Throwable th6) { + Throwable th7 = th6; + if (t2 != null) { + g(t2); + } + throw th7; + } + } + + public final synchronized boolean n() { + return i() && !c(); + } +} diff --git a/app/src/main/java/b/f/e/d.java b/app/src/main/java/b/f/e/d.java new file mode 100644 index 0000000000..d3c17d730e --- /dev/null +++ b/app/src/main/java/b/f/e/d.java @@ -0,0 +1,38 @@ +package b.f.e; + +import com.facebook.datasource.DataSource; +/* compiled from: BaseDataSubscriber */ +public abstract class d implements f { + @Override // b.f.e.f + public void onCancellation(DataSource dataSource) { + } + + @Override // b.f.e.f + public void onFailure(DataSource dataSource) { + try { + onFailureImpl(dataSource); + } finally { + dataSource.close(); + } + } + + public abstract void onFailureImpl(DataSource dataSource); + + @Override // b.f.e.f + public void onNewResult(DataSource dataSource) { + boolean c = dataSource.c(); + try { + onNewResultImpl(dataSource); + } finally { + if (c) { + dataSource.close(); + } + } + } + + public abstract void onNewResultImpl(DataSource dataSource); + + @Override // b.f.e.f + public void onProgressUpdate(DataSource dataSource) { + } +} diff --git a/app/src/main/java/b/f/e/e.java b/app/src/main/java/b/f/e/e.java new file mode 100644 index 0000000000..02492ef1e4 --- /dev/null +++ b/app/src/main/java/b/f/e/e.java @@ -0,0 +1,18 @@ +package b.f.e; + +import b.c.a.a0.d; +import com.facebook.common.internal.Supplier; +import com.facebook.datasource.DataSource; +/* compiled from: DataSources */ +public final class e implements Supplier> { + public final /* synthetic */ Throwable a; + + public e(Throwable th) { + this.a = th; + } + + @Override // com.facebook.common.internal.Supplier + public Object get() { + return d.M0(this.a); + } +} diff --git a/app/src/main/java/b/f/e/f.java b/app/src/main/java/b/f/e/f.java new file mode 100644 index 0000000000..951e8eadcb --- /dev/null +++ b/app/src/main/java/b/f/e/f.java @@ -0,0 +1,13 @@ +package b.f.e; + +import com.facebook.datasource.DataSource; +/* compiled from: DataSubscriber */ +public interface f { + void onCancellation(DataSource dataSource); + + void onFailure(DataSource dataSource); + + void onNewResult(DataSource dataSource); + + void onProgressUpdate(DataSource dataSource); +} diff --git a/app/src/main/java/b/f/e/g.java b/app/src/main/java/b/f/e/g.java new file mode 100644 index 0000000000..9c7e7d87f5 --- /dev/null +++ b/app/src/main/java/b/f/e/g.java @@ -0,0 +1,203 @@ +package b.f.e; + +import b.c.a.a0.d; +import b.f.d.d.i; +import com.facebook.common.internal.Supplier; +import com.facebook.datasource.DataSource; +import java.util.List; +import java.util.Objects; +/* compiled from: FirstAvailableDataSourceSupplier */ +public class g implements Supplier> { + public final List>> a; + + /* compiled from: FirstAvailableDataSourceSupplier */ + public class b extends c { + public int h = 0; + public DataSource i = null; + public DataSource j = null; + + /* compiled from: FirstAvailableDataSourceSupplier */ + public class a implements f { + public a(a aVar) { + } + + @Override // b.f.e.f + public void onCancellation(DataSource dataSource) { + } + + @Override // b.f.e.f + public void onFailure(DataSource dataSource) { + b.o(b.this, dataSource); + } + + /* JADX WARNING: Removed duplicated region for block: B:17:0x0029 */ + @Override // b.f.e.f + public void onNewResult(DataSource dataSource) { + if (dataSource.b()) { + b bVar = b.this; + Objects.requireNonNull(bVar); + c cVar = (c) dataSource; + boolean c = cVar.c(); + synchronized (bVar) { + if (dataSource == bVar.i) { + DataSource dataSource2 = bVar.j; + if (dataSource != dataSource2) { + if (dataSource2 != null) { + if (!c) { + dataSource2 = null; + if (dataSource2 != null) { + dataSource2.close(); + } + } + } + bVar.j = dataSource; + if (dataSource2 != null) { + } + } + } + } + if (dataSource == bVar.p()) { + bVar.m(null, cVar.c(), cVar.a); + } + } else if (((c) dataSource).c()) { + b.o(b.this, dataSource); + } + } + + @Override // b.f.e.f + public void onProgressUpdate(DataSource dataSource) { + b.this.l(Math.max(b.this.getProgress(), ((c) dataSource).getProgress())); + } + } + + public b() { + if (!q()) { + k(new RuntimeException("No data source supplier or supplier returned null."), null); + } + } + + public static void o(b bVar, DataSource dataSource) { + boolean z2; + synchronized (bVar) { + if (!bVar.i()) { + if (dataSource == bVar.i) { + bVar.i = null; + z2 = true; + } + } + z2 = false; + } + if (z2) { + if (!(dataSource == bVar.p() || dataSource == null)) { + dataSource.close(); + } + if (!bVar.q()) { + bVar.k(dataSource.d(), dataSource.a()); + } + } + } + + @Override // b.f.e.c, com.facebook.datasource.DataSource + public synchronized boolean b() { + DataSource p; + p = p(); + return p != null && p.b(); + } + + @Override // b.f.e.c, com.facebook.datasource.DataSource + public boolean close() { + DataSource dataSource; + DataSource dataSource2; + synchronized (this) { + if (!super.close()) { + return false; + } + dataSource = this.i; + this.i = null; + dataSource2 = this.j; + this.j = null; + } + if (dataSource2 != null) { + dataSource2.close(); + } + if (dataSource == null) { + return true; + } + dataSource.close(); + return true; + } + + @Override // b.f.e.c, com.facebook.datasource.DataSource + public synchronized T getResult() { + DataSource p; + p = p(); + return p != null ? p.getResult() : null; + } + + public final synchronized DataSource p() { + return this.j; + } + + public final boolean q() { + Supplier> supplier; + boolean z2; + synchronized (this) { + if (i() || this.h >= g.this.a.size()) { + supplier = null; + } else { + List>> list = g.this.a; + int i = this.h; + this.h = i + 1; + supplier = list.get(i); + } + } + DataSource dataSource = supplier != null ? supplier.get() : null; + synchronized (this) { + if (i()) { + z2 = false; + } else { + this.i = dataSource; + z2 = true; + } + } + if (!z2 || dataSource == null) { + if (dataSource != null) { + dataSource.close(); + } + return false; + } + dataSource.f(new a(null), b.f.d.b.a.j); + return true; + } + } + + public g(List>> list) { + d.k(!list.isEmpty(), "List of suppliers is empty!"); + this.a = list; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof g)) { + return false; + } + return d.f0(this.a, ((g) obj).a); + } + + @Override // com.facebook.common.internal.Supplier + public Object get() { + return new b(); + } + + public int hashCode() { + return this.a.hashCode(); + } + + public String toString() { + i f2 = d.f2(this); + f2.c("list", this.a); + return f2.toString(); + } +} diff --git a/app/src/main/java/b/f/e/h.java b/app/src/main/java/b/f/e/h.java new file mode 100644 index 0000000000..4da23922ef --- /dev/null +++ b/app/src/main/java/b/f/e/h.java @@ -0,0 +1,4 @@ +package b.f.e; +/* compiled from: SimpleDataSource */ +public class h extends c { +} diff --git a/app/src/main/java/b/f/f/a/a.java b/app/src/main/java/b/f/f/a/a.java new file mode 100644 index 0000000000..3bcbf516a7 --- /dev/null +++ b/app/src/main/java/b/f/f/a/a.java @@ -0,0 +1,5 @@ +package b.f.f.a; +/* compiled from: DrawableWithCaches */ +public interface a { + void a(); +} diff --git a/app/src/main/java/b/f/g/a/a/a.java b/app/src/main/java/b/f/g/a/a/a.java new file mode 100644 index 0000000000..9918a54b73 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/a.java @@ -0,0 +1,64 @@ +package b.f.g.a.a; + +import android.content.res.Resources; +import android.graphics.drawable.BitmapDrawable; +import android.graphics.drawable.Drawable; +import b.f.g.e.i; +import b.f.j.j.c; +import b.f.j.j.d; +import b.f.j.r.b; +/* compiled from: DefaultDrawableFactory */ +public class a implements b.f.j.i.a { + public final Resources a; + + /* renamed from: b reason: collision with root package name */ + public final b.f.j.i.a f466b; + + public a(Resources resources, b.f.j.i.a aVar) { + this.a = resources; + this.f466b = aVar; + } + + @Override // b.f.j.i.a + public boolean a(c cVar) { + return true; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.i.a + public Drawable b(c cVar) { + try { + b.b(); + if (cVar instanceof d) { + d dVar = (d) cVar; + BitmapDrawable bitmapDrawable = new BitmapDrawable(this.a, dVar.m); + int i = dVar.o; + boolean z2 = true; + if (!((i == 0 || i == -1) ? false : true)) { + int i2 = dVar.p; + if (i2 == 1 || i2 == 0) { + z2 = false; + } + if (!z2) { + b.b(); + return bitmapDrawable; + } + } + i iVar = new i(bitmapDrawable, dVar.o, dVar.p); + b.b(); + return iVar; + } + b.f.j.i.a aVar = this.f466b; + if (aVar == null || !aVar.a(cVar)) { + b.b(); + return null; + } + Drawable b2 = this.f466b.b(cVar); + b.b(); + return b2; + } catch (Throwable th) { + b.b(); + throw th; + } + } +} diff --git a/app/src/main/java/b/f/g/a/a/b.java b/app/src/main/java/b/f/g/a/a/b.java new file mode 100644 index 0000000000..d9239bd04f --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/b.java @@ -0,0 +1,12 @@ +package b.f.g.a.a; +/* compiled from: Fresco */ +public class b { + public static e a = null; + + /* renamed from: b reason: collision with root package name */ + public static volatile boolean f467b = false; + + public static d a() { + return a.get(); + } +} diff --git a/app/src/main/java/b/f/g/a/a/c.java b/app/src/main/java/b/f/g/a/a/c.java new file mode 100644 index 0000000000..f94775e1e2 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/c.java @@ -0,0 +1,372 @@ +package b.f.g.a.a; + +import android.content.res.Resources; +import android.graphics.drawable.Drawable; +import android.net.Uri; +import androidx.core.os.EnvironmentCompat; +import b.c.a.a0.d; +import b.f.d.d.e; +import b.f.d.d.i; +import b.f.g.a.a.h.b; +import b.f.g.a.a.h.f; +import b.f.g.a.a.h.h; +import b.f.g.e.p; +import b.f.j.c.w; +import b.f.j.i.a; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.internal.Supplier; +import com.facebook.common.references.CloseableReference; +import com.facebook.common.time.AwakeTimeSinceBootClock; +import com.facebook.datasource.DataSource; +import com.facebook.drawee.controller.AbstractDraweeController; +import com.facebook.drawee.controller.AbstractDraweeControllerBuilder; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +import com.facebook.drawee.interfaces.DraweeHierarchy; +import com.facebook.imagepipeline.image.ImageInfo; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.Executor; +/* compiled from: PipelineDraweeController */ +public class c extends AbstractDraweeController, ImageInfo> { + public CacheKey A; + public Supplier>> B; + public boolean C; + public e D; + public f E; + public Set F; + public b G; + public b.f.g.a.a.g.b H; + public ImageRequest I; + public ImageRequest[] J; + public ImageRequest K; + + /* renamed from: x reason: collision with root package name */ + public final a f468x; + + /* renamed from: y reason: collision with root package name */ + public final e f469y; + + /* renamed from: z reason: collision with root package name */ + public final w f470z; + + public c(Resources resources, b.f.g.b.a aVar, a aVar2, Executor executor, w wVar, e eVar) { + super(aVar, executor, null, null); + this.f468x = new a(resources, aVar2); + this.f469y = eVar; + this.f470z = wVar; + } + + public synchronized void F(b bVar) { + b bVar2 = this.G; + if (bVar2 instanceof b.f.g.a.a.h.a) { + b.f.g.a.a.h.a aVar = (b.f.g.a.a.h.a) bVar2; + synchronized (aVar) { + aVar.a.add(bVar); + } + } else if (bVar2 != null) { + this.G = new b.f.g.a.a.h.a(bVar2, bVar); + } else { + this.G = bVar; + } + } + + public synchronized void G(b.f.j.k.e eVar) { + if (this.F == null) { + this.F = new HashSet(); + } + this.F.add(eVar); + } + + public void H(Supplier>> supplier, String str, CacheKey cacheKey, Object obj, e eVar, b bVar) { + b.f.j.r.b.b(); + n(str, obj); + this.v = false; + this.B = supplier; + K(null); + this.A = cacheKey; + this.D = null; + synchronized (this) { + this.G = null; + } + K(null); + F(null); + b.f.j.r.b.b(); + } + + public synchronized void I(b.f.g.a.a.h.e eVar, AbstractDraweeControllerBuilder, ImageInfo> abstractDraweeControllerBuilder, Supplier supplier) { + f fVar = this.E; + if (fVar != null) { + fVar.c(); + } + if (eVar != null) { + if (this.E == null) { + this.E = new f(AwakeTimeSinceBootClock.get(), this, supplier); + } + f fVar2 = this.E; + Objects.requireNonNull(fVar2); + if (fVar2.j == null) { + fVar2.j = new CopyOnWriteArrayList(); + } + fVar2.j.add(eVar); + this.E.d(true); + h hVar = this.E.c; + hVar.f = abstractDraweeControllerBuilder.h; + hVar.g = null; + hVar.h = abstractDraweeControllerBuilder.i; + } + this.I = abstractDraweeControllerBuilder.h; + this.J = abstractDraweeControllerBuilder.i; + this.K = null; + } + + public final Drawable J(e eVar, b.f.j.j.c cVar) { + Drawable b2; + if (eVar == null) { + return null; + } + Iterator it = eVar.iterator(); + while (it.hasNext()) { + a next = it.next(); + if (next.a(cVar) && (b2 = next.b(cVar)) != null) { + return b2; + } + } + return null; + } + + public final void K(b.f.j.j.c cVar) { + String str; + p o0; + if (this.C) { + if (this.l == null) { + b.f.g.d.a aVar = new b.f.g.d.a(); + b.f.g.d.b.a aVar2 = new b.f.g.d.b.a(aVar); + this.H = new b.f.g.a.a.g.b(); + f(aVar2); + this.l = aVar; + b.f.g.h.a aVar3 = this.k; + if (aVar3 != null) { + aVar3.a(aVar); + } + } + if (this.G == null) { + F(this.H); + } + Drawable drawable = this.l; + if (drawable instanceof b.f.g.d.a) { + b.f.g.d.a aVar4 = (b.f.g.d.a) drawable; + String str2 = this.m; + if (str2 == null) { + str2 = "none"; + } + aVar4.j = str2; + aVar4.invalidateSelf(); + b.f.g.h.a aVar5 = this.k; + ScalingUtils$ScaleType scalingUtils$ScaleType = null; + if (!(aVar5 == null || (o0 = d.o0(aVar5.e())) == null)) { + scalingUtils$ScaleType = o0.n; + } + aVar4.n = scalingUtils$ScaleType; + int i = this.H.a; + switch (i) { + case 2: + str = "network"; + break; + case 3: + str = "disk"; + break; + case 4: + str = "memory_encoded"; + break; + case 5: + str = "memory_bitmap"; + break; + case 6: + str = "memory_bitmap_shortcut"; + break; + case 7: + str = "local"; + break; + default: + str = EnvironmentCompat.MEDIA_UNKNOWN; + break; + } + int i2 = b.f.g.a.a.g.a.a.get(i, -1); + aVar4.C = str; + aVar4.D = i2; + aVar4.invalidateSelf(); + if (cVar != null) { + int width = cVar.getWidth(); + int height = cVar.getHeight(); + aVar4.k = width; + aVar4.l = height; + aVar4.invalidateSelf(); + aVar4.m = cVar.c(); + return; + } + aVar4.c(); + } + } + } + + public synchronized void L(b.f.j.k.e eVar) { + Set set = this.F; + if (set != null) { + set.remove(eVar); + } + } + + @Override // com.facebook.drawee.controller.AbstractDraweeController, com.facebook.drawee.interfaces.DraweeController + public void e(DraweeHierarchy draweeHierarchy) { + super.e(draweeHierarchy); + K(null); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + /* JADX INFO: finally extract failed */ + @Override // com.facebook.drawee.controller.AbstractDraweeController + public Drawable g(CloseableReference closeableReference) { + CloseableReference closeableReference2 = closeableReference; + try { + b.f.j.r.b.b(); + d.B(CloseableReference.y(closeableReference2)); + b.f.j.j.c u = closeableReference2.u(); + K(u); + Drawable J = J(this.D, u); + if (J == null && (J = J(this.f469y, u)) == null && (J = this.f468x.b(u)) == null) { + throw new UnsupportedOperationException("Unrecognized image class: " + u); + } + b.f.j.r.b.b(); + return J; + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // com.facebook.drawee.controller.AbstractDraweeController + public CloseableReference h() { + b.f.j.r.b.b(); + try { + w wVar = this.f470z; + if (wVar != null) { + CacheKey cacheKey = this.A; + if (cacheKey != null) { + CloseableReference closeableReference = wVar.get(cacheKey); + if (closeableReference == null || ((b.f.j.j.h) closeableReference.u().b()).d) { + b.f.j.r.b.b(); + return closeableReference; + } + closeableReference.close(); + } + } + return null; + } finally { + b.f.j.r.b.b(); + } + } + + @Override // com.facebook.drawee.controller.AbstractDraweeController + public DataSource> j() { + b.f.j.r.b.b(); + if (b.f.d.e.a.h(2)) { + System.identityHashCode(this); + } + DataSource> dataSource = this.B.get(); + b.f.j.r.b.b(); + return dataSource; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.drawee.controller.AbstractDraweeController + public int k(CloseableReference closeableReference) { + CloseableReference closeableReference2 = closeableReference; + if (closeableReference2 == null || !closeableReference2.x()) { + return 0; + } + return System.identityHashCode(closeableReference2.o.c()); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.drawee.controller.AbstractDraweeController + public ImageInfo l(CloseableReference closeableReference) { + CloseableReference closeableReference2 = closeableReference; + d.B(CloseableReference.y(closeableReference2)); + return closeableReference2.u(); + } + + /* JADX WARNING: Code restructure failed: missing block: B:14:0x0021, code lost: + if (r0 != null) goto L_0x000d; + */ + @Override // com.facebook.drawee.controller.AbstractDraweeController + public Uri m() { + Uri uri; + ImageRequest imageRequest = this.I; + ImageRequest imageRequest2 = this.K; + ImageRequest[] imageRequestArr = this.J; + if (imageRequest == null || (uri = imageRequest.c) == null) { + if (!(imageRequestArr == null || imageRequestArr.length <= 0 || imageRequestArr[0] == null)) { + ImageRequest imageRequest3 = imageRequestArr[0]; + uri = imageRequest3 != null ? imageRequest3.c : null; + } + if (imageRequest2 != null) { + return imageRequest2.c; + } + return null; + } + return uri; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.drawee.controller.AbstractDraweeController + public Map t(ImageInfo imageInfo) { + ImageInfo imageInfo2 = imageInfo; + if (imageInfo2 == null) { + return null; + } + return imageInfo2.a(); + } + + @Override // com.facebook.drawee.controller.AbstractDraweeController + public String toString() { + i f2 = d.f2(this); + f2.c("super", super.toString()); + f2.c("dataSourceSupplier", this.B); + return f2.toString(); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.String, java.lang.Object] */ + @Override // com.facebook.drawee.controller.AbstractDraweeController + public void v(String str, CloseableReference closeableReference) { + synchronized (this) { + b bVar = this.G; + if (bVar != null) { + bVar.a(str, 6, true, "PipelineDraweeController"); + } + } + } + + @Override // com.facebook.drawee.controller.AbstractDraweeController + public void x(Drawable drawable) { + if (drawable instanceof b.f.f.a.a) { + ((b.f.f.a.a) drawable).a(); + } + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.drawee.controller.AbstractDraweeController + public void z(CloseableReference closeableReference) { + CloseableReference closeableReference2 = closeableReference; + Class cls = CloseableReference.j; + if (closeableReference2 != null) { + closeableReference2.close(); + } + } +} diff --git a/app/src/main/java/b/f/g/a/a/d.java b/app/src/main/java/b/f/g/a/a/d.java new file mode 100644 index 0000000000..46380b649a --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/d.java @@ -0,0 +1,153 @@ +package b.f.g.a.a; + +import android.content.Context; +import android.net.Uri; +import b.f.d.d.l; +import b.f.g.a.a.h.e; +import b.f.h.b.a.b; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.d.f; +import b.f.j.e.h; +import b.f.j.j.c; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.internal.Supplier; +import com.facebook.common.references.CloseableReference; +import com.facebook.datasource.DataSource; +import com.facebook.drawee.controller.AbstractDraweeController; +import com.facebook.drawee.controller.AbstractDraweeControllerBuilder; +import com.facebook.drawee.controller.ControllerListener; +import com.facebook.drawee.interfaces.DraweeController; +import com.facebook.imagepipeline.image.ImageInfo; +import com.facebook.imagepipeline.request.ImageRequest; +import com.facebook.imagepipeline.request.ImageRequestBuilder; +import java.util.Set; +/* compiled from: PipelineDraweeControllerBuilder */ +public class d extends AbstractDraweeControllerBuilder, ImageInfo> { + public final h o; + public final f p; + public e q; + + public d(Context context, f fVar, h hVar, Set set, Set set2) { + super(context, set, set2); + this.o = hVar; + this.p = fVar; + } + + /* Return type fixed from 'com.facebook.datasource.DataSource' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.facebook.drawee.interfaces.DraweeController, java.lang.String, java.lang.Object, java.lang.Object, com.facebook.drawee.controller.AbstractDraweeControllerBuilder$b] */ + /* JADX DEBUG: Multi-variable search result rejected for r2v1, resolved type: b.f.j.k.c */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // com.facebook.drawee.controller.AbstractDraweeControllerBuilder + public DataSource> b(DraweeController draweeController, String str, ImageRequest imageRequest, Object obj, AbstractDraweeControllerBuilder.b bVar) { + ImageRequest.c cVar; + b.f.g.a.a.h.c cVar2; + ImageRequest imageRequest2 = imageRequest; + h hVar = this.o; + int ordinal = bVar.ordinal(); + if (ordinal == 0) { + cVar = ImageRequest.c.FULL_FETCH; + } else if (ordinal == 1) { + cVar = ImageRequest.c.DISK_CACHE; + } else if (ordinal == 2) { + cVar = ImageRequest.c.BITMAP_MEMORY_CACHE; + } else { + throw new RuntimeException("Cache level" + bVar + "is not supported. "); + } + b.f.g.a.a.h.c cVar3 = null; + if (draweeController instanceof c) { + c cVar4 = (c) draweeController; + synchronized (cVar4) { + b.f.g.a.a.h.b bVar2 = cVar4.G; + if (bVar2 != null) { + cVar3 = new b.f.g.a.a.h.c(cVar4.m, bVar2); + } + Set set = cVar4.F; + if (set != null) { + b.f.j.k.c cVar5 = new b.f.j.k.c(set); + if (cVar3 != null) { + cVar5.a.add(cVar3); + } + cVar2 = cVar5; + } + } + return hVar.a(imageRequest2, obj, cVar, cVar2, str); + } + cVar2 = cVar3; + return hVar.a(imageRequest2, obj, cVar, cVar2, str); + } + + @Override // com.facebook.drawee.controller.AbstractDraweeControllerBuilder + public AbstractDraweeController d() { + c cVar; + CacheKey cacheKey; + CacheKey cacheKey2; + b.f.j.r.b.b(); + try { + DraweeController draweeController = this.n; + String valueOf = String.valueOf(AbstractDraweeControllerBuilder.c.getAndIncrement()); + if (draweeController instanceof c) { + cVar = (c) draweeController; + } else { + f fVar = this.p; + c cVar2 = new c(fVar.a, fVar.f472b, fVar.c, fVar.d, fVar.e, fVar.f); + Supplier supplier = fVar.g; + if (supplier != null) { + cVar2.C = supplier.get().booleanValue(); + } + cVar = cVar2; + } + Supplier>> e = e(cVar, valueOf); + ImageRequest imageRequest = this.h; + i iVar = this.o.g; + if (iVar == null || imageRequest == null) { + cacheKey = null; + } else { + if (imageRequest.q != null) { + cacheKey2 = ((n) iVar).c(imageRequest, this.g); + } else { + cacheKey2 = ((n) iVar).a(imageRequest, this.g); + } + cacheKey = cacheKey2; + } + cVar.H(e, valueOf, cacheKey, this.g, null, null); + cVar.I(this.q, this, l.a); + return cVar; + } finally { + b.f.j.r.b.b(); + } + } + + /* JADX WARNING: Unknown variable types count: 1 */ + public d f(Uri uri) { + if (uri == null) { + this.h = null; + return this; + } + ImageRequestBuilder b2 = ImageRequestBuilder.b(uri); + b2.d = f.f555b; + this.h = b2.a(); + return this; + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: REQUEST */ + /* JADX DEBUG: Multi-variable search result rejected for r0v1, resolved type: REQUEST */ + /* JADX DEBUG: Multi-variable search result rejected for r0v4, resolved type: REQUEST */ + /* JADX DEBUG: Multi-variable search result rejected for r0v5, resolved type: REQUEST */ + /* JADX DEBUG: Multi-variable search result rejected for r0v6, resolved type: REQUEST */ + /* JADX WARN: Multi-variable type inference failed */ + public d g(String str) { + Uri parse; + if (str != null && !str.isEmpty()) { + return f(Uri.parse(str)); + } + REQUEST request = 0; + request = 0; + request = 0; + if (!(str == null || str.length() == 0 || (parse = Uri.parse(str)) == null)) { + request = ImageRequestBuilder.b(parse).a(); + } + this.h = request; + return this; + } +} diff --git a/app/src/main/java/b/f/g/a/a/e.java b/app/src/main/java/b/f/g/a/a/e.java new file mode 100644 index 0000000000..3f7de24a8f --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/e.java @@ -0,0 +1,64 @@ +package b.f.g.a.a; + +import android.content.Context; +import android.content.res.Resources; +import b.c.a.a0.d; +import b.f.d.b.f; +import b.f.g.b.a; +import b.f.g.b.b; +import b.f.j.c.w; +import b.f.j.e.h; +import b.f.j.e.l; +import b.f.j.j.c; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.internal.Supplier; +/* compiled from: PipelineDraweeControllerBuilderSupplier */ +public class e implements Supplier { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final h f471b; + public final f c; + + public e(Context context) { + a aVar; + l lVar = l.a; + d.y(lVar, "ImagePipelineFactory was not initialized!"); + this.a = context; + if (lVar.l == null) { + lVar.l = lVar.a(); + } + h hVar = lVar.l; + this.f471b = hVar; + f fVar = new f(); + this.c = fVar; + Resources resources = context.getResources(); + synchronized (a.class) { + if (a.a == null) { + a.a = new b(); + } + aVar = a.a; + } + b.f.j.a.b.a b2 = lVar.b(); + b.f.j.i.a a = b2 == null ? null : b2.a(context); + if (f.k == null) { + f.k = new f(); + } + f fVar2 = f.k; + w wVar = hVar.e; + fVar.a = resources; + fVar.f472b = aVar; + fVar.c = a; + fVar.d = fVar2; + fVar.e = wVar; + fVar.f = null; + fVar.g = null; + } + + /* renamed from: a */ + public d get() { + d dVar = new d(this.a, this.c, this.f471b, null, null); + dVar.q = null; + return dVar; + } +} diff --git a/app/src/main/java/b/f/g/a/a/f.java b/app/src/main/java/b/f/g/a/a/f.java new file mode 100644 index 0000000000..c10a4954ed --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/f.java @@ -0,0 +1,22 @@ +package b.f.g.a.a; + +import android.content.res.Resources; +import b.f.d.d.e; +import b.f.g.b.a; +import b.f.j.c.w; +import b.f.j.j.c; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.internal.Supplier; +import java.util.concurrent.Executor; +/* compiled from: PipelineDraweeControllerFactory */ +public class f { + public Resources a; + + /* renamed from: b reason: collision with root package name */ + public a f472b; + public b.f.j.i.a c; + public Executor d; + public w e; + public e f; + public Supplier g; +} diff --git a/app/src/main/java/b/f/g/a/a/g/a.java b/app/src/main/java/b/f/g/a/a/g/a.java new file mode 100644 index 0000000000..713fc54feb --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/g/a.java @@ -0,0 +1,21 @@ +package b.f.g.a.a.g; + +import android.util.SparseIntArray; +import androidx.core.internal.view.SupportMenu; +import androidx.core.view.InputDeviceCompat; +/* compiled from: DebugOverlayImageOriginColor */ +public class a { + public static final SparseIntArray a; + + static { + SparseIntArray sparseIntArray = new SparseIntArray(7); + a = sparseIntArray; + sparseIntArray.append(1, -7829368); + sparseIntArray.append(2, SupportMenu.CATEGORY_MASK); + sparseIntArray.append(3, InputDeviceCompat.SOURCE_ANY); + sparseIntArray.append(4, InputDeviceCompat.SOURCE_ANY); + sparseIntArray.append(5, -16711936); + sparseIntArray.append(6, -16711936); + sparseIntArray.append(7, -16711936); + } +} diff --git a/app/src/main/java/b/f/g/a/a/g/b.java b/app/src/main/java/b/f/g/a/a/g/b.java new file mode 100644 index 0000000000..65978f95e2 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/g/b.java @@ -0,0 +1,10 @@ +package b.f.g.a.a.g; +/* compiled from: DebugOverlayImageOriginListener */ +public class b implements b.f.g.a.a.h.b { + public int a = 1; + + @Override // b.f.g.a.a.h.b + public void a(String str, int i, boolean z2, String str2) { + this.a = i; + } +} diff --git a/app/src/main/java/b/f/g/a/a/h/a.java b/app/src/main/java/b/f/g/a/a/h/a.java new file mode 100644 index 0000000000..69dae59567 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/a.java @@ -0,0 +1,30 @@ +package b.f.g.a.a.h; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +/* compiled from: ForwardingImageOriginListener */ +public class a implements b { + public final List a; + + public a(b... bVarArr) { + ArrayList arrayList = new ArrayList(bVarArr.length); + this.a = arrayList; + Collections.addAll(arrayList, bVarArr); + } + + @Override // b.f.g.a.a.h.b + public synchronized void a(String str, int i, boolean z2, String str2) { + int size = this.a.size(); + for (int i2 = 0; i2 < size; i2++) { + b bVar = this.a.get(i2); + if (bVar != null) { + try { + bVar.a(str, i, z2, str2); + } catch (Exception e) { + b.f.d.e.a.f("ForwardingImageOriginListener", "InternalListener exception in onImageLoaded", e); + } + } + } + } +} diff --git a/app/src/main/java/b/f/g/a/a/h/b.java b/app/src/main/java/b/f/g/a/a/h/b.java new file mode 100644 index 0000000000..27b776a866 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/b.java @@ -0,0 +1,5 @@ +package b.f.g.a.a.h; +/* compiled from: ImageOriginListener */ +public interface b { + void a(String str, int i, boolean z2, String str2); +} diff --git a/app/src/main/java/b/f/g/a/a/h/c.java b/app/src/main/java/b/f/g/a/a/h/c.java new file mode 100644 index 0000000000..8b3aecf71d --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/c.java @@ -0,0 +1,146 @@ +package b.f.g.a.a.h; + +import b.f.j.k.a; +/* compiled from: ImageOriginRequestListener */ +public class c extends a { + public String a; + + /* renamed from: b reason: collision with root package name */ + public final b f473b; + + public c(String str, b bVar) { + this.f473b = bVar; + this.a = str; + } + + @Override // b.f.j.k.a, b.f.j.p.z0 + public void e(String str, String str2, boolean z2) { + b bVar = this.f473b; + if (bVar != null) { + String str3 = this.a; + str2.hashCode(); + char c = 65535; + int i = 1; + switch (str2.hashCode()) { + case -1917159454: + if (str2.equals("QualifiedResourceFetchProducer")) { + c = 0; + break; + } + break; + case -1914072202: + if (str2.equals("BitmapMemoryCacheGetProducer")) { + c = 1; + break; + } + break; + case -1683996557: + if (str2.equals("LocalResourceFetchProducer")) { + c = 2; + break; + } + break; + case -1579985851: + if (str2.equals("LocalFileFetchProducer")) { + c = 3; + break; + } + break; + case -1307634203: + if (str2.equals("EncodedMemoryCacheProducer")) { + c = 4; + break; + } + break; + case -1224383234: + if (str2.equals("NetworkFetchProducer")) { + c = 5; + break; + } + break; + case 473552259: + if (str2.equals("VideoThumbnailProducer")) { + c = 6; + break; + } + break; + case 656304759: + if (str2.equals("DiskCacheProducer")) { + c = 7; + break; + } + break; + case 957714404: + if (str2.equals("BitmapMemoryCacheProducer")) { + c = '\b'; + break; + } + break; + case 1019542023: + if (str2.equals("LocalAssetFetchProducer")) { + c = '\t'; + break; + } + break; + case 1023071510: + if (str2.equals("PostprocessedBitmapMemoryCacheProducer")) { + c = '\n'; + break; + } + break; + case 1721672898: + if (str2.equals("DataFetchProducer")) { + c = 11; + break; + } + break; + case 1793127518: + if (str2.equals("LocalContentUriThumbnailFetchProducer")) { + c = '\f'; + break; + } + break; + case 2109593398: + if (str2.equals("PartialDiskCacheProducer")) { + c = '\r'; + break; + } + break; + case 2113652014: + if (str2.equals("LocalContentUriFetchProducer")) { + c = 14; + break; + } + break; + } + switch (c) { + case 0: + case 2: + case 3: + case 6: + case '\t': + case 11: + case '\f': + case 14: + i = 7; + break; + case 1: + case '\b': + case '\n': + i = 5; + break; + case 4: + i = 4; + break; + case 5: + i = 2; + break; + case 7: + case '\r': + i = 3; + break; + } + bVar.a(str3, i, z2, str2); + } + } +} diff --git a/app/src/main/java/b/f/g/a/a/h/d.java b/app/src/main/java/b/f/g/a/a/h/d.java new file mode 100644 index 0000000000..7dc815dc54 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/d.java @@ -0,0 +1,17 @@ +package b.f.g.a.a.h; + +import b.f.h.b.a.b; +import com.facebook.imagepipeline.image.ImageInfo; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: ImagePerfData */ +public class d { + public final Object a; + + /* renamed from: b reason: collision with root package name */ + public final ImageInfo f474b; + + public d(String str, String str2, ImageRequest imageRequest, Object obj, ImageInfo imageInfo, ImageRequest imageRequest2, ImageRequest imageRequest3, ImageRequest[] imageRequestArr, long j, long j2, long j3, long j4, long j5, long j6, long j7, int i, String str3, boolean z2, int i2, int i3, Throwable th, int i4, long j8, long j9, String str4, long j10, b.a aVar) { + this.a = obj; + this.f474b = imageInfo; + } +} diff --git a/app/src/main/java/b/f/g/a/a/h/e.java b/app/src/main/java/b/f/g/a/a/h/e.java new file mode 100644 index 0000000000..1de7f8f147 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/e.java @@ -0,0 +1,7 @@ +package b.f.g.a.a.h; +/* compiled from: ImagePerfDataListener */ +public interface e { + void a(d dVar, int i); + + void b(d dVar, int i); +} diff --git a/app/src/main/java/b/f/g/a/a/h/f.java b/app/src/main/java/b/f/g/a/a/h/f.java new file mode 100644 index 0000000000..05ccdfdfb9 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/f.java @@ -0,0 +1,158 @@ +package b.f.g.a.a.h; + +import android.graphics.Rect; +import b.f.d.d.l; +import b.f.d.k.b; +import b.f.g.a.a.c; +import b.f.g.a.a.h.i.a; +import com.facebook.common.internal.Supplier; +import java.util.List; +/* compiled from: ImagePerfMonitor */ +public class f implements g { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final b f475b; + public final h c = new h(); + public final Supplier d; + public c e; + public b f; + public b.f.g.a.a.h.i.c g; + public a h; + public b.f.j.k.c i; + public List j; + public boolean k; + + public f(b bVar, c cVar, Supplier supplier) { + this.f475b = bVar; + this.a = cVar; + this.d = supplier; + } + + public void a(h hVar, int i) { + List list; + if (!(!this.k || (list = this.j) == null || list.isEmpty())) { + d b2 = hVar.b(); + for (e eVar : this.j) { + eVar.b(b2, i); + } + } + } + + public void b(h hVar, int i) { + List list; + b.f.g.h.a aVar; + hVar.v = i; + if (!(!this.k || (list = this.j) == null || list.isEmpty())) { + if (!(i != 3 || (aVar = this.a.k) == null || aVar.e() == null)) { + Rect bounds = aVar.e().getBounds(); + this.c.f477s = bounds.width(); + this.c.t = bounds.height(); + } + d b2 = hVar.b(); + for (e eVar : this.j) { + eVar.a(b2, i); + } + } + } + + public void c() { + List list = this.j; + if (list != null) { + list.clear(); + } + d(false); + h hVar = this.c; + hVar.f476b = null; + hVar.c = null; + hVar.d = null; + hVar.e = null; + hVar.f = null; + hVar.g = null; + hVar.h = null; + hVar.p = 1; + hVar.q = null; + hVar.r = false; + hVar.f477s = -1; + hVar.t = -1; + hVar.u = null; + hVar.v = -1; + hVar.w = -1; + hVar.A = null; + hVar.a(); + } + + /* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: java.util.List> */ + /* JADX DEBUG: Multi-variable search result rejected for r1v2, resolved type: java.util.List> */ + /* JADX DEBUG: Multi-variable search result rejected for r1v5, resolved type: java.util.List> */ + /* JADX WARN: Multi-variable type inference failed */ + public void d(boolean z2) { + this.k = z2; + if (z2) { + if (this.h == null) { + this.h = new a(this.f475b, this.c, this, this.d, l.a); + } + if (this.g == null) { + this.g = new b.f.g.a.a.h.i.c(this.f475b, this.c); + } + if (this.f == null) { + this.f = new b.f.g.a.a.h.i.b(this.c, this); + } + c cVar = this.e; + if (cVar == null) { + this.e = new c(this.a.m, this.f); + } else { + cVar.a = this.a.m; + } + if (this.i == null) { + this.i = new b.f.j.k.c(this.g, this.e); + } + b bVar = this.f; + if (bVar != null) { + this.a.F(bVar); + } + a aVar = this.h; + if (aVar != null) { + b.f.h.b.a.c cVar2 = this.a.j; + synchronized (cVar2) { + cVar2.a.add(aVar); + } + } + b.f.j.k.c cVar3 = this.i; + if (cVar3 != null) { + this.a.G(cVar3); + return; + } + return; + } + b bVar2 = this.f; + if (bVar2 != null) { + c cVar4 = this.a; + synchronized (cVar4) { + b bVar3 = cVar4.G; + if (bVar3 instanceof a) { + a aVar2 = (a) bVar3; + synchronized (aVar2) { + aVar2.a.remove(bVar2); + } + } else if (bVar3 == bVar2) { + cVar4.G = null; + } + } + } + a aVar3 = this.h; + if (aVar3 != null) { + b.f.h.b.a.c cVar5 = this.a.j; + synchronized (cVar5) { + int indexOf = cVar5.a.indexOf(aVar3); + if (indexOf != -1) { + cVar5.a.remove(indexOf); + } + } + } + b.f.j.k.c cVar6 = this.i; + if (cVar6 != null) { + this.a.L(cVar6); + } + } +} diff --git a/app/src/main/java/b/f/g/a/a/h/g.java b/app/src/main/java/b/f/g/a/a/h/g.java new file mode 100644 index 0000000000..69f5866899 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/g.java @@ -0,0 +1,4 @@ +package b.f.g.a.a.h; +/* compiled from: ImagePerfNotifier */ +public interface g { +} diff --git a/app/src/main/java/b/f/g/a/a/h/h.java b/app/src/main/java/b/f/g/a/a/h/h.java new file mode 100644 index 0000000000..85d863ab82 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/h.java @@ -0,0 +1,61 @@ +package b.f.g.a.a.h; + +import b.f.h.b.a.b; +import com.facebook.imagepipeline.image.ImageInfo; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: ImagePerfState */ +public class h { + public b.a A; + public String a; + + /* renamed from: b reason: collision with root package name */ + public String f476b; + public ImageRequest c; + public Object d; + public ImageInfo e; + public ImageRequest f; + public ImageRequest g; + public ImageRequest[] h; + public long i = -1; + public long j = -1; + public long k = -1; + public long l = -1; + public long m = -1; + public long n = -1; + public long o = -1; + public int p = 1; + public String q; + public boolean r; + + /* renamed from: s reason: collision with root package name */ + public int f477s = -1; + public int t = -1; + public Throwable u; + public int v = -1; + public int w = -1; + + /* renamed from: x reason: collision with root package name */ + public long f478x = -1; + + /* renamed from: y reason: collision with root package name */ + public long f479y = -1; + + /* renamed from: z reason: collision with root package name */ + public long f480z = -1; + + public void a() { + this.n = -1; + this.o = -1; + this.i = -1; + this.k = -1; + this.l = -1; + this.m = -1; + this.f478x = -1; + this.f479y = -1; + this.f480z = -1; + } + + public d b() { + return new d(this.a, this.f476b, this.c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.o, this.p, this.q, this.r, this.f477s, this.t, this.u, this.w, this.f478x, this.f479y, null, this.f480z, this.A); + } +} diff --git a/app/src/main/java/b/f/g/a/a/h/i/a.java b/app/src/main/java/b/f/g/a/a/h/i/a.java new file mode 100644 index 0000000000..eef1fe8278 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/i/a.java @@ -0,0 +1,163 @@ +package b.f.g.a.a.h.i; + +import android.os.Handler; +import android.os.HandlerThread; +import android.os.Looper; +import android.os.Message; +import androidx.annotation.NonNull; +import b.f.d.k.b; +import b.f.g.a.a.h.f; +import b.f.g.a.a.h.g; +import b.f.g.a.a.h.h; +import b.f.h.b.a.b; +import com.facebook.common.internal.Supplier; +import com.facebook.imagepipeline.image.ImageInfo; +import java.util.Objects; +/* compiled from: ImagePerfControllerListener2 */ +public class a extends b.f.h.b.a.a { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final h f481b; + public final g c; + public final Supplier d; + public final Supplier e; + public Handler f; + + /* compiled from: ImagePerfControllerListener2 */ + /* renamed from: b.f.g.a.a.h.i.a$a reason: collision with other inner class name */ + public static class HandlerC0058a extends Handler { + public final g a; + + public HandlerC0058a(@NonNull Looper looper, @NonNull g gVar) { + super(looper); + this.a = gVar; + } + + @Override // android.os.Handler + public void handleMessage(@NonNull Message message) { + Object obj = message.obj; + Objects.requireNonNull(obj); + h hVar = (h) obj; + int i = message.what; + if (i == 1) { + ((f) this.a).b(hVar, message.arg1); + } else if (i == 2) { + ((f) this.a).a(hVar, message.arg1); + } + } + } + + public a(b bVar, h hVar, g gVar, Supplier supplier, Supplier supplier2) { + this.a = bVar; + this.f481b = hVar; + this.c = gVar; + this.d = supplier; + this.e = supplier2; + } + + @Override // b.f.h.b.a.b + public void a(String str, Object obj, b.a aVar) { + long now = this.a.now(); + h e = e(); + e.a(); + e.i = now; + e.a = str; + e.d = obj; + e.A = aVar; + g(e, 0); + e.w = 1; + e.f478x = now; + h(e, 1); + } + + @Override // b.f.h.b.a.b + public void b(String str, Throwable th, b.a aVar) { + long now = this.a.now(); + h e = e(); + e.A = aVar; + e.l = now; + e.a = str; + e.u = th; + g(e, 5); + e.w = 2; + e.f479y = now; + h(e, 2); + } + + @Override // b.f.h.b.a.b + public void c(String str, b.a aVar) { + long now = this.a.now(); + h e = e(); + e.A = aVar; + e.a = str; + int i = e.v; + if (!(i == 3 || i == 5 || i == 6)) { + e.m = now; + g(e, 4); + } + e.w = 2; + e.f479y = now; + h(e, 2); + } + + @Override // b.f.h.b.a.b + public void d(String str, Object obj, b.a aVar) { + long now = this.a.now(); + h e = e(); + e.A = aVar; + e.k = now; + e.o = now; + e.a = str; + e.e = (ImageInfo) obj; + g(e, 3); + } + + public final h e() { + return Boolean.FALSE.booleanValue() ? new h() : this.f481b; + } + + public final boolean f() { + boolean booleanValue = this.d.get().booleanValue(); + if (booleanValue && this.f == null) { + synchronized (this) { + if (this.f == null) { + HandlerThread handlerThread = new HandlerThread("ImagePerfControllerListener2Thread"); + handlerThread.start(); + Looper looper = handlerThread.getLooper(); + Objects.requireNonNull(looper); + this.f = new HandlerC0058a(looper, this.c); + } + } + } + return booleanValue; + } + + public final void g(h hVar, int i) { + if (f()) { + Handler handler = this.f; + Objects.requireNonNull(handler); + Message obtainMessage = handler.obtainMessage(); + obtainMessage.what = 1; + obtainMessage.arg1 = i; + obtainMessage.obj = hVar; + this.f.sendMessage(obtainMessage); + return; + } + ((f) this.c).b(hVar, i); + } + + public final void h(h hVar, int i) { + if (f()) { + Handler handler = this.f; + Objects.requireNonNull(handler); + Message obtainMessage = handler.obtainMessage(); + obtainMessage.what = 2; + obtainMessage.arg1 = i; + obtainMessage.obj = hVar; + this.f.sendMessage(obtainMessage); + return; + } + ((f) this.c).a(hVar, i); + } +} diff --git a/app/src/main/java/b/f/g/a/a/h/i/b.java b/app/src/main/java/b/f/g/a/a/h/i/b.java new file mode 100644 index 0000000000..8ab6642f3c --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/i/b.java @@ -0,0 +1,24 @@ +package b.f.g.a.a.h.i; + +import b.f.g.a.a.h.f; +import b.f.g.a.a.h.h; +/* compiled from: ImagePerfImageOriginListener */ +public class b implements b.f.g.a.a.h.b { + public final h a; + + /* renamed from: b reason: collision with root package name */ + public final f f482b; + + public b(h hVar, f fVar) { + this.a = hVar; + this.f482b = fVar; + } + + @Override // b.f.g.a.a.h.b + public void a(String str, int i, boolean z2, String str2) { + h hVar = this.a; + hVar.p = i; + hVar.q = str2; + this.f482b.b(hVar, 1); + } +} diff --git a/app/src/main/java/b/f/g/a/a/h/i/c.java b/app/src/main/java/b/f/g/a/a/h/i/c.java new file mode 100644 index 0000000000..8b2000e465 --- /dev/null +++ b/app/src/main/java/b/f/g/a/a/h/i/c.java @@ -0,0 +1,52 @@ +package b.f.g.a.a.h.i; + +import b.f.d.k.b; +import b.f.g.a.a.h.h; +import b.f.j.k.a; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: ImagePerfRequestListener */ +public class c extends a { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final h f483b; + + public c(b bVar, h hVar) { + this.a = bVar; + this.f483b = hVar; + } + + @Override // b.f.j.k.a, b.f.j.k.e + public void a(ImageRequest imageRequest, Object obj, String str, boolean z2) { + this.f483b.n = this.a.now(); + h hVar = this.f483b; + hVar.c = imageRequest; + hVar.d = obj; + hVar.f476b = str; + hVar.r = z2; + } + + @Override // b.f.j.k.a, b.f.j.k.e + public void c(ImageRequest imageRequest, String str, boolean z2) { + this.f483b.o = this.a.now(); + h hVar = this.f483b; + hVar.c = imageRequest; + hVar.f476b = str; + hVar.r = z2; + } + + @Override // b.f.j.k.a, b.f.j.k.e + public void g(ImageRequest imageRequest, String str, Throwable th, boolean z2) { + this.f483b.o = this.a.now(); + h hVar = this.f483b; + hVar.c = imageRequest; + hVar.f476b = str; + hVar.r = z2; + } + + @Override // b.f.j.k.a, b.f.j.k.e + public void k(String str) { + this.f483b.o = this.a.now(); + this.f483b.f476b = str; + } +} diff --git a/app/src/main/java/b/f/g/b/a.java b/app/src/main/java/b/f/g/b/a.java new file mode 100644 index 0000000000..61de8089c5 --- /dev/null +++ b/app/src/main/java/b/f/g/b/a.java @@ -0,0 +1,13 @@ +package b.f.g.b; +/* compiled from: DeferredReleaser */ +public abstract class a { + public static a a; + + /* compiled from: DeferredReleaser */ + /* renamed from: b.f.g.b.a$a reason: collision with other inner class name */ + public interface AbstractC0059a { + void release(); + } + + public abstract void a(AbstractC0059a aVar); +} diff --git a/app/src/main/java/b/f/g/b/b.java b/app/src/main/java/b/f/g/b/b.java new file mode 100644 index 0000000000..6f88f99756 --- /dev/null +++ b/app/src/main/java/b/f/g/b/b.java @@ -0,0 +1,50 @@ +package b.f.g.b; + +import android.os.Handler; +import android.os.Looper; +import androidx.annotation.AnyThread; +import androidx.annotation.MainThread; +import b.f.g.b.a; +import java.util.ArrayList; +/* compiled from: DeferredReleaserConcurrentImpl */ +public class b extends a { + + /* renamed from: b reason: collision with root package name */ + public final Object f484b = new Object(); + public final Handler c = new Handler(Looper.getMainLooper()); + public ArrayList d = new ArrayList<>(); + public ArrayList e = new ArrayList<>(); + public final Runnable f = new a(); + + /* compiled from: DeferredReleaserConcurrentImpl */ + public class a implements Runnable { + public a() { + } + + @Override // java.lang.Runnable + @MainThread + public void run() { + ArrayList arrayList; + synchronized (b.this.f484b) { + b bVar = b.this; + ArrayList arrayList2 = bVar.e; + arrayList = bVar.d; + bVar.e = arrayList; + bVar.d = arrayList2; + } + int size = arrayList.size(); + for (int i = 0; i < size; i++) { + b.this.e.get(i).release(); + } + b.this.e.clear(); + } + } + + @Override // b.f.g.b.a + @AnyThread + public void a(a.AbstractC0059a aVar) { + synchronized (this.f484b) { + this.d.remove(aVar); + } + } +} diff --git a/app/src/main/java/b/f/g/b/c.java b/app/src/main/java/b/f/g/b/c.java new file mode 100644 index 0000000000..1ad5e1223e --- /dev/null +++ b/app/src/main/java/b/f/g/b/c.java @@ -0,0 +1,53 @@ +package b.f.g.b; + +import java.util.Queue; +import java.util.concurrent.ArrayBlockingQueue; +/* compiled from: DraweeEventTracker */ +public class c { + public static final c a = new c(); + + /* renamed from: b reason: collision with root package name */ + public static boolean f485b = true; + public final Queue c = new ArrayBlockingQueue(20); + + /* compiled from: DraweeEventTracker */ + public enum a { + ON_SET_HIERARCHY, + ON_CLEAR_HIERARCHY, + ON_SET_CONTROLLER, + ON_CLEAR_OLD_CONTROLLER, + ON_CLEAR_CONTROLLER, + ON_INIT_CONTROLLER, + ON_ATTACH_CONTROLLER, + ON_DETACH_CONTROLLER, + ON_RELEASE_CONTROLLER, + ON_DATASOURCE_SUBMIT, + ON_DATASOURCE_RESULT, + ON_DATASOURCE_RESULT_INT, + ON_DATASOURCE_FAILURE, + ON_DATASOURCE_FAILURE_INT, + ON_HOLDER_ATTACH, + ON_HOLDER_DETACH, + ON_DRAWABLE_SHOW, + ON_DRAWABLE_HIDE, + ON_ACTIVITY_START, + ON_ACTIVITY_STOP, + ON_RUN_CLEAR_CONTROLLER, + ON_SCHEDULE_CLEAR_CONTROLLER, + ON_SAME_CONTROLLER_SKIPPED, + ON_SUBMIT_CACHE_HIT + } + + public void a(a aVar) { + if (f485b) { + if (this.c.size() + 1 > 20) { + this.c.poll(); + } + this.c.add(aVar); + } + } + + public String toString() { + return this.c.toString(); + } +} diff --git a/app/src/main/java/b/f/g/b/d.java b/app/src/main/java/b/f/g/b/d.java new file mode 100644 index 0000000000..97468279e9 --- /dev/null +++ b/app/src/main/java/b/f/g/b/d.java @@ -0,0 +1,9 @@ +package b.f.g.b; +/* compiled from: RetryManager */ +public class d { + public boolean a = false; + + /* renamed from: b reason: collision with root package name */ + public int f490b = 4; + public int c = 0; +} diff --git a/app/src/main/java/b/f/g/c/a.java b/app/src/main/java/b/f/g/c/a.java new file mode 100644 index 0000000000..1a890f25bf --- /dev/null +++ b/app/src/main/java/b/f/g/c/a.java @@ -0,0 +1,8 @@ +package b.f.g.c; + +import b.f.g.e.f; +import com.facebook.drawee.controller.AbstractDraweeController; +/* compiled from: AbstractDraweeController */ +public class a implements f.a { + public final /* synthetic */ AbstractDraweeController a; +} diff --git a/app/src/main/java/b/f/g/c/b.java b/app/src/main/java/b/f/g/c/b.java new file mode 100644 index 0000000000..7e02cbe017 --- /dev/null +++ b/app/src/main/java/b/f/g/c/b.java @@ -0,0 +1,39 @@ +package b.f.g.c; + +import b.c.a.a0.d; +import b.f.d.d.i; +import com.facebook.common.internal.Supplier; +import com.facebook.datasource.DataSource; +import com.facebook.drawee.controller.AbstractDraweeControllerBuilder; +import com.facebook.drawee.interfaces.DraweeController; +/* compiled from: AbstractDraweeControllerBuilder */ +public class b implements Supplier> { + public final /* synthetic */ DraweeController a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ String f491b; + public final /* synthetic */ Object c; + public final /* synthetic */ Object d; + public final /* synthetic */ AbstractDraweeControllerBuilder.b e; + public final /* synthetic */ AbstractDraweeControllerBuilder f; + + public b(AbstractDraweeControllerBuilder abstractDraweeControllerBuilder, DraweeController draweeController, String str, Object obj, Object obj2, AbstractDraweeControllerBuilder.b bVar) { + this.f = abstractDraweeControllerBuilder; + this.a = draweeController; + this.f491b = str; + this.c = obj; + this.d = obj2; + this.e = bVar; + } + + @Override // com.facebook.common.internal.Supplier + public Object get() { + return this.f.b(this.a, this.f491b, this.c, this.d, this.e); + } + + public String toString() { + i f2 = d.f2(this); + f2.c("request", this.c.toString()); + return f2.toString(); + } +} diff --git a/app/src/main/java/b/f/g/c/c.java b/app/src/main/java/b/f/g/c/c.java new file mode 100644 index 0000000000..7efa431236 --- /dev/null +++ b/app/src/main/java/b/f/g/c/c.java @@ -0,0 +1,36 @@ +package b.f.g.c; + +import android.graphics.drawable.Animatable; +import com.facebook.drawee.controller.ControllerListener; +/* compiled from: BaseControllerListener */ +public class c implements ControllerListener { + private static final ControllerListener NO_OP_LISTENER = new c(); + + public static ControllerListener getNoOpListener() { + return (ControllerListener) NO_OP_LISTENER; + } + + @Override // com.facebook.drawee.controller.ControllerListener + public void onFailure(String str, Throwable th) { + } + + @Override // com.facebook.drawee.controller.ControllerListener + public void onFinalImageSet(String str, INFO info, Animatable animatable) { + } + + @Override // com.facebook.drawee.controller.ControllerListener + public void onIntermediateImageFailed(String str, Throwable th) { + } + + @Override // com.facebook.drawee.controller.ControllerListener + public void onIntermediateImageSet(String str, INFO info) { + } + + @Override // com.facebook.drawee.controller.ControllerListener + public void onRelease(String str) { + } + + @Override // com.facebook.drawee.controller.ControllerListener + public void onSubmit(String str, Object obj) { + } +} diff --git a/app/src/main/java/b/f/g/c/d.java b/app/src/main/java/b/f/g/c/d.java new file mode 100644 index 0000000000..61ae969a74 --- /dev/null +++ b/app/src/main/java/b/f/g/c/d.java @@ -0,0 +1,109 @@ +package b.f.g.c; + +import android.graphics.drawable.Animatable; +import android.util.Log; +import com.facebook.drawee.controller.ControllerListener; +import java.util.ArrayList; +import java.util.List; +/* compiled from: ForwardingControllerListener */ +public class d implements ControllerListener { + public final List> a = new ArrayList(2); + + public synchronized void a(ControllerListener controllerListener) { + this.a.add(controllerListener); + } + + public final synchronized void b(String str, Throwable th) { + Log.e("FdingControllerListener", str, th); + } + + @Override // com.facebook.drawee.controller.ControllerListener + public synchronized void onFailure(String str, Throwable th) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + ControllerListener controllerListener = this.a.get(i); + if (controllerListener != null) { + controllerListener.onFailure(str, th); + } + } catch (Exception e) { + b("InternalListener exception in onFailure", e); + } + } + } + + @Override // com.facebook.drawee.controller.ControllerListener + public synchronized void onFinalImageSet(String str, INFO info, Animatable animatable) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + ControllerListener controllerListener = this.a.get(i); + if (controllerListener != null) { + controllerListener.onFinalImageSet(str, info, animatable); + } + } catch (Exception e) { + b("InternalListener exception in onFinalImageSet", e); + } + } + } + + @Override // com.facebook.drawee.controller.ControllerListener + public void onIntermediateImageFailed(String str, Throwable th) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + ControllerListener controllerListener = this.a.get(i); + if (controllerListener != null) { + controllerListener.onIntermediateImageFailed(str, th); + } + } catch (Exception e) { + b("InternalListener exception in onIntermediateImageFailed", e); + } + } + } + + @Override // com.facebook.drawee.controller.ControllerListener + public void onIntermediateImageSet(String str, INFO info) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + ControllerListener controllerListener = this.a.get(i); + if (controllerListener != null) { + controllerListener.onIntermediateImageSet(str, info); + } + } catch (Exception e) { + b("InternalListener exception in onIntermediateImageSet", e); + } + } + } + + @Override // com.facebook.drawee.controller.ControllerListener + public synchronized void onRelease(String str) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + ControllerListener controllerListener = this.a.get(i); + if (controllerListener != null) { + controllerListener.onRelease(str); + } + } catch (Exception e) { + b("InternalListener exception in onRelease", e); + } + } + } + + @Override // com.facebook.drawee.controller.ControllerListener + public synchronized void onSubmit(String str, Object obj) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + ControllerListener controllerListener = this.a.get(i); + if (controllerListener != null) { + controllerListener.onSubmit(str, obj); + } + } catch (Exception e) { + b("InternalListener exception in onSubmit", e); + } + } + } +} diff --git a/app/src/main/java/b/f/g/d/a.java b/app/src/main/java/b/f/g/d/a.java new file mode 100644 index 0000000000..94a666404e --- /dev/null +++ b/app/src/main/java/b/f/g/d/a.java @@ -0,0 +1,240 @@ +package b.f.g.d; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import androidx.core.internal.view.SupportMenu; +import androidx.core.view.InputDeviceCompat; +import b.f.g.d.b.b; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +/* compiled from: DebugControllerOverlayDrawable */ +public class a extends Drawable implements b { + public int A; + public long B; + public String C; + public int D = -1; + public String j; + public int k; + public int l; + public int m; + public ScalingUtils$ScaleType n; + public HashMap o = new HashMap<>(); + public int p; + public int q; + public int r = 80; + + /* renamed from: s reason: collision with root package name */ + public final Paint f492s = new Paint(1); + public final Matrix t = new Matrix(); + public final Rect u = new Rect(); + public final RectF v = new RectF(); + public int w; + + /* renamed from: x reason: collision with root package name */ + public int f493x; + + /* renamed from: y reason: collision with root package name */ + public int f494y; + + /* renamed from: z reason: collision with root package name */ + public int f495z; + + public a() { + c(); + } + + public static String b(String str, Object... objArr) { + return String.format(Locale.US, str, objArr); + } + + public final void a(Canvas canvas, String str, String str2, int i) { + String v = b.d.b.a.a.v(str, ": "); + float measureText = this.f492s.measureText(v); + float measureText2 = this.f492s.measureText(str2); + this.f492s.setColor(1711276032); + int i2 = this.f495z; + int i3 = this.A; + canvas.drawRect((float) (i2 - 4), (float) (i3 + 8), ((float) i2) + measureText + measureText2 + 4.0f, (float) (i3 + this.f494y + 8), this.f492s); + this.f492s.setColor(-1); + canvas.drawText(v, (float) this.f495z, (float) this.A, this.f492s); + this.f492s.setColor(i); + canvas.drawText(str2, ((float) this.f495z) + measureText, (float) this.A, this.f492s); + this.A += this.f494y; + } + + public void c() { + this.k = -1; + this.l = -1; + this.m = -1; + this.o = new HashMap<>(); + this.p = -1; + this.q = -1; + this.j = "none"; + invalidateSelf(); + this.B = -1; + this.C = null; + this.D = -1; + invalidateSelf(); + } + + /* JADX WARNING: Removed duplicated region for block: B:21:0x0175 */ + /* JADX WARNING: Removed duplicated region for block: B:22:0x0193 */ + /* JADX WARNING: Removed duplicated region for block: B:25:0x0198 */ + /* JADX WARNING: Removed duplicated region for block: B:28:0x01a9 */ + /* JADX WARNING: Removed duplicated region for block: B:31:0x01c2 */ + /* JADX WARNING: Removed duplicated region for block: B:35:0x01d9 A[LOOP:0: B:33:0x01d3->B:35:0x01d9, LOOP_END] */ + @Override // android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + int i; + int i2; + int i3; + ScalingUtils$ScaleType scalingUtils$ScaleType; + long j; + String str; + Rect bounds = getBounds(); + this.f492s.setStyle(Paint.Style.STROKE); + this.f492s.setStrokeWidth(2.0f); + this.f492s.setColor(-26624); + canvas.drawRect((float) bounds.left, (float) bounds.top, (float) bounds.right, (float) bounds.bottom, this.f492s); + this.f492s.setStyle(Paint.Style.FILL); + this.f492s.setColor(0); + canvas.drawRect((float) bounds.left, (float) bounds.top, (float) bounds.right, (float) bounds.bottom, this.f492s); + this.f492s.setStyle(Paint.Style.FILL); + this.f492s.setStrokeWidth(0.0f); + this.f492s.setColor(-1); + this.f495z = this.w; + this.A = this.f493x; + a(canvas, "ID", this.j, -1); + a(canvas, "D", b("%dx%d", Integer.valueOf(bounds.width()), Integer.valueOf(bounds.height())), -1); + int i4 = this.k; + int i5 = this.l; + ScalingUtils$ScaleType scalingUtils$ScaleType2 = this.n; + int width = getBounds().width(); + int height = getBounds().height(); + if (width > 0 && height > 0 && i4 > 0 && i5 > 0) { + if (scalingUtils$ScaleType2 != null) { + Rect rect = this.u; + rect.top = 0; + rect.left = 0; + rect.right = width; + rect.bottom = height; + this.t.reset(); + scalingUtils$ScaleType2.a(this.t, this.u, i4, i5, 0.0f, 0.0f); + RectF rectF = this.v; + rectF.top = 0.0f; + rectF.left = 0.0f; + rectF.right = (float) i4; + rectF.bottom = (float) i5; + this.t.mapRect(rectF); + width = Math.min(width, (int) this.v.width()); + height = Math.min(height, (int) this.v.height()); + } + float f = (float) width; + float f2 = f * 0.1f; + float f3 = f * 0.5f; + float f4 = (float) height; + float f5 = 0.1f * f4; + float f6 = f4 * 0.5f; + int abs = Math.abs(i4 - width); + int abs2 = Math.abs(i5 - height); + float f7 = (float) abs; + if (f7 < f2 && ((float) abs2) < f5) { + i = -16711936; + a(canvas, "I", b("%dx%d", Integer.valueOf(this.k), Integer.valueOf(this.l)), i); + a(canvas, "I", b("%d KiB", Integer.valueOf(this.m / 1024)), -1); + i2 = this.p; + if (i2 > 0) { + } + scalingUtils$ScaleType = this.n; + if (scalingUtils$ScaleType != null) { + } + j = this.B; + if (j >= 0) { + } + str = this.C; + if (str != null) { + } + while (r1.hasNext()) { + } + } else if (f7 < f3 && ((float) abs2) < f6) { + i = InputDeviceCompat.SOURCE_ANY; + a(canvas, "I", b("%dx%d", Integer.valueOf(this.k), Integer.valueOf(this.l)), i); + a(canvas, "I", b("%d KiB", Integer.valueOf(this.m / 1024)), -1); + i2 = this.p; + if (i2 > 0) { + i3 = -1; + a(canvas, "anim", b("f %d, l %d", Integer.valueOf(i2), Integer.valueOf(this.q)), -1); + } else { + i3 = -1; + } + scalingUtils$ScaleType = this.n; + if (scalingUtils$ScaleType != null) { + a(canvas, "scale", String.valueOf(scalingUtils$ScaleType), i3); + } + j = this.B; + if (j >= 0) { + a(canvas, "t", b("%d ms", Long.valueOf(j)), -1); + } + str = this.C; + if (str != null) { + a(canvas, "origin", str, this.D); + } + for (Map.Entry entry : this.o.entrySet()) { + a(canvas, entry.getKey(), entry.getValue(), -1); + } + } + } + i = SupportMenu.CATEGORY_MASK; + a(canvas, "I", b("%dx%d", Integer.valueOf(this.k), Integer.valueOf(this.l)), i); + a(canvas, "I", b("%d KiB", Integer.valueOf(this.m / 1024)), -1); + i2 = this.p; + if (i2 > 0) { + } + scalingUtils$ScaleType = this.n; + if (scalingUtils$ScaleType != null) { + } + j = this.B; + if (j >= 0) { + } + str = this.C; + if (str != null) { + } + while (r1.hasNext()) { + } + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + return -3; + } + + @Override // android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + super.onBoundsChange(rect); + int min = Math.min(40, Math.max(10, Math.min(rect.width() / 8, rect.height() / 9))); + this.f492s.setTextSize((float) min); + int i = min + 8; + this.f494y = i; + int i2 = this.r; + if (i2 == 80) { + this.f494y = i * -1; + } + this.w = rect.left + 10; + this.f493x = i2 == 80 ? rect.bottom - 10 : rect.top + 10 + 10; + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(ColorFilter colorFilter) { + } +} diff --git a/app/src/main/java/b/f/g/d/b/a.java b/app/src/main/java/b/f/g/d/b/a.java new file mode 100644 index 0000000000..64faef9aef --- /dev/null +++ b/app/src/main/java/b/f/g/d/b/a.java @@ -0,0 +1,33 @@ +package b.f.g.d.b; + +import android.graphics.drawable.Animatable; +import b.f.g.c.c; +/* compiled from: ImageLoadingTimeControllerListener */ +public class a extends c { + public long a = -1; + + /* renamed from: b reason: collision with root package name */ + public long f496b = -1; + public b c; + + public a(b bVar) { + this.c = bVar; + } + + @Override // b.f.g.c.c, com.facebook.drawee.controller.ControllerListener + public void onFinalImageSet(String str, Object obj, Animatable animatable) { + long currentTimeMillis = System.currentTimeMillis(); + this.f496b = currentTimeMillis; + b bVar = this.c; + if (bVar != null) { + b.f.g.d.a aVar = (b.f.g.d.a) bVar; + aVar.B = currentTimeMillis - this.a; + aVar.invalidateSelf(); + } + } + + @Override // b.f.g.c.c, com.facebook.drawee.controller.ControllerListener + public void onSubmit(String str, Object obj) { + this.a = System.currentTimeMillis(); + } +} diff --git a/app/src/main/java/b/f/g/d/b/b.java b/app/src/main/java/b/f/g/d/b/b.java new file mode 100644 index 0000000000..f6b4735cbb --- /dev/null +++ b/app/src/main/java/b/f/g/d/b/b.java @@ -0,0 +1,4 @@ +package b.f.g.d.b; +/* compiled from: ImageLoadingTimeListener */ +public interface b { +} diff --git a/app/src/main/java/b/f/g/e/a.java b/app/src/main/java/b/f/g/e/a.java new file mode 100644 index 0000000000..da0240cb1f --- /dev/null +++ b/app/src/main/java/b/f/g/e/a.java @@ -0,0 +1,23 @@ +package b.f.g.e; + +import android.graphics.drawable.Drawable; +/* compiled from: ArrayDrawable */ +public class a implements d { + public final /* synthetic */ int j; + public final /* synthetic */ b k; + + public a(b bVar, int i) { + this.k = bVar; + this.j = i; + } + + @Override // b.f.g.e.d + public Drawable g(Drawable drawable) { + return this.k.c(this.j, drawable); + } + + @Override // b.f.g.e.d + public Drawable l() { + return this.k.a(this.j); + } +} diff --git a/app/src/main/java/b/f/g/e/a0.java b/app/src/main/java/b/f/g/e/a0.java new file mode 100644 index 0000000000..4ade482a4c --- /dev/null +++ b/app/src/main/java/b/f/g/e/a0.java @@ -0,0 +1,20 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class a0 extends q { + public static final ScalingUtils$ScaleType l = new a0(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float width = (((float) rect.width()) - (((float) i) * f4)) * 0.5f; + matrix.setScale(f4, f4); + matrix.postTranslate((float) ((int) (width + ((float) rect.left) + 0.5f)), (float) ((int) (((float) rect.top) + 0.5f))); + } + + public String toString() { + return "fit_y"; + } +} diff --git a/app/src/main/java/b/f/g/e/b.java b/app/src/main/java/b/f/g/e/b.java new file mode 100644 index 0000000000..af09ecb543 --- /dev/null +++ b/app/src/main/java/b/f/g/e/b.java @@ -0,0 +1,421 @@ +package b.f.g.e; + +import android.annotation.TargetApi; +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import b.c.a.a0.d; +import java.util.Objects; +/* compiled from: ArrayDrawable */ +public class b extends Drawable implements Drawable.Callback, e0, d0 { + public e0 j; + public final e k = new e(); + public final Drawable[] l; + public final d[] m; + public final Rect n = new Rect(); + public boolean o; + public boolean p; + public boolean q; + + public b(Drawable[] drawableArr) { + int i = 0; + this.o = false; + this.p = false; + this.q = false; + Objects.requireNonNull(drawableArr); + this.l = drawableArr; + while (true) { + Drawable[] drawableArr2 = this.l; + if (i < drawableArr2.length) { + d.V1(drawableArr2[i], this, this); + i++; + } else { + this.m = new d[drawableArr2.length]; + return; + } + } + } + + public Drawable a(int i) { + boolean z2 = true; + d.i(Boolean.valueOf(i >= 0)); + if (i >= this.l.length) { + z2 = false; + } + d.i(Boolean.valueOf(z2)); + return this.l[i]; + } + + @Override // b.f.g.e.d0 + public void b(e0 e0Var) { + this.j = e0Var; + } + + public Drawable c(int i, Drawable drawable) { + boolean z2 = true; + d.i(Boolean.valueOf(i >= 0)); + if (i >= this.l.length) { + z2 = false; + } + d.i(Boolean.valueOf(z2)); + Drawable drawable2 = this.l[i]; + if (drawable != drawable2) { + if (drawable != null && this.q) { + drawable.mutate(); + } + d.V1(this.l[i], null, null); + d.V1(drawable, null, null); + d.X1(drawable, this.k); + d.L(drawable, this); + d.V1(drawable, this, this); + this.p = false; + this.l[i] = drawable; + invalidateSelf(); + } + return drawable2; + } + + @Override // b.f.g.e.e0 + public void d(Matrix matrix) { + e0 e0Var = this.j; + if (e0Var != null) { + e0Var.d(matrix); + } else { + matrix.reset(); + } + } + + @Override // android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i < drawableArr.length) { + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.draw(canvas); + } + i++; + } else { + return; + } + } + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicHeight() { + int i = 0; + int i2 = -1; + while (true) { + Drawable[] drawableArr = this.l; + if (i >= drawableArr.length) { + break; + } + Drawable drawable = drawableArr[i]; + if (drawable != null) { + i2 = Math.max(i2, drawable.getIntrinsicHeight()); + } + i++; + } + if (i2 > 0) { + return i2; + } + return -1; + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicWidth() { + int i = 0; + int i2 = -1; + while (true) { + Drawable[] drawableArr = this.l; + if (i >= drawableArr.length) { + break; + } + Drawable drawable = drawableArr[i]; + if (drawable != null) { + i2 = Math.max(i2, drawable.getIntrinsicWidth()); + } + i++; + } + if (i2 > 0) { + return i2; + } + return -1; + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + if (this.l.length == 0) { + return -2; + } + int i = -1; + int i2 = 1; + while (true) { + Drawable[] drawableArr = this.l; + if (i2 >= drawableArr.length) { + return i; + } + Drawable drawable = drawableArr[i2]; + if (drawable != null) { + i = Drawable.resolveOpacity(i, drawable.getOpacity()); + } + i2++; + } + } + + @Override // android.graphics.drawable.Drawable + public boolean getPadding(Rect rect) { + int i = 0; + rect.left = 0; + rect.top = 0; + rect.right = 0; + rect.bottom = 0; + Rect rect2 = this.n; + while (true) { + Drawable[] drawableArr = this.l; + if (i >= drawableArr.length) { + return true; + } + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.getPadding(rect2); + rect.left = Math.max(rect.left, rect2.left); + rect.top = Math.max(rect.top, rect2.top); + rect.right = Math.max(rect.right, rect2.right); + rect.bottom = Math.max(rect.bottom, rect2.bottom); + } + i++; + } + } + + @Override // b.f.g.e.e0 + public void h(RectF rectF) { + e0 e0Var = this.j; + if (e0Var != null) { + e0Var.h(rectF); + } else { + rectF.set(getBounds()); + } + } + + @Override // android.graphics.drawable.Drawable.Callback + public void invalidateDrawable(Drawable drawable) { + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public boolean isStateful() { + if (!this.p) { + this.o = false; + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + boolean z2 = true; + if (i >= drawableArr.length) { + break; + } + Drawable drawable = drawableArr[i]; + boolean z3 = this.o; + if (drawable == null || !drawable.isStateful()) { + z2 = false; + } + this.o = z3 | z2; + i++; + } + this.p = true; + } + return this.o; + } + + @Override // android.graphics.drawable.Drawable + public Drawable mutate() { + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i < drawableArr.length) { + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.mutate(); + } + i++; + } else { + this.q = true; + return this; + } + } + } + + @Override // android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i < drawableArr.length) { + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.setBounds(rect); + } + i++; + } else { + return; + } + } + } + + @Override // android.graphics.drawable.Drawable + public boolean onLevelChange(int i) { + int i2 = 0; + boolean z2 = false; + while (true) { + Drawable[] drawableArr = this.l; + if (i2 >= drawableArr.length) { + return z2; + } + Drawable drawable = drawableArr[i2]; + if (drawable != null && drawable.setLevel(i)) { + z2 = true; + } + i2++; + } + } + + @Override // android.graphics.drawable.Drawable + public boolean onStateChange(int[] iArr) { + int i = 0; + boolean z2 = false; + while (true) { + Drawable[] drawableArr = this.l; + if (i >= drawableArr.length) { + return z2; + } + Drawable drawable = drawableArr[i]; + if (drawable != null && drawable.setState(iArr)) { + z2 = true; + } + i++; + } + } + + @Override // android.graphics.drawable.Drawable.Callback + public void scheduleDrawable(Drawable drawable, Runnable runnable, long j) { + scheduleSelf(runnable, j); + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + this.k.a = i; + int i2 = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i2 < drawableArr.length) { + Drawable drawable = drawableArr[i2]; + if (drawable != null) { + drawable.setAlpha(i); + } + i2++; + } else { + return; + } + } + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(ColorFilter colorFilter) { + e eVar = this.k; + eVar.c = colorFilter; + eVar.f497b = true; + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i < drawableArr.length) { + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.setColorFilter(colorFilter); + } + i++; + } else { + return; + } + } + } + + @Override // android.graphics.drawable.Drawable + public void setDither(boolean z2) { + this.k.d = z2 ? 1 : 0; + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i < drawableArr.length) { + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.setDither(z2); + } + i++; + } else { + return; + } + } + } + + @Override // android.graphics.drawable.Drawable + public void setFilterBitmap(boolean z2) { + this.k.e = z2 ? 1 : 0; + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i < drawableArr.length) { + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.setFilterBitmap(z2); + } + i++; + } else { + return; + } + } + } + + @Override // android.graphics.drawable.Drawable + @TargetApi(21) + public void setHotspot(float f, float f2) { + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i < drawableArr.length) { + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.setHotspot(f, f2); + } + i++; + } else { + return; + } + } + } + + @Override // android.graphics.drawable.Drawable + public boolean setVisible(boolean z2, boolean z3) { + boolean visible = super.setVisible(z2, z3); + int i = 0; + while (true) { + Drawable[] drawableArr = this.l; + if (i >= drawableArr.length) { + return visible; + } + Drawable drawable = drawableArr[i]; + if (drawable != null) { + drawable.setVisible(z2, z3); + } + i++; + } + } + + @Override // android.graphics.drawable.Drawable.Callback + public void unscheduleDrawable(Drawable drawable, Runnable runnable) { + unscheduleSelf(runnable); + } +} diff --git a/app/src/main/java/b/f/g/e/b0.java b/app/src/main/java/b/f/g/e/b0.java new file mode 100644 index 0000000000..0d0bec3027 --- /dev/null +++ b/app/src/main/java/b/f/g/e/b0.java @@ -0,0 +1,31 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class b0 extends q { + public static final ScalingUtils$ScaleType l = new b0(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float f5; + float f6; + if (f4 > f3) { + float f7 = ((float) i) * f4; + f5 = Math.max(Math.min((((float) rect.width()) * 0.5f) - (f * f7), 0.0f), ((float) rect.width()) - f7) + ((float) rect.left); + f6 = (float) rect.top; + f3 = f4; + } else { + f5 = (float) rect.left; + float f8 = ((float) i2) * f3; + f6 = Math.max(Math.min((((float) rect.height()) * 0.5f) - (f2 * f8), 0.0f), ((float) rect.height()) - f8) + ((float) rect.top); + } + matrix.setScale(f3, f3); + matrix.postTranslate((float) ((int) (f5 + 0.5f)), (float) ((int) (f6 + 0.5f))); + } + + public String toString() { + return "focus_crop"; + } +} diff --git a/app/src/main/java/b/f/g/e/c.java b/app/src/main/java/b/f/g/e/c.java new file mode 100644 index 0000000000..4089cb8a3a --- /dev/null +++ b/app/src/main/java/b/f/g/e/c.java @@ -0,0 +1,57 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import android.os.SystemClock; +import androidx.annotation.VisibleForTesting; +import java.util.Objects; +/* compiled from: AutoRotateDrawable */ +public class c extends g implements Runnable { + public int n; + public boolean o; + @VisibleForTesting + public float p = 0.0f; + public boolean q = false; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(Drawable drawable, int i) { + super(drawable); + Objects.requireNonNull(drawable); + this.n = i; + this.o = true; + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + int save = canvas.save(); + Rect bounds = getBounds(); + int i = bounds.right; + int i2 = bounds.left; + int i3 = i - i2; + int i4 = bounds.bottom; + int i5 = bounds.top; + int i6 = i4 - i5; + float f = this.p; + if (!this.o) { + f = 360.0f - f; + } + canvas.rotate(f, (float) ((i3 / 2) + i2), (float) ((i6 / 2) + i5)); + Drawable drawable = this.k; + if (drawable != null) { + drawable.draw(canvas); + } + canvas.restoreToCount(save); + if (!this.q) { + this.q = true; + scheduleSelf(this, SystemClock.uptimeMillis() + 20); + } + } + + @Override // java.lang.Runnable + public void run() { + this.q = false; + this.p += (float) ((int) ((20.0f / ((float) this.n)) * 360.0f)); + invalidateSelf(); + } +} diff --git a/app/src/main/java/b/f/g/e/c0.java b/app/src/main/java/b/f/g/e/c0.java new file mode 100644 index 0000000000..2639b5840c --- /dev/null +++ b/app/src/main/java/b/f/g/e/c0.java @@ -0,0 +1,5 @@ +package b.f.g.e; +/* compiled from: ScalingUtils */ +public interface c0 { + Object getState(); +} diff --git a/app/src/main/java/b/f/g/e/d.java b/app/src/main/java/b/f/g/e/d.java new file mode 100644 index 0000000000..20cae8edc3 --- /dev/null +++ b/app/src/main/java/b/f/g/e/d.java @@ -0,0 +1,9 @@ +package b.f.g.e; + +import android.graphics.drawable.Drawable; +/* compiled from: DrawableParent */ +public interface d { + Drawable g(Drawable drawable); + + Drawable l(); +} diff --git a/app/src/main/java/b/f/g/e/d0.java b/app/src/main/java/b/f/g/e/d0.java new file mode 100644 index 0000000000..2031b7fc2f --- /dev/null +++ b/app/src/main/java/b/f/g/e/d0.java @@ -0,0 +1,5 @@ +package b.f.g.e; +/* compiled from: TransformAwareDrawable */ +public interface d0 { + void b(e0 e0Var); +} diff --git a/app/src/main/java/b/f/g/e/e.java b/app/src/main/java/b/f/g/e/e.java new file mode 100644 index 0000000000..b13cc6095c --- /dev/null +++ b/app/src/main/java/b/f/g/e/e.java @@ -0,0 +1,13 @@ +package b.f.g.e; + +import android.graphics.ColorFilter; +/* compiled from: DrawableProperties */ +public class e { + public int a = -1; + + /* renamed from: b reason: collision with root package name */ + public boolean f497b = false; + public ColorFilter c = null; + public int d = -1; + public int e = -1; +} diff --git a/app/src/main/java/b/f/g/e/e0.java b/app/src/main/java/b/f/g/e/e0.java new file mode 100644 index 0000000000..f045dfcd16 --- /dev/null +++ b/app/src/main/java/b/f/g/e/e0.java @@ -0,0 +1,10 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.RectF; +/* compiled from: TransformCallback */ +public interface e0 { + void d(Matrix matrix); + + void h(RectF rectF); +} diff --git a/app/src/main/java/b/f/g/e/f.java b/app/src/main/java/b/f/g/e/f.java new file mode 100644 index 0000000000..be86770378 --- /dev/null +++ b/app/src/main/java/b/f/g/e/f.java @@ -0,0 +1,190 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.drawable.Drawable; +import android.os.SystemClock; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: FadeDrawable */ +public class f extends b { + @VisibleForTesting + public int A; + @VisibleForTesting + public boolean[] B; + @VisibleForTesting + public int C; + public a D; + public boolean E; + public final Drawable[] r; + + /* renamed from: s reason: collision with root package name */ + public final boolean f498s; + public final int t; + public final int u; + @VisibleForTesting + public int v; + @VisibleForTesting + public int w; + @VisibleForTesting + + /* renamed from: x reason: collision with root package name */ + public long f499x; + @VisibleForTesting + + /* renamed from: y reason: collision with root package name */ + public int[] f500y; + @VisibleForTesting + + /* renamed from: z reason: collision with root package name */ + public int[] f501z; + + /* compiled from: FadeDrawable */ + public interface a { + } + + public f(Drawable[] drawableArr, boolean z2, int i) { + super(drawableArr); + d.C(drawableArr.length >= 1, "At least one layer required!"); + this.r = drawableArr; + int[] iArr = new int[drawableArr.length]; + this.f500y = iArr; + this.f501z = new int[drawableArr.length]; + this.A = 255; + this.B = new boolean[drawableArr.length]; + this.C = 0; + this.f498s = z2; + int i2 = z2 ? 255 : 0; + this.t = i2; + this.u = i; + this.v = 2; + Arrays.fill(iArr, i2); + this.f500y[0] = 255; + Arrays.fill(this.f501z, i2); + this.f501z[0] = 255; + Arrays.fill(this.B, z2); + this.B[0] = true; + } + + @Override // b.f.g.e.b, android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + boolean z2; + int i; + int i2 = this.v; + int i3 = 2; + if (i2 == 0) { + System.arraycopy(this.f501z, 0, this.f500y, 0, this.r.length); + this.f499x = SystemClock.uptimeMillis(); + z2 = i(this.w == 0 ? 1.0f : 0.0f); + if (!this.E && (i = this.u) >= 0) { + boolean[] zArr = this.B; + if (i < zArr.length && zArr[i]) { + this.E = true; + a aVar = this.D; + if (aVar != null) { + Objects.requireNonNull(((b.f.g.c.a) aVar).a); + } + } + } + if (!z2) { + i3 = 1; + } + this.v = i3; + } else if (i2 != 1) { + z2 = true; + } else { + d.B(this.w > 0); + z2 = i(((float) (SystemClock.uptimeMillis() - this.f499x)) / ((float) this.w)); + if (!z2) { + i3 = 1; + } + this.v = i3; + } + int i4 = 0; + while (true) { + Drawable[] drawableArr = this.r; + if (i4 >= drawableArr.length) { + break; + } + Drawable drawable = drawableArr[i4]; + int ceil = (int) Math.ceil(((double) (this.f501z[i4] * this.A)) / 255.0d); + if (drawable != null && ceil > 0) { + this.C++; + drawable.mutate().setAlpha(ceil); + this.C--; + drawable.draw(canvas); + } + i4++; + } + if (!z2) { + invalidateSelf(); + } else if (this.E) { + this.E = false; + a aVar2 = this.D; + if (aVar2 != null) { + Objects.requireNonNull(((b.f.g.c.a) aVar2).a); + } + } + } + + public void e() { + this.C++; + } + + public void f() { + this.C--; + invalidateSelf(); + } + + public void g() { + this.v = 2; + for (int i = 0; i < this.r.length; i++) { + this.f501z[i] = this.B[i] ? 255 : 0; + } + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public int getAlpha() { + return this.A; + } + + public final boolean i(float f) { + boolean z2 = true; + for (int i = 0; i < this.r.length; i++) { + boolean[] zArr = this.B; + int i2 = zArr[i] ? 1 : -1; + int[] iArr = this.f501z; + iArr[i] = (int) ((((float) (i2 * 255)) * f) + ((float) this.f500y[i])); + if (iArr[i] < 0) { + iArr[i] = 0; + } + if (iArr[i] > 255) { + iArr[i] = 255; + } + if (zArr[i] && iArr[i] < 255) { + z2 = false; + } + if (!zArr[i] && iArr[i] > 0) { + z2 = false; + } + } + return z2; + } + + @Override // android.graphics.drawable.Drawable + public void invalidateSelf() { + if (this.C == 0) { + super.invalidateSelf(); + } + } + + @Override // b.f.g.e.b, android.graphics.drawable.Drawable + public void setAlpha(int i) { + if (this.A != i) { + this.A = i; + invalidateSelf(); + } + } +} diff --git a/app/src/main/java/b/f/g/e/f0.java b/app/src/main/java/b/f/g/e/f0.java new file mode 100644 index 0000000000..f1e9ead7d8 --- /dev/null +++ b/app/src/main/java/b/f/g/e/f0.java @@ -0,0 +1,5 @@ +package b.f.g.e; +/* compiled from: VisibilityAwareDrawable */ +public interface f0 { + void k(g0 g0Var); +} diff --git a/app/src/main/java/b/f/g/e/g.java b/app/src/main/java/b/f/g/e/g.java new file mode 100644 index 0000000000..216b33aa85 --- /dev/null +++ b/app/src/main/java/b/f/g/e/g.java @@ -0,0 +1,226 @@ +package b.f.g.e; + +import android.annotation.TargetApi; +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import b.c.a.a0.d; +/* compiled from: ForwardingDrawable */ +public class g extends Drawable implements Drawable.Callback, e0, d0, d { + public static final Matrix j = new Matrix(); + public Drawable k; + public final e l = new e(); + public e0 m; + + public g(Drawable drawable) { + this.k = drawable; + d.V1(drawable, this, this); + } + + @Override // b.f.g.e.d0 + public void b(e0 e0Var) { + this.m = e0Var; + } + + @Override // b.f.g.e.e0 + public void d(Matrix matrix) { + n(matrix); + } + + @Override // android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + Drawable drawable = this.k; + if (drawable != null) { + drawable.draw(canvas); + } + } + + @Override // b.f.g.e.d + public Drawable g(Drawable drawable) { + return o(drawable); + } + + @Override // android.graphics.drawable.Drawable + public Drawable.ConstantState getConstantState() { + Drawable drawable = this.k; + return drawable == null ? super.getConstantState() : drawable.getConstantState(); + } + + @Override // android.graphics.drawable.Drawable + public Drawable getCurrent() { + return this.k; + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicHeight() { + Drawable drawable = this.k; + return drawable == null ? super.getIntrinsicHeight() : drawable.getIntrinsicHeight(); + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicWidth() { + Drawable drawable = this.k; + return drawable == null ? super.getIntrinsicWidth() : drawable.getIntrinsicWidth(); + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + Drawable drawable = this.k; + if (drawable == null) { + return 0; + } + return drawable.getOpacity(); + } + + @Override // android.graphics.drawable.Drawable + public boolean getPadding(Rect rect) { + Drawable drawable = this.k; + return drawable == null ? super.getPadding(rect) : drawable.getPadding(rect); + } + + @Override // b.f.g.e.e0 + public void h(RectF rectF) { + e0 e0Var = this.m; + if (e0Var != null) { + e0Var.h(rectF); + } else { + rectF.set(getBounds()); + } + } + + @Override // android.graphics.drawable.Drawable.Callback + public void invalidateDrawable(Drawable drawable) { + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public boolean isStateful() { + Drawable drawable = this.k; + if (drawable == null) { + return false; + } + return drawable.isStateful(); + } + + @Override // b.f.g.e.d + public Drawable l() { + return this.k; + } + + @Override // android.graphics.drawable.Drawable + public Drawable mutate() { + Drawable drawable = this.k; + if (drawable != null) { + drawable.mutate(); + } + return this; + } + + public void n(Matrix matrix) { + e0 e0Var = this.m; + if (e0Var != null) { + e0Var.d(matrix); + } else { + matrix.reset(); + } + } + + public Drawable o(Drawable drawable) { + Drawable drawable2 = this.k; + d.V1(drawable2, null, null); + d.V1(drawable, null, null); + d.X1(drawable, this.l); + d.L(drawable, this); + d.V1(drawable, this, this); + this.k = drawable; + invalidateSelf(); + return drawable2; + } + + @Override // android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + Drawable drawable = this.k; + if (drawable != null) { + drawable.setBounds(rect); + } + } + + @Override // android.graphics.drawable.Drawable + public boolean onLevelChange(int i) { + Drawable drawable = this.k; + return drawable == null ? super.onLevelChange(i) : drawable.setLevel(i); + } + + @Override // android.graphics.drawable.Drawable + public boolean onStateChange(int[] iArr) { + Drawable drawable = this.k; + return drawable == null ? super.onStateChange(iArr) : drawable.setState(iArr); + } + + @Override // android.graphics.drawable.Drawable.Callback + public void scheduleDrawable(Drawable drawable, Runnable runnable, long j2) { + scheduleSelf(runnable, j2); + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + this.l.a = i; + Drawable drawable = this.k; + if (drawable != null) { + drawable.setAlpha(i); + } + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(ColorFilter colorFilter) { + e eVar = this.l; + eVar.c = colorFilter; + eVar.f497b = true; + Drawable drawable = this.k; + if (drawable != null) { + drawable.setColorFilter(colorFilter); + } + } + + @Override // android.graphics.drawable.Drawable + public void setDither(boolean z2) { + this.l.d = z2 ? 1 : 0; + Drawable drawable = this.k; + if (drawable != null) { + drawable.setDither(z2); + } + } + + @Override // android.graphics.drawable.Drawable + public void setFilterBitmap(boolean z2) { + this.l.e = z2 ? 1 : 0; + Drawable drawable = this.k; + if (drawable != null) { + drawable.setFilterBitmap(z2); + } + } + + @Override // android.graphics.drawable.Drawable + @TargetApi(21) + public void setHotspot(float f, float f2) { + Drawable drawable = this.k; + if (drawable != null) { + drawable.setHotspot(f, f2); + } + } + + @Override // android.graphics.drawable.Drawable + public boolean setVisible(boolean z2, boolean z3) { + boolean visible = super.setVisible(z2, z3); + Drawable drawable = this.k; + return drawable == null ? visible : drawable.setVisible(z2, z3); + } + + @Override // android.graphics.drawable.Drawable.Callback + public void unscheduleDrawable(Drawable drawable, Runnable runnable) { + unscheduleSelf(runnable); + } +} diff --git a/app/src/main/java/b/f/g/e/g0.java b/app/src/main/java/b/f/g/e/g0.java new file mode 100644 index 0000000000..7a266fed0c --- /dev/null +++ b/app/src/main/java/b/f/g/e/g0.java @@ -0,0 +1,4 @@ +package b.f.g.e; +/* compiled from: VisibilityCallback */ +public interface g0 { +} diff --git a/app/src/main/java/b/f/g/e/h.java b/app/src/main/java/b/f/g/e/h.java new file mode 100644 index 0000000000..dafe2d7a3c --- /dev/null +++ b/app/src/main/java/b/f/g/e/h.java @@ -0,0 +1,57 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +/* compiled from: MatrixDrawable */ +public class h extends g { + public int n; + public int o; + + @Override // b.f.g.e.g, b.f.g.e.e0 + public void d(Matrix matrix) { + n(matrix); + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + if (!(this.n == this.k.getIntrinsicWidth() && this.o == this.k.getIntrinsicHeight())) { + p(); + } + Drawable drawable = this.k; + if (drawable != null) { + drawable.draw(canvas); + } + } + + @Override // b.f.g.e.g + public Drawable o(Drawable drawable) { + Drawable o = super.o(drawable); + p(); + return o; + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + Drawable drawable = this.k; + if (drawable != null) { + drawable.setBounds(rect); + } + p(); + } + + public final void p() { + Drawable drawable = this.k; + Rect bounds = getBounds(); + int intrinsicWidth = drawable.getIntrinsicWidth(); + this.n = intrinsicWidth; + int intrinsicHeight = drawable.getIntrinsicHeight(); + this.o = intrinsicHeight; + if (intrinsicWidth <= 0 || intrinsicHeight <= 0) { + drawable.setBounds(bounds); + } else { + drawable.setBounds(0, 0, intrinsicWidth, intrinsicHeight); + } + } +} diff --git a/app/src/main/java/b/f/g/e/i.java b/app/src/main/java/b/f/g/e/i.java new file mode 100644 index 0000000000..9895603a60 --- /dev/null +++ b/app/src/main/java/b/f/g/e/i.java @@ -0,0 +1,94 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import androidx.annotation.VisibleForTesting; +import com.google.android.material.snackbar.BaseTransientBottomBar; +/* compiled from: OrientedDrawable */ +public class i extends g { + @VisibleForTesting + public final Matrix n = new Matrix(); + public int o; + public int p; + public final Matrix q = new Matrix(); + public final RectF r = new RectF(); + + public i(Drawable drawable, int i, int i2) { + super(drawable); + this.o = i - (i % 90); + this.p = (i2 < 0 || i2 > 8) ? 0 : i2; + } + + @Override // b.f.g.e.g, b.f.g.e.e0 + public void d(Matrix matrix) { + n(matrix); + if (!this.n.isIdentity()) { + matrix.preConcat(this.n); + } + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + int i; + if (this.o > 0 || !((i = this.p) == 0 || i == 1)) { + int save = canvas.save(); + canvas.concat(this.n); + Drawable drawable = this.k; + if (drawable != null) { + drawable.draw(canvas); + } + canvas.restoreToCount(save); + return; + } + Drawable drawable2 = this.k; + if (drawable2 != null) { + drawable2.draw(canvas); + } + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public int getIntrinsicHeight() { + int i = this.p; + return (i == 5 || i == 7 || this.o % BaseTransientBottomBar.ANIMATION_FADE_DURATION != 0) ? super.getIntrinsicWidth() : super.getIntrinsicHeight(); + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public int getIntrinsicWidth() { + int i = this.p; + return (i == 5 || i == 7 || this.o % BaseTransientBottomBar.ANIMATION_FADE_DURATION != 0) ? super.getIntrinsicHeight() : super.getIntrinsicWidth(); + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + int i; + Drawable drawable = this.k; + int i2 = this.o; + if (i2 > 0 || !((i = this.p) == 0 || i == 1)) { + int i3 = this.p; + if (i3 == 2) { + this.n.setScale(-1.0f, 1.0f); + } else if (i3 == 7) { + this.n.setRotate(270.0f, (float) rect.centerX(), (float) rect.centerY()); + this.n.postScale(-1.0f, 1.0f); + } else if (i3 == 4) { + this.n.setScale(1.0f, -1.0f); + } else if (i3 != 5) { + this.n.setRotate((float) i2, (float) rect.centerX(), (float) rect.centerY()); + } else { + this.n.setRotate(270.0f, (float) rect.centerX(), (float) rect.centerY()); + this.n.postScale(1.0f, -1.0f); + } + this.q.reset(); + this.n.invert(this.q); + this.r.set(rect); + this.q.mapRect(this.r); + RectF rectF = this.r; + drawable.setBounds((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom); + return; + } + drawable.setBounds(rect); + } +} diff --git a/app/src/main/java/b/f/g/e/j.java b/app/src/main/java/b/f/g/e/j.java new file mode 100644 index 0000000000..80526387fc --- /dev/null +++ b/app/src/main/java/b/f/g/e/j.java @@ -0,0 +1,17 @@ +package b.f.g.e; +/* compiled from: Rounded */ +public interface j { + void a(int i, float f); + + void c(boolean z2); + + void e(boolean z2); + + void f(boolean z2); + + void i(float f); + + void j(float f); + + void m(float[] fArr); +} diff --git a/app/src/main/java/b/f/g/e/k.java b/app/src/main/java/b/f/g/e/k.java new file mode 100644 index 0000000000..a9a43c41ca --- /dev/null +++ b/app/src/main/java/b/f/g/e/k.java @@ -0,0 +1,94 @@ +package b.f.g.e; + +import android.content.res.Resources; +import android.graphics.Bitmap; +import android.graphics.BitmapShader; +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Paint; +import android.graphics.Shader; +import android.graphics.drawable.BitmapDrawable; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.f.j.r.b; +import java.lang.ref.WeakReference; +/* compiled from: RoundedBitmapDrawable */ +public class k extends n { + public final Paint M; + public final Paint N; + public final Bitmap O; + public WeakReference P; + + public k(Resources resources, Bitmap bitmap, Paint paint) { + super(new BitmapDrawable(resources, bitmap)); + Paint paint2 = new Paint(); + this.M = paint2; + Paint paint3 = new Paint(1); + this.N = paint3; + this.O = bitmap; + if (paint != null) { + paint2.set(paint); + } + paint2.setFlags(1); + paint3.setStyle(Paint.Style.STROKE); + } + + @Override // b.f.g.e.n + @VisibleForTesting + public boolean d() { + return super.d() && this.O != null; + } + + @Override // b.f.g.e.n, android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + b.b(); + if (!(super.d() && this.O != null)) { + super.draw(canvas); + b.b(); + return; + } + h(); + g(); + WeakReference weakReference = this.P; + if (weakReference == null || weakReference.get() != this.O) { + this.P = new WeakReference<>(this.O); + Paint paint = this.M; + Bitmap bitmap = this.O; + Shader.TileMode tileMode = Shader.TileMode.CLAMP; + paint.setShader(new BitmapShader(bitmap, tileMode, tileMode)); + this.o = true; + } + if (this.o) { + this.M.getShader().setLocalMatrix(this.G); + this.o = false; + } + this.M.setFilterBitmap(this.J); + int save = canvas.save(); + canvas.concat(this.D); + canvas.drawPath(this.n, this.M); + float f = this.m; + if (f > 0.0f) { + this.N.setStrokeWidth(f); + this.N.setColor(d.k1(this.p, this.M.getAlpha())); + canvas.drawPath(this.q, this.N); + } + canvas.restoreToCount(save); + b.b(); + } + + @Override // b.f.g.e.n, android.graphics.drawable.Drawable + public void setAlpha(int i) { + this.j.setAlpha(i); + if (i != this.M.getAlpha()) { + this.M.setAlpha(i); + this.j.setAlpha(i); + invalidateSelf(); + } + } + + @Override // b.f.g.e.n, android.graphics.drawable.Drawable + public void setColorFilter(ColorFilter colorFilter) { + this.j.setColorFilter(colorFilter); + this.M.setColorFilter(colorFilter); + } +} diff --git a/app/src/main/java/b/f/g/e/l.java b/app/src/main/java/b/f/g/e/l.java new file mode 100644 index 0000000000..713de693d5 --- /dev/null +++ b/app/src/main/java/b/f/g/e/l.java @@ -0,0 +1,209 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import java.util.Arrays; +/* compiled from: RoundedColorDrawable */ +public class l extends Drawable implements j { + public final float[] j = new float[8]; + @VisibleForTesting + public final float[] k = new float[8]; + @VisibleForTesting + public float[] l; + @VisibleForTesting + public final Paint m = new Paint(1); + public boolean n = false; + public float o = 0.0f; + public float p = 0.0f; + public int q = 0; + public boolean r = false; + + /* renamed from: s reason: collision with root package name */ + public boolean f502s = false; + @VisibleForTesting + public final Path t = new Path(); + @VisibleForTesting + public final Path u = new Path(); + public int v = 0; + public final RectF w = new RectF(); + + /* renamed from: x reason: collision with root package name */ + public int f503x = 255; + + public l(int i) { + if (this.v != i) { + this.v = i; + invalidateSelf(); + } + } + + @Override // b.f.g.e.j + public void a(int i, float f) { + if (this.q != i) { + this.q = i; + invalidateSelf(); + } + if (this.o != f) { + this.o = f; + b(); + invalidateSelf(); + } + } + + public final void b() { + float[] fArr; + float[] fArr2; + this.t.reset(); + this.u.reset(); + this.w.set(getBounds()); + RectF rectF = this.w; + float f = this.o; + rectF.inset(f / 2.0f, f / 2.0f); + int i = 0; + if (this.n) { + this.u.addCircle(this.w.centerX(), this.w.centerY(), Math.min(this.w.width(), this.w.height()) / 2.0f, Path.Direction.CW); + } else { + int i2 = 0; + while (true) { + fArr2 = this.k; + if (i2 >= fArr2.length) { + break; + } + fArr2[i2] = (this.j[i2] + this.p) - (this.o / 2.0f); + i2++; + } + this.u.addRoundRect(this.w, fArr2, Path.Direction.CW); + } + RectF rectF2 = this.w; + float f2 = this.o; + rectF2.inset((-f2) / 2.0f, (-f2) / 2.0f); + float f3 = this.p + (this.r ? this.o : 0.0f); + this.w.inset(f3, f3); + if (this.n) { + this.t.addCircle(this.w.centerX(), this.w.centerY(), Math.min(this.w.width(), this.w.height()) / 2.0f, Path.Direction.CW); + } else if (this.r) { + if (this.l == null) { + this.l = new float[8]; + } + while (true) { + fArr = this.l; + if (i >= fArr.length) { + break; + } + fArr[i] = this.j[i] - this.o; + i++; + } + this.t.addRoundRect(this.w, fArr, Path.Direction.CW); + } else { + this.t.addRoundRect(this.w, this.j, Path.Direction.CW); + } + float f4 = -f3; + this.w.inset(f4, f4); + } + + @Override // b.f.g.e.j + public void c(boolean z2) { + this.n = z2; + b(); + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + this.m.setColor(d.k1(this.v, this.f503x)); + this.m.setStyle(Paint.Style.FILL); + this.m.setFilterBitmap(this.f502s); + canvas.drawPath(this.t, this.m); + if (this.o != 0.0f) { + this.m.setColor(d.k1(this.q, this.f503x)); + this.m.setStyle(Paint.Style.STROKE); + this.m.setStrokeWidth(this.o); + canvas.drawPath(this.u, this.m); + } + } + + @Override // b.f.g.e.j + public void e(boolean z2) { + if (this.f502s != z2) { + this.f502s = z2; + invalidateSelf(); + } + } + + @Override // b.f.g.e.j + public void f(boolean z2) { + if (this.r != z2) { + this.r = z2; + b(); + invalidateSelf(); + } + } + + @Override // android.graphics.drawable.Drawable + public int getAlpha() { + return this.f503x; + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + int k1 = d.k1(this.v, this.f503x) >>> 24; + if (k1 == 255) { + return -1; + } + return k1 == 0 ? -2 : -3; + } + + @Override // b.f.g.e.j + public void i(float f) { + if (this.p != f) { + this.p = f; + b(); + invalidateSelf(); + } + } + + @Override // b.f.g.e.j + public void j(float f) { + d.k(f >= 0.0f, "radius should be non negative"); + Arrays.fill(this.j, f); + b(); + invalidateSelf(); + } + + @Override // b.f.g.e.j + public void m(float[] fArr) { + if (fArr == null) { + Arrays.fill(this.j, 0.0f); + } else { + d.k(fArr.length == 8, "radii should have exactly 8 values"); + System.arraycopy(fArr, 0, this.j, 0, 8); + } + b(); + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + super.onBoundsChange(rect); + b(); + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + if (i != this.f503x) { + this.f503x = i; + invalidateSelf(); + } + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(ColorFilter colorFilter) { + } +} diff --git a/app/src/main/java/b/f/g/e/m.java b/app/src/main/java/b/f/g/e/m.java new file mode 100644 index 0000000000..17dfd87310 --- /dev/null +++ b/app/src/main/java/b/f/g/e/m.java @@ -0,0 +1,231 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.c.a.y.b; +import java.util.Arrays; +/* compiled from: RoundedCornersDrawable */ +public class m extends g implements j { + public boolean A = false; + public final Path B = new Path(); + public final Path C = new Path(); + public final RectF D = new RectF(); + @VisibleForTesting + public int n = 1; + public final RectF o = new RectF(); + public RectF p; + public Matrix q; + public final float[] r = new float[8]; + @VisibleForTesting + + /* renamed from: s reason: collision with root package name */ + public final float[] f504s = new float[8]; + @VisibleForTesting + public final Paint t = new Paint(1); + public boolean u = false; + public float v = 0.0f; + public int w = 0; + + /* renamed from: x reason: collision with root package name */ + public int f505x = 0; + + /* renamed from: y reason: collision with root package name */ + public float f506y = 0.0f; + + /* renamed from: z reason: collision with root package name */ + public boolean f507z = false; + + public m(Drawable drawable) { + super(drawable); + } + + @Override // b.f.g.e.j + public void a(int i, float f) { + this.w = i; + this.v = f; + p(); + invalidateSelf(); + } + + @Override // b.f.g.e.j + public void c(boolean z2) { + this.u = z2; + p(); + invalidateSelf(); + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + this.o.set(getBounds()); + int h = b.h(this.n); + if (h == 0) { + if (this.f507z) { + RectF rectF = this.p; + if (rectF == null) { + this.p = new RectF(this.o); + this.q = new Matrix(); + } else { + rectF.set(this.o); + } + RectF rectF2 = this.p; + float f = this.v; + rectF2.inset(f, f); + this.q.setRectToRect(this.o, this.p, Matrix.ScaleToFit.FILL); + int save = canvas.save(); + canvas.clipRect(this.o); + canvas.concat(this.q); + Drawable drawable = this.k; + if (drawable != null) { + drawable.draw(canvas); + } + canvas.restoreToCount(save); + } else { + Drawable drawable2 = this.k; + if (drawable2 != null) { + drawable2.draw(canvas); + } + } + this.t.setStyle(Paint.Style.FILL); + this.t.setColor(this.f505x); + this.t.setStrokeWidth(0.0f); + this.t.setFilterBitmap(this.A); + this.B.setFillType(Path.FillType.EVEN_ODD); + canvas.drawPath(this.B, this.t); + if (this.u) { + float width = ((this.o.width() - this.o.height()) + this.v) / 2.0f; + float height = ((this.o.height() - this.o.width()) + this.v) / 2.0f; + if (width > 0.0f) { + RectF rectF3 = this.o; + float f2 = rectF3.left; + canvas.drawRect(f2, rectF3.top, f2 + width, rectF3.bottom, this.t); + RectF rectF4 = this.o; + float f3 = rectF4.right; + canvas.drawRect(f3 - width, rectF4.top, f3, rectF4.bottom, this.t); + } + if (height > 0.0f) { + RectF rectF5 = this.o; + float f4 = rectF5.left; + float f5 = rectF5.top; + canvas.drawRect(f4, f5, rectF5.right, f5 + height, this.t); + RectF rectF6 = this.o; + float f6 = rectF6.left; + float f7 = rectF6.bottom; + canvas.drawRect(f6, f7 - height, rectF6.right, f7, this.t); + } + } + } else if (h == 1) { + int save2 = canvas.save(); + canvas.clipPath(this.B); + Drawable drawable3 = this.k; + if (drawable3 != null) { + drawable3.draw(canvas); + } + canvas.restoreToCount(save2); + } + if (this.w != 0) { + this.t.setStyle(Paint.Style.STROKE); + this.t.setColor(this.w); + this.t.setStrokeWidth(this.v); + this.B.setFillType(Path.FillType.EVEN_ODD); + canvas.drawPath(this.C, this.t); + } + } + + @Override // b.f.g.e.j + public void e(boolean z2) { + if (this.A != z2) { + this.A = z2; + invalidateSelf(); + } + } + + @Override // b.f.g.e.j + public void f(boolean z2) { + this.f507z = z2; + p(); + invalidateSelf(); + } + + @Override // b.f.g.e.j + public void i(float f) { + this.f506y = f; + p(); + invalidateSelf(); + } + + @Override // b.f.g.e.j + public void j(float f) { + Arrays.fill(this.r, f); + p(); + invalidateSelf(); + } + + @Override // b.f.g.e.j + public void m(float[] fArr) { + if (fArr == null) { + Arrays.fill(this.r, 0.0f); + } else { + d.k(fArr.length == 8, "radii should have exactly 8 values"); + System.arraycopy(fArr, 0, this.r, 0, 8); + } + p(); + invalidateSelf(); + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + Drawable drawable = this.k; + if (drawable != null) { + drawable.setBounds(rect); + } + p(); + } + + public final void p() { + float[] fArr; + this.B.reset(); + this.C.reset(); + this.D.set(getBounds()); + RectF rectF = this.D; + float f = this.f506y; + rectF.inset(f, f); + if (this.n == 1) { + this.B.addRect(this.D, Path.Direction.CW); + } + if (this.u) { + this.B.addCircle(this.D.centerX(), this.D.centerY(), Math.min(this.D.width(), this.D.height()) / 2.0f, Path.Direction.CW); + } else { + this.B.addRoundRect(this.D, this.r, Path.Direction.CW); + } + RectF rectF2 = this.D; + float f2 = -this.f506y; + rectF2.inset(f2, f2); + RectF rectF3 = this.D; + float f3 = this.v / 2.0f; + rectF3.inset(f3, f3); + if (this.u) { + this.C.addCircle(this.D.centerX(), this.D.centerY(), Math.min(this.D.width(), this.D.height()) / 2.0f, Path.Direction.CW); + } else { + int i = 0; + while (true) { + fArr = this.f504s; + if (i >= fArr.length) { + break; + } + fArr[i] = (this.r[i] + this.f506y) - (this.v / 2.0f); + i++; + } + this.C.addRoundRect(this.D, fArr, Path.Direction.CW); + } + RectF rectF4 = this.D; + float f4 = (-this.v) / 2.0f; + rectF4.inset(f4, f4); + } +} diff --git a/app/src/main/java/b/f/g/e/n.java b/app/src/main/java/b/f/g/e/n.java new file mode 100644 index 0000000000..bfbf585e16 --- /dev/null +++ b/app/src/main/java/b/f/g/e/n.java @@ -0,0 +1,335 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Matrix; +import android.graphics.Path; +import android.graphics.PorterDuff; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.f.j.r.b; +import java.util.Arrays; +/* compiled from: RoundedDrawable */ +public abstract class n extends Drawable implements j, d0 { + @VisibleForTesting + public final Matrix A = new Matrix(); + @VisibleForTesting + public final Matrix B = new Matrix(); + @VisibleForTesting + public final Matrix C = new Matrix(); + @VisibleForTesting + public final Matrix D = new Matrix(); + @Nullable + @VisibleForTesting + public Matrix E; + @Nullable + @VisibleForTesting + public Matrix F; + @VisibleForTesting + public final Matrix G = new Matrix(); + public float H = 0.0f; + public boolean I = false; + public boolean J = false; + public boolean K = true; + @Nullable + public e0 L; + public final Drawable j; + public boolean k = false; + public boolean l = false; + public float m = 0.0f; + public final Path n = new Path(); + public boolean o = true; + public int p = 0; + public final Path q = new Path(); + public final float[] r = new float[8]; + @VisibleForTesting + + /* renamed from: s reason: collision with root package name */ + public final float[] f508s = new float[8]; + @Nullable + @VisibleForTesting + public float[] t; + @VisibleForTesting + public final RectF u = new RectF(); + @VisibleForTesting + public final RectF v = new RectF(); + @VisibleForTesting + public final RectF w = new RectF(); + @VisibleForTesting + + /* renamed from: x reason: collision with root package name */ + public final RectF f509x = new RectF(); + @Nullable + @VisibleForTesting + + /* renamed from: y reason: collision with root package name */ + public RectF f510y; + @VisibleForTesting + + /* renamed from: z reason: collision with root package name */ + public final Matrix f511z = new Matrix(); + + public n(Drawable drawable) { + this.j = drawable; + } + + @Override // b.f.g.e.j + public void a(int i, float f) { + if (this.p != i || this.m != f) { + this.p = i; + this.m = f; + this.K = true; + invalidateSelf(); + } + } + + @Override // b.f.g.e.d0 + public void b(@Nullable e0 e0Var) { + this.L = e0Var; + } + + @Override // b.f.g.e.j + public void c(boolean z2) { + this.k = z2; + this.K = true; + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public void clearColorFilter() { + this.j.clearColorFilter(); + } + + @VisibleForTesting + public boolean d() { + return this.k || this.l || this.m > 0.0f; + } + + @Override // android.graphics.drawable.Drawable + public void draw(@NonNull Canvas canvas) { + b.b(); + this.j.draw(canvas); + b.b(); + } + + @Override // b.f.g.e.j + public void e(boolean z2) { + if (this.J != z2) { + this.J = z2; + invalidateSelf(); + } + } + + @Override // b.f.g.e.j + public void f(boolean z2) { + if (this.I != z2) { + this.I = z2; + this.K = true; + invalidateSelf(); + } + } + + public void g() { + float[] fArr; + if (this.K) { + this.q.reset(); + RectF rectF = this.u; + float f = this.m; + rectF.inset(f / 2.0f, f / 2.0f); + if (this.k) { + this.q.addCircle(this.u.centerX(), this.u.centerY(), Math.min(this.u.width(), this.u.height()) / 2.0f, Path.Direction.CW); + } else { + int i = 0; + while (true) { + fArr = this.f508s; + if (i >= fArr.length) { + break; + } + fArr[i] = (this.r[i] + this.H) - (this.m / 2.0f); + i++; + } + this.q.addRoundRect(this.u, fArr, Path.Direction.CW); + } + RectF rectF2 = this.u; + float f2 = this.m; + rectF2.inset((-f2) / 2.0f, (-f2) / 2.0f); + this.n.reset(); + float f3 = this.H + (this.I ? this.m : 0.0f); + this.u.inset(f3, f3); + if (this.k) { + this.n.addCircle(this.u.centerX(), this.u.centerY(), Math.min(this.u.width(), this.u.height()) / 2.0f, Path.Direction.CW); + } else if (this.I) { + if (this.t == null) { + this.t = new float[8]; + } + for (int i2 = 0; i2 < this.f508s.length; i2++) { + this.t[i2] = this.r[i2] - this.m; + } + this.n.addRoundRect(this.u, this.t, Path.Direction.CW); + } else { + this.n.addRoundRect(this.u, this.r, Path.Direction.CW); + } + float f4 = -f3; + this.u.inset(f4, f4); + this.n.setFillType(Path.FillType.WINDING); + this.K = false; + } + } + + @Override // android.graphics.drawable.Drawable + @RequiresApi(api = 19) + public int getAlpha() { + return this.j.getAlpha(); + } + + @Override // android.graphics.drawable.Drawable + @Nullable + @RequiresApi(api = 21) + public ColorFilter getColorFilter() { + return this.j.getColorFilter(); + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicHeight() { + return this.j.getIntrinsicHeight(); + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicWidth() { + return this.j.getIntrinsicWidth(); + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + return this.j.getOpacity(); + } + + public void h() { + Matrix matrix; + e0 e0Var = this.L; + if (e0Var != null) { + e0Var.d(this.B); + this.L.h(this.u); + } else { + this.B.reset(); + this.u.set(getBounds()); + } + this.w.set(0.0f, 0.0f, (float) getIntrinsicWidth(), (float) getIntrinsicHeight()); + this.f509x.set(this.j.getBounds()); + this.f511z.setRectToRect(this.w, this.f509x, Matrix.ScaleToFit.FILL); + if (this.I) { + RectF rectF = this.f510y; + if (rectF == null) { + this.f510y = new RectF(this.u); + } else { + rectF.set(this.u); + } + RectF rectF2 = this.f510y; + float f = this.m; + rectF2.inset(f, f); + if (this.E == null) { + this.E = new Matrix(); + } + this.E.setRectToRect(this.u, this.f510y, Matrix.ScaleToFit.FILL); + } else { + Matrix matrix2 = this.E; + if (matrix2 != null) { + matrix2.reset(); + } + } + if (!this.B.equals(this.C) || !this.f511z.equals(this.A) || ((matrix = this.E) != null && !matrix.equals(this.F))) { + this.o = true; + this.B.invert(this.D); + this.G.set(this.B); + if (this.I) { + this.G.postConcat(this.E); + } + this.G.preConcat(this.f511z); + this.C.set(this.B); + this.A.set(this.f511z); + if (this.I) { + Matrix matrix3 = this.F; + if (matrix3 == null) { + this.F = new Matrix(this.E); + } else { + matrix3.set(this.E); + } + } else { + Matrix matrix4 = this.F; + if (matrix4 != null) { + matrix4.reset(); + } + } + } + if (!this.u.equals(this.v)) { + this.K = true; + this.v.set(this.u); + } + } + + @Override // b.f.g.e.j + public void i(float f) { + if (this.H != f) { + this.H = f; + this.K = true; + invalidateSelf(); + } + } + + @Override // b.f.g.e.j + public void j(float f) { + boolean z2 = false; + int i = (f > 0.0f ? 1 : (f == 0.0f ? 0 : -1)); + d.B(i >= 0); + Arrays.fill(this.r, f); + if (i != 0) { + z2 = true; + } + this.l = z2; + this.K = true; + invalidateSelf(); + } + + @Override // b.f.g.e.j + public void m(float[] fArr) { + if (fArr == null) { + Arrays.fill(this.r, 0.0f); + this.l = false; + } else { + d.k(fArr.length == 8, "radii should have exactly 8 values"); + System.arraycopy(fArr, 0, this.r, 0, 8); + this.l = false; + for (int i = 0; i < 8; i++) { + this.l |= fArr[i] > 0.0f; + } + } + this.K = true; + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + this.j.setBounds(rect); + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + this.j.setAlpha(i); + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(int i, @NonNull PorterDuff.Mode mode) { + this.j.setColorFilter(i, mode); + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(@Nullable ColorFilter colorFilter) { + this.j.setColorFilter(colorFilter); + } +} diff --git a/app/src/main/java/b/f/g/e/o.java b/app/src/main/java/b/f/g/e/o.java new file mode 100644 index 0000000000..a723caf481 --- /dev/null +++ b/app/src/main/java/b/f/g/e/o.java @@ -0,0 +1,26 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.drawable.NinePatchDrawable; +import b.f.j.r.b; +/* compiled from: RoundedNinePatchDrawable */ +public class o extends n { + public o(NinePatchDrawable ninePatchDrawable) { + super(ninePatchDrawable); + } + + @Override // b.f.g.e.n, android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + b.b(); + if (!d()) { + super.draw(canvas); + b.b(); + return; + } + h(); + g(); + canvas.clipPath(this.n); + super.draw(canvas); + b.b(); + } +} diff --git a/app/src/main/java/b/f/g/e/p.java b/app/src/main/java/b/f/g/e/p.java new file mode 100644 index 0000000000..b4ddc28b76 --- /dev/null +++ b/app/src/main/java/b/f/g/e/p.java @@ -0,0 +1,136 @@ +package b.f.g.e; + +import android.graphics.Canvas; +import android.graphics.Matrix; +import android.graphics.PointF; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScaleTypeDrawable */ +public class p extends g { + @VisibleForTesting + public ScalingUtils$ScaleType n; + @VisibleForTesting + public Object o; + @VisibleForTesting + public PointF p = null; + @VisibleForTesting + public int q = 0; + @VisibleForTesting + public int r = 0; + @VisibleForTesting + + /* renamed from: s reason: collision with root package name */ + public Matrix f512s; + public Matrix t = new Matrix(); + + public p(Drawable drawable, ScalingUtils$ScaleType scalingUtils$ScaleType) { + super(drawable); + this.n = scalingUtils$ScaleType; + } + + @Override // b.f.g.e.g, b.f.g.e.e0 + public void d(Matrix matrix) { + n(matrix); + q(); + Matrix matrix2 = this.f512s; + if (matrix2 != null) { + matrix.preConcat(matrix2); + } + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + q(); + if (this.f512s != null) { + int save = canvas.save(); + canvas.clipRect(getBounds()); + canvas.concat(this.f512s); + Drawable drawable = this.k; + if (drawable != null) { + drawable.draw(canvas); + } + canvas.restoreToCount(save); + return; + } + Drawable drawable2 = this.k; + if (drawable2 != null) { + drawable2.draw(canvas); + } + } + + @Override // b.f.g.e.g + public Drawable o(Drawable drawable) { + Drawable o = super.o(drawable); + p(); + return o; + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + p(); + } + + @VisibleForTesting + public void p() { + Drawable drawable = this.k; + Rect bounds = getBounds(); + int width = bounds.width(); + int height = bounds.height(); + int intrinsicWidth = drawable.getIntrinsicWidth(); + this.q = intrinsicWidth; + int intrinsicHeight = drawable.getIntrinsicHeight(); + this.r = intrinsicHeight; + if (intrinsicWidth <= 0 || intrinsicHeight <= 0) { + drawable.setBounds(bounds); + this.f512s = null; + } else if (intrinsicWidth == width && intrinsicHeight == height) { + drawable.setBounds(bounds); + this.f512s = null; + } else { + ScalingUtils$ScaleType scalingUtils$ScaleType = this.n; + ScalingUtils$ScaleType scalingUtils$ScaleType2 = ScalingUtils$ScaleType.a; + if (scalingUtils$ScaleType == z.l) { + drawable.setBounds(bounds); + this.f512s = null; + return; + } + drawable.setBounds(0, 0, intrinsicWidth, intrinsicHeight); + ScalingUtils$ScaleType scalingUtils$ScaleType3 = this.n; + Matrix matrix = this.t; + PointF pointF = this.p; + scalingUtils$ScaleType3.a(matrix, bounds, intrinsicWidth, intrinsicHeight, pointF != null ? pointF.x : 0.5f, pointF != null ? pointF.y : 0.5f); + this.f512s = this.t; + } + } + + public final void q() { + boolean z2; + ScalingUtils$ScaleType scalingUtils$ScaleType = this.n; + boolean z3 = true; + if (scalingUtils$ScaleType instanceof c0) { + Object state = ((c0) scalingUtils$ScaleType).getState(); + z2 = state == null || !state.equals(this.o); + this.o = state; + } else { + z2 = false; + } + if (this.q == this.k.getIntrinsicWidth() && this.r == this.k.getIntrinsicHeight()) { + z3 = false; + } + if (z3 || z2) { + p(); + } + } + + public void r(ScalingUtils$ScaleType scalingUtils$ScaleType) { + if (!d.f0(this.n, scalingUtils$ScaleType)) { + this.n = scalingUtils$ScaleType; + this.o = null; + p(); + invalidateSelf(); + } + } +} diff --git a/app/src/main/java/b/f/g/e/q.java b/app/src/main/java/b/f/g/e/q.java new file mode 100644 index 0000000000..df7efede5c --- /dev/null +++ b/app/src/main/java/b/f/g/e/q.java @@ -0,0 +1,15 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public abstract class q implements ScalingUtils$ScaleType { + @Override // com.facebook.drawee.drawable.ScalingUtils$ScaleType + public Matrix a(Matrix matrix, Rect rect, int i, int i2, float f, float f2) { + b(matrix, rect, i, i2, f, f2, ((float) rect.width()) / ((float) i), ((float) rect.height()) / ((float) i2)); + return matrix; + } + + public abstract void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4); +} diff --git a/app/src/main/java/b/f/g/e/r.java b/app/src/main/java/b/f/g/e/r.java new file mode 100644 index 0000000000..42b9fc3eea --- /dev/null +++ b/app/src/main/java/b/f/g/e/r.java @@ -0,0 +1,18 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class r extends q { + public static final ScalingUtils$ScaleType l = new r(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + matrix.setTranslate((float) ((int) ((((float) (rect.width() - i)) * 0.5f) + ((float) rect.left) + 0.5f)), (float) ((int) ((((float) (rect.height() - i2)) * 0.5f) + ((float) rect.top) + 0.5f))); + } + + public String toString() { + return "center"; + } +} diff --git a/app/src/main/java/b/f/g/e/s.java b/app/src/main/java/b/f/g/e/s.java new file mode 100644 index 0000000000..9bf5d0844c --- /dev/null +++ b/app/src/main/java/b/f/g/e/s.java @@ -0,0 +1,29 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class s extends q { + public static final ScalingUtils$ScaleType l = new s(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float f5; + float f6; + if (f4 > f3) { + f5 = ((((float) rect.width()) - (((float) i) * f4)) * 0.5f) + ((float) rect.left); + f6 = (float) rect.top; + f3 = f4; + } else { + f5 = (float) rect.left; + f6 = ((((float) rect.height()) - (((float) i2) * f3)) * 0.5f) + ((float) rect.top); + } + matrix.setScale(f3, f3); + matrix.postTranslate((float) ((int) (f5 + 0.5f)), (float) ((int) (f6 + 0.5f))); + } + + public String toString() { + return "center_crop"; + } +} diff --git a/app/src/main/java/b/f/g/e/t.java b/app/src/main/java/b/f/g/e/t.java new file mode 100644 index 0000000000..67fe272fd0 --- /dev/null +++ b/app/src/main/java/b/f/g/e/t.java @@ -0,0 +1,22 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class t extends q { + public static final ScalingUtils$ScaleType l = new t(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float min = Math.min(Math.min(f3, f4), 1.0f); + float width = ((((float) rect.width()) - (((float) i) * min)) * 0.5f) + ((float) rect.left); + float height = (((float) rect.height()) - (((float) i2) * min)) * 0.5f; + matrix.setScale(min, min); + matrix.postTranslate((float) ((int) (width + 0.5f)), (float) ((int) (height + ((float) rect.top) + 0.5f))); + } + + public String toString() { + return "center_inside"; + } +} diff --git a/app/src/main/java/b/f/g/e/u.java b/app/src/main/java/b/f/g/e/u.java new file mode 100644 index 0000000000..b56cf93c8a --- /dev/null +++ b/app/src/main/java/b/f/g/e/u.java @@ -0,0 +1,21 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class u extends q { + public static final ScalingUtils$ScaleType l = new u(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float min = Math.min(f3, f4); + float height = ((float) rect.height()) - (((float) i2) * min); + matrix.setScale(min, min); + matrix.postTranslate((float) ((int) (((float) rect.left) + 0.5f)), (float) ((int) (height + ((float) rect.top) + 0.5f))); + } + + public String toString() { + return "fit_bottom_start"; + } +} diff --git a/app/src/main/java/b/f/g/e/v.java b/app/src/main/java/b/f/g/e/v.java new file mode 100644 index 0000000000..d101196c84 --- /dev/null +++ b/app/src/main/java/b/f/g/e/v.java @@ -0,0 +1,22 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class v extends q { + public static final ScalingUtils$ScaleType l = new v(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float min = Math.min(f3, f4); + float width = ((((float) rect.width()) - (((float) i) * min)) * 0.5f) + ((float) rect.left); + float height = (((float) rect.height()) - (((float) i2) * min)) * 0.5f; + matrix.setScale(min, min); + matrix.postTranslate((float) ((int) (width + 0.5f)), (float) ((int) (height + ((float) rect.top) + 0.5f))); + } + + public String toString() { + return "fit_center"; + } +} diff --git a/app/src/main/java/b/f/g/e/w.java b/app/src/main/java/b/f/g/e/w.java new file mode 100644 index 0000000000..8f41c2fd2d --- /dev/null +++ b/app/src/main/java/b/f/g/e/w.java @@ -0,0 +1,22 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class w extends q { + public static final ScalingUtils$ScaleType l = new w(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float min = Math.min(f3, f4); + float width = ((float) rect.width()) - (((float) i) * min); + float height = ((float) rect.height()) - (((float) i2) * min); + matrix.setScale(min, min); + matrix.postTranslate((float) ((int) (width + ((float) rect.left) + 0.5f)), (float) ((int) (height + ((float) rect.top) + 0.5f))); + } + + public String toString() { + return "fit_end"; + } +} diff --git a/app/src/main/java/b/f/g/e/x.java b/app/src/main/java/b/f/g/e/x.java new file mode 100644 index 0000000000..a8793c9ab3 --- /dev/null +++ b/app/src/main/java/b/f/g/e/x.java @@ -0,0 +1,20 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class x extends q { + public static final ScalingUtils$ScaleType l = new x(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float min = Math.min(f3, f4); + matrix.setScale(min, min); + matrix.postTranslate((float) ((int) (((float) rect.left) + 0.5f)), (float) ((int) (((float) rect.top) + 0.5f))); + } + + public String toString() { + return "fit_start"; + } +} diff --git a/app/src/main/java/b/f/g/e/y.java b/app/src/main/java/b/f/g/e/y.java new file mode 100644 index 0000000000..fc26524b5d --- /dev/null +++ b/app/src/main/java/b/f/g/e/y.java @@ -0,0 +1,20 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class y extends q { + public static final ScalingUtils$ScaleType l = new y(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + float height = (((float) rect.height()) - (((float) i2) * f3)) * 0.5f; + matrix.setScale(f3, f3); + matrix.postTranslate((float) ((int) (((float) rect.left) + 0.5f)), (float) ((int) (height + ((float) rect.top) + 0.5f))); + } + + public String toString() { + return "fit_x"; + } +} diff --git a/app/src/main/java/b/f/g/e/z.java b/app/src/main/java/b/f/g/e/z.java new file mode 100644 index 0000000000..a76a438dd4 --- /dev/null +++ b/app/src/main/java/b/f/g/e/z.java @@ -0,0 +1,19 @@ +package b.f.g.e; + +import android.graphics.Matrix; +import android.graphics.Rect; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: ScalingUtils */ +public class z extends q { + public static final ScalingUtils$ScaleType l = new z(); + + @Override // b.f.g.e.q + public void b(Matrix matrix, Rect rect, int i, int i2, float f, float f2, float f3, float f4) { + matrix.setScale(f3, f4); + matrix.postTranslate((float) ((int) (((float) rect.left) + 0.5f)), (float) ((int) (((float) rect.top) + 0.5f))); + } + + public String toString() { + return "fit_xy"; + } +} diff --git a/app/src/main/java/b/f/g/f/a.java b/app/src/main/java/b/f/g/f/a.java new file mode 100644 index 0000000000..a196c318c5 --- /dev/null +++ b/app/src/main/java/b/f/g/f/a.java @@ -0,0 +1,74 @@ +package b.f.g.f; + +import android.content.res.Resources; +import android.graphics.drawable.Drawable; +import b.f.g.e.s; +import b.f.g.e.t; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +import com.facebook.drawee.generic.GenericDraweeHierarchy; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +/* compiled from: GenericDraweeHierarchyBuilder */ +public class a { + public static final ScalingUtils$ScaleType a = t.l; + + /* renamed from: b reason: collision with root package name */ + public static final ScalingUtils$ScaleType f513b = s.l; + public Resources c; + public int d = 300; + public float e = 0.0f; + public Drawable f = null; + public ScalingUtils$ScaleType g; + public Drawable h; + public ScalingUtils$ScaleType i; + public Drawable j; + public ScalingUtils$ScaleType k; + public Drawable l; + public ScalingUtils$ScaleType m; + public ScalingUtils$ScaleType n; + public Drawable o; + public List p; + public Drawable q; + public c r; + + static { + ScalingUtils$ScaleType scalingUtils$ScaleType = ScalingUtils$ScaleType.a; + } + + public a(Resources resources) { + this.c = resources; + ScalingUtils$ScaleType scalingUtils$ScaleType = a; + this.g = scalingUtils$ScaleType; + this.h = null; + this.i = scalingUtils$ScaleType; + this.j = null; + this.k = scalingUtils$ScaleType; + this.l = null; + this.m = scalingUtils$ScaleType; + this.n = f513b; + this.o = null; + this.p = null; + this.q = null; + this.r = null; + } + + public GenericDraweeHierarchy a() { + List list = this.p; + if (list != null) { + for (Drawable drawable : list) { + Objects.requireNonNull(drawable); + } + } + return new GenericDraweeHierarchy(this); + } + + public a b(Drawable drawable) { + if (drawable == null) { + this.p = null; + } else { + this.p = Arrays.asList(drawable); + } + return this; + } +} diff --git a/app/src/main/java/b/f/g/f/b.java b/app/src/main/java/b/f/g/f/b.java new file mode 100644 index 0000000000..25dcecf123 --- /dev/null +++ b/app/src/main/java/b/f/g/f/b.java @@ -0,0 +1,72 @@ +package b.f.g.f; + +import android.annotation.SuppressLint; +import android.graphics.Canvas; +import android.graphics.drawable.Drawable; +import androidx.annotation.VisibleForTesting; +import b.f.d.e.a; +import b.f.g.b.c; +import b.f.g.e.f0; +import b.f.g.e.g; +import b.f.g.e.g0; +import com.facebook.drawee.view.DraweeHolder; +/* compiled from: RootDrawable */ +public class b extends g implements f0 { + @VisibleForTesting + public Drawable n = null; + public g0 o; + + public b(Drawable drawable) { + super(drawable); + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + @SuppressLint({"WrongCall"}) + public void draw(Canvas canvas) { + if (isVisible()) { + g0 g0Var = this.o; + if (g0Var != null) { + DraweeHolder draweeHolder = (DraweeHolder) g0Var; + if (!draweeHolder.a) { + a.m(c.class, "%x: Draw requested for a non-attached controller %x. %s", Integer.valueOf(System.identityHashCode(draweeHolder)), Integer.valueOf(System.identityHashCode(draweeHolder.e)), draweeHolder.toString()); + draweeHolder.f2849b = true; + draweeHolder.c = true; + draweeHolder.b(); + } + } + Drawable drawable = this.k; + if (drawable != null) { + drawable.draw(canvas); + } + Drawable drawable2 = this.n; + if (drawable2 != null) { + drawable2.setBounds(getBounds()); + this.n.draw(canvas); + } + } + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public int getIntrinsicHeight() { + return -1; + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public int getIntrinsicWidth() { + return -1; + } + + @Override // b.f.g.e.f0 + public void k(g0 g0Var) { + this.o = g0Var; + } + + @Override // b.f.g.e.g, android.graphics.drawable.Drawable + public boolean setVisible(boolean z2, boolean z3) { + g0 g0Var = this.o; + if (g0Var != null) { + ((DraweeHolder) g0Var).f(z2); + } + return super.setVisible(z2, z3); + } +} diff --git a/app/src/main/java/b/f/g/f/c.java b/app/src/main/java/b/f/g/f/c.java new file mode 100644 index 0000000000..0deb751c0d --- /dev/null +++ b/app/src/main/java/b/f/g/f/c.java @@ -0,0 +1,58 @@ +package b.f.g.f; + +import androidx.annotation.ColorInt; +import b.c.a.y.b; +import java.util.Arrays; +/* compiled from: RoundingParams */ +public class c { + public int a = 2; + + /* renamed from: b reason: collision with root package name */ + public boolean f514b = false; + public float[] c = null; + public int d = 0; + public float e = 0.0f; + public int f = 0; + public float g = 0.0f; + public boolean h = false; + + public static c a(float f) { + c cVar = new c(); + if (cVar.c == null) { + cVar.c = new float[8]; + } + Arrays.fill(cVar.c, f); + return cVar; + } + + public c b(@ColorInt int i) { + this.d = i; + this.a = 1; + return this; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null || c.class != obj.getClass()) { + return false; + } + c cVar = (c) obj; + if (this.f514b == cVar.f514b && this.d == cVar.d && Float.compare(cVar.e, this.e) == 0 && this.f == cVar.f && Float.compare(cVar.g, this.g) == 0 && this.a == cVar.a && this.h == cVar.h) { + return Arrays.equals(this.c, cVar.c); + } + return false; + } + + public int hashCode() { + int i = this.a; + int h = (((i != 0 ? b.h(i) : 0) * 31) + (this.f514b ? 1 : 0)) * 31; + float[] fArr = this.c; + int hashCode = (((h + (fArr != null ? Arrays.hashCode(fArr) : 0)) * 31) + this.d) * 31; + float f = this.e; + int floatToIntBits = (((hashCode + (f != 0.0f ? Float.floatToIntBits(f) : 0)) * 31) + this.f) * 31; + float f2 = this.g; + return ((((floatToIntBits + (f2 != 0.0f ? Float.floatToIntBits(f2) : 0)) * 31) + 0) * 31) + (this.h ? 1 : 0); + } +} diff --git a/app/src/main/java/b/f/g/f/d.java b/app/src/main/java/b/f/g/f/d.java new file mode 100644 index 0000000000..ab3d24ca51 --- /dev/null +++ b/app/src/main/java/b/f/g/f/d.java @@ -0,0 +1,121 @@ +package b.f.g.f; + +import android.content.res.Resources; +import android.graphics.PointF; +import android.graphics.drawable.BitmapDrawable; +import android.graphics.drawable.ColorDrawable; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.NinePatchDrawable; +import b.f.d.e.a; +import b.f.g.e.g; +import b.f.g.e.j; +import b.f.g.e.k; +import b.f.g.e.l; +import b.f.g.e.m; +import b.f.g.e.o; +import b.f.g.e.p; +import b.f.j.r.b; +import com.facebook.drawee.drawable.ScalingUtils$ScaleType; +/* compiled from: WrappingUtils */ +public class d { + public static final Drawable a = new ColorDrawable(0); + + public static Drawable a(Drawable drawable, c cVar, Resources resources) { + if (drawable instanceof BitmapDrawable) { + BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; + k kVar = new k(resources, bitmapDrawable.getBitmap(), bitmapDrawable.getPaint()); + b(kVar, cVar); + return kVar; + } else if (drawable instanceof NinePatchDrawable) { + o oVar = new o((NinePatchDrawable) drawable); + b(oVar, cVar); + return oVar; + } else if (drawable instanceof ColorDrawable) { + l lVar = new l(((ColorDrawable) drawable).getColor()); + b(lVar, cVar); + return lVar; + } else { + a.o("WrappingUtils", "Don't know how to round that drawable: %s", drawable); + return drawable; + } + } + + public static void b(j jVar, c cVar) { + jVar.c(cVar.f514b); + jVar.m(cVar.c); + jVar.a(cVar.f, cVar.e); + jVar.i(cVar.g); + jVar.f(false); + jVar.e(cVar.h); + } + + public static Drawable c(Drawable drawable, c cVar, Resources resources) { + try { + if (!(drawable == null || cVar == null)) { + if (cVar.a == 2) { + if (drawable instanceof g) { + b.f.g.e.d dVar = (g) drawable; + while (true) { + Drawable l = dVar.l(); + if (l == dVar) { + break; + } else if (!(l instanceof b.f.g.e.d)) { + break; + } else { + dVar = (b.f.g.e.d) l; + } + } + dVar.g(a(dVar.g(a), cVar, resources)); + b.b(); + return drawable; + } + Drawable a2 = a(drawable, cVar, resources); + b.b(); + return a2; + } + } + b.b(); + return drawable; + } finally { + b.b(); + } + } + + public static Drawable d(Drawable drawable, c cVar) { + try { + if (!(drawable == null || cVar == null)) { + if (cVar.a == 1) { + m mVar = new m(drawable); + b(mVar, cVar); + mVar.f505x = cVar.d; + mVar.invalidateSelf(); + b.b(); + return mVar; + } + } + b.b(); + return drawable; + } finally { + b.b(); + } + } + + public static Drawable e(Drawable drawable, ScalingUtils$ScaleType scalingUtils$ScaleType, PointF pointF) { + b.b(); + if (drawable == null || scalingUtils$ScaleType == null) { + b.b(); + return drawable; + } + p pVar = new p(drawable, scalingUtils$ScaleType); + if (pointF != null && !b.c.a.a0.d.f0(pVar.p, pointF)) { + if (pVar.p == null) { + pVar.p = new PointF(); + } + pVar.p.set(pointF); + pVar.p(); + pVar.invalidateSelf(); + } + b.b(); + return pVar; + } +} diff --git a/app/src/main/java/b/f/g/g/a.java b/app/src/main/java/b/f/g/g/a.java new file mode 100644 index 0000000000..5140a02ca4 --- /dev/null +++ b/app/src/main/java/b/f/g/g/a.java @@ -0,0 +1,33 @@ +package b.f.g.g; + +import android.content.Context; +import android.view.ViewConfiguration; +import androidx.annotation.VisibleForTesting; +/* compiled from: GestureDetector */ +public class a { + @VisibleForTesting + public AbstractC0060a a = null; + @VisibleForTesting + + /* renamed from: b reason: collision with root package name */ + public final float f515b; + @VisibleForTesting + public boolean c = false; + @VisibleForTesting + public boolean d = false; + @VisibleForTesting + public long e; + @VisibleForTesting + public float f; + @VisibleForTesting + public float g; + + /* compiled from: GestureDetector */ + /* renamed from: b.f.g.g.a$a reason: collision with other inner class name */ + public interface AbstractC0060a { + } + + public a(Context context) { + this.f515b = (float) ViewConfiguration.get(context).getScaledTouchSlop(); + } +} diff --git a/app/src/main/java/b/f/g/h/a.java b/app/src/main/java/b/f/g/h/a.java new file mode 100644 index 0000000000..d50d0b0199 --- /dev/null +++ b/app/src/main/java/b/f/g/h/a.java @@ -0,0 +1,18 @@ +package b.f.g.h; + +import android.graphics.drawable.Drawable; +import com.facebook.drawee.interfaces.DraweeHierarchy; +/* compiled from: SettableDraweeHierarchy */ +public interface a extends DraweeHierarchy { + void a(Drawable drawable); + + void b(Throwable th); + + void c(Throwable th); + + void d(float f, boolean z2); + + void f(Drawable drawable, float f, boolean z2); + + void reset(); +} diff --git a/app/src/main/java/b/f/g/i/a.java b/app/src/main/java/b/f/g/i/a.java new file mode 100644 index 0000000000..1d1d7dae5f --- /dev/null +++ b/app/src/main/java/b/f/g/i/a.java @@ -0,0 +1,12 @@ +package b.f.g.i; + +import com.facebook.drawee.view.DraweeHolder; +/* compiled from: DraweeSpan */ +public class a extends b.f.n.a.a.a { + public final DraweeHolder p; + + public a(DraweeHolder draweeHolder, int i) { + super(draweeHolder.d(), i); + this.p = draweeHolder; + } +} diff --git a/app/src/main/java/b/f/g/j/a.java b/app/src/main/java/b/f/g/j/a.java new file mode 100644 index 0000000000..6d32f207a2 --- /dev/null +++ b/app/src/main/java/b/f/g/j/a.java @@ -0,0 +1,48 @@ +package b.f.g.j; + +import android.annotation.TargetApi; +import android.content.Context; +import android.util.AttributeSet; +import b.c.a.a0.d; +import b.f.j.r.b; +import com.facebook.drawee.generic.GenericDraweeHierarchy; +import com.facebook.drawee.view.DraweeView; +/* compiled from: GenericDraweeView */ +public class a extends DraweeView { + public a(Context context) { + super(context); + inflateHierarchy(context, null); + } + + public a(Context context, AttributeSet attributeSet) { + super(context, attributeSet); + inflateHierarchy(context, attributeSet); + } + + public a(Context context, AttributeSet attributeSet, int i) { + super(context, attributeSet, i); + inflateHierarchy(context, attributeSet); + } + + @TargetApi(21) + public a(Context context, AttributeSet attributeSet, int i, int i2) { + super(context, attributeSet, i, i2); + inflateHierarchy(context, attributeSet); + } + + public a(Context context, GenericDraweeHierarchy genericDraweeHierarchy) { + super(context); + setHierarchy(genericDraweeHierarchy); + } + + public void inflateHierarchy(Context context, AttributeSet attributeSet) { + b.b(); + b.b(); + b.f.g.f.a aVar = new b.f.g.f.a(context.getResources()); + d.j2(aVar, context, attributeSet); + b.b(); + setAspectRatio(aVar.e); + setHierarchy(aVar.a()); + b.b(); + } +} diff --git a/app/src/main/java/b/f/h/a/a/a.java b/app/src/main/java/b/f/h/a/a/a.java new file mode 100644 index 0000000000..8d93881edf --- /dev/null +++ b/app/src/main/java/b/f/h/a/a/a.java @@ -0,0 +1,23 @@ +package b.f.h.a.a; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import androidx.annotation.IntRange; +/* compiled from: AnimationBackend */ +public interface a extends d { + void clear(); + + void d(ColorFilter colorFilter); + + void f(@IntRange(from = 0, to = 255) int i); + + int g(); + + void h(Rect rect); + + int i(); + + boolean j(Drawable drawable, Canvas canvas, int i); +} diff --git a/app/src/main/java/b/f/h/a/a/b.java b/app/src/main/java/b/f/h/a/a/b.java new file mode 100644 index 0000000000..93ab282039 --- /dev/null +++ b/app/src/main/java/b/f/h/a/a/b.java @@ -0,0 +1,99 @@ +package b.f.h.a.a; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import androidx.annotation.IntRange; +import b.f.h.a.a.a; +/* compiled from: AnimationBackendDelegate */ +public class b implements a { + public T a; + + public b(T t) { + this.a = t; + } + + @Override // b.f.h.a.a.d + public int a() { + T t = this.a; + if (t == null) { + return 0; + } + return t.a(); + } + + @Override // b.f.h.a.a.d + public int b() { + T t = this.a; + if (t == null) { + return 0; + } + return t.b(); + } + + @Override // b.f.h.a.a.a + public void clear() { + T t = this.a; + if (t != null) { + t.clear(); + } + } + + @Override // b.f.h.a.a.a + public void d(ColorFilter colorFilter) { + T t = this.a; + if (t != null) { + t.d(colorFilter); + } + } + + @Override // b.f.h.a.a.d + public int e(int i) { + T t = this.a; + if (t == null) { + return 0; + } + return t.e(i); + } + + @Override // b.f.h.a.a.a + public void f(@IntRange(from = 0, to = 255) int i) { + T t = this.a; + if (t != null) { + t.f(i); + } + } + + @Override // b.f.h.a.a.a + public int g() { + T t = this.a; + if (t == null) { + return -1; + } + return t.g(); + } + + @Override // b.f.h.a.a.a + public void h(Rect rect) { + T t = this.a; + if (t != null) { + t.h(rect); + } + } + + @Override // b.f.h.a.a.a + public int i() { + T t = this.a; + if (t == null) { + return -1; + } + return t.i(); + } + + @Override // b.f.h.a.a.a + public boolean j(Drawable drawable, Canvas canvas, int i) { + T t = this.a; + return t != null && t.j(drawable, canvas, i); + } +} diff --git a/app/src/main/java/b/f/h/a/a/c.java b/app/src/main/java/b/f/h/a/a/c.java new file mode 100644 index 0000000000..acb4c980ac --- /dev/null +++ b/app/src/main/java/b/f/h/a/a/c.java @@ -0,0 +1,71 @@ +package b.f.h.a.a; + +import android.graphics.Canvas; +import android.graphics.drawable.Drawable; +import b.f.h.a.a.a; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +/* compiled from: AnimationBackendDelegateWithInactivityCheck */ +public class c extends b { + + /* renamed from: b reason: collision with root package name */ + public final b.f.d.k.b f516b; + public final ScheduledExecutorService c; + public boolean d = false; + public long e; + public b f; + public final Runnable g = new a(); + + /* compiled from: AnimationBackendDelegateWithInactivityCheck */ + public class a implements Runnable { + public a() { + } + + @Override // java.lang.Runnable + public void run() { + synchronized (c.this) { + c cVar = c.this; + boolean z2 = false; + cVar.d = false; + if (cVar.f516b.now() - cVar.e > 2000) { + z2 = true; + } + if (z2) { + b bVar = c.this.f; + if (bVar != null) { + bVar.c(); + } + } else { + c.this.c(); + } + } + } + } + + /* compiled from: AnimationBackendDelegateWithInactivityCheck */ + public interface b { + void c(); + } + + public c(T t, b bVar, b.f.d.k.b bVar2, ScheduledExecutorService scheduledExecutorService) { + super(t); + this.f = bVar; + this.f516b = bVar2; + this.c = scheduledExecutorService; + } + + public final synchronized void c() { + if (!this.d) { + this.d = true; + this.c.schedule(this.g, 1000, TimeUnit.MILLISECONDS); + } + } + + @Override // b.f.h.a.a.b, b.f.h.a.a.a + public boolean j(Drawable drawable, Canvas canvas, int i) { + this.e = this.f516b.now(); + boolean j = super.j(drawable, canvas, i); + c(); + return j; + } +} diff --git a/app/src/main/java/b/f/h/a/a/d.java b/app/src/main/java/b/f/h/a/a/d.java new file mode 100644 index 0000000000..caa92205c7 --- /dev/null +++ b/app/src/main/java/b/f/h/a/a/d.java @@ -0,0 +1,9 @@ +package b.f.h.a.a; +/* compiled from: AnimationInformation */ +public interface d { + int a(); + + int b(); + + int e(int i); +} diff --git a/app/src/main/java/b/f/h/a/b/a.java b/app/src/main/java/b/f/h/a/b/a.java new file mode 100644 index 0000000000..dd038167c0 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/a.java @@ -0,0 +1,234 @@ +package b.f.h.a.b; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import androidx.annotation.IntRange; +import b.f.h.a.a.c; +import b.f.h.a.a.d; +import b.f.h.a.b.e.b; +import b.f.h.a.b.e.c; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +import java.util.Objects; +/* compiled from: BitmapAnimationBackend */ +public class a implements b.f.h.a.a.a, c.b { + public final PlatformBitmapFactory a; + + /* renamed from: b reason: collision with root package name */ + public final b f517b; + public final d c; + public final c d; + public final b.f.h.a.b.e.a e; + public final b f; + public final Paint g; + public Rect h; + public int i; + public int j; + public Bitmap.Config k = Bitmap.Config.ARGB_8888; + + public a(PlatformBitmapFactory platformBitmapFactory, b bVar, d dVar, c cVar, b.f.h.a.b.e.a aVar, b bVar2) { + this.a = platformBitmapFactory; + this.f517b = bVar; + this.c = dVar; + this.d = cVar; + this.e = aVar; + this.f = bVar2; + this.g = new Paint(6); + n(); + } + + @Override // b.f.h.a.a.d + public int a() { + return this.c.a(); + } + + @Override // b.f.h.a.a.d + public int b() { + return this.c.b(); + } + + @Override // b.f.h.a.a.c.b + public void c() { + this.f517b.clear(); + } + + @Override // b.f.h.a.a.a + public void clear() { + this.f517b.clear(); + } + + @Override // b.f.h.a.a.a + public void d(ColorFilter colorFilter) { + this.g.setColorFilter(colorFilter); + } + + @Override // b.f.h.a.a.d + public int e(int i) { + return this.c.e(i); + } + + @Override // b.f.h.a.a.a + public void f(@IntRange(from = 0, to = 255) int i) { + this.g.setAlpha(i); + } + + @Override // b.f.h.a.a.a + public int g() { + return this.j; + } + + @Override // b.f.h.a.a.a + public void h(Rect rect) { + this.h = rect; + b.f.h.a.b.f.b bVar = (b.f.h.a.b.f.b) this.d; + b.f.j.a.c.a aVar = (b.f.j.a.c.a) bVar.f521b; + if (!b.f.j.a.c.a.a(aVar.c, rect).equals(aVar.d)) { + aVar = new b.f.j.a.c.a(aVar.a, aVar.f538b, rect, aVar.i); + } + if (aVar != bVar.f521b) { + bVar.f521b = aVar; + bVar.c = new b.f.j.a.c.d(aVar, bVar.d); + } + n(); + } + + @Override // b.f.h.a.a.a + public int i() { + return this.i; + } + + @Override // b.f.h.a.a.a + public boolean j(Drawable drawable, Canvas canvas, int i) { + b bVar; + int i2 = i; + boolean l = l(canvas, i2, 0); + b.f.h.a.b.e.a aVar = this.e; + if (!(aVar == null || (bVar = this.f) == null)) { + b bVar2 = this.f517b; + b.f.h.a.b.e.d dVar = (b.f.h.a.b.e.d) aVar; + int i3 = 1; + while (i3 <= dVar.a) { + int a = (i2 + i3) % a(); + b.f.d.e.a.h(2); + b.f.h.a.b.e.c cVar = (b.f.h.a.b.e.c) bVar; + Objects.requireNonNull(cVar); + int hashCode = (hashCode() * 31) + a; + synchronized (cVar.e) { + if (cVar.e.get(hashCode) != null) { + int i4 = b.f.d.e.a.a; + } else if (bVar2.c(a)) { + int i5 = b.f.d.e.a.a; + } else { + c.a aVar2 = new c.a(this, bVar2, a, hashCode); + cVar.e.put(hashCode, aVar2); + cVar.d.execute(aVar2); + } + } + i3++; + i2 = i; + } + } + return l; + } + + public final boolean k(int i, CloseableReference closeableReference, Canvas canvas, int i2) { + if (!CloseableReference.y(closeableReference)) { + return false; + } + if (this.h == null) { + canvas.drawBitmap(closeableReference.u(), 0.0f, 0.0f, this.g); + } else { + canvas.drawBitmap(closeableReference.u(), (Rect) null, this.h, this.g); + } + if (i2 == 3) { + return true; + } + this.f517b.e(i, closeableReference, i2); + return true; + } + + public final boolean l(Canvas canvas, int i, int i2) { + boolean z2; + int i3 = 2; + boolean z3 = true; + CloseableReference closeableReference = null; + if (i2 == 0) { + closeableReference = this.f517b.d(i); + z2 = k(i, closeableReference, canvas, 0); + i3 = 1; + } else if (i2 == 1) { + closeableReference = this.f517b.a(i, this.i, this.j); + if (!m(i, closeableReference) || !k(i, closeableReference, canvas, 1)) { + z3 = false; + } + z2 = z3; + } else if (i2 == 2) { + try { + closeableReference = this.a.a(this.i, this.j, this.k); + if (!m(i, closeableReference) || !k(i, closeableReference, canvas, 2)) { + z3 = false; + } + z2 = z3; + i3 = 3; + } catch (RuntimeException e) { + b.f.d.e.a.l(a.class, "Failed to create frame bitmap", e); + Class cls = CloseableReference.j; + return false; + } + } else if (i2 != 3) { + Class cls2 = CloseableReference.j; + return false; + } else { + try { + closeableReference = this.f517b.f(i); + z2 = k(i, closeableReference, canvas, 3); + i3 = -1; + } catch (Throwable th) { + Class cls3 = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + throw th; + } + } + Class cls4 = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + return (z2 || i3 == -1) ? z2 : l(canvas, i, i3); + } + + public final boolean m(int i, CloseableReference closeableReference) { + if (!CloseableReference.y(closeableReference)) { + return false; + } + boolean a = ((b.f.h.a.b.f.b) this.d).a(i, closeableReference.u()); + if (!a) { + closeableReference.close(); + } + return a; + } + + public final void n() { + int width = ((b.f.j.a.c.a) ((b.f.h.a.b.f.b) this.d).f521b).c.getWidth(); + this.i = width; + int i = -1; + if (width == -1) { + Rect rect = this.h; + this.i = rect == null ? -1 : rect.width(); + } + int height = ((b.f.j.a.c.a) ((b.f.h.a.b.f.b) this.d).f521b).c.getHeight(); + this.j = height; + if (height == -1) { + Rect rect2 = this.h; + if (rect2 != null) { + i = rect2.height(); + } + this.j = i; + } + } +} diff --git a/app/src/main/java/b/f/h/a/b/b.java b/app/src/main/java/b/f/h/a/b/b.java new file mode 100644 index 0000000000..077e1bcb2f --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/b.java @@ -0,0 +1,20 @@ +package b.f.h.a.b; + +import android.graphics.Bitmap; +import com.facebook.common.references.CloseableReference; +/* compiled from: BitmapFrameCache */ +public interface b { + CloseableReference a(int i, int i2, int i3); + + void b(int i, CloseableReference closeableReference, int i2); + + boolean c(int i); + + void clear(); + + CloseableReference d(int i); + + void e(int i, CloseableReference closeableReference, int i2); + + CloseableReference f(int i); +} diff --git a/app/src/main/java/b/f/h/a/b/c.java b/app/src/main/java/b/f/h/a/b/c.java new file mode 100644 index 0000000000..4ac724687c --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/c.java @@ -0,0 +1,4 @@ +package b.f.h.a.b; +/* compiled from: BitmapFrameRenderer */ +public interface c { +} diff --git a/app/src/main/java/b/f/h/a/b/d/a.java b/app/src/main/java/b/f/h/a/b/d/a.java new file mode 100644 index 0000000000..d85a9fff55 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/d/a.java @@ -0,0 +1,21 @@ +package b.f.h.a.b.d; + +import com.facebook.cache.common.CacheKey; +/* compiled from: AnimationFrameCacheKey */ +public class a implements CacheKey { + public final String a; + + public a(int i) { + this.a = b.d.b.a.a.p("anim://", i); + } + + @Override // com.facebook.cache.common.CacheKey + public boolean a() { + return false; + } + + @Override // com.facebook.cache.common.CacheKey + public String b() { + return this.a; + } +} diff --git a/app/src/main/java/b/f/h/a/b/d/b.java b/app/src/main/java/b/f/h/a/b/d/b.java new file mode 100644 index 0000000000..d25ec26830 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/d/b.java @@ -0,0 +1,174 @@ +package b.f.h.a.b.d; + +import android.graphics.Bitmap; +import android.util.SparseArray; +import androidx.annotation.VisibleForTesting; +import b.f.d.e.a; +import b.f.j.a.c.c; +import b.f.j.j.d; +import b.f.j.j.h; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.references.CloseableReference; +import java.util.Iterator; +import java.util.Objects; +/* compiled from: FrescoFrameCache */ +public class b implements b.f.h.a.b.b { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f518b; + public final SparseArray> c = new SparseArray<>(); + public CloseableReference d; + + public b(c cVar, boolean z2) { + this.a = cVar; + this.f518b = z2; + } + + @VisibleForTesting + public static CloseableReference g(CloseableReference closeableReference) { + CloseableReference n; + try { + if (!CloseableReference.y(closeableReference) || !(closeableReference.u() instanceof d)) { + if (closeableReference != null) { + closeableReference.close(); + } + return null; + } + d dVar = (d) closeableReference.u(); + synchronized (dVar) { + n = CloseableReference.n(dVar.l); + } + closeableReference.close(); + return n; + } catch (Throwable th) { + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + throw th; + } + } + + @Override // b.f.h.a.b.b + public synchronized CloseableReference a(int i, int i2, int i3) { + CacheKey cacheKey; + CloseableReference closeableReference = null; + if (!this.f518b) { + return null; + } + c cVar = this.a; + while (true) { + synchronized (cVar) { + Iterator it = cVar.d.iterator(); + if (it.hasNext()) { + cacheKey = it.next(); + it.remove(); + } else { + cacheKey = null; + } + } + if (cacheKey == null) { + break; + } + CloseableReference b2 = cVar.f539b.b(cacheKey); + if (b2 != null) { + closeableReference = b2; + break; + } + } + return g(closeableReference); + } + + @Override // b.f.h.a.b.b + public synchronized void b(int i, CloseableReference closeableReference, int i2) { + CloseableReference closeableReference2 = null; + try { + CloseableReference A = CloseableReference.A(new d(closeableReference, h.a, 0, 0)); + if (A == null) { + if (A != null) { + A.close(); + } + return; + } + c cVar = this.a; + CloseableReference c = cVar.f539b.c(new c.b(cVar.a, i), A, cVar.c); + if (CloseableReference.y(c)) { + closeableReference2 = this.c.get(i); + this.c.put(i, c); + int i3 = a.a; + } + A.close(); + } finally { + if (closeableReference2 != null) { + closeableReference2.close(); + } + } + } + + @Override // b.f.h.a.b.b + public synchronized boolean c(int i) { + c cVar; + cVar = this.a; + return cVar.f539b.contains(new c.b(cVar.a, i)); + } + + @Override // b.f.h.a.b.b + public synchronized void clear() { + CloseableReference closeableReference = this.d; + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + this.d = null; + for (int i = 0; i < this.c.size(); i++) { + CloseableReference valueAt = this.c.valueAt(i); + if (valueAt != null) { + valueAt.close(); + } + } + this.c.clear(); + } + + @Override // b.f.h.a.b.b + public synchronized CloseableReference d(int i) { + c cVar; + cVar = this.a; + return g(cVar.f539b.get(new c.b(cVar.a, i))); + } + + @Override // b.f.h.a.b.b + public synchronized void e(int i, CloseableReference closeableReference, int i2) { + Objects.requireNonNull(closeableReference); + synchronized (this) { + CloseableReference closeableReference2 = this.c.get(i); + if (closeableReference2 != null) { + this.c.delete(i); + Class cls = CloseableReference.j; + closeableReference2.close(); + int i3 = a.a; + } + } + CloseableReference closeableReference3 = null; + try { + CloseableReference A = CloseableReference.A(new d(closeableReference, h.a, 0, 0)); + if (A != null) { + closeableReference3 = this.d; + c cVar = this.a; + this.d = cVar.f539b.c(new c.b(cVar.a, i), A, cVar.c); + } + if (A != null) { + A.close(); + } + } finally { + if (closeableReference3 != null) { + closeableReference3.close(); + } + } + } + + @Override // b.f.h.a.b.b + public synchronized CloseableReference f(int i) { + return g(CloseableReference.n(this.d)); + } +} diff --git a/app/src/main/java/b/f/h/a/b/d/c.java b/app/src/main/java/b/f/h/a/b/d/c.java new file mode 100644 index 0000000000..0916160500 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/d/c.java @@ -0,0 +1,74 @@ +package b.f.h.a.b.d; + +import android.graphics.Bitmap; +import b.f.h.a.b.b; +import com.facebook.common.references.CloseableReference; +/* compiled from: KeepLastFrameCache */ +public class c implements b { + public int a = -1; + + /* renamed from: b reason: collision with root package name */ + public CloseableReference f519b; + + @Override // b.f.h.a.b.b + public synchronized CloseableReference a(int i, int i2, int i3) { + try { + } finally { + g(); + } + return CloseableReference.n(this.f519b); + } + + @Override // b.f.h.a.b.b + public void b(int i, CloseableReference closeableReference, int i2) { + } + + @Override // b.f.h.a.b.b + public synchronized boolean c(int i) { + return i == this.a && CloseableReference.y(this.f519b); + } + + @Override // b.f.h.a.b.b + public synchronized void clear() { + g(); + } + + @Override // b.f.h.a.b.b + public synchronized CloseableReference d(int i) { + if (this.a != i) { + return null; + } + return CloseableReference.n(this.f519b); + } + + @Override // b.f.h.a.b.b + public synchronized void e(int i, CloseableReference closeableReference, int i2) { + if (closeableReference != null) { + if (this.f519b != null && closeableReference.u().equals(this.f519b.u())) { + return; + } + } + CloseableReference closeableReference2 = this.f519b; + Class cls = CloseableReference.j; + if (closeableReference2 != null) { + closeableReference2.close(); + } + this.f519b = CloseableReference.n(closeableReference); + this.a = i; + } + + @Override // b.f.h.a.b.b + public synchronized CloseableReference f(int i) { + return CloseableReference.n(this.f519b); + } + + public final synchronized void g() { + CloseableReference closeableReference = this.f519b; + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + this.f519b = null; + this.a = -1; + } +} diff --git a/app/src/main/java/b/f/h/a/b/d/d.java b/app/src/main/java/b/f/h/a/b/d/d.java new file mode 100644 index 0000000000..f4efcc815d --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/d/d.java @@ -0,0 +1,39 @@ +package b.f.h.a.b.d; + +import android.graphics.Bitmap; +import b.f.h.a.b.b; +import com.facebook.common.references.CloseableReference; +/* compiled from: NoOpCache */ +public class d implements b { + @Override // b.f.h.a.b.b + public CloseableReference a(int i, int i2, int i3) { + return null; + } + + @Override // b.f.h.a.b.b + public void b(int i, CloseableReference closeableReference, int i2) { + } + + @Override // b.f.h.a.b.b + public boolean c(int i) { + return false; + } + + @Override // b.f.h.a.b.b + public void clear() { + } + + @Override // b.f.h.a.b.b + public CloseableReference d(int i) { + return null; + } + + @Override // b.f.h.a.b.b + public void e(int i, CloseableReference closeableReference, int i2) { + } + + @Override // b.f.h.a.b.b + public CloseableReference f(int i) { + return null; + } +} diff --git a/app/src/main/java/b/f/h/a/b/e/a.java b/app/src/main/java/b/f/h/a/b/e/a.java new file mode 100644 index 0000000000..a826dd3a29 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/e/a.java @@ -0,0 +1,4 @@ +package b.f.h.a.b.e; +/* compiled from: BitmapFramePreparationStrategy */ +public interface a { +} diff --git a/app/src/main/java/b/f/h/a/b/e/b.java b/app/src/main/java/b/f/h/a/b/e/b.java new file mode 100644 index 0000000000..1fa22fa2b0 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/e/b.java @@ -0,0 +1,4 @@ +package b.f.h.a.b.e; +/* compiled from: BitmapFramePreparer */ +public interface b { +} diff --git a/app/src/main/java/b/f/h/a/b/e/c.java b/app/src/main/java/b/f/h/a/b/e/c.java new file mode 100644 index 0000000000..1d0aff457e --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/e/c.java @@ -0,0 +1,112 @@ +package b.f.h.a.b.e; + +import android.graphics.Bitmap; +import android.util.SparseArray; +import b.f.h.a.b.b; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +import java.util.concurrent.ExecutorService; +/* compiled from: DefaultBitmapFramePreparer */ +public class c implements b { + public final PlatformBitmapFactory a; + + /* renamed from: b reason: collision with root package name */ + public final b.f.h.a.b.c f520b; + public final Bitmap.Config c; + public final ExecutorService d; + public final SparseArray e = new SparseArray<>(); + + /* compiled from: DefaultBitmapFramePreparer */ + public class a implements Runnable { + public final b j; + public final b.f.h.a.a.a k; + public final int l; + public final int m; + + public a(b.f.h.a.a.a aVar, b bVar, int i, int i2) { + this.k = aVar; + this.j = bVar; + this.l = i; + this.m = i2; + } + + public final boolean a(int i, int i2) { + CloseableReference closeableReference; + int i3 = 2; + CloseableReference closeableReference2 = null; + if (i2 == 1) { + closeableReference = this.j.a(i, this.k.i(), this.k.g()); + } else if (i2 != 2) { + Class cls = CloseableReference.j; + return false; + } else { + try { + closeableReference = c.this.a.a(this.k.i(), this.k.g(), c.this.c); + i3 = -1; + } catch (RuntimeException e) { + b.f.d.e.a.l(c.class, "Failed to create frame bitmap", e); + Class cls2 = CloseableReference.j; + return false; + } catch (Throwable th) { + Class cls3 = CloseableReference.j; + if (0 != 0) { + closeableReference2.close(); + } + throw th; + } + } + boolean b2 = b(i, closeableReference, i2); + if (closeableReference != null) { + closeableReference.close(); + } + return (b2 || i3 == -1) ? b2 : a(i, i3); + } + + public final boolean b(int i, CloseableReference closeableReference, int i2) { + if (!CloseableReference.y(closeableReference)) { + return false; + } + if (!((b.f.h.a.b.f.b) c.this.f520b).a(i, closeableReference.u())) { + return false; + } + int i3 = b.f.d.e.a.a; + synchronized (c.this.e) { + this.j.b(this.l, closeableReference, i2); + } + return true; + } + + @Override // java.lang.Runnable + public void run() { + try { + if (this.j.c(this.l)) { + int i = b.f.d.e.a.a; + synchronized (c.this.e) { + c.this.e.remove(this.m); + } + return; + } + if (a(this.l, 1)) { + int i2 = b.f.d.e.a.a; + } else { + b.f.d.e.a.c(c.class, "Could not prepare frame %d.", Integer.valueOf(this.l)); + } + synchronized (c.this.e) { + c.this.e.remove(this.m); + } + } catch (Throwable th) { + synchronized (c.this.e) { + c.this.e.remove(this.m); + throw th; + } + } + } + } + + public c(PlatformBitmapFactory platformBitmapFactory, b.f.h.a.b.c cVar, Bitmap.Config config, ExecutorService executorService) { + this.a = platformBitmapFactory; + this.f520b = cVar; + this.c = config; + this.d = executorService; + } +} diff --git a/app/src/main/java/b/f/h/a/b/e/d.java b/app/src/main/java/b/f/h/a/b/e/d.java new file mode 100644 index 0000000000..a4fb5fd3f4 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/e/d.java @@ -0,0 +1,13 @@ +package b.f.h.a.b.e; +/* compiled from: FixedNumberBitmapFramePreparationStrategy */ +public class d implements a { + public final int a; + + public d() { + this.a = 3; + } + + public d(int i) { + this.a = i; + } +} diff --git a/app/src/main/java/b/f/h/a/b/f/a.java b/app/src/main/java/b/f/h/a/b/f/a.java new file mode 100644 index 0000000000..c678f299d0 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/f/a.java @@ -0,0 +1,26 @@ +package b.f.h.a.b.f; + +import b.f.h.a.a.d; +/* compiled from: AnimatedDrawableBackendAnimationInformation */ +public class a implements d { + public final b.f.j.a.a.a a; + + public a(b.f.j.a.a.a aVar) { + this.a = aVar; + } + + @Override // b.f.h.a.a.d + public int a() { + return ((b.f.j.a.c.a) this.a).b(); + } + + @Override // b.f.h.a.a.d + public int b() { + return ((b.f.j.a.c.a) this.a).c.b(); + } + + @Override // b.f.h.a.a.d + public int e(int i) { + return ((b.f.j.a.c.a) this.a).e[i]; + } +} diff --git a/app/src/main/java/b/f/h/a/b/f/b.java b/app/src/main/java/b/f/h/a/b/f/b.java new file mode 100644 index 0000000000..20f641a8a5 --- /dev/null +++ b/app/src/main/java/b/f/h/a/b/f/b.java @@ -0,0 +1,48 @@ +package b.f.h.a.b.f; + +import android.graphics.Bitmap; +import b.f.h.a.b.c; +import b.f.j.a.c.d; +import com.facebook.common.references.CloseableReference; +/* compiled from: AnimatedDrawableBackendFrameRenderer */ +public class b implements c { + public final b.f.h.a.b.b a; + + /* renamed from: b reason: collision with root package name */ + public b.f.j.a.a.a f521b; + public d c; + public final d.a d; + + /* compiled from: AnimatedDrawableBackendFrameRenderer */ + public class a implements d.a { + public a() { + } + + @Override // b.f.j.a.c.d.a + public void a(int i, Bitmap bitmap) { + } + + @Override // b.f.j.a.c.d.a + public CloseableReference b(int i) { + return b.this.a.d(i); + } + } + + public b(b.f.h.a.b.b bVar, b.f.j.a.a.a aVar) { + a aVar2 = new a(); + this.d = aVar2; + this.a = bVar; + this.f521b = aVar; + this.c = new d(aVar, aVar2); + } + + public boolean a(int i, Bitmap bitmap) { + try { + this.c.d(i, bitmap); + return true; + } catch (IllegalStateException e) { + b.f.d.e.a.d(b.class, e, "Rendering of frame unsuccessful. Frame number: %d", Integer.valueOf(i)); + return false; + } + } +} diff --git a/app/src/main/java/b/f/h/a/c/a.java b/app/src/main/java/b/f/h/a/c/a.java new file mode 100644 index 0000000000..28e5d54fe6 --- /dev/null +++ b/app/src/main/java/b/f/h/a/c/a.java @@ -0,0 +1,239 @@ +package b.f.h.a.c; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Rect; +import android.graphics.drawable.Animatable; +import android.graphics.drawable.Drawable; +import android.os.SystemClock; +import b.f.g.e.e; +import java.util.Objects; +/* compiled from: AnimatedDrawable2 */ +public class a extends Drawable implements Animatable, b.f.f.a.a { + public static final Class j = a.class; + public static final b k = new b(); + public b.f.h.a.a.a l; + public b.f.h.a.e.a m; + public volatile boolean n; + public long o; + public long p; + public long q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public long f522s; + public long t; + public int u; + public long v; + public int w; + + /* renamed from: x reason: collision with root package name */ + public volatile b f523x; + + /* renamed from: y reason: collision with root package name */ + public e f524y; + + /* renamed from: z reason: collision with root package name */ + public final Runnable f525z; + + /* compiled from: AnimatedDrawable2 */ + /* renamed from: b.f.h.a.c.a$a reason: collision with other inner class name */ + public class RunnableC0061a implements Runnable { + public RunnableC0061a() { + } + + @Override // java.lang.Runnable + public void run() { + a aVar = a.this; + aVar.unscheduleSelf(aVar.f525z); + a.this.invalidateSelf(); + } + } + + public a() { + this(null); + } + + public a(b.f.h.a.a.a aVar) { + this.v = 8; + this.f523x = k; + this.f525z = new RunnableC0061a(); + this.l = aVar; + this.m = aVar == null ? null : new b.f.h.a.e.a(aVar); + } + + @Override // b.f.f.a.a + public void a() { + b.f.h.a.a.a aVar = this.l; + if (aVar != null) { + aVar.clear(); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:52:0x00f4 */ + /* JADX WARNING: Removed duplicated region for block: B:53:0x0104 */ + @Override // android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + long j2; + if (!(this.l == null || this.m == null)) { + long uptimeMillis = SystemClock.uptimeMillis(); + long max = this.n ? (uptimeMillis - this.o) + 0 : Math.max(this.p, 0L); + b.f.h.a.e.a aVar = this.m; + long b2 = aVar.b(); + boolean z2 = true; + int a = b2 == 0 ? aVar.a(0) : ((aVar.a.b() == 0) || max / b2 < ((long) aVar.a.b())) ? aVar.a(max % b2) : -1; + if (a == -1) { + a = this.l.a() - 1; + Objects.requireNonNull(this.f523x); + this.n = false; + } else if (a == 0 && this.r != -1 && uptimeMillis >= this.q) { + Objects.requireNonNull(this.f523x); + } + boolean j3 = this.l.j(this, canvas, a); + if (j3) { + Objects.requireNonNull(this.f523x); + this.r = a; + } + if (!j3) { + this.w++; + b.f.d.e.a.h(2); + } + long uptimeMillis2 = SystemClock.uptimeMillis(); + if (this.n) { + b.f.h.a.e.a aVar2 = this.m; + long j4 = uptimeMillis2 - this.o; + long b3 = aVar2.b(); + if (b3 != 0) { + if (aVar2.a.b() != 0) { + z2 = false; + } + if (z2 || j4 / aVar2.b() < ((long) aVar2.a.b())) { + long j5 = j4 % b3; + int a2 = aVar2.a.a(); + long j6 = 0; + for (int i = 0; i < a2 && j6 <= j5; i++) { + j6 += (long) aVar2.a.e(i); + } + j2 = (j6 - j5) + j4; + if (j2 == -1) { + long j7 = this.o + j2 + this.v; + this.q = j7; + scheduleSelf(this.f525z, j7); + } else { + Objects.requireNonNull(this.f523x); + this.n = false; + } + } + } + j2 = -1; + if (j2 == -1) { + } + } + this.p = max; + } + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicHeight() { + b.f.h.a.a.a aVar = this.l; + return aVar == null ? super.getIntrinsicHeight() : aVar.g(); + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicWidth() { + b.f.h.a.a.a aVar = this.l; + return aVar == null ? super.getIntrinsicWidth() : aVar.i(); + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + return -3; + } + + @Override // android.graphics.drawable.Animatable + public boolean isRunning() { + return this.n; + } + + @Override // android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + super.onBoundsChange(rect); + b.f.h.a.a.a aVar = this.l; + if (aVar != null) { + aVar.h(rect); + } + } + + @Override // android.graphics.drawable.Drawable + public boolean onLevelChange(int i) { + if (this.n) { + return false; + } + long j2 = (long) i; + if (this.p == j2) { + return false; + } + this.p = j2; + invalidateSelf(); + return true; + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + if (this.f524y == null) { + this.f524y = new e(); + } + this.f524y.a = i; + b.f.h.a.a.a aVar = this.l; + if (aVar != null) { + aVar.f(i); + } + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(ColorFilter colorFilter) { + if (this.f524y == null) { + this.f524y = new e(); + } + e eVar = this.f524y; + eVar.c = colorFilter; + eVar.f497b = true; + b.f.h.a.a.a aVar = this.l; + if (aVar != null) { + aVar.d(colorFilter); + } + } + + @Override // android.graphics.drawable.Animatable + public void start() { + b.f.h.a.a.a aVar; + if (!this.n && (aVar = this.l) != null && aVar.a() > 1) { + this.n = true; + long uptimeMillis = SystemClock.uptimeMillis(); + long j2 = uptimeMillis - this.f522s; + this.o = j2; + this.q = j2; + this.p = uptimeMillis - this.t; + this.r = this.u; + invalidateSelf(); + Objects.requireNonNull(this.f523x); + } + } + + @Override // android.graphics.drawable.Animatable + public void stop() { + if (this.n) { + long uptimeMillis = SystemClock.uptimeMillis(); + this.f522s = uptimeMillis - this.o; + this.t = uptimeMillis - this.p; + this.u = this.r; + this.n = false; + this.o = 0; + this.q = 0; + this.p = -1; + this.r = -1; + unscheduleSelf(this.f525z); + Objects.requireNonNull(this.f523x); + } + } +} diff --git a/app/src/main/java/b/f/h/a/c/b.java b/app/src/main/java/b/f/h/a/c/b.java new file mode 100644 index 0000000000..6518dfd23a --- /dev/null +++ b/app/src/main/java/b/f/h/a/c/b.java @@ -0,0 +1,4 @@ +package b.f.h.a.c; +/* compiled from: BaseAnimationListener */ +public class b { +} diff --git a/app/src/main/java/b/f/h/a/d/a.java b/app/src/main/java/b/f/h/a/d/a.java new file mode 100644 index 0000000000..b98c0265be --- /dev/null +++ b/app/src/main/java/b/f/h/a/d/a.java @@ -0,0 +1,15 @@ +package b.f.h.a.d; + +import com.facebook.common.internal.Supplier; +import com.facebook.fresco.animation.factory.AnimatedFactoryV2Impl; +/* compiled from: AnimatedFactoryV2Impl */ +public class a implements Supplier { + public a(AnimatedFactoryV2Impl animatedFactoryV2Impl) { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // com.facebook.common.internal.Supplier + public Integer get() { + return 2; + } +} diff --git a/app/src/main/java/b/f/h/a/d/b.java b/app/src/main/java/b/f/h/a/d/b.java new file mode 100644 index 0000000000..976d34ba94 --- /dev/null +++ b/app/src/main/java/b/f/h/a/d/b.java @@ -0,0 +1,15 @@ +package b.f.h.a.d; + +import com.facebook.common.internal.Supplier; +import com.facebook.fresco.animation.factory.AnimatedFactoryV2Impl; +/* compiled from: AnimatedFactoryV2Impl */ +public class b implements Supplier { + public b(AnimatedFactoryV2Impl animatedFactoryV2Impl) { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // com.facebook.common.internal.Supplier + public Integer get() { + return 3; + } +} diff --git a/app/src/main/java/b/f/h/a/d/c.java b/app/src/main/java/b/f/h/a/d/c.java new file mode 100644 index 0000000000..8a482b31be --- /dev/null +++ b/app/src/main/java/b/f/h/a/d/c.java @@ -0,0 +1,24 @@ +package b.f.h.a.d; + +import android.graphics.Rect; +import b.f.j.a.a.a; +import b.f.j.a.a.e; +import b.f.j.a.c.b; +import com.facebook.fresco.animation.factory.AnimatedFactoryV2Impl; +/* compiled from: AnimatedFactoryV2Impl */ +public class c implements b { + public final /* synthetic */ AnimatedFactoryV2Impl a; + + public c(AnimatedFactoryV2Impl animatedFactoryV2Impl) { + this.a = animatedFactoryV2Impl; + } + + @Override // b.f.j.a.c.b + public a a(e eVar, Rect rect) { + AnimatedFactoryV2Impl animatedFactoryV2Impl = this.a; + if (animatedFactoryV2Impl.g == null) { + animatedFactoryV2Impl.g = new b.f.j.a.d.a(); + } + return new b.f.j.a.c.a(animatedFactoryV2Impl.g, eVar, rect, animatedFactoryV2Impl.d); + } +} diff --git a/app/src/main/java/b/f/h/a/d/d.java b/app/src/main/java/b/f/h/a/d/d.java new file mode 100644 index 0000000000..1192dbd4d5 --- /dev/null +++ b/app/src/main/java/b/f/h/a/d/d.java @@ -0,0 +1,24 @@ +package b.f.h.a.d; + +import android.graphics.Rect; +import b.f.j.a.a.a; +import b.f.j.a.a.e; +import b.f.j.a.c.b; +import com.facebook.fresco.animation.factory.AnimatedFactoryV2Impl; +/* compiled from: AnimatedFactoryV2Impl */ +public class d implements b { + public final /* synthetic */ AnimatedFactoryV2Impl a; + + public d(AnimatedFactoryV2Impl animatedFactoryV2Impl) { + this.a = animatedFactoryV2Impl; + } + + @Override // b.f.j.a.c.b + public a a(e eVar, Rect rect) { + AnimatedFactoryV2Impl animatedFactoryV2Impl = this.a; + if (animatedFactoryV2Impl.g == null) { + animatedFactoryV2Impl.g = new b.f.j.a.d.a(); + } + return new b.f.j.a.c.a(animatedFactoryV2Impl.g, eVar, rect, animatedFactoryV2Impl.d); + } +} diff --git a/app/src/main/java/b/f/h/a/d/e.java b/app/src/main/java/b/f/h/a/d/e.java new file mode 100644 index 0000000000..0e03a6bef2 --- /dev/null +++ b/app/src/main/java/b/f/h/a/d/e.java @@ -0,0 +1,89 @@ +package b.f.h.a.d; + +import android.graphics.Bitmap; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import b.f.h.a.b.e.d; +import b.f.j.a.c.b; +import b.f.j.c.m; +import b.f.j.i.a; +import b.f.j.j.c; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.internal.Supplier; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.ScheduledExecutorService; +/* compiled from: ExperimentalBitmapAnimationDrawableFactory */ +public class e implements a { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final ScheduledExecutorService f526b; + public final ExecutorService c; + public final b.f.d.k.b d; + public final PlatformBitmapFactory e; + public final m f; + public final Supplier g; + public final Supplier h; + + public e(b bVar, ScheduledExecutorService scheduledExecutorService, ExecutorService executorService, b.f.d.k.b bVar2, PlatformBitmapFactory platformBitmapFactory, m mVar, Supplier supplier, Supplier supplier2) { + this.a = bVar; + this.f526b = scheduledExecutorService; + this.c = executorService; + this.d = bVar2; + this.e = platformBitmapFactory; + this.f = mVar; + this.g = supplier; + this.h = supplier2; + } + + @Override // b.f.j.i.a + public boolean a(c cVar) { + return cVar instanceof b.f.j.j.a; + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x0080 */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x0093 */ + @Override // b.f.j.i.a + public Drawable b(c cVar) { + b.f.j.a.a.e eVar; + b.f.h.a.b.b bVar; + int intValue; + b.f.h.a.b.e.c cVar2; + d dVar; + b.f.h.a.b.d.b bVar2; + b.f.j.j.a aVar = (b.f.j.j.a) cVar; + synchronized (aVar) { + eVar = aVar.l; + } + b.f.j.a.a.c cVar3 = eVar.a; + b.f.j.a.a.a a = this.a.a(eVar, new Rect(0, 0, cVar3.getWidth(), cVar3.getHeight())); + int intValue2 = this.g.get().intValue(); + if (intValue2 == 1) { + bVar2 = new b.f.h.a.b.d.b(new b.f.j.a.c.c(new b.f.h.a.b.d.a(eVar.hashCode()), this.f), true); + } else if (intValue2 != 2) { + bVar = intValue2 != 3 ? new b.f.h.a.b.d.d() : new b.f.h.a.b.d.c(); + b.f.h.a.b.f.b bVar3 = new b.f.h.a.b.f.b(bVar, a); + intValue = this.h.get().intValue(); + if (intValue <= 0) { + d dVar2 = new d(intValue); + cVar2 = new b.f.h.a.b.e.c(this.e, bVar3, Bitmap.Config.ARGB_8888, this.c); + dVar = dVar2; + } else { + dVar = null; + cVar2 = null; + } + b.f.h.a.b.a aVar2 = new b.f.h.a.b.a(this.e, bVar, new b.f.h.a.b.f.a(a), bVar3, dVar, cVar2); + return new b.f.h.a.c.a(new b.f.h.a.a.c(aVar2, aVar2, this.d, this.f526b)); + } else { + bVar2 = new b.f.h.a.b.d.b(new b.f.j.a.c.c(new b.f.h.a.b.d.a(eVar.hashCode()), this.f), false); + } + bVar = bVar2; + b.f.h.a.b.f.b bVar3 = new b.f.h.a.b.f.b(bVar, a); + intValue = this.h.get().intValue(); + if (intValue <= 0) { + } + b.f.h.a.b.a aVar2 = new b.f.h.a.b.a(this.e, bVar, new b.f.h.a.b.f.a(a), bVar3, dVar, cVar2); + return new b.f.h.a.c.a(new b.f.h.a.a.c(aVar2, aVar2, this.d, this.f526b)); + } +} diff --git a/app/src/main/java/b/f/h/a/e/a.java b/app/src/main/java/b/f/h/a/e/a.java new file mode 100644 index 0000000000..746b042b65 --- /dev/null +++ b/app/src/main/java/b/f/h/a/e/a.java @@ -0,0 +1,39 @@ +package b.f.h.a.e; + +import androidx.annotation.VisibleForTesting; +import b.f.h.a.a.d; +/* compiled from: DropFramesFrameScheduler */ +public class a { + public final d a; + + /* renamed from: b reason: collision with root package name */ + public long f527b = -1; + + public a(d dVar) { + this.a = dVar; + } + + @VisibleForTesting + public int a(long j) { + int i = 0; + long j2 = 0; + do { + j2 += (long) this.a.e(i); + i++; + } while (j >= j2); + return i - 1; + } + + public long b() { + long j = this.f527b; + if (j != -1) { + return j; + } + this.f527b = 0; + int a = this.a.a(); + for (int i = 0; i < a; i++) { + this.f527b += (long) this.a.e(i); + } + return this.f527b; + } +} diff --git a/app/src/main/java/b/f/h/b/a/a.java b/app/src/main/java/b/f/h/b/a/a.java new file mode 100644 index 0000000000..ec8f9c654e --- /dev/null +++ b/app/src/main/java/b/f/h/b/a/a.java @@ -0,0 +1,4 @@ +package b.f.h.b.a; +/* compiled from: BaseControllerListener2 */ +public class a implements b { +} diff --git a/app/src/main/java/b/f/h/b/a/b.java b/app/src/main/java/b/f/h/b/a/b.java new file mode 100644 index 0000000000..ca27b3b6a2 --- /dev/null +++ b/app/src/main/java/b/f/h/b/a/b.java @@ -0,0 +1,25 @@ +package b.f.h.b.a; + +import java.util.Map; +/* compiled from: ControllerListener2 */ +public interface b { + + /* compiled from: ControllerListener2 */ + public static class a { + public Map a; + + /* renamed from: b reason: collision with root package name */ + public Map f528b; + public Map c; + public Map d; + public Object e; + } + + void a(String str, Object obj, a aVar); + + void b(String str, Throwable th, a aVar); + + void c(String str, a aVar); + + void d(String str, INFO info, a aVar); +} diff --git a/app/src/main/java/b/f/h/b/a/c.java b/app/src/main/java/b/f/h/b/a/c.java new file mode 100644 index 0000000000..8e7f7f6f53 --- /dev/null +++ b/app/src/main/java/b/f/h/b/a/c.java @@ -0,0 +1,74 @@ +package b.f.h.b.a; + +import android.util.Log; +import b.f.h.b.a.b; +import java.util.ArrayList; +import java.util.List; +/* compiled from: ForwardingControllerListener2 */ +public class c extends a { + public final List> a = new ArrayList(2); + + @Override // b.f.h.b.a.b + public void a(String str, Object obj, b.a aVar) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + b bVar = this.a.get(i); + if (bVar != null) { + bVar.a(str, obj, aVar); + } + } catch (Exception e) { + e("ForwardingControllerListener2 exception in onSubmit", e); + } + } + } + + @Override // b.f.h.b.a.b + public void b(String str, Throwable th, b.a aVar) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + b bVar = this.a.get(i); + if (bVar != null) { + bVar.b(str, th, aVar); + } + } catch (Exception e) { + e("ForwardingControllerListener2 exception in onFailure", e); + } + } + } + + @Override // b.f.h.b.a.b + public void c(String str, b.a aVar) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + b bVar = this.a.get(i); + if (bVar != null) { + bVar.c(str, aVar); + } + } catch (Exception e) { + e("ForwardingControllerListener2 exception in onRelease", e); + } + } + } + + @Override // b.f.h.b.a.b + public void d(String str, I i, b.a aVar) { + int size = this.a.size(); + for (int i2 = 0; i2 < size; i2++) { + try { + b bVar = this.a.get(i2); + if (bVar != null) { + bVar.d(str, i, aVar); + } + } catch (Exception e) { + e("ForwardingControllerListener2 exception in onFinalImageSet", e); + } + } + } + + public final synchronized void e(String str, Throwable th) { + Log.e("FwdControllerListener2", str, th); + } +} diff --git a/app/src/main/java/b/f/i/a.java b/app/src/main/java/b/f/i/a.java new file mode 100644 index 0000000000..bbc256ff39 --- /dev/null +++ b/app/src/main/java/b/f/i/a.java @@ -0,0 +1,135 @@ +package b.f.i; + +import androidx.exifinterface.media.ExifInterface; +import b.c.a.a0.d; +import b.f.i.c; +/* compiled from: DefaultImageFormatChecker */ +public class a implements c.a { + public static final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public static final int f529b; + public static final byte[] c; + public static final int d; + public static final byte[] e = d.e("GIF87a"); + public static final byte[] f = d.e("GIF89a"); + public static final byte[] g; + public static final int h; + public static final byte[] i; + public static final int j; + public static final byte[] k = d.e("ftyp"); + public static final byte[][] l = {d.e("heic"), d.e("heix"), d.e("hevc"), d.e("hevx"), d.e("mif1"), d.e("msf1")}; + public static final byte[] m; + public static final byte[] n = {77, 77, 0, ExifInterface.START_CODE}; + public static final int o; + public final int p; + + static { + byte[] bArr = {-1, -40, -1}; + a = bArr; + f529b = bArr.length; + byte[] bArr2 = {-119, 80, 78, 71, 13, 10, 26, 10}; + c = bArr2; + d = bArr2.length; + byte[] e2 = d.e("BM"); + g = e2; + h = e2.length; + byte[] bArr3 = {0, 0, 1, 0}; + i = bArr3; + j = bArr3.length; + byte[] bArr4 = {73, 73, ExifInterface.START_CODE, 0}; + m = bArr4; + o = bArr4.length; + } + + public a() { + int[] iArr = {21, 20, f529b, d, 6, h, j, 12}; + d.i(true); + int i2 = iArr[0]; + for (int i3 = 1; i3 < 8; i3++) { + if (iArr[i3] > i2) { + i2 = iArr[i3]; + } + } + this.p = i2; + } + + @Override // b.f.i.c.a + public int a() { + return this.p; + } + + /* JADX WARNING: Removed duplicated region for block: B:92:0x0105 */ + /* JADX WARNING: Removed duplicated region for block: B:94:0x0108 */ + @Override // b.f.i.c.a + public final c b(byte[] bArr, int i2) { + boolean z2; + boolean z3 = false; + if (b.f.d.m.c.b(bArr, 0, i2)) { + d.i(Boolean.valueOf(b.f.d.m.c.b(bArr, 0, i2))); + if (b.f.d.m.c.d(bArr, 12, b.f.d.m.c.e)) { + return b.f; + } + if (b.f.d.m.c.d(bArr, 12, b.f.d.m.c.f)) { + return b.g; + } + if (!(i2 >= 21 && b.f.d.m.c.d(bArr, 12, b.f.d.m.c.g))) { + return c.a; + } + byte[] bArr2 = b.f.d.m.c.g; + if (b.f.d.m.c.d(bArr, 12, bArr2) && ((bArr[20] & 2) == 2)) { + return b.j; + } + boolean d2 = b.f.d.m.c.d(bArr, 12, bArr2); + boolean z4 = (bArr[20] & 16) == 16; + if (d2 && z4) { + z3 = true; + } + return z3 ? b.i : b.h; + } + byte[] bArr3 = a; + if (i2 >= bArr3.length && d.H0(bArr, bArr3, 0)) { + return b.a; + } + byte[] bArr4 = c; + if (i2 >= bArr4.length && d.H0(bArr, bArr4, 0)) { + return b.f530b; + } + if (i2 >= 6 && (d.H0(bArr, e, 0) || d.H0(bArr, f, 0))) { + return b.c; + } + byte[] bArr5 = g; + if (i2 < bArr5.length ? false : d.H0(bArr, bArr5, 0)) { + return b.d; + } + byte[] bArr6 = i; + if (i2 < bArr6.length ? false : d.H0(bArr, bArr6, 0)) { + return b.e; + } + if (i2 >= 12 && bArr[3] >= 8 && d.H0(bArr, k, 4)) { + byte[][] bArr7 = l; + int length = bArr7.length; + int i3 = 0; + while (true) { + if (i3 >= length) { + break; + } else if (d.H0(bArr, bArr7[i3], 8)) { + z2 = true; + break; + } else { + i3++; + } + } + if (!z2) { + return b.k; + } + if (i2 >= o && (d.H0(bArr, m, 0) || d.H0(bArr, n, 0))) { + z3 = true; + } + return z3 ? b.l : c.a; + } + z2 = false; + if (!z2) { + } + } +} diff --git a/app/src/main/java/b/f/i/b.java b/app/src/main/java/b/f/i/b.java new file mode 100644 index 0000000000..2b2118c583 --- /dev/null +++ b/app/src/main/java/b/f/i/b.java @@ -0,0 +1,24 @@ +package b.f.i; + +import com.discord.utilities.icon.IconUtils; +/* compiled from: DefaultImageFormats */ +public final class b { + public static final c a = new c("JPEG", "jpeg"); + + /* renamed from: b reason: collision with root package name */ + public static final c f530b = new c("PNG", "png"); + public static final c c = new c("GIF", IconUtils.ANIMATED_IMAGE_EXTENSION); + public static final c d = new c("BMP", "bmp"); + public static final c e = new c("ICO", "ico"); + public static final c f = new c("WEBP_SIMPLE", "webp"); + public static final c g = new c("WEBP_LOSSLESS", "webp"); + public static final c h = new c("WEBP_EXTENDED", "webp"); + public static final c i = new c("WEBP_EXTENDED_WITH_ALPHA", "webp"); + public static final c j = new c("WEBP_ANIMATED", "webp"); + public static final c k = new c("HEIF", "heif"); + public static final c l = new c("DNG", "dng"); + + public static boolean a(c cVar) { + return cVar == f || cVar == g || cVar == h || cVar == i; + } +} diff --git a/app/src/main/java/b/f/i/c.java b/app/src/main/java/b/f/i/c.java new file mode 100644 index 0000000000..cb24a2b37b --- /dev/null +++ b/app/src/main/java/b/f/i/c.java @@ -0,0 +1,23 @@ +package b.f.i; +/* compiled from: ImageFormat */ +public class c { + public static final c a = new c("UNKNOWN", null); + + /* renamed from: b reason: collision with root package name */ + public final String f531b; + + /* compiled from: ImageFormat */ + public interface a { + int a(); + + c b(byte[] bArr, int i); + } + + public c(String str, String str2) { + this.f531b = str; + } + + public String toString() { + return this.f531b; + } +} diff --git a/app/src/main/java/b/f/i/d.java b/app/src/main/java/b/f/i/d.java new file mode 100644 index 0000000000..788f6a39aa --- /dev/null +++ b/app/src/main/java/b/f/i/d.java @@ -0,0 +1,85 @@ +package b.f.i; + +import b.f.d.d.m; +import b.f.i.c; +import java.io.IOException; +import java.io.InputStream; +import java.util.List; +import java.util.Objects; +/* compiled from: ImageFormatChecker */ +public class d { + public static d a; + + /* renamed from: b reason: collision with root package name */ + public int f532b; + public List c; + public final c.a d = new a(); + + public d() { + d(); + } + + public static c a(InputStream inputStream) throws IOException { + int i; + d c = c(); + Objects.requireNonNull(c); + Objects.requireNonNull(inputStream); + int i2 = c.f532b; + byte[] bArr = new byte[i2]; + b.c.a.a0.d.i(Boolean.valueOf(i2 >= i2)); + if (inputStream.markSupported()) { + try { + inputStream.mark(i2); + i = b.c.a.a0.d.z1(inputStream, bArr, 0, i2); + } finally { + inputStream.reset(); + } + } else { + i = b.c.a.a0.d.z1(inputStream, bArr, 0, i2); + } + c b2 = c.d.b(bArr, i); + if (!(b2 == null || b2 == c.a)) { + return b2; + } + List list = c.c; + if (list != null) { + for (c.a aVar : list) { + c b3 = aVar.b(bArr, i); + if (!(b3 == null || b3 == c.a)) { + return b3; + } + } + } + return c.a; + } + + public static c b(InputStream inputStream) { + try { + return a(inputStream); + } catch (IOException e) { + m.a(e); + throw new RuntimeException(e); + } + } + + public static synchronized d c() { + d dVar; + synchronized (d.class) { + if (a == null) { + a = new d(); + } + dVar = a; + } + return dVar; + } + + public final void d() { + this.f532b = this.d.a(); + List list = this.c; + if (list != null) { + for (c.a aVar : list) { + this.f532b = Math.max(this.f532b, aVar.a()); + } + } + } +} diff --git a/app/src/main/java/b/f/j/a/a/a.java b/app/src/main/java/b/f/j/a/a/a.java new file mode 100644 index 0000000000..b9a38714f1 --- /dev/null +++ b/app/src/main/java/b/f/j/a/a/a.java @@ -0,0 +1,4 @@ +package b.f.j.a.a; +/* compiled from: AnimatedDrawableBackend */ +public interface a { +} diff --git a/app/src/main/java/b/f/j/a/a/b.java b/app/src/main/java/b/f/j/a/a/b.java new file mode 100644 index 0000000000..2e70034f40 --- /dev/null +++ b/app/src/main/java/b/f/j/a/a/b.java @@ -0,0 +1,21 @@ +package b.f.j.a.a; +/* compiled from: AnimatedDrawableFrameInfo */ +public class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f533b; + public final int c; + public final int d; + public final int e; + public final int f; + + public b(int i, int i2, int i3, int i4, int i5, int i6, int i7) { + this.a = i2; + this.f533b = i3; + this.c = i4; + this.d = i5; + this.e = i6; + this.f = i7; + } +} diff --git a/app/src/main/java/b/f/j/a/a/c.java b/app/src/main/java/b/f/j/a/a/c.java new file mode 100644 index 0000000000..7a53504dd3 --- /dev/null +++ b/app/src/main/java/b/f/j/a/a/c.java @@ -0,0 +1,21 @@ +package b.f.j.a.a; +/* compiled from: AnimatedImage */ +public interface c { + int a(); + + int b(); + + d d(int i); + + boolean e(); + + b f(int i); + + int getHeight(); + + int getWidth(); + + int[] h(); + + int i(); +} diff --git a/app/src/main/java/b/f/j/a/a/d.java b/app/src/main/java/b/f/j/a/a/d.java new file mode 100644 index 0000000000..0bc80db010 --- /dev/null +++ b/app/src/main/java/b/f/j/a/a/d.java @@ -0,0 +1,17 @@ +package b.f.j.a.a; + +import android.graphics.Bitmap; +/* compiled from: AnimatedImageFrame */ +public interface d { + void a(int i, int i2, Bitmap bitmap); + + int b(); + + int c(); + + void dispose(); + + int getHeight(); + + int getWidth(); +} diff --git a/app/src/main/java/b/f/j/a/a/e.java b/app/src/main/java/b/f/j/a/a/e.java new file mode 100644 index 0000000000..ef15c3a757 --- /dev/null +++ b/app/src/main/java/b/f/j/a/a/e.java @@ -0,0 +1,25 @@ +package b.f.j.a.a; + +import android.graphics.Bitmap; +import b.f.j.t.a; +import com.facebook.common.references.CloseableReference; +import java.util.List; +import java.util.Objects; +/* compiled from: AnimatedImageResult */ +public class e { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public CloseableReference f534b; + public List> c; + public a d; + + public e(f fVar) { + c cVar = fVar.a; + Objects.requireNonNull(cVar); + this.a = cVar; + this.f534b = CloseableReference.n(fVar.f535b); + this.c = CloseableReference.q(fVar.c); + this.d = fVar.e; + } +} diff --git a/app/src/main/java/b/f/j/a/a/f.java b/app/src/main/java/b/f/j/a/a/f.java new file mode 100644 index 0000000000..a6b434f2d8 --- /dev/null +++ b/app/src/main/java/b/f/j/a/a/f.java @@ -0,0 +1,44 @@ +package b.f.j.a.a; + +import android.graphics.Bitmap; +import b.f.j.t.a; +import com.facebook.common.references.CloseableReference; +import java.util.List; +/* compiled from: AnimatedImageResultBuilder */ +public class f { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public CloseableReference f535b; + public List> c; + public int d; + public a e; + + public f(c cVar) { + this.a = cVar; + } + + public e a() { + try { + e eVar = new e(this); + CloseableReference closeableReference = this.f535b; + if (closeableReference != null) { + closeableReference.close(); + } + this.f535b = null; + CloseableReference.t(this.c); + this.c = null; + return eVar; + } catch (Throwable th) { + CloseableReference closeableReference2 = this.f535b; + Class cls = CloseableReference.j; + if (closeableReference2 != null) { + closeableReference2.close(); + } + this.f535b = null; + CloseableReference.t(this.c); + this.c = null; + throw th; + } + } +} diff --git a/app/src/main/java/b/f/j/a/b/a.java b/app/src/main/java/b/f/j/a/b/a.java new file mode 100644 index 0000000000..e1d493ca9f --- /dev/null +++ b/app/src/main/java/b/f/j/a/b/a.java @@ -0,0 +1,13 @@ +package b.f.j.a.b; + +import android.content.Context; +import android.graphics.Bitmap; +import b.f.j.h.b; +/* compiled from: AnimatedFactory */ +public interface a { + b.f.j.i.a a(Context context); + + b b(Bitmap.Config config); + + b c(Bitmap.Config config); +} diff --git a/app/src/main/java/b/f/j/a/b/b.java b/app/src/main/java/b/f/j/a/b/b.java new file mode 100644 index 0000000000..8ccf07dbd7 --- /dev/null +++ b/app/src/main/java/b/f/j/a/b/b.java @@ -0,0 +1,8 @@ +package b.f.j.a.b; +/* compiled from: AnimatedFactoryProvider */ +public class b { + public static boolean a; + + /* renamed from: b reason: collision with root package name */ + public static a f536b; +} diff --git a/app/src/main/java/b/f/j/a/b/c.java b/app/src/main/java/b/f/j/a/b/c.java new file mode 100644 index 0000000000..7b9f08bd51 --- /dev/null +++ b/app/src/main/java/b/f/j/a/b/c.java @@ -0,0 +1,10 @@ +package b.f.j.a.b; + +import b.f.j.d.b; +import java.nio.ByteBuffer; +/* compiled from: AnimatedImageDecoder */ +public interface c { + b.f.j.a.a.c c(ByteBuffer byteBuffer, b bVar); + + b.f.j.a.a.c g(long j, int i, b bVar); +} diff --git a/app/src/main/java/b/f/j/a/b/d.java b/app/src/main/java/b/f/j/a/b/d.java new file mode 100644 index 0000000000..3d6f89fe8a --- /dev/null +++ b/app/src/main/java/b/f/j/a/b/d.java @@ -0,0 +1,4 @@ +package b.f.j.a.b; +/* compiled from: AnimatedImageFactory */ +public interface d { +} diff --git a/app/src/main/java/b/f/j/a/b/e.java b/app/src/main/java/b/f/j/a/b/e.java new file mode 100644 index 0000000000..6cc8006e7d --- /dev/null +++ b/app/src/main/java/b/f/j/a/b/e.java @@ -0,0 +1,58 @@ +package b.f.j.a.b; + +import android.graphics.Bitmap; +import b.f.j.a.a.f; +import b.f.j.a.c.b; +import b.f.j.j.a; +import b.f.j.j.c; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +import java.util.Objects; +/* compiled from: AnimatedImageFactoryImpl */ +public class e implements d { + public static c a; + + /* renamed from: b reason: collision with root package name */ + public static c f537b; + public final b c; + public final PlatformBitmapFactory d; + + static { + c cVar; + c cVar2 = null; + try { + cVar = (c) Class.forName("com.facebook.animated.gif.GifImage").newInstance(); + } catch (Throwable unused) { + cVar = null; + } + a = cVar; + try { + cVar2 = (c) Class.forName("com.facebook.animated.webp.WebPImage").newInstance(); + } catch (Throwable unused2) { + } + f537b = cVar2; + } + + public e(b bVar, PlatformBitmapFactory platformBitmapFactory) { + this.c = bVar; + this.d = platformBitmapFactory; + } + + public final c a(b.f.j.d.b bVar, b.f.j.a.a.c cVar, Bitmap.Config config) { + try { + Objects.requireNonNull(bVar); + f fVar = new f(cVar); + fVar.f535b = CloseableReference.n(null); + fVar.d = 0; + fVar.c = CloseableReference.q(null); + fVar.e = null; + a aVar = new a(fVar.a()); + CloseableReference.t(null); + return aVar; + } catch (Throwable th) { + Class cls = CloseableReference.j; + CloseableReference.t(null); + throw th; + } + } +} diff --git a/app/src/main/java/b/f/j/a/c/a.java b/app/src/main/java/b/f/j/a/c/a.java new file mode 100644 index 0000000000..729d5f1a81 --- /dev/null +++ b/app/src/main/java/b/f/j/a/c/a.java @@ -0,0 +1,152 @@ +package b.f.j.a.c; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.Rect; +import b.f.j.a.a.b; +import b.f.j.a.a.c; +import b.f.j.a.a.d; +import b.f.j.a.a.e; +import java.util.Objects; +/* compiled from: AnimatedDrawableBackendImpl */ +public class a implements b.f.j.a.a.a { + public final b.f.j.a.d.a a; + + /* renamed from: b reason: collision with root package name */ + public final e f538b; + public final c c; + public final Rect d; + public final int[] e; + public final b[] f; + public final Rect g = new Rect(); + public final Rect h = new Rect(); + public final boolean i; + public Bitmap j; + + public a(b.f.j.a.d.a aVar, e eVar, Rect rect, boolean z2) { + this.a = aVar; + this.f538b = eVar; + c cVar = eVar.a; + this.c = cVar; + int[] h = cVar.h(); + this.e = h; + Objects.requireNonNull(aVar); + for (int i = 0; i < h.length; i++) { + if (h[i] < 11) { + h[i] = 100; + } + } + b.f.j.a.d.a aVar2 = this.a; + int[] iArr = this.e; + Objects.requireNonNull(aVar2); + for (int i2 : iArr) { + } + b.f.j.a.d.a aVar3 = this.a; + int[] iArr2 = this.e; + Objects.requireNonNull(aVar3); + int[] iArr3 = new int[iArr2.length]; + int i3 = 0; + for (int i4 = 0; i4 < iArr2.length; i4++) { + iArr3[i4] = i3; + i3 += iArr2[i4]; + } + this.d = a(this.c, rect); + this.i = z2; + this.f = new b[this.c.a()]; + for (int i5 = 0; i5 < this.c.a(); i5++) { + this.f[i5] = this.c.f(i5); + } + } + + public static Rect a(c cVar, Rect rect) { + return rect == null ? new Rect(0, 0, cVar.getWidth(), cVar.getHeight()) : new Rect(0, 0, Math.min(rect.width(), cVar.getWidth()), Math.min(rect.height(), cVar.getHeight())); + } + + public int b() { + return this.c.a(); + } + + public final synchronized Bitmap c(int i, int i2) { + Bitmap bitmap = this.j; + if (bitmap != null && (bitmap.getWidth() < i || this.j.getHeight() < i2)) { + synchronized (this) { + Bitmap bitmap2 = this.j; + if (bitmap2 != null) { + bitmap2.recycle(); + this.j = null; + } + } + } + if (this.j == null) { + this.j = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888); + } + this.j.eraseColor(0); + return this.j; + } + + public void d(int i, Canvas canvas) { + d d = this.c.d(i); + try { + if (this.c.e()) { + f(canvas, d); + } else { + e(canvas, d); + } + } finally { + d.dispose(); + } + } + + public final void e(Canvas canvas, d dVar) { + int i; + int i2; + int i3; + int i4; + if (this.i) { + float max = Math.max(((float) dVar.getWidth()) / ((float) Math.min(dVar.getWidth(), canvas.getWidth())), ((float) dVar.getHeight()) / ((float) Math.min(dVar.getHeight(), canvas.getHeight()))); + i3 = (int) (((float) dVar.getWidth()) / max); + i2 = (int) (((float) dVar.getHeight()) / max); + i = (int) (((float) dVar.b()) / max); + i4 = (int) (((float) dVar.c()) / max); + } else { + i3 = dVar.getWidth(); + i2 = dVar.getHeight(); + i = dVar.b(); + i4 = dVar.c(); + } + synchronized (this) { + Bitmap c = c(i3, i2); + this.j = c; + dVar.a(i3, i2, c); + canvas.save(); + canvas.translate((float) i, (float) i4); + canvas.drawBitmap(this.j, 0.0f, 0.0f, (Paint) null); + canvas.restore(); + } + } + + public final void f(Canvas canvas, d dVar) { + double width = ((double) this.d.width()) / ((double) this.c.getWidth()); + double height = ((double) this.d.height()) / ((double) this.c.getHeight()); + int round = (int) Math.round(((double) dVar.getWidth()) * width); + int round2 = (int) Math.round(((double) dVar.getHeight()) * height); + int b2 = (int) (((double) dVar.b()) * width); + int c = (int) (((double) dVar.c()) * height); + synchronized (this) { + int width2 = this.d.width(); + int height2 = this.d.height(); + c(width2, height2); + Bitmap bitmap = this.j; + if (bitmap != null) { + dVar.a(round, round2, bitmap); + } + this.g.set(0, 0, width2, height2); + this.h.set(b2, c, width2 + b2, height2 + c); + Bitmap bitmap2 = this.j; + if (bitmap2 != null) { + canvas.drawBitmap(bitmap2, this.g, this.h, (Paint) null); + } + } + } +} diff --git a/app/src/main/java/b/f/j/a/c/b.java b/app/src/main/java/b/f/j/a/c/b.java new file mode 100644 index 0000000000..2476cb1b1e --- /dev/null +++ b/app/src/main/java/b/f/j/a/c/b.java @@ -0,0 +1,9 @@ +package b.f.j.a.c; + +import android.graphics.Rect; +import b.f.j.a.a.a; +import b.f.j.a.a.e; +/* compiled from: AnimatedDrawableBackendProvider */ +public interface b { + a a(e eVar, Rect rect); +} diff --git a/app/src/main/java/b/f/j/a/c/c.java b/app/src/main/java/b/f/j/a/c/c.java new file mode 100644 index 0000000000..dad8c9c223 --- /dev/null +++ b/app/src/main/java/b/f/j/a/c/c.java @@ -0,0 +1,89 @@ +package b.f.j.a.c; + +import androidx.annotation.VisibleForTesting; +import androidx.core.view.PointerIconCompat; +import b.c.a.a0.d; +import b.f.d.d.i; +import b.f.j.c.m; +import com.facebook.cache.common.CacheKey; +import java.util.LinkedHashSet; +/* compiled from: AnimatedFrameCache */ +public class c { + public final CacheKey a; + + /* renamed from: b reason: collision with root package name */ + public final m f539b; + public final m.b c = new a(); + public final LinkedHashSet d = new LinkedHashSet<>(); + + /* compiled from: AnimatedFrameCache */ + public class a implements m.b { + public a() { + } + + public void a(Object obj, boolean z2) { + CacheKey cacheKey = (CacheKey) obj; + c cVar = c.this; + synchronized (cVar) { + if (z2) { + cVar.d.add(cacheKey); + } else { + cVar.d.remove(cacheKey); + } + } + } + } + + /* compiled from: AnimatedFrameCache */ + @VisibleForTesting + public static class b implements CacheKey { + public final CacheKey a; + + /* renamed from: b reason: collision with root package name */ + public final int f540b; + + public b(CacheKey cacheKey, int i) { + this.a = cacheKey; + this.f540b = i; + } + + @Override // com.facebook.cache.common.CacheKey + public boolean a() { + return false; + } + + @Override // com.facebook.cache.common.CacheKey + public String b() { + return null; + } + + @Override // com.facebook.cache.common.CacheKey + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.f540b == bVar.f540b && this.a.equals(bVar.a); + } + + @Override // com.facebook.cache.common.CacheKey + public int hashCode() { + return (this.a.hashCode() * PointerIconCompat.TYPE_ALL_SCROLL) + this.f540b; + } + + public String toString() { + i f2 = d.f2(this); + f2.c("imageCacheKey", this.a); + f2.a("frameIndex", this.f540b); + return f2.toString(); + } + } + + public c(CacheKey cacheKey, m mVar) { + this.a = cacheKey; + this.f539b = mVar; + } +} diff --git a/app/src/main/java/b/f/j/a/c/d.java b/app/src/main/java/b/f/j/a/c/d.java new file mode 100644 index 0000000000..016f3e48cb --- /dev/null +++ b/app/src/main/java/b/f/j/a/c/d.java @@ -0,0 +1,147 @@ +package b.f.j.a.c; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.PorterDuff; +import android.graphics.PorterDuffXfermode; +import b.f.j.a.a.b; +import b.f.j.a.a.e; +import com.facebook.common.references.CloseableReference; +/* compiled from: AnimatedImageCompositor */ +public class d { + public final b.f.j.a.a.a a; + + /* renamed from: b reason: collision with root package name */ + public final a f541b; + public final Paint c; + + /* compiled from: AnimatedImageCompositor */ + public interface a { + void a(int i, Bitmap bitmap); + + CloseableReference b(int i); + } + + public d(b.f.j.a.a.a aVar, a aVar2) { + this.a = aVar; + this.f541b = aVar2; + Paint paint = new Paint(); + this.c = paint; + paint.setColor(0); + paint.setStyle(Paint.Style.FILL); + paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC)); + } + + public final void a(Canvas canvas, b bVar) { + int i = bVar.a; + int i2 = bVar.f533b; + canvas.drawRect((float) i, (float) i2, (float) (i + bVar.c), (float) (i2 + bVar.d), this.c); + } + + public final boolean b(b bVar) { + return bVar.a == 0 && bVar.f533b == 0 && bVar.c == ((a) this.a).d.width() && bVar.d == ((a) this.a).d.height(); + } + + public final boolean c(int i) { + if (i == 0) { + return true; + } + b[] bVarArr = ((a) this.a).f; + b bVar = bVarArr[i]; + b bVar2 = bVarArr[i - 1]; + if (bVar.e != 2 || !b(bVar)) { + return bVar2.f == 2 && b(bVar2); + } + return true; + } + + /* JADX WARNING: Removed duplicated region for block: B:16:0x003c */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x0044 */ + public void d(int i, Bitmap bitmap) { + b.f.j.t.a aVar; + int i2; + int h; + Canvas canvas = new Canvas(bitmap); + int i3 = 0; + canvas.drawColor(0, PorterDuff.Mode.SRC); + if (!c(i)) { + int i4 = i - 1; + while (true) { + if (i4 < 0) { + break; + } + b bVar = ((a) this.a).f[i4]; + int i5 = bVar.f; + if (i5 != 1) { + if (i5 != 2) { + i2 = i5 == 3 ? 3 : 4; + } else if (b(bVar)) { + i2 = 2; + } + h = b.c.a.y.b.h(i2); + if (h == 0) { + if (h != 1) { + if (h == 3) { + break; + } + i4--; + } else { + i3 = i4 + 1; + break; + } + } else { + b bVar2 = ((a) this.a).f[i4]; + CloseableReference b2 = this.f541b.b(i4); + if (b2 != null) { + try { + canvas.drawBitmap(b2.u(), 0.0f, 0.0f, (Paint) null); + if (bVar2.f == 2) { + a(canvas, bVar2); + } + i3 = i4 + 1; + } finally { + b2.close(); + } + } else if (c(i4)) { + break; + } else { + i4--; + } + } + } + i2 = 1; + h = b.c.a.y.b.h(i2); + if (h == 0) { + } + } + i3 = i4; + } else { + i3 = i; + } + while (i3 < i) { + b bVar3 = ((a) this.a).f[i3]; + int i6 = bVar3.f; + if (i6 != 3) { + if (bVar3.e == 2) { + a(canvas, bVar3); + } + ((a) this.a).d(i3, canvas); + this.f541b.a(i3, bitmap); + if (i6 == 2) { + a(canvas, bVar3); + } + } + i3++; + } + b bVar4 = ((a) this.a).f[i]; + if (bVar4.e == 2) { + a(canvas, bVar4); + } + ((a) this.a).d(i, canvas); + e eVar = ((a) this.a).f538b; + if (eVar != null && (aVar = eVar.d) != null) { + aVar.a(bitmap); + } + } +} diff --git a/app/src/main/java/b/f/j/a/d/a.java b/app/src/main/java/b/f/j/a/d/a.java new file mode 100644 index 0000000000..b626505c38 --- /dev/null +++ b/app/src/main/java/b/f/j/a/d/a.java @@ -0,0 +1,4 @@ +package b.f.j.a.d; +/* compiled from: AnimatedDrawableUtil */ +public class a { +} diff --git a/app/src/main/java/b/f/j/b/a.java b/app/src/main/java/b/f/j/b/a.java new file mode 100644 index 0000000000..db224070de --- /dev/null +++ b/app/src/main/java/b/f/j/b/a.java @@ -0,0 +1,28 @@ +package b.f.j.b; + +import android.annotation.TargetApi; +import android.graphics.Bitmap; +import b.f.j.l.d; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +/* compiled from: ArtBitmapFactory */ +@TargetApi(21) +public class a extends PlatformBitmapFactory { + public final d a; + + /* renamed from: b reason: collision with root package name */ + public final b.f.j.e.a f542b; + + public a(d dVar, b.f.j.e.a aVar) { + this.a = dVar; + this.f542b = aVar; + } + + @Override // com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory + public CloseableReference b(int i, int i2, Bitmap.Config config) { + Bitmap bitmap = this.a.get(b.f.k.a.c(i, i2, config)); + b.c.a.a0.d.i(Boolean.valueOf(bitmap.getAllocationByteCount() >= b.f.k.a.b(config) * (i * i2))); + bitmap.reconfigure(i, i2, config); + return CloseableReference.H(bitmap, this.a, this.f542b.a); + } +} diff --git a/app/src/main/java/b/f/j/b/b.java b/app/src/main/java/b/f/j/b/b.java new file mode 100644 index 0000000000..1174dd7781 --- /dev/null +++ b/app/src/main/java/b/f/j/b/b.java @@ -0,0 +1,21 @@ +package b.f.j.b; + +import android.graphics.Bitmap; +import b.f.d.h.f; +/* compiled from: SimpleBitmapReleaser */ +public class b implements f { + public static b a; + + public static b a() { + if (a == null) { + a = new b(); + } + return a; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.d.h.f + public void release(Bitmap bitmap) { + bitmap.recycle(); + } +} diff --git a/app/src/main/java/b/f/j/c/a.java b/app/src/main/java/b/f/j/c/a.java new file mode 100644 index 0000000000..2e0a6d9835 --- /dev/null +++ b/app/src/main/java/b/f/j/c/a.java @@ -0,0 +1,4 @@ +package b.f.j.c; +/* compiled from: BitmapMemoryCacheFactory */ +public interface a { +} diff --git a/app/src/main/java/b/f/j/c/a0.java b/app/src/main/java/b/f/j/c/a0.java new file mode 100644 index 0000000000..b392e47285 --- /dev/null +++ b/app/src/main/java/b/f/j/c/a0.java @@ -0,0 +1,97 @@ +package b.f.j.c; + +import b.c.a.a0.d; +import b.f.d.e.a; +import b.f.j.j.e; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/* compiled from: StagingArea */ +public class a0 { + public Map a = new HashMap(); + + public synchronized e a(CacheKey cacheKey) { + e a; + Objects.requireNonNull(cacheKey); + e eVar = this.a.get(cacheKey); + if (eVar != null) { + synchronized (eVar) { + if (!e.t(eVar)) { + this.a.remove(cacheKey); + a.m(a0.class, "Found closed reference %d for key %s (%d)", Integer.valueOf(System.identityHashCode(eVar)), cacheKey.b(), Integer.valueOf(System.identityHashCode(cacheKey))); + return null; + } + a = e.a(eVar); + } + eVar = a; + } + return eVar; + } + + public synchronized void b(CacheKey cacheKey, e eVar) { + d.i(Boolean.valueOf(e.t(eVar))); + e put = this.a.put(cacheKey, e.a(eVar)); + if (put != null) { + put.close(); + } + synchronized (this) { + this.a.size(); + int i = a.a; + } + } + + public boolean c(CacheKey cacheKey) { + e remove; + Objects.requireNonNull(cacheKey); + synchronized (this) { + remove = this.a.remove(cacheKey); + } + if (remove == null) { + return false; + } + try { + return remove.s(); + } finally { + remove.close(); + } + } + + public synchronized boolean d(CacheKey cacheKey, e eVar) { + Objects.requireNonNull(cacheKey); + Objects.requireNonNull(eVar); + d.i(Boolean.valueOf(e.t(eVar))); + e eVar2 = this.a.get(cacheKey); + if (eVar2 == null) { + return false; + } + CloseableReference c = eVar2.c(); + CloseableReference c2 = eVar.c(); + if (!(c == null || c2 == null)) { + try { + if (c.u() == c2.u()) { + this.a.remove(cacheKey); + synchronized (this) { + this.a.size(); + int i = a.a; + } + return true; + } + } finally { + c2.close(); + c.close(); + eVar2.close(); + } + } + if (c2 != null) { + c2.close(); + } + if (c != null) { + c.close(); + } + eVar2.close(); + return false; + } +} diff --git a/app/src/main/java/b/f/j/c/b.java b/app/src/main/java/b/f/j/c/b.java new file mode 100644 index 0000000000..3dcd5095dd --- /dev/null +++ b/app/src/main/java/b/f/j/c/b.java @@ -0,0 +1,70 @@ +package b.f.j.c; + +import b.c.a.a0.d; +import b.f.j.d.e; +import b.f.j.d.f; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.time.RealtimeSinceBootClock; +import java.util.Objects; +/* compiled from: BitmapMemoryCacheKey */ +public class b implements CacheKey { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final e f543b; + public final f c; + public final b.f.j.d.b d; + public final CacheKey e; + public final String f; + public final int g; + public final Object h; + + public b(String str, e eVar, f fVar, b.f.j.d.b bVar, CacheKey cacheKey, String str2, Object obj) { + Objects.requireNonNull(str); + this.a = str; + this.f543b = eVar; + this.c = fVar; + this.d = bVar; + this.e = cacheKey; + this.f = str2; + Integer valueOf = Integer.valueOf(str.hashCode()); + int i = 0; + Integer valueOf2 = Integer.valueOf(eVar != null ? eVar.hashCode() : 0); + Integer valueOf3 = Integer.valueOf(fVar.hashCode()); + int hashCode = valueOf == null ? 0 : valueOf.hashCode(); + int hashCode2 = valueOf2 == null ? 0 : valueOf2.hashCode(); + int hashCode3 = valueOf3 == null ? 0 : valueOf3.hashCode(); + int hashCode4 = bVar == null ? 0 : bVar.hashCode(); + this.g = ((((((((((hashCode + 31) * 31) + hashCode2) * 31) + hashCode3) * 31) + hashCode4) * 31) + (cacheKey == null ? 0 : cacheKey.hashCode())) * 31) + (str2 != null ? str2.hashCode() : i); + this.h = obj; + RealtimeSinceBootClock.get().now(); + } + + @Override // com.facebook.cache.common.CacheKey + public boolean a() { + return false; + } + + @Override // com.facebook.cache.common.CacheKey + public String b() { + return this.a; + } + + @Override // com.facebook.cache.common.CacheKey + public boolean equals(Object obj) { + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.g == bVar.g && this.a.equals(bVar.a) && d.f0(this.f543b, bVar.f543b) && d.f0(this.c, bVar.c) && d.f0(this.d, bVar.d) && d.f0(this.e, bVar.e) && d.f0(this.f, bVar.f); + } + + @Override // com.facebook.cache.common.CacheKey + public int hashCode() { + return this.g; + } + + public String toString() { + return String.format(null, "%s_%s_%s_%s_%s_%s_%d", this.a, this.f543b, this.c, this.d, this.e, this.f, Integer.valueOf(this.g)); + } +} diff --git a/app/src/main/java/b/f/j/c/b0.java b/app/src/main/java/b/f/j/c/b0.java new file mode 100644 index 0000000000..b65dc2c769 --- /dev/null +++ b/app/src/main/java/b/f/j/c/b0.java @@ -0,0 +1,5 @@ +package b.f.j.c; +/* compiled from: ValueDescriptor */ +public interface b0 { + int a(V v); +} diff --git a/app/src/main/java/b/f/j/c/c.java b/app/src/main/java/b/f/j/c/c.java new file mode 100644 index 0000000000..dbe750b6ef --- /dev/null +++ b/app/src/main/java/b/f/j/c/c.java @@ -0,0 +1,6 @@ +package b.f.j.c; + +import b.f.j.c.w; +/* compiled from: BitmapMemoryCacheTrimStrategy */ +public class c implements w.a { +} diff --git a/app/src/main/java/b/f/j/c/d.java b/app/src/main/java/b/f/j/c/d.java new file mode 100644 index 0000000000..59e722f8b9 --- /dev/null +++ b/app/src/main/java/b/f/j/c/d.java @@ -0,0 +1,28 @@ +package b.f.j.c; + +import java.util.LinkedHashSet; +/* compiled from: BoundedLinkedHashSet */ +public class d { + public int a; + + /* renamed from: b reason: collision with root package name */ + public LinkedHashSet f544b; + + public d(int i) { + this.f544b = new LinkedHashSet<>(i); + this.a = i; + } + + public synchronized boolean a(E e) { + if (this.f544b.size() == this.a) { + LinkedHashSet linkedHashSet = this.f544b; + linkedHashSet.remove(linkedHashSet.iterator().next()); + } + this.f544b.remove(e); + return this.f544b.add(e); + } + + public synchronized boolean b(E e) { + return this.f544b.contains(e); + } +} diff --git a/app/src/main/java/b/f/j/c/e.java b/app/src/main/java/b/f/j/c/e.java new file mode 100644 index 0000000000..6941e8d14a --- /dev/null +++ b/app/src/main/java/b/f/j/c/e.java @@ -0,0 +1,62 @@ +package b.f.j.c; + +import b.f.d.e.a; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.concurrent.CancellationException; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: BufferedDiskCache */ +public class e implements Callable { + public final /* synthetic */ AtomicBoolean j; + public final /* synthetic */ CacheKey k; + public final /* synthetic */ f l; + + public e(f fVar, Object obj, AtomicBoolean atomicBoolean, CacheKey cacheKey) { + this.l = fVar; + this.j = atomicBoolean; + this.k = cacheKey; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public b.f.j.j.e call() throws Exception { + if (!this.j.get()) { + b.f.j.j.e a = this.l.f.a(this.k); + if (a != null) { + this.k.b(); + int i = a.a; + Objects.requireNonNull((z) this.l.g); + } else { + this.k.b(); + int i2 = a.a; + Objects.requireNonNull((z) this.l.g); + a = null; + try { + PooledByteBuffer a2 = f.a(this.l, this.k); + if (a2 == null) { + return a; + } + CloseableReference A = CloseableReference.A(a2); + try { + a = new b.f.j.j.e(A); + } finally { + if (A != null) { + A.close(); + } + } + } catch (Exception unused) { + } + } + if (Thread.interrupted()) { + a.i(f.class, "Host thread was interrupted, decreasing reference count"); + a.close(); + throw new InterruptedException(); + } + return a; + } + throw new CancellationException(); + } +} diff --git a/app/src/main/java/b/f/j/c/f.java b/app/src/main/java/b/f/j/c/f.java new file mode 100644 index 0000000000..0f3f0cef08 --- /dev/null +++ b/app/src/main/java/b/f/j/c/f.java @@ -0,0 +1,215 @@ +package b.f.j.c; + +import b.f.b.b.d; +import b.f.b.b.h; +import b.f.b.b.i; +import b.f.d.g.g; +import b.f.d.g.j; +import b.f.j.j.e; +import b.f.j.r.b; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.memory.PooledByteBuffer; +import java.io.FileInputStream; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.Executor; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: BufferedDiskCache */ +public class f { + public final h a; + + /* renamed from: b reason: collision with root package name */ + public final g f545b; + public final j c; + public final Executor d; + public final Executor e; + public final a0 f = new a0(); + public final r g; + + /* compiled from: BufferedDiskCache */ + public class a implements Runnable { + public final /* synthetic */ CacheKey j; + public final /* synthetic */ e k; + + public a(Object obj, CacheKey cacheKey, e eVar) { + this.j = cacheKey; + this.k = eVar; + } + + /* JADX WARNING: Code restructure failed: missing block: B:10:0x002c, code lost: + if (r1 != null) goto L_0x002e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:11:0x002e, code lost: + r1.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:12:0x0031, code lost: + throw r0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:8:0x001e, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:9:0x001f, code lost: + r4.l.f.d(r4.j, r4.k); + r1 = r4.k; + */ + @Override // java.lang.Runnable + public void run() { + f.b(f.this, this.j, this.k); + f.this.f.d(this.j, this.k); + e eVar = this.k; + if (eVar != null) { + eVar.close(); + } + } + } + + public f(h hVar, g gVar, j jVar, Executor executor, Executor executor2, r rVar) { + this.a = hVar; + this.f545b = gVar; + this.c = jVar; + this.d = executor; + this.e = executor2; + this.g = rVar; + } + + /* JADX INFO: finally extract failed */ + public static PooledByteBuffer a(f fVar, CacheKey cacheKey) throws IOException { + Objects.requireNonNull(fVar); + try { + cacheKey.b(); + int i = b.f.d.e.a.a; + b.f.a.a b2 = ((d) fVar.a).b(cacheKey); + if (b2 == null) { + cacheKey.b(); + Objects.requireNonNull((z) fVar.g); + return null; + } + cacheKey.b(); + Objects.requireNonNull((z) fVar.g); + FileInputStream fileInputStream = new FileInputStream(b2.a); + try { + PooledByteBuffer d = fVar.f545b.d(fileInputStream, (int) b2.a()); + fileInputStream.close(); + cacheKey.b(); + return d; + } catch (Throwable th) { + fileInputStream.close(); + throw th; + } + } catch (IOException e) { + b.f.d.e.a.n(f.class, e, "Exception reading from cache for %s", cacheKey.b()); + Objects.requireNonNull((z) fVar.g); + throw e; + } + } + + public static void b(f fVar, CacheKey cacheKey, e eVar) { + Objects.requireNonNull(fVar); + cacheKey.b(); + int i = b.f.d.e.a.a; + try { + ((d) fVar.a).d(cacheKey, new h(fVar, eVar)); + Objects.requireNonNull((z) fVar.g); + cacheKey.b(); + } catch (IOException e) { + b.f.d.e.a.n(f.class, e, "Failed to write to disk-cache for key %s", cacheKey.b()); + } + } + + public void c(CacheKey cacheKey) { + d dVar = (d) this.a; + Objects.requireNonNull(dVar); + try { + synchronized (dVar.q) { + List y0 = b.c.a.a0.d.y0(cacheKey); + int i = 0; + while (true) { + ArrayList arrayList = (ArrayList) y0; + if (i < arrayList.size()) { + String str = (String) arrayList.get(i); + if (dVar.k.c(str, cacheKey)) { + dVar.h.add(str); + return; + } + i++; + } else { + return; + } + } + } + } catch (IOException unused) { + i a2 = i.a(); + a2.d = cacheKey; + Objects.requireNonNull((b.f.b.a.e) dVar.g); + a2.b(); + } + } + + /* JADX DEBUG: Type inference failed for r1v9. Raw type applied. Possible types: z.g, z.g */ + /* JADX DEBUG: Type inference failed for r1v10. Raw type applied. Possible types: z.g, z.g */ + public final z.g d(CacheKey cacheKey, e eVar) { + cacheKey.b(); + int i = b.f.d.e.a.a; + Objects.requireNonNull((z) this.g); + Executor executor = z.g.a; + if (eVar instanceof Boolean) { + return ((Boolean) eVar).booleanValue() ? z.g.c : z.g.d; + } + z.g gVar = new z.g<>(); + if (gVar.h(eVar)) { + return gVar; + } + throw new IllegalStateException("Cannot set the result of a completed task."); + } + + /* JADX INFO: finally extract failed */ + public z.g e(CacheKey cacheKey, AtomicBoolean atomicBoolean) { + z.g gVar; + try { + b.b(); + e a2 = this.f.a(cacheKey); + if (a2 != null) { + z.g d = d(cacheKey, a2); + b.b(); + return d; + } + try { + gVar = z.g.a(new e(this, null, atomicBoolean, cacheKey), this.d); + } catch (Exception e) { + b.f.d.e.a.n(f.class, e, "Failed to schedule disk-cache read for %s", ((b.f.b.a.f) cacheKey).a); + gVar = z.g.c(e); + } + b.b(); + return gVar; + } catch (Throwable th) { + b.b(); + throw th; + } + } + + /* JADX INFO: finally extract failed */ + public void f(CacheKey cacheKey, e eVar) { + try { + b.b(); + Objects.requireNonNull(cacheKey); + b.c.a.a0.d.i(Boolean.valueOf(e.t(eVar))); + this.f.b(cacheKey, eVar); + e a2 = e.a(eVar); + try { + this.e.execute(new a(null, cacheKey, a2)); + } catch (Exception e) { + b.f.d.e.a.n(f.class, e, "Failed to schedule disk-cache write for %s", cacheKey.b()); + this.f.d(cacheKey, eVar); + if (a2 != null) { + a2.close(); + } + } + b.b(); + } catch (Throwable th) { + b.b(); + throw th; + } + } +} diff --git a/app/src/main/java/b/f/j/c/g.java b/app/src/main/java/b/f/j/c/g.java new file mode 100644 index 0000000000..f98bdf257a --- /dev/null +++ b/app/src/main/java/b/f/j/c/g.java @@ -0,0 +1,23 @@ +package b.f.j.c; + +import b.f.b.b.d; +import com.facebook.cache.common.CacheKey; +import java.util.concurrent.Callable; +/* compiled from: BufferedDiskCache */ +public class g implements Callable { + public final /* synthetic */ CacheKey j; + public final /* synthetic */ f k; + + public g(f fVar, Object obj, CacheKey cacheKey) { + this.k = fVar; + this.j = cacheKey; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + this.k.f.c(this.j); + ((d) this.k.a).f(this.j); + return null; + } +} diff --git a/app/src/main/java/b/f/j/c/h.java b/app/src/main/java/b/f/j/c/h.java new file mode 100644 index 0000000000..d3121380d4 --- /dev/null +++ b/app/src/main/java/b/f/j/c/h.java @@ -0,0 +1,16 @@ +package b.f.j.c; + +import b.f.b.a.g; +import b.f.j.j.e; +/* compiled from: BufferedDiskCache */ +public class h implements g { + public final /* synthetic */ e a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ f f546b; + + public h(f fVar, e eVar) { + this.f546b = fVar; + this.a = eVar; + } +} diff --git a/app/src/main/java/b/f/j/c/i.java b/app/src/main/java/b/f/j/c/i.java new file mode 100644 index 0000000000..2ae3fa93c5 --- /dev/null +++ b/app/src/main/java/b/f/j/c/i.java @@ -0,0 +1,4 @@ +package b.f.j.c; +/* compiled from: CacheKeyFactory */ +public interface i { +} diff --git a/app/src/main/java/b/f/j/c/j.java b/app/src/main/java/b/f/j/c/j.java new file mode 100644 index 0000000000..cd2e9b3a72 --- /dev/null +++ b/app/src/main/java/b/f/j/c/j.java @@ -0,0 +1,14 @@ +package b.f.j.c; + +import b.f.j.j.c; +/* compiled from: CountingLruBitmapMemoryCacheFactory */ +public class j implements b0 { + public j(k kVar) { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.c.b0 + public int a(c cVar) { + return cVar.c(); + } +} diff --git a/app/src/main/java/b/f/j/c/k.java b/app/src/main/java/b/f/j/c/k.java new file mode 100644 index 0000000000..16c4cf5682 --- /dev/null +++ b/app/src/main/java/b/f/j/c/k.java @@ -0,0 +1,4 @@ +package b.f.j.c; +/* compiled from: CountingLruBitmapMemoryCacheFactory */ +public class k implements a { +} diff --git a/app/src/main/java/b/f/j/c/l.java b/app/src/main/java/b/f/j/c/l.java new file mode 100644 index 0000000000..9ff1dea1d5 --- /dev/null +++ b/app/src/main/java/b/f/j/c/l.java @@ -0,0 +1,66 @@ +package b.f.j.c; + +import b.f.d.d.j; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Map; +/* compiled from: CountingLruMap */ +public class l { + public final b0 a; + + /* renamed from: b reason: collision with root package name */ + public final LinkedHashMap f547b = new LinkedHashMap<>(); + public int c = 0; + + public l(b0 b0Var) { + this.a = b0Var; + } + + public synchronized int a() { + return this.f547b.size(); + } + + public synchronized int b() { + return this.c; + } + + public final int c(V v) { + if (v == null) { + return 0; + } + return this.a.a(v); + } + + public synchronized V d(K k, V v) { + V remove; + remove = this.f547b.remove(k); + this.c -= c(remove); + this.f547b.put(k, v); + this.c += c(v); + return remove; + } + + public synchronized V e(K k) { + V remove; + remove = this.f547b.remove(k); + this.c -= c(remove); + return remove; + } + + public synchronized ArrayList f(j jVar) { + ArrayList arrayList; + arrayList = new ArrayList<>(); + Iterator> it = this.f547b.entrySet().iterator(); + while (it.hasNext()) { + Map.Entry next = it.next(); + if (jVar != null) { + next.getKey(); + } + arrayList.add(next.getValue()); + this.c -= c(next.getValue()); + it.remove(); + } + return arrayList; + } +} diff --git a/app/src/main/java/b/f/j/c/m.java b/app/src/main/java/b/f/j/c/m.java new file mode 100644 index 0000000000..e215698779 --- /dev/null +++ b/app/src/main/java/b/f/j/c/m.java @@ -0,0 +1,37 @@ +package b.f.j.c; + +import androidx.annotation.VisibleForTesting; +import com.facebook.common.references.CloseableReference; +import java.util.Objects; +/* compiled from: CountingMemoryCache */ +public interface m extends w, b.f.d.g.b { + + /* compiled from: CountingMemoryCache */ + @VisibleForTesting + public static class a { + public final K a; + + /* renamed from: b reason: collision with root package name */ + public final CloseableReference f548b; + public int c = 0; + public boolean d = false; + public final b e; + + public a(K k, CloseableReference closeableReference, b bVar) { + Objects.requireNonNull(k); + this.a = k; + CloseableReference n = CloseableReference.n(closeableReference); + Objects.requireNonNull(n); + this.f548b = n; + this.e = bVar; + } + } + + /* compiled from: CountingMemoryCache */ + public interface b { + } + + CloseableReference b(K k); + + CloseableReference c(K k, CloseableReference closeableReference, b bVar); +} diff --git a/app/src/main/java/b/f/j/c/n.java b/app/src/main/java/b/f/j/c/n.java new file mode 100644 index 0000000000..e371099234 --- /dev/null +++ b/app/src/main/java/b/f/j/c/n.java @@ -0,0 +1,33 @@ +package b.f.j.c; + +import b.f.b.a.f; +import b.f.j.q.b; +import com.facebook.cache.common.CacheKey; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: DefaultCacheKeyFactory */ +public class n implements i { + public static n a; + + public CacheKey a(ImageRequest imageRequest, Object obj) { + return new b(imageRequest.c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, null, null, obj); + } + + public CacheKey b(ImageRequest imageRequest, Object obj) { + return new f(imageRequest.c.toString()); + } + + public CacheKey c(ImageRequest imageRequest, Object obj) { + String str; + CacheKey cacheKey; + b bVar = imageRequest.q; + if (bVar != null) { + CacheKey postprocessorCacheKey = bVar.getPostprocessorCacheKey(); + str = bVar.getClass().getName(); + cacheKey = postprocessorCacheKey; + } else { + cacheKey = null; + str = null; + } + return new b(imageRequest.c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, cacheKey, str, obj); + } +} diff --git a/app/src/main/java/b/f/j/c/o.java b/app/src/main/java/b/f/j/c/o.java new file mode 100644 index 0000000000..fc2ebb6a1f --- /dev/null +++ b/app/src/main/java/b/f/j/c/o.java @@ -0,0 +1,17 @@ +package b.f.j.c; + +import com.facebook.common.internal.Supplier; +import com.facebook.imagepipeline.cache.MemoryCacheParams; +import java.util.concurrent.TimeUnit; +/* compiled from: DefaultEncodedMemoryCacheParamsSupplier */ +public class o implements Supplier { + public static final long a = TimeUnit.MINUTES.toMillis(5); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // com.facebook.common.internal.Supplier + public MemoryCacheParams get() { + int min = (int) Math.min(Runtime.getRuntime().maxMemory(), 2147483647L); + int i = min < 16777216 ? 1048576 : min < 33554432 ? 2097152 : 4194304; + return new MemoryCacheParams(i, Integer.MAX_VALUE, i, Integer.MAX_VALUE, i / 8, a); + } +} diff --git a/app/src/main/java/b/f/j/c/p.java b/app/src/main/java/b/f/j/c/p.java new file mode 100644 index 0000000000..2a60182bc5 --- /dev/null +++ b/app/src/main/java/b/f/j/c/p.java @@ -0,0 +1,11 @@ +package b.f.j.c; + +import com.facebook.common.memory.PooledByteBuffer; +/* compiled from: EncodedCountingMemoryCacheFactory */ +public final class p implements b0 { + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.c.b0 + public int a(PooledByteBuffer pooledByteBuffer) { + return pooledByteBuffer.size(); + } +} diff --git a/app/src/main/java/b/f/j/c/q.java b/app/src/main/java/b/f/j/c/q.java new file mode 100644 index 0000000000..a31b17bbf1 --- /dev/null +++ b/app/src/main/java/b/f/j/c/q.java @@ -0,0 +1,30 @@ +package b.f.j.c; + +import com.facebook.cache.common.CacheKey; +import java.util.Objects; +/* compiled from: EncodedMemoryCacheFactory */ +public final class q implements x { + public final /* synthetic */ r a; + + public q(r rVar) { + this.a = rVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.c.x + public void a(CacheKey cacheKey) { + Objects.requireNonNull((z) this.a); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.c.x + public void b(CacheKey cacheKey) { + Objects.requireNonNull((z) this.a); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.c.x + public void c(CacheKey cacheKey) { + Objects.requireNonNull((z) this.a); + } +} diff --git a/app/src/main/java/b/f/j/c/r.java b/app/src/main/java/b/f/j/c/r.java new file mode 100644 index 0000000000..c603643ecc --- /dev/null +++ b/app/src/main/java/b/f/j/c/r.java @@ -0,0 +1,4 @@ +package b.f.j.c; +/* compiled from: ImageCacheStatsTracker */ +public interface r { +} diff --git a/app/src/main/java/b/f/j/c/s.java b/app/src/main/java/b/f/j/c/s.java new file mode 100644 index 0000000000..7c4ba2bf9e --- /dev/null +++ b/app/src/main/java/b/f/j/c/s.java @@ -0,0 +1,38 @@ +package b.f.j.c; + +import b.f.d.d.j; +import com.facebook.common.references.CloseableReference; +/* compiled from: InstrumentedMemoryCache */ +public class s implements w { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final x f549b; + + public s(w wVar, x xVar) { + this.a = wVar; + this.f549b = xVar; + } + + @Override // b.f.j.c.w + public CloseableReference a(K k, CloseableReference closeableReference) { + this.f549b.c(k); + return this.a.a(k, closeableReference); + } + + @Override // b.f.j.c.w + public int d(j jVar) { + return this.a.d(jVar); + } + + @Override // b.f.j.c.w + public CloseableReference get(K k) { + CloseableReference closeableReference = this.a.get(k); + if (closeableReference == null) { + this.f549b.b(k); + } else { + this.f549b.a(k); + } + return closeableReference; + } +} diff --git a/app/src/main/java/b/f/j/c/t.java b/app/src/main/java/b/f/j/c/t.java new file mode 100644 index 0000000000..f79eb0115d --- /dev/null +++ b/app/src/main/java/b/f/j/c/t.java @@ -0,0 +1,30 @@ +package b.f.j.c; + +import com.facebook.cache.common.CacheKey; +import java.util.Objects; +/* compiled from: InstrumentedMemoryCacheBitmapMemoryCacheFactory */ +public final class t implements x { + public final /* synthetic */ r a; + + public t(r rVar) { + this.a = rVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.c.x + public void a(CacheKey cacheKey) { + Objects.requireNonNull((z) this.a); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.c.x + public void b(CacheKey cacheKey) { + Objects.requireNonNull((z) this.a); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.c.x + public void c(CacheKey cacheKey) { + Objects.requireNonNull((z) this.a); + } +} diff --git a/app/src/main/java/b/f/j/c/u.java b/app/src/main/java/b/f/j/c/u.java new file mode 100644 index 0000000000..1b5f530653 --- /dev/null +++ b/app/src/main/java/b/f/j/c/u.java @@ -0,0 +1,16 @@ +package b.f.j.c; + +import b.f.j.c.m; +/* compiled from: LruCountingMemoryCache */ +public class u implements b0> { + public final /* synthetic */ b0 a; + + public u(v vVar, b0 b0Var) { + this.a = b0Var; + } + + @Override // b.f.j.c.b0 + public int a(Object obj) { + return this.a.a(((m.a) obj).f548b.u()); + } +} diff --git a/app/src/main/java/b/f/j/c/v.java b/app/src/main/java/b/f/j/c/v.java new file mode 100644 index 0000000000..96b177a98e --- /dev/null +++ b/app/src/main/java/b/f/j/c/v.java @@ -0,0 +1,328 @@ +package b.f.j.c; + +import android.os.SystemClock; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.f.d.d.j; +import b.f.d.h.f; +import b.f.j.a.c.c; +import b.f.j.c.m; +import b.f.j.c.w; +import com.facebook.common.internal.Supplier; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.cache.MemoryCacheParams; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.Objects; +import java.util.WeakHashMap; +/* compiled from: LruCountingMemoryCache */ +public class v implements m, w { + public final m.b a; + @VisibleForTesting + + /* renamed from: b reason: collision with root package name */ + public final l> f550b; + @VisibleForTesting + public final l> c; + public final b0 d; + public final Supplier e; + public MemoryCacheParams f; + public long g = SystemClock.uptimeMillis(); + + /* compiled from: LruCountingMemoryCache */ + public class a implements f { + public final /* synthetic */ m.a a; + + public a(m.a aVar) { + this.a = aVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:25:0x003d */ + @Override // b.f.d.h.f + public void release(V v) { + boolean z2; + m.b bVar; + v vVar = v.this; + m.a aVar = this.a; + Objects.requireNonNull(vVar); + Objects.requireNonNull(aVar); + synchronized (vVar) { + synchronized (vVar) { + z2 = false; + d.B(aVar.c > 0); + aVar.c--; + } + CloseableReference.s(vVar.o(aVar)); + if (!z2) { + aVar = null; + } + if (!(aVar == null || (bVar = aVar.e) == null)) { + ((c.a) bVar).a(aVar.a, true); + } + vVar.m(); + vVar.j(); + } + synchronized (vVar) { + if (!aVar.d && aVar.c == 0) { + vVar.f550b.d(aVar.a, aVar); + z2 = true; + } + } + CloseableReference.s(vVar.o(aVar)); + if (!z2) { + } + ((c.a) bVar).a(aVar.a, true); + vVar.m(); + vVar.j(); + } + } + + public v(b0 b0Var, w.a aVar, Supplier supplier, m.b bVar) { + new WeakHashMap(); + this.d = b0Var; + this.f550b = new l<>(new u(this, b0Var)); + this.c = new l<>(new u(this, b0Var)); + this.e = supplier; + MemoryCacheParams memoryCacheParams = supplier.get(); + d.y(memoryCacheParams, "mMemoryCacheParamsSupplier returned null"); + this.f = memoryCacheParams; + this.a = bVar; + } + + public static void k(m.a aVar) { + m.b bVar; + if (aVar != null && (bVar = aVar.e) != null) { + ((c.a) bVar).a(aVar.a, false); + } + } + + @Override // b.f.j.c.w + public CloseableReference a(K k, CloseableReference closeableReference) { + return c(k, closeableReference, this.a); + } + + @Override // b.f.j.c.m + public CloseableReference b(K k) { + m.a e; + boolean z2; + CloseableReference closeableReference; + Objects.requireNonNull(k); + synchronized (this) { + e = this.f550b.e(k); + z2 = false; + if (e != null) { + m.a e2 = this.c.e(k); + Objects.requireNonNull(e2); + if (e2.c == 0) { + z2 = true; + } + d.B(z2); + closeableReference = e2.f548b; + z2 = true; + } else { + closeableReference = null; + } + } + if (z2) { + k(e); + } + return closeableReference; + } + + /* JADX WARNING: Removed duplicated region for block: B:23:0x0064 */ + @Override // b.f.j.c.m + public CloseableReference c(K k, CloseableReference closeableReference, m.b bVar) { + CloseableReference closeableReference2; + CloseableReference closeableReference3; + boolean z2; + Objects.requireNonNull(k); + Objects.requireNonNull(closeableReference); + m(); + synchronized (this) { + m.a e = this.f550b.e(k); + m.a e2 = this.c.e(k); + closeableReference2 = null; + if (e2 != null) { + g(e2); + closeableReference3 = o(e2); + } else { + closeableReference3 = null; + } + V u = closeableReference.u(); + synchronized (this) { + int a2 = this.d.a(u); + z2 = true; + if (a2 > this.f.e || e() > this.f.f2853b - 1 || f() > this.f.a - a2) { + z2 = false; + } + } + if (closeableReference3 != null) { + closeableReference3.close(); + } + k(e); + j(); + return closeableReference2; + } + if (z2) { + m.a aVar = new m.a<>(k, closeableReference, bVar); + this.c.d(k, aVar); + closeableReference2 = n(aVar); + } + if (closeableReference3 != null) { + } + k(e); + j(); + return closeableReference2; + } + + @Override // b.f.j.c.w + public synchronized boolean contains(K k) { + boolean containsKey; + l> lVar = this.c; + synchronized (lVar) { + containsKey = lVar.f547b.containsKey(k); + } + return containsKey; + } + + @Override // b.f.j.c.w + public int d(j jVar) { + ArrayList> f; + ArrayList> f2; + synchronized (this) { + f = this.f550b.f(jVar); + f2 = this.c.f(jVar); + h(f2); + } + i(f2); + l(f); + m(); + j(); + return f2.size(); + } + + public synchronized int e() { + return this.c.a() - this.f550b.a(); + } + + public synchronized int f() { + return this.c.b() - this.f550b.b(); + } + + public final synchronized void g(m.a aVar) { + Objects.requireNonNull(aVar); + d.B(!aVar.d); + aVar.d = true; + } + + @Override // b.f.j.c.w + public CloseableReference get(K k) { + m.a e; + m.a aVar; + Objects.requireNonNull(k); + CloseableReference closeableReference = null; + synchronized (this) { + e = this.f550b.e(k); + l> lVar = this.c; + synchronized (lVar) { + aVar = lVar.f547b.get(k); + } + m.a aVar2 = aVar; + if (aVar2 != null) { + closeableReference = n(aVar2); + } + } + k(e); + m(); + j(); + return closeableReference; + } + + public final synchronized void h(ArrayList> arrayList) { + if (arrayList != null) { + Iterator> it = arrayList.iterator(); + while (it.hasNext()) { + g(it.next()); + } + } + } + + public final void i(ArrayList> arrayList) { + if (arrayList != null) { + Iterator> it = arrayList.iterator(); + while (it.hasNext()) { + CloseableReference.s(o(it.next())); + } + } + } + + public void j() { + ArrayList> p; + synchronized (this) { + MemoryCacheParams memoryCacheParams = this.f; + int min = Math.min(memoryCacheParams.d, memoryCacheParams.f2853b - e()); + MemoryCacheParams memoryCacheParams2 = this.f; + p = p(min, Math.min(memoryCacheParams2.c, memoryCacheParams2.a - f())); + h(p); + } + i(p); + l(p); + } + + public final void l(ArrayList> arrayList) { + if (arrayList != null) { + Iterator> it = arrayList.iterator(); + while (it.hasNext()) { + k(it.next()); + } + } + } + + public final synchronized void m() { + if (this.g + this.f.f <= SystemClock.uptimeMillis()) { + this.g = SystemClock.uptimeMillis(); + MemoryCacheParams memoryCacheParams = this.e.get(); + d.y(memoryCacheParams, "mMemoryCacheParamsSupplier returned null"); + this.f = memoryCacheParams; + } + } + + public final synchronized CloseableReference n(m.a aVar) { + synchronized (this) { + d.B(!aVar.d); + aVar.c++; + } + return CloseableReference.D(aVar.f548b.u(), new a(aVar)); + return CloseableReference.D(aVar.f548b.u(), new a(aVar)); + } + + public final synchronized CloseableReference o(m.a aVar) { + Objects.requireNonNull(aVar); + return (!aVar.d || aVar.c != 0) ? null : aVar.f548b; + } + + public final synchronized ArrayList> p(int i, int i2) { + K next; + int max = Math.max(i, 0); + int max2 = Math.max(i2, 0); + if (this.f550b.a() <= max && this.f550b.b() <= max2) { + return null; + } + ArrayList> arrayList = new ArrayList<>(); + while (true) { + if (this.f550b.a() <= max && this.f550b.b() <= max2) { + return arrayList; + } + l> lVar = this.f550b; + synchronized (lVar) { + next = lVar.f547b.isEmpty() ? null : lVar.f547b.keySet().iterator().next(); + } + if (next != null) { + this.f550b.e(next); + arrayList.add(this.c.e(next)); + } else { + throw new IllegalStateException(String.format("key is null, but exclusiveEntries count: %d, size: %d", Integer.valueOf(this.f550b.a()), Integer.valueOf(this.f550b.b()))); + } + } + } +} diff --git a/app/src/main/java/b/f/j/c/w.java b/app/src/main/java/b/f/j/c/w.java new file mode 100644 index 0000000000..6e6daff424 --- /dev/null +++ b/app/src/main/java/b/f/j/c/w.java @@ -0,0 +1,20 @@ +package b.f.j.c; + +import b.f.d.d.j; +import b.f.d.g.b; +import com.facebook.common.references.CloseableReference; +/* compiled from: MemoryCache */ +public interface w extends b { + + /* compiled from: MemoryCache */ + public interface a { + } + + CloseableReference a(K k, CloseableReference closeableReference); + + boolean contains(K k); + + int d(j jVar); + + CloseableReference get(K k); +} diff --git a/app/src/main/java/b/f/j/c/x.java b/app/src/main/java/b/f/j/c/x.java new file mode 100644 index 0000000000..39a70efd87 --- /dev/null +++ b/app/src/main/java/b/f/j/c/x.java @@ -0,0 +1,9 @@ +package b.f.j.c; +/* compiled from: MemoryCacheTracker */ +public interface x { + void a(K k); + + void b(K k); + + void c(K k); +} diff --git a/app/src/main/java/b/f/j/c/y.java b/app/src/main/java/b/f/j/c/y.java new file mode 100644 index 0000000000..f21cfe45ee --- /dev/null +++ b/app/src/main/java/b/f/j/c/y.java @@ -0,0 +1,6 @@ +package b.f.j.c; + +import b.f.j.c.w; +/* compiled from: NativeMemoryCacheTrimStrategy */ +public class y implements w.a { +} diff --git a/app/src/main/java/b/f/j/c/z.java b/app/src/main/java/b/f/j/c/z.java new file mode 100644 index 0000000000..07eeb382d5 --- /dev/null +++ b/app/src/main/java/b/f/j/c/z.java @@ -0,0 +1,5 @@ +package b.f.j.c; +/* compiled from: NoOpImageCacheStatsTracker */ +public class z implements r { + public static z a; +} diff --git a/app/src/main/java/b/f/j/d/a.java b/app/src/main/java/b/f/j/d/a.java new file mode 100644 index 0000000000..06821bdfe3 --- /dev/null +++ b/app/src/main/java/b/f/j/d/a.java @@ -0,0 +1,44 @@ +package b.f.j.d; + +import b.c.a.a0.d; +/* compiled from: BytesRange */ +public class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f552b; + + public a(int i, int i2) { + this.a = i; + this.f552b = i2; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.f552b == aVar.f552b; + } + + public int hashCode() { + return d.I0(this.a, this.f552b); + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0013: APUT (r0v1 java.lang.Object[]), (0 ??[int, short, byte, char]), (r1v1 java.lang.String) */ + public String toString() { + Object[] objArr = new Object[2]; + int i = this.a; + String str = ""; + objArr[0] = i == Integer.MAX_VALUE ? str : Integer.toString(i); + int i2 = this.f552b; + if (i2 != Integer.MAX_VALUE) { + str = Integer.toString(i2); + } + objArr[1] = str; + return String.format(null, "%s-%s", objArr); + } +} diff --git a/app/src/main/java/b/f/j/d/b.java b/app/src/main/java/b/f/j/d/b.java new file mode 100644 index 0000000000..f8301ffcd3 --- /dev/null +++ b/app/src/main/java/b/f/j/d/b.java @@ -0,0 +1,50 @@ +package b.f.j.d; + +import android.graphics.Bitmap; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.f.d.d.i; +/* compiled from: ImageDecodeOptions */ +public class b { + public static final b a = new b(new c()); + + /* renamed from: b reason: collision with root package name */ + public final int f553b = 100; + public final int c = Integer.MAX_VALUE; + public final Bitmap.Config d; + + public b(c cVar) { + this.d = cVar.a; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null || b.class != obj.getClass()) { + return false; + } + b bVar = (b) obj; + return this.f553b == bVar.f553b && this.c == bVar.c && this.d == bVar.d; + } + + public int hashCode() { + return ((((((this.d.ordinal() + (((((((((((this.f553b * 31) + this.c) * 31) + 0) * 31) + 0) * 31) + 0) * 31) + 0) * 31)) * 31) + 0) * 31) + 0) * 31) + 0; + } + + public String toString() { + StringBuilder R = a.R("ImageDecodeOptions{"); + i f2 = d.f2(this); + f2.a("minDecodeIntervalMs", this.f553b); + f2.a("maxDimensionPx", this.c); + f2.b("decodePreviewFrame", false); + f2.b("useLastFrameForPreview", false); + f2.b("decodeAllFrames", false); + f2.b("forceStaticImage", false); + f2.c("bitmapConfigName", this.d.name()); + f2.c("customImageDecoder", null); + f2.c("bitmapTransformation", null); + f2.c("colorSpace", null); + return a.H(R, f2.toString(), "}"); + } +} diff --git a/app/src/main/java/b/f/j/d/c.java b/app/src/main/java/b/f/j/d/c.java new file mode 100644 index 0000000000..bbf3665861 --- /dev/null +++ b/app/src/main/java/b/f/j/d/c.java @@ -0,0 +1,8 @@ +package b.f.j.d; + +import android.graphics.Bitmap; +import b.f.j.d.c; +/* compiled from: ImageDecodeOptionsBuilder */ +public class c { + public Bitmap.Config a = Bitmap.Config.ARGB_8888; +} diff --git a/app/src/main/java/b/f/j/d/d.java b/app/src/main/java/b/f/j/d/d.java new file mode 100644 index 0000000000..23a87183bb --- /dev/null +++ b/app/src/main/java/b/f/j/d/d.java @@ -0,0 +1,7 @@ +package b.f.j.d; +/* compiled from: Priority */ +public enum d { + LOW, + MEDIUM, + HIGH +} diff --git a/app/src/main/java/b/f/j/d/e.java b/app/src/main/java/b/f/j/d/e.java new file mode 100644 index 0000000000..202c34616e --- /dev/null +++ b/app/src/main/java/b/f/j/d/e.java @@ -0,0 +1,41 @@ +package b.f.j.d; + +import b.c.a.a0.d; +/* compiled from: ResizeOptions */ +public class e { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f554b; + public final float c; + public final float d; + + public e(int i, int i2) { + boolean z2 = true; + d.i(Boolean.valueOf(i > 0)); + d.i(Boolean.valueOf(i2 <= 0 ? false : z2)); + this.a = i; + this.f554b = i2; + this.c = 2048.0f; + this.d = 0.6666667f; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof e)) { + return false; + } + e eVar = (e) obj; + return this.a == eVar.a && this.f554b == eVar.f554b; + } + + public int hashCode() { + return d.I0(this.a, this.f554b); + } + + public String toString() { + return String.format(null, "%dx%d", Integer.valueOf(this.a), Integer.valueOf(this.f554b)); + } +} diff --git a/app/src/main/java/b/f/j/d/f.java b/app/src/main/java/b/f/j/d/f.java new file mode 100644 index 0000000000..ff2189993d --- /dev/null +++ b/app/src/main/java/b/f/j/d/f.java @@ -0,0 +1,52 @@ +package b.f.j.d; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +/* compiled from: RotationOptions */ +public class f { + public static final f a = new f(-1, false); + + /* renamed from: b reason: collision with root package name */ + public static final f f555b = new f(-1, true); + public final int c; + public final boolean d; + + public f(int i, boolean z2) { + this.c = i; + this.d = z2; + } + + public int a() { + if (!c()) { + return this.c; + } + throw new IllegalStateException("Rotation is set to use EXIF"); + } + + public boolean b() { + return this.c != -2; + } + + public boolean c() { + return this.c == -1; + } + + public boolean equals(@Nullable Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof f)) { + return false; + } + f fVar = (f) obj; + return this.c == fVar.c && this.d == fVar.d; + } + + public int hashCode() { + return d.J0(Integer.valueOf(this.c), Boolean.valueOf(this.d)); + } + + public String toString() { + return String.format(null, "%d defer:%b", Integer.valueOf(this.c), Boolean.valueOf(this.d)); + } +} diff --git a/app/src/main/java/b/f/j/e/a.java b/app/src/main/java/b/f/j/e/a.java new file mode 100644 index 0000000000..bfba30cd52 --- /dev/null +++ b/app/src/main/java/b/f/j/e/a.java @@ -0,0 +1,53 @@ +package b.f.j.e; + +import com.facebook.common.references.CloseableReference; +import com.facebook.common.references.SharedReference; +import java.io.PrintWriter; +import java.io.StringWriter; +import java.util.Objects; +/* compiled from: CloseableReferenceFactory */ +public class a { + public final CloseableReference.c a; + + /* compiled from: CloseableReferenceFactory */ + /* renamed from: b.f.j.e.a$a reason: collision with other inner class name */ + public class C0062a implements CloseableReference.c { + public final /* synthetic */ b.f.j.g.a a; + + public C0062a(a aVar, b.f.j.g.a aVar2) { + this.a = aVar2; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0049: APUT (r1v1 java.lang.Object[]), (3 ??[int, float, short, byte, char]), (r6v1 java.lang.String) */ + @Override // com.facebook.common.references.CloseableReference.c + public void a(SharedReference sharedReference, Throwable th) { + String str; + Objects.requireNonNull(this.a); + Object c = sharedReference.c(); + String name = c != null ? c.getClass().getName() : ""; + Object[] objArr = new Object[4]; + objArr[0] = Integer.valueOf(System.identityHashCode(this)); + objArr[1] = Integer.valueOf(System.identityHashCode(sharedReference)); + objArr[2] = name; + if (th == null) { + str = ""; + } else { + StringWriter stringWriter = new StringWriter(); + th.printStackTrace(new PrintWriter(stringWriter)); + str = stringWriter.toString(); + } + objArr[3] = str; + b.f.d.e.a.o("Fresco", "Finalized without closing: %x %x (type = %s).\nStack:\n%s", objArr); + } + + @Override // com.facebook.common.references.CloseableReference.c + public boolean b() { + Objects.requireNonNull(this.a); + return false; + } + } + + public a(b.f.j.g.a aVar) { + this.a = new C0062a(this, aVar); + } +} diff --git a/app/src/main/java/b/f/j/e/b.java b/app/src/main/java/b/f/j/e/b.java new file mode 100644 index 0000000000..10b1a6912b --- /dev/null +++ b/app/src/main/java/b/f/j/e/b.java @@ -0,0 +1,57 @@ +package b.f.j.e; + +import java.util.concurrent.Executor; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +/* compiled from: DefaultExecutorSupplier */ +public class b implements e { + public final Executor a = Executors.newFixedThreadPool(2, new n(10, "FrescoIoBoundExecutor", true)); + + /* renamed from: b reason: collision with root package name */ + public final Executor f556b; + public final Executor c; + public final Executor d; + public final ScheduledExecutorService e; + + public b(int i) { + this.f556b = Executors.newFixedThreadPool(i, new n(10, "FrescoDecodeExecutor", true)); + this.c = Executors.newFixedThreadPool(i, new n(10, "FrescoBackgroundExecutor", true)); + this.e = Executors.newScheduledThreadPool(i, new n(10, "FrescoBackgroundExecutor", true)); + this.d = Executors.newFixedThreadPool(1, new n(10, "FrescoLightWeightBackgroundExecutor", true)); + } + + @Override // b.f.j.e.e + public Executor a() { + return this.f556b; + } + + @Override // b.f.j.e.e + public Executor b() { + return this.d; + } + + @Override // b.f.j.e.e + public Executor c() { + return this.c; + } + + @Override // b.f.j.e.e + public Executor d() { + return this.a; + } + + @Override // b.f.j.e.e + public Executor e() { + return this.a; + } + + @Override // b.f.j.e.e + public Executor f() { + return this.a; + } + + @Override // b.f.j.e.e + public ScheduledExecutorService g() { + return this.e; + } +} diff --git a/app/src/main/java/b/f/j/e/c.java b/app/src/main/java/b/f/j/e/c.java new file mode 100644 index 0000000000..10622d32c8 --- /dev/null +++ b/app/src/main/java/b/f/j/e/c.java @@ -0,0 +1,24 @@ +package b.f.j.e; + +import b.f.b.b.d; +import b.f.b.b.e; +import b.f.b.b.h; +import com.facebook.cache.disk.DiskCacheConfig; +import java.util.Objects; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +/* compiled from: DiskStorageCacheFactory */ +public class c implements f { + public d a; + + public c(d dVar) { + this.a = dVar; + } + + public h a(DiskCacheConfig diskCacheConfig) { + Objects.requireNonNull(this.a); + e eVar = new e(diskCacheConfig.a, diskCacheConfig.c, diskCacheConfig.f2838b, diskCacheConfig.h); + ExecutorService newSingleThreadExecutor = Executors.newSingleThreadExecutor(); + return new d(eVar, diskCacheConfig.g, new d.c(diskCacheConfig.f, diskCacheConfig.e, diskCacheConfig.d), diskCacheConfig.i, diskCacheConfig.h, diskCacheConfig.j, newSingleThreadExecutor, false); + } +} diff --git a/app/src/main/java/b/f/j/e/d.java b/app/src/main/java/b/f/j/e/d.java new file mode 100644 index 0000000000..20a405171b --- /dev/null +++ b/app/src/main/java/b/f/j/e/d.java @@ -0,0 +1,4 @@ +package b.f.j.e; +/* compiled from: DynamicDefaultDiskStorageFactory */ +public class d { +} diff --git a/app/src/main/java/b/f/j/e/e.java b/app/src/main/java/b/f/j/e/e.java new file mode 100644 index 0000000000..b56faf88ff --- /dev/null +++ b/app/src/main/java/b/f/j/e/e.java @@ -0,0 +1,20 @@ +package b.f.j.e; + +import java.util.concurrent.Executor; +import java.util.concurrent.ScheduledExecutorService; +/* compiled from: ExecutorSupplier */ +public interface e { + Executor a(); + + Executor b(); + + Executor c(); + + Executor d(); + + Executor e(); + + Executor f(); + + ScheduledExecutorService g(); +} diff --git a/app/src/main/java/b/f/j/e/f.java b/app/src/main/java/b/f/j/e/f.java new file mode 100644 index 0000000000..f88c7fa61d --- /dev/null +++ b/app/src/main/java/b/f/j/e/f.java @@ -0,0 +1,4 @@ +package b.f.j.e; +/* compiled from: FileCacheFactory */ +public interface f { +} diff --git a/app/src/main/java/b/f/j/e/g.java b/app/src/main/java/b/f/j/e/g.java new file mode 100644 index 0000000000..f93236110b --- /dev/null +++ b/app/src/main/java/b/f/j/e/g.java @@ -0,0 +1,9 @@ +package b.f.j.e; + +import b.f.d.d.j; +import com.facebook.cache.common.CacheKey; +/* compiled from: ImagePipeline */ +public class g implements j { + public g(h hVar) { + } +} diff --git a/app/src/main/java/b/f/j/e/h.java b/app/src/main/java/b/f/j/e/h.java new file mode 100644 index 0000000000..70dc5aad36 --- /dev/null +++ b/app/src/main/java/b/f/j/e/h.java @@ -0,0 +1,147 @@ +package b.f.j.e; + +import b.f.c.a; +import b.f.j.c.f; +import b.f.j.c.i; +import b.f.j.c.w; +import b.f.j.j.c; +import b.f.j.k.b; +import b.f.j.k.d; +import b.f.j.k.e; +import b.f.j.p.b0; +import b.f.j.p.c1; +import b.f.j.p.f1; +import b.f.j.p.v0; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.internal.Supplier; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import com.facebook.datasource.DataSource; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.Set; +import java.util.concurrent.CancellationException; +import java.util.concurrent.atomic.AtomicLong; +/* compiled from: ImagePipeline */ +public class h { + public final p a; + + /* renamed from: b reason: collision with root package name */ + public final e f557b; + public final d c; + public final Supplier d; + public final w e; + public final w f; + public final i g; + public final Supplier h; + public AtomicLong i = new AtomicLong(); + public final Supplier j; + public final a k; + public final j l; + + static { + new CancellationException("Prefetching is not enabled"); + } + + public h(p pVar, Set set, Set set2, Supplier supplier, w wVar, w wVar2, f fVar, f fVar2, i iVar, f1 f1Var, Supplier supplier2, Supplier supplier3, a aVar, j jVar) { + this.a = pVar; + this.f557b = new b.f.j.k.c(set); + this.c = new b(set2); + this.d = supplier; + this.e = wVar; + this.f = wVar2; + this.g = iVar; + this.h = supplier2; + this.j = null; + this.k = null; + this.l = jVar; + } + + public DataSource> a(ImageRequest imageRequest, Object obj, ImageRequest.c cVar, e eVar, String str) { + try { + return b(this.a.c(imageRequest), imageRequest, cVar, obj, eVar, str); + } catch (Exception e) { + return b.c.a.a0.d.M0(e); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:13:0x0051 */ + /* JADX WARNING: Removed duplicated region for block: B:17:0x006d A[Catch:{ Exception -> 0x009b, all -> 0x0099 }] */ + public final DataSource> b(v0> v0Var, ImageRequest imageRequest, ImageRequest.c cVar, Object obj, e eVar, String str) { + e eVar2; + a aVar; + boolean z2; + b.f.j.k.c cVar2; + b.f.j.r.b.b(); + if (eVar == null) { + e eVar3 = imageRequest.r; + if (eVar3 == null) { + eVar2 = this.f557b; + b0 b0Var = new b0(eVar2, this.c); + aVar = this.k; + if (aVar != null) { + aVar.a(obj, false); + } + ImageRequest.c f = ImageRequest.c.f(imageRequest.m, cVar); + String valueOf = String.valueOf(this.i.getAndIncrement()); + if (!imageRequest.f) { + if (b.f.d.l.b.e(imageRequest.c)) { + z2 = false; + c1 c1Var = new c1(imageRequest, valueOf, str, b0Var, obj, f, false, z2, imageRequest.l, this.l); + b.f.j.r.b.b(); + b.f.j.f.d dVar = new b.f.j.f.d(v0Var, c1Var, b0Var); + b.f.j.r.b.b(); + return dVar; + } + } + z2 = true; + c1 c1Var = new c1(imageRequest, valueOf, str, b0Var, obj, f, false, z2, imageRequest.l, this.l); + b.f.j.r.b.b(); + b.f.j.f.d dVar = new b.f.j.f.d(v0Var, c1Var, b0Var); + b.f.j.r.b.b(); + return dVar; + } + cVar2 = new b.f.j.k.c(this.f557b, eVar3); + } else { + e eVar4 = imageRequest.r; + if (eVar4 == null) { + eVar2 = new b.f.j.k.c(this.f557b, eVar); + b0 b0Var = new b0(eVar2, this.c); + aVar = this.k; + if (aVar != null) { + } + ImageRequest.c f = ImageRequest.c.f(imageRequest.m, cVar); + String valueOf = String.valueOf(this.i.getAndIncrement()); + if (!imageRequest.f) { + } + z2 = true; + c1 c1Var = new c1(imageRequest, valueOf, str, b0Var, obj, f, false, z2, imageRequest.l, this.l); + b.f.j.r.b.b(); + b.f.j.f.d dVar = new b.f.j.f.d(v0Var, c1Var, b0Var); + b.f.j.r.b.b(); + return dVar; + } + cVar2 = new b.f.j.k.c(this.f557b, eVar, eVar4); + } + eVar2 = cVar2; + b0 b0Var = new b0(eVar2, this.c); + aVar = this.k; + if (aVar != null) { + } + try { + ImageRequest.c f = ImageRequest.c.f(imageRequest.m, cVar); + String valueOf = String.valueOf(this.i.getAndIncrement()); + if (!imageRequest.f) { + } + z2 = true; + c1 c1Var = new c1(imageRequest, valueOf, str, b0Var, obj, f, false, z2, imageRequest.l, this.l); + b.f.j.r.b.b(); + b.f.j.f.d dVar = new b.f.j.f.d(v0Var, c1Var, b0Var); + b.f.j.r.b.b(); + return dVar; + } catch (Exception e) { + return b.c.a.a0.d.M0(e); + } finally { + b.f.j.r.b.b(); + } + } +} diff --git a/app/src/main/java/b/f/j/e/i.java b/app/src/main/java/b/f/j/e/i.java new file mode 100644 index 0000000000..df88b28249 --- /dev/null +++ b/app/src/main/java/b/f/j/e/i.java @@ -0,0 +1,14 @@ +package b.f.j.e; + +import com.facebook.common.internal.Supplier; +/* compiled from: ImagePipelineConfig */ +public class i implements Supplier { + public i(j jVar) { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // com.facebook.common.internal.Supplier + public /* bridge */ /* synthetic */ Boolean get() { + return Boolean.TRUE; + } +} diff --git a/app/src/main/java/b/f/j/e/j.java b/app/src/main/java/b/f/j/e/j.java new file mode 100644 index 0000000000..f15a32137a --- /dev/null +++ b/app/src/main/java/b/f/j/e/j.java @@ -0,0 +1,155 @@ +package b.f.j.e; + +import android.app.ActivityManager; +import android.content.Context; +import android.graphics.Bitmap; +import androidx.appcompat.widget.ActivityChooserModel; +import b.f.d.g.c; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.c.o; +import b.f.j.c.r; +import b.f.j.c.w; +import b.f.j.c.z; +import b.f.j.e.k; +import b.f.j.k.d; +import b.f.j.k.e; +import b.f.j.l.w; +import b.f.j.l.x; +import b.f.j.p.a0; +import b.f.j.p.n0; +import com.facebook.cache.disk.DiskCacheConfig; +import com.facebook.common.internal.Supplier; +import com.facebook.imagepipeline.cache.DefaultBitmapMemoryCacheParamsSupplier; +import com.facebook.imagepipeline.cache.MemoryCacheParams; +import java.util.HashSet; +import java.util.Objects; +import java.util.Set; +/* compiled from: ImagePipelineConfig */ +public class j { + public static b a = new b(null); + + /* renamed from: b reason: collision with root package name */ + public final Bitmap.Config f558b; + public final Supplier c; + public final w.a d; + public final i e; + public final Context f; + public final boolean g; + public final f h; + public final Supplier i; + public final e j; + public final r k; + public final Supplier l; + public final DiskCacheConfig m; + public final c n; + public final n0 o; + public final int p; + public final x q; + public final b.f.j.h.c r; + + /* renamed from: s reason: collision with root package name */ + public final Set f559s; + public final Set t; + public final boolean u; + public final DiskCacheConfig v; + public final k w; + + /* renamed from: x reason: collision with root package name */ + public final boolean f560x; + + /* renamed from: y reason: collision with root package name */ + public final b.f.j.g.a f561y; + + /* renamed from: z reason: collision with root package name */ + public final b.f.j.c.a f562z; + + /* compiled from: ImagePipelineConfig */ + public static class a { + public Supplier a; + + /* renamed from: b reason: collision with root package name */ + public final Context f563b; + public boolean c = false; + public DiskCacheConfig d; + public DiskCacheConfig e; + public final k.b f = new k.b(this); + public boolean g = true; + public b.f.j.g.a h = new b.f.j.g.a(); + + public a(Context context, i iVar) { + Objects.requireNonNull(context); + this.f563b = context; + } + } + + /* compiled from: ImagePipelineConfig */ + public static class b { + public b(i iVar) { + } + } + + /* JADX INFO: finally extract failed */ + public j(a aVar, i iVar) { + n nVar; + z zVar; + b.f.j.r.b.b(); + this.w = new k(aVar.f, null); + Supplier supplier = aVar.a; + this.c = supplier == null ? new DefaultBitmapMemoryCacheParamsSupplier((ActivityManager) aVar.f563b.getSystemService(ActivityChooserModel.ATTRIBUTE_ACTIVITY)) : supplier; + this.d = new b.f.j.c.c(); + this.f558b = Bitmap.Config.ARGB_8888; + synchronized (n.class) { + if (n.a == null) { + n.a = new n(); + } + nVar = n.a; + } + this.e = nVar; + Context context = aVar.f563b; + Objects.requireNonNull(context); + this.f = context; + this.h = new c(new d()); + this.g = aVar.c; + this.i = new o(); + synchronized (z.class) { + if (z.a == null) { + z.a = new z(); + } + zVar = z.a; + } + this.k = zVar; + this.l = new i(this); + DiskCacheConfig diskCacheConfig = aVar.d; + if (diskCacheConfig == null) { + Context context2 = aVar.f563b; + try { + b.f.j.r.b.b(); + diskCacheConfig = new DiskCacheConfig(new DiskCacheConfig.b(context2, null)); + b.f.j.r.b.b(); + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } + this.m = diskCacheConfig; + this.n = b.f.d.g.d.b(); + this.p = 30000; + b.f.j.r.b.b(); + this.o = new a0(30000); + b.f.j.r.b.b(); + x xVar = new x(new b.f.j.l.w(new w.b(null), null)); + this.q = xVar; + this.r = new b.f.j.h.e(); + this.f559s = new HashSet(); + this.t = new HashSet(); + this.u = true; + DiskCacheConfig diskCacheConfig2 = aVar.e; + this.v = diskCacheConfig2 != null ? diskCacheConfig2 : diskCacheConfig; + this.j = new b(xVar.b()); + this.f560x = aVar.g; + this.f561y = aVar.h; + this.f562z = new b.f.j.c.k(); + b.f.j.r.b.b(); + } +} diff --git a/app/src/main/java/b/f/j/e/k.java b/app/src/main/java/b/f/j/e/k.java new file mode 100644 index 0000000000..bb892c92cd --- /dev/null +++ b/app/src/main/java/b/f/j/e/k.java @@ -0,0 +1,47 @@ +package b.f.j.e; + +import b.f.j.e.j; +import com.facebook.common.internal.Supplier; +import java.util.Objects; +/* compiled from: ImagePipelineExperiments */ +public class k { + public final int a = 2048; + + /* renamed from: b reason: collision with root package name */ + public final d f564b = new c(); + public final boolean c; + public final Supplier d; + public boolean e; + public final boolean f; + public final int g; + + /* compiled from: ImagePipelineExperiments */ + public static class b { + public final j.a a; + + /* renamed from: b reason: collision with root package name */ + public boolean f565b; + public Supplier c = new b.f.d.d.k(Boolean.FALSE); + + public b(j.a aVar) { + this.a = aVar; + } + } + + /* compiled from: ImagePipelineExperiments */ + public static class c implements d { + } + + /* compiled from: ImagePipelineExperiments */ + public interface d { + } + + public k(b bVar, a aVar) { + Objects.requireNonNull(bVar); + this.c = bVar.f565b; + this.d = bVar.c; + this.e = true; + this.f = true; + this.g = 20; + } +} diff --git a/app/src/main/java/b/f/j/e/l.java b/app/src/main/java/b/f/j/e/l.java new file mode 100644 index 0000000000..ab37fac40f --- /dev/null +++ b/app/src/main/java/b/f/j/e/l.java @@ -0,0 +1,300 @@ +package b.f.j.e; + +import android.content.ContentResolver; +import android.content.Context; +import android.os.Build; +import androidx.core.util.Pools; +import b.f.b.b.h; +import b.f.d.g.g; +import b.f.j.a.b.a; +import b.f.j.c.f; +import b.f.j.c.i; +import b.f.j.c.j; +import b.f.j.c.m; +import b.f.j.c.p; +import b.f.j.c.q; +import b.f.j.c.r; +import b.f.j.c.s; +import b.f.j.c.t; +import b.f.j.c.v; +import b.f.j.c.w; +import b.f.j.c.y; +import b.f.j.c.z; +import b.f.j.e.k; +import b.f.j.h.b; +import b.f.j.j.c; +import b.f.j.l.x; +import b.f.j.n.d; +import b.f.j.p.f1; +import b.f.j.p.g1; +import b.f.j.p.n0; +import b.f.j.s.e; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.internal.Supplier; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +import com.facebook.imagepipeline.cache.MemoryCacheParams; +import java.util.Collections; +import java.util.Objects; +import java.util.Set; +/* compiled from: ImagePipelineFactory */ +public class l { + public static l a; + + /* renamed from: b reason: collision with root package name */ + public final f1 f566b; + public final j c; + public final a d; + public m e; + public s f; + public m g; + public s h; + public f i; + public h j; + public b k; + public h l; + public b.f.j.s.c m; + public o n; + public p o; + public f p; + public h q; + public PlatformBitmapFactory r; + + /* renamed from: s reason: collision with root package name */ + public d f567s; + public a t; + + public l(j jVar) { + b.f.j.r.b.b(); + Objects.requireNonNull(jVar); + this.c = jVar; + Objects.requireNonNull(jVar.w); + this.f566b = new g1(jVar.j.b()); + Objects.requireNonNull(jVar.w); + CloseableReference.k = 0; + this.d = new a(jVar.f561y); + b.f.j.r.b.b(); + } + + public static synchronized void j(j jVar) { + synchronized (l.class) { + if (a != null) { + b.f.d.e.a.k(l.class, "ImagePipelineFactory has already been initialized! `ImagePipelineFactory.initialize(...)` should only be called once to avoid unexpected behavior."); + } + a = new l(jVar); + } + } + + public final h a() { + b bVar; + if (Build.VERSION.SDK_INT >= 24) { + Objects.requireNonNull(this.c.w); + } + if (this.o == null) { + ContentResolver contentResolver = this.c.f.getApplicationContext().getContentResolver(); + if (this.n == null) { + j jVar = this.c; + k.d dVar = jVar.w.f564b; + Context context = jVar.f; + b.f.d.g.a f = jVar.q.f(); + if (this.k == null) { + Objects.requireNonNull(this.c); + a b2 = b(); + b bVar2 = null; + if (b2 != null) { + bVar2 = b2.b(this.c.f558b); + bVar = b2.c(this.c.f558b); + } else { + bVar = null; + } + Objects.requireNonNull(this.c); + this.k = new b.f.j.h.a(bVar2, bVar, h()); + } + b bVar3 = this.k; + j jVar2 = this.c; + b.f.j.h.c cVar = jVar2.r; + boolean z2 = jVar2.g; + boolean z3 = jVar2.u; + Objects.requireNonNull(jVar2.w); + j jVar3 = this.c; + e eVar = jVar3.j; + g d = jVar3.q.d(0); + this.c.q.e(); + s d2 = d(); + s e = e(); + f f2 = f(); + f i = i(); + i iVar = this.c.e; + PlatformBitmapFactory g = g(); + Objects.requireNonNull(this.c.w); + Objects.requireNonNull(this.c.w); + Objects.requireNonNull(this.c.w); + k kVar = this.c.w; + int i2 = kVar.a; + a aVar = this.d; + int i3 = kVar.g; + Objects.requireNonNull((k.c) dVar); + this.n = new o(context, f, bVar3, cVar, z2, z3, false, eVar, d, d2, e, f2, i, iVar, g, 0, 0, false, i2, aVar, false, i3); + } + o oVar = this.n; + j jVar4 = this.c; + n0 n0Var = jVar4.o; + boolean z4 = jVar4.u; + Objects.requireNonNull(jVar4.w); + f1 f1Var = this.f566b; + j jVar5 = this.c; + boolean z5 = jVar5.g; + Objects.requireNonNull(jVar5.w); + j jVar6 = this.c; + boolean z6 = jVar6.f560x; + if (this.m == null) { + Objects.requireNonNull(jVar6.w); + k kVar2 = this.c.w; + this.m = new e(kVar2.a, false, null, null, kVar2.f); + } + b.f.j.s.c cVar2 = this.m; + Objects.requireNonNull(this.c.w); + Objects.requireNonNull(this.c.w); + Objects.requireNonNull(this.c.w); + Objects.requireNonNull(this.c.w); + this.o = new p(contentResolver, oVar, n0Var, z4, false, f1Var, z5, false, false, z6, cVar2, false, false, false, false); + } + p pVar = this.o; + Set unmodifiableSet = Collections.unmodifiableSet(this.c.f559s); + Set unmodifiableSet2 = Collections.unmodifiableSet(this.c.t); + Supplier supplier = this.c.l; + s d3 = d(); + s e2 = e(); + f f3 = f(); + f i4 = i(); + j jVar7 = this.c; + i iVar2 = jVar7.e; + f1 f1Var2 = this.f566b; + Supplier supplier2 = jVar7.w.d; + Objects.requireNonNull(jVar7); + return new h(pVar, unmodifiableSet, unmodifiableSet2, supplier, d3, e2, f3, i4, iVar2, f1Var2, supplier2, null, null, this.c); + } + + public final a b() { + if (this.t == null) { + PlatformBitmapFactory g = g(); + e eVar = this.c.j; + m c = c(); + boolean z2 = this.c.w.c; + if (!b.f.j.a.b.b.a) { + try { + b.f.j.a.b.b.f536b = (a) Class.forName("com.facebook.fresco.animation.factory.AnimatedFactoryV2Impl").getConstructor(PlatformBitmapFactory.class, e.class, m.class, Boolean.TYPE).newInstance(g, eVar, c, Boolean.valueOf(z2)); + } catch (Throwable unused) { + } + if (b.f.j.a.b.b.f536b != null) { + b.f.j.a.b.b.a = true; + } + } + this.t = b.f.j.a.b.b.f536b; + } + return this.t; + } + + public m c() { + if (this.e == null) { + j jVar = this.c; + b.f.j.c.a aVar = jVar.f562z; + Supplier supplier = jVar.c; + b.f.d.g.c cVar = jVar.n; + w.a aVar2 = jVar.d; + b.f.j.c.k kVar = (b.f.j.c.k) aVar; + Objects.requireNonNull(kVar); + v vVar = new v(new j(kVar), aVar2, supplier, null); + cVar.a(vVar); + this.e = vVar; + } + return this.e; + } + + public s d() { + if (this.f == null) { + m c = c(); + r rVar = this.c.k; + Objects.requireNonNull((z) rVar); + this.f = new s<>(c, new t(rVar)); + } + return this.f; + } + + public s e() { + if (this.h == null) { + Objects.requireNonNull(this.c); + if (this.g == null) { + j jVar = this.c; + Supplier supplier = jVar.i; + b.f.d.g.c cVar = jVar.n; + v vVar = new v(new p(), new y(), supplier, null); + cVar.a(vVar); + this.g = vVar; + } + m mVar = this.g; + r rVar = this.c.k; + Objects.requireNonNull((z) rVar); + this.h = new s<>(mVar, new q(rVar)); + } + return this.h; + } + + public f f() { + if (this.i == null) { + if (this.j == null) { + j jVar = this.c; + this.j = ((c) jVar.h).a(jVar.m); + } + h hVar = this.j; + j jVar2 = this.c; + x xVar = jVar2.q; + Objects.requireNonNull(jVar2); + this.i = new f(hVar, xVar.d(0), this.c.q.e(), this.c.j.e(), this.c.j.d(), this.c.k); + } + return this.i; + } + + public PlatformBitmapFactory g() { + if (this.r == null) { + x xVar = this.c.q; + h(); + this.r = new b.f.j.b.a(xVar.a(), this.d); + } + return this.r; + } + + public d h() { + d dVar; + if (this.f567s == null) { + j jVar = this.c; + x xVar = jVar.q; + Objects.requireNonNull(jVar.w); + if (Build.VERSION.SDK_INT >= 26) { + int b2 = xVar.b(); + dVar = new b.f.j.n.c(xVar.a(), b2, new Pools.SynchronizedPool(b2)); + } else { + int b3 = xVar.b(); + dVar = new b.f.j.n.a(xVar.a(), b3, new Pools.SynchronizedPool(b3)); + } + this.f567s = dVar; + } + return this.f567s; + } + + public final f i() { + if (this.p == null) { + if (this.q == null) { + j jVar = this.c; + this.q = ((c) jVar.h).a(jVar.v); + } + h hVar = this.q; + j jVar2 = this.c; + x xVar = jVar2.q; + Objects.requireNonNull(jVar2); + this.p = new f(hVar, xVar.d(0), this.c.q.e(), this.c.j.e(), this.c.j.d(), this.c.k); + } + return this.p; + } +} diff --git a/app/src/main/java/b/f/j/e/m.java b/app/src/main/java/b/f/j/e/m.java new file mode 100644 index 0000000000..65bf3e6076 --- /dev/null +++ b/app/src/main/java/b/f/j/e/m.java @@ -0,0 +1,5 @@ +package b.f.j.e; +/* compiled from: NativeCodeSetup */ +public class m { + public static boolean a = true; +} diff --git a/app/src/main/java/b/f/j/e/n.java b/app/src/main/java/b/f/j/e/n.java new file mode 100644 index 0000000000..b39178956d --- /dev/null +++ b/app/src/main/java/b/f/j/e/n.java @@ -0,0 +1,48 @@ +package b.f.j.e; + +import android.os.Process; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: PriorityThreadFactory */ +public class n implements ThreadFactory { + public final int j; + public final String k; + public final boolean l; + public final AtomicInteger m = new AtomicInteger(1); + + /* compiled from: PriorityThreadFactory */ + public class a implements Runnable { + public final /* synthetic */ Runnable j; + + public a(Runnable runnable) { + this.j = runnable; + } + + @Override // java.lang.Runnable + public void run() { + try { + Process.setThreadPriority(n.this.j); + } catch (Throwable unused) { + } + this.j.run(); + } + } + + public n(int i, String str, boolean z2) { + this.j = i; + this.k = str; + this.l = z2; + } + + @Override // java.util.concurrent.ThreadFactory + public Thread newThread(Runnable runnable) { + String str; + a aVar = new a(runnable); + if (this.l) { + str = this.k + "-" + this.m.getAndIncrement(); + } else { + str = this.k; + } + return new Thread(aVar, str); + } +} diff --git a/app/src/main/java/b/f/j/e/o.java b/app/src/main/java/b/f/j/e/o.java new file mode 100644 index 0000000000..b2c34fcded --- /dev/null +++ b/app/src/main/java/b/f/j/e/o.java @@ -0,0 +1,88 @@ +package b.f.j.e; + +import android.content.ContentResolver; +import android.content.Context; +import android.content.res.AssetManager; +import android.content.res.Resources; +import b.f.d.g.a; +import b.f.d.g.g; +import b.f.j.c.d; +import b.f.j.c.f; +import b.f.j.c.i; +import b.f.j.c.w; +import b.f.j.h.b; +import b.f.j.h.c; +import b.f.j.j.e; +import b.f.j.p.b1; +import b.f.j.p.v0; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +/* compiled from: ProducerFactory */ +public class o { + public ContentResolver a; + + /* renamed from: b reason: collision with root package name */ + public Resources f568b; + public AssetManager c; + public final a d; + public final b e; + public final c f; + public final boolean g; + public final boolean h; + public final boolean i; + public final e j; + public final g k; + public final f l; + public final f m; + public final w n; + public final w o; + public final i p; + public final d q; + public final d r; + + /* renamed from: s reason: collision with root package name */ + public final PlatformBitmapFactory f569s; + public final int t; + public final int u; + public boolean v; + public final a w; + + /* renamed from: x reason: collision with root package name */ + public final int f570x; + + /* renamed from: y reason: collision with root package name */ + public final boolean f571y; + + public o(Context context, a aVar, b bVar, c cVar, boolean z2, boolean z3, boolean z4, e eVar, g gVar, w wVar, w wVar2, f fVar, f fVar2, i iVar, PlatformBitmapFactory platformBitmapFactory, int i, int i2, boolean z5, int i3, a aVar2, boolean z6, int i4) { + this.a = context.getApplicationContext().getContentResolver(); + this.f568b = context.getApplicationContext().getResources(); + this.c = context.getApplicationContext().getAssets(); + this.d = aVar; + this.e = bVar; + this.f = cVar; + this.g = z2; + this.h = z3; + this.i = z4; + this.j = eVar; + this.k = gVar; + this.o = wVar; + this.n = wVar2; + this.l = fVar; + this.m = fVar2; + this.p = iVar; + this.f569s = platformBitmapFactory; + this.q = new d<>(i4); + this.r = new d<>(i4); + this.t = i; + this.u = i2; + this.v = z5; + this.f570x = i3; + this.w = aVar2; + this.f571y = z6; + } + + public b1 a(v0 v0Var, boolean z2, b.f.j.s.c cVar) { + return new b1(this.j.c(), this.k, v0Var, z2, cVar); + } +} diff --git a/app/src/main/java/b/f/j/e/p.java b/app/src/main/java/b/f/j/e/p.java new file mode 100644 index 0000000000..bbd5775cf0 --- /dev/null +++ b/app/src/main/java/b/f/j/e/p.java @@ -0,0 +1,374 @@ +package b.f.j.e; + +import android.content.ContentResolver; +import android.net.Uri; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.f.d.d.l; +import b.f.j.c.w; +import b.f.j.j.e; +import b.f.j.p.a; +import b.f.j.p.a1; +import b.f.j.p.d0; +import b.f.j.p.e0; +import b.f.j.p.e1; +import b.f.j.p.f; +import b.f.j.p.f0; +import b.f.j.p.f1; +import b.f.j.p.g; +import b.f.j.p.h; +import b.f.j.p.h0; +import b.f.j.p.h1; +import b.f.j.p.i; +import b.f.j.p.i0; +import b.f.j.p.i1; +import b.f.j.p.j; +import b.f.j.p.j0; +import b.f.j.p.j1; +import b.f.j.p.k; +import b.f.j.p.m; +import b.f.j.p.m0; +import b.f.j.p.n; +import b.f.j.p.n0; +import b.f.j.p.o; +import b.f.j.p.q0; +import b.f.j.p.r0; +import b.f.j.p.s; +import b.f.j.p.s0; +import b.f.j.p.t; +import b.f.j.p.u; +import b.f.j.p.v; +import b.f.j.p.v0; +import b.f.j.r.b; +import b.f.j.s.c; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.producers.LocalExifThumbnailProducer; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/* compiled from: ProducerSequenceFactory */ +public class p { + public final ContentResolver a; + + /* renamed from: b reason: collision with root package name */ + public final o f572b; + public final n0 c; + public final boolean d; + public final boolean e; + public final f1 f; + public final boolean g; + public final boolean h; + public final boolean i; + public final c j; + public final boolean k; + public final boolean l; + public final boolean m; + @Nullable + @VisibleForTesting + public v0> n; + @Nullable + public v0 o; + @Nullable + @VisibleForTesting + public v0> p; + @Nullable + @VisibleForTesting + public v0> q; + @Nullable + @VisibleForTesting + public v0> r; + @Nullable + @VisibleForTesting + + /* renamed from: s reason: collision with root package name */ + public v0> f573s; + @Nullable + @VisibleForTesting + public v0> t; + @Nullable + @VisibleForTesting + public v0> u; + @Nullable + @VisibleForTesting + public v0> v; + @VisibleForTesting + public Map>, v0>> w = new HashMap(); + @VisibleForTesting + + /* renamed from: x reason: collision with root package name */ + public Map>, v0>> f574x; + + public p(ContentResolver contentResolver, o oVar, n0 n0Var, boolean z2, boolean z3, f1 f1Var, boolean z4, boolean z5, boolean z6, boolean z7, c cVar, boolean z8, boolean z9, boolean z10, boolean z11) { + this.a = contentResolver; + this.f572b = oVar; + this.c = n0Var; + this.d = z2; + new HashMap(); + this.f574x = new HashMap(); + this.f = f1Var; + this.g = z4; + this.h = z5; + this.e = z6; + this.i = z7; + this.j = cVar; + this.k = z8; + this.l = z9; + this.m = z11; + } + + public final synchronized v0 a() { + b.b(); + if (this.o == null) { + b.b(); + o oVar = this.f572b; + v0 m = m(new m0(oVar.k, oVar.d, this.c)); + Objects.requireNonNull(m); + a aVar = new a(m); + this.o = aVar; + this.o = this.f572b.a(aVar, this.d && !this.g, this.j); + b.b(); + } + b.b(); + return this.o; + } + + public final synchronized v0> b() { + if (this.u == null) { + m mVar = new m(this.f572b.k); + b.f.d.m.b bVar = b.f.d.m.c.a; + this.u = j(this.f572b.a(new a(mVar), true, this.j)); + } + return this.u; + } + + /* JADX INFO: finally extract failed */ + public v0> c(ImageRequest imageRequest) { + r0 r0Var; + o oVar; + b.b(); + try { + b.b(); + Objects.requireNonNull(imageRequest); + Uri uri = imageRequest.c; + d.y(uri, "Uri is null."); + int i = imageRequest.d; + if (i != 0) { + boolean z2 = false; + switch (i) { + case 2: + r0Var = g(); + break; + case 3: + synchronized (this) { + if (this.p == null) { + o oVar2 = this.f572b; + this.p = k(new h0(oVar2.j.e(), oVar2.k)); + } + r0Var = this.p; + break; + } + case 4: + String type = this.a.getType(uri); + Map map = b.f.d.f.a.a; + if (type != null && type.startsWith("video/")) { + z2 = true; + } + if (!z2) { + r0Var = e(); + break; + } else { + r0Var = g(); + break; + } + case 5: + r0Var = d(); + break; + case 6: + r0Var = f(); + break; + case 7: + r0Var = b(); + break; + case 8: + r0Var = h(); + break; + default: + StringBuilder sb = new StringBuilder(); + sb.append("Unsupported uri scheme! Uri is: "); + String valueOf = String.valueOf(uri); + if (valueOf.length() > 30) { + valueOf = valueOf.substring(0, 30) + "..."; + } + sb.append(valueOf); + throw new IllegalArgumentException(sb.toString()); + } + } else { + synchronized (this) { + b.b(); + if (this.n == null) { + b.b(); + this.n = j(a()); + b.b(); + } + b.b(); + r0Var = this.n; + } + } + b.b(); + if (imageRequest.q != null) { + synchronized (this) { + v0> v0Var = this.w.get(r0Var); + if (v0Var == null) { + o oVar3 = this.f572b; + s0 s0Var = new s0(r0Var, oVar3.f569s, oVar3.j.c()); + o oVar4 = this.f572b; + r0 r0Var2 = new r0(oVar4.o, oVar4.p, s0Var); + this.w.put(r0Var, r0Var2); + r0Var = r0Var2; + } else { + r0Var = v0Var; + } + } + } + if (this.h) { + synchronized (this) { + v0> v0Var2 = this.f574x.get(r0Var); + if (v0Var2 == null) { + o oVar5 = this.f572b; + i iVar = new i(r0Var, oVar5.t, oVar5.u, oVar5.v); + this.f574x.put(r0Var, iVar); + r0Var = iVar; + } else { + r0Var = v0Var2; + } + } + } + if (this.m && imageRequest.f2861s > 0) { + synchronized (this) { + oVar = new o(r0Var, this.f572b.j.g()); + } + r0Var = oVar; + } + b.b(); + return r0Var; + } catch (Throwable th) { + b.b(); + throw th; + } + } + + public final synchronized v0> d() { + if (this.t == null) { + o oVar = this.f572b; + this.t = k(new d0(oVar.j.e(), oVar.k, oVar.c)); + } + return this.t; + } + + public final synchronized v0> e() { + if (this.r == null) { + o oVar = this.f572b; + e0 e0Var = new e0(oVar.j.e(), oVar.k, oVar.a); + o oVar2 = this.f572b; + Objects.requireNonNull(oVar2); + o oVar3 = this.f572b; + this.r = l(e0Var, new j1[]{new f0(oVar2.j.e(), oVar2.k, oVar2.a), new LocalExifThumbnailProducer(oVar3.j.f(), oVar3.k, oVar3.a)}); + } + return this.r; + } + + public final synchronized v0> f() { + if (this.f573s == null) { + o oVar = this.f572b; + this.f573s = k(new i0(oVar.j.e(), oVar.k, oVar.f568b)); + } + return this.f573s; + } + + public final synchronized v0> g() { + if (this.q == null) { + o oVar = this.f572b; + this.q = i(new j0(oVar.j.e(), oVar.a)); + } + return this.q; + } + + public final synchronized v0> h() { + if (this.v == null) { + o oVar = this.f572b; + this.v = k(new a1(oVar.j.e(), oVar.k, oVar.a)); + } + return this.v; + } + + public final v0> i(v0> v0Var) { + o oVar = this.f572b; + w wVar = oVar.o; + b.f.j.c.i iVar = oVar.p; + g gVar = new g(iVar, new h(wVar, iVar, v0Var)); + o oVar2 = this.f572b; + f1 f1Var = this.f; + Objects.requireNonNull(oVar2); + e1 e1Var = new e1(gVar, f1Var); + if (this.k || this.l) { + o oVar3 = this.f572b; + w wVar2 = oVar3.o; + b.f.j.c.i iVar2 = oVar3.p; + return new j(oVar3.n, oVar3.l, oVar3.m, iVar2, oVar3.q, oVar3.r, new f(wVar2, iVar2, e1Var)); + } + o oVar4 = this.f572b; + return new f(oVar4.o, oVar4.p, e1Var); + } + + public final v0> j(v0 v0Var) { + b.b(); + o oVar = this.f572b; + v0> i = i(new n(oVar.d, oVar.j.a(), oVar.e, oVar.f, oVar.g, oVar.h, oVar.i, v0Var, oVar.f570x, oVar.w, null, l.a)); + b.b(); + return i; + } + + public final v0> k(v0 v0Var) { + o oVar = this.f572b; + return l(v0Var, new j1[]{new LocalExifThumbnailProducer(oVar.j.f(), oVar.k, oVar.a)}); + } + + public final v0> l(v0 v0Var, j1[] j1VarArr) { + h1 h1Var = new h1(5, this.f572b.j.b(), this.f572b.a(new a(m(v0Var)), true, this.j)); + Objects.requireNonNull(this.f572b); + return j(new k(this.f572b.a(new i1(j1VarArr), true, this.j), h1Var)); + } + + public final v0 m(v0 v0Var) { + t tVar; + b.f.d.m.b bVar = b.f.d.m.c.a; + if (this.i) { + b.b(); + if (this.e) { + o oVar = this.f572b; + b.f.j.c.f fVar = oVar.l; + b.f.j.c.i iVar = oVar.p; + tVar = new t(fVar, oVar.m, iVar, new q0(fVar, iVar, oVar.k, oVar.d, v0Var)); + } else { + o oVar2 = this.f572b; + tVar = new t(oVar2.l, oVar2.m, oVar2.p, v0Var); + } + o oVar3 = this.f572b; + s sVar = new s(oVar3.l, oVar3.m, oVar3.p, tVar); + b.b(); + v0Var = sVar; + } + o oVar4 = this.f572b; + w wVar = oVar4.n; + b.f.j.c.i iVar2 = oVar4.p; + v vVar = new v(wVar, iVar2, v0Var); + if (!this.l) { + return new u(iVar2, oVar4.f571y, vVar); + } + return new u(iVar2, oVar4.f571y, new b.f.j.p.w(oVar4.l, oVar4.m, iVar2, oVar4.q, oVar4.r, vVar)); + } +} diff --git a/app/src/main/java/b/f/j/f/a.java b/app/src/main/java/b/f/j/f/a.java new file mode 100644 index 0000000000..3969f456a9 --- /dev/null +++ b/app/src/main/java/b/f/j/f/a.java @@ -0,0 +1,51 @@ +package b.f.j.f; + +import b.c.a.a0.d; +import b.f.j.p.b; +import b.f.j.p.c1; +import com.facebook.common.references.CloseableReference; +import java.util.Objects; +/* compiled from: AbstractProducerToDataSourceAdapter */ +public class a extends b { + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ b f575b; + + public a(b bVar) { + this.f575b = bVar; + } + + @Override // b.f.j.p.b + public void g() { + b bVar = this.f575b; + synchronized (bVar) { + d.B(bVar.i()); + } + } + + @Override // b.f.j.p.b + public void h(Throwable th) { + b bVar = this.f575b; + if (bVar.k(th, bVar.h.a())) { + bVar.i.h(bVar.h, th); + } + } + + @Override // b.f.j.p.b + public void i(T t, int i) { + b bVar = this.f575b; + c1 c1Var = bVar.h; + d dVar = (d) bVar; + Objects.requireNonNull(dVar); + CloseableReference n = CloseableReference.n(t); + boolean e = b.e(i); + if (dVar.m(n, e, c1Var.a()) && e) { + dVar.i.f(dVar.h); + } + } + + @Override // b.f.j.p.b + public void j(float f) { + this.f575b.l(f); + } +} diff --git a/app/src/main/java/b/f/j/f/b.java b/app/src/main/java/b/f/j/f/b.java new file mode 100644 index 0000000000..c436f6fa7d --- /dev/null +++ b/app/src/main/java/b/f/j/f/b.java @@ -0,0 +1,38 @@ +package b.f.j.f; + +import b.f.e.c; +import b.f.j.k.d; +import b.f.j.p.c1; +import b.f.j.p.v0; +/* compiled from: AbstractProducerToDataSourceAdapter */ +public abstract class b extends c { + public final c1 h; + public final d i; + + public b(v0 v0Var, c1 c1Var, d dVar) { + b.f.j.r.b.b(); + this.h = c1Var; + this.i = dVar; + this.a = c1Var.h; + b.f.j.r.b.b(); + dVar.b(c1Var); + b.f.j.r.b.b(); + b.f.j.r.b.b(); + v0Var.b(new a(this), c1Var); + b.f.j.r.b.b(); + b.f.j.r.b.b(); + } + + @Override // b.f.e.c, com.facebook.datasource.DataSource + public boolean close() { + if (!super.close()) { + return false; + } + if (c()) { + return true; + } + this.i.i(this.h); + this.h.u(); + return true; + } +} diff --git a/app/src/main/java/b/f/j/f/c.java b/app/src/main/java/b/f/j/f/c.java new file mode 100644 index 0000000000..e5ed704178 --- /dev/null +++ b/app/src/main/java/b/f/j/f/c.java @@ -0,0 +1,30 @@ +package b.f.j.f; + +import android.graphics.Bitmap; +import b.f.e.d; +import b.f.j.j.b; +import com.facebook.common.references.CloseableReference; +import com.facebook.datasource.DataSource; +/* compiled from: BaseBitmapDataSubscriber */ +public abstract class c extends d> { + public abstract void onNewResultImpl(Bitmap bitmap); + + @Override // b.f.e.d + public void onNewResultImpl(DataSource> dataSource) { + if (dataSource.c()) { + CloseableReference result = dataSource.getResult(); + Bitmap bitmap = null; + if (result != null && (result.u() instanceof b)) { + bitmap = ((b) result.u()).f(); + } + try { + onNewResultImpl(bitmap); + } finally { + Class cls = CloseableReference.j; + if (result != null) { + result.close(); + } + } + } + } +} diff --git a/app/src/main/java/b/f/j/f/d.java b/app/src/main/java/b/f/j/f/d.java new file mode 100644 index 0000000000..d1a7309b8c --- /dev/null +++ b/app/src/main/java/b/f/j/f/d.java @@ -0,0 +1,22 @@ +package b.f.j.f; + +import b.f.j.p.c1; +import b.f.j.p.v0; +import com.facebook.common.references.CloseableReference; +/* compiled from: CloseableProducerToDataSourceAdapter */ +public class d extends b> { + public d(v0> v0Var, c1 c1Var, b.f.j.k.d dVar) { + super(v0Var, c1Var, dVar); + } + + @Override // b.f.e.c + public void g(Object obj) { + Class cls = CloseableReference.j; + ((CloseableReference) obj).close(); + } + + @Override // b.f.e.c, com.facebook.datasource.DataSource + public Object getResult() { + return CloseableReference.n((CloseableReference) super.getResult()); + } +} diff --git a/app/src/main/java/b/f/j/g/a.java b/app/src/main/java/b/f/j/g/a.java new file mode 100644 index 0000000000..a9e8cde499 --- /dev/null +++ b/app/src/main/java/b/f/j/g/a.java @@ -0,0 +1,4 @@ +package b.f.j.g; +/* compiled from: NoOpCloseableReferenceLeakTracker */ +public class a { +} diff --git a/app/src/main/java/b/f/j/h/a.java b/app/src/main/java/b/f/j/h/a.java new file mode 100644 index 0000000000..faa10bdce9 --- /dev/null +++ b/app/src/main/java/b/f/j/h/a.java @@ -0,0 +1,101 @@ +package b.f.j.h; + +import android.graphics.Bitmap; +import b.f.j.d.b; +import b.f.j.j.c; +import b.f.j.j.e; +import b.f.j.j.h; +import b.f.j.j.i; +import b.f.j.n.d; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.decoder.DecodeException; +import java.util.Objects; +/* compiled from: DefaultImageDecoder */ +public class a implements b { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final b f576b; + public final d c; + public final b d = new C0063a(); + + /* compiled from: DefaultImageDecoder */ + /* renamed from: b.f.j.h.a$a reason: collision with other inner class name */ + public class C0063a implements b { + public C0063a() { + } + + @Override // b.f.j.h.b + public c a(e eVar, int i, i iVar, b bVar) { + eVar.u(); + b.f.i.c cVar = eVar.l; + if (cVar == b.f.i.b.a) { + a aVar = a.this; + CloseableReference b2 = aVar.c.b(eVar, bVar.d, null, i, null); + try { + aVar.c(null, b2); + eVar.u(); + int i2 = eVar.m; + eVar.u(); + return new b.f.j.j.d(b2, iVar, i2, eVar.n); + } finally { + b2.close(); + } + } else if (cVar == b.f.i.b.c) { + a aVar2 = a.this; + Objects.requireNonNull(aVar2); + eVar.u(); + if (eVar.o != -1) { + eVar.u(); + if (eVar.p != -1) { + Objects.requireNonNull(bVar); + b bVar2 = aVar2.a; + return bVar2 != null ? bVar2.a(eVar, i, iVar, bVar) : aVar2.b(eVar, bVar); + } + } + throw new DecodeException("image width or height is incorrect", eVar); + } else if (cVar == b.f.i.b.j) { + return a.this.f576b.a(eVar, i, iVar, bVar); + } else { + if (cVar != b.f.i.c.a) { + return a.this.b(eVar, bVar); + } + throw new DecodeException("unknown image format", eVar); + } + } + } + + public a(b bVar, b bVar2, d dVar) { + this.a = bVar; + this.f576b = bVar2; + this.c = dVar; + } + + @Override // b.f.j.h.b + public c a(e eVar, int i, i iVar, b bVar) { + Objects.requireNonNull(bVar); + eVar.u(); + b.f.i.c cVar = eVar.l; + if (cVar == null || cVar == b.f.i.c.a) { + eVar.l = b.f.i.d.b(eVar.e()); + } + return this.d.a(eVar, i, iVar, bVar); + } + + public b.f.j.j.d b(e eVar, b bVar) { + CloseableReference a = this.c.a(eVar, bVar.d, null, null); + try { + c(null, a); + i iVar = h.a; + eVar.u(); + int i = eVar.m; + eVar.u(); + return new b.f.j.j.d(a, iVar, i, eVar.n); + } finally { + a.close(); + } + } + + public final void c(b.f.j.t.a aVar, CloseableReference closeableReference) { + } +} diff --git a/app/src/main/java/b/f/j/h/b.java b/app/src/main/java/b/f/j/h/b.java new file mode 100644 index 0000000000..1f3416c782 --- /dev/null +++ b/app/src/main/java/b/f/j/h/b.java @@ -0,0 +1,9 @@ +package b.f.j.h; + +import b.f.j.j.c; +import b.f.j.j.e; +import b.f.j.j.i; +/* compiled from: ImageDecoder */ +public interface b { + c a(e eVar, int i, i iVar, b.f.j.d.b bVar); +} diff --git a/app/src/main/java/b/f/j/h/c.java b/app/src/main/java/b/f/j/h/c.java new file mode 100644 index 0000000000..f5dddbb268 --- /dev/null +++ b/app/src/main/java/b/f/j/h/c.java @@ -0,0 +1,9 @@ +package b.f.j.h; + +import b.f.j.j.i; +/* compiled from: ProgressiveJpegConfig */ +public interface c { + i a(int i); + + int b(int i); +} diff --git a/app/src/main/java/b/f/j/h/d.java b/app/src/main/java/b/f/j/h/d.java new file mode 100644 index 0000000000..27479f6226 --- /dev/null +++ b/app/src/main/java/b/f/j/h/d.java @@ -0,0 +1,137 @@ +package b.f.j.h; + +import b.f.d.d.m; +import b.f.d.g.a; +import b.f.d.g.f; +import b.f.j.j.e; +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; +/* compiled from: ProgressiveJpegParser */ +public class d { + public int a = 0; + + /* renamed from: b reason: collision with root package name */ + public int f577b = 0; + public int c = 0; + public int d = 0; + public int e = 0; + public int f = 0; + public boolean g; + public final a h; + + public d(a aVar) { + Objects.requireNonNull(aVar); + this.h = aVar; + } + + public final boolean a(InputStream inputStream) { + boolean z2; + int read; + int i = this.e; + while (true) { + try { + z2 = false; + } catch (IOException e) { + m.a(e); + throw new RuntimeException(e); + } + if (this.a == 6 || (read = inputStream.read()) == -1) { + break; + } + int i2 = this.c + 1; + this.c = i2; + if (this.g) { + this.a = 6; + this.g = false; + return false; + } + int i3 = this.a; + if (i3 != 0) { + if (i3 != 1) { + if (i3 != 2) { + if (i3 != 3) { + if (i3 == 4) { + this.a = 5; + } else if (i3 != 5) { + b.c.a.a0.d.B(false); + } else { + int i4 = ((this.f577b << 8) + read) - 2; + b.c.a.a0.d.a2(inputStream, (long) i4); + this.c += i4; + this.a = 2; + } + } else if (read == 255) { + this.a = 3; + } else if (read == 0) { + this.a = 2; + } else if (read == 217) { + this.g = true; + int i5 = i2 - 2; + int i6 = this.d; + if (i6 > 0) { + this.f = i5; + } + this.d = i6 + 1; + this.e = i6; + this.a = 2; + } else { + if (read == 218) { + int i7 = i2 - 2; + int i8 = this.d; + if (i8 > 0) { + this.f = i7; + } + this.d = i8 + 1; + this.e = i8; + } + if (read != 1) { + if (read < 208 || read > 215) { + if (!(read == 217 || read == 216)) { + z2 = true; + } + } + } + if (z2) { + this.a = 4; + } else { + this.a = 2; + } + } + } else if (read == 255) { + this.a = 3; + } + } else if (read == 216) { + this.a = 2; + } else { + this.a = 6; + } + } else if (read == 255) { + this.a = 1; + } else { + this.a = 6; + } + this.f577b = read; + } + return (this.a == 6 || this.e == i) ? false : true; + } + + public boolean b(e eVar) { + if (this.a == 6 || eVar.f() <= this.c) { + return false; + } + f fVar = new f(eVar.e(), this.h.get(16384), this.h); + try { + b.c.a.a0.d.a2(fVar, (long) this.c); + boolean a = a(fVar); + b.f.d.d.a.b(fVar); + return a; + } catch (IOException e) { + m.a(e); + throw new RuntimeException(e); + } catch (Throwable th) { + b.f.d.d.a.b(fVar); + throw th; + } + } +} diff --git a/app/src/main/java/b/f/j/h/e.java b/app/src/main/java/b/f/j/h/e.java new file mode 100644 index 0000000000..bd5b0c5009 --- /dev/null +++ b/app/src/main/java/b/f/j/h/e.java @@ -0,0 +1,52 @@ +package b.f.j.h; + +import b.f.j.j.h; +import b.f.j.j.i; +import java.util.Collections; +import java.util.List; +/* compiled from: SimpleProgressiveJpegConfig */ +public class e implements c { + public final c a = new b(null); + + /* compiled from: SimpleProgressiveJpegConfig */ + public static class b implements c { + public b(a aVar) { + } + + @Override // b.f.j.h.e.c + public List a() { + return Collections.EMPTY_LIST; + } + + @Override // b.f.j.h.e.c + public int b() { + return 0; + } + } + + /* compiled from: SimpleProgressiveJpegConfig */ + public interface c { + List a(); + + int b(); + } + + @Override // b.f.j.h.c + public i a(int i) { + return new h(i, i >= this.a.b(), false); + } + + @Override // b.f.j.h.c + public int b(int i) { + List a2 = this.a.a(); + if (a2 == null || a2.isEmpty()) { + return i + 1; + } + for (int i2 = 0; i2 < a2.size(); i2++) { + if (a2.get(i2).intValue() > i) { + return a2.get(i2).intValue(); + } + } + return Integer.MAX_VALUE; + } +} diff --git a/app/src/main/java/b/f/j/i/a.java b/app/src/main/java/b/f/j/i/a.java new file mode 100644 index 0000000000..12e7f2197a --- /dev/null +++ b/app/src/main/java/b/f/j/i/a.java @@ -0,0 +1,10 @@ +package b.f.j.i; + +import android.graphics.drawable.Drawable; +import b.f.j.j.c; +/* compiled from: DrawableFactory */ +public interface a { + boolean a(c cVar); + + Drawable b(c cVar); +} diff --git a/app/src/main/java/b/f/j/j/a.java b/app/src/main/java/b/f/j/j/a.java new file mode 100644 index 0000000000..105a7bfece --- /dev/null +++ b/app/src/main/java/b/f/j/j/a.java @@ -0,0 +1,62 @@ +package b.f.j.j; + +import android.graphics.Bitmap; +import b.f.j.a.a.e; +import com.facebook.common.references.CloseableReference; +/* compiled from: CloseableAnimatedImage */ +public class a extends c { + public e l; + public boolean m = true; + + public a(e eVar) { + this.l = eVar; + } + + @Override // b.f.j.j.c + public synchronized int c() { + return isClosed() ? 0 : this.l.a.i(); + } + + @Override // b.f.j.j.c, java.io.Closeable, java.lang.AutoCloseable + public void close() { + e eVar; + synchronized (this) { + eVar = this.l; + if (eVar != null) { + this.l = null; + } else { + return; + } + } + synchronized (eVar) { + CloseableReference closeableReference = eVar.f534b; + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + eVar.f534b = null; + CloseableReference.t(eVar.c); + eVar.c = null; + } + } + + @Override // b.f.j.j.c + public boolean d() { + return this.m; + } + + @Override // com.facebook.imagepipeline.image.ImageInfo + public synchronized int getHeight() { + return isClosed() ? 0 : this.l.a.getHeight(); + } + + @Override // com.facebook.imagepipeline.image.ImageInfo + public synchronized int getWidth() { + return isClosed() ? 0 : this.l.a.getWidth(); + } + + @Override // b.f.j.j.c + public synchronized boolean isClosed() { + return this.l == null; + } +} diff --git a/app/src/main/java/b/f/j/j/b.java b/app/src/main/java/b/f/j/j/b.java new file mode 100644 index 0000000000..f4583f8770 --- /dev/null +++ b/app/src/main/java/b/f/j/j/b.java @@ -0,0 +1,7 @@ +package b.f.j.j; + +import android.graphics.Bitmap; +/* compiled from: CloseableBitmap */ +public abstract class b extends c { + public abstract Bitmap f(); +} diff --git a/app/src/main/java/b/f/j/j/c.java b/app/src/main/java/b/f/j/j/c.java new file mode 100644 index 0000000000..c3099e1e39 --- /dev/null +++ b/app/src/main/java/b/f/j/j/c.java @@ -0,0 +1,56 @@ +package b.f.j.j; + +import b.f.d.e.a; +import com.facebook.imagepipeline.image.ImageInfo; +import java.io.Closeable; +import java.util.HashMap; +import java.util.Map; +/* compiled from: CloseableImage */ +public abstract class c implements Closeable, ImageInfo, g { + public static final String[] j = {"encoded_size", "encoded_width", "encoded_height", "uri_source", "image_format", "bitmap_config"}; + public Map k = new HashMap(); + + @Override // b.f.j.j.g + public Map a() { + return this.k; + } + + public i b() { + return h.a; + } + + public abstract int c(); + + @Override // java.io.Closeable, java.lang.AutoCloseable + public abstract void close(); + + public boolean d() { + return false; + } + + public void e(Map map) { + if (map != null) { + String[] strArr = j; + for (String str : strArr) { + Object obj = map.get(str); + if (obj != null) { + this.k.put(str, obj); + } + } + } + } + + @Override // java.lang.Object + public void finalize() throws Throwable { + if (!isClosed()) { + a.o("CloseableImage", "finalize: %s %x still open.", getClass().getSimpleName(), Integer.valueOf(System.identityHashCode(this))); + try { + close(); + } finally { + super.finalize(); + } + } + } + + public abstract boolean isClosed(); +} diff --git a/app/src/main/java/b/f/j/j/d.java b/app/src/main/java/b/f/j/j/d.java new file mode 100644 index 0000000000..5bb6bf278e --- /dev/null +++ b/app/src/main/java/b/f/j/j/d.java @@ -0,0 +1,104 @@ +package b.f.j.j; + +import android.graphics.Bitmap; +import b.f.d.h.c; +import b.f.d.h.f; +import b.f.k.a; +import com.facebook.common.references.CloseableReference; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.util.Objects; +/* compiled from: CloseableStaticBitmap */ +public class d extends b implements c { + public CloseableReference l; + public volatile Bitmap m; + public final i n; + public final int o; + public final int p; + + public d(Bitmap bitmap, f fVar, i iVar, int i) { + this.m = bitmap; + Bitmap bitmap2 = this.m; + Objects.requireNonNull(fVar); + this.l = CloseableReference.D(bitmap2, fVar); + this.n = iVar; + this.o = i; + this.p = 0; + } + + public d(CloseableReference closeableReference, i iVar, int i, int i2) { + CloseableReference f = closeableReference.f(); + Objects.requireNonNull(f); + this.l = f; + this.m = f.u(); + this.n = iVar; + this.o = i; + this.p = i2; + } + + @Override // b.f.j.j.c + public i b() { + return this.n; + } + + @Override // b.f.j.j.c + public int c() { + return a.d(this.m); + } + + @Override // b.f.j.j.c, java.io.Closeable, java.lang.AutoCloseable + public void close() { + CloseableReference closeableReference; + synchronized (this) { + closeableReference = this.l; + this.l = null; + this.m = null; + } + if (closeableReference != null) { + closeableReference.close(); + } + } + + @Override // b.f.j.j.b + public Bitmap f() { + return this.m; + } + + @Override // com.facebook.imagepipeline.image.ImageInfo + public int getHeight() { + int i; + if (this.o % BaseTransientBottomBar.ANIMATION_FADE_DURATION != 0 || (i = this.p) == 5 || i == 7) { + Bitmap bitmap = this.m; + if (bitmap == null) { + return 0; + } + return bitmap.getWidth(); + } + Bitmap bitmap2 = this.m; + if (bitmap2 == null) { + return 0; + } + return bitmap2.getHeight(); + } + + @Override // com.facebook.imagepipeline.image.ImageInfo + public int getWidth() { + int i; + if (this.o % BaseTransientBottomBar.ANIMATION_FADE_DURATION != 0 || (i = this.p) == 5 || i == 7) { + Bitmap bitmap = this.m; + if (bitmap == null) { + return 0; + } + return bitmap.getHeight(); + } + Bitmap bitmap2 = this.m; + if (bitmap2 == null) { + return 0; + } + return bitmap2.getWidth(); + } + + @Override // b.f.j.j.c + public synchronized boolean isClosed() { + return this.l == null; + } +} diff --git a/app/src/main/java/b/f/j/j/e.java b/app/src/main/java/b/f/j/j/e.java new file mode 100644 index 0000000000..de715b306f --- /dev/null +++ b/app/src/main/java/b/f/j/j/e.java @@ -0,0 +1,399 @@ +package b.f.j.j; + +import android.graphics.ColorSpace; +import android.media.ExifInterface; +import android.os.Build; +import android.util.Pair; +import b.c.a.a0.d; +import b.f.d.g.h; +import b.f.i.b; +import b.f.i.c; +import b.f.j.d.a; +import com.facebook.common.internal.Supplier; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import java.io.Closeable; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; +/* compiled from: EncodedImage */ +public class e implements Closeable { + public final CloseableReference j; + public final Supplier k; + public c l = c.a; + public int m = -1; + public int n = 0; + public int o = -1; + public int p = -1; + public int q = 1; + public int r = -1; + + /* renamed from: s reason: collision with root package name */ + public a f578s; + public ColorSpace t; + public boolean u; + + public e(Supplier supplier, int i) { + Objects.requireNonNull(supplier); + this.j = null; + this.k = supplier; + this.r = i; + } + + public e(CloseableReference closeableReference) { + d.i(Boolean.valueOf(CloseableReference.y(closeableReference))); + this.j = closeableReference.clone(); + this.k = null; + } + + public static e a(e eVar) { + e eVar2 = null; + if (eVar != null) { + Supplier supplier = eVar.k; + if (supplier != null) { + eVar2 = new e(supplier, eVar.r); + } else { + CloseableReference n = CloseableReference.n(eVar.j); + if (n != null) { + try { + eVar2 = new e(n); + } catch (Throwable th) { + n.close(); + throw th; + } + } + if (n != null) { + n.close(); + } + } + if (eVar2 != null) { + eVar2.b(eVar); + } + } + return eVar2; + } + + public static boolean q(e eVar) { + return eVar.m >= 0 && eVar.o >= 0 && eVar.p >= 0; + } + + public static boolean t(e eVar) { + return eVar != null && eVar.s(); + } + + public void b(e eVar) { + eVar.u(); + this.l = eVar.l; + eVar.u(); + this.o = eVar.o; + eVar.u(); + this.p = eVar.p; + eVar.u(); + this.m = eVar.m; + eVar.u(); + this.n = eVar.n; + this.q = eVar.q; + this.r = eVar.f(); + this.f578s = eVar.f578s; + eVar.u(); + this.t = eVar.t; + this.u = eVar.u; + } + + public CloseableReference c() { + return CloseableReference.n(this.j); + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() { + CloseableReference closeableReference = this.j; + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + } + + /* JADX INFO: finally extract failed */ + public String d(int i) { + CloseableReference c = c(); + if (c == null) { + return ""; + } + int min = Math.min(f(), i); + byte[] bArr = new byte[min]; + try { + c.u().i(0, bArr, 0, min); + c.close(); + StringBuilder sb = new StringBuilder(min * 2); + for (int i2 = 0; i2 < min; i2++) { + sb.append(String.format("%02X", Byte.valueOf(bArr[i2]))); + } + return sb.toString(); + } catch (Throwable th) { + c.close(); + throw th; + } + } + + public InputStream e() { + Supplier supplier = this.k; + if (supplier != null) { + return supplier.get(); + } + CloseableReference n = CloseableReference.n(this.j); + if (n == null) { + return null; + } + try { + return new h((PooledByteBuffer) n.u()); + } finally { + n.close(); + } + } + + public int f() { + CloseableReference closeableReference = this.j; + if (closeableReference == null) { + return this.r; + } + closeableReference.u(); + return this.j.u().size(); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:42:0x00b0 */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Code restructure failed: missing block: B:37:0x00a6, code lost: + if (r1 == null) goto L_0x00b0; + */ + /* JADX WARNING: Removed duplicated region for block: B:114:0x019d A[Catch:{ IOException -> 0x01e5 }] */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x00b2 */ + /* JADX WARNING: Removed duplicated region for block: B:94:0x0161 A[Catch:{ IOException -> 0x01e5 }] */ + /* JADX WARNING: Removed duplicated region for block: B:95:0x0163 A[Catch:{ IOException -> 0x01e5 }] */ + /* JADX WARNING: Unknown variable types count: 2 */ + public final void n() { + boolean z2; + int i; + int i2; + boolean z3; + int i3; + int i4; + int H1; + c b2 = b.f.i.d.b(e()); + this.l = b2; + int i5 = 0; + InputStream inputStream = null; + inputStream = null; + inputStream = null; + inputStream = null; + Pair pair = 0; + if (b.a(b2) || b2 == b.j) { + InputStream e = e(); + byte[] bArr = new byte[4]; + try { + e.read(bArr); + if (d.I(bArr, "RIFF")) { + d.v0(e); + e.read(bArr); + if (d.I(bArr, "WEBP")) { + e.read(bArr); + StringBuilder sb = new StringBuilder(); + for (int i6 = 0; i6 < 4; i6++) { + sb.append((char) bArr[i6]); + } + String sb2 = sb.toString(); + if ("VP8 ".equals(sb2)) { + inputStream = d.D0(e); + } else if ("VP8L".equals(sb2)) { + inputStream = d.E0(e); + } else if ("VP8X".equals(sb2)) { + e.skip(8); + Pair pair2 = new Pair(Integer.valueOf(d.B1(e) + 1), Integer.valueOf(d.B1(e) + 1)); + try { + e.close(); + } catch (IOException e2) { + e2.printStackTrace(); + } + pair = pair2; + if (pair != 0) { + this.o = ((Integer) ((Pair) pair).first).intValue(); + this.p = ((Integer) ((Pair) pair).second).intValue(); + } + } + } + } + } catch (IOException e3) { + e3.printStackTrace(); + } catch (Throwable th) { + if (e != null) { + try { + e.close(); + } catch (IOException e4) { + e4.printStackTrace(); + } + } + throw th; + } + try { + e.close(); + pair = inputStream; + } catch (IOException e5) { + e5.printStackTrace(); + pair = inputStream; + } + if (pair != 0) { + } + } else { + try { + InputStream e6 = e(); + b.f.k.b a = b.f.k.a.a(e6); + this.t = a.f632b; + Pair pair3 = a.a; + if (pair3 != null) { + this.o = ((Integer) pair3.first).intValue(); + this.p = ((Integer) pair3.second).intValue(); + } + try { + e6.close(); + } catch (IOException unused) { + } + pair = a.a; + } catch (Throwable th2) { + if (0 != 0) { + try { + inputStream.close(); + } catch (IOException unused2) { + } + } + throw th2; + } + } + if (b2 == b.a && this.m == -1) { + if (pair != 0) { + InputStream e7 = e(); + try { + Objects.requireNonNull(e7); + while (true) { + if (d.H1(e7, 1, false) != 255) { + break; + } + int i7 = 255; + while (i7 == 255) { + i7 = d.H1(e7, 1, false); + } + if (i7 == 225) { + z2 = true; + break; + } else if (i7 != 216) { + if (i7 != 1) { + if (i7 == 217) { + break; + } else if (i7 == 218) { + break; + } else { + e7.skip((long) (d.H1(e7, 2, false) - 2)); + } + } + } + } + z2 = false; + if (z2 && (H1 = d.H1(e7, 2, false) - 2) > 6) { + int H12 = d.H1(e7, 4, false); + int H13 = d.H1(e7, 2, false); + i = (H1 - 4) - 2; + if (H12 == 1165519206 && H13 == 0) { + if (i == 0) { + if (i > 8) { + int H14 = d.H1(e7, 4, false); + int i8 = i - 4; + if (H14 == 1229531648 || H14 == 1296891946) { + z3 = H14 == 1229531648; + i2 = d.H1(e7, 4, z3); + i3 = i8 - 4; + if (i2 < 8 || i2 - 8 > i3) { + b.f.d.e.a.a(b.f.k.c.class, "Invalid offset"); + i3 = 0; + } + int i9 = i2 - 8; + if (i3 != 0) { + if (i9 <= i3) { + e7.skip((long) i9); + int i10 = i3 - i9; + if (i10 >= 14) { + int H15 = d.H1(e7, 2, z3); + int i11 = i10 - 2; + while (true) { + int i12 = H15 - 1; + if (H15 <= 0 || i11 < 12) { + break; + } + i4 = i11 - 2; + if (d.H1(e7, 2, z3) == 274) { + break; + } + e7.skip(10); + i11 = i4 - 10; + H15 = i12; + } + } + i4 = 0; + if (i4 >= 10) { + if (d.H1(e7, 2, z3) == 3) { + if (d.H1(e7, 4, z3) == 1) { + i5 = d.H1(e7, 2, z3); + } + } + } + } + } + } else { + b.f.d.e.a.a(b.f.k.c.class, "Invalid TIFF header"); + } + } + i3 = 0; + z3 = false; + i2 = 0; + int i9 = i2 - 8; + if (i3 != 0) { + } + } + this.n = i5; + this.m = d.r0(i5); + } + } + i = 0; + if (i == 0) { + } + } catch (IOException unused3) { + } + this.n = i5; + this.m = d.r0(i5); + } + } else if (b2 == b.k && this.m == -1) { + InputStream e8 = e(); + if (Build.VERSION.SDK_INT >= 24) { + try { + i5 = new ExifInterface(e8).getAttributeInt(androidx.exifinterface.media.ExifInterface.TAG_ORIENTATION, 1); + } catch (IOException unused4) { + int i13 = b.f.d.e.a.a; + } + } else { + int i14 = b.f.d.e.a.a; + } + this.n = i5; + this.m = d.r0(i5); + } else if (this.m == -1) { + this.m = 0; + } + } + + public synchronized boolean s() { + return CloseableReference.y(this.j) || this.k != null; + } + + public final void u() { + if (this.o < 0 || this.p < 0) { + n(); + } + } +} diff --git a/app/src/main/java/b/f/j/j/f.java b/app/src/main/java/b/f/j/j/f.java new file mode 100644 index 0000000000..ccd6727fd5 --- /dev/null +++ b/app/src/main/java/b/f/j/j/f.java @@ -0,0 +1,19 @@ +package b.f.j.j; +/* compiled from: EncodedImageOrigin */ +public enum f { + NOT_SET("not_set"), + NETWORK("network"), + DISK("disk"), + ENCODED_MEM_CACHE("encoded_mem_cache"); + + private final String mOrigin; + + public f(String str) { + this.mOrigin = str; + } + + @Override // java.lang.Enum, java.lang.Object + public String toString() { + return this.mOrigin; + } +} diff --git a/app/src/main/java/b/f/j/j/g.java b/app/src/main/java/b/f/j/j/g.java new file mode 100644 index 0000000000..59857cb65d --- /dev/null +++ b/app/src/main/java/b/f/j/j/g.java @@ -0,0 +1,7 @@ +package b.f.j.j; + +import java.util.Map; +/* compiled from: HasImageMetadata */ +public interface g { + Map a(); +} diff --git a/app/src/main/java/b/f/j/j/h.java b/app/src/main/java/b/f/j/j/h.java new file mode 100644 index 0000000000..1feb8e8de2 --- /dev/null +++ b/app/src/main/java/b/f/j/j/h.java @@ -0,0 +1,36 @@ +package b.f.j.j; +/* compiled from: ImmutableQualityInfo */ +public class h implements i { + public static final i a = new h(Integer.MAX_VALUE, true, true); + + /* renamed from: b reason: collision with root package name */ + public int f579b; + public boolean c; + public boolean d; + + public h(int i, boolean z2, boolean z3) { + this.f579b = i; + this.c = z2; + this.d = z3; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof h)) { + return false; + } + h hVar = (h) obj; + return this.f579b == hVar.f579b && this.c == hVar.c && this.d == hVar.d; + } + + public int hashCode() { + int i = 0; + int i2 = this.f579b ^ (this.c ? 4194304 : 0); + if (this.d) { + i = 8388608; + } + return i2 ^ i; + } +} diff --git a/app/src/main/java/b/f/j/j/i.java b/app/src/main/java/b/f/j/j/i.java new file mode 100644 index 0000000000..8855da71b3 --- /dev/null +++ b/app/src/main/java/b/f/j/j/i.java @@ -0,0 +1,4 @@ +package b.f.j.j; +/* compiled from: QualityInfo */ +public interface i { +} diff --git a/app/src/main/java/b/f/j/k/a.java b/app/src/main/java/b/f/j/k/a.java new file mode 100644 index 0000000000..35a6cd0e2e --- /dev/null +++ b/app/src/main/java/b/f/j/k/a.java @@ -0,0 +1,51 @@ +package b.f.j.k; + +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.Map; +/* compiled from: BaseRequestListener */ +public class a implements e { + @Override // b.f.j.k.e + public void a(ImageRequest imageRequest, Object obj, String str, boolean z2) { + } + + @Override // b.f.j.p.z0 + public void b(String str, String str2) { + } + + @Override // b.f.j.k.e + public void c(ImageRequest imageRequest, String str, boolean z2) { + } + + @Override // b.f.j.p.z0 + public void d(String str, String str2, Map map) { + } + + @Override // b.f.j.p.z0 + public void e(String str, String str2, boolean z2) { + } + + @Override // b.f.j.p.z0 + public boolean f(String str) { + return false; + } + + @Override // b.f.j.k.e + public void g(ImageRequest imageRequest, String str, Throwable th, boolean z2) { + } + + @Override // b.f.j.p.z0 + public void h(String str, String str2, String str3) { + } + + @Override // b.f.j.p.z0 + public void i(String str, String str2, Map map) { + } + + @Override // b.f.j.p.z0 + public void j(String str, String str2, Throwable th, Map map) { + } + + @Override // b.f.j.k.e + public void k(String str) { + } +} diff --git a/app/src/main/java/b/f/j/k/b.java b/app/src/main/java/b/f/j/k/b.java new file mode 100644 index 0000000000..b5780771d5 --- /dev/null +++ b/app/src/main/java/b/f/j/k/b.java @@ -0,0 +1,152 @@ +package b.f.j.k; + +import b.f.d.e.a; +import b.f.j.p.w0; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Set; +/* compiled from: ForwardingRequestListener2 */ +public class b implements d { + public final List a; + + public b(Set set) { + this.a = new ArrayList(set.size()); + for (d dVar : set) { + if (dVar != null) { + this.a.add(dVar); + } + } + } + + @Override // b.f.j.p.y0 + public void a(w0 w0Var, String str, String str2) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).a(w0Var, str, str2); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onIntermediateChunkStart", e); + } + } + } + + @Override // b.f.j.k.d + public void b(w0 w0Var) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).b(w0Var); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onRequestStart", e); + } + } + } + + @Override // b.f.j.p.y0 + public void c(w0 w0Var, String str, boolean z2) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).c(w0Var, str, z2); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onProducerFinishWithSuccess", e); + } + } + } + + @Override // b.f.j.p.y0 + public void d(w0 w0Var, String str, Map map) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).d(w0Var, str, map); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onProducerFinishWithCancellation", e); + } + } + } + + @Override // b.f.j.p.y0 + public void e(w0 w0Var, String str) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).e(w0Var, str); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onProducerStart", e); + } + } + } + + @Override // b.f.j.k.d + public void f(w0 w0Var) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).f(w0Var); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onRequestSuccess", e); + } + } + } + + @Override // b.f.j.p.y0 + public boolean g(w0 w0Var, String str) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + if (this.a.get(i).g(w0Var, str)) { + return true; + } + } + return false; + } + + @Override // b.f.j.k.d + public void h(w0 w0Var, Throwable th) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).h(w0Var, th); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onRequestFailure", e); + } + } + } + + @Override // b.f.j.k.d + public void i(w0 w0Var) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).i(w0Var); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onRequestCancellation", e); + } + } + } + + @Override // b.f.j.p.y0 + public void j(w0 w0Var, String str, Map map) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).j(w0Var, str, map); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onProducerFinishWithSuccess", e); + } + } + } + + @Override // b.f.j.p.y0 + public void k(w0 w0Var, String str, Throwable th, Map map) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).k(w0Var, str, th, map); + } catch (Exception e) { + a.f("ForwardingRequestListener2", "InternalListener exception in onProducerFinishWithFailure", e); + } + } + } +} diff --git a/app/src/main/java/b/f/j/k/c.java b/app/src/main/java/b/f/j/k/c.java new file mode 100644 index 0000000000..e085b9d058 --- /dev/null +++ b/app/src/main/java/b/f/j/k/c.java @@ -0,0 +1,161 @@ +package b.f.j.k; + +import b.f.d.e.a; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Set; +/* compiled from: ForwardingRequestListener */ +public class c implements e { + public final List a; + + public c(Set set) { + this.a = new ArrayList(set.size()); + for (e eVar : set) { + if (eVar != null) { + this.a.add(eVar); + } + } + } + + public c(e... eVarArr) { + this.a = new ArrayList(eVarArr.length); + for (e eVar : eVarArr) { + if (eVar != null) { + this.a.add(eVar); + } + } + } + + @Override // b.f.j.k.e + public void a(ImageRequest imageRequest, Object obj, String str, boolean z2) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).a(imageRequest, obj, str, z2); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onRequestStart", e); + } + } + } + + @Override // b.f.j.p.z0 + public void b(String str, String str2) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).b(str, str2); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onProducerStart", e); + } + } + } + + @Override // b.f.j.k.e + public void c(ImageRequest imageRequest, String str, boolean z2) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).c(imageRequest, str, z2); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onRequestSuccess", e); + } + } + } + + @Override // b.f.j.p.z0 + public void d(String str, String str2, Map map) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).d(str, str2, map); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onProducerFinishWithCancellation", e); + } + } + } + + @Override // b.f.j.p.z0 + public void e(String str, String str2, boolean z2) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).e(str, str2, z2); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onProducerFinishWithSuccess", e); + } + } + } + + @Override // b.f.j.p.z0 + public boolean f(String str) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + if (this.a.get(i).f(str)) { + return true; + } + } + return false; + } + + @Override // b.f.j.k.e + public void g(ImageRequest imageRequest, String str, Throwable th, boolean z2) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).g(imageRequest, str, th, z2); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onRequestFailure", e); + } + } + } + + @Override // b.f.j.p.z0 + public void h(String str, String str2, String str3) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).h(str, str2, str3); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onIntermediateChunkStart", e); + } + } + } + + @Override // b.f.j.p.z0 + public void i(String str, String str2, Map map) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).i(str, str2, map); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onProducerFinishWithSuccess", e); + } + } + } + + @Override // b.f.j.p.z0 + public void j(String str, String str2, Throwable th, Map map) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).j(str, str2, th, map); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onProducerFinishWithFailure", e); + } + } + } + + @Override // b.f.j.k.e + public void k(String str) { + int size = this.a.size(); + for (int i = 0; i < size; i++) { + try { + this.a.get(i).k(str); + } catch (Exception e) { + a.f("ForwardingRequestListener", "InternalListener exception in onRequestCancellation", e); + } + } + } +} diff --git a/app/src/main/java/b/f/j/k/d.java b/app/src/main/java/b/f/j/k/d.java new file mode 100644 index 0000000000..97e1c20e49 --- /dev/null +++ b/app/src/main/java/b/f/j/k/d.java @@ -0,0 +1,15 @@ +package b.f.j.k; + +import androidx.annotation.NonNull; +import b.f.j.p.w0; +import b.f.j.p.y0; +/* compiled from: RequestListener2 */ +public interface d extends y0 { + void b(@NonNull w0 w0Var); + + void f(@NonNull w0 w0Var); + + void h(@NonNull w0 w0Var, Throwable th); + + void i(@NonNull w0 w0Var); +} diff --git a/app/src/main/java/b/f/j/k/e.java b/app/src/main/java/b/f/j/k/e.java new file mode 100644 index 0000000000..ee7d184eb7 --- /dev/null +++ b/app/src/main/java/b/f/j/k/e.java @@ -0,0 +1,14 @@ +package b.f.j.k; + +import b.f.j.p.z0; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: RequestListener */ +public interface e extends z0 { + void a(ImageRequest imageRequest, Object obj, String str, boolean z2); + + void c(ImageRequest imageRequest, String str, boolean z2); + + void g(ImageRequest imageRequest, String str, Throwable th, boolean z2); + + void k(String str); +} diff --git a/app/src/main/java/b/f/j/l/a.java b/app/src/main/java/b/f/j/l/a.java new file mode 100644 index 0000000000..c7c70adeef --- /dev/null +++ b/app/src/main/java/b/f/j/l/a.java @@ -0,0 +1,142 @@ +package b.f.j.l; + +import android.annotation.TargetApi; +import android.os.SharedMemory; +import android.system.ErrnoException; +import android.util.Log; +import b.c.a.a0.d; +import java.io.Closeable; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: AshmemMemoryChunk */ +@TargetApi(27) +public class a implements r, Closeable { + public SharedMemory j; + public ByteBuffer k; + public final long l; + + public a(int i) { + d.i(Boolean.valueOf(i > 0)); + try { + SharedMemory create = SharedMemory.create("AshmemMemoryChunk", i); + this.j = create; + this.k = create.mapReadWrite(); + this.l = (long) System.identityHashCode(this); + } catch (ErrnoException e) { + throw new RuntimeException("Fail to create AshmemMemory", e); + } + } + + @Override // b.f.j.l.r + public void a(int i, r rVar, int i2, int i3) { + Objects.requireNonNull(rVar); + if (rVar.getUniqueId() == this.l) { + StringBuilder R = b.d.b.a.a.R("Copying from AshmemMemoryChunk "); + R.append(Long.toHexString(this.l)); + R.append(" to AshmemMemoryChunk "); + R.append(Long.toHexString(rVar.getUniqueId())); + R.append(" which are the same "); + Log.w("AshmemMemoryChunk", R.toString()); + d.i(Boolean.FALSE); + } + if (rVar.getUniqueId() < this.l) { + synchronized (rVar) { + synchronized (this) { + c(i, rVar, i2, i3); + } + } + return; + } + synchronized (this) { + synchronized (rVar) { + c(i, rVar, i2, i3); + } + } + } + + @Override // b.f.j.l.r + public synchronized int b(int i, byte[] bArr, int i2, int i3) { + int d; + d.B(!isClosed()); + d = d.d(i, i3, getSize()); + d.p(i, bArr.length, i2, d, getSize()); + this.k.position(i); + this.k.put(bArr, i2, d); + return d; + } + + public final void c(int i, r rVar, int i2, int i3) { + if (rVar instanceof a) { + d.B(!isClosed()); + d.B(!rVar.isClosed()); + d.p(i, rVar.getSize(), i2, i3, getSize()); + this.k.position(i); + rVar.getByteBuffer().position(i2); + byte[] bArr = new byte[i3]; + this.k.get(bArr, 0, i3); + rVar.getByteBuffer().put(bArr, 0, i3); + return; + } + throw new IllegalArgumentException("Cannot copy two incompatible MemoryChunks"); + } + + @Override // b.f.j.l.r, java.io.Closeable, java.lang.AutoCloseable + public synchronized void close() { + if (!isClosed()) { + SharedMemory.unmap(this.k); + this.j.close(); + this.k = null; + this.j = null; + } + } + + @Override // b.f.j.l.r + public ByteBuffer getByteBuffer() { + return this.k; + } + + @Override // b.f.j.l.r + public int getSize() { + d.B(!isClosed()); + return this.j.getSize(); + } + + @Override // b.f.j.l.r + public long getUniqueId() { + return this.l; + } + + @Override // b.f.j.l.r + public synchronized byte h(int i) { + boolean z2 = true; + d.B(!isClosed()); + d.i(Boolean.valueOf(i >= 0)); + if (i >= getSize()) { + z2 = false; + } + d.i(Boolean.valueOf(z2)); + return this.k.get(i); + } + + @Override // b.f.j.l.r + public synchronized int i(int i, byte[] bArr, int i2, int i3) { + int d; + Objects.requireNonNull(bArr); + d.B(!isClosed()); + d = d.d(i, i3, getSize()); + d.p(i, bArr.length, i2, d, getSize()); + this.k.position(i); + this.k.get(bArr, i2, d); + return d; + } + + @Override // b.f.j.l.r + public synchronized boolean isClosed() { + return this.k == null || this.j == null; + } + + @Override // b.f.j.l.r + public long k() { + throw new UnsupportedOperationException("Cannot get the pointer of an AshmemMemoryChunk"); + } +} diff --git a/app/src/main/java/b/f/j/l/b.java b/app/src/main/java/b/f/j/l/b.java new file mode 100644 index 0000000000..54476ba529 --- /dev/null +++ b/app/src/main/java/b/f/j/l/b.java @@ -0,0 +1,59 @@ +package b.f.j.l; + +import android.graphics.Bitmap; +import b.c.a.a0.d; +import b.f.d.h.f; +/* compiled from: BitmapCounter */ +public class b { + public int a; + + /* renamed from: b reason: collision with root package name */ + public long f580b; + public final int c; + public final int d; + public final f e; + + /* compiled from: BitmapCounter */ + public class a implements f { + public a() { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.d.h.f + public void release(Bitmap bitmap) { + Bitmap bitmap2 = bitmap; + try { + b.this.a(bitmap2); + } finally { + bitmap2.recycle(); + } + } + } + + public b(int i, int i2) { + boolean z2 = true; + d.i(Boolean.valueOf(i > 0)); + d.i(Boolean.valueOf(i2 <= 0 ? false : z2)); + this.c = i; + this.d = i2; + this.e = new a(); + } + + public synchronized void a(Bitmap bitmap) { + int d = b.f.k.a.d(bitmap); + d.k(this.a > 0, "No bitmaps registered."); + long j = (long) d; + boolean z2 = j <= this.f580b; + Object[] objArr = {Integer.valueOf(d), Long.valueOf(this.f580b)}; + if (z2) { + this.f580b -= j; + this.a--; + } else { + throw new IllegalArgumentException(d.j0("Bitmap size bigger than the total registered size: %d, %d", objArr)); + } + } + + public synchronized int b() { + return this.d; + } +} diff --git a/app/src/main/java/b/f/j/l/c.java b/app/src/main/java/b/f/j/l/c.java new file mode 100644 index 0000000000..56bb0a0fc3 --- /dev/null +++ b/app/src/main/java/b/f/j/l/c.java @@ -0,0 +1,16 @@ +package b.f.j.l; + +import com.discord.api.permission.Permission; +/* compiled from: BitmapCounterProvider */ +public class c { + public static final int a; + + /* renamed from: b reason: collision with root package name */ + public static int f581b = 384; + public static volatile b c; + + static { + int min = (int) Math.min(Runtime.getRuntime().maxMemory(), 2147483647L); + a = ((long) min) > Permission.MOVE_MEMBERS ? (min / 4) * 3 : min / 2; + } +} diff --git a/app/src/main/java/b/f/j/l/d.java b/app/src/main/java/b/f/j/l/d.java new file mode 100644 index 0000000000..6a8121ddbd --- /dev/null +++ b/app/src/main/java/b/f/j/l/d.java @@ -0,0 +1,7 @@ +package b.f.j.l; + +import android.graphics.Bitmap; +import b.f.d.g.e; +/* compiled from: BitmapPool */ +public interface d extends e { +} diff --git a/app/src/main/java/b/f/j/l/e.java b/app/src/main/java/b/f/j/l/e.java new file mode 100644 index 0000000000..4c609a94fd --- /dev/null +++ b/app/src/main/java/b/f/j/l/e.java @@ -0,0 +1,55 @@ +package b.f.j.l; + +import android.graphics.Bitmap; +import b.f.j.l.g; +import b.f.k.a; +/* compiled from: BitmapPoolBackend */ +public class e extends q { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.f.j.l.q + public Bitmap a(int i) { + Object obj; + g gVar = this.f586b; + synchronized (gVar) { + g.b bVar = (g.b) gVar.a.get(i); + if (bVar == null) { + obj = null; + } else { + obj = bVar.c.pollFirst(); + gVar.a(bVar); + } + } + if (obj != null) { + synchronized (this) { + this.a.remove(obj); + } + } + Bitmap bitmap = (Bitmap) obj; + if (bitmap == null || !d(bitmap)) { + return null; + } + bitmap.eraseColor(0); + return bitmap; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.l.q + public int b(Bitmap bitmap) { + return a.d(bitmap); + } + + public boolean d(Bitmap bitmap) { + if (bitmap == null) { + return false; + } + if (bitmap.isRecycled()) { + b.f.d.e.a.p("BitmapPoolBackend", "Cannot reuse a recycled bitmap: %s", bitmap); + return false; + } else if (bitmap.isMutable()) { + return true; + } else { + b.f.d.e.a.p("BitmapPoolBackend", "Cannot reuse an immutable bitmap: %s", bitmap); + return false; + } + } +} diff --git a/app/src/main/java/b/f/j/l/f.java b/app/src/main/java/b/f/j/l/f.java new file mode 100644 index 0000000000..9fb2b34703 --- /dev/null +++ b/app/src/main/java/b/f/j/l/f.java @@ -0,0 +1,66 @@ +package b.f.j.l; + +import android.util.Log; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.f.d.e.a; +import java.util.LinkedList; +import java.util.Queue; +/* compiled from: Bucket */ +@VisibleForTesting +public class f { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f582b; + public final Queue c; + public final boolean d; + public int e; + + public f(int i, int i2, int i3, boolean z2) { + boolean z3 = true; + d.B(i > 0); + d.B(i2 >= 0); + d.B(i3 < 0 ? false : z3); + this.a = i; + this.f582b = i2; + this.c = new LinkedList(); + this.e = i3; + this.d = z2; + } + + public void a(V v) { + this.c.add(v); + } + + public void b() { + d.B(this.e > 0); + this.e--; + } + + public V c() { + return (V) this.c.poll(); + } + + public void d(V v) { + boolean z2 = false; + if (this.d) { + if (this.e > 0) { + z2 = true; + } + d.B(z2); + this.e--; + a(v); + return; + } + int i = this.e; + if (i > 0) { + this.e = i - 1; + a(v); + return; + } + Object[] objArr = {v}; + int i2 = a.a; + Log.println(6, "unknown:BUCKET", a.g("Tried to release value %s from an empty bucket!", objArr)); + } +} diff --git a/app/src/main/java/b/f/j/l/g.java b/app/src/main/java/b/f/j/l/g.java new file mode 100644 index 0000000000..ce7c8c66f5 --- /dev/null +++ b/app/src/main/java/b/f/j/l/g.java @@ -0,0 +1,72 @@ +package b.f.j.l; + +import android.util.SparseArray; +import androidx.annotation.VisibleForTesting; +import java.util.LinkedList; +/* compiled from: BucketMap */ +public class g { + public final SparseArray> a = new SparseArray<>(); + @VisibleForTesting + + /* renamed from: b reason: collision with root package name */ + public b f583b; + @VisibleForTesting + public b c; + + /* compiled from: BucketMap */ + @VisibleForTesting + public static class b { + public b a = null; + + /* renamed from: b reason: collision with root package name */ + public int f584b; + public LinkedList c; + public b d; + + public b(b bVar, int i, LinkedList linkedList, b bVar2, a aVar) { + this.f584b = i; + this.c = linkedList; + this.d = null; + } + + public String toString() { + return b.d.b.a.a.A(b.d.b.a.a.R("LinkedEntry(key: "), this.f584b, ")"); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: b.f.j.l.g$b */ + /* JADX WARN: Multi-variable type inference failed */ + public final void a(b bVar) { + if (this.f583b != bVar) { + b(bVar); + b bVar2 = (b) this.f583b; + if (bVar2 == null) { + this.f583b = bVar; + this.c = bVar; + return; + } + bVar.d = bVar2; + bVar2.a = bVar; + this.f583b = bVar; + } + } + + public final synchronized void b(b bVar) { + b bVar2 = (b) bVar.a; + b bVar3 = (b) bVar.d; + if (bVar2 != null) { + bVar2.d = bVar3; + } + if (bVar3 != null) { + bVar3.a = bVar2; + } + bVar.a = null; + bVar.d = null; + if (bVar == this.f583b) { + this.f583b = bVar3; + } + if (bVar == this.c) { + this.c = bVar2; + } + } +} diff --git a/app/src/main/java/b/f/j/l/h.java b/app/src/main/java/b/f/j/l/h.java new file mode 100644 index 0000000000..509b459c2b --- /dev/null +++ b/app/src/main/java/b/f/j/l/h.java @@ -0,0 +1,61 @@ +package b.f.j.l; + +import android.annotation.TargetApi; +import android.graphics.Bitmap; +import b.f.d.g.c; +import com.facebook.imagepipeline.memory.BasePool; +/* compiled from: BucketsBitmapPool */ +@TargetApi(21) +public class h extends BasePool implements d { + public h(c cVar, y yVar, z zVar, boolean z2) { + super(cVar, yVar, zVar); + this.j = z2; + m(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // com.facebook.imagepipeline.memory.BasePool + public Bitmap e(int i) { + return Bitmap.createBitmap(1, (int) Math.ceil(((double) i) / 2.0d), Bitmap.Config.RGB_565); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public void g(Bitmap bitmap) { + bitmap.recycle(); + } + + @Override // com.facebook.imagepipeline.memory.BasePool + public int i(int i) { + return i; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public int j(Bitmap bitmap) { + return bitmap.getAllocationByteCount(); + } + + @Override // com.facebook.imagepipeline.memory.BasePool + public int k(int i) { + return i; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.f.j.l.f] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public Bitmap l(f fVar) { + Bitmap bitmap = (Bitmap) super.l(fVar); + if (bitmap != null) { + bitmap.eraseColor(0); + } + return bitmap; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public boolean o(Bitmap bitmap) { + Bitmap bitmap2 = bitmap; + return !bitmap2.isRecycled() && bitmap2.isMutable(); + } +} diff --git a/app/src/main/java/b/f/j/l/i.java b/app/src/main/java/b/f/j/l/i.java new file mode 100644 index 0000000000..c142531434 --- /dev/null +++ b/app/src/main/java/b/f/j/l/i.java @@ -0,0 +1,126 @@ +package b.f.j.l; + +import android.util.Log; +import b.c.a.a0.d; +import b.d.b.a.a; +import java.io.Closeable; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: BufferMemoryChunk */ +public class i implements r, Closeable { + public ByteBuffer j; + public final int k; + public final long l = ((long) System.identityHashCode(this)); + + public i(int i) { + this.j = ByteBuffer.allocateDirect(i); + this.k = i; + } + + @Override // b.f.j.l.r + public void a(int i, r rVar, int i2, int i3) { + Objects.requireNonNull(rVar); + if (rVar.getUniqueId() == this.l) { + StringBuilder R = a.R("Copying from BufferMemoryChunk "); + R.append(Long.toHexString(this.l)); + R.append(" to BufferMemoryChunk "); + R.append(Long.toHexString(rVar.getUniqueId())); + R.append(" which are the same "); + Log.w("BufferMemoryChunk", R.toString()); + d.i(Boolean.FALSE); + } + if (rVar.getUniqueId() < this.l) { + synchronized (rVar) { + synchronized (this) { + c(i, rVar, i2, i3); + } + } + return; + } + synchronized (this) { + synchronized (rVar) { + c(i, rVar, i2, i3); + } + } + } + + @Override // b.f.j.l.r + public synchronized int b(int i, byte[] bArr, int i2, int i3) { + int d; + d.B(!isClosed()); + d = d.d(i, i3, this.k); + d.p(i, bArr.length, i2, d, this.k); + this.j.position(i); + this.j.put(bArr, i2, d); + return d; + } + + public final void c(int i, r rVar, int i2, int i3) { + if (rVar instanceof i) { + d.B(!isClosed()); + d.B(!rVar.isClosed()); + d.p(i, rVar.getSize(), i2, i3, this.k); + this.j.position(i); + rVar.getByteBuffer().position(i2); + byte[] bArr = new byte[i3]; + this.j.get(bArr, 0, i3); + rVar.getByteBuffer().put(bArr, 0, i3); + return; + } + throw new IllegalArgumentException("Cannot copy two incompatible MemoryChunks"); + } + + @Override // b.f.j.l.r, java.io.Closeable, java.lang.AutoCloseable + public synchronized void close() { + this.j = null; + } + + @Override // b.f.j.l.r + public synchronized ByteBuffer getByteBuffer() { + return this.j; + } + + @Override // b.f.j.l.r + public int getSize() { + return this.k; + } + + @Override // b.f.j.l.r + public long getUniqueId() { + return this.l; + } + + @Override // b.f.j.l.r + public synchronized byte h(int i) { + boolean z2 = true; + d.B(!isClosed()); + d.i(Boolean.valueOf(i >= 0)); + if (i >= this.k) { + z2 = false; + } + d.i(Boolean.valueOf(z2)); + return this.j.get(i); + } + + @Override // b.f.j.l.r + public synchronized int i(int i, byte[] bArr, int i2, int i3) { + int d; + Objects.requireNonNull(bArr); + d.B(!isClosed()); + d = d.d(i, i3, this.k); + d.p(i, bArr.length, i2, d, this.k); + this.j.position(i); + this.j.get(bArr, i2, d); + return d; + } + + @Override // b.f.j.l.r + public synchronized boolean isClosed() { + return this.j == null; + } + + @Override // b.f.j.l.r + public long k() { + throw new UnsupportedOperationException("Cannot get the pointer of a BufferMemoryChunk"); + } +} diff --git a/app/src/main/java/b/f/j/l/j.java b/app/src/main/java/b/f/j/l/j.java new file mode 100644 index 0000000000..97ddd9e14d --- /dev/null +++ b/app/src/main/java/b/f/j/l/j.java @@ -0,0 +1,12 @@ +package b.f.j.l; + +import android.util.SparseIntArray; +/* compiled from: DefaultBitmapPoolParams */ +public class j { + public static final SparseIntArray a = new SparseIntArray(0); + + public static y a() { + int min = (int) Math.min(Runtime.getRuntime().maxMemory(), 2147483647L); + return new y(0, min > 16777216 ? (min / 4) * 3 : min / 2, a); + } +} diff --git a/app/src/main/java/b/f/j/l/k.java b/app/src/main/java/b/f/j/l/k.java new file mode 100644 index 0000000000..570e368e41 --- /dev/null +++ b/app/src/main/java/b/f/j/l/k.java @@ -0,0 +1,5 @@ +package b.f.j.l; +/* compiled from: DefaultFlexByteArrayPoolParams */ +public class k { + public static final int a = Runtime.getRuntime().availableProcessors(); +} diff --git a/app/src/main/java/b/f/j/l/l.java b/app/src/main/java/b/f/j/l/l.java new file mode 100644 index 0000000000..58991afbed --- /dev/null +++ b/app/src/main/java/b/f/j/l/l.java @@ -0,0 +1,19 @@ +package b.f.j.l; + +import android.graphics.Bitmap; +import java.util.Objects; +/* compiled from: DummyBitmapPool */ +public class l implements d { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.f.d.g.e + public Bitmap get(int i) { + return Bitmap.createBitmap(1, (int) Math.ceil(((double) i) / 2.0d), Bitmap.Config.RGB_565); + } + + @Override // b.f.d.g.e, b.f.d.h.f + public void release(Object obj) { + Bitmap bitmap = (Bitmap) obj; + Objects.requireNonNull(bitmap); + bitmap.recycle(); + } +} diff --git a/app/src/main/java/b/f/j/l/m.java b/app/src/main/java/b/f/j/l/m.java new file mode 100644 index 0000000000..f028d419bd --- /dev/null +++ b/app/src/main/java/b/f/j/l/m.java @@ -0,0 +1,27 @@ +package b.f.j.l; + +import android.graphics.Bitmap; +import java.util.Collections; +import java.util.IdentityHashMap; +import java.util.Objects; +import java.util.Set; +/* compiled from: DummyTrackingInUseBitmapPool */ +public class m implements d { + public final Set a = Collections.newSetFromMap(new IdentityHashMap()); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.f.d.g.e + public Bitmap get(int i) { + Bitmap createBitmap = Bitmap.createBitmap(1, (int) Math.ceil(((double) i) / 2.0d), Bitmap.Config.RGB_565); + this.a.add(createBitmap); + return createBitmap; + } + + @Override // b.f.d.g.e, b.f.d.h.f + public void release(Object obj) { + Bitmap bitmap = (Bitmap) obj; + Objects.requireNonNull(bitmap); + this.a.remove(bitmap); + bitmap.recycle(); + } +} diff --git a/app/src/main/java/b/f/j/l/n.java b/app/src/main/java/b/f/j/l/n.java new file mode 100644 index 0000000000..712372a4d6 --- /dev/null +++ b/app/src/main/java/b/f/j/l/n.java @@ -0,0 +1,9 @@ +package b.f.j.l; + +import com.facebook.common.references.CloseableReference; +/* compiled from: FlexByteArrayPool */ +public class n { + public CloseableReference a(int i) { + throw null; + } +} diff --git a/app/src/main/java/b/f/j/l/o.java b/app/src/main/java/b/f/j/l/o.java new file mode 100644 index 0000000000..f9abc9fdeb --- /dev/null +++ b/app/src/main/java/b/f/j/l/o.java @@ -0,0 +1,56 @@ +package b.f.j.l; + +import android.util.SparseIntArray; +import b.f.d.g.a; +import b.f.d.g.c; +import com.facebook.imagepipeline.memory.BasePool; +/* compiled from: GenericByteArrayPool */ +public class o extends BasePool implements a { + public final int[] k; + + public o(c cVar, y yVar, z zVar) { + super(cVar, yVar, zVar); + SparseIntArray sparseIntArray = yVar.c; + this.k = new int[sparseIntArray.size()]; + for (int i = 0; i < sparseIntArray.size(); i++) { + this.k[i] = sparseIntArray.keyAt(i); + } + m(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // com.facebook.imagepipeline.memory.BasePool + public byte[] e(int i) { + return new byte[i]; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public void g(byte[] bArr) { + } + + @Override // com.facebook.imagepipeline.memory.BasePool + public int i(int i) { + if (i > 0) { + int[] iArr = this.k; + for (int i2 : iArr) { + if (i2 >= i) { + return i2; + } + } + return i; + } + throw new BasePool.InvalidSizeException(Integer.valueOf(i)); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public int j(byte[] bArr) { + return bArr.length; + } + + @Override // com.facebook.imagepipeline.memory.BasePool + public int k(int i) { + return i; + } +} diff --git a/app/src/main/java/b/f/j/l/p.java b/app/src/main/java/b/f/j/l/p.java new file mode 100644 index 0000000000..e8b2216fdc --- /dev/null +++ b/app/src/main/java/b/f/j/l/p.java @@ -0,0 +1,93 @@ +package b.f.j.l; + +import android.graphics.Bitmap; +import b.f.d.g.c; +import b.f.j.l.g; +import java.util.LinkedList; +import java.util.Objects; +/* compiled from: LruBitmapPool */ +public class p implements d { + public final q a = new e(); + + /* renamed from: b reason: collision with root package name */ + public final int f585b; + public int c; + public final z d; + public int e; + + public p(int i, int i2, z zVar, c cVar) { + this.f585b = i; + this.c = i2; + this.d = zVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.f.d.g.e + public Bitmap get(int i) { + Bitmap a; + synchronized (this) { + int i2 = this.e; + int i3 = this.f585b; + if (i2 > i3) { + synchronized (this) { + while (true) { + if (this.e <= i3) { + break; + } + Bitmap c = this.a.c(); + if (c == null) { + break; + } + int b2 = this.a.b(c); + this.e -= b2; + this.d.e(b2); + } + } + } + a = this.a.a(i); + if (a != null) { + int b3 = this.a.b(a); + this.e -= b3; + this.d.b(b3); + } else { + this.d.a(i); + a = Bitmap.createBitmap(1, i, Bitmap.Config.ALPHA_8); + } + } + return a; + } + + @Override // b.f.d.g.e, b.f.d.h.f + public void release(Object obj) { + boolean add; + Bitmap bitmap = (Bitmap) obj; + int b2 = this.a.b(bitmap); + if (b2 <= this.c) { + this.d.g(b2); + e eVar = (e) this.a; + Objects.requireNonNull(eVar); + if (eVar.d(bitmap)) { + synchronized (eVar) { + add = eVar.a.add(bitmap); + } + if (add) { + g gVar = eVar.f586b; + int b3 = eVar.b(bitmap); + synchronized (gVar) { + g.b bVar = (g.b) gVar.a.get(b3); + if (bVar == null) { + g.b bVar2 = new g.b(null, b3, new LinkedList(), null, null); + gVar.a.put(b3, bVar2); + bVar = bVar2; + } + bVar.c.addLast(bitmap); + gVar.a(bVar); + } + } + } + synchronized (this) { + this.e += b2; + } + } + } +} diff --git a/app/src/main/java/b/f/j/l/q.java b/app/src/main/java/b/f/j/l/q.java new file mode 100644 index 0000000000..7d53abf028 --- /dev/null +++ b/app/src/main/java/b/f/j/l/q.java @@ -0,0 +1,40 @@ +package b.f.j.l; + +import b.f.j.l.g; +import java.util.HashSet; +import java.util.Set; +/* compiled from: LruBucketsPoolBackend */ +public abstract class q { + public final Set a = new HashSet(); + + /* renamed from: b reason: collision with root package name */ + public final g f586b = new g<>(); + + public abstract T a(int i); + + public abstract int b(T t); + + public T c() { + T t; + g gVar = this.f586b; + synchronized (gVar) { + g.b bVar = gVar.c; + if (bVar == null) { + t = null; + } else { + T pollLast = bVar.c.pollLast(); + if (bVar.c.isEmpty()) { + gVar.b(bVar); + gVar.a.remove(bVar.f584b); + } + t = pollLast; + } + } + if (t != null) { + synchronized (this) { + this.a.remove(t); + } + } + return t; + } +} diff --git a/app/src/main/java/b/f/j/l/r.java b/app/src/main/java/b/f/j/l/r.java new file mode 100644 index 0000000000..0fab4c5c57 --- /dev/null +++ b/app/src/main/java/b/f/j/l/r.java @@ -0,0 +1,26 @@ +package b.f.j.l; + +import java.nio.ByteBuffer; +/* compiled from: MemoryChunk */ +public interface r { + void a(int i, r rVar, int i2, int i3); + + int b(int i, byte[] bArr, int i2, int i3); + + @Override // java.io.Closeable, java.lang.AutoCloseable + void close(); + + ByteBuffer getByteBuffer(); + + int getSize(); + + long getUniqueId(); + + byte h(int i); + + int i(int i, byte[] bArr, int i2, int i3); + + boolean isClosed(); + + long k() throws UnsupportedOperationException; +} diff --git a/app/src/main/java/b/f/j/l/s.java b/app/src/main/java/b/f/j/l/s.java new file mode 100644 index 0000000000..357342bec6 --- /dev/null +++ b/app/src/main/java/b/f/j/l/s.java @@ -0,0 +1,66 @@ +package b.f.j.l; + +import android.util.SparseIntArray; +import b.f.d.g.c; +import com.facebook.imagepipeline.memory.BasePool; +/* compiled from: MemoryChunkPool */ +public abstract class s extends BasePool { + public final int[] k; + + public s(c cVar, y yVar, z zVar) { + super(cVar, yVar, zVar); + SparseIntArray sparseIntArray = yVar.c; + this.k = new int[sparseIntArray.size()]; + int i = 0; + while (true) { + int[] iArr = this.k; + if (i < iArr.length) { + iArr[i] = sparseIntArray.keyAt(i); + i++; + } else { + m(); + return; + } + } + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public void g(r rVar) { + rVar.close(); + } + + @Override // com.facebook.imagepipeline.memory.BasePool + public int i(int i) { + if (i > 0) { + int[] iArr = this.k; + for (int i2 : iArr) { + if (i2 >= i) { + return i2; + } + } + return i; + } + throw new BasePool.InvalidSizeException(Integer.valueOf(i)); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public int j(r rVar) { + return rVar.getSize(); + } + + @Override // com.facebook.imagepipeline.memory.BasePool + public int k(int i) { + return i; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // com.facebook.imagepipeline.memory.BasePool + public boolean o(r rVar) { + return !rVar.isClosed(); + } + + /* renamed from: s */ + public abstract r e(int i); +} diff --git a/app/src/main/java/b/f/j/l/t.java b/app/src/main/java/b/f/j/l/t.java new file mode 100644 index 0000000000..c6b0710fa2 --- /dev/null +++ b/app/src/main/java/b/f/j/l/t.java @@ -0,0 +1,80 @@ +package b.f.j.l; + +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: MemoryPooledByteBuffer */ +public class t implements PooledByteBuffer { + public final int j; + @VisibleForTesting + public CloseableReference k; + + public t(CloseableReference closeableReference, int i) { + Objects.requireNonNull(closeableReference); + d.i(Boolean.valueOf(i >= 0 && i <= closeableReference.u().getSize())); + this.k = closeableReference.clone(); + this.j = i; + } + + public synchronized void a() { + synchronized (this) { + } + if (!CloseableReference.y(this.k)) { + throw new PooledByteBuffer.ClosedException(); + } + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public synchronized void close() { + CloseableReference closeableReference = this.k; + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + this.k = null; + } + + @Override // com.facebook.common.memory.PooledByteBuffer + public synchronized ByteBuffer getByteBuffer() { + return this.k.u().getByteBuffer(); + } + + @Override // com.facebook.common.memory.PooledByteBuffer + public synchronized byte h(int i) { + a(); + boolean z2 = true; + d.i(Boolean.valueOf(i >= 0)); + if (i >= this.j) { + z2 = false; + } + d.i(Boolean.valueOf(z2)); + return this.k.u().h(i); + } + + @Override // com.facebook.common.memory.PooledByteBuffer + public synchronized int i(int i, byte[] bArr, int i2, int i3) { + a(); + d.i(Boolean.valueOf(i + i3 <= this.j)); + return this.k.u().i(i, bArr, i2, i3); + } + + @Override // com.facebook.common.memory.PooledByteBuffer + public synchronized boolean isClosed() { + return !CloseableReference.y(this.k); + } + + @Override // com.facebook.common.memory.PooledByteBuffer + public synchronized long k() throws UnsupportedOperationException { + a(); + return this.k.u().k(); + } + + @Override // com.facebook.common.memory.PooledByteBuffer + public synchronized int size() { + a(); + return this.j; + } +} diff --git a/app/src/main/java/b/f/j/l/u.java b/app/src/main/java/b/f/j/l/u.java new file mode 100644 index 0000000000..823414f713 --- /dev/null +++ b/app/src/main/java/b/f/j/l/u.java @@ -0,0 +1,73 @@ +package b.f.j.l; + +import b.f.d.d.m; +import b.f.d.g.g; +import b.f.d.g.i; +import b.f.d.g.j; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.imagepipeline.memory.MemoryPooledByteBufferOutputStream; +import java.io.IOException; +import java.io.InputStream; +/* compiled from: MemoryPooledByteBufferFactory */ +public class u implements g { + public final j a; + + /* renamed from: b reason: collision with root package name */ + public final s f587b; + + public u(s sVar, j jVar) { + this.f587b = sVar; + this.a = jVar; + } + + @Override // b.f.d.g.g + public i a() { + s sVar = this.f587b; + return new MemoryPooledByteBufferOutputStream(sVar, sVar.k[0]); + } + + @Override // b.f.d.g.g + public PooledByteBuffer b(byte[] bArr) { + MemoryPooledByteBufferOutputStream memoryPooledByteBufferOutputStream = new MemoryPooledByteBufferOutputStream(this.f587b, bArr.length); + try { + memoryPooledByteBufferOutputStream.write(bArr, 0, bArr.length); + t b2 = memoryPooledByteBufferOutputStream.b(); + memoryPooledByteBufferOutputStream.close(); + return b2; + } catch (IOException e) { + m.a(e); + throw new RuntimeException(e); + } catch (Throwable th) { + memoryPooledByteBufferOutputStream.close(); + throw th; + } + } + + @Override // b.f.d.g.g + public PooledByteBuffer c(InputStream inputStream) throws IOException { + s sVar = this.f587b; + MemoryPooledByteBufferOutputStream memoryPooledByteBufferOutputStream = new MemoryPooledByteBufferOutputStream(sVar, sVar.k[0]); + try { + this.a.a(inputStream, memoryPooledByteBufferOutputStream); + return memoryPooledByteBufferOutputStream.b(); + } finally { + memoryPooledByteBufferOutputStream.close(); + } + } + + @Override // b.f.d.g.g + public PooledByteBuffer d(InputStream inputStream, int i) throws IOException { + MemoryPooledByteBufferOutputStream memoryPooledByteBufferOutputStream = new MemoryPooledByteBufferOutputStream(this.f587b, i); + try { + this.a.a(inputStream, memoryPooledByteBufferOutputStream); + return memoryPooledByteBufferOutputStream.b(); + } finally { + memoryPooledByteBufferOutputStream.close(); + } + } + + @Override // b.f.d.g.g + public i e(int i) { + return new MemoryPooledByteBufferOutputStream(this.f587b, i); + } +} diff --git a/app/src/main/java/b/f/j/l/v.java b/app/src/main/java/b/f/j/l/v.java new file mode 100644 index 0000000000..a45ed84294 --- /dev/null +++ b/app/src/main/java/b/f/j/l/v.java @@ -0,0 +1,46 @@ +package b.f.j.l; + +import com.facebook.imagepipeline.memory.BasePool; +/* compiled from: NoOpPoolStatsTracker */ +public class v implements z { + public static v a; + + public static synchronized v h() { + v vVar; + synchronized (v.class) { + if (a == null) { + a = new v(); + } + vVar = a; + } + return vVar; + } + + @Override // b.f.j.l.z + public void a(int i) { + } + + @Override // b.f.j.l.z + public void b(int i) { + } + + @Override // b.f.j.l.z + public void c(BasePool basePool) { + } + + @Override // b.f.j.l.z + public void d() { + } + + @Override // b.f.j.l.z + public void e(int i) { + } + + @Override // b.f.j.l.z + public void f() { + } + + @Override // b.f.j.l.z + public void g(int i) { + } +} diff --git a/app/src/main/java/b/f/j/l/w.java b/app/src/main/java/b/f/j/l/w.java new file mode 100644 index 0000000000..2f982d3d22 --- /dev/null +++ b/app/src/main/java/b/f/j/l/w.java @@ -0,0 +1,62 @@ +package b.f.j.l; + +import android.util.SparseIntArray; +import b.f.d.g.c; +import b.f.d.g.d; +/* compiled from: PoolConfig */ +public class w { + public final y a = j.a(); + + /* renamed from: b reason: collision with root package name */ + public final z f588b = v.h(); + public final y c; + public final c d; + public final y e; + public final z f; + public final y g; + public final z h; + public final String i; + public final int j; + + /* compiled from: PoolConfig */ + public static class b { + public b(a aVar) { + } + } + + public w(b bVar, a aVar) { + b.f.j.r.b.b(); + int i = k.a; + int i2 = i * 4194304; + SparseIntArray sparseIntArray = new SparseIntArray(); + for (int i3 = 131072; i3 <= 4194304; i3 *= 2) { + sparseIntArray.put(i3, i); + } + this.c = new y(4194304, i2, sparseIntArray, 131072, 4194304, k.a); + this.d = d.b(); + SparseIntArray sparseIntArray2 = new SparseIntArray(); + sparseIntArray2.put(1024, 5); + sparseIntArray2.put(2048, 5); + sparseIntArray2.put(4096, 5); + sparseIntArray2.put(8192, 5); + sparseIntArray2.put(16384, 5); + sparseIntArray2.put(32768, 5); + sparseIntArray2.put(65536, 5); + sparseIntArray2.put(131072, 5); + sparseIntArray2.put(262144, 2); + sparseIntArray2.put(524288, 2); + sparseIntArray2.put(1048576, 2); + int min = (int) Math.min(Runtime.getRuntime().maxMemory(), 2147483647L); + int i4 = min < 16777216 ? 3145728 : min < 33554432 ? 6291456 : 12582912; + int min2 = (int) Math.min(Runtime.getRuntime().maxMemory(), 2147483647L); + this.e = new y(i4, min2 < 16777216 ? min2 / 2 : (min2 / 4) * 3, sparseIntArray2); + this.f = v.h(); + SparseIntArray sparseIntArray3 = new SparseIntArray(); + sparseIntArray3.put(16384, 5); + this.g = new y(81920, 1048576, sparseIntArray3); + this.h = v.h(); + this.i = "legacy"; + this.j = 4194304; + b.f.j.r.b.b(); + } +} diff --git a/app/src/main/java/b/f/j/l/x.java b/app/src/main/java/b/f/j/l/x.java new file mode 100644 index 0000000000..ceef3d0736 --- /dev/null +++ b/app/src/main/java/b/f/j/l/x.java @@ -0,0 +1,179 @@ +package b.f.j.l; + +import b.c.a.a0.d; +import b.f.d.g.a; +import b.f.d.g.c; +import b.f.d.g.g; +import b.f.d.g.j; +import java.lang.reflect.Constructor; +import java.lang.reflect.InvocationTargetException; +import java.util.Objects; +/* compiled from: PoolFactory */ +public class x { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public s f589b; + public d c; + public s d; + public s e; + public g f; + public j g; + public a h; + + public x(w wVar) { + this.a = wVar; + } + + public d a() { + if (this.c == null) { + String str = this.a.i; + char c = 65535; + switch (str.hashCode()) { + case -1868884870: + if (str.equals("legacy_default_params")) { + c = 3; + break; + } + break; + case -1106578487: + if (str.equals("legacy")) { + c = 4; + break; + } + break; + case -404562712: + if (str.equals("experimental")) { + c = 2; + break; + } + break; + case -402149703: + if (str.equals("dummy_with_tracking")) { + c = 1; + break; + } + break; + case 95945896: + if (str.equals("dummy")) { + c = 0; + break; + } + break; + } + if (c == 0) { + this.c = new l(); + } else if (c == 1) { + this.c = new m(); + } else if (c == 2) { + Objects.requireNonNull(this.a); + int i = this.a.j; + v h = v.h(); + Objects.requireNonNull(this.a); + this.c = new p(0, i, h, null); + } else if (c != 3) { + w wVar = this.a; + this.c = new h(wVar.d, wVar.a, wVar.f588b, false); + } else { + this.c = new h(this.a.d, j.a(), this.a.f588b, false); + } + } + return this.c; + } + + public int b() { + return this.a.c.d; + } + + public final s c(int i) { + if (i == 0) { + if (this.e == null) { + try { + Constructor constructor = Class.forName("com.facebook.imagepipeline.memory.NativeMemoryChunkPool").getConstructor(c.class, y.class, z.class); + w wVar = this.a; + this.e = (s) constructor.newInstance(wVar.d, wVar.e, wVar.f); + } catch (ClassNotFoundException e) { + b.f.d.e.a.f("PoolFactory", "", e); + this.e = null; + } catch (IllegalAccessException e2) { + b.f.d.e.a.f("PoolFactory", "", e2); + this.e = null; + } catch (InstantiationException e3) { + b.f.d.e.a.f("PoolFactory", "", e3); + this.e = null; + } catch (NoSuchMethodException e4) { + b.f.d.e.a.f("PoolFactory", "", e4); + this.e = null; + } catch (InvocationTargetException e5) { + b.f.d.e.a.f("PoolFactory", "", e5); + this.e = null; + } + } + return this.e; + } else if (i == 1) { + if (this.d == null) { + try { + Constructor constructor2 = Class.forName("com.facebook.imagepipeline.memory.BufferMemoryChunkPool").getConstructor(c.class, y.class, z.class); + w wVar2 = this.a; + this.d = (s) constructor2.newInstance(wVar2.d, wVar2.e, wVar2.f); + } catch (ClassNotFoundException unused) { + this.d = null; + } catch (IllegalAccessException unused2) { + this.d = null; + } catch (InstantiationException unused3) { + this.d = null; + } catch (NoSuchMethodException unused4) { + this.d = null; + } catch (InvocationTargetException unused5) { + this.d = null; + } + } + return this.d; + } else if (i == 2) { + if (this.f589b == null) { + try { + Constructor constructor3 = Class.forName("com.facebook.imagepipeline.memory.AshmemMemoryChunkPool").getConstructor(c.class, y.class, z.class); + w wVar3 = this.a; + this.f589b = (s) constructor3.newInstance(wVar3.d, wVar3.e, wVar3.f); + } catch (ClassNotFoundException unused6) { + this.f589b = null; + } catch (IllegalAccessException unused7) { + this.f589b = null; + } catch (InstantiationException unused8) { + this.f589b = null; + } catch (NoSuchMethodException unused9) { + this.f589b = null; + } catch (InvocationTargetException unused10) { + this.f589b = null; + } + } + return this.f589b; + } else { + throw new IllegalArgumentException("Invalid MemoryChunkType"); + } + } + + public g d(int i) { + if (this.f == null) { + s c = c(i); + d.y(c, "failed to get pool for chunk type: " + i); + this.f = new u(c(i), e()); + } + return this.f; + } + + public j e() { + if (this.g == null) { + this.g = new j(f()); + } + return this.g; + } + + public a f() { + if (this.h == null) { + w wVar = this.a; + this.h = new o(wVar.d, wVar.g, wVar.h); + } + return this.h; + } +} diff --git a/app/src/main/java/b/f/j/l/y.java b/app/src/main/java/b/f/j/l/y.java new file mode 100644 index 0000000000..286a80f74d --- /dev/null +++ b/app/src/main/java/b/f/j/l/y.java @@ -0,0 +1,25 @@ +package b.f.j.l; + +import android.util.SparseIntArray; +import b.c.a.a0.d; +/* compiled from: PoolParams */ +public class y { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f590b; + public final SparseIntArray c; + public final int d; + + public y(int i, int i2, SparseIntArray sparseIntArray) { + this(i, i2, sparseIntArray, 0, Integer.MAX_VALUE, -1); + } + + public y(int i, int i2, SparseIntArray sparseIntArray, int i3, int i4, int i5) { + d.B(i >= 0 && i2 >= i); + this.f590b = i; + this.a = i2; + this.c = sparseIntArray; + this.d = i5; + } +} diff --git a/app/src/main/java/b/f/j/l/z.java b/app/src/main/java/b/f/j/l/z.java new file mode 100644 index 0000000000..c8830b9d6c --- /dev/null +++ b/app/src/main/java/b/f/j/l/z.java @@ -0,0 +1,19 @@ +package b.f.j.l; + +import com.facebook.imagepipeline.memory.BasePool; +/* compiled from: PoolStatsTracker */ +public interface z { + void a(int i); + + void b(int i); + + void c(BasePool basePool); + + void d(); + + void e(int i); + + void f(); + + void g(int i); +} diff --git a/app/src/main/java/b/f/j/m/a.java b/app/src/main/java/b/f/j/m/a.java new file mode 100644 index 0000000000..bd33bb4087 --- /dev/null +++ b/app/src/main/java/b/f/j/m/a.java @@ -0,0 +1,9 @@ +package b.f.j.m; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +/* compiled from: ImagePipelineNativeLoader */ +public class a { + public static final List a = Collections.unmodifiableList(new ArrayList()); +} diff --git a/app/src/main/java/b/f/j/m/b.java b/app/src/main/java/b/f/j/m/b.java new file mode 100644 index 0000000000..db044201ab --- /dev/null +++ b/app/src/main/java/b/f/j/m/b.java @@ -0,0 +1,16 @@ +package b.f.j.m; + +import b.f.m.n.a; +/* compiled from: StaticWebpNativeLoader */ +public class b { + public static boolean a; + + public static synchronized void a() { + synchronized (b.class) { + if (!a) { + a.c("static-webp"); + a = true; + } + } + } +} diff --git a/app/src/main/java/b/f/j/n/a.java b/app/src/main/java/b/f/j/n/a.java new file mode 100644 index 0000000000..f55e8a4a15 --- /dev/null +++ b/app/src/main/java/b/f/j/n/a.java @@ -0,0 +1,18 @@ +package b.f.j.n; + +import android.annotation.TargetApi; +import android.graphics.BitmapFactory; +import androidx.core.util.Pools; +import b.f.j.l.d; +/* compiled from: ArtDecoder */ +@TargetApi(21) +public class a extends b { + public a(d dVar, int i, Pools.SynchronizedPool synchronizedPool) { + super(dVar, i, synchronizedPool); + } + + @Override // b.f.j.n.b + public int d(int i, int i2, BitmapFactory.Options options) { + return b.f.k.a.c(i, i2, options.inPreferredConfig); + } +} diff --git a/app/src/main/java/b/f/j/n/b.java b/app/src/main/java/b/f/j/n/b.java new file mode 100644 index 0000000000..0acd9512e7 --- /dev/null +++ b/app/src/main/java/b/f/j/n/b.java @@ -0,0 +1,280 @@ +package b.f.j.n; + +import android.annotation.TargetApi; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.BitmapRegionDecoder; +import android.graphics.ColorSpace; +import android.graphics.Rect; +import android.os.Build; +import androidx.annotation.VisibleForTesting; +import androidx.core.util.Pools; +import androidx.exifinterface.media.ExifInterface; +import b.f.d.j.a; +import b.f.i.c; +import b.f.j.j.e; +import b.f.j.l.d; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.platform.PreverificationHelper; +import java.io.IOException; +import java.io.InputStream; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: DefaultDecoder */ +@TargetApi(11) +public abstract class b implements d { + public static final byte[] a = {-1, ExifInterface.MARKER_EOI}; + + /* renamed from: b reason: collision with root package name */ + public final d f591b; + public final PreverificationHelper c; + @VisibleForTesting + public final Pools.SynchronizedPool d; + + public b(d dVar, int i, Pools.SynchronizedPool synchronizedPool) { + this.c = Build.VERSION.SDK_INT >= 26 ? new PreverificationHelper() : null; + this.f591b = dVar; + this.d = synchronizedPool; + for (int i2 = 0; i2 < i; i2++) { + this.d.release(ByteBuffer.allocate(16384)); + } + } + + public static BitmapFactory.Options e(e eVar, Bitmap.Config config) { + BitmapFactory.Options options = new BitmapFactory.Options(); + options.inSampleSize = eVar.q; + options.inJustDecodeBounds = true; + BitmapFactory.decodeStream(eVar.e(), null, options); + if (options.outWidth == -1 || options.outHeight == -1) { + throw new IllegalArgumentException(); + } + options.inJustDecodeBounds = false; + options.inDither = true; + options.inPreferredConfig = config; + options.inMutable = true; + return options; + } + + @Override // b.f.j.n.d + public CloseableReference a(e eVar, Bitmap.Config config, Rect rect, ColorSpace colorSpace) { + BitmapFactory.Options e = e(eVar, config); + boolean z2 = e.inPreferredConfig != Bitmap.Config.ARGB_8888; + try { + return c(eVar.e(), e, rect, colorSpace); + } catch (RuntimeException e2) { + if (z2) { + return a(eVar, Bitmap.Config.ARGB_8888, rect, colorSpace); + } + throw e2; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:14:0x0046 */ + /* JADX WARNING: Removed duplicated region for block: B:16:0x004e */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x005c */ + @Override // b.f.j.n.d + public CloseableReference b(e eVar, Bitmap.Config config, Rect rect, int i, ColorSpace colorSpace) { + boolean z2; + BitmapFactory.Options e; + b.f.d.j.b e2; + c cVar = eVar.l; + boolean z3 = false; + if ((cVar == b.f.i.b.a || cVar == b.f.i.b.l) && eVar.k == null) { + Objects.requireNonNull(eVar.j); + PooledByteBuffer u = eVar.j.u(); + if (!(u.h(i - 2) == -1 && u.h(i - 1) == -39)) { + z2 = false; + e = e(eVar, config); + e2 = eVar.e(); + Objects.requireNonNull(e2); + if (eVar.f() > i) { + e2 = new a(e2, i); + } + if (!z2) { + e2 = new b.f.d.j.b(e2, a); + } + if (e.inPreferredConfig != Bitmap.Config.ARGB_8888) { + z3 = true; + } + CloseableReference c = c(e2, e, rect, colorSpace); + e2.close(); + return c; + } + } + z2 = true; + e = e(eVar, config); + e2 = eVar.e(); + Objects.requireNonNull(e2); + if (eVar.f() > i) { + } + if (!z2) { + } + if (e.inPreferredConfig != Bitmap.Config.ARGB_8888) { + } + try { + CloseableReference c = c(e2, e, rect, colorSpace); + try { + e2.close(); + } catch (IOException e3) { + e3.printStackTrace(); + } + return c; + } catch (RuntimeException e4) { + if (z3) { + CloseableReference b2 = b(eVar, Bitmap.Config.ARGB_8888, rect, i, colorSpace); + try { + e2.close(); + } catch (IOException e5) { + e5.printStackTrace(); + } + return b2; + } + throw e4; + } catch (Throwable th) { + try { + e2.close(); + } catch (IOException e6) { + e6.printStackTrace(); + } + throw th; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:44:0x0099 */ + /* JADX WARNING: Removed duplicated region for block: B:48:0x00a1 */ + /* JADX WARNING: Removed duplicated region for block: B:52:0x00a8 */ + /* JADX WARNING: Removed duplicated region for block: B:55:0x00b3 A[ADDED_TO_REGION] */ + public final CloseableReference c(InputStream inputStream, BitmapFactory.Options options, Rect rect, ColorSpace colorSpace) { + Bitmap bitmap; + Bitmap bitmap2; + Throwable th; + BitmapRegionDecoder bitmapRegionDecoder; + PreverificationHelper preverificationHelper; + Objects.requireNonNull(inputStream); + int i = options.outWidth; + int i2 = options.outHeight; + if (rect != null) { + i = rect.width() / options.inSampleSize; + i2 = rect.height() / options.inSampleSize; + } + int i3 = Build.VERSION.SDK_INT; + boolean z2 = i3 >= 26 && (preverificationHelper = this.c) != null && preverificationHelper.shouldUseHardwareBitmapConfig(options.inPreferredConfig); + BitmapRegionDecoder bitmapRegionDecoder2 = null; + if (rect != null || !z2) { + if (rect != null && z2) { + options.inPreferredConfig = Bitmap.Config.ARGB_8888; + } + bitmap = this.f591b.get(d(i, i2, options)); + Objects.requireNonNull(bitmap, "BitmapPool.get returned null"); + } else { + options.inMutable = false; + bitmap = null; + } + options.inBitmap = bitmap; + if (i3 >= 26) { + if (colorSpace == null) { + colorSpace = ColorSpace.get(ColorSpace.Named.SRGB); + } + options.inPreferredColorSpace = colorSpace; + } + ByteBuffer acquire = this.d.acquire(); + if (acquire == null) { + acquire = ByteBuffer.allocate(16384); + } + try { + options.inTempStorage = acquire.array(); + if (!(rect == null || bitmap == null)) { + try { + bitmap.reconfigure(i, i2, options.inPreferredConfig); + bitmapRegionDecoder = BitmapRegionDecoder.newInstance(inputStream, true); + try { + bitmap2 = bitmapRegionDecoder.decodeRegion(rect, options); + bitmapRegionDecoder.recycle(); + } catch (IOException unused) { + try { + b.f.d.e.a.c(b.class, "Could not decode region %s, decoding full bitmap instead.", rect); + if (bitmapRegionDecoder != null) { + bitmapRegionDecoder.recycle(); + } + bitmap2 = null; + if (bitmap2 == null) { + } + this.d.release(acquire); + if (bitmap != null) { + } + return CloseableReference.D(bitmap2, this.f591b); + } catch (Throwable th2) { + th = th2; + bitmapRegionDecoder2 = bitmapRegionDecoder; + if (bitmapRegionDecoder2 != null) { + } + throw th; + } + } + } catch (IOException unused2) { + bitmapRegionDecoder = null; + b.f.d.e.a.c(b.class, "Could not decode region %s, decoding full bitmap instead.", rect); + if (bitmapRegionDecoder != null) { + } + bitmap2 = null; + if (bitmap2 == null) { + } + this.d.release(acquire); + if (bitmap != null) { + } + return CloseableReference.D(bitmap2, this.f591b); + } catch (Throwable th3) { + th = th3; + if (bitmapRegionDecoder2 != null) { + bitmapRegionDecoder2.recycle(); + } + throw th; + } + if (bitmap2 == null) { + bitmap2 = BitmapFactory.decodeStream(inputStream, null, options); + } + this.d.release(acquire); + if (bitmap != null || bitmap == bitmap2) { + return CloseableReference.D(bitmap2, this.f591b); + } + this.f591b.release(bitmap); + bitmap2.recycle(); + throw new IllegalStateException(); + } + bitmap2 = null; + if (bitmap2 == null) { + } + this.d.release(acquire); + if (bitmap != null) { + } + return CloseableReference.D(bitmap2, this.f591b); + } catch (IllegalArgumentException e) { + if (bitmap != null) { + this.f591b.release(bitmap); + } + try { + inputStream.reset(); + Bitmap decodeStream = BitmapFactory.decodeStream(inputStream); + if (decodeStream != null) { + CloseableReference D = CloseableReference.D(decodeStream, b.f.j.b.b.a()); + this.d.release(acquire); + return D; + } + throw e; + } catch (IOException unused3) { + throw e; + } + } catch (RuntimeException e2) { + if (bitmap != null) { + this.f591b.release(bitmap); + } + throw e2; + } catch (Throwable th4) { + this.d.release(acquire); + throw th4; + } + } + + public abstract int d(int i, int i2, BitmapFactory.Options options); +} diff --git a/app/src/main/java/b/f/j/n/c.java b/app/src/main/java/b/f/j/n/c.java new file mode 100644 index 0000000000..5d1d0843f2 --- /dev/null +++ b/app/src/main/java/b/f/j/n/c.java @@ -0,0 +1,22 @@ +package b.f.j.n; + +import android.annotation.TargetApi; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.ColorSpace; +import androidx.core.util.Pools; +import b.f.j.l.d; +import b.f.k.a; +/* compiled from: OreoDecoder */ +@TargetApi(26) +public class c extends b { + public c(d dVar, int i, Pools.SynchronizedPool synchronizedPool) { + super(dVar, i, synchronizedPool); + } + + @Override // b.f.j.n.b + public int d(int i, int i2, BitmapFactory.Options options) { + ColorSpace colorSpace = options.outColorSpace; + return colorSpace != null && colorSpace.isWideGamut() && options.inPreferredConfig != Bitmap.Config.RGBA_F16 ? i * i2 * 8 : a.c(i, i2, options.inPreferredConfig); + } +} diff --git a/app/src/main/java/b/f/j/n/d.java b/app/src/main/java/b/f/j/n/d.java new file mode 100644 index 0000000000..87bbe0ac20 --- /dev/null +++ b/app/src/main/java/b/f/j/n/d.java @@ -0,0 +1,13 @@ +package b.f.j.n; + +import android.graphics.Bitmap; +import android.graphics.ColorSpace; +import android.graphics.Rect; +import b.f.j.j.e; +import com.facebook.common.references.CloseableReference; +/* compiled from: PlatformDecoder */ +public interface d { + CloseableReference a(e eVar, Bitmap.Config config, Rect rect, ColorSpace colorSpace); + + CloseableReference b(e eVar, Bitmap.Config config, Rect rect, int i, ColorSpace colorSpace); +} diff --git a/app/src/main/java/b/f/j/o/a.java b/app/src/main/java/b/f/j/o/a.java new file mode 100644 index 0000000000..a57cc7ea28 --- /dev/null +++ b/app/src/main/java/b/f/j/o/a.java @@ -0,0 +1,37 @@ +package b.f.j.o; + +import android.graphics.Bitmap; +import b.f.b.a.f; +import com.facebook.cache.common.CacheKey; +import com.facebook.imagepipeline.nativecode.NativeRoundingFilter; +/* compiled from: RoundAsCirclePostprocessor */ +public class a extends b.f.j.q.a { + private static final boolean ENABLE_ANTI_ALIASING = true; + private CacheKey mCacheKey; + private final boolean mEnableAntiAliasing; + + public a() { + this(true); + } + + public a(boolean z2) { + this.mEnableAntiAliasing = z2; + } + + @Override // b.f.j.q.a, b.f.j.q.b + public CacheKey getPostprocessorCacheKey() { + if (this.mCacheKey == null) { + if (this.mEnableAntiAliasing) { + this.mCacheKey = new f("RoundAsCirclePostprocessor#AntiAliased"); + } else { + this.mCacheKey = new f("RoundAsCirclePostprocessor"); + } + } + return this.mCacheKey; + } + + @Override // b.f.j.q.a + public void process(Bitmap bitmap) { + NativeRoundingFilter.toCircleFast(bitmap, this.mEnableAntiAliasing); + } +} diff --git a/app/src/main/java/b/f/j/p/a.java b/app/src/main/java/b/f/j/p/a.java new file mode 100644 index 0000000000..797afbd3cc --- /dev/null +++ b/app/src/main/java/b/f/j/p/a.java @@ -0,0 +1,36 @@ +package b.f.j.p; + +import b.f.j.j.e; +/* compiled from: AddImageTransformMetaDataProducer */ +public class a implements v0 { + public final v0 a; + + /* compiled from: AddImageTransformMetaDataProducer */ + public static class b extends p { + public b(l lVar, C0064a aVar) { + super(lVar); + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + e eVar = (e) obj; + if (eVar == null) { + this.f619b.b(null, i); + return; + } + if (!e.q(eVar)) { + eVar.n(); + } + this.f619b.b(eVar, i); + } + } + + public a(v0 v0Var) { + this.a = v0Var; + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + this.a.b(new b(lVar, null), w0Var); + } +} diff --git a/app/src/main/java/b/f/j/p/a0.java b/app/src/main/java/b/f/j/p/a0.java new file mode 100644 index 0000000000..b3452f92a7 --- /dev/null +++ b/app/src/main/java/b/f/j/p/a0.java @@ -0,0 +1,91 @@ +package b.f.j.p; + +import android.net.Uri; +import b.f.d.k.b; +import b.f.j.j.e; +import com.facebook.common.time.RealtimeSinceBootClock; +import java.io.IOException; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.Locale; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +/* compiled from: HttpUrlConnectionNetworkFetcher */ +public class a0 extends c { + public int a; + + /* renamed from: b reason: collision with root package name */ + public final ExecutorService f592b = Executors.newFixedThreadPool(3); + public final b c; + + /* compiled from: HttpUrlConnectionNetworkFetcher */ + public static class a extends x { + public long d; + public long e; + public long f; + + public a(l lVar, w0 w0Var) { + super(lVar, w0Var); + } + } + + public a0(int i) { + RealtimeSinceBootClock realtimeSinceBootClock = RealtimeSinceBootClock.get(); + this.c = realtimeSinceBootClock; + this.a = i; + } + + /* JADX WARNING: Removed duplicated region for block: B:22:0x0040 */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x009b */ + public final HttpURLConnection a(Uri uri, int i) throws IOException { + URL url; + boolean z2; + Uri uri2 = b.f.d.l.b.a; + Uri uri3 = null; + if (uri == null) { + url = null; + } else { + try { + url = new URL(uri.toString()); + } catch (MalformedURLException e) { + throw new RuntimeException(e); + } + } + HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection(); + httpURLConnection.setConnectTimeout(this.a); + int responseCode = httpURLConnection.getResponseCode(); + if (responseCode >= 200 && responseCode < 300) { + return httpURLConnection; + } + if (!(responseCode == 307 || responseCode == 308)) { + switch (responseCode) { + case 300: + case 301: + case 302: + case 303: + break; + default: + z2 = false; + break; + } + if (!z2) { + String headerField = httpURLConnection.getHeaderField("Location"); + httpURLConnection.disconnect(); + if (headerField != null) { + uri3 = Uri.parse(headerField); + } + String scheme = uri.getScheme(); + if (i > 0 && uri3 != null && !uri3.getScheme().equals(scheme)) { + return a(uri3, i - 1); + } + throw new IOException(i == 0 ? String.format(Locale.getDefault(), "URL %s follows too many redirects", uri.toString()) : String.format(Locale.getDefault(), "URL %s returned %d without a valid redirect", uri.toString(), Integer.valueOf(responseCode))); + } + httpURLConnection.disconnect(); + throw new IOException(String.format("Image URL %s returned HTTP code %d", uri.toString(), Integer.valueOf(responseCode))); + } + z2 = true; + if (!z2) { + } + } +} diff --git a/app/src/main/java/b/f/j/p/a1.java b/app/src/main/java/b/f/j/p/a1.java new file mode 100644 index 0000000000..d45af3e863 --- /dev/null +++ b/app/src/main/java/b/f/j/p/a1.java @@ -0,0 +1,27 @@ +package b.f.j.p; + +import android.content.ContentResolver; +import b.f.d.g.g; +import b.f.j.j.e; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.IOException; +import java.util.concurrent.Executor; +/* compiled from: QualifiedResourceFetchProducer */ +public class a1 extends g0 { + public final ContentResolver c; + + public a1(Executor executor, g gVar, ContentResolver contentResolver) { + super(executor, gVar); + this.c = contentResolver; + } + + @Override // b.f.j.p.g0 + public e d(ImageRequest imageRequest) throws IOException { + return c(this.c.openInputStream(imageRequest.c), -1); + } + + @Override // b.f.j.p.g0 + public String e() { + return "QualifiedResourceFetchProducer"; + } +} diff --git a/app/src/main/java/b/f/j/p/b.java b/app/src/main/java/b/f/j/p/b.java new file mode 100644 index 0000000000..ec395ba5bf --- /dev/null +++ b/app/src/main/java/b/f/j/p/b.java @@ -0,0 +1,93 @@ +package b.f.j.p; + +import android.util.Log; +import androidx.core.os.EnvironmentCompat; +import b.d.b.a.a; +import java.io.PrintWriter; +import java.io.StringWriter; +/* compiled from: BaseConsumer */ +public abstract class b implements l { + public boolean a = false; + + public static boolean e(int i) { + return (i & 1) == 1; + } + + public static boolean f(int i) { + return !e(i); + } + + public static boolean l(int i, int i2) { + return (i & i2) != 0; + } + + public static boolean m(int i, int i2) { + return (i & i2) == i2; + } + + @Override // b.f.j.p.l + public synchronized void a(float f) { + if (!this.a) { + try { + j(f); + } catch (Exception e) { + k(e); + } + } + } + + @Override // b.f.j.p.l + public synchronized void b(T t, int i) { + if (!this.a) { + this.a = e(i); + try { + i(t, i); + } catch (Exception e) { + k(e); + } + } + } + + @Override // b.f.j.p.l + public synchronized void c(Throwable th) { + if (!this.a) { + this.a = true; + try { + h(th); + } catch (Exception e) { + k(e); + } + } + } + + @Override // b.f.j.p.l + public synchronized void d() { + if (!this.a) { + this.a = true; + try { + g(); + } catch (Exception e) { + k(e); + } + } + } + + public abstract void g(); + + public abstract void h(Throwable th); + + public abstract void i(T t, int i); + + public abstract void j(float f); + + public void k(Exception exc) { + String w = a.w(EnvironmentCompat.MEDIA_UNKNOWN, ":", getClass().getSimpleName()); + StringBuilder sb = new StringBuilder(); + sb.append("unhandled exception"); + sb.append('\n'); + StringWriter stringWriter = new StringWriter(); + exc.printStackTrace(new PrintWriter(stringWriter)); + sb.append(stringWriter.toString()); + Log.println(6, w, sb.toString()); + } +} diff --git a/app/src/main/java/b/f/j/p/b0.java b/app/src/main/java/b/f/j/p/b0.java new file mode 100644 index 0000000000..c7e80ebffd --- /dev/null +++ b/app/src/main/java/b/f/j/p/b0.java @@ -0,0 +1,149 @@ +package b.f.j.p; + +import b.f.j.k.d; +import b.f.j.k.e; +import java.util.Map; +/* compiled from: InternalRequestListener */ +public class b0 implements d, y0 { + public final z0 a; + + /* renamed from: b reason: collision with root package name */ + public final y0 f593b; + public final e c; + public final d d; + + public b0(e eVar, d dVar) { + this.a = eVar; + this.f593b = dVar; + this.c = eVar; + this.d = dVar; + } + + @Override // b.f.j.p.y0 + public void a(w0 w0Var, String str, String str2) { + z0 z0Var = this.a; + if (z0Var != null) { + z0Var.h(w0Var.getId(), str, str2); + } + y0 y0Var = this.f593b; + if (y0Var != null) { + y0Var.a(w0Var, str, str2); + } + } + + @Override // b.f.j.k.d + public void b(w0 w0Var) { + e eVar = this.c; + if (eVar != null) { + eVar.a(w0Var.e(), w0Var.b(), w0Var.getId(), w0Var.k()); + } + d dVar = this.d; + if (dVar != null) { + dVar.b(w0Var); + } + } + + @Override // b.f.j.p.y0 + public void c(w0 w0Var, String str, boolean z2) { + z0 z0Var = this.a; + if (z0Var != null) { + z0Var.e(w0Var.getId(), str, z2); + } + y0 y0Var = this.f593b; + if (y0Var != null) { + y0Var.c(w0Var, str, z2); + } + } + + @Override // b.f.j.p.y0 + public void d(w0 w0Var, String str, Map map) { + z0 z0Var = this.a; + if (z0Var != null) { + z0Var.d(w0Var.getId(), str, map); + } + y0 y0Var = this.f593b; + if (y0Var != null) { + y0Var.d(w0Var, str, map); + } + } + + @Override // b.f.j.p.y0 + public void e(w0 w0Var, String str) { + z0 z0Var = this.a; + if (z0Var != null) { + z0Var.b(w0Var.getId(), str); + } + y0 y0Var = this.f593b; + if (y0Var != null) { + y0Var.e(w0Var, str); + } + } + + @Override // b.f.j.k.d + public void f(w0 w0Var) { + e eVar = this.c; + if (eVar != null) { + eVar.c(w0Var.e(), w0Var.getId(), w0Var.k()); + } + d dVar = this.d; + if (dVar != null) { + dVar.f(w0Var); + } + } + + @Override // b.f.j.p.y0 + public boolean g(w0 w0Var, String str) { + y0 y0Var; + z0 z0Var = this.a; + boolean f = z0Var != null ? z0Var.f(w0Var.getId()) : false; + return (f || (y0Var = this.f593b) == null) ? f : y0Var.g(w0Var, str); + } + + @Override // b.f.j.k.d + public void h(w0 w0Var, Throwable th) { + e eVar = this.c; + if (eVar != null) { + eVar.g(w0Var.e(), w0Var.getId(), th, w0Var.k()); + } + d dVar = this.d; + if (dVar != null) { + dVar.h(w0Var, th); + } + } + + @Override // b.f.j.k.d + public void i(w0 w0Var) { + e eVar = this.c; + if (eVar != null) { + eVar.k(w0Var.getId()); + } + d dVar = this.d; + if (dVar != null) { + dVar.i(w0Var); + } + } + + @Override // b.f.j.p.y0 + public void j(w0 w0Var, String str, Map map) { + z0 z0Var = this.a; + if (z0Var != null) { + z0Var.i(w0Var.getId(), str, map); + } + y0 y0Var = this.f593b; + if (y0Var != null) { + y0Var.j(w0Var, str, map); + } + } + + @Override // b.f.j.p.y0 + public void k(w0 w0Var, String str, Throwable th, Map map) { + z0 z0Var = this.a; + if (z0Var != null) { + z0Var.j(w0Var.getId(), str, th, map); + } + y0 y0Var = this.f593b; + if (y0Var != null) { + y0Var.k(w0Var, str, th, map); + } + } +} diff --git a/app/src/main/java/b/f/j/p/b1.java b/app/src/main/java/b/f/j/p/b1.java new file mode 100644 index 0000000000..c0852855fa --- /dev/null +++ b/app/src/main/java/b/f/j/p/b1.java @@ -0,0 +1,257 @@ +package b.f.j.p; + +import b.f.d.g.g; +import b.f.d.g.i; +import b.f.j.d.f; +import b.f.j.j.e; +import b.f.j.p.c0; +import b.f.j.s.c; +import b.f.j.s.d; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.memory.MemoryPooledByteBufferOutputStream; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.Executor; +/* compiled from: ResizeAndRotateProducer */ +public class b1 implements v0 { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final g f594b; + public final v0 c; + public final boolean d; + public final c e; + + /* compiled from: ResizeAndRotateProducer */ + public class a extends p { + public final boolean c; + public final c d; + public final w0 e; + public boolean f = false; + public final c0 g; + + /* compiled from: ResizeAndRotateProducer */ + /* renamed from: b.f.j.p.b1$a$a reason: collision with other inner class name */ + public class C0065a implements c0.c { + public C0065a(b1 b1Var) { + } + + @Override // b.f.j.p.c0.c + public void a(e eVar, int i) { + a aVar = a.this; + c cVar = aVar.d; + eVar.u(); + b.f.j.s.b createImageTranscoder = cVar.createImageTranscoder(eVar.l, a.this.c); + Objects.requireNonNull(createImageTranscoder); + aVar.e.o().e(aVar.e, "ResizeAndRotateProducer"); + ImageRequest e = aVar.e.e(); + i a = b1.this.f594b.a(); + try { + b.f.j.s.a c = createImageTranscoder.c(eVar, a, e.j, e.i, null, 85); + if (c.a != 2) { + Map n = aVar.n(eVar, e.i, c, createImageTranscoder.a()); + CloseableReference A = CloseableReference.A(((MemoryPooledByteBufferOutputStream) a).b()); + try { + e eVar2 = new e(A); + eVar2.l = b.f.i.b.a; + try { + eVar2.n(); + aVar.e.o().j(aVar.e, "ResizeAndRotateProducer", n); + if (c.a != 1) { + i |= 16; + } + aVar.f619b.b(eVar2, i); + a.close(); + } finally { + eVar2.close(); + } + } finally { + if (A != null) { + A.close(); + } + } + } else { + throw new RuntimeException("Error while transcoding the image"); + } + } catch (Exception e2) { + aVar.e.o().k(aVar.e, "ResizeAndRotateProducer", e2, null); + if (b.e(i)) { + aVar.f619b.c(e2); + } + } catch (Throwable th) { + a.close(); + throw th; + } + } + } + + /* compiled from: ResizeAndRotateProducer */ + public class b extends e { + public final /* synthetic */ l a; + + public b(b1 b1Var, l lVar) { + this.a = lVar; + } + + @Override // b.f.j.p.x0 + public void a() { + a.this.g.a(); + a.this.f = true; + this.a.d(); + } + + @Override // b.f.j.p.e, b.f.j.p.x0 + public void b() { + if (a.this.e.p()) { + a.this.g.d(); + } + } + } + + public a(l lVar, w0 w0Var, boolean z2, c cVar) { + super(lVar); + this.e = w0Var; + Objects.requireNonNull(w0Var.e()); + this.c = z2; + this.d = cVar; + this.g = new c0(b1.this.a, new C0065a(b1.this), 100); + w0Var.f(new b(b1.this, lVar)); + } + + /* JADX WARNING: Code restructure failed: missing block: B:22:0x0075, code lost: + if (r6 != false) goto L_0x0077; + */ + @Override // b.f.j.p.b + public void i(Object obj, int i) { + b.f.d.l.a aVar; + boolean z2; + boolean z3; + e eVar = (e) obj; + b.f.d.l.a aVar2 = b.f.d.l.a.UNSET; + if (!this.f) { + boolean e = b.e(i); + boolean z4 = true; + if (eVar != null) { + eVar.u(); + b.f.i.c cVar = eVar.l; + ImageRequest e2 = this.e.e(); + b.f.j.s.b createImageTranscoder = this.d.createImageTranscoder(cVar, this.c); + Objects.requireNonNull(createImageTranscoder); + eVar.u(); + if (eVar.l == b.f.i.c.a) { + aVar = aVar2; + } else { + eVar.u(); + if (!createImageTranscoder.d(eVar.l)) { + aVar = b.f.d.l.a.NO; + } else { + f fVar = e2.j; + if (!fVar.d) { + if (d.b(fVar, eVar) == 0) { + if (!fVar.b() || fVar.d) { + eVar.n = 0; + z3 = false; + } else { + b.f.d.d.e eVar2 = d.a; + eVar.u(); + z3 = eVar2.contains(Integer.valueOf(eVar.n)); + } + } + z2 = true; + if (!z2 && !createImageTranscoder.b(eVar, e2.j, e2.i)) { + z4 = false; + } + aVar = b.f.d.l.a.f(z4); + } + z2 = false; + z4 = false; + aVar = b.f.d.l.a.f(z4); + } + } + if (!e && aVar == aVar2) { + return; + } + if (aVar != b.f.d.l.a.YES) { + if (cVar != b.f.i.b.a && cVar != b.f.i.b.k) { + f fVar2 = this.e.e().j; + if (!fVar2.c() && fVar2.b()) { + int a = fVar2.a(); + eVar = e.a(eVar); + if (eVar != null) { + eVar.m = a; + } + } + } else if (!this.e.e().j.d) { + eVar.u(); + if (eVar.m != 0) { + eVar.u(); + if (!(eVar.m == -1 || (eVar = e.a(eVar)) == null)) { + eVar.m = 0; + } + } + } + this.f619b.b(eVar, i); + } else if (this.g.f(eVar, i)) { + if (e || this.e.p()) { + this.g.d(); + } + } + } else if (e) { + this.f619b.b(null, 1); + } + } + } + + public final Map n(e eVar, b.f.j.d.e eVar2, b.f.j.s.a aVar, String str) { + String str2; + long j; + if (!this.e.o().g(this.e, "ResizeAndRotateProducer")) { + return null; + } + StringBuilder sb = new StringBuilder(); + eVar.u(); + sb.append(eVar.o); + sb.append("x"); + eVar.u(); + sb.append(eVar.p); + String sb2 = sb.toString(); + if (eVar2 != null) { + str2 = eVar2.a + "x" + eVar2.f554b; + } else { + str2 = "Unspecified"; + } + HashMap hashMap = new HashMap(); + eVar.u(); + hashMap.put("Image format", String.valueOf(eVar.l)); + hashMap.put("Original size", sb2); + hashMap.put("Requested size", str2); + c0 c0Var = this.g; + synchronized (c0Var) { + j = c0Var.j - c0Var.i; + } + hashMap.put("queueTime", String.valueOf(j)); + hashMap.put("Transcoder id", str); + hashMap.put("Transcoding result", String.valueOf(aVar)); + return new b.f.d.d.f(hashMap); + } + } + + public b1(Executor executor, g gVar, v0 v0Var, boolean z2, c cVar) { + Objects.requireNonNull(executor); + this.a = executor; + Objects.requireNonNull(gVar); + this.f594b = gVar; + Objects.requireNonNull(v0Var); + this.c = v0Var; + Objects.requireNonNull(cVar); + this.e = cVar; + this.d = z2; + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + this.c.b(new a(lVar, w0Var, this.d, this.e), w0Var); + } +} diff --git a/app/src/main/java/b/f/j/p/c.java b/app/src/main/java/b/f/j/p/c.java new file mode 100644 index 0000000000..ae3ca73d5d --- /dev/null +++ b/app/src/main/java/b/f/j/p/c.java @@ -0,0 +1,6 @@ +package b.f.j.p; + +import b.f.j.p.x; +/* compiled from: BaseNetworkFetcher */ +public abstract class c implements n0 { +} diff --git a/app/src/main/java/b/f/j/p/c0.java b/app/src/main/java/b/f/j/p/c0.java new file mode 100644 index 0000000000..54a1c35e15 --- /dev/null +++ b/app/src/main/java/b/f/j/p/c0.java @@ -0,0 +1,180 @@ +package b.f.j.p; + +import android.os.SystemClock; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.f.j.j.e; +import java.util.Objects; +import java.util.concurrent.Executor; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; +/* compiled from: JobScheduler */ +public class c0 { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final c f596b; + public final Runnable c = new a(); + public final Runnable d = new b(); + public final int e; + @VisibleForTesting + public e f = null; + @VisibleForTesting + public int g = 0; + @VisibleForTesting + public int h = 1; + @VisibleForTesting + public long i = 0; + @VisibleForTesting + public long j = 0; + + /* compiled from: JobScheduler */ + public class a implements Runnable { + public a() { + } + + @Override // java.lang.Runnable + public void run() { + e eVar; + int i; + c0 c0Var = c0.this; + Objects.requireNonNull(c0Var); + long uptimeMillis = SystemClock.uptimeMillis(); + synchronized (c0Var) { + eVar = c0Var.f; + i = c0Var.g; + c0Var.f = null; + c0Var.g = 0; + c0Var.h = 3; + c0Var.j = uptimeMillis; + } + try { + if (c0.e(eVar, i)) { + c0Var.f596b.a(eVar, i); + } + } finally { + if (eVar != null) { + eVar.close(); + } + c0Var.c(); + } + } + } + + /* compiled from: JobScheduler */ + public class b implements Runnable { + public b() { + } + + @Override // java.lang.Runnable + public void run() { + c0 c0Var = c0.this; + c0Var.a.execute(c0Var.c); + } + } + + /* compiled from: JobScheduler */ + public interface c { + void a(e eVar, int i); + } + + public c0(Executor executor, c cVar, int i) { + this.a = executor; + this.f596b = cVar; + this.e = i; + } + + public static boolean e(e eVar, int i) { + return b.e(i) || b.m(i, 4) || e.t(eVar); + } + + public void a() { + e eVar; + synchronized (this) { + eVar = this.f; + this.f = null; + this.g = 0; + } + if (eVar != null) { + eVar.close(); + } + } + + public final void b(long j) { + Runnable runnable = this.d; + if (j > 0) { + if (d.f319b == null) { + d.f319b = Executors.newSingleThreadScheduledExecutor(); + } + d.f319b.schedule(runnable, j, TimeUnit.MILLISECONDS); + return; + } + runnable.run(); + } + + public final void c() { + boolean z2; + long j; + long uptimeMillis = SystemClock.uptimeMillis(); + synchronized (this) { + z2 = true; + if (this.h == 4) { + j = Math.max(this.j + ((long) this.e), uptimeMillis); + this.i = uptimeMillis; + this.h = 2; + } else { + this.h = 1; + j = 0; + z2 = false; + } + } + if (z2) { + b(j - uptimeMillis); + } + } + + public boolean d() { + boolean z2; + long j; + long uptimeMillis = SystemClock.uptimeMillis(); + synchronized (this) { + z2 = false; + if (!e(this.f, this.g)) { + return false; + } + int h = b.c.a.y.b.h(this.h); + if (h != 0) { + if (h == 2) { + this.h = 4; + } + j = 0; + } else { + j = Math.max(this.j + ((long) this.e), uptimeMillis); + this.i = uptimeMillis; + this.h = 2; + z2 = true; + } + } + if (z2) { + b(j - uptimeMillis); + } + return true; + } + + public boolean f(e eVar, int i) { + e eVar2; + if (!e(eVar, i)) { + return false; + } + synchronized (this) { + eVar2 = this.f; + this.f = e.a(eVar); + this.g = i; + } + if (eVar2 == null) { + return true; + } + eVar2.close(); + return true; + } +} diff --git a/app/src/main/java/b/f/j/p/c1.java b/app/src/main/java/b/f/j/p/c1.java new file mode 100644 index 0000000000..bf72b998f8 --- /dev/null +++ b/app/src/main/java/b/f/j/p/c1.java @@ -0,0 +1,15 @@ +package b.f.j.p; + +import b.f.j.d.d; +import b.f.j.e.j; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: SettableProducerContext */ +public class c1 extends d { + public c1(ImageRequest imageRequest, w0 w0Var) { + super(imageRequest, w0Var.getId(), w0Var.m(), w0Var.o(), w0Var.b(), w0Var.q(), w0Var.k(), w0Var.p(), w0Var.c(), w0Var.g()); + } + + public c1(ImageRequest imageRequest, String str, String str2, y0 y0Var, Object obj, ImageRequest.c cVar, boolean z2, boolean z3, d dVar, j jVar) { + super(imageRequest, str, str2, y0Var, obj, cVar, z2, z3, dVar, jVar); + } +} diff --git a/app/src/main/java/b/f/j/p/d.java b/app/src/main/java/b/f/j/p/d.java new file mode 100644 index 0000000000..0927804c81 --- /dev/null +++ b/app/src/main/java/b/f/j/p/d.java @@ -0,0 +1,213 @@ +package b.f.j.p; + +import b.f.d.d.g; +import b.f.j.e.j; +import b.f.j.j.f; +import com.discord.models.domain.ModelAuditLogEntry; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +/* compiled from: BaseProducerContext */ +public class d implements w0 { + public static final Set a; + + /* renamed from: b reason: collision with root package name */ + public final ImageRequest f597b; + public final String c; + public final String d; + public final y0 e; + public final Object f; + public final ImageRequest.c g; + public final Map h; + public boolean i; + public b.f.j.d.d j; + public boolean k; + public boolean l; + public final List m; + public final j n; + + static { + String[] strArr = {ModelAuditLogEntry.CHANGE_KEY_ID, "uri_source"}; + int i = g.j; + HashSet hashSet = new HashSet(2); + Collections.addAll(hashSet, strArr); + a = new g(hashSet); + } + + public d(ImageRequest imageRequest, String str, String str2, y0 y0Var, Object obj, ImageRequest.c cVar, boolean z2, boolean z3, b.f.j.d.d dVar, j jVar) { + this.f597b = imageRequest; + this.c = str; + HashMap hashMap = new HashMap(); + this.h = hashMap; + hashMap.put(ModelAuditLogEntry.CHANGE_KEY_ID, str); + hashMap.put("uri_source", imageRequest == null ? "null-request" : imageRequest.c); + this.d = str2; + this.e = y0Var; + this.f = obj; + this.g = cVar; + this.i = z2; + this.j = dVar; + this.k = z3; + this.l = false; + this.m = new ArrayList(); + this.n = jVar; + } + + public static void r(List list) { + if (list != null) { + for (x0 x0Var : list) { + x0Var.b(); + } + } + } + + public static void s(List list) { + if (list != null) { + for (x0 x0Var : list) { + x0Var.d(); + } + } + } + + public static void t(List list) { + if (list != null) { + for (x0 x0Var : list) { + x0Var.c(); + } + } + } + + @Override // b.f.j.p.w0 + public Map a() { + return this.h; + } + + @Override // b.f.j.p.w0 + public Object b() { + return this.f; + } + + @Override // b.f.j.p.w0 + public synchronized b.f.j.d.d c() { + return this.j; + } + + @Override // b.f.j.p.w0 + public void d(String str, Object obj) { + if (!a.contains(str)) { + this.h.put(str, obj); + } + } + + @Override // b.f.j.p.w0 + public ImageRequest e() { + return this.f597b; + } + + @Override // b.f.j.p.w0 + public void f(x0 x0Var) { + boolean z2; + synchronized (this) { + this.m.add(x0Var); + z2 = this.l; + } + if (z2) { + x0Var.a(); + } + } + + @Override // b.f.j.p.w0 + public j g() { + return this.n; + } + + @Override // b.f.j.p.w0 + public String getId() { + return this.c; + } + + @Override // b.f.j.p.w0 + public void h(f fVar) { + } + + @Override // b.f.j.p.w0 + public void i(String str, String str2) { + this.h.put("origin", str); + this.h.put("origin_sub", str2); + } + + @Override // b.f.j.p.w0 + public void j(Map map) { + if (map != null) { + for (Map.Entry entry : map.entrySet()) { + d(entry.getKey(), entry.getValue()); + } + } + } + + @Override // b.f.j.p.w0 + public synchronized boolean k() { + return this.i; + } + + @Override // b.f.j.p.w0 + public T l(String str) { + return (T) this.h.get(str); + } + + @Override // b.f.j.p.w0 + public String m() { + return this.d; + } + + @Override // b.f.j.p.w0 + public void n(String str) { + this.h.put("origin", str); + this.h.put("origin_sub", "default"); + } + + @Override // b.f.j.p.w0 + public y0 o() { + return this.e; + } + + @Override // b.f.j.p.w0 + public synchronized boolean p() { + return this.k; + } + + @Override // b.f.j.p.w0 + public ImageRequest.c q() { + return this.g; + } + + public void u() { + ArrayList arrayList; + synchronized (this) { + if (this.l) { + arrayList = null; + } else { + this.l = true; + arrayList = new ArrayList(this.m); + } + } + if (arrayList != null) { + for (x0 x0Var : arrayList) { + x0Var.a(); + } + } + } + + public synchronized List v(b.f.j.d.d dVar) { + if (dVar == this.j) { + return null; + } + this.j = dVar; + return new ArrayList(this.m); + } +} diff --git a/app/src/main/java/b/f/j/p/d0.java b/app/src/main/java/b/f/j/p/d0.java new file mode 100644 index 0000000000..9e8ffb2cc5 --- /dev/null +++ b/app/src/main/java/b/f/j/p/d0.java @@ -0,0 +1,53 @@ +package b.f.j.p; + +import android.content.res.AssetFileDescriptor; +import android.content.res.AssetManager; +import b.f.d.g.g; +import b.f.j.j.e; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.IOException; +import java.io.InputStream; +import java.util.concurrent.Executor; +/* compiled from: LocalAssetFetchProducer */ +public class d0 extends g0 { + public final AssetManager c; + + public d0(Executor executor, g gVar, AssetManager assetManager) { + super(executor, gVar); + this.c = assetManager; + } + + /* JADX WARNING: Code restructure failed: missing block: B:12:0x0031, code lost: + if (r1 == null) goto L_0x0036; + */ + @Override // b.f.j.p.g0 + public e d(ImageRequest imageRequest) throws IOException { + int i; + InputStream open = this.c.open(imageRequest.c.getPath().substring(1), 2); + AssetFileDescriptor assetFileDescriptor = null; + try { + assetFileDescriptor = this.c.openFd(imageRequest.c.getPath().substring(1)); + i = (int) assetFileDescriptor.getLength(); + } catch (IOException unused) { + i = -1; + } catch (Throwable th) { + if (assetFileDescriptor != null) { + try { + assetFileDescriptor.close(); + } catch (IOException unused2) { + } + } + throw th; + } + try { + assetFileDescriptor.close(); + } catch (IOException unused3) { + } + return c(open, i); + } + + @Override // b.f.j.p.g0 + public String e() { + return "LocalAssetFetchProducer"; + } +} diff --git a/app/src/main/java/b/f/j/p/d1.java b/app/src/main/java/b/f/j/p/d1.java new file mode 100644 index 0000000000..0342dcb8fb --- /dev/null +++ b/app/src/main/java/b/f/j/p/d1.java @@ -0,0 +1,78 @@ +package b.f.j.p; + +import java.util.Map; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: StatefulProducerRunnable */ +public abstract class d1 implements Runnable { + public final AtomicInteger j = new AtomicInteger(0); + public final l k; + public final y0 l; + public final String m; + public final w0 n; + + public d1(l lVar, y0 y0Var, w0 w0Var, String str) { + this.k = lVar; + this.l = y0Var; + this.m = str; + this.n = w0Var; + y0Var.e(w0Var, str); + } + + public void a() { + if (this.j.compareAndSet(0, 2)) { + e(); + } + } + + public abstract void b(T t); + + public Map c(T t) { + return null; + } + + public abstract T d() throws Exception; + + public void e() { + y0 y0Var = this.l; + w0 w0Var = this.n; + String str = this.m; + y0Var.g(w0Var, str); + y0Var.d(w0Var, str, null); + this.k.d(); + } + + public void f(Exception exc) { + y0 y0Var = this.l; + w0 w0Var = this.n; + String str = this.m; + y0Var.g(w0Var, str); + y0Var.k(w0Var, str, exc, null); + this.k.c(exc); + } + + public void g(T t) { + y0 y0Var = this.l; + w0 w0Var = this.n; + String str = this.m; + y0Var.j(w0Var, str, y0Var.g(w0Var, str) ? c(t) : null); + this.k.b(t, 1); + } + + @Override // java.lang.Runnable + public final void run() { + if (this.j.compareAndSet(0, 1)) { + try { + T d = d(); + this.j.set(3); + try { + g(d); + } finally { + b(d); + } + } catch (Exception e) { + this.j.set(4); + f(e); + } + } + } +} diff --git a/app/src/main/java/b/f/j/p/e.java b/app/src/main/java/b/f/j/p/e.java new file mode 100644 index 0000000000..da7e570771 --- /dev/null +++ b/app/src/main/java/b/f/j/p/e.java @@ -0,0 +1,15 @@ +package b.f.j.p; +/* compiled from: BaseProducerContextCallbacks */ +public class e implements x0 { + @Override // b.f.j.p.x0 + public void b() { + } + + @Override // b.f.j.p.x0 + public void c() { + } + + @Override // b.f.j.p.x0 + public void d() { + } +} diff --git a/app/src/main/java/b/f/j/p/e0.java b/app/src/main/java/b/f/j/p/e0.java new file mode 100644 index 0000000000..585b0306eb --- /dev/null +++ b/app/src/main/java/b/f/j/p/e0.java @@ -0,0 +1,81 @@ +package b.f.j.p; + +import android.content.ContentResolver; +import android.database.Cursor; +import android.net.Uri; +import android.provider.ContactsContract; +import b.f.d.g.g; +import b.f.d.l.b; +import b.f.j.j.e; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.concurrent.Executor; +/* compiled from: LocalContentUriFetchProducer */ +public class e0 extends g0 { + public static final String[] c = {"_id", "_data"}; + public final ContentResolver d; + + public e0(Executor executor, g gVar, ContentResolver contentResolver) { + super(executor, gVar); + this.d = contentResolver; + } + + @Override // b.f.j.p.g0 + public e d(ImageRequest imageRequest) throws IOException { + InputStream inputStream; + Uri uri = imageRequest.c; + Uri uri2 = b.a; + boolean z2 = false; + if (uri.getPath() != null && b.c(uri) && "com.android.contacts".equals(uri.getAuthority()) && !uri.getPath().startsWith(b.a.getPath())) { + z2 = true; + } + if (z2) { + if (uri.toString().endsWith("/photo")) { + inputStream = this.d.openInputStream(uri); + } else if (uri.toString().endsWith("/display_photo")) { + try { + inputStream = this.d.openAssetFileDescriptor(uri, "r").createInputStream(); + } catch (IOException unused) { + throw new IOException("Contact photo does not exist: " + uri); + } + } else { + InputStream openContactPhotoInputStream = ContactsContract.Contacts.openContactPhotoInputStream(this.d, uri); + if (openContactPhotoInputStream != null) { + inputStream = openContactPhotoInputStream; + } else { + throw new IOException("Contact photo does not exist: " + uri); + } + } + return c(inputStream, -1); + } + if (b.b(uri)) { + Cursor query = this.d.query(uri, c, null, null, null); + e eVar = null; + if (query != null) { + try { + if (query.getCount() != 0) { + query.moveToFirst(); + String string = query.getString(query.getColumnIndex("_data")); + if (string != null) { + eVar = c(new FileInputStream(this.d.openFileDescriptor(uri, "r").getFileDescriptor()), (int) new File(string).length()); + } + } + } finally { + query.close(); + } + } + if (eVar != null) { + return eVar; + } + } + return c(this.d.openInputStream(uri), -1); + } + + @Override // b.f.j.p.g0 + public String e() { + return "LocalContentUriFetchProducer"; + } +} diff --git a/app/src/main/java/b/f/j/p/e1.java b/app/src/main/java/b/f/j/p/e1.java new file mode 100644 index 0000000000..b25b979827 --- /dev/null +++ b/app/src/main/java/b/f/j/p/e1.java @@ -0,0 +1,85 @@ +package b.f.j.p; + +import java.util.Objects; +/* compiled from: ThreadHandoffProducer */ +public class e1 implements v0 { + public final v0 a; + + /* renamed from: b reason: collision with root package name */ + public final f1 f598b; + + /* compiled from: ThreadHandoffProducer */ + public class a extends d1 { + public final /* synthetic */ y0 o; + public final /* synthetic */ w0 p; + public final /* synthetic */ l q; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(l lVar, y0 y0Var, w0 w0Var, String str, y0 y0Var2, w0 w0Var2, l lVar2) { + super(lVar, y0Var, w0Var, str); + this.o = y0Var2; + this.p = w0Var2; + this.q = lVar2; + } + + @Override // b.f.j.p.d1 + public void b(T t) { + } + + @Override // b.f.j.p.d1 + public T d() throws Exception { + return null; + } + + @Override // b.f.j.p.d1 + public void g(T t) { + this.o.j(this.p, "BackgroundThreadHandoffProducer", null); + e1.this.a.b(this.q, this.p); + } + } + + /* compiled from: ThreadHandoffProducer */ + public class b extends e { + public final /* synthetic */ d1 a; + + public b(d1 d1Var) { + this.a = d1Var; + } + + @Override // b.f.j.p.x0 + public void a() { + this.a.a(); + f1 f1Var = e1.this.f598b; + d1 d1Var = this.a; + g1 g1Var = (g1) f1Var; + synchronized (g1Var) { + g1Var.a.remove(d1Var); + } + } + } + + public e1(v0 v0Var, f1 f1Var) { + Objects.requireNonNull(v0Var); + this.a = v0Var; + this.f598b = f1Var; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + try { + b.f.j.r.b.b(); + y0 o = w0Var.o(); + a aVar = new a(lVar, o, w0Var, "BackgroundThreadHandoffProducer", o, w0Var, lVar); + w0Var.f(new b(aVar)); + g1 g1Var = (g1) this.f598b; + synchronized (g1Var) { + g1Var.f601b.execute(aVar); + } + b.f.j.r.b.b(); + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } +} diff --git a/app/src/main/java/b/f/j/p/f.java b/app/src/main/java/b/f/j/p/f.java new file mode 100644 index 0000000000..f75e4aaa7c --- /dev/null +++ b/app/src/main/java/b/f/j/p/f.java @@ -0,0 +1,28 @@ +package b.f.j.p; + +import b.f.j.c.i; +import b.f.j.c.w; +import b.f.j.j.c; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.references.CloseableReference; +/* compiled from: BitmapMemoryCacheGetProducer */ +public class f extends h { + public f(w wVar, i iVar, v0> v0Var) { + super(wVar, iVar, v0Var); + } + + @Override // b.f.j.p.h + public String c() { + return "pipe_ui"; + } + + @Override // b.f.j.p.h + public String d() { + return "BitmapMemoryCacheGetProducer"; + } + + @Override // b.f.j.p.h + public l> e(l> lVar, CacheKey cacheKey, boolean z2) { + return lVar; + } +} diff --git a/app/src/main/java/b/f/j/p/f0.java b/app/src/main/java/b/f/j/p/f0.java new file mode 100644 index 0000000000..1599bf8dd3 --- /dev/null +++ b/app/src/main/java/b/f/j/p/f0.java @@ -0,0 +1,99 @@ +package b.f.j.p; + +import android.content.ContentResolver; +import android.database.Cursor; +import android.graphics.Rect; +import android.media.ExifInterface; +import android.net.Uri; +import android.provider.MediaStore; +import b.c.a.a0.d; +import b.f.d.e.a; +import b.f.d.g.g; +import b.f.d.l.b; +import b.f.j.j.e; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.util.concurrent.Executor; +/* compiled from: LocalContentUriThumbnailFetchProducer */ +public class f0 extends g0 implements j1 { + public static final String[] c = {"_id", "_data"}; + public static final String[] d = {"_data"}; + public static final Rect e = new Rect(0, 0, 512, 384); + public static final Rect f = new Rect(0, 0, 96, 96); + public final ContentResolver g; + + public f0(Executor executor, g gVar, ContentResolver contentResolver) { + super(executor, gVar); + this.g = contentResolver; + } + + @Override // b.f.j.p.j1 + public boolean a(b.f.j.d.e eVar) { + Rect rect = e; + return d.R0(rect.width(), rect.height(), eVar); + } + + @Override // b.f.j.p.g0 + public e d(ImageRequest imageRequest) throws IOException { + b.f.j.d.e eVar; + Cursor query; + e f2; + Uri uri = imageRequest.c; + if (!b.b(uri) || (eVar = imageRequest.i) == null || (query = this.g.query(uri, c, null, null, null)) == null) { + return null; + } + try { + if (!query.moveToFirst() || (f2 = f(eVar, query.getLong(query.getColumnIndex("_id")))) == null) { + query.close(); + return null; + } + String string = query.getString(query.getColumnIndex("_data")); + int i = 0; + if (string != null) { + try { + i = d.r0(new ExifInterface(string).getAttributeInt(androidx.exifinterface.media.ExifInterface.TAG_ORIENTATION, 1)); + } catch (IOException e2) { + a.d(f0.class, e2, "Unable to retrieve thumbnail rotation for %s", string); + } + } + f2.m = i; + return f2; + } finally { + query.close(); + } + } + + @Override // b.f.j.p.g0 + public String e() { + return "LocalContentUriThumbnailFetchProducer"; + } + + public final e f(b.f.j.d.e eVar, long j) throws IOException { + int i; + Cursor queryMiniThumbnail; + Rect rect = f; + if (d.R0(rect.width(), rect.height(), eVar)) { + i = 3; + } else { + Rect rect2 = e; + i = d.R0(rect2.width(), rect2.height(), eVar) ? 1 : 0; + } + if (i == 0 || (queryMiniThumbnail = MediaStore.Images.Thumbnails.queryMiniThumbnail(this.g, j, i, d)) == null) { + return null; + } + try { + if (queryMiniThumbnail.moveToFirst()) { + String string = queryMiniThumbnail.getString(queryMiniThumbnail.getColumnIndex("_data")); + if (new File(string).exists()) { + return c(new FileInputStream(string), string == null ? -1 : (int) new File(string).length()); + } + } + queryMiniThumbnail.close(); + return null; + } finally { + queryMiniThumbnail.close(); + } + } +} diff --git a/app/src/main/java/b/f/j/p/f1.java b/app/src/main/java/b/f/j/p/f1.java new file mode 100644 index 0000000000..dd0398da6a --- /dev/null +++ b/app/src/main/java/b/f/j/p/f1.java @@ -0,0 +1,4 @@ +package b.f.j.p; +/* compiled from: ThreadHandoffProducerQueue */ +public interface f1 { +} diff --git a/app/src/main/java/b/f/j/p/g.java b/app/src/main/java/b/f/j/p/g.java new file mode 100644 index 0000000000..1c4bd54c03 --- /dev/null +++ b/app/src/main/java/b/f/j/p/g.java @@ -0,0 +1,31 @@ +package b.f.j.p; + +import android.util.Pair; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.j.c; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: BitmapMemoryCacheKeyMultiplexProducer */ +public class g extends k0, CloseableReference> { + public final i f; + + public g(i iVar, v0 v0Var) { + super(v0Var, "BitmapMemoryCacheKeyMultiplexProducer", "multiplex_bmp_cnt"); + this.f = iVar; + } + + /* Return type fixed from 'java.io.Closeable' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.io.Closeable] */ + @Override // b.f.j.p.k0 + public CloseableReference c(CloseableReference closeableReference) { + return CloseableReference.n(closeableReference); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.f.j.p.k0 + public Pair d(w0 w0Var) { + return Pair.create(((n) this.f).a(w0Var.e(), w0Var.b()), w0Var.q()); + } +} diff --git a/app/src/main/java/b/f/j/p/g0.java b/app/src/main/java/b/f/j/p/g0.java new file mode 100644 index 0000000000..15ce81e573 --- /dev/null +++ b/app/src/main/java/b/f/j/p/g0.java @@ -0,0 +1,113 @@ +package b.f.j.p; + +import b.f.d.g.g; +import b.f.j.j.e; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.IOException; +import java.io.InputStream; +import java.util.concurrent.Executor; +/* compiled from: LocalFetchProducer */ +public abstract class g0 implements v0 { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final g f600b; + + /* compiled from: LocalFetchProducer */ + public class a extends d1 { + public final /* synthetic */ ImageRequest o; + public final /* synthetic */ y0 p; + public final /* synthetic */ w0 q; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(l lVar, y0 y0Var, w0 w0Var, String str, ImageRequest imageRequest, y0 y0Var2, w0 w0Var2) { + super(lVar, y0Var, w0Var, str); + this.o = imageRequest; + this.p = y0Var2; + this.q = w0Var2; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.p.d1 + public void b(e eVar) { + e eVar2 = eVar; + if (eVar2 != null) { + eVar2.close(); + } + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.f.j.p.d1 + public e d() throws Exception { + e d = g0.this.d(this.o); + if (d == null) { + this.p.c(this.q, g0.this.e(), false); + this.q.n("local"); + return null; + } + d.n(); + this.p.c(this.q, g0.this.e(), true); + this.q.n("local"); + return d; + } + } + + /* compiled from: LocalFetchProducer */ + public class b extends e { + public final /* synthetic */ d1 a; + + public b(g0 g0Var, d1 d1Var) { + this.a = d1Var; + } + + @Override // b.f.j.p.x0 + public void a() { + this.a.a(); + } + } + + public g0(Executor executor, g gVar) { + this.a = executor; + this.f600b = gVar; + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + y0 o = w0Var.o(); + ImageRequest e = w0Var.e(); + w0Var.i("local", "fetch"); + a aVar = new a(lVar, o, w0Var, e(), e, o, w0Var); + w0Var.f(new b(this, aVar)); + this.a.execute(aVar); + } + + public e c(InputStream inputStream, int i) throws IOException { + CloseableReference closeableReference; + CloseableReference closeableReference2 = null; + if (i <= 0) { + try { + closeableReference = CloseableReference.A(this.f600b.c(inputStream)); + } catch (Throwable th) { + b.f.d.d.a.b(inputStream); + Class cls = CloseableReference.j; + if (0 != 0) { + closeableReference2.close(); + } + throw th; + } + } else { + closeableReference = CloseableReference.A(this.f600b.d(inputStream, i)); + } + e eVar = new e(closeableReference); + b.f.d.d.a.b(inputStream); + if (closeableReference != null) { + closeableReference.close(); + } + return eVar; + } + + public abstract e d(ImageRequest imageRequest) throws IOException; + + public abstract String e(); +} diff --git a/app/src/main/java/b/f/j/p/g1.java b/app/src/main/java/b/f/j/p/g1.java new file mode 100644 index 0000000000..667937b1a9 --- /dev/null +++ b/app/src/main/java/b/f/j/p/g1.java @@ -0,0 +1,18 @@ +package b.f.j.p; + +import java.util.ArrayDeque; +import java.util.Deque; +import java.util.Objects; +import java.util.concurrent.Executor; +/* compiled from: ThreadHandoffProducerQueueImpl */ +public class g1 implements f1 { + public final Deque a = new ArrayDeque(); + + /* renamed from: b reason: collision with root package name */ + public final Executor f601b; + + public g1(Executor executor) { + Objects.requireNonNull(executor); + this.f601b = executor; + } +} diff --git a/app/src/main/java/b/f/j/p/h.java b/app/src/main/java/b/f/j/p/h.java new file mode 100644 index 0000000000..144096b567 --- /dev/null +++ b/app/src/main/java/b/f/j/p/h.java @@ -0,0 +1,158 @@ +package b.f.j.p; + +import b.f.d.d.f; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.c.w; +import b.f.j.j.c; +import b.f.j.r.b; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.Map; +/* compiled from: BitmapMemoryCacheProducer */ +public class h implements v0> { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final i f602b; + public final v0> c; + + /* compiled from: BitmapMemoryCacheProducer */ + public class a extends p, CloseableReference> { + public final /* synthetic */ CacheKey c; + public final /* synthetic */ boolean d; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(l lVar, CacheKey cacheKey, boolean z2) { + super(lVar); + this.c = cacheKey; + this.d = z2; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.b + public void i(Object obj, int i) { + CloseableReference closeableReference; + CloseableReference closeableReference2 = (CloseableReference) obj; + try { + b.b(); + boolean e = b.e(i); + CloseableReference closeableReference3 = null; + if (closeableReference2 == null) { + if (e) { + this.f619b.b(null, i); + } + } else if (closeableReference2.u().d() || b.m(i, 8)) { + this.f619b.b(closeableReference2, i); + } else { + if (!e && (closeableReference = h.this.a.get(this.c)) != null) { + try { + b.f.j.j.i b2 = closeableReference2.u().b(); + b.f.j.j.i b3 = closeableReference.u().b(); + if (((b.f.j.j.h) b3).d || ((b.f.j.j.h) b3).f579b >= ((b.f.j.j.h) b2).f579b) { + this.f619b.b(closeableReference, i); + closeableReference.close(); + } + } finally { + closeableReference.close(); + } + } + if (this.d) { + closeableReference3 = h.this.a.a(this.c, closeableReference2); + } + if (e) { + try { + this.f619b.a(1.0f); + } catch (Throwable th) { + if (closeableReference3 != null) { + closeableReference3.close(); + } + throw th; + } + } + l lVar = this.f619b; + if (closeableReference3 != null) { + closeableReference2 = closeableReference3; + } + lVar.b(closeableReference2, i); + if (closeableReference3 != null) { + closeableReference3.close(); + } + } + b.b(); + } catch (Throwable th2) { + b.b(); + throw th2; + } + } + } + + public h(w wVar, i iVar, v0> v0Var) { + this.a = wVar; + this.f602b = iVar; + this.c = v0Var; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.v0 + public void b(l> lVar, w0 w0Var) { + try { + b.b(); + y0 o = w0Var.o(); + o.e(w0Var, d()); + CacheKey a2 = ((n) this.f602b).a(w0Var.e(), w0Var.b()); + CloseableReference closeableReference = this.a.get(a2); + Map map = null; + if (closeableReference != null) { + w0Var.j(closeableReference.u().a()); + boolean z2 = ((b.f.j.j.h) closeableReference.u().b()).d; + if (z2) { + o.j(w0Var, d(), o.g(w0Var, d()) ? f.of("cached_value_found", "true") : null); + o.c(w0Var, d(), true); + w0Var.i("memory_bitmap", c()); + lVar.a(1.0f); + } + lVar.b(closeableReference, z2 ? 1 : 0); + closeableReference.close(); + if (z2) { + b.b(); + return; + } + } + if (w0Var.q().g() >= ImageRequest.c.BITMAP_MEMORY_CACHE.g()) { + o.j(w0Var, d(), o.g(w0Var, d()) ? f.of("cached_value_found", "false") : null); + o.c(w0Var, d(), false); + w0Var.i("memory_bitmap", c()); + lVar.b(null, 1); + b.b(); + return; + } + l> e = e(lVar, a2, w0Var.e().o); + String d = d(); + if (o.g(w0Var, d())) { + map = f.of("cached_value_found", "false"); + } + o.j(w0Var, d, map); + b.b(); + this.c.b(e, w0Var); + b.b(); + b.b(); + } catch (Throwable th) { + b.b(); + throw th; + } + } + + public String c() { + return "pipe_bg"; + } + + public String d() { + return "BitmapMemoryCacheProducer"; + } + + public l> e(l> lVar, CacheKey cacheKey, boolean z2) { + return new a(lVar, cacheKey, z2); + } +} diff --git a/app/src/main/java/b/f/j/p/h0.java b/app/src/main/java/b/f/j/p/h0.java new file mode 100644 index 0000000000..61d8c9a65a --- /dev/null +++ b/app/src/main/java/b/f/j/p/h0.java @@ -0,0 +1,24 @@ +package b.f.j.p; + +import b.f.d.g.g; +import b.f.j.j.e; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.FileInputStream; +import java.io.IOException; +import java.util.concurrent.Executor; +/* compiled from: LocalFileFetchProducer */ +public class h0 extends g0 { + public h0(Executor executor, g gVar) { + super(executor, gVar); + } + + @Override // b.f.j.p.g0 + public e d(ImageRequest imageRequest) throws IOException { + return c(new FileInputStream(imageRequest.a().toString()), (int) imageRequest.a().length()); + } + + @Override // b.f.j.p.g0 + public String e() { + return "LocalFileFetchProducer"; + } +} diff --git a/app/src/main/java/b/f/j/p/h1.java b/app/src/main/java/b/f/j/p/h1.java new file mode 100644 index 0000000000..e3423417c7 --- /dev/null +++ b/app/src/main/java/b/f/j/p/h1.java @@ -0,0 +1,103 @@ +package b.f.j.p; + +import android.util.Pair; +import java.util.Objects; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.Executor; +/* compiled from: ThrottlingProducer */ +public class h1 implements v0 { + public final v0 a; + + /* renamed from: b reason: collision with root package name */ + public int f603b = 0; + public final ConcurrentLinkedQueue, w0>> c = new ConcurrentLinkedQueue<>(); + public final Executor d; + + /* compiled from: ThrottlingProducer */ + public class b extends p { + + /* compiled from: ThrottlingProducer */ + public class a implements Runnable { + public final /* synthetic */ Pair j; + + public a(Pair pair) { + this.j = pair; + } + + @Override // java.lang.Runnable + public void run() { + h1 h1Var = h1.this; + Pair pair = this.j; + w0 w0Var = (w0) pair.second; + Objects.requireNonNull(h1Var); + w0Var.o().j(w0Var, "ThrottlingProducer", null); + h1Var.a.b(new b((l) pair.first, null), w0Var); + } + } + + public b(l lVar, a aVar) { + super(lVar); + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void g() { + this.f619b.d(); + n(); + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void h(Throwable th) { + this.f619b.c(th); + n(); + } + + @Override // b.f.j.p.b + public void i(T t, int i) { + this.f619b.b(t, i); + if (b.e(i)) { + n(); + } + } + + public final void n() { + Pair, w0> poll; + synchronized (h1.this) { + poll = h1.this.c.poll(); + if (poll == null) { + h1 h1Var = h1.this; + h1Var.f603b--; + } + } + if (poll != null) { + h1.this.d.execute(new a(poll)); + } + } + } + + public h1(int i, Executor executor, v0 v0Var) { + Objects.requireNonNull(executor); + this.d = executor; + Objects.requireNonNull(v0Var); + this.a = v0Var; + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + boolean z2; + w0Var.o().e(w0Var, "ThrottlingProducer"); + synchronized (this) { + int i = this.f603b; + z2 = true; + if (i >= 5) { + this.c.add(Pair.create(lVar, w0Var)); + } else { + this.f603b = i + 1; + z2 = false; + } + } + if (!z2) { + w0Var.o().j(w0Var, "ThrottlingProducer", null); + this.a.b(new b(lVar, null), w0Var); + } + } +} diff --git a/app/src/main/java/b/f/j/p/i.java b/app/src/main/java/b/f/j/p/i.java new file mode 100644 index 0000000000..07eb0cd94f --- /dev/null +++ b/app/src/main/java/b/f/j/p/i.java @@ -0,0 +1,60 @@ +package b.f.j.p; + +import android.graphics.Bitmap; +import b.f.j.j.c; +import b.f.j.j.d; +import com.facebook.common.references.CloseableReference; +import java.util.Objects; +/* compiled from: BitmapPrepareProducer */ +public class i implements v0> { + public final v0> a; + + /* renamed from: b reason: collision with root package name */ + public final int f604b; + public final int c; + public final boolean d; + + /* compiled from: BitmapPrepareProducer */ + public static class a extends p, CloseableReference> { + public final int c; + public final int d; + + public a(l> lVar, int i, int i2) { + super(lVar); + this.c = i; + this.d = i2; + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + Bitmap bitmap; + int height; + CloseableReference closeableReference = (CloseableReference) obj; + if (closeableReference != null && closeableReference.x()) { + c cVar = (c) closeableReference.u(); + if (!cVar.isClosed() && (cVar instanceof d) && (bitmap = ((d) cVar).m) != null && (height = bitmap.getHeight() * bitmap.getRowBytes()) >= this.c && height <= this.d) { + bitmap.prepareToDraw(); + } + } + this.f619b.b(closeableReference, i); + } + } + + public i(v0> v0Var, int i, int i2, boolean z2) { + b.c.a.a0.d.i(Boolean.valueOf(i <= i2)); + Objects.requireNonNull(v0Var); + this.a = v0Var; + this.f604b = i; + this.c = i2; + this.d = z2; + } + + @Override // b.f.j.p.v0 + public void b(l> lVar, w0 w0Var) { + if (!w0Var.k() || this.d) { + this.a.b(new a(lVar, this.f604b, this.c), w0Var); + } else { + this.a.b(lVar, w0Var); + } + } +} diff --git a/app/src/main/java/b/f/j/p/i0.java b/app/src/main/java/b/f/j/p/i0.java new file mode 100644 index 0000000000..237b5c8a4e --- /dev/null +++ b/app/src/main/java/b/f/j/p/i0.java @@ -0,0 +1,53 @@ +package b.f.j.p; + +import android.content.res.AssetFileDescriptor; +import android.content.res.Resources; +import b.f.d.g.g; +import b.f.j.j.e; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.IOException; +import java.io.InputStream; +import java.util.concurrent.Executor; +/* compiled from: LocalResourceFetchProducer */ +public class i0 extends g0 { + public final Resources c; + + public i0(Executor executor, g gVar, Resources resources) { + super(executor, gVar); + this.c = resources; + } + + /* JADX WARNING: Code restructure failed: missing block: B:12:0x0038, code lost: + if (r1 == null) goto L_0x003d; + */ + @Override // b.f.j.p.g0 + public e d(ImageRequest imageRequest) throws IOException { + int i; + InputStream openRawResource = this.c.openRawResource(Integer.parseInt(imageRequest.c.getPath().substring(1))); + AssetFileDescriptor assetFileDescriptor = null; + try { + assetFileDescriptor = this.c.openRawResourceFd(Integer.parseInt(imageRequest.c.getPath().substring(1))); + i = (int) assetFileDescriptor.getLength(); + } catch (Resources.NotFoundException unused) { + i = -1; + } catch (Throwable th) { + if (assetFileDescriptor != null) { + try { + assetFileDescriptor.close(); + } catch (IOException unused2) { + } + } + throw th; + } + try { + assetFileDescriptor.close(); + } catch (IOException unused3) { + } + return c(openRawResource, i); + } + + @Override // b.f.j.p.g0 + public String e() { + return "LocalResourceFetchProducer"; + } +} diff --git a/app/src/main/java/b/f/j/p/i1.java b/app/src/main/java/b/f/j/p/i1.java new file mode 100644 index 0000000000..6b962d5666 --- /dev/null +++ b/app/src/main/java/b/f/j/p/i1.java @@ -0,0 +1,87 @@ +package b.f.j.p; + +import b.c.a.a0.d; +import b.f.j.j.e; +import java.util.Objects; +/* compiled from: ThumbnailBranchProducer */ +public class i1 implements v0 { + public final j1[] a; + + /* compiled from: ThumbnailBranchProducer */ + public class a extends p { + public final w0 c; + public final int d; + public final b.f.j.d.e e; + + public a(l lVar, w0 w0Var, int i) { + super(lVar); + this.c = w0Var; + this.d = i; + this.e = w0Var.e().i; + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void h(Throwable th) { + if (!i1.this.c(this.d + 1, this.f619b, this.c)) { + this.f619b.c(th); + } + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + e eVar = (e) obj; + if (eVar != null && (b.f(i) || d.S0(eVar, this.e))) { + this.f619b.b(eVar, i); + } else if (b.e(i)) { + if (eVar != null) { + eVar.close(); + } + if (!i1.this.c(this.d + 1, this.f619b, this.c)) { + this.f619b.b(null, 1); + } + } + } + } + + public i1(j1... j1VarArr) { + Objects.requireNonNull(j1VarArr); + this.a = j1VarArr; + int length = j1VarArr.length; + if (length > 0) { + return; + } + if (length >= 0) { + throw new IndexOutOfBoundsException(d.j0("%s (%s) must be less than size (%s)", "index", 0, Integer.valueOf(length))); + } + throw new IllegalArgumentException(b.d.b.a.a.p("negative size: ", length)); + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + if (w0Var.e().i == null) { + lVar.b(null, 1); + } else if (!c(0, lVar, w0Var)) { + lVar.b(null, 1); + } + } + + public final boolean c(int i, l lVar, w0 w0Var) { + b.f.j.d.e eVar = w0Var.e().i; + while (true) { + j1[] j1VarArr = this.a; + if (i >= j1VarArr.length) { + i = -1; + break; + } else if (j1VarArr[i].a(eVar)) { + break; + } else { + i++; + } + } + if (i == -1) { + return false; + } + this.a[i].b(new a(lVar, w0Var, i), w0Var); + return true; + } +} diff --git a/app/src/main/java/b/f/j/p/j.java b/app/src/main/java/b/f/j/p/j.java new file mode 100644 index 0000000000..5217f0774a --- /dev/null +++ b/app/src/main/java/b/f/j/p/j.java @@ -0,0 +1,100 @@ +package b.f.j.p; + +import b.f.j.c.d; +import b.f.j.c.f; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.c.w; +import b.f.j.j.c; +import b.f.j.r.b; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.Objects; +/* compiled from: BitmapProbeProducer */ +public class j implements v0> { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final f f605b; + public final f c; + public final i d; + public final v0> e; + public final d f; + public final d g; + + /* compiled from: BitmapProbeProducer */ + public static class a extends p, CloseableReference> { + public final w0 c; + public final w d; + public final f e; + public final f f; + public final i g; + public final d h; + public final d i; + + public a(l> lVar, w0 w0Var, w wVar, f fVar, f fVar2, i iVar, d dVar, d dVar2) { + super(lVar); + this.c = w0Var; + this.d = wVar; + this.e = fVar; + this.f = fVar2; + this.g = iVar; + this.h = dVar; + this.i = dVar2; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.b + public void i(Object obj, int i) { + CloseableReference closeableReference = (CloseableReference) obj; + try { + b.b(); + if (!b.f(i) && closeableReference != null) { + if (!b.l(i, 8)) { + ImageRequest e = this.c.e(); + ((n) this.g).b(e, this.c.b()); + if (this.c.l("origin").equals("memory_bitmap")) { + Objects.requireNonNull(this.c.g().w); + Objects.requireNonNull(this.c.g().w); + } + this.f619b.b(closeableReference, i); + b.b(); + } + } + this.f619b.b(closeableReference, i); + b.b(); + } catch (Throwable th) { + b.b(); + throw th; + } + } + } + + public j(w wVar, f fVar, f fVar2, i iVar, d dVar, d dVar2, v0> v0Var) { + this.a = wVar; + this.f605b = fVar; + this.c = fVar2; + this.d = iVar; + this.f = dVar; + this.g = dVar2; + this.e = v0Var; + } + + @Override // b.f.j.p.v0 + public void b(l> lVar, w0 w0Var) { + try { + b.b(); + y0 o = w0Var.o(); + o.e(w0Var, "BitmapProbeProducer"); + a aVar = new a(lVar, w0Var, this.a, this.f605b, this.c, this.d, this.f, this.g); + o.j(w0Var, "BitmapProbeProducer", null); + b.b(); + this.e.b(aVar, w0Var); + b.b(); + } finally { + b.b(); + } + } +} diff --git a/app/src/main/java/b/f/j/p/j0.java b/app/src/main/java/b/f/j/p/j0.java new file mode 100644 index 0000000000..135fe1888c --- /dev/null +++ b/app/src/main/java/b/f/j/p/j0.java @@ -0,0 +1,187 @@ +package b.f.j.p; + +import android.content.ContentResolver; +import android.database.Cursor; +import android.graphics.Bitmap; +import android.media.MediaMetadataRetriever; +import android.media.ThumbnailUtils; +import android.net.Uri; +import android.os.ParcelFileDescriptor; +import android.provider.DocumentsContract; +import android.provider.MediaStore; +import b.f.d.d.f; +import b.f.j.d.e; +import b.f.j.j.c; +import b.f.j.j.d; +import b.f.j.j.h; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.FileNotFoundException; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.Executor; +import org.webrtc.MediaStreamTrack; +/* compiled from: LocalVideoThumbnailProducer */ +public class j0 implements v0> { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final ContentResolver f606b; + + /* compiled from: LocalVideoThumbnailProducer */ + public class a extends d1> { + public final /* synthetic */ y0 o; + public final /* synthetic */ w0 p; + public final /* synthetic */ ImageRequest q; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(l lVar, y0 y0Var, w0 w0Var, String str, y0 y0Var2, w0 w0Var2, ImageRequest imageRequest) { + super(lVar, y0Var, w0Var, str); + this.o = y0Var2; + this.p = w0Var2; + this.q = imageRequest; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.p.d1 + public void b(CloseableReference closeableReference) { + CloseableReference closeableReference2 = closeableReference; + Class cls = CloseableReference.j; + if (closeableReference2 != null) { + closeableReference2.close(); + } + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.p.d1 + public Map c(CloseableReference closeableReference) { + return f.of("createdThumbnail", String.valueOf(closeableReference != null)); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.f.j.p.d1 + public CloseableReference d() throws Exception { + String str; + Bitmap bitmap; + int i; + try { + str = j0.c(j0.this, this.q); + } catch (IllegalArgumentException unused) { + str = null; + } + if (str != null) { + e eVar = this.q.i; + int i2 = 2048; + if ((eVar != null ? eVar.a : 2048) <= 96) { + if (eVar != null) { + i2 = eVar.f554b; + } + if (i2 <= 96) { + i = 3; + bitmap = ThumbnailUtils.createVideoThumbnail(str, i); + } + } + i = 1; + bitmap = ThumbnailUtils.createVideoThumbnail(str, i); + } else { + try { + ParcelFileDescriptor openFileDescriptor = j0.this.f606b.openFileDescriptor(this.q.c, "r"); + MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever(); + mediaMetadataRetriever.setDataSource(openFileDescriptor.getFileDescriptor()); + bitmap = mediaMetadataRetriever.getFrameAtTime(-1); + } catch (FileNotFoundException unused2) { + bitmap = null; + } + } + if (bitmap == null) { + return null; + } + d dVar = new d(bitmap, b.f.j.b.b.a(), h.a, 0); + this.p.d("image_format", "thumbnail"); + dVar.e(this.p.a()); + return CloseableReference.A(dVar); + } + + @Override // b.f.j.p.d1 + public void f(Exception exc) { + super.f(exc); + this.o.c(this.p, "VideoThumbnailProducer", false); + this.p.n("local"); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.f.j.p.d1 + public void g(CloseableReference closeableReference) { + CloseableReference closeableReference2 = closeableReference; + super.g(closeableReference2); + this.o.c(this.p, "VideoThumbnailProducer", closeableReference2 != null); + this.p.n("local"); + } + } + + /* compiled from: LocalVideoThumbnailProducer */ + public class b extends e { + public final /* synthetic */ d1 a; + + public b(j0 j0Var, d1 d1Var) { + this.a = d1Var; + } + + @Override // b.f.j.p.x0 + public void a() { + this.a.a(); + } + } + + public j0(Executor executor, ContentResolver contentResolver) { + this.a = executor; + this.f606b = contentResolver; + } + + public static String c(j0 j0Var, ImageRequest imageRequest) { + String[] strArr; + String str; + Uri uri; + Objects.requireNonNull(j0Var); + Uri uri2 = imageRequest.c; + if (b.f.d.l.b.d(uri2)) { + return imageRequest.a().getPath(); + } + if (b.f.d.l.b.c(uri2)) { + if ("com.android.providers.media.documents".equals(uri2.getAuthority())) { + String documentId = DocumentsContract.getDocumentId(uri2); + str = "_id=?"; + uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; + strArr = new String[]{documentId.split(":")[1]}; + } else { + uri = uri2; + str = null; + strArr = null; + } + Cursor query = j0Var.f606b.query(uri, new String[]{"_data"}, str, strArr, null); + if (query != null) { + try { + if (query.moveToFirst()) { + return query.getString(query.getColumnIndexOrThrow("_data")); + } + } finally { + query.close(); + } + } + if (query != null) { + query.close(); + } + } + return null; + } + + @Override // b.f.j.p.v0 + public void b(l> lVar, w0 w0Var) { + y0 o = w0Var.o(); + ImageRequest e = w0Var.e(); + w0Var.i("local", MediaStreamTrack.VIDEO_TRACK_KIND); + a aVar = new a(lVar, o, w0Var, "VideoThumbnailProducer", o, w0Var, e); + w0Var.f(new b(this, aVar)); + this.a.execute(aVar); + } +} diff --git a/app/src/main/java/b/f/j/p/j1.java b/app/src/main/java/b/f/j/p/j1.java new file mode 100644 index 0000000000..2d2faf44ce --- /dev/null +++ b/app/src/main/java/b/f/j/p/j1.java @@ -0,0 +1,7 @@ +package b.f.j.p; + +import b.f.j.d.e; +/* compiled from: ThumbnailProducer */ +public interface j1 extends v0 { + boolean a(e eVar); +} diff --git a/app/src/main/java/b/f/j/p/k.java b/app/src/main/java/b/f/j/p/k.java new file mode 100644 index 0000000000..38365943bc --- /dev/null +++ b/app/src/main/java/b/f/j/p/k.java @@ -0,0 +1,58 @@ +package b.f.j.p; + +import b.c.a.a0.d; +import b.f.j.j.e; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: BranchOnSeparateImagesProducer */ +public class k implements v0 { + public final v0 a; + + /* renamed from: b reason: collision with root package name */ + public final v0 f607b; + + /* compiled from: BranchOnSeparateImagesProducer */ + public class b extends p { + public w0 c; + + public b(l lVar, w0 w0Var, a aVar) { + super(lVar); + this.c = w0Var; + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void h(Throwable th) { + k.this.f607b.b(this.f619b, this.c); + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + e eVar = (e) obj; + ImageRequest e = this.c.e(); + boolean e2 = b.e(i); + boolean S0 = d.S0(eVar, e.i); + if (eVar != null && (S0 || e.g)) { + if (!e2 || !S0) { + this.f619b.b(eVar, i & -2); + } else { + this.f619b.b(eVar, i); + } + } + if (e2 && !S0) { + if (eVar != null) { + eVar.close(); + } + k.this.f607b.b(this.f619b, this.c); + } + } + } + + public k(v0 v0Var, v0 v0Var2) { + this.a = v0Var; + this.f607b = v0Var2; + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + this.a.b(new b(lVar, w0Var, null), w0Var); + } +} diff --git a/app/src/main/java/b/f/j/p/k0.java b/app/src/main/java/b/f/j/p/k0.java new file mode 100644 index 0000000000..38c0c523a8 --- /dev/null +++ b/app/src/main/java/b/f/j/p/k0.java @@ -0,0 +1,423 @@ +package b.f.j.p; + +import android.util.Pair; +import androidx.annotation.VisibleForTesting; +import b.f.j.d.d; +import java.io.Closeable; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.CopyOnWriteArraySet; +/* compiled from: MultiplexProducer */ +public abstract class k0 implements v0 { + @VisibleForTesting + public final Map.b> a; + + /* renamed from: b reason: collision with root package name */ + public final v0 f608b; + public final boolean c; + public final String d; + public final String e; + + /* compiled from: MultiplexProducer */ + @VisibleForTesting + public class b { + public final K a; + + /* renamed from: b reason: collision with root package name */ + public final CopyOnWriteArraySet, w0>> f609b = new CopyOnWriteArraySet<>(); + public T c; + public float d; + public int e; + public d f; + public k0.b.a g; + + /* compiled from: MultiplexProducer */ + public class a extends b { + public a(a aVar) { + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.b + public void g() { + try { + b.f.j.r.b.b(); + b bVar = b.this; + synchronized (bVar) { + if (bVar.g == this) { + bVar.g = null; + bVar.f = null; + bVar.b(bVar.c); + bVar.c = null; + bVar.i(b.f.d.l.a.UNSET); + } + } + b.f.j.r.b.b(); + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.b + public void h(Throwable th) { + try { + b.f.j.r.b.b(); + b.this.f(this, th); + b.f.j.r.b.b(); + } catch (Throwable th2) { + b.f.j.r.b.b(); + throw th2; + } + } + + /* JADX INFO: finally extract failed */ + /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: b.f.j.p.k0$b */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.f.j.p.b + public void i(Object obj, int i) { + Closeable closeable = (Closeable) obj; + try { + b.f.j.r.b.b(); + b.this.g(this, closeable, i); + b.f.j.r.b.b(); + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.b + public void j(float f) { + try { + b.f.j.r.b.b(); + b.this.h(this, f); + b.f.j.r.b.b(); + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } + } + + public b(K k) { + this.a = k; + } + + /* JADX DEBUG: Multi-variable search result rejected for r8v0, resolved type: b.f.j.p.l */ + /* JADX DEBUG: Multi-variable search result rejected for r1v6, resolved type: b.f.j.p.k0 */ + /* JADX WARN: Multi-variable type inference failed */ + public boolean a(l lVar, w0 w0Var) { + k0.b bVar; + List k; + List l; + List j; + Closeable closeable; + float f; + int i; + Pair create = Pair.create(lVar, w0Var); + synchronized (this) { + k0 k0Var = k0.this; + K k2 = this.a; + synchronized (k0Var) { + bVar = k0Var.a.get(k2); + } + if (bVar != this) { + return false; + } + this.f609b.add(create); + k = k(); + l = l(); + j = j(); + closeable = this.c; + f = this.d; + i = this.e; + } + d.s(k); + d.t(l); + d.r(j); + synchronized (create) { + synchronized (this) { + if (closeable != this.c) { + closeable = null; + } else if (closeable != null) { + closeable = k0.this.c(closeable); + } + } + if (closeable != null) { + if (f > 0.0f) { + lVar.a(f); + } + lVar.b(closeable, i); + b(closeable); + } + } + w0Var.f(new l0(this, create)); + return true; + } + + public final void b(Closeable closeable) { + if (closeable != null) { + try { + closeable.close(); + } catch (IOException e) { + throw new RuntimeException(e); + } + } + } + + public final synchronized boolean c() { + Iterator it = this.f609b.iterator(); + while (it.hasNext()) { + if (((w0) ((Pair) it.next()).second).p()) { + return true; + } + } + return false; + } + + public final synchronized boolean d() { + Iterator it = this.f609b.iterator(); + while (it.hasNext()) { + if (!((w0) ((Pair) it.next()).second).k()) { + return false; + } + } + return true; + } + + public final synchronized d e() { + d dVar; + dVar = d.LOW; + Iterator it = this.f609b.iterator(); + while (it.hasNext()) { + d c = ((w0) ((Pair) it.next()).second).c(); + if (dVar != null) { + if (c != null) { + if (dVar.ordinal() > c.ordinal()) { + } + } + } + dVar = c; + } + return dVar; + } + + public void f(k0.b.a aVar, Throwable th) { + Iterator it; + synchronized (this) { + if (this.g == aVar) { + it = this.f609b.iterator(); + this.f609b.clear(); + k0.this.e(this.a, this); + b(this.c); + this.c = null; + } else { + return; + } + } + while (it.hasNext()) { + Pair pair = (Pair) it.next(); + synchronized (pair) { + ((w0) pair.second).o().k((w0) pair.second, k0.this.d, th, null); + ((l) pair.first).c(th); + } + } + } + + /* JADX WARNING: Unknown variable types count: 1 */ + public void g(k0.b.a aVar, T t, int i) { + Iterator it; + int size; + synchronized (this) { + if (this.g == aVar) { + b(this.c); + this.c = null; + it = this.f609b.iterator(); + size = this.f609b.size(); + if (b.f(i)) { + this.c = k0.this.c(t); + this.e = i; + } else { + this.f609b.clear(); + k0.this.e(this.a, this); + } + } else { + return; + } + } + while (it.hasNext()) { + Pair pair = (Pair) it.next(); + synchronized (pair) { + if (b.e(i)) { + ((w0) pair.second).o().j((w0) pair.second, k0.this.d, null); + d dVar = this.f; + if (dVar != null) { + ((w0) pair.second).j(dVar.h); + } + ((w0) pair.second).d(k0.this.e, Integer.valueOf(size)); + } + ((l) pair.first).b(t, i); + } + } + } + + public void h(k0.b.a aVar, float f) { + Iterator it; + synchronized (this) { + if (this.g == aVar) { + this.d = f; + it = this.f609b.iterator(); + } else { + return; + } + } + while (it.hasNext()) { + Pair pair = (Pair) it.next(); + synchronized (pair) { + ((l) pair.first).a(f); + } + } + } + + public final void i(b.f.d.l.a aVar) { + synchronized (this) { + boolean z2 = true; + b.c.a.a0.d.i(Boolean.valueOf(this.f == null)); + b.c.a.a0.d.i(Boolean.valueOf(this.g == null)); + if (this.f609b.isEmpty()) { + k0.this.e(this.a, this); + return; + } + w0 w0Var = (w0) ((Pair) this.f609b.iterator().next()).second; + d dVar = new d(w0Var.e(), w0Var.getId(), null, w0Var.o(), w0Var.b(), w0Var.q(), d(), c(), e(), w0Var.g()); + this.f = dVar; + dVar.j(w0Var.a()); + Objects.requireNonNull(aVar); + if (aVar != b.f.d.l.a.UNSET) { + d dVar2 = this.f; + int ordinal = aVar.ordinal(); + if (ordinal != 0) { + if (ordinal == 1) { + z2 = false; + } else if (ordinal != 2) { + throw new IllegalStateException("Unrecognized TriState value: " + aVar); + } else { + throw new IllegalStateException("No boolean equivalent for UNSET"); + } + } + dVar2.d("started_as_prefetch", Boolean.valueOf(z2)); + } + k0.b.a aVar2 = new a(null); + this.g = aVar2; + k0.this.f608b.b(aVar2, this.f); + } + } + + public final synchronized List j() { + d dVar = this.f; + ArrayList arrayList = null; + if (dVar == null) { + return null; + } + boolean c = c(); + synchronized (dVar) { + if (c != dVar.k) { + dVar.k = c; + arrayList = new ArrayList(dVar.m); + } + } + return arrayList; + } + + public final synchronized List k() { + d dVar = this.f; + ArrayList arrayList = null; + if (dVar == null) { + return null; + } + boolean d = d(); + synchronized (dVar) { + if (d != dVar.i) { + dVar.i = d; + arrayList = new ArrayList(dVar.m); + } + } + return arrayList; + } + + public final synchronized List l() { + d dVar = this.f; + if (dVar == null) { + return null; + } + return dVar.v(e()); + } + } + + public k0(v0 v0Var, String str, String str2) { + this.f608b = v0Var; + this.a = new HashMap(); + this.c = false; + this.d = str; + this.e = str2; + } + + public k0(v0 v0Var, String str, String str2, boolean z2) { + this.f608b = v0Var; + this.a = new HashMap(); + this.c = z2; + this.d = str; + this.e = str2; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + boolean z2; + k0.b bVar; + try { + b.f.j.r.b.b(); + w0Var.o().e(w0Var, this.d); + K d = d(w0Var); + do { + z2 = false; + synchronized (this) { + synchronized (this) { + bVar = this.a.get(d); + } + } + if (bVar == null) { + synchronized (this) { + bVar = new b(d); + this.a.put(d, bVar); + z2 = true; + } + } + } while (!bVar.a(lVar, w0Var)); + if (z2) { + bVar.i(b.f.d.l.a.f(w0Var.k())); + } + b.f.j.r.b.b(); + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } + + public abstract T c(T t); + + public abstract K d(w0 w0Var); + + public synchronized void e(K k, k0.b bVar) { + if (this.a.get(k) == bVar) { + this.a.remove(k); + } + } +} diff --git a/app/src/main/java/b/f/j/p/l.java b/app/src/main/java/b/f/j/p/l.java new file mode 100644 index 0000000000..103d02b3f0 --- /dev/null +++ b/app/src/main/java/b/f/j/p/l.java @@ -0,0 +1,11 @@ +package b.f.j.p; +/* compiled from: Consumer */ +public interface l { + void a(float f); + + void b(T t, int i); + + void c(Throwable th); + + void d(); +} diff --git a/app/src/main/java/b/f/j/p/l0.java b/app/src/main/java/b/f/j/p/l0.java new file mode 100644 index 0000000000..9ad57deb56 --- /dev/null +++ b/app/src/main/java/b/f/j/p/l0.java @@ -0,0 +1,72 @@ +package b.f.j.p; + +import android.util.Pair; +import b.f.j.d.d; +import b.f.j.p.k0; +import java.util.List; +/* compiled from: MultiplexProducer */ +public class l0 extends e { + public final /* synthetic */ Pair a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ k0.b f611b; + + public l0(k0.b bVar, Pair pair) { + this.f611b = bVar; + this.a = pair; + } + + @Override // b.f.j.p.x0 + public void a() { + boolean remove; + List list; + List list2; + List list3; + d dVar; + synchronized (this.f611b) { + remove = this.f611b.f609b.remove(this.a); + list = null; + if (!remove) { + dVar = null; + } else if (this.f611b.f609b.isEmpty()) { + dVar = this.f611b.f; + } else { + List k = this.f611b.k(); + list3 = this.f611b.l(); + list2 = this.f611b.j(); + dVar = null; + list = k; + } + list3 = null; + list2 = null; + } + d.s(list); + d.t(list3); + d.r(list2); + if (dVar != null) { + if (!k0.this.c || dVar.k()) { + dVar.u(); + } else { + d.t(dVar.v(d.LOW)); + } + } + if (remove) { + ((l) this.a.first).d(); + } + } + + @Override // b.f.j.p.e, b.f.j.p.x0 + public void b() { + d.r(this.f611b.j()); + } + + @Override // b.f.j.p.e, b.f.j.p.x0 + public void c() { + d.t(this.f611b.l()); + } + + @Override // b.f.j.p.e, b.f.j.p.x0 + public void d() { + d.s(this.f611b.k()); + } +} diff --git a/app/src/main/java/b/f/j/p/m.java b/app/src/main/java/b/f/j/p/m.java new file mode 100644 index 0000000000..10bad5ee76 --- /dev/null +++ b/app/src/main/java/b/f/j/p/m.java @@ -0,0 +1,40 @@ +package b.f.j.p; + +import android.net.Uri; +import android.util.Base64; +import b.c.a.a0.d; +import b.f.d.b.a; +import b.f.d.g.g; +import b.f.j.j.e; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.ByteArrayInputStream; +import java.io.IOException; +/* compiled from: DataFetchProducer */ +public class m extends g0 { + public m(g gVar) { + super(a.j, gVar); + } + + @Override // b.f.j.p.g0 + public e d(ImageRequest imageRequest) throws IOException { + boolean z2; + String uri = imageRequest.c.toString(); + d.i(Boolean.valueOf(uri.substring(0, 5).equals("data:"))); + int indexOf = uri.indexOf(44); + String substring = uri.substring(indexOf + 1, uri.length()); + String substring2 = uri.substring(0, indexOf); + if (!substring2.contains(";")) { + z2 = false; + } else { + String[] split = substring2.split(";"); + z2 = split[split.length - 1].equals("base64"); + } + byte[] decode = z2 ? Base64.decode(substring, 0) : Uri.decode(substring).getBytes(); + return c(new ByteArrayInputStream(decode), decode.length); + } + + @Override // b.f.j.p.g0 + public String e() { + return "DataFetchProducer"; + } +} diff --git a/app/src/main/java/b/f/j/p/m0.java b/app/src/main/java/b/f/j/p/m0.java new file mode 100644 index 0000000000..5eb7dc230c --- /dev/null +++ b/app/src/main/java/b/f/j/p/m0.java @@ -0,0 +1,172 @@ +package b.f.j.p; + +import android.os.SystemClock; +import b.f.d.g.g; +import b.f.d.g.i; +import b.f.j.j.e; +import b.f.j.j.f; +import b.f.j.p.a0; +import b.f.j.p.n0; +import b.f.j.r.b; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.memory.MemoryPooledByteBufferOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.HashMap; +import java.util.Objects; +/* compiled from: NetworkFetchProducer */ +public class m0 implements v0 { + public final g a; + + /* renamed from: b reason: collision with root package name */ + public final b.f.d.g.a f612b; + public final n0 c; + + /* compiled from: NetworkFetchProducer */ + public class a implements n0.a { + public final /* synthetic */ x a; + + public a(x xVar) { + this.a = xVar; + } + + public void a(Throwable th) { + m0 m0Var = m0.this; + x xVar = this.a; + Objects.requireNonNull(m0Var); + xVar.a().k(xVar.f628b, "NetworkFetchProducer", th, null); + xVar.a().c(xVar.f628b, "NetworkFetchProducer", false); + xVar.f628b.n("network"); + xVar.a.c(th); + } + + /* JADX INFO: finally extract failed */ + public void b(InputStream inputStream, int i) throws IOException { + b.b(); + m0 m0Var = m0.this; + x xVar = this.a; + i e = i > 0 ? m0Var.a.e(i) : m0Var.a.a(); + byte[] bArr = m0Var.f612b.get(16384); + while (true) { + try { + int read = inputStream.read(bArr); + if (read < 0) { + n0 n0Var = m0Var.c; + int i2 = ((MemoryPooledByteBufferOutputStream) e).l; + a0 a0Var = (a0) n0Var; + Objects.requireNonNull(a0Var); + ((a0.a) xVar).f = a0Var.c.now(); + m0Var.c(e, xVar); + m0Var.f612b.release(bArr); + e.close(); + b.b(); + return; + } else if (read > 0) { + e.write(bArr, 0, read); + m0Var.d(e, xVar); + int i3 = ((MemoryPooledByteBufferOutputStream) e).l; + xVar.a.a(i > 0 ? ((float) i3) / ((float) i) : 1.0f - ((float) Math.exp(((double) (-i3)) / 50000.0d))); + } + } catch (Throwable th) { + m0Var.f612b.release(bArr); + e.close(); + throw th; + } + } + } + } + + public m0(g gVar, b.f.d.g.a aVar, n0 n0Var) { + this.a = gVar; + this.f612b = aVar; + this.c = n0Var; + } + + /* JADX WARNING: Removed duplicated region for block: B:12:0x002c */ + /* JADX WARNING: Removed duplicated region for block: B:14:0x0031 */ + public static void e(i iVar, int i, b.f.j.d.a aVar, l lVar, w0 w0Var) { + Throwable th; + CloseableReference A = CloseableReference.A(((MemoryPooledByteBufferOutputStream) iVar).b()); + e eVar = null; + try { + e eVar2 = new e(A); + try { + eVar2.f578s = null; + eVar2.n(); + w0Var.h(f.NETWORK); + lVar.b(eVar2, i); + eVar2.close(); + if (A != null) { + A.close(); + } + } catch (Throwable th2) { + th = th2; + eVar = eVar2; + if (eVar != null) { + eVar.close(); + } + if (A != null) { + A.close(); + } + throw th; + } + } catch (Throwable th3) { + th = th3; + if (eVar != null) { + } + if (A != null) { + } + throw th; + } + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + w0Var.o().e(w0Var, "NetworkFetchProducer"); + Objects.requireNonNull((a0) this.c); + a0.a aVar = new a0.a(lVar, w0Var); + n0 n0Var = this.c; + a aVar2 = new a(aVar); + a0 a0Var = (a0) n0Var; + Objects.requireNonNull(a0Var); + aVar.d = a0Var.c.now(); + w0Var.f(new z(a0Var, a0Var.f592b.submit(new y(a0Var, aVar, aVar2)), aVar2)); + } + + public void c(i iVar, x xVar) { + HashMap hashMap; + int i = ((MemoryPooledByteBufferOutputStream) iVar).l; + if (!xVar.a().g(xVar.f628b, "NetworkFetchProducer")) { + hashMap = null; + } else { + Objects.requireNonNull((a0) this.c); + a0.a aVar = (a0.a) xVar; + hashMap = new HashMap(4); + hashMap.put("queue_time", Long.toString(aVar.e - aVar.d)); + hashMap.put("fetch_time", Long.toString(aVar.f - aVar.e)); + hashMap.put("total_time", Long.toString(aVar.f - aVar.d)); + hashMap.put("image_size", Integer.toString(i)); + } + y0 a2 = xVar.a(); + a2.j(xVar.f628b, "NetworkFetchProducer", hashMap); + a2.c(xVar.f628b, "NetworkFetchProducer", true); + xVar.f628b.n("network"); + e(iVar, 1, null, xVar.a, xVar.f628b); + } + + public void d(i iVar, x xVar) { + boolean z2; + long uptimeMillis = SystemClock.uptimeMillis(); + if (!xVar.f628b.p()) { + z2 = false; + } else { + Objects.requireNonNull(this.c); + z2 = true; + } + if (z2 && uptimeMillis - xVar.c >= 100) { + xVar.c = uptimeMillis; + xVar.a().a(xVar.f628b, "NetworkFetchProducer", "intermediate_result"); + e(iVar, 0, null, xVar.a, xVar.f628b); + } + } +} diff --git a/app/src/main/java/b/f/j/p/n.java b/app/src/main/java/b/f/j/p/n.java new file mode 100644 index 0000000000..5a04b7dc91 --- /dev/null +++ b/app/src/main/java/b/f/j/p/n.java @@ -0,0 +1,449 @@ +package b.f.j.p; + +import android.graphics.Bitmap; +import androidx.core.os.EnvironmentCompat; +import b.f.d.d.f; +import b.f.j.h.d; +import b.f.j.j.e; +import b.f.j.j.h; +import b.f.j.j.i; +import b.f.j.p.c0; +import com.facebook.common.internal.Supplier; +import com.facebook.common.references.CloseableReference; +import com.facebook.common.util.ExceptionWithNoStacktrace; +import com.facebook.imagepipeline.decoder.DecodeException; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.Closeable; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.Executor; +/* compiled from: DecodeProducer */ +public class n implements v0> { + public final b.f.d.g.a a; + + /* renamed from: b reason: collision with root package name */ + public final Executor f614b; + public final b.f.j.h.b c; + public final b.f.j.h.c d; + public final v0 e; + public final boolean f; + public final boolean g; + public final boolean h; + public final int i; + public final b.f.j.e.a j; + public final Runnable k = null; + public final Supplier l; + + /* compiled from: DecodeProducer */ + public class a extends c { + public a(n nVar, l> lVar, w0 w0Var, boolean z2, int i) { + super(lVar, w0Var, z2, i); + } + + @Override // b.f.j.p.n.c + public int o(e eVar) { + return eVar.f(); + } + + @Override // b.f.j.p.n.c + public i p() { + return new h(0, false, false); + } + + @Override // b.f.j.p.n.c + public synchronized boolean w(e eVar, int i) { + if (b.f(i)) { + return false; + } + return this.g.f(eVar, i); + } + } + + /* compiled from: DecodeProducer */ + public class b extends c { + public final d i; + public final b.f.j.h.c j; + public int k = 0; + + public b(n nVar, l> lVar, w0 w0Var, d dVar, b.f.j.h.c cVar, boolean z2, int i) { + super(lVar, w0Var, z2, i); + this.i = dVar; + Objects.requireNonNull(cVar); + this.j = cVar; + } + + @Override // b.f.j.p.n.c + public int o(e eVar) { + return this.i.f; + } + + @Override // b.f.j.p.n.c + public i p() { + return this.j.a(this.i.e); + } + + @Override // b.f.j.p.n.c + public synchronized boolean w(e eVar, int i) { + boolean f = this.g.f(eVar, i); + if ((b.f(i) || b.m(i, 8)) && !b.m(i, 4) && e.t(eVar)) { + eVar.u(); + if (eVar.l == b.f.i.b.a) { + if (!this.i.b(eVar)) { + return false; + } + int i2 = this.i.e; + int i3 = this.k; + if (i2 <= i3) { + return false; + } + if (i2 < this.j.b(i3) && !this.i.g) { + return false; + } + this.k = i2; + } + } + return f; + } + } + + /* compiled from: DecodeProducer */ + public abstract class c extends p> { + public final w0 c; + public final y0 d; + public final b.f.j.d.b e; + public boolean f = false; + public final c0 g; + + /* compiled from: DecodeProducer */ + public class a implements c0.c { + public final /* synthetic */ w0 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f615b; + + public a(n nVar, w0 w0Var, int i) { + this.a = w0Var; + this.f615b = i; + } + + @Override // b.f.j.p.c0.c + public void a(e eVar, int i) { + boolean z2; + String str; + long j; + b.f.j.j.c cVar; + Exception e; + int i2 = i; + if (eVar != null) { + w0 w0Var = c.this.c; + eVar.u(); + w0Var.d("image_format", eVar.l.f531b); + if (n.this.f || !b.m(i2, 16)) { + ImageRequest e2 = this.a.e(); + if (n.this.g || !b.f.d.l.b.e(e2.c)) { + eVar.q = b.c.a.a0.d.Z(e2.j, e2.i, eVar, this.f615b); + } + } + Objects.requireNonNull(this.a.g().w); + c cVar2 = c.this; + Objects.requireNonNull(cVar2); + eVar.u(); + if (eVar.l == b.f.i.b.a || !b.f(i)) { + synchronized (cVar2) { + z2 = cVar2.f; + } + if (!z2 && e.t(eVar)) { + eVar.u(); + b.f.i.c cVar3 = eVar.l; + String str2 = cVar3 != null ? cVar3.f531b : EnvironmentCompat.MEDIA_UNKNOWN; + StringBuilder sb = new StringBuilder(); + eVar.u(); + sb.append(eVar.o); + sb.append("x"); + eVar.u(); + sb.append(eVar.p); + String sb2 = sb.toString(); + String valueOf = String.valueOf(eVar.q); + boolean e3 = b.e(i); + boolean z3 = e3 && !b.m(i2, 8); + boolean m = b.m(i2, 4); + b.f.j.d.e eVar2 = cVar2.c.e().i; + if (eVar2 != null) { + str = eVar2.a + "x" + eVar2.f554b; + } else { + str = EnvironmentCompat.MEDIA_UNKNOWN; + } + try { + c0 c0Var = cVar2.g; + synchronized (c0Var) { + j = c0Var.j - c0Var.i; + } + String valueOf2 = String.valueOf(cVar2.c.e().c); + int f = (z3 || m) ? eVar.f() : cVar2.o(eVar); + i p = (z3 || m) ? h.a : cVar2.p(); + cVar2.d.e(cVar2.c, "DecodeProducer"); + try { + cVar = cVar2.t(eVar, f, p); + try { + if (eVar.q != 1) { + i2 |= 16; + } + cVar2.d.j(cVar2.c, "DecodeProducer", cVar2.n(cVar, j, p, e3, str2, sb2, str, valueOf)); + cVar2.v(eVar, cVar); + cVar2.s(cVar, i2); + } catch (Exception e4) { + e = e4; + cVar2.d.k(cVar2.c, "DecodeProducer", e, cVar2.n(cVar, j, p, e3, str2, sb2, str, valueOf)); + cVar2.u(true); + cVar2.f619b.c(e); + } + } catch (DecodeException e5) { + e a = e5.a(); + b.f.d.e.a.o("ProgressiveDecoder", "%s, {uri: %s, firstEncodedBytes: %s, length: %d}", e5.getMessage(), valueOf2, a.d(10), Integer.valueOf(a.f())); + throw e5; + } catch (Exception e6) { + e = e6; + cVar = null; + cVar2.d.k(cVar2.c, "DecodeProducer", e, cVar2.n(cVar, j, p, e3, str2, sb2, str, valueOf)); + cVar2.u(true); + cVar2.f619b.c(e); + } + } finally { + eVar.close(); + } + } + } + } + } + } + + /* compiled from: DecodeProducer */ + public class b extends e { + public final /* synthetic */ boolean a; + + public b(n nVar, boolean z2) { + this.a = z2; + } + + @Override // b.f.j.p.x0 + public void a() { + if (this.a) { + c cVar = c.this; + cVar.u(true); + cVar.f619b.d(); + } + } + + @Override // b.f.j.p.e, b.f.j.p.x0 + public void b() { + if (c.this.c.p()) { + c.this.g.d(); + } + } + } + + public c(l> lVar, w0 w0Var, boolean z2, int i) { + super(lVar); + this.c = w0Var; + this.d = w0Var.o(); + b.f.j.d.b bVar = w0Var.e().h; + this.e = bVar; + this.g = new c0(n.this.f614b, new a(n.this, w0Var, i), bVar.f553b); + w0Var.f(new b(n.this, z2)); + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void g() { + q(); + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void h(Throwable th) { + r(th); + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.b + public void i(Object obj, int i) { + e eVar = (e) obj; + try { + b.f.j.r.b.b(); + boolean e = b.e(i); + if (e) { + if (eVar == null) { + ExceptionWithNoStacktrace exceptionWithNoStacktrace = new ExceptionWithNoStacktrace("Encoded image is null."); + u(true); + this.f619b.c(exceptionWithNoStacktrace); + } else if (!eVar.s()) { + ExceptionWithNoStacktrace exceptionWithNoStacktrace2 = new ExceptionWithNoStacktrace("Encoded image is not valid."); + u(true); + this.f619b.c(exceptionWithNoStacktrace2); + } + b.f.j.r.b.b(); + } + if (w(eVar, i)) { + boolean m = b.m(i, 4); + if (e || m || this.c.p()) { + this.g.d(); + } + } + b.f.j.r.b.b(); + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void j(float f) { + this.f619b.a(f * 0.99f); + } + + public final Map n(b.f.j.j.c cVar, long j, i iVar, boolean z2, String str, String str2, String str3, String str4) { + if (!this.d.g(this.c, "DecodeProducer")) { + return null; + } + String valueOf = String.valueOf(j); + String valueOf2 = String.valueOf(((h) iVar).c); + String valueOf3 = String.valueOf(z2); + if (cVar instanceof b.f.j.j.d) { + Bitmap bitmap = ((b.f.j.j.d) cVar).m; + HashMap hashMap = new HashMap(8); + hashMap.put("bitmapSize", bitmap.getWidth() + "x" + bitmap.getHeight()); + hashMap.put("queueTime", valueOf); + hashMap.put("hasGoodQuality", valueOf2); + hashMap.put("isFinal", valueOf3); + hashMap.put("encodedImageSize", str2); + hashMap.put("imageFormat", str); + hashMap.put("requestedImageSize", str3); + hashMap.put("sampleSize", str4); + hashMap.put("byteCount", bitmap.getByteCount() + ""); + return new f(hashMap); + } + HashMap hashMap2 = new HashMap(7); + hashMap2.put("queueTime", valueOf); + hashMap2.put("hasGoodQuality", valueOf2); + hashMap2.put("isFinal", valueOf3); + hashMap2.put("encodedImageSize", str2); + hashMap2.put("imageFormat", str); + hashMap2.put("requestedImageSize", str3); + hashMap2.put("sampleSize", str4); + return new f(hashMap2); + } + + public abstract int o(e eVar); + + public abstract i p(); + + public final void q() { + u(true); + this.f619b.d(); + } + + public final void r(Throwable th) { + u(true); + this.f619b.c(th); + } + + public final void s(b.f.j.j.c cVar, int i) { + CloseableReference.c cVar2 = n.this.j.a; + Class cls = CloseableReference.j; + CloseableReference closeableReference = null; + Throwable th = null; + if (cVar != null) { + b.f.d.h.f fVar = CloseableReference.l; + if (cVar2.b()) { + th = new Throwable(); + } + closeableReference = CloseableReference.I(cVar, fVar, cVar2, th); + } + try { + u(b.e(i)); + this.f619b.b(closeableReference, i); + } finally { + if (closeableReference != null) { + closeableReference.close(); + } + } + } + + public final b.f.j.j.c t(e eVar, int i, i iVar) { + n nVar = n.this; + boolean z2 = nVar.k != null && nVar.l.get().booleanValue(); + try { + return n.this.c.a(eVar, i, iVar, this.e); + } catch (OutOfMemoryError e) { + if (z2) { + n.this.k.run(); + System.gc(); + return n.this.c.a(eVar, i, iVar, this.e); + } + throw e; + } + } + + public final void u(boolean z2) { + synchronized (this) { + if (z2) { + if (!this.f) { + this.f619b.a(1.0f); + this.f = true; + this.g.a(); + } + } + } + } + + public final void v(e eVar, b.f.j.j.c cVar) { + w0 w0Var = this.c; + eVar.u(); + w0Var.d("encoded_width", Integer.valueOf(eVar.o)); + w0 w0Var2 = this.c; + eVar.u(); + w0Var2.d("encoded_height", Integer.valueOf(eVar.p)); + this.c.d("encoded_size", Integer.valueOf(eVar.f())); + if (cVar instanceof b.f.j.j.b) { + Bitmap f = ((b.f.j.j.b) cVar).f(); + this.c.d("bitmap_config", String.valueOf(f == null ? null : f.getConfig())); + } + if (cVar != null) { + cVar.e(this.c.a()); + } + } + + public abstract boolean w(e eVar, int i); + } + + public n(b.f.d.g.a aVar, Executor executor, b.f.j.h.b bVar, b.f.j.h.c cVar, boolean z2, boolean z3, boolean z4, v0 v0Var, int i, b.f.j.e.a aVar2, Runnable runnable, Supplier supplier) { + Objects.requireNonNull(aVar); + this.a = aVar; + Objects.requireNonNull(executor); + this.f614b = executor; + Objects.requireNonNull(bVar); + this.c = bVar; + Objects.requireNonNull(cVar); + this.d = cVar; + this.f = z2; + this.g = z3; + Objects.requireNonNull(v0Var); + this.e = v0Var; + this.h = z4; + this.i = i; + this.j = aVar2; + this.l = supplier; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.v0 + public void b(l> lVar, w0 w0Var) { + try { + b.f.j.r.b.b(); + this.e.b(!b.f.d.l.b.e(w0Var.e().c) ? new a(this, lVar, w0Var, this.h, this.i) : new b(this, lVar, w0Var, new d(this.a), this.d, this.h, this.i), w0Var); + b.f.j.r.b.b(); + } catch (Throwable th) { + b.f.j.r.b.b(); + throw th; + } + } +} diff --git a/app/src/main/java/b/f/j/p/n0.java b/app/src/main/java/b/f/j/p/n0.java new file mode 100644 index 0000000000..e5064e6a58 --- /dev/null +++ b/app/src/main/java/b/f/j/p/n0.java @@ -0,0 +1,10 @@ +package b.f.j.p; + +import b.f.j.p.x; +/* compiled from: NetworkFetcher */ +public interface n0 { + + /* compiled from: NetworkFetcher */ + public interface a { + } +} diff --git a/app/src/main/java/b/f/j/p/o.java b/app/src/main/java/b/f/j/p/o.java new file mode 100644 index 0000000000..04a2dbf263 --- /dev/null +++ b/app/src/main/java/b/f/j/p/o.java @@ -0,0 +1,46 @@ +package b.f.j.p; + +import b.f.j.j.c; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +/* compiled from: DelayProducer */ +public class o implements v0> { + public final v0> a; + + /* renamed from: b reason: collision with root package name */ + public final ScheduledExecutorService f617b; + + /* compiled from: DelayProducer */ + public class a implements Runnable { + public final /* synthetic */ l j; + public final /* synthetic */ w0 k; + + public a(l lVar, w0 w0Var) { + this.j = lVar; + this.k = w0Var; + } + + @Override // java.lang.Runnable + public void run() { + o.this.a.b(this.j, this.k); + } + } + + public o(v0> v0Var, ScheduledExecutorService scheduledExecutorService) { + this.a = v0Var; + this.f617b = scheduledExecutorService; + } + + @Override // b.f.j.p.v0 + public void b(l> lVar, w0 w0Var) { + ImageRequest e = w0Var.e(); + ScheduledExecutorService scheduledExecutorService = this.f617b; + if (scheduledExecutorService != null) { + scheduledExecutorService.schedule(new a(lVar, w0Var), (long) e.f2861s, TimeUnit.MILLISECONDS); + } else { + this.a.b(lVar, w0Var); + } + } +} diff --git a/app/src/main/java/b/f/j/p/o0.java b/app/src/main/java/b/f/j/p/o0.java new file mode 100644 index 0000000000..8ca39f20dd --- /dev/null +++ b/app/src/main/java/b/f/j/p/o0.java @@ -0,0 +1,98 @@ +package b.f.j.p; + +import b.c.a.a0.d; +import b.f.j.d.a; +import b.f.j.j.e; +import com.facebook.cache.common.CacheKey; +import com.facebook.imagepipeline.request.ImageRequest; +import com.facebook.imagepipeline.request.ImageRequestBuilder; +import java.util.concurrent.CancellationException; +import z.c; +import z.g; +/* compiled from: PartialDiskCacheProducer */ +public class o0 implements c { + public final /* synthetic */ y0 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ w0 f618b; + public final /* synthetic */ l c; + public final /* synthetic */ CacheKey d; + public final /* synthetic */ q0 e; + + public o0(q0 q0Var, y0 y0Var, w0 w0Var, l lVar, CacheKey cacheKey) { + this.e = q0Var; + this.a = y0Var; + this.f618b = w0Var; + this.c = lVar; + this.d = cacheKey; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [z.g] */ + @Override // z.c + public Void a(g gVar) throws Exception { + boolean z2; + e eVar; + synchronized (gVar.e) { + z2 = gVar.g; + } + boolean z3 = false; + if (z2 || (gVar.e() && (gVar.d() instanceof CancellationException))) { + this.a.d(this.f618b, "PartialDiskCacheProducer", null); + this.c.d(); + } else if (gVar.e()) { + this.a.k(this.f618b, "PartialDiskCacheProducer", gVar.d(), null); + q0.c(this.e, this.c, this.f618b, this.d, null); + } else { + synchronized (gVar.e) { + eVar = gVar.h; + } + e eVar2 = eVar; + if (eVar2 != null) { + y0 y0Var = this.a; + w0 w0Var = this.f618b; + y0Var.j(w0Var, "PartialDiskCacheProducer", q0.d(y0Var, w0Var, true, eVar2.f())); + int f = eVar2.f() - 1; + d.i(Boolean.valueOf(f > 0)); + eVar2.f578s = new a(0, f); + int f2 = eVar2.f(); + ImageRequest e = this.f618b.e(); + a aVar = e.k; + if (aVar != null && aVar.a >= 0 && f >= aVar.f552b) { + this.f618b.i("disk", "partial"); + this.a.c(this.f618b, "PartialDiskCacheProducer", true); + this.c.b(eVar2, 9); + } else { + this.c.b(eVar2, 8); + ImageRequestBuilder b2 = ImageRequestBuilder.b(e.c); + b2.e = e.h; + b2.o = e.k; + b2.f = e.f2860b; + b2.h = e.g; + b2.f2862b = e.m; + b2.j = e.q; + b2.g = e.f; + b2.i = e.l; + b2.c = e.i; + b2.n = e.r; + b2.d = e.j; + b2.m = e.p; + b2.p = e.f2861s; + int i = f2 - 1; + if (i >= 0) { + z3 = true; + } + d.i(Boolean.valueOf(z3)); + b2.o = new a(i, Integer.MAX_VALUE); + q0.c(this.e, this.c, new c1(b2.a(), this.f618b), this.d, eVar2); + } + } else { + y0 y0Var2 = this.a; + w0 w0Var2 = this.f618b; + y0Var2.j(w0Var2, "PartialDiskCacheProducer", q0.d(y0Var2, w0Var2, false, 0)); + q0.c(this.e, this.c, this.f618b, this.d, eVar2); + } + } + return null; + } +} diff --git a/app/src/main/java/b/f/j/p/p.java b/app/src/main/java/b/f/j/p/p.java new file mode 100644 index 0000000000..5923b24cdc --- /dev/null +++ b/app/src/main/java/b/f/j/p/p.java @@ -0,0 +1,26 @@ +package b.f.j.p; +/* compiled from: DelegatingConsumer */ +public abstract class p extends b { + + /* renamed from: b reason: collision with root package name */ + public final l f619b; + + public p(l lVar) { + this.f619b = lVar; + } + + @Override // b.f.j.p.b + public void g() { + this.f619b.d(); + } + + @Override // b.f.j.p.b + public void h(Throwable th) { + this.f619b.c(th); + } + + @Override // b.f.j.p.b + public void j(float f) { + this.f619b.a(f); + } +} diff --git a/app/src/main/java/b/f/j/p/p0.java b/app/src/main/java/b/f/j/p/p0.java new file mode 100644 index 0000000000..d21b3d9301 --- /dev/null +++ b/app/src/main/java/b/f/j/p/p0.java @@ -0,0 +1,16 @@ +package b.f.j.p; + +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: PartialDiskCacheProducer */ +public class p0 extends e { + public final /* synthetic */ AtomicBoolean a; + + public p0(q0 q0Var, AtomicBoolean atomicBoolean) { + this.a = atomicBoolean; + } + + @Override // b.f.j.p.x0 + public void a() { + this.a.set(true); + } +} diff --git a/app/src/main/java/b/f/j/p/q.java b/app/src/main/java/b/f/j/p/q.java new file mode 100644 index 0000000000..11f6e01ed1 --- /dev/null +++ b/app/src/main/java/b/f/j/p/q.java @@ -0,0 +1,61 @@ +package b.f.j.p; + +import b.f.j.j.e; +import java.util.concurrent.CancellationException; +import z.c; +import z.g; +/* compiled from: DiskCacheReadProducer */ +public class q implements c { + public final /* synthetic */ y0 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ w0 f620b; + public final /* synthetic */ l c; + public final /* synthetic */ s d; + + public q(s sVar, y0 y0Var, w0 w0Var, l lVar) { + this.d = sVar; + this.a = y0Var; + this.f620b = w0Var; + this.c = lVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [z.g] */ + @Override // z.c + public Void a(g gVar) throws Exception { + boolean z2; + e eVar; + synchronized (gVar.e) { + z2 = gVar.g; + } + if (z2 || (gVar.e() && (gVar.d() instanceof CancellationException))) { + this.a.d(this.f620b, "DiskCacheProducer", null); + this.c.d(); + } else if (gVar.e()) { + this.a.k(this.f620b, "DiskCacheProducer", gVar.d(), null); + this.d.d.b(this.c, this.f620b); + } else { + synchronized (gVar.e) { + eVar = gVar.h; + } + e eVar2 = eVar; + if (eVar2 != null) { + y0 y0Var = this.a; + w0 w0Var = this.f620b; + y0Var.j(w0Var, "DiskCacheProducer", s.c(y0Var, w0Var, true, eVar2.f())); + this.a.c(this.f620b, "DiskCacheProducer", true); + this.f620b.n("disk"); + this.c.a(1.0f); + this.c.b(eVar2, 1); + eVar2.close(); + } else { + y0 y0Var2 = this.a; + w0 w0Var2 = this.f620b; + y0Var2.j(w0Var2, "DiskCacheProducer", s.c(y0Var2, w0Var2, false, 0)); + this.d.d.b(this.c, this.f620b); + } + } + return null; + } +} diff --git a/app/src/main/java/b/f/j/p/q0.java b/app/src/main/java/b/f/j/p/q0.java new file mode 100644 index 0000000000..24cd15dc6d --- /dev/null +++ b/app/src/main/java/b/f/j/p/q0.java @@ -0,0 +1,195 @@ +package b.f.j.p; + +import android.net.Uri; +import androidx.annotation.VisibleForTesting; +import b.f.d.g.g; +import b.f.i.c; +import b.f.j.c.f; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.j.e; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.memory.MemoryPooledByteBufferOutputStream; +import com.facebook.imagepipeline.request.ImageRequest; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: PartialDiskCacheProducer */ +public class q0 implements v0 { + public final f a; + + /* renamed from: b reason: collision with root package name */ + public final i f621b; + public final g c; + public final b.f.d.g.a d; + public final v0 e; + + /* compiled from: PartialDiskCacheProducer */ + public static class a extends p { + public final f c; + public final CacheKey d; + public final g e; + public final b.f.d.g.a f; + public final e g; + + public a(l lVar, f fVar, CacheKey cacheKey, g gVar, b.f.d.g.a aVar, e eVar, o0 o0Var) { + super(lVar); + this.c = fVar; + this.d = cacheKey; + this.e = gVar; + this.f = aVar; + this.g = eVar; + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + e eVar = (e) obj; + if (!b.f(i)) { + e eVar2 = this.g; + if (eVar2 == null || eVar.f578s == null) { + if (b.m(i, 8) && b.e(i)) { + eVar.u(); + if (eVar.l != c.a) { + this.c.f(this.d, eVar); + this.f619b.b(eVar, i); + return; + } + } + this.f619b.b(eVar, i); + return; + } + try { + p(o(eVar2, eVar)); + } catch (IOException e) { + b.f.d.e.a.f("PartialDiskCacheProducer", "Error while merging image data", e); + this.f619b.c(e); + } catch (Throwable th) { + eVar.close(); + this.g.close(); + throw th; + } + eVar.close(); + this.g.close(); + f fVar = this.c; + CacheKey cacheKey = this.d; + Objects.requireNonNull(fVar); + Objects.requireNonNull(cacheKey); + fVar.f.c(cacheKey); + try { + z.g.a(new b.f.j.c.g(fVar, null, cacheKey), fVar.e); + } catch (Exception e2) { + b.f.d.e.a.n(f.class, e2, "Failed to schedule disk-cache remove for %s", cacheKey.b()); + z.g.c(e2); + } + } + } + + public final void n(InputStream inputStream, OutputStream outputStream, int i) throws IOException { + byte[] bArr = this.f.get(16384); + int i2 = i; + while (i2 > 0) { + try { + int read = inputStream.read(bArr, 0, Math.min(16384, i2)); + if (read < 0) { + break; + } else if (read > 0) { + outputStream.write(bArr, 0, read); + i2 -= read; + } + } catch (Throwable th) { + this.f.release(bArr); + throw th; + } + } + this.f.release(bArr); + if (i2 > 0) { + throw new IOException(String.format(null, "Failed to read %d bytes - finished %d short", Integer.valueOf(i), Integer.valueOf(i2))); + } + } + + public final b.f.d.g.i o(e eVar, e eVar2) throws IOException { + b.f.d.g.i e = this.e.e(eVar2.f() + eVar2.f578s.a); + n(eVar.e(), e, eVar2.f578s.a); + n(eVar2.e(), e, eVar2.f()); + return e; + } + + /* JADX WARNING: Removed duplicated region for block: B:12:0x002a */ + /* JADX WARNING: Removed duplicated region for block: B:14:0x002f */ + public final void p(b.f.d.g.i iVar) { + e eVar; + Throwable th; + CloseableReference A = CloseableReference.A(((MemoryPooledByteBufferOutputStream) iVar).b()); + try { + eVar = new e(A); + try { + eVar.n(); + this.f619b.b(eVar, 1); + eVar.close(); + if (A != null) { + A.close(); + } + } catch (Throwable th2) { + th = th2; + if (eVar != null) { + eVar.close(); + } + if (A != null) { + A.close(); + } + throw th; + } + } catch (Throwable th3) { + eVar = null; + th = th3; + if (eVar != null) { + } + if (A != null) { + } + throw th; + } + } + } + + public q0(f fVar, i iVar, g gVar, b.f.d.g.a aVar, v0 v0Var) { + this.a = fVar; + this.f621b = iVar; + this.c = gVar; + this.d = aVar; + this.e = v0Var; + } + + public static void c(q0 q0Var, l lVar, w0 w0Var, CacheKey cacheKey, e eVar) { + q0Var.e.b(new a(lVar, q0Var.a, cacheKey, q0Var.c, q0Var.d, eVar, null), w0Var); + } + + @VisibleForTesting + public static Map d(y0 y0Var, w0 w0Var, boolean z2, int i) { + if (!y0Var.g(w0Var, "PartialDiskCacheProducer")) { + return null; + } + return z2 ? b.f.d.d.f.of("cached_value_found", String.valueOf(z2), "encodedImageSize", String.valueOf(i)) : b.f.d.d.f.of("cached_value_found", String.valueOf(z2)); + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + ImageRequest e = w0Var.e(); + if (!e.n) { + this.e.b(lVar, w0Var); + return; + } + w0Var.o().e(w0Var, "PartialDiskCacheProducer"); + Uri build = e.c.buildUpon().appendQueryParameter("fresco_partial", "true").build(); + i iVar = this.f621b; + w0Var.b(); + Objects.requireNonNull((n) iVar); + b.f.b.a.f fVar = new b.f.b.a.f(build.toString()); + AtomicBoolean atomicBoolean = new AtomicBoolean(false); + this.a.e(fVar, atomicBoolean).b(new o0(this, w0Var.o(), w0Var, lVar, fVar)); + w0Var.f(new p0(this, atomicBoolean)); + } +} diff --git a/app/src/main/java/b/f/j/p/r.java b/app/src/main/java/b/f/j/p/r.java new file mode 100644 index 0000000000..f5306c09d5 --- /dev/null +++ b/app/src/main/java/b/f/j/p/r.java @@ -0,0 +1,16 @@ +package b.f.j.p; + +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: DiskCacheReadProducer */ +public class r extends e { + public final /* synthetic */ AtomicBoolean a; + + public r(s sVar, AtomicBoolean atomicBoolean) { + this.a = atomicBoolean; + } + + @Override // b.f.j.p.x0 + public void a() { + this.a.set(true); + } +} diff --git a/app/src/main/java/b/f/j/p/r0.java b/app/src/main/java/b/f/j/p/r0.java new file mode 100644 index 0000000000..8559cce2d3 --- /dev/null +++ b/app/src/main/java/b/f/j/p/r0.java @@ -0,0 +1,104 @@ +package b.f.j.p; + +import b.f.d.d.f; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.c.w; +import b.f.j.j.c; +import b.f.j.q.b; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.Map; +/* compiled from: PostprocessedBitmapMemoryCacheProducer */ +public class r0 implements v0> { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final i f622b; + public final v0> c; + + /* compiled from: PostprocessedBitmapMemoryCacheProducer */ + public static class a extends p, CloseableReference> { + public final CacheKey c; + public final boolean d; + public final w e; + public final boolean f; + + public a(l> lVar, CacheKey cacheKey, boolean z2, w wVar, boolean z3) { + super(lVar); + this.c = cacheKey; + this.d = z2; + this.e = wVar; + this.f = z3; + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + CloseableReference closeableReference = (CloseableReference) obj; + CloseableReference closeableReference2 = null; + if (closeableReference == null) { + if (b.e(i)) { + this.f619b.b(null, i); + } + } else if (!b.f(i) || this.d) { + if (this.f) { + closeableReference2 = this.e.a(this.c, closeableReference); + } + try { + this.f619b.a(1.0f); + l lVar = this.f619b; + if (closeableReference2 != null) { + closeableReference = closeableReference2; + } + lVar.b(closeableReference, i); + } finally { + Class cls = CloseableReference.j; + if (closeableReference2 != null) { + closeableReference2.close(); + } + } + } + } + } + + public r0(w wVar, i iVar, v0> v0Var) { + this.a = wVar; + this.f622b = iVar; + this.c = v0Var; + } + + @Override // b.f.j.p.v0 + public void b(l> lVar, w0 w0Var) { + y0 o = w0Var.o(); + ImageRequest e = w0Var.e(); + Object b2 = w0Var.b(); + b bVar = e.q; + if (bVar == null || bVar.getPostprocessorCacheKey() == null) { + this.c.b(lVar, w0Var); + return; + } + o.e(w0Var, "PostprocessedBitmapMemoryCacheProducer"); + CacheKey c = ((n) this.f622b).c(e, b2); + CloseableReference closeableReference = this.a.get(c); + Map map = null; + if (closeableReference != null) { + if (o.g(w0Var, "PostprocessedBitmapMemoryCacheProducer")) { + map = f.of("cached_value_found", "true"); + } + o.j(w0Var, "PostprocessedBitmapMemoryCacheProducer", map); + o.c(w0Var, "PostprocessedBitmapMemoryCacheProducer", true); + w0Var.i("memory_bitmap", "postprocessed"); + lVar.a(1.0f); + lVar.b(closeableReference, 1); + closeableReference.close(); + return; + } + a aVar = new a(lVar, c, bVar instanceof b.f.j.q.c, this.a, w0Var.e().o); + if (o.g(w0Var, "PostprocessedBitmapMemoryCacheProducer")) { + map = f.of("cached_value_found", "false"); + } + o.j(w0Var, "PostprocessedBitmapMemoryCacheProducer", map); + this.c.b(aVar, w0Var); + } +} diff --git a/app/src/main/java/b/f/j/p/s.java b/app/src/main/java/b/f/j/p/s.java new file mode 100644 index 0000000000..b0c5c769e3 --- /dev/null +++ b/app/src/main/java/b/f/j/p/s.java @@ -0,0 +1,57 @@ +package b.f.j.p; + +import androidx.annotation.VisibleForTesting; +import b.f.j.c.f; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.j.e; +import com.facebook.cache.common.CacheKey; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.Map; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: DiskCacheReadProducer */ +public class s implements v0 { + public final f a; + + /* renamed from: b reason: collision with root package name */ + public final f f623b; + public final i c; + public final v0 d; + + public s(f fVar, f fVar2, i iVar, v0 v0Var) { + this.a = fVar; + this.f623b = fVar2; + this.c = iVar; + this.d = v0Var; + } + + @VisibleForTesting + public static Map c(y0 y0Var, w0 w0Var, boolean z2, int i) { + if (!y0Var.g(w0Var, "DiskCacheProducer")) { + return null; + } + return z2 ? b.f.d.d.f.of("cached_value_found", String.valueOf(z2), "encodedImageSize", String.valueOf(i)) : b.f.d.d.f.of("cached_value_found", String.valueOf(z2)); + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + ImageRequest e = w0Var.e(); + boolean z2 = true; + if (e.n) { + w0Var.o().e(w0Var, "DiskCacheProducer"); + CacheKey b2 = ((n) this.c).b(e, w0Var.b()); + if (e.f2860b != ImageRequest.b.SMALL) { + z2 = false; + } + f fVar = z2 ? this.f623b : this.a; + AtomicBoolean atomicBoolean = new AtomicBoolean(false); + fVar.e(b2, atomicBoolean).b(new q(this, w0Var.o(), w0Var, lVar)); + w0Var.f(new r(this, atomicBoolean)); + } else if (w0Var.q().g() >= ImageRequest.c.DISK_CACHE.g()) { + w0Var.i("disk", "nil-result_read"); + lVar.b(null, 1); + } else { + this.d.b(lVar, w0Var); + } + } +} diff --git a/app/src/main/java/b/f/j/p/s0.java b/app/src/main/java/b/f/j/p/s0.java new file mode 100644 index 0000000000..58393ae2bc --- /dev/null +++ b/app/src/main/java/b/f/j/p/s0.java @@ -0,0 +1,296 @@ +package b.f.j.p; + +import android.graphics.Bitmap; +import b.f.d.d.f; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.Executor; +/* compiled from: PostprocessorProducer */ +public class s0 implements v0> { + public final v0> a; + + /* renamed from: b reason: collision with root package name */ + public final PlatformBitmapFactory f624b; + public final Executor c; + + /* compiled from: PostprocessorProducer */ + public class b extends p, CloseableReference> { + public final y0 c; + public final w0 d; + public final b.f.j.q.b e; + public boolean f; + public CloseableReference g = null; + public int h = 0; + public boolean i = false; + public boolean j = false; + + /* compiled from: PostprocessorProducer */ + public class a extends e { + public a(s0 s0Var) { + } + + @Override // b.f.j.p.x0 + public void a() { + b bVar = b.this; + if (bVar.o()) { + bVar.f619b.d(); + } + } + } + + public b(l> lVar, y0 y0Var, b.f.j.q.b bVar, w0 w0Var) { + super(lVar); + this.c = y0Var; + this.e = bVar; + this.d = w0Var; + w0Var.f(new a(s0.this)); + } + + public static void n(b bVar, CloseableReference closeableReference, int i) { + Objects.requireNonNull(bVar); + b.c.a.a0.d.i(Boolean.valueOf(CloseableReference.y(closeableReference))); + if (!(((b.f.j.j.c) closeableReference.u()) instanceof b.f.j.j.d)) { + bVar.q(closeableReference, i); + return; + } + bVar.c.e(bVar.d, "PostprocessorProducer"); + try { + CloseableReference r = bVar.r((b.f.j.j.c) closeableReference.u()); + try { + y0 y0Var = bVar.c; + w0 w0Var = bVar.d; + y0Var.j(w0Var, "PostprocessorProducer", bVar.p(y0Var, w0Var, bVar.e)); + bVar.q(r, i); + } finally { + if (r != null) { + r.close(); + } + } + } catch (Exception e) { + y0 y0Var2 = bVar.c; + w0 w0Var2 = bVar.d; + y0Var2.k(w0Var2, "PostprocessorProducer", e, bVar.p(y0Var2, w0Var2, bVar.e)); + if (bVar.o()) { + bVar.f619b.c(e); + } + } + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void g() { + if (o()) { + this.f619b.d(); + } + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void h(Throwable th) { + if (o()) { + this.f619b.c(th); + } + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + CloseableReference closeableReference; + boolean s2; + CloseableReference closeableReference2 = (CloseableReference) obj; + if (CloseableReference.y(closeableReference2)) { + synchronized (this) { + if (!this.f) { + closeableReference = this.g; + this.g = CloseableReference.n(closeableReference2); + this.h = i; + this.i = true; + s2 = s(); + } else { + return; + } + } + if (closeableReference != null) { + closeableReference.close(); + } + if (s2) { + s0.this.c.execute(new t0(this)); + } + } else if (b.e(i)) { + q(null, i); + } + } + + public final boolean o() { + CloseableReference closeableReference; + synchronized (this) { + if (this.f) { + return false; + } + closeableReference = this.g; + this.g = null; + this.f = true; + } + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + return true; + } + + public final Map p(y0 y0Var, w0 w0Var, b.f.j.q.b bVar) { + if (!y0Var.g(w0Var, "PostprocessorProducer")) { + return null; + } + return f.of("Postprocessor", bVar.getName()); + } + + /* JADX WARNING: Code restructure failed: missing block: B:6:0x000a, code lost: + if (r1 != false) goto L_0x0010; + */ + public final void q(CloseableReference closeableReference, int i) { + boolean e = b.e(i); + if (!e) { + synchronized (this) { + boolean z2 = this.f; + } + } + if (!e || !o()) { + return; + } + this.f619b.b(closeableReference, i); + } + + public final CloseableReference r(b.f.j.j.c cVar) { + b.f.j.j.d dVar = (b.f.j.j.d) cVar; + CloseableReference process = this.e.process(dVar.m, s0.this.f624b); + try { + b.f.j.j.d dVar2 = new b.f.j.j.d(process, cVar.b(), dVar.o, dVar.p); + dVar2.e(dVar.k); + CloseableReference A = CloseableReference.A(dVar2); + if (process != null) { + process.close(); + } + return A; + } catch (Throwable th) { + Class cls = CloseableReference.j; + if (process != null) { + process.close(); + } + throw th; + } + } + + public final synchronized boolean s() { + if (this.f || !this.i || this.j || !CloseableReference.y(this.g)) { + return false; + } + this.j = true; + return true; + } + } + + /* compiled from: PostprocessorProducer */ + public class c extends p, CloseableReference> implements b.f.j.q.d { + public boolean c = false; + public CloseableReference d = null; + + public c(s0 s0Var, b bVar, b.f.j.q.c cVar, w0 w0Var, a aVar) { + super(bVar); + cVar.a(this); + w0Var.f(new u0(this, s0Var)); + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void g() { + if (n()) { + this.f619b.d(); + } + } + + @Override // b.f.j.p.p, b.f.j.p.b + public void h(Throwable th) { + if (n()) { + this.f619b.c(th); + } + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + CloseableReference n; + CloseableReference closeableReference = (CloseableReference) obj; + if (!b.f(i)) { + synchronized (this) { + if (!this.c) { + CloseableReference closeableReference2 = this.d; + this.d = CloseableReference.n(closeableReference); + if (closeableReference2 != null) { + closeableReference2.close(); + } + } + } + synchronized (this) { + if (!this.c) { + n = CloseableReference.n(this.d); + } else { + return; + } + } + try { + this.f619b.b(n, 0); + } finally { + if (n != null) { + n.close(); + } + } + } + } + + public final boolean n() { + CloseableReference closeableReference; + synchronized (this) { + if (this.c) { + return false; + } + closeableReference = this.d; + this.d = null; + this.c = true; + } + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + return true; + } + } + + /* compiled from: PostprocessorProducer */ + public class d extends p, CloseableReference> { + public d(s0 s0Var, b bVar, a aVar) { + super(bVar); + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + CloseableReference closeableReference = (CloseableReference) obj; + if (!b.f(i)) { + this.f619b.b(closeableReference, i); + } + } + } + + public s0(v0> v0Var, PlatformBitmapFactory platformBitmapFactory, Executor executor) { + Objects.requireNonNull(v0Var); + this.a = v0Var; + this.f624b = platformBitmapFactory; + Objects.requireNonNull(executor); + this.c = executor; + } + + @Override // b.f.j.p.v0 + public void b(l> lVar, w0 w0Var) { + y0 o = w0Var.o(); + b.f.j.q.b bVar = w0Var.e().q; + b bVar2 = new b(lVar, o, bVar, w0Var); + this.a.b(bVar instanceof b.f.j.q.c ? new c(this, bVar2, (b.f.j.q.c) bVar, w0Var, null) : new d(this, bVar2, null), w0Var); + } +} diff --git a/app/src/main/java/b/f/j/p/t.java b/app/src/main/java/b/f/j/p/t.java new file mode 100644 index 0000000000..d1b94805b0 --- /dev/null +++ b/app/src/main/java/b/f/j/p/t.java @@ -0,0 +1,77 @@ +package b.f.j.p; + +import b.f.i.c; +import b.f.j.c.f; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.j.e; +import com.facebook.cache.common.CacheKey; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: DiskCacheWriteProducer */ +public class t implements v0 { + public final f a; + + /* renamed from: b reason: collision with root package name */ + public final f f625b; + public final i c; + public final v0 d; + + /* compiled from: DiskCacheWriteProducer */ + public static class b extends p { + public final w0 c; + public final f d; + public final f e; + public final i f; + + public b(l lVar, w0 w0Var, f fVar, f fVar2, i iVar, a aVar) { + super(lVar); + this.c = w0Var; + this.d = fVar; + this.e = fVar2; + this.f = iVar; + } + + @Override // b.f.j.p.b + public void i(Object obj, int i) { + e eVar = (e) obj; + this.c.o().e(this.c, "DiskCacheWriteProducer"); + if (!b.f(i) && eVar != null && !b.l(i, 10)) { + eVar.u(); + if (eVar.l != c.a) { + ImageRequest e = this.c.e(); + CacheKey b2 = ((n) this.f).b(e, this.c.b()); + if (e.f2860b == ImageRequest.b.SMALL) { + this.e.f(b2, eVar); + } else { + this.d.f(b2, eVar); + } + this.c.o().j(this.c, "DiskCacheWriteProducer", null); + this.f619b.b(eVar, i); + return; + } + } + this.c.o().j(this.c, "DiskCacheWriteProducer", null); + this.f619b.b(eVar, i); + } + } + + public t(f fVar, f fVar2, i iVar, v0 v0Var) { + this.a = fVar; + this.f625b = fVar2; + this.c = iVar; + this.d = v0Var; + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + if (w0Var.q().g() >= ImageRequest.c.DISK_CACHE.g()) { + w0Var.i("disk", "nil-result_write"); + lVar.b(null, 1); + return; + } + if (w0Var.e().n) { + lVar = new b(lVar, w0Var, this.a, this.f625b, this.c, null); + } + this.d.b(lVar, w0Var); + } +} diff --git a/app/src/main/java/b/f/j/p/t0.java b/app/src/main/java/b/f/j/p/t0.java new file mode 100644 index 0000000000..40d32c720b --- /dev/null +++ b/app/src/main/java/b/f/j/p/t0.java @@ -0,0 +1,46 @@ +package b.f.j.p; + +import b.f.j.j.c; +import b.f.j.p.s0; +import com.facebook.common.references.CloseableReference; +/* compiled from: PostprocessorProducer */ +public class t0 implements Runnable { + public final /* synthetic */ s0.b j; + + public t0(s0.b bVar) { + this.j = bVar; + } + + @Override // java.lang.Runnable + public void run() { + CloseableReference closeableReference; + int i; + boolean s2; + synchronized (this.j) { + s0.b bVar = this.j; + closeableReference = bVar.g; + i = bVar.h; + bVar.g = null; + bVar.i = false; + } + if (CloseableReference.y(closeableReference)) { + try { + s0.b.n(this.j, closeableReference, i); + closeableReference.close(); + } catch (Throwable th) { + if (closeableReference != null) { + closeableReference.close(); + } + throw th; + } + } + s0.b bVar2 = this.j; + synchronized (bVar2) { + bVar2.j = false; + s2 = bVar2.s(); + } + if (s2) { + s0.this.c.execute(new t0(bVar2)); + } + } +} diff --git a/app/src/main/java/b/f/j/p/u.java b/app/src/main/java/b/f/j/p/u.java new file mode 100644 index 0000000000..c577fad2fa --- /dev/null +++ b/app/src/main/java/b/f/j/p/u.java @@ -0,0 +1,30 @@ +package b.f.j.p; + +import android.util.Pair; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.j.e; +import com.facebook.cache.common.CacheKey; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: EncodedCacheKeyMultiplexProducer */ +public class u extends k0, e> { + public final i f; + + public u(i iVar, boolean z2, v0 v0Var) { + super(v0Var, "EncodedCacheKeyMultiplexProducer", "multiplex_enc_cnt", z2); + this.f = iVar; + } + + /* Return type fixed from 'java.io.Closeable' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.io.Closeable] */ + @Override // b.f.j.p.k0 + public e c(e eVar) { + return e.a(eVar); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.f.j.p.k0 + public Pair d(w0 w0Var) { + return Pair.create(((n) this.f).b(w0Var.e(), w0Var.b()), w0Var.q()); + } +} diff --git a/app/src/main/java/b/f/j/p/u0.java b/app/src/main/java/b/f/j/p/u0.java new file mode 100644 index 0000000000..80536e50bb --- /dev/null +++ b/app/src/main/java/b/f/j/p/u0.java @@ -0,0 +1,18 @@ +package b.f.j.p; + +import b.f.j.p.s0; +/* compiled from: PostprocessorProducer */ +public class u0 extends e { + public final /* synthetic */ s0.c a; + + public u0(s0.c cVar, s0 s0Var) { + this.a = cVar; + } + + @Override // b.f.j.p.x0 + public void a() { + if (this.a.n()) { + this.a.f619b.d(); + } + } +} diff --git a/app/src/main/java/b/f/j/p/v.java b/app/src/main/java/b/f/j/p/v.java new file mode 100644 index 0000000000..7fa5a9dc4f --- /dev/null +++ b/app/src/main/java/b/f/j/p/v.java @@ -0,0 +1,156 @@ +package b.f.j.p; + +import b.f.d.d.f; +import b.f.i.c; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.c.w; +import b.f.j.j.e; +import b.f.j.r.b; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.memory.PooledByteBuffer; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.Map; +/* compiled from: EncodedMemoryCacheProducer */ +public class v implements v0 { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final i f626b; + public final v0 c; + + /* compiled from: EncodedMemoryCacheProducer */ + public static class a extends p { + public final w c; + public final CacheKey d; + public final boolean e; + public final boolean f; + + public a(l lVar, w wVar, CacheKey cacheKey, boolean z2, boolean z3) { + super(lVar); + this.c = wVar; + this.d = cacheKey; + this.e = z2; + this.f = z3; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.b + public void i(Object obj, int i) { + e eVar = (e) obj; + try { + b.b(); + if (!b.f(i) && eVar != null && !b.l(i, 10)) { + eVar.u(); + if (eVar.l != c.a) { + CloseableReference c = eVar.c(); + if (c != null) { + CloseableReference closeableReference = null; + try { + if (this.f && this.e) { + closeableReference = this.c.a(this.d, c); + } + if (closeableReference != null) { + try { + e eVar2 = new e(closeableReference); + eVar2.b(eVar); + try { + this.f619b.a(1.0f); + this.f619b.b(eVar2, i); + b.b(); + } finally { + eVar2.close(); + } + } finally { + closeableReference.close(); + } + } + } finally { + c.close(); + } + } + this.f619b.b(eVar, i); + b.b(); + } + } + this.f619b.b(eVar, i); + b.b(); + } catch (Throwable th) { + b.b(); + throw th; + } + } + } + + public v(w wVar, i iVar, v0 v0Var) { + this.a = wVar; + this.f626b = iVar; + this.c = v0Var; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + try { + b.b(); + y0 o = w0Var.o(); + o.e(w0Var, "EncodedMemoryCacheProducer"); + CacheKey b2 = ((n) this.f626b).b(w0Var.e(), w0Var.b()); + CloseableReference closeableReference = this.a.get(b2); + Map map = null; + if (closeableReference != null) { + try { + e eVar = new e(closeableReference); + try { + if (o.g(w0Var, "EncodedMemoryCacheProducer")) { + map = f.of("cached_value_found", "true"); + } + o.j(w0Var, "EncodedMemoryCacheProducer", map); + o.c(w0Var, "EncodedMemoryCacheProducer", true); + w0Var.n("memory_encoded"); + lVar.a(1.0f); + lVar.b(eVar, 1); + eVar.close(); + closeableReference.close(); + b.b(); + } catch (Throwable th) { + eVar.close(); + throw th; + } + } catch (Throwable th2) { + Class cls = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + throw th2; + } + } else if (w0Var.q().g() >= ImageRequest.c.ENCODED_MEMORY_CACHE.g()) { + o.j(w0Var, "EncodedMemoryCacheProducer", o.g(w0Var, "EncodedMemoryCacheProducer") ? f.of("cached_value_found", "false") : null); + o.c(w0Var, "EncodedMemoryCacheProducer", false); + w0Var.i("memory_encoded", "nil-result"); + lVar.b(null, 1); + Class cls2 = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + b.b(); + } else { + a aVar = new a(lVar, this.a, b2, w0Var.e().o, w0Var.g().w.e); + if (o.g(w0Var, "EncodedMemoryCacheProducer")) { + map = f.of("cached_value_found", "false"); + } + o.j(w0Var, "EncodedMemoryCacheProducer", map); + this.c.b(aVar, w0Var); + Class cls3 = CloseableReference.j; + if (closeableReference != null) { + closeableReference.close(); + } + b.b(); + } + } catch (Throwable th3) { + b.b(); + throw th3; + } + } +} diff --git a/app/src/main/java/b/f/j/p/v0.java b/app/src/main/java/b/f/j/p/v0.java new file mode 100644 index 0000000000..92082e103d --- /dev/null +++ b/app/src/main/java/b/f/j/p/v0.java @@ -0,0 +1,5 @@ +package b.f.j.p; +/* compiled from: Producer */ +public interface v0 { + void b(l lVar, w0 w0Var); +} diff --git a/app/src/main/java/b/f/j/p/w.java b/app/src/main/java/b/f/j/p/w.java new file mode 100644 index 0000000000..398c265314 --- /dev/null +++ b/app/src/main/java/b/f/j/p/w.java @@ -0,0 +1,99 @@ +package b.f.j.p; + +import b.f.i.c; +import b.f.j.c.d; +import b.f.j.c.f; +import b.f.j.c.i; +import b.f.j.c.n; +import b.f.j.j.e; +import b.f.j.r.b; +import com.facebook.cache.common.CacheKey; +import com.facebook.imagepipeline.request.ImageRequest; +/* compiled from: EncodedProbeProducer */ +public class w implements v0 { + public final f a; + + /* renamed from: b reason: collision with root package name */ + public final f f627b; + public final i c; + public final v0 d; + public final d e; + public final d f; + + /* compiled from: EncodedProbeProducer */ + public static class a extends p { + public final w0 c; + public final f d; + public final f e; + public final i f; + public final d g; + public final d h; + + public a(l lVar, w0 w0Var, f fVar, f fVar2, i iVar, d dVar, d dVar2) { + super(lVar); + this.c = w0Var; + this.d = fVar; + this.e = fVar2; + this.f = iVar; + this.g = dVar; + this.h = dVar2; + } + + /* JADX INFO: finally extract failed */ + @Override // b.f.j.p.b + public void i(Object obj, int i) { + e eVar = (e) obj; + try { + b.b(); + if (!b.f(i) && eVar != null && !b.l(i, 10)) { + eVar.u(); + if (eVar.l != c.a) { + ImageRequest e = this.c.e(); + CacheKey b2 = ((n) this.f).b(e, this.c.b()); + this.g.a(b2); + if (this.c.l("origin").equals("memory_encoded")) { + if (!this.h.b(b2)) { + (e.f2860b == ImageRequest.b.SMALL ? this.e : this.d).c(b2); + this.h.a(b2); + } + } else if (this.c.l("origin").equals("disk")) { + this.h.a(b2); + } + this.f619b.b(eVar, i); + b.b(); + } + } + this.f619b.b(eVar, i); + b.b(); + } catch (Throwable th) { + b.b(); + throw th; + } + } + } + + public w(f fVar, f fVar2, i iVar, d dVar, d dVar2, v0 v0Var) { + this.a = fVar; + this.f627b = fVar2; + this.c = iVar; + this.e = dVar; + this.f = dVar2; + this.d = v0Var; + } + + @Override // b.f.j.p.v0 + public void b(l lVar, w0 w0Var) { + try { + b.b(); + y0 o = w0Var.o(); + o.e(w0Var, "EncodedProbeProducer"); + a aVar = new a(lVar, w0Var, this.a, this.f627b, this.c, this.e, this.f); + o.j(w0Var, "EncodedProbeProducer", null); + b.b(); + this.d.b(aVar, w0Var); + b.b(); + } finally { + b.b(); + } + } +} diff --git a/app/src/main/java/b/f/j/p/w0.java b/app/src/main/java/b/f/j/p/w0.java new file mode 100644 index 0000000000..702c0fdff7 --- /dev/null +++ b/app/src/main/java/b/f/j/p/w0.java @@ -0,0 +1,45 @@ +package b.f.j.p; + +import b.f.j.d.d; +import b.f.j.e.j; +import b.f.j.j.f; +import com.facebook.imagepipeline.request.ImageRequest; +import java.util.Map; +/* compiled from: ProducerContext */ +public interface w0 { + Map a(); + + Object b(); + + d c(); + + void d(String str, E e); + + ImageRequest e(); + + void f(x0 x0Var); + + j g(); + + String getId(); + + void h(f fVar); + + void i(String str, String str2); + + void j(Map map); + + boolean k(); + + E l(String str); + + String m(); + + void n(String str); + + y0 o(); + + boolean p(); + + ImageRequest.c q(); +} diff --git a/app/src/main/java/b/f/j/p/x.java b/app/src/main/java/b/f/j/p/x.java new file mode 100644 index 0000000000..f984a2e57f --- /dev/null +++ b/app/src/main/java/b/f/j/p/x.java @@ -0,0 +1,20 @@ +package b.f.j.p; + +import b.f.j.j.e; +/* compiled from: FetchState */ +public class x { + public final l a; + + /* renamed from: b reason: collision with root package name */ + public final w0 f628b; + public long c = 0; + + public x(l lVar, w0 w0Var) { + this.a = lVar; + this.f628b = w0Var; + } + + public y0 a() { + return this.f628b.o(); + } +} diff --git a/app/src/main/java/b/f/j/p/x0.java b/app/src/main/java/b/f/j/p/x0.java new file mode 100644 index 0000000000..360215b196 --- /dev/null +++ b/app/src/main/java/b/f/j/p/x0.java @@ -0,0 +1,11 @@ +package b.f.j.p; +/* compiled from: ProducerContextCallbacks */ +public interface x0 { + void a(); + + void b(); + + void c(); + + void d(); +} diff --git a/app/src/main/java/b/f/j/p/y.java b/app/src/main/java/b/f/j/p/y.java new file mode 100644 index 0000000000..d08f397aaf --- /dev/null +++ b/app/src/main/java/b/f/j/p/y.java @@ -0,0 +1,101 @@ +package b.f.j.p; + +import b.f.j.p.a0; +import b.f.j.p.m0; +import b.f.j.p.n0; +import java.io.IOException; +import java.io.InputStream; +import java.net.HttpURLConnection; +import java.util.Objects; +/* compiled from: HttpUrlConnectionNetworkFetcher */ +public class y implements Runnable { + public final /* synthetic */ a0.a j; + public final /* synthetic */ n0.a k; + public final /* synthetic */ a0 l; + + public y(a0 a0Var, a0.a aVar, n0.a aVar2) { + this.l = a0Var; + this.j = aVar; + this.k = aVar2; + } + + /* JADX WARNING: Removed duplicated region for block: B:20:0x0044 A[SYNTHETIC, Splitter:B:20:0x0044] */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x0052 A[SYNTHETIC, Splitter:B:27:0x0052] */ + /* JADX WARNING: Removed duplicated region for block: B:31:0x0059 */ + /* JADX WARNING: Removed duplicated region for block: B:35:? A[RETURN, SYNTHETIC] */ + @Override // java.lang.Runnable + public void run() { + HttpURLConnection httpURLConnection; + Throwable th; + IOException e; + a0 a0Var = this.l; + a0.a aVar = this.j; + n0.a aVar2 = this.k; + Objects.requireNonNull(a0Var); + InputStream inputStream = null; + try { + httpURLConnection = a0Var.a(aVar.f628b.e().c, 5); + try { + aVar.e = a0Var.c.now(); + if (httpURLConnection != null) { + inputStream = httpURLConnection.getInputStream(); + ((m0.a) aVar2).b(inputStream, -1); + } + if (inputStream != null) { + try { + inputStream.close(); + } catch (IOException unused) { + } + } + if (httpURLConnection == null) { + return; + } + } catch (IOException e2) { + e = e2; + try { + ((m0.a) aVar2).a(e); + if (0 != 0) { + try { + inputStream.close(); + } catch (IOException unused2) { + } + } + if (httpURLConnection == null) { + return; + } + httpURLConnection.disconnect(); + } catch (Throwable th2) { + th = th2; + if (0 != 0) { + } + if (httpURLConnection != null) { + } + throw th; + } + } + } catch (IOException e3) { + e = e3; + httpURLConnection = null; + ((m0.a) aVar2).a(e); + if (0 != 0) { + } + if (httpURLConnection == null) { + } + httpURLConnection.disconnect(); + } catch (Throwable th3) { + th = th3; + httpURLConnection = null; + if (0 != 0) { + try { + inputStream.close(); + } catch (IOException unused3) { + } + } + if (httpURLConnection != null) { + httpURLConnection.disconnect(); + } + throw th; + } + httpURLConnection.disconnect(); + } +} diff --git a/app/src/main/java/b/f/j/p/y0.java b/app/src/main/java/b/f/j/p/y0.java new file mode 100644 index 0000000000..2b444f7555 --- /dev/null +++ b/app/src/main/java/b/f/j/p/y0.java @@ -0,0 +1,20 @@ +package b.f.j.p; + +import androidx.annotation.NonNull; +import java.util.Map; +/* compiled from: ProducerListener2 */ +public interface y0 { + void a(@NonNull w0 w0Var, @NonNull String str, @NonNull String str2); + + void c(@NonNull w0 w0Var, @NonNull String str, boolean z2); + + void d(@NonNull w0 w0Var, @NonNull String str, Map map); + + void e(@NonNull w0 w0Var, @NonNull String str); + + boolean g(@NonNull w0 w0Var, @NonNull String str); + + void j(@NonNull w0 w0Var, @NonNull String str, Map map); + + void k(@NonNull w0 w0Var, String str, Throwable th, Map map); +} diff --git a/app/src/main/java/b/f/j/p/z.java b/app/src/main/java/b/f/j/p/z.java new file mode 100644 index 0000000000..f578006b1d --- /dev/null +++ b/app/src/main/java/b/f/j/p/z.java @@ -0,0 +1,30 @@ +package b.f.j.p; + +import b.f.j.p.m0; +import b.f.j.p.n0; +import java.util.Objects; +import java.util.concurrent.Future; +/* compiled from: HttpUrlConnectionNetworkFetcher */ +public class z extends e { + public final /* synthetic */ Future a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ n0.a f629b; + + public z(a0 a0Var, Future future, n0.a aVar) { + this.a = future; + this.f629b = aVar; + } + + @Override // b.f.j.p.x0 + public void a() { + if (this.a.cancel(false)) { + m0.a aVar = (m0.a) this.f629b; + m0 m0Var = m0.this; + x xVar = aVar.a; + Objects.requireNonNull(m0Var); + xVar.a().d(xVar.f628b, "NetworkFetchProducer", null); + xVar.a.d(); + } + } +} diff --git a/app/src/main/java/b/f/j/p/z0.java b/app/src/main/java/b/f/j/p/z0.java new file mode 100644 index 0000000000..402d3c8a8a --- /dev/null +++ b/app/src/main/java/b/f/j/p/z0.java @@ -0,0 +1,19 @@ +package b.f.j.p; + +import java.util.Map; +/* compiled from: ProducerListener */ +public interface z0 { + void b(String str, String str2); + + void d(String str, String str2, Map map); + + void e(String str, String str2, boolean z2); + + boolean f(String str); + + void h(String str, String str2, String str3); + + void i(String str, String str2, Map map); + + void j(String str, String str2, Throwable th, Map map); +} diff --git a/app/src/main/java/b/f/j/q/a.java b/app/src/main/java/b/f/j/q/a.java new file mode 100644 index 0000000000..bc6a76af02 --- /dev/null +++ b/app/src/main/java/b/f/j/q/a.java @@ -0,0 +1,78 @@ +package b.f.j.q; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Paint; +import b.f.j.e.m; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +/* compiled from: BasePostprocessor */ +public abstract class a implements b { + public static final Bitmap.Config FALLBACK_BITMAP_CONFIGURATION = Bitmap.Config.ARGB_8888; + private static Method sCopyBitmap; + + private static void internalCopyBitmap(Bitmap bitmap, Bitmap bitmap2) { + if (!m.a || bitmap.getConfig() != bitmap2.getConfig()) { + new Canvas(bitmap).drawBitmap(bitmap2, 0.0f, 0.0f, (Paint) null); + return; + } + try { + if (sCopyBitmap == null) { + sCopyBitmap = Class.forName("com.facebook.imagepipeline.nativecode.Bitmaps").getDeclaredMethod("copyBitmap", Bitmap.class, Bitmap.class); + } + sCopyBitmap.invoke(null, bitmap, bitmap2); + } catch (ClassNotFoundException e) { + throw new RuntimeException("Wrong Native code setup, reflection failed.", e); + } catch (IllegalAccessException e2) { + throw new RuntimeException("Wrong Native code setup, reflection failed.", e2); + } catch (NoSuchMethodException e3) { + throw new RuntimeException("Wrong Native code setup, reflection failed.", e3); + } catch (InvocationTargetException e4) { + throw new RuntimeException("Wrong Native code setup, reflection failed.", e4); + } + } + + @Override // b.f.j.q.b + public String getName() { + return "Unknown postprocessor"; + } + + @Override // b.f.j.q.b + public CacheKey getPostprocessorCacheKey() { + return null; + } + + @Override // b.f.j.q.b + public CloseableReference process(Bitmap bitmap, PlatformBitmapFactory platformBitmapFactory) { + Bitmap.Config config = bitmap.getConfig(); + int width = bitmap.getWidth(); + int height = bitmap.getHeight(); + if (config == null) { + config = FALLBACK_BITMAP_CONFIGURATION; + } + CloseableReference b2 = platformBitmapFactory.b(width, height, config); + try { + process(b2.u(), bitmap); + CloseableReference b3 = b2.clone(); + b2.close(); + return b3; + } catch (Throwable th) { + Class cls = CloseableReference.j; + if (b2 != null) { + b2.close(); + } + throw th; + } + } + + public void process(Bitmap bitmap) { + } + + public void process(Bitmap bitmap, Bitmap bitmap2) { + internalCopyBitmap(bitmap, bitmap2); + process(bitmap); + } +} diff --git a/app/src/main/java/b/f/j/q/b.java b/app/src/main/java/b/f/j/q/b.java new file mode 100644 index 0000000000..0912dc2ed5 --- /dev/null +++ b/app/src/main/java/b/f/j/q/b.java @@ -0,0 +1,14 @@ +package b.f.j.q; + +import android.graphics.Bitmap; +import com.facebook.cache.common.CacheKey; +import com.facebook.common.references.CloseableReference; +import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory; +/* compiled from: Postprocessor */ +public interface b { + String getName(); + + CacheKey getPostprocessorCacheKey(); + + CloseableReference process(Bitmap bitmap, PlatformBitmapFactory platformBitmapFactory); +} diff --git a/app/src/main/java/b/f/j/q/c.java b/app/src/main/java/b/f/j/q/c.java new file mode 100644 index 0000000000..3841913e57 --- /dev/null +++ b/app/src/main/java/b/f/j/q/c.java @@ -0,0 +1,5 @@ +package b.f.j.q; +/* compiled from: RepeatedPostprocessor */ +public interface c extends b { + void a(d dVar); +} diff --git a/app/src/main/java/b/f/j/q/d.java b/app/src/main/java/b/f/j/q/d.java new file mode 100644 index 0000000000..eb88745805 --- /dev/null +++ b/app/src/main/java/b/f/j/q/d.java @@ -0,0 +1,4 @@ +package b.f.j.q; +/* compiled from: RepeatedPostprocessorRunner */ +public interface d { +} diff --git a/app/src/main/java/b/f/j/r/a.java b/app/src/main/java/b/f/j/r/a.java new file mode 100644 index 0000000000..1de3e117d2 --- /dev/null +++ b/app/src/main/java/b/f/j/r/a.java @@ -0,0 +1,6 @@ +package b.f.j.r; + +import b.f.j.r.b; +/* compiled from: DefaultFrescoSystrace */ +public class a implements b.a { +} diff --git a/app/src/main/java/b/f/j/r/b.java b/app/src/main/java/b/f/j/r/b.java new file mode 100644 index 0000000000..c1ab535b27 --- /dev/null +++ b/app/src/main/java/b/f/j/r/b.java @@ -0,0 +1,27 @@ +package b.f.j.r; + +import java.util.Objects; +/* compiled from: FrescoSystrace */ +public class b { + public static volatile a a; + + /* compiled from: FrescoSystrace */ + public interface a { + } + + public static a a() { + if (a == null) { + synchronized (b.class) { + if (a == null) { + a = new a(); + } + } + } + return a; + } + + public static boolean b() { + Objects.requireNonNull(a()); + return false; + } +} diff --git a/app/src/main/java/b/f/j/s/a.java b/app/src/main/java/b/f/j/s/a.java new file mode 100644 index 0000000000..9a9b9f27e0 --- /dev/null +++ b/app/src/main/java/b/f/j/s/a.java @@ -0,0 +1,13 @@ +package b.f.j.s; +/* compiled from: ImageTranscodeResult */ +public class a { + public final int a; + + public a(int i) { + this.a = i; + } + + public String toString() { + return String.format(null, "Status: %d", Integer.valueOf(this.a)); + } +} diff --git a/app/src/main/java/b/f/j/s/b.java b/app/src/main/java/b/f/j/s/b.java new file mode 100644 index 0000000000..32acf2587e --- /dev/null +++ b/app/src/main/java/b/f/j/s/b.java @@ -0,0 +1,17 @@ +package b.f.j.s; + +import b.f.i.c; +import b.f.j.d.f; +import b.f.j.j.e; +import java.io.IOException; +import java.io.OutputStream; +/* compiled from: ImageTranscoder */ +public interface b { + String a(); + + boolean b(e eVar, f fVar, b.f.j.d.e eVar2); + + a c(e eVar, OutputStream outputStream, f fVar, b.f.j.d.e eVar2, c cVar, Integer num) throws IOException; + + boolean d(c cVar); +} diff --git a/app/src/main/java/b/f/j/s/c.java b/app/src/main/java/b/f/j/s/c.java new file mode 100644 index 0000000000..10193a3a6f --- /dev/null +++ b/app/src/main/java/b/f/j/s/c.java @@ -0,0 +1,5 @@ +package b.f.j.s; +/* compiled from: ImageTranscoderFactory */ +public interface c { + b createImageTranscoder(b.f.i.c cVar, boolean z2); +} diff --git a/app/src/main/java/b/f/j/s/d.java b/app/src/main/java/b/f/j/s/d.java new file mode 100644 index 0000000000..f9d6c1b04a --- /dev/null +++ b/app/src/main/java/b/f/j/s/d.java @@ -0,0 +1,92 @@ +package b.f.j.s; + +import b.f.d.d.e; +import b.f.j.d.f; +import java.util.Collections; +/* compiled from: JpegTranscoderUtils */ +public class d { + public static final e a; + + static { + e eVar = new e<>(4); + Collections.addAll(eVar, 2, 7, 4, 5); + a = eVar; + } + + public static int a(f fVar, b.f.j.j.e eVar) { + eVar.u(); + int i = eVar.n; + e eVar2 = a; + int indexOf = eVar2.indexOf(Integer.valueOf(i)); + if (indexOf >= 0) { + int i2 = 0; + if (!fVar.c()) { + i2 = fVar.a(); + } + return eVar2.get(((i2 / 90) + indexOf) % eVar2.size()).intValue(); + } + throw new IllegalArgumentException("Only accepts inverted exif orientations"); + } + + public static int b(f fVar, b.f.j.j.e eVar) { + int i = 0; + if (!fVar.b()) { + return 0; + } + eVar.u(); + int i2 = eVar.m; + if (i2 == 90 || i2 == 180 || i2 == 270) { + eVar.u(); + i = eVar.m; + } + return fVar.c() ? i : (fVar.a() + i) % 360; + } + + public static int c(f fVar, b.f.j.d.e eVar, b.f.j.j.e eVar2, boolean z2) { + int i; + int i2; + if (!z2 || eVar == null) { + return 8; + } + int b2 = b(fVar, eVar2); + e eVar3 = a; + eVar2.u(); + boolean z3 = false; + int a2 = eVar3.contains(Integer.valueOf(eVar2.n)) ? a(fVar, eVar2) : 0; + if (b2 == 90 || b2 == 270 || a2 == 5 || a2 == 7) { + z3 = true; + } + if (z3) { + eVar2.u(); + i = eVar2.p; + } else { + eVar2.u(); + i = eVar2.o; + } + if (z3) { + eVar2.u(); + i2 = eVar2.o; + } else { + eVar2.u(); + i2 = eVar2.p; + } + float f = (float) i; + float f2 = (float) i2; + float max = Math.max(((float) eVar.a) / f, ((float) eVar.f554b) / f2); + float f3 = eVar.c; + if (f * max > f3) { + max = f3 / f; + } + if (f2 * max > f3) { + max = f3 / f2; + } + int i3 = (int) ((max * 8.0f) + eVar.d); + if (i3 > 8) { + return 8; + } + if (i3 < 1) { + return 1; + } + return i3; + } +} diff --git a/app/src/main/java/b/f/j/s/e.java b/app/src/main/java/b/f/j/s/e.java new file mode 100644 index 0000000000..df3cfc33ca --- /dev/null +++ b/app/src/main/java/b/f/j/s/e.java @@ -0,0 +1,38 @@ +package b.f.j.s; + +import b.f.i.c; +import b.f.j.e.m; +import java.lang.reflect.InvocationTargetException; +/* compiled from: MultiImageTranscoderFactory */ +public class e implements c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f630b; + + public e(int i, boolean z2, c cVar, Integer num, boolean z3) { + this.a = i; + this.f630b = z3; + } + + public final b a(c cVar, boolean z2) { + int i = this.a; + boolean z3 = this.f630b; + try { + Class cls = Class.forName("com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory"); + Class cls2 = Boolean.TYPE; + return ((c) cls.getConstructor(Integer.TYPE, cls2, cls2).newInstance(Integer.valueOf(i), Boolean.FALSE, Boolean.valueOf(z3))).createImageTranscoder(cVar, z2); + } catch (ClassNotFoundException | IllegalAccessException | IllegalArgumentException | InstantiationException | NoSuchMethodException | SecurityException | InvocationTargetException e) { + throw new RuntimeException("Dependency ':native-imagetranscoder' is needed to use the default native image transcoder.", e); + } + } + + @Override // b.f.j.s.c + public b createImageTranscoder(c cVar, boolean z2) { + b bVar = null; + if (m.a) { + bVar = a(cVar, z2); + } + return bVar == null ? new f(z2, this.a) : bVar; + } +} diff --git a/app/src/main/java/b/f/j/s/f.java b/app/src/main/java/b/f/j/s/f.java new file mode 100644 index 0000000000..02c2b6bdf0 --- /dev/null +++ b/app/src/main/java/b/f/j/s/f.java @@ -0,0 +1,159 @@ +package b.f.j.s; + +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.Matrix; +import b.c.a.a0.d; +import b.f.d.e.a; +import b.f.i.b; +import b.f.i.c; +import b.f.j.j.e; +import java.io.OutputStream; +/* compiled from: SimpleImageTranscoder */ +public class f implements b { + public final boolean a; + + /* renamed from: b reason: collision with root package name */ + public final int f631b; + + public f(boolean z2, int i) { + this.a = z2; + this.f631b = i; + } + + public static Bitmap.CompressFormat e(c cVar) { + return cVar == null ? Bitmap.CompressFormat.JPEG : cVar == b.a ? Bitmap.CompressFormat.JPEG : cVar == b.f530b ? Bitmap.CompressFormat.PNG : b.a(cVar) ? Bitmap.CompressFormat.WEBP : Bitmap.CompressFormat.JPEG; + } + + @Override // b.f.j.s.b + public String a() { + return "SimpleImageTranscoder"; + } + + @Override // b.f.j.s.b + public boolean b(e eVar, b.f.j.d.f fVar, b.f.j.d.e eVar2) { + if (fVar == null) { + fVar = b.f.j.d.f.a; + } + return this.a && d.Z(fVar, eVar2, eVar, this.f631b) > 1; + } + + /* JADX WARNING: Removed duplicated region for block: B:37:0x00a5 */ + /* JADX WARNING: Removed duplicated region for block: B:45:0x00be */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x00d0 A[Catch:{ OutOfMemoryError -> 0x00dd }] */ + @Override // b.f.j.s.b + public a c(e eVar, OutputStream outputStream, b.f.j.d.f fVar, b.f.j.d.e eVar2, c cVar, Integer num) { + Matrix matrix; + Bitmap bitmap; + Throwable th; + OutOfMemoryError e; + Integer num2 = num == null ? 85 : num; + b.f.j.d.f fVar2 = fVar == null ? b.f.j.d.f.a : fVar; + int i = 1; + int Z = !this.a ? 1 : d.Z(fVar2, eVar2, eVar, this.f631b); + BitmapFactory.Options options = new BitmapFactory.Options(); + options.inSampleSize = Z; + try { + Bitmap decodeStream = BitmapFactory.decodeStream(eVar.e(), null, options); + if (decodeStream == null) { + a.e("SimpleImageTranscoder", "Couldn't decode the EncodedImage InputStream ! "); + return new a(2); + } + b.f.d.d.e eVar3 = d.a; + eVar.u(); + if (eVar3.contains(Integer.valueOf(eVar.n))) { + int a = d.a(fVar2, eVar); + matrix = new Matrix(); + if (a == 2) { + matrix.setScale(-1.0f, 1.0f); + } else if (a == 7) { + matrix.setRotate(-90.0f); + matrix.postScale(-1.0f, 1.0f); + } else if (a == 4) { + matrix.setRotate(180.0f); + matrix.postScale(-1.0f, 1.0f); + } else if (a == 5) { + matrix.setRotate(90.0f); + matrix.postScale(-1.0f, 1.0f); + } + if (matrix != null) { + try { + bitmap = Bitmap.createBitmap(decodeStream, 0, 0, decodeStream.getWidth(), decodeStream.getHeight(), matrix, false); + } catch (OutOfMemoryError e2) { + e = e2; + bitmap = decodeStream; + try { + a.f("SimpleImageTranscoder", "Out-Of-Memory during transcode", e); + a aVar = new a(2); + bitmap.recycle(); + decodeStream.recycle(); + return aVar; + } catch (Throwable th2) { + th = th2; + bitmap.recycle(); + decodeStream.recycle(); + throw th; + } + } catch (Throwable th3) { + th = th3; + bitmap = decodeStream; + bitmap.recycle(); + decodeStream.recycle(); + throw th; + } + } else { + bitmap = decodeStream; + } + bitmap.compress(e(null), num2.intValue(), outputStream); + if (Z > 1) { + i = 0; + } + a aVar2 = new a(i); + bitmap.recycle(); + decodeStream.recycle(); + return aVar2; + } + int b2 = d.b(fVar2, eVar); + if (b2 != 0) { + matrix = new Matrix(); + matrix.setRotate((float) b2); + if (matrix != null) { + } + bitmap.compress(e(null), num2.intValue(), outputStream); + if (Z > 1) { + } + a aVar2 = new a(i); + bitmap.recycle(); + decodeStream.recycle(); + return aVar2; + } + matrix = null; + if (matrix != null) { + } + try { + bitmap.compress(e(null), num2.intValue(), outputStream); + if (Z > 1) { + } + a aVar2 = new a(i); + bitmap.recycle(); + decodeStream.recycle(); + return aVar2; + } catch (OutOfMemoryError e3) { + e = e3; + a.f("SimpleImageTranscoder", "Out-Of-Memory during transcode", e); + a aVar = new a(2); + bitmap.recycle(); + decodeStream.recycle(); + return aVar; + } + } catch (OutOfMemoryError e4) { + a.f("SimpleImageTranscoder", "Out-Of-Memory during transcode", e4); + return new a(2); + } + } + + @Override // b.f.j.s.b + public boolean d(c cVar) { + return cVar == b.k || cVar == b.a; + } +} diff --git a/app/src/main/java/b/f/j/t/a.java b/app/src/main/java/b/f/j/t/a.java new file mode 100644 index 0000000000..b42a0b01c6 --- /dev/null +++ b/app/src/main/java/b/f/j/t/a.java @@ -0,0 +1,7 @@ +package b.f.j.t; + +import android.graphics.Bitmap; +/* compiled from: BitmapTransformation */ +public interface a { + void a(Bitmap bitmap); +} diff --git a/app/src/main/java/b/f/k/a.java b/app/src/main/java/b/f/k/a.java new file mode 100644 index 0000000000..b55c8f58ac --- /dev/null +++ b/app/src/main/java/b/f/k/a.java @@ -0,0 +1,109 @@ +package b.f.k; + +import android.annotation.SuppressLint; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.ColorSpace; +import android.os.Build; +import androidx.core.util.Pools; +import java.io.InputStream; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: BitmapUtil */ +public final class a { + public static final Pools.SynchronizedPool a = new Pools.SynchronizedPool<>(12); + + /* compiled from: BitmapUtil */ + /* renamed from: b.f.k.a$a reason: collision with other inner class name */ + public static /* synthetic */ class C0066a { + public static final /* synthetic */ int[] a; + + static { + int[] iArr = new int[Bitmap.Config.values().length]; + a = iArr; + try { + iArr[Bitmap.Config.ARGB_8888.ordinal()] = 1; + } catch (NoSuchFieldError unused) { + } + try { + a[Bitmap.Config.ALPHA_8.ordinal()] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + a[Bitmap.Config.ARGB_4444.ordinal()] = 3; + } catch (NoSuchFieldError unused3) { + } + try { + a[Bitmap.Config.RGB_565.ordinal()] = 4; + } catch (NoSuchFieldError unused4) { + } + try { + a[Bitmap.Config.RGBA_F16.ordinal()] = 5; + } catch (NoSuchFieldError unused5) { + } + try { + a[Bitmap.Config.HARDWARE.ordinal()] = 6; + } catch (NoSuchFieldError unused6) { + } + } + } + + public static b a(InputStream inputStream) { + Objects.requireNonNull(inputStream); + Pools.SynchronizedPool synchronizedPool = a; + ByteBuffer acquire = synchronizedPool.acquire(); + if (acquire == null) { + acquire = ByteBuffer.allocate(16384); + } + BitmapFactory.Options options = new BitmapFactory.Options(); + options.inJustDecodeBounds = true; + try { + options.inTempStorage = acquire.array(); + ColorSpace colorSpace = null; + BitmapFactory.decodeStream(inputStream, null, options); + if (Build.VERSION.SDK_INT >= 26) { + colorSpace = options.outColorSpace; + } + b bVar = new b(options.outWidth, options.outHeight, colorSpace); + synchronizedPool.release(acquire); + return bVar; + } catch (Throwable th) { + a.release(acquire); + throw th; + } + } + + public static int b(Bitmap.Config config) { + switch (C0066a.a[config.ordinal()]) { + case 1: + return 4; + case 2: + return 1; + case 3: + case 4: + return 2; + case 5: + return 8; + case 6: + return 4; + default: + throw new UnsupportedOperationException("The provided Bitmap.Config is not supported"); + } + } + + public static int c(int i, int i2, Bitmap.Config config) { + return b(config) * i * i2; + } + + @SuppressLint({"NewApi"}) + public static int d(Bitmap bitmap) { + if (bitmap == null) { + return 0; + } + try { + return bitmap.getAllocationByteCount(); + } catch (NullPointerException unused) { + return bitmap.getByteCount(); + } + } +} diff --git a/app/src/main/java/b/f/k/b.java b/app/src/main/java/b/f/k/b.java new file mode 100644 index 0000000000..6fde015ac4 --- /dev/null +++ b/app/src/main/java/b/f/k/b.java @@ -0,0 +1,16 @@ +package b.f.k; + +import android.graphics.ColorSpace; +import android.util.Pair; +/* compiled from: ImageMetaData */ +public class b { + public final Pair a; + + /* renamed from: b reason: collision with root package name */ + public final ColorSpace f632b; + + public b(int i, int i2, ColorSpace colorSpace) { + this.a = (i == -1 || i2 == -1) ? null : new Pair<>(Integer.valueOf(i), Integer.valueOf(i2)); + this.f632b = colorSpace; + } +} diff --git a/app/src/main/java/b/f/k/c.java b/app/src/main/java/b/f/k/c.java new file mode 100644 index 0000000000..23d4fad8c8 --- /dev/null +++ b/app/src/main/java/b/f/k/c.java @@ -0,0 +1,4 @@ +package b.f.k; +/* compiled from: TiffUtil */ +public class c { +} diff --git a/app/src/main/java/b/f/l/a/a.java b/app/src/main/java/b/f/l/a/a.java new file mode 100644 index 0000000000..73bb264659 --- /dev/null +++ b/app/src/main/java/b/f/l/a/a.java @@ -0,0 +1,58 @@ +package b.f.l.a; + +import b.f.l.a.b; +import b.f.l.b.c; +/* compiled from: MultiPointerGestureDetector */ +public class a { + public boolean a; + + /* renamed from: b reason: collision with root package name */ + public int f633b; + public final int[] c = new int[2]; + public final float[] d = new float[2]; + public final float[] e = new float[2]; + public final float[] f = new float[2]; + public final float[] g = new float[2]; + public AbstractC0067a h = null; + + /* compiled from: MultiPointerGestureDetector */ + /* renamed from: b.f.l.a.a$a reason: collision with other inner class name */ + public interface AbstractC0067a { + } + + public a() { + a(); + } + + public void a() { + this.a = false; + this.f633b = 0; + for (int i = 0; i < 2; i++) { + this.c[i] = -1; + } + } + + public final void b() { + b bVar; + b.a aVar; + if (!this.a) { + AbstractC0067a aVar2 = this.h; + if (!(aVar2 == null || (aVar = (bVar = (b) aVar2).f634b) == null)) { + aVar.c(bVar); + } + this.a = true; + } + } + + public final void c() { + b.a aVar; + if (this.a) { + this.a = false; + AbstractC0067a aVar2 = this.h; + if (aVar2 != null && (aVar = ((b) aVar2).f634b) != null) { + c cVar = (c) aVar; + b.f.d.e.a.i(c.class, "onGestureEnd"); + } + } + } +} diff --git a/app/src/main/java/b/f/l/a/b.java b/app/src/main/java/b/f/l/a/b.java new file mode 100644 index 0000000000..26b4ffc091 --- /dev/null +++ b/app/src/main/java/b/f/l/a/b.java @@ -0,0 +1,55 @@ +package b.f.l.a; + +import b.f.l.a.a; +/* compiled from: TransformGestureDetector */ +public class b implements a.AbstractC0067a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public a f634b = null; + + /* compiled from: TransformGestureDetector */ + public interface a { + void b(b bVar); + + void c(b bVar); + } + + public b(a aVar) { + this.a = aVar; + aVar.h = this; + } + + public final float a(float[] fArr, int i) { + float f = 0.0f; + for (int i2 = 0; i2 < i; i2++) { + f += fArr[i2]; + } + if (i > 0) { + return f / ((float) i); + } + return 0.0f; + } + + public float b() { + a aVar = this.a; + return a(aVar.d, aVar.f633b); + } + + public float c() { + a aVar = this.a; + return a(aVar.e, aVar.f633b); + } + + public void d() { + a aVar = this.a; + if (aVar.a) { + aVar.c(); + for (int i = 0; i < 2; i++) { + aVar.d[i] = aVar.f[i]; + aVar.e[i] = aVar.g[i]; + } + aVar.b(); + } + } +} diff --git a/app/src/main/java/b/f/l/b/a.java b/app/src/main/java/b/f/l/b/a.java new file mode 100644 index 0000000000..65c035193c --- /dev/null +++ b/app/src/main/java/b/f/l/b/a.java @@ -0,0 +1,96 @@ +package b.f.l.b; + +import android.graphics.Matrix; +import android.graphics.PointF; +import android.graphics.RectF; +import androidx.annotation.Nullable; +import b.f.l.a.b; +import com.discord.models.domain.ModelAuditLogEntry; +/* compiled from: AbstractAnimatedZoomableController */ +public abstract class a extends c { + public boolean m; + public final float[] n = new float[9]; + public final float[] o = new float[9]; + public final float[] p = new float[9]; + public final Matrix q = new Matrix(); + public final Matrix r = new Matrix(); + + public a(b bVar) { + super(bVar); + } + + @Override // b.f.l.b.c, b.f.l.b.e + public boolean a() { + return !this.m && super.a(); + } + + @Override // b.f.l.b.c, b.f.l.a.b.a + public void b(b bVar) { + m(); + boolean z2 = this.m; + int i = b.f.d.e.a.a; + if (!z2) { + super.b(bVar); + } + } + + @Override // b.f.l.b.c, b.f.l.a.b.a + public void c(b bVar) { + b.f.d.e.a.i(m(), "onGestureBegin"); + o(); + super.c(bVar); + } + + @Override // b.f.l.b.c + public void j() { + b.f.d.e.a.i(m(), ModelAuditLogEntry.CHANGE_KEY_PERMISSIONS_RESET); + o(); + this.r.reset(); + this.q.reset(); + super.j(); + } + + public abstract Class m(); + + public abstract void n(Matrix matrix, long j, @Nullable Runnable runnable); + + public abstract void o(); + + public void p(float f, PointF pointF, PointF pointF2, int i, long j, @Nullable Runnable runnable) { + m(); + int i2 = b.f.d.e.a.a; + Matrix matrix = this.q; + float[] fArr = this.j; + fArr[0] = pointF.x; + fArr[1] = pointF.y; + for (int i3 = 0; i3 < 1; i3++) { + int i4 = i3 * 2; + int i5 = i4 + 0; + float width = this.e.width() * fArr[i5]; + RectF rectF = this.e; + fArr[i5] = width + rectF.left; + int i6 = i4 + 1; + fArr[i6] = (rectF.height() * fArr[i6]) + this.e.top; + } + float f2 = pointF2.x - fArr[0]; + float f3 = pointF2.y - fArr[1]; + matrix.setScale(f, f, fArr[0], fArr[1]); + f(matrix, fArr[0], fArr[1], i); + matrix.postTranslate(f2, f3); + g(matrix, i); + Matrix matrix2 = this.q; + m(); + int i7 = b.f.d.e.a.a; + if (j <= 0) { + b.f.d.e.a.i(m(), "setTransformImmediate"); + o(); + this.r.set(matrix2); + b.f.d.e.a.i(c.class, "setTransform"); + this.h.set(matrix2); + i(); + this.a.d(); + return; + } + n(matrix2, j, null); + } +} diff --git a/app/src/main/java/b/f/l/b/b.java b/app/src/main/java/b/f/l/b/b.java new file mode 100644 index 0000000000..397a7e37a7 --- /dev/null +++ b/app/src/main/java/b/f/l/b/b.java @@ -0,0 +1,115 @@ +package b.f.l.b; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +import android.animation.ValueAnimator; +import android.annotation.SuppressLint; +import android.graphics.Matrix; +import android.view.animation.DecelerateInterpolator; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import java.util.Objects; +/* compiled from: AnimatedZoomableController */ +public class b extends a { + + /* renamed from: s reason: collision with root package name */ + public final ValueAnimator f635s; + + /* compiled from: AnimatedZoomableController */ + public class a implements ValueAnimator.AnimatorUpdateListener { + public a() { + } + + @Override // android.animation.ValueAnimator.AnimatorUpdateListener + public void onAnimationUpdate(ValueAnimator valueAnimator) { + b bVar = b.this; + Matrix matrix = bVar.r; + float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue(); + for (int i = 0; i < 9; i++) { + bVar.p[i] = (bVar.o[i] * floatValue) + ((1.0f - floatValue) * bVar.n[i]); + } + matrix.setValues(bVar.p); + b bVar2 = b.this; + Matrix matrix2 = bVar2.r; + b.f.d.e.a.i(c.class, "setTransform"); + bVar2.h.set(matrix2); + bVar2.i(); + } + } + + /* compiled from: AnimatedZoomableController */ + /* renamed from: b.f.l.b.b$b reason: collision with other inner class name */ + public class C0068b extends AnimatorListenerAdapter { + public final /* synthetic */ Runnable a; + + public C0068b(Runnable runnable) { + this.a = runnable; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationCancel(Animator animator) { + Objects.requireNonNull(b.this); + b.f.d.e.a.i(b.class, "setTransformAnimated: animation cancelled"); + Runnable runnable = this.a; + if (runnable != null) { + runnable.run(); + } + b bVar = b.this; + bVar.m = false; + bVar.a.d(); + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + Objects.requireNonNull(b.this); + b.f.d.e.a.i(b.class, "setTransformAnimated: animation finished"); + Runnable runnable = this.a; + if (runnable != null) { + runnable.run(); + } + b bVar = b.this; + bVar.m = false; + bVar.a.d(); + } + } + + @SuppressLint({"NewApi"}) + public b(b.f.l.a.b bVar) { + super(bVar); + ValueAnimator ofFloat = ValueAnimator.ofFloat(0.0f, 1.0f); + this.f635s = ofFloat; + ofFloat.setInterpolator(new DecelerateInterpolator()); + } + + @Override // b.f.l.b.a + public Class m() { + return b.class; + } + + @Override // b.f.l.b.a + @SuppressLint({"NewApi"}) + public void n(Matrix matrix, long j, @Nullable Runnable runnable) { + int i = b.f.d.e.a.a; + o(); + d.i(Boolean.valueOf(j > 0)); + d.B(!this.m); + this.m = true; + this.f635s.setDuration(j); + this.h.getValues(this.n); + matrix.getValues(this.o); + this.f635s.addUpdateListener(new a()); + this.f635s.addListener(new C0068b(runnable)); + this.f635s.start(); + } + + @Override // b.f.l.b.a + @SuppressLint({"NewApi"}) + public void o() { + if (this.m) { + b.f.d.e.a.i(b.class, "stopAnimation"); + this.f635s.cancel(); + this.f635s.removeAllUpdateListeners(); + this.f635s.removeAllListeners(); + } + } +} diff --git a/app/src/main/java/b/f/l/b/c.java b/app/src/main/java/b/f/l/b/c.java new file mode 100644 index 0000000000..133b380c6a --- /dev/null +++ b/app/src/main/java/b/f/l/b/c.java @@ -0,0 +1,279 @@ +package b.f.l.b; + +import android.graphics.Matrix; +import android.graphics.RectF; +import android.view.MotionEvent; +import b.f.d.e.a; +import b.f.l.a.a; +import b.f.l.a.b; +import b.f.l.b.e; +import com.discord.models.domain.ModelAuditLogEntry; +import com.facebook.samples.zoomable.ZoomableDraweeView; +import java.util.Objects; +/* compiled from: DefaultZoomableController */ +public class c implements e, b.a { + public b a; + + /* renamed from: b reason: collision with root package name */ + public e.a f637b = null; + public boolean c = false; + public final RectF d = new RectF(); + public final RectF e = new RectF(); + public final RectF f = new RectF(); + public final Matrix g = new Matrix(); + public final Matrix h = new Matrix(); + public final Matrix i = new Matrix(); + public final float[] j = new float[9]; + public final RectF k = new RectF(); + public boolean l; + + static { + new RectF(0.0f, 0.0f, 1.0f, 1.0f); + } + + public c(b bVar) { + this.a = bVar; + bVar.f634b = this; + } + + public static boolean l(int i, int i2) { + return (i & i2) != 0; + } + + @Override // b.f.l.b.e + public boolean a() { + this.h.getValues(this.j); + float[] fArr = this.j; + fArr[0] = fArr[0] - 1.0f; + fArr[4] = fArr[4] - 1.0f; + fArr[8] = fArr[8] - 1.0f; + for (int i = 0; i < 9; i++) { + if (Math.abs(this.j[i]) > 0.001f) { + return false; + } + } + return true; + } + + @Override // b.f.l.a.b.a + public void b(b bVar) { + float f; + a.i(c.class, "onGestureUpdate"); + Matrix matrix = this.h; + b bVar2 = this.a; + matrix.set(this.g); + b.f.l.a.a aVar = bVar2.a; + if (aVar.f633b < 2) { + f = 1.0f; + } else { + float[] fArr = aVar.d; + float f2 = fArr[1] - fArr[0]; + float[] fArr2 = aVar.e; + float f3 = fArr2[1] - fArr2[0]; + float[] fArr3 = aVar.f; + float f4 = fArr3[1] - fArr3[0]; + float[] fArr4 = aVar.g; + float f5 = fArr4[1] - fArr4[0]; + f = ((float) Math.hypot((double) f4, (double) f5)) / ((float) Math.hypot((double) f2, (double) f3)); + } + matrix.postScale(f, f, bVar2.b(), bVar2.c()); + b.f.l.a.a aVar2 = bVar2.a; + float a = bVar2.a(aVar2.f, aVar2.f633b); + b.f.l.a.a aVar3 = bVar2.a; + float a2 = a - bVar2.a(aVar3.d, aVar3.f633b); + b.f.l.a.a aVar4 = bVar2.a; + float a3 = bVar2.a(aVar4.g, aVar4.f633b); + b.f.l.a.a aVar5 = bVar2.a; + matrix.postTranslate(a2, a3 - bVar2.a(aVar5.e, aVar5.f633b)); + boolean g = g(matrix, 7) | f(matrix, bVar2.b(), bVar2.c(), 7) | false; + i(); + if (g) { + this.a.d(); + } + this.l = g; + } + + @Override // b.f.l.a.b.a + public void c(b bVar) { + a.i(c.class, "onGestureBegin"); + this.g.set(this.h); + RectF rectF = this.f; + float f = rectF.left; + RectF rectF2 = this.d; + this.l = !(f < rectF2.left - 0.001f && rectF.top < rectF2.top - 0.001f && rectF.right > rectF2.right + 0.001f && rectF.bottom > rectF2.bottom + 0.001f); + } + + public final float d(float f, float f2, float f3, float f4, float f5) { + float f6 = f2 - f; + float f7 = f4 - f3; + if (f6 < Math.min(f5 - f3, f4 - f5) * 2.0f) { + return f5 - ((f2 + f) / 2.0f); + } + if (f6 < f7) { + return f5 < (f3 + f4) / 2.0f ? f3 - f : f4 - f2; + } + if (f > f3) { + return f3 - f; + } + if (f2 < f4) { + return f4 - f2; + } + return 0.0f; + } + + public float e() { + this.h.getValues(this.j); + return this.j[0]; + } + + public final boolean f(Matrix matrix, float f, float f2, int i) { + if (!l(i, 4)) { + return false; + } + matrix.getValues(this.j); + float f3 = this.j[0]; + float min = Math.min(Math.max(1.0f, f3), 2.0f); + if (min == f3) { + return false; + } + float f4 = min / f3; + matrix.postScale(f4, f4, f, f2); + return true; + } + + public final boolean g(Matrix matrix, int i) { + float f; + float f2; + if (!l(i, 3)) { + return false; + } + RectF rectF = this.k; + rectF.set(this.e); + matrix.mapRect(rectF); + if (l(i, 1)) { + float f3 = rectF.left; + float f4 = rectF.right; + RectF rectF2 = this.d; + f = d(f3, f4, rectF2.left, rectF2.right, this.e.centerX()); + } else { + f = 0.0f; + } + if (l(i, 2)) { + float f5 = rectF.top; + float f6 = rectF.bottom; + RectF rectF3 = this.d; + f2 = d(f5, f6, rectF3.top, rectF3.bottom, this.e.centerY()); + } else { + f2 = 0.0f; + } + if (f == 0.0f && f2 == 0.0f) { + return false; + } + matrix.postTranslate(f, f2); + return true; + } + + /* JADX WARNING: Code restructure failed: missing block: B:10:0x0025, code lost: + if (r2 != 6) goto L_0x00ca; + */ + public boolean h(MotionEvent motionEvent) { + a.AbstractC0067a aVar; + b bVar; + b.a aVar2; + motionEvent.getAction(); + int i = b.f.d.e.a.a; + int i2 = 0; + if (!this.c) { + return false; + } + b.f.l.a.a aVar3 = this.a.a; + Objects.requireNonNull(aVar3); + int actionMasked = motionEvent.getActionMasked(); + if (!(actionMasked == 0 || actionMasked == 1)) { + if (actionMasked == 2) { + while (i2 < 2) { + int findPointerIndex = motionEvent.findPointerIndex(aVar3.c[i2]); + if (findPointerIndex != -1) { + aVar3.f[i2] = motionEvent.getX(findPointerIndex); + aVar3.g[i2] = motionEvent.getY(findPointerIndex); + } + i2++; + } + if (!aVar3.a && aVar3.f633b > 0) { + aVar3.b(); + } + if (!(!aVar3.a || (aVar = aVar3.h) == null || (aVar2 = (bVar = (b) aVar).f634b) == null)) { + aVar2.b(bVar); + } + } else if (actionMasked == 3) { + aVar3.c(); + aVar3.a(); + } else if (actionMasked != 5) { + } + return true; + } + motionEvent.getPointerCount(); + motionEvent.getActionMasked(); + aVar3.c(); + aVar3.f633b = 0; + while (i2 < 2) { + int pointerCount = motionEvent.getPointerCount(); + int actionMasked2 = motionEvent.getActionMasked(); + int i3 = ((actionMasked2 == 1 || actionMasked2 == 6) && i2 >= motionEvent.getActionIndex()) ? i2 + 1 : i2; + if (i3 >= pointerCount) { + i3 = -1; + } + if (i3 == -1) { + aVar3.c[i2] = -1; + } else { + aVar3.c[i2] = motionEvent.getPointerId(i3); + float[] fArr = aVar3.f; + float[] fArr2 = aVar3.d; + float x2 = motionEvent.getX(i3); + fArr2[i2] = x2; + fArr[i2] = x2; + float[] fArr3 = aVar3.g; + float[] fArr4 = aVar3.e; + float y2 = motionEvent.getY(i3); + fArr4[i2] = y2; + fArr3[i2] = y2; + aVar3.f633b++; + } + i2++; + } + if (aVar3.f633b > 0) { + aVar3.b(); + } + return true; + } + + public final void i() { + this.h.mapRect(this.f, this.e); + e.a aVar = this.f637b; + if (aVar != null && this.c) { + ZoomableDraweeView zoomableDraweeView = ZoomableDraweeView.this; + zoomableDraweeView.getLogTag(); + zoomableDraweeView.hashCode(); + int i = b.f.d.e.a.a; + if (zoomableDraweeView.n != null && ((c) zoomableDraweeView.o).e() > 1.1f) { + zoomableDraweeView.a(zoomableDraweeView.n, null); + } + zoomableDraweeView.invalidate(); + } + } + + public void j() { + b.f.d.e.a.i(c.class, ModelAuditLogEntry.CHANGE_KEY_PERMISSIONS_RESET); + this.a.a.a(); + this.g.reset(); + this.h.reset(); + i(); + } + + public void k(boolean z2) { + this.c = z2; + if (!z2) { + j(); + } + } +} diff --git a/app/src/main/java/b/f/l/b/d.java b/app/src/main/java/b/f/l/b/d.java new file mode 100644 index 0000000000..403ccbd2c4 --- /dev/null +++ b/app/src/main/java/b/f/l/b/d.java @@ -0,0 +1,53 @@ +package b.f.l.b; + +import android.view.GestureDetector; +import android.view.MotionEvent; +/* compiled from: GestureListenerWrapper */ +public class d extends GestureDetector.SimpleOnGestureListener { + public GestureDetector.SimpleOnGestureListener j = new GestureDetector.SimpleOnGestureListener(); + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnDoubleTapListener + public boolean onDoubleTap(MotionEvent motionEvent) { + return this.j.onDoubleTap(motionEvent); + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnDoubleTapListener + public boolean onDoubleTapEvent(MotionEvent motionEvent) { + return this.j.onDoubleTapEvent(motionEvent); + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onDown(MotionEvent motionEvent) { + return this.j.onDown(motionEvent); + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) { + return this.j.onFling(motionEvent, motionEvent2, f, f2); + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public void onLongPress(MotionEvent motionEvent) { + this.j.onLongPress(motionEvent); + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) { + return this.j.onScroll(motionEvent, motionEvent2, f, f2); + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public void onShowPress(MotionEvent motionEvent) { + this.j.onShowPress(motionEvent); + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnDoubleTapListener + public boolean onSingleTapConfirmed(MotionEvent motionEvent) { + return this.j.onSingleTapConfirmed(motionEvent); + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onSingleTapUp(MotionEvent motionEvent) { + return this.j.onSingleTapUp(motionEvent); + } +} diff --git a/app/src/main/java/b/f/l/b/e.java b/app/src/main/java/b/f/l/b/e.java new file mode 100644 index 0000000000..fd2f09f370 --- /dev/null +++ b/app/src/main/java/b/f/l/b/e.java @@ -0,0 +1,10 @@ +package b.f.l.b; +/* compiled from: ZoomableController */ +public interface e { + + /* compiled from: ZoomableController */ + public interface a { + } + + boolean a(); +} diff --git a/app/src/main/java/b/f/m/a.java b/app/src/main/java/b/f/m/a.java new file mode 100644 index 0000000000..bb8a4524e3 --- /dev/null +++ b/app/src/main/java/b/f/m/a.java @@ -0,0 +1,89 @@ +package b.f.m; + +import android.content.Context; +import android.content.pm.PackageManager; +import android.os.Parcel; +import b.f.m.f; +import b.f.m.m; +import java.io.File; +import java.io.IOException; +/* compiled from: ApkSoSource */ +public class a extends f { + public final int h; + + /* compiled from: ApkSoSource */ + /* renamed from: b.f.m.a$a reason: collision with other inner class name */ + public class C0069a extends f.c { + public File n; + public final int o; + + public C0069a(f fVar) throws IOException { + super(fVar); + this.n = new File(a.this.c.getApplicationInfo().nativeLibraryDir); + this.o = a.this.h; + } + } + + public a(Context context, File file, String str, int i) { + super(context, str, file, "^lib/([^/]+)/([^/]+\\.so)$"); + this.h = i; + } + + /* JADX WARNING: Removed duplicated region for block: B:11:0x003a */ + /* JADX WARNING: Removed duplicated region for block: B:13:0x0045 */ + @Override // b.f.m.m + public byte[] f() throws IOException { + int i; + File canonicalFile = this.f.getCanonicalFile(); + Parcel obtain = Parcel.obtain(); + try { + obtain.writeByte((byte) 2); + obtain.writeString(canonicalFile.getPath()); + obtain.writeLong(canonicalFile.lastModified()); + Context context = this.c; + PackageManager packageManager = context.getPackageManager(); + if (packageManager != null) { + try { + i = packageManager.getPackageInfo(context.getPackageName(), 0).versionCode; + } catch (PackageManager.NameNotFoundException | RuntimeException unused) { + } + obtain.writeInt(i); + if ((this.h & 1) != 0) { + obtain.writeByte((byte) 0); + return obtain.marshall(); + } + String str = this.c.getApplicationInfo().nativeLibraryDir; + if (str == null) { + obtain.writeByte((byte) 1); + byte[] marshall = obtain.marshall(); + obtain.recycle(); + return marshall; + } + File canonicalFile2 = new File(str).getCanonicalFile(); + if (!canonicalFile2.exists()) { + obtain.writeByte((byte) 1); + byte[] marshall2 = obtain.marshall(); + obtain.recycle(); + return marshall2; + } + obtain.writeByte((byte) 2); + obtain.writeString(canonicalFile2.getPath()); + obtain.writeLong(canonicalFile2.lastModified()); + byte[] marshall3 = obtain.marshall(); + obtain.recycle(); + return marshall3; + } + i = 0; + obtain.writeInt(i); + if ((this.h & 1) != 0) { + } + } finally { + obtain.recycle(); + } + } + + @Override // b.f.m.m + public m.f h() throws IOException { + return new C0069a(this); + } +} diff --git a/app/src/main/java/b/f/m/b.java b/app/src/main/java/b/f/m/b.java new file mode 100644 index 0000000000..a8c08bcc56 --- /dev/null +++ b/app/src/main/java/b/f/m/b.java @@ -0,0 +1,70 @@ +package b.f.m; + +import android.content.Context; +import android.content.pm.PackageManager; +import android.os.StrictMode; +import android.util.Log; +import java.io.File; +import java.io.IOException; +/* compiled from: ApplicationSoSource */ +public class b extends l { + public Context a; + + /* renamed from: b reason: collision with root package name */ + public int f638b; + public c c; + + public b(Context context, int i) { + Context applicationContext = context.getApplicationContext(); + this.a = applicationContext; + if (applicationContext == null) { + Log.w("SoLoader", "context.getApplicationContext returned null, holding reference to original context."); + this.a = context; + } + this.f638b = i; + this.c = new c(new File(this.a.getApplicationInfo().nativeLibraryDir), i); + } + + public static File d(Context context) { + return new File(context.getApplicationInfo().nativeLibraryDir); + } + + @Override // b.f.m.l + public int a(String str, int i, StrictMode.ThreadPolicy threadPolicy) throws IOException { + return this.c.a(str, i, threadPolicy); + } + + @Override // b.f.m.l + public void b(int i) throws IOException { + this.c.b(i); + } + + public boolean c() throws IOException { + File file = this.c.a; + Context e = e(); + File d = d(e); + if (file.equals(d)) { + return false; + } + Log.d("SoLoader", "Native library directory updated from " + file + " to " + d); + int i = this.f638b | 1; + this.f638b = i; + this.c = new c(d, i); + this.a = e; + return true; + } + + public Context e() { + try { + Context context = this.a; + return context.createPackageContext(context.getPackageName(), 0); + } catch (PackageManager.NameNotFoundException e) { + throw new RuntimeException(e); + } + } + + @Override // b.f.m.l + public String toString() { + return this.c.toString(); + } +} diff --git a/app/src/main/java/b/f/m/c.java b/app/src/main/java/b/f/m/c.java new file mode 100644 index 0000000000..f8a72527ab --- /dev/null +++ b/app/src/main/java/b/f/m/c.java @@ -0,0 +1,107 @@ +package b.f.m; + +import android.os.StrictMode; +import android.os.Trace; +import android.util.Log; +import b.c.a.a0.d; +import b.d.b.a.a; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import com.facebook.soloader.Api18TraceUtils; +import com.facebook.soloader.SoLoader; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.util.Arrays; +/* compiled from: DirectorySoSource */ +public class c extends l { + public final File a; + + /* renamed from: b reason: collision with root package name */ + public final int f639b; + + public c(File file, int i) { + this.a = file; + this.f639b = i; + } + + @Override // b.f.m.l + public int a(String str, int i, StrictMode.ThreadPolicy threadPolicy) throws IOException { + return c(str, i, this.a, threadPolicy); + } + + public int c(String str, int i, File file, StrictMode.ThreadPolicy threadPolicy) throws IOException { + File file2 = new File(file, str); + if (!file2.exists()) { + StringBuilder V = a.V(str, " not found on "); + V.append(file.getCanonicalPath()); + Log.d("SoLoader", V.toString()); + return 0; + } + StringBuilder V2 = a.V(str, " found on "); + V2.append(file.getCanonicalPath()); + Log.d("SoLoader", V2.toString()); + if ((i & 1) == 0 || (this.f639b & 2) == 0) { + if ((this.f639b & 1) != 0) { + boolean z2 = SoLoader.a; + if (z2) { + Api18TraceUtils.a("SoLoader.getElfDependencies[", file2.getName(), "]"); + } + try { + FileInputStream fileInputStream = new FileInputStream(file2); + try { + String[] i02 = d.i0(fileInputStream.getChannel()); + if (z2) { + Trace.endSection(); + } + StringBuilder R = a.R("Loading lib dependencies: "); + R.append(Arrays.toString(i02)); + Log.d("SoLoader", R.toString()); + for (String str2 : i02) { + if (!str2.startsWith(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN)) { + SoLoader.d(str2, null, null, i | 1, threadPolicy); + } + } + } finally { + fileInputStream.close(); + } + } catch (Throwable th) { + if (SoLoader.a) { + Trace.endSection(); + } + throw th; + } + } else { + Log.d("SoLoader", "Not resolving dependencies for " + str); + } + try { + ((SoLoader.a) SoLoader.f2864b).b(file2.getAbsolutePath(), i); + return 1; + } catch (UnsatisfiedLinkError e) { + if (e.getMessage().contains("bad ELF magic")) { + Log.d("SoLoader", "Corrupted lib file detected"); + return 3; + } + throw e; + } + } else { + Log.d("SoLoader", str + " loaded implicitly"); + return 2; + } + } + + @Override // b.f.m.l + public String toString() { + String str; + try { + str = String.valueOf(this.a.getCanonicalPath()); + } catch (IOException unused) { + str = this.a.getName(); + } + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getName()); + sb.append("[root = "); + sb.append(str); + sb.append(" flags = "); + return a.z(sb, this.f639b, ']'); + } +} diff --git a/app/src/main/java/b/f/m/d.java b/app/src/main/java/b/f/m/d.java new file mode 100644 index 0000000000..2005738fc4 --- /dev/null +++ b/app/src/main/java/b/f/m/d.java @@ -0,0 +1,11 @@ +package b.f.m; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: DoNotOptimize */ +@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR}) +@Retention(RetentionPolicy.CLASS) +public @interface d { +} diff --git a/app/src/main/java/b/f/m/e.java b/app/src/main/java/b/f/m/e.java new file mode 100644 index 0000000000..9a610866d7 --- /dev/null +++ b/app/src/main/java/b/f/m/e.java @@ -0,0 +1,166 @@ +package b.f.m; + +import android.content.Context; +import b.c.a.a0.d; +import b.f.m.m; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileReader; +import java.io.IOException; +import java.util.ArrayList; +import java.util.LinkedHashSet; +/* compiled from: ExoSoSource */ +public final class e extends m { + + /* compiled from: ExoSoSource */ + public final class b extends m.f { + public final c[] j; + + /* compiled from: ExoSoSource */ + public final class a extends m.e { + public int j; + + public a(a aVar) { + } + + @Override // b.f.m.m.e + public boolean a() { + return this.j < b.this.j.length; + } + + @Override // b.f.m.m.e + public m.d b() throws IOException { + c[] cVarArr = b.this.j; + int i = this.j; + this.j = i + 1; + c cVar = cVarArr[i]; + FileInputStream fileInputStream = new FileInputStream(cVar.l); + try { + return new m.d(cVar, fileInputStream); + } catch (Throwable th) { + fileInputStream.close(); + throw th; + } + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:35:0x00e6, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:38:?, code lost: + r7.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:39:0x00ec, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:40:0x00ed, code lost: + r0.addSuppressed(r0); + */ + /* JADX WARNING: Code restructure failed: missing block: B:41:0x00f1, code lost: + throw r0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:46:0x00f5, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:49:?, code lost: + r9.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:50:0x00fb, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:51:0x00fc, code lost: + r0.addSuppressed(r0); + */ + /* JADX WARNING: Code restructure failed: missing block: B:52:0x0100, code lost: + throw r0; + */ + public b(e eVar, m mVar) throws IOException { + boolean z2; + Context context = eVar.c; + StringBuilder R = b.d.b.a.a.R("/data/local/tmp/exopackage/"); + R.append(context.getPackageName()); + R.append("/native-libs/"); + File file = new File(R.toString()); + ArrayList arrayList = new ArrayList(); + LinkedHashSet linkedHashSet = new LinkedHashSet(); + String[] B0 = d.B0(); + for (String str : B0) { + File file2 = new File(file, str); + if (file2.isDirectory()) { + linkedHashSet.add(str); + File file3 = new File(file2, "metadata.txt"); + if (file3.isFile()) { + FileReader fileReader = new FileReader(file3); + BufferedReader bufferedReader = new BufferedReader(fileReader); + while (true) { + String readLine = bufferedReader.readLine(); + if (readLine == null) { + bufferedReader.close(); + fileReader.close(); + break; + } else if (readLine.length() != 0) { + int indexOf = readLine.indexOf(32); + if (indexOf != -1) { + String str2 = readLine.substring(0, indexOf) + ".so"; + int size = arrayList.size(); + int i = 0; + while (true) { + if (i >= size) { + z2 = false; + break; + } else if (((c) arrayList.get(i)).j.equals(str2)) { + z2 = true; + break; + } else { + i++; + } + } + if (!z2) { + String substring = readLine.substring(indexOf + 1); + arrayList.add(new c(str2, substring, new File(file2, substring))); + } + } else { + throw new RuntimeException("illegal line in exopackage metadata: [" + readLine + "]"); + } + } + } + } else { + continue; + } + } + } + String[] strArr = (String[]) linkedHashSet.toArray(new String[linkedHashSet.size()]); + this.j = (c[]) arrayList.toArray(new c[arrayList.size()]); + } + + @Override // b.f.m.m.f + public m.c a() throws IOException { + return new m.c(this.j); + } + + @Override // b.f.m.m.f + public m.e b() throws IOException { + return new a(null); + } + } + + /* compiled from: ExoSoSource */ + public static final class c extends m.b { + public final File l; + + public c(String str, String str2, File file) { + super(str, str2); + this.l = file; + } + } + + public e(Context context, String str) { + super(context, str); + } + + @Override // b.f.m.m + public m.f h() throws IOException { + return new b(this, this); + } +} diff --git a/app/src/main/java/b/f/m/f.java b/app/src/main/java/b/f/m/f.java new file mode 100644 index 0000000000..952579e69e --- /dev/null +++ b/app/src/main/java/b/f/m/f.java @@ -0,0 +1,206 @@ +package b.f.m; + +import android.content.Context; +import android.util.Log; +import b.c.a.a0.d; +import b.f.m.a; +import b.f.m.m; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.LinkedHashSet; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; +/* compiled from: ExtractFromZipSoSource */ +public class f extends m { + public final File f; + public final String g; + + /* compiled from: ExtractFromZipSoSource */ + public static final class b extends m.b implements Comparable { + public final ZipEntry l; + public final int m; + + public b(String str, ZipEntry zipEntry, int i) { + super(str, String.format("pseudo-zip-hash-1-%s-%s-%s-%s", zipEntry.getName(), Long.valueOf(zipEntry.getSize()), Long.valueOf(zipEntry.getCompressedSize()), Long.valueOf(zipEntry.getCrc()))); + this.l = zipEntry; + this.m = i; + } + + @Override // java.lang.Comparable + public int compareTo(Object obj) { + return this.j.compareTo(((b) obj).j); + } + } + + /* compiled from: ExtractFromZipSoSource */ + public class c extends m.f { + public b[] j; + public final ZipFile k; + public final m l; + + /* compiled from: ExtractFromZipSoSource */ + public final class a extends m.e { + public int j; + + public a(a aVar) { + } + + @Override // b.f.m.m.e + public boolean a() { + c.this.c(); + return this.j < c.this.j.length; + } + + @Override // b.f.m.m.e + public m.d b() throws IOException { + c.this.c(); + c cVar = c.this; + b[] bVarArr = cVar.j; + int i = this.j; + this.j = i + 1; + b bVar = bVarArr[i]; + InputStream inputStream = cVar.k.getInputStream(bVar.l); + try { + return new m.d(bVar, inputStream); + } catch (Throwable th) { + if (inputStream != null) { + inputStream.close(); + } + throw th; + } + } + } + + public c(m mVar) throws IOException { + this.k = new ZipFile(f.this.f); + this.l = mVar; + } + + @Override // b.f.m.m.f + public final m.c a() throws IOException { + return new m.c(c()); + } + + @Override // b.f.m.m.f + public final m.e b() throws IOException { + return new a(null); + } + + /* JADX WARNING: Removed duplicated region for block: B:41:0x0120 */ + /* JADX WARNING: Removed duplicated region for block: B:42:0x0123 */ + public final b[] c() { + int i; + boolean z2; + String str; + if (this.j == null) { + LinkedHashSet linkedHashSet = new LinkedHashSet(); + HashMap hashMap = new HashMap(); + Pattern compile = Pattern.compile(f.this.g); + String[] B0 = d.B0(); + Enumeration entries = this.k.entries(); + while (true) { + i = 0; + if (!entries.hasMoreElements()) { + break; + } + ZipEntry zipEntry = (ZipEntry) entries.nextElement(); + Matcher matcher = compile.matcher(zipEntry.getName()); + if (matcher.matches()) { + String group = matcher.group(1); + String group2 = matcher.group(2); + while (true) { + if (i >= B0.length) { + i = -1; + break; + } + if (B0[i] != null && group.equals(B0[i])) { + break; + } + i++; + } + if (i >= 0) { + linkedHashSet.add(group); + b bVar = (b) hashMap.get(group2); + if (bVar == null || i < bVar.m) { + hashMap.put(group2, new b(group2, zipEntry, i)); + } + } + } + } + m mVar = this.l; + String[] strArr = (String[]) linkedHashSet.toArray(new String[linkedHashSet.size()]); + Objects.requireNonNull(mVar); + b[] bVarArr = (b[]) hashMap.values().toArray(new b[hashMap.size()]); + Arrays.sort(bVarArr); + int i2 = 0; + for (int i3 = 0; i3 < bVarArr.length; i3++) { + b bVar2 = bVarArr[i3]; + ZipEntry zipEntry2 = bVar2.l; + String str2 = bVar2.j; + a.C0069a aVar = (a.C0069a) this; + String name = zipEntry2.getName(); + if (str2.equals(a.this.d)) { + a.this.d = null; + str = String.format("allowing consideration of corrupted lib %s", str2); + } else if ((aVar.o & 1) == 0) { + str = b.d.b.a.a.w("allowing consideration of ", name, ": self-extraction preferred"); + } else { + File file = new File(aVar.n, str2); + if (!file.isFile()) { + str = String.format("allowing considering of %s: %s not in system lib dir", name, str2); + } else { + long length = file.length(); + long size = zipEntry2.getSize(); + if (length != size) { + str = String.format("allowing consideration of %s: sysdir file length is %s, but the file is %s bytes long in the APK", file, Long.valueOf(length), Long.valueOf(size)); + } else { + str = b.d.b.a.a.w("not allowing consideration of ", name, ": deferring to libdir"); + z2 = false; + Log.d("ApkSoSource", str); + if (!z2) { + i2++; + } else { + bVarArr[i3] = null; + } + } + } + } + z2 = true; + Log.d("ApkSoSource", str); + if (!z2) { + } + } + b[] bVarArr2 = new b[i2]; + int i4 = 0; + while (i < bVarArr.length) { + b bVar3 = bVarArr[i]; + if (bVar3 != null) { + bVarArr2[i4] = bVar3; + i4++; + } + i++; + } + this.j = bVarArr2; + } + return this.j; + } + + @Override // b.f.m.m.f, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + this.k.close(); + } + } + + public f(Context context, String str, File file, String str2) { + super(context, str); + this.f = file; + this.g = str2; + } +} diff --git a/app/src/main/java/b/f/m/g.java b/app/src/main/java/b/f/m/g.java new file mode 100644 index 0000000000..6061959ba4 --- /dev/null +++ b/app/src/main/java/b/f/m/g.java @@ -0,0 +1,39 @@ +package b.f.m; + +import java.io.Closeable; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.nio.channels.FileLock; +/* compiled from: FileLocker */ +public final class g implements Closeable { + public final FileOutputStream j; + public final FileLock k; + + public g(File file) throws IOException { + FileOutputStream fileOutputStream = new FileOutputStream(file); + this.j = fileOutputStream; + try { + FileLock lock = fileOutputStream.getChannel().lock(); + if (lock == null) { + fileOutputStream.close(); + } + this.k = lock; + } catch (Throwable th) { + this.j.close(); + throw th; + } + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + try { + FileLock fileLock = this.k; + if (fileLock != null) { + fileLock.release(); + } + } finally { + this.j.close(); + } + } +} diff --git a/app/src/main/java/b/f/m/h.java b/app/src/main/java/b/f/m/h.java new file mode 100644 index 0000000000..efaef8311c --- /dev/null +++ b/app/src/main/java/b/f/m/h.java @@ -0,0 +1,7 @@ +package b.f.m; +/* compiled from: MinElf */ +public class h extends RuntimeException { + public h(String str) { + super(str); + } +} diff --git a/app/src/main/java/b/f/m/i.java b/app/src/main/java/b/f/m/i.java new file mode 100644 index 0000000000..380e34ecdc --- /dev/null +++ b/app/src/main/java/b/f/m/i.java @@ -0,0 +1,21 @@ +package b.f.m; +/* compiled from: MinElf */ +public enum i { + NOT_SO("not_so"), + X86("x86"), + ARM("armeabi-v7a"), + X86_64("x86_64"), + AARCH64("arm64-v8a"), + OTHERS("others"); + + private final String value; + + public i(String str) { + this.value = str; + } + + @Override // java.lang.Enum, java.lang.Object + public String toString() { + return this.value; + } +} diff --git a/app/src/main/java/b/f/m/j.java b/app/src/main/java/b/f/m/j.java new file mode 100644 index 0000000000..fd5dfdff0e --- /dev/null +++ b/app/src/main/java/b/f/m/j.java @@ -0,0 +1,78 @@ +package b.f.m; + +import android.util.Log; +import b.f.m.n.b; +import com.facebook.soloader.SoLoader; +import java.io.IOException; +import java.util.concurrent.locks.ReentrantReadWriteLock; +/* compiled from: NativeLoaderToSoLoaderDelegate */ +public class j implements b { + @Override // b.f.m.n.b + public boolean a(String str, int i) { + boolean z2; + boolean contains; + int i2 = ((i & 1) != 0 ? 16 : 0) | 0; + ReentrantReadWriteLock reentrantReadWriteLock = SoLoader.c; + reentrantReadWriteLock.readLock().lock(); + try { + if (SoLoader.d == null) { + if ("http://www.android.com/".equals(System.getProperty("java.vendor.url"))) { + reentrantReadWriteLock.readLock().lock(); + try { + boolean z3 = SoLoader.d != null; + reentrantReadWriteLock.readLock().unlock(); + if (!z3) { + throw new RuntimeException("SoLoader.init() not yet called"); + } + } catch (Throwable th) { + throw th; + } + } else { + synchronized (SoLoader.class) { + contains = true ^ SoLoader.h.contains(str); + if (contains) { + System.loadLibrary(str); + } + } + reentrantReadWriteLock.readLock().unlock(); + return contains; + } + } + reentrantReadWriteLock.readLock().unlock(); + boolean z4 = SoLoader.l; + String mapLibraryName = System.mapLibraryName(str); + boolean z5 = false; + do { + try { + z5 = SoLoader.d(mapLibraryName, str, null, i2, null); + z2 = false; + continue; + } catch (UnsatisfiedLinkError e) { + int i3 = SoLoader.e; + SoLoader.c.writeLock().lock(); + try { + if (SoLoader.g == null || !SoLoader.g.c()) { + z2 = false; + } else { + Log.w("SoLoader", "sApplicationSoSource updated during load: " + mapLibraryName + ", attempting load again."); + SoLoader.e = SoLoader.e + 1; + z2 = true; + } + SoLoader.c.writeLock().unlock(); + if (SoLoader.e == i3) { + throw e; + } + } catch (IOException e2) { + throw new RuntimeException(e2); + } catch (Throwable th2) { + SoLoader.c.writeLock().unlock(); + throw th2; + } + } + } while (z2); + return z5; + } finally { + SoLoader.c.readLock().unlock(); + } + } +} diff --git a/app/src/main/java/b/f/m/k.java b/app/src/main/java/b/f/m/k.java new file mode 100644 index 0000000000..6a57fc7caf --- /dev/null +++ b/app/src/main/java/b/f/m/k.java @@ -0,0 +1,4 @@ +package b.f.m; +/* compiled from: SoFileLoader */ +public interface k { +} diff --git a/app/src/main/java/b/f/m/l.java b/app/src/main/java/b/f/m/l.java new file mode 100644 index 0000000000..3c8d6d02af --- /dev/null +++ b/app/src/main/java/b/f/m/l.java @@ -0,0 +1,15 @@ +package b.f.m; + +import android.os.StrictMode; +import java.io.IOException; +/* compiled from: SoSource */ +public abstract class l { + public abstract int a(String str, int i, StrictMode.ThreadPolicy threadPolicy) throws IOException; + + public void b(int i) throws IOException { + } + + public String toString() { + return getClass().getName(); + } +} diff --git a/app/src/main/java/b/f/m/m.java b/app/src/main/java/b/f/m/m.java new file mode 100644 index 0000000000..e750e623a8 --- /dev/null +++ b/app/src/main/java/b/f/m/m.java @@ -0,0 +1,557 @@ +package b.f.m; + +import android.content.Context; +import android.os.Parcel; +import android.os.StrictMode; +import android.util.Log; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import com.facebook.soloader.SysUtil$LollipopSysdeps; +import java.io.Closeable; +import java.io.DataInput; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.RandomAccessFile; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/* compiled from: UnpackingSoSource */ +public abstract class m extends c { + public final Context c; + public String d; + public final Map e = new HashMap(); + + /* compiled from: UnpackingSoSource */ + public class a implements Runnable { + public final /* synthetic */ File j; + public final /* synthetic */ byte[] k; + public final /* synthetic */ c l; + public final /* synthetic */ File m; + public final /* synthetic */ g n; + + public a(File file, byte[] bArr, c cVar, File file2, g gVar) { + this.j = file; + this.k = bArr; + this.l = cVar; + this.m = file2; + this.n = gVar; + } + + /* JADX WARNING: Code restructure failed: missing block: B:20:0x008d, code lost: + r4 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:22:?, code lost: + r5.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x0092, code lost: + r5 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:24:0x0093, code lost: + r2.addSuppressed(r5); + */ + /* JADX WARNING: Code restructure failed: missing block: B:25:0x0096, code lost: + throw r4; + */ + /* JADX WARNING: Code restructure failed: missing block: B:29:0x0099, code lost: + r5 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:31:?, code lost: + r4.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:32:0x009e, code lost: + r4 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:33:0x009f, code lost: + r2.addSuppressed(r4); + */ + /* JADX WARNING: Code restructure failed: missing block: B:34:0x00a2, code lost: + throw r5; + */ + @Override // java.lang.Runnable + public void run() { + String str = " (from syncer thread)"; + String str2 = "releasing dso store lock for "; + String str3 = "fb-UnpackingSoSource"; + try { + Log.v("fb-UnpackingSoSource", "starting syncer worker"); + RandomAccessFile randomAccessFile = new RandomAccessFile(this.j, "rw"); + randomAccessFile.write(this.k); + randomAccessFile.setLength(randomAccessFile.getFilePointer()); + randomAccessFile.close(); + RandomAccessFile randomAccessFile2 = new RandomAccessFile(new File(m.this.a, "dso_manifest"), "rw"); + c cVar = this.l; + Objects.requireNonNull(cVar); + randomAccessFile2.writeByte(1); + randomAccessFile2.writeInt(cVar.a.length); + int i = 0; + while (true) { + b[] bVarArr = cVar.a; + if (i < bVarArr.length) { + randomAccessFile2.writeUTF(bVarArr[i].j); + randomAccessFile2.writeUTF(cVar.a[i].k); + i++; + } else { + randomAccessFile2.close(); + b.c.a.a0.d.l0(m.this.a); + m.k(this.m, (byte) 1); + try { + return; + } catch (IOException e) { + throw new RuntimeException(e); + } + } + } + } finally { + Log.v(str3, str2 + m.this.a + str); + this.n.close(); + } + } + } + + /* compiled from: UnpackingSoSource */ + public static class b { + public final String j; + public final String k; + + public b(String str, String str2) { + this.j = str; + this.k = str2; + } + } + + /* compiled from: UnpackingSoSource */ + public static final class c { + public final b[] a; + + public c(b[] bVarArr) { + this.a = bVarArr; + } + + public static final c a(DataInput dataInput) throws IOException { + if (dataInput.readByte() == 1) { + int readInt = dataInput.readInt(); + if (readInt >= 0) { + b[] bVarArr = new b[readInt]; + for (int i = 0; i < readInt; i++) { + bVarArr[i] = new b(dataInput.readUTF(), dataInput.readUTF()); + } + return new c(bVarArr); + } + throw new RuntimeException("illegal number of shared libraries"); + } + throw new RuntimeException("wrong dso manifest version"); + } + } + + /* compiled from: UnpackingSoSource */ + public static final class d implements Closeable { + public final b j; + public final InputStream k; + + public d(b bVar, InputStream inputStream) { + this.j = bVar; + this.k = inputStream; + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + this.k.close(); + } + } + + /* compiled from: UnpackingSoSource */ + public static abstract class e implements Closeable { + public abstract boolean a(); + + public abstract d b() throws IOException; + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + } + } + + /* compiled from: UnpackingSoSource */ + public static abstract class f implements Closeable { + public abstract c a() throws IOException; + + public abstract e b() throws IOException; + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + } + } + + public m(Context context, String str) { + super(new File(context.getApplicationInfo().dataDir + AutocompleteViewModel.COMMAND_DISCOVER_TOKEN + str), 1); + this.c = context; + } + + /* JADX WARNING: Code restructure failed: missing block: B:10:?, code lost: + r0.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:11:0x0028, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:12:0x0029, code lost: + r3.addSuppressed(r0); + */ + /* JADX WARNING: Code restructure failed: missing block: B:13:0x002c, code lost: + throw r4; + */ + /* JADX WARNING: Code restructure failed: missing block: B:8:0x0023, code lost: + r4 = move-exception; + */ + public static void k(File file, byte b2) throws IOException { + RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); + randomAccessFile.seek(0); + randomAccessFile.write(b2); + randomAccessFile.setLength(randomAccessFile.getFilePointer()); + randomAccessFile.getFD().sync(); + randomAccessFile.close(); + } + + @Override // b.f.m.c, b.f.m.l + public int a(String str, int i, StrictMode.ThreadPolicy threadPolicy) throws IOException { + int c2; + synchronized (g(str)) { + c2 = c(str, i, this.a, threadPolicy); + } + return c2; + } + + @Override // b.f.m.l + public void b(int i) throws IOException { + String str = "releasing dso store lock for "; + String str2 = "fb-UnpackingSoSource"; + File file = this.a; + if (file.mkdirs() || file.isDirectory()) { + g gVar = new g(new File(this.a, "dso_lock")); + try { + Log.v("fb-UnpackingSoSource", "locked dso store " + this.a); + if (i(gVar, i, f())) { + gVar = null; + } else { + Log.i("fb-UnpackingSoSource", "dso store is up-to-date: " + this.a); + } + if (gVar == null) { + StringBuilder R = b.d.b.a.a.R("not releasing dso store lock for "); + R.append(this.a); + R.append(" (syncer thread started)"); + Log.v("fb-UnpackingSoSource", R.toString()); + } + } finally { + StringBuilder R2 = b.d.b.a.a.R(str); + R2.append(this.a); + Log.v(str2, R2.toString()); + gVar.close(); + } + } else { + throw new IOException("cannot mkdir: " + file); + } + } + + public final void d(b[] bVarArr) throws IOException { + String[] list = this.a.list(); + if (list != null) { + for (String str : list) { + if (!str.equals("dso_state") && !str.equals("dso_lock") && !str.equals("dso_deps") && !str.equals("dso_manifest")) { + boolean z2 = false; + int i = 0; + while (!z2 && i < bVarArr.length) { + if (bVarArr[i].j.equals(str)) { + z2 = true; + } + i++; + } + if (!z2) { + File file = new File(this.a, str); + Log.v("fb-UnpackingSoSource", "deleting unaccounted-for file " + file); + b.c.a.a0.d.a0(file); + } + } + } + return; + } + StringBuilder R = b.d.b.a.a.R("unable to list directory "); + R.append(this.a); + throw new IOException(R.toString()); + } + + public final void e(d dVar, byte[] bArr) throws IOException { + RandomAccessFile randomAccessFile; + StringBuilder R = b.d.b.a.a.R("extracting DSO "); + R.append(dVar.j.j); + Log.i("fb-UnpackingSoSource", R.toString()); + if (this.a.setWritable(true, true)) { + File file = new File(this.a, dVar.j.j); + try { + randomAccessFile = new RandomAccessFile(file, "rw"); + } catch (IOException e2) { + Log.w("fb-UnpackingSoSource", "error overwriting " + file + " trying to delete and start over", e2); + b.c.a.a0.d.a0(file); + randomAccessFile = new RandomAccessFile(file, "rw"); + } + try { + int available = dVar.k.available(); + if (available > 1) { + SysUtil$LollipopSysdeps.fallocateIfSupported(randomAccessFile.getFD(), (long) available); + } + InputStream inputStream = dVar.k; + int i = 0; + while (i < Integer.MAX_VALUE) { + int read = inputStream.read(bArr, 0, Math.min(bArr.length, Integer.MAX_VALUE - i)); + if (read == -1) { + break; + } + randomAccessFile.write(bArr, 0, read); + i += read; + } + randomAccessFile.setLength(randomAccessFile.getFilePointer()); + if (file.setExecutable(true, false)) { + randomAccessFile.close(); + return; + } + throw new IOException("cannot make file executable: " + file); + } catch (IOException e3) { + b.c.a.a0.d.a0(file); + throw e3; + } catch (Throwable th) { + randomAccessFile.close(); + throw th; + } + } else { + StringBuilder R2 = b.d.b.a.a.R("cannot make directory writable for us: "); + R2.append(this.a); + throw new IOException(R2.toString()); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:12:0x0038, code lost: + r2 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:13:0x0039, code lost: + if (r1 != null) goto L_0x003b; + */ + /* JADX WARNING: Code restructure failed: missing block: B:15:?, code lost: + r1.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:16:0x003f, code lost: + r1 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:17:0x0040, code lost: + r0.addSuppressed(r1); + */ + /* JADX WARNING: Code restructure failed: missing block: B:18:0x0043, code lost: + throw r2; + */ + public byte[] f() throws IOException { + Parcel obtain = Parcel.obtain(); + f h = h(); + b[] bVarArr = h.a().a; + obtain.writeByte((byte) 1); + obtain.writeInt(bVarArr.length); + for (int i = 0; i < bVarArr.length; i++) { + obtain.writeString(bVarArr[i].j); + obtain.writeString(bVarArr[i].k); + } + h.close(); + byte[] marshall = obtain.marshall(); + obtain.recycle(); + return marshall; + } + + public final Object g(String str) { + Object obj; + synchronized (this.e) { + obj = this.e.get(str); + if (obj == null) { + obj = new Object(); + this.e.put(str, obj); + } + } + return obj; + } + + public abstract f h() throws IOException; + + /* JADX WARNING: Code restructure failed: missing block: B:10:?, code lost: + r1.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:11:0x003d, code lost: + r14 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:12:0x003e, code lost: + r12.addSuppressed(r14); + */ + /* JADX WARNING: Code restructure failed: missing block: B:13:0x0041, code lost: + throw r13; + */ + /* JADX WARNING: Code restructure failed: missing block: B:51:0x00d3, code lost: + r13 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:52:0x00d4, code lost: + if (r0 != null) goto L_0x00d6; + */ + /* JADX WARNING: Code restructure failed: missing block: B:54:?, code lost: + r0.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:55:0x00da, code lost: + r14 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:56:0x00db, code lost: + r12.addSuppressed(r14); + */ + /* JADX WARNING: Code restructure failed: missing block: B:57:0x00de, code lost: + throw r13; + */ + /* JADX WARNING: Code restructure failed: missing block: B:61:0x00e1, code lost: + r13 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:63:?, code lost: + r7.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:64:0x00e6, code lost: + r14 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:65:0x00e7, code lost: + r12.addSuppressed(r14); + */ + /* JADX WARNING: Code restructure failed: missing block: B:66:0x00ea, code lost: + throw r13; + */ + /* JADX WARNING: Code restructure failed: missing block: B:8:0x0038, code lost: + r13 = move-exception; + */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x009d A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x009e */ + public final boolean i(g gVar, int i, byte[] bArr) throws IOException { + File file = new File(this.a, "dso_state"); + RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); + byte b2 = randomAccessFile.readByte(); + if (b2 != 1) { + Log.v("fb-UnpackingSoSource", "dso store " + this.a + " regeneration interrupted: wiping clean"); + b2 = 0; + } + randomAccessFile.close(); + File file2 = new File(this.a, "dso_deps"); + c cVar = null; + RandomAccessFile randomAccessFile2 = new RandomAccessFile(file2, "rw"); + int length = (int) randomAccessFile2.length(); + byte[] bArr2 = new byte[length]; + if (randomAccessFile2.read(bArr2) != length) { + Log.v("fb-UnpackingSoSource", "short read of so store deps file: marking unclean"); + b2 = 0; + } + if (!Arrays.equals(bArr2, bArr)) { + Log.v("fb-UnpackingSoSource", "deps mismatch on deps store: regenerating"); + b2 = 0; + } + if (b2 != 0) { + if ((i & 2) != 0) { + } + randomAccessFile2.close(); + if (cVar != null) { + return false; + } + a aVar = new a(file2, bArr, cVar, file, gVar); + if ((i & 1) != 0) { + StringBuilder R = b.d.b.a.a.R("SoSync:"); + R.append(this.a.getName()); + new Thread(aVar, R.toString()).start(); + } else { + aVar.run(); + } + return true; + } + Log.v("fb-UnpackingSoSource", "so store dirty: regenerating"); + k(file, (byte) 0); + f h = h(); + cVar = h.a(); + j(b2, cVar, h.b()); + h.close(); + randomAccessFile2.close(); + if (cVar != null) { + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:47:0x00c5, code lost: + r9 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:49:?, code lost: + r2.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:50:0x00ca, code lost: + r10 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:51:0x00cb, code lost: + r8.addSuppressed(r10); + */ + /* JADX WARNING: Code restructure failed: missing block: B:52:0x00ce, code lost: + throw r9; + */ + /* JADX WARNING: Removed duplicated region for block: B:12:0x003f A[Catch:{ all -> 0x00c5 }] */ + /* JADX WARNING: Removed duplicated region for block: B:16:0x0056 A[Catch:{ all -> 0x00c5 }] */ + public final void j(byte b2, c cVar, e eVar) throws IOException { + c cVar2; + StringBuilder R = b.d.b.a.a.R("regenerating DSO store "); + R.append(getClass().getName()); + Log.v("fb-UnpackingSoSource", R.toString()); + RandomAccessFile randomAccessFile = new RandomAccessFile(new File(this.a, "dso_manifest"), "rw"); + if (b2 == 1) { + try { + cVar2 = c.a(randomAccessFile); + } catch (Exception e2) { + Log.i("fb-UnpackingSoSource", "error reading existing DSO manifest", e2); + } + if (cVar2 == null) { + cVar2 = new c(new b[0]); + } + d(cVar.a); + byte[] bArr = new byte[32768]; + while (eVar.a()) { + d b3 = eVar.b(); + boolean z2 = true; + int i = 0; + while (z2) { + try { + b[] bVarArr = cVar2.a; + if (i >= bVarArr.length) { + break; + } + if (bVarArr[i].j.equals(b3.j.j) && cVar2.a[i].k.equals(b3.j.k)) { + z2 = false; + } + i++; + } catch (Throwable th) { + if (b3 != null) { + try { + b3.k.close(); + } catch (Throwable th2) { + th.addSuppressed(th2); + } + } + throw th; + } + } + if (z2) { + e(b3, bArr); + } + if (b3 != null) { + b3.k.close(); + } + } + randomAccessFile.close(); + Log.v("fb-UnpackingSoSource", "Finished regenerating DSO store " + getClass().getName()); + } + cVar2 = null; + if (cVar2 == null) { + } + d(cVar.a); + byte[] bArr = new byte[32768]; + while (eVar.a()) { + } + randomAccessFile.close(); + Log.v("fb-UnpackingSoSource", "Finished regenerating DSO store " + getClass().getName()); + } +} diff --git a/app/src/main/java/b/f/m/n/a.java b/app/src/main/java/b/f/m/n/a.java new file mode 100644 index 0000000000..a387588086 --- /dev/null +++ b/app/src/main/java/b/f/m/n/a.java @@ -0,0 +1,38 @@ +package b.f.m.n; +/* compiled from: NativeLoader */ +public class a { + public static b a; + + public static synchronized void a(b bVar) { + synchronized (a.class) { + if (a == null) { + a = bVar; + } else { + throw new IllegalStateException("Cannot re-initialize NativeLoader."); + } + } + } + + public static synchronized boolean b() { + boolean z2; + synchronized (a.class) { + z2 = a != null; + } + return z2; + } + + public static boolean c(String str) { + return d(str, 0); + } + + public static boolean d(String str, int i) { + b bVar; + synchronized (a.class) { + bVar = a; + if (bVar == null) { + throw new IllegalStateException("NativeLoader has not been initialized. To use standard native library loading, call NativeLoader.init(new SystemDelegate())."); + } + } + return bVar.a(str, i); + } +} diff --git a/app/src/main/java/b/f/m/n/b.java b/app/src/main/java/b/f/m/n/b.java new file mode 100644 index 0000000000..6c2410e95a --- /dev/null +++ b/app/src/main/java/b/f/m/n/b.java @@ -0,0 +1,5 @@ +package b.f.m.n; +/* compiled from: NativeLoaderDelegate */ +public interface b { + boolean a(String str, int i); +} diff --git a/app/src/main/java/b/f/m/n/c.java b/app/src/main/java/b/f/m/n/c.java new file mode 100644 index 0000000000..8dd9aca7e2 --- /dev/null +++ b/app/src/main/java/b/f/m/n/c.java @@ -0,0 +1,9 @@ +package b.f.m.n; +/* compiled from: SystemDelegate */ +public class c implements b { + @Override // b.f.m.n.b + public boolean a(String str, int i) { + System.loadLibrary(str); + return true; + } +} diff --git a/app/src/main/java/b/f/n/a/a/a.java b/app/src/main/java/b/f/n/a/a/a.java new file mode 100644 index 0000000000..8852bd2613 --- /dev/null +++ b/app/src/main/java/b/f/n/a/a/a.java @@ -0,0 +1,74 @@ +package b.f.n.a.a; + +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import android.text.style.ReplacementSpan; +/* compiled from: BetterImageSpan */ +public class a extends ReplacementSpan { + public int j; + public int k; + public Rect l; + public final int m; + public final Paint.FontMetricsInt n = new Paint.FontMetricsInt(); + public final Drawable o; + + public a(Drawable drawable, int i) { + this.o = drawable; + this.m = i; + b(); + } + + public final int a(Paint.FontMetricsInt fontMetricsInt) { + int i = this.m; + if (i == 0) { + return fontMetricsInt.descent - this.k; + } + if (i != 2) { + return -this.k; + } + int i2 = fontMetricsInt.descent; + int i3 = fontMetricsInt.ascent; + return (((i2 - i3) - this.k) / 2) + i3; + } + + public void b() { + Rect bounds = this.o.getBounds(); + this.l = bounds; + this.j = bounds.width(); + this.k = this.l.height(); + } + + @Override // android.text.style.ReplacementSpan + public void draw(Canvas canvas, CharSequence charSequence, int i, int i2, float f, int i3, int i4, int i5, Paint paint) { + paint.getFontMetricsInt(this.n); + int a = a(this.n) + i4; + canvas.translate(f, (float) a); + this.o.draw(canvas); + canvas.translate(-f, (float) (-a)); + } + + @Override // android.text.style.ReplacementSpan + public int getSize(Paint paint, CharSequence charSequence, int i, int i2, Paint.FontMetricsInt fontMetricsInt) { + b(); + if (fontMetricsInt == null) { + return this.j; + } + int a = a(fontMetricsInt); + int i3 = this.k + a; + if (a < fontMetricsInt.ascent) { + fontMetricsInt.ascent = a; + } + if (a < fontMetricsInt.top) { + fontMetricsInt.top = a; + } + if (i3 > fontMetricsInt.descent) { + fontMetricsInt.descent = i3; + } + if (i3 > fontMetricsInt.bottom) { + fontMetricsInt.bottom = i3; + } + return this.j; + } +} diff --git a/app/src/main/java/b/g/a/a/a.java b/app/src/main/java/b/g/a/a/a.java new file mode 100644 index 0000000000..ef048e2053 --- /dev/null +++ b/app/src/main/java/b/g/a/a/a.java @@ -0,0 +1,11 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JacksonAnnotationsInside */ +@Target({ElementType.ANNOTATION_TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface a { +} diff --git a/app/src/main/java/b/g/a/a/a0.java b/app/src/main/java/b/g/a/a/a0.java new file mode 100644 index 0000000000..7905e4f2e6 --- /dev/null +++ b/app/src/main/java/b/g/a/a/a0.java @@ -0,0 +1,22 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonSubTypes */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface a0 { + + /* compiled from: JsonSubTypes */ + public @interface a { + String name() default ""; + + String[] names() default {}; + + Class value(); + } + + a[] value(); +} diff --git a/app/src/main/java/b/g/a/a/b.java b/app/src/main/java/b/g/a/a/b.java new file mode 100644 index 0000000000..f4a32f6318 --- /dev/null +++ b/app/src/main/java/b/g/a/a/b.java @@ -0,0 +1,69 @@ +package b.g.a.a; + +import java.io.Serializable; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JacksonInject */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface b { + + /* compiled from: JacksonInject */ + public static class a implements Serializable { + public static final a j = new a(null, null); + private static final long serialVersionUID = 1; + public final Object _id; + public final Boolean _useInput; + + public a(Object obj, Boolean bool) { + this._id = obj; + this._useInput = bool; + } + + public static a a(Object obj, Boolean bool) { + if ("".equals(obj)) { + obj = null; + } + return obj == null && bool == null ? j : new a(obj, bool); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj != null && obj.getClass() == a.class) { + a aVar = (a) obj; + Boolean bool = this._useInput; + Boolean bool2 = aVar._useInput; + if (bool == null ? bool2 == null : bool.equals(bool2)) { + Object obj2 = this._id; + return obj2 == null ? aVar._id == null : obj2.equals(aVar._id); + } + } + return false; + } + + @Override // java.lang.Object + public int hashCode() { + Object obj = this._id; + int i = 1; + if (obj != null) { + i = 1 + obj.hashCode(); + } + Boolean bool = this._useInput; + return bool != null ? i + bool.hashCode() : i; + } + + @Override // java.lang.Object + public String toString() { + return String.format("JacksonInject.Value(id=%s,useInput=%s)", this._id, this._useInput); + } + } + + m0 useInput() default m0.DEFAULT; + + String value() default ""; +} diff --git a/app/src/main/java/b/g/a/a/b0.java b/app/src/main/java/b/g/a/a/b0.java new file mode 100644 index 0000000000..6aee5b66d8 --- /dev/null +++ b/app/src/main/java/b/g/a/a/b0.java @@ -0,0 +1,11 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonTypeId */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface b0 { +} diff --git a/app/src/main/java/b/g/a/a/c.java b/app/src/main/java/b/g/a/a/c.java new file mode 100644 index 0000000000..392674a9b1 --- /dev/null +++ b/app/src/main/java/b/g/a/a/c.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonAnyGetter */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface c { + boolean enabled() default true; +} diff --git a/app/src/main/java/b/g/a/a/c0.java b/app/src/main/java/b/g/a/a/c0.java new file mode 100644 index 0000000000..733bf82a10 --- /dev/null +++ b/app/src/main/java/b/g/a/a/c0.java @@ -0,0 +1,55 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonTypeInfo */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface c0 { + + /* compiled from: JsonTypeInfo */ + public enum a { + PROPERTY, + WRAPPER_OBJECT, + WRAPPER_ARRAY, + EXTERNAL_PROPERTY, + EXISTING_PROPERTY + } + + /* compiled from: JsonTypeInfo */ + public enum b { + NONE(null), + CLASS("@class"), + MINIMAL_CLASS("@c"), + NAME("@type"), + DEDUCTION(null), + CUSTOM(null); + + private final String _defaultPropertyName; + + public b(String str) { + this._defaultPropertyName = str; + } + + public String f() { + return this._defaultPropertyName; + } + } + + /* compiled from: JsonTypeInfo */ + @Deprecated + public static abstract class c { + } + + Class defaultImpl() default c0.class; + + a include() default a.PROPERTY; + + String property() default ""; + + b use(); + + boolean visible() default false; +} diff --git a/app/src/main/java/b/g/a/a/d.java b/app/src/main/java/b/g/a/a/d.java new file mode 100644 index 0000000000..5a7d46f8a5 --- /dev/null +++ b/app/src/main/java/b/g/a/a/d.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonAnySetter */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface d { + boolean enabled() default true; +} diff --git a/app/src/main/java/b/g/a/a/d0.java b/app/src/main/java/b/g/a/a/d0.java new file mode 100644 index 0000000000..6fd76f878c --- /dev/null +++ b/app/src/main/java/b/g/a/a/d0.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonTypeName */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface d0 { + String value() default ""; +} diff --git a/app/src/main/java/b/g/a/a/e.java b/app/src/main/java/b/g/a/a/e.java new file mode 100644 index 0000000000..2bb2c0ff26 --- /dev/null +++ b/app/src/main/java/b/g/a/a/e.java @@ -0,0 +1,51 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.lang.reflect.Member; +import java.lang.reflect.Modifier; +/* compiled from: JsonAutoDetect */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface e { + + /* compiled from: JsonAutoDetect */ + public enum a { + ANY, + NON_PRIVATE, + PROTECTED_AND_PUBLIC, + PUBLIC_ONLY, + NONE, + DEFAULT; + + public boolean f(Member member) { + int ordinal = ordinal(); + if (ordinal == 0) { + return true; + } + if (ordinal == 1) { + return !Modifier.isPrivate(member.getModifiers()); + } + if (ordinal != 2) { + if (ordinal != 3) { + return false; + } + } else if (Modifier.isProtected(member.getModifiers())) { + return true; + } + return Modifier.isPublic(member.getModifiers()); + } + } + + a creatorVisibility() default a.DEFAULT; + + a fieldVisibility() default a.DEFAULT; + + a getterVisibility() default a.DEFAULT; + + a isGetterVisibility() default a.DEFAULT; + + a setterVisibility() default a.DEFAULT; +} diff --git a/app/src/main/java/b/g/a/a/e0.java b/app/src/main/java/b/g/a/a/e0.java new file mode 100644 index 0000000000..c1cdd5a747 --- /dev/null +++ b/app/src/main/java/b/g/a/a/e0.java @@ -0,0 +1,16 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonUnwrapped */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface e0 { + boolean enabled() default true; + + String prefix() default ""; + + String suffix() default ""; +} diff --git a/app/src/main/java/b/g/a/a/f.java b/app/src/main/java/b/g/a/a/f.java new file mode 100644 index 0000000000..2771a5304b --- /dev/null +++ b/app/src/main/java/b/g/a/a/f.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonBackReference */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface f { + String value() default "defaultReference"; +} diff --git a/app/src/main/java/b/g/a/a/f0.java b/app/src/main/java/b/g/a/a/f0.java new file mode 100644 index 0000000000..304164613e --- /dev/null +++ b/app/src/main/java/b/g/a/a/f0.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonValue */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface f0 { + boolean value() default true; +} diff --git a/app/src/main/java/b/g/a/a/g.java b/app/src/main/java/b/g/a/a/g.java new file mode 100644 index 0000000000..7c2804d53f --- /dev/null +++ b/app/src/main/java/b/g/a/a/g.java @@ -0,0 +1,21 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonCreator */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR}) +@Retention(RetentionPolicy.RUNTIME) +public @interface g { + + /* compiled from: JsonCreator */ + public enum a { + DEFAULT, + DELEGATING, + PROPERTIES, + DISABLED + } + + a mode() default a.DEFAULT; +} diff --git a/app/src/main/java/b/g/a/a/g0.java b/app/src/main/java/b/g/a/a/g0.java new file mode 100644 index 0000000000..1c44ff25cd --- /dev/null +++ b/app/src/main/java/b/g/a/a/g0.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonView */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface g0 { + Class[] value() default {}; +} diff --git a/app/src/main/java/b/g/a/a/h.java b/app/src/main/java/b/g/a/a/h.java new file mode 100644 index 0000000000..6711143832 --- /dev/null +++ b/app/src/main/java/b/g/a/a/h.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonFilter */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface h { + String value(); +} diff --git a/app/src/main/java/b/g/a/a/h0.java b/app/src/main/java/b/g/a/a/h0.java new file mode 100644 index 0000000000..f33a42931b --- /dev/null +++ b/app/src/main/java/b/g/a/a/h0.java @@ -0,0 +1,9 @@ +package b.g.a.a; +/* compiled from: Nulls */ +public enum h0 { + SET, + SKIP, + FAIL, + AS_EMPTY, + DEFAULT +} diff --git a/app/src/main/java/b/g/a/a/i.java b/app/src/main/java/b/g/a/a/i.java new file mode 100644 index 0000000000..5972ba5c23 --- /dev/null +++ b/app/src/main/java/b/g/a/a/i.java @@ -0,0 +1,289 @@ +package b.g.a.a; + +import java.io.Serializable; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.util.Locale; +import java.util.Objects; +import java.util.TimeZone; +/* compiled from: JsonFormat */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface i { + + /* compiled from: JsonFormat */ + public enum a { + ACCEPT_SINGLE_VALUE_AS_ARRAY, + ACCEPT_CASE_INSENSITIVE_PROPERTIES, + ACCEPT_CASE_INSENSITIVE_VALUES, + WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS, + WRITE_DATES_WITH_ZONE_ID, + WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED, + WRITE_SORTED_MAP_ENTRIES, + ADJUST_DATES_TO_CONTEXT_TIME_ZONE + } + + /* compiled from: JsonFormat */ + public static class b { + public static final b a = new b(0, 0); + + /* renamed from: b reason: collision with root package name */ + public final int f640b; + public final int c; + + public b(int i, int i2) { + this.f640b = i; + this.c = i2; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != b.class) { + return false; + } + b bVar = (b) obj; + return bVar.f640b == this.f640b && bVar.c == this.c; + } + + public int hashCode() { + return this.c + this.f640b; + } + + public String toString() { + return this == a ? "EMPTY" : String.format("(enabled=0x%x,disabled=0x%x)", Integer.valueOf(this.f640b), Integer.valueOf(this.c)); + } + } + + /* compiled from: JsonFormat */ + public enum c { + ANY, + NATURAL, + SCALAR, + ARRAY, + OBJECT, + NUMBER, + NUMBER_FLOAT, + NUMBER_INT, + STRING, + BOOLEAN, + BINARY; + + public boolean f() { + return this == NUMBER || this == NUMBER_INT || this == NUMBER_FLOAT; + } + } + + /* compiled from: JsonFormat */ + public static class d implements Serializable { + public static final d j = new d("", c.ANY, "", "", b.a, null); + private static final long serialVersionUID = 1; + private final b _features; + private final Boolean _lenient; + private final Locale _locale; + private final String _pattern; + private final c _shape; + private final String _timezoneStr; + public transient TimeZone k; + + public d() { + this("", c.ANY, "", "", b.a, null); + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public d(String str, c cVar, String str2, String str3, b bVar, Boolean bool) { + this(str, cVar, (str2 == null || str2.length() == 0 || "##default".equals(str2)) ? null : new Locale(str2), (str3 == null || str3.length() == 0 || "##default".equals(str3)) ? null : str3, null, bVar, bool); + } + + public d(String str, c cVar, Locale locale, String str2, TimeZone timeZone, b bVar, Boolean bool) { + this._pattern = str == null ? "" : str; + this._shape = cVar == null ? c.ANY : cVar; + this._locale = locale; + this.k = timeZone; + this._timezoneStr = str2; + this._features = bVar == null ? b.a : bVar; + this._lenient = bool; + } + + public static boolean a(T t, T t2) { + if (t == null) { + return t2 == null; + } + if (t2 == null) { + return false; + } + return t.equals(t2); + } + + public Boolean b(a aVar) { + b bVar = this._features; + Objects.requireNonNull(bVar); + int ordinal = 1 << aVar.ordinal(); + if ((bVar.c & ordinal) != 0) { + return Boolean.FALSE; + } + if ((ordinal & bVar.f640b) != 0) { + return Boolean.TRUE; + } + return null; + } + + public Locale c() { + return this._locale; + } + + public String d() { + return this._pattern; + } + + public c e() { + return this._shape; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != d.class) { + return false; + } + d dVar = (d) obj; + return this._shape == dVar._shape && this._features.equals(dVar._features) && a(this._lenient, dVar._lenient) && a(this._timezoneStr, dVar._timezoneStr) && a(this._pattern, dVar._pattern) && a(this.k, dVar.k) && a(this._locale, dVar._locale); + } + + public TimeZone f() { + TimeZone timeZone = this.k; + if (timeZone != null) { + return timeZone; + } + String str = this._timezoneStr; + if (str == null) { + return null; + } + TimeZone timeZone2 = TimeZone.getTimeZone(str); + this.k = timeZone2; + return timeZone2; + } + + public boolean g() { + return this._locale != null; + } + + public boolean h() { + String str = this._pattern; + return str != null && str.length() > 0; + } + + @Override // java.lang.Object + public int hashCode() { + String str = this._timezoneStr; + int hashCode = str == null ? 1 : str.hashCode(); + String str2 = this._pattern; + if (str2 != null) { + hashCode ^= str2.hashCode(); + } + int hashCode2 = this._shape.hashCode() + hashCode; + Boolean bool = this._lenient; + if (bool != null) { + hashCode2 ^= bool.hashCode(); + } + Locale locale = this._locale; + if (locale != null) { + hashCode2 += locale.hashCode(); + } + return this._features.hashCode() ^ hashCode2; + } + + public boolean i() { + return this._shape != c.ANY; + } + + public boolean j() { + String str; + return this.k != null || ((str = this._timezoneStr) != null && !str.isEmpty()); + } + + public final d k(d dVar) { + d dVar2; + TimeZone timeZone; + String str; + if (dVar == null || dVar == (dVar2 = j) || dVar == this) { + return this; + } + if (this == dVar2) { + return dVar; + } + String str2 = dVar._pattern; + if (str2 == null || str2.isEmpty()) { + str2 = this._pattern; + } + c cVar = dVar._shape; + if (cVar == c.ANY) { + cVar = this._shape; + } + Locale locale = dVar._locale; + if (locale == null) { + locale = this._locale; + } + b bVar = this._features; + if (bVar == null) { + bVar = dVar._features; + } else { + b bVar2 = dVar._features; + if (bVar2 != null) { + int i = bVar2.c; + int i2 = bVar2.f640b; + if (!(i == 0 && i2 == 0)) { + int i3 = bVar.f640b; + if (i3 == 0 && bVar.c == 0) { + bVar = bVar2; + } else { + int i4 = ((~i) & i3) | i2; + int i5 = bVar.c; + int i6 = i | ((~i2) & i5); + if (!(i4 == i3 && i6 == i5)) { + bVar = new b(i4, i6); + } + } + } + } + } + Boolean bool = dVar._lenient; + if (bool == null) { + bool = this._lenient; + } + String str3 = dVar._timezoneStr; + if (str3 == null || str3.isEmpty()) { + str = this._timezoneStr; + timeZone = this.k; + } else { + timeZone = dVar.k; + str = str3; + } + return new d(str2, cVar, locale, str, timeZone, bVar, bool); + } + + @Override // java.lang.Object + public String toString() { + return String.format("JsonFormat.Value(pattern=%s,shape=%s,lenient=%s,locale=%s,timezone=%s,features=%s)", this._pattern, this._shape, this._lenient, this._locale, this._timezoneStr, this._features); + } + } + + m0 lenient() default m0.DEFAULT; + + String locale() default "##default"; + + String pattern() default ""; + + c shape() default c.ANY; + + String timezone() default "##default"; + + a[] with() default {}; + + a[] without() default {}; +} diff --git a/app/src/main/java/b/g/a/a/i0.java b/app/src/main/java/b/g/a/a/i0.java new file mode 100644 index 0000000000..2e475d8ecd --- /dev/null +++ b/app/src/main/java/b/g/a/a/i0.java @@ -0,0 +1,15 @@ +package b.g.a.a; + +import java.io.Serializable; +/* compiled from: ObjectIdGenerator */ +public abstract class i0 implements Serializable { + public abstract boolean a(i0 i0Var); + + public abstract i0 b(Class cls); + + public abstract T c(Object obj); + + public abstract Class d(); + + public abstract i0 e(Object obj); +} diff --git a/app/src/main/java/b/g/a/a/j.java b/app/src/main/java/b/g/a/a/j.java new file mode 100644 index 0000000000..d94f24edc2 --- /dev/null +++ b/app/src/main/java/b/g/a/a/j.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonGetter */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface j { + String value() default ""; +} diff --git a/app/src/main/java/b/g/a/a/j0.java b/app/src/main/java/b/g/a/a/j0.java new file mode 100644 index 0000000000..56d7881ab8 --- /dev/null +++ b/app/src/main/java/b/g/a/a/j0.java @@ -0,0 +1,19 @@ +package b.g.a.a; +/* compiled from: ObjectIdGenerators */ +public abstract class j0 extends i0 { + public final Class _scope; + + public j0(Class cls) { + this._scope = cls; + } + + @Override // b.g.a.a.i0 + public boolean a(i0 i0Var) { + return i0Var.getClass() == getClass() && i0Var.d() == this._scope; + } + + @Override // b.g.a.a.i0 + public final Class d() { + return this._scope; + } +} diff --git a/app/src/main/java/b/g/a/a/k.java b/app/src/main/java/b/g/a/a/k.java new file mode 100644 index 0000000000..afe7eb415a --- /dev/null +++ b/app/src/main/java/b/g/a/a/k.java @@ -0,0 +1,18 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonIdentityInfo */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface k { + Class> generator(); + + String property() default "@id"; + + Class resolver() default n0.class; + + Class scope() default Object.class; +} diff --git a/app/src/main/java/b/g/a/a/k0.java b/app/src/main/java/b/g/a/a/k0.java new file mode 100644 index 0000000000..e5720b1d7e --- /dev/null +++ b/app/src/main/java/b/g/a/a/k0.java @@ -0,0 +1,4 @@ +package b.g.a.a; +/* compiled from: ObjectIdGenerators */ +public abstract class k0 extends i0 { +} diff --git a/app/src/main/java/b/g/a/a/l.java b/app/src/main/java/b/g/a/a/l.java new file mode 100644 index 0000000000..3f4de75b9b --- /dev/null +++ b/app/src/main/java/b/g/a/a/l.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonIdentityReference */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface l { + boolean alwaysAsId() default false; +} diff --git a/app/src/main/java/b/g/a/a/l0.java b/app/src/main/java/b/g/a/a/l0.java new file mode 100644 index 0000000000..120df0ce51 --- /dev/null +++ b/app/src/main/java/b/g/a/a/l0.java @@ -0,0 +1,9 @@ +package b.g.a.a; +/* compiled from: ObjectIdGenerators */ +public abstract class l0 extends j0 { + private static final long serialVersionUID = 1; + + public l0(Class cls) { + super(cls); + } +} diff --git a/app/src/main/java/b/g/a/a/m.java b/app/src/main/java/b/g/a/a/m.java new file mode 100644 index 0000000000..a4bbf60e17 --- /dev/null +++ b/app/src/main/java/b/g/a/a/m.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonIgnore */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface m { + boolean value() default true; +} diff --git a/app/src/main/java/b/g/a/a/m0.java b/app/src/main/java/b/g/a/a/m0.java new file mode 100644 index 0000000000..b6c696715d --- /dev/null +++ b/app/src/main/java/b/g/a/a/m0.java @@ -0,0 +1,14 @@ +package b.g.a.a; +/* compiled from: OptBoolean */ +public enum m0 { + TRUE, + FALSE, + DEFAULT; + + public Boolean f() { + if (this == DEFAULT) { + return null; + } + return this == TRUE ? Boolean.TRUE : Boolean.FALSE; + } +} diff --git a/app/src/main/java/b/g/a/a/n.java b/app/src/main/java/b/g/a/a/n.java new file mode 100644 index 0000000000..fe62c44423 --- /dev/null +++ b/app/src/main/java/b/g/a/a/n.java @@ -0,0 +1,87 @@ +package b.g.a.a; + +import java.io.Serializable; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.util.Collections; +import java.util.Set; +/* compiled from: JsonIgnoreProperties */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface n { + + /* compiled from: JsonIgnoreProperties */ + public static class a implements Serializable { + public static final a j = new a(Collections.emptySet(), false, false, false, true); + private static final long serialVersionUID = 1; + public final boolean _allowGetters; + public final boolean _allowSetters; + public final boolean _ignoreUnknown; + public final Set _ignored; + public final boolean _merge; + + public a(Set set, boolean z2, boolean z3, boolean z4, boolean z5) { + if (set == null) { + this._ignored = Collections.emptySet(); + } else { + this._ignored = set; + } + this._ignoreUnknown = z2; + this._allowGetters = z3; + this._allowSetters = z4; + this._merge = z5; + } + + public static boolean a(Set set, boolean z2, boolean z3, boolean z4, boolean z5) { + a aVar = j; + if (z2 == aVar._ignoreUnknown && z3 == aVar._allowGetters && z4 == aVar._allowSetters && z5 == aVar._merge) { + return set == null || set.size() == 0; + } + return false; + } + + public static boolean b(a aVar, a aVar2) { + return aVar._ignoreUnknown == aVar2._ignoreUnknown && aVar._merge == aVar2._merge && aVar._allowGetters == aVar2._allowGetters && aVar._allowSetters == aVar2._allowSetters && aVar._ignored.equals(aVar2._ignored); + } + + public static a c(Set set, boolean z2, boolean z3, boolean z4, boolean z5) { + return a(set, z2, z3, z4, z5) ? j : new a(set, z2, z3, z4, z5); + } + + public Set d() { + return this._allowGetters ? Collections.emptySet() : this._ignored; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + return obj != null && obj.getClass() == a.class && b(this, (a) obj); + } + + @Override // java.lang.Object + public int hashCode() { + return this._ignored.size() + (this._ignoreUnknown ? 1 : -3) + (this._allowGetters ? 3 : -7) + (this._allowSetters ? 7 : -11) + (this._merge ? 11 : -13); + } + + public Object readResolve() { + return a(this._ignored, this._ignoreUnknown, this._allowGetters, this._allowSetters, this._merge) ? j : this; + } + + @Override // java.lang.Object + public String toString() { + return String.format("JsonIgnoreProperties.Value(ignored=%s,ignoreUnknown=%s,allowGetters=%s,allowSetters=%s,merge=%s)", this._ignored, Boolean.valueOf(this._ignoreUnknown), Boolean.valueOf(this._allowGetters), Boolean.valueOf(this._allowSetters), Boolean.valueOf(this._merge)); + } + } + + boolean allowGetters() default false; + + boolean allowSetters() default false; + + boolean ignoreUnknown() default false; + + String[] value() default {}; +} diff --git a/app/src/main/java/b/g/a/a/n0.java b/app/src/main/java/b/g/a/a/n0.java new file mode 100644 index 0000000000..dcadb0b20a --- /dev/null +++ b/app/src/main/java/b/g/a/a/n0.java @@ -0,0 +1,4 @@ +package b.g.a.a; +/* compiled from: SimpleObjectIdResolver */ +public class n0 { +} diff --git a/app/src/main/java/b/g/a/a/o.java b/app/src/main/java/b/g/a/a/o.java new file mode 100644 index 0000000000..a61485ba1e --- /dev/null +++ b/app/src/main/java/b/g/a/a/o.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonIgnoreType */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface o { + boolean value() default true; +} diff --git a/app/src/main/java/b/g/a/a/p.java b/app/src/main/java/b/g/a/a/p.java new file mode 100644 index 0000000000..b3ac54115e --- /dev/null +++ b/app/src/main/java/b/g/a/a/p.java @@ -0,0 +1,129 @@ +package b.g.a.a; + +import java.io.Serializable; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonInclude */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface p { + + /* compiled from: JsonInclude */ + public enum a { + ALWAYS, + NON_NULL, + NON_ABSENT, + NON_EMPTY, + NON_DEFAULT, + CUSTOM, + USE_DEFAULTS + } + + /* compiled from: JsonInclude */ + public static class b implements Serializable { + public static final b j; + private static final long serialVersionUID = 1; + public final Class _contentFilter; + public final a _contentInclusion; + public final Class _valueFilter; + public final a _valueInclusion; + + static { + a aVar = a.USE_DEFAULTS; + j = new b(aVar, aVar, null, null); + } + + public b(a aVar, a aVar2, Class cls, Class cls2) { + a aVar3 = a.USE_DEFAULTS; + this._valueInclusion = aVar == null ? aVar3 : aVar; + this._contentInclusion = aVar2 == null ? aVar3 : aVar2; + this._valueFilter = cls == Void.class ? null : cls; + this._contentFilter = cls2 == Void.class ? null : cls2; + } + + public b a(b bVar) { + a aVar = a.USE_DEFAULTS; + if (!(bVar == null || bVar == j)) { + a aVar2 = bVar._valueInclusion; + a aVar3 = bVar._contentInclusion; + Class cls = bVar._valueFilter; + Class cls2 = bVar._contentFilter; + a aVar4 = this._valueInclusion; + boolean z2 = true; + boolean z3 = (aVar2 == aVar4 || aVar2 == aVar) ? false : true; + a aVar5 = this._contentInclusion; + boolean z4 = (aVar3 == aVar5 || aVar3 == aVar) ? false : true; + Class cls3 = this._valueFilter; + if (cls == cls3 && cls2 == cls3) { + z2 = false; + } + if (z3) { + return z4 ? new b(aVar2, aVar3, cls, cls2) : new b(aVar2, aVar5, cls, cls2); + } + if (z4) { + return new b(aVar4, aVar3, cls, cls2); + } + if (z2) { + return new b(aVar4, aVar5, cls, cls2); + } + } + return this; + } + + public b b(a aVar) { + return aVar == this._valueInclusion ? this : new b(aVar, this._contentInclusion, this._valueFilter, this._contentFilter); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != b.class) { + return false; + } + b bVar = (b) obj; + return bVar._valueInclusion == this._valueInclusion && bVar._contentInclusion == this._contentInclusion && bVar._valueFilter == this._valueFilter && bVar._contentFilter == this._contentFilter; + } + + @Override // java.lang.Object + public int hashCode() { + return this._contentInclusion.hashCode() + (this._valueInclusion.hashCode() << 2); + } + + public Object readResolve() { + a aVar = this._valueInclusion; + a aVar2 = a.USE_DEFAULTS; + return (aVar == aVar2 && this._contentInclusion == aVar2 && this._valueFilter == null && this._contentFilter == null) ? j : this; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder(80); + sb.append("JsonInclude.Value(value="); + sb.append(this._valueInclusion); + sb.append(",content="); + sb.append(this._contentInclusion); + if (this._valueFilter != null) { + sb.append(",valueFilter="); + b.d.b.a.a.i0(this._valueFilter, sb, ".class"); + } + if (this._contentFilter != null) { + sb.append(",contentFilter="); + b.d.b.a.a.i0(this._contentFilter, sb, ".class"); + } + sb.append(')'); + return sb.toString(); + } + } + + a content() default a.ALWAYS; + + Class contentFilter() default Void.class; + + a value() default a.ALWAYS; + + Class valueFilter() default Void.class; +} diff --git a/app/src/main/java/b/g/a/a/q.java b/app/src/main/java/b/g/a/a/q.java new file mode 100644 index 0000000000..5e4a2d772d --- /dev/null +++ b/app/src/main/java/b/g/a/a/q.java @@ -0,0 +1,55 @@ +package b.g.a.a; + +import java.io.Serializable; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.util.Set; +/* compiled from: JsonIncludeProperties */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface q { + + /* compiled from: JsonIncludeProperties */ + public static class a implements Serializable { + public static final a j = new a(null); + private static final long serialVersionUID = 1; + public final Set _included; + + public a(Set set) { + this._included = set; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj != null && obj.getClass() == a.class) { + Set set = this._included; + Set set2 = ((a) obj)._included; + if (set == null ? set2 == null : set.equals(set2)) { + return true; + } + } + return false; + } + + @Override // java.lang.Object + public int hashCode() { + Set set = this._included; + if (set == null) { + return 0; + } + return set.size(); + } + + @Override // java.lang.Object + public String toString() { + return String.format("JsonIncludeProperties.Value(included=%s)", this._included); + } + } + + String[] value() default {}; +} diff --git a/app/src/main/java/b/g/a/a/r.java b/app/src/main/java/b/g/a/a/r.java new file mode 100644 index 0000000000..c202b5a553 --- /dev/null +++ b/app/src/main/java/b/g/a/a/r.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonKey */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface r { + boolean value() default true; +} diff --git a/app/src/main/java/b/g/a/a/s.java b/app/src/main/java/b/g/a/a/s.java new file mode 100644 index 0000000000..94af71d04d --- /dev/null +++ b/app/src/main/java/b/g/a/a/s.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonManagedReference */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface s { + String value() default "defaultReference"; +} diff --git a/app/src/main/java/b/g/a/a/t.java b/app/src/main/java/b/g/a/a/t.java new file mode 100644 index 0000000000..1d0a51fb07 --- /dev/null +++ b/app/src/main/java/b/g/a/a/t.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonMerge */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface t { + m0 value() default m0.TRUE; +} diff --git a/app/src/main/java/b/g/a/a/u.java b/app/src/main/java/b/g/a/a/u.java new file mode 100644 index 0000000000..dbb00cda0d --- /dev/null +++ b/app/src/main/java/b/g/a/a/u.java @@ -0,0 +1,31 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonProperty */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface u { + + /* compiled from: JsonProperty */ + public enum a { + AUTO, + READ_ONLY, + WRITE_ONLY, + READ_WRITE + } + + a access() default a.AUTO; + + String defaultValue() default ""; + + int index() default -1; + + String namespace() default ""; + + boolean required() default false; + + String value() default ""; +} diff --git a/app/src/main/java/b/g/a/a/v.java b/app/src/main/java/b/g/a/a/v.java new file mode 100644 index 0000000000..8cc6548495 --- /dev/null +++ b/app/src/main/java/b/g/a/a/v.java @@ -0,0 +1,14 @@ +package b.g.a.a; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonPropertyDescription */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Documented +@Retention(RetentionPolicy.RUNTIME) +public @interface v { + String value() default ""; +} diff --git a/app/src/main/java/b/g/a/a/w.java b/app/src/main/java/b/g/a/a/w.java new file mode 100644 index 0000000000..83ee441209 --- /dev/null +++ b/app/src/main/java/b/g/a/a/w.java @@ -0,0 +1,14 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonPropertyOrder */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface w { + boolean alphabetic() default false; + + String[] value() default {}; +} diff --git a/app/src/main/java/b/g/a/a/x.java b/app/src/main/java/b/g/a/a/x.java new file mode 100644 index 0000000000..345aa64bb8 --- /dev/null +++ b/app/src/main/java/b/g/a/a/x.java @@ -0,0 +1,12 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonRawValue */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface x { + boolean value() default true; +} diff --git a/app/src/main/java/b/g/a/a/y.java b/app/src/main/java/b/g/a/a/y.java new file mode 100644 index 0000000000..71f4b29fcd --- /dev/null +++ b/app/src/main/java/b/g/a/a/y.java @@ -0,0 +1,14 @@ +package b.g.a.a; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonRootName */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface y { + String namespace() default ""; + + String value(); +} diff --git a/app/src/main/java/b/g/a/a/z.java b/app/src/main/java/b/g/a/a/z.java new file mode 100644 index 0000000000..b39e2034cf --- /dev/null +++ b/app/src/main/java/b/g/a/a/z.java @@ -0,0 +1,81 @@ +package b.g.a.a; + +import java.io.Serializable; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonSetter */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface z { + + /* compiled from: JsonSetter */ + public static class a implements Serializable { + public static final a j; + private static final long serialVersionUID = 1; + private final h0 _contentNulls; + private final h0 _nulls; + + static { + h0 h0Var = h0.DEFAULT; + j = new a(h0Var, h0Var); + } + + public a(h0 h0Var, h0 h0Var2) { + this._nulls = h0Var; + this._contentNulls = h0Var2; + } + + public h0 a() { + h0 h0Var = this._contentNulls; + if (h0Var == h0.DEFAULT) { + return null; + } + return h0Var; + } + + public h0 b() { + h0 h0Var = this._nulls; + if (h0Var == h0.DEFAULT) { + return null; + } + return h0Var; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != a.class) { + return false; + } + a aVar = (a) obj; + return aVar._nulls == this._nulls && aVar._contentNulls == this._contentNulls; + } + + @Override // java.lang.Object + public int hashCode() { + return this._nulls.ordinal() + (this._contentNulls.ordinal() << 2); + } + + public Object readResolve() { + h0 h0Var = this._nulls; + h0 h0Var2 = this._contentNulls; + h0 h0Var3 = h0.DEFAULT; + return h0Var == h0Var3 && h0Var2 == h0Var3 ? j : this; + } + + @Override // java.lang.Object + public String toString() { + return String.format("JsonSetter.Value(valueNulls=%s,contentNulls=%s)", this._nulls, this._contentNulls); + } + } + + h0 contentNulls() default h0.DEFAULT; + + h0 nulls() default h0.DEFAULT; + + String value() default ""; +} diff --git a/app/src/main/java/b/g/a/b/a.java b/app/src/main/java/b/g/a/b/a.java new file mode 100644 index 0000000000..593e05cac1 --- /dev/null +++ b/app/src/main/java/b/g/a/b/a.java @@ -0,0 +1,202 @@ +package b.g.a.b; + +import java.io.Serializable; +import java.util.Arrays; +/* compiled from: Base64Variant */ +public final class a implements Serializable { + private static final long serialVersionUID = 1; + private final int _maxLineLength; + public final String _name; + private final char _paddingChar; + private final EnumC0070a _paddingReadBehaviour; + private final boolean _writePadding; + public final transient int[] j; + public final transient char[] k; + public final transient byte[] l; + + /* compiled from: Base64Variant */ + /* renamed from: b.g.a.b.a$a reason: collision with other inner class name */ + public enum EnumC0070a { + PADDING_FORBIDDEN, + PADDING_REQUIRED, + PADDING_ALLOWED + } + + public a(a aVar, String str, int i) { + this(aVar, str, aVar._writePadding, aVar._paddingChar, aVar._paddingReadBehaviour, i); + } + + public a(a aVar, String str, boolean z2, char c, int i) { + this(aVar, str, z2, c, aVar._paddingReadBehaviour, i); + } + + public a(a aVar, String str, boolean z2, char c, EnumC0070a aVar2, int i) { + int[] iArr = new int[128]; + this.j = iArr; + char[] cArr = new char[64]; + this.k = cArr; + byte[] bArr = new byte[64]; + this.l = bArr; + this._name = str; + byte[] bArr2 = aVar.l; + System.arraycopy(bArr2, 0, bArr, 0, bArr2.length); + char[] cArr2 = aVar.k; + System.arraycopy(cArr2, 0, cArr, 0, cArr2.length); + int[] iArr2 = aVar.j; + System.arraycopy(iArr2, 0, iArr, 0, iArr2.length); + this._writePadding = z2; + this._paddingChar = c; + this._maxLineLength = i; + this._paddingReadBehaviour = aVar2; + } + + public a(String str, String str2, boolean z2, char c, int i) { + int[] iArr = new int[128]; + this.j = iArr; + char[] cArr = new char[64]; + this.k = cArr; + this.l = new byte[64]; + this._name = str; + this._writePadding = z2; + this._paddingChar = c; + this._maxLineLength = i; + int length = str2.length(); + if (length == 64) { + str2.getChars(0, length, cArr, 0); + Arrays.fill(iArr, -1); + for (int i2 = 0; i2 < length; i2++) { + char c2 = this.k[i2]; + this.l[i2] = (byte) c2; + this.j[c2] = i2; + } + if (z2) { + this.j[c] = -2; + } + this._paddingReadBehaviour = z2 ? EnumC0070a.PADDING_REQUIRED : EnumC0070a.PADDING_FORBIDDEN; + return; + } + throw new IllegalArgumentException(b.d.b.a.a.q("Base64Alphabet length must be exactly 64 (was ", length, ")")); + } + + public String a(byte[] bArr) { + int length = bArr.length; + StringBuilder sb = new StringBuilder((length >> 2) + length + (length >> 3)); + int i = this._maxLineLength >> 2; + int i2 = 0; + int i3 = length - 3; + while (i2 <= i3) { + int i4 = i2 + 1; + int i5 = i4 + 1; + int i6 = i5 + 1; + int i7 = (((bArr[i2] << 8) | (bArr[i4] & 255)) << 8) | (bArr[i5] & 255); + sb.append(this.k[(i7 >> 18) & 63]); + sb.append(this.k[(i7 >> 12) & 63]); + sb.append(this.k[(i7 >> 6) & 63]); + sb.append(this.k[i7 & 63]); + i--; + if (i <= 0) { + sb.append('\\'); + sb.append('n'); + i = this._maxLineLength >> 2; + } + i2 = i6; + } + int i8 = length - i2; + if (i8 > 0) { + int i9 = i2 + 1; + int i10 = bArr[i2] << 16; + if (i8 == 2) { + i10 |= (bArr[i9] & 255) << 8; + } + sb.append(this.k[(i10 >> 18) & 63]); + sb.append(this.k[(i10 >> 12) & 63]); + if (this._writePadding) { + sb.append(i8 == 2 ? this.k[(i10 >> 6) & 63] : this._paddingChar); + sb.append(this._paddingChar); + } else if (i8 == 2) { + sb.append(this.k[(i10 >> 6) & 63]); + } + } + return sb.toString(); + } + + public int b(int i, char[] cArr, int i2) { + int i3 = i2 + 1; + char[] cArr2 = this.k; + cArr[i2] = cArr2[(i >> 18) & 63]; + int i4 = i3 + 1; + cArr[i3] = cArr2[(i >> 12) & 63]; + int i5 = i4 + 1; + cArr[i4] = cArr2[(i >> 6) & 63]; + int i6 = i5 + 1; + cArr[i5] = cArr2[i & 63]; + return i6; + } + + public int c(int i, int i2, char[] cArr, int i3) { + int i4 = i3 + 1; + char[] cArr2 = this.k; + cArr[i3] = cArr2[(i >> 18) & 63]; + int i5 = i4 + 1; + cArr[i4] = cArr2[(i >> 12) & 63]; + if (this._writePadding) { + int i6 = i5 + 1; + cArr[i5] = i2 == 2 ? cArr2[(i >> 6) & 63] : this._paddingChar; + int i7 = i6 + 1; + cArr[i6] = this._paddingChar; + return i7; + } else if (i2 != 2) { + return i5; + } else { + int i8 = i5 + 1; + cArr[i5] = cArr2[(i >> 6) & 63]; + return i8; + } + } + + public int d() { + return this._maxLineLength; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != a.class) { + return false; + } + a aVar = (a) obj; + return aVar._paddingChar == this._paddingChar && aVar._maxLineLength == this._maxLineLength && aVar._writePadding == this._writePadding && aVar._paddingReadBehaviour == this._paddingReadBehaviour && this._name.equals(aVar._name); + } + + @Override // java.lang.Object + public int hashCode() { + return this._name.hashCode(); + } + + public Object readResolve() { + String str = this._name; + a aVar = b.a; + if (!aVar._name.equals(str)) { + aVar = b.f642b; + if (!aVar._name.equals(str)) { + aVar = b.c; + if (!aVar._name.equals(str)) { + aVar = b.d; + if (!aVar._name.equals(str)) { + throw new IllegalArgumentException(b.d.b.a.a.v("No Base64Variant with name ", str == null ? "" : b.d.b.a.a.w("'", str, "'"))); + } + } + } + } + boolean z2 = this._writePadding; + boolean z3 = aVar._writePadding; + return (z2 == z3 && this._paddingChar == aVar._paddingChar && this._paddingReadBehaviour == aVar._paddingReadBehaviour && this._maxLineLength == aVar._maxLineLength && z2 == z3) ? aVar : new a(aVar, this._name, z2, this._paddingChar, this._paddingReadBehaviour, this._maxLineLength); + } + + @Override // java.lang.Object + public String toString() { + return this._name; + } +} diff --git a/app/src/main/java/b/g/a/b/b.java b/app/src/main/java/b/g/a/b/b.java new file mode 100644 index 0000000000..cbdc77ae1a --- /dev/null +++ b/app/src/main/java/b/g/a/b/b.java @@ -0,0 +1,24 @@ +package b.g.a.b; + +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import com.google.android.material.badge.BadgeDrawable; +/* compiled from: Base64Variants */ +public final class b { + public static final a a; + + /* renamed from: b reason: collision with root package name */ + public static final a f642b; + public static final a c; + public static final a d; + + static { + a aVar = new a("MIME", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", true, '=', 76); + a = aVar; + f642b = new a(aVar, "MIME-NO-LINEFEEDS", Integer.MAX_VALUE); + c = new a(aVar, "PEM", true, '=', 64); + StringBuilder sb = new StringBuilder("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"); + sb.setCharAt(sb.indexOf(BadgeDrawable.DEFAULT_EXCEED_MAX_BADGE_NUMBER_SUFFIX), '-'); + sb.setCharAt(sb.indexOf(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN), '_'); + d = new a("MODIFIED-FOR-URL", sb.toString(), false, (char) 0, Integer.MAX_VALUE); + } +} diff --git a/app/src/main/java/b/g/a/b/c.java b/app/src/main/java/b/g/a/b/c.java new file mode 100644 index 0000000000..60ef66c339 --- /dev/null +++ b/app/src/main/java/b/g/a/b/c.java @@ -0,0 +1,131 @@ +package b.g.a.b; + +import b.g.a.b.d; +import b.g.a.b.f; +import b.g.a.b.p.b; +import b.g.a.b.p.h; +import b.g.a.b.t.g; +import b.g.a.b.t.l; +import java.io.Serializable; +import java.lang.ref.SoftReference; +/* compiled from: JsonFactory */ +public class c extends n implements Serializable { + public static final int j = a.h(); + public static final int k = f.a.f(); + public static final int l = d.a.f(); + public static final k m = b.g.a.b.t.d.j; + private static final long serialVersionUID = 2; + public b _characterEscapes; + public int _factoryFeatures; + public int _generatorFeatures; + public b.g.a.b.p.d _inputDecorator; + public int _maximumNonEscapedChar; + public i _objectCodec; + public h _outputDecorator; + public int _parserFeatures; + public final char _quoteChar; + public k _rootValueSeparator; + + /* compiled from: JsonFactory */ + public enum a implements g { + INTERN_FIELD_NAMES(true), + CANONICALIZE_FIELD_NAMES(true), + FAIL_ON_SYMBOL_HASH_OVERFLOW(true), + USE_THREAD_LOCAL_FOR_BUFFER_RECYCLING(true); + + private final boolean _defaultState; + + public a(boolean z2) { + this._defaultState = z2; + } + + public static int h() { + a[] values = values(); + int i = 0; + for (int i2 = 0; i2 < 4; i2++) { + a aVar = values[i2]; + if (aVar._defaultState) { + i |= aVar.g(); + } + } + return i; + } + + @Override // b.g.a.b.t.g + public boolean f() { + return this._defaultState; + } + + @Override // b.g.a.b.t.g + public int g() { + return 1 << ordinal(); + } + } + + public c() { + this(null); + } + + public c(c cVar, i iVar) { + b.g.a.b.r.b.a(); + b.g.a.b.r.a.a(); + this._factoryFeatures = j; + this._parserFeatures = k; + this._generatorFeatures = l; + this._rootValueSeparator = m; + this._objectCodec = iVar; + this._factoryFeatures = cVar._factoryFeatures; + this._parserFeatures = cVar._parserFeatures; + this._generatorFeatures = cVar._generatorFeatures; + this._rootValueSeparator = cVar._rootValueSeparator; + this._maximumNonEscapedChar = cVar._maximumNonEscapedChar; + this._quoteChar = cVar._quoteChar; + } + + public c(i iVar) { + b.g.a.b.r.b.a(); + b.g.a.b.r.a.a(); + this._factoryFeatures = j; + this._parserFeatures = k; + this._generatorFeatures = l; + this._rootValueSeparator = m; + this._objectCodec = iVar; + this._quoteChar = '\"'; + } + + public b.g.a.b.t.a a() { + SoftReference softReference; + if (!((a.USE_THREAD_LOCAL_FOR_BUFFER_RECYCLING.g() & this._factoryFeatures) != 0)) { + return new b.g.a.b.t.a(); + } + SoftReference softReference2 = b.g.a.b.t.b.f663b.get(); + b.g.a.b.t.a aVar = softReference2 == null ? null : softReference2.get(); + if (aVar == null) { + aVar = new b.g.a.b.t.a(); + l lVar = b.g.a.b.t.b.a; + if (lVar != null) { + softReference = new SoftReference<>(aVar, lVar.f665b); + lVar.a.put(softReference, Boolean.TRUE); + while (true) { + SoftReference softReference3 = (SoftReference) lVar.f665b.poll(); + if (softReference3 == null) { + break; + } + lVar.a.remove(softReference3); + } + } else { + softReference = new SoftReference<>(aVar); + } + b.g.a.b.t.b.f663b.set(softReference); + } + return aVar; + } + + public i b() { + return this._objectCodec; + } + + public Object readResolve() { + return new c(this, this._objectCodec); + } +} diff --git a/app/src/main/java/b/g/a/b/d.java b/app/src/main/java/b/g/a/b/d.java new file mode 100644 index 0000000000..dbca1bf993 --- /dev/null +++ b/app/src/main/java/b/g/a/b/d.java @@ -0,0 +1,165 @@ +package b.g.a.b; + +import b.g.a.b.t.h; +import java.io.Closeable; +import java.io.Flushable; +import java.io.IOException; +import java.io.InputStream; +import java.math.BigDecimal; +import java.math.BigInteger; +/* compiled from: JsonGenerator */ +public abstract class d implements Closeable, Flushable { + public static final h j; + public static final h k; + public j l; + + /* compiled from: JsonGenerator */ + public enum a { + AUTO_CLOSE_TARGET(true), + AUTO_CLOSE_JSON_CONTENT(true), + FLUSH_PASSED_TO_STREAM(true), + QUOTE_FIELD_NAMES(true), + QUOTE_NON_NUMERIC_NUMBERS(true), + ESCAPE_NON_ASCII(false), + WRITE_NUMBERS_AS_STRINGS(false), + WRITE_BIGDECIMAL_AS_PLAIN(false), + STRICT_DUPLICATE_DETECTION(false), + IGNORE_UNKNOWN(false); + + private final boolean _defaultState; + private final int _mask = (1 << ordinal()); + + public a(boolean z2) { + this._defaultState = z2; + } + + public static int f() { + a[] values = values(); + int i = 0; + for (int i2 = 0; i2 < 10; i2++) { + a aVar = values[i2]; + if (aVar._defaultState) { + i |= aVar._mask; + } + } + return i; + } + + public boolean g(int i) { + return (i & this._mask) != 0; + } + + public int h() { + return this._mask; + } + } + + static { + h a2 = h.a(m.values()); + j = a2; + k = a2.b(m.CAN_WRITE_FORMATTED_NUMBERS); + a2.b(m.CAN_WRITE_BINARY_NATIVELY); + } + + public abstract void A() throws IOException; + + public abstract void C(double d) throws IOException; + + public abstract void D(float f) throws IOException; + + public abstract void H(int i) throws IOException; + + public abstract void I(long j2) throws IOException; + + public abstract void J(String str) throws IOException; + + public abstract void L(BigDecimal bigDecimal) throws IOException; + + public abstract void N(BigInteger bigInteger) throws IOException; + + public void O(short s2) throws IOException { + H(s2); + } + + public abstract void R(char c) throws IOException; + + public void S(k kVar) throws IOException { + T(kVar.getValue()); + } + + public abstract void T(String str) throws IOException; + + public abstract void U(char[] cArr, int i, int i2) throws IOException; + + public abstract void V(String str) throws IOException; + + public abstract void W() throws IOException; + + public void X(Object obj) throws IOException { + W(); + e(obj); + } + + public final void a(int i, int i2, int i3) { + if (i2 < 0 || i2 + i3 > i) { + throw new IllegalArgumentException(String.format("invalid argument(s) (offset=%d, length=%d) for input array of %d element", Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf(i))); + } + } + + public abstract d b(a aVar); + + public void b0(Object obj, int i) throws IOException { + W(); + e(obj); + } + + public abstract g c(); + + public abstract void c0() throws IOException; + + @Override // java.io.Closeable, java.lang.AutoCloseable + public abstract void close() throws IOException; + + public abstract boolean d(a aVar); + + public void d0(Object obj) throws IOException { + c0(); + e(obj); + } + + public void e(Object obj) { + g c = c(); + if (c != null) { + c.d(obj); + } + } + + public abstract int f(a aVar, InputStream inputStream, int i) throws IOException; + + public void f0(Object obj, int i) throws IOException { + c0(); + e(obj); + } + + public abstract void g0(k kVar) throws IOException; + + public abstract void j0(String str) throws IOException; + + public abstract void m0(char[] cArr, int i, int i2) throws IOException; + + public abstract void n(a aVar, byte[] bArr, int i, int i2) throws IOException; + + public void q(byte[] bArr) throws IOException { + n(b.f642b, bArr, 0, bArr.length); + } + + public abstract void s(boolean z2) throws IOException; + + public abstract void t() throws IOException; + + public abstract void u() throws IOException; + + public abstract void x(k kVar) throws IOException; + + public abstract void y(String str) throws IOException; +} diff --git a/app/src/main/java/b/g/a/b/e.java b/app/src/main/java/b/g/a/b/e.java new file mode 100644 index 0000000000..270012ba6b --- /dev/null +++ b/app/src/main/java/b/g/a/b/e.java @@ -0,0 +1,122 @@ +package b.g.a.b; + +import b.d.b.a.a; +import com.adjust.sdk.Constants; +import java.io.Serializable; +import java.nio.charset.Charset; +/* compiled from: JsonLocation */ +public class e implements Serializable { + public static final e j = new e(null, -1, -1, -1, -1); + private static final long serialVersionUID = 1; + public final int _columnNr; + public final int _lineNr; + public final long _totalBytes; + public final long _totalChars; + public final transient Object k = null; + + public e(Object obj, long j2, long j3, int i, int i2) { + this._totalBytes = j2; + this._totalChars = j3; + this._lineNr = i; + this._columnNr = i2; + } + + public final int a(StringBuilder sb, String str) { + sb.append('\"'); + sb.append(str); + sb.append('\"'); + return str.length(); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || !(obj instanceof e)) { + return false; + } + e eVar = (e) obj; + Object obj2 = this.k; + if (obj2 == null) { + if (eVar.k != null) { + return false; + } + } else if (!obj2.equals(eVar.k)) { + return false; + } + return this._lineNr == eVar._lineNr && this._columnNr == eVar._columnNr && this._totalChars == eVar._totalChars && this._totalBytes == eVar._totalBytes; + } + + @Override // java.lang.Object + public int hashCode() { + Object obj = this.k; + return ((((obj == null ? 1 : obj.hashCode()) ^ this._lineNr) + this._columnNr) ^ ((int) this._totalChars)) + ((int) this._totalBytes); + } + + /* JADX WARNING: Removed duplicated region for block: B:27:0x00bb */ + @Override // java.lang.Object + public String toString() { + int i; + int i2; + StringBuilder sb = new StringBuilder(80); + sb.append("[Source: "); + Object obj = this.k; + if (obj == null) { + sb.append("UNKNOWN"); + } else { + Class cls = obj instanceof Class ? (Class) obj : obj.getClass(); + String name = cls.getName(); + if (name.startsWith("java.")) { + name = cls.getSimpleName(); + } else if (obj instanceof byte[]) { + name = "byte[]"; + } else if (obj instanceof char[]) { + name = "char[]"; + } + sb.append('('); + sb.append(name); + sb.append(')'); + int i3 = 0; + String str = " chars"; + if (obj instanceof CharSequence) { + CharSequence charSequence = (CharSequence) obj; + i = charSequence.length(); + i2 = a(sb, charSequence.subSequence(0, Math.min(i, 500)).toString()); + } else if (obj instanceof char[]) { + char[] cArr = (char[]) obj; + i = cArr.length; + String str2 = new String(cArr, 0, Math.min(i, 500)); + sb.append('\"'); + sb.append(str2); + sb.append('\"'); + i2 = str2.length(); + } else { + if (obj instanceof byte[]) { + byte[] bArr = (byte[]) obj; + int min = Math.min(bArr.length, 500); + String str3 = new String(bArr, 0, min, Charset.forName(Constants.ENCODING)); + sb.append('\"'); + sb.append(str3); + sb.append('\"'); + str3.length(); + i3 = bArr.length - min; + str = " bytes"; + } + if (i3 > 0) { + sb.append("[truncated "); + sb.append(i3); + sb.append(str); + sb.append(']'); + } + } + i3 = i - i2; + if (i3 > 0) { + } + } + sb.append("; line: "); + sb.append(this._lineNr); + sb.append(", column: "); + return a.z(sb, this._columnNr, ']'); + } +} diff --git a/app/src/main/java/b/g/a/b/f.java b/app/src/main/java/b/g/a/b/f.java new file mode 100644 index 0000000000..b3ab53ebaa --- /dev/null +++ b/app/src/main/java/b/g/a/b/f.java @@ -0,0 +1,67 @@ +package b.g.a.b; + +import b.g.a.b.t.h; +import java.io.Closeable; +/* compiled from: JsonParser */ +public abstract class f implements Closeable { + + /* compiled from: JsonParser */ + public enum a { + AUTO_CLOSE_SOURCE(true), + ALLOW_COMMENTS(false), + ALLOW_YAML_COMMENTS(false), + ALLOW_UNQUOTED_FIELD_NAMES(false), + ALLOW_SINGLE_QUOTES(false), + ALLOW_UNQUOTED_CONTROL_CHARS(false), + ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER(false), + ALLOW_NUMERIC_LEADING_ZEROS(false), + ALLOW_LEADING_DECIMAL_POINT_FOR_NUMBERS(false), + ALLOW_NON_NUMERIC_NUMBERS(false), + ALLOW_MISSING_VALUES(false), + ALLOW_TRAILING_COMMA(false), + STRICT_DUPLICATE_DETECTION(false), + IGNORE_UNDEFINED(false), + INCLUDE_SOURCE_IN_LOCATION(true); + + private final boolean _defaultState; + private final int _mask = (1 << ordinal()); + + public a(boolean z2) { + this._defaultState = z2; + } + + public static int f() { + a[] values = values(); + int i = 0; + for (int i2 = 0; i2 < 15; i2++) { + a aVar = values[i2]; + if (aVar._defaultState) { + i |= aVar._mask; + } + } + return i; + } + } + + /* compiled from: JsonParser */ + public enum b { + INT, + LONG, + BIG_INTEGER, + FLOAT, + DOUBLE, + BIG_DECIMAL + } + + static { + h.a(l.values()); + } + + public f() { + } + + public f(int i) { + } + + public abstract e a(); +} diff --git a/app/src/main/java/b/g/a/b/g.java b/app/src/main/java/b/g/a/b/g.java new file mode 100644 index 0000000000..32419c8e64 --- /dev/null +++ b/app/src/main/java/b/g/a/b/g.java @@ -0,0 +1,89 @@ +package b.g.a.b; + +import b.g.a.b.p.a; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +/* compiled from: JsonStreamContext */ +public abstract class g { + public int a; + + /* renamed from: b reason: collision with root package name */ + public int f647b; + + public g() { + } + + public g(int i, int i2) { + this.a = i; + this.f647b = i2; + } + + public abstract String a(); + + public final boolean b() { + return this.a == 1; + } + + public final boolean c() { + return this.a == 2; + } + + public abstract void d(Object obj); + + public String e() { + int i = this.a; + return i != 0 ? i != 1 ? i != 2 ? "?" : "Object" : "Array" : "root"; + } + + public String toString() { + StringBuilder sb = new StringBuilder(64); + int i = this.a; + if (i != 0) { + int i2 = 0; + if (i != 1) { + sb.append('{'); + String a = a(); + if (a != null) { + sb.append('\"'); + int[] iArr = a.f; + int length = iArr.length; + int length2 = a.length(); + while (i2 < length2) { + char charAt = a.charAt(i2); + if (charAt >= length || iArr[charAt] == 0) { + sb.append(charAt); + } else { + sb.append('\\'); + int i3 = iArr[charAt]; + if (i3 < 0) { + sb.append('u'); + sb.append('0'); + sb.append('0'); + char[] cArr = a.a; + sb.append(cArr[charAt >> 4]); + sb.append(cArr[charAt & 15]); + } else { + sb.append((char) i3); + } + } + i2++; + } + sb.append('\"'); + } else { + sb.append('?'); + } + sb.append('}'); + } else { + sb.append('['); + int i4 = this.f647b; + if (i4 >= 0) { + i2 = i4; + } + sb.append(i2); + sb.append(']'); + } + } else { + sb.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/g/a/b/h.java b/app/src/main/java/b/g/a/b/h.java new file mode 100644 index 0000000000..16ad395d81 --- /dev/null +++ b/app/src/main/java/b/g/a/b/h.java @@ -0,0 +1,56 @@ +package b.g.a.b; +/* compiled from: JsonToken */ +public enum h { + NOT_AVAILABLE(null, -1), + START_OBJECT("{", 1), + END_OBJECT("}", 2), + START_ARRAY("[", 3), + END_ARRAY("]", 4), + FIELD_NAME(null, 5), + VALUE_EMBEDDED_OBJECT(null, 12), + VALUE_STRING(null, 6), + VALUE_NUMBER_INT(null, 7), + VALUE_NUMBER_FLOAT(null, 8), + VALUE_TRUE("true", 9), + VALUE_FALSE("false", 10), + VALUE_NULL("null", 11); + + public final int _id; + public final boolean _isBoolean; + public final boolean _isNumber; + public final boolean _isScalar; + public final boolean _isStructEnd; + public final boolean _isStructStart; + public final String _serialized; + public final byte[] _serializedBytes; + public final char[] _serializedChars; + + public h(String str, int i) { + boolean z2 = false; + if (str == null) { + this._serialized = null; + this._serializedChars = null; + this._serializedBytes = null; + } else { + this._serialized = str; + char[] charArray = str.toCharArray(); + this._serializedChars = charArray; + int length = charArray.length; + this._serializedBytes = new byte[length]; + for (int i2 = 0; i2 < length; i2++) { + this._serializedBytes[i2] = (byte) this._serializedChars[i2]; + } + } + this._id = i; + this._isBoolean = i == 10 || i == 9; + this._isNumber = i == 7 || i == 8; + boolean z3 = i == 1 || i == 3; + this._isStructStart = z3; + boolean z4 = i == 2 || i == 4; + this._isStructEnd = z4; + if (!z3 && !z4 && i != 5 && i != -1) { + z2 = true; + } + this._isScalar = z2; + } +} diff --git a/app/src/main/java/b/g/a/b/i.java b/app/src/main/java/b/g/a/b/i.java new file mode 100644 index 0000000000..94d1ad9178 --- /dev/null +++ b/app/src/main/java/b/g/a/b/i.java @@ -0,0 +1,4 @@ +package b.g.a.b; +/* compiled from: ObjectCodec */ +public abstract class i { +} diff --git a/app/src/main/java/b/g/a/b/j.java b/app/src/main/java/b/g/a/b/j.java new file mode 100644 index 0000000000..0fd7de42a3 --- /dev/null +++ b/app/src/main/java/b/g/a/b/j.java @@ -0,0 +1,33 @@ +package b.g.a.b; + +import java.io.IOException; +/* compiled from: PrettyPrinter */ +public interface j { + + /* renamed from: b reason: collision with root package name */ + public static final b.g.a.b.t.j f649b = new b.g.a.b.t.j(); + + static { + new b.g.a.b.p.j(" "); + } + + void a(d dVar) throws IOException; + + void b(d dVar) throws IOException; + + void c(d dVar) throws IOException; + + void d(d dVar) throws IOException; + + void f(d dVar, int i) throws IOException; + + void g(d dVar) throws IOException; + + void h(d dVar) throws IOException; + + void i(d dVar) throws IOException; + + void j(d dVar, int i) throws IOException; + + void k(d dVar) throws IOException; +} diff --git a/app/src/main/java/b/g/a/b/k.java b/app/src/main/java/b/g/a/b/k.java new file mode 100644 index 0000000000..bd0839e659 --- /dev/null +++ b/app/src/main/java/b/g/a/b/k.java @@ -0,0 +1,11 @@ +package b.g.a.b; +/* compiled from: SerializableString */ +public interface k { + char[] a(); + + int b(char[] cArr, int i); + + int c(char[] cArr, int i); + + String getValue(); +} diff --git a/app/src/main/java/b/g/a/b/l.java b/app/src/main/java/b/g/a/b/l.java new file mode 100644 index 0000000000..6561ecedec --- /dev/null +++ b/app/src/main/java/b/g/a/b/l.java @@ -0,0 +1,26 @@ +package b.g.a.b; + +import b.g.a.b.t.g; +/* compiled from: StreamReadCapability */ +public enum l implements g { + DUPLICATE_PROPERTIES(false), + SCALARS_AS_OBJECTS(false), + UNTYPED_SCALARS(false); + + private final boolean _defaultState; + private final int _mask = (1 << ordinal()); + + public l(boolean z2) { + this._defaultState = z2; + } + + @Override // b.g.a.b.t.g + public boolean f() { + return this._defaultState; + } + + @Override // b.g.a.b.t.g + public int g() { + return this._mask; + } +} diff --git a/app/src/main/java/b/g/a/b/m.java b/app/src/main/java/b/g/a/b/m.java new file mode 100644 index 0000000000..15d5a9d312 --- /dev/null +++ b/app/src/main/java/b/g/a/b/m.java @@ -0,0 +1,25 @@ +package b.g.a.b; + +import b.g.a.b.t.g; +/* compiled from: StreamWriteCapability */ +public enum m implements g { + CAN_WRITE_BINARY_NATIVELY(false), + CAN_WRITE_FORMATTED_NUMBERS(false); + + private final boolean _defaultState; + private final int _mask = (1 << ordinal()); + + public m(boolean z2) { + this._defaultState = z2; + } + + @Override // b.g.a.b.t.g + public boolean f() { + return this._defaultState; + } + + @Override // b.g.a.b.t.g + public int g() { + return this._mask; + } +} diff --git a/app/src/main/java/b/g/a/b/n.java b/app/src/main/java/b/g/a/b/n.java new file mode 100644 index 0000000000..e657a23f8d --- /dev/null +++ b/app/src/main/java/b/g/a/b/n.java @@ -0,0 +1,7 @@ +package b.g.a.b; + +import java.io.Serializable; +/* compiled from: TokenStreamFactory */ +public abstract class n implements Serializable { + private static final long serialVersionUID = 2; +} diff --git a/app/src/main/java/b/g/a/b/o/a.java b/app/src/main/java/b/g/a/b/o/a.java new file mode 100644 index 0000000000..de9c2864f4 --- /dev/null +++ b/app/src/main/java/b/g/a/b/o/a.java @@ -0,0 +1,74 @@ +package b.g.a.b.o; + +import b.g.a.b.d; +import b.g.a.b.g; +import b.g.a.b.i; +import b.g.a.b.q.c; +import com.fasterxml.jackson.core.JsonGenerationException; +import java.io.IOException; +import java.math.BigDecimal; +/* compiled from: GeneratorBase */ +public abstract class a extends d { + public static final int m = ((d.a.WRITE_NUMBERS_AS_STRINGS.h() | d.a.ESCAPE_NON_ASCII.h()) | d.a.STRICT_DUPLICATE_DETECTION.h()); + public i n; + public int o; + public boolean p; + public c q; + + public a(int i, i iVar) { + this.o = i; + this.n = iVar; + this.q = new c(0, null, d.a.STRICT_DUPLICATE_DETECTION.g(i) ? new b.g.a.b.q.a(this) : null); + this.p = d.a.WRITE_NUMBERS_AS_STRINGS.g(i); + } + + @Override // b.g.a.b.d + public void V(String str) throws IOException { + t0("write raw value"); + T(str); + } + + @Override // b.g.a.b.d + public g c() { + return this.q; + } + + @Override // b.g.a.b.d + public final boolean d(d.a aVar) { + return (aVar.h() & this.o) != 0; + } + + @Override // b.g.a.b.d + public void e(Object obj) { + c cVar = this.q; + if (cVar != null) { + cVar.g = obj; + } + } + + public String o0(BigDecimal bigDecimal) throws IOException { + if (!d.a.WRITE_BIGDECIMAL_AS_PLAIN.g(this.o)) { + return bigDecimal.toString(); + } + int scale = bigDecimal.scale(); + if (scale >= -9999 && scale <= 9999) { + return bigDecimal.toPlainString(); + } + throw new JsonGenerationException(String.format("Attempt to write plain `java.math.BigDecimal` (see JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN) with illegal scale (%d): needs to be between [-%d, %d]", Integer.valueOf(scale), 9999, 9999), this); + } + + public abstract void r0(int i, int i2); + + public abstract void t0(String str) throws IOException; + + public d w0(int i, int i2) { + int i3 = this.o; + int i4 = (i & i2) | ((~i2) & i3); + int i5 = i3 ^ i4; + if (i5 != 0) { + this.o = i4; + r0(i4, i5); + } + return this; + } +} diff --git a/app/src/main/java/b/g/a/b/o/b.java b/app/src/main/java/b/g/a/b/o/b.java new file mode 100644 index 0000000000..1e1316409c --- /dev/null +++ b/app/src/main/java/b/g/a/b/o/b.java @@ -0,0 +1,32 @@ +package b.g.a.b.o; + +import androidx.recyclerview.widget.RecyclerView; +import b.g.a.b.f; +import java.math.BigDecimal; +import java.math.BigInteger; +/* compiled from: ParserMinimalBase */ +public abstract class b extends f { + public static final BigInteger j; + public static final BigInteger k; + public static final BigInteger l; + public static final BigInteger m; + + static { + BigInteger valueOf = BigInteger.valueOf(-2147483648L); + j = valueOf; + BigInteger valueOf2 = BigInteger.valueOf(2147483647L); + k = valueOf2; + BigInteger valueOf3 = BigInteger.valueOf(Long.MIN_VALUE); + l = valueOf3; + BigInteger valueOf4 = BigInteger.valueOf(RecyclerView.FOREVER_NS); + m = valueOf4; + new BigDecimal(valueOf3); + new BigDecimal(valueOf4); + new BigDecimal(valueOf); + new BigDecimal(valueOf2); + } + + public b(int i) { + super(i); + } +} diff --git a/app/src/main/java/b/g/a/b/p/a.java b/app/src/main/java/b/g/a/b/p/a.java new file mode 100644 index 0000000000..b8e02b0349 --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/a.java @@ -0,0 +1,105 @@ +package b.g.a.b.p; + +import java.util.Arrays; +/* compiled from: CharTypes */ +public final class a { + public static final char[] a; + + /* renamed from: b reason: collision with root package name */ + public static final byte[] f650b; + public static final int[] c; + public static final int[] d; + public static final int[] e; + public static final int[] f; + public static final int[] g; + + /* compiled from: CharTypes */ + /* renamed from: b.g.a.b.p.a$a reason: collision with other inner class name */ + public static class C0071a { + public static final C0071a a = new C0071a(); + + /* renamed from: b reason: collision with root package name */ + public int[][] f651b = new int[128][]; + } + + static { + char[] charArray = "0123456789ABCDEF".toCharArray(); + a = charArray; + int length = charArray.length; + f650b = new byte[length]; + for (int i = 0; i < length; i++) { + f650b[i] = (byte) a[i]; + } + int[] iArr = new int[256]; + for (int i2 = 0; i2 < 32; i2++) { + iArr[i2] = -1; + } + iArr[34] = 1; + iArr[92] = 1; + c = iArr; + int length2 = iArr.length; + int[] iArr2 = new int[length2]; + System.arraycopy(iArr, 0, iArr2, 0, length2); + for (int i3 = 128; i3 < 256; i3++) { + iArr2[i3] = (i3 & 224) == 192 ? 2 : (i3 & 240) == 224 ? 3 : (i3 & 248) == 240 ? 4 : -1; + } + d = iArr2; + int[] iArr3 = new int[256]; + Arrays.fill(iArr3, -1); + for (int i4 = 33; i4 < 256; i4++) { + if (Character.isJavaIdentifierPart((char) i4)) { + iArr3[i4] = 0; + } + } + iArr3[64] = 0; + iArr3[35] = 0; + iArr3[42] = 0; + iArr3[45] = 0; + iArr3[43] = 0; + e = iArr3; + int[] iArr4 = new int[256]; + System.arraycopy(iArr3, 0, iArr4, 0, 256); + Arrays.fill(iArr4, 128, 128, 0); + int[] iArr5 = new int[256]; + int[] iArr6 = d; + System.arraycopy(iArr6, 128, iArr5, 128, 128); + Arrays.fill(iArr5, 0, 32, -1); + iArr5[9] = 0; + iArr5[10] = 10; + iArr5[13] = 13; + iArr5[42] = 42; + int[] iArr7 = new int[256]; + System.arraycopy(iArr6, 128, iArr7, 128, 128); + Arrays.fill(iArr7, 0, 32, -1); + iArr7[32] = 1; + iArr7[9] = 1; + iArr7[10] = 10; + iArr7[13] = 13; + iArr7[47] = 47; + iArr7[35] = 35; + int[] iArr8 = new int[128]; + for (int i5 = 0; i5 < 32; i5++) { + iArr8[i5] = -1; + } + iArr8[34] = 34; + iArr8[92] = 92; + iArr8[8] = 98; + iArr8[9] = 116; + iArr8[12] = 102; + iArr8[10] = 110; + iArr8[13] = 114; + f = iArr8; + int[] iArr9 = new int[256]; + g = iArr9; + Arrays.fill(iArr9, -1); + for (int i6 = 0; i6 < 10; i6++) { + g[i6 + 48] = i6; + } + for (int i7 = 0; i7 < 6; i7++) { + int[] iArr10 = g; + int i8 = i7 + 10; + iArr10[i7 + 97] = i8; + iArr10[i7 + 65] = i8; + } + } +} diff --git a/app/src/main/java/b/g/a/b/p/b.java b/app/src/main/java/b/g/a/b/p/b.java new file mode 100644 index 0000000000..cc3fb60eec --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/b.java @@ -0,0 +1,6 @@ +package b.g.a.b.p; + +import java.io.Serializable; +/* compiled from: CharacterEscapes */ +public abstract class b implements Serializable { +} diff --git a/app/src/main/java/b/g/a/b/p/c.java b/app/src/main/java/b/g/a/b/p/c.java new file mode 100644 index 0000000000..866f6a0bed --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/c.java @@ -0,0 +1,29 @@ +package b.g.a.b.p; + +import b.g.a.b.t.a; +/* compiled from: IOContext */ +public class c { + public final Object a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f652b; + public final a c; + public byte[] d; + public char[] e; + + public c(a aVar, Object obj, boolean z2) { + this.c = aVar; + this.a = obj; + this.f652b = z2; + } + + public void a(byte[] bArr) { + byte[] bArr2 = this.d; + if (bArr == bArr2 || bArr.length >= bArr2.length) { + this.d = null; + this.c.c.set(3, bArr); + return; + } + throw new IllegalArgumentException("Trying to release buffer smaller than original"); + } +} diff --git a/app/src/main/java/b/g/a/b/p/d.java b/app/src/main/java/b/g/a/b/p/d.java new file mode 100644 index 0000000000..3989990733 --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/d.java @@ -0,0 +1,7 @@ +package b.g.a.b.p; + +import java.io.Serializable; +/* compiled from: InputDecorator */ +public abstract class d implements Serializable { + private static final long serialVersionUID = 1; +} diff --git a/app/src/main/java/b/g/a/b/p/e.java b/app/src/main/java/b/g/a/b/p/e.java new file mode 100644 index 0000000000..3b73b13167 --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/e.java @@ -0,0 +1,153 @@ +package b.g.a.b.p; + +import b.g.a.b.t.k; +import java.util.ArrayList; +import java.util.Arrays; +/* compiled from: JsonStringEncoder */ +public final class e { + public static final char[] a = ((char[]) a.a.clone()); + + /* renamed from: b reason: collision with root package name */ + public static final e f653b = new e(); + + static { + a.f650b.clone(); + } + + /* JADX WARNING: Code restructure failed: missing block: B:10:0x0031, code lost: + r14 = r7 + 1; + r7 = r17.charAt(r7); + r15 = r2[r7]; + */ + /* JADX WARNING: Code restructure failed: missing block: B:11:0x0039, code lost: + if (r15 >= 0) goto L_0x0051; + */ + /* JADX WARNING: Code restructure failed: missing block: B:12:0x003b, code lost: + r10[1] = 'u'; + r11 = b.g.a.b.p.e.a; + r10[4] = r11[r7 >> 4]; + r10[5] = r11[r7 & 15]; + r12 = 6; + */ + /* JADX WARNING: Code restructure failed: missing block: B:13:0x0051, code lost: + r10[1] = (char) r15; + */ + /* JADX WARNING: Code restructure failed: missing block: B:14:0x0054, code lost: + r7 = r9 + r12; + */ + /* JADX WARNING: Code restructure failed: missing block: B:15:0x0057, code lost: + if (r7 <= r1.length) goto L_0x0071; + */ + /* JADX WARNING: Code restructure failed: missing block: B:16:0x0059, code lost: + r7 = r1.length - r9; + */ + /* JADX WARNING: Code restructure failed: missing block: B:17:0x005b, code lost: + if (r7 <= 0) goto L_0x0060; + */ + /* JADX WARNING: Code restructure failed: missing block: B:18:0x005d, code lost: + java.lang.System.arraycopy(r10, 0, r1, r9, r7); + */ + /* JADX WARNING: Code restructure failed: missing block: B:19:0x0060, code lost: + if (r8 != null) goto L_0x0067; + */ + /* JADX WARNING: Code restructure failed: missing block: B:20:0x0062, code lost: + r8 = new b.g.a.b.t.k(null, r1); + */ + /* JADX WARNING: Code restructure failed: missing block: B:21:0x0067, code lost: + r1 = r8.e(); + r12 = r12 - r7; + java.lang.System.arraycopy(r10, r7, r1, 0, r12); + r9 = r12; + */ + /* JADX WARNING: Code restructure failed: missing block: B:22:0x0071, code lost: + java.lang.System.arraycopy(r10, 0, r1, r9, r12); + r9 = r7; + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x0075, code lost: + r7 = r14; + */ + /* JADX WARNING: Code restructure failed: missing block: B:7:0x0020, code lost: + r12 = 2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:8:0x0022, code lost: + if (r10 != null) goto L_0x0031; + */ + /* JADX WARNING: Code restructure failed: missing block: B:9:0x0024, code lost: + r10 = new char[6]; + r10[0] = '\\'; + r10[2] = '0'; + r10[3] = '0'; + */ + public char[] a(String str) { + int i; + char[] cArr = new char[120]; + int[] iArr = a.f; + int length = iArr.length; + int length2 = str.length(); + k kVar = null; + char[] cArr2 = null; + int i2 = 0; + int i3 = 0; + loop0: + while (i2 < length2) { + while (true) { + char charAt = str.charAt(i2); + if (charAt < length && iArr[charAt] != 0) { + break; + } + if (i3 >= cArr.length) { + if (kVar == null) { + kVar = new k(null, cArr); + } + cArr = kVar.e(); + i3 = 0; + } + cArr[i3] = charAt; + i2++; + i3++; + if (i2 >= length2) { + break loop0; + } + } + } + if (kVar == null) { + return Arrays.copyOfRange(cArr, 0, i3); + } + kVar.h = i3; + char[] cArr3 = kVar.j; + if (cArr3 == null) { + String str2 = kVar.i; + if (str2 != null) { + cArr3 = str2.toCharArray(); + } else { + int i4 = kVar.c; + if (i4 >= 0) { + cArr3 = k.a; + } else { + int length3 = i4 >= 0 ? 0 : cArr3 != null ? cArr3.length : str2 != null ? str2.length() : kVar.f + i3; + if (length3 < 1) { + cArr3 = k.a; + } else { + cArr3 = new char[length3]; + ArrayList arrayList = kVar.d; + if (arrayList != null) { + int size = arrayList.size(); + i = 0; + for (int i5 = 0; i5 < size; i5++) { + char[] cArr4 = kVar.d.get(i5); + int length4 = cArr4.length; + System.arraycopy(cArr4, 0, cArr3, i, length4); + i += length4; + } + } else { + i = 0; + } + System.arraycopy(kVar.g, 0, cArr3, i, kVar.h); + } + } + } + kVar.j = cArr3; + } + return cArr3; + } +} diff --git a/app/src/main/java/b/g/a/b/p/f.java b/app/src/main/java/b/g/a/b/p/f.java new file mode 100644 index 0000000000..2f4bc2cb7e --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/f.java @@ -0,0 +1,76 @@ +package b.g.a.b.p; + +import androidx.recyclerview.widget.RecyclerView; +/* compiled from: NumberInput */ +public final class f { + public static final String a = String.valueOf(Long.MIN_VALUE).substring(1); + + /* renamed from: b reason: collision with root package name */ + public static final String f654b = String.valueOf((long) RecyclerView.FOREVER_NS); + + public static long a(String str) { + int i; + if (str.length() > 9) { + return Long.parseLong(str); + } + boolean z2 = false; + char charAt = str.charAt(0); + int length = str.length(); + int i2 = 1; + if (charAt == '-') { + z2 = true; + } + if (z2) { + if (length == 1 || length > 10) { + i = Integer.parseInt(str); + return (long) i; + } + charAt = str.charAt(1); + i2 = 2; + } else if (length > 9) { + i = Integer.parseInt(str); + return (long) i; + } + if (charAt > '9' || charAt < '0') { + i = Integer.parseInt(str); + return (long) i; + } + int i3 = charAt - '0'; + if (i2 < length) { + int i4 = i2 + 1; + char charAt2 = str.charAt(i2); + if (charAt2 > '9' || charAt2 < '0') { + i = Integer.parseInt(str); + return (long) i; + } + i3 = (i3 * 10) + (charAt2 - '0'); + if (i4 < length) { + int i5 = i4 + 1; + char charAt3 = str.charAt(i4); + if (charAt3 > '9' || charAt3 < '0') { + i = Integer.parseInt(str); + return (long) i; + } + i3 = (i3 * 10) + (charAt3 - '0'); + if (i5 < length) { + while (true) { + int i6 = i5 + 1; + char charAt4 = str.charAt(i5); + if (charAt4 > '9' || charAt4 < '0') { + break; + } + i3 = (i3 * 10) + (charAt4 - '0'); + if (i6 >= length) { + break; + } + i5 = i6; + } + i = Integer.parseInt(str); + return (long) i; + } + } + } + i = z2 ? -i3 : i3; + return (long) i; + } +} diff --git a/app/src/main/java/b/g/a/b/p/g.java b/app/src/main/java/b/g/a/b/p/g.java new file mode 100644 index 0000000000..7efaf397b6 --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/g.java @@ -0,0 +1,196 @@ +package b.g.a.b.p; +/* compiled from: NumberOutput */ +public final class g { + public static final String a = String.valueOf(Integer.MIN_VALUE); + + /* renamed from: b reason: collision with root package name */ + public static final String f655b = String.valueOf(Long.MIN_VALUE); + public static final int[] c = new int[1000]; + + static { + int i = 0; + for (int i2 = 0; i2 < 10; i2++) { + for (int i3 = 0; i3 < 10; i3++) { + int i4 = 0; + while (i4 < 10) { + c[i] = ((i2 + 48) << 16) | ((i3 + 48) << 8) | (i4 + 48); + i4++; + i++; + } + } + } + } + + public static int a(int i, char[] cArr, int i2) { + int i3 = c[i]; + int i4 = i2 + 1; + cArr[i2] = (char) (i3 >> 16); + int i5 = i4 + 1; + cArr[i4] = (char) ((i3 >> 8) & 127); + int i6 = i5 + 1; + cArr[i5] = (char) (i3 & 127); + return i6; + } + + public static int b(int i, char[] cArr, int i2) { + int i3 = c[i]; + if (i > 9) { + if (i > 99) { + cArr[i2] = (char) (i3 >> 16); + i2++; + } + cArr[i2] = (char) ((i3 >> 8) & 127); + i2++; + } + int i4 = i2 + 1; + cArr[i2] = (char) (i3 & 127); + return i4; + } + + public static int c(int i, char[] cArr, int i2) { + int i3 = i / 1000; + int i4 = i - (i3 * 1000); + int i5 = i3 / 1000; + int[] iArr = c; + int i6 = iArr[i5]; + int i7 = i2 + 1; + cArr[i2] = (char) (i6 >> 16); + int i8 = i7 + 1; + cArr[i7] = (char) ((i6 >> 8) & 127); + int i9 = i8 + 1; + cArr[i8] = (char) (i6 & 127); + int i10 = iArr[i3 - (i5 * 1000)]; + int i11 = i9 + 1; + cArr[i9] = (char) (i10 >> 16); + int i12 = i11 + 1; + cArr[i11] = (char) ((i10 >> 8) & 127); + int i13 = i12 + 1; + cArr[i12] = (char) (i10 & 127); + int i14 = iArr[i4]; + int i15 = i13 + 1; + cArr[i13] = (char) (i14 >> 16); + int i16 = i15 + 1; + cArr[i15] = (char) ((i14 >> 8) & 127); + int i17 = i16 + 1; + cArr[i16] = (char) (i14 & 127); + return i17; + } + + public static int d(int i, char[] cArr, int i2) { + int i3; + if (i < 0) { + if (i == Integer.MIN_VALUE) { + String str = a; + int length = str.length(); + str.getChars(0, length, cArr, i2); + return length + i2; + } + cArr[i2] = '-'; + i = -i; + i2++; + } + if (i < 1000000) { + if (i >= 1000) { + int i4 = i / 1000; + return a(i - (i4 * 1000), cArr, b(i4, cArr, i2)); + } else if (i >= 10) { + return b(i, cArr, i2); + } else { + cArr[i2] = (char) (i + 48); + return i2 + 1; + } + } else if (i >= 1000000000) { + int i5 = i - 1000000000; + if (i5 >= 1000000000) { + i5 -= 1000000000; + i3 = i2 + 1; + cArr[i2] = '2'; + } else { + i3 = i2 + 1; + cArr[i2] = '1'; + } + return c(i5, cArr, i3); + } else { + int i6 = i / 1000; + int i7 = i6 / 1000; + return a(i - (i6 * 1000), cArr, a(i6 - (i7 * 1000), cArr, b(i7, cArr, i2))); + } + } + + public static int e(long j, char[] cArr, int i) { + int i2; + int i3; + if (j < 0) { + if (j > -2147483648L) { + return d((int) j, cArr, i); + } + if (j == Long.MIN_VALUE) { + String str = f655b; + int length = str.length(); + str.getChars(0, length, cArr, i); + return length + i; + } + cArr[i] = '-'; + j = -j; + i++; + } else if (j <= 2147483647L) { + return d((int) j, cArr, i); + } + long j2 = j / 1000000000; + long j3 = j - (j2 * 1000000000); + if (j2 < 1000000000) { + int i4 = (int) j2; + if (i4 >= 1000000) { + int i5 = i4 / 1000; + int i6 = i4 - (i5 * 1000); + int i7 = i5 / 1000; + int b2 = b(i7, cArr, i); + int[] iArr = c; + int i8 = iArr[i5 - (i7 * 1000)]; + int i9 = b2 + 1; + cArr[b2] = (char) (i8 >> 16); + int i10 = i9 + 1; + cArr[i9] = (char) ((i8 >> 8) & 127); + int i11 = i10 + 1; + cArr[i10] = (char) (i8 & 127); + int i12 = iArr[i6]; + int i13 = i11 + 1; + cArr[i11] = (char) (i12 >> 16); + int i14 = i13 + 1; + cArr[i13] = (char) ((i12 >> 8) & 127); + i3 = i14 + 1; + cArr[i14] = (char) (i12 & 127); + } else if (i4 < 1000) { + i2 = b(i4, cArr, i); + } else { + int i15 = i4 / 1000; + int i16 = i4 - (i15 * 1000); + int[] iArr2 = c; + int i17 = iArr2[i15]; + if (i15 > 9) { + if (i15 > 99) { + cArr[i] = (char) (i17 >> 16); + i++; + } + cArr[i] = (char) ((i17 >> 8) & 127); + i++; + } + int i18 = i + 1; + cArr[i] = (char) (i17 & 127); + int i19 = iArr2[i16]; + int i20 = i18 + 1; + cArr[i18] = (char) (i19 >> 16); + int i21 = i20 + 1; + cArr[i20] = (char) ((i19 >> 8) & 127); + i3 = i21 + 1; + cArr[i21] = (char) (i19 & 127); + } + i2 = i3; + } else { + long j4 = j2 / 1000000000; + int b3 = b((int) j4, cArr, i); + i2 = c((int) (j2 - (1000000000 * j4)), cArr, b3); + } + return c((int) j3, cArr, i2); + } +} diff --git a/app/src/main/java/b/g/a/b/p/h.java b/app/src/main/java/b/g/a/b/p/h.java new file mode 100644 index 0000000000..62c9d6f0d0 --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/h.java @@ -0,0 +1,6 @@ +package b.g.a.b.p; + +import java.io.Serializable; +/* compiled from: OutputDecorator */ +public abstract class h implements Serializable { +} diff --git a/app/src/main/java/b/g/a/b/p/i.java b/app/src/main/java/b/g/a/b/p/i.java new file mode 100644 index 0000000000..3b54118e1d --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/i.java @@ -0,0 +1,88 @@ +package b.g.a.b.p; + +import b.g.a.b.t.a; +import b.g.a.b.t.k; +import java.io.IOException; +import java.io.Writer; +/* compiled from: SegmentedStringWriter */ +public final class i extends Writer { + public final k j; + + public i(a aVar) { + this.j = new k(aVar); + } + + @Override // java.io.Writer, java.lang.Appendable + public Writer append(char c) { + write(c); + return this; + } + + @Override // java.io.Writer, java.lang.Appendable + public Writer append(CharSequence charSequence) { + String charSequence2 = charSequence.toString(); + this.j.a(charSequence2, 0, charSequence2.length()); + return this; + } + + @Override // java.io.Writer, java.lang.Appendable + public Writer append(CharSequence charSequence, int i, int i2) { + String charSequence2 = charSequence.subSequence(i, i2).toString(); + this.j.a(charSequence2, 0, charSequence2.length()); + return this; + } + + @Override // java.io.Writer, java.lang.Appendable + /* renamed from: append reason: collision with other method in class */ + public Appendable mo0append(char c) throws IOException { + write(c); + return this; + } + + @Override // java.io.Writer, java.io.Closeable, java.lang.AutoCloseable + public void close() { + } + + @Override // java.io.Writer, java.io.Flushable + public void flush() { + } + + @Override // java.io.Writer + public void write(int i) { + k kVar = this.j; + char c = (char) i; + if (kVar.c >= 0) { + kVar.f(16); + } + kVar.i = null; + kVar.j = null; + char[] cArr = kVar.g; + if (kVar.h >= cArr.length) { + kVar.d(); + cArr = kVar.g; + } + int i2 = kVar.h; + kVar.h = i2 + 1; + cArr[i2] = c; + } + + @Override // java.io.Writer + public void write(String str) { + this.j.a(str, 0, str.length()); + } + + @Override // java.io.Writer + public void write(String str, int i, int i2) { + this.j.a(str, i, i2); + } + + @Override // java.io.Writer + public void write(char[] cArr) { + this.j.b(cArr, 0, cArr.length); + } + + @Override // java.io.Writer + public void write(char[] cArr, int i, int i2) { + this.j.b(cArr, i, i2); + } +} diff --git a/app/src/main/java/b/g/a/b/p/j.java b/app/src/main/java/b/g/a/b/p/j.java new file mode 100644 index 0000000000..9dcf97c66c --- /dev/null +++ b/app/src/main/java/b/g/a/b/p/j.java @@ -0,0 +1,100 @@ +package b.g.a.b.p; + +import b.g.a.b.k; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.io.Serializable; +/* compiled from: SerializedString */ +public class j implements k, Serializable { + public static final e j = e.f653b; + private static final long serialVersionUID = 1; + public char[] _quotedChars; + public byte[] _quotedUTF8Ref; + public byte[] _unquotedUTF8Ref; + public final String _value; + public transient String k; + + public j(String str) { + if (str != null) { + this._value = str; + return; + } + throw new IllegalStateException("Null String illegal for SerializedString"); + } + + private void readObject(ObjectInputStream objectInputStream) throws IOException { + this.k = objectInputStream.readUTF(); + } + + private void writeObject(ObjectOutputStream objectOutputStream) throws IOException { + objectOutputStream.writeUTF(this._value); + } + + @Override // b.g.a.b.k + public final char[] a() { + char[] cArr = this._quotedChars; + if (cArr != null) { + return cArr; + } + char[] a = j.a(this._value); + this._quotedChars = a; + return a; + } + + @Override // b.g.a.b.k + public int b(char[] cArr, int i) { + String str = this._value; + int length = str.length(); + if (i + length > cArr.length) { + return -1; + } + str.getChars(0, length, cArr, i); + return length; + } + + @Override // b.g.a.b.k + public int c(char[] cArr, int i) { + char[] cArr2 = this._quotedChars; + if (cArr2 == null) { + cArr2 = j.a(this._value); + this._quotedChars = cArr2; + } + int length = cArr2.length; + if (i + length > cArr.length) { + return -1; + } + System.arraycopy(cArr2, 0, cArr, i, length); + return length; + } + + @Override // java.lang.Object + public final boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != j.class) { + return false; + } + return this._value.equals(((j) obj)._value); + } + + @Override // b.g.a.b.k + public final String getValue() { + return this._value; + } + + @Override // java.lang.Object + public final int hashCode() { + return this._value.hashCode(); + } + + public Object readResolve() { + return new j(this.k); + } + + @Override // java.lang.Object + public final String toString() { + return this._value; + } +} diff --git a/app/src/main/java/b/g/a/b/q/a.java b/app/src/main/java/b/g/a/b/q/a.java new file mode 100644 index 0000000000..7fc419db4e --- /dev/null +++ b/app/src/main/java/b/g/a/b/q/a.java @@ -0,0 +1,20 @@ +package b.g.a.b.q; + +import java.util.HashSet; +/* compiled from: DupDetector */ +public class a { + public final Object a; + + /* renamed from: b reason: collision with root package name */ + public String f656b; + public String c; + public HashSet d; + + public a(Object obj) { + this.a = obj; + } + + public a a() { + return new a(this.a); + } +} diff --git a/app/src/main/java/b/g/a/b/q/b.java b/app/src/main/java/b/g/a/b/q/b.java new file mode 100644 index 0000000000..bc29f5832d --- /dev/null +++ b/app/src/main/java/b/g/a/b/q/b.java @@ -0,0 +1,93 @@ +package b.g.a.b.q; + +import b.g.a.b.d; +import b.g.a.b.i; +import b.g.a.b.k; +import b.g.a.b.o.a; +import b.g.a.b.p.c; +import b.g.a.b.t.d; +import com.fasterxml.jackson.core.JsonGenerationException; +import java.io.IOException; +/* compiled from: JsonGeneratorImpl */ +public abstract class b extends a { + public static final int[] r = b.g.a.b.p.a.f; + + /* renamed from: s reason: collision with root package name */ + public final c f657s; + public int[] t = r; + public int u; + public k v = d.j; + public boolean w; + + public b(c cVar, int i, i iVar) { + super(i, iVar); + this.f657s = cVar; + if (d.a.ESCAPE_NON_ASCII.g(i)) { + this.u = 127; + } + this.w = !d.a.QUOTE_FIELD_NAMES.g(i); + } + + @Override // b.g.a.b.d + public b.g.a.b.d b(d.a aVar) { + int h = aVar.h(); + this.o &= ~h; + if ((h & a.m) != 0) { + if (aVar == d.a.WRITE_NUMBERS_AS_STRINGS) { + this.p = false; + } else if (aVar == d.a.ESCAPE_NON_ASCII) { + y0(0); + } else if (aVar == d.a.STRICT_DUPLICATE_DETECTION) { + c cVar = this.q; + cVar.d = null; + this.q = cVar; + } + } + if (aVar == d.a.QUOTE_FIELD_NAMES) { + this.w = true; + } + return this; + } + + @Override // b.g.a.b.o.a + public void r0(int i, int i2) { + if ((a.m & i2) != 0) { + this.p = d.a.WRITE_NUMBERS_AS_STRINGS.g(i); + d.a aVar = d.a.ESCAPE_NON_ASCII; + if (aVar.g(i2)) { + if (aVar.g(i)) { + y0(127); + } else { + y0(0); + } + } + d.a aVar2 = d.a.STRICT_DUPLICATE_DETECTION; + if (aVar2.g(i2)) { + if (aVar2.g(i)) { + c cVar = this.q; + if (cVar.d == null) { + cVar.d = new a(this); + this.q = cVar; + } + } else { + c cVar2 = this.q; + cVar2.d = null; + this.q = cVar2; + } + } + } + this.w = !d.a.QUOTE_FIELD_NAMES.g(i); + } + + public void x0(String str) throws IOException { + throw new JsonGenerationException(String.format("Can not %s, expecting field name (context: %s)", str, this.q.e()), this); + } + + public b.g.a.b.d y0(int i) { + if (i < 0) { + i = 0; + } + this.u = i; + return this; + } +} diff --git a/app/src/main/java/b/g/a/b/q/c.java b/app/src/main/java/b/g/a/b/q/c.java new file mode 100644 index 0000000000..4d403d8f3f --- /dev/null +++ b/app/src/main/java/b/g/a/b/q/c.java @@ -0,0 +1,183 @@ +package b.g.a.b.q; + +import b.d.b.a.a; +import b.g.a.b.d; +import b.g.a.b.g; +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.HashSet; +/* compiled from: JsonWriteContext */ +public class c extends g { + public final c c; + public a d; + public c e; + public String f; + public Object g; + public boolean h; + + public c(int i, c cVar, a aVar) { + this.a = i; + this.c = cVar; + this.d = aVar; + this.f647b = -1; + } + + public c(int i, c cVar, a aVar, Object obj) { + this.a = i; + this.c = cVar; + this.d = aVar; + this.f647b = -1; + this.g = obj; + } + + @Override // b.g.a.b.g + public final String a() { + return this.f; + } + + @Override // b.g.a.b.g + public void d(Object obj) { + this.g = obj; + } + + public c f() { + c cVar = this.e; + if (cVar == null) { + a aVar = this.d; + c cVar2 = new c(1, this, aVar == null ? null : aVar.a()); + this.e = cVar2; + return cVar2; + } + cVar.j(1); + return cVar; + } + + public c g(Object obj) { + c cVar = this.e; + if (cVar == null) { + a aVar = this.d; + c cVar2 = new c(1, this, aVar == null ? null : aVar.a(), obj); + this.e = cVar2; + return cVar2; + } + cVar.k(1, obj); + return cVar; + } + + public c h() { + c cVar = this.e; + if (cVar == null) { + a aVar = this.d; + c cVar2 = new c(2, this, aVar == null ? null : aVar.a()); + this.e = cVar2; + return cVar2; + } + cVar.j(2); + return cVar; + } + + public c i(Object obj) { + c cVar = this.e; + if (cVar == null) { + a aVar = this.d; + c cVar2 = new c(2, this, aVar == null ? null : aVar.a(), obj); + this.e = cVar2; + return cVar2; + } + cVar.k(2, obj); + return cVar; + } + + public c j(int i) { + this.a = i; + this.f647b = -1; + this.f = null; + this.h = false; + this.g = null; + a aVar = this.d; + if (aVar != null) { + aVar.f656b = null; + aVar.c = null; + aVar.d = null; + } + return this; + } + + public c k(int i, Object obj) { + this.a = i; + this.f647b = -1; + this.f = null; + this.h = false; + this.g = obj; + a aVar = this.d; + if (aVar != null) { + aVar.f656b = null; + aVar.c = null; + aVar.d = null; + } + return this; + } + + /* JADX WARNING: Removed duplicated region for block: B:23:0x0053 */ + public int l(String str) throws JsonProcessingException { + boolean z2; + if (this.a != 2 || this.h) { + return 4; + } + this.h = true; + this.f = str; + a aVar = this.d; + if (aVar != null) { + String str2 = aVar.f656b; + if (str2 == null) { + aVar.f656b = str; + } else { + if (!str.equals(str2)) { + String str3 = aVar.c; + if (str3 == null) { + aVar.c = str; + } else if (!str.equals(str3)) { + if (aVar.d == null) { + HashSet hashSet = new HashSet<>(16); + aVar.d = hashSet; + hashSet.add(aVar.f656b); + aVar.d.add(aVar.c); + } + z2 = !aVar.d.add(str); + if (z2) { + Object obj = aVar.a; + throw new JsonGenerationException(a.w("Duplicate field '", str, "'"), obj instanceof d ? (d) obj : null); + } + } + } + z2 = true; + if (z2) { + } + } + z2 = false; + if (z2) { + } + } + return this.f647b < 0 ? 0 : 1; + } + + public int m() { + int i = this.a; + if (i == 2) { + if (!this.h) { + return 5; + } + this.h = false; + this.f647b++; + return 2; + } else if (i == 1) { + int i2 = this.f647b; + this.f647b = i2 + 1; + return i2 < 0 ? 0 : 1; + } else { + int i3 = this.f647b + 1; + this.f647b = i3; + return i3 == 0 ? 0 : 3; + } + } +} diff --git a/app/src/main/java/b/g/a/b/q/d.java b/app/src/main/java/b/g/a/b/q/d.java new file mode 100644 index 0000000000..d9f3d02b5a --- /dev/null +++ b/app/src/main/java/b/g/a/b/q/d.java @@ -0,0 +1,1535 @@ +package b.g.a.b.q; + +import b.g.a.b.d; +import b.g.a.b.i; +import b.g.a.b.j; +import b.g.a.b.k; +import b.g.a.b.p.a; +import b.g.a.b.p.c; +import b.g.a.b.p.g; +import b.g.a.b.t.m; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.fasterxml.jackson.core.JsonGenerationException; +import java.io.IOException; +import java.io.InputStream; +import java.io.Writer; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: WriterBasedJsonGenerator */ +public class d extends b { + + /* renamed from: x reason: collision with root package name */ + public static final char[] f658x = ((char[]) a.a.clone()); + public char[] A; + public int B; + public int C; + public int D; + public char[] E; + + /* renamed from: y reason: collision with root package name */ + public final Writer f659y; + + /* renamed from: z reason: collision with root package name */ + public char f660z; + + public d(c cVar, int i, i iVar, Writer writer, char c) { + super(cVar, i, iVar); + int[] iArr; + this.f659y = writer; + if (cVar.e == null) { + char[] a = cVar.c.a(1, 0); + cVar.e = a; + this.A = a; + this.D = a.length; + this.f660z = c; + if (c != '\"') { + if (c == '\"') { + iArr = a.f; + } else { + a.C0071a aVar = a.C0071a.a; + int[] iArr2 = aVar.f651b[c]; + if (iArr2 == null) { + iArr2 = Arrays.copyOf(a.f, 128); + if (iArr2[c] == 0) { + iArr2[c] = -1; + } + aVar.f651b[c] = iArr2; + } + iArr = iArr2; + } + this.t = iArr; + return; + } + return; + } + throw new IllegalStateException("Trying to call same allocXxx() method second time"); + } + + @Override // b.g.a.b.d + public void A() throws IOException { + t0("write a null"); + H0(); + } + + public final void A0(char c, int i) throws IOException, JsonGenerationException { + int i2; + if (i >= 0) { + if (this.C + 2 > this.D) { + B0(); + } + char[] cArr = this.A; + int i3 = this.C; + int i4 = i3 + 1; + this.C = i4; + cArr[i3] = '\\'; + this.C = i4 + 1; + cArr[i4] = (char) i; + } else if (i != -2) { + if (this.C + 5 >= this.D) { + B0(); + } + int i5 = this.C; + char[] cArr2 = this.A; + int i6 = i5 + 1; + cArr2[i5] = '\\'; + int i7 = i6 + 1; + cArr2[i6] = 'u'; + if (c > 255) { + int i8 = 255 & (c >> '\b'); + int i9 = i7 + 1; + char[] cArr3 = f658x; + cArr2[i7] = cArr3[i8 >> 4]; + i2 = i9 + 1; + cArr2[i9] = cArr3[i8 & 15]; + c = (char) (c & 255); + } else { + int i10 = i7 + 1; + cArr2[i7] = '0'; + i2 = i10 + 1; + cArr2[i10] = '0'; + } + int i11 = i2 + 1; + char[] cArr4 = f658x; + cArr2[i2] = cArr4[c >> 4]; + cArr2[i11] = cArr4[c & 15]; + this.C = i11 + 1; + } else { + Objects.requireNonNull(null); + throw null; + } + } + + public void B0() throws IOException { + int i = this.C; + int i2 = this.B; + int i3 = i - i2; + if (i3 > 0) { + this.B = 0; + this.C = 0; + this.f659y.write(this.A, i2, i3); + } + } + + @Override // b.g.a.b.d + public void C(double d) throws IOException { + if (!this.p) { + String str = g.a; + if (!(Double.isNaN(d) || Double.isInfinite(d)) || !d(d.a.QUOTE_NON_NUMERIC_NUMBERS)) { + t0("write a number"); + T(String.valueOf(d)); + return; + } + } + j0(String.valueOf(d)); + } + + public final int C0(char[] cArr, int i, int i2, char c, int i3) throws IOException, JsonGenerationException { + int i4; + if (i3 >= 0) { + if (i <= 1 || i >= i2) { + char[] cArr2 = this.E; + if (cArr2 == null) { + cArr2 = z0(); + } + cArr2[1] = (char) i3; + this.f659y.write(cArr2, 0, 2); + return i; + } + int i5 = i - 2; + cArr[i5] = '\\'; + cArr[i5 + 1] = (char) i3; + return i5; + } else if (i3 == -2) { + Objects.requireNonNull(null); + throw null; + } else if (i <= 5 || i >= i2) { + char[] cArr3 = this.E; + if (cArr3 == null) { + cArr3 = z0(); + } + this.B = this.C; + if (c > 255) { + int i6 = (c >> '\b') & 255; + int i7 = c & 255; + char[] cArr4 = f658x; + cArr3[10] = cArr4[i6 >> 4]; + cArr3[11] = cArr4[i6 & 15]; + cArr3[12] = cArr4[i7 >> 4]; + cArr3[13] = cArr4[i7 & 15]; + this.f659y.write(cArr3, 8, 6); + return i; + } + char[] cArr5 = f658x; + cArr3[6] = cArr5[c >> 4]; + cArr3[7] = cArr5[c & 15]; + this.f659y.write(cArr3, 2, 6); + return i; + } else { + int i8 = i - 6; + int i9 = i8 + 1; + cArr[i8] = '\\'; + int i10 = i9 + 1; + cArr[i9] = 'u'; + if (c > 255) { + int i11 = (c >> '\b') & 255; + int i12 = i10 + 1; + char[] cArr6 = f658x; + cArr[i10] = cArr6[i11 >> 4]; + i4 = i12 + 1; + cArr[i12] = cArr6[i11 & 15]; + c = (char) (c & 255); + } else { + int i13 = i10 + 1; + cArr[i10] = '0'; + i4 = i13 + 1; + cArr[i13] = '0'; + } + int i14 = i4 + 1; + char[] cArr7 = f658x; + cArr[i4] = cArr7[c >> 4]; + cArr[i14] = cArr7[c & 15]; + return i14 - 5; + } + } + + @Override // b.g.a.b.d + public void D(float f) throws IOException { + if (!this.p) { + String str = g.a; + if (!(Float.isNaN(f) || Float.isInfinite(f)) || !d(d.a.QUOTE_NON_NUMERIC_NUMBERS)) { + t0("write a number"); + T(String.valueOf(f)); + return; + } + } + j0(String.valueOf(f)); + } + + public final void D0(char c, int i) throws IOException, JsonGenerationException { + int i2; + if (i >= 0) { + int i3 = this.C; + if (i3 >= 2) { + int i4 = i3 - 2; + this.B = i4; + char[] cArr = this.A; + cArr[i4] = '\\'; + cArr[i4 + 1] = (char) i; + return; + } + char[] cArr2 = this.E; + if (cArr2 == null) { + cArr2 = z0(); + } + this.B = this.C; + cArr2[1] = (char) i; + this.f659y.write(cArr2, 0, 2); + } else if (i != -2) { + int i5 = this.C; + if (i5 >= 6) { + char[] cArr3 = this.A; + int i6 = i5 - 6; + this.B = i6; + cArr3[i6] = '\\'; + int i7 = i6 + 1; + cArr3[i7] = 'u'; + if (c > 255) { + int i8 = (c >> '\b') & 255; + int i9 = i7 + 1; + char[] cArr4 = f658x; + cArr3[i9] = cArr4[i8 >> 4]; + i2 = i9 + 1; + cArr3[i2] = cArr4[i8 & 15]; + c = (char) (c & 255); + } else { + int i10 = i7 + 1; + cArr3[i10] = '0'; + i2 = i10 + 1; + cArr3[i2] = '0'; + } + int i11 = i2 + 1; + char[] cArr5 = f658x; + cArr3[i11] = cArr5[c >> 4]; + cArr3[i11 + 1] = cArr5[c & 15]; + return; + } + char[] cArr6 = this.E; + if (cArr6 == null) { + cArr6 = z0(); + } + this.B = this.C; + if (c > 255) { + int i12 = (c >> '\b') & 255; + int i13 = c & 255; + char[] cArr7 = f658x; + cArr6[10] = cArr7[i12 >> 4]; + cArr6[11] = cArr7[i12 & 15]; + cArr6[12] = cArr7[i13 >> 4]; + cArr6[13] = cArr7[i13 & 15]; + this.f659y.write(cArr6, 8, 6); + return; + } + char[] cArr8 = f658x; + cArr6[6] = cArr8[c >> 4]; + cArr6[7] = cArr8[c & 15]; + this.f659y.write(cArr6, 2, 6); + } else { + Objects.requireNonNull(null); + throw null; + } + } + + public final int E0(InputStream inputStream, byte[] bArr, int i, int i2, int i3) throws IOException { + int i4 = 0; + while (i < i2) { + bArr[i4] = bArr[i]; + i4++; + i++; + } + int min = Math.min(i3, bArr.length); + do { + int i5 = min - i4; + if (i5 == 0) { + break; + } + int read = inputStream.read(bArr, i4, i5); + if (read < 0) { + return i4; + } + i4 += read; + } while (i4 < 3); + return i4; + } + + public final int F0(b.g.a.b.a aVar, InputStream inputStream, byte[] bArr) throws IOException, JsonGenerationException { + int i = this.D - 6; + int i2 = 2; + int d = aVar.d() >> 2; + int i3 = -3; + int i4 = 0; + int i5 = 0; + int i6 = 0; + while (true) { + if (i4 > i3) { + i5 = E0(inputStream, bArr, i4, i5, bArr.length); + if (i5 < 3) { + break; + } + i3 = i5 - 3; + i4 = 0; + } + if (this.C > i) { + B0(); + } + int i7 = i4 + 1; + int i8 = i7 + 1; + i4 = i8 + 1; + i6 += 3; + int b2 = aVar.b((((bArr[i7] & 255) | (bArr[i4] << 8)) << 8) | (bArr[i8] & 255), this.A, this.C); + this.C = b2; + d--; + if (d <= 0) { + char[] cArr = this.A; + int i9 = b2 + 1; + this.C = i9; + cArr[b2] = '\\'; + this.C = i9 + 1; + cArr[i9] = 'n'; + d = aVar.d() >> 2; + } + } + if (i5 <= 0) { + return i6; + } + if (this.C > i) { + B0(); + } + int i10 = bArr[0] << 16; + if (1 < i5) { + i10 |= (bArr[1] & 255) << 8; + } else { + i2 = 1; + } + int i11 = i6 + i2; + this.C = aVar.c(i10, i2, this.A, this.C); + return i11; + } + + public final int G0(b.g.a.b.a aVar, InputStream inputStream, byte[] bArr, int i) throws IOException, JsonGenerationException { + int E0; + int i2 = this.D - 6; + int i3 = 2; + int d = aVar.d() >> 2; + int i4 = -3; + int i5 = 0; + int i6 = 0; + while (true) { + if (i <= 2) { + break; + } + if (i5 > i4) { + i6 = E0(inputStream, bArr, i5, i6, i); + if (i6 < 3) { + i5 = 0; + break; + } + i4 = i6 - 3; + i5 = 0; + } + if (this.C > i2) { + B0(); + } + int i7 = i5 + 1; + int i8 = i7 + 1; + i5 = i8 + 1; + i -= 3; + int b2 = aVar.b((((bArr[i7] & 255) | (bArr[i5] << 8)) << 8) | (bArr[i8] & 255), this.A, this.C); + this.C = b2; + d--; + if (d <= 0) { + char[] cArr = this.A; + int i9 = b2 + 1; + this.C = i9; + cArr[b2] = '\\'; + this.C = i9 + 1; + cArr[i9] = 'n'; + d = aVar.d() >> 2; + } + } + if (i <= 0 || (E0 = E0(inputStream, bArr, i5, i6, i)) <= 0) { + return i; + } + if (this.C > i2) { + B0(); + } + int i10 = bArr[0] << 16; + if (1 < E0) { + i10 |= (bArr[1] & 255) << 8; + } else { + i3 = 1; + } + this.C = aVar.c(i10, i3, this.A, this.C); + return i - i3; + } + + @Override // b.g.a.b.d + public void H(int i) throws IOException { + t0("write a number"); + if (this.p) { + if (this.C + 13 >= this.D) { + B0(); + } + char[] cArr = this.A; + int i2 = this.C; + int i3 = i2 + 1; + this.C = i3; + cArr[i2] = this.f660z; + int d = g.d(i, cArr, i3); + this.C = d; + char[] cArr2 = this.A; + this.C = d + 1; + cArr2[d] = this.f660z; + return; + } + if (this.C + 11 >= this.D) { + B0(); + } + this.C = g.d(i, this.A, this.C); + } + + public final void H0() throws IOException { + if (this.C + 4 >= this.D) { + B0(); + } + int i = this.C; + char[] cArr = this.A; + cArr[i] = 'n'; + int i2 = i + 1; + cArr[i2] = 'u'; + int i3 = i2 + 1; + cArr[i3] = 'l'; + int i4 = i3 + 1; + cArr[i4] = 'l'; + this.C = i4 + 1; + } + + @Override // b.g.a.b.d + public void I(long j) throws IOException { + t0("write a number"); + if (this.p) { + if (this.C + 23 >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + int i2 = i + 1; + this.C = i2; + cArr[i] = this.f660z; + int e = g.e(j, cArr, i2); + this.C = e; + char[] cArr2 = this.A; + this.C = e + 1; + cArr2[e] = this.f660z; + return; + } + if (this.C + 21 >= this.D) { + B0(); + } + this.C = g.e(j, this.A, this.C); + } + + public final void I0(String str) throws IOException { + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = this.f660z; + T(str); + if (this.C >= this.D) { + B0(); + } + char[] cArr2 = this.A; + int i2 = this.C; + this.C = i2 + 1; + cArr2[i2] = this.f660z; + } + + @Override // b.g.a.b.d + public void J(String str) throws IOException { + t0("write a number"); + if (str == null) { + H0(); + } else if (this.p) { + I0(str); + } else { + T(str); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:67:0x010a, code lost: + r5 = r18.B; + r4 = r4 - r5; + */ + /* JADX WARNING: Code restructure failed: missing block: B:68:0x010d, code lost: + if (r4 <= 0) goto L_0x0114; + */ + /* JADX WARNING: Code restructure failed: missing block: B:69:0x010f, code lost: + r18.f659y.write(r3, r5, r4); + */ + /* JADX WARNING: Code restructure failed: missing block: B:70:0x0114, code lost: + r3 = r18.A; + r4 = r18.C; + r18.C = r4 + 1; + r3 = r3[r4]; + D0(r3, r0[r3]); + */ + /* JADX WARNING: Removed duplicated region for block: B:88:0x012a A[SYNTHETIC] */ + public final void J0(String str) throws IOException { + char[] cArr; + int i; + char c; + int i2; + int i3; + char[] cArr2; + char c2; + char[] cArr3; + char c3; + int i4; + int length = str.length(); + int i5 = this.D; + if (length > i5) { + B0(); + int length2 = str.length(); + int i6 = 0; + while (true) { + int i7 = this.D; + if (i6 + i7 > length2) { + i7 = length2 - i6; + } + int i8 = i6 + i7; + str.getChars(i6, i8, this.A, 0); + int i9 = this.u; + if (i9 != 0) { + int[] iArr = this.t; + int min = Math.min(iArr.length, i9 + 1); + int i10 = 0; + int i11 = 0; + int i12 = 0; + while (i10 < i7) { + while (true) { + cArr3 = this.A; + c3 = cArr3[i10]; + if (c3 >= min) { + if (c3 > i9) { + i4 = -1; + break; + } + } else { + i11 = iArr[c3]; + if (i11 != 0) { + break; + } + } + i10++; + if (i10 >= i7) { + break; + } + } + i4 = i11; + int i13 = i10 - i12; + if (i13 > 0) { + this.f659y.write(cArr3, i12, i13); + if (i10 >= i7) { + break; + } + } + int i14 = i10 + 1; + i12 = C0(this.A, i14, i7, c3, i4); + i11 = i4; + i10 = i14; + } + } else { + int[] iArr2 = this.t; + int length3 = iArr2.length; + int i15 = 0; + int i16 = 0; + while (i15 < i7) { + do { + cArr2 = this.A; + c2 = cArr2[i15]; + if (c2 < length3 && iArr2[c2] != 0) { + break; + } + i15++; + } while (i15 < i7); + int i17 = i15 - i16; + if (i17 > 0) { + this.f659y.write(cArr2, i16, i17); + if (i15 >= i7) { + break; + } + } + int i18 = i15 + 1; + i16 = C0(this.A, i18, i7, c2, iArr2[c2]); + i15 = i18; + } + } + if (i8 < length2) { + i6 = i8; + } else { + return; + } + } + } else { + if (this.C + length > i5) { + B0(); + } + str.getChars(0, length, this.A, this.C); + int i19 = this.u; + if (i19 != 0) { + int i20 = this.C + length; + int[] iArr3 = this.t; + int min2 = Math.min(iArr3.length, i19 + 1); + while (this.C < i20) { + while (true) { + cArr = this.A; + i = this.C; + c = cArr[i]; + if (c < min2) { + i3 = iArr3[c]; + if (i3 != 0) { + break; + } + i2 = i + 1; + this.C = i2; + if (i2 >= i20) { + return; + } + } else { + if (c > i19) { + i3 = -1; + break; + } + i2 = i + 1; + this.C = i2; + if (i2 >= i20) { + } + } + } + int i21 = this.B; + int i22 = i - i21; + if (i22 > 0) { + this.f659y.write(cArr, i21, i22); + } + this.C++; + D0(c, i3); + } + return; + } + int i23 = this.C + length; + int[] iArr4 = this.t; + int length4 = iArr4.length; + while (this.C < i23) { + while (true) { + char[] cArr4 = this.A; + int i24 = this.C; + char c4 = cArr4[i24]; + if (c4 < length4 && iArr4[c4] != 0) { + break; + } + int i25 = i24 + 1; + this.C = i25; + if (i25 >= i23) { + return; + } + } + } + } + } + + @Override // b.g.a.b.d + public void L(BigDecimal bigDecimal) throws IOException { + t0("write a number"); + if (bigDecimal == null) { + H0(); + } else if (this.p) { + I0(o0(bigDecimal)); + } else { + T(o0(bigDecimal)); + } + } + + @Override // b.g.a.b.d + public void N(BigInteger bigInteger) throws IOException { + t0("write a number"); + if (bigInteger == null) { + H0(); + } else if (this.p) { + I0(bigInteger.toString()); + } else { + T(bigInteger.toString()); + } + } + + @Override // b.g.a.b.d + public void O(short s2) throws IOException { + t0("write a number"); + if (this.p) { + if (this.C + 8 >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + int i2 = i + 1; + this.C = i2; + cArr[i] = this.f660z; + int d = g.d(s2, cArr, i2); + this.C = d; + char[] cArr2 = this.A; + this.C = d + 1; + cArr2[d] = this.f660z; + return; + } + if (this.C + 6 >= this.D) { + B0(); + } + this.C = g.d(s2, this.A, this.C); + } + + @Override // b.g.a.b.d + public void R(char c) throws IOException { + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = c; + } + + @Override // b.g.a.b.d + public void S(k kVar) throws IOException { + int b2 = kVar.b(this.A, this.C); + if (b2 < 0) { + T(kVar.getValue()); + } else { + this.C += b2; + } + } + + @Override // b.g.a.b.d + public void T(String str) throws IOException { + int length = str.length(); + int i = this.D - this.C; + if (i == 0) { + B0(); + i = this.D - this.C; + } + if (i >= length) { + str.getChars(0, length, this.A, this.C); + this.C += length; + return; + } + int i2 = this.D; + int i3 = this.C; + int i4 = i2 - i3; + str.getChars(0, i4, this.A, i3); + this.C += i4; + B0(); + int length2 = str.length() - i4; + while (true) { + int i5 = this.D; + if (length2 > i5) { + int i6 = i4 + i5; + str.getChars(i4, i6, this.A, 0); + this.B = 0; + this.C = i5; + B0(); + length2 -= i5; + i4 = i6; + } else { + str.getChars(i4, i4 + length2, this.A, 0); + this.B = 0; + this.C = length2; + return; + } + } + } + + @Override // b.g.a.b.d + public void U(char[] cArr, int i, int i2) throws IOException { + if (i2 < 32) { + if (i2 > this.D - this.C) { + B0(); + } + System.arraycopy(cArr, i, this.A, this.C, i2); + this.C += i2; + return; + } + B0(); + this.f659y.write(cArr, i, i2); + } + + @Override // b.g.a.b.d + public void W() throws IOException { + t0("start an array"); + this.q = this.q.f(); + j jVar = this.l; + if (jVar != null) { + jVar.g(this); + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = '['; + } + + @Override // b.g.a.b.d + public void X(Object obj) throws IOException { + t0("start an array"); + this.q = this.q.g(obj); + j jVar = this.l; + if (jVar != null) { + jVar.g(this); + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = '['; + } + + @Override // b.g.a.b.d + public void b0(Object obj, int i) throws IOException { + t0("start an array"); + this.q = this.q.g(obj); + j jVar = this.l; + if (jVar != null) { + jVar.g(this); + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i2 = this.C; + this.C = i2 + 1; + cArr[i2] = '['; + } + + @Override // b.g.a.b.d + public void c0() throws IOException { + t0("start an object"); + this.q = this.q.h(); + j jVar = this.l; + if (jVar != null) { + jVar.a(this); + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = '{'; + } + + @Override // b.g.a.b.d, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + if (this.A != null && d(d.a.AUTO_CLOSE_JSON_CONTENT)) { + while (true) { + c cVar = this.q; + if (!cVar.b()) { + if (!cVar.c()) { + break; + } + u(); + } else { + t(); + } + } + } + B0(); + this.B = 0; + this.C = 0; + if (this.f659y != null) { + if (this.f657s.f652b || d(d.a.AUTO_CLOSE_TARGET)) { + this.f659y.close(); + } else if (d(d.a.FLUSH_PASSED_TO_STREAM)) { + this.f659y.flush(); + } + } + char[] cArr = this.A; + if (cArr != null) { + this.A = null; + c cVar2 = this.f657s; + Objects.requireNonNull(cVar2); + char[] cArr2 = cVar2.e; + if (cArr == cArr2 || cArr.length >= cArr2.length) { + cVar2.e = null; + cVar2.c.d.set(1, cArr); + return; + } + throw new IllegalArgumentException("Trying to release buffer smaller than original"); + } + } + + @Override // b.g.a.b.d + public void d0(Object obj) throws IOException { + t0("start an object"); + this.q = this.q.i(obj); + j jVar = this.l; + if (jVar != null) { + jVar.a(this); + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = '{'; + } + + @Override // b.g.a.b.d + public int f(b.g.a.b.a aVar, InputStream inputStream, int i) throws IOException, JsonGenerationException { + t0("write a binary value"); + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i2 = this.C; + this.C = i2 + 1; + cArr[i2] = this.f660z; + c cVar = this.f657s; + if (cVar.d == null) { + b.g.a.b.t.a aVar2 = cVar.c; + Objects.requireNonNull(aVar2); + int i3 = b.g.a.b.t.a.a[3]; + if (i3 <= 0) { + i3 = 0; + } + byte[] andSet = aVar2.c.getAndSet(3, null); + if (andSet == null || andSet.length < i3) { + andSet = new byte[i3]; + } + cVar.d = andSet; + if (i < 0) { + try { + i = F0(aVar, inputStream, andSet); + } catch (Throwable th) { + this.f657s.a(andSet); + throw th; + } + } else { + int G0 = G0(aVar, inputStream, andSet, i); + if (G0 > 0) { + throw new JsonGenerationException("Too few bytes available: missing " + G0 + " bytes (out of " + i + ")", this); + } + } + this.f657s.a(andSet); + if (this.C >= this.D) { + B0(); + } + char[] cArr2 = this.A; + int i4 = this.C; + this.C = i4 + 1; + cArr2[i4] = this.f660z; + return i; + } + throw new IllegalStateException("Trying to call same allocXxx() method second time"); + } + + @Override // java.io.Flushable + public void flush() throws IOException { + B0(); + if (this.f659y != null && d(d.a.FLUSH_PASSED_TO_STREAM)) { + this.f659y.flush(); + } + } + + @Override // b.g.a.b.d + public void g0(k kVar) throws IOException { + t0("write a string"); + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + int i2 = i + 1; + this.C = i2; + cArr[i] = this.f660z; + int c = kVar.c(cArr, i2); + if (c < 0) { + char[] a = kVar.a(); + int length = a.length; + if (length < 32) { + if (length > this.D - this.C) { + B0(); + } + System.arraycopy(a, 0, this.A, this.C, length); + this.C += length; + } else { + B0(); + this.f659y.write(a, 0, length); + } + if (this.C >= this.D) { + B0(); + } + char[] cArr2 = this.A; + int i3 = this.C; + this.C = i3 + 1; + cArr2[i3] = this.f660z; + return; + } + int i4 = this.C + c; + this.C = i4; + if (i4 >= this.D) { + B0(); + } + char[] cArr3 = this.A; + int i5 = this.C; + this.C = i5 + 1; + cArr3[i5] = this.f660z; + } + + @Override // b.g.a.b.d + public void j0(String str) throws IOException { + t0("write a string"); + if (str == null) { + H0(); + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = this.f660z; + J0(str); + if (this.C >= this.D) { + B0(); + } + char[] cArr2 = this.A; + int i2 = this.C; + this.C = i2 + 1; + cArr2[i2] = this.f660z; + } + + @Override // b.g.a.b.d + public void m0(char[] cArr, int i, int i2) throws IOException { + char c; + t0("write a string"); + if (this.C >= this.D) { + B0(); + } + char[] cArr2 = this.A; + int i3 = this.C; + this.C = i3 + 1; + cArr2[i3] = this.f660z; + int i4 = this.u; + if (i4 != 0) { + int i5 = i2 + i; + int[] iArr = this.t; + int min = Math.min(iArr.length, i4 + 1); + int i6 = 0; + while (i < i5) { + int i7 = i; + while (true) { + c = cArr[i7]; + if (c >= min) { + if (c > i4) { + i6 = -1; + break; + } + } else { + i6 = iArr[c]; + if (i6 != 0) { + break; + } + } + i7++; + if (i7 >= i5) { + break; + } + } + int i8 = i7 - i; + if (i8 < 32) { + if (this.C + i8 > this.D) { + B0(); + } + if (i8 > 0) { + System.arraycopy(cArr, i, this.A, this.C, i8); + this.C += i8; + } + } else { + B0(); + this.f659y.write(cArr, i, i8); + } + if (i7 >= i5) { + break; + } + i = i7 + 1; + A0(c, i6); + } + } else { + int i9 = i2 + i; + int[] iArr2 = this.t; + int length = iArr2.length; + while (i < i9) { + int i10 = i; + do { + char c2 = cArr[i10]; + if (c2 < length && iArr2[c2] != 0) { + break; + } + i10++; + } while (i10 < i9); + int i11 = i10 - i; + if (i11 < 32) { + if (this.C + i11 > this.D) { + B0(); + } + if (i11 > 0) { + System.arraycopy(cArr, i, this.A, this.C, i11); + this.C += i11; + } + } else { + B0(); + this.f659y.write(cArr, i, i11); + } + if (i10 >= i9) { + break; + } + i = i10 + 1; + char c3 = cArr[i10]; + A0(c3, iArr2[c3]); + } + } + if (this.C >= this.D) { + B0(); + } + char[] cArr3 = this.A; + int i12 = this.C; + this.C = i12 + 1; + cArr3[i12] = this.f660z; + } + + @Override // b.g.a.b.d + public void n(b.g.a.b.a aVar, byte[] bArr, int i, int i2) throws IOException, JsonGenerationException { + t0("write a binary value"); + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i3 = this.C; + this.C = i3 + 1; + cArr[i3] = this.f660z; + int i4 = i2 + i; + int i5 = i4 - 3; + int i6 = this.D - 6; + int d = aVar.d() >> 2; + while (i <= i5) { + if (this.C > i6) { + B0(); + } + int i7 = i + 1; + int i8 = i7 + 1; + int i9 = i8 + 1; + int b2 = aVar.b((((bArr[i] << 8) | (bArr[i7] & 255)) << 8) | (bArr[i8] & 255), this.A, this.C); + this.C = b2; + d--; + if (d <= 0) { + char[] cArr2 = this.A; + int i10 = b2 + 1; + this.C = i10; + cArr2[b2] = '\\'; + this.C = i10 + 1; + cArr2[i10] = 'n'; + d = aVar.d() >> 2; + } + i = i9; + } + int i11 = i4 - i; + if (i11 > 0) { + if (this.C > i6) { + B0(); + } + int i12 = i + 1; + int i13 = bArr[i] << 16; + if (i11 == 2) { + i13 |= (bArr[i12] & 255) << 8; + } + this.C = aVar.c(i13, i11, this.A, this.C); + } + if (this.C >= this.D) { + B0(); + } + char[] cArr3 = this.A; + int i14 = this.C; + this.C = i14 + 1; + cArr3[i14] = this.f660z; + } + + @Override // b.g.a.b.d + public void s(boolean z2) throws IOException { + int i; + t0("write a boolean value"); + if (this.C + 5 >= this.D) { + B0(); + } + int i2 = this.C; + char[] cArr = this.A; + if (z2) { + cArr[i2] = 't'; + int i3 = i2 + 1; + cArr[i3] = 'r'; + int i4 = i3 + 1; + cArr[i4] = 'u'; + i = i4 + 1; + cArr[i] = 'e'; + } else { + cArr[i2] = 'f'; + int i5 = i2 + 1; + cArr[i5] = 'a'; + int i6 = i5 + 1; + cArr[i6] = 'l'; + int i7 = i6 + 1; + cArr[i7] = 's'; + i = i7 + 1; + cArr[i] = 'e'; + } + this.C = i + 1; + } + + @Override // b.g.a.b.d + public void t() throws IOException { + if (this.q.b()) { + j jVar = this.l; + if (jVar != null) { + jVar.j(this, this.q.f647b + 1); + } else { + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = ']'; + } + c cVar = this.q; + cVar.g = null; + this.q = cVar.c; + return; + } + StringBuilder R = b.d.b.a.a.R("Current context not Array but "); + R.append(this.q.e()); + throw new JsonGenerationException(R.toString(), this); + } + + @Override // b.g.a.b.o.a + public final void t0(String str) throws IOException { + char c; + int m = this.q.m(); + j jVar = this.l; + if (jVar == null) { + if (m == 1) { + c = ','; + } else if (m == 2) { + c = MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR; + } else if (m == 3) { + k kVar = this.v; + if (kVar != null) { + T(kVar.getValue()); + return; + } + return; + } else if (m == 5) { + x0(str); + throw null; + } else { + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = c; + } else if (m != 0) { + if (m == 1) { + jVar.c(this); + } else if (m == 2) { + jVar.k(this); + } else if (m == 3) { + jVar.b(this); + } else if (m != 5) { + int i2 = m.a; + throw new RuntimeException("Internal error: this code path should never get executed"); + } else { + x0(str); + throw null; + } + } else if (this.q.b()) { + this.l.h(this); + } else if (this.q.c()) { + this.l.d(this); + } + } + + @Override // b.g.a.b.d + public void u() throws IOException { + if (this.q.c()) { + j jVar = this.l; + if (jVar != null) { + jVar.f(this, this.q.f647b + 1); + } else { + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = '}'; + } + c cVar = this.q; + cVar.g = null; + this.q = cVar.c; + return; + } + StringBuilder R = b.d.b.a.a.R("Current context not Object but "); + R.append(this.q.e()); + throw new JsonGenerationException(R.toString(), this); + } + + @Override // b.g.a.b.d + public void x(k kVar) throws IOException { + int l = this.q.l(kVar.getValue()); + if (l != 4) { + boolean z2 = l == 1; + j jVar = this.l; + if (jVar != null) { + if (z2) { + jVar.i(this); + } else { + jVar.d(this); + } + char[] a = kVar.a(); + if (this.w) { + U(a, 0, a.length); + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = this.f660z; + U(a, 0, a.length); + if (this.C >= this.D) { + B0(); + } + char[] cArr2 = this.A; + int i2 = this.C; + this.C = i2 + 1; + cArr2[i2] = this.f660z; + return; + } + if (this.C + 1 >= this.D) { + B0(); + } + if (z2) { + char[] cArr3 = this.A; + int i3 = this.C; + this.C = i3 + 1; + cArr3[i3] = ','; + } + if (this.w) { + char[] a2 = kVar.a(); + U(a2, 0, a2.length); + return; + } + char[] cArr4 = this.A; + int i4 = this.C; + int i5 = i4 + 1; + this.C = i5; + cArr4[i4] = this.f660z; + int c = kVar.c(cArr4, i5); + if (c < 0) { + char[] a3 = kVar.a(); + U(a3, 0, a3.length); + if (this.C >= this.D) { + B0(); + } + char[] cArr5 = this.A; + int i6 = this.C; + this.C = i6 + 1; + cArr5[i6] = this.f660z; + return; + } + int i7 = this.C + c; + this.C = i7; + if (i7 >= this.D) { + B0(); + } + char[] cArr6 = this.A; + int i8 = this.C; + this.C = i8 + 1; + cArr6[i8] = this.f660z; + return; + } + throw new JsonGenerationException("Can not write a field name, expecting a value", this); + } + + @Override // b.g.a.b.d + public void y(String str) throws IOException { + int l = this.q.l(str); + if (l != 4) { + boolean z2 = l == 1; + j jVar = this.l; + if (jVar != null) { + if (z2) { + jVar.i(this); + } else { + jVar.d(this); + } + if (this.w) { + J0(str); + return; + } + if (this.C >= this.D) { + B0(); + } + char[] cArr = this.A; + int i = this.C; + this.C = i + 1; + cArr[i] = this.f660z; + J0(str); + if (this.C >= this.D) { + B0(); + } + char[] cArr2 = this.A; + int i2 = this.C; + this.C = i2 + 1; + cArr2[i2] = this.f660z; + return; + } + if (this.C + 1 >= this.D) { + B0(); + } + if (z2) { + char[] cArr3 = this.A; + int i3 = this.C; + this.C = i3 + 1; + cArr3[i3] = ','; + } + if (this.w) { + J0(str); + return; + } + char[] cArr4 = this.A; + int i4 = this.C; + this.C = i4 + 1; + cArr4[i4] = this.f660z; + J0(str); + if (this.C >= this.D) { + B0(); + } + char[] cArr5 = this.A; + int i5 = this.C; + this.C = i5 + 1; + cArr5[i5] = this.f660z; + return; + } + throw new JsonGenerationException("Can not write a field name, expecting a value", this); + } + + public final char[] z0() { + char[] cArr = new char[14]; + cArr[0] = '\\'; + cArr[2] = '\\'; + cArr[3] = 'u'; + cArr[4] = '0'; + cArr[5] = '0'; + cArr[8] = '\\'; + cArr[9] = 'u'; + this.E = cArr; + return cArr; + } +} diff --git a/app/src/main/java/b/g/a/b/r/a.java b/app/src/main/java/b/g/a/b/r/a.java new file mode 100644 index 0000000000..0b02dc38e2 --- /dev/null +++ b/app/src/main/java/b/g/a/b/r/a.java @@ -0,0 +1,40 @@ +package b.g.a.b.r; + +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: ByteQuadsCanonicalizer */ +public final class a { + + /* compiled from: ByteQuadsCanonicalizer */ + /* renamed from: b.g.a.b.r.a$a reason: collision with other inner class name */ + public static final class C0072a { + public C0072a(int i, int i2, int i3, int[] iArr, String[] strArr, int i4, int i5) { + } + } + + public a(int i, boolean z2, int i2, boolean z3) { + int i3; + int i4 = 16; + if (i < 16) { + i3 = 16; + } else if (((i - 1) & i) != 0) { + while (i4 < i) { + i4 += i4; + } + i3 = i4; + } else { + i3 = i; + } + int i5 = i3 << 3; + int i6 = i3 >> 2; + new AtomicReference(new C0072a(i3, 0, i6 < 64 ? 4 : i6 <= 256 ? 5 : i6 <= 1024 ? 6 : 7, new int[i5], new String[(i3 << 1)], i5 - i3, i5)); + } + + public static a a() { + long currentTimeMillis = System.currentTimeMillis(); + return new a(64, true, (((int) currentTimeMillis) + ((int) (currentTimeMillis >>> 32))) | 1, true); + } + + public String toString() { + return String.format("[%s: size=%d, hashSize=%d, %d/%d/%d/%d pri/sec/ter/spill (=%s), total:%d]", a.class.getName(), 0, 0, 0, 0, 0, 0, 0, 0); + } +} diff --git a/app/src/main/java/b/g/a/b/r/b.java b/app/src/main/java/b/g/a/b/r/b.java new file mode 100644 index 0000000000..410591885f --- /dev/null +++ b/app/src/main/java/b/g/a/b/r/b.java @@ -0,0 +1,26 @@ +package b.g.a.b.r; + +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: CharsToNameCanonicalizer */ +public final class b { + + /* compiled from: CharsToNameCanonicalizer */ + public static final class a { + } + + /* compiled from: CharsToNameCanonicalizer */ + /* renamed from: b.g.a.b.r.b$b reason: collision with other inner class name */ + public static final class C0073b { + public C0073b(int i, int i2, String[] strArr, a[] aVarArr) { + } + } + + public b(int i) { + new AtomicReference(new C0073b(0, 0, new String[64], new a[32])); + } + + public static b a() { + long currentTimeMillis = System.currentTimeMillis(); + return new b((((int) currentTimeMillis) + ((int) (currentTimeMillis >>> 32))) | 1); + } +} diff --git a/app/src/main/java/b/g/a/b/s/a.java b/app/src/main/java/b/g/a/b/s/a.java new file mode 100644 index 0000000000..13f7582f9e --- /dev/null +++ b/app/src/main/java/b/g/a/b/s/a.java @@ -0,0 +1,11 @@ +package b.g.a.b.s; +/* compiled from: ResolvedType */ +public abstract class a { + public abstract a a(); + + public boolean b() { + return a() != null; + } + + public abstract String e(); +} diff --git a/app/src/main/java/b/g/a/b/s/b.java b/app/src/main/java/b/g/a/b/s/b.java new file mode 100644 index 0000000000..a9bfef2271 --- /dev/null +++ b/app/src/main/java/b/g/a/b/s/b.java @@ -0,0 +1,20 @@ +package b.g.a.b.s; + +import b.g.a.b.h; +/* compiled from: WritableTypeId */ +public class b { + public Object a; + + /* renamed from: b reason: collision with root package name */ + public Class f661b; + public Object c = null; + public String d; + public int e; + public h f; + public boolean g; + + public b(Object obj, h hVar) { + this.a = obj; + this.f = hVar; + } +} diff --git a/app/src/main/java/b/g/a/b/t/a.java b/app/src/main/java/b/g/a/b/t/a.java new file mode 100644 index 0000000000..3dd0022ae4 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/a.java @@ -0,0 +1,22 @@ +package b.g.a.b.t; + +import com.discord.utilities.rest.SendUtils; +import java.util.concurrent.atomic.AtomicReferenceArray; +/* compiled from: BufferRecycler */ +public class a { + public static final int[] a = {8000, 8000, 2000, 2000}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f662b = {SendUtils.MAX_MESSAGE_CHARACTER_COUNT_PREMIUM, SendUtils.MAX_MESSAGE_CHARACTER_COUNT_PREMIUM, 200, 200}; + public final AtomicReferenceArray c = new AtomicReferenceArray<>(4); + public final AtomicReferenceArray d = new AtomicReferenceArray<>(4); + + public char[] a(int i, int i2) { + int i3 = f662b[i]; + if (i2 < i3) { + i2 = i3; + } + char[] andSet = this.d.getAndSet(i, null); + return (andSet == null || andSet.length < i2) ? new char[i2] : andSet; + } +} diff --git a/app/src/main/java/b/g/a/b/t/b.java b/app/src/main/java/b/g/a/b/t/b.java new file mode 100644 index 0000000000..b87e0b1283 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/b.java @@ -0,0 +1,21 @@ +package b.g.a.b.t; + +import b.g.a.b.t.l; +import java.lang.ref.SoftReference; +/* compiled from: BufferRecyclers */ +public class b { + public static final l a; + + /* renamed from: b reason: collision with root package name */ + public static final ThreadLocal> f663b = new ThreadLocal<>(); + + static { + boolean z2; + try { + z2 = "true".equals(System.getProperty("com.fasterxml.jackson.core.util.BufferRecyclers.trackReusableBuffers")); + } catch (SecurityException unused) { + z2 = false; + } + a = z2 ? l.a.a : null; + } +} diff --git a/app/src/main/java/b/g/a/b/t/c.java b/app/src/main/java/b/g/a/b/t/c.java new file mode 100644 index 0000000000..fcae8e4011 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/c.java @@ -0,0 +1,57 @@ +package b.g.a.b.t; + +import b.g.a.b.t.d; +import java.io.IOException; +/* compiled from: DefaultIndenter */ +public class c extends d.c { + public static final String j; + public static final c k; + private static final long serialVersionUID = 1; + private final int charsPerLevel; + private final String eol; + private final char[] indents; + + static { + String str; + try { + str = System.getProperty("line.separator"); + } catch (Throwable unused) { + str = "\n"; + } + j = str; + k = new c(" ", str); + } + + public c() { + this(" ", j); + } + + public c(String str, String str2) { + this.charsPerLevel = str.length(); + this.indents = new char[(str.length() * 16)]; + int i = 0; + for (int i2 = 0; i2 < 16; i2++) { + str.getChars(0, str.length(), this.indents, i); + i += str.length(); + } + this.eol = str2; + } + + @Override // b.g.a.b.t.d.b + public void a(b.g.a.b.d dVar, int i) throws IOException { + dVar.T(this.eol); + if (i > 0) { + int i2 = i * this.charsPerLevel; + while (true) { + char[] cArr = this.indents; + if (i2 > cArr.length) { + dVar.U(cArr, 0, cArr.length); + i2 -= this.indents.length; + } else { + dVar.U(cArr, 0, i2); + return; + } + } + } + } +} diff --git a/app/src/main/java/b/g/a/b/t/d.java b/app/src/main/java/b/g/a/b/t/d.java new file mode 100644 index 0000000000..39c7ae8e12 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/d.java @@ -0,0 +1,160 @@ +package b.g.a.b.t; + +import b.g.a.b.j; +import b.g.a.b.k; +import java.io.IOException; +import java.io.Serializable; +/* compiled from: DefaultPrettyPrinter */ +public class d implements j, e, Serializable { + public static final b.g.a.b.p.j j = new b.g.a.b.p.j(" "); + private static final long serialVersionUID = 1; + public b _arrayIndenter = a.j; + public String _objectFieldValueSeparatorWithSpaces; + public b _objectIndenter = c.k; + public final k _rootSeparator; + public j _separators; + public boolean _spacesInObjectEntries = true; + public transient int k; + + /* compiled from: DefaultPrettyPrinter */ + public static class a extends c { + public static final a j = new a(); + + @Override // b.g.a.b.t.d.b + public void a(b.g.a.b.d dVar, int i) throws IOException { + dVar.R(' '); + } + + @Override // b.g.a.b.t.d.c, b.g.a.b.t.d.b + public boolean isInline() { + return true; + } + } + + /* compiled from: DefaultPrettyPrinter */ + public interface b { + void a(b.g.a.b.d dVar, int i) throws IOException; + + boolean isInline(); + } + + /* compiled from: DefaultPrettyPrinter */ + public static class c implements b, Serializable { + @Override // b.g.a.b.t.d.b + public boolean isInline() { + return !(this instanceof c); + } + } + + public d() { + b.g.a.b.p.j jVar = j; + this._rootSeparator = jVar; + j jVar2 = j.f649b; + this._separators = jVar2; + StringBuilder R = b.d.b.a.a.R(" "); + R.append(jVar2.c()); + R.append(" "); + this._objectFieldValueSeparatorWithSpaces = R.toString(); + } + + public d(d dVar) { + k kVar = dVar._rootSeparator; + this._arrayIndenter = dVar._arrayIndenter; + this._objectIndenter = dVar._objectIndenter; + this._spacesInObjectEntries = dVar._spacesInObjectEntries; + this.k = dVar.k; + this._separators = dVar._separators; + this._objectFieldValueSeparatorWithSpaces = dVar._objectFieldValueSeparatorWithSpaces; + this._rootSeparator = kVar; + } + + @Override // b.g.a.b.j + public void a(b.g.a.b.d dVar) throws IOException { + dVar.R('{'); + if (!this._objectIndenter.isInline()) { + this.k++; + } + } + + @Override // b.g.a.b.j + public void b(b.g.a.b.d dVar) throws IOException { + k kVar = this._rootSeparator; + if (kVar != null) { + dVar.S(kVar); + } + } + + @Override // b.g.a.b.j + public void c(b.g.a.b.d dVar) throws IOException { + dVar.R(this._separators.a()); + this._arrayIndenter.a(dVar, this.k); + } + + @Override // b.g.a.b.j + public void d(b.g.a.b.d dVar) throws IOException { + this._objectIndenter.a(dVar, this.k); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.g.a.b.t.e + public d e() { + if (d.class == d.class) { + return new d(this); + } + throw new IllegalStateException(b.d.b.a.a.n(d.class, b.d.b.a.a.R("Failed `createInstance()`: "), " does not override method; it has to")); + } + + @Override // b.g.a.b.j + public void f(b.g.a.b.d dVar, int i) throws IOException { + if (!this._objectIndenter.isInline()) { + this.k--; + } + if (i > 0) { + this._objectIndenter.a(dVar, this.k); + } else { + dVar.R(' '); + } + dVar.R('}'); + } + + @Override // b.g.a.b.j + public void g(b.g.a.b.d dVar) throws IOException { + if (!this._arrayIndenter.isInline()) { + this.k++; + } + dVar.R('['); + } + + @Override // b.g.a.b.j + public void h(b.g.a.b.d dVar) throws IOException { + this._arrayIndenter.a(dVar, this.k); + } + + @Override // b.g.a.b.j + public void i(b.g.a.b.d dVar) throws IOException { + dVar.R(this._separators.b()); + this._objectIndenter.a(dVar, this.k); + } + + @Override // b.g.a.b.j + public void j(b.g.a.b.d dVar, int i) throws IOException { + if (!this._arrayIndenter.isInline()) { + this.k--; + } + if (i > 0) { + this._arrayIndenter.a(dVar, this.k); + } else { + dVar.R(' '); + } + dVar.R(']'); + } + + @Override // b.g.a.b.j + public void k(b.g.a.b.d dVar) throws IOException { + if (this._spacesInObjectEntries) { + dVar.T(this._objectFieldValueSeparatorWithSpaces); + } else { + dVar.R(this._separators.c()); + } + } +} diff --git a/app/src/main/java/b/g/a/b/t/e.java b/app/src/main/java/b/g/a/b/t/e.java new file mode 100644 index 0000000000..74f732266a --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/e.java @@ -0,0 +1,5 @@ +package b.g.a.b.t; +/* compiled from: Instantiatable */ +public interface e { + T e(); +} diff --git a/app/src/main/java/b/g/a/b/t/f.java b/app/src/main/java/b/g/a/b/t/f.java new file mode 100644 index 0000000000..34af1f11a0 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/f.java @@ -0,0 +1,31 @@ +package b.g.a.b.t; + +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: InternCache */ +public final class f extends ConcurrentHashMap { + public static final f j = new f(); + private static final long serialVersionUID = 1; + private final Object lock = new Object(); + + public f() { + super(BaseTransientBottomBar.ANIMATION_FADE_DURATION, 0.8f, 4); + } + + public String a(String str) { + String str2 = get(str); + if (str2 != null) { + return str2; + } + if (size() >= 180) { + synchronized (this.lock) { + if (size() >= 180) { + clear(); + } + } + } + String intern = str.intern(); + put(intern, intern); + return intern; + } +} diff --git a/app/src/main/java/b/g/a/b/t/g.java b/app/src/main/java/b/g/a/b/t/g.java new file mode 100644 index 0000000000..ae5f83cfc3 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/g.java @@ -0,0 +1,7 @@ +package b.g.a.b.t; +/* compiled from: JacksonFeature */ +public interface g { + boolean f(); + + int g(); +} diff --git a/app/src/main/java/b/g/a/b/t/h.java b/app/src/main/java/b/g/a/b/t/h.java new file mode 100644 index 0000000000..80dabc3cb4 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/h.java @@ -0,0 +1,30 @@ +package b.g.a.b.t; + +import b.g.a.b.m; +import b.g.a.b.t.g; +/* compiled from: JacksonFeatureSet */ +public final class h { + public int a; + + public h(int i) { + this.a = i; + } + + public static h a(F[] fArr) { + if (fArr.length <= 31) { + int i = 0; + for (F f : fArr) { + if (f.f()) { + i |= f.g(); + } + } + return new h<>(i); + } + throw new IllegalArgumentException(String.format("Can not use type `%s` with JacksonFeatureSet: too many entries (%d > 31)", fArr[0].getClass().getName(), Integer.valueOf(fArr.length))); + } + + public h b(F f) { + int g = ((m) f).g() | this.a; + return g == this.a ? this : new h<>(g); + } +} diff --git a/app/src/main/java/b/g/a/b/t/i.java b/app/src/main/java/b/g/a/b/t/i.java new file mode 100644 index 0000000000..5a20d618f3 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/i.java @@ -0,0 +1,23 @@ +package b.g.a.b.t; + +import java.io.IOException; +import java.io.Serializable; +/* compiled from: RequestPayload */ +public class i implements Serializable { + private static final long serialVersionUID = 1; + public String _charset; + public byte[] _payloadAsBytes; + public CharSequence _payloadAsText; + + @Override // java.lang.Object + public String toString() { + if (this._payloadAsBytes == null) { + return this._payloadAsText.toString(); + } + try { + return new String(this._payloadAsBytes, this._charset); + } catch (IOException e) { + throw new RuntimeException(e); + } + } +} diff --git a/app/src/main/java/b/g/a/b/t/j.java b/app/src/main/java/b/g/a/b/t/j.java new file mode 100644 index 0000000000..e09d077b08 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/j.java @@ -0,0 +1,23 @@ +package b.g.a.b.t; + +import com.discord.widgets.chat.input.MentionUtilsKt; +import java.io.Serializable; +/* compiled from: Separators */ +public class j implements Serializable { + private static final long serialVersionUID = 1; + private final char arrayValueSeparator = ','; + private final char objectEntrySeparator = ','; + private final char objectFieldValueSeparator = MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR; + + public char a() { + return this.arrayValueSeparator; + } + + public char b() { + return this.objectEntrySeparator; + } + + public char c() { + return this.objectFieldValueSeparator; + } +} diff --git a/app/src/main/java/b/g/a/b/t/k.java b/app/src/main/java/b/g/a/b/t/k.java new file mode 100644 index 0000000000..a9be442b66 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/k.java @@ -0,0 +1,185 @@ +package b.g.a.b.t; + +import java.util.ArrayList; +/* compiled from: TextBuffer */ +public final class k { + public static final char[] a = new char[0]; + + /* renamed from: b reason: collision with root package name */ + public final a f664b; + public int c; + public ArrayList d; + public boolean e; + public int f; + public char[] g; + public int h; + public String i; + public char[] j; + + public k(a aVar) { + this.f664b = aVar; + } + + public k(a aVar, char[] cArr) { + this.f664b = null; + this.g = cArr; + this.h = cArr.length; + this.c = -1; + } + + public void a(String str, int i, int i2) { + if (this.c >= 0) { + f(i2); + } + this.i = null; + this.j = null; + char[] cArr = this.g; + int length = cArr.length; + int i3 = this.h; + int i4 = length - i3; + if (i4 >= i2) { + str.getChars(i, i + i2, cArr, i3); + this.h += i2; + return; + } + if (i4 > 0) { + int i5 = i + i4; + str.getChars(i, i5, cArr, i3); + i2 -= i4; + i = i5; + } + while (true) { + d(); + int min = Math.min(this.g.length, i2); + int i6 = i + min; + str.getChars(i, i6, this.g, 0); + this.h += min; + i2 -= min; + if (i2 > 0) { + i = i6; + } else { + return; + } + } + } + + public void b(char[] cArr, int i, int i2) { + if (this.c >= 0) { + f(i2); + } + this.i = null; + this.j = null; + char[] cArr2 = this.g; + int length = cArr2.length; + int i3 = this.h; + int i4 = length - i3; + if (i4 >= i2) { + System.arraycopy(cArr, i, cArr2, i3, i2); + this.h += i2; + return; + } + if (i4 > 0) { + System.arraycopy(cArr, i, cArr2, i3, i4); + i += i4; + i2 -= i4; + } + do { + d(); + int min = Math.min(this.g.length, i2); + System.arraycopy(cArr, i, this.g, 0, min); + this.h += min; + i += min; + i2 -= min; + } while (i2 > 0); + } + + public String c() { + if (this.i == null) { + if (this.j != null) { + this.i = new String(this.j); + } else { + String str = ""; + if (this.c >= 0) { + this.i = str; + return str; + } + int i = this.f; + int i2 = this.h; + if (i == 0) { + if (i2 != 0) { + str = new String(this.g, 0, i2); + } + this.i = str; + } else { + StringBuilder sb = new StringBuilder(i + i2); + ArrayList arrayList = this.d; + if (arrayList != null) { + int size = arrayList.size(); + for (int i3 = 0; i3 < size; i3++) { + char[] cArr = this.d.get(i3); + sb.append(cArr, 0, cArr.length); + } + } + sb.append(this.g, 0, this.h); + this.i = sb.toString(); + } + } + } + return this.i; + } + + public final void d() { + if (this.d == null) { + this.d = new ArrayList<>(); + } + char[] cArr = this.g; + this.e = true; + this.d.add(cArr); + this.f += cArr.length; + this.h = 0; + int length = cArr.length; + int i = length + (length >> 1); + if (i < 500) { + i = 500; + } else if (i > 65536) { + i = 65536; + } + this.g = new char[i]; + } + + public char[] e() { + if (this.d == null) { + this.d = new ArrayList<>(); + } + this.e = true; + this.d.add(this.g); + int length = this.g.length; + this.f += length; + this.h = 0; + int i = length + (length >> 1); + if (i < 500) { + i = 500; + } else if (i > 65536) { + i = 65536; + } + char[] cArr = new char[i]; + this.g = cArr; + return cArr; + } + + public final void f(int i) { + this.c = -1; + int i2 = i + 0; + char[] cArr = this.g; + if (cArr == null || i2 > cArr.length) { + a aVar = this.f664b; + this.g = aVar != null ? aVar.a(2, i2) : new char[Math.max(i2, 500)]; + } + this.f = 0; + this.h = 0; + } + + public String toString() { + return c(); + } +} diff --git a/app/src/main/java/b/g/a/b/t/l.java b/app/src/main/java/b/g/a/b/t/l.java new file mode 100644 index 0000000000..ceb612e941 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/l.java @@ -0,0 +1,18 @@ +package b.g.a.b.t; + +import java.lang.ref.ReferenceQueue; +import java.lang.ref.SoftReference; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: ThreadLocalBufferManager */ +public class l { + public final Map, Boolean> a = new ConcurrentHashMap(); + + /* renamed from: b reason: collision with root package name */ + public final ReferenceQueue f665b = new ReferenceQueue<>(); + + /* compiled from: ThreadLocalBufferManager */ + public static final class a { + public static final l a = new l(); + } +} diff --git a/app/src/main/java/b/g/a/b/t/m.java b/app/src/main/java/b/g/a/b/t/m.java new file mode 100644 index 0000000000..7c0fccdf33 --- /dev/null +++ b/app/src/main/java/b/g/a/b/t/m.java @@ -0,0 +1,11 @@ +package b.g.a.b.t; + +import java.util.regex.Pattern; +/* compiled from: VersionUtil */ +public class m { + public static final /* synthetic */ int a = 0; + + static { + Pattern.compile("[-_./;:]"); + } +} diff --git a/app/src/main/java/b/g/a/c/a.java b/app/src/main/java/b/g/a/c/a.java new file mode 100644 index 0000000000..9b7ba7559f --- /dev/null +++ b/app/src/main/java/b/g/a/c/a.java @@ -0,0 +1,4 @@ +package b.g.a.c; +/* compiled from: AbstractTypeResolver */ +public abstract class a { +} diff --git a/app/src/main/java/b/g/a/c/a0/a.java b/app/src/main/java/b/g/a/c/a0/a.java new file mode 100644 index 0000000000..113e4dee6f --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/a.java @@ -0,0 +1,17 @@ +package b.g.a.c.a0; + +import b.g.a.c.t; +import b.g.a.c.z.j; +import java.io.Serializable; +/* compiled from: BasicDeserializerFactory */ +public abstract class a extends f implements Serializable { + public final j _factoryConfig; + + static { + new t("@JsonUnwrapped"); + } + + public a(j jVar) { + this._factoryConfig = jVar; + } +} diff --git a/app/src/main/java/b/g/a/c/a0/b.java b/app/src/main/java/b/g/a/c/a0/b.java new file mode 100644 index 0000000000..f848e4f6cf --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/b.java @@ -0,0 +1,13 @@ +package b.g.a.c.a0; + +import b.g.a.c.z.j; +import java.io.Serializable; +/* compiled from: BeanDeserializerFactory */ +public class b extends a implements Serializable { + public static final b j = new b(new j()); + private static final long serialVersionUID = 1; + + public b(j jVar) { + super(jVar); + } +} diff --git a/app/src/main/java/b/g/a/c/a0/c.java b/app/src/main/java/b/g/a/c/a0/c.java new file mode 100644 index 0000000000..7ad7af0409 --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/c.java @@ -0,0 +1,4 @@ +package b.g.a.c.a0; +/* compiled from: BeanDeserializerModifier */ +public abstract class c { +} diff --git a/app/src/main/java/b/g/a/c/a0/d.java b/app/src/main/java/b/g/a/c/a0/d.java new file mode 100644 index 0000000000..ced320d62a --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/d.java @@ -0,0 +1,23 @@ +package b.g.a.c.a0; + +import b.g.a.c.g; +import java.io.Serializable; +import java.util.List; +/* compiled from: DefaultDeserializationContext */ +public abstract class d extends g implements Serializable { + private static final long serialVersionUID = 1; + private List _objectIdResolvers; + + /* compiled from: DefaultDeserializationContext */ + public static final class a extends d { + private static final long serialVersionUID = 1; + + public a(f fVar) { + super(fVar, null); + } + } + + public d(f fVar, e eVar) { + super(fVar, null); + } +} diff --git a/app/src/main/java/b/g/a/c/a0/e.java b/app/src/main/java/b/g/a/c/a0/e.java new file mode 100644 index 0000000000..6105e68d24 --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/e.java @@ -0,0 +1,18 @@ +package b.g.a.c.a0; + +import b.g.a.c.i0.h; +import b.g.a.c.j; +import b.g.a.c.k; +import java.io.Serializable; +import java.util.HashMap; +/* compiled from: DeserializerCache */ +public final class e implements Serializable { + private static final long serialVersionUID = 1; + public final h> _cachedDeserializers = new h<>(Math.min(64, 500), 2000); + public final HashMap> _incompleteDeserializers = new HashMap<>(8); + + public Object writeReplace() { + this._incompleteDeserializers.clear(); + return this; + } +} diff --git a/app/src/main/java/b/g/a/c/a0/f.java b/app/src/main/java/b/g/a/c/a0/f.java new file mode 100644 index 0000000000..186a9db0e0 --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/f.java @@ -0,0 +1,4 @@ +package b.g.a.c.a0; +/* compiled from: DeserializerFactory */ +public abstract class f { +} diff --git a/app/src/main/java/b/g/a/c/a0/g.java b/app/src/main/java/b/g/a/c/a0/g.java new file mode 100644 index 0000000000..a837685169 --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/g.java @@ -0,0 +1,4 @@ +package b.g.a.c.a0; +/* compiled from: Deserializers */ +public interface g { +} diff --git a/app/src/main/java/b/g/a/c/a0/h.java b/app/src/main/java/b/g/a/c/a0/h.java new file mode 100644 index 0000000000..2aecb18b8f --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/h.java @@ -0,0 +1,4 @@ +package b.g.a.c.a0; +/* compiled from: KeyDeserializers */ +public interface h { +} diff --git a/app/src/main/java/b/g/a/c/a0/i.java b/app/src/main/java/b/g/a/c/a0/i.java new file mode 100644 index 0000000000..892d8d569f --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/i.java @@ -0,0 +1,9 @@ +package b.g.a.c.a0; + +import b.g.a.c.i0.d; +/* compiled from: UnresolvedId */ +public class i { + public String toString() { + return String.format("Object id [%s] (for %s) at %s", null, d.u(null), null); + } +} diff --git a/app/src/main/java/b/g/a/c/a0/j.java b/app/src/main/java/b/g/a/c/a0/j.java new file mode 100644 index 0000000000..7ef2be72f9 --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/j.java @@ -0,0 +1,4 @@ +package b.g.a.c.a0; +/* compiled from: ValueInstantiators */ +public interface j { +} diff --git a/app/src/main/java/b/g/a/c/a0/k/a.java b/app/src/main/java/b/g/a/c/a0/k/a.java new file mode 100644 index 0000000000..7c135a135f --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/k/a.java @@ -0,0 +1,4 @@ +package b.g.a.c.a0.k; +/* compiled from: ReadableObjectId */ +public class a { +} diff --git a/app/src/main/java/b/g/a/c/a0/l/a.java b/app/src/main/java/b/g/a/c/a0/l/a.java new file mode 100644 index 0000000000..d67e255383 --- /dev/null +++ b/app/src/main/java/b/g/a/c/a0/l/a.java @@ -0,0 +1,8 @@ +package b.g.a.c.a0.l; + +import b.g.a.c.a0.h; +import java.io.Serializable; +/* compiled from: StdKeyDeserializers */ +public class a implements h, Serializable { + private static final long serialVersionUID = 1; +} diff --git a/app/src/main/java/b/g/a/c/b.java b/app/src/main/java/b/g/a/c/b.java new file mode 100644 index 0000000000..4ee04290fc --- /dev/null +++ b/app/src/main/java/b/g/a/c/b.java @@ -0,0 +1,288 @@ +package b.g.a.c; + +import b.g.a.a.b; +import b.g.a.a.g; +import b.g.a.a.i; +import b.g.a.a.n; +import b.g.a.a.p; +import b.g.a.a.q; +import b.g.a.a.u; +import b.g.a.a.z; +import b.g.a.c.c0.a0; +import b.g.a.c.c0.c; +import b.g.a.c.c0.g; +import b.g.a.c.c0.g0; +import b.g.a.c.c0.i; +import b.g.a.c.c0.j; +import b.g.a.c.e0.f; +import b.g.a.c.i0.n; +import b.g.a.c.y.e; +import b.g.a.c.z.l; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.Serializable; +import java.lang.annotation.Annotation; +import java.util.List; +/* compiled from: AnnotationIntrospector */ +public abstract class b implements Serializable { + + /* compiled from: AnnotationIntrospector */ + public static class a { + public final int a; + + public a(int i, String str) { + this.a = i; + } + } + + public q.a A(l lVar, b.g.a.c.c0.b bVar) { + return q.a.j; + } + + public Integer B(b.g.a.c.c0.b bVar) { + return null; + } + + public f C(l lVar, i iVar, j jVar) { + return null; + } + + public a D(i iVar) { + return null; + } + + public t E(l lVar, g gVar, t tVar) { + return null; + } + + public t F(c cVar) { + return null; + } + + public Object G(i iVar) { + return null; + } + + public Object H(b.g.a.c.c0.b bVar) { + return null; + } + + public String[] I(c cVar) { + return null; + } + + public Boolean J(b.g.a.c.c0.b bVar) { + return null; + } + + public e.b K(b.g.a.c.c0.b bVar) { + return null; + } + + public Object L(b.g.a.c.c0.b bVar) { + return null; + } + + public z.a M(b.g.a.c.c0.b bVar) { + return z.a.j; + } + + public List N(b.g.a.c.c0.b bVar) { + return null; + } + + public String O(c cVar) { + return null; + } + + public f P(l lVar, c cVar, j jVar) { + return null; + } + + public n Q(i iVar) { + return null; + } + + public Class[] R(b.g.a.c.c0.b bVar) { + return null; + } + + public Boolean S(b.g.a.c.c0.b bVar) { + if (!(bVar instanceof j) || !T((j) bVar)) { + return null; + } + return Boolean.TRUE; + } + + @Deprecated + public boolean T(j jVar) { + return false; + } + + public Boolean U(b.g.a.c.c0.b bVar) { + return null; + } + + public Boolean V(l lVar, b.g.a.c.c0.b bVar) { + return null; + } + + public Boolean W(b.g.a.c.c0.b bVar) { + if (!(bVar instanceof j) || !X((j) bVar)) { + return null; + } + return Boolean.TRUE; + } + + @Deprecated + public boolean X(j jVar) { + return false; + } + + @Deprecated + public boolean Y(b.g.a.c.c0.b bVar) { + return false; + } + + public boolean Z(i iVar) { + return false; + } + + public void a(l lVar, c cVar, List list) { + } + + public Boolean a0(i iVar) { + return null; + } + + public g0 b(c cVar, g0 g0Var) { + return g0Var; + } + + public boolean b0(Annotation annotation) { + return false; + } + + public Object c(b.g.a.c.c0.b bVar) { + return null; + } + + public Boolean c0(c cVar) { + return null; + } + + public g.a d(l lVar, b.g.a.c.c0.b bVar) { + if (!Y(bVar)) { + return null; + } + g.a e = e(bVar); + return e == null ? g.a.DEFAULT : e; + } + + public Boolean d0(i iVar) { + return null; + } + + @Deprecated + public g.a e(b.g.a.c.c0.b bVar) { + return null; + } + + public j e0(l lVar, b.g.a.c.c0.b bVar, j jVar) throws JsonMappingException { + return jVar; + } + + public String[] f(Class cls, Enum[] enumArr, String[] strArr) { + return strArr; + } + + public j f0(l lVar, j jVar, j jVar2) { + return null; + } + + public Object g(b.g.a.c.c0.b bVar) { + return null; + } + + public i.d h(b.g.a.c.c0.b bVar) { + return i.d.j; + } + + public String i(b.g.a.c.c0.i iVar) { + return null; + } + + public b.a j(b.g.a.c.c0.i iVar) { + Object k = k(iVar); + if (k != null) { + return b.a.a(k, null); + } + return null; + } + + @Deprecated + public Object k(b.g.a.c.c0.i iVar) { + return null; + } + + public Object l(b.g.a.c.c0.b bVar) { + return null; + } + + public Boolean m(b.g.a.c.c0.b bVar) { + return null; + } + + public t n(b.g.a.c.c0.b bVar) { + return null; + } + + public t o(b.g.a.c.c0.b bVar) { + return null; + } + + public Object p(c cVar) { + return null; + } + + public Object q(b.g.a.c.c0.b bVar) { + return null; + } + + public a0 r(b.g.a.c.c0.b bVar) { + return null; + } + + public a0 s(b.g.a.c.c0.b bVar, a0 a0Var) { + return a0Var; + } + + public u.a t(b.g.a.c.c0.b bVar) { + return null; + } + + public f u(l lVar, b.g.a.c.c0.i iVar, j jVar) { + return null; + } + + public String v(b.g.a.c.c0.b bVar) { + return null; + } + + public String w(b.g.a.c.c0.b bVar) { + return null; + } + + public n.a x(l lVar, b.g.a.c.c0.b bVar) { + return y(bVar); + } + + @Deprecated + public n.a y(b.g.a.c.c0.b bVar) { + return n.a.j; + } + + public p.b z(b.g.a.c.c0.b bVar) { + p.b bVar2 = p.b.j; + return p.b.j; + } +} diff --git a/app/src/main/java/b/g/a/c/b0/a.java b/app/src/main/java/b/g/a/c/b0/a.java new file mode 100644 index 0000000000..2c5aea6a02 --- /dev/null +++ b/app/src/main/java/b/g/a/c/b0/a.java @@ -0,0 +1,20 @@ +package b.g.a.c.b0; + +import b.g.a.c.i0.d; +import b.g.a.c.n; +/* compiled from: Java7Handlers */ +public abstract class a { + public static final a a; + + static { + a aVar; + try { + aVar = (a) d.g(Class.forName("b.g.a.c.b0.b"), false); + } catch (Throwable unused) { + aVar = null; + } + a = aVar; + } + + public abstract n a(Class cls); +} diff --git a/app/src/main/java/b/g/a/c/b0/b.java b/app/src/main/java/b/g/a/c/b0/b.java new file mode 100644 index 0000000000..72fe33ddb7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/b0/b.java @@ -0,0 +1,18 @@ +package b.g.a.c.b0; + +import b.g.a.c.n; +import java.nio.file.Path; +/* compiled from: Java7HandlersImpl */ +public class b extends a { + + /* renamed from: b reason: collision with root package name */ + public final Class f666b = Path.class; + + @Override // b.g.a.c.b0.a + public n a(Class cls) { + if (this.f666b.isAssignableFrom(cls)) { + return new e(); + } + return null; + } +} diff --git a/app/src/main/java/b/g/a/c/b0/c.java b/app/src/main/java/b/g/a/c/b0/c.java new file mode 100644 index 0000000000..0b45cd2509 --- /dev/null +++ b/app/src/main/java/b/g/a/c/b0/c.java @@ -0,0 +1,26 @@ +package b.g.a.c.b0; + +import b.g.a.c.c0.b; +import b.g.a.c.c0.m; +import b.g.a.c.i0.d; +import b.g.a.c.t; +/* compiled from: Java7Support */ +public abstract class c { + public static final c a; + + static { + c cVar; + try { + cVar = (c) d.g(Class.forName("b.g.a.c.b0.d"), false); + } catch (Throwable unused) { + cVar = null; + } + a = cVar; + } + + public abstract t a(m mVar); + + public abstract Boolean b(b bVar); + + public abstract Boolean c(b bVar); +} diff --git a/app/src/main/java/b/g/a/c/b0/d.java b/app/src/main/java/b/g/a/c/b0/d.java new file mode 100644 index 0000000000..cef0e0dbfa --- /dev/null +++ b/app/src/main/java/b/g/a/c/b0/d.java @@ -0,0 +1,42 @@ +package b.g.a.c.b0; + +import b.g.a.c.c0.b; +import b.g.a.c.c0.m; +import b.g.a.c.c0.n; +import b.g.a.c.t; +import java.beans.ConstructorProperties; +import java.beans.Transient; +/* compiled from: Java7SupportImpl */ +public class d extends c { + @Override // b.g.a.c.b0.c + public t a(m mVar) { + ConstructorProperties b2; + n nVar = mVar._owner; + if (nVar == null || (b2 = nVar.b(ConstructorProperties.class)) == null) { + return null; + } + String[] value = b2.value(); + int i = mVar._index; + if (i < value.length) { + return t.a(value[i]); + } + return null; + } + + @Override // b.g.a.c.b0.c + public Boolean b(b bVar) { + Transient b2 = bVar.b(Transient.class); + if (b2 != null) { + return Boolean.valueOf(b2.value()); + } + return null; + } + + @Override // b.g.a.c.b0.c + public Boolean c(b bVar) { + if (bVar.b(ConstructorProperties.class) != null) { + return Boolean.TRUE; + } + return null; + } +} diff --git a/app/src/main/java/b/g/a/c/b0/e.java b/app/src/main/java/b/g/a/c/b0/e.java new file mode 100644 index 0000000000..a454cb838a --- /dev/null +++ b/app/src/main/java/b/g/a/c/b0/e.java @@ -0,0 +1,33 @@ +package b.g.a.c.b0; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.g0.u.p0; +import b.g.a.c.x; +import java.io.IOException; +import java.nio.file.Path; +/* compiled from: NioPathSerializer */ +public class e extends p0 { + private static final long serialVersionUID = 1; + + public e() { + super(Path.class); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.j0(((Path) obj).toUri().toString()); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + Path path = (Path) obj; + b d = gVar.d(path, h.VALUE_STRING); + d.f661b = Path.class; + b e = gVar.e(dVar, d); + dVar.j0(path.toUri().toString()); + gVar.f(dVar, e); + } +} diff --git a/app/src/main/java/b/g/a/c/b0/f.java b/app/src/main/java/b/g/a/c/b0/f.java new file mode 100644 index 0000000000..0d2a95b01b --- /dev/null +++ b/app/src/main/java/b/g/a/c/b0/f.java @@ -0,0 +1,118 @@ +package b.g.a.c.b0; + +import b.d.b.a.a; +import b.g.a.c.c; +import b.g.a.c.g0.r; +import b.g.a.c.g0.u.k; +import b.g.a.c.i0.d; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.v; +import java.io.Serializable; +import java.util.HashMap; +import java.util.Map; +import org.w3c.dom.Node; +/* compiled from: OptionalHandlerFactory */ +public class f implements Serializable { + public static final Class j = Node.class; + public static final a k; + public static final f l = new f(); + private static final long serialVersionUID = 1; + private final Map _sqlDeserializers; + private final Map _sqlSerializers; + + static { + a aVar = null; + try { + aVar = a.a; + } catch (Throwable unused) { + } + k = aVar; + } + + public f() { + HashMap hashMap = new HashMap(); + this._sqlDeserializers = hashMap; + hashMap.put("java.sql.Date", "com.fasterxml.jackson.databind.deser.std.DateDeserializers$SqlDateDeserializer"); + hashMap.put("java.sql.Timestamp", "com.fasterxml.jackson.databind.deser.std.DateDeserializers$TimestampDeserializer"); + HashMap hashMap2 = new HashMap(); + this._sqlSerializers = hashMap2; + hashMap2.put("java.sql.Timestamp", k.k); + hashMap2.put("java.sql.Date", "com.fasterxml.jackson.databind.ser.std.SqlDateSerializer"); + hashMap2.put("java.sql.Time", "com.fasterxml.jackson.databind.ser.std.SqlTimeSerializer"); + hashMap2.put("java.sql.Blob", "com.fasterxml.jackson.databind.ext.SqlBlobSerializer"); + hashMap2.put("javax.sql.rowset.serial.SerialBlob", "com.fasterxml.jackson.databind.ext.SqlBlobSerializer"); + } + + /* JADX WARNING: Code restructure failed: missing block: B:30:0x0062, code lost: + r2 = false; + */ + public n a(v vVar, j jVar, c cVar) { + n a; + Class cls = jVar._class; + Class cls2 = j; + boolean z2 = true; + if (cls2 != null && cls2.isAssignableFrom(cls)) { + return (n) c("com.fasterxml.jackson.databind.ext.DOMSerializer", jVar); + } + a aVar = k; + if (aVar != null && (a = aVar.a(cls)) != null) { + return a; + } + String name = cls.getName(); + Object obj = this._sqlSerializers.get(name); + if (obj != null) { + return obj instanceof n ? (n) obj : (n) c((String) obj, jVar); + } + if (!name.startsWith("javax.xml.")) { + while (true) { + cls = cls.getSuperclass(); + if (cls != null && cls != Object.class) { + if (cls.getName().startsWith("javax.xml.")) { + break; + } + } else { + break; + } + } + if (!z2) { + return null; + } + } + Object c = c("com.fasterxml.jackson.databind.ext.CoreXMLSerializers", jVar); + if (c == null) { + return null; + } + return ((r) c).b(vVar, jVar, cVar); + } + + public final Object b(Class cls, j jVar) { + try { + return d.g(cls, false); + } catch (Throwable th) { + StringBuilder R = a.R("Failed to create instance of `"); + R.append(cls.getName()); + R.append("` for handling values of type "); + R.append(d.n(jVar)); + R.append(", problem: ("); + R.append(th.getClass().getName()); + R.append(") "); + R.append(th.getMessage()); + throw new IllegalStateException(R.toString()); + } + } + + public final Object c(String str, j jVar) { + try { + return b(Class.forName(str), jVar); + } catch (Throwable th) { + StringBuilder W = a.W("Failed to find class `", str, "` for handling values of type "); + W.append(d.n(jVar)); + W.append(", problem: ("); + W.append(th.getClass().getName()); + W.append(") "); + W.append(th.getMessage()); + throw new IllegalStateException(W.toString()); + } + } +} diff --git a/app/src/main/java/b/g/a/c/c.java b/app/src/main/java/b/g/a/c/c.java new file mode 100644 index 0000000000..4e41ea121d --- /dev/null +++ b/app/src/main/java/b/g/a/c/c.java @@ -0,0 +1,18 @@ +package b.g.a.c; + +import b.g.a.a.i; +import b.g.a.a.p; +/* compiled from: BeanDescription */ +public abstract class c { + public final j a; + + public c(j jVar) { + this.a = jVar; + } + + public abstract i.d a(i.d dVar); + + public abstract b.g.a.c.c0.i b(); + + public abstract p.b c(p.b bVar); +} diff --git a/app/src/main/java/b/g/a/c/c0/a.java b/app/src/main/java/b/g/a/c/c0/a.java new file mode 100644 index 0000000000..e3dc094d32 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/a.java @@ -0,0 +1,18 @@ +package b.g.a.c.c0; + +import java.io.Serializable; +/* compiled from: AccessorNamingStrategy */ +public abstract class a { + + /* compiled from: AccessorNamingStrategy */ + /* renamed from: b.g.a.c.c0.a$a reason: collision with other inner class name */ + public static abstract class AbstractC0074a implements Serializable { + private static final long serialVersionUID = 1; + } + + public abstract String a(j jVar, String str); + + public abstract String b(j jVar, String str); + + public abstract String c(j jVar, String str); +} diff --git a/app/src/main/java/b/g/a/c/c0/a0.java b/app/src/main/java/b/g/a/c/c0/a0.java new file mode 100644 index 0000000000..aeaf30843e --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/a0.java @@ -0,0 +1,38 @@ +package b.g.a.c.c0; + +import b.d.b.a.a; +import b.g.a.a.i0; +import b.g.a.a.n0; +import b.g.a.c.i0.d; +import b.g.a.c.t; +/* compiled from: ObjectIdInfo */ +public class a0 { + public static final a0 a = new a0(t.k, Object.class, null, false, null); + + /* renamed from: b reason: collision with root package name */ + public final t f667b; + public final Class> c; + public final Class d; + public final Class e; + public final boolean f; + + public a0(t tVar, Class cls, Class> cls2, boolean z2, Class cls3) { + this.f667b = tVar; + this.e = cls; + this.c = cls2; + this.f = z2; + this.d = cls3 == null ? n0.class : cls3; + } + + public String toString() { + StringBuilder R = a.R("ObjectIdInfo: propName="); + R.append(this.f667b); + R.append(", scope="); + R.append(d.u(this.e)); + R.append(", generatorType="); + R.append(d.u(this.c)); + R.append(", alwaysAsId="); + R.append(this.f); + return R.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/b.java b/app/src/main/java/b/g/a/c/c0/b.java new file mode 100644 index 0000000000..434ec687a8 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/b.java @@ -0,0 +1,18 @@ +package b.g.a.c.c0; + +import b.g.a.c.j; +import java.lang.annotation.Annotation; +/* compiled from: Annotated */ +public abstract class b { + public abstract A b(Class cls); + + public abstract String c(); + + public abstract Class d(); + + public abstract j e(); + + public abstract boolean equals(Object obj); + + public abstract int hashCode(); +} diff --git a/app/src/main/java/b/g/a/c/c0/b0.java b/app/src/main/java/b/g/a/c/c0/b0.java new file mode 100644 index 0000000000..ecd7a0c929 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/b0.java @@ -0,0 +1,762 @@ +package b.g.a.c.c0; + +import b.d.b.a.a; +import b.g.a.a.b; +import b.g.a.a.g; +import b.g.a.a.u; +import b.g.a.c.b; +import b.g.a.c.c0.c0; +import b.g.a.c.c0.g0; +import b.g.a.c.i0.d; +import b.g.a.c.j; +import b.g.a.c.p; +import b.g.a.c.t; +import b.g.a.c.u; +import b.g.a.c.z.l; +import java.lang.annotation.Annotation; +import java.lang.reflect.Modifier; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.TreeMap; +/* compiled from: POJOPropertiesCollector */ +public class b0 { + public final l a; + + /* renamed from: b reason: collision with root package name */ + public final a f668b; + public final boolean c; + public final j d; + public final c e; + public final g0 f; + public final b g; + public final boolean h; + public boolean i; + public LinkedHashMap j; + public LinkedList k; + public Map l; + public LinkedList m; + public LinkedList n; + public LinkedList o; + public LinkedList p; + public LinkedList q; + public LinkedList r; + + /* renamed from: s reason: collision with root package name */ + public HashSet f669s; + public LinkedHashMap t; + + public b0(l lVar, boolean z2, j jVar, c cVar, a aVar) { + this.a = lVar; + this.c = z2; + this.d = jVar; + this.e = cVar; + if (lVar.p()) { + this.h = true; + this.g = lVar.e(); + } else { + this.h = false; + this.g = z.j; + } + this.f = lVar.m(jVar._class, cVar); + this.f668b = aVar; + lVar.q(p.USE_STD_BEAN_NAMING); + } + + public void a(Map map, m mVar) { + c0 c0Var; + g.a d; + String i = this.g.i(mVar); + if (i == null) { + i = ""; + } + t n = this.g.n(mVar); + boolean z2 = n != null && !n.d(); + if (!z2) { + if (!i.isEmpty() && (d = this.g.d(this.a, mVar._owner)) != null && d != g.a.DISABLED) { + n = t.a(i); + } else { + return; + } + } + String b2 = b(i); + if (!z2 || !b2.isEmpty()) { + c0Var = f(map, b2); + } else { + String str = n._simpleName; + c0Var = map.get(str); + if (c0Var == null) { + c0Var = new c0(this.a, this.g, this.c, n); + map.put(str, c0Var); + } + } + c0Var.r = new c0.d<>(mVar, c0Var.r, n, z2, true, false); + this.k.add(c0Var); + } + + public final String b(String str) { + t tVar; + Map map = this.l; + return (map == null || (tVar = map.get(e(str))) == null) ? str : tVar._simpleName; + } + + public void c(String str) { + if (!this.c && str != null) { + if (this.f669s == null) { + this.f669s = new HashSet<>(); + } + this.f669s.add(str); + } + } + + public void d(b.a aVar, i iVar) { + if (aVar != null) { + Object obj = aVar._id; + if (this.t == null) { + this.t = new LinkedHashMap<>(); + } + i put = this.t.put(obj, iVar); + if (put != null && put.getClass() == iVar.getClass()) { + String name = obj.getClass().getName(); + throw new IllegalArgumentException("Duplicate injectable value with id '" + obj + "' (of type " + name + ")"); + } + } + } + + public final t e(String str) { + return t.b(str, null); + } + + public c0 f(Map map, String str) { + c0 c0Var = map.get(str); + if (c0Var != null) { + return c0Var; + } + c0 c0Var2 = new c0(this.a, this.g, this.c, t.a(str)); + map.put(str, c0Var2); + return c0Var2; + } + + public boolean g(c0 c0Var, List list) { + if (list != null) { + String str = c0Var.p._simpleName; + int size = list.size(); + for (int i = 0; i < size; i++) { + if (list.get(i).p._simpleName.equals(str)) { + list.set(i, c0Var); + return true; + } + } + } + return false; + } + + /* JADX WARNING: Removed duplicated region for block: B:430:0x0881 */ + /* JADX WARNING: Removed duplicated region for block: B:441:0x08b2 */ + /* JADX WARNING: Removed duplicated region for block: B:442:0x08b6 */ + public void h() { + u uVar; + boolean z2; + boolean z3; + Collection collection; + boolean z4; + String str; + c0 c0Var; + HashSet hashSet; + u.a aVar; + c0.d dVar; + c0.d dVar2; + c0.d dVar3; + c0.d dVar4; + c0.d dVar5; + c0.d dVar6; + c0.d dVar7; + c0.d dVar8; + boolean z5; + String i; + t tVar; + boolean z6; + boolean z7; + boolean f; + String i2; + t tVar2; + boolean z8; + boolean z9; + boolean z10; + t tVar3; + boolean z11; + boolean z12; + LinkedHashMap linkedHashMap = new LinkedHashMap<>(); + b.g.a.c.b bVar = this.g; + boolean z13 = !this.c && !this.a.q(p.ALLOW_FINAL_FIELDS_AS_MUTATORS); + boolean q = this.a.q(p.PROPAGATE_TRANSIENT_MARKER); + for (g gVar : this.e.g()) { + Boolean bool = Boolean.TRUE; + if (bool.equals(bVar.V(this.a, gVar))) { + if (this.q == null) { + this.q = new LinkedList<>(); + } + this.q.add(gVar); + } + if (bool.equals(bVar.W(gVar))) { + if (this.r == null) { + this.r = new LinkedList<>(); + } + this.r.add(gVar); + } else { + boolean equals = bool.equals(bVar.S(gVar)); + boolean equals2 = bool.equals(bVar.U(gVar)); + if (equals || equals2) { + if (equals) { + if (this.n == null) { + this.n = new LinkedList<>(); + } + this.n.add(gVar); + } + if (equals2) { + if (this.p == null) { + this.p = new LinkedList<>(); + } + this.p.add(gVar); + } + } else { + String i3 = bVar.i(gVar); + if (i3 == null) { + i3 = gVar.c(); + } + Objects.requireNonNull((w) this.f668b); + if (i3 != null) { + t e = e(i3); + t E = bVar.E(this.a, gVar, e); + if (E != null && !E.equals(e)) { + if (this.l == null) { + this.l = new HashMap(); + } + this.l.put(E, e); + } + t o = this.c ? bVar.o(gVar) : bVar.n(gVar); + boolean z14 = o != null; + if (!z14 || !o.d()) { + tVar3 = o; + z10 = z14; + } else { + tVar3 = e(i3); + z10 = false; + } + boolean z15 = tVar3 != null; + if (!z15) { + g0.a aVar2 = (g0.a) this.f; + Objects.requireNonNull(aVar2); + z15 = aVar2._fieldMinLevel.f(gVar.l); + } + boolean Z = bVar.Z(gVar); + if (!Modifier.isTransient(gVar.l.getModifiers()) || z14) { + z11 = Z; + z12 = z15; + } else if (q) { + z12 = false; + z11 = true; + } else { + z11 = Z; + z12 = false; + } + if (!z13 || tVar3 != null || z11 || !Modifier.isFinal(gVar.l.getModifiers())) { + c0 f2 = f(linkedHashMap, i3); + f2.q = new c0.d<>(gVar, f2.q, tVar3, z10, z12, z11); + } + } + } + } + } + Iterator it = ((l) this.e.h()).iterator(); + while (it.hasNext()) { + j next = it.next(); + int o2 = next.o(); + if (o2 == 0) { + b.g.a.c.b bVar2 = this.g; + Class returnType = next.l.getReturnType(); + if (returnType != Void.TYPE && (returnType != Void.class || this.a.q(p.ALLOW_VOID_VALUED_PROPERTIES))) { + Boolean bool2 = Boolean.TRUE; + if (bool2.equals(bVar2.S(next))) { + if (this.m == null) { + this.m = new LinkedList<>(); + } + this.m.add(next); + } else if (bool2.equals(bVar2.V(this.a, next))) { + if (this.q == null) { + this.q = new LinkedList<>(); + } + this.q.add(next); + } else if (bool2.equals(bVar2.W(next))) { + if (this.r == null) { + this.r = new LinkedList<>(); + } + this.r.add(next); + } else { + t o3 = bVar2.o(next); + boolean z16 = o3 != null; + if (!z16) { + i = bVar2.i(next); + if (i == null) { + i = this.f668b.c(next, next.c()); + } + if (i == null) { + i = this.f668b.a(next, next.c()); + if (i != null) { + g0.a aVar3 = (g0.a) this.f; + Objects.requireNonNull(aVar3); + f = aVar3._isGetterMinLevel.f(next.l); + } + } else { + g0.a aVar4 = (g0.a) this.f; + Objects.requireNonNull(aVar4); + f = aVar4._getterMinLevel.f(next.l); + } + z6 = z16; + z7 = f; + tVar = o3; + } else { + i = bVar2.i(next); + if (i == null && (i = this.f668b.c(next, next.c())) == null) { + i = this.f668b.a(next, next.c()); + } + if (i == null) { + i = next.c(); + } + if (o3.d()) { + o3 = e(i); + z16 = false; + } + tVar = o3; + z6 = z16; + z7 = true; + } + String b2 = b(i); + boolean Z2 = bVar2.Z(next); + c0 f3 = f(linkedHashMap, b2); + f3.f673s = new c0.d<>(next, f3.f673s, tVar, z6, z7, Z2); + } + } + } else if (o2 == 1) { + b.g.a.c.b bVar3 = this.g; + t n = bVar3.n(next); + boolean z17 = n != null; + if (!z17) { + i2 = bVar3.i(next); + if (i2 == null) { + i2 = this.f668b.b(next, next.c()); + } + if (i2 != null) { + g0.a aVar5 = (g0.a) this.f; + Objects.requireNonNull(aVar5); + z8 = z17; + z9 = aVar5._setterMinLevel.f(next.l); + tVar2 = n; + } + } else { + i2 = bVar3.i(next); + if (i2 == null) { + i2 = this.f668b.b(next, next.c()); + } + if (i2 == null) { + i2 = next.c(); + } + if (n.d()) { + n = e(i2); + z17 = false; + } + tVar2 = n; + z8 = z17; + z9 = true; + } + String b3 = b(i2); + boolean Z3 = bVar3.Z(next); + c0 f4 = f(linkedHashMap, b3); + f4.t = new c0.d<>(next, f4.t, tVar2, z8, z9, Z3); + } else if (o2 == 2 && Boolean.TRUE.equals(this.g.U(next))) { + if (this.o == null) { + this.o = new LinkedList<>(); + } + this.o.add(next); + } + } + c cVar = this.e; + Boolean bool3 = cVar.f671x; + if (bool3 == null) { + Class cls = cVar.l; + Annotation[] annotationArr = d.a; + if (!Modifier.isStatic(cls.getModifiers())) { + if ((d.t(cls) ? null : cls.getEnclosingClass()) != null) { + z5 = true; + bool3 = Boolean.valueOf(z5); + cVar.f671x = bool3; + } + } + z5 = false; + bool3 = Boolean.valueOf(z5); + cVar.f671x = bool3; + } + if (!bool3.booleanValue() && this.h) { + for (e eVar : this.e.f().f672b) { + if (this.k == null) { + this.k = new LinkedList<>(); + } + int length = eVar._constructor.getParameterTypes().length; + for (int i4 = 0; i4 < length; i4++) { + a(linkedHashMap, eVar.m(i4)); + } + } + for (j jVar : this.e.f().c) { + if (this.k == null) { + this.k = new LinkedList<>(); + } + int o4 = jVar.o(); + for (int i5 = 0; i5 < o4; i5++) { + a(linkedHashMap, jVar.m(i5)); + } + } + } + Iterator it2 = linkedHashMap.values().iterator(); + while (it2.hasNext()) { + c0 next2 = it2.next(); + if (!(next2.z(next2.q) || next2.z(next2.f673s) || next2.z(next2.t) || next2.z(next2.r))) { + it2.remove(); + } else if (next2.y(next2.q) || next2.y(next2.f673s) || next2.y(next2.t) || next2.y(next2.r)) { + if (!next2.u()) { + it2.remove(); + c(next2.p()); + } else { + next2.q = next2.G(next2.q); + next2.f673s = next2.G(next2.f673s); + next2.t = next2.G(next2.t); + next2.r = next2.G(next2.r); + if (!next2.f()) { + c(next2.p()); + } + } + } + } + boolean q2 = this.a.q(p.INFER_PROPERTY_MUTATORS); + for (c0 c0Var2 : linkedHashMap.values()) { + b0 b0Var = this.c ? null : this; + u.a aVar6 = u.a.AUTO; + b.g.a.c.b bVar4 = c0Var2.n; + if (bVar4 == null || (!c0Var2.l ? ((dVar = c0Var2.r) == null || (aVar = bVar4.t(dVar.a)) == null || aVar == aVar6) && (((dVar2 = c0Var2.t) == null || (aVar = c0Var2.n.t(dVar2.a)) == null || aVar == aVar6) && (((dVar3 = c0Var2.q) == null || (aVar = c0Var2.n.t(dVar3.a)) == null || aVar == aVar6) && ((dVar4 = c0Var2.f673s) == null || (aVar = c0Var2.n.t(dVar4.a)) == null || aVar == aVar6))) : ((dVar5 = c0Var2.f673s) == null || (aVar = bVar4.t(dVar5.a)) == null || aVar == aVar6) && (((dVar6 = c0Var2.q) == null || (aVar = c0Var2.n.t(dVar6.a)) == null || aVar == aVar6) && (((dVar7 = c0Var2.r) == null || (aVar = c0Var2.n.t(dVar7.a)) == null || aVar == aVar6) && ((dVar8 = c0Var2.t) == null || (aVar = c0Var2.n.t(dVar8.a)) == null || aVar == aVar6))))) { + aVar = null; + } + if (aVar != null) { + aVar6 = aVar; + } + int ordinal = aVar6.ordinal(); + if (ordinal == 1) { + if (b0Var != null) { + b0Var.c(c0Var2.p()); + for (t tVar4 : c0Var2.L()) { + b0Var.c(tVar4._simpleName); + } + } + c0Var2.t = null; + c0Var2.r = null; + if (!c0Var2.l) { + c0Var2.q = null; + } + } else if (ordinal == 2) { + c0Var2.f673s = null; + if (c0Var2.l) { + c0Var2.q = null; + } + } else if (ordinal != 3) { + c0Var2.f673s = c0Var2.H(c0Var2.f673s); + c0Var2.r = c0Var2.H(c0Var2.r); + if (!q2 || c0Var2.f673s == null) { + c0Var2.q = c0Var2.H(c0Var2.q); + c0Var2.t = c0Var2.H(c0Var2.t); + } + } + } + Iterator> it3 = linkedHashMap.entrySet().iterator(); + LinkedList linkedList = null; + while (it3.hasNext()) { + c0 value = it3.next().getValue(); + Set L = value.L(); + if (!L.isEmpty()) { + it3.remove(); + if (linkedList == null) { + linkedList = new LinkedList(); + } + if (L.size() == 1) { + linkedList.add(new c0(value, L.iterator().next())); + } else { + HashMap hashMap = new HashMap(); + value.B(L, hashMap, value.q); + value.B(L, hashMap, value.f673s); + value.B(L, hashMap, value.t); + value.B(L, hashMap, value.r); + linkedList.addAll(hashMap.values()); + } + } + } + if (linkedList != null) { + Iterator it4 = linkedList.iterator(); + while (it4.hasNext()) { + c0 c0Var3 = (c0) it4.next(); + String p = c0Var3.p(); + c0 c0Var4 = linkedHashMap.get(p); + if (c0Var4 == null) { + linkedHashMap.put(p, c0Var3); + } else { + c0Var4.K(c0Var3); + } + if (g(c0Var3, this.k) && (hashSet = this.f669s) != null) { + hashSet.remove(p); + } + } + } + for (g gVar2 : this.e.g()) { + d(this.g.j(gVar2), gVar2); + } + Iterator it5 = ((l) this.e.h()).iterator(); + while (it5.hasNext()) { + j next3 = it5.next(); + if (next3.o() == 1) { + d(this.g.j(next3), next3); + } + } + for (c0 c0Var5 : linkedHashMap.values()) { + if (this.c) { + c0.d dVar9 = c0Var5.f673s; + if (dVar9 != null) { + c0Var5.f673s = c0Var5.A(c0Var5.f673s, c0Var5.F(0, dVar9, c0Var5.q, c0Var5.r, c0Var5.t)); + } else { + c0.d dVar10 = c0Var5.q; + if (dVar10 != null) { + c0Var5.q = c0Var5.A(c0Var5.q, c0Var5.F(0, dVar10, c0Var5.r, c0Var5.t)); + } + } + } else { + c0.d dVar11 = c0Var5.r; + if (dVar11 != null) { + c0Var5.r = c0Var5.A(c0Var5.r, c0Var5.F(0, dVar11, c0Var5.t, c0Var5.q, c0Var5.f673s)); + } else { + c0.d dVar12 = c0Var5.t; + if (dVar12 != null) { + c0Var5.t = c0Var5.A(c0Var5.t, c0Var5.F(0, dVar12, c0Var5.q, c0Var5.f673s)); + } else { + c0.d dVar13 = c0Var5.q; + if (dVar13 != null) { + c0Var5.q = c0Var5.A(c0Var5.q, c0Var5.F(0, dVar13, c0Var5.f673s)); + } + } + } + } + } + for (c0 c0Var6 : linkedHashMap.values()) { + c0Var6.q = c0Var6.J(c0Var6.q); + c0Var6.f673s = c0Var6.J(c0Var6.f673s); + c0Var6.t = c0Var6.J(c0Var6.t); + c0Var6.r = c0Var6.J(c0Var6.r); + } + Object p2 = this.g.p(this.e); + if (p2 == null) { + uVar = this.a._base._propertyNamingStrategy; + } else if (p2 instanceof b.g.a.c.u) { + uVar = (b.g.a.c.u) p2; + } else if (p2 instanceof Class) { + Class cls2 = (Class) p2; + if (cls2 == b.g.a.c.u.class) { + uVar = null; + } else if (b.g.a.c.u.class.isAssignableFrom(cls2)) { + Objects.requireNonNull(this.a._base); + uVar = (b.g.a.c.u) d.g(cls2, this.a.b()); + } else { + throw new IllegalStateException(a.n(cls2, a.R("AnnotationIntrospector returned Class "), "; expected Class")); + } + } else { + StringBuilder R = a.R("AnnotationIntrospector returned PropertyNamingStrategy definition of type "); + R.append(p2.getClass().getName()); + R.append("; expected type PropertyNamingStrategy or Class instead"); + throw new IllegalStateException(R.toString()); + } + if (uVar != null) { + c0[] c0VarArr = (c0[]) linkedHashMap.values().toArray(new c0[linkedHashMap.size()]); + linkedHashMap.clear(); + for (c0 c0Var7 : c0VarArr) { + t tVar5 = c0Var7.o; + if (!(c0Var7.w(c0Var7.q) || c0Var7.w(c0Var7.f673s) || c0Var7.w(c0Var7.t) || c0Var7.w(c0Var7.r)) || this.a.q(p.ALLOW_EXPLICIT_PROPERTY_RENAMING)) { + if (this.c) { + if (c0Var7.f673s != null) { + str = uVar.c(this.a, c0Var7.n(), tVar5._simpleName); + } else if (c0Var7.q != null) { + str = uVar.b(this.a, c0Var7.l(), tVar5._simpleName); + } + if (str != null || tVar5._simpleName.equals(str)) { + str = tVar5._simpleName; + } else { + t tVar6 = c0Var7.o; + if (!str.equals(tVar6._simpleName)) { + tVar6 = new t(str, tVar6._namespace); + } + if (tVar6 != c0Var7.o) { + c0Var7 = new c0(c0Var7, tVar6); + } + } + c0Var = linkedHashMap.get(str); + if (c0Var == null) { + linkedHashMap.put(str, c0Var7); + } else { + c0Var.K(c0Var7); + } + g(c0Var7, this.k); + } else { + if (c0Var7.t != null) { + str = uVar.d(this.a, c0Var7.s(), tVar5._simpleName); + } else if (c0Var7.r != null) { + str = uVar.a(this.a, c0Var7.k(), tVar5._simpleName); + } else if (c0Var7.q != null) { + str = uVar.b(this.a, c0Var7.l(), tVar5._simpleName); + } else if (c0Var7.f673s != null) { + str = uVar.c(this.a, c0Var7.n(), tVar5._simpleName); + } + if (str != null) { + } + str = tVar5._simpleName; + c0Var = linkedHashMap.get(str); + if (c0Var == null) { + } + g(c0Var7, this.k); + } + } + str = null; + if (str != null) { + } + str = tVar5._simpleName; + c0Var = linkedHashMap.get(str); + if (c0Var == null) { + } + g(c0Var7, this.k); + } + } + if (this.a.q(p.USE_WRAPPER_NAME_AS_PROPERTY_NAME)) { + for (Map.Entry entry : linkedHashMap.entrySet()) { + if (entry.getValue().q() != null) { + Objects.requireNonNull(this.g); + } + } + } + b.g.a.c.b bVar5 = this.g; + Boolean J = bVar5.J(this.e); + if (J == null) { + l lVar = this.a; + Objects.requireNonNull(lVar); + z2 = lVar.q(p.SORT_PROPERTIES_ALPHABETICALLY); + } else { + z2 = J.booleanValue(); + } + Iterator it6 = linkedHashMap.values().iterator(); + while (true) { + if (!it6.hasNext()) { + z3 = false; + break; + } + if (it6.next().o()._index != null) { + z4 = true; + continue; + } else { + z4 = false; + continue; + } + if (z4) { + z3 = true; + break; + } + } + String[] I = bVar5.I(this.e); + if (z2 || z3 || this.k != null || I != null) { + int size = linkedHashMap.size(); + Map treeMap = z2 ? new TreeMap<>() : new LinkedHashMap<>(size + size); + for (c0 c0Var8 : linkedHashMap.values()) { + treeMap.put(c0Var8.p(), c0Var8); + } + LinkedHashMap linkedHashMap2 = new LinkedHashMap(size + size); + if (I != null) { + for (String str2 : I) { + c0 c0Var9 = (c0) treeMap.remove(str2); + if (c0Var9 == null) { + Iterator it7 = linkedHashMap.values().iterator(); + while (true) { + if (!it7.hasNext()) { + break; + } + c0 next4 = it7.next(); + if (str2.equals(next4.p._simpleName)) { + str2 = next4.p(); + c0Var9 = next4; + break; + } + } + } + if (c0Var9 != null) { + linkedHashMap2.put(str2, c0Var9); + } + } + } + if (z3) { + TreeMap treeMap2 = new TreeMap(); + Iterator> it8 = treeMap.entrySet().iterator(); + while (it8.hasNext()) { + c0 c0Var10 = (c0) it8.next().getValue(); + Integer num = c0Var10.o()._index; + if (num != null) { + treeMap2.put(num, c0Var10); + it8.remove(); + } + } + for (c0 c0Var11 : treeMap2.values()) { + linkedHashMap2.put(c0Var11.p(), c0Var11); + } + } + if (this.k != null && (!z2 || this.a.q(p.SORT_CREATOR_PROPERTIES_FIRST))) { + if (z2) { + TreeMap treeMap3 = new TreeMap(); + Iterator it9 = this.k.iterator(); + while (it9.hasNext()) { + c0 next5 = it9.next(); + treeMap3.put(next5.p(), next5); + } + collection = treeMap3.values(); + } else { + collection = this.k; + } + for (c0 c0Var12 : collection) { + String p3 = c0Var12.p(); + if (treeMap.containsKey(p3)) { + linkedHashMap2.put(p3, c0Var12); + } + } + } + linkedHashMap2.putAll(treeMap); + linkedHashMap.clear(); + linkedHashMap.putAll(linkedHashMap2); + } + this.j = linkedHashMap; + this.i = true; + } + + public void i(String str, Object... objArr) { + if (objArr.length > 0) { + str = String.format(str, objArr); + } + StringBuilder R = a.R("Problem with definition of "); + R.append(this.e); + R.append(": "); + R.append(str); + throw new IllegalArgumentException(R.toString()); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/c.java b/app/src/main/java/b/g/a/c/c0/c.java new file mode 100644 index 0000000000..c93e8ec60b --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/c.java @@ -0,0 +1,568 @@ +package b.g.a.c.c0; + +import b.g.a.c.b; +import b.g.a.c.c0.e0; +import b.g.a.c.c0.h; +import b.g.a.c.c0.k; +import b.g.a.c.c0.t; +import b.g.a.c.h0.m; +import b.g.a.c.h0.n; +import b.g.a.c.i0.d; +import b.g.a.c.j; +import java.lang.annotation.Annotation; +import java.lang.reflect.Method; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.lang.reflect.TypeVariable; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: AnnotatedClass */ +public final class c extends b implements e0 { + public static final a j = new a(null, Collections.emptyList(), Collections.emptyList()); + public final j k; + public final Class l; + public final m m; + public final List n; + public final b o; + public final n p; + public final t.a q; + public final Class r; + + /* renamed from: s reason: collision with root package name */ + public final boolean f670s; + public final b.g.a.c.i0.a t; + public a u; + public l v; + public List w; + + /* renamed from: x reason: collision with root package name */ + public transient Boolean f671x; + + /* compiled from: AnnotatedClass */ + public static final class a { + public final e a; + + /* renamed from: b reason: collision with root package name */ + public final List f672b; + public final List c; + + public a(e eVar, List list, List list2) { + this.a = eVar; + this.f672b = list; + this.c = list2; + } + } + + public c(j jVar, Class cls, List list, Class cls2, b.g.a.c.i0.a aVar, m mVar, b bVar, t.a aVar2, n nVar, boolean z2) { + this.k = jVar; + this.l = cls; + this.n = list; + this.r = cls2; + this.t = aVar; + this.m = mVar; + this.o = bVar; + this.q = aVar2; + this.p = nVar; + this.f670s = z2; + } + + public c(Class cls) { + this.k = null; + this.l = cls; + this.n = Collections.emptyList(); + this.r = null; + this.t = o.a; + this.m = m.l; + this.o = null; + this.q = null; + this.p = null; + this.f670s = false; + } + + @Override // b.g.a.c.c0.e0 + public j a(Type type) { + return this.p.b(null, type, this.m); + } + + @Override // b.g.a.c.c0.b + public A b(Class cls) { + return (A) this.t.a(cls); + } + + @Override // b.g.a.c.c0.b + public String c() { + return this.l.getName(); + } + + @Override // b.g.a.c.c0.b + public Class d() { + return this.l; + } + + @Override // b.g.a.c.c0.b + public j e() { + return this.k; + } + + @Override // b.g.a.c.c0.b + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + return d.o(obj, c.class) && ((c) obj).l == this.l; + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:187:0x0077 */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:155:0x02f3 */ + /* JADX WARNING: Removed duplicated region for block: B:156:0x02f5 */ + /* JADX WARNING: Removed duplicated region for block: B:163:0x0318 */ + /* JADX WARNING: Removed duplicated region for block: B:63:0x0128 */ + /* JADX WARNING: Removed duplicated region for block: B:70:0x0140 */ + /* JADX WARNING: Removed duplicated region for block: B:71:0x0146 */ + /* JADX WARNING: Unknown variable types count: 1 */ + public final a f() { + ArrayList arrayList; + d.a aVar; + List list; + ArrayList arrayList2; + List list2; + j jVar; + ArrayList arrayList3; + int i; + m mVar; + TypeVariable[] typeVariableArr; + Type[] typeArr; + TypeVariable typeVariable; + boolean z2; + Method[] methodArr; + ?? r9; + int i2; + d.a[] aVarArr; + a aVar2 = this.u; + if (aVar2 == null) { + j jVar2 = this.k; + if (jVar2 == null) { + aVar2 = j; + } else { + b bVar = this.o; + n nVar = this.p; + Class cls = this.r; + f fVar = new f(bVar, this, this.f670s | (cls != null)); + if (!jVar2.w()) { + d.a[] l = d.l(jVar2._class); + aVar = null; + arrayList = null; + for (d.a aVar3 : l) { + if (!aVar3.a.isSynthetic()) { + if (aVar3.a() == 0) { + aVar = aVar3; + } else { + if (arrayList == null) { + arrayList = new ArrayList(); + } + arrayList.add(aVar3); + } + } + } + } else { + aVar = null; + arrayList = null; + } + if (arrayList == null) { + list = Collections.emptyList(); + if (aVar != null) { + r9 = list; + i2 = 0; + } + Method[] k = d.k(jVar2._class); + arrayList2 = null; + for (Method method : k) { + if (f.f(method)) { + if (arrayList2 == null) { + arrayList2 = new ArrayList(); + } + arrayList2.add(method); + } + } + if (arrayList2 != null) { + list2 = Collections.emptyList(); + } else { + e0.b bVar2 = new e0.b(nVar); + int size = arrayList2.size(); + ArrayList arrayList4 = new ArrayList(size); + for (int i3 = 0; i3 < size; i3++) { + arrayList4.add(null); + } + if (cls != null) { + Method[] declaredMethods = cls.getDeclaredMethods(); + int length = declaredMethods.length; + y[] yVarArr = null; + int i4 = 0; + while (i4 < length) { + Method method2 = declaredMethods[i4]; + if (!f.f(method2)) { + methodArr = declaredMethods; + } else { + if (yVarArr == null) { + yVarArr = new y[size]; + int i5 = 0; + while (i5 < size) { + yVarArr[i5] = new y((Method) arrayList2.get(i5)); + i5++; + declaredMethods = declaredMethods; + } + } + methodArr = declaredMethods; + y yVar = new y(method2); + int i6 = 0; + while (true) { + if (i6 >= size) { + break; + } else if (yVar.equals(yVarArr[i6])) { + arrayList4.set(i6, fVar.j((Method) arrayList2.get(i6), bVar2, method2)); + break; + } else { + i6++; + } + } + } + i4++; + declaredMethods = methodArr; + } + } + int i7 = 0; + while (i7 < size) { + if (((j) arrayList4.get(i7)) == null) { + Method method3 = (Method) arrayList2.get(i7); + TypeVariable[] typeParameters = method3.getTypeParameters(); + if (typeParameters.length != 0 && !jVar2.j().i()) { + Type genericReturnType = method3.getGenericReturnType(); + if (genericReturnType instanceof ParameterizedType) { + ParameterizedType parameterizedType = (ParameterizedType) genericReturnType; + if (Objects.equals(jVar2._class, parameterizedType.getRawType())) { + Type[] actualTypeArguments = parameterizedType.getActualTypeArguments(); + ArrayList arrayList5 = new ArrayList(typeParameters.length); + ArrayList arrayList6 = new ArrayList(typeParameters.length); + i = size; + int i8 = 0; + while (true) { + if (i8 < actualTypeArguments.length) { + TypeVariable g1 = b.c.a.a0.d.g1(actualTypeArguments[i8]); + if (g1 != null) { + String name = g1.getName(); + if (name == null) { + jVar = jVar2; + break; + } + arrayList3 = arrayList2; + j f = jVar2.j().f(i8); + if (f == null) { + jVar = jVar2; + break; + } + jVar = jVar2; + int length2 = typeParameters.length; + typeArr = actualTypeArguments; + int i9 = 0; + while (true) { + if (i9 >= length2) { + typeVariable = null; + break; + } + typeVariable = typeParameters[i9]; + if (name.equals(typeVariable.getName())) { + break; + } + i9++; + length2 = length2; + } + if (typeVariable == null) { + break; + } + Type[] bounds = typeVariable.getBounds(); + int length3 = bounds.length; + typeVariableArr = typeParameters; + int i10 = 0; + while (true) { + if (i10 >= length3) { + z2 = true; + break; + } else if (!b.c.a.a0.d.y1(bVar2, f, bounds[i10])) { + z2 = false; + break; + } else { + i10++; + length3 = length3; + } + } + if (!z2) { + continue; + } else { + int indexOf = arrayList5.indexOf(name); + if (indexOf != -1) { + j jVar3 = (j) arrayList6.get(indexOf); + if (!f.equals(jVar3)) { + boolean B = jVar3.B(f._class); + boolean B2 = f.B(jVar3._class); + if (!B && !B2) { + break; + } else if ((B ^ B2) && B2) { + arrayList6.set(indexOf, f); + } + } else { + continue; + } + } else { + arrayList5.add(name); + arrayList6.add(f); + } + } + } else { + jVar = jVar2; + arrayList3 = arrayList2; + typeVariableArr = typeParameters; + typeArr = actualTypeArguments; + } + i8++; + arrayList2 = arrayList3; + jVar2 = jVar; + actualTypeArguments = typeArr; + typeParameters = typeVariableArr; + } else { + jVar = jVar2; + arrayList3 = arrayList2; + if (!arrayList5.isEmpty()) { + mVar = (arrayList5.isEmpty() || arrayList6.isEmpty()) ? m.l : new m((String[]) arrayList5.toArray(m.j), (j[]) arrayList6.toArray(m.k), null); + } + } + } + mVar = null; + arrayList4.set(i7, fVar.j(method3, mVar != null ? bVar2 : new e0.a(nVar, mVar), null)); + } + } + } + jVar = jVar2; + i = size; + arrayList3 = arrayList2; + mVar = null; + arrayList4.set(i7, fVar.j(method3, mVar != null ? bVar2 : new e0.a(nVar, mVar), null)); + } else { + jVar = jVar2; + i = size; + arrayList3 = arrayList2; + } + i7++; + size = i; + arrayList2 = arrayList3; + jVar2 = jVar; + } + list2 = arrayList4; + } + if (fVar.e) { + e eVar = fVar.f; + if (eVar != null && fVar.c.Z(eVar)) { + fVar.f = null; + } + int size2 = list.size(); + while (true) { + size2--; + if (size2 < 0) { + break; + } else if (fVar.c.Z((i) list.get(size2))) { + list.remove(size2); + } + } + int size3 = list2.size(); + while (true) { + size3--; + if (size3 < 0) { + break; + } else if (fVar.c.Z((i) list2.get(size3))) { + list2.remove(size3); + } + } + } + aVar2 = new a(fVar.f, list, list2); + } else { + i2 = arrayList.size(); + r9 = new ArrayList(i2); + for (int i11 = 0; i11 < i2; i11++) { + r9.add(null); + } + } + if (cls != null) { + d.a[] l2 = d.l(cls); + int length4 = l2.length; + y[] yVarArr2 = null; + int i12 = 0; + while (i12 < length4) { + d.a aVar4 = l2[i12]; + if (aVar4.a() != 0) { + aVarArr = l2; + if (arrayList != null) { + if (yVarArr2 == null) { + y[] yVarArr3 = new y[i2]; + for (int i13 = 0; i13 < i2; i13++) { + yVarArr3[i13] = new y(((d.a) arrayList.get(i13)).a); + } + yVarArr2 = yVarArr3; + } + y yVar2 = new y(aVar4.a); + int i14 = 0; + while (true) { + if (i14 >= i2) { + break; + } else if (yVar2.equals(yVarArr2[i14])) { + r9.set(i14, fVar.k((d.a) arrayList.get(i14), aVar4)); + break; + } else { + i14++; + } + } + } + } else if (aVar != null) { + aVarArr = l2; + fVar.f = new e(fVar.d, aVar.a, fVar.g(aVar, aVar4), u.a); + aVar = null; + } else { + aVarArr = l2; + } + i12++; + l2 = aVarArr; + } + } + if (aVar != null) { + fVar.f = new e(fVar.d, aVar.a, fVar.g(aVar, null), u.a); + } + for (int i15 = 0; i15 < i2; i15++) { + if (((e) r9.get(i15)) == null) { + r9.set(i15, fVar.k((d.a) arrayList.get(i15), null)); + } + } + list = r9; + Method[] k = d.k(jVar2._class); + arrayList2 = null; + while (r7 < r6) { + } + if (arrayList2 != null) { + } + if (fVar.e) { + } + aVar2 = new a(fVar.f, list, list2); + } + this.u = aVar2; + } + return aVar2; + } + + public Iterable g() { + List list = this.w; + if (list == null) { + j jVar = this.k; + if (jVar == null) { + list = Collections.emptyList(); + } else { + Map f = new h(this.o, this.p, this.q, this.f670s).f(this, jVar, null); + if (f == null) { + list = Collections.emptyList(); + } else { + ArrayList arrayList = new ArrayList(f.size()); + for (h.a aVar : f.values()) { + arrayList.add(new g(aVar.a, aVar.f676b, aVar.c.b())); + } + list = arrayList; + } + } + this.w = list; + } + return list; + } + + public Iterable h() { + boolean z2; + Class a2; + l lVar = this.v; + if (lVar == null) { + j jVar = this.k; + if (jVar == null) { + lVar = new l(); + } else { + b bVar = this.o; + t.a aVar = this.q; + n nVar = this.p; + List list = this.n; + Class cls = this.r; + k kVar = new k(bVar, aVar, this.f670s); + LinkedHashMap linkedHashMap = new LinkedHashMap(); + kVar.f(this, jVar._class, linkedHashMap, cls); + Iterator it = list.iterator(); + while (true) { + Class cls2 = null; + if (!it.hasNext()) { + break; + } + j next = it.next(); + t.a aVar2 = kVar.d; + if (aVar2 != null) { + cls2 = aVar2.a(next._class); + } + kVar.f(new e0.a(nVar, next.j()), next._class, linkedHashMap, cls2); + } + t.a aVar3 = kVar.d; + if (aVar3 == null || (a2 = aVar3.a(Object.class)) == null) { + z2 = false; + } else { + kVar.g(this, jVar._class, linkedHashMap, a2); + z2 = true; + } + if (z2 && kVar.c != null && !linkedHashMap.isEmpty()) { + for (Map.Entry entry : linkedHashMap.entrySet()) { + y yVar = (y) entry.getKey(); + if ("hashCode".equals(yVar.f682b) && yVar.c.length == 0) { + try { + Method declaredMethod = Object.class.getDeclaredMethod(yVar.f682b, new Class[0]); + if (declaredMethod != null) { + k.a aVar4 = (k.a) entry.getValue(); + aVar4.c = kVar.d(aVar4.c, declaredMethod.getDeclaredAnnotations()); + aVar4.f677b = declaredMethod; + } + } catch (Exception unused) { + } + } + } + } + if (linkedHashMap.isEmpty()) { + lVar = new l(); + } else { + LinkedHashMap linkedHashMap2 = new LinkedHashMap(linkedHashMap.size()); + for (Map.Entry entry2 : linkedHashMap.entrySet()) { + k.a aVar5 = (k.a) entry2.getValue(); + Method method = aVar5.f677b; + j jVar2 = method == null ? null : new j(aVar5.a, method, aVar5.c.b(), null); + if (jVar2 != null) { + linkedHashMap2.put(entry2.getKey(), jVar2); + } + } + lVar = new l(linkedHashMap2); + } + } + this.v = lVar; + } + return lVar; + } + + @Override // b.g.a.c.c0.b + public int hashCode() { + return this.l.getName().hashCode(); + } + + public String toString() { + return b.d.b.a.a.n(this.l, b.d.b.a.a.R("[AnnotedClass "), "]"); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/c0.java b/app/src/main/java/b/g/a/c/c0/c0.java new file mode 100644 index 0000000000..3d034efa8d --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/c0.java @@ -0,0 +1,782 @@ +package b.g.a.c.c0; + +import b.g.a.a.h0; +import b.g.a.a.p; +import b.g.a.a.z; +import b.g.a.c.b; +import b.g.a.c.h0.n; +import b.g.a.c.j; +import b.g.a.c.s; +import b.g.a.c.t; +import b.g.a.c.z.l; +import java.lang.annotation.Annotation; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +/* compiled from: POJOPropertyBuilder */ +public class c0 extends s implements Comparable { + public static final b.a k = new b.a(1, ""); + public final boolean l; + public final l m; + public final b.g.a.c.b n; + public final t o; + public final t p; + public d q; + public d r; + + /* renamed from: s reason: collision with root package name */ + public d f673s; + public d t; + public transient s u; + public transient b.a v; + + /* compiled from: POJOPropertyBuilder */ + public class a implements e[]> { + public a() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.g.a.c.c0.c0.e + public Class[] a(i iVar) { + return c0.this.n.R(iVar); + } + } + + /* compiled from: POJOPropertyBuilder */ + public class b implements e { + public b() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.g.a.c.c0.c0.e + public b.a a(i iVar) { + return c0.this.n.D(iVar); + } + } + + /* compiled from: POJOPropertyBuilder */ + public class c implements e { + public c() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.g.a.c.c0.c0.e + public Boolean a(i iVar) { + return c0.this.n.d0(iVar); + } + } + + /* compiled from: POJOPropertyBuilder */ + public static final class d { + public final T a; + + /* renamed from: b reason: collision with root package name */ + public final d f674b; + public final t c; + public final boolean d; + public final boolean e; + public final boolean f; + + public d(T t, d dVar, t tVar, boolean z2, boolean z3, boolean z4) { + this.a = t; + this.f674b = dVar; + t tVar2 = (tVar == null || tVar.d()) ? null : tVar; + this.c = tVar2; + if (z2) { + if (tVar2 == null) { + throw new IllegalArgumentException("Cannot pass true for 'explName' if name is null/empty"); + } else if (!tVar.c()) { + z2 = false; + } + } + this.d = z2; + this.e = z3; + this.f = z4; + } + + public d a(d dVar) { + d dVar2 = this.f674b; + return dVar2 == null ? c(dVar) : c(dVar2.a(dVar)); + } + + public d b() { + d dVar = this.f674b; + if (dVar == null) { + return this; + } + d b2 = dVar.b(); + if (this.c != null) { + return b2.c == null ? c(null) : c(b2); + } + if (b2.c != null) { + return b2; + } + boolean z2 = this.e; + return z2 == b2.e ? c(b2) : z2 ? c(null) : b2; + } + + public d c(d dVar) { + return dVar == this.f674b ? this : new d<>(this.a, dVar, this.c, this.d, this.e, this.f); + } + + public d d() { + d d; + if (this.f) { + d dVar = this.f674b; + if (dVar == null) { + return null; + } + return dVar.d(); + } + d dVar2 = this.f674b; + return (dVar2 == null || (d = dVar2.d()) == this.f674b) ? this : c(d); + } + + public d e() { + return this.f674b == null ? this : new d<>(this.a, null, this.c, this.d, this.e, this.f); + } + + public d f() { + d dVar = this.f674b; + d f = dVar == null ? null : dVar.f(); + return this.e ? c(f) : f; + } + + public String toString() { + String format = String.format("%s[visible=%b,ignore=%b,explicitName=%b]", this.a.toString(), Boolean.valueOf(this.e), Boolean.valueOf(this.f), Boolean.valueOf(this.d)); + if (this.f674b == null) { + return format; + } + StringBuilder V = b.d.b.a.a.V(format, ", "); + V.append(this.f674b.toString()); + return V.toString(); + } + } + + /* compiled from: POJOPropertyBuilder */ + public interface e { + T a(i iVar); + } + + public c0(c0 c0Var, t tVar) { + this.m = c0Var.m; + this.n = c0Var.n; + this.p = c0Var.p; + this.o = tVar; + this.q = c0Var.q; + this.r = c0Var.r; + this.f673s = c0Var.f673s; + this.t = c0Var.t; + this.l = c0Var.l; + } + + public c0(l lVar, b.g.a.c.b bVar, boolean z2, t tVar) { + this.m = lVar; + this.n = bVar; + this.p = tVar; + this.o = tVar; + this.l = z2; + } + + public c0(l lVar, b.g.a.c.b bVar, boolean z2, t tVar, t tVar2) { + this.m = lVar; + this.n = bVar; + this.p = tVar; + this.o = tVar2; + this.l = z2; + } + + public static d N(d dVar, d dVar2) { + if (dVar == null) { + return dVar2; + } + if (dVar2 == null) { + return dVar; + } + d dVar3 = dVar.f674b; + return dVar3 == null ? dVar.c(dVar2) : dVar.c(dVar3.a(dVar2)); + } + + public final d A(d dVar, p pVar) { + i iVar = (i) dVar.a.l(pVar); + d dVar2 = dVar.f674b; + if (dVar2 != null) { + dVar = dVar.c(A(dVar2, pVar)); + } + return iVar == dVar.a ? dVar : new d<>(iVar, dVar.f674b, dVar.c, dVar.d, dVar.e, dVar.f); + } + + public final void B(Collection collection, Map map, d dVar) { + for (d dVar2 = dVar; dVar2 != null; dVar2 = dVar2.f674b) { + t tVar = dVar2.c; + if (dVar2.d && tVar != null) { + c0 c0Var = map.get(tVar); + if (c0Var == null) { + c0Var = new c0(this.m, this.n, this.l, this.p, tVar); + map.put(tVar, c0Var); + } + if (dVar == this.q) { + c0Var.q = dVar2.c(c0Var.q); + } else if (dVar == this.f673s) { + c0Var.f673s = dVar2.c(c0Var.f673s); + } else if (dVar == this.t) { + c0Var.t = dVar2.c(c0Var.t); + } else if (dVar == this.r) { + c0Var.r = dVar2.c(c0Var.r); + } else { + throw new IllegalStateException("Internal error: mismatched accessors, property: " + this); + } + } else if (dVar2.e) { + StringBuilder R = b.d.b.a.a.R("Conflicting/ambiguous property name definitions (implicit name "); + t tVar2 = this.o; + Annotation[] annotationArr = b.g.a.c.i0.d.a; + R.append(tVar2 == null ? "[null]" : b.g.a.c.i0.d.c(tVar2._simpleName)); + R.append("): found multiple explicit names: "); + R.append(collection); + R.append(", but also implicit accessor: "); + R.append(dVar2); + throw new IllegalStateException(R.toString()); + } + } + } + + public final Set C(d dVar, Set set) { + while (dVar != null) { + if (dVar.d && dVar.c != null) { + if (set == null) { + set = new HashSet<>(); + } + set.add(dVar.c); + } + dVar = dVar.f674b; + } + return set; + } + + public final p D(d dVar) { + p pVar = dVar.a.k; + d dVar2 = dVar.f674b; + return dVar2 != null ? p.c(pVar, D(dVar2)) : pVar; + } + + public int E(j jVar) { + String c2 = jVar.c(); + if (!c2.startsWith("get") || c2.length() <= 3) { + return (!c2.startsWith("is") || c2.length() <= 2) ? 3 : 2; + } + return 1; + } + + public final p F(int i, d... dVarArr) { + d dVar = dVarArr[i]; + p pVar = dVar.a.k; + d dVar2 = dVar.f674b; + if (dVar2 != null) { + pVar = p.c(pVar, D(dVar2)); + } + do { + i++; + if (i >= dVarArr.length) { + return pVar; + } + } while (dVarArr[i] == null); + return p.c(pVar, F(i, dVarArr)); + } + + public final d G(d dVar) { + return dVar == null ? dVar : dVar.d(); + } + + public final d H(d dVar) { + return dVar == null ? dVar : dVar.f(); + } + + public int I(j jVar) { + String c2 = jVar.c(); + return (!c2.startsWith("set") || c2.length() <= 3) ? 2 : 1; + } + + public final d J(d dVar) { + return dVar == null ? dVar : dVar.b(); + } + + public void K(c0 c0Var) { + this.q = N(this.q, c0Var.q); + this.r = N(this.r, c0Var.r); + this.f673s = N(this.f673s, c0Var.f673s); + this.t = N(this.t, c0Var.t); + } + + public Set L() { + Set C = C(this.r, C(this.t, C(this.f673s, C(this.q, null)))); + return C == null ? Collections.emptySet() : C; + } + + public T M(e eVar) { + d dVar; + d dVar2; + T t = null; + if (this.n == null) { + return null; + } + if (this.l) { + d dVar3 = this.f673s; + if (dVar3 != null) { + t = eVar.a(dVar3.a); + } + } else { + d dVar4 = this.r; + if (dVar4 != null) { + t = eVar.a(dVar4.a); + } + if (t == null && (dVar2 = this.t) != null) { + t = eVar.a(dVar2.a); + } + } + return (t != null || (dVar = this.q) == null) ? t : eVar.a(dVar.a); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public int compareTo(c0 c0Var) { + c0 c0Var2 = c0Var; + if (this.r != null) { + if (c0Var2.r == null) { + return -1; + } + } else if (c0Var2.r != null) { + return 1; + } + return p().compareTo(c0Var2.p()); + } + + @Override // b.g.a.c.c0.s + public boolean f() { + return (this.r == null && this.t == null && this.q == null) ? false : true; + } + + @Override // b.g.a.c.c0.s + public p.b g() { + i j = j(); + b.g.a.c.b bVar = this.n; + p.b z2 = bVar == null ? null : bVar.z(j); + if (z2 != null) { + return z2; + } + p.b bVar2 = p.b.j; + return p.b.j; + } + + @Override // b.g.a.c.c0.s + public b.a h() { + b.a aVar = this.v; + if (aVar == null) { + b.a aVar2 = (b.a) M(new b()); + this.v = aVar2 == null ? k : aVar2; + return aVar2; + } else if (aVar == k) { + return null; + } else { + return aVar; + } + } + + @Override // b.g.a.c.c0.s + public Class[] i() { + return (Class[]) M(new a()); + } + + @Override // b.g.a.c.c0.s + public m k() { + d dVar = this.r; + if (dVar == null) { + return null; + } + do { + m mVar = dVar.a; + if (mVar._owner instanceof e) { + return mVar; + } + dVar = dVar.f674b; + } while (dVar != null); + return this.r.a; + } + + @Override // b.g.a.c.c0.s + public g l() { + d dVar = this.q; + if (dVar == null) { + return null; + } + g gVar = dVar.a; + for (d dVar2 = dVar.f674b; dVar2 != null; dVar2 = dVar2.f674b) { + g gVar2 = dVar2.a; + Class g = gVar.g(); + Class g2 = gVar2.g(); + if (g != g2) { + if (g.isAssignableFrom(g2)) { + gVar = gVar2; + } else if (g2.isAssignableFrom(g)) { + } + } + StringBuilder R = b.d.b.a.a.R("Multiple fields representing property \""); + R.append(p()); + R.append("\": "); + R.append(gVar.h()); + R.append(" vs "); + R.append(gVar2.h()); + throw new IllegalArgumentException(R.toString()); + } + return gVar; + } + + @Override // b.g.a.c.c0.s + public t m() { + return this.o; + } + + @Override // b.g.a.c.c0.s + public j n() { + d dVar = this.f673s; + if (dVar == null) { + return null; + } + d dVar2 = dVar.f674b; + if (dVar2 == null) { + return dVar.a; + } + while (dVar2 != null) { + Class g = dVar.a.g(); + Class g2 = dVar2.a.g(); + if (g != g2) { + if (!g.isAssignableFrom(g2)) { + if (g2.isAssignableFrom(g)) { + continue; + dVar2 = dVar2.f674b; + } + } + dVar = dVar2; + dVar2 = dVar2.f674b; + } + int E = E(dVar2.a); + int E2 = E(dVar.a); + if (E != E2) { + if (E >= E2) { + dVar2 = dVar2.f674b; + } + dVar = dVar2; + dVar2 = dVar2.f674b; + } else { + StringBuilder R = b.d.b.a.a.R("Conflicting getter definitions for property \""); + R.append(p()); + R.append("\": "); + R.append(dVar.a.h()); + R.append(" vs "); + R.append(dVar2.a.h()); + throw new IllegalArgumentException(R.toString()); + } + } + this.f673s = dVar.e(); + return dVar.a; + } + + /* JADX WARNING: Removed duplicated region for block: B:24:0x0044 */ + /* JADX WARNING: Removed duplicated region for block: B:25:0x004a */ + @Override // b.g.a.c.c0.s + public s o() { + j jVar; + h0 h0Var; + boolean z2; + Class cls; + Boolean m; + if (this.u == null) { + h0 h0Var2 = null; + if (this.l) { + d dVar = this.f673s; + if (dVar != null) { + jVar = dVar.a; + } else { + d dVar2 = this.q; + if (dVar2 != null) { + jVar = dVar2.a; + } + } + if (jVar == null) { + this.u = s.l; + } else { + Boolean a02 = this.n.a0(jVar); + String w = this.n.w(jVar); + Integer B = this.n.B(jVar); + String v = this.n.v(jVar); + if (a02 == null && B == null && v == null) { + s sVar = s.l; + if (w != null) { + sVar = new s(sVar._required, w, sVar._index, sVar._defaultValue, sVar.m, sVar._valueNulls, sVar._contentNulls); + } + this.u = sVar; + } else { + s sVar2 = s.j; + this.u = (w == null && B == null && v == null) ? a02 == null ? s.l : a02.booleanValue() ? s.j : s.k : new s(a02, w, B, v, null, null, null); + } + if (!this.l) { + s sVar3 = this.u; + i j = j(); + b.g.a.c.b bVar = this.n; + if (bVar != null) { + if (j == null || (m = bVar.m(jVar)) == null) { + z2 = true; + } else { + if (m.booleanValue()) { + sVar3 = sVar3.a(new s.a(j, false)); + } + z2 = false; + } + z.a M = this.n.M(jVar); + if (M != null) { + h0Var2 = M.b(); + h0Var = M.a(); + } else { + h0Var = null; + } + } else { + h0Var = null; + z2 = true; + } + if (z2 || h0Var2 == null || h0Var == null) { + if (jVar instanceof j) { + j jVar2 = (j) jVar; + if (jVar2.o() > 0) { + cls = jVar2.n(0)._class; + Objects.requireNonNull(this.m.f(cls)); + } + } + cls = jVar.e()._class; + Objects.requireNonNull(this.m.f(cls)); + } + if (z2 || h0Var2 == null || h0Var == null) { + z.a l = this.m.l(); + if (h0Var2 == null) { + h0Var2 = l.b(); + } + if (h0Var == null) { + h0Var = l.a(); + } + if (z2) { + if (Boolean.TRUE.equals(this.m.h()) && j != null) { + sVar3 = sVar3.a(new s.a(j, true)); + } + } + } + if (!(h0Var2 == null && h0Var == null)) { + sVar3 = new s(sVar3._required, sVar3._description, sVar3._index, sVar3._defaultValue, sVar3.m, h0Var2, h0Var); + } + this.u = sVar3; + } + } + } else { + d dVar3 = this.r; + if (dVar3 != null) { + jVar = dVar3.a; + } else { + d dVar4 = this.t; + if (dVar4 != null) { + jVar = dVar4.a; + } else { + d dVar5 = this.q; + if (dVar5 != null) { + jVar = dVar5.a; + } else { + d dVar6 = this.f673s; + if (dVar6 != null) { + jVar = dVar6.a; + } + } + } + } + if (jVar == null) { + } + } + jVar = null; + if (jVar == null) { + } + } + return this.u; + } + + @Override // b.g.a.c.c0.s + public String p() { + t tVar = this.o; + if (tVar == null) { + return null; + } + return tVar._simpleName; + } + + @Override // b.g.a.c.c0.s + public i q() { + if (this.l) { + return j(); + } + i k2 = k(); + if (k2 == null && (k2 = s()) == null) { + k2 = l(); + } + return k2 == null ? j() : k2; + } + + @Override // b.g.a.c.c0.s + public Class r() { + j jVar; + if (this.l) { + b n = n(); + jVar = (n == null && (n = l()) == null) ? n.k() : n.e(); + } else { + b k2 = k(); + if (k2 == null) { + j s2 = s(); + if (s2 != null) { + jVar = s2.n(0); + } else { + k2 = l(); + } + } + jVar = (k2 == null && (k2 = n()) == null) ? n.k() : k2.e(); + } + return jVar._class; + } + + @Override // b.g.a.c.c0.s + public j s() { + d dVar = this.t; + if (dVar == null) { + return null; + } + d dVar2 = dVar.f674b; + if (dVar2 == null) { + return dVar.a; + } + while (dVar2 != null) { + Class g = dVar.a.g(); + Class g2 = dVar2.a.g(); + if (g != g2) { + if (!g.isAssignableFrom(g2)) { + if (g2.isAssignableFrom(g)) { + continue; + dVar2 = dVar2.f674b; + } + } + dVar = dVar2; + dVar2 = dVar2.f674b; + } + j jVar = dVar2.a; + j jVar2 = dVar.a; + int I = I(jVar); + int I2 = I(jVar2); + if (I != I2) { + if (I >= I2) { + dVar2 = dVar2.f674b; + } + dVar = dVar2; + dVar2 = dVar2.f674b; + } else { + b.g.a.c.b bVar = this.n; + if (bVar != null) { + j f02 = bVar.f0(this.m, jVar2, jVar); + if (f02 != jVar2) { + if (f02 != jVar) { + } + dVar = dVar2; + dVar2 = dVar2.f674b; + } else { + continue; + dVar2 = dVar2.f674b; + } + } + throw new IllegalArgumentException(String.format("Conflicting setter definitions for property \"%s\": %s vs %s", p(), dVar.a.h(), dVar2.a.h())); + } + } + this.t = dVar.e(); + return dVar.a; + } + + @Override // b.g.a.c.c0.s + public t t() { + b.g.a.c.b bVar; + if (q() == null || (bVar = this.n) == null) { + return null; + } + Objects.requireNonNull(bVar); + return null; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("[Property '"); + R.append(this.o); + R.append("'; ctors: "); + R.append(this.r); + R.append(", field(s): "); + R.append(this.q); + R.append(", getter(s): "); + R.append(this.f673s); + R.append(", setter(s): "); + R.append(this.t); + R.append("]"); + return R.toString(); + } + + @Override // b.g.a.c.c0.s + public boolean u() { + return x(this.q) || x(this.f673s) || x(this.t) || w(this.r); + } + + @Override // b.g.a.c.c0.s + public boolean v() { + Boolean bool = (Boolean) M(new c()); + return bool != null && bool.booleanValue(); + } + + public final boolean w(d dVar) { + while (dVar != null) { + if (dVar.c != null && dVar.d) { + return true; + } + dVar = dVar.f674b; + } + return false; + } + + public final boolean x(d dVar) { + while (dVar != null) { + t tVar = dVar.c; + if (tVar != null && tVar.c()) { + return true; + } + dVar = dVar.f674b; + } + return false; + } + + public final boolean y(d dVar) { + while (dVar != null) { + if (dVar.f) { + return true; + } + dVar = dVar.f674b; + } + return false; + } + + public final boolean z(d dVar) { + while (dVar != null) { + if (dVar.e) { + return true; + } + dVar = dVar.f674b; + } + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/c0/d.java b/app/src/main/java/b/g/a/c/c0/d.java new file mode 100644 index 0000000000..58ab1ca11a --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/d.java @@ -0,0 +1,193 @@ +package b.g.a.c.c0; + +import b.g.a.c.b; +import b.g.a.c.c0.o; +import b.g.a.c.c0.t; +import b.g.a.c.h0.m; +import b.g.a.c.i0.a; +import b.g.a.c.j; +import b.g.a.c.z.l; +import java.lang.annotation.Annotation; +import java.lang.annotation.Retention; +import java.lang.annotation.Target; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +/* compiled from: AnnotatedClassResolver */ +public class d { + public static final Class a = List.class; + + /* renamed from: b reason: collision with root package name */ + public static final Class f675b = Map.class; + public final l c; + public final b d; + public final t.a e; + public final m f; + public final j g; + public final Class h; + public final Class i; + public final boolean j; + + public d(l lVar, j jVar, t.a aVar) { + this.c = lVar; + this.g = jVar; + Class cls = jVar._class; + this.h = cls; + this.e = aVar; + this.f = jVar.j(); + Class cls2 = null; + b e = lVar.p() ? lVar.e() : null; + this.d = e; + this.i = aVar != null ? aVar.a(cls) : cls2; + this.j = e != null && (!b.g.a.c.i0.d.r(cls) || !jVar.v()); + } + + public d(l lVar, Class cls, t.a aVar) { + this.c = lVar; + Class cls2 = null; + this.g = null; + this.h = cls; + this.e = aVar; + this.f = m.l; + if (lVar == null) { + this.d = null; + this.i = null; + } else { + this.d = lVar.p() ? lVar.e() : null; + this.i = aVar != null ? aVar.a(cls) : cls2; + } + this.j = this.d != null; + } + + public static void d(j jVar, List list, boolean z2) { + Class cls = jVar._class; + if (z2) { + if (!f(list, cls)) { + list.add(jVar); + if (cls == a || cls == f675b) { + return; + } + } else { + return; + } + } + for (j jVar2 : jVar.n()) { + d(jVar2, list, true); + } + } + + public static void e(j jVar, List list, boolean z2) { + Class cls = jVar._class; + if (!(cls == Object.class || cls == Enum.class)) { + if (z2) { + if (!f(list, cls)) { + list.add(jVar); + } else { + return; + } + } + for (j jVar2 : jVar.n()) { + d(jVar2, list, true); + } + j q = jVar.q(); + if (q != null) { + e(q, list, true); + } + } + } + + public static boolean f(List list, Class cls) { + int size = list.size(); + for (int i = 0; i < size; i++) { + if (list.get(i)._class == cls) { + return true; + } + } + return false; + } + + public static c h(l lVar, Class cls) { + if (cls.isArray() && i(lVar, cls)) { + return new c(cls); + } + d dVar = new d(lVar, cls, lVar); + List emptyList = Collections.emptyList(); + return new c(null, cls, emptyList, dVar.i, dVar.g(emptyList), dVar.f, dVar.d, lVar, lVar._base._typeFactory, dVar.j); + } + + public static boolean i(l lVar, Class cls) { + return lVar == null || ((b.g.a.c.z.m) lVar)._mixIns.a(cls) == null; + } + + public final o a(o oVar, Annotation[] annotationArr) { + if (annotationArr != null) { + for (Annotation annotation : annotationArr) { + if (!oVar.d(annotation)) { + oVar = oVar.a(annotation); + if (this.d.b0(annotation)) { + oVar = c(oVar, annotation); + } + } + } + } + return oVar; + } + + public final o b(o oVar, Class cls, Class cls2) { + if (cls2 != null) { + oVar = a(oVar, b.g.a.c.i0.d.i(cls2)); + Iterator it = ((ArrayList) b.g.a.c.i0.d.j(cls2, cls, false)).iterator(); + while (it.hasNext()) { + oVar = a(oVar, b.g.a.c.i0.d.i((Class) it.next())); + } + } + return oVar; + } + + public final o c(o oVar, Annotation annotation) { + Annotation[] i = b.g.a.c.i0.d.i(annotation.annotationType()); + for (Annotation annotation2 : i) { + if (!(annotation2 instanceof Target) && !(annotation2 instanceof Retention) && !oVar.d(annotation2)) { + oVar = oVar.a(annotation2); + if (this.d.b0(annotation2)) { + oVar = c(oVar, annotation2); + } + } + } + return oVar; + } + + public final a g(List list) { + if (this.d == null) { + return o.a; + } + t.a aVar = this.e; + boolean z2 = aVar != null && (!(aVar instanceof d0) || ((d0) aVar).b()); + if (!(z2 || this.j)) { + return o.a; + } + o oVar = o.a.c; + Class cls = this.i; + if (cls != null) { + oVar = b(oVar, this.h, cls); + } + if (this.j) { + oVar = a(oVar, b.g.a.c.i0.d.i(this.h)); + } + for (j jVar : list) { + if (z2) { + Class cls2 = jVar._class; + oVar = b(oVar, cls2, this.e.a(cls2)); + } + if (this.j) { + oVar = a(oVar, b.g.a.c.i0.d.i(jVar._class)); + } + } + if (z2) { + oVar = b(oVar, Object.class, this.e.a(Object.class)); + } + return oVar.c(); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/d0.java b/app/src/main/java/b/g/a/c/c0/d0.java new file mode 100644 index 0000000000..1e998bb367 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/d0.java @@ -0,0 +1,37 @@ +package b.g.a.c.c0; + +import b.g.a.c.c0.t; +import b.g.a.c.h0.b; +import java.io.Serializable; +import java.util.Map; +/* compiled from: SimpleMixInResolver */ +public class d0 implements t.a, Serializable { + private static final long serialVersionUID = 1; + public Map> _localMixIns; + public final t.a _overrides = null; + + public d0(t.a aVar) { + } + + @Override // b.g.a.c.c0.t.a + public Class a(Class cls) { + Map> map; + t.a aVar = this._overrides; + Class a = aVar == null ? null : aVar.a(cls); + return (a != null || (map = this._localMixIns) == null) ? a : map.get(new b(cls)); + } + + public boolean b() { + if (this._localMixIns != null) { + return true; + } + t.a aVar = this._overrides; + if (aVar == null) { + return false; + } + if (aVar instanceof d0) { + return ((d0) aVar).b(); + } + return true; + } +} diff --git a/app/src/main/java/b/g/a/c/c0/e.java b/app/src/main/java/b/g/a/c/c0/e.java new file mode 100644 index 0000000000..c6f403845c --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/e.java @@ -0,0 +1,134 @@ +package b.g.a.c.c0; + +import b.g.a.c.i0.d; +import b.g.a.c.j; +import java.io.Serializable; +import java.lang.reflect.Constructor; +import java.lang.reflect.Member; +import java.lang.reflect.Type; +/* compiled from: AnnotatedConstructor */ +public final class e extends n { + private static final long serialVersionUID = 1; + public final Constructor _constructor; + public a _serialization; + + /* compiled from: AnnotatedConstructor */ + public static final class a implements Serializable { + private static final long serialVersionUID = 1; + public Class[] args; + public Class clazz; + + public a(Constructor constructor) { + this.clazz = constructor.getDeclaringClass(); + this.args = constructor.getParameterTypes(); + } + } + + public e(a aVar) { + super(null, null, null); + this._constructor = null; + this._serialization = aVar; + } + + public e(e0 e0Var, Constructor constructor, p pVar, p[] pVarArr) { + super(e0Var, pVar, pVarArr); + if (constructor != null) { + this._constructor = constructor; + return; + } + throw new IllegalArgumentException("Null constructor not allowed"); + } + + @Override // b.g.a.c.c0.b + public String c() { + return this._constructor.getName(); + } + + @Override // b.g.a.c.c0.b + public Class d() { + return this._constructor.getDeclaringClass(); + } + + @Override // b.g.a.c.c0.b + public j e() { + return this.j.a(d()); + } + + @Override // b.g.a.c.c0.b + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + return d.o(obj, e.class) && ((e) obj)._constructor == this._constructor; + } + + @Override // b.g.a.c.c0.i + public Class g() { + return this._constructor.getDeclaringClass(); + } + + @Override // b.g.a.c.c0.b + public int hashCode() { + return this._constructor.getName().hashCode(); + } + + @Override // b.g.a.c.c0.i + public Member i() { + return this._constructor; + } + + @Override // b.g.a.c.c0.i + public Object j(Object obj) throws UnsupportedOperationException { + StringBuilder R = b.d.b.a.a.R("Cannot call getValue() on constructor of "); + R.append(g().getName()); + throw new UnsupportedOperationException(R.toString()); + } + + @Override // b.g.a.c.c0.i + public b l(p pVar) { + return new e(this.j, this._constructor, pVar, this._paramAnnotations); + } + + @Override // b.g.a.c.c0.n + public j n(int i) { + Type[] genericParameterTypes = this._constructor.getGenericParameterTypes(); + if (i >= genericParameterTypes.length) { + return null; + } + return this.j.a(genericParameterTypes[i]); + } + + public Object readResolve() { + a aVar = this._serialization; + Class cls = aVar.clazz; + try { + Constructor declaredConstructor = cls.getDeclaredConstructor(aVar.args); + if (!declaredConstructor.isAccessible()) { + d.d(declaredConstructor, false); + } + return new e(null, declaredConstructor, null, null); + } catch (Exception unused) { + StringBuilder R = b.d.b.a.a.R("Could not find constructor with "); + R.append(this._serialization.args.length); + R.append(" args from Class '"); + R.append(cls.getName()); + throw new IllegalArgumentException(R.toString()); + } + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0026: APUT (r1v1 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r0v3 java.lang.String) */ + @Override // java.lang.Object + public String toString() { + int length = this._constructor.getParameterTypes().length; + Object[] objArr = new Object[4]; + objArr[0] = d.u(this._constructor.getDeclaringClass()); + objArr[1] = Integer.valueOf(length); + objArr[2] = length == 1 ? "" : "s"; + objArr[3] = this.k; + return String.format("[constructor for %s (%d arg%s), annotations: %s", objArr); + } + + public Object writeReplace() { + return new e(new a(this._constructor)); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/e0.java b/app/src/main/java/b/g/a/c/c0/e0.java new file mode 100644 index 0000000000..143871a7c4 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/e0.java @@ -0,0 +1,41 @@ +package b.g.a.c.c0; + +import b.g.a.c.h0.m; +import b.g.a.c.h0.n; +import b.g.a.c.j; +import java.lang.reflect.Type; +/* compiled from: TypeResolutionContext */ +public interface e0 { + + /* compiled from: TypeResolutionContext */ + public static class a implements e0 { + public final n j; + public final m k; + + public a(n nVar, m mVar) { + this.j = nVar; + this.k = mVar; + } + + @Override // b.g.a.c.c0.e0 + public j a(Type type) { + return this.j.b(null, type, this.k); + } + } + + /* compiled from: TypeResolutionContext */ + public static class b implements e0 { + public final n j; + + public b(n nVar) { + this.j = nVar; + } + + @Override // b.g.a.c.c0.e0 + public j a(Type type) { + return this.j.b(null, type, n.l); + } + } + + j a(Type type); +} diff --git a/app/src/main/java/b/g/a/c/c0/f.java b/app/src/main/java/b/g/a/c/c0/f.java new file mode 100644 index 0000000000..284a5a2693 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/f.java @@ -0,0 +1,138 @@ +package b.g.a.c.c0; + +import b.g.a.c.b; +import b.g.a.c.c0.o; +import b.g.a.c.i0.d; +import java.lang.annotation.Annotation; +import java.lang.reflect.AnnotatedElement; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +/* compiled from: AnnotatedCreatorCollector */ +public final class f extends u { + public final e0 d; + public final boolean e; + public e f; + + public f(b bVar, e0 e0Var, boolean z2) { + super(bVar); + this.d = e0Var; + this.e = z2; + } + + public static boolean f(Method method) { + return Modifier.isStatic(method.getModifiers()) && !method.isSynthetic(); + } + + public final p g(d.a aVar, d.a aVar2) { + if (!this.e) { + return new p(); + } + Annotation[] annotationArr = aVar.f713b; + if (annotationArr == null) { + annotationArr = aVar.a.getDeclaredAnnotations(); + aVar.f713b = annotationArr; + } + o c = c(annotationArr); + if (aVar2 != null) { + Annotation[] annotationArr2 = aVar2.f713b; + if (annotationArr2 == null) { + annotationArr2 = aVar2.a.getDeclaredAnnotations(); + aVar2.f713b = annotationArr2; + } + c = b(c, annotationArr2); + } + return c.b(); + } + + public final p h(AnnotatedElement annotatedElement, AnnotatedElement annotatedElement2) { + o c = c(annotatedElement.getDeclaredAnnotations()); + if (annotatedElement2 != null) { + c = b(c, annotatedElement2.getDeclaredAnnotations()); + } + return c.b(); + } + + public final p[] i(Annotation[][] annotationArr, Annotation[][] annotationArr2) { + if (!this.e) { + return u.a; + } + int length = annotationArr.length; + p[] pVarArr = new p[length]; + for (int i = 0; i < length; i++) { + o b2 = b(o.a.c, annotationArr[i]); + if (annotationArr2 != null) { + b2 = b(b2, annotationArr2[i]); + } + pVarArr[i] = b2.b(); + } + return pVarArr; + } + + public j j(Method method, e0 e0Var, Method method2) { + int length = method.getParameterTypes().length; + if (this.c == null) { + return new j(e0Var, method, new p(), u.a(length)); + } + if (length == 0) { + return new j(e0Var, method, h(method, method2), u.a); + } + return new j(e0Var, method, h(method, method2), i(method.getParameterAnnotations(), method2 == null ? null : method2.getParameterAnnotations())); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:23:0x007a */ + /* JADX DEBUG: Multi-variable search result rejected for r3v1, resolved type: b.g.a.c.c0.p[] */ + /* JADX DEBUG: Multi-variable search result rejected for r3v3, resolved type: b.g.a.c.c0.p[] */ + /* JADX DEBUG: Multi-variable search result rejected for r3v5, resolved type: b.g.a.c.c0.p[] */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x007d */ + public e k(d.a aVar, d.a aVar2) { + Annotation[][] annotationArr; + p[] i; + int a = aVar.a(); + if (this.c == null) { + return new e(this.d, aVar.a, new p(), u.a(a)); + } + if (a == 0) { + return new e(this.d, aVar.a, g(aVar, aVar2), u.a); + } + Annotation[][] annotationArr2 = aVar.c; + if (annotationArr2 == null) { + annotationArr2 = aVar.a.getParameterAnnotations(); + aVar.c = annotationArr2; + } + Annotation[][] annotationArr3 = 0; + if (a != annotationArr2.length) { + Class declaringClass = aVar.a.getDeclaringClass(); + if (!d.q(declaringClass) || a != annotationArr2.length + 2) { + if (declaringClass.isMemberClass() && a == annotationArr2.length + 1) { + annotationArr = new Annotation[(annotationArr2.length + 1)][]; + System.arraycopy(annotationArr2, 0, annotationArr, 1, annotationArr2.length); + annotationArr[0] = u.f680b; + i = i(annotationArr, null); + } + if (annotationArr3 == 0) { + throw new IllegalStateException(String.format("Internal error: constructor for %s has mismatch: %d parameters; %d sets of annotations", aVar.a.getDeclaringClass().getName(), Integer.valueOf(a), Integer.valueOf(annotationArr2.length))); + } + } else { + annotationArr = new Annotation[(annotationArr2.length + 2)][]; + System.arraycopy(annotationArr2, 0, annotationArr, 2, annotationArr2.length); + i = i(annotationArr, null); + } + annotationArr3 = i; + annotationArr2 = annotationArr; + if (annotationArr3 == 0) { + } + } else { + if (aVar2 != null) { + Annotation[][] annotationArr4 = aVar2.c; + if (annotationArr4 == null) { + annotationArr4 = aVar2.a.getParameterAnnotations(); + aVar2.c = annotationArr4; + } + annotationArr3 = annotationArr4; + } + annotationArr3 = i(annotationArr2, annotationArr3); + } + return new e(this.d, aVar.a, g(aVar, aVar2), annotationArr3); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/f0.java b/app/src/main/java/b/g/a/c/c0/f0.java new file mode 100644 index 0000000000..bb79c61242 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/f0.java @@ -0,0 +1,81 @@ +package b.g.a.c.c0; + +import b.d.b.a.a; +import b.g.a.c.i0.d; +import b.g.a.c.j; +import java.io.Serializable; +import java.lang.reflect.Member; +/* compiled from: VirtualAnnotatedMember */ +public class f0 extends i implements Serializable { + private static final long serialVersionUID = 1; + public final Class _declaringClass; + public final String _name; + public final j _type; + + public f0(e0 e0Var, Class cls, String str, j jVar) { + super(e0Var, null); + this._declaringClass = cls; + this._type = jVar; + this._name = str; + } + + @Override // b.g.a.c.c0.b + public String c() { + return this._name; + } + + @Override // b.g.a.c.c0.b + public Class d() { + return this._type._class; + } + + @Override // b.g.a.c.c0.b + public j e() { + return this._type; + } + + @Override // b.g.a.c.c0.b + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!d.o(obj, f0.class)) { + return false; + } + f0 f0Var = (f0) obj; + return f0Var._declaringClass == this._declaringClass && f0Var._name.equals(this._name); + } + + @Override // b.g.a.c.c0.i + public Class g() { + return this._declaringClass; + } + + @Override // b.g.a.c.c0.b + public int hashCode() { + return this._name.hashCode(); + } + + @Override // b.g.a.c.c0.i + public Member i() { + return null; + } + + @Override // b.g.a.c.c0.i + public Object j(Object obj) throws IllegalArgumentException { + throw new IllegalArgumentException(a.H(a.R("Cannot get virtual property '"), this._name, "'")); + } + + @Override // b.g.a.c.c0.i + public b l(p pVar) { + return this; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("[virtual "); + R.append(h()); + R.append("]"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/g.java b/app/src/main/java/b/g/a/c/c0/g.java new file mode 100644 index 0000000000..aefd8106c7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/g.java @@ -0,0 +1,122 @@ +package b.g.a.c.c0; + +import b.g.a.c.i0.d; +import b.g.a.c.j; +import java.io.Serializable; +import java.lang.reflect.Field; +import java.lang.reflect.Member; +/* compiled from: AnnotatedField */ +public final class g extends i implements Serializable { + private static final long serialVersionUID = 1; + public a _serialization; + public final transient Field l; + + /* compiled from: AnnotatedField */ + public static final class a implements Serializable { + private static final long serialVersionUID = 1; + public Class clazz; + public String name; + + public a(Field field) { + this.clazz = field.getDeclaringClass(); + this.name = field.getName(); + } + } + + public g(e0 e0Var, Field field, p pVar) { + super(e0Var, pVar); + this.l = field; + } + + public g(a aVar) { + super(null, null); + this.l = null; + this._serialization = aVar; + } + + @Override // b.g.a.c.c0.b + public String c() { + return this.l.getName(); + } + + @Override // b.g.a.c.c0.b + public Class d() { + return this.l.getType(); + } + + @Override // b.g.a.c.c0.b + public j e() { + return this.j.a(this.l.getGenericType()); + } + + @Override // b.g.a.c.c0.b + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + return d.o(obj, g.class) && ((g) obj).l == this.l; + } + + @Override // b.g.a.c.c0.i + public Class g() { + return this.l.getDeclaringClass(); + } + + @Override // b.g.a.c.c0.b + public int hashCode() { + return this.l.getName().hashCode(); + } + + @Override // b.g.a.c.c0.i + public Member i() { + return this.l; + } + + @Override // b.g.a.c.c0.i + public Object j(Object obj) throws IllegalArgumentException { + try { + return this.l.get(obj); + } catch (IllegalAccessException e) { + StringBuilder R = b.d.b.a.a.R("Failed to getValue() for field "); + R.append(h()); + R.append(": "); + R.append(e.getMessage()); + throw new IllegalArgumentException(R.toString(), e); + } + } + + @Override // b.g.a.c.c0.i + public b l(p pVar) { + return new g(this.j, this.l, pVar); + } + + public Object readResolve() { + a aVar = this._serialization; + Class cls = aVar.clazz; + try { + Field declaredField = cls.getDeclaredField(aVar.name); + if (!declaredField.isAccessible()) { + d.d(declaredField, false); + } + return new g(null, declaredField, null); + } catch (Exception unused) { + StringBuilder R = b.d.b.a.a.R("Could not find method '"); + R.append(this._serialization.name); + R.append("' from Class '"); + R.append(cls.getName()); + throw new IllegalArgumentException(R.toString()); + } + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("[field "); + R.append(h()); + R.append("]"); + return R.toString(); + } + + public Object writeReplace() { + return new g(new a(this.l)); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/g0.java b/app/src/main/java/b/g/a/c/c0/g0.java new file mode 100644 index 0000000000..3eeb0b2bb0 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/g0.java @@ -0,0 +1,46 @@ +package b.g.a.c.c0; + +import b.g.a.a.e; +import b.g.a.c.c0.g0; +import java.io.Serializable; +/* compiled from: VisibilityChecker */ +public interface g0> { + + /* compiled from: VisibilityChecker */ + public static class a implements g0, Serializable { + public static final a j; + private static final long serialVersionUID = 1; + public final e.a _creatorMinLevel; + public final e.a _fieldMinLevel; + public final e.a _getterMinLevel; + public final e.a _isGetterMinLevel; + public final e.a _setterMinLevel; + + static { + e.a aVar = e.a.PUBLIC_ONLY; + e.a aVar2 = e.a.ANY; + j = new a(aVar, aVar, aVar2, aVar2, aVar); + } + + public a(e.a aVar, e.a aVar2, e.a aVar3, e.a aVar4, e.a aVar5) { + this._getterMinLevel = aVar; + this._isGetterMinLevel = aVar2; + this._setterMinLevel = aVar3; + this._creatorMinLevel = aVar4; + this._fieldMinLevel = aVar5; + } + + public final e.a a(e.a aVar, e.a aVar2) { + return aVar2 == e.a.DEFAULT ? aVar : aVar2; + } + + public a b(e.a aVar, e.a aVar2, e.a aVar3, e.a aVar4, e.a aVar5) { + return (aVar == this._getterMinLevel && aVar2 == this._isGetterMinLevel && aVar3 == this._setterMinLevel && aVar4 == this._creatorMinLevel && aVar5 == this._fieldMinLevel) ? this : new a(aVar, aVar2, aVar3, aVar4, aVar5); + } + + @Override // java.lang.Object + public String toString() { + return String.format("[Visibility: getter=%s,isGetter=%s,setter=%s,creator=%s,field=%s]", this._getterMinLevel, this._isGetterMinLevel, this._setterMinLevel, this._creatorMinLevel, this._fieldMinLevel); + } + } +} diff --git a/app/src/main/java/b/g/a/c/c0/h.java b/app/src/main/java/b/g/a/c/c0/h.java new file mode 100644 index 0000000000..5dcc644ecb --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/h.java @@ -0,0 +1,83 @@ +package b.g.a.c.c0; + +import b.g.a.c.b; +import b.g.a.c.c0.e0; +import b.g.a.c.c0.o; +import b.g.a.c.c0.t; +import b.g.a.c.h0.n; +import b.g.a.c.i0.d; +import b.g.a.c.j; +import java.lang.reflect.Field; +import java.lang.reflect.Modifier; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Map; +/* compiled from: AnnotatedFieldCollector */ +public class h extends u { + public final n d; + public final t.a e; + public final boolean f; + + /* compiled from: AnnotatedFieldCollector */ + public static final class a { + public final e0 a; + + /* renamed from: b reason: collision with root package name */ + public final Field f676b; + public o c = o.a.c; + + public a(e0 e0Var, Field field) { + this.a = e0Var; + this.f676b = field; + } + } + + public h(b bVar, n nVar, t.a aVar, boolean z2) { + super(bVar); + this.d = nVar; + this.e = bVar == null ? null : aVar; + this.f = z2; + } + + public final Map f(e0 e0Var, j jVar, Map map) { + t.a aVar; + Class a2; + a aVar2; + j q = jVar.q(); + if (q == null) { + return map; + } + Class cls = jVar._class; + Map f = f(new e0.a(this.d, q.j()), q, map); + Field[] declaredFields = cls.getDeclaredFields(); + for (Field field : declaredFields) { + if (g(field)) { + if (f == null) { + f = new LinkedHashMap<>(); + } + a aVar3 = new a(e0Var, field); + if (this.f) { + aVar3.c = b(aVar3.c, field.getDeclaredAnnotations()); + } + f.put(field.getName(), aVar3); + } + } + if (!(f == null || (aVar = this.e) == null || (a2 = aVar.a(cls)) == null)) { + Iterator it = ((ArrayList) d.j(a2, cls, true)).iterator(); + while (it.hasNext()) { + Field[] declaredFields2 = ((Class) it.next()).getDeclaredFields(); + for (Field field2 : declaredFields2) { + if (g(field2) && (aVar2 = f.get(field2.getName())) != null) { + aVar2.c = b(aVar2.c, field2.getDeclaredAnnotations()); + } + } + } + } + return f; + } + + public final boolean g(Field field) { + return !field.isSynthetic() && !Modifier.isStatic(field.getModifiers()); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/i.java b/app/src/main/java/b/g/a/c/c0/i.java new file mode 100644 index 0000000000..1c59901b35 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/i.java @@ -0,0 +1,56 @@ +package b.g.a.c.c0; + +import b.g.a.c.i0.d; +import java.io.Serializable; +import java.lang.annotation.Annotation; +import java.lang.reflect.Member; +import java.util.HashMap; +/* compiled from: AnnotatedMember */ +public abstract class i extends b implements Serializable { + private static final long serialVersionUID = 1; + public final transient e0 j; + public final transient p k; + + public i(e0 e0Var, p pVar) { + this.j = e0Var; + this.k = pVar; + } + + @Override // b.g.a.c.c0.b + public final A b(Class cls) { + HashMap, Annotation> hashMap; + p pVar = this.k; + if (pVar == null || (hashMap = pVar.j) == null) { + return null; + } + return (A) hashMap.get(cls); + } + + public final void f(boolean z2) { + Member i = i(); + if (i != null) { + d.d(i, z2); + } + } + + public abstract Class g(); + + public String h() { + return g().getName() + "#" + c(); + } + + public abstract Member i(); + + public abstract Object j(Object obj) throws UnsupportedOperationException, IllegalArgumentException; + + public final boolean k(Class cls) { + HashMap, Annotation> hashMap; + p pVar = this.k; + if (pVar == null || (hashMap = pVar.j) == null) { + return false; + } + return hashMap.containsKey(cls); + } + + public abstract b l(p pVar); +} diff --git a/app/src/main/java/b/g/a/c/c0/j.java b/app/src/main/java/b/g/a/c/c0/j.java new file mode 100644 index 0000000000..a5200fc7e3 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/j.java @@ -0,0 +1,173 @@ +package b.g.a.c.c0; + +import b.g.a.c.i0.d; +import java.io.Serializable; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Member; +import java.lang.reflect.Method; +import java.lang.reflect.Type; +/* compiled from: AnnotatedMethod */ +public final class j extends n implements Serializable { + private static final long serialVersionUID = 1; + public Class[] _paramClasses; + public a _serialization; + public final transient Method l; + + /* compiled from: AnnotatedMethod */ + public static final class a implements Serializable { + private static final long serialVersionUID = 1; + public Class[] args; + public Class clazz; + public String name; + + public a(Method method) { + this.clazz = method.getDeclaringClass(); + this.name = method.getName(); + this.args = method.getParameterTypes(); + } + } + + public j(e0 e0Var, Method method, p pVar, p[] pVarArr) { + super(e0Var, pVar, pVarArr); + if (method != null) { + this.l = method; + return; + } + throw new IllegalArgumentException("Cannot construct AnnotatedMethod with null Method"); + } + + public j(a aVar) { + super(null, null, null); + this.l = null; + this._serialization = aVar; + } + + @Override // b.g.a.c.c0.b + public String c() { + return this.l.getName(); + } + + @Override // b.g.a.c.c0.b + public Class d() { + return this.l.getReturnType(); + } + + @Override // b.g.a.c.c0.b + public b.g.a.c.j e() { + return this.j.a(this.l.getGenericReturnType()); + } + + @Override // b.g.a.c.c0.b + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + return d.o(obj, j.class) && ((j) obj).l == this.l; + } + + @Override // b.g.a.c.c0.i + public Class g() { + return this.l.getDeclaringClass(); + } + + @Override // b.g.a.c.c0.i + public String h() { + String h = super.h(); + int o = o(); + if (o == 0) { + return b.d.b.a.a.v(h, "()"); + } + if (o != 1) { + return String.format("%s(%d params)", super.h(), Integer.valueOf(o())); + } + StringBuilder V = b.d.b.a.a.V(h, "("); + V.append(p(0).getName()); + V.append(")"); + return V.toString(); + } + + @Override // b.g.a.c.c0.b + public int hashCode() { + return this.l.getName().hashCode(); + } + + @Override // b.g.a.c.c0.i + public Member i() { + return this.l; + } + + @Override // b.g.a.c.c0.i + public Object j(Object obj) throws IllegalArgumentException { + try { + return this.l.invoke(obj, null); + } catch (IllegalAccessException | InvocationTargetException e) { + StringBuilder R = b.d.b.a.a.R("Failed to getValue() with method "); + R.append(h()); + R.append(": "); + R.append(e.getMessage()); + throw new IllegalArgumentException(R.toString(), e); + } + } + + @Override // b.g.a.c.c0.i + public b l(p pVar) { + return new j(this.j, this.l, pVar, this._paramAnnotations); + } + + @Override // b.g.a.c.c0.n + public b.g.a.c.j n(int i) { + Type[] genericParameterTypes = this.l.getGenericParameterTypes(); + if (i >= genericParameterTypes.length) { + return null; + } + return this.j.a(genericParameterTypes[i]); + } + + public int o() { + if (this._paramClasses == null) { + this._paramClasses = this.l.getParameterTypes(); + } + return this._paramClasses.length; + } + + public Class p(int i) { + if (this._paramClasses == null) { + this._paramClasses = this.l.getParameterTypes(); + } + Class[] clsArr = this._paramClasses; + if (i >= clsArr.length) { + return null; + } + return clsArr[i]; + } + + public Object readResolve() { + a aVar = this._serialization; + Class cls = aVar.clazz; + try { + Method declaredMethod = cls.getDeclaredMethod(aVar.name, aVar.args); + if (!declaredMethod.isAccessible()) { + d.d(declaredMethod, false); + } + return new j(null, declaredMethod, null, null); + } catch (Exception unused) { + StringBuilder R = b.d.b.a.a.R("Could not find method '"); + R.append(this._serialization.name); + R.append("' from Class '"); + R.append(cls.getName()); + throw new IllegalArgumentException(R.toString()); + } + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("[method "); + R.append(h()); + R.append("]"); + return R.toString(); + } + + public Object writeReplace() { + return new j(new a(this.l)); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/k.java b/app/src/main/java/b/g/a/c/c0/k.java new file mode 100644 index 0000000000..a99148962b --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/k.java @@ -0,0 +1,100 @@ +package b.g.a.c.c0; + +import b.g.a.c.b; +import b.g.a.c.c0.o; +import b.g.a.c.c0.t; +import b.g.a.c.i0.d; +import java.lang.annotation.Annotation; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Map; +/* compiled from: AnnotatedMethodCollector */ +public class k extends u { + public final t.a d; + public final boolean e; + + /* compiled from: AnnotatedMethodCollector */ + public static final class a { + public e0 a; + + /* renamed from: b reason: collision with root package name */ + public Method f677b; + public o c; + + public a(e0 e0Var, Method method, o oVar) { + this.a = e0Var; + this.f677b = method; + this.c = oVar; + } + } + + public k(b bVar, t.a aVar, boolean z2) { + super(bVar); + this.d = bVar == null ? null : aVar; + this.e = z2; + } + + public static boolean h(Method method) { + return !Modifier.isStatic(method.getModifiers()) && !method.isSynthetic() && !method.isBridge() && method.getParameterTypes().length <= 2; + } + + public final void f(e0 e0Var, Class cls, Map map, Class cls2) { + if (cls2 != null) { + g(e0Var, cls, map, cls2); + } + if (cls != null) { + Method[] k = d.k(cls); + for (Method method : k) { + if (h(method)) { + y yVar = new y(method); + a aVar = map.get(yVar); + if (aVar == null) { + map.put(yVar, new a(e0Var, method, this.c == null ? o.a.c : c(method.getDeclaredAnnotations()))); + } else { + if (this.e) { + aVar.c = d(aVar.c, method.getDeclaredAnnotations()); + } + Method method2 = aVar.f677b; + if (method2 == null) { + aVar.f677b = method; + } else if (Modifier.isAbstract(method2.getModifiers()) && !Modifier.isAbstract(method.getModifiers())) { + aVar.f677b = method; + aVar.a = e0Var; + } + } + } + } + } + } + + public void g(e0 e0Var, Class cls, Map map, Class cls2) { + List list; + if (this.c != null) { + Annotation[] annotationArr = d.a; + if (cls2 == cls || cls2 == Object.class) { + list = Collections.emptyList(); + } else { + list = new ArrayList(8); + d.a(cls2, cls, list, true); + } + for (Class cls3 : list) { + Method[] declaredMethods = cls3.getDeclaredMethods(); + for (Method method : declaredMethods) { + if (h(method)) { + y yVar = new y(method); + a aVar = map.get(yVar); + Annotation[] declaredAnnotations = method.getDeclaredAnnotations(); + if (aVar == null) { + map.put(yVar, new a(e0Var, null, c(declaredAnnotations))); + } else { + aVar.c = d(aVar.c, declaredAnnotations); + } + } + } + } + } + } +} diff --git a/app/src/main/java/b/g/a/c/c0/l.java b/app/src/main/java/b/g/a/c/c0/l.java new file mode 100644 index 0000000000..2f0afb1967 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/l.java @@ -0,0 +1,22 @@ +package b.g.a.c.c0; + +import java.util.Collections; +import java.util.Iterator; +import java.util.Map; +/* compiled from: AnnotatedMethodMap */ +public final class l implements Iterable { + public Map j; + + public l() { + } + + public l(Map map) { + this.j = map; + } + + @Override // java.lang.Iterable + public Iterator iterator() { + Map map = this.j; + return map == null ? Collections.emptyIterator() : map.values().iterator(); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/m.java b/app/src/main/java/b/g/a/c/c0/m.java new file mode 100644 index 0000000000..6831441abc --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/m.java @@ -0,0 +1,90 @@ +package b.g.a.c.c0; + +import b.d.b.a.a; +import b.g.a.c.i0.d; +import b.g.a.c.j; +import java.lang.reflect.Member; +/* compiled from: AnnotatedParameter */ +public final class m extends i { + private static final long serialVersionUID = 1; + public final int _index; + public final n _owner; + public final j _type; + + public m(n nVar, j jVar, e0 e0Var, p pVar, int i) { + super(e0Var, pVar); + this._owner = nVar; + this._type = jVar; + this._index = i; + } + + @Override // b.g.a.c.c0.b + public String c() { + return ""; + } + + @Override // b.g.a.c.c0.b + public Class d() { + return this._type._class; + } + + @Override // b.g.a.c.c0.b + public j e() { + return this._type; + } + + @Override // b.g.a.c.c0.b + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!d.o(obj, m.class)) { + return false; + } + m mVar = (m) obj; + return mVar._owner.equals(this._owner) && mVar._index == this._index; + } + + @Override // b.g.a.c.c0.i + public Class g() { + return this._owner.g(); + } + + @Override // b.g.a.c.c0.b + public int hashCode() { + return this._owner.hashCode() + this._index; + } + + @Override // b.g.a.c.c0.i + public Member i() { + return this._owner.i(); + } + + @Override // b.g.a.c.c0.i + public Object j(Object obj) throws UnsupportedOperationException { + StringBuilder R = a.R("Cannot call getValue() on constructor parameter of "); + R.append(g().getName()); + throw new UnsupportedOperationException(R.toString()); + } + + @Override // b.g.a.c.c0.i + public b l(p pVar) { + if (pVar == this.k) { + return this; + } + n nVar = this._owner; + int i = this._index; + nVar._paramAnnotations[i] = pVar; + return nVar.m(i); + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("[parameter #"); + R.append(this._index); + R.append(", annotations: "); + R.append(this.k); + R.append("]"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/n.java b/app/src/main/java/b/g/a/c/c0/n.java new file mode 100644 index 0000000000..3c60ff0943 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/n.java @@ -0,0 +1,22 @@ +package b.g.a.c.c0; + +import b.g.a.c.j; +/* compiled from: AnnotatedWithParams */ +public abstract class n extends i { + private static final long serialVersionUID = 1; + public final p[] _paramAnnotations; + + public n(e0 e0Var, p pVar, p[] pVarArr) { + super(e0Var, pVar); + this._paramAnnotations = pVarArr; + } + + public final m m(int i) { + j n = n(i); + e0 e0Var = this.j; + p[] pVarArr = this._paramAnnotations; + return new m(this, n, e0Var, (pVarArr == null || i < 0 || i >= pVarArr.length) ? null : pVarArr[i], i); + } + + public abstract j n(int i); +} diff --git a/app/src/main/java/b/g/a/c/c0/o.java b/app/src/main/java/b/g/a/c/c0/o.java new file mode 100644 index 0000000000..57260dd843 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/o.java @@ -0,0 +1,219 @@ +package b.g.a.c.c0; + +import java.io.Serializable; +import java.lang.annotation.Annotation; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +/* compiled from: AnnotationCollector */ +public abstract class o { + public static final b.g.a.c.i0.a a = new c(); + + /* renamed from: b reason: collision with root package name */ + public final Object f678b; + + /* compiled from: AnnotationCollector */ + public static class a extends o { + public static final a c = new a(null); + + public a(Object obj) { + super(null); + } + + @Override // b.g.a.c.c0.o + public o a(Annotation annotation) { + return new e(this.f678b, annotation.annotationType(), annotation); + } + + @Override // b.g.a.c.c0.o + public p b() { + return new p(); + } + + @Override // b.g.a.c.c0.o + public b.g.a.c.i0.a c() { + return o.a; + } + + @Override // b.g.a.c.c0.o + public boolean d(Annotation annotation) { + return false; + } + } + + /* compiled from: AnnotationCollector */ + public static class b extends o { + public final HashMap, Annotation> c; + + public b(Object obj, Class cls, Annotation annotation, Class cls2, Annotation annotation2) { + super(obj); + HashMap, Annotation> hashMap = new HashMap<>(); + this.c = hashMap; + hashMap.put(cls, annotation); + hashMap.put(cls2, annotation2); + } + + @Override // b.g.a.c.c0.o + public o a(Annotation annotation) { + this.c.put(annotation.annotationType(), annotation); + return this; + } + + @Override // b.g.a.c.c0.o + public p b() { + p pVar = new p(); + for (Annotation annotation : this.c.values()) { + if (pVar.j == null) { + pVar.j = new HashMap<>(); + } + Annotation put = pVar.j.put(annotation.annotationType(), annotation); + if (put != null) { + put.equals(annotation); + } + } + return pVar; + } + + @Override // b.g.a.c.c0.o + public b.g.a.c.i0.a c() { + if (this.c.size() != 2) { + return new p(this.c); + } + Iterator, Annotation>> it = this.c.entrySet().iterator(); + Map.Entry, Annotation> next = it.next(); + Map.Entry, Annotation> next2 = it.next(); + return new f(next.getKey(), next.getValue(), next2.getKey(), next2.getValue()); + } + + @Override // b.g.a.c.c0.o + public boolean d(Annotation annotation) { + return this.c.containsKey(annotation.annotationType()); + } + } + + /* compiled from: AnnotationCollector */ + public static class c implements b.g.a.c.i0.a, Serializable { + private static final long serialVersionUID = 1; + + @Override // b.g.a.c.i0.a + public A a(Class cls) { + return null; + } + + @Override // b.g.a.c.i0.a + public int size() { + return 0; + } + } + + /* compiled from: AnnotationCollector */ + public static class d implements b.g.a.c.i0.a, Serializable { + private static final long serialVersionUID = 1; + private final Class _type; + private final Annotation _value; + + public d(Class cls, Annotation annotation) { + this._type = cls; + this._value = annotation; + } + + @Override // b.g.a.c.i0.a + public A a(Class cls) { + if (this._type == cls) { + return (A) this._value; + } + return null; + } + + @Override // b.g.a.c.i0.a + public int size() { + return 1; + } + } + + /* compiled from: AnnotationCollector */ + public static class e extends o { + public Class c; + public Annotation d; + + public e(Object obj, Class cls, Annotation annotation) { + super(obj); + this.c = cls; + this.d = annotation; + } + + @Override // b.g.a.c.c0.o + public o a(Annotation annotation) { + Class annotationType = annotation.annotationType(); + Class cls = this.c; + if (cls != annotationType) { + return new b(this.f678b, cls, this.d, annotationType, annotation); + } + this.d = annotation; + return this; + } + + @Override // b.g.a.c.c0.o + public p b() { + Class cls = this.c; + Annotation annotation = this.d; + HashMap hashMap = new HashMap(4); + hashMap.put(cls, annotation); + return new p(hashMap); + } + + @Override // b.g.a.c.c0.o + public b.g.a.c.i0.a c() { + return new d(this.c, this.d); + } + + @Override // b.g.a.c.c0.o + public boolean d(Annotation annotation) { + return annotation.annotationType() == this.c; + } + } + + /* compiled from: AnnotationCollector */ + public static class f implements b.g.a.c.i0.a, Serializable { + private static final long serialVersionUID = 1; + private final Class _type1; + private final Class _type2; + private final Annotation _value1; + private final Annotation _value2; + + public f(Class cls, Annotation annotation, Class cls2, Annotation annotation2) { + this._type1 = cls; + this._value1 = annotation; + this._type2 = cls2; + this._value2 = annotation2; + } + + @Override // b.g.a.c.i0.a + public A a(Class cls) { + if (this._type1 == cls) { + return (A) this._value1; + } + if (this._type2 == cls) { + return (A) this._value2; + } + return null; + } + + @Override // b.g.a.c.i0.a + public int size() { + return 2; + } + } + + public o(Object obj) { + this.f678b = obj; + } + + public abstract o a(Annotation annotation); + + public abstract p b(); + + public abstract b.g.a.c.i0.a c(); + + public abstract boolean d(Annotation annotation); +} diff --git a/app/src/main/java/b/g/a/c/c0/p.java b/app/src/main/java/b/g/a/c/c0/p.java new file mode 100644 index 0000000000..39dbeaf6e7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/p.java @@ -0,0 +1,69 @@ +package b.g.a.c.c0; + +import b.g.a.c.i0.a; +import java.lang.annotation.Annotation; +import java.util.HashMap; +/* compiled from: AnnotationMap */ +public final class p implements a { + public HashMap, Annotation> j; + + public p() { + } + + public p(HashMap, Annotation> hashMap) { + this.j = hashMap; + } + + public static p c(p pVar, p pVar2) { + HashMap, Annotation> hashMap; + HashMap, Annotation> hashMap2; + if (pVar == null || (hashMap = pVar.j) == null || hashMap.isEmpty()) { + return pVar2; + } + if (pVar2 == null || (hashMap2 = pVar2.j) == null || hashMap2.isEmpty()) { + return pVar; + } + HashMap hashMap3 = new HashMap(); + for (Annotation annotation : pVar2.j.values()) { + hashMap3.put(annotation.annotationType(), annotation); + } + for (Annotation annotation2 : pVar.j.values()) { + hashMap3.put(annotation2.annotationType(), annotation2); + } + return new p(hashMap3); + } + + @Override // b.g.a.c.i0.a + public A a(Class cls) { + HashMap, Annotation> hashMap = this.j; + if (hashMap == null) { + return null; + } + return (A) hashMap.get(cls); + } + + public boolean b(Class[] clsArr) { + if (this.j != null) { + for (Class cls : clsArr) { + if (this.j.containsKey(cls)) { + return true; + } + } + } + return false; + } + + @Override // b.g.a.c.i0.a + public int size() { + HashMap, Annotation> hashMap = this.j; + if (hashMap == null) { + return 0; + } + return hashMap.size(); + } + + public String toString() { + HashMap, Annotation> hashMap = this.j; + return hashMap == null ? "[null]" : hashMap.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/q.java b/app/src/main/java/b/g/a/c/c0/q.java new file mode 100644 index 0000000000..4a869fb803 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/q.java @@ -0,0 +1,110 @@ +package b.g.a.c.c0; + +import b.g.a.a.i; +import b.g.a.a.p; +import b.g.a.c.b; +import b.g.a.c.c; +import b.g.a.c.j; +import b.g.a.c.z.l; +import java.util.ArrayList; +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; +/* compiled from: BasicBeanDescription */ +public class q extends c { + + /* renamed from: b reason: collision with root package name */ + public static final Class[] f679b = new Class[0]; + public final b0 c; + public final l d; + public final b e; + public final c f; + public Class[] g; + public boolean h; + public List i; + public a0 j; + + /* JADX WARNING: Illegal instructions before constructor call */ + public q(b0 b0Var) { + super(r0); + j jVar = b0Var.d; + c cVar = b0Var.e; + this.c = b0Var; + l lVar = b0Var.a; + this.d = lVar; + if (lVar == null) { + this.e = null; + } else { + this.e = lVar.e(); + } + this.f = cVar; + a0 r = b0Var.g.r(b0Var.e); + this.j = r != null ? b0Var.g.s(b0Var.e, r) : r; + } + + public q(l lVar, j jVar, c cVar, List list) { + super(jVar); + this.c = null; + this.d = lVar; + if (lVar == null) { + this.e = null; + } else { + this.e = lVar.e(); + } + this.f = cVar; + this.i = list; + } + + public static q e(l lVar, j jVar, c cVar) { + return new q(lVar, jVar, cVar, Collections.emptyList()); + } + + @Override // b.g.a.c.c + public i.d a(i.d dVar) { + i.d dVar2; + b bVar = this.e; + if (bVar == null || (dVar2 = bVar.h(this.f)) == null) { + dVar2 = null; + } + i.d i = this.d.i(this.f.l); + return i != null ? dVar2 == null ? i : dVar2.k(i) : dVar2; + } + + @Override // b.g.a.c.c + public i b() { + b0 b0Var = this.c; + if (b0Var == null) { + return null; + } + if (!b0Var.i) { + b0Var.h(); + } + LinkedList linkedList = b0Var.r; + if (linkedList == null) { + return null; + } + if (linkedList.size() <= 1) { + return b0Var.r.get(0); + } + b0Var.i("Multiple 'as-value' properties defined (%s vs %s)", b0Var.r.get(0), b0Var.r.get(1)); + throw null; + } + + @Override // b.g.a.c.c + public p.b c(p.b bVar) { + p.b z2; + b bVar2 = this.e; + return (bVar2 == null || (z2 = bVar2.z(this.f)) == null) ? bVar : bVar == null ? z2 : bVar.a(z2); + } + + public List d() { + if (this.i == null) { + b0 b0Var = this.c; + if (!b0Var.i) { + b0Var.h(); + } + this.i = new ArrayList(b0Var.j.values()); + } + return this.i; + } +} diff --git a/app/src/main/java/b/g/a/c/c0/r.java b/app/src/main/java/b/g/a/c/c0/r.java new file mode 100644 index 0000000000..4108cf802e --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/r.java @@ -0,0 +1,90 @@ +package b.g.a.c.c0; + +import b.g.a.c.c0.t; +import b.g.a.c.h0.a; +import b.g.a.c.h0.k; +import b.g.a.c.i0.d; +import b.g.a.c.j; +import b.g.a.c.l; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Objects; +/* compiled from: BasicClassIntrospector */ +public class r extends t implements Serializable { + public static final Class j = l.class; + public static final q k; + public static final q l; + public static final q m; + public static final q n; + public static final q o = q.e(null, k.L(Object.class), new c(Object.class)); + private static final long serialVersionUID = 2; + + static { + k L = k.L(String.class); + Class cls = d.a; + k = q.e(null, L, new c(String.class)); + Class cls2 = Boolean.TYPE; + l = q.e(null, k.L(cls2), new c(cls2)); + Class cls3 = Integer.TYPE; + m = q.e(null, k.L(cls3), new c(cls3)); + Class cls4 = Long.TYPE; + n = q.e(null, k.L(cls4), new c(cls4)); + } + + public q a(b.g.a.c.z.l lVar, j jVar) { + Class cls = jVar._class; + if (cls.isPrimitive()) { + if (cls == Integer.TYPE) { + return m; + } + if (cls == Long.TYPE) { + return n; + } + if (cls == Boolean.TYPE) { + return l; + } + return null; + } else if (d.r(cls)) { + if (cls == Object.class) { + return o; + } + if (cls == String.class) { + return k; + } + if (cls == Integer.class) { + return m; + } + if (cls == Long.class) { + return n; + } + if (cls == Boolean.class) { + return l; + } + return null; + } else if (!j.isAssignableFrom(cls)) { + return null; + } else { + Class cls2 = d.a; + return q.e(lVar, jVar, new c(cls)); + } + } + + public c b(b.g.a.c.z.l lVar, j jVar, t.a aVar) { + Class cls = d.a; + Objects.requireNonNull(jVar); + if ((jVar instanceof a) && d.i(lVar, jVar._class)) { + return new c(jVar._class); + } + d dVar = new d(lVar, jVar, aVar); + ArrayList arrayList = new ArrayList(8); + Class cls2 = jVar._class; + if (!(cls2 == Object.class)) { + if (cls2.isInterface()) { + d.d(jVar, arrayList, false); + } else { + d.e(jVar, arrayList, false); + } + } + return new c(jVar, dVar.h, arrayList, dVar.i, dVar.g(arrayList), dVar.f, dVar.d, aVar, lVar._base._typeFactory, dVar.j); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/s.java b/app/src/main/java/b/g/a/c/c0/s.java new file mode 100644 index 0000000000..7dd8ecd5ac --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/s.java @@ -0,0 +1,62 @@ +package b.g.a.c.c0; + +import b.g.a.a.p; +import b.g.a.c.b; +import b.g.a.c.t; +/* compiled from: BeanPropertyDefinition */ +public abstract class s { + public static final p.b j = p.b.j; + + static { + p.b bVar = p.b.j; + } + + public boolean f() { + b k = k(); + if (k == null && (k = s()) == null) { + k = l(); + } + return k != null; + } + + public abstract p.b g(); + + public b.a h() { + return null; + } + + public Class[] i() { + return null; + } + + public i j() { + j n = n(); + return n == null ? l() : n; + } + + public abstract m k(); + + public abstract g l(); + + public abstract t m(); + + public abstract j n(); + + public abstract b.g.a.c.s o(); + + public abstract String p(); + + public abstract i q(); + + public abstract Class r(); + + public abstract j s(); + + public abstract t t(); + + public abstract boolean u(); + + public boolean v() { + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/c0/t.java b/app/src/main/java/b/g/a/c/c0/t.java new file mode 100644 index 0000000000..d0d751531b --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/t.java @@ -0,0 +1,9 @@ +package b.g.a.c.c0; +/* compiled from: ClassIntrospector */ +public abstract class t { + + /* compiled from: ClassIntrospector */ + public interface a { + Class a(Class cls); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/u.java b/app/src/main/java/b/g/a/c/c0/u.java new file mode 100644 index 0000000000..6d03d78ebc --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/u.java @@ -0,0 +1,86 @@ +package b.g.a.c.c0; + +import b.g.a.c.b; +import b.g.a.c.c0.o; +import b.g.a.c.i0.d; +import java.lang.annotation.Annotation; +import java.lang.annotation.Retention; +import java.lang.annotation.Target; +/* compiled from: CollectorBase */ +public class u { + public static final p[] a = new p[0]; + + /* renamed from: b reason: collision with root package name */ + public static final Annotation[] f680b = new Annotation[0]; + public final b c; + + public u(b bVar) { + this.c = bVar; + } + + public static p[] a(int i) { + if (i == 0) { + return a; + } + p[] pVarArr = new p[i]; + for (int i2 = 0; i2 < i; i2++) { + pVarArr[i2] = new p(); + } + return pVarArr; + } + + public final o b(o oVar, Annotation[] annotationArr) { + for (Annotation annotation : annotationArr) { + oVar = oVar.a(annotation); + if (this.c.b0(annotation)) { + oVar = e(oVar, annotation); + } + } + return oVar; + } + + public final o c(Annotation[] annotationArr) { + o oVar = o.a.c; + for (Annotation annotation : annotationArr) { + oVar = oVar.a(annotation); + if (this.c.b0(annotation)) { + oVar = e(oVar, annotation); + } + } + return oVar; + } + + public final o d(o oVar, Annotation[] annotationArr) { + for (Annotation annotation : annotationArr) { + if (!oVar.d(annotation)) { + oVar = oVar.a(annotation); + if (this.c.b0(annotation)) { + Annotation[] i = d.i(annotation.annotationType()); + for (Annotation annotation2 : i) { + if (!((annotation2 instanceof Target) || (annotation2 instanceof Retention)) && !oVar.d(annotation2)) { + oVar = oVar.a(annotation2); + if (this.c.b0(annotation2)) { + oVar = e(oVar, annotation2); + } + } + } + } + } + } + return oVar; + } + + public final o e(o oVar, Annotation annotation) { + Annotation[] i = d.i(annotation.annotationType()); + for (Annotation annotation2 : i) { + if (!((annotation2 instanceof Target) || (annotation2 instanceof Retention))) { + if (!this.c.b0(annotation2)) { + oVar = oVar.a(annotation2); + } else if (!oVar.d(annotation2)) { + oVar = e(oVar.a(annotation2), annotation2); + } + } + } + return oVar; + } +} diff --git a/app/src/main/java/b/g/a/c/c0/v.java b/app/src/main/java/b/g/a/c/c0/v.java new file mode 100644 index 0000000000..251a45f5a9 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/v.java @@ -0,0 +1,46 @@ +package b.g.a.c.c0; + +import b.g.a.a.i; +import b.g.a.a.p; +import b.g.a.c.b; +import b.g.a.c.d; +import b.g.a.c.s; +import b.g.a.c.z.l; +import java.io.Serializable; +/* compiled from: ConcreteBeanPropertyBase */ +public abstract class v implements d, Serializable { + private static final long serialVersionUID = 1; + public final s _metadata; + + public v(v vVar) { + this._metadata = vVar._metadata; + } + + public v(s sVar) { + this._metadata = sVar == null ? s.l : sVar; + } + + @Override // b.g.a.c.d + public i.d a(l lVar, Class cls) { + i member; + i.d i = lVar.i(cls); + b e = lVar.e(); + i.d h = (e == null || (member = getMember()) == null) ? null : e.h(member); + return i == null ? h == null ? d.c : h : h == null ? i : i.k(h); + } + + @Override // b.g.a.c.d + public p.b b(l lVar, Class cls) { + b e = lVar.e(); + i member = getMember(); + if (member == null) { + return lVar.j(cls); + } + p.b g = lVar.g(cls, member.d()); + if (e == null) { + return g; + } + p.b z2 = e.z(member); + return g == null ? z2 : g.a(z2); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/w.java b/app/src/main/java/b/g/a/c/c0/w.java new file mode 100644 index 0000000000..35be38e0e7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/w.java @@ -0,0 +1,185 @@ +package b.g.a.c.c0; + +import b.g.a.c.c0.a; +import b.g.a.c.i0.d; +import b.g.a.c.p; +import b.g.a.c.z.l; +import java.io.Serializable; +import java.util.HashSet; +import java.util.Objects; +import java.util.Set; +/* compiled from: DefaultAccessorNamingStrategy */ +public class w extends a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f681b; + public final String c; + public final String d; + public final String e; + + /* compiled from: DefaultAccessorNamingStrategy */ + public interface a { + boolean a(char c, String str, int i); + } + + /* compiled from: DefaultAccessorNamingStrategy */ + public static class b extends a.AbstractC0074a implements Serializable { + private static final long serialVersionUID = 1; + public final a _baseNameValidator = null; + public final String _getterPrefix = "get"; + public final String _isGetterPrefix = "is"; + public final String _setterPrefix = "set"; + public final String _withPrefix = "with"; + } + + /* compiled from: DefaultAccessorNamingStrategy */ + public static class c extends w { + public final Set f = new HashSet(); + + public c(l lVar, c cVar) { + super(lVar, cVar, null, "get", "is", null); + Class cls = cVar.l; + RuntimeException runtimeException = b.g.a.c.d0.a.f683b; + if (runtimeException == null) { + b.g.a.c.d0.a aVar = b.g.a.c.d0.a.a; + Objects.requireNonNull(aVar); + try { + Object[] objArr = (Object[]) aVar.c.invoke(cls, new Object[0]); + int length = objArr.length; + String[] strArr = new String[length]; + for (int i = 0; i < objArr.length; i++) { + try { + strArr[i] = (String) aVar.d.invoke(objArr[i], new Object[0]); + } catch (Exception e) { + throw new IllegalArgumentException(String.format("Failed to access name of field #%d (of %d) of Record type %s", Integer.valueOf(i), Integer.valueOf(objArr.length), d.u(cls)), e); + } + } + for (int i2 = 0; i2 < length; i2++) { + this.f.add(strArr[i2]); + } + } catch (Exception unused) { + StringBuilder R = b.d.b.a.a.R("Failed to access RecordComponents of type "); + R.append(d.u(cls)); + throw new IllegalArgumentException(R.toString()); + } + } else { + throw runtimeException; + } + } + + @Override // b.g.a.c.c0.w, b.g.a.c.c0.a + public String c(j jVar, String str) { + return this.f.contains(str) ? str : w.super.c(jVar, str); + } + } + + public w(l lVar, c cVar, String str, String str2, String str3, a aVar) { + this.f681b = lVar.q(p.USE_STD_BEAN_NAMING); + this.e = str; + this.c = str2; + this.d = str3; + this.a = aVar; + } + + @Override // b.g.a.c.c0.a + public String a(j jVar, String str) { + if (this.d == null) { + return null; + } + Class d = jVar.d(); + if ((d == Boolean.class || d == Boolean.TYPE) && str.startsWith(this.d)) { + return this.f681b ? e(str, 2) : d(str, 2); + } + return null; + } + + @Override // b.g.a.c.c0.a + public String b(j jVar, String str) { + String str2 = this.e; + if (str2 == null || !str.startsWith(str2)) { + return null; + } + return this.f681b ? e(str, this.e.length()) : d(str, this.e.length()); + } + + @Override // b.g.a.c.c0.a + public String c(j jVar, String str) { + String str2 = this.c; + if (str2 == null || !str.startsWith(str2)) { + return null; + } + if ("getCallbacks".equals(str)) { + Class d = jVar.d(); + boolean z2 = false; + if (d.isArray()) { + String name = d.getComponentType().getName(); + if (name.contains(".cglib") && (name.startsWith("net.sf.cglib") || name.startsWith("org.hibernate.repackage.cglib") || name.startsWith("org.springframework.cglib"))) { + z2 = true; + } + } + if (z2) { + return null; + } + } else if ("getMetaClass".equals(str) && jVar.d().getName().startsWith("groovy.lang")) { + return null; + } + return this.f681b ? e(str, this.c.length()) : d(str, this.c.length()); + } + + public String d(String str, int i) { + int length = str.length(); + if (length == i) { + return null; + } + char charAt = str.charAt(i); + a aVar = this.a; + if (aVar != null && !aVar.a(charAt, str, i)) { + return null; + } + char lowerCase = Character.toLowerCase(charAt); + if (charAt == lowerCase) { + return str.substring(i); + } + StringBuilder sb = new StringBuilder(length - i); + sb.append(lowerCase); + while (true) { + i++; + if (i >= length) { + break; + } + char charAt2 = str.charAt(i); + char lowerCase2 = Character.toLowerCase(charAt2); + if (charAt2 == lowerCase2) { + sb.append((CharSequence) str, i, length); + break; + } + sb.append(lowerCase2); + } + return sb.toString(); + } + + public String e(String str, int i) { + int length = str.length(); + if (length == i) { + return null; + } + char charAt = str.charAt(i); + a aVar = this.a; + if (aVar != null && !aVar.a(charAt, str, i)) { + return null; + } + char lowerCase = Character.toLowerCase(charAt); + if (charAt == lowerCase) { + return str.substring(i); + } + int i2 = i + 1; + if (i2 < length && Character.isUpperCase(str.charAt(i2))) { + return str.substring(i); + } + StringBuilder sb = new StringBuilder(length - i); + sb.append(lowerCase); + sb.append((CharSequence) str, i2, length); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/x.java b/app/src/main/java/b/g/a/c/c0/x.java new file mode 100644 index 0000000000..0b2ebfe8c5 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/x.java @@ -0,0 +1,1020 @@ +package b.g.a.c.c0; + +import b.g.a.a.a0; +import b.g.a.a.b; +import b.g.a.a.b0; +import b.g.a.a.c0; +import b.g.a.a.d; +import b.g.a.a.d0; +import b.g.a.a.e0; +import b.g.a.a.f; +import b.g.a.a.f0; +import b.g.a.a.g; +import b.g.a.a.g0; +import b.g.a.a.h0; +import b.g.a.a.i; +import b.g.a.a.k0; +import b.g.a.a.n; +import b.g.a.a.o; +import b.g.a.a.p; +import b.g.a.a.q; +import b.g.a.a.r; +import b.g.a.a.s; +import b.g.a.a.t; +import b.g.a.a.u; +import b.g.a.a.v; +import b.g.a.a.w; +import b.g.a.a.y; +import b.g.a.a.z; +import b.g.a.c.b; +import b.g.a.c.c0.g0; +import b.g.a.c.g0.t.a; +import b.g.a.c.i0.e; +import b.g.a.c.i0.h; +import b.g.a.c.i0.k; +import b.g.a.c.i0.m; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.p; +import b.g.a.c.y.b; +import b.g.a.c.y.c; +import b.g.a.c.y.e; +import b.g.a.c.z.l; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.Serializable; +import java.lang.annotation.Annotation; +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Objects; +/* compiled from: JacksonAnnotationIntrospector */ +public class x extends b implements Serializable { + public static final Class[] j = {e.class, g0.class, i.class, c0.class, b.g.a.a.x.class, e0.class, f.class, s.class}; + public static final Class[] k = {c.class, g0.class, i.class, c0.class, e0.class, f.class, s.class, t.class}; + public static final b.g.a.c.b0.c l; + private static final long serialVersionUID = 1; + public boolean _cfgConstructorPropertiesImpliesCreator = true; + public transient h, Boolean> m = new h<>(48, 48); + + static { + b.g.a.c.b0.c cVar; + try { + cVar = b.g.a.c.b0.c.a; + } catch (Throwable unused) { + cVar = null; + } + l = cVar; + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:14:0x002f */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.g.a.c.b + public q.a A(l lVar, b bVar) { + ?? r0; + q qVar = (q) bVar.b(q.class); + if (qVar == null) { + return q.a.j; + } + String[] value = qVar.value(); + if (value == null || value.length == 0) { + r0 = Collections.emptySet(); + } else { + r0 = new HashSet(value.length); + for (String str : value) { + r0.add(str); + } + } + return new q.a(r0); + } + + @Override // b.g.a.c.b + public Integer B(b bVar) { + int index; + u uVar = (u) bVar.b(u.class); + if (uVar == null || (index = uVar.index()) == -1) { + return null; + } + return Integer.valueOf(index); + } + + @Override // b.g.a.c.b + public b.g.a.c.e0.f C(l lVar, i iVar, j jVar) { + if (jVar.v() || jVar.b()) { + return null; + } + return h0(lVar, iVar, jVar); + } + + @Override // b.g.a.c.b + public b.a D(i iVar) { + s sVar = (s) iVar.b(s.class); + if (sVar != null) { + return new b.a(1, sVar.value()); + } + f fVar = (f) iVar.b(f.class); + if (fVar != null) { + return new b.a(2, fVar.value()); + } + return null; + } + + @Override // b.g.a.c.b + public b.g.a.c.t E(l lVar, g gVar, b.g.a.c.t tVar) { + return null; + } + + @Override // b.g.a.c.b + public b.g.a.c.t F(c cVar) { + y yVar = (y) cVar.b(y.class); + String str = null; + if (yVar == null) { + return null; + } + String namespace = yVar.namespace(); + if (namespace == null || !namespace.isEmpty()) { + str = namespace; + } + return b.g.a.c.t.b(yVar.value(), str); + } + + @Override // b.g.a.c.b + public Object G(i iVar) { + Class g02; + e eVar = (e) iVar.b(e.class); + if (eVar == null || (g02 = g0(eVar.contentConverter())) == null || g02 == e.a.class) { + return null; + } + return g02; + } + + @Override // b.g.a.c.b + public Object H(b bVar) { + Class g02; + b.g.a.c.y.e eVar = (b.g.a.c.y.e) bVar.b(b.g.a.c.y.e.class); + if (eVar == null || (g02 = g0(eVar.converter())) == null || g02 == e.a.class) { + return null; + } + return g02; + } + + @Override // b.g.a.c.b + public String[] I(c cVar) { + w wVar = (w) cVar.b(w.class); + if (wVar == null) { + return null; + } + return wVar.value(); + } + + @Override // b.g.a.c.b + public Boolean J(b bVar) { + w wVar = (w) bVar.b(w.class); + if (wVar == null || !wVar.alphabetic()) { + return null; + } + return Boolean.TRUE; + } + + @Override // b.g.a.c.b + public e.b K(b bVar) { + b.g.a.c.y.e eVar = (b.g.a.c.y.e) bVar.b(b.g.a.c.y.e.class); + if (eVar == null) { + return null; + } + return eVar.typing(); + } + + @Override // b.g.a.c.b + public Object L(b bVar) { + Class using; + b.g.a.c.y.e eVar = (b.g.a.c.y.e) bVar.b(b.g.a.c.y.e.class); + if (eVar != null && (using = eVar.using()) != n.a.class) { + return using; + } + b.g.a.a.x xVar = (b.g.a.a.x) bVar.b(b.g.a.a.x.class); + if (xVar == null || !xVar.value()) { + return null; + } + return new b.g.a.c.g0.u.e0(bVar.d()); + } + + @Override // b.g.a.c.b + public z.a M(b bVar) { + z zVar = (z) bVar.b(z.class); + if (zVar == null) { + return z.a.j; + } + h0 nulls = zVar.nulls(); + h0 contentNulls = zVar.contentNulls(); + h0 h0Var = h0.DEFAULT; + if (nulls == null) { + nulls = h0Var; + } + if (contentNulls == null) { + contentNulls = h0Var; + } + return nulls == h0Var && contentNulls == h0Var ? z.a.j : new z.a(nulls, contentNulls); + } + + @Override // b.g.a.c.b + public List N(b bVar) { + a0 a0Var = (a0) bVar.b(a0.class); + if (a0Var == null) { + return null; + } + a0.a[] value = a0Var.value(); + ArrayList arrayList = new ArrayList(value.length); + for (a0.a aVar : value) { + arrayList.add(new b.g.a.c.e0.b(aVar.value(), aVar.name())); + for (String str : aVar.names()) { + arrayList.add(new b.g.a.c.e0.b(aVar.value(), str)); + } + } + return arrayList; + } + + @Override // b.g.a.c.b + public String O(c cVar) { + d0 d0Var = (d0) cVar.b(d0.class); + if (d0Var == null) { + return null; + } + return d0Var.value(); + } + + @Override // b.g.a.c.b + public b.g.a.c.e0.f P(l lVar, c cVar, j jVar) { + return h0(lVar, cVar, jVar); + } + + @Override // b.g.a.c.b + public b.g.a.c.i0.n Q(i iVar) { + e0 e0Var = (e0) iVar.b(e0.class); + if (e0Var == null || !e0Var.enabled()) { + return null; + } + String prefix = e0Var.prefix(); + String suffix = e0Var.suffix(); + boolean z2 = false; + boolean z3 = prefix != null && !prefix.isEmpty(); + if (suffix != null && !suffix.isEmpty()) { + z2 = true; + } + return z3 ? z2 ? new k(prefix, suffix) : new b.g.a.c.i0.l(prefix) : z2 ? new m(suffix) : b.g.a.c.i0.n.j; + } + + @Override // b.g.a.c.b + public Class[] R(b bVar) { + g0 g0Var = (g0) bVar.b(g0.class); + if (g0Var == null) { + return null; + } + return g0Var.value(); + } + + @Override // b.g.a.c.b + public Boolean S(b bVar) { + b.g.a.a.c cVar = (b.g.a.a.c) bVar.b(b.g.a.a.c.class); + if (cVar == null) { + return null; + } + return Boolean.valueOf(cVar.enabled()); + } + + @Override // b.g.a.c.b + @Deprecated + public boolean T(j jVar) { + return jVar.k(b.g.a.a.c.class); + } + + @Override // b.g.a.c.b + public Boolean U(b bVar) { + d dVar = (d) bVar.b(d.class); + if (dVar == null) { + return null; + } + return Boolean.valueOf(dVar.enabled()); + } + + @Override // b.g.a.c.b + public Boolean V(l lVar, b bVar) { + r rVar = (r) bVar.b(r.class); + if (rVar == null) { + return null; + } + return Boolean.valueOf(rVar.value()); + } + + @Override // b.g.a.c.b + public Boolean W(b bVar) { + f0 f0Var = (f0) bVar.b(f0.class); + if (f0Var == null) { + return null; + } + return Boolean.valueOf(f0Var.value()); + } + + @Override // b.g.a.c.b + @Deprecated + public boolean X(j jVar) { + f0 f0Var = (f0) jVar.b(f0.class); + return f0Var != null && f0Var.value(); + } + + @Override // b.g.a.c.b + @Deprecated + public boolean Y(b bVar) { + b.g.a.c.b0.c cVar; + Boolean c; + g gVar = (g) bVar.b(g.class); + if (gVar != null) { + return gVar.mode() != g.a.DISABLED; + } + if (!this._cfgConstructorPropertiesImpliesCreator || !(bVar instanceof e) || (cVar = l) == null || (c = cVar.c(bVar)) == null) { + return false; + } + return c.booleanValue(); + } + + @Override // b.g.a.c.b + public boolean Z(i iVar) { + Boolean b2; + b.g.a.a.m mVar = (b.g.a.a.m) iVar.b(b.g.a.a.m.class); + if (mVar != null) { + return mVar.value(); + } + b.g.a.c.b0.c cVar = l; + if (cVar == null || (b2 = cVar.b(iVar)) == null) { + return false; + } + return b2.booleanValue(); + } + + @Override // b.g.a.c.b + public void a(l lVar, c cVar, List list) { + b.g.a.c.y.b bVar = (b.g.a.c.y.b) cVar.t.a(b.g.a.c.y.b.class); + if (bVar != null) { + boolean prepend = bVar.prepend(); + b.a[] attrs = bVar.attrs(); + int length = attrs.length; + b.g.a.c.h0.c cVar2 = null; + j jVar = null; + int i = 0; + while (i < length) { + if (jVar == null) { + jVar = lVar._base._typeFactory.b(cVar2, Object.class, b.g.a.c.h0.n.l); + } + b.a aVar = attrs[i]; + b.g.a.c.s sVar = aVar.required() ? b.g.a.c.s.j : b.g.a.c.s.k; + String value = aVar.value(); + b.g.a.c.t j02 = j0(aVar.propName(), aVar.propNamespace()); + if (!j02.c()) { + j02 = b.g.a.c.t.a(value); + } + a aVar2 = new a(value, b.g.a.c.i0.q.w(lVar, new f0(cVar, cVar.l, value, jVar), j02, sVar, aVar.include()), cVar.t, jVar); + if (prepend) { + list.add(i, aVar2); + } else { + list.add(aVar2); + } + i++; + cVar2 = null; + } + b.AbstractC0075b[] props = bVar.props(); + int length2 = props.length; + for (int i2 = 0; i2 < length2; i2++) { + b.AbstractC0075b bVar2 = props[i2]; + b.g.a.c.s sVar2 = bVar2.required() ? b.g.a.c.s.j : b.g.a.c.s.k; + b.g.a.c.t j03 = j0(bVar2.name(), bVar2.namespace()); + j d = lVar.d(bVar2.type()); + b.g.a.c.i0.q w = b.g.a.c.i0.q.w(lVar, new f0(cVar, cVar.l, j03._simpleName, d), j03, sVar2, bVar2.include()); + Class value2 = bVar2.value(); + Objects.requireNonNull(lVar._base); + b.g.a.c.g0.s k2 = ((b.g.a.c.g0.s) b.g.a.c.i0.d.g(value2, lVar.b())).k(lVar, cVar, w, d); + if (prepend) { + list.add(i2, k2); + } else { + list.add(k2); + } + } + } + } + + @Override // b.g.a.c.b + public Boolean a0(i iVar) { + u uVar = (u) iVar.b(u.class); + if (uVar != null) { + return Boolean.valueOf(uVar.required()); + } + return null; + } + + @Override // b.g.a.c.b + public g0 b(c cVar, g0 g0Var) { + b.g.a.a.e eVar = (b.g.a.a.e) cVar.b(b.g.a.a.e.class); + if (eVar == null) { + return g0Var; + } + g0.a aVar = (g0.a) g0Var; + Objects.requireNonNull(aVar); + return aVar.b(aVar.a(aVar._getterMinLevel, eVar.getterVisibility()), aVar.a(aVar._isGetterMinLevel, eVar.isGetterVisibility()), aVar.a(aVar._setterMinLevel, eVar.setterVisibility()), aVar.a(aVar._creatorMinLevel, eVar.creatorVisibility()), aVar.a(aVar._fieldMinLevel, eVar.fieldVisibility())); + } + + @Override // b.g.a.c.b + public boolean b0(Annotation annotation) { + Class annotationType = annotation.annotationType(); + Boolean bool = this.m.get(annotationType); + if (bool == null) { + bool = Boolean.valueOf(annotationType.getAnnotation(b.g.a.a.a.class) != null); + this.m.putIfAbsent(annotationType, bool); + } + return bool.booleanValue(); + } + + @Override // b.g.a.c.b + public Object c(b bVar) { + Class contentUsing; + b.g.a.c.y.e eVar = (b.g.a.c.y.e) bVar.b(b.g.a.c.y.e.class); + if (eVar == null || (contentUsing = eVar.contentUsing()) == n.a.class) { + return null; + } + return contentUsing; + } + + @Override // b.g.a.c.b + public Boolean c0(c cVar) { + o oVar = (o) cVar.b(o.class); + if (oVar == null) { + return null; + } + return Boolean.valueOf(oVar.value()); + } + + @Override // b.g.a.c.b + public g.a d(l lVar, b bVar) { + b.g.a.c.b0.c cVar; + Boolean c; + g gVar = (g) bVar.b(g.class); + if (gVar != null) { + return gVar.mode(); + } + if (!this._cfgConstructorPropertiesImpliesCreator || !lVar.q(p.INFER_CREATOR_FROM_CONSTRUCTOR_PROPERTIES) || !(bVar instanceof e) || (cVar = l) == null || (c = cVar.c(bVar)) == null || !c.booleanValue()) { + return null; + } + return g.a.PROPERTIES; + } + + @Override // b.g.a.c.b + public Boolean d0(i iVar) { + return Boolean.valueOf(iVar.k(b0.class)); + } + + @Override // b.g.a.c.b + @Deprecated + public g.a e(b bVar) { + g gVar = (g) bVar.b(g.class); + if (gVar == null) { + return null; + } + return gVar.mode(); + } + + @Override // b.g.a.c.b + public j e0(l lVar, b bVar, j jVar) throws JsonMappingException { + j jVar2; + j jVar3; + b.g.a.c.h0.n nVar = lVar._base._typeFactory; + b.g.a.c.y.e eVar = (b.g.a.c.y.e) bVar.b(b.g.a.c.y.e.class); + Class g02 = eVar == null ? null : g0(eVar.as()); + if (g02 != null) { + Class cls = jVar._class; + if (cls == g02) { + jVar = jVar.G(); + } else { + try { + if (g02.isAssignableFrom(cls)) { + jVar = nVar.g(jVar, g02); + } else if (cls.isAssignableFrom(g02)) { + jVar = nVar.h(jVar, g02, false); + } else if (i0(cls, g02)) { + jVar = jVar.G(); + } else { + throw new JsonMappingException(null, String.format("Cannot refine serialization type %s into %s; types not related", jVar, g02.getName())); + } + } catch (IllegalArgumentException e) { + throw new JsonMappingException(null, String.format("Failed to widen type %s with annotation (value %s), from '%s': %s", jVar, g02.getName(), bVar.c(), e.getMessage()), e); + } + } + } + if (jVar.z()) { + j o = jVar.o(); + Class g03 = eVar == null ? null : g0(eVar.keyAs()); + if (g03 != null) { + Class cls2 = o._class; + if (cls2 == g03) { + jVar3 = o.G(); + } else { + try { + if (g03.isAssignableFrom(cls2)) { + jVar3 = nVar.g(o, g03); + } else if (cls2.isAssignableFrom(g03)) { + jVar3 = nVar.h(o, g03, false); + } else if (i0(cls2, g03)) { + jVar3 = o.G(); + } else { + throw new JsonMappingException(null, String.format("Cannot refine serialization key type %s into %s; types not related", o, g03.getName())); + } + } catch (IllegalArgumentException e2) { + throw new JsonMappingException(null, String.format("Failed to widen key type of %s with concrete-type annotation (value %s), from '%s': %s", jVar, g03.getName(), bVar.c(), e2.getMessage()), e2); + } + } + jVar = ((b.g.a.c.h0.f) jVar).M(jVar3); + } + } + j k2 = jVar.k(); + if (k2 == null) { + return jVar; + } + Class g04 = eVar == null ? null : g0(eVar.contentAs()); + if (g04 == null) { + return jVar; + } + Class cls3 = k2._class; + if (cls3 == g04) { + jVar2 = k2.G(); + } else { + try { + if (g04.isAssignableFrom(cls3)) { + jVar2 = nVar.g(k2, g04); + } else if (cls3.isAssignableFrom(g04)) { + jVar2 = nVar.h(k2, g04, false); + } else if (i0(cls3, g04)) { + jVar2 = k2.G(); + } else { + throw new JsonMappingException(null, String.format("Cannot refine serialization content type %s into %s; types not related", k2, g04.getName())); + } + } catch (IllegalArgumentException e3) { + throw new JsonMappingException(null, String.format("Internal error: failed to refine value type of %s with concrete-type annotation (value %s), from '%s': %s", jVar, g04.getName(), bVar.c(), e3.getMessage()), e3); + } + } + return jVar.D(jVar2); + } + + @Override // b.g.a.c.b + public String[] f(Class cls, Enum[] enumArr, String[] strArr) { + u uVar; + Field[] declaredFields = cls.getDeclaredFields(); + HashMap hashMap = null; + for (Field field : declaredFields) { + if (field.isEnumConstant() && (uVar = (u) field.getAnnotation(u.class)) != null) { + String value = uVar.value(); + if (!value.isEmpty()) { + if (hashMap == null) { + hashMap = new HashMap(); + } + hashMap.put(field.getName(), value); + } + } + } + if (hashMap != null) { + int length = enumArr.length; + for (int i = 0; i < length; i++) { + String str = (String) hashMap.get(enumArr[i].name()); + if (str != null) { + strArr[i] = str; + } + } + } + return strArr; + } + + @Override // b.g.a.c.b + public j f0(l lVar, j jVar, j jVar2) { + Class p = jVar.p(0); + Class p2 = jVar2.p(0); + if (p.isPrimitive()) { + if (!p2.isPrimitive()) { + return jVar; + } + } else if (p2.isPrimitive()) { + return jVar2; + } + if (p == String.class) { + if (p2 != String.class) { + return jVar; + } + return null; + } else if (p2 == String.class) { + return jVar2; + } else { + return null; + } + } + + @Override // b.g.a.c.b + public Object g(b bVar) { + b.g.a.a.h hVar = (b.g.a.a.h) bVar.b(b.g.a.a.h.class); + if (hVar == null) { + return null; + } + String value = hVar.value(); + if (!value.isEmpty()) { + return value; + } + return null; + } + + public Class g0(Class cls) { + if (cls == null || b.g.a.c.i0.d.p(cls)) { + return null; + } + return cls; + } + + @Override // b.g.a.c.b + public i.d h(b bVar) { + i iVar = (i) bVar.b(i.class); + if (iVar == null) { + return null; + } + String pattern = iVar.pattern(); + i.c shape = iVar.shape(); + String locale = iVar.locale(); + String timezone = iVar.timezone(); + i.a[] with = iVar.with(); + i.a[] without = iVar.without(); + int i = 0; + for (i.a aVar : with) { + i |= 1 << aVar.ordinal(); + } + int i2 = 0; + for (i.a aVar2 : without) { + i2 |= 1 << aVar2.ordinal(); + } + return new i.d(pattern, shape, locale, timezone, new i.b(i, i2), iVar.lenient().f()); + } + + public b.g.a.c.e0.f h0(l lVar, b bVar, j jVar) { + b.g.a.c.e0.f fVar; + c0 c0Var = (c0) bVar.b(c0.class); + b.g.a.c.y.g gVar = (b.g.a.c.y.g) bVar.b(b.g.a.c.y.g.class); + b.g.a.c.e0.e eVar = null; + if (gVar != null) { + if (c0Var == null) { + return null; + } + Class> value = gVar.value(); + Objects.requireNonNull(lVar._base); + fVar = (b.g.a.c.e0.f) b.g.a.c.i0.d.g(value, lVar.b()); + } else if (c0Var == null) { + return null; + } else { + c0.b use = c0Var.use(); + c0.b bVar2 = c0.b.NONE; + if (use == bVar2) { + b.g.a.c.e0.h.j jVar2 = new b.g.a.c.e0.h.j(); + jVar2.g(bVar2, null); + return jVar2; + } + fVar = new b.g.a.c.e0.h.j(); + } + b.g.a.c.y.f fVar2 = (b.g.a.c.y.f) bVar.b(b.g.a.c.y.f.class); + if (fVar2 != null) { + Class value2 = fVar2.value(); + Objects.requireNonNull(lVar._base); + eVar = (b.g.a.c.e0.e) b.g.a.c.i0.d.g(value2, lVar.b()); + } + if (eVar != null) { + eVar.b(jVar); + } + b.g.a.c.e0.f b2 = fVar.b(c0Var.use(), eVar); + c0.a include = c0Var.include(); + if (include == c0.a.EXTERNAL_PROPERTY && (bVar instanceof c)) { + include = c0.a.PROPERTY; + } + b.g.a.c.e0.f c = b2.f(include).c(c0Var.property()); + Class defaultImpl = c0Var.defaultImpl(); + if (defaultImpl != c0.c.class && !defaultImpl.isAnnotation()) { + c = c.d(defaultImpl); + } + return c.a(c0Var.visible()); + } + + /* JADX WARNING: Code restructure failed: missing block: B:7:0x0013, code lost: + if (r3 != null) goto L_0x0017; + */ + @Override // b.g.a.c.b + public String i(i iVar) { + b.g.a.c.t tVar; + if (iVar instanceof m) { + m mVar = (m) iVar; + if (mVar._owner != null) { + b.g.a.c.b0.c cVar = l; + if (cVar != null) { + tVar = cVar.a(mVar); + } + } + } + tVar = null; + if (tVar == null) { + return null; + } + return tVar._simpleName; + } + + public final boolean i0(Class cls, Class cls2) { + return cls.isPrimitive() ? cls == b.g.a.c.i0.d.v(cls2) : cls2.isPrimitive() && cls2 == b.g.a.c.i0.d.v(cls); + } + + @Override // b.g.a.c.b + public b.a j(i iVar) { + String str; + b.g.a.a.b bVar = (b.g.a.a.b) iVar.b(b.g.a.a.b.class); + if (bVar == null) { + return null; + } + b.a a = b.a.a(bVar.value(), bVar.useInput().f()); + if (a._id != null) { + return a; + } + if (!(iVar instanceof j)) { + str = iVar.d().getName(); + } else { + j jVar = (j) iVar; + str = jVar.o() == 0 ? iVar.d().getName() : jVar.p(0).getName(); + } + return str.equals(a._id) ? a : new b.a(str, a._useInput); + } + + public b.g.a.c.t j0(String str, String str2) { + return str.isEmpty() ? b.g.a.c.t.j : (str2 == null || str2.isEmpty()) ? b.g.a.c.t.a(str) : b.g.a.c.t.b(str, str2); + } + + @Override // b.g.a.c.b + @Deprecated + public Object k(i iVar) { + b.a j2 = j(iVar); + if (j2 == null) { + return null; + } + return j2._id; + } + + @Override // b.g.a.c.b + public Object l(b bVar) { + Class keyUsing; + b.g.a.c.y.e eVar = (b.g.a.c.y.e) bVar.b(b.g.a.c.y.e.class); + if (eVar == null || (keyUsing = eVar.keyUsing()) == n.a.class) { + return null; + } + return keyUsing; + } + + @Override // b.g.a.c.b + public Boolean m(b bVar) { + t tVar = (t) bVar.b(t.class); + if (tVar == null) { + return null; + } + return tVar.value().f(); + } + + @Override // b.g.a.c.b + public b.g.a.c.t n(b bVar) { + boolean z2; + z zVar = (z) bVar.b(z.class); + boolean z3 = false; + if (zVar != null) { + String value = zVar.value(); + if (!value.isEmpty()) { + return b.g.a.c.t.a(value); + } + z2 = true; + } else { + z2 = false; + } + u uVar = (u) bVar.b(u.class); + String str = null; + if (uVar != null) { + String namespace = uVar.namespace(); + if (namespace == null || !namespace.isEmpty()) { + str = namespace; + } + return b.g.a.c.t.b(uVar.value(), str); + } + if (!z2) { + Class[] clsArr = k; + p pVar = ((i) bVar).k; + if (pVar != null) { + z3 = pVar.b(clsArr); + } + if (!z3) { + return null; + } + } + return b.g.a.c.t.j; + } + + @Override // b.g.a.c.b + public b.g.a.c.t o(b bVar) { + boolean z2; + b.g.a.a.j jVar = (b.g.a.a.j) bVar.b(b.g.a.a.j.class); + boolean z3 = false; + if (jVar != null) { + String value = jVar.value(); + if (!value.isEmpty()) { + return b.g.a.c.t.a(value); + } + z2 = true; + } else { + z2 = false; + } + u uVar = (u) bVar.b(u.class); + String str = null; + if (uVar != null) { + String namespace = uVar.namespace(); + if (namespace == null || !namespace.isEmpty()) { + str = namespace; + } + return b.g.a.c.t.b(uVar.value(), str); + } + if (!z2) { + Class[] clsArr = j; + p pVar = ((i) bVar).k; + if (pVar != null) { + z3 = pVar.b(clsArr); + } + if (!z3) { + return null; + } + } + return b.g.a.c.t.j; + } + + @Override // b.g.a.c.b + public Object p(c cVar) { + b.g.a.c.y.d dVar = (b.g.a.c.y.d) cVar.b(b.g.a.c.y.d.class); + if (dVar == null) { + return null; + } + return dVar.value(); + } + + @Override // b.g.a.c.b + public Object q(b bVar) { + Class nullsUsing; + b.g.a.c.y.e eVar = (b.g.a.c.y.e) bVar.b(b.g.a.c.y.e.class); + if (eVar == null || (nullsUsing = eVar.nullsUsing()) == n.a.class) { + return null; + } + return nullsUsing; + } + + @Override // b.g.a.c.b + public a0 r(b bVar) { + b.g.a.a.k kVar = (b.g.a.a.k) bVar.b(b.g.a.a.k.class); + if (kVar == null || kVar.generator() == k0.class) { + return null; + } + return new a0(b.g.a.c.t.a(kVar.property()), kVar.scope(), kVar.generator(), false, kVar.resolver()); + } + + public Object readResolve() { + if (this.m == null) { + this.m = new h<>(48, 48); + } + return this; + } + + @Override // b.g.a.c.b + public a0 s(b bVar, a0 a0Var) { + b.g.a.a.l lVar = (b.g.a.a.l) bVar.b(b.g.a.a.l.class); + if (lVar == null) { + return a0Var; + } + if (a0Var == null) { + a0Var = a0.a; + } + boolean alwaysAsId = lVar.alwaysAsId(); + return a0Var.f == alwaysAsId ? a0Var : new a0(a0Var.f667b, a0Var.e, a0Var.c, alwaysAsId, a0Var.d); + } + + @Override // b.g.a.c.b + public u.a t(b bVar) { + u uVar = (u) bVar.b(u.class); + if (uVar != null) { + return uVar.access(); + } + return null; + } + + @Override // b.g.a.c.b + public b.g.a.c.e0.f u(l lVar, i iVar, j jVar) { + if (jVar.k() != null) { + return h0(lVar, iVar, jVar); + } + throw new IllegalArgumentException("Must call method with a container or reference type (got " + jVar + ")"); + } + + @Override // b.g.a.c.b + public String v(b bVar) { + u uVar = (u) bVar.b(u.class); + if (uVar == null) { + return null; + } + String defaultValue = uVar.defaultValue(); + if (defaultValue.isEmpty()) { + return null; + } + return defaultValue; + } + + @Override // b.g.a.c.b + public String w(b bVar) { + v vVar = (v) bVar.b(v.class); + if (vVar == null) { + return null; + } + return vVar.value(); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:14:0x0030 */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.g.a.c.b + public n.a x(l lVar, b bVar) { + ?? r1; + b.g.a.a.n nVar = (b.g.a.a.n) bVar.b(b.g.a.a.n.class); + if (nVar == null) { + return n.a.j; + } + n.a aVar = n.a.j; + String[] value = nVar.value(); + if (value == null || value.length == 0) { + r1 = Collections.emptySet(); + } else { + r1 = new HashSet(value.length); + for (String str : value) { + r1.add(str); + } + } + return n.a.c(r1, nVar.ignoreUnknown(), nVar.allowGetters(), nVar.allowSetters(), false); + } + + @Override // b.g.a.c.b + @Deprecated + public n.a y(b bVar) { + return x(null, bVar); + } + + @Override // b.g.a.c.b + public p.b z(b bVar) { + p.b bVar2; + b.g.a.c.y.e eVar; + p.b bVar3; + p.a aVar = p.a.USE_DEFAULTS; + b.g.a.a.p pVar = (b.g.a.a.p) bVar.b(b.g.a.a.p.class); + if (pVar == null) { + p.b bVar4 = p.b.j; + bVar2 = p.b.j; + } else { + p.b bVar5 = p.b.j; + p.a value = pVar.value(); + p.a content = pVar.content(); + if (value == aVar && content == aVar) { + bVar2 = p.b.j; + } else { + Class valueFilter = pVar.valueFilter(); + Class cls = null; + if (valueFilter == Void.class) { + valueFilter = null; + } + Class contentFilter = pVar.contentFilter(); + if (contentFilter != Void.class) { + cls = contentFilter; + } + bVar2 = new p.b(value, content, valueFilter, cls); + } + } + if (bVar2._valueInclusion != aVar || (eVar = (b.g.a.c.y.e) bVar.b(b.g.a.c.y.e.class)) == null) { + return bVar2; + } + int ordinal = eVar.include().ordinal(); + if (ordinal == 0) { + bVar3 = bVar2.b(p.a.ALWAYS); + } else if (ordinal == 1) { + bVar3 = bVar2.b(p.a.NON_NULL); + } else if (ordinal == 2) { + bVar3 = bVar2.b(p.a.NON_DEFAULT); + } else if (ordinal != 3) { + return bVar2; + } else { + bVar3 = bVar2.b(p.a.NON_EMPTY); + } + return bVar3; + } +} diff --git a/app/src/main/java/b/g/a/c/c0/y.java b/app/src/main/java/b/g/a/c/c0/y.java new file mode 100644 index 0000000000..ea41062097 --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/y.java @@ -0,0 +1,61 @@ +package b.g.a.c.c0; + +import b.d.b.a.a; +import java.lang.reflect.Constructor; +import java.lang.reflect.Method; +/* compiled from: MemberKey */ +public final class y { + public static final Class[] a = new Class[0]; + + /* renamed from: b reason: collision with root package name */ + public final String f682b; + public final Class[] c; + + public y(Constructor constructor) { + Class[] parameterTypes = constructor.getParameterTypes(); + this.f682b = ""; + this.c = parameterTypes == null ? a : parameterTypes; + } + + public y(Method method) { + String name = method.getName(); + Class[] parameterTypes = method.getParameterTypes(); + this.f682b = name; + this.c = parameterTypes == null ? a : parameterTypes; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != y.class) { + return false; + } + y yVar = (y) obj; + if (!this.f682b.equals(yVar.f682b)) { + return false; + } + Class[] clsArr = yVar.c; + int length = this.c.length; + if (clsArr.length != length) { + return false; + } + for (int i = 0; i < length; i++) { + if (clsArr[i] != this.c[i]) { + return false; + } + } + return true; + } + + public int hashCode() { + return this.f682b.hashCode() + this.c.length; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(this.f682b); + sb.append("("); + return a.A(sb, this.c.length, "-args)"); + } +} diff --git a/app/src/main/java/b/g/a/c/c0/z.java b/app/src/main/java/b/g/a/c/c0/z.java new file mode 100644 index 0000000000..5d6a956c7a --- /dev/null +++ b/app/src/main/java/b/g/a/c/c0/z.java @@ -0,0 +1,14 @@ +package b.g.a.c.c0; + +import b.g.a.c.b; +import java.io.Serializable; +/* compiled from: NopAnnotationIntrospector */ +public abstract class z extends b implements Serializable { + public static final z j = new a(); + private static final long serialVersionUID = 1; + + /* compiled from: NopAnnotationIntrospector */ + public static class a extends z { + private static final long serialVersionUID = 1; + } +} diff --git a/app/src/main/java/b/g/a/c/d.java b/app/src/main/java/b/g/a/c/d.java new file mode 100644 index 0000000000..32b24ba864 --- /dev/null +++ b/app/src/main/java/b/g/a/c/d.java @@ -0,0 +1,69 @@ +package b.g.a.c; + +import b.g.a.a.i; +import b.g.a.a.p; +import b.g.a.c.z.l; +import java.io.Serializable; +/* compiled from: BeanProperty */ +public interface d { + public static final i.d c = new i.d("", i.c.ANY, "", "", i.b.a, null); + + /* compiled from: BeanProperty */ + public static class a implements d, Serializable { + private static final long serialVersionUID = 1; + public final b.g.a.c.c0.i _member; + public final s _metadata; + public final t _name; + public final j _type; + public final t _wrapperName; + + public a(t tVar, j jVar, t tVar2, b.g.a.c.c0.i iVar, s sVar) { + this._name = tVar; + this._type = jVar; + this._wrapperName = tVar2; + this._metadata = sVar; + this._member = iVar; + } + + @Override // b.g.a.c.d + public i.d a(l lVar, Class cls) { + b.g.a.c.c0.i iVar; + i.d h; + i.d i = lVar.i(cls); + b e = lVar.e(); + return (e == null || (iVar = this._member) == null || (h = e.h(iVar)) == null) ? i : i.k(h); + } + + @Override // b.g.a.c.d + public p.b b(l lVar, Class cls) { + b.g.a.c.c0.i iVar; + p.b z2; + p.b g = lVar.g(cls, this._type._class); + b e = lVar.e(); + return (e == null || (iVar = this._member) == null || (z2 = e.z(iVar)) == null) ? g : g.a(z2); + } + + @Override // b.g.a.c.d + public b.g.a.c.c0.i getMember() { + return this._member; + } + + @Override // b.g.a.c.d + public j getType() { + return this._type; + } + } + + static { + p.b bVar = p.b.j; + p.b bVar2 = p.b.j; + } + + i.d a(l lVar, Class cls); + + p.b b(l lVar, Class cls); + + b.g.a.c.c0.i getMember(); + + j getType(); +} diff --git a/app/src/main/java/b/g/a/c/d0/a.java b/app/src/main/java/b/g/a/c/d0/a.java new file mode 100644 index 0000000000..8a980bb383 --- /dev/null +++ b/app/src/main/java/b/g/a/c/d0/a.java @@ -0,0 +1,36 @@ +package b.g.a.c.d0; + +import java.lang.reflect.Method; +/* compiled from: JDK14Util */ +public class a { + public static final a a; + + /* renamed from: b reason: collision with root package name */ + public static final RuntimeException f683b; + public final Method c; + public final Method d; + + static { + RuntimeException e; + a aVar = null; + try { + e = null; + aVar = new a(); + } catch (RuntimeException e2) { + e = e2; + } + a = aVar; + f683b = e; + } + + public a() throws RuntimeException { + try { + this.c = Class.class.getMethod("getRecordComponents", new Class[0]); + Class cls = Class.forName("java.lang.reflect.RecordComponent"); + this.d = cls.getMethod("getName", new Class[0]); + cls.getMethod("getType", new Class[0]); + } catch (Exception e) { + throw new RuntimeException(String.format("Failed to access Methods needed to support `java.lang.Record`: (%s) %s", e.getClass().getName(), e.getMessage()), e); + } + } +} diff --git a/app/src/main/java/b/g/a/c/e.java b/app/src/main/java/b/g/a/c/e.java new file mode 100644 index 0000000000..a8c22ab8a7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e.java @@ -0,0 +1,65 @@ +package b.g.a.c; + +import b.d.b.a.a; +import b.g.a.a.i0; +import b.g.a.c.c0.a0; +import b.g.a.c.c0.b; +import b.g.a.c.h0.n; +import b.g.a.c.i0.d; +import b.g.a.c.i0.e; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.lang.reflect.Type; +import java.util.Objects; +/* compiled from: DatabindContext */ +public abstract class e { + public final String a(String str, Object... objArr) { + return objArr.length > 0 ? String.format(str, objArr) : str; + } + + public j b(Type type) { + if (type == null) { + return null; + } + return d().b(null, type, n.l); + } + + public b.g.a.c.i0.e c(b bVar, Object obj) throws JsonMappingException { + if (obj == null) { + return null; + } + if (obj instanceof b.g.a.c.i0.e) { + return (b.g.a.c.i0.e) obj; + } + if (obj instanceof Class) { + Class cls = (Class) obj; + if (cls == e.a.class || d.p(cls)) { + return null; + } + if (b.g.a.c.i0.e.class.isAssignableFrom(cls)) { + v vVar = ((x) this)._config; + Objects.requireNonNull(vVar._base); + return (b.g.a.c.i0.e) d.g(cls, vVar.b()); + } + throw new IllegalStateException(a.n(cls, a.R("AnnotationIntrospector returned Class "), "; expected Class")); + } + StringBuilder R = a.R("AnnotationIntrospector returned Converter definition of type "); + R.append(obj.getClass().getName()); + R.append("; expected type Converter or Class instead"); + throw new IllegalStateException(R.toString()); + } + + public abstract n d(); + + public i0 e(b bVar, a0 a0Var) throws JsonMappingException { + Class> cls = a0Var.c; + v vVar = ((x) this)._config; + Objects.requireNonNull(vVar._base); + return ((i0) d.g(cls, vVar.b())).b(a0Var.e); + } + + public abstract T f(j jVar, String str) throws JsonMappingException; + + public T g(Class cls, String str) throws JsonMappingException { + return (T) f(b(cls), str); + } +} diff --git a/app/src/main/java/b/g/a/c/e0/a.java b/app/src/main/java/b/g/a/c/e0/a.java new file mode 100644 index 0000000000..7a0b340285 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/a.java @@ -0,0 +1,7 @@ +package b.g.a.c.e0; + +import java.io.Serializable; +/* compiled from: DefaultBaseTypeLimitingValidator */ +public class a extends c implements Serializable { + private static final long serialVersionUID = 1; +} diff --git a/app/src/main/java/b/g/a/c/e0/b.java b/app/src/main/java/b/g/a/c/e0/b.java new file mode 100644 index 0000000000..118cd97828 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/b.java @@ -0,0 +1,46 @@ +package b.g.a.c.e0; + +import b.d.b.a.a; +import java.io.Serializable; +import java.util.Objects; +/* compiled from: NamedType */ +public final class b implements Serializable { + private static final long serialVersionUID = 1; + public final Class _class; + public final int _hashCode; + public String _name; + + public b(Class cls, String str) { + this._class = cls; + this._hashCode = cls.getName().hashCode() + (str == null ? 0 : str.hashCode()); + this._name = (str == null || str.isEmpty()) ? null : str; + } + + public boolean a() { + return this._name != null; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != b.class) { + return false; + } + b bVar = (b) obj; + return this._class == bVar._class && Objects.equals(this._name, bVar._name); + } + + @Override // java.lang.Object + public int hashCode() { + return this._hashCode; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("[NamedType, class "); + a.i0(this._class, R, ", name: "); + return a.H(R, this._name == null ? "null" : a.H(a.R("'"), this._name, "'"), "]"); + } +} diff --git a/app/src/main/java/b/g/a/c/e0/c.java b/app/src/main/java/b/g/a/c/e0/c.java new file mode 100644 index 0000000000..abab8db444 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/c.java @@ -0,0 +1,12 @@ +package b.g.a.c.e0; + +import java.io.Serializable; +/* compiled from: PolymorphicTypeValidator */ +public abstract class c implements Serializable { + private static final long serialVersionUID = 1; + + /* compiled from: PolymorphicTypeValidator */ + public static abstract class a extends c implements Serializable { + private static final long serialVersionUID = 1; + } +} diff --git a/app/src/main/java/b/g/a/c/e0/d.java b/app/src/main/java/b/g/a/c/e0/d.java new file mode 100644 index 0000000000..35530614a9 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/d.java @@ -0,0 +1,10 @@ +package b.g.a.c.e0; + +import b.g.a.c.c0.i; +import b.g.a.c.j; +import b.g.a.c.z.l; +import java.util.Collection; +/* compiled from: SubtypeResolver */ +public abstract class d { + public abstract Collection a(l lVar, i iVar, j jVar); +} diff --git a/app/src/main/java/b/g/a/c/e0/e.java b/app/src/main/java/b/g/a/c/e0/e.java new file mode 100644 index 0000000000..9ee3c22e21 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/e.java @@ -0,0 +1,11 @@ +package b.g.a.c.e0; + +import b.g.a.c.j; +/* compiled from: TypeIdResolver */ +public interface e { + String a(Object obj); + + void b(j jVar); + + String c(Object obj, Class cls); +} diff --git a/app/src/main/java/b/g/a/c/e0/f.java b/app/src/main/java/b/g/a/c/e0/f.java new file mode 100644 index 0000000000..321e23e088 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/f.java @@ -0,0 +1,21 @@ +package b.g.a.c.e0; + +import b.g.a.a.c0; +import b.g.a.c.e0.f; +import b.g.a.c.j; +import b.g.a.c.v; +import java.util.Collection; +/* compiled from: TypeResolverBuilder */ +public interface f> { + T a(boolean z2); + + T b(c0.b bVar, e eVar); + + T c(String str); + + T d(Class cls); + + g e(v vVar, j jVar, Collection collection); + + T f(c0.a aVar); +} diff --git a/app/src/main/java/b/g/a/c/e0/g.java b/app/src/main/java/b/g/a/c/e0/g.java new file mode 100644 index 0000000000..06a9c74d34 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/g.java @@ -0,0 +1,43 @@ +package b.g.a.c.e0; + +import b.g.a.a.c0; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.b.t.m; +import b.g.a.c.d; +import java.io.IOException; +/* compiled from: TypeSerializer */ +public abstract class g { + public abstract g a(d dVar); + + public abstract String b(); + + public abstract c0.a c(); + + public b d(Object obj, h hVar) { + b bVar = new b(obj, hVar); + int ordinal = c().ordinal(); + if (ordinal == 0) { + bVar.e = 3; + bVar.d = b(); + } else if (ordinal == 1) { + bVar.e = 2; + } else if (ordinal == 2) { + bVar.e = 1; + } else if (ordinal == 3) { + bVar.e = 5; + bVar.d = b(); + } else if (ordinal == 4) { + bVar.e = 4; + bVar.d = b(); + } else { + int i = m.a; + throw new RuntimeException("Internal error: this code path should never get executed"); + } + return bVar; + } + + public abstract b e(b.g.a.b.d dVar, b bVar) throws IOException; + + public abstract b f(b.g.a.b.d dVar, b bVar) throws IOException; +} diff --git a/app/src/main/java/b/g/a/c/e0/h/a.java b/app/src/main/java/b/g/a/c/e0/h/a.java new file mode 100644 index 0000000000..4d20ac9a90 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/a.java @@ -0,0 +1,21 @@ +package b.g.a.c.e0.h; + +import b.g.a.a.c0; +import b.g.a.c.d; +import b.g.a.c.e0.e; +/* compiled from: AsArrayTypeSerializer */ +public class a extends m { + public a(e eVar, d dVar) { + super(eVar, dVar); + } + + @Override // b.g.a.c.e0.g + public c0.a c() { + return c0.a.WRAPPER_ARRAY; + } + + /* renamed from: g */ + public a a(d dVar) { + return this.f685b == dVar ? this : new a(this.a, dVar); + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/b.java b/app/src/main/java/b/g/a/c/e0/h/b.java new file mode 100644 index 0000000000..e2ae288628 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/b.java @@ -0,0 +1,21 @@ +package b.g.a.c.e0.h; + +import b.g.a.a.c0; +import b.g.a.c.d; +import b.g.a.c.e0.e; +/* compiled from: AsExistingPropertyTypeSerializer */ +public class b extends d { + public b(e eVar, d dVar, String str) { + super(eVar, dVar, str); + } + + @Override // b.g.a.c.e0.h.d, b.g.a.c.e0.h.a, b.g.a.c.e0.g + public c0.a c() { + return c0.a.EXISTING_PROPERTY; + } + + /* renamed from: i */ + public b h(d dVar) { + return this.f685b == dVar ? this : new b(this.a, dVar, this.c); + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/c.java b/app/src/main/java/b/g/a/c/e0/h/c.java new file mode 100644 index 0000000000..6970e0046d --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/c.java @@ -0,0 +1,30 @@ +package b.g.a.c.e0.h; + +import b.g.a.a.c0; +import b.g.a.c.d; +import b.g.a.c.e0.e; +import b.g.a.c.e0.g; +/* compiled from: AsExternalTypeSerializer */ +public class c extends m { + public final String c; + + public c(e eVar, d dVar, String str) { + super(eVar, dVar); + this.c = str; + } + + @Override // b.g.a.c.e0.g + public g a(d dVar) { + return this.f685b == dVar ? this : new c(this.a, dVar, this.c); + } + + @Override // b.g.a.c.e0.h.m, b.g.a.c.e0.g + public String b() { + return this.c; + } + + @Override // b.g.a.c.e0.g + public c0.a c() { + return c0.a.EXTERNAL_PROPERTY; + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/d.java b/app/src/main/java/b/g/a/c/e0/h/d.java new file mode 100644 index 0000000000..73531f919c --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/d.java @@ -0,0 +1,28 @@ +package b.g.a.c.e0.h; + +import b.g.a.a.c0; +import b.g.a.c.e0.e; +/* compiled from: AsPropertyTypeSerializer */ +public class d extends a { + public final String c; + + public d(e eVar, b.g.a.c.d dVar, String str) { + super(eVar, dVar); + this.c = str; + } + + @Override // b.g.a.c.e0.h.m, b.g.a.c.e0.g + public String b() { + return this.c; + } + + @Override // b.g.a.c.e0.h.a, b.g.a.c.e0.g + public c0.a c() { + return c0.a.PROPERTY; + } + + /* renamed from: h */ + public d g(b.g.a.c.d dVar) { + return this.f685b == dVar ? this : new d(this.a, dVar, this.c); + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/e.java b/app/src/main/java/b/g/a/c/e0/h/e.java new file mode 100644 index 0000000000..81bf00d98e --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/e.java @@ -0,0 +1,21 @@ +package b.g.a.c.e0.h; + +import b.g.a.a.c0; +import b.g.a.c.d; +import b.g.a.c.e0.g; +/* compiled from: AsWrapperTypeSerializer */ +public class e extends m { + public e(b.g.a.c.e0.e eVar, d dVar) { + super(eVar, dVar); + } + + @Override // b.g.a.c.e0.g + public g a(d dVar) { + return this.f685b == dVar ? this : new e(this.a, dVar); + } + + @Override // b.g.a.c.e0.g + public c0.a c() { + return c0.a.WRAPPER_OBJECT; + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/f.java b/app/src/main/java/b/g/a/c/e0/h/f.java new file mode 100644 index 0000000000..ade4e69d08 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/f.java @@ -0,0 +1,154 @@ +package b.g.a.c.e0.h; + +import b.d.b.a.a; +import b.g.a.c.e0.c; +import b.g.a.c.h0.e; +import b.g.a.c.h0.g; +import b.g.a.c.h0.m; +import b.g.a.c.h0.n; +import b.g.a.c.i0.d; +import b.g.a.c.j; +import java.lang.reflect.Field; +import java.lang.reflect.TypeVariable; +import java.util.Collection; +import java.util.EnumMap; +import java.util.EnumSet; +import java.util.Map; +import java.util.Objects; +import java.util.Properties; +/* compiled from: ClassNameIdResolver */ +public class f extends k { + public f(j jVar, n nVar, c cVar) { + super(jVar, nVar); + } + + @Override // b.g.a.c.e0.e + public String a(Object obj) { + return d(obj, obj.getClass(), this.a); + } + + @Override // b.g.a.c.e0.e + public String c(Object obj, Class cls) { + return d(obj, cls, this.a); + } + + public String d(Object obj, Class cls, n nVar) { + Class cls2; + j jVar; + j jVar2; + m mVar; + Class cls3; + m mVar2; + Class superclass = (!d.q(cls) || cls.isEnum()) ? cls : cls.getSuperclass(); + String name = superclass.getName(); + if (!name.startsWith("java.util.")) { + return (name.indexOf(36) < 0 || d.m(superclass) == null || d.m(this.f684b._class) != null) ? name : this.f684b._class.getName(); + } + if (obj instanceof EnumSet) { + EnumSet enumSet = (EnumSet) obj; + if (!enumSet.isEmpty()) { + cls3 = ((Enum) enumSet.iterator().next()).getDeclaringClass(); + } else { + Field field = d.b.a.f714b; + if (field != null) { + try { + cls3 = (Class) field.get(enumSet); + } catch (Exception e) { + throw new IllegalArgumentException(e); + } + } else { + throw new IllegalStateException("Cannot figure out type for EnumSet (odd JDK platform?)"); + } + } + j c = nVar.c(null, cls3, n.l); + String[] strArr = m.j; + TypeVariable[] typeParameters = EnumSet.class.getTypeParameters(); + int length = typeParameters == null ? 0 : typeParameters.length; + if (length == 0) { + mVar2 = m.l; + } else if (length == 1) { + mVar2 = new m(new String[]{typeParameters[0].getName()}, new j[]{c}, null); + } else { + StringBuilder R = a.R("Cannot create TypeBindings for class "); + R.append(EnumSet.class.getName()); + R.append(" with 1 type parameter: class expects "); + R.append(length); + throw new IllegalArgumentException(R.toString()); + } + e eVar = (e) nVar.c(null, EnumSet.class, mVar2); + if (mVar2.i()) { + j k = eVar.i(Collection.class).k(); + if (!k.equals(c)) { + throw new IllegalArgumentException(String.format("Non-generic Collection class %s did not resolve to something with element type %s but %s ", d.u(EnumSet.class), c, k)); + } + } + return eVar.K(); + } else if (!(obj instanceof EnumMap)) { + return name; + } else { + EnumMap enumMap = (EnumMap) obj; + if (!enumMap.isEmpty()) { + cls2 = ((Enum) enumMap.keySet().iterator().next()).getDeclaringClass(); + } else { + Field field2 = d.b.a.c; + if (field2 != null) { + try { + cls2 = (Class) field2.get(enumMap); + } catch (Exception e2) { + throw new IllegalArgumentException(e2); + } + } else { + throw new IllegalStateException("Cannot figure out type for EnumMap (odd JDK platform?)"); + } + } + Objects.requireNonNull(nVar); + if (EnumMap.class == Properties.class) { + jVar2 = n.f710y; + jVar = jVar2; + } else { + m mVar3 = n.l; + jVar2 = nVar.c(null, cls2, mVar3); + jVar = nVar.c(null, Object.class, mVar3); + } + j[] jVarArr = {jVar2, jVar}; + String[] strArr2 = m.j; + TypeVariable[] typeParameters2 = EnumMap.class.getTypeParameters(); + if (typeParameters2 == null || typeParameters2.length == 0) { + mVar = m.l; + } else { + int length2 = typeParameters2.length; + String[] strArr3 = new String[length2]; + for (int i = 0; i < length2; i++) { + strArr3[i] = typeParameters2[i].getName(); + } + if (length2 == 2) { + mVar = new m(strArr3, jVarArr, null); + } else { + StringBuilder R2 = a.R("Cannot create TypeBindings for class "); + R2.append(EnumMap.class.getName()); + R2.append(" with "); + R2.append(2); + R2.append(" type parameter"); + R2.append("s"); + R2.append(": class expects "); + R2.append(length2); + throw new IllegalArgumentException(R2.toString()); + } + } + g gVar = (g) nVar.c(null, EnumMap.class, mVar); + if (mVar.i()) { + j i2 = gVar.i(Map.class); + j o = i2.o(); + if (o.equals(jVar2)) { + j k2 = i2.k(); + if (!k2.equals(jVar)) { + throw new IllegalArgumentException(String.format("Non-generic Map class %s did not resolve to something with value type %s but %s ", d.u(EnumMap.class), jVar, k2)); + } + } else { + throw new IllegalArgumentException(String.format("Non-generic Map class %s did not resolve to something with key type %s but %s ", d.u(EnumMap.class), jVar2, o)); + } + } + return gVar.K(); + } + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/g.java b/app/src/main/java/b/g/a/c/e0/h/g.java new file mode 100644 index 0000000000..ce000b23bc --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/g.java @@ -0,0 +1,8 @@ +package b.g.a.c.e0.h; + +import b.g.a.c.e0.c; +/* compiled from: LaissezFaireSubTypeValidator */ +public final class g extends c.a { + public static final g j = new g(); + private static final long serialVersionUID = 1; +} diff --git a/app/src/main/java/b/g/a/c/e0/h/h.java b/app/src/main/java/b/g/a/c/e0/h/h.java new file mode 100644 index 0000000000..79b05c3d6c --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/h.java @@ -0,0 +1,27 @@ +package b.g.a.c.e0.h; + +import b.g.a.c.e0.c; +import b.g.a.c.h0.n; +import b.g.a.c.j; +/* compiled from: MinimalClassNameIdResolver */ +public class h extends f { + public final String c; + + public h(j jVar, n nVar, c cVar) { + super(jVar, nVar, cVar); + String name = jVar._class.getName(); + int lastIndexOf = name.lastIndexOf(46); + if (lastIndexOf < 0) { + this.c = "."; + return; + } + this.c = name.substring(0, lastIndexOf + 1); + name.substring(0, lastIndexOf); + } + + @Override // b.g.a.c.e0.h.f, b.g.a.c.e0.e + public String a(Object obj) { + String name = obj.getClass().getName(); + return name.startsWith(this.c) ? name.substring(this.c.length() - 1) : name; + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/i.java b/app/src/main/java/b/g/a/c/e0/h/i.java new file mode 100644 index 0000000000..e399865dca --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/i.java @@ -0,0 +1,63 @@ +package b.g.a.c.e0.h; + +import b.g.a.c.c0.c; +import b.g.a.c.e0.b; +import b.g.a.c.e0.d; +import b.g.a.c.j; +import b.g.a.c.z.l; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashSet; +import java.util.List; +/* compiled from: StdSubtypeResolver */ +public class i extends d implements Serializable { + private static final long serialVersionUID = 1; + public LinkedHashSet _registeredSubtypes; + + @Override // b.g.a.c.e0.d + public Collection a(l lVar, b.g.a.c.c0.i iVar, j jVar) { + List N; + b.g.a.c.b e = lVar.e(); + Class d = jVar == null ? iVar.d() : jVar._class; + HashMap hashMap = new HashMap<>(); + LinkedHashSet linkedHashSet = this._registeredSubtypes; + if (linkedHashSet != null) { + Iterator it = linkedHashSet.iterator(); + while (it.hasNext()) { + b next = it.next(); + if (d.isAssignableFrom(next._class)) { + b(b.g.a.c.c0.d.h(lVar, next._class), next, lVar, e, hashMap); + } + } + } + if (!(iVar == null || (N = e.N(iVar)) == null)) { + for (b bVar : N) { + b(b.g.a.c.c0.d.h(lVar, bVar._class), bVar, lVar, e, hashMap); + } + } + b(b.g.a.c.c0.d.h(lVar, d), new b(d, null), lVar, e, hashMap); + return new ArrayList(hashMap.values()); + } + + public void b(c cVar, b bVar, l lVar, b.g.a.c.b bVar2, HashMap hashMap) { + String O; + if (!bVar.a() && (O = bVar2.O(cVar)) != null) { + bVar = new b(bVar._class, O); + } + b bVar3 = new b(bVar._class, null); + if (!hashMap.containsKey(bVar3)) { + hashMap.put(bVar3, bVar); + List N = bVar2.N(cVar); + if (!(N == null || N.isEmpty())) { + for (b bVar4 : N) { + b(b.g.a.c.c0.d.h(lVar, bVar4._class), bVar4, lVar, bVar2, hashMap); + } + } + } else if (bVar.a() && !hashMap.get(bVar3).a()) { + hashMap.put(bVar3, bVar); + } + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/j.java b/app/src/main/java/b/g/a/c/e0/h/j.java new file mode 100644 index 0000000000..37bd582789 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/j.java @@ -0,0 +1,135 @@ +package b.g.a.c.e0.h; + +import b.g.a.a.c0; +import b.g.a.c.e0.a; +import b.g.a.c.e0.b; +import b.g.a.c.e0.c; +import b.g.a.c.e0.e; +import b.g.a.c.e0.f; +import b.g.a.c.e0.g; +import b.g.a.c.p; +import b.g.a.c.v; +import java.util.Collection; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: StdTypeResolverBuilder */ +public class j implements f { + public e _customIdResolver; + public c0.b _idType; + public c0.a _includeAs; + public String _typeProperty; + + /* Return type fixed from 'b.g.a.c.e0.f' to match base method */ + @Override // b.g.a.c.e0.f + public j a(boolean z2) { + return this; + } + + /* Return type fixed from 'b.g.a.c.e0.f' to match base method */ + @Override // b.g.a.c.e0.f + public /* bridge */ /* synthetic */ j b(c0.b bVar, e eVar) { + g(bVar, eVar); + return this; + } + + /* Return type fixed from 'b.g.a.c.e0.f' to match base method */ + @Override // b.g.a.c.e0.f + public j c(String str) { + if (str == null || str.isEmpty()) { + str = this._idType.f(); + } + this._typeProperty = str; + return this; + } + + /* Return type fixed from 'b.g.a.c.e0.f' to match base method */ + @Override // b.g.a.c.e0.f + public j d(Class cls) { + return this; + } + + @Override // b.g.a.c.e0.f + public g e(v vVar, b.g.a.c.j jVar, Collection collection) { + if (this._idType == c0.b.NONE || jVar._class.isPrimitive()) { + return null; + } + c cVar = vVar._base._typeValidator; + if (cVar == g.j && vVar.q(p.BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES)) { + cVar = new a(); + } + e eVar = this._customIdResolver; + if (eVar == null) { + c0.b bVar = this._idType; + if (bVar != null) { + int ordinal = bVar.ordinal(); + if (ordinal != 0) { + if (ordinal != 1) { + if (ordinal == 2) { + eVar = new h(jVar, vVar._base._typeFactory, cVar); + } else if (ordinal == 3) { + ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap(); + vVar.q(p.ACCEPT_CASE_INSENSITIVE_VALUES); + if (collection != null) { + for (b bVar2 : collection) { + Class cls = bVar2._class; + concurrentHashMap.put(cls.getName(), bVar2.a() ? bVar2._name : l.d(cls)); + } + } + eVar = new l(vVar, jVar, concurrentHashMap, null); + } else if (ordinal != 4) { + StringBuilder R = b.d.b.a.a.R("Do not know how to construct standard type id resolver for idType: "); + R.append(this._idType); + throw new IllegalStateException(R.toString()); + } + } + eVar = new f(jVar, vVar._base._typeFactory, cVar); + } else { + eVar = null; + } + } else { + throw new IllegalStateException("Cannot build, 'init()' not yet called"); + } + } + if (this._idType == c0.b.DEDUCTION) { + return new b(eVar, null, this._typeProperty); + } + int ordinal2 = this._includeAs.ordinal(); + if (ordinal2 == 0) { + return new d(eVar, null, this._typeProperty); + } + if (ordinal2 == 1) { + return new e(eVar, null); + } + if (ordinal2 == 2) { + return new a(eVar, null); + } + if (ordinal2 == 3) { + return new c(eVar, null, this._typeProperty); + } + if (ordinal2 == 4) { + return new b(eVar, null, this._typeProperty); + } + StringBuilder R2 = b.d.b.a.a.R("Do not know how to construct standard type serializer for inclusion type: "); + R2.append(this._includeAs); + throw new IllegalStateException(R2.toString()); + } + + /* Return type fixed from 'b.g.a.c.e0.f' to match base method */ + @Override // b.g.a.c.e0.f + public j f(c0.a aVar) { + if (aVar != null) { + this._includeAs = aVar; + return this; + } + throw new IllegalArgumentException("includeAs cannot be null"); + } + + public j g(c0.b bVar, e eVar) { + if (bVar != null) { + this._idType = bVar; + this._customIdResolver = eVar; + this._typeProperty = bVar.f(); + return this; + } + throw new IllegalArgumentException("idType cannot be null"); + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/k.java b/app/src/main/java/b/g/a/c/e0/h/k.java new file mode 100644 index 0000000000..e19914cd5f --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/k.java @@ -0,0 +1,21 @@ +package b.g.a.c.e0.h; + +import b.g.a.c.e0.e; +import b.g.a.c.h0.n; +import b.g.a.c.j; +/* compiled from: TypeIdResolverBase */ +public abstract class k implements e { + public final n a; + + /* renamed from: b reason: collision with root package name */ + public final j f684b; + + public k(j jVar, n nVar) { + this.f684b = jVar; + this.a = nVar; + } + + @Override // b.g.a.c.e0.e + public void b(j jVar) { + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/l.java b/app/src/main/java/b/g/a/c/e0/h/l.java new file mode 100644 index 0000000000..69352b1fc0 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/l.java @@ -0,0 +1,62 @@ +package b.g.a.c.e0.h; + +import b.g.a.c.c0.q; +import b.g.a.c.h0.n; +import b.g.a.c.j; +import b.g.a.c.p; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: TypeNameIdResolver */ +public class l extends k { + public final b.g.a.c.z.l c; + public final ConcurrentHashMap d; + public final Map e; + + public l(b.g.a.c.z.l lVar, j jVar, ConcurrentHashMap concurrentHashMap, HashMap hashMap) { + super(jVar, lVar._base._typeFactory); + this.c = lVar; + this.d = concurrentHashMap; + this.e = hashMap; + lVar.q(p.ACCEPT_CASE_INSENSITIVE_VALUES); + } + + public static String d(Class cls) { + String name = cls.getName(); + int lastIndexOf = name.lastIndexOf(46); + return lastIndexOf < 0 ? name : name.substring(lastIndexOf + 1); + } + + @Override // b.g.a.c.e0.e + public String a(Object obj) { + return e(obj.getClass()); + } + + @Override // b.g.a.c.e0.e + public String c(Object obj, Class cls) { + return obj == null ? e(cls) : e(obj.getClass()); + } + + public String e(Class cls) { + if (cls == null) { + return null; + } + String name = cls.getName(); + String str = this.d.get(name); + if (str == null) { + Class cls2 = this.a.b(null, cls, n.l)._class; + if (this.c.p()) { + str = this.c.e().O(((q) this.c.o(cls2)).f); + } + if (str == null) { + str = d(cls2); + } + this.d.put(name, str); + } + return str; + } + + public String toString() { + return String.format("[%s; id-to-type=%s]", l.class.getName(), this.e); + } +} diff --git a/app/src/main/java/b/g/a/c/e0/h/m.java b/app/src/main/java/b/g/a/c/e0/h/m.java new file mode 100644 index 0000000000..e1514f1842 --- /dev/null +++ b/app/src/main/java/b/g/a/c/e0/h/m.java @@ -0,0 +1,95 @@ +package b.g.a.c.e0.h; + +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.d; +import b.g.a.c.e0.e; +import b.g.a.c.e0.g; +import java.io.IOException; +import java.util.Objects; +/* compiled from: TypeSerializerBase */ +public abstract class m extends g { + public final e a; + + /* renamed from: b reason: collision with root package name */ + public final d f685b; + + public m(e eVar, d dVar) { + this.a = eVar; + this.f685b = dVar; + } + + @Override // b.g.a.c.e0.g + public String b() { + return null; + } + + @Override // b.g.a.c.e0.g + public b e(b.g.a.b.d dVar, b bVar) throws IOException { + if (bVar.c == null) { + Object obj = bVar.a; + Class cls = bVar.f661b; + bVar.c = cls == null ? this.a.a(obj) : this.a.c(obj, cls); + } + Objects.requireNonNull(dVar); + Object obj2 = bVar.c; + h hVar = bVar.f; + String valueOf = obj2 instanceof String ? (String) obj2 : String.valueOf(obj2); + bVar.g = true; + int i = bVar.e; + h hVar2 = h.START_OBJECT; + if (hVar != hVar2) { + b.c.a.y.b.j(i); + if (i == 3 || i == 4) { + bVar.e = 1; + i = 1; + } + } + int h = b.c.a.y.b.h(i); + if (h == 1) { + dVar.c0(); + dVar.y(valueOf); + } else if (h == 2) { + dVar.d0(bVar.a); + dVar.y(bVar.d); + dVar.j0(valueOf); + return bVar; + } else if (!(h == 3 || h == 4)) { + dVar.W(); + dVar.j0(valueOf); + } + if (hVar == hVar2) { + dVar.d0(bVar.a); + } else if (hVar == h.START_ARRAY) { + dVar.W(); + } + return bVar; + } + + @Override // b.g.a.c.e0.g + public b f(b.g.a.b.d dVar, b bVar) throws IOException { + Objects.requireNonNull(dVar); + h hVar = bVar.f; + if (hVar == h.START_OBJECT) { + dVar.u(); + } else if (hVar == h.START_ARRAY) { + dVar.t(); + } + if (bVar.g) { + int h = b.c.a.y.b.h(bVar.e); + if (h == 0) { + dVar.t(); + } else if (!(h == 2 || h == 3)) { + if (h != 4) { + dVar.u(); + } else { + Object obj = bVar.c; + String valueOf = obj instanceof String ? (String) obj : String.valueOf(obj); + dVar.y(bVar.d); + dVar.j0(valueOf); + } + } + } + return bVar; + } +} diff --git a/app/src/main/java/b/g/a/c/f.java b/app/src/main/java/b/g/a/c/f.java new file mode 100644 index 0000000000..e44cb08a5a --- /dev/null +++ b/app/src/main/java/b/g/a/c/f.java @@ -0,0 +1,56 @@ +package b.g.a.c; + +import b.g.a.c.c0.d0; +import b.g.a.c.f0.a; +import b.g.a.c.i0.i; +import b.g.a.c.i0.p; +import b.g.a.c.z.d; +import b.g.a.c.z.g; +import b.g.a.c.z.h; +import b.g.a.c.z.l; +import b.g.a.c.z.m; +import java.io.Serializable; +/* compiled from: DeserializationConfig */ +public final class f extends m implements Serializable { + public static final int l = l.c(h.class); + private static final long serialVersionUID = 2; + public final d _coercionConfigs; + public final h _ctorDetector; + public final int _deserFeatures; + public final int _formatReadFeatures; + public final int _formatReadFeaturesToChange; + public final a _nodeFactory; + public final int _parserFeatures; + public final int _parserFeaturesToChange; + public final i _problemHandlers; + + public f(f fVar, int i, int i2, int i3, int i4, int i5, int i6) { + super(fVar, i); + this._deserFeatures = i2; + this._nodeFactory = fVar._nodeFactory; + this._coercionConfigs = fVar._coercionConfigs; + this._ctorDetector = fVar._ctorDetector; + this._parserFeatures = i3; + this._parserFeaturesToChange = i4; + this._formatReadFeatures = i5; + this._formatReadFeaturesToChange = i6; + } + + public f(b.g.a.c.z.a aVar, b.g.a.c.e0.d dVar, d0 d0Var, p pVar, g gVar, d dVar2) { + super(aVar, dVar, d0Var, pVar, gVar); + this._deserFeatures = l; + this._nodeFactory = a.k; + this._ctorDetector = null; + this._coercionConfigs = dVar2; + this._parserFeatures = 0; + this._parserFeaturesToChange = 0; + this._formatReadFeatures = 0; + this._formatReadFeaturesToChange = 0; + } + + /* Return type fixed from 'b.g.a.c.z.m' to match base method */ + @Override // b.g.a.c.z.m + public f r(int i) { + return new f(this, i, this._deserFeatures, this._parserFeatures, this._parserFeaturesToChange, this._formatReadFeatures, this._formatReadFeaturesToChange); + } +} diff --git a/app/src/main/java/b/g/a/c/f0/a.java b/app/src/main/java/b/g/a/c/f0/a.java new file mode 100644 index 0000000000..4b86a9e4d5 --- /dev/null +++ b/app/src/main/java/b/g/a/c/f0/a.java @@ -0,0 +1,24 @@ +package b.g.a.c.f0; + +import java.io.Serializable; +/* compiled from: JsonNodeFactory */ +public class a implements Serializable { + public static final a j; + public static final a k; + private static final long serialVersionUID = 1; + private final boolean _cfgBigDecimalExact; + + static { + a aVar = new a(false); + j = aVar; + k = aVar; + } + + public a() { + this._cfgBigDecimalExact = false; + } + + public a(boolean z2) { + this._cfgBigDecimalExact = z2; + } +} diff --git a/app/src/main/java/b/g/a/c/g.java b/app/src/main/java/b/g/a/c/g.java new file mode 100644 index 0000000000..7d03a768a1 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g.java @@ -0,0 +1,44 @@ +package b.g.a.c; + +import b.g.a.b.l; +import b.g.a.b.t.h; +import b.g.a.c.a0.e; +import b.g.a.c.a0.f; +import b.g.a.c.h0.n; +import b.g.a.c.i0.i; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.exc.InvalidDefinitionException; +import java.io.Serializable; +import java.util.Objects; +/* compiled from: DeserializationContext */ +public abstract class g extends e implements Serializable { + private static final long serialVersionUID = 1; + public final e _cache; + public final f _config; + public i _currentType; + public final f _factory; + public final int _featureFlags; + public final i _injectableValues; + public final h _readCapabilities; + public final Class _view; + + public g(f fVar, e eVar) { + Objects.requireNonNull(fVar, "Cannot pass null DeserializerFactory"); + this._factory = fVar; + this._cache = eVar == null ? new e() : eVar; + this._featureFlags = 0; + this._readCapabilities = null; + this._config = null; + this._view = null; + } + + @Override // b.g.a.c.e + public final n d() { + return this._config._base._typeFactory; + } + + @Override // b.g.a.c.e + public T f(j jVar, String str) throws JsonMappingException { + throw new InvalidDefinitionException((b.g.a.b.f) null, str, jVar); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/a.java b/app/src/main/java/b/g/a/c/g0/a.java new file mode 100644 index 0000000000..39eecbce82 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/a.java @@ -0,0 +1,43 @@ +package b.g.a.c.g0; + +import b.g.a.c.c0.i; +import b.g.a.c.d; +import b.g.a.c.g0.u.t; +import b.g.a.c.n; +import b.g.a.c.x; +import java.util.Map; +/* compiled from: AnyGetterWriter */ +public class a { + public final d a; + + /* renamed from: b reason: collision with root package name */ + public final i f686b; + public n c; + public t d; + + public a(d dVar, i iVar, n nVar) { + this.f686b = iVar; + this.a = dVar; + this.c = nVar; + if (nVar instanceof t) { + this.d = (t) nVar; + } + } + + public void a(Object obj, b.g.a.b.d dVar, x xVar) throws Exception { + Object j = this.f686b.j(obj); + if (j != null) { + if (j instanceof Map) { + t tVar = this.d; + if (tVar != null) { + tVar.u((Map) j, dVar, xVar); + } else { + this.c.f(j, dVar, xVar); + } + } else { + xVar.f(this.a.getType(), String.format("Value returned by 'any-getter' %s() not java.util.Map but %s", this.f686b.c(), j.getClass().getName())); + throw null; + } + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/b.java b/app/src/main/java/b/g/a/c/g0/b.java new file mode 100644 index 0000000000..af79871bf2 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/b.java @@ -0,0 +1,351 @@ +package b.g.a.c.g0; + +import b.d.b.a.a; +import b.g.a.a.p; +import b.g.a.c.c; +import b.g.a.c.c0.q; +import b.g.a.c.e0.g; +import b.g.a.c.g0.u.a0; +import b.g.a.c.g0.u.b0; +import b.g.a.c.g0.u.c0; +import b.g.a.c.g0.u.e; +import b.g.a.c.g0.u.g0; +import b.g.a.c.g0.u.h; +import b.g.a.c.g0.u.i; +import b.g.a.c.g0.u.j0; +import b.g.a.c.g0.u.k; +import b.g.a.c.g0.u.k0; +import b.g.a.c.g0.u.l0; +import b.g.a.c.g0.u.m0; +import b.g.a.c.g0.u.o0; +import b.g.a.c.g0.u.r0; +import b.g.a.c.g0.u.t0; +import b.g.a.c.g0.u.u; +import b.g.a.c.g0.u.v; +import b.g.a.c.g0.u.v0; +import b.g.a.c.g0.u.w0; +import b.g.a.c.g0.u.x; +import b.g.a.c.g0.u.y; +import b.g.a.c.g0.u.z; +import b.g.a.c.i0.d; +import b.g.a.c.i0.f; +import b.g.a.c.i0.s; +import b.g.a.c.j; +import b.g.a.c.m; +import b.g.a.c.n; +import b.g.a.c.p; +import b.g.a.c.y.e; +import b.g.a.c.z.o; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.File; +import java.io.Serializable; +import java.lang.annotation.Annotation; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.net.URI; +import java.net.URL; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Currency; +import java.util.Date; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashSet; +import java.util.LinkedList; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicLong; +import java.util.regex.Pattern; +/* compiled from: BasicSerializerFactory */ +public abstract class b extends q implements Serializable { + public static final HashMap> j; + public static final HashMap>> k; + public final o _factoryConfig; + + static { + HashMap>> hashMap = new HashMap<>(); + HashMap> hashMap2 = new HashMap<>(); + hashMap2.put(String.class.getName(), new r0()); + t0 t0Var = t0.k; + hashMap2.put(StringBuffer.class.getName(), t0Var); + hashMap2.put(StringBuilder.class.getName(), t0Var); + hashMap2.put(Character.class.getName(), t0Var); + hashMap2.put(Character.TYPE.getName(), t0Var); + hashMap2.put(Integer.class.getName(), new a0(Integer.class)); + Class cls = Integer.TYPE; + hashMap2.put(cls.getName(), new a0(cls)); + hashMap2.put(Long.class.getName(), new b0(Long.class)); + Class cls2 = Long.TYPE; + hashMap2.put(cls2.getName(), new b0(cls2)); + String name = Byte.class.getName(); + z zVar = z.k; + hashMap2.put(name, zVar); + hashMap2.put(Byte.TYPE.getName(), zVar); + String name2 = Short.class.getName(); + c0 c0Var = c0.k; + hashMap2.put(name2, c0Var); + hashMap2.put(Short.TYPE.getName(), c0Var); + hashMap2.put(Double.class.getName(), new x(Double.class)); + hashMap2.put(Double.TYPE.getName(), new x(Double.TYPE)); + String name3 = Float.class.getName(); + y yVar = y.k; + hashMap2.put(name3, yVar); + hashMap2.put(Float.TYPE.getName(), yVar); + hashMap2.put(Boolean.TYPE.getName(), new e(true)); + hashMap2.put(Boolean.class.getName(), new e(false)); + hashMap2.put(BigInteger.class.getName(), new v(BigInteger.class)); + hashMap2.put(BigDecimal.class.getName(), new v(BigDecimal.class)); + hashMap2.put(Calendar.class.getName(), h.k); + hashMap2.put(Date.class.getName(), k.k); + HashMap hashMap3 = new HashMap(); + hashMap3.put(URL.class, new t0(URL.class)); + hashMap3.put(URI.class, new t0(URI.class)); + hashMap3.put(Currency.class, new t0(Currency.class)); + hashMap3.put(UUID.class, new w0()); + hashMap3.put(Pattern.class, new t0(Pattern.class)); + hashMap3.put(Locale.class, new t0(Locale.class)); + hashMap3.put(AtomicBoolean.class, k0.class); + hashMap3.put(AtomicInteger.class, l0.class); + hashMap3.put(AtomicLong.class, m0.class); + hashMap3.put(File.class, b.g.a.c.g0.u.o.class); + hashMap3.put(Class.class, i.class); + u uVar = u.k; + hashMap3.put(Void.class, uVar); + hashMap3.put(Void.TYPE, uVar); + for (Map.Entry entry : hashMap3.entrySet()) { + Object value = entry.getValue(); + if (value instanceof n) { + hashMap2.put(((Class) entry.getKey()).getName(), (n) value); + } else { + hashMap.put(((Class) entry.getKey()).getName(), (Class) value); + } + } + hashMap.put(s.class.getName(), v0.class); + j = hashMap2; + k = hashMap; + } + + public b(o oVar) { + this._factoryConfig = oVar == null ? new o() : oVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:102:0x0184 */ + /* JADX WARNING: Removed duplicated region for block: B:96:0x015d */ + /* JADX WARNING: Removed duplicated region for block: B:98:0x0163 */ + @Override // b.g.a.c.g0.q + public n a(b.g.a.c.x xVar, j jVar, n nVar) throws JsonMappingException { + n nVar2; + b.g.a.c.c0.i iVar; + o0.a aVar; + b.g.a.c.v vVar = xVar._config; + c u = vVar.u(jVar); + r[] rVarArr = this._factoryConfig._additionalKeySerializers; + if (rVarArr.length > 0) { + b.g.a.c.i0.b bVar = new b.g.a.c.i0.b(rVarArr); + nVar2 = null; + while (bVar.hasNext() && (nVar2 = ((r) bVar.next()).b(vVar, jVar, u)) == null) { + } + } else { + nVar2 = null; + } + if (nVar2 == null) { + q qVar = (q) u; + b.g.a.c.c0.c cVar = qVar.f; + Object l = xVar.v().l(cVar); + n H = l != null ? xVar.H(cVar, l) : null; + if (H == null) { + if (nVar == null) { + Class cls = jVar._class; + n nVar3 = o0.a; + if (cls == null || cls == Object.class) { + H = new o0.b(); + } else if (cls == String.class) { + H = o0.a; + } else { + if (cls.isPrimitive()) { + Annotation[] annotationArr = d.a; + if (cls == Integer.TYPE) { + cls = Integer.class; + } else if (cls == Long.TYPE) { + cls = Long.class; + } else if (cls == Boolean.TYPE) { + cls = Boolean.class; + } else if (cls == Double.TYPE) { + cls = Double.class; + } else if (cls == Float.TYPE) { + cls = Float.class; + } else if (cls == Byte.TYPE) { + cls = Byte.class; + } else if (cls == Short.TYPE) { + cls = Short.class; + } else if (cls == Character.TYPE) { + cls = Character.class; + } else { + throw new IllegalArgumentException(a.n(cls, a.R("Class "), " is not a primitive type")); + } + } + if (cls == Integer.class) { + aVar = new o0.a(5, cls); + } else if (cls == Long.class) { + aVar = new o0.a(6, cls); + } else if (cls.isPrimitive() || Number.class.isAssignableFrom(cls)) { + aVar = new o0.a(8, cls); + } else if (cls == Class.class) { + aVar = new o0.a(3, cls); + } else if (Date.class.isAssignableFrom(cls)) { + aVar = new o0.a(1, cls); + } else if (Calendar.class.isAssignableFrom(cls)) { + aVar = new o0.a(2, cls); + } else if (cls == UUID.class) { + aVar = new o0.a(8, cls); + } else if (cls == byte[].class) { + aVar = new o0.a(7, cls); + } else { + H = null; + } + H = aVar; + } + if (H == null) { + b.g.a.c.c0.b0 b0Var = qVar.c; + if (b0Var != null) { + if (!b0Var.i) { + b0Var.h(); + } + LinkedList linkedList = b0Var.q; + if (linkedList != null) { + if (linkedList.size() <= 1) { + iVar = b0Var.q.get(0); + if (iVar == null) { + iVar = u.b(); + } + if (iVar == null) { + n a = a(xVar, iVar.e(), nVar); + if (vVar.b()) { + d.d(iVar.i(), vVar.q(p.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); + } + nVar = new b.g.a.c.g0.u.s(iVar, null, a); + } else { + Class cls2 = jVar._class; + if (cls2 != null) { + if (cls2 == Enum.class) { + nVar = new o0.b(); + } else if (d.q(cls2)) { + nVar = new o0.c(cls2, f.a(vVar, cls2)); + } + } + nVar = new o0.a(8, cls2); + } + } else { + b0Var.i("Multiple 'as-key' properties defined (%s vs %s)", b0Var.q.get(0), b0Var.q.get(1)); + throw null; + } + } + } + iVar = null; + if (iVar == null) { + } + if (iVar == null) { + } + } + } + } + nVar = H; + } else { + nVar = nVar2; + } + if (this._factoryConfig.a()) { + b.g.a.c.i0.b bVar2 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar2.hasNext()) { + Objects.requireNonNull((g) bVar2.next()); + } + } + return nVar; + } + + @Override // b.g.a.c.g0.q + public g c(b.g.a.c.v vVar, j jVar) { + ArrayList arrayList; + b.g.a.c.c0.c cVar = ((q) vVar.o(jVar._class)).f; + b.g.a.c.e0.f P = vVar.e().P(vVar, cVar, jVar); + if (P == null) { + P = vVar._base._typeResolverBuilder; + arrayList = null; + } else { + b.g.a.c.e0.h.i iVar = (b.g.a.c.e0.h.i) vVar._subtypeResolver; + Objects.requireNonNull(iVar); + b.g.a.c.b e = vVar.e(); + HashMap hashMap = new HashMap<>(); + LinkedHashSet linkedHashSet = iVar._registeredSubtypes; + if (linkedHashSet != null) { + Class cls = cVar.l; + Iterator it = linkedHashSet.iterator(); + while (it.hasNext()) { + b.g.a.c.e0.b next = it.next(); + if (cls.isAssignableFrom(next._class)) { + iVar.b(b.g.a.c.c0.d.h(vVar, next._class), next, vVar, e, hashMap); + } + } + } + iVar.b(cVar, new b.g.a.c.e0.b(cVar.l, null), vVar, e, hashMap); + arrayList = new ArrayList(hashMap.values()); + } + if (P == null) { + return null; + } + return P.e(vVar, jVar, arrayList); + } + + public p.b d(b.g.a.c.x xVar, c cVar, j jVar, Class cls) throws JsonMappingException { + b.g.a.c.v vVar = xVar._config; + p.b c = cVar.c(vVar._configOverrides._defaultInclusion); + vVar._configOverrides.a(cls); + vVar.k(jVar._class, null); + return c; + } + + public final n e(b.g.a.c.x xVar, j jVar, c cVar) throws JsonMappingException { + if (m.class.isAssignableFrom(jVar._class)) { + return g0.k; + } + b.g.a.c.c0.i b2 = cVar.b(); + if (b2 == null) { + return null; + } + if (xVar._config.b()) { + d.d(b2.i(), xVar.C(b.g.a.c.p.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); + } + j e = b2.e(); + n f = f(xVar, b2); + if (f == null) { + f = (n) e._valueHandler; + } + g gVar = (g) e._typeHandler; + if (gVar == null) { + gVar = c(xVar._config, e); + } + return new b.g.a.c.g0.u.s(b2, gVar, f); + } + + public n f(b.g.a.c.x xVar, b.g.a.c.c0.b bVar) throws JsonMappingException { + Object L = xVar.v().L(bVar); + b.g.a.c.i0.e eVar = null; + if (L == null) { + return null; + } + n H = xVar.H(bVar, L); + Object H2 = xVar.v().H(bVar); + if (H2 != null) { + eVar = xVar.c(bVar, H2); + } + return eVar == null ? H : new j0(eVar, eVar.a(xVar.d()), H); + } + + public boolean g(b.g.a.c.v vVar, c cVar, g gVar) { + e.b K = vVar.e().K(((q) cVar).f); + return (K == null || K == e.b.DEFAULT_TYPING) ? vVar.q(b.g.a.c.p.USE_STATIC_TYPING) : K == e.b.STATIC; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/c.java b/app/src/main/java/b/g/a/c/g0/c.java new file mode 100644 index 0000000000..f9a1abbc62 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/c.java @@ -0,0 +1,345 @@ +package b.g.a.c.g0; + +import b.g.a.a.p; +import b.g.a.b.d; +import b.g.a.c.c0.i; +import b.g.a.c.e0.g; +import b.g.a.c.g0.t.l; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.s; +import b.g.a.c.t; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.io.Serializable; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.util.HashMap; +/* compiled from: BeanPropertyWriter */ +@a +public class c extends n implements Serializable { + public static final /* synthetic */ int j = 0; + private static final long serialVersionUID = 1; + public final j _cfgSerializationType; + public final j _declaredType; + public final Class[] _includeInViews; + public final i _member; + public final b.g.a.b.p.j _name; + public j _nonTrivialBaseType; + public n _nullSerializer; + public n _serializer; + public final boolean _suppressNulls; + public final Object _suppressableValue; + public g _typeSerializer; + public final t _wrapperName; + public final transient b.g.a.c.i0.a k; + public transient Method l; + public transient Field m; + public transient l n; + public transient HashMap o; + + public c() { + super(s.l); + this._member = null; + this.k = null; + this._name = null; + this._wrapperName = null; + this._includeInViews = null; + this._declaredType = null; + this._serializer = null; + this.n = null; + this._typeSerializer = null; + this._cfgSerializationType = null; + this.l = null; + this.m = null; + this._suppressNulls = false; + this._suppressableValue = null; + this._nullSerializer = null; + } + + public c(b.g.a.c.c0.s sVar, i iVar, b.g.a.c.i0.a aVar, j jVar, n nVar, g gVar, j jVar2, boolean z2, Object obj, Class[] clsArr) { + super(sVar); + this._member = iVar; + this.k = aVar; + this._name = new b.g.a.b.p.j(sVar.p()); + this._wrapperName = sVar.t(); + this._declaredType = jVar; + this._serializer = nVar; + this.n = nVar == null ? l.b.f692b : null; + this._typeSerializer = gVar; + this._cfgSerializationType = jVar2; + if (iVar instanceof b.g.a.c.c0.g) { + this.l = null; + this.m = (Field) iVar.i(); + } else if (iVar instanceof b.g.a.c.c0.j) { + this.l = (Method) iVar.i(); + this.m = null; + } else { + this.l = null; + this.m = null; + } + this._suppressNulls = z2; + this._suppressableValue = obj; + this._nullSerializer = null; + this._includeInViews = clsArr; + } + + public c(c cVar, b.g.a.b.p.j jVar) { + super(cVar); + this._name = jVar; + this._wrapperName = cVar._wrapperName; + this._member = cVar._member; + this.k = cVar.k; + this._declaredType = cVar._declaredType; + this.l = cVar.l; + this.m = cVar.m; + this._serializer = cVar._serializer; + this._nullSerializer = cVar._nullSerializer; + if (cVar.o != null) { + this.o = new HashMap<>(cVar.o); + } + this._cfgSerializationType = cVar._cfgSerializationType; + this.n = cVar.n; + this._suppressNulls = cVar._suppressNulls; + this._suppressableValue = cVar._suppressableValue; + this._includeInViews = cVar._includeInViews; + this._typeSerializer = cVar._typeSerializer; + this._nonTrivialBaseType = cVar._nonTrivialBaseType; + } + + public c(c cVar, t tVar) { + super(cVar); + this._name = new b.g.a.b.p.j(tVar._simpleName); + this._wrapperName = cVar._wrapperName; + this.k = cVar.k; + this._declaredType = cVar._declaredType; + this._member = cVar._member; + this.l = cVar.l; + this.m = cVar.m; + this._serializer = cVar._serializer; + this._nullSerializer = cVar._nullSerializer; + if (cVar.o != null) { + this.o = new HashMap<>(cVar.o); + } + this._cfgSerializationType = cVar._cfgSerializationType; + this.n = cVar.n; + this._suppressNulls = cVar._suppressNulls; + this._suppressableValue = cVar._suppressableValue; + this._includeInViews = cVar._includeInViews; + this._typeSerializer = cVar._typeSerializer; + this._nonTrivialBaseType = cVar._nonTrivialBaseType; + } + + public n c(l lVar, Class cls, x xVar) throws JsonMappingException { + l.d dVar; + j jVar = this._nonTrivialBaseType; + if (jVar != null) { + j k = xVar.k(jVar, cls); + n q = xVar.q(k, this); + dVar = new l.d(q, lVar.b(k._class, q)); + } else { + n r = xVar.r(cls, this); + dVar = new l.d(r, lVar.b(cls, r)); + } + l lVar2 = dVar.f694b; + if (lVar != lVar2) { + this.n = lVar2; + } + return dVar.a; + } + + /* JADX WARN: Incorrect args count in method signature: (Ljava/lang/Object;Lb/g/a/b/d;Lb/g/a/c/x;Lb/g/a/c/n<*>;)Z */ + public boolean d(d dVar, x xVar, n nVar) throws IOException { + if (nVar.i()) { + return false; + } + if (xVar.D(w.FAIL_ON_SELF_REFERENCES)) { + if (!(nVar instanceof b.g.a.c.g0.u.d)) { + return false; + } + xVar.f(this._declaredType, "Direct self-reference leading to cycle"); + throw null; + } else if (!xVar.D(w.WRITE_SELF_REFERENCES_AS_NULL)) { + return false; + } else { + if (this._nullSerializer == null) { + return true; + } + if (!dVar.c().b()) { + dVar.x(this._name); + } + this._nullSerializer.f(null, dVar, xVar); + return true; + } + } + + public void e(n nVar) { + n nVar2 = this._nullSerializer; + if (nVar2 == null || nVar2 == nVar) { + this._nullSerializer = nVar; + return; + } + throw new IllegalStateException(String.format("Cannot override _nullSerializer: had a %s, trying to set to %s", b.g.a.c.i0.d.e(this._nullSerializer), b.g.a.c.i0.d.e(nVar))); + } + + public void f(n nVar) { + n nVar2 = this._serializer; + if (nVar2 == null || nVar2 == nVar) { + this._serializer = nVar; + return; + } + throw new IllegalStateException(String.format("Cannot override _serializer: had a %s, trying to set to %s", b.g.a.c.i0.d.e(this._serializer), b.g.a.c.i0.d.e(nVar))); + } + + public c g(b.g.a.c.i0.n nVar) { + String a = nVar.a(this._name._value); + return a.equals(this._name._value) ? this : new c(this, t.a(a)); + } + + @Override // b.g.a.c.d + public i getMember() { + return this._member; + } + + @Override // b.g.a.c.d + public j getType() { + return this._declaredType; + } + + public void h(Object obj, d dVar, x xVar) throws Exception { + Method method = this.l; + Object invoke = method == null ? this.m.get(obj) : method.invoke(obj, null); + if (invoke == null) { + n nVar = this._nullSerializer; + if (nVar != null) { + nVar.f(null, dVar, xVar); + } else { + dVar.A(); + } + } else { + n nVar2 = this._serializer; + if (nVar2 == null) { + Class cls = invoke.getClass(); + l lVar = this.n; + n c = lVar.c(cls); + nVar2 = c == null ? c(lVar, cls, xVar) : c; + } + Object obj2 = this._suppressableValue; + if (obj2 != null) { + if (p.a.NON_EMPTY == obj2) { + if (nVar2.d(xVar, invoke)) { + n nVar3 = this._nullSerializer; + if (nVar3 != null) { + nVar3.f(null, dVar, xVar); + return; + } else { + dVar.A(); + return; + } + } + } else if (obj2.equals(invoke)) { + n nVar4 = this._nullSerializer; + if (nVar4 != null) { + nVar4.f(null, dVar, xVar); + return; + } else { + dVar.A(); + return; + } + } + } + if (invoke != obj || !d(dVar, xVar, nVar2)) { + g gVar = this._typeSerializer; + if (gVar == null) { + nVar2.f(invoke, dVar, xVar); + } else { + nVar2.g(invoke, dVar, xVar, gVar); + } + } + } + } + + public void i(Object obj, d dVar, x xVar) throws Exception { + Method method = this.l; + Object invoke = method == null ? this.m.get(obj) : method.invoke(obj, null); + if (invoke != null) { + n nVar = this._serializer; + if (nVar == null) { + Class cls = invoke.getClass(); + l lVar = this.n; + n c = lVar.c(cls); + nVar = c == null ? c(lVar, cls, xVar) : c; + } + Object obj2 = this._suppressableValue; + if (obj2 != null) { + if (p.a.NON_EMPTY == obj2) { + if (nVar.d(xVar, invoke)) { + return; + } + } else if (obj2.equals(invoke)) { + return; + } + } + if (invoke != obj || !d(dVar, xVar, nVar)) { + dVar.x(this._name); + g gVar = this._typeSerializer; + if (gVar == null) { + nVar.f(invoke, dVar, xVar); + } else { + nVar.g(invoke, dVar, xVar, gVar); + } + } + } else if (this._nullSerializer != null) { + dVar.x(this._name); + this._nullSerializer.f(null, dVar, xVar); + } + } + + public Object readResolve() { + i iVar = this._member; + if (iVar instanceof b.g.a.c.c0.g) { + this.l = null; + this.m = (Field) iVar.i(); + } else if (iVar instanceof b.g.a.c.c0.j) { + this.l = (Method) iVar.i(); + this.m = null; + } + if (this._serializer == null) { + this.n = l.b.f692b; + } + return this; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder(40); + sb.append("property '"); + sb.append(this._name._value); + sb.append("' ("); + if (this.l != null) { + sb.append("via method "); + sb.append(this.l.getDeclaringClass().getName()); + sb.append("#"); + sb.append(this.l.getName()); + } else if (this.m != null) { + sb.append("field \""); + sb.append(this.m.getDeclaringClass().getName()); + sb.append("#"); + sb.append(this.m.getName()); + } else { + sb.append("virtual"); + } + if (this._serializer == null) { + sb.append(", no static serializer"); + } else { + StringBuilder R = b.d.b.a.a.R(", static serializer of type "); + R.append(this._serializer.getClass().getName()); + sb.append(R.toString()); + } + sb.append(')'); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/d.java b/app/src/main/java/b/g/a/c/g0/d.java new file mode 100644 index 0000000000..f2ea47a772 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/d.java @@ -0,0 +1,87 @@ +package b.g.a.c.g0; + +import b.d.b.a.a; +import b.g.a.c.g0.t.b; +import b.g.a.c.g0.t.j; +import b.g.a.c.g0.t.t; +import b.g.a.c.n; +import b.g.a.c.x; +import java.io.IOException; +import java.util.Set; +/* compiled from: BeanSerializer */ +public class d extends b.g.a.c.g0.u.d { + private static final long serialVersionUID = 29; + + public d(b.g.a.c.g0.u.d dVar, j jVar, Object obj) { + super(dVar, jVar, obj); + } + + public d(b.g.a.c.g0.u.d dVar, Set set, Set set2) { + super(dVar, set, set2); + } + + public d(b.g.a.c.g0.u.d dVar, c[] cVarArr, c[] cVarArr2) { + super(dVar, cVarArr, cVarArr2); + } + + public d(b.g.a.c.j jVar, e eVar, c[] cVarArr, c[] cVarArr2) { + super(jVar, eVar, cVarArr, cVarArr2); + } + + @Override // b.g.a.c.n + public final void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + if (this._objectIdWriter != null) { + dVar.e(obj); + q(obj, dVar, xVar, true); + return; + } + dVar.d0(obj); + Object obj2 = this._propertyFilterId; + if (obj2 != null) { + if (this._filteredProps != null) { + Class cls = xVar._serializationView; + } + m(xVar, obj2, obj); + throw null; + } + u(obj, dVar, xVar); + dVar.u(); + } + + @Override // b.g.a.c.n + public n h(b.g.a.c.i0.n nVar) { + return new t(this, nVar); + } + + @Override // b.g.a.c.g0.u.d + public b.g.a.c.g0.u.d s() { + return (this._objectIdWriter == null && this._anyGetterWriter == null && this._propertyFilterId == null) ? new b(this) : this; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("BeanSerializer for "); + R.append(this._handledType.getName()); + return R.toString(); + } + + @Override // b.g.a.c.g0.u.d + public b.g.a.c.g0.u.d v(Set set, Set set2) { + return new d(this, set, set2); + } + + @Override // b.g.a.c.g0.u.d + public b.g.a.c.g0.u.d w(Object obj) { + return new d(this, this._objectIdWriter, obj); + } + + @Override // b.g.a.c.g0.u.d + public b.g.a.c.g0.u.d x(j jVar) { + return new d(this, jVar, this._propertyFilterId); + } + + @Override // b.g.a.c.g0.u.d + public b.g.a.c.g0.u.d y(c[] cVarArr, c[] cVarArr2) { + return new d(this, cVarArr, cVarArr2); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/e.java b/app/src/main/java/b/g/a/c/g0/e.java new file mode 100644 index 0000000000..b8c3a8f7c3 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/e.java @@ -0,0 +1,58 @@ +package b.g.a.c.g0; + +import b.g.a.c.c; +import b.g.a.c.c0.i; +import b.g.a.c.g0.t.j; +import b.g.a.c.n; +import b.g.a.c.p; +import b.g.a.c.v; +import java.util.Collections; +import java.util.List; +/* compiled from: BeanSerializerBuilder */ +public class e { + public static final c[] a = new c[0]; + + /* renamed from: b reason: collision with root package name */ + public final c f687b; + public v c; + public List d = Collections.emptyList(); + public c[] e; + public a f; + public Object g; + public i h; + public j i; + + public e(c cVar) { + this.f687b = cVar; + } + + public n a() { + c[] cVarArr; + if (this.h != null && this.c.q(p.CAN_OVERRIDE_ACCESS_MODIFIERS)) { + this.h.f(this.c.q(p.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); + } + a aVar = this.f; + if (aVar != null) { + aVar.f686b.f(this.c.q(p.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); + } + List list = this.d; + if (list != null && !list.isEmpty()) { + List list2 = this.d; + cVarArr = (c[]) list2.toArray(new c[list2.size()]); + if (this.c.q(p.CAN_OVERRIDE_ACCESS_MODIFIERS)) { + for (c cVar : cVarArr) { + cVar._member.f(this.c.q(p.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); + } + } + } else if (this.f == null && this.i == null) { + return null; + } else { + cVarArr = a; + } + c[] cVarArr2 = this.e; + if (cVarArr2 == null || cVarArr2.length == this.d.size()) { + return new d(this.f687b.a, this, cVarArr, this.e); + } + throw new IllegalStateException(String.format("Mismatch between `properties` size (%d), `filteredProperties` (%s): should have as many (or `null` for latter)", Integer.valueOf(this.d.size()), Integer.valueOf(this.e.length))); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/f.java b/app/src/main/java/b/g/a/c/g0/f.java new file mode 100644 index 0000000000..6629b0e1e1 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/f.java @@ -0,0 +1,1302 @@ +package b.g.a.c.g0; + +import b.d.b.a.a; +import b.g.a.a.c0; +import b.g.a.a.i; +import b.g.a.a.l0; +import b.g.a.a.n; +import b.g.a.a.p; +import b.g.a.a.q; +import b.g.a.c.b; +import b.g.a.c.c; +import b.g.a.c.c0.a0; +import b.g.a.c.c0.b0; +import b.g.a.c.c0.i; +import b.g.a.c.c0.q; +import b.g.a.c.c0.s; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.t.r; +import b.g.a.c.g0.u.d0; +import b.g.a.c.g0.u.h; +import b.g.a.c.g0.u.i0; +import b.g.a.c.g0.u.j0; +import b.g.a.c.g0.u.k; +import b.g.a.c.g0.u.m; +import b.g.a.c.g0.u.s0; +import b.g.a.c.g0.u.t0; +import b.g.a.c.i0.d; +import b.g.a.c.i0.e; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.t; +import b.g.a.c.v; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.z.o; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.Serializable; +import java.lang.annotation.Annotation; +import java.net.InetAddress; +import java.net.InetSocketAddress; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; +import java.util.EnumSet; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.RandomAccess; +import java.util.Set; +import java.util.TimeZone; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: BeanSerializerFactory */ +public class f extends b implements Serializable { + public static final f l = new f(null); + private static final long serialVersionUID = 1; + + public f(o oVar) { + super(null); + } + + @Override // b.g.a.c.g0.q + public n b(x xVar, j jVar) throws JsonMappingException { + j jVar2; + Object H; + v vVar = xVar._config; + c u = vVar.u(jVar); + n f = f(xVar, ((q) u).f); + if (f != null) { + return f; + } + b e = vVar.e(); + boolean z2 = false; + e eVar = null; + if (e == null) { + jVar2 = jVar; + } else { + try { + jVar2 = e.e0(vVar, ((q) u).f, jVar); + } catch (JsonMappingException e2) { + xVar.F(u, e2.getMessage(), new Object[0]); + throw null; + } + } + if (jVar2 != jVar) { + if (!jVar2.t(jVar._class)) { + u = vVar.u(jVar2); + } + z2 = true; + } + q qVar = (q) u; + b bVar = qVar.e; + if (!(bVar == null || (H = bVar.H(qVar.f)) == null)) { + if (H instanceof e) { + eVar = (e) H; + } else if (H instanceof Class) { + Class cls = (Class) H; + if (cls != e.a.class && !d.p(cls)) { + if (e.class.isAssignableFrom(cls)) { + Objects.requireNonNull(qVar.d._base); + eVar = (e) d.g(cls, qVar.d.b()); + } else { + throw new IllegalStateException(a.n(cls, a.R("AnnotationIntrospector returned Class "), "; expected Class")); + } + } + } else { + StringBuilder R = a.R("AnnotationIntrospector returned Converter definition of type "); + R.append(H.getClass().getName()); + R.append("; expected type Converter or Class instead"); + throw new IllegalStateException(R.toString()); + } + } + if (eVar == null) { + return i(xVar, jVar2, u, z2); + } + j a = eVar.a(xVar.d()); + if (!a.t(jVar2._class)) { + u = vVar.u(a); + f = f(xVar, ((q) u).f); + } + if (f == null && !a.y()) { + f = i(xVar, a, u, true); + } + return new j0(eVar, a, f); + } + + /* JADX WARNING: Removed duplicated region for block: B:119:0x0259 */ + /* JADX WARNING: Removed duplicated region for block: B:133:0x02a1 */ + /* JADX WARNING: Removed duplicated region for block: B:136:0x02b0 */ + /* JADX WARNING: Removed duplicated region for block: B:137:0x02b6 */ + /* JADX WARNING: Removed duplicated region for block: B:98:0x0218 */ + public c h(x xVar, s sVar, l lVar, boolean z2, i iVar) throws JsonMappingException { + g gVar; + Object obj; + boolean z3; + Class[] i; + Object q; + boolean z4; + boolean z5; + Object obj2; + t m = sVar.m(); + j e = iVar.e(); + d.a aVar = new d.a(m, e, sVar.t(), iVar, sVar.o()); + n f = f(xVar, iVar); + if (f instanceof o) { + ((o) f).b(xVar); + } + n y2 = xVar.y(f, aVar); + if (e.v() || e.b()) { + v vVar = xVar._config; + j k = e.k(); + b.g.a.c.e0.f u = vVar.e().u(vVar, iVar, e); + gVar = u == null ? c(vVar, k) : u.e(vVar, k, vVar._subtypeResolver.a(vVar, iVar, k)); + } else { + gVar = null; + } + v vVar2 = xVar._config; + b.g.a.c.e0.f C = vVar2.e().C(vVar2, iVar, e); + g c = C == null ? c(vVar2, e) : C.e(vVar2, e, vVar2._subtypeResolver.a(vVar2, iVar, e)); + Object obj3 = p.a.NON_EMPTY; + try { + j a = lVar.a(iVar, z2, e); + if (gVar != null) { + if (a == null) { + a = e; + } + if (a.k() != null) { + j E = a.E(gVar); + E.k(); + a = E; + } else { + xVar.E(lVar.f688b, sVar, "serialization type " + a + " has no content", new Object[0]); + throw null; + } + } + j jVar = a == null ? e : a; + i j = sVar.j(); + if (j != null) { + Class d = j.d(); + v vVar3 = lVar.a; + Class cls = jVar._class; + p.b bVar = lVar.e; + vVar3.f(cls); + vVar3.f(d); + p.b[] bVarArr = {bVar, null, null}; + p.b bVar2 = p.b.j; + int i2 = 0; + p.b bVar3 = null; + for (int i3 = 3; i2 < i3; i3 = 3) { + p.b bVar4 = bVarArr[i2]; + if (bVar4 != null) { + if (bVar3 != null) { + bVar4 = bVar3.a(bVar4); + } + bVar3 = bVar4; + } + i2++; + } + p.b a2 = bVar3.a(sVar.g()); + p.a aVar2 = a2._valueInclusion; + if (aVar2 == p.a.USE_DEFAULTS) { + aVar2 = p.a.ALWAYS; + } + int ordinal = aVar2.ordinal(); + if (ordinal != 1) { + if (ordinal != 2) { + if (ordinal != 3) { + if (ordinal == 4) { + if (lVar.f) { + Object obj4 = lVar.d; + if (obj4 == null) { + c cVar = lVar.f688b; + boolean b2 = lVar.a.b(); + q qVar = (q) cVar; + b.g.a.c.c0.e eVar = qVar.f.f().a; + if (eVar == null) { + obj4 = null; + } else { + if (b2) { + eVar.f(qVar.d.q(b.g.a.c.p.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); + } + try { + obj4 = eVar._constructor.newInstance(new Object[0]); + } catch (Exception e2) { + e = e2; + while (e.getCause() != null) { + e = e.getCause(); + } + b.g.a.c.i0.d.w(e); + b.g.a.c.i0.d.x(e); + StringBuilder R = a.R("Failed to instantiate bean of type "); + R.append(qVar.f.l.getName()); + R.append(": ("); + R.append(e.getClass().getName()); + R.append(") "); + R.append(b.g.a.c.i0.d.h(e)); + throw new IllegalArgumentException(R.toString(), e); + } + } + if (obj4 == null) { + obj4 = Boolean.FALSE; + } + lVar.d = obj4; + } + Object obj5 = obj4 == Boolean.FALSE ? null : lVar.d; + if (obj5 != null) { + if (xVar.C(b.g.a.c.p.CAN_OVERRIDE_ACCESS_MODIFIERS)) { + iVar.f(lVar.a.q(b.g.a.c.p.OVERRIDE_PUBLIC_ACCESS_MODIFIERS)); + } + try { + obj2 = iVar.j(obj5); + z5 = false; + if (obj2 != null) { + if (obj2.getClass().isArray()) { + obj2 = b.c.a.a0.d.p0(obj2); + } + obj3 = obj2; + z3 = z5; + obj = obj3; + i = sVar.i(); + if (i == null) { + } + c cVar2 = new c(sVar, iVar, ((q) lVar.f688b).f.t, e, y2, c, a, z3, obj, i); + q = lVar.c.q(iVar); + if (q != null) { + } + b.g.a.c.i0.n Q = lVar.c.Q(iVar); + if (Q == null) { + } + } + } catch (Exception e3) { + e = e3; + String p = sVar.p(); + while (e.getCause() != null) { + e = e.getCause(); + } + b.g.a.c.i0.d.w(e); + b.g.a.c.i0.d.x(e); + StringBuilder W = a.W("Failed to get property '", p, "' of default "); + W.append(obj5.getClass().getName()); + W.append(" instance"); + throw new IllegalArgumentException(W.toString()); + } + } + } + obj2 = b.c.a.a0.d.s0(jVar); + z5 = true; + if (obj2 != null) { + } + } else if (ordinal != 5) { + z5 = false; + } else { + obj2 = xVar.A(sVar, a2._valueFilter); + if (obj2 != null) { + obj = obj2; + z3 = xVar.B(obj2); + i = sVar.i(); + if (i == null) { + q qVar2 = (q) lVar.f688b; + if (!qVar2.h) { + qVar2.h = true; + b bVar5 = qVar2.e; + Class[] R2 = bVar5 == null ? null : bVar5.R(qVar2.f); + if (R2 == null && !qVar2.d.q(b.g.a.c.p.DEFAULT_VIEW_INCLUSION)) { + R2 = q.f679b; + } + qVar2.g = R2; + } + i = qVar2.g; + } + c cVar2 = new c(sVar, iVar, ((q) lVar.f688b).f.t, e, y2, c, a, z3, obj, i); + q = lVar.c.q(iVar); + if (q != null) { + cVar2.e(xVar.H(iVar, q)); + } + b.g.a.c.i0.n Q = lVar.c.Q(iVar); + return Q == null ? new b.g.a.c.g0.t.s(cVar2, Q) : cVar2; + } + } + obj3 = obj2; + } else { + int i4 = c.j; + } + } else if (jVar.b()) { + int i5 = c.j; + } else { + z4 = true; + z3 = z4; + obj = null; + i = sVar.i(); + if (i == null) { + } + c cVar2 = new c(sVar, iVar, ((q) lVar.f688b).f.t, e, y2, c, a, z3, obj, i); + q = lVar.c.q(iVar); + if (q != null) { + } + b.g.a.c.i0.n Q = lVar.c.Q(iVar); + if (Q == null) { + } + } + obj = obj3; + z3 = true; + i = sVar.i(); + if (i == null) { + } + c cVar2 = new c(sVar, iVar, ((q) lVar.f688b).f.t, e, y2, c, a, z3, obj, i); + q = lVar.c.q(iVar); + if (q != null) { + } + b.g.a.c.i0.n Q = lVar.c.Q(iVar); + if (Q == null) { + } + } else { + z5 = true; + } + w wVar = w.WRITE_EMPTY_JSON_ARRAYS; + if (!jVar.v() || lVar.a.v(wVar)) { + z4 = z5; + z3 = z4; + obj = null; + i = sVar.i(); + if (i == null) { + } + c cVar2 = new c(sVar, iVar, ((q) lVar.f688b).f.t, e, y2, c, a, z3, obj, i); + q = lVar.c.q(iVar); + if (q != null) { + } + b.g.a.c.i0.n Q = lVar.c.Q(iVar); + if (Q == null) { + } + } else { + int i6 = c.j; + z3 = z5; + obj = obj3; + i = sVar.i(); + if (i == null) { + } + c cVar2 = new c(sVar, iVar, ((q) lVar.f688b).f.t, e, y2, c, a, z3, obj, i); + q = lVar.c.q(iVar); + if (q != null) { + } + b.g.a.c.i0.n Q = lVar.c.Q(iVar); + if (Q == null) { + } + } + } else { + xVar.E(lVar.f688b, sVar, "could not determine property type", new Object[0]); + throw null; + } + } catch (JsonMappingException e4) { + xVar.E(lVar.f688b, sVar, b.g.a.c.i0.d.h(e4), new Object[0]); + throw null; + } + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:104:0x01f0 */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:308:0x0612 */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x09f8: APUT (r1v77 java.lang.Object[]), (1 ??[boolean, int, float, short, byte, char]), (r3v56 java.lang.String) */ + /* JADX WARNING: Code restructure failed: missing block: B:252:0x04d7, code lost: + r2 = 3; + */ + /* JADX WARNING: Removed duplicated region for block: B:158:0x02fc */ + /* JADX WARNING: Removed duplicated region for block: B:393:0x073e */ + /* JADX WARNING: Removed duplicated region for block: B:395:0x0745 */ + /* JADX WARNING: Removed duplicated region for block: B:409:0x0792 */ + /* JADX WARNING: Removed duplicated region for block: B:410:0x0795 */ + /* JADX WARNING: Removed duplicated region for block: B:581:0x0b1b */ + /* JADX WARNING: Removed duplicated region for block: B:587:0x0b6e */ + /* JADX WARNING: Removed duplicated region for block: B:604:0x0bad */ + /* JADX WARNING: Removed duplicated region for block: B:648:0x0c71 */ + /* JADX WARNING: Removed duplicated region for block: B:652:0x0c9d */ + /* JADX WARNING: Unknown variable types count: 1 */ + public n i(x xVar, j jVar, c cVar, boolean z2) throws JsonMappingException { + i.c cVar2; + p.a aVar; + p.a aVar2; + c cVar3; + Class cls; + int i; + n nVar; + int i2; + char c; + boolean z3; + n nVar2; + String str; + r rVar; + boolean z4; + ArrayList arrayList; + b.g.a.c.g0.t.j jVar2; + b.g.a.c.c0.i iVar; + int size; + int i3; + List list; + boolean z5; + boolean z6; + ArrayList arrayList2; + String str2; + String str3; + int ordinal; + boolean z7; + Object obj; + Class> cls2; + int i4; + boolean z8; + Object obj2; + boolean z9; + n nVar3; + g gVar; + boolean z10; + n nVar4; + i.c cVar4; + v vVar; + n nVar5; + q qVar; + boolean z11; + g gVar2; + boolean z12; + Object obj3; + c cVar5 = cVar; + boolean z13 = z2; + Class cls3 = Enum.class; + i.c cVar6 = i.c.OBJECT; + p.a aVar3 = p.a.ALWAYS; + p.a aVar4 = p.a.USE_DEFAULTS; + v vVar2 = xVar._config; + if (jVar.v()) { + boolean g = !z13 ? g(vVar2, cVar5, null) : z13; + v vVar3 = xVar._config; + boolean z14 = (g || !jVar._asStatic || (jVar.v() && jVar.k().y())) ? g : true; + g c2 = c(vVar3, jVar.k()); + boolean z15 = c2 != null ? false : z14; + q qVar2 = (q) cVar5; + b.g.a.c.c0.c cVar7 = qVar2.f; + Object c3 = xVar.v().c(cVar7); + n H = c3 != null ? xVar.H(cVar7, c3) : null; + if (jVar.z()) { + b.g.a.c.h0.f fVar = (b.g.a.c.h0.f) jVar; + b.g.a.c.c0.c cVar8 = qVar2.f; + Object l2 = xVar.v().l(cVar8); + n H2 = l2 != null ? xVar.H(cVar8, l2) : null; + if (fVar instanceof b.g.a.c.h0.g) { + b.g.a.c.h0.g gVar3 = (b.g.a.c.h0.g) fVar; + if (cVar5.a(null).e() == cVar6) { + nVar = null; + cVar4 = cVar6; + } else { + v vVar4 = xVar._config; + b.g.a.c.i0.b bVar = (b.g.a.c.i0.b) j(); + n nVar6 = null; + while (true) { + if (!bVar.hasNext()) { + cVar4 = cVar6; + vVar = vVar4; + nVar5 = H; + qVar = qVar2; + z11 = z15; + gVar2 = c2; + break; + } + vVar = vVar4; + nVar5 = H; + cVar4 = cVar6; + qVar = qVar2; + z11 = z15; + gVar2 = c2; + nVar6 = ((r) bVar.next()).c(vVar4, gVar3, cVar, H2, c2, nVar5); + if (nVar6 != null) { + break; + } + vVar4 = vVar; + qVar2 = qVar; + z15 = z11; + c2 = gVar2; + H = nVar5; + cVar6 = cVar4; + } + if (nVar6 == null && (nVar6 = e(xVar, gVar3, cVar5)) == null) { + Object g2 = vVar.e().g(qVar.f); + n.a s2 = vVar.s(Map.class, qVar.f); + Set d = s2 == null ? null : s2.d(); + b.g.a.c.c0.c cVar9 = qVar.f; + b e = vVar.e(); + q.a A = e == null ? null : e.A(vVar, cVar9); + b.g.a.c.g0.u.t s3 = b.g.a.c.g0.u.t.s(d, A == null ? null : A._included, gVar3, z11, gVar2, H2, nVar5, g2); + j jVar3 = s3._valueType; + p.b d2 = d(xVar, cVar5, jVar3, Map.class); + p.a aVar5 = d2 == null ? aVar4 : d2._contentInclusion; + if (aVar5 == aVar4 || aVar5 == aVar3) { + nVar = s3; + if (!xVar.D(w.WRITE_NULL_MAP_VALUES)) { + nVar = s3.v(null, true); + } + } else { + int ordinal2 = aVar5.ordinal(); + if (ordinal2 == 2) { + if (jVar3.b()) { + obj3 = b.g.a.c.g0.u.t.l; + } + z12 = true; + obj3 = null; + nVar = s3.v(obj3, z12); + } else if (ordinal2 == 3) { + obj3 = b.g.a.c.g0.u.t.l; + } else if (ordinal2 != 4) { + if (ordinal2 == 5) { + obj3 = xVar.A(null, d2._contentFilter); + if (obj3 != null) { + z12 = xVar.B(obj3); + nVar = s3.v(obj3, z12); + } + } + z12 = true; + obj3 = null; + nVar = s3.v(obj3, z12); + } else { + obj3 = b.c.a.a0.d.s0(jVar3); + if (obj3 != null && obj3.getClass().isArray()) { + obj3 = b.c.a.a0.d.p0(obj3); + } + } + z12 = true; + nVar = s3.v(obj3, z12); + } + } else { + nVar = nVar6; + } + if (this._factoryConfig.a()) { + b.g.a.c.i0.b bVar2 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar2.hasNext()) { + Objects.requireNonNull((g) bVar2.next()); + } + } + } + } else { + cVar4 = cVar6; + b.g.a.c.n nVar7 = null; + b.g.a.c.i0.b bVar3 = (b.g.a.c.i0.b) j(); + while (bVar3.hasNext() && (nVar7 = ((r) bVar3.next()).f(vVar3, fVar, cVar, H2, c2, H)) == null) { + fVar = fVar; + } + nVar = nVar7 == null ? e(xVar, jVar, cVar) : nVar7; + if (nVar != null && this._factoryConfig.a()) { + b.g.a.c.i0.b bVar4 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar4.hasNext()) { + Objects.requireNonNull((g) bVar4.next()); + } + } + } + aVar2 = aVar4; + aVar = aVar3; + cls = cls3; + cVar3 = cVar5; + cVar2 = cVar4; + } else { + i.c cVar10 = cVar6; + b.g.a.c.n nVar8 = null; + if (jVar.u()) { + b.g.a.c.h0.d dVar = (b.g.a.c.h0.d) jVar; + if (dVar instanceof b.g.a.c.h0.e) { + b.g.a.c.h0.e eVar = (b.g.a.c.h0.e) dVar; + v vVar5 = xVar._config; + b.g.a.c.i0.b bVar5 = (b.g.a.c.i0.b) j(); + while (true) { + if (!bVar5.hasNext()) { + aVar2 = aVar4; + aVar = aVar3; + cls = cls3; + cVar3 = cVar5; + cVar2 = cVar10; + break; + } + aVar2 = aVar4; + aVar = aVar3; + cVar2 = cVar10; + cls = cls3; + cVar3 = cVar5; + nVar8 = ((r) bVar5.next()).g(vVar5, eVar, cVar, c2, H); + if (nVar8 != null) { + break; + } + cls3 = cls; + cVar5 = cVar3; + aVar4 = aVar2; + aVar3 = aVar; + cVar10 = cVar2; + vVar5 = vVar5; + bVar5 = bVar5; + } + if (nVar8 == null && (nVar8 = e(xVar, eVar, cVar3)) == null) { + if (cVar3.a(null).e() != cVar2) { + Class cls4 = eVar._class; + if (EnumSet.class.isAssignableFrom(cls4)) { + j jVar4 = eVar._elementType; + if (!(b.g.a.c.i0.d.q(jVar4._class) && jVar4._class != cls)) { + jVar4 = null; + } + nVar3 = new b.g.a.c.g0.u.n(jVar4); + } else { + Class cls5 = eVar._elementType._class; + if (!RandomAccess.class.isAssignableFrom(cls4)) { + z10 = z15; + gVar = c2; + nVar4 = H; + if (cls5 == String.class && b.g.a.c.i0.d.s(nVar4)) { + nVar8 = b.g.a.c.g0.t.o.k; + } + } else if (cls5 == String.class) { + if (b.g.a.c.i0.d.s(H)) { + nVar8 = b.g.a.c.g0.t.g.k; + } + z10 = z15; + gVar = c2; + nVar4 = H; + } else { + z10 = z15; + gVar = c2; + nVar4 = H; + nVar8 = new b.g.a.c.g0.t.f(eVar._elementType, z10, gVar, nVar4); + } + if (nVar8 == null) { + nVar3 = new b.g.a.c.g0.u.j(eVar._elementType, z10, gVar, nVar4); + } + } + nVar = nVar3; + if (this._factoryConfig.a()) { + b.g.a.c.i0.b bVar6 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar6.hasNext()) { + Objects.requireNonNull((g) bVar6.next()); + } + } + } + } + nVar = nVar8; + if (this._factoryConfig.a()) { + } + } else { + aVar2 = aVar4; + aVar = aVar3; + cls = cls3; + cVar3 = cVar5; + g gVar4 = c2; + b.g.a.c.n nVar9 = H; + cVar2 = cVar10; + b.g.a.c.i0.b bVar7 = (b.g.a.c.i0.b) j(); + b.g.a.c.n nVar10 = null; + while (bVar7.hasNext() && (nVar10 = ((r) bVar7.next()).d(vVar3, dVar, cVar, gVar4, nVar9)) == null) { + vVar3 = vVar3; + gVar4 = gVar4; + nVar9 = nVar9; + } + nVar = nVar10 == null ? e(xVar, jVar, cVar) : nVar10; + if (nVar != null && this._factoryConfig.a()) { + b.g.a.c.i0.b bVar8 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar8.hasNext()) { + Objects.requireNonNull((g) bVar8.next()); + } + } + } + } else { + aVar2 = aVar4; + aVar = aVar3; + cls = cls3; + cVar3 = cVar5; + boolean z16 = z15; + cVar2 = cVar10; + if (jVar instanceof b.g.a.c.h0.a) { + b.g.a.c.h0.a aVar6 = (b.g.a.c.h0.a) jVar; + v vVar6 = xVar._config; + b.g.a.c.i0.b bVar9 = (b.g.a.c.i0.b) j(); + nVar = null; + while (true) { + if (!bVar9.hasNext()) { + z9 = z16; + break; + } + z9 = z16; + nVar = ((r) bVar9.next()).e(vVar6, aVar6, cVar, c2, H); + if (nVar != null) { + break; + } + z16 = z9; + vVar6 = vVar6; + } + if (nVar == null) { + Class cls6 = aVar6._class; + if (H == null || b.g.a.c.i0.d.s(H)) { + nVar = String[].class == cls6 ? b.g.a.c.g0.t.n.k : i0.a.get(cls6.getName()); + } + if (nVar == null) { + nVar = new d0(aVar6._componentType, z9, c2, H); + } + } + if (this._factoryConfig.a()) { + b.g.a.c.i0.b bVar10 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar10.hasNext()) { + Objects.requireNonNull((g) bVar10.next()); + } + } + } + } + nVar = null; + } + if (nVar != null) { + return nVar; + } + i = 3; + z13 = g; + } else { + aVar2 = aVar4; + aVar = aVar3; + cVar2 = cVar6; + cls = cls3; + cVar3 = cVar5; + if (jVar.b()) { + b.g.a.c.h0.i iVar2 = (b.g.a.c.h0.i) jVar; + j jVar5 = iVar2._referencedType; + g gVar5 = (g) jVar5._typeHandler; + v vVar7 = xVar._config; + if (gVar5 == null) { + gVar5 = c(vVar7, jVar5); + } + g gVar6 = gVar5; + b.g.a.c.n nVar11 = (b.g.a.c.n) jVar5._valueHandler; + b.g.a.c.i0.b bVar11 = (b.g.a.c.i0.b) j(); + while (true) { + if (bVar11.hasNext()) { + nVar = ((r) bVar11.next()).a(vVar7, iVar2, cVar, gVar6, nVar11); + if (nVar != null) { + break; + } + nVar11 = nVar11; + gVar6 = gVar6; + vVar7 = vVar7; + } else if (iVar2.B(AtomicReference.class)) { + j jVar6 = iVar2._referencedType; + p.b d3 = d(xVar, cVar3, jVar6, AtomicReference.class); + p.a aVar7 = d3 == null ? aVar2 : d3._contentInclusion; + if (aVar7 == aVar2 || aVar7 == aVar) { + i4 = 3; + obj2 = null; + z8 = false; + } else { + int ordinal3 = aVar7.ordinal(); + if (ordinal3 != 2) { + i4 = 3; + if (ordinal3 == 3) { + obj2 = b.g.a.c.g0.u.t.l; + } else if (ordinal3 == 4) { + obj2 = b.c.a.a0.d.s0(jVar6); + if (obj2 != null && obj2.getClass().isArray()) { + obj2 = b.c.a.a0.d.p0(obj2); + } + } else if (ordinal3 == 5) { + obj2 = xVar.A(null, d3._contentFilter); + if (obj2 != null) { + z8 = xVar.B(obj2); + } + } + z8 = true; + } else { + i4 = 3; + if (jVar6.b()) { + obj2 = b.g.a.c.g0.u.t.l; + z8 = true; + } + } + obj2 = null; + z8 = true; + } + nVar = new b.g.a.c.g0.u.c(iVar2, z13, gVar6, nVar11).t(obj2, z8); + i = i4; + } else { + nVar = null; + } + } + } else { + i = 3; + b.g.a.c.i0.b bVar12 = (b.g.a.c.i0.b) j(); + b.g.a.c.n nVar12 = null; + while (bVar12.hasNext() && (nVar12 = ((r) bVar12.next()).b(vVar2, jVar, cVar3)) == null) { + } + nVar = nVar12; + } + if (nVar == null) { + nVar = e(xVar, jVar, cVar); + } + } + if (nVar == null) { + String name = jVar._class.getName(); + b.g.a.c.n nVar13 = b.j.get(name); + if (nVar13 != null || (cls2 = b.k.get(name)) == null) { + nVar = nVar13; + i2 = 0; + } else { + i2 = 0; + nVar = (b.g.a.c.n) b.g.a.c.i0.d.g(cls2, false); + } + if (nVar == null) { + if (jVar.w()) { + v vVar8 = xVar._config; + i.d a = cVar3.a(null); + if (a.e() == cVar2) { + Iterator it = ((b.g.a.c.c0.q) cVar3).d().iterator(); + while (true) { + if (it.hasNext()) { + if (it.next().p().equals("declaringClass")) { + it.remove(); + break; + } + } else { + break; + } + } + nVar = null; + } else { + Class cls7 = jVar._class; + int i5 = m.k; + m mVar = new m(b.g.a.c.i0.f.a(vVar8, cls7), m.p(cls7, a, true, null)); + if (this._factoryConfig.a()) { + b.g.a.c.i0.b bVar13 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar13.hasNext()) { + Objects.requireNonNull((g) bVar13.next()); + } + } + nVar = mVar; + } + c = 1; + } else { + c = 1; + Class cls8 = jVar._class; + ?? a2 = b.g.a.c.b0.f.l.a(xVar._config, jVar, cVar3); + if (a2 == 0) { + if (Calendar.class.isAssignableFrom(cls8)) { + nVar = h.k; + } else if (Date.class.isAssignableFrom(cls8)) { + nVar = k.k; + } else if (Map.Entry.class.isAssignableFrom(cls8)) { + j i6 = jVar.i(Map.Entry.class); + j h = i6.h(i2); + j h2 = i6.h(1); + i.d i7 = xVar._config.i(Map.Entry.class); + i.d a3 = cVar3.a(null); + if (a3 != null) { + i7 = a3.k(i7); + } + if (i7.e() == cVar2) { + a2 = 0; + } else { + a2 = new b.g.a.c.g0.t.i(h2, h, h2, z13, c(xVar._config, h2), null); + j jVar7 = a2._valueType; + p.b d4 = d(xVar, cVar3, jVar7, Map.Entry.class); + p.a aVar8 = d4 == null ? aVar2 : d4._contentInclusion; + if (!(aVar8 == aVar2 || aVar8 == aVar)) { + int ordinal4 = aVar8.ordinal(); + if (ordinal4 != 2) { + if (ordinal4 == i) { + obj = b.g.a.c.g0.u.t.l; + } else if (ordinal4 == 4) { + obj = b.c.a.a0.d.s0(jVar7); + if (obj != null && obj.getClass().isArray()) { + obj = b.c.a.a0.d.p0(obj); + } + } else if (ordinal4 == 5) { + obj = xVar.A(null, d4._contentFilter); + if (obj != null) { + z7 = xVar.B(obj); + if (!(a2._suppressableValue == obj && a2._suppressNulls == z7)) { + a2 = new b.g.a.c.g0.t.i(a2, a2._keySerializer, a2._valueSerializer, obj, z7); + } + } + } + z7 = true; + a2 = new b.g.a.c.g0.t.i(a2, a2._keySerializer, a2._valueSerializer, obj, z7); + } else if (jVar7.b()) { + obj = b.g.a.c.g0.u.t.l; + z7 = true; + a2 = new b.g.a.c.g0.t.i(a2, a2._keySerializer, a2._valueSerializer, obj, z7); + } + obj = null; + z7 = true; + a2 = new b.g.a.c.g0.t.i(a2, a2._keySerializer, a2._valueSerializer, obj, z7); + } + } + } else { + nVar = ByteBuffer.class.isAssignableFrom(cls8) ? new b.g.a.c.g0.u.g() : InetAddress.class.isAssignableFrom(cls8) ? new b.g.a.c.g0.u.p() : InetSocketAddress.class.isAssignableFrom(cls8) ? new b.g.a.c.g0.u.q() : TimeZone.class.isAssignableFrom(cls8) ? new s0() : Charset.class.isAssignableFrom(cls8) ? t0.k : (!Number.class.isAssignableFrom(cls8) || (ordinal = cVar3.a(null).e().ordinal()) == i || ordinal == 4) ? null : ordinal != 8 ? b.g.a.c.g0.u.v.k : t0.k; + } + } + nVar = a2; + } + if (nVar == null) { + Class cls9 = jVar._class; + Annotation[] annotationArr = b.g.a.c.i0.d.a; + if ((cls9.isAnnotation() ? "annotation" : cls9.isArray() ? "array" : cls.isAssignableFrom(cls9) ? "enum" : cls9.isPrimitive() ? "primitive" : null) == null) { + String name2 = cls9.getName(); + if (!(name2.startsWith("net.sf.cglib.proxy.") || name2.startsWith("org.hibernate.proxy."))) { + z3 = true; + if (z3 && !b.g.a.c.i0.d.q(jVar._class)) { + nVar2 = null; + } else if (cVar3.a._class != Object.class) { + nVar2 = xVar.x(Object.class); + } else { + Class cls10 = jVar._class; + if (cls10.getName().startsWith("java.time.")) { + str3 = "Java 8 date/time"; + str2 = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"; + } else if (cls10.getName().startsWith("org.joda.time.")) { + str3 = "Joda date/time"; + str2 = "com.fasterxml.jackson.datatype:jackson-datatype-joda"; + } else { + str = null; + rVar = (str == null && xVar._config.a(jVar._class) == null) ? new r(jVar, str) : null; + if (rVar == null) { + nVar = rVar; + } else { + v vVar9 = xVar._config; + e eVar2 = new e(cVar3); + eVar2.c = vVar9; + b.g.a.c.c0.q qVar3 = (b.g.a.c.c0.q) cVar3; + List d5 = qVar3.d(); + v vVar10 = xVar._config; + b e2 = vVar10.e(); + HashMap hashMap = new HashMap(); + Iterator it2 = d5.iterator(); + while (it2.hasNext()) { + s next = it2.next(); + if (next.j() == null) { + it2.remove(); + } else { + Class r = next.r(); + Boolean bool = (Boolean) hashMap.get(r); + if (bool == null) { + vVar10.f(r); + bool = e2.c0(((b.g.a.c.c0.q) vVar10.o(r)).f); + if (bool == null) { + bool = Boolean.FALSE; + } + hashMap.put(r, bool); + } + if (bool.booleanValue()) { + it2.remove(); + } + } + } + if (vVar10.q(b.g.a.c.p.REQUIRE_SETTERS_FOR_GETTERS)) { + Iterator it3 = d5.iterator(); + while (it3.hasNext()) { + s next2 = it3.next(); + if (!next2.f() && !next2.u()) { + it3.remove(); + } + } + } + if (d5.isEmpty()) { + arrayList = null; + z4 = z13; + } else { + boolean g3 = g(vVar10, cVar3, null); + l lVar = new l(vVar10, cVar3); + ArrayList arrayList3 = new ArrayList(d5.size()); + for (s sVar : d5) { + b.g.a.c.c0.i j = sVar.j(); + if (!sVar.v()) { + b.a h3 = sVar.h(); + if (h3 != null) { + if (h3.a == 2) { + z6 = z13; + arrayList2 = arrayList3; + arrayList3 = arrayList2; + z13 = z6; + } + } + if (j instanceof b.g.a.c.c0.j) { + z6 = z13; + arrayList2 = arrayList3; + arrayList2.add(h(xVar, sVar, lVar, g3, (b.g.a.c.c0.j) j)); + } else { + z6 = z13; + arrayList2 = arrayList3; + arrayList2.add(h(xVar, sVar, lVar, g3, (b.g.a.c.c0.g) j)); + } + arrayList3 = arrayList2; + z13 = z6; + } else if (j == null) { + continue; + } else if (eVar2.h == null) { + eVar2.h = j; + } else { + StringBuilder R = a.R("Multiple type ids specified with "); + R.append(eVar2.h); + R.append(" and "); + R.append(j); + throw new IllegalArgumentException(R.toString()); + } + } + z4 = z13; + arrayList = arrayList3; + } + if (arrayList == null) { + arrayList = new ArrayList(); + } else { + int size2 = arrayList.size(); + for (int i8 = 0; i8 < size2; i8++) { + c cVar11 = (c) arrayList.get(i8); + g gVar7 = cVar11._typeSerializer; + if (gVar7 != null && gVar7.c() == c0.a.EXTERNAL_PROPERTY) { + t a4 = t.a(gVar7.b()); + Iterator it4 = arrayList.iterator(); + while (true) { + if (!it4.hasNext()) { + break; + } + c cVar12 = (c) it4.next(); + if (cVar12 != cVar11) { + t tVar = cVar12._wrapperName; + if (tVar != null) { + z5 = tVar.equals(a4); + } else { + if (a4._simpleName.equals(cVar12._name._value)) { + if (!(a4._namespace != null)) { + z5 = true; + } + } + z5 = false; + } + if (z5) { + cVar11._typeSerializer = null; + break; + } + } + } + } + } + } + xVar.v().a(vVar9, qVar3.f, arrayList); + if (this._factoryConfig.a()) { + b.g.a.c.i0.b bVar14 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar14.hasNext()) { + Objects.requireNonNull((g) bVar14.next()); + } + } + n.a s4 = vVar9.s(cVar3.a._class, qVar3.f); + Set d6 = s4 != null ? s4.d() : null; + Class cls11 = cVar3.a._class; + b.g.a.c.c0.c cVar13 = qVar3.f; + b e3 = vVar9.e(); + q.a A2 = e3 == null ? null : e3.A(vVar9, cVar13); + Set set = A2 != null ? A2._included : null; + if (set != null || (d6 != null && !d6.isEmpty())) { + Iterator it5 = arrayList.iterator(); + while (it5.hasNext()) { + if (b.c.a.a0.d.Z1(((c) it5.next())._name._value, d6, set)) { + it5.remove(); + } + } + } + if (this._factoryConfig.a()) { + b.g.a.c.i0.b bVar15 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar15.hasNext()) { + Objects.requireNonNull((g) bVar15.next()); + } + } + a0 a0Var = qVar3.j; + if (a0Var == null) { + jVar2 = null; + } else { + Class> cls12 = a0Var.c; + if (cls12 == l0.class) { + String str4 = a0Var.f667b._simpleName; + int size3 = arrayList.size(); + for (int i9 = 0; i9 != size3; i9++) { + c cVar14 = (c) arrayList.get(i9); + if (str4.equals(cVar14._name._value)) { + if (i9 > 0) { + arrayList.remove(i9); + arrayList.add(0, cVar14); + } + jVar2 = b.g.a.c.g0.t.j.a(cVar14._declaredType, null, new b.g.a.c.g0.t.k(a0Var, cVar14), a0Var.f); + } + } + Object[] objArr = new Object[2]; + objArr[0] = b.g.a.c.i0.d.n(cVar3.a); + objArr[1] = str4 == null ? "[null]" : b.g.a.c.i0.d.c(str4); + throw new IllegalArgumentException(String.format("Invalid Object Id definition for %s: cannot find property with name %s", objArr)); + } + jVar2 = b.g.a.c.g0.t.j.a(xVar.d().i(xVar.b(cls12), b.g.a.a.i0.class)[0], a0Var.f667b, xVar.e(qVar3.f, a0Var), a0Var.f); + } + eVar2.i = jVar2; + eVar2.d = arrayList; + eVar2.g = vVar9.e().g(qVar3.f); + b0 b0Var = qVar3.c; + if (b0Var != null) { + if (!b0Var.i) { + b0Var.h(); + } + LinkedList linkedList = b0Var.m; + if (linkedList == null) { + iVar = null; + } else if (linkedList.size() <= 1) { + iVar = b0Var.m.getFirst(); + } else { + b0Var.i("Multiple 'any-getter' methods defined (%s vs %s)", b0Var.m.get(0), b0Var.m.get(1)); + throw null; + } + if (iVar == null) { + b0 b0Var2 = qVar3.c; + if (!b0Var2.i) { + b0Var2.h(); + } + LinkedList linkedList2 = b0Var2.n; + if (linkedList2 == null) { + iVar = null; + } else if (linkedList2.size() <= 1) { + iVar = b0Var2.n.getFirst(); + } else { + b0Var2.i("Multiple 'any-getter' fields defined (%s vs %s)", b0Var2.n.get(0), b0Var2.n.get(1)); + throw null; + } + if (iVar != null) { + if (!Map.class.isAssignableFrom(iVar.d())) { + throw new IllegalArgumentException(String.format("Invalid 'any-getter' annotation on field '%s': type is not instance of java.util.Map", iVar.c())); + } + } + } else if (!Map.class.isAssignableFrom(iVar.d())) { + throw new IllegalArgumentException(String.format("Invalid 'any-getter' annotation on method %s(): return type is not instance of java.util.Map", iVar.c())); + } + if (iVar != null) { + j e4 = iVar.e(); + j k = e4.k(); + g c4 = c(vVar9, k); + b.g.a.c.n f = f(xVar, iVar); + if (f == null) { + f = b.g.a.c.g0.u.t.s(null, null, e4, vVar9.q(b.g.a.c.p.USE_STATIC_TYPING), c4, null, null, null); + } + eVar2.f = new a(new d.a(t.a(iVar.c()), k, null, iVar, b.g.a.c.s.k), iVar, f); + } + List list2 = eVar2.d; + boolean q = vVar9.q(b.g.a.c.p.DEFAULT_VIEW_INCLUSION); + size = list2.size(); + c[] cVarArr = new c[size]; + i3 = 0; + int i10 = 0; + while (i3 < size) { + c cVar15 = list2.get(i3); + Class[] clsArr = cVar15._includeInViews; + if (clsArr == null || clsArr.length == 0) { + list = list2; + if (q) { + cVarArr[i3] = cVar15; + } + } else { + i10++; + list = list2; + cVarArr[i3] = clsArr.length == 1 ? new b.g.a.c.g0.t.e(cVar15, clsArr[0]) : new b.g.a.c.g0.t.d(cVar15, clsArr); + } + i3++; + list2 = list; + } + if (!q || i10 != 0) { + if (size != eVar2.d.size()) { + eVar2.e = cVarArr; + } else { + throw new IllegalArgumentException(String.format("Trying to set %d filtered properties; must match length of non-filtered `properties` (%d)", Integer.valueOf(size), Integer.valueOf(eVar2.d.size()))); + } + } + if (this._factoryConfig.a()) { + b.g.a.c.i0.b bVar16 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar16.hasNext()) { + Objects.requireNonNull((g) bVar16.next()); + } + } + try { + nVar = eVar2.a(); + if (nVar == null) { + if (jVar.A()) { + nVar = new d(eVar2.f687b.a, eVar2, b.g.a.c.g0.u.d.k, null); + } else { + Class cls13 = jVar._class; + if (Iterator.class.isAssignableFrom(cls13)) { + j[] i11 = vVar9._base._typeFactory.i(jVar, Iterator.class); + j k2 = (i11 == null || i11.length != 1) ? b.g.a.c.h0.n.k() : i11[0]; + nVar = new b.g.a.c.g0.t.h(k2, z4, c(vVar9, k2)); + } else if (Iterable.class.isAssignableFrom(cls13)) { + j[] i12 = vVar9._base._typeFactory.i(jVar, Iterable.class); + j k3 = (i12 == null || i12.length != 1) ? b.g.a.c.h0.n.k() : i12[0]; + nVar = new b.g.a.c.g0.u.r(k3, z4, c(vVar9, k3)); + } else { + nVar = CharSequence.class.isAssignableFrom(cls13) ? t0.k : null; + } + if (nVar == null) { + if (qVar3.f.t.size() > 0) { + nVar = new d(eVar2.f687b.a, eVar2, b.g.a.c.g0.u.d.k, null); + } + } + } + } + } catch (RuntimeException e5) { + xVar.F(cVar3, "Failed to construct BeanSerializer for %s: (%s) %s", cVar3.a, e5.getClass().getName(), e5.getMessage()); + throw null; + } + } + iVar = null; + if (iVar != null) { + } + List list2 = eVar2.d; + boolean q = vVar9.q(b.g.a.c.p.DEFAULT_VIEW_INCLUSION); + size = list2.size(); + c[] cVarArr = new c[size]; + i3 = 0; + int i10 = 0; + while (i3 < size) { + } + if (size != eVar2.d.size()) { + } + } + if (nVar == null) { + nVar = xVar.x(cVar3.a._class); + } + } + Object[] objArr2 = new Object[i]; + objArr2[i2] = str3; + objArr2[c] = b.g.a.c.i0.d.n(jVar); + objArr2[2] = str2; + str = String.format("%s type %s not supported by default: add Module \"%s\" to enable handling", objArr2); + if (str == null) { + } + if (rVar == null) { + } + if (nVar == null) { + } + } + nVar = nVar2; + if (nVar == null) { + } + } + } + z3 = false; + if (z3) { + } + if (cVar3.a._class != Object.class) { + } + } + } + } + if (nVar != null && this._factoryConfig.a()) { + b.g.a.c.i0.b bVar17 = (b.g.a.c.i0.b) this._factoryConfig.b(); + while (bVar17.hasNext()) { + Objects.requireNonNull((g) bVar17.next()); + } + } + return nVar; + } + + public Iterable j() { + return new b.g.a.c.i0.b(this._factoryConfig._additionalSerializers); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/g.java b/app/src/main/java/b/g/a/c/g0/g.java new file mode 100644 index 0000000000..06a8c7a8ec --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/g.java @@ -0,0 +1,4 @@ +package b.g.a.c.g0; +/* compiled from: BeanSerializerModifier */ +public abstract class g { +} diff --git a/app/src/main/java/b/g/a/c/g0/h.java b/app/src/main/java/b/g/a/c/g0/h.java new file mode 100644 index 0000000000..7766d3387b --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/h.java @@ -0,0 +1,27 @@ +package b.g.a.c.g0; + +import b.g.a.c.e0.g; +import b.g.a.c.g0.u.q0; +import b.g.a.c.j; +/* compiled from: ContainerSerializer */ +public abstract class h extends q0 { + public h(h hVar) { + super(hVar._handledType, false); + } + + public h(j jVar) { + super(jVar); + } + + public h(Class cls) { + super(cls); + } + + public h(Class cls, boolean z2) { + super(cls, z2); + } + + public abstract h p(g gVar); + + public abstract boolean q(T t); +} diff --git a/app/src/main/java/b/g/a/c/g0/i.java b/app/src/main/java/b/g/a/c/g0/i.java new file mode 100644 index 0000000000..8c2e375c46 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/i.java @@ -0,0 +1,10 @@ +package b.g.a.c.g0; + +import b.g.a.c.d; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +/* compiled from: ContextualSerializer */ +public interface i { + n a(x xVar, d dVar) throws JsonMappingException; +} diff --git a/app/src/main/java/b/g/a/c/g0/j.java b/app/src/main/java/b/g/a/c/g0/j.java new file mode 100644 index 0000000000..12a4b0bde4 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/j.java @@ -0,0 +1,303 @@ +package b.g.a.c.g0; + +import b.g.a.a.i0; +import b.g.a.b.d; +import b.g.a.b.k; +import b.g.a.c.c0.b; +import b.g.a.c.c0.q; +import b.g.a.c.c0.s; +import b.g.a.c.e0.g; +import b.g.a.c.g0.t.m; +import b.g.a.c.g0.t.p; +import b.g.a.c.g0.t.u; +import b.g.a.c.i0.h; +import b.g.a.c.n; +import b.g.a.c.t; +import b.g.a.c.v; +import b.g.a.c.w; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.exc.InvalidDefinitionException; +import java.io.IOException; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.IdentityHashMap; +import java.util.Map; +import java.util.Objects; +/* compiled from: DefaultSerializerProvider */ +public abstract class j extends x implements Serializable { + private static final long serialVersionUID = 1; + public transient Map m; + public transient ArrayList> n; + public transient d o; + + /* compiled from: DefaultSerializerProvider */ + public static final class a extends j { + private static final long serialVersionUID = 1; + + public a() { + } + + public a(x xVar, v vVar, q qVar) { + super(xVar, vVar, qVar); + } + + @Override // b.g.a.c.g0.j + public j K(v vVar, q qVar) { + return new a(this, vVar, qVar); + } + } + + public j() { + } + + public j(x xVar, v vVar, q qVar) { + super(xVar, vVar, qVar); + } + + @Override // b.g.a.c.x + public Object A(s sVar, Class cls) { + if (cls == null) { + return null; + } + Objects.requireNonNull(this._config._base); + return b.g.a.c.i0.d.g(cls, this._config.b()); + } + + @Override // b.g.a.c.x + public boolean B(Object obj) throws JsonMappingException { + try { + return obj.equals(null); + } catch (Throwable th) { + InvalidDefinitionException invalidDefinitionException = new InvalidDefinitionException(this.o, String.format("Problem determining whether filter of type '%s' should filter out `null` values: (%s) %s", obj.getClass().getName(), th.getClass().getName(), b.g.a.c.i0.d.h(th)), b(obj.getClass())); + invalidDefinitionException.initCause(th); + throw invalidDefinitionException; + } + } + + @Override // b.g.a.c.x + public n H(b bVar, Object obj) throws JsonMappingException { + n nVar; + if (obj instanceof n) { + nVar = (n) obj; + } else if (obj instanceof Class) { + Class cls = (Class) obj; + if (cls == n.a.class || b.g.a.c.i0.d.p(cls)) { + return null; + } + if (n.class.isAssignableFrom(cls)) { + Objects.requireNonNull(this._config._base); + nVar = (n) b.g.a.c.i0.d.g(cls, this._config.b()); + } else { + b.g.a.c.j e = bVar.e(); + StringBuilder R = b.d.b.a.a.R("AnnotationIntrospector returned Class "); + R.append(cls.getName()); + R.append("; expected Class"); + f(e, R.toString()); + throw null; + } + } else { + b.g.a.c.j e2 = bVar.e(); + StringBuilder R2 = b.d.b.a.a.R("AnnotationIntrospector returned serializer definition of type "); + R2.append(obj.getClass().getName()); + R2.append("; expected type JsonSerializer or Class instead"); + f(e2, R2.toString()); + throw null; + } + if (nVar instanceof o) { + ((o) nVar).b(this); + } + return nVar; + } + + public final void I(d dVar, Object obj, n nVar, t tVar) throws IOException { + try { + dVar.c0(); + v vVar = this._config; + k kVar = tVar._encodedSimple; + if (kVar == null) { + kVar = vVar == null ? new b.g.a.b.p.j(tVar._simpleName) : new b.g.a.b.p.j(tVar._simpleName); + tVar._encodedSimple = kVar; + } + dVar.x(kVar); + nVar.f(obj, dVar, this); + dVar.u(); + } catch (Exception e) { + throw J(dVar, e); + } + } + + public final IOException J(d dVar, Exception exc) { + if (exc instanceof IOException) { + return (IOException) exc; + } + String h = b.g.a.c.i0.d.h(exc); + if (h == null) { + StringBuilder R = b.d.b.a.a.R("[no message for "); + R.append(exc.getClass().getName()); + R.append("]"); + h = R.toString(); + } + return new JsonMappingException(dVar, h, exc); + } + + public abstract j K(v vVar, q qVar); + + /* JADX WARNING: Removed duplicated region for block: B:31:0x0054 */ + /* JADX WARNING: Removed duplicated region for block: B:50:0x00a7 */ + /* JADX WARNING: Removed duplicated region for block: B:77:0x0119 */ + public void L(d dVar, Object obj) throws IOException { + n nVar; + t tVar; + n nVar2; + boolean z2; + this.o = dVar; + if (obj == null) { + try { + this._nullValueSerializer.f(null, dVar, this); + } catch (Exception e) { + throw J(dVar, e); + } + } else { + Class cls = obj.getClass(); + m mVar = this._knownSerializers; + m.a aVar = mVar.a[mVar.f697b & (cls.getName().hashCode() + 1)]; + if (aVar != null) { + if (!(aVar.c == cls && aVar.e)) { + while (true) { + aVar = aVar.f698b; + if (aVar == null) { + break; + } + if (aVar.c != cls || !aVar.e) { + z2 = false; + continue; + } else { + z2 = true; + continue; + } + if (z2) { + nVar = aVar.a; + break; + } + } + } else { + nVar = aVar.a; + } + if (nVar == null) { + p pVar = this._serializerCache; + synchronized (pVar) { + nVar2 = pVar.a.get(new b.g.a.c.i0.u(cls, true)); + } + if (nVar2 != null) { + nVar = nVar2; + } else { + nVar = u(cls, null); + q qVar = this._serializerFactory; + v vVar = this._config; + g c = qVar.c(vVar, vVar._base._typeFactory.b(null, cls, b.g.a.c.h0.n.l)); + if (c != null) { + nVar = new p(c.a(null), nVar); + } + p pVar2 = this._serializerCache; + synchronized (pVar2) { + if (pVar2.a.put(new b.g.a.c.i0.u(cls, true), nVar) == null) { + pVar2.f689b.set(null); + } + } + } + } + v vVar2 = this._config; + tVar = vVar2._rootName; + if (tVar != null) { + if (vVar2.v(w.WRAP_ROOT_VALUE)) { + v vVar3 = this._config; + t tVar2 = vVar3._rootName; + if (tVar2 == null) { + b.g.a.c.i0.p pVar3 = vVar3._rootNames; + Objects.requireNonNull(pVar3); + b.g.a.c.h0.b bVar = new b.g.a.c.h0.b(cls); + t tVar3 = pVar3.j.k.get(bVar); + if (tVar3 != null) { + tVar2 = tVar3; + } else { + t F = vVar3.e().F(((q) vVar3.o(cls)).f); + if (F == null || !F.c()) { + F = t.a(cls.getSimpleName()); + } + h hVar = pVar3.j; + if (hVar.k.size() >= hVar.j) { + synchronized (hVar) { + if (hVar.k.size() >= hVar.j) { + hVar.k.clear(); + } + } + } + hVar.k.put(bVar, F); + tVar2 = F; + } + } + I(dVar, obj, nVar, tVar2); + return; + } + } else if (!tVar.d()) { + I(dVar, obj, nVar, tVar); + return; + } + nVar.f(obj, dVar, this); + } + nVar = null; + if (nVar == null) { + } + v vVar2 = this._config; + tVar = vVar2._rootName; + if (tVar != null) { + } + try { + nVar.f(obj, dVar, this); + } catch (Exception e2) { + throw J(dVar, e2); + } + } + } + + @Override // b.g.a.c.x + public u p(Object obj, i0 i0Var) { + Map map = this.m; + if (map == null) { + this.m = D(w.USE_EQUALITY_FOR_OBJECT_ID) ? new HashMap<>() : new IdentityHashMap<>(); + } else { + u uVar = map.get(obj); + if (uVar != null) { + return uVar; + } + } + i0 i0Var2 = null; + ArrayList> arrayList = this.n; + if (arrayList != null) { + int i = 0; + int size = arrayList.size(); + while (true) { + if (i >= size) { + break; + } + i0 i0Var3 = this.n.get(i); + if (i0Var3.a(i0Var)) { + i0Var2 = i0Var3; + break; + } + i++; + } + } else { + this.n = new ArrayList<>(8); + } + if (i0Var2 == null) { + i0Var2 = i0Var.e(this); + this.n.add(i0Var2); + } + u uVar2 = new u(i0Var2); + this.m.put(obj, uVar2); + return uVar2; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/k.java b/app/src/main/java/b/g/a/c/g0/k.java new file mode 100644 index 0000000000..eda780954a --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/k.java @@ -0,0 +1,4 @@ +package b.g.a.c.g0; +/* compiled from: FilterProvider */ +public abstract class k { +} diff --git a/app/src/main/java/b/g/a/c/g0/l.java b/app/src/main/java/b/g/a/c/g0/l.java new file mode 100644 index 0000000000..de561068bd --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/l.java @@ -0,0 +1,66 @@ +package b.g.a.c.g0; + +import b.d.b.a.a; +import b.g.a.a.p; +import b.g.a.c.b; +import b.g.a.c.c; +import b.g.a.c.j; +import b.g.a.c.v; +import b.g.a.c.y.e; +import com.fasterxml.jackson.databind.JsonMappingException; +/* compiled from: PropertyBuilder */ +public class l { + public final v a; + + /* renamed from: b reason: collision with root package name */ + public final c f688b; + public final b c; + public Object d; + public final p.b e; + public final boolean f; + + public l(v vVar, c cVar) { + this.a = vVar; + this.f688b = cVar; + p.b bVar = p.b.j; + p.b bVar2 = p.b.j; + p.b c = cVar.c(bVar2); + vVar.k(cVar.a._class, bVar2); + bVar2 = c != null ? c.a(bVar2) : bVar2; + p.b bVar3 = vVar._configOverrides._defaultInclusion; + this.e = bVar3 == null ? bVar2 : bVar3.a(bVar2); + this.f = bVar2._valueInclusion == p.a.NON_DEFAULT; + this.c = vVar.e(); + } + + public j a(b.g.a.c.c0.b bVar, boolean z2, j jVar) throws JsonMappingException { + j e02 = this.c.e0(this.a, bVar, jVar); + boolean z3 = true; + if (e02 != jVar) { + Class cls = e02._class; + Class cls2 = jVar._class; + if (!cls.isAssignableFrom(cls2) && !cls2.isAssignableFrom(cls)) { + StringBuilder R = a.R("Illegal concrete-type annotation for method '"); + R.append(bVar.c()); + R.append("': class "); + R.append(cls.getName()); + R.append(" not a super-type of (declared) class "); + R.append(cls2.getName()); + throw new IllegalArgumentException(R.toString()); + } + z2 = true; + jVar = e02; + } + e.b K = this.c.K(bVar); + if (!(K == null || K == e.b.DEFAULT_TYPING)) { + if (K != e.b.STATIC) { + z3 = false; + } + z2 = z3; + } + if (z2) { + return jVar.G(); + } + return null; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/m.java b/app/src/main/java/b/g/a/c/g0/m.java new file mode 100644 index 0000000000..46eefef679 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/m.java @@ -0,0 +1,4 @@ +package b.g.a.c.g0; +/* compiled from: PropertyFilter */ +public interface m { +} diff --git a/app/src/main/java/b/g/a/c/g0/n.java b/app/src/main/java/b/g/a/c/g0/n.java new file mode 100644 index 0000000000..491db05806 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/n.java @@ -0,0 +1,21 @@ +package b.g.a.c.g0; + +import b.g.a.c.c0.s; +import b.g.a.c.c0.v; +import java.io.Serializable; +/* compiled from: PropertyWriter */ +public abstract class n extends v implements Serializable { + private static final long serialVersionUID = 1; + + public n(s sVar) { + super(sVar.o()); + } + + public n(n nVar) { + super(nVar); + } + + public n(b.g.a.c.s sVar) { + super(sVar); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/o.java b/app/src/main/java/b/g/a/c/g0/o.java new file mode 100644 index 0000000000..6501822903 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/o.java @@ -0,0 +1,8 @@ +package b.g.a.c.g0; + +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +/* compiled from: ResolvableSerializer */ +public interface o { + void b(x xVar) throws JsonMappingException; +} diff --git a/app/src/main/java/b/g/a/c/g0/p.java b/app/src/main/java/b/g/a/c/g0/p.java new file mode 100644 index 0000000000..e83c7e1b92 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/p.java @@ -0,0 +1,31 @@ +package b.g.a.c.g0; + +import b.g.a.c.g0.t.m; +import b.g.a.c.i0.u; +import b.g.a.c.j; +import b.g.a.c.n; +import java.util.HashMap; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: SerializerCache */ +public final class p { + public final HashMap> a = new HashMap<>(64); + + /* renamed from: b reason: collision with root package name */ + public final AtomicReference f689b = new AtomicReference<>(); + + public n a(j jVar) { + n nVar; + synchronized (this) { + nVar = this.a.get(new u(jVar, false)); + } + return nVar; + } + + public n b(Class cls) { + n nVar; + synchronized (this) { + nVar = this.a.get(new u(cls, false)); + } + return nVar; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/q.java b/app/src/main/java/b/g/a/c/g0/q.java new file mode 100644 index 0000000000..1676eb4def --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/q.java @@ -0,0 +1,16 @@ +package b.g.a.c.g0; + +import b.g.a.c.e0.g; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.v; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +/* compiled from: SerializerFactory */ +public abstract class q { + public abstract n a(x xVar, j jVar, n nVar) throws JsonMappingException; + + public abstract n b(x xVar, j jVar) throws JsonMappingException; + + public abstract g c(v vVar, j jVar) throws JsonMappingException; +} diff --git a/app/src/main/java/b/g/a/c/g0/r.java b/app/src/main/java/b/g/a/c/g0/r.java new file mode 100644 index 0000000000..2bfcbb9582 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/r.java @@ -0,0 +1,28 @@ +package b.g.a.c.g0; + +import b.g.a.c.c; +import b.g.a.c.e0.g; +import b.g.a.c.h0.a; +import b.g.a.c.h0.d; +import b.g.a.c.h0.e; +import b.g.a.c.h0.f; +import b.g.a.c.h0.i; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.v; +/* compiled from: Serializers */ +public interface r { + n a(v vVar, i iVar, c cVar, g gVar, n nVar); + + n b(v vVar, j jVar, c cVar); + + n c(v vVar, b.g.a.c.h0.g gVar, c cVar, n nVar, g gVar2, n nVar2); + + n d(v vVar, d dVar, c cVar, g gVar, n nVar); + + n e(v vVar, a aVar, c cVar, g gVar, n nVar); + + n f(v vVar, f fVar, c cVar, n nVar, g gVar, n nVar2); + + n g(v vVar, e eVar, c cVar, g gVar, n nVar); +} diff --git a/app/src/main/java/b/g/a/c/g0/s.java b/app/src/main/java/b/g/a/c/g0/s.java new file mode 100644 index 0000000000..35427c12cb --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/s.java @@ -0,0 +1,139 @@ +package b.g.a.c.g0; + +import b.g.a.a.p; +import b.g.a.b.d; +import b.g.a.c.c0.c; +import b.g.a.c.c0.i; +import b.g.a.c.e0.g; +import b.g.a.c.g0.t.l; +import b.g.a.c.i0.a; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.x; +import java.io.Serializable; +/* compiled from: VirtualBeanPropertyWriter */ +public abstract class s extends c implements Serializable { + private static final long serialVersionUID = 1; + + public s() { + } + + /* JADX WARNING: Illegal instructions before constructor call */ + public s(b.g.a.c.c0.s sVar, a aVar, j jVar, n nVar, g gVar, j jVar2, p.b bVar, Class[] clsArr) { + super(sVar, r5, aVar, jVar, null, null, null, r11, r0, null); + boolean z2; + Object obj; + p.a aVar2 = p.a.USE_DEFAULTS; + p.a aVar3 = p.a.ALWAYS; + i q = sVar.q(); + boolean z3 = false; + if (bVar == null) { + z2 = false; + } else { + p.a aVar4 = bVar._valueInclusion; + if (!(aVar4 == aVar3 || aVar4 == aVar2)) { + z3 = true; + } + z2 = z3; + } + if (bVar == null) { + obj = Boolean.FALSE; + } else { + p.a aVar5 = bVar._valueInclusion; + obj = (aVar5 == aVar3 || aVar5 == p.a.NON_NULL || aVar5 == aVar2) ? null : p.a.NON_EMPTY; + } + } + + @Override // b.g.a.c.g0.c + public void h(Object obj, d dVar, x xVar) throws Exception { + Object j = j(obj, dVar, xVar); + if (j == null) { + n nVar = this._nullSerializer; + if (nVar != null) { + nVar.f(null, dVar, xVar); + } else { + dVar.A(); + } + } else { + n nVar2 = this._serializer; + if (nVar2 == null) { + Class cls = j.getClass(); + l lVar = this.n; + n c = lVar.c(cls); + nVar2 = c == null ? c(lVar, cls, xVar) : c; + } + Object obj2 = this._suppressableValue; + if (obj2 != null) { + if (p.a.NON_EMPTY == obj2) { + if (nVar2.d(xVar, j)) { + n nVar3 = this._nullSerializer; + if (nVar3 != null) { + nVar3.f(null, dVar, xVar); + return; + } else { + dVar.A(); + return; + } + } + } else if (obj2.equals(j)) { + n nVar4 = this._nullSerializer; + if (nVar4 != null) { + nVar4.f(null, dVar, xVar); + return; + } else { + dVar.A(); + return; + } + } + } + if (j != obj || !d(dVar, xVar, nVar2)) { + g gVar = this._typeSerializer; + if (gVar == null) { + nVar2.f(j, dVar, xVar); + } else { + nVar2.g(j, dVar, xVar, gVar); + } + } + } + } + + @Override // b.g.a.c.g0.c + public void i(Object obj, d dVar, x xVar) throws Exception { + Object j = j(obj, dVar, xVar); + if (j != null) { + n nVar = this._serializer; + if (nVar == null) { + Class cls = j.getClass(); + l lVar = this.n; + n c = lVar.c(cls); + nVar = c == null ? c(lVar, cls, xVar) : c; + } + Object obj2 = this._suppressableValue; + if (obj2 != null) { + if (p.a.NON_EMPTY == obj2) { + if (nVar.d(xVar, j)) { + return; + } + } else if (obj2.equals(j)) { + return; + } + } + if (j != obj || !d(dVar, xVar, nVar)) { + dVar.x(this._name); + g gVar = this._typeSerializer; + if (gVar == null) { + nVar.f(j, dVar, xVar); + } else { + nVar.g(j, dVar, xVar, gVar); + } + } + } else if (this._nullSerializer != null) { + dVar.x(this._name); + this._nullSerializer.f(null, dVar, xVar); + } + } + + public abstract Object j(Object obj, d dVar, x xVar) throws Exception; + + public abstract s k(b.g.a.c.z.l lVar, c cVar, b.g.a.c.c0.s sVar, j jVar); +} diff --git a/app/src/main/java/b/g/a/c/g0/t/a.java b/app/src/main/java/b/g/a/c/g0/t/a.java new file mode 100644 index 0000000000..425795cea4 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/a.java @@ -0,0 +1,28 @@ +package b.g.a.c.g0.t; + +import b.g.a.b.d; +import b.g.a.c.c0.c; +import b.g.a.c.g0.s; +import b.g.a.c.j; +import b.g.a.c.x; +import b.g.a.c.z.l; +/* compiled from: AttributePropertyWriter */ +public class a extends s { + private static final long serialVersionUID = 1; + public final String _attrName; + + public a(String str, b.g.a.c.c0.s sVar, b.g.a.c.i0.a aVar, j jVar) { + super(sVar, aVar, jVar, null, null, null, sVar.g(), null); + this._attrName = str; + } + + @Override // b.g.a.c.g0.s + public Object j(Object obj, d dVar, x xVar) throws Exception { + return xVar.w(this._attrName); + } + + @Override // b.g.a.c.g0.s + public s k(l lVar, c cVar, b.g.a.c.c0.s sVar, j jVar) { + throw new IllegalStateException("Should not be called on this type"); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/b.java b/app/src/main/java/b/g/a/c/g0/t/b.java new file mode 100644 index 0000000000..e37a5292d8 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/b.java @@ -0,0 +1,134 @@ +package b.g.a.c.g0.t; + +import b.d.b.a.a; +import b.g.a.b.h; +import b.g.a.c.e0.g; +import b.g.a.c.g0.c; +import b.g.a.c.g0.u.d; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Set; +/* compiled from: BeanAsArraySerializer */ +public class b extends d { + private static final long serialVersionUID = 1; + public final d _defaultSerializer; + + public b(d dVar) { + super(dVar, (j) null, dVar._propertyFilterId); + this._defaultSerializer = dVar; + } + + public b(d dVar, j jVar, Object obj) { + super(dVar, jVar, obj); + this._defaultSerializer = dVar; + } + + public b(d dVar, Set set, Set set2) { + super(dVar, set, set2); + this._defaultSerializer = dVar; + } + + @Override // b.g.a.c.n + public final void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + if (xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) { + c[] cVarArr = this._filteredProps; + if (cVarArr == null || xVar._serializationView == null) { + cVarArr = this._props; + } + boolean z2 = true; + if (cVarArr.length != 1) { + z2 = false; + } + if (z2) { + z(obj, dVar, xVar); + return; + } + } + dVar.X(obj); + z(obj, dVar, xVar); + dVar.t(); + } + + @Override // b.g.a.c.g0.u.d, b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + if (this._objectIdWriter != null) { + p(obj, dVar, xVar, gVar); + return; + } + b.g.a.b.s.b r = r(gVar, obj, h.START_ARRAY); + gVar.e(dVar, r); + dVar.e(obj); + z(obj, dVar, xVar); + gVar.f(dVar, r); + } + + @Override // b.g.a.c.n + public n h(b.g.a.c.i0.n nVar) { + return this._defaultSerializer.h(nVar); + } + + @Override // b.g.a.c.g0.u.d + public d s() { + return this; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("BeanAsArraySerializer for "); + R.append(this._handledType.getName()); + return R.toString(); + } + + @Override // b.g.a.c.g0.u.d + public d v(Set set, Set set2) { + return new b(this, set, set2); + } + + @Override // b.g.a.c.g0.u.d + public d w(Object obj) { + return new b(this, this._objectIdWriter, obj); + } + + @Override // b.g.a.c.g0.u.d + public d x(j jVar) { + return this._defaultSerializer.x(jVar); + } + + @Override // b.g.a.c.g0.u.d + public d y(c[] cVarArr, c[] cVarArr2) { + return this; + } + + public final void z(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + String str = "[anySetter]"; + c[] cVarArr = this._filteredProps; + if (cVarArr == null || xVar._serializationView == null) { + cVarArr = this._props; + } + try { + for (c cVar : cVarArr) { + if (cVar == null) { + dVar.A(); + } else { + cVar.h(obj, dVar, xVar); + } + } + } catch (Exception e) { + if (0 != cVarArr.length) { + str = cVarArr[0]._name._value; + } + o(xVar, e, obj, str); + throw null; + } catch (StackOverflowError e2) { + JsonMappingException jsonMappingException = new JsonMappingException(dVar, "Infinite recursion (StackOverflowError)", e2); + if (0 != cVarArr.length) { + str = cVarArr[0]._name._value; + } + jsonMappingException.e(new JsonMappingException.a(obj, str)); + throw jsonMappingException; + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/c.java b/app/src/main/java/b/g/a/c/g0/t/c.java new file mode 100644 index 0000000000..3442f40cd8 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/c.java @@ -0,0 +1,21 @@ +package b.g.a.c.g0.t; + +import b.g.a.b.d; +import b.g.a.c.g0.u.q0; +import b.g.a.c.x; +import java.io.IOException; +/* compiled from: FailingSerializer */ +public class c extends q0 { + public final String _msg; + + public c(String str) { + super(Object.class); + this._msg = str; + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + xVar.G(this._msg, new Object[0]); + throw null; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/d.java b/app/src/main/java/b/g/a/c/g0/t/d.java new file mode 100644 index 0000000000..8a4200f810 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/d.java @@ -0,0 +1,71 @@ +package b.g.a.c.g0.t; + +import b.g.a.c.g0.c; +import b.g.a.c.n; +import b.g.a.c.x; +import java.io.Serializable; +import java.util.Objects; +/* compiled from: FilteredBeanPropertyWriter */ +public final class d extends c implements Serializable { + private static final long serialVersionUID = 1; + public final c _delegate; + public final Class[] _views; + + public d(c cVar, Class[] clsArr) { + super(cVar, cVar._name); + this._delegate = cVar; + this._views = clsArr; + } + + @Override // b.g.a.c.g0.c + public void e(n nVar) { + this._delegate.e(nVar); + } + + @Override // b.g.a.c.g0.c + public void f(n nVar) { + this._delegate.f(nVar); + } + + @Override // b.g.a.c.g0.c + public c g(b.g.a.c.i0.n nVar) { + return new d(this._delegate.g(nVar), this._views); + } + + @Override // b.g.a.c.g0.c + public void h(Object obj, b.g.a.b.d dVar, x xVar) throws Exception { + if (j(xVar._serializationView)) { + this._delegate.h(obj, dVar, xVar); + return; + } + n nVar = this._delegate._nullSerializer; + if (nVar != null) { + nVar.f(null, dVar, xVar); + } else { + dVar.A(); + } + } + + @Override // b.g.a.c.g0.c + public void i(Object obj, b.g.a.b.d dVar, x xVar) throws Exception { + if (j(xVar._serializationView)) { + this._delegate.i(obj, dVar, xVar); + return; + } + Objects.requireNonNull(this._delegate); + Objects.requireNonNull(dVar); + } + + public final boolean j(Class cls) { + if (cls == null) { + return true; + } + int length = this._views.length; + for (int i = 0; i < length; i++) { + if (this._views[i].isAssignableFrom(cls)) { + return true; + } + } + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/e.java b/app/src/main/java/b/g/a/c/g0/t/e.java new file mode 100644 index 0000000000..6568efbb2c --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/e.java @@ -0,0 +1,61 @@ +package b.g.a.c.g0.t; + +import b.g.a.b.d; +import b.g.a.c.g0.c; +import b.g.a.c.n; +import b.g.a.c.x; +import java.io.Serializable; +import java.util.Objects; +/* compiled from: FilteredBeanPropertyWriter */ +public final class e extends c implements Serializable { + private static final long serialVersionUID = 1; + public final c _delegate; + public final Class _view; + + public e(c cVar, Class cls) { + super(cVar, cVar._name); + this._delegate = cVar; + this._view = cls; + } + + @Override // b.g.a.c.g0.c + public void e(n nVar) { + this._delegate.e(nVar); + } + + @Override // b.g.a.c.g0.c + public void f(n nVar) { + this._delegate.f(nVar); + } + + @Override // b.g.a.c.g0.c + public c g(b.g.a.c.i0.n nVar) { + return new e(this._delegate.g(nVar), this._view); + } + + @Override // b.g.a.c.g0.c + public void h(Object obj, d dVar, x xVar) throws Exception { + Class cls = xVar._serializationView; + if (cls == null || this._view.isAssignableFrom(cls)) { + this._delegate.h(obj, dVar, xVar); + return; + } + n nVar = this._delegate._nullSerializer; + if (nVar != null) { + nVar.f(null, dVar, xVar); + } else { + dVar.A(); + } + } + + @Override // b.g.a.c.g0.c + public void i(Object obj, d dVar, x xVar) throws Exception { + Class cls = xVar._serializationView; + if (cls == null || this._view.isAssignableFrom(cls)) { + this._delegate.i(obj, dVar, xVar); + return; + } + Objects.requireNonNull(this._delegate); + Objects.requireNonNull(dVar); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/f.java b/app/src/main/java/b/g/a/c/g0/t/f.java new file mode 100644 index 0000000000..369caa36fd --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/f.java @@ -0,0 +1,162 @@ +package b.g.a.c.g0.t; + +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.g0.t.l; +import b.g.a.c.g0.u.b; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.util.List; +/* compiled from: IndexedListSerializer */ +@a +public final class f extends b> { + private static final long serialVersionUID = 1; + + public f(f fVar, d dVar, g gVar, n nVar, Boolean bool) { + super(fVar, dVar, gVar, nVar, bool); + } + + public f(j jVar, boolean z2, g gVar, n nVar) { + super(List.class, jVar, z2, gVar, nVar); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((List) obj).isEmpty(); + } + + @Override // b.g.a.c.g0.u.b, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + List list = (List) obj; + int size = list.size(); + if (size != 1 || ((this._unwrapSingle != null || !xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) && this._unwrapSingle != Boolean.TRUE)) { + dVar.b0(list, size); + s(list, dVar, xVar); + dVar.t(); + return; + } + s(list, dVar, xVar); + } + + @Override // b.g.a.c.g0.h + public h p(g gVar) { + return new f(this, this._property, gVar, this._elementSerializer, this._unwrapSingle); + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((List) obj).size() == 1; + } + + /* Return type fixed from 'b.g.a.c.g0.u.b' to match base method */ + @Override // b.g.a.c.g0.u.b + public b> t(d dVar, g gVar, n nVar, Boolean bool) { + return new f(this, dVar, gVar, nVar, bool); + } + + /* renamed from: u */ + public void s(List list, b.g.a.b.d dVar, x xVar) throws IOException { + n nVar; + n nVar2; + n nVar3 = this._elementSerializer; + int i = 0; + if (nVar3 != null) { + int size = list.size(); + if (size != 0) { + g gVar = this._valueTypeSerializer; + while (i < size) { + Object obj = list.get(i); + if (obj == null) { + try { + xVar.l(dVar); + } catch (Exception e) { + n(xVar, e, list, i); + throw null; + } + } else if (gVar == null) { + nVar3.f(obj, dVar, xVar); + } else { + nVar3.g(obj, dVar, xVar, gVar); + } + i++; + } + } + } else if (this._valueTypeSerializer != null) { + int size2 = list.size(); + if (size2 != 0) { + try { + g gVar2 = this._valueTypeSerializer; + l lVar = this._dynamicSerializers; + while (i < size2) { + Object obj2 = list.get(i); + if (obj2 == null) { + xVar.l(dVar); + } else { + Class cls = obj2.getClass(); + n c = lVar.c(cls); + if (c == null) { + if (this._elementType.r()) { + l.d a = lVar.a(xVar.k(this._elementType, cls), xVar, this._property); + l lVar2 = a.f694b; + if (lVar != lVar2) { + this._dynamicSerializers = lVar2; + } + nVar2 = a.a; + } else { + nVar2 = r(lVar, cls, xVar); + } + c = nVar2; + lVar = this._dynamicSerializers; + } + c.g(obj2, dVar, xVar, gVar2); + } + i++; + } + } catch (Exception e2) { + n(xVar, e2, list, 0); + throw null; + } + } + } else { + int size3 = list.size(); + if (size3 != 0) { + try { + l lVar3 = this._dynamicSerializers; + while (i < size3) { + Object obj3 = list.get(i); + if (obj3 == null) { + xVar.l(dVar); + } else { + Class cls2 = obj3.getClass(); + n c2 = lVar3.c(cls2); + if (c2 == null) { + if (this._elementType.r()) { + l.d a2 = lVar3.a(xVar.k(this._elementType, cls2), xVar, this._property); + l lVar4 = a2.f694b; + if (lVar3 != lVar4) { + this._dynamicSerializers = lVar4; + } + nVar = a2.a; + } else { + nVar = r(lVar3, cls2, xVar); + } + c2 = nVar; + lVar3 = this._dynamicSerializers; + } + c2.f(obj3, dVar, xVar); + } + i++; + } + } catch (Exception e3) { + n(xVar, e3, list, 0); + throw null; + } + } + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/g.java b/app/src/main/java/b/g/a/c/g0/t/g.java new file mode 100644 index 0000000000..fede1e7a77 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/g.java @@ -0,0 +1,68 @@ +package b.g.a.c.g0.t; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.g0.u.h0; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.util.List; +/* compiled from: IndexedStringListSerializer */ +@a +public final class g extends h0> { + public static final g k = new g(); + private static final long serialVersionUID = 1; + + public g() { + super(List.class); + } + + public g(g gVar, Boolean bool) { + super(gVar, bool); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + List list = (List) obj; + int size = list.size(); + if (size != 1 || ((this._unwrapSingle != null || !xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) && this._unwrapSingle != Boolean.TRUE)) { + dVar.b0(list, size); + r(list, dVar, xVar, size); + dVar.t(); + return; + } + r(list, dVar, xVar, 1); + } + + @Override // b.g.a.c.g0.u.h0 + public n p(b.g.a.c.d dVar, Boolean bool) { + return new g(this, bool); + } + + public final void r(List list, d dVar, x xVar, int i) throws IOException { + for (int i2 = 0; i2 < i; i2++) { + try { + String str = list.get(i2); + if (str == null) { + xVar.l(dVar); + } else { + dVar.j0(str); + } + } catch (Exception e) { + n(xVar, e, list, i2); + throw null; + } + } + } + + /* renamed from: s */ + public void q(List list, d dVar, x xVar, b.g.a.c.e0.g gVar) throws IOException { + b e = gVar.e(dVar, gVar.d(list, h.START_ARRAY)); + dVar.e(list); + r(list, dVar, xVar, list.size()); + gVar.f(dVar, e); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/h.java b/app/src/main/java/b/g/a/c/g0/t/h.java new file mode 100644 index 0000000000..b502e3eea3 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/h.java @@ -0,0 +1,105 @@ +package b.g.a.c.g0.t; + +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.t.l; +import b.g.a.c.g0.u.b; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.util.Iterator; +/* compiled from: IteratorSerializer */ +@a +public class h extends b> { + public h(h hVar, d dVar, g gVar, n nVar, Boolean bool) { + super(hVar, dVar, gVar, nVar, bool); + } + + public h(j jVar, boolean z2, g gVar) { + super(Iterator.class, jVar, z2, gVar, (n) null); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return !((Iterator) obj).hasNext(); + } + + @Override // b.g.a.c.g0.u.b, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Iterator it = (Iterator) obj; + dVar.X(it); + s(it, dVar, xVar); + dVar.t(); + } + + @Override // b.g.a.c.g0.h + public b.g.a.c.g0.h p(g gVar) { + return new h(this, this._property, gVar, this._elementSerializer, this._unwrapSingle); + } + + @Override // b.g.a.c.g0.h + public /* bridge */ /* synthetic */ boolean q(Object obj) { + Iterator it = (Iterator) obj; + return false; + } + + /* Return type fixed from 'b.g.a.c.g0.u.b' to match base method */ + @Override // b.g.a.c.g0.u.b + public b> t(d dVar, g gVar, n nVar, Boolean bool) { + return new h(this, dVar, gVar, nVar, bool); + } + + /* renamed from: u */ + public void s(Iterator it, b.g.a.b.d dVar, x xVar) throws IOException { + n nVar; + if (it.hasNext()) { + n nVar2 = this._elementSerializer; + if (nVar2 == null) { + g gVar = this._valueTypeSerializer; + l lVar = this._dynamicSerializers; + do { + Object next = it.next(); + if (next == null) { + xVar.l(dVar); + } else { + Class cls = next.getClass(); + n c = lVar.c(cls); + if (c == null) { + if (this._elementType.r()) { + l.d a = lVar.a(xVar.k(this._elementType, cls), xVar, this._property); + l lVar2 = a.f694b; + if (lVar != lVar2) { + this._dynamicSerializers = lVar2; + } + nVar = a.a; + } else { + nVar = r(lVar, cls, xVar); + } + c = nVar; + lVar = this._dynamicSerializers; + } + if (gVar == null) { + c.f(next, dVar, xVar); + } else { + c.g(next, dVar, xVar, gVar); + } + } + } while (it.hasNext()); + return; + } + g gVar2 = this._valueTypeSerializer; + do { + Object next2 = it.next(); + if (next2 == null) { + xVar.l(dVar); + } else if (gVar2 == null) { + nVar2.f(next2, dVar, xVar); + } else { + nVar2.g(next2, dVar, xVar, gVar2); + } + } while (it.hasNext()); + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/i.java b/app/src/main/java/b/g/a/c/g0/t/i.java new file mode 100644 index 0000000000..a9f5c24b67 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/i.java @@ -0,0 +1,240 @@ +package b.g.a.c.g0.t; + +import b.g.a.a.p; +import b.g.a.c.b; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.g0.t.l; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.x; +import b.g.a.c.y.a; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Map; +import java.util.Objects; +/* compiled from: MapEntrySerializer */ +@a +public class i extends h> implements b.g.a.c.g0.i { + public l _dynamicValueSerializers; + public final j _entryType; + public n _keySerializer; + public final j _keyType; + public final d _property; + public final boolean _suppressNulls; + public final Object _suppressableValue; + public n _valueSerializer; + public final j _valueType; + public final boolean _valueTypeIsStatic; + public final g _valueTypeSerializer; + + /* JADX WARN: Incorrect args count in method signature: (Lb/g/a/c/g0/t/i;Lb/g/a/c/d;Lb/g/a/c/e0/g;Lb/g/a/c/n<*>;Lb/g/a/c/n<*>;Ljava/lang/Object;Z)V */ + public i(i iVar, n nVar, n nVar2, Object obj, boolean z2) { + super(Map.class, false); + this._entryType = iVar._entryType; + this._keyType = iVar._keyType; + this._valueType = iVar._valueType; + this._valueTypeIsStatic = iVar._valueTypeIsStatic; + this._valueTypeSerializer = iVar._valueTypeSerializer; + this._keySerializer = nVar; + this._valueSerializer = nVar2; + this._dynamicValueSerializers = l.b.f692b; + this._property = iVar._property; + this._suppressableValue = obj; + this._suppressNulls = z2; + } + + public i(j jVar, j jVar2, j jVar3, boolean z2, g gVar, d dVar) { + super(jVar); + this._entryType = jVar; + this._keyType = jVar2; + this._valueType = jVar3; + this._valueTypeIsStatic = z2; + this._valueTypeSerializer = gVar; + this._property = dVar; + this._dynamicValueSerializers = l.b.f692b; + this._suppressableValue = null; + this._suppressNulls = false; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + n nVar; + n nVar2; + boolean z2; + Object obj; + p.b b2; + p.a aVar; + Object obj2 = p.a.NON_EMPTY; + b v = xVar.v(); + b.g.a.c.c0.i member = dVar == null ? null : dVar.getMember(); + if (member == null || v == null) { + nVar2 = null; + nVar = null; + } else { + Object l = v.l(member); + nVar = l != null ? xVar.H(member, l) : null; + Object c = v.c(member); + nVar2 = c != null ? xVar.H(member, c) : null; + } + if (nVar2 == null) { + nVar2 = this._valueSerializer; + } + n k = k(xVar, dVar, nVar2); + if (k == null && this._valueTypeIsStatic && !this._valueType.y()) { + k = xVar.m(this._valueType, dVar); + } + if (nVar == null) { + nVar = this._keySerializer; + } + n o = nVar == null ? xVar.o(this._keyType, dVar) : xVar.z(nVar, dVar); + Object obj3 = this._suppressableValue; + boolean z3 = this._suppressNulls; + if (dVar == null || (b2 = dVar.b(xVar._config, null)) == null || (aVar = b2._contentInclusion) == p.a.USE_DEFAULTS) { + obj = obj3; + z2 = z3; + } else { + int ordinal = aVar.ordinal(); + if (ordinal != 1) { + if (ordinal != 2) { + if (ordinal != 3) { + if (ordinal == 4) { + obj2 = b.c.a.a0.d.s0(this._valueType); + if (obj2 != null && obj2.getClass().isArray()) { + obj2 = b.c.a.a0.d.p0(obj2); + } + } else if (ordinal != 5) { + obj = null; + z2 = false; + } else { + obj2 = xVar.A(null, b2._contentFilter); + if (obj2 != null) { + z2 = xVar.B(obj2); + obj = obj2; + } + } + } + } else if (!this._valueType.b()) { + obj2 = null; + } + obj = obj2; + } else { + obj = null; + } + z2 = true; + } + return new i(this, o, k, obj, z2); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + Object value = ((Map.Entry) obj).getValue(); + if (value == null) { + return this._suppressNulls; + } + if (this._suppressableValue != null) { + n nVar = this._valueSerializer; + if (nVar == null) { + Class cls = value.getClass(); + n c = this._dynamicValueSerializers.c(cls); + if (c == null) { + try { + l lVar = this._dynamicValueSerializers; + d dVar = this._property; + Objects.requireNonNull(lVar); + n n = xVar.n(cls, dVar); + l b2 = lVar.b(cls, n); + if (lVar != b2) { + this._dynamicValueSerializers = b2; + } + nVar = n; + } catch (JsonMappingException unused) { + } + } else { + nVar = c; + } + } + Object obj2 = this._suppressableValue; + return obj2 == p.a.NON_EMPTY ? nVar.d(xVar, value) : obj2.equals(value); + } + return false; + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Map.Entry entry = (Map.Entry) obj; + dVar.d0(entry); + r(entry, dVar, xVar); + dVar.u(); + } + + @Override // b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + Map.Entry entry = (Map.Entry) obj; + dVar.e(entry); + b.g.a.b.s.b e = gVar.e(dVar, gVar.d(entry, b.g.a.b.h.START_OBJECT)); + r(entry, dVar, xVar); + gVar.f(dVar, e); + } + + @Override // b.g.a.c.g0.h + public h p(g gVar) { + return new i(this, this._keySerializer, this._valueSerializer, this._suppressableValue, this._suppressNulls); + } + + public void r(Map.Entry entry, b.g.a.b.d dVar, x xVar) throws IOException { + n nVar; + g gVar = this._valueTypeSerializer; + Object key = entry.getKey(); + n nVar2 = key == null ? xVar._nullKeySerializer : this._keySerializer; + Object value = entry.getValue(); + if (value != null) { + nVar = this._valueSerializer; + if (nVar == null) { + Class cls = value.getClass(); + n c = this._dynamicValueSerializers.c(cls); + if (c != null) { + nVar = c; + } else if (this._valueType.r()) { + l lVar = this._dynamicValueSerializers; + l.d a = lVar.a(xVar.k(this._valueType, cls), xVar, this._property); + l lVar2 = a.f694b; + if (lVar != lVar2) { + this._dynamicValueSerializers = lVar2; + } + nVar = a.a; + } else { + l lVar3 = this._dynamicValueSerializers; + d dVar2 = this._property; + Objects.requireNonNull(lVar3); + n n = xVar.n(cls, dVar2); + l b2 = lVar3.b(cls, n); + if (lVar3 != b2) { + this._dynamicValueSerializers = b2; + } + nVar = n; + } + } + Object obj = this._suppressableValue; + if (obj != null && ((obj == p.a.NON_EMPTY && nVar.d(xVar, value)) || this._suppressableValue.equals(value))) { + return; + } + } else if (!this._suppressNulls) { + nVar = xVar._nullValueSerializer; + } else { + return; + } + nVar2.f(key, dVar, xVar); + if (gVar == null) { + try { + nVar.f(value, dVar, xVar); + } catch (Exception e) { + o(xVar, e, entry, b.d.b.a.a.u("", key)); + throw null; + } + } else { + nVar.g(value, dVar, xVar, gVar); + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/j.java b/app/src/main/java/b/g/a/c/g0/t/j.java new file mode 100644 index 0000000000..98ff5c1dc7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/j.java @@ -0,0 +1,33 @@ +package b.g.a.c.g0.t; + +import b.g.a.a.i0; +import b.g.a.b.k; +import b.g.a.c.n; +import b.g.a.c.t; +/* compiled from: ObjectIdWriter */ +public final class j { + public final b.g.a.c.j a; + + /* renamed from: b reason: collision with root package name */ + public final k f690b; + public final i0 c; + public final n d; + public final boolean e; + + public j(b.g.a.c.j jVar, k kVar, i0 i0Var, n nVar, boolean z2) { + this.a = jVar; + this.f690b = kVar; + this.c = i0Var; + this.d = nVar; + this.e = z2; + } + + public static j a(b.g.a.c.j jVar, t tVar, i0 i0Var, boolean z2) { + b.g.a.b.p.j jVar2 = null; + String str = tVar == null ? null : tVar._simpleName; + if (str != null) { + jVar2 = new b.g.a.b.p.j(str); + } + return new j(jVar, jVar2, i0Var, null, z2); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/k.java b/app/src/main/java/b/g/a/c/g0/t/k.java new file mode 100644 index 0000000000..6d56292ede --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/k.java @@ -0,0 +1,59 @@ +package b.g.a.c.g0.t; + +import b.d.b.a.a; +import b.g.a.a.i0; +import b.g.a.a.l0; +import b.g.a.c.c0.a0; +import b.g.a.c.g0.c; +import java.lang.reflect.Method; +/* compiled from: PropertyBasedObjectIdGenerator */ +public class k extends l0 { + private static final long serialVersionUID = 1; + public final c _property; + + public k(a0 a0Var, c cVar) { + super(a0Var.e); + this._property = cVar; + } + + public k(Class cls, c cVar) { + super(cls); + this._property = cVar; + } + + @Override // b.g.a.a.j0, b.g.a.a.i0 + public boolean a(i0 i0Var) { + if (i0Var.getClass() != k.class) { + return false; + } + k kVar = (k) i0Var; + return kVar._scope == this._scope && kVar._property == this._property; + } + + @Override // b.g.a.a.i0 + public i0 b(Class cls) { + return cls == this._scope ? this : new k(cls, this._property); + } + + @Override // b.g.a.a.i0 + public Object c(Object obj) { + try { + c cVar = this._property; + Method method = cVar.l; + return method == null ? cVar.m.get(obj) : method.invoke(obj, null); + } catch (RuntimeException e) { + throw e; + } catch (Exception e2) { + StringBuilder R = a.R("Problem accessing property '"); + R.append(this._property._name._value); + R.append("': "); + R.append(e2.getMessage()); + throw new IllegalStateException(R.toString(), e2); + } + } + + @Override // b.g.a.a.i0 + public i0 e(Object obj) { + return this; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/l.java b/app/src/main/java/b/g/a/c/g0/t/l.java new file mode 100644 index 0000000000..8efc374f34 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/l.java @@ -0,0 +1,250 @@ +package b.g.a.c.g0.t; + +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.util.Arrays; +/* compiled from: PropertySerializerMap */ +public abstract class l { + public final boolean a; + + /* compiled from: PropertySerializerMap */ + public static final class a extends l { + + /* renamed from: b reason: collision with root package name */ + public final Class f691b; + public final Class c; + public final n d; + public final n e; + + public a(l lVar, Class cls, n nVar, Class cls2, n nVar2) { + super(lVar); + this.f691b = cls; + this.d = nVar; + this.c = cls2; + this.e = nVar2; + } + + @Override // b.g.a.c.g0.t.l + public l b(Class cls, n nVar) { + return new c(this, new f[]{new f(this.f691b, this.d), new f(this.c, this.e), new f(cls, nVar)}); + } + + @Override // b.g.a.c.g0.t.l + public n c(Class cls) { + if (cls == this.f691b) { + return this.d; + } + if (cls == this.c) { + return this.e; + } + return null; + } + } + + /* compiled from: PropertySerializerMap */ + public static final class b extends l { + + /* renamed from: b reason: collision with root package name */ + public static final b f692b = new b(false); + + public b(boolean z2) { + super(z2); + } + + @Override // b.g.a.c.g0.t.l + public l b(Class cls, n nVar) { + return new e(this, cls, nVar); + } + + @Override // b.g.a.c.g0.t.l + public n c(Class cls) { + return null; + } + } + + /* compiled from: PropertySerializerMap */ + public static final class c extends l { + + /* renamed from: b reason: collision with root package name */ + public final f[] f693b; + + public c(l lVar, f[] fVarArr) { + super(lVar); + this.f693b = fVarArr; + } + + @Override // b.g.a.c.g0.t.l + public l b(Class cls, n nVar) { + f[] fVarArr = this.f693b; + int length = fVarArr.length; + if (length == 8) { + return this.a ? new e(this, cls, nVar) : this; + } + f[] fVarArr2 = (f[]) Arrays.copyOf(fVarArr, length + 1); + fVarArr2[length] = new f(cls, nVar); + return new c(this, fVarArr2); + } + + /* JADX WARNING: Removed duplicated region for block: B:20:0x0036 */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x0040 */ + /* JADX WARNING: Removed duplicated region for block: B:28:0x004a */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x0054 */ + /* JADX WARNING: Removed duplicated region for block: B:34:? A[ORIG_RETURN, RETURN, SYNTHETIC] */ + @Override // b.g.a.c.g0.t.l + public n c(Class cls) { + f fVar; + f fVar2; + f fVar3; + f fVar4; + f[] fVarArr = this.f693b; + f fVar5 = fVarArr[0]; + if (fVar5.a == cls) { + return fVar5.f696b; + } + f fVar6 = fVarArr[1]; + if (fVar6.a == cls) { + return fVar6.f696b; + } + f fVar7 = fVarArr[2]; + if (fVar7.a == cls) { + return fVar7.f696b; + } + switch (fVarArr.length) { + case 4: + fVar = fVarArr[3]; + if (fVar.a == cls) { + return fVar.f696b; + } + return null; + case 5: + fVar2 = fVarArr[4]; + if (fVar2.a == cls) { + return fVar2.f696b; + } + fVar = fVarArr[3]; + if (fVar.a == cls) { + } + break; + case 6: + fVar3 = fVarArr[5]; + if (fVar3.a == cls) { + return fVar3.f696b; + } + fVar2 = fVarArr[4]; + if (fVar2.a == cls) { + } + fVar = fVarArr[3]; + if (fVar.a == cls) { + } + break; + case 7: + fVar4 = fVarArr[6]; + if (fVar4.a == cls) { + return fVar4.f696b; + } + fVar3 = fVarArr[5]; + if (fVar3.a == cls) { + } + fVar2 = fVarArr[4]; + if (fVar2.a == cls) { + } + fVar = fVarArr[3]; + if (fVar.a == cls) { + } + break; + case 8: + f fVar8 = fVarArr[7]; + if (fVar8.a == cls) { + return fVar8.f696b; + } + fVar4 = fVarArr[6]; + if (fVar4.a == cls) { + } + fVar3 = fVarArr[5]; + if (fVar3.a == cls) { + } + fVar2 = fVarArr[4]; + if (fVar2.a == cls) { + } + fVar = fVarArr[3]; + if (fVar.a == cls) { + } + break; + default: + return null; + } + } + } + + /* compiled from: PropertySerializerMap */ + public static final class d { + public final n a; + + /* renamed from: b reason: collision with root package name */ + public final l f694b; + + public d(n nVar, l lVar) { + this.a = nVar; + this.f694b = lVar; + } + } + + /* compiled from: PropertySerializerMap */ + public static final class e extends l { + + /* renamed from: b reason: collision with root package name */ + public final Class f695b; + public final n c; + + public e(l lVar, Class cls, n nVar) { + super(lVar); + this.f695b = cls; + this.c = nVar; + } + + @Override // b.g.a.c.g0.t.l + public l b(Class cls, n nVar) { + return new a(this, this.f695b, this.c, cls, nVar); + } + + @Override // b.g.a.c.g0.t.l + public n c(Class cls) { + if (cls == this.f695b) { + return this.c; + } + return null; + } + } + + /* compiled from: PropertySerializerMap */ + public static final class f { + public final Class a; + + /* renamed from: b reason: collision with root package name */ + public final n f696b; + + public f(Class cls, n nVar) { + this.a = cls; + this.f696b = nVar; + } + } + + public l(l lVar) { + this.a = lVar.a; + } + + public l(boolean z2) { + this.a = z2; + } + + public final d a(j jVar, x xVar, b.g.a.c.d dVar) throws JsonMappingException { + n m = xVar.m(jVar, dVar); + return new d(m, b(jVar._class, m)); + } + + public abstract l b(Class cls, n nVar); + + public abstract n c(Class cls); +} diff --git a/app/src/main/java/b/g/a/c/g0/t/m.java b/app/src/main/java/b/g/a/c/g0/t/m.java new file mode 100644 index 0000000000..7d54dab5be --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/m.java @@ -0,0 +1,98 @@ +package b.g.a.c.g0.t; + +import b.g.a.c.i0.u; +import b.g.a.c.j; +import b.g.a.c.n; +import java.util.Map; +/* compiled from: ReadOnlyClassToSerializerMap */ +public final class m { + public final a[] a; + + /* renamed from: b reason: collision with root package name */ + public final int f697b; + + /* compiled from: ReadOnlyClassToSerializerMap */ + public static final class a { + public final n a; + + /* renamed from: b reason: collision with root package name */ + public final a f698b; + public final Class c; + public final j d; + public final boolean e; + + public a(a aVar, u uVar, n nVar) { + this.f698b = aVar; + this.a = nVar; + this.e = uVar.d; + this.c = uVar.f716b; + this.d = uVar.c; + } + } + + public m(Map> map) { + int size = map.size(); + int i = 8; + while (i < (size <= 64 ? size + size : size + (size >> 2))) { + i += i; + } + this.f697b = i - 1; + a[] aVarArr = new a[i]; + for (Map.Entry> entry : map.entrySet()) { + u key = entry.getKey(); + int i2 = key.a & this.f697b; + aVarArr[i2] = new a(aVarArr[i2], key, entry.getValue()); + } + this.a = aVarArr; + } + + public n a(j jVar) { + boolean z2; + a aVar = this.a[(jVar._hash - 1) & this.f697b]; + if (aVar == null) { + return null; + } + if (!aVar.e && jVar.equals(aVar.d)) { + return aVar.a; + } + do { + aVar = aVar.f698b; + if (aVar == null) { + return null; + } + if (aVar.e || !jVar.equals(aVar.d)) { + z2 = false; + continue; + } else { + z2 = true; + continue; + } + } while (!z2); + return aVar.a; + } + + public n b(Class cls) { + boolean z2; + a aVar = this.a[cls.getName().hashCode() & this.f697b]; + if (aVar == null) { + return null; + } + if (aVar.c == cls && !aVar.e) { + return aVar.a; + } + do { + aVar = aVar.f698b; + if (aVar == null) { + return null; + } + if (aVar.c != cls || aVar.e) { + z2 = false; + continue; + } else { + z2 = true; + continue; + } + } while (!z2); + return aVar.a; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/n.java b/app/src/main/java/b/g/a/c/g0/t/n.java new file mode 100644 index 0000000000..6753c8bff6 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/n.java @@ -0,0 +1,144 @@ +package b.g.a.c.g0.t; + +import b.g.a.a.i; +import b.g.a.c.b; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.g0.i; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: StringArraySerializer */ +@a +public class n extends b.g.a.c.g0.u.a implements i { + public static final n k = new n(); + public final b.g.a.c.n _elementSerializer; + + static { + b.g.a.c.h0.n.k.j(String.class); + } + + public n() { + super(String[].class); + this._elementSerializer = null; + } + + public n(n nVar, d dVar, b.g.a.c.n nVar2, Boolean bool) { + super(nVar, dVar, bool); + this._elementSerializer = nVar2; + } + + /* JADX WARNING: Removed duplicated region for block: B:10:0x0023 */ + /* JADX WARNING: Removed duplicated region for block: B:11:0x0028 */ + /* JADX WARNING: Removed duplicated region for block: B:13:0x002b */ + /* JADX WARNING: Removed duplicated region for block: B:16:0x0033 */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x0040 */ + @Override // b.g.a.c.g0.u.a, b.g.a.c.g0.i + public b.g.a.c.n a(x xVar, d dVar) throws JsonMappingException { + b.g.a.c.n nVar; + b.g.a.c.n k2; + Object c; + b.g.a.c.n nVar2 = null; + if (dVar != null) { + b v = xVar.v(); + b.g.a.c.c0.i member = dVar.getMember(); + if (!(member == null || (c = v.c(member)) == null)) { + nVar = xVar.H(member, c); + i.a aVar = i.a.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED; + i.d l = l(xVar, dVar, String[].class); + Boolean b2 = l == null ? l.b(aVar) : null; + if (nVar == null) { + nVar = this._elementSerializer; + } + k2 = k(xVar, dVar, nVar); + if (k2 == null) { + k2 = xVar.n(String.class, dVar); + } + if (!b.g.a.c.i0.d.s(k2)) { + nVar2 = k2; + } + return (nVar2 == this._elementSerializer || !Objects.equals(b2, this._unwrapSingle)) ? new n(this, dVar, nVar2, b2) : this; + } + } + nVar = null; + i.a aVar = i.a.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED; + i.d l = l(xVar, dVar, String[].class); + if (l == null) { + } + if (nVar == null) { + } + k2 = k(xVar, dVar, nVar); + if (k2 == null) { + } + if (!b.g.a.c.i0.d.s(k2)) { + } + if (nVar2 == this._elementSerializer) { + } + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((String[]) obj).length == 0; + } + + @Override // b.g.a.c.g0.u.a, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + String[] strArr = (String[]) obj; + int length = strArr.length; + if (length != 1 || ((this._unwrapSingle != null || !xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) && this._unwrapSingle != Boolean.TRUE)) { + dVar.b0(strArr, length); + t(strArr, dVar, xVar); + dVar.t(); + return; + } + t(strArr, dVar, xVar); + } + + @Override // b.g.a.c.g0.h + public h p(g gVar) { + return this; + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((String[]) obj).length == 1; + } + + @Override // b.g.a.c.g0.u.a + public b.g.a.c.n s(d dVar, Boolean bool) { + return new n(this, dVar, this._elementSerializer, bool); + } + + /* renamed from: u */ + public void t(String[] strArr, b.g.a.b.d dVar, x xVar) throws IOException { + int length = strArr.length; + if (length != 0) { + b.g.a.c.n nVar = this._elementSerializer; + int i = 0; + if (nVar != null) { + int length2 = strArr.length; + while (i < length2) { + if (strArr[i] == null) { + xVar.l(dVar); + } else { + nVar.f(strArr[i], dVar, xVar); + } + i++; + } + return; + } + while (i < length) { + if (strArr[i] == null) { + dVar.A(); + } else { + dVar.j0(strArr[i]); + } + i++; + } + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/o.java b/app/src/main/java/b/g/a/c/g0/t/o.java new file mode 100644 index 0000000000..d8214b44b8 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/o.java @@ -0,0 +1,78 @@ +package b.g.a.c.g0.t; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.g0.u.h0; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.util.Collection; +/* compiled from: StringCollectionSerializer */ +@a +public class o extends h0> { + public static final o k = new o(); + + public o() { + super(Collection.class); + } + + public o(o oVar, Boolean bool) { + super(oVar, bool); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + Collection collection = (Collection) obj; + int size = collection.size(); + if (size != 1 || ((this._unwrapSingle != null || !xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) && this._unwrapSingle != Boolean.TRUE)) { + dVar.b0(collection, size); + r(collection, dVar, xVar); + dVar.t(); + return; + } + r(collection, dVar, xVar); + } + + @Override // b.g.a.c.g0.u.h0, b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + Collection collection = (Collection) obj; + b e = gVar.e(dVar, gVar.d(collection, h.START_ARRAY)); + dVar.e(collection); + r(collection, dVar, xVar); + gVar.f(dVar, e); + } + + @Override // b.g.a.c.g0.u.h0 + public n p(b.g.a.c.d dVar, Boolean bool) { + return new o(this, bool); + } + + @Override // b.g.a.c.g0.u.h0 + public void q(Collection collection, d dVar, x xVar, g gVar) throws IOException { + b e = gVar.e(dVar, gVar.d(collection, h.START_ARRAY)); + dVar.e(collection); + r(collection, dVar, xVar); + gVar.f(dVar, e); + } + + public final void r(Collection collection, d dVar, x xVar) throws IOException { + int i = 0; + try { + for (String str : collection) { + if (str == null) { + xVar.l(dVar); + } else { + dVar.j0(str); + } + i++; + } + } catch (Exception e) { + n(xVar, e, collection, 0); + throw null; + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/p.java b/app/src/main/java/b/g/a/c/g0/t/p.java new file mode 100644 index 0000000000..b4854b1a26 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/p.java @@ -0,0 +1,43 @@ +package b.g.a.c.g0.t; + +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.i; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +/* compiled from: TypeWrappedSerializer */ +public final class p extends n implements i { + public final g j; + public final n k; + + public p(g gVar, n nVar) { + this.j = gVar; + this.k = nVar; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + n nVar = this.k; + if (nVar instanceof i) { + nVar = xVar.z(nVar, dVar); + } + return nVar == this.k ? this : new p(this.j, nVar); + } + + @Override // b.g.a.c.n + public Class c() { + return Object.class; + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + this.k.g(obj, dVar, xVar, this.j); + } + + @Override // b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + this.k.g(obj, dVar, xVar, gVar); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/q.java b/app/src/main/java/b/g/a/c/g0/t/q.java new file mode 100644 index 0000000000..fdc59cfc4a --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/q.java @@ -0,0 +1,46 @@ +package b.g.a.c.g0.t; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.c.e0.g; +import b.g.a.c.g0.u.q0; +import b.g.a.c.w; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +/* compiled from: UnknownSerializer */ +public class q extends q0 { + public q() { + super(Object.class); + } + + public q(Class cls) { + super(cls, false); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return true; + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + if (xVar.D(w.FAIL_ON_EMPTY_BEANS)) { + p(xVar, obj); + } + dVar.f0(obj, 0); + dVar.u(); + } + + @Override // b.g.a.c.n + public final void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + if (xVar.D(w.FAIL_ON_EMPTY_BEANS)) { + p(xVar, obj); + } + gVar.f(dVar, gVar.e(dVar, gVar.d(obj, h.START_OBJECT))); + } + + public void p(x xVar, Object obj) throws JsonMappingException { + xVar.g(this._handledType, String.format("No serializer found for class %s and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)", obj.getClass().getName())); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/r.java b/app/src/main/java/b/g/a/c/g0/t/r.java new file mode 100644 index 0000000000..8d49b9cfce --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/r.java @@ -0,0 +1,25 @@ +package b.g.a.c.g0.t; + +import b.g.a.b.d; +import b.g.a.c.g0.u.q0; +import b.g.a.c.j; +import b.g.a.c.x; +import java.io.IOException; +/* compiled from: UnsupportedTypeSerializer */ +public class r extends q0 { + private static final long serialVersionUID = 1; + public final String _message; + public final j _type; + + public r(j jVar, String str) { + super(Object.class); + this._type = jVar; + this._message = str; + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + xVar.f(this._type, this._message); + throw null; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/s.java b/app/src/main/java/b/g/a/c/g0/t/s.java new file mode 100644 index 0000000000..78b888a417 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/s.java @@ -0,0 +1,93 @@ +package b.g.a.c.g0.t; + +import b.g.a.a.p; +import b.g.a.b.d; +import b.g.a.b.p.j; +import b.g.a.c.e0.g; +import b.g.a.c.g0.c; +import b.g.a.c.i0.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.Serializable; +import java.lang.reflect.Method; +/* compiled from: UnwrappingBeanPropertyWriter */ +public class s extends c implements Serializable { + private static final long serialVersionUID = 1; + public final n _nameTransformer; + + public s(c cVar, n nVar) { + super(cVar, cVar._name); + this._nameTransformer = nVar; + } + + public s(s sVar, n nVar, j jVar) { + super(sVar, jVar); + this._nameTransformer = nVar; + } + + @Override // b.g.a.c.g0.c + public b.g.a.c.n c(l lVar, Class cls, x xVar) throws JsonMappingException { + b.g.a.c.j jVar = this._nonTrivialBaseType; + b.g.a.c.n t = jVar != null ? xVar.t(xVar.k(jVar, cls), this) : xVar.u(cls, this); + n nVar = this._nameTransformer; + if (t.e() && (t instanceof t)) { + nVar = new n.a(nVar, ((t) t)._nameTransformer); + } + b.g.a.c.n h = t.h(nVar); + this.n = this.n.b(cls, h); + return h; + } + + @Override // b.g.a.c.g0.c + public void f(b.g.a.c.n nVar) { + if (nVar != null) { + n nVar2 = this._nameTransformer; + if (nVar.e() && (nVar instanceof t)) { + nVar2 = new n.a(nVar2, ((t) nVar)._nameTransformer); + } + nVar = nVar.h(nVar2); + } + super.f(nVar); + } + + @Override // b.g.a.c.g0.c + public c g(n nVar) { + return new s(this, new n.a(nVar, this._nameTransformer), new j(nVar.a(this._name._value))); + } + + @Override // b.g.a.c.g0.c + public void i(Object obj, d dVar, x xVar) throws Exception { + Method method = this.l; + Object invoke = method == null ? this.m.get(obj) : method.invoke(obj, null); + if (invoke != null) { + b.g.a.c.n nVar = this._serializer; + if (nVar == null) { + Class cls = invoke.getClass(); + l lVar = this.n; + b.g.a.c.n c = lVar.c(cls); + nVar = c == null ? c(lVar, cls, xVar) : c; + } + Object obj2 = this._suppressableValue; + if (obj2 != null) { + if (p.a.NON_EMPTY == obj2) { + if (nVar.d(xVar, invoke)) { + return; + } + } else if (obj2.equals(invoke)) { + return; + } + } + if (invoke != obj || !d(dVar, xVar, nVar)) { + if (!nVar.e()) { + dVar.x(this._name); + } + g gVar = this._typeSerializer; + if (gVar == null) { + nVar.f(invoke, dVar, xVar); + } else { + nVar.g(invoke, dVar, xVar, gVar); + } + } + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/t.java b/app/src/main/java/b/g/a/c/g0/t/t.java new file mode 100644 index 0000000000..ebf29c2119 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/t.java @@ -0,0 +1,116 @@ +package b.g.a.c.g0.t; + +import b.d.b.a.a; +import b.g.a.c.e0.g; +import b.g.a.c.g0.c; +import b.g.a.c.g0.u.d; +import b.g.a.c.i0.n; +import b.g.a.c.w; +import b.g.a.c.x; +import java.io.IOException; +import java.io.Serializable; +import java.util.Set; +/* compiled from: UnwrappingBeanSerializer */ +public class t extends d implements Serializable { + private static final long serialVersionUID = 1; + public final n _nameTransformer; + + public t(t tVar, j jVar) { + super(tVar, jVar, tVar._propertyFilterId); + this._nameTransformer = tVar._nameTransformer; + } + + public t(t tVar, j jVar, Object obj) { + super(tVar, jVar, obj); + this._nameTransformer = tVar._nameTransformer; + } + + public t(t tVar, Set set, Set set2) { + super(tVar, set, set2); + this._nameTransformer = tVar._nameTransformer; + } + + public t(t tVar, c[] cVarArr, c[] cVarArr2) { + super(tVar, cVarArr, cVarArr2); + this._nameTransformer = tVar._nameTransformer; + } + + public t(d dVar, n nVar) { + super(dVar, d.t(dVar._props, nVar), d.t(dVar._filteredProps, nVar)); + this._nameTransformer = nVar; + } + + @Override // b.g.a.c.n + public final void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + dVar.e(obj); + if (this._objectIdWriter != null) { + q(obj, dVar, xVar, false); + return; + } + Object obj2 = this._propertyFilterId; + if (obj2 != null) { + if (this._filteredProps != null) { + Class cls = xVar._serializationView; + } + m(xVar, obj2, obj); + throw null; + } + u(obj, dVar, xVar); + } + + @Override // b.g.a.c.g0.u.d, b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + if (xVar.D(w.FAIL_ON_UNWRAPPED_TYPE_IDENTIFIERS)) { + xVar.g(this._handledType, "Unwrapped property requires use of type information: cannot serialize without disabling `SerializationFeature.FAIL_ON_UNWRAPPED_TYPE_IDENTIFIERS`"); + } + dVar.e(obj); + if (this._objectIdWriter != null) { + p(obj, dVar, xVar, gVar); + return; + } + Object obj2 = this._propertyFilterId; + if (obj2 != null) { + c[] cVarArr = this._filteredProps; + m(xVar, obj2, obj); + throw null; + } + u(obj, dVar, xVar); + } + + @Override // b.g.a.c.n + public b.g.a.c.n h(n nVar) { + return new t(this, nVar); + } + + @Override // b.g.a.c.g0.u.d + public d s() { + return this; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("UnwrappingBeanSerializer for "); + R.append(this._handledType.getName()); + return R.toString(); + } + + @Override // b.g.a.c.g0.u.d + public d v(Set set, Set set2) { + return new t(this, set, set2); + } + + @Override // b.g.a.c.g0.u.d + public d w(Object obj) { + return new t(this, this._objectIdWriter, obj); + } + + @Override // b.g.a.c.g0.u.d + public d x(j jVar) { + return new t(this, jVar); + } + + @Override // b.g.a.c.g0.u.d + public d y(c[] cVarArr, c[] cVarArr2) { + return new t(this, cVarArr, cVarArr2); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/t/u.java b/app/src/main/java/b/g/a/c/g0/t/u.java new file mode 100644 index 0000000000..d44f96ed8c --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/t/u.java @@ -0,0 +1,31 @@ +package b.g.a.c.g0.t; + +import b.g.a.a.i0; +import b.g.a.b.d; +import b.g.a.c.x; +import java.io.IOException; +import java.util.Objects; +/* compiled from: WritableObjectId */ +public final class u { + public final i0 a; + + /* renamed from: b reason: collision with root package name */ + public Object f699b; + public boolean c = false; + + public u(i0 i0Var) { + this.a = i0Var; + } + + public boolean a(d dVar, x xVar, j jVar) throws IOException { + if (this.f699b == null) { + return false; + } + if (!this.c && !jVar.e) { + return false; + } + Objects.requireNonNull(dVar); + jVar.d.f(this.f699b, dVar, xVar); + return true; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/a.java b/app/src/main/java/b/g/a/c/g0/u/a.java new file mode 100644 index 0000000000..49d5bc6093 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/a.java @@ -0,0 +1,71 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.b.s.b; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.g0.i; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: ArraySerializerBase */ +public abstract class a extends h implements i { + public final d _property; + public final Boolean _unwrapSingle; + + public a(a aVar, d dVar, Boolean bool) { + super(aVar._handledType, false); + this._property = dVar; + this._unwrapSingle = bool; + } + + public a(Class cls) { + super(cls); + this._property = null; + this._unwrapSingle = null; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + i.d l; + if (!(dVar == null || (l = l(xVar, dVar, this._handledType)) == null)) { + Boolean b2 = l.b(i.a.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED); + if (!Objects.equals(b2, this._unwrapSingle)) { + return s(dVar, b2); + } + } + return this; + } + + @Override // b.g.a.c.n + public void f(T t, b.g.a.b.d dVar, x xVar) throws IOException { + if (!r(xVar) || !q(t)) { + dVar.X(t); + t(t, dVar, xVar); + dVar.t(); + return; + } + t(t, dVar, xVar); + } + + @Override // b.g.a.c.n + public final void g(T t, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + b e = gVar.e(dVar, gVar.d(t, b.g.a.b.h.START_ARRAY)); + dVar.e(t); + t(t, dVar, xVar); + gVar.f(dVar, e); + } + + public final boolean r(x xVar) { + Boolean bool = this._unwrapSingle; + return bool == null ? xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED) : bool.booleanValue(); + } + + public abstract n s(d dVar, Boolean bool); + + public abstract void t(T t, b.g.a.b.d dVar, x xVar) throws IOException; +} diff --git a/app/src/main/java/b/g/a/c/g0/u/a0.java b/app/src/main/java/b/g/a/c/g0/u/a0.java new file mode 100644 index 0000000000..446c10d7e7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/a0.java @@ -0,0 +1,25 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.f; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: NumberSerializers */ +@a +public class a0 extends w { + public a0(Class cls) { + super(cls, f.b.INT, "integer"); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.H(((Integer) obj).intValue()); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + f(obj, dVar, xVar); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/b.java b/app/src/main/java/b/g/a/c/g0/u/b.java new file mode 100644 index 0000000000..46108df501 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/b.java @@ -0,0 +1,129 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.g0.i; +import b.g.a.c.g0.t.l; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: AsArraySerializerBase */ +public abstract class b extends h implements i { + public l _dynamicSerializers; + public final n _elementSerializer; + public final j _elementType; + public final d _property; + public final boolean _staticTyping; + public final Boolean _unwrapSingle; + public final g _valueTypeSerializer; + + public b(b bVar, d dVar, g gVar, n nVar, Boolean bool) { + super(bVar); + this._elementType = bVar._elementType; + this._staticTyping = bVar._staticTyping; + this._valueTypeSerializer = gVar; + this._property = dVar; + this._elementSerializer = nVar; + this._dynamicSerializers = l.b.f692b; + this._unwrapSingle = bool; + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b(Class cls, j jVar, boolean z2, g gVar, n nVar) { + super(cls, false); + boolean z3 = false; + this._elementType = jVar; + if (z2 || (jVar != null && jVar.x())) { + z3 = true; + } + this._staticTyping = z3; + this._valueTypeSerializer = gVar; + this._property = null; + this._elementSerializer = nVar; + this._dynamicSerializers = l.b.f692b; + this._unwrapSingle = null; + } + + /* JADX WARNING: Removed duplicated region for block: B:13:0x0029 */ + /* JADX WARNING: Removed duplicated region for block: B:15:0x0031 */ + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + n nVar; + i.d l; + n k; + j jVar; + Object c; + g gVar = this._valueTypeSerializer; + if (gVar != null) { + gVar = gVar.a(dVar); + } + Boolean bool = null; + if (dVar != null) { + b.g.a.c.b v = xVar.v(); + b.g.a.c.c0.i member = dVar.getMember(); + if (!(member == null || (c = v.c(member)) == null)) { + nVar = xVar.H(member, c); + l = l(xVar, dVar, this._handledType); + if (l != null) { + bool = l.b(i.a.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED); + } + if (nVar == null) { + nVar = this._elementSerializer; + } + k = k(xVar, dVar, nVar); + if (k == null && (jVar = this._elementType) != null && this._staticTyping && !jVar.y()) { + k = xVar.m(this._elementType, dVar); + } + return (k == this._elementSerializer || dVar != this._property || this._valueTypeSerializer != gVar || !Objects.equals(this._unwrapSingle, bool)) ? t(dVar, gVar, k, bool) : this; + } + } + nVar = null; + l = l(xVar, dVar, this._handledType); + if (l != null) { + } + if (nVar == null) { + } + k = k(xVar, dVar, nVar); + k = xVar.m(this._elementType, dVar); + if (k == this._elementSerializer) { + } + } + + @Override // b.g.a.c.n + public void f(T t, b.g.a.b.d dVar, x xVar) throws IOException { + if (!xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED) || !q(t)) { + dVar.X(t); + s(t, dVar, xVar); + dVar.t(); + return; + } + s(t, dVar, xVar); + } + + @Override // b.g.a.c.n + public void g(T t, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + b.g.a.b.s.b e = gVar.e(dVar, gVar.d(t, b.g.a.b.h.START_ARRAY)); + dVar.e(t); + s(t, dVar, xVar); + gVar.f(dVar, e); + } + + public final n r(l lVar, Class cls, x xVar) throws JsonMappingException { + n n = xVar.n(cls, this._property); + l b2 = lVar.b(cls, n); + if (lVar != b2) { + this._dynamicSerializers = b2; + } + return n; + } + + public abstract void s(T t, b.g.a.b.d dVar, x xVar) throws IOException; + + public abstract b t(d dVar, g gVar, n nVar, Boolean bool); +} diff --git a/app/src/main/java/b/g/a/c/g0/u/b0.java b/app/src/main/java/b/g/a/c/g0/u/b0.java new file mode 100644 index 0000000000..25fa85ccb5 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/b0.java @@ -0,0 +1,19 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.f; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: NumberSerializers */ +@a +public class b0 extends w { + public b0(Class cls) { + super(cls, f.b.LONG, "number"); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.I(((Long) obj).longValue()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/c.java b/app/src/main/java/b/g/a/c/g0/u/c.java new file mode 100644 index 0000000000..cf7f0283ad --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/c.java @@ -0,0 +1,47 @@ +package b.g.a.c.g0.u; + +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.h0.i; +import b.g.a.c.n; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: AtomicReferenceSerializer */ +public class c extends f0> { + private static final long serialVersionUID = 1; + + public c(c cVar, d dVar, g gVar, n nVar, b.g.a.c.i0.n nVar2, Object obj, boolean z2) { + super(cVar, dVar, gVar, nVar, nVar2, obj, z2); + } + + public c(i iVar, boolean z2, g gVar, n nVar) { + super(iVar, gVar, nVar); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.g.a.c.g0.u.f0 + public Object q(AtomicReference atomicReference) { + return atomicReference.get(); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.g.a.c.g0.u.f0 + public Object r(AtomicReference atomicReference) { + return atomicReference.get(); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.g.a.c.g0.u.f0 + public boolean s(AtomicReference atomicReference) { + return atomicReference.get() != null; + } + + @Override // b.g.a.c.g0.u.f0 + public f0> t(Object obj, boolean z2) { + return new c(this, this._property, this._valueTypeSerializer, this._valueSerializer, this._unwrapper, obj, z2); + } + + @Override // b.g.a.c.g0.u.f0 + public f0> u(d dVar, g gVar, n nVar, b.g.a.c.i0.n nVar2) { + return new c(this, dVar, gVar, nVar, nVar2, this._suppressableValue, this._suppressNulls); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/c0.java b/app/src/main/java/b/g/a/c/g0/u/c0.java new file mode 100644 index 0000000000..35faff353a --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/c0.java @@ -0,0 +1,21 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.f; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: NumberSerializers */ +@a +public class c0 extends w { + public static final c0 k = new c0(); + + public c0() { + super(Short.class, f.b.INT, "number"); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.O(((Short) obj).shortValue()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/d.java b/app/src/main/java/b/g/a/c/g0/u/d.java new file mode 100644 index 0000000000..5dd8cd2a50 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/d.java @@ -0,0 +1,472 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.a.i0; +import b.g.a.a.l0; +import b.g.a.c.b; +import b.g.a.c.c0.a0; +import b.g.a.c.e0.g; +import b.g.a.c.g0.a; +import b.g.a.c.g0.c; +import b.g.a.c.g0.e; +import b.g.a.c.g0.h; +import b.g.a.c.g0.i; +import b.g.a.c.g0.o; +import b.g.a.c.g0.t.k; +import b.g.a.c.g0.t.u; +import b.g.a.c.i0.f; +import b.g.a.c.i0.n; +import b.g.a.c.j; +import b.g.a.c.t; +import b.g.a.c.v; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +/* compiled from: BeanSerializerBase */ +public abstract class d extends q0 implements i, o { + public static final c[] k = new c[0]; + public final a _anyGetterWriter; + public final j _beanType; + public final c[] _filteredProps; + public final b.g.a.c.g0.t.j _objectIdWriter; + public final Object _propertyFilterId; + public final c[] _props; + public final i.c _serializationShape; + public final b.g.a.c.c0.i _typeId; + + static { + new t("#object-ref"); + } + + public d(d dVar, b.g.a.c.g0.t.j jVar, Object obj) { + super(dVar._handledType); + this._beanType = dVar._beanType; + this._props = dVar._props; + this._filteredProps = dVar._filteredProps; + this._typeId = dVar._typeId; + this._anyGetterWriter = dVar._anyGetterWriter; + this._objectIdWriter = jVar; + this._propertyFilterId = obj; + this._serializationShape = dVar._serializationShape; + } + + public d(d dVar, Set set, Set set2) { + super(dVar._handledType); + this._beanType = dVar._beanType; + c[] cVarArr = dVar._props; + c[] cVarArr2 = dVar._filteredProps; + int length = cVarArr.length; + ArrayList arrayList = new ArrayList(length); + c[] cVarArr3 = null; + ArrayList arrayList2 = cVarArr2 == null ? null : new ArrayList(length); + for (int i = 0; i < length; i++) { + c cVar = cVarArr[i]; + if (!b.c.a.a0.d.Z1(cVar._name._value, set, set2)) { + arrayList.add(cVar); + if (cVarArr2 != null) { + arrayList2.add(cVarArr2[i]); + } + } + } + this._props = (c[]) arrayList.toArray(new c[arrayList.size()]); + this._filteredProps = arrayList2 != null ? (c[]) arrayList2.toArray(new c[arrayList2.size()]) : cVarArr3; + this._typeId = dVar._typeId; + this._anyGetterWriter = dVar._anyGetterWriter; + this._objectIdWriter = dVar._objectIdWriter; + this._propertyFilterId = dVar._propertyFilterId; + this._serializationShape = dVar._serializationShape; + } + + public d(d dVar, c[] cVarArr, c[] cVarArr2) { + super(dVar._handledType); + this._beanType = dVar._beanType; + this._props = cVarArr; + this._filteredProps = cVarArr2; + this._typeId = dVar._typeId; + this._anyGetterWriter = dVar._anyGetterWriter; + this._objectIdWriter = dVar._objectIdWriter; + this._propertyFilterId = dVar._propertyFilterId; + this._serializationShape = dVar._serializationShape; + } + + public d(j jVar, e eVar, c[] cVarArr, c[] cVarArr2) { + super(jVar); + this._beanType = jVar; + this._props = cVarArr; + this._filteredProps = cVarArr2; + if (eVar == null) { + this._typeId = null; + this._anyGetterWriter = null; + this._propertyFilterId = null; + this._objectIdWriter = null; + this._serializationShape = null; + return; + } + this._typeId = eVar.h; + this._anyGetterWriter = eVar.f; + this._propertyFilterId = eVar.g; + this._objectIdWriter = eVar.i; + this._serializationShape = eVar.f687b.a(null).e(); + } + + public static final c[] t(c[] cVarArr, n nVar) { + if (cVarArr == null || cVarArr.length == 0 || nVar == null || nVar == n.j) { + return cVarArr; + } + int length = cVarArr.length; + c[] cVarArr2 = new c[length]; + for (int i = 0; i < length; i++) { + c cVar = cVarArr[i]; + if (cVar != null) { + cVarArr2[i] = cVar.g(nVar); + } + } + return cVarArr2; + } + + @Override // b.g.a.c.g0.i + public b.g.a.c.n a(x xVar, b.g.a.c.d dVar) throws JsonMappingException { + i.c cVar; + int i; + Set set; + Set set2; + Object obj; + d dVar2; + b.g.a.c.g0.t.j jVar; + Object obj2; + a0 s2; + b v = xVar.v(); + c[] cVarArr = null; + b.g.a.c.c0.i member = (dVar == null || v == null) ? null : dVar.getMember(); + v vVar = xVar._config; + i.d l = l(xVar, dVar, this._handledType); + char c = 0; + if (l == null || !l.i()) { + cVar = null; + } else { + cVar = l.e(); + if (!(cVar == i.c.ANY || cVar == this._serializationShape)) { + if (this._beanType.w()) { + int ordinal = cVar.ordinal(); + if (ordinal == 5 || ordinal == 7 || ordinal == 8) { + vVar.n(this._beanType); + Class cls = this._beanType._class; + return xVar.y(new m(f.a(xVar._config, cls), m.p(cls, l, true, null)), dVar); + } + } else if (cVar == i.c.NATURAL && ((!this._beanType.z() || !Map.class.isAssignableFrom(this._handledType)) && Map.Entry.class.isAssignableFrom(this._handledType))) { + j i2 = this._beanType.i(Map.Entry.class); + return xVar.y(new b.g.a.c.g0.t.i(this._beanType, i2.h(0), i2.h(1), false, null, dVar), dVar); + } + } + } + b.g.a.c.g0.t.j jVar2 = this._objectIdWriter; + if (member != null) { + set = v.x(vVar, member).d(); + set2 = v.A(vVar, member)._included; + a0 r = v.r(member); + if (r != null) { + a0 s3 = v.s(member, r); + Class> cls2 = s3.c; + j jVar3 = xVar.d().i(xVar.b(cls2), i0.class)[0]; + if (cls2 == l0.class) { + String str = s3.f667b._simpleName; + int length = this._props.length; + i = 0; + while (i != length) { + c cVar2 = this._props[i]; + if (str.equals(cVar2._name._value)) { + jVar2 = b.g.a.c.g0.t.j.a(cVar2._declaredType, null, new k(s3, cVar2), s3.f); + obj = v.g(member); + if (obj == null || ((obj2 = this._propertyFilterId) != null && obj.equals(obj2))) { + obj = null; + } + } else { + i++; + c = 0; + } + } + j jVar4 = this._beanType; + Object[] objArr = new Object[2]; + objArr[c] = b.g.a.c.i0.d.u(this._handledType); + objArr[1] = str == null ? "[null]" : b.g.a.c.i0.d.c(str); + xVar.f(jVar4, String.format("Invalid Object Id definition for %s: cannot find property with name %s", objArr)); + throw null; + } + jVar2 = b.g.a.c.g0.t.j.a(jVar3, s3.f667b, xVar.e(member, s3), s3.f); + } else if (!(jVar2 == null || (s2 = v.s(member, null)) == null)) { + jVar2 = this._objectIdWriter; + boolean z2 = s2.f; + if (z2 != jVar2.e) { + jVar2 = new b.g.a.c.g0.t.j(jVar2.a, jVar2.f690b, jVar2.c, jVar2.d, z2); + } + } + i = 0; + obj = v.g(member); + obj = null; + } else { + obj = null; + set2 = null; + set = null; + i = 0; + } + if (i > 0) { + c[] cVarArr2 = this._props; + c[] cVarArr3 = (c[]) Arrays.copyOf(cVarArr2, cVarArr2.length); + c cVar3 = cVarArr3[i]; + System.arraycopy(cVarArr3, 0, cVarArr3, 1, i); + cVarArr3[0] = cVar3; + c[] cVarArr4 = this._filteredProps; + if (cVarArr4 != null) { + cVarArr = (c[]) Arrays.copyOf(cVarArr4, cVarArr4.length); + c cVar4 = cVarArr[i]; + System.arraycopy(cVarArr, 0, cVarArr, 1, i); + cVarArr[0] = cVar4; + } + dVar2 = y(cVarArr3, cVarArr); + } else { + dVar2 = this; + } + if (!(jVar2 == null || (jVar = new b.g.a.c.g0.t.j(jVar2.a, jVar2.f690b, jVar2.c, xVar.t(jVar2.a, dVar), jVar2.e)) == this._objectIdWriter)) { + dVar2 = dVar2.x(jVar); + } + if ((set != null && !set.isEmpty()) || set2 != null) { + dVar2 = dVar2.v(set, set2); + } + if (obj != null) { + dVar2 = dVar2.w(obj); + } + if (cVar == null) { + cVar = this._serializationShape; + } + return cVar == i.c.ARRAY ? dVar2.s() : dVar2; + } + + @Override // b.g.a.c.g0.o + public void b(x xVar) throws JsonMappingException { + c cVar; + g gVar; + b.g.a.c.c0.b bVar; + Object H; + b.g.a.c.n nVar; + c cVar2; + c[] cVarArr = this._filteredProps; + int length = cVarArr == null ? 0 : cVarArr.length; + int length2 = this._props.length; + for (int i = 0; i < length2; i++) { + c cVar3 = this._props[i]; + boolean z2 = true; + if (!cVar3._suppressNulls) { + if (!(cVar3._nullSerializer != null) && (nVar = xVar._nullValueSerializer) != null) { + cVar3.e(nVar); + if (i < length && (cVar2 = this._filteredProps[i]) != null) { + cVar2.e(nVar); + } + } + } + if (cVar3._serializer == null) { + z2 = false; + } + if (!z2) { + b v = xVar.v(); + b.g.a.c.n nVar2 = null; + if (!(v == null || (bVar = cVar3._member) == null || (H = v.H(bVar)) == null)) { + b.g.a.c.i0.e c = xVar.c(cVar3._member, H); + j a = c.a(xVar.d()); + if (!a.y()) { + nVar2 = xVar.t(a, cVar3); + } + nVar2 = new j0(c, a, nVar2); + } + if (nVar2 == null) { + j jVar = cVar3._cfgSerializationType; + if (jVar == null) { + jVar = cVar3._declaredType; + if (!jVar.x()) { + if (jVar.v() || jVar.g() > 0) { + cVar3._nonTrivialBaseType = jVar; + } + } + } + nVar2 = xVar.t(jVar, cVar3); + if (jVar.v() && (gVar = (g) jVar.k()._typeHandler) != null && (nVar2 instanceof h)) { + h hVar = (h) nVar2; + Objects.requireNonNull(hVar); + nVar2 = hVar.p(gVar); + } + } + if (i >= length || (cVar = this._filteredProps[i]) == null) { + cVar3.f(nVar2); + } else { + cVar.f(nVar2); + } + } + } + a aVar = this._anyGetterWriter; + if (aVar != null) { + b.g.a.c.n nVar3 = aVar.c; + if (nVar3 instanceof b.g.a.c.g0.i) { + b.g.a.c.n y2 = xVar.y(nVar3, aVar.a); + aVar.c = y2; + if (y2 instanceof t) { + aVar.d = (t) y2; + } + } + } + } + + @Override // b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + if (this._objectIdWriter != null) { + dVar.e(obj); + p(obj, dVar, xVar, gVar); + return; + } + dVar.e(obj); + b.g.a.b.s.b r = r(gVar, obj, b.g.a.b.h.START_OBJECT); + gVar.e(dVar, r); + Object obj2 = this._propertyFilterId; + if (obj2 != null) { + if (this._filteredProps != null) { + Class cls = xVar._serializationView; + } + m(xVar, obj2, obj); + throw null; + } + u(obj, dVar, xVar); + gVar.f(dVar, r); + } + + @Override // b.g.a.c.n + public boolean i() { + return this._objectIdWriter != null; + } + + public final void p(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + b.g.a.c.g0.t.j jVar = this._objectIdWriter; + u p = xVar.p(obj, jVar.c); + if (!p.a(dVar, xVar, jVar)) { + if (p.f699b == null) { + p.f699b = p.a.c(obj); + } + Object obj2 = p.f699b; + if (jVar.e) { + jVar.d.f(obj2, dVar, xVar); + return; + } + b.g.a.c.g0.t.j jVar2 = this._objectIdWriter; + b.g.a.b.s.b r = r(gVar, obj, b.g.a.b.h.START_OBJECT); + gVar.e(dVar, r); + p.c = true; + Objects.requireNonNull(dVar); + b.g.a.b.k kVar = jVar2.f690b; + if (kVar != null) { + dVar.x(kVar); + jVar2.d.f(p.f699b, dVar, xVar); + } + Object obj3 = this._propertyFilterId; + if (obj3 == null) { + u(obj, dVar, xVar); + gVar.f(dVar, r); + return; + } + m(xVar, obj3, obj); + throw null; + } + } + + public final void q(Object obj, b.g.a.b.d dVar, x xVar, boolean z2) throws IOException { + b.g.a.c.g0.t.j jVar = this._objectIdWriter; + u p = xVar.p(obj, jVar.c); + if (!p.a(dVar, xVar, jVar)) { + if (p.f699b == null) { + p.f699b = p.a.c(obj); + } + Object obj2 = p.f699b; + if (jVar.e) { + jVar.d.f(obj2, dVar, xVar); + return; + } + if (z2) { + dVar.d0(obj); + } + p.c = true; + b.g.a.b.k kVar = jVar.f690b; + if (kVar != null) { + dVar.x(kVar); + jVar.d.f(p.f699b, dVar, xVar); + } + Object obj3 = this._propertyFilterId; + if (obj3 == null) { + u(obj, dVar, xVar); + if (z2) { + dVar.u(); + return; + } + return; + } + m(xVar, obj3, obj); + throw null; + } + } + + public final b.g.a.b.s.b r(g gVar, Object obj, b.g.a.b.h hVar) { + b.g.a.c.c0.i iVar = this._typeId; + if (iVar == null) { + return gVar.d(obj, hVar); + } + Object j = iVar.j(obj); + if (j == null) { + j = ""; + } + b.g.a.b.s.b d = gVar.d(obj, hVar); + d.c = j; + return d; + } + + public abstract d s(); + + public void u(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + String str = "[anySetter]"; + c[] cVarArr = this._filteredProps; + if (cVarArr == null || xVar._serializationView == null) { + cVarArr = this._props; + } + try { + for (c cVar : cVarArr) { + if (cVar != null) { + cVar.i(obj, dVar, xVar); + } + } + a aVar = this._anyGetterWriter; + if (aVar != null) { + aVar.a(obj, dVar, xVar); + } + } catch (Exception e) { + if (0 != cVarArr.length) { + str = cVarArr[0]._name._value; + } + o(xVar, e, obj, str); + throw null; + } catch (StackOverflowError e2) { + JsonMappingException jsonMappingException = new JsonMappingException(dVar, "Infinite recursion (StackOverflowError)", e2); + if (0 != cVarArr.length) { + str = cVarArr[0]._name._value; + } + jsonMappingException.e(new JsonMappingException.a(obj, str)); + throw jsonMappingException; + } + } + + public abstract d v(Set set, Set set2); + + public abstract d w(Object obj); + + public abstract d x(b.g.a.c.g0.t.j jVar); + + public abstract d y(c[] cVarArr, c[] cVarArr2); +} diff --git a/app/src/main/java/b/g/a/c/g0/u/d0.java b/app/src/main/java/b/g/a/c/g0/u/d0.java new file mode 100644 index 0000000000..a9ea77ce95 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/d0.java @@ -0,0 +1,230 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.c.b; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.g0.i; +import b.g.a.c.g0.t.l; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: ObjectArraySerializer */ +@a +public class d0 extends a implements i { + public l _dynamicSerializers = l.b.f692b; + public n _elementSerializer; + public final j _elementType; + public final boolean _staticTyping; + public final g _valueTypeSerializer; + + public d0(d0 d0Var, d dVar, g gVar, n nVar, Boolean bool) { + super(d0Var, dVar, bool); + this._elementType = d0Var._elementType; + this._valueTypeSerializer = gVar; + this._staticTyping = d0Var._staticTyping; + this._elementSerializer = nVar; + } + + public d0(j jVar, boolean z2, g gVar, n nVar) { + super(Object[].class); + this._elementType = jVar; + this._staticTyping = z2; + this._valueTypeSerializer = gVar; + this._elementSerializer = nVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:13:0x002a */ + /* JADX WARNING: Removed duplicated region for block: B:16:0x0033 */ + @Override // b.g.a.c.g0.u.a, b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + n nVar; + i.d l; + j jVar; + Object c; + g gVar = this._valueTypeSerializer; + if (gVar != null) { + gVar = gVar.a(dVar); + } + Boolean bool = null; + if (dVar != null) { + b.g.a.c.c0.i member = dVar.getMember(); + b v = xVar.v(); + if (!(member == null || (c = v.c(member)) == null)) { + nVar = xVar.H(member, c); + l = l(xVar, dVar, this._handledType); + if (l != null) { + bool = l.b(i.a.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED); + } + if (nVar == null) { + nVar = this._elementSerializer; + } + n k = k(xVar, dVar, nVar); + n m = (k == null || (jVar = this._elementType) == null || !this._staticTyping || jVar.y()) ? k : xVar.m(this._elementType, dVar); + return (this._property == dVar || m != this._elementSerializer || this._valueTypeSerializer != gVar || !Objects.equals(this._unwrapSingle, bool)) ? new d0(this, dVar, gVar, m, bool) : this; + } + } + nVar = null; + l = l(xVar, dVar, this._handledType); + if (l != null) { + } + if (nVar == null) { + } + n k = k(xVar, dVar, nVar); + if (k == null) { + } + if (this._property == dVar) { + } + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((Object[]) obj).length == 0; + } + + @Override // b.g.a.c.g0.u.a, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Object[] objArr = (Object[]) obj; + int length = objArr.length; + if (length != 1 || ((this._unwrapSingle != null || !xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) && this._unwrapSingle != Boolean.TRUE)) { + dVar.b0(objArr, length); + t(objArr, dVar, xVar); + dVar.t(); + return; + } + t(objArr, dVar, xVar); + } + + @Override // b.g.a.c.g0.h + public h p(g gVar) { + return new d0(this._elementType, this._staticTyping, gVar, this._elementSerializer); + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((Object[]) obj).length == 1; + } + + @Override // b.g.a.c.g0.u.a + public n s(d dVar, Boolean bool) { + return new d0(this, dVar, this._valueTypeSerializer, this._elementSerializer, bool); + } + + /* renamed from: u */ + public void t(Object[] objArr, b.g.a.b.d dVar, x xVar) throws IOException { + Exception e; + Object obj; + Exception e2; + Object obj2; + l b2; + int length = objArr.length; + if (length != 0) { + n nVar = this._elementSerializer; + int i = 0; + if (nVar != null) { + int length2 = objArr.length; + g gVar = this._valueTypeSerializer; + Object obj3 = null; + while (i < length2) { + try { + obj3 = objArr[i]; + if (obj3 == null) { + xVar.l(dVar); + } else if (gVar == null) { + nVar.f(obj3, dVar, xVar); + } else { + nVar.g(obj3, dVar, xVar, gVar); + } + i++; + } catch (Exception e3) { + n(xVar, e3, obj3, i); + throw null; + } + } + return; + } + g gVar2 = this._valueTypeSerializer; + if (gVar2 != null) { + int length3 = objArr.length; + try { + l lVar = this._dynamicSerializers; + obj2 = null; + while (i < length3) { + try { + obj2 = objArr[i]; + if (obj2 == null) { + xVar.l(dVar); + } else { + Class cls = obj2.getClass(); + n c = lVar.c(cls); + if (c == null && lVar != (b2 = lVar.b(cls, (c = xVar.n(cls, this._property))))) { + this._dynamicSerializers = b2; + } + c.g(obj2, dVar, xVar, gVar2); + } + i++; + } catch (Exception e4) { + e2 = e4; + n(xVar, e2, obj2, i); + throw null; + } + } + } catch (Exception e5) { + e2 = e5; + obj2 = null; + n(xVar, e2, obj2, i); + throw null; + } + } else { + try { + l lVar2 = this._dynamicSerializers; + obj = null; + while (i < length) { + try { + obj = objArr[i]; + if (obj == null) { + xVar.l(dVar); + } else { + Class cls2 = obj.getClass(); + n c2 = lVar2.c(cls2); + if (c2 == null) { + if (this._elementType.r()) { + l.d a = lVar2.a(xVar.k(this._elementType, cls2), xVar, this._property); + l lVar3 = a.f694b; + if (lVar2 != lVar3) { + this._dynamicSerializers = lVar3; + } + c2 = a.a; + } else { + c2 = xVar.n(cls2, this._property); + l b3 = lVar2.b(cls2, c2); + if (lVar2 != b3) { + this._dynamicSerializers = b3; + } + } + } + c2.f(obj, dVar, xVar); + } + i++; + } catch (Exception e6) { + e = e6; + n(xVar, e, obj, i); + throw null; + } + } + } catch (Exception e7) { + e = e7; + obj = null; + n(xVar, e, obj, i); + throw null; + } + } + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/e.java b/app/src/main/java/b/g/a/c/g0/u/e.java new file mode 100644 index 0000000000..e0b1b5d0fa --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/e.java @@ -0,0 +1,66 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.i; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +/* compiled from: BooleanSerializer */ +@b.g.a.c.y.a +public final class e extends p0 implements i { + private static final long serialVersionUID = 1; + public final boolean _forPrimitive; + + /* compiled from: BooleanSerializer */ + public static final class a extends p0 implements i { + private static final long serialVersionUID = 1; + public final boolean _forPrimitive; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(boolean z2) { + super(z2 ? Boolean.TYPE : Boolean.class, false); + this._forPrimitive = z2; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + i.d l = l(xVar, dVar, Boolean.class); + return (l == null || l.e().f()) ? this : new e(this._forPrimitive); + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + dVar.H(!Boolean.FALSE.equals(obj)); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public final void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + dVar.s(Boolean.TRUE.equals(obj)); + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e(boolean z2) { + super(z2 ? Boolean.TYPE : Boolean.class, false); + this._forPrimitive = z2; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + i.d l = l(xVar, dVar, Boolean.class); + return (l == null || !l.e().f()) ? this : new a(this._forPrimitive); + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + dVar.s(Boolean.TRUE.equals(obj)); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public final void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + dVar.s(Boolean.TRUE.equals(obj)); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/e0.java b/app/src/main/java/b/g/a/c/g0/u/e0.java new file mode 100644 index 0000000000..f48b706540 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/e0.java @@ -0,0 +1,26 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import java.io.IOException; +/* compiled from: RawSerializer */ +public class e0 extends q0 { + public e0(Class cls) { + super(cls, false); + } + + @Override // b.g.a.c.n + public void f(T t, d dVar, x xVar) throws IOException { + dVar.V(t.toString()); + } + + @Override // b.g.a.c.n + public void g(T t, d dVar, x xVar, g gVar) throws IOException { + b e = gVar.e(dVar, gVar.d(t, h.VALUE_EMBEDDED_OBJECT)); + dVar.V(t.toString()); + gVar.f(dVar, e); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/f.java b/app/src/main/java/b/g/a/c/g0/u/f.java new file mode 100644 index 0000000000..e7c632ebb8 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/f.java @@ -0,0 +1,37 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: ByteArraySerializer */ +@a +public class f extends q0 { + private static final long serialVersionUID = 1; + + public f() { + super(byte[].class); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((byte[]) obj).length == 0; + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + byte[] bArr = (byte[]) obj; + dVar.n(xVar._config._base._defaultBase64, bArr, 0, bArr.length); + } + + @Override // b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + byte[] bArr = (byte[]) obj; + b e = gVar.e(dVar, gVar.d(bArr, h.VALUE_EMBEDDED_OBJECT)); + dVar.n(xVar._config._base._defaultBase64, bArr, 0, bArr.length); + gVar.f(dVar, e); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/f0.java b/app/src/main/java/b/g/a/c/g0/u/f0.java new file mode 100644 index 0000000000..8383884c90 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/f0.java @@ -0,0 +1,251 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.p; +import b.g.a.c.b; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.i; +import b.g.a.c.g0.t.l; +import b.g.a.c.i0.n; +import b.g.a.c.j; +import b.g.a.c.x; +import b.g.a.c.y.e; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.RuntimeJsonMappingException; +import java.io.IOException; +/* compiled from: ReferenceTypeSerializer */ +public abstract class f0 extends q0 implements i { + private static final long serialVersionUID = 1; + public final d _property; + public final j _referredType; + public final boolean _suppressNulls; + public final Object _suppressableValue; + public final n _unwrapper; + public final b.g.a.c.n _valueSerializer; + public final g _valueTypeSerializer; + public transient l k; + + public f0(f0 f0Var, d dVar, g gVar, b.g.a.c.n nVar, n nVar2, Object obj, boolean z2) { + super(f0Var); + this._referredType = f0Var._referredType; + this.k = l.b.f692b; + this._property = dVar; + this._valueTypeSerializer = gVar; + this._valueSerializer = nVar; + this._unwrapper = nVar2; + this._suppressableValue = obj; + this._suppressNulls = z2; + } + + /* JADX WARN: Incorrect args count in method signature: (Lb/g/a/c/h0/i;ZLb/g/a/c/e0/g;Lb/g/a/c/n;)V */ + public f0(b.g.a.c.h0.i iVar, g gVar, b.g.a.c.n nVar) { + super(iVar); + this._referredType = iVar._referencedType; + this._property = null; + this._valueTypeSerializer = gVar; + this._valueSerializer = nVar; + this._unwrapper = null; + this._suppressableValue = null; + this._suppressNulls = false; + this.k = l.b.f692b; + } + + /* JADX WARNING: Code restructure failed: missing block: B:31:0x005f, code lost: + if (r6 == b.g.a.c.y.e.b.DYNAMIC) goto L_0x0033; + */ + /* JADX WARNING: Code restructure failed: missing block: B:70:0x00db, code lost: + if (r8._referredType.b() != false) goto L_0x00d3; + */ + /* JADX WARNING: Removed duplicated region for block: B:13:0x0027 */ + /* JADX WARNING: Removed duplicated region for block: B:34:0x006a */ + /* JADX WARNING: Removed duplicated region for block: B:74:0x00e4 */ + @Override // b.g.a.c.g0.i + public b.g.a.c.n a(x xVar, d dVar) throws JsonMappingException { + b.g.a.c.n nVar; + f0 u; + p.b b2; + p.a aVar; + boolean z2; + Object c; + Object obj = p.a.NON_EMPTY; + g gVar = this._valueTypeSerializer; + if (gVar != null) { + gVar = gVar.a(dVar); + } + if (dVar != null) { + b.g.a.c.c0.i member = dVar.getMember(); + b v = xVar.v(); + if (!(member == null || (c = v.c(member)) == null)) { + nVar = xVar.H(member, c); + boolean z3 = false; + if (nVar == null) { + nVar = this._valueSerializer; + if (nVar == null) { + j jVar = this._referredType; + if (!jVar.y()) { + if (!jVar.x() && !jVar._asStatic) { + b v2 = xVar.v(); + if (!(v2 == null || dVar == 0 || dVar.getMember() == null)) { + e.b K = v2.K(dVar.getMember()); + if (K != e.b.STATIC) { + } + } + z2 = xVar.C(b.g.a.c.p.USE_STATIC_TYPING); + if (z2) { + nVar = xVar.q(this._referredType, dVar); + } + } + z2 = true; + if (z2) { + } + } + z2 = false; + if (z2) { + } + } else { + nVar = xVar.y(nVar, dVar); + } + } + u = (this._property != dVar && this._valueTypeSerializer == gVar && this._valueSerializer == nVar) ? this : u(dVar, gVar, nVar, this._unwrapper); + if (dVar != null || (b2 = dVar.b(xVar._config, this._handledType)) == null || (aVar = b2._contentInclusion) == p.a.USE_DEFAULTS) { + return u; + } + int ordinal = aVar.ordinal(); + if (ordinal != 1) { + if (ordinal != 2) { + if (ordinal != 3) { + if (ordinal != 4) { + if (ordinal != 5) { + obj = null; + } else { + obj = xVar.A(null, b2._contentFilter); + if (obj != null) { + z3 = xVar.B(obj); + } + } + return (this._suppressableValue == obj || this._suppressNulls != z3) ? u.t(obj, z3) : u; + } + obj = b.c.a.a0.d.s0(this._referredType); + if (obj != null && obj.getClass().isArray()) { + obj = b.c.a.a0.d.p0(obj); + } + } + } + z3 = true; + if (this._suppressableValue == obj) { + } + } + obj = null; + z3 = true; + if (this._suppressableValue == obj) { + } + } + } + nVar = null; + boolean z3 = false; + if (nVar == null) { + } + if (this._property != dVar) { + } + return dVar != null ? u : u; + } + + @Override // b.g.a.c.n + public boolean d(x xVar, T t) { + if (!s(t)) { + return true; + } + Object q = q(t); + if (q == null) { + return this._suppressNulls; + } + if (this._suppressableValue == null) { + return false; + } + b.g.a.c.n nVar = this._valueSerializer; + if (nVar == null) { + try { + nVar = p(xVar, q.getClass()); + } catch (JsonMappingException e) { + throw new RuntimeJsonMappingException(e); + } + } + Object obj = this._suppressableValue; + return obj == p.a.NON_EMPTY ? nVar.d(xVar, q) : obj.equals(q); + } + + @Override // b.g.a.c.n + public boolean e() { + return this._unwrapper != null; + } + + @Override // b.g.a.c.n + public void f(T t, b.g.a.b.d dVar, x xVar) throws IOException { + Object r = r(t); + if (r != null) { + b.g.a.c.n nVar = this._valueSerializer; + if (nVar == null) { + nVar = p(xVar, r.getClass()); + } + g gVar = this._valueTypeSerializer; + if (gVar != null) { + nVar.g(r, dVar, xVar, gVar); + } else { + nVar.f(r, dVar, xVar); + } + } else if (this._unwrapper == null) { + xVar.l(dVar); + } + } + + @Override // b.g.a.c.n + public void g(T t, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + Object r = r(t); + if (r != null) { + b.g.a.c.n nVar = this._valueSerializer; + if (nVar == null) { + nVar = p(xVar, r.getClass()); + } + nVar.g(r, dVar, xVar, gVar); + } else if (this._unwrapper == null) { + xVar.l(dVar); + } + } + + @Override // b.g.a.c.n + public b.g.a.c.n h(n nVar) { + b.g.a.c.n nVar2 = this._valueSerializer; + if (nVar2 != null && (nVar2 = nVar2.h(nVar)) == this._valueSerializer) { + return this; + } + n nVar3 = this._unwrapper; + if (nVar3 != null) { + nVar = new n.a(nVar, nVar3); + } + return (this._valueSerializer == nVar2 && nVar3 == nVar) ? this : u(this._property, this._valueTypeSerializer, nVar2, nVar); + } + + public final b.g.a.c.n p(x xVar, Class cls) throws JsonMappingException { + b.g.a.c.n c = this.k.c(cls); + if (c != null) { + return c; + } + b.g.a.c.n q = this._referredType.r() ? xVar.q(xVar.k(this._referredType, cls), this._property) : xVar.r(cls, this._property); + n nVar = this._unwrapper; + if (nVar != null) { + q = q.h(nVar); + } + this.k = this.k.b(cls, q); + return q; + } + + public abstract Object q(T t); + + public abstract Object r(T t); + + public abstract boolean s(T t); + + public abstract f0 t(Object obj, boolean z2); + + public abstract f0 u(d dVar, g gVar, b.g.a.c.n nVar, n nVar2); +} diff --git a/app/src/main/java/b/g/a/c/g0/u/g.java b/app/src/main/java/b/g/a/c/g0/u/g.java new file mode 100644 index 0000000000..0ca0f58d17 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/g.java @@ -0,0 +1,38 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.b; +import b.g.a.b.d; +import b.g.a.c.i0.c; +import b.g.a.c.x; +import java.io.IOException; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: ByteBufferSerializer */ +public class g extends p0 { + public g() { + super(ByteBuffer.class); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + ByteBuffer byteBuffer = (ByteBuffer) obj; + if (byteBuffer.hasArray()) { + int position = byteBuffer.position(); + byte[] array = byteBuffer.array(); + int arrayOffset = byteBuffer.arrayOffset() + position; + int limit = byteBuffer.limit() - position; + Objects.requireNonNull(dVar); + dVar.n(b.f642b, array, arrayOffset, limit); + return; + } + ByteBuffer asReadOnlyBuffer = byteBuffer.asReadOnlyBuffer(); + if (asReadOnlyBuffer.position() > 0) { + asReadOnlyBuffer.rewind(); + } + c cVar = new c(asReadOnlyBuffer); + int remaining = asReadOnlyBuffer.remaining(); + Objects.requireNonNull(dVar); + dVar.f(b.f642b, cVar, remaining); + cVar.close(); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/g0.java b/app/src/main/java/b/g/a/c/g0/u/g0.java new file mode 100644 index 0000000000..1d960f4c33 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/g0.java @@ -0,0 +1,38 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.e0.g; +import b.g.a.c.m; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.util.Objects; +/* compiled from: SerializableSerializer */ +@a +public class g0 extends q0 { + public static final g0 k = new g0(); + + public g0() { + super(m.class); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + m mVar = (m) obj; + if (!(mVar instanceof m.a)) { + return false; + } + Objects.requireNonNull((m.a) mVar); + return false; + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + ((m) obj).c(dVar, xVar); + } + + @Override // b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + ((m) obj).d(dVar, xVar, gVar); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/h.java b/app/src/main/java/b/g/a/c/g0/u/h.java new file mode 100644 index 0000000000..e0e05e530e --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/h.java @@ -0,0 +1,37 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.text.DateFormat; +import java.util.Calendar; +/* compiled from: CalendarSerializer */ +@a +public class h extends l { + public static final h k = new h(); + + public h() { + super(Calendar.class, null, null); + } + + public h(Boolean bool, DateFormat dateFormat) { + super(Calendar.class, bool, dateFormat); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + Calendar calendar = (Calendar) obj; + if (p(xVar)) { + dVar.I(calendar == null ? 0 : calendar.getTimeInMillis()); + } else { + q(calendar.getTime(), dVar, xVar); + } + } + + /* Return type fixed from 'b.g.a.c.g0.u.l' to match base method */ + @Override // b.g.a.c.g0.u.l + public l r(Boolean bool, DateFormat dateFormat) { + return new h(bool, dateFormat); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/h0.java b/app/src/main/java/b/g/a/c/g0/u/h0.java new file mode 100644 index 0000000000..7e0aa58d11 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/h0.java @@ -0,0 +1,75 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.c.b; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.i; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Collection; +import java.util.Objects; +/* compiled from: StaticListSerializerBase */ +public abstract class h0> extends q0 implements i { + public final Boolean _unwrapSingle; + + public h0(h0 h0Var, Boolean bool) { + super(h0Var); + this._unwrapSingle = bool; + } + + public h0(Class cls) { + super(cls, false); + this._unwrapSingle = null; + } + + /* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: b.g.a.c.g0.u.h0> */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:10:0x0023 */ + /* JADX WARNING: Removed duplicated region for block: B:11:0x002a */ + /* JADX WARNING: Removed duplicated region for block: B:14:0x0031 */ + /* JADX WARNING: Removed duplicated region for block: B:17:0x003b */ + /* JADX WARNING: Removed duplicated region for block: B:22:0x0049 */ + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + n nVar; + n k; + Object c; + if (dVar != null) { + b v = xVar.v(); + b.g.a.c.c0.i member = dVar.getMember(); + if (!(member == null || (c = v.c(member)) == null)) { + nVar = xVar.H(member, c); + i.d l = l(xVar, dVar, this._handledType); + Boolean b2 = l == null ? l.b(i.a.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED) : null; + k = k(xVar, dVar, nVar); + if (k == null) { + k = xVar.n(String.class, dVar); + } + return !b.g.a.c.i0.d.s(k) ? Objects.equals(b2, this._unwrapSingle) ? this : p(dVar, b2) : new j(xVar.b(String.class), true, null, k); + } + } + nVar = null; + i.d l = l(xVar, dVar, this._handledType); + if (l == null) { + } + k = k(xVar, dVar, nVar); + if (k == null) { + } + if (!b.g.a.c.i0.d.s(k)) { + } + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + Collection collection = (Collection) obj; + return collection == null || collection.size() == 0; + } + + public abstract n p(d dVar, Boolean bool); + + /* renamed from: q */ + public abstract void g(T t, b.g.a.b.d dVar, x xVar, g gVar) throws IOException; +} diff --git a/app/src/main/java/b/g/a/c/g0/u/i.java b/app/src/main/java/b/g/a/c/g0/u/i.java new file mode 100644 index 0000000000..b0402712e7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/i.java @@ -0,0 +1,16 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.x; +import java.io.IOException; +/* compiled from: ClassSerializer */ +public class i extends p0> { + public i() { + super(Class.class, false); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.j0(((Class) obj).getName()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/i0.java b/app/src/main/java/b/g/a/c/g0/u/i0.java new file mode 100644 index 0000000000..a03470272b --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/i0.java @@ -0,0 +1,455 @@ +package b.g.a.c.g0.u; + +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import java.io.IOException; +import java.util.HashMap; +import java.util.Objects; +/* compiled from: StdArraySerializers */ +public class i0 { + public static final HashMap> a; + + /* compiled from: StdArraySerializers */ + @b.g.a.c.y.a + public static class a extends a { + static { + b.g.a.c.h0.n.k.j(Boolean.class); + } + + public a() { + super(boolean[].class); + } + + public a(a aVar, b.g.a.c.d dVar, Boolean bool) { + super(aVar, dVar, bool); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((boolean[]) obj).length == 0; + } + + @Override // b.g.a.c.g0.u.a, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + boolean[] zArr = (boolean[]) obj; + int length = zArr.length; + if (length != 1 || !r(xVar)) { + dVar.b0(zArr, length); + u(zArr, dVar); + dVar.t(); + return; + } + u(zArr, dVar); + } + + @Override // b.g.a.c.g0.h + public b.g.a.c.g0.h p(b.g.a.c.e0.g gVar) { + return this; + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((boolean[]) obj).length == 1; + } + + @Override // b.g.a.c.g0.u.a + public n s(b.g.a.c.d dVar, Boolean bool) { + return new a(this, dVar, bool); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, b.g.a.b.d, b.g.a.c.x] */ + @Override // b.g.a.c.g0.u.a + public /* bridge */ /* synthetic */ void t(boolean[] zArr, b.g.a.b.d dVar, x xVar) throws IOException { + u(zArr, dVar); + } + + public void u(boolean[] zArr, b.g.a.b.d dVar) throws IOException { + for (boolean z2 : zArr) { + dVar.s(z2); + } + } + } + + /* compiled from: StdArraySerializers */ + @b.g.a.c.y.a + public static class b extends q0 { + public b() { + super(char[].class); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((char[]) obj).length == 0; + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + char[] cArr = (char[]) obj; + if (xVar.D(w.WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS)) { + dVar.b0(cArr, cArr.length); + int length = cArr.length; + for (int i = 0; i < length; i++) { + dVar.m0(cArr, i, 1); + } + dVar.t(); + return; + } + dVar.m0(cArr, 0, cArr.length); + } + + @Override // b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, b.g.a.c.e0.g gVar) throws IOException { + b.g.a.b.s.b bVar; + char[] cArr = (char[]) obj; + if (xVar.D(w.WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS)) { + bVar = gVar.e(dVar, gVar.d(cArr, b.g.a.b.h.START_ARRAY)); + int length = cArr.length; + for (int i = 0; i < length; i++) { + dVar.m0(cArr, i, 1); + } + } else { + bVar = gVar.e(dVar, gVar.d(cArr, b.g.a.b.h.VALUE_STRING)); + dVar.m0(cArr, 0, cArr.length); + } + gVar.f(dVar, bVar); + } + } + + /* compiled from: StdArraySerializers */ + @b.g.a.c.y.a + public static class c extends a { + static { + b.g.a.c.h0.n.k.j(Double.TYPE); + } + + public c() { + super(double[].class); + } + + public c(c cVar, b.g.a.c.d dVar, Boolean bool) { + super(cVar, dVar, bool); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((double[]) obj).length == 0; + } + + @Override // b.g.a.c.g0.u.a, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + double[] dArr = (double[]) obj; + int i = 0; + if (dArr.length != 1 || !r(xVar)) { + int length = dArr.length; + Objects.requireNonNull(dVar); + dVar.a(dArr.length, 0, length); + dVar.b0(dArr, length); + int i2 = length + 0; + while (i < i2) { + dVar.C(dArr[i]); + i++; + } + dVar.t(); + return; + } + int length2 = dArr.length; + while (i < length2) { + dVar.C(dArr[i]); + i++; + } + } + + @Override // b.g.a.c.g0.h + public b.g.a.c.g0.h p(b.g.a.c.e0.g gVar) { + return this; + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((double[]) obj).length == 1; + } + + @Override // b.g.a.c.g0.u.a + public n s(b.g.a.c.d dVar, Boolean bool) { + return new c(this, dVar, bool); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, b.g.a.b.d, b.g.a.c.x] */ + @Override // b.g.a.c.g0.u.a + public void t(double[] dArr, b.g.a.b.d dVar, x xVar) throws IOException { + for (double d : dArr) { + dVar.C(d); + } + } + } + + /* compiled from: StdArraySerializers */ + @b.g.a.c.y.a + public static class d extends h { + static { + b.g.a.c.h0.n.k.j(Float.TYPE); + } + + public d() { + super(float[].class); + } + + public d(d dVar, b.g.a.c.d dVar2, Boolean bool) { + super(dVar, dVar2, bool); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((float[]) obj).length == 0; + } + + @Override // b.g.a.c.g0.u.a, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + float[] fArr = (float[]) obj; + int length = fArr.length; + if (length != 1 || !r(xVar)) { + dVar.b0(fArr, length); + u(fArr, dVar); + dVar.t(); + return; + } + u(fArr, dVar); + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((float[]) obj).length == 1; + } + + @Override // b.g.a.c.g0.u.a + public n s(b.g.a.c.d dVar, Boolean bool) { + return new d(this, dVar, bool); + } + + @Override // b.g.a.c.g0.u.a + public /* bridge */ /* synthetic */ void t(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + u((float[]) obj, dVar); + } + + public void u(float[] fArr, b.g.a.b.d dVar) throws IOException { + for (float f : fArr) { + dVar.D(f); + } + } + } + + /* compiled from: StdArraySerializers */ + @b.g.a.c.y.a + public static class e extends a { + static { + b.g.a.c.h0.n.k.j(Integer.TYPE); + } + + public e() { + super(int[].class); + } + + public e(e eVar, b.g.a.c.d dVar, Boolean bool) { + super(eVar, dVar, bool); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((int[]) obj).length == 0; + } + + @Override // b.g.a.c.g0.u.a, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + int[] iArr = (int[]) obj; + int i = 0; + if (iArr.length != 1 || !r(xVar)) { + int length = iArr.length; + Objects.requireNonNull(dVar); + dVar.a(iArr.length, 0, length); + dVar.b0(iArr, length); + int i2 = length + 0; + while (i < i2) { + dVar.H(iArr[i]); + i++; + } + dVar.t(); + return; + } + int length2 = iArr.length; + while (i < length2) { + dVar.H(iArr[i]); + i++; + } + } + + @Override // b.g.a.c.g0.h + public b.g.a.c.g0.h p(b.g.a.c.e0.g gVar) { + return this; + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((int[]) obj).length == 1; + } + + @Override // b.g.a.c.g0.u.a + public n s(b.g.a.c.d dVar, Boolean bool) { + return new e(this, dVar, bool); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, b.g.a.b.d, b.g.a.c.x] */ + @Override // b.g.a.c.g0.u.a + public void t(int[] iArr, b.g.a.b.d dVar, x xVar) throws IOException { + for (int i : iArr) { + dVar.H(i); + } + } + } + + /* compiled from: StdArraySerializers */ + @b.g.a.c.y.a + public static class f extends h { + static { + b.g.a.c.h0.n.k.j(Long.TYPE); + } + + public f() { + super(long[].class); + } + + public f(f fVar, b.g.a.c.d dVar, Boolean bool) { + super(fVar, dVar, bool); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((long[]) obj).length == 0; + } + + @Override // b.g.a.c.g0.u.a, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + long[] jArr = (long[]) obj; + int i = 0; + if (jArr.length != 1 || !r(xVar)) { + int length = jArr.length; + Objects.requireNonNull(dVar); + dVar.a(jArr.length, 0, length); + dVar.b0(jArr, length); + int i2 = length + 0; + while (i < i2) { + dVar.I(jArr[i]); + i++; + } + dVar.t(); + return; + } + int length2 = jArr.length; + while (i < length2) { + dVar.I(jArr[i]); + i++; + } + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((long[]) obj).length == 1; + } + + @Override // b.g.a.c.g0.u.a + public n s(b.g.a.c.d dVar, Boolean bool) { + return new f(this, dVar, bool); + } + + @Override // b.g.a.c.g0.u.a + public void t(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + for (long j : (long[]) obj) { + dVar.I(j); + } + } + } + + /* compiled from: StdArraySerializers */ + @b.g.a.c.y.a + public static class g extends h { + static { + b.g.a.c.h0.n.k.j(Short.TYPE); + } + + public g() { + super(short[].class); + } + + public g(g gVar, b.g.a.c.d dVar, Boolean bool) { + super(gVar, dVar, bool); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((short[]) obj).length == 0; + } + + @Override // b.g.a.c.g0.u.a, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + short[] sArr = (short[]) obj; + int length = sArr.length; + if (length != 1 || !r(xVar)) { + dVar.b0(sArr, length); + u(sArr, dVar); + dVar.t(); + return; + } + u(sArr, dVar); + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((short[]) obj).length == 1; + } + + @Override // b.g.a.c.g0.u.a + public n s(b.g.a.c.d dVar, Boolean bool) { + return new g(this, dVar, bool); + } + + @Override // b.g.a.c.g0.u.a + public /* bridge */ /* synthetic */ void t(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + u((short[]) obj, dVar); + } + + public void u(short[] sArr, b.g.a.b.d dVar) throws IOException { + for (short s2 : sArr) { + dVar.H(s2); + } + } + } + + /* compiled from: StdArraySerializers */ + public static abstract class h extends a { + public h(h hVar, b.g.a.c.d dVar, Boolean bool) { + super(hVar, dVar, bool); + } + + public h(Class cls) { + super(cls); + } + + @Override // b.g.a.c.g0.h + public final b.g.a.c.g0.h p(b.g.a.c.e0.g gVar) { + return this; + } + } + + static { + HashMap> hashMap = new HashMap<>(); + a = hashMap; + hashMap.put(boolean[].class.getName(), new a()); + hashMap.put(byte[].class.getName(), new f()); + hashMap.put(char[].class.getName(), new b()); + hashMap.put(short[].class.getName(), new g()); + hashMap.put(int[].class.getName(), new e()); + hashMap.put(long[].class.getName(), new f()); + hashMap.put(float[].class.getName(), new d()); + hashMap.put(double[].class.getName(), new c()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/j.java b/app/src/main/java/b/g/a/c/g0/u/j.java new file mode 100644 index 0000000000..960c078025 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/j.java @@ -0,0 +1,129 @@ +package b.g.a.c.g0.u; + +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.g0.t.l; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import java.io.IOException; +import java.util.Collection; +import java.util.Iterator; +/* compiled from: CollectionSerializer */ +public class j extends b> { + private static final long serialVersionUID = 1; + + public j(j jVar, d dVar, g gVar, n nVar, Boolean bool) { + super(jVar, dVar, gVar, nVar, bool); + } + + public j(b.g.a.c.j jVar, boolean z2, g gVar, n nVar) { + super(Collection.class, jVar, z2, gVar, nVar); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((Collection) obj).isEmpty(); + } + + @Override // b.g.a.c.g0.u.b, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Collection collection = (Collection) obj; + int size = collection.size(); + if (size != 1 || ((this._unwrapSingle != null || !xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) && this._unwrapSingle != Boolean.TRUE)) { + dVar.b0(collection, size); + s(collection, dVar, xVar); + dVar.t(); + return; + } + s(collection, dVar, xVar); + } + + @Override // b.g.a.c.g0.h + public h p(g gVar) { + return new j(this, this._property, gVar, this._elementSerializer, this._unwrapSingle); + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((Collection) obj).size() == 1; + } + + /* Return type fixed from 'b.g.a.c.g0.u.b' to match base method */ + @Override // b.g.a.c.g0.u.b + public b> t(d dVar, g gVar, n nVar, Boolean bool) { + return new j(this, dVar, gVar, nVar, bool); + } + + /* renamed from: u */ + public void s(Collection collection, b.g.a.b.d dVar, x xVar) throws IOException { + n nVar; + dVar.e(collection); + n nVar2 = this._elementSerializer; + int i = 0; + if (nVar2 != null) { + Iterator it = collection.iterator(); + if (it.hasNext()) { + g gVar = this._valueTypeSerializer; + do { + Object next = it.next(); + if (next == null) { + try { + xVar.l(dVar); + } catch (Exception e) { + n(xVar, e, collection, i); + throw null; + } + } else if (gVar == null) { + nVar2.f(next, dVar, xVar); + } else { + nVar2.g(next, dVar, xVar, gVar); + } + i++; + } while (it.hasNext()); + return; + } + return; + } + Iterator it2 = collection.iterator(); + if (it2.hasNext()) { + l lVar = this._dynamicSerializers; + g gVar2 = this._valueTypeSerializer; + do { + try { + Object next2 = it2.next(); + if (next2 == null) { + xVar.l(dVar); + } else { + Class cls = next2.getClass(); + n c = lVar.c(cls); + if (c == null) { + if (this._elementType.r()) { + l.d a = lVar.a(xVar.k(this._elementType, cls), xVar, this._property); + l lVar2 = a.f694b; + if (lVar != lVar2) { + this._dynamicSerializers = lVar2; + } + nVar = a.a; + } else { + nVar = r(lVar, cls, xVar); + } + c = nVar; + lVar = this._dynamicSerializers; + } + if (gVar2 == null) { + c.f(next2, dVar, xVar); + } else { + c.g(next2, dVar, xVar, gVar2); + } + } + i++; + } catch (Exception e2) { + n(xVar, e2, collection, i); + throw null; + } + } while (it2.hasNext()); + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/j0.java b/app/src/main/java/b/g/a/c/g0/u/j0.java new file mode 100644 index 0000000000..d856f5d963 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/j0.java @@ -0,0 +1,108 @@ +package b.g.a.c.g0.u; + +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.i; +import b.g.a.c.g0.o; +import b.g.a.c.i0.e; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +/* compiled from: StdDelegatingSerializer */ +public class j0 extends q0 implements i, o { + public final e _converter; + public final n _delegateSerializer; + public final j _delegateType; + + public j0(e eVar, j jVar, n nVar) { + super(jVar); + this._converter = eVar; + this._delegateType = jVar; + this._delegateSerializer = nVar; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + n nVar = this._delegateSerializer; + j jVar = this._delegateType; + if (nVar == null) { + if (jVar == null) { + jVar = this._converter.a(xVar.d()); + } + if (!jVar.y()) { + nVar = xVar.s(jVar); + } + } + if (nVar instanceof i) { + nVar = xVar.z(nVar, dVar); + } + if (nVar == this._delegateSerializer && jVar == this._delegateType) { + return this; + } + e eVar = this._converter; + b.g.a.c.i0.d.z(j0.class, this, "withDelegate"); + return new j0(eVar, jVar, nVar); + } + + @Override // b.g.a.c.g0.o + public void b(x xVar) throws JsonMappingException { + n nVar = this._delegateSerializer; + if (nVar != null && (nVar instanceof o)) { + ((o) nVar).b(xVar); + } + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + Object convert = this._converter.convert(obj); + if (convert == null) { + return true; + } + n nVar = this._delegateSerializer; + return nVar == null ? obj == null : nVar.d(xVar, convert); + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Object convert = this._converter.convert(obj); + if (convert == null) { + xVar.l(dVar); + return; + } + n nVar = this._delegateSerializer; + if (nVar == null) { + nVar = p(convert, xVar); + } + nVar.f(convert, dVar, xVar); + } + + @Override // b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + Object convert = this._converter.convert(obj); + n nVar = this._delegateSerializer; + if (nVar == null) { + nVar = p(obj, xVar); + } + nVar.g(convert, dVar, xVar, gVar); + } + + public n p(Object obj, x xVar) throws JsonMappingException { + Class cls = obj.getClass(); + n b2 = xVar._knownSerializers.b(cls); + if (b2 != null) { + return b2; + } + n b3 = xVar._serializerCache.b(cls); + if (b3 != null) { + return b3; + } + n a = xVar._serializerCache.a(xVar._config._base._typeFactory.b(null, cls, b.g.a.c.h0.n.l)); + if (a != null) { + return a; + } + n i = xVar.i(cls); + return i == null ? xVar.x(cls) : i; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/k.java b/app/src/main/java/b/g/a/c/g0/u/k.java new file mode 100644 index 0000000000..8b9a2566b9 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/k.java @@ -0,0 +1,37 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.text.DateFormat; +import java.util.Date; +/* compiled from: DateSerializer */ +@a +public class k extends l { + public static final k k = new k(); + + public k() { + super(Date.class, null, null); + } + + public k(Boolean bool, DateFormat dateFormat) { + super(Date.class, bool, dateFormat); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + Date date = (Date) obj; + if (p(xVar)) { + dVar.I(date == null ? 0 : date.getTime()); + } else { + q(date, dVar, xVar); + } + } + + /* Return type fixed from 'b.g.a.c.g0.u.l' to match base method */ + @Override // b.g.a.c.g0.u.l + public l r(Boolean bool, DateFormat dateFormat) { + return new k(bool, dateFormat); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/k0.java b/app/src/main/java/b/g/a/c/g0/u/k0.java new file mode 100644 index 0000000000..90c1bb1e31 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/k0.java @@ -0,0 +1,17 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.x; +import java.io.IOException; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: StdJdkSerializers */ +public class k0 extends p0 { + public k0() { + super(AtomicBoolean.class, false); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.s(((AtomicBoolean) obj).get()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/l.java b/app/src/main/java/b/g/a/c/g0/u/l.java new file mode 100644 index 0000000000..9c5ff38d45 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/l.java @@ -0,0 +1,129 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.c.d; +import b.g.a.c.g0.i; +import b.g.a.c.i0.r; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.z.a; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Objects; +import java.util.TimeZone; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: DateTimeSerializerBase */ +public abstract class l extends p0 implements i { + public final DateFormat _customFormat; + public final AtomicReference _reusedCustomFormat; + public final Boolean _useTimestamp; + + public l(Class cls, Boolean bool, DateFormat dateFormat) { + super(cls); + this._useTimestamp = bool; + this._customFormat = dateFormat; + this._reusedCustomFormat = dateFormat == null ? null : new AtomicReference<>(); + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + TimeZone timeZone; + i.d l = l(xVar, dVar, this._handledType); + if (l == null) { + return this; + } + i.c e = l.e(); + if (e.f()) { + return r(Boolean.TRUE, null); + } + if (l.h()) { + SimpleDateFormat simpleDateFormat = new SimpleDateFormat(l.d(), l.g() ? l.c() : xVar._config._base._locale); + if (l.j()) { + timeZone = l.f(); + } else { + timeZone = xVar._config._base._timeZone; + if (timeZone == null) { + timeZone = a.j; + } + } + simpleDateFormat.setTimeZone(timeZone); + return r(Boolean.FALSE, simpleDateFormat); + } + boolean g = l.g(); + boolean j = l.j(); + boolean z2 = true; + boolean z3 = e == i.c.STRING; + if (!g && !j && !z3) { + return this; + } + DateFormat dateFormat = xVar._config._base._dateFormat; + if (dateFormat instanceof r) { + r rVar = (r) dateFormat; + if (l.g()) { + rVar = rVar.l(l.c()); + } + if (l.j()) { + rVar = rVar.m(l.f()); + } + return r(Boolean.FALSE, rVar); + } + if (!(dateFormat instanceof SimpleDateFormat)) { + xVar.g(this._handledType, String.format("Configured `DateFormat` (%s) not a `SimpleDateFormat`; cannot configure `Locale` or `TimeZone`", dateFormat.getClass().getName())); + } + SimpleDateFormat simpleDateFormat2 = (SimpleDateFormat) dateFormat; + SimpleDateFormat simpleDateFormat3 = g ? new SimpleDateFormat(simpleDateFormat2.toPattern(), l.c()) : (SimpleDateFormat) simpleDateFormat2.clone(); + TimeZone f = l.f(); + if (f == null || f.equals(simpleDateFormat3.getTimeZone())) { + z2 = false; + } + if (z2) { + simpleDateFormat3.setTimeZone(f); + } + return r(Boolean.FALSE, simpleDateFormat3); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, T t) { + return false; + } + + public boolean p(x xVar) { + Boolean bool = this._useTimestamp; + if (bool != null) { + return bool.booleanValue(); + } + if (this._customFormat != null) { + return false; + } + if (xVar != null) { + return xVar.D(w.WRITE_DATES_AS_TIMESTAMPS); + } + StringBuilder R = b.d.b.a.a.R("Null SerializerProvider passed for "); + R.append(this._handledType.getName()); + throw new IllegalArgumentException(R.toString()); + } + + public void q(Date date, b.g.a.b.d dVar, x xVar) throws IOException { + if (this._customFormat == null) { + Objects.requireNonNull(xVar); + if (xVar.D(w.WRITE_DATES_AS_TIMESTAMPS)) { + dVar.I(date.getTime()); + } else { + dVar.j0(xVar.j().format(date)); + } + } else { + DateFormat andSet = this._reusedCustomFormat.getAndSet(null); + if (andSet == null) { + andSet = (DateFormat) this._customFormat.clone(); + } + dVar.j0(andSet.format(date)); + this._reusedCustomFormat.compareAndSet(null, andSet); + } + } + + public abstract l r(Boolean bool, DateFormat dateFormat); +} diff --git a/app/src/main/java/b/g/a/c/g0/u/l0.java b/app/src/main/java/b/g/a/c/g0/u/l0.java new file mode 100644 index 0000000000..115ebd9bde --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/l0.java @@ -0,0 +1,17 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.x; +import java.io.IOException; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: StdJdkSerializers */ +public class l0 extends p0 { + public l0() { + super(AtomicInteger.class, false); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.H(((AtomicInteger) obj).get()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/m.java b/app/src/main/java/b/g/a/c/g0/u/m.java new file mode 100644 index 0000000000..81955eca19 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/m.java @@ -0,0 +1,71 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.c.d; +import b.g.a.c.g0.i; +import b.g.a.c.i0.f; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: EnumSerializer */ +@a +public class m extends p0> implements i { + public static final /* synthetic */ int k = 0; + private static final long serialVersionUID = 1; + public final Boolean _serializeAsIndex; + public final f _values; + + public m(f fVar, Boolean bool) { + super(fVar.b(), false); + this._values = fVar; + this._serializeAsIndex = bool; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x003f: APUT (r0v3 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r3v3 java.lang.String) */ + public static Boolean p(Class cls, i.d dVar, boolean z2, Boolean bool) { + i.c e = dVar == null ? null : dVar.e(); + if (e == null || e == i.c.ANY || e == i.c.SCALAR) { + return bool; + } + if (e == i.c.STRING || e == i.c.NATURAL) { + return Boolean.FALSE; + } + if (e.f() || e == i.c.ARRAY) { + return Boolean.TRUE; + } + Object[] objArr = new Object[3]; + objArr[0] = e; + objArr[1] = cls.getName(); + objArr[2] = z2 ? "class" : "property"; + throw new IllegalArgumentException(String.format("Unsupported serialization shape (%s) for Enum %s, not supported as %s annotation", objArr)); + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + i.d l = l(xVar, dVar, this._handledType); + if (l != null) { + Boolean p = p(this._handledType, l, false, this._serializeAsIndex); + if (!Objects.equals(p, this._serializeAsIndex)) { + return new m(this._values, p); + } + } + return this; + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Enum r2 = (Enum) obj; + Boolean bool = this._serializeAsIndex; + if (bool != null ? bool.booleanValue() : xVar.D(w.WRITE_ENUMS_USING_INDEX)) { + dVar.H(r2.ordinal()); + } else if (xVar.D(w.WRITE_ENUMS_USING_TO_STRING)) { + dVar.j0(r2.toString()); + } else { + dVar.g0(this._values.c(r2)); + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/m0.java b/app/src/main/java/b/g/a/c/g0/u/m0.java new file mode 100644 index 0000000000..8c83554043 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/m0.java @@ -0,0 +1,17 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.x; +import java.io.IOException; +import java.util.concurrent.atomic.AtomicLong; +/* compiled from: StdJdkSerializers */ +public class m0 extends p0 { + public m0() { + super(AtomicLong.class, false); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.I(((AtomicLong) obj).get()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/n.java b/app/src/main/java/b/g/a/c/g0/u/n.java new file mode 100644 index 0000000000..72d16b2933 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/n.java @@ -0,0 +1,68 @@ +package b.g.a.c.g0.u; + +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.j; +import b.g.a.c.w; +import b.g.a.c.x; +import java.io.IOException; +import java.util.EnumSet; +import java.util.Iterator; +/* compiled from: EnumSetSerializer */ +public class n extends b>> { + public n(n nVar, d dVar, g gVar, b.g.a.c.n nVar2, Boolean bool) { + super(nVar, dVar, gVar, nVar2, bool); + } + + public n(j jVar) { + super((Class) EnumSet.class, jVar, true, (g) null, (b.g.a.c.n) null); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((EnumSet) obj).isEmpty(); + } + + @Override // b.g.a.c.g0.u.b, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + EnumSet> enumSet = (EnumSet) obj; + int size = enumSet.size(); + if (size != 1 || ((this._unwrapSingle != null || !xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) && this._unwrapSingle != Boolean.TRUE)) { + dVar.b0(enumSet, size); + s(enumSet, dVar, xVar); + dVar.t(); + return; + } + s(enumSet, dVar, xVar); + } + + @Override // b.g.a.c.g0.h + public h p(g gVar) { + return this; + } + + @Override // b.g.a.c.g0.h + public boolean q(Object obj) { + return ((EnumSet) obj).size() == 1; + } + + /* Return type fixed from 'b.g.a.c.g0.u.b' to match base method */ + @Override // b.g.a.c.g0.u.b + public b>> t(d dVar, g gVar, b.g.a.c.n nVar, Boolean bool) { + return new n(this, dVar, gVar, nVar, bool); + } + + /* renamed from: u */ + public void s(EnumSet> enumSet, b.g.a.b.d dVar, x xVar) throws IOException { + b.g.a.c.n nVar = this._elementSerializer; + Iterator it = enumSet.iterator(); + while (it.hasNext()) { + Enum r1 = (Enum) it.next(); + if (nVar == null) { + nVar = xVar.n(r1.getDeclaringClass(), this._property); + } + nVar.f(r1, dVar, xVar); + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/n0.java b/app/src/main/java/b/g/a/c/g0/u/n0.java new file mode 100644 index 0000000000..3c53acd64a --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/n0.java @@ -0,0 +1,17 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.x; +import java.io.IOException; +/* compiled from: StdKeySerializer */ +@Deprecated +public class n0 extends q0 { + public n0() { + super(Object.class); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.y(obj.toString()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/o.java b/app/src/main/java/b/g/a/c/g0/u/o.java new file mode 100644 index 0000000000..e79dcd0bea --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/o.java @@ -0,0 +1,17 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.x; +import java.io.File; +import java.io.IOException; +/* compiled from: FileSerializer */ +public class o extends p0 { + public o() { + super(File.class); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.j0(((File) obj).getAbsolutePath()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/o0.java b/app/src/main/java/b/g/a/c/g0/u/o0.java new file mode 100644 index 0000000000..561d5e334f --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/o0.java @@ -0,0 +1,146 @@ +package b.g.a.c.g0.u; + +import b.g.a.c.g0.t.l; +import b.g.a.c.i0.f; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import java.io.IOException; +import java.util.Calendar; +import java.util.Date; +import java.util.Objects; +/* compiled from: StdKeySerializers */ +public abstract class o0 { + public static final n a = new d(); + + /* compiled from: StdKeySerializers */ + public static class a extends q0 { + public final int _typeId; + + public a(int i, Class cls) { + super(cls, false); + this._typeId = i; + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + String str; + switch (this._typeId) { + case 1: + Date date = (Date) obj; + Objects.requireNonNull(xVar); + if (xVar.D(w.WRITE_DATE_KEYS_AS_TIMESTAMPS)) { + dVar.y(String.valueOf(date.getTime())); + return; + } else { + dVar.y(xVar.j().format(date)); + return; + } + case 2: + long timeInMillis = ((Calendar) obj).getTimeInMillis(); + Objects.requireNonNull(xVar); + if (xVar.D(w.WRITE_DATE_KEYS_AS_TIMESTAMPS)) { + dVar.y(String.valueOf(timeInMillis)); + return; + } else { + dVar.y(xVar.j().format(new Date(timeInMillis))); + return; + } + case 3: + dVar.y(((Class) obj).getName()); + return; + case 4: + if (xVar.D(w.WRITE_ENUMS_USING_TO_STRING)) { + str = obj.toString(); + } else { + Enum r3 = (Enum) obj; + str = xVar.D(w.WRITE_ENUM_KEYS_USING_INDEX) ? String.valueOf(r3.ordinal()) : r3.name(); + } + dVar.y(str); + return; + case 5: + case 6: + long longValue = ((Number) obj).longValue(); + Objects.requireNonNull(dVar); + dVar.y(Long.toString(longValue)); + return; + case 7: + dVar.y(xVar._config._base._defaultBase64.a((byte[]) obj)); + return; + default: + dVar.y(obj.toString()); + return; + } + } + } + + /* compiled from: StdKeySerializers */ + public static class b extends q0 { + public transient l k = l.b.f692b; + + public b() { + super(String.class, false); + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Class cls = obj.getClass(); + l lVar = this.k; + n c = lVar.c(cls); + if (c == null) { + if (cls == Object.class) { + c = new a(8, cls); + this.k = lVar.b(cls, c); + } else { + c = xVar.o(xVar._config._base._typeFactory.b(null, cls, b.g.a.c.h0.n.l), null); + l b2 = lVar.b(cls, c); + if (lVar != b2) { + this.k = b2; + } + } + } + c.f(obj, dVar, xVar); + } + + public Object readResolve() { + this.k = l.b.f692b; + return this; + } + } + + /* compiled from: StdKeySerializers */ + public static class c extends q0 { + public final f _values; + + public c(Class cls, f fVar) { + super(cls, false); + this._values = fVar; + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + if (xVar.D(w.WRITE_ENUMS_USING_TO_STRING)) { + dVar.y(obj.toString()); + return; + } + Enum r2 = (Enum) obj; + if (xVar.D(w.WRITE_ENUM_KEYS_USING_INDEX)) { + dVar.y(String.valueOf(r2.ordinal())); + } else { + dVar.x(this._values.c(r2)); + } + } + } + + /* compiled from: StdKeySerializers */ + public static class d extends q0 { + public d() { + super(String.class, false); + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + dVar.y((String) obj); + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/p.java b/app/src/main/java/b/g/a/c/g0/u/p.java new file mode 100644 index 0000000000..74a88bbaf3 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/p.java @@ -0,0 +1,74 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.i; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.net.InetAddress; +/* compiled from: InetAddressSerializer */ +public class p extends p0 implements i { + public final boolean _asNumeric; + + public p() { + super(InetAddress.class); + this._asNumeric = false; + } + + public p(boolean z2) { + super(InetAddress.class); + this._asNumeric = z2; + } + + /* JADX WARNING: Removed duplicated region for block: B:10:0x001d */ + /* JADX WARNING: Removed duplicated region for block: B:12:0x0023 A[RETURN] */ + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + boolean z2; + i.d l = l(xVar, dVar, this._handledType); + if (l != null) { + i.c e = l.e(); + if (e.f() || e == i.c.ARRAY) { + z2 = true; + return z2 == this._asNumeric ? new p(z2) : this; + } + } + z2 = false; + if (z2 == this._asNumeric) { + } + } + + @Override // b.g.a.c.n + public /* bridge */ /* synthetic */ void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + p((InetAddress) obj, dVar); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + InetAddress inetAddress = (InetAddress) obj; + b d = gVar.d(inetAddress, h.VALUE_STRING); + d.f661b = InetAddress.class; + b e = gVar.e(dVar, d); + p(inetAddress, dVar); + gVar.f(dVar, e); + } + + public void p(InetAddress inetAddress, b.g.a.b.d dVar) throws IOException { + String str; + if (this._asNumeric) { + str = inetAddress.getHostAddress(); + } else { + str = inetAddress.toString().trim(); + int indexOf = str.indexOf(47); + if (indexOf >= 0) { + str = indexOf == 0 ? str.substring(1) : str.substring(0, indexOf); + } + } + dVar.j0(str); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/p0.java b/app/src/main/java/b/g/a/c/g0/u/p0.java new file mode 100644 index 0000000000..412dd6b754 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/p0.java @@ -0,0 +1,25 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import java.io.IOException; +/* compiled from: StdScalarSerializer */ +public abstract class p0 extends q0 { + public p0(Class cls) { + super(cls); + } + + public p0(Class cls, boolean z2) { + super(cls); + } + + @Override // b.g.a.c.n + public void g(T t, d dVar, x xVar, g gVar) throws IOException { + b e = gVar.e(dVar, gVar.d(t, h.VALUE_STRING)); + f(t, dVar, xVar); + gVar.f(dVar, e); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/q.java b/app/src/main/java/b/g/a/c/g0/u/q.java new file mode 100644 index 0000000000..ea60e71500 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/q.java @@ -0,0 +1,58 @@ +package b.g.a.c.g0.u; + +import b.d.b.a.a; +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import java.io.IOException; +import java.net.Inet6Address; +import java.net.InetAddress; +import java.net.InetSocketAddress; +/* compiled from: InetSocketAddressSerializer */ +public class q extends p0 { + public q() { + super(InetSocketAddress.class); + } + + @Override // b.g.a.c.n + public /* bridge */ /* synthetic */ void f(Object obj, d dVar, x xVar) throws IOException { + p((InetSocketAddress) obj, dVar); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + InetSocketAddress inetSocketAddress = (InetSocketAddress) obj; + b d = gVar.d(inetSocketAddress, h.VALUE_STRING); + d.f661b = InetSocketAddress.class; + b e = gVar.e(dVar, d); + p(inetSocketAddress, dVar); + gVar.f(dVar, e); + } + + public void p(InetSocketAddress inetSocketAddress, d dVar) throws IOException { + String str; + InetAddress address = inetSocketAddress.getAddress(); + String hostName = address == null ? inetSocketAddress.getHostName() : address.toString().trim(); + int indexOf = hostName.indexOf(47); + if (indexOf >= 0) { + if (indexOf == 0) { + if (address instanceof Inet6Address) { + StringBuilder R = a.R("["); + R.append(hostName.substring(1)); + R.append("]"); + str = R.toString(); + } else { + str = hostName.substring(1); + } + hostName = str; + } else { + hostName = hostName.substring(0, indexOf); + } + } + StringBuilder V = a.V(hostName, ":"); + V.append(inetSocketAddress.getPort()); + dVar.j0(V.toString()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/q0.java b/app/src/main/java/b/g/a/c/g0/u/q0.java new file mode 100644 index 0000000000..0d89b3f6ba --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/q0.java @@ -0,0 +1,139 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.c.b; +import b.g.a.c.c0.i; +import b.g.a.c.d; +import b.g.a.c.g0.m; +import b.g.a.c.i0.e; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.z.i; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.io.Serializable; +import java.lang.reflect.InvocationTargetException; +import java.util.HashMap; +import java.util.IdentityHashMap; +import java.util.Map; +import java.util.Objects; +/* compiled from: StdSerializer */ +public abstract class q0 extends n implements Serializable { + public static final Object j = new Object(); + private static final long serialVersionUID = 1; + public final Class _handledType; + + public q0(q0 q0Var) { + this._handledType = (Class) q0Var._handledType; + } + + public q0(j jVar) { + this._handledType = (Class) jVar._class; + } + + public q0(Class cls) { + this._handledType = cls; + } + + /* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: java.lang.Class */ + /* JADX WARN: Multi-variable type inference failed */ + public q0(Class cls, boolean z2) { + this._handledType = cls; + } + + public static final boolean j(Object obj, Object obj2) { + return (obj == null || obj2 == null) ? false : true; + } + + @Override // b.g.a.c.n + public Class c() { + return this._handledType; + } + + public n k(x xVar, d dVar, n nVar) throws JsonMappingException { + n nVar2; + i member; + Object G; + Object obj = j; + Map map = (Map) xVar.w(obj); + if (map == null) { + map = new IdentityHashMap(); + i.a aVar = (i.a) xVar.l; + Map map2 = aVar.l; + if (map2 == null) { + HashMap hashMap = new HashMap(); + hashMap.put(obj, map == null ? i.a.k : map); + aVar = new i.a(aVar._shared, hashMap); + } else { + map2.put(obj, map); + } + xVar.l = aVar; + } else if (map.get(dVar) != null) { + return nVar; + } + map.put(dVar, Boolean.TRUE); + try { + b v = xVar.v(); + if (!j(v, dVar) || (member = dVar.getMember()) == null || (G = v.G(member)) == null) { + nVar2 = nVar; + } else { + e c = xVar.c(dVar.getMember(), G); + j a = c.a(xVar.d()); + nVar2 = new j0(c, a, (nVar != null || a.y()) ? nVar : xVar.s(a)); + } + if (nVar2 != null) { + return xVar.z(nVar2, dVar); + } + map.remove(dVar); + return nVar; + } finally { + map.remove(dVar); + } + } + + public i.d l(x xVar, d dVar, Class cls) { + return dVar != null ? dVar.a(xVar._config, cls) : xVar._config.i(cls); + } + + public m m(x xVar, Object obj, Object obj2) throws JsonMappingException { + Objects.requireNonNull(xVar._config); + Class cls = this._handledType; + xVar.g(cls, "Cannot resolve PropertyFilter with id '" + obj + "'; no FilterProvider configured"); + throw null; + } + + public void n(x xVar, Throwable th, Object obj, int i) throws IOException { + while ((th instanceof InvocationTargetException) && th.getCause() != null) { + th = th.getCause(); + } + b.g.a.c.i0.d.w(th); + boolean z2 = xVar == null || xVar.D(w.WRAP_EXCEPTIONS); + if (th instanceof IOException) { + if (!z2 || !(th instanceof JsonMappingException)) { + throw ((IOException) th); + } + } else if (!z2) { + b.g.a.c.i0.d.x(th); + } + throw JsonMappingException.f(th, new JsonMappingException.a(obj, i)); + } + + public void o(x xVar, Throwable th, Object obj, String str) throws IOException { + while ((th instanceof InvocationTargetException) && th.getCause() != null) { + th = th.getCause(); + } + b.g.a.c.i0.d.w(th); + boolean z2 = xVar == null || xVar.D(w.WRAP_EXCEPTIONS); + if (th instanceof IOException) { + if (!z2 || !(th instanceof JsonMappingException)) { + throw ((IOException) th); + } + } else if (!z2) { + b.g.a.c.i0.d.x(th); + } + int i = JsonMappingException.j; + throw JsonMappingException.f(th, new JsonMappingException.a(obj, str)); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/r.java b/app/src/main/java/b/g/a/c/g0/u/r.java new file mode 100644 index 0000000000..ac9f189296 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/r.java @@ -0,0 +1,100 @@ +package b.g.a.c.g0.u; + +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.h; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.util.Iterator; +/* compiled from: IterableSerializer */ +@a +public class r extends b> { + public r(r rVar, d dVar, g gVar, n nVar, Boolean bool) { + super(rVar, dVar, gVar, nVar, bool); + } + + public r(j jVar, boolean z2, g gVar) { + super(Iterable.class, jVar, z2, gVar, (n) null); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return !((Iterable) obj).iterator().hasNext(); + } + + @Override // b.g.a.c.g0.u.b, b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Iterable iterable = (Iterable) obj; + if (((this._unwrapSingle != null || !xVar.D(w.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)) && this._unwrapSingle != Boolean.TRUE) || !q(iterable)) { + dVar.X(iterable); + s(iterable, dVar, xVar); + dVar.t(); + return; + } + s(iterable, dVar, xVar); + } + + @Override // b.g.a.c.g0.h + public h p(g gVar) { + return new r(this, this._property, gVar, this._elementSerializer, this._unwrapSingle); + } + + /* Return type fixed from 'b.g.a.c.g0.u.b' to match base method */ + @Override // b.g.a.c.g0.u.b + public b> t(d dVar, g gVar, n nVar, Boolean bool) { + return new r(this, dVar, gVar, nVar, bool); + } + + /* renamed from: u */ + public boolean q(Iterable iterable) { + if (iterable == null) { + return false; + } + Iterator it = iterable.iterator(); + if (!it.hasNext()) { + return false; + } + it.next(); + return !it.hasNext(); + } + + /* renamed from: v */ + public void s(Iterable iterable, b.g.a.b.d dVar, x xVar) throws IOException { + n nVar; + Iterator it = iterable.iterator(); + if (it.hasNext()) { + g gVar = this._valueTypeSerializer; + Class cls = null; + n nVar2 = null; + do { + Object next = it.next(); + if (next == null) { + xVar.l(dVar); + } else { + n nVar3 = this._elementSerializer; + if (nVar3 == null) { + Class cls2 = next.getClass(); + if (cls2 != cls) { + nVar2 = xVar.u(cls2, this._property); + cls = cls2; + } + nVar = nVar2; + } else { + nVar = nVar2; + nVar2 = nVar3; + } + if (gVar == null) { + nVar2.f(next, dVar, xVar); + } else { + nVar2.g(next, dVar, xVar, gVar); + } + nVar2 = nVar; + } + } while (it.hasNext()); + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/r0.java b/app/src/main/java/b/g/a/c/g0/u/r0.java new file mode 100644 index 0000000000..e28d81ab4a --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/r0.java @@ -0,0 +1,31 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: StringSerializer */ +@a +public final class r0 extends p0 { + private static final long serialVersionUID = 1; + + public r0() { + super(String.class, false); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return ((String) obj).isEmpty(); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.j0((String) obj); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public final void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + dVar.j0((String) obj); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/s.java b/app/src/main/java/b/g/a/c/g0/u/s.java new file mode 100644 index 0000000000..c0a9d07460 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/s.java @@ -0,0 +1,210 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.c0; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.i; +import b.g.a.c.g0.t.l; +import b.g.a.c.j; +import b.g.a.c.n; +import b.g.a.c.p; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.RuntimeJsonMappingException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: JsonValueSerializer */ +@b.g.a.c.y.a +public class s extends q0 implements i { + public final b.g.a.c.c0.i _accessor; + public final boolean _forceTypeInformation; + public final d _property; + public final n _valueSerializer; + public final j _valueType; + public final g _valueTypeSerializer; + public transient l k; + + /* compiled from: JsonValueSerializer */ + public static class a extends g { + public final g a; + + /* renamed from: b reason: collision with root package name */ + public final Object f700b; + + public a(g gVar, Object obj) { + this.a = gVar; + this.f700b = obj; + } + + @Override // b.g.a.c.e0.g + public g a(d dVar) { + throw new UnsupportedOperationException(); + } + + @Override // b.g.a.c.e0.g + public String b() { + return this.a.b(); + } + + @Override // b.g.a.c.e0.g + public c0.a c() { + return this.a.c(); + } + + @Override // b.g.a.c.e0.g + public b e(b.g.a.b.d dVar, b bVar) throws IOException { + bVar.a = this.f700b; + return this.a.e(dVar, bVar); + } + + @Override // b.g.a.c.e0.g + public b f(b.g.a.b.d dVar, b bVar) throws IOException { + return this.a.f(dVar, bVar); + } + } + + public s(b.g.a.c.c0.i iVar, g gVar, n nVar) { + super(iVar.e()); + this._accessor = iVar; + this._valueType = iVar.e(); + this._valueTypeSerializer = gVar; + this._valueSerializer = nVar; + this._property = null; + this._forceTypeInformation = true; + this.k = l.b.f692b; + } + + /* JADX WARNING: Illegal instructions before constructor call */ + public s(s sVar, d dVar, g gVar, n nVar, boolean z2) { + super(r0 == null ? Object.class : r0); + Class cls = sVar._handledType; + this._accessor = sVar._accessor; + this._valueType = sVar._valueType; + this._valueTypeSerializer = gVar; + this._valueSerializer = nVar; + this._property = dVar; + this._forceTypeInformation = z2; + this.k = l.b.f692b; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + g gVar = this._valueTypeSerializer; + if (gVar != null) { + gVar = gVar.a(dVar); + } + n nVar = this._valueSerializer; + if (nVar != null) { + return q(dVar, gVar, xVar.y(nVar, dVar), this._forceTypeInformation); + } + if (!xVar.C(p.USE_STATIC_TYPING) && !this._valueType.x()) { + return dVar != this._property ? q(dVar, gVar, nVar, this._forceTypeInformation) : this; + } + n q = xVar.q(this._valueType, dVar); + Class cls = this._valueType._class; + boolean z2 = false; + if (!cls.isPrimitive() ? cls == String.class || cls == Integer.class || cls == Boolean.class || cls == Double.class : cls == Integer.TYPE || cls == Boolean.TYPE || cls == Double.TYPE) { + z2 = b.g.a.c.i0.d.s(q); + } + return q(dVar, gVar, q, z2); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + Object j = this._accessor.j(obj); + if (j == null) { + return true; + } + n nVar = this._valueSerializer; + if (nVar == null) { + try { + nVar = p(xVar, j.getClass()); + } catch (JsonMappingException e) { + throw new RuntimeJsonMappingException(e); + } + } + return nVar.d(xVar, j); + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + try { + Object j = this._accessor.j(obj); + if (j == null) { + xVar.l(dVar); + return; + } + n nVar = this._valueSerializer; + if (nVar == null) { + nVar = p(xVar, j.getClass()); + } + g gVar = this._valueTypeSerializer; + if (gVar != null) { + nVar.g(j, dVar, xVar, gVar); + } else { + nVar.f(j, dVar, xVar); + } + } catch (Exception e) { + o(xVar, e, obj, this._accessor.c() + "()"); + throw null; + } + } + + @Override // b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, g gVar) throws IOException { + try { + Object j = this._accessor.j(obj); + if (j == null) { + xVar.l(dVar); + return; + } + n nVar = this._valueSerializer; + if (nVar == null) { + nVar = p(xVar, j.getClass()); + } else if (this._forceTypeInformation) { + b e = gVar.e(dVar, gVar.d(obj, h.VALUE_STRING)); + nVar.f(j, dVar, xVar); + gVar.f(dVar, e); + return; + } + nVar.g(j, dVar, xVar, new a(gVar, obj)); + } catch (Exception e2) { + o(xVar, e2, obj, this._accessor.c() + "()"); + throw null; + } + } + + public n p(x xVar, Class cls) throws JsonMappingException { + n c = this.k.c(cls); + if (c != null) { + return c; + } + if (this._valueType.r()) { + j k = xVar.k(this._valueType, cls); + n q = xVar.q(k, this._property); + l lVar = this.k; + Objects.requireNonNull(lVar); + this.k = lVar.b(k._class, q); + return q; + } + n r = xVar.r(cls, this._property); + this.k = this.k.b(cls, r); + return r; + } + + public s q(d dVar, g gVar, n nVar, boolean z2) { + return (this._property == dVar && this._valueTypeSerializer == gVar && this._valueSerializer == nVar && z2 == this._forceTypeInformation) ? this : new s(this, dVar, gVar, nVar, z2); + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("(@JsonValue serializer for method "); + R.append(this._accessor.g()); + R.append("#"); + R.append(this._accessor.c()); + R.append(")"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/s0.java b/app/src/main/java/b/g/a/c/g0/u/s0.java new file mode 100644 index 0000000000..380b98a005 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/s0.java @@ -0,0 +1,30 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import java.io.IOException; +import java.util.TimeZone; +/* compiled from: TimeZoneSerializer */ +public class s0 extends p0 { + public s0() { + super(TimeZone.class); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.j0(((TimeZone) obj).getID()); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + TimeZone timeZone = (TimeZone) obj; + b d = gVar.d(timeZone, h.VALUE_STRING); + d.f661b = TimeZone.class; + b e = gVar.e(dVar, d); + dVar.j0(timeZone.getID()); + gVar.f(dVar, e); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/t.java b/app/src/main/java/b/g/a/c/g0/u/t.java new file mode 100644 index 0000000000..b98f53d82f --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/t.java @@ -0,0 +1,580 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.a.p; +import b.g.a.c.b; +import b.g.a.c.d; +import b.g.a.c.g0.h; +import b.g.a.c.g0.i; +import b.g.a.c.g0.t.l; +import b.g.a.c.h0.n; +import b.g.a.c.i0.g; +import b.g.a.c.j; +import b.g.a.c.v; +import b.g.a.c.w; +import b.g.a.c.x; +import b.g.a.c.y.a; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Objects; +import java.util.Properties; +import java.util.Set; +import java.util.SortedMap; +import java.util.TreeMap; +/* compiled from: MapSerializer */ +@a +public class t extends h> implements i { + public static final j k = n.k(); + public static final Object l = p.a.NON_EMPTY; + private static final long serialVersionUID = 1; + public l _dynamicValueSerializers; + public final Object _filterId; + public final Set _ignoredEntries; + public final Set _includedEntries; + public final g _inclusionChecker; + public b.g.a.c.n _keySerializer; + public final j _keyType; + public final d _property; + public final boolean _sortKeys; + public final boolean _suppressNulls; + public final Object _suppressableValue; + public b.g.a.c.n _valueSerializer; + public final j _valueType; + public final boolean _valueTypeIsStatic; + public final b.g.a.c.e0.g _valueTypeSerializer; + + public t(t tVar, d dVar, b.g.a.c.n nVar, b.g.a.c.n nVar2, Set set, Set set2) { + super(Map.class, false); + g gVar = null; + set = (set == null || set.isEmpty()) ? null : set; + this._ignoredEntries = set; + this._includedEntries = set2; + this._keyType = tVar._keyType; + this._valueType = tVar._valueType; + this._valueTypeIsStatic = tVar._valueTypeIsStatic; + this._valueTypeSerializer = tVar._valueTypeSerializer; + this._keySerializer = nVar; + this._valueSerializer = nVar2; + this._dynamicValueSerializers = l.b.f692b; + this._property = dVar; + this._filterId = tVar._filterId; + this._sortKeys = tVar._sortKeys; + this._suppressableValue = tVar._suppressableValue; + this._suppressNulls = tVar._suppressNulls; + if (set2 != null || (set != null && !set.isEmpty())) { + gVar = new g(set, set2); + } + this._inclusionChecker = gVar; + } + + public t(t tVar, b.g.a.c.e0.g gVar, Object obj, boolean z2) { + super(Map.class, false); + this._ignoredEntries = tVar._ignoredEntries; + this._includedEntries = tVar._includedEntries; + this._keyType = tVar._keyType; + this._valueType = tVar._valueType; + this._valueTypeIsStatic = tVar._valueTypeIsStatic; + this._valueTypeSerializer = gVar; + this._keySerializer = tVar._keySerializer; + this._valueSerializer = tVar._valueSerializer; + this._dynamicValueSerializers = tVar._dynamicValueSerializers; + this._property = tVar._property; + this._filterId = tVar._filterId; + this._sortKeys = tVar._sortKeys; + this._suppressableValue = obj; + this._suppressNulls = z2; + this._inclusionChecker = tVar._inclusionChecker; + } + + public t(t tVar, Object obj, boolean z2) { + super(Map.class, false); + this._ignoredEntries = tVar._ignoredEntries; + this._includedEntries = tVar._includedEntries; + this._keyType = tVar._keyType; + this._valueType = tVar._valueType; + this._valueTypeIsStatic = tVar._valueTypeIsStatic; + this._valueTypeSerializer = tVar._valueTypeSerializer; + this._keySerializer = tVar._keySerializer; + this._valueSerializer = tVar._valueSerializer; + this._dynamicValueSerializers = l.b.f692b; + this._property = tVar._property; + this._filterId = obj; + this._sortKeys = z2; + this._suppressableValue = tVar._suppressableValue; + this._suppressNulls = tVar._suppressNulls; + this._inclusionChecker = tVar._inclusionChecker; + } + + public t(Set set, Set set2, j jVar, j jVar2, boolean z2, b.g.a.c.e0.g gVar, b.g.a.c.n nVar, b.g.a.c.n nVar2) { + super(Map.class, false); + g gVar2 = null; + set = (set == null || set.isEmpty()) ? null : set; + this._ignoredEntries = set; + this._includedEntries = set2; + this._keyType = jVar; + this._valueType = jVar2; + this._valueTypeIsStatic = z2; + this._valueTypeSerializer = gVar; + this._keySerializer = nVar; + this._valueSerializer = nVar2; + this._dynamicValueSerializers = l.b.f692b; + this._property = null; + this._filterId = null; + this._sortKeys = false; + this._suppressableValue = null; + this._suppressNulls = false; + if (set2 != null || (set != null && !set.isEmpty())) { + gVar2 = new g(set, set2); + } + this._inclusionChecker = gVar2; + } + + public static t s(Set set, Set set2, j jVar, boolean z2, b.g.a.c.e0.g gVar, b.g.a.c.n nVar, b.g.a.c.n nVar2, Object obj) { + j jVar2; + j jVar3; + boolean z3; + boolean z4 = true; + if (jVar == null) { + jVar3 = k; + jVar2 = jVar3; + } else { + j o = jVar.o(); + jVar2 = jVar._class == Properties.class ? n.k() : jVar.k(); + jVar3 = o; + } + if (!z2) { + if (jVar2 == null || !jVar2.x()) { + z4 = false; + } + z3 = z4; + } else { + z3 = jVar2._class == Object.class ? false : z2; + } + t tVar = new t(set, set2, jVar3, jVar2, z3, gVar, nVar, nVar2); + if (obj == null || tVar._filterId == obj) { + return tVar; + } + b.g.a.c.i0.d.z(t.class, tVar, "withFilterId"); + return new t(tVar, obj, tVar._sortKeys); + } + + @Override // b.g.a.c.g0.i + public b.g.a.c.n a(x xVar, d dVar) throws JsonMappingException { + b.g.a.c.n nVar; + b.g.a.c.n nVar2; + Set set; + Set set2; + boolean z2; + p.a aVar; + boolean z3; + Object obj; + Object g; + Boolean b2; + b v = xVar.v(); + Object obj2 = null; + b.g.a.c.c0.i member = dVar == null ? null : dVar.getMember(); + if (q0.j(member, v)) { + Object l2 = v.l(member); + nVar2 = l2 != null ? xVar.H(member, l2) : null; + Object c = v.c(member); + nVar = c != null ? xVar.H(member, c) : null; + } else { + nVar2 = null; + nVar = null; + } + if (nVar == null) { + nVar = this._valueSerializer; + } + b.g.a.c.n k2 = k(xVar, dVar, nVar); + if (k2 == null && this._valueTypeIsStatic && !this._valueType.y()) { + k2 = xVar.m(this._valueType, dVar); + } + if (nVar2 == null) { + nVar2 = this._keySerializer; + } + b.g.a.c.n o = nVar2 == null ? xVar.o(this._keyType, dVar) : xVar.z(nVar2, dVar); + Set set3 = this._ignoredEntries; + Set set4 = this._includedEntries; + if (q0.j(member, v)) { + v vVar = xVar._config; + Set d = v.x(vVar, member).d(); + if (d != null && !d.isEmpty()) { + set3 = set3 == null ? new HashSet<>() : new HashSet(set3); + for (String str : d) { + set3.add(str); + } + } + Set set5 = v.A(vVar, member)._included; + if (set5 != null) { + set4 = set4 == null ? new HashSet<>() : new HashSet(set4); + for (String str2 : set5) { + set4.add(str2); + } + } + z2 = Boolean.TRUE.equals(v.J(member)); + set2 = set3; + set = set4; + } else { + set2 = set3; + set = set4; + z2 = false; + } + i.d l3 = l(xVar, dVar, Map.class); + if (!(l3 == null || (b2 = l3.b(i.a.WRITE_SORTED_MAP_ENTRIES)) == null)) { + z2 = b2.booleanValue(); + } + b.g.a.c.i0.d.z(t.class, this, "withResolved"); + t tVar = new t(this, dVar, o, k2, set2, set); + t tVar2 = z2 != tVar._sortKeys ? new t(tVar, this._filterId, z2) : tVar; + if (!(member == null || (g = v.g(member)) == null || tVar2._filterId == g)) { + b.g.a.c.i0.d.z(t.class, tVar2, "withFilterId"); + tVar2 = new t(tVar2, g, tVar2._sortKeys); + } + p.b b3 = dVar != null ? dVar.b(xVar._config, Map.class) : xVar._config.j(Map.class); + if (b3 == null || (aVar = b3._contentInclusion) == p.a.USE_DEFAULTS) { + return tVar2; + } + int ordinal = aVar.ordinal(); + if (ordinal != 1) { + if (ordinal != 2) { + if (ordinal == 3) { + obj = l; + } else if (ordinal != 4) { + if (ordinal != 5) { + z3 = false; + } else { + obj2 = xVar.A(null, b3._contentFilter); + if (obj2 != null) { + z3 = xVar.B(obj2); + } + } + return tVar2.v(obj2, z3); + } else { + obj = b.c.a.a0.d.s0(this._valueType); + if (obj != null && obj.getClass().isArray()) { + obj = b.c.a.a0.d.p0(obj); + } + } + } else if (this._valueType.b()) { + obj = l; + } + obj2 = obj; + } + z3 = true; + return tVar2.v(obj2, z3); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + Map map = (Map) obj; + if (!map.isEmpty()) { + Object obj2 = this._suppressableValue; + if (obj2 == null && !this._suppressNulls) { + return false; + } + b.g.a.c.n nVar = this._valueSerializer; + boolean z2 = l == obj2; + if (nVar != null) { + for (Object obj3 : map.values()) { + if (obj3 == null) { + if (!this._suppressNulls) { + return false; + } + } else if (z2) { + if (!nVar.d(xVar, obj3)) { + return false; + } + } else if (obj2 == null || !obj2.equals(map)) { + return false; + } + } + } else { + for (Object obj4 : map.values()) { + if (obj4 != null) { + try { + b.g.a.c.n r = r(xVar, obj4); + if (z2) { + if (!r.d(xVar, obj4)) { + return false; + } + } else if (obj2 == null || !obj2.equals(map)) { + return false; + } + } catch (JsonMappingException unused) { + return false; + } + } else if (!this._suppressNulls) { + return false; + } + } + } + } + return true; + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + Map map = (Map) obj; + dVar.d0(map); + u(map, dVar, xVar); + dVar.u(); + } + + @Override // b.g.a.c.n + public void g(Object obj, b.g.a.b.d dVar, x xVar, b.g.a.c.e0.g gVar) throws IOException { + Map map = (Map) obj; + dVar.e(map); + b.g.a.b.s.b e = gVar.e(dVar, gVar.d(map, b.g.a.b.h.START_OBJECT)); + u(map, dVar, xVar); + gVar.f(dVar, e); + } + + @Override // b.g.a.c.g0.h + public h p(b.g.a.c.e0.g gVar) { + if (this._valueTypeSerializer == gVar) { + return this; + } + b.g.a.c.i0.d.z(t.class, this, "_withValueTypeSerializer"); + return new t(this, gVar, this._suppressableValue, this._suppressNulls); + } + + public final b.g.a.c.n r(x xVar, Object obj) throws JsonMappingException { + Class cls = obj.getClass(); + b.g.a.c.n c = this._dynamicValueSerializers.c(cls); + if (c != null) { + return c; + } + if (this._valueType.r()) { + l lVar = this._dynamicValueSerializers; + l.d a = lVar.a(xVar.k(this._valueType, cls), xVar, this._property); + l lVar2 = a.f694b; + if (lVar != lVar2) { + this._dynamicValueSerializers = lVar2; + } + return a.a; + } + l lVar3 = this._dynamicValueSerializers; + d dVar = this._property; + Objects.requireNonNull(lVar3); + b.g.a.c.n n = xVar.n(cls, dVar); + l b2 = lVar3.b(cls, n); + if (lVar3 != b2) { + this._dynamicValueSerializers = b2; + } + return n; + } + + public void t(Map map, b.g.a.b.d dVar, x xVar, Object obj) throws IOException { + b.g.a.c.n nVar; + b.g.a.c.n nVar2; + boolean z2 = l == obj; + for (Map.Entry entry : map.entrySet()) { + Object key = entry.getKey(); + if (key == null) { + nVar = xVar._nullKeySerializer; + } else { + g gVar = this._inclusionChecker; + if (gVar == null || !gVar.a(key)) { + nVar = this._keySerializer; + } + } + Object value = entry.getValue(); + if (value != null) { + nVar2 = this._valueSerializer; + if (nVar2 == null) { + nVar2 = r(xVar, value); + } + if (z2) { + if (nVar2.d(xVar, value)) { + } + } else if (obj != null && obj.equals(value)) { + } + } else if (!this._suppressNulls) { + nVar2 = xVar._nullValueSerializer; + } + nVar.f(key, dVar, xVar); + try { + nVar2.g(value, dVar, xVar, this._valueTypeSerializer); + } catch (Exception e) { + o(xVar, e, map, String.valueOf(key)); + throw null; + } + } + } + + public void u(Map map, b.g.a.b.d dVar, x xVar) throws IOException { + b.g.a.c.n nVar; + b.g.a.c.n nVar2; + Exception e; + Object obj; + TreeMap treeMap; + b.g.a.c.n nVar3; + if (!map.isEmpty()) { + boolean z2 = true; + if ((this._sortKeys || xVar.D(w.ORDER_MAP_ENTRIES_BY_KEYS)) && !(map instanceof SortedMap)) { + if ((map instanceof HashMap) && map.containsKey(null)) { + treeMap = new TreeMap(); + for (Map.Entry entry : map.entrySet()) { + Object key = entry.getKey(); + if (key == null) { + Object value = entry.getValue(); + b.g.a.c.n nVar4 = xVar._nullKeySerializer; + if (value != null) { + nVar3 = this._valueSerializer; + if (nVar3 == null) { + nVar3 = r(xVar, value); + } + Object obj2 = this._suppressableValue; + if (obj2 == l) { + if (nVar3.d(xVar, value)) { + } + } else if (obj2 != null && obj2.equals(value)) { + } + } else if (!this._suppressNulls) { + nVar3 = xVar._nullValueSerializer; + } + try { + nVar4.f(null, dVar, xVar); + nVar3.f(value, dVar, xVar); + } catch (Exception e2) { + o(xVar, e2, value, ""); + throw null; + } + } else { + treeMap.put(key, entry.getValue()); + } + } + } else { + treeMap = new TreeMap(map); + } + map = treeMap; + } + Object obj3 = this._filterId; + if (obj3 == null) { + Object obj4 = this._suppressableValue; + if (obj4 == null && !this._suppressNulls) { + b.g.a.c.n nVar5 = this._valueSerializer; + if (nVar5 != null) { + b.g.a.c.n nVar6 = this._keySerializer; + b.g.a.c.e0.g gVar = this._valueTypeSerializer; + for (Map.Entry entry2 : map.entrySet()) { + Object key2 = entry2.getKey(); + g gVar2 = this._inclusionChecker; + if (gVar2 == null || !gVar2.a(key2)) { + if (key2 == null) { + xVar._nullKeySerializer.f(null, dVar, xVar); + } else { + nVar6.f(key2, dVar, xVar); + } + Object value2 = entry2.getValue(); + if (value2 == null) { + xVar.l(dVar); + } else if (gVar == null) { + try { + nVar5.f(value2, dVar, xVar); + } catch (Exception e3) { + o(xVar, e3, map, String.valueOf(key2)); + throw null; + } + } else { + nVar5.g(value2, dVar, xVar, gVar); + } + } + } + } else if (this._valueTypeSerializer != null) { + t(map, dVar, xVar, null); + } else { + b.g.a.c.n nVar7 = this._keySerializer; + try { + obj = null; + for (Map.Entry entry3 : map.entrySet()) { + try { + Object value3 = entry3.getValue(); + obj = entry3.getKey(); + if (obj == null) { + xVar._nullKeySerializer.f(null, dVar, xVar); + } else { + g gVar3 = this._inclusionChecker; + if (gVar3 == null || !gVar3.a(obj)) { + nVar7.f(obj, dVar, xVar); + } + } + if (value3 == null) { + xVar.l(dVar); + } else { + b.g.a.c.n nVar8 = this._valueSerializer; + if (nVar8 == null) { + nVar8 = r(xVar, value3); + } + nVar8.f(value3, dVar, xVar); + } + } catch (Exception e4) { + e = e4; + o(xVar, e, map, String.valueOf(obj)); + throw null; + } + } + } catch (Exception e5) { + e = e5; + obj = null; + o(xVar, e, map, String.valueOf(obj)); + throw null; + } + } + } else if (this._valueTypeSerializer != null) { + t(map, dVar, xVar, obj4); + } else { + if (l != obj4) { + z2 = false; + } + for (Map.Entry entry4 : map.entrySet()) { + Object key3 = entry4.getKey(); + if (key3 == null) { + nVar = xVar._nullKeySerializer; + } else { + g gVar4 = this._inclusionChecker; + if (gVar4 == null || !gVar4.a(key3)) { + nVar = this._keySerializer; + } + } + Object value4 = entry4.getValue(); + if (value4 != null) { + nVar2 = this._valueSerializer; + if (nVar2 == null) { + nVar2 = r(xVar, value4); + } + if (z2) { + if (nVar2.d(xVar, value4)) { + } + } else if (obj4 != null && obj4.equals(value4)) { + } + } else if (!this._suppressNulls) { + nVar2 = xVar._nullValueSerializer; + } + try { + nVar.f(key3, dVar, xVar); + nVar2.f(value4, dVar, xVar); + } catch (Exception e6) { + o(xVar, e6, map, String.valueOf(key3)); + throw null; + } + } + } + } else { + m(xVar, obj3, map); + throw null; + } + } + } + + public t v(Object obj, boolean z2) { + if (obj == this._suppressableValue && z2 == this._suppressNulls) { + return this; + } + b.g.a.c.i0.d.z(t.class, this, "withContentInclusion"); + return new t(this, this._valueTypeSerializer, obj, z2); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/t0.java b/app/src/main/java/b/g/a/c/g0/u/t0.java new file mode 100644 index 0000000000..ee5b937608 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/t0.java @@ -0,0 +1,21 @@ +package b.g.a.c.g0.u; + +import b.g.a.c.y.a; +/* compiled from: ToStringSerializer */ +@a +public class t0 extends u0 { + public static final t0 k = new t0(); + + public t0() { + super(Object.class); + } + + public t0(Class cls) { + super(cls); + } + + @Override // b.g.a.c.g0.u.u0 + public final String p(Object obj) { + return obj.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/u.java b/app/src/main/java/b/g/a/c/g0/u/u.java new file mode 100644 index 0000000000..c49201a189 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/u.java @@ -0,0 +1,26 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: NullSerializer */ +@a +public class u extends q0 { + public static final u k = new u(); + + public u() { + super(Object.class); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.A(); + } + + @Override // b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + dVar.A(); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/u0.java b/app/src/main/java/b/g/a/c/g0/u/u0.java new file mode 100644 index 0000000000..97ae976d85 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/u0.java @@ -0,0 +1,33 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.x; +import java.io.IOException; +/* compiled from: ToStringSerializerBase */ +public abstract class u0 extends q0 { + public u0(Class cls) { + super(cls, false); + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + return p(obj).isEmpty(); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.j0(p(obj)); + } + + @Override // b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + b e = gVar.e(dVar, gVar.d(obj, h.VALUE_STRING)); + f(obj, dVar, xVar); + gVar.f(dVar, e); + } + + public abstract String p(Object obj); +} diff --git a/app/src/main/java/b/g/a/c/g0/u/v.java b/app/src/main/java/b/g/a/c/g0/u/v.java new file mode 100644 index 0000000000..871eb16a7b --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/v.java @@ -0,0 +1,87 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.b.d; +import b.g.a.c.g0.i; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.math.BigDecimal; +import java.math.BigInteger; +/* compiled from: NumberSerializer */ +@b.g.a.c.y.a +public class v extends p0 implements i { + public static final v k = new v(Number.class); + public final boolean _isInt; + + /* compiled from: NumberSerializer */ + public static final class a extends u0 { + public static final a k = new a(); + + public a() { + super(BigDecimal.class); + } + + @Override // b.g.a.c.g0.u.u0, b.g.a.c.n + public boolean d(x xVar, Object obj) { + return false; + } + + @Override // b.g.a.c.g0.u.u0, b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + String str; + if (dVar.d(d.a.WRITE_BIGDECIMAL_AS_PLAIN)) { + BigDecimal bigDecimal = (BigDecimal) obj; + int scale = bigDecimal.scale(); + if (scale >= -9999 && scale <= 9999) { + str = bigDecimal.toPlainString(); + } else { + xVar.G(String.format("Attempt to write plain `java.math.BigDecimal` (see JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN) with illegal scale (%d): needs to be between [-%d, %d]", Integer.valueOf(bigDecimal.scale()), 9999, 9999), new Object[0]); + throw null; + } + } else { + str = obj.toString(); + } + dVar.j0(str); + } + + @Override // b.g.a.c.g0.u.u0 + public String p(Object obj) { + throw new IllegalStateException(); + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public v(Class cls) { + super(cls, false); + boolean z2 = false; + this._isInt = cls == BigInteger.class ? true : z2; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, b.g.a.c.d dVar) throws JsonMappingException { + i.d l = l(xVar, dVar, this._handledType); + return (l == null || l.e().ordinal() != 8) ? this : this._handledType == BigDecimal.class ? a.k : t0.k; + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + Number number = (Number) obj; + if (number instanceof BigDecimal) { + dVar.L((BigDecimal) number); + } else if (number instanceof BigInteger) { + dVar.N((BigInteger) number); + } else if (number instanceof Long) { + dVar.I(number.longValue()); + } else if (number instanceof Double) { + dVar.C(number.doubleValue()); + } else if (number instanceof Float) { + dVar.D(number.floatValue()); + } else if ((number instanceof Integer) || (number instanceof Byte) || (number instanceof Short)) { + dVar.H(number.intValue()); + } else { + dVar.J(number.toString()); + } + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/v0.java b/app/src/main/java/b/g/a/c/g0/u/v0.java new file mode 100644 index 0000000000..5147826cd7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/v0.java @@ -0,0 +1,33 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.c.e0.g; +import b.g.a.c.i0.s; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +import java.util.Objects; +/* compiled from: TokenBufferSerializer */ +@a +public class v0 extends q0 { + public v0() { + super(s.class); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + Objects.requireNonNull((s) obj); + Objects.requireNonNull(null); + throw null; + } + + @Override // b.g.a.c.n + public void g(Object obj, d dVar, x xVar, g gVar) throws IOException { + s sVar = (s) obj; + gVar.e(dVar, gVar.d(sVar, h.VALUE_EMBEDDED_OBJECT)); + Objects.requireNonNull(sVar); + Objects.requireNonNull(null); + throw null; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/w.java b/app/src/main/java/b/g/a/c/g0/u/w.java new file mode 100644 index 0000000000..cf4647bf26 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/w.java @@ -0,0 +1,39 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.b.f; +import b.g.a.c.d; +import b.g.a.c.g0.i; +import b.g.a.c.g0.u.v; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.math.BigDecimal; +/* compiled from: NumberSerializers */ +public abstract class w extends p0 implements i { + public final boolean _isInt; + public final f.b _numberType; + public final String _schemaType; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public w(Class cls, f.b bVar, String str) { + super(cls, false); + boolean z2 = false; + this._numberType = bVar; + this._schemaType = str; + this._isInt = (bVar == f.b.INT || bVar == f.b.LONG || bVar == f.b.BIG_INTEGER) ? true : z2; + } + + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + i.d l = l(xVar, dVar, this._handledType); + if (l == null || l.e().ordinal() != 8) { + return this; + } + if (this._handledType != BigDecimal.class) { + return t0.k; + } + v vVar = v.k; + return v.a.k; + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/w0.java b/app/src/main/java/b/g/a/c/g0/u/w0.java new file mode 100644 index 0000000000..c55612d2b7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/w0.java @@ -0,0 +1,120 @@ +package b.g.a.c.g0.u; + +import b.g.a.a.i; +import b.g.a.c.d; +import b.g.a.c.g0.i; +import b.g.a.c.i0.s; +import b.g.a.c.n; +import b.g.a.c.x; +import com.fasterxml.jackson.databind.JsonMappingException; +import java.io.IOException; +import java.util.Objects; +import java.util.UUID; +/* compiled from: UUIDSerializer */ +public class w0 extends p0 implements i { + public static final char[] k = "0123456789abcdef".toCharArray(); + public final Boolean _asBinary; + + public w0() { + super(UUID.class); + this._asBinary = null; + } + + public w0(Boolean bool) { + super(UUID.class); + this._asBinary = bool; + } + + public static final void p(int i, byte[] bArr, int i2) { + bArr[i2] = (byte) (i >> 24); + int i3 = i2 + 1; + bArr[i3] = (byte) (i >> 16); + int i4 = i3 + 1; + bArr[i4] = (byte) (i >> 8); + bArr[i4 + 1] = (byte) i; + } + + public static void q(int i, char[] cArr, int i2) { + char[] cArr2 = k; + cArr[i2] = cArr2[(i >> 12) & 15]; + int i3 = i2 + 1; + cArr[i3] = cArr2[(i >> 8) & 15]; + int i4 = i3 + 1; + cArr[i4] = cArr2[(i >> 4) & 15]; + cArr[i4 + 1] = cArr2[i & 15]; + } + + /* JADX WARNING: Removed duplicated region for block: B:11:0x0023 */ + /* JADX WARNING: Removed duplicated region for block: B:13:0x0029 A[RETURN] */ + @Override // b.g.a.c.g0.i + public n a(x xVar, d dVar) throws JsonMappingException { + Boolean bool; + i.d l = l(xVar, dVar, this._handledType); + if (l != null) { + i.c e = l.e(); + if (e == i.c.BINARY) { + bool = Boolean.TRUE; + } else if (e == i.c.STRING) { + bool = Boolean.FALSE; + } + return Objects.equals(bool, this._asBinary) ? new w0(bool) : this; + } + bool = null; + if (Objects.equals(bool, this._asBinary)) { + } + } + + @Override // b.g.a.c.n + public boolean d(x xVar, Object obj) { + UUID uuid = (UUID) obj; + return uuid.getLeastSignificantBits() == 0 && uuid.getMostSignificantBits() == 0; + } + + @Override // b.g.a.c.n + public void f(Object obj, b.g.a.b.d dVar, x xVar) throws IOException { + boolean z2; + UUID uuid = (UUID) obj; + Boolean bool = this._asBinary; + if (bool != null) { + z2 = bool.booleanValue(); + } else { + if (!(dVar instanceof s)) { + Objects.requireNonNull(dVar); + if (dVar instanceof s) { + z2 = true; + } + } + z2 = false; + } + if (z2) { + byte[] bArr = new byte[16]; + long mostSignificantBits = uuid.getMostSignificantBits(); + long leastSignificantBits = uuid.getLeastSignificantBits(); + p((int) (mostSignificantBits >> 32), bArr, 0); + p((int) mostSignificantBits, bArr, 4); + p((int) (leastSignificantBits >> 32), bArr, 8); + p((int) leastSignificantBits, bArr, 12); + dVar.q(bArr); + return; + } + char[] cArr = new char[36]; + long mostSignificantBits2 = uuid.getMostSignificantBits(); + int i = (int) (mostSignificantBits2 >> 32); + q(i >> 16, cArr, 0); + q(i, cArr, 4); + cArr[8] = '-'; + int i2 = (int) mostSignificantBits2; + q(i2 >>> 16, cArr, 9); + cArr[13] = '-'; + q(i2, cArr, 14); + cArr[18] = '-'; + long leastSignificantBits2 = uuid.getLeastSignificantBits(); + q((int) (leastSignificantBits2 >>> 48), cArr, 19); + cArr[23] = '-'; + q((int) (leastSignificantBits2 >>> 32), cArr, 24); + int i3 = (int) leastSignificantBits2; + q(i3 >> 16, cArr, 28); + q(i3, cArr, 32); + dVar.m0(cArr, 0, 36); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/x.java b/app/src/main/java/b/g/a/c/g0/u/x.java new file mode 100644 index 0000000000..de97fa7c70 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/x.java @@ -0,0 +1,34 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.f; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: NumberSerializers */ +@a +public class x extends w { + public x(Class cls) { + super(cls, f.b.DOUBLE, "number"); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, b.g.a.c.x xVar) throws IOException { + dVar.C(((Double) obj).doubleValue()); + } + + @Override // b.g.a.c.g0.u.p0, b.g.a.c.n + public void g(Object obj, d dVar, b.g.a.c.x xVar, g gVar) throws IOException { + Double d = (Double) obj; + double doubleValue = d.doubleValue(); + if (Double.isNaN(doubleValue) || Double.isInfinite(doubleValue)) { + b e = gVar.e(dVar, gVar.d(obj, h.VALUE_NUMBER_FLOAT)); + dVar.C(d.doubleValue()); + gVar.f(dVar, e); + return; + } + dVar.C(d.doubleValue()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/y.java b/app/src/main/java/b/g/a/c/g0/u/y.java new file mode 100644 index 0000000000..ca465b1143 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/y.java @@ -0,0 +1,21 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.f; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: NumberSerializers */ +@a +public class y extends w { + public static final y k = new y(); + + public y() { + super(Float.class, f.b.FLOAT, "number"); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.D(((Float) obj).floatValue()); + } +} diff --git a/app/src/main/java/b/g/a/c/g0/u/z.java b/app/src/main/java/b/g/a/c/g0/u/z.java new file mode 100644 index 0000000000..28d076cfd5 --- /dev/null +++ b/app/src/main/java/b/g/a/c/g0/u/z.java @@ -0,0 +1,21 @@ +package b.g.a.c.g0.u; + +import b.g.a.b.d; +import b.g.a.b.f; +import b.g.a.c.x; +import b.g.a.c.y.a; +import java.io.IOException; +/* compiled from: NumberSerializers */ +@a +public class z extends w { + public static final z k = new z(); + + public z() { + super(Number.class, f.b.INT, "integer"); + } + + @Override // b.g.a.c.n + public void f(Object obj, d dVar, x xVar) throws IOException { + dVar.H(((Number) obj).intValue()); + } +} diff --git a/app/src/main/java/b/g/a/c/h.java b/app/src/main/java/b/g/a/c/h.java new file mode 100644 index 0000000000..a21aba80fa --- /dev/null +++ b/app/src/main/java/b/g/a/c/h.java @@ -0,0 +1,51 @@ +package b.g.a.c; + +import b.g.a.c.z.e; +/* compiled from: DeserializationFeature */ +public enum h implements e { + USE_BIG_DECIMAL_FOR_FLOATS(false), + USE_BIG_INTEGER_FOR_INTS(false), + USE_LONG_FOR_INTS(false), + USE_JAVA_ARRAY_FOR_JSON_ARRAY(false), + FAIL_ON_UNKNOWN_PROPERTIES(true), + FAIL_ON_NULL_FOR_PRIMITIVES(false), + FAIL_ON_NUMBERS_FOR_ENUMS(false), + FAIL_ON_INVALID_SUBTYPE(true), + FAIL_ON_READING_DUP_TREE_KEY(false), + FAIL_ON_IGNORED_PROPERTIES(false), + FAIL_ON_UNRESOLVED_OBJECT_IDS(true), + FAIL_ON_MISSING_CREATOR_PROPERTIES(false), + FAIL_ON_NULL_CREATOR_PROPERTIES(false), + FAIL_ON_MISSING_EXTERNAL_TYPE_ID_PROPERTY(true), + FAIL_ON_TRAILING_TOKENS(false), + WRAP_EXCEPTIONS(true), + ACCEPT_SINGLE_VALUE_AS_ARRAY(false), + UNWRAP_SINGLE_VALUE_ARRAYS(false), + UNWRAP_ROOT_VALUE(false), + ACCEPT_EMPTY_STRING_AS_NULL_OBJECT(false), + ACCEPT_EMPTY_ARRAY_AS_NULL_OBJECT(false), + ACCEPT_FLOAT_AS_INT(true), + READ_ENUMS_USING_TO_STRING(false), + READ_UNKNOWN_ENUM_VALUES_AS_NULL(false), + READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE(false), + READ_DATE_TIMESTAMPS_AS_NANOSECONDS(true), + ADJUST_DATES_TO_CONTEXT_TIME_ZONE(true), + EAGER_DESERIALIZER_FETCH(true); + + private final boolean _defaultState; + private final int _mask = (1 << ordinal()); + + public h(boolean z2) { + this._defaultState = z2; + } + + @Override // b.g.a.c.z.e + public boolean f() { + return this._defaultState; + } + + @Override // b.g.a.c.z.e + public int g() { + return this._mask; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/a.java b/app/src/main/java/b/g/a/c/h0/a.java new file mode 100644 index 0000000000..995183a309 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/a.java @@ -0,0 +1,102 @@ +package b.g.a.c.h0; + +import b.g.a.c.j; +import java.lang.reflect.Array; +/* compiled from: ArrayType */ +public final class a extends l { + private static final long serialVersionUID = 1; + public final j _componentType; + public final Object _emptyArray; + + public a(j jVar, m mVar, Object obj, Object obj2, Object obj3, boolean z2) { + super(obj.getClass(), mVar, null, null, jVar._hash, obj2, obj3, z2); + this._componentType = jVar; + this._emptyArray = obj; + } + + public static a L(j jVar, m mVar) { + return new a(jVar, mVar, Array.newInstance(jVar._class, 0), null, null, false); + } + + @Override // b.g.a.c.j + public j C(Class cls, m mVar, j jVar, j[] jVarArr) { + return null; + } + + @Override // b.g.a.c.j + public j D(j jVar) { + return new a(jVar, this._bindings, Array.newInstance(jVar._class, 0), this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j + public j E(Object obj) { + j jVar = this._componentType; + return obj == jVar._typeHandler ? this : new a(jVar.H(obj), this._bindings, this._emptyArray, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j + public j G() { + return this._asStatic ? this : new a(this._componentType.G(), this._bindings, this._emptyArray, this._valueHandler, this._typeHandler, true); + } + + @Override // b.g.a.c.j + public j H(Object obj) { + return obj == this._typeHandler ? this : new a(this._componentType, this._bindings, this._emptyArray, this._valueHandler, obj, this._asStatic); + } + + @Override // b.g.a.c.j + public j I(Object obj) { + return obj == this._valueHandler ? this : new a(this._componentType, this._bindings, this._emptyArray, obj, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j, java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj != null && obj.getClass() == a.class) { + return this._componentType.equals(((a) obj)._componentType); + } + return false; + } + + @Override // b.g.a.c.j + public j k() { + return this._componentType; + } + + @Override // b.g.a.c.j + public StringBuilder l(StringBuilder sb) { + sb.append('['); + return this._componentType.l(sb); + } + + @Override // b.g.a.c.j + public StringBuilder m(StringBuilder sb) { + sb.append('['); + return this._componentType.m(sb); + } + + @Override // b.g.a.c.j + public boolean r() { + return this._componentType.r(); + } + + @Override // b.g.a.c.j + public boolean s() { + return super.s() || this._componentType.s(); + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("[array type, component type: "); + R.append(this._componentType); + R.append("]"); + return R.toString(); + } + + @Override // b.g.a.c.j + public boolean v() { + return true; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/b.java b/app/src/main/java/b/g/a/c/h0/b.java new file mode 100644 index 0000000000..94460dfc11 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/b.java @@ -0,0 +1,47 @@ +package b.g.a.c.h0; + +import java.io.Serializable; +/* compiled from: ClassKey */ +public final class b implements Comparable, Serializable { + private static final long serialVersionUID = 1; + private Class _class; + private String _className; + private int _hashCode; + + public b() { + this._class = null; + this._className = null; + this._hashCode = 0; + } + + public b(Class cls) { + this._class = cls; + String name = cls.getName(); + this._className = name; + this._hashCode = name.hashCode(); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public int compareTo(b bVar) { + return this._className.compareTo(bVar._className); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + return obj != null && obj.getClass() == b.class && ((b) obj)._class == this._class; + } + + @Override // java.lang.Object + public int hashCode() { + return this._hashCode; + } + + @Override // java.lang.Object + public String toString() { + return this._className; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/c.java b/app/src/main/java/b/g/a/c/h0/c.java new file mode 100644 index 0000000000..2398fc8763 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/c.java @@ -0,0 +1,35 @@ +package b.g.a.c.h0; + +import b.d.b.a.a; +import java.util.ArrayList; +/* compiled from: ClassStack */ +public final class c { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final Class f705b; + public ArrayList c; + + public c(c cVar, Class cls) { + this.a = cVar; + this.f705b = cls; + } + + public c(Class cls) { + this.a = null; + this.f705b = cls; + } + + public String toString() { + StringBuilder R = a.R("[ClassStack (self-refs: "); + ArrayList arrayList = this.c; + R.append(arrayList == null ? "0" : String.valueOf(arrayList.size())); + R.append(')'); + for (c cVar = this; cVar != null; cVar = cVar.a) { + R.append(' '); + R.append(cVar.f705b.getName()); + } + R.append(']'); + return R.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/h0/d.java b/app/src/main/java/b/g/a/c/h0/d.java new file mode 100644 index 0000000000..d29d538c46 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/d.java @@ -0,0 +1,120 @@ +package b.g.a.c.h0; + +import b.d.b.a.a; +import b.g.a.c.j; +/* compiled from: CollectionLikeType */ +public class d extends l { + private static final long serialVersionUID = 1; + public final j _elementType; + + public d(Class cls, m mVar, j jVar, j[] jVarArr, j jVar2, Object obj, Object obj2, boolean z2) { + super(cls, mVar, jVar, jVarArr, jVar2._hash, obj, obj2, z2); + this._elementType = jVar2; + } + + @Override // b.g.a.c.j + public j C(Class cls, m mVar, j jVar, j[] jVarArr) { + return new d(cls, mVar, jVar, jVarArr, this._elementType, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j + public j D(j jVar) { + return this._elementType == jVar ? this : new d(this._class, this._bindings, this._superClass, this._superInterfaces, jVar, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j + public j F(j jVar) { + j F; + j F2 = super.F(jVar); + j k = jVar.k(); + return (k == null || (F = this._elementType.F(k)) == this._elementType) ? F2 : F2.D(F); + } + + @Override // b.g.a.c.h0.l + public String K() { + StringBuilder sb = new StringBuilder(); + sb.append(this._class.getName()); + if (this._elementType != null) { + sb.append('<'); + sb.append(this._elementType.e()); + sb.append('>'); + } + return sb.toString(); + } + + /* renamed from: L */ + public d E(Object obj) { + return new d(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType.H(obj), this._valueHandler, this._typeHandler, this._asStatic); + } + + /* renamed from: M */ + public d G() { + return this._asStatic ? this : new d(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType.G(), this._valueHandler, this._typeHandler, true); + } + + /* renamed from: N */ + public d H(Object obj) { + return new d(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType, this._valueHandler, obj, this._asStatic); + } + + /* renamed from: O */ + public d I(Object obj) { + return new d(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType, obj, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j, java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != getClass()) { + return false; + } + d dVar = (d) obj; + return this._class == dVar._class && this._elementType.equals(dVar._elementType); + } + + @Override // b.g.a.c.j + public j k() { + return this._elementType; + } + + @Override // b.g.a.c.j + public StringBuilder l(StringBuilder sb) { + l.J(this._class, sb, true); + return sb; + } + + @Override // b.g.a.c.j + public StringBuilder m(StringBuilder sb) { + l.J(this._class, sb, false); + sb.append('<'); + this._elementType.m(sb); + sb.append(">;"); + return sb; + } + + @Override // b.g.a.c.j + public boolean s() { + return super.s() || this._elementType.s(); + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = a.R("[collection-like type; class "); + a.i0(this._class, R, ", contains "); + R.append(this._elementType); + R.append("]"); + return R.toString(); + } + + @Override // b.g.a.c.j + public boolean u() { + return true; + } + + @Override // b.g.a.c.j + public boolean v() { + return true; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/e.java b/app/src/main/java/b/g/a/c/h0/e.java new file mode 100644 index 0000000000..388362cfa0 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/e.java @@ -0,0 +1,51 @@ +package b.g.a.c.h0; + +import b.d.b.a.a; +import b.g.a.c.j; +/* compiled from: CollectionType */ +public final class e extends d { + private static final long serialVersionUID = 1; + + public e(Class cls, m mVar, j jVar, j[] jVarArr, j jVar2, Object obj, Object obj2, boolean z2) { + super(cls, mVar, jVar, jVarArr, jVar2, obj, obj2, z2); + } + + @Override // b.g.a.c.h0.d, b.g.a.c.j + public j C(Class cls, m mVar, j jVar, j[] jVarArr) { + return new e(cls, mVar, jVar, jVarArr, this._elementType, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.h0.d, b.g.a.c.j + public j D(j jVar) { + return this._elementType == jVar ? this : new e(this._class, this._bindings, this._superClass, this._superInterfaces, jVar, this._valueHandler, this._typeHandler, this._asStatic); + } + + /* renamed from: P */ + public e L(Object obj) { + return new e(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType.H(obj), this._valueHandler, this._typeHandler, this._asStatic); + } + + /* renamed from: Q */ + public e M() { + return this._asStatic ? this : new e(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType.G(), this._valueHandler, this._typeHandler, true); + } + + /* renamed from: R */ + public e N(Object obj) { + return new e(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType, this._valueHandler, obj, this._asStatic); + } + + /* renamed from: S */ + public e O(Object obj) { + return new e(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType, obj, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.h0.d, java.lang.Object + public String toString() { + StringBuilder R = a.R("[collection type; class "); + a.i0(this._class, R, ", contains "); + R.append(this._elementType); + R.append("]"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/h0/f.java b/app/src/main/java/b/g/a/c/h0/f.java new file mode 100644 index 0000000000..fd00d509c2 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/f.java @@ -0,0 +1,134 @@ +package b.g.a.c.h0; + +import b.g.a.c.j; +/* compiled from: MapLikeType */ +public class f extends l { + private static final long serialVersionUID = 1; + public final j _keyType; + public final j _valueType; + + public f(Class cls, m mVar, j jVar, j[] jVarArr, j jVar2, j jVar3, Object obj, Object obj2, boolean z2) { + super(cls, mVar, jVar, jVarArr, jVar2._hash ^ jVar3._hash, obj, obj2, z2); + this._keyType = jVar2; + this._valueType = jVar3; + } + + @Override // b.g.a.c.j + public j C(Class cls, m mVar, j jVar, j[] jVarArr) { + return new f(cls, mVar, jVar, jVarArr, this._keyType, this._valueType, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j + public j D(j jVar) { + return this._valueType == jVar ? this : new f(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, jVar, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j + public j F(j jVar) { + j F; + j F2; + j F3 = super.F(jVar); + j o = jVar.o(); + if (!(!(F3 instanceof f) || o == null || (F2 = this._keyType.F(o)) == this._keyType)) { + F3 = ((f) F3).M(F2); + } + j k = jVar.k(); + return (k == null || (F = this._valueType.F(k)) == this._valueType) ? F3 : F3.D(F); + } + + @Override // b.g.a.c.h0.l + public String K() { + StringBuilder sb = new StringBuilder(); + sb.append(this._class.getName()); + if (this._keyType != null) { + sb.append('<'); + sb.append(this._keyType.e()); + sb.append(','); + sb.append(this._valueType.e()); + sb.append('>'); + } + return sb.toString(); + } + + /* renamed from: L */ + public f E(Object obj) { + return new f(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, this._valueType.H(obj), this._valueHandler, this._typeHandler, this._asStatic); + } + + public f M(j jVar) { + return jVar == this._keyType ? this : new f(this._class, this._bindings, this._superClass, this._superInterfaces, jVar, this._valueType, this._valueHandler, this._typeHandler, this._asStatic); + } + + /* renamed from: N */ + public f G() { + return this._asStatic ? this : new f(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, this._valueType.G(), this._valueHandler, this._typeHandler, true); + } + + /* renamed from: O */ + public f H(Object obj) { + return new f(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, this._valueType, this._valueHandler, obj, this._asStatic); + } + + /* renamed from: P */ + public f I(Object obj) { + return new f(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, this._valueType, obj, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j, java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != getClass()) { + return false; + } + f fVar = (f) obj; + return this._class == fVar._class && this._keyType.equals(fVar._keyType) && this._valueType.equals(fVar._valueType); + } + + @Override // b.g.a.c.j + public j k() { + return this._valueType; + } + + @Override // b.g.a.c.j + public StringBuilder l(StringBuilder sb) { + l.J(this._class, sb, true); + return sb; + } + + @Override // b.g.a.c.j + public StringBuilder m(StringBuilder sb) { + l.J(this._class, sb, false); + sb.append('<'); + this._keyType.m(sb); + this._valueType.m(sb); + sb.append(">;"); + return sb; + } + + @Override // b.g.a.c.j + public j o() { + return this._keyType; + } + + @Override // b.g.a.c.j + public boolean s() { + return super.s() || this._valueType.s() || this._keyType.s(); + } + + @Override // java.lang.Object + public String toString() { + return String.format("[map-like type; class %s, %s -> %s]", this._class.getName(), this._keyType, this._valueType); + } + + @Override // b.g.a.c.j + public boolean v() { + return true; + } + + @Override // b.g.a.c.j + public boolean z() { + return true; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/g.java b/app/src/main/java/b/g/a/c/h0/g.java new file mode 100644 index 0000000000..f4dfcc82c6 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/g.java @@ -0,0 +1,62 @@ +package b.g.a.c.h0; + +import b.d.b.a.a; +import b.g.a.c.j; +/* compiled from: MapType */ +public final class g extends f { + private static final long serialVersionUID = 1; + + public g(Class cls, m mVar, j jVar, j[] jVarArr, j jVar2, j jVar3, Object obj, Object obj2, boolean z2) { + super(cls, mVar, jVar, jVarArr, jVar2, jVar3, obj, obj2, z2); + } + + public static g Q(Class cls, m mVar, j jVar, j[] jVarArr, j jVar2, j jVar3) { + return new g(cls, mVar, jVar, jVarArr, jVar2, jVar3, null, null, false); + } + + @Override // b.g.a.c.h0.f, b.g.a.c.j + public j C(Class cls, m mVar, j jVar, j[] jVarArr) { + return new g(cls, mVar, jVar, jVarArr, this._keyType, this._valueType, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.h0.f, b.g.a.c.j + public j D(j jVar) { + return this._valueType == jVar ? this : new g(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, jVar, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.h0.f + public f M(j jVar) { + return jVar == this._keyType ? this : new g(this._class, this._bindings, this._superClass, this._superInterfaces, jVar, this._valueType, this._valueHandler, this._typeHandler, this._asStatic); + } + + /* renamed from: R */ + public g L(Object obj) { + return new g(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, this._valueType.H(obj), this._valueHandler, this._typeHandler, this._asStatic); + } + + /* renamed from: S */ + public g N() { + return this._asStatic ? this : new g(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType.G(), this._valueType.G(), this._valueHandler, this._typeHandler, true); + } + + /* renamed from: T */ + public g O(Object obj) { + return new g(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, this._valueType, this._valueHandler, obj, this._asStatic); + } + + /* renamed from: U */ + public g P(Object obj) { + return new g(this._class, this._bindings, this._superClass, this._superInterfaces, this._keyType, this._valueType, obj, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.h0.f, java.lang.Object + public String toString() { + StringBuilder R = a.R("[map type; class "); + a.i0(this._class, R, ", "); + R.append(this._keyType); + R.append(" -> "); + R.append(this._valueType); + R.append("]"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/h0/h.java b/app/src/main/java/b/g/a/c/h0/h.java new file mode 100644 index 0000000000..ed58ec702c --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/h.java @@ -0,0 +1,92 @@ +package b.g.a.c.h0; + +import b.d.b.a.a; +import b.g.a.c.j; +/* compiled from: PlaceholderForType */ +public class h extends l { + private static final long serialVersionUID = 1; + public j _actualType; + public final int _ordinal; + + public h(int i) { + super(Object.class, m.l, n.k(), null, 1, null, null, false); + this._ordinal = i; + } + + @Override // b.g.a.c.j + public j C(Class cls, m mVar, j jVar, j[] jVarArr) { + L(); + throw null; + } + + @Override // b.g.a.c.j + public j D(j jVar) { + L(); + throw null; + } + + @Override // b.g.a.c.j + public j E(Object obj) { + L(); + throw null; + } + + @Override // b.g.a.c.j + public j G() { + L(); + throw null; + } + + @Override // b.g.a.c.j + public j H(Object obj) { + L(); + throw null; + } + + @Override // b.g.a.c.j + public j I(Object obj) { + L(); + throw null; + } + + @Override // b.g.a.c.h0.l + public String K() { + return toString(); + } + + public final T L() { + StringBuilder R = a.R("Operation should not be attempted on "); + R.append(h.class.getName()); + throw new UnsupportedOperationException(R.toString()); + } + + @Override // b.g.a.c.j, java.lang.Object + public boolean equals(Object obj) { + return obj == this; + } + + @Override // b.g.a.c.j + public StringBuilder l(StringBuilder sb) { + sb.append('$'); + sb.append(this._ordinal + 1); + return sb; + } + + @Override // b.g.a.c.j + public StringBuilder m(StringBuilder sb) { + l(sb); + return sb; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder(); + l(sb); + return sb.toString(); + } + + @Override // b.g.a.c.j + public boolean v() { + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/i.java b/app/src/main/java/b/g/a/c/h0/i.java new file mode 100644 index 0000000000..5aa5b8cde4 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/i.java @@ -0,0 +1,114 @@ +package b.g.a.c.h0; + +import b.g.a.b.s.a; +import b.g.a.c.j; +/* compiled from: ReferenceType */ +public class i extends k { + private static final long serialVersionUID = 1; + public final j _anchorType; + public final j _referencedType; + + public i(Class cls, m mVar, j jVar, j[] jVarArr, j jVar2, j jVar3, Object obj, Object obj2, boolean z2) { + super(cls, mVar, jVar, jVarArr, jVar2._hash, obj, obj2, z2); + this._referencedType = jVar2; + this._anchorType = jVar3 == null ? this : jVar3; + } + + @Override // b.g.a.c.h0.k, b.g.a.c.j + public j C(Class cls, m mVar, j jVar, j[] jVarArr) { + return new i(cls, this._bindings, jVar, jVarArr, this._referencedType, this._anchorType, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.h0.k, b.g.a.c.j + public j D(j jVar) { + return this._referencedType == jVar ? this : new i(this._class, this._bindings, this._superClass, this._superInterfaces, jVar, this._anchorType, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.h0.k, b.g.a.c.j + public j E(Object obj) { + j jVar = this._referencedType; + return obj == jVar._typeHandler ? this : new i(this._class, this._bindings, this._superClass, this._superInterfaces, jVar.H(obj), this._anchorType, this._valueHandler, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.h0.k, b.g.a.c.h0.l + public String K() { + return this._class.getName() + '<' + this._referencedType.e() + '>'; + } + + /* renamed from: P */ + public i M() { + return this._asStatic ? this : new i(this._class, this._bindings, this._superClass, this._superInterfaces, this._referencedType.G(), this._anchorType, this._valueHandler, this._typeHandler, true); + } + + /* renamed from: Q */ + public i N(Object obj) { + return obj == this._typeHandler ? this : new i(this._class, this._bindings, this._superClass, this._superInterfaces, this._referencedType, this._anchorType, this._valueHandler, obj, this._asStatic); + } + + /* renamed from: R */ + public i O(Object obj) { + return obj == this._valueHandler ? this : new i(this._class, this._bindings, this._superClass, this._superInterfaces, this._referencedType, this._anchorType, obj, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j, b.g.a.b.s.a + public a a() { + return this._referencedType; + } + + @Override // b.g.a.b.s.a + public boolean b() { + return true; + } + + @Override // b.g.a.c.h0.k, b.g.a.c.j, java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != i.class) { + return false; + } + i iVar = (i) obj; + if (iVar._class != this._class) { + return false; + } + return this._referencedType.equals(iVar._referencedType); + } + + @Override // b.g.a.c.j + public j k() { + return this._referencedType; + } + + @Override // b.g.a.c.h0.k, b.g.a.c.j + public StringBuilder l(StringBuilder sb) { + l.J(this._class, sb, true); + return sb; + } + + @Override // b.g.a.c.h0.k, b.g.a.c.j + public StringBuilder m(StringBuilder sb) { + l.J(this._class, sb, false); + sb.append('<'); + StringBuilder m = this._referencedType.m(sb); + m.append(">;"); + return m; + } + + @Override // b.g.a.c.j + public j p() { + return this._referencedType; + } + + @Override // b.g.a.c.h0.k, java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder(40); + sb.append("[reference type, class "); + sb.append(K()); + sb.append('<'); + sb.append(this._referencedType); + sb.append('>'); + sb.append(']'); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/h0/j.java b/app/src/main/java/b/g/a/c/h0/j.java new file mode 100644 index 0000000000..062e8a18b8 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/j.java @@ -0,0 +1,96 @@ +package b.g.a.c.h0; +/* compiled from: ResolvedRecursiveType */ +public class j extends l { + private static final long serialVersionUID = 1; + public b.g.a.c.j _referencedType; + + public j(Class cls, m mVar) { + super(cls, mVar, null, null, 0, null, null, false); + } + + @Override // b.g.a.c.j + public b.g.a.c.j C(Class cls, m mVar, b.g.a.c.j jVar, b.g.a.c.j[] jVarArr) { + return null; + } + + @Override // b.g.a.c.j + public b.g.a.c.j D(b.g.a.c.j jVar) { + return this; + } + + @Override // b.g.a.c.j + public b.g.a.c.j E(Object obj) { + return this; + } + + @Override // b.g.a.c.j + public b.g.a.c.j G() { + return this; + } + + @Override // b.g.a.c.j + public b.g.a.c.j H(Object obj) { + return this; + } + + @Override // b.g.a.c.j + public b.g.a.c.j I(Object obj) { + return this; + } + + @Override // b.g.a.c.j, java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj != null && obj.getClass() == j.class) { + } + return false; + } + + @Override // b.g.a.c.h0.l, b.g.a.c.j + public m j() { + b.g.a.c.j jVar = this._referencedType; + return jVar != null ? jVar.j() : this._bindings; + } + + @Override // b.g.a.c.j + public StringBuilder l(StringBuilder sb) { + b.g.a.c.j jVar = this._referencedType; + return jVar != null ? jVar.l(sb) : sb; + } + + @Override // b.g.a.c.j + public StringBuilder m(StringBuilder sb) { + b.g.a.c.j jVar = this._referencedType; + if (jVar != null) { + return jVar.l(sb); + } + sb.append("?"); + return sb; + } + + @Override // b.g.a.c.h0.l, b.g.a.c.j + public b.g.a.c.j q() { + b.g.a.c.j jVar = this._referencedType; + return jVar != null ? jVar.q() : this._superClass; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder(40); + sb.append("[recursive type; "); + b.g.a.c.j jVar = this._referencedType; + if (jVar == null) { + sb.append("UNRESOLVED"); + } else { + sb.append(jVar._class.getName()); + } + return sb.toString(); + } + + @Override // b.g.a.c.j + public boolean v() { + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/k.java b/app/src/main/java/b/g/a/c/h0/k.java new file mode 100644 index 0000000000..4194e4d41a --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/k.java @@ -0,0 +1,122 @@ +package b.g.a.c.h0; + +import b.g.a.c.j; +/* compiled from: SimpleType */ +public class k extends l { + private static final long serialVersionUID = 1; + + public k(Class cls) { + this(cls, m.l, null, null, null, null, false); + } + + public k(Class cls, m mVar, j jVar, j[] jVarArr, int i, Object obj, Object obj2, boolean z2) { + super(cls, mVar, jVar, jVarArr, i, obj, obj2, z2); + } + + public k(Class cls, m mVar, j jVar, j[] jVarArr, Object obj, Object obj2, boolean z2) { + super(cls, mVar, jVar, jVarArr, 0, obj, obj2, z2); + } + + public static k L(Class cls) { + return new k(cls, null, null, null, null, null, false); + } + + @Override // b.g.a.c.j + public j C(Class cls, m mVar, j jVar, j[] jVarArr) { + return null; + } + + @Override // b.g.a.c.j + public j D(j jVar) { + throw new IllegalArgumentException("Simple types have no content types; cannot call withContentType()"); + } + + @Override // b.g.a.c.j + public j E(Object obj) { + throw new IllegalArgumentException("Simple types have no content types; cannot call withContenTypeHandler()"); + } + + @Override // b.g.a.c.h0.l + public String K() { + StringBuilder sb = new StringBuilder(); + sb.append(this._class.getName()); + int j = this._bindings.j(); + if (j > 0) { + sb.append('<'); + for (int i = 0; i < j; i++) { + j f = f(i); + if (i > 0) { + sb.append(','); + } + sb.append(f.e()); + } + sb.append('>'); + } + return sb.toString(); + } + + /* renamed from: M */ + public k G() { + return this._asStatic ? this : new k(this._class, this._bindings, this._superClass, this._superInterfaces, this._valueHandler, this._typeHandler, true); + } + + /* renamed from: N */ + public k H(Object obj) { + return this._typeHandler == obj ? this : new k(this._class, this._bindings, this._superClass, this._superInterfaces, this._valueHandler, obj, this._asStatic); + } + + /* renamed from: O */ + public k I(Object obj) { + return obj == this._valueHandler ? this : new k(this._class, this._bindings, this._superClass, this._superInterfaces, obj, this._typeHandler, this._asStatic); + } + + @Override // b.g.a.c.j, java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != getClass()) { + return false; + } + k kVar = (k) obj; + if (kVar._class != this._class) { + return false; + } + return this._bindings.equals(kVar._bindings); + } + + @Override // b.g.a.c.j + public StringBuilder l(StringBuilder sb) { + l.J(this._class, sb, true); + return sb; + } + + @Override // b.g.a.c.j + public StringBuilder m(StringBuilder sb) { + l.J(this._class, sb, false); + int j = this._bindings.j(); + if (j > 0) { + sb.append('<'); + for (int i = 0; i < j; i++) { + sb = f(i).m(sb); + } + sb.append('>'); + } + sb.append(';'); + return sb; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder(40); + sb.append("[simple type, class "); + sb.append(K()); + sb.append(']'); + return sb.toString(); + } + + @Override // b.g.a.c.j + public boolean v() { + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/l.java b/app/src/main/java/b/g/a/c/h0/l.java new file mode 100644 index 0000000000..fa0e8233f7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/l.java @@ -0,0 +1,147 @@ +package b.g.a.c.h0; + +import b.d.b.a.a; +import b.g.a.b.d; +import b.g.a.b.h; +import b.g.a.b.s.b; +import b.g.a.c.e0.g; +import b.g.a.c.j; +import b.g.a.c.m; +import b.g.a.c.x; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +/* compiled from: TypeBase */ +public abstract class l extends j implements m { + public static final m j = m.l; + private static final long serialVersionUID = 1; + public final m _bindings; + public final j _superClass; + public final j[] _superInterfaces; + + public l(Class cls, m mVar, j jVar, j[] jVarArr, int i, Object obj, Object obj2, boolean z2) { + super(cls, i, obj, obj2, z2); + this._bindings = mVar == null ? j : mVar; + this._superClass = jVar; + this._superInterfaces = jVarArr; + } + + public static StringBuilder J(Class cls, StringBuilder sb, boolean z2) { + if (!cls.isPrimitive()) { + sb.append('L'); + String name = cls.getName(); + int length = name.length(); + for (int i = 0; i < length; i++) { + char charAt = name.charAt(i); + if (charAt == '.') { + charAt = MentionUtilsKt.SLASH_CHAR; + } + sb.append(charAt); + } + if (z2) { + sb.append(';'); + } + } else if (cls == Boolean.TYPE) { + sb.append('Z'); + } else if (cls == Byte.TYPE) { + sb.append('B'); + } else if (cls == Short.TYPE) { + sb.append('S'); + } else if (cls == Character.TYPE) { + sb.append('C'); + } else if (cls == Integer.TYPE) { + sb.append('I'); + } else if (cls == Long.TYPE) { + sb.append('J'); + } else if (cls == Float.TYPE) { + sb.append('F'); + } else if (cls == Double.TYPE) { + sb.append('D'); + } else if (cls == Void.TYPE) { + sb.append('V'); + } else { + StringBuilder R = a.R("Unrecognized primitive type: "); + R.append(cls.getName()); + throw new IllegalStateException(R.toString()); + } + return sb; + } + + public String K() { + return this._class.getName(); + } + + @Override // b.g.a.c.m + public void c(d dVar, x xVar) throws IOException, JsonProcessingException { + dVar.j0(K()); + } + + @Override // b.g.a.c.m + public void d(d dVar, x xVar, g gVar) throws IOException { + b bVar = new b(this, h.VALUE_STRING); + gVar.e(dVar, bVar); + dVar.j0(K()); + gVar.f(dVar, bVar); + } + + @Override // b.g.a.b.s.a + public String e() { + return K(); + } + + @Override // b.g.a.c.j + public j f(int i) { + return this._bindings.f(i); + } + + @Override // b.g.a.c.j + public int g() { + return this._bindings.j(); + } + + @Override // b.g.a.c.j + public final j i(Class cls) { + j i; + j[] jVarArr; + if (cls == this._class) { + return this; + } + if (cls.isInterface() && (jVarArr = this._superInterfaces) != null) { + int length = jVarArr.length; + for (int i2 = 0; i2 < length; i2++) { + j i3 = this._superInterfaces[i2].i(cls); + if (i3 != null) { + return i3; + } + } + } + j jVar = this._superClass; + if (jVar == null || (i = jVar.i(cls)) == null) { + return null; + } + return i; + } + + @Override // b.g.a.c.j + public m j() { + return this._bindings; + } + + @Override // b.g.a.c.j + public List n() { + j[] jVarArr = this._superInterfaces; + if (jVarArr == null) { + return Collections.emptyList(); + } + int length = jVarArr.length; + return length != 0 ? length != 1 ? Arrays.asList(jVarArr) : Collections.singletonList(jVarArr[0]) : Collections.emptyList(); + } + + @Override // b.g.a.c.j + public j q() { + return this._superClass; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/m.java b/app/src/main/java/b/g/a/c/h0/m.java new file mode 100644 index 0000000000..34adf08327 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/m.java @@ -0,0 +1,293 @@ +package b.g.a.c.h0; + +import b.g.a.c.i0.d; +import b.g.a.c.j; +import java.io.Serializable; +import java.lang.reflect.TypeVariable; +import java.util.AbstractList; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +/* compiled from: TypeBindings */ +public class m implements Serializable { + public static final String[] j; + public static final j[] k; + public static final m l; + private static final long serialVersionUID = 1; + private final int _hashCode; + private final String[] _names; + private final j[] _types; + private final String[] _unboundVariables; + + /* compiled from: TypeBindings */ + public static final class a { + public final Class a; + + /* renamed from: b reason: collision with root package name */ + public final j[] f706b; + public final int c; + + public a(Class cls, j[] jVarArr, int i) { + this.a = cls; + this.f706b = jVarArr; + this.c = i; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != a.class) { + return false; + } + a aVar = (a) obj; + if (this.c == aVar.c && this.a == aVar.a) { + j[] jVarArr = aVar.f706b; + int length = this.f706b.length; + if (length == jVarArr.length) { + for (int i = 0; i < length; i++) { + if (!this.f706b[i].equals(jVarArr[i])) { + return false; + } + } + return true; + } + } + return false; + } + + public int hashCode() { + return this.c; + } + + public String toString() { + return b.d.b.a.a.n(this.a, new StringBuilder(), "<>"); + } + } + + /* compiled from: TypeBindings */ + public static class b { + public static final TypeVariable[] a = AbstractList.class.getTypeParameters(); + + /* renamed from: b reason: collision with root package name */ + public static final TypeVariable[] f707b = Collection.class.getTypeParameters(); + public static final TypeVariable[] c = Iterable.class.getTypeParameters(); + public static final TypeVariable[] d = List.class.getTypeParameters(); + public static final TypeVariable[] e = ArrayList.class.getTypeParameters(); + public static final TypeVariable[] f = Map.class.getTypeParameters(); + public static final TypeVariable[] g = HashMap.class.getTypeParameters(); + public static final TypeVariable[] h = LinkedHashMap.class.getTypeParameters(); + } + + static { + String[] strArr = new String[0]; + j = strArr; + j[] jVarArr = new j[0]; + k = jVarArr; + l = new m(strArr, jVarArr, null); + } + + public m(String[] strArr, j[] jVarArr, String[] strArr2) { + strArr = strArr == null ? j : strArr; + this._names = strArr; + jVarArr = jVarArr == null ? k : jVarArr; + this._types = jVarArr; + if (strArr.length == jVarArr.length) { + int length = jVarArr.length; + int i = 1; + for (int i2 = 0; i2 < length; i2++) { + i += this._types[i2]._hash; + } + this._unboundVariables = strArr2; + this._hashCode = i; + return; + } + StringBuilder R = b.d.b.a.a.R("Mismatching names ("); + R.append(strArr.length); + R.append("), types ("); + throw new IllegalArgumentException(b.d.b.a.a.A(R, jVarArr.length, ")")); + } + + public static m b(Class cls, j jVar) { + TypeVariable[] typeVariableArr = b.a; + TypeVariable[] typeParameters = cls == Collection.class ? b.f707b : cls == List.class ? b.d : cls == ArrayList.class ? b.e : cls == AbstractList.class ? b.a : cls == Iterable.class ? b.c : cls.getTypeParameters(); + int length = typeParameters == null ? 0 : typeParameters.length; + if (length == 1) { + return new m(new String[]{typeParameters[0].getName()}, new j[]{jVar}, null); + } + StringBuilder R = b.d.b.a.a.R("Cannot create TypeBindings for class "); + R.append(cls.getName()); + R.append(" with 1 type parameter: class expects "); + R.append(length); + throw new IllegalArgumentException(R.toString()); + } + + public static m c(Class cls, j jVar, j jVar2) { + TypeVariable[] typeVariableArr = b.a; + TypeVariable[] typeParameters = cls == Map.class ? b.f : cls == HashMap.class ? b.g : cls == LinkedHashMap.class ? b.h : cls.getTypeParameters(); + int length = typeParameters == null ? 0 : typeParameters.length; + if (length == 2) { + return new m(new String[]{typeParameters[0].getName(), typeParameters[1].getName()}, new j[]{jVar, jVar2}, null); + } + StringBuilder R = b.d.b.a.a.R("Cannot create TypeBindings for class "); + R.append(cls.getName()); + R.append(" with 2 type parameters: class expects "); + R.append(length); + throw new IllegalArgumentException(R.toString()); + } + + public static m d(Class cls, j[] jVarArr) { + String[] strArr; + int length = jVarArr.length; + if (length == 1) { + return b(cls, jVarArr[0]); + } + if (length == 2) { + return c(cls, jVarArr[0], jVarArr[1]); + } + TypeVariable>[] typeParameters = cls.getTypeParameters(); + if (typeParameters == null || typeParameters.length == 0) { + strArr = j; + } else { + int length2 = typeParameters.length; + strArr = new String[length2]; + for (int i = 0; i < length2; i++) { + strArr[i] = typeParameters[i].getName(); + } + } + if (strArr.length == jVarArr.length) { + return new m(strArr, jVarArr, null); + } + StringBuilder R = b.d.b.a.a.R("Cannot create TypeBindings for class "); + b.d.b.a.a.i0(cls, R, " with "); + R.append(jVarArr.length); + R.append(" type parameter"); + R.append(jVarArr.length == 1 ? "" : "s"); + R.append(": class expects "); + R.append(strArr.length); + throw new IllegalArgumentException(R.toString()); + } + + public Object a(Class cls) { + return new a(cls, this._types, this._hashCode); + } + + public j e(String str) { + j jVar; + int length = this._names.length; + for (int i = 0; i < length; i++) { + if (str.equals(this._names[i])) { + j jVar2 = this._types[i]; + return (!(jVar2 instanceof j) || (jVar = ((j) jVar2)._referencedType) == null) ? jVar2 : jVar; + } + } + return null; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!d.o(obj, m.class)) { + return false; + } + int length = this._types.length; + j[] jVarArr = ((m) obj)._types; + if (length != jVarArr.length) { + return false; + } + for (int i = 0; i < length; i++) { + if (!jVarArr[i].equals(this._types[i])) { + return false; + } + } + return true; + } + + public j f(int i) { + if (i < 0) { + return null; + } + j[] jVarArr = this._types; + if (i >= jVarArr.length) { + return null; + } + return jVarArr[i]; + } + + public List g() { + j[] jVarArr = this._types; + return jVarArr.length == 0 ? Collections.emptyList() : Arrays.asList(jVarArr); + } + + public boolean h(String str) { + String[] strArr = this._unboundVariables; + if (strArr == null) { + return false; + } + int length = strArr.length; + do { + length--; + if (length < 0) { + return false; + } + } while (!str.equals(this._unboundVariables[length])); + return true; + } + + @Override // java.lang.Object + public int hashCode() { + return this._hashCode; + } + + public boolean i() { + return this._types.length == 0; + } + + public int j() { + return this._types.length; + } + + public j[] k() { + return this._types; + } + + public m l(String str) { + String[] strArr = this._unboundVariables; + int length = strArr == null ? 0 : strArr.length; + String[] strArr2 = length == 0 ? new String[1] : (String[]) Arrays.copyOf(strArr, length + 1); + strArr2[length] = str; + return new m(this._names, this._types, strArr2); + } + + public Object readResolve() { + String[] strArr = this._names; + return (strArr == null || strArr.length == 0) ? l : this; + } + + @Override // java.lang.Object + public String toString() { + if (this._types.length == 0) { + return "<>"; + } + StringBuilder N = b.d.b.a.a.N('<'); + int length = this._types.length; + for (int i = 0; i < length; i++) { + if (i > 0) { + N.append(','); + } + j jVar = this._types[i]; + StringBuilder sb = new StringBuilder(40); + jVar.m(sb); + N.append(sb.toString()); + } + N.append('>'); + return N.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/h0/n.java b/app/src/main/java/b/g/a/c/h0/n.java new file mode 100644 index 0000000000..78735c25b3 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/n.java @@ -0,0 +1,523 @@ +package b.g.a.c.h0; + +import b.d.b.a.a; +import b.g.a.c.i0.d; +import b.g.a.c.i0.h; +import b.g.a.c.j; +import b.g.a.c.l; +import java.io.Serializable; +import java.lang.annotation.Annotation; +import java.lang.reflect.GenericArrayType; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.lang.reflect.TypeVariable; +import java.lang.reflect.WildcardType; +import java.util.ArrayList; +import java.util.Collection; +import java.util.EnumMap; +import java.util.EnumSet; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Properties; +import java.util.TreeMap; +import java.util.TreeSet; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: TypeFactory */ +public class n implements Serializable { + public static final k A = new k(Comparable.class); + public static final k B = new k(Enum.class); + public static final k C = new k(Class.class); + public static final k D = new k(l.class); + public static final j[] j = new j[0]; + public static final n k = new n(); + public static final m l = m.l; + public static final Class m = String.class; + public static final Class n = Object.class; + public static final Class o = Comparable.class; + public static final Class p = Class.class; + public static final Class q = Enum.class; + public static final Class r = l.class; + + /* renamed from: s reason: collision with root package name */ + public static final Class f708s; + private static final long serialVersionUID = 1; + public static final Class t; + public static final Class u; + public static final k v; + public static final k w; + + /* renamed from: x reason: collision with root package name */ + public static final k f709x; + + /* renamed from: y reason: collision with root package name */ + public static final k f710y = new k(String.class); + + /* renamed from: z reason: collision with root package name */ + public static final k f711z = new k(Object.class); + public final ClassLoader _classLoader = null; + public final o[] _modifiers = null; + public final p _parser = new p(this); + public final b.g.a.c.i0.j _typeCache = new h(16, 200); + + static { + Class cls = Boolean.TYPE; + f708s = cls; + Class cls2 = Integer.TYPE; + t = cls2; + Class cls3 = Long.TYPE; + u = cls3; + v = new k(cls); + w = new k(cls2); + f709x = new k(cls3); + } + + public static j k() { + Objects.requireNonNull(k); + return f711z; + } + + public j a(Class cls) { + if (cls.isPrimitive()) { + if (cls == f708s) { + return v; + } + if (cls == t) { + return w; + } + if (cls == u) { + return f709x; + } + return null; + } else if (cls == m) { + return f710y; + } else { + if (cls == n) { + return f711z; + } + if (cls == r) { + return D; + } + return null; + } + } + + public j b(c cVar, Type type, m mVar) { + j jVar; + Type[] bounds; + m mVar2; + if (type instanceof Class) { + jVar = c(cVar, (Class) type, l); + } else if (type instanceof ParameterizedType) { + ParameterizedType parameterizedType = (ParameterizedType) type; + Class cls = (Class) parameterizedType.getRawType(); + if (cls == q) { + jVar = B; + } else if (cls == o) { + jVar = A; + } else if (cls == p) { + jVar = C; + } else { + Type[] actualTypeArguments = parameterizedType.getActualTypeArguments(); + int length = actualTypeArguments == null ? 0 : actualTypeArguments.length; + if (length == 0) { + mVar2 = l; + } else { + j[] jVarArr = new j[length]; + for (int i = 0; i < length; i++) { + jVarArr[i] = b(cVar, actualTypeArguments[i], mVar); + } + mVar2 = m.d(cls, jVarArr); + } + jVar = c(cVar, cls, mVar2); + } + } else if (type instanceof j) { + return (j) type; + } else { + if (type instanceof GenericArrayType) { + jVar = a.L(b(cVar, ((GenericArrayType) type).getGenericComponentType(), mVar), mVar); + } else if (type instanceof TypeVariable) { + TypeVariable typeVariable = (TypeVariable) type; + String name = typeVariable.getName(); + if (mVar != null) { + j e = mVar.e(name); + if (e != null) { + jVar = e; + } else if (mVar.h(name)) { + jVar = f711z; + } else { + m l2 = mVar.l(name); + synchronized (typeVariable) { + bounds = typeVariable.getBounds(); + } + jVar = b(cVar, bounds[0], l2); + } + } else { + throw new IllegalArgumentException(a.w("Null `bindings` passed (type variable \"", name, "\")")); + } + } else if (type instanceof WildcardType) { + jVar = b(cVar, ((WildcardType) type).getUpperBounds()[0], mVar); + } else { + StringBuilder R = a.R("Unrecognized Type: "); + R.append(type == null ? "[null]" : type.toString()); + throw new IllegalArgumentException(R.toString()); + } + } + if (this._modifiers != null) { + jVar.j(); + o[] oVarArr = this._modifiers; + if (oVarArr.length > 0) { + o oVar = oVarArr[0]; + throw null; + } + } + return jVar; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x00f1: APUT (r7v3 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r2v28 java.lang.String) */ + /* JADX WARNING: Removed duplicated region for block: B:96:0x01ac */ + public j c(c cVar, Class cls, m mVar) { + c cVar2; + Class cls2; + j jVar; + j b2; + j[] e; + j jVar2; + j jVar3; + j jVar4; + j jVar5; + k kVar; + k kVar2; + c cVar3; + j a = a(cls); + if (a != null) { + return a; + } + Object a2 = (mVar == null || mVar.i()) ? cls : mVar.a(cls); + j jVar6 = this._typeCache.get(a2); + if (jVar6 != null) { + return jVar6; + } + if (cVar == null) { + cVar2 = new c(cls); + } else { + if (cVar.f705b != cls) { + cVar3 = cVar.a; + while (true) { + if (cVar3 == null) { + cVar3 = null; + break; + } else if (cVar3.f705b == cls) { + break; + } else { + cVar3 = cVar3.a; + } + } + } else { + cVar3 = cVar; + } + if (cVar3 != null) { + j jVar7 = new j(cls, l); + if (cVar3.c == null) { + cVar3.c = new ArrayList<>(); + } + cVar3.c.add(jVar7); + return jVar7; + } + cVar2 = new c(cVar, cls); + } + if (cls.isArray()) { + jVar = a.L(b(cVar2, cls.getComponentType(), mVar), mVar); + cls2 = a2; + } else { + if (cls.isInterface()) { + e = e(cVar2, cls, mVar); + b2 = null; + } else { + Annotation[] annotationArr = d.a; + Type genericSuperclass = cls.getGenericSuperclass(); + b2 = genericSuperclass == null ? null : b(cVar2, genericSuperclass, mVar); + e = e(cVar2, cls, mVar); + } + if (cls == Properties.class) { + k kVar3 = f710y; + jVar6 = g.Q(cls, mVar, b2, e, kVar3, kVar3); + } else if (b2 != null) { + jVar6 = b2.C(cls, mVar, b2, e); + } + if (jVar6 == null) { + m mVar2 = mVar == null ? l : mVar; + if (cls == Map.class) { + if (cls == Properties.class) { + kVar2 = f710y; + } else { + List g = mVar2.g(); + int size = g.size(); + if (size == 0) { + kVar2 = f711z; + } else if (size != 2) { + Object[] objArr = new Object[4]; + objArr[0] = d.u(cls); + objArr[1] = Integer.valueOf(size); + objArr[2] = size == 1 ? "" : "s"; + objArr[3] = mVar2; + throw new IllegalArgumentException(String.format("Strange Map type %s with %d type parameter%s (%s), can not resolve", objArr)); + } else { + jVar5 = g.get(1); + kVar = g.get(0); + jVar = g.Q(cls, mVar2, b2, e, kVar, jVar5); + } + } + kVar = kVar2; + jVar5 = kVar; + jVar = g.Q(cls, mVar2, b2, e, kVar, jVar5); + } else if (cls == Collection.class) { + List g2 = mVar2.g(); + if (g2.isEmpty()) { + jVar4 = f711z; + } else if (g2.size() == 1) { + jVar4 = g2.get(0); + } else { + throw new IllegalArgumentException(a.n(cls, a.R("Strange Collection type "), ": cannot determine type parameters")); + } + jVar = new e(cls, mVar2, b2, e, jVar4, null, null, false); + } else { + if (cls == AtomicReference.class) { + List g3 = mVar2.g(); + if (g3.isEmpty()) { + jVar3 = f711z; + } else if (g3.size() == 1) { + jVar3 = g3.get(0); + } else { + throw new IllegalArgumentException(a.n(cls, a.R("Strange Reference type "), ": cannot determine type parameters")); + } + cls2 = a2; + jVar2 = b2; + jVar = new i(cls, mVar2, b2, e, jVar3, null, null, null, false); + } else { + cls2 = a2; + jVar2 = b2; + jVar = null; + } + if (jVar == null) { + int length = e.length; + int i = 0; + while (true) { + if (i >= length) { + jVar = null; + break; + } + j C2 = e[i].C(cls, mVar, jVar2, e); + if (C2 != null) { + jVar = C2; + break; + } + i++; + } + if (jVar == null) { + jVar = d(cls, mVar, jVar2, e); + } + } + } + cls2 = a2; + jVar2 = b2; + if (jVar == null) { + } + } else { + cls2 = a2; + jVar = jVar6; + } + } + ArrayList arrayList = cVar2.c; + if (arrayList != null) { + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + j next = it.next(); + if (next._referencedType == null) { + next._referencedType = jVar; + } else { + StringBuilder R = a.R("Trying to re-set self reference; old value = "); + R.append(next._referencedType); + R.append(", new = "); + R.append(jVar); + throw new IllegalStateException(R.toString()); + } + } + } + if (!jVar.s()) { + this._typeCache.putIfAbsent(cls2, jVar); + } + return jVar; + } + + public j d(Class cls, m mVar, j jVar, j[] jVarArr) { + return new k(cls, mVar, jVar, jVarArr, null, null, false); + } + + public j[] e(c cVar, Class cls, m mVar) { + Annotation[] annotationArr = d.a; + Type[] genericInterfaces = cls.getGenericInterfaces(); + if (genericInterfaces == null || genericInterfaces.length == 0) { + return j; + } + int length = genericInterfaces.length; + j[] jVarArr = new j[length]; + for (int i = 0; i < length; i++) { + jVarArr[i] = b(cVar, genericInterfaces[i], mVar); + } + return jVarArr; + } + + public final boolean f(j jVar, j jVar2) { + if (jVar2 instanceof h) { + ((h) jVar2)._actualType = jVar; + return true; + } else if (jVar._class != jVar2._class) { + return false; + } else { + List g = jVar.j().g(); + List g2 = jVar2.j().g(); + int size = g.size(); + for (int i = 0; i < size; i++) { + if (!f(g.get(i), g2.get(i))) { + return false; + } + } + return true; + } + } + + public j g(j jVar, Class cls) { + Class cls2 = jVar._class; + if (cls2 == cls) { + return jVar; + } + j i = jVar.i(cls); + if (i != null) { + return i; + } + if (!cls.isAssignableFrom(cls2)) { + throw new IllegalArgumentException(String.format("Class %s not a super-type of %s", cls.getName(), jVar)); + } + throw new IllegalArgumentException(String.format("Internal error: class %s not included as super-type for %s", cls.getName(), jVar)); + } + + public j h(j jVar, Class cls, boolean z2) throws IllegalArgumentException { + j jVar2; + String str; + j jVar3; + j k2; + Class cls2 = jVar._class; + if (cls2 == cls) { + return jVar; + } + if (cls2 == Object.class) { + jVar2 = c(null, cls, l); + } else if (cls2.isAssignableFrom(cls)) { + if (jVar.v()) { + if (jVar.z()) { + if (cls == HashMap.class || cls == LinkedHashMap.class || cls == EnumMap.class || cls == TreeMap.class) { + jVar2 = c(null, cls, m.c(cls, jVar.o(), jVar.k())); + } + } else if (jVar.u()) { + if (cls == ArrayList.class || cls == LinkedList.class || cls == HashSet.class || cls == TreeSet.class) { + jVar2 = c(null, cls, m.b(cls, jVar.k())); + } else if (cls2 == EnumSet.class) { + return jVar; + } + } + } + if (jVar.j().i()) { + jVar2 = c(null, cls, l); + } else { + int length = cls.getTypeParameters().length; + if (length == 0) { + jVar2 = c(null, cls, l); + } else { + h[] hVarArr = new h[length]; + for (int i = 0; i < length; i++) { + hVarArr[i] = new h(i); + } + j i2 = c(null, cls, m.d(cls, hVarArr)).i(jVar._class); + if (i2 != null) { + List g = jVar.j().g(); + List g2 = i2.j().g(); + int size = g2.size(); + int size2 = g.size(); + int i3 = 0; + while (true) { + if (i3 >= size2) { + str = null; + break; + } + jVar3 = g.get(i3); + k2 = i3 < size ? g2.get(i3) : k(); + if (!f(jVar3, k2)) { + if (!(jVar3._class == Object.class)) { + if (i3 == 0 && jVar.z()) { + if (k2._class == Object.class) { + continue; + } + } + if (!jVar3._class.isInterface()) { + break; + } + Class cls3 = k2._class; + Class cls4 = jVar3._class; + if (!(cls4 == cls3 || cls4.isAssignableFrom(cls3))) { + break; + } + } else { + continue; + } + } + i3++; + } + str = String.format("Type parameter #%d/%d differs; can not specialize %s with %s", Integer.valueOf(i3 + 1), Integer.valueOf(size2), jVar3.e(), k2.e()); + if (str == null || z2) { + j[] jVarArr = new j[length]; + for (int i4 = 0; i4 < length; i4++) { + j jVar4 = hVarArr[i4]._actualType; + if (jVar4 == null) { + jVar4 = k(); + } + jVarArr[i4] = jVar4; + } + jVar2 = c(null, cls, m.d(cls, jVarArr)); + } else { + StringBuilder R = a.R("Failed to specialize base type "); + R.append(jVar.e()); + R.append(" as "); + R.append(cls.getName()); + R.append(", problem: "); + R.append(str); + throw new IllegalArgumentException(R.toString()); + } + } else { + throw new IllegalArgumentException(String.format("Internal error: unable to locate supertype (%s) from resolved subtype %s", jVar._class.getName(), cls.getName())); + } + } + } + } else { + throw new IllegalArgumentException(String.format("Class %s not subtype of %s", d.u(cls), d.n(jVar))); + } + return jVar2.F(jVar); + } + + public j[] i(j jVar, Class cls) { + j i = jVar.i(cls); + return i == null ? j : i.j().k(); + } + + @Deprecated + public j j(Class cls) { + j a; + m mVar = l; + return (!mVar.i() || (a = a(cls)) == null) ? d(cls, mVar, null, null) : a; + } +} diff --git a/app/src/main/java/b/g/a/c/h0/o.java b/app/src/main/java/b/g/a/c/h0/o.java new file mode 100644 index 0000000000..4d3ef9e2fd --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/o.java @@ -0,0 +1,4 @@ +package b.g.a.c.h0; +/* compiled from: TypeModifier */ +public abstract class o { +} diff --git a/app/src/main/java/b/g/a/c/h0/p.java b/app/src/main/java/b/g/a/c/h0/p.java new file mode 100644 index 0000000000..7cd2bba999 --- /dev/null +++ b/app/src/main/java/b/g/a/c/h0/p.java @@ -0,0 +1,12 @@ +package b.g.a.c.h0; + +import java.io.Serializable; +/* compiled from: TypeParser */ +public class p implements Serializable { + private static final long serialVersionUID = 1; + public final n _factory; + + public p(n nVar) { + this._factory = nVar; + } +} diff --git a/app/src/main/java/b/g/a/c/i.java b/app/src/main/java/b/g/a/c/i.java new file mode 100644 index 0000000000..4cdb18420a --- /dev/null +++ b/app/src/main/java/b/g/a/c/i.java @@ -0,0 +1,4 @@ +package b.g.a.c; +/* compiled from: InjectableValues */ +public abstract class i { +} diff --git a/app/src/main/java/b/g/a/c/i0/a.java b/app/src/main/java/b/g/a/c/i0/a.java new file mode 100644 index 0000000000..44d9f516d3 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/a.java @@ -0,0 +1,9 @@ +package b.g.a.c.i0; + +import java.lang.annotation.Annotation; +/* compiled from: Annotations */ +public interface a { + A a(Class cls); + + int size(); +} diff --git a/app/src/main/java/b/g/a/c/i0/b.java b/app/src/main/java/b/g/a/c/i0/b.java new file mode 100644 index 0000000000..5e5ef0245c --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/b.java @@ -0,0 +1,39 @@ +package b.g.a.c.i0; + +import java.util.Iterator; +import java.util.NoSuchElementException; +/* compiled from: ArrayIterator */ +public class b implements Iterator, Iterable { + public final T[] j; + public int k = 0; + + public b(T[] tArr) { + this.j = tArr; + } + + @Override // java.util.Iterator + public boolean hasNext() { + return this.k < this.j.length; + } + + @Override // java.lang.Iterable + public Iterator iterator() { + return this; + } + + @Override // java.util.Iterator + public T next() { + int i = this.k; + T[] tArr = this.j; + if (i < tArr.length) { + this.k = i + 1; + return tArr[i]; + } + throw new NoSuchElementException(); + } + + @Override // java.util.Iterator + public void remove() { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/g/a/c/i0/c.java b/app/src/main/java/b/g/a/c/i0/c.java new file mode 100644 index 0000000000..bfe1f6cd44 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/c.java @@ -0,0 +1,36 @@ +package b.g.a.c.i0; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.ByteBuffer; +/* compiled from: ByteBufferBackedInputStream */ +public class c extends InputStream { + public final ByteBuffer j; + + public c(ByteBuffer byteBuffer) { + this.j = byteBuffer; + } + + @Override // java.io.InputStream + public int available() { + return this.j.remaining(); + } + + @Override // java.io.InputStream + public int read() throws IOException { + if (this.j.hasRemaining()) { + return this.j.get() & 255; + } + return -1; + } + + @Override // java.io.InputStream + public int read(byte[] bArr, int i, int i2) throws IOException { + if (!this.j.hasRemaining()) { + return -1; + } + int min = Math.min(i2, this.j.remaining()); + this.j.get(bArr, i, min); + return min; + } +} diff --git a/app/src/main/java/b/g/a/c/i0/d.java b/app/src/main/java/b/g/a/c/i0/d.java new file mode 100644 index 0000000000..61e67b6429 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/d.java @@ -0,0 +1,417 @@ +package b.g.a.c.i0; + +import b.g.a.b.d; +import b.g.a.c.j; +import b.g.a.c.y.h; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.Closeable; +import java.io.IOException; +import java.lang.annotation.Annotation; +import java.lang.reflect.AccessibleObject; +import java.lang.reflect.Constructor; +import java.lang.reflect.Field; +import java.lang.reflect.Member; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.EnumMap; +import java.util.EnumSet; +import java.util.Iterator; +import java.util.List; +/* compiled from: ClassUtil */ +public final class d { + public static final Annotation[] a = new Annotation[0]; + + /* renamed from: b reason: collision with root package name */ + public static final a[] f712b = new a[0]; + public static final Iterator c = Collections.emptyIterator(); + + /* compiled from: ClassUtil */ + public static final class a { + public final Constructor a; + + /* renamed from: b reason: collision with root package name */ + public transient Annotation[] f713b; + public transient Annotation[][] c; + public int d = -1; + + public a(Constructor constructor) { + this.a = constructor; + } + + public int a() { + int i = this.d; + if (i >= 0) { + return i; + } + int length = this.a.getParameterTypes().length; + this.d = length; + return length; + } + } + + /* compiled from: ClassUtil */ + public static class b { + public static final b a = new b(); + + /* renamed from: b reason: collision with root package name */ + public final Field f714b = a(EnumSet.class, "elementType", Class.class); + public final Field c = a(EnumMap.class, "elementType", Class.class); + + public static Field a(Class cls, String str, Class cls2) { + Field field; + Field[] declaredFields = cls.getDeclaredFields(); + int length = declaredFields.length; + int i = 0; + while (true) { + if (i >= length) { + field = null; + break; + } + field = declaredFields[i]; + if (str.equals(field.getName()) && field.getType() == cls2) { + break; + } + i++; + } + if (field == null) { + for (Field field2 : declaredFields) { + if (field2.getType() == cls2) { + if (field != null) { + return null; + } + field = field2; + } + } + } + if (field != null) { + try { + field.setAccessible(true); + } catch (Throwable unused) { + } + } + return field; + } + } + + public static void a(Class cls, Class cls2, Collection> collection, boolean z2) { + if (!(cls == cls2 || cls == null || cls == Object.class)) { + if (z2) { + if (!collection.contains(cls)) { + collection.add(cls); + } else { + return; + } + } + for (Class cls3 : cls.getInterfaces()) { + a(cls3, cls2, collection, true); + } + a(cls.getSuperclass(), cls2, collection, true); + } + } + + public static Method[] b(Class cls, Throwable th) throws IllegalArgumentException { + throw new IllegalArgumentException(String.format("Failed on call to `getDeclaredMethods()` on class `%s`, problem: (%s) %s", cls.getName(), th.getClass().getName(), th.getMessage()), th); + } + + public static String c(String str) { + if (str == null) { + return "[null]"; + } + StringBuilder sb = new StringBuilder(str.length() + 2); + sb.append('\''); + sb.append(str); + sb.append('\''); + return sb.toString(); + } + + public static void d(Member member, boolean z2) { + AccessibleObject accessibleObject = (AccessibleObject) member; + if (!z2) { + try { + if (Modifier.isPublic(member.getModifiers()) && Modifier.isPublic(member.getDeclaringClass().getModifiers())) { + return; + } + } catch (SecurityException e) { + if (!accessibleObject.isAccessible()) { + Class declaringClass = member.getDeclaringClass(); + throw new IllegalArgumentException("Cannot access " + member + " (from class " + declaringClass.getName() + "; failed to set access: " + e.getMessage()); + } + return; + } + } + accessibleObject.setAccessible(true); + } + + public static String e(Object obj) { + if (obj == null) { + return "[null]"; + } + return u(obj instanceof Class ? (Class) obj : obj.getClass()); + } + + public static void f(b.g.a.b.d dVar, Closeable closeable, Exception exc) throws IOException { + if (dVar != null) { + dVar.b(d.a.AUTO_CLOSE_JSON_CONTENT); + try { + dVar.close(); + } catch (Exception e) { + exc.addSuppressed(e); + } + } + if (closeable != null) { + try { + closeable.close(); + } catch (Exception e2) { + exc.addSuppressed(e2); + } + } + if (!(exc instanceof IOException)) { + x(exc); + throw new RuntimeException(exc); + } + throw ((IOException) exc); + } + + public static T g(Class cls, boolean z2) throws IllegalArgumentException { + Constructor constructor; + try { + constructor = cls.getDeclaredConstructor(new Class[0]); + if (z2) { + d(constructor, z2); + } else if (!Modifier.isPublic(constructor.getModifiers())) { + throw new IllegalArgumentException("Default constructor for " + cls.getName() + " is not accessible (non-public?): not allowed to try modify access via Reflection: cannot instantiate type"); + } + } catch (NoSuchMethodException unused) { + constructor = null; + } catch (Exception e) { + StringBuilder R = b.d.b.a.a.R("Failed to find default constructor of class "); + R.append(cls.getName()); + R.append(", problem: "); + R.append(e.getMessage()); + y(e, R.toString()); + throw null; + } + if (constructor != null) { + try { + return constructor.newInstance(new Object[0]); + } catch (Exception e2) { + StringBuilder R2 = b.d.b.a.a.R("Failed to instantiate class "); + R2.append(cls.getName()); + R2.append(", problem: "); + R2.append(e2.getMessage()); + y(e2, R2.toString()); + throw null; + } + } else { + throw new IllegalArgumentException(b.d.b.a.a.n(cls, b.d.b.a.a.R("Class "), " has no default (no arg) constructor")); + } + } + + public static String h(Throwable th) { + return th instanceof JsonProcessingException ? ((JsonProcessingException) th).b() : th.getMessage(); + } + + public static Annotation[] i(Class cls) { + return t(cls) ? a : cls.getDeclaredAnnotations(); + } + + public static List> j(Class cls, Class cls2, boolean z2) { + ArrayList arrayList = new ArrayList(8); + if (cls != null && cls != cls2) { + if (z2) { + arrayList.add(cls); + } + while (true) { + cls = cls.getSuperclass(); + if (cls == null || cls == cls2) { + break; + } + arrayList.add(cls); + } + } + return arrayList; + } + + public static Method[] k(Class cls) { + try { + return cls.getDeclaredMethods(); + } catch (NoClassDefFoundError e) { + ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); + if (contextClassLoader != null) { + try { + return contextClassLoader.loadClass(cls.getName()).getDeclaredMethods(); + } catch (ClassNotFoundException e2) { + e.addSuppressed(e2); + b(cls, e); + throw null; + } + } else { + b(cls, e); + throw null; + } + } catch (Throwable th) { + b(cls, th); + throw null; + } + } + + public static a[] l(Class cls) { + if (cls.isInterface() || t(cls)) { + return f712b; + } + Constructor[] declaredConstructors = cls.getDeclaredConstructors(); + int length = declaredConstructors.length; + a[] aVarArr = new a[length]; + for (int i = 0; i < length; i++) { + aVarArr[i] = new a(declaredConstructors[i]); + } + return aVarArr; + } + + public static Class m(Class cls) { + if (Modifier.isStatic(cls.getModifiers())) { + return null; + } + try { + if (!t(cls) && cls.getEnclosingMethod() != null) { + return null; + } + if (t(cls)) { + return null; + } + return cls.getEnclosingClass(); + } catch (SecurityException unused) { + return null; + } + } + + public static String n(j jVar) { + if (jVar == null) { + return "[null]"; + } + StringBuilder sb = new StringBuilder(80); + sb.append('`'); + sb.append(jVar.e()); + sb.append('`'); + return sb.toString(); + } + + public static boolean o(Object obj, Class cls) { + return obj != null && obj.getClass() == cls; + } + + public static boolean p(Class cls) { + return cls == Void.class || cls == Void.TYPE || cls == h.class; + } + + public static boolean q(Class cls) { + return Enum.class.isAssignableFrom(cls); + } + + public static boolean r(Class cls) { + String name = cls.getName(); + return name.startsWith("java.") || name.startsWith("javax."); + } + + public static boolean s(Object obj) { + if (obj == null) { + return true; + } + return obj.getClass().getAnnotation(b.g.a.c.y.a.class) != null; + } + + public static boolean t(Class cls) { + return cls == Object.class || cls.isPrimitive(); + } + + public static String u(Class cls) { + if (cls == null) { + return "[null]"; + } + int i = 0; + while (cls.isArray()) { + i++; + cls = cls.getComponentType(); + } + String simpleName = cls.isPrimitive() ? cls.getSimpleName() : cls.getName(); + if (i > 0) { + StringBuilder sb = new StringBuilder(simpleName); + do { + sb.append("[]"); + i--; + } while (i > 0); + simpleName = sb.toString(); + } + if (simpleName == null) { + return "[null]"; + } + StringBuilder sb2 = new StringBuilder(simpleName.length() + 2); + sb2.append('`'); + sb2.append(simpleName); + sb2.append('`'); + return sb2.toString(); + } + + public static Class v(Class cls) { + if (cls.isPrimitive()) { + return cls; + } + if (cls == Integer.class) { + return Integer.TYPE; + } + if (cls == Long.class) { + return Long.TYPE; + } + if (cls == Boolean.class) { + return Boolean.TYPE; + } + if (cls == Double.class) { + return Double.TYPE; + } + if (cls == Float.class) { + return Float.TYPE; + } + if (cls == Byte.class) { + return Byte.TYPE; + } + if (cls == Short.class) { + return Short.TYPE; + } + if (cls == Character.class) { + return Character.TYPE; + } + return null; + } + + public static Throwable w(Throwable th) { + if (!(th instanceof Error)) { + return th; + } + throw ((Error) th); + } + + public static Throwable x(Throwable th) { + if (!(th instanceof RuntimeException)) { + return th; + } + throw ((RuntimeException) th); + } + + public static void y(Throwable th, String str) { + while (th.getCause() != null) { + th = th.getCause(); + } + x(th); + w(th); + throw new IllegalArgumentException(str, th); + } + + public static void z(Class cls, Object obj, String str) { + if (obj.getClass() != cls) { + throw new IllegalStateException(String.format("Sub-class %s (of class %s) must override method '%s'", obj.getClass().getName(), cls.getName(), str)); + } + } +} diff --git a/app/src/main/java/b/g/a/c/i0/e.java b/app/src/main/java/b/g/a/c/i0/e.java new file mode 100644 index 0000000000..c031420fb7 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/e.java @@ -0,0 +1,15 @@ +package b.g.a.c.i0; + +import b.g.a.c.h0.n; +import b.g.a.c.j; +/* compiled from: Converter */ +public interface e { + + /* compiled from: Converter */ + public static abstract class a implements e { + } + + j a(n nVar); + + OUT convert(IN in); +} diff --git a/app/src/main/java/b/g/a/c/i0/f.java b/app/src/main/java/b/g/a/c/i0/f.java new file mode 100644 index 0000000000..0d4937422a --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/f.java @@ -0,0 +1,52 @@ +package b.g.a.c.i0; + +import b.d.b.a.a; +import b.g.a.b.k; +import b.g.a.b.p.j; +import b.g.a.c.z.l; +import java.io.Serializable; +import java.lang.annotation.Annotation; +/* compiled from: EnumValues */ +public final class f implements Serializable { + private static final long serialVersionUID = 1; + private final Class> _enumClass; + private final k[] _textual; + private final Enum[] _values; + + public f(Class> cls, k[] kVarArr) { + this._enumClass = cls; + this._values = cls.getEnumConstants(); + this._textual = kVarArr; + } + + public static f a(l lVar, Class> cls) { + Annotation[] annotationArr = d.a; + Class> superclass = cls.getSuperclass() != Enum.class ? cls.getSuperclass() : cls; + Enum[] enumArr = (Enum[]) superclass.getEnumConstants(); + if (enumArr != null) { + String[] f = lVar.e().f(superclass, enumArr, new String[enumArr.length]); + k[] kVarArr = new k[enumArr.length]; + int length = enumArr.length; + for (int i = 0; i < length; i++) { + Enum r4 = enumArr[i]; + String str = f[i]; + if (str == null) { + str = r4.name(); + } + kVarArr[r4.ordinal()] = new j(str); + } + return new f(cls, kVarArr); + } + StringBuilder R = a.R("Cannot determine enum constants for Class "); + R.append(cls.getName()); + throw new IllegalArgumentException(R.toString()); + } + + public Class> b() { + return this._enumClass; + } + + public k c(Enum r2) { + return this._textual[r2.ordinal()]; + } +} diff --git a/app/src/main/java/b/g/a/c/i0/g.java b/app/src/main/java/b/g/a/c/i0/g.java new file mode 100644 index 0000000000..4f854d5651 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/g.java @@ -0,0 +1,21 @@ +package b.g.a.c.i0; + +import java.io.Serializable; +import java.util.Collections; +import java.util.Set; +/* compiled from: IgnorePropertiesUtil */ +public final class g implements Serializable { + private static final long serialVersionUID = 1; + private final Set _toIgnore; + private final Set _toInclude; + + public g(Set set, Set set2) { + this._toIgnore = set == null ? Collections.emptySet() : set; + this._toInclude = set2; + } + + public boolean a(Object obj) { + Set set = this._toInclude; + return (set != null && !set.contains(obj)) || this._toIgnore.contains(obj); + } +} diff --git a/app/src/main/java/b/g/a/c/i0/h.java b/app/src/main/java/b/g/a/c/i0/h.java new file mode 100644 index 0000000000..7d81037536 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/h.java @@ -0,0 +1,49 @@ +package b.g.a.c.i0; + +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.io.Serializable; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: LRUMap */ +public class h implements j, Serializable { + private static final long serialVersionUID = 1; + public final transient int j; + public final transient ConcurrentHashMap k; + public transient int l; + + public h(int i, int i2) { + this.k = new ConcurrentHashMap<>(i, 0.8f, 4); + this.j = i2; + } + + private void readObject(ObjectInputStream objectInputStream) throws IOException { + this.l = objectInputStream.readInt(); + } + + private void writeObject(ObjectOutputStream objectOutputStream) throws IOException { + objectOutputStream.writeInt(this.l); + } + + @Override // b.g.a.c.i0.j + public V get(Object obj) { + return this.k.get(obj); + } + + @Override // b.g.a.c.i0.j + public V putIfAbsent(K k, V v) { + if (this.k.size() >= this.j) { + synchronized (this) { + if (this.k.size() >= this.j) { + this.k.clear(); + } + } + } + return this.k.putIfAbsent(k, v); + } + + public Object readResolve() { + int i = this.l; + return new h(i, i); + } +} diff --git a/app/src/main/java/b/g/a/c/i0/i.java b/app/src/main/java/b/g/a/c/i0/i.java new file mode 100644 index 0000000000..72586bdbed --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/i.java @@ -0,0 +1,4 @@ +package b.g.a.c.i0; +/* compiled from: LinkedNode */ +public final class i { +} diff --git a/app/src/main/java/b/g/a/c/i0/j.java b/app/src/main/java/b/g/a/c/i0/j.java new file mode 100644 index 0000000000..46e3b04315 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/j.java @@ -0,0 +1,7 @@ +package b.g.a.c.i0; +/* compiled from: LookupCache */ +public interface j { + V get(Object obj); + + V putIfAbsent(K k, V v); +} diff --git a/app/src/main/java/b/g/a/c/i0/k.java b/app/src/main/java/b/g/a/c/i0/k.java new file mode 100644 index 0000000000..50e2839eee --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/k.java @@ -0,0 +1,25 @@ +package b.g.a.c.i0; + +import b.d.b.a.a; +/* compiled from: NameTransformer */ +public final class k extends n { + public final /* synthetic */ String k; + public final /* synthetic */ String l; + + public k(String str, String str2) { + this.k = str; + this.l = str2; + } + + @Override // b.g.a.c.i0.n + public String a(String str) { + return this.k + str + this.l; + } + + public String toString() { + StringBuilder R = a.R("[PreAndSuffixTransformer('"); + R.append(this.k); + R.append("','"); + return a.H(R, this.l, "')]"); + } +} diff --git a/app/src/main/java/b/g/a/c/i0/l.java b/app/src/main/java/b/g/a/c/i0/l.java new file mode 100644 index 0000000000..6a0796c595 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/l.java @@ -0,0 +1,20 @@ +package b.g.a.c.i0; + +import b.d.b.a.a; +/* compiled from: NameTransformer */ +public final class l extends n { + public final /* synthetic */ String k; + + public l(String str) { + this.k = str; + } + + @Override // b.g.a.c.i0.n + public String a(String str) { + return a.H(new StringBuilder(), this.k, str); + } + + public String toString() { + return a.H(a.R("[PrefixTransformer('"), this.k, "')]"); + } +} diff --git a/app/src/main/java/b/g/a/c/i0/m.java b/app/src/main/java/b/g/a/c/i0/m.java new file mode 100644 index 0000000000..8aa37915c1 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/m.java @@ -0,0 +1,22 @@ +package b.g.a.c.i0; + +import b.d.b.a.a; +/* compiled from: NameTransformer */ +public final class m extends n { + public final /* synthetic */ String k; + + public m(String str) { + this.k = str; + } + + @Override // b.g.a.c.i0.n + public String a(String str) { + StringBuilder R = a.R(str); + R.append(this.k); + return R.toString(); + } + + public String toString() { + return a.H(a.R("[SuffixTransformer('"), this.k, "')]"); + } +} diff --git a/app/src/main/java/b/g/a/c/i0/n.java b/app/src/main/java/b/g/a/c/i0/n.java new file mode 100644 index 0000000000..c26dbf17ee --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/n.java @@ -0,0 +1,46 @@ +package b.g.a.c.i0; + +import java.io.Serializable; +/* compiled from: NameTransformer */ +public abstract class n { + public static final n j = new b(); + + /* compiled from: NameTransformer */ + public static class a extends n implements Serializable { + private static final long serialVersionUID = 1; + public final n _t1; + public final n _t2; + + public a(n nVar, n nVar2) { + this._t1 = nVar; + this._t2 = nVar2; + } + + @Override // b.g.a.c.i0.n + public String a(String str) { + return this._t1.a(this._t2.a(str)); + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("[ChainedTransformer("); + R.append(this._t1); + R.append(", "); + R.append(this._t2); + R.append(")]"); + return R.toString(); + } + } + + /* compiled from: NameTransformer */ + public static final class b extends n implements Serializable { + private static final long serialVersionUID = 1; + + @Override // b.g.a.c.i0.n + public String a(String str) { + return str; + } + } + + public abstract String a(String str); +} diff --git a/app/src/main/java/b/g/a/c/i0/o.java b/app/src/main/java/b/g/a/c/i0/o.java new file mode 100644 index 0000000000..56273e3968 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/o.java @@ -0,0 +1,6 @@ +package b.g.a.c.i0; + +import b.g.a.c.m; +/* compiled from: RawValue */ +public class o implements m { +} diff --git a/app/src/main/java/b/g/a/c/i0/p.java b/app/src/main/java/b/g/a/c/i0/p.java new file mode 100644 index 0000000000..c3153d458b --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/p.java @@ -0,0 +1,14 @@ +package b.g.a.c.i0; + +import b.g.a.c.h0.b; +import b.g.a.c.t; +import java.io.Serializable; +/* compiled from: RootNameLookup */ +public class p implements Serializable { + private static final long serialVersionUID = 1; + public transient h j = new h<>(20, 200); + + public Object readResolve() { + return new p(); + } +} diff --git a/app/src/main/java/b/g/a/c/i0/q.java b/app/src/main/java/b/g/a/c/i0/q.java new file mode 100644 index 0000000000..e589d35e93 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/q.java @@ -0,0 +1,114 @@ +package b.g.a.c.i0; + +import b.g.a.a.p; +import b.g.a.c.b; +import b.g.a.c.c0.g; +import b.g.a.c.c0.i; +import b.g.a.c.c0.j; +import b.g.a.c.c0.m; +import b.g.a.c.c0.s; +import b.g.a.c.t; +import b.g.a.c.z.l; +import java.util.Objects; +/* compiled from: SimpleBeanPropertyDefinition */ +public class q extends s { + public final b k; + public final i l; + public final b.g.a.c.s m; + public final t n; + public final p.b o; + + public q(b bVar, i iVar, t tVar, b.g.a.c.s sVar, p.b bVar2) { + this.k = bVar; + this.l = iVar; + this.n = tVar; + this.m = sVar == null ? b.g.a.c.s.k : sVar; + this.o = bVar2; + } + + public static q w(l lVar, i iVar, t tVar, b.g.a.c.s sVar, p.a aVar) { + p.a aVar2; + return new q(lVar.e(), iVar, tVar, sVar, (aVar == null || aVar == (aVar2 = p.a.USE_DEFAULTS)) ? s.j : aVar != aVar2 ? new p.b(aVar, null, null, null) : p.b.j); + } + + @Override // b.g.a.c.c0.s + public p.b g() { + return this.o; + } + + @Override // b.g.a.c.c0.s + public m k() { + i iVar = this.l; + if (iVar instanceof m) { + return (m) iVar; + } + return null; + } + + @Override // b.g.a.c.c0.s + public g l() { + i iVar = this.l; + if (iVar instanceof g) { + return (g) iVar; + } + return null; + } + + @Override // b.g.a.c.c0.s + public t m() { + return this.n; + } + + @Override // b.g.a.c.c0.s + public j n() { + i iVar = this.l; + if (!(iVar instanceof j) || ((j) iVar).o() != 0) { + return null; + } + return (j) this.l; + } + + @Override // b.g.a.c.c0.s + public b.g.a.c.s o() { + return this.m; + } + + @Override // b.g.a.c.c0.s + public String p() { + return this.n._simpleName; + } + + @Override // b.g.a.c.c0.s + public i q() { + return this.l; + } + + @Override // b.g.a.c.c0.s + public Class r() { + i iVar = this.l; + return iVar == null ? Object.class : iVar.d(); + } + + @Override // b.g.a.c.c0.s + public j s() { + i iVar = this.l; + if (!(iVar instanceof j) || ((j) iVar).o() != 1) { + return null; + } + return (j) this.l; + } + + @Override // b.g.a.c.c0.s + public t t() { + b bVar = this.k; + if (!(bVar == null || this.l == null)) { + Objects.requireNonNull(bVar); + } + return null; + } + + @Override // b.g.a.c.c0.s + public boolean u() { + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/i0/r.java b/app/src/main/java/b/g/a/c/i0/r.java new file mode 100644 index 0000000000..ff60bfa366 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/r.java @@ -0,0 +1,418 @@ +package b.g.a.c.i0; + +import androidx.core.app.NotificationManagerCompat; +import b.g.a.b.p.f; +import com.discord.utilities.time.TimeUtils; +import com.discord.widgets.chat.input.MentionUtilsKt; +import java.text.DateFormat; +import java.text.FieldPosition; +import java.text.ParseException; +import java.text.ParsePosition; +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.Date; +import java.util.GregorianCalendar; +import java.util.Locale; +import java.util.TimeZone; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: StdDateFormat */ +public class r extends DateFormat { + public static final Pattern j = Pattern.compile("\\d\\d\\d\\d[-]\\d\\d[-]\\d\\d"); + public static final Pattern k = Pattern.compile("\\d\\d\\d\\d[-]\\d\\d[-]\\d\\d[T]\\d\\d[:]\\d\\d(?:[:]\\d\\d)?(\\.\\d+)?(Z|[+-]\\d\\d(?:[:]?\\d\\d)?)?"); + public static final String[] l = {"yyyy-MM-dd'T'HH:mm:ss.SSSX", "yyyy-MM-dd'T'HH:mm:ss.SSS", "EEE, dd MMM yyyy HH:mm:ss zzz", TimeUtils.UTCFormat.SHORT}; + public static final TimeZone m; + public static final Locale n; + public static final DateFormat o; + public static final r p = new r(); + public static final Calendar q; + public Boolean _lenient; + public final Locale _locale; + private boolean _tzSerializedWithColon; + public transient TimeZone r; + + /* renamed from: s reason: collision with root package name */ + public transient Calendar f715s; + public transient DateFormat t; + + static { + try { + TimeZone timeZone = TimeZone.getTimeZone("UTC"); + m = timeZone; + Locale locale = Locale.US; + n = locale; + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", locale); + o = simpleDateFormat; + simpleDateFormat.setTimeZone(timeZone); + q = new GregorianCalendar(timeZone, locale); + } catch (Throwable th) { + throw new RuntimeException(th); + } + } + + public r() { + this._tzSerializedWithColon = true; + this._locale = n; + } + + public r(TimeZone timeZone, Locale locale, Boolean bool, boolean z2) { + this._tzSerializedWithColon = true; + this.r = timeZone; + this._locale = locale; + this._lenient = bool; + this._tzSerializedWithColon = z2; + } + + public static int f(String str, int i) { + return (str.charAt(i + 1) - '0') + ((str.charAt(i) - '0') * 10); + } + + public static int g(String str, int i) { + int charAt = ((str.charAt(i + 1) - '0') * 100) + ((str.charAt(i) - '0') * 1000); + return (str.charAt(i + 3) - '0') + ((str.charAt(i + 2) - '0') * 10) + charAt; + } + + public static void j(StringBuffer stringBuffer, int i) { + int i2 = i / 10; + if (i2 == 0) { + stringBuffer.append('0'); + } else { + stringBuffer.append((char) (i2 + 48)); + i -= i2 * 10; + } + stringBuffer.append((char) (i + 48)); + } + + public static void k(StringBuffer stringBuffer, int i) { + int i2 = i / 100; + if (i2 == 0) { + stringBuffer.append('0'); + stringBuffer.append('0'); + } else { + if (i2 > 99) { + stringBuffer.append(i2); + } else { + j(stringBuffer, i2); + } + i -= i2 * 100; + } + j(stringBuffer, i); + } + + public Calendar b(TimeZone timeZone) { + Calendar calendar = this.f715s; + if (calendar == null) { + calendar = (Calendar) q.clone(); + this.f715s = calendar; + } + if (!calendar.getTimeZone().equals(timeZone)) { + calendar.setTimeZone(timeZone); + } + calendar.setLenient(isLenient()); + return calendar; + } + + @Override // java.text.DateFormat, java.text.Format, java.lang.Object + public Object clone() { + return new r(this.r, this._locale, this._lenient, this._tzSerializedWithColon); + } + + @Override // java.text.DateFormat, java.lang.Object + public boolean equals(Object obj) { + return obj == this; + } + + @Override // java.text.DateFormat + public StringBuffer format(Date date, StringBuffer stringBuffer, FieldPosition fieldPosition) { + TimeZone timeZone = this.r; + if (timeZone == null) { + timeZone = m; + } + Calendar b2 = b(timeZone); + b2.setTime(date); + int i = b2.get(1); + char c = '+'; + if (b2.get(0) != 0) { + if (i > 9999) { + stringBuffer.append('+'); + } + k(stringBuffer, i); + } else if (i == 1) { + stringBuffer.append("+0000"); + } else { + stringBuffer.append('-'); + k(stringBuffer, i - 1); + } + stringBuffer.append('-'); + j(stringBuffer, b2.get(2) + 1); + stringBuffer.append('-'); + j(stringBuffer, b2.get(5)); + stringBuffer.append('T'); + j(stringBuffer, b2.get(11)); + stringBuffer.append(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR); + j(stringBuffer, b2.get(12)); + stringBuffer.append(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR); + j(stringBuffer, b2.get(13)); + stringBuffer.append('.'); + int i2 = b2.get(14); + int i3 = i2 / 100; + if (i3 == 0) { + stringBuffer.append('0'); + } else { + stringBuffer.append((char) (i3 + 48)); + i2 -= i3 * 100; + } + j(stringBuffer, i2); + int offset = timeZone.getOffset(b2.getTimeInMillis()); + if (offset != 0) { + int i4 = offset / 60000; + int abs = Math.abs(i4 / 60); + int abs2 = Math.abs(i4 % 60); + if (offset < 0) { + c = '-'; + } + stringBuffer.append(c); + j(stringBuffer, abs); + if (this._tzSerializedWithColon) { + stringBuffer.append(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR); + } + j(stringBuffer, abs2); + } else if (this._tzSerializedWithColon) { + stringBuffer.append("+00:00"); + } else { + stringBuffer.append("+0000"); + } + return stringBuffer; + } + + @Override // java.text.DateFormat + public TimeZone getTimeZone() { + return this.r; + } + + public Date h(String str) throws IllegalArgumentException, ParseException { + char c; + String str2; + int length = str.length(); + TimeZone timeZone = m; + if (!(this.r == null || 'Z' == str.charAt(length - 1))) { + timeZone = this.r; + } + Calendar b2 = b(timeZone); + b2.clear(); + int i = 0; + if (length > 10) { + Matcher matcher = k.matcher(str); + if (matcher.matches()) { + int start = matcher.start(2); + int end = matcher.end(2); + int i2 = end - start; + if (i2 > 1) { + int f = f(str, start + 1) * 3600; + if (i2 >= 5) { + f += f(str, end - 2) * 60; + } + b2.set(15, str.charAt(start) == '-' ? f * NotificationManagerCompat.IMPORTANCE_UNSPECIFIED : f * 1000); + b2.set(16, 0); + } + b2.set(g(str, 0), f(str, 5) - 1, f(str, 8), f(str, 11), f(str, 14), (length <= 16 || str.charAt(16) != ':') ? 0 : f(str, 17)); + int start2 = matcher.start(1) + 1; + int end2 = matcher.end(1); + if (start2 >= end2) { + b2.set(14, 0); + } else { + int i3 = end2 - start2; + if (i3 != 0) { + if (i3 != 1) { + if (i3 != 2) { + if (i3 == 3 || i3 <= 9) { + i = 0 + (str.charAt(start2 + 2) - '0'); + } else { + throw new ParseException(String.format("Cannot parse date \"%s\": invalid fractional seconds '%s'; can use at most 9 digits", str, matcher.group(1).substring(1)), start2); + } + } + i += (str.charAt(start2 + 1) - '0') * 10; + } + i += (str.charAt(start2) - '0') * 100; + } + b2.set(14, i); + } + return b2.getTime(); + } + c = 1; + str2 = "yyyy-MM-dd'T'HH:mm:ss.SSSX"; + } else if (j.matcher(str).matches()) { + b2.set(g(str, 0), f(str, 5) - 1, f(str, 8), 0, 0, 0); + b2.set(14, 0); + return b2.getTime(); + } else { + str2 = TimeUtils.UTCFormat.SHORT; + c = 1; + } + Object[] objArr = new Object[3]; + objArr[0] = str; + objArr[c] = str2; + objArr[2] = this._lenient; + throw new ParseException(String.format("Cannot parse date \"%s\": while it seems to fit format '%s', parsing fails (leniency? %s)", objArr), 0); + } + + @Override // java.text.DateFormat, java.lang.Object + public int hashCode() { + return System.identityHashCode(this); + } + + /* JADX WARNING: Code restructure failed: missing block: B:38:0x0096, code lost: + if (r5 < 0) goto L_0x0098; + */ + /* JADX WARNING: Code restructure failed: missing block: B:42:0x009f, code lost: + if (r0 == false) goto L_0x00bf; + */ + public Date i(String str, ParsePosition parsePosition) throws ParseException { + DateFormat dateFormat; + boolean z2; + if (str.length() >= 7 && Character.isDigit(str.charAt(0)) && Character.isDigit(str.charAt(3)) && str.charAt(4) == '-' && Character.isDigit(str.charAt(5))) { + try { + return h(str); + } catch (IllegalArgumentException e) { + throw new ParseException(String.format("Cannot parse date \"%s\", problem: %s", str, e.getMessage()), parsePosition.getErrorIndex()); + } + } else { + int length = str.length(); + while (true) { + length--; + if (length < 0) { + break; + } + char charAt = str.charAt(length); + if (charAt < '0' || charAt > '9') { + if (length > 0 || charAt != '-') { + break; + } + } + } + if (length < 0) { + if (str.charAt(0) != '-') { + String str2 = f.f654b; + int length2 = str2.length(); + int length3 = str.length(); + if (length3 >= length2) { + if (length3 <= length2) { + int i = 0; + while (true) { + if (i >= length2) { + break; + } + int charAt2 = str.charAt(i) - str2.charAt(i); + if (charAt2 == 0) { + i++; + } + } + } + z2 = false; + } + z2 = true; + } + try { + return new Date(f.a(str)); + } catch (NumberFormatException unused) { + throw new ParseException(String.format("Timestamp value %s out of 64-bit value range", str), parsePosition.getErrorIndex()); + } + } + if (this.t == null) { + DateFormat dateFormat2 = o; + TimeZone timeZone = this.r; + Locale locale = this._locale; + Boolean bool = this._lenient; + if (!locale.equals(n)) { + dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", locale); + if (timeZone == null) { + timeZone = m; + } + dateFormat.setTimeZone(timeZone); + } else { + dateFormat = (DateFormat) dateFormat2.clone(); + if (timeZone != null) { + dateFormat.setTimeZone(timeZone); + } + } + if (bool != null) { + dateFormat.setLenient(bool.booleanValue()); + } + this.t = dateFormat; + } + return this.t.parse(str, parsePosition); + } + } + + @Override // java.text.DateFormat + public boolean isLenient() { + Boolean bool = this._lenient; + return bool == null || bool.booleanValue(); + } + + public r l(Locale locale) { + return locale.equals(this._locale) ? this : new r(this.r, locale, this._lenient, this._tzSerializedWithColon); + } + + public r m(TimeZone timeZone) { + if (timeZone == null) { + timeZone = m; + } + TimeZone timeZone2 = this.r; + return (timeZone == timeZone2 || timeZone.equals(timeZone2)) ? this : new r(timeZone, this._locale, this._lenient, this._tzSerializedWithColon); + } + + @Override // java.text.DateFormat + public Date parse(String str) throws ParseException { + String trim = str.trim(); + ParsePosition parsePosition = new ParsePosition(0); + Date i = i(trim, parsePosition); + if (i != null) { + return i; + } + StringBuilder sb = new StringBuilder(); + String[] strArr = l; + for (String str2 : strArr) { + if (sb.length() > 0) { + sb.append("\", \""); + } else { + sb.append('\"'); + } + sb.append(str2); + } + sb.append('\"'); + throw new ParseException(String.format("Cannot parse date \"%s\": not compatible with any of standard forms (%s)", trim, sb.toString()), parsePosition.getErrorIndex()); + } + + @Override // java.text.DateFormat + public Date parse(String str, ParsePosition parsePosition) { + try { + return i(str, parsePosition); + } catch (ParseException unused) { + return null; + } + } + + @Override // java.text.DateFormat + public void setLenient(boolean z2) { + Boolean valueOf = Boolean.valueOf(z2); + Boolean bool = this._lenient; + if (!(valueOf == bool || (valueOf != null && valueOf.equals(bool)))) { + this._lenient = valueOf; + this.t = null; + } + } + + @Override // java.text.DateFormat + public void setTimeZone(TimeZone timeZone) { + if (!timeZone.equals(this.r)) { + this.t = null; + this.r = timeZone; + } + } + + @Override // java.lang.Object + public String toString() { + return String.format("DateFormat %s: (timezone: %s, locale: %s, lenient: %s)", r.class.getName(), this.r, this._locale, this._lenient); + } +} diff --git a/app/src/main/java/b/g/a/c/i0/s.java b/app/src/main/java/b/g/a/c/i0/s.java new file mode 100644 index 0000000000..deb14fdbc5 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/s.java @@ -0,0 +1,295 @@ +package b.g.a.c.i0; + +import b.g.a.b.d; +import b.g.a.b.e; +import b.g.a.b.g; +import b.g.a.b.h; +import b.g.a.b.i; +import b.g.a.b.k; +import b.g.a.b.o.b; +import java.io.IOException; +import java.io.InputStream; +import java.math.BigDecimal; +import java.math.BigInteger; +/* compiled from: TokenBuffer */ +public class s extends d { + public int m; + + /* compiled from: TokenBuffer */ + public static final class a extends b { + public int n = -1; + public t o = new t(); + public boolean p; + + public a(i iVar, boolean z2, boolean z3, g gVar) { + super(0); + } + + @Override // b.g.a.b.f + public e a() { + return e.j; + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + if (!this.p) { + this.p = true; + } + } + } + + static { + d.a.f(); + } + + @Override // b.g.a.b.d + public void A() throws IOException { + h hVar = h.VALUE_NULL; + throw null; + } + + @Override // b.g.a.b.d + public void C(double d) throws IOException { + o0(h.VALUE_NUMBER_FLOAT, Double.valueOf(d)); + throw null; + } + + @Override // b.g.a.b.d + public void D(float f) throws IOException { + o0(h.VALUE_NUMBER_FLOAT, Float.valueOf(f)); + throw null; + } + + @Override // b.g.a.b.d + public void H(int i) throws IOException { + o0(h.VALUE_NUMBER_INT, Integer.valueOf(i)); + throw null; + } + + @Override // b.g.a.b.d + public void I(long j) throws IOException { + o0(h.VALUE_NUMBER_INT, Long.valueOf(j)); + throw null; + } + + @Override // b.g.a.b.d + public void J(String str) throws IOException { + o0(h.VALUE_NUMBER_FLOAT, str); + throw null; + } + + @Override // b.g.a.b.d + public void L(BigDecimal bigDecimal) throws IOException { + if (bigDecimal == null) { + A(); + throw null; + } else { + o0(h.VALUE_NUMBER_FLOAT, bigDecimal); + throw null; + } + } + + @Override // b.g.a.b.d + public void N(BigInteger bigInteger) throws IOException { + if (bigInteger == null) { + A(); + throw null; + } else { + o0(h.VALUE_NUMBER_INT, bigInteger); + throw null; + } + } + + @Override // b.g.a.b.d + public void O(short s2) throws IOException { + o0(h.VALUE_NUMBER_INT, Short.valueOf(s2)); + throw null; + } + + @Override // b.g.a.b.d + public void R(char c) throws IOException { + r0(); + throw null; + } + + @Override // b.g.a.b.d + public void S(k kVar) throws IOException { + r0(); + throw null; + } + + @Override // b.g.a.b.d + public void T(String str) throws IOException { + r0(); + throw null; + } + + @Override // b.g.a.b.d + public void U(char[] cArr, int i, int i2) throws IOException { + r0(); + throw null; + } + + @Override // b.g.a.b.d + public void V(String str) throws IOException { + h hVar = h.VALUE_EMBEDDED_OBJECT; + throw null; + } + + @Override // b.g.a.b.d + public final void W() throws IOException { + throw null; + } + + @Override // b.g.a.b.d + public void X(Object obj) throws IOException { + throw null; + } + + @Override // b.g.a.b.d + public d b(d.a aVar) { + this.m = (~aVar.h()) & this.m; + return this; + } + + @Override // b.g.a.b.d + public void b0(Object obj, int i) throws IOException { + throw null; + } + + @Override // b.g.a.b.d + public g c() { + return null; + } + + @Override // b.g.a.b.d + public final void c0() throws IOException { + throw null; + } + + @Override // b.g.a.b.d, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + } + + @Override // b.g.a.b.d + public boolean d(d.a aVar) { + return (aVar.h() & this.m) != 0; + } + + @Override // b.g.a.b.d + public void d0(Object obj) throws IOException { + throw null; + } + + @Override // b.g.a.b.d + public int f(b.g.a.b.a aVar, InputStream inputStream, int i) { + throw new UnsupportedOperationException(); + } + + @Override // b.g.a.b.d + public void f0(Object obj, int i) throws IOException { + throw null; + } + + @Override // java.io.Flushable + public void flush() throws IOException { + } + + @Override // b.g.a.b.d + public void g0(k kVar) throws IOException { + if (kVar == null) { + A(); + throw null; + } else { + o0(h.VALUE_STRING, kVar); + throw null; + } + } + + @Override // b.g.a.b.d + public void j0(String str) throws IOException { + if (str == null) { + A(); + throw null; + } else { + o0(h.VALUE_STRING, str); + throw null; + } + } + + @Override // b.g.a.b.d + public void m0(char[] cArr, int i, int i2) throws IOException { + j0(new String(cArr, i, i2)); + throw null; + } + + @Override // b.g.a.b.d + public void n(b.g.a.b.a aVar, byte[] bArr, int i, int i2) throws IOException { + byte[] bArr2 = new byte[i2]; + System.arraycopy(bArr, i, bArr2, 0, i2); + writeObject(bArr2); + throw null; + } + + public final void o0(h hVar, Object obj) { + throw null; + } + + public void r0() { + throw new UnsupportedOperationException("Called operation not supported for TokenBuffer"); + } + + @Override // b.g.a.b.d + public void s(boolean z2) throws IOException { + if (z2) { + h hVar = h.VALUE_TRUE; + } else { + h hVar2 = h.VALUE_FALSE; + } + throw null; + } + + @Override // b.g.a.b.d + public final void t() throws IOException { + h hVar = h.END_ARRAY; + throw null; + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("[TokenBuffer: "); + new a(null, false, false, null); + R.append(']'); + return R.toString(); + } + + @Override // b.g.a.b.d + public final void u() throws IOException { + h hVar = h.END_OBJECT; + throw null; + } + + public void writeObject(Object obj) throws IOException { + if (obj == null) { + A(); + throw null; + } else if (obj.getClass() == byte[].class || (obj instanceof o)) { + o0(h.VALUE_EMBEDDED_OBJECT, obj); + throw null; + } else { + o0(h.VALUE_EMBEDDED_OBJECT, obj); + throw null; + } + } + + @Override // b.g.a.b.d + public void x(k kVar) throws IOException { + kVar.getValue(); + throw null; + } + + @Override // b.g.a.b.d + public final void y(String str) throws IOException { + throw null; + } +} diff --git a/app/src/main/java/b/g/a/c/i0/t.java b/app/src/main/java/b/g/a/c/i0/t.java new file mode 100644 index 0000000000..1550aabb32 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/t.java @@ -0,0 +1,25 @@ +package b.g.a.c.i0; + +import b.g.a.b.e; +import b.g.a.b.g; +/* compiled from: TokenBufferReadContext */ +public class t extends g { + public final g c = null; + public final e d = e.j; + public String e; + public Object f; + + public t() { + super(0, -1); + } + + @Override // b.g.a.b.g + public String a() { + return this.e; + } + + @Override // b.g.a.b.g + public void d(Object obj) { + this.f = obj; + } +} diff --git a/app/src/main/java/b/g/a/c/i0/u.java b/app/src/main/java/b/g/a/c/i0/u.java new file mode 100644 index 0000000000..da191df6e9 --- /dev/null +++ b/app/src/main/java/b/g/a/c/i0/u.java @@ -0,0 +1,64 @@ +package b.g.a.c.i0; + +import b.d.b.a.a; +import b.g.a.c.j; +/* compiled from: TypeKey */ +public class u { + public int a; + + /* renamed from: b reason: collision with root package name */ + public Class f716b; + public j c; + public boolean d; + + public u() { + } + + public u(j jVar, boolean z2) { + this.c = jVar; + this.f716b = null; + this.d = z2; + this.a = z2 ? jVar._hash - 2 : jVar._hash - 1; + } + + public u(Class cls, boolean z2) { + this.f716b = cls; + this.c = null; + this.d = z2; + this.a = z2 ? cls.getName().hashCode() + 1 : cls.getName().hashCode(); + } + + public final boolean equals(Object obj) { + if (obj == null) { + return false; + } + if (obj == this) { + return true; + } + if (obj.getClass() != u.class) { + return false; + } + u uVar = (u) obj; + if (uVar.d != this.d) { + return false; + } + Class cls = this.f716b; + return cls != null ? uVar.f716b == cls : this.c.equals(uVar.c); + } + + public final int hashCode() { + return this.a; + } + + public final String toString() { + if (this.f716b != null) { + StringBuilder R = a.R("{class: "); + a.i0(this.f716b, R, ", typed? "); + return a.L(R, this.d, "}"); + } + StringBuilder R2 = a.R("{type: "); + R2.append(this.c); + R2.append(", typed? "); + return a.L(R2, this.d, "}"); + } +} diff --git a/app/src/main/java/b/g/a/c/j.java b/app/src/main/java/b/g/a/c/j.java new file mode 100644 index 0000000000..063c3a50ba --- /dev/null +++ b/app/src/main/java/b/g/a/c/j.java @@ -0,0 +1,135 @@ +package b.g.a.c; + +import b.g.a.b.s.a; +import b.g.a.c.h0.m; +import b.g.a.c.h0.n; +import b.g.a.c.i0.d; +import java.io.Serializable; +import java.lang.annotation.Annotation; +import java.lang.reflect.Modifier; +import java.lang.reflect.Type; +import java.util.List; +/* compiled from: JavaType */ +public abstract class j extends a implements Serializable, Type { + private static final long serialVersionUID = 1; + public final boolean _asStatic; + public final Class _class; + public final int _hash; + public final Object _typeHandler; + public final Object _valueHandler; + + public j(Class cls, int i, Object obj, Object obj2, boolean z2) { + this._class = cls; + this._hash = cls.getName().hashCode() + i; + this._valueHandler = obj; + this._typeHandler = obj2; + this._asStatic = z2; + } + + public final boolean A() { + Class cls = this._class; + Annotation[] annotationArr = d.a; + Class superclass = cls.getSuperclass(); + return superclass != null && "java.lang.Record".equals(superclass.getName()); + } + + public final boolean B(Class cls) { + Class cls2 = this._class; + return cls2 == cls || cls.isAssignableFrom(cls2); + } + + public abstract j C(Class cls, m mVar, j jVar, j[] jVarArr); + + public abstract j D(j jVar); + + public abstract j E(Object obj); + + public j F(j jVar) { + Object obj = jVar._typeHandler; + j H = obj != this._typeHandler ? H(obj) : this; + Object obj2 = jVar._valueHandler; + return obj2 != this._valueHandler ? H.I(obj2) : H; + } + + public abstract j G(); + + public abstract j H(Object obj); + + public abstract j I(Object obj); + + @Override // java.lang.Object + public abstract boolean equals(Object obj); + + public abstract j f(int i); + + public abstract int g(); + + public j h(int i) { + j f = f(i); + return f == null ? n.k() : f; + } + + @Override // java.lang.Object + public final int hashCode() { + return this._hash; + } + + public abstract j i(Class cls); + + public abstract m j(); + + public j k() { + return null; + } + + public abstract StringBuilder l(StringBuilder sb); + + public abstract StringBuilder m(StringBuilder sb); + + public abstract List n(); + + public j o() { + return null; + } + + /* renamed from: p */ + public j a() { + return null; + } + + public abstract j q(); + + public boolean r() { + return g() > 0; + } + + public boolean s() { + return (this._typeHandler == null && this._valueHandler == null) ? false : true; + } + + public final boolean t(Class cls) { + return this._class == cls; + } + + public boolean u() { + return false; + } + + public abstract boolean v(); + + public final boolean w() { + return d.q(this._class); + } + + public final boolean x() { + return Modifier.isFinal(this._class.getModifiers()); + } + + public final boolean y() { + return this._class == Object.class; + } + + public boolean z() { + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/k.java b/app/src/main/java/b/g/a/c/k.java new file mode 100644 index 0000000000..5fa17109e9 --- /dev/null +++ b/app/src/main/java/b/g/a/c/k.java @@ -0,0 +1,8 @@ +package b.g.a.c; +/* compiled from: JsonDeserializer */ +public abstract class k { + + /* compiled from: JsonDeserializer */ + public static abstract class a extends k { + } +} diff --git a/app/src/main/java/b/g/a/c/l.java b/app/src/main/java/b/g/a/c/l.java new file mode 100644 index 0000000000..b8723d729d --- /dev/null +++ b/app/src/main/java/b/g/a/c/l.java @@ -0,0 +1,13 @@ +package b.g.a.c; + +import b.g.a.c.i0.d; +import b.g.a.c.m; +import java.util.Iterator; +/* compiled from: JsonNode */ +public abstract class l extends m.a implements Iterable { + /* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: java.util.Iterator, java.util.Iterator */ + @Override // java.lang.Iterable + public final Iterator iterator() { + return d.c; + } +} diff --git a/app/src/main/java/b/g/a/c/m.java b/app/src/main/java/b/g/a/c/m.java new file mode 100644 index 0000000000..cd39e13756 --- /dev/null +++ b/app/src/main/java/b/g/a/c/m.java @@ -0,0 +1,16 @@ +package b.g.a.c; + +import b.g.a.b.d; +import b.g.a.c.e0.g; +import java.io.IOException; +/* compiled from: JsonSerializable */ +public interface m { + + /* compiled from: JsonSerializable */ + public static abstract class a implements m { + } + + void c(d dVar, x xVar) throws IOException; + + void d(d dVar, x xVar, g gVar) throws IOException; +} diff --git a/app/src/main/java/b/g/a/c/n.java b/app/src/main/java/b/g/a/c/n.java new file mode 100644 index 0000000000..27fd251235 --- /dev/null +++ b/app/src/main/java/b/g/a/c/n.java @@ -0,0 +1,44 @@ +package b.g.a.c; + +import b.g.a.b.d; +import b.g.a.c.e0.g; +import b.g.a.c.g0.t.t; +import java.io.IOException; +/* compiled from: JsonSerializer */ +public abstract class n { + + /* compiled from: JsonSerializer */ + public static abstract class a extends n { + } + + public Class c() { + return null; + } + + public boolean d(x xVar, T t) { + return t == null; + } + + public boolean e() { + return this instanceof t; + } + + public abstract void f(T t, d dVar, x xVar) throws IOException; + + public void g(T t, d dVar, x xVar, g gVar) throws IOException { + Class c = c(); + if (c == null) { + c = t.getClass(); + } + xVar.f(xVar.b(c), String.format("Type id handling not implemented for type %s (by serializer of type %s)", c.getName(), getClass().getName())); + throw null; + } + + public n h(b.g.a.c.i0.n nVar) { + return this; + } + + public boolean i() { + return false; + } +} diff --git a/app/src/main/java/b/g/a/c/o.java b/app/src/main/java/b/g/a/c/o.java new file mode 100644 index 0000000000..3ed5c24cea --- /dev/null +++ b/app/src/main/java/b/g/a/c/o.java @@ -0,0 +1,8 @@ +package b.g.a.c; +/* compiled from: KeyDeserializer */ +public abstract class o { + + /* compiled from: KeyDeserializer */ + public static abstract class a extends o { + } +} diff --git a/app/src/main/java/b/g/a/c/p.java b/app/src/main/java/b/g/a/c/p.java new file mode 100644 index 0000000000..dd2969cb2c --- /dev/null +++ b/app/src/main/java/b/g/a/c/p.java @@ -0,0 +1,58 @@ +package b.g.a.c; + +import b.g.a.c.z.e; +/* compiled from: MapperFeature */ +public enum p implements e { + USE_ANNOTATIONS(true), + USE_GETTERS_AS_SETTERS(true), + PROPAGATE_TRANSIENT_MARKER(false), + AUTO_DETECT_CREATORS(true), + AUTO_DETECT_FIELDS(true), + AUTO_DETECT_GETTERS(true), + AUTO_DETECT_IS_GETTERS(true), + AUTO_DETECT_SETTERS(true), + REQUIRE_SETTERS_FOR_GETTERS(false), + ALLOW_FINAL_FIELDS_AS_MUTATORS(true), + INFER_PROPERTY_MUTATORS(true), + INFER_CREATOR_FROM_CONSTRUCTOR_PROPERTIES(true), + ALLOW_VOID_VALUED_PROPERTIES(false), + CAN_OVERRIDE_ACCESS_MODIFIERS(true), + OVERRIDE_PUBLIC_ACCESS_MODIFIERS(true), + USE_STATIC_TYPING(false), + USE_BASE_TYPE_AS_DEFAULT_IMPL(false), + INFER_BUILDER_TYPE_BINDINGS(true), + DEFAULT_VIEW_INCLUSION(true), + SORT_PROPERTIES_ALPHABETICALLY(false), + SORT_CREATOR_PROPERTIES_FIRST(true), + ACCEPT_CASE_INSENSITIVE_PROPERTIES(false), + ACCEPT_CASE_INSENSITIVE_ENUMS(false), + ACCEPT_CASE_INSENSITIVE_VALUES(false), + USE_WRAPPER_NAME_AS_PROPERTY_NAME(false), + USE_STD_BEAN_NAMING(false), + ALLOW_EXPLICIT_PROPERTY_RENAMING(false), + ALLOW_COERCION_OF_SCALARS(true), + IGNORE_DUPLICATE_MODULE_REGISTRATIONS(true), + IGNORE_MERGE_FOR_UNMERGEABLE(true), + BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES(false); + + private final boolean _defaultState; + private final int _mask = (1 << ordinal()); + + public p(boolean z2) { + this._defaultState = z2; + } + + @Override // b.g.a.c.z.e + public boolean f() { + return this._defaultState; + } + + @Override // b.g.a.c.z.e + public int g() { + return this._mask; + } + + public boolean h(int i) { + return (i & this._mask) != 0; + } +} diff --git a/app/src/main/java/b/g/a/c/q.java b/app/src/main/java/b/g/a/c/q.java new file mode 100644 index 0000000000..16a6bd9005 --- /dev/null +++ b/app/src/main/java/b/g/a/c/q.java @@ -0,0 +1,22 @@ +package b.g.a.c; + +import b.g.a.b.c; +import b.g.a.b.i; +/* compiled from: MappingJsonFactory */ +public class q extends c { + private static final long serialVersionUID = -1; + + public q() { + super(null); + this._objectCodec = new r(this, null, null); + } + + public q(r rVar) { + super(rVar); + } + + @Override // b.g.a.b.c + public i b() { + return (r) this._objectCodec; + } +} diff --git a/app/src/main/java/b/g/a/c/r.java b/app/src/main/java/b/g/a/c/r.java new file mode 100644 index 0000000000..0c19f022f4 --- /dev/null +++ b/app/src/main/java/b/g/a/c/r.java @@ -0,0 +1,187 @@ +package b.g.a.c; + +import b.g.a.b.b; +import b.g.a.b.c; +import b.g.a.b.d; +import b.g.a.b.i; +import b.g.a.b.k; +import b.g.a.b.t.e; +import b.g.a.c.a0.d; +import b.g.a.c.c0.d0; +import b.g.a.c.c0.w; +import b.g.a.c.c0.x; +import b.g.a.c.g0.f; +import b.g.a.c.g0.j; +import b.g.a.c.g0.q; +import b.g.a.c.h0.n; +import b.g.a.c.i0.p; +import b.g.a.c.z.a; +import b.g.a.c.z.d; +import b.g.a.c.z.g; +import java.io.Closeable; +import java.io.IOException; +import java.io.Serializable; +import java.io.Writer; +import java.lang.annotation.Annotation; +import java.util.Locale; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: ObjectMapper */ +public class r extends i implements Serializable { + public static final b j; + public static final a k; + private static final long serialVersionUID = 2; + public final d _coercionConfigs; + public final g _configOverrides; + public f _deserializationConfig; + public b.g.a.c.a0.d _deserializationContext; + public i _injectableValues; + public final c _jsonFactory; + public d0 _mixIns; + public Set _registeredModuleTypes; + public final ConcurrentHashMap> _rootDeserializers; + public v _serializationConfig; + public q _serializerFactory; + public j _serializerProvider; + public b.g.a.c.e0.d _subtypeResolver; + public n _typeFactory; + + static { + x xVar = new x(); + j = xVar; + k = new a(null, xVar, null, n.k, null, b.g.a.c.i0.r.p, Locale.getDefault(), null, b.f642b, b.g.a.c.e0.h.g.j, new w.b()); + } + + public r() { + this(null, null, null); + } + + public r(c cVar, j jVar, b.g.a.c.a0.d dVar) { + this._rootDeserializers = new ConcurrentHashMap<>(64, 0.6f, 2); + if (cVar == null) { + this._jsonFactory = new q(this); + } else { + this._jsonFactory = cVar; + if (cVar.b() == null) { + cVar._objectCodec = this; + } + } + this._subtypeResolver = new b.g.a.c.e0.h.i(); + p pVar = new p(); + this._typeFactory = n.k; + d0 d0Var = new d0(null); + this._mixIns = d0Var; + a aVar = k; + b.g.a.c.c0.r rVar = new b.g.a.c.c0.r(); + a aVar2 = aVar._classIntrospector == rVar ? aVar : new a(rVar, aVar._annotationIntrospector, aVar._propertyNamingStrategy, aVar._typeFactory, aVar._typeResolverBuilder, aVar._dateFormat, aVar._locale, aVar._timeZone, aVar._defaultBase64, aVar._typeValidator, aVar._accessorNaming); + g gVar = new g(); + this._configOverrides = gVar; + d dVar2 = new d(); + this._coercionConfigs = dVar2; + this._serializationConfig = new v(aVar2, this._subtypeResolver, d0Var, pVar, gVar); + this._deserializationConfig = new f(aVar2, this._subtypeResolver, d0Var, pVar, gVar, dVar2); + Objects.requireNonNull(this._jsonFactory); + v vVar = this._serializationConfig; + p pVar2 = p.SORT_PROPERTIES_ALPHABETICALLY; + if (vVar.q(pVar2)) { + this._serializationConfig = this._serializationConfig.t(pVar2); + this._deserializationConfig = this._deserializationConfig.t(pVar2); + } + this._serializerProvider = new j.a(); + this._deserializationContext = new d.a(b.g.a.c.a0.b.j); + this._serializerFactory = f.l; + } + + public final void a(String str, Object obj) { + if (obj == null) { + throw new IllegalArgumentException(String.format("argument \"%s\" is null", str)); + } + } + + public final void b(b.g.a.b.d dVar, Object obj) throws IOException { + Exception e; + v vVar = this._serializationConfig; + if (!vVar.v(w.CLOSE_CLOSEABLE) || !(obj instanceof Closeable)) { + try { + this._serializerProvider.K(vVar, this._serializerFactory).L(dVar, obj); + dVar.close(); + } catch (Exception e2) { + Annotation[] annotationArr = b.g.a.c.i0.d.a; + dVar.b(d.a.AUTO_CLOSE_JSON_CONTENT); + try { + dVar.close(); + } catch (Exception e3) { + e2.addSuppressed(e3); + } + if (!(e2 instanceof IOException)) { + b.g.a.c.i0.d.x(e2); + throw new RuntimeException(e2); + } + throw ((IOException) e2); + } + } else { + Closeable closeable = (Closeable) obj; + try { + this._serializerProvider.K(vVar, this._serializerFactory).L(dVar, obj); + try { + closeable.close(); + dVar.close(); + } catch (Exception e4) { + e = e4; + closeable = null; + b.g.a.c.i0.d.f(dVar, closeable, e); + throw null; + } + } catch (Exception e5) { + e = e5; + b.g.a.c.i0.d.f(dVar, closeable, e); + throw null; + } + } + } + + public b.g.a.b.d c(Writer writer) throws IOException { + a("w", writer); + c cVar = this._jsonFactory; + b.g.a.b.p.c cVar2 = new b.g.a.b.p.c(cVar.a(), writer, false); + if (cVar._outputDecorator == null) { + b.g.a.b.q.d dVar = new b.g.a.b.q.d(cVar2, cVar._generatorFeatures, cVar._objectCodec, writer, cVar._quoteChar); + int i = cVar._maximumNonEscapedChar; + if (i > 0) { + dVar.y0(i); + } + if (cVar._characterEscapes == null) { + k kVar = cVar._rootValueSeparator; + if (kVar != c.m) { + dVar.v = kVar; + } + v vVar = this._serializationConfig; + Objects.requireNonNull(vVar); + if (w.INDENT_OUTPUT.h(vVar._serFeatures) && dVar.l == null) { + b.g.a.b.j jVar = vVar._defaultPrettyPrinter; + if (jVar instanceof e) { + jVar = (b.g.a.b.j) ((e) jVar).e(); + } + if (jVar != null) { + dVar.l = jVar; + } + } + boolean h = w.WRITE_BIGDECIMAL_AS_PLAIN.h(vVar._serFeatures); + int i2 = vVar._generatorFeaturesToChange; + if (i2 != 0 || h) { + int i3 = vVar._generatorFeatures; + if (h) { + int h2 = d.a.WRITE_BIGDECIMAL_AS_PLAIN.h(); + i3 |= h2; + i2 |= h2; + } + dVar.w0(i3, i2); + } + return dVar; + } + throw null; + } + throw null; + } +} diff --git a/app/src/main/java/b/g/a/c/s.java b/app/src/main/java/b/g/a/c/s.java new file mode 100644 index 0000000000..95ed523173 --- /dev/null +++ b/app/src/main/java/b/g/a/c/s.java @@ -0,0 +1,47 @@ +package b.g.a.c; + +import b.g.a.a.h0; +import b.g.a.c.c0.i; +import java.io.Serializable; +/* compiled from: PropertyMetadata */ +public class s implements Serializable { + public static final s j = new s(Boolean.TRUE, null, null, null, null, null, null); + public static final s k = new s(Boolean.FALSE, null, null, null, null, null, null); + public static final s l = new s(null, null, null, null, null, null, null); + private static final long serialVersionUID = -1; + public h0 _contentNulls; + public final String _defaultValue; + public final String _description; + public final Integer _index; + public final Boolean _required; + public h0 _valueNulls; + public final transient a m; + + /* compiled from: PropertyMetadata */ + public static final class a { + public a(i iVar, boolean z2) { + } + } + + public s(Boolean bool, String str, Integer num, String str2, a aVar, h0 h0Var, h0 h0Var2) { + this._required = bool; + this._description = str; + this._index = num; + this._defaultValue = (str2 == null || str2.isEmpty()) ? null : str2; + this.m = aVar; + this._valueNulls = h0Var; + this._contentNulls = h0Var2; + } + + public s a(a aVar) { + return new s(this._required, this._description, this._index, this._defaultValue, aVar, this._valueNulls, this._contentNulls); + } + + public Object readResolve() { + if (this._description != null || this._index != null || this._defaultValue != null || this.m != null || this._valueNulls != null || this._contentNulls != null) { + return this; + } + Boolean bool = this._required; + return bool == null ? l : bool.booleanValue() ? j : k; + } +} diff --git a/app/src/main/java/b/g/a/c/t.java b/app/src/main/java/b/g/a/c/t.java new file mode 100644 index 0000000000..885532b94a --- /dev/null +++ b/app/src/main/java/b/g/a/c/t.java @@ -0,0 +1,92 @@ +package b.g.a.c; + +import b.d.b.a.a; +import b.g.a.b.k; +import b.g.a.b.t.f; +import b.g.a.c.i0.d; +import java.io.Serializable; +import java.lang.annotation.Annotation; +/* compiled from: PropertyName */ +public class t implements Serializable { + public static final t j = new t("", null); + public static final t k = new t(new String(""), null); + private static final long serialVersionUID = 1; + public k _encodedSimple; + public final String _namespace; + public final String _simpleName; + + public t(String str) { + Annotation[] annotationArr = d.a; + this._simpleName = str; + this._namespace = null; + } + + public t(String str, String str2) { + Annotation[] annotationArr = d.a; + this._simpleName = str == null ? "" : str; + this._namespace = str2; + } + + public static t a(String str) { + return (str == null || str.isEmpty()) ? j : new t(f.j.a(str), null); + } + + public static t b(String str, String str2) { + if (str == null) { + str = ""; + } + return (str2 != null || !str.isEmpty()) ? new t(f.j.a(str), str2) : j; + } + + public boolean c() { + return !this._simpleName.isEmpty(); + } + + public boolean d() { + return this._namespace == null && this._simpleName.isEmpty(); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj == null || obj.getClass() != t.class) { + return false; + } + t tVar = (t) obj; + String str = this._simpleName; + if (str == null) { + if (tVar._simpleName != null) { + return false; + } + } else if (!str.equals(tVar._simpleName)) { + return false; + } + String str2 = this._namespace; + return str2 == null ? tVar._namespace == null : str2.equals(tVar._namespace); + } + + @Override // java.lang.Object + public int hashCode() { + String str = this._namespace; + return str == null ? this._simpleName.hashCode() : str.hashCode() ^ this._simpleName.hashCode(); + } + + public Object readResolve() { + String str; + return (this._namespace != null || ((str = this._simpleName) != null && !"".equals(str))) ? this : j; + } + + @Override // java.lang.Object + public String toString() { + if (this._namespace == null) { + return this._simpleName; + } + StringBuilder R = a.R("{"); + R.append(this._namespace); + R.append("}"); + R.append(this._simpleName); + return R.toString(); + } +} diff --git a/app/src/main/java/b/g/a/c/u.java b/app/src/main/java/b/g/a/c/u.java new file mode 100644 index 0000000000..11d545b686 --- /dev/null +++ b/app/src/main/java/b/g/a/c/u.java @@ -0,0 +1,106 @@ +package b.g.a.c; + +import b.g.a.c.c0.g; +import b.g.a.c.c0.j; +import b.g.a.c.c0.m; +import b.g.a.c.z.l; +import java.io.Serializable; +/* compiled from: PropertyNamingStrategy */ +public class u implements Serializable { + @Deprecated + public static final u j = new c(); + @Deprecated + public static final u k = new b(); + private static final long serialVersionUID = 2; + + /* compiled from: PropertyNamingStrategy */ + @Deprecated + public static abstract class a extends u { + @Override // b.g.a.c.u + public String a(l lVar, m mVar, String str) { + return e(str); + } + + @Override // b.g.a.c.u + public String b(l lVar, g gVar, String str) { + return e(str); + } + + @Override // b.g.a.c.u + public String c(l lVar, j jVar, String str) { + return e(str); + } + + @Override // b.g.a.c.u + public String d(l lVar, j jVar, String str) { + return e(str); + } + + public abstract String e(String str); + } + + /* compiled from: PropertyNamingStrategy */ + @Deprecated + public static class b extends a { + @Override // b.g.a.c.u.a + public String e(String str) { + if (str == null) { + return str; + } + int length = str.length(); + StringBuilder sb = new StringBuilder(length * 2); + int i = 0; + boolean z2 = false; + for (int i2 = 0; i2 < length; i2++) { + char charAt = str.charAt(i2); + if (i2 > 0 || charAt != '_') { + if (Character.isUpperCase(charAt)) { + if (!z2 && i > 0 && sb.charAt(i - 1) != '_') { + sb.append('_'); + i++; + } + charAt = Character.toLowerCase(charAt); + z2 = true; + } else { + z2 = false; + } + sb.append(charAt); + i++; + } + } + return i > 0 ? sb.toString() : str; + } + } + + /* compiled from: PropertyNamingStrategy */ + @Deprecated + public static class c extends a { + @Override // b.g.a.c.u.a + public String e(String str) { + char charAt; + char upperCase; + if (str == null || str.isEmpty() || charAt == (upperCase = Character.toUpperCase((charAt = str.charAt(0))))) { + return str; + } + StringBuilder sb = new StringBuilder(str); + sb.setCharAt(0, upperCase); + return sb.toString(); + } + } + + public String a(l lVar, m mVar, String str) { + return str; + } + + public String b(l lVar, g gVar, String str) { + return str; + } + + public String c(l lVar, j jVar, String str) { + return str; + } + + public String d(l lVar, j jVar, String str) { + return str; + } +} diff --git a/app/src/main/java/b/g/a/c/v.java b/app/src/main/java/b/g/a/c/v.java new file mode 100644 index 0000000000..ec6456911b --- /dev/null +++ b/app/src/main/java/b/g/a/c/v.java @@ -0,0 +1,92 @@ +package b.g.a.c; + +import b.g.a.b.j; +import b.g.a.b.t.d; +import b.g.a.c.c0.b0; +import b.g.a.c.c0.c; +import b.g.a.c.c0.d0; +import b.g.a.c.c0.q; +import b.g.a.c.c0.r; +import b.g.a.c.c0.w; +import b.g.a.c.g0.k; +import b.g.a.c.i0.p; +import b.g.a.c.z.a; +import b.g.a.c.z.g; +import b.g.a.c.z.l; +import b.g.a.c.z.m; +import java.io.Serializable; +import java.util.Collection; +import java.util.Map; +import java.util.Objects; +/* compiled from: SerializationConfig */ +public final class v extends m implements Serializable { + public static final j l = new d(); + public static final int m = l.c(w.class); + private static final long serialVersionUID = 1; + public final j _defaultPrettyPrinter; + public final k _filterProvider; + public final int _formatWriteFeatures; + public final int _formatWriteFeaturesToChange; + public final int _generatorFeatures; + public final int _generatorFeaturesToChange; + public final int _serFeatures; + + public v(v vVar, int i, int i2, int i3, int i4, int i5, int i6) { + super(vVar, i); + this._serFeatures = i2; + this._defaultPrettyPrinter = vVar._defaultPrettyPrinter; + this._generatorFeatures = i3; + this._generatorFeaturesToChange = i4; + this._formatWriteFeatures = i5; + this._formatWriteFeaturesToChange = i6; + } + + public v(a aVar, b.g.a.c.e0.d dVar, d0 d0Var, p pVar, g gVar) { + super(aVar, dVar, d0Var, pVar, gVar); + this._serFeatures = m; + this._defaultPrettyPrinter = l; + this._generatorFeatures = 0; + this._generatorFeaturesToChange = 0; + this._formatWriteFeatures = 0; + this._formatWriteFeaturesToChange = 0; + } + + /* Return type fixed from 'b.g.a.c.z.m' to match base method */ + @Override // b.g.a.c.z.m + public v r(int i) { + return new v(this, i, this._serFeatures, this._generatorFeatures, this._generatorFeaturesToChange, this._formatWriteFeatures, this._formatWriteFeaturesToChange); + } + + public c u(j jVar) { + w.c cVar; + r rVar = (r) this._base._classIntrospector; + q a = rVar.a(this, jVar); + if (a != null) { + return a; + } + boolean z2 = false; + if (jVar.v() && !(jVar instanceof b.g.a.c.h0.a)) { + Class cls = jVar._class; + if (b.g.a.c.i0.d.r(cls) && (Collection.class.isAssignableFrom(cls) || Map.class.isAssignableFrom(cls))) { + z2 = true; + } + } + q e = z2 ? q.e(this, jVar, rVar.b(this, jVar, this)) : null; + if (e != null) { + return e; + } + c b2 = rVar.b(this, jVar, this); + if (jVar.A()) { + Objects.requireNonNull((w.b) this._base._accessorNaming); + cVar = new w.c(this, b2); + } else { + w.b bVar = (w.b) this._base._accessorNaming; + cVar = new w(this, b2, bVar._setterPrefix, bVar._getterPrefix, bVar._isGetterPrefix, bVar._baseNameValidator); + } + return new q(new b0(this, true, jVar, b2, cVar)); + } + + public final boolean v(w wVar) { + return (wVar.g() & this._serFeatures) != 0; + } +} diff --git a/app/src/main/java/b/g/a/c/w.java b/app/src/main/java/b/g/a/c/w.java new file mode 100644 index 0000000000..a029e6f27f --- /dev/null +++ b/app/src/main/java/b/g/a/c/w.java @@ -0,0 +1,52 @@ +package b.g.a.c; + +import b.g.a.c.z.e; +/* compiled from: SerializationFeature */ +public enum w implements e { + WRAP_ROOT_VALUE(false), + INDENT_OUTPUT(false), + FAIL_ON_EMPTY_BEANS(true), + FAIL_ON_SELF_REFERENCES(true), + WRAP_EXCEPTIONS(true), + FAIL_ON_UNWRAPPED_TYPE_IDENTIFIERS(true), + WRITE_SELF_REFERENCES_AS_NULL(false), + CLOSE_CLOSEABLE(false), + FLUSH_AFTER_WRITE_VALUE(true), + WRITE_DATES_AS_TIMESTAMPS(true), + WRITE_DATE_KEYS_AS_TIMESTAMPS(false), + WRITE_DATES_WITH_ZONE_ID(false), + WRITE_DURATIONS_AS_TIMESTAMPS(true), + WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS(false), + WRITE_ENUMS_USING_TO_STRING(false), + WRITE_ENUMS_USING_INDEX(false), + WRITE_ENUM_KEYS_USING_INDEX(false), + WRITE_NULL_MAP_VALUES(true), + WRITE_EMPTY_JSON_ARRAYS(true), + WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED(false), + WRITE_BIGDECIMAL_AS_PLAIN(false), + WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS(true), + ORDER_MAP_ENTRIES_BY_KEYS(false), + EAGER_SERIALIZER_FETCH(true), + USE_EQUALITY_FOR_OBJECT_ID(false); + + private final boolean _defaultState; + private final int _mask = (1 << ordinal()); + + public w(boolean z2) { + this._defaultState = z2; + } + + @Override // b.g.a.c.z.e + public boolean f() { + return this._defaultState; + } + + @Override // b.g.a.c.z.e + public int g() { + return this._mask; + } + + public boolean h(int i) { + return (i & this._mask) != 0; + } +} diff --git a/app/src/main/java/b/g/a/c/x.java b/app/src/main/java/b/g/a/c/x.java new file mode 100644 index 0000000000..94764feff4 --- /dev/null +++ b/app/src/main/java/b/g/a/c/x.java @@ -0,0 +1,290 @@ +package b.g.a.c; + +import b.g.a.a.i0; +import b.g.a.c.c0.b; +import b.g.a.c.c0.s; +import b.g.a.c.g0.j; +import b.g.a.c.g0.o; +import b.g.a.c.g0.p; +import b.g.a.c.g0.t.c; +import b.g.a.c.g0.t.m; +import b.g.a.c.g0.t.q; +import b.g.a.c.g0.u.u; +import b.g.a.c.h0.n; +import b.g.a.c.i0.d; +import b.g.a.c.z.i; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.exc.InvalidDefinitionException; +import java.io.IOException; +import java.text.DateFormat; +import java.util.Map; +/* compiled from: SerializerProvider */ +public abstract class x extends e { + public static final n j = new c("Null key for a Map not allowed in JSON (use a converting NullKeySerializer?)"); + public static final n k = new q(); + public final v _config; + public DateFormat _dateFormat; + public n _keySerializer; + public final m _knownSerializers; + public n _nullKeySerializer; + public n _nullValueSerializer; + public final Class _serializationView; + public final p _serializerCache; + public final b.g.a.c.g0.q _serializerFactory; + public final boolean _stdNullValueSerializer; + public n _unknownTypeSerializer; + public transient i l; + + public x() { + this._unknownTypeSerializer = k; + this._nullValueSerializer = u.k; + this._nullKeySerializer = j; + this._config = null; + this._serializerFactory = null; + this._serializerCache = new p(); + this._knownSerializers = null; + this._serializationView = null; + this.l = null; + this._stdNullValueSerializer = true; + } + + public x(x xVar, v vVar, b.g.a.c.g0.q qVar) { + this._unknownTypeSerializer = k; + this._nullValueSerializer = u.k; + n nVar = j; + this._nullKeySerializer = nVar; + this._serializerFactory = qVar; + this._config = vVar; + p pVar = xVar._serializerCache; + this._serializerCache = pVar; + this._unknownTypeSerializer = xVar._unknownTypeSerializer; + this._keySerializer = xVar._keySerializer; + n nVar2 = xVar._nullValueSerializer; + this._nullValueSerializer = nVar2; + this._nullKeySerializer = xVar._nullKeySerializer; + this._stdNullValueSerializer = nVar2 == nVar; + this._serializationView = vVar._view; + this.l = vVar._attributes; + m mVar = pVar.f689b.get(); + if (mVar == null) { + synchronized (pVar) { + mVar = pVar.f689b.get(); + if (mVar == null) { + m mVar2 = new m(pVar.a); + pVar.f689b.set(mVar2); + mVar = mVar2; + } + } + } + this._knownSerializers = mVar; + } + + public abstract Object A(s sVar, Class cls) throws JsonMappingException; + + public abstract boolean B(Object obj) throws JsonMappingException; + + public final boolean C(p pVar) { + return pVar.h(this._config._mapperFeatures); + } + + public final boolean D(w wVar) { + return this._config.v(wVar); + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x003f: APUT (r3v2 java.lang.Object[]), (0 ??[int, short, byte, char]), (r2v3 java.lang.String) */ + public T E(c cVar, s sVar, String str, Object... objArr) throws JsonMappingException { + String str2; + String a = a(str, objArr); + String str3 = "N/A"; + if (sVar != null) { + String p = sVar.p(); + if (p == null) { + str2 = "[N/A]"; + } else { + Object[] objArr2 = new Object[1]; + if (p.length() > 500) { + p = p.substring(0, 500) + "]...[" + p.substring(p.length() - 500); + } + objArr2[0] = p; + str2 = String.format("\"%s\"", objArr2); + } + } else { + str2 = str3; + } + if (cVar != null) { + str3 = d.u(cVar.a._class); + } + throw new InvalidDefinitionException(((j) this).o, String.format("Invalid definition for property %s (of type %s): %s", str2, str3, a), cVar, sVar); + } + + public T F(c cVar, String str, Object... objArr) throws JsonMappingException { + throw new InvalidDefinitionException(((j) this).o, String.format("Invalid type definition for type %s: %s", d.u(cVar.a._class), a(str, objArr)), cVar, null); + } + + public void G(String str, Object... objArr) throws JsonMappingException { + throw new JsonMappingException(((j) this).o, a(str, objArr), null); + } + + public abstract n H(b bVar, Object obj) throws JsonMappingException; + + @Override // b.g.a.c.e + public final n d() { + return this._config._base._typeFactory; + } + + @Override // b.g.a.c.e + public T f(j jVar, String str) throws JsonMappingException { + throw new InvalidDefinitionException(((j) this).o, str, jVar); + } + + public n h(j jVar) throws JsonMappingException { + try { + n b2 = this._serializerFactory.b(this, jVar); + if (b2 != null) { + p pVar = this._serializerCache; + synchronized (pVar) { + if (pVar.a.put(new b.g.a.c.i0.u(jVar, false), b2) == null) { + pVar.f689b.set(null); + } + if (b2 instanceof o) { + ((o) b2).b(this); + } + } + } + return b2; + } catch (IllegalArgumentException e) { + throw new JsonMappingException(((j) this).o, a(d.h(e), new Object[0]), e); + } + } + + public n i(Class cls) throws JsonMappingException { + j b2 = this._config._base._typeFactory.b(null, cls, n.l); + try { + n b3 = this._serializerFactory.b(this, b2); + if (b3 != null) { + p pVar = this._serializerCache; + synchronized (pVar) { + n put = pVar.a.put(new b.g.a.c.i0.u(cls, false), b3); + n put2 = pVar.a.put(new b.g.a.c.i0.u(b2, false), b3); + if (put == null || put2 == null) { + pVar.f689b.set(null); + } + if (b3 instanceof o) { + ((o) b3).b(this); + } + } + } + return b3; + } catch (IllegalArgumentException e) { + throw new JsonMappingException(((j) this).o, a(d.h(e), new Object[0]), e); + } + } + + public final DateFormat j() { + DateFormat dateFormat = this._dateFormat; + if (dateFormat != null) { + return dateFormat; + } + DateFormat dateFormat2 = (DateFormat) this._config._base._dateFormat.clone(); + this._dateFormat = dateFormat2; + return dateFormat2; + } + + public j k(j jVar, Class cls) throws IllegalArgumentException { + return jVar._class == cls ? jVar : this._config._base._typeFactory.h(jVar, cls, true); + } + + public final void l(b.g.a.b.d dVar) throws IOException { + if (this._stdNullValueSerializer) { + dVar.A(); + } else { + this._nullValueSerializer.f(null, dVar, this); + } + } + + public n m(j jVar, d dVar) throws JsonMappingException { + n a = this._knownSerializers.a(jVar); + return (a == null && (a = this._serializerCache.a(jVar)) == null && (a = h(jVar)) == null) ? x(jVar._class) : z(a, dVar); + } + + public n n(Class cls, d dVar) throws JsonMappingException { + n b2 = this._knownSerializers.b(cls); + return (b2 == null && (b2 = this._serializerCache.b(cls)) == null && (b2 = this._serializerCache.a(this._config._base._typeFactory.b(null, cls, n.l))) == null && (b2 = i(cls)) == null) ? x(cls) : z(b2, dVar); + } + + public n o(j jVar, d dVar) throws JsonMappingException { + n a = this._serializerFactory.a(this, jVar, this._keySerializer); + if (a instanceof o) { + ((o) a).b(this); + } + return z(a, dVar); + } + + public abstract b.g.a.c.g0.t.u p(Object obj, i0 i0Var); + + public n q(j jVar, d dVar) throws JsonMappingException { + n a = this._knownSerializers.a(jVar); + return (a == null && (a = this._serializerCache.a(jVar)) == null && (a = h(jVar)) == null) ? x(jVar._class) : y(a, dVar); + } + + public n r(Class cls, d dVar) throws JsonMappingException { + n b2 = this._knownSerializers.b(cls); + return (b2 == null && (b2 = this._serializerCache.b(cls)) == null && (b2 = this._serializerCache.a(this._config._base._typeFactory.b(null, cls, n.l))) == null && (b2 = i(cls)) == null) ? x(cls) : y(b2, dVar); + } + + public n s(j jVar) throws JsonMappingException { + n a = this._knownSerializers.a(jVar); + if (a != null) { + return a; + } + n a2 = this._serializerCache.a(jVar); + if (a2 != null) { + return a2; + } + n h = h(jVar); + return h == null ? x(jVar._class) : h; + } + + public n t(j jVar, d dVar) throws JsonMappingException { + if (jVar != null) { + n a = this._knownSerializers.a(jVar); + return (a == null && (a = this._serializerCache.a(jVar)) == null && (a = h(jVar)) == null) ? x(jVar._class) : z(a, dVar); + } + G("Null passed for `valueType` of `findValueSerializer()`", new Object[0]); + throw null; + } + + public n u(Class cls, d dVar) throws JsonMappingException { + n b2 = this._knownSerializers.b(cls); + return (b2 == null && (b2 = this._serializerCache.b(cls)) == null && (b2 = this._serializerCache.a(this._config._base._typeFactory.b(null, cls, n.l))) == null && (b2 = i(cls)) == null) ? x(cls) : z(b2, dVar); + } + + public final b v() { + return this._config.e(); + } + + public Object w(Object obj) { + Object obj2; + i.a aVar = (i.a) this.l; + Map map = aVar.l; + if (map == null || (obj2 = map.get(obj)) == null) { + return aVar._shared.get(obj); + } + if (obj2 == i.a.k) { + return null; + } + return obj2; + } + + public n x(Class cls) { + return cls == Object.class ? this._unknownTypeSerializer : new q(cls); + } + + public n y(n nVar, d dVar) throws JsonMappingException { + return (nVar == null || !(nVar instanceof b.g.a.c.g0.i)) ? nVar : ((b.g.a.c.g0.i) nVar).a(this, dVar); + } + + public n z(n nVar, d dVar) throws JsonMappingException { + return (nVar == null || !(nVar instanceof b.g.a.c.g0.i)) ? nVar : ((b.g.a.c.g0.i) nVar).a(this, dVar); + } +} diff --git a/app/src/main/java/b/g/a/c/y/a.java b/app/src/main/java/b/g/a/c/y/a.java new file mode 100644 index 0000000000..e470614d49 --- /dev/null +++ b/app/src/main/java/b/g/a/c/y/a.java @@ -0,0 +1,11 @@ +package b.g.a.c.y; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JacksonStdImpl */ +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface a { +} diff --git a/app/src/main/java/b/g/a/c/y/b.java b/app/src/main/java/b/g/a/c/y/b.java new file mode 100644 index 0000000000..e6da2dc9a2 --- /dev/null +++ b/app/src/main/java/b/g/a/c/y/b.java @@ -0,0 +1,48 @@ +package b.g.a.c.y; + +import b.g.a.a.p; +import b.g.a.c.g0.s; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonAppend */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface b { + + /* compiled from: JsonAppend */ + public @interface a { + p.a include() default p.a.NON_NULL; + + String propName() default ""; + + String propNamespace() default ""; + + boolean required() default false; + + String value(); + } + + /* compiled from: JsonAppend */ + /* renamed from: b.g.a.c.y.b$b reason: collision with other inner class name */ + public @interface AbstractC0075b { + p.a include() default p.a.NON_NULL; + + String name() default ""; + + String namespace() default ""; + + boolean required() default false; + + Class type() default Object.class; + + Class value(); + } + + a[] attrs() default {}; + + boolean prepend() default false; + + AbstractC0075b[] props() default {}; +} diff --git a/app/src/main/java/b/g/a/c/y/c.java b/app/src/main/java/b/g/a/c/y/c.java new file mode 100644 index 0000000000..b5f20ac472 --- /dev/null +++ b/app/src/main/java/b/g/a/c/y/c.java @@ -0,0 +1,11 @@ +package b.g.a.c.y; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonDeserialize */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface c { +} diff --git a/app/src/main/java/b/g/a/c/y/d.java b/app/src/main/java/b/g/a/c/y/d.java new file mode 100644 index 0000000000..2424d48097 --- /dev/null +++ b/app/src/main/java/b/g/a/c/y/d.java @@ -0,0 +1,13 @@ +package b.g.a.c.y; + +import b.g.a.c.u; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonNaming */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +public @interface d { + Class value() default u.class; +} diff --git a/app/src/main/java/b/g/a/c/y/e.java b/app/src/main/java/b/g/a/c/y/e.java new file mode 100644 index 0000000000..f46f2707bc --- /dev/null +++ b/app/src/main/java/b/g/a/c/y/e.java @@ -0,0 +1,53 @@ +package b.g.a.c.y; + +import b.g.a.c.i0.e; +import b.g.a.c.n; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonSerialize */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface e { + + /* compiled from: JsonSerialize */ + @Deprecated + public enum a { + ALWAYS, + NON_NULL, + NON_DEFAULT, + NON_EMPTY, + DEFAULT_INCLUSION + } + + /* compiled from: JsonSerialize */ + public enum b { + DYNAMIC, + STATIC, + DEFAULT_TYPING + } + + Class as() default Void.class; + + Class contentAs() default Void.class; + + Class contentConverter() default e.a.class; + + Class contentUsing() default n.a.class; + + Class converter() default e.a.class; + + @Deprecated + a include() default a.DEFAULT_INCLUSION; + + Class keyAs() default Void.class; + + Class keyUsing() default n.a.class; + + Class nullsUsing() default n.a.class; + + b typing() default b.DEFAULT_TYPING; + + Class using() default n.a.class; +} diff --git a/app/src/main/java/b/g/a/c/y/f.java b/app/src/main/java/b/g/a/c/y/f.java new file mode 100644 index 0000000000..fe90d2301b --- /dev/null +++ b/app/src/main/java/b/g/a/c/y/f.java @@ -0,0 +1,13 @@ +package b.g.a.c.y; + +import b.g.a.c.e0.e; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonTypeIdResolver */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface f { + Class value(); +} diff --git a/app/src/main/java/b/g/a/c/y/g.java b/app/src/main/java/b/g/a/c/y/g.java new file mode 100644 index 0000000000..eac549e261 --- /dev/null +++ b/app/src/main/java/b/g/a/c/y/g.java @@ -0,0 +1,13 @@ +package b.g.a.c.y; + +import b.g.a.c.e0.f; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonTypeResolver */ +@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +public @interface g { + Class> value(); +} diff --git a/app/src/main/java/b/g/a/c/y/h.java b/app/src/main/java/b/g/a/c/y/h.java new file mode 100644 index 0000000000..8db4da8551 --- /dev/null +++ b/app/src/main/java/b/g/a/c/y/h.java @@ -0,0 +1,4 @@ +package b.g.a.c.y; +/* compiled from: NoClass */ +public final class h { +} diff --git a/app/src/main/java/b/g/a/c/z/a.java b/app/src/main/java/b/g/a/c/z/a.java new file mode 100644 index 0000000000..26bf9df1ec --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/a.java @@ -0,0 +1,45 @@ +package b.g.a.c.z; + +import b.g.a.c.b; +import b.g.a.c.c0.a; +import b.g.a.c.c0.t; +import b.g.a.c.e0.c; +import b.g.a.c.e0.f; +import b.g.a.c.h0.n; +import b.g.a.c.u; +import java.io.Serializable; +import java.text.DateFormat; +import java.util.Locale; +import java.util.TimeZone; +/* compiled from: BaseSettings */ +public final class a implements Serializable { + public static final TimeZone j = TimeZone.getTimeZone("UTC"); + private static final long serialVersionUID = 1; + public final a.AbstractC0074a _accessorNaming; + public final b _annotationIntrospector; + public final t _classIntrospector; + public final DateFormat _dateFormat; + public final b.g.a.b.a _defaultBase64; + public final k _handlerInstantiator; + public final Locale _locale; + public final u _propertyNamingStrategy; + public final TimeZone _timeZone; + public final n _typeFactory; + public final f _typeResolverBuilder; + public final c _typeValidator; + + /* JADX WARN: Incorrect args count in method signature: (Lb/g/a/c/c0/t;Lb/g/a/c/b;Lb/g/a/c/u;Lb/g/a/c/h0/n;Lb/g/a/c/e0/f<*>;Ljava/text/DateFormat;Lb/g/a/c/z/k;Ljava/util/Locale;Ljava/util/TimeZone;Lb/g/a/b/a;Lb/g/a/c/e0/c;Lb/g/a/c/c0/a$a;)V */ + public a(t tVar, b bVar, u uVar, n nVar, f fVar, DateFormat dateFormat, Locale locale, TimeZone timeZone, b.g.a.b.a aVar, c cVar, a.AbstractC0074a aVar2) { + this._classIntrospector = tVar; + this._annotationIntrospector = bVar; + this._propertyNamingStrategy = uVar; + this._typeFactory = nVar; + this._typeResolverBuilder = fVar; + this._dateFormat = dateFormat; + this._locale = locale; + this._timeZone = timeZone; + this._defaultBase64 = aVar; + this._typeValidator = cVar; + this._accessorNaming = aVar2; + } +} diff --git a/app/src/main/java/b/g/a/c/z/b.java b/app/src/main/java/b/g/a/c/z/b.java new file mode 100644 index 0000000000..67bb15be77 --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/b.java @@ -0,0 +1,8 @@ +package b.g.a.c.z; +/* compiled from: CoercionAction */ +public enum b { + Fail, + TryConvert, + AsNull, + AsEmpty +} diff --git a/app/src/main/java/b/g/a/c/z/c.java b/app/src/main/java/b/g/a/c/z/c.java new file mode 100644 index 0000000000..b7107c786f --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/c.java @@ -0,0 +1,15 @@ +package b.g.a.c.z; + +import b.c.a.y.b; +import java.io.Serializable; +/* compiled from: CoercionConfig */ +public class c implements Serializable { + public static final int j = 10; + private static final long serialVersionUID = 1; + public Boolean _acceptBlankAsEmpty = Boolean.FALSE; + public final b[] _coercionsByShape = new b[j]; + + static { + b.com$fasterxml$jackson$databind$cfg$CoercionInputShape$s$values(); + } +} diff --git a/app/src/main/java/b/g/a/c/z/d.java b/app/src/main/java/b/g/a/c/z/d.java new file mode 100644 index 0000000000..a52aa53a49 --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/d.java @@ -0,0 +1,24 @@ +package b.g.a.c.z; + +import b.c.a.y.b; +import java.io.Serializable; +import java.util.Map; +/* compiled from: CoercionConfigs */ +public class d implements Serializable { + private static final long serialVersionUID = 1; + public b _defaultAction; + public final n _defaultCoercions = new n(); + public Map, n> _perClassCoercions; + public n[] _perTypeCoercions; + + static { + b.com$fasterxml$jackson$databind$type$LogicalType$s$values(); + } + + public d() { + b bVar = b.TryConvert; + this._defaultAction = bVar; + this._perTypeCoercions = null; + this._perClassCoercions = null; + } +} diff --git a/app/src/main/java/b/g/a/c/z/e.java b/app/src/main/java/b/g/a/c/z/e.java new file mode 100644 index 0000000000..f9365722f5 --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/e.java @@ -0,0 +1,7 @@ +package b.g.a.c.z; +/* compiled from: ConfigFeature */ +public interface e { + boolean f(); + + int g(); +} diff --git a/app/src/main/java/b/g/a/c/z/f.java b/app/src/main/java/b/g/a/c/z/f.java new file mode 100644 index 0000000000..9ea5d12a7f --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/f.java @@ -0,0 +1,9 @@ +package b.g.a.c.z; +/* compiled from: ConfigOverride */ +public abstract class f { + + /* compiled from: ConfigOverride */ + public static final class a extends f { + public static final a a = new a(); + } +} diff --git a/app/src/main/java/b/g/a/c/z/g.java b/app/src/main/java/b/g/a/c/z/g.java new file mode 100644 index 0000000000..e28e5986cc --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/g.java @@ -0,0 +1,37 @@ +package b.g.a.c.z; + +import b.g.a.a.p; +import b.g.a.a.z; +import b.g.a.c.c0.g0; +import java.io.Serializable; +import java.util.Map; +/* compiled from: ConfigOverrides */ +public class g implements Serializable { + private static final long serialVersionUID = 1; + public p.b _defaultInclusion; + public Boolean _defaultLeniency; + public Boolean _defaultMergeable; + public z.a _defaultSetterInfo; + public Map, ?> _overrides = null; + public g0 _visibilityChecker; + + public g() { + p.b bVar = p.b.j; + p.b bVar2 = p.b.j; + z.a aVar = z.a.j; + g0.a aVar2 = g0.a.j; + this._defaultInclusion = bVar2; + this._defaultSetterInfo = aVar; + this._visibilityChecker = aVar2; + this._defaultMergeable = null; + this._defaultLeniency = null; + } + + public f a(Class cls) { + Map, ?> map = this._overrides; + if (map == null) { + return null; + } + return (f) map.get(cls); + } +} diff --git a/app/src/main/java/b/g/a/c/z/h.java b/app/src/main/java/b/g/a/c/z/h.java new file mode 100644 index 0000000000..ed9fdabfcc --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/h.java @@ -0,0 +1,18 @@ +package b.g.a.c.z; + +import java.io.Serializable; +/* compiled from: ConstructorDetector */ +public final class h implements Serializable { + private static final long serialVersionUID = 1; + public final boolean _allowJDKTypeCtors; + public final boolean _requireCtorAnnotation; + public final a _singleArgMode; + + /* compiled from: ConstructorDetector */ + public enum a { + DELEGATING, + PROPERTIES, + HEURISTIC, + REQUIRE_MODE + } +} diff --git a/app/src/main/java/b/g/a/c/z/i.java b/app/src/main/java/b/g/a/c/z/i.java new file mode 100644 index 0000000000..91e8c0d8fc --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/i.java @@ -0,0 +1,27 @@ +package b.g.a.c.z; + +import java.io.Serializable; +import java.util.Collections; +import java.util.Map; +/* compiled from: ContextAttributes */ +public abstract class i { + + /* compiled from: ContextAttributes */ + public static class a extends i implements Serializable { + public static final a j = new a(Collections.emptyMap()); + public static final Object k = new Object(); + private static final long serialVersionUID = 1; + public final Map _shared; + public transient Map l; + + public a(Map map) { + this._shared = map; + this.l = null; + } + + public a(Map map, Map map2) { + this._shared = map; + this.l = map2; + } + } +} diff --git a/app/src/main/java/b/g/a/c/z/j.java b/app/src/main/java/b/g/a/c/z/j.java new file mode 100644 index 0000000000..98bd7d7e63 --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/j.java @@ -0,0 +1,21 @@ +package b.g.a.c.z; + +import b.g.a.c.a; +import b.g.a.c.a0.c; +import b.g.a.c.a0.g; +import b.g.a.c.a0.h; +import java.io.Serializable; +/* compiled from: DeserializerFactoryConfig */ +public class j implements Serializable { + public static final g[] j = new g[0]; + public static final c[] k = new c[0]; + public static final a[] l = new a[0]; + public static final b.g.a.c.a0.j[] m = new b.g.a.c.a0.j[0]; + public static final h[] n = {new b.g.a.c.a0.l.a()}; + private static final long serialVersionUID = 1; + public final a[] _abstractTypeResolvers = l; + public final g[] _additionalDeserializers = j; + public final h[] _additionalKeyDeserializers = n; + public final c[] _modifiers = k; + public final b.g.a.c.a0.j[] _valueInstantiators = m; +} diff --git a/app/src/main/java/b/g/a/c/z/k.java b/app/src/main/java/b/g/a/c/z/k.java new file mode 100644 index 0000000000..1dfd58e6b0 --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/k.java @@ -0,0 +1,4 @@ +package b.g.a.c.z; +/* compiled from: HandlerInstantiator */ +public abstract class k { +} diff --git a/app/src/main/java/b/g/a/c/z/l.java b/app/src/main/java/b/g/a/c/z/l.java new file mode 100644 index 0000000000..2b47f5f155 --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/l.java @@ -0,0 +1,99 @@ +package b.g.a.c.z; + +import b.g.a.a.i; +import b.g.a.a.p; +import b.g.a.a.z; +import b.g.a.c.b; +import b.g.a.c.c0.c; +import b.g.a.c.c0.g0; +import b.g.a.c.c0.q; +import b.g.a.c.c0.r; +import b.g.a.c.c0.t; +import b.g.a.c.c0.z; +import b.g.a.c.h0.n; +import b.g.a.c.j; +import b.g.a.c.z.l; +import java.io.Serializable; +import java.util.Objects; +/* compiled from: MapperConfig */ +public abstract class l> implements t.a, Serializable { + private static final long serialVersionUID = 2; + public final a _base; + public final int _mapperFeatures; + + static { + p.b bVar = p.b.j; + p.b bVar2 = p.b.j; + i.d dVar = i.d.j; + } + + public l(a aVar, int i) { + this._base = aVar; + this._mapperFeatures = i; + } + + public l(l lVar, int i) { + this._base = lVar._base; + this._mapperFeatures = i; + } + + public static & e> int c(Class cls) { + int i = 0; + for (Enum r3 : (Enum[]) cls.getEnumConstants()) { + e eVar = (e) r3; + if (eVar.f()) { + i |= eVar.g(); + } + } + return i; + } + + public final boolean b() { + return q(b.g.a.c.p.CAN_OVERRIDE_ACCESS_MODIFIERS); + } + + public final j d(Class cls) { + return this._base._typeFactory.b(null, cls, n.l); + } + + public b e() { + return q(b.g.a.c.p.USE_ANNOTATIONS) ? this._base._annotationIntrospector : z.j; + } + + public abstract f f(Class cls); + + public abstract p.b g(Class cls, Class cls2); + + public abstract Boolean h(); + + public abstract i.d i(Class cls); + + public abstract p.b j(Class cls); + + public p.b k(Class cls, p.b bVar) { + Objects.requireNonNull(f(cls)); + return bVar; + } + + public abstract z.a l(); + + public abstract g0 m(Class cls, c cVar); + + public b.g.a.c.c n(j jVar) { + r rVar = (r) this._base._classIntrospector; + q a = rVar.a(this, jVar); + return a == null ? q.e(this, jVar, rVar.b(this, jVar, this)) : a; + } + + public b.g.a.c.c o(Class cls) { + return n(this._base._typeFactory.b(null, cls, n.l)); + } + + public final boolean p() { + return q(b.g.a.c.p.USE_ANNOTATIONS); + } + + public final boolean q(b.g.a.c.p pVar) { + return pVar.h(this._mapperFeatures); + } +} diff --git a/app/src/main/java/b/g/a/c/z/m.java b/app/src/main/java/b/g/a/c/z/m.java new file mode 100644 index 0000000000..744f6d812e --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/m.java @@ -0,0 +1,198 @@ +package b.g.a.c.z; + +import b.g.a.a.e; +import b.g.a.a.i; +import b.g.a.a.n; +import b.g.a.a.p; +import b.g.a.a.z; +import b.g.a.c.b; +import b.g.a.c.c0.c; +import b.g.a.c.c0.d0; +import b.g.a.c.c0.g0; +import b.g.a.c.e0.d; +import b.g.a.c.p; +import b.g.a.c.t; +import b.g.a.c.z.e; +import b.g.a.c.z.f; +import b.g.a.c.z.i; +import b.g.a.c.z.m; +import java.io.Serializable; +import java.util.Map; +import java.util.Objects; +/* compiled from: MapperConfigBase */ +public abstract class m> extends l implements Serializable { + public static final int j = l.c(p.class); + public static final int k = ((((p.AUTO_DETECT_FIELDS.g() | p.AUTO_DETECT_GETTERS.g()) | p.AUTO_DETECT_IS_GETTERS.g()) | p.AUTO_DETECT_SETTERS.g()) | p.AUTO_DETECT_CREATORS.g()); + public final i _attributes; + public final g _configOverrides; + public final d0 _mixIns; + public final t _rootName; + public final b.g.a.c.i0.p _rootNames; + public final d _subtypeResolver; + public final Class _view; + + public m(a aVar, d dVar, d0 d0Var, b.g.a.c.i0.p pVar, g gVar) { + super(aVar, j); + this._mixIns = d0Var; + this._subtypeResolver = dVar; + this._rootNames = pVar; + this._rootName = null; + this._view = null; + this._attributes = i.a.j; + this._configOverrides = gVar; + } + + public m(m mVar, int i) { + super(mVar, i); + this._mixIns = mVar._mixIns; + this._subtypeResolver = mVar._subtypeResolver; + this._rootNames = mVar._rootNames; + this._rootName = mVar._rootName; + this._view = mVar._view; + this._attributes = mVar._attributes; + this._configOverrides = mVar._configOverrides; + } + + @Override // b.g.a.c.c0.t.a + public final Class a(Class cls) { + return this._mixIns.a(cls); + } + + @Override // b.g.a.c.z.l + public final f f(Class cls) { + f a = this._configOverrides.a(cls); + return a == null ? f.a.a : a; + } + + @Override // b.g.a.c.z.l + public final p.b g(Class cls, Class cls2) { + this._configOverrides.a(cls2); + p.b j2 = j(cls); + if (j2 == null) { + return null; + } + return j2.a(null); + } + + @Override // b.g.a.c.z.l + public Boolean h() { + return this._configOverrides._defaultMergeable; + } + + @Override // b.g.a.c.z.l + public final i.d i(Class cls) { + g gVar = this._configOverrides; + Map, ?> map = gVar._overrides; + if (map != null) { + f fVar = (f) map.get(cls); + } + Boolean bool = gVar._defaultLeniency; + if (bool == null) { + return i.d.j; + } + return new i.d("", null, null, null, null, i.b.a, Boolean.valueOf(bool.booleanValue())); + } + + @Override // b.g.a.c.z.l + public final p.b j(Class cls) { + this._configOverrides.a(cls); + p.b bVar = this._configOverrides._defaultInclusion; + if (bVar == null) { + return null; + } + return bVar.a(null); + } + + @Override // b.g.a.c.z.l + public final z.a l() { + return this._configOverrides._defaultSetterInfo; + } + + @Override // b.g.a.c.z.l + public final g0 m(Class cls, c cVar) { + e.a aVar = e.a.NONE; + g0 g0Var = this._configOverrides._visibilityChecker; + int i = this._mapperFeatures; + int i2 = k; + g0.a aVar2 = g0Var; + if ((i & i2) != i2) { + g0.a aVar3 = g0Var; + if (!q(b.g.a.c.p.AUTO_DETECT_FIELDS)) { + g0.a aVar4 = (g0.a) g0Var; + e.a aVar5 = aVar4._fieldMinLevel; + aVar3 = aVar4; + if (aVar5 != aVar) { + aVar3 = new g0.a(aVar4._getterMinLevel, aVar4._isGetterMinLevel, aVar4._setterMinLevel, aVar4._creatorMinLevel, aVar); + } + } + g0.a aVar6 = aVar3; + if (!q(b.g.a.c.p.AUTO_DETECT_GETTERS)) { + g0.a aVar7 = (g0.a) aVar3; + e.a aVar8 = aVar7._getterMinLevel; + aVar6 = aVar7; + if (aVar8 != aVar) { + aVar6 = new g0.a(aVar, aVar7._isGetterMinLevel, aVar7._setterMinLevel, aVar7._creatorMinLevel, aVar7._fieldMinLevel); + } + } + g0.a aVar9 = aVar6; + if (!q(b.g.a.c.p.AUTO_DETECT_IS_GETTERS)) { + g0.a aVar10 = (g0.a) aVar6; + e.a aVar11 = aVar10._isGetterMinLevel; + aVar9 = aVar10; + if (aVar11 != aVar) { + aVar9 = new g0.a(aVar10._getterMinLevel, aVar, aVar10._setterMinLevel, aVar10._creatorMinLevel, aVar10._fieldMinLevel); + } + } + g0.a aVar12 = aVar9; + if (!q(b.g.a.c.p.AUTO_DETECT_SETTERS)) { + g0.a aVar13 = (g0.a) aVar9; + e.a aVar14 = aVar13._setterMinLevel; + aVar12 = aVar13; + if (aVar14 != aVar) { + aVar12 = new g0.a(aVar13._getterMinLevel, aVar13._isGetterMinLevel, aVar, aVar13._creatorMinLevel, aVar13._fieldMinLevel); + } + } + aVar2 = aVar12; + if (!q(b.g.a.c.p.AUTO_DETECT_CREATORS)) { + g0.a aVar15 = (g0.a) aVar12; + e.a aVar16 = aVar15._creatorMinLevel; + aVar2 = aVar15; + if (aVar16 != aVar) { + aVar2 = new g0.a(aVar15._getterMinLevel, aVar15._isGetterMinLevel, aVar15._setterMinLevel, aVar, aVar15._fieldMinLevel); + } + } + } + b e = e(); + g0 g0Var2 = aVar2; + if (e != null) { + g0Var2 = e.b(cVar, aVar2); + } + if (this._configOverrides.a(cls) == null) { + return g0Var2; + } + g0.a aVar17 = (g0.a) g0Var2; + Objects.requireNonNull(aVar17); + return aVar17; + } + + public abstract T r(int i); + + public final n.a s(Class cls, c cVar) { + b e = e(); + n.a x2 = e == null ? null : e.x(this, cVar); + this._configOverrides.a(cls); + n.a aVar = n.a.j; + if (x2 == null) { + return null; + } + return x2; + } + + public final T t(b.g.a.c.p... pVarArr) { + int i = this._mapperFeatures; + for (b.g.a.c.p pVar : pVarArr) { + i &= ~pVar.g(); + } + return i == this._mapperFeatures ? this : r(i); + } +} diff --git a/app/src/main/java/b/g/a/c/z/n.java b/app/src/main/java/b/g/a/c/z/n.java new file mode 100644 index 0000000000..26468bd73f --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/n.java @@ -0,0 +1,7 @@ +package b.g.a.c.z; + +import java.io.Serializable; +/* compiled from: MutableCoercionConfig */ +public class n extends c implements Serializable { + private static final long serialVersionUID = 1; +} diff --git a/app/src/main/java/b/g/a/c/z/o.java b/app/src/main/java/b/g/a/c/z/o.java new file mode 100644 index 0000000000..71dc9d2387 --- /dev/null +++ b/app/src/main/java/b/g/a/c/z/o.java @@ -0,0 +1,29 @@ +package b.g.a.c.z; + +import b.g.a.c.g0.g; +import b.g.a.c.g0.r; +import b.g.a.c.i0.b; +import java.io.Serializable; +/* compiled from: SerializerFactoryConfig */ +public final class o implements Serializable { + public static final r[] j = new r[0]; + public static final g[] k = new g[0]; + private static final long serialVersionUID = 1; + public final r[] _additionalKeySerializers; + public final r[] _additionalSerializers; + public final g[] _modifiers = k; + + public o() { + r[] rVarArr = j; + this._additionalSerializers = rVarArr; + this._additionalKeySerializers = rVarArr; + } + + public boolean a() { + return this._modifiers.length > 0; + } + + public Iterable b() { + return new b(this._modifiers); + } +} diff --git a/app/src/main/java/b/h/a/a/a.java b/app/src/main/java/b/h/a/a/a.java new file mode 100644 index 0000000000..0efea956a1 --- /dev/null +++ b/app/src/main/java/b/h/a/a/a.java @@ -0,0 +1,82 @@ +package b.h.a.a; + +import android.annotation.TargetApi; +import android.content.Context; +import android.graphics.Bitmap; +import android.renderscript.Allocation; +import android.renderscript.Element; +import android.renderscript.RSRuntimeException; +import android.renderscript.RenderScript; +import android.renderscript.ScriptIntrinsicBlur; +/* compiled from: AndroidStockBlurImpl */ +@TargetApi(17) +public class a implements c { + public static Boolean a; + + /* renamed from: b reason: collision with root package name */ + public RenderScript f725b; + public ScriptIntrinsicBlur c; + public Allocation d; + public Allocation e; + + @Override // b.h.a.a.c + public void a(Bitmap bitmap, Bitmap bitmap2) { + this.d.copyFrom(bitmap); + this.c.setInput(this.d); + this.c.forEach(this.e); + this.e.copyTo(bitmap2); + } + + @Override // b.h.a.a.c + public boolean b(Context context, Bitmap bitmap, float f) { + boolean z2 = true; + if (this.f725b == null) { + try { + RenderScript create = RenderScript.create(context); + this.f725b = create; + this.c = ScriptIntrinsicBlur.create(create, Element.U8_4(create)); + } catch (RSRuntimeException e) { + if (a == null && context != null) { + a = Boolean.valueOf((context.getApplicationInfo().flags & 2) != 0); + } + if (a != Boolean.TRUE) { + z2 = false; + } + if (!z2) { + release(); + return false; + } + throw e; + } + } + this.c.setRadius(f); + Allocation createFromBitmap = Allocation.createFromBitmap(this.f725b, bitmap, Allocation.MipmapControl.MIPMAP_NONE, 1); + this.d = createFromBitmap; + this.e = Allocation.createTyped(this.f725b, createFromBitmap.getType()); + return true; + } + + @Override // b.h.a.a.c + public void release() { + Allocation allocation = this.d; + if (allocation != null) { + allocation.destroy(); + this.d = null; + } + Allocation allocation2 = this.e; + if (allocation2 != null) { + allocation2.destroy(); + this.e = null; + } + ScriptIntrinsicBlur scriptIntrinsicBlur = this.c; + if (scriptIntrinsicBlur != null) { + scriptIntrinsicBlur.destroy(); + this.c = null; + } + RenderScript renderScript = this.f725b; + if (renderScript != null) { + renderScript.destroy(); + this.f725b = null; + } + } +} diff --git a/app/src/main/java/b/h/a/a/b.java b/app/src/main/java/b/h/a/a/b.java new file mode 100644 index 0000000000..8722e7fd9b --- /dev/null +++ b/app/src/main/java/b/h/a/a/b.java @@ -0,0 +1,80 @@ +package b.h.a.a; + +import android.content.Context; +import android.graphics.Bitmap; +import android.renderscript.RSRuntimeException; +import androidx.renderscript.Allocation; +import androidx.renderscript.Element; +import androidx.renderscript.RenderScript; +import androidx.renderscript.ScriptIntrinsicBlur; +/* compiled from: AndroidXBlurImpl */ +public class b implements c { + public static Boolean a; + + /* renamed from: b reason: collision with root package name */ + public RenderScript f726b; + public ScriptIntrinsicBlur c; + public Allocation d; + public Allocation e; + + @Override // b.h.a.a.c + public void a(Bitmap bitmap, Bitmap bitmap2) { + this.d.copyFrom(bitmap); + this.c.setInput(this.d); + this.c.forEach(this.e); + this.e.copyTo(bitmap2); + } + + @Override // b.h.a.a.c + public boolean b(Context context, Bitmap bitmap, float f) { + boolean z2 = true; + if (this.f726b == null) { + try { + RenderScript create = RenderScript.create(context); + this.f726b = create; + this.c = ScriptIntrinsicBlur.create(create, Element.U8_4(create)); + } catch (RSRuntimeException e) { + if (a == null && context != null) { + a = Boolean.valueOf((context.getApplicationInfo().flags & 2) != 0); + } + if (a != Boolean.TRUE) { + z2 = false; + } + if (!z2) { + release(); + return false; + } + throw e; + } + } + this.c.setRadius(f); + Allocation createFromBitmap = Allocation.createFromBitmap(this.f726b, bitmap, Allocation.MipmapControl.MIPMAP_NONE, 1); + this.d = createFromBitmap; + this.e = Allocation.createTyped(this.f726b, createFromBitmap.getType()); + return true; + } + + @Override // b.h.a.a.c + public void release() { + Allocation allocation = this.d; + if (allocation != null) { + allocation.destroy(); + this.d = null; + } + Allocation allocation2 = this.e; + if (allocation2 != null) { + allocation2.destroy(); + this.e = null; + } + ScriptIntrinsicBlur scriptIntrinsicBlur = this.c; + if (scriptIntrinsicBlur != null) { + scriptIntrinsicBlur.destroy(); + this.c = null; + } + RenderScript renderScript = this.f726b; + if (renderScript != null) { + renderScript.destroy(); + this.f726b = null; + } + } +} diff --git a/app/src/main/java/b/h/a/a/c.java b/app/src/main/java/b/h/a/a/c.java new file mode 100644 index 0000000000..3fe18bbd46 --- /dev/null +++ b/app/src/main/java/b/h/a/a/c.java @@ -0,0 +1,12 @@ +package b.h.a.a; + +import android.content.Context; +import android.graphics.Bitmap; +/* compiled from: BlurImpl */ +public interface c { + void a(Bitmap bitmap, Bitmap bitmap2); + + boolean b(Context context, Bitmap bitmap, float f); + + void release(); +} diff --git a/app/src/main/java/b/h/a/a/d.java b/app/src/main/java/b/h/a/a/d.java new file mode 100644 index 0000000000..8e9de7f45a --- /dev/null +++ b/app/src/main/java/b/h/a/a/d.java @@ -0,0 +1,19 @@ +package b.h.a.a; + +import android.content.Context; +import android.graphics.Bitmap; +/* compiled from: EmptyBlurImpl */ +public class d implements c { + @Override // b.h.a.a.c + public void a(Bitmap bitmap, Bitmap bitmap2) { + } + + @Override // b.h.a.a.c + public boolean b(Context context, Bitmap bitmap, float f) { + return false; + } + + @Override // b.h.a.a.c + public void release() { + } +} diff --git a/app/src/main/java/b/h/a/a/e.java b/app/src/main/java/b/h/a/a/e.java new file mode 100644 index 0000000000..6bfab1247a --- /dev/null +++ b/app/src/main/java/b/h/a/a/e.java @@ -0,0 +1,80 @@ +package b.h.a.a; + +import android.content.Context; +import android.graphics.Bitmap; +import android.renderscript.RSRuntimeException; +import androidx.renderscript.Allocation; +import androidx.renderscript.Element; +import androidx.renderscript.RenderScript; +import androidx.renderscript.ScriptIntrinsicBlur; +/* compiled from: SupportLibraryBlurImpl */ +public class e implements c { + public static Boolean a; + + /* renamed from: b reason: collision with root package name */ + public RenderScript f727b; + public ScriptIntrinsicBlur c; + public Allocation d; + public Allocation e; + + @Override // b.h.a.a.c + public void a(Bitmap bitmap, Bitmap bitmap2) { + this.d.copyFrom(bitmap); + this.c.setInput(this.d); + this.c.forEach(this.e); + this.e.copyTo(bitmap2); + } + + @Override // b.h.a.a.c + public boolean b(Context context, Bitmap bitmap, float f) { + boolean z2 = true; + if (this.f727b == null) { + try { + RenderScript create = RenderScript.create(context); + this.f727b = create; + this.c = ScriptIntrinsicBlur.create(create, Element.U8_4(create)); + } catch (RSRuntimeException e) { + if (a == null && context != null) { + a = Boolean.valueOf((context.getApplicationInfo().flags & 2) != 0); + } + if (a != Boolean.TRUE) { + z2 = false; + } + if (!z2) { + release(); + return false; + } + throw e; + } + } + this.c.setRadius(f); + Allocation createFromBitmap = Allocation.createFromBitmap(this.f727b, bitmap, Allocation.MipmapControl.MIPMAP_NONE, 1); + this.d = createFromBitmap; + this.e = Allocation.createTyped(this.f727b, createFromBitmap.getType()); + return true; + } + + @Override // b.h.a.a.c + public void release() { + Allocation allocation = this.d; + if (allocation != null) { + allocation.destroy(); + this.d = null; + } + Allocation allocation2 = this.e; + if (allocation2 != null) { + allocation2.destroy(); + this.e = null; + } + ScriptIntrinsicBlur scriptIntrinsicBlur = this.c; + if (scriptIntrinsicBlur != null) { + scriptIntrinsicBlur.destroy(); + this.c = null; + } + RenderScript renderScript = this.f727b; + if (renderScript != null) { + renderScript.destroy(); + this.f727b = null; + } + } +} diff --git a/app/src/main/java/b/i/a/a/a.java b/app/src/main/java/b/i/a/a/a.java new file mode 100644 index 0000000000..171da5c8be --- /dev/null +++ b/app/src/main/java/b/i/a/a/a.java @@ -0,0 +1,17 @@ +package b.i.a.a; + +import android.os.IBinder; +import android.os.IInterface; +/* compiled from: BaseProxy */ +public class a implements IInterface { + public final IBinder a; + + public a(IBinder iBinder) { + this.a = iBinder; + } + + @Override // android.os.IInterface + public final IBinder asBinder() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/a/b.java b/app/src/main/java/b/i/a/a/b.java new file mode 100644 index 0000000000..f2dc235942 --- /dev/null +++ b/app/src/main/java/b/i/a/a/b.java @@ -0,0 +1,7 @@ +package b.i.a.a; + +import android.os.Binder; +import android.os.IInterface; +/* compiled from: BaseStub */ +public class b extends Binder implements IInterface { +} diff --git a/app/src/main/java/b/i/a/a/c.java b/app/src/main/java/b/i/a/a/c.java new file mode 100644 index 0000000000..5f014b30d4 --- /dev/null +++ b/app/src/main/java/b/i/a/a/c.java @@ -0,0 +1,9 @@ +package b.i.a.a; +/* compiled from: Codecs */ +public final class c { + public static final /* synthetic */ int a = 0; + + static { + c.class.getClassLoader(); + } +} diff --git a/app/src/main/java/b/i/a/b/a.java b/app/src/main/java/b/i/a/b/a.java new file mode 100644 index 0000000000..d667aee4db --- /dev/null +++ b/app/src/main/java/b/i/a/b/a.java @@ -0,0 +1,53 @@ +package b.i.a.b; + +import androidx.annotation.Nullable; +import java.util.Objects; +/* compiled from: AutoValue_Event */ +public final class a extends c { + public final T a; + + /* renamed from: b reason: collision with root package name */ + public final d f728b; + + public a(@Nullable Integer num, T t, d dVar) { + Objects.requireNonNull(t, "Null payload"); + this.a = t; + Objects.requireNonNull(dVar, "Null priority"); + this.f728b = dVar; + } + + @Override // b.i.a.b.c + @Nullable + public Integer a() { + return null; + } + + @Override // b.i.a.b.c + public T b() { + return this.a; + } + + @Override // b.i.a.b.c + public d c() { + return this.f728b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof c)) { + return false; + } + c cVar = (c) obj; + return cVar.a() == null && this.a.equals(cVar.b()) && this.f728b.equals(cVar.c()); + } + + public int hashCode() { + return this.f728b.hashCode() ^ ((-721379959 ^ this.a.hashCode()) * 1000003); + } + + public String toString() { + return "Event{code=" + ((Object) null) + ", payload=" + ((Object) this.a) + ", priority=" + this.f728b + "}"; + } +} diff --git a/app/src/main/java/b/i/a/b/b.java b/app/src/main/java/b/i/a/b/b.java new file mode 100644 index 0000000000..fa7a4d0af5 --- /dev/null +++ b/app/src/main/java/b/i/a/b/b.java @@ -0,0 +1,34 @@ +package b.i.a.b; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.d.b.a.a; +import java.util.Objects; +/* compiled from: Encoding */ +public final class b { + public final String a; + + public b(@NonNull String str) { + Objects.requireNonNull(str, "name is null"); + this.a = str; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + return this.a.equals(((b) obj).a); + } + + public int hashCode() { + return this.a.hashCode() ^ 1000003; + } + + @NonNull + public String toString() { + return a.H(a.R("Encoding{name=\""), this.a, "\"}"); + } +} diff --git a/app/src/main/java/b/i/a/b/c.java b/app/src/main/java/b/i/a/b/c.java new file mode 100644 index 0000000000..a31262c50a --- /dev/null +++ b/app/src/main/java/b/i/a/b/c.java @@ -0,0 +1,14 @@ +package b.i.a.b; + +import androidx.annotation.Nullable; +import com.google.auto.value.AutoValue; +/* compiled from: Event */ +@AutoValue +public abstract class c { + @Nullable + public abstract Integer a(); + + public abstract T b(); + + public abstract d c(); +} diff --git a/app/src/main/java/b/i/a/b/d.java b/app/src/main/java/b/i/a/b/d.java new file mode 100644 index 0000000000..0a41162045 --- /dev/null +++ b/app/src/main/java/b/i/a/b/d.java @@ -0,0 +1,7 @@ +package b.i.a.b; +/* compiled from: Priority */ +public enum d { + DEFAULT, + VERY_LOW, + HIGHEST +} diff --git a/app/src/main/java/b/i/a/b/e.java b/app/src/main/java/b/i/a/b/e.java new file mode 100644 index 0000000000..ace4ba25f6 --- /dev/null +++ b/app/src/main/java/b/i/a/b/e.java @@ -0,0 +1,5 @@ +package b.i.a.b; +/* compiled from: Transformer */ +public interface e { + U apply(T t); +} diff --git a/app/src/main/java/b/i/a/b/f.java b/app/src/main/java/b/i/a/b/f.java new file mode 100644 index 0000000000..455bdd93a4 --- /dev/null +++ b/app/src/main/java/b/i/a/b/f.java @@ -0,0 +1,7 @@ +package b.i.a.b; +/* compiled from: Transport */ +public interface f { + void a(c cVar); + + void b(c cVar, h hVar); +} diff --git a/app/src/main/java/b/i/a/b/g.java b/app/src/main/java/b/i/a/b/g.java new file mode 100644 index 0000000000..7ab167bd51 --- /dev/null +++ b/app/src/main/java/b/i/a/b/g.java @@ -0,0 +1,5 @@ +package b.i.a.b; +/* compiled from: TransportFactory */ +public interface g { + f a(String str, Class cls, b bVar, e eVar); +} diff --git a/app/src/main/java/b/i/a/b/h.java b/app/src/main/java/b/i/a/b/h.java new file mode 100644 index 0000000000..165ed62663 --- /dev/null +++ b/app/src/main/java/b/i/a/b/h.java @@ -0,0 +1,7 @@ +package b.i.a.b; + +import androidx.annotation.Nullable; +/* compiled from: TransportScheduleCallback */ +public interface h { + void a(@Nullable Exception exc); +} diff --git a/app/src/main/java/b/i/a/b/i/a.java b/app/src/main/java/b/i/a/b/i/a.java new file mode 100644 index 0000000000..f07005ae2e --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/a.java @@ -0,0 +1,79 @@ +package b.i.a.b.i; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.b.b; +import b.i.a.b.j.d; +import com.adjust.sdk.Constants; +import java.nio.charset.Charset; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +import java.util.regex.Pattern; +/* compiled from: CCTDestination */ +public final class a implements d { + public static final String a = b.c.a.a0.d.i1("hts/frbslgiggolai.o/0clgbthfra=snpoo", "tp:/ieaeogn.ogepscmvc/o/ac?omtjo_rt3"); + + /* renamed from: b reason: collision with root package name */ + public static final String f729b; + public static final String c; + public static final Set d = Collections.unmodifiableSet(new HashSet(Arrays.asList(new b("proto"), new b("json")))); + public static final a e; + @NonNull + public final String f; + @Nullable + public final String g; + + static { + String i1 = b.c.a.a0.d.i1("hts/frbslgigp.ogepscmv/ieo/eaybtho", "tp:/ieaeogn-agolai.o/1frlglgc/aclg"); + f729b = i1; + String i12 = b.c.a.a0.d.i1("AzSCki82AwsLzKd5O8zo", "IayckHiZRO1EFl1aGoK"); + c = i12; + e = new a(i1, i12); + } + + public a(@NonNull String str, @Nullable String str2) { + this.f = str; + this.g = str2; + } + + @NonNull + public static a a(@NonNull byte[] bArr) { + String str = new String(bArr, Charset.forName(Constants.ENCODING)); + if (str.startsWith("1$")) { + String[] split = str.substring(2).split(Pattern.quote("\\"), 2); + if (split.length == 2) { + String str2 = split[0]; + if (!str2.isEmpty()) { + String str3 = split[1]; + if (str3.isEmpty()) { + str3 = null; + } + return new a(str2, str3); + } + throw new IllegalArgumentException("Missing endpoint in CCTDestination extras"); + } + throw new IllegalArgumentException("Extra is not a valid encoded LegacyFlgDestination"); + } + throw new IllegalArgumentException("Version marker missing from extras"); + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0021: APUT (r1v1 java.lang.Object[]), (3 ??[int, float, short, byte, char]), (r0v1 java.lang.String) */ + @Nullable + public byte[] b() { + String str = this.g; + if (str == null && this.f == null) { + return null; + } + Object[] objArr = new Object[4]; + objArr[0] = "1$"; + objArr[1] = this.f; + objArr[2] = "\\"; + if (str == null) { + str = ""; + } + objArr[3] = str; + return String.format("%s%s%s%s", objArr).getBytes(Charset.forName(Constants.ENCODING)); + } +} diff --git a/app/src/main/java/b/i/a/b/i/b.java b/app/src/main/java/b/i/a/b/i/b.java new file mode 100644 index 0000000000..46d8a2e34c --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/b.java @@ -0,0 +1,102 @@ +package b.i.a.b.i; + +import androidx.browser.trusted.sharing.ShareTarget; +import b.i.a.b.i.d; +import b.i.a.b.i.e.h; +import b.i.a.b.i.e.n; +import com.discord.restapi.RestAPIBuilder; +import com.google.firebase.encoders.EncodingException; +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.io.OutputStreamWriter; +import java.net.ConnectException; +import java.net.HttpURLConnection; +import java.net.URL; +import java.net.UnknownHostException; +import java.util.Objects; +import java.util.zip.GZIPInputStream; +import java.util.zip.GZIPOutputStream; +/* compiled from: CctTransportBackend */ +public final /* synthetic */ class b { + public final d a; + + public b(d dVar) { + this.a = dVar; + } + + public Object a(Object obj) { + d dVar = this.a; + d.a aVar = (d.a) obj; + Objects.requireNonNull(dVar); + b.c.a.a0.d.W("CctTransportBackend", "Making request to: %s", aVar.a); + HttpURLConnection httpURLConnection = (HttpURLConnection) aVar.a.openConnection(); + httpURLConnection.setConnectTimeout(30000); + httpURLConnection.setReadTimeout(dVar.g); + httpURLConnection.setDoOutput(true); + httpURLConnection.setInstanceFollowRedirects(false); + httpURLConnection.setRequestMethod(ShareTarget.METHOD_POST); + httpURLConnection.setRequestProperty("User-Agent", String.format("datatransport/%s android/", "2.3.2")); + httpURLConnection.setRequestProperty("Content-Encoding", "gzip"); + httpURLConnection.setRequestProperty("Content-Type", RestAPIBuilder.CONTENT_TYPE_JSON); + httpURLConnection.setRequestProperty("Accept-Encoding", "gzip"); + String str = aVar.c; + if (str != null) { + httpURLConnection.setRequestProperty("X-Goog-Api-Key", str); + } + try { + OutputStream outputStream = httpURLConnection.getOutputStream(); + try { + GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream); + try { + ((b.i.c.p.h.d) dVar.a).b(aVar.f731b, new BufferedWriter(new OutputStreamWriter(gZIPOutputStream))); + gZIPOutputStream.close(); + if (outputStream != null) { + outputStream.close(); + } + int responseCode = httpURLConnection.getResponseCode(); + b.c.a.a0.d.K0("CctTransportBackend", "Status Code: " + responseCode); + b.c.a.a0.d.K0("CctTransportBackend", "Content-Type: " + httpURLConnection.getHeaderField("Content-Type")); + b.c.a.a0.d.K0("CctTransportBackend", "Content-Encoding: " + httpURLConnection.getHeaderField("Content-Encoding")); + if (responseCode == 302 || responseCode == 301 || responseCode == 307) { + return new d.b(responseCode, new URL(httpURLConnection.getHeaderField("Location")), 0); + } + if (responseCode != 200) { + return new d.b(responseCode, null, 0); + } + InputStream inputStream = httpURLConnection.getInputStream(); + try { + InputStream gZIPInputStream = "gzip".equals(httpURLConnection.getHeaderField("Content-Encoding")) ? new GZIPInputStream(inputStream) : inputStream; + try { + d.b bVar = new d.b(responseCode, null, ((h) n.a(new BufferedReader(new InputStreamReader(gZIPInputStream)))).a); + if (gZIPInputStream != null) { + gZIPInputStream.close(); + } + if (inputStream != null) { + inputStream.close(); + } + return bVar; + } catch (Throwable unused) { + } + } catch (Throwable unused2) { + } + } catch (Throwable unused3) { + } + throw th; + throw th; + throw th; + throw th; + } catch (Throwable unused4) { + } + } catch (ConnectException | UnknownHostException e) { + b.c.a.a0.d.b0("CctTransportBackend", "Couldn't open connection, returning with 500", e); + return new d.b(500, null, 0); + } catch (EncodingException | IOException e2) { + b.c.a.a0.d.b0("CctTransportBackend", "Couldn't encode request, returning with 400", e2); + return new d.b(400, null, 0); + } + } +} diff --git a/app/src/main/java/b/i/a/b/i/c.java b/app/src/main/java/b/i/a/b/i/c.java new file mode 100644 index 0000000000..0f9c5138fa --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/c.java @@ -0,0 +1,7 @@ +package b.i.a.b.i; + +import b.i.a.b.j.s.a; +/* compiled from: CctTransportBackend */ +public final /* synthetic */ class c implements a { + public static final c a = new c(); +} diff --git a/app/src/main/java/b/i/a/b/i/d.java b/app/src/main/java/b/i/a/b/i/d.java new file mode 100644 index 0000000000..7c74178863 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/d.java @@ -0,0 +1,283 @@ +package b.i.a.b.i; + +import android.content.Context; +import android.content.pm.PackageManager; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.os.Build; +import android.telephony.TelephonyManager; +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.b.i.e.c; +import b.i.a.b.i.e.f; +import b.i.a.b.i.e.i; +import b.i.a.b.i.e.j; +import b.i.a.b.i.e.k; +import b.i.a.b.i.e.o; +import b.i.a.b.i.e.p; +import b.i.a.b.j.f; +import b.i.a.b.j.q.f; +import b.i.a.b.j.q.g; +import b.i.a.b.j.q.m; +import b.i.c.p.h.e; +import com.adjust.sdk.Constants; +import java.io.IOException; +import java.net.MalformedURLException; +import java.net.URL; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.TimeZone; +/* compiled from: CctTransportBackend */ +public final class d implements m { + public final b.i.c.p.a a; + + /* renamed from: b reason: collision with root package name */ + public final ConnectivityManager f730b; + public final Context c; + public final URL d = c(a.a); + public final b.i.a.b.j.v.a e; + public final b.i.a.b.j.v.a f; + public final int g; + + /* compiled from: CctTransportBackend */ + public static final class a { + public final URL a; + + /* renamed from: b reason: collision with root package name */ + public final j f731b; + @Nullable + public final String c; + + public a(URL url, j jVar, @Nullable String str) { + this.a = url; + this.f731b = jVar; + this.c = str; + } + } + + /* compiled from: CctTransportBackend */ + public static final class b { + public final int a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final URL f732b; + public final long c; + + public b(int i, @Nullable URL url, long j) { + this.a = i; + this.f732b = url; + this.c = j; + } + } + + public d(Context context, b.i.a.b.j.v.a aVar, b.i.a.b.j.v.a aVar2) { + e eVar = new e(); + ((b.i.a.b.i.e.b) b.i.a.b.i.e.b.a).a(eVar); + eVar.e = true; + this.a = new b.i.c.p.h.d(eVar); + this.c = context; + this.f730b = (ConnectivityManager) context.getSystemService("connectivity"); + this.e = aVar2; + this.f = aVar; + this.g = 40000; + } + + public static URL c(String str) { + try { + return new URL(str); + } catch (MalformedURLException e) { + throw new IllegalArgumentException(b.d.b.a.a.v("Invalid url: ", str), e); + } + } + + @Override // b.i.a.b.j.q.m + public g a(f fVar) { + g.a aVar; + IOException e; + String str; + Integer num; + g.a aVar2; + f.b bVar; + g.a aVar3 = g.a.TRANSIENT_ERROR; + HashMap hashMap = new HashMap(); + b.i.a.b.j.q.a aVar4 = (b.i.a.b.j.q.a) fVar; + for (b.i.a.b.j.f fVar2 : aVar4.a) { + String g = fVar2.g(); + if (!hashMap.containsKey(g)) { + ArrayList arrayList = new ArrayList(); + arrayList.add(fVar2); + hashMap.put(g, arrayList); + } else { + ((List) hashMap.get(g)).add(fVar2); + } + } + ArrayList arrayList2 = new ArrayList(); + Iterator it = hashMap.entrySet().iterator(); + while (true) { + String str2 = null; + if (it.hasNext()) { + Map.Entry entry = (Map.Entry) it.next(); + b.i.a.b.j.f fVar3 = (b.i.a.b.j.f) ((List) entry.getValue()).get(0); + p pVar = p.DEFAULT; + Long valueOf = Long.valueOf(this.f.a()); + Long valueOf2 = Long.valueOf(this.e.a()); + b.i.a.b.i.e.e eVar = new b.i.a.b.i.e.e(k.a.ANDROID_FIREBASE, new c(Integer.valueOf(fVar3.f("sdk-version")), fVar3.a("model"), fVar3.a("hardware"), fVar3.a("device"), fVar3.a("product"), fVar3.a("os-uild"), fVar3.a("manufacturer"), fVar3.a("fingerprint"), fVar3.a("locale"), fVar3.a("country"), fVar3.a("mcc_mnc"), fVar3.a("application_build"), null), null); + try { + str = null; + num = Integer.valueOf(Integer.parseInt((String) entry.getKey())); + } catch (NumberFormatException unused) { + num = null; + str = (String) entry.getKey(); + } + ArrayList arrayList3 = new ArrayList(); + Iterator it2 = ((List) entry.getValue()).iterator(); + while (it2.hasNext()) { + b.i.a.b.j.f fVar4 = (b.i.a.b.j.f) it2.next(); + b.i.a.b.j.e d = fVar4.d(); + b.i.a.b.b bVar2 = d.a; + if (bVar2.equals(new b.i.a.b.b("proto"))) { + byte[] bArr = d.f752b; + bVar = new f.b(); + bVar.d = bArr; + } else if (bVar2.equals(new b.i.a.b.b("json"))) { + String str3 = new String(d.f752b, Charset.forName(Constants.ENCODING)); + bVar = new f.b(); + bVar.e = str3; + } else { + aVar2 = aVar3; + Log.w(b.c.a.a0.d.C0("CctTransportBackend"), String.format("Received event of unsupported encoding %s. Skipping...", bVar2)); + it2 = it2; + it = it; + aVar3 = aVar2; + } + bVar.a = Long.valueOf(fVar4.e()); + bVar.c = Long.valueOf(fVar4.h()); + String str4 = fVar4.b().get("tz-offset"); + bVar.f = Long.valueOf(str4 == null ? 0 : Long.valueOf(str4).longValue()); + aVar2 = aVar3; + bVar.g = new i(o.b.C.get(fVar4.f("net-type")), o.a.E.get(fVar4.f("mobile-subtype")), null); + if (fVar4.c() != null) { + bVar.f736b = fVar4.c(); + } + String str5 = bVar.a == null ? " eventTimeMs" : ""; + if (bVar.c == null) { + str5 = b.d.b.a.a.v(str5, " eventUptimeMs"); + } + if (bVar.f == null) { + str5 = b.d.b.a.a.v(str5, " timezoneOffsetSeconds"); + } + if (str5.isEmpty()) { + arrayList3.add(new b.i.a.b.i.e.f(bVar.a.longValue(), bVar.f736b, bVar.c.longValue(), bVar.d, bVar.e, bVar.f.longValue(), bVar.g, null)); + it2 = it2; + it = it; + aVar3 = aVar2; + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str5)); + } + } + String str6 = valueOf == null ? " requestTimeMs" : ""; + if (valueOf2 == null) { + str6 = b.d.b.a.a.v(str6, " requestUptimeMs"); + } + if (str6.isEmpty()) { + arrayList2.add(new b.i.a.b.i.e.g(valueOf.longValue(), valueOf2.longValue(), eVar, num, str, arrayList3, pVar, null)); + it = it; + aVar3 = aVar3; + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str6)); + } + } else { + b.i.a.b.i.e.d dVar = new b.i.a.b.i.e.d(arrayList2); + URL url = this.d; + if (aVar4.f757b != null) { + try { + a a2 = a.a(((b.i.a.b.j.q.a) fVar).f757b); + String str7 = a2.g; + if (str7 != null) { + str2 = str7; + } + String str8 = a2.f; + if (str8 != null) { + url = c(str8); + } + } catch (IllegalArgumentException unused2) { + return g.a(); + } + } + try { + b bVar3 = (b) b.c.a.a0.d.T1(5, new a(url, dVar, str2), new b(this), c.a); + int i = bVar3.a; + if (i == 200) { + return new b.i.a.b.j.q.b(g.a.OK, bVar3.c); + } + if (i < 500) { + if (i != 404) { + return g.a(); + } + } + aVar = aVar3; + try { + return new b.i.a.b.j.q.b(aVar, -1); + } catch (IOException e2) { + e = e2; + b.c.a.a0.d.b0("CctTransportBackend", "Could not make request to the backend", e); + return new b.i.a.b.j.q.b(aVar, -1); + } + } catch (IOException e3) { + e = e3; + aVar = aVar3; + b.c.a.a0.d.b0("CctTransportBackend", "Could not make request to the backend", e); + return new b.i.a.b.j.q.b(aVar, -1); + } + } + } + } + + @Override // b.i.a.b.j.q.m + public b.i.a.b.j.f b(b.i.a.b.j.f fVar) { + int i; + NetworkInfo activeNetworkInfo = this.f730b.getActiveNetworkInfo(); + f.a i2 = fVar.i(); + i2.c().put("sdk-version", String.valueOf(Build.VERSION.SDK_INT)); + i2.c().put("model", Build.MODEL); + i2.c().put("hardware", Build.HARDWARE); + i2.c().put("device", Build.DEVICE); + i2.c().put("product", Build.PRODUCT); + i2.c().put("os-uild", Build.ID); + i2.c().put("manufacturer", Build.MANUFACTURER); + i2.c().put("fingerprint", Build.FINGERPRINT); + Calendar.getInstance(); + i2.c().put("tz-offset", String.valueOf((long) (TimeZone.getDefault().getOffset(Calendar.getInstance().getTimeInMillis()) / 1000))); + i2.c().put("net-type", String.valueOf(activeNetworkInfo == null ? o.b.NONE.f() : activeNetworkInfo.getType())); + int i3 = -1; + if (activeNetworkInfo == null) { + i = o.a.UNKNOWN_MOBILE_SUBTYPE.f(); + } else { + i = activeNetworkInfo.getSubtype(); + if (i == -1) { + i = o.a.COMBINED.f(); + } else if (o.a.E.get(i) == null) { + i = 0; + } + } + i2.c().put("mobile-subtype", String.valueOf(i)); + i2.c().put("country", Locale.getDefault().getCountry()); + i2.c().put("locale", Locale.getDefault().getLanguage()); + i2.c().put("mcc_mnc", ((TelephonyManager) this.c.getSystemService("phone")).getSimOperator()); + Context context = this.c; + try { + i3 = context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionCode; + } catch (PackageManager.NameNotFoundException e) { + b.c.a.a0.d.b0("CctTransportBackend", "Unable to find version code for package", e); + } + i2.c().put("application_build", Integer.toString(i3)); + return i2.b(); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/a.java b/app/src/main/java/b/i/a/b/i/e/a.java new file mode 100644 index 0000000000..1063fe1cf4 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/a.java @@ -0,0 +1,43 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +import com.google.auto.value.AutoValue; +/* compiled from: AndroidClientInfo */ +@AutoValue +public abstract class a { + @Nullable + public abstract String a(); + + @Nullable + public abstract String b(); + + @Nullable + public abstract String c(); + + @Nullable + public abstract String d(); + + @Nullable + public abstract String e(); + + @Nullable + public abstract String f(); + + @Nullable + public abstract String g(); + + @Nullable + public abstract String h(); + + @Nullable + public abstract String i(); + + @Nullable + public abstract String j(); + + @Nullable + public abstract String k(); + + @Nullable + public abstract Integer l(); +} diff --git a/app/src/main/java/b/i/a/b/i/e/b.java b/app/src/main/java/b/i/a/b/i/e/b.java new file mode 100644 index 0000000000..6926da486d --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/b.java @@ -0,0 +1,143 @@ +package b.i.a.b.i.e; + +import java.io.IOException; +/* compiled from: AutoBatchedLogRequestEncoder */ +public final class b implements b.i.c.p.g.a { + public static final b.i.c.p.g.a a = new b(); + + /* compiled from: AutoBatchedLogRequestEncoder */ + public static final class a implements b.i.c.p.c { + public static final a a = new a(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + a aVar = (a) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("sdkVersion", aVar.l()); + dVar2.f("model", aVar.i()); + dVar2.f("hardware", aVar.e()); + dVar2.f("device", aVar.c()); + dVar2.f("product", aVar.k()); + dVar2.f("osBuild", aVar.j()); + dVar2.f("manufacturer", aVar.g()); + dVar2.f("fingerprint", aVar.d()); + dVar2.f("locale", aVar.f()); + dVar2.f("country", aVar.b()); + dVar2.f("mccMnc", aVar.h()); + dVar2.f("applicationBuild", aVar.a()); + } + } + + /* compiled from: AutoBatchedLogRequestEncoder */ + /* renamed from: b.i.a.b.i.e.b$b reason: collision with other inner class name */ + public static final class C0076b implements b.i.c.p.c { + public static final C0076b a = new C0076b(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + dVar.f("logRequest", ((j) obj).a()); + } + } + + /* compiled from: AutoBatchedLogRequestEncoder */ + public static final class c implements b.i.c.p.c { + public static final c a = new c(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + k kVar = (k) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("clientType", kVar.b()); + dVar2.f("androidClientInfo", kVar.a()); + } + } + + /* compiled from: AutoBatchedLogRequestEncoder */ + public static final class d implements b.i.c.p.c { + public static final d a = new d(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + l lVar = (l) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.b("eventTimeMs", lVar.b()); + dVar2.f("eventCode", lVar.a()); + dVar2.b("eventUptimeMs", lVar.c()); + dVar2.f("sourceExtension", lVar.e()); + dVar2.f("sourceExtensionJsonProto3", lVar.f()); + dVar2.b("timezoneOffsetSeconds", lVar.g()); + dVar2.f("networkConnectionInfo", lVar.d()); + } + } + + /* compiled from: AutoBatchedLogRequestEncoder */ + public static final class e implements b.i.c.p.c { + public static final e a = new e(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + m mVar = (m) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.b("requestTimeMs", mVar.f()); + dVar2.b("requestUptimeMs", mVar.g()); + dVar2.f("clientInfo", mVar.a()); + dVar2.f("logSource", mVar.c()); + dVar2.f("logSourceName", mVar.d()); + dVar2.f("logEvent", mVar.b()); + dVar2.f("qosTier", mVar.e()); + } + } + + /* compiled from: AutoBatchedLogRequestEncoder */ + public static final class f implements b.i.c.p.c { + public static final f a = new f(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + o oVar = (o) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("networkType", oVar.b()); + dVar2.f("mobileSubtype", oVar.a()); + } + } + + public void a(b.i.c.p.g.b bVar) { + C0076b bVar2 = C0076b.a; + b.i.c.p.h.e eVar = (b.i.c.p.h.e) bVar; + eVar.f1746b.put(j.class, bVar2); + eVar.c.remove(j.class); + eVar.f1746b.put(d.class, bVar2); + eVar.c.remove(d.class); + e eVar2 = e.a; + eVar.f1746b.put(m.class, eVar2); + eVar.c.remove(m.class); + eVar.f1746b.put(g.class, eVar2); + eVar.c.remove(g.class); + c cVar = c.a; + eVar.f1746b.put(k.class, cVar); + eVar.c.remove(k.class); + eVar.f1746b.put(e.class, cVar); + eVar.c.remove(e.class); + a aVar = a.a; + eVar.f1746b.put(a.class, aVar); + eVar.c.remove(a.class); + eVar.f1746b.put(c.class, aVar); + eVar.c.remove(c.class); + d dVar = d.a; + eVar.f1746b.put(l.class, dVar); + eVar.c.remove(l.class); + eVar.f1746b.put(f.class, dVar); + eVar.c.remove(f.class); + f fVar = f.a; + eVar.f1746b.put(o.class, fVar); + eVar.c.remove(o.class); + eVar.f1746b.put(i.class, fVar); + eVar.c.remove(i.class); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/c.java b/app/src/main/java/b/i/a/b/i/e/c.java new file mode 100644 index 0000000000..f0a4246f1a --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/c.java @@ -0,0 +1,217 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +/* compiled from: AutoValue_AndroidClientInfo */ +public final class c extends a { + public final Integer a; + + /* renamed from: b reason: collision with root package name */ + public final String f733b; + public final String c; + public final String d; + public final String e; + public final String f; + public final String g; + public final String h; + public final String i; + public final String j; + public final String k; + public final String l; + + public c(Integer num, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, a aVar) { + this.a = num; + this.f733b = str; + this.c = str2; + this.d = str3; + this.e = str4; + this.f = str5; + this.g = str6; + this.h = str7; + this.i = str8; + this.j = str9; + this.k = str10; + this.l = str11; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String a() { + return this.l; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String b() { + return this.j; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String c() { + return this.d; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String d() { + return this.h; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String e() { + return this.c; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + Integer num = this.a; + if (num != null ? num.equals(aVar.l()) : aVar.l() == null) { + String str = this.f733b; + if (str != null ? str.equals(aVar.i()) : aVar.i() == null) { + String str2 = this.c; + if (str2 != null ? str2.equals(aVar.e()) : aVar.e() == null) { + String str3 = this.d; + if (str3 != null ? str3.equals(aVar.c()) : aVar.c() == null) { + String str4 = this.e; + if (str4 != null ? str4.equals(aVar.k()) : aVar.k() == null) { + String str5 = this.f; + if (str5 != null ? str5.equals(aVar.j()) : aVar.j() == null) { + String str6 = this.g; + if (str6 != null ? str6.equals(aVar.g()) : aVar.g() == null) { + String str7 = this.h; + if (str7 != null ? str7.equals(aVar.d()) : aVar.d() == null) { + String str8 = this.i; + if (str8 != null ? str8.equals(aVar.f()) : aVar.f() == null) { + String str9 = this.j; + if (str9 != null ? str9.equals(aVar.b()) : aVar.b() == null) { + String str10 = this.k; + if (str10 != null ? str10.equals(aVar.h()) : aVar.h() == null) { + String str11 = this.l; + if (str11 == null) { + if (aVar.a() == null) { + return true; + } + } else if (str11.equals(aVar.a())) { + return true; + } + } + } + } + } + } + } + } + } + } + } + } + return false; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String f() { + return this.i; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String g() { + return this.g; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String h() { + return this.k; + } + + public int hashCode() { + Integer num = this.a; + int i = 0; + int hashCode = ((num == null ? 0 : num.hashCode()) ^ 1000003) * 1000003; + String str = this.f733b; + int hashCode2 = (hashCode ^ (str == null ? 0 : str.hashCode())) * 1000003; + String str2 = this.c; + int hashCode3 = (hashCode2 ^ (str2 == null ? 0 : str2.hashCode())) * 1000003; + String str3 = this.d; + int hashCode4 = (hashCode3 ^ (str3 == null ? 0 : str3.hashCode())) * 1000003; + String str4 = this.e; + int hashCode5 = (hashCode4 ^ (str4 == null ? 0 : str4.hashCode())) * 1000003; + String str5 = this.f; + int hashCode6 = (hashCode5 ^ (str5 == null ? 0 : str5.hashCode())) * 1000003; + String str6 = this.g; + int hashCode7 = (hashCode6 ^ (str6 == null ? 0 : str6.hashCode())) * 1000003; + String str7 = this.h; + int hashCode8 = (hashCode7 ^ (str7 == null ? 0 : str7.hashCode())) * 1000003; + String str8 = this.i; + int hashCode9 = (hashCode8 ^ (str8 == null ? 0 : str8.hashCode())) * 1000003; + String str9 = this.j; + int hashCode10 = (hashCode9 ^ (str9 == null ? 0 : str9.hashCode())) * 1000003; + String str10 = this.k; + int hashCode11 = (hashCode10 ^ (str10 == null ? 0 : str10.hashCode())) * 1000003; + String str11 = this.l; + if (str11 != null) { + i = str11.hashCode(); + } + return hashCode11 ^ i; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String i() { + return this.f733b; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String j() { + return this.f; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public String k() { + return this.e; + } + + @Override // b.i.a.b.i.e.a + @Nullable + public Integer l() { + return this.a; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("AndroidClientInfo{sdkVersion="); + R.append(this.a); + R.append(", model="); + R.append(this.f733b); + R.append(", hardware="); + R.append(this.c); + R.append(", device="); + R.append(this.d); + R.append(", product="); + R.append(this.e); + R.append(", osBuild="); + R.append(this.f); + R.append(", manufacturer="); + R.append(this.g); + R.append(", fingerprint="); + R.append(this.h); + R.append(", locale="); + R.append(this.i); + R.append(", country="); + R.append(this.j); + R.append(", mccMnc="); + R.append(this.k); + R.append(", applicationBuild="); + return b.d.b.a.a.H(R, this.l, "}"); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/d.java b/app/src/main/java/b/i/a/b/i/e/d.java new file mode 100644 index 0000000000..be100b3469 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/d.java @@ -0,0 +1,39 @@ +package b.i.a.b.i.e; + +import androidx.annotation.NonNull; +import b.d.b.a.a; +import java.util.List; +import java.util.Objects; +/* compiled from: AutoValue_BatchedLogRequest */ +public final class d extends j { + public final List a; + + public d(List list) { + Objects.requireNonNull(list, "Null logRequests"); + this.a = list; + } + + @Override // b.i.a.b.i.e.j + @NonNull + public List a() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof j) { + return this.a.equals(((j) obj).a()); + } + return false; + } + + public int hashCode() { + return this.a.hashCode() ^ 1000003; + } + + public String toString() { + return a.J(a.R("BatchedLogRequest{logRequests="), this.a, "}"); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/e.java b/app/src/main/java/b/i/a/b/i/e/e.java new file mode 100644 index 0000000000..5d760b6a97 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/e.java @@ -0,0 +1,70 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +import b.i.a.b.i.e.k; +/* compiled from: AutoValue_ClientInfo */ +public final class e extends k { + public final k.a a; + + /* renamed from: b reason: collision with root package name */ + public final a f734b; + + public e(k.a aVar, a aVar2, a aVar3) { + this.a = aVar; + this.f734b = aVar2; + } + + @Override // b.i.a.b.i.e.k + @Nullable + public a a() { + return this.f734b; + } + + @Override // b.i.a.b.i.e.k + @Nullable + public k.a b() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof k)) { + return false; + } + k kVar = (k) obj; + k.a aVar = this.a; + if (aVar != null ? aVar.equals(kVar.b()) : kVar.b() == null) { + a aVar2 = this.f734b; + if (aVar2 == null) { + if (kVar.a() == null) { + return true; + } + } else if (aVar2.equals(kVar.a())) { + return true; + } + } + return false; + } + + public int hashCode() { + k.a aVar = this.a; + int i = 0; + int hashCode = ((aVar == null ? 0 : aVar.hashCode()) ^ 1000003) * 1000003; + a aVar2 = this.f734b; + if (aVar2 != null) { + i = aVar2.hashCode(); + } + return hashCode ^ i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("ClientInfo{clientType="); + R.append(this.a); + R.append(", androidClientInfo="); + R.append(this.f734b); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/f.java b/app/src/main/java/b/i/a/b/i/e/f.java new file mode 100644 index 0000000000..8a5345ea5f --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/f.java @@ -0,0 +1,142 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +import b.i.a.b.i.e.l; +import java.util.Arrays; +/* compiled from: AutoValue_LogEvent */ +public final class f extends l { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final Integer f735b; + public final long c; + public final byte[] d; + public final String e; + public final long f; + public final o g; + + /* compiled from: AutoValue_LogEvent */ + public static final class b extends l.a { + public Long a; + + /* renamed from: b reason: collision with root package name */ + public Integer f736b; + public Long c; + public byte[] d; + public String e; + public Long f; + public o g; + } + + public f(long j, Integer num, long j2, byte[] bArr, String str, long j3, o oVar, a aVar) { + this.a = j; + this.f735b = num; + this.c = j2; + this.d = bArr; + this.e = str; + this.f = j3; + this.g = oVar; + } + + @Override // b.i.a.b.i.e.l + @Nullable + public Integer a() { + return this.f735b; + } + + @Override // b.i.a.b.i.e.l + public long b() { + return this.a; + } + + @Override // b.i.a.b.i.e.l + public long c() { + return this.c; + } + + @Override // b.i.a.b.i.e.l + @Nullable + public o d() { + return this.g; + } + + @Override // b.i.a.b.i.e.l + @Nullable + public byte[] e() { + return this.d; + } + + public boolean equals(Object obj) { + Integer num; + String str; + if (obj == this) { + return true; + } + if (!(obj instanceof l)) { + return false; + } + l lVar = (l) obj; + if (this.a == lVar.b() && ((num = this.f735b) != null ? num.equals(lVar.a()) : lVar.a() == null) && this.c == lVar.c()) { + if (Arrays.equals(this.d, lVar instanceof f ? ((f) lVar).d : lVar.e()) && ((str = this.e) != null ? str.equals(lVar.f()) : lVar.f() == null) && this.f == lVar.g()) { + o oVar = this.g; + if (oVar == null) { + if (lVar.d() == null) { + return true; + } + } else if (oVar.equals(lVar.d())) { + return true; + } + } + } + return false; + } + + @Override // b.i.a.b.i.e.l + @Nullable + public String f() { + return this.e; + } + + @Override // b.i.a.b.i.e.l + public long g() { + return this.f; + } + + public int hashCode() { + long j = this.a; + int i = (((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003; + Integer num = this.f735b; + int i2 = 0; + int hashCode = num == null ? 0 : num.hashCode(); + long j2 = this.c; + int hashCode2 = (((((i ^ hashCode) * 1000003) ^ ((int) (j2 ^ (j2 >>> 32)))) * 1000003) ^ Arrays.hashCode(this.d)) * 1000003; + String str = this.e; + int hashCode3 = str == null ? 0 : str.hashCode(); + long j3 = this.f; + int i3 = (((hashCode2 ^ hashCode3) * 1000003) ^ ((int) ((j3 >>> 32) ^ j3))) * 1000003; + o oVar = this.g; + if (oVar != null) { + i2 = oVar.hashCode(); + } + return i3 ^ i2; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("LogEvent{eventTimeMs="); + R.append(this.a); + R.append(", eventCode="); + R.append(this.f735b); + R.append(", eventUptimeMs="); + R.append(this.c); + R.append(", sourceExtension="); + R.append(Arrays.toString(this.d)); + R.append(", sourceExtensionJsonProto3="); + R.append(this.e); + R.append(", timezoneOffsetSeconds="); + R.append(this.f); + R.append(", networkConnectionInfo="); + R.append(this.g); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/g.java b/app/src/main/java/b/i/a/b/i/e/g.java new file mode 100644 index 0000000000..105c812b80 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/g.java @@ -0,0 +1,130 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +import java.util.List; +/* compiled from: AutoValue_LogRequest */ +public final class g extends m { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f737b; + public final k c; + public final Integer d; + public final String e; + public final List f; + public final p g; + + public g(long j, long j2, k kVar, Integer num, String str, List list, p pVar, a aVar) { + this.a = j; + this.f737b = j2; + this.c = kVar; + this.d = num; + this.e = str; + this.f = list; + this.g = pVar; + } + + @Override // b.i.a.b.i.e.m + @Nullable + public k a() { + return this.c; + } + + @Override // b.i.a.b.i.e.m + @Nullable + public List b() { + return this.f; + } + + @Override // b.i.a.b.i.e.m + @Nullable + public Integer c() { + return this.d; + } + + @Override // b.i.a.b.i.e.m + @Nullable + public String d() { + return this.e; + } + + @Override // b.i.a.b.i.e.m + @Nullable + public p e() { + return this.g; + } + + public boolean equals(Object obj) { + k kVar; + Integer num; + String str; + List list; + if (obj == this) { + return true; + } + if (!(obj instanceof m)) { + return false; + } + m mVar = (m) obj; + if (this.a == mVar.f() && this.f737b == mVar.g() && ((kVar = this.c) != null ? kVar.equals(mVar.a()) : mVar.a() == null) && ((num = this.d) != null ? num.equals(mVar.c()) : mVar.c() == null) && ((str = this.e) != null ? str.equals(mVar.d()) : mVar.d() == null) && ((list = this.f) != null ? list.equals(mVar.b()) : mVar.b() == null)) { + p pVar = this.g; + if (pVar == null) { + if (mVar.e() == null) { + return true; + } + } else if (pVar.equals(mVar.e())) { + return true; + } + } + return false; + } + + @Override // b.i.a.b.i.e.m + public long f() { + return this.a; + } + + @Override // b.i.a.b.i.e.m + public long g() { + return this.f737b; + } + + public int hashCode() { + long j = this.a; + long j2 = this.f737b; + int i = (((((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003) ^ ((int) ((j2 >>> 32) ^ j2))) * 1000003; + k kVar = this.c; + int i2 = 0; + int hashCode = (i ^ (kVar == null ? 0 : kVar.hashCode())) * 1000003; + Integer num = this.d; + int hashCode2 = (hashCode ^ (num == null ? 0 : num.hashCode())) * 1000003; + String str = this.e; + int hashCode3 = (hashCode2 ^ (str == null ? 0 : str.hashCode())) * 1000003; + List list = this.f; + int hashCode4 = (hashCode3 ^ (list == null ? 0 : list.hashCode())) * 1000003; + p pVar = this.g; + if (pVar != null) { + i2 = pVar.hashCode(); + } + return hashCode4 ^ i2; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("LogRequest{requestTimeMs="); + R.append(this.a); + R.append(", requestUptimeMs="); + R.append(this.f737b); + R.append(", clientInfo="); + R.append(this.c); + R.append(", logSource="); + R.append(this.d); + R.append(", logSourceName="); + R.append(this.e); + R.append(", logEvents="); + R.append(this.f); + R.append(", qosTier="); + R.append(this.g); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/h.java b/app/src/main/java/b/i/a/b/i/e/h.java new file mode 100644 index 0000000000..b23b071014 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/h.java @@ -0,0 +1,32 @@ +package b.i.a.b.i.e; + +import b.d.b.a.a; +/* compiled from: AutoValue_LogResponse */ +public final class h extends n { + public final long a; + + public h(long j) { + this.a = j; + } + + @Override // b.i.a.b.i.e.n + public long b() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + return (obj instanceof n) && this.a == ((n) obj).b(); + } + + public int hashCode() { + long j = this.a; + return 1000003 ^ ((int) (j ^ (j >>> 32))); + } + + public String toString() { + return a.B(a.R("LogResponse{nextRequestWaitMillis="), this.a, "}"); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/i.java b/app/src/main/java/b/i/a/b/i/e/i.java new file mode 100644 index 0000000000..4b02a91c7b --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/i.java @@ -0,0 +1,70 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +import b.i.a.b.i.e.o; +/* compiled from: AutoValue_NetworkConnectionInfo */ +public final class i extends o { + public final o.b a; + + /* renamed from: b reason: collision with root package name */ + public final o.a f738b; + + public i(o.b bVar, o.a aVar, a aVar2) { + this.a = bVar; + this.f738b = aVar; + } + + @Override // b.i.a.b.i.e.o + @Nullable + public o.a a() { + return this.f738b; + } + + @Override // b.i.a.b.i.e.o + @Nullable + public o.b b() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof o)) { + return false; + } + o oVar = (o) obj; + o.b bVar = this.a; + if (bVar != null ? bVar.equals(oVar.b()) : oVar.b() == null) { + o.a aVar = this.f738b; + if (aVar == null) { + if (oVar.a() == null) { + return true; + } + } else if (aVar.equals(oVar.a())) { + return true; + } + } + return false; + } + + public int hashCode() { + o.b bVar = this.a; + int i = 0; + int hashCode = ((bVar == null ? 0 : bVar.hashCode()) ^ 1000003) * 1000003; + o.a aVar = this.f738b; + if (aVar != null) { + i = aVar.hashCode(); + } + return hashCode ^ i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("NetworkConnectionInfo{networkType="); + R.append(this.a); + R.append(", mobileSubtype="); + R.append(this.f738b); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/b/i/e/j.java b/app/src/main/java/b/i/a/b/i/e/j.java new file mode 100644 index 0000000000..2da9b1ad60 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/j.java @@ -0,0 +1,11 @@ +package b.i.a.b.i.e; + +import androidx.annotation.NonNull; +import com.google.auto.value.AutoValue; +import java.util.List; +/* compiled from: BatchedLogRequest */ +@AutoValue +public abstract class j { + @NonNull + public abstract List a(); +} diff --git a/app/src/main/java/b/i/a/b/i/e/k.java b/app/src/main/java/b/i/a/b/i/e/k.java new file mode 100644 index 0000000000..26ae887b24 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/k.java @@ -0,0 +1,26 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +import com.google.auto.value.AutoValue; +/* compiled from: ClientInfo */ +@AutoValue +public abstract class k { + + /* compiled from: ClientInfo */ + public enum a { + UNKNOWN(0), + ANDROID_FIREBASE(23); + + private final int value; + + public a(int i) { + this.value = i; + } + } + + @Nullable + public abstract a a(); + + @Nullable + public abstract a b(); +} diff --git a/app/src/main/java/b/i/a/b/i/e/l.java b/app/src/main/java/b/i/a/b/i/e/l.java new file mode 100644 index 0000000000..f6bd07269e --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/l.java @@ -0,0 +1,31 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +import com.google.auto.value.AutoValue; +/* compiled from: LogEvent */ +@AutoValue +public abstract class l { + + /* compiled from: LogEvent */ + @AutoValue.Builder + public static abstract class a { + } + + @Nullable + public abstract Integer a(); + + public abstract long b(); + + public abstract long c(); + + @Nullable + public abstract o d(); + + @Nullable + public abstract byte[] e(); + + @Nullable + public abstract String f(); + + public abstract long g(); +} diff --git a/app/src/main/java/b/i/a/b/i/e/m.java b/app/src/main/java/b/i/a/b/i/e/m.java new file mode 100644 index 0000000000..9d3df8df5c --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/m.java @@ -0,0 +1,27 @@ +package b.i.a.b.i.e; + +import androidx.annotation.Nullable; +import com.google.auto.value.AutoValue; +import java.util.List; +/* compiled from: LogRequest */ +@AutoValue +public abstract class m { + @Nullable + public abstract k a(); + + @Nullable + public abstract List b(); + + @Nullable + public abstract Integer c(); + + @Nullable + public abstract String d(); + + @Nullable + public abstract p e(); + + public abstract long f(); + + public abstract long g(); +} diff --git a/app/src/main/java/b/i/a/b/i/e/n.java b/app/src/main/java/b/i/a/b/i/e/n.java new file mode 100644 index 0000000000..1ceafec5cc --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/n.java @@ -0,0 +1,35 @@ +package b.i.a.b.i.e; + +import android.util.JsonReader; +import android.util.JsonToken; +import androidx.annotation.NonNull; +import com.google.auto.value.AutoValue; +import java.io.IOException; +import java.io.Reader; +/* compiled from: LogResponse */ +@AutoValue +public abstract class n { + @NonNull + public static n a(@NonNull Reader reader) throws IOException { + JsonReader jsonReader = new JsonReader(reader); + try { + jsonReader.beginObject(); + while (jsonReader.hasNext()) { + if (!jsonReader.nextName().equals("nextRequestWaitMillis")) { + jsonReader.skipValue(); + } else if (jsonReader.peek() == JsonToken.STRING) { + return new h(Long.parseLong(jsonReader.nextString())); + } else { + h hVar = new h(jsonReader.nextLong()); + jsonReader.close(); + return hVar; + } + } + throw new IOException("Response is missing nextRequestWaitMillis field."); + } finally { + jsonReader.close(); + } + } + + public abstract long b(); +} diff --git a/app/src/main/java/b/i/a/b/i/e/o.java b/app/src/main/java/b/i/a/b/i/e/o.java new file mode 100644 index 0000000000..f8972105d0 --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/o.java @@ -0,0 +1,173 @@ +package b.i.a.b.i.e; + +import android.util.SparseArray; +import androidx.annotation.Nullable; +import com.google.auto.value.AutoValue; +/* compiled from: NetworkConnectionInfo */ +@AutoValue +public abstract class o { + + /* compiled from: NetworkConnectionInfo */ + public enum a { + UNKNOWN_MOBILE_SUBTYPE(0), + GPRS(1), + EDGE(2), + UMTS(3), + CDMA(4), + EVDO_0(5), + EVDO_A(6), + RTT(7), + HSDPA(8), + HSUPA(9), + HSPA(10), + IDEN(11), + EVDO_B(12), + LTE(13), + EHRPD(14), + HSPAP(15), + GSM(16), + TD_SCDMA(17), + IWLAN(18), + LTE_CA(19), + COMBINED(100); + + public static final SparseArray E; + private final int value; + + static { + a aVar = UNKNOWN_MOBILE_SUBTYPE; + a aVar2 = GPRS; + a aVar3 = EDGE; + a aVar4 = UMTS; + a aVar5 = CDMA; + a aVar6 = EVDO_0; + a aVar7 = EVDO_A; + a aVar8 = RTT; + a aVar9 = HSDPA; + a aVar10 = HSUPA; + a aVar11 = HSPA; + a aVar12 = IDEN; + a aVar13 = EVDO_B; + a aVar14 = LTE; + a aVar15 = EHRPD; + a aVar16 = HSPAP; + a aVar17 = GSM; + a aVar18 = TD_SCDMA; + a aVar19 = IWLAN; + a aVar20 = LTE_CA; + SparseArray sparseArray = new SparseArray<>(); + E = sparseArray; + sparseArray.put(0, aVar); + sparseArray.put(1, aVar2); + sparseArray.put(2, aVar3); + sparseArray.put(3, aVar4); + sparseArray.put(4, aVar5); + sparseArray.put(5, aVar6); + sparseArray.put(6, aVar7); + sparseArray.put(7, aVar8); + sparseArray.put(8, aVar9); + sparseArray.put(9, aVar10); + sparseArray.put(10, aVar11); + sparseArray.put(11, aVar12); + sparseArray.put(12, aVar13); + sparseArray.put(13, aVar14); + sparseArray.put(14, aVar15); + sparseArray.put(15, aVar16); + sparseArray.put(16, aVar17); + sparseArray.put(17, aVar18); + sparseArray.put(18, aVar19); + sparseArray.put(19, aVar20); + } + + public a(int i) { + this.value = i; + } + + public int f() { + return this.value; + } + } + + /* compiled from: NetworkConnectionInfo */ + public enum b { + MOBILE(0), + WIFI(1), + MOBILE_MMS(2), + MOBILE_SUPL(3), + MOBILE_DUN(4), + MOBILE_HIPRI(5), + WIMAX(6), + BLUETOOTH(7), + DUMMY(8), + ETHERNET(9), + MOBILE_FOTA(10), + MOBILE_IMS(11), + MOBILE_CBS(12), + WIFI_P2P(13), + MOBILE_IA(14), + MOBILE_EMERGENCY(15), + PROXY(16), + VPN(17), + NONE(-1); + + public static final SparseArray C; + private final int value; + + static { + b bVar = MOBILE; + b bVar2 = WIFI; + b bVar3 = MOBILE_MMS; + b bVar4 = MOBILE_SUPL; + b bVar5 = MOBILE_DUN; + b bVar6 = MOBILE_HIPRI; + b bVar7 = WIMAX; + b bVar8 = BLUETOOTH; + b bVar9 = DUMMY; + b bVar10 = ETHERNET; + b bVar11 = MOBILE_FOTA; + b bVar12 = MOBILE_IMS; + b bVar13 = MOBILE_CBS; + b bVar14 = WIFI_P2P; + b bVar15 = MOBILE_IA; + b bVar16 = MOBILE_EMERGENCY; + b bVar17 = PROXY; + b bVar18 = VPN; + b bVar19 = NONE; + SparseArray sparseArray = new SparseArray<>(); + C = sparseArray; + sparseArray.put(0, bVar); + sparseArray.put(1, bVar2); + sparseArray.put(2, bVar3); + sparseArray.put(3, bVar4); + sparseArray.put(4, bVar5); + sparseArray.put(5, bVar6); + sparseArray.put(6, bVar7); + sparseArray.put(7, bVar8); + sparseArray.put(8, bVar9); + sparseArray.put(9, bVar10); + sparseArray.put(10, bVar11); + sparseArray.put(11, bVar12); + sparseArray.put(12, bVar13); + sparseArray.put(13, bVar14); + sparseArray.put(14, bVar15); + sparseArray.put(15, bVar16); + sparseArray.put(16, bVar17); + sparseArray.put(17, bVar18); + sparseArray.put(-1, bVar19); + } + + public b(int i) { + this.value = i; + } + + public int f() { + return this.value; + } + } + + @Nullable + public abstract a a(); + + @Nullable + public abstract b b(); +} diff --git a/app/src/main/java/b/i/a/b/i/e/p.java b/app/src/main/java/b/i/a/b/i/e/p.java new file mode 100644 index 0000000000..70faf3bfdc --- /dev/null +++ b/app/src/main/java/b/i/a/b/i/e/p.java @@ -0,0 +1,36 @@ +package b.i.a.b.i.e; + +import android.util.SparseArray; +/* compiled from: QosTier */ +public enum p { + DEFAULT(0), + UNMETERED_ONLY(1), + UNMETERED_OR_DAILY(2), + FAST_IF_RADIO_AWAKE(3), + NEVER(4), + UNRECOGNIZED(-1); + + public static final SparseArray

p; + private final int value; + + static { + p pVar = DEFAULT; + p pVar2 = UNMETERED_ONLY; + p pVar3 = UNMETERED_OR_DAILY; + p pVar4 = FAST_IF_RADIO_AWAKE; + p pVar5 = NEVER; + p pVar6 = UNRECOGNIZED; + SparseArray

sparseArray = new SparseArray<>(); + p = sparseArray; + sparseArray.put(0, pVar); + sparseArray.put(1, pVar2); + sparseArray.put(2, pVar3); + sparseArray.put(3, pVar4); + sparseArray.put(4, pVar5); + sparseArray.put(-1, pVar6); + } + + public p(int i) { + this.value = i; + } +} diff --git a/app/src/main/java/b/i/a/b/j/a.java b/app/src/main/java/b/i/a/b/j/a.java new file mode 100644 index 0000000000..e58e589c6b --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/a.java @@ -0,0 +1,157 @@ +package b.i.a.b.j; + +import androidx.annotation.Nullable; +import b.i.a.b.j.f; +import java.util.Map; +import java.util.Objects; +/* compiled from: AutoValue_EventInternal */ +public final class a extends f { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final Integer f747b; + public final e c; + public final long d; + public final long e; + public final Map f; + + /* compiled from: AutoValue_EventInternal */ + public static final class b extends f.a { + public String a; + + /* renamed from: b reason: collision with root package name */ + public Integer f748b; + public e c; + public Long d; + public Long e; + public Map f; + + @Override // b.i.a.b.j.f.a + public f b() { + String str = this.a == null ? " transportName" : ""; + if (this.c == null) { + str = b.d.b.a.a.v(str, " encodedPayload"); + } + if (this.d == null) { + str = b.d.b.a.a.v(str, " eventMillis"); + } + if (this.e == null) { + str = b.d.b.a.a.v(str, " uptimeMillis"); + } + if (this.f == null) { + str = b.d.b.a.a.v(str, " autoMetadata"); + } + if (str.isEmpty()) { + return new a(this.a, this.f748b, this.c, this.d.longValue(), this.e.longValue(), this.f, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + + @Override // b.i.a.b.j.f.a + public Map c() { + Map map = this.f; + if (map != null) { + return map; + } + throw new IllegalStateException("Property \"autoMetadata\" has not been set"); + } + + public f.a d(e eVar) { + Objects.requireNonNull(eVar, "Null encodedPayload"); + this.c = eVar; + return this; + } + + public f.a e(long j) { + this.d = Long.valueOf(j); + return this; + } + + public f.a f(String str) { + Objects.requireNonNull(str, "Null transportName"); + this.a = str; + return this; + } + + public f.a g(long j) { + this.e = Long.valueOf(j); + return this; + } + } + + public a(String str, Integer num, e eVar, long j, long j2, Map map, C0077a aVar) { + this.a = str; + this.f747b = num; + this.c = eVar; + this.d = j; + this.e = j2; + this.f = map; + } + + @Override // b.i.a.b.j.f + public Map b() { + return this.f; + } + + @Override // b.i.a.b.j.f + @Nullable + public Integer c() { + return this.f747b; + } + + @Override // b.i.a.b.j.f + public e d() { + return this.c; + } + + @Override // b.i.a.b.j.f + public long e() { + return this.d; + } + + public boolean equals(Object obj) { + Integer num; + if (obj == this) { + return true; + } + if (!(obj instanceof f)) { + return false; + } + f fVar = (f) obj; + return this.a.equals(fVar.g()) && ((num = this.f747b) != null ? num.equals(fVar.c()) : fVar.c() == null) && this.c.equals(fVar.d()) && this.d == fVar.e() && this.e == fVar.h() && this.f.equals(fVar.b()); + } + + @Override // b.i.a.b.j.f + public String g() { + return this.a; + } + + @Override // b.i.a.b.j.f + public long h() { + return this.e; + } + + public int hashCode() { + int hashCode = (this.a.hashCode() ^ 1000003) * 1000003; + Integer num = this.f747b; + int hashCode2 = num == null ? 0 : num.hashCode(); + long j = this.d; + long j2 = this.e; + return ((((((((hashCode ^ hashCode2) * 1000003) ^ this.c.hashCode()) * 1000003) ^ ((int) (j ^ (j >>> 32)))) * 1000003) ^ ((int) (j2 ^ (j2 >>> 32)))) * 1000003) ^ this.f.hashCode(); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("EventInternal{transportName="); + R.append(this.a); + R.append(", code="); + R.append(this.f747b); + R.append(", encodedPayload="); + R.append(this.c); + R.append(", eventMillis="); + R.append(this.d); + R.append(", uptimeMillis="); + R.append(this.e); + R.append(", autoMetadata="); + return b.d.b.a.a.K(R, this.f, "}"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/b.java b/app/src/main/java/b/i/a/b/j/b.java new file mode 100644 index 0000000000..4fa870dd81 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/b.java @@ -0,0 +1,95 @@ +package b.i.a.b.j; + +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import b.i.a.b.d; +import b.i.a.b.j.i; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: AutoValue_TransportContext */ +public final class b extends i { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f749b; + public final d c; + + /* compiled from: AutoValue_TransportContext */ + /* renamed from: b.i.a.b.j.b$b reason: collision with other inner class name */ + public static final class C0078b extends i.a { + public String a; + + /* renamed from: b reason: collision with root package name */ + public byte[] f750b; + public d c; + + @Override // b.i.a.b.j.i.a + public i a() { + String str = this.a == null ? " backendName" : ""; + if (this.c == null) { + str = b.d.b.a.a.v(str, " priority"); + } + if (str.isEmpty()) { + return new b(this.a, this.f750b, this.c, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + + @Override // b.i.a.b.j.i.a + public i.a b(String str) { + Objects.requireNonNull(str, "Null backendName"); + this.a = str; + return this; + } + + @Override // b.i.a.b.j.i.a + public i.a c(d dVar) { + Objects.requireNonNull(dVar, "Null priority"); + this.c = dVar; + return this; + } + } + + public b(String str, byte[] bArr, d dVar, a aVar) { + this.a = str; + this.f749b = bArr; + this.c = dVar; + } + + @Override // b.i.a.b.j.i + public String b() { + return this.a; + } + + @Override // b.i.a.b.j.i + @Nullable + public byte[] c() { + return this.f749b; + } + + @Override // b.i.a.b.j.i + @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) + public d d() { + return this.c; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof i)) { + return false; + } + i iVar = (i) obj; + if (this.a.equals(iVar.b())) { + if (Arrays.equals(this.f749b, iVar instanceof b ? ((b) iVar).f749b : iVar.c()) && this.c.equals(iVar.d())) { + return true; + } + } + return false; + } + + public int hashCode() { + return ((((this.a.hashCode() ^ 1000003) * 1000003) ^ Arrays.hashCode(this.f749b)) * 1000003) ^ this.c.hashCode(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/c.java b/app/src/main/java/b/i/a/b/j/c.java new file mode 100644 index 0000000000..e743f5fcb4 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/c.java @@ -0,0 +1,75 @@ +package b.i.a.b.j; + +import android.content.Context; +import b.i.a.b.j.g; +import b.i.a.b.j.q.j; +import b.i.a.b.j.r.a.b; +import b.i.a.b.j.t.d; +import b.i.a.b.j.t.h.f; +import b.i.a.b.j.t.h.l; +import b.i.a.b.j.t.h.m; +import b.i.a.b.j.t.h.p; +import b.i.a.b.j.t.h.q; +import b.i.a.b.j.t.h.r; +import b.i.a.b.j.t.i.a0; +import b.i.a.b.j.t.i.e; +import b.i.a.b.j.t.i.f; +import b.i.a.b.j.t.i.g; +import b.i.a.b.j.t.i.t; +import b.i.a.b.j.t.i.u; +import b.i.a.b.j.v.b; +import b.i.a.b.j.v.c; +import java.util.Objects; +import java.util.concurrent.Executor; +/* compiled from: DaggerTransportRuntimeComponent */ +public final class c extends o { + public c0.a.a j; + public c0.a.a k; + public c0.a.a l; + public c0.a.a m; + public c0.a.a n; + public c0.a.a o; + public c0.a.a p; + public c0.a.a q; + public c0.a.a r; + + /* renamed from: s reason: collision with root package name */ + public c0.a.a f751s; + public c0.a.a

t; + public c0.a.a u; + + public c(Context context, a aVar) { + c0.a.a aVar2 = g.a.a; + Object obj = b.i.a.b.j.r.a.a.a; + this.j = !(aVar2 instanceof b.i.a.b.j.r.a.a) ? new b.i.a.b.j.r.a.a(aVar2) : aVar2; + Objects.requireNonNull(context, "instance cannot be null"); + b bVar = new b(context); + this.k = bVar; + b.i.a.b.j.v.b bVar2 = b.a.a; + b.i.a.b.j.v.c cVar = c.a.a; + j jVar = new j(bVar, bVar2, cVar); + this.l = jVar; + c0.a.a lVar = new b.i.a.b.j.q.l(bVar, jVar); + this.m = !(lVar instanceof b.i.a.b.j.r.a.a) ? new b.i.a.b.j.r.a.a(lVar) : lVar; + a0 a0Var = new a0(this.k, e.a.a, f.a.a); + this.n = a0Var; + u uVar = new u(bVar2, cVar, g.a.a, a0Var); + c0.a.a aVar3 = uVar instanceof b.i.a.b.j.r.a.a ? uVar : new b.i.a.b.j.r.a.a<>(uVar); + this.o = aVar3; + b.i.a.b.j.t.f fVar = new b.i.a.b.j.t.f(bVar2); + this.p = fVar; + c0.a.a aVar4 = this.k; + b.i.a.b.j.t.g gVar = new b.i.a.b.j.t.g(aVar4, aVar3, fVar, cVar); + this.q = gVar; + c0.a.a aVar5 = this.j; + c0.a.a aVar6 = this.m; + d dVar = new d(aVar5, aVar6, gVar, aVar3, aVar3); + this.r = dVar; + m mVar = new m(aVar4, aVar6, aVar3, gVar, aVar5, aVar3, bVar2); + this.f751s = mVar; + q qVar = new q(aVar5, aVar3, gVar, aVar3); + this.t = qVar; + c0.a.a pVar = new p(bVar2, cVar, dVar, mVar, qVar); + this.u = !(pVar instanceof b.i.a.b.j.r.a.a) ? new b.i.a.b.j.r.a.a(pVar) : pVar; + } +} diff --git a/app/src/main/java/b/i/a/b/j/d.java b/app/src/main/java/b/i/a/b/j/d.java new file mode 100644 index 0000000000..4a77df9b4b --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/d.java @@ -0,0 +1,4 @@ +package b.i.a.b.j; +/* compiled from: EncodedDestination */ +public interface d { +} diff --git a/app/src/main/java/b/i/a/b/j/e.java b/app/src/main/java/b/i/a/b/j/e.java new file mode 100644 index 0000000000..75436d4fb5 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/e.java @@ -0,0 +1,46 @@ +package b.i.a.b.j; + +import androidx.annotation.NonNull; +import b.d.b.a.a; +import b.i.a.b.b; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: EncodedPayload */ +public final class e { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f752b; + + public e(@NonNull b bVar, @NonNull byte[] bArr) { + Objects.requireNonNull(bVar, "encoding is null"); + Objects.requireNonNull(bArr, "bytes is null"); + this.a = bVar; + this.f752b = bArr; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof e)) { + return false; + } + e eVar = (e) obj; + if (!this.a.equals(eVar.a)) { + return false; + } + return Arrays.equals(this.f752b, eVar.f752b); + } + + public int hashCode() { + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ Arrays.hashCode(this.f752b); + } + + public String toString() { + StringBuilder R = a.R("EncodedPayload{encoding="); + R.append(this.a); + R.append(", bytes=[...]}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/f.java b/app/src/main/java/b/i/a/b/j/f.java new file mode 100644 index 0000000000..2ed52751e3 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/f.java @@ -0,0 +1,61 @@ +package b.i.a.b.j; + +import androidx.annotation.Nullable; +import b.i.a.b.j.a; +import com.google.auto.value.AutoValue; +import java.util.HashMap; +import java.util.Map; +/* compiled from: EventInternal */ +@AutoValue +public abstract class f { + + /* compiled from: EventInternal */ + @AutoValue.Builder + public static abstract class a { + public final a a(String str, String str2) { + c().put(str, str2); + return this; + } + + public abstract f b(); + + public abstract Map c(); + } + + public final String a(String str) { + String str2 = b().get(str); + return str2 == null ? "" : str2; + } + + public abstract Map b(); + + @Nullable + public abstract Integer c(); + + public abstract e d(); + + public abstract long e(); + + public final int f(String str) { + String str2 = b().get(str); + if (str2 == null) { + return 0; + } + return Integer.valueOf(str2).intValue(); + } + + public abstract String g(); + + public abstract long h(); + + public a i() { + a.b bVar = new a.b(); + bVar.f(g()); + bVar.f748b = c(); + bVar.d(d()); + bVar.e(e()); + bVar.g(h()); + bVar.f = new HashMap(b()); + return bVar; + } +} diff --git a/app/src/main/java/b/i/a/b/j/g.java b/app/src/main/java/b/i/a/b/j/g.java new file mode 100644 index 0000000000..11ecafa09b --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/g.java @@ -0,0 +1,16 @@ +package b.i.a.b.j; + +import java.util.concurrent.Executors; +/* compiled from: ExecutionModule_ExecutorFactory */ +public final class g implements c0.a.a { + + /* compiled from: ExecutionModule_ExecutorFactory */ + public static final class a { + public static final g a = new g(); + } + + @Override // c0.a.a + public Object get() { + return new h(Executors.newSingleThreadExecutor()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/h.java b/app/src/main/java/b/i/a/b/j/h.java new file mode 100644 index 0000000000..2e44c8da79 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/h.java @@ -0,0 +1,35 @@ +package b.i.a.b.j; + +import b.c.a.a0.d; +import java.util.concurrent.Executor; +/* compiled from: SafeLoggingExecutor */ +public class h implements Executor { + public final Executor j; + + /* compiled from: SafeLoggingExecutor */ + public static class a implements Runnable { + public final Runnable j; + + public a(Runnable runnable) { + this.j = runnable; + } + + @Override // java.lang.Runnable + public void run() { + try { + this.j.run(); + } catch (Exception e) { + d.b0("Executor", "Background execution failure.", e); + } + } + } + + public h(Executor executor) { + this.j = executor; + } + + @Override // java.util.concurrent.Executor + public void execute(Runnable runnable) { + this.j.execute(new a(runnable)); + } +} diff --git a/app/src/main/java/b/i/a/b/j/i.java b/app/src/main/java/b/i/a/b/j/i.java new file mode 100644 index 0000000000..98762a4e53 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/i.java @@ -0,0 +1,46 @@ +package b.i.a.b.j; + +import android.util.Base64; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import b.i.a.b.d; +import b.i.a.b.j.b; +import com.google.auto.value.AutoValue; +/* compiled from: TransportContext */ +@AutoValue +public abstract class i { + + /* compiled from: TransportContext */ + @AutoValue.Builder + public static abstract class a { + public abstract i a(); + + public abstract a b(String str); + + @RestrictTo({RestrictTo.Scope.LIBRARY}) + public abstract a c(d dVar); + } + + public static a a() { + b.C0078b bVar = new b.C0078b(); + bVar.c(d.DEFAULT); + return bVar; + } + + public abstract String b(); + + @Nullable + public abstract byte[] c(); + + @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) + public abstract d d(); + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0023: APUT (r0v1 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r1v3 java.lang.String) */ + public final String toString() { + Object[] objArr = new Object[3]; + objArr[0] = b(); + objArr[1] = d(); + objArr[2] = c() == null ? "" : Base64.encodeToString(c(), 2); + return String.format("TransportContext(%s, %s, %s)", objArr); + } +} diff --git a/app/src/main/java/b/i/a/b/j/j.java b/app/src/main/java/b/i/a/b/j/j.java new file mode 100644 index 0000000000..71a790db82 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/j.java @@ -0,0 +1,29 @@ +package b.i.a.b.j; + +import b.i.a.b.b; +import b.i.a.b.e; +import b.i.a.b.f; +import b.i.a.b.g; +import java.util.Set; +/* compiled from: TransportFactoryImpl */ +public final class j implements g { + public final Set a; + + /* renamed from: b reason: collision with root package name */ + public final i f753b; + public final m c; + + public j(Set set, i iVar, m mVar) { + this.a = set; + this.f753b = iVar; + this.c = mVar; + } + + @Override // b.i.a.b.g + public f a(String str, Class cls, b bVar, e eVar) { + if (this.a.contains(bVar)) { + return new l(this.f753b, str, bVar, eVar, this.c); + } + throw new IllegalArgumentException(String.format("%s is not supported byt this factory. Supported encodings are: %s.", bVar, this.a)); + } +} diff --git a/app/src/main/java/b/i/a/b/j/k.java b/app/src/main/java/b/i/a/b/j/k.java new file mode 100644 index 0000000000..0db7bd6176 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/k.java @@ -0,0 +1,11 @@ +package b.i.a.b.j; + +import b.i.a.b.h; +/* compiled from: TransportImpl */ +public final /* synthetic */ class k implements h { + public static final k a = new k(); + + @Override // b.i.a.b.h + public void a(Exception exc) { + } +} diff --git a/app/src/main/java/b/i/a/b/j/l.java b/app/src/main/java/b/i/a/b/j/l.java new file mode 100644 index 0000000000..49c4baca6d --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/l.java @@ -0,0 +1,67 @@ +package b.i.a.b.j; + +import b.i.a.b.b; +import b.i.a.b.c; +import b.i.a.b.d; +import b.i.a.b.e; +import b.i.a.b.f; +import b.i.a.b.h; +import b.i.a.b.j.a; +import b.i.a.b.j.b; +import b.i.a.b.j.i; +import java.util.HashMap; +import java.util.Objects; +/* compiled from: TransportImpl */ +public final class l implements f { + public final i a; + + /* renamed from: b reason: collision with root package name */ + public final String f754b; + public final b c; + public final e d; + public final m e; + + public l(i iVar, String str, b bVar, e eVar, m mVar) { + this.a = iVar; + this.f754b = str; + this.c = bVar; + this.d = eVar; + this.e = mVar; + } + + @Override // b.i.a.b.f + public void a(c cVar) { + b(cVar, k.a); + } + + @Override // b.i.a.b.f + public void b(c cVar, h hVar) { + m mVar = this.e; + i iVar = this.a; + Objects.requireNonNull(iVar, "Null transportContext"); + Objects.requireNonNull(cVar, "Null event"); + String str = this.f754b; + Objects.requireNonNull(str, "Null transportName"); + e eVar = this.d; + Objects.requireNonNull(eVar, "Null transformer"); + b bVar = this.c; + Objects.requireNonNull(bVar, "Null encoding"); + n nVar = (n) mVar; + b.i.a.b.j.t.e eVar2 = nVar.d; + d c = cVar.c(); + i.a a = i.a(); + a.b(iVar.b()); + a.c(c); + b.C0078b bVar2 = (b.C0078b) a; + bVar2.f750b = iVar.c(); + i a2 = bVar2.a(); + a.b bVar3 = new a.b(); + bVar3.f = new HashMap(); + bVar3.e(nVar.f755b.a()); + bVar3.g(nVar.c.a()); + bVar3.f(str); + bVar3.d(new e(bVar, eVar.apply(cVar.b()))); + bVar3.f748b = cVar.a(); + eVar2.a(a2, bVar3.b(), hVar); + } +} diff --git a/app/src/main/java/b/i/a/b/j/m.java b/app/src/main/java/b/i/a/b/j/m.java new file mode 100644 index 0000000000..ba0ccfb2ba --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/m.java @@ -0,0 +1,4 @@ +package b.i.a.b.j; +/* compiled from: TransportInternal */ +public interface m { +} diff --git a/app/src/main/java/b/i/a/b/j/n.java b/app/src/main/java/b/i/a/b/j/n.java new file mode 100644 index 0000000000..d8a322f922 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/n.java @@ -0,0 +1,67 @@ +package b.i.a.b.j; + +import android.content.Context; +import b.i.a.b.b; +import b.i.a.b.g; +import b.i.a.b.j.b; +import b.i.a.b.j.i; +import b.i.a.b.j.t.e; +import b.i.a.b.j.t.h.l; +import b.i.a.b.j.t.h.p; +import b.i.a.b.j.v.a; +import java.util.Collections; +import java.util.Objects; +import java.util.Set; +/* compiled from: TransportRuntime */ +public class n implements m { + public static volatile o a; + + /* renamed from: b reason: collision with root package name */ + public final a f755b; + public final a c; + public final e d; + public final l e; + + public n(a aVar, a aVar2, e eVar, l lVar, p pVar) { + this.f755b = aVar; + this.c = aVar2; + this.d = eVar; + this.e = lVar; + pVar.a.execute(new b.i.a.b.j.t.h.n(pVar)); + } + + public static n a() { + o oVar = a; + if (oVar != null) { + return ((c) oVar).u.get(); + } + throw new IllegalStateException("Not initialized!"); + } + + public static void b(Context context) { + if (a == null) { + synchronized (n.class) { + if (a == null) { + Objects.requireNonNull(context); + a = new c(context, null); + } + } + } + } + + public g c(d dVar) { + Set set; + if (dVar instanceof d) { + Objects.requireNonNull((b.i.a.b.i.a) dVar); + set = Collections.unmodifiableSet(b.i.a.b.i.a.d); + } else { + set = Collections.singleton(new b("proto")); + } + i.a a2 = i.a(); + Objects.requireNonNull(dVar); + a2.b("cct"); + b.C0078b bVar = (b.C0078b) a2; + bVar.f750b = ((b.i.a.b.i.a) dVar).b(); + return new j(set, bVar.a(), this); + } +} diff --git a/app/src/main/java/b/i/a/b/j/o.java b/app/src/main/java/b/i/a/b/j/o.java new file mode 100644 index 0000000000..a0e42cd66a --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/o.java @@ -0,0 +1,11 @@ +package b.i.a.b.j; + +import java.io.Closeable; +import java.io.IOException; +/* compiled from: TransportRuntimeComponent */ +public abstract class o implements Closeable { + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + ((c) this).o.get().close(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/p.java b/app/src/main/java/b/i/a/b/j/p.java new file mode 100644 index 0000000000..4c57eccf5e --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/p.java @@ -0,0 +1,28 @@ +package b.i.a.b.j; + +import b.i.a.b.j.t.e; +import b.i.a.b.j.t.h.l; +import c0.a.a; +/* compiled from: TransportRuntime_Factory */ +public final class p implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f756b; + public final a c; + public final a d; + public final a e; + + public p(a aVar, a aVar2, a aVar3, a aVar4, a aVar5) { + this.a = aVar; + this.f756b = aVar2; + this.c = aVar3; + this.d = aVar4; + this.e = aVar5; + } + + @Override // c0.a.a + public Object get() { + return new n(this.a.get(), this.f756b.get(), this.c.get(), this.d.get(), this.e.get()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/q/a.java b/app/src/main/java/b/i/a/b/j/q/a.java new file mode 100644 index 0000000000..a3e3174e02 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/a.java @@ -0,0 +1,57 @@ +package b.i.a.b.j.q; + +import androidx.annotation.Nullable; +import b.i.a.b.j.f; +import java.util.Arrays; +/* compiled from: AutoValue_BackendRequest */ +public final class a extends f { + public final Iterable a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f757b; + + public a(Iterable iterable, byte[] bArr, C0079a aVar) { + this.a = iterable; + this.f757b = bArr; + } + + @Override // b.i.a.b.j.q.f + public Iterable a() { + return this.a; + } + + @Override // b.i.a.b.j.q.f + @Nullable + public byte[] b() { + return this.f757b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof f)) { + return false; + } + f fVar = (f) obj; + if (this.a.equals(fVar.a())) { + if (Arrays.equals(this.f757b, fVar instanceof a ? ((a) fVar).f757b : fVar.b())) { + return true; + } + } + return false; + } + + public int hashCode() { + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ Arrays.hashCode(this.f757b); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("BackendRequest{events="); + R.append(this.a); + R.append(", extras="); + R.append(Arrays.toString(this.f757b)); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/q/b.java b/app/src/main/java/b/i/a/b/j/q/b.java new file mode 100644 index 0000000000..3dcf0e7b29 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/b.java @@ -0,0 +1,51 @@ +package b.i.a.b.j.q; + +import b.d.b.a.a; +import b.i.a.b.j.q.g; +import java.util.Objects; +/* compiled from: AutoValue_BackendResponse */ +public final class b extends g { + public final g.a a; + + /* renamed from: b reason: collision with root package name */ + public final long f758b; + + public b(g.a aVar, long j) { + Objects.requireNonNull(aVar, "Null status"); + this.a = aVar; + this.f758b = j; + } + + @Override // b.i.a.b.j.q.g + public long b() { + return this.f758b; + } + + @Override // b.i.a.b.j.q.g + public g.a c() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof g)) { + return false; + } + g gVar = (g) obj; + return this.a.equals(gVar.c()) && this.f758b == gVar.b(); + } + + public int hashCode() { + long j = this.f758b; + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ ((int) (j ^ (j >>> 32))); + } + + public String toString() { + StringBuilder R = a.R("BackendResponse{status="); + R.append(this.a); + R.append(", nextRequestWaitMillis="); + return a.B(R, this.f758b, "}"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/q/c.java b/app/src/main/java/b/i/a/b/j/q/c.java new file mode 100644 index 0000000000..5da18a2189 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/c.java @@ -0,0 +1,73 @@ +package b.i.a.b.j.q; + +import android.content.Context; +import androidx.annotation.NonNull; +import b.i.a.b.j.v.a; +import java.util.Objects; +/* compiled from: AutoValue_CreationContext */ +public final class c extends h { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final a f759b; + public final a c; + public final String d; + + public c(Context context, a aVar, a aVar2, String str) { + Objects.requireNonNull(context, "Null applicationContext"); + this.a = context; + Objects.requireNonNull(aVar, "Null wallClock"); + this.f759b = aVar; + Objects.requireNonNull(aVar2, "Null monotonicClock"); + this.c = aVar2; + Objects.requireNonNull(str, "Null backendName"); + this.d = str; + } + + @Override // b.i.a.b.j.q.h + public Context a() { + return this.a; + } + + @Override // b.i.a.b.j.q.h + @NonNull + public String b() { + return this.d; + } + + @Override // b.i.a.b.j.q.h + public a c() { + return this.c; + } + + @Override // b.i.a.b.j.q.h + public a d() { + return this.f759b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof h)) { + return false; + } + h hVar = (h) obj; + return this.a.equals(hVar.a()) && this.f759b.equals(hVar.d()) && this.c.equals(hVar.c()) && this.d.equals(hVar.b()); + } + + public int hashCode() { + return ((((((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f759b.hashCode()) * 1000003) ^ this.c.hashCode()) * 1000003) ^ this.d.hashCode(); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("CreationContext{applicationContext="); + R.append(this.a); + R.append(", wallClock="); + R.append(this.f759b); + R.append(", monotonicClock="); + R.append(this.c); + R.append(", backendName="); + return b.d.b.a.a.H(R, this.d, "}"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/q/d.java b/app/src/main/java/b/i/a/b/j/q/d.java new file mode 100644 index 0000000000..5a0f370892 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/d.java @@ -0,0 +1,5 @@ +package b.i.a.b.j.q; +/* compiled from: BackendFactory */ +public interface d { + m create(h hVar); +} diff --git a/app/src/main/java/b/i/a/b/j/q/e.java b/app/src/main/java/b/i/a/b/j/q/e.java new file mode 100644 index 0000000000..e769d0e10e --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/e.java @@ -0,0 +1,8 @@ +package b.i.a.b.j.q; + +import androidx.annotation.Nullable; +/* compiled from: BackendRegistry */ +public interface e { + @Nullable + m get(String str); +} diff --git a/app/src/main/java/b/i/a/b/j/q/f.java b/app/src/main/java/b/i/a/b/j/q/f.java new file mode 100644 index 0000000000..22d6bf3360 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/f.java @@ -0,0 +1,12 @@ +package b.i.a.b.j.q; + +import androidx.annotation.Nullable; +import com.google.auto.value.AutoValue; +/* compiled from: BackendRequest */ +@AutoValue +public abstract class f { + public abstract Iterable a(); + + @Nullable + public abstract byte[] b(); +} diff --git a/app/src/main/java/b/i/a/b/j/q/g.java b/app/src/main/java/b/i/a/b/j/q/g.java new file mode 100644 index 0000000000..9f373ef053 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/g.java @@ -0,0 +1,22 @@ +package b.i.a.b.j.q; + +import com.google.auto.value.AutoValue; +/* compiled from: BackendResponse */ +@AutoValue +public abstract class g { + + /* compiled from: BackendResponse */ + public enum a { + OK, + TRANSIENT_ERROR, + FATAL_ERROR + } + + public static g a() { + return new b(a.FATAL_ERROR, -1); + } + + public abstract long b(); + + public abstract a c(); +} diff --git a/app/src/main/java/b/i/a/b/j/q/h.java b/app/src/main/java/b/i/a/b/j/q/h.java new file mode 100644 index 0000000000..eac04d8334 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/h.java @@ -0,0 +1,18 @@ +package b.i.a.b.j.q; + +import android.content.Context; +import androidx.annotation.NonNull; +import b.i.a.b.j.v.a; +import com.google.auto.value.AutoValue; +/* compiled from: CreationContext */ +@AutoValue +public abstract class h { + public abstract Context a(); + + @NonNull + public abstract String b(); + + public abstract a c(); + + public abstract a d(); +} diff --git a/app/src/main/java/b/i/a/b/j/q/i.java b/app/src/main/java/b/i/a/b/j/q/i.java new file mode 100644 index 0000000000..1839c99716 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/i.java @@ -0,0 +1,18 @@ +package b.i.a.b.j.q; + +import android.content.Context; +import b.i.a.b.j.v.a; +/* compiled from: CreationContextFactory */ +public class i { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final a f760b; + public final a c; + + public i(Context context, a aVar, a aVar2) { + this.a = context; + this.f760b = aVar; + this.c = aVar2; + } +} diff --git a/app/src/main/java/b/i/a/b/j/q/j.java b/app/src/main/java/b/i/a/b/j/q/j.java new file mode 100644 index 0000000000..c1d4b36f79 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/j.java @@ -0,0 +1,23 @@ +package b.i.a.b.j.q; + +import android.content.Context; +import c0.a.a; +/* compiled from: CreationContextFactory_Factory */ +public final class j implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f761b; + public final a c; + + public j(a aVar, a aVar2, a aVar3) { + this.a = aVar; + this.f761b = aVar2; + this.c = aVar3; + } + + @Override // c0.a.a + public Object get() { + return new i(this.a.get(), this.f761b.get(), this.c.get()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/q/k.java b/app/src/main/java/b/i/a/b/j/q/k.java new file mode 100644 index 0000000000..05fa45fde2 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/k.java @@ -0,0 +1,127 @@ +package b.i.a.b.j.q; + +import android.content.ComponentName; +import android.content.Context; +import android.content.pm.PackageManager; +import android.content.pm.ServiceInfo; +import android.os.Bundle; +import android.util.Log; +import androidx.annotation.Nullable; +import com.google.android.datatransport.runtime.backends.TransportBackendDiscovery; +import java.lang.reflect.InvocationTargetException; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +/* compiled from: MetadataBackendRegistry */ +public class k implements e { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final i f762b; + public final Map c = new HashMap(); + + /* compiled from: MetadataBackendRegistry */ + public static class a { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public Map f763b = null; + + public a(Context context) { + this.a = context; + } + + /* JADX WARNING: Removed duplicated region for block: B:15:0x003a */ + /* JADX WARNING: Removed duplicated region for block: B:16:0x0044 */ + @Nullable + public d a(String str) { + Bundle bundle; + Map map; + if (this.f763b == null) { + Context context = this.a; + try { + PackageManager packageManager = context.getPackageManager(); + if (packageManager == null) { + Log.w("BackendRegistry", "Context has no PackageManager."); + } else { + ServiceInfo serviceInfo = packageManager.getServiceInfo(new ComponentName(context, TransportBackendDiscovery.class), 128); + if (serviceInfo == null) { + Log.w("BackendRegistry", "TransportBackendDiscovery has no service info."); + } else { + bundle = serviceInfo.metaData; + if (bundle != null) { + Log.w("BackendRegistry", "Could not retrieve metadata, returning empty list of transport backends."); + map = Collections.emptyMap(); + } else { + HashMap hashMap = new HashMap(); + for (String str2 : bundle.keySet()) { + Object obj = bundle.get(str2); + if ((obj instanceof String) && str2.startsWith("backend:")) { + for (String str3 : ((String) obj).split(",", -1)) { + String trim = str3.trim(); + if (!trim.isEmpty()) { + hashMap.put(trim, str2.substring(8)); + } + } + } + } + map = hashMap; + } + this.f763b = map; + } + } + } catch (PackageManager.NameNotFoundException unused) { + Log.w("BackendRegistry", "Application info not found."); + } + bundle = null; + if (bundle != null) { + } + this.f763b = map; + } + String str4 = this.f763b.get(str); + if (str4 == null) { + return null; + } + try { + return (d) Class.forName(str4).asSubclass(d.class).getDeclaredConstructor(new Class[0]).newInstance(new Object[0]); + } catch (ClassNotFoundException e) { + Log.w("BackendRegistry", String.format("Class %s is not found.", str4), e); + return null; + } catch (IllegalAccessException e2) { + Log.w("BackendRegistry", String.format("Could not instantiate %s.", str4), e2); + return null; + } catch (InstantiationException e3) { + Log.w("BackendRegistry", String.format("Could not instantiate %s.", str4), e3); + return null; + } catch (NoSuchMethodException e4) { + Log.w("BackendRegistry", String.format("Could not instantiate %s", str4), e4); + return null; + } catch (InvocationTargetException e5) { + Log.w("BackendRegistry", String.format("Could not instantiate %s", str4), e5); + return null; + } + } + } + + public k(Context context, i iVar) { + a aVar = new a(context); + this.a = aVar; + this.f762b = iVar; + } + + @Override // b.i.a.b.j.q.e + @Nullable + public synchronized m get(String str) { + if (this.c.containsKey(str)) { + return this.c.get(str); + } + d a2 = this.a.a(str); + if (a2 == null) { + return null; + } + i iVar = this.f762b; + m create = a2.create(new c(iVar.a, iVar.f760b, iVar.c, str)); + this.c.put(str, create); + return create; + } +} diff --git a/app/src/main/java/b/i/a/b/j/q/l.java b/app/src/main/java/b/i/a/b/j/q/l.java new file mode 100644 index 0000000000..cbbd072618 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/l.java @@ -0,0 +1,21 @@ +package b.i.a.b.j.q; + +import android.content.Context; +import c0.a.a; +/* compiled from: MetadataBackendRegistry_Factory */ +public final class l implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f764b; + + public l(a aVar, a aVar2) { + this.a = aVar; + this.f764b = aVar2; + } + + @Override // c0.a.a + public Object get() { + return new k(this.a.get(), this.f764b.get()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/q/m.java b/app/src/main/java/b/i/a/b/j/q/m.java new file mode 100644 index 0000000000..e871b3bdc5 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/q/m.java @@ -0,0 +1,9 @@ +package b.i.a.b.j.q; + +import b.i.a.b.j.f; +/* compiled from: TransportBackend */ +public interface m { + g a(f fVar); + + f b(f fVar); +} diff --git a/app/src/main/java/b/i/a/b/j/r/a/a.java b/app/src/main/java/b/i/a/b/j/r/a/a.java new file mode 100644 index 0000000000..3babe75f1f --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/r/a/a.java @@ -0,0 +1,38 @@ +package b.i.a.b.j.r.a; +/* compiled from: DoubleCheck */ +public final class a implements c0.a.a { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public volatile c0.a.a f765b; + public volatile Object c = a; + + public a(c0.a.a aVar) { + this.f765b = aVar; + } + + public static Object a(Object obj, Object obj2) { + if (!(obj != a) || obj == obj2) { + return obj2; + } + throw new IllegalStateException("Scoped provider was invoked recursively returning different results: " + obj + " & " + obj2 + ". This is likely due to a circular dependency."); + } + + @Override // c0.a.a + public T get() { + T t = (T) this.c; + Object obj = a; + if (t == obj) { + synchronized (this) { + t = this.c; + if (t == obj) { + t = this.f765b.get(); + a(this.c, t); + this.c = t; + this.f765b = null; + } + } + } + return t; + } +} diff --git a/app/src/main/java/b/i/a/b/j/r/a/b.java b/app/src/main/java/b/i/a/b/j/r/a/b.java new file mode 100644 index 0000000000..7350015178 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/r/a/b.java @@ -0,0 +1,16 @@ +package b.i.a.b.j.r.a; + +import c0.a.a; +/* compiled from: InstanceFactory */ +public final class b implements a { + public final T a; + + public b(T t) { + this.a = t; + } + + @Override // c0.a.a + public T get() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/b/j/s/a.java b/app/src/main/java/b/i/a/b/j/s/a.java new file mode 100644 index 0000000000..c7b6ecb47b --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/s/a.java @@ -0,0 +1,4 @@ +package b.i.a.b.j.s; +/* compiled from: RetryStrategy */ +public interface a { +} diff --git a/app/src/main/java/b/i/a/b/j/t/a.java b/app/src/main/java/b/i/a/b/j/t/a.java new file mode 100644 index 0000000000..bc38d289cd --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/a.java @@ -0,0 +1,47 @@ +package b.i.a.b.j.t; + +import b.i.a.b.h; +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import b.i.a.b.j.q.m; +import java.util.logging.Logger; +/* compiled from: DefaultScheduler */ +public final /* synthetic */ class a implements Runnable { + public final c j; + public final i k; + public final h l; + public final f m; + + public a(c cVar, i iVar, h hVar, f fVar) { + this.j = cVar; + this.k = iVar; + this.l = hVar; + this.m = fVar; + } + + @Override // java.lang.Runnable + public void run() { + c cVar = this.j; + i iVar = this.k; + h hVar = this.l; + f fVar = this.m; + Logger logger = c.a; + try { + m mVar = cVar.d.get(iVar.b()); + if (mVar == null) { + String format = String.format("Transport backend '%s' is not registered", iVar.b()); + c.a.warning(format); + hVar.a(new IllegalArgumentException(format)); + return; + } + cVar.f.a(new b(cVar, iVar, mVar.b(fVar))); + hVar.a(null); + } catch (Exception e) { + Logger logger2 = c.a; + StringBuilder R = b.d.b.a.a.R("Error scheduling event "); + R.append(e.getMessage()); + logger2.warning(R.toString()); + hVar.a(e); + } + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/b.java b/app/src/main/java/b/i/a/b/j/t/b.java new file mode 100644 index 0000000000..ba761f02c2 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/b.java @@ -0,0 +1,28 @@ +package b.i.a.b.j.t; + +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import b.i.a.b.j.u.a; +/* compiled from: DefaultScheduler */ +public final /* synthetic */ class b implements a.AbstractC0082a { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final i f766b; + public final f c; + + public b(c cVar, i iVar, f fVar) { + this.a = cVar; + this.f766b = iVar; + this.c = fVar; + } + + @Override // b.i.a.b.j.u.a.AbstractC0082a + public Object execute() { + c cVar = this.a; + i iVar = this.f766b; + cVar.e.a0(iVar, this.c); + cVar.f767b.a(iVar, 1); + return null; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/c.java b/app/src/main/java/b/i/a/b/j/t/c.java new file mode 100644 index 0000000000..2d35f75164 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/c.java @@ -0,0 +1,35 @@ +package b.i.a.b.j.t; + +import b.i.a.b.h; +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import b.i.a.b.j.n; +import b.i.a.b.j.q.e; +import b.i.a.b.j.t.h.r; +import b.i.a.b.j.u.a; +import java.util.concurrent.Executor; +import java.util.logging.Logger; +/* compiled from: DefaultScheduler */ +public class c implements e { + public static final Logger a = Logger.getLogger(n.class.getName()); + + /* renamed from: b reason: collision with root package name */ + public final r f767b; + public final Executor c; + public final e d; + public final b.i.a.b.j.t.i.c e; + public final a f; + + public c(Executor executor, e eVar, r rVar, b.i.a.b.j.t.i.c cVar, a aVar) { + this.c = executor; + this.d = eVar; + this.f767b = rVar; + this.e = cVar; + this.f = aVar; + } + + @Override // b.i.a.b.j.t.e + public void a(i iVar, f fVar, h hVar) { + this.c.execute(new a(this, iVar, hVar, fVar)); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/d.java b/app/src/main/java/b/i/a/b/j/t/d.java new file mode 100644 index 0000000000..2b82b60a8e --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/d.java @@ -0,0 +1,30 @@ +package b.i.a.b.j.t; + +import b.i.a.b.j.q.e; +import b.i.a.b.j.t.h.r; +import b.i.a.b.j.t.i.c; +import c0.a.a; +import java.util.concurrent.Executor; +/* compiled from: DefaultScheduler_Factory */ +public final class d implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f768b; + public final a c; + public final a d; + public final a e; + + public d(a aVar, a aVar2, a aVar3, a aVar4, a aVar5) { + this.a = aVar; + this.f768b = aVar2; + this.c = aVar3; + this.d = aVar4; + this.e = aVar5; + } + + @Override // c0.a.a + public Object get() { + return new c(this.a.get(), this.f768b.get(), this.c.get(), this.d.get(), this.e.get()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/e.java b/app/src/main/java/b/i/a/b/j/t/e.java new file mode 100644 index 0000000000..85b86a2808 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/e.java @@ -0,0 +1,9 @@ +package b.i.a.b.j.t; + +import b.i.a.b.h; +import b.i.a.b.j.f; +import b.i.a.b.j.i; +/* compiled from: Scheduler */ +public interface e { + void a(i iVar, f fVar, h hVar); +} diff --git a/app/src/main/java/b/i/a/b/j/t/f.java b/app/src/main/java/b/i/a/b/j/t/f.java new file mode 100644 index 0000000000..c4f8401d9a --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/f.java @@ -0,0 +1,54 @@ +package b.i.a.b.j.t; + +import b.i.a.b.d; +import b.i.a.b.j.t.h.b; +import b.i.a.b.j.t.h.c; +import b.i.a.b.j.t.h.f; +import c0.a.a; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Objects; +import java.util.Set; +/* compiled from: SchedulingConfigModule_ConfigFactory */ +public final class f implements a { + public final a a; + + public f(a aVar) { + this.a = aVar; + } + + @Override // c0.a.a + public Object get() { + b.i.a.b.j.v.a aVar = this.a.get(); + HashMap hashMap = new HashMap(); + d dVar = d.DEFAULT; + f.a.AbstractC0080a a = f.a.a(); + a.b(30000); + a.c(86400000); + hashMap.put(dVar, a.a()); + d dVar2 = d.HIGHEST; + f.a.AbstractC0080a a2 = f.a.a(); + a2.b(1000); + a2.c(86400000); + hashMap.put(dVar2, a2.a()); + d dVar3 = d.VERY_LOW; + f.a.AbstractC0080a a3 = f.a.a(); + a3.b(86400000); + a3.c(86400000); + Set unmodifiableSet = Collections.unmodifiableSet(new HashSet(Arrays.asList(f.b.NETWORK_UNMETERED, f.b.DEVICE_IDLE))); + c.b bVar = (c.b) a3; + Objects.requireNonNull(unmodifiableSet, "Null flags"); + bVar.c = unmodifiableSet; + hashMap.put(dVar3, bVar.a()); + Objects.requireNonNull(aVar, "missing required property: clock"); + int size = hashMap.keySet().size(); + d.values(); + if (size >= 3) { + new HashMap(); + return new b(aVar, hashMap); + } + throw new IllegalStateException("Not all priorities have been configured"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/g.java b/app/src/main/java/b/i/a/b/j/t/g.java new file mode 100644 index 0000000000..1a2c361d5f --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/g.java @@ -0,0 +1,29 @@ +package b.i.a.b.j.t; + +import android.content.Context; +import b.i.a.b.j.t.h.d; +import b.i.a.b.j.t.h.f; +import b.i.a.b.j.t.i.c; +import c0.a.a; +/* compiled from: SchedulingModule_WorkSchedulerFactory */ +public final class g implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f769b; + public final a c; + public final a d; + + public g(a aVar, a aVar2, a aVar3, a aVar4) { + this.a = aVar; + this.f769b = aVar2; + this.c = aVar3; + this.d = aVar4; + } + + @Override // c0.a.a + public Object get() { + this.d.get(); + return new d(this.a.get(), this.f769b.get(), this.c.get()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/a.java b/app/src/main/java/b/i/a/b/j/t/h/a.java new file mode 100644 index 0000000000..9aa1384b1f --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/a.java @@ -0,0 +1,12 @@ +package b.i.a.b.j.t.h; + +import com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver; +/* compiled from: AlarmManagerSchedulerBroadcastReceiver */ +public final /* synthetic */ class a implements Runnable { + public static final a j = new a(); + + @Override // java.lang.Runnable + public void run() { + int i = AlarmManagerSchedulerBroadcastReceiver.a; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/b.java b/app/src/main/java/b/i/a/b/j/t/h/b.java new file mode 100644 index 0000000000..be64a38737 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/b.java @@ -0,0 +1,53 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.d; +import b.i.a.b.j.t.h.f; +import b.i.a.b.j.v.a; +import java.util.Map; +import java.util.Objects; +/* compiled from: AutoValue_SchedulerConfig */ +public final class b extends f { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final Map f770b; + + public b(a aVar, Map map) { + Objects.requireNonNull(aVar, "Null clock"); + this.a = aVar; + Objects.requireNonNull(map, "Null values"); + this.f770b = map; + } + + @Override // b.i.a.b.j.t.h.f + public a a() { + return this.a; + } + + @Override // b.i.a.b.j.t.h.f + public Map c() { + return this.f770b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof f)) { + return false; + } + f fVar = (f) obj; + return this.a.equals(fVar.a()) && this.f770b.equals(fVar.c()); + } + + public int hashCode() { + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f770b.hashCode(); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("SchedulerConfig{clock="); + R.append(this.a); + R.append(", values="); + return b.d.b.a.a.K(R, this.f770b, "}"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/c.java b/app/src/main/java/b/i/a/b/j/t/h/c.java new file mode 100644 index 0000000000..6cb4d027c8 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/c.java @@ -0,0 +1,97 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.t.h.f; +import java.util.Set; +/* compiled from: AutoValue_SchedulerConfig_ConfigValue */ +public final class c extends f.a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f771b; + public final Set c; + + /* compiled from: AutoValue_SchedulerConfig_ConfigValue */ + public static final class b extends f.a.AbstractC0080a { + public Long a; + + /* renamed from: b reason: collision with root package name */ + public Long f772b; + public Set c; + + @Override // b.i.a.b.j.t.h.f.a.AbstractC0080a + public f.a a() { + String str = this.a == null ? " delta" : ""; + if (this.f772b == null) { + str = b.d.b.a.a.v(str, " maxAllowedDelay"); + } + if (this.c == null) { + str = b.d.b.a.a.v(str, " flags"); + } + if (str.isEmpty()) { + return new c(this.a.longValue(), this.f772b.longValue(), this.c, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + + @Override // b.i.a.b.j.t.h.f.a.AbstractC0080a + public f.a.AbstractC0080a b(long j) { + this.a = Long.valueOf(j); + return this; + } + + @Override // b.i.a.b.j.t.h.f.a.AbstractC0080a + public f.a.AbstractC0080a c(long j) { + this.f772b = Long.valueOf(j); + return this; + } + } + + public c(long j, long j2, Set set, a aVar) { + this.a = j; + this.f771b = j2; + this.c = set; + } + + @Override // b.i.a.b.j.t.h.f.a + public long b() { + return this.a; + } + + @Override // b.i.a.b.j.t.h.f.a + public Set c() { + return this.c; + } + + @Override // b.i.a.b.j.t.h.f.a + public long d() { + return this.f771b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof f.a)) { + return false; + } + f.a aVar = (f.a) obj; + return this.a == aVar.b() && this.f771b == aVar.d() && this.c.equals(aVar.c()); + } + + public int hashCode() { + long j = this.a; + long j2 = this.f771b; + return this.c.hashCode() ^ ((((((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003) ^ ((int) ((j2 >>> 32) ^ j2))) * 1000003); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("ConfigValue{delta="); + R.append(this.a); + R.append(", maxAllowedDelay="); + R.append(this.f771b); + R.append(", flags="); + R.append(this.c); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/d.java b/app/src/main/java/b/i/a/b/j/t/h/d.java new file mode 100644 index 0000000000..4c5a7acc5a --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/d.java @@ -0,0 +1,111 @@ +package b.i.a.b.j.t.h; + +import android.app.job.JobInfo; +import android.app.job.JobScheduler; +import android.content.ComponentName; +import android.content.Context; +import android.os.PersistableBundle; +import android.util.Base64; +import androidx.annotation.RequiresApi; +import androidx.core.app.NotificationCompat; +import b.i.a.b.j.i; +import b.i.a.b.j.t.h.f; +import b.i.a.b.j.t.i.c; +import b.i.a.b.j.w.a; +import com.adjust.sdk.Constants; +import com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.util.Iterator; +import java.util.Set; +import java.util.zip.Adler32; +/* compiled from: JobInfoScheduler */ +@RequiresApi(api = 21) +public class d implements r { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final c f773b; + public final f c; + + public d(Context context, c cVar, f fVar) { + this.a = context; + this.f773b = cVar; + this.c = fVar; + } + + /* JADX WARNING: Code restructure failed: missing block: B:10:0x0092, code lost: + r7 = false; + */ + @Override // b.i.a.b.j.t.h.r + public void a(i iVar, int i) { + boolean z2; + boolean z3; + char c; + ComponentName componentName = new ComponentName(this.a, JobInfoSchedulerService.class); + JobScheduler jobScheduler = (JobScheduler) this.a.getSystemService("jobscheduler"); + Adler32 adler32 = new Adler32(); + adler32.update(this.a.getPackageName().getBytes(Charset.forName(Constants.ENCODING))); + adler32.update(iVar.b().getBytes(Charset.forName(Constants.ENCODING))); + adler32.update(ByteBuffer.allocate(4).putInt(a.a(iVar.d())).array()); + if (iVar.c() != null) { + adler32.update(iVar.c()); + } + int value = (int) adler32.getValue(); + Iterator it = jobScheduler.getAllPendingJobs().iterator(); + while (true) { + if (!it.hasNext()) { + break; + } + JobInfo next = it.next(); + int i2 = next.getExtras().getInt("attemptNumber"); + if (next.getId() == value) { + if (i2 >= i) { + z2 = true; + } + } + } + if (z2) { + b.c.a.a0.d.W("JobInfoScheduler", "Upload for context %s is already scheduled. Returning...", iVar); + return; + } + long h02 = this.f773b.h0(iVar); + f fVar = this.c; + JobInfo.Builder builder = new JobInfo.Builder(value, componentName); + b.i.a.b.d d = iVar.d(); + builder.setMinimumLatency(fVar.b(d, h02, i)); + Set c2 = fVar.c().get(d).c(); + if (c2.contains(f.b.NETWORK_UNMETERED)) { + builder.setRequiredNetworkType(2); + z3 = true; + } else { + z3 = true; + builder.setRequiredNetworkType(1); + } + if (c2.contains(f.b.DEVICE_CHARGING)) { + builder.setRequiresCharging(z3); + } + if (c2.contains(f.b.DEVICE_IDLE)) { + builder.setRequiresDeviceIdle(z3); + } + PersistableBundle persistableBundle = new PersistableBundle(); + persistableBundle.putInt("attemptNumber", i); + persistableBundle.putString("backendName", iVar.b()); + persistableBundle.putInt("priority", a.a(iVar.d())); + if (iVar.c() != null) { + c = 0; + persistableBundle.putString(NotificationCompat.MessagingStyle.Message.KEY_EXTRAS_BUNDLE, Base64.encodeToString(iVar.c(), 0)); + } else { + c = 0; + } + builder.setExtras(persistableBundle); + Object[] objArr = new Object[5]; + objArr[c] = iVar; + objArr[1] = Integer.valueOf(value); + objArr[2] = Long.valueOf(this.c.b(iVar.d(), h02, i)); + objArr[3] = Long.valueOf(h02); + objArr[4] = Integer.valueOf(i); + b.c.a.a0.d.X("JobInfoScheduler", "Scheduling upload for context %s with jobId=%d in %dms(Backend next call timestamp %d). Attempt %d", objArr); + jobScheduler.schedule(builder.build()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/e.java b/app/src/main/java/b/i/a/b/j/t/h/e.java new file mode 100644 index 0000000000..deb672e31b --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/e.java @@ -0,0 +1,22 @@ +package b.i.a.b.j.t.h; + +import android.app.job.JobParameters; +import com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService; +/* compiled from: JobInfoSchedulerService */ +public final /* synthetic */ class e implements Runnable { + public final JobInfoSchedulerService j; + public final JobParameters k; + + public e(JobInfoSchedulerService jobInfoSchedulerService, JobParameters jobParameters) { + this.j = jobInfoSchedulerService; + this.k = jobParameters; + } + + @Override // java.lang.Runnable + public void run() { + JobInfoSchedulerService jobInfoSchedulerService = this.j; + JobParameters jobParameters = this.k; + int i = JobInfoSchedulerService.j; + jobInfoSchedulerService.jobFinished(jobParameters, false); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/f.java b/app/src/main/java/b/i/a/b/j/t/h/f.java new file mode 100644 index 0000000000..440fabeff3 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/f.java @@ -0,0 +1,62 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.d; +import b.i.a.b.j.t.h.c; +import com.google.auto.value.AutoValue; +import java.util.Collections; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +/* compiled from: SchedulerConfig */ +@AutoValue +public abstract class f { + + /* compiled from: SchedulerConfig */ + @AutoValue + public static abstract class a { + + /* compiled from: SchedulerConfig */ + @AutoValue.Builder + /* renamed from: b.i.a.b.j.t.h.f$a$a reason: collision with other inner class name */ + public static abstract class AbstractC0080a { + public abstract a a(); + + public abstract AbstractC0080a b(long j); + + public abstract AbstractC0080a c(long j); + } + + public static AbstractC0080a a() { + c.b bVar = new c.b(); + Set emptySet = Collections.emptySet(); + Objects.requireNonNull(emptySet, "Null flags"); + bVar.c = emptySet; + return bVar; + } + + public abstract long b(); + + public abstract Set c(); + + public abstract long d(); + } + + /* compiled from: SchedulerConfig */ + public enum b { + NETWORK_UNMETERED, + DEVICE_IDLE, + DEVICE_CHARGING + } + + public abstract b.i.a.b.j.v.a a(); + + public long b(d dVar, long j, int i) { + long a2 = j - a().a(); + a aVar = c().get(dVar); + long b2 = aVar.b(); + int i2 = i - 1; + return Math.min(Math.max((long) (Math.pow(3.0d, (double) i2) * ((double) b2) * Math.max(1.0d, Math.log(10000.0d) / Math.log((double) ((b2 > 1 ? b2 : 2) * ((long) i2))))), a2), aVar.d()); + } + + public abstract Map c(); +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/g.java b/app/src/main/java/b/i/a/b/j/t/h/g.java new file mode 100644 index 0000000000..d0ff50c403 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/g.java @@ -0,0 +1,48 @@ +package b.i.a.b.j.t.h; + +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import b.i.a.b.j.i; +import b.i.a.b.j.t.i.c; +import b.i.a.b.j.u.a; +import com.google.android.datatransport.runtime.synchronization.SynchronizationException; +/* compiled from: Uploader */ +public final /* synthetic */ class g implements Runnable { + public final l j; + public final i k; + public final int l; + public final Runnable m; + + public g(l lVar, i iVar, int i, Runnable runnable) { + this.j = lVar; + this.k = iVar; + this.l = i; + this.m = runnable; + } + + @Override // java.lang.Runnable + public void run() { + l lVar = this.j; + i iVar = this.k; + int i = this.l; + Runnable runnable = this.m; + try { + a aVar = lVar.f; + c cVar = lVar.c; + cVar.getClass(); + aVar.a(new j(cVar)); + NetworkInfo activeNetworkInfo = ((ConnectivityManager) lVar.a.getSystemService("connectivity")).getActiveNetworkInfo(); + if (!(activeNetworkInfo != null && activeNetworkInfo.isConnected())) { + lVar.f.a(new k(lVar, iVar, i)); + } else { + lVar.a(iVar, i); + } + } catch (SynchronizationException unused) { + lVar.d.a(iVar, i + 1); + } catch (Throwable th) { + runnable.run(); + throw th; + } + runnable.run(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/h.java b/app/src/main/java/b/i/a/b/j/t/h/h.java new file mode 100644 index 0000000000..df6bd56f7d --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/h.java @@ -0,0 +1,22 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.i; +import b.i.a.b.j.u.a; +/* compiled from: Uploader */ +public final /* synthetic */ class h implements a.AbstractC0082a { + public final l a; + + /* renamed from: b reason: collision with root package name */ + public final i f774b; + + public h(l lVar, i iVar) { + this.a = lVar; + this.f774b = iVar; + } + + @Override // b.i.a.b.j.u.a.AbstractC0082a + public Object execute() { + l lVar = this.a; + return lVar.c.r(this.f774b); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/i.java b/app/src/main/java/b/i/a/b/j/t/h/i.java new file mode 100644 index 0000000000..9914837afa --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/i.java @@ -0,0 +1,46 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.q.g; +import b.i.a.b.j.t.i.h; +import b.i.a.b.j.u.a; +/* compiled from: Uploader */ +public final /* synthetic */ class i implements a.AbstractC0082a { + public final l a; + + /* renamed from: b reason: collision with root package name */ + public final g f775b; + public final Iterable c; + public final b.i.a.b.j.i d; + public final int e; + + public i(l lVar, g gVar, Iterable iterable, b.i.a.b.j.i iVar, int i) { + this.a = lVar; + this.f775b = gVar; + this.c = iterable; + this.d = iVar; + this.e = i; + } + + @Override // b.i.a.b.j.u.a.AbstractC0082a + public Object execute() { + l lVar = this.a; + g gVar = this.f775b; + Iterable iterable = this.c; + b.i.a.b.j.i iVar = this.d; + int i = this.e; + if (gVar.c() == g.a.TRANSIENT_ERROR) { + lVar.c.n0(iterable); + lVar.d.a(iVar, i + 1); + return null; + } + lVar.c.m(iterable); + if (gVar.c() == g.a.OK) { + lVar.c.v(iVar, gVar.b() + lVar.g.a()); + } + if (!lVar.c.l0(iVar)) { + return null; + } + lVar.d.a(iVar, 1); + return null; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/j.java b/app/src/main/java/b/i/a/b/j/t/h/j.java new file mode 100644 index 0000000000..0574c126f6 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/j.java @@ -0,0 +1,17 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.t.i.c; +import b.i.a.b.j.u.a; +/* compiled from: Uploader */ +public final /* synthetic */ class j implements a.AbstractC0082a { + public final c a; + + public j(c cVar) { + this.a = cVar; + } + + @Override // b.i.a.b.j.u.a.AbstractC0082a + public Object execute() { + return Integer.valueOf(this.a.l()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/k.java b/app/src/main/java/b/i/a/b/j/t/h/k.java new file mode 100644 index 0000000000..2887a5c16c --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/k.java @@ -0,0 +1,25 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.i; +import b.i.a.b.j.u.a; +/* compiled from: Uploader */ +public final /* synthetic */ class k implements a.AbstractC0082a { + public final l a; + + /* renamed from: b reason: collision with root package name */ + public final i f776b; + public final int c; + + public k(l lVar, i iVar, int i) { + this.a = lVar; + this.f776b = iVar; + this.c = i; + } + + @Override // b.i.a.b.j.u.a.AbstractC0082a + public Object execute() { + l lVar = this.a; + lVar.d.a(this.f776b, this.c + 1); + return null; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/l.java b/app/src/main/java/b/i/a/b/j/t/h/l.java new file mode 100644 index 0000000000..4b606e28a6 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/l.java @@ -0,0 +1,59 @@ +package b.i.a.b.j.t.h; + +import android.content.Context; +import b.c.a.a0.d; +import b.i.a.b.j.i; +import b.i.a.b.j.q.e; +import b.i.a.b.j.q.g; +import b.i.a.b.j.q.m; +import b.i.a.b.j.t.i.c; +import b.i.a.b.j.t.i.h; +import b.i.a.b.j.u.a; +import java.util.ArrayList; +import java.util.concurrent.Executor; +/* compiled from: Uploader */ +public class l { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final e f777b; + public final c c; + public final r d; + public final Executor e; + public final a f; + public final b.i.a.b.j.v.a g; + + public l(Context context, e eVar, c cVar, r rVar, Executor executor, a aVar, b.i.a.b.j.v.a aVar2) { + this.a = context; + this.f777b = eVar; + this.c = cVar; + this.d = rVar; + this.e = executor; + this.f = aVar; + this.g = aVar2; + } + + public void a(i iVar, int i) { + g a; + m mVar = this.f777b.get(iVar.b()); + Iterable iterable = (Iterable) this.f.a(new h(this, iVar)); + if (iterable.iterator().hasNext()) { + if (mVar == null) { + d.W("Uploader", "Unknown backend for %s, deleting event batch for it...", iVar); + a = g.a(); + } else { + ArrayList arrayList = new ArrayList(); + for (h hVar : iterable) { + arrayList.add(hVar.a()); + } + byte[] c = iVar.c(); + if (1 != 0) { + a = mVar.a(new b.i.a.b.j.q.a(arrayList, c, null)); + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", "")); + } + } + this.f.a(new i(this, a, iterable, iVar, i)); + } + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/m.java b/app/src/main/java/b/i/a/b/j/t/h/m.java new file mode 100644 index 0000000000..b574cc80cf --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/m.java @@ -0,0 +1,34 @@ +package b.i.a.b.j.t.h; + +import android.content.Context; +import b.i.a.b.j.q.e; +import b.i.a.b.j.t.i.c; +import c0.a.a; +import java.util.concurrent.Executor; +/* compiled from: Uploader_Factory */ +public final class m implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f778b; + public final a c; + public final a d; + public final a e; + public final a f; + public final a g; + + public m(a aVar, a aVar2, a aVar3, a aVar4, a aVar5, a aVar6, a aVar7) { + this.a = aVar; + this.f778b = aVar2; + this.c = aVar3; + this.d = aVar4; + this.e = aVar5; + this.f = aVar6; + this.g = aVar7; + } + + @Override // c0.a.a + public Object get() { + return new l(this.a.get(), this.f778b.get(), this.c.get(), this.d.get(), this.e.get(), this.f.get(), this.g.get()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/n.java b/app/src/main/java/b/i/a/b/j/t/h/n.java new file mode 100644 index 0000000000..271351c714 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/n.java @@ -0,0 +1,15 @@ +package b.i.a.b.j.t.h; +/* compiled from: WorkInitializer */ +public final /* synthetic */ class n implements Runnable { + public final p j; + + public n(p pVar) { + this.j = pVar; + } + + @Override // java.lang.Runnable + public void run() { + p pVar = this.j; + pVar.d.a(new o(pVar)); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/o.java b/app/src/main/java/b/i/a/b/j/t/h/o.java new file mode 100644 index 0000000000..d813b1177d --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/o.java @@ -0,0 +1,21 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.i; +import b.i.a.b.j.u.a; +/* compiled from: WorkInitializer */ +public final /* synthetic */ class o implements a.AbstractC0082a { + public final p a; + + public o(p pVar) { + this.a = pVar; + } + + @Override // b.i.a.b.j.u.a.AbstractC0082a + public Object execute() { + p pVar = this.a; + for (i iVar : pVar.f779b.z()) { + pVar.c.a(iVar, 1); + } + return null; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/p.java b/app/src/main/java/b/i/a/b/j/t/h/p.java new file mode 100644 index 0000000000..24d88d5d49 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/p.java @@ -0,0 +1,21 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.t.i.c; +import b.i.a.b.j.u.a; +import java.util.concurrent.Executor; +/* compiled from: WorkInitializer */ +public class p { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final c f779b; + public final r c; + public final a d; + + public p(Executor executor, c cVar, r rVar, a aVar) { + this.a = executor; + this.f779b = cVar; + this.c = rVar; + this.d = aVar; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/q.java b/app/src/main/java/b/i/a/b/j/t/h/q.java new file mode 100644 index 0000000000..b9868149e6 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/q.java @@ -0,0 +1,26 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.t.i.c; +import c0.a.a; +import java.util.concurrent.Executor; +/* compiled from: WorkInitializer_Factory */ +public final class q implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f780b; + public final a c; + public final a d; + + public q(a aVar, a aVar2, a aVar3, a aVar4) { + this.a = aVar; + this.f780b = aVar2; + this.c = aVar3; + this.d = aVar4; + } + + @Override // c0.a.a + public Object get() { + return new p(this.a.get(), this.f780b.get(), this.c.get(), this.d.get()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/h/r.java b/app/src/main/java/b/i/a/b/j/t/h/r.java new file mode 100644 index 0000000000..7d9166958b --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/h/r.java @@ -0,0 +1,7 @@ +package b.i.a.b.j.t.h; + +import b.i.a.b.j.i; +/* compiled from: WorkScheduler */ +public interface r { + void a(i iVar, int i); +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/a.java b/app/src/main/java/b/i/a/b/j/t/i/a.java new file mode 100644 index 0000000000..e8d3292751 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/a.java @@ -0,0 +1,74 @@ +package b.i.a.b.j.t.i; +/* compiled from: AutoValue_EventStoreConfig */ +public final class a extends d { + + /* renamed from: b reason: collision with root package name */ + public final long f781b; + public final int c; + public final int d; + public final long e; + public final int f; + + public a(long j, int i, int i2, long j2, int i3, C0081a aVar) { + this.f781b = j; + this.c = i; + this.d = i2; + this.e = j2; + this.f = i3; + } + + @Override // b.i.a.b.j.t.i.d + public int a() { + return this.d; + } + + @Override // b.i.a.b.j.t.i.d + public long b() { + return this.e; + } + + @Override // b.i.a.b.j.t.i.d + public int c() { + return this.c; + } + + @Override // b.i.a.b.j.t.i.d + public int d() { + return this.f; + } + + @Override // b.i.a.b.j.t.i.d + public long e() { + return this.f781b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof d)) { + return false; + } + d dVar = (d) obj; + return this.f781b == dVar.e() && this.c == dVar.c() && this.d == dVar.a() && this.e == dVar.b() && this.f == dVar.d(); + } + + public int hashCode() { + long j = this.f781b; + long j2 = this.e; + return this.f ^ ((((((((((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003) ^ this.c) * 1000003) ^ this.d) * 1000003) ^ ((int) ((j2 >>> 32) ^ j2))) * 1000003); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("EventStoreConfig{maxStorageSizeInBytes="); + R.append(this.f781b); + R.append(", loadBatchSize="); + R.append(this.c); + R.append(", criticalSectionEnterTimeoutMs="); + R.append(this.d); + R.append(", eventCleanUpAge="); + R.append(this.e); + R.append(", maxBlobByteSizePerRow="); + return b.d.b.a.a.A(R, this.f, "}"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/a0.java b/app/src/main/java/b/i/a/b/j/t/i/a0.java new file mode 100644 index 0000000000..49daa07f29 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/a0.java @@ -0,0 +1,23 @@ +package b.i.a.b.j.t.i; + +import android.content.Context; +import c0.a.a; +/* compiled from: SchemaManager_Factory */ +public final class a0 implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f782b; + public final a c; + + public a0(a aVar, a aVar2, a aVar3) { + this.a = aVar; + this.f782b = aVar2; + this.c = aVar3; + } + + @Override // c0.a.a + public Object get() { + return new z(this.a.get(), this.f782b.get(), this.c.get().intValue()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/b.java b/app/src/main/java/b/i/a/b/j/t/i/b.java new file mode 100644 index 0000000000..81ac2b2701 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/b.java @@ -0,0 +1,64 @@ +package b.i.a.b.j.t.i; + +import b.d.b.a.a; +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import java.util.Objects; +/* compiled from: AutoValue_PersistedEvent */ +public final class b extends h { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final i f783b; + public final f c; + + public b(long j, i iVar, f fVar) { + this.a = j; + Objects.requireNonNull(iVar, "Null transportContext"); + this.f783b = iVar; + Objects.requireNonNull(fVar, "Null event"); + this.c = fVar; + } + + @Override // b.i.a.b.j.t.i.h + public f a() { + return this.c; + } + + @Override // b.i.a.b.j.t.i.h + public long b() { + return this.a; + } + + @Override // b.i.a.b.j.t.i.h + public i c() { + return this.f783b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof h)) { + return false; + } + h hVar = (h) obj; + return this.a == hVar.b() && this.f783b.equals(hVar.c()) && this.c.equals(hVar.a()); + } + + public int hashCode() { + long j = this.a; + return this.c.hashCode() ^ ((((((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003) ^ this.f783b.hashCode()) * 1000003); + } + + public String toString() { + StringBuilder R = a.R("PersistedEvent{id="); + R.append(this.a); + R.append(", transportContext="); + R.append(this.f783b); + R.append(", event="); + R.append(this.c); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/c.java b/app/src/main/java/b/i/a/b/j/t/i/c.java new file mode 100644 index 0000000000..2ab544f360 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/c.java @@ -0,0 +1,29 @@ +package b.i.a.b.j.t.i; + +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import java.io.Closeable; +/* compiled from: EventStore */ +@WorkerThread +public interface c extends Closeable { + @Nullable + h a0(i iVar, f fVar); + + long h0(i iVar); + + int l(); + + boolean l0(i iVar); + + void m(Iterable iterable); + + void n0(Iterable iterable); + + Iterable r(i iVar); + + void v(i iVar, long j); + + Iterable z(); +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/d.java b/app/src/main/java/b/i/a/b/j/t/i/d.java new file mode 100644 index 0000000000..b8286c16e9 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/d.java @@ -0,0 +1,45 @@ +package b.i.a.b.j.t.i; + +import b.d.b.a.a; +import com.google.auto.value.AutoValue; +/* compiled from: EventStoreConfig */ +@AutoValue +public abstract class d { + public static final d a; + + static { + Long l = 10485760L; + Integer num = 200; + Integer num2 = 10000; + Long l2 = 604800000L; + Integer num3 = 81920; + String str = l == null ? " maxStorageSizeInBytes" : ""; + if (num == null) { + str = a.v(str, " loadBatchSize"); + } + if (num2 == null) { + str = a.v(str, " criticalSectionEnterTimeoutMs"); + } + if (l2 == null) { + str = a.v(str, " eventCleanUpAge"); + } + if (num3 == null) { + str = a.v(str, " maxBlobByteSizePerRow"); + } + if (str.isEmpty()) { + a = new a(l.longValue(), num.intValue(), num2.intValue(), l2.longValue(), num3.intValue(), null); + return; + } + throw new IllegalStateException(a.v("Missing required properties:", str)); + } + + public abstract int a(); + + public abstract long b(); + + public abstract int c(); + + public abstract int d(); + + public abstract long e(); +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/e.java b/app/src/main/java/b/i/a/b/j/t/i/e.java new file mode 100644 index 0000000000..f7fbbe1e4f --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/e.java @@ -0,0 +1,14 @@ +package b.i.a.b.j.t.i; +/* compiled from: EventStoreModule_DbNameFactory */ +public final class e implements c0.a.a { + + /* compiled from: EventStoreModule_DbNameFactory */ + public static final class a { + public static final e a = new e(); + } + + @Override // c0.a.a + public /* bridge */ /* synthetic */ Object get() { + return "com.google.android.datatransport.events"; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/f.java b/app/src/main/java/b/i/a/b/j/t/i/f.java new file mode 100644 index 0000000000..2135fb5b89 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/f.java @@ -0,0 +1,18 @@ +package b.i.a.b.j.t.i; + +import b.i.a.b.j.t.i.z; +import java.util.List; +/* compiled from: EventStoreModule_SchemaVersionFactory */ +public final class f implements c0.a.a { + + /* compiled from: EventStoreModule_SchemaVersionFactory */ + public static final class a { + public static final f a = new f(); + } + + @Override // c0.a.a + public Object get() { + List list = z.j; + return 4; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/g.java b/app/src/main/java/b/i/a/b/j/t/i/g.java new file mode 100644 index 0000000000..33c582eb64 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/g.java @@ -0,0 +1,18 @@ +package b.i.a.b.j.t.i; + +import java.util.Objects; +/* compiled from: EventStoreModule_StoreConfigFactory */ +public final class g implements c0.a.a { + + /* compiled from: EventStoreModule_StoreConfigFactory */ + public static final class a { + public static final g a = new g(); + } + + @Override // c0.a.a + public Object get() { + d dVar = d.a; + Objects.requireNonNull(dVar, "Cannot return null from a non-@Nullable @Provides method"); + return dVar; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/h.java b/app/src/main/java/b/i/a/b/j/t/i/h.java new file mode 100644 index 0000000000..33035e9321 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/h.java @@ -0,0 +1,14 @@ +package b.i.a.b.j.t.i; + +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import com.google.auto.value.AutoValue; +/* compiled from: PersistedEvent */ +@AutoValue +public abstract class h { + public abstract f a(); + + public abstract long b(); + + public abstract i c(); +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/i.java b/app/src/main/java/b/i/a/b/j/t/i/i.java new file mode 100644 index 0000000000..36a60b7d04 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/i.java @@ -0,0 +1,35 @@ +package b.i.a.b.j.t.i; + +import android.content.ContentValues; +import android.database.sqlite.SQLiteDatabase; +import b.i.a.b.b; +import b.i.a.b.j.t.i.t; +import b.i.a.b.j.w.a; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class i implements t.b { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final b.i.a.b.j.i f784b; + + public i(long j, b.i.a.b.j.i iVar) { + this.a = j; + this.f784b = iVar; + } + + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + long j = this.a; + b.i.a.b.j.i iVar = this.f784b; + SQLiteDatabase sQLiteDatabase = (SQLiteDatabase) obj; + b bVar = t.j; + ContentValues contentValues = new ContentValues(); + contentValues.put("next_request_ms", Long.valueOf(j)); + if (sQLiteDatabase.update("transport_contexts", contentValues, "backend_name = ? and priority = ?", new String[]{iVar.b(), String.valueOf(a.a(iVar.d()))}) < 1) { + contentValues.put("backend_name", iVar.b()); + contentValues.put("priority", Integer.valueOf(a.a(iVar.d()))); + sQLiteDatabase.insert("transport_contexts", null, contentValues); + } + return null; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/j.java b/app/src/main/java/b/i/a/b/j/t/i/j.java new file mode 100644 index 0000000000..2f17fc3f32 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/j.java @@ -0,0 +1,79 @@ +package b.i.a.b.j.t.i; + +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import b.i.a.b.b; +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import b.i.a.b.j.t.i.t; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.ListIterator; +import java.util.Objects; +import java.util.Set; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class j implements t.b { + public final t a; + + /* renamed from: b reason: collision with root package name */ + public final i f785b; + + public j(t tVar, i iVar) { + this.a = tVar; + this.f785b = iVar; + } + + /* JADX INFO: finally extract failed */ + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + t tVar = this.a; + i iVar = this.f785b; + SQLiteDatabase sQLiteDatabase = (SQLiteDatabase) obj; + b bVar = t.j; + Objects.requireNonNull(tVar); + ArrayList arrayList = new ArrayList(); + Long c = tVar.c(sQLiteDatabase, iVar); + if (c != null) { + t.n(sQLiteDatabase.query("events", new String[]{"_id", "transport_name", "timestamp_ms", "uptime_ms", "payload_encoding", "payload", ModelAuditLogEntry.CHANGE_KEY_CODE, "inline"}, "context_id = ?", new String[]{c.toString()}, null, null, null, String.valueOf(tVar.n.c())), new k(tVar, arrayList, iVar)); + } + HashMap hashMap = new HashMap(); + StringBuilder sb = new StringBuilder("event_id IN ("); + for (int i = 0; i < arrayList.size(); i++) { + sb.append(((h) arrayList.get(i)).b()); + if (i < arrayList.size() - 1) { + sb.append(','); + } + } + sb.append(')'); + Cursor query = sQLiteDatabase.query("event_metadata", new String[]{"event_id", ModelAuditLogEntry.CHANGE_KEY_NAME, "value"}, sb.toString(), null, null, null, null); + while (query.moveToNext()) { + try { + long j = query.getLong(0); + Set set = (Set) hashMap.get(Long.valueOf(j)); + if (set == null) { + set = new HashSet(); + hashMap.put(Long.valueOf(j), set); + } + set.add(new t.c(query.getString(1), query.getString(2), null)); + } catch (Throwable th) { + query.close(); + throw th; + } + } + query.close(); + ListIterator listIterator = arrayList.listIterator(); + while (listIterator.hasNext()) { + h hVar = (h) listIterator.next(); + if (hashMap.containsKey(Long.valueOf(hVar.b()))) { + f.a i2 = hVar.a().i(); + for (t.c cVar : (Set) hashMap.get(Long.valueOf(hVar.b()))) { + i2.a(cVar.a, cVar.f788b); + } + listIterator.set(new b(hVar.b(), hVar.c(), i2.b())); + } + } + return arrayList; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/k.java b/app/src/main/java/b/i/a/b/j/t/i/k.java new file mode 100644 index 0000000000..1edebc9e3c --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/k.java @@ -0,0 +1,54 @@ +package b.i.a.b.j.t.i; + +import android.database.Cursor; +import b.i.a.b.b; +import b.i.a.b.j.a; +import b.i.a.b.j.e; +import b.i.a.b.j.i; +import b.i.a.b.j.t.i.t; +import java.util.HashMap; +import java.util.List; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class k implements t.b { + public final t a; + + /* renamed from: b reason: collision with root package name */ + public final List f786b; + public final i c; + + public k(t tVar, List list, i iVar) { + this.a = tVar; + this.f786b = list; + this.c = iVar; + } + + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + t tVar = this.a; + List list = this.f786b; + i iVar = this.c; + Cursor cursor = (Cursor) obj; + b bVar = t.j; + while (cursor.moveToNext()) { + long j = cursor.getLong(0); + boolean z2 = cursor.getInt(7) != 0; + a.b bVar2 = new a.b(); + bVar2.f = new HashMap(); + bVar2.f(cursor.getString(1)); + bVar2.e(cursor.getLong(2)); + bVar2.g(cursor.getLong(3)); + if (z2) { + String string = cursor.getString(4); + bVar2.d(new e(string == null ? t.j : new b(string), cursor.getBlob(5))); + } else { + String string2 = cursor.getString(4); + bVar2.d(new e(string2 == null ? t.j : new b(string2), (byte[]) t.n(tVar.b().query("event_payloads", new String[]{"bytes"}, "event_id = ?", new String[]{String.valueOf(j)}, null, null, "sequence_num"), l.a))); + } + if (!cursor.isNull(6)) { + bVar2.f748b = Integer.valueOf(cursor.getInt(6)); + } + list.add(new b(j, iVar, bVar2.b())); + } + return null; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/l.java b/app/src/main/java/b/i/a/b/j/t/i/l.java new file mode 100644 index 0000000000..925d9fcc3e --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/l.java @@ -0,0 +1,31 @@ +package b.i.a.b.j.t.i; + +import android.database.Cursor; +import b.i.a.b.b; +import b.i.a.b.j.t.i.t; +import java.util.ArrayList; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class l implements t.b { + public static final l a = new l(); + + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + Cursor cursor = (Cursor) obj; + b bVar = t.j; + ArrayList arrayList = new ArrayList(); + int i = 0; + while (cursor.moveToNext()) { + byte[] blob = cursor.getBlob(0); + arrayList.add(blob); + i += blob.length; + } + byte[] bArr = new byte[i]; + int i2 = 0; + for (int i3 = 0; i3 < arrayList.size(); i3++) { + byte[] bArr2 = (byte[]) arrayList.get(i3); + System.arraycopy(bArr2, 0, bArr, i2, bArr2.length); + i2 += bArr2.length; + } + return bArr; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/m.java b/app/src/main/java/b/i/a/b/j/t/i/m.java new file mode 100644 index 0000000000..a986ac7568 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/m.java @@ -0,0 +1,21 @@ +package b.i.a.b.j.t.i; + +import android.database.sqlite.SQLiteDatabase; +import b.i.a.b.b; +import b.i.a.b.j.t.i.t; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class m implements t.d { + public final SQLiteDatabase a; + + public m(SQLiteDatabase sQLiteDatabase) { + this.a = sQLiteDatabase; + } + + @Override // b.i.a.b.j.t.i.t.d + public Object a() { + SQLiteDatabase sQLiteDatabase = this.a; + b bVar = t.j; + sQLiteDatabase.beginTransaction(); + return null; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/n.java b/app/src/main/java/b/i/a/b/j/t/i/n.java new file mode 100644 index 0000000000..de566a2d86 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/n.java @@ -0,0 +1,15 @@ +package b.i.a.b.j.t.i; + +import b.i.a.b.b; +import b.i.a.b.j.t.i.t; +import com.google.android.datatransport.runtime.synchronization.SynchronizationException; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class n implements t.b { + public static final n a = new n(); + + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + b bVar = t.j; + throw new SynchronizationException("Timed out while trying to acquire the lock.", (Throwable) obj); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/o.java b/app/src/main/java/b/i/a/b/j/t/i/o.java new file mode 100644 index 0000000000..8bcecdbe2e --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/o.java @@ -0,0 +1,16 @@ +package b.i.a.b.j.t.i; + +import b.i.a.b.j.t.i.t; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class o implements t.d { + public final z a; + + public o(z zVar) { + this.a = zVar; + } + + @Override // b.i.a.b.j.t.i.t.d + public Object a() { + return this.a.getWritableDatabase(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/p.java b/app/src/main/java/b/i/a/b/j/t/i/p.java new file mode 100644 index 0000000000..8a3c65b2f7 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/p.java @@ -0,0 +1,31 @@ +package b.i.a.b.j.t.i; + +import android.database.Cursor; +import android.util.Base64; +import b.i.a.b.b; +import b.i.a.b.j.b; +import b.i.a.b.j.i; +import b.i.a.b.j.t.i.t; +import b.i.a.b.j.w.a; +import java.util.ArrayList; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class p implements t.b { + public static final p a = new p(); + + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + Cursor cursor = (Cursor) obj; + b bVar = t.j; + ArrayList arrayList = new ArrayList(); + while (cursor.moveToNext()) { + i.a a2 = i.a(); + a2.b(cursor.getString(1)); + a2.c(a.b(cursor.getInt(2))); + String string = cursor.getString(3); + b.C0078b bVar2 = (b.C0078b) a2; + bVar2.f750b = string == null ? null : Base64.decode(string, 0); + arrayList.add(bVar2.a()); + } + return arrayList; + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/q.java b/app/src/main/java/b/i/a/b/j/t/i/q.java new file mode 100644 index 0000000000..d6da6bf40e --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/q.java @@ -0,0 +1,13 @@ +package b.i.a.b.j.t.i; + +import android.database.Cursor; +import b.i.a.b.j.t.i.t; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class q implements t.b { + public static final q a = new q(); + + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + return Boolean.valueOf(((Cursor) obj).moveToNext()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/r.java b/app/src/main/java/b/i/a/b/j/t/i/r.java new file mode 100644 index 0000000000..1da89b2b74 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/r.java @@ -0,0 +1,15 @@ +package b.i.a.b.j.t.i; + +import b.i.a.b.b; +import b.i.a.b.j.t.i.t; +import com.google.android.datatransport.runtime.synchronization.SynchronizationException; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class r implements t.b { + public static final r a = new r(); + + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + b bVar = t.j; + throw new SynchronizationException("Timed out while trying to open db.", (Throwable) obj); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/s.java b/app/src/main/java/b/i/a/b/j/t/i/s.java new file mode 100644 index 0000000000..47d5bbcf7c --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/s.java @@ -0,0 +1,88 @@ +package b.i.a.b.j.t.i; + +import android.content.ContentValues; +import android.database.sqlite.SQLiteDatabase; +import android.util.Base64; +import androidx.core.app.NotificationCompat; +import b.i.a.b.b; +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import b.i.a.b.j.t.i.t; +import b.i.a.b.j.w.a; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.Arrays; +import java.util.Collections; +import java.util.Map; +/* compiled from: SQLiteEventStore */ +public final /* synthetic */ class s implements t.b { + public final t a; + + /* renamed from: b reason: collision with root package name */ + public final i f787b; + public final f c; + + public s(t tVar, i iVar, f fVar) { + this.a = tVar; + this.f787b = iVar; + this.c = fVar; + } + + @Override // b.i.a.b.j.t.i.t.b + public Object apply(Object obj) { + long j; + t tVar = this.a; + i iVar = this.f787b; + f fVar = this.c; + SQLiteDatabase sQLiteDatabase = (SQLiteDatabase) obj; + b bVar = t.j; + if (tVar.b().compileStatement("PRAGMA page_size").simpleQueryForLong() * tVar.b().compileStatement("PRAGMA page_count").simpleQueryForLong() >= tVar.n.e()) { + return -1L; + } + Long c = tVar.c(sQLiteDatabase, iVar); + if (c != null) { + j = c.longValue(); + } else { + ContentValues contentValues = new ContentValues(); + contentValues.put("backend_name", iVar.b()); + contentValues.put("priority", Integer.valueOf(a.a(iVar.d()))); + contentValues.put("next_request_ms", (Integer) 0); + if (iVar.c() != null) { + contentValues.put(NotificationCompat.MessagingStyle.Message.KEY_EXTRAS_BUNDLE, Base64.encodeToString(iVar.c(), 0)); + } + j = sQLiteDatabase.insert("transport_contexts", null, contentValues); + } + int d = tVar.n.d(); + byte[] bArr = fVar.d().f752b; + boolean z2 = bArr.length <= d; + ContentValues contentValues2 = new ContentValues(); + contentValues2.put("context_id", Long.valueOf(j)); + contentValues2.put("transport_name", fVar.g()); + contentValues2.put("timestamp_ms", Long.valueOf(fVar.e())); + contentValues2.put("uptime_ms", Long.valueOf(fVar.h())); + contentValues2.put("payload_encoding", fVar.d().a.a); + contentValues2.put(ModelAuditLogEntry.CHANGE_KEY_CODE, fVar.c()); + contentValues2.put("num_attempts", (Integer) 0); + contentValues2.put("inline", Boolean.valueOf(z2)); + contentValues2.put("payload", z2 ? bArr : new byte[0]); + long insert = sQLiteDatabase.insert("events", null, contentValues2); + if (!z2) { + int ceil = (int) Math.ceil(((double) bArr.length) / ((double) d)); + for (int i = 1; i <= ceil; i++) { + byte[] copyOfRange = Arrays.copyOfRange(bArr, (i - 1) * d, Math.min(i * d, bArr.length)); + ContentValues contentValues3 = new ContentValues(); + contentValues3.put("event_id", Long.valueOf(insert)); + contentValues3.put("sequence_num", Integer.valueOf(i)); + contentValues3.put("bytes", copyOfRange); + sQLiteDatabase.insert("event_payloads", null, contentValues3); + } + } + for (Map.Entry entry : Collections.unmodifiableMap(fVar.b()).entrySet()) { + ContentValues contentValues4 = new ContentValues(); + contentValues4.put("event_id", Long.valueOf(insert)); + contentValues4.put(ModelAuditLogEntry.CHANGE_KEY_NAME, (String) entry.getKey()); + contentValues4.put("value", (String) entry.getValue()); + sQLiteDatabase.insert("event_metadata", null, contentValues4); + } + return Long.valueOf(insert); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/t.java b/app/src/main/java/b/i/a/b/j/t/i/t.java new file mode 100644 index 0000000000..17c4c225c7 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/t.java @@ -0,0 +1,253 @@ +package b.i.a.b.j.t.i; + +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteDatabaseLockedException; +import android.os.SystemClock; +import android.util.Base64; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import androidx.annotation.WorkerThread; +import b.i.a.b.j.f; +import b.i.a.b.j.i; +import b.i.a.b.j.u.a; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +/* compiled from: SQLiteEventStore */ +@WorkerThread +public class t implements c, b.i.a.b.j.u.a { + public static final b.i.a.b.b j = new b.i.a.b.b("proto"); + public final z k; + public final b.i.a.b.j.v.a l; + public final b.i.a.b.j.v.a m; + public final d n; + + /* compiled from: SQLiteEventStore */ + public interface b { + U apply(T t); + } + + /* compiled from: SQLiteEventStore */ + public static class c { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f788b; + + public c(String str, String str2, a aVar) { + this.a = str; + this.f788b = str2; + } + } + + /* compiled from: SQLiteEventStore */ + public interface d { + T a(); + } + + public t(b.i.a.b.j.v.a aVar, b.i.a.b.j.v.a aVar2, d dVar, z zVar) { + this.k = zVar; + this.l = aVar; + this.m = aVar2; + this.n = dVar; + } + + public static String f(Iterable iterable) { + StringBuilder sb = new StringBuilder("("); + Iterator it = iterable.iterator(); + while (it.hasNext()) { + sb.append(it.next().b()); + if (it.hasNext()) { + sb.append(','); + } + } + sb.append(')'); + return sb.toString(); + } + + public static T n(Cursor cursor, b bVar) { + try { + return bVar.apply(cursor); + } finally { + cursor.close(); + } + } + + @Override // b.i.a.b.j.u.a + public T a(a.AbstractC0082a aVar) { + SQLiteDatabase b2 = b(); + e(new m(b2), n.a); + try { + T execute = aVar.execute(); + b2.setTransactionSuccessful(); + return execute; + } finally { + b2.endTransaction(); + } + } + + @Override // b.i.a.b.j.t.i.c + @Nullable + public h a0(i iVar, f fVar) { + b.c.a.a0.d.X("SQLiteEventStore", "Storing event with priority=%s, name=%s for destination %s", iVar.d(), fVar.g(), iVar.b()); + long longValue = ((Long) d(new s(this, iVar, fVar))).longValue(); + if (longValue < 1) { + return null; + } + return new b(longValue, iVar, fVar); + } + + @VisibleForTesting + public SQLiteDatabase b() { + z zVar = this.k; + zVar.getClass(); + return (SQLiteDatabase) e(new o(zVar), r.a); + } + + @Nullable + public final Long c(SQLiteDatabase sQLiteDatabase, i iVar) { + StringBuilder sb = new StringBuilder("backend_name = ? and priority = ?"); + ArrayList arrayList = new ArrayList(Arrays.asList(iVar.b(), String.valueOf(b.i.a.b.j.w.a.a(iVar.d())))); + if (iVar.c() != null) { + sb.append(" and extras = ?"); + arrayList.add(Base64.encodeToString(iVar.c(), 0)); + } + Cursor query = sQLiteDatabase.query("transport_contexts", new String[]{"_id"}, sb.toString(), (String[]) arrayList.toArray(new String[0]), null, null, null); + try { + return !query.moveToNext() ? null : Long.valueOf(query.getLong(0)); + } finally { + query.close(); + } + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() { + this.k.close(); + } + + public final T d(b bVar) { + SQLiteDatabase b2 = b(); + b2.beginTransaction(); + try { + T apply = bVar.apply(b2); + b2.setTransactionSuccessful(); + return apply; + } finally { + b2.endTransaction(); + } + } + + public final T e(d dVar, b bVar) { + long a2 = this.m.a(); + while (true) { + try { + return dVar.a(); + } catch (SQLiteDatabaseLockedException e) { + if (this.m.a() >= ((long) this.n.a()) + a2) { + return bVar.apply(e); + } + SystemClock.sleep(50); + } + } + } + + /* JADX INFO: finally extract failed */ + @Override // b.i.a.b.j.t.i.c + public long h0(i iVar) { + Cursor rawQuery = b().rawQuery("SELECT next_request_ms FROM transport_contexts WHERE backend_name = ? and priority = ?", new String[]{iVar.b(), String.valueOf(b.i.a.b.j.w.a.a(iVar.d()))}); + try { + Long valueOf = rawQuery.moveToNext() ? Long.valueOf(rawQuery.getLong(0)) : 0L; + rawQuery.close(); + return valueOf.longValue(); + } catch (Throwable th) { + rawQuery.close(); + throw th; + } + } + + /* JADX INFO: finally extract failed */ + @Override // b.i.a.b.j.t.i.c + public int l() { + long a2 = this.l.a() - this.n.b(); + SQLiteDatabase b2 = b(); + b2.beginTransaction(); + try { + Integer valueOf = Integer.valueOf(b2.delete("events", "timestamp_ms < ?", new String[]{String.valueOf(a2)})); + b2.setTransactionSuccessful(); + b2.endTransaction(); + return valueOf.intValue(); + } catch (Throwable th) { + b2.endTransaction(); + throw th; + } + } + + /* JADX INFO: finally extract failed */ + @Override // b.i.a.b.j.t.i.c + public boolean l0(i iVar) { + SQLiteDatabase b2 = b(); + b2.beginTransaction(); + try { + Long c2 = c(b2, iVar); + Boolean bool = c2 == null ? Boolean.FALSE : (Boolean) n(b().rawQuery("SELECT 1 FROM events WHERE context_id = ? LIMIT 1", new String[]{c2.toString()}), q.a); + b2.setTransactionSuccessful(); + b2.endTransaction(); + return bool.booleanValue(); + } catch (Throwable th) { + b2.endTransaction(); + throw th; + } + } + + @Override // b.i.a.b.j.t.i.c + public void m(Iterable iterable) { + if (iterable.iterator().hasNext()) { + StringBuilder R = b.d.b.a.a.R("DELETE FROM events WHERE _id in "); + R.append(f(iterable)); + b().compileStatement(R.toString()).execute(); + } + } + + @Override // b.i.a.b.j.t.i.c + public void n0(Iterable iterable) { + if (iterable.iterator().hasNext()) { + StringBuilder R = b.d.b.a.a.R("UPDATE events SET num_attempts = num_attempts + 1 WHERE _id in "); + R.append(f(iterable)); + String sb = R.toString(); + SQLiteDatabase b2 = b(); + b2.beginTransaction(); + try { + b2.compileStatement(sb).execute(); + b2.compileStatement("DELETE FROM events WHERE num_attempts >= 16").execute(); + b2.setTransactionSuccessful(); + } finally { + b2.endTransaction(); + } + } + } + + @Override // b.i.a.b.j.t.i.c + public Iterable r(i iVar) { + return (Iterable) d(new j(this, iVar)); + } + + @Override // b.i.a.b.j.t.i.c + public void v(i iVar, long j2) { + d(new i(j2, iVar)); + } + + @Override // b.i.a.b.j.t.i.c + public Iterable z() { + SQLiteDatabase b2 = b(); + b2.beginTransaction(); + try { + List list = (List) n(b2.rawQuery("SELECT distinct t._id, t.backend_name, t.priority, t.extras FROM transport_contexts AS t, events AS e WHERE e.context_id = t._id", new String[0]), p.a); + b2.setTransactionSuccessful(); + return list; + } finally { + b2.endTransaction(); + } + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/u.java b/app/src/main/java/b/i/a/b/j/t/i/u.java new file mode 100644 index 0000000000..173059b643 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/u.java @@ -0,0 +1,24 @@ +package b.i.a.b.j.t.i; + +import c0.a.a; +/* compiled from: SQLiteEventStore_Factory */ +public final class u implements a { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f789b; + public final a c; + public final a d; + + public u(a aVar, a aVar2, a aVar3, a aVar4) { + this.a = aVar; + this.f789b = aVar2; + this.c = aVar3; + this.d = aVar4; + } + + @Override // c0.a.a + public Object get() { + return new t(this.a.get(), this.f789b.get(), this.c.get(), this.d.get()); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/v.java b/app/src/main/java/b/i/a/b/j/t/i/v.java new file mode 100644 index 0000000000..2b8c374ac4 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/v.java @@ -0,0 +1,19 @@ +package b.i.a.b.j.t.i; + +import android.database.sqlite.SQLiteDatabase; +import b.i.a.b.j.t.i.z; +import java.util.List; +/* compiled from: SchemaManager */ +public final /* synthetic */ class v implements z.a { + public static final v a = new v(); + + @Override // b.i.a.b.j.t.i.z.a + public void a(SQLiteDatabase sQLiteDatabase) { + List list = z.j; + sQLiteDatabase.execSQL("CREATE TABLE events (_id INTEGER PRIMARY KEY, context_id INTEGER NOT NULL, transport_name TEXT NOT NULL, timestamp_ms INTEGER NOT NULL, uptime_ms INTEGER NOT NULL, payload BLOB NOT NULL, code INTEGER, num_attempts INTEGER NOT NULL,FOREIGN KEY (context_id) REFERENCES transport_contexts(_id) ON DELETE CASCADE)"); + sQLiteDatabase.execSQL("CREATE TABLE event_metadata (_id INTEGER PRIMARY KEY, event_id INTEGER NOT NULL, name TEXT NOT NULL, value TEXT NOT NULL,FOREIGN KEY (event_id) REFERENCES events(_id) ON DELETE CASCADE)"); + sQLiteDatabase.execSQL("CREATE TABLE transport_contexts (_id INTEGER PRIMARY KEY, backend_name TEXT NOT NULL, priority INTEGER NOT NULL, next_request_ms INTEGER NOT NULL)"); + sQLiteDatabase.execSQL("CREATE INDEX events_backend_id on events(context_id)"); + sQLiteDatabase.execSQL("CREATE UNIQUE INDEX contexts_backend_priority on transport_contexts(backend_name, priority)"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/w.java b/app/src/main/java/b/i/a/b/j/t/i/w.java new file mode 100644 index 0000000000..706545cc0f --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/w.java @@ -0,0 +1,17 @@ +package b.i.a.b.j.t.i; + +import android.database.sqlite.SQLiteDatabase; +import b.i.a.b.j.t.i.z; +import java.util.List; +/* compiled from: SchemaManager */ +public final /* synthetic */ class w implements z.a { + public static final w a = new w(); + + @Override // b.i.a.b.j.t.i.z.a + public void a(SQLiteDatabase sQLiteDatabase) { + List list = z.j; + sQLiteDatabase.execSQL("ALTER TABLE transport_contexts ADD COLUMN extras BLOB"); + sQLiteDatabase.execSQL("CREATE UNIQUE INDEX contexts_backend_priority_extras on transport_contexts(backend_name, priority, extras)"); + sQLiteDatabase.execSQL("DROP INDEX contexts_backend_priority"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/x.java b/app/src/main/java/b/i/a/b/j/t/i/x.java new file mode 100644 index 0000000000..5d338c7da3 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/x.java @@ -0,0 +1,15 @@ +package b.i.a.b.j.t.i; + +import android.database.sqlite.SQLiteDatabase; +import b.i.a.b.j.t.i.z; +import java.util.List; +/* compiled from: SchemaManager */ +public final /* synthetic */ class x implements z.a { + public static final x a = new x(); + + @Override // b.i.a.b.j.t.i.z.a + public void a(SQLiteDatabase sQLiteDatabase) { + List list = z.j; + sQLiteDatabase.execSQL("ALTER TABLE events ADD COLUMN payload_encoding TEXT"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/y.java b/app/src/main/java/b/i/a/b/j/t/i/y.java new file mode 100644 index 0000000000..19e90a380b --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/y.java @@ -0,0 +1,17 @@ +package b.i.a.b.j.t.i; + +import android.database.sqlite.SQLiteDatabase; +import b.i.a.b.j.t.i.z; +import java.util.List; +/* compiled from: SchemaManager */ +public final /* synthetic */ class y implements z.a { + public static final y a = new y(); + + @Override // b.i.a.b.j.t.i.z.a + public void a(SQLiteDatabase sQLiteDatabase) { + List list = z.j; + sQLiteDatabase.execSQL("ALTER TABLE events ADD COLUMN inline BOOLEAN NOT NULL DEFAULT 1"); + sQLiteDatabase.execSQL("DROP TABLE IF EXISTS event_payloads"); + sQLiteDatabase.execSQL("CREATE TABLE event_payloads (sequence_num INTEGER NOT NULL, event_id INTEGER NOT NULL, bytes BLOB NOT NULL,FOREIGN KEY (event_id) REFERENCES events(_id) ON DELETE CASCADE,PRIMARY KEY (sequence_num, event_id))"); + } +} diff --git a/app/src/main/java/b/i/a/b/j/t/i/z.java b/app/src/main/java/b/i/a/b/j/t/i/z.java new file mode 100644 index 0000000000..7c533d40c1 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/t/i/z.java @@ -0,0 +1,81 @@ +package b.i.a.b.j.t.i; + +import android.content.Context; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteOpenHelper; +import java.util.Arrays; +import java.util.List; +/* compiled from: SchemaManager */ +public final class z extends SQLiteOpenHelper { + public static final List j = Arrays.asList(v.a, w.a, x.a, y.a); + public final int k; + public boolean l = false; + + /* compiled from: SchemaManager */ + public interface a { + void a(SQLiteDatabase sQLiteDatabase); + } + + public z(Context context, String str, int i) { + super(context, str, (SQLiteDatabase.CursorFactory) null, i); + this.k = i; + } + + public final void a(SQLiteDatabase sQLiteDatabase, int i, int i2) { + List list = j; + if (i2 <= list.size()) { + while (i < i2) { + j.get(i).a(sQLiteDatabase); + i++; + } + return; + } + StringBuilder U = b.d.b.a.a.U("Migration from ", i, " to ", i2, " was requested, but cannot be performed. Only "); + U.append(list.size()); + U.append(" migrations are provided"); + throw new IllegalArgumentException(U.toString()); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public void onConfigure(SQLiteDatabase sQLiteDatabase) { + this.l = true; + sQLiteDatabase.rawQuery("PRAGMA busy_timeout=0;", new String[0]).close(); + sQLiteDatabase.setForeignKeyConstraintsEnabled(true); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public void onCreate(SQLiteDatabase sQLiteDatabase) { + int i = this.k; + if (!this.l) { + onConfigure(sQLiteDatabase); + } + a(sQLiteDatabase, 0, i); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + sQLiteDatabase.execSQL("DROP TABLE events"); + sQLiteDatabase.execSQL("DROP TABLE event_metadata"); + sQLiteDatabase.execSQL("DROP TABLE transport_contexts"); + sQLiteDatabase.execSQL("DROP TABLE IF EXISTS event_payloads"); + if (!this.l) { + onConfigure(sQLiteDatabase); + } + a(sQLiteDatabase, 0, i2); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public void onOpen(SQLiteDatabase sQLiteDatabase) { + if (!this.l) { + onConfigure(sQLiteDatabase); + } + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + if (!this.l) { + onConfigure(sQLiteDatabase); + } + a(sQLiteDatabase, i, i2); + } +} diff --git a/app/src/main/java/b/i/a/b/j/u/a.java b/app/src/main/java/b/i/a/b/j/u/a.java new file mode 100644 index 0000000000..63f09a4600 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/u/a.java @@ -0,0 +1,15 @@ +package b.i.a.b.j.u; + +import androidx.annotation.WorkerThread; +/* compiled from: SynchronizationGuard */ +@WorkerThread +public interface a { + + /* compiled from: SynchronizationGuard */ + /* renamed from: b.i.a.b.j.u.a$a reason: collision with other inner class name */ + public interface AbstractC0082a { + T execute(); + } + + T a(AbstractC0082a aVar); +} diff --git a/app/src/main/java/b/i/a/b/j/v/a.java b/app/src/main/java/b/i/a/b/j/v/a.java new file mode 100644 index 0000000000..3802b4f4d6 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/v/a.java @@ -0,0 +1,5 @@ +package b.i.a.b.j.v; +/* compiled from: Clock */ +public interface a { + long a(); +} diff --git a/app/src/main/java/b/i/a/b/j/v/b.java b/app/src/main/java/b/i/a/b/j/v/b.java new file mode 100644 index 0000000000..1f4964ba23 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/v/b.java @@ -0,0 +1,14 @@ +package b.i.a.b.j.v; +/* compiled from: TimeModule_EventClockFactory */ +public final class b implements c0.a.a { + + /* compiled from: TimeModule_EventClockFactory */ + public static final class a { + public static final b a = new b(); + } + + @Override // c0.a.a + public Object get() { + return new e(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/v/c.java b/app/src/main/java/b/i/a/b/j/v/c.java new file mode 100644 index 0000000000..16b61cd0e6 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/v/c.java @@ -0,0 +1,14 @@ +package b.i.a.b.j.v; +/* compiled from: TimeModule_UptimeClockFactory */ +public final class c implements c0.a.a { + + /* compiled from: TimeModule_UptimeClockFactory */ + public static final class a { + public static final c a = new c(); + } + + @Override // c0.a.a + public Object get() { + return new d(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/v/d.java b/app/src/main/java/b/i/a/b/j/v/d.java new file mode 100644 index 0000000000..72a1a27f2b --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/v/d.java @@ -0,0 +1,10 @@ +package b.i.a.b.j.v; + +import android.os.SystemClock; +/* compiled from: UptimeClock */ +public class d implements a { + @Override // b.i.a.b.j.v.a + public long a() { + return SystemClock.elapsedRealtime(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/v/e.java b/app/src/main/java/b/i/a/b/j/v/e.java new file mode 100644 index 0000000000..45e0050849 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/v/e.java @@ -0,0 +1,8 @@ +package b.i.a.b.j.v; +/* compiled from: WallTimeClock */ +public class e implements a { + @Override // b.i.a.b.j.v.a + public long a() { + return System.currentTimeMillis(); + } +} diff --git a/app/src/main/java/b/i/a/b/j/w/a.java b/app/src/main/java/b/i/a/b/j/w/a.java new file mode 100644 index 0000000000..c9c57d8e43 --- /dev/null +++ b/app/src/main/java/b/i/a/b/j/w/a.java @@ -0,0 +1,41 @@ +package b.i.a.b.j.w; + +import android.util.SparseArray; +import androidx.annotation.NonNull; +import b.i.a.b.d; +import java.util.EnumMap; +/* compiled from: PriorityMapping */ +public final class a { + public static SparseArray a = new SparseArray<>(); + + /* renamed from: b reason: collision with root package name */ + public static EnumMap f790b; + + static { + EnumMap enumMap = new EnumMap<>(d.class); + f790b = enumMap; + enumMap.put((EnumMap) d.DEFAULT, (d) 0); + f790b.put((EnumMap) d.VERY_LOW, (d) 1); + f790b.put((EnumMap) d.HIGHEST, (d) 2); + for (d dVar : f790b.keySet()) { + a.append(f790b.get(dVar).intValue(), dVar); + } + } + + public static int a(@NonNull d dVar) { + Integer num = f790b.get(dVar); + if (num != null) { + return num.intValue(); + } + throw new IllegalStateException("PriorityMapping is missing known Priority value " + dVar); + } + + @NonNull + public static d b(int i) { + d dVar = a.get(i); + if (dVar != null) { + return dVar; + } + throw new IllegalArgumentException(b.d.b.a.a.p("Unknown Priority for value ", i)); + } +} diff --git a/app/src/main/java/b/i/a/c/a.java b/app/src/main/java/b/i/a/c/a.java new file mode 100644 index 0000000000..35b771c2e9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a.java @@ -0,0 +1,14 @@ +package b.i.a.c; + +import b.i.a.c.e3.o; +import b.i.b.a.l; +import com.discord.utilities.guilds.GuildConstantsKt; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a j = new a(); + + @Override // b.i.b.a.l + public final Object get() { + return new z0(new o(true, 65536), 50000, 50000, GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES, 5000, -1, false, 0, false); + } +} diff --git a/app/src/main/java/b/i/a/c/a0.java b/app/src/main/java/b/i/a/c/a0.java new file mode 100644 index 0000000000..c09b2d5c21 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a0.java @@ -0,0 +1,28 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class a0 implements p.a { + public final /* synthetic */ int a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ y1.f f791b; + public final /* synthetic */ y1.f c; + + public /* synthetic */ a0(int i, y1.f fVar, y1.f fVar2) { + this.a = i; + this.f791b = fVar; + this.c = fVar2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + int i = this.a; + y1.f fVar = this.f791b; + y1.f fVar2 = this.c; + y1.c cVar = (y1.c) obj; + cVar.j(i); + cVar.g(fVar, fVar2, i); + } +} diff --git a/app/src/main/java/b/i/a/c/a1.java b/app/src/main/java/b/i/a/c/a1.java new file mode 100644 index 0000000000..4eb1d09b19 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a1.java @@ -0,0 +1,53 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.g; +import b.i.a.c.f3.s; +import b.i.a.c.f3.z; +import java.util.Objects; +/* compiled from: DefaultMediaClock */ +public final class a1 implements s { + public final z j; + public final a k; + @Nullable + public f2 l; + @Nullable + public s m; + public boolean n = true; + public boolean o; + + /* compiled from: DefaultMediaClock */ + public interface a { + } + + public a1(a aVar, g gVar) { + this.k = aVar; + this.j = new z(gVar); + } + + @Override // b.i.a.c.f3.s + public x1 c() { + s sVar = this.m; + return sVar != null ? sVar.c() : this.j.n; + } + + @Override // b.i.a.c.f3.s + public long e() { + if (this.n) { + return this.j.e(); + } + s sVar = this.m; + Objects.requireNonNull(sVar); + return sVar.e(); + } + + @Override // b.i.a.c.f3.s + public void i(x1 x1Var) { + s sVar = this.m; + if (sVar != null) { + sVar.i(x1Var); + x1Var = this.m.c(); + } + this.j.i(x1Var); + } +} diff --git a/app/src/main/java/b/i/a/c/a2.java b/app/src/main/java/b/i/a/c/a2.java new file mode 100644 index 0000000000..b263a86231 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a2.java @@ -0,0 +1,89 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import b.i.a.c.g3.y; +import b.i.a.c.y1; +import com.google.android.exoplayer2.PlaybackException; +import com.google.android.exoplayer2.metadata.Metadata; +import java.util.List; +/* compiled from: Player */ +public final /* synthetic */ class a2 { + public static void a(y1.e eVar, y1.b bVar) { + } + + /* JADX WARN: Incorrect args count in method signature: (Ljava/util/List;)V */ + public static void b(y1.e eVar, List list) { + } + + public static void c(y1.e eVar, c1 c1Var) { + } + + public static void d(y1.e eVar, int i, boolean z2) { + } + + public static void e(y1.e eVar, y1 y1Var, y1.d dVar) { + } + + public static void f(y1.e eVar, boolean z2) { + } + + public static void g(y1.e eVar, boolean z2) { + } + + public static void h(@Nullable y1.e eVar, o1 o1Var, int i) { + } + + public static void i(y1.e eVar, p1 p1Var) { + } + + public static void j(y1.e eVar, Metadata metadata) { + } + + public static void k(y1.e eVar, boolean z2, int i) { + } + + public static void l(y1.e eVar, x1 x1Var) { + } + + public static void m(y1.e eVar, int i) { + } + + public static void n(y1.e eVar, int i) { + } + + public static void o(y1.e eVar, PlaybackException playbackException) { + } + + public static void p(@Nullable y1.e eVar, PlaybackException playbackException) { + } + + public static void q(y1.e eVar, y1.f fVar, y1.f fVar2, int i) { + } + + public static void r(y1.e eVar) { + } + + public static void s(y1.e eVar, int i) { + } + + public static void t(y1.e eVar, boolean z2) { + } + + public static void u(y1.e eVar, boolean z2) { + } + + public static void v(y1.e eVar, int i, int i2) { + } + + public static void w(y1.e eVar, o2 o2Var, int i) { + } + + public static void x(y1.e eVar, p2 p2Var) { + } + + public static void y(y1.e eVar, y yVar) { + } + + public static void z(y1.e eVar, float f) { + } +} diff --git a/app/src/main/java/b/i/a/c/a3/a.java b/app/src/main/java/b/i/a/c/a3/a.java new file mode 100644 index 0000000000..a411cf775d --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/a.java @@ -0,0 +1,114 @@ +package b.i.a.c.a3; + +import android.util.Pair; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.v; +import b.i.a.c.o2; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class a implements a0.b { + public final /* synthetic */ o a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Object f792b; + + public /* synthetic */ a(o oVar, Object obj) { + this.a = oVar; + this.f792b = obj; + } + + /* JADX WARNING: Removed duplicated region for block: B:20:0x0097 */ + /* JADX WARNING: Removed duplicated region for block: B:21:0x00a3 */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x00af */ + /* JADX WARNING: Removed duplicated region for block: B:33:0x00da */ + /* JADX WARNING: Removed duplicated region for block: B:35:? A[RETURN, SYNTHETIC] */ + @Override // b.i.a.c.a3.a0.b + public final void a(a0 a0Var, o2 o2Var) { + a0.a aVar; + long j; + v.a aVar2; + u uVar; + v.a aVar3; + o oVar = this.a; + Object obj = this.f792b; + Objects.requireNonNull(oVar); + v vVar = (v) oVar; + Void r1 = (Void) obj; + if (vVar.q) { + v.a aVar4 = vVar.n; + vVar.n = new v.a(o2Var, aVar4.m, aVar4.n); + u uVar2 = vVar.o; + if (uVar2 != null) { + vVar.v(uVar2.p); + } + } else if (o2Var.q()) { + if (vVar.r) { + v.a aVar5 = vVar.n; + aVar3 = new v.a(o2Var, aVar5.m, aVar5.n); + } else { + aVar3 = new v.a(o2Var, o2.c.j, v.a.l); + } + vVar.n = aVar3; + } else { + o2Var.n(0, vVar.l); + o2.c cVar = vVar.l; + long j2 = cVar.f1031z; + Object obj2 = cVar.n; + u uVar3 = vVar.o; + if (uVar3 != null) { + long j3 = uVar3.k; + vVar.n.h(uVar3.j.a, vVar.m); + long j4 = vVar.m.n + j3; + if (j4 != vVar.n.n(0, vVar.l).f1031z) { + j = j4; + Pair j5 = o2Var.j(vVar.l, vVar.m, 0, j); + Object obj3 = j5.first; + long longValue = ((Long) j5.second).longValue(); + if (!vVar.r) { + v.a aVar6 = vVar.n; + aVar2 = new v.a(o2Var, aVar6.m, aVar6.n); + } else { + aVar2 = new v.a(o2Var, obj2, obj3); + } + vVar.n = aVar2; + uVar = vVar.o; + if (uVar != null) { + vVar.v(longValue); + a0.a aVar7 = uVar.j; + Object obj4 = aVar7.a; + if (vVar.n.n != null && obj4.equals(v.a.l)) { + obj4 = vVar.n.n; + } + aVar = aVar7.b(obj4); + vVar.r = true; + vVar.q = true; + vVar.r(vVar.n); + if (aVar == null) { + u uVar4 = vVar.o; + Objects.requireNonNull(uVar4); + uVar4.d(aVar); + return; + } + return; + } + } + } + j = j2; + Pair j5 = o2Var.j(vVar.l, vVar.m, 0, j); + Object obj3 = j5.first; + long longValue = ((Long) j5.second).longValue(); + if (!vVar.r) { + } + vVar.n = aVar2; + uVar = vVar.o; + if (uVar != null) { + } + } + aVar = null; + vVar.r = true; + vVar.q = true; + vVar.r(vVar.n); + if (aVar == null) { + } + } +} diff --git a/app/src/main/java/b/i/a/c/a3/a0.java b/app/src/main/java/b/i/a/c/a3/a0.java new file mode 100644 index 0000000000..adcbb57daa --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/a0.java @@ -0,0 +1,69 @@ +package b.i.a.c.a3; + +import android.os.Handler; +import androidx.annotation.Nullable; +import b.i.a.c.e3.o; +import b.i.a.c.o1; +import b.i.a.c.o2; +import b.i.a.c.w2.s; +import java.io.IOException; +/* compiled from: MediaSource */ +public interface a0 { + + /* compiled from: MediaSource */ + public static final class a extends y { + public a(y yVar) { + super(yVar); + } + + public a(Object obj) { + super(obj); + } + + public a(Object obj, int i, int i2, long j) { + super(obj, i, i2, j); + } + + public a(Object obj, long j, int i) { + super(obj, j, i); + } + + public a b(Object obj) { + return new a(this.a.equals(obj) ? this : new y(obj, this.f821b, this.c, this.d, this.e)); + } + } + + /* compiled from: MediaSource */ + public interface b { + void a(a0 a0Var, o2 o2Var); + } + + void a(b bVar); + + void b(Handler handler, b0 b0Var); + + void c(b0 b0Var); + + void d(b bVar); + + o1 e(); + + void f(Handler handler, s sVar); + + void g(s sVar); + + void h() throws IOException; + + boolean i(); + + void j(x xVar); + + @Nullable + o2 k(); + + void l(b bVar, @Nullable b.i.a.c.e3.a0 a0Var); + + void m(b bVar); + + x n(a aVar, o oVar, long j); +} diff --git a/app/src/main/java/b/i/a/c/a3/b.java b/app/src/main/java/b/i/a/c/a3/b.java new file mode 100644 index 0000000000..03ff5f46b2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/b.java @@ -0,0 +1,28 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.b0; +import java.io.IOException; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Runnable { + public final /* synthetic */ b0.a j; + public final /* synthetic */ b0 k; + public final /* synthetic */ t l; + public final /* synthetic */ w m; + public final /* synthetic */ IOException n; + public final /* synthetic */ boolean o; + + public /* synthetic */ b(b0.a aVar, b0 b0Var, t tVar, w wVar, IOException iOException, boolean z2) { + this.j = aVar; + this.k = b0Var; + this.l = tVar; + this.m = wVar; + this.n = iOException; + this.o = z2; + } + + @Override // java.lang.Runnable + public final void run() { + b0.a aVar = this.j; + this.k.g0(aVar.a, aVar.f793b, this.l, this.m, this.n, this.o); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/b0.java b/app/src/main/java/b/i/a/c/a3/b0.java new file mode 100644 index 0000000000..37d2d88dd2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/b0.java @@ -0,0 +1,115 @@ +package b.i.a.c.a3; + +import android.os.Handler; +import androidx.annotation.CheckResult; +import androidx.annotation.Nullable; +import b.i.a.c.a3.a0; +import b.i.a.c.f3.e0; +import java.io.IOException; +import java.util.Iterator; +import java.util.concurrent.CopyOnWriteArrayList; +/* compiled from: MediaSourceEventListener */ +public interface b0 { + + /* compiled from: MediaSourceEventListener */ + public static class a { + public final int a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final a0.a f793b; + public final CopyOnWriteArrayList c; + public final long d; + + /* compiled from: MediaSourceEventListener */ + /* renamed from: b.i.a.c.a3.b0$a$a reason: collision with other inner class name */ + public static final class C0083a { + public Handler a; + + /* renamed from: b reason: collision with root package name */ + public b0 f794b; + + public C0083a(Handler handler, b0 b0Var) { + this.a = handler; + this.f794b = b0Var; + } + } + + public a() { + this.c = new CopyOnWriteArrayList<>(); + this.a = 0; + this.f793b = null; + this.d = 0; + } + + public a(CopyOnWriteArrayList copyOnWriteArrayList, int i, @Nullable a0.a aVar, long j) { + this.c = copyOnWriteArrayList; + this.a = i; + this.f793b = aVar; + this.d = j; + } + + public final long a(long j) { + long M = e0.M(j); + if (M == -9223372036854775807L) { + return -9223372036854775807L; + } + return this.d + M; + } + + public void b(w wVar) { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0083a next = it.next(); + e0.E(next.a, new d(this, next.f794b, wVar)); + } + } + + public void c(t tVar, w wVar) { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0083a next = it.next(); + e0.E(next.a, new f(this, next.f794b, tVar, wVar)); + } + } + + public void d(t tVar, w wVar) { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0083a next = it.next(); + e0.E(next.a, new c(this, next.f794b, tVar, wVar)); + } + } + + public void e(t tVar, w wVar, IOException iOException, boolean z2) { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0083a next = it.next(); + e0.E(next.a, new b(this, next.f794b, tVar, wVar, iOException, z2)); + } + } + + public void f(t tVar, w wVar) { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0083a next = it.next(); + e0.E(next.a, new e(this, next.f794b, tVar, wVar)); + } + } + + @CheckResult + public a g(int i, @Nullable a0.a aVar, long j) { + return new a(this.c, i, aVar, j); + } + } + + void X(int i, @Nullable a0.a aVar, t tVar, w wVar); + + void g0(int i, @Nullable a0.a aVar, t tVar, w wVar, IOException iOException, boolean z2); + + void o(int i, @Nullable a0.a aVar, w wVar); + + void q(int i, @Nullable a0.a aVar, t tVar, w wVar); + + void x(int i, @Nullable a0.a aVar, t tVar, w wVar); +} diff --git a/app/src/main/java/b/i/a/c/a3/c.java b/app/src/main/java/b/i/a/c/a3/c.java new file mode 100644 index 0000000000..bf4f8f36d5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/c.java @@ -0,0 +1,23 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.b0; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Runnable { + public final /* synthetic */ b0.a j; + public final /* synthetic */ b0 k; + public final /* synthetic */ t l; + public final /* synthetic */ w m; + + public /* synthetic */ c(b0.a aVar, b0 b0Var, t tVar, w wVar) { + this.j = aVar; + this.k = b0Var; + this.l = tVar; + this.m = wVar; + } + + @Override // java.lang.Runnable + public final void run() { + b0.a aVar = this.j; + this.k.X(aVar.a, aVar.f793b, this.l, this.m); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/c0.java b/app/src/main/java/b/i/a/c/a3/c0.java new file mode 100644 index 0000000000..24ec64d5f7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/c0.java @@ -0,0 +1,4 @@ +package b.i.a.c.a3; +/* compiled from: MediaSourceFactory */ +public interface c0 { +} diff --git a/app/src/main/java/b/i/a/c/a3/d.java b/app/src/main/java/b/i/a/c/a3/d.java new file mode 100644 index 0000000000..9482b2f281 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/d.java @@ -0,0 +1,21 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.b0; +/* compiled from: lambda */ +public final /* synthetic */ class d implements Runnable { + public final /* synthetic */ b0.a j; + public final /* synthetic */ b0 k; + public final /* synthetic */ w l; + + public /* synthetic */ d(b0.a aVar, b0 b0Var, w wVar) { + this.j = aVar; + this.k = b0Var; + this.l = wVar; + } + + @Override // java.lang.Runnable + public final void run() { + b0.a aVar = this.j; + this.k.o(aVar.a, aVar.f793b, this.l); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/d0.java b/app/src/main/java/b/i/a/c/a3/d0.java new file mode 100644 index 0000000000..91420d359b --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/d0.java @@ -0,0 +1,8 @@ +package b.i.a.c.a3; +/* compiled from: ProgressiveMediaExtractor */ +public interface d0 { + + /* compiled from: ProgressiveMediaExtractor */ + public interface a { + } +} diff --git a/app/src/main/java/b/i/a/c/a3/e.java b/app/src/main/java/b/i/a/c/a3/e.java new file mode 100644 index 0000000000..bb979d7768 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/e.java @@ -0,0 +1,23 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.b0; +/* compiled from: lambda */ +public final /* synthetic */ class e implements Runnable { + public final /* synthetic */ b0.a j; + public final /* synthetic */ b0 k; + public final /* synthetic */ t l; + public final /* synthetic */ w m; + + public /* synthetic */ e(b0.a aVar, b0 b0Var, t tVar, w wVar) { + this.j = aVar; + this.k = b0Var; + this.l = tVar; + this.m = wVar; + } + + @Override // java.lang.Runnable + public final void run() { + b0.a aVar = this.j; + this.k.x(aVar.a, aVar.f793b, this.l, this.m); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/e0.java b/app/src/main/java/b/i/a/c/a3/e0.java new file mode 100644 index 0000000000..5a37102943 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/e0.java @@ -0,0 +1,1125 @@ +package b.i.a.c.a3; + +import android.net.Uri; +import android.os.Handler; +import android.os.Looper; +import android.os.SystemClock; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.c.a3.b0; +import b.i.a.c.a3.h0; +import b.i.a.c.a3.s; +import b.i.a.c.a3.x; +import b.i.a.c.e3.h; +import b.i.a.c.e3.l; +import b.i.a.c.e3.n; +import b.i.a.c.e3.o; +import b.i.a.c.e3.w; +import b.i.a.c.e3.y; +import b.i.a.c.j1; +import b.i.a.c.j2; +import b.i.a.c.k1; +import b.i.a.c.w2.s; +import b.i.a.c.w2.u; +import b.i.a.c.x2.h0.f; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.t; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import com.google.android.exoplayer2.drm.DrmSession; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.icy.IcyHeaders; +import com.google.android.exoplayer2.upstream.DataSourceException; +import com.google.android.exoplayer2.upstream.HttpDataSource$CleartextNotPermittedException; +import com.google.android.exoplayer2.upstream.Loader; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InterruptedIOException; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.checkerframework.checker.nullness.qual.EnsuresNonNull; +/* compiled from: ProgressiveMediaPeriod */ +public final class e0 implements x, j, Loader.b, Loader.f, h0.d { + public static final Map j; + public static final j1 k; + public final Handler A; + @Nullable + public x.a B; + @Nullable + public IcyHeaders C; + public h0[] D; + public d[] E; + public boolean F; + public boolean G; + public boolean H; + public e I; + public t J; + public long K; + public boolean L; + public int M; + public boolean N; + public boolean O; + public int P; + public long Q; + public long R; + public long S; + public boolean T; + public int U; + public boolean V; + public boolean W; + public final Uri l; + public final l m; + public final u n; + public final w o; + public final b0.a p; + public final s.a q; + public final b r; + + /* renamed from: s reason: collision with root package name */ + public final o f795s; + @Nullable + public final String t; + public final long u; + public final Loader v = new Loader("ProgressiveMediaPeriod"); + public final d0 w; + + /* renamed from: x reason: collision with root package name */ + public final b.i.a.c.f3.j f796x; + + /* renamed from: y reason: collision with root package name */ + public final Runnable f797y; + + /* renamed from: z reason: collision with root package name */ + public final Runnable f798z; + + /* compiled from: ProgressiveMediaPeriod */ + public final class a implements Loader.e, s.a { + public final long a = t.a.getAndIncrement(); + + /* renamed from: b reason: collision with root package name */ + public final Uri f799b; + public final y c; + public final d0 d; + public final j e; + public final b.i.a.c.f3.j f; + public final b.i.a.c.x2.s g = new b.i.a.c.x2.s(); + public volatile boolean h; + public boolean i = true; + public long j; + public n k = a(0); + public long l = -1; + @Nullable + public b.i.a.c.x2.w m; + public boolean n; + + public a(Uri uri, l lVar, d0 d0Var, j jVar, b.i.a.c.f3.j jVar2) { + this.f799b = uri; + this.c = new y(lVar); + this.d = d0Var; + this.e = jVar; + this.f = jVar2; + } + + public final n a(long j) { + Collections.emptyMap(); + Uri uri = this.f799b; + String str = e0.this.t; + Map map = e0.j; + if (uri != null) { + return new n(uri, 0, 1, null, map, j, -1, str, 6, null); + } + throw new IllegalStateException("The uri must be set."); + } + + public void b() throws IOException { + h hVar; + int i; + int i2 = 0; + while (i2 == 0 && !this.h) { + try { + long j = this.g.a; + n a = a(j); + this.k = a; + long a2 = this.c.a(a); + this.l = a2; + if (a2 != -1) { + this.l = a2 + j; + } + e0.this.C = IcyHeaders.a(this.c.j()); + y yVar = this.c; + IcyHeaders icyHeaders = e0.this.C; + if (icyHeaders == null || (i = icyHeaders.o) == -1) { + hVar = yVar; + } else { + hVar = new s(yVar, i, this); + b.i.a.c.x2.w B = e0.this.B(new d(0, true)); + this.m = B; + ((h0) B).e(e0.k); + } + long j2 = j; + ((m) this.d).b(hVar, this.f799b, this.c.j(), j, this.l, this.e); + if (e0.this.C != null) { + b.i.a.c.x2.h hVar2 = ((m) this.d).f814b; + if (hVar2 instanceof f) { + ((f) hVar2).f1192s = true; + } + } + if (this.i) { + d0 d0Var = this.d; + long j3 = this.j; + b.i.a.c.x2.h hVar3 = ((m) d0Var).f814b; + Objects.requireNonNull(hVar3); + hVar3.g(j2, j3); + this.i = false; + } + while (true) { + while (i2 == 0 && !this.h) { + try { + b.i.a.c.f3.j jVar = this.f; + synchronized (jVar) { + while (!jVar.f957b) { + jVar.wait(); + } + } + d0 d0Var2 = this.d; + b.i.a.c.x2.s sVar = this.g; + m mVar = (m) d0Var2; + b.i.a.c.x2.h hVar4 = mVar.f814b; + Objects.requireNonNull(hVar4); + i iVar = mVar.c; + Objects.requireNonNull(iVar); + i2 = hVar4.e(iVar, sVar); + j2 = ((m) this.d).a(); + if (j2 > e0.this.u + j2) { + this.f.a(); + e0 e0Var = e0.this; + e0Var.A.post(e0Var.f798z); + } + } catch (InterruptedException unused) { + throw new InterruptedIOException(); + } + } + } + if (i2 == 1) { + i2 = 0; + } else if (((m) this.d).a() != -1) { + this.g.a = ((m) this.d).a(); + } + y yVar2 = this.c; + if (yVar2 != null) { + try { + yVar2.a.close(); + } catch (IOException unused2) { + } + } + } catch (Throwable th) { + if (!(i2 == 1 || ((m) this.d).a() == -1)) { + this.g.a = ((m) this.d).a(); + } + y yVar3 = this.c; + if (yVar3 != null) { + try { + yVar3.a.close(); + } catch (IOException unused3) { + } + } + throw th; + } + } + } + } + + /* compiled from: ProgressiveMediaPeriod */ + public interface b { + } + + /* compiled from: ProgressiveMediaPeriod */ + public final class c implements i0 { + public final int a; + + public c(int i) { + this.a = i; + } + + @Override // b.i.a.c.a3.i0 + public int a(k1 k1Var, DecoderInputBuffer decoderInputBuffer, int i) { + int i2; + e0 e0Var = e0.this; + int i3 = this.a; + if (e0Var.D()) { + return -3; + } + e0Var.y(i3); + h0 h0Var = e0Var.D[i3]; + boolean z2 = e0Var.V; + boolean z3 = false; + boolean z4 = (i & 2) != 0; + h0.b bVar = h0Var.f805b; + synchronized (h0Var) { + decoderInputBuffer.m = false; + i2 = -5; + if (!h0Var.o()) { + if (!z2) { + if (!h0Var.f807x) { + j1 j1Var = h0Var.B; + if (j1Var != null && (z4 || j1Var != h0Var.h)) { + h0Var.r(j1Var, k1Var); + } + } + } + decoderInputBuffer.j = 4; + i2 = -4; + } else { + j1 j1Var2 = h0Var.c.b(h0Var.k()).a; + if (z4 || j1Var2 != h0Var.h) { + h0Var.r(j1Var2, k1Var); + } else { + int l = h0Var.l(h0Var.t); + if (!h0Var.q(l)) { + decoderInputBuffer.m = true; + } else { + decoderInputBuffer.j = h0Var.n[l]; + long j = h0Var.o[l]; + decoderInputBuffer.n = j; + if (j < h0Var.u) { + decoderInputBuffer.j(Integer.MIN_VALUE); + } + bVar.a = h0Var.m[l]; + bVar.f810b = h0Var.l[l]; + bVar.c = h0Var.p[l]; + i2 = -4; + } + } + } + i2 = -3; + } + if (i2 == -4 && !decoderInputBuffer.n()) { + if ((i & 1) != 0) { + z3 = true; + } + if ((i & 4) == 0) { + if (z3) { + g0 g0Var = h0Var.a; + g0.f(g0Var.e, decoderInputBuffer, h0Var.f805b, g0Var.c); + } else { + g0 g0Var2 = h0Var.a; + g0Var2.e = g0.f(g0Var2.e, decoderInputBuffer, h0Var.f805b, g0Var2.c); + } + } + if (!z3) { + h0Var.t++; + } + } + if (i2 == -3) { + e0Var.z(i3); + } + return i2; + } + + @Override // b.i.a.c.a3.i0 + public void b() throws IOException { + e0 e0Var = e0.this; + h0 h0Var = e0Var.D[this.a]; + DrmSession drmSession = h0Var.i; + if (drmSession == null || drmSession.getState() != 1) { + e0Var.A(); + return; + } + DrmSession.DrmSessionException f = h0Var.i.f(); + Objects.requireNonNull(f); + throw f; + } + + @Override // b.i.a.c.a3.i0 + public int c(long j) { + int i; + e0 e0Var = e0.this; + int i2 = this.a; + boolean z2 = false; + if (e0Var.D()) { + return 0; + } + e0Var.y(i2); + h0 h0Var = e0Var.D[i2]; + boolean z3 = e0Var.V; + synchronized (h0Var) { + int l = h0Var.l(h0Var.t); + if (h0Var.o()) { + if (j >= h0Var.o[l]) { + if (j <= h0Var.w || !z3) { + i = h0Var.i(l, h0Var.q - h0Var.t, j, true); + if (i == -1) { + i = 0; + } + } else { + i = h0Var.q - h0Var.t; + } + } + } + i = 0; + } + synchronized (h0Var) { + if (i >= 0) { + if (h0Var.t + i <= h0Var.q) { + z2 = true; + } + } + b.c.a.a0.d.j(z2); + h0Var.t += i; + } + if (i == 0) { + e0Var.z(i2); + } + return i; + } + + @Override // b.i.a.c.a3.i0 + public boolean d() { + e0 e0Var = e0.this; + return !e0Var.D() && e0Var.D[this.a].p(e0Var.V); + } + } + + /* compiled from: ProgressiveMediaPeriod */ + public static final class d { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f801b; + + public d(int i, boolean z2) { + this.a = i; + this.f801b = z2; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || d.class != obj.getClass()) { + return false; + } + d dVar = (d) obj; + return this.a == dVar.a && this.f801b == dVar.f801b; + } + + public int hashCode() { + return (this.a * 31) + (this.f801b ? 1 : 0); + } + } + + /* compiled from: ProgressiveMediaPeriod */ + public static final class e { + public final o0 a; + + /* renamed from: b reason: collision with root package name */ + public final boolean[] f802b; + public final boolean[] c; + public final boolean[] d; + + public e(o0 o0Var, boolean[] zArr) { + this.a = o0Var; + this.f802b = zArr; + int i = o0Var.k; + this.c = new boolean[i]; + this.d = new boolean[i]; + } + } + + static { + HashMap hashMap = new HashMap(); + hashMap.put("Icy-MetaData", "1"); + j = Collections.unmodifiableMap(hashMap); + j1.b bVar = new j1.b(); + bVar.a = "icy"; + bVar.k = "application/x-icy"; + k = bVar.a(); + } + + public e0(Uri uri, l lVar, d0 d0Var, u uVar, s.a aVar, w wVar, b0.a aVar2, b bVar, o oVar, @Nullable String str, int i) { + this.l = uri; + this.m = lVar; + this.n = uVar; + this.q = aVar; + this.o = wVar; + this.p = aVar2; + this.r = bVar; + this.f795s = oVar; + this.t = str; + this.u = (long) i; + this.w = d0Var; + this.f796x = new b.i.a.c.f3.j(); + this.f797y = new g(this); + this.f798z = new i(this); + this.A = b.i.a.c.f3.e0.j(); + this.E = new d[0]; + this.D = new h0[0]; + this.S = -9223372036854775807L; + this.Q = -1; + this.K = -9223372036854775807L; + this.M = 1; + } + + public void A() throws IOException { + Loader loader = this.v; + int a2 = ((b.i.a.c.e3.s) this.o).a(this.M); + IOException iOException = loader.e; + if (iOException == null) { + Loader.d dVar = loader.d; + if (dVar != null) { + if (a2 == Integer.MIN_VALUE) { + a2 = dVar.j; + } + IOException iOException2 = dVar.n; + if (iOException2 != null && dVar.o > a2) { + throw iOException2; + } + return; + } + return; + } + throw iOException; + } + + public final b.i.a.c.x2.w B(d dVar) { + int length = this.D.length; + for (int i = 0; i < length; i++) { + if (dVar.equals(this.E[i])) { + return this.D[i]; + } + } + o oVar = this.f795s; + Looper looper = this.A.getLooper(); + u uVar = this.n; + s.a aVar = this.q; + Objects.requireNonNull(looper); + Objects.requireNonNull(uVar); + Objects.requireNonNull(aVar); + h0 h0Var = new h0(oVar, looper, uVar, aVar); + h0Var.g = this; + int i2 = length + 1; + d[] dVarArr = (d[]) Arrays.copyOf(this.E, i2); + dVarArr[length] = dVar; + int i3 = b.i.a.c.f3.e0.a; + this.E = dVarArr; + h0[] h0VarArr = (h0[]) Arrays.copyOf(this.D, i2); + h0VarArr[length] = h0Var; + this.D = h0VarArr; + return h0Var; + } + + public final void C() { + a aVar = new a(this.l, this.m, this.w, this, this.f796x); + if (this.G) { + b.c.a.a0.d.D(w()); + long j2 = this.K; + if (j2 == -9223372036854775807L || this.S <= j2) { + t tVar = this.J; + Objects.requireNonNull(tVar); + long j3 = tVar.h(this.S).a.c; + long j4 = this.S; + aVar.g.a = j3; + aVar.j = j4; + aVar.i = true; + aVar.n = false; + for (h0 h0Var : this.D) { + h0Var.u = this.S; + } + this.S = -9223372036854775807L; + } else { + this.V = true; + this.S = -9223372036854775807L; + return; + } + } + this.U = u(); + Loader loader = this.v; + int a2 = ((b.i.a.c.e3.s) this.o).a(this.M); + Objects.requireNonNull(loader); + Looper myLooper = Looper.myLooper(); + b.c.a.a0.d.H(myLooper); + loader.e = null; + long elapsedRealtime = SystemClock.elapsedRealtime(); + new Loader.d(myLooper, aVar, this, a2, elapsedRealtime).b(0); + n nVar = aVar.k; + b0.a aVar2 = this.p; + aVar2.f(new t(aVar.a, nVar, elapsedRealtime), new w(1, -1, null, 0, null, aVar2.a(aVar.j), aVar2.a(this.K))); + } + + public final boolean D() { + return this.O || w(); + } + + @Override // b.i.a.c.x2.j + public void a(t tVar) { + this.A.post(new h(this, tVar)); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.upstream.Loader$e, long, long, boolean] */ + @Override // com.google.android.exoplayer2.upstream.Loader.b + public void b(a aVar, long j2, long j3, boolean z2) { + a aVar2 = aVar; + y yVar = aVar2.c; + t tVar = new t(aVar2.a, aVar2.k, yVar.c, yVar.d, j2, j3, yVar.f942b); + Objects.requireNonNull(this.o); + b0.a aVar3 = this.p; + aVar3.c(tVar, new w(1, -1, null, 0, null, aVar3.a(aVar2.j), aVar3.a(this.K))); + if (!z2) { + if (this.Q == -1) { + this.Q = aVar2.l; + } + for (h0 h0Var : this.D) { + h0Var.s(false); + } + if (this.P > 0) { + x.a aVar4 = this.B; + Objects.requireNonNull(aVar4); + aVar4.a(this); + } + } + } + + @Override // b.i.a.c.a3.x + public long c() { + if (this.P == 0) { + return Long.MIN_VALUE; + } + return q(); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.upstream.Loader$e, long, long] */ + @Override // com.google.android.exoplayer2.upstream.Loader.b + public void d(a aVar, long j2, long j3) { + t tVar; + a aVar2 = aVar; + if (this.K == -9223372036854775807L && (tVar = this.J) != null) { + boolean c2 = tVar.c(); + long v = v(); + long j4 = v == Long.MIN_VALUE ? 0 : v + 10000; + this.K = j4; + ((f0) this.r).u(j4, c2, this.L); + } + y yVar = aVar2.c; + t tVar2 = new t(aVar2.a, aVar2.k, yVar.c, yVar.d, j2, j3, yVar.f942b); + Objects.requireNonNull(this.o); + b0.a aVar3 = this.p; + aVar3.d(tVar2, new w(1, -1, null, 0, null, aVar3.a(aVar2.j), aVar3.a(this.K))); + if (this.Q == -1) { + this.Q = aVar2.l; + } + this.V = true; + x.a aVar4 = this.B; + Objects.requireNonNull(aVar4); + aVar4.a(this); + } + + @Override // b.i.a.c.a3.x + public void e() throws IOException { + A(); + if (this.V && !this.G) { + throw ParserException.a("Loading finished before preparation is complete.", null); + } + } + + @Override // b.i.a.c.a3.x + public long f(long j2) { + boolean z2; + t(); + boolean[] zArr = this.I.f802b; + if (!this.J.c()) { + j2 = 0; + } + this.O = false; + this.R = j2; + if (w()) { + this.S = j2; + return j2; + } + if (this.M != 7) { + int length = this.D.length; + int i = 0; + while (true) { + if (i >= length) { + z2 = true; + break; + } else if (this.D[i].t(j2, false) || (!zArr[i] && this.H)) { + i++; + } + } + z2 = false; + if (z2) { + return j2; + } + } + this.T = false; + this.S = j2; + this.V = false; + if (this.v.b()) { + for (h0 h0Var : this.D) { + h0Var.h(); + } + Loader.d dVar = this.v.d; + b.c.a.a0.d.H(dVar); + dVar.a(false); + } else { + this.v.e = null; + for (h0 h0Var2 : this.D) { + h0Var2.s(false); + } + } + return j2; + } + + @Override // b.i.a.c.a3.x + public boolean g(long j2) { + if (!this.V) { + if (!(this.v.e != null) && !this.T && (!this.G || this.P != 0)) { + boolean b2 = this.f796x.b(); + if (this.v.b()) { + return b2; + } + C(); + return true; + } + } + return false; + } + + @Override // b.i.a.c.a3.x + public boolean h() { + boolean z2; + if (this.v.b()) { + b.i.a.c.f3.j jVar = this.f796x; + synchronized (jVar) { + z2 = jVar.f957b; + } + if (z2) { + return true; + } + } + return false; + } + + @Override // b.i.a.c.a3.x + public long i(long j2, j2 j2Var) { + t(); + if (!this.J.c()) { + return 0; + } + t.a h = this.J.h(j2); + long j3 = h.a.f1284b; + long j4 = h.f1282b.f1284b; + long j5 = j2Var.c; + if (j5 == 0 && j2Var.d == 0) { + return j2; + } + long j6 = Long.MIN_VALUE; + int i = b.i.a.c.f3.e0.a; + long j7 = j2 - j5; + if (((j5 ^ j2) & (j2 ^ j7)) >= 0) { + j6 = j7; + } + long j8 = j2Var.d; + long j9 = RecyclerView.FOREVER_NS; + long j10 = j2 + j8; + if (((j8 ^ j10) & (j2 ^ j10)) >= 0) { + j9 = j10; + } + boolean z2 = false; + boolean z3 = j6 <= j3 && j3 <= j9; + if (j6 <= j4 && j4 <= j9) { + z2 = true; + } + if (!z3 || !z2) { + if (z3) { + return j3; + } + if (!z2) { + return j6; + } + } else if (Math.abs(j3 - j2) <= Math.abs(j4 - j2)) { + return j3; + } + return j4; + } + + @Override // b.i.a.c.x2.j + public void j() { + this.F = true; + this.A.post(this.f797y); + } + + @Override // b.i.a.c.a3.x + public long k() { + if (!this.O) { + return -9223372036854775807L; + } + if (!this.V && u() <= this.U) { + return -9223372036854775807L; + } + this.O = false; + return this.R; + } + + @Override // b.i.a.c.a3.x + public void l(x.a aVar, long j2) { + this.B = aVar; + this.f796x.b(); + C(); + } + + @Override // b.i.a.c.a3.x + public long m(b.i.a.c.c3.j[] jVarArr, boolean[] zArr, i0[] i0VarArr, boolean[] zArr2, long j2) { + t(); + e eVar = this.I; + o0 o0Var = eVar.a; + boolean[] zArr3 = eVar.c; + int i = this.P; + for (int i2 = 0; i2 < jVarArr.length; i2++) { + if (i0VarArr[i2] != null && (jVarArr[i2] == null || !zArr[i2])) { + int i3 = ((c) i0VarArr[i2]).a; + b.c.a.a0.d.D(zArr3[i3]); + this.P--; + zArr3[i3] = false; + i0VarArr[i2] = null; + } + } + boolean z2 = !this.N ? j2 != 0 : i == 0; + for (int i4 = 0; i4 < jVarArr.length; i4++) { + if (i0VarArr[i4] == null && jVarArr[i4] != null) { + b.i.a.c.c3.j jVar = jVarArr[i4]; + b.c.a.a0.d.D(jVar.length() == 1); + b.c.a.a0.d.D(jVar.f(0) == 0); + int a2 = o0Var.a(jVar.a()); + b.c.a.a0.d.D(!zArr3[a2]); + this.P++; + zArr3[a2] = true; + i0VarArr[i4] = new c(a2); + zArr2[i4] = true; + if (!z2) { + h0 h0Var = this.D[a2]; + z2 = !h0Var.t(j2, true) && h0Var.k() != 0; + } + } + } + if (this.P == 0) { + this.T = false; + this.O = false; + if (this.v.b()) { + for (h0 h0Var2 : this.D) { + h0Var2.h(); + } + Loader.d dVar = this.v.d; + b.c.a.a0.d.H(dVar); + dVar.a(false); + } else { + for (h0 h0Var3 : this.D) { + h0Var3.s(false); + } + } + } else if (z2) { + j2 = f(j2); + for (int i5 = 0; i5 < i0VarArr.length; i5++) { + if (i0VarArr[i5] != null) { + zArr2[i5] = true; + } + } + } + this.N = true; + return j2; + } + + @Override // b.i.a.c.a3.x + public o0 n() { + t(); + return this.I.a; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.upstream.Loader$e, long, long, java.io.IOException, int] */ + /* JADX WARNING: Removed duplicated region for block: B:25:0x007f */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x0082 */ + /* JADX WARNING: Removed duplicated region for block: B:48:0x00d6 */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x00db */ + /* JADX WARNING: Removed duplicated region for block: B:56:0x0107 */ + @Override // com.google.android.exoplayer2.upstream.Loader.b + public Loader.c o(a aVar, long j2, long j3, IOException iOException, int i) { + long j4; + Loader.c cVar; + boolean z2; + boolean z3; + t tVar; + boolean z4; + a aVar2 = aVar; + if (this.Q == -1) { + this.Q = aVar2.l; + } + y yVar = aVar2.c; + t tVar2 = new t(aVar2.a, aVar2.k, yVar.c, yVar.d, j2, j3, yVar.f942b); + b.i.a.c.f3.e0.M(aVar2.j); + b.i.a.c.f3.e0.M(this.K); + b.i.a.c.e3.s sVar = (b.i.a.c.e3.s) this.o; + boolean z5 = false; + if (!(iOException instanceof ParserException) && !(iOException instanceof FileNotFoundException) && !(iOException instanceof HttpDataSource$CleartextNotPermittedException) && !(iOException instanceof Loader.UnexpectedLoaderException)) { + int i2 = DataSourceException.j; + Throwable th = iOException; + while (true) { + if (th == null) { + z4 = false; + break; + } + if ((th instanceof DataSourceException) && ((DataSourceException) th).reason == 2008) { + z4 = true; + break; + } + th = th.getCause(); + } + if (!z4) { + j4 = (long) Math.min((i - 1) * 1000, 5000); + if (j4 != -9223372036854775807L) { + cVar = Loader.f2936b; + } else { + int u = u(); + boolean z6 = u > this.U; + if (this.Q != -1 || ((tVar = this.J) != null && tVar.i() != -9223372036854775807L)) { + this.U = u; + } else if (!this.G || D()) { + this.O = this.G; + this.R = 0; + this.U = 0; + for (h0 h0Var : this.D) { + h0Var.s(false); + } + aVar2.g.a = 0; + aVar2.j = 0; + aVar2.i = true; + aVar2.n = false; + } else { + this.T = true; + z3 = false; + cVar = !z3 ? Loader.a(z6, j4) : Loader.a; + } + z3 = true; + if (!z3) { + } + } + int i3 = cVar.a; + if (i3 == 0 || i3 == 1) { + z5 = true; + } + z2 = !z5; + b0.a aVar3 = this.p; + aVar3.e(tVar2, new w(1, -1, null, 0, null, aVar3.a(aVar2.j), aVar3.a(this.K)), iOException, z2); + if (z2) { + Objects.requireNonNull(this.o); + } + return cVar; + } + } + j4 = -9223372036854775807L; + if (j4 != -9223372036854775807L) { + } + int i3 = cVar.a; + z5 = true; + z2 = !z5; + b0.a aVar3 = this.p; + aVar3.e(tVar2, new w(1, -1, null, 0, null, aVar3.a(aVar2.j), aVar3.a(this.K)), iOException, z2); + if (z2) { + } + return cVar; + } + + @Override // b.i.a.c.x2.j + public b.i.a.c.x2.w p(int i, int i2) { + return B(new d(i, false)); + } + + @Override // b.i.a.c.a3.x + public long q() { + long j2; + boolean z2; + long j3; + t(); + boolean[] zArr = this.I.f802b; + if (this.V) { + return Long.MIN_VALUE; + } + if (w()) { + return this.S; + } + if (this.H) { + int length = this.D.length; + j2 = Long.MAX_VALUE; + for (int i = 0; i < length; i++) { + if (zArr[i]) { + h0 h0Var = this.D[i]; + synchronized (h0Var) { + z2 = h0Var.f807x; + } + if (!z2) { + h0 h0Var2 = this.D[i]; + synchronized (h0Var2) { + j3 = h0Var2.w; + } + j2 = Math.min(j2, j3); + } else { + continue; + } + } + } + } else { + j2 = Long.MAX_VALUE; + } + if (j2 == RecyclerView.FOREVER_NS) { + j2 = v(); + } + return j2 == Long.MIN_VALUE ? this.R : j2; + } + + @Override // b.i.a.c.a3.x + public void r(long j2, boolean z2) { + long j3; + int i; + t(); + if (!w()) { + boolean[] zArr = this.I.c; + int length = this.D.length; + for (int i2 = 0; i2 < length; i2++) { + h0 h0Var = this.D[i2]; + boolean z3 = zArr[i2]; + g0 g0Var = h0Var.a; + synchronized (h0Var) { + int i3 = h0Var.q; + j3 = -1; + if (i3 != 0) { + long[] jArr = h0Var.o; + int i4 = h0Var.f806s; + if (j2 >= jArr[i4]) { + int i5 = h0Var.i(i4, (!z3 || (i = h0Var.t) == i3) ? i3 : i + 1, j2, z2); + if (i5 != -1) { + j3 = h0Var.g(i5); + } + } + } + } + g0Var.a(j3); + } + } + } + + @Override // b.i.a.c.a3.x + public void s(long j2) { + } + + @EnsuresNonNull({"trackState", "seekMap"}) + public final void t() { + b.c.a.a0.d.D(this.G); + Objects.requireNonNull(this.I); + Objects.requireNonNull(this.J); + } + + public final int u() { + int i = 0; + for (h0 h0Var : this.D) { + i += h0Var.n(); + } + return i; + } + + public final long v() { + long j2; + h0[] h0VarArr = this.D; + long j3 = Long.MIN_VALUE; + for (h0 h0Var : h0VarArr) { + synchronized (h0Var) { + j2 = h0Var.w; + } + j3 = Math.max(j3, j2); + } + return j3; + } + + public final boolean w() { + return this.S != -9223372036854775807L; + } + + public final void x() { + if (!(this.W || this.G || !this.F || this.J == null)) { + for (h0 h0Var : this.D) { + if (h0Var.m() == null) { + return; + } + } + this.f796x.a(); + int length = this.D.length; + n0[] n0VarArr = new n0[length]; + boolean[] zArr = new boolean[length]; + for (int i = 0; i < length; i++) { + j1 m = this.D[i].m(); + Objects.requireNonNull(m); + String str = m.w; + boolean h = b.i.a.c.f3.t.h(str); + boolean z2 = h || b.i.a.c.f3.t.j(str); + zArr[i] = z2; + this.H = z2 | this.H; + IcyHeaders icyHeaders = this.C; + if (icyHeaders != null) { + if (h || this.E[i].f801b) { + Metadata metadata = m.u; + Metadata metadata2 = metadata == null ? new Metadata(icyHeaders) : metadata.a(icyHeaders); + j1.b a2 = m.a(); + a2.i = metadata2; + m = a2.a(); + } + if (h && m.q == -1 && m.r == -1 && icyHeaders.j != -1) { + j1.b a3 = m.a(); + a3.f = icyHeaders.j; + m = a3.a(); + } + } + int d2 = this.n.d(m); + j1.b a4 = m.a(); + a4.D = d2; + n0VarArr[i] = new n0(a4.a()); + } + this.I = new e(new o0(n0VarArr), zArr); + this.G = true; + x.a aVar = this.B; + Objects.requireNonNull(aVar); + aVar.b(this); + } + } + + public final void y(int i) { + t(); + e eVar = this.I; + boolean[] zArr = eVar.d; + if (!zArr[i]) { + j1 j1Var = eVar.a.l[i].l[0]; + b0.a aVar = this.p; + aVar.b(new w(1, b.i.a.c.f3.t.g(j1Var.w), j1Var, 0, null, aVar.a(this.R), -9223372036854775807L)); + zArr[i] = true; + } + } + + public final void z(int i) { + t(); + boolean[] zArr = this.I.f802b; + if (this.T && zArr[i] && !this.D[i].p(false)) { + this.S = 0; + this.T = false; + this.O = true; + this.R = 0; + this.U = 0; + for (h0 h0Var : this.D) { + h0Var.s(false); + } + x.a aVar = this.B; + Objects.requireNonNull(aVar); + aVar.a(this); + } + } +} diff --git a/app/src/main/java/b/i/a/c/a3/f.java b/app/src/main/java/b/i/a/c/a3/f.java new file mode 100644 index 0000000000..2e8105cdf3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/f.java @@ -0,0 +1,23 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.b0; +/* compiled from: lambda */ +public final /* synthetic */ class f implements Runnable { + public final /* synthetic */ b0.a j; + public final /* synthetic */ b0 k; + public final /* synthetic */ t l; + public final /* synthetic */ w m; + + public /* synthetic */ f(b0.a aVar, b0 b0Var, t tVar, w wVar) { + this.j = aVar; + this.k = b0Var; + this.l = tVar; + this.m = wVar; + } + + @Override // java.lang.Runnable + public final void run() { + b0.a aVar = this.j; + this.k.q(aVar.a, aVar.f793b, this.l, this.m); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/f0.java b/app/src/main/java/b/i/a/c/a3/f0.java new file mode 100644 index 0000000000..a715a27c43 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/f0.java @@ -0,0 +1,144 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.d0; +import b.i.a.c.a3.e0; +import b.i.a.c.e3.a0; +import b.i.a.c.e3.l; +import b.i.a.c.e3.o; +import b.i.a.c.e3.w; +import b.i.a.c.o1; +import b.i.a.c.o2; +import b.i.a.c.w2.u; +import com.google.android.exoplayer2.drm.DrmSession; +import com.google.android.exoplayer2.upstream.Loader; +import java.util.Objects; +/* compiled from: ProgressiveMediaSource */ +public final class f0 extends l implements e0.b { + public final o1 g; + public final o1.h h; + public final l.a i; + public final d0.a j; + public final u k; + public final w l; + public final int m; + public boolean n = true; + public long o = -9223372036854775807L; + public boolean p; + public boolean q; + @Nullable + public a0 r; + + /* compiled from: ProgressiveMediaSource */ + public class a extends r { + public a(o2 o2Var) { + super(o2Var); + } + + @Override // b.i.a.c.o2 + public o2.b g(int i, o2.b bVar, boolean z2) { + this.k.g(i, bVar, z2); + bVar.o = true; + return bVar; + } + + @Override // b.i.a.c.o2 + public o2.c o(int i, o2.c cVar, long j) { + this.k.o(i, cVar, j); + cVar.f1030y = true; + return cVar; + } + } + + public f0(o1 o1Var, l.a aVar, d0.a aVar2, u uVar, w wVar, int i, a aVar3) { + o1.h hVar = o1Var.l; + Objects.requireNonNull(hVar); + this.h = hVar; + this.g = o1Var; + this.i = aVar; + this.j = aVar2; + this.k = uVar; + this.l = wVar; + this.m = i; + } + + @Override // b.i.a.c.a3.a0 + public o1 e() { + return this.g; + } + + @Override // b.i.a.c.a3.a0 + public void h() { + } + + @Override // b.i.a.c.a3.a0 + public void j(x xVar) { + e0 e0Var = (e0) xVar; + if (e0Var.G) { + h0[] h0VarArr = e0Var.D; + for (h0 h0Var : h0VarArr) { + h0Var.h(); + DrmSession drmSession = h0Var.i; + if (drmSession != null) { + drmSession.b(h0Var.e); + h0Var.i = null; + h0Var.h = null; + } + } + } + Loader loader = e0Var.v; + Loader.d dVar = loader.d; + if (dVar != null) { + dVar.a(true); + } + loader.c.execute(new Loader.g(e0Var)); + loader.c.shutdown(); + e0Var.A.removeCallbacksAndMessages(null); + e0Var.B = null; + e0Var.W = true; + } + + @Override // b.i.a.c.a3.a0 + public x n(a0.a aVar, o oVar, long j) { + l a2 = this.i.a(); + b.i.a.c.e3.a0 a0Var = this.r; + if (a0Var != null) { + a2.d(a0Var); + } + return new e0(this.h.a, a2, new m(((j) this.j).a), this.k, this.d.g(0, aVar), this.l, this.c.g(0, aVar, 0), this, oVar, this.h.e, this.m); + } + + @Override // b.i.a.c.a3.l + public void q(@Nullable b.i.a.c.e3.a0 a0Var) { + this.r = a0Var; + this.k.a(); + t(); + } + + @Override // b.i.a.c.a3.l + public void s() { + this.k.release(); + } + + public final void t() { + o2 l0Var = new l0(this.o, this.p, false, this.q, null, this.g); + if (this.n) { + l0Var = new a(l0Var); + } + r(l0Var); + } + + public void u(long j, boolean z2, boolean z3) { + if (j == -9223372036854775807L) { + j = this.o; + } + if (this.n || this.o != j || this.p != z2 || this.q != z3) { + this.o = j; + this.p = z2; + this.q = z3; + this.n = false; + t(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/a3/g.java b/app/src/main/java/b/i/a/c/a3/g.java new file mode 100644 index 0000000000..4300d665d6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/g.java @@ -0,0 +1,14 @@ +package b.i.a.c.a3; +/* compiled from: lambda */ +public final /* synthetic */ class g implements Runnable { + public final /* synthetic */ e0 j; + + public /* synthetic */ g(e0 e0Var) { + this.j = e0Var; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.x(); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/g0.java b/app/src/main/java/b/i/a/c/a3/g0.java new file mode 100644 index 0000000000..2b6a251871 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/g0.java @@ -0,0 +1,258 @@ +package b.i.a.c.a3; + +import android.media.MediaCodec; +import androidx.annotation.Nullable; +import b.i.a.c.a3.h0; +import b.i.a.c.e3.e; +import b.i.a.c.e3.o; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.v2.c; +import b.i.a.c.x2.w; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import java.nio.ByteBuffer; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: SampleDataQueue */ +public class g0 { + public final o a; + + /* renamed from: b reason: collision with root package name */ + public final int f803b; + public final x c = new x(32); + public a d; + public a e; + public a f; + public long g; + + /* compiled from: SampleDataQueue */ + public static final class a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f804b; + public boolean c; + @Nullable + public e d; + @Nullable + public a e; + + public a(long j, int i) { + this.a = j; + this.f804b = j + ((long) i); + } + + public int a(long j) { + return ((int) (j - this.a)) + this.d.f925b; + } + } + + public g0(o oVar) { + this.a = oVar; + int i = oVar.f930b; + this.f803b = i; + a aVar = new a(0, i); + this.d = aVar; + this.e = aVar; + this.f = aVar; + } + + public static a d(a aVar, long j, ByteBuffer byteBuffer, int i) { + while (j >= aVar.f804b) { + aVar = aVar.e; + } + while (i > 0) { + int min = Math.min(i, (int) (aVar.f804b - j)); + byteBuffer.put(aVar.d.a, aVar.a(j), min); + i -= min; + j += (long) min; + if (j == aVar.f804b) { + aVar = aVar.e; + } + } + return aVar; + } + + public static a e(a aVar, long j, byte[] bArr, int i) { + while (j >= aVar.f804b) { + aVar = aVar.e; + } + int i2 = i; + while (i2 > 0) { + int min = Math.min(i2, (int) (aVar.f804b - j)); + System.arraycopy(aVar.d.a, aVar.a(j), bArr, i - i2, min); + i2 -= min; + j += (long) min; + if (j == aVar.f804b) { + aVar = aVar.e; + } + } + return aVar; + } + + public static a f(a aVar, DecoderInputBuffer decoderInputBuffer, h0.b bVar, x xVar) { + if (decoderInputBuffer.t()) { + long j = bVar.f810b; + int i = 1; + xVar.A(1); + a e = e(aVar, j, xVar.a, 1); + long j2 = j + 1; + byte b2 = xVar.a[0]; + boolean z2 = (b2 & 128) != 0; + int i2 = b2 & Byte.MAX_VALUE; + c cVar = decoderInputBuffer.k; + byte[] bArr = cVar.a; + if (bArr == null) { + cVar.a = new byte[16]; + } else { + Arrays.fill(bArr, (byte) 0); + } + aVar = e(e, j2, cVar.a, i2); + long j3 = j2 + ((long) i2); + if (z2) { + xVar.A(2); + aVar = e(aVar, j3, xVar.a, 2); + j3 += 2; + i = xVar.y(); + } + int[] iArr = cVar.d; + if (iArr == null || iArr.length < i) { + iArr = new int[i]; + } + int[] iArr2 = cVar.e; + if (iArr2 == null || iArr2.length < i) { + iArr2 = new int[i]; + } + if (z2) { + int i3 = i * 6; + xVar.A(i3); + aVar = e(aVar, j3, xVar.a, i3); + j3 += (long) i3; + xVar.E(0); + for (int i4 = 0; i4 < i; i4++) { + iArr[i4] = xVar.y(); + iArr2[i4] = xVar.w(); + } + } else { + iArr[0] = 0; + iArr2[0] = bVar.a - ((int) (j3 - bVar.f810b)); + } + w.a aVar2 = bVar.c; + int i5 = e0.a; + byte[] bArr2 = aVar2.f1285b; + byte[] bArr3 = cVar.a; + int i6 = aVar2.a; + int i7 = aVar2.c; + int i8 = aVar2.d; + cVar.f = i; + cVar.d = iArr; + cVar.e = iArr2; + cVar.f1127b = bArr2; + cVar.a = bArr3; + cVar.c = i6; + cVar.g = i7; + cVar.h = i8; + MediaCodec.CryptoInfo cryptoInfo = cVar.i; + cryptoInfo.numSubSamples = i; + cryptoInfo.numBytesOfClearData = iArr; + cryptoInfo.numBytesOfEncryptedData = iArr2; + cryptoInfo.key = bArr2; + cryptoInfo.iv = bArr3; + cryptoInfo.mode = i6; + if (e0.a >= 24) { + c.b bVar2 = cVar.j; + Objects.requireNonNull(bVar2); + bVar2.f1128b.set(i7, i8); + bVar2.a.setPattern(bVar2.f1128b); + } + long j4 = bVar.f810b; + int i9 = (int) (j3 - j4); + bVar.f810b = j4 + ((long) i9); + bVar.a -= i9; + } + if (decoderInputBuffer.l()) { + xVar.A(4); + a e2 = e(aVar, bVar.f810b, xVar.a, 4); + int w = xVar.w(); + bVar.f810b += 4; + bVar.a -= 4; + decoderInputBuffer.r(w); + a d = d(e2, bVar.f810b, decoderInputBuffer.l, w); + bVar.f810b += (long) w; + int i10 = bVar.a - w; + bVar.a = i10; + ByteBuffer byteBuffer = decoderInputBuffer.o; + if (byteBuffer == null || byteBuffer.capacity() < i10) { + decoderInputBuffer.o = ByteBuffer.allocate(i10); + } else { + decoderInputBuffer.o.clear(); + } + return d(d, bVar.f810b, decoderInputBuffer.o, bVar.a); + } + decoderInputBuffer.r(bVar.a); + return d(aVar, bVar.f810b, decoderInputBuffer.l, bVar.a); + } + + public void a(long j) { + if (j != -1) { + while (true) { + a aVar = this.d; + if (j >= aVar.f804b) { + o oVar = this.a; + e eVar = aVar.d; + synchronized (oVar) { + e[] eVarArr = oVar.c; + eVarArr[0] = eVar; + oVar.a(eVarArr); + } + a aVar2 = this.d; + aVar2.d = null; + a aVar3 = aVar2.e; + aVar2.e = null; + this.d = aVar3; + } else if (this.e.a < aVar.a) { + this.e = aVar; + return; + } else { + return; + } + } + } + } + + public final void b(int i) { + long j = this.g + ((long) i); + this.g = j; + a aVar = this.f; + if (j == aVar.f804b) { + this.f = aVar.e; + } + } + + public final int c(int i) { + e eVar; + a aVar = this.f; + if (!aVar.c) { + o oVar = this.a; + synchronized (oVar) { + oVar.e++; + int i2 = oVar.f; + if (i2 > 0) { + e[] eVarArr = oVar.g; + int i3 = i2 - 1; + oVar.f = i3; + eVar = eVarArr[i3]; + Objects.requireNonNull(eVar); + oVar.g[oVar.f] = null; + } else { + eVar = new e(new byte[oVar.f930b], 0); + } + } + a aVar2 = new a(this.f.f804b, this.f803b); + aVar.d = eVar; + aVar.e = aVar2; + aVar.c = true; + } + return Math.min(i, (int) (this.f.f804b - this.g)); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/h.java b/app/src/main/java/b/i/a/c/a3/h.java new file mode 100644 index 0000000000..e2760a9470 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/h.java @@ -0,0 +1,32 @@ +package b.i.a.c.a3; + +import b.i.a.c.x2.t; +/* compiled from: lambda */ +public final /* synthetic */ class h implements Runnable { + public final /* synthetic */ e0 j; + public final /* synthetic */ t k; + + public /* synthetic */ h(e0 e0Var, t tVar) { + this.j = e0Var; + this.k = tVar; + } + + @Override // java.lang.Runnable + public final void run() { + e0 e0Var = this.j; + t tVar = this.k; + e0Var.J = e0Var.C == null ? tVar : new t.b(-9223372036854775807L, 0); + e0Var.K = tVar.i(); + int i = 1; + boolean z2 = e0Var.Q == -1 && tVar.i() == -9223372036854775807L; + e0Var.L = z2; + if (z2) { + i = 7; + } + e0Var.M = i; + ((f0) e0Var.r).u(e0Var.K, tVar.c(), e0Var.L); + if (!e0Var.G) { + e0Var.x(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/a3/h0.java b/app/src/main/java/b/i/a/c/a3/h0.java new file mode 100644 index 0000000000..07622f9892 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/h0.java @@ -0,0 +1,509 @@ +package b.i.a.c.a3; + +import android.os.Looper; +import androidx.annotation.CallSuper; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import b.i.a.c.a3.g0; +import b.i.a.c.e3.e; +import b.i.a.c.e3.h; +import b.i.a.c.e3.o; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.t; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.k1; +import b.i.a.c.w2.m; +import b.i.a.c.w2.s; +import b.i.a.c.w2.u; +import b.i.a.c.x2.v; +import b.i.a.c.x2.w; +import com.google.android.exoplayer2.drm.DrmInitData; +import com.google.android.exoplayer2.drm.DrmSession; +import java.io.EOFException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: SampleQueue */ +public class h0 implements w { + @Nullable + public j1 A; + @Nullable + public j1 B; + public boolean C; + public boolean D; + public final g0 a; + + /* renamed from: b reason: collision with root package name */ + public final b f805b = new b(); + public final m0 c = new m0<>(k.a); + @Nullable + public final u d; + @Nullable + public final s.a e; + @Nullable + public final Looper f; + @Nullable + public d g; + @Nullable + public j1 h; + @Nullable + public DrmSession i; + public int j = 1000; + public int[] k = new int[1000]; + public long[] l = new long[1000]; + public int[] m = new int[1000]; + public int[] n = new int[1000]; + public long[] o = new long[1000]; + public w.a[] p = new w.a[1000]; + public int q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public int f806s; + public int t; + public long u = Long.MIN_VALUE; + public long v = Long.MIN_VALUE; + public long w = Long.MIN_VALUE; + + /* renamed from: x reason: collision with root package name */ + public boolean f807x; + + /* renamed from: y reason: collision with root package name */ + public boolean f808y = true; + + /* renamed from: z reason: collision with root package name */ + public boolean f809z = true; + + /* compiled from: SampleQueue */ + public static final class b { + public int a; + + /* renamed from: b reason: collision with root package name */ + public long f810b; + @Nullable + public w.a c; + } + + /* compiled from: SampleQueue */ + public static final class c { + public final j1 a; + + /* renamed from: b reason: collision with root package name */ + public final u.b f811b; + + public c(j1 j1Var, u.b bVar, a aVar) { + this.a = j1Var; + this.f811b = bVar; + } + } + + /* compiled from: SampleQueue */ + public interface d { + } + + public h0(o oVar, @Nullable Looper looper, @Nullable u uVar, @Nullable s.a aVar) { + this.f = looper; + this.d = uVar; + this.e = aVar; + this.a = new g0(oVar); + } + + @Override // b.i.a.c.x2.w + public final int a(h hVar, int i, boolean z2, int i2) throws IOException { + g0 g0Var = this.a; + int c2 = g0Var.c(i); + g0.a aVar = g0Var.f; + int read = hVar.read(aVar.d.a, aVar.a(g0Var.g), c2); + if (read != -1) { + g0Var.b(read); + return read; + } else if (z2) { + return -1; + } else { + throw new EOFException(); + } + } + + @Override // b.i.a.c.x2.w + public /* synthetic */ int b(h hVar, int i, boolean z2) { + return v.a(this, hVar, i, z2); + } + + @Override // b.i.a.c.x2.w + public /* synthetic */ void c(x xVar, int i) { + v.b(this, xVar, i); + } + + @Override // b.i.a.c.x2.w + public void d(long j, int i, int i2, int i3, @Nullable w.a aVar) { + u.b bVar; + int i4 = i & 1; + boolean z2 = i4 != 0; + if (this.f808y) { + if (z2) { + this.f808y = false; + } else { + return; + } + } + long j2 = j + 0; + if (this.C) { + if (j2 >= this.u) { + if (i4 == 0) { + if (!this.D) { + String valueOf = String.valueOf(this.B); + b.d.b.a.a.f0(valueOf.length() + 50, "Overriding unexpected non-sync sample for format: ", valueOf, "SampleQueue"); + this.D = true; + } + i |= 1; + } + } else { + return; + } + } + long j3 = (this.a.g - ((long) i2)) - ((long) i3); + synchronized (this) { + int i5 = this.q; + if (i5 > 0) { + int l = l(i5 - 1); + b.c.a.a0.d.j(this.l[l] + ((long) this.m[l]) <= j3); + } + this.f807x = (536870912 & i) != 0; + this.w = Math.max(this.w, j2); + int l2 = l(this.q); + this.o[l2] = j2; + this.l[l2] = j3; + this.m[l2] = i2; + this.n[l2] = i; + this.p[l2] = aVar; + this.k[l2] = 0; + if ((this.c.f815b.size() == 0) || !this.c.c().a.equals(this.B)) { + u uVar = this.d; + if (uVar != null) { + Looper looper = this.f; + Objects.requireNonNull(looper); + bVar = uVar.b(looper, this.e, this.B); + } else { + bVar = m.f1139b; + } + m0 m0Var = this.c; + int n = n(); + j1 j1Var = this.B; + Objects.requireNonNull(j1Var); + m0Var.a(n, new c(j1Var, bVar, null)); + } + int i6 = this.q + 1; + this.q = i6; + int i7 = this.j; + if (i6 == i7) { + int i8 = i7 + 1000; + int[] iArr = new int[i8]; + long[] jArr = new long[i8]; + long[] jArr2 = new long[i8]; + int[] iArr2 = new int[i8]; + int[] iArr3 = new int[i8]; + w.a[] aVarArr = new w.a[i8]; + int i9 = this.f806s; + int i10 = i7 - i9; + System.arraycopy(this.l, i9, jArr, 0, i10); + System.arraycopy(this.o, this.f806s, jArr2, 0, i10); + System.arraycopy(this.n, this.f806s, iArr2, 0, i10); + System.arraycopy(this.m, this.f806s, iArr3, 0, i10); + System.arraycopy(this.p, this.f806s, aVarArr, 0, i10); + System.arraycopy(this.k, this.f806s, iArr, 0, i10); + int i11 = this.f806s; + System.arraycopy(this.l, 0, jArr, i10, i11); + System.arraycopy(this.o, 0, jArr2, i10, i11); + System.arraycopy(this.n, 0, iArr2, i10, i11); + System.arraycopy(this.m, 0, iArr3, i10, i11); + System.arraycopy(this.p, 0, aVarArr, i10, i11); + System.arraycopy(this.k, 0, iArr, i10, i11); + this.l = jArr; + this.o = jArr2; + this.n = iArr2; + this.m = iArr3; + this.p = aVarArr; + this.k = iArr; + this.f806s = 0; + this.j = i8; + } + } + } + + @Override // b.i.a.c.x2.w + public final void e(j1 j1Var) { + boolean z2; + this.A = j1Var; + synchronized (this) { + z2 = false; + this.f809z = false; + if (!e0.a(j1Var, this.B)) { + if ((this.c.f815b.size() == 0) || !this.c.c().a.equals(j1Var)) { + this.B = j1Var; + } else { + this.B = this.c.c().a; + } + j1 j1Var2 = this.B; + this.C = t.a(j1Var2.w, j1Var2.t); + this.D = false; + z2 = true; + } + } + d dVar = this.g; + if (dVar != null && z2) { + e0 e0Var = (e0) dVar; + e0Var.A.post(e0Var.f797y); + } + } + + @Override // b.i.a.c.x2.w + public final void f(x xVar, int i, int i2) { + g0 g0Var = this.a; + Objects.requireNonNull(g0Var); + while (i > 0) { + int c2 = g0Var.c(i); + g0.a aVar = g0Var.f; + xVar.e(aVar.d.a, aVar.a(g0Var.g), c2); + i -= c2; + g0Var.b(c2); + } + } + + @GuardedBy("this") + public final long g(int i) { + this.v = Math.max(this.v, j(i)); + this.q -= i; + int i2 = this.r + i; + this.r = i2; + int i3 = this.f806s + i; + this.f806s = i3; + int i4 = this.j; + if (i3 >= i4) { + this.f806s = i3 - i4; + } + int i5 = this.t - i; + this.t = i5; + int i6 = 0; + if (i5 < 0) { + this.t = 0; + } + m0 m0Var = this.c; + while (i6 < m0Var.f815b.size() - 1) { + int i7 = i6 + 1; + if (i2 < m0Var.f815b.keyAt(i7)) { + break; + } + m0Var.c.accept(m0Var.f815b.valueAt(i6)); + m0Var.f815b.removeAt(i6); + int i8 = m0Var.a; + if (i8 > 0) { + m0Var.a = i8 - 1; + } + i6 = i7; + } + if (this.q != 0) { + return this.l[this.f806s]; + } + int i9 = this.f806s; + if (i9 == 0) { + i9 = this.j; + } + int i10 = i9 - 1; + return this.l[i10] + ((long) this.m[i10]); + } + + public final void h() { + long g; + g0 g0Var = this.a; + synchronized (this) { + int i = this.q; + g = i == 0 ? -1 : g(i); + } + g0Var.a(g); + } + + public final int i(int i, int i2, long j, boolean z2) { + int i3 = -1; + for (int i4 = 0; i4 < i2; i4++) { + long[] jArr = this.o; + if (jArr[i] > j) { + return i3; + } + if (!z2 || (this.n[i] & 1) != 0) { + if (jArr[i] == j) { + return i4; + } + i3 = i4; + } + i++; + if (i == this.j) { + i = 0; + } + } + return i3; + } + + public final long j(int i) { + long j = Long.MIN_VALUE; + if (i == 0) { + return Long.MIN_VALUE; + } + int l = l(i - 1); + for (int i2 = 0; i2 < i; i2++) { + j = Math.max(j, this.o[l]); + if ((this.n[l] & 1) != 0) { + break; + } + l--; + if (l == -1) { + l = this.j - 1; + } + } + return j; + } + + public final int k() { + return this.r + this.t; + } + + public final int l(int i) { + int i2 = this.f806s + i; + int i3 = this.j; + return i2 < i3 ? i2 : i2 - i3; + } + + @Nullable + public final synchronized j1 m() { + return this.f809z ? null : this.B; + } + + public final int n() { + return this.r + this.q; + } + + public final boolean o() { + return this.t != this.q; + } + + @CallSuper + public synchronized boolean p(boolean z2) { + j1 j1Var; + boolean z3 = true; + if (!o()) { + if (!z2 && !this.f807x && ((j1Var = this.B) == null || j1Var == this.h)) { + z3 = false; + } + return z3; + } else if (this.c.b(k()).a != this.h) { + return true; + } else { + return q(l(this.t)); + } + } + + public final boolean q(int i) { + DrmSession drmSession = this.i; + return drmSession == null || drmSession.getState() == 4 || ((this.n[i] & BasicMeasure.EXACTLY) == 0 && this.i.d()); + } + + public final void r(j1 j1Var, k1 k1Var) { + j1 j1Var2; + j1 j1Var3 = this.h; + boolean z2 = j1Var3 == null; + DrmInitData drmInitData = z2 ? null : j1Var3.f1006z; + this.h = j1Var; + DrmInitData drmInitData2 = j1Var.f1006z; + u uVar = this.d; + if (uVar != null) { + int d2 = uVar.d(j1Var); + j1.b a2 = j1Var.a(); + a2.D = d2; + j1Var2 = a2.a(); + } else { + j1Var2 = j1Var; + } + k1Var.f1013b = j1Var2; + k1Var.a = this.i; + if (this.d != null) { + if (z2 || !e0.a(drmInitData, drmInitData2)) { + DrmSession drmSession = this.i; + u uVar2 = this.d; + Looper looper = this.f; + Objects.requireNonNull(looper); + DrmSession c2 = uVar2.c(looper, this.e, j1Var); + this.i = c2; + k1Var.a = c2; + if (drmSession != null) { + drmSession.b(this.e); + } + } + } + } + + @CallSuper + public void s(boolean z2) { + g0 g0Var = this.a; + g0.a aVar = g0Var.d; + if (aVar.c) { + g0.a aVar2 = g0Var.f; + int i = (((int) (aVar2.a - aVar.a)) / g0Var.f803b) + (aVar2.c ? 1 : 0); + e[] eVarArr = new e[i]; + int i2 = 0; + while (i2 < i) { + eVarArr[i2] = aVar.d; + aVar.d = null; + g0.a aVar3 = aVar.e; + aVar.e = null; + i2++; + aVar = aVar3; + } + g0Var.a.a(eVarArr); + } + g0.a aVar4 = new g0.a(0, g0Var.f803b); + g0Var.d = aVar4; + g0Var.e = aVar4; + g0Var.f = aVar4; + g0Var.g = 0; + g0Var.a.c(); + this.q = 0; + this.r = 0; + this.f806s = 0; + this.t = 0; + this.f808y = true; + this.u = Long.MIN_VALUE; + this.v = Long.MIN_VALUE; + this.w = Long.MIN_VALUE; + this.f807x = false; + m0 m0Var = this.c; + for (int i3 = 0; i3 < m0Var.f815b.size(); i3++) { + m0Var.c.accept(m0Var.f815b.valueAt(i3)); + } + m0Var.a = -1; + m0Var.f815b.clear(); + if (z2) { + this.A = null; + this.B = null; + this.f809z = true; + } + } + + public final synchronized boolean t(long j, boolean z2) { + synchronized (this) { + this.t = 0; + g0 g0Var = this.a; + g0Var.e = g0Var.d; + } + int l = l(0); + if (!o() || j < this.o[l] || (j > this.w && !z2)) { + return false; + } + int i = i(l, this.q - this.t, j, true); + if (i == -1) { + return false; + } + this.u = j; + this.t += i; + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/i.java b/app/src/main/java/b/i/a/c/a3/i.java new file mode 100644 index 0000000000..8d3df5f3ca --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/i.java @@ -0,0 +1,22 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.x; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class i implements Runnable { + public final /* synthetic */ e0 j; + + public /* synthetic */ i(e0 e0Var) { + this.j = e0Var; + } + + @Override // java.lang.Runnable + public final void run() { + e0 e0Var = this.j; + if (!e0Var.W) { + x.a aVar = e0Var.B; + Objects.requireNonNull(aVar); + aVar.a(e0Var); + } + } +} diff --git a/app/src/main/java/b/i/a/c/a3/i0.java b/app/src/main/java/b/i/a/c/a3/i0.java new file mode 100644 index 0000000000..677b1e3fd3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/i0.java @@ -0,0 +1,15 @@ +package b.i.a.c.a3; + +import b.i.a.c.k1; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import java.io.IOException; +/* compiled from: SampleStream */ +public interface i0 { + int a(k1 k1Var, DecoderInputBuffer decoderInputBuffer, int i); + + void b() throws IOException; + + int c(long j); + + boolean d(); +} diff --git a/app/src/main/java/b/i/a/c/a3/j.java b/app/src/main/java/b/i/a/c/a3/j.java new file mode 100644 index 0000000000..3dc9a45df4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/j.java @@ -0,0 +1,12 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.d0; +import b.i.a.c.x2.l; +/* compiled from: lambda */ +public final /* synthetic */ class j implements d0.a { + public final /* synthetic */ l a; + + public /* synthetic */ j(l lVar) { + this.a = lVar; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/j0.java b/app/src/main/java/b/i/a/c/a3/j0.java new file mode 100644 index 0000000000..f19de754b9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/j0.java @@ -0,0 +1,9 @@ +package b.i.a.c.a3; +/* compiled from: SequenceableLoader */ +public interface j0 { + + /* compiled from: SequenceableLoader */ + public interface a { + void a(T t); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/k.java b/app/src/main/java/b/i/a/c/a3/k.java new file mode 100644 index 0000000000..9a2f0e8fd7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/k.java @@ -0,0 +1,12 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.h0; +/* compiled from: lambda */ +public final /* synthetic */ class k implements b.i.a.c.f3.k { + public static final /* synthetic */ k a = new k(); + + @Override // b.i.a.c.f3.k + public final void accept(Object obj) { + ((h0.c) obj).f811b.release(); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/k0.java b/app/src/main/java/b/i/a/c/a3/k0.java new file mode 100644 index 0000000000..ce27c9773b --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/k0.java @@ -0,0 +1,160 @@ +package b.i.a.c.a3; + +import java.util.Arrays; +import java.util.Random; +/* compiled from: ShuffleOrder */ +public interface k0 { + + /* compiled from: ShuffleOrder */ + public static class a implements k0 { + public final Random a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f812b; + public final int[] c; + + /* JADX WARNING: Illegal instructions before constructor call */ + public a(int i, Random random) { + this(r0, random); + int[] iArr = new int[i]; + int i2 = 0; + while (i2 < i) { + int i3 = i2 + 1; + int nextInt = random.nextInt(i3); + iArr[i2] = iArr[nextInt]; + iArr[nextInt] = i2; + i2 = i3; + } + } + + public a(int[] iArr, Random random) { + this.f812b = iArr; + this.a = random; + this.c = new int[iArr.length]; + for (int i = 0; i < iArr.length; i++) { + this.c[iArr[i]] = i; + } + } + + @Override // b.i.a.c.a3.k0 + public k0 a(int i, int i2) { + int i3 = i2 - i; + int[] iArr = new int[(this.f812b.length - i3)]; + int i4 = 0; + int i5 = 0; + while (true) { + int[] iArr2 = this.f812b; + if (i4 >= iArr2.length) { + return new a(iArr, new Random(this.a.nextLong())); + } + if (iArr2[i4] < i || iArr2[i4] >= i2) { + iArr[i4 - i5] = iArr2[i4] >= i ? iArr2[i4] - i3 : iArr2[i4]; + } else { + i5++; + } + i4++; + } + } + + @Override // b.i.a.c.a3.k0 + public int b() { + return this.f812b.length; + } + + @Override // b.i.a.c.a3.k0 + public int c() { + int[] iArr = this.f812b; + if (iArr.length > 0) { + return iArr[0]; + } + return -1; + } + + @Override // b.i.a.c.a3.k0 + public int d(int i) { + int i2 = this.c[i] - 1; + if (i2 >= 0) { + return this.f812b[i2]; + } + return -1; + } + + @Override // b.i.a.c.a3.k0 + public int e(int i) { + int i2 = this.c[i] + 1; + int[] iArr = this.f812b; + if (i2 < iArr.length) { + return iArr[i2]; + } + return -1; + } + + @Override // b.i.a.c.a3.k0 + public k0 f(int i, int i2) { + int[] iArr = new int[i2]; + int[] iArr2 = new int[i2]; + int i3 = 0; + int i4 = 0; + while (i4 < i2) { + iArr[i4] = this.a.nextInt(this.f812b.length + 1); + int i5 = i4 + 1; + int nextInt = this.a.nextInt(i5); + iArr2[i4] = iArr2[nextInt]; + iArr2[nextInt] = i4 + i; + i4 = i5; + } + Arrays.sort(iArr); + int[] iArr3 = new int[(this.f812b.length + i2)]; + int i6 = 0; + int i7 = 0; + while (true) { + int[] iArr4 = this.f812b; + if (i3 >= iArr4.length + i2) { + return new a(iArr3, new Random(this.a.nextLong())); + } + if (i6 >= i2 || i7 != iArr[i6]) { + int i8 = i7 + 1; + iArr3[i3] = iArr4[i7]; + if (iArr3[i3] >= i) { + iArr3[i3] = iArr3[i3] + i2; + } + i7 = i8; + } else { + iArr3[i3] = iArr2[i6]; + i6++; + } + i3++; + } + } + + @Override // b.i.a.c.a3.k0 + public int g() { + int[] iArr = this.f812b; + if (iArr.length > 0) { + return iArr[iArr.length - 1]; + } + return -1; + } + + @Override // b.i.a.c.a3.k0 + public k0 h() { + return new a(0, new Random(this.a.nextLong())); + } + } + + k0 a(int i, int i2); + + int b(); + + int c(); + + int d(int i); + + int e(int i); + + k0 f(int i, int i2); + + int g(); + + k0 h(); +} diff --git a/app/src/main/java/b/i/a/c/a3/l.java b/app/src/main/java/b/i/a/c/a3/l.java new file mode 100644 index 0000000000..1da2b70a5c --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/l.java @@ -0,0 +1,142 @@ +package b.i.a.c.a3; + +import android.os.Handler; +import android.os.Looper; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.b0; +import b.i.a.c.o2; +import b.i.a.c.w2.s; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Objects; +/* compiled from: BaseMediaSource */ +public abstract class l implements a0 { + public final ArrayList a = new ArrayList<>(1); + + /* renamed from: b reason: collision with root package name */ + public final HashSet f813b = new HashSet<>(1); + public final b0.a c = new b0.a(); + public final s.a d = new s.a(); + @Nullable + public Looper e; + @Nullable + public o2 f; + + @Override // b.i.a.c.a3.a0 + public final void a(a0.b bVar) { + this.a.remove(bVar); + if (this.a.isEmpty()) { + this.e = null; + this.f = null; + this.f813b.clear(); + s(); + return; + } + d(bVar); + } + + @Override // b.i.a.c.a3.a0 + public final void b(Handler handler, b0 b0Var) { + b0.a aVar = this.c; + Objects.requireNonNull(aVar); + aVar.c.add(new b0.a.C0083a(handler, b0Var)); + } + + @Override // b.i.a.c.a3.a0 + public final void c(b0 b0Var) { + b0.a aVar = this.c; + Iterator it = aVar.c.iterator(); + while (it.hasNext()) { + b0.a.C0083a next = it.next(); + if (next.f794b == b0Var) { + aVar.c.remove(next); + } + } + } + + @Override // b.i.a.c.a3.a0 + public final void d(a0.b bVar) { + boolean z2 = !this.f813b.isEmpty(); + this.f813b.remove(bVar); + if (z2 && this.f813b.isEmpty()) { + o(); + } + } + + @Override // b.i.a.c.a3.a0 + public final void f(Handler handler, s sVar) { + s.a aVar = this.d; + Objects.requireNonNull(aVar); + aVar.c.add(new s.a.C0092a(handler, sVar)); + } + + @Override // b.i.a.c.a3.a0 + public final void g(s sVar) { + s.a aVar = this.d; + Iterator it = aVar.c.iterator(); + while (it.hasNext()) { + s.a.C0092a next = it.next(); + if (next.f1143b == sVar) { + aVar.c.remove(next); + } + } + } + + @Override // b.i.a.c.a3.a0 + public /* synthetic */ boolean i() { + return z.b(this); + } + + @Override // b.i.a.c.a3.a0 + public /* synthetic */ o2 k() { + return z.a(this); + } + + @Override // b.i.a.c.a3.a0 + public final void l(a0.b bVar, @Nullable b.i.a.c.e3.a0 a0Var) { + Looper myLooper = Looper.myLooper(); + Looper looper = this.e; + d.j(looper == null || looper == myLooper); + o2 o2Var = this.f; + this.a.add(bVar); + if (this.e == null) { + this.e = myLooper; + this.f813b.add(bVar); + q(a0Var); + } else if (o2Var != null) { + m(bVar); + bVar.a(this, o2Var); + } + } + + @Override // b.i.a.c.a3.a0 + public final void m(a0.b bVar) { + Objects.requireNonNull(this.e); + boolean isEmpty = this.f813b.isEmpty(); + this.f813b.add(bVar); + if (isEmpty) { + p(); + } + } + + public void o() { + } + + public void p() { + } + + public abstract void q(@Nullable b.i.a.c.e3.a0 a0Var); + + public final void r(o2 o2Var) { + this.f = o2Var; + Iterator it = this.a.iterator(); + while (it.hasNext()) { + it.next().a(this, o2Var); + } + } + + public abstract void s(); +} diff --git a/app/src/main/java/b/i/a/c/a3/l0.java b/app/src/main/java/b/i/a/c/a3/l0.java new file mode 100644 index 0000000000..be63f37d81 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/l0.java @@ -0,0 +1,89 @@ +package b.i.a.c.a3; + +import android.net.Uri; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.p0.c; +import b.i.a.c.o1; +import b.i.a.c.o2; +import b.i.a.c.p1; +import b.i.b.b.h0; +import b.i.b.b.p; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: SinglePeriodTimeline */ +public final class l0 extends o2 { + public static final Object k = new Object(); + public final long l; + public final long m; + public final boolean n; + @Nullable + public final o1 o; + @Nullable + public final o1.g p; + + static { + o1.d.a aVar = new o1.d.a(); + o1.f.a aVar2 = new o1.f.a(null); + List emptyList = Collections.emptyList(); + p pVar = h0.l; + o1.g.a aVar3 = new o1.g.a(); + Uri uri = Uri.EMPTY; + d.D(aVar2.f1023b == null || aVar2.a != null); + if (uri != null) { + new o1.i(uri, null, aVar2.a != null ? new o1.f(aVar2, null) : null, null, emptyList, null, pVar, null, null); + } + aVar.a(); + new o1.g(aVar3, null); + p1 p1Var = p1.j; + } + + public l0(long j, boolean z2, boolean z3, boolean z4, @Nullable Object obj, o1 o1Var) { + o1.g gVar = z4 ? o1Var.m : null; + this.l = j; + this.m = j; + this.n = z2; + Objects.requireNonNull(o1Var); + this.o = o1Var; + this.p = gVar; + } + + @Override // b.i.a.c.o2 + public int b(Object obj) { + return k.equals(obj) ? 0 : -1; + } + + @Override // b.i.a.c.o2 + public o2.b g(int i, o2.b bVar, boolean z2) { + d.t(i, 0, 1); + Object obj = z2 ? k : null; + long j = this.l; + Objects.requireNonNull(bVar); + bVar.f(null, obj, 0, j, 0, c.j, false); + return bVar; + } + + @Override // b.i.a.c.o2 + public int i() { + return 1; + } + + @Override // b.i.a.c.o2 + public Object m(int i) { + d.t(i, 0, 1); + return k; + } + + @Override // b.i.a.c.o2 + public o2.c o(int i, o2.c cVar, long j) { + d.t(i, 0, 1); + cVar.e(o2.c.j, this.o, null, -9223372036854775807L, -9223372036854775807L, -9223372036854775807L, this.n, false, this.p, 0, this.m, 0, 0, 0); + return cVar; + } + + @Override // b.i.a.c.o2 + public int p() { + return 1; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/m.java b/app/src/main/java/b/i/a/c/a3/m.java new file mode 100644 index 0000000000..7f0be04887 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/m.java @@ -0,0 +1,113 @@ +package b.i.a.c.a3; + +import android.net.Uri; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.f3.e0; +import b.i.a.c.x2.e; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.l; +import com.google.android.exoplayer2.source.UnrecognizedInputFormatException; +import java.io.EOFException; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: BundledExtractorsAdapter */ +public final class m implements d0 { + public final l a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public h f814b; + @Nullable + public i c; + + public m(l lVar) { + this.a = lVar; + } + + public long a() { + i iVar = this.c; + if (iVar != null) { + return iVar.getPosition(); + } + return -1; + } + + /* JADX WARNING: Code restructure failed: missing block: B:17:0x003d, code lost: + if (r6.d != r11) goto L_0x005f; + */ + /* JADX WARNING: Code restructure failed: missing block: B:30:0x005c, code lost: + if (r6.d != r11) goto L_0x005f; + */ + /* JADX WARNING: Code restructure failed: missing block: B:31:0x005f, code lost: + r1 = false; + */ + public void b(b.i.a.c.e3.h hVar, Uri uri, Map> map, long j, long j2, j jVar) throws IOException { + e eVar = new e(hVar, j, j2); + this.c = eVar; + if (this.f814b == null) { + h[] b2 = this.a.b(uri, map); + boolean z2 = true; + if (b2.length == 1) { + this.f814b = b2[0]; + } else { + int length = b2.length; + int i = 0; + while (true) { + if (i >= length) { + break; + } + h hVar2 = b2[i]; + try { + if (hVar2.b(eVar)) { + this.f814b = hVar2; + d.D(true); + eVar.f = 0; + break; + } + if (this.f814b == null) { + } + boolean z3 = true; + d.D(z3); + eVar.f = 0; + i++; + } catch (EOFException unused) { + if (this.f814b == null) { + } + } catch (Throwable th) { + if (this.f814b == null && eVar.d != j) { + z2 = false; + } + d.D(z2); + eVar.f = 0; + throw th; + } + } + if (this.f814b == null) { + int i2 = e0.a; + StringBuilder sb = new StringBuilder(); + for (int i3 = 0; i3 < b2.length; i3++) { + sb.append(b2[i3].getClass().getSimpleName()); + if (i3 < b2.length - 1) { + sb.append(", "); + } + } + String sb2 = sb.toString(); + StringBuilder sb3 = new StringBuilder(a.b(sb2, 58)); + sb3.append("None of the available extractors ("); + sb3.append(sb2); + sb3.append(") could read the stream."); + String sb4 = sb3.toString(); + Objects.requireNonNull(uri); + throw new UnrecognizedInputFormatException(sb4, uri); + } + } + this.f814b.f(jVar); + } + } +} diff --git a/app/src/main/java/b/i/a/c/a3/m0.java b/app/src/main/java/b/i/a/c/a3/m0.java new file mode 100644 index 0000000000..a9a80fa989 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/m0.java @@ -0,0 +1,61 @@ +package b.i.a.c.a3; + +import android.util.SparseArray; +import b.c.a.a0.d; +import b.i.a.c.f3.k; +/* compiled from: SpannedData */ +public final class m0 { + public int a; + + /* renamed from: b reason: collision with root package name */ + public final SparseArray f815b = new SparseArray<>(); + public final k c; + + public m0(k kVar) { + this.c = kVar; + this.a = -1; + } + + public void a(int i, V v) { + boolean z2 = false; + if (this.a == -1) { + d.D(this.f815b.size() == 0); + this.a = 0; + } + if (this.f815b.size() > 0) { + SparseArray sparseArray = this.f815b; + int keyAt = sparseArray.keyAt(sparseArray.size() - 1); + if (i >= keyAt) { + z2 = true; + } + d.j(z2); + if (keyAt == i) { + SparseArray sparseArray2 = this.f815b; + this.c.accept(sparseArray2.valueAt(sparseArray2.size() - 1)); + } + } + this.f815b.append(i, v); + } + + public V b(int i) { + if (this.a == -1) { + this.a = 0; + } + while (true) { + int i2 = this.a; + if (i2 <= 0 || i >= this.f815b.keyAt(i2)) { + break; + } + this.a--; + } + while (this.a < this.f815b.size() - 1 && i >= this.f815b.keyAt(this.a + 1)) { + this.a++; + } + return this.f815b.valueAt(this.a); + } + + public V c() { + SparseArray sparseArray = this.f815b; + return sparseArray.valueAt(sparseArray.size() - 1); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/n.java b/app/src/main/java/b/i/a/c/a3/n.java new file mode 100644 index 0000000000..6f8822181f --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/n.java @@ -0,0 +1,337 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import b.i.a.c.a3.x; +import b.i.a.c.c3.j; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.t; +import b.i.a.c.j1; +import b.i.a.c.j2; +import b.i.a.c.k1; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import java.io.IOException; +import java.util.Objects; +/* compiled from: ClippingMediaPeriod */ +public final class n implements x, x.a { + public final x j; + @Nullable + public x.a k; + public a[] l = new a[0]; + public long m; + public long n; + public long o; + + /* compiled from: ClippingMediaPeriod */ + public final class a implements i0 { + public final i0 a; + + /* renamed from: b reason: collision with root package name */ + public boolean f816b; + + public a(i0 i0Var) { + this.a = i0Var; + } + + @Override // b.i.a.c.a3.i0 + public int a(k1 k1Var, DecoderInputBuffer decoderInputBuffer, int i) { + if (n.this.d()) { + return -3; + } + if (this.f816b) { + decoderInputBuffer.j = 4; + return -4; + } + int a = this.a.a(k1Var, decoderInputBuffer, i); + if (a == -5) { + j1 j1Var = k1Var.f1013b; + Objects.requireNonNull(j1Var); + int i2 = j1Var.M; + if (!(i2 == 0 && j1Var.N == 0)) { + n nVar = n.this; + int i3 = 0; + if (nVar.n != 0) { + i2 = 0; + } + if (nVar.o == Long.MIN_VALUE) { + i3 = j1Var.N; + } + j1.b a2 = j1Var.a(); + a2.A = i2; + a2.B = i3; + k1Var.f1013b = a2.a(); + } + return -5; + } + n nVar2 = n.this; + long j = nVar2.o; + if (j == Long.MIN_VALUE || ((a != -4 || decoderInputBuffer.n < j) && (a != -3 || nVar2.q() != Long.MIN_VALUE || decoderInputBuffer.m))) { + return a; + } + decoderInputBuffer.p(); + decoderInputBuffer.j = 4; + this.f816b = true; + return -4; + } + + @Override // b.i.a.c.a3.i0 + public void b() throws IOException { + this.a.b(); + } + + @Override // b.i.a.c.a3.i0 + public int c(long j) { + if (n.this.d()) { + return -3; + } + return this.a.c(j); + } + + @Override // b.i.a.c.a3.i0 + public boolean d() { + return !n.this.d() && this.a.d(); + } + } + + public n(x xVar, boolean z2, long j, long j2) { + this.j = xVar; + this.m = z2 ? j : -9223372036854775807L; + this.n = j; + this.o = j2; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.c.a3.j0] */ + @Override // b.i.a.c.a3.j0.a + public void a(x xVar) { + x.a aVar = this.k; + Objects.requireNonNull(aVar); + aVar.a(this); + } + + @Override // b.i.a.c.a3.x.a + public void b(x xVar) { + x.a aVar = this.k; + Objects.requireNonNull(aVar); + aVar.b(this); + } + + @Override // b.i.a.c.a3.x + public long c() { + long c = this.j.c(); + if (c != Long.MIN_VALUE) { + long j = this.o; + if (j == Long.MIN_VALUE || c < j) { + return c; + } + } + return Long.MIN_VALUE; + } + + public boolean d() { + return this.m != -9223372036854775807L; + } + + @Override // b.i.a.c.a3.x + public void e() throws IOException { + this.j.e(); + } + + /* JADX WARNING: Code restructure failed: missing block: B:13:0x0031, code lost: + if (r0 > r7) goto L_0x0034; + */ + @Override // b.i.a.c.a3.x + public long f(long j) { + this.m = -9223372036854775807L; + a[] aVarArr = this.l; + boolean z2 = false; + for (a aVar : aVarArr) { + if (aVar != null) { + aVar.f816b = false; + } + } + long f = this.j.f(j); + if (f != j) { + if (f >= this.n) { + long j2 = this.o; + if (j2 != Long.MIN_VALUE) { + } + } + d.D(z2); + return f; + } + z2 = true; + d.D(z2); + return f; + } + + @Override // b.i.a.c.a3.x + public boolean g(long j) { + return this.j.g(j); + } + + @Override // b.i.a.c.a3.x + public boolean h() { + return this.j.h(); + } + + @Override // b.i.a.c.a3.x + public long i(long j, j2 j2Var) { + long j2 = this.n; + if (j == j2) { + return j2; + } + long i = e0.i(j2Var.c, 0, j - j2); + long j3 = j2Var.d; + long j4 = this.o; + long i2 = e0.i(j3, 0, j4 == Long.MIN_VALUE ? RecyclerView.FOREVER_NS : j4 - j); + if (!(i == j2Var.c && i2 == j2Var.d)) { + j2Var = new j2(i, i2); + } + return this.j.i(j, j2Var); + } + + @Override // b.i.a.c.a3.x + public long k() { + if (d()) { + long j = this.m; + this.m = -9223372036854775807L; + long k = k(); + return k != -9223372036854775807L ? k : j; + } + long k2 = this.j.k(); + if (k2 == -9223372036854775807L) { + return -9223372036854775807L; + } + boolean z2 = true; + d.D(k2 >= this.n); + long j2 = this.o; + if (j2 != Long.MIN_VALUE && k2 > j2) { + z2 = false; + } + d.D(z2); + return k2; + } + + @Override // b.i.a.c.a3.x + public void l(x.a aVar, long j) { + this.k = aVar; + this.j.l(this, j); + } + + /* JADX WARNING: Code restructure failed: missing block: B:32:0x0085, code lost: + if (r1 > r5) goto L_0x0088; + */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x0068 */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x0075 */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x008f */ + @Override // b.i.a.c.a3.x + public long m(j[] jVarArr, boolean[] zArr, i0[] i0VarArr, boolean[] zArr2, long j) { + long j2; + boolean z2; + this.l = new a[i0VarArr.length]; + i0[] i0VarArr2 = new i0[i0VarArr.length]; + int i = 0; + while (true) { + i0 i0Var = null; + if (i >= i0VarArr.length) { + break; + } + a[] aVarArr = this.l; + aVarArr[i] = (a) i0VarArr[i]; + if (aVarArr[i] != null) { + i0Var = aVarArr[i].a; + } + i0VarArr2[i] = i0Var; + i++; + } + long m = this.j.m(jVarArr, zArr, i0VarArr2, zArr2, j); + boolean z3 = true; + if (d()) { + long j3 = this.n; + if (j == j3) { + if (j3 != 0) { + int length = jVarArr.length; + int i2 = 0; + while (true) { + if (i2 >= length) { + break; + } + j jVar = jVarArr[i2]; + if (jVar != null) { + j1 h = jVar.h(); + if (!t.a(h.w, h.t)) { + z2 = true; + break; + } + } + i2++; + } + if (z2) { + j2 = m; + this.m = j2; + if (m != j) { + if (m >= this.n) { + long j4 = this.o; + if (j4 != Long.MIN_VALUE) { + } + } + z3 = false; + } + d.D(z3); + for (int i3 = 0; i3 < i0VarArr.length; i3++) { + if (i0VarArr2[i3] == null) { + this.l[i3] = null; + } else { + a[] aVarArr2 = this.l; + if (aVarArr2[i3] == null || aVarArr2[i3].a != i0VarArr2[i3]) { + aVarArr2[i3] = new a(i0VarArr2[i3]); + } + } + i0VarArr[i3] = this.l[i3]; + } + return m; + } + } + z2 = false; + if (z2) { + } + } + } + j2 = -9223372036854775807L; + this.m = j2; + if (m != j) { + } + d.D(z3); + while (i3 < i0VarArr.length) { + } + return m; + } + + @Override // b.i.a.c.a3.x + public o0 n() { + return this.j.n(); + } + + @Override // b.i.a.c.a3.x + public long q() { + long q = this.j.q(); + if (q != Long.MIN_VALUE) { + long j = this.o; + if (j == Long.MIN_VALUE || q < j) { + return q; + } + } + return Long.MIN_VALUE; + } + + @Override // b.i.a.c.a3.x + public void r(long j, boolean z2) { + this.j.r(j, z2); + } + + @Override // b.i.a.c.a3.x + public void s(long j) { + this.j.s(j); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/n0.java b/app/src/main/java/b/i/a/c/a3/n0.java new file mode 100644 index 0000000000..f17f09c7f8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/n0.java @@ -0,0 +1,73 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.f3.q; +import b.i.a.c.j1; +import b.i.a.c.w0; +import java.util.Arrays; +/* compiled from: TrackGroup */ +public final class n0 implements w0 { + public static final /* synthetic */ int j = 0; + public final int k; + public final j1[] l; + public int m; + + public n0(j1... j1VarArr) { + int i = 1; + d.j(j1VarArr.length > 0); + this.l = j1VarArr; + this.k = j1VarArr.length; + String str = j1VarArr[0].n; + str = (str == null || str.equals("und")) ? "" : str; + int i2 = j1VarArr[0].p | 16384; + while (true) { + j1[] j1VarArr2 = this.l; + if (i < j1VarArr2.length) { + String str2 = j1VarArr2[i].n; + if (!str.equals((str2 == null || str2.equals("und")) ? "" : str2)) { + j1[] j1VarArr3 = this.l; + a("languages", j1VarArr3[0].n, j1VarArr3[i].n, i); + return; + } + j1[] j1VarArr4 = this.l; + if (i2 != (j1VarArr4[i].p | 16384)) { + a("role flags", Integer.toBinaryString(j1VarArr4[0].p), Integer.toBinaryString(this.l[i].p), i); + return; + } + i++; + } else { + return; + } + } + } + + public static void a(String str, @Nullable String str2, @Nullable String str3, int i) { + StringBuilder Q = a.Q(a.b(str3, a.b(str2, str.length() + 78)), "Different ", str, " combined in one TrackGroup: '", str2); + Q.append("' (track 0) and '"); + Q.append(str3); + Q.append("' (track "); + Q.append(i); + Q.append(")"); + q.b("TrackGroup", "", new IllegalStateException(Q.toString())); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || n0.class != obj.getClass()) { + return false; + } + n0 n0Var = (n0) obj; + return this.k == n0Var.k && Arrays.equals(this.l, n0Var.l); + } + + public int hashCode() { + if (this.m == 0) { + this.m = 527 + Arrays.hashCode(this.l); + } + return this.m; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/o.java b/app/src/main/java/b/i/a/c/a3/o.java new file mode 100644 index 0000000000..5872045874 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/o.java @@ -0,0 +1,189 @@ +package b.i.a.c.a3; + +import android.os.Handler; +import androidx.annotation.CallSuper; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.b0; +import b.i.a.c.a3.v; +import b.i.a.c.e3.a0; +import b.i.a.c.f3.e0; +import b.i.a.c.w2.s; +import java.io.IOException; +import java.util.HashMap; +import java.util.Objects; +/* compiled from: CompositeMediaSource */ +public abstract class o extends l { + public final HashMap> g = new HashMap<>(); + @Nullable + public Handler h; + @Nullable + public a0 i; + + /* compiled from: CompositeMediaSource */ + public final class a implements b0, s { + public final T j; + public b0.a k; + public s.a l; + + public a(T t) { + this.k = o.this.c.g(0, null, 0); + this.l = o.this.d.g(0, null); + this.j = t; + } + + @Override // b.i.a.c.w2.s + public void J(int i, @Nullable a0.a aVar) { + a(i, aVar); + this.l.b(); + } + + @Override // b.i.a.c.w2.s + public void S(int i, @Nullable a0.a aVar) { + a(i, aVar); + this.l.a(); + } + + @Override // b.i.a.c.a3.b0 + public void X(int i, @Nullable a0.a aVar, t tVar, w wVar) { + a(i, aVar); + this.k.d(tVar, b(wVar)); + } + + public final boolean a(int i, @Nullable a0.a aVar) { + a0.a aVar2; + if (aVar != null) { + o oVar = o.this; + T t = this.j; + v vVar = (v) oVar; + Objects.requireNonNull(vVar); + Object obj = aVar.a; + Object obj2 = vVar.n.n; + if (obj2 != null && obj2.equals(obj)) { + obj = v.a.l; + } + aVar2 = aVar.b(obj); + } else { + aVar2 = null; + } + Objects.requireNonNull(o.this); + b0.a aVar3 = this.k; + if (aVar3.a != i || !e0.a(aVar3.f793b, aVar2)) { + this.k = o.this.c.g(i, aVar2, 0); + } + s.a aVar4 = this.l; + if (aVar4.a == i && e0.a(aVar4.f1142b, aVar2)) { + return true; + } + this.l = new s.a(o.this.d.c, i, aVar2); + return true; + } + + public final w b(w wVar) { + o oVar = o.this; + long j = wVar.f; + Objects.requireNonNull(oVar); + o oVar2 = o.this; + long j2 = wVar.g; + Objects.requireNonNull(oVar2); + return (j == wVar.f && j2 == wVar.g) ? wVar : new w(wVar.a, wVar.f820b, wVar.c, wVar.d, wVar.e, j, j2); + } + + @Override // b.i.a.c.w2.s + public void c0(int i, @Nullable a0.a aVar, int i2) { + a(i, aVar); + this.l.d(i2); + } + + @Override // b.i.a.c.w2.s + public void d0(int i, @Nullable a0.a aVar) { + a(i, aVar); + this.l.f(); + } + + @Override // b.i.a.c.a3.b0 + public void g0(int i, @Nullable a0.a aVar, t tVar, w wVar, IOException iOException, boolean z2) { + a(i, aVar); + this.k.e(tVar, b(wVar), iOException, z2); + } + + @Override // b.i.a.c.w2.s + public void i0(int i, @Nullable a0.a aVar) { + a(i, aVar); + this.l.c(); + } + + @Override // b.i.a.c.a3.b0 + public void o(int i, @Nullable a0.a aVar, w wVar) { + a(i, aVar); + this.k.b(b(wVar)); + } + + @Override // b.i.a.c.a3.b0 + public void q(int i, @Nullable a0.a aVar, t tVar, w wVar) { + a(i, aVar); + this.k.c(tVar, b(wVar)); + } + + @Override // b.i.a.c.w2.s + public void u(int i, @Nullable a0.a aVar, Exception exc) { + a(i, aVar); + this.l.e(exc); + } + + @Override // b.i.a.c.a3.b0 + public void x(int i, @Nullable a0.a aVar, t tVar, w wVar) { + a(i, aVar); + this.k.f(tVar, b(wVar)); + } + } + + /* compiled from: CompositeMediaSource */ + public static final class b { + public final a0 a; + + /* renamed from: b reason: collision with root package name */ + public final a0.b f817b; + public final o.a c; + + public b(a0 a0Var, a0.b bVar, o.a aVar) { + this.a = a0Var; + this.f817b = bVar; + this.c = aVar; + } + } + + @Override // b.i.a.c.a3.l + @CallSuper + public void o() { + for (b bVar : this.g.values()) { + bVar.a.d(bVar.f817b); + } + } + + @Override // b.i.a.c.a3.l + @CallSuper + public void p() { + for (b bVar : this.g.values()) { + bVar.a.m(bVar.f817b); + } + } + + public final void t(T t, a0 a0Var) { + d.j(!this.g.containsKey(null)); + a0.b aVar = new a(this, null); + a aVar2 = new a(null); + this.g.put(null, new b<>(a0Var, aVar, aVar2)); + Handler handler = this.h; + Objects.requireNonNull(handler); + a0Var.b(handler, aVar2); + Handler handler2 = this.h; + Objects.requireNonNull(handler2); + a0Var.f(handler2, aVar2); + a0Var.l(aVar, this.i); + if (!(!this.f813b.isEmpty())) { + a0Var.d(aVar); + } + } +} diff --git a/app/src/main/java/b/i/a/c/a3/o0.java b/app/src/main/java/b/i/a/c/a3/o0.java new file mode 100644 index 0000000000..f37c58ddd6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/o0.java @@ -0,0 +1,44 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +import b.i.a.c.w0; +import java.util.Arrays; +/* compiled from: TrackGroupArray */ +public final class o0 implements w0 { + public static final o0 j = new o0(new n0[0]); + public final int k; + public final n0[] l; + public int m; + + public o0(n0... n0VarArr) { + this.l = n0VarArr; + this.k = n0VarArr.length; + } + + public int a(n0 n0Var) { + for (int i = 0; i < this.k; i++) { + if (this.l[i] == n0Var) { + return i; + } + } + return -1; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || o0.class != obj.getClass()) { + return false; + } + o0 o0Var = (o0) obj; + return this.k == o0Var.k && Arrays.equals(this.l, o0Var.l); + } + + public int hashCode() { + if (this.m == 0) { + this.m = Arrays.hashCode(this.l); + } + return this.m; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/p.java b/app/src/main/java/b/i/a/c/a3/p.java new file mode 100644 index 0000000000..bdd8a64a1f --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/p.java @@ -0,0 +1,17 @@ +package b.i.a.c.a3; + +import android.content.Context; +import b.i.a.c.e3.u; +import b.i.a.c.x2.l; +import java.util.HashMap; +import java.util.HashSet; +/* compiled from: DefaultMediaSourceFactory */ +public final class p implements c0 { + public p(Context context, l lVar) { + new u(); + context.getApplicationContext(); + new HashMap(); + new HashSet(); + new HashMap(); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/p0/a.java b/app/src/main/java/b/i/a/c/a3/p0/a.java new file mode 100644 index 0000000000..552a5c6831 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/p0/a.java @@ -0,0 +1,26 @@ +package b.i.a.c.a3.p0; + +import android.net.Uri; +import android.os.Bundle; +import b.i.a.c.a3.p0.c; +import b.i.a.c.w0; +import java.util.ArrayList; +/* compiled from: lambda */ +public final /* synthetic */ class a implements w0.a { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + long j = bundle.getLong(c.a.c(0)); + int i = bundle.getInt(c.a.c(1), -1); + ArrayList parcelableArrayList = bundle.getParcelableArrayList(c.a.c(2)); + int[] intArray = bundle.getIntArray(c.a.c(3)); + long[] longArray = bundle.getLongArray(c.a.c(4)); + long j2 = bundle.getLong(c.a.c(5)); + boolean z2 = bundle.getBoolean(c.a.c(6)); + if (intArray == null) { + intArray = new int[0]; + } + return new c.a(j, i, intArray, parcelableArrayList == null ? new Uri[0] : (Uri[]) parcelableArrayList.toArray(new Uri[0]), longArray == null ? new long[0] : longArray, j2, z2); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/p0/b.java b/app/src/main/java/b/i/a/c/a3/p0/b.java new file mode 100644 index 0000000000..95402200d0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/p0/b.java @@ -0,0 +1,27 @@ +package b.i.a.c.a3.p0; + +import android.os.Bundle; +import b.i.a.c.a3.p0.c; +import b.i.a.c.w0; +import java.util.ArrayList; +/* compiled from: lambda */ +public final /* synthetic */ class b implements w0.a { + public static final /* synthetic */ b a = new b(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + c.a[] aVarArr; + ArrayList parcelableArrayList = bundle.getParcelableArrayList(c.b(1)); + if (parcelableArrayList == null) { + aVarArr = new c.a[0]; + } else { + c.a[] aVarArr2 = new c.a[parcelableArrayList.size()]; + for (int i = 0; i < parcelableArrayList.size(); i++) { + int i2 = c.a.j; + aVarArr2[i] = (c.a) a.a.a((Bundle) parcelableArrayList.get(i)); + } + aVarArr = aVarArr2; + } + return new c(null, aVarArr, bundle.getLong(c.b(2), 0), bundle.getLong(c.b(3), -9223372036854775807L), bundle.getInt(c.b(4))); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/p0/c.java b/app/src/main/java/b/i/a/c/a3/p0/c.java new file mode 100644 index 0000000000..7a47897b14 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/p0/c.java @@ -0,0 +1,184 @@ +package b.i.a.c.a3.p0; + +import android.net.Uri; +import androidx.annotation.IntRange; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.w0; +import java.util.Arrays; +/* compiled from: AdPlaybackState */ +public final class c implements w0 { + public static final c j = new c(null, new a[0], 0, -9223372036854775807L, 0); + public static final a k; + public static final w0.a l = b.a; + @Nullable + public final Object m = null; + public final int n; + public final long o; + public final long p; + public final int q; + public final a[] r; + + /* compiled from: AdPlaybackState */ + public static final class a implements w0 { + public static final /* synthetic */ int j = 0; + public final long k; + public final int l; + public final Uri[] m; + public final int[] n; + public final long[] o; + public final long p; + public final boolean q; + + public a(long j2, int i, int[] iArr, Uri[] uriArr, long[] jArr, long j3, boolean z2) { + d.j(iArr.length == uriArr.length); + this.k = j2; + this.l = i; + this.n = iArr; + this.m = uriArr; + this.o = jArr; + this.p = j3; + this.q = z2; + } + + public static String c(int i) { + return Integer.toString(i, 36); + } + + public int a(@IntRange(from = -1) int i) { + int i2 = i + 1; + while (true) { + int[] iArr = this.n; + if (i2 >= iArr.length || this.q || iArr[i2] == 0 || iArr[i2] == 1) { + break; + } + i2++; + } + return i2; + } + + public boolean b() { + if (this.l == -1) { + return true; + } + for (int i = 0; i < this.l; i++) { + int[] iArr = this.n; + if (iArr[i] == 0 || iArr[i] == 1) { + return true; + } + } + return false; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || a.class != obj.getClass()) { + return false; + } + a aVar = (a) obj; + return this.k == aVar.k && this.l == aVar.l && Arrays.equals(this.m, aVar.m) && Arrays.equals(this.n, aVar.n) && Arrays.equals(this.o, aVar.o) && this.p == aVar.p && this.q == aVar.q; + } + + public int hashCode() { + long j2 = this.k; + int hashCode = Arrays.hashCode(this.n); + int hashCode2 = Arrays.hashCode(this.o); + long j3 = this.p; + return ((((hashCode2 + ((hashCode + (((((this.l * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + Arrays.hashCode(this.m)) * 31)) * 31)) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31) + (this.q ? 1 : 0); + } + } + + static { + a aVar = new a(0, -1, new int[0], new Uri[0], new long[0], 0, false); + int[] iArr = aVar.n; + int length = iArr.length; + int max = Math.max(0, length); + int[] copyOf = Arrays.copyOf(iArr, max); + Arrays.fill(copyOf, length, max, 0); + long[] jArr = aVar.o; + int length2 = jArr.length; + int max2 = Math.max(0, length2); + long[] copyOf2 = Arrays.copyOf(jArr, max2); + Arrays.fill(copyOf2, length2, max2, -9223372036854775807L); + k = new a(aVar.k, 0, copyOf, (Uri[]) Arrays.copyOf(aVar.m, 0), copyOf2, aVar.p, aVar.q); + } + + public c(@Nullable Object obj, a[] aVarArr, long j2, long j3, int i) { + this.o = j2; + this.p = j3; + this.n = aVarArr.length + i; + this.r = aVarArr; + this.q = i; + } + + public static String b(int i) { + return Integer.toString(i, 36); + } + + public a a(@IntRange(from = 0) int i) { + int i2 = this.q; + return i < i2 ? k : this.r[i - i2]; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || c.class != obj.getClass()) { + return false; + } + c cVar = (c) obj; + return e0.a(this.m, cVar.m) && this.n == cVar.n && this.o == cVar.o && this.p == cVar.p && this.q == cVar.q && Arrays.equals(this.r, cVar.r); + } + + public int hashCode() { + int i = this.n * 31; + Object obj = this.m; + return ((((((((i + (obj == null ? 0 : obj.hashCode())) * 31) + ((int) this.o)) * 31) + ((int) this.p)) * 31) + this.q) * 31) + Arrays.hashCode(this.r); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("AdPlaybackState(adsId="); + R.append(this.m); + R.append(", adResumePositionUs="); + R.append(this.o); + R.append(", adGroups=["); + for (int i = 0; i < this.r.length; i++) { + R.append("adGroup(timeUs="); + R.append(this.r[i].k); + R.append(", ads=["); + for (int i2 = 0; i2 < this.r[i].n.length; i2++) { + R.append("ad(state="); + int i3 = this.r[i].n[i2]; + if (i3 == 0) { + R.append('_'); + } else if (i3 == 1) { + R.append('R'); + } else if (i3 == 2) { + R.append('S'); + } else if (i3 == 3) { + R.append('P'); + } else if (i3 != 4) { + R.append('?'); + } else { + R.append('!'); + } + R.append(", durationUs="); + R.append(this.r[i].o[i2]); + R.append(')'); + if (i2 < this.r[i].n.length - 1) { + R.append(", "); + } + } + R.append("])"); + if (i < this.r.length - 1) { + R.append(", "); + } + } + R.append("])"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/q.java b/app/src/main/java/b/i/a/c/a3/q.java new file mode 100644 index 0000000000..84b9c02dbf --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/q.java @@ -0,0 +1,26 @@ +package b.i.a.c.a3; + +import b.i.a.c.k1; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +/* compiled from: EmptySampleStream */ +public final class q implements i0 { + @Override // b.i.a.c.a3.i0 + public int a(k1 k1Var, DecoderInputBuffer decoderInputBuffer, int i) { + decoderInputBuffer.j = 4; + return -4; + } + + @Override // b.i.a.c.a3.i0 + public void b() { + } + + @Override // b.i.a.c.a3.i0 + public int c(long j) { + return 0; + } + + @Override // b.i.a.c.a3.i0 + public boolean d() { + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/r.java b/app/src/main/java/b/i/a/c/a3/r.java new file mode 100644 index 0000000000..7b36529936 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/r.java @@ -0,0 +1,51 @@ +package b.i.a.c.a3; + +import b.i.a.c.o2; +/* compiled from: ForwardingTimeline */ +public abstract class r extends o2 { + public final o2 k; + + public r(o2 o2Var) { + this.k = o2Var; + } + + @Override // b.i.a.c.o2 + public int a(boolean z2) { + return this.k.a(z2); + } + + @Override // b.i.a.c.o2 + public int b(Object obj) { + return this.k.b(obj); + } + + @Override // b.i.a.c.o2 + public int c(boolean z2) { + return this.k.c(z2); + } + + @Override // b.i.a.c.o2 + public int e(int i, int i2, boolean z2) { + return this.k.e(i, i2, z2); + } + + @Override // b.i.a.c.o2 + public int i() { + return this.k.i(); + } + + @Override // b.i.a.c.o2 + public int l(int i, int i2, boolean z2) { + return this.k.l(i, i2, z2); + } + + @Override // b.i.a.c.o2 + public Object m(int i) { + return this.k.m(i); + } + + @Override // b.i.a.c.o2 + public int p() { + return this.k.p(); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/s.java b/app/src/main/java/b/i/a/c/a3/s.java new file mode 100644 index 0000000000..d7779393c3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/s.java @@ -0,0 +1,131 @@ +package b.i.a.c.a3; + +import android.net.Uri; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.e0; +import b.i.a.c.e3.a0; +import b.i.a.c.e3.l; +import b.i.a.c.e3.n; +import b.i.a.c.f3.x; +import b.i.a.c.x2.w; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: IcyDataSource */ +public final class s implements l { + public final l a; + + /* renamed from: b reason: collision with root package name */ + public final int f818b; + public final a c; + public final byte[] d; + public int e; + + /* compiled from: IcyDataSource */ + public interface a { + } + + public s(l lVar, int i, a aVar) { + d.j(i > 0); + this.a = lVar; + this.f818b = i; + this.c = aVar; + this.d = new byte[1]; + this.e = i; + } + + @Override // b.i.a.c.e3.l + public long a(n nVar) { + throw new UnsupportedOperationException(); + } + + @Override // b.i.a.c.e3.l + public void close() { + throw new UnsupportedOperationException(); + } + + @Override // b.i.a.c.e3.l + public void d(a0 a0Var) { + Objects.requireNonNull(a0Var); + this.a.d(a0Var); + } + + @Override // b.i.a.c.e3.l + public Map> j() { + return this.a.j(); + } + + @Override // b.i.a.c.e3.l + @Nullable + public Uri n() { + return this.a.n(); + } + + /* JADX WARNING: Removed duplicated region for block: B:23:0x0073 */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x0078 A[RETURN] */ + @Override // b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) throws IOException { + long j; + if (this.e == 0) { + boolean z2 = true; + if (this.a.read(this.d, 0, 1) != -1) { + int i3 = (this.d[0] & 255) << 4; + if (i3 != 0) { + byte[] bArr2 = new byte[i3]; + int i4 = i3; + int i5 = 0; + while (true) { + if (i4 <= 0) { + while (i3 > 0) { + int i6 = i3 - 1; + if (bArr2[i6] != 0) { + break; + } + i3 = i6; + } + if (i3 > 0) { + a aVar = this.c; + x xVar = new x(bArr2, i3); + e0.a aVar2 = (e0.a) aVar; + if (!aVar2.n) { + j = aVar2.j; + } else { + e0 e0Var = e0.this; + Map map = e0.j; + j = Math.max(e0Var.v(), aVar2.j); + } + int a2 = xVar.a(); + w wVar = aVar2.m; + Objects.requireNonNull(wVar); + wVar.c(xVar, a2); + wVar.d(j, 1, a2, 0, null); + aVar2.n = true; + } + } else { + int read = this.a.read(bArr2, i5, i4); + if (read == -1) { + break; + } + i5 += read; + i4 -= read; + } + } + } + if (z2) { + return -1; + } + this.e = this.f818b; + } + z2 = false; + if (z2) { + } + } + int read2 = this.a.read(bArr, i, Math.min(this.e, i2)); + if (read2 != -1) { + this.e -= read2; + } + return read2; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/t.java b/app/src/main/java/b/i/a/c/a3/t.java new file mode 100644 index 0000000000..ec143b4f18 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/t.java @@ -0,0 +1,24 @@ +package b.i.a.c.a3; + +import android.net.Uri; +import b.i.a.c.e3.n; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.concurrent.atomic.AtomicLong; +/* compiled from: LoadEventInfo */ +public final class t { + public static final AtomicLong a = new AtomicLong(); + + /* renamed from: b reason: collision with root package name */ + public final Map> f819b; + + public t(long j, n nVar, long j2) { + Uri uri = nVar.a; + this.f819b = Collections.emptyMap(); + } + + public t(long j, n nVar, Uri uri, Map> map, long j2, long j3, long j4) { + this.f819b = map; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/u.java b/app/src/main/java/b/i/a/c/a3/u.java new file mode 100644 index 0000000000..a095abba03 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/u.java @@ -0,0 +1,172 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.x; +import b.i.a.c.c3.j; +import b.i.a.c.e3.o; +import b.i.a.c.f3.e0; +import b.i.a.c.j2; +import java.io.IOException; +import java.util.Objects; +/* compiled from: MaskingMediaPeriod */ +public final class u implements x, x.a { + public final a0.a j; + public final long k; + public final o l; + public a0 m; + public x n; + @Nullable + public x.a o; + public long p = -9223372036854775807L; + + public u(a0.a aVar, o oVar, long j) { + this.j = aVar; + this.l = oVar; + this.k = j; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.c.a3.j0] */ + @Override // b.i.a.c.a3.j0.a + public void a(x xVar) { + x.a aVar = this.o; + int i = e0.a; + aVar.a(this); + } + + @Override // b.i.a.c.a3.x.a + public void b(x xVar) { + x.a aVar = this.o; + int i = e0.a; + aVar.b(this); + } + + @Override // b.i.a.c.a3.x + public long c() { + x xVar = this.n; + int i = e0.a; + return xVar.c(); + } + + public void d(a0.a aVar) { + long j = this.k; + long j2 = this.p; + if (j2 != -9223372036854775807L) { + j = j2; + } + a0 a0Var = this.m; + Objects.requireNonNull(a0Var); + x n = a0Var.n(aVar, this.l, j); + this.n = n; + if (this.o != null) { + n.l(this, j); + } + } + + @Override // b.i.a.c.a3.x + public void e() throws IOException { + try { + x xVar = this.n; + if (xVar != null) { + xVar.e(); + return; + } + a0 a0Var = this.m; + if (a0Var != null) { + a0Var.h(); + } + } catch (IOException e) { + throw e; + } + } + + @Override // b.i.a.c.a3.x + public long f(long j) { + x xVar = this.n; + int i = e0.a; + return xVar.f(j); + } + + @Override // b.i.a.c.a3.x + public boolean g(long j) { + x xVar = this.n; + return xVar != null && xVar.g(j); + } + + @Override // b.i.a.c.a3.x + public boolean h() { + x xVar = this.n; + return xVar != null && xVar.h(); + } + + @Override // b.i.a.c.a3.x + public long i(long j, j2 j2Var) { + x xVar = this.n; + int i = e0.a; + return xVar.i(j, j2Var); + } + + @Override // b.i.a.c.a3.x + public long k() { + x xVar = this.n; + int i = e0.a; + return xVar.k(); + } + + @Override // b.i.a.c.a3.x + public void l(x.a aVar, long j) { + this.o = aVar; + x xVar = this.n; + if (xVar != null) { + long j2 = this.k; + long j3 = this.p; + if (j3 != -9223372036854775807L) { + j2 = j3; + } + xVar.l(this, j2); + } + } + + @Override // b.i.a.c.a3.x + public long m(j[] jVarArr, boolean[] zArr, i0[] i0VarArr, boolean[] zArr2, long j) { + long j2; + long j3 = this.p; + if (j3 == -9223372036854775807L || j != this.k) { + j2 = j; + } else { + this.p = -9223372036854775807L; + j2 = j3; + } + x xVar = this.n; + int i = e0.a; + return xVar.m(jVarArr, zArr, i0VarArr, zArr2, j2); + } + + @Override // b.i.a.c.a3.x + public o0 n() { + x xVar = this.n; + int i = e0.a; + return xVar.n(); + } + + @Override // b.i.a.c.a3.x + public long q() { + x xVar = this.n; + int i = e0.a; + return xVar.q(); + } + + @Override // b.i.a.c.a3.x + public void r(long j, boolean z2) { + x xVar = this.n; + int i = e0.a; + xVar.r(j, z2); + } + + @Override // b.i.a.c.a3.x + public void s(long j) { + x xVar = this.n; + int i = e0.a; + xVar.s(j); + } +} diff --git a/app/src/main/java/b/i/a/c/a3/v.java b/app/src/main/java/b/i/a/c/a3/v.java new file mode 100644 index 0000000000..6012ffb9b9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/v.java @@ -0,0 +1,217 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.c.a.a0.d; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.o; +import b.i.a.c.a3.p0.c; +import b.i.a.c.e3.a0; +import b.i.a.c.f3.e0; +import b.i.a.c.o1; +import b.i.a.c.o2; +import java.util.Objects; +import org.checkerframework.checker.nullness.qual.RequiresNonNull; +/* compiled from: MaskingMediaSource */ +public final class v extends o { + public final a0 j; + public final boolean k; + public final o2.c l; + public final o2.b m; + public a n; + @Nullable + public u o; + public boolean p; + public boolean q; + public boolean r; + + /* compiled from: MaskingMediaSource */ + public static final class a extends r { + public static final Object l = new Object(); + @Nullable + public final Object m; + @Nullable + public final Object n; + + public a(o2 o2Var, @Nullable Object obj, @Nullable Object obj2) { + super(o2Var); + this.m = obj; + this.n = obj2; + } + + @Override // b.i.a.c.a3.r, b.i.a.c.o2 + public int b(Object obj) { + Object obj2; + o2 o2Var = this.k; + if (l.equals(obj) && (obj2 = this.n) != null) { + obj = obj2; + } + return o2Var.b(obj); + } + + @Override // b.i.a.c.o2 + public o2.b g(int i, o2.b bVar, boolean z2) { + this.k.g(i, bVar, z2); + if (e0.a(bVar.k, this.n) && z2) { + bVar.k = l; + } + return bVar; + } + + @Override // b.i.a.c.a3.r, b.i.a.c.o2 + public Object m(int i) { + Object m = this.k.m(i); + return e0.a(m, this.n) ? l : m; + } + + @Override // b.i.a.c.o2 + public o2.c o(int i, o2.c cVar, long j) { + this.k.o(i, cVar, j); + if (e0.a(cVar.n, this.m)) { + cVar.n = o2.c.j; + } + return cVar; + } + } + + /* compiled from: MaskingMediaSource */ + @VisibleForTesting + public static final class b extends o2 { + public final o1 k; + + public b(o1 o1Var) { + this.k = o1Var; + } + + @Override // b.i.a.c.o2 + public int b(Object obj) { + return obj == a.l ? 0 : -1; + } + + @Override // b.i.a.c.o2 + public o2.b g(int i, o2.b bVar, boolean z2) { + Object obj = null; + Integer num = z2 ? 0 : null; + if (z2) { + obj = a.l; + } + bVar.f(num, obj, 0, -9223372036854775807L, 0, c.j, true); + return bVar; + } + + @Override // b.i.a.c.o2 + public int i() { + return 1; + } + + @Override // b.i.a.c.o2 + public Object m(int i) { + return a.l; + } + + @Override // b.i.a.c.o2 + public o2.c o(int i, o2.c cVar, long j) { + cVar.e(o2.c.j, this.k, null, -9223372036854775807L, -9223372036854775807L, -9223372036854775807L, false, true, null, 0, -9223372036854775807L, 0, 0, 0); + cVar.f1030y = true; + return cVar; + } + + @Override // b.i.a.c.o2 + public int p() { + return 1; + } + } + + public v(a0 a0Var, boolean z2) { + this.j = a0Var; + this.k = z2 && a0Var.i(); + this.l = new o2.c(); + this.m = new o2.b(); + o2 k = a0Var.k(); + if (k != null) { + this.n = new a(k, null, null); + this.r = true; + return; + } + this.n = new a(new b(a0Var.e()), o2.c.j, a.l); + } + + @Override // b.i.a.c.a3.a0 + public o1 e() { + return this.j.e(); + } + + @Override // b.i.a.c.a3.a0 + public void h() { + } + + @Override // b.i.a.c.a3.a0 + public void j(x xVar) { + u uVar = (u) xVar; + if (uVar.n != null) { + a0 a0Var = uVar.m; + Objects.requireNonNull(a0Var); + a0Var.j(uVar.n); + } + if (xVar == this.o) { + this.o = null; + } + } + + @Override // b.i.a.c.a3.l + public void q(@Nullable a0 a0Var) { + this.i = a0Var; + this.h = e0.j(); + if (!this.k) { + this.p = true; + t(null, this.j); + } + } + + @Override // b.i.a.c.a3.l + public void s() { + this.q = false; + this.p = false; + for (o.b bVar : this.g.values()) { + bVar.a.a(bVar.f817b); + bVar.a.c(bVar.c); + bVar.a.g(bVar.c); + } + this.g.clear(); + } + + /* renamed from: u */ + public u n(a0.a aVar, b.i.a.c.e3.o oVar, long j) { + u uVar = new u(aVar, oVar, j); + a0 a0Var = this.j; + d.D(uVar.m == null); + uVar.m = a0Var; + if (this.q) { + Object obj = aVar.a; + if (this.n.n != null && obj.equals(a.l)) { + obj = this.n.n; + } + uVar.d(aVar.b(obj)); + } else { + this.o = uVar; + if (!this.p) { + this.p = true; + t(null, this.j); + } + } + return uVar; + } + + @RequiresNonNull({"unpreparedMaskingMediaPeriod"}) + public final void v(long j) { + u uVar = this.o; + int b2 = this.n.b(uVar.j.a); + if (b2 != -1) { + long j2 = this.n.f(b2, this.m).m; + if (j2 != -9223372036854775807L && j >= j2) { + j = Math.max(0L, j2 - 1); + } + uVar.p = j; + } + } +} diff --git a/app/src/main/java/b/i/a/c/a3/w.java b/app/src/main/java/b/i/a/c/a3/w.java new file mode 100644 index 0000000000..b166b183cb --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/w.java @@ -0,0 +1,28 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +import b.i.a.c.j1; +/* compiled from: MediaLoadData */ +public final class w { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f820b; + @Nullable + public final j1 c; + public final int d; + @Nullable + public final Object e; + public final long f; + public final long g; + + public w(int i, int i2, @Nullable j1 j1Var, int i3, @Nullable Object obj, long j, long j2) { + this.a = i; + this.f820b = i2; + this.c = j1Var; + this.d = i3; + this.e = obj; + this.f = j; + this.g = j2; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/x.java b/app/src/main/java/b/i/a/c/a3/x.java new file mode 100644 index 0000000000..997ae071c3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/x.java @@ -0,0 +1,40 @@ +package b.i.a.c.a3; + +import b.i.a.c.a3.j0; +import b.i.a.c.c3.j; +import b.i.a.c.j2; +import java.io.IOException; +/* compiled from: MediaPeriod */ +public interface x extends j0 { + + /* compiled from: MediaPeriod */ + public interface a extends j0.a { + void b(x xVar); + } + + long c(); + + void e() throws IOException; + + long f(long j); + + boolean g(long j); + + boolean h(); + + long i(long j, j2 j2Var); + + long k(); + + void l(a aVar, long j); + + long m(j[] jVarArr, boolean[] zArr, i0[] i0VarArr, boolean[] zArr2, long j); + + o0 n(); + + long q(); + + void r(long j, boolean z2); + + void s(long j); +} diff --git a/app/src/main/java/b/i/a/c/a3/y.java b/app/src/main/java/b/i/a/c/a3/y.java new file mode 100644 index 0000000000..a6f72efff5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/y.java @@ -0,0 +1,72 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +/* compiled from: MediaPeriodId */ +public class y { + public final Object a; + + /* renamed from: b reason: collision with root package name */ + public final int f821b; + public final int c; + public final long d; + public final int e; + + public y(y yVar) { + this.a = yVar.a; + this.f821b = yVar.f821b; + this.c = yVar.c; + this.d = yVar.d; + this.e = yVar.e; + } + + public y(Object obj) { + this.a = obj; + this.f821b = -1; + this.c = -1; + this.d = -1; + this.e = -1; + } + + public y(Object obj, int i, int i2, long j) { + this.a = obj; + this.f821b = i; + this.c = i2; + this.d = j; + this.e = -1; + } + + public y(Object obj, int i, int i2, long j, int i3) { + this.a = obj; + this.f821b = i; + this.c = i2; + this.d = j; + this.e = i3; + } + + public y(Object obj, long j, int i) { + this.a = obj; + this.f821b = -1; + this.c = -1; + this.d = j; + this.e = i; + } + + public boolean a() { + return this.f821b != -1; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof y)) { + return false; + } + y yVar = (y) obj; + return this.a.equals(yVar.a) && this.f821b == yVar.f821b && this.c == yVar.c && this.d == yVar.d && this.e == yVar.e; + } + + public int hashCode() { + return ((((((((this.a.hashCode() + 527) * 31) + this.f821b) * 31) + this.c) * 31) + ((int) this.d)) * 31) + this.e; + } +} diff --git a/app/src/main/java/b/i/a/c/a3/z.java b/app/src/main/java/b/i/a/c/a3/z.java new file mode 100644 index 0000000000..7e996b18a4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/a3/z.java @@ -0,0 +1,15 @@ +package b.i.a.c.a3; + +import androidx.annotation.Nullable; +import b.i.a.c.o2; +/* compiled from: MediaSource */ +public final /* synthetic */ class z { + @Nullable + public static o2 a(a0 a0Var) { + return null; + } + + public static boolean b(a0 a0Var) { + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/b.java b/app/src/main/java/b/i/a/c/b.java new file mode 100644 index 0000000000..bf6c3d235e --- /dev/null +++ b/app/src/main/java/b/i/a/c/b.java @@ -0,0 +1,13 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class b implements p.a { + public static final /* synthetic */ b a = new b(); + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).a(); + } +} diff --git a/app/src/main/java/b/i/a/c/b0.java b/app/src/main/java/b/i/a/c/b0.java new file mode 100644 index 0000000000..92cd2a9a50 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b0.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import androidx.core.view.PointerIconCompat; +import b.i.a.c.f3.p; +import b.i.a.c.y1; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.ExoTimeoutException; +/* compiled from: lambda */ +public final /* synthetic */ class b0 implements p.a { + public static final /* synthetic */ b0 a = new b0(); + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + int i = f1.f944b; + ((y1.c) obj).s(ExoPlaybackException.b(new ExoTimeoutException(1), PointerIconCompat.TYPE_HELP)); + } +} diff --git a/app/src/main/java/b/i/a/c/b1.java b/app/src/main/java/b/i/a/c/b1.java new file mode 100644 index 0000000000..cf8c6284cf --- /dev/null +++ b/app/src/main/java/b/i/a/c/b1.java @@ -0,0 +1,88 @@ +package b.i.a.c; + +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.os.Handler; +import android.provider.Settings; +import b.i.a.c.b3.l; +import b.i.a.c.b3.m; +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +import b.i.a.c.t2.p; +import b.i.a.c.t2.z; +import b.i.a.c.y2.k; +import b.i.a.c.y2.r; +import b.i.a.c.y2.v; +import b.i.a.c.z2.e; +import b.i.a.c.z2.f; +import com.google.android.exoplayer2.audio.AudioProcessor; +import com.google.android.exoplayer2.audio.DefaultAudioSink; +import java.util.ArrayList; +/* compiled from: DefaultRenderersFactory */ +public class b1 implements i2 { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final r f822b = new r(); + public v c; + + public b1(Context context) { + this.a = context; + int i = v.a; + this.c = k.f1291b; + } + + /* JADX WARNING: Code restructure failed: missing block: B:22:0x007b, code lost: + if (r5 != false) goto L_0x007d; + */ + /* JADX WARNING: Removed duplicated region for block: B:15:0x0063 */ + @Override // b.i.a.c.i2 + public f2[] a(Handler handler, x xVar, b.i.a.c.t2.r rVar, l lVar, e eVar) { + boolean z2; + p pVar; + ArrayList arrayList = new ArrayList(); + arrayList.add(new b.i.a.c.g3.r(this.a, this.f822b, this.c, 5000, false, handler, xVar, 50)); + Context context = this.a; + p pVar2 = p.a; + Intent registerReceiver = context.registerReceiver(null, new IntentFilter("android.media.action.HDMI_AUDIO_PLUG")); + int i = e0.a; + boolean z3 = true; + if (i >= 17) { + String str = e0.c; + if ("Amazon".equals(str) || "Xiaomi".equals(str)) { + z2 = true; + if (z2 || Settings.Global.getInt(context.getContentResolver(), "external_surround_sound_enabled", 0) != 1) { + if (i >= 29) { + if (!e0.A(context)) { + if (i < 23 || !context.getPackageManager().hasSystemFeature("android.hardware.type.automotive")) { + z3 = false; + } + } + pVar = new p(p.a.a(), 8); + } + pVar = (registerReceiver != null || registerReceiver.getIntExtra("android.media.extra.AUDIO_PLUG_STATE", 0) == 0) ? p.a : new p(registerReceiver.getIntArrayExtra("android.media.extra.ENCODINGS"), registerReceiver.getIntExtra("android.media.extra.MAX_CHANNEL_COUNT", 8)); + } else { + pVar = p.f1111b; + } + arrayList.add(new z(this.a, this.f822b, this.c, false, handler, rVar, new DefaultAudioSink(pVar, new DefaultAudioSink.d(new AudioProcessor[0]), false, false, 0))); + arrayList.add(new m(lVar, handler.getLooper())); + arrayList.add(new f(eVar, handler.getLooper())); + arrayList.add(new b.i.a.c.g3.z.e()); + return (f2[]) arrayList.toArray(new f2[0]); + } + } + z2 = false; + if (z2) { + } + if (i >= 29) { + } + if (registerReceiver != null) { + } + arrayList.add(new z(this.a, this.f822b, this.c, false, handler, rVar, new DefaultAudioSink(pVar, new DefaultAudioSink.d(new AudioProcessor[0]), false, false, 0))); + arrayList.add(new m(lVar, handler.getLooper())); + arrayList.add(new f(eVar, handler.getLooper())); + arrayList.add(new b.i.a.c.g3.z.e()); + return (f2[]) arrayList.toArray(new f2[0]); + } +} diff --git a/app/src/main/java/b/i/a/c/b2.java b/app/src/main/java/b/i/a/c/b2.java new file mode 100644 index 0000000000..7aea76b895 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b2.java @@ -0,0 +1,104 @@ +package b.i.a.c; + +import android.os.Looper; +import android.util.Log; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.b0; +import b.i.a.c.f3.g; +import com.google.android.exoplayer2.ExoPlaybackException; +import java.util.concurrent.TimeoutException; +/* compiled from: PlayerMessage */ +public final class b2 { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final a f823b; + public final g c; + public final o2 d; + public int e; + @Nullable + public Object f; + public Looper g; + public int h; + public boolean i; + public boolean j; + public boolean k; + + /* compiled from: PlayerMessage */ + public interface a { + } + + /* compiled from: PlayerMessage */ + public interface b { + void r(int i, @Nullable Object obj) throws ExoPlaybackException; + } + + public b2(a aVar, b bVar, o2 o2Var, int i, g gVar, Looper looper) { + this.f823b = aVar; + this.a = bVar; + this.d = o2Var; + this.g = looper; + this.c = gVar; + this.h = i; + } + + public synchronized boolean a(long j) throws InterruptedException, TimeoutException { + boolean z2; + d.D(this.i); + d.D(this.g.getThread() != Thread.currentThread()); + long d = this.c.d() + j; + while (true) { + z2 = this.k; + if (z2 || j <= 0) { + break; + } + this.c.c(); + wait(j); + j = d - this.c.d(); + } + if (!z2) { + throw new TimeoutException("Message delivery timed out."); + } + return this.j; + } + + public synchronized boolean b() { + return false; + } + + public synchronized void c(boolean z2) { + this.j = z2 | this.j; + this.k = true; + notifyAll(); + } + + public b2 d() { + d.D(!this.i); + d.j(true); + this.i = true; + h1 h1Var = (h1) this.f823b; + synchronized (h1Var) { + if (!h1Var.I) { + if (h1Var.r.isAlive()) { + ((b0.b) h1Var.q.i(14, this)).b(); + } + } + Log.w("ExoPlayerImplInternal", "Ignoring messages sent after release."); + c(false); + } + return this; + } + + public b2 e(@Nullable Object obj) { + d.D(!this.i); + this.f = obj; + return this; + } + + public b2 f(int i) { + d.D(!this.i); + this.e = i; + return this; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/a.java b/app/src/main/java/b/i/a/c/b3/a.java new file mode 100644 index 0000000000..aca67ffe88 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/a.java @@ -0,0 +1,60 @@ +package b.i.a.c.b3; + +import android.graphics.Bitmap; +import android.os.Bundle; +import android.text.Layout; +import androidx.core.view.ViewCompat; +import b.i.a.c.w0; +/* compiled from: lambda */ +public final /* synthetic */ class a implements w0.a { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + int i; + float f; + float f2; + int i2; + int i3; + boolean z2; + boolean z3 = false; + CharSequence charSequence = bundle.getCharSequence(b.b(0)); + CharSequence charSequence2 = charSequence != null ? charSequence : null; + Layout.Alignment alignment = (Layout.Alignment) bundle.getSerializable(b.b(1)); + Layout.Alignment alignment2 = alignment != null ? alignment : null; + Layout.Alignment alignment3 = (Layout.Alignment) bundle.getSerializable(b.b(2)); + Layout.Alignment alignment4 = alignment3 != null ? alignment3 : null; + Bitmap bitmap = (Bitmap) bundle.getParcelable(b.b(3)); + Bitmap bitmap2 = bitmap != null ? bitmap : null; + if (!bundle.containsKey(b.b(4)) || !bundle.containsKey(b.b(5))) { + f = -3.4028235E38f; + i = Integer.MIN_VALUE; + } else { + f = bundle.getFloat(b.b(4)); + i = bundle.getInt(b.b(5)); + } + int i4 = bundle.containsKey(b.b(6)) ? bundle.getInt(b.b(6)) : Integer.MIN_VALUE; + float f3 = bundle.containsKey(b.b(7)) ? bundle.getFloat(b.b(7)) : -3.4028235E38f; + int i5 = bundle.containsKey(b.b(8)) ? bundle.getInt(b.b(8)) : Integer.MIN_VALUE; + if (!bundle.containsKey(b.b(10)) || !bundle.containsKey(b.b(9))) { + i2 = Integer.MIN_VALUE; + f2 = -3.4028235E38f; + } else { + f2 = bundle.getFloat(b.b(10)); + i2 = bundle.getInt(b.b(9)); + } + float f4 = bundle.containsKey(b.b(11)) ? bundle.getFloat(b.b(11)) : -3.4028235E38f; + float f5 = bundle.containsKey(b.b(12)) ? bundle.getFloat(b.b(12)) : -3.4028235E38f; + if (bundle.containsKey(b.b(13))) { + i3 = bundle.getInt(b.b(13)); + z2 = true; + } else { + z2 = false; + i3 = ViewCompat.MEASURED_STATE_MASK; + } + if (bundle.getBoolean(b.b(14), false)) { + z3 = z2; + } + return new b(charSequence2, alignment2, alignment4, bitmap2, f, i, i4, f3, i5, i2, f2, f4, f5, z3, i3, bundle.containsKey(b.b(15)) ? bundle.getInt(b.b(15)) : Integer.MIN_VALUE, bundle.containsKey(b.b(16)) ? bundle.getFloat(b.b(16)) : 0.0f, null); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/b.java b/app/src/main/java/b/i/a/c/b3/b.java new file mode 100644 index 0000000000..2dcdc82b18 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/b.java @@ -0,0 +1,176 @@ +package b.i.a.c.b3; + +import android.graphics.Bitmap; +import android.text.Layout; +import android.text.Spanned; +import android.text.SpannedString; +import android.text.TextUtils; +import androidx.annotation.ColorInt; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +import b.c.a.a0.d; +import b.i.a.c.w0; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: Cue */ +public final class b implements w0 { + public static final b j = new b("", null, null, null, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, ViewCompat.MEASURED_STATE_MASK, Integer.MIN_VALUE, 0.0f, null); + public static final w0.a k = a.a; + public final int A; + public final float B; + @Nullable + public final CharSequence l; + @Nullable + public final Layout.Alignment m; + @Nullable + public final Layout.Alignment n; + @Nullable + public final Bitmap o; + public final float p; + public final int q; + public final int r; + + /* renamed from: s reason: collision with root package name */ + public final float f824s; + public final int t; + public final float u; + public final float v; + public final boolean w; + + /* renamed from: x reason: collision with root package name */ + public final int f825x; + + /* renamed from: y reason: collision with root package name */ + public final int f826y; + + /* renamed from: z reason: collision with root package name */ + public final float f827z; + + /* compiled from: Cue */ + /* renamed from: b.i.a.c.b3.b$b reason: collision with other inner class name */ + public static final class C0084b { + @Nullable + public CharSequence a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public Bitmap f828b; + @Nullable + public Layout.Alignment c; + @Nullable + public Layout.Alignment d; + public float e; + public int f; + public int g; + public float h; + public int i; + public int j; + public float k; + public float l; + public float m; + public boolean n; + @ColorInt + public int o; + public int p; + public float q; + + public C0084b() { + this.a = null; + this.f828b = null; + this.c = null; + this.d = null; + this.e = -3.4028235E38f; + this.f = Integer.MIN_VALUE; + this.g = Integer.MIN_VALUE; + this.h = -3.4028235E38f; + this.i = Integer.MIN_VALUE; + this.j = Integer.MIN_VALUE; + this.k = -3.4028235E38f; + this.l = -3.4028235E38f; + this.m = -3.4028235E38f; + this.n = false; + this.o = ViewCompat.MEASURED_STATE_MASK; + this.p = Integer.MIN_VALUE; + } + + public C0084b(b bVar, a aVar) { + this.a = bVar.l; + this.f828b = bVar.o; + this.c = bVar.m; + this.d = bVar.n; + this.e = bVar.p; + this.f = bVar.q; + this.g = bVar.r; + this.h = bVar.f824s; + this.i = bVar.t; + this.j = bVar.f826y; + this.k = bVar.f827z; + this.l = bVar.u; + this.m = bVar.v; + this.n = bVar.w; + this.o = bVar.f825x; + this.p = bVar.A; + this.q = bVar.B; + } + + public b a() { + return new b(this.a, this.c, this.d, this.f828b, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.o, this.p, this.q, null); + } + } + + public b(CharSequence charSequence, Layout.Alignment alignment, Layout.Alignment alignment2, Bitmap bitmap, float f, int i, int i2, float f2, int i3, int i4, float f3, float f4, float f5, boolean z2, int i5, int i6, float f6, a aVar) { + if (charSequence == null) { + Objects.requireNonNull(bitmap); + } else { + d.j(bitmap == null); + } + if (charSequence instanceof Spanned) { + this.l = SpannedString.valueOf(charSequence); + } else if (charSequence != null) { + this.l = charSequence.toString(); + } else { + this.l = null; + } + this.m = alignment; + this.n = alignment2; + this.o = bitmap; + this.p = f; + this.q = i; + this.r = i2; + this.f824s = f2; + this.t = i3; + this.u = f4; + this.v = f5; + this.w = z2; + this.f825x = i5; + this.f826y = i4; + this.f827z = f3; + this.A = i6; + this.B = f6; + } + + public static String b(int i) { + return Integer.toString(i, 36); + } + + public C0084b a() { + return new C0084b(this, null); + } + + public boolean equals(@Nullable Object obj) { + Bitmap bitmap; + Bitmap bitmap2; + if (this == obj) { + return true; + } + if (obj == null || b.class != obj.getClass()) { + return false; + } + b bVar = (b) obj; + return TextUtils.equals(this.l, bVar.l) && this.m == bVar.m && this.n == bVar.n && ((bitmap = this.o) != null ? !((bitmap2 = bVar.o) == null || !bitmap.sameAs(bitmap2)) : bVar.o == null) && this.p == bVar.p && this.q == bVar.q && this.r == bVar.r && this.f824s == bVar.f824s && this.t == bVar.t && this.u == bVar.u && this.v == bVar.v && this.w == bVar.w && this.f825x == bVar.f825x && this.f826y == bVar.f826y && this.f827z == bVar.f827z && this.A == bVar.A && this.B == bVar.B; + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{this.l, this.m, this.n, this.o, Float.valueOf(this.p), Integer.valueOf(this.q), Integer.valueOf(this.r), Float.valueOf(this.f824s), Integer.valueOf(this.t), Float.valueOf(this.u), Float.valueOf(this.v), Boolean.valueOf(this.w), Integer.valueOf(this.f825x), Integer.valueOf(this.f826y), Float.valueOf(this.f827z), Integer.valueOf(this.A), Float.valueOf(this.B)}); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/c.java b/app/src/main/java/b/i/a/c/b3/c.java new file mode 100644 index 0000000000..6fdc1ba7ff --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/c.java @@ -0,0 +1,4 @@ +package b.i.a.c.b3; +/* compiled from: CueDecoder */ +public final class c { +} diff --git a/app/src/main/java/b/i/a/c/b3/d.java b/app/src/main/java/b/i/a/c/b3/d.java new file mode 100644 index 0000000000..92864734cf --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/d.java @@ -0,0 +1,158 @@ +package b.i.a.c.b3; + +import android.os.Bundle; +import android.os.Parcel; +import androidx.annotation.Nullable; +import b.i.a.c.f3.f; +import b.i.b.b.h0; +import b.i.b.b.p; +import com.google.android.exoplayer2.decoder.DecoderException; +import java.nio.ByteBuffer; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.Deque; +import java.util.List; +import java.util.Objects; +/* compiled from: ExoplayerCuesDecoder */ +public final class d implements h { + public final c a = new c(); + + /* renamed from: b reason: collision with root package name */ + public final j f829b = new j(); + public final Deque c = new ArrayDeque(); + public int d; + public boolean e; + + /* compiled from: ExoplayerCuesDecoder */ + public class a extends k { + public a() { + } + + @Override // b.i.a.c.v2.f + public void p() { + d dVar = d.this; + b.c.a.a0.d.D(dVar.c.size() < 2); + b.c.a.a0.d.j(!dVar.c.contains(this)); + q(); + dVar.c.addFirst(this); + } + } + + /* compiled from: ExoplayerCuesDecoder */ + public static final class b implements g { + public final long j; + public final p k; + + public b(long j, p pVar) { + this.j = j; + this.k = pVar; + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + return this.j > j ? 0 : -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + b.c.a.a0.d.j(i == 0); + return this.j; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + if (j >= this.j) { + return this.k; + } + b.i.b.b.a aVar = p.k; + return h0.l; + } + + @Override // b.i.a.c.b3.g + public int i() { + return 1; + } + } + + public d() { + for (int i = 0; i < 2; i++) { + this.c.addFirst(new a()); + } + this.d = 0; + } + + @Override // b.i.a.c.b3.h + public void a(long j) { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.c.v2.d + @Nullable + public k b() throws DecoderException { + b.c.a.a0.d.D(!this.e); + if (this.d != 2 || this.c.isEmpty()) { + return null; + } + k removeFirst = this.c.removeFirst(); + if (this.f829b.n()) { + removeFirst.j(4); + } else { + j jVar = this.f829b; + long j = jVar.n; + c cVar = this.a; + ByteBuffer byteBuffer = jVar.l; + Objects.requireNonNull(byteBuffer); + byte[] array = byteBuffer.array(); + Objects.requireNonNull(cVar); + Parcel obtain = Parcel.obtain(); + obtain.unmarshall(array, 0, array.length); + obtain.setDataPosition(0); + Bundle readBundle = obtain.readBundle(Bundle.class.getClassLoader()); + obtain.recycle(); + ArrayList parcelableArrayList = readBundle.getParcelableArrayList("c"); + Objects.requireNonNull(parcelableArrayList); + removeFirst.r(this.f829b.n, new b(j, f.a(b.k, parcelableArrayList)), 0); + } + this.f829b.p(); + this.d = 0; + return removeFirst; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.c.v2.d + @Nullable + public j c() throws DecoderException { + b.c.a.a0.d.D(!this.e); + if (this.d != 0) { + return null; + } + this.d = 1; + return this.f829b; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.c.v2.d + public void d(j jVar) throws DecoderException { + j jVar2 = jVar; + boolean z2 = true; + b.c.a.a0.d.D(!this.e); + b.c.a.a0.d.D(this.d == 1); + if (this.f829b != jVar2) { + z2 = false; + } + b.c.a.a0.d.j(z2); + this.d = 2; + } + + @Override // b.i.a.c.v2.d + public void flush() { + b.c.a.a0.d.D(!this.e); + this.f829b.p(); + this.d = 0; + } + + @Override // b.i.a.c.v2.d + public void release() { + this.e = true; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/e.java b/app/src/main/java/b/i/a/c/b3/e.java new file mode 100644 index 0000000000..83fb1a3675 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/e.java @@ -0,0 +1,22 @@ +package b.i.a.c.b3; +/* compiled from: SimpleSubtitleDecoder */ +public class e extends k { + public final /* synthetic */ f n; + + public e(f fVar) { + this.n = fVar; + } + + @Override // b.i.a.c.v2.f + public void p() { + f fVar = this.n; + synchronized (fVar.f1131b) { + q(); + O[] oArr = fVar.f; + int i = fVar.h; + fVar.h = i + 1; + oArr[i] = this; + fVar.g(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/f.java b/app/src/main/java/b/i/a/c/b3/f.java new file mode 100644 index 0000000000..305e579480 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/f.java @@ -0,0 +1,43 @@ +package b.i.a.c.b3; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.v2.h; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: SimpleSubtitleDecoder */ +public abstract class f extends h implements h { + public f(String str) { + super(new j[2], new k[2]); + d.D(this.g == this.e.length); + for (DecoderInputBuffer decoderInputBuffer : this.e) { + decoderInputBuffer.r(1024); + } + } + + @Override // b.i.a.c.b3.h + public void a(long j) { + } + + /* Return type fixed from 'com.google.android.exoplayer2.decoder.DecoderException' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [com.google.android.exoplayer2.decoder.DecoderInputBuffer, b.i.a.c.v2.f, boolean] */ + @Override // b.i.a.c.v2.h + @Nullable + public SubtitleDecoderException e(j jVar, k kVar, boolean z2) { + j jVar2 = jVar; + k kVar2 = kVar; + try { + ByteBuffer byteBuffer = jVar2.l; + Objects.requireNonNull(byteBuffer); + kVar2.r(jVar2.n, j(byteBuffer.array(), byteBuffer.limit(), z2), jVar2.r); + kVar2.j &= Integer.MAX_VALUE; + return null; + } catch (SubtitleDecoderException e) { + return e; + } + } + + public abstract g j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException; +} diff --git a/app/src/main/java/b/i/a/c/b3/g.java b/app/src/main/java/b/i/a/c/b3/g.java new file mode 100644 index 0000000000..012ad8c1cd --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/g.java @@ -0,0 +1,13 @@ +package b.i.a.c.b3; + +import java.util.List; +/* compiled from: Subtitle */ +public interface g { + int f(long j); + + long g(int i); + + List h(long j); + + int i(); +} diff --git a/app/src/main/java/b/i/a/c/b3/h.java b/app/src/main/java/b/i/a/c/b3/h.java new file mode 100644 index 0000000000..cca673e5c1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/h.java @@ -0,0 +1,8 @@ +package b.i.a.c.b3; + +import b.i.a.c.v2.d; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +/* compiled from: SubtitleDecoder */ +public interface h extends d { + void a(long j); +} diff --git a/app/src/main/java/b/i/a/c/b3/i.java b/app/src/main/java/b/i/a/c/b3/i.java new file mode 100644 index 0000000000..36fc9e7e77 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/i.java @@ -0,0 +1,9 @@ +package b.i.a.c.b3; +/* compiled from: SubtitleDecoderFactory */ +public interface i { + public static final i a = new a(); + + /* compiled from: SubtitleDecoderFactory */ + public class a implements i { + } +} diff --git a/app/src/main/java/b/i/a/c/b3/j.java b/app/src/main/java/b/i/a/c/b3/j.java new file mode 100644 index 0000000000..423d7713c3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/j.java @@ -0,0 +1,11 @@ +package b.i.a.c.b3; + +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +/* compiled from: SubtitleInputBuffer */ +public class j extends DecoderInputBuffer { + public long r; + + public j() { + super(1); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/k.java b/app/src/main/java/b/i/a/c/b3/k.java new file mode 100644 index 0000000000..429d7e4faa --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/k.java @@ -0,0 +1,55 @@ +package b.i.a.c.b3; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.c.v2.f; +import java.util.List; +import java.util.Objects; +/* compiled from: SubtitleOutputBuffer */ +public abstract class k extends f implements g { + @Nullable + public g l; + public long m; + + @Override // b.i.a.c.b3.g + public int f(long j) { + g gVar = this.l; + Objects.requireNonNull(gVar); + return gVar.f(j - this.m); + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + g gVar = this.l; + Objects.requireNonNull(gVar); + return gVar.g(i) + this.m; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + g gVar = this.l; + Objects.requireNonNull(gVar); + return gVar.h(j - this.m); + } + + @Override // b.i.a.c.b3.g + public int i() { + g gVar = this.l; + Objects.requireNonNull(gVar); + return gVar.i(); + } + + public void q() { + this.j = 0; + this.l = null; + } + + public void r(long j, g gVar, long j2) { + this.k = j; + this.l = gVar; + if (j2 != RecyclerView.FOREVER_NS) { + j = j2; + } + this.m = j; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/l.java b/app/src/main/java/b/i/a/c/b3/l.java new file mode 100644 index 0000000000..8a603e48d5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/l.java @@ -0,0 +1,7 @@ +package b.i.a.c.b3; + +import java.util.List; +/* compiled from: TextOutput */ +public interface l { + void e(List list); +} diff --git a/app/src/main/java/b/i/a/c/b3/m.java b/app/src/main/java/b/i/a/c/b3/m.java new file mode 100644 index 0000000000..78a3139c58 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/m.java @@ -0,0 +1,486 @@ +package b.i.a.c.b3; + +import android.os.Handler; +import android.os.Looper; +import android.os.Message; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.c.b3.i; +import b.i.a.c.b3.n.d; +import b.i.a.c.b3.o.a; +import b.i.a.c.b3.v.c; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.a.c.f3.t; +import b.i.a.c.j1; +import b.i.a.c.k1; +import b.i.a.c.v0; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: TextRenderer */ +public final class m extends v0 implements Handler.Callback { + public boolean A; + public int B; + @Nullable + public j1 C; + @Nullable + public h D; + @Nullable + public j E; + @Nullable + public k F; + @Nullable + public k G; + public int H; + public long I; + @Nullable + public final Handler u; + public final l v; + public final i w; + + /* renamed from: x reason: collision with root package name */ + public final k1 f830x; + + /* renamed from: y reason: collision with root package name */ + public boolean f831y; + + /* renamed from: z reason: collision with root package name */ + public boolean f832z; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public m(l lVar, @Nullable Looper looper) { + super(3); + Handler handler; + i iVar = i.a; + Objects.requireNonNull(lVar); + this.v = lVar; + if (looper == null) { + handler = null; + } else { + int i = e0.a; + handler = new Handler(looper, this); + } + this.u = handler; + this.w = iVar; + this.f830x = new k1(); + this.I = -9223372036854775807L; + } + + @Override // b.i.a.c.v0 + public void B() { + this.C = null; + this.I = -9223372036854775807L; + J(); + N(); + h hVar = this.D; + Objects.requireNonNull(hVar); + hVar.release(); + this.D = null; + this.B = 0; + } + + @Override // b.i.a.c.v0 + public void D(long j, boolean z2) { + J(); + this.f831y = false; + this.f832z = false; + this.I = -9223372036854775807L; + if (this.B != 0) { + O(); + return; + } + N(); + h hVar = this.D; + Objects.requireNonNull(hVar); + hVar.flush(); + } + + @Override // b.i.a.c.v0 + public void H(j1[] j1VarArr, long j, long j2) { + this.C = j1VarArr[0]; + if (this.D != null) { + this.B = 1; + } else { + M(); + } + } + + public final void J() { + List emptyList = Collections.emptyList(); + Handler handler = this.u; + if (handler != null) { + handler.obtainMessage(0, emptyList).sendToTarget(); + } else { + this.v.e(emptyList); + } + } + + public final long K() { + if (this.H == -1) { + return RecyclerView.FOREVER_NS; + } + Objects.requireNonNull(this.F); + int i = this.H; + g gVar = this.F.l; + Objects.requireNonNull(gVar); + if (i >= gVar.i()) { + return RecyclerView.FOREVER_NS; + } + k kVar = this.F; + int i2 = this.H; + g gVar2 = kVar.l; + Objects.requireNonNull(gVar2); + return gVar2.g(i2) + kVar.m; + } + + public final void L(SubtitleDecoderException subtitleDecoderException) { + String valueOf = String.valueOf(this.C); + StringBuilder sb = new StringBuilder(valueOf.length() + 39); + sb.append("Subtitle decoding failed. streamFormat="); + sb.append(valueOf); + q.b("TextRenderer", sb.toString(), subtitleDecoderException); + J(); + O(); + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:36:0x0099, code lost: + if (r1.equals("application/pgs") == false) goto L_0x001b; + */ + public final void M() { + h hVar; + char c = 1; + this.A = true; + i iVar = this.w; + j1 j1Var = this.C; + Objects.requireNonNull(j1Var); + Objects.requireNonNull((i.a) iVar); + String str = j1Var.w; + if (str != null) { + switch (str.hashCode()) { + case -1351681404: + if (str.equals("application/dvbsubs")) { + c = 0; + break; + } + c = 65535; + break; + case -1248334819: + break; + case -1026075066: + if (str.equals("application/x-mp4-vtt")) { + c = 2; + break; + } + c = 65535; + break; + case -1004728940: + if (str.equals("text/vtt")) { + c = 3; + break; + } + c = 65535; + break; + case 691401887: + if (str.equals("application/x-quicktime-tx3g")) { + c = 4; + break; + } + c = 65535; + break; + case 822864842: + if (str.equals("text/x-ssa")) { + c = 5; + break; + } + c = 65535; + break; + case 930165504: + if (str.equals("application/x-mp4-cea-608")) { + c = 6; + break; + } + c = 65535; + break; + case 1201784583: + if (str.equals("text/x-exoplayer-cues")) { + c = 7; + break; + } + c = 65535; + break; + case 1566015601: + if (str.equals("application/cea-608")) { + c = '\b'; + break; + } + c = 65535; + break; + case 1566016562: + if (str.equals("application/cea-708")) { + c = '\t'; + break; + } + c = 65535; + break; + case 1668750253: + if (str.equals("application/x-subrip")) { + c = '\n'; + break; + } + c = 65535; + break; + case 1693976202: + if (str.equals("application/ttml+xml")) { + c = 11; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + switch (c) { + case 0: + hVar = new a(j1Var.f1005y); + this.D = hVar; + return; + case 1: + hVar = new b.i.a.c.b3.p.a(); + this.D = hVar; + return; + case 2: + hVar = new c(); + this.D = hVar; + return; + case 3: + hVar = new b.i.a.c.b3.v.i(); + this.D = hVar; + return; + case 4: + hVar = new b.i.a.c.b3.u.a(j1Var.f1005y); + this.D = hVar; + return; + case 5: + hVar = new b.i.a.c.b3.r.a(j1Var.f1005y); + this.D = hVar; + return; + case 6: + case '\b': + hVar = new b.i.a.c.b3.n.c(str, j1Var.O, 16000); + this.D = hVar; + return; + case 7: + hVar = new d(); + this.D = hVar; + return; + case '\t': + hVar = new d(j1Var.O, j1Var.f1005y); + this.D = hVar; + return; + case '\n': + hVar = new b.i.a.c.b3.s.a(); + this.D = hVar; + return; + case 11: + hVar = new b.i.a.c.b3.t.c(); + this.D = hVar; + return; + } + } + String valueOf = String.valueOf(str); + throw new IllegalArgumentException(valueOf.length() != 0 ? "Attempted to create decoder for unsupported MIME type: ".concat(valueOf) : new String("Attempted to create decoder for unsupported MIME type: ")); + } + + public final void N() { + this.E = null; + this.H = -1; + k kVar = this.F; + if (kVar != null) { + kVar.p(); + this.F = null; + } + k kVar2 = this.G; + if (kVar2 != null) { + kVar2.p(); + this.G = null; + } + } + + public final void O() { + N(); + h hVar = this.D; + Objects.requireNonNull(hVar); + hVar.release(); + this.D = null; + this.B = 0; + M(); + } + + @Override // b.i.a.c.g2 + public int a(j1 j1Var) { + Objects.requireNonNull((i.a) this.w); + String str = j1Var.w; + if (!("text/vtt".equals(str) || "text/x-ssa".equals(str) || "application/ttml+xml".equals(str) || "application/x-mp4-vtt".equals(str) || "application/x-subrip".equals(str) || "application/x-quicktime-tx3g".equals(str) || "application/cea-608".equals(str) || "application/x-mp4-cea-608".equals(str) || "application/cea-708".equals(str) || "application/dvbsubs".equals(str) || "application/pgs".equals(str) || "text/x-exoplayer-cues".equals(str))) { + return t.i(j1Var.w) ? 1 : 0; + } + return (j1Var.P == 0 ? 4 : 2) | 0 | 0; + } + + @Override // b.i.a.c.f2 + public boolean b() { + return this.f832z; + } + + @Override // b.i.a.c.f2 + public boolean d() { + return true; + } + + @Override // b.i.a.c.f2, b.i.a.c.g2 + public String getName() { + return "TextRenderer"; + } + + @Override // android.os.Handler.Callback + public boolean handleMessage(Message message) { + if (message.what == 0) { + this.v.e((List) message.obj); + return true; + } + throw new IllegalStateException(); + } + + @Override // b.i.a.c.f2 + public void q(long j, long j2) { + boolean z2; + if (this.f1126s) { + long j3 = this.I; + if (j3 != -9223372036854775807L && j >= j3) { + N(); + this.f832z = true; + } + } + if (!this.f832z) { + if (this.G == null) { + h hVar = this.D; + Objects.requireNonNull(hVar); + hVar.a(j); + try { + h hVar2 = this.D; + Objects.requireNonNull(hVar2); + this.G = hVar2.b(); + } catch (SubtitleDecoderException e) { + L(e); + return; + } + } + if (this.n == 2) { + if (this.F != null) { + long K = K(); + z2 = false; + while (K <= j) { + this.H++; + K = K(); + z2 = true; + } + } else { + z2 = false; + } + k kVar = this.G; + if (kVar != null) { + if (kVar.n()) { + if (!z2 && K() == RecyclerView.FOREVER_NS) { + if (this.B == 2) { + O(); + } else { + N(); + this.f832z = true; + } + } + } else if (kVar.k <= j) { + k kVar2 = this.F; + if (kVar2 != null) { + kVar2.p(); + } + g gVar = kVar.l; + Objects.requireNonNull(gVar); + this.H = gVar.f(j - kVar.m); + this.F = kVar; + this.G = null; + z2 = true; + } + } + if (z2) { + Objects.requireNonNull(this.F); + k kVar3 = this.F; + g gVar2 = kVar3.l; + Objects.requireNonNull(gVar2); + List h = gVar2.h(j - kVar3.m); + Handler handler = this.u; + if (handler != null) { + handler.obtainMessage(0, h).sendToTarget(); + } else { + this.v.e(h); + } + } + if (this.B != 2) { + while (!this.f831y) { + try { + j jVar = this.E; + if (jVar == null) { + h hVar3 = this.D; + Objects.requireNonNull(hVar3); + jVar = hVar3.c(); + if (jVar != null) { + this.E = jVar; + } else { + return; + } + } + if (this.B == 1) { + jVar.j = 4; + h hVar4 = this.D; + Objects.requireNonNull(hVar4); + hVar4.d(jVar); + this.E = null; + this.B = 2; + return; + } + int I = I(this.f830x, jVar, 0); + if (I == -4) { + if (jVar.n()) { + this.f831y = true; + this.A = false; + } else { + j1 j1Var = this.f830x.f1013b; + if (j1Var != null) { + jVar.r = j1Var.A; + jVar.s(); + this.A &= !jVar.o(); + } else { + return; + } + } + if (!this.A) { + h hVar5 = this.D; + Objects.requireNonNull(hVar5); + hVar5.d(jVar); + this.E = null; + } + } else if (I == -3) { + return; + } + } catch (SubtitleDecoderException e2) { + L(e2); + return; + } + } + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/n/a.java b/app/src/main/java/b/i/a/c/b3/n/a.java new file mode 100644 index 0000000000..02b381590d --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/n/a.java @@ -0,0 +1,13 @@ +package b.i.a.c.b3.n; + +import b.i.a.c.b3.n.d; +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Comparator { + public static final /* synthetic */ a j = new a(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + return Integer.compare(((d.a) obj2).f839b, ((d.a) obj).f839b); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/n/b.java b/app/src/main/java/b/i/a/c/b3/n/b.java new file mode 100644 index 0000000000..cfe04162fa --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/n/b.java @@ -0,0 +1,11 @@ +package b.i.a.c.b3.n; + +import b.i.a.c.v2.f; +/* compiled from: lambda */ +public final /* synthetic */ class b implements f.a { + public final /* synthetic */ e a; + + public /* synthetic */ b(e eVar) { + this.a = eVar; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/n/c.java b/app/src/main/java/b/i/a/c/b3/n/c.java new file mode 100644 index 0000000000..200aaefa77 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/n/c.java @@ -0,0 +1,608 @@ +package b.i.a.c.b3.n; + +import android.text.Layout; +import android.text.SpannableString; +import android.text.SpannableStringBuilder; +import android.text.style.ForegroundColorSpan; +import android.text.style.StyleSpan; +import android.text.style.UnderlineSpan; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.core.internal.view.SupportMenu; +import androidx.core.view.InputDeviceCompat; +import androidx.core.view.ViewCompat; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.c.b3.b; +import b.i.a.c.b3.g; +import b.i.a.c.b3.j; +import b.i.a.c.b3.k; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: Cea608Decoder */ +public final class c extends e { + public static final int[] g = {11, 1, 3, 12, 14, 5, 7, 9}; + public static final int[] h = {0, 4, 8, 12, 16, 20, 24, 28}; + public static final int[] i = {-1, -16711936, -16776961, -16711681, SupportMenu.CATEGORY_MASK, InputDeviceCompat.SOURCE_ANY, -65281}; + public static final int[] j = {32, 33, 34, 35, 36, 37, 38, 39, 40, 41, HideBottomViewOnScrollBehavior.ENTER_ANIMATION_DURATION, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 233, 93, 237, 243, 250, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 231, 247, 209, 241, 9632}; + public static final int[] k = {174, 176, 189, 191, 8482, 162, 163, 9834, 224, 32, 232, 226, 234, 238, 244, 251}; + public static final int[] l = {193, 201, 211, 218, 220, 252, 8216, 161, 42, 39, 8212, 169, 8480, 8226, 8220, 8221, 192, 194, 199, 200, 202, 203, 235, 206, 207, 239, 212, 217, 249, 219, 171, 187}; + public static final int[] m = {195, 227, 205, 204, 236, 210, 242, 213, 245, 123, 125, 92, 94, 95, 124, 126, 196, 228, 214, 246, 223, 165, 164, 9474, 197, 229, 216, 248, 9484, 9488, 9492, 9496}; + public static final boolean[] n = {false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false, false, true, true, false, true, false, false, true, false, true, true, false, true, false, false, true, true, false, false, true, false, true, true, false}; + public boolean A; + public byte B; + public byte C; + public int D = 0; + public boolean E; + public long F; + public final x o = new x(); + public final int p; + public final int q; + public final int r; + + /* renamed from: s reason: collision with root package name */ + public final long f833s; + public final ArrayList t = new ArrayList<>(); + public a u = new a(0, 4); + @Nullable + public List v; + @Nullable + public List w; + + /* renamed from: x reason: collision with root package name */ + public int f834x; + + /* renamed from: y reason: collision with root package name */ + public int f835y; + + /* renamed from: z reason: collision with root package name */ + public boolean f836z; + + /* compiled from: Cea608Decoder */ + public static final class a { + public final List a = new ArrayList(); + + /* renamed from: b reason: collision with root package name */ + public final List f837b = new ArrayList(); + public final StringBuilder c = new StringBuilder(); + public int d; + public int e; + public int f; + public int g; + public int h; + + /* compiled from: Cea608Decoder */ + /* renamed from: b.i.a.c.b3.n.c$a$a reason: collision with other inner class name */ + public static class C0085a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f838b; + public int c; + + public C0085a(int i, boolean z2, int i2) { + this.a = i; + this.f838b = z2; + this.c = i2; + } + } + + public a(int i, int i2) { + f(i); + this.h = i2; + } + + public void a(char c) { + if (this.c.length() < 32) { + this.c.append(c); + } + } + + public void b() { + int length = this.c.length(); + if (length > 0) { + this.c.delete(length - 1, length); + for (int size = this.a.size() - 1; size >= 0; size--) { + C0085a aVar = this.a.get(size); + int i = aVar.c; + if (i == length) { + aVar.c = i - 1; + } else { + return; + } + } + } + } + + @Nullable + public b c(int i) { + float f; + int i2 = this.e + this.f; + int i3 = 32 - i2; + SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(); + for (int i4 = 0; i4 < this.f837b.size(); i4++) { + SpannableString spannableString = this.f837b.get(i4); + int i5 = e0.a; + if (spannableString.length() > i3) { + spannableString = spannableString.subSequence(0, i3); + } + spannableStringBuilder.append(spannableString); + spannableStringBuilder.append('\n'); + } + SpannableString d = d(); + int i6 = e0.a; + int length = d.length(); + CharSequence charSequence = d; + if (length > i3) { + charSequence = d.subSequence(0, i3); + } + spannableStringBuilder.append(charSequence); + if (spannableStringBuilder.length() == 0) { + return null; + } + int length2 = i3 - spannableStringBuilder.length(); + int i7 = i2 - length2; + int i8 = i != Integer.MIN_VALUE ? i : (this.g != 2 || (Math.abs(i7) >= 3 && length2 >= 0)) ? (this.g != 2 || i7 <= 0) ? 0 : 2 : 1; + if (i8 != 1) { + if (i8 == 2) { + i2 = 32 - length2; + } + f = ((((float) i2) / 32.0f) * 0.8f) + 0.1f; + } else { + f = 0.5f; + } + int i9 = this.d; + if (i9 > 7) { + i9 = (i9 - 15) - 2; + } else if (this.g == 1) { + i9 -= this.h - 1; + } + return new b(spannableStringBuilder, Layout.Alignment.ALIGN_NORMAL, null, null, (float) i9, 1, Integer.MIN_VALUE, f, i8, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, ViewCompat.MEASURED_STATE_MASK, Integer.MIN_VALUE, 0.0f, null); + } + + public final SpannableString d() { + SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(this.c); + int length = spannableStringBuilder.length(); + int i = 0; + int i2 = -1; + int i3 = -1; + int i4 = 0; + int i5 = -1; + boolean z2 = false; + int i6 = -1; + while (i < this.a.size()) { + C0085a aVar = this.a.get(i); + boolean z3 = aVar.f838b; + int i7 = aVar.a; + if (i7 != 8) { + boolean z4 = i7 == 7; + if (i7 != 7) { + i6 = c.i[i7]; + } + z2 = z4; + } + int i8 = aVar.c; + i++; + if (i8 != (i < this.a.size() ? this.a.get(i).c : length)) { + if (i2 != -1 && !z3) { + spannableStringBuilder.setSpan(new UnderlineSpan(), i2, i8, 33); + i2 = -1; + } else if (i2 == -1 && z3) { + i2 = i8; + } + if (i3 != -1 && !z2) { + spannableStringBuilder.setSpan(new StyleSpan(2), i3, i8, 33); + i3 = -1; + } else if (i3 == -1 && z2) { + i3 = i8; + } + if (i6 != i5) { + if (i5 != -1) { + spannableStringBuilder.setSpan(new ForegroundColorSpan(i5), i4, i8, 33); + } + i4 = i8; + i5 = i6; + } + } + } + if (!(i2 == -1 || i2 == length)) { + spannableStringBuilder.setSpan(new UnderlineSpan(), i2, length, 33); + } + if (!(i3 == -1 || i3 == length)) { + spannableStringBuilder.setSpan(new StyleSpan(2), i3, length, 33); + } + if (!(i4 == length || i5 == -1)) { + spannableStringBuilder.setSpan(new ForegroundColorSpan(i5), i4, length, 33); + } + return new SpannableString(spannableStringBuilder); + } + + public boolean e() { + return this.a.isEmpty() && this.f837b.isEmpty() && this.c.length() == 0; + } + + public void f(int i) { + this.g = i; + this.a.clear(); + this.f837b.clear(); + this.c.setLength(0); + this.d = 15; + this.e = 0; + this.f = 0; + } + } + + public c(String str, int i2, long j2) { + this.f833s = j2 > 0 ? j2 * 1000 : -9223372036854775807L; + this.p = "application/x-mp4-cea-608".equals(str) ? 2 : 3; + if (i2 == 1) { + this.r = 0; + this.q = 0; + } else if (i2 == 2) { + this.r = 1; + this.q = 0; + } else if (i2 == 3) { + this.r = 0; + this.q = 1; + } else if (i2 != 4) { + Log.w("Cea608Decoder", "Invalid channel. Defaulting to CC1."); + this.r = 0; + this.q = 0; + } else { + this.r = 1; + this.q = 1; + } + l(0); + k(); + this.E = true; + this.F = -9223372036854775807L; + } + + @Override // b.i.a.c.b3.n.e + public g e() { + List list = this.v; + this.w = list; + Objects.requireNonNull(list); + return new f(list); + } + + /* JADX WARNING: Removed duplicated region for block: B:203:0x008f A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:213:0x0015 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x0069 */ + @Override // b.i.a.c.b3.n.e + public void f(j jVar) { + boolean z2; + boolean z3; + ByteBuffer byteBuffer = jVar.l; + Objects.requireNonNull(byteBuffer); + this.o.C(byteBuffer.array(), byteBuffer.limit()); + boolean z4 = false; + while (true) { + int a2 = this.o.a(); + int i2 = this.p; + if (a2 >= i2) { + byte t = i2 == 2 ? -4 : (byte) this.o.t(); + int t2 = this.o.t(); + int t3 = this.o.t(); + if ((t & 2) == 0 && (t & 1) == this.q) { + byte b2 = (byte) (t2 & 127); + byte b3 = (byte) (t3 & 127); + if (b2 != 0 || b3 != 0) { + boolean z5 = this.f836z; + if ((t & 4) == 4) { + boolean[] zArr = n; + if (zArr[t2] && zArr[t3]) { + z2 = true; + this.f836z = z2; + if (z2) { + if ((b2 & 240) == 16) { + if (this.A && this.B == b2 && this.C == b3) { + this.A = false; + z3 = true; + if (!z3) { + } + } else { + this.A = true; + this.B = b2; + this.C = b3; + z3 = false; + if (!z3) { + if (z2) { + if (1 <= b2 && b2 <= 15) { + this.E = false; + } else { + if ((b2 & 247) == 20) { + if (!(b3 == 32 || b3 == 47)) { + switch (b3) { + default: + switch (b3) { + case 42: + case 43: + this.E = false; + break; + } + case 37: + case 38: + case 39: + this.E = true; + break; + } + } + this.E = true; + } + } + if (this.E) { + int i3 = b2 & 224; + if (i3 == 0) { + this.D = (b2 >> 3) & 1; + } + if (this.D == this.r) { + if (i3 == 0) { + int i4 = b2 & 247; + if (i4 == 17 && (b3 & 240) == 48) { + this.u.a((char) k[b3 & 15]); + } else { + int i5 = b2 & 246; + if (i5 == 18 && (b3 & 224) == 32) { + this.u.b(); + this.u.a((char) ((b2 & 1) == 0 ? l[b3 & 31] : m[b3 & 31])); + } else { + if (i4 == 17 && (b3 & 240) == 32) { + this.u.a(' '); + boolean z6 = (b3 & 1) == 1; + a aVar = this.u; + aVar.a.add(new a.C0085a((b3 >> 1) & 7, z6, aVar.c.length())); + } else { + if ((b2 & 240) == 16 && (b3 & 192) == 64) { + int i6 = g[b2 & 7]; + if ((b3 & 32) != 0) { + i6++; + } + a aVar2 = this.u; + if (i6 != aVar2.d) { + if (this.f834x != 1 && !aVar2.e()) { + a aVar3 = new a(this.f834x, this.f835y); + this.u = aVar3; + this.t.add(aVar3); + } + this.u.d = i6; + } + boolean z7 = (b3 & 16) == 16; + boolean z8 = (b3 & 1) == 1; + int i7 = (b3 >> 1) & 7; + a aVar4 = this.u; + aVar4.a.add(new a.C0085a(z7 ? 8 : i7, z8, aVar4.c.length())); + if (z7) { + this.u.e = h[i7]; + } + } else { + if (i4 == 23 && b3 >= 33 && b3 <= 35) { + this.u.f = b3 - 32; + } else { + if (i5 == 20 && (b3 & 240) == 32) { + if (b3 == 32) { + l(2); + } else if (b3 != 41) { + switch (b3) { + case 37: + l(1); + m(2); + break; + case 38: + l(1); + m(3); + break; + case 39: + l(1); + m(4); + break; + default: + int i8 = this.f834x; + if (i8 != 0) { + if (b3 == 33) { + this.u.b(); + break; + } else { + switch (b3) { + case 44: + this.v = Collections.emptyList(); + int i9 = this.f834x; + if (i9 == 1 || i9 == 3) { + k(); + break; + } + case 45: + if (i8 == 1 && !this.u.e()) { + a aVar5 = this.u; + aVar5.f837b.add(aVar5.d()); + aVar5.c.setLength(0); + aVar5.a.clear(); + int min = Math.min(aVar5.h, aVar5.d); + while (aVar5.f837b.size() >= min) { + aVar5.f837b.remove(0); + } + break; + } + case 46: + k(); + break; + case 47: + this.v = j(); + k(); + break; + } + } + } + break; + } + } else { + l(3); + } + } + } + } + } + } + } + } else { + a aVar6 = this.u; + int[] iArr = j; + aVar6.a((char) iArr[(b2 & Byte.MAX_VALUE) - 32]); + if ((b3 & 224) != 0) { + this.u.a((char) iArr[(b3 & Byte.MAX_VALUE) - 32]); + } + } + } + } + } else if (z5) { + k(); + } + z4 = true; + } + } + } + } + this.A = false; + z3 = false; + if (!z3) { + } + } + } + z2 = false; + this.f836z = z2; + if (z2) { + } + this.A = false; + z3 = false; + if (!z3) { + } + } + } + } else if (z4) { + int i10 = this.f834x; + if (i10 == 1 || i10 == 3) { + this.v = j(); + this.F = this.e; + return; + } + return; + } else { + return; + } + } + } + + @Override // b.i.a.c.b3.n.e, b.i.a.c.v2.d + public void flush() { + super.flush(); + this.v = null; + this.w = null; + l(0); + m(4); + k(); + this.f836z = false; + this.A = false; + this.B = 0; + this.C = 0; + this.D = 0; + this.E = true; + this.F = -9223372036854775807L; + } + + @Override // b.i.a.c.b3.n.e + @Nullable + /* renamed from: g */ + public k b() throws SubtitleDecoderException { + k pollFirst; + k g2 = super.b(); + if (g2 != null) { + return g2; + } + long j2 = this.f833s; + boolean z2 = false; + if (j2 != -9223372036854775807L) { + long j3 = this.F; + if (j3 != -9223372036854775807L && this.e - j3 >= j2) { + z2 = true; + } + } + if (!z2 || (pollFirst = this.f846b.pollFirst()) == null) { + return null; + } + List emptyList = Collections.emptyList(); + this.v = emptyList; + this.F = -9223372036854775807L; + this.w = emptyList; + Objects.requireNonNull(emptyList); + pollFirst.r(this.e, new f(emptyList), RecyclerView.FOREVER_NS); + return pollFirst; + } + + @Override // b.i.a.c.b3.n.e + public boolean h() { + return this.v != this.w; + } + + public final List j() { + int size = this.t.size(); + ArrayList arrayList = new ArrayList(size); + int i2 = 2; + for (int i3 = 0; i3 < size; i3++) { + b c = this.t.get(i3).c(Integer.MIN_VALUE); + arrayList.add(c); + if (c != null) { + i2 = Math.min(i2, c.t); + } + } + ArrayList arrayList2 = new ArrayList(size); + for (int i4 = 0; i4 < size; i4++) { + b bVar = (b) arrayList.get(i4); + if (bVar != null) { + if (bVar.t != i2) { + bVar = this.t.get(i4).c(i2); + Objects.requireNonNull(bVar); + } + arrayList2.add(bVar); + } + } + return arrayList2; + } + + public final void k() { + this.u.f(this.f834x); + this.t.clear(); + this.t.add(this.u); + } + + public final void l(int i2) { + int i3 = this.f834x; + if (i3 != i2) { + this.f834x = i2; + if (i2 == 3) { + for (int i4 = 0; i4 < this.t.size(); i4++) { + this.t.get(i4).g = i2; + } + return; + } + k(); + if (i3 == 3 || i2 == 1 || i2 == 0) { + this.v = Collections.emptyList(); + } + } + } + + public final void m(int i2) { + this.f835y = i2; + this.u.h = i2; + } + + @Override // b.i.a.c.b3.n.e, b.i.a.c.v2.d + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/b3/n/d.java b/app/src/main/java/b/i/a/c/b3/n/d.java new file mode 100644 index 0000000000..90c3d9d54e --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/n/d.java @@ -0,0 +1,884 @@ +package b.i.a.c.b3.n; + +import android.graphics.Color; +import android.text.Layout; +import android.text.SpannableString; +import android.text.SpannableStringBuilder; +import android.text.style.BackgroundColorSpan; +import android.text.style.ForegroundColorSpan; +import android.text.style.StyleSpan; +import android.text.style.UnderlineSpan; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +import b.i.a.c.b3.g; +import b.i.a.c.b3.j; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import com.discord.utilities.font.FontUtils; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: Cea708Decoder */ +public final class d extends e { + public final x g = new x(); + public final w h = new w(); + public int i = -1; + public final int j; + public final b[] k; + public b l; + @Nullable + public List m; + @Nullable + public List n; + @Nullable + public c o; + public int p; + + /* compiled from: Cea708Decoder */ + public static final class a { + public final b.i.a.c.b3.b a; + + /* renamed from: b reason: collision with root package name */ + public final int f839b; + + public a(CharSequence charSequence, Layout.Alignment alignment, float f, int i, int i2, float f2, int i3, float f3, boolean z2, int i4, int i5) { + int i6; + boolean z3; + if (z2) { + i6 = i4; + z3 = true; + } else { + z3 = false; + i6 = ViewCompat.MEASURED_STATE_MASK; + } + this.a = new b.i.a.c.b3.b(charSequence, alignment, null, null, f, i, i2, f2, i3, Integer.MIN_VALUE, -3.4028235E38f, f3, -3.4028235E38f, z3, i6, Integer.MIN_VALUE, 0.0f, null); + this.f839b = i5; + } + } + + /* compiled from: Cea708Decoder */ + public static final class b { + public static final int a = d(2, 2, 2, 0); + + /* renamed from: b reason: collision with root package name */ + public static final int f840b; + public static final int c; + public static final int[] d = {0, 0, 0, 0, 0, 2, 0}; + public static final int[] e = {0, 0, 0, 0, 0, 0, 2}; + public static final int[] f = {3, 3, 3, 3, 3, 3, 1}; + public static final boolean[] g = {false, false, false, true, true, true, false}; + public static final int[] h; + public static final int[] i = {0, 1, 2, 3, 4, 3, 4}; + public static final int[] j = {0, 0, 0, 0, 0, 3, 3}; + public static final int[] k; + public int A; + public int B; + public int C; + public int D; + public int E; + public int F; + public int G; + public final List l = new ArrayList(); + public final SpannableStringBuilder m = new SpannableStringBuilder(); + public boolean n; + public boolean o; + public int p; + public boolean q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public int f841s; + public int t; + public int u; + public boolean v; + public int w; + + /* renamed from: x reason: collision with root package name */ + public int f842x; + + /* renamed from: y reason: collision with root package name */ + public int f843y; + + /* renamed from: z reason: collision with root package name */ + public int f844z; + + static { + int d2 = d(0, 0, 0, 0); + f840b = d2; + int d3 = d(0, 0, 0, 3); + c = d3; + h = new int[]{d2, d3, d2, d2, d3, d2, d2}; + k = new int[]{d2, d2, d2, d2, d2, d3, d3}; + } + + public b() { + f(); + } + + /* JADX WARNING: Removed duplicated region for block: B:11:0x0025 */ + /* JADX WARNING: Removed duplicated region for block: B:12:0x0028 */ + /* JADX WARNING: Removed duplicated region for block: B:14:0x002b */ + /* JADX WARNING: Removed duplicated region for block: B:15:0x002e */ + /* JADX WARNING: Removed duplicated region for block: B:17:0x0031 */ + public static int d(int i2, int i3, int i4, int i5) { + int i6; + int i7 = 0; + b.c.a.a0.d.t(i2, 0, 4); + b.c.a.a0.d.t(i3, 0, 4); + b.c.a.a0.d.t(i4, 0, 4); + b.c.a.a0.d.t(i5, 0, 4); + if (!(i5 == 0 || i5 == 1)) { + if (i5 == 2) { + i6 = 127; + } else if (i5 == 3) { + i6 = 0; + } + int i8 = i2 <= 1 ? 255 : 0; + int i9 = i3 <= 1 ? 255 : 0; + if (i4 > 1) { + i7 = 255; + } + return Color.argb(i6, i8, i9, i7); + } + i6 = 255; + if (i2 <= 1) { + } + if (i3 <= 1) { + } + if (i4 > 1) { + } + return Color.argb(i6, i8, i9, i7); + } + + public void a(char c2) { + if (c2 == '\n') { + this.l.add(b()); + this.m.clear(); + if (this.A != -1) { + this.A = 0; + } + if (this.B != -1) { + this.B = 0; + } + if (this.C != -1) { + this.C = 0; + } + if (this.E != -1) { + this.E = 0; + } + while (true) { + if ((this.v && this.l.size() >= this.u) || this.l.size() >= 15) { + this.l.remove(0); + } else { + return; + } + } + } else { + this.m.append(c2); + } + } + + public SpannableString b() { + SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(this.m); + int length = spannableStringBuilder.length(); + if (length > 0) { + if (this.A != -1) { + spannableStringBuilder.setSpan(new StyleSpan(2), this.A, length, 33); + } + if (this.B != -1) { + spannableStringBuilder.setSpan(new UnderlineSpan(), this.B, length, 33); + } + if (this.C != -1) { + spannableStringBuilder.setSpan(new ForegroundColorSpan(this.D), this.C, length, 33); + } + if (this.E != -1) { + spannableStringBuilder.setSpan(new BackgroundColorSpan(this.F), this.E, length, 33); + } + } + return new SpannableString(spannableStringBuilder); + } + + public void c() { + this.l.clear(); + this.m.clear(); + this.A = -1; + this.B = -1; + this.C = -1; + this.E = -1; + this.G = 0; + } + + public boolean e() { + return !this.n || (this.l.isEmpty() && this.m.length() == 0); + } + + public void f() { + c(); + this.n = false; + this.o = false; + this.p = 4; + this.q = false; + this.r = 0; + this.f841s = 0; + this.t = 0; + this.u = 15; + this.v = true; + this.w = 0; + this.f842x = 0; + this.f843y = 0; + int i2 = f840b; + this.f844z = i2; + this.D = a; + this.F = i2; + } + + public void g(boolean z2, boolean z3) { + if (this.A != -1) { + if (!z2) { + this.m.setSpan(new StyleSpan(2), this.A, this.m.length(), 33); + this.A = -1; + } + } else if (z2) { + this.A = this.m.length(); + } + if (this.B != -1) { + if (!z3) { + this.m.setSpan(new UnderlineSpan(), this.B, this.m.length(), 33); + this.B = -1; + } + } else if (z3) { + this.B = this.m.length(); + } + } + + public void h(int i2, int i3) { + if (!(this.C == -1 || this.D == i2)) { + this.m.setSpan(new ForegroundColorSpan(this.D), this.C, this.m.length(), 33); + } + if (i2 != a) { + this.C = this.m.length(); + this.D = i2; + } + if (!(this.E == -1 || this.F == i3)) { + this.m.setSpan(new BackgroundColorSpan(this.F), this.E, this.m.length(), 33); + } + if (i3 != f840b) { + this.E = this.m.length(); + this.F = i3; + } + } + } + + /* compiled from: Cea708Decoder */ + public static final class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f845b; + public final byte[] c; + public int d = 0; + + public c(int i, int i2) { + this.a = i; + this.f845b = i2; + this.c = new byte[((i2 * 2) - 1)]; + } + } + + public d(int i, @Nullable List list) { + this.j = i == -1 ? 1 : i; + if (!(list == null || (list.size() == 1 && list.get(0).length == 1 && list.get(0)[0] == 1))) { + } + this.k = new b[8]; + for (int i2 = 0; i2 < 8; i2++) { + this.k[i2] = new b(); + } + this.l = this.k[0]; + } + + @Override // b.i.a.c.b3.n.e + public g e() { + List list = this.m; + this.n = list; + Objects.requireNonNull(list); + return new f(list); + } + + @Override // b.i.a.c.b3.n.e + public void f(j jVar) { + ByteBuffer byteBuffer = jVar.l; + Objects.requireNonNull(byteBuffer); + this.g.C(byteBuffer.array(), byteBuffer.limit()); + while (this.g.a() >= 3) { + int t = this.g.t() & 7; + int i = t & 3; + boolean z2 = false; + boolean z3 = (t & 4) == 4; + byte t2 = (byte) this.g.t(); + byte t3 = (byte) this.g.t(); + if (i == 2 || i == 3) { + if (z3) { + if (i == 3) { + j(); + int i2 = (t2 & 192) >> 6; + int i3 = this.i; + if (!(i3 == -1 || i2 == (i3 + 1) % 4)) { + l(); + Log.w("Cea708Decoder", b.d.b.a.a.g(71, "Sequence number discontinuity. previous=", this.i, " current=", i2)); + } + this.i = i2; + int i4 = t2 & 63; + if (i4 == 0) { + i4 = 64; + } + c cVar = new c(i2, i4); + this.o = cVar; + byte[] bArr = cVar.c; + int i5 = cVar.d; + cVar.d = i5 + 1; + bArr[i5] = t3; + } else { + if (i == 2) { + z2 = true; + } + b.c.a.a0.d.j(z2); + c cVar2 = this.o; + if (cVar2 == null) { + Log.e("Cea708Decoder", "Encountered DTVCC_PACKET_DATA before DTVCC_PACKET_START"); + } else { + byte[] bArr2 = cVar2.c; + int i6 = cVar2.d; + int i7 = i6 + 1; + cVar2.d = i7; + bArr2[i6] = t2; + cVar2.d = i7 + 1; + bArr2[i7] = t3; + } + } + c cVar3 = this.o; + if (cVar3.d == (cVar3.f845b * 2) - 1) { + j(); + } + } + } + } + } + + @Override // b.i.a.c.b3.n.e, b.i.a.c.v2.d + public void flush() { + super.flush(); + this.m = null; + this.n = null; + this.p = 0; + this.l = this.k[0]; + l(); + this.o = null; + } + + @Override // b.i.a.c.b3.n.e + public boolean h() { + return this.m != this.n; + } + + public final void j() { + c cVar = this.o; + if (cVar != null) { + int i = cVar.d; + int i2 = (cVar.f845b * 2) - 1; + if (i != i2) { + int i3 = cVar.a; + StringBuilder O = b.d.b.a.a.O(115, "DtvCcPacket ended prematurely; size is ", i2, ", but current index is ", i); + O.append(" (sequence number "); + O.append(i3); + O.append(");"); + Log.d("Cea708Decoder", O.toString()); + } + w wVar = this.h; + c cVar2 = this.o; + wVar.j(cVar2.c, cVar2.d); + int i4 = 3; + int g = this.h.g(3); + int g2 = this.h.g(5); + int i5 = 7; + int i6 = 6; + if (g == 7) { + this.h.m(2); + g = this.h.g(6); + if (g < 7) { + b.d.b.a.a.d0(44, "Invalid extended service number: ", g, "Cea708Decoder"); + } + } + if (g2 == 0) { + if (g != 0) { + StringBuilder sb = new StringBuilder(59); + sb.append("serviceNumber is non-zero ("); + sb.append(g); + sb.append(") when blockSize is 0"); + Log.w("Cea708Decoder", sb.toString()); + } + } else if (g == this.j) { + boolean z2 = false; + while (this.h.b() > 0) { + int g3 = this.h.g(8); + if (g3 != 16) { + if (g3 <= 31) { + if (g3 != 0) { + if (g3 == i4) { + this.m = k(); + } else if (g3 != 8) { + switch (g3) { + case 12: + l(); + continue; + case 13: + this.l.a('\n'); + continue; + case 14: + break; + default: + if (g3 < 17 || g3 > 23) { + if (g3 < 24 || g3 > 31) { + b.d.b.a.a.d0(31, "Invalid C0 command: ", g3, "Cea708Decoder"); + break; + } else { + b.d.b.a.a.d0(54, "Currently unsupported COMMAND_P16 Command: ", g3, "Cea708Decoder"); + this.h.m(16); + break; + } + } else { + b.d.b.a.a.d0(55, "Currently unsupported COMMAND_EXT1 Command: ", g3, "Cea708Decoder"); + this.h.m(8); + continue; + } + } + } else { + b bVar = this.l; + int length = bVar.m.length(); + if (length > 0) { + bVar.m.delete(length - 1, length); + } + } + } + } else if (g3 <= 127) { + if (g3 == 127) { + this.l.a(9835); + } else { + this.l.a((char) (g3 & 255)); + } + } else if (g3 <= 159) { + switch (g3) { + case 128: + case 129: + case 130: + case 131: + case 132: + case 133: + case 134: + case 135: + int i7 = g3 - 128; + if (this.p != i7) { + this.p = i7; + this.l = this.k[i7]; + break; + } + break; + case 136: + for (int i8 = 1; i8 <= 8; i8++) { + if (this.h.f()) { + this.k[8 - i8].c(); + } + } + break; + case 137: + for (int i9 = 1; i9 <= 8; i9++) { + if (this.h.f()) { + this.k[8 - i9].o = true; + } + } + break; + case 138: + for (int i10 = 1; i10 <= 8; i10++) { + if (this.h.f()) { + this.k[8 - i10].o = false; + } + } + break; + case 139: + for (int i11 = 1; i11 <= 8; i11++) { + if (this.h.f()) { + b bVar2 = this.k[8 - i11]; + bVar2.o = !bVar2.o; + } + } + break; + case 140: + for (int i12 = 1; i12 <= 8; i12++) { + if (this.h.f()) { + this.k[8 - i12].f(); + } + } + break; + case 141: + this.h.m(8); + break; + case 142: + break; + case 143: + l(); + break; + case 144: + if (!this.l.n) { + this.h.m(16); + break; + } else { + this.h.g(4); + this.h.g(2); + this.h.g(2); + boolean f = this.h.f(); + boolean f2 = this.h.f(); + this.h.g(3); + this.h.g(3); + this.l.g(f, f2); + break; + } + case 145: + if (!this.l.n) { + this.h.m(24); + break; + } else { + int d = b.d(this.h.g(2), this.h.g(2), this.h.g(2), this.h.g(2)); + int d2 = b.d(this.h.g(2), this.h.g(2), this.h.g(2), this.h.g(2)); + this.h.m(2); + b.d(this.h.g(2), this.h.g(2), this.h.g(2), 0); + this.l.h(d, d2); + break; + } + case 146: + if (!this.l.n) { + this.h.m(16); + break; + } else { + this.h.m(4); + int g4 = this.h.g(4); + this.h.m(2); + this.h.g(6); + b bVar3 = this.l; + if (bVar3.G != g4) { + bVar3.a('\n'); + } + bVar3.G = g4; + break; + } + case 147: + case 148: + case 149: + case FontUtils.MAX_FONT_SCALING /* 150 */: + default: + Log.w("Cea708Decoder", b.d.b.a.a.f(31, "Invalid C1 command: ", g3)); + break; + case 151: + if (!this.l.n) { + this.h.m(32); + break; + } else { + int d3 = b.d(this.h.g(2), this.h.g(2), this.h.g(2), this.h.g(2)); + this.h.g(2); + b.d(this.h.g(2), this.h.g(2), this.h.g(2), 0); + this.h.f(); + this.h.f(); + this.h.g(2); + this.h.g(2); + int g5 = this.h.g(2); + this.h.m(8); + b bVar4 = this.l; + bVar4.f844z = d3; + bVar4.w = g5; + break; + } + case 152: + case 153: + case 154: + case 155: + case 156: + case 157: + case 158: + case 159: + int i13 = g3 - 152; + b bVar5 = this.k[i13]; + this.h.m(2); + boolean f3 = this.h.f(); + boolean f4 = this.h.f(); + this.h.f(); + int g6 = this.h.g(i4); + boolean f5 = this.h.f(); + int g7 = this.h.g(i5); + int g8 = this.h.g(8); + int g9 = this.h.g(4); + int g10 = this.h.g(4); + this.h.m(2); + this.h.g(i6); + this.h.m(2); + int g11 = this.h.g(i4); + int g12 = this.h.g(i4); + bVar5.n = true; + bVar5.o = f3; + bVar5.v = f4; + bVar5.p = g6; + bVar5.q = f5; + bVar5.r = g7; + bVar5.f841s = g8; + bVar5.t = g9; + int i14 = g10 + 1; + if (bVar5.u != i14) { + bVar5.u = i14; + while (true) { + if ((f4 && bVar5.l.size() >= bVar5.u) || bVar5.l.size() >= 15) { + bVar5.l.remove(0); + } + } + } + if (!(g11 == 0 || bVar5.f842x == g11)) { + bVar5.f842x = g11; + int i15 = g11 - 1; + int i16 = b.h[i15]; + boolean z3 = b.g[i15]; + int i17 = b.e[i15]; + int i18 = b.f[i15]; + int i19 = b.d[i15]; + bVar5.f844z = i16; + bVar5.w = i19; + } + if (!(g12 == 0 || bVar5.f843y == g12)) { + bVar5.f843y = g12; + int i20 = g12 - 1; + int i21 = b.j[i20]; + int i22 = b.i[i20]; + bVar5.g(false, false); + bVar5.h(b.a, b.k[i20]); + } + if (this.p != i13) { + this.p = i13; + this.l = this.k[i13]; + break; + } + break; + } + } else if (g3 <= 255) { + this.l.a((char) (g3 & 255)); + } else { + b.d.b.a.a.d0(33, "Invalid base command: ", g3, "Cea708Decoder"); + } + i4 = 3; + i5 = 7; + i6 = 6; + } else { + int g13 = this.h.g(8); + if (g13 <= 31) { + if (g13 > 7) { + if (g13 <= 15) { + this.h.m(8); + } else if (g13 <= 23) { + this.h.m(16); + } else if (g13 <= 31) { + this.h.m(24); + } + } + } else if (g13 <= 127) { + if (g13 == 32) { + this.l.a(' '); + } else if (g13 == 33) { + this.l.a(160); + } else if (g13 == 37) { + this.l.a(8230); + } else if (g13 == 42) { + this.l.a(352); + } else if (g13 == 44) { + this.l.a(338); + } else if (g13 == 63) { + this.l.a(376); + } else if (g13 == 57) { + this.l.a(8482); + } else if (g13 == 58) { + this.l.a(353); + } else if (g13 == 60) { + this.l.a(339); + } else if (g13 != 61) { + switch (g13) { + case 48: + this.l.a(9608); + break; + case 49: + this.l.a(8216); + break; + case 50: + this.l.a(8217); + break; + case 51: + this.l.a(8220); + break; + case 52: + this.l.a(8221); + break; + case 53: + this.l.a(8226); + break; + default: + switch (g13) { + case 118: + this.l.a(8539); + break; + case 119: + this.l.a(8540); + break; + case 120: + this.l.a(8541); + break; + case 121: + this.l.a(8542); + break; + case 122: + this.l.a(9474); + break; + case 123: + this.l.a(9488); + break; + case 124: + this.l.a(9492); + break; + case 125: + this.l.a(9472); + break; + case 126: + this.l.a(9496); + break; + case 127: + this.l.a(9484); + break; + default: + b.d.b.a.a.d0(33, "Invalid G2 character: ", g13, "Cea708Decoder"); + break; + } + } + } else { + this.l.a(8480); + } + } else if (g13 <= 159) { + if (g13 <= 135) { + this.h.m(32); + } else if (g13 <= 143) { + this.h.m(40); + } else if (g13 <= 159) { + this.h.m(2); + this.h.m(this.h.g(6) * 8); + } + } else if (g13 > 255) { + b.d.b.a.a.d0(37, "Invalid extended command: ", g13, "Cea708Decoder"); + } else if (g13 == 160) { + this.l.a(13252); + } else { + b.d.b.a.a.d0(33, "Invalid G3 character: ", g13, "Cea708Decoder"); + this.l.a('_'); + } + i4 = 3; + i5 = 7; + i6 = 6; + } + z2 = true; + i4 = 3; + i5 = 7; + i6 = 6; + } + if (z2) { + this.m = k(); + } + } + this.o = null; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:27:0x007d */ + /* JADX WARNING: Removed duplicated region for block: B:28:0x0088 */ + /* JADX WARNING: Removed duplicated region for block: B:31:0x00a9 */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x00ab */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x00b4 */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x00b7 */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x00c4 */ + /* JADX WARNING: Removed duplicated region for block: B:44:0x00c7 */ + public final List k() { + a aVar; + Layout.Alignment alignment; + float f; + float f2; + ArrayList arrayList = new ArrayList(); + for (int i = 0; i < 8; i++) { + if (!this.k[i].e()) { + b[] bVarArr = this.k; + if (bVarArr[i].o) { + b bVar = bVarArr[i]; + if (bVar.e()) { + aVar = null; + } else { + SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(); + for (int i2 = 0; i2 < bVar.l.size(); i2++) { + spannableStringBuilder.append((CharSequence) bVar.l.get(i2)); + spannableStringBuilder.append('\n'); + } + spannableStringBuilder.append((CharSequence) bVar.b()); + int i3 = bVar.w; + if (i3 != 0) { + if (i3 == 1) { + alignment = Layout.Alignment.ALIGN_OPPOSITE; + } else if (i3 == 2) { + alignment = Layout.Alignment.ALIGN_CENTER; + } else if (i3 != 3) { + throw new IllegalArgumentException(b.d.b.a.a.f(43, "Unexpected justification value: ", bVar.w)); + } + if (!bVar.q) { + f2 = ((float) bVar.f841s) / 99.0f; + f = ((float) bVar.r) / 99.0f; + } else { + f2 = ((float) bVar.f841s) / 209.0f; + f = ((float) bVar.r) / 74.0f; + } + float f3 = (f2 * 0.9f) + 0.05f; + float f4 = (f * 0.9f) + 0.05f; + int i4 = bVar.t; + int i5 = i4 / 3; + int i6 = i4 % 3; + aVar = new a(spannableStringBuilder, alignment, f4, 0, i5 != 0 ? 0 : i5 == 1 ? 1 : 2, f3, i6 != 0 ? 0 : i6 == 1 ? 1 : 2, -3.4028235E38f, bVar.f844z == b.f840b, bVar.f844z, bVar.p); + } + alignment = Layout.Alignment.ALIGN_NORMAL; + if (!bVar.q) { + } + float f3 = (f2 * 0.9f) + 0.05f; + float f4 = (f * 0.9f) + 0.05f; + int i4 = bVar.t; + int i5 = i4 / 3; + int i6 = i4 % 3; + aVar = new a(spannableStringBuilder, alignment, f4, 0, i5 != 0 ? 0 : i5 == 1 ? 1 : 2, f3, i6 != 0 ? 0 : i6 == 1 ? 1 : 2, -3.4028235E38f, bVar.f844z == b.f840b, bVar.f844z, bVar.p); + } + if (aVar != null) { + arrayList.add(aVar); + } + } else { + continue; + } + } + } + Collections.sort(arrayList, a.j); + ArrayList arrayList2 = new ArrayList(arrayList.size()); + for (int i7 = 0; i7 < arrayList.size(); i7++) { + arrayList2.add(((a) arrayList.get(i7)).a); + } + return Collections.unmodifiableList(arrayList2); + } + + public final void l() { + for (int i = 0; i < 8; i++) { + this.k[i].f(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/n/e.java b/app/src/main/java/b/i/a/c/b3/n/e.java new file mode 100644 index 0000000000..7491ab4916 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/n/e.java @@ -0,0 +1,186 @@ +package b.i.a.c.b3.n; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import b.i.a.c.b3.g; +import b.i.a.c.b3.h; +import b.i.a.c.b3.j; +import b.i.a.c.b3.k; +import b.i.a.c.f3.e0; +import b.i.a.c.v2.f; +import com.google.android.exoplayer2.decoder.DecoderException; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import java.util.ArrayDeque; +import java.util.Objects; +import java.util.PriorityQueue; +/* compiled from: CeaDecoder */ +public abstract class e implements h { + public final ArrayDeque a = new ArrayDeque<>(); + + /* renamed from: b reason: collision with root package name */ + public final ArrayDeque f846b; + public final PriorityQueue c; + @Nullable + public b d; + public long e; + public long f; + + /* compiled from: CeaDecoder */ + public static final class b extends j implements Comparable { + + /* renamed from: s reason: collision with root package name */ + public long f847s; + + public b() { + } + + public b(a aVar) { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public int compareTo(b bVar) { + b bVar2 = bVar; + if (n() == bVar2.n()) { + long j = this.n - bVar2.n; + if (j == 0) { + j = this.f847s - bVar2.f847s; + if (j == 0) { + return 0; + } + } + if (j > 0) { + return 1; + } + } else if (n()) { + return 1; + } + return -1; + } + } + + /* compiled from: CeaDecoder */ + public static final class c extends k { + public f.a n; + + public c(f.a aVar) { + this.n = aVar; + } + + @Override // b.i.a.c.v2.f + public final void p() { + e eVar = ((b) this.n).a; + Objects.requireNonNull(eVar); + q(); + eVar.f846b.add(this); + } + } + + public e() { + for (int i = 0; i < 10; i++) { + this.a.add(new b(null)); + } + this.f846b = new ArrayDeque<>(); + for (int i2 = 0; i2 < 2; i2++) { + this.f846b.add(new c(new b(this))); + } + this.c = new PriorityQueue<>(); + } + + @Override // b.i.a.c.b3.h + public void a(long j) { + this.e = j; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.c.v2.d + @Nullable + public j c() throws DecoderException { + d.D(this.d == null); + if (this.a.isEmpty()) { + return null; + } + b pollFirst = this.a.pollFirst(); + this.d = pollFirst; + return pollFirst; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.c.v2.d + public void d(j jVar) throws DecoderException { + j jVar2 = jVar; + d.j(jVar2 == this.d); + b bVar = (b) jVar2; + if (bVar.m()) { + i(bVar); + } else { + long j = this.f; + this.f = 1 + j; + bVar.f847s = j; + this.c.add(bVar); + } + this.d = null; + } + + public abstract g e(); + + public abstract void f(j jVar); + + @Override // b.i.a.c.v2.d + public void flush() { + this.f = 0; + this.e = 0; + while (!this.c.isEmpty()) { + int i = e0.a; + i(this.c.poll()); + } + b bVar = this.d; + if (bVar != null) { + i(bVar); + this.d = null; + } + } + + @Nullable + /* renamed from: g */ + public k b() throws SubtitleDecoderException { + if (this.f846b.isEmpty()) { + return null; + } + while (!this.c.isEmpty()) { + int i = e0.a; + if (this.c.peek().n > this.e) { + break; + } + b poll = this.c.poll(); + if (poll.n()) { + k pollFirst = this.f846b.pollFirst(); + pollFirst.j(4); + i(poll); + return pollFirst; + } + f(poll); + if (h()) { + g e = e(); + k pollFirst2 = this.f846b.pollFirst(); + pollFirst2.r(poll.n, e, RecyclerView.FOREVER_NS); + i(poll); + return pollFirst2; + } + i(poll); + } + return null; + } + + public abstract boolean h(); + + public final void i(b bVar) { + bVar.p(); + this.a.add(bVar); + } + + @Override // b.i.a.c.v2.d + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/b3/n/f.java b/app/src/main/java/b/i/a/c/b3/n/f.java new file mode 100644 index 0000000000..1ec3360788 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/n/f.java @@ -0,0 +1,36 @@ +package b.i.a.c.b3.n; + +import b.c.a.a0.d; +import b.i.a.c.b3.b; +import b.i.a.c.b3.g; +import java.util.Collections; +import java.util.List; +/* compiled from: CeaSubtitle */ +public final class f implements g { + public final List j; + + public f(List list) { + this.j = list; + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + return j < 0 ? 0 : -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + d.j(i == 0); + return 0; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + return j >= 0 ? this.j : Collections.emptyList(); + } + + @Override // b.i.a.c.b3.g + public int i() { + return 1; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/o/a.java b/app/src/main/java/b/i/a/c/b3/o/a.java new file mode 100644 index 0000000000..80b6dfd187 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/o/a.java @@ -0,0 +1,289 @@ +package b.i.a.c.b3.o; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.PorterDuff; +import android.util.Log; +import android.util.SparseArray; +import androidx.core.view.ViewCompat; +import b.i.a.c.b3.f; +import b.i.a.c.b3.g; +import b.i.a.c.b3.o.b; +import b.i.a.c.f3.w; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: DvbDecoder */ +public final class a extends f { + public final b n; + + public a(List list) { + super("DvbDecoder"); + byte[] bArr = list.get(0); + int length = bArr.length; + int i = 0 + 1; + int i2 = i + 1; + this.n = new b(((bArr[0] & 255) << 8) | (bArr[i] & 255), (bArr[i2 + 1] & 255) | ((bArr[i2] & 255) << 8)); + } + + @Override // b.i.a.c.b3.f + public g j(byte[] bArr, int i, boolean z2) { + c cVar; + c cVar2; + List list; + int i2; + c cVar3; + SparseArray sparseArray; + SparseArray sparseArray2; + b.f fVar; + int i3; + int i4; + int i5; + int i6; + int i7; + int i8; + if (z2) { + b.h hVar = this.n.i; + hVar.c.clear(); + hVar.d.clear(); + hVar.e.clear(); + hVar.f.clear(); + hVar.g.clear(); + hVar.h = null; + hVar.i = null; + } + b bVar = this.n; + Objects.requireNonNull(bVar); + w wVar = new w(bArr, i); + while (wVar.b() >= 48 && wVar.g(8) == 15) { + b.h hVar2 = bVar.i; + int g = wVar.g(8); + int i9 = 16; + int g2 = wVar.g(16); + int g3 = wVar.g(16); + int d = wVar.d() + g3; + if (g3 * 8 > wVar.b()) { + Log.w("DvbParser", "Data field length exceeds limit"); + wVar.m(wVar.b()); + } else { + switch (g) { + case 16: + if (g2 == hVar2.a) { + b.d dVar = hVar2.i; + int i10 = 8; + int g4 = wVar.g(8); + int g5 = wVar.g(4); + int g6 = wVar.g(2); + wVar.m(2); + int i11 = g3 - 2; + SparseArray sparseArray3 = new SparseArray(); + while (i11 > 0) { + int g7 = wVar.g(i10); + wVar.m(i10); + i11 -= 6; + sparseArray3.put(g7, new b.e(wVar.g(16), wVar.g(16))); + i10 = 8; + } + b.d dVar2 = new b.d(g4, g5, g6, sparseArray3); + if (g6 == 0) { + if (!(dVar == null || dVar.a == g5)) { + hVar2.i = dVar2; + break; + } + } else { + hVar2.i = dVar2; + hVar2.c.clear(); + hVar2.d.clear(); + hVar2.e.clear(); + break; + } + } + break; + case 17: + b.d dVar3 = hVar2.i; + if (g2 == hVar2.a && dVar3 != null) { + int g8 = wVar.g(8); + wVar.m(4); + boolean f = wVar.f(); + wVar.m(3); + int g9 = wVar.g(16); + int g10 = wVar.g(16); + int g11 = wVar.g(3); + int g12 = wVar.g(3); + wVar.m(2); + int g13 = wVar.g(8); + int g14 = wVar.g(8); + int g15 = wVar.g(4); + int g16 = wVar.g(2); + wVar.m(2); + int i12 = g3 - 10; + SparseArray sparseArray4 = new SparseArray(); + while (i12 > 0) { + int g17 = wVar.g(i9); + int g18 = wVar.g(2); + int g19 = wVar.g(2); + int g20 = wVar.g(12); + wVar.m(4); + int g21 = wVar.g(12); + i12 -= 6; + if (g18 == 1 || g18 == 2) { + i12 -= 2; + i4 = wVar.g(8); + i3 = wVar.g(8); + } else { + i4 = 0; + i3 = 0; + } + sparseArray4.put(g17, new b.g(g18, g19, g20, g21, i4, i3)); + i9 = 16; + } + b.f fVar2 = new b.f(g8, f, g9, g10, g11, g12, g13, g14, g15, g16, sparseArray4); + if (dVar3.f852b == 0 && (fVar = hVar2.c.get(g8)) != null) { + SparseArray sparseArray5 = fVar.j; + for (int i13 = 0; i13 < sparseArray5.size(); i13++) { + fVar2.j.put(sparseArray5.keyAt(i13), sparseArray5.valueAt(i13)); + } + } + hVar2.c.put(fVar2.a, fVar2); + break; + } + case 18: + if (g2 != hVar2.a) { + if (g2 == hVar2.f856b) { + b.a f2 = b.f(wVar, g3); + hVar2.f.put(f2.a, f2); + break; + } + } else { + b.a f3 = b.f(wVar, g3); + hVar2.d.put(f3.a, f3); + break; + } + break; + case 19: + if (g2 != hVar2.a) { + if (g2 == hVar2.f856b) { + b.c g22 = b.g(wVar); + hVar2.g.put(g22.a, g22); + break; + } + } else { + b.c g23 = b.g(wVar); + hVar2.e.put(g23.a, g23); + break; + } + break; + case 20: + if (g2 == hVar2.a) { + wVar.m(4); + boolean f4 = wVar.f(); + wVar.m(3); + int g24 = wVar.g(16); + int g25 = wVar.g(16); + if (f4) { + int g26 = wVar.g(16); + i7 = wVar.g(16); + i6 = wVar.g(16); + i5 = wVar.g(16); + i8 = g26; + } else { + i7 = g24; + i5 = g25; + i8 = 0; + i6 = 0; + } + hVar2.h = new b.C0086b(g24, g25, i8, i7, i6, i5); + break; + } + break; + } + wVar.n(d - wVar.d()); + } + } + b.h hVar3 = bVar.i; + b.d dVar4 = hVar3.i; + if (dVar4 == null) { + list = Collections.emptyList(); + cVar2 = cVar; + } else { + b.C0086b bVar2 = hVar3.h; + if (bVar2 == null) { + bVar2 = bVar.g; + } + Bitmap bitmap = bVar.j; + if (!(bitmap != null && bVar2.a + 1 == bitmap.getWidth() && bVar2.f850b + 1 == bVar.j.getHeight())) { + Bitmap createBitmap = Bitmap.createBitmap(bVar2.a + 1, bVar2.f850b + 1, Bitmap.Config.ARGB_8888); + bVar.j = createBitmap; + bVar.f.setBitmap(createBitmap); + } + ArrayList arrayList = new ArrayList(); + SparseArray sparseArray6 = dVar4.c; + int i14 = 0; + while (i14 < sparseArray6.size()) { + bVar.f.save(); + b.e valueAt = sparseArray6.valueAt(i14); + b.f fVar3 = bVar.i.c.get(sparseArray6.keyAt(i14)); + int i15 = valueAt.a + bVar2.c; + int i16 = valueAt.f853b + bVar2.e; + bVar.f.clipRect(i15, i16, Math.min(fVar3.c + i15, bVar2.d), Math.min(fVar3.d + i16, bVar2.f)); + b.a aVar = bVar.i.d.get(fVar3.f); + if (aVar == null && (aVar = bVar.i.f.get(fVar3.f)) == null) { + aVar = bVar.h; + } + SparseArray sparseArray7 = fVar3.j; + int i17 = 0; + while (i17 < sparseArray7.size()) { + int keyAt = sparseArray7.keyAt(i17); + b.g valueAt2 = sparseArray7.valueAt(i17); + b.c cVar4 = bVar.i.e.get(keyAt); + if (cVar4 == null) { + cVar4 = bVar.i.g.get(keyAt); + } + if (cVar4 != null) { + Paint paint = cVar4.f851b ? null : bVar.d; + int i18 = fVar3.e; + sparseArray2 = sparseArray6; + int i19 = valueAt2.a + i15; + int i20 = valueAt2.f855b + i16; + sparseArray = sparseArray7; + Canvas canvas = bVar.f; + cVar3 = cVar; + int[] iArr = i18 == 3 ? aVar.d : i18 == 2 ? aVar.c : aVar.f849b; + i2 = i14; + b.e(cVar4.c, iArr, i18, i19, i20, paint, canvas); + b.e(cVar4.d, iArr, i18, i19, i20 + 1, paint, canvas); + } else { + cVar3 = cVar; + sparseArray2 = sparseArray6; + i2 = i14; + sparseArray = sparseArray7; + } + i17++; + sparseArray6 = sparseArray2; + sparseArray7 = sparseArray; + cVar = cVar3; + i14 = i2; + } + if (fVar3.f854b) { + int i21 = fVar3.e; + bVar.e.setColor(i21 == 3 ? aVar.d[fVar3.g] : i21 == 2 ? aVar.c[fVar3.h] : aVar.f849b[fVar3.i]); + bVar.f.drawRect((float) i15, (float) i16, (float) (fVar3.c + i15), (float) (fVar3.d + i16), bVar.e); + } + Bitmap createBitmap2 = Bitmap.createBitmap(bVar.j, i15, i16, fVar3.c, fVar3.d); + float f5 = (float) bVar2.a; + float f6 = (float) bVar2.f850b; + arrayList.add(new b.i.a.c.b3.b(null, null, null, createBitmap2, ((float) i16) / f6, 0, 0, ((float) i15) / f5, 0, Integer.MIN_VALUE, -3.4028235E38f, ((float) fVar3.c) / f5, ((float) fVar3.d) / f6, false, ViewCompat.MEASURED_STATE_MASK, Integer.MIN_VALUE, 0.0f, null)); + bVar.f.drawColor(0, PorterDuff.Mode.CLEAR); + bVar.f.restore(); + i14++; + sparseArray6 = sparseArray6; + cVar = cVar; + } + cVar2 = cVar; + list = Collections.unmodifiableList(arrayList); + } + return new c(list); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/o/b.java b/app/src/main/java/b/i/a/c/b3/o/b.java new file mode 100644 index 0000000000..3eb1afdee9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/o/b.java @@ -0,0 +1,658 @@ +package b.i.a.c.b3.o; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.PorterDuff; +import android.graphics.PorterDuffXfermode; +import android.util.SparseArray; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.w; +/* compiled from: DvbParser */ +public final class b { + public static final byte[] a = {0, 7, 8, 15}; + + /* renamed from: b reason: collision with root package name */ + public static final byte[] f848b = {0, 119, -120, -1}; + public static final byte[] c = {0, 17, 34, 51, 68, 85, 102, 119, -120, -103, -86, -69, -52, -35, -18, -1}; + public final Paint d; + public final Paint e; + public final Canvas f = new Canvas(); + public final C0086b g = new C0086b(719, 575, 0, 719, 0, 575); + public final a h = new a(0, new int[]{0, -1, ViewCompat.MEASURED_STATE_MASK, -8421505}, b(), c()); + public final h i; + public Bitmap j; + + /* compiled from: DvbParser */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f849b; + public final int[] c; + public final int[] d; + + public a(int i, int[] iArr, int[] iArr2, int[] iArr3) { + this.a = i; + this.f849b = iArr; + this.c = iArr2; + this.d = iArr3; + } + } + + /* compiled from: DvbParser */ + /* renamed from: b.i.a.c.b3.o.b$b reason: collision with other inner class name */ + public static final class C0086b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f850b; + public final int c; + public final int d; + public final int e; + public final int f; + + public C0086b(int i, int i2, int i3, int i4, int i5, int i6) { + this.a = i; + this.f850b = i2; + this.c = i3; + this.d = i4; + this.e = i5; + this.f = i6; + } + } + + /* compiled from: DvbParser */ + public static final class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f851b; + public final byte[] c; + public final byte[] d; + + public c(int i, boolean z2, byte[] bArr, byte[] bArr2) { + this.a = i; + this.f851b = z2; + this.c = bArr; + this.d = bArr2; + } + } + + /* compiled from: DvbParser */ + public static final class d { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f852b; + public final SparseArray c; + + public d(int i, int i2, int i3, SparseArray sparseArray) { + this.a = i2; + this.f852b = i3; + this.c = sparseArray; + } + } + + /* compiled from: DvbParser */ + public static final class e { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f853b; + + public e(int i, int i2) { + this.a = i; + this.f853b = i2; + } + } + + /* compiled from: DvbParser */ + public static final class f { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f854b; + public final int c; + public final int d; + public final int e; + public final int f; + public final int g; + public final int h; + public final int i; + public final SparseArray j; + + public f(int i, boolean z2, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, SparseArray sparseArray) { + this.a = i; + this.f854b = z2; + this.c = i2; + this.d = i3; + this.e = i5; + this.f = i6; + this.g = i7; + this.h = i8; + this.i = i9; + this.j = sparseArray; + } + } + + /* compiled from: DvbParser */ + public static final class g { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f855b; + + public g(int i, int i2, int i3, int i4, int i5, int i6) { + this.a = i3; + this.f855b = i4; + } + } + + /* compiled from: DvbParser */ + public static final class h { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f856b; + public final SparseArray c = new SparseArray<>(); + public final SparseArray d = new SparseArray<>(); + public final SparseArray e = new SparseArray<>(); + public final SparseArray f = new SparseArray<>(); + public final SparseArray g = new SparseArray<>(); + @Nullable + public C0086b h; + @Nullable + public d i; + + public h(int i, int i2) { + this.a = i; + this.f856b = i2; + } + } + + public b(int i, int i2) { + Paint paint = new Paint(); + this.d = paint; + paint.setStyle(Paint.Style.FILL_AND_STROKE); + paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC)); + paint.setPathEffect(null); + Paint paint2 = new Paint(); + this.e = paint2; + paint2.setStyle(Paint.Style.FILL); + paint2.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER)); + paint2.setPathEffect(null); + this.i = new h(i, i2); + } + + public static byte[] a(int i, int i2, w wVar) { + byte[] bArr = new byte[i]; + for (int i3 = 0; i3 < i; i3++) { + bArr[i3] = (byte) wVar.g(i2); + } + return bArr; + } + + public static int[] b() { + int[] iArr = new int[16]; + iArr[0] = 0; + for (int i = 1; i < 16; i++) { + if (i < 8) { + iArr[i] = d(255, (i & 1) != 0 ? 255 : 0, (i & 2) != 0 ? 255 : 0, (i & 4) != 0 ? 255 : 0); + } else { + int i2 = 127; + int i3 = (i & 1) != 0 ? 127 : 0; + int i4 = (i & 2) != 0 ? 127 : 0; + if ((i & 4) == 0) { + i2 = 0; + } + iArr[i] = d(255, i3, i4, i2); + } + } + return iArr; + } + + public static int[] c() { + int[] iArr = new int[256]; + iArr[0] = 0; + for (int i = 0; i < 256; i++) { + int i2 = 255; + if (i < 8) { + int i3 = (i & 1) != 0 ? 255 : 0; + int i4 = (i & 2) != 0 ? 255 : 0; + if ((i & 4) == 0) { + i2 = 0; + } + iArr[i] = d(63, i3, i4, i2); + } else { + int i5 = i & 136; + int i6 = 170; + int i7 = 85; + if (i5 == 0) { + int i8 = ((i & 1) != 0 ? 85 : 0) + ((i & 16) != 0 ? 170 : 0); + int i9 = ((i & 2) != 0 ? 85 : 0) + ((i & 32) != 0 ? 170 : 0); + if ((i & 4) == 0) { + i7 = 0; + } + if ((i & 64) == 0) { + i6 = 0; + } + iArr[i] = d(255, i8, i9, i7 + i6); + } else if (i5 != 8) { + int i10 = 43; + if (i5 == 128) { + int i11 = ((i & 1) != 0 ? 43 : 0) + 127 + ((i & 16) != 0 ? 85 : 0); + int i12 = ((i & 2) != 0 ? 43 : 0) + 127 + ((i & 32) != 0 ? 85 : 0); + if ((i & 4) == 0) { + i10 = 0; + } + int i13 = i10 + 127; + if ((i & 64) == 0) { + i7 = 0; + } + iArr[i] = d(255, i11, i12, i13 + i7); + } else if (i5 == 136) { + int i14 = ((i & 1) != 0 ? 43 : 0) + ((i & 16) != 0 ? 85 : 0); + int i15 = ((i & 2) != 0 ? 43 : 0) + ((i & 32) != 0 ? 85 : 0); + if ((i & 4) == 0) { + i10 = 0; + } + if ((i & 64) == 0) { + i7 = 0; + } + iArr[i] = d(255, i14, i15, i10 + i7); + } + } else { + int i16 = ((i & 1) != 0 ? 85 : 0) + ((i & 16) != 0 ? 170 : 0); + int i17 = ((i & 2) != 0 ? 85 : 0) + ((i & 32) != 0 ? 170 : 0); + if ((i & 4) == 0) { + i7 = 0; + } + if ((i & 64) == 0) { + i6 = 0; + } + iArr[i] = d(127, i16, i17, i7 + i6); + } + } + } + return iArr; + } + + public static int d(int i, int i2, int i3, int i4) { + return (i << 24) | (i2 << 16) | (i3 << 8) | i4; + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:63:0x0114 */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:106:0x01d3 */ + /* JADX WARNING: Removed duplicated region for block: B:105:0x01d1 A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:113:0x020b A[LOOP:3: B:83:0x0163->B:113:0x020b, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:136:0x013b A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:137:0x0205 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:62:0x0112 A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:70:0x0141 A[LOOP:2: B:38:0x00ab->B:70:0x0141, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:85:0x016a */ + public static void e(byte[] bArr, int[] iArr, int i, int i2, int i3, @Nullable Paint paint, Canvas canvas) { + byte[] bArr2; + int i4; + boolean z2; + int g2; + int i5; + boolean z3; + byte b2; + int i6; + int i7; + int i8; + byte[] bArr3; + byte[] bArr4; + int i9; + boolean z4; + byte b3; + int i10; + int i11; + int i12; + int i13; + boolean z5; + w wVar = new w(bArr); + int i14 = i2; + int i15 = i3; + byte[] bArr5 = null; + byte[] bArr6 = null; + byte[] bArr7 = null; + while (wVar.b() != 0) { + int i16 = 8; + int g3 = wVar.g(8); + if (g3 != 240) { + int i17 = 4; + int i18 = 2; + switch (g3) { + case 16: + if (i == 3) { + bArr3 = bArr5 == null ? f848b : bArr5; + } else if (i == 2) { + bArr3 = bArr7 == null ? a : bArr7; + } else { + bArr2 = null; + i4 = i14; + z2 = false; + while (true) { + g2 = wVar.g(2); + if (g2 == 0) { + if (wVar.f()) { + i8 = wVar.g(3) + 3; + i7 = wVar.g(2); + } else if (wVar.f()) { + g2 = 0; + } else { + int g4 = wVar.g(2); + if (g4 == 0) { + z2 = true; + } else if (g4 == 1) { + z3 = z2; + b2 = 0; + i5 = 2; + if (i5 != 0 || paint == null) { + i6 = i4; + } else { + if (bArr2 != null) { + b2 = bArr2[b2]; + } + paint.setColor(iArr[b2 == true ? 1 : 0]); + i6 = i4; + canvas.drawRect((float) i4, (float) i15, (float) (i4 + i5), (float) (i15 + 1), paint); + } + i4 = i6 + i5; + if (z3) { + wVar.c(); + i14 = i4; + continue; + } else { + z2 = z3; + } + } else if (g4 == 2) { + i8 = wVar.g(4) + 12; + i7 = wVar.g(2); + } else if (g4 == 3) { + i8 = wVar.g(8) + 29; + i7 = wVar.g(2); + } + z3 = z2; + b2 = 0; + i5 = 0; + if (i5 != 0) { + } + i6 = i4; + i4 = i6 + i5; + if (z3) { + } + } + i5 = i8; + b2 = i7; + z3 = z2; + if (i5 != 0) { + } + i6 = i4; + i4 = i6 + i5; + if (z3) { + } + } + z3 = z2; + i5 = 1; + b2 = g2; + if (i5 != 0) { + } + i6 = i4; + i4 = i6 + i5; + if (z3) { + } + } + } + bArr2 = bArr3; + i4 = i14; + z2 = false; + while (true) { + g2 = wVar.g(2); + if (g2 == 0) { + } + z3 = z2; + i5 = 1; + b2 = g2; + if (i5 != 0) { + } + i6 = i4; + i4 = i6 + i5; + if (z3) { + } + z2 = z3; + } + case 17: + if (i == 3) { + bArr4 = bArr6 == null ? c : bArr6; + } else { + bArr4 = null; + } + int i19 = i14; + boolean z6 = false; + while (true) { + int g5 = wVar.g(i17); + if (g5 == 0) { + if (!wVar.f()) { + int g6 = wVar.g(3); + if (g6 != 0) { + z4 = z6; + i9 = g6 + 2; + b3 = 0; + if (i9 != 0 || paint == null) { + i10 = i19; + } else { + if (bArr4 != null) { + b3 = bArr4[b3]; + } + paint.setColor(iArr[b3 == true ? 1 : 0]); + i10 = i19; + canvas.drawRect((float) i19, (float) i15, (float) (i19 + i9), (float) (i15 + 1), paint); + } + i19 = i10 + i9; + if (z4) { + wVar.c(); + i14 = i19; + continue; + } else { + z6 = z4; + i18 = 2; + i17 = 4; + i16 = 8; + } + } else { + z6 = true; + } + } else { + if (!wVar.f()) { + i12 = wVar.g(i18) + i17; + i11 = wVar.g(i17); + } else { + int g7 = wVar.g(i18); + if (g7 == 0) { + g5 = 0; + } else if (g7 == 1) { + z4 = z6; + b3 = 0; + i9 = 2; + if (i9 != 0) { + } + i10 = i19; + i19 = i10 + i9; + if (z4) { + } + } else if (g7 == i18) { + i12 = wVar.g(i17) + 9; + i11 = wVar.g(i17); + } else if (g7 == 3) { + i12 = wVar.g(i16) + 25; + i11 = wVar.g(i17); + } + } + z4 = z6; + i9 = i12; + b3 = i11; + if (i9 != 0) { + } + i10 = i19; + i19 = i10 + i9; + if (z4) { + } + } + z4 = z6; + b3 = 0; + i9 = 0; + if (i9 != 0) { + } + i10 = i19; + i19 = i10 + i9; + if (z4) { + } + } + z4 = z6; + b3 = g5; + i9 = 1; + if (i9 != 0) { + } + i10 = i19; + i19 = i10 + i9; + if (z4) { + } + } + case 18: + int i20 = i14; + boolean z7 = false; + while (true) { + int g8 = wVar.g(8); + if (g8 != 0) { + z5 = z7; + i13 = 1; + } else if (!wVar.f()) { + int g9 = wVar.g(7); + if (g9 != 0) { + z5 = z7; + i13 = g9; + g8 = 0; + } else { + g8 = 0; + z5 = true; + i13 = 0; + } + } else { + z5 = z7; + i13 = wVar.g(7); + g8 = wVar.g(8); + } + if (i13 != 0 && paint != null) { + paint.setColor(iArr[g8]); + canvas.drawRect((float) i20, (float) i15, (float) (i20 + i13), (float) (i15 + 1), paint); + } + i20 += i13; + if (z5) { + i14 = i20; + continue; + } else { + z7 = z5; + } + } + default: + switch (g3) { + case 32: + bArr7 = a(4, 4, wVar); + continue; + case 33: + bArr5 = a(4, 8, wVar); + continue; + case 34: + bArr6 = a(16, 8, wVar); + continue; + default: + continue; + } + } + } else { + i15 += 2; + i14 = i2; + } + } + } + + public static a f(w wVar, int i) { + int i2; + int i3; + int i4; + int i5; + int i6 = 8; + int g2 = wVar.g(8); + wVar.m(8); + int i7 = i - 2; + int i8 = 4; + int[] iArr = {0, -1, ViewCompat.MEASURED_STATE_MASK, -8421505}; + int[] b2 = b(); + int[] c2 = c(); + while (i7 > 0) { + int g3 = wVar.g(i6); + int g4 = wVar.g(i6); + int i9 = i7 - 2; + int[] iArr2 = (g4 & 128) != 0 ? iArr : (g4 & 64) != 0 ? b2 : c2; + if ((g4 & 1) != 0) { + i5 = wVar.g(i6); + i4 = wVar.g(i6); + i3 = wVar.g(i6); + i2 = wVar.g(i6); + i7 = i9 - 4; + } else { + i7 = i9 - 2; + i4 = wVar.g(i8) << i8; + i2 = wVar.g(2) << 6; + i5 = wVar.g(6) << 2; + i3 = wVar.g(i8) << i8; + } + if (i5 == 0) { + i4 = 0; + i3 = 0; + i2 = 255; + } + double d2 = (double) i5; + double d3 = (double) (i4 - 128); + double d4 = (double) (i3 - 128); + iArr2[g3] = d((byte) (255 - (i2 & 255)), e0.h((int) ((1.402d * d3) + d2), 0, 255), e0.h((int) ((d2 - (0.34414d * d4)) - (d3 * 0.71414d)), 0, 255), e0.h((int) ((d4 * 1.772d) + d2), 0, 255)); + iArr = iArr; + g2 = g2; + i6 = 8; + i8 = 4; + } + return new a(g2, iArr, b2, c2); + } + + public static c g(w wVar) { + byte[] bArr; + int g2 = wVar.g(16); + wVar.m(4); + int g3 = wVar.g(2); + boolean f2 = wVar.f(); + wVar.m(1); + byte[] bArr2 = e0.f; + if (g3 == 1) { + wVar.m(wVar.g(8) * 16); + } else if (g3 == 0) { + int g4 = wVar.g(16); + int g5 = wVar.g(16); + if (g4 > 0) { + bArr2 = new byte[g4]; + wVar.i(bArr2, 0, g4); + } + if (g5 > 0) { + bArr = new byte[g5]; + wVar.i(bArr, 0, g5); + return new c(g2, f2, bArr2, bArr); + } + } + bArr = bArr2; + return new c(g2, f2, bArr2, bArr); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/o/c.java b/app/src/main/java/b/i/a/c/b3/o/c.java new file mode 100644 index 0000000000..639886d27c --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/o/c.java @@ -0,0 +1,33 @@ +package b.i.a.c.b3.o; + +import b.i.a.c.b3.b; +import b.i.a.c.b3.g; +import java.util.List; +/* compiled from: DvbSubtitle */ +public final class c implements g { + public final List j; + + public c(List list) { + this.j = list; + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + return -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + return 0; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + return this.j; + } + + @Override // b.i.a.c.b3.g + public int i() { + return 1; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/p/a.java b/app/src/main/java/b/i/a/c/b3/p/a.java new file mode 100644 index 0000000000..f2a4e26ae0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/p/a.java @@ -0,0 +1,200 @@ +package b.i.a.c.b3.p; + +import android.graphics.Bitmap; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +import b.i.a.c.b3.b; +import b.i.a.c.b3.f; +import b.i.a.c.b3.g; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Objects; +import java.util.zip.Inflater; +/* compiled from: PgsDecoder */ +public final class a extends f { + public final x n = new x(); + public final x o = new x(); + public final C0087a p = new C0087a(); + @Nullable + public Inflater q; + + /* compiled from: PgsDecoder */ + /* renamed from: b.i.a.c.b3.p.a$a reason: collision with other inner class name */ + public static final class C0087a { + public final x a = new x(); + + /* renamed from: b reason: collision with root package name */ + public final int[] f857b = new int[256]; + public boolean c; + public int d; + public int e; + public int f; + public int g; + public int h; + public int i; + + public void a() { + this.d = 0; + this.e = 0; + this.f = 0; + this.g = 0; + this.h = 0; + this.i = 0; + this.a.A(0); + this.c = false; + } + } + + public a() { + super("PgsDecoder"); + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + @Override // b.i.a.c.b3.f + public g j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { + b bVar; + x xVar; + x xVar2; + int i2; + int i3; + int v; + a aVar = this; + x xVar3 = aVar.n; + xVar3.a = bArr; + xVar3.c = i; + int i4 = 0; + xVar3.f970b = 0; + if (xVar3.a() > 0 && xVar3.c() == 120) { + if (aVar.q == null) { + aVar.q = new Inflater(); + } + if (e0.x(xVar3, aVar.o, aVar.q)) { + x xVar4 = aVar.o; + xVar3.C(xVar4.a, xVar4.c); + } + } + aVar.p.a(); + ArrayList arrayList = new ArrayList(); + while (aVar.n.a() >= 3) { + x xVar5 = aVar.n; + C0087a aVar2 = aVar.p; + int i5 = xVar5.c; + int t = xVar5.t(); + int y2 = xVar5.y(); + int i6 = xVar5.f970b + y2; + if (i6 > i5) { + xVar5.E(i5); + bVar = null; + } else { + if (t != 128) { + switch (t) { + case 20: + Objects.requireNonNull(aVar2); + if (y2 % 5 == 2) { + xVar5.F(2); + Arrays.fill(aVar2.f857b, i4); + int i7 = y2 / 5; + int i8 = 0; + while (i8 < i7) { + int t2 = xVar5.t(); + double t3 = (double) xVar5.t(); + double t4 = (double) (xVar5.t() - 128); + arrayList = arrayList; + double t5 = (double) (xVar5.t() - 128); + aVar2.f857b[t2] = (e0.h((int) ((1.402d * t4) + t3), 0, 255) << 16) | (xVar5.t() << 24) | (e0.h((int) ((t3 - (0.34414d * t5)) - (t4 * 0.71414d)), 0, 255) << 8) | e0.h((int) ((t5 * 1.772d) + t3), 0, 255); + i8++; + xVar5 = xVar5; + } + xVar = xVar5; + aVar2.c = true; + break; + } + xVar = xVar5; + break; + case 21: + Objects.requireNonNull(aVar2); + if (y2 >= 4) { + xVar5.F(3); + int i9 = y2 - 4; + if ((xVar5.t() & 128) != 0) { + if (i9 >= 7 && (v = xVar5.v()) >= 4) { + aVar2.h = xVar5.y(); + aVar2.i = xVar5.y(); + aVar2.a.A(v - 4); + i9 -= 7; + } + } + x xVar6 = aVar2.a; + int i10 = xVar6.f970b; + int i11 = xVar6.c; + if (i10 < i11 && i9 > 0) { + int min = Math.min(i9, i11 - i10); + xVar5.e(aVar2.a.a, i10, min); + aVar2.a.E(i10 + min); + } + } + xVar = xVar5; + break; + case 22: + Objects.requireNonNull(aVar2); + if (y2 >= 19) { + aVar2.d = xVar5.y(); + aVar2.e = xVar5.y(); + xVar5.F(11); + aVar2.f = xVar5.y(); + aVar2.g = xVar5.y(); + } + xVar = xVar5; + break; + default: + xVar = xVar5; + break; + } + bVar = null; + } else { + xVar = xVar5; + if (aVar2.d == 0 || aVar2.e == 0 || aVar2.h == 0 || aVar2.i == 0 || (i2 = (xVar2 = aVar2.a).c) == 0 || xVar2.f970b != i2 || !aVar2.c) { + bVar = null; + } else { + xVar2.E(0); + int i12 = aVar2.h * aVar2.i; + int[] iArr = new int[i12]; + int i13 = 0; + while (i13 < i12) { + int t6 = aVar2.a.t(); + if (t6 != 0) { + i3 = i13 + 1; + iArr[i13] = aVar2.f857b[t6]; + } else { + int t7 = aVar2.a.t(); + if (t7 != 0) { + i3 = ((t7 & 64) == 0 ? t7 & 63 : ((t7 & 63) << 8) | aVar2.a.t()) + i13; + Arrays.fill(iArr, i13, i3, (t7 & 128) == 0 ? 0 : aVar2.f857b[aVar2.a.t()]); + } + } + i13 = i3; + } + Bitmap createBitmap = Bitmap.createBitmap(iArr, aVar2.h, aVar2.i, Bitmap.Config.ARGB_8888); + float f = (float) aVar2.d; + float f2 = ((float) aVar2.f) / f; + float f3 = (float) aVar2.e; + bVar = new b(null, null, null, createBitmap, ((float) aVar2.g) / f3, 0, 0, f2, 0, Integer.MIN_VALUE, -3.4028235E38f, ((float) aVar2.h) / f, ((float) aVar2.i) / f3, false, ViewCompat.MEASURED_STATE_MASK, Integer.MIN_VALUE, 0.0f, null); + } + aVar2.a(); + } + xVar.E(i6); + } + if (bVar != null) { + arrayList.add(bVar); + } + arrayList = arrayList; + i4 = 0; + aVar = this; + } + return new b(Collections.unmodifiableList(arrayList)); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/p/b.java b/app/src/main/java/b/i/a/c/b3/p/b.java new file mode 100644 index 0000000000..1c794accbb --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/p/b.java @@ -0,0 +1,32 @@ +package b.i.a.c.b3.p; + +import b.i.a.c.b3.g; +import java.util.List; +/* compiled from: PgsSubtitle */ +public final class b implements g { + public final List j; + + public b(List list) { + this.j = list; + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + return -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + return 0; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + return this.j; + } + + @Override // b.i.a.c.b3.g + public int i() { + return 1; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/q/a.java b/app/src/main/java/b/i/a/c/b3/q/a.java new file mode 100644 index 0000000000..19f4461bc2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/q/a.java @@ -0,0 +1,4 @@ +package b.i.a.c.b3.q; +/* compiled from: HorizontalTextInVerticalContextSpan */ +public final class a implements b { +} diff --git a/app/src/main/java/b/i/a/c/b3/q/b.java b/app/src/main/java/b/i/a/c/b3/q/b.java new file mode 100644 index 0000000000..0e3347fa69 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/q/b.java @@ -0,0 +1,4 @@ +package b.i.a.c.b3.q; +/* compiled from: LanguageFeatureSpan */ +public interface b { +} diff --git a/app/src/main/java/b/i/a/c/b3/q/c.java b/app/src/main/java/b/i/a/c/b3/q/c.java new file mode 100644 index 0000000000..abce6d26fe --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/q/c.java @@ -0,0 +1,13 @@ +package b.i.a.c.b3.q; +/* compiled from: RubySpan */ +public final class c implements b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f858b; + + public c(String str, int i) { + this.a = str; + this.f858b = i; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/q/d.java b/app/src/main/java/b/i/a/c/b3/q/d.java new file mode 100644 index 0000000000..8163bee074 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/q/d.java @@ -0,0 +1,15 @@ +package b.i.a.c.b3.q; +/* compiled from: TextEmphasisSpan */ +public final class d implements b { + public int a; + + /* renamed from: b reason: collision with root package name */ + public int f859b; + public final int c; + + public d(int i, int i2, int i3) { + this.a = i; + this.f859b = i2; + this.c = i3; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/r/a.java b/app/src/main/java/b/i/a/c/b3/r/a.java new file mode 100644 index 0000000000..974bf4be66 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/r/a.java @@ -0,0 +1,573 @@ +package b.i.a.c.b3.r; + +import android.graphics.PointF; +import android.text.Layout; +import android.text.SpannableString; +import android.text.TextUtils; +import android.text.style.ForegroundColorSpan; +import android.text.style.StrikethroughSpan; +import android.text.style.StyleSpan; +import android.text.style.UnderlineSpan; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +import b.c.a.a0.d; +import b.i.a.c.b3.b; +import b.i.a.c.b3.f; +import b.i.a.c.b3.g; +import b.i.a.c.b3.r.c; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.a.c.f3.x; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: SsaDecoder */ +public final class a extends f { + public static final Pattern n = Pattern.compile("(?:(\\d+):)?(\\d+):(\\d+)[:.](\\d+)"); + public final boolean o; + @Nullable + public final b p; + public Map q; + public float r = -3.4028235E38f; + + /* renamed from: s reason: collision with root package name */ + public float f860s = -3.4028235E38f; + + public a(@Nullable List list) { + super("SsaDecoder"); + if (list == null || list.isEmpty()) { + this.o = false; + this.p = null; + return; + } + this.o = true; + String l = e0.l(list.get(0)); + d.j(l.startsWith("Format:")); + b a = b.a(l); + Objects.requireNonNull(a); + this.p = a; + m(new x(list.get(1))); + } + + public static int k(long j, List list, List> list2) { + int i; + int size = list.size() - 1; + while (true) { + if (size < 0) { + i = 0; + break; + } else if (list.get(size).longValue() == j) { + return size; + } else { + if (list.get(size).longValue() < j) { + i = size + 1; + break; + } + size--; + } + } + list.add(i, Long.valueOf(j)); + list2.add(i, i == 0 ? new ArrayList() : new ArrayList(list2.get(i - 1))); + return i; + } + + public static float l(int i) { + if (i == 0) { + return 0.05f; + } + if (i != 1) { + return i != 2 ? -3.4028235E38f : 0.95f; + } + return 0.5f; + } + + public static long n(String str) { + Matcher matcher = n.matcher(str.trim()); + if (!matcher.matches()) { + return -9223372036854775807L; + } + String group = matcher.group(1); + int i = e0.a; + long parseLong = (Long.parseLong(matcher.group(2)) * 60 * 1000000) + (Long.parseLong(group) * 60 * 60 * 1000000); + return (Long.parseLong(matcher.group(4)) * 10000) + (Long.parseLong(matcher.group(3)) * 1000000) + parseLong; + } + + @Override // b.i.a.c.b3.f + public g j(byte[] bArr, int i, boolean z2) { + x xVar; + b bVar; + long j; + float f; + int i2; + int i3; + Layout.Alignment alignment; + int i4; + int i5; + float f2; + float f3; + int i6; + float f4; + float f5; + int i7; + int i8; + int i9; + int i10; + a aVar = this; + ArrayList arrayList = new ArrayList(); + ArrayList arrayList2 = new ArrayList(); + x xVar2 = new x(bArr, i); + if (!aVar.o) { + aVar.m(xVar2); + } + b bVar2 = aVar.o ? aVar.p : null; + while (true) { + String g = xVar2.g(); + if (g == null) { + return new d(arrayList, arrayList2); + } + if (g.startsWith("Format:")) { + bVar2 = b.a(g); + } else { + if (g.startsWith("Dialogue:")) { + if (bVar2 == null) { + Log.w("SsaDecoder", g.length() != 0 ? "Skipping dialogue line before complete format: ".concat(g) : new String("Skipping dialogue line before complete format: ")); + } else { + d.j(g.startsWith("Dialogue:")); + String[] split = g.substring(9).split(",", bVar2.e); + if (split.length != bVar2.e) { + Log.w("SsaDecoder", g.length() != 0 ? "Skipping dialogue line with fewer columns than format: ".concat(g) : new String("Skipping dialogue line with fewer columns than format: ")); + } else { + long n2 = n(split[bVar2.a]); + if (n2 == -9223372036854775807L) { + Log.w("SsaDecoder", g.length() != 0 ? "Skipping invalid timing: ".concat(g) : new String("Skipping invalid timing: ")); + } else { + long n3 = n(split[bVar2.f861b]); + if (n3 == -9223372036854775807L) { + Log.w("SsaDecoder", g.length() != 0 ? "Skipping invalid timing: ".concat(g) : new String("Skipping invalid timing: ")); + } else { + Map map = aVar.q; + c cVar = (map == null || (i10 = bVar2.c) == -1) ? null : map.get(split[i10].trim()); + String str = split[bVar2.d]; + Matcher matcher = c.b.a.matcher(str); + PointF pointF = null; + int i11 = -1; + while (true) { + xVar = xVar2; + if (matcher.find()) { + String group = matcher.group(1); + Objects.requireNonNull(group); + try { + PointF a = c.b.a(group); + if (a != null) { + pointF = a; + } + } catch (RuntimeException unused) { + } + try { + Matcher matcher2 = c.b.d.matcher(group); + if (matcher2.find()) { + String group2 = matcher2.group(1); + Objects.requireNonNull(group2); + i9 = c.a(group2); + } else { + i9 = -1; + } + if (i9 != -1) { + i11 = i9; + } + } catch (RuntimeException unused2) { + } + xVar2 = xVar; + } else { + String replace = c.b.a.matcher(str).replaceAll("").replace("\\N", "\n").replace("\\n", "\n").replace("\\h", " "); + float f6 = aVar.r; + float f7 = aVar.f860s; + SpannableString spannableString = new SpannableString(replace); + if (cVar != null) { + if (cVar.c != null) { + bVar = bVar2; + j = n3; + spannableString.setSpan(new ForegroundColorSpan(cVar.c.intValue()), 0, spannableString.length(), 33); + } else { + bVar = bVar2; + j = n3; + } + float f8 = cVar.d; + if (f8 == -3.4028235E38f || f7 == -3.4028235E38f) { + f4 = -3.4028235E38f; + i6 = Integer.MIN_VALUE; + } else { + f4 = f8 / f7; + i6 = 1; + } + boolean z3 = cVar.e; + if (!z3 || !cVar.f) { + f5 = f4; + i7 = 0; + i8 = 33; + if (z3) { + spannableString.setSpan(new StyleSpan(1), 0, spannableString.length(), 33); + } else if (cVar.f) { + spannableString.setSpan(new StyleSpan(2), 0, spannableString.length(), 33); + } + } else { + i7 = 0; + f5 = f4; + i8 = 33; + spannableString.setSpan(new StyleSpan(3), 0, spannableString.length(), 33); + } + if (cVar.g) { + spannableString.setSpan(new UnderlineSpan(), i7, spannableString.length(), i8); + } + if (cVar.h) { + spannableString.setSpan(new StrikethroughSpan(), i7, spannableString.length(), i8); + } + i3 = -1; + i2 = i6; + f = f5; + } else { + bVar = bVar2; + j = n3; + i3 = -1; + i2 = Integer.MIN_VALUE; + f = -3.4028235E38f; + } + if (i11 == i3) { + i11 = cVar != null ? cVar.f862b : i3; + } + switch (i11) { + case 0: + default: + Log.w("SsaDecoder", b.d.b.a.a.f(30, "Unknown alignment: ", i11)); + case -1: + alignment = null; + break; + case 1: + case 4: + case 7: + alignment = Layout.Alignment.ALIGN_NORMAL; + break; + case 2: + case 5: + case 8: + alignment = Layout.Alignment.ALIGN_CENTER; + break; + case 3: + case 6: + case 9: + alignment = Layout.Alignment.ALIGN_OPPOSITE; + break; + } + switch (i11) { + case 0: + default: + Log.w("SsaDecoder", b.d.b.a.a.f(30, "Unknown alignment: ", i11)); + case -1: + i4 = Integer.MIN_VALUE; + break; + case 1: + case 4: + case 7: + i4 = 0; + break; + case 2: + case 5: + case 8: + i4 = 1; + break; + case 3: + case 6: + case 9: + i4 = 2; + break; + } + switch (i11) { + case 0: + default: + Log.w("SsaDecoder", b.d.b.a.a.f(30, "Unknown alignment: ", i11)); + case -1: + i5 = Integer.MIN_VALUE; + break; + case 1: + case 2: + case 3: + i5 = 2; + break; + case 4: + case 5: + case 6: + i5 = 1; + break; + case 7: + case 8: + case 9: + i5 = 0; + break; + } + if (pointF == null || f7 == -3.4028235E38f || f6 == -3.4028235E38f) { + f3 = l(i4); + f2 = l(i5); + } else { + f3 = pointF.x / f6; + f2 = pointF.y / f7; + } + b bVar3 = new b(spannableString, alignment, null, null, f2, 0, i5, f3, i4, i2, f, -3.4028235E38f, -3.4028235E38f, false, ViewCompat.MEASURED_STATE_MASK, Integer.MIN_VALUE, 0.0f, null); + int k = k(j, arrayList2, arrayList); + for (int k2 = k(n2, arrayList2, arrayList); k2 < k; k2++) { + ((List) arrayList.get(k2)).add(bVar3); + } + aVar = this; + bVar2 = bVar; + xVar2 = xVar; + } + } + } + } + } + } + } + xVar = xVar2; + bVar = bVar2; + aVar = this; + bVar2 = bVar; + xVar2 = xVar; + } + } + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Removed duplicated region for block: B:133:0x0293 */ + public final void m(x xVar) { + char c; + c cVar; + float f; + while (true) { + String g = xVar.g(); + if (g != null) { + int i = 91; + char c2 = 2; + char c3 = 0; + if ("[Script Info]".equalsIgnoreCase(g)) { + while (true) { + String g2 = xVar.g(); + if (g2 != null && (xVar.a() == 0 || xVar.c() != 91)) { + String[] split = g2.split(":"); + if (split.length == 2) { + String m1 = b.i.a.f.e.o.f.m1(split[0].trim()); + m1.hashCode(); + if (m1.equals("playresx")) { + this.r = Float.parseFloat(split[1].trim()); + } else if (m1.equals("playresy")) { + try { + this.f860s = Float.parseFloat(split[1].trim()); + } catch (NumberFormatException unused) { + } + } + } + } + } + } else if ("[V4+ Styles]".equalsIgnoreCase(g)) { + LinkedHashMap linkedHashMap = new LinkedHashMap(); + while (true) { + c.a aVar = null; + while (true) { + String g3 = xVar.g(); + if (g3 != null && (xVar.a() == 0 || xVar.c() != i)) { + if (g3.startsWith("Format:")) { + String[] split2 = TextUtils.split(g3.substring(7), ","); + int i2 = -1; + int i3 = -1; + int i4 = -1; + int i5 = -1; + int i6 = -1; + int i7 = -1; + int i8 = -1; + int i9 = -1; + for (int i10 = 0; i10 < split2.length; i10++) { + String m12 = b.i.a.f.e.o.f.m1(split2[i10].trim()); + m12.hashCode(); + switch (m12.hashCode()) { + case -1178781136: + if (m12.equals("italic")) { + c = 0; + break; + } + c = 65535; + break; + case -1026963764: + if (m12.equals("underline")) { + c = 1; + break; + } + c = 65535; + break; + case -192095652: + if (m12.equals("strikeout")) { + c = 2; + break; + } + c = 65535; + break; + case -70925746: + if (m12.equals("primarycolour")) { + c = 3; + break; + } + c = 65535; + break; + case 3029637: + if (m12.equals("bold")) { + c = 4; + break; + } + c = 65535; + break; + case 3373707: + if (m12.equals(ModelAuditLogEntry.CHANGE_KEY_NAME)) { + c = 5; + break; + } + c = 65535; + break; + case 366554320: + if (m12.equals("fontsize")) { + c = 6; + break; + } + c = 65535; + break; + case 1767875043: + if (m12.equals("alignment")) { + c = 7; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + switch (c) { + case 0: + i7 = i10; + break; + case 1: + i8 = i10; + break; + case 2: + i9 = i10; + break; + case 3: + i4 = i10; + break; + case 4: + i6 = i10; + break; + case 5: + i2 = i10; + break; + case 6: + i5 = i10; + break; + case 7: + i3 = i10; + break; + } + } + if (i2 != -1) { + aVar = new c.a(i2, i3, i4, i5, i6, i7, i8, i9, split2.length); + } + } else { + if (g3.startsWith("Style:")) { + if (aVar == null) { + Log.w("SsaDecoder", g3.length() != 0 ? "Skipping 'Style:' line before 'Format:' line: ".concat(g3) : new String("Skipping 'Style:' line before 'Format:' line: ")); + } else { + d.j(g3.startsWith("Style:")); + String[] split3 = TextUtils.split(g3.substring(6), ","); + int length = split3.length; + int i11 = aVar.i; + if (length != i11) { + Object[] objArr = new Object[3]; + objArr[c3] = Integer.valueOf(i11); + objArr[1] = Integer.valueOf(split3.length); + objArr[c2] = g3; + Log.w("SsaStyle", e0.k("Skipping malformed 'Style:' line (expected %s values, found %s): '%s'", objArr)); + } else { + try { + String trim = split3[aVar.a].trim(); + int i12 = aVar.f863b; + int a = i12 != -1 ? c.a(split3[i12].trim()) : -1; + int i13 = aVar.c; + Integer c4 = i13 != -1 ? c.c(split3[i13].trim()) : null; + int i14 = aVar.d; + if (i14 != -1) { + String trim2 = split3[i14].trim(); + try { + f = Float.parseFloat(trim2); + } catch (NumberFormatException e) { + StringBuilder sb = new StringBuilder(String.valueOf(trim2).length() + 29); + sb.append("Failed to parse font size: '"); + sb.append(trim2); + sb.append("'"); + q.c("SsaStyle", sb.toString(), e); + } + int i15 = aVar.e; + boolean z2 = i15 == -1 && c.b(split3[i15].trim()); + int i16 = aVar.f; + boolean z3 = i16 == -1 && c.b(split3[i16].trim()); + int i17 = aVar.g; + boolean z4 = i17 == -1 && c.b(split3[i17].trim()); + int i18 = aVar.h; + cVar = new c(trim, a, c4, f, z2, z3, z4, i18 == -1 && c.b(split3[i18].trim())); + if (cVar != null) { + linkedHashMap.put(cVar.a, cVar); + } + } + f = -3.4028235E38f; + int i15 = aVar.e; + if (i15 == -1) { + } + int i16 = aVar.f; + if (i16 == -1) { + } + int i17 = aVar.g; + if (i17 == -1) { + } + int i18 = aVar.h; + cVar = new c(trim, a, c4, f, z2, z3, z4, i18 == -1 && c.b(split3[i18].trim())); + } catch (RuntimeException e2) { + q.c("SsaStyle", b.d.b.a.a.j(g3.length() + 36, "Skipping malformed 'Style:' line: '", g3, "'"), e2); + } + if (cVar != null) { + } + } + cVar = null; + if (cVar != null) { + } + } + } + i = 91; + c2 = 2; + c3 = 0; + } + } + } + } + this.q = linkedHashMap; + } else if ("[V4 Styles]".equalsIgnoreCase(g)) { + Log.i("SsaDecoder", "[V4 Styles] are not supported"); + } else if ("[Events]".equalsIgnoreCase(g)) { + return; + } + } else { + return; + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/r/b.java b/app/src/main/java/b/i/a/c/b3/r/b.java new file mode 100644 index 0000000000..c47c26e346 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/r/b.java @@ -0,0 +1,87 @@ +package b.i.a.c.b3.r; + +import android.text.TextUtils; +import androidx.annotation.Nullable; +import androidx.core.app.NotificationCompat; +import b.c.a.a0.d; +import b.i.a.f.e.o.f; +/* compiled from: SsaDialogueFormat */ +public final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f861b; + public final int c; + public final int d; + public final int e; + + public b(int i, int i2, int i3, int i4, int i5) { + this.a = i; + this.f861b = i2; + this.c = i3; + this.d = i4; + this.e = i5; + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + @Nullable + public static b a(String str) { + char c; + d.j(str.startsWith("Format:")); + String[] split = TextUtils.split(str.substring(7), ","); + int i = -1; + int i2 = -1; + int i3 = -1; + int i4 = -1; + for (int i5 = 0; i5 < split.length; i5++) { + String m1 = f.m1(split[i5].trim()); + m1.hashCode(); + switch (m1.hashCode()) { + case 100571: + if (m1.equals("end")) { + c = 0; + break; + } + c = 65535; + break; + case 3556653: + if (m1.equals(NotificationCompat.MessagingStyle.Message.KEY_TEXT)) { + c = 1; + break; + } + c = 65535; + break; + case 109757538: + if (m1.equals("start")) { + c = 2; + break; + } + c = 65535; + break; + case 109780401: + if (m1.equals("style")) { + c = 3; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + if (c == 0) { + i2 = i5; + } else if (c == 1) { + i4 = i5; + } else if (c == 2) { + i = i5; + } else if (c == 3) { + i3 = i5; + } + } + if (i == -1 || i2 == -1 || i4 == -1) { + return null; + } + return new b(i, i2, i3, i4, split.length); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/r/c.java b/app/src/main/java/b/i/a/c/b3/r/c.java new file mode 100644 index 0000000000..de97d23ea2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/r/c.java @@ -0,0 +1,160 @@ +package b.i.a.c.b3.r; + +import android.graphics.Color; +import android.graphics.PointF; +import android.util.Log; +import androidx.annotation.ColorInt; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.a.f.e.o.f; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: SsaStyle */ +public final class c { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f862b; + @Nullable + @ColorInt + public final Integer c; + public final float d; + public final boolean e; + public final boolean f; + public final boolean g; + public final boolean h; + + /* compiled from: SsaStyle */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f863b; + public final int c; + public final int d; + public final int e; + public final int f; + public final int g; + public final int h; + public final int i; + + public a(int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) { + this.a = i; + this.f863b = i2; + this.c = i3; + this.d = i4; + this.e = i5; + this.f = i6; + this.g = i7; + this.h = i8; + this.i = i9; + } + } + + /* compiled from: SsaStyle */ + public static final class b { + public static final Pattern a = Pattern.compile("\\{([^}]*)\\}"); + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f864b = Pattern.compile(e0.k("\\\\pos\\((%1$s),(%1$s)\\)", "\\s*\\d+(?:\\.\\d+)?\\s*")); + public static final Pattern c = Pattern.compile(e0.k("\\\\move\\(%1$s,%1$s,(%1$s),(%1$s)(?:,%1$s,%1$s)?\\)", "\\s*\\d+(?:\\.\\d+)?\\s*")); + public static final Pattern d = Pattern.compile("\\\\an(\\d+)"); + + @Nullable + public static PointF a(String str) { + String str2; + String str3; + Matcher matcher = f864b.matcher(str); + Matcher matcher2 = c.matcher(str); + boolean find = matcher.find(); + boolean find2 = matcher2.find(); + if (find) { + if (find2) { + StringBuilder sb = new StringBuilder(str.length() + 82); + sb.append("Override has both \\pos(x,y) and \\move(x1,y1,x2,y2); using \\pos values. override='"); + sb.append(str); + sb.append("'"); + Log.i("SsaStyle.Overrides", sb.toString()); + } + str2 = matcher.group(1); + str3 = matcher.group(2); + } else if (!find2) { + return null; + } else { + str2 = matcher2.group(1); + str3 = matcher2.group(2); + } + Objects.requireNonNull(str2); + float parseFloat = Float.parseFloat(str2.trim()); + Objects.requireNonNull(str3); + return new PointF(parseFloat, Float.parseFloat(str3.trim())); + } + } + + public c(String str, int i, @Nullable @ColorInt Integer num, float f, boolean z2, boolean z3, boolean z4, boolean z5) { + this.a = str; + this.f862b = i; + this.c = num; + this.d = f; + this.e = z2; + this.f = z3; + this.g = z4; + this.h = z5; + } + + public static int a(String str) { + boolean z2; + try { + int parseInt = Integer.parseInt(str.trim()); + switch (parseInt) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + z2 = true; + break; + default: + z2 = false; + break; + } + if (z2) { + return parseInt; + } + } catch (NumberFormatException unused) { + } + String valueOf = String.valueOf(str); + Log.w("SsaStyle", valueOf.length() != 0 ? "Ignoring unknown alignment: ".concat(valueOf) : new String("Ignoring unknown alignment: ")); + return -1; + } + + public static boolean b(String str) { + try { + int parseInt = Integer.parseInt(str); + return parseInt == 1 || parseInt == -1; + } catch (NumberFormatException e) { + q.c("SsaStyle", b.d.b.a.a.j(b.d.b.a.a.b(str, 33), "Failed to parse boolean value: '", str, "'"), e); + return false; + } + } + + @Nullable + @ColorInt + public static Integer c(String str) { + try { + long parseLong = str.startsWith("&H") ? Long.parseLong(str.substring(2), 16) : Long.parseLong(str); + d.j(parseLong <= 4294967295L); + return Integer.valueOf(Color.argb(f.G(((parseLong >> 24) & 255) ^ 255), f.G(parseLong & 255), f.G((parseLong >> 8) & 255), f.G((parseLong >> 16) & 255))); + } catch (IllegalArgumentException e) { + q.c("SsaStyle", b.d.b.a.a.j(b.d.b.a.a.b(str, 36), "Failed to parse color expression: '", str, "'"), e); + return null; + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/r/d.java b/app/src/main/java/b/i/a/c/b3/r/d.java new file mode 100644 index 0000000000..54e4e3815c --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/r/d.java @@ -0,0 +1,79 @@ +package b.i.a.c.b3.r; + +import b.i.a.c.b3.b; +import b.i.a.c.b3.g; +import b.i.a.c.f3.e0; +import java.util.Collections; +import java.util.List; +/* compiled from: SsaSubtitle */ +public final class d implements g { + public final List> j; + public final List k; + + public d(List> list, List list2) { + this.j = list; + this.k = list2; + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + int i; + List list = this.k; + Long valueOf = Long.valueOf(j); + int i2 = e0.a; + int binarySearch = Collections.binarySearch(list, valueOf); + if (binarySearch < 0) { + i = ~binarySearch; + } else { + int size = list.size(); + do { + binarySearch++; + if (binarySearch >= size) { + break; + } + } while (list.get(binarySearch).compareTo(valueOf) == 0); + i = binarySearch; + } + if (i < this.k.size()) { + return i; + } + return -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + boolean z2 = true; + b.c.a.a0.d.j(i >= 0); + if (i >= this.k.size()) { + z2 = false; + } + b.c.a.a0.d.j(z2); + return this.k.get(i).longValue(); + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + int i; + List list = this.k; + Long valueOf = Long.valueOf(j); + int i2 = e0.a; + int binarySearch = Collections.binarySearch(list, valueOf); + if (binarySearch < 0) { + i = -(binarySearch + 2); + } else { + do { + binarySearch--; + if (binarySearch < 0) { + break; + } + } while (list.get(binarySearch).compareTo(valueOf) == 0); + i = binarySearch + 1; + } + return i == -1 ? Collections.emptyList() : this.j.get(i); + } + + @Override // b.i.a.c.b3.g + public int i() { + return this.k.size(); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/s/a.java b/app/src/main/java/b/i/a/c/b3/s/a.java new file mode 100644 index 0000000000..82539c719d --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/s/a.java @@ -0,0 +1,304 @@ +package b.i.a.c.b3.s; + +import android.text.Html; +import android.text.Spanned; +import android.text.TextUtils; +import android.util.Log; +import androidx.core.view.ViewCompat; +import b.i.a.c.b3.b; +import b.i.a.c.b3.f; +import b.i.a.c.b3.g; +import b.i.a.c.f3.x; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: SubripDecoder */ +public final class a extends f { + public static final Pattern n = Pattern.compile("\\s*((?:(\\d+):)?(\\d+):(\\d+)(?:,(\\d+))?)\\s*-->\\s*((?:(\\d+):)?(\\d+):(\\d+)(?:,(\\d+))?)\\s*"); + public static final Pattern o = Pattern.compile("\\{\\\\.*?\\}"); + public final StringBuilder p = new StringBuilder(); + public final ArrayList q = new ArrayList<>(); + + public a() { + super("SubripDecoder"); + } + + public static float k(int i) { + if (i == 0) { + return 0.08f; + } + if (i == 1) { + return 0.5f; + } + if (i == 2) { + return 0.92f; + } + throw new IllegalArgumentException(); + } + + public static long l(Matcher matcher, int i) { + String group = matcher.group(i + 1); + long parseLong = group != null ? Long.parseLong(group) * 60 * 60 * 1000 : 0; + String group2 = matcher.group(i + 2); + Objects.requireNonNull(group2); + String group3 = matcher.group(i + 3); + Objects.requireNonNull(group3); + long parseLong2 = (Long.parseLong(group3) * 1000) + (Long.parseLong(group2) * 60 * 1000) + parseLong; + String group4 = matcher.group(i + 4); + if (group4 != null) { + parseLong2 += Long.parseLong(group4); + } + return parseLong2 * 1000; + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + @Override // b.i.a.c.b3.f + public g j(byte[] bArr, int i, boolean z2) { + x xVar; + int i2; + x xVar2; + long[] jArr; + b bVar; + char c; + char c2; + a aVar = this; + ArrayList arrayList = new ArrayList(); + long[] jArr2 = new long[32]; + x xVar3 = new x(bArr, i); + int i3 = 0; + int i4 = 0; + while (true) { + String g = xVar3.g(); + if (g != null) { + if (g.length() != 0) { + try { + Integer.parseInt(g); + String g2 = xVar3.g(); + if (g2 == null) { + Log.w("SubripDecoder", "Unexpected end"); + } else { + Matcher matcher = n.matcher(g2); + if (matcher.matches()) { + long l = l(matcher, 1); + if (i4 == jArr2.length) { + jArr2 = Arrays.copyOf(jArr2, i4 * 2); + } + int i5 = i4 + 1; + jArr2[i4] = l; + long l2 = l(matcher, 6); + if (i5 == jArr2.length) { + jArr2 = Arrays.copyOf(jArr2, i5 * 2); + } + int i6 = i5 + 1; + jArr2[i5] = l2; + aVar.p.setLength(i3); + aVar.q.clear(); + for (String g3 = xVar3.g(); !TextUtils.isEmpty(g3); g3 = xVar3.g()) { + if (aVar.p.length() > 0) { + aVar.p.append("
"); + } + StringBuilder sb = aVar.p; + ArrayList arrayList2 = aVar.q; + String trim = g3.trim(); + StringBuilder sb2 = new StringBuilder(trim); + Matcher matcher2 = o.matcher(trim); + int i7 = 0; + while (matcher2.find()) { + String group = matcher2.group(); + arrayList2.add(group); + int start = matcher2.start() - i7; + int length = group.length(); + sb2.replace(start, start + length, ""); + i7 += length; + } + sb.append(sb2.toString()); + } + Spanned fromHtml = Html.fromHtml(aVar.p.toString()); + String str = null; + int i8 = 0; + while (true) { + if (i8 < aVar.q.size()) { + String str2 = aVar.q.get(i8); + if (str2.matches("\\{\\\\an[1-9]\\}")) { + str = str2; + } else { + i8++; + } + } + } + if (str == null) { + bVar = new b(fromHtml, null, null, null, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, ViewCompat.MEASURED_STATE_MASK, Integer.MIN_VALUE, 0.0f, null); + jArr = jArr2; + xVar2 = xVar3; + i2 = i6; + } else { + jArr = jArr2; + xVar2 = xVar3; + switch (str.hashCode()) { + case -685620710: + if (str.equals("{\\an1}")) { + c = 0; + break; + } + c = 65535; + break; + case -685620679: + if (str.equals("{\\an2}")) { + c = 6; + break; + } + c = 65535; + break; + case -685620648: + if (str.equals("{\\an3}")) { + c = 3; + break; + } + c = 65535; + break; + case -685620617: + if (str.equals("{\\an4}")) { + c = 1; + break; + } + c = 65535; + break; + case -685620586: + if (str.equals("{\\an5}")) { + c = 7; + break; + } + c = 65535; + break; + case -685620555: + if (str.equals("{\\an6}")) { + c = 4; + break; + } + c = 65535; + break; + case -685620524: + if (str.equals("{\\an7}")) { + c = 2; + break; + } + c = 65535; + break; + case -685620493: + if (str.equals("{\\an8}")) { + c = '\b'; + break; + } + c = 65535; + break; + case -685620462: + if (str.equals("{\\an9}")) { + c = 5; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + i2 = i6; + int i9 = (c == 0 || c == 1 || c == 2) ? 0 : (c == 3 || c == 4 || c == 5) ? 2 : 1; + switch (str.hashCode()) { + case -685620710: + if (str.equals("{\\an1}")) { + c2 = 0; + break; + } + c2 = 65535; + break; + case -685620679: + if (str.equals("{\\an2}")) { + c2 = 1; + break; + } + c2 = 65535; + break; + case -685620648: + if (str.equals("{\\an3}")) { + c2 = 2; + break; + } + c2 = 65535; + break; + case -685620617: + if (str.equals("{\\an4}")) { + c2 = 6; + break; + } + c2 = 65535; + break; + case -685620586: + if (str.equals("{\\an5}")) { + c2 = 7; + break; + } + c2 = 65535; + break; + case -685620555: + if (str.equals("{\\an6}")) { + c2 = '\b'; + break; + } + c2 = 65535; + break; + case -685620524: + if (str.equals("{\\an7}")) { + c2 = 3; + break; + } + c2 = 65535; + break; + case -685620493: + if (str.equals("{\\an8}")) { + c2 = 4; + break; + } + c2 = 65535; + break; + case -685620462: + if (str.equals("{\\an9}")) { + c2 = 5; + break; + } + c2 = 65535; + break; + default: + c2 = 65535; + break; + } + int i10 = (c2 == 0 || c2 == 1 || c2 == 2) ? 2 : (c2 == 3 || c2 == 4 || c2 == 5) ? 0 : 1; + bVar = new b(fromHtml, null, null, null, k(i10), 0, i10, k(i9), i9, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, ViewCompat.MEASURED_STATE_MASK, Integer.MIN_VALUE, 0.0f, null); + } + arrayList.add(bVar); + arrayList.add(b.j); + aVar = this; + jArr2 = jArr; + xVar3 = xVar2; + i4 = i2; + i3 = 0; + } else { + xVar = xVar3; + Log.w("SubripDecoder", g2.length() != 0 ? "Skipping invalid timing: ".concat(g2) : new String("Skipping invalid timing: ")); + aVar = this; + xVar3 = xVar; + i3 = 0; + } + } + } catch (NumberFormatException unused) { + xVar = xVar3; + Log.w("SubripDecoder", g.length() != 0 ? "Skipping invalid index: ".concat(g) : new String("Skipping invalid index: ")); + } + } + } + } + return new b((b[]) arrayList.toArray(new b[0]), Arrays.copyOf(jArr2, i4)); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/s/b.java b/app/src/main/java/b/i/a/c/b3/s/b.java new file mode 100644 index 0000000000..1d6eedcf07 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/s/b.java @@ -0,0 +1,54 @@ +package b.i.a.c.b3.s; + +import b.c.a.a0.d; +import b.i.a.c.b3.g; +import b.i.a.c.f3.e0; +import java.util.Collections; +import java.util.List; +/* compiled from: SubripSubtitle */ +public final class b implements g { + public final b.i.a.c.b3.b[] j; + public final long[] k; + + public b(b.i.a.c.b3.b[] bVarArr, long[] jArr) { + this.j = bVarArr; + this.k = jArr; + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + int b2 = e0.b(this.k, j, false, false); + if (b2 < this.k.length) { + return b2; + } + return -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + boolean z2 = true; + d.j(i >= 0); + if (i >= this.k.length) { + z2 = false; + } + d.j(z2); + return this.k[i]; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + int e = e0.e(this.k, j, true, false); + if (e != -1) { + b.i.a.c.b3.b[] bVarArr = this.j; + if (bVarArr[e] != b.i.a.c.b3.b.j) { + return Collections.singletonList(bVarArr[e]); + } + } + return Collections.emptyList(); + } + + @Override // b.i.a.c.b3.g + public int i() { + return this.k.length; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/t/a.java b/app/src/main/java/b/i/a/c/b3/t/a.java new file mode 100644 index 0000000000..cacef65583 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/t/a.java @@ -0,0 +1,4 @@ +package b.i.a.c.b3.t; +/* compiled from: DeleteTextSpan */ +public final class a { +} diff --git a/app/src/main/java/b/i/a/c/b3/t/b.java b/app/src/main/java/b/i/a/c/b3/t/b.java new file mode 100644 index 0000000000..9afd694583 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/t/b.java @@ -0,0 +1,27 @@ +package b.i.a.c.b3.t; + +import b.i.b.b.r; +import java.util.regex.Pattern; +/* compiled from: TextEmphasis */ +public final class b { + public static final Pattern a = Pattern.compile("\\s+"); + + /* renamed from: b reason: collision with root package name */ + public static final r f865b = r.l(2, "auto", "none"); + public static final r c = r.r("dot", "sesame", "circle"); + public static final r d = r.l(2, "filled", "open"); + public static final r e = r.r("after", "before", "outside"); + public final int f; + public final int g; + public final int h; + + static { + int i = r.k; + } + + public b(int i, int i2, int i3) { + this.f = i; + this.g = i2; + this.h = i3; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/t/c.java b/app/src/main/java/b/i/a/c/b3/t/c.java new file mode 100644 index 0000000000..997c622b7a --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/t/c.java @@ -0,0 +1,1300 @@ +package b.i.a.c.b3.t; + +import android.text.Layout; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.core.app.NotificationCompat; +import b.c.a.a0.d; +import b.i.a.c.b3.f; +import b.i.a.c.b3.g; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.i; +import b.i.a.c.f3.q; +import b.i.b.b.h; +import b.i.b.b.n0; +import b.i.b.b.p0; +import b.i.b.b.r; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import org.xmlpull.v1.XmlPullParser; +import org.xmlpull.v1.XmlPullParserException; +import org.xmlpull.v1.XmlPullParserFactory; +/* compiled from: TtmlDecoder */ +public final class c extends f { + public static final Pattern n = Pattern.compile("^([0-9][0-9]+):([0-9][0-9]):([0-9][0-9])(?:(\\.[0-9]+)|:([0-9][0-9])(?:\\.([0-9]+))?)?$"); + public static final Pattern o = Pattern.compile("^([0-9]+(?:\\.[0-9]+)?)(h|m|s|ms|f|t)$"); + public static final Pattern p = Pattern.compile("^(([0-9]*.)?[0-9]+)(px|em|%)$"); + public static final Pattern q = Pattern.compile("^([-+]?\\d+\\.?\\d*?)%$"); + public static final Pattern r = Pattern.compile("^(\\d+\\.?\\d*?)% (\\d+\\.?\\d*?)%$"); + + /* renamed from: s reason: collision with root package name */ + public static final Pattern f866s = Pattern.compile("^(\\d+\\.?\\d*?)px (\\d+\\.?\\d*?)px$"); + public static final Pattern t = Pattern.compile("^(\\d+) (\\d+)$"); + public static final b u = new b(30.0f, 1, 1); + public static final a v = new a(32, 15); + public final XmlPullParserFactory w; + + /* compiled from: TtmlDecoder */ + public static final class a { + public final int a; + + public a(int i, int i2) { + this.a = i2; + } + } + + /* compiled from: TtmlDecoder */ + public static final class b { + public final float a; + + /* renamed from: b reason: collision with root package name */ + public final int f867b; + public final int c; + + public b(float f, int i, int i2) { + this.a = f; + this.f867b = i; + this.c = i2; + } + } + + /* compiled from: TtmlDecoder */ + /* renamed from: b.i.a.c.b3.t.c$c reason: collision with other inner class name */ + public static final class C0088c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f868b; + + public C0088c(int i, int i2) { + this.a = i; + this.f868b = i2; + } + } + + public c() { + super("TtmlDecoder"); + try { + XmlPullParserFactory newInstance = XmlPullParserFactory.newInstance(); + this.w = newInstance; + newInstance.setNamespaceAware(true); + } catch (XmlPullParserException e) { + throw new RuntimeException("Couldn't create XmlPullParserFactory instance", e); + } + } + + public static f k(@Nullable f fVar) { + return fVar == null ? new f() : fVar; + } + + public static boolean l(String str) { + return str.equals("tt") || str.equals("head") || str.equals("body") || str.equals("div") || str.equals("p") || str.equals("span") || str.equals("br") || str.equals("style") || str.equals("styling") || str.equals("layout") || str.equals(ModelAuditLogEntry.CHANGE_KEY_REGION) || str.equals("metadata") || str.equals("image") || str.equals("data") || str.equals("information"); + } + + @Nullable + public static Layout.Alignment m(String str) { + String m1 = b.i.a.f.e.o.f.m1(str); + m1.hashCode(); + char c = 65535; + switch (m1.hashCode()) { + case -1364013995: + if (m1.equals("center")) { + c = 0; + break; + } + break; + case 100571: + if (m1.equals("end")) { + c = 1; + break; + } + break; + case 3317767: + if (m1.equals("left")) { + c = 2; + break; + } + break; + case 108511772: + if (m1.equals("right")) { + c = 3; + break; + } + break; + case 109757538: + if (m1.equals("start")) { + c = 4; + break; + } + break; + } + switch (c) { + case 0: + return Layout.Alignment.ALIGN_CENTER; + case 1: + case 3: + return Layout.Alignment.ALIGN_OPPOSITE; + case 2: + case 4: + return Layout.Alignment.ALIGN_NORMAL; + default: + return null; + } + } + + public static a n(XmlPullParser xmlPullParser, a aVar) throws SubtitleDecoderException { + String attributeValue = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "cellResolution"); + if (attributeValue == null) { + return aVar; + } + Matcher matcher = t.matcher(attributeValue); + if (!matcher.matches()) { + Log.w("TtmlDecoder", attributeValue.length() != 0 ? "Ignoring malformed cell resolution: ".concat(attributeValue) : new String("Ignoring malformed cell resolution: ")); + return aVar; + } + try { + String group = matcher.group(1); + Objects.requireNonNull(group); + int parseInt = Integer.parseInt(group); + String group2 = matcher.group(2); + Objects.requireNonNull(group2); + int parseInt2 = Integer.parseInt(group2); + if (parseInt != 0 && parseInt2 != 0) { + return new a(parseInt, parseInt2); + } + StringBuilder sb = new StringBuilder(47); + sb.append("Invalid cell resolution "); + sb.append(parseInt); + sb.append(" "); + sb.append(parseInt2); + throw new SubtitleDecoderException(sb.toString()); + } catch (NumberFormatException unused) { + Log.w("TtmlDecoder", attributeValue.length() != 0 ? "Ignoring malformed cell resolution: ".concat(attributeValue) : new String("Ignoring malformed cell resolution: ")); + return aVar; + } + } + + public static void o(String str, f fVar) throws SubtitleDecoderException { + Matcher matcher; + int i = e0.a; + String[] split = str.split("\\s+", -1); + if (split.length == 1) { + matcher = p.matcher(str); + } else if (split.length == 2) { + matcher = p.matcher(split[1]); + Log.w("TtmlDecoder", "Multiple values in fontSize attribute. Picking the second value for vertical font size and ignoring the first."); + } else { + int length = split.length; + StringBuilder sb = new StringBuilder(52); + sb.append("Invalid number of entries for fontSize: "); + sb.append(length); + sb.append("."); + throw new SubtitleDecoderException(sb.toString()); + } + if (matcher.matches()) { + String group = matcher.group(3); + Objects.requireNonNull(group); + group.hashCode(); + char c = 65535; + switch (group.hashCode()) { + case 37: + if (group.equals("%")) { + c = 0; + break; + } + break; + case 3240: + if (group.equals("em")) { + c = 1; + break; + } + break; + case 3592: + if (group.equals("px")) { + c = 2; + break; + } + break; + } + switch (c) { + case 0: + fVar.j = 3; + break; + case 1: + fVar.j = 2; + break; + case 2: + fVar.j = 1; + break; + default: + throw new SubtitleDecoderException(b.d.b.a.a.j(group.length() + 30, "Invalid unit for fontSize: '", group, "'.")); + } + String group2 = matcher.group(1); + Objects.requireNonNull(group2); + fVar.k = Float.parseFloat(group2); + return; + } + throw new SubtitleDecoderException(b.d.b.a.a.j(str.length() + 36, "Invalid expression for fontSize: '", str, "'.")); + } + + public static b p(XmlPullParser xmlPullParser) throws SubtitleDecoderException { + String attributeValue = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "frameRate"); + int parseInt = attributeValue != null ? Integer.parseInt(attributeValue) : 30; + float f = 1.0f; + String attributeValue2 = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "frameRateMultiplier"); + if (attributeValue2 != null) { + int i = e0.a; + String[] split = attributeValue2.split(" ", -1); + if (split.length == 2) { + f = ((float) Integer.parseInt(split[0])) / ((float) Integer.parseInt(split[1])); + } else { + throw new SubtitleDecoderException("frameRateMultiplier doesn't have 2 parts"); + } + } + b bVar = u; + int i2 = bVar.f867b; + String attributeValue3 = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "subFrameRate"); + if (attributeValue3 != null) { + i2 = Integer.parseInt(attributeValue3); + } + int i3 = bVar.c; + String attributeValue4 = xmlPullParser.getAttributeValue("http://www.w3.org/ns/ttml#parameter", "tickRate"); + if (attributeValue4 != null) { + i3 = Integer.parseInt(attributeValue4); + } + return new b(((float) parseInt) * f, i2, i3); + } + + /* JADX WARNING: Removed duplicated region for block: B:124:0x026b */ + /* JADX WARNING: Removed duplicated region for block: B:75:0x01ae */ + /* JADX WARNING: Removed duplicated region for block: B:92:0x01eb A[ADDED_TO_REGION] */ + public static Map q(XmlPullParser xmlPullParser, Map map, a aVar, @Nullable C0088c cVar, Map map2, Map map3) throws IOException, XmlPullParserException { + String q0; + e eVar; + float f; + float f2; + float f3; + float f4; + int i; + float f5; + String q02; + int i2; + char c; + do { + xmlPullParser.next(); + if (d.X0(xmlPullParser, "style")) { + String q03 = d.q0(xmlPullParser, "style"); + f s2 = s(xmlPullParser, new f()); + if (q03 != null) { + for (String str : t(q03)) { + s2.a(map.get(str)); + } + } + String str2 = s2.l; + if (str2 != null) { + map.put(str2, s2); + } + } else if (d.X0(xmlPullParser, ModelAuditLogEntry.CHANGE_KEY_REGION)) { + String q04 = d.q0(xmlPullParser, ModelAuditLogEntry.CHANGE_KEY_ID); + if (q04 != null) { + String q05 = d.q0(xmlPullParser, "origin"); + if (q05 != null) { + Pattern pattern = r; + Matcher matcher = pattern.matcher(q05); + Pattern pattern2 = f866s; + Matcher matcher2 = pattern2.matcher(q05); + if (matcher.matches()) { + try { + String group = matcher.group(1); + Objects.requireNonNull(group); + f = Float.parseFloat(group) / 100.0f; + String group2 = matcher.group(2); + Objects.requireNonNull(group2); + f2 = Float.parseFloat(group2) / 100.0f; + } catch (NumberFormatException unused) { + Log.w("TtmlDecoder", q05.length() != 0 ? "Ignoring region with malformed origin: ".concat(q05) : new String("Ignoring region with malformed origin: ")); + } + } else if (!matcher2.matches()) { + Log.w("TtmlDecoder", q05.length() != 0 ? "Ignoring region with unsupported origin: ".concat(q05) : new String("Ignoring region with unsupported origin: ")); + } else if (cVar == null) { + Log.w("TtmlDecoder", q05.length() != 0 ? "Ignoring region with missing tts:extent: ".concat(q05) : new String("Ignoring region with missing tts:extent: ")); + } else { + try { + String group3 = matcher2.group(1); + Objects.requireNonNull(group3); + int parseInt = Integer.parseInt(group3); + String group4 = matcher2.group(2); + Objects.requireNonNull(group4); + int parseInt2 = Integer.parseInt(group4); + float f6 = ((float) parseInt) / ((float) cVar.a); + float f7 = ((float) parseInt2) / ((float) cVar.f868b); + f = f6; + f2 = f7; + } catch (NumberFormatException unused2) { + Log.w("TtmlDecoder", q05.length() != 0 ? "Ignoring region with malformed origin: ".concat(q05) : new String("Ignoring region with malformed origin: ")); + } + } + String q06 = d.q0(xmlPullParser, "extent"); + if (q06 != null) { + Matcher matcher3 = pattern.matcher(q06); + Matcher matcher4 = pattern2.matcher(q06); + if (matcher3.matches()) { + try { + String group5 = matcher3.group(1); + Objects.requireNonNull(group5); + float parseFloat = Float.parseFloat(group5) / 100.0f; + String group6 = matcher3.group(2); + Objects.requireNonNull(group6); + f3 = Float.parseFloat(group6) / 100.0f; + f4 = parseFloat; + } catch (NumberFormatException unused3) { + Log.w("TtmlDecoder", q05.length() != 0 ? "Ignoring region with malformed extent: ".concat(q05) : new String("Ignoring region with malformed extent: ")); + } + } else if (!matcher4.matches()) { + Log.w("TtmlDecoder", q05.length() != 0 ? "Ignoring region with unsupported extent: ".concat(q05) : new String("Ignoring region with unsupported extent: ")); + } else if (cVar == null) { + Log.w("TtmlDecoder", q05.length() != 0 ? "Ignoring region with missing tts:extent: ".concat(q05) : new String("Ignoring region with missing tts:extent: ")); + } else { + try { + String group7 = matcher4.group(1); + Objects.requireNonNull(group7); + int parseInt3 = Integer.parseInt(group7); + String group8 = matcher4.group(2); + Objects.requireNonNull(group8); + float parseInt4 = (float) Integer.parseInt(group8); + f4 = ((float) parseInt3) / ((float) cVar.a); + f3 = parseInt4 / ((float) cVar.f868b); + } catch (NumberFormatException unused4) { + Log.w("TtmlDecoder", q05.length() != 0 ? "Ignoring region with malformed extent: ".concat(q05) : new String("Ignoring region with malformed extent: ")); + } + } + String q07 = d.q0(xmlPullParser, "displayAlign"); + if (q07 != null) { + String m1 = b.i.a.f.e.o.f.m1(q07); + m1.hashCode(); + if (m1.equals("center")) { + f5 = (f3 / 2.0f) + f2; + i = 1; + } else if (m1.equals("after")) { + f5 = f2 + f3; + i = 2; + } + float f8 = 1.0f / ((float) aVar.a); + q02 = d.q0(xmlPullParser, "writingMode"); + if (q02 != null) { + String m12 = b.i.a.f.e.o.f.m1(q02); + m12.hashCode(); + int hashCode = m12.hashCode(); + if (hashCode != 3694) { + if (hashCode != 3553396) { + if (hashCode == 3553576 && m12.equals("tbrl")) { + c = 2; + if (c != 0 || c == 1) { + i2 = 2; + eVar = new e(q04, f, f5, 0, i, f4, f3, 1, f8, i2); + if (eVar != null) { + map2.put(eVar.a, eVar); + } + } else if (c == 2) { + i2 = 1; + eVar = new e(q04, f, f5, 0, i, f4, f3, 1, f8, i2); + if (eVar != null) { + } + } + } + } else if (m12.equals("tblr")) { + c = 1; + if (c != 0) { + } + i2 = 2; + eVar = new e(q04, f, f5, 0, i, f4, f3, 1, f8, i2); + if (eVar != null) { + } + } + } else if (m12.equals("tb")) { + c = 0; + if (c != 0) { + } + i2 = 2; + eVar = new e(q04, f, f5, 0, i, f4, f3, 1, f8, i2); + if (eVar != null) { + } + } + c = 65535; + if (c != 0) { + } + i2 = 2; + eVar = new e(q04, f, f5, 0, i, f4, f3, 1, f8, i2); + if (eVar != null) { + } + } + i2 = Integer.MIN_VALUE; + eVar = new e(q04, f, f5, 0, i, f4, f3, 1, f8, i2); + if (eVar != null) { + } + } + f5 = f2; + i = 0; + float f8 = 1.0f / ((float) aVar.a); + q02 = d.q0(xmlPullParser, "writingMode"); + if (q02 != null) { + } + i2 = Integer.MIN_VALUE; + eVar = new e(q04, f, f5, 0, i, f4, f3, 1, f8, i2); + if (eVar != null) { + } + } else { + Log.w("TtmlDecoder", "Ignoring region without an extent"); + } + } else { + Log.w("TtmlDecoder", "Ignoring region without an origin"); + } + } + eVar = null; + if (eVar != null) { + } + } else if (d.X0(xmlPullParser, "metadata")) { + do { + xmlPullParser.next(); + if (d.X0(xmlPullParser, "image") && (q0 = d.q0(xmlPullParser, ModelAuditLogEntry.CHANGE_KEY_ID)) != null) { + map3.put(q0, xmlPullParser.nextText()); + } + } while (!d.Q0(xmlPullParser, "metadata")); + } + } while (!d.Q0(xmlPullParser, "head")); + return map; + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + public static d r(XmlPullParser xmlPullParser, @Nullable d dVar, Map map, b bVar) throws SubtitleDecoderException { + long j; + long j2; + char c; + XmlPullParser xmlPullParser2 = xmlPullParser; + int attributeCount = xmlPullParser.getAttributeCount(); + f s2 = s(xmlPullParser2, null); + String str = null; + String str2 = ""; + long j3 = -9223372036854775807L; + long j4 = -9223372036854775807L; + long j5 = -9223372036854775807L; + String[] strArr = null; + int i = 0; + while (i < attributeCount) { + String attributeName = xmlPullParser2.getAttributeName(i); + String attributeValue = xmlPullParser2.getAttributeValue(i); + attributeName.hashCode(); + switch (attributeName.hashCode()) { + case -934795532: + if (attributeName.equals(ModelAuditLogEntry.CHANGE_KEY_REGION)) { + c = 0; + break; + } + c = 65535; + break; + case 99841: + if (attributeName.equals("dur")) { + c = 1; + break; + } + c = 65535; + break; + case 100571: + if (attributeName.equals("end")) { + c = 2; + break; + } + c = 65535; + break; + case 93616297: + if (attributeName.equals("begin")) { + c = 3; + break; + } + c = 65535; + break; + case 109780401: + if (attributeName.equals("style")) { + c = 4; + break; + } + c = 65535; + break; + case 1292595405: + if (attributeName.equals("backgroundImage")) { + c = 5; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + if (c != 0) { + if (c == 1) { + j5 = u(attributeValue, bVar); + } else if (c == 2) { + j4 = u(attributeValue, bVar); + } else if (c == 3) { + j3 = u(attributeValue, bVar); + } else if (c == 4) { + String[] t2 = t(attributeValue); + if (t2.length > 0) { + strArr = t2; + } + } else if (c == 5 && attributeValue.startsWith("#")) { + str = attributeValue.substring(1); + } + } else if (map.containsKey(attributeValue)) { + str2 = attributeValue; + } + i++; + xmlPullParser2 = xmlPullParser; + } + if (dVar != null) { + long j6 = dVar.d; + j = -9223372036854775807L; + if (j6 != -9223372036854775807L) { + if (j3 != -9223372036854775807L) { + j3 += j6; + } + if (j4 != -9223372036854775807L) { + j4 += j6; + } + } + } else { + j = -9223372036854775807L; + } + if (j4 == j) { + if (j5 != j) { + j2 = j3 + j5; + } else if (dVar != null) { + long j7 = dVar.e; + if (j7 != j) { + j2 = j7; + } + } + return new d(xmlPullParser.getName(), null, j3, j2, s2, strArr, str2, str, dVar); + } + j2 = j4; + return new d(xmlPullParser.getName(), null, j3, j2, s2, strArr, str2, str, dVar); + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:103:0x01e6, code lost: + if (r5.equals("auto") != false) goto L_0x01ea; + */ + /* JADX WARNING: Removed duplicated region for block: B:106:0x01ed */ + /* JADX WARNING: Removed duplicated region for block: B:108:0x01f4 */ + /* JADX WARNING: Removed duplicated region for block: B:126:0x0246 */ + /* JADX WARNING: Removed duplicated region for block: B:127:0x0248 */ + /* JADX WARNING: Removed duplicated region for block: B:130:0x025a */ + /* JADX WARNING: Removed duplicated region for block: B:140:0x0279 */ + /* JADX WARNING: Removed duplicated region for block: B:144:0x0282 */ + /* JADX WARNING: Removed duplicated region for block: B:147:0x0288 */ + /* JADX WARNING: Removed duplicated region for block: B:89:0x01a9 */ + /* JADX WARNING: Removed duplicated region for block: B:92:0x01af */ + /* JADX WARNING: Removed duplicated region for block: B:95:0x01be */ + public static f s(XmlPullParser xmlPullParser, f fVar) { + char c; + char c2; + h.a aVar; + b bVar; + char c3; + int hashCode; + int attributeCount = xmlPullParser.getAttributeCount(); + f fVar2 = fVar; + for (int i = 0; i < attributeCount; i++) { + String attributeValue = xmlPullParser.getAttributeValue(i); + String attributeName = xmlPullParser.getAttributeName(i); + attributeName.hashCode(); + int i2 = -1; + char c4 = 1; + switch (attributeName.hashCode()) { + case -1550943582: + if (attributeName.equals("fontStyle")) { + c = 0; + break; + } + c = 65535; + break; + case -1224696685: + if (attributeName.equals("fontFamily")) { + c = 1; + break; + } + c = 65535; + break; + case -1065511464: + if (attributeName.equals("textAlign")) { + c = 2; + break; + } + c = 65535; + break; + case -879295043: + if (attributeName.equals("textDecoration")) { + c = 3; + break; + } + c = 65535; + break; + case -734428249: + if (attributeName.equals("fontWeight")) { + c = 4; + break; + } + c = 65535; + break; + case 3355: + if (attributeName.equals(ModelAuditLogEntry.CHANGE_KEY_ID)) { + c = 5; + break; + } + c = 65535; + break; + case 3511770: + if (attributeName.equals("ruby")) { + c = 6; + break; + } + c = 65535; + break; + case 94842723: + if (attributeName.equals(ModelAuditLogEntry.CHANGE_KEY_COLOR)) { + c = 7; + break; + } + c = 65535; + break; + case 109403361: + if (attributeName.equals("shear")) { + c = '\b'; + break; + } + c = 65535; + break; + case 110138194: + if (attributeName.equals("textCombine")) { + c = '\t'; + break; + } + c = 65535; + break; + case 365601008: + if (attributeName.equals("fontSize")) { + c = '\n'; + break; + } + c = 65535; + break; + case 921125321: + if (attributeName.equals("textEmphasis")) { + c = 11; + break; + } + c = 65535; + break; + case 1115953443: + if (attributeName.equals("rubyPosition")) { + c = '\f'; + break; + } + c = 65535; + break; + case 1287124693: + if (attributeName.equals("backgroundColor")) { + c = '\r'; + break; + } + c = 65535; + break; + case 1754920356: + if (attributeName.equals("multiRowAlign")) { + c = 14; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + switch (c) { + case 0: + fVar2 = k(fVar2); + fVar2.i = "italic".equalsIgnoreCase(attributeValue) ? 1 : 0; + break; + case 1: + fVar2 = k(fVar2); + fVar2.a = attributeValue; + break; + case 2: + fVar2 = k(fVar2); + fVar2.o = m(attributeValue); + break; + case 3: + String m1 = b.i.a.f.e.o.f.m1(attributeValue); + m1.hashCode(); + switch (m1.hashCode()) { + case -1461280213: + if (m1.equals("nounderline")) { + i2 = 0; + break; + } + break; + case -1026963764: + if (m1.equals("underline")) { + i2 = 1; + break; + } + break; + case 913457136: + if (m1.equals("nolinethrough")) { + i2 = 2; + break; + } + break; + case 1679736913: + if (m1.equals("linethrough")) { + i2 = 3; + break; + } + break; + } + if (i2 != 0) { + if (i2 != 1) { + if (i2 != 2) { + if (i2 != 3) { + break; + } else { + fVar2 = k(fVar2); + fVar2.f = 1; + break; + } + } else { + fVar2 = k(fVar2); + fVar2.f = 0; + break; + } + } else { + fVar2 = k(fVar2); + fVar2.g = 1; + break; + } + } else { + fVar2 = k(fVar2); + fVar2.g = 0; + break; + } + case 4: + fVar2 = k(fVar2); + fVar2.h = "bold".equalsIgnoreCase(attributeValue) ? 1 : 0; + break; + case 5: + if ("style".equals(xmlPullParser.getName())) { + fVar2 = k(fVar2); + fVar2.l = attributeValue; + break; + } else { + break; + } + case 6: + String m12 = b.i.a.f.e.o.f.m1(attributeValue); + m12.hashCode(); + switch (m12.hashCode()) { + case -618561360: + if (m12.equals("baseContainer")) { + i2 = 0; + break; + } + break; + case -410956671: + if (m12.equals("container")) { + i2 = 1; + break; + } + break; + case -250518009: + if (m12.equals("delimiter")) { + i2 = 2; + break; + } + break; + case -136074796: + if (m12.equals("textContainer")) { + i2 = 3; + break; + } + break; + case 3016401: + if (m12.equals("base")) { + i2 = 4; + break; + } + break; + case 3556653: + if (m12.equals(NotificationCompat.MessagingStyle.Message.KEY_TEXT)) { + i2 = 5; + break; + } + break; + } + if (i2 != 0) { + if (i2 != 1) { + if (i2 != 2) { + if (i2 != 3) { + if (i2 != 4) { + if (i2 != 5) { + break; + } + } + } + fVar2 = k(fVar2); + fVar2.m = 3; + break; + } else { + fVar2 = k(fVar2); + fVar2.m = 4; + break; + } + } else { + fVar2 = k(fVar2); + fVar2.m = 1; + break; + } + } + fVar2 = k(fVar2); + fVar2.m = 2; + break; + case 7: + fVar2 = k(fVar2); + try { + fVar2.f871b = i.a(attributeValue, false); + fVar2.c = true; + break; + } catch (IllegalArgumentException unused) { + String valueOf = String.valueOf(attributeValue); + Log.w("TtmlDecoder", valueOf.length() != 0 ? "Failed parsing color value: ".concat(valueOf) : new String("Failed parsing color value: ")); + break; + } + case '\b': + f k = k(fVar2); + Matcher matcher = q.matcher(attributeValue); + float f = Float.MAX_VALUE; + if (!matcher.matches()) { + String valueOf2 = String.valueOf(attributeValue); + Log.w("TtmlDecoder", valueOf2.length() != 0 ? "Invalid value for shear: ".concat(valueOf2) : new String("Invalid value for shear: ")); + } else { + try { + String group = matcher.group(1); + Objects.requireNonNull(group); + f = Math.min(100.0f, Math.max(-100.0f, Float.parseFloat(group))); + } catch (NumberFormatException e) { + String valueOf3 = String.valueOf(attributeValue); + q.c("TtmlDecoder", valueOf3.length() != 0 ? "Failed to parse shear: ".concat(valueOf3) : new String("Failed to parse shear: "), e); + } + } + k.f872s = f; + fVar2 = k; + break; + case '\t': + String m13 = b.i.a.f.e.o.f.m1(attributeValue); + m13.hashCode(); + if (!m13.equals("all")) { + if (!m13.equals("none")) { + break; + } else { + fVar2 = k(fVar2); + fVar2.q = 0; + break; + } + } else { + fVar2 = k(fVar2); + fVar2.q = 1; + break; + } + case '\n': + try { + fVar2 = k(fVar2); + o(attributeValue, fVar2); + break; + } catch (SubtitleDecoderException unused2) { + String valueOf4 = String.valueOf(attributeValue); + Log.w("TtmlDecoder", valueOf4.length() != 0 ? "Failed parsing fontSize value: ".concat(valueOf4) : new String("Failed parsing fontSize value: ")); + break; + } + case 11: + fVar2 = k(fVar2); + Pattern pattern = b.a; + b bVar2 = null; + if (attributeValue != null) { + String m14 = b.i.a.f.e.o.f.m1(attributeValue.trim()); + if (!m14.isEmpty()) { + r n2 = r.n(TextUtils.split(m14, b.a)); + String str = (String) b.i.a.f.e.o.f.i0(h.b(b.e, n2), "outside"); + int hashCode2 = str.hashCode(); + if (hashCode2 != -1392885889) { + if (hashCode2 != -1106037339) { + if (hashCode2 == 92734940 && str.equals("after")) { + c2 = 0; + int i3 = c2 == 0 ? c2 != 1 ? 1 : -2 : 2; + aVar = (h.a) h.b(b.f865b, n2); + if (aVar.isEmpty()) { + String next = new n0(aVar).next(); + int hashCode3 = next.hashCode(); + if (hashCode3 == 3005871) { + break; + } else if (hashCode3 == 3387192 && next.equals("none")) { + c4 = 0; + if (c4 == 0) { + i2 = 0; + } + bVar = new b(i2, 0, i3); + } + c4 = 65535; + if (c4 == 0) { + } + bVar = new b(i2, 0, i3); + } else { + p0 b2 = h.b(b.d, n2); + p0 b3 = h.b(b.c, n2); + if (!((h.a) b2).isEmpty() || !((h.a) b3).isEmpty()) { + String str2 = (String) b.i.a.f.e.o.f.i0(b2, "filled"); + int hashCode4 = str2.hashCode(); + if (hashCode4 != -1274499742) { + if (hashCode4 == 3417674 && str2.equals("open")) { + c3 = 0; + int i4 = c3 != 0 ? 1 : 2; + String str3 = (String) b.i.a.f.e.o.f.i0(b3, "circle"); + hashCode = str3.hashCode(); + if (hashCode != -1360216880) { + if (hashCode != -905816648) { + if (hashCode == 99657 && str3.equals("dot")) { + i2 = 0; + } + } else if (str3.equals("sesame")) { + i2 = 1; + } + } else if (str3.equals("circle")) { + i2 = 2; + } + bVar = new b(i2 != 0 ? i2 != 1 ? 1 : 3 : 2, i4, i3); + } + } else if (str2.equals("filled")) { + c3 = 1; + if (c3 != 0) { + } + String str3 = (String) b.i.a.f.e.o.f.i0(b3, "circle"); + hashCode = str3.hashCode(); + if (hashCode != -1360216880) { + } + bVar = new b(i2 != 0 ? i2 != 1 ? 1 : 3 : 2, i4, i3); + } + c3 = 65535; + if (c3 != 0) { + } + String str3 = (String) b.i.a.f.e.o.f.i0(b3, "circle"); + hashCode = str3.hashCode(); + if (hashCode != -1360216880) { + } + bVar = new b(i2 != 0 ? i2 != 1 ? 1 : 3 : 2, i4, i3); + } else { + bVar = new b(-1, 0, i3); + } + } + bVar2 = bVar; + } + } else if (str.equals("outside")) { + c2 = 1; + if (c2 == 0) { + } + aVar = (h.a) h.b(b.f865b, n2); + if (aVar.isEmpty()) { + } + bVar2 = bVar; + } + } else if (str.equals("before")) { + c2 = 2; + if (c2 == 0) { + } + aVar = (h.a) h.b(b.f865b, n2); + if (aVar.isEmpty()) { + } + bVar2 = bVar; + } + c2 = 65535; + if (c2 == 0) { + } + aVar = (h.a) h.b(b.f865b, n2); + if (aVar.isEmpty()) { + } + bVar2 = bVar; + } + } + fVar2.r = bVar2; + break; + case '\f': + String m15 = b.i.a.f.e.o.f.m1(attributeValue); + m15.hashCode(); + if (!m15.equals("before")) { + if (!m15.equals("after")) { + break; + } else { + fVar2 = k(fVar2); + fVar2.n = 2; + break; + } + } else { + fVar2 = k(fVar2); + fVar2.n = 1; + break; + } + case '\r': + fVar2 = k(fVar2); + try { + fVar2.d = i.a(attributeValue, false); + fVar2.e = true; + break; + } catch (IllegalArgumentException unused3) { + String valueOf5 = String.valueOf(attributeValue); + Log.w("TtmlDecoder", valueOf5.length() != 0 ? "Failed parsing background value: ".concat(valueOf5) : new String("Failed parsing background value: ")); + break; + } + case 14: + fVar2 = k(fVar2); + fVar2.p = m(attributeValue); + break; + } + } + return fVar2; + } + + public static String[] t(String str) { + String trim = str.trim(); + if (trim.isEmpty()) { + return new String[0]; + } + int i = e0.a; + return trim.split("\\s+", -1); + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:21:0x00ad, code lost: + if (r13.equals("ms") == false) goto L_0x00a5; + */ + public static long u(String str, b bVar) throws SubtitleDecoderException { + double d; + double d2; + Matcher matcher = n.matcher(str); + char c = 4; + if (matcher.matches()) { + String group = matcher.group(1); + Objects.requireNonNull(group); + String group2 = matcher.group(2); + Objects.requireNonNull(group2); + String group3 = matcher.group(3); + Objects.requireNonNull(group3); + double parseLong = ((double) (Long.parseLong(group) * 3600)) + ((double) (Long.parseLong(group2) * 60)) + ((double) Long.parseLong(group3)); + String group4 = matcher.group(4); + double d3 = ShadowDrawableWrapper.COS_45; + double parseDouble = parseLong + (group4 != null ? Double.parseDouble(group4) : 0.0d); + String group5 = matcher.group(5); + double parseLong2 = parseDouble + (group5 != null ? (double) (((float) Long.parseLong(group5)) / bVar.a) : 0.0d); + String group6 = matcher.group(6); + if (group6 != null) { + d3 = (((double) Long.parseLong(group6)) / ((double) bVar.f867b)) / ((double) bVar.a); + } + return (long) ((parseLong2 + d3) * 1000000.0d); + } + Matcher matcher2 = o.matcher(str); + if (matcher2.matches()) { + String group7 = matcher2.group(1); + Objects.requireNonNull(group7); + double parseDouble2 = Double.parseDouble(group7); + String group8 = matcher2.group(2); + Objects.requireNonNull(group8); + switch (group8.hashCode()) { + case 102: + if (group8.equals("f")) { + c = 0; + break; + } + c = 65535; + break; + case 104: + if (group8.equals("h")) { + c = 1; + break; + } + c = 65535; + break; + case 109: + if (group8.equals("m")) { + c = 2; + break; + } + c = 65535; + break; + case 116: + if (group8.equals("t")) { + c = 3; + break; + } + c = 65535; + break; + case 3494: + break; + default: + c = 65535; + break; + } + switch (c) { + case 0: + d = (double) bVar.a; + parseDouble2 /= d; + return (long) (parseDouble2 * 1000000.0d); + case 1: + d2 = 3600.0d; + parseDouble2 *= d2; + return (long) (parseDouble2 * 1000000.0d); + case 2: + d2 = 60.0d; + parseDouble2 *= d2; + return (long) (parseDouble2 * 1000000.0d); + case 3: + d = (double) bVar.c; + parseDouble2 /= d; + return (long) (parseDouble2 * 1000000.0d); + case 4: + d = 1000.0d; + parseDouble2 /= d; + return (long) (parseDouble2 * 1000000.0d); + default: + return (long) (parseDouble2 * 1000000.0d); + } + } else { + String valueOf = String.valueOf(str); + throw new SubtitleDecoderException(valueOf.length() != 0 ? "Malformed time expression: ".concat(valueOf) : new String("Malformed time expression: ")); + } + } + + @Nullable + public static C0088c v(XmlPullParser xmlPullParser) { + String q0 = d.q0(xmlPullParser, "extent"); + if (q0 == null) { + return null; + } + Matcher matcher = f866s.matcher(q0); + if (!matcher.matches()) { + Log.w("TtmlDecoder", q0.length() != 0 ? "Ignoring non-pixel tts extent: ".concat(q0) : new String("Ignoring non-pixel tts extent: ")); + return null; + } + try { + String group = matcher.group(1); + Objects.requireNonNull(group); + int parseInt = Integer.parseInt(group); + String group2 = matcher.group(2); + Objects.requireNonNull(group2); + return new C0088c(parseInt, Integer.parseInt(group2)); + } catch (NumberFormatException unused) { + Log.w("TtmlDecoder", q0.length() != 0 ? "Ignoring malformed tts extent: ".concat(q0) : new String("Ignoring malformed tts extent: ")); + return null; + } + } + + @Override // b.i.a.c.b3.f + public g j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { + b bVar; + try { + XmlPullParser newPullParser = this.w.newPullParser(); + HashMap hashMap = new HashMap(); + HashMap hashMap2 = new HashMap(); + HashMap hashMap3 = new HashMap(); + hashMap2.put("", new e("", -3.4028235E38f, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, Integer.MIN_VALUE, -3.4028235E38f, Integer.MIN_VALUE)); + C0088c cVar = null; + newPullParser.setInput(new ByteArrayInputStream(bArr, 0, i), null); + ArrayDeque arrayDeque = new ArrayDeque(); + b bVar2 = u; + a aVar = v; + g gVar = null; + int i2 = 0; + for (int eventType = newPullParser.getEventType(); eventType != 1; eventType = newPullParser.getEventType()) { + d dVar = (d) arrayDeque.peek(); + if (i2 == 0) { + String name = newPullParser.getName(); + if (eventType == 2) { + if ("tt".equals(name)) { + bVar2 = p(newPullParser); + aVar = n(newPullParser, v); + cVar = v(newPullParser); + } + if (!l(name)) { + String valueOf = String.valueOf(newPullParser.getName()); + Log.i("TtmlDecoder", valueOf.length() != 0 ? "Ignoring unsupported tag: ".concat(valueOf) : new String("Ignoring unsupported tag: ")); + i2++; + bVar = bVar2; + } else if ("head".equals(name)) { + bVar = bVar2; + q(newPullParser, hashMap, aVar, cVar, hashMap2, hashMap3); + } else { + bVar = bVar2; + try { + d r2 = r(newPullParser, dVar, hashMap2, bVar); + arrayDeque.push(r2); + if (dVar != null) { + dVar.a(r2); + } + } catch (SubtitleDecoderException e) { + q.c("TtmlDecoder", "Suppressing parser error", e); + i2++; + } + } + bVar2 = bVar; + cVar = cVar; + aVar = aVar; + } else if (eventType == 4) { + Objects.requireNonNull(dVar); + d b2 = d.b(newPullParser.getText()); + if (dVar.m == null) { + dVar.m = new ArrayList(); + } + dVar.m.add(b2); + } else if (eventType == 3) { + if (newPullParser.getName().equals("tt")) { + d dVar2 = (d) arrayDeque.peek(); + Objects.requireNonNull(dVar2); + gVar = new g(dVar2, hashMap, hashMap2, hashMap3); + } + arrayDeque.pop(); + } + } else if (eventType == 2) { + i2++; + } else if (eventType == 3) { + i2--; + } + newPullParser.next(); + } + if (gVar != null) { + return gVar; + } + throw new SubtitleDecoderException("No TTML subtitles found"); + } catch (XmlPullParserException e2) { + throw new SubtitleDecoderException("Unable to decode source", e2); + } catch (IOException e3) { + throw new IllegalStateException("Unexpected error when reading input.", e3); + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/t/d.java b/app/src/main/java/b/i/a/c/b3/t/d.java new file mode 100644 index 0000000000..2b702f93be --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/t/d.java @@ -0,0 +1,382 @@ +package b.i.a.c.b3.t; + +import android.text.Layout; +import android.text.SpannableStringBuilder; +import android.text.style.AbsoluteSizeSpan; +import android.text.style.BackgroundColorSpan; +import android.text.style.ForegroundColorSpan; +import android.text.style.RelativeSizeSpan; +import android.text.style.StrikethroughSpan; +import android.text.style.StyleSpan; +import android.text.style.TypefaceSpan; +import android.text.style.UnderlineSpan; +import android.util.Log; +import android.util.Pair; +import androidx.annotation.Nullable; +import b.i.a.c.b3.b; +import b.i.a.c.b3.q.a; +import b.i.a.c.b3.q.c; +import b.i.a.c.f3.e0; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.TreeSet; +/* compiled from: TtmlNode */ +public final class d { + @Nullable + public final String a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final String f869b; + public final boolean c; + public final long d; + public final long e; + @Nullable + public final f f; + @Nullable + public final String[] g; + public final String h; + @Nullable + public final String i; + @Nullable + public final d j; + public final HashMap k; + public final HashMap l; + public List m; + + public d(@Nullable String str, @Nullable String str2, long j, long j2, @Nullable f fVar, @Nullable String[] strArr, String str3, @Nullable String str4, @Nullable d dVar) { + this.a = str; + this.f869b = str2; + this.i = str4; + this.f = fVar; + this.g = strArr; + this.c = str2 != null; + this.d = j; + this.e = j2; + Objects.requireNonNull(str3); + this.h = str3; + this.j = dVar; + this.k = new HashMap<>(); + this.l = new HashMap<>(); + } + + public static d b(String str) { + return new d(null, str.replaceAll("\r\n", "\n").replaceAll(" *\n *", "\n").replaceAll("\n", " ").replaceAll("[ \t\\x0B\f\r]+", " "), -9223372036854775807L, -9223372036854775807L, null, null, "", null, null); + } + + public static SpannableStringBuilder f(String str, Map map) { + if (!map.containsKey(str)) { + b.C0084b bVar = new b.C0084b(); + bVar.a = new SpannableStringBuilder(); + map.put(str, bVar); + } + CharSequence charSequence = map.get(str).a; + Objects.requireNonNull(charSequence); + return (SpannableStringBuilder) charSequence; + } + + public void a(d dVar) { + if (this.m == null) { + this.m = new ArrayList(); + } + this.m.add(dVar); + } + + public d c(int i) { + List list = this.m; + if (list != null) { + return list.get(i); + } + throw new IndexOutOfBoundsException(); + } + + public int d() { + List list = this.m; + if (list == null) { + return 0; + } + return list.size(); + } + + public final void e(TreeSet treeSet, boolean z2) { + boolean equals = "p".equals(this.a); + boolean equals2 = "div".equals(this.a); + if (z2 || equals || (equals2 && this.i != null)) { + long j = this.d; + if (j != -9223372036854775807L) { + treeSet.add(Long.valueOf(j)); + } + long j2 = this.e; + if (j2 != -9223372036854775807L) { + treeSet.add(Long.valueOf(j2)); + } + } + if (this.m != null) { + for (int i = 0; i < this.m.size(); i++) { + this.m.get(i).e(treeSet, z2 || equals); + } + } + } + + public boolean g(long j) { + long j2 = this.d; + return (j2 == -9223372036854775807L && this.e == -9223372036854775807L) || (j2 <= j && this.e == -9223372036854775807L) || ((j2 == -9223372036854775807L && j < this.e) || (j2 <= j && j < this.e)); + } + + public final void h(long j, String str, List> list) { + if (!"".equals(this.h)) { + str = this.h; + } + if (!g(j) || !"div".equals(this.a) || this.i == null) { + for (int i = 0; i < d(); i++) { + c(i).h(j, str, list); + } + return; + } + list.add(new Pair<>(str, this.i)); + } + + /* JADX WARNING: Removed duplicated region for block: B:115:0x01eb */ + /* JADX WARNING: Removed duplicated region for block: B:117:0x01ee */ + /* JADX WARNING: Removed duplicated region for block: B:120:0x01fe */ + /* JADX WARNING: Removed duplicated region for block: B:125:0x021f */ + /* JADX WARNING: Removed duplicated region for block: B:128:0x0237 */ + /* JADX WARNING: Removed duplicated region for block: B:149:0x025a A[SYNTHETIC] */ + public final void i(long j, Map map, Map map2, String str, Map map3) { + Iterator> it; + boolean z2; + int i; + d dVar; + f R1; + int i2; + if (g(j)) { + String str2 = "".equals(this.h) ? str : this.h; + Iterator> it2 = this.l.entrySet().iterator(); + while (it2.hasNext()) { + Map.Entry next = it2.next(); + String key = next.getKey(); + int intValue = this.k.containsKey(key) ? this.k.get(key).intValue() : 0; + int intValue2 = next.getValue().intValue(); + if (intValue != intValue2) { + b.C0084b bVar = map3.get(key); + Objects.requireNonNull(bVar); + e eVar = map2.get(str2); + Objects.requireNonNull(eVar); + int i3 = eVar.j; + f R12 = b.c.a.a0.d.R1(this.f, this.g, map); + SpannableStringBuilder spannableStringBuilder = (SpannableStringBuilder) bVar.a; + if (spannableStringBuilder == null) { + spannableStringBuilder = new SpannableStringBuilder(); + bVar.a = spannableStringBuilder; + } + if (R12 != null) { + d dVar2 = this.j; + if (R12.b() != -1) { + spannableStringBuilder.setSpan(new StyleSpan(R12.b()), intValue, intValue2, 33); + } + if (R12.f == 1) { + spannableStringBuilder.setSpan(new StrikethroughSpan(), intValue, intValue2, 33); + } + if (R12.g == 1) { + spannableStringBuilder.setSpan(new UnderlineSpan(), intValue, intValue2, 33); + } + if (R12.c) { + if (R12.c) { + b.c.a.a0.d.c(spannableStringBuilder, new ForegroundColorSpan(R12.f871b), intValue, intValue2, 33); + } else { + throw new IllegalStateException("Font color has not been defined."); + } + } + if (R12.e) { + if (R12.e) { + b.c.a.a0.d.c(spannableStringBuilder, new BackgroundColorSpan(R12.d), intValue, intValue2, 33); + } else { + throw new IllegalStateException("Background color has not been defined."); + } + } + if (R12.a != null) { + b.c.a.a0.d.c(spannableStringBuilder, new TypefaceSpan(R12.a), intValue, intValue2, 33); + } + b bVar2 = R12.r; + if (bVar2 != null) { + int i4 = bVar2.f; + it = it2; + if (i4 == -1) { + i4 = (i3 == 2 || i3 == 1) ? 3 : 1; + i2 = 1; + } else { + i2 = bVar2.g; + } + int i5 = bVar2.h; + if (i5 == -2) { + i5 = 1; + } + b.c.a.a0.d.c(spannableStringBuilder, new b.i.a.c.b3.q.d(i4, i2, i5), intValue, intValue2, 33); + } else { + it = it2; + } + int i6 = R12.m; + if (i6 == 2) { + while (true) { + if (dVar2 == null) { + dVar2 = null; + break; + } + f R13 = b.c.a.a0.d.R1(dVar2.f, dVar2.g, map); + if (R13 != null && R13.m == 1) { + break; + } + dVar2 = dVar2.j; + } + if (dVar2 != null) { + ArrayDeque arrayDeque = new ArrayDeque(); + arrayDeque.push(dVar2); + while (true) { + if (arrayDeque.isEmpty()) { + dVar = null; + break; + } + d dVar3 = (d) arrayDeque.pop(); + f R14 = b.c.a.a0.d.R1(dVar3.f, dVar3.g, map); + if (R14 != null && R14.m == 3) { + dVar = dVar3; + break; + } + for (int d = dVar3.d() - 1; d >= 0; d--) { + arrayDeque.push(dVar3.c(d)); + } + } + if (dVar != null) { + if (dVar.d() == 1) { + z2 = false; + if (dVar.c(0).f869b != null) { + String str3 = dVar.c(0).f869b; + int i7 = e0.a; + f R15 = b.c.a.a0.d.R1(dVar.f, dVar.g, map); + int i8 = R15 != null ? R15.n : -1; + if (i8 == -1 && (R1 = b.c.a.a0.d.R1(dVar2.f, dVar2.g, map)) != null) { + i8 = R1.n; + } + spannableStringBuilder.setSpan(new c(str3, i8), intValue, intValue2, 33); + if (R12.q == 1) { + z2 = true; + } + if (z2) { + b.c.a.a0.d.c(spannableStringBuilder, new a(), intValue, intValue2, 33); + } + i = R12.j; + if (i == 1) { + b.c.a.a0.d.c(spannableStringBuilder, new AbsoluteSizeSpan((int) R12.k, true), intValue, intValue2, 33); + } else if (i == 2) { + b.c.a.a0.d.c(spannableStringBuilder, new RelativeSizeSpan(R12.k), intValue, intValue2, 33); + } else if (i == 3) { + b.c.a.a0.d.c(spannableStringBuilder, new RelativeSizeSpan(R12.k / 100.0f), intValue, intValue2, 33); + } + if ("p".equals(this.a)) { + float f = R12.f872s; + if (f != Float.MAX_VALUE) { + bVar.q = (f * -90.0f) / 100.0f; + } + Layout.Alignment alignment = R12.o; + if (alignment != null) { + bVar.c = alignment; + } + Layout.Alignment alignment2 = R12.p; + if (alignment2 != null) { + bVar.d = alignment2; + } + } + it2 = it; + } + } else { + z2 = false; + } + Log.i("TtmlRenderUtil", "Skipping rubyText node without exactly one text child."); + if (R12.q == 1) { + } + if (z2) { + } + i = R12.j; + if (i == 1) { + } + if ("p".equals(this.a)) { + } + it2 = it; + } + } + } else if (i6 == 3 || i6 == 4) { + spannableStringBuilder.setSpan(new a(), intValue, intValue2, 33); + } + z2 = false; + if (R12.q == 1) { + } + if (z2) { + } + i = R12.j; + if (i == 1) { + } + if ("p".equals(this.a)) { + } + it2 = it; + } + } + it = it2; + it2 = it; + } + for (int i9 = 0; i9 < d(); i9++) { + c(i9).i(j, map, map2, str2, map3); + } + } + } + + public final void j(long j, boolean z2, String str, Map map) { + this.k.clear(); + this.l.clear(); + if (!"metadata".equals(this.a)) { + if (!"".equals(this.h)) { + str = this.h; + } + if (this.c && z2) { + SpannableStringBuilder f = f(str, map); + String str2 = this.f869b; + Objects.requireNonNull(str2); + f.append((CharSequence) str2); + } else if ("br".equals(this.a) && z2) { + f(str, map).append('\n'); + } else if (g(j)) { + for (Map.Entry entry : map.entrySet()) { + CharSequence charSequence = entry.getValue().a; + Objects.requireNonNull(charSequence); + this.k.put(entry.getKey(), Integer.valueOf(charSequence.length())); + } + boolean equals = "p".equals(this.a); + for (int i = 0; i < d(); i++) { + c(i).j(j, z2 || equals, str, map); + } + if (equals) { + SpannableStringBuilder f2 = f(str, map); + int length = f2.length(); + do { + length--; + if (length < 0) { + break; + } + } while (f2.charAt(length) == ' '); + if (length >= 0 && f2.charAt(length) != '\n') { + f2.append('\n'); + } + } + for (Map.Entry entry2 : map.entrySet()) { + CharSequence charSequence2 = entry2.getValue().a; + Objects.requireNonNull(charSequence2); + this.l.put(entry2.getKey(), Integer.valueOf(charSequence2.length())); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/t/e.java b/app/src/main/java/b/i/a/c/b3/t/e.java new file mode 100644 index 0000000000..91b80c3fb6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/t/e.java @@ -0,0 +1,29 @@ +package b.i.a.c.b3.t; +/* compiled from: TtmlRegion */ +public final class e { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final float f870b; + public final float c; + public final int d; + public final int e; + public final float f; + public final float g; + public final int h; + public final float i; + public final int j; + + public e(String str, float f, float f2, int i, int i2, float f3, float f4, int i3, float f5, int i4) { + this.a = str; + this.f870b = f; + this.c = f2; + this.d = i; + this.e = i2; + this.f = f3; + this.g = f4; + this.h = i3; + this.i = f5; + this.j = i4; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/t/f.java b/app/src/main/java/b/i/a/c/b3/t/f.java new file mode 100644 index 0000000000..decdcad901 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/t/f.java @@ -0,0 +1,106 @@ +package b.i.a.c.b3.t; + +import android.text.Layout; +import androidx.annotation.Nullable; +/* compiled from: TtmlStyle */ +public final class f { + @Nullable + public String a; + + /* renamed from: b reason: collision with root package name */ + public int f871b; + public boolean c; + public int d; + public boolean e; + public int f = -1; + public int g = -1; + public int h = -1; + public int i = -1; + public int j = -1; + public float k; + @Nullable + public String l; + public int m = -1; + public int n = -1; + @Nullable + public Layout.Alignment o; + @Nullable + public Layout.Alignment p; + public int q = -1; + @Nullable + public b r; + + /* renamed from: s reason: collision with root package name */ + public float f872s = Float.MAX_VALUE; + + public f a(@Nullable f fVar) { + int i; + Layout.Alignment alignment; + Layout.Alignment alignment2; + String str; + if (fVar != null) { + if (!this.c && fVar.c) { + this.f871b = fVar.f871b; + this.c = true; + } + if (this.h == -1) { + this.h = fVar.h; + } + if (this.i == -1) { + this.i = fVar.i; + } + if (this.a == null && (str = fVar.a) != null) { + this.a = str; + } + if (this.f == -1) { + this.f = fVar.f; + } + if (this.g == -1) { + this.g = fVar.g; + } + if (this.n == -1) { + this.n = fVar.n; + } + if (this.o == null && (alignment2 = fVar.o) != null) { + this.o = alignment2; + } + if (this.p == null && (alignment = fVar.p) != null) { + this.p = alignment; + } + if (this.q == -1) { + this.q = fVar.q; + } + if (this.j == -1) { + this.j = fVar.j; + this.k = fVar.k; + } + if (this.r == null) { + this.r = fVar.r; + } + if (this.f872s == Float.MAX_VALUE) { + this.f872s = fVar.f872s; + } + if (!this.e && fVar.e) { + this.d = fVar.d; + this.e = true; + } + if (this.m == -1 && (i = fVar.m) != -1) { + this.m = i; + } + } + return this; + } + + public int b() { + int i = this.h; + if (i == -1 && this.i == -1) { + return -1; + } + int i2 = 0; + int i3 = i == 1 ? 1 : 0; + if (this.i == 1) { + i2 = 2; + } + return i3 | i2; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/t/g.java b/app/src/main/java/b/i/a/c/b3/t/g.java new file mode 100644 index 0000000000..82aea124e3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/t/g.java @@ -0,0 +1,153 @@ +package b.i.a.c.b3.t; + +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.text.SpannableStringBuilder; +import android.util.Base64; +import android.util.Pair; +import androidx.core.view.ViewCompat; +import b.i.a.c.b3.b; +import b.i.a.c.f3.e0; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.TreeMap; +import java.util.TreeSet; +/* compiled from: TtmlSubtitle */ +public final class g implements b.i.a.c.b3.g { + public final d j; + public final long[] k; + public final Map l; + public final Map m; + public final Map n; + + public g(d dVar, Map map, Map map2, Map map3) { + this.j = dVar; + this.m = map2; + this.n = map3; + this.l = Collections.unmodifiableMap(map); + TreeSet treeSet = new TreeSet<>(); + int i = 0; + dVar.e(treeSet, false); + long[] jArr = new long[treeSet.size()]; + Iterator it = treeSet.iterator(); + while (it.hasNext()) { + jArr[i] = it.next().longValue(); + i++; + } + this.k = jArr; + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + int b2 = e0.b(this.k, j, false, false); + if (b2 < this.k.length) { + return b2; + } + return -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + return this.k[i]; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + d dVar = this.j; + Map map = this.l; + Map map2 = this.m; + Map map3 = this.n; + Objects.requireNonNull(dVar); + ArrayList arrayList = new ArrayList(); + dVar.h(j, dVar.h, arrayList); + TreeMap treeMap = new TreeMap(); + dVar.j(j, false, dVar.h, treeMap); + dVar.i(j, map, map2, dVar.h, treeMap); + ArrayList arrayList2 = new ArrayList(); + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + Pair pair = (Pair) it.next(); + String str = map3.get(pair.second); + if (str != null) { + byte[] decode = Base64.decode(str, 0); + Bitmap decodeByteArray = BitmapFactory.decodeByteArray(decode, 0, decode.length); + e eVar = map2.get(pair.first); + Objects.requireNonNull(eVar); + arrayList2.add(new b(null, null, null, decodeByteArray, eVar.c, 0, eVar.e, eVar.f870b, 0, Integer.MIN_VALUE, -3.4028235E38f, eVar.f, eVar.g, false, ViewCompat.MEASURED_STATE_MASK, eVar.j, 0.0f, null)); + } + } + for (Map.Entry entry : treeMap.entrySet()) { + e eVar2 = map2.get(entry.getKey()); + Objects.requireNonNull(eVar2); + b.C0084b bVar = (b.C0084b) entry.getValue(); + CharSequence charSequence = bVar.a; + Objects.requireNonNull(charSequence); + SpannableStringBuilder spannableStringBuilder = (SpannableStringBuilder) charSequence; + a[] aVarArr = (a[]) spannableStringBuilder.getSpans(0, spannableStringBuilder.length(), a.class); + for (a aVar : aVarArr) { + spannableStringBuilder.replace(spannableStringBuilder.getSpanStart(aVar), spannableStringBuilder.getSpanEnd(aVar), (CharSequence) ""); + } + for (int i = 0; i < spannableStringBuilder.length(); i++) { + if (spannableStringBuilder.charAt(i) == ' ') { + int i2 = i + 1; + int i3 = i2; + while (i3 < spannableStringBuilder.length() && spannableStringBuilder.charAt(i3) == ' ') { + i3++; + } + int i4 = i3 - i2; + if (i4 > 0) { + spannableStringBuilder.delete(i, i4 + i); + } + } + } + if (spannableStringBuilder.length() > 0 && spannableStringBuilder.charAt(0) == ' ') { + spannableStringBuilder.delete(0, 1); + } + for (int i5 = 0; i5 < spannableStringBuilder.length() - 1; i5++) { + if (spannableStringBuilder.charAt(i5) == '\n') { + int i6 = i5 + 1; + if (spannableStringBuilder.charAt(i6) == ' ') { + spannableStringBuilder.delete(i6, i5 + 2); + } + } + } + if (spannableStringBuilder.length() > 0 && spannableStringBuilder.charAt(spannableStringBuilder.length() - 1) == ' ') { + spannableStringBuilder.delete(spannableStringBuilder.length() - 1, spannableStringBuilder.length()); + } + for (int i7 = 0; i7 < spannableStringBuilder.length() - 1; i7++) { + if (spannableStringBuilder.charAt(i7) == ' ') { + int i8 = i7 + 1; + if (spannableStringBuilder.charAt(i8) == '\n') { + spannableStringBuilder.delete(i7, i8); + } + } + } + if (spannableStringBuilder.length() > 0 && spannableStringBuilder.charAt(spannableStringBuilder.length() - 1) == '\n') { + spannableStringBuilder.delete(spannableStringBuilder.length() - 1, spannableStringBuilder.length()); + } + float f = eVar2.c; + int i9 = eVar2.d; + bVar.e = f; + bVar.f = i9; + bVar.g = eVar2.e; + bVar.h = eVar2.f870b; + bVar.l = eVar2.f; + float f2 = eVar2.i; + int i10 = eVar2.h; + bVar.k = f2; + bVar.j = i10; + bVar.p = eVar2.j; + arrayList2.add(bVar.a()); + } + return arrayList2; + } + + @Override // b.i.a.c.b3.g + public int i() { + return this.k.length; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/u/a.java b/app/src/main/java/b/i/a/c/b3/u/a.java new file mode 100644 index 0000000000..98d9ff0eec --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/u/a.java @@ -0,0 +1,181 @@ +package b.i.a.c.b3.u; + +import android.text.SpannableStringBuilder; +import android.text.style.ForegroundColorSpan; +import android.text.style.StyleSpan; +import android.text.style.TypefaceSpan; +import android.text.style.UnderlineSpan; +import android.util.Log; +import androidx.core.view.ViewCompat; +import androidx.recyclerview.widget.ItemTouchHelper; +import b.i.a.c.b3.b; +import b.i.a.c.b3.f; +import b.i.a.c.b3.g; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.b.a.c; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import java.util.List; +/* compiled from: Tx3gDecoder */ +public final class a extends f { + public final x n = new x(); + public final boolean o; + public final int p; + public final int q; + public final String r; + + /* renamed from: s reason: collision with root package name */ + public final float f873s; + public final int t; + + public a(List list) { + super("Tx3gDecoder"); + String str = "sans-serif"; + boolean z2 = true; + if (list.size() == 1 && (list.get(0).length == 48 || list.get(0).length == 53)) { + byte[] bArr = list.get(0); + this.p = bArr[24]; + this.q = ((bArr[26] & 255) << 24) | ((bArr[27] & 255) << 16) | ((bArr[28] & 255) << 8) | (bArr[29] & 255); + this.r = "Serif".equals(e0.m(bArr, 43, bArr.length - 43)) ? "serif" : str; + int i = bArr[25] * 20; + this.t = i; + z2 = (bArr[0] & 32) == 0 ? false : z2; + this.o = z2; + if (z2) { + this.f873s = e0.g(((float) ((bArr[11] & 255) | ((bArr[10] & 255) << 8))) / ((float) i), 0.0f, 0.95f); + } else { + this.f873s = 0.85f; + } + } else { + this.p = 0; + this.q = -1; + this.r = str; + this.o = false; + this.f873s = 0.85f; + this.t = -1; + } + } + + public static void k(boolean z2) throws SubtitleDecoderException { + if (!z2) { + throw new SubtitleDecoderException("Unexpected subtitle format."); + } + } + + public static void l(SpannableStringBuilder spannableStringBuilder, int i, int i2, int i3, int i4, int i5) { + if (i != i2) { + int i6 = i5 | 33; + boolean z2 = true; + boolean z3 = (i & 1) != 0; + boolean z4 = (i & 2) != 0; + if (z3) { + if (z4) { + spannableStringBuilder.setSpan(new StyleSpan(3), i3, i4, i6); + } else { + spannableStringBuilder.setSpan(new StyleSpan(1), i3, i4, i6); + } + } else if (z4) { + spannableStringBuilder.setSpan(new StyleSpan(2), i3, i4, i6); + } + if ((i & 4) == 0) { + z2 = false; + } + if (z2) { + spannableStringBuilder.setSpan(new UnderlineSpan(), i3, i4, i6); + } + if (!z2 && !z3 && !z4) { + spannableStringBuilder.setSpan(new StyleSpan(0), i3, i4, i6); + } + } + } + + @Override // b.i.a.c.b3.f + public g j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { + String str; + int i2; + x xVar = this.n; + xVar.a = bArr; + xVar.c = i; + xVar.f970b = 0; + int i3 = 2; + int i4 = 1; + k(xVar.a() >= 2); + int y2 = xVar.y(); + if (y2 == 0) { + str = ""; + } else { + if (xVar.a() >= 2) { + byte[] bArr2 = xVar.a; + int i5 = xVar.f970b; + char c = (char) ((bArr2[i5 + 1] & 255) | ((bArr2[i5] & 255) << 8)); + if (c == 65279 || c == 65534) { + str = xVar.r(y2, c.e); + } + } + str = xVar.r(y2, c.c); + } + if (str.isEmpty()) { + return b.j; + } + SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(str); + l(spannableStringBuilder, this.p, 0, 0, spannableStringBuilder.length(), ItemTouchHelper.ACTION_MODE_DRAG_MASK); + int i6 = this.q; + int length = spannableStringBuilder.length(); + if (i6 != -1) { + spannableStringBuilder.setSpan(new ForegroundColorSpan((i6 >>> 8) | ((i6 & 255) << 24)), 0, length, 16711713); + } + String str2 = this.r; + int length2 = spannableStringBuilder.length(); + if (str2 != "sans-serif") { + spannableStringBuilder.setSpan(new TypefaceSpan(str2), 0, length2, 16711713); + } + float f = this.f873s; + for (int i7 = 8; this.n.a() >= i7; i7 = 8) { + x xVar2 = this.n; + int i8 = xVar2.f970b; + int f2 = xVar2.f(); + int f3 = this.n.f(); + if (f3 == 1937013100) { + k(this.n.a() >= i3); + int i9 = 0; + for (int y3 = this.n.y(); i9 < y3; y3 = i2) { + x xVar3 = this.n; + k(xVar3.a() >= 12); + int y4 = xVar3.y(); + int y5 = xVar3.y(); + xVar3.F(i3); + int t = xVar3.t(); + xVar3.F(i4); + int f4 = xVar3.f(); + if (y5 > spannableStringBuilder.length()) { + i2 = y3; + StringBuilder O = b.d.b.a.a.O(68, "Truncating styl end (", y5, ") to cueText.length() (", spannableStringBuilder.length()); + O.append(")."); + Log.w("Tx3gDecoder", O.toString()); + y5 = spannableStringBuilder.length(); + } else { + i2 = y3; + } + if (y4 >= y5) { + b.d.b.a.a.o0(b.d.b.a.a.O(60, "Ignoring styl with start (", y4, ") >= end (", y5), ").", "Tx3gDecoder"); + } else { + l(spannableStringBuilder, t, this.p, y4, y5, 0); + if (f4 != this.q) { + spannableStringBuilder.setSpan(new ForegroundColorSpan(((f4 & 255) << 24) | (f4 >>> 8)), y4, y5, 33); + } + } + i9++; + i3 = 2; + i4 = 1; + } + } else if (f3 == 1952608120 && this.o) { + k(this.n.a() >= 2); + f = e0.g(((float) this.n.y()) / ((float) this.t), 0.0f, 0.95f); + } + this.n.E(i8 + f2); + i3 = 2; + i4 = 1; + } + return new b(new b(spannableStringBuilder, null, null, null, f, 0, 0, -3.4028235E38f, Integer.MIN_VALUE, Integer.MIN_VALUE, -3.4028235E38f, -3.4028235E38f, -3.4028235E38f, false, ViewCompat.MEASURED_STATE_MASK, Integer.MIN_VALUE, 0.0f, null)); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/u/b.java b/app/src/main/java/b/i/a/c/b3/u/b.java new file mode 100644 index 0000000000..703a988295 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/u/b.java @@ -0,0 +1,40 @@ +package b.i.a.c.b3.u; + +import b.c.a.a0.d; +import b.i.a.c.b3.g; +import java.util.Collections; +import java.util.List; +/* compiled from: Tx3gSubtitle */ +public final class b implements g { + public static final b j = new b(); + public final List k; + + public b() { + this.k = Collections.emptyList(); + } + + public b(b.i.a.c.b3.b bVar) { + this.k = Collections.singletonList(bVar); + } + + @Override // b.i.a.c.b3.g + public int f(long j2) { + return j2 < 0 ? 0 : -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + d.j(i == 0); + return 0; + } + + @Override // b.i.a.c.b3.g + public List h(long j2) { + return j2 >= 0 ? this.k : Collections.emptyList(); + } + + @Override // b.i.a.c.b3.g + public int i() { + return 1; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/a.java b/app/src/main/java/b/i/a/c/b3/v/a.java new file mode 100644 index 0000000000..bdcd8ce876 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/a.java @@ -0,0 +1,13 @@ +package b.i.a.c.b3.v; + +import b.i.a.c.b3.v.h; +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Comparator { + public static final /* synthetic */ a j = new a(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + return Integer.compare(((h.b) obj).f878b.f879b, ((h.b) obj2).f878b.f879b); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/b.java b/app/src/main/java/b/i/a/c/b3/v/b.java new file mode 100644 index 0000000000..f5fc78e439 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/b.java @@ -0,0 +1,12 @@ +package b.i.a.c.b3.v; + +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Comparator { + public static final /* synthetic */ b j = new b(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + return Long.compare(((g) obj).f876b, ((g) obj2).f876b); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/c.java b/app/src/main/java/b/i/a/c/b3/v/c.java new file mode 100644 index 0000000000..634734b2fe --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/c.java @@ -0,0 +1,78 @@ +package b.i.a.c.b3.v; + +import b.i.a.c.b3.b; +import b.i.a.c.b3.f; +import b.i.a.c.b3.g; +import b.i.a.c.b3.v.h; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.regex.Pattern; +/* compiled from: Mp4WebvttDecoder */ +public final class c extends f { + public final x n = new x(); + + public c() { + super("Mp4WebvttDecoder"); + } + + @Override // b.i.a.c.b3.f + public g j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { + b bVar; + x xVar = this.n; + xVar.a = bArr; + xVar.c = i; + xVar.f970b = 0; + ArrayList arrayList = new ArrayList(); + while (this.n.a() > 0) { + if (this.n.a() >= 8) { + int f = this.n.f(); + if (this.n.f() == 1987343459) { + x xVar2 = this.n; + int i2 = f - 8; + CharSequence charSequence = null; + b.C0084b bVar2 = null; + while (i2 > 0) { + if (i2 >= 8) { + int f2 = xVar2.f(); + int f3 = xVar2.f(); + int i3 = f2 - 8; + String m = e0.m(xVar2.a, xVar2.f970b, i3); + xVar2.F(i3); + i2 = (i2 - 8) - i3; + if (f3 == 1937011815) { + h.e eVar = new h.e(); + h.e(m, eVar); + bVar2 = eVar.a(); + } else if (f3 == 1885436268) { + charSequence = h.f(null, m.trim(), Collections.emptyList()); + } + } else { + throw new SubtitleDecoderException("Incomplete vtt cue box header found."); + } + } + if (charSequence == null) { + charSequence = ""; + } + if (bVar2 != null) { + bVar2.a = charSequence; + bVar = bVar2.a(); + } else { + Pattern pattern = h.a; + h.e eVar2 = new h.e(); + eVar2.c = charSequence; + bVar = eVar2.a().a(); + } + arrayList.add(bVar); + } else { + this.n.F(f - 8); + } + } else { + throw new SubtitleDecoderException("Incomplete Mp4Webvtt Top Level box header found."); + } + } + return new d(arrayList); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/d.java b/app/src/main/java/b/i/a/c/b3/v/d.java new file mode 100644 index 0000000000..ad83c3b27b --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/d.java @@ -0,0 +1,35 @@ +package b.i.a.c.b3.v; + +import b.i.a.c.b3.b; +import b.i.a.c.b3.g; +import java.util.Collections; +import java.util.List; +/* compiled from: Mp4WebvttSubtitle */ +public final class d implements g { + public final List j; + + public d(List list) { + this.j = Collections.unmodifiableList(list); + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + return j < 0 ? 0 : -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + b.c.a.a0.d.j(i == 0); + return 0; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + return j >= 0 ? this.j : Collections.emptyList(); + } + + @Override // b.i.a.c.b3.g + public int i() { + return 1; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/e.java b/app/src/main/java/b/i/a/c/b3/v/e.java new file mode 100644 index 0000000000..41d6e7490b --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/e.java @@ -0,0 +1,99 @@ +package b.i.a.c.b3.v; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.x; +import java.util.regex.Pattern; +/* compiled from: WebvttCssParser */ +public final class e { + public static final Pattern a = Pattern.compile("\\[voice=\"([^\"]*)\"\\]"); + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f874b = Pattern.compile("^((?:[0-9]*\\.)?[0-9]+)(px|em|%)$"); + public final x c = new x(); + public final StringBuilder d = new StringBuilder(); + + public static String a(x xVar, StringBuilder sb) { + boolean z2 = false; + sb.setLength(0); + int i = xVar.f970b; + int i2 = xVar.c; + while (i < i2 && !z2) { + char c = (char) xVar.a[i]; + if ((c < 'A' || c > 'Z') && ((c < 'a' || c > 'z') && !((c >= '0' && c <= '9') || c == '#' || c == '-' || c == '.' || c == '_'))) { + z2 = true; + } else { + i++; + sb.append(c); + } + } + xVar.F(i - xVar.f970b); + return sb.toString(); + } + + @Nullable + public static String b(x xVar, StringBuilder sb) { + c(xVar); + if (xVar.a() == 0) { + return null; + } + String a2 = a(xVar, sb); + if (!"".equals(a2)) { + return a2; + } + StringBuilder sb2 = new StringBuilder(1); + sb2.append((char) xVar.t()); + return sb2.toString(); + } + + /* JADX WARNING: Removed duplicated region for block: B:35:0x0068 A[LOOP:1: B:2:0x0002->B:35:0x0068, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:40:0x0001 A[SYNTHETIC] */ + public static void c(x xVar) { + boolean z2; + boolean z3; + while (true) { + boolean z4 = true; + while (xVar.a() > 0 && z4) { + char c = (char) xVar.a[xVar.f970b]; + if (c == '\t' || c == '\n' || c == '\f' || c == '\r' || c == ' ') { + xVar.F(1); + z2 = true; + } else { + z2 = false; + } + if (!z2) { + int i = xVar.f970b; + int i2 = xVar.c; + byte[] bArr = xVar.a; + if (i + 2 <= i2) { + int i3 = i + 1; + if (bArr[i] == 47) { + int i4 = i3 + 1; + if (bArr[i3] == 42) { + while (true) { + int i5 = i4 + 1; + if (i5 >= i2) { + break; + } else if (((char) bArr[i4]) == '*' && ((char) bArr[i5]) == '/') { + i2 = i5 + 1; + i4 = i2; + } else { + i4 = i5; + } + } + xVar.F(i2 - xVar.f970b); + z3 = true; + if (z3) { + z4 = false; + } + } + } + } + z3 = false; + if (z3) { + } + } + } + return; + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/f.java b/app/src/main/java/b/i/a/c/b3/v/f.java new file mode 100644 index 0000000000..af6c0685d1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/f.java @@ -0,0 +1,53 @@ +package b.i.a.c.b3.v; + +import androidx.annotation.ColorInt; +import androidx.annotation.Nullable; +import java.util.Collections; +import java.util.Set; +/* compiled from: WebvttCssStyle */ +public final class f { + public String a = ""; + + /* renamed from: b reason: collision with root package name */ + public String f875b = ""; + public Set c = Collections.emptySet(); + public String d = ""; + @Nullable + public String e = null; + @ColorInt + public int f; + public boolean g = false; + public int h; + public boolean i = false; + public int j = -1; + public int k = -1; + public int l = -1; + public int m = -1; + public int n = -1; + public float o; + public int p = -1; + public boolean q = false; + + public static int b(int i, String str, @Nullable String str2, int i2) { + if (str.isEmpty() || i == -1) { + return i; + } + if (str.equals(str2)) { + return i + i2; + } + return -1; + } + + public int a() { + int i = this.l; + if (i == -1 && this.m == -1) { + return -1; + } + int i2 = 0; + int i3 = i == 1 ? 1 : 0; + if (this.m == 1) { + i2 = 2; + } + return i3 | i2; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/g.java b/app/src/main/java/b/i/a/c/b3/v/g.java new file mode 100644 index 0000000000..649ae20e4c --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/g.java @@ -0,0 +1,17 @@ +package b.i.a.c.b3.v; + +import b.i.a.c.b3.b; +/* compiled from: WebvttCueInfo */ +public final class g { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final long f876b; + public final long c; + + public g(b bVar, long j, long j2) { + this.a = bVar; + this.f876b = j; + this.c = j2; + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/h.java b/app/src/main/java/b/i/a/c/b3/v/h.java new file mode 100644 index 0000000000..53366d8be9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/h.java @@ -0,0 +1,1010 @@ +package b.i.a.c.b3.v; + +import android.graphics.Color; +import android.text.Layout; +import android.text.SpannableStringBuilder; +import android.text.SpannedString; +import android.text.TextUtils; +import android.text.style.AbsoluteSizeSpan; +import android.text.style.BackgroundColorSpan; +import android.text.style.ForegroundColorSpan; +import android.text.style.RelativeSizeSpan; +import android.text.style.StrikethroughSpan; +import android.text.style.StyleSpan; +import android.text.style.TypefaceSpan; +import android.text.style.UnderlineSpan; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import b.i.a.c.b3.b; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: WebvttCueParser */ +public final class h { + public static final Pattern a = Pattern.compile("^(\\S+)\\s+-->\\s+(\\S+)(.*)?$"); + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f877b = Pattern.compile("(\\S+?):(\\S+)"); + public static final Map c; + public static final Map d; + + /* compiled from: WebvttCueParser */ + public static class b { + public static final /* synthetic */ int a = 0; + + /* renamed from: b reason: collision with root package name */ + public final c f878b; + public final int c; + + public b(c cVar, int i, a aVar) { + this.f878b = cVar; + this.c = i; + } + } + + /* compiled from: WebvttCueParser */ + public static final class c { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f879b; + public final String c; + public final Set d; + + public c(String str, int i, String str2, Set set) { + this.f879b = i; + this.a = str; + this.c = str2; + this.d = set; + } + } + + /* compiled from: WebvttCueParser */ + public static final class d implements Comparable { + public final int j; + public final f k; + + public d(int i, f fVar) { + this.j = i; + this.k = fVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public int compareTo(d dVar) { + return Integer.compare(this.j, dVar.j); + } + } + + /* compiled from: WebvttCueParser */ + public static final class e { + public long a = 0; + + /* renamed from: b reason: collision with root package name */ + public long f880b = 0; + public CharSequence c; + public int d = 2; + public float e = -3.4028235E38f; + public int f = 1; + public int g = 0; + public float h = -3.4028235E38f; + public int i = Integer.MIN_VALUE; + public float j = 1.0f; + public int k = Integer.MIN_VALUE; + + /* JADX WARNING: Code restructure failed: missing block: B:37:0x0074, code lost: + if (r6 == 0) goto L_0x0076; + */ + /* JADX WARNING: Removed duplicated region for block: B:36:0x0072 */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x0074 */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x0088 */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x00a4 */ + /* JADX WARNING: Removed duplicated region for block: B:52:0x00b4 */ + public b.C0084b a() { + Layout.Alignment alignment; + int i; + CharSequence charSequence; + float f = this.h; + float f2 = -3.4028235E38f; + if (f == -3.4028235E38f) { + int i2 = this.d; + f = i2 != 4 ? i2 != 5 ? 0.5f : 1.0f : 0.0f; + } + int i3 = this.i; + if (i3 == Integer.MIN_VALUE) { + int i4 = this.d; + if (i4 != 1) { + if (i4 != 3) { + if (i4 != 4) { + if (i4 != 5) { + i3 = 1; + } + } + } + i3 = 2; + } + i3 = 0; + } + b.C0084b bVar = new b.C0084b(); + int i5 = this.d; + if (i5 != 1) { + if (i5 != 2) { + if (i5 != 3) { + if (i5 != 4) { + if (i5 != 5) { + b.d.b.a.a.d0(34, "Unknown textAlignment: ", i5, "WebvttCueParser"); + alignment = null; + } + } + } + alignment = Layout.Alignment.ALIGN_OPPOSITE; + } else { + alignment = Layout.Alignment.ALIGN_CENTER; + } + bVar.c = alignment; + float f3 = this.e; + int i6 = this.f; + i = (f3 > -3.4028235E38f ? 1 : (f3 == -3.4028235E38f ? 0 : -1)); + if (i == 0 || i6 != 0 || (f3 >= 0.0f && f3 <= 1.0f)) { + if (i == 0) { + f2 = f3; + } + bVar.e = f2; + bVar.f = i6; + bVar.g = this.g; + bVar.h = f; + bVar.i = i3; + float f4 = this.j; + if (i3 == 0) { + f = 1.0f - f; + } else if (i3 == 1) { + f = f <= 0.5f ? f * 2.0f : (1.0f - f) * 2.0f; + } else if (i3 != 2) { + throw new IllegalStateException(String.valueOf(i3)); + } + bVar.l = Math.min(f4, f); + bVar.p = this.k; + charSequence = this.c; + if (charSequence != null) { + bVar.a = charSequence; + } + return bVar; + } + f2 = 1.0f; + bVar.e = f2; + bVar.f = i6; + bVar.g = this.g; + bVar.h = f; + bVar.i = i3; + float f4 = this.j; + if (i3 == 0) { + } + bVar.l = Math.min(f4, f); + bVar.p = this.k; + charSequence = this.c; + if (charSequence != null) { + } + return bVar; + } + alignment = Layout.Alignment.ALIGN_NORMAL; + bVar.c = alignment; + float f3 = this.e; + int i6 = this.f; + i = (f3 > -3.4028235E38f ? 1 : (f3 == -3.4028235E38f ? 0 : -1)); + if (i == 0) { + } + bVar.e = f2; + bVar.f = i6; + bVar.g = this.g; + bVar.h = f; + bVar.i = i3; + float f4 = this.j; + if (i3 == 0) { + } + bVar.l = Math.min(f4, f); + bVar.p = this.k; + charSequence = this.c; + if (charSequence != null) { + } + return bVar; + } + } + + static { + HashMap hashMap = new HashMap(); + hashMap.put("white", Integer.valueOf(Color.rgb(255, 255, 255))); + hashMap.put("lime", Integer.valueOf(Color.rgb(0, 255, 0))); + hashMap.put("cyan", Integer.valueOf(Color.rgb(0, 255, 255))); + hashMap.put("red", Integer.valueOf(Color.rgb(255, 0, 0))); + hashMap.put("yellow", Integer.valueOf(Color.rgb(255, 255, 0))); + hashMap.put("magenta", Integer.valueOf(Color.rgb(255, 0, 255))); + hashMap.put("blue", Integer.valueOf(Color.rgb(0, 0, 255))); + hashMap.put("black", Integer.valueOf(Color.rgb(0, 0, 0))); + c = Collections.unmodifiableMap(hashMap); + HashMap hashMap2 = new HashMap(); + hashMap2.put("bg_white", Integer.valueOf(Color.rgb(255, 255, 255))); + hashMap2.put("bg_lime", Integer.valueOf(Color.rgb(0, 255, 0))); + hashMap2.put("bg_cyan", Integer.valueOf(Color.rgb(0, 255, 255))); + hashMap2.put("bg_red", Integer.valueOf(Color.rgb(255, 0, 0))); + hashMap2.put("bg_yellow", Integer.valueOf(Color.rgb(255, 255, 0))); + hashMap2.put("bg_magenta", Integer.valueOf(Color.rgb(255, 0, 255))); + hashMap2.put("bg_blue", Integer.valueOf(Color.rgb(0, 0, 255))); + hashMap2.put("bg_black", Integer.valueOf(Color.rgb(0, 0, 0))); + d = Collections.unmodifiableMap(hashMap2); + } + + /* JADX WARNING: Removed duplicated region for block: B:133:0x024a A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x0097 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:44:0x0098 */ + /* JADX WARNING: Removed duplicated region for block: B:56:0x010b */ + /* JADX WARNING: Removed duplicated region for block: B:57:0x0114 */ + /* JADX WARNING: Removed duplicated region for block: B:58:0x011d */ + /* JADX WARNING: Removed duplicated region for block: B:67:0x0165 */ + /* JADX WARNING: Removed duplicated region for block: B:71:0x017c */ + public static void a(@Nullable String str, c cVar, List list, SpannableStringBuilder spannableStringBuilder, List list2) { + char c2; + List b2; + int i; + ArrayList arrayList; + int i2 = cVar.f879b; + int length = spannableStringBuilder.length(); + String str2 = cVar.a; + str2.hashCode(); + int hashCode = str2.hashCode(); + int i3 = -1; + if (hashCode != 0) { + if (hashCode != 105) { + if (hashCode != 3314158) { + if (hashCode != 3511770) { + if (hashCode != 98) { + if (hashCode != 99) { + if (hashCode != 117) { + if (hashCode == 118 && str2.equals("v")) { + c2 = 5; + switch (c2) { + case 0: + case 5: + case 6: + break; + case 1: + spannableStringBuilder.setSpan(new StyleSpan(1), i2, length, 33); + break; + case 2: + for (String str3 : cVar.d) { + Map map = c; + if (map.containsKey(str3)) { + spannableStringBuilder.setSpan(new ForegroundColorSpan(map.get(str3).intValue()), i2, length, 33); + } else { + Map map2 = d; + if (map2.containsKey(str3)) { + spannableStringBuilder.setSpan(new BackgroundColorSpan(map2.get(str3).intValue()), i2, length, 33); + } + } + } + break; + case 3: + spannableStringBuilder.setSpan(new StyleSpan(2), i2, length, 33); + break; + case 4: + spannableStringBuilder.setSpan(new UnderlineSpan(), i2, length, 33); + break; + case 7: + int c3 = c(list2, str, cVar); + ArrayList arrayList2 = new ArrayList(list.size()); + arrayList2.addAll(list); + int i4 = b.a; + Collections.sort(arrayList2, a.j); + int i5 = cVar.f879b; + int i6 = 0; + int i7 = 0; + while (i6 < arrayList2.size()) { + if ("rt".equals(((b) arrayList2.get(i6)).f878b.a)) { + b bVar = (b) arrayList2.get(i6); + int c4 = c(list2, str, bVar.f878b); + if (c4 == i3) { + c4 = c3 != i3 ? c3 : 1; + } + int i8 = bVar.f878b.f879b - i7; + int i9 = bVar.c - i7; + CharSequence subSequence = spannableStringBuilder.subSequence(i8, i9); + spannableStringBuilder.delete(i8, i9); + spannableStringBuilder.setSpan(new b.i.a.c.b3.q.c(subSequence.toString(), c4), i5, i8, 33); + i7 = subSequence.length() + i7; + i5 = i8; + } + i6++; + i3 = -1; + } + break; + default: + return; + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + f fVar = ((d) arrayList.get(i)).k; + if (fVar != null) { + if (fVar.a() != -1) { + b.c.a.a0.d.c(spannableStringBuilder, new StyleSpan(fVar.a()), i2, length, 33); + } + if (fVar.j == 1) { + spannableStringBuilder.setSpan(new StrikethroughSpan(), i2, length, 33); + } + if (fVar.k == 1) { + spannableStringBuilder.setSpan(new UnderlineSpan(), i2, length, 33); + } + if (fVar.g) { + if (fVar.g) { + b.c.a.a0.d.c(spannableStringBuilder, new ForegroundColorSpan(fVar.f), i2, length, 33); + } else { + throw new IllegalStateException("Font color not defined"); + } + } + if (fVar.i) { + if (fVar.i) { + b.c.a.a0.d.c(spannableStringBuilder, new BackgroundColorSpan(fVar.h), i2, length, 33); + } else { + throw new IllegalStateException("Background color not defined."); + } + } + if (fVar.e != null) { + b.c.a.a0.d.c(spannableStringBuilder, new TypefaceSpan(fVar.e), i2, length, 33); + } + int i10 = fVar.n; + if (i10 == 1) { + b.c.a.a0.d.c(spannableStringBuilder, new AbsoluteSizeSpan((int) fVar.o, true), i2, length, 33); + } else if (i10 == 2) { + b.c.a.a0.d.c(spannableStringBuilder, new RelativeSizeSpan(fVar.o), i2, length, 33); + } else if (i10 == 3) { + b.c.a.a0.d.c(spannableStringBuilder, new RelativeSizeSpan(fVar.o / 100.0f), i2, length, 33); + } + if (fVar.q) { + spannableStringBuilder.setSpan(new b.i.a.c.b3.q.a(), i2, length, 33); + } + } + i++; + } else { + return; + } + } + } + } else if (str2.equals("u")) { + c2 = 4; + switch (c2) { + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + } + i++; + } + } + } else if (str2.equals("c")) { + c2 = 2; + switch (c2) { + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + } + i++; + } + } + } else if (str2.equals("b")) { + c2 = 1; + switch (c2) { + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + } + i++; + } + } + } else if (str2.equals("ruby")) { + c2 = 7; + switch (c2) { + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + } + i++; + } + } + } else if (str2.equals("lang")) { + c2 = 6; + switch (c2) { + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + } + i++; + } + } + } else if (str2.equals("i")) { + c2 = 3; + switch (c2) { + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + } + i++; + } + } + } else if (str2.equals("")) { + c2 = 0; + switch (c2) { + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + } + i++; + } + } + c2 = 65535; + switch (c2) { + } + b2 = b(list2, str, cVar); + i = 0; + while (true) { + arrayList = (ArrayList) b2; + if (i < arrayList.size()) { + } + i++; + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r4v6, resolved type: boolean */ + /* JADX WARN: Multi-variable type inference failed */ + public static List b(List list, @Nullable String str, c cVar) { + int i; + ArrayList arrayList = new ArrayList(); + for (int i2 = 0; i2 < list.size(); i2++) { + f fVar = list.get(i2); + String str2 = cVar.a; + Set set = cVar.d; + String str3 = cVar.c; + if (!fVar.a.isEmpty() || !fVar.f875b.isEmpty() || !fVar.c.isEmpty() || !fVar.d.isEmpty()) { + int b2 = f.b(f.b(f.b(0, fVar.a, str, BasicMeasure.EXACTLY), fVar.f875b, str2, 2), fVar.d, str3, 4); + i = (b2 == -1 || !set.containsAll(fVar.c)) ? 0 : b2 + (fVar.c.size() * 4); + } else { + i = TextUtils.isEmpty(str2); + } + if (i > 0) { + arrayList.add(new d(i == 1 ? 1 : 0, fVar)); + } + } + Collections.sort(arrayList); + return arrayList; + } + + public static int c(List list, @Nullable String str, c cVar) { + List b2 = b(list, str, cVar); + int i = 0; + while (true) { + ArrayList arrayList = (ArrayList) b2; + if (i >= arrayList.size()) { + return -1; + } + int i2 = ((d) arrayList.get(i)).k.p; + if (i2 != -1) { + return i2; + } + i++; + } + } + + @Nullable + public static g d(@Nullable String str, Matcher matcher, x xVar, List list) { + e eVar = new e(); + try { + String group = matcher.group(1); + Objects.requireNonNull(group); + eVar.a = j.b(group); + String group2 = matcher.group(2); + Objects.requireNonNull(group2); + eVar.f880b = j.b(group2); + String group3 = matcher.group(3); + Objects.requireNonNull(group3); + e(group3, eVar); + StringBuilder sb = new StringBuilder(); + String g = xVar.g(); + while (!TextUtils.isEmpty(g)) { + if (sb.length() > 0) { + sb.append("\n"); + } + sb.append(g.trim()); + g = xVar.g(); + } + eVar.c = f(str, sb.toString(), list); + return new g(eVar.a().a(), eVar.a, eVar.f880b); + } catch (NumberFormatException unused) { + String valueOf = String.valueOf(matcher.group()); + Log.w("WebvttCueParser", valueOf.length() != 0 ? "Skipping cue with bad header: ".concat(valueOf) : new String("Skipping cue with bad header: ")); + return null; + } + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + public static void e(String str, e eVar) { + Matcher matcher = f877b.matcher(str); + while (matcher.find()) { + int i = 1; + String group = matcher.group(1); + Objects.requireNonNull(group); + String group2 = matcher.group(2); + Objects.requireNonNull(group2); + try { + if ("line".equals(group)) { + g(group2, eVar); + } else if ("align".equals(group)) { + char c2 = 65535; + switch (group2.hashCode()) { + case -1364013995: + if (group2.equals("center")) { + c2 = 0; + break; + } + break; + case -1074341483: + if (group2.equals("middle")) { + c2 = 1; + break; + } + break; + case 100571: + if (group2.equals("end")) { + c2 = 2; + break; + } + break; + case 3317767: + if (group2.equals("left")) { + c2 = 3; + break; + } + break; + case 108511772: + if (group2.equals("right")) { + c2 = 4; + break; + } + break; + case 109757538: + if (group2.equals("start")) { + c2 = 5; + break; + } + break; + } + switch (c2) { + case 0: + case 1: + i = 2; + break; + case 2: + i = 3; + break; + case 3: + i = 4; + break; + case 4: + i = 5; + break; + case 5: + break; + default: + Log.w("WebvttCueParser", group2.length() != 0 ? "Invalid alignment value: ".concat(group2) : new String("Invalid alignment value: ")); + i = 2; + break; + } + eVar.d = i; + } else if (ModelAuditLogEntry.CHANGE_KEY_POSITION.equals(group)) { + h(group2, eVar); + } else if ("size".equals(group)) { + eVar.j = j.a(group2); + } else if ("vertical".equals(group)) { + if (group2.equals("lr")) { + i = 2; + } else if (!group2.equals("rl")) { + Log.w("WebvttCueParser", group2.length() != 0 ? "Invalid 'vertical' value: ".concat(group2) : new String("Invalid 'vertical' value: ")); + i = Integer.MIN_VALUE; + } + eVar.k = i; + } else { + StringBuilder sb = new StringBuilder(group.length() + 21 + group2.length()); + sb.append("Unknown cue setting "); + sb.append(group); + sb.append(":"); + sb.append(group2); + Log.w("WebvttCueParser", sb.toString()); + } + } catch (NumberFormatException unused) { + String valueOf = String.valueOf(matcher.group()); + Log.w("WebvttCueParser", valueOf.length() != 0 ? "Skipping bad cue setting: ".concat(valueOf) : new String("Skipping bad cue setting: ")); + } + } + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + public static SpannedString f(@Nullable String str, String str2, List list) { + char c2; + boolean z2; + SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(); + ArrayDeque arrayDeque = new ArrayDeque(); + ArrayList arrayList = new ArrayList(); + int i = 0; + int i2 = 0; + while (true) { + String str3 = ""; + if (i2 < str2.length()) { + char charAt = str2.charAt(i2); + if (charAt == '&') { + i2++; + int indexOf = str2.indexOf(59, i2); + int indexOf2 = str2.indexOf(32, i2); + if (indexOf == -1) { + indexOf = indexOf2; + } else if (indexOf2 != -1) { + indexOf = Math.min(indexOf, indexOf2); + } + if (indexOf != -1) { + String substring = str2.substring(i2, indexOf); + substring.hashCode(); + substring.hashCode(); + char c3 = 65535; + switch (substring.hashCode()) { + case 3309: + if (substring.equals("gt")) { + c3 = 0; + break; + } + break; + case 3464: + if (substring.equals("lt")) { + c3 = 1; + break; + } + break; + case 96708: + if (substring.equals("amp")) { + c3 = 2; + break; + } + break; + case 3374865: + if (substring.equals("nbsp")) { + c3 = 3; + break; + } + break; + } + switch (c3) { + case 0: + spannableStringBuilder.append('>'); + break; + case 1: + spannableStringBuilder.append('<'); + break; + case 2: + spannableStringBuilder.append('&'); + break; + case 3: + spannableStringBuilder.append(' '); + break; + default: + b.d.b.a.a.g0(substring.length() + 33, "ignoring unsupported entity: '&", substring, ";'", "WebvttCueParser"); + break; + } + if (indexOf == indexOf2) { + spannableStringBuilder.append((CharSequence) " "); + } + i2 = indexOf + 1; + } else { + spannableStringBuilder.append(charAt); + } + } else if (charAt != '<') { + spannableStringBuilder.append(charAt); + i2++; + } else { + int i3 = i2 + 1; + if (i3 < str2.length()) { + boolean z3 = str2.charAt(i3) == '/'; + int indexOf3 = str2.indexOf(62, i3); + i3 = indexOf3 == -1 ? str2.length() : indexOf3 + 1; + int i4 = i3 - 2; + boolean z4 = str2.charAt(i4) == '/'; + int i5 = i2 + (z3 ? 2 : 1); + if (!z4) { + i4 = i3 - 1; + } + String substring2 = str2.substring(i5, i4); + if (!substring2.trim().isEmpty()) { + String trim = substring2.trim(); + b.c.a.a0.d.j(!trim.isEmpty()); + int i6 = e0.a; + String str4 = trim.split("[ \\.]", 2)[i]; + str4.hashCode(); + switch (str4.hashCode()) { + case 98: + if (str4.equals("b")) { + c2 = 0; + break; + } + c2 = 65535; + break; + case 99: + if (str4.equals("c")) { + c2 = 1; + break; + } + c2 = 65535; + break; + case 105: + if (str4.equals("i")) { + c2 = 2; + break; + } + c2 = 65535; + break; + case 117: + if (str4.equals("u")) { + c2 = 3; + break; + } + c2 = 65535; + break; + case 118: + if (str4.equals("v")) { + c2 = 4; + break; + } + c2 = 65535; + break; + case 3650: + if (str4.equals("rt")) { + c2 = 5; + break; + } + c2 = 65535; + break; + case 3314158: + if (str4.equals("lang")) { + c2 = 6; + break; + } + c2 = 65535; + break; + case 3511770: + if (str4.equals("ruby")) { + c2 = 7; + break; + } + c2 = 65535; + break; + default: + c2 = 65535; + break; + } + switch (c2) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + z2 = true; + break; + default: + z2 = false; + break; + } + if (z2) { + if (z3) { + while (!arrayDeque.isEmpty()) { + c cVar = (c) arrayDeque.pop(); + a(str, cVar, arrayList, spannableStringBuilder, list); + if (!arrayDeque.isEmpty()) { + arrayList.add(new b(cVar, spannableStringBuilder.length(), null)); + } else { + arrayList.clear(); + } + if (cVar.a.equals(str4)) { + } + } + } else if (!z4) { + int length = spannableStringBuilder.length(); + String trim2 = substring2.trim(); + b.c.a.a0.d.j(!trim2.isEmpty()); + int indexOf4 = trim2.indexOf(" "); + if (indexOf4 != -1) { + str3 = trim2.substring(indexOf4).trim(); + trim2 = trim2.substring(i, indexOf4); + } + String[] H = e0.H(trim2, "\\."); + String str5 = H[i]; + HashSet hashSet = new HashSet(); + for (int i7 = 1; i7 < H.length; i7++) { + hashSet.add(H[i7]); + } + arrayDeque.push(new c(str5, length, str3, hashSet)); + } + } + } + i2 = i3; + } + i2 = i3; + } + i = 0; + } else { + while (!arrayDeque.isEmpty()) { + a(str, (c) arrayDeque.pop(), arrayList, spannableStringBuilder, list); + } + a(str, new c(str3, 0, str3, Collections.emptySet()), Collections.emptyList(), spannableStringBuilder, list); + return SpannedString.valueOf(spannableStringBuilder); + } + } + } + + public static void g(String str, e eVar) { + int indexOf = str.indexOf(44); + char c2 = 65535; + if (indexOf != -1) { + String substring = str.substring(indexOf + 1); + substring.hashCode(); + int i = 2; + switch (substring.hashCode()) { + case -1364013995: + if (substring.equals("center")) { + c2 = 0; + break; + } + break; + case -1074341483: + if (substring.equals("middle")) { + c2 = 1; + break; + } + break; + case 100571: + if (substring.equals("end")) { + c2 = 2; + break; + } + break; + case 109757538: + if (substring.equals("start")) { + c2 = 3; + break; + } + break; + } + switch (c2) { + case 0: + case 1: + i = 1; + break; + case 2: + break; + case 3: + i = 0; + break; + default: + Log.w("WebvttCueParser", substring.length() != 0 ? "Invalid anchor value: ".concat(substring) : new String("Invalid anchor value: ")); + i = Integer.MIN_VALUE; + break; + } + eVar.g = i; + str = str.substring(0, indexOf); + } + if (str.endsWith("%")) { + eVar.e = j.a(str); + eVar.f = 0; + return; + } + eVar.e = (float) Integer.parseInt(str); + eVar.f = 1; + } + + public static void h(String str, e eVar) { + int indexOf = str.indexOf(44); + char c2 = 65535; + if (indexOf != -1) { + String substring = str.substring(indexOf + 1); + substring.hashCode(); + int i = 2; + switch (substring.hashCode()) { + case -1842484672: + if (substring.equals("line-left")) { + c2 = 0; + break; + } + break; + case -1364013995: + if (substring.equals("center")) { + c2 = 1; + break; + } + break; + case -1276788989: + if (substring.equals("line-right")) { + c2 = 2; + break; + } + break; + case -1074341483: + if (substring.equals("middle")) { + c2 = 3; + break; + } + break; + case 100571: + if (substring.equals("end")) { + c2 = 4; + break; + } + break; + case 109757538: + if (substring.equals("start")) { + c2 = 5; + break; + } + break; + } + switch (c2) { + case 0: + case 5: + i = 0; + break; + case 1: + case 3: + i = 1; + break; + case 2: + case 4: + break; + default: + Log.w("WebvttCueParser", substring.length() != 0 ? "Invalid anchor value: ".concat(substring) : new String("Invalid anchor value: ")); + i = Integer.MIN_VALUE; + break; + } + eVar.i = i; + str = str.substring(0, indexOf); + } + eVar.h = j.a(str); + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/i.java b/app/src/main/java/b/i/a/c/b3/v/i.java new file mode 100644 index 0000000000..c7affbd8bc --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/i.java @@ -0,0 +1,342 @@ +package b.i.a.c.b3.v; + +import android.text.TextUtils; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.b3.f; +import b.i.a.c.b3.g; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: WebvttDecoder */ +public final class i extends f { + public final x n = new x(); + public final e o = new e(); + + public i() { + super("WebvttDecoder"); + } + + /* JADX WARNING: Code restructure failed: missing block: B:53:0x010d, code lost: + if (")".equals(b.i.a.c.b3.v.e.b(r8, r9)) == false) goto L_0x010f; + */ + /* JADX WARNING: Removed duplicated region for block: B:176:0x0351 */ + /* JADX WARNING: Removed duplicated region for block: B:184:0x0364 */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.a.c.b3.f + public g j(byte[] bArr, int i, boolean z2) throws SubtitleDecoderException { + ArrayList arrayList; + g gVar; + String str; + e eVar; + String str2; + String sb; + char c; + int i2; + x xVar = this.n; + xVar.a = bArr; + xVar.c = i; + int i3 = 0; + xVar.f970b = 0; + ArrayList arrayList2 = new ArrayList(); + try { + j.c(this.n); + do { + } while (!TextUtils.isEmpty(this.n.g())); + arrayList = new ArrayList(); + } catch (ParserException e) { + throw new SubtitleDecoderException(e); + } + while (true) { + x xVar2 = this.n; + int i4 = -1; + ?? r7 = 1; + char c2 = 65535; + int i5 = 0; + while (c2 == 65535) { + i5 = xVar2.f970b; + String g = xVar2.g(); + c2 = g == null ? 0 : "STYLE".equals(g) ? 2 : g.startsWith("NOTE") ? (char) 1 : 3; + } + xVar2.E(i5); + if (c2 == 0) { + return new k(arrayList); + } + if (c2 == 1) { + do { + } while (!TextUtils.isEmpty(this.n.g())); + } else { + if (c2 == 2) { + if (arrayList.isEmpty()) { + this.n.g(); + e eVar2 = this.o; + x xVar3 = this.n; + eVar2.d.setLength(i3); + int i6 = xVar3.f970b; + do { + } while (!TextUtils.isEmpty(xVar3.g())); + eVar2.c.C(xVar3.a, xVar3.f970b); + eVar2.c.E(i6); + ArrayList arrayList3 = new ArrayList(); + while (true) { + x xVar4 = eVar2.c; + StringBuilder sb2 = eVar2.d; + e.c(xVar4); + if (xVar4.a() >= 5 && "::cue".equals(xVar4.q(5))) { + int i7 = xVar4.f970b; + String b2 = e.b(xVar4, sb2); + if (b2 != null) { + if ("{".equals(b2)) { + xVar4.E(i7); + str = ""; + } else if ("(".equals(b2)) { + int i8 = xVar4.f970b; + int i9 = xVar4.c; + boolean z3 = false; + while (i8 < i9 && !z3) { + int i10 = i8 + 1; + z3 = ((char) xVar4.a[i8]) == ')'; + i8 = i10; + } + str = xVar4.q((i8 - 1) - xVar4.f970b).trim(); + } else { + str = null; + } + if (str == null || !"{".equals(e.b(eVar2.c, eVar2.d))) { + break; + } + f fVar = new f(); + if (!"".equals(str)) { + int indexOf = str.indexOf(91); + if (indexOf != i4) { + Matcher matcher = e.a.matcher(str.substring(indexOf)); + if (matcher.matches()) { + String group = matcher.group((int) r7); + Objects.requireNonNull(group); + fVar.d = group; + } + str = str.substring(i3, indexOf); + } + String[] H = e0.H(str, "\\."); + String str3 = H[i3]; + int indexOf2 = str3.indexOf(35); + if (indexOf2 != i4) { + fVar.f875b = str3.substring(i3, indexOf2); + fVar.a = str3.substring(indexOf2 + 1); + } else { + fVar.f875b = str3; + } + if (H.length > r7) { + int length = H.length; + d.j(r7); + d.j(length <= H.length); + int i11 = r7 == true ? 1 : 0; + int i12 = r7 == true ? 1 : 0; + int i13 = r7 == true ? 1 : 0; + fVar.c = new HashSet(Arrays.asList((String[]) Arrays.copyOfRange(H, i11, length))); + } + } + boolean z4 = false; + String str4 = null; + while (!z4) { + x xVar5 = eVar2.c; + int i14 = xVar5.f970b; + String b3 = e.b(xVar5, eVar2.d); + boolean z5 = b3 == null || "}".equals(b3); + if (!z5) { + eVar2.c.E(i14); + x xVar6 = eVar2.c; + StringBuilder sb3 = eVar2.d; + e.c(xVar6); + String a = e.a(xVar6, sb3); + if (!"".equals(a) && ":".equals(e.b(xVar6, sb3))) { + e.c(xVar6); + StringBuilder sb4 = new StringBuilder(); + boolean z6 = false; + while (true) { + if (z6) { + str2 = b3; + eVar = eVar2; + sb = sb4.toString(); + break; + } + str2 = b3; + int i15 = xVar6.f970b; + eVar = eVar2; + String b4 = e.b(xVar6, sb3); + if (b4 == null) { + sb = null; + break; + } + if ("}".equals(b4) || ";".equals(b4)) { + xVar6.E(i15); + z6 = true; + } else { + sb4.append(b4); + } + b3 = str2; + eVar2 = eVar; + } + if (sb != null && !"".equals(sb)) { + int i16 = xVar6.f970b; + String b5 = e.b(xVar6, sb3); + if (!";".equals(b5)) { + if ("}".equals(b5)) { + xVar6.E(i16); + } else { + continue; + } + } + if (ModelAuditLogEntry.CHANGE_KEY_COLOR.equals(a)) { + fVar.f = b.i.a.c.f3.i.a(sb, true); + fVar.g = true; + } else if ("background-color".equals(a)) { + fVar.h = b.i.a.c.f3.i.a(sb, true); + fVar.i = true; + } else if ("ruby-position".equals(a)) { + if ("over".equals(sb)) { + fVar.p = 1; + } else if ("under".equals(sb)) { + fVar.p = 2; + } + } else if ("text-combine-upright".equals(a)) { + fVar.q = "all".equals(sb) || sb.startsWith("digits"); + } else if ("text-decoration".equals(a)) { + if ("underline".equals(sb)) { + fVar.k = 1; + } + } else if ("font-family".equals(a)) { + fVar.e = b.i.a.f.e.o.f.m1(sb); + } else if ("font-weight".equals(a)) { + if ("bold".equals(sb)) { + fVar.l = 1; + } + } else if ("font-style".equals(a)) { + if ("italic".equals(sb)) { + fVar.m = 1; + } + } else if ("font-size".equals(a)) { + Matcher matcher2 = e.f874b.matcher(b.i.a.f.e.o.f.m1(sb)); + if (!matcher2.matches()) { + a.g0(sb.length() + 22, "Invalid font-size: '", sb, "'.", "WebvttCssParser"); + } else { + String group2 = matcher2.group(2); + Objects.requireNonNull(group2); + int hashCode = group2.hashCode(); + if (hashCode != 37) { + if (hashCode != 3240) { + if (hashCode == 3592 && group2.equals("px")) { + c = 2; + if (c == 0) { + i2 = 1; + if (c == 1) { + fVar.n = 2; + } else if (c == 2) { + fVar.n = 1; + } else { + throw new IllegalStateException(); + } + } else { + i2 = 1; + fVar.n = 3; + } + String group3 = matcher2.group(i2); + Objects.requireNonNull(group3); + fVar.o = Float.parseFloat(group3); + } + } else if (group2.equals("em")) { + c = 1; + if (c == 0) { + } + String group3 = matcher2.group(i2); + Objects.requireNonNull(group3); + fVar.o = Float.parseFloat(group3); + } + } else if (group2.equals("%")) { + c = 0; + if (c == 0) { + } + String group3 = matcher2.group(i2); + Objects.requireNonNull(group3); + fVar.o = Float.parseFloat(group3); + } + c = 65535; + if (c == 0) { + } + String group3 = matcher2.group(i2); + Objects.requireNonNull(group3); + fVar.o = Float.parseFloat(group3); + } + } else { + continue; + } + } + str4 = str2; + eVar2 = eVar; + z4 = z5; + } + } + str2 = b3; + eVar = eVar2; + str4 = str2; + eVar2 = eVar; + z4 = z5; + } + if ("}".equals(str4)) { + arrayList3.add(fVar); + } + i3 = 0; + i4 = -1; + r7 = 1; + eVar2 = eVar2; + } + } + str = null; + if (str == null) { + break; + } + break; + } + arrayList2.addAll(arrayList3); + } else { + throw new SubtitleDecoderException("A style block was found after the first cue."); + } + } else if (c2 == 3) { + x xVar7 = this.n; + Pattern pattern = h.a; + String g2 = xVar7.g(); + if (g2 == null) { + gVar = null; + } else { + Pattern pattern2 = h.a; + Matcher matcher3 = pattern2.matcher(g2); + if (matcher3.matches()) { + gVar = h.d(null, matcher3, xVar7, arrayList2); + } else { + String g3 = xVar7.g(); + if (g3 != null) { + Matcher matcher4 = pattern2.matcher(g3); + if (matcher4.matches()) { + gVar = h.d(g2.trim(), matcher4, xVar7, arrayList2); + } + } + gVar = null; + } + } + if (gVar != null) { + arrayList.add(gVar); + } + } + i3 = 0; + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/j.java b/app/src/main/java/b/i/a/c/b3/v/j.java new file mode 100644 index 0000000000..3d763c71d7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/j.java @@ -0,0 +1,43 @@ +package b.i.a.c.b3.v; + +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import com.google.android.exoplayer2.ParserException; +import java.util.regex.Pattern; +/* compiled from: WebvttParserUtil */ +public final class j { + static { + Pattern.compile("^NOTE([ \t].*)?$"); + } + + public static float a(String str) throws NumberFormatException { + if (str.endsWith("%")) { + return Float.parseFloat(str.substring(0, str.length() - 1)) / 100.0f; + } + throw new NumberFormatException("Percentages must end with %"); + } + + public static long b(String str) throws NumberFormatException { + int i = e0.a; + String[] split = str.split("\\.", 2); + long j = 0; + for (String str2 : e0.H(split[0], ":")) { + j = (j * 60) + Long.parseLong(str2); + } + long j2 = j * 1000; + if (split.length == 2) { + j2 += Long.parseLong(split[1]); + } + return j2 * 1000; + } + + public static void c(x xVar) throws ParserException { + int i = xVar.f970b; + String g = xVar.g(); + if (!(g != null && g.startsWith("WEBVTT"))) { + xVar.E(i); + String valueOf = String.valueOf(xVar.g()); + throw ParserException.a(valueOf.length() != 0 ? "Expected WEBVTT. Got ".concat(valueOf) : new String("Expected WEBVTT. Got "), null); + } + } +} diff --git a/app/src/main/java/b/i/a/c/b3/v/k.java b/app/src/main/java/b/i/a/c/b3/v/k.java new file mode 100644 index 0000000000..dc005971a9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/b3/v/k.java @@ -0,0 +1,84 @@ +package b.i.a.c.b3.v; + +import b.c.a.a0.d; +import b.i.a.c.b3.b; +import b.i.a.c.b3.g; +import b.i.a.c.f3.e0; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +/* compiled from: WebvttSubtitle */ +public final class k implements g { + public final List j; + public final long[] k; + public final long[] l; + + public k(List list) { + this.j = Collections.unmodifiableList(new ArrayList(list)); + this.k = new long[(list.size() * 2)]; + for (int i = 0; i < list.size(); i++) { + g gVar = list.get(i); + int i2 = i * 2; + long[] jArr = this.k; + jArr[i2] = gVar.f876b; + jArr[i2 + 1] = gVar.c; + } + long[] jArr2 = this.k; + long[] copyOf = Arrays.copyOf(jArr2, jArr2.length); + this.l = copyOf; + Arrays.sort(copyOf); + } + + @Override // b.i.a.c.b3.g + public int f(long j) { + int b2 = e0.b(this.l, j, false, false); + if (b2 < this.l.length) { + return b2; + } + return -1; + } + + @Override // b.i.a.c.b3.g + public long g(int i) { + boolean z2 = true; + d.j(i >= 0); + if (i >= this.l.length) { + z2 = false; + } + d.j(z2); + return this.l[i]; + } + + @Override // b.i.a.c.b3.g + public List h(long j) { + ArrayList arrayList = new ArrayList(); + ArrayList arrayList2 = new ArrayList(); + for (int i = 0; i < this.j.size(); i++) { + long[] jArr = this.k; + int i2 = i * 2; + if (jArr[i2] <= j && j < jArr[i2 + 1]) { + g gVar = this.j.get(i); + b bVar = gVar.a; + if (bVar.p == -3.4028235E38f) { + arrayList2.add(gVar); + } else { + arrayList.add(bVar); + } + } + } + Collections.sort(arrayList2, b.j); + for (int i3 = 0; i3 < arrayList2.size(); i3++) { + b.C0084b a = ((g) arrayList2.get(i3)).a.a(); + a.e = (float) (-1 - i3); + a.f = 1; + arrayList.add(a.a()); + } + return arrayList; + } + + @Override // b.i.a.c.b3.g + public int i() { + return this.l.length; + } +} diff --git a/app/src/main/java/b/i/a/c/c.java b/app/src/main/java/b/i/a/c/c.java new file mode 100644 index 0000000000..76c355299b --- /dev/null +++ b/app/src/main/java/b/i/a/c/c.java @@ -0,0 +1,47 @@ +package b.i.a.c; + +import b.d.b.a.a; +import b.i.a.c.t0; +import b.i.a.c.t2.o; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Runnable { + public final /* synthetic */ t0.a j; + public final /* synthetic */ int k; + + public /* synthetic */ c(t0.a aVar, int i) { + this.j = aVar; + this.k = i; + } + + @Override // java.lang.Runnable + public final void run() { + t0.a aVar = this.j; + int i = this.k; + t0 t0Var = t0.this; + Objects.requireNonNull(t0Var); + boolean z2 = true; + if (i == -3 || i == -2) { + if (i != -2) { + o oVar = t0Var.d; + if (oVar == null || oVar.k != 1) { + z2 = false; + } + if (!z2) { + t0Var.d(3); + return; + } + } + t0Var.b(0); + t0Var.d(2); + } else if (i == -1) { + t0Var.b(-1); + t0Var.a(); + } else if (i != 1) { + a.d0(38, "Unknown focus change type: ", i, "AudioFocusManager"); + } else { + t0Var.d(1); + t0Var.b(1); + } + } +} diff --git a/app/src/main/java/b/i/a/c/c0.java b/app/src/main/java/b/i/a/c/c0.java new file mode 100644 index 0000000000..ce851f9126 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c0.java @@ -0,0 +1,71 @@ +package b.i.a.c; + +import b.c.a.a0.d; +import b.i.a.c.h1; +import java.util.Arrays; +import java.util.List; +/* compiled from: lambda */ +public final /* synthetic */ class c0 implements Runnable { + public final /* synthetic */ f1 j; + public final /* synthetic */ h1.d k; + + public /* synthetic */ c0(f1 f1Var, h1.d dVar) { + this.j = f1Var; + this.k = dVar; + } + + @Override // java.lang.Runnable + public final void run() { + long j; + boolean z2; + long j2; + f1 f1Var = this.j; + h1.d dVar = this.k; + int i = f1Var.f946x - dVar.c; + f1Var.f946x = i; + boolean z3 = true; + if (dVar.d) { + f1Var.f947y = dVar.e; + f1Var.f948z = true; + } + if (dVar.f) { + f1Var.A = dVar.g; + } + if (i == 0) { + o2 o2Var = dVar.f998b.f1132b; + if (!f1Var.F.f1132b.q() && o2Var.q()) { + f1Var.G = -1; + f1Var.H = 0; + } + if (!o2Var.q()) { + List asList = Arrays.asList(((c2) o2Var).r); + d.D(asList.size() == f1Var.m.size()); + for (int i2 = 0; i2 < asList.size(); i2++) { + f1Var.m.get(i2).f949b = (o2) asList.get(i2); + } + } + long j3 = -9223372036854775807L; + if (f1Var.f948z) { + if (dVar.f998b.c.equals(f1Var.F.c) && dVar.f998b.e == f1Var.F.t) { + z3 = false; + } + if (z3) { + if (o2Var.q() || dVar.f998b.c.a()) { + j2 = dVar.f998b.e; + } else { + w1 w1Var = dVar.f998b; + j2 = f1Var.m0(o2Var, w1Var.c, w1Var.e); + } + j3 = j2; + } + j = j3; + z2 = z3; + } else { + j = -9223372036854775807L; + z2 = false; + } + f1Var.f948z = false; + f1Var.s0(dVar.f998b, 1, f1Var.A, false, z2, f1Var.f947y, j, -1); + } + } +} diff --git a/app/src/main/java/b/i/a/c/c1.java b/app/src/main/java/b/i/a/c/c1.java new file mode 100644 index 0000000000..fcf5166f6b --- /dev/null +++ b/app/src/main/java/b/i/a/c/c1.java @@ -0,0 +1,30 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +/* compiled from: DeviceInfo */ +public final class c1 implements w0 { + public final int j; + public final int k; + public final int l; + + public c1(int i, int i2, int i3) { + this.j = i; + this.k = i2; + this.l = i3; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof c1)) { + return false; + } + c1 c1Var = (c1) obj; + return this.j == c1Var.j && this.k == c1Var.k && this.l == c1Var.l; + } + + public int hashCode() { + return ((((527 + this.j) * 31) + this.k) * 31) + this.l; + } +} diff --git a/app/src/main/java/b/i/a/c/c2.java b/app/src/main/java/b/i/a/c/c2.java new file mode 100644 index 0000000000..670847bee5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c2.java @@ -0,0 +1,52 @@ +package b.i.a.c; + +import b.i.a.c.a3.k0; +import java.util.Collection; +import java.util.HashMap; +/* compiled from: PlaylistTimeline */ +public final class c2 extends r0 { + public final int n; + public final int o; + public final int[] p; + public final int[] q; + public final o2[] r; + + /* renamed from: s reason: collision with root package name */ + public final Object[] f881s; + public final HashMap t = new HashMap<>(); + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c2(Collection collection, k0 k0Var) { + super(false, k0Var); + int i = 0; + int size = collection.size(); + this.p = new int[size]; + this.q = new int[size]; + this.r = new o2[size]; + this.f881s = new Object[size]; + int i2 = 0; + int i3 = 0; + for (t1 t1Var : collection) { + this.r[i3] = t1Var.a(); + this.q[i3] = i; + this.p[i3] = i2; + i += this.r[i3].p(); + i2 += this.r[i3].i(); + this.f881s[i3] = t1Var.getUid(); + this.t.put(this.f881s[i3], Integer.valueOf(i3)); + i3++; + } + this.n = i; + this.o = i2; + } + + @Override // b.i.a.c.o2 + public int i() { + return this.o; + } + + @Override // b.i.a.c.o2 + public int p() { + return this.n; + } +} diff --git a/app/src/main/java/b/i/a/c/c3/a.java b/app/src/main/java/b/i/a/c/c3/a.java new file mode 100644 index 0000000000..941bd417c5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/a.java @@ -0,0 +1,13 @@ +package b.i.a.c.c3; + +import b.i.a.c.j1; +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Comparator { + public static final /* synthetic */ a j = new a(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + return ((j1) obj2).f1003s - ((j1) obj).f1003s; + } +} diff --git a/app/src/main/java/b/i/a/c/c3/b.java b/app/src/main/java/b/i/a/c/c3/b.java new file mode 100644 index 0000000000..1a5fe44ae0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/b.java @@ -0,0 +1,15 @@ +package b.i.a.c.c3; + +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Comparator { + public static final /* synthetic */ b j = new b(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + Integer num = (Integer) obj; + Integer num2 = (Integer) obj2; + int[] iArr = h.f884b; + return 0; + } +} diff --git a/app/src/main/java/b/i/a/c/c3/c.java b/app/src/main/java/b/i/a/c/c3/c.java new file mode 100644 index 0000000000..31c58b56e1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/c.java @@ -0,0 +1,21 @@ +package b.i.a.c.c3; + +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Comparator { + public static final /* synthetic */ c j = new c(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + Integer num = (Integer) obj; + Integer num2 = (Integer) obj2; + int[] iArr = h.f884b; + if (num.intValue() == -1) { + return num2.intValue() == -1 ? 0 : -1; + } + if (num2.intValue() == -1) { + return 1; + } + return num.intValue() - num2.intValue(); + } +} diff --git a/app/src/main/java/b/i/a/c/c3/d.java b/app/src/main/java/b/i/a/c/c3/d.java new file mode 100644 index 0000000000..966b4b6e2e --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/d.java @@ -0,0 +1,32 @@ +package b.i.a.c.c3; + +import android.os.Bundle; +import b.i.a.c.c3.o; +import b.i.a.c.f3.f; +import b.i.a.c.w0; +import b.i.b.b.a; +import b.i.b.b.h0; +import b.i.b.b.p; +import b.i.b.b.q; +import java.util.ArrayList; +import java.util.List; +/* compiled from: lambda */ +public final /* synthetic */ class d implements w0.a { + public static final /* synthetic */ d a = new d(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + o oVar = o.j; + int i = o.a.j; + e eVar = e.a; + ArrayList parcelableArrayList = bundle.getParcelableArrayList(Integer.toString(0, 36)); + a aVar = p.k; + List b2 = f.b(eVar, parcelableArrayList, h0.l); + q.a aVar2 = new q.a(4); + for (int i2 = 0; i2 < b2.size(); i2++) { + o.a aVar3 = (o.a) b2.get(i2); + aVar2.c(aVar3.k, aVar3); + } + return new o(aVar2.a()); + } +} diff --git a/app/src/main/java/b/i/a/c/c3/e.java b/app/src/main/java/b/i/a/c/c3/e.java new file mode 100644 index 0000000000..32b9348c7f --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/e.java @@ -0,0 +1,35 @@ +package b.i.a.c.c3; + +import android.os.Bundle; +import b.i.a.c.a3.n0; +import b.i.a.c.c3.o; +import b.i.a.c.f3.f; +import b.i.a.c.j1; +import b.i.a.c.w0; +import b.i.b.b.a; +import b.i.b.b.h0; +import b.i.b.b.p; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class e implements w0.a { + public static final /* synthetic */ e a = new e(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + int i = o.a.j; + Bundle bundle2 = bundle.getBundle(Integer.toString(0, 36)); + Objects.requireNonNull(bundle2); + int i2 = n0.j; + w0.a aVar = j1.k; + ArrayList parcelableArrayList = bundle2.getParcelableArrayList(Integer.toString(0, 36)); + a aVar2 = p.k; + n0 n0Var = new n0((j1[]) f.b(aVar, parcelableArrayList, h0.l).toArray(new j1[0])); + int[] intArray = bundle.getIntArray(Integer.toString(1, 36)); + if (intArray == null) { + return new o.a(n0Var); + } + return new o.a(n0Var, intArray.length == 0 ? Collections.emptyList() : new b.i.b.c.a(intArray)); + } +} diff --git a/app/src/main/java/b/i/a/c/c3/f.java b/app/src/main/java/b/i/a/c/c3/f.java new file mode 100644 index 0000000000..43173e3b05 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/f.java @@ -0,0 +1,90 @@ +package b.i.a.c.c3; + +import android.util.Log; +import androidx.annotation.CallSuper; +import androidx.annotation.Nullable; +import b.i.a.c.a3.n0; +import b.i.a.c.c3.j; +import b.i.a.c.f3.g; +import b.i.b.b.p; +import java.util.List; +/* compiled from: AdaptiveTrackSelection */ +public class f extends g { + public final b.i.a.c.e3.f f; + public final g g; + + /* compiled from: AdaptiveTrackSelection */ + public static final class a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f882b; + + public a(long j, long j2) { + this.a = j; + this.f882b = j2; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.f882b == aVar.f882b; + } + + public int hashCode() { + return (((int) this.a) * 31) + ((int) this.f882b); + } + } + + /* compiled from: AdaptiveTrackSelection */ + public static class b implements j.b { + public final g a = g.a; + } + + public f(n0 n0Var, int[] iArr, int i, b.i.a.c.e3.f fVar, long j, long j2, long j3, int i2, int i3, float f, float f2, List list, g gVar) { + super(n0Var, iArr, i); + if (j3 < j) { + Log.w("AdaptiveTrackSelection", "Adjusting minDurationToRetainAfterDiscardMs to be at least minDurationForQualityIncreaseMs"); + } + this.f = fVar; + p.n(list); + this.g = gVar; + } + + public static void m(List> list, long[] jArr) { + long j = 0; + for (long j2 : jArr) { + j += j2; + } + for (int i = 0; i < list.size(); i++) { + p.a aVar = list.get(i); + if (aVar != null) { + aVar.b(new a(j, jArr[i])); + } + } + } + + @Override // b.i.a.c.c3.j + public int b() { + return 0; + } + + @Override // b.i.a.c.c3.g, b.i.a.c.c3.j + @CallSuper + public void e() { + } + + @Override // b.i.a.c.c3.g, b.i.a.c.c3.j + @CallSuper + public void g() { + } + + @Override // b.i.a.c.c3.g, b.i.a.c.c3.j + public void i(float f) { + } +} diff --git a/app/src/main/java/b/i/a/c/c3/g.java b/app/src/main/java/b/i/a/c/c3/g.java new file mode 100644 index 0000000000..6a10510703 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/g.java @@ -0,0 +1,137 @@ +package b.i.a.c.c3; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.n0; +import b.i.a.c.j1; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: BaseTrackSelection */ +public abstract class g implements j { + public final n0 a; + + /* renamed from: b reason: collision with root package name */ + public final int f883b; + public final int[] c; + public final j1[] d; + public int e; + + public g(n0 n0Var, int[] iArr, int i) { + d.D(iArr.length > 0); + Objects.requireNonNull(n0Var); + this.a = n0Var; + int length = iArr.length; + this.f883b = length; + this.d = new j1[length]; + for (int i2 = 0; i2 < iArr.length; i2++) { + this.d[i2] = n0Var.l[iArr[i2]]; + } + Arrays.sort(this.d, a.j); + this.c = new int[this.f883b]; + int i3 = 0; + while (true) { + int i4 = this.f883b; + if (i3 < i4) { + int[] iArr2 = this.c; + j1 j1Var = this.d[i3]; + int i5 = 0; + while (true) { + j1[] j1VarArr = n0Var.l; + if (i5 >= j1VarArr.length) { + i5 = -1; + break; + } else if (j1Var == j1VarArr[i5]) { + break; + } else { + i5++; + } + } + iArr2[i3] = i5; + i3++; + } else { + long[] jArr = new long[i4]; + return; + } + } + } + + @Override // b.i.a.c.c3.m + public final n0 a() { + return this.a; + } + + @Override // b.i.a.c.c3.j + public /* synthetic */ void c(boolean z2) { + i.b(this, z2); + } + + @Override // b.i.a.c.c3.m + public final j1 d(int i) { + return this.d[i]; + } + + @Override // b.i.a.c.c3.j + public void e() { + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + g gVar = (g) obj; + return this.a == gVar.a && Arrays.equals(this.c, gVar.c); + } + + @Override // b.i.a.c.c3.m + public final int f(int i) { + return this.c[i]; + } + + @Override // b.i.a.c.c3.j + public void g() { + } + + @Override // b.i.a.c.c3.j + public final j1 h() { + return this.d[b()]; + } + + public int hashCode() { + if (this.e == 0) { + this.e = Arrays.hashCode(this.c) + (System.identityHashCode(this.a) * 31); + } + return this.e; + } + + @Override // b.i.a.c.c3.j + public void i(float f) { + } + + @Override // b.i.a.c.c3.j + public /* synthetic */ void j() { + i.a(this); + } + + @Override // b.i.a.c.c3.j + public /* synthetic */ void k() { + i.c(this); + } + + @Override // b.i.a.c.c3.m + public final int l(int i) { + for (int i2 = 0; i2 < this.f883b; i2++) { + if (this.c[i2] == i) { + return i2; + } + } + return -1; + } + + @Override // b.i.a.c.c3.m + public final int length() { + return this.c.length; + } +} diff --git a/app/src/main/java/b/i/a/c/c3/h.java b/app/src/main/java/b/i/a/c/c3/h.java new file mode 100644 index 0000000000..d7ace3c6d4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/h.java @@ -0,0 +1,702 @@ +package b.i.a.c.c3; + +import android.content.Context; +import android.content.res.Configuration; +import android.content.res.Resources; +import android.graphics.Point; +import android.text.TextUtils; +import android.util.SparseArray; +import android.util.SparseBooleanArray; +import androidx.annotation.Nullable; +import b.i.a.c.a3.n0; +import b.i.a.c.a3.o0; +import b.i.a.c.c3.f; +import b.i.a.c.c3.j; +import b.i.a.c.c3.p; +import b.i.a.c.f3.e0; +import b.i.a.c.j1; +import b.i.a.c.w0; +import b.i.b.b.f0; +import b.i.b.b.g0; +import b.i.b.b.k0; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: DefaultTrackSelector */ +public class h extends l { + + /* renamed from: b reason: collision with root package name */ + public static final int[] f884b = new int[0]; + public static final g0 c = g0.a(c.j); + public static final g0 d = g0.a(b.j); + public final j.b e; + public final AtomicReference f; + + /* compiled from: DefaultTrackSelector */ + public static final class b implements Comparable { + public final boolean j; + @Nullable + public final String k; + public final d l; + public final boolean m; + public final int n; + public final int o; + public final int p; + public final int q; + public final int r; + + /* renamed from: s reason: collision with root package name */ + public final boolean f885s; + public final int t; + public final int u; + public final int v; + public final int w; + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x009f: APUT (r1v16 java.lang.String[]), (0 ??[int, short, byte, char]), (r9v23 java.lang.String) */ + public b(j1 j1Var, d dVar, int i) { + int i2; + int i3; + String[] strArr; + int i4; + this.l = dVar; + this.k = h.g(j1Var.n); + int i5 = 0; + this.m = h.e(i, false); + int i6 = 0; + while (true) { + i2 = Integer.MAX_VALUE; + if (i6 >= dVar.w.size()) { + i6 = Integer.MAX_VALUE; + i3 = 0; + break; + } + i3 = h.c(j1Var, dVar.w.get(i6), false); + if (i3 > 0) { + break; + } + i6++; + } + this.o = i6; + this.n = i3; + this.p = Integer.bitCount(j1Var.p & dVar.f892x); + this.f885s = (j1Var.o & 1) != 0; + int i7 = j1Var.J; + this.t = i7; + this.u = j1Var.K; + int i8 = j1Var.f1003s; + this.v = i8; + this.j = (i8 == -1 || i8 <= dVar.f894z) && (i7 == -1 || i7 <= dVar.f893y); + int i9 = e0.a; + Configuration configuration = Resources.getSystem().getConfiguration(); + int i10 = e0.a; + if (i10 >= 24) { + strArr = e0.H(configuration.getLocales().toLanguageTags(), ","); + } else { + String[] strArr2 = new String[1]; + Locale locale = configuration.locale; + strArr2[0] = i10 >= 21 ? locale.toLanguageTag() : locale.toString(); + strArr = strArr2; + } + for (int i11 = 0; i11 < strArr.length; i11++) { + strArr[i11] = e0.C(strArr[i11]); + } + int i12 = 0; + while (true) { + if (i12 >= strArr.length) { + i12 = Integer.MAX_VALUE; + i4 = 0; + break; + } + i4 = h.c(j1Var, strArr[i12], false); + if (i4 > 0) { + break; + } + i12++; + } + this.q = i12; + this.r = i4; + while (true) { + if (i5 >= dVar.A.size()) { + break; + } + String str = j1Var.w; + if (str != null && str.equals(dVar.A.get(i5))) { + i2 = i5; + break; + } + i5++; + } + this.w = i2; + } + + /* renamed from: f */ + public int compareTo(b bVar) { + g0 b2 = (!this.j || !this.m) ? h.c.b() : h.c; + b.i.b.b.j c = b.i.b.b.j.a.c(this.m, bVar.m); + Integer valueOf = Integer.valueOf(this.o); + Integer valueOf2 = Integer.valueOf(bVar.o); + k0 k0Var = k0.j; + b.i.b.b.j b3 = c.b(valueOf, valueOf2, k0Var).a(this.n, bVar.n).a(this.p, bVar.p).c(this.j, bVar.j).b(Integer.valueOf(this.w), Integer.valueOf(bVar.w), k0Var).b(Integer.valueOf(this.v), Integer.valueOf(bVar.v), this.l.E ? h.c.b() : h.d).c(this.f885s, bVar.f885s).b(Integer.valueOf(this.q), Integer.valueOf(bVar.q), k0Var).a(this.r, bVar.r).b(Integer.valueOf(this.t), Integer.valueOf(bVar.t), b2).b(Integer.valueOf(this.u), Integer.valueOf(bVar.u), b2); + Integer valueOf3 = Integer.valueOf(this.v); + Integer valueOf4 = Integer.valueOf(bVar.v); + if (!e0.a(this.k, bVar.k)) { + b2 = h.d; + } + return b3.b(valueOf3, valueOf4, b2).e(); + } + } + + /* compiled from: DefaultTrackSelector */ + public static final class c implements Comparable { + public final boolean j; + public final boolean k; + + public c(j1 j1Var, int i) { + this.j = (j1Var.o & 1) == 0 ? false : true; + this.k = h.e(i, false); + } + + /* renamed from: f */ + public int compareTo(c cVar) { + return b.i.b.b.j.a.c(this.k, cVar.k).c(this.j, cVar.j).e(); + } + } + + /* compiled from: DefaultTrackSelector */ + public static final class d extends p implements w0 { + public static final d I = new e().d(); + public final int J; + public final boolean K; + public final boolean L; + public final boolean M; + public final boolean N; + public final boolean O; + public final boolean P; + public final boolean Q; + public final boolean R; + public final boolean S; + public final boolean T; + public final SparseArray> U; + public final SparseBooleanArray V; + + public d(e eVar, a aVar) { + super(eVar); + this.K = eVar.f886y; + this.L = eVar.f887z; + this.M = eVar.A; + this.N = eVar.B; + this.O = eVar.C; + this.P = eVar.D; + this.Q = eVar.E; + this.J = eVar.F; + this.R = eVar.G; + this.S = eVar.H; + this.T = eVar.I; + this.U = eVar.J; + this.V = eVar.K; + } + + /* JADX WARNING: Removed duplicated region for block: B:41:0x007f */ + /* JADX WARNING: Removed duplicated region for block: B:60:0x00e7 A[LOOP:1: B:45:0x0090->B:60:0x00e7, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:67:0x008d A[EDGE_INSN: B:67:0x008d->B:43:0x008d ?: BREAK , SYNTHETIC] */ + @Override // b.i.a.c.c3.p + public boolean equals(@Nullable Object obj) { + boolean z2; + boolean z3; + boolean z4; + if (this == obj) { + return true; + } + if (obj == null || d.class != obj.getClass()) { + return false; + } + d dVar = (d) obj; + if (super.equals(dVar) && this.K == dVar.K && this.L == dVar.L && this.M == dVar.M && this.N == dVar.N && this.O == dVar.O && this.P == dVar.P && this.Q == dVar.Q && this.J == dVar.J && this.R == dVar.R && this.S == dVar.S && this.T == dVar.T) { + SparseBooleanArray sparseBooleanArray = this.V; + SparseBooleanArray sparseBooleanArray2 = dVar.V; + int size = sparseBooleanArray.size(); + if (sparseBooleanArray2.size() == size) { + int i = 0; + while (true) { + if (i >= size) { + z2 = true; + break; + } else if (sparseBooleanArray2.indexOfKey(sparseBooleanArray.keyAt(i)) < 0) { + break; + } else { + i++; + } + } + if (z2) { + SparseArray> sparseArray = this.U; + SparseArray> sparseArray2 = dVar.U; + int size2 = sparseArray.size(); + if (sparseArray2.size() == size2) { + int i2 = 0; + while (true) { + if (i2 < size2) { + int indexOfKey = sparseArray2.indexOfKey(sparseArray.keyAt(i2)); + if (indexOfKey < 0) { + break; + } + Map valueAt = sparseArray.valueAt(i2); + Map valueAt2 = sparseArray2.valueAt(indexOfKey); + if (valueAt2.size() == valueAt.size()) { + Iterator> it = valueAt.entrySet().iterator(); + while (true) { + if (!it.hasNext()) { + z4 = true; + break; + } + Map.Entry next = it.next(); + o0 key = next.getKey(); + if (valueAt2.containsKey(key)) { + if (!e0.a(next.getValue(), valueAt2.get(key))) { + break; + } + } else { + break; + } + } + if (z4) { + break; + } + i2++; + } + z4 = false; + if (z4) { + } + } else { + z3 = true; + break; + } + } + } + z3 = false; + if (z3) { + return true; + } + } + } + z2 = false; + if (z2) { + } + } + return false; + } + + @Override // b.i.a.c.c3.p + public int hashCode() { + return ((((((((((((((((((((((super.hashCode() + 31) * 31) + (this.K ? 1 : 0)) * 31) + (this.L ? 1 : 0)) * 31) + (this.M ? 1 : 0)) * 31) + (this.N ? 1 : 0)) * 31) + (this.O ? 1 : 0)) * 31) + (this.P ? 1 : 0)) * 31) + (this.Q ? 1 : 0)) * 31) + this.J) * 31) + (this.R ? 1 : 0)) * 31) + (this.S ? 1 : 0)) * 31) + (this.T ? 1 : 0); + } + } + + /* compiled from: DefaultTrackSelector */ + public static final class e extends p.a { + public boolean A; + public boolean B; + public boolean C; + public boolean D; + public boolean E; + public int F; + public boolean G; + public boolean H; + public boolean I; + public final SparseArray> J = new SparseArray<>(); + public final SparseBooleanArray K = new SparseBooleanArray(); + + /* renamed from: y reason: collision with root package name */ + public boolean f886y; + + /* renamed from: z reason: collision with root package name */ + public boolean f887z; + + @Deprecated + public e() { + e(); + } + + public e(Context context) { + a(context); + c(context, true); + e(); + } + + @Override // b.i.a.c.c3.p.a + public p.a a(Context context) { + super.a(context); + return this; + } + + @Override // b.i.a.c.c3.p.a + public p.a b(int i, int i2, boolean z2) { + this.i = i; + this.j = i2; + this.k = z2; + return this; + } + + @Override // b.i.a.c.c3.p.a + public p.a c(Context context, boolean z2) { + super.c(context, z2); + return this; + } + + public d d() { + return new d(this, null); + } + + public final void e() { + this.f886y = true; + this.f887z = false; + this.A = true; + this.B = true; + this.C = false; + this.D = false; + this.E = false; + this.F = 0; + this.G = true; + this.H = false; + this.I = true; + } + } + + /* compiled from: DefaultTrackSelector */ + public static final class f implements w0 { + public final int j; + public final int[] k; + public final int l; + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || f.class != obj.getClass()) { + return false; + } + f fVar = (f) obj; + return this.j == fVar.j && Arrays.equals(this.k, fVar.k) && this.l == fVar.l; + } + + public int hashCode() { + return ((Arrays.hashCode(this.k) + (this.j * 31)) * 31) + this.l; + } + } + + /* compiled from: DefaultTrackSelector */ + public static final class g implements Comparable { + public final boolean j; + public final boolean k; + public final boolean l; + public final boolean m; + public final int n; + public final int o; + public final int p; + public final int q; + public final boolean r; + + public g(j1 j1Var, d dVar, int i, @Nullable String str) { + int i2; + boolean z2 = false; + this.k = h.e(i, false); + int i3 = j1Var.o & (~dVar.J); + this.l = (i3 & 1) != 0; + this.m = (i3 & 2) != 0; + int i4 = Integer.MAX_VALUE; + b.i.b.b.p u = dVar.B.isEmpty() ? b.i.b.b.p.u("") : dVar.B; + int i5 = 0; + while (true) { + if (i5 >= u.size()) { + i2 = 0; + break; + } + i2 = h.c(j1Var, u.get(i5), dVar.D); + if (i2 > 0) { + i4 = i5; + break; + } + i5++; + } + this.n = i4; + this.o = i2; + int bitCount = Integer.bitCount(j1Var.p & dVar.C); + this.p = bitCount; + this.r = (j1Var.p & 1088) != 0; + int c = h.c(j1Var, str, h.g(str) == null); + this.q = c; + if (i2 > 0 || ((dVar.B.isEmpty() && bitCount > 0) || this.l || (this.m && c > 0))) { + z2 = true; + } + this.j = z2; + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + /* renamed from: f */ + public int compareTo(g gVar) { + b.i.b.b.j c = b.i.b.b.j.a.c(this.k, gVar.k); + Integer valueOf = Integer.valueOf(this.n); + Integer valueOf2 = Integer.valueOf(gVar.n); + f0 f0Var = f0.j; + ?? r4 = k0.j; + b.i.b.b.j c2 = c.b(valueOf, valueOf2, r4).a(this.o, gVar.o).a(this.p, gVar.p).c(this.l, gVar.l); + Boolean valueOf3 = Boolean.valueOf(this.m); + Boolean valueOf4 = Boolean.valueOf(gVar.m); + if (this.o != 0) { + f0Var = r4; + } + b.i.b.b.j a = c2.b(valueOf3, valueOf4, f0Var).a(this.q, gVar.q); + if (this.p == 0) { + a = a.d(this.r, gVar.r); + } + return a.e(); + } + } + + /* compiled from: DefaultTrackSelector */ + /* renamed from: b.i.a.c.c3.h$h reason: collision with other inner class name */ + public static final class C0089h implements Comparable { + public final boolean j; + public final d k; + public final boolean l; + public final boolean m; + public final int n; + public final int o; + public final int p; + + /* JADX WARNING: Code restructure failed: missing block: B:33:0x0053, code lost: + if (r10 < ((float) r8.q)) goto L_0x005e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:37:0x005b, code lost: + if (r10 < r8.r) goto L_0x005e; + */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x004e */ + /* JADX WARNING: Removed duplicated region for block: B:36:0x0059 */ + /* JADX WARNING: Removed duplicated region for block: B:47:0x0083 */ + /* JADX WARNING: Removed duplicated region for block: B:55:0x0098 A[EDGE_INSN: B:55:0x0098->B:53:0x0098 ?: BREAK , SYNTHETIC] */ + public C0089h(j1 j1Var, d dVar, int i, boolean z2) { + boolean z3; + int i2; + int i3; + int i4; + int i5; + float f; + int i6; + int i7; + int i8; + int i9; + this.k = dVar; + int i10 = 0; + boolean z4 = true; + int i11 = -1; + if (z2 && (((i7 = j1Var.B) == -1 || i7 <= dVar.k) && ((i8 = j1Var.C) == -1 || i8 <= dVar.l))) { + float f2 = j1Var.D; + if ((f2 == -1.0f || f2 <= ((float) dVar.m)) && ((i9 = j1Var.f1003s) == -1 || i9 <= dVar.n)) { + z3 = true; + this.j = z3; + if (z2 && (((i4 = j1Var.B) == -1 || i4 >= dVar.o) && ((i5 = j1Var.C) == -1 || i5 >= dVar.p))) { + f = j1Var.D; + if (f != -1.0f) { + } + i6 = j1Var.f1003s; + if (i6 != -1) { + } + this.l = z4; + this.m = h.e(i, false); + this.n = j1Var.f1003s; + i2 = j1Var.B; + if (!(i2 == -1 || (i3 = j1Var.C) == -1)) { + i11 = i2 * i3; + } + this.o = i11; + int i12 = Integer.MAX_VALUE; + while (true) { + if (i10 < dVar.v.size()) { + String str = j1Var.w; + if (str != null && str.equals(dVar.v.get(i10))) { + i12 = i10; + break; + } + i10++; + } else { + break; + } + } + this.p = i12; + } + z4 = false; + this.l = z4; + this.m = h.e(i, false); + this.n = j1Var.f1003s; + i2 = j1Var.B; + i11 = i2 * i3; + this.o = i11; + int i12 = Integer.MAX_VALUE; + while (true) { + if (i10 < dVar.v.size()) { + } + i10++; + } + this.p = i12; + } + } + z3 = false; + this.j = z3; + f = j1Var.D; + if (f != -1.0f) { + } + i6 = j1Var.f1003s; + if (i6 != -1) { + } + this.l = z4; + this.m = h.e(i, false); + this.n = j1Var.f1003s; + i2 = j1Var.B; + i11 = i2 * i3; + this.o = i11; + int i12 = Integer.MAX_VALUE; + while (true) { + if (i10 < dVar.v.size()) { + } + i10++; + } + this.p = i12; + } + + /* renamed from: f */ + public int compareTo(C0089h hVar) { + Object b2 = (!this.j || !this.m) ? h.c.b() : h.c; + return b.i.b.b.j.a.c(this.m, hVar.m).c(this.j, hVar.j).c(this.l, hVar.l).b(Integer.valueOf(this.p), Integer.valueOf(hVar.p), k0.j).b(Integer.valueOf(this.n), Integer.valueOf(hVar.n), this.k.E ? h.c.b() : h.d).b(Integer.valueOf(this.o), Integer.valueOf(hVar.o), b2).b(Integer.valueOf(this.n), Integer.valueOf(hVar.n), b2).e(); + } + } + + public h(Context context) { + f.b bVar = new f.b(); + d dVar = d.I; + d d2 = new e(context).d(); + this.e = bVar; + this.f = new AtomicReference<>(d2); + } + + public static int c(j1 j1Var, @Nullable String str, boolean z2) { + if (!TextUtils.isEmpty(str) && str.equals(j1Var.n)) { + return 4; + } + String g2 = g(str); + String g3 = g(j1Var.n); + if (g3 == null || g2 == null) { + return (!z2 || g3 != null) ? 0 : 1; + } + if (g3.startsWith(g2) || g2.startsWith(g3)) { + return 3; + } + int i = e0.a; + return g3.split("-", 2)[0].equals(g2.split("-", 2)[0]) ? 2 : 0; + } + + /* JADX WARNING: Removed duplicated region for block: B:25:0x004d */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x0057 */ + public static List d(n0 n0Var, int i, int i2, boolean z2) { + int i3; + int i4; + int i5; + int i6; + int i7; + ArrayList arrayList = new ArrayList(n0Var.k); + for (int i8 = 0; i8 < n0Var.k; i8++) { + arrayList.add(Integer.valueOf(i8)); + } + if (!(i == Integer.MAX_VALUE || i2 == Integer.MAX_VALUE)) { + int i9 = 0; + int i10 = Integer.MAX_VALUE; + while (true) { + boolean z3 = true; + if (i9 >= n0Var.k) { + break; + } + j1 j1Var = n0Var.l[i9]; + int i11 = j1Var.B; + if (i11 > 0 && (i4 = j1Var.C) > 0) { + if (z2) { + boolean z4 = i11 > i4; + if (i <= i2) { + z3 = false; + } + if (z4 != z3) { + i6 = i; + i5 = i2; + int i12 = i11 * i6; + int i13 = i4 * i5; + Point point = i12 < i13 ? new Point(i5, e0.f(i13, i11)) : new Point(e0.f(i12, i4), i6); + int i14 = j1Var.B; + int i15 = j1Var.C; + i7 = i14 * i15; + if (i14 >= ((int) (((float) point.x) * 0.98f)) && i15 >= ((int) (((float) point.y) * 0.98f)) && i7 < i10) { + i10 = i7; + } + } + } + i5 = i; + i6 = i2; + int i12 = i11 * i6; + int i13 = i4 * i5; + if (i12 < i13) { + } + int i14 = j1Var.B; + int i15 = j1Var.C; + i7 = i14 * i15; + i10 = i7; + } + i9++; + } + if (i10 != Integer.MAX_VALUE) { + for (int size = arrayList.size() - 1; size >= 0; size--) { + j1 j1Var2 = n0Var.l[((Integer) arrayList.get(size)).intValue()]; + int i16 = j1Var2.B; + int i17 = (i16 == -1 || (i3 = j1Var2.C) == -1) ? -1 : i16 * i3; + if (i17 == -1 || i17 > i10) { + arrayList.remove(size); + } + } + } + } + return arrayList; + } + + public static boolean e(int i, boolean z2) { + int i2 = i & 7; + return i2 == 4 || (z2 && i2 == 3); + } + + public static boolean f(j1 j1Var, @Nullable String str, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10) { + int i11; + if ((j1Var.p & 16384) != 0 || !e(i, false) || (i & i2) == 0) { + return false; + } + if (str != null && !e0.a(j1Var.w, str)) { + return false; + } + int i12 = j1Var.B; + if (i12 != -1 && (i7 > i12 || i12 > i3)) { + return false; + } + int i13 = j1Var.C; + if (i13 != -1 && (i8 > i13 || i13 > i4)) { + return false; + } + float f2 = j1Var.D; + return (f2 == -1.0f || (((float) i9) <= f2 && f2 <= ((float) i5))) && (i11 = j1Var.f1003s) != -1 && i10 <= i11 && i11 <= i6; + } + + @Nullable + public static String g(@Nullable String str) { + if (TextUtils.isEmpty(str) || TextUtils.equals(str, "und")) { + return null; + } + return str; + } +} diff --git a/app/src/main/java/b/i/a/c/c3/i.java b/app/src/main/java/b/i/a/c/c3/i.java new file mode 100644 index 0000000000..40325ae435 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/i.java @@ -0,0 +1,12 @@ +package b.i.a.c.c3; +/* compiled from: ExoTrackSelection */ +public final /* synthetic */ class i { + public static void a(j jVar) { + } + + public static void b(j jVar, boolean z2) { + } + + public static void c(j jVar) { + } +} diff --git a/app/src/main/java/b/i/a/c/c3/j.java b/app/src/main/java/b/i/a/c/c3/j.java new file mode 100644 index 0000000000..faa6a94b2a --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/j.java @@ -0,0 +1,48 @@ +package b.i.a.c.c3; + +import b.i.a.c.a3.n0; +import b.i.a.c.j1; +/* compiled from: ExoTrackSelection */ +public interface j extends m { + + /* compiled from: ExoTrackSelection */ + public static final class a { + public final n0 a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f888b; + public final int c; + + public a(n0 n0Var, int... iArr) { + this.a = n0Var; + this.f888b = iArr; + this.c = 0; + } + + public a(n0 n0Var, int[] iArr, int i) { + this.a = n0Var; + this.f888b = iArr; + this.c = i; + } + } + + /* compiled from: ExoTrackSelection */ + public interface b { + } + + int b(); + + void c(boolean z2); + + void e(); + + void g(); + + j1 h(); + + void i(float f); + + void j(); + + void k(); +} diff --git a/app/src/main/java/b/i/a/c/c3/k.java b/app/src/main/java/b/i/a/c/c3/k.java new file mode 100644 index 0000000000..3aa7e9b0a2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/k.java @@ -0,0 +1,14 @@ +package b.i.a.c.c3; + +import b.i.a.c.a3.n0; +/* compiled from: FixedTrackSelection */ +public final class k extends g { + public k(n0 n0Var, int i, int i2) { + super(n0Var, new int[]{i}, i2); + } + + @Override // b.i.a.c.c3.j + public int b() { + return 0; + } +} diff --git a/app/src/main/java/b/i/a/c/c3/l.java b/app/src/main/java/b/i/a/c/c3/l.java new file mode 100644 index 0000000000..f12a249e8e --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/l.java @@ -0,0 +1,985 @@ +package b.i.a.c.c3; + +import android.text.TextUtils; +import android.util.Pair; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.n0; +import b.i.a.c.a3.o0; +import b.i.a.c.c3.f; +import b.i.a.c.c3.h; +import b.i.a.c.c3.j; +import b.i.a.c.c3.o; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.t; +import b.i.a.c.g2; +import b.i.a.c.h2; +import b.i.a.c.j1; +import b.i.a.c.o2; +import b.i.a.c.p2; +import b.i.a.c.v0; +import b.i.a.f.e.o.f; +import b.i.b.b.c0; +import b.i.b.b.d0; +import b.i.b.b.f0; +import b.i.b.b.g; +import b.i.b.b.h0; +import b.i.b.b.n; +import b.i.b.b.p; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.TreeMap; +/* compiled from: MappingTrackSelector */ +public abstract class l extends q { + + /* compiled from: MappingTrackSelector */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f889b; + public final o0[] c; + public final int[] d; + public final int[][][] e; + public final o0 f; + + @VisibleForTesting + public a(String[] strArr, int[] iArr, o0[] o0VarArr, int[] iArr2, int[][][] iArr3, o0 o0Var) { + this.f889b = iArr; + this.c = o0VarArr; + this.e = iArr3; + this.d = iArr2; + this.f = o0Var; + this.a = iArr.length; + } + + public int a(int i, int i2, int i3) { + return this.e[i][i2][i3] & 7; + } + } + + @Override // b.i.a.c.c3.q + public final void a(@Nullable Object obj) { + a aVar = (a) obj; + } + + /* JADX WARNING: Code restructure failed: missing block: B:445:0x095b, code lost: + if (r7 == 2) goto L_0x0961; + */ + /* JADX WARNING: Removed duplicated region for block: B:108:0x028d A[LOOP:8: B:65:0x0159->B:108:0x028d, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:222:0x04bc */ + /* JADX WARNING: Removed duplicated region for block: B:480:0x09cb */ + /* JADX WARNING: Removed duplicated region for block: B:504:0x0a30 */ + /* JADX WARNING: Removed duplicated region for block: B:527:0x0287 A[SYNTHETIC] */ + @Override // b.i.a.c.c3.q + public final r b(g2[] g2VarArr, o0 o0Var, a0.a aVar, o2 o2Var) throws ExoPlaybackException { + int i; + o0 o0Var2; + int i2; + boolean z2; + int i3; + boolean z3; + boolean z4; + j jVar; + int[] iArr; + int[] iArr2; + h.d dVar; + String str; + Pair pair; + n0 n0Var; + int[][] iArr3; + String str2; + int[][] iArr4; + h.d dVar2; + a aVar2; + int i4; + int i5; + String str3; + Pair pair2; + j.a aVar3; + int[] iArr5; + int i6; + int i7; + int i8; + String str4; + int i9; + n0 n0Var2; + int i10; + j.a[] aVarArr; + int i11; + int[][][] iArr6; + int[] iArr7; + h hVar; + h.d dVar3; + boolean z5; + o0 o0Var3; + h.d dVar4; + int[][] iArr8; + a aVar4; + j.a aVar5; + boolean z6; + int[] iArr9; + ArrayList arrayList; + List list; + String str5; + ArrayList arrayList2; + int i12; + HashSet hashSet; + int[] iArr10; + o0 o0Var4 = o0Var; + int[] iArr11 = new int[(g2VarArr.length + 1)]; + int length = g2VarArr.length + 1; + n0[][] n0VarArr = new n0[length][]; + int[][][] iArr12 = new int[(g2VarArr.length + 1)][][]; + int i13 = 0; + for (int i14 = 0; i14 < length; i14++) { + int i15 = o0Var4.k; + n0VarArr[i14] = new n0[i15]; + iArr12[i14] = new int[i15][]; + } + int length2 = g2VarArr.length; + int[] iArr13 = new int[length2]; + for (int i16 = 0; i16 < length2; i16++) { + iArr13[i16] = g2VarArr[i16].p(); + } + int i17 = 0; + while (i17 < o0Var4.k) { + n0 n0Var3 = o0Var4.l[i17]; + boolean z7 = t.g(n0Var3.l[i13].w) == 5; + int length3 = g2VarArr.length; + int i18 = 0; + int i19 = 0; + boolean z8 = true; + while (i18 < g2VarArr.length) { + g2 g2Var = g2VarArr[i18]; + int i20 = 0; + while (i13 < n0Var3.k) { + i20 = Math.max(i20, g2Var.a(n0Var3.l[i13]) & 7); + i13++; + } + boolean z9 = iArr11[i18] == 0; + if (i20 > i19 || (i20 == i19 && z7 && !z8 && z9)) { + z8 = z9; + i19 = i20; + length3 = i18; + } + i18++; + i13 = 0; + } + if (length3 == g2VarArr.length) { + iArr10 = new int[n0Var3.k]; + } else { + g2 g2Var2 = g2VarArr[length3]; + int[] iArr14 = new int[n0Var3.k]; + for (int i21 = 0; i21 < n0Var3.k; i21++) { + iArr14[i21] = g2Var2.a(n0Var3.l[i21]); + } + iArr10 = iArr14; + } + int i22 = iArr11[length3]; + n0VarArr[length3][i22] = n0Var3; + iArr12[length3][i22] = iArr10; + iArr11[length3] = iArr11[length3] + 1; + i17++; + o0Var4 = o0Var; + i13 = 0; + } + o0[] o0VarArr = new o0[g2VarArr.length]; + String[] strArr = new String[g2VarArr.length]; + int[] iArr15 = new int[g2VarArr.length]; + for (int i23 = 0; i23 < g2VarArr.length; i23++) { + int i24 = iArr11[i23]; + o0VarArr[i23] = new o0((n0[]) e0.D(n0VarArr[i23], i24)); + iArr12[i23] = (int[][]) e0.D(iArr12[i23], i24); + strArr[i23] = g2VarArr[i23].getName(); + iArr15[i23] = ((v0) g2VarArr[i23]).j; + } + a aVar6 = new a(strArr, iArr15, o0VarArr, iArr13, iArr12, new o0((n0[]) e0.D(n0VarArr[g2VarArr.length], iArr11[g2VarArr.length]))); + h hVar2 = (h) this; + h.d dVar5 = hVar2.f.get(); + int i25 = aVar6.a; + j.a[] aVarArr2 = new j.a[i25]; + a aVar7 = aVar6; + h.d dVar6 = dVar5; + int i26 = 0; + boolean z10 = false; + boolean z11 = false; + while (i26 < i25) { + if (2 == aVar7.f889b[i26]) { + if (!z11) { + o0 o0Var5 = aVar7.c[i26]; + int[][] iArr16 = iArr12[i26]; + int i27 = iArr13[i26]; + if (!dVar6.F && !dVar6.E) { + int i28 = dVar6.M ? 24 : 16; + boolean z12 = dVar6.L && (i27 & i28) != 0; + h.d dVar7 = dVar6; + int i29 = 0; + while (true) { + if (i29 >= o0Var5.k) { + break; + } + n0 n0Var4 = o0Var5.l[i29]; + int[] iArr17 = iArr16[i29]; + hVar = hVar2; + int i30 = dVar7.k; + iArr7 = iArr13; + int i31 = dVar7.l; + iArr6 = iArr12; + int i32 = dVar7.m; + i11 = i25; + int i33 = dVar7.n; + z5 = z10; + int i34 = dVar7.o; + aVar4 = aVar6; + int i35 = dVar7.p; + aVarArr = aVarArr2; + int i36 = dVar7.q; + i10 = i26; + int i37 = dVar7.r; + iArr8 = iArr16; + int i38 = dVar7.f891s; + dVar4 = dVar5; + int i39 = dVar7.t; + boolean z13 = dVar7.u; + o0Var3 = o0Var5; + if (n0Var4.k < 2) { + iArr9 = h.f884b; + } else { + List d = h.d(n0Var4, i38, i39, z13); + ArrayList arrayList3 = (ArrayList) d; + if (arrayList3.size() < 2) { + iArr9 = h.f884b; + } else { + if (!z12) { + HashSet hashSet2 = new HashSet(); + z6 = z12; + int i40 = 0; + int i41 = 0; + str5 = null; + while (i41 < arrayList3.size()) { + String str6 = n0Var4.l[((Integer) arrayList3.get(i41)).intValue()].w; + if (hashSet2.add(str6)) { + hashSet = hashSet2; + i12 = i41; + int i42 = 0; + int i43 = 0; + while (i43 < arrayList3.size()) { + int intValue = ((Integer) arrayList3.get(i43)).intValue(); + if (h.f(n0Var4.l[intValue], str6, iArr17[intValue], i28, i30, i31, i32, i33, i34, i35, i36, i37)) { + i42++; + } + i43++; + arrayList3 = arrayList3; + } + arrayList2 = arrayList3; + if (i42 > i40) { + str5 = str6; + i40 = i42; + } + } else { + arrayList2 = arrayList3; + hashSet = hashSet2; + i12 = i41; + } + i41 = i12 + 1; + d = d; + hashSet2 = hashSet; + arrayList3 = arrayList2; + } + list = d; + arrayList = arrayList3; + } else { + list = d; + arrayList = arrayList3; + z6 = z12; + str5 = null; + } + int size = arrayList.size(); + while (true) { + size--; + if (size < 0) { + break; + } + int intValue2 = ((Integer) arrayList.get(size)).intValue(); + if (!h.f(n0Var4.l[intValue2], str5, iArr17[intValue2], i28, i30, i31, i32, i33, i34, i35, i36, i37)) { + arrayList.remove(size); + } + arrayList = arrayList; + } + iArr9 = arrayList.size() < 2 ? h.f884b : f.i1(list); + if (iArr9.length <= 0) { + aVar5 = new j.a(n0Var4, iArr9); + break; + } + i29++; + hVar2 = hVar; + iArr13 = iArr7; + iArr12 = iArr6; + i25 = i11; + z10 = z5; + aVar6 = aVar4; + aVarArr2 = aVarArr; + i26 = i10; + iArr16 = iArr8; + dVar5 = dVar4; + dVar7 = dVar5; + o0Var5 = o0Var3; + z12 = z6; + } + } + z6 = z12; + if (iArr9.length <= 0) { + } + } + } + aVar4 = aVar6; + hVar = hVar2; + dVar4 = dVar5; + i11 = i25; + aVarArr = aVarArr2; + i10 = i26; + iArr6 = iArr12; + z5 = z10; + o0Var3 = o0Var5; + iArr8 = iArr16; + iArr7 = iArr13; + aVar5 = null; + if (aVar5 == null) { + n0 n0Var5 = null; + h.C0089h hVar3 = null; + int i44 = 0; + int i45 = -1; + while (i44 < o0Var3.k) { + n0 n0Var6 = o0Var3.l[i44]; + List d2 = h.d(n0Var6, dVar4.f891s, dVar4.t, dVar4.u); + int[] iArr18 = iArr8[i44]; + h.C0089h hVar4 = hVar3; + n0 n0Var7 = n0Var5; + for (int i46 = 0; i46 < n0Var6.k; i46++) { + j1 j1Var = n0Var6.l[i46]; + if ((j1Var.p & 16384) == 0 && h.e(iArr18[i46], dVar4.R)) { + h.C0089h hVar5 = new h.C0089h(j1Var, dVar4, iArr18[i46], ((ArrayList) d2).contains(Integer.valueOf(i46))); + if ((hVar5.j || dVar4.K) && (hVar4 == null || hVar5.compareTo(hVar4) > 0)) { + i45 = i46; + n0Var7 = n0Var6; + hVar4 = hVar5; + } + } + } + i44++; + n0Var5 = n0Var7; + dVar4 = dVar4; + hVar3 = hVar4; + } + dVar3 = dVar4; + aVar5 = n0Var5 == null ? null : new j.a(n0Var5, i45); + } else { + dVar3 = dVar4; + } + aVarArr[i10] = aVar5; + z11 = aVarArr[i10] != null; + dVar6 = dVar3; + aVar6 = aVar4; + } else { + hVar = hVar2; + i11 = i25; + aVarArr = aVarArr2; + i10 = i26; + iArr6 = iArr12; + z5 = z10; + iArr7 = iArr13; + dVar3 = dVar5; + } + aVar7 = aVar6; + z10 = z5 | (aVar6.c[i10].k > 0); + } else { + hVar = hVar2; + i11 = i25; + aVarArr = aVarArr2; + i10 = i26; + iArr6 = iArr12; + iArr7 = iArr13; + dVar3 = dVar5; + } + dVar5 = dVar3; + iArr13 = iArr7; + iArr12 = iArr6; + i25 = i11; + aVarArr2 = aVarArr; + i26 = i10 + 1; + hVar2 = hVar; + } + h.d dVar8 = dVar5; + int i47 = i25; + h.b bVar = null; + int i48 = -1; + int i49 = 0; + String str7 = null; + while (i49 < i47) { + if (1 == aVar7.f889b[i49]) { + boolean z14 = dVar6.T || !z10; + o0 o0Var6 = aVar7.c[i49]; + int[][] iArr19 = iArr12[i49]; + int i50 = iArr13[i49]; + h.b bVar2 = null; + int i51 = -1; + int i52 = -1; + int i53 = 0; + while (i53 < o0Var6.k) { + n0 n0Var8 = o0Var6.l[i53]; + int[] iArr20 = iArr19[i53]; + int i54 = i51; + int i55 = i52; + h.b bVar3 = bVar2; + int i56 = 0; + while (i56 < n0Var8.k) { + if (h.e(iArr20[i56], dVar6.R)) { + n0Var2 = n0Var8; + h.b bVar4 = new h.b(n0Var8.l[i56], dVar6, iArr20[i56]); + if ((bVar4.j || dVar6.N) && (bVar3 == null || bVar4.compareTo(bVar3) > 0)) { + i55 = i56; + bVar3 = bVar4; + i54 = i53; + } + } else { + n0Var2 = n0Var8; + } + i56++; + str7 = str7; + n0Var8 = n0Var2; + } + i53++; + bVar2 = bVar3; + i52 = i55; + i51 = i54; + } + str3 = str7; + if (i51 == -1) { + aVar2 = aVar6; + i5 = i49; + i4 = i47; + dVar2 = dVar8; + pair2 = null; + } else { + n0 n0Var9 = o0Var6.l[i51]; + if (dVar6.F || dVar6.E || !z14) { + aVar2 = aVar6; + i5 = i49; + i4 = i47; + dVar2 = dVar8; + } else { + int[] iArr21 = iArr19[i51]; + int i57 = dVar6.f894z; + boolean z15 = dVar6.O; + boolean z16 = dVar6.P; + boolean z17 = dVar6.Q; + j1 j1Var2 = n0Var9.l[i52]; + int[] iArr22 = new int[n0Var9.k]; + aVar2 = aVar6; + i4 = i47; + dVar2 = dVar8; + int i58 = 0; + int i59 = 0; + while (i59 < n0Var9.k) { + if (i59 != i52) { + j1 j1Var3 = n0Var9.l[i59]; + i6 = i49; + iArr5 = iArr21; + if (!(h.e(iArr21[i59], false) && (i7 = j1Var3.f1003s) != -1 && i7 <= i57 && (z17 || ((i9 = j1Var3.J) != -1 && i9 == j1Var2.J)) && ((z15 || ((str4 = j1Var3.w) != null && TextUtils.equals(str4, j1Var2.w))) && (z16 || ((i8 = j1Var3.K) != -1 && i8 == j1Var2.K))))) { + i59++; + i49 = i6; + iArr21 = iArr5; + } + } else { + i6 = i49; + iArr5 = iArr21; + } + iArr22[i58] = i59; + i58++; + i59++; + i49 = i6; + iArr21 = iArr5; + } + i5 = i49; + int[] copyOf = Arrays.copyOf(iArr22, i58); + if (copyOf.length > 1) { + aVar3 = new j.a(n0Var9, copyOf); + if (aVar3 == null) { + aVar3 = new j.a(n0Var9, i52); + } + Objects.requireNonNull(bVar2); + pair2 = Pair.create(aVar3, bVar2); + } + } + aVar3 = null; + if (aVar3 == null) { + } + Objects.requireNonNull(bVar2); + pair2 = Pair.create(aVar3, bVar2); + } + if (pair2 != null && (bVar == null || ((h.b) pair2.second).compareTo(bVar) > 0)) { + if (i48 != -1) { + aVarArr2[i48] = null; + } + j.a aVar8 = (j.a) pair2.first; + aVarArr2[i5] = aVar8; + str7 = aVar8.a.l[aVar8.f888b[0]].n; + i48 = i5; + bVar = (h.b) pair2.second; + i49 = i5 + 1; + i47 = i4; + aVar6 = aVar2; + aVar7 = aVar6; + dVar8 = dVar2; + dVar6 = dVar8; + } + } else { + aVar2 = aVar6; + i5 = i49; + i4 = i47; + dVar2 = dVar8; + str3 = str7; + } + str7 = str3; + i49 = i5 + 1; + i47 = i4; + aVar6 = aVar2; + aVar7 = aVar6; + dVar8 = dVar2; + dVar6 = dVar8; + } + a aVar9 = aVar6; + h.d dVar9 = dVar8; + String str8 = str7; + int i60 = -1; + int i61 = 0; + h.g gVar = null; + while (i61 < i47) { + int i62 = aVar9.f889b[i61]; + if (i62 == 1 || i62 == 2) { + str = str8; + dVar = dVar9; + } else if (i62 != 3) { + o0 o0Var7 = aVar9.c[i61]; + int[][] iArr23 = iArr12[i61]; + n0 n0Var10 = null; + h.c cVar = null; + int i63 = 0; + int i64 = 0; + while (i63 < o0Var7.k) { + n0 n0Var11 = o0Var7.l[i63]; + int[] iArr24 = iArr23[i63]; + int i65 = i64; + h.c cVar2 = cVar; + n0 n0Var12 = n0Var10; + int i66 = 0; + while (i66 < n0Var11.k) { + if (h.e(iArr24[i66], dVar9.R)) { + iArr4 = iArr23; + h.c cVar3 = new h.c(n0Var11.l[i66], iArr24[i66]); + if (cVar2 == null || cVar3.compareTo(cVar2) > 0) { + i65 = i66; + n0Var12 = n0Var11; + cVar2 = cVar3; + } + } else { + iArr4 = iArr23; + } + i66++; + dVar9 = dVar9; + o0Var7 = o0Var7; + iArr23 = iArr4; + } + i63++; + n0Var10 = n0Var12; + cVar = cVar2; + i64 = i65; + } + dVar = dVar9; + aVarArr2[i61] = n0Var10 == null ? null : new j.a(n0Var10, i64); + str = str8; + } else { + dVar = dVar9; + o0 o0Var8 = aVar9.c[i61]; + int[][] iArr25 = iArr12[i61]; + n0 n0Var13 = null; + h.g gVar2 = null; + int i67 = -1; + int i68 = 0; + while (i68 < o0Var8.k) { + n0 n0Var14 = o0Var8.l[i68]; + int[] iArr26 = iArr25[i68]; + int i69 = i67; + h.g gVar3 = gVar2; + n0 n0Var15 = n0Var13; + int i70 = 0; + while (i70 < n0Var14.k) { + if (h.e(iArr26[i70], dVar.R)) { + iArr3 = iArr25; + n0Var = n0Var14; + str2 = str8; + h.g gVar4 = new h.g(n0Var14.l[i70], dVar, iArr26[i70], str2); + if (gVar4.j && (gVar3 == null || gVar4.compareTo(gVar3) > 0)) { + i69 = i70; + gVar3 = gVar4; + n0Var15 = n0Var; + } + } else { + iArr3 = iArr25; + n0Var = n0Var14; + str2 = str8; + } + i70++; + str8 = str2; + o0Var8 = o0Var8; + iArr25 = iArr3; + n0Var14 = n0Var; + } + i68++; + n0Var13 = n0Var15; + gVar2 = gVar3; + i67 = i69; + } + str = str8; + if (n0Var13 == null) { + pair = null; + } else { + j.a aVar10 = new j.a(n0Var13, i67); + Objects.requireNonNull(gVar2); + pair = Pair.create(aVar10, gVar2); + } + if (pair != null && (gVar == null || ((h.g) pair.second).compareTo(gVar) > 0)) { + if (i60 != -1) { + aVarArr2[i60] = null; + } + aVarArr2[i61] = (j.a) pair.first; + gVar = (h.g) pair.second; + i60 = i61; + } + } + i61++; + aVar9 = aVar9; + str8 = str; + dVar9 = dVar; + } + for (int i71 = 0; i71 < i47; i71++) { + j.a aVar11 = aVarArr2[i71]; + int i72 = aVar9.f889b[i71]; + if (!dVar9.V.get(i71) && !dVar9.H.contains(Integer.valueOf(i72))) { + o0 o0Var9 = aVar9.c[i71]; + Map map = dVar9.U.get(i71); + if (map != null && map.containsKey(o0Var9)) { + Map map2 = dVar9.U.get(i71); + h.f fVar = map2 != null ? map2.get(o0Var9) : null; + if (fVar != null) { + aVar11 = new j.a(o0Var9.l[fVar.j], fVar.k, fVar.l); + } + } else { + int i73 = 0; + while (true) { + if (i73 >= o0Var9.k) { + break; + } + n0 n0Var16 = o0Var9.l[i73]; + o.a aVar12 = dVar9.G.l.get(n0Var16); + if (aVar12 != null) { + aVar11 = new j.a(n0Var16, f.i1(aVar12.l)); + break; + } + i73++; + } + } + aVarArr2[i71] = aVar11; + } + aVar11 = null; + aVarArr2[i71] = aVar11; + } + j.b bVar5 = hVar2.e; + b.i.a.c.e3.f fVar2 = hVar2.a; + Objects.requireNonNull(fVar2); + Objects.requireNonNull((f.b) bVar5); + ArrayList arrayList4 = new ArrayList(); + for (int i74 = 0; i74 < i47; i74++) { + if (aVarArr2[i74] == null || aVarArr2[i74].f888b.length <= 1) { + arrayList4.add(null); + } else { + b.i.b.b.a aVar13 = p.k; + p.a aVar14 = new p.a(); + aVar14.b(new f.a(0, 0)); + arrayList4.add(aVar14); + } + } + long[][] jArr = new long[i47][]; + for (int i75 = 0; i75 < i47; i75++) { + j.a aVar15 = aVarArr2[i75]; + if (aVar15 == null) { + jArr[i75] = new long[0]; + } else { + jArr[i75] = new long[aVar15.f888b.length]; + int i76 = 0; + while (true) { + int[] iArr27 = aVar15.f888b; + if (i76 >= iArr27.length) { + break; + } + jArr[i75][i76] = (long) aVar15.a.l[iArr27[i76]].f1003s; + i76++; + } + Arrays.sort(jArr[i75]); + } + } + int[] iArr28 = new int[i47]; + long[] jArr2 = new long[i47]; + for (int i77 = 0; i77 < i47; i77++) { + jArr2[i77] = jArr[i77].length == 0 ? 0 : jArr[i77][0]; + } + f.m(arrayList4, jArr2); + f0 f0Var = f0.j; + b.i.a.f.e.o.f.z(2, "expectedValuesPerKey"); + d0 d0Var = new d0(new TreeMap(f0Var), new c0(2)); + int i78 = 0; + while (i78 < i47) { + if (jArr[i78].length <= 1) { + iArr = iArr28; + } else { + int length4 = jArr[i78].length; + double[] dArr = new double[length4]; + int i79 = 0; + while (true) { + int length5 = jArr[i78].length; + double d3 = ShadowDrawableWrapper.COS_45; + if (i79 >= length5) { + break; + } + if (jArr[i78][i79] == -1) { + iArr2 = iArr28; + } else { + iArr2 = iArr28; + d3 = Math.log((double) jArr[i78][i79]); + } + dArr[i79] = d3; + i79++; + iArr28 = iArr2; + } + iArr = iArr28; + int i80 = length4 - 1; + double d4 = dArr[i80] - dArr[0]; + int i81 = 0; + while (i81 < i80) { + double d5 = dArr[i81]; + i81++; + Double valueOf = Double.valueOf(d4 == ShadowDrawableWrapper.COS_45 ? 1.0d : (((d5 + dArr[i81]) * 0.5d) - dArr[0]) / d4); + Integer valueOf2 = Integer.valueOf(i78); + Collection collection = (Collection) d0Var.m.get(valueOf); + if (collection == null) { + Collection e = d0Var.e(); + if (e.add(valueOf2)) { + d0Var.n++; + d0Var.m.put(valueOf, e); + } else { + throw new AssertionError("New Collection violated the Collection spec"); + } + } else if (collection.add(valueOf2)) { + d0Var.n++; + } + i80 = i80; + d4 = d4; + } + continue; + } + i78++; + iArr28 = iArr; + } + Collection collection2 = d0Var.k; + if (collection2 == null) { + collection2 = new g.a(); + d0Var.k = collection2; + } + p n = p.n(collection2); + for (int i82 = 0; i82 < n.size(); i82++) { + int intValue3 = n.get(i82).intValue(); + int i83 = iArr28[intValue3] + 1; + iArr28[intValue3] = i83; + jArr2[intValue3] = jArr[intValue3][i83]; + f.m(arrayList4, jArr2); + } + for (int i84 = 0; i84 < i47; i84++) { + if (arrayList4.get(i84) != null) { + jArr2[i84] = jArr2[i84] * 2; + } + } + f.m(arrayList4, jArr2); + b.i.a.f.e.o.f.z(4, "initialCapacity"); + Object[] objArr = new Object[4]; + int i85 = 0; + int i86 = 0; + while (i85 < arrayList4.size()) { + p.a aVar16 = (p.a) arrayList4.get(i85); + p c = aVar16 == null ? h0.l : aVar16.c(); + Objects.requireNonNull(c); + int i87 = i86 + 1; + if (objArr.length < i87) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i87)); + } + objArr[i86] = c; + i85++; + i86 = i87; + } + p l = p.l(objArr, i86); + j[] jVarArr = new j[i47]; + for (int i88 = 0; i88 < i47; i88++) { + j.a aVar17 = aVarArr2[i88]; + if (aVar17 != null) { + int[] iArr29 = aVar17.f888b; + if (iArr29.length != 0) { + if (iArr29.length == 1) { + jVar = new k(aVar17.a, iArr29[0], aVar17.c); + } else { + long j = (long) 25000; + jVar = new f(aVar17.a, iArr29, aVar17.c, fVar2, (long) 10000, j, j, 1279, 719, 0.7f, 0.75f, l.get(i88), b.i.a.c.f3.g.a); + } + jVarArr[i88] = jVar; + } + } + } + h2[] h2VarArr = new h2[i47]; + for (int i89 = 0; i89 < i47; i89++) { + h2VarArr[i89] = !(dVar9.V.get(i89) || dVar9.H.contains(Integer.valueOf(aVar9.f889b[i89]))) && (aVar9.f889b[i89] == -2 || jVarArr[i89] != null) ? h2.a : null; + } + if (dVar9.S) { + int i90 = 0; + int i91 = -1; + int i92 = -1; + while (true) { + if (i90 >= aVar9.a) { + i3 = -1; + z3 = true; + break; + } + int i93 = aVar9.f889b[i90]; + j jVar2 = jVarArr[i90]; + if (i93 == 1) { + if (jVar2 != null) { + int[][] iArr30 = iArr12[i90]; + int a2 = aVar9.c[i90].a(jVar2.a()); + int i94 = 0; + while (true) { + if (i94 >= jVar2.length()) { + z4 = true; + break; + } else if ((iArr30[a2][jVar2.f(i94)] & 32) != 32) { + z4 = false; + break; + } else { + i94++; + } + } + if (z4) { + if (i93 == 1) { + i3 = -1; + if (i91 != -1) { + break; + } + i91 = i90; + i90++; + } else { + i3 = -1; + if (i92 != -1) { + break; + } + i92 = i90; + i90++; + } + } + } + } + i90++; + } + z3 = false; + if (z3 && ((i91 == i3 || i92 == i3) ? false : true)) { + h2 h2Var = new h2(true); + h2VarArr[i91] = h2Var; + h2VarArr[i92] = h2Var; + Pair create = Pair.create(h2VarArr, jVarArr); + m[] mVarArr = (m[]) create.second; + b.i.a.f.e.o.f.z(4, "initialCapacity"); + Object[] objArr2 = new Object[4]; + i = 0; + int i95 = 0; + while (i < aVar9.a) { + o0 o0Var10 = aVar9.c[i]; + m mVar = mVarArr[i]; + Object[] objArr3 = objArr2; + int i96 = i95; + int i97 = 0; + while (i97 < o0Var10.k) { + n0 n0Var17 = o0Var10.l[i97]; + int i98 = n0Var17.k; + int[] iArr31 = new int[i98]; + boolean[] zArr = new boolean[i98]; + for (int i99 = 0; i99 < n0Var17.k; i99++) { + iArr31[i99] = aVar9.a(i, i97, i99); + if (mVar != null && mVar.a() == n0Var17) { + if (mVar.l(i99) != -1) { + z2 = true; + zArr[i99] = z2; + } + } + z2 = false; + zArr[i99] = z2; + } + p2.a aVar18 = new p2.a(n0Var17, iArr31, aVar9.f889b[i], zArr); + int i100 = i96 + 1; + if (objArr3.length < i100) { + objArr3 = Arrays.copyOf(objArr3, n.b.a(objArr3.length, i100)); + } + objArr3[i96] = aVar18; + i97++; + i96 = i100; + } + i++; + i95 = i96; + objArr2 = objArr3; + } + o0Var2 = aVar9.f; + i2 = 0; + while (i2 < o0Var2.k) { + n0 n0Var18 = o0Var2.l[i2]; + int[] iArr32 = new int[n0Var18.k]; + Arrays.fill(iArr32, 0); + p2.a aVar19 = new p2.a(n0Var18, iArr32, t.g(n0Var18.l[0].w), new boolean[n0Var18.k]); + int i101 = i95 + 1; + if (objArr2.length < i101) { + objArr2 = Arrays.copyOf(objArr2, n.b.a(objArr2.length, i101)); + } + objArr2[i95] = aVar19; + i2++; + i95 = i101; + } + return new r((h2[]) create.first, (j[]) create.second, new p2(p.l(objArr2, i95)), aVar9); + } + } + Pair create = Pair.create(h2VarArr, jVarArr); + m[] mVarArr = (m[]) create.second; + b.i.a.f.e.o.f.z(4, "initialCapacity"); + Object[] objArr2 = new Object[4]; + i = 0; + int i95 = 0; + while (i < aVar9.a) { + } + o0Var2 = aVar9.f; + i2 = 0; + while (i2 < o0Var2.k) { + } + return new r((h2[]) create.first, (j[]) create.second, new p2(p.l(objArr2, i95)), aVar9); + } +} diff --git a/app/src/main/java/b/i/a/c/c3/m.java b/app/src/main/java/b/i/a/c/c3/m.java new file mode 100644 index 0000000000..d0fb679c0f --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/m.java @@ -0,0 +1,16 @@ +package b.i.a.c.c3; + +import b.i.a.c.a3.n0; +import b.i.a.c.j1; +/* compiled from: TrackSelection */ +public interface m { + n0 a(); + + j1 d(int i); + + int f(int i); + + int l(int i); + + int length(); +} diff --git a/app/src/main/java/b/i/a/c/c3/n.java b/app/src/main/java/b/i/a/c/c3/n.java new file mode 100644 index 0000000000..2cd405c377 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/n.java @@ -0,0 +1,33 @@ +package b.i.a.c.c3; + +import androidx.annotation.Nullable; +import java.util.Arrays; +/* compiled from: TrackSelectionArray */ +public final class n { + public final m[] a; + + /* renamed from: b reason: collision with root package name */ + public int f890b; + + public n(m... mVarArr) { + this.a = mVarArr; + int length = mVarArr.length; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || n.class != obj.getClass()) { + return false; + } + return Arrays.equals(this.a, ((n) obj).a); + } + + public int hashCode() { + if (this.f890b == 0) { + this.f890b = 527 + Arrays.hashCode(this.a); + } + return this.f890b; + } +} diff --git a/app/src/main/java/b/i/a/c/c3/o.java b/app/src/main/java/b/i/a/c/c3/o.java new file mode 100644 index 0000000000..111f62a572 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/o.java @@ -0,0 +1,90 @@ +package b.i.a.c.c3; + +import androidx.annotation.Nullable; +import b.i.a.c.a3.n0; +import b.i.a.c.w0; +import b.i.a.f.e.o.f; +import b.i.b.b.i0; +import b.i.b.b.n; +import b.i.b.b.p; +import b.i.b.b.q; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: TrackSelectionOverrides */ +public final class o implements w0 { + public static final o j = new o(i0.m); + public static final w0.a k = d.a; + public final q l; + + /* compiled from: TrackSelectionOverrides */ + public static final class a implements w0 { + public static final /* synthetic */ int j = 0; + public final n0 k; + public final p l; + + public a(n0 n0Var) { + this.k = n0Var; + f.z(4, "initialCapacity"); + Object[] objArr = new Object[4]; + int i = 0; + int i2 = 0; + while (i < n0Var.k) { + Integer valueOf = Integer.valueOf(i); + Objects.requireNonNull(valueOf); + int i3 = i2 + 1; + if (objArr.length < i3) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i3)); + } + objArr[i2] = valueOf; + i++; + i2 = i3; + } + this.l = p.l(objArr, i2); + } + + public a(n0 n0Var, List list) { + if (list.isEmpty() || (((Integer) Collections.min(list)).intValue() >= 0 && ((Integer) Collections.max(list)).intValue() < n0Var.k)) { + this.k = n0Var; + this.l = p.n(list); + return; + } + throw new IndexOutOfBoundsException(); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || a.class != obj.getClass()) { + return false; + } + a aVar = (a) obj; + return this.k.equals(aVar.k) && this.l.equals(aVar.l); + } + + public int hashCode() { + return (this.l.hashCode() * 31) + this.k.hashCode(); + } + } + + public o(Map map) { + this.l = q.a(map); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || o.class != obj.getClass()) { + return false; + } + return this.l.equals(((o) obj).l); + } + + public int hashCode() { + return this.l.hashCode(); + } +} diff --git a/app/src/main/java/b/i/a/c/c3/p.java b/app/src/main/java/b/i/a/c/c3/p.java new file mode 100644 index 0000000000..44a1a145bf --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/p.java @@ -0,0 +1,224 @@ +package b.i.a.c.c3; + +import android.content.Context; +import android.graphics.Point; +import android.hardware.display.DisplayManager; +import android.os.Looper; +import android.text.TextUtils; +import android.util.Log; +import android.view.Display; +import android.view.WindowManager; +import android.view.accessibility.CaptioningManager; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.w0; +import b.i.b.b.h0; +import b.i.b.b.j0; +import b.i.b.b.r; +import java.util.Locale; +import java.util.Objects; +/* compiled from: TrackSelectionParameters */ +public class p implements w0 { + public static final p j = new p(new a()); + public final b.i.b.b.p A; + public final b.i.b.b.p B; + public final int C; + public final boolean D; + public final boolean E; + public final boolean F; + public final o G; + public final r H; + public final int k; + public final int l; + public final int m; + public final int n; + public final int o; + public final int p; + public final int q; + public final int r; + + /* renamed from: s reason: collision with root package name */ + public final int f891s; + public final int t; + public final boolean u; + public final b.i.b.b.p v; + public final b.i.b.b.p w; + + /* renamed from: x reason: collision with root package name */ + public final int f892x; + + /* renamed from: y reason: collision with root package name */ + public final int f893y; + + /* renamed from: z reason: collision with root package name */ + public final int f894z; + + /* compiled from: TrackSelectionParameters */ + public static class a { + public int a = Integer.MAX_VALUE; + + /* renamed from: b reason: collision with root package name */ + public int f895b = Integer.MAX_VALUE; + public int c = Integer.MAX_VALUE; + public int d = Integer.MAX_VALUE; + public int e; + public int f; + public int g; + public int h; + public int i = Integer.MAX_VALUE; + public int j = Integer.MAX_VALUE; + public boolean k = true; + public b.i.b.b.p l; + public b.i.b.b.p m; + public int n; + public int o; + public int p; + public b.i.b.b.p q; + public b.i.b.b.p r; + + /* renamed from: s reason: collision with root package name */ + public int f896s; + public boolean t; + public boolean u; + public boolean v; + public o w; + + /* renamed from: x reason: collision with root package name */ + public r f897x; + + /* JADX DEBUG: Type inference failed for r1v2. Raw type applied. Possible types: b.i.b.b.p, b.i.b.b.p */ + @Deprecated + public a() { + b.i.b.b.a aVar = b.i.b.b.p.k; + b.i.b.b.p pVar = h0.l; + this.l = pVar; + this.m = pVar; + this.n = 0; + this.o = Integer.MAX_VALUE; + this.p = Integer.MAX_VALUE; + this.q = pVar; + this.r = pVar; + this.f896s = 0; + this.t = false; + this.u = false; + this.v = false; + this.w = o.j; + int i = r.k; + this.f897x = j0.m; + } + + public a a(Context context) { + CaptioningManager captioningManager; + int i = e0.a; + if (i >= 19 && ((i >= 23 || Looper.myLooper() != null) && (captioningManager = (CaptioningManager) context.getSystemService("captioning")) != null && captioningManager.isEnabled())) { + this.f896s = 1088; + Locale locale = captioningManager.getLocale(); + if (locale != null) { + this.r = b.i.b.b.p.u(i >= 21 ? locale.toLanguageTag() : locale.toString()); + } + } + return this; + } + + public a b(int i, int i2, boolean z2) { + this.i = i; + this.j = i2; + this.k = z2; + return this; + } + + public a c(Context context, boolean z2) { + Point point; + DisplayManager displayManager; + int i = e0.a; + Display display = (i < 17 || (displayManager = (DisplayManager) context.getSystemService("display")) == null) ? null : displayManager.getDisplay(0); + if (display == null) { + WindowManager windowManager = (WindowManager) context.getSystemService("window"); + Objects.requireNonNull(windowManager); + display = windowManager.getDefaultDisplay(); + } + if (display.getDisplayId() == 0 && e0.A(context)) { + String v = i < 28 ? e0.v("sys.display-size") : e0.v("vendor.display-size"); + if (!TextUtils.isEmpty(v)) { + try { + String[] H = e0.H(v.trim(), "x"); + if (H.length == 2) { + int parseInt = Integer.parseInt(H[0]); + int parseInt2 = Integer.parseInt(H[1]); + if (parseInt > 0 && parseInt2 > 0) { + point = new Point(parseInt, parseInt2); + return b(point.x, point.y, z2); + } + } + } catch (NumberFormatException unused) { + } + String valueOf = String.valueOf(v); + Log.e("Util", valueOf.length() != 0 ? "Invalid display size: ".concat(valueOf) : new String("Invalid display size: ")); + } + if ("Sony".equals(e0.c) && e0.d.startsWith("BRAVIA") && context.getPackageManager().hasSystemFeature("com.sony.dtv.hardware.panel.qfhd")) { + point = new Point(3840, 2160); + return b(point.x, point.y, z2); + } + } + point = new Point(); + int i2 = e0.a; + if (i2 >= 23) { + Display.Mode mode = display.getMode(); + point.x = mode.getPhysicalWidth(); + point.y = mode.getPhysicalHeight(); + } else if (i2 >= 17) { + display.getRealSize(point); + } else { + display.getSize(point); + } + return b(point.x, point.y, z2); + } + } + + public p(a aVar) { + this.k = aVar.a; + this.l = aVar.f895b; + this.m = aVar.c; + this.n = aVar.d; + this.o = aVar.e; + this.p = aVar.f; + this.q = aVar.g; + this.r = aVar.h; + this.f891s = aVar.i; + this.t = aVar.j; + this.u = aVar.k; + this.v = aVar.l; + this.w = aVar.m; + this.f892x = aVar.n; + this.f893y = aVar.o; + this.f894z = aVar.p; + this.A = aVar.q; + this.B = aVar.r; + this.C = aVar.f896s; + this.D = aVar.t; + this.E = aVar.u; + this.F = aVar.v; + this.G = aVar.w; + this.H = aVar.f897x; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + p pVar = (p) obj; + return this.k == pVar.k && this.l == pVar.l && this.m == pVar.m && this.n == pVar.n && this.o == pVar.o && this.p == pVar.p && this.q == pVar.q && this.r == pVar.r && this.u == pVar.u && this.f891s == pVar.f891s && this.t == pVar.t && this.v.equals(pVar.v) && this.w.equals(pVar.w) && this.f892x == pVar.f892x && this.f893y == pVar.f893y && this.f894z == pVar.f894z && this.A.equals(pVar.A) && this.B.equals(pVar.B) && this.C == pVar.C && this.D == pVar.D && this.E == pVar.E && this.F == pVar.F && this.G.equals(pVar.G) && this.H.equals(pVar.H); + } + + public int hashCode() { + int hashCode = this.v.hashCode(); + int hashCode2 = this.w.hashCode(); + int hashCode3 = this.A.hashCode(); + int hashCode4 = this.B.hashCode(); + int hashCode5 = this.G.hashCode(); + return this.H.hashCode() + ((hashCode5 + ((((((((((hashCode4 + ((hashCode3 + ((((((((hashCode2 + ((hashCode + ((((((((((((((((((((((this.k + 31) * 31) + this.l) * 31) + this.m) * 31) + this.n) * 31) + this.o) * 31) + this.p) * 31) + this.q) * 31) + this.r) * 31) + (this.u ? 1 : 0)) * 31) + this.f891s) * 31) + this.t) * 31)) * 31)) * 31) + this.f892x) * 31) + this.f893y) * 31) + this.f894z) * 31)) * 31)) * 31) + this.C) * 31) + (this.D ? 1 : 0)) * 31) + (this.E ? 1 : 0)) * 31) + (this.F ? 1 : 0)) * 31)) * 31); + } +} diff --git a/app/src/main/java/b/i/a/c/c3/q.java b/app/src/main/java/b/i/a/c/c3/q.java new file mode 100644 index 0000000000..974396aaae --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/q.java @@ -0,0 +1,18 @@ +package b.i.a.c.c3; + +import androidx.annotation.Nullable; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.o0; +import b.i.a.c.e3.f; +import b.i.a.c.g2; +import b.i.a.c.o2; +import com.google.android.exoplayer2.ExoPlaybackException; +/* compiled from: TrackSelector */ +public abstract class q { + @Nullable + public f a; + + public abstract void a(@Nullable Object obj); + + public abstract r b(g2[] g2VarArr, o0 o0Var, a0.a aVar, o2 o2Var) throws ExoPlaybackException; +} diff --git a/app/src/main/java/b/i/a/c/c3/r.java b/app/src/main/java/b/i/a/c/c3/r.java new file mode 100644 index 0000000000..04ac880f58 --- /dev/null +++ b/app/src/main/java/b/i/a/c/c3/r.java @@ -0,0 +1,33 @@ +package b.i.a.c.c3; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.h2; +import b.i.a.c.p2; +/* compiled from: TrackSelectorResult */ +public final class r { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final h2[] f898b; + public final j[] c; + public final p2 d; + @Nullable + public final Object e; + + public r(h2[] h2VarArr, j[] jVarArr, p2 p2Var, @Nullable Object obj) { + this.f898b = h2VarArr; + this.c = (j[]) jVarArr.clone(); + this.d = p2Var; + this.e = obj; + this.a = h2VarArr.length; + } + + public boolean a(@Nullable r rVar, int i) { + return rVar != null && e0.a(this.f898b[i], rVar.f898b[i]) && e0.a(this.c[i], rVar.c[i]); + } + + public boolean b(int i) { + return this.f898b[i] != null; + } +} diff --git a/app/src/main/java/b/i/a/c/d.java b/app/src/main/java/b/i/a/c/d.java new file mode 100644 index 0000000000..cf37714a40 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d.java @@ -0,0 +1,16 @@ +package b.i.a.c; + +import b.i.b.a.l; +/* compiled from: lambda */ +public final /* synthetic */ class d implements l { + public final /* synthetic */ n1 j; + + public /* synthetic */ d(n1 n1Var) { + this.j = n1Var; + } + + @Override // b.i.b.a.l + public final Object get() { + return this.j; + } +} diff --git a/app/src/main/java/b/i/a/c/d0.java b/app/src/main/java/b/i/a/c/d0.java new file mode 100644 index 0000000000..877fd49cc7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d0.java @@ -0,0 +1,22 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class d0 implements p.a { + public final /* synthetic */ w1 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f899b; + + public /* synthetic */ d0(w1 w1Var, int i) { + this.a = w1Var; + this.f899b = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + w1 w1Var = this.a; + ((y1.c) obj).v(w1Var.f1132b, this.f899b); + } +} diff --git a/app/src/main/java/b/i/a/c/d1.java b/app/src/main/java/b/i/a/c/d1.java new file mode 100644 index 0000000000..a4ec3c13e7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d1.java @@ -0,0 +1,8 @@ +package b.i.a.c; + +import b.i.a.c.e1; +/* compiled from: ExoPlayer */ +public final /* synthetic */ class d1 { + public static void a(e1.a aVar, boolean z2) { + } +} diff --git a/app/src/main/java/b/i/a/c/d2.java b/app/src/main/java/b/i/a/c/d2.java new file mode 100644 index 0000000000..9b8e6c748b --- /dev/null +++ b/app/src/main/java/b/i/a/c/d2.java @@ -0,0 +1,5 @@ +package b.i.a.c; +/* compiled from: Rating */ +public abstract class d2 implements w0 { + public static final /* synthetic */ int j = 0; +} diff --git a/app/src/main/java/b/i/a/c/d3/a.java b/app/src/main/java/b/i/a/c/d3/a.java new file mode 100644 index 0000000000..d40eab7c39 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/a.java @@ -0,0 +1,16 @@ +package b.i.a.c.d3; + +import com.google.android.exoplayer2.ui.PlayerControlView; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Runnable { + public final /* synthetic */ PlayerControlView j; + + public /* synthetic */ a(PlayerControlView playerControlView) { + this.j = playerControlView; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.c(); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/b.java b/app/src/main/java/b/i/a/c/d3/b.java new file mode 100644 index 0000000000..0d082f69f0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/b.java @@ -0,0 +1,16 @@ +package b.i.a.c.d3; + +import com.google.android.exoplayer2.ui.DefaultTimeBar; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Runnable { + public final /* synthetic */ DefaultTimeBar j; + + public /* synthetic */ b(DefaultTimeBar defaultTimeBar) { + this.j = defaultTimeBar; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.g(false); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/c.java b/app/src/main/java/b/i/a/c/d3/c.java new file mode 100644 index 0000000000..d0e2f2e2e7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/c.java @@ -0,0 +1,21 @@ +package b.i.a.c.d3; + +import android.animation.ValueAnimator; +import com.google.android.exoplayer2.ui.DefaultTimeBar; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class c implements ValueAnimator.AnimatorUpdateListener { + public final /* synthetic */ DefaultTimeBar a; + + public /* synthetic */ c(DefaultTimeBar defaultTimeBar) { + this.a = defaultTimeBar; + } + + @Override // android.animation.ValueAnimator.AnimatorUpdateListener + public final void onAnimationUpdate(ValueAnimator valueAnimator) { + DefaultTimeBar defaultTimeBar = this.a; + Objects.requireNonNull(defaultTimeBar); + defaultTimeBar.O = ((Float) valueAnimator.getAnimatedValue()).floatValue(); + defaultTimeBar.invalidate(defaultTimeBar.j); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/d.java b/app/src/main/java/b/i/a/c/d3/d.java new file mode 100644 index 0000000000..6fff5baa07 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/d.java @@ -0,0 +1,18 @@ +package b.i.a.c.d3; + +import com.google.android.exoplayer2.ui.PlayerControlView; +/* compiled from: lambda */ +public final /* synthetic */ class d implements Runnable { + public final /* synthetic */ PlayerControlView j; + + public /* synthetic */ d(PlayerControlView playerControlView) { + this.j = playerControlView; + } + + @Override // java.lang.Runnable + public final void run() { + PlayerControlView playerControlView = this.j; + int i = PlayerControlView.j; + playerControlView.n(); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/e.java b/app/src/main/java/b/i/a/c/d3/e.java new file mode 100644 index 0000000000..e1a8d32250 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/e.java @@ -0,0 +1,20 @@ +package b.i.a.c.d3; + +import b.i.a.c.d3.m; +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class e implements Comparator { + public static final /* synthetic */ e j = new e(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + m.c cVar = (m.c) obj; + m.c cVar2 = (m.c) obj2; + int compare = Integer.compare(cVar2.f902b, cVar.f902b); + if (compare != 0) { + return compare; + } + int compareTo = cVar.c.compareTo(cVar2.c); + return compareTo != 0 ? compareTo : cVar.d.compareTo(cVar2.d); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/f.java b/app/src/main/java/b/i/a/c/d3/f.java new file mode 100644 index 0000000000..63cc00ac44 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/f.java @@ -0,0 +1,20 @@ +package b.i.a.c.d3; + +import b.i.a.c.d3.m; +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class f implements Comparator { + public static final /* synthetic */ f j = new f(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + m.c cVar = (m.c) obj; + m.c cVar2 = (m.c) obj2; + int compare = Integer.compare(cVar2.a, cVar.a); + if (compare != 0) { + return compare; + } + int compareTo = cVar2.c.compareTo(cVar.c); + return compareTo != 0 ? compareTo : cVar2.d.compareTo(cVar.d); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/g.java b/app/src/main/java/b/i/a/c/d3/g.java new file mode 100644 index 0000000000..877b31d494 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/g.java @@ -0,0 +1,13 @@ +package b.i.a.c.d3; + +import b.i.a.c.b3.q.b; +import b.i.b.a.h; +/* compiled from: lambda */ +public final /* synthetic */ class g implements h { + public static final /* synthetic */ g a = new g(); + + @Override // b.i.b.a.h + public final boolean apply(Object obj) { + return !(obj instanceof b); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/h.java b/app/src/main/java/b/i/a/c/d3/h.java new file mode 100644 index 0000000000..64b32fdc7a --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/h.java @@ -0,0 +1,13 @@ +package b.i.a.c.d3; + +import android.text.style.AbsoluteSizeSpan; +import android.text.style.RelativeSizeSpan; +/* compiled from: lambda */ +public final /* synthetic */ class h implements b.i.b.a.h { + public static final /* synthetic */ h a = new h(); + + @Override // b.i.b.a.h + public final boolean apply(Object obj) { + return (obj instanceof AbsoluteSizeSpan) || (obj instanceof RelativeSizeSpan); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/i.java b/app/src/main/java/b/i/a/c/d3/i.java new file mode 100644 index 0000000000..875cd2d799 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/i.java @@ -0,0 +1,12 @@ +package b.i.a.c.d3; + +import android.view.View; +import androidx.annotation.Nullable; +/* compiled from: AdOverlayInfo */ +public final class i { + public i(View view, int i) { + } + + public i(View view, int i, @Nullable String str) { + } +} diff --git a/app/src/main/java/b/i/a/c/d3/j.java b/app/src/main/java/b/i/a/c/d3/j.java new file mode 100644 index 0000000000..2e740caa65 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/j.java @@ -0,0 +1,477 @@ +package b.i.a.c.d3; + +import android.content.Context; +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Color; +import android.graphics.Rect; +import android.text.Layout; +import android.text.SpannableStringBuilder; +import android.text.StaticLayout; +import android.text.TextUtils; +import android.text.style.AbsoluteSizeSpan; +import android.text.style.BackgroundColorSpan; +import android.text.style.ForegroundColorSpan; +import android.util.AttributeSet; +import android.util.Log; +import android.view.View; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +import androidx.recyclerview.widget.ItemTouchHelper; +import b.c.a.a0.d; +import b.i.a.c.b3.b; +import b.i.a.c.f3.e0; +import com.google.android.exoplayer2.ui.SubtitleView; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: CanvasSubtitleOutput */ +public final class j extends View implements SubtitleView.a { + public final List j = new ArrayList(); + public List k = Collections.emptyList(); + public int l = 0; + public float m = 0.0533f; + public k n = k.a; + public float o = 0.08f; + + public j(Context context, @Nullable AttributeSet attributeSet) { + super(context, attributeSet); + } + + @Override // com.google.android.exoplayer2.ui.SubtitleView.a + public void a(List list, k kVar, float f, int i, float f2) { + this.k = list; + this.n = kVar; + this.m = f; + this.l = i; + this.o = f2; + while (this.j.size() < list.size()) { + this.j.add(new n(getContext())); + } + invalidate(); + } + + /* JADX WARNING: Code restructure failed: missing block: B:166:0x03e8, code lost: + if (r3 < r6) goto L_0x03f8; + */ + /* JADX WARNING: Removed duplicated region for block: B:164:0x03e3 */ + /* JADX WARNING: Removed duplicated region for block: B:165:0x03e6 */ + /* JADX WARNING: Removed duplicated region for block: B:170:0x0437 */ + /* JADX WARNING: Removed duplicated region for block: B:183:0x04a7 */ + /* JADX WARNING: Removed duplicated region for block: B:184:0x04a9 */ + /* JADX WARNING: Removed duplicated region for block: B:95:0x01fc */ + @Override // android.view.View + public void dispatchDraw(Canvas canvas) { + int i; + float f; + int i2; + int i3; + int i4; + int i5; + int i6; + int i7; + Canvas canvas2; + int i8; + CharSequence charSequence; + CharSequence charSequence2; + boolean z2; + boolean z3; + int i9; + float f2; + float f3; + int i10; + int i11; + int i12; + int i13; + int i14; + int i15; + int i16; + j jVar = this; + Canvas canvas3 = canvas; + List list = jVar.k; + if (!list.isEmpty()) { + int height = getHeight(); + int paddingLeft = getPaddingLeft(); + int paddingTop = getPaddingTop(); + int width = getWidth() - getPaddingRight(); + int paddingBottom = height - getPaddingBottom(); + if (paddingBottom > paddingTop && width > paddingLeft) { + int i17 = paddingBottom - paddingTop; + float S1 = d.S1(jVar.l, jVar.m, height, i17); + if (S1 > 0.0f) { + int size = list.size(); + int i18 = 0; + while (i18 < size) { + b bVar = list.get(i18); + if (bVar.A != Integer.MIN_VALUE) { + b.C0084b a = bVar.a(); + a.h = -3.4028235E38f; + a.i = Integer.MIN_VALUE; + a.c = null; + if (bVar.q == 0) { + a.e = 1.0f - bVar.p; + a.f = 0; + } else { + a.e = (-bVar.p) - 1.0f; + a.f = 1; + } + int i19 = bVar.r; + if (i19 == 0) { + a.g = 2; + } else if (i19 == 2) { + a.g = 0; + } + bVar = a.a(); + } + float S12 = d.S1(bVar.f826y, bVar.f827z, height, i17); + n nVar = jVar.j.get(i18); + k kVar = jVar.n; + float f4 = jVar.o; + Objects.requireNonNull(nVar); + boolean z4 = bVar.o == null; + if (!z4) { + i7 = i17; + i8 = ViewCompat.MEASURED_STATE_MASK; + charSequence = nVar.i; + i6 = size; + charSequence2 = bVar.l; + if (!(charSequence != charSequence2 || (charSequence != null && charSequence.equals(charSequence2)))) { + } + nVar.i = bVar.l; + nVar.j = bVar.m; + nVar.k = bVar.o; + nVar.l = bVar.p; + nVar.m = bVar.q; + nVar.n = bVar.r; + nVar.o = bVar.f824s; + nVar.p = bVar.t; + nVar.q = bVar.u; + nVar.r = bVar.v; + nVar.f905s = kVar.f900b; + nVar.t = kVar.c; + nVar.u = i8; + nVar.w = kVar.e; + nVar.v = kVar.f; + nVar.f.setTypeface(kVar.g); + nVar.f906x = S1; + nVar.f907y = S12; + nVar.f908z = f4; + nVar.A = paddingLeft; + nVar.B = paddingTop; + nVar.C = width; + nVar.D = paddingBottom; + if (!z4) { + } + canvas2 = canvas; + z2 = z3; + nVar.a(canvas2, z2); + i18 = i + 1; + canvas3 = canvas2; + list = list; + i17 = i7; + height = height; + size = i6; + paddingLeft = i5; + paddingTop = i4; + width = i3; + paddingBottom = i2; + S1 = f; + jVar = this; + } else if (TextUtils.isEmpty(bVar.l)) { + canvas2 = canvas3; + i5 = paddingLeft; + i4 = paddingTop; + i3 = width; + i2 = paddingBottom; + i7 = i17; + f = S1; + i6 = size; + } else { + i8 = bVar.w ? bVar.f825x : kVar.d; + i7 = i17; + charSequence = nVar.i; + i6 = size; + charSequence2 = bVar.l; + if (!(charSequence != charSequence2 || (charSequence != null && charSequence.equals(charSequence2))) && e0.a(nVar.j, bVar.m) && nVar.k == bVar.o && nVar.l == bVar.p && nVar.m == bVar.q && e0.a(Integer.valueOf(nVar.n), Integer.valueOf(bVar.r)) && nVar.o == bVar.f824s && e0.a(Integer.valueOf(nVar.p), Integer.valueOf(bVar.t)) && nVar.q == bVar.u && nVar.r == bVar.v && nVar.f905s == kVar.f900b && nVar.t == kVar.c && nVar.u == i8 && nVar.w == kVar.e && nVar.v == kVar.f && e0.a(nVar.f.getTypeface(), kVar.g) && nVar.f906x == S1 && nVar.f907y == S12 && nVar.f908z == f4 && nVar.A == paddingLeft && nVar.B == paddingTop && nVar.C == width && nVar.D == paddingBottom) { + nVar.a(canvas3, z4); + canvas2 = canvas3; + i5 = paddingLeft; + i4 = paddingTop; + i3 = width; + i2 = paddingBottom; + f = S1; + } else { + nVar.i = bVar.l; + nVar.j = bVar.m; + nVar.k = bVar.o; + nVar.l = bVar.p; + nVar.m = bVar.q; + nVar.n = bVar.r; + nVar.o = bVar.f824s; + nVar.p = bVar.t; + nVar.q = bVar.u; + nVar.r = bVar.v; + nVar.f905s = kVar.f900b; + nVar.t = kVar.c; + nVar.u = i8; + nVar.w = kVar.e; + nVar.v = kVar.f; + nVar.f.setTypeface(kVar.g); + nVar.f906x = S1; + nVar.f907y = S12; + nVar.f908z = f4; + nVar.A = paddingLeft; + nVar.B = paddingTop; + nVar.C = width; + nVar.D = paddingBottom; + if (!z4) { + Objects.requireNonNull(nVar.i); + CharSequence charSequence3 = nVar.i; + SpannableStringBuilder spannableStringBuilder = charSequence3 instanceof SpannableStringBuilder ? (SpannableStringBuilder) charSequence3 : new SpannableStringBuilder(nVar.i); + int i20 = nVar.C - nVar.A; + int i21 = nVar.D - nVar.B; + nVar.f.setTextSize(nVar.f906x); + int i22 = (int) ((nVar.f906x * 0.125f) + 0.5f); + int i23 = i22 * 2; + int i24 = i20 - i23; + float f5 = nVar.q; + if (f5 != -3.4028235E38f) { + i24 = (int) (((float) i24) * f5); + } + if (i24 <= 0) { + Log.w("SubtitlePainter", "Skipped drawing subtitle cue (insufficient space)"); + i5 = paddingLeft; + i4 = paddingTop; + i3 = width; + i2 = paddingBottom; + f = S1; + i = i18; + z2 = z4; + canvas2 = canvas3; + } else { + i5 = paddingLeft; + i4 = paddingTop; + if (nVar.f907y > 0.0f) { + i3 = width; + i2 = paddingBottom; + i10 = 0; + spannableStringBuilder.setSpan(new AbsoluteSizeSpan((int) nVar.f907y), 0, spannableStringBuilder.length(), ItemTouchHelper.ACTION_MODE_DRAG_MASK); + } else { + i3 = width; + i2 = paddingBottom; + i10 = 0; + } + SpannableStringBuilder spannableStringBuilder2 = new SpannableStringBuilder(spannableStringBuilder); + if (nVar.w == 1) { + ForegroundColorSpan[] foregroundColorSpanArr = (ForegroundColorSpan[]) spannableStringBuilder2.getSpans(i10, spannableStringBuilder2.length(), ForegroundColorSpan.class); + int i25 = 0; + for (int length = foregroundColorSpanArr.length; i25 < length; length = length) { + spannableStringBuilder2.removeSpan(foregroundColorSpanArr[i25]); + i25++; + } + } + if (Color.alpha(nVar.t) > 0) { + int i26 = nVar.w; + if (i26 == 0 || i26 == 2) { + f = S1; + spannableStringBuilder.setSpan(new BackgroundColorSpan(nVar.t), 0, spannableStringBuilder.length(), ItemTouchHelper.ACTION_MODE_DRAG_MASK); + } else { + f = S1; + spannableStringBuilder2.setSpan(new BackgroundColorSpan(nVar.t), 0, spannableStringBuilder2.length(), ItemTouchHelper.ACTION_MODE_DRAG_MASK); + } + } else { + f = S1; + } + Layout.Alignment alignment = nVar.j; + if (alignment == null) { + alignment = Layout.Alignment.ALIGN_CENTER; + } + i = i18; + StaticLayout staticLayout = new StaticLayout(spannableStringBuilder, nVar.f, i24, alignment, nVar.d, nVar.e, true); + nVar.E = staticLayout; + int height2 = staticLayout.getHeight(); + int lineCount = nVar.E.getLineCount(); + int i27 = 0; + int i28 = 0; + while (i27 < lineCount) { + i28 = Math.max((int) Math.ceil((double) nVar.E.getLineWidth(i27)), i28); + i27++; + lineCount = lineCount; + z4 = z4; + } + z3 = z4; + if (nVar.q == -3.4028235E38f || i28 >= i24) { + i24 = i28; + } + int i29 = i24 + i23; + float f6 = nVar.o; + if (f6 != -3.4028235E38f) { + int round = Math.round(((float) i20) * f6); + int i30 = nVar.A; + int i31 = round + i30; + int i32 = nVar.p; + if (i32 == 1) { + i31 = ((i31 * 2) - i29) / 2; + } else if (i32 == 2) { + i31 -= i29; + } + i12 = Math.max(i31, i30); + i11 = Math.min(i29 + i12, nVar.C); + } else { + i12 = nVar.A + ((i20 - i29) / 2); + i11 = i12 + i29; + } + int i33 = i11 - i12; + if (i33 <= 0) { + Log.w("SubtitlePainter", "Skipped drawing subtitle cue (invalid horizontal positioning)"); + canvas2 = canvas; + z2 = z3; + } else { + float f7 = nVar.l; + if (f7 != -3.4028235E38f) { + if (nVar.m == 0) { + i14 = Math.round(((float) i21) * f7) + nVar.B; + int i34 = nVar.n; + if (i34 != 2) { + if (i34 == 1) { + i14 = ((i14 * 2) - height2) / 2; + } + i15 = i14 + height2; + i16 = nVar.D; + if (i15 > i16) { + i14 = i16 - height2; + } else { + i13 = nVar.B; + } + } + } else { + int lineBottom = nVar.E.getLineBottom(0) - nVar.E.getLineTop(0); + float f8 = nVar.l; + if (f8 >= 0.0f) { + i14 = Math.round(f8 * ((float) lineBottom)) + nVar.B; + i15 = i14 + height2; + i16 = nVar.D; + if (i15 > i16) { + } + } else { + i14 = Math.round((f8 + 1.0f) * ((float) lineBottom)) + nVar.D; + } + } + i14 -= height2; + i15 = i14 + height2; + i16 = nVar.D; + if (i15 > i16) { + } + } else { + i14 = (nVar.D - height2) - ((int) (((float) i21) * nVar.f908z)); + } + i13 = i14; + nVar.E = new StaticLayout(spannableStringBuilder, nVar.f, i33, alignment, nVar.d, nVar.e, true); + nVar.F = new StaticLayout(spannableStringBuilder2, nVar.f, i33, alignment, nVar.d, nVar.e, true); + nVar.G = i12; + nVar.H = i13; + nVar.I = i22; + } + } + nVar.a(canvas2, z2); + i18 = i + 1; + canvas3 = canvas2; + list = list; + i17 = i7; + height = height; + size = i6; + paddingLeft = i5; + paddingTop = i4; + width = i3; + paddingBottom = i2; + S1 = f; + jVar = this; + } else { + z3 = z4; + i5 = paddingLeft; + i4 = paddingTop; + i3 = width; + i2 = paddingBottom; + f = S1; + i = i18; + Objects.requireNonNull(nVar.k); + Bitmap bitmap = nVar.k; + int i35 = nVar.C; + int i36 = nVar.A; + int i37 = nVar.D; + int i38 = nVar.B; + float f9 = (float) (i35 - i36); + float f10 = (nVar.o * f9) + ((float) i36); + float f11 = (float) (i37 - i38); + float f12 = (nVar.l * f11) + ((float) i38); + int round2 = Math.round(f9 * nVar.q); + float f13 = nVar.r; + int round3 = f13 != -3.4028235E38f ? Math.round(f11 * f13) : Math.round((((float) bitmap.getHeight()) / ((float) bitmap.getWidth())) * ((float) round2)); + int i39 = nVar.p; + if (i39 == 2) { + f3 = (float) round2; + } else { + if (i39 == 1) { + f3 = (float) (round2 / 2); + } + int round4 = Math.round(f10); + i9 = nVar.n; + if (i9 != 2) { + f2 = (float) round3; + } else { + if (i9 == 1) { + f2 = (float) (round3 / 2); + } + int round5 = Math.round(f12); + nVar.J = new Rect(round4, round5, round2 + round4, round3 + round5); + } + f12 -= f2; + int round5 = Math.round(f12); + nVar.J = new Rect(round4, round5, round2 + round4, round3 + round5); + } + f10 -= f3; + int round4 = Math.round(f10); + i9 = nVar.n; + if (i9 != 2) { + } + f12 -= f2; + int round5 = Math.round(f12); + nVar.J = new Rect(round4, round5, round2 + round4, round3 + round5); + } + canvas2 = canvas; + z2 = z3; + nVar.a(canvas2, z2); + i18 = i + 1; + canvas3 = canvas2; + list = list; + i17 = i7; + height = height; + size = i6; + paddingLeft = i5; + paddingTop = i4; + width = i3; + paddingBottom = i2; + S1 = f; + jVar = this; + } + } + i = i18; + i18 = i + 1; + canvas3 = canvas2; + list = list; + i17 = i7; + height = height; + size = i6; + paddingLeft = i5; + paddingTop = i4; + width = i3; + paddingBottom = i2; + S1 = f; + jVar = this; + } + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/d3/k.java b/app/src/main/java/b/i/a/c/d3/k.java new file mode 100644 index 0000000000..9f358028d5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/k.java @@ -0,0 +1,27 @@ +package b.i.a.c.d3; + +import android.graphics.Typeface; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +/* compiled from: CaptionStyleCompat */ +public final class k { + public static final k a = new k(-1, ViewCompat.MEASURED_STATE_MASK, 0, 0, -1, null); + + /* renamed from: b reason: collision with root package name */ + public final int f900b; + public final int c; + public final int d; + public final int e; + public final int f; + @Nullable + public final Typeface g; + + public k(int i, int i2, int i3, int i4, int i5, @Nullable Typeface typeface) { + this.f900b = i; + this.c = i2; + this.d = i3; + this.e = i4; + this.f = i5; + this.g = typeface; + } +} diff --git a/app/src/main/java/b/i/a/c/d3/l.java b/app/src/main/java/b/i/a/c/d3/l.java new file mode 100644 index 0000000000..379f448a55 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/l.java @@ -0,0 +1,13 @@ +package b.i.a.c.d3; + +import android.content.res.Resources; +import java.util.Objects; +/* compiled from: DefaultTrackNameProvider */ +public class l implements p { + public final Resources a; + + public l(Resources resources) { + Objects.requireNonNull(resources); + this.a = resources; + } +} diff --git a/app/src/main/java/b/i/a/c/d3/m.java b/app/src/main/java/b/i/a/c/d3/m.java new file mode 100644 index 0000000000..88c71c07b0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/m.java @@ -0,0 +1,53 @@ +package b.i.a.c.d3; + +import android.text.Html; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.regex.Pattern; +/* compiled from: SpannedToHtmlConverter */ +public final class m { + public static final Pattern a = Pattern.compile("( )? "); + + /* compiled from: SpannedToHtmlConverter */ + public static class b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final Map f901b; + + public b(String str, Map map, a aVar) { + this.a = str; + this.f901b = map; + } + } + + /* compiled from: SpannedToHtmlConverter */ + public static final class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f902b; + public final String c; + public final String d; + + public c(int i, int i2, String str, String str2, a aVar) { + this.a = i; + this.f902b = i2; + this.c = str; + this.d = str2; + } + } + + /* compiled from: SpannedToHtmlConverter */ + public static final class d { + public final List a = new ArrayList(); + + /* renamed from: b reason: collision with root package name */ + public final List f903b = new ArrayList(); + } + + public static String a(CharSequence charSequence) { + return a.matcher(Html.escapeHtml(charSequence)).replaceAll("
"); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/n.java b/app/src/main/java/b/i/a/c/d3/n.java new file mode 100644 index 0000000000..23df693ec9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/n.java @@ -0,0 +1,144 @@ +package b.i.a.c.d3; + +import android.content.Context; +import android.content.res.TypedArray; +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Color; +import android.graphics.Paint; +import android.graphics.Rect; +import android.text.Layout; +import android.text.StaticLayout; +import android.text.TextPaint; +import androidx.annotation.Nullable; +import java.util.Objects; +/* compiled from: SubtitlePainter */ +public final class n { + public int A; + public int B; + public int C; + public int D; + public StaticLayout E; + public StaticLayout F; + public int G; + public int H; + public int I; + public Rect J; + public final float a; + + /* renamed from: b reason: collision with root package name */ + public final float f904b; + public final float c; + public final float d; + public final float e; + public final TextPaint f; + public final Paint g; + public final Paint h; + @Nullable + public CharSequence i; + @Nullable + public Layout.Alignment j; + @Nullable + public Bitmap k; + public float l; + public int m; + public int n; + public float o; + public int p; + public float q; + public float r; + + /* renamed from: s reason: collision with root package name */ + public int f905s; + public int t; + public int u; + public int v; + public int w; + + /* renamed from: x reason: collision with root package name */ + public float f906x; + + /* renamed from: y reason: collision with root package name */ + public float f907y; + + /* renamed from: z reason: collision with root package name */ + public float f908z; + + public n(Context context) { + TypedArray obtainStyledAttributes = context.obtainStyledAttributes(null, new int[]{16843287, 16843288}, 0, 0); + this.e = (float) obtainStyledAttributes.getDimensionPixelSize(0, 0); + this.d = obtainStyledAttributes.getFloat(1, 1.0f); + obtainStyledAttributes.recycle(); + float round = (float) Math.round((((float) context.getResources().getDisplayMetrics().densityDpi) * 2.0f) / 160.0f); + this.a = round; + this.f904b = round; + this.c = round; + TextPaint textPaint = new TextPaint(); + this.f = textPaint; + textPaint.setAntiAlias(true); + textPaint.setSubpixelText(true); + Paint paint = new Paint(); + this.g = paint; + paint.setAntiAlias(true); + paint.setStyle(Paint.Style.FILL); + Paint paint2 = new Paint(); + this.h = paint2; + paint2.setAntiAlias(true); + paint2.setFilterBitmap(true); + } + + public final void a(Canvas canvas, boolean z2) { + if (z2) { + StaticLayout staticLayout = this.E; + StaticLayout staticLayout2 = this.F; + if (staticLayout != null && staticLayout2 != null) { + int save = canvas.save(); + canvas.translate((float) this.G, (float) this.H); + if (Color.alpha(this.u) > 0) { + this.g.setColor(this.u); + canvas.drawRect((float) (-this.I), 0.0f, (float) (staticLayout.getWidth() + this.I), (float) staticLayout.getHeight(), this.g); + } + int i = this.w; + boolean z3 = true; + if (i == 1) { + this.f.setStrokeJoin(Paint.Join.ROUND); + this.f.setStrokeWidth(this.a); + this.f.setColor(this.v); + this.f.setStyle(Paint.Style.FILL_AND_STROKE); + staticLayout2.draw(canvas); + } else if (i == 2) { + TextPaint textPaint = this.f; + float f = this.f904b; + float f2 = this.c; + textPaint.setShadowLayer(f, f2, f2, this.v); + } else if (i == 3 || i == 4) { + if (i != 3) { + z3 = false; + } + int i2 = -1; + int i3 = z3 ? -1 : this.v; + if (z3) { + i2 = this.v; + } + float f3 = this.f904b / 2.0f; + this.f.setColor(this.f905s); + this.f.setStyle(Paint.Style.FILL); + float f4 = -f3; + this.f.setShadowLayer(this.f904b, f4, f4, i3); + staticLayout2.draw(canvas); + this.f.setShadowLayer(this.f904b, f3, f3, i2); + } + this.f.setColor(this.f905s); + this.f.setStyle(Paint.Style.FILL); + staticLayout.draw(canvas); + this.f.setShadowLayer(0.0f, 0.0f, 0.0f, 0); + canvas.restoreToCount(save); + return; + } + return; + } + Objects.requireNonNull(this.J); + Objects.requireNonNull(this.k); + canvas.drawBitmap(this.k, (Rect) null, this.J, this.h); + } +} diff --git a/app/src/main/java/b/i/a/c/d3/o.java b/app/src/main/java/b/i/a/c/d3/o.java new file mode 100644 index 0000000000..862a141113 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/o.java @@ -0,0 +1,30 @@ +package b.i.a.c.d3; + +import androidx.annotation.Nullable; +/* compiled from: TimeBar */ +public interface o { + + /* compiled from: TimeBar */ + public interface a { + void k(o oVar, long j); + + void l(o oVar, long j, boolean z2); + + void m(o oVar, long j); + } + + void a(@Nullable long[] jArr, @Nullable boolean[] zArr, int i); + + void b(a aVar); + + long getPreferredUpdateDelay(); + + void setBufferedPosition(long j); + + void setDuration(long j); + + @Override // b.i.a.c.d3.o + void setEnabled(boolean z2); + + void setPosition(long j); +} diff --git a/app/src/main/java/b/i/a/c/d3/p.java b/app/src/main/java/b/i/a/c/d3/p.java new file mode 100644 index 0000000000..51d5b60642 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/p.java @@ -0,0 +1,4 @@ +package b.i.a.c.d3; +/* compiled from: TrackNameProvider */ +public interface p { +} diff --git a/app/src/main/java/b/i/a/c/d3/q.java b/app/src/main/java/b/i/a/c/d3/q.java new file mode 100644 index 0000000000..c466cdb2d8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/q.java @@ -0,0 +1,24 @@ +package b.i.a.c.d3; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.MotionEvent; +import android.webkit.WebView; +/* compiled from: WebViewSubtitleOutput */ +public class q extends WebView { + public q(Context context, AttributeSet attributeSet) { + super(context, attributeSet); + } + + @Override // android.webkit.WebView, android.view.View + public boolean onTouchEvent(MotionEvent motionEvent) { + super.onTouchEvent(motionEvent); + return false; + } + + @Override // android.view.View + public boolean performClick() { + super.performClick(); + return false; + } +} diff --git a/app/src/main/java/b/i/a/c/d3/r.java b/app/src/main/java/b/i/a/c/d3/r.java new file mode 100644 index 0000000000..8cea459944 --- /dev/null +++ b/app/src/main/java/b/i/a/c/d3/r.java @@ -0,0 +1,683 @@ +package b.i.a.c.d3; + +import android.content.Context; +import android.text.Layout; +import android.text.Spanned; +import android.text.style.AbsoluteSizeSpan; +import android.text.style.BackgroundColorSpan; +import android.text.style.ForegroundColorSpan; +import android.text.style.RelativeSizeSpan; +import android.text.style.StrikethroughSpan; +import android.text.style.StyleSpan; +import android.text.style.TypefaceSpan; +import android.text.style.UnderlineSpan; +import android.util.Base64; +import android.util.SparseArray; +import android.webkit.WebView; +import android.widget.FrameLayout; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.b3.b; +import b.i.a.c.b3.q.c; +import b.i.a.c.d3.m; +import b.i.a.c.f3.e0; +import b.i.b.b.i0; +import com.google.android.exoplayer2.ui.SubtitleView; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.regex.Pattern; +/* compiled from: WebViewSubtitleOutput */ +public final class r extends FrameLayout implements SubtitleView.a { + public final j j; + public final WebView k; + public List l = Collections.emptyList(); + public k m = k.a; + public float n = 0.0533f; + public int o = 0; + public float p = 0.08f; + + /* compiled from: WebViewSubtitleOutput */ + public static /* synthetic */ class a { + public static final /* synthetic */ int[] a; + + static { + int[] iArr = new int[Layout.Alignment.values().length]; + a = iArr; + try { + iArr[Layout.Alignment.ALIGN_NORMAL.ordinal()] = 1; + } catch (NoSuchFieldError unused) { + } + try { + a[Layout.Alignment.ALIGN_OPPOSITE.ordinal()] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + a[Layout.Alignment.ALIGN_CENTER.ordinal()] = 3; + } catch (NoSuchFieldError unused3) { + } + } + } + + public r(Context context) { + super(context, null); + j jVar = new j(context, null); + this.j = jVar; + q qVar = new q(context, null); + this.k = qVar; + qVar.setBackgroundColor(0); + addView(jVar); + addView(qVar); + } + + public static int b(int i) { + if (i != 1) { + return i != 2 ? 0 : -100; + } + return -50; + } + + public static String c(@Nullable Layout.Alignment alignment) { + if (alignment == null) { + return "center"; + } + int i = a.a[alignment.ordinal()]; + return i != 1 ? i != 2 ? "center" : "end" : "start"; + } + + @Override // com.google.android.exoplayer2.ui.SubtitleView.a + public void a(List list, k kVar, float f, int i, float f2) { + this.m = kVar; + this.n = f; + this.o = i; + this.p = f2; + ArrayList arrayList = new ArrayList(); + ArrayList arrayList2 = new ArrayList(); + for (int i2 = 0; i2 < list.size(); i2++) { + b bVar = list.get(i2); + if (bVar.o != null) { + arrayList.add(bVar); + } else { + arrayList2.add(bVar); + } + } + if (!this.l.isEmpty() || !arrayList2.isEmpty()) { + this.l = arrayList2; + e(); + } + this.j.a(arrayList, kVar, f, i, f2); + invalidate(); + } + + public final String d(int i, float f) { + float S1 = d.S1(i, f, getHeight(), (getHeight() - getPaddingTop()) - getPaddingBottom()); + return S1 == -3.4028235E38f ? "unset" : e0.k("%.2fpx", Float.valueOf(S1 / getContext().getResources().getDisplayMetrics().density)); + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x007e: APUT (r3v0 java.lang.Object[]), (3 ??[int, float, short, byte, char]), (r2v1 java.lang.String) */ + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x062c: APUT (r0v11 java.lang.Object[]), (13 ??[int, float, short, byte, char]), (r4v18 java.lang.String) */ + /* JADX WARNING: Code restructure failed: missing block: B:176:0x0462, code lost: + if (((android.text.style.TypefaceSpan) r9).getFamily() != null) goto L_0x04aa; + */ + /* JADX WARNING: Code restructure failed: missing block: B:54:0x01b0, code lost: + if (r5 != 0) goto L_0x01b7; + */ + /* JADX WARNING: Code restructure failed: missing block: B:55:0x01b3, code lost: + if (r5 != 0) goto L_0x01b5; + */ + /* JADX WARNING: Removed duplicated region for block: B:199:0x04b6 */ + /* JADX WARNING: Removed duplicated region for block: B:223:0x0599 */ + /* JADX WARNING: Removed duplicated region for block: B:232:0x0609 */ + /* JADX WARNING: Removed duplicated region for block: B:238:0x0629 */ + /* JADX WARNING: Removed duplicated region for block: B:241:0x064b */ + /* JADX WARNING: Removed duplicated region for block: B:242:0x0667 */ + /* JADX WARNING: Removed duplicated region for block: B:257:0x04f0 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:65:0x01ec */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x01f6 */ + public final void e() { + int i; + char c; + String str; + int i2; + String str2; + int i3; + String str3; + CharSequence charSequence; + String str4; + String str5; + String str6; + String str7; + String str8; + String str9; + String str10; + String str11; + m.b bVar; + float f; + int i4; + String str12; + Layout.Alignment alignment; + String str13; + String str14; + String str15; + float f2; + String str16; + String str17; + String str18; + String str19; + String str20; + int i5; + r rVar = this; + StringBuilder sb = new StringBuilder(); + Object[] objArr = new Object[4]; + char c2 = 0; + objArr[0] = d.d2(rVar.m.f900b); + int i6 = 1; + objArr[1] = rVar.d(rVar.o, rVar.n); + float f3 = 1.2f; + objArr[2] = Float.valueOf(1.2f); + k kVar = rVar.m; + int i7 = kVar.e; + objArr[3] = i7 != 1 ? i7 != 2 ? i7 != 3 ? i7 != 4 ? "unset" : e0.k("-0.05em -0.05em 0.15em %s", d.d2(kVar.f)) : e0.k("0.06em 0.08em 0.15em %s", d.d2(kVar.f)) : e0.k("0.1em 0.12em 0.15em %s", d.d2(kVar.f)) : e0.k("1px 1px 0 %1$s, 1px -1px 0 %1$s, -1px 1px 0 %1$s, -1px -1px 0 %1$s", d.d2(kVar.f)); + sb.append(e0.k("
", objArr)); + HashMap hashMap = new HashMap(); + String str21 = "default_bg"; + String str22 = "background-color:%s;"; + hashMap.put(d.V(str21), e0.k(str22, d.d2(rVar.m.c))); + int i8 = 0; + while (i8 < rVar.l.size()) { + b bVar2 = rVar.l.get(i8); + float f4 = bVar2.f824s; + float f5 = f4 != -3.4028235E38f ? f4 * 100.0f : 50.0f; + int b2 = b(bVar2.t); + float f6 = bVar2.p; + if (f6 == -3.4028235E38f) { + c = 0; + Object[] objArr2 = new Object[i6]; + objArr2[0] = Float.valueOf((1.0f - rVar.p) * 100.0f); + str = e0.k("%.2f%%", objArr2); + c2 = 0; + i = -100; + } else if (bVar2.q != i6) { + Object[] objArr3 = new Object[i6]; + objArr3[c2] = Float.valueOf(f6 * 100.0f); + str = e0.k("%.2f%%", objArr3); + c = 0; + i = bVar2.A == i6 ? -b(bVar2.r) : b(bVar2.r); + } else { + if (f6 >= 0.0f) { + Object[] objArr4 = new Object[i6]; + Float valueOf = Float.valueOf(f6 * f3); + c = 0; + objArr4[0] = valueOf; + str = e0.k("%.2fem", objArr4); + c2 = 0; + } else { + Object[] objArr5 = new Object[i6]; + Float valueOf2 = Float.valueOf(((-f6) - 1.0f) * f3); + c = 0; + objArr5[0] = valueOf2; + str = e0.k("%.2fem", objArr5); + c2 = 1; + } + i = 0; + } + float f7 = bVar2.u; + if (f7 != -3.4028235E38f) { + i2 = b2; + Object[] objArr6 = new Object[i6]; + objArr6[c] = Float.valueOf(f7 * 100.0f); + str2 = e0.k("%.2f%%", objArr6); + } else { + i2 = b2; + str2 = "fit-content"; + } + String c3 = c(bVar2.m); + int i9 = bVar2.A; + String str23 = i9 != i6 ? i9 != 2 ? "horizontal-tb" : "vertical-lr" : "vertical-rl"; + String d = rVar.d(bVar2.f826y, bVar2.f827z); + String d2 = d.d2(bVar2.w ? bVar2.f825x : rVar.m.d); + int i10 = bVar2.A; + String str24 = "right"; + String str25 = "left"; + String str26 = "top"; + if (i10 != 1) { + if (i10 != 2) { + if (c2 != 0) { + str26 = "bottom"; + } + i3 = 2; + if (i10 != i3 || i10 == 1) { + str3 = "height"; + } else { + str3 = "width"; + i2 = i; + i = i2; + } + charSequence = bVar2.l; + float f8 = getContext().getResources().getDisplayMetrics().density; + Pattern pattern = m.a; + if (charSequence != null) { + bVar = new m.b("", i0.m, null); + str11 = ""; + } else if (!(charSequence instanceof Spanned)) { + str11 = ""; + bVar = new m.b(m.a(charSequence), i0.m, null); + } else { + str11 = ""; + Spanned spanned = (Spanned) charSequence; + HashSet hashSet = new HashSet(); + str10 = d2; + str9 = d; + BackgroundColorSpan[] backgroundColorSpanArr = (BackgroundColorSpan[]) spanned.getSpans(0, spanned.length(), BackgroundColorSpan.class); + int length = backgroundColorSpanArr.length; + int i11 = 0; + while (i11 < length) { + hashSet.add(Integer.valueOf(backgroundColorSpanArr[i11].getBackgroundColor())); + i11++; + backgroundColorSpanArr = backgroundColorSpanArr; + } + HashMap hashMap2 = new HashMap(); + for (Iterator it = hashSet.iterator(); it.hasNext(); it = it) { + int intValue = ((Integer) it.next()).intValue(); + StringBuilder sb2 = new StringBuilder(14); + sb2.append("bg_"); + sb2.append(intValue); + hashMap2.put(d.V(sb2.toString()), e0.k(str22, d.d2(intValue))); + } + SparseArray sparseArray = new SparseArray(); + str8 = str22; + Object[] spans = spanned.getSpans(0, spanned.length(), Object.class); + int length2 = spans.length; + int i12 = 0; + while (i12 < length2) { + Object obj = spans[i12]; + boolean z2 = obj instanceof StrikethroughSpan; + if (z2) { + str14 = str3; + f2 = f8; + str15 = str2; + str16 = c3; + str17 = str23; + str18 = ""; + } else { + str17 = str23; + if (obj instanceof ForegroundColorSpan) { + str16 = c3; + str18 = e0.k("", d.d2(((ForegroundColorSpan) obj).getForegroundColor())); + } else { + str16 = c3; + if (obj instanceof BackgroundColorSpan) { + str18 = e0.k("", Integer.valueOf(((BackgroundColorSpan) obj).getBackgroundColor())); + } else if (obj instanceof b.i.a.c.b3.q.a) { + str18 = ""; + } else if (obj instanceof AbsoluteSizeSpan) { + AbsoluteSizeSpan absoluteSizeSpan = (AbsoluteSizeSpan) obj; + str18 = e0.k("", Float.valueOf(absoluteSizeSpan.getDip() ? (float) absoluteSizeSpan.getSize() : ((float) absoluteSizeSpan.getSize()) / f8)); + } else { + if (obj instanceof RelativeSizeSpan) { + str18 = e0.k("", Float.valueOf(((RelativeSizeSpan) obj).getSizeChange() * 100.0f)); + } else if (obj instanceof TypefaceSpan) { + String family = ((TypefaceSpan) obj).getFamily(); + str18 = family != null ? e0.k("", family) : null; + } else { + if (obj instanceof StyleSpan) { + int style = ((StyleSpan) obj).getStyle(); + if (style == 1) { + str18 = ""; + } else if (style == 2) { + str18 = ""; + } else if (style == 3) { + str18 = ""; + } + } else if (obj instanceof c) { + int i13 = ((c) obj).f858b; + if (i13 == -1) { + str18 = ""; + } else if (i13 == 1) { + str18 = ""; + } else if (i13 == 2) { + str18 = ""; + } + } else if (obj instanceof UnderlineSpan) { + str18 = ""; + } else if (obj instanceof b.i.a.c.b3.q.d) { + b.i.a.c.b3.q.d dVar = (b.i.a.c.b3.q.d) obj; + int i14 = dVar.a; + f2 = f8; + int i15 = dVar.f859b; + str15 = str2; + StringBuilder sb3 = new StringBuilder(); + str14 = str3; + if (i15 != 1) { + i5 = 2; + if (i15 == 2) { + sb3.append("open "); + } + } else { + i5 = 2; + sb3.append("filled "); + } + if (i14 == 0) { + sb3.append("none"); + } else if (i14 == 1) { + sb3.append("circle"); + } else if (i14 == i5) { + sb3.append("dot"); + } else if (i14 != 3) { + sb3.append("unset"); + } else { + sb3.append("sesame"); + } + str18 = e0.k("", sb3.toString(), dVar.c != 2 ? "over right" : "under left"); + } + str14 = str3; + f2 = f8; + str15 = str2; + str18 = null; + } + str14 = str3; + f2 = f8; + str15 = str2; + } + } + str14 = str3; + f2 = f8; + str15 = str2; + } + if (!z2 && !(obj instanceof ForegroundColorSpan) && !(obj instanceof BackgroundColorSpan) && !(obj instanceof b.i.a.c.b3.q.a) && !(obj instanceof AbsoluteSizeSpan) && !(obj instanceof RelativeSizeSpan) && !(obj instanceof b.i.a.c.b3.q.d)) { + if (!(obj instanceof TypefaceSpan)) { + if (obj instanceof StyleSpan) { + int style2 = ((StyleSpan) obj).getStyle(); + if (style2 == 1) { + str20 = ""; + } else if (style2 == 2) { + str20 = ""; + } else if (style2 == 3) { + str20 = ""; + } + str19 = str20; + int spanStart = spanned.getSpanStart(obj); + int spanEnd = spanned.getSpanEnd(obj); + if (str18 == null) { + Objects.requireNonNull(str19); + m.c cVar = new m.c(spanStart, spanEnd, str18, str19, null); + m.d dVar2 = (m.d) sparseArray.get(spanStart); + if (dVar2 == null) { + dVar2 = new m.d(); + sparseArray.put(spanStart, dVar2); + } + dVar2.a.add(cVar); + m.d dVar3 = (m.d) sparseArray.get(spanEnd); + if (dVar3 == null) { + dVar3 = new m.d(); + sparseArray.put(spanEnd, dVar3); + } + dVar3.f903b.add(cVar); + } + i12++; + length2 = length2; + spans = spans; + str23 = str17; + c3 = str16; + f8 = f2; + str2 = str15; + str3 = str14; + } else { + if (obj instanceof c) { + String a2 = m.a(((c) obj).a); + str20 = b.d.b.a.a.j(b.d.b.a.a.b(a2, 16), "", a2, ""); + } else if (obj instanceof UnderlineSpan) { + str20 = ""; + } + str19 = str20; + int spanStart = spanned.getSpanStart(obj); + int spanEnd = spanned.getSpanEnd(obj); + if (str18 == null) { + } + i12++; + length2 = length2; + spans = spans; + str23 = str17; + c3 = str16; + f8 = f2; + str2 = str15; + str3 = str14; + } + } + str20 = null; + str19 = str20; + int spanStart = spanned.getSpanStart(obj); + int spanEnd = spanned.getSpanEnd(obj); + if (str18 == null) { + } + i12++; + length2 = length2; + spans = spans; + str23 = str17; + c3 = str16; + f8 = f2; + str2 = str15; + str3 = str14; + } + str19 = ""; + int spanStart = spanned.getSpanStart(obj); + int spanEnd = spanned.getSpanEnd(obj); + if (str18 == null) { + } + i12++; + length2 = length2; + spans = spans; + str23 = str17; + c3 = str16; + f8 = f2; + str2 = str15; + str3 = str14; + } + str4 = str3; + str7 = str23; + str5 = str2; + str6 = c3; + StringBuilder sb4 = new StringBuilder(spanned.length()); + int i16 = 0; + int i17 = 0; + while (i16 < sparseArray.size()) { + int keyAt = sparseArray.keyAt(i16); + sb4.append(m.a(spanned.subSequence(i17, keyAt))); + m.d dVar4 = (m.d) sparseArray.get(keyAt); + Collections.sort(dVar4.f903b, f.j); + for (m.c cVar2 : dVar4.f903b) { + sb4.append(cVar2.d); + } + Collections.sort(dVar4.a, e.j); + for (m.c cVar3 : dVar4.a) { + sb4.append(cVar3.c); + } + i16++; + i17 = keyAt; + } + sb4.append(m.a(spanned.subSequence(i17, spanned.length()))); + bVar = new m.b(sb4.toString(), hashMap2, null); + for (String str27 : hashMap.keySet()) { + String str28 = (String) hashMap.put(str27, (String) hashMap.get(str27)); + d.D(str28 == null || str28.equals(hashMap.get(str27))); + } + Object[] objArr7 = new Object[14]; + objArr7[0] = Integer.valueOf(i8); + objArr7[1] = str25; + objArr7[2] = Float.valueOf(f5); + objArr7[3] = str26; + objArr7[4] = str; + objArr7[5] = str4; + objArr7[6] = str5; + objArr7[7] = str6; + objArr7[8] = str7; + objArr7[9] = str9; + objArr7[10] = str10; + objArr7[11] = Integer.valueOf(i); + objArr7[12] = Integer.valueOf(i2); + f = bVar2.B; + if (f != 0.0f) { + int i18 = bVar2.A; + i4 = 1; + str12 = e0.k("%s(%.2fdeg)", (i18 == 2 || i18 == 1) ? "skewY" : "skewX", Float.valueOf(f)); + } else { + i4 = 1; + str12 = str11; + } + objArr7[13] = str12; + sb = sb; + sb.append(e0.k("
", objArr7)); + Object[] objArr8 = new Object[i4]; + objArr8[0] = str21; + sb.append(e0.k("", objArr8)); + alignment = bVar2.n; + if (alignment != null) { + Object[] objArr9 = new Object[i4]; + objArr9[0] = c(alignment); + sb.append(e0.k("", objArr9)); + sb.append(bVar.a); + str13 = ""; + sb.append(str13); + } else { + str13 = ""; + sb.append(bVar.a); + } + sb.append(str13); + sb.append("
"); + i8++; + f3 = 1.2f; + c2 = 0; + i6 = 1; + rVar = this; + str21 = str21; + str22 = str8; + } + str4 = str3; + str7 = str23; + str8 = str22; + str5 = str2; + str6 = c3; + str9 = d; + str10 = d2; + while (r0.hasNext()) { + } + Object[] objArr7 = new Object[14]; + objArr7[0] = Integer.valueOf(i8); + objArr7[1] = str25; + objArr7[2] = Float.valueOf(f5); + objArr7[3] = str26; + objArr7[4] = str; + objArr7[5] = str4; + objArr7[6] = str5; + objArr7[7] = str6; + objArr7[8] = str7; + objArr7[9] = str9; + objArr7[10] = str10; + objArr7[11] = Integer.valueOf(i); + objArr7[12] = Integer.valueOf(i2); + f = bVar2.B; + if (f != 0.0f) { + } + objArr7[13] = str12; + sb = sb; + sb.append(e0.k("
", objArr7)); + Object[] objArr8 = new Object[i4]; + objArr8[0] = str21; + sb.append(e0.k("", objArr8)); + alignment = bVar2.n; + if (alignment != null) { + } + sb.append(str13); + sb.append("
"); + i8++; + f3 = 1.2f; + c2 = 0; + i6 = 1; + rVar = this; + str21 = str21; + str22 = str8; + } + } + str24 = str25; + i3 = 2; + str25 = str26; + str26 = str24; + if (i10 != i3) { + } + str3 = "height"; + charSequence = bVar2.l; + float f8 = getContext().getResources().getDisplayMetrics().density; + Pattern pattern = m.a; + if (charSequence != null) { + } + str4 = str3; + str7 = str23; + str8 = str22; + str5 = str2; + str6 = c3; + str9 = d; + str10 = d2; + while (r0.hasNext()) { + } + Object[] objArr7 = new Object[14]; + objArr7[0] = Integer.valueOf(i8); + objArr7[1] = str25; + objArr7[2] = Float.valueOf(f5); + objArr7[3] = str26; + objArr7[4] = str; + objArr7[5] = str4; + objArr7[6] = str5; + objArr7[7] = str6; + objArr7[8] = str7; + objArr7[9] = str9; + objArr7[10] = str10; + objArr7[11] = Integer.valueOf(i); + objArr7[12] = Integer.valueOf(i2); + f = bVar2.B; + if (f != 0.0f) { + } + objArr7[13] = str12; + sb = sb; + sb.append(e0.k("
", objArr7)); + Object[] objArr8 = new Object[i4]; + objArr8[0] = str21; + sb.append(e0.k("", objArr8)); + alignment = bVar2.n; + if (alignment != null) { + } + sb.append(str13); + sb.append("
"); + i8++; + f3 = 1.2f; + c2 = 0; + i6 = 1; + rVar = this; + str21 = str21; + str22 = str8; + } + sb.append("
"); + StringBuilder sb5 = new StringBuilder(); + sb5.append(""); + sb.insert(0, sb5.toString()); + this.k.loadData(Base64.encodeToString(sb.toString().getBytes(b.i.b.a.c.c), 1), "text/html", "base64"); + } + + @Override // android.widget.FrameLayout, android.view.View, android.view.ViewGroup + public void onLayout(boolean z2, int i, int i2, int i3, int i4) { + super.onLayout(z2, i, i2, i3, i4); + if (z2 && !this.l.isEmpty()) { + e(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/e.java b/app/src/main/java/b/i/a/c/e.java new file mode 100644 index 0000000000..423e650c36 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e.java @@ -0,0 +1,28 @@ +package b.i.a.c; + +import android.content.Context; +import b.i.a.c.e3.p; +import b.i.b.a.l; +/* compiled from: lambda */ +public final /* synthetic */ class e implements l { + public final /* synthetic */ Context j; + + public /* synthetic */ e(Context context) { + this.j = context; + } + + @Override // b.i.b.a.l + public final Object get() { + p pVar; + Context context = this.j; + b.i.b.b.p pVar2 = p.a; + synchronized (p.class) { + if (p.g == null) { + p.b bVar = new p.b(context); + p.g = new p(bVar.a, bVar.f933b, bVar.c, bVar.d, bVar.e, null); + } + pVar = p.g; + } + return pVar; + } +} diff --git a/app/src/main/java/b/i/a/c/e0.java b/app/src/main/java/b/i/a/c/e0.java new file mode 100644 index 0000000000..bd7a630546 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e0.java @@ -0,0 +1,18 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class e0 implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ e0(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + w1 w1Var = this.a; + ((y1.c) obj).H(w1Var.m, w1Var.f); + } +} diff --git a/app/src/main/java/b/i/a/c/e1.java b/app/src/main/java/b/i/a/c/e1.java new file mode 100644 index 0000000000..bc06b7fc00 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e1.java @@ -0,0 +1,63 @@ +package b.i.a.c; + +import android.content.Context; +import android.os.Looper; +import b.i.a.c.a3.c0; +import b.i.a.c.c3.q; +import b.i.a.c.e3.f; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.g; +import b.i.a.c.s2.g1; +import b.i.a.c.t2.o; +import b.i.b.a.l; +/* compiled from: ExoPlayer */ +public interface e1 extends y1 { + + /* compiled from: ExoPlayer */ + public interface a { + void o(boolean z2); + + void x(boolean z2); + } + + /* compiled from: ExoPlayer */ + public static final class b { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public g f909b = g.a; + public l c; + public l d; + public l e; + public l f; + public l g; + public l h = new i(this); + public Looper i = e0.o(); + public o j = o.j; + public int k = 1; + public boolean l = true; + public j2 m = j2.f1012b; + public long n = 5000; + public long o = 15000; + public m1 p = new y0(0.97f, 1.03f, 1000, 1.0E-7f, e0.B(20), e0.B(500), 0.999f, null); + public long q = 500; + public long r = 2000; + + /* renamed from: s reason: collision with root package name */ + public boolean f910s; + + public b(Context context) { + f fVar = new f(context); + h hVar = new h(context); + g gVar = new g(context); + a aVar = a.j; + e eVar = new e(context); + this.a = context; + this.c = fVar; + this.d = hVar; + this.e = gVar; + this.f = aVar; + this.g = eVar; + } + } +} diff --git a/app/src/main/java/b/i/a/c/e2.java b/app/src/main/java/b/i/a/c/e2.java new file mode 100644 index 0000000000..88c0d6180a --- /dev/null +++ b/app/src/main/java/b/i/a/c/e2.java @@ -0,0 +1,8 @@ +package b.i.a.c; + +import com.google.android.exoplayer2.ExoPlaybackException; +/* compiled from: Renderer */ +public final /* synthetic */ class e2 { + public static void a(f2 f2Var, float f, float f2) throws ExoPlaybackException { + } +} diff --git a/app/src/main/java/b/i/a/c/e3/a.java b/app/src/main/java/b/i/a/c/e3/a.java new file mode 100644 index 0000000000..7a1f161cdc --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/a.java @@ -0,0 +1,62 @@ +package b.i.a.c.e3; + +import androidx.core.view.PointerIconCompat; +import b.i.a.c.a3.a0; +import b.i.a.c.e3.f; +import b.i.a.c.s2.g1; +import b.i.a.c.s2.h1; +import b.i.a.c.s2.s0; +import b.i.b.b.p; +import java.util.Iterator; +import java.util.List; +import java.util.NoSuchElementException; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Runnable { + public final /* synthetic */ f.a.C0090a.C0091a j; + public final /* synthetic */ int k; + public final /* synthetic */ long l; + public final /* synthetic */ long m; + + public /* synthetic */ a(f.a.C0090a.C0091a aVar, int i, long j, long j2) { + this.j = aVar; + this.k = i; + this.l = j; + this.m = j2; + } + + @Override // java.lang.Runnable + public final void run() { + a0.a aVar; + a0.a aVar2; + a0.a next; + f.a.C0090a.C0091a aVar3 = this.j; + int i = this.k; + long j = this.l; + long j2 = this.m; + g1 g1Var = (g1) aVar3.f926b; + g1.a aVar4 = g1Var.m; + if (aVar4.f1067b.isEmpty()) { + aVar = null; + } else { + p pVar = aVar4.f1067b; + if (!(pVar instanceof List)) { + Iterator it = pVar.iterator(); + do { + next = it.next(); + } while (it.hasNext()); + aVar2 = next; + } else if (!pVar.isEmpty()) { + aVar2 = pVar.get(pVar.size() - 1); + } else { + throw new NoSuchElementException(); + } + aVar = aVar2; + } + h1.a m0 = g1Var.m0(aVar); + s0 s0Var = new s0(m0, i, j, j2); + g1Var.n.put(PointerIconCompat.TYPE_CELL, m0); + b.i.a.c.f3.p

pVar2 = g1Var.o; + pVar2.b(PointerIconCompat.TYPE_CELL, s0Var); + pVar2.a(); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/a0.java b/app/src/main/java/b/i/a/c/e3/a0.java new file mode 100644 index 0000000000..529753ff47 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/a0.java @@ -0,0 +1,11 @@ +package b.i.a.c.e3; +/* compiled from: TransferListener */ +public interface a0 { + void a(l lVar, n nVar, boolean z2); + + void b(l lVar, n nVar, boolean z2); + + void e(l lVar, n nVar, boolean z2, int i); + + void g(l lVar, n nVar, boolean z2); +} diff --git a/app/src/main/java/b/i/a/c/e3/b.java b/app/src/main/java/b/i/a/c/e3/b.java new file mode 100644 index 0000000000..98e8dbb52e --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b.java @@ -0,0 +1,39 @@ +package b.i.a.c.e3; + +import b.i.a.c.f3.v; +/* compiled from: lambda */ +public final /* synthetic */ class b implements v.b { + public final /* synthetic */ p a; + + public /* synthetic */ b(p pVar) { + this.a = pVar; + } + + @Override // b.i.a.c.f3.v.b + public final void a(int i) { + p pVar = this.a; + synchronized (pVar) { + int i2 = pVar.p; + if (i2 != 0 && !pVar.l) { + return; + } + if (i2 != i) { + pVar.p = i; + if (i != 1 && i != 0 && i != 8) { + pVar.f932s = pVar.h(i); + long d = pVar.k.d(); + pVar.j(pVar.m > 0 ? (int) (d - pVar.n) : 0, pVar.o, pVar.f932s); + pVar.n = d; + pVar.o = 0; + pVar.r = 0; + pVar.q = 0; + x xVar = pVar.j; + xVar.c.clear(); + xVar.e = -1; + xVar.f = 0; + xVar.g = 0; + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/a.java b/app/src/main/java/b/i/a/c/e3/b0/a.java new file mode 100644 index 0000000000..357a39a109 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/a.java @@ -0,0 +1,7 @@ +package b.i.a.c.e3.b0; +/* compiled from: lambda */ +public final /* synthetic */ class a implements g { + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ a f911b = new a(); +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/b.java b/app/src/main/java/b/i/a/c/e3/b0/b.java new file mode 100644 index 0000000000..75888f3e82 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/b.java @@ -0,0 +1,16 @@ +package b.i.a.c.e3.b0; + +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Comparator { + public static final /* synthetic */ b j = new b(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + h hVar = (h) obj; + h hVar2 = (h) obj2; + long j2 = hVar.o; + long j3 = hVar2.o; + return j2 - j3 == 0 ? hVar.compareTo(hVar2) : j2 < j3 ? -1 : 1; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/c.java b/app/src/main/java/b/i/a/c/e3/b0/c.java new file mode 100644 index 0000000000..df5031cd71 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/c.java @@ -0,0 +1,388 @@ +package b.i.a.c.e3.b0; + +import android.net.Uri; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import b.i.a.c.e3.a0; +import b.i.a.c.e3.j; +import b.i.a.c.e3.l; +import b.i.a.c.e3.n; +import b.i.a.c.e3.z; +import b.i.a.c.f3.e0; +import com.google.android.exoplayer2.upstream.DataSourceException; +import com.google.android.exoplayer2.upstream.cache.Cache; +import java.io.IOException; +import java.io.InterruptedIOException; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: CacheDataSource */ +public final class c implements l { + public final Cache a; + + /* renamed from: b reason: collision with root package name */ + public final l f912b; + @Nullable + public final l c; + public final l d; + public final g e = a.f911b; + @Nullable + public final a f; + public final boolean g; + public final boolean h; + public final boolean i; + @Nullable + public Uri j; + @Nullable + public n k; + @Nullable + public n l; + @Nullable + public l m; + public long n; + public long o; + public long p; + @Nullable + public h q; + public boolean r; + + /* renamed from: s reason: collision with root package name */ + public boolean f913s; + public long t; + public long u; + + /* compiled from: CacheDataSource */ + public interface a { + void a(int i); + + void b(long j, long j2); + } + + public c(Cache cache, @Nullable l lVar, l lVar2, @Nullable j jVar, int i, @Nullable a aVar) { + this.a = cache; + this.f912b = lVar2; + int i2 = g.a; + boolean z2 = false; + this.g = (i & 1) != 0; + this.h = (i & 2) != 0; + this.i = (i & 4) != 0 ? true : z2; + this.d = lVar; + this.c = new z(lVar, jVar); + this.f = null; + } + + @Override // b.i.a.c.e3.l + public long a(n nVar) throws IOException { + a aVar; + try { + Objects.requireNonNull((a) this.e); + String str = nVar.h; + if (str == null) { + str = nVar.a.toString(); + } + n.b a2 = nVar.a(); + a2.h = str; + n a3 = a2.a(); + this.k = a3; + Cache cache = this.a; + Uri uri = a3.a; + byte[] bArr = ((n) cache.b(str)).c.get("exo_redir"); + Uri uri2 = null; + String str2 = bArr != null ? new String(bArr, b.i.b.a.c.c) : null; + if (str2 != null) { + uri2 = Uri.parse(str2); + } + if (uri2 != null) { + uri = uri2; + } + this.j = uri; + this.o = nVar.f; + boolean z2 = true; + int i = (!this.h || !this.r) ? (!this.i || nVar.g != -1) ? -1 : 1 : 0; + if (i == -1) { + z2 = false; + } + this.f913s = z2; + if (z2 && (aVar = this.f) != null) { + aVar.a(i); + } + if (this.f913s) { + this.p = -1; + } else { + long a4 = k.a(this.a.b(str)); + this.p = a4; + if (a4 != -1) { + long j = a4 - nVar.f; + this.p = j; + if (j < 0) { + throw new DataSourceException(2008); + } + } + } + long j2 = nVar.g; + if (j2 != -1) { + long j3 = this.p; + if (j3 != -1) { + j2 = Math.min(j3, j2); + } + this.p = j2; + } + long j4 = this.p; + if (j4 > 0 || j4 == -1) { + t(a3, false); + } + long j5 = nVar.g; + return j5 != -1 ? j5 : this.p; + } catch (Throwable th) { + q(th); + throw th; + } + } + + @Override // b.i.a.c.e3.l + public void close() throws IOException { + this.k = null; + this.j = null; + this.o = 0; + a aVar = this.f; + if (aVar != null && this.t > 0) { + aVar.b(this.a.h(), this.t); + this.t = 0; + } + try { + p(); + } catch (Throwable th) { + q(th); + throw th; + } + } + + @Override // b.i.a.c.e3.l + public void d(a0 a0Var) { + Objects.requireNonNull(a0Var); + this.f912b.d(a0Var); + this.d.d(a0Var); + } + + @Override // b.i.a.c.e3.l + public Map> j() { + return s() ? this.d.j() : Collections.emptyMap(); + } + + @Override // b.i.a.c.e3.l + @Nullable + public Uri n() { + return this.j; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + public final void p() throws IOException { + l lVar = this.m; + if (lVar != null) { + ?? r1 = 0; + try { + lVar.close(); + } finally { + this.l = r1; + this.m = r1; + h hVar = this.q; + if (hVar != null) { + this.a.i(hVar); + this.q = r1; + } + } + } + } + + public final void q(Throwable th) { + if (r() || (th instanceof Cache.CacheException)) { + this.r = true; + } + } + + public final boolean r() { + return this.m == this.f912b; + } + + @Override // b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) throws IOException { + boolean z2 = false; + if (i2 == 0) { + return 0; + } + if (this.p == 0) { + return -1; + } + n nVar = this.k; + Objects.requireNonNull(nVar); + n nVar2 = this.l; + Objects.requireNonNull(nVar2); + try { + if (this.o >= this.u) { + t(nVar, true); + } + l lVar = this.m; + Objects.requireNonNull(lVar); + int read = lVar.read(bArr, i, i2); + if (read != -1) { + if (r()) { + this.t += (long) read; + } + long j = (long) read; + this.o += j; + this.n += j; + long j2 = this.p; + if (j2 != -1) { + this.p = j2 - j; + } + } else { + if (s()) { + long j3 = nVar2.g; + if (j3 == -1 || this.n < j3) { + String str = nVar.h; + int i3 = e0.a; + this.p = 0; + if (this.m == this.c) { + z2 = true; + } + if (z2) { + m mVar = new m(); + m.a(mVar, this.o); + this.a.c(str, mVar); + } + } + } + long j4 = this.p; + if (j4 <= 0) { + if (j4 == -1) { + } + } + p(); + t(nVar, false); + return read(bArr, i, i2); + } + return read; + } catch (Throwable th) { + q(th); + throw th; + } + } + + public final boolean s() { + return !r(); + } + + public final void t(n nVar, boolean z2) throws IOException { + h hVar; + n nVar2; + l lVar; + String str = nVar.h; + int i = e0.a; + Uri uri = null; + if (this.f913s) { + hVar = null; + } else if (this.g) { + try { + hVar = this.a.f(str, this.o, this.p); + } catch (InterruptedException unused) { + Thread.currentThread().interrupt(); + throw new InterruptedIOException(); + } + } else { + hVar = this.a.e(str, this.o, this.p); + } + if (hVar == null) { + lVar = this.d; + n.b a2 = nVar.a(); + a2.f = this.o; + a2.g = this.p; + nVar2 = a2.a(); + } else if (hVar.m) { + Uri fromFile = Uri.fromFile(hVar.n); + long j = hVar.k; + long j2 = this.o - j; + long j3 = hVar.l - j2; + long j4 = this.p; + if (j4 != -1) { + j3 = Math.min(j3, j4); + } + n.b a3 = nVar.a(); + a3.a = fromFile; + a3.f929b = j; + a3.f = j2; + a3.g = j3; + nVar2 = a3.a(); + lVar = this.f912b; + } else { + long j5 = hVar.l; + if (j5 == -1) { + j5 = this.p; + } else { + long j6 = this.p; + if (j6 != -1) { + j5 = Math.min(j5, j6); + } + } + n.b a4 = nVar.a(); + a4.f = this.o; + a4.g = j5; + nVar2 = a4.a(); + lVar = this.c; + if (lVar == null) { + lVar = this.d; + this.a.i(hVar); + hVar = null; + } + } + this.u = (this.f913s || lVar != this.d) ? RecyclerView.FOREVER_NS : this.o + 102400; + if (z2) { + d.D(this.m == this.d); + if (lVar != this.d) { + try { + p(); + } catch (Throwable th) { + if (!hVar.m) { + this.a.i(hVar); + } + throw th; + } + } else { + return; + } + } + if (hVar != null && (!hVar.m)) { + this.q = hVar; + } + this.m = lVar; + this.l = nVar2; + this.n = 0; + long a5 = lVar.a(nVar2); + m mVar = new m(); + if (nVar2.g == -1 && a5 != -1) { + this.p = a5; + m.a(mVar, this.o + a5); + } + if (s()) { + Uri n = lVar.n(); + this.j = n; + if (!nVar.a.equals(n)) { + uri = this.j; + } + if (uri == null) { + mVar.f921b.add("exo_redir"); + mVar.a.remove("exo_redir"); + } else { + String uri2 = uri.toString(); + Map map = mVar.a; + Objects.requireNonNull(uri2); + map.put("exo_redir", uri2); + mVar.f921b.remove("exo_redir"); + } + } + if (this.m == this.c) { + this.a.c(str, mVar); + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/d.java b/app/src/main/java/b/i/a/c/e3/b0/d.java new file mode 100644 index 0000000000..ed27ce9fa5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/d.java @@ -0,0 +1,9 @@ +package b.i.a.c.e3.b0; + +import com.google.android.exoplayer2.upstream.cache.Cache; +/* compiled from: CacheEvictor */ +public interface d extends Cache.a { + void a(Cache cache, String str, long j, long j2); + + void e(); +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/e.java b/app/src/main/java/b/i/a/c/e3/b0/e.java new file mode 100644 index 0000000000..b253a521b8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/e.java @@ -0,0 +1,13 @@ +package b.i.a.c.e3.b0; +/* compiled from: CacheFileMetadata */ +public final class e { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f914b; + + public e(long j, long j2) { + this.a = j; + this.f914b = j2; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/f.java b/app/src/main/java/b/i/a/c/e3/b0/f.java new file mode 100644 index 0000000000..d243750e8a --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/f.java @@ -0,0 +1,116 @@ +package b.i.a.c.e3.b0; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.database.sqlite.SQLiteDatabase; +import androidx.annotation.WorkerThread; +import b.i.a.c.u2.a; +import b.i.a.c.u2.d; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.exoplayer2.database.DatabaseIOException; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +/* compiled from: CacheFileMetadataIndex */ +public final class f { + public static final String[] a = {ModelAuditLogEntry.CHANGE_KEY_NAME, "length", "last_touch_timestamp"}; + + /* renamed from: b reason: collision with root package name */ + public final a f915b; + public String c; + + public f(a aVar) { + this.f915b = aVar; + } + + @WorkerThread + public Map a() throws DatabaseIOException { + try { + Objects.requireNonNull(this.c); + Cursor query = this.f915b.getReadableDatabase().query(this.c, a, null, null, null, null, null); + try { + HashMap hashMap = new HashMap(query.getCount()); + while (query.moveToNext()) { + String string = query.getString(0); + Objects.requireNonNull(string); + hashMap.put(string, new e(query.getLong(1), query.getLong(2))); + } + query.close(); + return hashMap; + } catch (Throwable th) { + th.addSuppressed(th); + } + throw th; + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } + + @WorkerThread + public void b(long j) throws DatabaseIOException { + try { + String hexString = Long.toHexString(j); + String valueOf = String.valueOf(hexString); + this.c = valueOf.length() != 0 ? "ExoPlayerCacheFileMetadata".concat(valueOf) : new String("ExoPlayerCacheFileMetadata"); + if (d.a(this.f915b.getReadableDatabase(), 2, hexString) != 1) { + SQLiteDatabase writableDatabase = this.f915b.getWritableDatabase(); + writableDatabase.beginTransactionNonExclusive(); + try { + d.b(writableDatabase, 2, hexString, 1); + String valueOf2 = String.valueOf(this.c); + writableDatabase.execSQL(valueOf2.length() != 0 ? "DROP TABLE IF EXISTS ".concat(valueOf2) : new String("DROP TABLE IF EXISTS ")); + String str = this.c; + StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 108); + sb.append("CREATE TABLE "); + sb.append(str); + sb.append(" "); + sb.append("(name TEXT PRIMARY KEY NOT NULL,length INTEGER NOT NULL,last_touch_timestamp INTEGER NOT NULL)"); + writableDatabase.execSQL(sb.toString()); + writableDatabase.setTransactionSuccessful(); + } finally { + writableDatabase.endTransaction(); + } + } + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } + + @WorkerThread + public void c(Set set) throws DatabaseIOException { + Objects.requireNonNull(this.c); + try { + SQLiteDatabase writableDatabase = this.f915b.getWritableDatabase(); + writableDatabase.beginTransactionNonExclusive(); + try { + Iterator it = set.iterator(); + while (it.hasNext()) { + writableDatabase.delete(this.c, "name = ?", new String[]{it.next()}); + } + writableDatabase.setTransactionSuccessful(); + } finally { + writableDatabase.endTransaction(); + } + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } + + @WorkerThread + public void d(String str, long j, long j2) throws DatabaseIOException { + Objects.requireNonNull(this.c); + try { + SQLiteDatabase writableDatabase = this.f915b.getWritableDatabase(); + ContentValues contentValues = new ContentValues(); + contentValues.put(ModelAuditLogEntry.CHANGE_KEY_NAME, str); + contentValues.put("length", Long.valueOf(j)); + contentValues.put("last_touch_timestamp", Long.valueOf(j2)); + writableDatabase.replaceOrThrow(this.c, null, contentValues); + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/g.java b/app/src/main/java/b/i/a/c/e3/b0/g.java new file mode 100644 index 0000000000..8c30d45d62 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/g.java @@ -0,0 +1,5 @@ +package b.i.a.c.e3.b0; +/* compiled from: CacheKeyFactory */ +public interface g { + public static final /* synthetic */ int a = 0; +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/h.java b/app/src/main/java/b/i/a/c/e3/b0/h.java new file mode 100644 index 0000000000..9d76d877e7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/h.java @@ -0,0 +1,42 @@ +package b.i.a.c.e3.b0; + +import androidx.annotation.Nullable; +import b.d.b.a.a; +import java.io.File; +/* compiled from: CacheSpan */ +public class h implements Comparable { + public final String j; + public final long k; + public final long l; + public final boolean m; + @Nullable + public final File n; + public final long o; + + public h(String str, long j, long j2, long j3, @Nullable File file) { + this.j = str; + this.k = j; + this.l = j2; + this.m = file != null; + this.n = file; + this.o = j3; + } + + /* renamed from: f */ + public int compareTo(h hVar) { + if (!this.j.equals(hVar.j)) { + return this.j.compareTo(hVar.j); + } + int i = ((this.k - hVar.k) > 0 ? 1 : ((this.k - hVar.k) == 0 ? 0 : -1)); + if (i == 0) { + return 0; + } + return i < 0 ? -1 : 1; + } + + @Override // java.lang.Object + public String toString() { + long j = this.k; + return a.B(a.P(44, "[", j, ", "), this.l, "]"); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/i.java b/app/src/main/java/b/i/a/c/e3/b0/i.java new file mode 100644 index 0000000000..4b8384e294 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/i.java @@ -0,0 +1,80 @@ +package b.i.a.c.e3.b0; + +import androidx.annotation.Nullable; +import java.util.ArrayList; +import java.util.TreeSet; +/* compiled from: CachedContent */ +public final class i { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final String f916b; + public final TreeSet c = new TreeSet<>(); + public final ArrayList d = new ArrayList<>(); + public n e; + + /* compiled from: CachedContent */ + public static final class a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f917b; + + public a(long j, long j2) { + this.a = j; + this.f917b = j2; + } + } + + public i(int i, String str, n nVar) { + this.a = i; + this.f916b = str; + this.e = nVar; + } + + /* JADX WARNING: Code restructure failed: missing block: B:14:0x0035, code lost: + if ((r11 + r13) <= (r5 + r3)) goto L_0x0021; + */ + /* JADX WARNING: Code restructure failed: missing block: B:6:0x001f, code lost: + if (r11 >= r2.a) goto L_0x0021; + */ + /* JADX WARNING: Removed duplicated region for block: B:17:0x003b A[LOOP:0: B:1:0x0002->B:17:0x003b, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:20:0x003a A[SYNTHETIC] */ + public boolean a(long j, long j2) { + boolean z2; + for (int i = 0; i < this.d.size(); i++) { + a aVar = this.d.get(i); + long j3 = aVar.f917b; + if (j3 != -1) { + if (j2 != -1) { + long j4 = aVar.a; + if (j4 <= j) { + } + } + z2 = false; + if (!z2) { + return true; + } + } + z2 = true; + if (!z2) { + } + } + return false; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || i.class != obj.getClass()) { + return false; + } + i iVar = (i) obj; + return this.a == iVar.a && this.f916b.equals(iVar.f916b) && this.c.equals(iVar.c) && this.e.equals(iVar.e); + } + + public int hashCode() { + return this.e.hashCode() + b.d.b.a.a.m(this.f916b, this.a * 31, 31); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/j.java b/app/src/main/java/b/i/a/c/e3/b0/j.java new file mode 100644 index 0000000000..9cfa5a3c57 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/j.java @@ -0,0 +1,679 @@ +package b.i.a.c.e3.b0; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.util.SparseArray; +import android.util.SparseBooleanArray; +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import b.i.a.c.f3.e; +import b.i.a.c.f3.e0; +import b.i.a.c.u2.d; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.exoplayer2.database.DatabaseIOException; +import java.io.BufferedInputStream; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.File; +import java.io.IOException; +import java.io.OutputStream; +import java.security.InvalidAlgorithmParameterException; +import java.security.InvalidKeyException; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import javax.crypto.Cipher; +import javax.crypto.CipherInputStream; +import javax.crypto.CipherOutputStream; +import javax.crypto.NoSuchPaddingException; +import javax.crypto.spec.IvParameterSpec; +import javax.crypto.spec.SecretKeySpec; +/* compiled from: CachedContentIndex */ +public class j { + public final HashMap a; + + /* renamed from: b reason: collision with root package name */ + public final SparseArray f918b; + public final SparseBooleanArray c; + public final SparseBooleanArray d; + public c e; + @Nullable + public c f; + + /* compiled from: CachedContentIndex */ + public static final class a implements c { + public static final String[] a = {ModelAuditLogEntry.CHANGE_KEY_ID, "key", "metadata"}; + + /* renamed from: b reason: collision with root package name */ + public final b.i.a.c.u2.a f919b; + public final SparseArray c = new SparseArray<>(); + public String d; + public String e; + + public a(b.i.a.c.u2.a aVar) { + this.f919b = aVar; + } + + public static void j(SQLiteDatabase sQLiteDatabase, String str) { + String valueOf = String.valueOf(str); + sQLiteDatabase.execSQL(valueOf.length() != 0 ? "DROP TABLE IF EXISTS ".concat(valueOf) : new String("DROP TABLE IF EXISTS ")); + } + + public static String k(String str) { + String valueOf = String.valueOf(str); + return valueOf.length() != 0 ? "ExoPlayerCacheIndex".concat(valueOf) : new String("ExoPlayerCacheIndex"); + } + + @Override // b.i.a.c.e3.b0.j.c + public void a(i iVar, boolean z2) { + if (z2) { + this.c.delete(iVar.a); + } else { + this.c.put(iVar.a, null); + } + } + + @Override // b.i.a.c.e3.b0.j.c + public void b(HashMap hashMap) throws IOException { + try { + SQLiteDatabase writableDatabase = this.f919b.getWritableDatabase(); + writableDatabase.beginTransactionNonExclusive(); + try { + l(writableDatabase); + for (i iVar : hashMap.values()) { + i(writableDatabase, iVar); + } + writableDatabase.setTransactionSuccessful(); + this.c.clear(); + } finally { + writableDatabase.endTransaction(); + } + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } + + @Override // b.i.a.c.e3.b0.j.c + public void c(i iVar) { + this.c.put(iVar.a, iVar); + } + + @Override // b.i.a.c.e3.b0.j.c + public boolean d() throws DatabaseIOException { + SQLiteDatabase readableDatabase = this.f919b.getReadableDatabase(); + String str = this.d; + Objects.requireNonNull(str); + return d.a(readableDatabase, 1, str) != -1; + } + + @Override // b.i.a.c.e3.b0.j.c + public void e(HashMap hashMap) throws IOException { + if (this.c.size() != 0) { + try { + SQLiteDatabase writableDatabase = this.f919b.getWritableDatabase(); + writableDatabase.beginTransactionNonExclusive(); + for (int i = 0; i < this.c.size(); i++) { + try { + i valueAt = this.c.valueAt(i); + if (valueAt == null) { + int keyAt = this.c.keyAt(i); + String str = this.e; + Objects.requireNonNull(str); + writableDatabase.delete(str, "id = ?", new String[]{Integer.toString(keyAt)}); + } else { + i(writableDatabase, valueAt); + } + } finally { + writableDatabase.endTransaction(); + } + } + writableDatabase.setTransactionSuccessful(); + this.c.clear(); + writableDatabase.endTransaction(); + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } + } + + @Override // b.i.a.c.e3.b0.j.c + public void f(long j) { + String hexString = Long.toHexString(j); + this.d = hexString; + this.e = k(hexString); + } + + @Override // b.i.a.c.e3.b0.j.c + public void g(HashMap hashMap, SparseArray sparseArray) throws IOException { + b.c.a.a0.d.D(this.c.size() == 0); + try { + SQLiteDatabase readableDatabase = this.f919b.getReadableDatabase(); + String str = this.d; + Objects.requireNonNull(str); + if (d.a(readableDatabase, 1, str) != 1) { + SQLiteDatabase writableDatabase = this.f919b.getWritableDatabase(); + writableDatabase.beginTransactionNonExclusive(); + try { + l(writableDatabase); + writableDatabase.setTransactionSuccessful(); + } finally { + writableDatabase.endTransaction(); + } + } + SQLiteDatabase readableDatabase2 = this.f919b.getReadableDatabase(); + String str2 = this.e; + Objects.requireNonNull(str2); + Cursor query = readableDatabase2.query(str2, a, null, null, null, null, null); + while (query.moveToNext()) { + try { + int i = query.getInt(0); + String string = query.getString(1); + Objects.requireNonNull(string); + hashMap.put(string, new i(i, string, j.a(new DataInputStream(new ByteArrayInputStream(query.getBlob(2)))))); + sparseArray.put(i, string); + } catch (Throwable th) { + th.addSuppressed(th); + } + } + query.close(); + return; + throw th; + } catch (SQLiteException e) { + hashMap.clear(); + sparseArray.clear(); + throw new DatabaseIOException(e); + } + } + + @Override // b.i.a.c.e3.b0.j.c + public void h() throws DatabaseIOException { + b.i.a.c.u2.a aVar = this.f919b; + String str = this.d; + Objects.requireNonNull(str); + try { + String k = k(str); + SQLiteDatabase writableDatabase = aVar.getWritableDatabase(); + writableDatabase.beginTransactionNonExclusive(); + try { + int i = d.a; + try { + if (e0.J(writableDatabase, "ExoPlayerVersions")) { + writableDatabase.delete("ExoPlayerVersions", "feature = ? AND instance_uid = ?", new String[]{Integer.toString(1), str}); + } + j(writableDatabase, k); + writableDatabase.setTransactionSuccessful(); + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } finally { + writableDatabase.endTransaction(); + } + } catch (SQLException e2) { + throw new DatabaseIOException(e2); + } + } + + public final void i(SQLiteDatabase sQLiteDatabase, i iVar) throws IOException { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + j.b(iVar.e, new DataOutputStream(byteArrayOutputStream)); + byte[] byteArray = byteArrayOutputStream.toByteArray(); + ContentValues contentValues = new ContentValues(); + contentValues.put(ModelAuditLogEntry.CHANGE_KEY_ID, Integer.valueOf(iVar.a)); + contentValues.put("key", iVar.f916b); + contentValues.put("metadata", byteArray); + String str = this.e; + Objects.requireNonNull(str); + sQLiteDatabase.replaceOrThrow(str, null, contentValues); + } + + public final void l(SQLiteDatabase sQLiteDatabase) throws DatabaseIOException { + String str = this.d; + Objects.requireNonNull(str); + d.b(sQLiteDatabase, 1, str, 1); + String str2 = this.e; + Objects.requireNonNull(str2); + j(sQLiteDatabase, str2); + String str3 = this.e; + sQLiteDatabase.execSQL(b.d.b.a.a.k(b.d.b.a.a.b(str3, 88), "CREATE TABLE ", str3, " ", "(id INTEGER PRIMARY KEY NOT NULL,key TEXT NOT NULL,metadata BLOB NOT NULL)")); + } + } + + /* compiled from: CachedContentIndex */ + public static class b implements c { + public final boolean a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final Cipher f920b; + @Nullable + public final SecretKeySpec c; + @Nullable + public final SecureRandom d; + public final e e; + public boolean f; + @Nullable + public p g; + + public b(File file, @Nullable byte[] bArr, boolean z2) { + SecretKeySpec secretKeySpec; + Cipher cipher; + boolean z3 = false; + b.c.a.a0.d.D(bArr != null || !z2); + SecureRandom secureRandom = null; + if (bArr != null) { + b.c.a.a0.d.j(bArr.length == 16 ? true : z3); + try { + if (e0.a == 18) { + try { + cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING", "BC"); + } catch (Throwable unused) { + } + secretKeySpec = new SecretKeySpec(bArr, "AES"); + } + cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING"); + secretKeySpec = new SecretKeySpec(bArr, "AES"); + } catch (NoSuchAlgorithmException | NoSuchPaddingException e) { + throw new IllegalStateException(e); + } + } else { + b.c.a.a0.d.j(!z2); + cipher = null; + secretKeySpec = null; + } + this.a = z2; + this.f920b = cipher; + this.c = secretKeySpec; + this.d = z2 ? new SecureRandom() : secureRandom; + this.e = new e(file); + } + + @Override // b.i.a.c.e3.b0.j.c + public void a(i iVar, boolean z2) { + this.f = true; + } + + /* JADX WARNING: Removed duplicated region for block: B:33:0x00b3 A[SYNTHETIC, Splitter:B:33:0x00b3] */ + @Override // b.i.a.c.e3.b0.j.c + public void b(HashMap hashMap) throws IOException { + Throwable th; + DataOutputStream dataOutputStream = null; + try { + OutputStream c = this.e.c(); + p pVar = this.g; + if (pVar == null) { + this.g = new p(c); + } else { + pVar.a(c); + } + p pVar2 = this.g; + DataOutputStream dataOutputStream2 = new DataOutputStream(pVar2); + try { + dataOutputStream2.writeInt(2); + dataOutputStream2.writeInt(this.a ? 1 : 0); + if (this.a) { + byte[] bArr = new byte[16]; + SecureRandom secureRandom = this.d; + int i = e0.a; + secureRandom.nextBytes(bArr); + dataOutputStream2.write(bArr); + try { + this.f920b.init(1, this.c, new IvParameterSpec(bArr)); + dataOutputStream2.flush(); + dataOutputStream2 = new DataOutputStream(new CipherOutputStream(pVar2, this.f920b)); + } catch (InvalidAlgorithmParameterException | InvalidKeyException e) { + throw new IllegalStateException(e); + } + } + dataOutputStream2.writeInt(hashMap.size()); + int i2 = 0; + for (i iVar : hashMap.values()) { + dataOutputStream2.writeInt(iVar.a); + dataOutputStream2.writeUTF(iVar.f916b); + j.b(iVar.e, dataOutputStream2); + i2 += i(iVar, 2); + } + dataOutputStream2.writeInt(i2); + e eVar = this.e; + Objects.requireNonNull(eVar); + dataOutputStream2.close(); + eVar.f953b.delete(); + int i3 = e0.a; + this.f = false; + } catch (Throwable th2) { + th = th2; + dataOutputStream = dataOutputStream2; + int i4 = e0.a; + if (dataOutputStream != null) { + try { + dataOutputStream.close(); + } catch (IOException unused) { + } + } + throw th; + } + } catch (Throwable th3) { + th = th3; + int i4 = e0.a; + if (dataOutputStream != null) { + } + throw th; + } + } + + @Override // b.i.a.c.e3.b0.j.c + public void c(i iVar) { + this.f = true; + } + + @Override // b.i.a.c.e3.b0.j.c + public boolean d() { + return this.e.a(); + } + + @Override // b.i.a.c.e3.b0.j.c + public void e(HashMap hashMap) throws IOException { + if (this.f) { + b(hashMap); + } + } + + @Override // b.i.a.c.e3.b0.j.c + public void f(long j) { + } + + /* JADX WARNING: Removed duplicated region for block: B:48:0x00b6 */ + /* JADX WARNING: Removed duplicated region for block: B:55:0x00bf */ + /* JADX WARNING: Removed duplicated region for block: B:59:0x00c7 */ + /* JADX WARNING: Removed duplicated region for block: B:62:? A[RETURN, SYNTHETIC] */ + @Override // b.i.a.c.e3.b0.j.c + public void g(HashMap hashMap, SparseArray sparseArray) { + Throwable th; + boolean z2 = true; + b.c.a.a0.d.D(!this.f); + if (this.e.a()) { + DataInputStream dataInputStream = null; + try { + BufferedInputStream bufferedInputStream = new BufferedInputStream(this.e.b()); + DataInputStream dataInputStream2 = new DataInputStream(bufferedInputStream); + try { + int readInt = dataInputStream2.readInt(); + if (readInt >= 0) { + if (readInt <= 2) { + if ((dataInputStream2.readInt() & 1) != 0) { + if (this.f920b != null) { + byte[] bArr = new byte[16]; + dataInputStream2.readFully(bArr); + IvParameterSpec ivParameterSpec = new IvParameterSpec(bArr); + try { + Cipher cipher = this.f920b; + SecretKeySpec secretKeySpec = this.c; + int i = e0.a; + cipher.init(2, secretKeySpec, ivParameterSpec); + dataInputStream2 = new DataInputStream(new CipherInputStream(bufferedInputStream, this.f920b)); + } catch (InvalidAlgorithmParameterException | InvalidKeyException e) { + throw new IllegalStateException(e); + } + } + } else if (this.a) { + this.f = true; + } + int readInt2 = dataInputStream2.readInt(); + int i2 = 0; + for (int i3 = 0; i3 < readInt2; i3++) { + i j = j(readInt, dataInputStream2); + hashMap.put(j.f916b, j); + sparseArray.put(j.a, j.f916b); + i2 += i(j, readInt); + } + int readInt3 = dataInputStream2.readInt(); + boolean z3 = dataInputStream2.read() == -1; + if (readInt3 == i2 && z3) { + int i4 = e0.a; + try { + dataInputStream2.close(); + } catch (IOException unused) { + } + } + } + } + int i5 = e0.a; + try { + dataInputStream2.close(); + } catch (IOException unused2) { + } + } catch (IOException unused3) { + dataInputStream = dataInputStream2; + if (dataInputStream != null) { + } + z2 = false; + if (!z2) { + } + } catch (Throwable th2) { + th = th2; + dataInputStream = dataInputStream2; + if (dataInputStream != null) { + } + throw th; + } + } catch (IOException unused4) { + if (dataInputStream != null) { + int i6 = e0.a; + dataInputStream.close(); + } + z2 = false; + if (!z2) { + } + } catch (Throwable th3) { + th = th3; + if (dataInputStream != null) { + int i7 = e0.a; + try { + dataInputStream.close(); + } catch (IOException unused5) { + } + } + throw th; + } + z2 = false; + } + if (!z2) { + hashMap.clear(); + sparseArray.clear(); + e eVar = this.e; + eVar.a.delete(); + eVar.f953b.delete(); + } + } + + @Override // b.i.a.c.e3.b0.j.c + public void h() { + e eVar = this.e; + eVar.a.delete(); + eVar.f953b.delete(); + } + + public final int i(i iVar, int i) { + int hashCode = iVar.f916b.hashCode() + (iVar.a * 31); + if (i >= 2) { + return (hashCode * 31) + iVar.e.hashCode(); + } + long a = k.a(iVar.e); + return (hashCode * 31) + ((int) (a ^ (a >>> 32))); + } + + public final i j(int i, DataInputStream dataInputStream) throws IOException { + n nVar; + int readInt = dataInputStream.readInt(); + String readUTF = dataInputStream.readUTF(); + if (i < 2) { + long readLong = dataInputStream.readLong(); + m mVar = new m(); + m.a(mVar, readLong); + nVar = n.a.a(mVar); + } else { + nVar = j.a(dataInputStream); + } + return new i(readInt, readUTF, nVar); + } + } + + /* compiled from: CachedContentIndex */ + public interface c { + void a(i iVar, boolean z2); + + void b(HashMap hashMap) throws IOException; + + void c(i iVar); + + boolean d() throws IOException; + + void e(HashMap hashMap) throws IOException; + + void f(long j); + + void g(HashMap hashMap, SparseArray sparseArray) throws IOException; + + void h() throws IOException; + } + + public j(@Nullable b.i.a.c.u2.a aVar, @Nullable File file, @Nullable byte[] bArr, boolean z2, boolean z3) { + b.c.a.a0.d.D((aVar == null && file == null) ? false : true); + this.a = new HashMap<>(); + this.f918b = new SparseArray<>(); + this.c = new SparseBooleanArray(); + this.d = new SparseBooleanArray(); + b bVar = null; + a aVar2 = aVar != null ? new a(aVar) : null; + bVar = file != null ? new b(new File(file, "cached_content_index.exi"), bArr, z2) : bVar; + if (aVar2 == null || (bVar != null && z3)) { + int i = e0.a; + this.e = bVar; + this.f = aVar2; + return; + } + this.e = aVar2; + this.f = bVar; + } + + public static n a(DataInputStream dataInputStream) throws IOException { + int readInt = dataInputStream.readInt(); + HashMap hashMap = new HashMap(); + for (int i = 0; i < readInt; i++) { + String readUTF = dataInputStream.readUTF(); + int readInt2 = dataInputStream.readInt(); + if (readInt2 >= 0) { + int min = Math.min(readInt2, 10485760); + byte[] bArr = e0.f; + int i2 = 0; + while (i2 != readInt2) { + int i3 = i2 + min; + bArr = Arrays.copyOf(bArr, i3); + dataInputStream.readFully(bArr, i2, min); + min = Math.min(readInt2 - i3, 10485760); + i2 = i3; + } + hashMap.put(readUTF, bArr); + } else { + throw new IOException(b.d.b.a.a.f(31, "Invalid value size: ", readInt2)); + } + } + return new n(hashMap); + } + + public static void b(n nVar, DataOutputStream dataOutputStream) throws IOException { + Set> entrySet = nVar.c.entrySet(); + dataOutputStream.writeInt(entrySet.size()); + for (Map.Entry entry : entrySet) { + dataOutputStream.writeUTF(entry.getKey()); + byte[] value = entry.getValue(); + dataOutputStream.writeInt(value.length); + dataOutputStream.write(value); + } + } + + @Nullable + public i c(String str) { + return this.a.get(str); + } + + public i d(String str) { + i iVar = this.a.get(str); + if (iVar != null) { + return iVar; + } + SparseArray sparseArray = this.f918b; + int size = sparseArray.size(); + int i = 0; + int keyAt = size == 0 ? 0 : sparseArray.keyAt(size - 1) + 1; + if (keyAt < 0) { + while (i < size && i == sparseArray.keyAt(i)) { + i++; + } + keyAt = i; + } + i iVar2 = new i(keyAt, str, n.a); + this.a.put(str, iVar2); + this.f918b.put(keyAt, str); + this.d.put(keyAt, true); + this.e.c(iVar2); + return iVar2; + } + + @WorkerThread + public void e(long j) throws IOException { + c cVar; + this.e.f(j); + c cVar2 = this.f; + if (cVar2 != null) { + cVar2.f(j); + } + if (this.e.d() || (cVar = this.f) == null || !cVar.d()) { + this.e.g(this.a, this.f918b); + } else { + this.f.g(this.a, this.f918b); + this.e.b(this.a); + } + c cVar3 = this.f; + if (cVar3 != null) { + cVar3.h(); + this.f = null; + } + } + + public void f(String str) { + i iVar = this.a.get(str); + if (iVar != null && iVar.c.isEmpty() && iVar.d.isEmpty()) { + this.a.remove(str); + int i = iVar.a; + boolean z2 = this.d.get(i); + this.e.a(iVar, z2); + if (z2) { + this.f918b.remove(i); + this.d.delete(i); + return; + } + this.f918b.put(i, null); + this.c.put(i, true); + } + } + + @WorkerThread + public void g() throws IOException { + this.e.e(this.a); + int size = this.c.size(); + for (int i = 0; i < size; i++) { + this.f918b.remove(this.c.keyAt(i)); + } + this.c.clear(); + this.d.clear(); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/k.java b/app/src/main/java/b/i/a/c/e3/b0/k.java new file mode 100644 index 0000000000..e5a836d79f --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/k.java @@ -0,0 +1,13 @@ +package b.i.a.c.e3.b0; + +import java.nio.ByteBuffer; +/* compiled from: ContentMetadata */ +public final /* synthetic */ class k { + public static long a(l lVar) { + byte[] bArr = ((n) lVar).c.get("exo_len"); + if (bArr != null) { + return ByteBuffer.wrap(bArr).getLong(); + } + return -1; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/l.java b/app/src/main/java/b/i/a/c/e3/b0/l.java new file mode 100644 index 0000000000..0c5c4478ea --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/l.java @@ -0,0 +1,4 @@ +package b.i.a.c.e3.b0; +/* compiled from: ContentMetadata */ +public interface l { +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/m.java b/app/src/main/java/b/i/a/c/e3/b0/m.java new file mode 100644 index 0000000000..4c7c03cea9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/m.java @@ -0,0 +1,23 @@ +package b.i.a.c.e3.b0; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: ContentMetadataMutations */ +public class m { + public final Map a = new HashMap(); + + /* renamed from: b reason: collision with root package name */ + public final List f921b = new ArrayList(); + + public static m a(m mVar, long j) { + Long valueOf = Long.valueOf(j); + Map map = mVar.a; + Objects.requireNonNull(valueOf); + map.put("exo_len", valueOf); + mVar.f921b.remove("exo_len"); + return mVar; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/n.java b/app/src/main/java/b/i/a/c/e3/b0/n.java new file mode 100644 index 0000000000..3ada3baf4c --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/n.java @@ -0,0 +1,94 @@ +package b.i.a.c.e3.b0; + +import androidx.annotation.Nullable; +import b.i.b.a.c; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: DefaultContentMetadata */ +public final class n implements l { + public static final n a = new n(Collections.emptyMap()); + + /* renamed from: b reason: collision with root package name */ + public int f922b; + public final Map c; + + public n() { + this(Collections.emptyMap()); + } + + public n(Map map) { + this.c = Collections.unmodifiableMap(map); + } + + public static boolean b(Map map, Map map2) { + if (map.size() != map2.size()) { + return false; + } + for (Map.Entry entry : map.entrySet()) { + if (!Arrays.equals(entry.getValue(), map2.get(entry.getKey()))) { + return false; + } + } + return true; + } + + public n a(m mVar) { + byte[] bArr; + HashMap hashMap = new HashMap(this.c); + Objects.requireNonNull(mVar); + List unmodifiableList = Collections.unmodifiableList(new ArrayList(mVar.f921b)); + for (int i = 0; i < unmodifiableList.size(); i++) { + hashMap.remove(unmodifiableList.get(i)); + } + HashMap hashMap2 = new HashMap(mVar.a); + for (Map.Entry entry : hashMap2.entrySet()) { + Object value = entry.getValue(); + if (value instanceof byte[]) { + byte[] bArr2 = (byte[]) value; + entry.setValue(Arrays.copyOf(bArr2, bArr2.length)); + } + } + for (Map.Entry entry2 : Collections.unmodifiableMap(hashMap2).entrySet()) { + String str = (String) entry2.getKey(); + Object value2 = entry2.getValue(); + if (value2 instanceof Long) { + bArr = ByteBuffer.allocate(8).putLong(((Long) value2).longValue()).array(); + } else if (value2 instanceof String) { + bArr = ((String) value2).getBytes(c.c); + } else if (value2 instanceof byte[]) { + bArr = (byte[]) value2; + } else { + throw new IllegalArgumentException(); + } + hashMap.put(str, bArr); + } + return b(this.c, hashMap) ? this : new n(hashMap); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || n.class != obj.getClass()) { + return false; + } + return b(this.c, ((n) obj).c); + } + + public int hashCode() { + if (this.f922b == 0) { + int i = 0; + for (Map.Entry entry : this.c.entrySet()) { + i += Arrays.hashCode(entry.getValue()) ^ entry.getKey().hashCode(); + } + this.f922b = i; + } + return this.f922b; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/o.java b/app/src/main/java/b/i/a/c/e3/b0/o.java new file mode 100644 index 0000000000..142302884f --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/o.java @@ -0,0 +1,51 @@ +package b.i.a.c.e3.b0; + +import com.google.android.exoplayer2.upstream.cache.Cache; +import java.util.TreeSet; +/* compiled from: LeastRecentlyUsedCacheEvictor */ +public final class o implements d { + public final TreeSet a = new TreeSet<>(b.j); + + /* renamed from: b reason: collision with root package name */ + public long f923b; + + public o(long j) { + } + + @Override // b.i.a.c.e3.b0.d + public void a(Cache cache, String str, long j, long j2) { + if (j2 != -1) { + f(cache, j2); + } + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache.a + public void b(Cache cache, h hVar) { + this.a.remove(hVar); + this.f923b -= hVar.l; + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache.a + public void c(Cache cache, h hVar, h hVar2) { + this.a.remove(hVar); + this.f923b -= hVar.l; + d(cache, hVar2); + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache.a + public void d(Cache cache, h hVar) { + this.a.add(hVar); + this.f923b += hVar.l; + f(cache, 0); + } + + @Override // b.i.a.c.e3.b0.d + public void e() { + } + + public final void f(Cache cache, long j) { + while (this.f923b + j > 104857600 && !this.a.isEmpty()) { + cache.d(this.a.first()); + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/p.java b/app/src/main/java/b/i/a/c/e3/b0/p.java new file mode 100644 index 0000000000..c2faa16042 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/p.java @@ -0,0 +1,49 @@ +package b.i.a.c.e3.b0; + +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import java.io.BufferedOutputStream; +import java.io.IOException; +import java.io.OutputStream; +/* compiled from: ReusableBufferedOutputStream */ +public final class p extends BufferedOutputStream { + public boolean j; + + public p(OutputStream outputStream) { + super(outputStream); + } + + public p(OutputStream outputStream, int i) { + super(outputStream, i); + } + + public void a(OutputStream outputStream) { + d.D(this.j); + ((BufferedOutputStream) this).out = outputStream; + ((BufferedOutputStream) this).count = 0; + this.j = false; + } + + @Override // java.io.OutputStream, java.io.Closeable, java.io.FilterOutputStream, java.lang.AutoCloseable + public void close() throws IOException { + Throwable th; + this.j = true; + try { + flush(); + th = null; + } catch (Throwable th2) { + th = th2; + } + try { + ((BufferedOutputStream) this).out.close(); + } catch (Throwable th3) { + if (th == null) { + th = th3; + } + } + if (th != null) { + int i = e0.a; + throw th; + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/q.java b/app/src/main/java/b/i/a/c/e3/b0/q.java new file mode 100644 index 0000000000..a277314d91 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/q.java @@ -0,0 +1,24 @@ +package b.i.a.c.e3.b0; + +import android.os.ConditionVariable; +/* compiled from: SimpleCache */ +public class q extends Thread { + public final /* synthetic */ ConditionVariable j; + public final /* synthetic */ r k; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public q(r rVar, String str, ConditionVariable conditionVariable) { + super(str); + this.k = rVar; + this.j = conditionVariable; + } + + @Override // java.lang.Thread, java.lang.Runnable + public void run() { + synchronized (this.k) { + this.j.open(); + r.j(this.k); + this.k.c.e(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/r.java b/app/src/main/java/b/i/a/c/e3/b0/r.java new file mode 100644 index 0000000000..e37985e012 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/r.java @@ -0,0 +1,582 @@ +package b.i.a.c.e3.b0; + +import android.database.SQLException; +import android.os.ConditionVariable; +import android.util.Log; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.e3.b0.i; +import b.i.a.c.f3.q; +import b.i.a.c.u2.a; +import com.google.android.exoplayer2.database.DatabaseIOException; +import com.google.android.exoplayer2.upstream.cache.Cache; +import java.io.File; +import java.io.IOException; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.Random; +/* compiled from: SimpleCache */ +public final class r implements Cache { + public static final HashSet a = new HashSet<>(); + + /* renamed from: b reason: collision with root package name */ + public final File f924b; + public final d c; + public final j d; + @Nullable + public final f e; + public final HashMap> f; + public final Random g; + public final boolean h; + public long i; + public long j; + public Cache.CacheException k; + + public r(File file, d dVar, a aVar) { + boolean add; + j jVar = new j(aVar, file, null, false, false); + f fVar = new f(aVar); + synchronized (r.class) { + add = a.add(file.getAbsoluteFile()); + } + if (add) { + this.f924b = file; + this.c = dVar; + this.d = jVar; + this.e = fVar; + this.f = new HashMap<>(); + this.g = new Random(); + this.h = true; + this.i = -1; + ConditionVariable conditionVariable = new ConditionVariable(); + new q(this, "ExoPlayer:SimpleCacheInit", conditionVariable).start(); + conditionVariable.block(); + return; + } + String valueOf = String.valueOf(file); + throw new IllegalStateException(b.d.b.a.a.i(valueOf.length() + 46, "Another SimpleCache instance uses the folder: ", valueOf)); + } + + public static void j(r rVar) { + long j; + if (!rVar.f924b.exists()) { + try { + m(rVar.f924b); + } catch (Cache.CacheException e) { + rVar.k = e; + return; + } + } + File[] listFiles = rVar.f924b.listFiles(); + if (listFiles == null) { + String valueOf = String.valueOf(rVar.f924b); + StringBuilder sb = new StringBuilder(valueOf.length() + 38); + sb.append("Failed to list cache directory files: "); + sb.append(valueOf); + String sb2 = sb.toString(); + Log.e("SimpleCache", sb2); + rVar.k = new Cache.CacheException(sb2); + return; + } + int length = listFiles.length; + int i = 0; + while (true) { + if (i >= length) { + j = -1; + break; + } + File file = listFiles[i]; + String name = file.getName(); + if (name.endsWith(".uid")) { + try { + j = Long.parseLong(name.substring(0, name.indexOf(46)), 16); + break; + } catch (NumberFormatException unused) { + String valueOf2 = String.valueOf(file); + StringBuilder sb3 = new StringBuilder(valueOf2.length() + 20); + sb3.append("Malformed UID file: "); + sb3.append(valueOf2); + Log.e("SimpleCache", sb3.toString()); + file.delete(); + } + } else { + i++; + } + } + rVar.i = j; + if (j == -1) { + try { + rVar.i = n(rVar.f924b); + } catch (IOException e2) { + String valueOf3 = String.valueOf(rVar.f924b); + StringBuilder sb4 = new StringBuilder(valueOf3.length() + 28); + sb4.append("Failed to create cache UID: "); + sb4.append(valueOf3); + String sb5 = sb4.toString(); + q.b("SimpleCache", sb5, e2); + rVar.k = new Cache.CacheException(sb5, e2); + return; + } + } + try { + rVar.d.e(rVar.i); + f fVar = rVar.e; + if (fVar != null) { + fVar.b(rVar.i); + Map a2 = rVar.e.a(); + rVar.p(rVar.f924b, true, listFiles, a2); + rVar.e.c(((HashMap) a2).keySet()); + } else { + rVar.p(rVar.f924b, true, listFiles, null); + } + j jVar = rVar.d; + Iterator j2 = b.i.b.b.r.m(jVar.a.keySet()).iterator(); + while (j2.hasNext()) { + jVar.f((String) j2.next()); + } + try { + rVar.d.g(); + } catch (IOException e3) { + q.b("SimpleCache", "Storing index file failed", e3); + } + } catch (IOException e4) { + String valueOf4 = String.valueOf(rVar.f924b); + StringBuilder sb6 = new StringBuilder(valueOf4.length() + 36); + sb6.append("Failed to initialize cache indices: "); + sb6.append(valueOf4); + String sb7 = sb6.toString(); + q.b("SimpleCache", sb7, e4); + rVar.k = new Cache.CacheException(sb7, e4); + } + } + + public static void m(File file) throws Cache.CacheException { + if (!file.mkdirs() && !file.isDirectory()) { + String valueOf = String.valueOf(file); + StringBuilder sb = new StringBuilder(valueOf.length() + 34); + sb.append("Failed to create cache directory: "); + sb.append(valueOf); + String sb2 = sb.toString(); + Log.e("SimpleCache", sb2); + throw new Cache.CacheException(sb2); + } + } + + public static long n(File file) throws IOException { + long nextLong = new SecureRandom().nextLong(); + long abs = nextLong == Long.MIN_VALUE ? 0 : Math.abs(nextLong); + String valueOf = String.valueOf(Long.toString(abs, 16)); + File file2 = new File(file, ".uid".length() != 0 ? valueOf.concat(".uid") : new String(valueOf)); + if (file2.createNewFile()) { + return abs; + } + String valueOf2 = String.valueOf(file2); + throw new IOException(b.d.b.a.a.i(valueOf2.length() + 27, "Failed to create UID file: ", valueOf2)); + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache + public synchronized File a(String str, long j, long j2) throws Cache.CacheException { + i iVar; + File file; + d.D(true); + l(); + iVar = this.d.a.get(str); + Objects.requireNonNull(iVar); + d.D(iVar.a(j, j2)); + if (!this.f924b.exists()) { + m(this.f924b); + r(); + } + this.c.a(this, str, j, j2); + file = new File(this.f924b, Integer.toString(this.g.nextInt(10))); + if (!file.exists()) { + m(file); + } + return s.h(file, iVar.a, j, System.currentTimeMillis()); + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache + public synchronized l b(String str) { + i iVar; + d.D(true); + iVar = this.d.a.get(str); + return iVar != null ? iVar.e : n.a; + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache + public synchronized void c(String str, m mVar) throws Cache.CacheException { + d.D(true); + l(); + j jVar = this.d; + i d = jVar.d(str); + n nVar = d.e; + n a2 = nVar.a(mVar); + d.e = a2; + if (!a2.equals(nVar)) { + jVar.e.c(d); + } + try { + this.d.g(); + } catch (IOException e) { + throw new Cache.CacheException(e); + } + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache + public synchronized void d(h hVar) { + d.D(true); + q(hVar); + } + + /* JADX WARNING: Code restructure failed: missing block: B:17:0x0049, code lost: + if ((r11 + r4) <= r18) goto L_0x0059; + */ + /* JADX WARNING: Code restructure failed: missing block: B:21:0x0056, code lost: + if ((r18 + r6) <= r11) goto L_0x0059; + */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x0060 A[LOOP:0: B:10:0x0026->B:26:0x0060, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x005e A[SYNTHETIC] */ + @Override // com.google.android.exoplayer2.upstream.cache.Cache + @Nullable + public synchronized h e(String str, long j, long j2) throws Cache.CacheException { + s sVar; + boolean z2; + boolean z3; + d.D(true); + l(); + s o = o(str, j, j2); + if (o.m) { + return s(str, o); + } + i d = this.d.d(str); + long j3 = o.l; + int i = 0; + while (true) { + if (i >= d.d.size()) { + sVar = o; + d.d.add(new i.a(j, j3)); + z2 = true; + break; + } + i.a aVar = d.d.get(i); + long j4 = aVar.a; + if (j4 <= j) { + sVar = o; + long j5 = aVar.f917b; + if (j5 != -1) { + } + z3 = true; + if (z3) { + z2 = false; + break; + } + i++; + o = sVar; + } else { + sVar = o; + if (j3 != -1) { + } + z3 = true; + if (z3) { + } + } + z3 = false; + if (z3) { + } + } + if (z2) { + return sVar; + } + return null; + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache + public synchronized h f(String str, long j, long j2) throws InterruptedException, Cache.CacheException { + h e; + d.D(true); + l(); + while (true) { + e = e(str, j, j2); + if (e == null) { + wait(); + } + } + return e; + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache + public synchronized void g(File file, long j) throws Cache.CacheException { + boolean z2 = true; + d.D(true); + if (file.exists()) { + if (j == 0) { + file.delete(); + return; + } + s g = s.g(file, j, -9223372036854775807L, this.d); + Objects.requireNonNull(g); + i c = this.d.c(g.j); + Objects.requireNonNull(c); + d.D(c.a(g.k, g.l)); + long a2 = k.a(c.e); + if (a2 != -1) { + if (g.k + g.l > a2) { + z2 = false; + } + d.D(z2); + } + if (this.e != null) { + try { + this.e.d(file.getName(), g.l, g.o); + } catch (IOException e) { + throw new Cache.CacheException(e); + } + } + k(g); + try { + this.d.g(); + notifyAll(); + } catch (IOException e2) { + throw new Cache.CacheException(e2); + } + } + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache + public synchronized long h() { + d.D(true); + return this.j; + } + + @Override // com.google.android.exoplayer2.upstream.cache.Cache + public synchronized void i(h hVar) { + d.D(true); + i c = this.d.c(hVar.j); + Objects.requireNonNull(c); + long j = hVar.k; + for (int i = 0; i < c.d.size(); i++) { + if (c.d.get(i).a == j) { + c.d.remove(i); + this.d.f(c.f916b); + notifyAll(); + } + } + throw new IllegalStateException(); + } + + public final void k(s sVar) { + this.d.d(sVar.j).c.add(sVar); + this.j += sVar.l; + ArrayList arrayList = this.f.get(sVar.j); + if (arrayList != null) { + int size = arrayList.size(); + while (true) { + size--; + if (size < 0) { + break; + } + arrayList.get(size).d(this, sVar); + } + } + this.c.d(this, sVar); + } + + public synchronized void l() throws Cache.CacheException { + Cache.CacheException cacheException = this.k; + if (cacheException != null) { + throw cacheException; + } + } + + public final s o(String str, long j, long j2) { + s floor; + long j3; + i iVar = this.d.a.get(str); + if (iVar == null) { + return new s(str, j, j2, -9223372036854775807L, null); + } + while (true) { + s sVar = new s(iVar.f916b, j, -1, -9223372036854775807L, null); + floor = iVar.c.floor(sVar); + if (floor == null || floor.k + floor.l <= j) { + s ceiling = iVar.c.ceiling(sVar); + if (ceiling != null) { + long j4 = ceiling.k - j; + if (j2 != -1) { + j4 = Math.min(j4, j2); + } + j3 = j4; + } else { + j3 = j2; + } + floor = new s(iVar.f916b, j, j3, -9223372036854775807L, null); + } + if (!floor.m || floor.n.length() == floor.l) { + break; + } + r(); + } + return floor; + } + + public final void p(File file, boolean z2, @Nullable File[] fileArr, @Nullable Map map) { + if (fileArr != null && fileArr.length != 0) { + for (File file2 : fileArr) { + String name = file2.getName(); + if (z2 && name.indexOf(46) == -1) { + p(file2, false, file2.listFiles(), map); + } else if (!z2 || (!name.startsWith("cached_content_index.exi") && !name.endsWith(".uid"))) { + long j = -1; + long j2 = -9223372036854775807L; + e remove = map != null ? map.remove(name) : null; + if (remove != null) { + j = remove.a; + j2 = remove.f914b; + } + s g = s.g(file2, j, j2, this.d); + if (g != null) { + k(g); + } else { + file2.delete(); + } + } + } + } else if (!z2) { + file.delete(); + } + } + + public final void q(h hVar) { + boolean z2; + i c = this.d.c(hVar.j); + if (c != null) { + if (c.c.remove(hVar)) { + File file = hVar.n; + if (file != null) { + file.delete(); + } + z2 = true; + } else { + z2 = false; + } + if (z2) { + this.j -= hVar.l; + if (this.e != null) { + String name = hVar.n.getName(); + try { + f fVar = this.e; + Objects.requireNonNull(fVar.c); + try { + fVar.f915b.getWritableDatabase().delete(fVar.c, "name = ?", new String[]{name}); + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } catch (IOException unused) { + String valueOf = String.valueOf(name); + Log.w("SimpleCache", valueOf.length() != 0 ? "Failed to remove file index entry for: ".concat(valueOf) : new String("Failed to remove file index entry for: ")); + } + } + this.d.f(c.f916b); + ArrayList arrayList = this.f.get(hVar.j); + if (arrayList != null) { + int size = arrayList.size(); + while (true) { + size--; + if (size < 0) { + break; + } + arrayList.get(size).b(this, hVar); + } + } + this.c.b(this, hVar); + } + } + } + + public final void r() { + ArrayList arrayList = new ArrayList(); + for (i iVar : Collections.unmodifiableCollection(this.d.a.values())) { + Iterator it = iVar.c.iterator(); + while (it.hasNext()) { + s next = it.next(); + if (next.n.length() != next.l) { + arrayList.add(next); + } + } + } + for (int i = 0; i < arrayList.size(); i++) { + q((h) arrayList.get(i)); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:20:0x00a2 */ + public final s s(String str, s sVar) { + File file; + ArrayList arrayList; + if (!this.h) { + return sVar; + } + File file2 = sVar.n; + Objects.requireNonNull(file2); + String name = file2.getName(); + long j = sVar.l; + long currentTimeMillis = System.currentTimeMillis(); + boolean z2 = false; + f fVar = this.e; + if (fVar != null) { + try { + fVar.d(name, j, currentTimeMillis); + } catch (IOException unused) { + Log.w("SimpleCache", "Failed to update index with new touch timestamp."); + } + } else { + z2 = true; + } + i iVar = this.d.a.get(str); + d.D(iVar.c.remove(sVar)); + File file3 = sVar.n; + Objects.requireNonNull(file3); + if (z2) { + File parentFile = file3.getParentFile(); + Objects.requireNonNull(parentFile); + File h = s.h(parentFile, iVar.a, sVar.k, currentTimeMillis); + if (file3.renameTo(h)) { + file = h; + d.D(sVar.m); + s sVar2 = new s(sVar.j, sVar.k, sVar.l, currentTimeMillis, file); + iVar.c.add(sVar2); + arrayList = this.f.get(sVar.j); + if (arrayList != null) { + int size = arrayList.size(); + while (true) { + size--; + if (size < 0) { + break; + } + arrayList.get(size).c(this, sVar, sVar2); + } + } + this.c.c(this, sVar, sVar2); + return sVar2; + } + String valueOf = String.valueOf(file3); + String valueOf2 = String.valueOf(h); + Log.w("CachedContent", b.d.b.a.a.k(valueOf2.length() + valueOf.length() + 21, "Failed to rename ", valueOf, " to ", valueOf2)); + } + file = file3; + d.D(sVar.m); + s sVar2 = new s(sVar.j, sVar.k, sVar.l, currentTimeMillis, file); + iVar.c.add(sVar2); + arrayList = this.f.get(sVar.j); + if (arrayList != null) { + } + this.c.c(this, sVar, sVar2); + return sVar2; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/b0/s.java b/app/src/main/java/b/i/a/c/e3/b0/s.java new file mode 100644 index 0000000000..767a51c27e --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/b0/s.java @@ -0,0 +1,142 @@ +package b.i.a.c.e3.b0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import java.io.File; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: SimpleCacheSpan */ +public final class s extends h { + public static final Pattern p = Pattern.compile("^(.+)\\.(\\d+)\\.(\\d+)\\.v1\\.exo$", 32); + public static final Pattern q = Pattern.compile("^(.+)\\.(\\d+)\\.(\\d+)\\.v2\\.exo$", 32); + public static final Pattern r = Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)\\.v3\\.exo$", 32); + + public s(String str, long j, long j2, long j3, @Nullable File file) { + super(str, j, j2, j3, file); + } + + /* JADX WARNING: Code restructure failed: missing block: B:28:0x00d1, code lost: + if (r16.renameTo(r1) == false) goto L_0x00a2; + */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x00a4 */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x00d6 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:31:0x00d7 */ + @Nullable + public static s g(File file, long j, long j2, j jVar) { + File file2; + long j3; + String str; + File file3; + String name = file.getName(); + if (!name.endsWith(".v3.exo")) { + String name2 = file.getName(); + Matcher matcher = q.matcher(name2); + if (matcher.matches()) { + str = matcher.group(1); + Objects.requireNonNull(str); + int i = e0.a; + int length = str.length(); + int i2 = 0; + int i3 = 0; + for (int i4 = 0; i4 < length; i4++) { + if (str.charAt(i4) == '%') { + i3++; + } + } + if (i3 != 0) { + int i5 = length - (i3 * 2); + StringBuilder sb = new StringBuilder(i5); + Matcher matcher2 = e0.g.matcher(str); + while (i3 > 0 && matcher2.find()) { + String group = matcher2.group(1); + Objects.requireNonNull(group); + sb.append((CharSequence) str, i2, matcher2.start()); + sb.append((char) Integer.parseInt(group, 16)); + i2 = matcher2.end(); + i3--; + } + if (i2 < length) { + sb.append((CharSequence) str, i2, length); + } + if (sb.length() == i5) { + str = sb.toString(); + } + } + if (str != null) { + File parentFile = file.getParentFile(); + d.H(parentFile); + int i6 = jVar.d(str).a; + String group2 = matcher.group(2); + Objects.requireNonNull(group2); + long parseLong = Long.parseLong(group2); + String group3 = matcher.group(3); + Objects.requireNonNull(group3); + file3 = h(parentFile, i6, parseLong, Long.parseLong(group3)); + } + file3 = null; + if (file3 == null) { + return null; + } + file2 = file3; + name = file3.getName(); + } else { + matcher = p.matcher(name2); + if (matcher.matches()) { + str = matcher.group(1); + Objects.requireNonNull(str); + if (str != null) { + } + file3 = null; + if (file3 == null) { + } + } + } + str = null; + if (str != null) { + } + file3 = null; + if (file3 == null) { + } + } else { + file2 = file; + } + Matcher matcher3 = r.matcher(name); + if (!matcher3.matches()) { + return null; + } + String group4 = matcher3.group(1); + Objects.requireNonNull(group4); + String str2 = jVar.f918b.get(Integer.parseInt(group4)); + if (str2 == null) { + return null; + } + long length2 = j == -1 ? file2.length() : j; + if (length2 == 0) { + return null; + } + String group5 = matcher3.group(2); + Objects.requireNonNull(group5); + long parseLong2 = Long.parseLong(group5); + if (j2 == -9223372036854775807L) { + String group6 = matcher3.group(3); + Objects.requireNonNull(group6); + j3 = Long.parseLong(group6); + } else { + j3 = j2; + } + return new s(str2, parseLong2, length2, j3, file2); + } + + public static File h(File file, int i, long j, long j2) { + StringBuilder sb = new StringBuilder(60); + sb.append(i); + sb.append("."); + sb.append(j); + sb.append("."); + sb.append(j2); + sb.append(".v3.exo"); + return new File(file, sb.toString()); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/c.java b/app/src/main/java/b/i/a/c/e3/c.java new file mode 100644 index 0000000000..cfa538a9b3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/c.java @@ -0,0 +1,14 @@ +package b.i.a.c.e3; + +import b.i.a.c.e3.x; +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Comparator { + public static final /* synthetic */ c j = new c(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + int i = x.a; + return Float.compare(((x.b) obj).c, ((x.b) obj2).c); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/d.java b/app/src/main/java/b/i/a/c/e3/d.java new file mode 100644 index 0000000000..23c74876e3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/d.java @@ -0,0 +1,14 @@ +package b.i.a.c.e3; + +import b.i.a.c.e3.x; +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class d implements Comparator { + public static final /* synthetic */ d j = new d(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + int i = x.a; + return ((x.b) obj).a - ((x.b) obj2).a; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/e.java b/app/src/main/java/b/i/a/c/e3/e.java new file mode 100644 index 0000000000..6d3f860323 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/e.java @@ -0,0 +1,13 @@ +package b.i.a.c.e3; +/* compiled from: Allocation */ +public final class e { + public final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public final int f925b; + + public e(byte[] bArr, int i) { + this.a = bArr; + this.f925b = i; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/f.java b/app/src/main/java/b/i/a/c/e3/f.java new file mode 100644 index 0000000000..57966f6168 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/f.java @@ -0,0 +1,52 @@ +package b.i.a.c.e3; + +import android.os.Handler; +import androidx.annotation.Nullable; +import java.util.Iterator; +import java.util.concurrent.CopyOnWriteArrayList; +/* compiled from: BandwidthMeter */ +public interface f { + + /* compiled from: BandwidthMeter */ + public interface a { + + /* compiled from: BandwidthMeter */ + /* renamed from: b.i.a.c.e3.f$a$a reason: collision with other inner class name */ + public static final class C0090a { + public final CopyOnWriteArrayList a = new CopyOnWriteArrayList<>(); + + /* compiled from: BandwidthMeter */ + /* renamed from: b.i.a.c.e3.f$a$a$a reason: collision with other inner class name */ + public static final class C0091a { + public final Handler a; + + /* renamed from: b reason: collision with root package name */ + public final a f926b; + public boolean c; + + public C0091a(Handler handler, a aVar) { + this.a = handler; + this.f926b = aVar; + } + } + + public void a(a aVar) { + Iterator it = this.a.iterator(); + while (it.hasNext()) { + C0091a next = it.next(); + if (next.f926b == aVar) { + next.c = true; + this.a.remove(next); + } + } + } + } + } + + @Nullable + a0 c(); + + void d(a aVar); + + void f(Handler handler, a aVar); +} diff --git a/app/src/main/java/b/i/a/c/e3/g.java b/app/src/main/java/b/i/a/c/e3/g.java new file mode 100644 index 0000000000..32c7d3ad0b --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/g.java @@ -0,0 +1,65 @@ +package b.i.a.c.e3; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import java.util.ArrayList; +import java.util.Map; +import java.util.Objects; +/* compiled from: BaseDataSource */ +public abstract class g implements l { + public final boolean a; + + /* renamed from: b reason: collision with root package name */ + public final ArrayList f927b = new ArrayList<>(1); + public int c; + @Nullable + public n d; + + public g(boolean z2) { + this.a = z2; + } + + @Override // b.i.a.c.e3.l + public final void d(a0 a0Var) { + Objects.requireNonNull(a0Var); + if (!this.f927b.contains(a0Var)) { + this.f927b.add(a0Var); + this.c++; + } + } + + @Override // b.i.a.c.e3.l + public /* synthetic */ Map j() { + return k.a(this); + } + + public final void p(int i) { + n nVar = this.d; + int i2 = e0.a; + for (int i3 = 0; i3 < this.c; i3++) { + this.f927b.get(i3).e(this, nVar, this.a, i); + } + } + + public final void q() { + n nVar = this.d; + int i = e0.a; + for (int i2 = 0; i2 < this.c; i2++) { + this.f927b.get(i2).a(this, nVar, this.a); + } + this.d = null; + } + + public final void r(n nVar) { + for (int i = 0; i < this.c; i++) { + this.f927b.get(i).g(this, nVar, this.a); + } + } + + public final void s(n nVar) { + this.d = nVar; + for (int i = 0; i < this.c; i++) { + this.f927b.get(i).b(this, nVar, this.a); + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/h.java b/app/src/main/java/b/i/a/c/e3/h.java new file mode 100644 index 0000000000..15a09dfb93 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/h.java @@ -0,0 +1,7 @@ +package b.i.a.c.e3; + +import java.io.IOException; +/* compiled from: DataReader */ +public interface h { + int read(byte[] bArr, int i, int i2) throws IOException; +} diff --git a/app/src/main/java/b/i/a/c/e3/i.java b/app/src/main/java/b/i/a/c/e3/i.java new file mode 100644 index 0000000000..b752028eb1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/i.java @@ -0,0 +1,108 @@ +package b.i.a.c.e3; + +import android.net.Uri; +import android.util.Base64; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.f3.e0; +import b.i.b.a.c; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.upstream.DataSourceException; +import java.io.IOException; +import java.net.URLDecoder; +/* compiled from: DataSchemeDataSource */ +public final class i extends g { + @Nullable + public n e; + @Nullable + public byte[] f; + public int g; + public int h; + + public i() { + super(false); + } + + @Override // b.i.a.c.e3.l + public long a(n nVar) throws IOException { + r(nVar); + this.e = nVar; + Uri uri = nVar.a; + String scheme = uri.getScheme(); + boolean equals = "data".equals(scheme); + String valueOf = String.valueOf(scheme); + d.m(equals, valueOf.length() != 0 ? "Unsupported scheme: ".concat(valueOf) : new String("Unsupported scheme: ")); + String[] H = e0.H(uri.getSchemeSpecificPart(), ","); + if (H.length == 2) { + String str = H[1]; + if (H[0].contains(";base64")) { + try { + this.f = Base64.decode(str, 0); + } catch (IllegalArgumentException e) { + String valueOf2 = String.valueOf(str); + throw new ParserException(valueOf2.length() != 0 ? "Error while parsing Base64 encoded string: ".concat(valueOf2) : new String("Error while parsing Base64 encoded string: "), e, true, 0); + } + } else { + this.f = e0.w(URLDecoder.decode(str, c.a.name())); + } + long j = nVar.f; + byte[] bArr = this.f; + if (j <= ((long) bArr.length)) { + int i = (int) j; + this.g = i; + int length = bArr.length - i; + this.h = length; + long j2 = nVar.g; + if (j2 != -1) { + this.h = (int) Math.min((long) length, j2); + } + s(nVar); + long j3 = nVar.g; + return j3 != -1 ? j3 : (long) this.h; + } + this.f = null; + throw new DataSourceException(2008); + } + String valueOf3 = String.valueOf(uri); + throw new ParserException(a.i(valueOf3.length() + 23, "Unexpected URI format: ", valueOf3), null, true, 0); + } + + @Override // b.i.a.c.e3.l + public void close() { + if (this.f != null) { + this.f = null; + q(); + } + this.e = null; + } + + @Override // b.i.a.c.e3.l + @Nullable + public Uri n() { + n nVar = this.e; + if (nVar != null) { + return nVar.a; + } + return null; + } + + @Override // b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) { + if (i2 == 0) { + return 0; + } + int i3 = this.h; + if (i3 == 0) { + return -1; + } + int min = Math.min(i2, i3); + byte[] bArr2 = this.f; + int i4 = e0.a; + System.arraycopy(bArr2, this.g, bArr, i, min); + this.g += min; + this.h -= min; + p(min); + return min; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/j.java b/app/src/main/java/b/i/a/c/e3/j.java new file mode 100644 index 0000000000..c29ae00693 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/j.java @@ -0,0 +1,11 @@ +package b.i.a.c.e3; + +import java.io.IOException; +/* compiled from: DataSink */ +public interface j { + void a(n nVar) throws IOException; + + void close() throws IOException; + + void write(byte[] bArr, int i, int i2) throws IOException; +} diff --git a/app/src/main/java/b/i/a/c/e3/k.java b/app/src/main/java/b/i/a/c/e3/k.java new file mode 100644 index 0000000000..d180d837af --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/k.java @@ -0,0 +1,11 @@ +package b.i.a.c.e3; + +import java.util.Collections; +import java.util.Map; +/* compiled from: DataSource */ +public final /* synthetic */ class k { + /* JADX WARN: Incorrect args count in method signature: ()Ljava/util/Map;>; */ + public static Map a(l lVar) { + return Collections.emptyMap(); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/l.java b/app/src/main/java/b/i/a/c/e3/l.java new file mode 100644 index 0000000000..91e5a0395c --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/l.java @@ -0,0 +1,26 @@ +package b.i.a.c.e3; + +import android.net.Uri; +import androidx.annotation.Nullable; +import java.io.IOException; +import java.util.List; +import java.util.Map; +/* compiled from: DataSource */ +public interface l extends h { + + /* compiled from: DataSource */ + public interface a { + l a(); + } + + long a(n nVar) throws IOException; + + void close() throws IOException; + + void d(a0 a0Var); + + Map> j(); + + @Nullable + Uri n(); +} diff --git a/app/src/main/java/b/i/a/c/e3/m.java b/app/src/main/java/b/i/a/c/e3/m.java new file mode 100644 index 0000000000..995e8c82cf --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/m.java @@ -0,0 +1,56 @@ +package b.i.a.c.e3; + +import b.c.a.a0.d; +import java.io.IOException; +import java.io.InputStream; +/* compiled from: DataSourceInputStream */ +public final class m extends InputStream { + public final l j; + public final n k; + public final byte[] l; + public boolean m = false; + public boolean n = false; + public long o; + + public m(l lVar, n nVar) { + this.j = lVar; + this.k = nVar; + this.l = new byte[1]; + } + + @Override // java.io.InputStream, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + if (!this.n) { + this.j.close(); + this.n = true; + } + } + + @Override // java.io.InputStream + public int read() throws IOException { + if (read(this.l) == -1) { + return -1; + } + return this.l[0] & 255; + } + + @Override // java.io.InputStream + public int read(byte[] bArr) throws IOException { + return read(bArr, 0, bArr.length); + } + + @Override // java.io.InputStream + public int read(byte[] bArr, int i, int i2) throws IOException { + d.D(!this.n); + if (!this.m) { + this.j.a(this.k); + this.m = true; + } + int read = this.j.read(bArr, i, i2); + if (read == -1) { + return -1; + } + this.o += (long) read; + return read; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/n.java b/app/src/main/java/b/i/a/c/e3/n.java new file mode 100644 index 0000000000..affaa82e0f --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/n.java @@ -0,0 +1,134 @@ +package b.i.a.c.e3; + +import android.net.Uri; +import androidx.annotation.Nullable; +import androidx.browser.trusted.sharing.ShareTarget; +import b.c.a.a0.d; +import b.i.a.c.i1; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +/* compiled from: DataSpec */ +public final class n { + public final Uri a; + + /* renamed from: b reason: collision with root package name */ + public final long f928b; + public final int c; + @Nullable + public final byte[] d; + public final Map e; + public final long f; + public final long g; + @Nullable + public final String h; + public final int i; + @Nullable + public final Object j; + + /* compiled from: DataSpec */ + public static final class b { + @Nullable + public Uri a; + + /* renamed from: b reason: collision with root package name */ + public long f929b; + public int c; + @Nullable + public byte[] d; + public Map e; + public long f; + public long g; + @Nullable + public String h; + public int i; + @Nullable + public Object j; + + public b(n nVar, a aVar) { + this.a = nVar.a; + this.f929b = nVar.f928b; + this.c = nVar.c; + this.d = nVar.d; + this.e = nVar.e; + this.f = nVar.f; + this.g = nVar.g; + this.h = nVar.h; + this.i = nVar.i; + this.j = nVar.j; + } + + public n a() { + if (this.a != null) { + return new n(this.a, this.f929b, this.c, this.d, this.e, this.f, this.g, this.h, this.i, this.j); + } + throw new IllegalStateException("The uri must be set."); + } + } + + static { + i1.a("goog.exo.datasource"); + } + + public n(Uri uri, long j, int i, @Nullable byte[] bArr, Map map, long j2, long j3, @Nullable String str, int i2, @Nullable Object obj) { + byte[] bArr2 = bArr; + boolean z2 = true; + d.j(j + j2 >= 0); + d.j(j2 >= 0); + if (j3 <= 0 && j3 != -1) { + z2 = false; + } + d.j(z2); + this.a = uri; + this.f928b = j; + this.c = i; + this.d = (bArr2 == null || bArr2.length == 0) ? null : bArr2; + this.e = Collections.unmodifiableMap(new HashMap(map)); + this.f = j2; + this.g = j3; + this.h = str; + this.i = i2; + this.j = obj; + } + + public static String b(int i) { + if (i == 1) { + return ShareTarget.METHOD_GET; + } + if (i == 2) { + return ShareTarget.METHOD_POST; + } + if (i == 3) { + return "HEAD"; + } + throw new IllegalStateException(); + } + + public b a() { + return new b(this, null); + } + + public boolean c(int i) { + return (this.i & i) == i; + } + + public String toString() { + String b2 = b(this.c); + String valueOf = String.valueOf(this.a); + long j = this.f; + long j2 = this.g; + String str = this.h; + int i = this.i; + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(str, valueOf.length() + b2.length() + 70), "DataSpec[", b2, " ", valueOf); + Q.append(", "); + Q.append(j); + Q.append(", "); + Q.append(j2); + Q.append(", "); + Q.append(str); + Q.append(", "); + Q.append(i); + Q.append("]"); + return Q.toString(); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/o.java b/app/src/main/java/b/i/a/c/e3/o.java new file mode 100644 index 0000000000..828c7dc56c --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/o.java @@ -0,0 +1,61 @@ +package b.i.a.c.e3; + +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import java.util.Arrays; +/* compiled from: DefaultAllocator */ +public final class o { + public final boolean a; + + /* renamed from: b reason: collision with root package name */ + public final int f930b; + public final e[] c; + public int d; + public int e; + public int f; + public e[] g; + + public o(boolean z2, int i) { + d.j(i > 0); + d.j(true); + this.a = z2; + this.f930b = i; + this.f = 0; + this.g = new e[100]; + this.c = new e[1]; + } + + public synchronized void a(e[] eVarArr) { + int i = this.f; + int length = eVarArr.length + i; + e[] eVarArr2 = this.g; + if (length >= eVarArr2.length) { + this.g = (e[]) Arrays.copyOf(eVarArr2, Math.max(eVarArr2.length * 2, i + eVarArr.length)); + } + for (e eVar : eVarArr) { + e[] eVarArr3 = this.g; + int i2 = this.f; + this.f = i2 + 1; + eVarArr3[i2] = eVar; + } + this.e -= eVarArr.length; + notifyAll(); + } + + public synchronized void b(int i) { + boolean z2 = i < this.d; + this.d = i; + if (z2) { + c(); + } + } + + public synchronized void c() { + int max = Math.max(0, e0.f(this.d, this.f930b) - this.e); + int i = this.f; + if (max < i) { + Arrays.fill(this.g, max, i, (Object) null); + this.f = max; + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/p.java b/app/src/main/java/b/i/a/c/e3/p.java new file mode 100644 index 0000000000..1d7b29e04e --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/p.java @@ -0,0 +1,3111 @@ +package b.i.a.c.e3; + +import android.content.Context; +import android.os.Handler; +import android.telephony.TelephonyManager; +import android.text.TextUtils; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.e3.f; +import b.i.a.c.f3.c; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.g; +import b.i.a.c.f3.v; +import b.i.b.b.q; +import com.discord.api.permission.Permission; +import com.discord.stores.StoreGuildScheduledEvents; +import com.discord.utilities.font.FontUtils; +import com.discord.utilities.guilds.GuildConstantsKt; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.lang.ref.WeakReference; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +/* compiled from: DefaultBandwidthMeter */ +public final class p implements f, a0 { + public static final b.i.b.b.p a = b.i.b.b.p.v(5400000L, 3300000L, 2000000L, 1300000L, 760000L); + + /* renamed from: b reason: collision with root package name */ + public static final b.i.b.b.p f931b = b.i.b.b.p.v(1700000L, 820000L, 450000L, 180000L, 130000L); + public static final b.i.b.b.p c = b.i.b.b.p.v(2300000L, 1300000L, 1000000L, 820000L, 570000L); + public static final b.i.b.b.p d = b.i.b.b.p.v(3400000L, 2000000L, 1400000L, 1000000L, 620000L); + public static final b.i.b.b.p e = b.i.b.b.p.v(7500000L, 5200000L, 3700000L, Long.valueOf((long) StoreGuildScheduledEvents.FETCH_GUILD_EVENTS_THRESHOLD), 1100000L); + public static final b.i.b.b.p f = b.i.b.b.p.v(3300000L, 1900000L, 1700000L, 1500000L, 1200000L); + @Nullable + public static p g; + public final q h; + public final f.a.C0090a i = new f.a.C0090a(); + public final x j; + public final g k; + public final boolean l; + public int m; + public long n; + public long o; + public int p; + public long q; + public long r; + + /* renamed from: s reason: collision with root package name */ + public long f932s; + public long t; + + /* compiled from: DefaultBandwidthMeter */ + public static final class b { + @Nullable + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public Map f933b; + public int c; + public g d; + public boolean e; + + /* JADX WARNING: Removed duplicated region for block: B:101:0x01ed */ + /* JADX WARNING: Removed duplicated region for block: B:104:0x01fb */ + /* JADX WARNING: Removed duplicated region for block: B:107:0x0209 */ + /* JADX WARNING: Removed duplicated region for block: B:110:0x0217 */ + /* JADX WARNING: Removed duplicated region for block: B:113:0x0225 */ + /* JADX WARNING: Removed duplicated region for block: B:116:0x0233 */ + /* JADX WARNING: Removed duplicated region for block: B:119:0x0241 */ + /* JADX WARNING: Removed duplicated region for block: B:122:0x024f */ + /* JADX WARNING: Removed duplicated region for block: B:125:0x025d */ + /* JADX WARNING: Removed duplicated region for block: B:128:0x026b */ + /* JADX WARNING: Removed duplicated region for block: B:131:0x0279 */ + /* JADX WARNING: Removed duplicated region for block: B:134:0x0287 */ + /* JADX WARNING: Removed duplicated region for block: B:137:0x0295 */ + /* JADX WARNING: Removed duplicated region for block: B:140:0x02a3 */ + /* JADX WARNING: Removed duplicated region for block: B:143:0x02b1 */ + /* JADX WARNING: Removed duplicated region for block: B:146:0x02bf */ + /* JADX WARNING: Removed duplicated region for block: B:149:0x02cd */ + /* JADX WARNING: Removed duplicated region for block: B:14:0x0057 */ + /* JADX WARNING: Removed duplicated region for block: B:152:0x02db */ + /* JADX WARNING: Removed duplicated region for block: B:155:0x02e9 */ + /* JADX WARNING: Removed duplicated region for block: B:158:0x02f7 */ + /* JADX WARNING: Removed duplicated region for block: B:161:0x0305 */ + /* JADX WARNING: Removed duplicated region for block: B:164:0x0313 */ + /* JADX WARNING: Removed duplicated region for block: B:167:0x0321 */ + /* JADX WARNING: Removed duplicated region for block: B:170:0x032f */ + /* JADX WARNING: Removed duplicated region for block: B:173:0x033d */ + /* JADX WARNING: Removed duplicated region for block: B:176:0x034b */ + /* JADX WARNING: Removed duplicated region for block: B:179:0x0359 */ + /* JADX WARNING: Removed duplicated region for block: B:17:0x0065 */ + /* JADX WARNING: Removed duplicated region for block: B:182:0x0367 */ + /* JADX WARNING: Removed duplicated region for block: B:185:0x0375 */ + /* JADX WARNING: Removed duplicated region for block: B:188:0x0383 */ + /* JADX WARNING: Removed duplicated region for block: B:191:0x0391 */ + /* JADX WARNING: Removed duplicated region for block: B:194:0x039f */ + /* JADX WARNING: Removed duplicated region for block: B:197:0x03ad */ + /* JADX WARNING: Removed duplicated region for block: B:200:0x03bb */ + /* JADX WARNING: Removed duplicated region for block: B:203:0x03c9 */ + /* JADX WARNING: Removed duplicated region for block: B:206:0x03d7 */ + /* JADX WARNING: Removed duplicated region for block: B:209:0x03e5 */ + /* JADX WARNING: Removed duplicated region for block: B:20:0x0073 */ + /* JADX WARNING: Removed duplicated region for block: B:212:0x03f3 */ + /* JADX WARNING: Removed duplicated region for block: B:215:0x0401 */ + /* JADX WARNING: Removed duplicated region for block: B:218:0x040f */ + /* JADX WARNING: Removed duplicated region for block: B:221:0x041d */ + /* JADX WARNING: Removed duplicated region for block: B:224:0x042b */ + /* JADX WARNING: Removed duplicated region for block: B:227:0x0439 */ + /* JADX WARNING: Removed duplicated region for block: B:230:0x0447 */ + /* JADX WARNING: Removed duplicated region for block: B:233:0x0455 */ + /* JADX WARNING: Removed duplicated region for block: B:236:0x0463 */ + /* JADX WARNING: Removed duplicated region for block: B:239:0x0471 */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x0081 */ + /* JADX WARNING: Removed duplicated region for block: B:242:0x047f */ + /* JADX WARNING: Removed duplicated region for block: B:245:0x048d */ + /* JADX WARNING: Removed duplicated region for block: B:248:0x049b */ + /* JADX WARNING: Removed duplicated region for block: B:251:0x04a9 */ + /* JADX WARNING: Removed duplicated region for block: B:254:0x04b7 */ + /* JADX WARNING: Removed duplicated region for block: B:257:0x04c5 */ + /* JADX WARNING: Removed duplicated region for block: B:260:0x04d3 */ + /* JADX WARNING: Removed duplicated region for block: B:263:0x04e1 */ + /* JADX WARNING: Removed duplicated region for block: B:266:0x04ef */ + /* JADX WARNING: Removed duplicated region for block: B:269:0x04fd */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x008f */ + /* JADX WARNING: Removed duplicated region for block: B:272:0x050b */ + /* JADX WARNING: Removed duplicated region for block: B:275:0x0519 */ + /* JADX WARNING: Removed duplicated region for block: B:278:0x0527 */ + /* JADX WARNING: Removed duplicated region for block: B:281:0x0535 */ + /* JADX WARNING: Removed duplicated region for block: B:284:0x0543 */ + /* JADX WARNING: Removed duplicated region for block: B:287:0x0551 */ + /* JADX WARNING: Removed duplicated region for block: B:290:0x055f */ + /* JADX WARNING: Removed duplicated region for block: B:293:0x056d */ + /* JADX WARNING: Removed duplicated region for block: B:296:0x057b */ + /* JADX WARNING: Removed duplicated region for block: B:299:0x0589 */ + /* JADX WARNING: Removed duplicated region for block: B:29:0x009d */ + /* JADX WARNING: Removed duplicated region for block: B:302:0x0597 */ + /* JADX WARNING: Removed duplicated region for block: B:305:0x05a5 */ + /* JADX WARNING: Removed duplicated region for block: B:308:0x05b3 */ + /* JADX WARNING: Removed duplicated region for block: B:311:0x05c1 */ + /* JADX WARNING: Removed duplicated region for block: B:314:0x05cf */ + /* JADX WARNING: Removed duplicated region for block: B:317:0x05dd */ + /* JADX WARNING: Removed duplicated region for block: B:320:0x05eb */ + /* JADX WARNING: Removed duplicated region for block: B:323:0x05f9 */ + /* JADX WARNING: Removed duplicated region for block: B:326:0x0607 */ + /* JADX WARNING: Removed duplicated region for block: B:329:0x0615 */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x00ab */ + /* JADX WARNING: Removed duplicated region for block: B:332:0x0623 */ + /* JADX WARNING: Removed duplicated region for block: B:335:0x0631 */ + /* JADX WARNING: Removed duplicated region for block: B:338:0x063f */ + /* JADX WARNING: Removed duplicated region for block: B:341:0x064d */ + /* JADX WARNING: Removed duplicated region for block: B:344:0x065b */ + /* JADX WARNING: Removed duplicated region for block: B:347:0x0669 */ + /* JADX WARNING: Removed duplicated region for block: B:350:0x0677 */ + /* JADX WARNING: Removed duplicated region for block: B:353:0x0685 */ + /* JADX WARNING: Removed duplicated region for block: B:356:0x0693 */ + /* JADX WARNING: Removed duplicated region for block: B:359:0x06a1 */ + /* JADX WARNING: Removed duplicated region for block: B:35:0x00b9 */ + /* JADX WARNING: Removed duplicated region for block: B:362:0x06af */ + /* JADX WARNING: Removed duplicated region for block: B:365:0x06bd */ + /* JADX WARNING: Removed duplicated region for block: B:368:0x06cb */ + /* JADX WARNING: Removed duplicated region for block: B:371:0x06d9 */ + /* JADX WARNING: Removed duplicated region for block: B:374:0x06e7 */ + /* JADX WARNING: Removed duplicated region for block: B:377:0x06f5 */ + /* JADX WARNING: Removed duplicated region for block: B:380:0x0703 */ + /* JADX WARNING: Removed duplicated region for block: B:383:0x0711 */ + /* JADX WARNING: Removed duplicated region for block: B:386:0x071f */ + /* JADX WARNING: Removed duplicated region for block: B:389:0x072d */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x00c7 */ + /* JADX WARNING: Removed duplicated region for block: B:392:0x073b */ + /* JADX WARNING: Removed duplicated region for block: B:395:0x0749 */ + /* JADX WARNING: Removed duplicated region for block: B:398:0x0757 */ + /* JADX WARNING: Removed duplicated region for block: B:401:0x0765 */ + /* JADX WARNING: Removed duplicated region for block: B:404:0x0773 */ + /* JADX WARNING: Removed duplicated region for block: B:407:0x0781 */ + /* JADX WARNING: Removed duplicated region for block: B:410:0x078f */ + /* JADX WARNING: Removed duplicated region for block: B:413:0x079d */ + /* JADX WARNING: Removed duplicated region for block: B:416:0x07ab */ + /* JADX WARNING: Removed duplicated region for block: B:419:0x07b9 */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x00d5 */ + /* JADX WARNING: Removed duplicated region for block: B:422:0x07c7 */ + /* JADX WARNING: Removed duplicated region for block: B:425:0x07d5 */ + /* JADX WARNING: Removed duplicated region for block: B:428:0x07e3 */ + /* JADX WARNING: Removed duplicated region for block: B:431:0x07f1 */ + /* JADX WARNING: Removed duplicated region for block: B:434:0x07ff */ + /* JADX WARNING: Removed duplicated region for block: B:437:0x080d */ + /* JADX WARNING: Removed duplicated region for block: B:440:0x081b */ + /* JADX WARNING: Removed duplicated region for block: B:443:0x0829 */ + /* JADX WARNING: Removed duplicated region for block: B:446:0x0837 */ + /* JADX WARNING: Removed duplicated region for block: B:449:0x0845 */ + /* JADX WARNING: Removed duplicated region for block: B:44:0x00e3 */ + /* JADX WARNING: Removed duplicated region for block: B:452:0x0853 */ + /* JADX WARNING: Removed duplicated region for block: B:455:0x0861 */ + /* JADX WARNING: Removed duplicated region for block: B:458:0x086f */ + /* JADX WARNING: Removed duplicated region for block: B:461:0x087d */ + /* JADX WARNING: Removed duplicated region for block: B:464:0x088b */ + /* JADX WARNING: Removed duplicated region for block: B:467:0x0899 */ + /* JADX WARNING: Removed duplicated region for block: B:470:0x08a7 */ + /* JADX WARNING: Removed duplicated region for block: B:473:0x08b5 */ + /* JADX WARNING: Removed duplicated region for block: B:476:0x08c3 */ + /* JADX WARNING: Removed duplicated region for block: B:479:0x08d1 */ + /* JADX WARNING: Removed duplicated region for block: B:47:0x00f1 */ + /* JADX WARNING: Removed duplicated region for block: B:482:0x08df */ + /* JADX WARNING: Removed duplicated region for block: B:485:0x08ed */ + /* JADX WARNING: Removed duplicated region for block: B:488:0x08fb */ + /* JADX WARNING: Removed duplicated region for block: B:491:0x0909 */ + /* JADX WARNING: Removed duplicated region for block: B:494:0x0917 */ + /* JADX WARNING: Removed duplicated region for block: B:497:0x0925 */ + /* JADX WARNING: Removed duplicated region for block: B:500:0x0933 */ + /* JADX WARNING: Removed duplicated region for block: B:503:0x0941 */ + /* JADX WARNING: Removed duplicated region for block: B:506:0x094f */ + /* JADX WARNING: Removed duplicated region for block: B:509:0x095d */ + /* JADX WARNING: Removed duplicated region for block: B:50:0x00ff */ + /* JADX WARNING: Removed duplicated region for block: B:512:0x096b */ + /* JADX WARNING: Removed duplicated region for block: B:515:0x0979 */ + /* JADX WARNING: Removed duplicated region for block: B:518:0x0987 */ + /* JADX WARNING: Removed duplicated region for block: B:521:0x0995 */ + /* JADX WARNING: Removed duplicated region for block: B:524:0x09a3 */ + /* JADX WARNING: Removed duplicated region for block: B:527:0x09b1 */ + /* JADX WARNING: Removed duplicated region for block: B:530:0x09bf */ + /* JADX WARNING: Removed duplicated region for block: B:533:0x09cd */ + /* JADX WARNING: Removed duplicated region for block: B:536:0x09db */ + /* JADX WARNING: Removed duplicated region for block: B:539:0x09e9 */ + /* JADX WARNING: Removed duplicated region for block: B:53:0x010d */ + /* JADX WARNING: Removed duplicated region for block: B:542:0x09f7 */ + /* JADX WARNING: Removed duplicated region for block: B:545:0x0a05 */ + /* JADX WARNING: Removed duplicated region for block: B:548:0x0a13 */ + /* JADX WARNING: Removed duplicated region for block: B:551:0x0a21 */ + /* JADX WARNING: Removed duplicated region for block: B:554:0x0a2f */ + /* JADX WARNING: Removed duplicated region for block: B:557:0x0a3d */ + /* JADX WARNING: Removed duplicated region for block: B:560:0x0a4b */ + /* JADX WARNING: Removed duplicated region for block: B:563:0x0a59 */ + /* JADX WARNING: Removed duplicated region for block: B:566:0x0a67 */ + /* JADX WARNING: Removed duplicated region for block: B:569:0x0a75 */ + /* JADX WARNING: Removed duplicated region for block: B:56:0x011b */ + /* JADX WARNING: Removed duplicated region for block: B:572:0x0a83 */ + /* JADX WARNING: Removed duplicated region for block: B:575:0x0a91 */ + /* JADX WARNING: Removed duplicated region for block: B:578:0x0a9f */ + /* JADX WARNING: Removed duplicated region for block: B:581:0x0aad */ + /* JADX WARNING: Removed duplicated region for block: B:584:0x0abb */ + /* JADX WARNING: Removed duplicated region for block: B:587:0x0ac9 */ + /* JADX WARNING: Removed duplicated region for block: B:590:0x0ad7 */ + /* JADX WARNING: Removed duplicated region for block: B:593:0x0ae5 */ + /* JADX WARNING: Removed duplicated region for block: B:596:0x0af3 */ + /* JADX WARNING: Removed duplicated region for block: B:599:0x0b01 */ + /* JADX WARNING: Removed duplicated region for block: B:59:0x0129 */ + /* JADX WARNING: Removed duplicated region for block: B:602:0x0b0f */ + /* JADX WARNING: Removed duplicated region for block: B:605:0x0b1d */ + /* JADX WARNING: Removed duplicated region for block: B:608:0x0b2b */ + /* JADX WARNING: Removed duplicated region for block: B:611:0x0b39 */ + /* JADX WARNING: Removed duplicated region for block: B:614:0x0b47 */ + /* JADX WARNING: Removed duplicated region for block: B:617:0x0b55 */ + /* JADX WARNING: Removed duplicated region for block: B:620:0x0b63 */ + /* JADX WARNING: Removed duplicated region for block: B:623:0x0b71 */ + /* JADX WARNING: Removed duplicated region for block: B:626:0x0b7f */ + /* JADX WARNING: Removed duplicated region for block: B:629:0x0b8d */ + /* JADX WARNING: Removed duplicated region for block: B:62:0x0137 */ + /* JADX WARNING: Removed duplicated region for block: B:632:0x0b9b */ + /* JADX WARNING: Removed duplicated region for block: B:635:0x0ba9 */ + /* JADX WARNING: Removed duplicated region for block: B:638:0x0bb7 */ + /* JADX WARNING: Removed duplicated region for block: B:641:0x0bc5 */ + /* JADX WARNING: Removed duplicated region for block: B:644:0x0bd3 */ + /* JADX WARNING: Removed duplicated region for block: B:647:0x0be1 */ + /* JADX WARNING: Removed duplicated region for block: B:650:0x0bef */ + /* JADX WARNING: Removed duplicated region for block: B:653:0x0bfd */ + /* JADX WARNING: Removed duplicated region for block: B:656:0x0c0b */ + /* JADX WARNING: Removed duplicated region for block: B:659:0x0c19 */ + /* JADX WARNING: Removed duplicated region for block: B:65:0x0145 */ + /* JADX WARNING: Removed duplicated region for block: B:662:0x0c27 */ + /* JADX WARNING: Removed duplicated region for block: B:665:0x0c35 */ + /* JADX WARNING: Removed duplicated region for block: B:668:0x0c43 */ + /* JADX WARNING: Removed duplicated region for block: B:671:0x0c51 */ + /* JADX WARNING: Removed duplicated region for block: B:674:0x0c5f */ + /* JADX WARNING: Removed duplicated region for block: B:677:0x0c6d */ + /* JADX WARNING: Removed duplicated region for block: B:680:0x0c7b */ + /* JADX WARNING: Removed duplicated region for block: B:683:0x0c89 */ + /* JADX WARNING: Removed duplicated region for block: B:686:0x0c97 */ + /* JADX WARNING: Removed duplicated region for block: B:689:0x0ca5 */ + /* JADX WARNING: Removed duplicated region for block: B:68:0x0153 */ + /* JADX WARNING: Removed duplicated region for block: B:692:0x0cb3 */ + /* JADX WARNING: Removed duplicated region for block: B:695:0x0cc1 */ + /* JADX WARNING: Removed duplicated region for block: B:698:0x0ccf */ + /* JADX WARNING: Removed duplicated region for block: B:701:0x0cdd */ + /* JADX WARNING: Removed duplicated region for block: B:704:0x0ceb */ + /* JADX WARNING: Removed duplicated region for block: B:707:0x0cf6 */ + /* JADX WARNING: Removed duplicated region for block: B:710:0x0d01 */ + /* JADX WARNING: Removed duplicated region for block: B:713:0x0d0c */ + /* JADX WARNING: Removed duplicated region for block: B:716:0x0d17 */ + /* JADX WARNING: Removed duplicated region for block: B:719:0x0d22 */ + /* JADX WARNING: Removed duplicated region for block: B:71:0x0161 */ + /* JADX WARNING: Removed duplicated region for block: B:722:0x0d2d */ + /* JADX WARNING: Removed duplicated region for block: B:725:0x0d38 */ + /* JADX WARNING: Removed duplicated region for block: B:729:0x0d45 */ + /* JADX WARNING: Removed duplicated region for block: B:730:0x0d4c */ + /* JADX WARNING: Removed duplicated region for block: B:731:0x0d53 */ + /* JADX WARNING: Removed duplicated region for block: B:732:0x0d5a */ + /* JADX WARNING: Removed duplicated region for block: B:733:0x0d61 */ + /* JADX WARNING: Removed duplicated region for block: B:734:0x0d68 */ + /* JADX WARNING: Removed duplicated region for block: B:735:0x0d6f */ + /* JADX WARNING: Removed duplicated region for block: B:736:0x0d76 */ + /* JADX WARNING: Removed duplicated region for block: B:737:0x0d7d */ + /* JADX WARNING: Removed duplicated region for block: B:738:0x0d84 */ + /* JADX WARNING: Removed duplicated region for block: B:739:0x0d8b */ + /* JADX WARNING: Removed duplicated region for block: B:740:0x0d92 */ + /* JADX WARNING: Removed duplicated region for block: B:741:0x0d99 */ + /* JADX WARNING: Removed duplicated region for block: B:742:0x0da0 */ + /* JADX WARNING: Removed duplicated region for block: B:743:0x0da7 */ + /* JADX WARNING: Removed duplicated region for block: B:744:0x0dae */ + /* JADX WARNING: Removed duplicated region for block: B:745:0x0db5 */ + /* JADX WARNING: Removed duplicated region for block: B:746:0x0dbc */ + /* JADX WARNING: Removed duplicated region for block: B:747:0x0dc3 */ + /* JADX WARNING: Removed duplicated region for block: B:748:0x0dca */ + /* JADX WARNING: Removed duplicated region for block: B:749:0x0dd1 */ + /* JADX WARNING: Removed duplicated region for block: B:74:0x016f */ + /* JADX WARNING: Removed duplicated region for block: B:750:0x0dd8 */ + /* JADX WARNING: Removed duplicated region for block: B:751:0x0ddf */ + /* JADX WARNING: Removed duplicated region for block: B:752:0x0de6 */ + /* JADX WARNING: Removed duplicated region for block: B:753:0x0ded */ + /* JADX WARNING: Removed duplicated region for block: B:754:0x0df4 */ + /* JADX WARNING: Removed duplicated region for block: B:755:0x0dfb */ + /* JADX WARNING: Removed duplicated region for block: B:756:0x0e02 */ + /* JADX WARNING: Removed duplicated region for block: B:757:0x0e09 */ + /* JADX WARNING: Removed duplicated region for block: B:758:0x0e10 */ + /* JADX WARNING: Removed duplicated region for block: B:759:0x0e17 */ + /* JADX WARNING: Removed duplicated region for block: B:760:0x0e1e */ + /* JADX WARNING: Removed duplicated region for block: B:761:0x0e25 */ + /* JADX WARNING: Removed duplicated region for block: B:762:0x0e2c */ + /* JADX WARNING: Removed duplicated region for block: B:763:0x0e33 */ + /* JADX WARNING: Removed duplicated region for block: B:764:0x0e3a */ + /* JADX WARNING: Removed duplicated region for block: B:765:0x0e41 */ + /* JADX WARNING: Removed duplicated region for block: B:766:0x0e48 */ + /* JADX WARNING: Removed duplicated region for block: B:767:0x0e4f */ + /* JADX WARNING: Removed duplicated region for block: B:768:0x0e56 */ + /* JADX WARNING: Removed duplicated region for block: B:769:0x0e5d */ + /* JADX WARNING: Removed duplicated region for block: B:770:0x0e64 */ + /* JADX WARNING: Removed duplicated region for block: B:771:0x0e6b */ + /* JADX WARNING: Removed duplicated region for block: B:772:0x0e72 */ + /* JADX WARNING: Removed duplicated region for block: B:773:0x0e79 */ + /* JADX WARNING: Removed duplicated region for block: B:774:0x0e80 */ + /* JADX WARNING: Removed duplicated region for block: B:775:0x0e87 */ + /* JADX WARNING: Removed duplicated region for block: B:776:0x0e8e */ + /* JADX WARNING: Removed duplicated region for block: B:777:0x0e95 */ + /* JADX WARNING: Removed duplicated region for block: B:778:0x0e9c */ + /* JADX WARNING: Removed duplicated region for block: B:779:0x0ea3 */ + /* JADX WARNING: Removed duplicated region for block: B:77:0x017d */ + /* JADX WARNING: Removed duplicated region for block: B:780:0x0eaa */ + /* JADX WARNING: Removed duplicated region for block: B:781:0x0eb1 */ + /* JADX WARNING: Removed duplicated region for block: B:782:0x0eb8 */ + /* JADX WARNING: Removed duplicated region for block: B:783:0x0ebf */ + /* JADX WARNING: Removed duplicated region for block: B:784:0x0ec6 */ + /* JADX WARNING: Removed duplicated region for block: B:785:0x0ecd */ + /* JADX WARNING: Removed duplicated region for block: B:786:0x0ed4 */ + /* JADX WARNING: Removed duplicated region for block: B:787:0x0edb */ + /* JADX WARNING: Removed duplicated region for block: B:788:0x0ee2 */ + /* JADX WARNING: Removed duplicated region for block: B:789:0x0ee9 */ + /* JADX WARNING: Removed duplicated region for block: B:790:0x0ef0 */ + /* JADX WARNING: Removed duplicated region for block: B:791:0x0ef7 */ + /* JADX WARNING: Removed duplicated region for block: B:792:0x0efe */ + /* JADX WARNING: Removed duplicated region for block: B:793:0x0f05 */ + /* JADX WARNING: Removed duplicated region for block: B:794:0x0f0c */ + /* JADX WARNING: Removed duplicated region for block: B:795:0x0f13 */ + /* JADX WARNING: Removed duplicated region for block: B:796:0x0f1a */ + /* JADX WARNING: Removed duplicated region for block: B:797:0x0f21 */ + /* JADX WARNING: Removed duplicated region for block: B:798:0x0f28 */ + /* JADX WARNING: Removed duplicated region for block: B:799:0x0f2f */ + /* JADX WARNING: Removed duplicated region for block: B:800:0x0f36 */ + /* JADX WARNING: Removed duplicated region for block: B:801:0x0f3d */ + /* JADX WARNING: Removed duplicated region for block: B:802:0x0f44 */ + /* JADX WARNING: Removed duplicated region for block: B:803:0x0f4b */ + /* JADX WARNING: Removed duplicated region for block: B:804:0x0f52 */ + /* JADX WARNING: Removed duplicated region for block: B:805:0x0f59 */ + /* JADX WARNING: Removed duplicated region for block: B:806:0x0f60 */ + /* JADX WARNING: Removed duplicated region for block: B:807:0x0f67 */ + /* JADX WARNING: Removed duplicated region for block: B:808:0x0f6e */ + /* JADX WARNING: Removed duplicated region for block: B:809:0x0f75 */ + /* JADX WARNING: Removed duplicated region for block: B:80:0x018b */ + /* JADX WARNING: Removed duplicated region for block: B:810:0x0f7c */ + /* JADX WARNING: Removed duplicated region for block: B:811:0x0f83 */ + /* JADX WARNING: Removed duplicated region for block: B:812:0x0f8a */ + /* JADX WARNING: Removed duplicated region for block: B:813:0x0f91 */ + /* JADX WARNING: Removed duplicated region for block: B:814:0x0f98 */ + /* JADX WARNING: Removed duplicated region for block: B:815:0x0f9f */ + /* JADX WARNING: Removed duplicated region for block: B:816:0x0fa6 */ + /* JADX WARNING: Removed duplicated region for block: B:817:0x0fad */ + /* JADX WARNING: Removed duplicated region for block: B:818:0x0fb4 */ + /* JADX WARNING: Removed duplicated region for block: B:819:0x0fbb */ + /* JADX WARNING: Removed duplicated region for block: B:820:0x0fc2 */ + /* JADX WARNING: Removed duplicated region for block: B:821:0x0fc9 */ + /* JADX WARNING: Removed duplicated region for block: B:822:0x0fd0 */ + /* JADX WARNING: Removed duplicated region for block: B:823:0x0fd7 */ + /* JADX WARNING: Removed duplicated region for block: B:824:0x0fde */ + /* JADX WARNING: Removed duplicated region for block: B:825:0x0fe5 */ + /* JADX WARNING: Removed duplicated region for block: B:826:0x0fec */ + /* JADX WARNING: Removed duplicated region for block: B:827:0x0ff3 */ + /* JADX WARNING: Removed duplicated region for block: B:828:0x0ffa */ + /* JADX WARNING: Removed duplicated region for block: B:829:0x1001 */ + /* JADX WARNING: Removed duplicated region for block: B:830:0x1008 */ + /* JADX WARNING: Removed duplicated region for block: B:831:0x100f */ + /* JADX WARNING: Removed duplicated region for block: B:832:0x1016 */ + /* JADX WARNING: Removed duplicated region for block: B:833:0x101d */ + /* JADX WARNING: Removed duplicated region for block: B:834:0x1024 */ + /* JADX WARNING: Removed duplicated region for block: B:835:0x102b */ + /* JADX WARNING: Removed duplicated region for block: B:836:0x1032 */ + /* JADX WARNING: Removed duplicated region for block: B:837:0x1039 */ + /* JADX WARNING: Removed duplicated region for block: B:838:0x1040 */ + /* JADX WARNING: Removed duplicated region for block: B:839:0x1047 */ + /* JADX WARNING: Removed duplicated region for block: B:83:0x0199 */ + /* JADX WARNING: Removed duplicated region for block: B:840:0x104e */ + /* JADX WARNING: Removed duplicated region for block: B:841:0x1055 */ + /* JADX WARNING: Removed duplicated region for block: B:842:0x105c */ + /* JADX WARNING: Removed duplicated region for block: B:843:0x1063 */ + /* JADX WARNING: Removed duplicated region for block: B:844:0x106a */ + /* JADX WARNING: Removed duplicated region for block: B:845:0x1071 */ + /* JADX WARNING: Removed duplicated region for block: B:846:0x1078 */ + /* JADX WARNING: Removed duplicated region for block: B:847:0x107f */ + /* JADX WARNING: Removed duplicated region for block: B:848:0x1086 */ + /* JADX WARNING: Removed duplicated region for block: B:849:0x108d */ + /* JADX WARNING: Removed duplicated region for block: B:850:0x1094 */ + /* JADX WARNING: Removed duplicated region for block: B:851:0x109b */ + /* JADX WARNING: Removed duplicated region for block: B:852:0x10a2 */ + /* JADX WARNING: Removed duplicated region for block: B:853:0x10a9 */ + /* JADX WARNING: Removed duplicated region for block: B:854:0x10b0 */ + /* JADX WARNING: Removed duplicated region for block: B:855:0x10b7 */ + /* JADX WARNING: Removed duplicated region for block: B:856:0x10be */ + /* JADX WARNING: Removed duplicated region for block: B:857:0x10c5 */ + /* JADX WARNING: Removed duplicated region for block: B:858:0x10cc */ + /* JADX WARNING: Removed duplicated region for block: B:859:0x10d3 */ + /* JADX WARNING: Removed duplicated region for block: B:860:0x10da */ + /* JADX WARNING: Removed duplicated region for block: B:861:0x10e1 */ + /* JADX WARNING: Removed duplicated region for block: B:862:0x10e8 */ + /* JADX WARNING: Removed duplicated region for block: B:863:0x10ef */ + /* JADX WARNING: Removed duplicated region for block: B:864:0x10f6 */ + /* JADX WARNING: Removed duplicated region for block: B:865:0x10fd */ + /* JADX WARNING: Removed duplicated region for block: B:866:0x1104 */ + /* JADX WARNING: Removed duplicated region for block: B:867:0x110b */ + /* JADX WARNING: Removed duplicated region for block: B:868:0x1112 */ + /* JADX WARNING: Removed duplicated region for block: B:869:0x1119 */ + /* JADX WARNING: Removed duplicated region for block: B:86:0x01a7 */ + /* JADX WARNING: Removed duplicated region for block: B:870:0x1120 */ + /* JADX WARNING: Removed duplicated region for block: B:871:0x1127 */ + /* JADX WARNING: Removed duplicated region for block: B:872:0x112e */ + /* JADX WARNING: Removed duplicated region for block: B:873:0x1135 */ + /* JADX WARNING: Removed duplicated region for block: B:874:0x113b */ + /* JADX WARNING: Removed duplicated region for block: B:875:0x1141 */ + /* JADX WARNING: Removed duplicated region for block: B:876:0x1147 */ + /* JADX WARNING: Removed duplicated region for block: B:877:0x114d */ + /* JADX WARNING: Removed duplicated region for block: B:878:0x1153 */ + /* JADX WARNING: Removed duplicated region for block: B:879:0x1159 */ + /* JADX WARNING: Removed duplicated region for block: B:880:0x115f */ + /* JADX WARNING: Removed duplicated region for block: B:881:0x1165 */ + /* JADX WARNING: Removed duplicated region for block: B:882:0x116b */ + /* JADX WARNING: Removed duplicated region for block: B:883:0x1171 */ + /* JADX WARNING: Removed duplicated region for block: B:884:0x1177 */ + /* JADX WARNING: Removed duplicated region for block: B:885:0x117d */ + /* JADX WARNING: Removed duplicated region for block: B:886:0x1183 */ + /* JADX WARNING: Removed duplicated region for block: B:887:0x1189 */ + /* JADX WARNING: Removed duplicated region for block: B:888:0x118f */ + /* JADX WARNING: Removed duplicated region for block: B:89:0x01b5 */ + /* JADX WARNING: Removed duplicated region for block: B:92:0x01c3 */ + /* JADX WARNING: Removed duplicated region for block: B:95:0x01d1 */ + /* JADX WARNING: Removed duplicated region for block: B:98:0x01df */ + public b(Context context) { + String str; + char c; + int[] iArr; + TelephonyManager telephonyManager; + this.a = context == null ? null : context.getApplicationContext(); + int i = e0.a; + if (!(context == null || (telephonyManager = (TelephonyManager) context.getSystemService("phone")) == null)) { + String networkCountryIso = telephonyManager.getNetworkCountryIso(); + if (!TextUtils.isEmpty(networkCountryIso)) { + str = b.i.a.f.e.o.f.o1(networkCountryIso); + b.i.b.b.p pVar = p.a; + str.hashCode(); + c = 65535; + switch (str.hashCode()) { + case 2083: + if (str.equals("AD")) { + c = 0; + break; + } + break; + case 2084: + if (str.equals("AE")) { + c = 1; + break; + } + break; + case 2085: + if (str.equals("AF")) { + c = 2; + break; + } + break; + case 2086: + if (str.equals("AG")) { + c = 3; + break; + } + break; + case 2088: + if (str.equals("AI")) { + c = 4; + break; + } + break; + case 2091: + if (str.equals("AL")) { + c = 5; + break; + } + break; + case 2092: + if (str.equals("AM")) { + c = 6; + break; + } + break; + case 2094: + if (str.equals("AO")) { + c = 7; + break; + } + break; + case 2096: + if (str.equals("AQ")) { + c = '\b'; + break; + } + break; + case 2097: + if (str.equals("AR")) { + c = '\t'; + break; + } + break; + case 2098: + if (str.equals("AS")) { + c = '\n'; + break; + } + break; + case 2099: + if (str.equals("AT")) { + c = 11; + break; + } + break; + case 2100: + if (str.equals("AU")) { + c = '\f'; + break; + } + break; + case 2102: + if (str.equals("AW")) { + c = '\r'; + break; + } + break; + case 2103: + if (str.equals("AX")) { + c = 14; + break; + } + break; + case 2105: + if (str.equals("AZ")) { + c = 15; + break; + } + break; + case 2111: + if (str.equals("BA")) { + c = 16; + break; + } + break; + case 2112: + if (str.equals("BB")) { + c = 17; + break; + } + break; + case 2114: + if (str.equals("BD")) { + c = 18; + break; + } + break; + case 2115: + if (str.equals("BE")) { + c = 19; + break; + } + break; + case 2116: + if (str.equals("BF")) { + c = 20; + break; + } + break; + case 2117: + if (str.equals("BG")) { + c = 21; + break; + } + break; + case 2118: + if (str.equals("BH")) { + c = 22; + break; + } + break; + case 2119: + if (str.equals("BI")) { + c = 23; + break; + } + break; + case 2120: + if (str.equals("BJ")) { + c = 24; + break; + } + break; + case 2122: + if (str.equals("BL")) { + c = 25; + break; + } + break; + case 2123: + if (str.equals("BM")) { + c = 26; + break; + } + break; + case 2124: + if (str.equals("BN")) { + c = 27; + break; + } + break; + case 2125: + if (str.equals("BO")) { + c = 28; + break; + } + break; + case 2127: + if (str.equals("BQ")) { + c = 29; + break; + } + break; + case 2128: + if (str.equals("BR")) { + c = 30; + break; + } + break; + case 2129: + if (str.equals("BS")) { + c = 31; + break; + } + break; + case 2130: + if (str.equals("BT")) { + c = ' '; + break; + } + break; + case 2133: + if (str.equals("BW")) { + c = '!'; + break; + } + break; + case 2135: + if (str.equals("BY")) { + c = '\"'; + break; + } + break; + case 2136: + if (str.equals("BZ")) { + c = MentionUtilsKt.CHANNELS_CHAR; + break; + } + break; + case 2142: + if (str.equals("CA")) { + c = '$'; + break; + } + break; + case 2145: + if (str.equals("CD")) { + c = '%'; + break; + } + break; + case 2147: + if (str.equals("CF")) { + c = '&'; + break; + } + break; + case 2148: + if (str.equals("CG")) { + c = '\''; + break; + } + break; + case 2149: + if (str.equals("CH")) { + c = '('; + break; + } + break; + case 2150: + if (str.equals("CI")) { + c = ')'; + break; + } + break; + case 2152: + if (str.equals("CK")) { + c = '*'; + break; + } + break; + case 2153: + if (str.equals("CL")) { + c = '+'; + break; + } + break; + case 2154: + if (str.equals("CM")) { + c = ','; + break; + } + break; + case 2155: + if (str.equals("CN")) { + c = '-'; + break; + } + break; + case 2156: + if (str.equals("CO")) { + c = '.'; + break; + } + break; + case 2159: + if (str.equals("CR")) { + c = MentionUtilsKt.SLASH_CHAR; + break; + } + break; + case 2162: + if (str.equals("CU")) { + c = '0'; + break; + } + break; + case 2163: + if (str.equals("CV")) { + c = '1'; + break; + } + break; + case 2164: + if (str.equals("CW")) { + c = '2'; + break; + } + break; + case 2165: + if (str.equals("CX")) { + c = '3'; + break; + } + break; + case 2166: + if (str.equals("CY")) { + c = '4'; + break; + } + break; + case 2167: + if (str.equals("CZ")) { + c = '5'; + break; + } + break; + case 2177: + if (str.equals("DE")) { + c = '6'; + break; + } + break; + case 2182: + if (str.equals("DJ")) { + c = '7'; + break; + } + break; + case 2183: + if (str.equals("DK")) { + c = '8'; + break; + } + break; + case 2185: + if (str.equals("DM")) { + c = '9'; + break; + } + break; + case 2187: + if (str.equals("DO")) { + c = MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR; + break; + } + break; + case 2198: + if (str.equals("DZ")) { + c = ';'; + break; + } + break; + case 2206: + if (str.equals("EC")) { + c = '<'; + break; + } + break; + case 2208: + if (str.equals("EE")) { + c = '='; + break; + } + break; + case 2210: + if (str.equals("EG")) { + c = '>'; + break; + } + break; + case 2221: + if (str.equals("ER")) { + c = '?'; + break; + } + break; + case 2222: + if (str.equals("ES")) { + c = MentionUtilsKt.MENTIONS_CHAR; + break; + } + break; + case 2223: + if (str.equals("ET")) { + c = 'A'; + break; + } + break; + case 2243: + if (str.equals("FI")) { + c = 'B'; + break; + } + break; + case 2244: + if (str.equals("FJ")) { + c = 'C'; + break; + } + break; + case 2245: + if (str.equals("FK")) { + c = 'D'; + break; + } + break; + case 2247: + if (str.equals("FM")) { + c = 'E'; + break; + } + break; + case 2249: + if (str.equals("FO")) { + c = 'F'; + break; + } + break; + case 2252: + if (str.equals("FR")) { + c = 'G'; + break; + } + break; + case 2266: + if (str.equals("GA")) { + c = 'H'; + break; + } + break; + case 2267: + if (str.equals("GB")) { + c = 'I'; + break; + } + break; + case 2269: + if (str.equals("GD")) { + c = 'J'; + break; + } + break; + case 2270: + if (str.equals("GE")) { + c = 'K'; + break; + } + break; + case 2271: + if (str.equals("GF")) { + c = 'L'; + break; + } + break; + case 2272: + if (str.equals("GG")) { + c = 'M'; + break; + } + break; + case 2273: + if (str.equals("GH")) { + c = 'N'; + break; + } + break; + case 2274: + if (str.equals("GI")) { + c = 'O'; + break; + } + break; + case 2277: + if (str.equals("GL")) { + c = 'P'; + break; + } + break; + case 2278: + if (str.equals("GM")) { + c = 'Q'; + break; + } + break; + case 2279: + if (str.equals("GN")) { + c = 'R'; + break; + } + break; + case 2281: + if (str.equals("GP")) { + c = 'S'; + break; + } + break; + case 2282: + if (str.equals("GQ")) { + c = 'T'; + break; + } + break; + case 2283: + if (str.equals("GR")) { + c = 'U'; + break; + } + break; + case 2285: + if (str.equals("GT")) { + c = 'V'; + break; + } + break; + case 2286: + if (str.equals("GU")) { + c = 'W'; + break; + } + break; + case 2288: + if (str.equals("GW")) { + c = 'X'; + break; + } + break; + case 2290: + if (str.equals("GY")) { + c = 'Y'; + break; + } + break; + case 2307: + if (str.equals("HK")) { + c = 'Z'; + break; + } + break; + case 2310: + if (str.equals("HN")) { + c = '['; + break; + } + break; + case 2314: + if (str.equals("HR")) { + c = '\\'; + break; + } + break; + case 2316: + if (str.equals("HT")) { + c = ']'; + break; + } + break; + case 2317: + if (str.equals("HU")) { + c = '^'; + break; + } + break; + case 2331: + if (str.equals("ID")) { + c = '_'; + break; + } + break; + case 2332: + if (str.equals("IE")) { + c = '`'; + break; + } + break; + case 2339: + if (str.equals("IL")) { + c = 'a'; + break; + } + break; + case 2340: + if (str.equals("IM")) { + c = 'b'; + break; + } + break; + case 2341: + if (str.equals("IN")) { + c = 'c'; + break; + } + break; + case 2342: + if (str.equals("IO")) { + c = 'd'; + break; + } + break; + case 2344: + if (str.equals("IQ")) { + c = 'e'; + break; + } + break; + case 2345: + if (str.equals("IR")) { + c = 'f'; + break; + } + break; + case 2346: + if (str.equals("IS")) { + c = 'g'; + break; + } + break; + case 2347: + if (str.equals("IT")) { + c = 'h'; + break; + } + break; + case 2363: + if (str.equals("JE")) { + c = 'i'; + break; + } + break; + case 2371: + if (str.equals("JM")) { + c = 'j'; + break; + } + break; + case 2373: + if (str.equals("JO")) { + c = 'k'; + break; + } + break; + case 2374: + if (str.equals("JP")) { + c = 'l'; + break; + } + break; + case 2394: + if (str.equals("KE")) { + c = 'm'; + break; + } + break; + case 2396: + if (str.equals("KG")) { + c = 'n'; + break; + } + break; + case 2397: + if (str.equals("KH")) { + c = 'o'; + break; + } + break; + case 2398: + if (str.equals("KI")) { + c = 'p'; + break; + } + break; + case 2402: + if (str.equals("KM")) { + c = 'q'; + break; + } + break; + case 2405: + if (str.equals("KP")) { + c = 'r'; + break; + } + break; + case 2407: + if (str.equals("KR")) { + c = 's'; + break; + } + break; + case 2412: + if (str.equals("KW")) { + c = 't'; + break; + } + break; + case 2414: + if (str.equals("KY")) { + c = 'u'; + break; + } + break; + case 2415: + if (str.equals("KZ")) { + c = 'v'; + break; + } + break; + case 2421: + if (str.equals("LA")) { + c = 'w'; + break; + } + break; + case 2422: + if (str.equals("LB")) { + c = 'x'; + break; + } + break; + case 2423: + if (str.equals("LC")) { + c = 'y'; + break; + } + break; + case 2429: + if (str.equals("LI")) { + c = 'z'; + break; + } + break; + case 2431: + if (str.equals("LK")) { + c = '{'; + break; + } + break; + case 2438: + if (str.equals("LR")) { + c = '|'; + break; + } + break; + case 2439: + if (str.equals("LS")) { + c = '}'; + break; + } + break; + case 2440: + if (str.equals("LT")) { + c = '~'; + break; + } + break; + case 2441: + if (str.equals("LU")) { + c = 127; + break; + } + break; + case 2442: + if (str.equals("LV")) { + c = 128; + break; + } + break; + case 2445: + if (str.equals("LY")) { + c = 129; + break; + } + break; + case 2452: + if (str.equals("MA")) { + c = 130; + break; + } + break; + case 2454: + if (str.equals("MC")) { + c = 131; + break; + } + break; + case 2455: + if (str.equals("MD")) { + c = 132; + break; + } + break; + case 2456: + if (str.equals("ME")) { + c = 133; + break; + } + break; + case 2457: + if (str.equals("MF")) { + c = 134; + break; + } + break; + case 2458: + if (str.equals("MG")) { + c = 135; + break; + } + break; + case 2459: + if (str.equals("MH")) { + c = 136; + break; + } + break; + case 2462: + if (str.equals("MK")) { + c = 137; + break; + } + break; + case 2463: + if (str.equals("ML")) { + c = 138; + break; + } + break; + case 2464: + if (str.equals("MM")) { + c = 139; + break; + } + break; + case 2465: + if (str.equals("MN")) { + c = 140; + break; + } + break; + case 2466: + if (str.equals("MO")) { + c = 141; + break; + } + break; + case 2467: + if (str.equals("MP")) { + c = 142; + break; + } + break; + case 2468: + if (str.equals("MQ")) { + c = 143; + break; + } + break; + case 2469: + if (str.equals("MR")) { + c = 144; + break; + } + break; + case 2470: + if (str.equals("MS")) { + c = 145; + break; + } + break; + case 2471: + if (str.equals("MT")) { + c = 146; + break; + } + break; + case 2472: + if (str.equals("MU")) { + c = 147; + break; + } + break; + case 2473: + if (str.equals("MV")) { + c = 148; + break; + } + break; + case 2474: + if (str.equals("MW")) { + c = 149; + break; + } + break; + case 2475: + if (str.equals("MX")) { + c = 150; + break; + } + break; + case 2476: + if (str.equals("MY")) { + c = 151; + break; + } + break; + case 2477: + if (str.equals("MZ")) { + c = 152; + break; + } + break; + case 2483: + if (str.equals("NA")) { + c = 153; + break; + } + break; + case 2485: + if (str.equals("NC")) { + c = 154; + break; + } + break; + case 2487: + if (str.equals("NE")) { + c = 155; + break; + } + break; + case 2489: + if (str.equals("NG")) { + c = 156; + break; + } + break; + case 2491: + if (str.equals("NI")) { + c = 157; + break; + } + break; + case 2494: + if (str.equals("NL")) { + c = 158; + break; + } + break; + case 2497: + if (str.equals("NO")) { + c = 159; + break; + } + break; + case 2498: + if (str.equals("NP")) { + c = 160; + break; + } + break; + case GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES /* 2500 */: + if (str.equals("NR")) { + c = 161; + break; + } + break; + case 2503: + if (str.equals("NU")) { + c = 162; + break; + } + break; + case 2508: + if (str.equals("NZ")) { + c = 163; + break; + } + break; + case 2526: + if (str.equals("OM")) { + c = 164; + break; + } + break; + case 2545: + if (str.equals("PA")) { + c = 165; + break; + } + break; + case 2549: + if (str.equals("PE")) { + c = 166; + break; + } + break; + case 2550: + if (str.equals("PF")) { + c = 167; + break; + } + break; + case 2551: + if (str.equals("PG")) { + c = 168; + break; + } + break; + case 2552: + if (str.equals("PH")) { + c = 169; + break; + } + break; + case 2555: + if (str.equals("PK")) { + c = 170; + break; + } + break; + case 2556: + if (str.equals("PL")) { + c = 171; + break; + } + break; + case 2557: + if (str.equals("PM")) { + c = 172; + break; + } + break; + case 2562: + if (str.equals("PR")) { + c = 173; + break; + } + break; + case 2563: + if (str.equals("PS")) { + c = 174; + break; + } + break; + case 2564: + if (str.equals("PT")) { + c = 175; + break; + } + break; + case 2567: + if (str.equals("PW")) { + c = 176; + break; + } + break; + case 2569: + if (str.equals("PY")) { + c = 177; + break; + } + break; + case 2576: + if (str.equals("QA")) { + c = 178; + break; + } + break; + case 2611: + if (str.equals("RE")) { + c = 179; + break; + } + break; + case 2621: + if (str.equals("RO")) { + c = 180; + break; + } + break; + case 2625: + if (str.equals("RS")) { + c = 181; + break; + } + break; + case 2627: + if (str.equals("RU")) { + c = 182; + break; + } + break; + case 2629: + if (str.equals("RW")) { + c = 183; + break; + } + break; + case 2638: + if (str.equals("SA")) { + c = 184; + break; + } + break; + case 2639: + if (str.equals("SB")) { + c = 185; + break; + } + break; + case 2640: + if (str.equals("SC")) { + c = 186; + break; + } + break; + case 2641: + if (str.equals("SD")) { + c = 187; + break; + } + break; + case 2642: + if (str.equals("SE")) { + c = 188; + break; + } + break; + case 2644: + if (str.equals("SG")) { + c = 189; + break; + } + break; + case 2645: + if (str.equals("SH")) { + c = 190; + break; + } + break; + case 2646: + if (str.equals("SI")) { + c = 191; + break; + } + break; + case 2647: + if (str.equals("SJ")) { + c = 192; + break; + } + break; + case 2648: + if (str.equals("SK")) { + c = 193; + break; + } + break; + case 2649: + if (str.equals("SL")) { + c = 194; + break; + } + break; + case 2650: + if (str.equals("SM")) { + c = 195; + break; + } + break; + case 2651: + if (str.equals("SN")) { + c = 196; + break; + } + break; + case 2652: + if (str.equals("SO")) { + c = 197; + break; + } + break; + case 2655: + if (str.equals("SR")) { + c = 198; + break; + } + break; + case 2656: + if (str.equals("SS")) { + c = 199; + break; + } + break; + case 2657: + if (str.equals("ST")) { + c = 200; + break; + } + break; + case 2659: + if (str.equals("SV")) { + c = 201; + break; + } + break; + case 2661: + if (str.equals("SX")) { + c = 202; + break; + } + break; + case 2662: + if (str.equals("SY")) { + c = 203; + break; + } + break; + case 2663: + if (str.equals("SZ")) { + c = 204; + break; + } + break; + case 2671: + if (str.equals("TC")) { + c = 205; + break; + } + break; + case 2672: + if (str.equals("TD")) { + c = 206; + break; + } + break; + case 2675: + if (str.equals("TG")) { + c = 207; + break; + } + break; + case 2676: + if (str.equals("TH")) { + c = 208; + break; + } + break; + case 2678: + if (str.equals("TJ")) { + c = 209; + break; + } + break; + case 2680: + if (str.equals("TL")) { + c = 210; + break; + } + break; + case 2681: + if (str.equals("TM")) { + c = 211; + break; + } + break; + case 2682: + if (str.equals("TN")) { + c = 212; + break; + } + break; + case 2683: + if (str.equals("TO")) { + c = 213; + break; + } + break; + case 2686: + if (str.equals("TR")) { + c = 214; + break; + } + break; + case 2688: + if (str.equals("TT")) { + c = 215; + break; + } + break; + case 2690: + if (str.equals("TV")) { + c = 216; + break; + } + break; + case 2691: + if (str.equals("TW")) { + c = 217; + break; + } + break; + case 2694: + if (str.equals("TZ")) { + c = 218; + break; + } + break; + case 2700: + if (str.equals("UA")) { + c = 219; + break; + } + break; + case 2706: + if (str.equals("UG")) { + c = 220; + break; + } + break; + case 2718: + if (str.equals("US")) { + c = 221; + break; + } + break; + case 2724: + if (str.equals("UY")) { + c = 222; + break; + } + break; + case 2725: + if (str.equals("UZ")) { + c = 223; + break; + } + break; + case 2733: + if (str.equals("VC")) { + c = 224; + break; + } + break; + case 2735: + if (str.equals("VE")) { + c = 225; + break; + } + break; + case 2737: + if (str.equals("VG")) { + c = 226; + break; + } + break; + case 2739: + if (str.equals("VI")) { + c = 227; + break; + } + break; + case 2744: + if (str.equals("VN")) { + c = 228; + break; + } + break; + case 2751: + if (str.equals("VU")) { + c = 229; + break; + } + break; + case 2767: + if (str.equals("WF")) { + c = 230; + break; + } + break; + case 2780: + if (str.equals("WS")) { + c = 231; + break; + } + break; + case 2803: + if (str.equals("XK")) { + c = 232; + break; + } + break; + case 2828: + if (str.equals("YE")) { + c = 233; + break; + } + break; + case 2843: + if (str.equals("YT")) { + c = 234; + break; + } + break; + case 2855: + if (str.equals("ZA")) { + c = 235; + break; + } + break; + case 2867: + if (str.equals("ZM")) { + c = 236; + break; + } + break; + case 2877: + if (str.equals("ZW")) { + c = 237; + break; + } + break; + } + switch (c) { + case 0: + case 26: + case 'P': + case 'y': + iArr = new int[]{1, 2, 0, 0, 2, 2}; + break; + case 1: + iArr = new int[]{1, 4, 4, 4, 3, 2}; + break; + case 2: + case ']': + case 155: + case 187: + case 196: + case 206: + case HideBottomViewOnScrollBehavior.ENTER_ANIMATION_DURATION /* 225 */: + case 233: + iArr = new int[]{4, 4, 4, 4, 2, 2}; + break; + case 3: + iArr = new int[]{2, 3, 1, 2, 2, 2}; + break; + case 4: + case 25: + case '3': + case '9': + case 'J': + case 145: + case 224: + iArr = new int[]{1, 2, 2, 2, 2, 2}; + break; + case 5: + case 16: + case 'u': + iArr = new int[]{1, 2, 0, 1, 2, 2}; + break; + case 6: + iArr = new int[]{2, 3, 2, 4, 2, 2}; + break; + case 7: + case ',': + iArr = new int[]{3, 4, 3, 2, 2, 2}; + break; + case '\b': + case '?': + case 'd': + case 162: + case 190: + case 199: + case 216: + iArr = new int[]{4, 2, 2, 2, 2, 2}; + break; + case '\t': + iArr = new int[]{2, 4, 1, 1, 2, 2}; + break; + case '\n': + iArr = new int[]{2, 2, 2, 3, 2, 2}; + break; + case 11: + case '(': + case 'g': + case 188: + case 193: + iArr = new int[]{0, 0, 0, 0, 0, 2}; + break; + case '\f': + iArr = new int[]{0, 1, 0, 1, 2, 2}; + break; + case '\r': + case 'W': + iArr = new int[]{1, 2, 4, 4, 2, 2}; + break; + case 14: + case 'O': + case 'z': + case 142: + case 172: + case 192: + case 195: + iArr = new int[]{0, 2, 2, 2, 2, 2}; + break; + case 15: + case 154: + iArr = new int[]{3, 2, 4, 4, 2, 2}; + break; + case 17: + case 'F': + case 'M': + iArr = new int[]{0, 2, 0, 0, 2, 2}; + break; + case 18: + case 151: + iArr = new int[]{2, 1, 3, 3, 2, 2}; + break; + case 19: + iArr = new int[]{0, 0, 3, 3, 2, 2}; + break; + case 20: + iArr = new int[]{4, 3, 4, 3, 2, 2}; + break; + case 21: + case '5': + case 191: + iArr = new int[]{0, 0, 0, 0, 1, 2}; + break; + case 22: + iArr = new int[]{1, 2, 2, 4, 4, 2}; + break; + case 23: + case ';': + case 203: + case 210: + iArr = new int[]{4, 3, 4, 4, 2, 2}; + break; + case 24: + iArr = new int[]{4, 4, 3, 4, 2, 2}; + break; + case 27: + iArr = new int[]{3, 2, 1, 1, 2, 2}; + break; + case 28: + iArr = new int[]{1, 3, 3, 2, 2, 2}; + break; + case 29: + iArr = new int[]{1, 2, 2, 0, 2, 2}; + break; + case 30: + case 198: + iArr = new int[]{2, 3, 2, 2, 2, 2}; + break; + case 31: + iArr = new int[]{4, 2, 2, 3, 2, 2}; + break; + case ' ': + iArr = new int[]{3, 1, 3, 2, 2, 2}; + break; + case '!': + case 'Y': + iArr = new int[]{3, 4, 1, 0, 2, 2}; + break; + case '\"': + iArr = new int[]{0, 1, 1, 3, 2, 2}; + break; + case '#': + iArr = new int[]{2, 4, 2, 2, 2, 2}; + break; + case '$': + iArr = new int[]{0, 2, 1, 2, 4, 1}; + break; + case '%': + iArr = new int[]{4, 2, 3, 1, 2, 2}; + break; + case '&': + iArr = new int[]{4, 2, 3, 2, 2, 2}; + break; + case '\'': + case FontUtils.MAX_FONT_SCALING /* 150 */: + iArr = new int[]{2, 4, 3, 4, 2, 2}; + break; + case ')': + iArr = new int[]{3, 3, 3, 4, 2, 2}; + break; + case '*': + iArr = new int[]{2, 2, 2, 1, 2, 2}; + break; + case '+': + case 171: + case 221: + iArr = new int[]{1, 1, 2, 2, 3, 2}; + break; + case '-': + iArr = new int[]{2, 0, 2, 2, 3, 1}; + break; + case '.': + iArr = new int[]{2, 2, 4, 2, 2, 2}; + break; + case '/': + iArr = new int[]{2, 2, 4, 4, 2, 2}; + break; + case '0': + case 168: + iArr = new int[]{4, 4, 3, 2, 2, 2}; + break; + case '1': + iArr = new int[]{2, 3, 1, 0, 2, 2}; + break; + case '2': + iArr = new int[]{2, 2, 0, 0, 2, 2}; + break; + case '4': + iArr = new int[]{1, 0, 0, 0, 1, 2}; + break; + case '6': + iArr = new int[]{0, 0, 2, 2, 1, 2}; + break; + case '7': + iArr = new int[]{4, 1, 4, 4, 2, 2}; + break; + case '8': + iArr = new int[]{0, 0, 1, 0, 0, 2}; + break; + case ':': + case 'j': + iArr = new int[]{3, 4, 4, 4, 2, 2}; + break; + case '<': + iArr = new int[]{2, 4, 2, 1, 2, 2}; + break; + case '=': + case '~': + case 128: + case 146: + iArr = new int[]{0, 0, 0, 0, 2, 2}; + break; + case '>': + iArr = new int[]{3, 4, 2, 3, 2, 2}; + break; + case '@': + case '`': + iArr = new int[]{0, 1, 1, 1, 2, 2}; + break; + case 'A': + iArr = new int[]{4, 4, 3, 1, 2, 2}; + break; + case 'B': + iArr = new int[]{0, 0, 0, 1, 0, 2}; + break; + case 'C': + iArr = new int[]{3, 1, 3, 3, 2, 2}; + break; + case 'D': + case 'r': + case 130: + case 152: + case 200: + iArr = new int[]{3, 2, 2, 2, 2, 2}; + break; + case 'E': + iArr = new int[]{3, 2, 4, 2, 2, 2}; + break; + case 'G': + iArr = new int[]{1, 1, 2, 1, 1, 1}; + break; + case 'H': + iArr = new int[]{2, 3, 1, 1, 2, 2}; + break; + case 'I': + iArr = new int[]{0, 0, 1, 1, 2, 3}; + break; + case 'K': + iArr = new int[]{1, 1, 1, 3, 2, 2}; + break; + case 'L': + case 'S': + case 143: + iArr = new int[]{2, 1, 2, 3, 2, 2}; + break; + case 'N': + iArr = new int[]{3, 2, 3, 2, 2, 2}; + break; + case 'Q': + case 230: + iArr = new int[]{4, 2, 2, 4, 2, 2}; + break; + case 'R': + iArr = new int[]{4, 3, 4, 2, 2, 2}; + break; + case 'T': + iArr = new int[]{4, 2, 3, 4, 2, 2}; + break; + case 'U': + case '\\': + case 132: + case 137: + case 181: + iArr = new int[]{1, 0, 0, 0, 2, 2}; + break; + case 'V': + iArr = new int[]{2, 3, 2, 1, 2, 2}; + break; + case 'X': + case 218: + iArr = new int[]{3, 4, 3, 3, 2, 2}; + break; + case 'Z': + iArr = new int[]{0, 1, 2, 3, 2, 0}; + break; + case '[': + case 170: + case 197: + iArr = new int[]{3, 2, 3, 3, 2, 2}; + break; + case '^': + iArr = new int[]{0, 0, 0, 1, 3, 2}; + break; + case '_': + iArr = new int[]{3, 2, 3, 3, 3, 2}; + break; + case 'a': + iArr = new int[]{1, 1, 2, 3, 4, 2}; + break; + case 'b': + iArr = new int[]{0, 2, 0, 1, 2, 2}; + break; + case 'c': + iArr = new int[]{1, 1, 3, 2, 4, 3}; + break; + case 'e': + case 220: + iArr = new int[]{3, 3, 3, 3, 2, 2}; + break; + case 'f': + iArr = new int[]{3, 0, 1, 1, 3, 0}; + break; + case 'h': + iArr = new int[]{0, 1, 0, 1, 1, 2}; + break; + case 'i': + iArr = new int[]{3, 2, 1, 2, 2, 2}; + break; + case 'k': + case 133: + iArr = new int[]{1, 0, 0, 1, 2, 2}; + break; + case 'l': + iArr = new int[]{0, 1, 0, 1, 1, 1}; + break; + case 'm': + iArr = new int[]{3, 3, 2, 2, 2, 2}; + break; + case 'n': + iArr = new int[]{2, 1, 1, 1, 2, 2}; + break; + case 'o': + iArr = new int[]{1, 1, 4, 2, 2, 2}; + break; + case 'p': + case 'q': + case 129: + case 185: + iArr = new int[]{4, 2, 4, 3, 2, 2}; + break; + case 's': + iArr = new int[]{0, 0, 1, 3, 4, 4}; + break; + case 't': + iArr = new int[]{1, 1, 0, 0, 0, 2}; + break; + case 'v': + iArr = new int[]{1, 1, 2, 2, 2, 2}; + break; + case 'w': + case 222: + iArr = new int[]{2, 2, 1, 2, 2, 2}; + break; + case 'x': + iArr = new int[]{3, 2, 1, 4, 2, 2}; + break; + case '{': + iArr = new int[]{3, 1, 3, 4, 4, 2}; + break; + case '|': + iArr = new int[]{3, 4, 4, 3, 2, 2}; + break; + case '}': + iArr = new int[]{3, 3, 4, 3, 2, 2}; + break; + case 127: + iArr = new int[]{1, 0, 2, 2, 2, 2}; + break; + case 131: + iArr = new int[]{0, 2, 2, 0, 2, 2}; + break; + case 134: + iArr = new int[]{1, 2, 1, 0, 2, 2}; + break; + case 135: + iArr = new int[]{3, 4, 2, 2, 2, 2}; + break; + case 136: + iArr = new int[]{3, 2, 2, 4, 2, 2}; + break; + case 138: + iArr = new int[]{4, 3, 3, 1, 2, 2}; + break; + case 139: + iArr = new int[]{2, 4, 3, 3, 2, 2}; + break; + case 140: + iArr = new int[]{2, 0, 1, 2, 2, 2}; + break; + case 141: + iArr = new int[]{0, 2, 4, 4, 2, 2}; + break; + case 144: + iArr = new int[]{4, 1, 3, 4, 2, 2}; + break; + case 147: + iArr = new int[]{3, 1, 1, 2, 2, 2}; + break; + case 148: + iArr = new int[]{3, 4, 1, 4, 2, 2}; + break; + case 149: + iArr = new int[]{4, 2, 1, 0, 2, 2}; + break; + case 153: + iArr = new int[]{4, 3, 2, 2, 2, 2}; + break; + case 156: + iArr = new int[]{3, 4, 1, 1, 2, 2}; + break; + case 157: + iArr = new int[]{2, 3, 4, 3, 2, 2}; + break; + case 158: + iArr = new int[]{0, 0, 3, 2, 0, 4}; + break; + case 159: + iArr = new int[]{0, 0, 2, 0, 0, 2}; + break; + case 160: + iArr = new int[]{2, 1, 4, 3, 2, 2}; + break; + case 161: + iArr = new int[]{3, 2, 2, 0, 2, 2}; + break; + case 163: + iArr = new int[]{1, 0, 1, 2, 4, 2}; + break; + case 164: + iArr = new int[]{2, 3, 1, 3, 4, 2}; + break; + case 165: + iArr = new int[]{1, 3, 3, 3, 2, 2}; + break; + case 166: + iArr = new int[]{2, 3, 4, 4, 4, 2}; + break; + case 167: + iArr = new int[]{2, 3, 3, 1, 2, 2}; + break; + case 169: + iArr = new int[]{2, 2, 3, 3, 3, 2}; + break; + case 173: + iArr = new int[]{2, 3, 2, 2, 3, 3}; + break; + case 174: + iArr = new int[]{3, 4, 1, 2, 2, 2}; + break; + case HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION /* 175 */: + iArr = new int[]{0, 1, 0, 0, 2, 2}; + break; + case 176: + iArr = new int[]{2, 2, 4, 1, 2, 2}; + break; + case 177: + iArr = new int[]{2, 2, 3, 2, 2, 2}; + break; + case 178: + iArr = new int[]{2, 4, 2, 4, 4, 2}; + break; + case 179: + iArr = new int[]{1, 1, 1, 2, 2, 2}; + break; + case BaseTransientBottomBar.ANIMATION_FADE_DURATION /* 180 */: + iArr = new int[]{0, 0, 1, 1, 1, 2}; + break; + case 182: + iArr = new int[]{0, 0, 0, 1, 2, 2}; + break; + case 183: + iArr = new int[]{3, 4, 3, 0, 2, 2}; + break; + case 184: + case 212: + case 226: + iArr = new int[]{2, 2, 1, 1, 2, 2}; + break; + case 186: + iArr = new int[]{4, 3, 0, 2, 2, 2}; + break; + case 189: + iArr = new int[]{1, 1, 2, 3, 1, 4}; + break; + case 194: + iArr = new int[]{4, 3, 4, 1, 2, 2}; + break; + case 201: + iArr = new int[]{2, 2, 3, 3, 2, 2}; + break; + case 202: + case 205: + iArr = new int[]{2, 2, 1, 0, 2, 2}; + break; + case 204: + iArr = new int[]{4, 3, 2, 4, 2, 2}; + break; + case 207: + iArr = new int[]{3, 3, 2, 0, 2, 2}; + break; + case 208: + iArr = new int[]{0, 3, 2, 3, 3, 0}; + break; + case 209: + iArr = new int[]{4, 2, 4, 4, 2, 2}; + break; + case 211: + iArr = new int[]{4, 2, 4, 2, 2, 2}; + break; + case 213: + iArr = new int[]{4, 2, 3, 3, 2, 2}; + break; + case 214: + iArr = new int[]{1, 1, 0, 1, 2, 2}; + break; + case 215: + iArr = new int[]{1, 4, 1, 1, 2, 2}; + break; + case 217: + iArr = new int[]{0, 0, 0, 0, 0, 0}; + break; + case 219: + iArr = new int[]{0, 3, 1, 1, 2, 2}; + break; + case 223: + iArr = new int[]{2, 2, 3, 4, 2, 2}; + break; + case 227: + iArr = new int[]{1, 2, 1, 3, 2, 2}; + break; + case 228: + iArr = new int[]{0, 3, 3, 4, 2, 2}; + break; + case 229: + iArr = new int[]{4, 2, 2, 1, 2, 2}; + break; + case 231: + iArr = new int[]{3, 1, 2, 1, 2, 2}; + break; + case 232: + iArr = new int[]{1, 1, 1, 1, 2, 2}; + break; + case 234: + iArr = new int[]{4, 1, 1, 1, 2, 2}; + break; + case 235: + iArr = new int[]{3, 3, 1, 1, 1, 2}; + break; + case 236: + iArr = new int[]{3, 3, 4, 2, 2, 2}; + break; + case 237: + iArr = new int[]{3, 2, 4, 3, 2, 2}; + break; + default: + iArr = new int[]{2, 2, 2, 2, 2, 2}; + break; + } + HashMap hashMap = new HashMap(8); + hashMap.put(0, 1000000L); + b.i.b.b.p pVar2 = p.a; + hashMap.put(2, pVar2.get(iArr[0])); + hashMap.put(3, p.f931b.get(iArr[1])); + hashMap.put(4, p.c.get(iArr[2])); + hashMap.put(5, p.d.get(iArr[3])); + hashMap.put(10, p.e.get(iArr[4])); + hashMap.put(9, p.f.get(iArr[5])); + hashMap.put(7, pVar2.get(iArr[0])); + this.f933b = hashMap; + this.c = 2000; + this.d = g.a; + this.e = true; + } + } + str = b.i.a.f.e.o.f.o1(Locale.getDefault().getCountry()); + b.i.b.b.p pVar = p.a; + str.hashCode(); + c = 65535; + switch (str.hashCode()) { + case 2083: + break; + case 2084: + break; + case 2085: + break; + case 2086: + break; + case 2088: + break; + case 2091: + break; + case 2092: + break; + case 2094: + break; + case 2096: + break; + case 2097: + break; + case 2098: + break; + case 2099: + break; + case 2100: + break; + case 2102: + break; + case 2103: + break; + case 2105: + break; + case 2111: + break; + case 2112: + break; + case 2114: + break; + case 2115: + break; + case 2116: + break; + case 2117: + break; + case 2118: + break; + case 2119: + break; + case 2120: + break; + case 2122: + break; + case 2123: + break; + case 2124: + break; + case 2125: + break; + case 2127: + break; + case 2128: + break; + case 2129: + break; + case 2130: + break; + case 2133: + break; + case 2135: + break; + case 2136: + break; + case 2142: + break; + case 2145: + break; + case 2147: + break; + case 2148: + break; + case 2149: + break; + case 2150: + break; + case 2152: + break; + case 2153: + break; + case 2154: + break; + case 2155: + break; + case 2156: + break; + case 2159: + break; + case 2162: + break; + case 2163: + break; + case 2164: + break; + case 2165: + break; + case 2166: + break; + case 2167: + break; + case 2177: + break; + case 2182: + break; + case 2183: + break; + case 2185: + break; + case 2187: + break; + case 2198: + break; + case 2206: + break; + case 2208: + break; + case 2210: + break; + case 2221: + break; + case 2222: + break; + case 2223: + break; + case 2243: + break; + case 2244: + break; + case 2245: + break; + case 2247: + break; + case 2249: + break; + case 2252: + break; + case 2266: + break; + case 2267: + break; + case 2269: + break; + case 2270: + break; + case 2271: + break; + case 2272: + break; + case 2273: + break; + case 2274: + break; + case 2277: + break; + case 2278: + break; + case 2279: + break; + case 2281: + break; + case 2282: + break; + case 2283: + break; + case 2285: + break; + case 2286: + break; + case 2288: + break; + case 2290: + break; + case 2307: + break; + case 2310: + break; + case 2314: + break; + case 2316: + break; + case 2317: + break; + case 2331: + break; + case 2332: + break; + case 2339: + break; + case 2340: + break; + case 2341: + break; + case 2342: + break; + case 2344: + break; + case 2345: + break; + case 2346: + break; + case 2347: + break; + case 2363: + break; + case 2371: + break; + case 2373: + break; + case 2374: + break; + case 2394: + break; + case 2396: + break; + case 2397: + break; + case 2398: + break; + case 2402: + break; + case 2405: + break; + case 2407: + break; + case 2412: + break; + case 2414: + break; + case 2415: + break; + case 2421: + break; + case 2422: + break; + case 2423: + break; + case 2429: + break; + case 2431: + break; + case 2438: + break; + case 2439: + break; + case 2440: + break; + case 2441: + break; + case 2442: + break; + case 2445: + break; + case 2452: + break; + case 2454: + break; + case 2455: + break; + case 2456: + break; + case 2457: + break; + case 2458: + break; + case 2459: + break; + case 2462: + break; + case 2463: + break; + case 2464: + break; + case 2465: + break; + case 2466: + break; + case 2467: + break; + case 2468: + break; + case 2469: + break; + case 2470: + break; + case 2471: + break; + case 2472: + break; + case 2473: + break; + case 2474: + break; + case 2475: + break; + case 2476: + break; + case 2477: + break; + case 2483: + break; + case 2485: + break; + case 2487: + break; + case 2489: + break; + case 2491: + break; + case 2494: + break; + case 2497: + break; + case 2498: + break; + case GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES /* 2500 */: + break; + case 2503: + break; + case 2508: + break; + case 2526: + break; + case 2545: + break; + case 2549: + break; + case 2550: + break; + case 2551: + break; + case 2552: + break; + case 2555: + break; + case 2556: + break; + case 2557: + break; + case 2562: + break; + case 2563: + break; + case 2564: + break; + case 2567: + break; + case 2569: + break; + case 2576: + break; + case 2611: + break; + case 2621: + break; + case 2625: + break; + case 2627: + break; + case 2629: + break; + case 2638: + break; + case 2639: + break; + case 2640: + break; + case 2641: + break; + case 2642: + break; + case 2644: + break; + case 2645: + break; + case 2646: + break; + case 2647: + break; + case 2648: + break; + case 2649: + break; + case 2650: + break; + case 2651: + break; + case 2652: + break; + case 2655: + break; + case 2656: + break; + case 2657: + break; + case 2659: + break; + case 2661: + break; + case 2662: + break; + case 2663: + break; + case 2671: + break; + case 2672: + break; + case 2675: + break; + case 2676: + break; + case 2678: + break; + case 2680: + break; + case 2681: + break; + case 2682: + break; + case 2683: + break; + case 2686: + break; + case 2688: + break; + case 2690: + break; + case 2691: + break; + case 2694: + break; + case 2700: + break; + case 2706: + break; + case 2718: + break; + case 2724: + break; + case 2725: + break; + case 2733: + break; + case 2735: + break; + case 2737: + break; + case 2739: + break; + case 2744: + break; + case 2751: + break; + case 2767: + break; + case 2780: + break; + case 2803: + break; + case 2828: + break; + case 2843: + break; + case 2855: + break; + case 2867: + break; + case 2877: + break; + } + switch (c) { + } + HashMap hashMap = new HashMap(8); + hashMap.put(0, 1000000L); + b.i.b.b.p pVar2 = p.a; + hashMap.put(2, pVar2.get(iArr[0])); + hashMap.put(3, p.f931b.get(iArr[1])); + hashMap.put(4, p.c.get(iArr[2])); + hashMap.put(5, p.d.get(iArr[3])); + hashMap.put(10, p.e.get(iArr[4])); + hashMap.put(9, p.f.get(iArr[5])); + hashMap.put(7, pVar2.get(iArr[0])); + this.f933b = hashMap; + this.c = 2000; + this.d = g.a; + this.e = true; + } + } + + public p(Context context, Map map, int i, g gVar, boolean z2, a aVar) { + v vVar; + int i2; + this.h = q.a(map); + this.j = new x(i); + this.k = gVar; + this.l = z2; + if (context != null) { + synchronized (v.class) { + if (v.a == null) { + v.a = new v(context); + } + vVar = v.a; + } + synchronized (vVar.d) { + i2 = vVar.e; + } + this.p = i2; + this.f932s = h(i2); + b bVar = new b(this); + Iterator> it = vVar.c.iterator(); + while (it.hasNext()) { + WeakReference next = it.next(); + if (next.get() == null) { + vVar.c.remove(next); + } + } + vVar.c.add(new WeakReference<>(bVar)); + vVar.f968b.post(new c(vVar, bVar)); + return; + } + this.p = 0; + this.f932s = h(0); + } + + public static boolean i(n nVar, boolean z2) { + return z2 && !nVar.c(8); + } + + @Override // b.i.a.c.e3.a0 + public synchronized void a(l lVar, n nVar, boolean z2) { + if (i(nVar, z2)) { + d.D(this.m > 0); + long d2 = this.k.d(); + int i = (int) (d2 - this.n); + this.q += (long) i; + long j = this.r; + long j2 = this.o; + this.r = j + j2; + if (i > 0) { + this.j.a((int) Math.sqrt((double) j2), (((float) j2) * 8000.0f) / ((float) i)); + if (this.q >= 2000 || this.r >= Permission.VIEW_GUILD_ANALYTICS) { + this.f932s = (long) this.j.b(0.5f); + } + j(i, this.o, this.f932s); + this.n = d2; + this.o = 0; + } + this.m--; + } + } + + @Override // b.i.a.c.e3.a0 + public synchronized void b(l lVar, n nVar, boolean z2) { + if (i(nVar, z2)) { + if (this.m == 0) { + this.n = this.k.d(); + } + this.m++; + } + } + + @Override // b.i.a.c.e3.f + public a0 c() { + return this; + } + + @Override // b.i.a.c.e3.f + public void d(f.a aVar) { + this.i.a(aVar); + } + + @Override // b.i.a.c.e3.a0 + public synchronized void e(l lVar, n nVar, boolean z2, int i) { + if (i(nVar, z2)) { + this.o += (long) i; + } + } + + @Override // b.i.a.c.e3.f + public void f(Handler handler, f.a aVar) { + f.a.C0090a aVar2 = this.i; + Objects.requireNonNull(aVar2); + aVar2.a(aVar); + aVar2.a.add(new f.a.C0090a.C0091a(handler, aVar)); + } + + @Override // b.i.a.c.e3.a0 + public void g(l lVar, n nVar, boolean z2) { + } + + public final long h(int i) { + Long l = this.h.get(Integer.valueOf(i)); + if (l == null) { + l = this.h.get(0); + } + if (l == null) { + l = 1000000L; + } + return l.longValue(); + } + + public final void j(int i, long j, long j2) { + if (i != 0 || j != 0 || j2 != this.t) { + this.t = j2; + Iterator it = this.i.a.iterator(); + while (it.hasNext()) { + f.a.C0090a.C0091a next = it.next(); + if (!next.c) { + next.a.post(new a(next, i, j, j2)); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/q.java b/app/src/main/java/b/i/a/c/e3/q.java new file mode 100644 index 0000000000..432215be2d --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/q.java @@ -0,0 +1,234 @@ +package b.i.a.c.e3; + +import android.content.Context; +import android.net.Uri; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.e3.l; +import b.i.a.c.e3.r; +import b.i.a.c.f3.e0; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.exoplayer2.upstream.AssetDataSource; +import com.google.android.exoplayer2.upstream.ContentDataSource; +import com.google.android.exoplayer2.upstream.FileDataSource; +import com.google.android.exoplayer2.upstream.RawResourceDataSource; +import com.google.android.exoplayer2.upstream.UdpDataSource; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: DefaultDataSource */ +public final class q implements l { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final List f934b = new ArrayList(); + public final l c; + @Nullable + public l d; + @Nullable + public l e; + @Nullable + public l f; + @Nullable + public l g; + @Nullable + public l h; + @Nullable + public l i; + @Nullable + public l j; + @Nullable + public l k; + + /* compiled from: DefaultDataSource */ + public static final class a implements l.a { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final l.a f935b; + + public a(Context context) { + r.b bVar = new r.b(); + this.a = context.getApplicationContext(); + this.f935b = bVar; + } + + /* renamed from: b */ + public q a() { + return new q(this.a, this.f935b.a()); + } + } + + public q(Context context, l lVar) { + this.a = context.getApplicationContext(); + Objects.requireNonNull(lVar); + this.c = lVar; + } + + @Override // b.i.a.c.e3.l + public long a(n nVar) throws IOException { + boolean z2 = true; + d.D(this.k == null); + String scheme = nVar.a.getScheme(); + Uri uri = nVar.a; + int i = e0.a; + String scheme2 = uri.getScheme(); + if (!TextUtils.isEmpty(scheme2) && !"file".equals(scheme2)) { + z2 = false; + } + if (z2) { + String path = nVar.a.getPath(); + if (path == null || !path.startsWith("/android_asset/")) { + if (this.d == null) { + FileDataSource fileDataSource = new FileDataSource(); + this.d = fileDataSource; + p(fileDataSource); + } + this.k = this.d; + } else { + if (this.e == null) { + AssetDataSource assetDataSource = new AssetDataSource(this.a); + this.e = assetDataSource; + p(assetDataSource); + } + this.k = this.e; + } + } else if (ModelAuditLogEntry.CHANGE_KEY_ASSET.equals(scheme)) { + if (this.e == null) { + AssetDataSource assetDataSource2 = new AssetDataSource(this.a); + this.e = assetDataSource2; + p(assetDataSource2); + } + this.k = this.e; + } else if ("content".equals(scheme)) { + if (this.f == null) { + ContentDataSource contentDataSource = new ContentDataSource(this.a); + this.f = contentDataSource; + p(contentDataSource); + } + this.k = this.f; + } else if ("rtmp".equals(scheme)) { + if (this.g == null) { + try { + l lVar = (l) Class.forName("com.google.android.exoplayer2.ext.rtmp.RtmpDataSource").getConstructor(new Class[0]).newInstance(new Object[0]); + this.g = lVar; + p(lVar); + } catch (ClassNotFoundException unused) { + Log.w("DefaultDataSource", "Attempting to play RTMP stream without depending on the RTMP extension"); + } catch (Exception e) { + throw new RuntimeException("Error instantiating RTMP extension", e); + } + if (this.g == null) { + this.g = this.c; + } + } + this.k = this.g; + } else if ("udp".equals(scheme)) { + if (this.h == null) { + UdpDataSource udpDataSource = new UdpDataSource(); + this.h = udpDataSource; + p(udpDataSource); + } + this.k = this.h; + } else if ("data".equals(scheme)) { + if (this.i == null) { + i iVar = new i(); + this.i = iVar; + p(iVar); + } + this.k = this.i; + } else if ("rawresource".equals(scheme) || "android.resource".equals(scheme)) { + if (this.j == null) { + RawResourceDataSource rawResourceDataSource = new RawResourceDataSource(this.a); + this.j = rawResourceDataSource; + p(rawResourceDataSource); + } + this.k = this.j; + } else { + this.k = this.c; + } + return this.k.a(nVar); + } + + @Override // b.i.a.c.e3.l + public void close() throws IOException { + l lVar = this.k; + if (lVar != null) { + l lVar2 = null; + try { + lVar.close(); + } finally { + this.k = lVar2; + } + } + } + + @Override // b.i.a.c.e3.l + public void d(a0 a0Var) { + Objects.requireNonNull(a0Var); + this.c.d(a0Var); + this.f934b.add(a0Var); + l lVar = this.d; + if (lVar != null) { + lVar.d(a0Var); + } + l lVar2 = this.e; + if (lVar2 != null) { + lVar2.d(a0Var); + } + l lVar3 = this.f; + if (lVar3 != null) { + lVar3.d(a0Var); + } + l lVar4 = this.g; + if (lVar4 != null) { + lVar4.d(a0Var); + } + l lVar5 = this.h; + if (lVar5 != null) { + lVar5.d(a0Var); + } + l lVar6 = this.i; + if (lVar6 != null) { + lVar6.d(a0Var); + } + l lVar7 = this.j; + if (lVar7 != null) { + lVar7.d(a0Var); + } + } + + @Override // b.i.a.c.e3.l + public Map> j() { + l lVar = this.k; + return lVar == null ? Collections.emptyMap() : lVar.j(); + } + + @Override // b.i.a.c.e3.l + @Nullable + public Uri n() { + l lVar = this.k; + if (lVar == null) { + return null; + } + return lVar.n(); + } + + public final void p(l lVar) { + for (int i = 0; i < this.f934b.size(); i++) { + lVar.d(this.f934b.get(i)); + } + } + + @Override // b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) throws IOException { + l lVar = this.k; + Objects.requireNonNull(lVar); + return lVar.read(bArr, i, i2); + } +} diff --git a/app/src/main/java/b/i/a/c/e3/r.java b/app/src/main/java/b/i/a/c/e3/r.java new file mode 100644 index 0000000000..389fddcdf0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/r.java @@ -0,0 +1,504 @@ +package b.i.a.c.e3; + +import android.net.Uri; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.b.a.h; +import com.adjust.sdk.Constants; +import com.discord.analytics.utils.RegistrationSteps; +import com.discord.api.permission.Permission; +import com.google.android.exoplayer2.upstream.DataSourceException; +import com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException; +import com.google.android.exoplayer2.upstream.HttpDataSource$InvalidContentTypeException; +import com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException; +import java.io.IOException; +import java.io.InputStream; +import java.io.InterruptedIOException; +import java.io.OutputStream; +import java.lang.reflect.Method; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.NoRouteToHostException; +import java.net.URL; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import java.util.zip.GZIPInputStream; +/* compiled from: DefaultHttpDataSource */ +public class r extends g implements l { + public final boolean e; + public final int f; + public final int g; + @Nullable + public final String h; + @Nullable + public final u i; + public final u j = new u(); + public final boolean k; + @Nullable + public h l = null; + @Nullable + public n m; + @Nullable + public HttpURLConnection n; + @Nullable + public InputStream o; + public boolean p; + public int q; + public long r; + + /* renamed from: s reason: collision with root package name */ + public long f936s; + + /* compiled from: DefaultHttpDataSource */ + public static final class b implements t { + public final u a = new u(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public String f937b; + public int c = 8000; + public int d = 8000; + + /* renamed from: b */ + public r a() { + return new r(this.f937b, this.c, this.d, false, this.a, null, false, null); + } + } + + public r(String str, int i, int i2, boolean z2, u uVar, h hVar, boolean z3, a aVar) { + super(true); + this.h = str; + this.f = i; + this.g = i2; + this.e = z2; + this.i = uVar; + this.k = z3; + } + + public static void x(@Nullable HttpURLConnection httpURLConnection, long j) { + int i; + if (httpURLConnection != null && (i = e0.a) >= 19 && i <= 20) { + try { + InputStream inputStream = httpURLConnection.getInputStream(); + if (j == -1) { + if (inputStream.read() == -1) { + return; + } + } else if (j <= Permission.SEND_MESSAGES) { + return; + } + String name = inputStream.getClass().getName(); + if ("com.android.okhttp.internal.http.HttpTransport$ChunkedInputStream".equals(name) || "com.android.okhttp.internal.http.HttpTransport$FixedLengthInputStream".equals(name)) { + Class superclass = inputStream.getClass().getSuperclass(); + Objects.requireNonNull(superclass); + Method declaredMethod = superclass.getDeclaredMethod("unexpectedEndOfInput", new Class[0]); + declaredMethod.setAccessible(true); + declaredMethod.invoke(inputStream, new Object[0]); + } + } catch (Exception unused) { + } + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:16:0x0050, code lost: + if (r5 != 0) goto L_0x0054; + */ + /* JADX WARNING: Removed duplicated region for block: B:33:0x00b2 */ + /* JADX WARNING: Removed duplicated region for block: B:47:0x0146 */ + /* JADX WARNING: Removed duplicated region for block: B:48:0x0148 */ + /* JADX WARNING: Removed duplicated region for block: B:81:0x01ca */ + @Override // b.i.a.c.e3.l + public long a(n nVar) throws HttpDataSource$HttpDataSourceException { + byte[] bArr; + long j; + boolean z2; + long j2; + long j3; + this.m = nVar; + this.f936s = 0; + this.r = 0; + r(nVar); + try { + HttpURLConnection v = v(nVar); + this.n = v; + this.q = v.getResponseCode(); + String responseMessage = v.getResponseMessage(); + int i = this.q; + if (i < 200 || i > 299) { + Map> headerFields = v.getHeaderFields(); + if (this.q == 416) { + String headerField = v.getHeaderField("Content-Range"); + Pattern pattern = v.a; + if (!TextUtils.isEmpty(headerField)) { + Matcher matcher = v.f939b.matcher(headerField); + if (matcher.matches()) { + z2 = true; + String group = matcher.group(1); + Objects.requireNonNull(group); + j = Long.parseLong(group); + if (nVar.f == j) { + this.p = z2; + s(nVar); + long j4 = nVar.g; + if (j4 != -1) { + return j4; + } + return 0; + } + } + } + z2 = true; + j = -1; + if (nVar.f == j) { + } + } + InputStream errorStream = v.getErrorStream(); + if (errorStream != null) { + try { + bArr = e0.K(errorStream); + } catch (IOException unused) { + bArr = e0.f; + } + } else { + bArr = e0.f; + } + t(); + throw new HttpDataSource$InvalidResponseCodeException(this.q, responseMessage, this.q == 416 ? new DataSourceException(2008) : null, headerFields, nVar, bArr); + } + String contentType = v.getContentType(); + h hVar = this.l; + if (hVar == null || hVar.apply(contentType)) { + if (this.q == 200) { + j2 = nVar.f; + } + j2 = 0; + boolean equalsIgnoreCase = "gzip".equalsIgnoreCase(v.getHeaderField("Content-Encoding")); + if (!equalsIgnoreCase) { + long j5 = nVar.g; + if (j5 != -1) { + this.r = j5; + } else { + String headerField2 = v.getHeaderField("Content-Length"); + String headerField3 = v.getHeaderField("Content-Range"); + Pattern pattern2 = v.a; + if (!TextUtils.isEmpty(headerField2)) { + try { + j3 = Long.parseLong(headerField2); + } catch (NumberFormatException unused2) { + StringBuilder sb = new StringBuilder(String.valueOf(headerField2).length() + 28); + sb.append("Unexpected Content-Length ["); + sb.append(headerField2); + sb.append("]"); + Log.e("HttpUtil", sb.toString()); + } + if (!TextUtils.isEmpty(headerField3)) { + Matcher matcher2 = v.a.matcher(headerField3); + if (matcher2.matches()) { + try { + String group2 = matcher2.group(2); + Objects.requireNonNull(group2); + long parseLong = Long.parseLong(group2); + String group3 = matcher2.group(1); + Objects.requireNonNull(group3); + long parseLong2 = (parseLong - Long.parseLong(group3)) + 1; + if (j3 < 0) { + j3 = parseLong2; + } else if (j3 != parseLong2) { + StringBuilder sb2 = new StringBuilder(String.valueOf(headerField2).length() + 26 + String.valueOf(headerField3).length()); + sb2.append("Inconsistent headers ["); + sb2.append(headerField2); + sb2.append("] ["); + sb2.append(headerField3); + sb2.append("]"); + Log.w("HttpUtil", sb2.toString()); + j3 = Math.max(j3, parseLong2); + } + } catch (NumberFormatException unused3) { + StringBuilder sb3 = new StringBuilder(String.valueOf(headerField3).length() + 27); + sb3.append("Unexpected Content-Range ["); + sb3.append(headerField3); + sb3.append("]"); + Log.e("HttpUtil", sb3.toString()); + } + } + } + this.r = j3 == -1 ? j3 - j2 : -1; + } + j3 = -1; + if (!TextUtils.isEmpty(headerField3)) { + } + this.r = j3 == -1 ? j3 - j2 : -1; + } + } else { + this.r = nVar.g; + } + try { + this.o = v.getInputStream(); + if (equalsIgnoreCase) { + this.o = new GZIPInputStream(this.o); + } + this.p = true; + s(nVar); + try { + y(j2, nVar); + return this.r; + } catch (IOException e) { + t(); + if (e instanceof HttpDataSource$HttpDataSourceException) { + throw ((HttpDataSource$HttpDataSourceException) e); + } + throw new HttpDataSource$HttpDataSourceException(e, nVar, 2000, 1); + } + } catch (IOException e2) { + t(); + throw new HttpDataSource$HttpDataSourceException(e2, nVar, 2000, 1); + } + } else { + t(); + throw new HttpDataSource$InvalidContentTypeException(contentType, nVar); + } + } catch (IOException e3) { + t(); + throw HttpDataSource$HttpDataSourceException.b(e3, nVar, 1); + } + } + + @Override // b.i.a.c.e3.l + public void close() throws HttpDataSource$HttpDataSourceException { + boolean z2 = false; + InputStream inputStream = null; + try { + InputStream inputStream2 = this.o; + if (inputStream2 != null) { + long j = this.r; + long j2 = -1; + if (j != -1) { + j2 = j - this.f936s; + } + x(this.n, j2); + try { + inputStream2.close(); + } catch (IOException e) { + n nVar = this.m; + int i = e0.a; + throw new HttpDataSource$HttpDataSourceException(e, nVar, 2000, 3); + } + } + } finally { + this.o = inputStream; + t(); + if (this.p) { + this.p = z2; + q(); + } + } + } + + @Override // b.i.a.c.e3.g, b.i.a.c.e3.l + public Map> j() { + HttpURLConnection httpURLConnection = this.n; + return httpURLConnection == null ? Collections.emptyMap() : httpURLConnection.getHeaderFields(); + } + + @Override // b.i.a.c.e3.l + @Nullable + public Uri n() { + HttpURLConnection httpURLConnection = this.n; + if (httpURLConnection == null) { + return null; + } + return Uri.parse(httpURLConnection.getURL().toString()); + } + + @Override // b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) throws HttpDataSource$HttpDataSourceException { + if (i2 == 0) { + return 0; + } + try { + long j = this.r; + if (j != -1) { + long j2 = j - this.f936s; + if (j2 == 0) { + return -1; + } + i2 = (int) Math.min((long) i2, j2); + } + InputStream inputStream = this.o; + int i3 = e0.a; + int read = inputStream.read(bArr, i, i2); + if (read != -1) { + this.f936s += (long) read; + p(read); + return read; + } + return -1; + } catch (IOException e) { + n nVar = this.m; + int i4 = e0.a; + throw HttpDataSource$HttpDataSourceException.b(e, nVar, 2); + } + } + + public final void t() { + HttpURLConnection httpURLConnection = this.n; + if (httpURLConnection != null) { + try { + httpURLConnection.disconnect(); + } catch (Exception e) { + q.b("DefaultHttpDataSource", "Unexpected error while disconnecting", e); + } + this.n = null; + } + } + + public final URL u(URL url, @Nullable String str, n nVar) throws HttpDataSource$HttpDataSourceException { + if (str != null) { + try { + URL url2 = new URL(url, str); + String protocol = url2.getProtocol(); + if (!Constants.SCHEME.equals(protocol) && !"http".equals(protocol)) { + String valueOf = String.valueOf(protocol); + throw new HttpDataSource$HttpDataSourceException(valueOf.length() != 0 ? "Unsupported protocol redirect: ".concat(valueOf) : new String("Unsupported protocol redirect: "), nVar, 2001, 1); + } else if (this.e || protocol.equals(url.getProtocol())) { + return url2; + } else { + String protocol2 = url.getProtocol(); + StringBuilder Q = b.d.b.a.a.Q(protocol.length() + b.d.b.a.a.b(protocol2, 41), "Disallowed cross-protocol redirect (", protocol2, " to ", protocol); + Q.append(")"); + throw new HttpDataSource$HttpDataSourceException(Q.toString(), nVar, 2001, 1); + } + } catch (MalformedURLException e) { + throw new HttpDataSource$HttpDataSourceException(e, nVar, 2001, 1); + } + } else { + throw new HttpDataSource$HttpDataSourceException("Null location redirect", nVar, 2001, 1); + } + } + + public final HttpURLConnection v(n nVar) throws IOException { + HttpURLConnection w; + URL url = new URL(nVar.a.toString()); + int i = nVar.c; + byte[] bArr = nVar.d; + long j = nVar.f; + long j2 = nVar.g; + boolean c = nVar.c(1); + if (!this.e && !this.k) { + return w(url, i, bArr, j, j2, c, true, nVar.e); + } + int i2 = 0; + URL url2 = url; + int i3 = i; + byte[] bArr2 = bArr; + while (true) { + int i4 = i2 + 1; + if (i2 <= 20) { + w = w(url2, i3, bArr2, j, j2, c, false, nVar.e); + int responseCode = w.getResponseCode(); + String headerField = w.getHeaderField("Location"); + if ((i3 == 1 || i3 == 3) && (responseCode == 300 || responseCode == 301 || responseCode == 302 || responseCode == 303 || responseCode == 307 || responseCode == 308)) { + w.disconnect(); + url2 = u(url2, headerField, nVar); + i3 = i3; + } else if (i3 != 2 || (responseCode != 300 && responseCode != 301 && responseCode != 302 && responseCode != 303)) { + break; + } else { + w.disconnect(); + if (!(this.k && responseCode == 302)) { + bArr2 = null; + i3 = 1; + } else { + i3 = i3; + } + url2 = u(url2, headerField, nVar); + } + j = j; + i2 = i4; + j2 = j2; + } else { + throw new HttpDataSource$HttpDataSourceException(new NoRouteToHostException(b.d.b.a.a.f(31, "Too many redirects: ", i4)), nVar, 2001, 1); + } + } + return w; + } + + public final HttpURLConnection w(URL url, int i, @Nullable byte[] bArr, long j, long j2, boolean z2, boolean z3, Map map) throws IOException { + String str; + HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection(); + httpURLConnection.setConnectTimeout(this.f); + httpURLConnection.setReadTimeout(this.g); + HashMap hashMap = new HashMap(); + u uVar = this.i; + if (uVar != null) { + hashMap.putAll(uVar.a()); + } + hashMap.putAll(this.j.a()); + hashMap.putAll(map); + for (Map.Entry entry : hashMap.entrySet()) { + httpURLConnection.setRequestProperty((String) entry.getKey(), (String) entry.getValue()); + } + Pattern pattern = v.a; + if (j == 0 && j2 == -1) { + str = null; + } else { + StringBuilder sb = new StringBuilder(); + sb.append("bytes="); + sb.append(j); + sb.append("-"); + if (j2 != -1) { + sb.append((j + j2) - 1); + } + str = sb.toString(); + } + if (str != null) { + httpURLConnection.setRequestProperty("Range", str); + } + String str2 = this.h; + if (str2 != null) { + httpURLConnection.setRequestProperty("User-Agent", str2); + } + httpURLConnection.setRequestProperty("Accept-Encoding", z2 ? "gzip" : RegistrationSteps.IDENTITY); + httpURLConnection.setInstanceFollowRedirects(z3); + httpURLConnection.setDoOutput(bArr != null); + httpURLConnection.setRequestMethod(n.b(i)); + if (bArr != null) { + httpURLConnection.setFixedLengthStreamingMode(bArr.length); + httpURLConnection.connect(); + OutputStream outputStream = httpURLConnection.getOutputStream(); + outputStream.write(bArr); + outputStream.close(); + } else { + httpURLConnection.connect(); + } + return httpURLConnection; + } + + public final void y(long j, n nVar) throws IOException { + if (j != 0) { + byte[] bArr = new byte[4096]; + while (j > 0) { + int min = (int) Math.min(j, (long) 4096); + InputStream inputStream = this.o; + int i = e0.a; + int read = inputStream.read(bArr, 0, min); + if (Thread.currentThread().isInterrupted()) { + throw new HttpDataSource$HttpDataSourceException(new InterruptedIOException(), nVar, 2000, 1); + } else if (read != -1) { + j -= (long) read; + p(read); + } else { + throw new HttpDataSource$HttpDataSourceException(nVar, 2008, 1); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/e3/s.java b/app/src/main/java/b/i/a/c/e3/s.java new file mode 100644 index 0000000000..b203959e76 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/s.java @@ -0,0 +1,7 @@ +package b.i.a.c.e3; +/* compiled from: DefaultLoadErrorHandlingPolicy */ +public class s implements w { + public int a(int i) { + return i == 7 ? 6 : 3; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/t.java b/app/src/main/java/b/i/a/c/e3/t.java new file mode 100644 index 0000000000..7963e5fc6c --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/t.java @@ -0,0 +1,6 @@ +package b.i.a.c.e3; + +import b.i.a.c.e3.l; +/* compiled from: HttpDataSource */ +public interface t extends l.a { +} diff --git a/app/src/main/java/b/i/a/c/e3/u.java b/app/src/main/java/b/i/a/c/e3/u.java new file mode 100644 index 0000000000..01de814a1c --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/u.java @@ -0,0 +1,21 @@ +package b.i.a.c.e3; + +import androidx.annotation.Nullable; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +/* compiled from: HttpDataSource */ +public final class u { + public final Map a = new HashMap(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public Map f938b; + + public synchronized Map a() { + if (this.f938b == null) { + this.f938b = Collections.unmodifiableMap(new HashMap(this.a)); + } + return this.f938b; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/v.java b/app/src/main/java/b/i/a/c/e3/v.java new file mode 100644 index 0000000000..bbea3eb99c --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/v.java @@ -0,0 +1,10 @@ +package b.i.a.c.e3; + +import java.util.regex.Pattern; +/* compiled from: HttpUtil */ +public final class v { + public static final Pattern a = Pattern.compile("bytes (\\d+)-(\\d+)/(?:\\d+|\\*)"); + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f939b = Pattern.compile("bytes (?:(?:\\d+-\\d+)|\\*)/(\\d+)"); +} diff --git a/app/src/main/java/b/i/a/c/e3/w.java b/app/src/main/java/b/i/a/c/e3/w.java new file mode 100644 index 0000000000..e6310bb665 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/w.java @@ -0,0 +1,4 @@ +package b.i.a.c.e3; +/* compiled from: LoadErrorHandlingPolicy */ +public interface w { +} diff --git a/app/src/main/java/b/i/a/c/e3/x.java b/app/src/main/java/b/i/a/c/e3/x.java new file mode 100644 index 0000000000..98f9b4ee25 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/x.java @@ -0,0 +1,105 @@ +package b.i.a.c.e3; + +import java.util.ArrayList; +import java.util.Collections; +/* compiled from: SlidingPercentile */ +public class x { + public static final /* synthetic */ int a = 0; + + /* renamed from: b reason: collision with root package name */ + public final int f940b; + public final ArrayList c = new ArrayList<>(); + public final b[] d = new b[5]; + public int e = -1; + public int f; + public int g; + public int h; + + /* compiled from: SlidingPercentile */ + public static class b { + public int a; + + /* renamed from: b reason: collision with root package name */ + public int f941b; + public float c; + + public b() { + } + + public b(a aVar) { + } + } + + public x(int i) { + this.f940b = i; + } + + public void a(int i, float f) { + b bVar; + if (this.e != 1) { + Collections.sort(this.c, d.j); + this.e = 1; + } + int i2 = this.h; + if (i2 > 0) { + b[] bVarArr = this.d; + int i3 = i2 - 1; + this.h = i3; + bVar = bVarArr[i3]; + } else { + bVar = new b(null); + } + int i4 = this.f; + this.f = i4 + 1; + bVar.a = i4; + bVar.f941b = i; + bVar.c = f; + this.c.add(bVar); + this.g += i; + while (true) { + int i5 = this.g; + int i6 = this.f940b; + if (i5 > i6) { + int i7 = i5 - i6; + b bVar2 = this.c.get(0); + int i8 = bVar2.f941b; + if (i8 <= i7) { + this.g -= i8; + this.c.remove(0); + int i9 = this.h; + if (i9 < 5) { + b[] bVarArr2 = this.d; + this.h = i9 + 1; + bVarArr2[i9] = bVar2; + } + } else { + bVar2.f941b = i8 - i7; + this.g -= i7; + } + } else { + return; + } + } + } + + public float b(float f) { + if (this.e != 0) { + Collections.sort(this.c, c.j); + this.e = 0; + } + float f2 = f * ((float) this.g); + int i = 0; + for (int i2 = 0; i2 < this.c.size(); i2++) { + b bVar = this.c.get(i2); + i += bVar.f941b; + if (((float) i) >= f2) { + return bVar.c; + } + } + if (this.c.isEmpty()) { + return Float.NaN; + } + ArrayList arrayList = this.c; + return arrayList.get(arrayList.size() - 1).c; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/y.java b/app/src/main/java/b/i/a/c/e3/y.java new file mode 100644 index 0000000000..acccb04d31 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/y.java @@ -0,0 +1,66 @@ +package b.i.a.c.e3; + +import android.net.Uri; +import androidx.annotation.Nullable; +import java.io.IOException; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: StatsDataSource */ +public final class y implements l { + public final l a; + + /* renamed from: b reason: collision with root package name */ + public long f942b; + public Uri c = Uri.EMPTY; + public Map> d = Collections.emptyMap(); + + public y(l lVar) { + Objects.requireNonNull(lVar); + this.a = lVar; + } + + @Override // b.i.a.c.e3.l + public long a(n nVar) throws IOException { + this.c = nVar.a; + this.d = Collections.emptyMap(); + long a = this.a.a(nVar); + Uri n = n(); + Objects.requireNonNull(n); + this.c = n; + this.d = j(); + return a; + } + + @Override // b.i.a.c.e3.l + public void close() throws IOException { + this.a.close(); + } + + @Override // b.i.a.c.e3.l + public void d(a0 a0Var) { + Objects.requireNonNull(a0Var); + this.a.d(a0Var); + } + + @Override // b.i.a.c.e3.l + public Map> j() { + return this.a.j(); + } + + @Override // b.i.a.c.e3.l + @Nullable + public Uri n() { + return this.a.n(); + } + + @Override // b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) throws IOException { + int read = this.a.read(bArr, i, i2); + if (read != -1) { + this.f942b += (long) read; + } + return read; + } +} diff --git a/app/src/main/java/b/i/a/c/e3/z.java b/app/src/main/java/b/i/a/c/e3/z.java new file mode 100644 index 0000000000..5087e0e773 --- /dev/null +++ b/app/src/main/java/b/i/a/c/e3/z.java @@ -0,0 +1,85 @@ +package b.i.a.c.e3; + +import android.net.Uri; +import androidx.annotation.Nullable; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: TeeDataSource */ +public final class z implements l { + public final l a; + + /* renamed from: b reason: collision with root package name */ + public final j f943b; + public boolean c; + public long d; + + public z(l lVar, j jVar) { + this.a = lVar; + this.f943b = jVar; + } + + @Override // b.i.a.c.e3.l + public long a(n nVar) throws IOException { + n nVar2 = nVar; + long a = this.a.a(nVar2); + this.d = a; + if (a == 0) { + return 0; + } + long j = nVar2.g; + if (j == -1 && a != -1) { + nVar2 = j == a ? nVar2 : new n(nVar2.a, nVar2.f928b, nVar2.c, nVar2.d, nVar2.e, nVar2.f + 0, a, nVar2.h, nVar2.i, nVar2.j); + } + this.c = true; + this.f943b.a(nVar2); + return this.d; + } + + @Override // b.i.a.c.e3.l + public void close() throws IOException { + boolean z2 = false; + try { + this.a.close(); + } finally { + if (this.c) { + this.c = z2; + this.f943b.close(); + } + } + } + + @Override // b.i.a.c.e3.l + public void d(a0 a0Var) { + Objects.requireNonNull(a0Var); + this.a.d(a0Var); + } + + @Override // b.i.a.c.e3.l + public Map> j() { + return this.a.j(); + } + + @Override // b.i.a.c.e3.l + @Nullable + public Uri n() { + return this.a.n(); + } + + @Override // b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) throws IOException { + if (this.d == 0) { + return -1; + } + int read = this.a.read(bArr, i, i2); + if (read > 0) { + this.f943b.write(bArr, i, read); + long j = this.d; + if (j != -1) { + this.d = j - ((long) read); + } + } + return read; + } +} diff --git a/app/src/main/java/b/i/a/c/f.java b/app/src/main/java/b/i/a/c/f.java new file mode 100644 index 0000000000..9be4816f2b --- /dev/null +++ b/app/src/main/java/b/i/a/c/f.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import android.content.Context; +import b.i.b.a.l; +/* compiled from: lambda */ +public final /* synthetic */ class f implements l { + public final /* synthetic */ Context j; + + public /* synthetic */ f(Context context) { + this.j = context; + } + + @Override // b.i.b.a.l + public final Object get() { + return new b1(this.j); + } +} diff --git a/app/src/main/java/b/i/a/c/f0.java b/app/src/main/java/b/i/a/c/f0.java new file mode 100644 index 0000000000..b45cd11d52 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f0.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class f0 implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ f0(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).b0(this.a.o); + } +} diff --git a/app/src/main/java/b/i/a/c/f1.java b/app/src/main/java/b/i/a/c/f1.java new file mode 100644 index 0000000000..aa9d90ccff --- /dev/null +++ b/app/src/main/java/b/i/a/c/f1.java @@ -0,0 +1,1073 @@ +package b.i.a.c; + +import android.annotation.SuppressLint; +import android.net.Uri; +import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; +import android.util.Log; +import android.util.Pair; +import android.util.SparseBooleanArray; +import android.view.SurfaceView; +import android.view.TextureView; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.c0; +import b.i.a.c.a3.k0; +import b.i.a.c.a3.o0; +import b.i.a.c.b2; +import b.i.a.c.c3.h; +import b.i.a.c.c3.j; +import b.i.a.c.c3.q; +import b.i.a.c.c3.r; +import b.i.a.c.e1; +import b.i.a.c.e3.f; +import b.i.a.c.f3.b0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.g; +import b.i.a.c.f3.n; +import b.i.a.c.f3.o; +import b.i.a.c.f3.p; +import b.i.a.c.g3.y; +import b.i.a.c.h1; +import b.i.a.c.o2; +import b.i.a.c.p1; +import b.i.a.c.s2.g1; +import b.i.a.c.y1; +import b.i.b.b.h0; +import com.google.android.exoplayer2.IllegalSeekPositionException; +import com.google.android.exoplayer2.PlaybackException; +import com.google.android.exoplayer2.metadata.Metadata; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Random; +import java.util.concurrent.CopyOnWriteArraySet; +/* compiled from: ExoPlayerImpl */ +public final class f1 extends u0 { + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ int f944b = 0; + public int A; + public k0 B; + public y1.b C; + public p1 D; + public p1 E; + public w1 F; + public int G; + public long H; + public final r c; + public final y1.b d; + public final f2[] e; + public final q f; + public final o g; + public final h1.e h; + public final h1 i; + public final p j; + public final CopyOnWriteArraySet k; + public final o2.b l; + public final List m; + public final boolean n; + public final c0 o; + @Nullable + public final g1 p; + public final Looper q; + public final f r; + + /* renamed from: s reason: collision with root package name */ + public final long f945s; + public final long t; + public final g u; + public int v; + public boolean w; + + /* renamed from: x reason: collision with root package name */ + public int f946x; + + /* renamed from: y reason: collision with root package name */ + public int f947y; + + /* renamed from: z reason: collision with root package name */ + public boolean f948z; + + /* compiled from: ExoPlayerImpl */ + public static final class a implements t1 { + public final Object a; + + /* renamed from: b reason: collision with root package name */ + public o2 f949b; + + public a(Object obj, o2 o2Var) { + this.a = obj; + this.f949b = o2Var; + } + + @Override // b.i.a.c.t1 + public o2 a() { + return this.f949b; + } + + @Override // b.i.a.c.t1 + public Object getUid() { + return this.a; + } + } + + static { + i1.a("goog.exo.exoplayer"); + } + + @SuppressLint({"HandlerLeak"}) + public f1(f2[] f2VarArr, q qVar, c0 c0Var, n1 n1Var, f fVar, @Nullable g1 g1Var, boolean z2, j2 j2Var, long j, long j2, m1 m1Var, long j3, boolean z3, g gVar, Looper looper, @Nullable y1 y1Var, y1.b bVar) { + String hexString = Integer.toHexString(System.identityHashCode(this)); + String str = e0.e; + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(str, b.d.b.a.a.b(hexString, 30)), "Init ", hexString, " [", "ExoPlayerLib/2.16.0"); + Q.append("] ["); + Q.append(str); + Q.append("]"); + Log.i("ExoPlayerImpl", Q.toString()); + boolean z4 = false; + d.D(f2VarArr.length > 0); + this.e = f2VarArr; + Objects.requireNonNull(qVar); + this.f = qVar; + this.o = c0Var; + this.r = fVar; + this.p = g1Var; + this.n = z2; + this.f945s = j; + this.t = j2; + this.q = looper; + this.u = gVar; + this.v = 0; + this.j = new p<>(new CopyOnWriteArraySet(), looper, gVar, new u(y1Var)); + this.k = new CopyOnWriteArraySet<>(); + this.m = new ArrayList(); + this.B = new k0.a(0, new Random()); + this.c = new r(new h2[f2VarArr.length], new j[f2VarArr.length], p2.j, null); + this.l = new o2.b(); + SparseBooleanArray sparseBooleanArray = new SparseBooleanArray(); + int[] iArr = {1, 2, 3, 13, 14, 15, 16, 17, 18, 19, 20, 30}; + for (int i = 0; i < 12; i++) { + int i2 = iArr[i]; + d.D(!false); + sparseBooleanArray.append(i2, true); + } + if (qVar instanceof h) { + d.D(!false); + sparseBooleanArray.append(29, true); + } + n nVar = bVar.k; + for (int i3 = 0; i3 < nVar.c(); i3++) { + int b2 = nVar.b(i3); + d.D(true); + sparseBooleanArray.append(b2, true); + } + d.D(true); + n nVar2 = new n(sparseBooleanArray, null); + this.d = new y1.b(nVar2, null); + SparseBooleanArray sparseBooleanArray2 = new SparseBooleanArray(); + for (int i4 = 0; i4 < nVar2.c(); i4++) { + int b3 = nVar2.b(i4); + d.D(true); + sparseBooleanArray2.append(b3, true); + } + d.D(true); + sparseBooleanArray2.append(4, true); + d.D(true); + sparseBooleanArray2.append(10, true); + d.D(true); + this.C = new y1.b(new n(sparseBooleanArray2, null), null); + p1 p1Var = p1.j; + this.D = p1Var; + this.E = p1Var; + this.G = -1; + this.g = gVar.b(looper, null); + w wVar = new w(this); + this.h = wVar; + this.F = w1.h(this.c); + if (g1Var != null) { + d.D((g1Var.p == null || g1Var.m.f1067b.isEmpty()) ? true : z4); + g1Var.p = y1Var; + g1Var.q = g1Var.j.b(looper, null); + p pVar = g1Var.o; + g1Var.o = new p<>(pVar.d, looper, pVar.a, new b.i.a.c.s2.h(g1Var, y1Var)); + d0(g1Var); + fVar.f(new Handler(looper), g1Var); + } + this.i = new h1(f2VarArr, qVar, this.c, n1Var, fVar, this.v, this.w, g1Var, j2Var, m1Var, j3, z3, looper, gVar, wVar); + } + + public static long j0(w1 w1Var) { + o2.c cVar = new o2.c(); + o2.b bVar = new o2.b(); + w1Var.f1132b.h(w1Var.c.a, bVar); + long j = w1Var.d; + return j == -9223372036854775807L ? w1Var.f1132b.n(bVar.l, cVar).f1031z : bVar.n + j; + } + + public static boolean k0(w1 w1Var) { + return w1Var.f == 3 && w1Var.m && w1Var.n == 0; + } + + @Override // b.i.a.c.y1 + public List A() { + b.i.b.b.a aVar = b.i.b.b.p.k; + return h0.l; + } + + @Override // b.i.a.c.y1 + public int B() { + if (f()) { + return this.F.c.f821b; + } + return -1; + } + + @Override // b.i.a.c.y1 + public int C() { + int h02 = h0(); + if (h02 == -1) { + return 0; + } + return h02; + } + + @Override // b.i.a.c.y1 + public void E(int i) { + if (this.v != i) { + this.v = i; + ((b0.b) this.i.q.a(11, i, 0)).b(); + this.j.b(8, new k(i)); + r0(); + this.j.a(); + } + } + + @Override // b.i.a.c.y1 + public void F(@Nullable SurfaceView surfaceView) { + } + + @Override // b.i.a.c.y1 + public int G() { + return this.F.n; + } + + @Override // b.i.a.c.y1 + public p2 H() { + return this.F.j.d; + } + + @Override // b.i.a.c.y1 + public int I() { + return this.v; + } + + @Override // b.i.a.c.y1 + public long J() { + if (f()) { + w1 w1Var = this.F; + a0.a aVar = w1Var.c; + w1Var.f1132b.h(aVar.a, this.l); + return e0.M(this.l.a(aVar.f821b, aVar.c)); + } + o2 K = K(); + if (K.q()) { + return -9223372036854775807L; + } + return K.n(C(), this.a).b(); + } + + @Override // b.i.a.c.y1 + public o2 K() { + return this.F.f1132b; + } + + @Override // b.i.a.c.y1 + public Looper L() { + return this.q; + } + + @Override // b.i.a.c.y1 + public boolean M() { + return this.w; + } + + @Override // b.i.a.c.y1 + public long N() { + if (this.F.f1132b.q()) { + return this.H; + } + w1 w1Var = this.F; + if (w1Var.l.d != w1Var.c.d) { + return w1Var.f1132b.n(C(), this.a).b(); + } + long j = w1Var.r; + if (this.F.l.a()) { + w1 w1Var2 = this.F; + o2.b h = w1Var2.f1132b.h(w1Var2.l.a, this.l); + long c = h.c(this.F.l.f821b); + j = c == Long.MIN_VALUE ? h.m : c; + } + w1 w1Var3 = this.F; + return e0.M(m0(w1Var3.f1132b, w1Var3.l, j)); + } + + @Override // b.i.a.c.y1 + public void Q(@Nullable TextureView textureView) { + } + + @Override // b.i.a.c.y1 + public p1 S() { + return this.D; + } + + @Override // b.i.a.c.y1 + public long T() { + return e0.M(g0(this.F)); + } + + @Override // b.i.a.c.y1 + public long U() { + return this.f945s; + } + + @Override // b.i.a.c.y1 + public void a() { + w1 w1Var = this.F; + if (w1Var.f == 1) { + w1 e = w1Var.e(null); + w1 f = e.f(e.f1132b.q() ? 4 : 2); + this.f946x++; + ((b0.b) this.i.q.c(0)).b(); + s0(f, 1, 1, false, false, 5, -9223372036854775807L, -1); + } + } + + @Override // b.i.a.c.y1 + public x1 c() { + return this.F.o; + } + + public void d0(y1.c cVar) { + p pVar = this.j; + if (!pVar.g) { + Objects.requireNonNull(cVar); + pVar.d.add(new p.c<>(cVar)); + } + } + + public final p1 e0() { + o2 K = K(); + o1 o1Var = K.q() ? null : K.n(C(), this.a).p; + if (o1Var == null) { + return this.E; + } + p1.b a2 = this.E.a(); + p1 p1Var = o1Var.n; + if (p1Var != null) { + CharSequence charSequence = p1Var.l; + if (charSequence != null) { + a2.a = charSequence; + } + CharSequence charSequence2 = p1Var.m; + if (charSequence2 != null) { + a2.f1036b = charSequence2; + } + CharSequence charSequence3 = p1Var.n; + if (charSequence3 != null) { + a2.c = charSequence3; + } + CharSequence charSequence4 = p1Var.o; + if (charSequence4 != null) { + a2.d = charSequence4; + } + CharSequence charSequence5 = p1Var.p; + if (charSequence5 != null) { + a2.e = charSequence5; + } + CharSequence charSequence6 = p1Var.q; + if (charSequence6 != null) { + a2.f = charSequence6; + } + CharSequence charSequence7 = p1Var.r; + if (charSequence7 != null) { + a2.g = charSequence7; + } + Uri uri = p1Var.f1032s; + if (uri != null) { + a2.h = uri; + } + d2 d2Var = p1Var.t; + if (d2Var != null) { + a2.i = d2Var; + } + d2 d2Var2 = p1Var.u; + if (d2Var2 != null) { + a2.j = d2Var2; + } + byte[] bArr = p1Var.v; + if (bArr != null) { + Integer num = p1Var.w; + a2.k = (byte[]) bArr.clone(); + a2.l = num; + } + Uri uri2 = p1Var.f1033x; + if (uri2 != null) { + a2.m = uri2; + } + Integer num2 = p1Var.f1034y; + if (num2 != null) { + a2.n = num2; + } + Integer num3 = p1Var.f1035z; + if (num3 != null) { + a2.o = num3; + } + Integer num4 = p1Var.A; + if (num4 != null) { + a2.p = num4; + } + Boolean bool = p1Var.B; + if (bool != null) { + a2.q = bool; + } + Integer num5 = p1Var.C; + if (num5 != null) { + a2.r = num5; + } + Integer num6 = p1Var.D; + if (num6 != null) { + a2.r = num6; + } + Integer num7 = p1Var.E; + if (num7 != null) { + a2.f1037s = num7; + } + Integer num8 = p1Var.F; + if (num8 != null) { + a2.t = num8; + } + Integer num9 = p1Var.G; + if (num9 != null) { + a2.u = num9; + } + Integer num10 = p1Var.H; + if (num10 != null) { + a2.v = num10; + } + Integer num11 = p1Var.I; + if (num11 != null) { + a2.w = num11; + } + CharSequence charSequence8 = p1Var.J; + if (charSequence8 != null) { + a2.f1038x = charSequence8; + } + CharSequence charSequence9 = p1Var.K; + if (charSequence9 != null) { + a2.f1039y = charSequence9; + } + CharSequence charSequence10 = p1Var.L; + if (charSequence10 != null) { + a2.f1040z = charSequence10; + } + Integer num12 = p1Var.M; + if (num12 != null) { + a2.A = num12; + } + Integer num13 = p1Var.N; + if (num13 != null) { + a2.B = num13; + } + CharSequence charSequence11 = p1Var.O; + if (charSequence11 != null) { + a2.C = charSequence11; + } + CharSequence charSequence12 = p1Var.P; + if (charSequence12 != null) { + a2.D = charSequence12; + } + Bundle bundle = p1Var.Q; + if (bundle != null) { + a2.E = bundle; + } + } + return a2.a(); + } + + @Override // b.i.a.c.y1 + public boolean f() { + return this.F.c.a(); + } + + public b2 f0(b2.b bVar) { + return new b2(this.i, bVar, this.F.f1132b, C(), this.u, this.i.f993s); + } + + @Override // b.i.a.c.y1 + public long g() { + return e0.M(this.F.f1133s); + } + + public final long g0(w1 w1Var) { + return w1Var.f1132b.q() ? e0.B(this.H) : w1Var.c.a() ? w1Var.t : m0(w1Var.f1132b, w1Var.c, w1Var.t); + } + + @Override // b.i.a.c.y1 + public void h(int i, long j) { + o2 o2Var = this.F.f1132b; + if (i < 0 || (!o2Var.q() && i >= o2Var.p())) { + throw new IllegalSeekPositionException(o2Var, i, j); + } + int i2 = 1; + this.f946x++; + if (f()) { + Log.w("ExoPlayerImpl", "seekTo ignored because an ad is playing"); + h1.d dVar = new h1.d(this.F); + dVar.a(1); + f1 f1Var = ((w) this.h).a; + f1Var.g.b(new c0(f1Var, dVar)); + return; + } + if (this.F.f != 1) { + i2 = 2; + } + int C = C(); + w1 l0 = l0(this.F.f(i2), o2Var, i0(o2Var, i, j)); + ((b0.b) this.i.q.i(3, new h1.g(o2Var, i, e0.B(j)))).b(); + s0(l0, 0, 1, true, true, 1, g0(l0), C); + } + + public final int h0() { + if (this.F.f1132b.q()) { + return this.G; + } + w1 w1Var = this.F; + return w1Var.f1132b.h(w1Var.c.a, this.l).l; + } + + @Override // b.i.a.c.y1 + public y1.b i() { + return this.C; + } + + @Nullable + public final Pair i0(o2 o2Var, int i, long j) { + if (o2Var.q()) { + this.G = i; + if (j == -9223372036854775807L) { + j = 0; + } + this.H = j; + return null; + } + if (i == -1 || i >= o2Var.p()) { + i = o2Var.a(this.w); + j = o2Var.n(i, this.a).a(); + } + return o2Var.j(this.a, this.l, i, e0.B(j)); + } + + @Override // b.i.a.c.y1 + public boolean j() { + return this.F.m; + } + + @Override // b.i.a.c.y1 + public void k(boolean z2) { + if (this.w != z2) { + this.w = z2; + ((b0.b) this.i.q.a(12, z2 ? 1 : 0, 0)).b(); + this.j.b(9, new n(z2)); + r0(); + this.j.a(); + } + } + + @Override // b.i.a.c.y1 + public long l() { + return 3000; + } + + public final w1 l0(w1 w1Var, o2 o2Var, @Nullable Pair pair) { + r rVar; + a0.a aVar; + List list; + int i; + d.j(o2Var.q() || pair != null); + o2 o2Var2 = w1Var.f1132b; + w1 g = w1Var.g(o2Var); + if (o2Var.q()) { + a0.a aVar2 = w1.a; + a0.a aVar3 = w1.a; + long B = e0.B(this.H); + o0 o0Var = o0.j; + r rVar2 = this.c; + b.i.b.b.a aVar4 = b.i.b.b.p.k; + w1 a2 = g.b(aVar3, B, B, B, 0, o0Var, rVar2, h0.l).a(aVar3); + a2.r = a2.t; + return a2; + } + Object obj = g.c.a; + int i2 = e0.a; + boolean z2 = !obj.equals(pair.first); + a0.a aVar5 = z2 ? new a0.a(pair.first) : g.c; + long longValue = ((Long) pair.second).longValue(); + long B2 = e0.B(w()); + if (!o2Var2.q()) { + B2 -= o2Var2.h(obj, this.l).n; + } + if (z2 || longValue < B2) { + d.D(!aVar5.a()); + o0 o0Var2 = z2 ? o0.j : g.i; + if (z2) { + aVar = aVar5; + rVar = this.c; + } else { + aVar = aVar5; + rVar = g.j; + } + if (z2) { + b.i.b.b.a aVar6 = b.i.b.b.p.k; + list = h0.l; + } else { + list = g.k; + } + w1 a3 = g.b(aVar, longValue, longValue, longValue, 0, o0Var2, rVar, list).a(aVar); + a3.r = longValue; + return a3; + } + if (i == 0) { + int b2 = o2Var.b(g.l.a); + if (b2 == -1 || o2Var.f(b2, this.l).l != o2Var.h(aVar5.a, this.l).l) { + o2Var.h(aVar5.a, this.l); + long a4 = aVar5.a() ? this.l.a(aVar5.f821b, aVar5.c) : this.l.m; + g = g.b(aVar5, g.t, g.t, g.e, a4 - g.t, g.i, g.j, g.k).a(aVar5); + g.r = a4; + } + } else { + d.D(!aVar5.a()); + long max = Math.max(0L, g.f1133s - (longValue - B2)); + long j = g.r; + if (g.l.equals(g.c)) { + j = longValue + max; + } + g = g.b(aVar5, longValue, longValue, longValue, max, g.i, g.j, g.k); + g.r = j; + } + return g; + } + + @Override // b.i.a.c.y1 + public int m() { + if (this.F.f1132b.q()) { + return 0; + } + w1 w1Var = this.F; + return w1Var.f1132b.b(w1Var.c.a); + } + + public final long m0(o2 o2Var, a0.a aVar, long j) { + o2Var.h(aVar.a, this.l); + return j + this.l.n; + } + + @Override // b.i.a.c.y1 + public void n(@Nullable TextureView textureView) { + } + + public void n0() { + String str; + boolean z2; + String hexString = Integer.toHexString(System.identityHashCode(this)); + String str2 = e0.e; + HashSet hashSet = i1.a; + synchronized (i1.class) { + str = i1.f1002b; + } + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(str, b.d.b.a.a.b(str2, b.d.b.a.a.b(hexString, 36))), "Release ", hexString, " [", "ExoPlayerLib/2.16.0"); + b.d.b.a.a.q0(Q, "] [", str2, "] [", str); + Q.append("]"); + Log.i("ExoPlayerImpl", Q.toString()); + h1 h1Var = this.i; + synchronized (h1Var) { + if (!h1Var.I) { + if (h1Var.r.isAlive()) { + h1Var.q.f(7); + long j = h1Var.E; + synchronized (h1Var) { + long d = h1Var.f996z.d() + j; + boolean z3 = false; + while (!Boolean.valueOf(h1Var.I).booleanValue() && j > 0) { + try { + h1Var.f996z.c(); + h1Var.wait(j); + } catch (InterruptedException unused) { + z3 = true; + } + j = d - h1Var.f996z.d(); + } + if (z3) { + Thread.currentThread().interrupt(); + } + z2 = h1Var.I; + } + } + } + z2 = true; + } + if (!z2) { + p pVar = this.j; + pVar.b(10, b0.a); + pVar.a(); + } + this.j.c(); + this.g.j(null); + g1 g1Var = this.p; + if (g1Var != null) { + this.r.d(g1Var); + } + w1 f = this.F.f(1); + this.F = f; + w1 a2 = f.a(f.c); + this.F = a2; + a2.r = a2.t; + this.F.f1133s = 0; + } + + @Override // b.i.a.c.y1 + public y o() { + return y.j; + } + + public void o0(y1.c cVar) { + p pVar = this.j; + Iterator> it = pVar.d.iterator(); + while (it.hasNext()) { + p.c next = it.next(); + if (next.a.equals(cVar)) { + p.b bVar = pVar.c; + next.d = true; + if (next.c) { + bVar.a(next.a, next.f960b.b()); + } + pVar.d.remove(next); + } + } + } + + @Override // b.i.a.c.y1 + public void p(y1.e eVar) { + o0(eVar); + } + + public final void p0(int i, int i2) { + for (int i3 = i2 - 1; i3 >= i; i3--) { + this.m.remove(i3); + } + this.B = this.B.a(i, i2); + } + + @Override // b.i.a.c.y1 + public int q() { + if (f()) { + return this.F.c.c; + } + return -1; + } + + public void q0(boolean z2, int i, int i2) { + w1 w1Var = this.F; + if (w1Var.m != z2 || w1Var.n != i) { + this.f946x++; + w1 d = w1Var.d(z2, i); + ((b0.b) this.i.q.a(1, z2 ? 1 : 0, i)).b(); + s0(d, 0, i2, false, false, 5, -9223372036854775807L, -1); + } + } + + @Override // b.i.a.c.y1 + public void r(@Nullable SurfaceView surfaceView) { + } + + public final void r0() { + y1.b bVar = this.C; + y1.b bVar2 = this.d; + y1.b.a aVar = new y1.b.a(); + aVar.a(bVar2); + boolean z2 = true; + aVar.b(4, !f()); + aVar.b(5, a0() && !f()); + aVar.b(6, X() && !f()); + aVar.b(7, !K().q() && (X() || !Z() || a0()) && !f()); + aVar.b(8, W() && !f()); + aVar.b(9, !K().q() && (W() || (Z() && Y())) && !f()); + aVar.b(10, !f()); + aVar.b(11, a0() && !f()); + if (!a0() || f()) { + z2 = false; + } + aVar.b(12, z2); + y1.b c = aVar.c(); + this.C = c; + if (!c.equals(bVar)) { + this.j.b(13, new x(this)); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:71:0x020d */ + /* JADX WARNING: Removed duplicated region for block: B:72:0x023b */ + /* JADX WARNING: Removed duplicated region for block: B:75:0x0253 */ + /* JADX WARNING: Removed duplicated region for block: B:76:0x0260 */ + public final void s0(w1 w1Var, int i, int i2, boolean z2, boolean z3, int i3, long j, int i4) { + Pair pair; + o1 o1Var; + int i5; + Object obj; + o1 o1Var2; + int i6; + Object obj2; + long j2; + long j3; + int i7; + Object obj3; + o1 o1Var3; + Object obj4; + int i8; + w1 w1Var2 = this.F; + this.F = w1Var; + boolean z4 = !w1Var2.f1132b.equals(w1Var.f1132b); + o2 o2Var = w1Var2.f1132b; + o2 o2Var2 = w1Var.f1132b; + if (o2Var2.q() && o2Var.q()) { + pair = new Pair(Boolean.FALSE, -1); + } else if (o2Var2.q() != o2Var.q()) { + pair = new Pair(Boolean.TRUE, 3); + } else if (!o2Var.n(o2Var.h(w1Var2.c.a, this.l).l, this.a).n.equals(o2Var2.n(o2Var2.h(w1Var.c.a, this.l).l, this.a).n)) { + if (z3 && i3 == 0) { + i8 = 1; + } else if (z3 && i3 == 1) { + i8 = 2; + } else if (z4) { + i8 = 3; + } else { + throw new IllegalStateException(); + } + pair = new Pair(Boolean.TRUE, Integer.valueOf(i8)); + } else { + pair = (!z3 || i3 != 0 || w1Var2.c.d >= w1Var.c.d) ? new Pair(Boolean.FALSE, -1) : new Pair(Boolean.TRUE, 0); + } + boolean booleanValue = ((Boolean) pair.first).booleanValue(); + int intValue = ((Integer) pair.second).intValue(); + p1 p1Var = this.D; + if (booleanValue) { + o1Var = !w1Var.f1132b.q() ? w1Var.f1132b.n(w1Var.f1132b.h(w1Var.c.a, this.l).l, this.a).p : null; + this.E = p1.j; + } else { + o1Var = null; + } + if (booleanValue || !w1Var2.k.equals(w1Var.k)) { + p1.b a2 = this.E.a(); + List list = w1Var.k; + for (int i9 = 0; i9 < list.size(); i9++) { + Metadata metadata = list.get(i9); + int i10 = 0; + while (true) { + Metadata.Entry[] entryArr = metadata.j; + if (i10 >= entryArr.length) { + break; + } + entryArr[i10].n(a2); + i10++; + } + } + this.E = a2.a(); + p1Var = e0(); + } + boolean z5 = !p1Var.equals(this.D); + this.D = p1Var; + if (!w1Var2.f1132b.equals(w1Var.f1132b)) { + this.j.b(0, new d0(w1Var, i)); + } + if (z3) { + o2.b bVar = new o2.b(); + if (!w1Var2.f1132b.q()) { + Object obj5 = w1Var2.c.a; + w1Var2.f1132b.h(obj5, bVar); + int i11 = bVar.l; + obj = obj5; + i6 = i11; + i5 = w1Var2.f1132b.b(obj5); + obj2 = w1Var2.f1132b.n(i11, this.a).n; + o1Var2 = this.a.p; + } else { + i6 = i4; + obj2 = null; + o1Var2 = null; + obj = null; + i5 = -1; + } + if (i3 == 0) { + j3 = bVar.n + bVar.m; + if (w1Var2.c.a()) { + a0.a aVar = w1Var2.c; + j3 = bVar.a(aVar.f821b, aVar.c); + j2 = j0(w1Var2); + long M = e0.M(j3); + long M2 = e0.M(j2); + a0.a aVar2 = w1Var2.c; + y1.f fVar = new y1.f(obj2, i6, o1Var2, obj, i5, M, M2, aVar2.f821b, aVar2.c); + int C = C(); + if (!this.F.f1132b.q()) { + w1 w1Var3 = this.F; + Object obj6 = w1Var3.c.a; + w1Var3.f1132b.h(obj6, this.l); + i7 = this.F.f1132b.b(obj6); + obj3 = obj6; + obj4 = this.F.f1132b.n(C, this.a).n; + o1Var3 = this.a.p; + } else { + obj4 = null; + o1Var3 = null; + obj3 = null; + i7 = -1; + } + long M3 = e0.M(j); + long M4 = this.F.c.a() ? e0.M(j0(this.F)) : M3; + a0.a aVar3 = this.F.c; + this.j.b(11, new a0(i3, fVar, new y1.f(obj4, C, o1Var3, obj3, i7, M3, M4, aVar3.f821b, aVar3.c))); + } else if (w1Var2.c.e != -1 && this.F.c.a()) { + j3 = j0(this.F); + } + } else if (w1Var2.c.a()) { + j3 = w1Var2.t; + j2 = j0(w1Var2); + long M = e0.M(j3); + long M2 = e0.M(j2); + a0.a aVar2 = w1Var2.c; + y1.f fVar = new y1.f(obj2, i6, o1Var2, obj, i5, M, M2, aVar2.f821b, aVar2.c); + int C = C(); + if (!this.F.f1132b.q()) { + } + long M3 = e0.M(j); + if (this.F.c.a()) { + } + a0.a aVar3 = this.F.c; + this.j.b(11, new a0(i3, fVar, new y1.f(obj4, C, o1Var3, obj3, i7, M3, M4, aVar3.f821b, aVar3.c))); + } else { + j3 = bVar.n + w1Var2.t; + } + j2 = j3; + long M = e0.M(j3); + long M2 = e0.M(j2); + a0.a aVar2 = w1Var2.c; + y1.f fVar = new y1.f(obj2, i6, o1Var2, obj, i5, M, M2, aVar2.f821b, aVar2.c); + int C = C(); + if (!this.F.f1132b.q()) { + } + long M3 = e0.M(j); + if (this.F.c.a()) { + } + a0.a aVar3 = this.F.c; + this.j.b(11, new a0(i3, fVar, new y1.f(obj4, C, o1Var3, obj3, i7, M3, M4, aVar3.f821b, aVar3.c))); + } + if (booleanValue) { + this.j.b(1, new z(o1Var, intValue)); + } + if (w1Var2.g != w1Var.g) { + this.j.b(10, new l(w1Var)); + if (w1Var.g != null) { + this.j.b(10, new y(w1Var)); + } + } + r rVar = w1Var2.j; + r rVar2 = w1Var.j; + if (rVar != rVar2) { + this.f.a(rVar2.e); + this.j.b(2, new q(w1Var, new b.i.a.c.c3.n(w1Var.j.c))); + this.j.b(2, new t(w1Var)); + } + if (z5) { + this.j.b(14, new p(this.D)); + } + if (w1Var2.h != w1Var.h) { + this.j.b(3, new o(w1Var)); + } + if (!(w1Var2.f == w1Var.f && w1Var2.m == w1Var.m)) { + this.j.b(-1, new e0(w1Var)); + } + if (w1Var2.f != w1Var.f) { + this.j.b(4, new m(w1Var)); + } + if (w1Var2.m != w1Var.m) { + this.j.b(5, new s(w1Var, i2)); + } + if (w1Var2.n != w1Var.n) { + this.j.b(6, new r(w1Var)); + } + if (k0(w1Var2) != k0(w1Var)) { + this.j.b(7, new v(w1Var)); + } + if (!w1Var2.o.equals(w1Var.o)) { + this.j.b(12, new f0(w1Var)); + } + if (z2) { + this.j.b(-1, b.a); + } + r0(); + this.j.a(); + if (w1Var2.p != w1Var.p) { + Iterator it = this.k.iterator(); + while (it.hasNext()) { + it.next().x(w1Var.p); + } + } + if (w1Var2.q != w1Var.q) { + Iterator it2 = this.k.iterator(); + while (it2.hasNext()) { + it2.next().o(w1Var.q); + } + } + } + + @Override // b.i.a.c.y1 + @Nullable + public PlaybackException t() { + return this.F.g; + } + + @Override // b.i.a.c.y1 + public void u(boolean z2) { + q0(z2, 0, 1); + } + + @Override // b.i.a.c.y1 + public long v() { + return this.t; + } + + @Override // b.i.a.c.y1 + public long w() { + if (!f()) { + return T(); + } + w1 w1Var = this.F; + w1Var.f1132b.h(w1Var.c.a, this.l); + w1 w1Var2 = this.F; + return w1Var2.d == -9223372036854775807L ? w1Var2.f1132b.n(C(), this.a).a() : e0.M(this.l.n) + e0.M(this.F.d); + } + + @Override // b.i.a.c.y1 + public void x(y1.e eVar) { + d0(eVar); + } + + @Override // b.i.a.c.y1 + public int y() { + return this.F.f; + } +} diff --git a/app/src/main/java/b/i/a/c/f2.java b/app/src/main/java/b/i/a/c/f2.java new file mode 100644 index 0000000000..3c3a90b9f5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f2.java @@ -0,0 +1,67 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import b.i.a.c.a3.i0; +import b.i.a.c.b2; +import b.i.a.c.f3.s; +import com.google.android.exoplayer2.ExoPlaybackException; +import java.io.IOException; +/* compiled from: Renderer */ +public interface f2 extends b2.b { + + /* compiled from: Renderer */ + public interface a { + void a(); + + void b(long j); + } + + boolean b(); + + boolean d(); + + void f(int i); + + void g(); + + @Override // b.i.a.c.g2 + String getName(); + + int getState(); + + @Nullable + i0 h(); + + boolean j(); + + void k(j1[] j1VarArr, i0 i0Var, long j, long j2) throws ExoPlaybackException; + + void l(); + + g2 m(); + + void n(float f, float f2) throws ExoPlaybackException; + + void o(h2 h2Var, j1[] j1VarArr, i0 i0Var, long j, boolean z2, boolean z3, long j2, long j3) throws ExoPlaybackException; + + void q(long j, long j2) throws ExoPlaybackException; + + void reset(); + + void s() throws IOException; + + void start() throws ExoPlaybackException; + + void stop(); + + long t(); + + void u(long j) throws ExoPlaybackException; + + boolean v(); + + @Nullable + s w(); + + int x(); +} diff --git a/app/src/main/java/b/i/a/c/f3/a.java b/app/src/main/java/b/i/a/c/f3/a.java new file mode 100644 index 0000000000..9b058f0789 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/a.java @@ -0,0 +1,39 @@ +package b.i.a.c.f3; + +import b.c.a.a0.d; +import b.i.a.c.f3.n; +import b.i.a.c.f3.p; +import java.util.Iterator; +import java.util.concurrent.CopyOnWriteArraySet; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Runnable { + public final /* synthetic */ CopyOnWriteArraySet j; + public final /* synthetic */ int k; + public final /* synthetic */ p.a l; + + public /* synthetic */ a(CopyOnWriteArraySet copyOnWriteArraySet, int i, p.a aVar) { + this.j = copyOnWriteArraySet; + this.k = i; + this.l = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + CopyOnWriteArraySet copyOnWriteArraySet = this.j; + int i = this.k; + p.a aVar = this.l; + Iterator it = copyOnWriteArraySet.iterator(); + while (it.hasNext()) { + p.c cVar = (p.c) it.next(); + if (!cVar.d) { + if (i != -1) { + n.b bVar = cVar.f960b; + d.D(!bVar.f958b); + bVar.a.append(i, true); + } + cVar.c = true; + aVar.invoke(cVar.a); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/f3/a0.java b/app/src/main/java/b/i/a/c/f3/a0.java new file mode 100644 index 0000000000..ccef2aecdc --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/a0.java @@ -0,0 +1,27 @@ +package b.i.a.c.f3; + +import android.os.Handler; +import android.os.Looper; +import android.os.SystemClock; +import androidx.annotation.Nullable; +/* compiled from: SystemClock */ +public class a0 implements g { + @Override // b.i.a.c.f3.g + public long a() { + return SystemClock.uptimeMillis(); + } + + @Override // b.i.a.c.f3.g + public o b(Looper looper, @Nullable Handler.Callback callback) { + return new b0(new Handler(looper, callback)); + } + + @Override // b.i.a.c.f3.g + public void c() { + } + + @Override // b.i.a.c.f3.g + public long d() { + return SystemClock.elapsedRealtime(); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/b.java b/app/src/main/java/b/i/a/c/f3/b.java new file mode 100644 index 0000000000..820ab9b87d --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/b.java @@ -0,0 +1,35 @@ +package b.i.a.c.f3; + +import android.os.Handler; +import android.os.Message; +import b.i.a.c.f3.n; +import b.i.a.c.f3.p; +import java.util.Iterator; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Handler.Callback { + public final /* synthetic */ p j; + + public /* synthetic */ b(p pVar) { + this.j = pVar; + } + + @Override // android.os.Handler.Callback + public final boolean handleMessage(Message message) { + p pVar = this.j; + Iterator it = pVar.d.iterator(); + while (it.hasNext()) { + p.c cVar = (p.c) it.next(); + p.b bVar = pVar.c; + if (!cVar.d && cVar.c) { + n b2 = cVar.f960b.b(); + cVar.f960b = new n.b(); + cVar.c = false; + bVar.a(cVar.a, b2); + } + if (pVar.f959b.e(0)) { + return true; + } + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/b0.java b/app/src/main/java/b/i/a/c/f3/b0.java new file mode 100644 index 0000000000..f697d6f178 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/b0.java @@ -0,0 +1,122 @@ +package b.i.a.c.f3; + +import android.os.Handler; +import android.os.Message; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import b.i.a.c.f3.o; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +/* compiled from: SystemHandlerWrapper */ +public final class b0 implements o { + @GuardedBy("messagePool") + public static final List a = new ArrayList(50); + + /* renamed from: b reason: collision with root package name */ + public final Handler f950b; + + /* compiled from: SystemHandlerWrapper */ + public static final class b implements o.a { + @Nullable + public Message a; + + public b() { + } + + public b(a aVar) { + } + + public final void a() { + this.a = null; + List list = b0.a; + synchronized (list) { + if (list.size() < 50) { + list.add(this); + } + } + } + + public void b() { + Message message = this.a; + Objects.requireNonNull(message); + message.sendToTarget(); + a(); + } + } + + public b0(Handler handler) { + this.f950b = handler; + } + + public static b k() { + b bVar; + List list = a; + synchronized (list) { + bVar = list.isEmpty() ? new b(null) : list.remove(list.size() - 1); + } + return bVar; + } + + @Override // b.i.a.c.f3.o + public o.a a(int i, int i2, int i3) { + b k = k(); + k.a = this.f950b.obtainMessage(i, i2, i3); + return k; + } + + @Override // b.i.a.c.f3.o + public boolean b(Runnable runnable) { + return this.f950b.post(runnable); + } + + @Override // b.i.a.c.f3.o + public o.a c(int i) { + b k = k(); + k.a = this.f950b.obtainMessage(i); + return k; + } + + @Override // b.i.a.c.f3.o + public boolean d(o.a aVar) { + b bVar = (b) aVar; + Handler handler = this.f950b; + Message message = bVar.a; + Objects.requireNonNull(message); + boolean sendMessageAtFrontOfQueue = handler.sendMessageAtFrontOfQueue(message); + bVar.a(); + return sendMessageAtFrontOfQueue; + } + + @Override // b.i.a.c.f3.o + public boolean e(int i) { + return this.f950b.hasMessages(i); + } + + @Override // b.i.a.c.f3.o + public boolean f(int i) { + return this.f950b.sendEmptyMessage(i); + } + + @Override // b.i.a.c.f3.o + public boolean g(int i, long j) { + return this.f950b.sendEmptyMessageAtTime(i, j); + } + + @Override // b.i.a.c.f3.o + public void h(int i) { + this.f950b.removeMessages(i); + } + + @Override // b.i.a.c.f3.o + public o.a i(int i, @Nullable Object obj) { + b k = k(); + k.a = this.f950b.obtainMessage(i, obj); + return k; + } + + @Override // b.i.a.c.f3.o + public void j(@Nullable Object obj) { + this.f950b.removeCallbacksAndMessages(null); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/c.java b/app/src/main/java/b/i/a/c/f3/c.java new file mode 100644 index 0000000000..f2de684780 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/c.java @@ -0,0 +1,24 @@ +package b.i.a.c.f3; + +import b.i.a.c.f3.v; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Runnable { + public final /* synthetic */ v j; + public final /* synthetic */ v.b k; + + public /* synthetic */ c(v vVar, v.b bVar) { + this.j = vVar; + this.k = bVar; + } + + @Override // java.lang.Runnable + public final void run() { + int i; + v vVar = this.j; + v.b bVar = this.k; + synchronized (vVar.d) { + i = vVar.e; + } + bVar.a(i); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/c0.java b/app/src/main/java/b/i/a/c/f3/c0.java new file mode 100644 index 0000000000..ffe9268c1b --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/c0.java @@ -0,0 +1,91 @@ +package b.i.a.c.f3; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import java.util.Arrays; +/* compiled from: TimedValueQueue */ +public final class c0 { + public long[] a = new long[10]; + + /* renamed from: b reason: collision with root package name */ + public V[] f951b = ((V[]) new Object[10]); + public int c; + public int d; + + public synchronized void a(long j, V v) { + int i = this.d; + if (i > 0) { + if (j <= this.a[((this.c + i) - 1) % this.f951b.length]) { + b(); + } + } + c(); + int i2 = this.c; + int i3 = this.d; + V[] vArr = this.f951b; + int length = (i2 + i3) % vArr.length; + this.a[length] = j; + vArr[length] = v; + this.d = i3 + 1; + } + + public synchronized void b() { + this.c = 0; + this.d = 0; + Arrays.fill(this.f951b, (Object) null); + } + + public final void c() { + int length = this.f951b.length; + if (this.d >= length) { + int i = length * 2; + long[] jArr = new long[i]; + V[] vArr = (V[]) new Object[i]; + int i2 = this.c; + int i3 = length - i2; + System.arraycopy(this.a, i2, jArr, 0, i3); + System.arraycopy(this.f951b, this.c, vArr, 0, i3); + int i4 = this.c; + if (i4 > 0) { + System.arraycopy(this.a, 0, jArr, i3, i4); + System.arraycopy(this.f951b, 0, vArr, i3, this.c); + } + this.a = jArr; + this.f951b = vArr; + this.c = 0; + } + } + + @Nullable + public final V d(long j, boolean z2) { + V v = null; + long j2 = RecyclerView.FOREVER_NS; + while (this.d > 0) { + long j3 = j - this.a[this.c]; + if (j3 < 0 && (z2 || (-j3) >= j2)) { + break; + } + v = f(); + j2 = j3; + } + return v; + } + + @Nullable + public synchronized V e(long j) { + return d(j, true); + } + + @Nullable + public final V f() { + d.D(this.d > 0); + V[] vArr = this.f951b; + int i = this.c; + V v = vArr[i]; + vArr[i] = null; + this.c = (i + 1) % vArr.length; + this.d--; + return v; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/d.java b/app/src/main/java/b/i/a/c/f3/d.java new file mode 100644 index 0000000000..26883b9236 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/d.java @@ -0,0 +1,16 @@ +package b.i.a.c.f3; + +import java.util.concurrent.ThreadFactory; +/* compiled from: lambda */ +public final /* synthetic */ class d implements ThreadFactory { + public final /* synthetic */ String j; + + public /* synthetic */ d(String str) { + this.j = str; + } + + @Override // java.util.concurrent.ThreadFactory + public final Thread newThread(Runnable runnable) { + return new Thread(runnable, this.j); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/d0.java b/app/src/main/java/b/i/a/c/f3/d0.java new file mode 100644 index 0000000000..9b770eae0c --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/d0.java @@ -0,0 +1,74 @@ +package b.i.a.c.f3; + +import androidx.annotation.GuardedBy; +import androidx.recyclerview.widget.RecyclerView; +import com.discord.api.permission.Permission; +import java.util.Objects; +/* compiled from: TimestampAdjuster */ +public final class d0 { + @GuardedBy("this") + public long a; + @GuardedBy("this") + + /* renamed from: b reason: collision with root package name */ + public long f952b; + @GuardedBy("this") + public long c; + public final ThreadLocal d = new ThreadLocal<>(); + + public d0(long j) { + e(j); + } + + public synchronized long a(long j) { + if (j == -9223372036854775807L) { + return -9223372036854775807L; + } + if (this.f952b == -9223372036854775807L) { + long j2 = this.a; + if (j2 == 9223372036854775806L) { + Long l = this.d.get(); + Objects.requireNonNull(l); + j2 = l.longValue(); + } + this.f952b = j2 - j; + notifyAll(); + } + this.c = j; + return j + this.f952b; + } + + public synchronized long b(long j) { + if (j == -9223372036854775807L) { + return -9223372036854775807L; + } + long j2 = this.c; + if (j2 != -9223372036854775807L) { + long j3 = (j2 * 90000) / 1000000; + long j4 = (Permission.REQUEST_TO_SPEAK + j3) / Permission.MANAGE_EVENTS; + long j5 = ((j4 - 1) * Permission.MANAGE_EVENTS) + j; + long j6 = (j4 * Permission.MANAGE_EVENTS) + j; + j = Math.abs(j5 - j3) < Math.abs(j6 - j3) ? j5 : j6; + } + return a((j * 1000000) / 90000); + } + + public synchronized long c() { + long j; + j = this.a; + if (j == RecyclerView.FOREVER_NS || j == 9223372036854775806L) { + j = -9223372036854775807L; + } + return j; + } + + public synchronized long d() { + return this.f952b; + } + + public synchronized void e(long j) { + this.a = j; + this.f952b = j == RecyclerView.FOREVER_NS ? 0 : -9223372036854775807L; + this.c = -9223372036854775807L; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/e.java b/app/src/main/java/b/i/a/c/f3/e.java new file mode 100644 index 0000000000..fddbe5c49d --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/e.java @@ -0,0 +1,105 @@ +package b.i.a.c.f3; + +import android.util.Log; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +/* compiled from: AtomicFile */ +public final class e { + public final File a; + + /* renamed from: b reason: collision with root package name */ + public final File f953b; + + /* compiled from: AtomicFile */ + public static final class a extends OutputStream { + public final FileOutputStream j; + public boolean k = false; + + public a(File file) throws FileNotFoundException { + this.j = new FileOutputStream(file); + } + + @Override // java.io.OutputStream, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + if (!this.k) { + this.k = true; + this.j.flush(); + try { + this.j.getFD().sync(); + } catch (IOException e) { + q.c("AtomicFile", "Failed to sync file descriptor:", e); + } + this.j.close(); + } + } + + @Override // java.io.OutputStream, java.io.Flushable + public void flush() throws IOException { + this.j.flush(); + } + + @Override // java.io.OutputStream + public void write(int i) throws IOException { + this.j.write(i); + } + + @Override // java.io.OutputStream + public void write(byte[] bArr) throws IOException { + this.j.write(bArr); + } + + @Override // java.io.OutputStream + public void write(byte[] bArr, int i, int i2) throws IOException { + this.j.write(bArr, i, i2); + } + } + + public e(File file) { + this.a = file; + this.f953b = new File(String.valueOf(file.getPath()).concat(".bak")); + } + + public boolean a() { + return this.a.exists() || this.f953b.exists(); + } + + public InputStream b() throws FileNotFoundException { + if (this.f953b.exists()) { + this.a.delete(); + this.f953b.renameTo(this.a); + } + return new FileInputStream(this.a); + } + + public OutputStream c() throws IOException { + if (this.a.exists()) { + if (this.f953b.exists()) { + this.a.delete(); + } else if (!this.a.renameTo(this.f953b)) { + String valueOf = String.valueOf(this.a); + String valueOf2 = String.valueOf(this.f953b); + Log.w("AtomicFile", b.d.b.a.a.k(valueOf2.length() + valueOf.length() + 37, "Couldn't rename file ", valueOf, " to backup file ", valueOf2)); + } + } + try { + return new a(this.a); + } catch (FileNotFoundException e) { + File parentFile = this.a.getParentFile(); + if (parentFile == null || !parentFile.mkdirs()) { + String valueOf3 = String.valueOf(this.a); + throw new IOException(b.d.b.a.a.i(valueOf3.length() + 16, "Couldn't create ", valueOf3), e); + } + try { + return new a(this.a); + } catch (FileNotFoundException e2) { + String valueOf4 = String.valueOf(this.a); + throw new IOException(b.d.b.a.a.i(valueOf4.length() + 16, "Couldn't create ", valueOf4), e2); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/f3/e0.java b/app/src/main/java/b/i/a/c/f3/e0.java new file mode 100644 index 0000000000..a39203cb28 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/e0.java @@ -0,0 +1,528 @@ +package b.i.a.c.f3; + +import android.app.UiModeManager; +import android.content.Context; +import android.database.DatabaseUtils; +import android.database.sqlite.SQLiteDatabase; +import android.os.Build; +import android.os.Handler; +import android.os.Looper; +import android.text.TextUtils; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import b.i.b.a.c; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.utilities.font.FontUtils; +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Arrays; +import java.util.Formatter; +import java.util.HashMap; +import java.util.Locale; +import java.util.MissingResourceException; +import java.util.regex.Pattern; +import java.util.zip.DataFormatException; +import java.util.zip.Inflater; +/* compiled from: Util */ +public final class e0 { + public static final int a; + + /* renamed from: b reason: collision with root package name */ + public static final String f954b; + public static final String c; + public static final String d; + public static final String e; + public static final byte[] f = new byte[0]; + public static final Pattern g = Pattern.compile("%([A-Fa-f0-9]{2})"); + @Nullable + public static HashMap h; + public static final String[] i = {"alb", "sq", "arm", "hy", "baq", "eu", "bur", "my", "tib", "bo", "chi", "zh", "cze", "cs", "dut", "nl", "ger", "de", "gre", "el", "fre", "fr", "geo", "ka", "ice", "is", "mac", "mk", "mao", "mi", "may", "ms", "per", "fa", "rum", "ro", "scc", "hbs-srp", "slo", "sk", "wel", "cy", ModelAuditLogEntry.CHANGE_KEY_ID, "ms-ind", "iw", "he", "heb", "he", "ji", "yi", "in", "ms-ind", "ind", "ms-ind", "nb", "no-nob", "nob", "no-nob", "nn", "no-nno", "nno", "no-nno", "tw", "ak-twi", "twi", "ak-twi", "bs", "hbs-bos", "bos", "hbs-bos", "hr", "hbs-hrv", "hrv", "hbs-hrv", "sr", "hbs-srp", "srp", "hbs-srp", "cmn", "zh-cmn", "hak", "zh-hak", "nan", "zh-nan", "hsn", "zh-hsn"}; + public static final String[] j = {"i-lux", "lb", "i-hak", "zh-hak", "i-navajo", "nv", "no-bok", "no-nob", "no-nyn", "no-nno", "zh-guoyu", "zh-cmn", "zh-hakka", "zh-hak", "zh-min-nan", "zh-nan", "zh-xiang", "zh-hsn"}; + public static final int[] k = {0, 79764919, 159529838, 222504665, 319059676, 398814059, 445009330, 507990021, 638119352, 583659535, 797628118, 726387553, 890018660, 835552979, 1015980042, 944750013, 1276238704, 1221641927, 1167319070, 1095957929, 1595256236, 1540665371, 1452775106, 1381403509, 1780037320, 1859660671, 1671105958, 1733955601, 2031960084, 2111593891, 1889500026, 1952343757, -1742489888, -1662866601, -1851683442, -1788833735, -1960329156, -1880695413, -2103051438, -2040207643, -1104454824, -1159051537, -1213636554, -1284997759, -1389417084, -1444007885, -1532160278, -1603531939, -734892656, -789352409, -575645954, -646886583, -952755380, -1007220997, -827056094, -898286187, -231047128, -151282273, -71779514, -8804623, -515967244, -436212925, -390279782, -327299027, 881225847, 809987520, 1023691545, 969234094, 662832811, 591600412, 771767749, 717299826, 311336399, 374308984, 453813921, 533576470, 25881363, 88864420, 134795389, 214552010, 2023205639, 2086057648, 1897238633, 1976864222, 1804852699, 1867694188, 1645340341, 1724971778, 1587496639, 1516133128, 1461550545, 1406951526, 1302016099, 1230646740, 1142491917, 1087903418, -1398421865, -1469785312, -1524105735, -1578704818, -1079922613, -1151291908, -1239184603, -1293773166, -1968362705, -1905510760, -2094067647, -2014441994, -1716953613, -1654112188, -1876203875, -1796572374, -525066777, -462094256, -382327159, -302564546, -206542021, -143559028, -97365931, -17609246, -960696225, -1031934488, -817968335, -872425850, -709327229, -780559564, -600130067, -654598054, 1762451694, 1842216281, 1619975040, 1682949687, 2047383090, 2127137669, 1938468188, 2001449195, 1325665622, 1271206113, 1183200824, 1111960463, 1543535498, 1489069629, 1434599652, 1363369299, 622672798, 568075817, 748617968, 677256519, 907627842, 853037301, 1067152940, 995781531, 51762726, 131386257, 177728840, 240578815, 269590778, 349224269, 429104020, 491947555, -248556018, -168932423, -122852000, -60002089, -500490030, -420856475, -341238852, -278395381, -685261898, -739858943, -559578920, -630940305, -1004286614, -1058877219, -845023740, -916395085, -1119974018, -1174433591, -1262701040, -1333941337, -1371866206, -1426332139, -1481064244, -1552294533, -1690935098, -1611170447, -1833673816, -1770699233, -2009983462, -1930228819, -2119160460, -2056179517, 1569362073, 1498123566, 1409854455, 1355396672, 1317987909, 1246755826, 1192025387, 1137557660, 2072149281, 2135122070, 1912620623, 1992383480, 1753615357, 1816598090, 1627664531, 1707420964, 295390185, 358241886, 404320391, 483945776, 43990325, 106832002, 186451547, 266083308, 932423249, 861060070, 1041341759, 986742920, 613929101, 542559546, 756411363, 701822548, -978770311, -1050133554, -869589737, -924188512, -693284699, -764654318, -550540341, -605129092, -475935807, -413084042, -366743377, -287118056, -257573603, -194731862, -114850189, -35218492, -1984365303, -1921392450, -2143631769, -2063868976, -1698919467, -1635936670, -1824608069, -1744851700, -1347415887, -1418654458, -1506661409, -1561119128, -1129027987, -1200260134, -1254728445, -1309196108}; + public static final int[] l = {0, 7, 14, 9, 28, 27, 18, 21, 56, 63, 54, 49, 36, 35, 42, 45, 112, 119, 126, 121, 108, 107, 98, 101, 72, 79, 70, 65, 84, 83, 90, 93, 224, 231, 238, 233, 252, 251, 242, 245, 216, 223, 214, 209, 196, 195, 202, 205, 144, 151, 158, 153, 140, 139, 130, 133, 168, HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION, 166, 161, BaseTransientBottomBar.ANIMATION_FADE_DURATION, 179, 186, 189, 199, 192, 201, 206, 219, 220, 213, 210, 255, 248, 241, 246, 227, 228, 237, 234, 183, 176, 185, 190, 171, 172, 165, 162, 143, 136, 129, 134, 147, 148, 157, 154, 39, 32, 41, 46, 59, 60, 53, 50, 31, 24, 17, 22, 3, 4, 13, 10, 87, 80, 89, 94, 75, 76, 69, 66, 111, 104, 97, 102, 115, 116, 125, 122, 137, 142, 135, 128, 149, 146, 155, 156, 177, 182, 191, 184, 173, 170, 163, 164, 249, 254, 247, 240, 229, 226, 235, 236, 193, 198, 207, 200, 221, 218, 211, 212, 105, 110, 103, 96, 117, 114, 123, 124, 81, 86, 95, 88, 77, 74, 67, 68, 25, 30, 23, 16, 5, 2, 11, 12, 33, 38, 47, 40, 61, 58, 51, 52, 78, 73, 64, 71, 82, 85, 92, 91, 118, 113, 120, 127, 106, 109, 100, 99, 62, 57, 48, 55, 34, 37, 44, 43, 6, 1, 8, 15, 26, 29, 20, 19, 174, 169, 160, 167, 178, 181, 188, 187, FontUtils.MAX_FONT_SCALING, 145, 152, 159, 138, 141, 132, 131, 222, 217, 208, 215, 194, 197, 204, 203, 230, HideBottomViewOnScrollBehavior.ENTER_ANIMATION_DURATION, 232, 239, 250, 253, 244, 243}; + + static { + int i2 = Build.VERSION.SDK_INT; + a = i2; + String str = Build.DEVICE; + f954b = str; + String str2 = Build.MANUFACTURER; + c = str2; + String str3 = Build.MODEL; + d = str3; + StringBuilder Q = a.Q(a.b(str2, a.b(str3, a.b(str, 17))), str, ", ", str3, ", "); + Q.append(str2); + Q.append(", "); + Q.append(i2); + e = Q.toString(); + Pattern.compile("(\\d\\d\\d\\d)\\-(\\d\\d)\\-(\\d\\d)[Tt](\\d\\d):(\\d\\d):(\\d\\d)([\\.,](\\d+))?([Zz]|((\\+|\\-)(\\d?\\d):?(\\d\\d)))?"); + Pattern.compile("^(-)?P(([0-9]*)Y)?(([0-9]*)M)?(([0-9]*)D)?(T(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?)?$"); + Pattern.compile(".*\\.isml?(?:/(manifest(.*))?)?"); + } + + public static boolean A(Context context) { + UiModeManager uiModeManager = (UiModeManager) context.getApplicationContext().getSystemService("uimode"); + return uiModeManager != null && uiModeManager.getCurrentModeType() == 4; + } + + public static long B(long j2) { + return (j2 == -9223372036854775807L || j2 == Long.MIN_VALUE) ? j2 : j2 * 1000; + } + + public static String C(String str) { + if (str == null) { + return null; + } + String replace = str.replace('_', '-'); + if (!replace.isEmpty() && !replace.equals("und")) { + str = replace; + } + String m1 = f.m1(str); + int i2 = 0; + String str2 = I(m1, "-")[0]; + if (h == null) { + String[] iSOLanguages = Locale.getISOLanguages(); + HashMap hashMap = new HashMap<>(iSOLanguages.length + i.length); + for (String str3 : iSOLanguages) { + try { + String iSO3Language = new Locale(str3).getISO3Language(); + if (!TextUtils.isEmpty(iSO3Language)) { + hashMap.put(iSO3Language, str3); + } + } catch (MissingResourceException unused) { + } + } + int i3 = 0; + while (true) { + String[] strArr = i; + if (i3 >= strArr.length) { + break; + } + hashMap.put(strArr[i3], strArr[i3 + 1]); + i3 += 2; + } + h = hashMap; + } + String str4 = h.get(str2); + if (str4 != null) { + String valueOf = String.valueOf(m1.substring(str2.length())); + m1 = valueOf.length() != 0 ? str4.concat(valueOf) : new String(str4); + str2 = str4; + } + if (!("no".equals(str2) || "i".equals(str2) || "zh".equals(str2))) { + return m1; + } + while (true) { + String[] strArr2 = j; + if (i2 >= strArr2.length) { + return m1; + } + if (m1.startsWith(strArr2[i2])) { + String valueOf2 = String.valueOf(strArr2[i2 + 1]); + String valueOf3 = String.valueOf(m1.substring(strArr2[i2].length())); + return valueOf3.length() != 0 ? valueOf2.concat(valueOf3) : new String(valueOf2); + } + i2 += 2; + } + } + + public static T[] D(T[] tArr, int i2) { + d.j(i2 <= tArr.length); + return (T[]) Arrays.copyOf(tArr, i2); + } + + public static boolean E(Handler handler, Runnable runnable) { + if (!handler.getLooper().getThread().isAlive()) { + return false; + } + if (handler.getLooper() != Looper.myLooper()) { + return handler.post(runnable); + } + runnable.run(); + return true; + } + + public static long F(long j2, long j3, long j4) { + int i2 = (j4 > j3 ? 1 : (j4 == j3 ? 0 : -1)); + if (i2 >= 0 && j4 % j3 == 0) { + return j2 / (j4 / j3); + } + if (i2 < 0 && j3 % j4 == 0) { + return (j3 / j4) * j2; + } + return (long) (((double) j2) * (((double) j3) / ((double) j4))); + } + + public static void G(long[] jArr, long j2, long j3) { + int i2 = 0; + int i3 = (j3 > j2 ? 1 : (j3 == j2 ? 0 : -1)); + if (i3 >= 0 && j3 % j2 == 0) { + long j4 = j3 / j2; + while (i2 < jArr.length) { + jArr[i2] = jArr[i2] / j4; + i2++; + } + } else if (i3 >= 0 || j2 % j3 != 0) { + double d2 = ((double) j2) / ((double) j3); + while (i2 < jArr.length) { + jArr[i2] = (long) (((double) jArr[i2]) * d2); + i2++; + } + } else { + long j5 = j2 / j3; + while (i2 < jArr.length) { + jArr[i2] = jArr[i2] * j5; + i2++; + } + } + } + + public static String[] H(String str, String str2) { + return str.split(str2, -1); + } + + public static String[] I(String str, String str2) { + return str.split(str2, 2); + } + + public static boolean J(SQLiteDatabase sQLiteDatabase, String str) { + return DatabaseUtils.queryNumEntries(sQLiteDatabase, "sqlite_master", "tbl_name = ?", new String[]{str}) > 0; + } + + public static byte[] K(InputStream inputStream) throws IOException { + byte[] bArr = new byte[4096]; + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + while (true) { + int read = inputStream.read(bArr); + if (read == -1) { + return byteArrayOutputStream.toByteArray(); + } + byteArrayOutputStream.write(bArr, 0, read); + } + } + + public static long L(int i2) { + return ((long) i2) & 4294967295L; + } + + public static long M(long j2) { + return (j2 == -9223372036854775807L || j2 == Long.MIN_VALUE) ? j2 : j2 / 1000; + } + + public static boolean a(@Nullable Object obj, @Nullable Object obj2) { + return obj == null ? obj2 == null : obj.equals(obj2); + } + + public static int b(long[] jArr, long j2, boolean z2, boolean z3) { + int i2; + int binarySearch = Arrays.binarySearch(jArr, j2); + if (binarySearch < 0) { + i2 = ~binarySearch; + } else { + do { + binarySearch++; + if (binarySearch >= jArr.length) { + break; + } + } while (jArr[binarySearch] == j2); + i2 = z2 ? binarySearch - 1 : binarySearch; + } + return z3 ? Math.min(jArr.length - 1, i2) : i2; + } + + public static int c(r rVar, long j2, boolean z2, boolean z3) { + int i2; + int i3 = rVar.a - 1; + int i4 = 0; + while (i4 <= i3) { + int i5 = (i4 + i3) >>> 1; + if (rVar.b(i5) < j2) { + i4 = i5 + 1; + } else { + i3 = i5 - 1; + } + } + if (z2 && (i2 = i3 + 1) < rVar.a && rVar.b(i2) == j2) { + return i2; + } + if (!z3 || i3 != -1) { + return i3; + } + return 0; + } + + public static int d(int[] iArr, int i2, boolean z2, boolean z3) { + int i3; + int binarySearch = Arrays.binarySearch(iArr, i2); + if (binarySearch < 0) { + i3 = -(binarySearch + 2); + } else { + do { + binarySearch--; + if (binarySearch < 0) { + break; + } + } while (iArr[binarySearch] == i2); + i3 = z2 ? binarySearch + 1 : binarySearch; + } + return z3 ? Math.max(0, i3) : i3; + } + + public static int e(long[] jArr, long j2, boolean z2, boolean z3) { + int i2; + int binarySearch = Arrays.binarySearch(jArr, j2); + if (binarySearch < 0) { + i2 = -(binarySearch + 2); + } else { + do { + binarySearch--; + if (binarySearch < 0) { + break; + } + } while (jArr[binarySearch] == j2); + i2 = z2 ? binarySearch + 1 : binarySearch; + } + return z3 ? Math.max(0, i2) : i2; + } + + public static int f(int i2, int i3) { + return ((i2 + i3) - 1) / i3; + } + + public static float g(float f2, float f3, float f4) { + return Math.max(f3, Math.min(f2, f4)); + } + + public static int h(int i2, int i3, int i4) { + return Math.max(i3, Math.min(i2, i4)); + } + + public static long i(long j2, long j3, long j4) { + return Math.max(j3, Math.min(j2, j4)); + } + + public static Handler j() { + Looper myLooper = Looper.myLooper(); + d.H(myLooper); + return new Handler(myLooper, null); + } + + public static String k(String str, Object... objArr) { + return String.format(Locale.US, str, objArr); + } + + public static String l(byte[] bArr) { + return new String(bArr, c.c); + } + + public static String m(byte[] bArr, int i2, int i3) { + return new String(bArr, i2, i3, c.c); + } + + public static int n(int i2) { + switch (i2) { + case 1: + return 4; + case 2: + return 12; + case 3: + return 28; + case 4: + return 204; + case 5: + return 220; + case 6: + return 252; + case 7: + return 1276; + case 8: + int i3 = a; + return (i3 < 23 && i3 < 21) ? 0 : 6396; + default: + return 0; + } + } + + public static Looper o() { + Looper myLooper = Looper.myLooper(); + return myLooper != null ? myLooper : Looper.getMainLooper(); + } + + public static int p(int i2) { + if (i2 == 2 || i2 == 4) { + return 6005; + } + if (i2 == 10) { + return 6004; + } + if (i2 == 7) { + return 6005; + } + if (i2 == 8) { + return 6003; + } + switch (i2) { + case 15: + return 6003; + case 16: + case 18: + return 6005; + case 17: + case 19: + case 20: + case 21: + case 22: + return 6004; + default: + switch (i2) { + case 24: + case 25: + case 26: + case 27: + case 28: + return 6002; + default: + return 6006; + } + } + } + + public static long q(long j2, float f2) { + return f2 == 1.0f ? j2 : Math.round(((double) j2) * ((double) f2)); + } + + public static int r(int i2) { + if (i2 == 8) { + return 3; + } + if (i2 == 16) { + return 2; + } + if (i2 != 24) { + return i2 != 32 ? 0 : 805306368; + } + return 536870912; + } + + public static int s(int i2, int i3) { + if (i2 != 2) { + if (i2 == 3) { + return i3; + } + if (i2 != 4) { + if (i2 != 268435456) { + if (i2 == 536870912) { + return i3 * 3; + } + if (i2 != 805306368) { + throw new IllegalArgumentException(); + } + } + } + return i3 * 4; + } + return i3 * 2; + } + + public static int t(int i2) { + if (i2 == 13) { + return 1; + } + switch (i2) { + case 2: + return 0; + case 3: + return 8; + case 4: + return 4; + case 5: + case 7: + case 8: + case 9: + case 10: + return 5; + case 6: + return 2; + default: + return 3; + } + } + + public static String u(StringBuilder sb, Formatter formatter, long j2) { + if (j2 == -9223372036854775807L) { + j2 = 0; + } + String str = j2 < 0 ? "-" : ""; + long abs = (Math.abs(j2) + 500) / 1000; + long j3 = abs % 60; + long j4 = (abs / 60) % 60; + long j5 = abs / 3600; + sb.setLength(0); + return j5 > 0 ? formatter.format("%s%d:%02d:%02d", str, Long.valueOf(j5), Long.valueOf(j4), Long.valueOf(j3)).toString() : formatter.format("%s%02d:%02d", str, Long.valueOf(j4), Long.valueOf(j3)).toString(); + } + + @Nullable + public static String v(String str) { + try { + Class cls = Class.forName("android.os.SystemProperties"); + return (String) cls.getMethod("get", String.class).invoke(cls, str); + } catch (Exception e2) { + q.b("Util", str.length() != 0 ? "Failed to read system property ".concat(str) : new String("Failed to read system property "), e2); + return null; + } + } + + public static byte[] w(String str) { + return str.getBytes(c.c); + } + + public static boolean x(x xVar, x xVar2, @Nullable Inflater inflater) { + if (xVar.a() <= 0) { + return false; + } + if (xVar2.a.length < xVar.a()) { + xVar2.b(xVar.a() * 2); + } + if (inflater == null) { + inflater = new Inflater(); + } + inflater.setInput(xVar.a, xVar.f970b, xVar.a()); + int i2 = 0; + while (true) { + try { + byte[] bArr = xVar2.a; + i2 += inflater.inflate(bArr, i2, bArr.length - i2); + } catch (DataFormatException unused) { + return false; + } finally { + inflater.reset(); + } + if (inflater.finished()) { + xVar2.D(i2); + inflater.reset(); + return true; + } else if (inflater.needsDictionary() || inflater.needsInput()) { + break; + } else { + byte[] bArr2 = xVar2.a; + if (i2 == bArr2.length) { + xVar2.b(bArr2.length * 2); + } + } + } + return false; + } + + public static boolean y(int i2) { + return i2 == 536870912 || i2 == 805306368 || i2 == 4; + } + + public static boolean z(int i2) { + return i2 == 3 || i2 == 2 || i2 == 268435456 || i2 == 536870912 || i2 == 805306368 || i2 == 4; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/f.java b/app/src/main/java/b/i/a/c/f3/f.java new file mode 100644 index 0000000000..d3fe72289b --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/f.java @@ -0,0 +1,47 @@ +package b.i.a.c.f3; + +import android.os.Bundle; +import androidx.annotation.Nullable; +import b.i.a.c.w0; +import b.i.b.b.a; +import b.i.b.b.n; +import b.i.b.b.p; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +/* compiled from: BundleableUtil */ +public final class f { + public static p a(w0.a aVar, List list) { + a aVar2 = p.k; + b.i.a.f.e.o.f.z(4, "initialCapacity"); + Object[] objArr = new Object[4]; + int i = 0; + int i2 = 0; + while (i < list.size()) { + Bundle bundle = list.get(i); + Objects.requireNonNull(bundle); + T a = aVar.a(bundle); + Objects.requireNonNull(a); + int i3 = i2 + 1; + if (objArr.length < i3) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i3)); + } + objArr[i2] = a; + i++; + i2 = i3; + } + return p.l(objArr, i2); + } + + public static List b(w0.a aVar, @Nullable List list, List list2) { + return list == null ? list2 : a(aVar, list); + } + + @Nullable + public static T c(w0.a aVar, @Nullable Bundle bundle) { + if (bundle == null) { + return null; + } + return aVar.a(bundle); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/g.java b/app/src/main/java/b/i/a/c/f3/g.java new file mode 100644 index 0000000000..f1803ee965 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/g.java @@ -0,0 +1,17 @@ +package b.i.a.c.f3; + +import android.os.Handler; +import android.os.Looper; +import androidx.annotation.Nullable; +/* compiled from: Clock */ +public interface g { + public static final g a = new a0(); + + long a(); + + o b(Looper looper, @Nullable Handler.Callback callback); + + void c(); + + long d(); +} diff --git a/app/src/main/java/b/i/a/c/f3/h.java b/app/src/main/java/b/i/a/c/f3/h.java new file mode 100644 index 0000000000..6a0d4ff8f7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/h.java @@ -0,0 +1,37 @@ +package b.i.a.c.f3; + +import androidx.exifinterface.media.ExifInterface; +/* compiled from: CodecSpecificDataUtil */ +public final class h { + public static final byte[] a = {0, 0, 0, 1}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f955b = {"", ExifInterface.GPS_MEASUREMENT_IN_PROGRESS, "B", "C"}; + + public static String a(int i, int i2, int i3) { + return String.format("avc1.%02X%02X%02X", Integer.valueOf(i), Integer.valueOf(i2), Integer.valueOf(i3)); + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0026: APUT + (r1v1 java.lang.Object[]) + (3 ??[int, float, short, byte, char]) + (wrap: java.lang.Character : 0x0021: INVOKE (r3v5 java.lang.Character) = (r3v4 char) type: STATIC call: java.lang.Character.valueOf(char):java.lang.Character) + */ + public static String b(int i, boolean z2, int i2, int i3, int[] iArr, int i4) { + Object[] objArr = new Object[5]; + objArr[0] = f955b[i]; + objArr[1] = Integer.valueOf(i2); + objArr[2] = Integer.valueOf(i3); + objArr[3] = Character.valueOf(z2 ? 'H' : 'L'); + objArr[4] = Integer.valueOf(i4); + StringBuilder sb = new StringBuilder(e0.k("hvc1.%s%d.%X.%c%d", objArr)); + int length = iArr.length; + while (length > 0 && iArr[length - 1] == 0) { + length--; + } + for (int i5 = 0; i5 < length; i5++) { + sb.append(String.format(".%02X", Integer.valueOf(iArr[i5]))); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/i.java b/app/src/main/java/b/i/a/c/f3/i.java new file mode 100644 index 0000000000..a14452aba2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/i.java @@ -0,0 +1,166 @@ +package b.i.a.c.f3; + +import android.graphics.Color; +import android.text.TextUtils; +import androidx.annotation.ColorInt; +import androidx.core.internal.view.SupportMenu; +import androidx.core.view.InputDeviceCompat; +import androidx.core.view.ViewCompat; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: ColorParser */ +public final class i { + public static final Pattern a = Pattern.compile("^rgb\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)$"); + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f956b = Pattern.compile("^rgba\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)$"); + public static final Pattern c = Pattern.compile("^rgba\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3}),(\\d*\\.?\\d*?)\\)$"); + public static final Map d; + + static { + HashMap hashMap = new HashMap(); + d = hashMap; + hashMap.put("aliceblue", -984833); + hashMap.put("antiquewhite", -332841); + hashMap.put("aqua", -16711681); + a.h0(-8388652, hashMap, "aquamarine", -983041, "azure", -657956, "beige", -6972, "bisque"); + a.h0(ViewCompat.MEASURED_STATE_MASK, hashMap, "black", -5171, "blanchedalmond", -16776961, "blue", -7722014, "blueviolet"); + a.h0(-5952982, hashMap, "brown", -2180985, "burlywood", -10510688, "cadetblue", -8388864, "chartreuse"); + a.h0(-2987746, hashMap, "chocolate", -32944, "coral", -10185235, "cornflowerblue", -1828, "cornsilk"); + hashMap.put("crimson", -2354116); + hashMap.put("cyan", -16711681); + hashMap.put("darkblue", -16777077); + hashMap.put("darkcyan", -16741493); + hashMap.put("darkgoldenrod", -4684277); + hashMap.put("darkgray", -5658199); + hashMap.put("darkgreen", -16751616); + hashMap.put("darkgrey", -5658199); + hashMap.put("darkkhaki", -4343957); + a.h0(-7667573, hashMap, "darkmagenta", -11179217, "darkolivegreen", -29696, "darkorange", -6737204, "darkorchid"); + a.h0(-7667712, hashMap, "darkred", -1468806, "darksalmon", -7357297, "darkseagreen", -12042869, "darkslateblue"); + hashMap.put("darkslategray", -13676721); + hashMap.put("darkslategrey", -13676721); + hashMap.put("darkturquoise", -16724271); + hashMap.put("darkviolet", -7077677); + hashMap.put("deeppink", -60269); + hashMap.put("deepskyblue", -16728065); + hashMap.put("dimgray", -9868951); + hashMap.put("dimgrey", -9868951); + a.h0(-14774017, hashMap, "dodgerblue", -5103070, "firebrick", -1296, "floralwhite", -14513374, "forestgreen"); + hashMap.put("fuchsia", -65281); + hashMap.put("gainsboro", -2302756); + hashMap.put("ghostwhite", -460545); + hashMap.put("gold", -10496); + hashMap.put("goldenrod", -2448096); + hashMap.put("gray", -8355712); + hashMap.put("green", -16744448); + hashMap.put("greenyellow", -5374161); + hashMap.put("grey", -8355712); + a.h0(-983056, hashMap, "honeydew", -38476, "hotpink", -3318692, "indianred", -11861886, "indigo"); + a.h0(-16, hashMap, "ivory", -989556, "khaki", -1644806, "lavender", -3851, "lavenderblush"); + a.h0(-8586240, hashMap, "lawngreen", -1331, "lemonchiffon", -5383962, "lightblue", -1015680, "lightcoral"); + hashMap.put("lightcyan", -2031617); + hashMap.put("lightgoldenrodyellow", -329006); + hashMap.put("lightgray", -2894893); + hashMap.put("lightgreen", -7278960); + hashMap.put("lightgrey", -2894893); + hashMap.put("lightpink", -18751); + hashMap.put("lightsalmon", -24454); + hashMap.put("lightseagreen", -14634326); + hashMap.put("lightskyblue", -7876870); + hashMap.put("lightslategray", -8943463); + hashMap.put("lightslategrey", -8943463); + hashMap.put("lightsteelblue", -5192482); + hashMap.put("lightyellow", -32); + hashMap.put("lime", -16711936); + hashMap.put("limegreen", -13447886); + hashMap.put("linen", -331546); + hashMap.put("magenta", -65281); + hashMap.put("maroon", -8388608); + hashMap.put("mediumaquamarine", -10039894); + a.h0(-16777011, hashMap, "mediumblue", -4565549, "mediumorchid", -7114533, "mediumpurple", -12799119, "mediumseagreen"); + a.h0(-8689426, hashMap, "mediumslateblue", -16713062, "mediumspringgreen", -12004916, "mediumturquoise", -3730043, "mediumvioletred"); + a.h0(-15132304, hashMap, "midnightblue", -655366, "mintcream", -6943, "mistyrose", -6987, "moccasin"); + a.h0(-8531, hashMap, "navajowhite", -16777088, "navy", -133658, "oldlace", -8355840, "olive"); + a.h0(-9728477, hashMap, "olivedrab", -23296, "orange", -47872, "orangered", -2461482, "orchid"); + a.h0(-1120086, hashMap, "palegoldenrod", -6751336, "palegreen", -5247250, "paleturquoise", -2396013, "palevioletred"); + a.h0(-4139, hashMap, "papayawhip", -9543, "peachpuff", -3308225, "peru", -16181, "pink"); + a.h0(-2252579, hashMap, "plum", -5185306, "powderblue", -8388480, "purple", -10079335, "rebeccapurple"); + a.h0(SupportMenu.CATEGORY_MASK, hashMap, "red", -4419697, "rosybrown", -12490271, "royalblue", -7650029, "saddlebrown"); + a.h0(-360334, hashMap, "salmon", -744352, "sandybrown", -13726889, "seagreen", -2578, "seashell"); + a.h0(-6270419, hashMap, "sienna", -4144960, "silver", -7876885, "skyblue", -9807155, "slateblue"); + hashMap.put("slategray", -9404272); + hashMap.put("slategrey", -9404272); + hashMap.put("snow", -1286); + hashMap.put("springgreen", -16711809); + a.h0(-12156236, hashMap, "steelblue", -2968436, "tan", -16744320, "teal", -2572328, "thistle"); + a.h0(-40121, hashMap, "tomato", 0, "transparent", -12525360, "turquoise", -1146130, "violet"); + a.h0(-663885, hashMap, "wheat", -1, "white", -657931, "whitesmoke", InputDeviceCompat.SOURCE_ANY, "yellow"); + hashMap.put("yellowgreen", -6632142); + } + + @ColorInt + public static int a(String str, boolean z2) { + int i; + d.j(!TextUtils.isEmpty(str)); + String replace = str.replace(" ", ""); + if (replace.charAt(0) == '#') { + int parseLong = (int) Long.parseLong(replace.substring(1), 16); + if (replace.length() == 7) { + return -16777216 | parseLong; + } + if (replace.length() == 9) { + return ((parseLong & 255) << 24) | (parseLong >>> 8); + } + throw new IllegalArgumentException(); + } + if (replace.startsWith("rgba")) { + Matcher matcher = (z2 ? c : f956b).matcher(replace); + if (matcher.matches()) { + if (z2) { + String group = matcher.group(4); + Objects.requireNonNull(group); + i = (int) (Float.parseFloat(group) * 255.0f); + } else { + String group2 = matcher.group(4); + Objects.requireNonNull(group2); + i = Integer.parseInt(group2, 10); + } + String group3 = matcher.group(1); + Objects.requireNonNull(group3); + int parseInt = Integer.parseInt(group3, 10); + String group4 = matcher.group(2); + Objects.requireNonNull(group4); + int parseInt2 = Integer.parseInt(group4, 10); + String group5 = matcher.group(3); + Objects.requireNonNull(group5); + return Color.argb(i, parseInt, parseInt2, Integer.parseInt(group5, 10)); + } + } else if (replace.startsWith("rgb")) { + Matcher matcher2 = a.matcher(replace); + if (matcher2.matches()) { + String group6 = matcher2.group(1); + Objects.requireNonNull(group6); + int parseInt3 = Integer.parseInt(group6, 10); + String group7 = matcher2.group(2); + Objects.requireNonNull(group7); + int parseInt4 = Integer.parseInt(group7, 10); + String group8 = matcher2.group(3); + Objects.requireNonNull(group8); + return Color.rgb(parseInt3, parseInt4, Integer.parseInt(group8, 10)); + } + } else { + Integer num = d.get(f.m1(replace)); + if (num != null) { + return num.intValue(); + } + } + throw new IllegalArgumentException(); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/j.java b/app/src/main/java/b/i/a/c/f3/j.java new file mode 100644 index 0000000000..fd7e3de8a1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/j.java @@ -0,0 +1,24 @@ +package b.i.a.c.f3; +/* compiled from: ConditionVariable */ +public class j { + public final g a = g.a; + + /* renamed from: b reason: collision with root package name */ + public boolean f957b; + + public synchronized boolean a() { + boolean z2; + z2 = this.f957b; + this.f957b = false; + return z2; + } + + public synchronized boolean b() { + if (this.f957b) { + return false; + } + this.f957b = true; + notifyAll(); + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/k.java b/app/src/main/java/b/i/a/c/f3/k.java new file mode 100644 index 0000000000..1ee54c30a7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/k.java @@ -0,0 +1,5 @@ +package b.i.a.c.f3; +/* compiled from: Consumer */ +public interface k { + void accept(T t); +} diff --git a/app/src/main/java/b/i/a/c/f3/l.java b/app/src/main/java/b/i/a/c/f3/l.java new file mode 100644 index 0000000000..80f7858520 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/l.java @@ -0,0 +1,36 @@ +package b.i.a.c.f3; + +import androidx.annotation.GuardedBy; +import java.util.Collections; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +/* compiled from: CopyOnWriteMultiset */ +public final class l implements Iterable { + public final Object j = new Object(); + @GuardedBy("lock") + public final Map k = new HashMap(); + @GuardedBy("lock") + public Set l = Collections.emptySet(); + @GuardedBy("lock") + public List m = Collections.emptyList(); + + public int c(E e) { + int intValue; + synchronized (this.j) { + intValue = this.k.containsKey(e) ? this.k.get(e).intValue() : 0; + } + return intValue; + } + + @Override // java.lang.Iterable + public Iterator iterator() { + Iterator it; + synchronized (this.j) { + it = this.m.iterator(); + } + return it; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/m.java b/app/src/main/java/b/i/a/c/f3/m.java new file mode 100644 index 0000000000..65a1a9f138 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/m.java @@ -0,0 +1,8 @@ +package b.i.a.c.f3; + +import android.util.Pair; +import java.lang.Throwable; +/* compiled from: ErrorMessageProvider */ +public interface m { + Pair a(T t); +} diff --git a/app/src/main/java/b/i/a/c/f3/n.java b/app/src/main/java/b/i/a/c/f3/n.java new file mode 100644 index 0000000000..968fa8aff3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/n.java @@ -0,0 +1,79 @@ +package b.i.a.c.f3; + +import android.util.SparseBooleanArray; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +/* compiled from: FlagSet */ +public final class n { + public final SparseBooleanArray a; + + /* compiled from: FlagSet */ + public static final class b { + public final SparseBooleanArray a = new SparseBooleanArray(); + + /* renamed from: b reason: collision with root package name */ + public boolean f958b; + + public b a(int i) { + d.D(!this.f958b); + this.a.append(i, true); + return this; + } + + public n b() { + d.D(!this.f958b); + this.f958b = true; + return new n(this.a, null); + } + } + + public n(SparseBooleanArray sparseBooleanArray, a aVar) { + this.a = sparseBooleanArray; + } + + public boolean a(int i) { + return this.a.get(i); + } + + public int b(int i) { + d.t(i, 0, c()); + return this.a.keyAt(i); + } + + public int c() { + return this.a.size(); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof n)) { + return false; + } + n nVar = (n) obj; + if (e0.a >= 24) { + return this.a.equals(nVar.a); + } + if (c() != nVar.c()) { + return false; + } + for (int i = 0; i < c(); i++) { + if (b(i) != nVar.b(i)) { + return false; + } + } + return true; + } + + public int hashCode() { + if (e0.a >= 24) { + return this.a.hashCode(); + } + int c = c(); + for (int i = 0; i < c(); i++) { + c = (c * 31) + b(i); + } + return c; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/o.java b/app/src/main/java/b/i/a/c/f3/o.java new file mode 100644 index 0000000000..c413eed55a --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/o.java @@ -0,0 +1,30 @@ +package b.i.a.c.f3; + +import androidx.annotation.Nullable; +/* compiled from: HandlerWrapper */ +public interface o { + + /* compiled from: HandlerWrapper */ + public interface a { + } + + a a(int i, int i2, int i3); + + boolean b(Runnable runnable); + + a c(int i); + + boolean d(a aVar); + + boolean e(int i); + + boolean f(int i); + + boolean g(int i, long j); + + void h(int i); + + a i(int i, @Nullable Object obj); + + void j(@Nullable Object obj); +} diff --git a/app/src/main/java/b/i/a/c/f3/p.java b/app/src/main/java/b/i/a/c/f3/p.java new file mode 100644 index 0000000000..4807fcdfb7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/p.java @@ -0,0 +1,101 @@ +package b.i.a.c.f3; + +import android.os.Looper; +import androidx.annotation.Nullable; +import b.i.a.c.f3.n; +import java.util.ArrayDeque; +import java.util.Iterator; +import java.util.concurrent.CopyOnWriteArraySet; +/* compiled from: ListenerSet */ +public final class p { + public final g a; + + /* renamed from: b reason: collision with root package name */ + public final o f959b; + public final b c; + public final CopyOnWriteArraySet> d; + public final ArrayDeque e = new ArrayDeque<>(); + public final ArrayDeque f = new ArrayDeque<>(); + public boolean g; + + /* compiled from: ListenerSet */ + public interface a { + void invoke(T t); + } + + /* compiled from: ListenerSet */ + public interface b { + void a(T t, n nVar); + } + + /* compiled from: ListenerSet */ + public static final class c { + public final T a; + + /* renamed from: b reason: collision with root package name */ + public n.b f960b = new n.b(); + public boolean c; + public boolean d; + + public c(T t) { + this.a = t; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || c.class != obj.getClass()) { + return false; + } + return this.a.equals(((c) obj).a); + } + + public int hashCode() { + return this.a.hashCode(); + } + } + + public p(CopyOnWriteArraySet> copyOnWriteArraySet, Looper looper, g gVar, b bVar) { + this.a = gVar; + this.d = copyOnWriteArraySet; + this.c = bVar; + this.f959b = gVar.b(looper, new b(this)); + } + + public void a() { + if (!this.f.isEmpty()) { + if (!this.f959b.e(0)) { + o oVar = this.f959b; + oVar.d(oVar.c(0)); + } + boolean z2 = !this.e.isEmpty(); + this.e.addAll(this.f); + this.f.clear(); + if (!z2) { + while (!this.e.isEmpty()) { + this.e.peekFirst().run(); + this.e.removeFirst(); + } + } + } + } + + public void b(int i, a aVar) { + this.f.add(new a(new CopyOnWriteArraySet(this.d), i, aVar)); + } + + public void c() { + Iterator> it = this.d.iterator(); + while (it.hasNext()) { + c next = it.next(); + b bVar = this.c; + next.d = true; + if (next.c) { + bVar.a(next.a, next.f960b.b()); + } + } + this.d.clear(); + this.g = true; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/q.java b/app/src/main/java/b/i/a/c/f3/q.java new file mode 100644 index 0000000000..d275a84347 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/q.java @@ -0,0 +1,53 @@ +package b.i.a.c.f3; + +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.Nullable; +import java.net.UnknownHostException; +import org.checkerframework.dataflow.qual.Pure; +/* compiled from: Log */ +public final class q { + @Pure + public static String a(String str, @Nullable Throwable th) { + String str2; + boolean z2; + if (th == null) { + str2 = null; + } else { + Throwable th2 = th; + while (true) { + if (th2 == null) { + z2 = false; + break; + } else if (th2 instanceof UnknownHostException) { + z2 = true; + break; + } else { + th2 = th2.getCause(); + } + } + str2 = z2 ? "UnknownHostException (no network)" : Log.getStackTraceString(th).trim().replace("\t", " "); + } + if (TextUtils.isEmpty(str2)) { + return str; + } + String valueOf = String.valueOf(str); + String replace = str2.replace("\n", "\n "); + StringBuilder sb = new StringBuilder(String.valueOf(replace).length() + valueOf.length() + 4); + sb.append(valueOf); + sb.append("\n "); + sb.append(replace); + sb.append('\n'); + return sb.toString(); + } + + @Pure + public static void b(String str, String str2, @Nullable Throwable th) { + Log.e(str, a(str2, th)); + } + + @Pure + public static void c(String str, String str2, @Nullable Throwable th) { + Log.w(str, a(str2, th)); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/r.java b/app/src/main/java/b/i/a/c/f3/r.java new file mode 100644 index 0000000000..f76ca7eed8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/r.java @@ -0,0 +1,30 @@ +package b.i.a.c.f3; + +import b.d.b.a.a; +import java.util.Arrays; +/* compiled from: LongArray */ +public final class r { + public int a; + + /* renamed from: b reason: collision with root package name */ + public long[] f961b = new long[32]; + + public void a(long j) { + int i = this.a; + long[] jArr = this.f961b; + if (i == jArr.length) { + this.f961b = Arrays.copyOf(jArr, i * 2); + } + long[] jArr2 = this.f961b; + int i2 = this.a; + this.a = i2 + 1; + jArr2[i2] = j; + } + + public long b(int i) { + if (i >= 0 && i < this.a) { + return this.f961b[i]; + } + throw new IndexOutOfBoundsException(a.g(46, "Invalid index ", i, ", size is ", this.a)); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/s.java b/app/src/main/java/b/i/a/c/f3/s.java new file mode 100644 index 0000000000..27f1a0acc9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/s.java @@ -0,0 +1,11 @@ +package b.i.a.c.f3; + +import b.i.a.c.x1; +/* compiled from: MediaClock */ +public interface s { + x1 c(); + + long e(); + + void i(x1 x1Var); +} diff --git a/app/src/main/java/b/i/a/c/f3/t.java b/app/src/main/java/b/i/a/c/f3/t.java new file mode 100644 index 0000000000..28b64c0a89 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/t.java @@ -0,0 +1,464 @@ +package b.i.a.c.f3; + +import android.text.TextUtils; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import androidx.core.app.NotificationCompat; +import b.i.a.f.e.o.f; +import java.util.ArrayList; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import org.webrtc.MediaStreamTrack; +/* compiled from: MimeTypes */ +public final class t { + public static final ArrayList a = new ArrayList<>(); + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f962b = Pattern.compile("^mp4a\\.([a-zA-Z0-9]{2})(?:\\.([0-9]{1,2}))?$"); + + /* compiled from: MimeTypes */ + public static final class a { + } + + /* compiled from: MimeTypes */ + @VisibleForTesting + public static final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f963b; + + public b(int i, int i2) { + this.a = i; + this.f963b = i2; + } + + public int a() { + int i = this.f963b; + if (i == 2) { + return 10; + } + if (i == 5) { + return 11; + } + if (i == 29) { + return 12; + } + if (i != 42) { + return i != 22 ? i != 23 ? 0 : 15 : BasicMeasure.EXACTLY; + } + return 16; + } + } + + public static boolean a(@Nullable String str, @Nullable String str2) { + b e; + int a2; + if (str == null) { + return false; + } + char c = 65535; + switch (str.hashCode()) { + case -2123537834: + if (str.equals("audio/eac3-joc")) { + c = 0; + break; + } + break; + case -432837260: + if (str.equals("audio/mpeg-L1")) { + c = 1; + break; + } + break; + case -432837259: + if (str.equals("audio/mpeg-L2")) { + c = 2; + break; + } + break; + case -53558318: + if (str.equals("audio/mp4a-latm")) { + c = 3; + break; + } + break; + case 187078296: + if (str.equals("audio/ac3")) { + c = 4; + break; + } + break; + case 187094639: + if (str.equals("audio/raw")) { + c = 5; + break; + } + break; + case 1504578661: + if (str.equals("audio/eac3")) { + c = 6; + break; + } + break; + case 1504619009: + if (str.equals("audio/flac")) { + c = 7; + break; + } + break; + case 1504831518: + if (str.equals("audio/mpeg")) { + c = '\b'; + break; + } + break; + case 1903231877: + if (str.equals("audio/g711-alaw")) { + c = '\t'; + break; + } + break; + case 1903589369: + if (str.equals("audio/g711-mlaw")) { + c = '\n'; + break; + } + break; + } + switch (c) { + case 0: + case 1: + case 2: + case 4: + case 5: + case 6: + case 7: + case '\b': + case '\t': + case '\n': + return true; + case 3: + return (str2 == null || (e = e(str2)) == null || (a2 = e.a()) == 0 || a2 == 16) ? false : true; + default: + return false; + } + } + + public static int b(String str, @Nullable String str2) { + b e; + char c = 65535; + switch (str.hashCode()) { + case -2123537834: + if (str.equals("audio/eac3-joc")) { + c = 0; + break; + } + break; + case -1095064472: + if (str.equals("audio/vnd.dts")) { + c = 1; + break; + } + break; + case -53558318: + if (str.equals("audio/mp4a-latm")) { + c = 2; + break; + } + break; + case 187078296: + if (str.equals("audio/ac3")) { + c = 3; + break; + } + break; + case 187078297: + if (str.equals("audio/ac4")) { + c = 4; + break; + } + break; + case 1504578661: + if (str.equals("audio/eac3")) { + c = 5; + break; + } + break; + case 1504831518: + if (str.equals("audio/mpeg")) { + c = 6; + break; + } + break; + case 1505942594: + if (str.equals("audio/vnd.dts.hd")) { + c = 7; + break; + } + break; + case 1556697186: + if (str.equals("audio/true-hd")) { + c = '\b'; + break; + } + break; + } + switch (c) { + case 0: + return 18; + case 1: + return 7; + case 2: + if (str2 == null || (e = e(str2)) == null) { + return 0; + } + return e.a(); + case 3: + return 5; + case 4: + return 17; + case 5: + return 6; + case 6: + return 9; + case 7: + return 8; + case '\b': + return 14; + default: + return 0; + } + } + + @Nullable + public static String c(@Nullable String str) { + b e; + String str2 = null; + if (str == null) { + return null; + } + String m1 = f.m1(str.trim()); + if (m1.startsWith("avc1") || m1.startsWith("avc3")) { + return "video/avc"; + } + if (m1.startsWith("hev1") || m1.startsWith("hvc1")) { + return "video/hevc"; + } + if (m1.startsWith("dvav") || m1.startsWith("dva1") || m1.startsWith("dvhe") || m1.startsWith("dvh1")) { + return "video/dolby-vision"; + } + if (m1.startsWith("av01")) { + return "video/av01"; + } + if (m1.startsWith("vp9") || m1.startsWith("vp09")) { + return "video/x-vnd.on2.vp9"; + } + if (m1.startsWith("vp8") || m1.startsWith("vp08")) { + return "video/x-vnd.on2.vp8"; + } + if (m1.startsWith("mp4a")) { + if (m1.startsWith("mp4a.") && (e = e(m1)) != null) { + str2 = d(e.a); + } + return str2 == null ? "audio/mp4a-latm" : str2; + } else if (m1.startsWith("mha1")) { + return "audio/mha1"; + } else { + if (m1.startsWith("mhm1")) { + return "audio/mhm1"; + } + if (m1.startsWith("ac-3") || m1.startsWith("dac3")) { + return "audio/ac3"; + } + if (m1.startsWith("ec-3") || m1.startsWith("dec3")) { + return "audio/eac3"; + } + if (m1.startsWith("ec+3")) { + return "audio/eac3-joc"; + } + if (m1.startsWith("ac-4") || m1.startsWith("dac4")) { + return "audio/ac4"; + } + if (m1.startsWith("dtsc")) { + return "audio/vnd.dts"; + } + if (m1.startsWith("dtse")) { + return "audio/vnd.dts.hd;profile=lbr"; + } + if (m1.startsWith("dtsh") || m1.startsWith("dtsl")) { + return "audio/vnd.dts.hd"; + } + if (m1.startsWith("dtsx")) { + return "audio/vnd.dts.uhd;profile=p2"; + } + if (m1.startsWith("opus")) { + return "audio/opus"; + } + if (m1.startsWith("vorbis")) { + return "audio/vorbis"; + } + if (m1.startsWith("flac")) { + return "audio/flac"; + } + if (m1.startsWith("stpp")) { + return "application/ttml+xml"; + } + if (m1.startsWith("wvtt")) { + return "text/vtt"; + } + if (m1.contains("cea708")) { + return "application/cea-708"; + } + if (m1.contains("eia608") || m1.contains("cea608")) { + return "application/cea-608"; + } + int size = a.size(); + for (int i = 0; i < size; i++) { + Objects.requireNonNull(a.get(i)); + if (m1.startsWith(null)) { + break; + } + } + return null; + } + } + + @Nullable + public static String d(int i) { + if (i == 32) { + return "video/mp4v-es"; + } + if (i == 33) { + return "video/avc"; + } + if (i == 35) { + return "video/hevc"; + } + if (i == 64) { + return "audio/mp4a-latm"; + } + if (i == 163) { + return "video/wvc1"; + } + if (i == 177) { + return "video/x-vnd.on2.vp9"; + } + if (i == 165) { + return "audio/ac3"; + } + if (i == 166) { + return "audio/eac3"; + } + switch (i) { + case 96: + case 97: + case 98: + case 99: + case 100: + case 101: + return "video/mpeg2"; + case 102: + case 103: + case 104: + return "audio/mp4a-latm"; + case 105: + case 107: + return "audio/mpeg"; + case 106: + return "video/mpeg"; + default: + switch (i) { + case 169: + case 172: + return "audio/vnd.dts"; + case 170: + case 171: + return "audio/vnd.dts.hd"; + case 173: + return "audio/opus"; + case 174: + return "audio/ac4"; + default: + return null; + } + } + } + + @Nullable + @VisibleForTesting + public static b e(String str) { + Matcher matcher = f962b.matcher(str); + if (!matcher.matches()) { + return null; + } + String group = matcher.group(1); + Objects.requireNonNull(group); + String group2 = matcher.group(2); + int i = 0; + try { + int parseInt = Integer.parseInt(group, 16); + if (group2 != null) { + i = Integer.parseInt(group2); + } + return new b(parseInt, i); + } catch (NumberFormatException unused) { + return null; + } + } + + @Nullable + public static String f(@Nullable String str) { + int indexOf; + if (str == null || (indexOf = str.indexOf(47)) == -1) { + return null; + } + return str.substring(0, indexOf); + } + + public static int g(@Nullable String str) { + if (TextUtils.isEmpty(str)) { + return -1; + } + if (h(str)) { + return 1; + } + if (j(str)) { + return 2; + } + if (i(str)) { + return 3; + } + if ("image".equals(f(str))) { + return 4; + } + if ("application/id3".equals(str) || "application/x-emsg".equals(str) || "application/x-scte35".equals(str)) { + return 5; + } + if ("application/x-camera-motion".equals(str)) { + return 6; + } + int size = a.size(); + for (int i = 0; i < size; i++) { + Objects.requireNonNull(a.get(i)); + if (str.equals(null)) { + return 0; + } + } + return -1; + } + + public static boolean h(@Nullable String str) { + return MediaStreamTrack.AUDIO_TRACK_KIND.equals(f(str)); + } + + public static boolean i(@Nullable String str) { + return NotificationCompat.MessagingStyle.Message.KEY_TEXT.equals(f(str)) || "application/cea-608".equals(str) || "application/cea-708".equals(str) || "application/x-mp4-cea-608".equals(str) || "application/x-subrip".equals(str) || "application/ttml+xml".equals(str) || "application/x-quicktime-tx3g".equals(str) || "application/x-mp4-vtt".equals(str) || "application/x-rawcc".equals(str) || "application/vobsub".equals(str) || "application/pgs".equals(str) || "application/dvbsubs".equals(str); + } + + public static boolean j(@Nullable String str) { + return MediaStreamTrack.VIDEO_TRACK_KIND.equals(f(str)); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/u.java b/app/src/main/java/b/i/a/c/f3/u.java new file mode 100644 index 0000000000..5c2f64b079 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/u.java @@ -0,0 +1,516 @@ +package b.i.a.c.f3; + +import b.c.a.a0.d; +import java.util.Arrays; +/* compiled from: NalUnitUtil */ +public final class u { + public static final byte[] a = {0, 0, 0, 1}; + + /* renamed from: b reason: collision with root package name */ + public static final float[] f964b = {1.0f, 1.0f, 1.0909091f, 0.90909094f, 1.4545455f, 1.2121212f, 2.1818182f, 1.8181819f, 2.909091f, 2.4242425f, 1.6363636f, 1.3636364f, 1.939394f, 1.6161616f, 1.3333334f, 1.5f, 2.0f}; + public static final Object c = new Object(); + public static int[] d = new int[10]; + + /* compiled from: NalUnitUtil */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f965b; + public final int c; + public final int d; + public final int[] e; + public final int f; + public final int g; + public final int h; + public final float i; + + public a(int i, boolean z2, int i2, int i3, int[] iArr, int i4, int i5, int i6, int i7, float f) { + this.a = i; + this.f965b = z2; + this.c = i2; + this.d = i3; + this.e = iArr; + this.f = i4; + this.g = i6; + this.h = i7; + this.i = f; + } + } + + /* compiled from: NalUnitUtil */ + public static final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f966b; + public final boolean c; + + public b(int i, int i2, boolean z2) { + this.a = i; + this.f966b = i2; + this.c = z2; + } + } + + /* compiled from: NalUnitUtil */ + public static final class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f967b; + public final int c; + public final int d; + public final int e; + public final int f; + public final float g; + public final boolean h; + public final boolean i; + public final int j; + public final int k; + public final int l; + public final boolean m; + + public c(int i, int i2, int i3, int i4, int i5, int i6, float f, boolean z2, boolean z3, int i7, int i8, int i9, boolean z4) { + this.a = i; + this.f967b = i2; + this.c = i3; + this.d = i4; + this.e = i5; + this.f = i6; + this.g = f; + this.h = z2; + this.i = z3; + this.j = i7; + this.k = i8; + this.l = i9; + this.m = z4; + } + } + + public static void a(boolean[] zArr) { + zArr[0] = false; + zArr[1] = false; + zArr[2] = false; + } + + public static int b(byte[] bArr, int i, int i2, boolean[] zArr) { + int i3 = i2 - i; + boolean z2 = false; + d.D(i3 >= 0); + if (i3 == 0) { + return i2; + } + if (zArr[0]) { + zArr[0] = false; + zArr[1] = false; + zArr[2] = false; + return i - 3; + } else if (i3 > 1 && zArr[1] && bArr[i] == 1) { + zArr[0] = false; + zArr[1] = false; + zArr[2] = false; + return i - 2; + } else if (i3 <= 2 || !zArr[2] || bArr[i] != 0 || bArr[i + 1] != 1) { + int i4 = i2 - 1; + int i5 = i + 2; + while (i5 < i4) { + if ((bArr[i5] & 254) == 0) { + int i6 = i5 - 2; + if (bArr[i6] == 0 && bArr[i5 - 1] == 0 && bArr[i5] == 1) { + zArr[0] = false; + zArr[1] = false; + zArr[2] = false; + return i6; + } + i5 -= 2; + } + i5 += 3; + } + zArr[0] = i3 <= 2 ? !(i3 != 2 ? !zArr[1] || bArr[i4] != 1 : !(zArr[2] && bArr[i2 + -2] == 0 && bArr[i4] == 1)) : bArr[i2 + -3] == 0 && bArr[i2 + -2] == 0 && bArr[i4] == 1; + zArr[1] = i3 <= 1 ? !(!zArr[2] || bArr[i4] != 0) : bArr[i2 + -2] == 0 && bArr[i4] == 0; + if (bArr[i4] == 0) { + z2 = true; + } + zArr[2] = z2; + return i2; + } else { + zArr[0] = false; + zArr[1] = false; + zArr[2] = false; + return i - 1; + } + } + + public static a c(byte[] bArr, int i, int i2) { + int i3 = 2; + y yVar = new y(bArr, i + 2, i2); + yVar.j(4); + int e = yVar.e(3); + yVar.i(); + int e2 = yVar.e(2); + boolean d2 = yVar.d(); + int e3 = yVar.e(5); + int i4 = 0; + for (int i5 = 0; i5 < 32; i5++) { + if (yVar.d()) { + i4 |= 1 << i5; + } + } + int i6 = 6; + int[] iArr = new int[6]; + for (int i7 = 0; i7 < 6; i7++) { + iArr[i7] = yVar.e(8); + } + int e4 = yVar.e(8); + int i8 = 0; + for (int i9 = 0; i9 < e; i9++) { + if (yVar.d()) { + i8 += 89; + } + if (yVar.d()) { + i8 += 8; + } + } + yVar.j(i8); + if (e > 0) { + yVar.j((8 - e) * 2); + } + int f = yVar.f(); + int f2 = yVar.f(); + if (f2 == 3) { + yVar.i(); + } + int f3 = yVar.f(); + int f4 = yVar.f(); + if (yVar.d()) { + int f5 = yVar.f(); + int f6 = yVar.f(); + int f7 = yVar.f(); + int f8 = yVar.f(); + f3 -= (f5 + f6) * ((f2 == 1 || f2 == 2) ? 2 : 1); + f4 -= (f7 + f8) * (f2 == 1 ? 2 : 1); + } + yVar.f(); + yVar.f(); + int f9 = yVar.f(); + for (int i10 = yVar.d() ? 0 : e; i10 <= e; i10++) { + yVar.f(); + yVar.f(); + yVar.f(); + } + yVar.f(); + yVar.f(); + yVar.f(); + yVar.f(); + yVar.f(); + yVar.f(); + if (yVar.d() && yVar.d()) { + int i11 = 0; + int i12 = 4; + while (i11 < i12) { + int i13 = 0; + while (i13 < i6) { + if (!yVar.d()) { + yVar.f(); + } else { + int min = Math.min(64, 1 << ((i11 << 1) + 4)); + if (i11 > 1) { + yVar.g(); + } + for (int i14 = 0; i14 < min; i14++) { + yVar.g(); + } + } + i13 += i11 == 3 ? 3 : 1; + i6 = 6; + } + i11++; + i12 = 4; + i6 = 6; + i3 = 2; + } + } + yVar.j(i3); + if (yVar.d()) { + yVar.j(8); + yVar.f(); + yVar.f(); + yVar.i(); + } + int f10 = yVar.f(); + boolean z2 = false; + int i15 = 0; + for (int i16 = 0; i16 < f10; i16++) { + if (i16 != 0) { + z2 = yVar.d(); + } + if (z2) { + yVar.i(); + yVar.f(); + for (int i17 = 0; i17 <= i15; i17++) { + if (yVar.d()) { + yVar.i(); + } + } + } else { + int f11 = yVar.f(); + int f12 = yVar.f(); + int i18 = f11 + f12; + for (int i19 = 0; i19 < f11; i19++) { + yVar.f(); + yVar.i(); + } + for (int i20 = 0; i20 < f12; i20++) { + yVar.f(); + yVar.i(); + } + i15 = i18; + } + } + if (yVar.d()) { + for (int i21 = 0; i21 < yVar.f(); i21++) { + yVar.j(f9 + 4 + 1); + } + } + yVar.j(2); + float f13 = 1.0f; + if (yVar.d()) { + if (yVar.d()) { + int e5 = yVar.e(8); + if (e5 == 255) { + int e6 = yVar.e(16); + int e7 = yVar.e(16); + if (!(e6 == 0 || e7 == 0)) { + f13 = ((float) e6) / ((float) e7); + } + } else { + float[] fArr = f964b; + if (e5 < fArr.length) { + f13 = fArr[e5]; + } else { + b.d.b.a.a.d0(46, "Unexpected aspect_ratio_idc value: ", e5, "NalUnitUtil"); + } + } + } + if (yVar.d()) { + yVar.i(); + } + if (yVar.d()) { + yVar.j(4); + if (yVar.d()) { + yVar.j(24); + } + } + if (yVar.d()) { + yVar.f(); + yVar.f(); + } + yVar.i(); + if (yVar.d()) { + f4 *= 2; + } + } + return new a(e2, d2, e3, i4, iArr, e4, f, f3, f4, f13); + } + + public static b d(byte[] bArr, int i, int i2) { + y yVar = new y(bArr, i + 1, i2); + int f = yVar.f(); + int f2 = yVar.f(); + yVar.i(); + return new b(f, f2, yVar.d()); + } + + /* JADX WARNING: Removed duplicated region for block: B:60:0x00f8 */ + /* JADX WARNING: Removed duplicated region for block: B:63:0x0108 */ + /* JADX WARNING: Removed duplicated region for block: B:75:0x013c */ + /* JADX WARNING: Removed duplicated region for block: B:82:0x0158 */ + /* JADX WARNING: Removed duplicated region for block: B:86:0x016b */ + public static c e(byte[] bArr, int i, int i2) { + boolean z2; + int i3; + int i4; + boolean z3; + int i5; + boolean d2; + int i6; + float f; + int e; + int i7; + int i8; + y yVar = new y(bArr, i + 1, i2); + int e2 = yVar.e(8); + int e3 = yVar.e(8); + int e4 = yVar.e(8); + int f2 = yVar.f(); + if (e2 == 100 || e2 == 110 || e2 == 122 || e2 == 244 || e2 == 44 || e2 == 83 || e2 == 86 || e2 == 118 || e2 == 128 || e2 == 138) { + i3 = yVar.f(); + boolean d3 = i3 == 3 ? yVar.d() : false; + yVar.f(); + yVar.f(); + yVar.i(); + if (yVar.d()) { + int i9 = i3 != 3 ? 8 : 12; + int i10 = 0; + while (i10 < i9) { + if (yVar.d()) { + int i11 = i10 < 6 ? 16 : 64; + int i12 = 8; + int i13 = 8; + for (int i14 = 0; i14 < i11; i14++) { + if (i12 != 0) { + i12 = ((yVar.g() + i13) + 256) % 256; + } + if (i12 != 0) { + i13 = i12; + } + } + } + i10++; + } + } + z2 = d3; + } else { + i3 = 1; + z2 = false; + } + int f3 = yVar.f() + 4; + int f4 = yVar.f(); + if (f4 == 0) { + i8 = yVar.f() + 4; + i4 = f4; + } else if (f4 == 1) { + boolean d4 = yVar.d(); + yVar.g(); + yVar.g(); + long f5 = (long) yVar.f(); + i4 = f4; + for (int i15 = 0; ((long) i15) < f5; i15++) { + yVar.f(); + } + z3 = d4; + i5 = 0; + yVar.f(); + yVar.i(); + int f6 = yVar.f() + 1; + d2 = yVar.d(); + int i16 = 2 - (d2 ? 1 : 0); + int f7 = (yVar.f() + 1) * i16; + if (!d2) { + yVar.i(); + } + yVar.i(); + int i17 = f6 * 16; + int i18 = f7 * 16; + if (!yVar.d()) { + int f8 = yVar.f(); + int f9 = yVar.f(); + int f10 = yVar.f(); + int f11 = yVar.f(); + if (i3 == 0) { + i7 = 1; + i6 = i5; + } else { + i6 = i5; + int i19 = i3 == 3 ? 1 : 2; + int i20 = 1; + if (i3 == 1) { + i20 = 2; + } + i16 *= i20; + i7 = i19; + } + i17 -= (f8 + f9) * i7; + i18 -= (f10 + f11) * i16; + } else { + i6 = i5; + } + if (yVar.d() && yVar.d()) { + e = yVar.e(8); + if (e != 255) { + int e5 = yVar.e(16); + int e6 = yVar.e(16); + if (!(e5 == 0 || e6 == 0)) { + f = ((float) e5) / ((float) e6); + return new c(e2, e3, e4, f2, i17, i18, f, z2, d2, f3, i4, i6, z3); + } + } else { + float[] fArr = f964b; + if (e < fArr.length) { + f = fArr[e]; + return new c(e2, e3, e4, f2, i17, i18, f, z2, d2, f3, i4, i6, z3); + } + b.d.b.a.a.d0(46, "Unexpected aspect_ratio_idc value: ", e, "NalUnitUtil"); + } + } + f = 1.0f; + return new c(e2, e3, e4, f2, i17, i18, f, z2, d2, f3, i4, i6, z3); + } else { + i4 = f4; + i8 = 0; + } + i5 = i8; + z3 = false; + yVar.f(); + yVar.i(); + int f6 = yVar.f() + 1; + d2 = yVar.d(); + int i16 = 2 - (d2 ? 1 : 0); + int f7 = (yVar.f() + 1) * i16; + if (!d2) { + } + yVar.i(); + int i17 = f6 * 16; + int i18 = f7 * 16; + if (!yVar.d()) { + } + e = yVar.e(8); + if (e != 255) { + } + } + + public static int f(byte[] bArr, int i) { + int i2; + synchronized (c) { + int i3 = 0; + int i4 = 0; + while (i3 < i) { + while (true) { + if (i3 >= i - 2) { + i3 = i; + break; + } + if (bArr[i3] == 0 && bArr[i3 + 1] == 0 && bArr[i3 + 2] == 3) { + break; + } + i3++; + } + if (i3 < i) { + int[] iArr = d; + if (iArr.length <= i4) { + d = Arrays.copyOf(iArr, iArr.length * 2); + } + d[i4] = i3; + i3 += 3; + i4++; + } + } + i2 = i - i4; + int i5 = 0; + int i6 = 0; + for (int i7 = 0; i7 < i4; i7++) { + int i8 = d[i7] - i6; + System.arraycopy(bArr, i6, bArr, i5, i8); + int i9 = i5 + i8; + int i10 = i9 + 1; + bArr[i9] = 0; + i5 = i10 + 1; + bArr[i10] = 0; + i6 += i8 + 3; + } + System.arraycopy(bArr, i6, bArr, i5, i2 - i5); + } + return i2; + } +} diff --git a/app/src/main/java/b/i/a/c/f3/v.java b/app/src/main/java/b/i/a/c/f3/v.java new file mode 100644 index 0000000000..aa984d3d96 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/v.java @@ -0,0 +1,209 @@ +package b.i.a.c.f3; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.os.Handler; +import android.os.Looper; +import android.telephony.PhoneStateListener; +import android.telephony.ServiceState; +import android.telephony.TelephonyDisplayInfo; +import android.telephony.TelephonyManager; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import java.lang.ref.WeakReference; +import java.util.Iterator; +import java.util.Objects; +import java.util.concurrent.CopyOnWriteArrayList; +/* compiled from: NetworkTypeObserver */ +public final class v { + @Nullable + public static v a; + + /* renamed from: b reason: collision with root package name */ + public final Handler f968b = new Handler(Looper.getMainLooper()); + public final CopyOnWriteArrayList> c = new CopyOnWriteArrayList<>(); + public final Object d = new Object(); + @GuardedBy("networkTypeLock") + public int e = 0; + + /* compiled from: NetworkTypeObserver */ + public interface b { + void a(int i); + } + + /* compiled from: NetworkTypeObserver */ + public final class c extends BroadcastReceiver { + public c(a aVar) { + } + + /* JADX WARNING: Code restructure failed: missing block: B:20:0x0041, code lost: + if (b.i.a.c.f3.e0.a >= 29) goto L_0x004f; + */ + /* JADX WARNING: Removed duplicated region for block: B:35:0x006c A[Catch:{ RuntimeException -> 0x0079 }] */ + /* JADX WARNING: Removed duplicated region for block: B:36:0x0070 A[Catch:{ RuntimeException -> 0x0079 }] */ + @Override // android.content.BroadcastReceiver + public void onReceive(Context context, Intent intent) { + int i; + ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity"); + int i2 = 9; + if (connectivityManager != null) { + try { + NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); + if (activeNetworkInfo == null || !activeNetworkInfo.isConnected()) { + i2 = 1; + i = e0.a; + if (i >= 29 && i2 == 5) { + TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); + Objects.requireNonNull(telephonyManager); + d dVar = new d(null); + if (i >= 31) { + telephonyManager.listen(dVar, 1); + } else { + telephonyManager.listen(dVar, 1048576); + } + telephonyManager.listen(dVar, 0); + } + v.a(v.this, i2); + return; + } + int type = activeNetworkInfo.getType(); + if (type != 0) { + if (type != 1) { + if (!(type == 4 || type == 5)) { + if (type != 6) { + i2 = type != 9 ? 8 : 7; + i = e0.a; + TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); + Objects.requireNonNull(telephonyManager); + d dVar = new d(null); + if (i >= 31) { + } + telephonyManager.listen(dVar, 0); + } + i2 = 5; + i = e0.a; + TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); + Objects.requireNonNull(telephonyManager); + d dVar = new d(null); + if (i >= 31) { + } + telephonyManager.listen(dVar, 0); + } + } + i2 = 2; + i = e0.a; + TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); + Objects.requireNonNull(telephonyManager); + d dVar = new d(null); + if (i >= 31) { + } + telephonyManager.listen(dVar, 0); + } + switch (activeNetworkInfo.getSubtype()) { + case 1: + case 2: + i2 = 3; + break; + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 14: + case 15: + case 17: + i2 = 4; + break; + case 13: + i2 = 5; + break; + case 16: + case 19: + default: + i2 = 6; + break; + case 18: + i2 = 2; + break; + case 20: + break; + } + i = e0.a; + TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); + Objects.requireNonNull(telephonyManager); + d dVar = new d(null); + if (i >= 31) { + } + telephonyManager.listen(dVar, 0); + } catch (SecurityException unused) { + } + } + i2 = 0; + i = e0.a; + try { + TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); + Objects.requireNonNull(telephonyManager); + d dVar = new d(null); + if (i >= 31) { + } + telephonyManager.listen(dVar, 0); + } catch (RuntimeException unused2) { + } + } + } + + /* compiled from: NetworkTypeObserver */ + public class d extends PhoneStateListener { + public d(a aVar) { + } + + @Override // android.telephony.PhoneStateListener + @RequiresApi(31) + public void onDisplayInfoChanged(TelephonyDisplayInfo telephonyDisplayInfo) { + int overrideNetworkType = telephonyDisplayInfo.getOverrideNetworkType(); + v.a(v.this, overrideNetworkType == 3 || overrideNetworkType == 4 ? 10 : 5); + } + + @Override // android.telephony.PhoneStateListener + public void onServiceStateChanged(@Nullable ServiceState serviceState) { + String serviceState2 = serviceState == null ? "" : serviceState.toString(); + v.a(v.this, serviceState2.contains("nrState=CONNECTED") || serviceState2.contains("nrState=NOT_RESTRICTED") ? 10 : 5); + } + } + + public v(Context context) { + IntentFilter intentFilter = new IntentFilter(); + intentFilter.addAction("android.net.conn.CONNECTIVITY_CHANGE"); + context.registerReceiver(new c(null), intentFilter); + } + + public static void a(v vVar, int i) { + synchronized (vVar.d) { + if (vVar.e != i) { + vVar.e = i; + } else { + return; + } + } + Iterator> it = vVar.c.iterator(); + while (it.hasNext()) { + WeakReference next = it.next(); + b bVar = next.get(); + if (bVar != null) { + bVar.a(i); + } else { + vVar.c.remove(next); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/f3/w.java b/app/src/main/java/b/i/a/c/f3/w.java new file mode 100644 index 0000000000..67fc3b7ed6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/w.java @@ -0,0 +1,178 @@ +package b.i.a.c.f3; + +import b.c.a.a0.d; +/* compiled from: ParsableBitArray */ +public final class w { + public byte[] a; + + /* renamed from: b reason: collision with root package name */ + public int f969b; + public int c; + public int d; + + public w() { + this.a = e0.f; + } + + public w(byte[] bArr) { + int length = bArr.length; + this.a = bArr; + this.d = length; + } + + public w(byte[] bArr, int i) { + this.a = bArr; + this.d = i; + } + + public final void a() { + int i; + int i2 = this.f969b; + d.D(i2 >= 0 && (i2 < (i = this.d) || (i2 == i && this.c == 0))); + } + + public int b() { + return ((this.d - this.f969b) * 8) - this.c; + } + + public void c() { + if (this.c != 0) { + this.c = 0; + this.f969b++; + a(); + } + } + + public int d() { + d.D(this.c == 0); + return this.f969b; + } + + public int e() { + return (this.f969b * 8) + this.c; + } + + public boolean f() { + boolean z2 = (this.a[this.f969b] & (128 >> this.c)) != 0; + l(); + return z2; + } + + public int g(int i) { + int i2; + if (i == 0) { + return 0; + } + this.c += i; + int i3 = 0; + while (true) { + i2 = this.c; + if (i2 <= 8) { + break; + } + int i4 = i2 - 8; + this.c = i4; + byte[] bArr = this.a; + int i5 = this.f969b; + this.f969b = i5 + 1; + i3 |= (bArr[i5] & 255) << i4; + } + byte[] bArr2 = this.a; + int i6 = this.f969b; + int i7 = (-1 >>> (32 - i)) & (i3 | ((bArr2[i6] & 255) >> (8 - i2))); + if (i2 == 8) { + this.c = 0; + this.f969b = i6 + 1; + } + a(); + return i7; + } + + public void h(byte[] bArr, int i, int i2) { + int i3 = (i2 >> 3) + i; + while (i < i3) { + byte[] bArr2 = this.a; + int i4 = this.f969b; + int i5 = i4 + 1; + this.f969b = i5; + byte b2 = bArr2[i4]; + int i6 = this.c; + bArr[i] = (byte) (b2 << i6); + bArr[i] = (byte) (((255 & bArr2[i5]) >> (8 - i6)) | bArr[i]); + i++; + } + int i7 = i2 & 7; + if (i7 != 0) { + bArr[i3] = (byte) (bArr[i3] & (255 >> i7)); + int i8 = this.c; + if (i8 + i7 > 8) { + byte b3 = bArr[i3]; + byte[] bArr3 = this.a; + int i9 = this.f969b; + this.f969b = i9 + 1; + bArr[i3] = (byte) (b3 | ((bArr3[i9] & 255) << i8)); + this.c = i8 - 8; + } + int i10 = this.c + i7; + this.c = i10; + byte[] bArr4 = this.a; + int i11 = this.f969b; + bArr[i3] = (byte) (((byte) (((255 & bArr4[i11]) >> (8 - i10)) << (8 - i7))) | bArr[i3]); + if (i10 == 8) { + this.c = 0; + this.f969b = i11 + 1; + } + a(); + } + } + + public void i(byte[] bArr, int i, int i2) { + d.D(this.c == 0); + System.arraycopy(this.a, this.f969b, bArr, i, i2); + this.f969b += i2; + a(); + } + + public void j(byte[] bArr, int i) { + this.a = bArr; + this.f969b = 0; + this.c = 0; + this.d = i; + } + + public void k(int i) { + int i2 = i / 8; + this.f969b = i2; + this.c = i - (i2 * 8); + a(); + } + + public void l() { + int i = this.c + 1; + this.c = i; + if (i == 8) { + this.c = 0; + this.f969b++; + } + a(); + } + + public void m(int i) { + int i2 = i / 8; + int i3 = this.f969b + i2; + this.f969b = i3; + int i4 = (i - (i2 * 8)) + this.c; + this.c = i4; + if (i4 > 7) { + this.f969b = i3 + 1; + this.c = i4 - 8; + } + a(); + } + + public void n(int i) { + d.D(this.c == 0); + this.f969b += i; + a(); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/x.java b/app/src/main/java/b/i/a/c/f3/x.java new file mode 100644 index 0000000000..8cc9823371 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/x.java @@ -0,0 +1,383 @@ +package b.i.a.c.f3; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.b.a.c; +import java.nio.charset.Charset; +import java.util.Arrays; +/* compiled from: ParsableByteArray */ +public final class x { + public byte[] a; + + /* renamed from: b reason: collision with root package name */ + public int f970b; + public int c; + + public x() { + this.a = e0.f; + } + + public x(int i) { + this.a = new byte[i]; + this.c = i; + } + + public x(byte[] bArr) { + this.a = bArr; + this.c = bArr.length; + } + + public x(byte[] bArr, int i) { + this.a = bArr; + this.c = i; + } + + public void A(int i) { + byte[] bArr = this.a; + if (bArr.length < i) { + bArr = new byte[i]; + } + C(bArr, i); + } + + public void B(byte[] bArr) { + int length = bArr.length; + this.a = bArr; + this.c = length; + this.f970b = 0; + } + + public void C(byte[] bArr, int i) { + this.a = bArr; + this.c = i; + this.f970b = 0; + } + + public void D(int i) { + d.j(i >= 0 && i <= this.a.length); + this.c = i; + } + + public void E(int i) { + d.j(i >= 0 && i <= this.c); + this.f970b = i; + } + + public void F(int i) { + E(this.f970b + i); + } + + public int a() { + return this.c - this.f970b; + } + + public void b(int i) { + byte[] bArr = this.a; + if (i > bArr.length) { + this.a = Arrays.copyOf(bArr, i); + } + } + + public int c() { + return this.a[this.f970b] & 255; + } + + public void d(w wVar, int i) { + e(wVar.a, 0, i); + wVar.k(0); + } + + public void e(byte[] bArr, int i, int i2) { + System.arraycopy(this.a, this.f970b, bArr, i, i2); + this.f970b += i2; + } + + public int f() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + int i3 = i2 + 1; + this.f970b = i3; + int i4 = ((bArr[i] & 255) << 24) | ((bArr[i2] & 255) << 16); + int i5 = i3 + 1; + this.f970b = i5; + int i6 = i4 | ((bArr[i3] & 255) << 8); + this.f970b = i5 + 1; + return (bArr[i5] & 255) | i6; + } + + @Nullable + public String g() { + if (a() == 0) { + return null; + } + int i = this.f970b; + while (i < this.c) { + byte b2 = this.a[i]; + int i2 = e0.a; + if (b2 == 10 || b2 == 13) { + break; + } + i++; + } + int i3 = this.f970b; + if (i - i3 >= 3) { + byte[] bArr = this.a; + if (bArr[i3] == -17 && bArr[i3 + 1] == -69 && bArr[i3 + 2] == -65) { + this.f970b = i3 + 3; + } + } + byte[] bArr2 = this.a; + int i4 = this.f970b; + String m = e0.m(bArr2, i4, i - i4); + this.f970b = i; + int i5 = this.c; + if (i == i5) { + return m; + } + byte[] bArr3 = this.a; + if (bArr3[i] == 13) { + int i6 = i + 1; + this.f970b = i6; + if (i6 == i5) { + return m; + } + } + int i7 = this.f970b; + if (bArr3[i7] == 10) { + this.f970b = i7 + 1; + } + return m; + } + + public int h() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + int i3 = i2 + 1; + this.f970b = i3; + int i4 = (bArr[i] & 255) | ((bArr[i2] & 255) << 8); + int i5 = i3 + 1; + this.f970b = i5; + int i6 = i4 | ((bArr[i3] & 255) << 16); + this.f970b = i5 + 1; + return ((bArr[i5] & 255) << 24) | i6; + } + + public short i() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + this.f970b = i2 + 1; + return (short) (((bArr[i2] & 255) << 8) | (bArr[i] & 255)); + } + + public long j() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + int i3 = i2 + 1; + this.f970b = i3; + int i4 = i3 + 1; + this.f970b = i4; + this.f970b = i4 + 1; + return (((long) bArr[i]) & 255) | ((((long) bArr[i2]) & 255) << 8) | ((((long) bArr[i3]) & 255) << 16) | ((((long) bArr[i4]) & 255) << 24); + } + + public int k() { + int h = h(); + if (h >= 0) { + return h; + } + throw new IllegalStateException(a.f(29, "Top bit not zero: ", h)); + } + + public int l() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + this.f970b = i2 + 1; + return ((bArr[i2] & 255) << 8) | (bArr[i] & 255); + } + + public long m() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + int i3 = i2 + 1; + this.f970b = i3; + int i4 = i3 + 1; + this.f970b = i4; + int i5 = i4 + 1; + this.f970b = i5; + int i6 = i5 + 1; + this.f970b = i6; + int i7 = i6 + 1; + this.f970b = i7; + int i8 = i7 + 1; + this.f970b = i8; + this.f970b = i8 + 1; + return ((((long) bArr[i]) & 255) << 56) | ((((long) bArr[i2]) & 255) << 48) | ((((long) bArr[i3]) & 255) << 40) | ((((long) bArr[i4]) & 255) << 32) | ((((long) bArr[i5]) & 255) << 24) | ((((long) bArr[i6]) & 255) << 16) | ((((long) bArr[i7]) & 255) << 8) | (((long) bArr[i8]) & 255); + } + + @Nullable + public String n() { + if (a() == 0) { + return null; + } + int i = this.f970b; + while (i < this.c && this.a[i] != 0) { + i++; + } + byte[] bArr = this.a; + int i2 = this.f970b; + String m = e0.m(bArr, i2, i - i2); + this.f970b = i; + if (i < this.c) { + this.f970b = i + 1; + } + return m; + } + + public String o(int i) { + if (i == 0) { + return ""; + } + int i2 = this.f970b; + int i3 = (i2 + i) - 1; + String m = e0.m(this.a, i2, (i3 >= this.c || this.a[i3] != 0) ? i : i - 1); + this.f970b += i; + return m; + } + + public short p() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + this.f970b = i2 + 1; + return (short) ((bArr[i2] & 255) | ((bArr[i] & 255) << 8)); + } + + public String q(int i) { + return r(i, c.c); + } + + public String r(int i, Charset charset) { + String str = new String(this.a, this.f970b, i, charset); + this.f970b += i; + return str; + } + + public int s() { + return (t() << 21) | (t() << 14) | (t() << 7) | t(); + } + + public int t() { + byte[] bArr = this.a; + int i = this.f970b; + this.f970b = i + 1; + return bArr[i] & 255; + } + + public long u() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + int i3 = i2 + 1; + this.f970b = i3; + int i4 = i3 + 1; + this.f970b = i4; + this.f970b = i4 + 1; + return ((((long) bArr[i]) & 255) << 24) | ((((long) bArr[i2]) & 255) << 16) | ((((long) bArr[i3]) & 255) << 8) | (((long) bArr[i4]) & 255); + } + + public int v() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + int i3 = i2 + 1; + this.f970b = i3; + int i4 = ((bArr[i] & 255) << 16) | ((bArr[i2] & 255) << 8); + this.f970b = i3 + 1; + return (bArr[i3] & 255) | i4; + } + + public int w() { + int f = f(); + if (f >= 0) { + return f; + } + throw new IllegalStateException(a.f(29, "Top bit not zero: ", f)); + } + + public long x() { + long m = m(); + if (m >= 0) { + return m; + } + StringBuilder sb = new StringBuilder(38); + sb.append("Top bit not zero: "); + sb.append(m); + throw new IllegalStateException(sb.toString()); + } + + public int y() { + byte[] bArr = this.a; + int i = this.f970b; + int i2 = i + 1; + this.f970b = i2; + this.f970b = i2 + 1; + return (bArr[i2] & 255) | ((bArr[i] & 255) << 8); + } + + public long z() { + int i; + int i2; + long j = (long) this.a[this.f970b]; + int i3 = 7; + while (true) { + if (i3 < 0) { + break; + } + int i4 = 1 << i3; + if ((((long) i4) & j) != 0) { + i3--; + } else if (i3 < 6) { + j &= (long) (i4 - 1); + i2 = 7 - i3; + } else if (i3 == 7) { + i2 = 1; + } + } + i2 = 0; + if (i2 != 0) { + for (i = 1; i < i2; i++) { + byte b2 = this.a[this.f970b + i]; + if ((b2 & 192) == 128) { + j = (j << 6) | ((long) (b2 & 63)); + } else { + StringBuilder sb = new StringBuilder(62); + sb.append("Invalid UTF-8 sequence continuation byte: "); + sb.append(j); + throw new NumberFormatException(sb.toString()); + } + } + this.f970b += i2; + return j; + } + StringBuilder sb2 = new StringBuilder(55); + sb2.append("Invalid UTF-8 sequence first byte: "); + sb2.append(j); + throw new NumberFormatException(sb2.toString()); + } +} diff --git a/app/src/main/java/b/i/a/c/f3/y.java b/app/src/main/java/b/i/a/c/f3/y.java new file mode 100644 index 0000000000..14df36ee97 --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/y.java @@ -0,0 +1,170 @@ +package b.i.a.c.f3; + +import b.c.a.a0.d; +/* compiled from: ParsableNalUnitBitArray */ +public final class y { + public byte[] a; + + /* renamed from: b reason: collision with root package name */ + public int f971b; + public int c; + public int d = 0; + + public y(byte[] bArr, int i, int i2) { + this.a = bArr; + this.c = i; + this.f971b = i2; + a(); + } + + public final void a() { + int i; + int i2 = this.c; + d.D(i2 >= 0 && (i2 < (i = this.f971b) || (i2 == i && this.d == 0))); + } + + public boolean b(int i) { + int i2 = this.c; + int i3 = i / 8; + int i4 = i2 + i3; + int i5 = (this.d + i) - (i3 * 8); + if (i5 > 7) { + i4++; + i5 -= 8; + } + while (true) { + i2++; + if (i2 > i4 || i4 >= this.f971b) { + break; + } else if (h(i2)) { + i4++; + i2 += 2; + } + } + int i6 = this.f971b; + if (i4 >= i6) { + return i4 == i6 && i5 == 0; + } + return true; + } + + public boolean c() { + int i = this.c; + int i2 = this.d; + int i3 = 0; + while (this.c < this.f971b && !d()) { + i3++; + } + boolean z2 = this.c == this.f971b; + this.c = i; + this.d = i2; + return !z2 && b((i3 * 2) + 1); + } + + public boolean d() { + boolean z2 = (this.a[this.c] & (128 >> this.d)) != 0; + i(); + return z2; + } + + public int e(int i) { + int i2; + int i3; + this.d += i; + int i4 = 0; + while (true) { + i2 = this.d; + i3 = 2; + if (i2 <= 8) { + break; + } + int i5 = i2 - 8; + this.d = i5; + byte[] bArr = this.a; + int i6 = this.c; + i4 |= (bArr[i6] & 255) << i5; + if (!h(i6 + 1)) { + i3 = 1; + } + this.c = i6 + i3; + } + byte[] bArr2 = this.a; + int i7 = this.c; + int i8 = (-1 >>> (32 - i)) & (i4 | ((bArr2[i7] & 255) >> (8 - i2))); + if (i2 == 8) { + this.d = 0; + if (!h(i7 + 1)) { + i3 = 1; + } + this.c = i7 + i3; + } + a(); + return i8; + } + + public final int f() { + int i = 0; + int i2 = 0; + while (!d()) { + i2++; + } + int i3 = (1 << i2) - 1; + if (i2 > 0) { + i = e(i2); + } + return i3 + i; + } + + public int g() { + int f = f(); + return ((f + 1) / 2) * (f % 2 == 0 ? -1 : 1); + } + + public final boolean h(int i) { + if (2 <= i && i < this.f971b) { + byte[] bArr = this.a; + if (bArr[i] == 3 && bArr[i - 2] == 0 && bArr[i - 1] == 0) { + return true; + } + } + return false; + } + + public void i() { + int i = 1; + int i2 = this.d + 1; + this.d = i2; + if (i2 == 8) { + this.d = 0; + int i3 = this.c; + if (h(i3 + 1)) { + i = 2; + } + this.c = i3 + i; + } + a(); + } + + public void j(int i) { + int i2 = this.c; + int i3 = i / 8; + int i4 = i2 + i3; + this.c = i4; + int i5 = (i - (i3 * 8)) + this.d; + this.d = i5; + if (i5 > 7) { + this.c = i4 + 1; + this.d = i5 - 8; + } + while (true) { + i2++; + if (i2 > this.c) { + a(); + return; + } else if (h(i2)) { + this.c++; + i2 += 2; + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/f3/z.java b/app/src/main/java/b/i/a/c/f3/z.java new file mode 100644 index 0000000000..cc3bcea72a --- /dev/null +++ b/app/src/main/java/b/i/a/c/f3/z.java @@ -0,0 +1,53 @@ +package b.i.a.c.f3; + +import b.i.a.c.x1; +/* compiled from: StandaloneMediaClock */ +public final class z implements s { + public final g j; + public boolean k; + public long l; + public long m; + public x1 n = x1.j; + + public z(g gVar) { + this.j = gVar; + } + + public void a(long j) { + this.l = j; + if (this.k) { + this.m = this.j.d(); + } + } + + public void b() { + if (!this.k) { + this.m = this.j.d(); + this.k = true; + } + } + + @Override // b.i.a.c.f3.s + public x1 c() { + return this.n; + } + + @Override // b.i.a.c.f3.s + public long e() { + long j = this.l; + if (!this.k) { + return j; + } + long d = this.j.d() - this.m; + x1 x1Var = this.n; + return x1Var.k == 1.0f ? j + e0.B(d) : j + (d * ((long) x1Var.m)); + } + + @Override // b.i.a.c.f3.s + public void i(x1 x1Var) { + if (this.k) { + a(e()); + } + this.n = x1Var; + } +} diff --git a/app/src/main/java/b/i/a/c/g.java b/app/src/main/java/b/i/a/c/g.java new file mode 100644 index 0000000000..fe8d1171a9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g.java @@ -0,0 +1,18 @@ +package b.i.a.c; + +import android.content.Context; +import b.i.a.c.c3.h; +import b.i.b.a.l; +/* compiled from: lambda */ +public final /* synthetic */ class g implements l { + public final /* synthetic */ Context j; + + public /* synthetic */ g(Context context) { + this.j = context; + } + + @Override // b.i.b.a.l + public final Object get() { + return new h(this.j); + } +} diff --git a/app/src/main/java/b/i/a/c/g0.java b/app/src/main/java/b/i/a/c/g0.java new file mode 100644 index 0000000000..785d8980e3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g0.java @@ -0,0 +1,28 @@ +package b.i.a.c; + +import b.i.a.c.f3.q; +import com.google.android.exoplayer2.ExoPlaybackException; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class g0 implements Runnable { + public final /* synthetic */ h1 j; + public final /* synthetic */ b2 k; + + public /* synthetic */ g0(h1 h1Var, b2 b2Var) { + this.j = h1Var; + this.k = b2Var; + } + + @Override // java.lang.Runnable + public final void run() { + h1 h1Var = this.j; + b2 b2Var = this.k; + Objects.requireNonNull(h1Var); + try { + h1Var.d(b2Var); + } catch (ExoPlaybackException e) { + q.b("ExoPlayerImplInternal", "Unexpected error delivering message on external thread.", e); + throw new RuntimeException(e); + } + } +} diff --git a/app/src/main/java/b/i/a/c/g1.java b/app/src/main/java/b/i/a/c/g1.java new file mode 100644 index 0000000000..050276170f --- /dev/null +++ b/app/src/main/java/b/i/a/c/g1.java @@ -0,0 +1,23 @@ +package b.i.a.c; + +import b.i.a.c.f2; +/* compiled from: ExoPlayerImplInternal */ +public class g1 implements f2.a { + public final /* synthetic */ h1 a; + + public g1(h1 h1Var) { + this.a = h1Var; + } + + @Override // b.i.a.c.f2.a + public void a() { + this.a.q.f(2); + } + + @Override // b.i.a.c.f2.a + public void b(long j) { + if (j >= 2000) { + this.a.Q = true; + } + } +} diff --git a/app/src/main/java/b/i/a/c/g2.java b/app/src/main/java/b/i/a/c/g2.java new file mode 100644 index 0000000000..682c0bfa46 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g2.java @@ -0,0 +1,11 @@ +package b.i.a.c; + +import com.google.android.exoplayer2.ExoPlaybackException; +/* compiled from: RendererCapabilities */ +public interface g2 { + int a(j1 j1Var) throws ExoPlaybackException; + + String getName(); + + int p() throws ExoPlaybackException; +} diff --git a/app/src/main/java/b/i/a/c/g3/a.java b/app/src/main/java/b/i/a/c/g3/a.java new file mode 100644 index 0000000000..4177fb3dc1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/a.java @@ -0,0 +1,13 @@ +package b.i.a.c.g3; + +import android.os.Bundle; +import b.i.a.c.w0; +/* compiled from: lambda */ +public final /* synthetic */ class a implements w0.a { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + return new n(bundle.getInt(n.c(0), -1), bundle.getInt(n.c(1), -1), bundle.getInt(n.c(2), -1), bundle.getByteArray(n.c(3))); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/b.java b/app/src/main/java/b/i/a/c/g3/b.java new file mode 100644 index 0000000000..7348469cf3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/b.java @@ -0,0 +1,28 @@ +package b.i.a.c.g3; + +import android.util.Log; +import android.view.Display; +import b.i.a.c.g3.v; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class b implements v.b.a { + public final /* synthetic */ v a; + + public /* synthetic */ b(v vVar) { + this.a = vVar; + } + + public final void a(Display display) { + v vVar = this.a; + Objects.requireNonNull(vVar); + if (display != null) { + long refreshRate = (long) (1.0E9d / ((double) display.getRefreshRate())); + vVar.k = refreshRate; + vVar.l = (refreshRate * 80) / 100; + return; + } + Log.w("VideoFrameReleaseHelper", "Unable to query display refresh rate"); + vVar.k = -9223372036854775807L; + vVar.l = -9223372036854775807L; + } +} diff --git a/app/src/main/java/b/i/a/c/g3/c.java b/app/src/main/java/b/i/a/c/g3/c.java new file mode 100644 index 0000000000..3307829360 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/c.java @@ -0,0 +1,28 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +import b.i.a.c.v2.e; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ e k; + + public /* synthetic */ c(x.a aVar, e eVar) { + this.j = aVar; + this.k = eVar; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + e eVar = this.k; + Objects.requireNonNull(aVar); + synchronized (eVar) { + } + x xVar = aVar.f981b; + int i = e0.a; + xVar.Z(eVar); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/d.java b/app/src/main/java/b/i/a/c/g3/d.java new file mode 100644 index 0000000000..8ebb9a4747 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/d.java @@ -0,0 +1,23 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +/* compiled from: lambda */ +public final /* synthetic */ class d implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ String k; + + public /* synthetic */ d(x.a aVar, String str) { + this.j = aVar; + this.k = str; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + String str = this.k; + x xVar = aVar.f981b; + int i = e0.a; + xVar.l(str); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/e.java b/app/src/main/java/b/i/a/c/g3/e.java new file mode 100644 index 0000000000..5d7dddfdcb --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/e.java @@ -0,0 +1,23 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +/* compiled from: lambda */ +public final /* synthetic */ class e implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ Exception k; + + public /* synthetic */ e(x.a aVar, Exception exc) { + this.j = aVar; + this.k = exc; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + Exception exc = this.k; + x xVar = aVar.f981b; + int i = e0.a; + xVar.V(exc); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/f.java b/app/src/main/java/b/i/a/c/g3/f.java new file mode 100644 index 0000000000..5b4334e416 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/f.java @@ -0,0 +1,24 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +import b.i.a.c.v2.e; +/* compiled from: lambda */ +public final /* synthetic */ class f implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ e k; + + public /* synthetic */ f(x.a aVar, e eVar) { + this.j = aVar; + this.k = eVar; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + e eVar = this.k; + x xVar = aVar.f981b; + int i = e0.a; + xVar.P(eVar); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/g.java b/app/src/main/java/b/i/a/c/g3/g.java new file mode 100644 index 0000000000..62ce0a5cab --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/g.java @@ -0,0 +1,26 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +/* compiled from: lambda */ +public final /* synthetic */ class g implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ Object k; + public final /* synthetic */ long l; + + public /* synthetic */ g(x.a aVar, Object obj, long j) { + this.j = aVar; + this.k = obj; + this.l = j; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + Object obj = this.k; + long j = this.l; + x xVar = aVar.f981b; + int i = e0.a; + xVar.K(obj, j); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/h.java b/app/src/main/java/b/i/a/c/g3/h.java new file mode 100644 index 0000000000..366119de1d --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/h.java @@ -0,0 +1,26 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +/* compiled from: lambda */ +public final /* synthetic */ class h implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ int k; + public final /* synthetic */ long l; + + public /* synthetic */ h(x.a aVar, int i, long j) { + this.j = aVar; + this.k = i; + this.l = j; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + int i = this.k; + long j = this.l; + x xVar = aVar.f981b; + int i2 = e0.a; + xVar.F(i, j); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/i.java b/app/src/main/java/b/i/a/c/g3/i.java new file mode 100644 index 0000000000..d2812457d8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/i.java @@ -0,0 +1,29 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +/* compiled from: lambda */ +public final /* synthetic */ class i implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ String k; + public final /* synthetic */ long l; + public final /* synthetic */ long m; + + public /* synthetic */ i(x.a aVar, String str, long j, long j2) { + this.j = aVar; + this.k = str; + this.l = j; + this.m = j2; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + String str = this.k; + long j = this.l; + long j2 = this.m; + x xVar = aVar.f981b; + int i = e0.a; + xVar.n(str, j, j2); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/j.java b/app/src/main/java/b/i/a/c/g3/j.java new file mode 100644 index 0000000000..025933f54d --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/j.java @@ -0,0 +1,23 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +/* compiled from: lambda */ +public final /* synthetic */ class j implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ y k; + + public /* synthetic */ j(x.a aVar, y yVar) { + this.j = aVar; + this.k = yVar; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + y yVar = this.k; + x xVar = aVar.f981b; + int i = e0.a; + xVar.f(yVar); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/k.java b/app/src/main/java/b/i/a/c/g3/k.java new file mode 100644 index 0000000000..4eb825c96b --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/k.java @@ -0,0 +1,29 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +import b.i.a.c.j1; +import b.i.a.c.v2.g; +/* compiled from: lambda */ +public final /* synthetic */ class k implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ j1 k; + public final /* synthetic */ g l; + + public /* synthetic */ k(x.a aVar, j1 j1Var, g gVar) { + this.j = aVar; + this.k = j1Var; + this.l = gVar; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + j1 j1Var = this.k; + g gVar = this.l; + x xVar = aVar.f981b; + int i = e0.a; + xVar.O(j1Var); + aVar.f981b.Q(j1Var, gVar); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/l.java b/app/src/main/java/b/i/a/c/g3/l.java new file mode 100644 index 0000000000..9d923be00d --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/l.java @@ -0,0 +1,26 @@ +package b.i.a.c.g3; + +import b.i.a.c.f3.e0; +import b.i.a.c.g3.x; +/* compiled from: lambda */ +public final /* synthetic */ class l implements Runnable { + public final /* synthetic */ x.a j; + public final /* synthetic */ long k; + public final /* synthetic */ int l; + + public /* synthetic */ l(x.a aVar, long j, int i) { + this.j = aVar; + this.k = j; + this.l = i; + } + + @Override // java.lang.Runnable + public final void run() { + x.a aVar = this.j; + long j = this.k; + int i = this.l; + x xVar = aVar.f981b; + int i2 = e0.a; + xVar.h0(j, i); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/m.java b/app/src/main/java/b/i/a/c/g3/m.java new file mode 100644 index 0000000000..ed730304fe --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/m.java @@ -0,0 +1,83 @@ +package b.i.a.c.g3; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.h; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import com.google.android.exoplayer2.ParserException; +import java.util.ArrayList; +import java.util.List; +/* compiled from: AvcConfig */ +public final class m { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final int f972b; + public final int c; + public final int d; + public final float e; + @Nullable + public final String f; + + public m(List list, int i, int i2, int i3, float f, @Nullable String str) { + this.a = list; + this.f972b = i; + this.c = i2; + this.d = i3; + this.e = f; + this.f = str; + } + + public static byte[] a(x xVar) { + int y2 = xVar.y(); + int i = xVar.f970b; + xVar.F(y2); + byte[] bArr = xVar.a; + byte[] bArr2 = h.a; + byte[] bArr3 = new byte[(bArr2.length + y2)]; + System.arraycopy(bArr2, 0, bArr3, 0, bArr2.length); + System.arraycopy(bArr, i, bArr3, bArr2.length, y2); + return bArr3; + } + + public static m b(x xVar) throws ParserException { + String str; + float f; + int i; + int i2; + try { + xVar.F(4); + int t = (xVar.t() & 3) + 1; + if (t != 3) { + ArrayList arrayList = new ArrayList(); + int t2 = xVar.t() & 31; + for (int i3 = 0; i3 < t2; i3++) { + arrayList.add(a(xVar)); + } + int t3 = xVar.t(); + for (int i4 = 0; i4 < t3; i4++) { + arrayList.add(a(xVar)); + } + if (t2 > 0) { + u.c e = u.e((byte[]) arrayList.get(0), t, ((byte[]) arrayList.get(0)).length); + int i5 = e.e; + int i6 = e.f; + float f2 = e.g; + str = h.a(e.a, e.f967b, e.c); + i2 = i5; + i = i6; + f = f2; + } else { + str = null; + i2 = -1; + i = -1; + f = 1.0f; + } + return new m(arrayList, t, i2, i, f, str); + } + throw new IllegalStateException(); + } catch (ArrayIndexOutOfBoundsException e2) { + throw ParserException.a("Error parsing AVC config", e2); + } + } +} diff --git a/app/src/main/java/b/i/a/c/g3/n.java b/app/src/main/java/b/i/a/c/g3/n.java new file mode 100644 index 0000000000..158421f06f --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/n.java @@ -0,0 +1,85 @@ +package b.i.a.c.g3; + +import androidx.annotation.Nullable; +import b.d.b.a.a; +import b.i.a.c.w0; +import java.util.Arrays; +import org.checkerframework.dataflow.qual.Pure; +/* compiled from: ColorInfo */ +public final class n implements w0 { + public static final /* synthetic */ int j = 0; + public final int k; + public final int l; + public final int m; + @Nullable + public final byte[] n; + public int o; + + public n(int i, int i2, int i3, @Nullable byte[] bArr) { + this.k = i; + this.l = i2; + this.m = i3; + this.n = bArr; + } + + @Pure + public static int a(int i) { + if (i == 1) { + return 1; + } + if (i != 9) { + return (i == 4 || i == 5 || i == 6 || i == 7) ? 2 : -1; + } + return 6; + } + + @Pure + public static int b(int i) { + if (i == 1) { + return 3; + } + if (i == 16) { + return 6; + } + if (i != 18) { + return (i == 6 || i == 7) ? 3 : -1; + } + return 7; + } + + public static String c(int i) { + return Integer.toString(i, 36); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || n.class != obj.getClass()) { + return false; + } + n nVar = (n) obj; + return this.k == nVar.k && this.l == nVar.l && this.m == nVar.m && Arrays.equals(this.n, nVar.n); + } + + public int hashCode() { + if (this.o == 0) { + this.o = Arrays.hashCode(this.n) + ((((((527 + this.k) * 31) + this.l) * 31) + this.m) * 31); + } + return this.o; + } + + public String toString() { + int i = this.k; + int i2 = this.l; + int i3 = this.m; + boolean z2 = this.n != null; + StringBuilder O = a.O(55, "ColorInfo(", i, ", ", i2); + O.append(", "); + O.append(i3); + O.append(", "); + O.append(z2); + O.append(")"); + return O.toString(); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/o.java b/app/src/main/java/b/i/a/c/g3/o.java new file mode 100644 index 0000000000..e9c9901f89 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/o.java @@ -0,0 +1,38 @@ +package b.i.a.c.g3; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.x; +/* compiled from: DolbyVisionConfig */ +public final class o { + public final String a; + + public o(int i, int i2, String str) { + this.a = str; + } + + @Nullable + public static o a(x xVar) { + String str; + xVar.F(2); + int t = xVar.t(); + int i = t >> 1; + int t2 = ((xVar.t() >> 3) & 31) | ((t & 1) << 5); + if (i == 4 || i == 5 || i == 7) { + str = "dvhe"; + } else if (i == 8) { + str = "hev1"; + } else if (i != 9) { + return null; + } else { + str = "avc3"; + } + String str2 = t2 < 10 ? ".0" : "."; + StringBuilder sb = new StringBuilder(str2.length() + str.length() + 24); + sb.append(str); + sb.append(".0"); + sb.append(i); + sb.append(str2); + sb.append(t2); + return new o(i, t2, sb.toString()); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/p.java b/app/src/main/java/b/i/a/c/g3/p.java new file mode 100644 index 0000000000..2f3c7218cf --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/p.java @@ -0,0 +1,75 @@ +package b.i.a.c.g3; + +import java.util.Arrays; +/* compiled from: FixedFrameRateEstimator */ +public final class p { + public a a = new a(); + + /* renamed from: b reason: collision with root package name */ + public a f973b = new a(); + public boolean c; + public long d = -9223372036854775807L; + public int e; + + /* compiled from: FixedFrameRateEstimator */ + public static final class a { + public long a; + + /* renamed from: b reason: collision with root package name */ + public long f974b; + public long c; + public long d; + public long e; + public long f; + public final boolean[] g = new boolean[15]; + public int h; + + public boolean a() { + return this.d > 15 && this.h == 0; + } + + public void b(long j) { + long j2 = this.d; + if (j2 == 0) { + this.a = j; + } else if (j2 == 1) { + long j3 = j - this.a; + this.f974b = j3; + this.f = j3; + this.e = 1; + } else { + long j4 = j - this.c; + int i = (int) (j2 % 15); + if (Math.abs(j4 - this.f974b) <= 1000000) { + this.e++; + this.f += j4; + boolean[] zArr = this.g; + if (zArr[i]) { + zArr[i] = false; + this.h--; + } + } else { + boolean[] zArr2 = this.g; + if (!zArr2[i]) { + zArr2[i] = true; + this.h++; + } + } + } + this.d++; + this.c = j; + } + + public void c() { + this.d = 0; + this.e = 0; + this.f = 0; + this.h = 0; + Arrays.fill(this.g, false); + } + } + + public boolean a() { + return this.a.a(); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/q.java b/app/src/main/java/b/i/a/c/g3/q.java new file mode 100644 index 0000000000..53b244655a --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/q.java @@ -0,0 +1,93 @@ +package b.i.a.c.g3; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.h; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import com.google.android.exoplayer2.ParserException; +import java.util.Collections; +import java.util.List; +/* compiled from: HevcConfig */ +public final class q { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final int f975b; + public final float c; + @Nullable + public final String d; + + public q(List list, int i, int i2, int i3, float f, @Nullable String str) { + this.a = list; + this.f975b = i; + this.c = f; + this.d = str; + } + + public static q a(x xVar) throws ParserException { + int i; + int i2; + try { + xVar.F(21); + int t = xVar.t() & 3; + int t2 = xVar.t(); + int i3 = xVar.f970b; + int i4 = 0; + int i5 = 0; + for (int i6 = 0; i6 < t2; i6++) { + xVar.F(1); + int y2 = xVar.y(); + for (int i7 = 0; i7 < y2; i7++) { + int y3 = xVar.y(); + i5 += y3 + 4; + xVar.F(y3); + } + } + xVar.E(i3); + byte[] bArr = new byte[i5]; + String str = null; + int i8 = 0; + int i9 = 0; + int i10 = -1; + int i11 = -1; + float f = 1.0f; + while (i8 < t2) { + int t3 = xVar.t() & 127; + int y4 = xVar.y(); + int i12 = 0; + while (i12 < y4) { + int y5 = xVar.y(); + byte[] bArr2 = u.a; + System.arraycopy(bArr2, i4, bArr, i9, bArr2.length); + int length = i9 + bArr2.length; + System.arraycopy(xVar.a, xVar.f970b, bArr, length, y5); + if (t3 == 33 && i12 == 0) { + u.a c = u.c(bArr, length, length + y5); + int i13 = c.g; + i11 = c.h; + f = c.i; + i2 = t3; + i = y4; + i10 = i13; + str = h.b(c.a, c.f965b, c.c, c.d, c.e, c.f); + } else { + i2 = t3; + i = y4; + } + i9 = length + y5; + xVar.F(y5); + i12++; + t2 = t2; + t3 = i2; + y4 = i; + i4 = 0; + } + i8++; + i4 = 0; + } + return new q(i5 == 0 ? Collections.emptyList() : Collections.singletonList(bArr), t + 1, i10, i11, f, str); + } catch (ArrayIndexOutOfBoundsException e) { + throw ParserException.a("Error parsing HEVC config", e); + } + } +} diff --git a/app/src/main/java/b/i/a/c/g3/r.java b/app/src/main/java/b/i/a/c/g3/r.java new file mode 100644 index 0000000000..8f04432f46 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/r.java @@ -0,0 +1,2589 @@ +package b.i.a.c.g3; + +import android.annotation.TargetApi; +import android.content.Context; +import android.graphics.Point; +import android.media.MediaCodecInfo; +import android.media.MediaCrypto; +import android.media.MediaFormat; +import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; +import android.os.Message; +import android.os.SystemClock; +import android.util.Log; +import android.util.Pair; +import android.view.Surface; +import androidx.annotation.CallSuper; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import b.i.a.c.a3.i0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.a.c.g3.p; +import b.i.a.c.g3.v; +import b.i.a.c.g3.x; +import b.i.a.c.h2; +import b.i.a.c.j1; +import b.i.a.c.k1; +import b.i.a.c.v2.e; +import b.i.a.c.y2.g; +import b.i.a.c.y2.t; +import b.i.a.c.y2.u; +import b.i.a.c.y2.v; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import com.google.android.exoplayer2.drm.DrmSession; +import com.google.android.exoplayer2.mediacodec.MediaCodecDecoderException; +import com.google.android.exoplayer2.mediacodec.MediaCodecRenderer; +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +import com.google.android.exoplayer2.video.DummySurface; +import com.google.android.exoplayer2.video.MediaCodecVideoDecoderException; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.regex.Pattern; +/* compiled from: MediaCodecVideoRenderer */ +public class r extends MediaCodecRenderer { + public static final int[] N0 = {1920, 1600, 1440, 1280, 960, 854, 640, 540, 480}; + public static boolean O0; + public static boolean P0; + public final Context Q0; + public final v R0; + public final x.a S0; + public final long T0; + public final int U0; + public final boolean V0 = "NVIDIA".equals(e0.c); + public a W0; + public boolean X0; + public boolean Y0; + @Nullable + public Surface Z0; + @Nullable + public DummySurface a1; + public boolean b1; + public int c1 = 1; + public boolean d1; + public boolean e1; + public boolean f1; + public long g1; + public long h1 = -9223372036854775807L; + public long i1; + public int j1; + public int k1; + public int l1; + public long m1; + public long n1; + public long o1; + public int p1; + public int q1 = -1; + public int r1 = -1; + public int s1; + public float t1 = -1.0f; + @Nullable + public y u1 = null; + public boolean v1; + public int w1 = 0; + @Nullable + public b x1; + @Nullable + public u y1; + + /* compiled from: MediaCodecVideoRenderer */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f976b; + public final int c; + + public a(int i, int i2, int i3) { + this.a = i; + this.f976b = i2; + this.c = i3; + } + } + + /* compiled from: MediaCodecVideoRenderer */ + @RequiresApi(23) + public final class b implements t.c, Handler.Callback { + public final Handler j; + + public b(t tVar) { + int i = e0.a; + Looper myLooper = Looper.myLooper(); + d.H(myLooper); + Handler handler = new Handler(myLooper, this); + this.j = handler; + tVar.f(this, handler); + } + + public final void a(long j) { + r rVar = r.this; + if (this == rVar.x1) { + if (j == RecyclerView.FOREVER_NS) { + rVar.H0 = true; + return; + } + try { + rVar.N0(j); + } catch (ExoPlaybackException e) { + r.this.I0 = e; + } + } + } + + public void b(t tVar, long j, long j2) { + if (e0.a < 30) { + this.j.sendMessageAtFrontOfQueue(Message.obtain(this.j, 0, (int) (j >> 32), (int) j)); + return; + } + a(j); + } + + @Override // android.os.Handler.Callback + public boolean handleMessage(Message message) { + if (message.what != 0) { + return false; + } + a((e0.L(message.arg1) << 32) | e0.L(message.arg2)); + return true; + } + } + + public r(Context context, t.b bVar, v vVar, long j, boolean z2, @Nullable Handler handler, @Nullable x xVar, int i) { + super(2, bVar, vVar, z2, 30.0f); + this.T0 = j; + this.U0 = i; + Context applicationContext = context.getApplicationContext(); + this.Q0 = applicationContext; + this.R0 = new v(applicationContext); + this.S0 = new x.a(handler, xVar); + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:438:0x07cf, code lost: + if (r0.equals("NX573J") == false) goto L_0x008c; + */ + /* JADX WARNING: Code restructure failed: missing block: B:462:0x0831, code lost: + if (r0.equals("AFTN") == false) goto L_0x0829; + */ + public static boolean E0() { + char c; + int i = e0.a; + char c2 = 6; + char c3 = 2; + if (i <= 28) { + String str = e0.f954b; + str.hashCode(); + switch (str.hashCode()) { + case -1339091551: + if (str.equals("dangal")) { + c = 0; + break; + } + c = 65535; + break; + case -1220081023: + if (str.equals("dangalFHD")) { + c = 1; + break; + } + c = 65535; + break; + case -1220066608: + if (str.equals("dangalUHD")) { + c = 2; + break; + } + c = 65535; + break; + case -1012436106: + if (str.equals("oneday")) { + c = 3; + break; + } + c = 65535; + break; + case -64886864: + if (str.equals("magnolia")) { + c = 4; + break; + } + c = 65535; + break; + case 3415681: + if (str.equals("once")) { + c = 5; + break; + } + c = 65535; + break; + case 825323514: + if (str.equals("machuca")) { + c = 6; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + switch (c) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + } + } + if (i <= 27 && "HWEML".equals(e0.f954b)) { + return true; + } + if (i <= 26) { + String str2 = e0.f954b; + str2.hashCode(); + switch (str2.hashCode()) { + case -2144781245: + if (str2.equals("GIONEE_SWW1609")) { + c2 = 0; + break; + } + c2 = 65535; + break; + case -2144781185: + if (str2.equals("GIONEE_SWW1627")) { + c2 = 1; + break; + } + c2 = 65535; + break; + case -2144781160: + if (str2.equals("GIONEE_SWW1631")) { + c2 = 2; + break; + } + c2 = 65535; + break; + case -2097309513: + if (str2.equals("K50a40")) { + c2 = 3; + break; + } + c2 = 65535; + break; + case -2022874474: + if (str2.equals("CP8676_I02")) { + c2 = 4; + break; + } + c2 = 65535; + break; + case -1978993182: + if (str2.equals("NX541J")) { + c2 = 5; + break; + } + c2 = 65535; + break; + case -1978990237: + break; + case -1936688988: + if (str2.equals("PGN528")) { + c2 = 7; + break; + } + c2 = 65535; + break; + case -1936688066: + if (str2.equals("PGN610")) { + c2 = '\b'; + break; + } + c2 = 65535; + break; + case -1936688065: + if (str2.equals("PGN611")) { + c2 = '\t'; + break; + } + c2 = 65535; + break; + case -1931988508: + if (str2.equals("AquaPowerM")) { + c2 = '\n'; + break; + } + c2 = 65535; + break; + case -1885099851: + if (str2.equals("RAIJIN")) { + c2 = 11; + break; + } + c2 = 65535; + break; + case -1696512866: + if (str2.equals("XT1663")) { + c2 = '\f'; + break; + } + c2 = 65535; + break; + case -1680025915: + if (str2.equals("ComioS1")) { + c2 = '\r'; + break; + } + c2 = 65535; + break; + case -1615810839: + if (str2.equals("Phantom6")) { + c2 = 14; + break; + } + c2 = 65535; + break; + case -1600724499: + if (str2.equals("pacificrim")) { + c2 = 15; + break; + } + c2 = 65535; + break; + case -1554255044: + if (str2.equals("vernee_M5")) { + c2 = 16; + break; + } + c2 = 65535; + break; + case -1481772737: + if (str2.equals("panell_dl")) { + c2 = 17; + break; + } + c2 = 65535; + break; + case -1481772730: + if (str2.equals("panell_ds")) { + c2 = 18; + break; + } + c2 = 65535; + break; + case -1481772729: + if (str2.equals("panell_dt")) { + c2 = 19; + break; + } + c2 = 65535; + break; + case -1320080169: + if (str2.equals("GiONEE_GBL7319")) { + c2 = 20; + break; + } + c2 = 65535; + break; + case -1217592143: + if (str2.equals("BRAVIA_ATV2")) { + c2 = 21; + break; + } + c2 = 65535; + break; + case -1180384755: + if (str2.equals("iris60")) { + c2 = 22; + break; + } + c2 = 65535; + break; + case -1139198265: + if (str2.equals("Slate_Pro")) { + c2 = 23; + break; + } + c2 = 65535; + break; + case -1052835013: + if (str2.equals("namath")) { + c2 = 24; + break; + } + c2 = 65535; + break; + case -993250464: + if (str2.equals("A10-70F")) { + c2 = 25; + break; + } + c2 = 65535; + break; + case -993250458: + if (str2.equals("A10-70L")) { + c2 = 26; + break; + } + c2 = 65535; + break; + case -965403638: + if (str2.equals("s905x018")) { + c2 = 27; + break; + } + c2 = 65535; + break; + case -958336948: + if (str2.equals("ELUGA_Ray_X")) { + c2 = 28; + break; + } + c2 = 65535; + break; + case -879245230: + if (str2.equals("tcl_eu")) { + c2 = 29; + break; + } + c2 = 65535; + break; + case -842500323: + if (str2.equals("nicklaus_f")) { + c2 = 30; + break; + } + c2 = 65535; + break; + case -821392978: + if (str2.equals("A7000-a")) { + c2 = 31; + break; + } + c2 = 65535; + break; + case -797483286: + if (str2.equals("SVP-DTV15")) { + c2 = ' '; + break; + } + c2 = 65535; + break; + case -794946968: + if (str2.equals("watson")) { + c2 = '!'; + break; + } + c2 = 65535; + break; + case -788334647: + if (str2.equals("whyred")) { + c2 = '\"'; + break; + } + c2 = 65535; + break; + case -782144577: + if (str2.equals("OnePlus5T")) { + c2 = MentionUtilsKt.CHANNELS_CHAR; + break; + } + c2 = 65535; + break; + case -575125681: + if (str2.equals("GiONEE_CBL7513")) { + c2 = '$'; + break; + } + c2 = 65535; + break; + case -521118391: + if (str2.equals("GIONEE_GBL7360")) { + c2 = '%'; + break; + } + c2 = 65535; + break; + case -430914369: + if (str2.equals("Pixi4-7_3G")) { + c2 = '&'; + break; + } + c2 = 65535; + break; + case -290434366: + if (str2.equals("taido_row")) { + c2 = '\''; + break; + } + c2 = 65535; + break; + case -282781963: + if (str2.equals("BLACK-1X")) { + c2 = '('; + break; + } + c2 = 65535; + break; + case -277133239: + if (str2.equals("Z12_PRO")) { + c2 = ')'; + break; + } + c2 = 65535; + break; + case -173639913: + if (str2.equals("ELUGA_A3_Pro")) { + c2 = '*'; + break; + } + c2 = 65535; + break; + case -56598463: + if (str2.equals("woods_fn")) { + c2 = '+'; + break; + } + c2 = 65535; + break; + case 2126: + if (str2.equals("C1")) { + c2 = ','; + break; + } + c2 = 65535; + break; + case 2564: + if (str2.equals("Q5")) { + c2 = '-'; + break; + } + c2 = 65535; + break; + case 2715: + if (str2.equals("V1")) { + c2 = '.'; + break; + } + c2 = 65535; + break; + case 2719: + if (str2.equals("V5")) { + c2 = MentionUtilsKt.SLASH_CHAR; + break; + } + c2 = 65535; + break; + case 3091: + if (str2.equals("b5")) { + c2 = '0'; + break; + } + c2 = 65535; + break; + case 3483: + if (str2.equals("mh")) { + c2 = '1'; + break; + } + c2 = 65535; + break; + case 73405: + if (str2.equals("JGZ")) { + c2 = '2'; + break; + } + c2 = 65535; + break; + case 75537: + if (str2.equals("M04")) { + c2 = '3'; + break; + } + c2 = 65535; + break; + case 75739: + if (str2.equals("M5c")) { + c2 = '4'; + break; + } + c2 = 65535; + break; + case 76779: + if (str2.equals("MX6")) { + c2 = '5'; + break; + } + c2 = 65535; + break; + case 78669: + if (str2.equals("P85")) { + c2 = '6'; + break; + } + c2 = 65535; + break; + case 79305: + if (str2.equals("PLE")) { + c2 = '7'; + break; + } + c2 = 65535; + break; + case 80618: + if (str2.equals("QX1")) { + c2 = '8'; + break; + } + c2 = 65535; + break; + case 88274: + if (str2.equals("Z80")) { + c2 = '9'; + break; + } + c2 = 65535; + break; + case 98846: + if (str2.equals("cv1")) { + c2 = MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR; + break; + } + c2 = 65535; + break; + case 98848: + if (str2.equals("cv3")) { + c2 = ';'; + break; + } + c2 = 65535; + break; + case 99329: + if (str2.equals("deb")) { + c2 = '<'; + break; + } + c2 = 65535; + break; + case 101481: + if (str2.equals("flo")) { + c2 = '='; + break; + } + c2 = 65535; + break; + case 1513190: + if (str2.equals("1601")) { + c2 = '>'; + break; + } + c2 = 65535; + break; + case 1514184: + if (str2.equals("1713")) { + c2 = '?'; + break; + } + c2 = 65535; + break; + case 1514185: + if (str2.equals("1714")) { + c2 = MentionUtilsKt.MENTIONS_CHAR; + break; + } + c2 = 65535; + break; + case 2133089: + if (str2.equals("F01H")) { + c2 = 'A'; + break; + } + c2 = 65535; + break; + case 2133091: + if (str2.equals("F01J")) { + c2 = 'B'; + break; + } + c2 = 65535; + break; + case 2133120: + if (str2.equals("F02H")) { + c2 = 'C'; + break; + } + c2 = 65535; + break; + case 2133151: + if (str2.equals("F03H")) { + c2 = 'D'; + break; + } + c2 = 65535; + break; + case 2133182: + if (str2.equals("F04H")) { + c2 = 'E'; + break; + } + c2 = 65535; + break; + case 2133184: + if (str2.equals("F04J")) { + c2 = 'F'; + break; + } + c2 = 65535; + break; + case 2436959: + if (str2.equals("P681")) { + c2 = 'G'; + break; + } + c2 = 65535; + break; + case 2463773: + if (str2.equals("Q350")) { + c2 = 'H'; + break; + } + c2 = 65535; + break; + case 2464648: + if (str2.equals("Q427")) { + c2 = 'I'; + break; + } + c2 = 65535; + break; + case 2689555: + if (str2.equals("XE2X")) { + c2 = 'J'; + break; + } + c2 = 65535; + break; + case 3154429: + if (str2.equals("fugu")) { + c2 = 'K'; + break; + } + c2 = 65535; + break; + case 3284551: + if (str2.equals("kate")) { + c2 = 'L'; + break; + } + c2 = 65535; + break; + case 3351335: + if (str2.equals("mido")) { + c2 = 'M'; + break; + } + c2 = 65535; + break; + case 3386211: + if (str2.equals("p212")) { + c2 = 'N'; + break; + } + c2 = 65535; + break; + case 41325051: + if (str2.equals("MEIZU_M5")) { + c2 = 'O'; + break; + } + c2 = 65535; + break; + case 51349633: + if (str2.equals("601LV")) { + c2 = 'P'; + break; + } + c2 = 65535; + break; + case 51350594: + if (str2.equals("602LV")) { + c2 = 'Q'; + break; + } + c2 = 65535; + break; + case 55178625: + if (str2.equals("Aura_Note_2")) { + c2 = 'R'; + break; + } + c2 = 65535; + break; + case 61542055: + if (str2.equals("A1601")) { + c2 = 'S'; + break; + } + c2 = 65535; + break; + case 65355429: + if (str2.equals("E5643")) { + c2 = 'T'; + break; + } + c2 = 65535; + break; + case 66214468: + if (str2.equals("F3111")) { + c2 = 'U'; + break; + } + c2 = 65535; + break; + case 66214470: + if (str2.equals("F3113")) { + c2 = 'V'; + break; + } + c2 = 65535; + break; + case 66214473: + if (str2.equals("F3116")) { + c2 = 'W'; + break; + } + c2 = 65535; + break; + case 66215429: + if (str2.equals("F3211")) { + c2 = 'X'; + break; + } + c2 = 65535; + break; + case 66215431: + if (str2.equals("F3213")) { + c2 = 'Y'; + break; + } + c2 = 65535; + break; + case 66215433: + if (str2.equals("F3215")) { + c2 = 'Z'; + break; + } + c2 = 65535; + break; + case 66216390: + if (str2.equals("F3311")) { + c2 = '['; + break; + } + c2 = 65535; + break; + case 76402249: + if (str2.equals("PRO7S")) { + c2 = '\\'; + break; + } + c2 = 65535; + break; + case 76404105: + if (str2.equals("Q4260")) { + c2 = ']'; + break; + } + c2 = 65535; + break; + case 76404911: + if (str2.equals("Q4310")) { + c2 = '^'; + break; + } + c2 = 65535; + break; + case 80963634: + if (str2.equals("V23GB")) { + c2 = '_'; + break; + } + c2 = 65535; + break; + case 82882791: + if (str2.equals("X3_HK")) { + c2 = '`'; + break; + } + c2 = 65535; + break; + case 98715550: + if (str2.equals("i9031")) { + c2 = 'a'; + break; + } + c2 = 65535; + break; + case 101370885: + if (str2.equals("l5460")) { + c2 = 'b'; + break; + } + c2 = 65535; + break; + case 102844228: + if (str2.equals("le_x6")) { + c2 = 'c'; + break; + } + c2 = 65535; + break; + case 165221241: + if (str2.equals("A2016a40")) { + c2 = 'd'; + break; + } + c2 = 65535; + break; + case 182191441: + if (str2.equals("CPY83_I00")) { + c2 = 'e'; + break; + } + c2 = 65535; + break; + case 245388979: + if (str2.equals("marino_f")) { + c2 = 'f'; + break; + } + c2 = 65535; + break; + case 287431619: + if (str2.equals("griffin")) { + c2 = 'g'; + break; + } + c2 = 65535; + break; + case 307593612: + if (str2.equals("A7010a48")) { + c2 = 'h'; + break; + } + c2 = 65535; + break; + case 308517133: + if (str2.equals("A7020a48")) { + c2 = 'i'; + break; + } + c2 = 65535; + break; + case 316215098: + if (str2.equals("TB3-730F")) { + c2 = 'j'; + break; + } + c2 = 65535; + break; + case 316215116: + if (str2.equals("TB3-730X")) { + c2 = 'k'; + break; + } + c2 = 65535; + break; + case 316246811: + if (str2.equals("TB3-850F")) { + c2 = 'l'; + break; + } + c2 = 65535; + break; + case 316246818: + if (str2.equals("TB3-850M")) { + c2 = 'm'; + break; + } + c2 = 65535; + break; + case 407160593: + if (str2.equals("Pixi5-10_4G")) { + c2 = 'n'; + break; + } + c2 = 65535; + break; + case 507412548: + if (str2.equals("QM16XE_U")) { + c2 = 'o'; + break; + } + c2 = 65535; + break; + case 793982701: + if (str2.equals("GIONEE_WBL5708")) { + c2 = 'p'; + break; + } + c2 = 65535; + break; + case 794038622: + if (str2.equals("GIONEE_WBL7365")) { + c2 = 'q'; + break; + } + c2 = 65535; + break; + case 794040393: + if (str2.equals("GIONEE_WBL7519")) { + c2 = 'r'; + break; + } + c2 = 65535; + break; + case 835649806: + if (str2.equals("manning")) { + c2 = 's'; + break; + } + c2 = 65535; + break; + case 917340916: + if (str2.equals("A7000plus")) { + c2 = 't'; + break; + } + c2 = 65535; + break; + case 958008161: + if (str2.equals("j2xlteins")) { + c2 = 'u'; + break; + } + c2 = 65535; + break; + case 1060579533: + if (str2.equals("panell_d")) { + c2 = 'v'; + break; + } + c2 = 65535; + break; + case 1150207623: + if (str2.equals("LS-5017")) { + c2 = 'w'; + break; + } + c2 = 65535; + break; + case 1176899427: + if (str2.equals("itel_S41")) { + c2 = 'x'; + break; + } + c2 = 65535; + break; + case 1280332038: + if (str2.equals("hwALE-H")) { + c2 = 'y'; + break; + } + c2 = 65535; + break; + case 1306947716: + if (str2.equals("EverStar_S")) { + c2 = 'z'; + break; + } + c2 = 65535; + break; + case 1349174697: + if (str2.equals("htc_e56ml_dtul")) { + c2 = '{'; + break; + } + c2 = 65535; + break; + case 1522194893: + if (str2.equals("woods_f")) { + c2 = '|'; + break; + } + c2 = 65535; + break; + case 1691543273: + if (str2.equals("CPH1609")) { + c2 = '}'; + break; + } + c2 = 65535; + break; + case 1691544261: + if (str2.equals("CPH1715")) { + c2 = '~'; + break; + } + c2 = 65535; + break; + case 1709443163: + if (str2.equals("iball8735_9806")) { + c2 = 127; + break; + } + c2 = 65535; + break; + case 1865889110: + if (str2.equals("santoni")) { + c2 = 128; + break; + } + c2 = 65535; + break; + case 1906253259: + if (str2.equals("PB2-670M")) { + c2 = 129; + break; + } + c2 = 65535; + break; + case 1977196784: + if (str2.equals("Infinix-X572")) { + c2 = 130; + break; + } + c2 = 65535; + break; + case 2006372676: + if (str2.equals("BRAVIA_ATV3_4K")) { + c2 = 131; + break; + } + c2 = 65535; + break; + case 2019281702: + if (str2.equals("DM-01K")) { + c2 = 132; + break; + } + c2 = 65535; + break; + case 2029784656: + if (str2.equals("HWBLN-H")) { + c2 = 133; + break; + } + c2 = 65535; + break; + case 2030379515: + if (str2.equals("HWCAM-H")) { + c2 = 134; + break; + } + c2 = 65535; + break; + case 2033393791: + if (str2.equals("ASUS_X00AD_2")) { + c2 = 135; + break; + } + c2 = 65535; + break; + case 2047190025: + if (str2.equals("ELUGA_Note")) { + c2 = 136; + break; + } + c2 = 65535; + break; + case 2047252157: + if (str2.equals("ELUGA_Prim")) { + c2 = 137; + break; + } + c2 = 65535; + break; + case 2048319463: + if (str2.equals("HWVNS-H")) { + c2 = 138; + break; + } + c2 = 65535; + break; + case 2048855701: + if (str2.equals("HWWAS-H")) { + c2 = 139; + break; + } + c2 = 65535; + break; + default: + c2 = 65535; + break; + } + switch (c2) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case '\b': + case '\t': + case '\n': + case 11: + case '\f': + case '\r': + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case ' ': + case '!': + case '\"': + case '#': + case '$': + case '%': + case '&': + case '\'': + case '(': + case ')': + case '*': + case '+': + case ',': + case '-': + case '.': + case '/': + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + case ':': + case ';': + case '<': + case '=': + case '>': + case '?': + case '@': + case 'A': + case 'B': + case 'C': + case 'D': + case 'E': + case 'F': + case 'G': + case 'H': + case 'I': + case 'J': + case 'K': + case 'L': + case 'M': + case 'N': + case 'O': + case 'P': + case 'Q': + case 'R': + case 'S': + case 'T': + case 'U': + case 'V': + case 'W': + case 'X': + case 'Y': + case 'Z': + case '[': + case '\\': + case ']': + case '^': + case '_': + case '`': + case 'a': + case 'b': + case 'c': + case 'd': + case 'e': + case 'f': + case 'g': + case 'h': + case 'i': + case 'j': + case 'k': + case 'l': + case 'm': + case 'n': + case 'o': + case 'p': + case 'q': + case 'r': + case 's': + case 't': + case 'u': + case 'v': + case 'w': + case 'x': + case 'y': + case 'z': + case '{': + case '|': + case '}': + case '~': + case 127: + case 128: + case 129: + case 130: + case 131: + case 132: + case 133: + case 134: + case 135: + case 136: + case 137: + case 138: + case 139: + break; + default: + String str3 = e0.d; + str3.hashCode(); + switch (str3.hashCode()) { + case -594534941: + if (str3.equals("JSN-L21")) { + c3 = 0; + break; + } + c3 = 65535; + break; + case 2006354: + if (str3.equals("AFTA")) { + c3 = 1; + break; + } + c3 = 65535; + break; + case 2006367: + break; + default: + c3 = 65535; + break; + } + switch (c3) { + } + } + return true; + } + return false; + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + public static int F0(u uVar, j1 j1Var) { + char c; + int i; + int intValue; + int i2 = j1Var.B; + int i3 = j1Var.C; + if (i2 == -1 || i3 == -1) { + return -1; + } + String str = j1Var.w; + if ("video/dolby-vision".equals(str)) { + Pair c2 = MediaCodecUtil.c(j1Var); + str = (c2 == null || !((intValue = ((Integer) c2.first).intValue()) == 512 || intValue == 1 || intValue == 2)) ? "video/hevc" : "video/avc"; + } + str.hashCode(); + int i4 = 4; + switch (str.hashCode()) { + case -1664118616: + if (str.equals("video/3gpp")) { + c = 0; + break; + } + c = 65535; + break; + case -1662541442: + if (str.equals("video/hevc")) { + c = 1; + break; + } + c = 65535; + break; + case 1187890754: + if (str.equals("video/mp4v-es")) { + c = 2; + break; + } + c = 65535; + break; + case 1331836730: + if (str.equals("video/avc")) { + c = 3; + break; + } + c = 65535; + break; + case 1599127256: + if (str.equals("video/x-vnd.on2.vp8")) { + c = 4; + break; + } + c = 65535; + break; + case 1599127257: + if (str.equals("video/x-vnd.on2.vp9")) { + c = 5; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + if (c != 0) { + if (c != 1) { + if (c != 2) { + if (c == 3) { + String str2 = e0.d; + if ("BRAVIA 4K 2015".equals(str2) || ("Amazon".equals(e0.c) && ("KFSOWI".equals(str2) || ("AFTS".equals(str2) && uVar.f)))) { + return -1; + } + i = e0.f(i3, 16) * e0.f(i2, 16) * 16 * 16; + i4 = 2; + return (i * 3) / (i4 * 2); + } else if (c != 4) { + if (c != 5) { + return -1; + } + } + } + } + i = i2 * i3; + return (i * 3) / (i4 * 2); + } + i = i2 * i3; + i4 = 2; + return (i * 3) / (i4 * 2); + } + + public static List G0(v vVar, j1 j1Var, boolean z2, boolean z3) throws MediaCodecUtil.DecoderQueryException { + Pair c; + String str = j1Var.w; + if (str == null) { + return Collections.emptyList(); + } + List a2 = vVar.a(str, z2, z3); + Pattern pattern = MediaCodecUtil.a; + ArrayList arrayList = new ArrayList(a2); + MediaCodecUtil.j(arrayList, new g(j1Var)); + if ("video/dolby-vision".equals(str) && (c = MediaCodecUtil.c(j1Var)) != null) { + int intValue = ((Integer) c.first).intValue(); + if (intValue == 16 || intValue == 256) { + arrayList.addAll(vVar.a("video/hevc", z2, z3)); + } else if (intValue == 512) { + arrayList.addAll(vVar.a("video/avc", z2, z3)); + } + } + return Collections.unmodifiableList(arrayList); + } + + public static int H0(u uVar, j1 j1Var) { + if (j1Var.f1004x == -1) { + return F0(uVar, j1Var); + } + int size = j1Var.f1005y.size(); + int i = 0; + for (int i2 = 0; i2 < size; i2++) { + i += j1Var.f1005y.get(i2).length; + } + return j1Var.f1004x + i; + } + + public static boolean I0(long j) { + return j < -30000; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer, b.i.a.c.v0 + public void B() { + this.u1 = null; + C0(); + this.b1 = false; + v vVar = this.R0; + v.b bVar = vVar.f979b; + if (bVar != null) { + bVar.unregister(); + v.e eVar = vVar.c; + Objects.requireNonNull(eVar); + eVar.l.sendEmptyMessage(2); + } + this.x1 = null; + try { + super.B(); + x.a aVar = this.S0; + e eVar2 = this.J0; + Objects.requireNonNull(aVar); + synchronized (eVar2) { + } + Handler handler = aVar.a; + if (handler != null) { + handler.post(new c(aVar, eVar2)); + } + } catch (Throwable th) { + x.a aVar2 = this.S0; + e eVar3 = this.J0; + Objects.requireNonNull(aVar2); + synchronized (eVar3) { + Handler handler2 = aVar2.a; + if (handler2 != null) { + handler2.post(new c(aVar2, eVar3)); + } + throw th; + } + } + } + + @Override // b.i.a.c.v0 + public void C(boolean z2, boolean z3) throws ExoPlaybackException { + this.J0 = new e(); + h2 h2Var = this.l; + Objects.requireNonNull(h2Var); + boolean z4 = h2Var.f1001b; + d.D(!z4 || this.w1 != 0); + if (this.v1 != z4) { + this.v1 = z4; + o0(); + } + x.a aVar = this.S0; + e eVar = this.J0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new f(aVar, eVar)); + } + v vVar = this.R0; + if (vVar.f979b != null) { + v.e eVar2 = vVar.c; + Objects.requireNonNull(eVar2); + eVar2.l.sendEmptyMessage(1); + vVar.f979b.a(new b(vVar)); + } + this.e1 = z3; + this.f1 = false; + } + + public final void C0() { + t tVar; + this.d1 = false; + if (e0.a >= 23 && this.v1 && (tVar = this.S) != null) { + this.x1 = new b(tVar); + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer, b.i.a.c.v0 + public void D(long j, boolean z2) throws ExoPlaybackException { + super.D(j, z2); + C0(); + this.R0.b(); + this.m1 = -9223372036854775807L; + this.g1 = -9223372036854775807L; + this.k1 = 0; + if (z2) { + R0(); + } else { + this.h1 = -9223372036854775807L; + } + } + + public boolean D0(String str) { + if (str.startsWith("OMX.google")) { + return false; + } + synchronized (r.class) { + if (!O0) { + P0 = E0(); + O0 = true; + } + } + return P0; + } + + @Override // b.i.a.c.v0 + @TargetApi(17) + public void E() { + DrmSession drmSession = null; + try { + M(); + o0(); + try { + } finally { + if (this.a1 != null) { + O0(); + } + } + } finally { + u0(drmSession); + } + } + + @Override // b.i.a.c.v0 + public void F() { + this.j1 = 0; + this.i1 = SystemClock.elapsedRealtime(); + this.n1 = SystemClock.elapsedRealtime() * 1000; + this.o1 = 0; + this.p1 = 0; + v vVar = this.R0; + vVar.d = true; + vVar.b(); + vVar.d(false); + } + + @Override // b.i.a.c.v0 + public void G() { + this.h1 = -9223372036854775807L; + J0(); + int i = this.p1; + if (i != 0) { + x.a aVar = this.S0; + long j = this.o1; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new l(aVar, j, i)); + } + this.o1 = 0; + this.p1 = 0; + } + v vVar = this.R0; + vVar.d = false; + vVar.a(); + } + + public final void J0() { + if (this.j1 > 0) { + long elapsedRealtime = SystemClock.elapsedRealtime(); + long j = elapsedRealtime - this.i1; + x.a aVar = this.S0; + int i = this.j1; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new h(aVar, i, j)); + } + this.j1 = 0; + this.i1 = elapsedRealtime; + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public b.i.a.c.v2.g K(u uVar, j1 j1Var, j1 j1Var2) { + b.i.a.c.v2.g c = uVar.c(j1Var, j1Var2); + int i = c.e; + int i2 = j1Var2.B; + a aVar = this.W0; + if (i2 > aVar.a || j1Var2.C > aVar.f976b) { + i |= 256; + } + if (H0(uVar, j1Var2) > this.W0.c) { + i |= 64; + } + return new b.i.a.c.v2.g(uVar.a, j1Var, j1Var2, i != 0 ? 0 : c.d, i); + } + + public void K0() { + this.f1 = true; + if (!this.d1) { + this.d1 = true; + x.a aVar = this.S0; + Surface surface = this.Z0; + if (aVar.a != null) { + aVar.a.post(new g(aVar, surface, SystemClock.elapsedRealtime())); + } + this.b1 = true; + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public MediaCodecDecoderException L(Throwable th, @Nullable u uVar) { + return new MediaCodecVideoDecoderException(th, uVar, this.Z0); + } + + public final void L0() { + int i = this.q1; + if (i != -1 || this.r1 != -1) { + y yVar = this.u1; + if (yVar == null || yVar.k != i || yVar.l != this.r1 || yVar.m != this.s1 || yVar.n != this.t1) { + y yVar2 = new y(i, this.r1, this.s1, this.t1); + this.u1 = yVar2; + x.a aVar = this.S0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new j(aVar, yVar2)); + } + } + } + } + + public final void M0(long j, long j2, j1 j1Var) { + u uVar = this.y1; + if (uVar != null) { + uVar.e(j, j2, j1Var, this.U); + } + } + + public void N0(long j) throws ExoPlaybackException { + B0(j); + L0(); + this.J0.e++; + K0(); + super.i0(j); + if (!this.v1) { + this.l1--; + } + } + + @RequiresApi(17) + public final void O0() { + Surface surface = this.Z0; + DummySurface dummySurface = this.a1; + if (surface == dummySurface) { + this.Z0 = null; + } + dummySurface.release(); + this.a1 = null; + } + + public void P0(t tVar, int i) { + L0(); + d.f("releaseOutputBuffer"); + tVar.releaseOutputBuffer(i, true); + d.c0(); + this.n1 = SystemClock.elapsedRealtime() * 1000; + this.J0.e++; + this.k1 = 0; + K0(); + } + + @RequiresApi(21) + public void Q0(t tVar, int i, long j) { + L0(); + d.f("releaseOutputBuffer"); + tVar.c(i, j); + d.c0(); + this.n1 = SystemClock.elapsedRealtime() * 1000; + this.J0.e++; + this.k1 = 0; + K0(); + } + + public final void R0() { + this.h1 = this.T0 > 0 ? SystemClock.elapsedRealtime() + this.T0 : -9223372036854775807L; + } + + public final boolean S0(u uVar) { + return e0.a >= 23 && !this.v1 && !D0(uVar.a) && (!uVar.f || DummySurface.b(this.Q0)); + } + + public void T0(t tVar, int i) { + d.f("skipVideoBuffer"); + tVar.releaseOutputBuffer(i, false); + d.c0(); + this.J0.f++; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public boolean U() { + return this.v1 && e0.a < 23; + } + + public void U0(int i) { + e eVar = this.J0; + eVar.g += i; + this.j1 += i; + int i2 = this.k1 + i; + this.k1 = i2; + eVar.h = Math.max(i2, eVar.h); + int i3 = this.U0; + if (i3 > 0 && this.j1 >= i3) { + J0(); + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public float V(float f, j1 j1Var, j1[] j1VarArr) { + float f2 = -1.0f; + for (j1 j1Var2 : j1VarArr) { + float f3 = j1Var2.D; + if (f3 != -1.0f) { + f2 = Math.max(f2, f3); + } + } + if (f2 == -1.0f) { + return -1.0f; + } + return f2 * f; + } + + public void V0(long j) { + e eVar = this.J0; + eVar.j += j; + eVar.k++; + this.o1 += j; + this.p1++; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public List W(b.i.a.c.y2.v vVar, j1 j1Var, boolean z2) throws MediaCodecUtil.DecoderQueryException { + return G0(vVar, j1Var, z2, this.v1); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + @TargetApi(17) + public t.a Y(u uVar, j1 j1Var, @Nullable MediaCrypto mediaCrypto, float f) { + a aVar; + boolean z2; + Pair c; + Point point; + Point point2; + MediaCodecInfo.VideoCapabilities videoCapabilities; + int F0; + j1 j1Var2 = j1Var; + DummySurface dummySurface = this.a1; + if (!(dummySurface == null || dummySurface.l == uVar.f)) { + O0(); + } + String str = uVar.c; + j1[] j1VarArr = this.p; + Objects.requireNonNull(j1VarArr); + int i = j1Var2.B; + int i2 = j1Var2.C; + int H0 = H0(uVar, j1Var); + if (j1VarArr.length == 1) { + if (!(H0 == -1 || (F0 = F0(uVar, j1Var)) == -1)) { + H0 = Math.min((int) (((float) H0) * 1.5f), F0); + } + aVar = new a(i, i2, H0); + } else { + int length = j1VarArr.length; + boolean z3 = false; + for (int i3 = 0; i3 < length; i3++) { + j1 j1Var3 = j1VarArr[i3]; + if (j1Var2.I != null && j1Var3.I == null) { + j1.b a2 = j1Var3.a(); + a2.w = j1Var2.I; + j1Var3 = a2.a(); + } + if (uVar.c(j1Var2, j1Var3).d != 0) { + int i4 = j1Var3.B; + z3 |= i4 == -1 || j1Var3.C == -1; + i = Math.max(i, i4); + i2 = Math.max(i2, j1Var3.C); + H0 = Math.max(H0, H0(uVar, j1Var3)); + } + } + if (z3) { + Log.w("MediaCodecVideoRenderer", b.d.b.a.a.g(66, "Resolutions unknown. Codec max resolution: ", i, "x", i2)); + int i5 = j1Var2.C; + int i6 = j1Var2.B; + boolean z4 = i5 > i6; + int i7 = z4 ? i5 : i6; + if (z4) { + i5 = i6; + } + float f2 = ((float) i5) / ((float) i7); + int[] iArr = N0; + int length2 = iArr.length; + int i8 = 0; + while (true) { + point = null; + if (i8 >= length2) { + break; + } + int i9 = iArr[i8]; + int i10 = (int) (((float) i9) * f2); + if (i9 <= i7 || i10 <= i5) { + break; + } + if (e0.a >= 21) { + int i11 = z4 ? i10 : i9; + if (!z4) { + i9 = i10; + } + MediaCodecInfo.CodecCapabilities codecCapabilities = uVar.d; + if (!(codecCapabilities == null || (videoCapabilities = codecCapabilities.getVideoCapabilities()) == null)) { + point = u.a(videoCapabilities, i11, i9); + } + float f3 = j1Var2.D; + int i12 = point.x; + int i13 = point.y; + point = point; + if (uVar.g(i12, i13, (double) f3)) { + break; + } + } else { + try { + int f4 = e0.f(i9, 16) * 16; + int f5 = e0.f(i10, 16) * 16; + if (f4 * f5 <= MediaCodecUtil.i()) { + int i14 = z4 ? f5 : f4; + if (!z4) { + f4 = f5; + } + point2 = new Point(i14, f4); + } + } catch (MediaCodecUtil.DecoderQueryException unused) { + } + } + i8++; + j1Var2 = j1Var; + length2 = length2; + iArr = iArr; + i5 = i5; + f2 = f2; + } + point2 = point; + if (point2 != null) { + i = Math.max(i, point2.x); + i2 = Math.max(i2, point2.y); + j1.b a3 = j1Var.a(); + a3.p = i; + a3.q = i2; + H0 = Math.max(H0, F0(uVar, a3.a())); + Log.w("MediaCodecVideoRenderer", b.d.b.a.a.g(57, "Codec max resolution adjusted to: ", i, "x", i2)); + } + } + aVar = new a(i, i2, H0); + } + this.W0 = aVar; + boolean z5 = this.V0; + int i15 = this.v1 ? this.w1 : 0; + MediaFormat mediaFormat = new MediaFormat(); + mediaFormat.setString("mime", str); + mediaFormat.setInteger("width", j1Var.B); + mediaFormat.setInteger("height", j1Var.C); + d.W1(mediaFormat, j1Var.f1005y); + float f6 = j1Var.D; + if (f6 != -1.0f) { + mediaFormat.setFloat("frame-rate", f6); + } + d.h1(mediaFormat, "rotation-degrees", j1Var.E); + n nVar = j1Var.I; + if (nVar != null) { + d.h1(mediaFormat, "color-transfer", nVar.m); + d.h1(mediaFormat, "color-standard", nVar.k); + d.h1(mediaFormat, "color-range", nVar.l); + byte[] bArr = nVar.n; + if (bArr != null) { + mediaFormat.setByteBuffer("hdr-static-info", ByteBuffer.wrap(bArr)); + } + } + if ("video/dolby-vision".equals(j1Var.w) && (c = MediaCodecUtil.c(j1Var)) != null) { + d.h1(mediaFormat, "profile", ((Integer) c.first).intValue()); + } + mediaFormat.setInteger("max-width", aVar.a); + mediaFormat.setInteger("max-height", aVar.f976b); + d.h1(mediaFormat, "max-input-size", aVar.c); + if (e0.a >= 23) { + mediaFormat.setInteger("priority", 0); + if (f != -1.0f) { + mediaFormat.setFloat("operating-rate", f); + } + } + if (z5) { + z2 = true; + mediaFormat.setInteger("no-post-process", 1); + mediaFormat.setInteger("auto-frc", 0); + } else { + z2 = true; + } + if (i15 != 0) { + mediaFormat.setFeatureEnabled("tunneled-playback", z2); + mediaFormat.setInteger("audio-session-id", i15); + } + if (this.Z0 == null) { + if (S0(uVar)) { + if (this.a1 == null) { + this.a1 = DummySurface.c(this.Q0, uVar.f); + } + this.Z0 = this.a1; + } else { + throw new IllegalStateException(); + } + } + return new t.a(uVar, mediaFormat, j1Var, this.Z0, mediaCrypto, 0, false); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + @TargetApi(29) + public void Z(DecoderInputBuffer decoderInputBuffer) throws ExoPlaybackException { + if (this.Y0) { + ByteBuffer byteBuffer = decoderInputBuffer.o; + Objects.requireNonNull(byteBuffer); + if (byteBuffer.remaining() >= 7) { + byte b2 = byteBuffer.get(); + short s2 = byteBuffer.getShort(); + short s3 = byteBuffer.getShort(); + byte b3 = byteBuffer.get(); + byte b4 = byteBuffer.get(); + byteBuffer.position(0); + if (b2 == -75 && s2 == 60 && s3 == 1 && b3 == 4 && b4 == 0) { + byte[] bArr = new byte[byteBuffer.remaining()]; + byteBuffer.get(bArr); + byteBuffer.position(0); + t tVar = this.S; + Bundle bundle = new Bundle(); + bundle.putByteArray("hdr10-plus-info", bArr); + tVar.setParameters(bundle); + } + } + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer, b.i.a.c.f2 + public boolean d() { + DummySurface dummySurface; + if (super.d() && (this.d1 || (((dummySurface = this.a1) != null && this.Z0 == dummySurface) || this.S == null || this.v1))) { + this.h1 = -9223372036854775807L; + return true; + } else if (this.h1 == -9223372036854775807L) { + return false; + } else { + if (SystemClock.elapsedRealtime() < this.h1) { + return true; + } + this.h1 = -9223372036854775807L; + return false; + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void d0(Exception exc) { + q.b("MediaCodecVideoRenderer", "Video codec error", exc); + x.a aVar = this.S0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new e(aVar, exc)); + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void e0(String str, long j, long j2) { + x.a aVar = this.S0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new i(aVar, str, j, j2)); + } + this.X0 = D0(str); + u uVar = this.Z; + Objects.requireNonNull(uVar); + boolean z2 = false; + if (e0.a >= 29 && "video/x-vnd.on2.vp9".equals(uVar.f1301b)) { + MediaCodecInfo.CodecProfileLevel[] d = uVar.d(); + int length = d.length; + int i = 0; + while (true) { + if (i >= length) { + break; + } else if (d[i].profile == 16384) { + z2 = true; + break; + } else { + i++; + } + } + } + this.Y0 = z2; + if (e0.a >= 23 && this.v1) { + t tVar = this.S; + Objects.requireNonNull(tVar); + this.x1 = new b(tVar); + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void f0(String str) { + x.a aVar = this.S0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new d(aVar, str)); + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + @Nullable + public b.i.a.c.v2.g g0(k1 k1Var) throws ExoPlaybackException { + b.i.a.c.v2.g g02 = super.g0(k1Var); + x.a aVar = this.S0; + j1 j1Var = k1Var.f1013b; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new k(aVar, j1Var, g02)); + } + return g02; + } + + @Override // b.i.a.c.f2, b.i.a.c.g2 + public String getName() { + return "MediaCodecVideoRenderer"; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void h0(j1 j1Var, @Nullable MediaFormat mediaFormat) { + t tVar = this.S; + if (tVar != null) { + tVar.g(this.c1); + } + if (this.v1) { + this.q1 = j1Var.B; + this.r1 = j1Var.C; + } else { + Objects.requireNonNull(mediaFormat); + boolean z2 = mediaFormat.containsKey("crop-right") && mediaFormat.containsKey("crop-left") && mediaFormat.containsKey("crop-bottom") && mediaFormat.containsKey("crop-top"); + this.q1 = z2 ? (mediaFormat.getInteger("crop-right") - mediaFormat.getInteger("crop-left")) + 1 : mediaFormat.getInteger("width"); + this.r1 = z2 ? (mediaFormat.getInteger("crop-bottom") - mediaFormat.getInteger("crop-top")) + 1 : mediaFormat.getInteger("height"); + } + float f = j1Var.F; + this.t1 = f; + if (e0.a >= 21) { + int i = j1Var.E; + if (i == 90 || i == 270) { + int i2 = this.q1; + this.q1 = this.r1; + this.r1 = i2; + this.t1 = 1.0f / f; + } + } else { + this.s1 = j1Var.E; + } + v vVar = this.R0; + vVar.f = j1Var.D; + p pVar = vVar.a; + pVar.a.c(); + pVar.f973b.c(); + pVar.c = false; + pVar.d = -9223372036854775807L; + pVar.e = 0; + vVar.c(); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + @CallSuper + public void i0(long j) { + super.i0(j); + if (!this.v1) { + this.l1--; + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void j0() { + C0(); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + @CallSuper + public void k0(DecoderInputBuffer decoderInputBuffer) throws ExoPlaybackException { + boolean z2 = this.v1; + if (!z2) { + this.l1++; + } + if (e0.a < 23 && z2) { + N0(decoderInputBuffer.n); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:19:0x0075, code lost: + if ((r11 == 0 ? false : r13.g[(int) ((r11 - 1) % 15)]) != false) goto L_0x0077; + */ + /* JADX WARNING: Code restructure failed: missing block: B:72:0x012f, code lost: + if ((I0(r5) && r22 > 100000) != false) goto L_0x0131; + */ + /* JADX WARNING: Removed duplicated region for block: B:77:0x0138 */ + /* JADX WARNING: Removed duplicated region for block: B:83:0x0157 */ + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public boolean m0(long j, long j2, @Nullable t tVar, @Nullable ByteBuffer byteBuffer, int i, int i2, int i3, long j3, boolean z2, boolean z3, j1 j1Var) throws ExoPlaybackException { + boolean z4; + long j4; + boolean z5; + boolean z6; + long j5; + long j6; + Objects.requireNonNull(tVar); + if (this.g1 == -9223372036854775807L) { + this.g1 = j; + } + if (j3 != this.m1) { + v vVar = this.R0; + long j7 = vVar.n; + if (j7 != -1) { + vVar.p = j7; + vVar.q = vVar.o; + } + vVar.m++; + p pVar = vVar.a; + long j8 = j3 * 1000; + pVar.a.b(j8); + if (pVar.a.a()) { + pVar.c = false; + } else if (pVar.d != -9223372036854775807L) { + if (pVar.c) { + p.a aVar = pVar.f973b; + long j9 = aVar.d; + } + pVar.f973b.c(); + pVar.f973b.b(pVar.d); + pVar.c = true; + pVar.f973b.b(j8); + } + if (pVar.c && pVar.f973b.a()) { + p.a aVar2 = pVar.a; + pVar.a = pVar.f973b; + pVar.f973b = aVar2; + pVar.c = false; + } + pVar.d = j8; + pVar.e = pVar.a.a() ? 0 : pVar.e + 1; + vVar.c(); + this.m1 = j3; + } + long j10 = this.L0; + long j11 = j3 - j10; + if (!z2 || z3) { + double d = (double) this.Q; + boolean z7 = this.n == 2; + long elapsedRealtime = SystemClock.elapsedRealtime() * 1000; + long j12 = (long) (((double) (j3 - j)) / d); + if (z7) { + j12 -= elapsedRealtime - j2; + } + if (this.Z0 != this.a1) { + long j13 = elapsedRealtime - this.n1; + boolean z8 = this.f1 ? !this.d1 : !(!z7 && !this.e1); + if (this.h1 == -9223372036854775807L && j >= j10) { + if (!z8) { + if (z7) { + } + } + z4 = true; + if (!z4) { + long nanoTime = System.nanoTime(); + M0(j11, nanoTime, j1Var); + if (e0.a >= 21) { + Q0(tVar, i, nanoTime); + } else { + P0(tVar, i); + } + V0(j12); + return true; + } else if (!z7 || j == this.g1) { + return false; + } else { + long nanoTime2 = System.nanoTime(); + long j14 = (j12 * 1000) + nanoTime2; + v vVar2 = this.R0; + if (vVar2.p == -1 || !vVar2.a.a()) { + j4 = j11; + } else { + p pVar2 = vVar2.a; + if (pVar2.a()) { + p.a aVar3 = pVar2.a; + long j15 = aVar3.e; + if (j15 == 0) { + j6 = 0; + j4 = j11; + } else { + j4 = j11; + j6 = aVar3.f / j15; + } + } else { + j4 = j11; + j6 = -9223372036854775807L; + } + long j16 = vVar2.q + ((long) (((float) ((vVar2.m - vVar2.p) * j6)) / vVar2.i)); + if (Math.abs(j14 - j16) <= 20000000) { + j14 = j16; + } else { + vVar2.b(); + } + } + vVar2.n = vVar2.m; + vVar2.o = j14; + v.e eVar = vVar2.c; + if (!(eVar == null || vVar2.k == -9223372036854775807L)) { + long j17 = eVar.k; + if (j17 != -9223372036854775807L) { + long j18 = vVar2.k; + long j19 = (((j14 - j17) / j18) * j18) + j17; + if (j14 <= j19) { + j5 = j19 - j18; + } else { + j5 = j19; + j19 = j18 + j19; + } + if (j19 - j14 >= j14 - j5) { + j19 = j5; + } + j14 = j19 - vVar2.l; + } + } + long j20 = (j14 - nanoTime2) / 1000; + boolean z9 = this.h1 != -9223372036854775807L; + if (((j20 > -500000 ? 1 : (j20 == -500000 ? 0 : -1)) < 0) && !z3) { + i0 i0Var = this.o; + Objects.requireNonNull(i0Var); + int c = i0Var.c(j - this.q); + if (c == 0) { + z6 = false; + } else { + e eVar2 = this.J0; + eVar2.i++; + int i4 = this.l1 + c; + if (z9) { + eVar2.f += i4; + } else { + U0(i4); + } + if (S()) { + b0(); + } + z6 = true; + } + if (z6) { + return false; + } + } + if (I0(j20) && !z3) { + if (z9) { + T0(tVar, i); + z5 = true; + } else { + d.f("dropVideoBuffer"); + tVar.releaseOutputBuffer(i, false); + d.c0(); + z5 = true; + U0(1); + } + V0(j20); + return z5; + } else if (e0.a >= 21) { + if (j20 >= 50000) { + return false; + } + M0(j4, j14, j1Var); + Q0(tVar, i, j14); + V0(j20); + return true; + } else if (j20 >= 30000) { + return false; + } else { + if (j20 > 11000) { + try { + Thread.sleep((j20 - 10000) / 1000); + } catch (InterruptedException unused) { + Thread.currentThread().interrupt(); + return false; + } + } + M0(j4, j14, j1Var); + P0(tVar, i); + V0(j20); + return true; + } + } + } + z4 = false; + if (!z4) { + } + } else if (!I0(j12)) { + return false; + } else { + T0(tVar, i); + V0(j12); + return true; + } + } else { + T0(tVar, i); + return true; + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer, b.i.a.c.v0, b.i.a.c.f2 + public void n(float f, float f2) throws ExoPlaybackException { + this.Q = f; + this.R = f2; + z0(this.T); + v vVar = this.R0; + vVar.i = f; + vVar.b(); + vVar.d(false); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + @CallSuper + public void q0() { + super.q0(); + this.l1 = 0; + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:26:0x005c */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.a.c.v0, b.i.a.c.b2.b + public void r(int i, @Nullable Object obj) throws ExoPlaybackException { + x.a aVar; + Handler handler; + x.a aVar2; + Handler handler2; + if (i == 1) { + DummySurface dummySurface = obj instanceof Surface ? (Surface) obj : null; + if (dummySurface == null) { + DummySurface dummySurface2 = this.a1; + if (dummySurface2 != null) { + dummySurface = dummySurface2; + } else { + u uVar = this.Z; + if (uVar != null && S0(uVar)) { + dummySurface = DummySurface.c(this.Q0, uVar.f); + this.a1 = dummySurface; + } + } + } + if (this.Z0 != dummySurface) { + this.Z0 = dummySurface; + v vVar = this.R0; + Objects.requireNonNull(vVar); + DummySurface dummySurface3 = dummySurface instanceof DummySurface ? null : dummySurface; + if (vVar.e != dummySurface3) { + vVar.a(); + vVar.e = dummySurface3; + vVar.d(true); + } + this.b1 = false; + int i2 = this.n; + t tVar = this.S; + if (tVar != null) { + if (e0.a < 23 || dummySurface == null || this.X0) { + o0(); + b0(); + } else { + tVar.i(dummySurface); + } + } + if (dummySurface == null || dummySurface == this.a1) { + this.u1 = null; + C0(); + return; + } + y yVar = this.u1; + if (!(yVar == null || (handler2 = (aVar2 = this.S0).a) == null)) { + handler2.post(new j(aVar2, yVar)); + } + C0(); + if (i2 == 2) { + R0(); + } + } else if (dummySurface != null && dummySurface != this.a1) { + y yVar2 = this.u1; + if (!(yVar2 == null || (handler = (aVar = this.S0).a) == null)) { + handler.post(new j(aVar, yVar2)); + } + if (this.b1) { + x.a aVar3 = this.S0; + Surface surface = this.Z0; + if (aVar3.a != null) { + aVar3.a.post(new g(aVar3, surface, SystemClock.elapsedRealtime())); + } + } + } + } else if (i == 7) { + this.y1 = (u) obj; + } else if (i == 10) { + int intValue = ((Integer) obj).intValue(); + if (this.w1 != intValue) { + this.w1 = intValue; + if (this.v1) { + o0(); + } + } + } else if (i == 4) { + int intValue2 = ((Integer) obj).intValue(); + this.c1 = intValue2; + t tVar2 = this.S; + if (tVar2 != null) { + tVar2.g(intValue2); + } + } else if (i == 5) { + v vVar2 = this.R0; + int intValue3 = ((Integer) obj).intValue(); + if (vVar2.j != intValue3) { + vVar2.j = intValue3; + vVar2.d(true); + } + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public boolean w0(u uVar) { + return this.Z0 != null || S0(uVar); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public int y0(b.i.a.c.y2.v vVar, j1 j1Var) throws MediaCodecUtil.DecoderQueryException { + int i = 0; + if (!b.i.a.c.f3.t.j(j1Var.w)) { + return 0; + } + boolean z2 = j1Var.f1006z != null; + List G0 = G0(vVar, j1Var, z2, false); + if (z2 && G0.isEmpty()) { + G0 = G0(vVar, j1Var, false, false); + } + if (G0.isEmpty()) { + return 1; + } + int i2 = j1Var.P; + if (!(i2 == 0 || i2 == 2)) { + return 2; + } + u uVar = G0.get(0); + boolean e = uVar.e(j1Var); + int i3 = uVar.f(j1Var) ? 16 : 8; + if (e) { + List G02 = G0(vVar, j1Var, z2, true); + if (!G02.isEmpty()) { + u uVar2 = G02.get(0); + if (uVar2.e(j1Var) && uVar2.f(j1Var)) { + i = 32; + } + } + } + return (e ? 4 : 3) | i3 | i; + } +} diff --git a/app/src/main/java/b/i/a/c/g3/s.java b/app/src/main/java/b/i/a/c/g3/s.java new file mode 100644 index 0000000000..a5067dfe13 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/s.java @@ -0,0 +1,129 @@ +package b.i.a.c.g3; + +import android.content.Context; +import android.opengl.GLES20; +import android.opengl.GLSurfaceView; +import androidx.work.Data; +import b.i.a.c.v2.i; +import com.google.android.exoplayer2.util.GlUtil; +import java.nio.Buffer; +import java.nio.FloatBuffer; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +import javax.microedition.khronos.egl.EGLConfig; +import javax.microedition.khronos.opengles.GL10; +/* compiled from: VideoDecoderGLSurfaceView */ +public final class s extends GLSurfaceView implements t { + public final a j; + + /* compiled from: VideoDecoderGLSurfaceView */ + public static final class a implements GLSurfaceView.Renderer { + public static final float[] j = {1.164f, 1.164f, 1.164f, 0.0f, -0.392f, 2.017f, 1.596f, -0.813f, 0.0f}; + public static final float[] k = {1.164f, 1.164f, 1.164f, 0.0f, -0.213f, 2.112f, 1.793f, -0.533f, 0.0f}; + public static final float[] l = {1.168f, 1.168f, 1.168f, 0.0f, -0.188f, 2.148f, 1.683f, -0.652f, 0.0f}; + public static final String[] m = {"y_tex", "u_tex", "v_tex"}; + public static final FloatBuffer n = GlUtil.b(new float[]{-1.0f, 1.0f, -1.0f, -1.0f, 1.0f, 1.0f, 1.0f, -1.0f}); + public final GLSurfaceView o; + public final int[] p = new int[3]; + public final int[] q = new int[3]; + public final int[] r = new int[3]; + + /* renamed from: s reason: collision with root package name */ + public final int[] f977s = new int[3]; + public final AtomicReference t = new AtomicReference<>(); + public final FloatBuffer[] u = new FloatBuffer[3]; + public GlUtil.a v; + public int w; + + /* renamed from: x reason: collision with root package name */ + public i f978x; + + public a(GLSurfaceView gLSurfaceView) { + this.o = gLSurfaceView; + for (int i = 0; i < 3; i++) { + int[] iArr = this.r; + this.f977s[i] = -1; + iArr[i] = -1; + } + } + + @Override // android.opengl.GLSurfaceView.Renderer + public void onDrawFrame(GL10 gl10) { + i andSet = this.t.getAndSet(null); + if (andSet != null || this.f978x != null) { + if (andSet != null) { + i iVar = this.f978x; + if (iVar != null) { + Objects.requireNonNull(iVar); + throw null; + } + this.f978x = andSet; + } + Objects.requireNonNull(this.f978x); + GLES20.glUniformMatrix3fv(this.w, 1, false, k, 0); + Objects.requireNonNull(null); + throw null; + } + } + + @Override // android.opengl.GLSurfaceView.Renderer + public void onSurfaceChanged(GL10 gl10, int i, int i2) { + GLES20.glViewport(0, 0, i, i2); + } + + @Override // android.opengl.GLSurfaceView.Renderer + public void onSurfaceCreated(GL10 gl10, EGLConfig eGLConfig) { + GlUtil.a aVar = new GlUtil.a("varying vec2 interp_tc_y;\nvarying vec2 interp_tc_u;\nvarying vec2 interp_tc_v;\nattribute vec4 in_pos;\nattribute vec2 in_tc_y;\nattribute vec2 in_tc_u;\nattribute vec2 in_tc_v;\nvoid main() {\n gl_Position = in_pos;\n interp_tc_y = in_tc_y;\n interp_tc_u = in_tc_u;\n interp_tc_v = in_tc_v;\n}\n", "precision mediump float;\nvarying vec2 interp_tc_y;\nvarying vec2 interp_tc_u;\nvarying vec2 interp_tc_v;\nuniform sampler2D y_tex;\nuniform sampler2D u_tex;\nuniform sampler2D v_tex;\nuniform mat3 mColorConversion;\nvoid main() {\n vec3 yuv;\n yuv.x = texture2D(y_tex, interp_tc_y).r - 0.0625;\n yuv.y = texture2D(u_tex, interp_tc_u).r - 0.5;\n yuv.z = texture2D(v_tex, interp_tc_v).r - 0.5;\n gl_FragColor = vec4(mColorConversion * yuv, 1.0);\n}\n"); + this.v = aVar; + aVar.c(); + int glGetAttribLocation = GLES20.glGetAttribLocation(this.v.a, "in_pos"); + GLES20.glEnableVertexAttribArray(glGetAttribLocation); + GLES20.glVertexAttribPointer(glGetAttribLocation, 2, 5126, false, 0, (Buffer) n); + this.q[0] = GLES20.glGetAttribLocation(this.v.a, "in_tc_y"); + GLES20.glEnableVertexAttribArray(this.q[0]); + this.q[1] = GLES20.glGetAttribLocation(this.v.a, "in_tc_u"); + GLES20.glEnableVertexAttribArray(this.q[1]); + this.q[2] = GLES20.glGetAttribLocation(this.v.a, "in_tc_v"); + GLES20.glEnableVertexAttribArray(this.q[2]); + GlUtil.a(); + this.w = GLES20.glGetUniformLocation(this.v.a, "mColorConversion"); + GlUtil.a(); + GLES20.glGenTextures(3, this.p, 0); + for (int i = 0; i < 3; i++) { + GLES20.glUniform1i(this.v.b(m[i]), i); + GLES20.glActiveTexture(33984 + i); + GLES20.glBindTexture(3553, this.p[i]); + GLES20.glTexParameterf(3553, 10241, 9729.0f); + GLES20.glTexParameterf(3553, Data.MAX_DATA_BYTES, 9729.0f); + GLES20.glTexParameterf(3553, 10242, 33071.0f); + GLES20.glTexParameterf(3553, 10243, 33071.0f); + } + GlUtil.a(); + GlUtil.a(); + } + } + + public s(Context context) { + super(context, null); + a aVar = new a(this); + this.j = aVar; + setPreserveEGLContextOnPause(true); + setEGLContextClientVersion(2); + setRenderer(aVar); + setRenderMode(0); + } + + @Deprecated + public t getVideoDecoderOutputBufferRenderer() { + return this; + } + + public void setOutputBuffer(i iVar) { + a aVar = this.j; + if (aVar.t.getAndSet(iVar) == null) { + aVar.o.requestRender(); + return; + } + throw null; + } +} diff --git a/app/src/main/java/b/i/a/c/g3/t.java b/app/src/main/java/b/i/a/c/g3/t.java new file mode 100644 index 0000000000..aab8901a92 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/t.java @@ -0,0 +1,4 @@ +package b.i.a.c.g3; +/* compiled from: VideoDecoderOutputBufferRenderer */ +public interface t { +} diff --git a/app/src/main/java/b/i/a/c/g3/u.java b/app/src/main/java/b/i/a/c/g3/u.java new file mode 100644 index 0000000000..2c32641188 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/u.java @@ -0,0 +1,9 @@ +package b.i.a.c.g3; + +import android.media.MediaFormat; +import androidx.annotation.Nullable; +import b.i.a.c.j1; +/* compiled from: VideoFrameMetadataListener */ +public interface u { + void e(long j, long j2, j1 j1Var, @Nullable MediaFormat mediaFormat); +} diff --git a/app/src/main/java/b/i/a/c/g3/v.java b/app/src/main/java/b/i/a/c/g3/v.java new file mode 100644 index 0000000000..a4acd3d724 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/v.java @@ -0,0 +1,309 @@ +package b.i.a.c.g3; + +import android.content.Context; +import android.hardware.display.DisplayManager; +import android.os.Handler; +import android.os.HandlerThread; +import android.os.Looper; +import android.os.Message; +import android.view.Choreographer; +import android.view.Surface; +import android.view.WindowManager; +import androidx.annotation.DoNotInline; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.a.c.g3.p; +import java.util.Objects; +/* compiled from: VideoFrameReleaseHelper */ +public final class v { + public final p a = new p(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final b f979b; + @Nullable + public final e c; + public boolean d; + @Nullable + public Surface e; + public float f; + public float g; + public float h; + public float i; + public int j; + public long k; + public long l; + public long m; + public long n; + public long o; + public long p; + public long q; + + /* compiled from: VideoFrameReleaseHelper */ + @RequiresApi(30) + public static final class a { + @DoNotInline + public static void a(Surface surface, float f) { + try { + surface.setFrameRate(f, f == 0.0f ? 0 : 1); + } catch (IllegalStateException e) { + q.b("VideoFrameReleaseHelper", "Failed to call Surface.setFrameRate", e); + } + } + } + + /* compiled from: VideoFrameReleaseHelper */ + public interface b { + + /* compiled from: VideoFrameReleaseHelper */ + public interface a { + } + + void a(a aVar); + + void unregister(); + } + + /* compiled from: VideoFrameReleaseHelper */ + public static final class c implements b { + public final WindowManager a; + + public c(WindowManager windowManager) { + this.a = windowManager; + } + + @Override // b.i.a.c.g3.v.b + public void a(b.a aVar) { + ((b) aVar).a(this.a.getDefaultDisplay()); + } + + @Override // b.i.a.c.g3.v.b + public void unregister() { + } + } + + /* compiled from: VideoFrameReleaseHelper */ + @RequiresApi(17) + public static final class d implements b, DisplayManager.DisplayListener { + public final DisplayManager a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public b.a f980b; + + public d(DisplayManager displayManager) { + this.a = displayManager; + } + + @Override // b.i.a.c.g3.v.b + public void a(b.a aVar) { + this.f980b = aVar; + this.a.registerDisplayListener(this, e0.j()); + ((b) aVar).a(this.a.getDisplay(0)); + } + + @Override // android.hardware.display.DisplayManager.DisplayListener + public void onDisplayAdded(int i) { + } + + @Override // android.hardware.display.DisplayManager.DisplayListener + public void onDisplayChanged(int i) { + b.a aVar = this.f980b; + if (aVar != null && i == 0) { + ((b) aVar).a(this.a.getDisplay(0)); + } + } + + @Override // android.hardware.display.DisplayManager.DisplayListener + public void onDisplayRemoved(int i) { + } + + @Override // b.i.a.c.g3.v.b + public void unregister() { + this.a.unregisterDisplayListener(this); + this.f980b = null; + } + } + + /* compiled from: VideoFrameReleaseHelper */ + public static final class e implements Choreographer.FrameCallback, Handler.Callback { + public static final e j = new e(); + public volatile long k = -9223372036854775807L; + public final Handler l; + public final HandlerThread m; + public Choreographer n; + public int o; + + public e() { + HandlerThread handlerThread = new HandlerThread("ExoPlayer:FrameReleaseChoreographer"); + this.m = handlerThread; + handlerThread.start(); + Looper looper = handlerThread.getLooper(); + int i = e0.a; + Handler handler = new Handler(looper, this); + this.l = handler; + handler.sendEmptyMessage(0); + } + + @Override // android.view.Choreographer.FrameCallback + public void doFrame(long j2) { + this.k = j2; + Choreographer choreographer = this.n; + Objects.requireNonNull(choreographer); + choreographer.postFrameCallbackDelayed(this, 500); + } + + @Override // android.os.Handler.Callback + public boolean handleMessage(Message message) { + int i = message.what; + if (i == 0) { + this.n = Choreographer.getInstance(); + return true; + } else if (i == 1) { + int i2 = this.o + 1; + this.o = i2; + if (i2 == 1) { + Choreographer choreographer = this.n; + Objects.requireNonNull(choreographer); + choreographer.postFrameCallback(this); + } + return true; + } else if (i != 2) { + return false; + } else { + int i3 = this.o - 1; + this.o = i3; + if (i3 == 0) { + Choreographer choreographer2 = this.n; + Objects.requireNonNull(choreographer2); + choreographer2.removeFrameCallback(this); + this.k = -9223372036854775807L; + } + return true; + } + } + } + + /* JADX WARNING: Removed duplicated region for block: B:15:0x003f */ + public v(@Nullable Context context) { + b bVar; + DisplayManager displayManager; + e eVar = null; + if (context != null) { + Context applicationContext = context.getApplicationContext(); + bVar = (e0.a < 17 || (displayManager = (DisplayManager) applicationContext.getSystemService("display")) == null) ? null : new d(displayManager); + if (bVar == null) { + WindowManager windowManager = (WindowManager) applicationContext.getSystemService("window"); + if (windowManager != null) { + bVar = new c(windowManager); + } + } + this.f979b = bVar; + this.c = bVar != null ? e.j : eVar; + this.k = -9223372036854775807L; + this.l = -9223372036854775807L; + this.f = -1.0f; + this.i = 1.0f; + this.j = 0; + } + bVar = null; + this.f979b = bVar; + this.c = bVar != null ? e.j : eVar; + this.k = -9223372036854775807L; + this.l = -9223372036854775807L; + this.f = -1.0f; + this.i = 1.0f; + this.j = 0; + } + + public final void a() { + Surface surface; + if (e0.a >= 30 && (surface = this.e) != null && this.j != Integer.MIN_VALUE && this.h != 0.0f) { + this.h = 0.0f; + a.a(surface, 0.0f); + } + } + + public final void b() { + this.m = 0; + this.p = -1; + this.n = -1; + } + + /* JADX WARNING: Code restructure failed: missing block: B:35:0x0083, code lost: + if (java.lang.Math.abs(r0 - r10.g) < (!r1 ? 0.02f : 1.0f)) goto L_0x0086; + */ + /* JADX WARNING: Code restructure failed: missing block: B:39:0x008f, code lost: + if (r10.a.e >= 30) goto L_0x0091; + */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x0073 */ + /* JADX WARNING: Removed duplicated region for block: B:33:0x0077 */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x0093 */ + /* JADX WARNING: Removed duplicated region for block: B:44:? A[RETURN, SYNTHETIC] */ + public final void c() { + float f; + boolean z2; + if (e0.a >= 30 && this.e != null) { + if (this.a.a()) { + p pVar = this.a; + if (pVar.a()) { + p.a aVar = pVar.a; + long j = aVar.e; + long j2 = 0; + if (j != 0) { + j2 = aVar.f / j; + } + f = (float) (1.0E9d / ((double) j2)); + } else { + f = -1.0f; + } + } else { + f = this.f; + } + float f2 = this.g; + if (f != f2) { + boolean z3 = true; + int i = (f > -1.0f ? 1 : (f == -1.0f ? 0 : -1)); + if (i == 0 || f2 == -1.0f) { + if (i == 0) { + } + if (!z3) { + this.g = f; + d(false); + return; + } + return; + } + if (this.a.a()) { + p pVar2 = this.a; + if ((pVar2.a() ? pVar2.a.f : -9223372036854775807L) >= 5000000000L) { + z2 = true; + } + } + z2 = false; + z3 = false; + if (!z3) { + } + } + } + } + + public final void d(boolean z2) { + Surface surface; + if (e0.a >= 30 && (surface = this.e) != null && this.j != Integer.MIN_VALUE) { + float f = 0.0f; + if (this.d) { + float f2 = this.g; + if (f2 != -1.0f) { + f = this.i * f2; + } + } + if (z2 || this.h != f) { + this.h = f; + a.a(surface, f); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/g3/w.java b/app/src/main/java/b/i/a/c/g3/w.java new file mode 100644 index 0000000000..0e868334df --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/w.java @@ -0,0 +1,9 @@ +package b.i.a.c.g3; + +import b.i.a.c.j1; +/* compiled from: VideoRendererEventListener */ +public final /* synthetic */ class w { + @Deprecated + public static void a(x xVar, j1 j1Var) { + } +} diff --git a/app/src/main/java/b/i/a/c/g3/x.java b/app/src/main/java/b/i/a/c/g3/x.java new file mode 100644 index 0000000000..1ca0c2d5fd --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/x.java @@ -0,0 +1,54 @@ +package b.i.a.c.g3; + +import android.os.Handler; +import androidx.annotation.Nullable; +import b.i.a.c.j1; +import b.i.a.c.v2.e; +import b.i.a.c.v2.g; +import java.util.Objects; +/* compiled from: VideoRendererEventListener */ +public interface x { + + /* compiled from: VideoRendererEventListener */ + public static final class a { + @Nullable + public final Handler a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final x f981b; + + public a(@Nullable Handler handler, @Nullable x xVar) { + if (xVar != null) { + Objects.requireNonNull(handler); + } else { + handler = null; + } + this.a = handler; + this.f981b = xVar; + } + } + + void F(int i, long j); + + void K(Object obj, long j); + + @Deprecated + void O(j1 j1Var); + + void P(e eVar); + + void Q(j1 j1Var, @Nullable g gVar); + + void V(Exception exc); + + void Z(e eVar); + + void f(y yVar); + + void h0(long j, int i); + + void l(String str); + + void n(String str, long j, long j2); +} diff --git a/app/src/main/java/b/i/a/c/g3/y.java b/app/src/main/java/b/i/a/c/g3/y.java new file mode 100644 index 0000000000..b206c4cd6a --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/y.java @@ -0,0 +1,48 @@ +package b.i.a.c.g3; + +import androidx.annotation.FloatRange; +import androidx.annotation.IntRange; +import androidx.annotation.Nullable; +import b.i.a.c.w0; +import com.google.android.material.shadow.ShadowDrawableWrapper; +/* compiled from: VideoSize */ +public final class y implements w0 { + public static final y j = new y(0, 0); + @IntRange(from = 0) + public final int k; + @IntRange(from = 0) + public final int l; + @IntRange(from = 0, to = 359) + public final int m; + @FloatRange(from = ShadowDrawableWrapper.COS_45, fromInclusive = false) + public final float n; + + public y(@IntRange(from = 0) int i, @IntRange(from = 0) int i2) { + this.k = i; + this.l = i2; + this.m = 0; + this.n = 1.0f; + } + + public y(@IntRange(from = 0) int i, @IntRange(from = 0) int i2, @IntRange(from = 0, to = 359) int i3, @FloatRange(from = 0.0d, fromInclusive = false) float f) { + this.k = i; + this.l = i2; + this.m = i3; + this.n = f; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof y)) { + return false; + } + y yVar = (y) obj; + return this.k == yVar.k && this.l == yVar.l && this.m == yVar.m && this.n == yVar.n; + } + + public int hashCode() { + return Float.floatToRawIntBits(this.n) + ((((((217 + this.k) * 31) + this.l) * 31) + this.m) * 31); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/a.java b/app/src/main/java/b/i/a/c/g3/z/a.java new file mode 100644 index 0000000000..8c94c3e50a --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/a.java @@ -0,0 +1,16 @@ +package b.i.a.c.g3.z; + +import android.graphics.SurfaceTexture; +/* compiled from: lambda */ +public final /* synthetic */ class a implements SurfaceTexture.OnFrameAvailableListener { + public final /* synthetic */ j j; + + public /* synthetic */ a(j jVar) { + this.j = jVar; + } + + @Override // android.graphics.SurfaceTexture.OnFrameAvailableListener + public final void onFrameAvailable(SurfaceTexture surfaceTexture) { + this.j.j.set(true); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/b.java b/app/src/main/java/b/i/a/c/g3/z/b.java new file mode 100644 index 0000000000..f3409f8c38 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/b.java @@ -0,0 +1,37 @@ +package b.i.a.c.g3.z; + +import android.graphics.SurfaceTexture; +import android.view.Surface; +import b.i.a.c.g3.z.k; +import java.util.Iterator; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Runnable { + public final /* synthetic */ k j; + public final /* synthetic */ SurfaceTexture k; + + public /* synthetic */ b(k kVar, SurfaceTexture surfaceTexture) { + this.j = kVar; + this.k = surfaceTexture; + } + + @Override // java.lang.Runnable + public final void run() { + k kVar = this.j; + SurfaceTexture surfaceTexture = this.k; + SurfaceTexture surfaceTexture2 = kVar.q; + Surface surface = kVar.r; + Surface surface2 = new Surface(surfaceTexture); + kVar.q = surfaceTexture; + kVar.r = surface2; + Iterator it = kVar.j.iterator(); + while (it.hasNext()) { + it.next().u(surface2); + } + if (surfaceTexture2 != null) { + surfaceTexture2.release(); + } + if (surface != null) { + surface.release(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/c.java b/app/src/main/java/b/i/a/c/g3/z/c.java new file mode 100644 index 0000000000..bd00b6b735 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/c.java @@ -0,0 +1,35 @@ +package b.i.a.c.g3.z; + +import android.graphics.SurfaceTexture; +import android.view.Surface; +import b.i.a.c.g3.z.k; +import java.util.Iterator; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Runnable { + public final /* synthetic */ k j; + + public /* synthetic */ c(k kVar) { + this.j = kVar; + } + + @Override // java.lang.Runnable + public final void run() { + k kVar = this.j; + Surface surface = kVar.r; + if (surface != null) { + Iterator it = kVar.j.iterator(); + while (it.hasNext()) { + it.next().q(surface); + } + } + SurfaceTexture surfaceTexture = kVar.q; + if (surfaceTexture != null) { + surfaceTexture.release(); + } + if (surface != null) { + surface.release(); + } + kVar.q = null; + kVar.r = null; + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/d.java b/app/src/main/java/b/i/a/c/g3/z/d.java new file mode 100644 index 0000000000..31102652f5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/d.java @@ -0,0 +1,7 @@ +package b.i.a.c.g3.z; +/* compiled from: CameraMotionListener */ +public interface d { + void a(long j, float[] fArr); + + void c(); +} diff --git a/app/src/main/java/b/i/a/c/g3/z/e.java b/app/src/main/java/b/i/a/c/g3/z/e.java new file mode 100644 index 0000000000..e194278507 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/e.java @@ -0,0 +1,109 @@ +package b.i.a.c.g3.z; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.v0; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import java.nio.ByteBuffer; +/* compiled from: CameraMotionRenderer */ +public final class e extends v0 { + public final DecoderInputBuffer u = new DecoderInputBuffer(1); + public final x v = new x(); + public long w; + @Nullable + + /* renamed from: x reason: collision with root package name */ + public d f982x; + + /* renamed from: y reason: collision with root package name */ + public long f983y; + + public e() { + super(6); + } + + @Override // b.i.a.c.v0 + public void B() { + d dVar = this.f982x; + if (dVar != null) { + dVar.c(); + } + } + + @Override // b.i.a.c.v0 + public void D(long j, boolean z2) { + this.f983y = Long.MIN_VALUE; + d dVar = this.f982x; + if (dVar != null) { + dVar.c(); + } + } + + @Override // b.i.a.c.v0 + public void H(j1[] j1VarArr, long j, long j2) { + this.w = j2; + } + + @Override // b.i.a.c.g2 + public int a(j1 j1Var) { + return "application/x-camera-motion".equals(j1Var.w) ? 4 : 0; + } + + @Override // b.i.a.c.f2 + public boolean b() { + return j(); + } + + @Override // b.i.a.c.f2 + public boolean d() { + return true; + } + + @Override // b.i.a.c.f2, b.i.a.c.g2 + public String getName() { + return "CameraMotionRenderer"; + } + + @Override // b.i.a.c.f2 + public void q(long j, long j2) { + float[] fArr; + while (!j() && this.f983y < 100000 + j) { + this.u.p(); + if (I(A(), this.u, 0) == -4 && !this.u.n()) { + DecoderInputBuffer decoderInputBuffer = this.u; + this.f983y = decoderInputBuffer.n; + if (this.f982x != null && !decoderInputBuffer.m()) { + this.u.s(); + ByteBuffer byteBuffer = this.u.l; + int i = e0.a; + if (byteBuffer.remaining() != 16) { + fArr = null; + } else { + this.v.C(byteBuffer.array(), byteBuffer.limit()); + this.v.E(byteBuffer.arrayOffset() + 4); + float[] fArr2 = new float[3]; + for (int i2 = 0; i2 < 3; i2++) { + fArr2[i2] = Float.intBitsToFloat(this.v.h()); + } + fArr = fArr2; + } + if (fArr != null) { + this.f982x.a(this.f983y - this.w, fArr); + } + } + } else { + return; + } + } + } + + @Override // b.i.a.c.v0, b.i.a.c.b2.b + public void r(int i, @Nullable Object obj) throws ExoPlaybackException { + if (i == 8) { + this.f982x = (d) obj; + } + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/f.java b/app/src/main/java/b/i/a/c/g3/z/f.java new file mode 100644 index 0000000000..16b4f9af32 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/f.java @@ -0,0 +1,22 @@ +package b.i.a.c.g3.z; + +import android.opengl.Matrix; +import b.i.a.c.f3.c0; +/* compiled from: FrameRotationQueue */ +public final class f { + public final float[] a = new float[16]; + + /* renamed from: b reason: collision with root package name */ + public final float[] f984b = new float[16]; + public final c0 c = new c0<>(); + public boolean d; + + public static void a(float[] fArr, float[] fArr2) { + Matrix.setIdentityM(fArr, 0); + float sqrt = (float) Math.sqrt((double) ((fArr2[8] * fArr2[8]) + (fArr2[10] * fArr2[10]))); + fArr[0] = fArr2[10] / sqrt; + fArr[2] = fArr2[8] / sqrt; + fArr[8] = (-fArr2[8]) / sqrt; + fArr[10] = fArr2[10] / sqrt; + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/g.java b/app/src/main/java/b/i/a/c/g3/z/g.java new file mode 100644 index 0000000000..bb900a41ff --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/g.java @@ -0,0 +1,77 @@ +package b.i.a.c.g3.z; + +import android.hardware.Sensor; +import android.hardware.SensorEvent; +import android.hardware.SensorEventListener; +import android.hardware.SensorManager; +import android.opengl.Matrix; +import android.view.Display; +import androidx.annotation.BinderThread; +/* compiled from: OrientationListener */ +public final class g implements SensorEventListener { + public final float[] a = new float[16]; + + /* renamed from: b reason: collision with root package name */ + public final float[] f985b = new float[16]; + public final float[] c = new float[16]; + public final float[] d = new float[3]; + public final Display e; + public final a[] f; + public boolean g; + + /* compiled from: OrientationListener */ + public interface a { + void a(float[] fArr, float f); + } + + public g(Display display, a... aVarArr) { + this.e = display; + this.f = aVarArr; + } + + @Override // android.hardware.SensorEventListener + public void onAccuracyChanged(Sensor sensor, int i) { + } + + @Override // android.hardware.SensorEventListener + @BinderThread + public void onSensorChanged(SensorEvent sensorEvent) { + SensorManager.getRotationMatrixFromVector(this.a, sensorEvent.values); + float[] fArr = this.a; + int rotation = this.e.getRotation(); + if (rotation != 0) { + int i = 129; + int i2 = 130; + if (rotation == 1) { + i = 2; + i2 = 129; + } else if (rotation != 2) { + if (rotation == 3) { + i = 130; + i2 = 1; + } else { + throw new IllegalStateException(); + } + } + float[] fArr2 = this.f985b; + System.arraycopy(fArr, 0, fArr2, 0, fArr2.length); + SensorManager.remapCoordinateSystem(this.f985b, i, i2, fArr); + } + SensorManager.remapCoordinateSystem(this.a, 1, 131, this.f985b); + SensorManager.getOrientation(this.f985b, this.d); + float f = this.d[2]; + Matrix.rotateM(this.a, 0, 90.0f, 1.0f, 0.0f, 0.0f); + float[] fArr3 = this.a; + if (!this.g) { + f.a(this.c, fArr3); + this.g = true; + } + float[] fArr4 = this.f985b; + System.arraycopy(fArr3, 0, fArr4, 0, fArr4.length); + Matrix.multiplyMM(fArr3, 0, this.f985b, 0, this.c, 0); + float[] fArr5 = this.a; + for (a aVar : this.f) { + aVar.a(fArr5, f); + } + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/h.java b/app/src/main/java/b/i/a/c/g3/z/h.java new file mode 100644 index 0000000000..08054a1d1a --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/h.java @@ -0,0 +1,53 @@ +package b.i.a.c.g3.z; + +import b.c.a.a0.d; +/* compiled from: Projection */ +public final class h { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final a f986b; + public final int c; + public final boolean d; + + /* compiled from: Projection */ + public static final class a { + public final b[] a; + + public a(b... bVarArr) { + this.a = bVarArr; + } + } + + /* compiled from: Projection */ + public static final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f987b; + public final float[] c; + public final float[] d; + + public b(int i, float[] fArr, float[] fArr2, int i2) { + this.a = i; + d.j(((long) fArr.length) * 2 == ((long) fArr2.length) * 3); + this.c = fArr; + this.d = fArr2; + this.f987b = i2; + } + } + + public h(a aVar, int i) { + this.a = aVar; + this.f986b = aVar; + this.c = i; + this.d = aVar == aVar; + } + + public h(a aVar, a aVar2, int i) { + this.a = aVar; + this.f986b = aVar2; + this.c = i; + this.d = aVar == aVar2; + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/i.java b/app/src/main/java/b/i/a/c/g3/z/i.java new file mode 100644 index 0000000000..bcaf8bab33 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/i.java @@ -0,0 +1,67 @@ +package b.i.a.c.g3.z; + +import androidx.annotation.Nullable; +import b.i.a.c.g3.z.h; +import com.google.android.exoplayer2.util.GlUtil; +import java.nio.FloatBuffer; +/* compiled from: ProjectionRenderer */ +public final class i { + public static final String[] a = {"uniform mat4 uMvpMatrix;", "uniform mat3 uTexMatrix;", "attribute vec4 aPosition;", "attribute vec2 aTexCoords;", "varying vec2 vTexCoords;", "void main() {", " gl_Position = uMvpMatrix * aPosition;", " vTexCoords = (uTexMatrix * vec3(aTexCoords, 1)).xy;", "}"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f988b = {"#extension GL_OES_EGL_image_external : require", "precision mediump float;", "uniform samplerExternalOES uTexture;", "varying vec2 vTexCoords;", "void main() {", " gl_FragColor = texture2D(uTexture, vTexCoords);", "}"}; + public static final float[] c = {1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 1.0f, 1.0f}; + public static final float[] d = {1.0f, 0.0f, 0.0f, 0.0f, -0.5f, 0.0f, 0.0f, 0.5f, 1.0f}; + public static final float[] e = {1.0f, 0.0f, 0.0f, 0.0f, -0.5f, 0.0f, 0.0f, 1.0f, 1.0f}; + public static final float[] f = {0.5f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 1.0f, 1.0f}; + public static final float[] g = {0.5f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.5f, 1.0f, 1.0f}; + public int h; + @Nullable + public a i; + @Nullable + public a j; + public GlUtil.a k; + public int l; + public int m; + public int n; + public int o; + public int p; + + /* compiled from: ProjectionRenderer */ + public static class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final FloatBuffer f989b; + public final FloatBuffer c; + public final int d; + + public a(h.b bVar) { + float[] fArr = bVar.c; + this.a = fArr.length / 3; + this.f989b = GlUtil.b(fArr); + this.c = GlUtil.b(bVar.d); + int i = bVar.f987b; + if (i == 1) { + this.d = 5; + } else if (i != 2) { + this.d = 4; + } else { + this.d = 6; + } + } + } + + public static boolean a(h hVar) { + h.a aVar = hVar.a; + h.a aVar2 = hVar.f986b; + h.b[] bVarArr = aVar.a; + if (bVarArr.length == 1 && bVarArr[0].a == 0) { + h.b[] bVarArr2 = aVar2.a; + if (bVarArr2.length == 1 && bVarArr2[0].a == 0) { + return true; + } + } + return false; + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/j.java b/app/src/main/java/b/i/a/c/g3/z/j.java new file mode 100644 index 0000000000..8839bfc3b8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/j.java @@ -0,0 +1,270 @@ +package b.i.a.c.g3.z; + +import android.graphics.SurfaceTexture; +import android.media.MediaFormat; +import android.opengl.GLES20; +import androidx.annotation.Nullable; +import androidx.work.Data; +import b.c.a.a0.d; +import b.i.a.c.f3.c0; +import b.i.a.c.f3.x; +import b.i.a.c.g3.u; +import b.i.a.c.g3.z.h; +import b.i.a.c.j1; +import com.google.android.exoplayer2.util.GlUtil; +import java.nio.IntBuffer; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: SceneRenderer */ +public final class j implements u, d { + public final AtomicBoolean j = new AtomicBoolean(); + public final AtomicBoolean k = new AtomicBoolean(true); + public final i l = new i(); + public final f m = new f(); + public final c0 n = new c0<>(); + public final c0 o = new c0<>(); + public final float[] p = new float[16]; + public final float[] q = new float[16]; + public int r; + + /* renamed from: s reason: collision with root package name */ + public SurfaceTexture f990s; + public volatile int t = 0; + public int u = -1; + @Nullable + public byte[] v; + + @Override // b.i.a.c.g3.z.d + public void a(long j, float[] fArr) { + this.m.c.a(j, fArr); + } + + public SurfaceTexture b() { + GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); + GlUtil.a(); + i iVar = this.l; + Objects.requireNonNull(iVar); + GlUtil.a aVar = new GlUtil.a(i.a, i.f988b); + iVar.k = aVar; + iVar.l = GLES20.glGetUniformLocation(aVar.a, "uMvpMatrix"); + iVar.m = GLES20.glGetUniformLocation(iVar.k.a, "uTexMatrix"); + iVar.n = GLES20.glGetAttribLocation(iVar.k.a, "aPosition"); + iVar.o = GLES20.glGetAttribLocation(iVar.k.a, "aTexCoords"); + iVar.p = GLES20.glGetUniformLocation(iVar.k.a, "uTexture"); + GlUtil.a(); + int[] iArr = new int[1]; + GLES20.glGenTextures(1, IntBuffer.wrap(iArr)); + GLES20.glBindTexture(36197, iArr[0]); + GLES20.glTexParameteri(36197, 10241, 9729); + GLES20.glTexParameteri(36197, Data.MAX_DATA_BYTES, 9729); + GLES20.glTexParameteri(36197, 10242, 33071); + GLES20.glTexParameteri(36197, 10243, 33071); + GlUtil.a(); + this.r = iArr[0]; + SurfaceTexture surfaceTexture = new SurfaceTexture(this.r); + this.f990s = surfaceTexture; + surfaceTexture.setOnFrameAvailableListener(new a(this)); + return this.f990s; + } + + @Override // b.i.a.c.g3.z.d + public void c() { + this.n.b(); + f fVar = this.m; + fVar.c.b(); + fVar.d = false; + this.k.set(true); + } + + /* JADX WARNING: Removed duplicated region for block: B:33:0x008a */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x00f4 */ + @Override // b.i.a.c.g3.u + public void e(long j, long j2, j1 j1Var, @Nullable MediaFormat mediaFormat) { + h hVar; + int i; + int i2; + float f; + float f2; + int i3; + int i4; + ArrayList arrayList; + int f3; + this.n.a(j2, Long.valueOf(j)); + byte[] bArr = j1Var.G; + int i5 = j1Var.H; + byte[] bArr2 = this.v; + int i6 = this.u; + this.v = bArr; + if (i5 == -1) { + i5 = this.t; + } + this.u = i5; + if (i6 != i5 || !Arrays.equals(bArr2, this.v)) { + byte[] bArr3 = this.v; + hVar = null; + if (bArr3 != null) { + int i7 = this.u; + x xVar = new x(bArr3); + try { + xVar.F(4); + int f4 = xVar.f(); + xVar.E(0); + if (f4 == 1886547818) { + xVar.F(8); + int i8 = xVar.f970b; + int i9 = xVar.c; + while (true) { + if (i8 >= i9) { + break; + } + f3 = xVar.f() + i8; + if (f3 <= i8) { + break; + } else if (f3 > i9) { + break; + } else { + int f5 = xVar.f(); + if (f5 == 2037673328) { + break; + } else if (f5 == 1836279920) { + break; + } else { + xVar.E(f3); + i8 = f3; + } + } + } + xVar.D(f3); + arrayList = d.r1(xVar); + } else { + arrayList = d.r1(xVar); + } + } catch (ArrayIndexOutOfBoundsException unused) { + } + if (arrayList != null) { + int size = arrayList.size(); + if (size == 1) { + hVar = new h(arrayList.get(0), i7); + } else if (size == 2) { + hVar = new h(arrayList.get(0), arrayList.get(1), i7); + } + } + } + if (hVar == null || !i.a(hVar)) { + int i10 = this.u; + d.j(true); + d.j(true); + d.j(true); + d.j(true); + d.j(true); + float radians = (float) Math.toRadians((double) 180.0f); + float radians2 = (float) Math.toRadians((double) 360.0f); + float f6 = radians / ((float) 36); + float f7 = radians2 / ((float) 72); + float[] fArr = new float[15984]; + float[] fArr2 = new float[10656]; + i2 = 0; + int i11 = 0; + int i12 = 0; + for (i = 36; i2 < i; i = 36) { + float f8 = radians / 2.0f; + float f9 = (((float) i2) * f6) - f8; + int i13 = i2 + 1; + float f10 = (((float) i13) * f6) - f8; + int i14 = 0; + while (i14 < 73) { + int i15 = 0; + for (int i16 = 2; i15 < i16; i16 = 2) { + if (i15 == 0) { + f = f10; + f2 = f9; + } else { + f2 = f10; + f = f2; + } + float f11 = ((float) i14) * f7; + int i17 = i11 + 1; + double d = (double) 50.0f; + double d2 = (double) ((f11 + 3.1415927f) - (radians2 / 2.0f)); + double d3 = (double) f2; + fArr[i11] = -((float) (Math.cos(d3) * Math.sin(d2) * d)); + int i18 = i17 + 1; + fArr[i17] = (float) (Math.sin(d3) * d); + int i19 = i18 + 1; + fArr[i18] = (float) (Math.cos(d3) * Math.cos(d2) * d); + int i20 = i12 + 1; + fArr2[i12] = f11 / radians2; + int i21 = i20 + 1; + fArr2[i20] = (((float) (i2 + i15)) * f6) / radians; + if (i14 == 0 && i15 == 0) { + i3 = i15; + i4 = i14; + } else { + i4 = i14; + i3 = i15; + if (!(i4 == 72 && i3 == 1)) { + i12 = i21; + i11 = i19; + i15 = i3 + 1; + i14 = i4; + f10 = f; + f7 = f7; + f9 = f9; + radians = radians; + f6 = f6; + i10 = i10; + } + } + System.arraycopy(fArr, i19 - 3, fArr, i19, 3); + i19 += 3; + System.arraycopy(fArr2, i21 - 2, fArr2, i21, 2); + i21 += 2; + i12 = i21; + i11 = i19; + i15 = i3 + 1; + i14 = i4; + f10 = f; + f7 = f7; + f9 = f9; + radians = radians; + f6 = f6; + i10 = i10; + } + i14++; + i13 = i13; + f10 = f10; + i10 = i10; + } + i2 = i13; + } + hVar = new h(new h.a(new h.b(0, fArr, fArr2, 1)), i10); + } + this.o.a(j2, hVar); + } + return; + arrayList = null; + if (arrayList != null) { + } + int i10 = this.u; + d.j(true); + d.j(true); + d.j(true); + d.j(true); + d.j(true); + float radians = (float) Math.toRadians((double) 180.0f); + float radians2 = (float) Math.toRadians((double) 360.0f); + float f6 = radians / ((float) 36); + float f7 = radians2 / ((float) 72); + float[] fArr = new float[15984]; + float[] fArr2 = new float[10656]; + i2 = 0; + int i11 = 0; + int i12 = 0; + while (i2 < i) { + } + hVar = new h(new h.a(new h.b(0, fArr, fArr2, 1)), i10); + this.o.a(j2, hVar); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/k.java b/app/src/main/java/b/i/a/c/g3/z/k.java new file mode 100644 index 0000000000..b5ebbc5437 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/k.java @@ -0,0 +1,297 @@ +package b.i.a.c.g3.z; + +import android.content.Context; +import android.graphics.SurfaceTexture; +import android.hardware.Sensor; +import android.hardware.SensorManager; +import android.opengl.GLES20; +import android.opengl.GLSurfaceView; +import android.opengl.Matrix; +import android.os.Handler; +import android.os.Looper; +import android.view.Surface; +import android.view.WindowManager; +import androidx.annotation.AnyThread; +import androidx.annotation.BinderThread; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.i.a.c.f3.c0; +import b.i.a.c.f3.e0; +import b.i.a.c.g3.u; +import b.i.a.c.g3.z.g; +import b.i.a.c.g3.z.i; +import b.i.a.c.g3.z.l; +import com.google.android.exoplayer2.util.GlUtil; +import java.nio.Buffer; +import java.util.Objects; +import java.util.concurrent.CopyOnWriteArrayList; +import javax.microedition.khronos.egl.EGLConfig; +import javax.microedition.khronos.opengles.GL10; +/* compiled from: SphericalGLSurfaceView */ +public final class k extends GLSurfaceView { + public final CopyOnWriteArrayList j = new CopyOnWriteArrayList<>(); + public final SensorManager k; + @Nullable + public final Sensor l; + public final g m; + public final Handler n = new Handler(Looper.getMainLooper()); + public final l o; + public final j p; + @Nullable + public SurfaceTexture q; + @Nullable + public Surface r; + + /* renamed from: s reason: collision with root package name */ + public boolean f991s; + public boolean t; + public boolean u; + + /* compiled from: SphericalGLSurfaceView */ + @VisibleForTesting + public final class a implements GLSurfaceView.Renderer, l.a, g.a { + public final j j; + public final float[] k = new float[16]; + public final float[] l = new float[16]; + public final float[] m; + public final float[] n; + public final float[] o; + public float p; + public float q; + public final float[] r; + + /* renamed from: s reason: collision with root package name */ + public final float[] f992s; + + public a(j jVar) { + float[] fArr = new float[16]; + this.m = fArr; + float[] fArr2 = new float[16]; + this.n = fArr2; + float[] fArr3 = new float[16]; + this.o = fArr3; + this.r = new float[16]; + this.f992s = new float[16]; + this.j = jVar; + Matrix.setIdentityM(fArr, 0); + Matrix.setIdentityM(fArr2, 0); + Matrix.setIdentityM(fArr3, 0); + this.q = 3.1415927f; + } + + @Override // b.i.a.c.g3.z.g.a + @BinderThread + public synchronized void a(float[] fArr, float f) { + float[] fArr2 = this.m; + System.arraycopy(fArr, 0, fArr2, 0, fArr2.length); + this.q = -f; + b(); + } + + @AnyThread + public final void b() { + Matrix.setRotateM(this.n, 0, -this.p, (float) Math.cos((double) this.q), (float) Math.sin((double) this.q), 0.0f); + } + + @Override // android.opengl.GLSurfaceView.Renderer + public void onDrawFrame(GL10 gl10) { + Long d; + float[] fArr; + synchronized (this) { + Matrix.multiplyMM(this.f992s, 0, this.m, 0, this.o, 0); + Matrix.multiplyMM(this.r, 0, this.n, 0, this.f992s, 0); + } + Matrix.multiplyMM(this.l, 0, this.k, 0, this.r, 0); + j jVar = this.j; + float[] fArr2 = this.l; + Objects.requireNonNull(jVar); + GLES20.glClear(16384); + GlUtil.a(); + if (jVar.j.compareAndSet(true, false)) { + SurfaceTexture surfaceTexture = jVar.f990s; + Objects.requireNonNull(surfaceTexture); + surfaceTexture.updateTexImage(); + GlUtil.a(); + if (jVar.k.compareAndSet(true, false)) { + Matrix.setIdentityM(jVar.p, 0); + } + long timestamp = jVar.f990s.getTimestamp(); + c0 c0Var = jVar.n; + synchronized (c0Var) { + d = c0Var.d(timestamp, false); + } + Long l = d; + if (l != null) { + f fVar = jVar.m; + float[] fArr3 = jVar.p; + float[] e = fVar.c.e(l.longValue()); + if (e != null) { + float[] fArr4 = fVar.f984b; + float f = e[0]; + float f2 = -e[1]; + float f3 = -e[2]; + float length = Matrix.length(f, f2, f3); + if (length != 0.0f) { + fArr = fArr3; + Matrix.setRotateM(fArr4, 0, (float) Math.toDegrees((double) length), f / length, f2 / length, f3 / length); + } else { + fArr = fArr3; + Matrix.setIdentityM(fArr4, 0); + } + if (!fVar.d) { + f.a(fVar.a, fVar.f984b); + fVar.d = true; + } + Matrix.multiplyMM(fArr, 0, fVar.a, 0, fVar.f984b, 0); + } + } + h e2 = jVar.o.e(timestamp); + if (e2 != null) { + i iVar = jVar.l; + Objects.requireNonNull(iVar); + if (i.a(e2)) { + iVar.h = e2.c; + i.a aVar = new i.a(e2.a.a[0]); + iVar.i = aVar; + if (!e2.d) { + aVar = new i.a(e2.f986b.a[0]); + } + iVar.j = aVar; + } + } + } + Matrix.multiplyMM(jVar.q, 0, fArr2, 0, jVar.p, 0); + i iVar2 = jVar.l; + int i = jVar.r; + float[] fArr5 = jVar.q; + i.a aVar2 = iVar2.i; + if (aVar2 != null) { + GlUtil.a aVar3 = iVar2.k; + Objects.requireNonNull(aVar3); + aVar3.c(); + GlUtil.a(); + GLES20.glEnableVertexAttribArray(iVar2.n); + GLES20.glEnableVertexAttribArray(iVar2.o); + GlUtil.a(); + int i2 = iVar2.h; + GLES20.glUniformMatrix3fv(iVar2.m, 1, false, i2 == 1 ? i.d : i2 == 2 ? i.f : i.c, 0); + GLES20.glUniformMatrix4fv(iVar2.l, 1, false, fArr5, 0); + GLES20.glActiveTexture(33984); + GLES20.glBindTexture(36197, i); + GLES20.glUniform1i(iVar2.p, 0); + GlUtil.a(); + GLES20.glVertexAttribPointer(iVar2.n, 3, 5126, false, 12, (Buffer) aVar2.f989b); + GlUtil.a(); + GLES20.glVertexAttribPointer(iVar2.o, 2, 5126, false, 8, (Buffer) aVar2.c); + GlUtil.a(); + GLES20.glDrawArrays(aVar2.d, 0, aVar2.a); + GlUtil.a(); + GLES20.glDisableVertexAttribArray(iVar2.n); + GLES20.glDisableVertexAttribArray(iVar2.o); + } + } + + @Override // android.opengl.GLSurfaceView.Renderer + public void onSurfaceChanged(GL10 gl10, int i, int i2) { + boolean z2 = false; + GLES20.glViewport(0, 0, i, i2); + float f = ((float) i) / ((float) i2); + if (f > 1.0f) { + z2 = true; + } + Matrix.perspectiveM(this.k, 0, z2 ? (float) (Math.toDegrees(Math.atan(Math.tan(Math.toRadians(45.0d)) / ((double) f))) * 2.0d) : 90.0f, f, 0.1f, 100.0f); + } + + @Override // android.opengl.GLSurfaceView.Renderer + public synchronized void onSurfaceCreated(GL10 gl10, EGLConfig eGLConfig) { + k kVar = k.this; + kVar.n.post(new b(kVar, this.j.b())); + } + } + + /* compiled from: SphericalGLSurfaceView */ + public interface b { + void q(Surface surface); + + void u(Surface surface); + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(Context context) { + super(context, null); + Sensor sensor = null; + Object systemService = context.getSystemService("sensor"); + Objects.requireNonNull(systemService); + SensorManager sensorManager = (SensorManager) systemService; + this.k = sensorManager; + sensor = e0.a >= 18 ? sensorManager.getDefaultSensor(15) : sensor; + this.l = sensor == null ? sensorManager.getDefaultSensor(11) : sensor; + j jVar = new j(); + this.p = jVar; + a aVar = new a(jVar); + l lVar = new l(context, aVar, 25.0f); + this.o = lVar; + WindowManager windowManager = (WindowManager) context.getSystemService("window"); + Objects.requireNonNull(windowManager); + this.m = new g(windowManager.getDefaultDisplay(), lVar, aVar); + this.f991s = true; + setEGLContextClientVersion(2); + setRenderer(aVar); + setOnTouchListener(lVar); + } + + public final void a() { + boolean z2 = this.f991s && this.t; + Sensor sensor = this.l; + if (sensor != null && z2 != this.u) { + if (z2) { + this.k.registerListener(this.m, sensor, 0); + } else { + this.k.unregisterListener(this.m); + } + this.u = z2; + } + } + + public d getCameraMotionListener() { + return this.p; + } + + public u getVideoFrameMetadataListener() { + return this.p; + } + + @Nullable + public Surface getVideoSurface() { + return this.r; + } + + @Override // android.opengl.GLSurfaceView, android.view.SurfaceView, android.view.View + public void onDetachedFromWindow() { + super.onDetachedFromWindow(); + this.n.post(new c(this)); + } + + @Override // android.opengl.GLSurfaceView + public void onPause() { + this.t = false; + a(); + super.onPause(); + } + + @Override // android.opengl.GLSurfaceView + public void onResume() { + super.onResume(); + this.t = true; + a(); + } + + public void setDefaultStereoMode(int i) { + this.p.t = i; + } + + public void setUseSensorRotation(boolean z2) { + this.f991s = z2; + a(); + } +} diff --git a/app/src/main/java/b/i/a/c/g3/z/l.java b/app/src/main/java/b/i/a/c/g3/z/l.java new file mode 100644 index 0000000000..5a7f7c1631 --- /dev/null +++ b/app/src/main/java/b/i/a/c/g3/z/l.java @@ -0,0 +1,79 @@ +package b.i.a.c.g3.z; + +import android.content.Context; +import android.graphics.PointF; +import android.opengl.Matrix; +import android.view.GestureDetector; +import android.view.MotionEvent; +import android.view.View; +import androidx.annotation.BinderThread; +import b.i.a.c.g3.z.g; +import b.i.a.c.g3.z.k; +/* compiled from: TouchTracker */ +public final class l extends GestureDetector.SimpleOnGestureListener implements View.OnTouchListener, g.a { + public final PointF j = new PointF(); + public final PointF k = new PointF(); + public final a l; + public final float m; + public final GestureDetector n; + public volatile float o; + + /* compiled from: TouchTracker */ + public interface a { + } + + public l(Context context, a aVar, float f) { + this.l = aVar; + this.m = f; + this.n = new GestureDetector(context, this); + this.o = 3.1415927f; + } + + @Override // b.i.a.c.g3.z.g.a + @BinderThread + public void a(float[] fArr, float f) { + this.o = -f; + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onDown(MotionEvent motionEvent) { + this.j.set(motionEvent.getX(), motionEvent.getY()); + return true; + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) { + float x2 = (motionEvent2.getX() - this.j.x) / this.m; + float y2 = motionEvent2.getY(); + PointF pointF = this.j; + float f3 = (y2 - pointF.y) / this.m; + pointF.set(motionEvent2.getX(), motionEvent2.getY()); + double d = (double) this.o; + float cos = (float) Math.cos(d); + float sin = (float) Math.sin(d); + PointF pointF2 = this.k; + pointF2.x -= (cos * x2) - (sin * f3); + float f4 = (cos * f3) + (sin * x2) + pointF2.y; + pointF2.y = f4; + pointF2.y = Math.max(-45.0f, Math.min(45.0f, f4)); + a aVar = this.l; + PointF pointF3 = this.k; + k.a aVar2 = (k.a) aVar; + synchronized (aVar2) { + aVar2.p = pointF3.y; + aVar2.b(); + Matrix.setRotateM(aVar2.o, 0, -pointF3.x, 0.0f, 1.0f, 0.0f); + } + return true; + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onSingleTapUp(MotionEvent motionEvent) { + return k.this.performClick(); + } + + @Override // android.view.View.OnTouchListener + public boolean onTouch(View view, MotionEvent motionEvent) { + return this.n.onTouchEvent(motionEvent); + } +} diff --git a/app/src/main/java/b/i/a/c/h.java b/app/src/main/java/b/i/a/c/h.java new file mode 100644 index 0000000000..4897c51e95 --- /dev/null +++ b/app/src/main/java/b/i/a/c/h.java @@ -0,0 +1,19 @@ +package b.i.a.c; + +import android.content.Context; +import b.i.a.c.a3.p; +import b.i.a.c.x2.f; +import b.i.b.a.l; +/* compiled from: lambda */ +public final /* synthetic */ class h implements l { + public final /* synthetic */ Context j; + + public /* synthetic */ h(Context context) { + this.j = context; + } + + @Override // b.i.b.a.l + public final Object get() { + return new p(this.j, new f()); + } +} diff --git a/app/src/main/java/b/i/a/c/h0.java b/app/src/main/java/b/i/a/c/h0.java new file mode 100644 index 0000000000..f6ef96230d --- /dev/null +++ b/app/src/main/java/b/i/a/c/h0.java @@ -0,0 +1,78 @@ +package b.i.a.c; + +import android.os.Bundle; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.f; +import b.i.a.c.g3.a; +import b.i.a.c.g3.n; +import b.i.a.c.j1; +import b.i.a.c.w0; +import com.google.android.exoplayer2.drm.DrmInitData; +import com.google.android.exoplayer2.metadata.Metadata; +import java.util.ArrayList; +/* compiled from: lambda */ +public final /* synthetic */ class h0 implements w0.a { + public static final /* synthetic */ h0 a = new h0(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + j1 j1Var = j1.j; + j1.b bVar = new j1.b(); + if (bundle != null) { + ClassLoader classLoader = f.class.getClassLoader(); + int i = e0.a; + bundle.setClassLoader(classLoader); + } + int i2 = 0; + String string = bundle.getString(j1.d(0)); + j1 j1Var2 = j1.j; + bVar.a = (String) j1.b(string, j1Var2.l); + bVar.f1007b = (String) j1.b(bundle.getString(j1.d(1)), j1Var2.m); + bVar.c = (String) j1.b(bundle.getString(j1.d(2)), j1Var2.n); + bVar.d = bundle.getInt(j1.d(3), j1Var2.o); + bVar.e = bundle.getInt(j1.d(4), j1Var2.p); + bVar.f = bundle.getInt(j1.d(5), j1Var2.q); + bVar.g = bundle.getInt(j1.d(6), j1Var2.r); + bVar.h = (String) j1.b(bundle.getString(j1.d(7)), j1Var2.t); + bVar.i = (Metadata) j1.b((Metadata) bundle.getParcelable(j1.d(8)), j1Var2.u); + bVar.j = (String) j1.b(bundle.getString(j1.d(9)), j1Var2.v); + bVar.k = (String) j1.b(bundle.getString(j1.d(10)), j1Var2.w); + bVar.l = bundle.getInt(j1.d(11), j1Var2.f1004x); + ArrayList arrayList = new ArrayList(); + while (true) { + String d = j1.d(12); + String num = Integer.toString(i2, 36); + StringBuilder sb = new StringBuilder(String.valueOf(num).length() + String.valueOf(d).length() + 1); + sb.append(d); + sb.append("_"); + sb.append(num); + byte[] byteArray = bundle.getByteArray(sb.toString()); + if (byteArray == null) { + bVar.m = arrayList; + bVar.n = (DrmInitData) bundle.getParcelable(j1.d(13)); + String d2 = j1.d(14); + j1 j1Var3 = j1.j; + bVar.o = bundle.getLong(d2, j1Var3.A); + bVar.p = bundle.getInt(j1.d(15), j1Var3.B); + bVar.q = bundle.getInt(j1.d(16), j1Var3.C); + bVar.r = bundle.getFloat(j1.d(17), j1Var3.D); + bVar.f1008s = bundle.getInt(j1.d(18), j1Var3.E); + bVar.t = bundle.getFloat(j1.d(19), j1Var3.F); + bVar.u = bundle.getByteArray(j1.d(20)); + bVar.v = bundle.getInt(j1.d(21), j1Var3.H); + int i3 = n.j; + bVar.w = (n) f.c(a.a, bundle.getBundle(j1.d(22))); + bVar.f1009x = bundle.getInt(j1.d(23), j1Var3.J); + bVar.f1010y = bundle.getInt(j1.d(24), j1Var3.K); + bVar.f1011z = bundle.getInt(j1.d(25), j1Var3.L); + bVar.A = bundle.getInt(j1.d(26), j1Var3.M); + bVar.B = bundle.getInt(j1.d(27), j1Var3.N); + bVar.C = bundle.getInt(j1.d(28), j1Var3.O); + bVar.D = bundle.getInt(j1.d(29), j1Var3.P); + return bVar.a(); + } + arrayList.add(byteArray); + i2++; + } + } +} diff --git a/app/src/main/java/b/i/a/c/h1.java b/app/src/main/java/b/i/a/c/h1.java new file mode 100644 index 0000000000..7e72f730f1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/h1.java @@ -0,0 +1,2557 @@ +package b.i.a.c; + +import android.os.Handler; +import android.os.HandlerThread; +import android.os.Looper; +import android.os.Message; +import android.os.SystemClock; +import android.util.Log; +import android.util.Pair; +import androidx.annotation.CheckResult; +import androidx.annotation.Nullable; +import androidx.core.view.PointerIconCompat; +import b.i.a.c.a1; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.i0; +import b.i.a.c.a3.k0; +import b.i.a.c.a3.o0; +import b.i.a.c.a3.x; +import b.i.a.c.b2; +import b.i.a.c.b3.m; +import b.i.a.c.c3.j; +import b.i.a.c.c3.q; +import b.i.a.c.c3.r; +import b.i.a.c.f3.b0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.o; +import b.i.a.c.f3.s; +import b.i.a.c.f3.z; +import b.i.a.c.o1; +import b.i.a.c.o2; +import b.i.a.c.s2.g1; +import b.i.a.c.u1; +import b.i.b.b.h; +import b.i.b.b.h0; +import b.i.b.b.n; +import b.i.b.b.p; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.drm.DrmSession; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.source.BehindLiveWindowException; +import com.google.android.exoplayer2.upstream.DataSourceException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: ExoPlayerImplInternal */ +public final class h1 implements Handler.Callback, x.a, u1.d, a1.a, b2.a { + public final e A; + public final s1 B; + public final u1 C; + public final m1 D; + public final long E; + public j2 F; + public w1 G; + public d H; + public boolean I; + public boolean J; + public boolean K; + public boolean L; + public boolean M; + public int N; + public boolean O; + public boolean P; + public boolean Q; + public boolean R; + public int S; + @Nullable + public g T; + public long U; + public int V; + public boolean W; + @Nullable + public ExoPlaybackException X; + public final f2[] j; + public final Set k; + public final g2[] l; + public final q m; + public final r n; + public final n1 o; + public final b.i.a.c.e3.f p; + public final o q; + public final HandlerThread r; + + /* renamed from: s reason: collision with root package name */ + public final Looper f993s; + public final o2.c t; + public final o2.b u; + public final long v; + public final boolean w; + + /* renamed from: x reason: collision with root package name */ + public final a1 f994x; + + /* renamed from: y reason: collision with root package name */ + public final ArrayList f995y; + + /* renamed from: z reason: collision with root package name */ + public final b.i.a.c.f3.g f996z; + + /* compiled from: ExoPlayerImplInternal */ + public static final class a { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final k0 f997b; + public final int c; + public final long d; + + public a(List list, k0 k0Var, int i, long j, g1 g1Var) { + this.a = list; + this.f997b = k0Var; + this.c = i; + this.d = j; + } + } + + /* compiled from: ExoPlayerImplInternal */ + public static class b { + } + + /* compiled from: ExoPlayerImplInternal */ + public static final class c implements Comparable { + public final b2 j; + public int k; + public long l; + @Nullable + public Object m; + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + /* JADX WARNING: Code restructure failed: missing block: B:10:0x0015, code lost: + if (r0 != null) goto L_0x0017; + */ + @Override // java.lang.Comparable + public int compareTo(c cVar) { + c cVar2 = cVar; + Object obj = this.m; + int i = 1; + if ((obj == null) == (cVar2.m == null)) { + if (obj == null) { + return 0; + } + int i2 = this.k - cVar2.k; + if (i2 != 0) { + return i2; + } + long j = this.l; + long j2 = cVar2.l; + int i3 = e0.a; + int i4 = (j > j2 ? 1 : (j == j2 ? 0 : -1)); + if (i4 >= 0) { + if (i4 == 0) { + i = 0; + } + return i; + } + } + i = -1; + return i; + } + + public void f(int i, long j, Object obj) { + this.k = i; + this.l = j; + this.m = obj; + } + } + + /* compiled from: ExoPlayerImplInternal */ + public static final class d { + public boolean a; + + /* renamed from: b reason: collision with root package name */ + public w1 f998b; + public int c; + public boolean d; + public int e; + public boolean f; + public int g; + + public d(w1 w1Var) { + this.f998b = w1Var; + } + + public void a(int i) { + this.a |= i > 0; + this.c += i; + } + } + + /* compiled from: ExoPlayerImplInternal */ + public interface e { + } + + /* compiled from: ExoPlayerImplInternal */ + public static final class f { + public final a0.a a; + + /* renamed from: b reason: collision with root package name */ + public final long f999b; + public final long c; + public final boolean d; + public final boolean e; + public final boolean f; + + public f(a0.a aVar, long j, long j2, boolean z2, boolean z3, boolean z4) { + this.a = aVar; + this.f999b = j; + this.c = j2; + this.d = z2; + this.e = z3; + this.f = z4; + } + } + + /* compiled from: ExoPlayerImplInternal */ + public static final class g { + public final o2 a; + + /* renamed from: b reason: collision with root package name */ + public final int f1000b; + public final long c; + + public g(o2 o2Var, int i, long j) { + this.a = o2Var; + this.f1000b = i; + this.c = j; + } + } + + public h1(f2[] f2VarArr, q qVar, r rVar, n1 n1Var, b.i.a.c.e3.f fVar, int i, boolean z2, @Nullable g1 g1Var, j2 j2Var, m1 m1Var, long j, boolean z3, Looper looper, b.i.a.c.f3.g gVar, e eVar) { + this.A = eVar; + this.j = f2VarArr; + this.m = qVar; + this.n = rVar; + this.o = n1Var; + this.p = fVar; + this.N = i; + this.O = z2; + this.F = j2Var; + this.D = m1Var; + this.E = j; + this.J = z3; + this.f996z = gVar; + this.v = n1Var.b(); + this.w = n1Var.a(); + w1 h = w1.h(rVar); + this.G = h; + this.H = new d(h); + this.l = new g2[f2VarArr.length]; + for (int i2 = 0; i2 < f2VarArr.length; i2++) { + f2VarArr[i2].f(i2); + this.l[i2] = f2VarArr[i2].m(); + } + this.f994x = new a1(this, gVar); + this.f995y = new ArrayList<>(); + this.k = h.c(); + this.t = new o2.c(); + this.u = new o2.b(); + qVar.a = fVar; + this.W = true; + Handler handler = new Handler(looper); + this.B = new s1(g1Var, handler); + this.C = new u1(this, g1Var, handler); + HandlerThread handlerThread = new HandlerThread("ExoPlayer:Playback", -16); + this.r = handlerThread; + handlerThread.start(); + Looper looper2 = handlerThread.getLooper(); + this.f993s = looper2; + this.q = gVar.b(looper2, this); + } + + public static boolean K(c cVar, o2 o2Var, o2 o2Var2, int i, boolean z2, o2.c cVar2, o2.b bVar) { + Object obj = cVar.m; + if (obj == null) { + Objects.requireNonNull(cVar.j); + Objects.requireNonNull(cVar.j); + long B = e0.B(-9223372036854775807L); + b2 b2Var = cVar.j; + Pair M = M(o2Var, new g(b2Var.d, b2Var.h, B), false, i, z2, cVar2, bVar); + if (M == null) { + return false; + } + cVar.f(o2Var.b(M.first), ((Long) M.second).longValue(), M.first); + Objects.requireNonNull(cVar.j); + return true; + } + int b2 = o2Var.b(obj); + if (b2 == -1) { + return false; + } + Objects.requireNonNull(cVar.j); + cVar.k = b2; + o2Var2.h(cVar.m, bVar); + if (bVar.o && o2Var2.n(bVar.l, cVar2).B == o2Var2.b(cVar.m)) { + Pair j = o2Var.j(cVar2, bVar, o2Var.h(cVar.m, bVar).l, cVar.l + bVar.n); + cVar.f(o2Var.b(j.first), ((Long) j.second).longValue(), j.first); + } + return true; + } + + @Nullable + public static Pair M(o2 o2Var, g gVar, boolean z2, int i, boolean z3, o2.c cVar, o2.b bVar) { + Object N; + o2 o2Var2 = gVar.a; + if (o2Var.q()) { + return null; + } + o2 o2Var3 = o2Var2.q() ? o2Var : o2Var2; + try { + Pair j = o2Var3.j(cVar, bVar, gVar.f1000b, gVar.c); + if (o2Var.equals(o2Var3)) { + return j; + } + if (o2Var.b(j.first) != -1) { + return (!o2Var3.h(j.first, bVar).o || o2Var3.n(bVar.l, cVar).B != o2Var3.b(j.first)) ? j : o2Var.j(cVar, bVar, o2Var.h(j.first, bVar).l, gVar.c); + } + if (z2 && (N = N(cVar, bVar, i, z3, j.first, o2Var3, o2Var)) != null) { + return o2Var.j(cVar, bVar, o2Var.h(N, bVar).l, -9223372036854775807L); + } + return null; + } catch (IndexOutOfBoundsException unused) { + } + } + + @Nullable + public static Object N(o2.c cVar, o2.b bVar, int i, boolean z2, Object obj, o2 o2Var, o2 o2Var2) { + int b2 = o2Var.b(obj); + int i2 = o2Var.i(); + int i3 = b2; + int i4 = -1; + for (int i5 = 0; i5 < i2 && i4 == -1; i5++) { + i3 = o2Var.d(i3, bVar, cVar, i, z2); + if (i3 == -1) { + break; + } + i4 = o2Var2.b(o2Var.m(i3)); + } + if (i4 == -1) { + return null; + } + return o2Var2.m(i4); + } + + public static j1[] i(j jVar) { + int length = jVar != null ? jVar.length() : 0; + j1[] j1VarArr = new j1[length]; + for (int i = 0; i < length; i++) { + j1VarArr[i] = jVar.d(i); + } + return j1VarArr; + } + + public static boolean w(f2 f2Var) { + return f2Var.getState() != 0; + } + + public static boolean y(w1 w1Var, o2.b bVar) { + a0.a aVar = w1Var.c; + o2 o2Var = w1Var.f1132b; + return o2Var.q() || o2Var.h(aVar.a, bVar).o; + } + + public final void A() { + d dVar = this.H; + w1 w1Var = this.G; + boolean z2 = dVar.a | (dVar.f998b != w1Var); + dVar.a = z2; + dVar.f998b = w1Var; + if (z2) { + f1 f1Var = ((w) this.A).a; + f1Var.g.b(new c0(f1Var, dVar)); + this.H = new d(this.G); + } + } + + public final void B() throws ExoPlaybackException { + r(this.C.c(), true); + } + + public final void C(b bVar) throws ExoPlaybackException { + boolean z2 = true; + this.H.a(1); + u1 u1Var = this.C; + Objects.requireNonNull(bVar); + Objects.requireNonNull(u1Var); + if (u1Var.e() < 0) { + z2 = false; + } + b.c.a.a0.d.j(z2); + u1Var.i = null; + r(u1Var.c(), false); + } + + public final void D() { + this.H.a(1); + H(false, false, false, true); + this.o.c(); + f0(this.G.f1132b.q() ? 4 : 2); + u1 u1Var = this.C; + b.i.a.c.e3.a0 c2 = this.p.c(); + b.c.a.a0.d.D(!u1Var.j); + u1Var.k = c2; + for (int i = 0; i < u1Var.a.size(); i++) { + u1.c cVar = u1Var.a.get(i); + u1Var.g(cVar); + u1Var.h.add(cVar); + } + u1Var.j = true; + this.q.f(2); + } + + public final void E() { + H(true, false, true, false); + this.o.e(); + f0(1); + this.r.quit(); + synchronized (this) { + this.I = true; + notifyAll(); + } + } + + public final void F(int i, int i2, k0 k0Var) throws ExoPlaybackException { + boolean z2 = true; + this.H.a(1); + u1 u1Var = this.C; + Objects.requireNonNull(u1Var); + if (i < 0 || i > i2 || i2 > u1Var.e()) { + z2 = false; + } + b.c.a.a0.d.j(z2); + u1Var.i = k0Var; + u1Var.i(i, i2); + r(u1Var.c(), false); + } + + public final void G() throws ExoPlaybackException { + boolean z2; + float f2 = this.f994x.c().k; + s1 s1Var = this.B; + q1 q1Var = s1Var.h; + q1 q1Var2 = s1Var.i; + q1 q1Var3 = q1Var; + boolean z3 = true; + while (q1Var3 != null && q1Var3.d) { + r i = q1Var3.i(f2, this.G.f1132b); + r rVar = q1Var3.n; + if (rVar != null && rVar.c.length == i.c.length) { + int i2 = 0; + while (true) { + if (i2 >= i.c.length) { + z2 = true; + break; + } else if (!i.a(rVar, i2)) { + break; + } else { + i2++; + } + } + } + z2 = false; + if (!z2) { + if (z3) { + s1 s1Var2 = this.B; + q1 q1Var4 = s1Var2.h; + boolean n = s1Var2.n(q1Var4); + boolean[] zArr = new boolean[this.j.length]; + long a2 = q1Var4.a(i, this.G.t, n, zArr); + w1 w1Var = this.G; + boolean z4 = (w1Var.f == 4 || a2 == w1Var.t) ? false : true; + w1 w1Var2 = this.G; + this.G = u(w1Var2.c, a2, w1Var2.d, w1Var2.e, z4, 5); + if (z4) { + J(a2); + } + boolean[] zArr2 = new boolean[this.j.length]; + int i3 = 0; + while (true) { + f2[] f2VarArr = this.j; + if (i3 >= f2VarArr.length) { + break; + } + f2 f2Var = f2VarArr[i3]; + zArr2[i3] = w(f2Var); + i0 i0Var = q1Var4.c[i3]; + if (zArr2[i3]) { + if (i0Var != f2Var.h()) { + e(f2Var); + } else if (zArr[i3]) { + f2Var.u(this.U); + } + } + i3++; + } + h(zArr2); + } else { + this.B.n(q1Var3); + if (q1Var3.d) { + q1Var3.a(i, Math.max(q1Var3.f.f1044b, this.U - q1Var3.o), false, new boolean[q1Var3.i.length]); + } + } + q(true); + if (this.G.f != 4) { + z(); + n0(); + this.q.f(2); + return; + } + return; + } + if (q1Var3 == q1Var2) { + z3 = false; + } + q1Var3 = q1Var3.l; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:35:0x00cb */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x00d1 */ + /* JADX WARNING: Removed duplicated region for block: B:39:0x00d4 */ + /* JADX WARNING: Removed duplicated region for block: B:42:0x00d9 */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x00dc */ + /* JADX WARNING: Removed duplicated region for block: B:45:0x00e0 */ + /* JADX WARNING: Removed duplicated region for block: B:46:0x00e5 */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x010d */ + /* JADX WARNING: Removed duplicated region for block: B:70:? A[RETURN, SYNTHETIC] */ + public final void H(boolean z2, boolean z3, boolean z4, boolean z5) { + long j; + a0.a aVar; + boolean z6; + List list; + this.q.h(2); + ExoPlaybackException exoPlaybackException = null; + this.X = null; + this.L = false; + a1 a1Var = this.f994x; + a1Var.o = false; + z zVar = a1Var.j; + if (zVar.k) { + zVar.a(zVar.e()); + zVar.k = false; + } + this.U = 1000000000000L; + for (f2 f2Var : this.j) { + try { + e(f2Var); + } catch (ExoPlaybackException | RuntimeException e2) { + b.i.a.c.f3.q.b("ExoPlayerImplInternal", "Disable failed.", e2); + } + } + if (z2) { + f2[] f2VarArr = this.j; + for (f2 f2Var2 : f2VarArr) { + if (this.k.remove(f2Var2)) { + try { + f2Var2.reset(); + } catch (RuntimeException e3) { + b.i.a.c.f3.q.b("ExoPlayerImplInternal", "Reset failed.", e3); + } + } + } + } + this.S = 0; + w1 w1Var = this.G; + a0.a aVar2 = w1Var.c; + long j2 = w1Var.t; + long j3 = (this.G.c.a() || y(this.G, this.u)) ? this.G.d : this.G.t; + if (z3) { + this.T = null; + Pair l = l(this.G.f1132b); + aVar2 = (a0.a) l.first; + j2 = ((Long) l.second).longValue(); + j3 = -9223372036854775807L; + if (!aVar2.equals(this.G.c)) { + z6 = true; + aVar = aVar2; + j = j2; + this.B.b(); + this.M = false; + w1 w1Var2 = this.G; + o2 o2Var = w1Var2.f1132b; + int i = w1Var2.f; + if (!z5) { + exoPlaybackException = w1Var2.g; + } + o0 o0Var = !z6 ? o0.j : w1Var2.i; + r rVar = !z6 ? this.n : w1Var2.j; + if (!z6) { + b.i.b.b.a aVar3 = p.k; + list = h0.l; + } else { + list = w1Var2.k; + } + this.G = new w1(o2Var, aVar, j3, j, i, exoPlaybackException, false, o0Var, rVar, list, aVar, w1Var2.m, w1Var2.n, w1Var2.o, j, 0, j, this.R, false); + if (!z4) { + u1 u1Var = this.C; + for (u1.b bVar : u1Var.g.values()) { + try { + bVar.a.a(bVar.f1124b); + } catch (RuntimeException e4) { + b.i.a.c.f3.q.b("MediaSourceList", "Failed to release child source.", e4); + } + bVar.a.c(bVar.c); + bVar.a.g(bVar.c); + } + u1Var.g.clear(); + u1Var.h.clear(); + u1Var.j = false; + return; + } + return; + } + } + aVar = aVar2; + j = j2; + z6 = false; + this.B.b(); + this.M = false; + w1 w1Var2 = this.G; + o2 o2Var = w1Var2.f1132b; + int i = w1Var2.f; + if (!z5) { + } + if (!z6) { + } + if (!z6) { + } + if (!z6) { + } + this.G = new w1(o2Var, aVar, j3, j, i, exoPlaybackException, false, o0Var, rVar, list, aVar, w1Var2.m, w1Var2.n, w1Var2.o, j, 0, j, this.R, false); + if (!z4) { + } + } + + public final void I() { + q1 q1Var = this.B.h; + this.K = q1Var != null && q1Var.f.h && this.J; + } + + public final void J(long j) throws ExoPlaybackException { + q1 q1Var = this.B.h; + long j2 = j + (q1Var == null ? 1000000000000L : q1Var.o); + this.U = j2; + this.f994x.j.a(j2); + f2[] f2VarArr = this.j; + for (f2 f2Var : f2VarArr) { + if (w(f2Var)) { + f2Var.u(this.U); + } + } + for (q1 q1Var2 = this.B.h; q1Var2 != null; q1Var2 = q1Var2.l) { + j[] jVarArr = q1Var2.n.c; + for (j jVar : jVarArr) { + if (jVar != null) { + jVar.j(); + } + } + } + } + + public final void L(o2 o2Var, o2 o2Var2) { + if (!o2Var.q() || !o2Var2.q()) { + int size = this.f995y.size(); + while (true) { + size--; + if (size < 0) { + Collections.sort(this.f995y); + return; + } else if (!K(this.f995y.get(size), o2Var, o2Var2, this.N, this.O, this.t, this.u)) { + this.f995y.get(size).j.c(false); + this.f995y.remove(size); + } + } + } + } + + public final void O(long j, long j2) { + this.q.h(2); + this.q.g(2, j + j2); + } + + public final void P(boolean z2) throws ExoPlaybackException { + a0.a aVar = this.B.h.f.a; + long S = S(aVar, this.G.t, true, false); + if (S != this.G.t) { + w1 w1Var = this.G; + this.G = u(aVar, S, w1Var.d, w1Var.e, z2, 5); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:23:0x00ab A[Catch:{ all -> 0x0145 }] */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x00ae A[Catch:{ all -> 0x0145 }] */ + public final void Q(g gVar) throws ExoPlaybackException { + long j; + boolean z2; + a0.a aVar; + long j2; + long j3; + Throwable th; + long j4; + long j5; + w1 w1Var; + int i; + long longValue; + long j6; + boolean z3 = true; + this.H.a(1); + Pair M = M(this.G.f1132b, gVar, true, this.N, this.O, this.t, this.u); + if (M == null) { + Pair l = l(this.G.f1132b); + aVar = (a0.a) l.first; + longValue = ((Long) l.second).longValue(); + z2 = !this.G.f1132b.q(); + j6 = -9223372036854775807L; + } else { + Object obj = M.first; + longValue = ((Long) M.second).longValue(); + long j7 = gVar.c == -9223372036854775807L ? -9223372036854775807L : longValue; + a0.a o = this.B.o(this.G.f1132b, obj, longValue); + if (o.a()) { + this.G.f1132b.h(o.a, this.u); + j2 = this.u.d(o.f821b) == o.c ? this.u.p.o : 0; + j = j7; + z2 = true; + aVar = o; + if (!this.G.f1132b.q()) { + this.T = gVar; + } else if (M == null) { + if (this.G.f != 1) { + f0(4); + } + H(false, true, false, true); + } else { + if (aVar.equals(this.G.c)) { + q1 q1Var = this.B.h; + j5 = (q1Var == null || !q1Var.d || j2 == 0) ? j2 : q1Var.a.i(j2, this.F); + if (e0.M(j5) == e0.M(this.G.t) && ((i = (w1Var = this.G).f) == 2 || i == 3)) { + long j8 = w1Var.t; + this.G = u(aVar, j8, j, j8, z2, 2); + return; + } + } else { + j5 = j2; + } + long R = R(aVar, j5, this.G.f == 4); + if (j2 == R) { + z3 = false; + } + boolean z4 = z3 | z2; + try { + w1 w1Var2 = this.G; + o2 o2Var = w1Var2.f1132b; + m0(o2Var, aVar, o2Var, w1Var2.c, j); + z2 = z4; + j4 = R; + this.G = u(aVar, j4, j, j4, z2, 2); + } catch (Throwable th2) { + th = th2; + z2 = z4; + j3 = R; + this.G = u(aVar, j3, j, j3, z2, 2); + throw th; + } + } + j4 = j2; + this.G = u(aVar, j4, j, j4, z2, 2); + } + j6 = j7; + z2 = gVar.c == -9223372036854775807L; + aVar = o; + } + j2 = longValue; + j = j6; + try { + if (!this.G.f1132b.q()) { + } + j4 = j2; + this.G = u(aVar, j4, j, j4, z2, 2); + } catch (Throwable th3) { + th = th3; + j3 = j2; + this.G = u(aVar, j3, j, j3, z2, 2); + throw th; + } + } + + public final long R(a0.a aVar, long j, boolean z2) throws ExoPlaybackException { + s1 s1Var = this.B; + return S(aVar, j, s1Var.h != s1Var.i, z2); + } + + public final long S(a0.a aVar, long j, boolean z2, boolean z3) throws ExoPlaybackException { + s1 s1Var; + k0(); + this.L = false; + if (z3 || this.G.f == 3) { + f0(2); + } + q1 q1Var = this.B.h; + q1 q1Var2 = q1Var; + while (q1Var2 != null && !aVar.equals(q1Var2.f.a)) { + q1Var2 = q1Var2.l; + } + if (z2 || q1Var != q1Var2 || (q1Var2 != null && q1Var2.o + j < 0)) { + for (f2 f2Var : this.j) { + e(f2Var); + } + if (q1Var2 != null) { + while (true) { + s1Var = this.B; + if (s1Var.h == q1Var2) { + break; + } + s1Var.a(); + } + s1Var.n(q1Var2); + q1Var2.o = 1000000000000L; + g(); + } + } + if (q1Var2 != null) { + this.B.n(q1Var2); + if (!q1Var2.d) { + q1Var2.f = q1Var2.f.b(j); + } else if (q1Var2.e) { + long f2 = q1Var2.a.f(j); + q1Var2.a.r(f2 - this.v, this.w); + j = f2; + } + J(j); + z(); + } else { + this.B.b(); + J(j); + } + q(false); + this.q.f(2); + return j; + } + + public final void T(b2 b2Var) throws ExoPlaybackException { + if (b2Var.g == this.f993s) { + d(b2Var); + int i = this.G.f; + if (i == 3 || i == 2) { + this.q.f(2); + return; + } + return; + } + ((b0.b) this.q.i(15, b2Var)).b(); + } + + public final void U(b2 b2Var) { + Looper looper = b2Var.g; + if (!looper.getThread().isAlive()) { + Log.w("TAG", "Trying to send message on a dead thread."); + b2Var.c(false); + return; + } + this.f996z.b(looper, null).b(new g0(this, b2Var)); + } + + public final void V(f2 f2Var, long j) { + f2Var.l(); + if (f2Var instanceof m) { + m mVar = (m) f2Var; + b.c.a.a0.d.D(mVar.f1126s); + mVar.I = j; + } + } + + public final void W(boolean z2, @Nullable AtomicBoolean atomicBoolean) { + if (this.P != z2) { + this.P = z2; + if (!z2) { + f2[] f2VarArr = this.j; + for (f2 f2Var : f2VarArr) { + if (!w(f2Var) && this.k.remove(f2Var)) { + f2Var.reset(); + } + } + } + } + if (atomicBoolean != null) { + synchronized (this) { + atomicBoolean.set(true); + notifyAll(); + } + } + } + + public final void X(a aVar) throws ExoPlaybackException { + this.H.a(1); + if (aVar.c != -1) { + this.T = new g(new c2(aVar.a, aVar.f997b), aVar.c, aVar.d); + } + u1 u1Var = this.C; + List list = aVar.a; + k0 k0Var = aVar.f997b; + u1Var.i(0, u1Var.a.size()); + r(u1Var.a(u1Var.a.size(), list, k0Var), false); + } + + public final void Y(boolean z2) { + if (z2 != this.R) { + this.R = z2; + w1 w1Var = this.G; + int i = w1Var.f; + if (z2 || i == 4 || i == 1) { + this.G = w1Var.c(z2); + } else { + this.q.f(2); + } + } + } + + public final void Z(boolean z2) throws ExoPlaybackException { + this.J = z2; + I(); + if (this.K) { + s1 s1Var = this.B; + if (s1Var.i != s1Var.h) { + P(true); + q(false); + } + } + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.c.a3.j0] */ + @Override // b.i.a.c.a3.j0.a + public void a(x xVar) { + ((b0.b) this.q.i(9, xVar)).b(); + } + + public final void a0(boolean z2, int i, boolean z3, int i2) throws ExoPlaybackException { + this.H.a(z3 ? 1 : 0); + d dVar = this.H; + dVar.a = true; + dVar.f = true; + dVar.g = i2; + this.G = this.G.d(z2, i); + this.L = false; + for (q1 q1Var = this.B.h; q1Var != null; q1Var = q1Var.l) { + j[] jVarArr = q1Var.n.c; + for (j jVar : jVarArr) { + if (jVar != null) { + jVar.c(z2); + } + } + } + if (!g0()) { + k0(); + n0(); + return; + } + int i3 = this.G.f; + if (i3 == 3) { + i0(); + this.q.f(2); + } else if (i3 == 2) { + this.q.f(2); + } + } + + @Override // b.i.a.c.a3.x.a + public void b(x xVar) { + ((b0.b) this.q.i(8, xVar)).b(); + } + + public final void b0(x1 x1Var) throws ExoPlaybackException { + this.f994x.i(x1Var); + x1 c2 = this.f994x.c(); + t(c2, c2.k, true, true); + } + + public final void c(a aVar, int i) throws ExoPlaybackException { + this.H.a(1); + u1 u1Var = this.C; + if (i == -1) { + i = u1Var.e(); + } + r(u1Var.a(i, aVar.a, aVar.f997b), false); + } + + public final void c0(int i) throws ExoPlaybackException { + this.N = i; + s1 s1Var = this.B; + o2 o2Var = this.G.f1132b; + s1Var.f = i; + if (!s1Var.q(o2Var)) { + P(true); + } + q(false); + } + + public final void d(b2 b2Var) throws ExoPlaybackException { + b2Var.b(); + boolean z2 = true; + try { + b2Var.a.r(b2Var.e, b2Var.f); + } finally { + b2Var.c(z2); + } + } + + public final void d0(boolean z2) throws ExoPlaybackException { + this.O = z2; + s1 s1Var = this.B; + o2 o2Var = this.G.f1132b; + s1Var.g = z2; + if (!s1Var.q(o2Var)) { + P(true); + } + q(false); + } + + public final void e(f2 f2Var) throws ExoPlaybackException { + if (f2Var.getState() != 0) { + a1 a1Var = this.f994x; + if (f2Var == a1Var.l) { + a1Var.m = null; + a1Var.l = null; + a1Var.n = true; + } + if (f2Var.getState() == 2) { + f2Var.stop(); + } + f2Var.g(); + this.S--; + } + } + + public final void e0(k0 k0Var) throws ExoPlaybackException { + this.H.a(1); + u1 u1Var = this.C; + int e2 = u1Var.e(); + if (k0Var.b() != e2) { + k0Var = k0Var.h().f(0, e2); + } + u1Var.i = k0Var; + r(u1Var.c(), false); + } + + /* JADX WARNING: Code restructure failed: missing block: B:273:0x0473, code lost: + if (r36.o.f(m(), r36.f994x.c().k, r36.L, r32) == false) goto L_0x0476; + */ + public final void f() throws ExoPlaybackException, IOException { + boolean z2; + boolean z3; + boolean z4; + boolean z5; + boolean z6; + int i; + boolean z7; + q1 q1Var; + q1 q1Var2; + boolean z8; + long a2 = this.f996z.a(); + if (!this.G.f1132b.q() && this.C.j) { + this.B.m(this.U); + s1 s1Var = this.B; + q1 q1Var3 = s1Var.j; + if (q1Var3 == null || (!q1Var3.f.i && q1Var3.f() && s1Var.j.f.e != -9223372036854775807L && s1Var.k < 100)) { + s1 s1Var2 = this.B; + long j = this.U; + w1 w1Var = this.G; + q1 q1Var4 = s1Var2.j; + r1 d2 = q1Var4 == null ? s1Var2.d(w1Var.f1132b, w1Var.c, w1Var.d, w1Var.t) : s1Var2.c(w1Var.f1132b, q1Var4, j); + if (d2 != null) { + s1 s1Var3 = this.B; + g2[] g2VarArr = this.l; + q qVar = this.m; + b.i.a.c.e3.o h = this.o.h(); + u1 u1Var = this.C; + r rVar = this.n; + q1 q1Var5 = s1Var3.j; + q1 q1Var6 = new q1(g2VarArr, q1Var5 == null ? 1000000000000L : (q1Var5.o + q1Var5.f.e) - d2.f1044b, qVar, h, u1Var, d2, rVar); + q1 q1Var7 = s1Var3.j; + if (q1Var7 == null) { + s1Var3.h = q1Var6; + s1Var3.i = q1Var6; + } else if (q1Var6 != q1Var7.l) { + q1Var7.b(); + q1Var7.l = q1Var6; + q1Var7.c(); + } + s1Var3.l = null; + s1Var3.j = q1Var6; + s1Var3.k++; + s1Var3.l(); + q1Var6.a.l(this, d2.f1044b); + if (this.B.h == q1Var6) { + J(d2.f1044b); + } + q(false); + } + } + if (this.M) { + this.M = v(); + l0(); + } else { + z(); + } + q1 q1Var8 = this.B.i; + if (q1Var8 != null) { + if (q1Var8.l != null && !this.K) { + if (q1Var8.d) { + int i2 = 0; + while (true) { + f2[] f2VarArr = this.j; + if (i2 >= f2VarArr.length) { + z8 = true; + break; + } + f2 f2Var = f2VarArr[i2]; + i0 i0Var = q1Var8.c[i2]; + if (f2Var.h() != i0Var) { + break; + } + if (i0Var != null && !f2Var.j()) { + q1 q1Var9 = q1Var8.l; + if (!(q1Var8.f.f && q1Var9.d && ((f2Var instanceof m) || f2Var.t() >= q1Var9.e()))) { + break; + } + } + i2++; + } + } + z8 = false; + if (z8) { + q1 q1Var10 = q1Var8.l; + if (q1Var10.d || this.U >= q1Var10.e()) { + r rVar2 = q1Var8.n; + s1 s1Var4 = this.B; + q1 q1Var11 = s1Var4.i; + b.c.a.a0.d.D((q1Var11 == null || q1Var11.l == null) ? false : true); + s1Var4.i = s1Var4.i.l; + s1Var4.l(); + q1 q1Var12 = s1Var4.i; + r rVar3 = q1Var12.n; + if (!q1Var12.d || q1Var12.a.k() == -9223372036854775807L) { + for (int i3 = 0; i3 < this.j.length; i3++) { + boolean b2 = rVar2.b(i3); + boolean b3 = rVar3.b(i3); + if (b2 && !this.j[i3].v()) { + boolean z9 = ((v0) this.l[i3]).j == -2; + h2 h2Var = rVar2.f898b[i3]; + h2 h2Var2 = rVar3.f898b[i3]; + if (!b3 || !h2Var2.equals(h2Var) || z9) { + V(this.j[i3], q1Var12.e()); + } + } + } + } else { + long e2 = q1Var12.e(); + f2[] f2VarArr2 = this.j; + for (f2 f2Var2 : f2VarArr2) { + if (f2Var2.h() != null) { + V(f2Var2, e2); + } + } + } + } + } + } else if (q1Var8.f.i || this.K) { + int i4 = 0; + while (true) { + f2[] f2VarArr3 = this.j; + if (i4 >= f2VarArr3.length) { + break; + } + f2 f2Var3 = f2VarArr3[i4]; + i0 i0Var2 = q1Var8.c[i4]; + if (i0Var2 != null && f2Var3.h() == i0Var2 && f2Var3.j()) { + long j2 = q1Var8.f.e; + V(f2Var3, (j2 == -9223372036854775807L || j2 == Long.MIN_VALUE) ? -9223372036854775807L : j2 + q1Var8.o); + } + i4++; + } + } + } + s1 s1Var5 = this.B; + q1 q1Var13 = s1Var5.i; + if (!(q1Var13 == null || s1Var5.h == q1Var13 || q1Var13.g)) { + r rVar4 = q1Var13.n; + int i5 = 0; + boolean z10 = false; + while (true) { + f2[] f2VarArr4 = this.j; + if (i5 >= f2VarArr4.length) { + break; + } + f2 f2Var4 = f2VarArr4[i5]; + if (w(f2Var4)) { + boolean z11 = f2Var4.h() != q1Var13.c[i5]; + if (!rVar4.b(i5) || z11) { + if (!f2Var4.v()) { + f2Var4.k(i(rVar4.c[i5]), q1Var13.c[i5], q1Var13.e(), q1Var13.o); + } else if (f2Var4.b()) { + e(f2Var4); + } else { + z10 = true; + } + } + } + i5++; + } + if (!z10) { + g(); + } + } + boolean z12 = false; + while (true) { + if (!(g0() && !this.K && (q1Var = this.B.h) != null && (q1Var2 = q1Var.l) != null && this.U >= q1Var2.e() && q1Var2.g)) { + break; + } + if (z12) { + A(); + } + s1 s1Var6 = this.B; + q1 q1Var14 = s1Var6.h; + q1 a3 = s1Var6.a(); + r1 r1Var = a3.f; + a0.a aVar = r1Var.a; + long j3 = r1Var.f1044b; + w1 u = u(aVar, j3, r1Var.c, j3, true, 0); + this.G = u; + o2 o2Var = u.f1132b; + m0(o2Var, a3.f.a, o2Var, q1Var14.f.a, -9223372036854775807L); + I(); + n0(); + z12 = true; + } + } + int i6 = this.G.f; + if (i6 == 1 || i6 == 4) { + this.q.h(2); + return; + } + q1 q1Var15 = this.B.h; + if (q1Var15 == null) { + O(a2, 10); + return; + } + b.c.a.a0.d.f("doSomeWork"); + n0(); + if (q1Var15.d) { + long elapsedRealtime = SystemClock.elapsedRealtime() * 1000; + q1Var15.a.r(this.G.t - this.v, this.w); + boolean z13 = true; + z3 = true; + int i7 = 0; + while (true) { + f2[] f2VarArr5 = this.j; + if (i7 >= f2VarArr5.length) { + break; + } + f2 f2Var5 = f2VarArr5[i7]; + if (w(f2Var5)) { + f2Var5.q(this.U, elapsedRealtime); + boolean z14 = z13 && f2Var5.b(); + boolean z15 = q1Var15.c[i7] != f2Var5.h(); + boolean z16 = z15 || (!z15 && f2Var5.j()) || f2Var5.d() || f2Var5.b(); + boolean z17 = z3 && z16; + if (!z16) { + f2Var5.s(); + } + z3 = z17; + z13 = z14; + } + i7++; + } + z2 = z13; + } else { + q1Var15.a.e(); + z3 = true; + z2 = true; + } + long j4 = q1Var15.f.e; + boolean z18 = z2 && q1Var15.d && (j4 == -9223372036854775807L || j4 <= this.G.t); + if (!z18 || !this.K) { + z4 = false; + } else { + z4 = false; + this.K = false; + a0(false, this.G.n, false, 5); + } + if (!z18 || !q1Var15.f.i) { + w1 w1Var2 = this.G; + if (w1Var2.f == 2) { + if (this.S == 0) { + z7 = x(); + } else { + if (z3) { + if (w1Var2.h) { + long j5 = h0(w1Var2.f1132b, this.B.h.f.a) ? ((y0) this.D).i : -9223372036854775807L; + q1 q1Var16 = this.B.j; + boolean z19 = q1Var16.f() && q1Var16.f.i; + boolean z20 = q1Var16.f.a.a() && !q1Var16.d; + if (!z19) { + if (!z20) { + } + } + } + z7 = true; + } + z7 = false; + } + if (z7) { + f0(3); + this.X = null; + if (g0()) { + i0(); + } + } + } + if (this.G.f == 3 && (this.S != 0 ? !z3 : !x())) { + this.L = g0(); + f0(2); + if (this.L) { + for (q1 q1Var17 = this.B.h; q1Var17 != null; q1Var17 = q1Var17.l) { + j[] jVarArr = q1Var17.n.c; + for (j jVar : jVarArr) { + if (jVar != null) { + jVar.k(); + } + } + } + y0 y0Var = (y0) this.D; + long j6 = y0Var.i; + if (j6 != -9223372036854775807L) { + long j7 = j6 + y0Var.f1288b; + y0Var.i = j7; + long j8 = y0Var.h; + if (j8 != -9223372036854775807L && j7 > j8) { + y0Var.i = j8; + } + y0Var.m = -9223372036854775807L; + } + } + k0(); + } + } else { + f0(4); + k0(); + } + if (this.G.f == 2) { + int i8 = 0; + while (true) { + f2[] f2VarArr6 = this.j; + if (i8 >= f2VarArr6.length) { + break; + } + if (w(f2VarArr6[i8]) && this.j[i8].h() == q1Var15.c[i8]) { + this.j[i8].s(); + } + i8++; + } + w1 w1Var3 = this.G; + if (!w1Var3.h && w1Var3.f1133s < 500000 && v()) { + throw new IllegalStateException("Playback stuck buffering and not loading"); + } + } + boolean z21 = this.R; + w1 w1Var4 = this.G; + if (z21 != w1Var4.p) { + this.G = w1Var4.c(z21); + } + if ((!g0() || this.G.f != 3) && (i = this.G.f) != 2) { + if (this.S == 0 || i == 4) { + this.q.h(2); + } else { + O(a2, 1000); + } + z5 = false; + } else { + if (!this.R || !this.Q) { + this.q.h(2); + this.q.g(2, a2 + 10); + z6 = true; + } else { + z6 = false; + } + z5 = !z6; + } + w1 w1Var5 = this.G; + if (w1Var5.q != z5) { + this.G = new w1(w1Var5.f1132b, w1Var5.c, w1Var5.d, w1Var5.e, w1Var5.f, w1Var5.g, w1Var5.h, w1Var5.i, w1Var5.j, w1Var5.k, w1Var5.l, w1Var5.m, w1Var5.n, w1Var5.o, w1Var5.r, w1Var5.f1133s, w1Var5.t, w1Var5.p, z5); + } + this.Q = z4; + b.c.a.a0.d.c0(); + } + + public final void f0(int i) { + w1 w1Var = this.G; + if (w1Var.f != i) { + this.G = w1Var.f(i); + } + } + + public final void g() throws ExoPlaybackException { + h(new boolean[this.j.length]); + } + + public final boolean g0() { + w1 w1Var = this.G; + return w1Var.m && w1Var.n == 0; + } + + public final void h(boolean[] zArr) throws ExoPlaybackException { + s sVar; + q1 q1Var = this.B.i; + r rVar = q1Var.n; + for (int i = 0; i < this.j.length; i++) { + if (!rVar.b(i) && this.k.remove(this.j[i])) { + this.j[i].reset(); + } + } + for (int i2 = 0; i2 < this.j.length; i2++) { + if (rVar.b(i2)) { + boolean z2 = zArr[i2]; + f2 f2Var = this.j[i2]; + if (!w(f2Var)) { + s1 s1Var = this.B; + q1 q1Var2 = s1Var.i; + boolean z3 = q1Var2 == s1Var.h; + r rVar2 = q1Var2.n; + h2 h2Var = rVar2.f898b[i2]; + j1[] i3 = i(rVar2.c[i2]); + boolean z4 = g0() && this.G.f == 3; + boolean z5 = !z2 && z4; + this.S++; + this.k.add(f2Var); + f2Var.o(h2Var, i3, q1Var2.c[i2], this.U, z5, z3, q1Var2.e(), q1Var2.o); + f2Var.r(11, new g1(this)); + a1 a1Var = this.f994x; + Objects.requireNonNull(a1Var); + s w = f2Var.w(); + if (!(w == null || w == (sVar = a1Var.m))) { + if (sVar == null) { + a1Var.m = w; + a1Var.l = f2Var; + w.i(a1Var.j.n); + } else { + throw ExoPlaybackException.b(new IllegalStateException("Multiple renderer media clocks enabled."), 1000); + } + } + if (z4) { + f2Var.start(); + } + } else { + continue; + } + } + } + q1Var.g = true; + } + + public final boolean h0(o2 o2Var, a0.a aVar) { + if (aVar.a() || o2Var.q()) { + return false; + } + o2Var.n(o2Var.h(aVar.a, this.u).l, this.t); + if (!this.t.c()) { + return false; + } + o2.c cVar = this.t; + return cVar.v && cVar.f1028s != -9223372036854775807L; + } + + @Override // android.os.Handler.Callback + public boolean handleMessage(Message message) { + q1 q1Var; + int i = 1000; + try { + switch (message.what) { + case 0: + D(); + break; + case 1: + a0(message.arg1 != 0, message.arg2, true, 1); + break; + case 2: + f(); + break; + case 3: + Q((g) message.obj); + break; + case 4: + b0((x1) message.obj); + break; + case 5: + this.F = (j2) message.obj; + break; + case 6: + j0(false, true); + break; + case 7: + E(); + return true; + case 8: + s((x) message.obj); + break; + case 9: + o((x) message.obj); + break; + case 10: + G(); + break; + case 11: + c0(message.arg1); + break; + case 12: + d0(message.arg1 != 0); + break; + case 13: + W(message.arg1 != 0, (AtomicBoolean) message.obj); + break; + case 14: + b2 b2Var = (b2) message.obj; + Objects.requireNonNull(b2Var); + T(b2Var); + break; + case 15: + U((b2) message.obj); + break; + case 16: + x1 x1Var = (x1) message.obj; + t(x1Var, x1Var.k, true, false); + break; + case 17: + X((a) message.obj); + break; + case 18: + c((a) message.obj, message.arg1); + break; + case 19: + C((b) message.obj); + break; + case 20: + F(message.arg1, message.arg2, (k0) message.obj); + break; + case 21: + e0((k0) message.obj); + break; + case 22: + B(); + break; + case 23: + Z(message.arg1 != 0); + break; + case 24: + Y(message.arg1 == 1); + break; + case 25: + P(true); + break; + default: + return false; + } + } catch (ExoPlaybackException e2) { + e = e2; + if (e.type == 1 && (q1Var = this.B.i) != null) { + e = e.a(q1Var.f.a); + } + if (!e.isRecoverable || this.X != null) { + ExoPlaybackException exoPlaybackException = this.X; + if (exoPlaybackException != null) { + exoPlaybackException.addSuppressed(e); + e = this.X; + } + b.i.a.c.f3.q.b("ExoPlayerImplInternal", "Playback error", e); + j0(true, false); + this.G = this.G.e(e); + } else { + b.i.a.c.f3.q.c("ExoPlayerImplInternal", "Recoverable renderer error", e); + this.X = e; + o oVar = this.q; + oVar.d(oVar.i(25, e)); + } + } catch (DrmSession.DrmSessionException e3) { + p(e3, e3.errorCode); + } catch (ParserException e4) { + int i2 = e4.dataType; + if (i2 == 1) { + i = e4.contentIsMalformed ? 3001 : 3003; + } else if (i2 == 4) { + i = e4.contentIsMalformed ? 3002 : 3004; + } + p(e4, i); + } catch (DataSourceException e5) { + p(e5, e5.reason); + } catch (BehindLiveWindowException e6) { + p(e6, PointerIconCompat.TYPE_HAND); + } catch (IOException e7) { + p(e7, 2000); + } catch (RuntimeException e8) { + if ((e8 instanceof IllegalStateException) || (e8 instanceof IllegalArgumentException)) { + i = PointerIconCompat.TYPE_WAIT; + } + ExoPlaybackException b2 = ExoPlaybackException.b(e8, i); + b.i.a.c.f3.q.b("ExoPlayerImplInternal", "Playback error", b2); + j0(true, false); + this.G = this.G.e(b2); + } + A(); + return true; + } + + public final void i0() throws ExoPlaybackException { + this.L = false; + a1 a1Var = this.f994x; + a1Var.o = true; + a1Var.j.b(); + f2[] f2VarArr = this.j; + for (f2 f2Var : f2VarArr) { + if (w(f2Var)) { + f2Var.start(); + } + } + } + + public final long j(o2 o2Var, Object obj, long j) { + o2Var.n(o2Var.h(obj, this.u).l, this.t); + o2.c cVar = this.t; + if (cVar.f1028s != -9223372036854775807L && cVar.c()) { + o2.c cVar2 = this.t; + if (cVar2.v) { + long j2 = cVar2.t; + int i = e0.a; + return e0.B((j2 == -9223372036854775807L ? System.currentTimeMillis() : j2 + SystemClock.elapsedRealtime()) - this.t.f1028s) - (j + this.u.n); + } + } + return -9223372036854775807L; + } + + public final void j0(boolean z2, boolean z3) { + H(z2 || !this.P, false, true, false); + this.H.a(z3 ? 1 : 0); + this.o.i(); + f0(1); + } + + public final long k() { + q1 q1Var = this.B.i; + if (q1Var == null) { + return 0; + } + long j = q1Var.o; + if (!q1Var.d) { + return j; + } + int i = 0; + while (true) { + f2[] f2VarArr = this.j; + if (i >= f2VarArr.length) { + return j; + } + if (w(f2VarArr[i]) && this.j[i].h() == q1Var.c[i]) { + long t = this.j[i].t(); + if (t == Long.MIN_VALUE) { + return Long.MIN_VALUE; + } + j = Math.max(t, j); + } + i++; + } + } + + public final void k0() throws ExoPlaybackException { + a1 a1Var = this.f994x; + a1Var.o = false; + z zVar = a1Var.j; + if (zVar.k) { + zVar.a(zVar.e()); + zVar.k = false; + } + f2[] f2VarArr = this.j; + for (f2 f2Var : f2VarArr) { + if (w(f2Var) && f2Var.getState() == 2) { + f2Var.stop(); + } + } + } + + public final Pair l(o2 o2Var) { + long j = 0; + if (o2Var.q()) { + a0.a aVar = w1.a; + return Pair.create(w1.a, 0L); + } + Pair j2 = o2Var.j(this.t, this.u, o2Var.a(this.O), -9223372036854775807L); + a0.a o = this.B.o(o2Var, j2.first, 0); + long longValue = ((Long) j2.second).longValue(); + if (o.a()) { + o2Var.h(o.a, this.u); + if (o.c == this.u.d(o.f821b)) { + j = this.u.p.o; + } + longValue = j; + } + return Pair.create(o, Long.valueOf(longValue)); + } + + public final void l0() { + q1 q1Var = this.B.j; + boolean z2 = this.M || (q1Var != null && q1Var.a.h()); + w1 w1Var = this.G; + if (z2 != w1Var.h) { + this.G = new w1(w1Var.f1132b, w1Var.c, w1Var.d, w1Var.e, w1Var.f, w1Var.g, z2, w1Var.i, w1Var.j, w1Var.k, w1Var.l, w1Var.m, w1Var.n, w1Var.o, w1Var.r, w1Var.f1133s, w1Var.t, w1Var.p, w1Var.q); + } + } + + public final long m() { + return n(this.G.r); + } + + public final void m0(o2 o2Var, a0.a aVar, o2 o2Var2, a0.a aVar2, long j) { + if (o2Var.q() || !h0(o2Var, aVar)) { + float f2 = this.f994x.c().k; + x1 x1Var = this.G.o; + if (f2 != x1Var.k) { + this.f994x.i(x1Var); + return; + } + return; + } + o2Var.n(o2Var.h(aVar.a, this.u).l, this.t); + m1 m1Var = this.D; + o1.g gVar = this.t.f1029x; + int i = e0.a; + y0 y0Var = (y0) m1Var; + Objects.requireNonNull(y0Var); + y0Var.d = e0.B(gVar.l); + y0Var.g = e0.B(gVar.m); + y0Var.h = e0.B(gVar.n); + float f3 = gVar.o; + if (f3 == -3.4028235E38f) { + f3 = 0.97f; + } + y0Var.k = f3; + float f4 = gVar.p; + if (f4 == -3.4028235E38f) { + f4 = 1.03f; + } + y0Var.j = f4; + y0Var.a(); + if (j != -9223372036854775807L) { + y0 y0Var2 = (y0) this.D; + y0Var2.e = j(o2Var, aVar.a, j); + y0Var2.a(); + return; + } + Object obj = this.t.n; + Object obj2 = null; + if (!o2Var2.q()) { + obj2 = o2Var2.n(o2Var2.h(aVar2.a, this.u).l, this.t).n; + } + if (!e0.a(obj2, obj)) { + y0 y0Var3 = (y0) this.D; + y0Var3.e = -9223372036854775807L; + y0Var3.a(); + } + } + + public final long n(long j) { + q1 q1Var = this.B.j; + if (q1Var == null) { + return 0; + } + return Math.max(0L, j - (this.U - q1Var.o)); + } + + /* JADX INFO: finally extract failed */ + /* JADX WARNING: Removed duplicated region for block: B:146:0x0154 A[EDGE_INSN: B:146:0x0154->B:69:0x0154 ?: BREAK , SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:151:0x018d A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:161:0x01c4 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:163:0x01bb A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:60:0x0135 */ + /* JADX WARNING: Removed duplicated region for block: B:71:0x015c */ + /* JADX WARNING: Removed duplicated region for block: B:86:0x0192 */ + public final void n0() throws ExoPlaybackException { + long j; + h1 h1Var; + c cVar; + c cVar2; + h1 h1Var2; + long j2; + q1 q1Var = this.B.h; + if (q1Var != null) { + long k = q1Var.d ? q1Var.a.k() : -9223372036854775807L; + if (k != -9223372036854775807L) { + J(k); + if (k != this.G.t) { + w1 w1Var = this.G; + this.G = u(w1Var.c, k, w1Var.d, k, true, 5); + } + } else { + a1 a1Var = this.f994x; + boolean z2 = q1Var != this.B.i; + f2 f2Var = a1Var.l; + if (f2Var == null || f2Var.b() || (!a1Var.l.d() && (z2 || a1Var.l.j()))) { + a1Var.n = true; + if (a1Var.o) { + a1Var.j.b(); + } + } else { + s sVar = a1Var.m; + Objects.requireNonNull(sVar); + long e2 = sVar.e(); + if (a1Var.n) { + if (e2 < a1Var.j.e()) { + z zVar = a1Var.j; + if (zVar.k) { + zVar.a(zVar.e()); + zVar.k = false; + } + } else { + a1Var.n = false; + if (a1Var.o) { + a1Var.j.b(); + } + } + } + a1Var.j.a(e2); + x1 c2 = sVar.c(); + if (!c2.equals(a1Var.j.n)) { + z zVar2 = a1Var.j; + if (zVar2.k) { + zVar2.a(zVar2.e()); + } + zVar2.n = c2; + ((b0.b) ((h1) a1Var.k).q.i(16, c2)).b(); + } + } + long e3 = a1Var.e(); + this.U = e3; + long j3 = e3 - q1Var.o; + long j4 = this.G.t; + if (!this.f995y.isEmpty() && !this.G.c.a()) { + if (this.W) { + j4--; + this.W = false; + } + w1 w1Var2 = this.G; + int b2 = w1Var2.f1132b.b(w1Var2.c.a); + int min = Math.min(this.V, this.f995y.size()); + if (min > 0) { + cVar = this.f995y.get(min - 1); + j = j3; + h1Var = this; + while (true) { + if (cVar != null) { + break; + } + int i = cVar.k; + if (i <= b2 && (i != b2 || cVar.l <= j4)) { + break; + } + min--; + if (min <= 0) { + h1Var2 = h1Var; + j2 = j; + break; + } + cVar = h1Var.f995y.get(min - 1); + } + if (min < h1Var.f995y.size()) { + cVar2 = h1Var.f995y.get(min); + while (true) { + if (cVar2 == null || cVar2.m == null) { + break; + } + int i2 = cVar2.k; + if (i2 >= b2 && (i2 != b2 || cVar2.l > j4)) { + break; + } + min++; + if (min >= h1Var.f995y.size()) { + break; + } + cVar2 = h1Var.f995y.get(min); + } + while (cVar2 != null && cVar2.m != null && cVar2.k == b2) { + long j5 = cVar2.l; + if (j5 <= j4 || j5 > j) { + break; + } + try { + h1Var.T(cVar2.j); + Objects.requireNonNull(cVar2.j); + h1Var.f995y.remove(min); + cVar2 = min >= h1Var.f995y.size() ? h1Var.f995y.get(min) : null; + } catch (Throwable th) { + Objects.requireNonNull(cVar2.j); + h1Var.f995y.remove(min); + throw th; + } + } + h1Var.V = min; + } + cVar2 = null; + while (true) { + int i2 = cVar2.k; + min++; + if (min >= h1Var.f995y.size()) { + } + cVar2 = h1Var.f995y.get(min); + } + while (cVar2 != null) { + long j5 = cVar2.l; + h1Var.T(cVar2.j); + Objects.requireNonNull(cVar2.j); + h1Var.f995y.remove(min); + if (min >= h1Var.f995y.size()) { + } + } + h1Var.V = min; + } else { + j2 = j3; + h1Var2 = this; + } + j = j2; + h1Var = h1Var2; + cVar = null; + while (true) { + if (cVar != null) { + } + cVar = h1Var.f995y.get(min - 1); + } + if (min < h1Var.f995y.size()) { + } + cVar2 = null; + while (true) { + int i2 = cVar2.k; + min++; + if (min >= h1Var.f995y.size()) { + } + cVar2 = h1Var.f995y.get(min); + } + while (cVar2 != null) { + } + h1Var.V = min; + } + this.G.t = j3; + } + this.G.r = this.B.j.d(); + this.G.f1133s = m(); + w1 w1Var3 = this.G; + if (w1Var3.m && w1Var3.f == 3 && h0(w1Var3.f1132b, w1Var3.c)) { + w1 w1Var4 = this.G; + float f2 = 1.0f; + if (w1Var4.o.k == 1.0f) { + m1 m1Var = this.D; + long j6 = j(w1Var4.f1132b, w1Var4.c.a, w1Var4.t); + long m = m(); + y0 y0Var = (y0) m1Var; + if (y0Var.d != -9223372036854775807L) { + long j7 = j6 - m; + long j8 = y0Var.n; + if (j8 == -9223372036854775807L) { + y0Var.n = j7; + y0Var.o = 0; + } else { + float f3 = y0Var.c; + long max = Math.max(j7, (long) (((1.0f - f3) * ((float) j7)) + (((float) j8) * f3))); + y0Var.n = max; + long abs = Math.abs(j7 - max); + long j9 = y0Var.o; + float f4 = y0Var.c; + y0Var.o = (long) (((1.0f - f4) * ((float) abs)) + (((float) j9) * f4)); + } + if (y0Var.m == -9223372036854775807L || SystemClock.elapsedRealtime() - y0Var.m >= 1000) { + y0Var.m = SystemClock.elapsedRealtime(); + long j10 = (y0Var.o * 3) + y0Var.n; + if (y0Var.i > j10) { + float B = (float) e0.B(1000); + long[] jArr = {j10, y0Var.f, y0Var.i - (((long) ((y0Var.l - 1.0f) * B)) + ((long) ((y0Var.j - 1.0f) * B)))}; + b.i.a.f.e.o.f.u(true); + long j11 = jArr[0]; + for (int i3 = 1; i3 < 3; i3++) { + if (jArr[i3] > j11) { + j11 = jArr[i3]; + } + } + y0Var.i = j11; + } else { + long i4 = e0.i(j6 - ((long) (Math.max(0.0f, y0Var.l - 1.0f) / 1.0E-7f)), y0Var.i, j10); + y0Var.i = i4; + long j12 = y0Var.h; + if (j12 != -9223372036854775807L && i4 > j12) { + y0Var.i = j12; + } + } + long j13 = j6 - y0Var.i; + if (Math.abs(j13) < y0Var.a) { + y0Var.l = 1.0f; + } else { + y0Var.l = e0.g((1.0E-7f * ((float) j13)) + 1.0f, y0Var.k, y0Var.j); + } + f2 = y0Var.l; + } else { + f2 = y0Var.l; + } + } + if (this.f994x.c().k != f2) { + this.f994x.i(new x1(f2, this.G.o.l)); + t(this.G.o, this.f994x.c().k, false, false); + } + } + } + } + } + + public final void o(x xVar) { + s1 s1Var = this.B; + q1 q1Var = s1Var.j; + if (q1Var != null && q1Var.a == xVar) { + s1Var.m(this.U); + z(); + } + } + + public final void p(IOException iOException, int i) { + ExoPlaybackException exoPlaybackException = new ExoPlaybackException(0, iOException, i); + q1 q1Var = this.B.h; + if (q1Var != null) { + exoPlaybackException = exoPlaybackException.a(q1Var.f.a); + } + b.i.a.c.f3.q.b("ExoPlayerImplInternal", "Playback error", exoPlaybackException); + j0(false, false); + this.G = this.G.e(exoPlaybackException); + } + + public final void q(boolean z2) { + q1 q1Var = this.B.j; + a0.a aVar = q1Var == null ? this.G.c : q1Var.f.a; + boolean z3 = !this.G.l.equals(aVar); + if (z3) { + this.G = this.G.a(aVar); + } + w1 w1Var = this.G; + w1Var.r = q1Var == null ? w1Var.t : q1Var.d(); + this.G.f1133s = m(); + if ((z3 || z2) && q1Var != null && q1Var.d) { + this.o.d(this.j, q1Var.m, q1Var.n.c); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:164:0x033a */ + /* JADX WARNING: Removed duplicated region for block: B:165:0x033d */ + /* JADX WARNING: Removed duplicated region for block: B:180:0x0381 */ + /* JADX WARNING: Removed duplicated region for block: B:184:0x03ab */ + public final void r(o2 o2Var, boolean z2) throws ExoPlaybackException { + boolean z3; + boolean z4; + boolean z5; + a0.a aVar; + int i; + int i2; + long j; + Object obj; + long j2; + long j3; + f fVar; + long j4; + int i3; + Object obj2; + boolean z6; + int i4; + int i5; + long j5; + boolean z7; + boolean z8; + long j6; + boolean z9; + boolean z10; + int i6; + int i7; + boolean z11; + long j7; + Object obj3; + boolean z12; + g gVar; + Throwable th; + Object obj4; + boolean z13; + w1 w1Var = this.G; + g gVar2 = this.T; + s1 s1Var = this.B; + int i8 = this.N; + boolean z14 = this.O; + o2.c cVar = this.t; + o2.b bVar = this.u; + if (o2Var.q()) { + a0.a aVar2 = w1.a; + fVar = new f(w1.a, 0, -9223372036854775807L, false, true, false); + } else { + a0.a aVar3 = w1Var.c; + Object obj5 = aVar3.a; + boolean y2 = y(w1Var, bVar); + long j8 = (w1Var.c.a() || y2) ? w1Var.d : w1Var.t; + if (gVar2 != null) { + Object obj6 = obj5; + Pair M = M(o2Var, gVar2, true, i8, z14, cVar, bVar); + if (M == null) { + i6 = o2Var.a(z14); + j6 = j8; + z10 = false; + z9 = false; + z8 = true; + } else { + if (gVar2.c == -9223372036854775807L) { + i7 = o2Var.h(M.first, bVar).l; + j7 = j8; + obj3 = obj6; + z11 = false; + } else { + Object obj7 = M.first; + j7 = ((Long) M.second).longValue(); + obj3 = obj7; + z11 = true; + i7 = -1; + } + obj6 = obj3; + i6 = i7; + z8 = false; + z9 = w1Var.f == 4; + z10 = z11; + j6 = j7; + } + z3 = z10; + z5 = z9; + j = j6; + z4 = z8; + aVar = aVar3; + i = -1; + i2 = i6; + obj = obj6; + } else { + if (w1Var.f1132b.q()) { + i5 = o2Var.a(z14); + obj2 = obj5; + } else if (o2Var.b(obj5) == -1) { + obj2 = obj5; + Object N = N(cVar, bVar, i8, z14, obj5, w1Var.f1132b, o2Var); + if (N == null) { + i4 = o2Var.a(z14); + z7 = true; + } else { + i4 = o2Var.h(N, bVar).l; + z7 = false; + } + z6 = z7; + aVar = aVar3; + i2 = i4; + z4 = z6; + obj = obj2; + j = j8; + i = -1; + z5 = false; + z3 = false; + } else { + obj2 = obj5; + if (j8 == -9223372036854775807L) { + i5 = o2Var.h(obj2, bVar).l; + } else if (y2) { + aVar = aVar3; + w1Var.f1132b.h(aVar.a, bVar); + if (w1Var.f1132b.n(bVar.l, cVar).B == w1Var.f1132b.b(aVar.a)) { + Pair j9 = o2Var.j(cVar, bVar, o2Var.h(obj2, bVar).l, j8 + bVar.n); + Object obj8 = j9.first; + long longValue = ((Long) j9.second).longValue(); + obj = obj8; + j5 = longValue; + } else { + obj = obj2; + j5 = j8; + } + j = j5; + i2 = -1; + i = -1; + z5 = false; + z4 = false; + z3 = true; + } else { + aVar = aVar3; + i5 = -1; + i4 = i5; + z6 = false; + i2 = i4; + z4 = z6; + obj = obj2; + j = j8; + i = -1; + z5 = false; + z3 = false; + } + } + aVar = aVar3; + i4 = i5; + z6 = false; + i2 = i4; + z4 = z6; + obj = obj2; + j = j8; + i = -1; + z5 = false; + z3 = false; + } + if (i2 != i) { + Pair j10 = o2Var.j(cVar, bVar, i2, -9223372036854775807L); + Object obj9 = j10.first; + long longValue2 = ((Long) j10.second).longValue(); + obj = obj9; + j = longValue2; + j2 = -9223372036854775807L; + } else { + j2 = j; + } + a0.a o = s1Var.o(o2Var, obj, j); + boolean z15 = o.e == -1 || ((i3 = aVar.e) != -1 && o.f821b >= i3); + boolean equals = aVar.a.equals(obj); + boolean z16 = equals && !aVar.a() && !o.a() && z15; + o2Var.h(obj, bVar); + boolean z17 = equals && !y2 && j8 == j2 && ((o.a() && bVar.e(o.f821b)) || (aVar.a() && bVar.e(aVar.f821b))); + if (z16 || z17) { + o = aVar; + } + if (o.a()) { + if (o.equals(aVar)) { + j4 = w1Var.t; + } else { + o2Var.h(o.a, bVar); + j4 = o.c == bVar.d(o.f821b) ? bVar.p.o : 0; + } + j3 = j4; + } else { + j3 = j; + } + fVar = new f(o, j3, j2, z5, z4, z3); + } + a0.a aVar4 = fVar.a; + long j11 = fVar.c; + boolean z18 = fVar.d; + long j12 = fVar.f999b; + boolean z19 = !this.G.c.equals(aVar4) || j12 != this.G.t; + int i9 = 3; + try { + if (fVar.e) { + if (this.G.f != 1) { + f0(4); + } + H(false, false, false, true); + } + if (!z19) { + try { + z13 = false; + z12 = true; + if (!this.B.r(o2Var, this.U, k())) { + P(false); + } + } catch (Throwable th2) { + th = th2; + gVar = null; + w1 w1Var2 = this.G; + m0(o2Var, aVar4, w1Var2.f1132b, w1Var2.c, fVar.f ? j12 : -9223372036854775807L); + w1 w1Var3 = this.G; + obj4 = w1Var3.c.a; + o2 o2Var2 = w1Var3.f1132b; + z12 = false; + long j13 = this.G.e; + if (o2Var.b(obj4) == -1) { + } + this.G = u(aVar4, j12, j11, j13, z12, i9); + I(); + L(o2Var, this.G.f1132b); + this.G = this.G.g(o2Var); + if (!o2Var.q()) { + } + q(false); + throw th; + } + } else { + z13 = false; + z12 = true; + if (!o2Var.q()) { + for (q1 q1Var = this.B.h; q1Var != null; q1Var = q1Var.l) { + if (q1Var.f.a.equals(aVar4)) { + q1Var.f = this.B.h(o2Var, q1Var.f); + q1Var.j(); + } + } + j12 = R(aVar4, j12, z18); + } + } + w1 w1Var4 = this.G; + m0(o2Var, aVar4, w1Var4.f1132b, w1Var4.c, fVar.f ? j12 : -9223372036854775807L); + if (z19 || j11 != this.G.d) { + w1 w1Var5 = this.G; + Object obj10 = w1Var5.c.a; + o2 o2Var3 = w1Var5.f1132b; + if (!z19 || !z2 || o2Var3.q() || o2Var3.h(obj10, this.u).o) { + z12 = false; + } + long j14 = this.G.e; + if (o2Var.b(obj10) == -1) { + i9 = 4; + } + this.G = u(aVar4, j12, j11, j14, z12, i9); + } + I(); + L(o2Var, this.G.f1132b); + this.G = this.G.g(o2Var); + if (!o2Var.q()) { + this.T = null; + } + q(z13); + } catch (Throwable th3) { + th = th3; + gVar = null; + z12 = true; + w1 w1Var2 = this.G; + m0(o2Var, aVar4, w1Var2.f1132b, w1Var2.c, fVar.f ? j12 : -9223372036854775807L); + w1 w1Var3 = this.G; + obj4 = w1Var3.c.a; + o2 o2Var2 = w1Var3.f1132b; + z12 = false; + long j13 = this.G.e; + if (o2Var.b(obj4) == -1) { + } + this.G = u(aVar4, j12, j11, j13, z12, i9); + I(); + L(o2Var, this.G.f1132b); + this.G = this.G.g(o2Var); + if (!o2Var.q()) { + } + q(false); + throw th; + } + } + + public final void s(x xVar) throws ExoPlaybackException { + q1 q1Var = this.B.j; + if (q1Var != null && q1Var.a == xVar) { + float f2 = this.f994x.c().k; + o2 o2Var = this.G.f1132b; + q1Var.d = true; + q1Var.m = q1Var.a.n(); + r i = q1Var.i(f2, o2Var); + r1 r1Var = q1Var.f; + long j = r1Var.f1044b; + long j2 = r1Var.e; + if (j2 != -9223372036854775807L && j >= j2) { + j = Math.max(0L, j2 - 1); + } + long a2 = q1Var.a(i, j, false, new boolean[q1Var.i.length]); + long j3 = q1Var.o; + r1 r1Var2 = q1Var.f; + q1Var.o = (r1Var2.f1044b - a2) + j3; + q1Var.f = r1Var2.b(a2); + this.o.d(this.j, q1Var.m, q1Var.n.c); + if (q1Var == this.B.h) { + J(q1Var.f.f1044b); + g(); + w1 w1Var = this.G; + a0.a aVar = w1Var.c; + long j4 = q1Var.f.f1044b; + this.G = u(aVar, j4, w1Var.d, j4, false, 5); + } + z(); + } + } + + public final void t(x1 x1Var, float f2, boolean z2, boolean z3) throws ExoPlaybackException { + int i; + h1 h1Var = this; + if (z2) { + if (z3) { + h1Var.H.a(1); + } + w1 w1Var = h1Var.G; + h1Var = this; + h1Var.G = new w1(w1Var.f1132b, w1Var.c, w1Var.d, w1Var.e, w1Var.f, w1Var.g, w1Var.h, w1Var.i, w1Var.j, w1Var.k, w1Var.l, w1Var.m, w1Var.n, x1Var, w1Var.r, w1Var.f1133s, w1Var.t, w1Var.p, w1Var.q); + } + float f3 = x1Var.k; + q1 q1Var = h1Var.B.h; + while (true) { + i = 0; + if (q1Var == null) { + break; + } + j[] jVarArr = q1Var.n.c; + int length = jVarArr.length; + while (i < length) { + j jVar = jVarArr[i]; + if (jVar != null) { + jVar.i(f3); + } + i++; + } + q1Var = q1Var.l; + } + f2[] f2VarArr = h1Var.j; + int length2 = f2VarArr.length; + while (i < length2) { + f2 f2Var = f2VarArr[i]; + if (f2Var != null) { + f2Var.n(f2, x1Var.k); + } + i++; + } + } + + @CheckResult + public final w1 u(a0.a aVar, long j, long j2, long j3, boolean z2, int i) { + p pVar; + r rVar; + o0 o0Var; + p pVar2; + o0 o0Var2; + int i2 = 0; + this.W = this.W || j != this.G.t || !aVar.equals(this.G.c); + I(); + w1 w1Var = this.G; + o0 o0Var3 = w1Var.i; + r rVar2 = w1Var.j; + List list = w1Var.k; + if (this.C.j) { + q1 q1Var = this.B.h; + o0 o0Var4 = q1Var == null ? o0.j : q1Var.m; + r rVar3 = q1Var == null ? this.n : q1Var.n; + j[] jVarArr = rVar3.c; + b.i.a.f.e.o.f.z(4, "initialCapacity"); + Object[] objArr = new Object[4]; + int length = jVarArr.length; + int i3 = 0; + boolean z3 = false; + int i4 = 0; + while (i3 < length) { + j jVar = jVarArr[i3]; + if (jVar != null) { + Metadata metadata = jVar.d(i2).u; + if (metadata == null) { + o0Var2 = o0Var4; + Metadata metadata2 = new Metadata(new Metadata.Entry[i2]); + int i5 = i4 + 1; + if (objArr.length < i5) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i5)); + } + objArr[i4] = metadata2; + i4 = i5; + } else { + o0Var2 = o0Var4; + int i6 = i4 + 1; + if (objArr.length < i6) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i6)); + } + objArr[i4] = metadata; + i4 = i6; + z3 = true; + } + } else { + o0Var2 = o0Var4; + } + i3++; + o0Var4 = o0Var2; + i2 = 0; + } + if (z3) { + pVar2 = p.l(objArr, i4); + } else { + b.i.b.b.a aVar2 = p.k; + pVar2 = h0.l; + } + if (q1Var != null) { + r1 r1Var = q1Var.f; + if (r1Var.c != j2) { + q1Var.f = r1Var.a(j2); + } + } + pVar = pVar2; + rVar = rVar3; + o0Var = o0Var4; + } else if (!aVar.equals(w1Var.c)) { + o0 o0Var5 = o0.j; + r rVar4 = this.n; + b.i.b.b.a aVar3 = p.k; + o0Var = o0Var5; + rVar = rVar4; + pVar = h0.l; + } else { + o0Var = o0Var3; + rVar = rVar2; + pVar = list; + } + if (z2) { + d dVar = this.H; + if (!dVar.d || dVar.e == 5) { + dVar.a = true; + dVar.d = true; + dVar.e = i; + } else { + b.c.a.a0.d.j(i == 5); + } + } + return this.G.b(aVar, j, j2, j3, m(), o0Var, rVar, pVar); + } + + public final boolean v() { + q1 q1Var = this.B.j; + if (q1Var == null) { + return false; + } + return (!q1Var.d ? 0 : q1Var.a.c()) != Long.MIN_VALUE; + } + + public final boolean x() { + q1 q1Var = this.B.h; + long j = q1Var.f.e; + return q1Var.d && (j == -9223372036854775807L || this.G.t < j || !g0()); + } + + public final void z() { + boolean z2; + long j; + long j2; + if (!v()) { + z2 = false; + } else { + q1 q1Var = this.B.j; + long n = n(!q1Var.d ? 0 : q1Var.a.c()); + if (q1Var == this.B.h) { + j2 = this.U; + j = q1Var.o; + } else { + j2 = this.U - q1Var.o; + j = q1Var.f.f1044b; + } + z2 = this.o.g(j2 - j, n, this.f994x.c().k); + } + this.M = z2; + if (z2) { + q1 q1Var2 = this.B.j; + long j3 = this.U; + b.c.a.a0.d.D(q1Var2.g()); + q1Var2.a.g(j3 - q1Var2.o); + } + l0(); + } +} diff --git a/app/src/main/java/b/i/a/c/h2.java b/app/src/main/java/b/i/a/c/h2.java new file mode 100644 index 0000000000..9318a9e688 --- /dev/null +++ b/app/src/main/java/b/i/a/c/h2.java @@ -0,0 +1,25 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +/* compiled from: RendererConfiguration */ +public final class h2 { + public static final h2 a = new h2(false); + + /* renamed from: b reason: collision with root package name */ + public final boolean f1001b; + + public h2(boolean z2) { + this.f1001b = z2; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + return obj != null && h2.class == obj.getClass() && this.f1001b == ((h2) obj).f1001b; + } + + public int hashCode() { + return !this.f1001b ? 1 : 0; + } +} diff --git a/app/src/main/java/b/i/a/c/i.java b/app/src/main/java/b/i/a/c/i.java new file mode 100644 index 0000000000..1ea0810559 --- /dev/null +++ b/app/src/main/java/b/i/a/c/i.java @@ -0,0 +1,22 @@ +package b.i.a.c; + +import b.i.a.c.e1; +import b.i.a.c.f3.g; +import b.i.a.c.s2.g1; +import b.i.b.a.l; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class i implements l { + public final /* synthetic */ e1.b j; + + public /* synthetic */ i(e1.b bVar) { + this.j = bVar; + } + + @Override // b.i.b.a.l + public final Object get() { + g gVar = this.j.f909b; + Objects.requireNonNull(gVar); + return new g1(gVar); + } +} diff --git a/app/src/main/java/b/i/a/c/i0.java b/app/src/main/java/b/i/a/c/i0.java new file mode 100644 index 0000000000..7a0c8a55da --- /dev/null +++ b/app/src/main/java/b/i/a/c/i0.java @@ -0,0 +1,29 @@ +package b.i.a.c; + +import android.os.Bundle; +import b.c.a.a0.d; +import b.i.a.c.o1; +import b.i.a.c.w0; +/* compiled from: lambda */ +public final /* synthetic */ class i0 implements w0.a { + public static final /* synthetic */ i0 a = new i0(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + o1.d.a aVar = new o1.d.a(); + long j = bundle.getLong(o1.d.a(0), 0); + boolean z2 = true; + d.j(j >= 0); + aVar.a = j; + long j2 = bundle.getLong(o1.d.a(1), Long.MIN_VALUE); + if (j2 != Long.MIN_VALUE && j2 < 0) { + z2 = false; + } + d.j(z2); + aVar.f1021b = j2; + aVar.c = bundle.getBoolean(o1.d.a(2), false); + aVar.d = bundle.getBoolean(o1.d.a(3), false); + aVar.e = bundle.getBoolean(o1.d.a(4), false); + return aVar.a(); + } +} diff --git a/app/src/main/java/b/i/a/c/i1.java b/app/src/main/java/b/i/a/c/i1.java new file mode 100644 index 0000000000..4ab30058b0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/i1.java @@ -0,0 +1,23 @@ +package b.i.a.c; + +import java.util.HashSet; +/* compiled from: ExoPlayerLibraryInfo */ +public final class i1 { + public static final HashSet a = new HashSet<>(); + + /* renamed from: b reason: collision with root package name */ + public static String f1002b = "goog.exo.core"; + + public static synchronized void a(String str) { + synchronized (i1.class) { + if (a.add(str)) { + String str2 = f1002b; + StringBuilder sb = new StringBuilder(String.valueOf(str2).length() + 2 + str.length()); + sb.append(str2); + sb.append(", "); + sb.append(str); + f1002b = sb.toString(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/i2.java b/app/src/main/java/b/i/a/c/i2.java new file mode 100644 index 0000000000..2d64d38691 --- /dev/null +++ b/app/src/main/java/b/i/a/c/i2.java @@ -0,0 +1,11 @@ +package b.i.a.c; + +import android.os.Handler; +import b.i.a.c.b3.l; +import b.i.a.c.g3.x; +import b.i.a.c.t2.r; +import b.i.a.c.z2.e; +/* compiled from: RenderersFactory */ +public interface i2 { + f2[] a(Handler handler, x xVar, r rVar, l lVar, e eVar); +} diff --git a/app/src/main/java/b/i/a/c/j.java b/app/src/main/java/b/i/a/c/j.java new file mode 100644 index 0000000000..1820512600 --- /dev/null +++ b/app/src/main/java/b/i/a/c/j.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class j implements p.a { + public final /* synthetic */ f1 a; + + public /* synthetic */ j(f1 f1Var) { + this.a = f1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).A(this.a.D); + } +} diff --git a/app/src/main/java/b/i/a/c/j0.java b/app/src/main/java/b/i/a/c/j0.java new file mode 100644 index 0000000000..958b7faa8a --- /dev/null +++ b/app/src/main/java/b/i/a/c/j0.java @@ -0,0 +1,14 @@ +package b.i.a.c; + +import android.os.Bundle; +import b.i.a.c.o1; +import b.i.a.c.w0; +/* compiled from: lambda */ +public final /* synthetic */ class j0 implements w0.a { + public static final /* synthetic */ j0 a = new j0(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + return new o1.g(bundle.getLong(o1.g.a(0), -9223372036854775807L), bundle.getLong(o1.g.a(1), -9223372036854775807L), bundle.getLong(o1.g.a(2), -9223372036854775807L), bundle.getFloat(o1.g.a(3), -3.4028235E38f), bundle.getFloat(o1.g.a(4), -3.4028235E38f)); + } +} diff --git a/app/src/main/java/b/i/a/c/j1.java b/app/src/main/java/b/i/a/c/j1.java new file mode 100644 index 0000000000..4e25d5c139 --- /dev/null +++ b/app/src/main/java/b/i/a/c/j1.java @@ -0,0 +1,326 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.c.f3.e0; +import b.i.a.c.g3.n; +import b.i.a.c.w0; +import com.google.android.exoplayer2.drm.DrmInitData; +import com.google.android.exoplayer2.metadata.Metadata; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +/* compiled from: Format */ +public final class j1 implements w0 { + public static final j1 j = new b().a(); + public static final w0.a k = h0.a; + public final long A; + public final int B; + public final int C; + public final float D; + public final int E; + public final float F; + @Nullable + public final byte[] G; + public final int H; + @Nullable + public final n I; + public final int J; + public final int K; + public final int L; + public final int M; + public final int N; + public final int O; + public final int P; + public int Q; + @Nullable + public final String l; + @Nullable + public final String m; + @Nullable + public final String n; + public final int o; + public final int p; + public final int q; + public final int r; + + /* renamed from: s reason: collision with root package name */ + public final int f1003s; + @Nullable + public final String t; + @Nullable + public final Metadata u; + @Nullable + public final String v; + @Nullable + public final String w; + + /* renamed from: x reason: collision with root package name */ + public final int f1004x; + + /* renamed from: y reason: collision with root package name */ + public final List f1005y; + @Nullable + + /* renamed from: z reason: collision with root package name */ + public final DrmInitData f1006z; + + /* compiled from: Format */ + public static final class b { + public int A; + public int B; + public int C; + public int D; + @Nullable + public String a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public String f1007b; + @Nullable + public String c; + public int d; + public int e; + public int f; + public int g; + @Nullable + public String h; + @Nullable + public Metadata i; + @Nullable + public String j; + @Nullable + public String k; + public int l; + @Nullable + public List m; + @Nullable + public DrmInitData n; + public long o; + public int p; + public int q; + public float r; + + /* renamed from: s reason: collision with root package name */ + public int f1008s; + public float t; + @Nullable + public byte[] u; + public int v; + @Nullable + public n w; + + /* renamed from: x reason: collision with root package name */ + public int f1009x; + + /* renamed from: y reason: collision with root package name */ + public int f1010y; + + /* renamed from: z reason: collision with root package name */ + public int f1011z; + + public b() { + this.f = -1; + this.g = -1; + this.l = -1; + this.o = RecyclerView.FOREVER_NS; + this.p = -1; + this.q = -1; + this.r = -1.0f; + this.t = 1.0f; + this.v = -1; + this.f1009x = -1; + this.f1010y = -1; + this.f1011z = -1; + this.C = -1; + this.D = 0; + } + + public b(j1 j1Var, a aVar) { + this.a = j1Var.l; + this.f1007b = j1Var.m; + this.c = j1Var.n; + this.d = j1Var.o; + this.e = j1Var.p; + this.f = j1Var.q; + this.g = j1Var.r; + this.h = j1Var.t; + this.i = j1Var.u; + this.j = j1Var.v; + this.k = j1Var.w; + this.l = j1Var.f1004x; + this.m = j1Var.f1005y; + this.n = j1Var.f1006z; + this.o = j1Var.A; + this.p = j1Var.B; + this.q = j1Var.C; + this.r = j1Var.D; + this.f1008s = j1Var.E; + this.t = j1Var.F; + this.u = j1Var.G; + this.v = j1Var.H; + this.w = j1Var.I; + this.f1009x = j1Var.J; + this.f1010y = j1Var.K; + this.f1011z = j1Var.L; + this.A = j1Var.M; + this.B = j1Var.N; + this.C = j1Var.O; + this.D = j1Var.P; + } + + public j1 a() { + return new j1(this, null); + } + + public b b(int i) { + this.a = Integer.toString(i); + return this; + } + } + + public j1(b bVar, a aVar) { + this.l = bVar.a; + this.m = bVar.f1007b; + this.n = e0.C(bVar.c); + this.o = bVar.d; + this.p = bVar.e; + int i = bVar.f; + this.q = i; + int i2 = bVar.g; + this.r = i2; + this.f1003s = i2 != -1 ? i2 : i; + this.t = bVar.h; + this.u = bVar.i; + this.v = bVar.j; + this.w = bVar.k; + this.f1004x = bVar.l; + List list = bVar.m; + this.f1005y = list == null ? Collections.emptyList() : list; + DrmInitData drmInitData = bVar.n; + this.f1006z = drmInitData; + this.A = bVar.o; + this.B = bVar.p; + this.C = bVar.q; + this.D = bVar.r; + int i3 = bVar.f1008s; + int i4 = 0; + this.E = i3 == -1 ? 0 : i3; + float f = bVar.t; + this.F = f == -1.0f ? 1.0f : f; + this.G = bVar.u; + this.H = bVar.v; + this.I = bVar.w; + this.J = bVar.f1009x; + this.K = bVar.f1010y; + this.L = bVar.f1011z; + int i5 = bVar.A; + this.M = i5 == -1 ? 0 : i5; + int i6 = bVar.B; + this.N = i6 != -1 ? i6 : i4; + this.O = bVar.C; + int i7 = bVar.D; + if (i7 != 0 || drmInitData == null) { + this.P = i7; + } else { + this.P = 1; + } + } + + @Nullable + public static T b(@Nullable T t, @Nullable T t2) { + return t != null ? t : t2; + } + + public static String d(int i) { + return Integer.toString(i, 36); + } + + public b a() { + return new b(this, null); + } + + public boolean c(j1 j1Var) { + if (this.f1005y.size() != j1Var.f1005y.size()) { + return false; + } + for (int i = 0; i < this.f1005y.size(); i++) { + if (!Arrays.equals(this.f1005y.get(i), j1Var.f1005y.get(i))) { + return false; + } + } + return true; + } + + public boolean equals(@Nullable Object obj) { + int i; + if (this == obj) { + return true; + } + if (obj == null || j1.class != obj.getClass()) { + return false; + } + j1 j1Var = (j1) obj; + int i2 = this.Q; + return (i2 == 0 || (i = j1Var.Q) == 0 || i2 == i) && this.o == j1Var.o && this.p == j1Var.p && this.q == j1Var.q && this.r == j1Var.r && this.f1004x == j1Var.f1004x && this.A == j1Var.A && this.B == j1Var.B && this.C == j1Var.C && this.E == j1Var.E && this.H == j1Var.H && this.J == j1Var.J && this.K == j1Var.K && this.L == j1Var.L && this.M == j1Var.M && this.N == j1Var.N && this.O == j1Var.O && this.P == j1Var.P && Float.compare(this.D, j1Var.D) == 0 && Float.compare(this.F, j1Var.F) == 0 && e0.a(this.l, j1Var.l) && e0.a(this.m, j1Var.m) && e0.a(this.t, j1Var.t) && e0.a(this.v, j1Var.v) && e0.a(this.w, j1Var.w) && e0.a(this.n, j1Var.n) && Arrays.equals(this.G, j1Var.G) && e0.a(this.u, j1Var.u) && e0.a(this.I, j1Var.I) && e0.a(this.f1006z, j1Var.f1006z) && c(j1Var); + } + + public int hashCode() { + if (this.Q == 0) { + String str = this.l; + int i = 0; + int hashCode = (527 + (str == null ? 0 : str.hashCode())) * 31; + String str2 = this.m; + int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31; + String str3 = this.n; + int hashCode3 = (((((((((hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31) + this.o) * 31) + this.p) * 31) + this.q) * 31) + this.r) * 31; + String str4 = this.t; + int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31; + Metadata metadata = this.u; + int hashCode5 = (hashCode4 + (metadata == null ? 0 : metadata.hashCode())) * 31; + String str5 = this.v; + int hashCode6 = (hashCode5 + (str5 == null ? 0 : str5.hashCode())) * 31; + String str6 = this.w; + if (str6 != null) { + i = str6.hashCode(); + } + this.Q = ((((((((((((((((Float.floatToIntBits(this.F) + ((((Float.floatToIntBits(this.D) + ((((((((((hashCode6 + i) * 31) + this.f1004x) * 31) + ((int) this.A)) * 31) + this.B) * 31) + this.C) * 31)) * 31) + this.E) * 31)) * 31) + this.H) * 31) + this.J) * 31) + this.K) * 31) + this.L) * 31) + this.M) * 31) + this.N) * 31) + this.O) * 31) + this.P; + } + return this.Q; + } + + public String toString() { + String str = this.l; + String str2 = this.m; + String str3 = this.v; + String str4 = this.w; + String str5 = this.t; + int i = this.f1003s; + String str6 = this.n; + int i2 = this.B; + int i3 = this.C; + float f = this.D; + int i4 = this.J; + int i5 = this.K; + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(str6, b.d.b.a.a.b(str5, b.d.b.a.a.b(str4, b.d.b.a.a.b(str3, b.d.b.a.a.b(str2, b.d.b.a.a.b(str, 104)))))), "Format(", str, ", ", str2); + b.d.b.a.a.q0(Q, ", ", str3, ", ", str4); + Q.append(", "); + Q.append(str5); + Q.append(", "); + Q.append(i); + Q.append(", "); + Q.append(str6); + Q.append(", ["); + Q.append(i2); + Q.append(", "); + Q.append(i3); + Q.append(", "); + Q.append(f); + Q.append("], ["); + Q.append(i4); + Q.append(", "); + Q.append(i5); + Q.append("])"); + return Q.toString(); + } +} diff --git a/app/src/main/java/b/i/a/c/j2.java b/app/src/main/java/b/i/a/c/j2.java new file mode 100644 index 0000000000..fe5a35cf4c --- /dev/null +++ b/app/src/main/java/b/i/a/c/j2.java @@ -0,0 +1,53 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +/* compiled from: SeekParameters */ +public final class j2 { + public static final j2 a; + + /* renamed from: b reason: collision with root package name */ + public static final j2 f1012b; + public final long c; + public final long d; + + static { + j2 j2Var = new j2(0, 0); + a = j2Var; + boolean z2 = true; + d.j(RecyclerView.FOREVER_NS >= 0); + d.j(RecyclerView.FOREVER_NS >= 0); + d.j(RecyclerView.FOREVER_NS >= 0); + d.j(0 >= 0); + d.j(0 >= 0); + if (RecyclerView.FOREVER_NS < 0) { + z2 = false; + } + d.j(z2); + f1012b = j2Var; + } + + public j2(long j, long j2) { + boolean z2 = true; + d.j(j >= 0); + d.j(j2 < 0 ? false : z2); + this.c = j; + this.d = j2; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || j2.class != obj.getClass()) { + return false; + } + j2 j2Var = (j2) obj; + return this.c == j2Var.c && this.d == j2Var.d; + } + + public int hashCode() { + return (((int) this.c) * 31) + ((int) this.d); + } +} diff --git a/app/src/main/java/b/i/a/c/k.java b/app/src/main/java/b/i/a/c/k.java new file mode 100644 index 0000000000..c3c68fc950 --- /dev/null +++ b/app/src/main/java/b/i/a/c/k.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class k implements p.a { + public final /* synthetic */ int a; + + public /* synthetic */ k(int i) { + this.a = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).L(this.a); + } +} diff --git a/app/src/main/java/b/i/a/c/k0.java b/app/src/main/java/b/i/a/c/k0.java new file mode 100644 index 0000000000..366b3b33f6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/k0.java @@ -0,0 +1,22 @@ +package b.i.a.c; + +import android.os.Bundle; +import b.i.a.c.o1; +import b.i.a.c.w0; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class k0 implements w0.a { + public static final /* synthetic */ k0 a = new k0(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + String string = bundle.getString(o1.a(0), ""); + Objects.requireNonNull(string); + Bundle bundle2 = bundle.getBundle(o1.a(1)); + o1.g a2 = bundle2 == null ? o1.g.j : o1.g.k.a(bundle2); + Bundle bundle3 = bundle.getBundle(o1.a(2)); + p1 a3 = bundle3 == null ? p1.j : p1.k.a(bundle3); + Bundle bundle4 = bundle.getBundle(o1.a(3)); + return new o1(string, bundle4 == null ? o1.e.p : o1.d.j.a(bundle4), null, a2, a3); + } +} diff --git a/app/src/main/java/b/i/a/c/k1.java b/app/src/main/java/b/i/a/c/k1.java new file mode 100644 index 0000000000..72a410234d --- /dev/null +++ b/app/src/main/java/b/i/a/c/k1.java @@ -0,0 +1,18 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import com.google.android.exoplayer2.drm.DrmSession; +/* compiled from: FormatHolder */ +public final class k1 { + @Nullable + public DrmSession a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public j1 f1013b; + + public void a() { + this.a = null; + this.f1013b = null; + } +} diff --git a/app/src/main/java/b/i/a/c/k2.java b/app/src/main/java/b/i/a/c/k2.java new file mode 100644 index 0000000000..0293d233b4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/k2.java @@ -0,0 +1,1137 @@ +package b.i.a.c; + +import android.content.Context; +import android.graphics.Rect; +import android.graphics.SurfaceTexture; +import android.media.AudioManager; +import android.media.AudioTrack; +import android.media.MediaFormat; +import android.os.Handler; +import android.os.Looper; +import android.util.Log; +import android.util.SparseBooleanArray; +import android.view.Surface; +import android.view.SurfaceHolder; +import android.view.SurfaceView; +import android.view.TextureView; +import androidx.annotation.Nullable; +import androidx.core.view.PointerIconCompat; +import b.i.a.c.a3.o0; +import b.i.a.c.b2; +import b.i.a.c.b3.l; +import b.i.a.c.c3.n; +import b.i.a.c.e1; +import b.i.a.c.f3.b0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.j; +import b.i.a.c.f3.p; +import b.i.a.c.g3.t; +import b.i.a.c.g3.u; +import b.i.a.c.g3.w; +import b.i.a.c.g3.x; +import b.i.a.c.g3.y; +import b.i.a.c.g3.z.d; +import b.i.a.c.g3.z.k; +import b.i.a.c.m2; +import b.i.a.c.p1; +import b.i.a.c.s0; +import b.i.a.c.s2.g1; +import b.i.a.c.s2.h1; +import b.i.a.c.t0; +import b.i.a.c.t2.o; +import b.i.a.c.t2.q; +import b.i.a.c.t2.r; +import b.i.a.c.v2.g; +import b.i.a.c.y1; +import b.i.a.c.z2.e; +import com.discord.utilities.rest.SendUtils; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.ExoTimeoutException; +import com.google.android.exoplayer2.PlaybackException; +import com.google.android.exoplayer2.metadata.Metadata; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.CopyOnWriteArraySet; +import java.util.concurrent.TimeoutException; +import org.webrtc.MediaStreamTrack; +/* compiled from: SimpleExoPlayer */ +@Deprecated +public class k2 extends u0 implements e1 { + public o A; + public float B; + public boolean C; + public List D; + public boolean E; + public boolean F; + public boolean G; + public c1 H; + public y I; + + /* renamed from: b reason: collision with root package name */ + public final f2[] f1014b; + public final j c = new j(); + public final Context d; + public final f1 e; + public final b f; + public final c g; + public final CopyOnWriteArraySet h; + public final g1 i; + public final s0 j; + public final t0 k; + public final m2 l; + public final q2 m; + public final r2 n; + public final long o; + @Nullable + public AudioTrack p; + @Nullable + public Object q; + @Nullable + public Surface r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public SurfaceHolder f1015s; + @Nullable + public k t; + public boolean u; + @Nullable + public TextureView v; + public int w; + + /* renamed from: x reason: collision with root package name */ + public int f1016x; + + /* renamed from: y reason: collision with root package name */ + public int f1017y; + + /* renamed from: z reason: collision with root package name */ + public int f1018z; + + /* compiled from: SimpleExoPlayer */ + public final class b implements x, r, l, e, SurfaceHolder.Callback, TextureView.SurfaceTextureListener, k.b, t0.b, s0.b, m2.b, y1.c, e1.a { + public b(a aVar) { + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void A(p1 p1Var) { + z1.f(this, p1Var); + } + + @Override // b.i.a.c.t2.r + public void B(String str) { + k2.this.i.B(str); + } + + @Override // b.i.a.c.t2.r + public void C(String str, long j, long j2) { + k2.this.i.C(str, j, j2); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void D(boolean z2) { + z1.p(this, z2); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void E(y1 y1Var, y1.d dVar) { + z1.b(this, y1Var, dVar); + } + + @Override // b.i.a.c.g3.x + public void F(int i, long j) { + k2.this.i.F(i, j); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void H(boolean z2, int i) { + z1.k(this, z2, i); + } + + @Override // b.i.a.c.t2.r + public void I(j1 j1Var, @Nullable g gVar) { + Objects.requireNonNull(k2.this); + k2.this.i.I(j1Var, gVar); + } + + @Override // b.i.a.c.g3.x + public void K(Object obj, long j) { + k2.this.i.K(obj, j); + k2 k2Var = k2.this; + if (k2Var.q == obj) { + Iterator it = k2Var.h.iterator(); + while (it.hasNext()) { + it.next().c(); + } + } + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void L(int i) { + z1.n(this, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void M(o1 o1Var, int i) { + z1.e(this, o1Var, i); + } + + @Override // b.i.a.c.t2.r + public void N(Exception exc) { + k2.this.i.N(exc); + } + + @Override // b.i.a.c.g3.x + public /* synthetic */ void O(j1 j1Var) { + w.a(this, j1Var); + } + + @Override // b.i.a.c.g3.x + public void P(b.i.a.c.v2.e eVar) { + Objects.requireNonNull(k2.this); + k2.this.i.P(eVar); + } + + @Override // b.i.a.c.g3.x + public void Q(j1 j1Var, @Nullable g gVar) { + Objects.requireNonNull(k2.this); + k2.this.i.Q(j1Var, gVar); + } + + @Override // b.i.a.c.t2.r + public void R(long j) { + k2.this.i.R(j); + } + + @Override // b.i.a.c.t2.r + public void T(Exception exc) { + k2.this.i.T(exc); + } + + @Override // b.i.a.c.t2.r + public /* synthetic */ void U(j1 j1Var) { + q.a(this, j1Var); + } + + @Override // b.i.a.c.g3.x + public void V(Exception exc) { + k2.this.i.V(exc); + } + + @Override // b.i.a.c.y1.c + public void W(boolean z2, int i) { + k2.d0(k2.this); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void Y(o0 o0Var, n nVar) { + z1.r(this, o0Var, nVar); + } + + @Override // b.i.a.c.g3.x + public void Z(b.i.a.c.v2.e eVar) { + k2.this.i.Z(eVar); + Objects.requireNonNull(k2.this); + Objects.requireNonNull(k2.this); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void a() { + z1.o(this); + } + + @Override // b.i.a.c.z2.e + public void b(Metadata metadata) { + k2.this.i.b(metadata); + f1 f1Var = k2.this.e; + p1.b a = f1Var.E.a(); + int i = 0; + while (true) { + Metadata.Entry[] entryArr = metadata.j; + if (i >= entryArr.length) { + break; + } + entryArr[i].n(a); + i++; + } + f1Var.E = a.a(); + p1 e02 = f1Var.e0(); + if (!e02.equals(f1Var.D)) { + f1Var.D = e02; + p pVar = f1Var.j; + pVar.b(14, new j(f1Var)); + pVar.a(); + } + Iterator it = k2.this.h.iterator(); + while (it.hasNext()) { + it.next().b(metadata); + } + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void b0(x1 x1Var) { + z1.g(this, x1Var); + } + + @Override // b.i.a.c.t2.r + public void d(boolean z2) { + k2 k2Var = k2.this; + if (k2Var.C != z2) { + k2Var.C = z2; + k2Var.i.d(z2); + Iterator it = k2Var.h.iterator(); + while (it.hasNext()) { + it.next().d(k2Var.C); + } + } + } + + @Override // b.i.a.c.b3.l + public void e(List list) { + k2 k2Var = k2.this; + k2Var.D = list; + Iterator it = k2Var.h.iterator(); + while (it.hasNext()) { + it.next().e(list); + } + } + + @Override // b.i.a.c.t2.r + public void e0(int i, long j, long j2) { + k2.this.i.e0(i, j, j2); + } + + @Override // b.i.a.c.g3.x + public void f(y yVar) { + k2 k2Var = k2.this; + k2Var.I = yVar; + k2Var.i.f(yVar); + Iterator it = k2.this.h.iterator(); + while (it.hasNext()) { + it.next().f(yVar); + } + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void f0(PlaybackException playbackException) { + z1.j(this, playbackException); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void g(y1.f fVar, y1.f fVar2, int i) { + z1.m(this, fVar, fVar2, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void h(int i) { + z1.h(this, i); + } + + @Override // b.i.a.c.g3.x + public void h0(long j, int i) { + k2.this.i.h0(j, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void i(boolean z2) { + z1.d(this, z2); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void j(int i) { + z1.l(this, i); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void j0(boolean z2) { + z1.c(this, z2); + } + + @Override // b.i.a.c.t2.r + public void k(b.i.a.c.v2.e eVar) { + k2.this.i.k(eVar); + Objects.requireNonNull(k2.this); + Objects.requireNonNull(k2.this); + } + + @Override // b.i.a.c.g3.x + public void l(String str) { + k2.this.i.l(str); + } + + @Override // b.i.a.c.t2.r + public void m(b.i.a.c.v2.e eVar) { + Objects.requireNonNull(k2.this); + k2.this.i.m(eVar); + } + + @Override // b.i.a.c.g3.x + public void n(String str, long j, long j2) { + k2.this.i.n(str, j, j2); + } + + @Override // b.i.a.c.e1.a + public void o(boolean z2) { + k2.d0(k2.this); + } + + @Override // android.view.TextureView.SurfaceTextureListener + public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i2) { + k2 k2Var = k2.this; + Objects.requireNonNull(k2Var); + Surface surface = new Surface(surfaceTexture); + k2Var.l0(surface); + k2Var.r = surface; + k2.this.h0(i, i2); + } + + @Override // android.view.TextureView.SurfaceTextureListener + public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) { + k2.this.l0(null); + k2.this.h0(0, 0); + return true; + } + + @Override // android.view.TextureView.SurfaceTextureListener + public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i, int i2) { + k2.this.h0(i, i2); + } + + @Override // android.view.TextureView.SurfaceTextureListener + public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) { + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void p(p2 p2Var) { + z1.s(this, p2Var); + } + + @Override // b.i.a.c.g3.z.k.b + public void q(Surface surface) { + k2.this.l0(null); + } + + @Override // b.i.a.c.y1.c + public void r(boolean z2) { + Objects.requireNonNull(k2.this); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void s(PlaybackException playbackException) { + z1.i(this, playbackException); + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceChanged(SurfaceHolder surfaceHolder, int i, int i2, int i3) { + k2.this.h0(i2, i3); + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceCreated(SurfaceHolder surfaceHolder) { + k2 k2Var = k2.this; + if (k2Var.u) { + k2Var.l0(surfaceHolder.getSurface()); + } + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceDestroyed(SurfaceHolder surfaceHolder) { + k2 k2Var = k2.this; + if (k2Var.u) { + k2Var.l0(null); + } + k2.this.h0(0, 0); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void t(y1.b bVar) { + z1.a(this, bVar); + } + + @Override // b.i.a.c.g3.z.k.b + public void u(Surface surface) { + k2.this.l0(surface); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void v(o2 o2Var, int i) { + z1.q(this, o2Var, i); + } + + @Override // b.i.a.c.e1.a + public /* synthetic */ void x(boolean z2) { + d1.a(this, z2); + } + + @Override // b.i.a.c.y1.c + public void y(int i) { + k2.d0(k2.this); + } + } + + /* compiled from: SimpleExoPlayer */ + public static final class c implements u, d, b2.b { + @Nullable + public u j; + @Nullable + public d k; + @Nullable + public u l; + @Nullable + public d m; + + public c(a aVar) { + } + + @Override // b.i.a.c.g3.z.d + public void a(long j, float[] fArr) { + d dVar = this.m; + if (dVar != null) { + dVar.a(j, fArr); + } + d dVar2 = this.k; + if (dVar2 != null) { + dVar2.a(j, fArr); + } + } + + @Override // b.i.a.c.g3.z.d + public void c() { + d dVar = this.m; + if (dVar != null) { + dVar.c(); + } + d dVar2 = this.k; + if (dVar2 != null) { + dVar2.c(); + } + } + + @Override // b.i.a.c.g3.u + public void e(long j, long j2, j1 j1Var, @Nullable MediaFormat mediaFormat) { + u uVar = this.l; + if (uVar != null) { + uVar.e(j, j2, j1Var, mediaFormat); + } + u uVar2 = this.j; + if (uVar2 != null) { + uVar2.e(j, j2, j1Var, mediaFormat); + } + } + + @Override // b.i.a.c.b2.b + public void r(int i, @Nullable Object obj) { + if (i == 7) { + this.j = (u) obj; + } else if (i == 8) { + this.k = (d) obj; + } else if (i == 10000) { + k kVar = (k) obj; + if (kVar == null) { + this.l = null; + this.m = null; + return; + } + this.l = kVar.getVideoFrameMetadataListener(); + this.m = kVar.getCameraMotionListener(); + } + } + } + + public k2(e1.b bVar) { + k2 k2Var; + Throwable th; + try { + Context applicationContext = bVar.a.getApplicationContext(); + this.d = applicationContext; + this.i = bVar.h.get(); + this.A = bVar.j; + this.w = bVar.k; + this.C = false; + this.o = bVar.r; + b bVar2 = new b(null); + this.f = bVar2; + this.g = new c(null); + this.h = new CopyOnWriteArraySet<>(); + Handler handler = new Handler(bVar.i); + this.f1014b = bVar.c.get().a(handler, bVar2, bVar2, bVar2, bVar2); + this.B = 1.0f; + if (e0.a < 21) { + AudioTrack audioTrack = this.p; + if (!(audioTrack == null || audioTrack.getAudioSessionId() == 0)) { + this.p.release(); + this.p = null; + } + if (this.p == null) { + this.p = new AudioTrack(3, SendUtils.MAX_MESSAGE_CHARACTER_COUNT_PREMIUM, 4, 2, 2, 0, 0); + } + this.f1018z = this.p.getAudioSessionId(); + } else { + AudioManager audioManager = (AudioManager) applicationContext.getSystemService(MediaStreamTrack.AUDIO_TRACK_KIND); + this.f1018z = audioManager == null ? -1 : audioManager.generateAudioSessionId(); + } + this.D = Collections.emptyList(); + this.E = true; + SparseBooleanArray sparseBooleanArray = new SparseBooleanArray(); + int[] iArr = {21, 22, 23, 24, 25, 26, 27, 28}; + for (int i = 0; i < 8; i++) { + int i2 = iArr[i]; + b.c.a.a0.d.D(!false); + sparseBooleanArray.append(i2, true); + } + b.c.a.a0.d.D(!false); + try { + f1 f1Var = new f1(this.f1014b, bVar.e.get(), bVar.d.get(), bVar.f.get(), bVar.g.get(), this.i, bVar.l, bVar.m, bVar.n, bVar.o, bVar.p, bVar.q, false, bVar.f909b, bVar.i, this, new y1.b(new b.i.a.c.f3.n(sparseBooleanArray, null), null)); + k2Var = this; + try { + k2Var.e = f1Var; + f1Var.d0(k2Var.f); + f1Var.k.add(k2Var.f); + s0 s0Var = new s0(bVar.a, handler, k2Var.f); + k2Var.j = s0Var; + s0Var.a(false); + t0 t0Var = new t0(bVar.a, handler, k2Var.f); + k2Var.k = t0Var; + t0Var.c(null); + m2 m2Var = new m2(bVar.a, handler, k2Var.f); + k2Var.l = m2Var; + m2Var.c(e0.t(k2Var.A.m)); + q2 q2Var = new q2(bVar.a); + k2Var.m = q2Var; + q2Var.c = false; + q2Var.a(); + r2 r2Var = new r2(bVar.a); + k2Var.n = r2Var; + r2Var.c = false; + r2Var.a(); + k2Var.H = f0(m2Var); + k2Var.I = y.j; + k2Var.j0(1, 10, Integer.valueOf(k2Var.f1018z)); + k2Var.j0(2, 10, Integer.valueOf(k2Var.f1018z)); + k2Var.j0(1, 3, k2Var.A); + k2Var.j0(2, 4, Integer.valueOf(k2Var.w)); + k2Var.j0(2, 5, 0); + k2Var.j0(1, 9, Boolean.valueOf(k2Var.C)); + k2Var.j0(2, 7, k2Var.g); + k2Var.j0(6, 8, k2Var.g); + k2Var.c.b(); + } catch (Throwable th2) { + th = th2; + k2Var.c.b(); + throw th; + } + } catch (Throwable th3) { + th = th3; + k2Var = this; + k2Var.c.b(); + throw th; + } + } catch (Throwable th4) { + th = th4; + k2Var = this; + k2Var.c.b(); + throw th; + } + } + + public static void d0(k2 k2Var) { + int y2 = k2Var.y(); + boolean z2 = true; + if (y2 != 1) { + if (y2 == 2 || y2 == 3) { + k2Var.n0(); + boolean z3 = k2Var.e.F.q; + q2 q2Var = k2Var.m; + if (!k2Var.j() || z3) { + z2 = false; + } + q2Var.d = z2; + q2Var.a(); + r2 r2Var = k2Var.n; + r2Var.d = k2Var.j(); + r2Var.a(); + return; + } else if (y2 != 4) { + throw new IllegalStateException(); + } + } + q2 q2Var2 = k2Var.m; + q2Var2.d = false; + q2Var2.a(); + r2 r2Var2 = k2Var.n; + r2Var2.d = false; + r2Var2.a(); + } + + public static c1 f0(m2 m2Var) { + Objects.requireNonNull(m2Var); + return new c1(0, e0.a >= 28 ? m2Var.d.getStreamMinVolume(m2Var.f) : 0, m2Var.d.getStreamMaxVolume(m2Var.f)); + } + + public static int g0(boolean z2, int i) { + return (!z2 || i == 1) ? 1 : 2; + } + + @Override // b.i.a.c.y1 + public List A() { + n0(); + return this.D; + } + + @Override // b.i.a.c.y1 + public int B() { + n0(); + return this.e.B(); + } + + @Override // b.i.a.c.y1 + public int C() { + n0(); + return this.e.C(); + } + + @Override // b.i.a.c.y1 + public void E(int i) { + n0(); + this.e.E(i); + } + + @Override // b.i.a.c.y1 + public void F(@Nullable SurfaceView surfaceView) { + n0(); + SurfaceHolder holder = surfaceView == null ? null : surfaceView.getHolder(); + n0(); + if (holder != null && holder == this.f1015s) { + e0(); + } + } + + @Override // b.i.a.c.y1 + public int G() { + n0(); + return this.e.F.n; + } + + @Override // b.i.a.c.y1 + public p2 H() { + n0(); + return this.e.H(); + } + + @Override // b.i.a.c.y1 + public int I() { + n0(); + return this.e.v; + } + + @Override // b.i.a.c.y1 + public long J() { + n0(); + return this.e.J(); + } + + @Override // b.i.a.c.y1 + public o2 K() { + n0(); + return this.e.F.f1132b; + } + + @Override // b.i.a.c.y1 + public Looper L() { + return this.e.q; + } + + @Override // b.i.a.c.y1 + public boolean M() { + n0(); + return this.e.w; + } + + @Override // b.i.a.c.y1 + public long N() { + n0(); + return this.e.N(); + } + + @Override // b.i.a.c.y1 + public void Q(@Nullable TextureView textureView) { + n0(); + if (textureView == null) { + e0(); + return; + } + i0(); + this.v = textureView; + if (textureView.getSurfaceTextureListener() != null) { + Log.w("SimpleExoPlayer", "Replacing existing SurfaceTextureListener."); + } + textureView.setSurfaceTextureListener(this.f); + SurfaceTexture surfaceTexture = textureView.isAvailable() ? textureView.getSurfaceTexture() : null; + if (surfaceTexture == null) { + l0(null); + h0(0, 0); + return; + } + Surface surface = new Surface(surfaceTexture); + l0(surface); + this.r = surface; + h0(textureView.getWidth(), textureView.getHeight()); + } + + @Override // b.i.a.c.y1 + public p1 S() { + return this.e.D; + } + + @Override // b.i.a.c.y1 + public long T() { + n0(); + return this.e.T(); + } + + @Override // b.i.a.c.y1 + public long U() { + n0(); + return this.e.f945s; + } + + @Override // b.i.a.c.y1 + public void a() { + n0(); + boolean j = j(); + int e = this.k.e(j, 2); + m0(j, e, g0(j, e)); + this.e.a(); + } + + @Override // b.i.a.c.y1 + public x1 c() { + n0(); + return this.e.F.o; + } + + public void e0() { + n0(); + i0(); + l0(null); + h0(0, 0); + } + + @Override // b.i.a.c.y1 + public boolean f() { + n0(); + return this.e.f(); + } + + @Override // b.i.a.c.y1 + public long g() { + n0(); + return e0.M(this.e.F.f1133s); + } + + @Override // b.i.a.c.y1 + public void h(int i, long j) { + n0(); + g1 g1Var = this.i; + if (!g1Var.r) { + h1.a k0 = g1Var.k0(); + g1Var.r = true; + b.i.a.c.s2.o oVar = new b.i.a.c.s2.o(k0); + g1Var.n.put(-1, k0); + p

pVar = g1Var.o; + pVar.b(-1, oVar); + pVar.a(); + } + this.e.h(i, j); + } + + public final void h0(int i, int i2) { + if (i != this.f1016x || i2 != this.f1017y) { + this.f1016x = i; + this.f1017y = i2; + this.i.a0(i, i2); + Iterator it = this.h.iterator(); + while (it.hasNext()) { + it.next().a0(i, i2); + } + } + } + + @Override // b.i.a.c.y1 + public y1.b i() { + n0(); + return this.e.C; + } + + public final void i0() { + if (this.t != null) { + b2 f02 = this.e.f0(this.g); + f02.f(10000); + f02.e(null); + f02.d(); + k kVar = this.t; + kVar.j.remove(this.f); + this.t = null; + } + TextureView textureView = this.v; + if (textureView != null) { + if (textureView.getSurfaceTextureListener() != this.f) { + Log.w("SimpleExoPlayer", "SurfaceTextureListener already unset or replaced."); + } else { + this.v.setSurfaceTextureListener(null); + } + this.v = null; + } + SurfaceHolder surfaceHolder = this.f1015s; + if (surfaceHolder != null) { + surfaceHolder.removeCallback(this.f); + this.f1015s = null; + } + } + + @Override // b.i.a.c.y1 + public boolean j() { + n0(); + return this.e.F.m; + } + + public final void j0(int i, int i2, @Nullable Object obj) { + f2[] f2VarArr = this.f1014b; + for (f2 f2Var : f2VarArr) { + if (f2Var.x() == i) { + b2 f02 = this.e.f0(f2Var); + b.c.a.a0.d.D(!f02.i); + f02.e = i2; + b.c.a.a0.d.D(!f02.i); + f02.f = obj; + f02.d(); + } + } + } + + @Override // b.i.a.c.y1 + public void k(boolean z2) { + n0(); + this.e.k(z2); + } + + public final void k0(SurfaceHolder surfaceHolder) { + this.u = false; + this.f1015s = surfaceHolder; + surfaceHolder.addCallback(this.f); + Surface surface = this.f1015s.getSurface(); + if (surface == null || !surface.isValid()) { + h0(0, 0); + return; + } + Rect surfaceFrame = this.f1015s.getSurfaceFrame(); + h0(surfaceFrame.width(), surfaceFrame.height()); + } + + @Override // b.i.a.c.y1 + public long l() { + n0(); + Objects.requireNonNull(this.e); + return 3000; + } + + public final void l0(@Nullable Object obj) { + boolean z2; + ArrayList arrayList = new ArrayList(); + f2[] f2VarArr = this.f1014b; + for (f2 f2Var : f2VarArr) { + if (f2Var.x() == 2) { + b2 f02 = this.e.f0(f2Var); + f02.f(1); + b.c.a.a0.d.D(true ^ f02.i); + f02.f = obj; + f02.d(); + arrayList.add(f02); + } + } + Object obj2 = this.q; + if (obj2 == null || obj2 == obj) { + z2 = false; + } else { + try { + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + ((b2) it.next()).a(this.o); + } + } catch (InterruptedException unused) { + Thread.currentThread().interrupt(); + } catch (TimeoutException unused2) { + z2 = true; + } + z2 = false; + Object obj3 = this.q; + Surface surface = this.r; + if (obj3 == surface) { + surface.release(); + this.r = null; + } + } + this.q = obj; + if (z2) { + f1 f1Var = this.e; + ExoPlaybackException b2 = ExoPlaybackException.b(new ExoTimeoutException(3), PointerIconCompat.TYPE_HELP); + w1 w1Var = f1Var.F; + w1 a2 = w1Var.a(w1Var.c); + a2.r = a2.t; + a2.f1133s = 0; + w1 e = a2.f(1).e(b2); + f1Var.f946x++; + ((b0.b) f1Var.i.q.c(6)).b(); + f1Var.s0(e, 0, 1, false, e.f1132b.q() && !f1Var.F.f1132b.q(), 4, f1Var.g0(e), -1); + } + } + + @Override // b.i.a.c.y1 + public int m() { + n0(); + return this.e.m(); + } + + public final void m0(boolean z2, int i, int i2) { + int i3 = 0; + boolean z3 = z2 && i != -1; + if (z3 && i != 1) { + i3 = 1; + } + this.e.q0(z3, i3, i2); + } + + @Override // b.i.a.c.y1 + public void n(@Nullable TextureView textureView) { + n0(); + if (textureView != null && textureView == this.v) { + e0(); + } + } + + public final void n0() { + j jVar = this.c; + synchronized (jVar) { + boolean z2 = false; + while (!jVar.f957b) { + try { + jVar.wait(); + } catch (InterruptedException unused) { + z2 = true; + } + } + if (z2) { + Thread.currentThread().interrupt(); + } + } + if (Thread.currentThread() != this.e.q.getThread()) { + String k = e0.k("Player is accessed on the wrong thread.\nCurrent thread: '%s'\nExpected thread: '%s'\nSee https://exoplayer.dev/issues/player-accessed-on-wrong-thread", Thread.currentThread().getName(), this.e.q.getThread().getName()); + if (!this.E) { + b.i.a.c.f3.q.c("SimpleExoPlayer", k, this.F ? null : new IllegalStateException()); + this.F = true; + return; + } + throw new IllegalStateException(k); + } + } + + @Override // b.i.a.c.y1 + public y o() { + return this.I; + } + + @Override // b.i.a.c.y1 + public void p(y1.e eVar) { + Objects.requireNonNull(eVar); + this.h.remove(eVar); + this.e.o0(eVar); + } + + @Override // b.i.a.c.y1 + public int q() { + n0(); + return this.e.q(); + } + + @Override // b.i.a.c.y1 + public void r(@Nullable SurfaceView surfaceView) { + n0(); + if (surfaceView instanceof t) { + i0(); + l0(surfaceView); + k0(surfaceView.getHolder()); + } else if (surfaceView instanceof k) { + i0(); + this.t = (k) surfaceView; + b2 f02 = this.e.f0(this.g); + f02.f(10000); + f02.e(this.t); + f02.d(); + this.t.j.add(this.f); + l0(this.t.getVideoSurface()); + k0(surfaceView.getHolder()); + } else { + SurfaceHolder holder = surfaceView == null ? null : surfaceView.getHolder(); + n0(); + if (holder == null) { + e0(); + return; + } + i0(); + this.u = true; + this.f1015s = holder; + holder.addCallback(this.f); + Surface surface = holder.getSurface(); + if (surface == null || !surface.isValid()) { + l0(null); + h0(0, 0); + return; + } + l0(surface); + Rect surfaceFrame = holder.getSurfaceFrame(); + h0(surfaceFrame.width(), surfaceFrame.height()); + } + } + + @Override // b.i.a.c.y1 + @Nullable + public PlaybackException t() { + n0(); + return this.e.F.g; + } + + @Override // b.i.a.c.y1 + public void u(boolean z2) { + n0(); + int e = this.k.e(z2, y()); + m0(z2, e, g0(z2, e)); + } + + @Override // b.i.a.c.y1 + public long v() { + n0(); + return this.e.t; + } + + @Override // b.i.a.c.y1 + public long w() { + n0(); + return this.e.w(); + } + + @Override // b.i.a.c.y1 + public void x(y1.e eVar) { + Objects.requireNonNull(eVar); + this.h.add(eVar); + this.e.d0(eVar); + } + + @Override // b.i.a.c.y1 + public int y() { + n0(); + return this.e.F.f; + } +} diff --git a/app/src/main/java/b/i/a/c/l.java b/app/src/main/java/b/i/a/c/l.java new file mode 100644 index 0000000000..8f573ff798 --- /dev/null +++ b/app/src/main/java/b/i/a/c/l.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class l implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ l(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).f0(this.a.g); + } +} diff --git a/app/src/main/java/b/i/a/c/l0.java b/app/src/main/java/b/i/a/c/l0.java new file mode 100644 index 0000000000..d84d55bb63 --- /dev/null +++ b/app/src/main/java/b/i/a/c/l0.java @@ -0,0 +1,85 @@ +package b.i.a.c; + +import android.net.Uri; +import android.os.Bundle; +import b.i.a.c.p1; +import b.i.a.c.w0; +/* compiled from: lambda */ +public final /* synthetic */ class l0 implements w0.a { + public static final /* synthetic */ l0 a = new l0(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + Bundle bundle2; + Bundle bundle3; + p1.b bVar = new p1.b(); + bVar.a = bundle.getCharSequence(p1.b(0)); + bVar.f1036b = bundle.getCharSequence(p1.b(1)); + bVar.c = bundle.getCharSequence(p1.b(2)); + bVar.d = bundle.getCharSequence(p1.b(3)); + bVar.e = bundle.getCharSequence(p1.b(4)); + bVar.f = bundle.getCharSequence(p1.b(5)); + bVar.g = bundle.getCharSequence(p1.b(6)); + bVar.h = (Uri) bundle.getParcelable(p1.b(7)); + byte[] byteArray = bundle.getByteArray(p1.b(10)); + byte[] bArr = null; + Integer valueOf = bundle.containsKey(p1.b(29)) ? Integer.valueOf(bundle.getInt(p1.b(29))) : null; + if (byteArray != null) { + bArr = (byte[]) byteArray.clone(); + } + bVar.k = bArr; + bVar.l = valueOf; + bVar.m = (Uri) bundle.getParcelable(p1.b(11)); + bVar.f1038x = bundle.getCharSequence(p1.b(22)); + bVar.f1039y = bundle.getCharSequence(p1.b(23)); + bVar.f1040z = bundle.getCharSequence(p1.b(24)); + bVar.C = bundle.getCharSequence(p1.b(27)); + bVar.D = bundle.getCharSequence(p1.b(28)); + bVar.E = bundle.getBundle(p1.b(1000)); + if (bundle.containsKey(p1.b(8)) && (bundle3 = bundle.getBundle(p1.b(8))) != null) { + int i = d2.j; + bVar.i = (d2) o0.a.a(bundle3); + } + if (bundle.containsKey(p1.b(9)) && (bundle2 = bundle.getBundle(p1.b(9))) != null) { + int i2 = d2.j; + bVar.j = (d2) o0.a.a(bundle2); + } + if (bundle.containsKey(p1.b(12))) { + bVar.n = Integer.valueOf(bundle.getInt(p1.b(12))); + } + if (bundle.containsKey(p1.b(13))) { + bVar.o = Integer.valueOf(bundle.getInt(p1.b(13))); + } + if (bundle.containsKey(p1.b(14))) { + bVar.p = Integer.valueOf(bundle.getInt(p1.b(14))); + } + if (bundle.containsKey(p1.b(15))) { + bVar.q = Boolean.valueOf(bundle.getBoolean(p1.b(15))); + } + if (bundle.containsKey(p1.b(16))) { + bVar.r = Integer.valueOf(bundle.getInt(p1.b(16))); + } + if (bundle.containsKey(p1.b(17))) { + bVar.f1037s = Integer.valueOf(bundle.getInt(p1.b(17))); + } + if (bundle.containsKey(p1.b(18))) { + bVar.t = Integer.valueOf(bundle.getInt(p1.b(18))); + } + if (bundle.containsKey(p1.b(19))) { + bVar.u = Integer.valueOf(bundle.getInt(p1.b(19))); + } + if (bundle.containsKey(p1.b(20))) { + bVar.v = Integer.valueOf(bundle.getInt(p1.b(20))); + } + if (bundle.containsKey(p1.b(21))) { + bVar.w = Integer.valueOf(bundle.getInt(p1.b(21))); + } + if (bundle.containsKey(p1.b(25))) { + bVar.A = Integer.valueOf(bundle.getInt(p1.b(25))); + } + if (bundle.containsKey(p1.b(26))) { + bVar.B = Integer.valueOf(bundle.getInt(p1.b(26))); + } + return bVar.a(); + } +} diff --git a/app/src/main/java/b/i/a/c/l1.java b/app/src/main/java/b/i/a/c/l1.java new file mode 100644 index 0000000000..73cab35337 --- /dev/null +++ b/app/src/main/java/b/i/a/c/l1.java @@ -0,0 +1,35 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import java.util.Arrays; +/* compiled from: HeartRating */ +public final class l1 extends d2 { + public final boolean k; + public final boolean l; + + public l1() { + this.k = false; + this.l = false; + } + + public l1(boolean z2) { + this.k = true; + this.l = z2; + } + + public static String a(int i) { + return Integer.toString(i, 36); + } + + public boolean equals(@Nullable Object obj) { + if (!(obj instanceof l1)) { + return false; + } + l1 l1Var = (l1) obj; + return this.l == l1Var.l && this.k == l1Var.k; + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{Boolean.valueOf(this.k), Boolean.valueOf(this.l)}); + } +} diff --git a/app/src/main/java/b/i/a/c/l2.java b/app/src/main/java/b/i/a/c/l2.java new file mode 100644 index 0000000000..ee73f86765 --- /dev/null +++ b/app/src/main/java/b/i/a/c/l2.java @@ -0,0 +1,43 @@ +package b.i.a.c; + +import androidx.annotation.FloatRange; +import androidx.annotation.IntRange; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import java.util.Arrays; +/* compiled from: StarRating */ +public final class l2 extends d2 { + @IntRange(from = 1) + public final int k; + public final float l; + + public l2(@IntRange(from = 1) int i) { + d.m(i > 0, "maxStars must be a positive integer"); + this.k = i; + this.l = -1.0f; + } + + public l2(@IntRange(from = 1) int i, @FloatRange(from = 0.0d) float f) { + boolean z2 = true; + d.m(i > 0, "maxStars must be a positive integer"); + d.m((f < 0.0f || f > ((float) i)) ? false : z2, "starRating is out of range [0, maxStars]"); + this.k = i; + this.l = f; + } + + public static String a(int i) { + return Integer.toString(i, 36); + } + + public boolean equals(@Nullable Object obj) { + if (!(obj instanceof l2)) { + return false; + } + l2 l2Var = (l2) obj; + return this.k == l2Var.k && this.l == l2Var.l; + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{Integer.valueOf(this.k), Float.valueOf(this.l)}); + } +} diff --git a/app/src/main/java/b/i/a/c/m.java b/app/src/main/java/b/i/a/c/m.java new file mode 100644 index 0000000000..a5ecbbfa0a --- /dev/null +++ b/app/src/main/java/b/i/a/c/m.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class m implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ m(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).y(this.a.f); + } +} diff --git a/app/src/main/java/b/i/a/c/m0.java b/app/src/main/java/b/i/a/c/m0.java new file mode 100644 index 0000000000..867a07894d --- /dev/null +++ b/app/src/main/java/b/i/a/c/m0.java @@ -0,0 +1,41 @@ +package b.i.a.c; + +import b.i.a.c.a3.a0; +import b.i.a.c.s2.g1; +import b.i.b.b.p; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class m0 implements Runnable { + public final /* synthetic */ s1 j; + public final /* synthetic */ p.a k; + public final /* synthetic */ a0.a l; + + public /* synthetic */ m0(s1 s1Var, p.a aVar, a0.a aVar2) { + this.j = s1Var; + this.k = aVar; + this.l = aVar2; + } + + @Override // java.lang.Runnable + public final void run() { + s1 s1Var = this.j; + p.a aVar = this.k; + a0.a aVar2 = this.l; + g1 g1Var = s1Var.c; + p c = aVar.c(); + g1.a aVar3 = g1Var.m; + y1 y1Var = g1Var.p; + Objects.requireNonNull(y1Var); + Objects.requireNonNull(aVar3); + aVar3.f1067b = p.n(c); + if (!c.isEmpty()) { + aVar3.e = c.get(0); + Objects.requireNonNull(aVar2); + aVar3.f = aVar2; + } + if (aVar3.d == null) { + aVar3.d = g1.a.b(y1Var, aVar3.f1067b, aVar3.e, aVar3.a); + } + aVar3.d(y1Var.K()); + } +} diff --git a/app/src/main/java/b/i/a/c/m1.java b/app/src/main/java/b/i/a/c/m1.java new file mode 100644 index 0000000000..076839cd58 --- /dev/null +++ b/app/src/main/java/b/i/a/c/m1.java @@ -0,0 +1,4 @@ +package b.i.a.c; +/* compiled from: LivePlaybackSpeedControl */ +public interface m1 { +} diff --git a/app/src/main/java/b/i/a/c/m2.java b/app/src/main/java/b/i/a/c/m2.java new file mode 100644 index 0000000000..ba038c9112 --- /dev/null +++ b/app/src/main/java/b/i/a/c/m2.java @@ -0,0 +1,111 @@ +package b.i.a.c; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.media.AudioManager; +import android.os.Handler; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.a.c.k2; +import b.i.a.c.y1; +import java.util.Iterator; +import org.webrtc.MediaStreamTrack; +/* compiled from: StreamVolumeManager */ +public final class m2 { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final Handler f1019b; + public final b c; + public final AudioManager d; + @Nullable + public c e; + public int f = 3; + public int g; + public boolean h; + + /* compiled from: StreamVolumeManager */ + public interface b { + } + + /* compiled from: StreamVolumeManager */ + public final class c extends BroadcastReceiver { + public c(a aVar) { + } + + @Override // android.content.BroadcastReceiver + public void onReceive(Context context, Intent intent) { + m2 m2Var = m2.this; + m2Var.f1019b.post(new p0(m2Var)); + } + } + + public m2(Context context, Handler handler, b bVar) { + Context applicationContext = context.getApplicationContext(); + this.a = applicationContext; + this.f1019b = handler; + this.c = bVar; + AudioManager audioManager = (AudioManager) applicationContext.getSystemService(MediaStreamTrack.AUDIO_TRACK_KIND); + d.H(audioManager); + this.d = audioManager; + this.g = b(audioManager, 3); + this.h = a(audioManager, this.f); + c cVar = new c(null); + try { + applicationContext.registerReceiver(cVar, new IntentFilter("android.media.VOLUME_CHANGED_ACTION")); + this.e = cVar; + } catch (RuntimeException e) { + q.c("StreamVolumeManager", "Error registering stream volume receiver", e); + } + } + + public static boolean a(AudioManager audioManager, int i) { + return e0.a >= 23 ? audioManager.isStreamMute(i) : b(audioManager, i) == 0; + } + + public static int b(AudioManager audioManager, int i) { + try { + return audioManager.getStreamVolume(i); + } catch (RuntimeException e) { + StringBuilder sb = new StringBuilder(60); + sb.append("Could not retrieve stream volume for stream type "); + sb.append(i); + q.c("StreamVolumeManager", sb.toString(), e); + return audioManager.getStreamMaxVolume(i); + } + } + + public void c(int i) { + if (this.f != i) { + this.f = i; + d(); + k2.b bVar = (k2.b) this.c; + c1 f02 = k2.f0(k2.this.l); + if (!f02.equals(k2.this.H)) { + k2 k2Var = k2.this; + k2Var.H = f02; + Iterator it = k2Var.h.iterator(); + while (it.hasNext()) { + it.next().z(f02); + } + } + } + } + + public final void d() { + int b2 = b(this.d, this.f); + boolean a2 = a(this.d, this.f); + if (this.g != b2 || this.h != a2) { + this.g = b2; + this.h = a2; + Iterator it = k2.this.h.iterator(); + while (it.hasNext()) { + it.next().G(b2, a2); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/n.java b/app/src/main/java/b/i/a/c/n.java new file mode 100644 index 0000000000..4aca7bfd02 --- /dev/null +++ b/app/src/main/java/b/i/a/c/n.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class n implements p.a { + public final /* synthetic */ boolean a; + + public /* synthetic */ n(boolean z2) { + this.a = z2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).D(this.a); + } +} diff --git a/app/src/main/java/b/i/a/c/n0.java b/app/src/main/java/b/i/a/c/n0.java new file mode 100644 index 0000000000..b449dca79f --- /dev/null +++ b/app/src/main/java/b/i/a/c/n0.java @@ -0,0 +1,16 @@ +package b.i.a.c; + +import b.i.a.c.a3.a0; +/* compiled from: lambda */ +public final /* synthetic */ class n0 implements a0.b { + public final /* synthetic */ u1 a; + + public /* synthetic */ n0(u1 u1Var) { + this.a = u1Var; + } + + @Override // b.i.a.c.a3.a0.b + public final void a(a0 a0Var, o2 o2Var) { + ((h1) this.a.d).q.f(22); + } +} diff --git a/app/src/main/java/b/i/a/c/n1.java b/app/src/main/java/b/i/a/c/n1.java new file mode 100644 index 0000000000..e3259040be --- /dev/null +++ b/app/src/main/java/b/i/a/c/n1.java @@ -0,0 +1,25 @@ +package b.i.a.c; + +import b.i.a.c.a3.o0; +import b.i.a.c.c3.j; +import b.i.a.c.e3.o; +/* compiled from: LoadControl */ +public interface n1 { + boolean a(); + + long b(); + + void c(); + + void d(f2[] f2VarArr, o0 o0Var, j[] jVarArr); + + void e(); + + boolean f(long j, float f, boolean z2, long j2); + + boolean g(long j, long j2, float f); + + o h(); + + void i(); +} diff --git a/app/src/main/java/b/i/a/c/n2.java b/app/src/main/java/b/i/a/c/n2.java new file mode 100644 index 0000000000..9f1bb82128 --- /dev/null +++ b/app/src/main/java/b/i/a/c/n2.java @@ -0,0 +1,35 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import java.util.Arrays; +/* compiled from: ThumbRating */ +public final class n2 extends d2 { + public final boolean k; + public final boolean l; + + public n2() { + this.k = false; + this.l = false; + } + + public n2(boolean z2) { + this.k = true; + this.l = z2; + } + + public static String a(int i) { + return Integer.toString(i, 36); + } + + public boolean equals(@Nullable Object obj) { + if (!(obj instanceof n2)) { + return false; + } + n2 n2Var = (n2) obj; + return this.l == n2Var.l && this.k == n2Var.k; + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{Boolean.valueOf(this.k), Boolean.valueOf(this.l)}); + } +} diff --git a/app/src/main/java/b/i/a/c/o.java b/app/src/main/java/b/i/a/c/o.java new file mode 100644 index 0000000000..86463b97f4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/o.java @@ -0,0 +1,20 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class o implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ o(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + w1 w1Var = this.a; + y1.c cVar = (y1.c) obj; + cVar.i(w1Var.h); + cVar.r(w1Var.h); + } +} diff --git a/app/src/main/java/b/i/a/c/o0.java b/app/src/main/java/b/i/a/c/o0.java new file mode 100644 index 0000000000..5621043643 --- /dev/null +++ b/app/src/main/java/b/i/a/c/o0.java @@ -0,0 +1,51 @@ +package b.i.a.c; + +import android.os.Bundle; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.w0; +/* compiled from: lambda */ +public final /* synthetic */ class o0 implements w0.a { + public static final /* synthetic */ o0 a = new o0(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + w0 w0Var; + boolean z2 = false; + int i = bundle.getInt(Integer.toString(0, 36), -1); + if (i == 0) { + d.j(bundle.getInt(l1.a(0), -1) == 0); + if (bundle.getBoolean(l1.a(1), false)) { + return new l1(bundle.getBoolean(l1.a(2), false)); + } + w0Var = new l1(); + } else if (i == 1) { + if (bundle.getInt(Integer.toString(0, 36), -1) == 1) { + z2 = true; + } + d.j(z2); + float f = bundle.getFloat(Integer.toString(1, 36), -1.0f); + if (f != -1.0f) { + return new v1(f); + } + w0Var = new v1(); + } else if (i == 2) { + if (bundle.getInt(l2.a(0), -1) == 2) { + z2 = true; + } + d.j(z2); + int i2 = bundle.getInt(l2.a(1), 5); + float f2 = bundle.getFloat(l2.a(2), -1.0f); + if (f2 != -1.0f) { + return new l2(i2, f2); + } + w0Var = new l2(i2); + } else if (i == 3) { + d.j(bundle.getInt(n2.a(0), -1) == 3); + return bundle.getBoolean(n2.a(1), false) ? new n2(bundle.getBoolean(n2.a(2), false)) : new n2(); + } else { + throw new IllegalArgumentException(a.f(44, "Encountered unknown rating type: ", i)); + } + return w0Var; + } +} diff --git a/app/src/main/java/b/i/a/c/o1.java b/app/src/main/java/b/i/a/c/o1.java new file mode 100644 index 0000000000..f26766a97f --- /dev/null +++ b/app/src/main/java/b/i/a/c/o1.java @@ -0,0 +1,505 @@ +package b.i.a.c; + +import android.net.Uri; +import androidx.annotation.IntRange; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.w0; +import b.i.b.b.h0; +import b.i.b.b.i0; +import b.i.b.b.n; +import b.i.b.b.p; +import b.i.b.b.q; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.UUID; +/* compiled from: MediaItem */ +public final class o1 implements w0 { + public static final w0.a j = k0.a; + public final String k; + @Nullable + public final h l; + public final g m; + public final p1 n; + public final d o; + + /* compiled from: MediaItem */ + public static final class b { + } + + /* compiled from: MediaItem */ + public static final class c { + @Nullable + public String a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public Uri f1020b; + @Nullable + public String c; + public d.a d = new d.a(); + public f.a e = new f.a(null); + public List f = Collections.emptyList(); + @Nullable + public String g; + public p h = h0.l; + @Nullable + public Object i; + @Nullable + public p1 j; + public g.a k = new g.a(); + + public o1 a() { + i iVar; + f.a aVar = this.e; + b.c.a.a0.d.D(aVar.f1023b == null || aVar.a != null); + Uri uri = this.f1020b; + if (uri != null) { + String str = this.c; + f.a aVar2 = this.e; + iVar = new i(uri, str, aVar2.a != null ? new f(aVar2, null) : null, null, this.f, this.g, this.h, this.i, null); + } else { + iVar = null; + } + String str2 = this.a; + if (str2 == null) { + str2 = ""; + } + e a = this.d.a(); + g.a aVar3 = this.k; + Objects.requireNonNull(aVar3); + g gVar = new g(aVar3, null); + p1 p1Var = this.j; + if (p1Var == null) { + p1Var = p1.j; + } + return new o1(str2, a, iVar, gVar, p1Var, null); + } + } + + /* compiled from: MediaItem */ + public static class d implements w0 { + public static final w0.a j = i0.a; + @IntRange(from = 0) + public final long k; + public final long l; + public final boolean m; + public final boolean n; + public final boolean o; + + /* compiled from: MediaItem */ + public static final class a { + public long a; + + /* renamed from: b reason: collision with root package name */ + public long f1021b = Long.MIN_VALUE; + public boolean c; + public boolean d; + public boolean e; + + @Deprecated + public e a() { + return new e(this, null); + } + } + + static { + new a().a(); + } + + public d(a aVar, a aVar2) { + this.k = aVar.a; + this.l = aVar.f1021b; + this.m = aVar.c; + this.n = aVar.d; + this.o = aVar.e; + } + + public static String a(int i) { + return Integer.toString(i, 36); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof d)) { + return false; + } + d dVar = (d) obj; + return this.k == dVar.k && this.l == dVar.l && this.m == dVar.m && this.n == dVar.n && this.o == dVar.o; + } + + public int hashCode() { + long j2 = this.k; + long j3 = this.l; + return (((((((((int) (j2 ^ (j2 >>> 32))) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31) + (this.m ? 1 : 0)) * 31) + (this.n ? 1 : 0)) * 31) + (this.o ? 1 : 0); + } + } + + /* compiled from: MediaItem */ + @Deprecated + public static final class e extends d { + public static final e p = new d.a().a(); + + public e(d.a aVar, a aVar2) { + super(aVar, null); + } + } + + /* compiled from: MediaItem */ + public static final class f { + public final UUID a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final Uri f1022b; + public final q c; + public final boolean d; + public final boolean e; + public final boolean f; + public final p g; + @Nullable + public final byte[] h; + + /* compiled from: MediaItem */ + public static final class a { + @Nullable + public UUID a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public Uri f1023b; + public q c = i0.m; + public boolean d; + public boolean e; + public boolean f; + public p g; + @Nullable + public byte[] h; + + /* JADX DEBUG: Type inference failed for r1v1. Raw type applied. Possible types: b.i.b.b.q, b.i.b.b.q */ + /* JADX DEBUG: Type inference failed for r1v3. Raw type applied. Possible types: b.i.b.b.p, b.i.b.b.p */ + public a(a aVar) { + b.i.b.b.a aVar2 = p.k; + this.g = h0.l; + } + } + + public f(a aVar, a aVar2) { + b.c.a.a0.d.D(!aVar.f || aVar.f1023b != null); + UUID uuid = aVar.a; + Objects.requireNonNull(uuid); + this.a = uuid; + this.f1022b = aVar.f1023b; + this.c = aVar.c; + this.d = aVar.d; + this.f = aVar.f; + this.e = aVar.e; + this.g = aVar.g; + byte[] bArr = aVar.h; + this.h = bArr != null ? Arrays.copyOf(bArr, bArr.length) : null; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof f)) { + return false; + } + f fVar = (f) obj; + return this.a.equals(fVar.a) && e0.a(this.f1022b, fVar.f1022b) && e0.a(this.c, fVar.c) && this.d == fVar.d && this.f == fVar.f && this.e == fVar.e && this.g.equals(fVar.g) && Arrays.equals(this.h, fVar.h); + } + + public int hashCode() { + int hashCode = this.a.hashCode() * 31; + Uri uri = this.f1022b; + int hashCode2 = uri != null ? uri.hashCode() : 0; + int hashCode3 = this.c.hashCode(); + return Arrays.hashCode(this.h) + ((this.g.hashCode() + ((((((((hashCode3 + ((hashCode + hashCode2) * 31)) * 31) + (this.d ? 1 : 0)) * 31) + (this.f ? 1 : 0)) * 31) + (this.e ? 1 : 0)) * 31)) * 31); + } + } + + /* compiled from: MediaItem */ + public static final class g implements w0 { + public static final g j = new a().a(); + public static final w0.a k = j0.a; + public final long l; + public final long m; + public final long n; + public final float o; + public final float p; + + /* compiled from: MediaItem */ + public static final class a { + public long a = -9223372036854775807L; + + /* renamed from: b reason: collision with root package name */ + public long f1024b = -9223372036854775807L; + public long c = -9223372036854775807L; + public float d = -3.4028235E38f; + public float e = -3.4028235E38f; + + public g a() { + return new g(this, null); + } + } + + @Deprecated + public g(long j2, long j3, long j4, float f, float f2) { + this.l = j2; + this.m = j3; + this.n = j4; + this.o = f; + this.p = f2; + } + + public g(a aVar, a aVar2) { + long j2 = aVar.a; + long j3 = aVar.f1024b; + long j4 = aVar.c; + float f = aVar.d; + float f2 = aVar.e; + this.l = j2; + this.m = j3; + this.n = j4; + this.o = f; + this.p = f2; + } + + public static String a(int i) { + return Integer.toString(i, 36); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof g)) { + return false; + } + g gVar = (g) obj; + return this.l == gVar.l && this.m == gVar.m && this.n == gVar.n && this.o == gVar.o && this.p == gVar.p; + } + + public int hashCode() { + long j2 = this.l; + long j3 = this.m; + long j4 = this.n; + int i = ((((((int) (j2 ^ (j2 >>> 32))) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31) + ((int) (j4 ^ (j4 >>> 32)))) * 31; + float f = this.o; + int i2 = 0; + int floatToIntBits = (i + (f != 0.0f ? Float.floatToIntBits(f) : 0)) * 31; + float f2 = this.p; + if (f2 != 0.0f) { + i2 = Float.floatToIntBits(f2); + } + return floatToIntBits + i2; + } + } + + /* compiled from: MediaItem */ + public static class h { + public final Uri a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final String f1025b; + @Nullable + public final f c; + public final List d; + @Nullable + public final String e; + public final p f; + @Nullable + public final Object g; + + public h(Uri uri, String str, f fVar, b bVar, List list, String str2, p pVar, Object obj, a aVar) { + this.a = uri; + this.f1025b = str; + this.c = fVar; + this.d = list; + this.e = str2; + this.f = pVar; + b.i.b.b.a aVar2 = p.k; + b.i.a.f.e.o.f.z(4, "initialCapacity"); + Object[] objArr = new Object[4]; + int i = 0; + int i2 = 0; + while (i < pVar.size()) { + j jVar = new j(new k.a(pVar.get(i), null), null); + int i3 = i2 + 1; + if (objArr.length < i3) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i3)); + } + objArr[i2] = jVar; + i++; + i2 = i3; + } + p.l(objArr, i2); + this.g = obj; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof h)) { + return false; + } + h hVar = (h) obj; + return this.a.equals(hVar.a) && e0.a(this.f1025b, hVar.f1025b) && e0.a(this.c, hVar.c) && e0.a(null, null) && this.d.equals(hVar.d) && e0.a(this.e, hVar.e) && this.f.equals(hVar.f) && e0.a(this.g, hVar.g); + } + + public int hashCode() { + int hashCode = this.a.hashCode() * 31; + String str = this.f1025b; + int i = 0; + int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31; + f fVar = this.c; + int hashCode3 = (this.d.hashCode() + ((((hashCode2 + (fVar == null ? 0 : fVar.hashCode())) * 31) + 0) * 31)) * 31; + String str2 = this.e; + int hashCode4 = (this.f.hashCode() + ((hashCode3 + (str2 == null ? 0 : str2.hashCode())) * 31)) * 31; + Object obj = this.g; + if (obj != null) { + i = obj.hashCode(); + } + return hashCode4 + i; + } + } + + /* compiled from: MediaItem */ + @Deprecated + public static final class i extends h { + public i(Uri uri, String str, f fVar, b bVar, List list, String str2, p pVar, Object obj, a aVar) { + super(uri, str, fVar, null, list, str2, pVar, obj, null); + } + } + + /* compiled from: MediaItem */ + @Deprecated + public static final class j extends k { + public j(k.a aVar, a aVar2) { + super(aVar, null); + } + } + + /* compiled from: MediaItem */ + public static class k { + public final Uri a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final String f1026b; + @Nullable + public final String c; + public final int d; + public final int e; + @Nullable + public final String f; + + /* compiled from: MediaItem */ + public static final class a { + public Uri a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public String f1027b; + @Nullable + public String c; + public int d; + public int e; + @Nullable + public String f; + + public a(k kVar, a aVar) { + this.a = kVar.a; + this.f1027b = kVar.f1026b; + this.c = kVar.c; + this.d = kVar.d; + this.e = kVar.e; + this.f = kVar.f; + } + } + + public k(a aVar, a aVar2) { + this.a = aVar.a; + this.f1026b = aVar.f1027b; + this.c = aVar.c; + this.d = aVar.d; + this.e = aVar.e; + this.f = aVar.f; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof k)) { + return false; + } + k kVar = (k) obj; + return this.a.equals(kVar.a) && e0.a(this.f1026b, kVar.f1026b) && e0.a(this.c, kVar.c) && this.d == kVar.d && this.e == kVar.e && e0.a(this.f, kVar.f); + } + + public int hashCode() { + int hashCode = this.a.hashCode() * 31; + String str = this.f1026b; + int i = 0; + int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31; + String str2 = this.c; + int hashCode3 = (((((hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31) + this.d) * 31) + this.e) * 31; + String str3 = this.f; + if (str3 != null) { + i = str3.hashCode(); + } + return hashCode3 + i; + } + } + + static { + new c().a(); + } + + public o1(String str, e eVar, @Nullable i iVar, g gVar, p1 p1Var) { + this.k = str; + this.l = null; + this.m = gVar; + this.n = p1Var; + this.o = eVar; + } + + public o1(String str, e eVar, i iVar, g gVar, p1 p1Var, a aVar) { + this.k = str; + this.l = iVar; + this.m = gVar; + this.n = p1Var; + this.o = eVar; + } + + public static String a(int i2) { + return Integer.toString(i2, 36); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof o1)) { + return false; + } + o1 o1Var = (o1) obj; + return e0.a(this.k, o1Var.k) && this.o.equals(o1Var.o) && e0.a(this.l, o1Var.l) && e0.a(this.m, o1Var.m) && e0.a(this.n, o1Var.n); + } + + public int hashCode() { + int hashCode = this.k.hashCode() * 31; + h hVar = this.l; + int hashCode2 = hVar != null ? hVar.hashCode() : 0; + int hashCode3 = this.m.hashCode(); + return this.n.hashCode() + ((this.o.hashCode() + ((hashCode3 + ((hashCode + hashCode2) * 31)) * 31)) * 31); + } +} diff --git a/app/src/main/java/b/i/a/c/o2.java b/app/src/main/java/b/i/a/c/o2.java new file mode 100644 index 0000000000..2d223d1fed --- /dev/null +++ b/app/src/main/java/b/i/a/c/o2.java @@ -0,0 +1,436 @@ +package b.i.a.c; + +import android.net.Uri; +import android.util.Pair; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.p0.c; +import b.i.a.c.f3.e0; +import b.i.a.c.o1; +import b.i.a.c.w0; +import b.i.b.b.h0; +import b.i.b.b.p; +import com.google.errorprone.annotations.InlineMe; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: Timeline */ +public abstract class o2 implements w0 { + public static final o2 j = new a(); + + /* compiled from: Timeline */ + public class a extends o2 { + @Override // b.i.a.c.o2 + public int b(Object obj) { + return -1; + } + + @Override // b.i.a.c.o2 + public b g(int i, b bVar, boolean z2) { + throw new IndexOutOfBoundsException(); + } + + @Override // b.i.a.c.o2 + public int i() { + return 0; + } + + @Override // b.i.a.c.o2 + public Object m(int i) { + throw new IndexOutOfBoundsException(); + } + + @Override // b.i.a.c.o2 + public c o(int i, c cVar, long j) { + throw new IndexOutOfBoundsException(); + } + + @Override // b.i.a.c.o2 + public int p() { + return 0; + } + } + + /* compiled from: Timeline */ + public static final class b implements w0 { + @Nullable + public Object j; + @Nullable + public Object k; + public int l; + public long m; + public long n; + public boolean o; + public b.i.a.c.a3.p0.c p = b.i.a.c.a3.p0.c.j; + + public long a(int i, int i2) { + c.a a = this.p.a(i); + if (a.l != -1) { + return a.o[i2]; + } + return -9223372036854775807L; + } + + public int b(long j) { + b.i.a.c.a3.p0.c cVar = this.p; + long j2 = this.m; + Objects.requireNonNull(cVar); + if (j == Long.MIN_VALUE) { + return -1; + } + if (j2 != -9223372036854775807L && j >= j2) { + return -1; + } + int i = cVar.q; + while (i < cVar.n) { + if (cVar.a(i).k == Long.MIN_VALUE || cVar.a(i).k > j) { + c.a a = cVar.a(i); + if (a.l == -1 || a.a(-1) < a.l) { + break; + } + } + i++; + } + if (i < cVar.n) { + return i; + } + return -1; + } + + public long c(int i) { + return this.p.a(i).k; + } + + public int d(int i) { + return this.p.a(i).a(-1); + } + + public boolean e(int i) { + return this.p.a(i).q; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || !b.class.equals(obj.getClass())) { + return false; + } + b bVar = (b) obj; + return e0.a(this.j, bVar.j) && e0.a(this.k, bVar.k) && this.l == bVar.l && this.m == bVar.m && this.n == bVar.n && this.o == bVar.o && e0.a(this.p, bVar.p); + } + + public b f(@Nullable Object obj, @Nullable Object obj2, int i, long j, long j2, b.i.a.c.a3.p0.c cVar, boolean z2) { + this.j = obj; + this.k = obj2; + this.l = i; + this.m = j; + this.n = j2; + this.p = cVar; + this.o = z2; + return this; + } + + public int hashCode() { + Object obj = this.j; + int i = 0; + int hashCode = (217 + (obj == null ? 0 : obj.hashCode())) * 31; + Object obj2 = this.k; + if (obj2 != null) { + i = obj2.hashCode(); + } + long j = this.m; + long j2 = this.n; + return this.p.hashCode() + ((((((((((hashCode + i) * 31) + this.l) * 31) + ((int) (j ^ (j >>> 32)))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + (this.o ? 1 : 0)) * 31); + } + } + + /* compiled from: Timeline */ + public static final class c implements w0 { + public static final Object j = new Object(); + public static final Object k = new Object(); + public static final o1 l; + public static final w0.a m = q0.a; + public long A; + public int B; + public int C; + public long D; + public Object n = j; + @Nullable + @Deprecated + public Object o; + public o1 p = l; + @Nullable + public Object q; + public long r; + + /* renamed from: s reason: collision with root package name */ + public long f1028s; + public long t; + public boolean u; + public boolean v; + @Deprecated + public boolean w; + @Nullable + + /* renamed from: x reason: collision with root package name */ + public o1.g f1029x; + + /* renamed from: y reason: collision with root package name */ + public boolean f1030y; + + /* renamed from: z reason: collision with root package name */ + public long f1031z; + + static { + o1.i iVar; + o1.d.a aVar = new o1.d.a(); + o1.f.a aVar2 = new o1.f.a(null); + List emptyList = Collections.emptyList(); + p pVar = h0.l; + o1.g.a aVar3 = new o1.g.a(); + Uri uri = Uri.EMPTY; + d.D(aVar2.f1023b == null || aVar2.a != null); + if (uri != null) { + iVar = new o1.i(uri, null, aVar2.a != null ? new o1.f(aVar2, null) : null, null, emptyList, null, pVar, null, null); + } else { + iVar = null; + } + l = new o1("com.google.android.exoplayer2.Timeline", aVar.a(), iVar, new o1.g(aVar3, null), p1.j, null); + } + + public static String d(int i) { + return Integer.toString(i, 36); + } + + public long a() { + return e0.M(this.f1031z); + } + + public long b() { + return e0.M(this.A); + } + + public boolean c() { + d.D(this.w == (this.f1029x != null)); + return this.f1029x != null; + } + + public c e(Object obj, @Nullable o1 o1Var, @Nullable Object obj2, long j2, long j3, long j4, boolean z2, boolean z3, @Nullable o1.g gVar, long j5, long j6, int i, int i2, long j7) { + o1.h hVar; + this.n = obj; + this.p = o1Var != null ? o1Var : l; + this.o = (o1Var == null || (hVar = o1Var.l) == null) ? null : hVar.g; + this.q = obj2; + this.r = j2; + this.f1028s = j3; + this.t = j4; + this.u = z2; + this.v = z3; + this.w = gVar != null; + this.f1029x = gVar; + this.f1031z = j5; + this.A = j6; + this.B = i; + this.C = i2; + this.D = j7; + this.f1030y = false; + return this; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || !c.class.equals(obj.getClass())) { + return false; + } + c cVar = (c) obj; + return e0.a(this.n, cVar.n) && e0.a(this.p, cVar.p) && e0.a(this.q, cVar.q) && e0.a(this.f1029x, cVar.f1029x) && this.r == cVar.r && this.f1028s == cVar.f1028s && this.t == cVar.t && this.u == cVar.u && this.v == cVar.v && this.f1030y == cVar.f1030y && this.f1031z == cVar.f1031z && this.A == cVar.A && this.B == cVar.B && this.C == cVar.C && this.D == cVar.D; + } + + public int hashCode() { + int hashCode = (this.p.hashCode() + ((this.n.hashCode() + 217) * 31)) * 31; + Object obj = this.q; + int i = 0; + int hashCode2 = (hashCode + (obj == null ? 0 : obj.hashCode())) * 31; + o1.g gVar = this.f1029x; + if (gVar != null) { + i = gVar.hashCode(); + } + long j2 = this.r; + long j3 = this.f1028s; + long j4 = this.t; + long j5 = this.f1031z; + long j6 = this.A; + long j7 = this.D; + return ((((((((((((((((((((((hashCode2 + i) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31) + ((int) (j4 ^ (j4 >>> 32)))) * 31) + (this.u ? 1 : 0)) * 31) + (this.v ? 1 : 0)) * 31) + (this.f1030y ? 1 : 0)) * 31) + ((int) (j5 ^ (j5 >>> 32)))) * 31) + ((int) (j6 ^ (j6 >>> 32)))) * 31) + this.B) * 31) + this.C) * 31) + ((int) (j7 ^ (j7 >>> 32))); + } + } + + public int a(boolean z2) { + return q() ? -1 : 0; + } + + public abstract int b(Object obj); + + public int c(boolean z2) { + if (q()) { + return -1; + } + return p() - 1; + } + + public final int d(int i, b bVar, c cVar, int i2, boolean z2) { + int i3 = g(i, bVar, false).l; + if (n(i3, cVar).C != i) { + return i + 1; + } + int e = e(i3, i2, z2); + if (e == -1) { + return -1; + } + return n(e, cVar).B; + } + + public int e(int i, int i2, boolean z2) { + if (i2 != 0) { + if (i2 == 1) { + return i; + } + if (i2 == 2) { + return i == c(z2) ? a(z2) : i + 1; + } + throw new IllegalStateException(); + } else if (i == c(z2)) { + return -1; + } else { + return i + 1; + } + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof o2)) { + return false; + } + o2 o2Var = (o2) obj; + if (!(o2Var.p() == p() && o2Var.i() == i())) { + return false; + } + c cVar = new c(); + b bVar = new b(); + c cVar2 = new c(); + b bVar2 = new b(); + for (int i = 0; i < p(); i++) { + if (!n(i, cVar).equals(o2Var.n(i, cVar2))) { + return false; + } + } + for (int i2 = 0; i2 < i(); i2++) { + if (!g(i2, bVar, true).equals(o2Var.g(i2, bVar2, true))) { + return false; + } + } + return true; + } + + public final b f(int i, b bVar) { + return g(i, bVar, false); + } + + public abstract b g(int i, b bVar, boolean z2); + + public b h(Object obj, b bVar) { + return g(b(obj), bVar, true); + } + + public int hashCode() { + c cVar = new c(); + b bVar = new b(); + int p = p() + 217; + for (int i = 0; i < p(); i++) { + p = (p * 31) + n(i, cVar).hashCode(); + } + int i2 = i() + (p * 31); + for (int i3 = 0; i3 < i(); i3++) { + i2 = (i2 * 31) + g(i3, bVar, true).hashCode(); + } + return i2; + } + + public abstract int i(); + + @InlineMe(replacement = "this.getPeriodPositionUs(window, period, windowIndex, windowPositionUs)") + @Deprecated + public final Pair j(c cVar, b bVar, int i, long j2) { + Pair k = k(cVar, bVar, i, j2, 0); + Objects.requireNonNull(k); + return k; + } + + @Deprecated + @Nullable + @InlineMe(replacement = "this.getPeriodPositionUs(window, period, windowIndex, windowPositionUs, defaultPositionProjectionUs)") + public final Pair k(c cVar, b bVar, int i, long j2, long j3) { + d.t(i, 0, p()); + o(i, cVar, j3); + if (j2 == -9223372036854775807L) { + j2 = cVar.f1031z; + if (j2 == -9223372036854775807L) { + return null; + } + } + int i2 = cVar.B; + f(i2, bVar); + while (i2 < cVar.C && bVar.n != j2) { + int i3 = i2 + 1; + if (f(i3, bVar).n > j2) { + break; + } + i2 = i3; + } + g(i2, bVar, true); + long j4 = j2 - bVar.n; + long j5 = bVar.m; + if (j5 != -9223372036854775807L) { + j4 = Math.min(j4, j5 - 1); + } + long max = Math.max(0L, j4); + Object obj = bVar.k; + Objects.requireNonNull(obj); + return Pair.create(obj, Long.valueOf(max)); + } + + public int l(int i, int i2, boolean z2) { + if (i2 != 0) { + if (i2 == 1) { + return i; + } + if (i2 == 2) { + return i == a(z2) ? c(z2) : i - 1; + } + throw new IllegalStateException(); + } else if (i == a(z2)) { + return -1; + } else { + return i - 1; + } + } + + public abstract Object m(int i); + + public final c n(int i, c cVar) { + return o(i, cVar, 0); + } + + public abstract c o(int i, c cVar, long j2); + + public abstract int p(); + + public final boolean q() { + return p() == 0; + } +} diff --git a/app/src/main/java/b/i/a/c/p.java b/app/src/main/java/b/i/a/c/p.java new file mode 100644 index 0000000000..b22edfaa44 --- /dev/null +++ b/app/src/main/java/b/i/a/c/p.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class p implements p.a { + public final /* synthetic */ p1 a; + + public /* synthetic */ p(p1 p1Var) { + this.a = p1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).A(this.a); + } +} diff --git a/app/src/main/java/b/i/a/c/p0.java b/app/src/main/java/b/i/a/c/p0.java new file mode 100644 index 0000000000..d01367cd73 --- /dev/null +++ b/app/src/main/java/b/i/a/c/p0.java @@ -0,0 +1,14 @@ +package b.i.a.c; +/* compiled from: lambda */ +public final /* synthetic */ class p0 implements Runnable { + public final /* synthetic */ m2 j; + + public /* synthetic */ p0(m2 m2Var) { + this.j = m2Var; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.d(); + } +} diff --git a/app/src/main/java/b/i/a/c/p1.java b/app/src/main/java/b/i/a/c/p1.java new file mode 100644 index 0000000000..d8d9ee987a --- /dev/null +++ b/app/src/main/java/b/i/a/c/p1.java @@ -0,0 +1,270 @@ +package b.i.a.c; + +import android.net.Uri; +import android.os.Bundle; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.w0; +import java.util.Arrays; +/* compiled from: MediaMetadata */ +public final class p1 implements w0 { + public static final p1 j = new b().a(); + public static final w0.a k = l0.a; + @Nullable + public final Integer A; + @Nullable + public final Boolean B; + @Nullable + @Deprecated + public final Integer C; + @Nullable + public final Integer D; + @Nullable + public final Integer E; + @Nullable + public final Integer F; + @Nullable + public final Integer G; + @Nullable + public final Integer H; + @Nullable + public final Integer I; + @Nullable + public final CharSequence J; + @Nullable + public final CharSequence K; + @Nullable + public final CharSequence L; + @Nullable + public final Integer M; + @Nullable + public final Integer N; + @Nullable + public final CharSequence O; + @Nullable + public final CharSequence P; + @Nullable + public final Bundle Q; + @Nullable + public final CharSequence l; + @Nullable + public final CharSequence m; + @Nullable + public final CharSequence n; + @Nullable + public final CharSequence o; + @Nullable + public final CharSequence p; + @Nullable + public final CharSequence q; + @Nullable + public final CharSequence r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public final Uri f1032s; + @Nullable + public final d2 t; + @Nullable + public final d2 u; + @Nullable + public final byte[] v; + @Nullable + public final Integer w; + @Nullable + + /* renamed from: x reason: collision with root package name */ + public final Uri f1033x; + @Nullable + + /* renamed from: y reason: collision with root package name */ + public final Integer f1034y; + @Nullable + + /* renamed from: z reason: collision with root package name */ + public final Integer f1035z; + + /* compiled from: MediaMetadata */ + public static final class b { + @Nullable + public Integer A; + @Nullable + public Integer B; + @Nullable + public CharSequence C; + @Nullable + public CharSequence D; + @Nullable + public Bundle E; + @Nullable + public CharSequence a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public CharSequence f1036b; + @Nullable + public CharSequence c; + @Nullable + public CharSequence d; + @Nullable + public CharSequence e; + @Nullable + public CharSequence f; + @Nullable + public CharSequence g; + @Nullable + public Uri h; + @Nullable + public d2 i; + @Nullable + public d2 j; + @Nullable + public byte[] k; + @Nullable + public Integer l; + @Nullable + public Uri m; + @Nullable + public Integer n; + @Nullable + public Integer o; + @Nullable + public Integer p; + @Nullable + public Boolean q; + @Nullable + public Integer r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public Integer f1037s; + @Nullable + public Integer t; + @Nullable + public Integer u; + @Nullable + public Integer v; + @Nullable + public Integer w; + @Nullable + + /* renamed from: x reason: collision with root package name */ + public CharSequence f1038x; + @Nullable + + /* renamed from: y reason: collision with root package name */ + public CharSequence f1039y; + @Nullable + + /* renamed from: z reason: collision with root package name */ + public CharSequence f1040z; + + public b() { + } + + public b(p1 p1Var, a aVar) { + this.a = p1Var.l; + this.f1036b = p1Var.m; + this.c = p1Var.n; + this.d = p1Var.o; + this.e = p1Var.p; + this.f = p1Var.q; + this.g = p1Var.r; + this.h = p1Var.f1032s; + this.i = p1Var.t; + this.j = p1Var.u; + this.k = p1Var.v; + this.l = p1Var.w; + this.m = p1Var.f1033x; + this.n = p1Var.f1034y; + this.o = p1Var.f1035z; + this.p = p1Var.A; + this.q = p1Var.B; + this.r = p1Var.D; + this.f1037s = p1Var.E; + this.t = p1Var.F; + this.u = p1Var.G; + this.v = p1Var.H; + this.w = p1Var.I; + this.f1038x = p1Var.J; + this.f1039y = p1Var.K; + this.f1040z = p1Var.L; + this.A = p1Var.M; + this.B = p1Var.N; + this.C = p1Var.O; + this.D = p1Var.P; + this.E = p1Var.Q; + } + + public p1 a() { + return new p1(this, null); + } + + public b b(byte[] bArr, int i) { + if (this.k == null || e0.a(Integer.valueOf(i), 3) || !e0.a(this.l, 3)) { + this.k = (byte[]) bArr.clone(); + this.l = Integer.valueOf(i); + } + return this; + } + } + + public p1(b bVar, a aVar) { + this.l = bVar.a; + this.m = bVar.f1036b; + this.n = bVar.c; + this.o = bVar.d; + this.p = bVar.e; + this.q = bVar.f; + this.r = bVar.g; + this.f1032s = bVar.h; + this.t = bVar.i; + this.u = bVar.j; + this.v = bVar.k; + this.w = bVar.l; + this.f1033x = bVar.m; + this.f1034y = bVar.n; + this.f1035z = bVar.o; + this.A = bVar.p; + this.B = bVar.q; + Integer num = bVar.r; + this.C = num; + this.D = num; + this.E = bVar.f1037s; + this.F = bVar.t; + this.G = bVar.u; + this.H = bVar.v; + this.I = bVar.w; + this.J = bVar.f1038x; + this.K = bVar.f1039y; + this.L = bVar.f1040z; + this.M = bVar.A; + this.N = bVar.B; + this.O = bVar.C; + this.P = bVar.D; + this.Q = bVar.E; + } + + public static String b(int i) { + return Integer.toString(i, 36); + } + + public b a() { + return new b(this, null); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || p1.class != obj.getClass()) { + return false; + } + p1 p1Var = (p1) obj; + return e0.a(this.l, p1Var.l) && e0.a(this.m, p1Var.m) && e0.a(this.n, p1Var.n) && e0.a(this.o, p1Var.o) && e0.a(this.p, p1Var.p) && e0.a(this.q, p1Var.q) && e0.a(this.r, p1Var.r) && e0.a(this.f1032s, p1Var.f1032s) && e0.a(this.t, p1Var.t) && e0.a(this.u, p1Var.u) && Arrays.equals(this.v, p1Var.v) && e0.a(this.w, p1Var.w) && e0.a(this.f1033x, p1Var.f1033x) && e0.a(this.f1034y, p1Var.f1034y) && e0.a(this.f1035z, p1Var.f1035z) && e0.a(this.A, p1Var.A) && e0.a(this.B, p1Var.B) && e0.a(this.D, p1Var.D) && e0.a(this.E, p1Var.E) && e0.a(this.F, p1Var.F) && e0.a(this.G, p1Var.G) && e0.a(this.H, p1Var.H) && e0.a(this.I, p1Var.I) && e0.a(this.J, p1Var.J) && e0.a(this.K, p1Var.K) && e0.a(this.L, p1Var.L) && e0.a(this.M, p1Var.M) && e0.a(this.N, p1Var.N) && e0.a(this.O, p1Var.O) && e0.a(this.P, p1Var.P); + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{this.l, this.m, this.n, this.o, this.p, this.q, this.r, this.f1032s, this.t, this.u, Integer.valueOf(Arrays.hashCode(this.v)), this.w, this.f1033x, this.f1034y, this.f1035z, this.A, this.B, this.D, this.E, this.F, this.G, this.H, this.I, this.J, this.K, this.L, this.M, this.N, this.O, this.P}); + } +} diff --git a/app/src/main/java/b/i/a/c/p2.java b/app/src/main/java/b/i/a/c/p2.java new file mode 100644 index 0000000000..7482b3b3c3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/p2.java @@ -0,0 +1,69 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.n0; +import b.i.b.b.h0; +import b.i.b.b.p; +import java.util.Arrays; +import java.util.List; +/* compiled from: TracksInfo */ +public final class p2 implements w0 { + public static final p2 j = new p2(h0.l); + public final p k; + + /* compiled from: TracksInfo */ + public static final class a implements w0 { + public final n0 j; + public final int[] k; + public final int l; + public final boolean[] m; + + public a(n0 n0Var, int[] iArr, int i, boolean[] zArr) { + int i2 = n0Var.k; + d.j(i2 == iArr.length && i2 == zArr.length); + this.j = n0Var; + this.k = (int[]) iArr.clone(); + this.l = i; + this.m = (boolean[]) zArr.clone(); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || a.class != obj.getClass()) { + return false; + } + a aVar = (a) obj; + return this.l == aVar.l && this.j.equals(aVar.j) && Arrays.equals(this.k, aVar.k) && Arrays.equals(this.m, aVar.m); + } + + public int hashCode() { + int hashCode = Arrays.hashCode(this.k); + return Arrays.hashCode(this.m) + ((((hashCode + (this.j.hashCode() * 31)) * 31) + this.l) * 31); + } + } + + static { + b.i.b.b.a aVar = p.k; + } + + public p2(List list) { + this.k = p.n(list); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || p2.class != obj.getClass()) { + return false; + } + return this.k.equals(((p2) obj).k); + } + + public int hashCode() { + return this.k.hashCode(); + } +} diff --git a/app/src/main/java/b/i/a/c/q.java b/app/src/main/java/b/i/a/c/q.java new file mode 100644 index 0000000000..1f42800aca --- /dev/null +++ b/app/src/main/java/b/i/a/c/q.java @@ -0,0 +1,23 @@ +package b.i.a.c; + +import b.i.a.c.c3.n; +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class q implements p.a { + public final /* synthetic */ w1 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ n f1041b; + + public /* synthetic */ q(w1 w1Var, n nVar) { + this.a = w1Var; + this.f1041b = nVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + w1 w1Var = this.a; + ((y1.c) obj).Y(w1Var.i, this.f1041b); + } +} diff --git a/app/src/main/java/b/i/a/c/q0.java b/app/src/main/java/b/i/a/c/q0.java new file mode 100644 index 0000000000..4613312810 --- /dev/null +++ b/app/src/main/java/b/i/a/c/q0.java @@ -0,0 +1,36 @@ +package b.i.a.c; + +import android.os.Bundle; +import b.i.a.c.o1; +import b.i.a.c.o2; +import b.i.a.c.w0; +/* compiled from: lambda */ +public final /* synthetic */ class q0 implements w0.a { + public static final /* synthetic */ q0 a = new q0(); + + @Override // b.i.a.c.w0.a + public final w0 a(Bundle bundle) { + Bundle bundle2 = bundle.getBundle(o2.c.d(1)); + o1.g gVar = null; + o1 a2 = bundle2 != null ? o1.j.a(bundle2) : null; + long j = bundle.getLong(o2.c.d(2), -9223372036854775807L); + long j2 = bundle.getLong(o2.c.d(3), -9223372036854775807L); + long j3 = bundle.getLong(o2.c.d(4), -9223372036854775807L); + boolean z2 = bundle.getBoolean(o2.c.d(5), false); + boolean z3 = bundle.getBoolean(o2.c.d(6), false); + Bundle bundle3 = bundle.getBundle(o2.c.d(7)); + if (bundle3 != null) { + gVar = o1.g.k.a(bundle3); + } + boolean z4 = bundle.getBoolean(o2.c.d(8), false); + long j4 = bundle.getLong(o2.c.d(9), 0); + long j5 = bundle.getLong(o2.c.d(10), -9223372036854775807L); + int i = bundle.getInt(o2.c.d(11), 0); + int i2 = bundle.getInt(o2.c.d(12), 0); + long j6 = bundle.getLong(o2.c.d(13), 0); + o2.c cVar = new o2.c(); + cVar.e(o2.c.k, a2, null, j, j2, j3, z2, z3, gVar, j4, j5, i, i2, j6); + cVar.f1030y = z4; + return cVar; + } +} diff --git a/app/src/main/java/b/i/a/c/q1.java b/app/src/main/java/b/i/a/c/q1.java new file mode 100644 index 0000000000..52d34ef132 --- /dev/null +++ b/app/src/main/java/b/i/a/c/q1.java @@ -0,0 +1,227 @@ +package b.i.a.c; + +import android.util.Pair; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.i0; +import b.i.a.c.a3.n; +import b.i.a.c.a3.o0; +import b.i.a.c.a3.x; +import b.i.a.c.c3.j; +import b.i.a.c.c3.q; +import b.i.a.c.c3.r; +import b.i.a.c.e3.o; +import b.i.a.c.u1; +import com.google.android.exoplayer2.ExoPlaybackException; +import java.util.Objects; +/* compiled from: MediaPeriodHolder */ +public final class q1 { + public final x a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1042b; + public final i0[] c; + public boolean d; + public boolean e; + public r1 f; + public boolean g; + public final boolean[] h; + public final g2[] i; + public final q j; + public final u1 k; + @Nullable + public q1 l; + public o0 m = o0.j; + public r n; + public long o; + + public q1(g2[] g2VarArr, long j, q qVar, o oVar, u1 u1Var, r1 r1Var, r rVar) { + this.i = g2VarArr; + this.o = j; + this.j = qVar; + this.k = u1Var; + a0.a aVar = r1Var.a; + this.f1042b = aVar.a; + this.f = r1Var; + this.n = rVar; + this.c = new i0[g2VarArr.length]; + this.h = new boolean[g2VarArr.length]; + long j2 = r1Var.f1044b; + long j3 = r1Var.d; + Objects.requireNonNull(u1Var); + Pair pair = (Pair) aVar.a; + Object obj = pair.first; + a0.a b2 = aVar.b(pair.second); + u1.c cVar = u1Var.c.get(obj); + Objects.requireNonNull(cVar); + u1Var.h.add(cVar); + u1.b bVar = u1Var.g.get(cVar); + if (bVar != null) { + bVar.a.m(bVar.f1124b); + } + cVar.c.add(b2); + x u = cVar.a.n(b2, oVar, j2); + u1Var.f1123b.put(u, cVar); + u1Var.d(); + this.a = j3 != -9223372036854775807L ? new n(u, true, 0, j3) : u; + } + + public long a(r rVar, long j, boolean z2, boolean[] zArr) { + int i = 0; + while (true) { + boolean z3 = true; + if (i >= rVar.a) { + break; + } + boolean[] zArr2 = this.h; + if (z2 || !rVar.a(this.n, i)) { + z3 = false; + } + zArr2[i] = z3; + i++; + } + i0[] i0VarArr = this.c; + int i2 = 0; + while (true) { + g2[] g2VarArr = this.i; + if (i2 >= g2VarArr.length) { + break; + } + if (((v0) g2VarArr[i2]).j == -2) { + i0VarArr[i2] = null; + } + i2++; + } + b(); + this.n = rVar; + c(); + long m = this.a.m(rVar.c, this.h, this.c, zArr, j); + i0[] i0VarArr2 = this.c; + int i3 = 0; + while (true) { + g2[] g2VarArr2 = this.i; + if (i3 >= g2VarArr2.length) { + break; + } + if (((v0) g2VarArr2[i3]).j == -2 && this.n.b(i3)) { + i0VarArr2[i3] = new b.i.a.c.a3.q(); + } + i3++; + } + this.e = false; + int i4 = 0; + while (true) { + i0[] i0VarArr3 = this.c; + if (i4 >= i0VarArr3.length) { + return m; + } + if (i0VarArr3[i4] != null) { + d.D(rVar.b(i4)); + if (((v0) this.i[i4]).j != -2) { + this.e = true; + } + } else { + d.D(rVar.c[i4] == null); + } + i4++; + } + } + + public final void b() { + if (g()) { + int i = 0; + while (true) { + r rVar = this.n; + if (i < rVar.a) { + boolean b2 = rVar.b(i); + j jVar = this.n.c[i]; + if (b2 && jVar != null) { + jVar.g(); + } + i++; + } else { + return; + } + } + } + } + + public final void c() { + if (g()) { + int i = 0; + while (true) { + r rVar = this.n; + if (i < rVar.a) { + boolean b2 = rVar.b(i); + j jVar = this.n.c[i]; + if (b2 && jVar != null) { + jVar.e(); + } + i++; + } else { + return; + } + } + } + } + + public long d() { + if (!this.d) { + return this.f.f1044b; + } + long q = this.e ? this.a.q() : Long.MIN_VALUE; + return q == Long.MIN_VALUE ? this.f.e : q; + } + + public long e() { + return this.f.f1044b + this.o; + } + + public boolean f() { + return this.d && (!this.e || this.a.q() == Long.MIN_VALUE); + } + + public final boolean g() { + return this.l == null; + } + + public void h() { + b(); + u1 u1Var = this.k; + x xVar = this.a; + try { + if (xVar instanceof n) { + u1Var.h(((n) xVar).j); + } else { + u1Var.h(xVar); + } + } catch (RuntimeException e) { + b.i.a.c.f3.q.b("MediaPeriodHolder", "Period release failed.", e); + } + } + + public r i(float f, o2 o2Var) throws ExoPlaybackException { + r b2 = this.j.b(this.i, this.m, this.f.a, o2Var); + j[] jVarArr = b2.c; + for (j jVar : jVarArr) { + if (jVar != null) { + jVar.i(f); + } + } + return b2; + } + + public void j() { + x xVar = this.a; + if (xVar instanceof n) { + long j = this.f.d; + if (j == -9223372036854775807L) { + j = Long.MIN_VALUE; + } + n nVar = (n) xVar; + nVar.n = 0; + nVar.o = j; + } + } +} diff --git a/app/src/main/java/b/i/a/c/q2.java b/app/src/main/java/b/i/a/c/q2.java new file mode 100644 index 0000000000..a2f8bb38c9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/q2.java @@ -0,0 +1,33 @@ +package b.i.a.c; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.os.PowerManager; +import androidx.annotation.Nullable; +/* compiled from: WakeLockManager */ +public final class q2 { + @Nullable + public final PowerManager a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public PowerManager.WakeLock f1043b; + public boolean c; + public boolean d; + + public q2(Context context) { + this.a = (PowerManager) context.getApplicationContext().getSystemService("power"); + } + + @SuppressLint({"WakelockTimeout"}) + public final void a() { + PowerManager.WakeLock wakeLock = this.f1043b; + if (wakeLock != null) { + if (!this.c || !this.d) { + wakeLock.release(); + } else { + wakeLock.acquire(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/r.java b/app/src/main/java/b/i/a/c/r.java new file mode 100644 index 0000000000..e172b50f68 --- /dev/null +++ b/app/src/main/java/b/i/a/c/r.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class r implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ r(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).h(this.a.n); + } +} diff --git a/app/src/main/java/b/i/a/c/r0.java b/app/src/main/java/b/i/a/c/r0.java new file mode 100644 index 0000000000..6a6264b77f --- /dev/null +++ b/app/src/main/java/b/i/a/c/r0.java @@ -0,0 +1,224 @@ +package b.i.a.c; + +import android.util.Pair; +import b.i.a.c.a3.k0; +import b.i.a.c.f3.e0; +import b.i.a.c.o2; +import java.util.Objects; +/* compiled from: AbstractConcatenatedTimeline */ +public abstract class r0 extends o2 { + public final int k; + public final k0 l; + public final boolean m; + + public r0(boolean z2, k0 k0Var) { + this.m = z2; + this.l = k0Var; + this.k = k0Var.b(); + } + + @Override // b.i.a.c.o2 + public int a(boolean z2) { + if (this.k == 0) { + return -1; + } + int i = 0; + if (this.m) { + z2 = false; + } + if (z2) { + i = this.l.c(); + } + do { + c2 c2Var = (c2) this; + if (c2Var.r[i].q()) { + i = r(i, z2); + } else { + return c2Var.r[i].a(z2) + c2Var.q[i]; + } + } while (i != -1); + return -1; + } + + @Override // b.i.a.c.o2 + public final int b(Object obj) { + int b2; + if (!(obj instanceof Pair)) { + return -1; + } + Pair pair = (Pair) obj; + Object obj2 = pair.first; + Object obj3 = pair.second; + c2 c2Var = (c2) this; + Integer num = c2Var.t.get(obj2); + int intValue = num == null ? -1 : num.intValue(); + if (intValue == -1 || (b2 = c2Var.r[intValue].b(obj3)) == -1) { + return -1; + } + return c2Var.p[intValue] + b2; + } + + @Override // b.i.a.c.o2 + public int c(boolean z2) { + int i = this.k; + if (i == 0) { + return -1; + } + if (this.m) { + z2 = false; + } + int g = z2 ? this.l.g() : i - 1; + do { + c2 c2Var = (c2) this; + if (c2Var.r[g].q()) { + g = s(g, z2); + } else { + return c2Var.r[g].c(z2) + c2Var.q[g]; + } + } while (g != -1); + return -1; + } + + @Override // b.i.a.c.o2 + public int e(int i, int i2, boolean z2) { + int i3 = 0; + if (this.m) { + if (i2 == 1) { + i2 = 2; + } + z2 = false; + } + c2 c2Var = (c2) this; + int d = e0.d(c2Var.q, i + 1, false, false); + int i4 = c2Var.q[d]; + o2 o2Var = c2Var.r[d]; + int i5 = i - i4; + if (i2 != 2) { + i3 = i2; + } + int e = o2Var.e(i5, i3, z2); + if (e != -1) { + return i4 + e; + } + int r = r(d, z2); + while (r != -1 && c2Var.r[r].q()) { + r = r(r, z2); + } + if (r != -1) { + return c2Var.r[r].a(z2) + c2Var.q[r]; + } else if (i2 == 2) { + return a(z2); + } else { + return -1; + } + } + + @Override // b.i.a.c.o2 + public final o2.b g(int i, o2.b bVar, boolean z2) { + c2 c2Var = (c2) this; + int d = e0.d(c2Var.p, i + 1, false, false); + int i2 = c2Var.q[d]; + c2Var.r[d].g(i - c2Var.p[d], bVar, z2); + bVar.l += i2; + if (z2) { + Object obj = c2Var.f881s[d]; + Object obj2 = bVar.k; + Objects.requireNonNull(obj2); + bVar.k = Pair.create(obj, obj2); + } + return bVar; + } + + @Override // b.i.a.c.o2 + public final o2.b h(Object obj, o2.b bVar) { + Pair pair = (Pair) obj; + Object obj2 = pair.first; + Object obj3 = pair.second; + c2 c2Var = (c2) this; + Integer num = c2Var.t.get(obj2); + int intValue = num == null ? -1 : num.intValue(); + int i = c2Var.q[intValue]; + c2Var.r[intValue].h(obj3, bVar); + bVar.l += i; + bVar.k = obj; + return bVar; + } + + @Override // b.i.a.c.o2 + public int l(int i, int i2, boolean z2) { + int i3 = 0; + if (this.m) { + if (i2 == 1) { + i2 = 2; + } + z2 = false; + } + c2 c2Var = (c2) this; + int d = e0.d(c2Var.q, i + 1, false, false); + int i4 = c2Var.q[d]; + o2 o2Var = c2Var.r[d]; + int i5 = i - i4; + if (i2 != 2) { + i3 = i2; + } + int l = o2Var.l(i5, i3, z2); + if (l != -1) { + return i4 + l; + } + int s2 = s(d, z2); + while (s2 != -1 && c2Var.r[s2].q()) { + s2 = s(s2, z2); + } + if (s2 != -1) { + return c2Var.r[s2].c(z2) + c2Var.q[s2]; + } else if (i2 == 2) { + return c(z2); + } else { + return -1; + } + } + + @Override // b.i.a.c.o2 + public final Object m(int i) { + c2 c2Var = (c2) this; + int d = e0.d(c2Var.p, i + 1, false, false); + return Pair.create(c2Var.f881s[d], c2Var.r[d].m(i - c2Var.p[d])); + } + + @Override // b.i.a.c.o2 + public final o2.c o(int i, o2.c cVar, long j) { + c2 c2Var = (c2) this; + int d = e0.d(c2Var.q, i + 1, false, false); + int i2 = c2Var.q[d]; + int i3 = c2Var.p[d]; + c2Var.r[d].o(i - i2, cVar, j); + Object obj = c2Var.f881s[d]; + if (!o2.c.j.equals(cVar.n)) { + obj = Pair.create(obj, cVar.n); + } + cVar.n = obj; + cVar.B += i3; + cVar.C += i3; + return cVar; + } + + public final int r(int i, boolean z2) { + if (z2) { + return this.l.e(i); + } + if (i < this.k - 1) { + return i + 1; + } + return -1; + } + + public final int s(int i, boolean z2) { + if (z2) { + return this.l.d(i); + } + if (i > 0) { + return i - 1; + } + return -1; + } +} diff --git a/app/src/main/java/b/i/a/c/r1.java b/app/src/main/java/b/i/a/c/r1.java new file mode 100644 index 0000000000..40dbdb7591 --- /dev/null +++ b/app/src/main/java/b/i/a/c/r1.java @@ -0,0 +1,62 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.a3.a0; +import b.i.a.c.f3.e0; +/* compiled from: MediaPeriodInfo */ +public final class r1 { + public final a0.a a; + + /* renamed from: b reason: collision with root package name */ + public final long f1044b; + public final long c; + public final long d; + public final long e; + public final boolean f; + public final boolean g; + public final boolean h; + public final boolean i; + + public r1(a0.a aVar, long j, long j2, long j3, long j4, boolean z2, boolean z3, boolean z4, boolean z5) { + boolean z6 = false; + d.j(!z5 || z3); + d.j(!z4 || z3); + if (!z2 || (!z3 && !z4 && !z5)) { + z6 = true; + } + d.j(z6); + this.a = aVar; + this.f1044b = j; + this.c = j2; + this.d = j3; + this.e = j4; + this.f = z2; + this.g = z3; + this.h = z4; + this.i = z5; + } + + public r1 a(long j) { + return j == this.c ? this : new r1(this.a, this.f1044b, j, this.d, this.e, this.f, this.g, this.h, this.i); + } + + public r1 b(long j) { + return j == this.f1044b ? this : new r1(this.a, j, this.c, this.d, this.e, this.f, this.g, this.h, this.i); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || r1.class != obj.getClass()) { + return false; + } + r1 r1Var = (r1) obj; + return this.f1044b == r1Var.f1044b && this.c == r1Var.c && this.d == r1Var.d && this.e == r1Var.e && this.f == r1Var.f && this.g == r1Var.g && this.h == r1Var.h && this.i == r1Var.i && e0.a(this.a, r1Var.a); + } + + public int hashCode() { + return ((((((((((((((((this.a.hashCode() + 527) * 31) + ((int) this.f1044b)) * 31) + ((int) this.c)) * 31) + ((int) this.d)) * 31) + ((int) this.e)) * 31) + (this.f ? 1 : 0)) * 31) + (this.g ? 1 : 0)) * 31) + (this.h ? 1 : 0)) * 31) + (this.i ? 1 : 0); + } +} diff --git a/app/src/main/java/b/i/a/c/r2.java b/app/src/main/java/b/i/a/c/r2.java new file mode 100644 index 0000000000..62d499cf46 --- /dev/null +++ b/app/src/main/java/b/i/a/c/r2.java @@ -0,0 +1,31 @@ +package b.i.a.c; + +import android.content.Context; +import android.net.wifi.WifiManager; +import androidx.annotation.Nullable; +/* compiled from: WifiLockManager */ +public final class r2 { + @Nullable + public final WifiManager a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public WifiManager.WifiLock f1045b; + public boolean c; + public boolean d; + + public r2(Context context) { + this.a = (WifiManager) context.getApplicationContext().getSystemService("wifi"); + } + + public final void a() { + WifiManager.WifiLock wifiLock = this.f1045b; + if (wifiLock != null) { + if (!this.c || !this.d) { + wifiLock.release(); + } else { + wifiLock.acquire(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/s.java b/app/src/main/java/b/i/a/c/s.java new file mode 100644 index 0000000000..9f8ab4f52c --- /dev/null +++ b/app/src/main/java/b/i/a/c/s.java @@ -0,0 +1,22 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class s implements p.a { + public final /* synthetic */ w1 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1046b; + + public /* synthetic */ s(w1 w1Var, int i) { + this.a = w1Var; + this.f1046b = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + w1 w1Var = this.a; + ((y1.c) obj).W(w1Var.m, this.f1046b); + } +} diff --git a/app/src/main/java/b/i/a/c/s0.java b/app/src/main/java/b/i/a/c/s0.java new file mode 100644 index 0000000000..889e565d7e --- /dev/null +++ b/app/src/main/java/b/i/a/c/s0.java @@ -0,0 +1,59 @@ +package b.i.a.c; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.os.Handler; +/* compiled from: AudioBecomingNoisyManager */ +public final class s0 { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final a f1047b; + public boolean c; + + /* compiled from: AudioBecomingNoisyManager */ + public final class a extends BroadcastReceiver implements Runnable { + public final b j; + public final Handler k; + + public a(Handler handler, b bVar) { + this.k = handler; + this.j = bVar; + } + + @Override // android.content.BroadcastReceiver + public void onReceive(Context context, Intent intent) { + if ("android.media.AUDIO_BECOMING_NOISY".equals(intent.getAction())) { + this.k.post(this); + } + } + + @Override // java.lang.Runnable + public void run() { + if (s0.this.c) { + k2.this.m0(false, -1, 3); + } + } + } + + /* compiled from: AudioBecomingNoisyManager */ + public interface b { + } + + public s0(Context context, Handler handler, b bVar) { + this.a = context.getApplicationContext(); + this.f1047b = new a(handler, bVar); + } + + public void a(boolean z2) { + if (z2 && !this.c) { + this.a.registerReceiver(this.f1047b, new IntentFilter("android.media.AUDIO_BECOMING_NOISY")); + this.c = true; + } else if (!z2 && this.c) { + this.a.unregisterReceiver(this.f1047b); + this.c = false; + } + } +} diff --git a/app/src/main/java/b/i/a/c/s1.java b/app/src/main/java/b/i/a/c/s1.java new file mode 100644 index 0000000000..69ef6cdf18 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s1.java @@ -0,0 +1,413 @@ +package b.i.a.c; + +import android.os.Handler; +import android.util.Pair; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.p0.c; +import b.i.a.c.o2; +import b.i.a.c.s2.g1; +import b.i.b.b.a; +import b.i.b.b.p; +/* compiled from: MediaPeriodQueue */ +public final class s1 { + public final o2.b a = new o2.b(); + + /* renamed from: b reason: collision with root package name */ + public final o2.c f1048b = new o2.c(); + @Nullable + public final g1 c; + public final Handler d; + public long e; + public int f; + public boolean g; + @Nullable + public q1 h; + @Nullable + public q1 i; + @Nullable + public q1 j; + public int k; + @Nullable + public Object l; + public long m; + + public s1(@Nullable g1 g1Var, Handler handler) { + this.c = g1Var; + this.d = handler; + } + + public static a0.a p(o2 o2Var, Object obj, long j, long j2, o2.b bVar) { + o2Var.h(obj, bVar); + c cVar = bVar.p; + long j3 = bVar.m; + int i = cVar.n - 1; + while (i >= 0) { + boolean z2 = false; + if (j != Long.MIN_VALUE) { + long j4 = cVar.a(i).k; + if (j4 != Long.MIN_VALUE ? j < j4 : !(j3 != -9223372036854775807L && j >= j3)) { + z2 = true; + } + } + if (!z2) { + break; + } + i--; + } + if (i < 0 || !cVar.a(i).b()) { + i = -1; + } + return i == -1 ? new a0.a(obj, j2, bVar.b(j)) : new a0.a(obj, i, bVar.d(i), j2); + } + + @Nullable + public q1 a() { + q1 q1Var = this.h; + if (q1Var == null) { + return null; + } + if (q1Var == this.i) { + this.i = q1Var.l; + } + q1Var.h(); + int i = this.k - 1; + this.k = i; + if (i == 0) { + this.j = null; + q1 q1Var2 = this.h; + this.l = q1Var2.f1042b; + this.m = q1Var2.f.a.d; + } + this.h = this.h.l; + l(); + return this.h; + } + + public void b() { + if (this.k != 0) { + q1 q1Var = this.h; + d.H(q1Var); + q1 q1Var2 = q1Var; + this.l = q1Var2.f1042b; + this.m = q1Var2.f.a.d; + while (q1Var2 != null) { + q1Var2.h(); + q1Var2 = q1Var2.l; + } + this.h = null; + this.j = null; + this.i = null; + this.k = 0; + l(); + } + } + + @Nullable + public final r1 c(o2 o2Var, q1 q1Var, long j) { + long j2; + r1 r1Var = q1Var.f; + long j3 = (q1Var.o + r1Var.e) - j; + long j4 = 0; + if (r1Var.g) { + int d = o2Var.d(o2Var.b(r1Var.a.a), this.a, this.f1048b, this.f, this.g); + if (d == -1) { + return null; + } + int i = o2Var.g(d, this.a, true).l; + Object obj = this.a.k; + long j5 = r1Var.a.d; + if (o2Var.n(i, this.f1048b).B == d) { + Pair k = o2Var.k(this.f1048b, this.a, i, -9223372036854775807L, Math.max(0L, j3)); + if (k == null) { + return null; + } + obj = k.first; + long longValue = ((Long) k.second).longValue(); + q1 q1Var2 = q1Var.l; + if (q1Var2 == null || !q1Var2.f1042b.equals(obj)) { + j5 = this.e; + this.e = 1 + j5; + } else { + j5 = q1Var2.f.a.d; + } + j2 = longValue; + j4 = -9223372036854775807L; + } else { + j2 = 0; + } + return d(o2Var, p(o2Var, obj, j2, j5, this.a), j4, j2); + } + a0.a aVar = r1Var.a; + o2Var.h(aVar.a, this.a); + if (aVar.a()) { + int i2 = aVar.f821b; + int i3 = this.a.p.a(i2).l; + if (i3 == -1) { + return null; + } + int a = this.a.p.a(i2).a(aVar.c); + if (a < i3) { + return e(o2Var, aVar.a, i2, a, r1Var.c, aVar.d); + } + long j6 = r1Var.c; + if (j6 == -9223372036854775807L) { + o2.c cVar = this.f1048b; + o2.b bVar = this.a; + Pair k2 = o2Var.k(cVar, bVar, bVar.l, -9223372036854775807L, Math.max(0L, j3)); + if (k2 == null) { + return null; + } + j6 = ((Long) k2.second).longValue(); + } + return f(o2Var, aVar.a, Math.max(g(o2Var, aVar.a, aVar.f821b), j6), r1Var.c, aVar.d); + } + int d2 = this.a.d(aVar.e); + if (d2 != this.a.p.a(aVar.e).l) { + return e(o2Var, aVar.a, aVar.e, d2, r1Var.e, aVar.d); + } + return f(o2Var, aVar.a, g(o2Var, aVar.a, aVar.e), r1Var.e, aVar.d); + } + + @Nullable + public final r1 d(o2 o2Var, a0.a aVar, long j, long j2) { + o2Var.h(aVar.a, this.a); + return aVar.a() ? e(o2Var, aVar.a, aVar.f821b, aVar.c, j, aVar.d) : f(o2Var, aVar.a, j2, j, aVar.d); + } + + public final r1 e(o2 o2Var, Object obj, int i, int i2, long j, long j2) { + a0.a aVar = new a0.a(obj, i, i2, j2); + long a = o2Var.h(obj, this.a).a(i, i2); + long j3 = i2 == this.a.p.a(i).a(-1) ? this.a.p.o : 0; + return new r1(aVar, (a == -9223372036854775807L || j3 < a) ? j3 : Math.max(0L, a - 1), j, -9223372036854775807L, a, this.a.p.a(i).q, false, false, false); + } + + public final r1 f(o2 o2Var, Object obj, long j, long j2, long j3) { + long j4 = j; + o2Var.h(obj, this.a); + int b2 = this.a.b(j4); + a0.a aVar = new a0.a(obj, j3, b2); + boolean i = i(aVar); + boolean k = k(o2Var, aVar); + boolean j5 = j(o2Var, aVar, i); + boolean z2 = b2 != -1 && this.a.e(b2); + long c = b2 != -1 ? this.a.c(b2) : -9223372036854775807L; + long j6 = (c == -9223372036854775807L || c == Long.MIN_VALUE) ? this.a.m : c; + if (j6 != -9223372036854775807L && j4 >= j6) { + j4 = Math.max(0L, j6 - 1); + } + return new r1(aVar, j4, j2, c, j6, z2, i, k, j5); + } + + public final long g(o2 o2Var, Object obj, int i) { + o2Var.h(obj, this.a); + long j = this.a.p.a(i).k; + return j == Long.MIN_VALUE ? this.a.m : j + this.a.p.a(i).p; + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x0060 */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x006a */ + public r1 h(o2 o2Var, r1 r1Var) { + long j; + boolean z2; + long j2; + int i; + a0.a aVar = r1Var.a; + boolean i2 = i(aVar); + boolean k = k(o2Var, aVar); + boolean j3 = j(o2Var, aVar, i2); + o2Var.h(r1Var.a.a, this.a); + long c = (aVar.a() || (i = aVar.e) == -1) ? -9223372036854775807L : this.a.c(i); + if (aVar.a()) { + j2 = this.a.a(aVar.f821b, aVar.c); + } else if (c == -9223372036854775807L || c == Long.MIN_VALUE) { + j2 = this.a.m; + } else { + j = c; + if (!aVar.a()) { + z2 = this.a.e(aVar.f821b); + } else { + int i3 = aVar.e; + z2 = i3 != -1 && this.a.e(i3); + } + return new r1(aVar, r1Var.f1044b, r1Var.c, c, j, z2, i2, k, j3); + } + j = j2; + if (!aVar.a()) { + } + return new r1(aVar, r1Var.f1044b, r1Var.c, c, j, z2, i2, k, j3); + } + + public final boolean i(a0.a aVar) { + return !aVar.a() && aVar.e == -1; + } + + public final boolean j(o2 o2Var, a0.a aVar, boolean z2) { + int b2 = o2Var.b(aVar.a); + if (o2Var.n(o2Var.f(b2, this.a).l, this.f1048b).v) { + return false; + } + return (o2Var.d(b2, this.a, this.f1048b, this.f, this.g) == -1) && z2; + } + + public final boolean k(o2 o2Var, a0.a aVar) { + if (!i(aVar)) { + return false; + } + return o2Var.n(o2Var.h(aVar.a, this.a).l, this.f1048b).C == o2Var.b(aVar.a); + } + + public final void l() { + if (this.c != null) { + a aVar = p.k; + p.a aVar2 = new p.a(); + for (q1 q1Var = this.h; q1Var != null; q1Var = q1Var.l) { + aVar2.b(q1Var.f.a); + } + q1 q1Var2 = this.i; + this.d.post(new m0(this, aVar2, q1Var2 == null ? null : q1Var2.f.a)); + } + } + + public void m(long j) { + q1 q1Var = this.j; + if (q1Var != null) { + d.D(q1Var.g()); + if (q1Var.d) { + q1Var.a.s(j - q1Var.o); + } + } + } + + public boolean n(q1 q1Var) { + boolean z2 = false; + d.D(q1Var != null); + if (q1Var.equals(this.j)) { + return false; + } + this.j = q1Var; + while (true) { + q1Var = q1Var.l; + if (q1Var == null) { + break; + } + if (q1Var == this.i) { + this.i = this.h; + z2 = true; + } + q1Var.h(); + this.k--; + } + q1 q1Var2 = this.j; + if (q1Var2.l != null) { + q1Var2.b(); + q1Var2.l = null; + q1Var2.c(); + } + l(); + return z2; + } + + public a0.a o(o2 o2Var, Object obj, long j) { + long j2; + int b2; + int i = o2Var.h(obj, this.a).l; + Object obj2 = this.l; + if (obj2 == null || (b2 = o2Var.b(obj2)) == -1 || o2Var.f(b2, this.a).l != i) { + q1 q1Var = this.h; + while (true) { + if (q1Var == null) { + q1 q1Var2 = this.h; + while (true) { + if (q1Var2 != null) { + int b3 = o2Var.b(q1Var2.f1042b); + if (b3 != -1 && o2Var.f(b3, this.a).l == i) { + j2 = q1Var2.f.a.d; + break; + } + q1Var2 = q1Var2.l; + } else { + j2 = this.e; + this.e = 1 + j2; + if (this.h == null) { + this.l = obj; + this.m = j2; + } + } + } + } else if (q1Var.f1042b.equals(obj)) { + j2 = q1Var.f.a.d; + break; + } else { + q1Var = q1Var.l; + } + } + } else { + j2 = this.m; + } + return p(o2Var, obj, j, j2, this.a); + } + + public final boolean q(o2 o2Var) { + q1 q1Var; + q1 q1Var2 = this.h; + if (q1Var2 == null) { + return true; + } + int b2 = o2Var.b(q1Var2.f1042b); + while (true) { + b2 = o2Var.d(b2, this.a, this.f1048b, this.f, this.g); + while (true) { + q1Var = q1Var2.l; + if (q1Var == null || q1Var2.f.g) { + break; + } + q1Var2 = q1Var; + } + if (b2 == -1 || q1Var == null || o2Var.b(q1Var.f1042b) != b2) { + break; + } + q1Var2 = q1Var; + } + boolean n = n(q1Var2); + q1Var2.f = h(o2Var, q1Var2.f); + return !n; + } + + public boolean r(o2 o2Var, long j, long j2) { + r1 r1Var; + boolean n; + q1 q1Var = this.h; + q1 q1Var2 = null; + while (q1Var != null) { + r1 r1Var2 = q1Var.f; + if (q1Var2 == null) { + r1Var = h(o2Var, r1Var2); + } else { + r1 c = c(o2Var, q1Var2, j); + if (c == null) { + n = n(q1Var2); + } else { + if (!(r1Var2.f1044b == c.f1044b && r1Var2.a.equals(c.a))) { + n = n(q1Var2); + } else { + r1Var = c; + } + } + return !n; + } + q1Var.f = r1Var.a(r1Var2.c); + long j3 = r1Var2.e; + if (!(j3 == -9223372036854775807L || j3 == r1Var.e)) { + q1Var.j(); + long j4 = r1Var.e; + return !n(q1Var) && !(q1Var == this.i && !q1Var.f.f && ((j2 > Long.MIN_VALUE ? 1 : (j2 == Long.MIN_VALUE ? 0 : -1)) == 0 || (j2 > ((j4 > -9223372036854775807L ? 1 : (j4 == -9223372036854775807L ? 0 : -1)) == 0 ? RecyclerView.FOREVER_NS : j4 + q1Var.o) ? 1 : (j2 == ((j4 > -9223372036854775807L ? 1 : (j4 == -9223372036854775807L ? 0 : -1)) == 0 ? RecyclerView.FOREVER_NS : j4 + q1Var.o) ? 0 : -1)) >= 0)); + } + q1Var2 = q1Var; + q1Var = q1Var.l; + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/s2/a.java b/app/src/main/java/b/i/a/c/s2/a.java new file mode 100644 index 0000000000..930f676630 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/a.java @@ -0,0 +1,22 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import com.google.android.exoplayer2.PlaybackException; +/* compiled from: lambda */ +public final /* synthetic */ class a implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ PlaybackException f1049b; + + public /* synthetic */ a(h1.a aVar, PlaybackException playbackException) { + this.a = aVar; + this.f1049b = playbackException; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).J(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/a0.java b/app/src/main/java/b/i/a/c/s2/a0.java new file mode 100644 index 0000000000..47d9b9cf80 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/a0.java @@ -0,0 +1,22 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class a0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ y1.b f1050b; + + public /* synthetic */ a0(h1.a aVar, y1.b bVar) { + this.a = aVar; + this.f1050b = bVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).P(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/a1.java b/app/src/main/java/b/i/a/c/s2/a1.java new file mode 100644 index 0000000000..aa7123b473 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/a1.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class a1 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1051b; + + public /* synthetic */ a1(h1.a aVar, int i) { + this.a = aVar; + this.f1051b = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).c0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/b.java b/app/src/main/java/b/i/a/c/s2/b.java new file mode 100644 index 0000000000..24fcba3de2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/b.java @@ -0,0 +1,17 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class b implements p.a { + public final /* synthetic */ h1.a a; + + public /* synthetic */ b(h1.a aVar) { + this.a = aVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).g0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/b0.java b/app/src/main/java/b/i/a/c/s2/b0.java new file mode 100644 index 0000000000..f8e221c105 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/b0.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class b0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1052b; + + public /* synthetic */ b0(h1.a aVar, int i) { + this.a = aVar; + this.f1052b = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).b(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/b1.java b/app/src/main/java/b/i/a/c/s2/b1.java new file mode 100644 index 0000000000..52252bde21 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/b1.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class b1 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1053b; + + public /* synthetic */ b1(h1.a aVar, int i) { + this.a = aVar; + this.f1053b = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).e0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/c.java b/app/src/main/java/b/i/a/c/s2/c.java new file mode 100644 index 0000000000..3ffadfda48 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/c.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class c implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Exception f1054b; + + public /* synthetic */ c(h1.a aVar, Exception exc) { + this.a = aVar; + this.f1054b = exc; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).n(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/c0.java b/app/src/main/java/b/i/a/c/s2/c0.java new file mode 100644 index 0000000000..892ecd5531 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/c0.java @@ -0,0 +1,25 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class c0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1055b; + public final /* synthetic */ long c; + public final /* synthetic */ long d; + + public /* synthetic */ c0(h1.a aVar, int i, long j, long j2) { + this.a = aVar; + this.f1055b = i; + this.c = j; + this.d = j2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).C(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/c1.java b/app/src/main/java/b/i/a/c/s2/c1.java new file mode 100644 index 0000000000..49aac3b34e --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/c1.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class c1 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ long f1056b; + public final /* synthetic */ int c; + + public /* synthetic */ c1(h1.a aVar, long j, int i) { + this.a = aVar; + this.f1056b = j; + this.c = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).a0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/d.java b/app/src/main/java/b/i/a/c/s2/d.java new file mode 100644 index 0000000000..d51fef6d9d --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/d.java @@ -0,0 +1,28 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class d implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ String f1057b; + public final /* synthetic */ long c; + public final /* synthetic */ long d; + + public /* synthetic */ d(h1.a aVar, String str, long j, long j2) { + this.a = aVar; + this.f1057b = str; + this.c = j; + this.d = j2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.i0(); + h1Var.M(); + h1Var.T(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/d0.java b/app/src/main/java/b/i/a/c/s2/d0.java new file mode 100644 index 0000000000..85e974fea8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/d0.java @@ -0,0 +1,24 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import b.i.a.c.v2.e; +/* compiled from: lambda */ +public final /* synthetic */ class d0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ e f1058b; + + public /* synthetic */ d0(h1.a aVar, e eVar) { + this.a = aVar; + this.f1058b = eVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.Z(); + h1Var.F(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/d1.java b/app/src/main/java/b/i/a/c/s2/d1.java new file mode 100644 index 0000000000..83c58fbef8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/d1.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class d1 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ boolean f1059b; + public final /* synthetic */ int c; + + public /* synthetic */ d1(h1.a aVar, boolean z2, int i) { + this.a = aVar; + this.f1059b = z2; + this.c = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).e(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/e.java b/app/src/main/java/b/i/a/c/s2/e.java new file mode 100644 index 0000000000..4dd91a0323 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/e.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class e implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ boolean f1060b; + + public /* synthetic */ e(h1.a aVar, boolean z2) { + this.a = aVar; + this.f1060b = z2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.L(); + h1Var.Q(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/e0.java b/app/src/main/java/b/i/a/c/s2/e0.java new file mode 100644 index 0000000000..cb37de9250 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/e0.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class e0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Exception f1061b; + + public /* synthetic */ e0(h1.a aVar, Exception exc) { + this.a = aVar; + this.f1061b = exc; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).w(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/e1.java b/app/src/main/java/b/i/a/c/s2/e1.java new file mode 100644 index 0000000000..69bf400524 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/e1.java @@ -0,0 +1,17 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class e1 implements p.a { + public final /* synthetic */ h1.a a; + + public /* synthetic */ e1(h1.a aVar) { + this.a = aVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).A(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/f.java b/app/src/main/java/b/i/a/c/s2/f.java new file mode 100644 index 0000000000..ff136734c9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/f.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class f implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ String f1062b; + + public /* synthetic */ f(h1.a aVar, String str) { + this.a = aVar; + this.f1062b = str; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).N(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/f0.java b/app/src/main/java/b/i/a/c/s2/f0.java new file mode 100644 index 0000000000..1bc2251f10 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/f0.java @@ -0,0 +1,30 @@ +package b.i.a.c.s2; + +import b.i.a.c.a3.t; +import b.i.a.c.a3.w; +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import java.io.IOException; +/* compiled from: lambda */ +public final /* synthetic */ class f0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ t f1063b; + public final /* synthetic */ w c; + public final /* synthetic */ IOException d; + public final /* synthetic */ boolean e; + + public /* synthetic */ f0(h1.a aVar, t tVar, w wVar, IOException iOException, boolean z2) { + this.a = aVar; + this.f1063b = tVar; + this.c = wVar; + this.d = iOException; + this.e = z2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).u(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/f1.java b/app/src/main/java/b/i/a/c/s2/f1.java new file mode 100644 index 0000000000..21cfc1692a --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/f1.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class f1 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Object f1064b; + public final /* synthetic */ long c; + + public /* synthetic */ f1(h1.a aVar, Object obj, long j) { + this.a = aVar; + this.f1064b = obj; + this.c = j; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).c(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/g.java b/app/src/main/java/b/i/a/c/s2/g.java new file mode 100644 index 0000000000..2ac6c0630e --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/g.java @@ -0,0 +1,22 @@ +package b.i.a.c.s2; + +import b.i.a.c.a3.w; +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class g implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ w f1065b; + + public /* synthetic */ g(h1.a aVar, w wVar) { + this.a = aVar; + this.f1065b = wVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).H(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/g0.java b/app/src/main/java/b/i/a/c/s2/g0.java new file mode 100644 index 0000000000..01741f29f4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/g0.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class g0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ boolean f1066b; + + public /* synthetic */ g0(h1.a aVar, boolean z2) { + this.a = aVar; + this.f1066b = z2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).o(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/g1.java b/app/src/main/java/b/i/a/c/s2/g1.java new file mode 100644 index 0000000000..845d7333dd --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/g1.java @@ -0,0 +1,801 @@ +package b.i.a.c.s2; + +import android.util.SparseArray; +import androidx.annotation.Nullable; +import androidx.core.view.InputDeviceCompat; +import androidx.core.view.PointerIconCompat; +import androidx.media.AudioAttributesCompat; +import b.i.a.c.a2; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.b0; +import b.i.a.c.a3.o0; +import b.i.a.c.a3.t; +import b.i.a.c.c1; +import b.i.a.c.c3.n; +import b.i.a.c.e3.f; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.g; +import b.i.a.c.f3.o; +import b.i.a.c.f3.p; +import b.i.a.c.g3.w; +import b.i.a.c.g3.x; +import b.i.a.c.g3.y; +import b.i.a.c.j1; +import b.i.a.c.o1; +import b.i.a.c.o2; +import b.i.a.c.p1; +import b.i.a.c.p2; +import b.i.a.c.s2.h1; +import b.i.a.c.t2.r; +import b.i.a.c.v2.e; +import b.i.a.c.w2.s; +import b.i.a.c.x1; +import b.i.a.c.y1; +import b.i.a.c.z1; +import b.i.b.b.h0; +import b.i.b.b.i0; +import b.i.b.b.q; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.PlaybackException; +import com.google.android.exoplayer2.metadata.Metadata; +import java.io.IOException; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.CopyOnWriteArraySet; +import org.checkerframework.checker.nullness.qual.RequiresNonNull; +/* compiled from: AnalyticsCollector */ +public class g1 implements y1.e, r, x, b0, f.a, s { + public final g j; + public final o2.b k; + public final o2.c l = new o2.c(); + public final a m; + public final SparseArray n; + public p

o; + public y1 p; + public o q; + public boolean r; + + /* compiled from: AnalyticsCollector */ + public static final class a { + public final o2.b a; + + /* renamed from: b reason: collision with root package name */ + public b.i.b.b.p f1067b = h0.l; + public q c = i0.m; + @Nullable + public a0.a d; + public a0.a e; + public a0.a f; + + /* JADX DEBUG: Type inference failed for r1v2. Raw type applied. Possible types: b.i.b.b.p, b.i.b.b.p */ + /* JADX DEBUG: Type inference failed for r1v3. Raw type applied. Possible types: b.i.b.b.q, b.i.b.b.q */ + public a(o2.b bVar) { + this.a = bVar; + b.i.b.b.a aVar = b.i.b.b.p.k; + } + + @Nullable + public static a0.a b(y1 y1Var, b.i.b.b.p pVar, @Nullable a0.a aVar, o2.b bVar) { + o2 K = y1Var.K(); + int m = y1Var.m(); + Object m2 = K.q() ? null : K.m(m); + int b2 = (y1Var.f() || K.q()) ? -1 : K.f(m, bVar).b(e0.B(y1Var.T()) - bVar.n); + for (int i = 0; i < pVar.size(); i++) { + a0.a aVar2 = pVar.get(i); + if (c(aVar2, m2, y1Var.f(), y1Var.B(), y1Var.q(), b2)) { + return aVar2; + } + } + if (!pVar.isEmpty() || aVar == null || !c(aVar, m2, y1Var.f(), y1Var.B(), y1Var.q(), b2)) { + return null; + } + return aVar; + } + + public static boolean c(a0.a aVar, @Nullable Object obj, boolean z2, int i, int i2, int i3) { + if (!aVar.a.equals(obj)) { + return false; + } + return (z2 && aVar.f821b == i && aVar.c == i2) || (!z2 && aVar.f821b == -1 && aVar.e == i3); + } + + public final void a(q.a aVar, @Nullable a0.a aVar2, o2 o2Var) { + if (aVar2 != null) { + if (o2Var.b(aVar2.a) != -1) { + aVar.c(aVar2, o2Var); + return; + } + o2 o2Var2 = this.c.get(aVar2); + if (o2Var2 != null) { + aVar.c(aVar2, o2Var2); + } + } + } + + public final void d(o2 o2Var) { + q.a aVar = new q.a<>(4); + if (this.f1067b.isEmpty()) { + a(aVar, this.e, o2Var); + if (!b.i.a.f.e.o.f.U(this.f, this.e)) { + a(aVar, this.f, o2Var); + } + if (!b.i.a.f.e.o.f.U(this.d, this.e) && !b.i.a.f.e.o.f.U(this.d, this.f)) { + a(aVar, this.d, o2Var); + } + } else { + for (int i = 0; i < this.f1067b.size(); i++) { + a(aVar, this.f1067b.get(i), o2Var); + } + if (!this.f1067b.contains(this.d)) { + a(aVar, this.d, o2Var); + } + } + this.c = aVar.a(); + } + } + + public g1(g gVar) { + this.j = gVar; + this.o = new p<>(new CopyOnWriteArraySet(), e0.o(), gVar, o0.a); + o2.b bVar = new o2.b(); + this.k = bVar; + this.m = new a(bVar); + this.n = new SparseArray<>(); + } + + @Override // b.i.a.c.y1.c + public void A(p1 p1Var) { + h1.a k0 = k0(); + r0 r0Var = new r0(k0, p1Var); + this.n.put(14, k0); + p

pVar = this.o; + pVar.b(14, r0Var); + pVar.a(); + } + + @Override // b.i.a.c.t2.r + public final void B(String str) { + h1.a p0 = p0(); + t tVar = new t(p0, str); + this.n.put(PointerIconCompat.TYPE_ALL_SCROLL, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_ALL_SCROLL, tVar); + pVar.a(); + } + + @Override // b.i.a.c.t2.r + public final void C(String str, long j, long j2) { + h1.a p0 = p0(); + l0 l0Var = new l0(p0, str, j2, j); + this.n.put(PointerIconCompat.TYPE_VERTICAL_TEXT, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_VERTICAL_TEXT, l0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void D(boolean z2) { + h1.a k0 = k0(); + g0 g0Var = new g0(k0, z2); + this.n.put(9, k0); + p

pVar = this.o; + pVar.b(9, g0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void E(y1 y1Var, y1.d dVar) { + a2.e(this, y1Var, dVar); + } + + @Override // b.i.a.c.g3.x + public final void F(int i, long j) { + h1.a o0 = o0(); + z zVar = new z(o0, i, j); + this.n.put(AudioAttributesCompat.FLAG_ALL, o0); + p

pVar = this.o; + pVar.b(AudioAttributesCompat.FLAG_ALL, zVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void G(int i, boolean z2) { + a2.d(this, i, z2); + } + + @Override // b.i.a.c.y1.c + public final void H(boolean z2, int i) { + h1.a k0 = k0(); + j0 j0Var = new j0(k0, z2, i); + this.n.put(-1, k0); + p

pVar = this.o; + pVar.b(-1, j0Var); + pVar.a(); + } + + @Override // b.i.a.c.t2.r + public final void I(j1 j1Var, @Nullable b.i.a.c.v2.g gVar) { + h1.a p0 = p0(); + i0 i0Var = new i0(p0, j1Var, gVar); + this.n.put(PointerIconCompat.TYPE_ALIAS, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_ALIAS, i0Var); + pVar.a(); + } + + @Override // b.i.a.c.w2.s + public final void J(int i, @Nullable a0.a aVar) { + h1.a n0 = n0(i, aVar); + t0 t0Var = new t0(n0); + this.n.put(1034, n0); + p

pVar = this.o; + pVar.b(1034, t0Var); + pVar.a(); + } + + @Override // b.i.a.c.g3.x + public final void K(Object obj, long j) { + h1.a p0 = p0(); + f1 f1Var = new f1(p0, obj, j); + this.n.put(1027, p0); + p

pVar = this.o; + pVar.b(1027, f1Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void L(int i) { + h1.a k0 = k0(); + b0 b0Var = new b0(k0, i); + this.n.put(8, k0); + p

pVar = this.o; + pVar.b(8, b0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void M(@Nullable o1 o1Var, int i) { + h1.a k0 = k0(); + q qVar = new q(k0, o1Var, i); + this.n.put(1, k0); + p

pVar = this.o; + pVar.b(1, qVar); + pVar.a(); + } + + @Override // b.i.a.c.t2.r + public final void N(Exception exc) { + h1.a p0 = p0(); + e0 e0Var = new e0(p0, exc); + this.n.put(PointerIconCompat.TYPE_ZOOM_IN, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_ZOOM_IN, e0Var); + pVar.a(); + } + + @Override // b.i.a.c.g3.x + public /* synthetic */ void O(j1 j1Var) { + w.a(this, j1Var); + } + + @Override // b.i.a.c.g3.x + public final void P(e eVar) { + h1.a p0 = p0(); + d0 d0Var = new d0(p0, eVar); + this.n.put(PointerIconCompat.TYPE_GRAB, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_GRAB, d0Var); + pVar.a(); + } + + @Override // b.i.a.c.g3.x + public final void Q(j1 j1Var, @Nullable b.i.a.c.v2.g gVar) { + h1.a p0 = p0(); + y0 y0Var = new y0(p0, j1Var, gVar); + this.n.put(1022, p0); + p

pVar = this.o; + pVar.b(1022, y0Var); + pVar.a(); + } + + @Override // b.i.a.c.t2.r + public final void R(long j) { + h1.a p0 = p0(); + n0 n0Var = new n0(p0, j); + this.n.put(PointerIconCompat.TYPE_COPY, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_COPY, n0Var); + pVar.a(); + } + + @Override // b.i.a.c.w2.s + public final void S(int i, @Nullable a0.a aVar) { + h1.a n0 = n0(i, aVar); + e1 e1Var = new e1(n0); + this.n.put(1031, n0); + p

pVar = this.o; + pVar.b(1031, e1Var); + pVar.a(); + } + + @Override // b.i.a.c.t2.r + public final void T(Exception exc) { + h1.a p0 = p0(); + k kVar = new k(p0, exc); + this.n.put(1037, p0); + p

pVar = this.o; + pVar.b(1037, kVar); + pVar.a(); + } + + @Override // b.i.a.c.t2.r + public /* synthetic */ void U(j1 j1Var) { + b.i.a.c.t2.q.a(this, j1Var); + } + + @Override // b.i.a.c.g3.x + public final void V(Exception exc) { + h1.a p0 = p0(); + q0 q0Var = new q0(p0, exc); + this.n.put(1038, p0); + p

pVar = this.o; + pVar.b(1038, q0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void W(boolean z2, int i) { + h1.a k0 = k0(); + d1 d1Var = new d1(k0, z2, i); + this.n.put(5, k0); + p

pVar = this.o; + pVar.b(5, d1Var); + pVar.a(); + } + + @Override // b.i.a.c.a3.b0 + public final void X(int i, @Nullable a0.a aVar, t tVar, b.i.a.c.a3.w wVar) { + h1.a n0 = n0(i, aVar); + y yVar = new y(n0, tVar, wVar); + this.n.put(PointerIconCompat.TYPE_CONTEXT_MENU, n0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_CONTEXT_MENU, yVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void Y(o0 o0Var, n nVar) { + h1.a k0 = k0(); + i iVar = new i(k0, o0Var, nVar); + this.n.put(2, k0); + p

pVar = this.o; + pVar.b(2, iVar); + pVar.a(); + } + + @Override // b.i.a.c.g3.x + public final void Z(e eVar) { + h1.a o0 = o0(); + j jVar = new j(o0, eVar); + this.n.put(InputDeviceCompat.SOURCE_GAMEPAD, o0); + p

pVar = this.o; + pVar.b(InputDeviceCompat.SOURCE_GAMEPAD, jVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void a() { + h1.a k0 = k0(); + u uVar = new u(k0); + this.n.put(-1, k0); + p

pVar = this.o; + pVar.b(-1, uVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public void a0(int i, int i2) { + h1.a p0 = p0(); + n nVar = new n(p0, i, i2); + this.n.put(1029, p0); + p

pVar = this.o; + pVar.b(1029, nVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public final void b(Metadata metadata) { + h1.a k0 = k0(); + v vVar = new v(k0, metadata); + this.n.put(PointerIconCompat.TYPE_CROSSHAIR, k0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_CROSSHAIR, vVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void b0(x1 x1Var) { + h1.a k0 = k0(); + m mVar = new m(k0, x1Var); + this.n.put(12, k0); + p

pVar = this.o; + pVar.b(12, mVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void c() { + a2.r(this); + } + + @Override // b.i.a.c.w2.s + public final void c0(int i, @Nullable a0.a aVar, int i2) { + h1.a n0 = n0(i, aVar); + p0 p0Var = new p0(n0, i2); + this.n.put(1030, n0); + p

pVar = this.o; + pVar.b(1030, p0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public final void d(boolean z2) { + h1.a p0 = p0(); + u0 u0Var = new u0(p0, z2); + this.n.put(PointerIconCompat.TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW, u0Var); + pVar.a(); + } + + @Override // b.i.a.c.w2.s + public final void d0(int i, @Nullable a0.a aVar) { + h1.a n0 = n0(i, aVar); + b bVar = new b(n0); + this.n.put(1035, n0); + p

pVar = this.o; + pVar.b(1035, bVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void e(List list) { + a2.b(this, list); + } + + @Override // b.i.a.c.t2.r + public final void e0(int i, long j, long j2) { + h1.a p0 = p0(); + c0 c0Var = new c0(p0, i, j, j2); + this.n.put(PointerIconCompat.TYPE_NO_DROP, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_NO_DROP, c0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public final void f(y yVar) { + h1.a p0 = p0(); + m0 m0Var = new m0(p0, yVar); + this.n.put(1028, p0); + p

pVar = this.o; + pVar.b(1028, m0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void f0(PlaybackException playbackException) { + a2.p(this, playbackException); + } + + @Override // b.i.a.c.y1.c + public final void g(y1.f fVar, y1.f fVar2, int i) { + if (i == 1) { + this.r = false; + } + a aVar = this.m; + y1 y1Var = this.p; + Objects.requireNonNull(y1Var); + aVar.d = a.b(y1Var, aVar.f1067b, aVar.e, aVar.a); + h1.a k0 = k0(); + r rVar = new r(k0, i, fVar, fVar2); + this.n.put(11, k0); + p

pVar = this.o; + pVar.b(11, rVar); + pVar.a(); + } + + @Override // b.i.a.c.a3.b0 + public final void g0(int i, @Nullable a0.a aVar, t tVar, b.i.a.c.a3.w wVar, IOException iOException, boolean z2) { + h1.a n0 = n0(i, aVar); + f0 f0Var = new f0(n0, tVar, wVar, iOException, z2); + this.n.put(PointerIconCompat.TYPE_HELP, n0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_HELP, f0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void h(int i) { + h1.a k0 = k0(); + b1 b1Var = new b1(k0, i); + this.n.put(6, k0); + p

pVar = this.o; + pVar.b(6, b1Var); + pVar.a(); + } + + @Override // b.i.a.c.g3.x + public final void h0(long j, int i) { + h1.a o0 = o0(); + c1 c1Var = new c1(o0, j, i); + this.n.put(1026, o0); + p

pVar = this.o; + pVar.b(1026, c1Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void i(boolean z2) { + z1.d(this, z2); + } + + @Override // b.i.a.c.w2.s + public final void i0(int i, @Nullable a0.a aVar) { + h1.a n0 = n0(i, aVar); + v0 v0Var = new v0(n0); + this.n.put(1033, n0); + p

pVar = this.o; + pVar.b(1033, v0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public /* synthetic */ void j(int i) { + z1.l(this, i); + } + + @Override // b.i.a.c.y1.c + public void j0(boolean z2) { + h1.a k0 = k0(); + z0 z0Var = new z0(k0, z2); + this.n.put(7, k0); + p

pVar = this.o; + pVar.b(7, z0Var); + pVar.a(); + } + + @Override // b.i.a.c.t2.r + public final void k(e eVar) { + h1.a o0 = o0(); + w0 w0Var = new w0(o0, eVar); + this.n.put(PointerIconCompat.TYPE_HORIZONTAL_DOUBLE_ARROW, o0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_HORIZONTAL_DOUBLE_ARROW, w0Var); + pVar.a(); + } + + public final h1.a k0() { + return m0(this.m.d); + } + + @Override // b.i.a.c.g3.x + public final void l(String str) { + h1.a p0 = p0(); + f fVar = new f(p0, str); + this.n.put(1024, p0); + p

pVar = this.o; + pVar.b(1024, fVar); + pVar.a(); + } + + @RequiresNonNull({"player"}) + public final h1.a l0(o2 o2Var, int i, @Nullable a0.a aVar) { + long j; + a0.a aVar2 = o2Var.q() ? null : aVar; + long d = this.j.d(); + boolean z2 = false; + boolean z3 = o2Var.equals(this.p.K()) && i == this.p.C(); + long j2 = 0; + if (aVar2 != null && aVar2.a()) { + if (z3 && this.p.B() == aVar2.f821b && this.p.q() == aVar2.c) { + z2 = true; + } + if (z2) { + j2 = this.p.T(); + } + } else if (z3) { + j = this.p.w(); + return new h1.a(d, o2Var, i, aVar2, j, this.p.K(), this.p.C(), this.m.d, this.p.T(), this.p.g()); + } else if (!o2Var.q()) { + j2 = o2Var.o(i, this.l, 0).a(); + } + j = j2; + return new h1.a(d, o2Var, i, aVar2, j, this.p.K(), this.p.C(), this.m.d, this.p.T(), this.p.g()); + } + + @Override // b.i.a.c.t2.r + public final void m(e eVar) { + h1.a p0 = p0(); + l lVar = new l(p0, eVar); + this.n.put(PointerIconCompat.TYPE_TEXT, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_TEXT, lVar); + pVar.a(); + } + + public final h1.a m0(@Nullable a0.a aVar) { + Objects.requireNonNull(this.p); + o2 o2Var = aVar == null ? null : this.m.c.get(aVar); + if (aVar != null && o2Var != null) { + return l0(o2Var, o2Var.h(aVar.a, this.k).l, aVar); + } + int C = this.p.C(); + o2 K = this.p.K(); + if (!(C < K.p())) { + K = o2.j; + } + return l0(K, C, null); + } + + @Override // b.i.a.c.g3.x + public final void n(String str, long j, long j2) { + h1.a p0 = p0(); + d dVar = new d(p0, str, j2, j); + this.n.put(PointerIconCompat.TYPE_GRABBING, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_GRABBING, dVar); + pVar.a(); + } + + public final h1.a n0(int i, @Nullable a0.a aVar) { + Objects.requireNonNull(this.p); + boolean z2 = false; + if (aVar != null) { + if (this.m.c.get(aVar) != null) { + z2 = true; + } + return z2 ? m0(aVar) : l0(o2.j, i, aVar); + } + o2 K = this.p.K(); + if (i < K.p()) { + z2 = true; + } + if (!z2) { + K = o2.j; + } + return l0(K, i, null); + } + + @Override // b.i.a.c.a3.b0 + public final void o(int i, @Nullable a0.a aVar, b.i.a.c.a3.w wVar) { + h1.a n0 = n0(i, aVar); + g gVar = new g(n0, wVar); + this.n.put(PointerIconCompat.TYPE_WAIT, n0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_WAIT, gVar); + pVar.a(); + } + + public final h1.a o0() { + return m0(this.m.e); + } + + @Override // b.i.a.c.y1.c + public void p(p2 p2Var) { + h1.a k0 = k0(); + w wVar = new w(k0, p2Var); + this.n.put(2, k0); + p

pVar = this.o; + pVar.b(2, wVar); + pVar.a(); + } + + public final h1.a p0() { + return m0(this.m.f); + } + + @Override // b.i.a.c.a3.b0 + public final void q(int i, @Nullable a0.a aVar, t tVar, b.i.a.c.a3.w wVar) { + h1.a n0 = n0(i, aVar); + h0 h0Var = new h0(n0, tVar, wVar); + this.n.put(PointerIconCompat.TYPE_HAND, n0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_HAND, h0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void r(boolean z2) { + h1.a k0 = k0(); + e eVar = new e(k0, z2); + this.n.put(3, k0); + p

pVar = this.o; + pVar.b(3, eVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void s(PlaybackException playbackException) { + b.i.a.c.a3.y yVar; + h1.a m0 = (!(playbackException instanceof ExoPlaybackException) || (yVar = ((ExoPlaybackException) playbackException).mediaPeriodId) == null) ? null : m0(new a0.a(yVar)); + if (m0 == null) { + m0 = k0(); + } + a aVar = new a(m0, playbackException); + this.n.put(10, m0); + p

pVar = this.o; + pVar.b(10, aVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public void t(y1.b bVar) { + h1.a k0 = k0(); + a0 a0Var = new a0(k0, bVar); + this.n.put(13, k0); + p

pVar = this.o; + pVar.b(13, a0Var); + pVar.a(); + } + + @Override // b.i.a.c.w2.s + public final void u(int i, @Nullable a0.a aVar, Exception exc) { + h1.a n0 = n0(i, aVar); + c cVar = new c(n0, exc); + this.n.put(1032, n0); + p

pVar = this.o; + pVar.b(1032, cVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void v(o2 o2Var, int i) { + a aVar = this.m; + y1 y1Var = this.p; + Objects.requireNonNull(y1Var); + aVar.d = a.b(y1Var, aVar.f1067b, aVar.e, aVar.a); + aVar.d(y1Var.K()); + h1.a k0 = k0(); + x xVar = new x(k0, i); + this.n.put(0, k0); + p

pVar = this.o; + pVar.b(0, xVar); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public final void w(float f) { + h1.a p0 = p0(); + s sVar = new s(p0, f); + this.n.put(PointerIconCompat.TYPE_ZOOM_OUT, p0); + p

pVar = this.o; + pVar.b(PointerIconCompat.TYPE_ZOOM_OUT, sVar); + pVar.a(); + } + + @Override // b.i.a.c.a3.b0 + public final void x(int i, @Nullable a0.a aVar, t tVar, b.i.a.c.a3.w wVar) { + h1.a n0 = n0(i, aVar); + k0 k0Var = new k0(n0, tVar, wVar); + this.n.put(1000, n0); + p

pVar = this.o; + pVar.b(1000, k0Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.c + public final void y(int i) { + h1.a k0 = k0(); + a1 a1Var = new a1(k0, i); + this.n.put(4, k0); + p

pVar = this.o; + pVar.b(4, a1Var); + pVar.a(); + } + + @Override // b.i.a.c.y1.e + public /* synthetic */ void z(c1 c1Var) { + a2.c(this, c1Var); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/h.java b/app/src/main/java/b/i/a/c/s2/h.java new file mode 100644 index 0000000000..15835d7ba9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/h.java @@ -0,0 +1,34 @@ +package b.i.a.c.s2; + +import android.util.SparseArray; +import b.i.a.c.f3.n; +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import b.i.a.c.y1; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class h implements p.b { + public final /* synthetic */ g1 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ y1 f1068b; + + public /* synthetic */ h(g1 g1Var, y1 y1Var) { + this.a = g1Var; + this.f1068b = y1Var; + } + + @Override // b.i.a.c.f3.p.b + public final void a(Object obj, n nVar) { + h1 h1Var = (h1) obj; + SparseArray sparseArray = this.a.n; + SparseArray sparseArray2 = new SparseArray(nVar.c()); + for (int i = 0; i < nVar.c(); i++) { + int b2 = nVar.b(i); + h1.a aVar = sparseArray.get(b2); + Objects.requireNonNull(aVar); + sparseArray2.append(b2, aVar); + } + h1Var.K(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/h0.java b/app/src/main/java/b/i/a/c/s2/h0.java new file mode 100644 index 0000000000..c992d6eac1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/h0.java @@ -0,0 +1,25 @@ +package b.i.a.c.s2; + +import b.i.a.c.a3.t; +import b.i.a.c.a3.w; +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class h0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ t f1069b; + public final /* synthetic */ w c; + + public /* synthetic */ h0(h1.a aVar, t tVar, w wVar) { + this.a = aVar; + this.f1069b = tVar; + this.c = wVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).k(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/h1.java b/app/src/main/java/b/i/a/c/s2/h1.java new file mode 100644 index 0000000000..a4aa86f045 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/h1.java @@ -0,0 +1,208 @@ +package b.i.a.c.s2; + +import androidx.annotation.Nullable; +import b.i.a.c.a3.a0; +import b.i.a.c.o2; +import b.i.a.f.e.o.f; +import java.util.Arrays; +/* compiled from: AnalyticsListener */ +public interface h1 { + + /* compiled from: AnalyticsListener */ + public static final class a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final o2 f1070b; + public final int c; + @Nullable + public final a0.a d; + public final long e; + public final o2 f; + public final int g; + @Nullable + public final a0.a h; + public final long i; + public final long j; + + public a(long j, o2 o2Var, int i, @Nullable a0.a aVar, long j2, o2 o2Var2, int i2, @Nullable a0.a aVar2, long j3, long j4) { + this.a = j; + this.f1070b = o2Var; + this.c = i; + this.d = aVar; + this.e = j2; + this.f = o2Var2; + this.g = i2; + this.h = aVar2; + this.i = j3; + this.j = j4; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || a.class != obj.getClass()) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.c == aVar.c && this.e == aVar.e && this.g == aVar.g && this.i == aVar.i && this.j == aVar.j && f.U(this.f1070b, aVar.f1070b) && f.U(this.d, aVar.d) && f.U(this.f, aVar.f) && f.U(this.h, aVar.h); + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{Long.valueOf(this.a), this.f1070b, Integer.valueOf(this.c), this.d, Long.valueOf(this.e), this.f, Integer.valueOf(this.g), this.h, Long.valueOf(this.i), Long.valueOf(this.j)}); + } + } + + void A(); + + void B(); + + void C(); + + void D(); + + void E(); + + @Deprecated + void F(); + + @Deprecated + void G(); + + void H(); + + void I(); + + void J(); + + void K(); + + @Deprecated + void L(); + + void M(); + + void N(); + + void O(); + + void P(); + + void Q(); + + void R(); + + @Deprecated + void S(); + + @Deprecated + void T(); + + void U(); + + void V(); + + void W(); + + void X(); + + void Y(); + + void Z(); + + @Deprecated + void a(); + + void a0(); + + void b(); + + void b0(); + + void c(); + + void c0(); + + void d(); + + @Deprecated + void d0(); + + void e(); + + void e0(); + + void f(); + + void f0(); + + @Deprecated + void g(); + + void g0(); + + void h(); + + @Deprecated + void h0(); + + void i(); + + @Deprecated + void i0(); + + void j(); + + @Deprecated + void j0(); + + void k(); + + @Deprecated + void k0(); + + void l(); + + void l0(); + + void m(); + + @Deprecated + void m0(); + + void n(); + + void n0(); + + void o(); + + void o0(); + + void p(); + + @Deprecated + void p0(); + + void q(); + + @Deprecated + void r(); + + void s(); + + void t(); + + void u(); + + void v(); + + void w(); + + @Deprecated + void x(); + + void y(); + + void z(); +} diff --git a/app/src/main/java/b/i/a/c/s2/i.java b/app/src/main/java/b/i/a/c/s2/i.java new file mode 100644 index 0000000000..305b3dbacd --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/i.java @@ -0,0 +1,25 @@ +package b.i.a.c.s2; + +import b.i.a.c.a3.o0; +import b.i.a.c.c3.n; +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class i implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ o0 f1071b; + public final /* synthetic */ n c; + + public /* synthetic */ i(h1.a aVar, o0 o0Var, n nVar) { + this.a = aVar; + this.f1071b = o0Var; + this.c = nVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).m0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/i0.java b/app/src/main/java/b/i/a/c/s2/i0.java new file mode 100644 index 0000000000..dd290f4a62 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/i0.java @@ -0,0 +1,28 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.j1; +import b.i.a.c.s2.h1; +import b.i.a.c.v2.g; +/* compiled from: lambda */ +public final /* synthetic */ class i0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ j1 f1072b; + public final /* synthetic */ g c; + + public /* synthetic */ i0(h1.a aVar, j1 j1Var, g gVar) { + this.a = aVar; + this.f1072b = j1Var; + this.c = gVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.d0(); + h1Var.v(); + h1Var.x(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/j.java b/app/src/main/java/b/i/a/c/s2/j.java new file mode 100644 index 0000000000..f7ab0cbbd6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/j.java @@ -0,0 +1,24 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import b.i.a.c.v2.e; +/* compiled from: lambda */ +public final /* synthetic */ class j implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ e f1073b; + + public /* synthetic */ j(h1.a aVar, e eVar) { + this.a = aVar; + this.f1073b = eVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.m(); + h1Var.g(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/j0.java b/app/src/main/java/b/i/a/c/s2/j0.java new file mode 100644 index 0000000000..250b794a84 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/j0.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class j0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ boolean f1074b; + public final /* synthetic */ int c; + + public /* synthetic */ j0(h1.a aVar, boolean z2, int i) { + this.a = aVar; + this.f1074b = z2; + this.c = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).G(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/k.java b/app/src/main/java/b/i/a/c/s2/k.java new file mode 100644 index 0000000000..c6c30efd0b --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/k.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class k implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Exception f1075b; + + public /* synthetic */ k(h1.a aVar, Exception exc) { + this.a = aVar; + this.f1075b = exc; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).V(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/k0.java b/app/src/main/java/b/i/a/c/s2/k0.java new file mode 100644 index 0000000000..70d7cf336b --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/k0.java @@ -0,0 +1,25 @@ +package b.i.a.c.s2; + +import b.i.a.c.a3.t; +import b.i.a.c.a3.w; +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class k0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ t f1076b; + public final /* synthetic */ w c; + + public /* synthetic */ k0(h1.a aVar, t tVar, w wVar) { + this.a = aVar; + this.f1076b = tVar; + this.c = wVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).R(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/l.java b/app/src/main/java/b/i/a/c/s2/l.java new file mode 100644 index 0000000000..5cf52307ef --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/l.java @@ -0,0 +1,24 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import b.i.a.c.v2.e; +/* compiled from: lambda */ +public final /* synthetic */ class l implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ e f1077b; + + public /* synthetic */ l(h1.a aVar, e eVar) { + this.a = aVar; + this.f1077b = eVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.h(); + h1Var.F(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/l0.java b/app/src/main/java/b/i/a/c/s2/l0.java new file mode 100644 index 0000000000..9f3a657fe4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/l0.java @@ -0,0 +1,28 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class l0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ String f1078b; + public final /* synthetic */ long c; + public final /* synthetic */ long d; + + public /* synthetic */ l0(h1.a aVar, String str, long j, long j2) { + this.a = aVar; + this.f1078b = str; + this.c = j; + this.d = j2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.k0(); + h1Var.U(); + h1Var.T(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/m.java b/app/src/main/java/b/i/a/c/s2/m.java new file mode 100644 index 0000000000..fb3036fa1f --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/m.java @@ -0,0 +1,22 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import b.i.a.c.x1; +/* compiled from: lambda */ +public final /* synthetic */ class m implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ x1 f1079b; + + public /* synthetic */ m(h1.a aVar, x1 x1Var) { + this.a = aVar; + this.f1079b = x1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).I(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/m0.java b/app/src/main/java/b/i/a/c/s2/m0.java new file mode 100644 index 0000000000..0c867c0c03 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/m0.java @@ -0,0 +1,26 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.g3.y; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class m0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ y f1080b; + + public /* synthetic */ m0(h1.a aVar, y yVar) { + this.a = aVar; + this.f1080b = yVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + y yVar = this.f1080b; + h1 h1Var = (h1) obj; + h1Var.n0(); + int i = yVar.k; + h1Var.r(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/n.java b/app/src/main/java/b/i/a/c/s2/n.java new file mode 100644 index 0000000000..9199bdc029 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/n.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class n implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1081b; + public final /* synthetic */ int c; + + public /* synthetic */ n(h1.a aVar, int i, int i2) { + this.a = aVar; + this.f1081b = i; + this.c = i2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).l(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/n0.java b/app/src/main/java/b/i/a/c/s2/n0.java new file mode 100644 index 0000000000..047c428358 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/n0.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class n0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ long f1082b; + + public /* synthetic */ n0(h1.a aVar, long j) { + this.a = aVar; + this.f1082b = j; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).j(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/o.java b/app/src/main/java/b/i/a/c/s2/o.java new file mode 100644 index 0000000000..4469da333d --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/o.java @@ -0,0 +1,17 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class o implements p.a { + public final /* synthetic */ h1.a a; + + public /* synthetic */ o(h1.a aVar) { + this.a = aVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).j0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/o0.java b/app/src/main/java/b/i/a/c/s2/o0.java new file mode 100644 index 0000000000..d405d918d1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/o0.java @@ -0,0 +1,13 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.n; +import b.i.a.c.f3.p; +/* compiled from: lambda */ +public final /* synthetic */ class o0 implements p.b { + public static final /* synthetic */ o0 a = new o0(); + + @Override // b.i.a.c.f3.p.b + public final void a(Object obj, n nVar) { + h1 h1Var = (h1) obj; + } +} diff --git a/app/src/main/java/b/i/a/c/s2/p.java b/app/src/main/java/b/i/a/c/s2/p.java new file mode 100644 index 0000000000..3fa17a279b --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/p.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class p implements Runnable { + public final /* synthetic */ g1 j; + + public /* synthetic */ p(g1 g1Var) { + this.j = g1Var; + } + + @Override // java.lang.Runnable + public final void run() { + g1 g1Var = this.j; + h1.a k0 = g1Var.k0(); + x0 x0Var = new x0(k0); + g1Var.n.put(1036, k0); + b.i.a.c.f3.p

pVar = g1Var.o; + pVar.b(1036, x0Var); + pVar.a(); + g1Var.o.c(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/p0.java b/app/src/main/java/b/i/a/c/s2/p0.java new file mode 100644 index 0000000000..7ad9c93d38 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/p0.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class p0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1083b; + + public /* synthetic */ p0(h1.a aVar, int i) { + this.a = aVar; + this.f1083b = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.p0(); + h1Var.X(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/q.java b/app/src/main/java/b/i/a/c/s2/q.java new file mode 100644 index 0000000000..c168624658 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/q.java @@ -0,0 +1,24 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.o1; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class q implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ o1 f1084b; + public final /* synthetic */ int c; + + public /* synthetic */ q(h1.a aVar, o1 o1Var, int i) { + this.a = aVar; + this.f1084b = o1Var; + this.c = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).t(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/q0.java b/app/src/main/java/b/i/a/c/s2/q0.java new file mode 100644 index 0000000000..bef8f256f8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/q0.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class q0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Exception f1085b; + + public /* synthetic */ q0(h1.a aVar, Exception exc) { + this.a = aVar; + this.f1085b = exc; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).O(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/r.java b/app/src/main/java/b/i/a/c/s2/r.java new file mode 100644 index 0000000000..f22fc4f85d --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/r.java @@ -0,0 +1,28 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class r implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1086b; + public final /* synthetic */ y1.f c; + public final /* synthetic */ y1.f d; + + public /* synthetic */ r(h1.a aVar, int i, y1.f fVar, y1.f fVar2) { + this.a = aVar; + this.f1086b = i; + this.c = fVar; + this.d = fVar2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.S(); + h1Var.y(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/r0.java b/app/src/main/java/b/i/a/c/s2/r0.java new file mode 100644 index 0000000000..707789b0ad --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/r0.java @@ -0,0 +1,22 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.p1; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class r0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ p1 f1087b; + + public /* synthetic */ r0(h1.a aVar, p1 p1Var) { + this.a = aVar; + this.f1087b = p1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).o0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/s.java b/app/src/main/java/b/i/a/c/s2/s.java new file mode 100644 index 0000000000..e9ac87a02c --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/s.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class s implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ float f1088b; + + public /* synthetic */ s(h1.a aVar, float f) { + this.a = aVar; + this.f1088b = f; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).b0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/s0.java b/app/src/main/java/b/i/a/c/s2/s0.java new file mode 100644 index 0000000000..9d3d71f743 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/s0.java @@ -0,0 +1,25 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class s0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1089b; + public final /* synthetic */ long c; + public final /* synthetic */ long d; + + public /* synthetic */ s0(h1.a aVar, int i, long j, long j2) { + this.a = aVar; + this.f1089b = i; + this.c = j; + this.d = j2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).l0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/t.java b/app/src/main/java/b/i/a/c/s2/t.java new file mode 100644 index 0000000000..6721c82673 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/t.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class t implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ String f1090b; + + public /* synthetic */ t(h1.a aVar, String str) { + this.a = aVar; + this.f1090b = str; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).W(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/t0.java b/app/src/main/java/b/i/a/c/s2/t0.java new file mode 100644 index 0000000000..e4a9c79209 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/t0.java @@ -0,0 +1,17 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class t0 implements p.a { + public final /* synthetic */ h1.a a; + + public /* synthetic */ t0(h1.a aVar) { + this.a = aVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).Y(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/u.java b/app/src/main/java/b/i/a/c/s2/u.java new file mode 100644 index 0000000000..27928f3d4a --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/u.java @@ -0,0 +1,17 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class u implements p.a { + public final /* synthetic */ h1.a a; + + public /* synthetic */ u(h1.a aVar) { + this.a = aVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).a(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/u0.java b/app/src/main/java/b/i/a/c/s2/u0.java new file mode 100644 index 0000000000..267c25da42 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/u0.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class u0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ boolean f1091b; + + public /* synthetic */ u0(h1.a aVar, boolean z2) { + this.a = aVar; + this.f1091b = z2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).q(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/v.java b/app/src/main/java/b/i/a/c/s2/v.java new file mode 100644 index 0000000000..d595e8fe37 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/v.java @@ -0,0 +1,22 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import com.google.android.exoplayer2.metadata.Metadata; +/* compiled from: lambda */ +public final /* synthetic */ class v implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Metadata f1092b; + + public /* synthetic */ v(h1.a aVar, Metadata metadata) { + this.a = aVar; + this.f1092b = metadata; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).f0(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/v0.java b/app/src/main/java/b/i/a/c/s2/v0.java new file mode 100644 index 0000000000..32821d80d4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/v0.java @@ -0,0 +1,17 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class v0 implements p.a { + public final /* synthetic */ h1.a a; + + public /* synthetic */ v0(h1.a aVar) { + this.a = aVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).s(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/w.java b/app/src/main/java/b/i/a/c/s2/w.java new file mode 100644 index 0000000000..048bd3c663 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/w.java @@ -0,0 +1,22 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.p2; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class w implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ p2 f1093b; + + public /* synthetic */ w(h1.a aVar, p2 p2Var) { + this.a = aVar; + this.f1093b = p2Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).i(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/w0.java b/app/src/main/java/b/i/a/c/s2/w0.java new file mode 100644 index 0000000000..059d92a1cf --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/w0.java @@ -0,0 +1,24 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +import b.i.a.c.v2.e; +/* compiled from: lambda */ +public final /* synthetic */ class w0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ e f1094b; + + public /* synthetic */ w0(h1.a aVar, e eVar) { + this.a = aVar; + this.f1094b = eVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.d(); + h1Var.g(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/x.java b/app/src/main/java/b/i/a/c/s2/x.java new file mode 100644 index 0000000000..b6f6e7e19f --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/x.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class x implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1095b; + + public /* synthetic */ x(h1.a aVar, int i) { + this.a = aVar; + this.f1095b = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).z(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/x0.java b/app/src/main/java/b/i/a/c/s2/x0.java new file mode 100644 index 0000000000..6450af6fd9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/x0.java @@ -0,0 +1,17 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class x0 implements p.a { + public final /* synthetic */ h1.a a; + + public /* synthetic */ x0(h1.a aVar) { + this.a = aVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).E(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/y.java b/app/src/main/java/b/i/a/c/s2/y.java new file mode 100644 index 0000000000..9bbdd9f121 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/y.java @@ -0,0 +1,25 @@ +package b.i.a.c.s2; + +import b.i.a.c.a3.t; +import b.i.a.c.a3.w; +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class y implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ t f1096b; + public final /* synthetic */ w c; + + public /* synthetic */ y(h1.a aVar, t tVar, w wVar) { + this.a = aVar; + this.f1096b = tVar; + this.c = wVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).p(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/y0.java b/app/src/main/java/b/i/a/c/s2/y0.java new file mode 100644 index 0000000000..0b906865a7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/y0.java @@ -0,0 +1,28 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.j1; +import b.i.a.c.s2.h1; +import b.i.a.c.v2.g; +/* compiled from: lambda */ +public final /* synthetic */ class y0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ j1 f1097b; + public final /* synthetic */ g c; + + public /* synthetic */ y0(h1.a aVar, j1 j1Var, g gVar) { + this.a = aVar; + this.f1097b = j1Var; + this.c = gVar; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + h1 h1Var = (h1) obj; + h1Var.h0(); + h1Var.B(); + h1Var.x(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/z.java b/app/src/main/java/b/i/a/c/s2/z.java new file mode 100644 index 0000000000..64a33a9c28 --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/z.java @@ -0,0 +1,23 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class z implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1098b; + public final /* synthetic */ long c; + + public /* synthetic */ z(h1.a aVar, int i, long j) { + this.a = aVar; + this.f1098b = i; + this.c = j; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).f(); + } +} diff --git a/app/src/main/java/b/i/a/c/s2/z0.java b/app/src/main/java/b/i/a/c/s2/z0.java new file mode 100644 index 0000000000..ab7f001f6b --- /dev/null +++ b/app/src/main/java/b/i/a/c/s2/z0.java @@ -0,0 +1,21 @@ +package b.i.a.c.s2; + +import b.i.a.c.f3.p; +import b.i.a.c.s2.h1; +/* compiled from: lambda */ +public final /* synthetic */ class z0 implements p.a { + public final /* synthetic */ h1.a a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ boolean f1099b; + + public /* synthetic */ z0(h1.a aVar, boolean z2) { + this.a = aVar; + this.f1099b = z2; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((h1) obj).D(); + } +} diff --git a/app/src/main/java/b/i/a/c/t.java b/app/src/main/java/b/i/a/c/t.java new file mode 100644 index 0000000000..11b9024b6f --- /dev/null +++ b/app/src/main/java/b/i/a/c/t.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class t implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ t(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).p(this.a.j.d); + } +} diff --git a/app/src/main/java/b/i/a/c/t0.java b/app/src/main/java/b/i/a/c/t0.java new file mode 100644 index 0000000000..978718cb28 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t0.java @@ -0,0 +1,139 @@ +package b.i.a.c; + +import android.content.Context; +import android.media.AudioFocusRequest; +import android.media.AudioManager; +import android.os.Handler; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.k2; +import b.i.a.c.t2.o; +import java.util.Objects; +import org.webrtc.MediaStreamTrack; +/* compiled from: AudioFocusManager */ +public final class t0 { + public final AudioManager a; + + /* renamed from: b reason: collision with root package name */ + public final a f1100b; + @Nullable + public b c; + @Nullable + public o d; + public int e; + public int f; + public float g = 1.0f; + public AudioFocusRequest h; + + /* compiled from: AudioFocusManager */ + public class a implements AudioManager.OnAudioFocusChangeListener { + public final Handler j; + + public a(Handler handler) { + this.j = handler; + } + + @Override // android.media.AudioManager.OnAudioFocusChangeListener + public void onAudioFocusChange(int i) { + this.j.post(new c(this, i)); + } + } + + /* compiled from: AudioFocusManager */ + public interface b { + } + + public t0(Context context, Handler handler, b bVar) { + AudioManager audioManager = (AudioManager) context.getApplicationContext().getSystemService(MediaStreamTrack.AUDIO_TRACK_KIND); + Objects.requireNonNull(audioManager); + this.a = audioManager; + this.c = bVar; + this.f1100b = new a(handler); + this.e = 0; + } + + public final void a() { + if (this.e != 0) { + if (e0.a >= 26) { + AudioFocusRequest audioFocusRequest = this.h; + if (audioFocusRequest != null) { + this.a.abandonAudioFocusRequest(audioFocusRequest); + } + } else { + this.a.abandonAudioFocus(this.f1100b); + } + d(0); + } + } + + public final void b(int i) { + b bVar = this.c; + if (bVar != null) { + k2.b bVar2 = (k2.b) bVar; + boolean j = k2.this.j(); + k2.this.m0(j, i, k2.g0(j, i)); + } + } + + public void c(@Nullable o oVar) { + if (!e0.a(this.d, null)) { + this.d = null; + this.f = 0; + d.m(true, "Automatic handling of audio focus is only available for USAGE_MEDIA and USAGE_GAME."); + } + } + + public final void d(int i) { + if (this.e != i) { + this.e = i; + float f = i == 3 ? 0.2f : 1.0f; + if (this.g != f) { + this.g = f; + b bVar = this.c; + if (bVar != null) { + k2 k2Var = k2.this; + k2Var.j0(1, 2, Float.valueOf(k2Var.B * k2Var.k.g)); + } + } + } + } + + public int e(boolean z2, int i) { + int i2; + int i3 = 1; + if (i == 1 || this.f != 1) { + a(); + return z2 ? 1 : -1; + } else if (!z2) { + return -1; + } else { + if (this.e != 1) { + if (e0.a >= 26) { + AudioFocusRequest audioFocusRequest = this.h; + if (audioFocusRequest == null) { + AudioFocusRequest.Builder builder = audioFocusRequest == null ? new AudioFocusRequest.Builder(this.f) : new AudioFocusRequest.Builder(this.h); + o oVar = this.d; + boolean z3 = oVar != null && oVar.k == 1; + Objects.requireNonNull(oVar); + this.h = builder.setAudioAttributes(oVar.a()).setWillPauseWhenDucked(z3).setOnAudioFocusChangeListener(this.f1100b).build(); + } + i2 = this.a.requestAudioFocus(this.h); + } else { + AudioManager audioManager = this.a; + a aVar = this.f1100b; + o oVar2 = this.d; + Objects.requireNonNull(oVar2); + i2 = audioManager.requestAudioFocus(aVar, e0.t(oVar2.m), this.f); + } + if (i2 == 1) { + d(1); + } else { + d(0); + i3 = -1; + } + } + return i3; + } + } +} diff --git a/app/src/main/java/b/i/a/c/t1.java b/app/src/main/java/b/i/a/c/t1.java new file mode 100644 index 0000000000..930b03d112 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t1.java @@ -0,0 +1,7 @@ +package b.i.a.c; +/* compiled from: MediaSourceInfoHolder */ +public interface t1 { + o2 a(); + + Object getUid(); +} diff --git a/app/src/main/java/b/i/a/c/t2/a.java b/app/src/main/java/b/i/a/c/t2/a.java new file mode 100644 index 0000000000..4a8b308927 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/a.java @@ -0,0 +1,23 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +/* compiled from: lambda */ +public final /* synthetic */ class a implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ boolean k; + + public /* synthetic */ a(r.a aVar, boolean z2) { + this.j = aVar; + this.k = z2; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + boolean z2 = this.k; + r rVar = aVar.f1112b; + int i = e0.a; + rVar.d(z2); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/a0.java b/app/src/main/java/b/i/a/c/t2/a0.java new file mode 100644 index 0000000000..ab9b97a684 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/a0.java @@ -0,0 +1,136 @@ +package b.i.a.c.t2; + +import androidx.annotation.Nullable; +import com.discord.restapi.RestAPIAbortCodes; +/* compiled from: MpegAudioUtil */ +public final class a0 { + public static final String[] a = {"audio/mpeg-L1", "audio/mpeg-L2", "audio/mpeg"}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1101b = {44100, 48000, 32000}; + public static final int[] c = {32000, 64000, 96000, 128000, 160000, 192000, 224000, 256000, 288000, 320000, 352000, 384000, 416000, 448000}; + public static final int[] d = {32000, 48000, 56000, 64000, RestAPIAbortCodes.RELATIONSHIP_INCOMING_DISABLED, 96000, 112000, 128000, 144000, 160000, 176000, 192000, 224000, 256000}; + public static final int[] e = {32000, 48000, 56000, 64000, RestAPIAbortCodes.RELATIONSHIP_INCOMING_DISABLED, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000}; + public static final int[] f = {32000, 40000, 48000, 56000, 64000, RestAPIAbortCodes.RELATIONSHIP_INCOMING_DISABLED, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000}; + public static final int[] g = {8000, 16000, 24000, 32000, 40000, 48000, 56000, 64000, RestAPIAbortCodes.RELATIONSHIP_INCOMING_DISABLED, 96000, 112000, 128000, 144000, 160000}; + + /* compiled from: MpegAudioUtil */ + public static final class a { + public int a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public String f1102b; + public int c; + public int d; + public int e; + public int f; + public int g; + + public boolean a(int i) { + int i2; + int i3; + int i4; + int i5; + if (!a0.c(i) || (i2 = (i >>> 19) & 3) == 1 || (i3 = (i >>> 17) & 3) == 0 || (i4 = (i >>> 12) & 15) == 0 || i4 == 15 || (i5 = (i >>> 10) & 3) == 3) { + return false; + } + this.a = i2; + this.f1102b = a0.a[3 - i3]; + int i6 = a0.f1101b[i5]; + this.d = i6; + int i7 = 2; + if (i2 == 2) { + this.d = i6 / 2; + } else if (i2 == 0) { + this.d = i6 / 4; + } + int i8 = (i >>> 9) & 1; + this.g = a0.b(i2, i3); + if (i3 == 3) { + int i9 = i2 == 3 ? a0.c[i4 - 1] : a0.d[i4 - 1]; + this.f = i9; + this.c = (((i9 * 12) / this.d) + i8) * 4; + } else { + int i10 = 144; + if (i2 == 3) { + int i11 = i3 == 2 ? a0.e[i4 - 1] : a0.f[i4 - 1]; + this.f = i11; + this.c = ((i11 * 144) / this.d) + i8; + } else { + int i12 = a0.g[i4 - 1]; + this.f = i12; + if (i3 == 1) { + i10 = 72; + } + this.c = ((i10 * i12) / this.d) + i8; + } + } + if (((i >> 6) & 3) == 3) { + i7 = 1; + } + this.e = i7; + return true; + } + } + + public static int a(int i) { + int i2; + int i3; + int i4; + int i5; + if (!c(i) || (i2 = (i >>> 19) & 3) == 1 || (i3 = (i >>> 17) & 3) == 0 || (i4 = (i >>> 12) & 15) == 0 || i4 == 15 || (i5 = (i >>> 10) & 3) == 3) { + return -1; + } + int i6 = f1101b[i5]; + if (i2 == 2) { + i6 /= 2; + } else if (i2 == 0) { + i6 /= 4; + } + int i7 = (i >>> 9) & 1; + if (i3 == 3) { + return ((((i2 == 3 ? c[i4 - 1] : d[i4 - 1]) * 12) / i6) + i7) * 4; + } + int i8 = i2 == 3 ? i3 == 2 ? e[i4 - 1] : f[i4 - 1] : g[i4 - 1]; + int i9 = 144; + if (i2 == 3) { + return ((i8 * 144) / i6) + i7; + } + if (i3 == 1) { + i9 = 72; + } + return ((i9 * i8) / i6) + i7; + } + + public static int b(int i, int i2) { + if (i2 == 1) { + return i == 3 ? 1152 : 576; + } + if (i2 == 2) { + return 1152; + } + if (i2 == 3) { + return 384; + } + throw new IllegalArgumentException(); + } + + public static boolean c(int i) { + return (i & -2097152) == -2097152; + } + + public static int d(int i) { + int i2; + int i3; + if (!c(i) || (i2 = (i >>> 19) & 3) == 1 || (i3 = (i >>> 17) & 3) == 0) { + return -1; + } + int i4 = (i >>> 12) & 15; + int i5 = (i >>> 10) & 3; + if (i4 == 0 || i4 == 15 || i5 == 3) { + return -1; + } + return b(i2, i3); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/b.java b/app/src/main/java/b/i/a/c/t2/b.java new file mode 100644 index 0000000000..2d07298f5c --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/b.java @@ -0,0 +1,28 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +import b.i.a.c.v2.e; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class b implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ e k; + + public /* synthetic */ b(r.a aVar, e eVar) { + this.j = aVar; + this.k = eVar; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + e eVar = this.k; + Objects.requireNonNull(aVar); + synchronized (eVar) { + } + r rVar = aVar.f1112b; + int i = e0.a; + rVar.k(eVar); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/b0.java b/app/src/main/java/b/i/a/c/t2/b0.java new file mode 100644 index 0000000000..23a5c4814e --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/b0.java @@ -0,0 +1,91 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import com.google.android.exoplayer2.audio.AudioProcessor; +import java.nio.ByteBuffer; +/* compiled from: ResamplingAudioProcessor */ +public final class b0 extends v { + /* JADX WARNING: Removed duplicated region for block: B:13:0x0039 */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x00b0 A[LOOP:4: B:27:0x00b0->B:28:0x00b2, LOOP_START, PHI: r0 + PHI: (r0v2 int) = (r0v0 int), (r0v3 int) binds: [B:12:0x0037, B:28:0x00b2] A[DONT_GENERATE, DONT_INLINE]] */ + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void c(ByteBuffer byteBuffer) { + int i; + int position = byteBuffer.position(); + int limit = byteBuffer.limit(); + int i2 = limit - position; + int i3 = this.f1121b.d; + if (i3 != 3) { + if (i3 != 4) { + if (i3 != 268435456) { + if (i3 == 536870912) { + i2 /= 3; + } else if (i3 != 805306368) { + throw new IllegalStateException(); + } + } + ByteBuffer j = j(i2); + i = this.f1121b.d; + if (i == 3) { + while (position < limit) { + j.put((byte) 0); + j.put((byte) ((byteBuffer.get(position) & 255) - 128)); + position++; + } + } else if (i == 4) { + while (position < limit) { + short g = (short) ((int) (e0.g(byteBuffer.getFloat(position), -1.0f, 1.0f) * 32767.0f)); + j.put((byte) (g & 255)); + j.put((byte) ((g >> 8) & 255)); + position += 4; + } + } else if (i == 268435456) { + while (position < limit) { + j.put(byteBuffer.get(position + 1)); + j.put(byteBuffer.get(position)); + position += 2; + } + } else if (i == 536870912) { + while (position < limit) { + j.put(byteBuffer.get(position + 1)); + j.put(byteBuffer.get(position + 2)); + position += 3; + } + } else if (i == 805306368) { + while (position < limit) { + j.put(byteBuffer.get(position + 2)); + j.put(byteBuffer.get(position + 3)); + position += 4; + } + } else { + throw new IllegalStateException(); + } + byteBuffer.position(byteBuffer.limit()); + j.flip(); + } + i2 /= 2; + ByteBuffer j = j(i2); + i = this.f1121b.d; + if (i == 3) { + } + byteBuffer.position(byteBuffer.limit()); + j.flip(); + } + i2 *= 2; + ByteBuffer j = j(i2); + i = this.f1121b.d; + if (i == 3) { + } + byteBuffer.position(byteBuffer.limit()); + j.flip(); + } + + @Override // b.i.a.c.t2.v + public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException { + int i = aVar.d; + if (i == 3 || i == 2 || i == 268435456 || i == 536870912 || i == 805306368 || i == 4) { + return i != 2 ? new AudioProcessor.a(aVar.f2872b, aVar.c, 2) : AudioProcessor.a.a; + } + throw new AudioProcessor.UnhandledAudioFormatException(aVar); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/c.java b/app/src/main/java/b/i/a/c/t2/c.java new file mode 100644 index 0000000000..2d11e021ab --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/c.java @@ -0,0 +1,23 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +/* compiled from: lambda */ +public final /* synthetic */ class c implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ Exception k; + + public /* synthetic */ c(r.a aVar, Exception exc) { + this.j = aVar; + this.k = exc; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + Exception exc = this.k; + r rVar = aVar.f1112b; + int i = e0.a; + rVar.T(exc); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/c0.java b/app/src/main/java/b/i/a/c/t2/c0.java new file mode 100644 index 0000000000..67a68ecaab --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/c0.java @@ -0,0 +1,194 @@ +package b.i.a.c.t2; + +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import com.google.android.exoplayer2.audio.AudioProcessor; +import java.nio.ByteBuffer; +/* compiled from: SilenceSkippingAudioProcessor */ +public final class c0 extends v { + public final long i = 150000; + public final long j = 20000; + public final short k = 1024; + public int l; + public boolean m; + public byte[] n; + public byte[] o; + public int p; + public int q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public boolean f1103s; + public long t; + + public c0() { + d.j(true); + byte[] bArr = e0.f; + this.n = bArr; + this.o = bArr; + } + + @Override // b.i.a.c.t2.v, com.google.android.exoplayer2.audio.AudioProcessor + public boolean a() { + return this.m; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void c(ByteBuffer byteBuffer) { + int position; + while (byteBuffer.hasRemaining() && !this.g.hasRemaining()) { + int i = this.p; + if (i == 0) { + int limit = byteBuffer.limit(); + byteBuffer.limit(Math.min(limit, byteBuffer.position() + this.n.length)); + int limit2 = byteBuffer.limit(); + while (true) { + limit2 -= 2; + if (limit2 >= byteBuffer.position()) { + if (Math.abs((int) byteBuffer.getShort(limit2)) > this.k) { + int i2 = this.l; + position = ((limit2 / i2) * i2) + i2; + break; + } + } else { + position = byteBuffer.position(); + break; + } + } + if (position == byteBuffer.position()) { + this.p = 1; + } else { + byteBuffer.limit(position); + int remaining = byteBuffer.remaining(); + j(remaining).put(byteBuffer).flip(); + if (remaining > 0) { + this.f1103s = true; + } + } + byteBuffer.limit(limit); + } else if (i == 1) { + int limit3 = byteBuffer.limit(); + int k = k(byteBuffer); + int position2 = k - byteBuffer.position(); + byte[] bArr = this.n; + int length = bArr.length; + int i3 = this.q; + int i4 = length - i3; + if (k >= limit3 || position2 >= i4) { + int min = Math.min(position2, i4); + byteBuffer.limit(byteBuffer.position() + min); + byteBuffer.get(this.n, this.q, min); + int i5 = this.q + min; + this.q = i5; + byte[] bArr2 = this.n; + if (i5 == bArr2.length) { + if (this.f1103s) { + l(bArr2, this.r); + this.t += (long) ((this.q - (this.r * 2)) / this.l); + } else { + this.t += (long) ((i5 - this.r) / this.l); + } + m(byteBuffer, this.n, this.q); + this.q = 0; + this.p = 2; + } + byteBuffer.limit(limit3); + } else { + l(bArr, i3); + this.q = 0; + this.p = 0; + } + } else if (i == 2) { + int limit4 = byteBuffer.limit(); + int k2 = k(byteBuffer); + byteBuffer.limit(k2); + this.t += (long) (byteBuffer.remaining() / this.l); + m(byteBuffer, this.o, this.r); + if (k2 < limit4) { + l(this.o, this.r); + this.p = 0; + byteBuffer.limit(limit4); + } + } else { + throw new IllegalStateException(); + } + } + } + + @Override // b.i.a.c.t2.v + public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException { + if (aVar.d == 2) { + return this.m ? aVar : AudioProcessor.a.a; + } + throw new AudioProcessor.UnhandledAudioFormatException(aVar); + } + + @Override // b.i.a.c.t2.v + public void g() { + if (this.m) { + AudioProcessor.a aVar = this.f1121b; + int i = aVar.e; + this.l = i; + long j = this.i; + long j2 = (long) aVar.f2872b; + int i2 = ((int) ((j * j2) / 1000000)) * i; + if (this.n.length != i2) { + this.n = new byte[i2]; + } + int i3 = ((int) ((this.j * j2) / 1000000)) * i; + this.r = i3; + if (this.o.length != i3) { + this.o = new byte[i3]; + } + } + this.p = 0; + this.t = 0; + this.q = 0; + this.f1103s = false; + } + + @Override // b.i.a.c.t2.v + public void h() { + int i = this.q; + if (i > 0) { + l(this.n, i); + } + if (!this.f1103s) { + this.t += (long) (this.r / this.l); + } + } + + @Override // b.i.a.c.t2.v + public void i() { + this.m = false; + this.r = 0; + byte[] bArr = e0.f; + this.n = bArr; + this.o = bArr; + } + + public final int k(ByteBuffer byteBuffer) { + for (int position = byteBuffer.position(); position < byteBuffer.limit(); position += 2) { + if (Math.abs((int) byteBuffer.getShort(position)) > this.k) { + int i = this.l; + return (position / i) * i; + } + } + return byteBuffer.limit(); + } + + public final void l(byte[] bArr, int i) { + j(i).put(bArr, 0, i).flip(); + if (i > 0) { + this.f1103s = true; + } + } + + public final void m(ByteBuffer byteBuffer, byte[] bArr, int i) { + int min = Math.min(byteBuffer.remaining(), this.r); + int i2 = this.r - min; + System.arraycopy(bArr, i - i2, this.o, 0, i2); + byteBuffer.position(byteBuffer.limit() - min); + byteBuffer.get(this.o, i2, min); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/d.java b/app/src/main/java/b/i/a/c/t2/d.java new file mode 100644 index 0000000000..1f56098020 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/d.java @@ -0,0 +1,23 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +/* compiled from: lambda */ +public final /* synthetic */ class d implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ Exception k; + + public /* synthetic */ d(r.a aVar, Exception exc) { + this.j = aVar; + this.k = exc; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + Exception exc = this.k; + r rVar = aVar.f1112b; + int i = e0.a; + rVar.N(exc); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/d0.java b/app/src/main/java/b/i/a/c/t2/d0.java new file mode 100644 index 0000000000..ca59a8440e --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/d0.java @@ -0,0 +1,302 @@ +package b.i.a.c.t2; + +import b.c.a.a0.d; +import com.discord.utilities.rest.SendUtils; +import java.util.Arrays; +/* compiled from: Sonic */ +public final class d0 { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1104b; + public final float c; + public final float d; + public final float e; + public final int f; + public final int g; + public final int h; + public final short[] i; + public short[] j; + public int k; + public short[] l; + public int m; + public short[] n; + public int o; + public int p; + public int q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public int f1105s; + public int t; + public int u; + public int v; + + public d0(int i, int i2, float f, float f2, int i3) { + this.a = i; + this.f1104b = i2; + this.c = f; + this.d = f2; + this.e = ((float) i) / ((float) i3); + this.f = i / 400; + int i4 = i / 65; + this.g = i4; + int i5 = i4 * 2; + this.h = i5; + this.i = new short[i5]; + this.j = new short[(i5 * i2)]; + this.l = new short[(i5 * i2)]; + this.n = new short[(i5 * i2)]; + } + + public static void e(int i, int i2, short[] sArr, int i3, short[] sArr2, int i4, short[] sArr3, int i5) { + for (int i6 = 0; i6 < i2; i6++) { + int i7 = (i3 * i2) + i6; + int i8 = (i5 * i2) + i6; + int i9 = (i4 * i2) + i6; + for (int i10 = 0; i10 < i; i10++) { + sArr[i7] = (short) (((sArr3[i8] * i10) + ((i - i10) * sArr2[i9])) / i); + i7 += i2; + i9 += i2; + i8 += i2; + } + } + } + + public final void a(short[] sArr, int i, int i2) { + short[] c = c(this.l, this.m, i2); + this.l = c; + int i3 = this.f1104b; + System.arraycopy(sArr, i * i3, c, this.m * i3, i3 * i2); + this.m += i2; + } + + public final void b(short[] sArr, int i, int i2) { + int i3 = this.h / i2; + int i4 = this.f1104b; + int i5 = i2 * i4; + int i6 = i * i4; + for (int i7 = 0; i7 < i3; i7++) { + int i8 = 0; + for (int i9 = 0; i9 < i5; i9++) { + i8 += sArr[(i7 * i5) + i6 + i9]; + } + this.i[i7] = (short) (i8 / i5); + } + } + + public final short[] c(short[] sArr, int i, int i2) { + int length = sArr.length; + int i3 = this.f1104b; + int i4 = length / i3; + return i + i2 <= i4 ? sArr : Arrays.copyOf(sArr, (((i4 * 3) / 2) + i2) * i3); + } + + public final int d(short[] sArr, int i, int i2, int i3) { + int i4 = i * this.f1104b; + int i5 = 1; + int i6 = 255; + int i7 = 0; + int i8 = 0; + while (i2 <= i3) { + int i9 = 0; + for (int i10 = 0; i10 < i2; i10++) { + i9 += Math.abs(sArr[i4 + i10] - sArr[(i4 + i2) + i10]); + } + if (i9 * i7 < i5 * i2) { + i7 = i2; + i5 = i9; + } + if (i9 * i6 > i8 * i2) { + i6 = i2; + i8 = i9; + } + i2++; + } + this.u = i5 / i7; + this.v = i8 / i6; + return i7; + } + + public final void f() { + int i; + int i2; + int i3; + int i4; + int i5; + int i6; + int i7; + int i8 = this.m; + float f = this.c; + float f2 = this.d; + float f3 = f / f2; + float f4 = this.e * f2; + double d = (double) f3; + float f5 = 1.0f; + int i9 = 1; + if (d > 1.00001d || d < 0.99999d) { + int i10 = this.k; + if (i10 >= this.h) { + int i11 = 0; + while (true) { + int i12 = this.r; + if (i12 > 0) { + int min = Math.min(this.h, i12); + a(this.j, i11, min); + this.r -= min; + i11 += min; + } else { + short[] sArr = this.j; + int i13 = this.a; + int i14 = i13 > 4000 ? i13 / SendUtils.MAX_MESSAGE_CHARACTER_COUNT_PREMIUM : 1; + if (this.f1104b == i9 && i14 == i9) { + i5 = d(sArr, i11, this.f, this.g); + } else { + b(sArr, i11, i14); + int d2 = d(this.i, 0, this.f / i14, this.g / i14); + if (i14 != i9) { + int i15 = d2 * i14; + int i16 = i14 * 4; + int i17 = i15 - i16; + int i18 = i15 + i16; + int i19 = this.f; + if (i17 < i19) { + i17 = i19; + } + int i20 = this.g; + if (i18 > i20) { + i18 = i20; + } + if (this.f1104b == i9) { + i5 = d(sArr, i11, i17, i18); + } else { + b(sArr, i11, i9); + i5 = d(this.i, 0, i17, i18); + } + } else { + i5 = d2; + } + } + int i21 = this.u; + int i22 = i21 != 0 && this.f1105s != 0 && this.v <= i21 * 3 && i21 * 2 > this.t * 3 ? this.f1105s : i5; + this.t = i21; + this.f1105s = i5; + if (d > 1.0d) { + short[] sArr2 = this.j; + if (f3 >= 2.0f) { + i7 = (int) (((float) i22) / (f3 - f5)); + } else { + this.r = (int) (((2.0f - f3) * ((float) i22)) / (f3 - f5)); + i7 = i22; + } + short[] c = c(this.l, this.m, i7); + this.l = c; + e(i7, this.f1104b, c, this.m, sArr2, i11, sArr2, i11 + i22); + this.m += i7; + i11 = i22 + i7 + i11; + } else { + short[] sArr3 = this.j; + if (f3 < 0.5f) { + i6 = (int) ((((float) i22) * f3) / (f5 - f3)); + } else { + this.r = (int) ((((2.0f * f3) - f5) * ((float) i22)) / (f5 - f3)); + i6 = i22; + } + int i23 = i22 + i6; + short[] c2 = c(this.l, this.m, i23); + this.l = c2; + int i24 = this.f1104b; + System.arraycopy(sArr3, i11 * i24, c2, this.m * i24, i24 * i22); + e(i6, this.f1104b, this.l, this.m + i22, sArr3, i11 + i22, sArr3, i11); + this.m += i23; + i11 += i6; + } + } + if (this.h + i11 > i10) { + break; + } + f5 = 1.0f; + i9 = 1; + } + int i25 = this.k - i11; + short[] sArr4 = this.j; + int i26 = this.f1104b; + System.arraycopy(sArr4, i11 * i26, sArr4, 0, i26 * i25); + this.k = i25; + } + f5 = 1.0f; + } else { + a(this.j, 0, this.k); + this.k = 0; + } + if (f4 != f5 && this.m != i8) { + int i27 = this.a; + int i28 = (int) (((float) i27) / f4); + while (true) { + if (i28 <= 16384 && i27 <= 16384) { + break; + } + i28 /= 2; + i27 /= 2; + } + int i29 = this.m - i8; + short[] c3 = c(this.n, this.o, i29); + this.n = c3; + short[] sArr5 = this.l; + int i30 = this.f1104b; + System.arraycopy(sArr5, i8 * i30, c3, this.o * i30, i30 * i29); + this.m = i8; + this.o += i29; + int i31 = 0; + while (true) { + i = this.o; + i2 = i - 1; + if (i31 >= i2) { + break; + } + while (true) { + i3 = this.p + 1; + int i32 = i3 * i28; + i4 = this.q; + if (i32 <= i4 * i27) { + break; + } + this.l = c(this.l, this.m, 1); + int i33 = 0; + while (true) { + int i34 = this.f1104b; + if (i33 >= i34) { + break; + } + short[] sArr6 = this.n; + int i35 = (i31 * i34) + i33; + short s2 = sArr6[i35]; + short s3 = sArr6[i35 + i34]; + int i36 = this.p; + int i37 = i36 * i28; + int i38 = (i36 + 1) * i28; + int i39 = i38 - (this.q * i27); + int i40 = i38 - i37; + this.l[(this.m * i34) + i33] = (short) ((((i40 - i39) * s3) + (s2 * i39)) / i40); + i33++; + } + this.q++; + this.m++; + } + this.p = i3; + if (i3 == i27) { + this.p = 0; + d.D(i4 == i28); + this.q = 0; + } + i31++; + } + if (i2 != 0) { + short[] sArr7 = this.n; + int i41 = this.f1104b; + System.arraycopy(sArr7, i2 * i41, sArr7, 0, (i - i2) * i41); + this.o -= i2; + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/t2/e.java b/app/src/main/java/b/i/a/c/t2/e.java new file mode 100644 index 0000000000..a81bf2aa43 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/e.java @@ -0,0 +1,29 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.j1; +import b.i.a.c.t2.r; +import b.i.a.c.v2.g; +/* compiled from: lambda */ +public final /* synthetic */ class e implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ j1 k; + public final /* synthetic */ g l; + + public /* synthetic */ e(r.a aVar, j1 j1Var, g gVar) { + this.j = aVar; + this.k = j1Var; + this.l = gVar; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + j1 j1Var = this.k; + g gVar = this.l; + r rVar = aVar.f1112b; + int i = e0.a; + rVar.U(j1Var); + aVar.f1112b.I(j1Var, gVar); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/e0.java b/app/src/main/java/b/i/a/c/t2/e0.java new file mode 100644 index 0000000000..deb5c6b392 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/e0.java @@ -0,0 +1,204 @@ +package b.i.a.c.t2; + +import androidx.annotation.Nullable; +import com.google.android.exoplayer2.audio.AudioProcessor; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.nio.ShortBuffer; +import java.util.Objects; +/* compiled from: SonicAudioProcessor */ +public final class e0 implements AudioProcessor { + + /* renamed from: b reason: collision with root package name */ + public int f1106b; + public float c = 1.0f; + public float d = 1.0f; + public AudioProcessor.a e; + public AudioProcessor.a f; + public AudioProcessor.a g; + public AudioProcessor.a h; + public boolean i; + @Nullable + public d0 j; + public ByteBuffer k; + public ShortBuffer l; + public ByteBuffer m; + public long n; + public long o; + public boolean p; + + public e0() { + AudioProcessor.a aVar = AudioProcessor.a.a; + this.e = aVar; + this.f = aVar; + this.g = aVar; + this.h = aVar; + ByteBuffer byteBuffer = AudioProcessor.a; + this.k = byteBuffer; + this.l = byteBuffer.asShortBuffer(); + this.m = byteBuffer; + this.f1106b = -1; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public boolean a() { + return this.f.f2872b != -1 && (Math.abs(this.c - 1.0f) >= 1.0E-4f || Math.abs(this.d - 1.0f) >= 1.0E-4f || this.f.f2872b != this.e.f2872b); + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public boolean b() { + d0 d0Var; + return this.p && ((d0Var = this.j) == null || (d0Var.m * d0Var.f1104b) * 2 == 0); + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void c(ByteBuffer byteBuffer) { + if (byteBuffer.hasRemaining()) { + d0 d0Var = this.j; + Objects.requireNonNull(d0Var); + ShortBuffer asShortBuffer = byteBuffer.asShortBuffer(); + int remaining = byteBuffer.remaining(); + this.n += (long) remaining; + int remaining2 = asShortBuffer.remaining(); + int i = d0Var.f1104b; + int i2 = remaining2 / i; + short[] c = d0Var.c(d0Var.j, d0Var.k, i2); + d0Var.j = c; + asShortBuffer.get(c, d0Var.k * d0Var.f1104b, ((i * i2) * 2) / 2); + d0Var.k += i2; + d0Var.f(); + byteBuffer.position(byteBuffer.position() + remaining); + } + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public AudioProcessor.a d(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException { + if (aVar.d == 2) { + int i = this.f1106b; + if (i == -1) { + i = aVar.f2872b; + } + this.e = aVar; + AudioProcessor.a aVar2 = new AudioProcessor.a(i, aVar.c, 2); + this.f = aVar2; + this.i = true; + return aVar2; + } + throw new AudioProcessor.UnhandledAudioFormatException(aVar); + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void e() { + int i; + d0 d0Var = this.j; + if (d0Var != null) { + int i2 = d0Var.k; + float f = d0Var.c; + float f2 = d0Var.d; + float f3 = d0Var.e * f2; + int i3 = d0Var.m + ((int) ((((((float) i2) / (f / f2)) + ((float) d0Var.o)) / f3) + 0.5f)); + d0Var.j = d0Var.c(d0Var.j, i2, (d0Var.h * 2) + i2); + int i4 = 0; + while (true) { + i = d0Var.h * 2; + int i5 = d0Var.f1104b; + if (i4 >= i * i5) { + break; + } + d0Var.j[(i5 * i2) + i4] = 0; + i4++; + } + d0Var.k = i + d0Var.k; + d0Var.f(); + if (d0Var.m > i3) { + d0Var.m = i3; + } + d0Var.k = 0; + d0Var.r = 0; + d0Var.o = 0; + } + this.p = true; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void flush() { + if (a()) { + AudioProcessor.a aVar = this.e; + this.g = aVar; + AudioProcessor.a aVar2 = this.f; + this.h = aVar2; + if (this.i) { + this.j = new d0(aVar.f2872b, aVar.c, this.c, this.d, aVar2.f2872b); + } else { + d0 d0Var = this.j; + if (d0Var != null) { + d0Var.k = 0; + d0Var.m = 0; + d0Var.o = 0; + d0Var.p = 0; + d0Var.q = 0; + d0Var.r = 0; + d0Var.f1105s = 0; + d0Var.t = 0; + d0Var.u = 0; + d0Var.v = 0; + } + } + } + this.m = AudioProcessor.a; + this.n = 0; + this.o = 0; + this.p = false; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public ByteBuffer getOutput() { + int i; + d0 d0Var = this.j; + if (d0Var != null && (i = d0Var.m * d0Var.f1104b * 2) > 0) { + if (this.k.capacity() < i) { + ByteBuffer order = ByteBuffer.allocateDirect(i).order(ByteOrder.nativeOrder()); + this.k = order; + this.l = order.asShortBuffer(); + } else { + this.k.clear(); + this.l.clear(); + } + ShortBuffer shortBuffer = this.l; + int min = Math.min(shortBuffer.remaining() / d0Var.f1104b, d0Var.m); + shortBuffer.put(d0Var.l, 0, d0Var.f1104b * min); + int i2 = d0Var.m - min; + d0Var.m = i2; + short[] sArr = d0Var.l; + int i3 = d0Var.f1104b; + System.arraycopy(sArr, min * i3, sArr, 0, i2 * i3); + this.o += (long) i; + this.k.limit(i); + this.m = this.k; + } + ByteBuffer byteBuffer = this.m; + this.m = AudioProcessor.a; + return byteBuffer; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void reset() { + this.c = 1.0f; + this.d = 1.0f; + AudioProcessor.a aVar = AudioProcessor.a.a; + this.e = aVar; + this.f = aVar; + this.g = aVar; + this.h = aVar; + ByteBuffer byteBuffer = AudioProcessor.a; + this.k = byteBuffer; + this.l = byteBuffer.asShortBuffer(); + this.m = byteBuffer; + this.f1106b = -1; + this.i = false; + this.j = null; + this.n = 0; + this.o = 0; + this.p = false; + } +} diff --git a/app/src/main/java/b/i/a/c/t2/f.java b/app/src/main/java/b/i/a/c/t2/f.java new file mode 100644 index 0000000000..02240a3d6b --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/f.java @@ -0,0 +1,29 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +/* compiled from: lambda */ +public final /* synthetic */ class f implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ String k; + public final /* synthetic */ long l; + public final /* synthetic */ long m; + + public /* synthetic */ f(r.a aVar, String str, long j, long j2) { + this.j = aVar; + this.k = str; + this.l = j; + this.m = j2; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + String str = this.k; + long j = this.l; + long j2 = this.m; + r rVar = aVar.f1112b; + int i = e0.a; + rVar.C(str, j, j2); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/f0.java b/app/src/main/java/b/i/a/c/t2/f0.java new file mode 100644 index 0000000000..5f26455c7d --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/f0.java @@ -0,0 +1,99 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import com.google.android.exoplayer2.audio.AudioProcessor; +import java.nio.ByteBuffer; +/* compiled from: TrimmingAudioProcessor */ +public final class f0 extends v { + public int i; + public int j; + public boolean k; + public int l; + public byte[] m = e0.f; + public int n; + public long o; + + @Override // b.i.a.c.t2.v, com.google.android.exoplayer2.audio.AudioProcessor + public boolean b() { + return super.b() && this.n == 0; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void c(ByteBuffer byteBuffer) { + int position = byteBuffer.position(); + int limit = byteBuffer.limit(); + int i = limit - position; + if (i != 0) { + int min = Math.min(i, this.l); + this.o += (long) (min / this.f1121b.e); + this.l -= min; + byteBuffer.position(position + min); + if (this.l <= 0) { + int i2 = i - min; + int length = (this.n + i2) - this.m.length; + ByteBuffer j = j(length); + int h = e0.h(length, 0, this.n); + j.put(this.m, 0, h); + int h2 = e0.h(length - h, 0, i2); + byteBuffer.limit(byteBuffer.position() + h2); + j.put(byteBuffer); + byteBuffer.limit(limit); + int i3 = i2 - h2; + int i4 = this.n - h; + this.n = i4; + byte[] bArr = this.m; + System.arraycopy(bArr, h, bArr, 0, i4); + byteBuffer.get(this.m, this.n, i3); + this.n += i3; + j.flip(); + } + } + } + + @Override // b.i.a.c.t2.v + public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException { + if (aVar.d == 2) { + this.k = true; + return (this.i == 0 && this.j == 0) ? AudioProcessor.a.a : aVar; + } + throw new AudioProcessor.UnhandledAudioFormatException(aVar); + } + + @Override // b.i.a.c.t2.v + public void g() { + if (this.k) { + this.k = false; + int i = this.j; + int i2 = this.f1121b.e; + this.m = new byte[(i * i2)]; + this.l = this.i * i2; + } + this.n = 0; + } + + @Override // b.i.a.c.t2.v, com.google.android.exoplayer2.audio.AudioProcessor + public ByteBuffer getOutput() { + int i; + if (super.b() && (i = this.n) > 0) { + j(i).put(this.m, 0, this.n).flip(); + this.n = 0; + } + return super.getOutput(); + } + + @Override // b.i.a.c.t2.v + public void h() { + if (this.k) { + int i = this.n; + if (i > 0) { + this.o += (long) (i / this.f1121b.e); + } + this.n = 0; + } + } + + @Override // b.i.a.c.t2.v + public void i() { + this.m = e0.f; + } +} diff --git a/app/src/main/java/b/i/a/c/t2/g.java b/app/src/main/java/b/i/a/c/t2/g.java new file mode 100644 index 0000000000..8d491b124f --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/g.java @@ -0,0 +1,23 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +/* compiled from: lambda */ +public final /* synthetic */ class g implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ String k; + + public /* synthetic */ g(r.a aVar, String str) { + this.j = aVar; + this.k = str; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + String str = this.k; + r rVar = aVar.f1112b; + int i = e0.a; + rVar.B(str); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/h.java b/app/src/main/java/b/i/a/c/t2/h.java new file mode 100644 index 0000000000..ab8f4b8672 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/h.java @@ -0,0 +1,23 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +/* compiled from: lambda */ +public final /* synthetic */ class h implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ long k; + + public /* synthetic */ h(r.a aVar, long j) { + this.j = aVar; + this.k = j; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + long j = this.k; + r rVar = aVar.f1112b; + int i = e0.a; + rVar.R(j); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/i.java b/app/src/main/java/b/i/a/c/t2/i.java new file mode 100644 index 0000000000..335b3595f6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/i.java @@ -0,0 +1,29 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +/* compiled from: lambda */ +public final /* synthetic */ class i implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ int k; + public final /* synthetic */ long l; + public final /* synthetic */ long m; + + public /* synthetic */ i(r.a aVar, int i, long j, long j2) { + this.j = aVar; + this.k = i; + this.l = j; + this.m = j2; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + int i = this.k; + long j = this.l; + long j2 = this.m; + r rVar = aVar.f1112b; + int i2 = e0.a; + rVar.e0(i, j, j2); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/j.java b/app/src/main/java/b/i/a/c/t2/j.java new file mode 100644 index 0000000000..ef0f1792d6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/j.java @@ -0,0 +1,24 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import b.i.a.c.t2.r; +import b.i.a.c.v2.e; +/* compiled from: lambda */ +public final /* synthetic */ class j implements Runnable { + public final /* synthetic */ r.a j; + public final /* synthetic */ e k; + + public /* synthetic */ j(r.a aVar, e eVar) { + this.j = aVar; + this.k = eVar; + } + + @Override // java.lang.Runnable + public final void run() { + r.a aVar = this.j; + e eVar = this.k; + r rVar = aVar.f1112b; + int i = e0.a; + rVar.m(eVar); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/k.java b/app/src/main/java/b/i/a/c/t2/k.java new file mode 100644 index 0000000000..21ec358b54 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/k.java @@ -0,0 +1,17 @@ +package b.i.a.c.t2; + +import android.os.Handler; +import java.util.concurrent.Executor; +/* compiled from: lambda */ +public final /* synthetic */ class k implements Executor { + public final /* synthetic */ Handler j; + + public /* synthetic */ k(Handler handler) { + this.j = handler; + } + + @Override // java.util.concurrent.Executor + public final void execute(Runnable runnable) { + this.j.post(runnable); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/l.java b/app/src/main/java/b/i/a/c/t2/l.java new file mode 100644 index 0000000000..39d59ac025 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/l.java @@ -0,0 +1,123 @@ +package b.i.a.c.t2; + +import android.util.Log; +import b.i.a.c.f3.w; +import com.google.android.exoplayer2.ParserException; +/* compiled from: AacUtil */ +public final class l { + public static final int[] a = {96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1107b = {0, 1, 2, 3, 4, 5, 6, 8, -1, -1, -1, 7, 8, -1, 8, -1}; + + /* compiled from: AacUtil */ + public static final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1108b; + public final String c; + + public b(int i, int i2, String str, a aVar) { + this.a = i; + this.f1108b = i2; + this.c = str; + } + } + + public static int a(w wVar) throws ParserException { + int g = wVar.g(4); + if (g == 15) { + return wVar.g(24); + } + if (g < 13) { + return a[g]; + } + throw ParserException.a(null, null); + } + + public static b b(w wVar, boolean z2) throws ParserException { + int g = wVar.g(5); + if (g == 31) { + g = wVar.g(6) + 32; + } + int a2 = a(wVar); + int g2 = wVar.g(4); + String f = b.d.b.a.a.f(19, "mp4a.40.", g); + if (g == 5 || g == 29) { + a2 = a(wVar); + int g3 = wVar.g(5); + if (g3 == 31) { + g3 = wVar.g(6) + 32; + } + g = g3; + if (g == 22) { + g2 = wVar.g(4); + } + } + if (z2) { + if (!(g == 1 || g == 2 || g == 3 || g == 4 || g == 6 || g == 7 || g == 17)) { + switch (g) { + case 19: + case 20: + case 21: + case 22: + case 23: + break; + default: + StringBuilder sb = new StringBuilder(42); + sb.append("Unsupported audio object type: "); + sb.append(g); + throw ParserException.b(sb.toString()); + } + } + if (wVar.f()) { + Log.w("AacUtil", "Unexpected frameLengthFlag = 1"); + } + if (wVar.f()) { + wVar.m(14); + } + boolean f2 = wVar.f(); + if (g2 != 0) { + if (g == 6 || g == 20) { + wVar.m(3); + } + if (f2) { + if (g == 22) { + wVar.m(16); + } + if (g == 17 || g == 19 || g == 20 || g == 23) { + wVar.m(3); + } + wVar.m(1); + } + switch (g) { + case 17: + case 19: + case 20: + case 21: + case 22: + case 23: + int g4 = wVar.g(2); + if (g4 == 2 || g4 == 3) { + StringBuilder sb2 = new StringBuilder(33); + sb2.append("Unsupported epConfig: "); + sb2.append(g4); + throw ParserException.b(sb2.toString()); + } + } + } else { + throw new UnsupportedOperationException(); + } + } + int i = f1107b[g2]; + if (i != -1) { + return new b(a2, i, f, null); + } + throw ParserException.a(null, null); + } + + public static b c(byte[] bArr) throws ParserException { + return b(new w(bArr), false); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/m.java b/app/src/main/java/b/i/a/c/t2/m.java new file mode 100644 index 0000000000..2e9134120c --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/m.java @@ -0,0 +1,33 @@ +package b.i.a.c.t2; +/* compiled from: Ac3Util */ +public final class m { + public static final int[] a = {1, 2, 3, 6}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1109b = {48000, 44100, 32000}; + public static final int[] c = {24000, 22050, 16000}; + public static final int[] d = {2, 1, 2, 3, 3, 4, 4, 5}; + public static final int[] e = {32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 448, 512, 576, 640}; + public static final int[] f = {69, 87, 104, 121, 139, 174, 208, 243, 278, 348, 417, 487, 557, 696, 835, 975, 1114, 1253, 1393}; + + public static int a(int i, int i2) { + int i3 = i2 / 2; + if (i < 0) { + return -1; + } + int[] iArr = f1109b; + if (i >= iArr.length || i2 < 0) { + return -1; + } + int[] iArr2 = f; + if (i3 >= iArr2.length) { + return -1; + } + int i4 = iArr[i]; + if (i4 == 44100) { + return ((i2 % 2) + iArr2[i3]) * 2; + } + int i5 = e[i3]; + return i4 == 32000 ? i5 * 6 : i5 * 4; + } +} diff --git a/app/src/main/java/b/i/a/c/t2/n.java b/app/src/main/java/b/i/a/c/t2/n.java new file mode 100644 index 0000000000..a290c7c3fb --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/n.java @@ -0,0 +1,115 @@ +package b.i.a.c.t2; + +import androidx.core.view.PointerIconCompat; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +/* compiled from: Ac4Util */ +public final class n { + public static final int[] a = {2002, 2000, 1920, 1601, 1600, PointerIconCompat.TYPE_CONTEXT_MENU, 1000, 960, 800, 800, 480, 400, 400, 2048}; + + /* compiled from: Ac4Util */ + public static final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1110b; + public final int c; + + public b(int i, int i2, int i3, int i4, int i5, a aVar) { + this.a = i3; + this.f1110b = i4; + this.c = i5; + } + } + + public static void a(int i, x xVar) { + xVar.A(7); + byte[] bArr = xVar.a; + bArr[0] = -84; + bArr[1] = 64; + bArr[2] = -1; + bArr[3] = -1; + bArr[4] = (byte) ((i >> 16) & 255); + bArr[5] = (byte) ((i >> 8) & 255); + bArr[6] = (byte) (i & 255); + } + + /* JADX WARNING: Code restructure failed: missing block: B:39:0x0093, code lost: + if (r10 != 11) goto L_0x00a0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:41:0x0098, code lost: + if (r10 != 11) goto L_0x00a0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:43:0x009d, code lost: + if (r10 != 8) goto L_0x00a0; + */ + public static b b(w wVar) { + int i; + int i2; + int g; + int g2 = wVar.g(16); + int g3 = wVar.g(16); + if (g3 == 65535) { + g3 = wVar.g(24); + i = 7; + } else { + i = 4; + } + int i3 = g3 + i; + if (g2 == 44097) { + i3 += 2; + } + int g4 = wVar.g(2); + if (g4 == 3) { + int i4 = 0; + while (true) { + g = wVar.g(2) + i4; + if (!wVar.f()) { + break; + } + i4 = (g + 1) << 2; + } + g4 += g; + } + int g5 = wVar.g(10); + if (wVar.f() && wVar.g(3) > 0) { + wVar.m(2); + } + int i5 = wVar.f() ? 48000 : 44100; + int g6 = wVar.g(4); + if (i5 == 44100 && g6 == 13) { + i2 = a[g6]; + } else { + if (i5 == 48000) { + int[] iArr = a; + if (g6 < iArr.length) { + int i6 = iArr[g6]; + int i7 = g5 % 5; + if (i7 != 1) { + if (i7 == 2) { + if (g6 != 8) { + } + i6++; + i2 = i6; + } else if (i7 != 3) { + if (i7 == 4) { + if (g6 != 3) { + if (g6 != 8) { + } + } + i6++; + } + i2 = i6; + } + } + if (g6 != 3) { + } + i6++; + i2 = i6; + } + } + i2 = 0; + } + return new b(g4, 2, i5, i3, i2, null); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/o.java b/app/src/main/java/b/i/a/c/t2/o.java new file mode 100644 index 0000000000..de96310504 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/o.java @@ -0,0 +1,51 @@ +package b.i.a.c.t2; + +import android.media.AudioAttributes; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.f3.e0; +import b.i.a.c.w0; +/* compiled from: AudioAttributes */ +public final class o implements w0 { + public static final o j = new o(0, 0, 1, 1, null); + public final int k; + public final int l; + public final int m; + public final int n; + @Nullable + public AudioAttributes o; + + public o(int i, int i2, int i3, int i4, a aVar) { + this.k = i; + this.l = i2; + this.m = i3; + this.n = i4; + } + + @RequiresApi(21) + public AudioAttributes a() { + if (this.o == null) { + AudioAttributes.Builder usage = new AudioAttributes.Builder().setContentType(this.k).setFlags(this.l).setUsage(this.m); + if (e0.a >= 29) { + usage.setAllowedCapturePolicy(this.n); + } + this.o = usage.build(); + } + return this.o; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || o.class != obj.getClass()) { + return false; + } + o oVar = (o) obj; + return this.k == oVar.k && this.l == oVar.l && this.m == oVar.m && this.n == oVar.n; + } + + public int hashCode() { + return ((((((527 + this.k) * 31) + this.l) * 31) + this.m) * 31) + this.n; + } +} diff --git a/app/src/main/java/b/i/a/c/t2/p.java b/app/src/main/java/b/i/a/c/t2/p.java new file mode 100644 index 0000000000..9ea1456d92 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/p.java @@ -0,0 +1,106 @@ +package b.i.a.c.t2; + +import android.media.AudioAttributes; +import android.media.AudioFormat; +import android.media.AudioTrack; +import androidx.annotation.DoNotInline; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.f.e.o.f; +import b.i.b.b.n; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: AudioCapabilities */ +public final class p { + public static final p a = new p(new int[]{2}, 8); + + /* renamed from: b reason: collision with root package name */ + public static final p f1111b = new p(new int[]{2, 5, 6}, 8); + public static final int[] c = {5, 6, 18, 17, 14, 7, 8}; + public final int[] d; + public final int e; + + /* compiled from: AudioCapabilities */ + @RequiresApi(29) + public static final class a { + @DoNotInline + public static int[] a() { + b.i.b.b.a aVar = b.i.b.b.p.k; + f.z(4, "initialCapacity"); + Object[] objArr = new Object[4]; + int[] iArr = p.c; + int i = 0; + boolean z2 = false; + for (int i2 : iArr) { + if (AudioTrack.isDirectPlaybackSupported(new AudioFormat.Builder().setChannelMask(12).setEncoding(i2).setSampleRate(48000).build(), new AudioAttributes.Builder().setUsage(1).setContentType(3).setFlags(0).build())) { + Integer valueOf = Integer.valueOf(i2); + Objects.requireNonNull(valueOf); + int i3 = i + 1; + if (objArr.length < i3) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i3)); + } else { + if (z2) { + objArr = (Object[]) objArr.clone(); + } + objArr[i] = valueOf; + i++; + } + z2 = false; + objArr[i] = valueOf; + i++; + } + } + Objects.requireNonNull(2); + int i4 = i + 1; + if (objArr.length < i4) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i4)); + } else if (z2) { + objArr = (Object[]) objArr.clone(); + } + objArr[i] = 2; + return f.i1(b.i.b.b.p.l(objArr, i + 1)); + } + } + + public p(@Nullable int[] iArr, int i) { + if (iArr != null) { + int[] copyOf = Arrays.copyOf(iArr, iArr.length); + this.d = copyOf; + Arrays.sort(copyOf); + } else { + this.d = new int[0]; + } + this.e = i; + } + + public boolean a(int i) { + return Arrays.binarySearch(this.d, i) >= 0; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof p)) { + return false; + } + p pVar = (p) obj; + return Arrays.equals(this.d, pVar.d) && this.e == pVar.e; + } + + public int hashCode() { + return (Arrays.hashCode(this.d) * 31) + this.e; + } + + public String toString() { + int i = this.e; + String arrays = Arrays.toString(this.d); + StringBuilder sb = new StringBuilder(String.valueOf(arrays).length() + 67); + sb.append("AudioCapabilities[maxChannelCount="); + sb.append(i); + sb.append(", supportedEncodings="); + sb.append(arrays); + sb.append("]"); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/q.java b/app/src/main/java/b/i/a/c/t2/q.java new file mode 100644 index 0000000000..b1f69977ca --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/q.java @@ -0,0 +1,9 @@ +package b.i.a.c.t2; + +import b.i.a.c.j1; +/* compiled from: AudioRendererEventListener */ +public final /* synthetic */ class q { + @Deprecated + public static void a(r rVar, j1 j1Var) { + } +} diff --git a/app/src/main/java/b/i/a/c/t2/r.java b/app/src/main/java/b/i/a/c/t2/r.java new file mode 100644 index 0000000000..44be4b44ec --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/r.java @@ -0,0 +1,63 @@ +package b.i.a.c.t2; + +import android.os.Handler; +import androidx.annotation.Nullable; +import b.i.a.c.j1; +import b.i.a.c.v2.e; +import b.i.a.c.v2.g; +import java.util.Objects; +/* compiled from: AudioRendererEventListener */ +public interface r { + + /* compiled from: AudioRendererEventListener */ + public static final class a { + @Nullable + public final Handler a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final r f1112b; + + public a(@Nullable Handler handler, @Nullable r rVar) { + if (rVar != null) { + Objects.requireNonNull(handler); + } else { + handler = null; + } + this.a = handler; + this.f1112b = rVar; + } + + public void a(e eVar) { + synchronized (eVar) { + } + Handler handler = this.a; + if (handler != null) { + handler.post(new b(this, eVar)); + } + } + } + + void B(String str); + + void C(String str, long j, long j2); + + void I(j1 j1Var, @Nullable g gVar); + + void N(Exception exc); + + void R(long j); + + void T(Exception exc); + + @Deprecated + void U(j1 j1Var); + + void d(boolean z2); + + void e0(int i, long j, long j2); + + void k(e eVar); + + void m(e eVar); +} diff --git a/app/src/main/java/b/i/a/c/t2/s.java b/app/src/main/java/b/i/a/c/t2/s.java new file mode 100644 index 0000000000..ef547d9e39 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/s.java @@ -0,0 +1,69 @@ +package b.i.a.c.t2; + +import android.media.AudioTimestamp; +import android.media.AudioTrack; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.f3.e0; +/* compiled from: AudioTimestampPoller */ +public final class s { + @Nullable + public final a a; + + /* renamed from: b reason: collision with root package name */ + public int f1113b; + public long c; + public long d; + public long e; + public long f; + + /* compiled from: AudioTimestampPoller */ + @RequiresApi(19) + public static final class a { + public final AudioTrack a; + + /* renamed from: b reason: collision with root package name */ + public final AudioTimestamp f1114b = new AudioTimestamp(); + public long c; + public long d; + public long e; + + public a(AudioTrack audioTrack) { + this.a = audioTrack; + } + } + + public s(AudioTrack audioTrack) { + if (e0.a >= 19) { + this.a = new a(audioTrack); + a(); + return; + } + this.a = null; + b(3); + } + + public void a() { + if (this.a != null) { + b(0); + } + } + + public final void b(int i) { + this.f1113b = i; + if (i == 0) { + this.e = 0; + this.f = -1; + this.c = System.nanoTime() / 1000; + this.d = 10000; + } else if (i == 1) { + this.d = 10000; + } else if (i == 2 || i == 3) { + this.d = 10000000; + } else if (i == 4) { + this.d = 500000; + } else { + throw new IllegalStateException(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/t2/t.java b/app/src/main/java/b/i/a/c/t2/t.java new file mode 100644 index 0000000000..813afe96d9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/t.java @@ -0,0 +1,178 @@ +package b.i.a.c.t2; + +import android.media.AudioTrack; +import android.os.SystemClock; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import java.lang.reflect.Method; +import java.util.Objects; +/* compiled from: AudioTrackPositionTracker */ +public final class t { + public long A; + public long B; + public long C; + public boolean D; + public long E; + public long F; + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final long[] f1115b; + @Nullable + public AudioTrack c; + public int d; + public int e; + @Nullable + public s f; + public int g; + public boolean h; + public long i; + public float j; + public boolean k; + public long l; + public long m; + @Nullable + public Method n; + public long o; + public boolean p; + public boolean q; + public long r; + + /* renamed from: s reason: collision with root package name */ + public long f1116s; + public long t; + public long u; + public int v; + public int w; + + /* renamed from: x reason: collision with root package name */ + public long f1117x; + + /* renamed from: y reason: collision with root package name */ + public long f1118y; + + /* renamed from: z reason: collision with root package name */ + public long f1119z; + + /* compiled from: AudioTrackPositionTracker */ + public interface a { + void a(long j); + + void b(int i, long j); + + void c(long j); + + void d(long j, long j2, long j3, long j4); + + void e(long j, long j2, long j3, long j4); + } + + public t(a aVar) { + this.a = aVar; + if (e0.a >= 18) { + try { + this.n = AudioTrack.class.getMethod("getLatency", null); + } catch (NoSuchMethodException unused) { + } + } + this.f1115b = new long[10]; + } + + public final long a(long j) { + return (j * 1000000) / ((long) this.g); + } + + public final long b() { + AudioTrack audioTrack = this.c; + Objects.requireNonNull(audioTrack); + if (this.f1117x != -9223372036854775807L) { + return Math.min(this.A, this.f1119z + ((((SystemClock.elapsedRealtime() * 1000) - this.f1117x) * ((long) this.g)) / 1000000)); + } + int playState = audioTrack.getPlayState(); + if (playState == 1) { + return 0; + } + long playbackHeadPosition = 4294967295L & ((long) audioTrack.getPlaybackHeadPosition()); + if (this.h) { + if (playState == 2 && playbackHeadPosition == 0) { + this.u = this.f1116s; + } + playbackHeadPosition += this.u; + } + if (e0.a <= 29) { + if (playbackHeadPosition == 0 && this.f1116s > 0 && playState == 3) { + if (this.f1118y == -9223372036854775807L) { + this.f1118y = SystemClock.elapsedRealtime(); + } + return this.f1116s; + } + this.f1118y = -9223372036854775807L; + } + if (this.f1116s > playbackHeadPosition) { + this.t++; + } + this.f1116s = playbackHeadPosition; + return playbackHeadPosition + (this.t << 32); + } + + /* JADX WARNING: Removed duplicated region for block: B:12:? A[RETURN, SYNTHETIC] */ + public boolean c(long j) { + boolean z2; + if (j <= b()) { + if (this.h) { + AudioTrack audioTrack = this.c; + Objects.requireNonNull(audioTrack); + if (audioTrack.getPlayState() == 2 && b() == 0) { + z2 = true; + if (z2) { + return false; + } + } + } + z2 = false; + if (z2) { + } + } + return true; + } + + public void d() { + this.l = 0; + this.w = 0; + this.v = 0; + this.m = 0; + this.C = 0; + this.F = 0; + this.k = false; + this.c = null; + this.f = null; + } + + /* JADX WARNING: Code restructure failed: missing block: B:10:0x0026, code lost: + if ((b.i.a.c.f3.e0.a < 23 && (r5 == 5 || r5 == 6)) != false) goto L_0x002a; + */ + public void e(AudioTrack audioTrack, boolean z2, int i, int i2, int i3) { + this.c = audioTrack; + this.d = i2; + this.e = i3; + this.f = new s(audioTrack); + this.g = audioTrack.getSampleRate(); + boolean z3 = true; + if (z2) { + } + z3 = false; + this.h = z3; + boolean z4 = e0.z(i); + this.q = z4; + this.i = z4 ? a((long) (i3 / i2)) : -9223372036854775807L; + this.f1116s = 0; + this.t = 0; + this.u = 0; + this.p = false; + this.f1117x = -9223372036854775807L; + this.f1118y = -9223372036854775807L; + this.r = 0; + this.o = 0; + this.j = 1.0f; + } +} diff --git a/app/src/main/java/b/i/a/c/t2/u.java b/app/src/main/java/b/i/a/c/t2/u.java new file mode 100644 index 0000000000..ed44bc1b1e --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/u.java @@ -0,0 +1,30 @@ +package b.i.a.c.t2; + +import androidx.annotation.Nullable; +/* compiled from: AuxEffectInfo */ +public final class u { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final float f1120b; + + public u(int i, float f) { + this.a = i; + this.f1120b = f; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || u.class != obj.getClass()) { + return false; + } + u uVar = (u) obj; + return this.a == uVar.a && Float.compare(uVar.f1120b, this.f1120b) == 0; + } + + public int hashCode() { + return Float.floatToIntBits(this.f1120b) + ((527 + this.a) * 31); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/v.java b/app/src/main/java/b/i/a/c/t2/v.java new file mode 100644 index 0000000000..9a06141bab --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/v.java @@ -0,0 +1,104 @@ +package b.i.a.c.t2; + +import androidx.annotation.CallSuper; +import com.google.android.exoplayer2.audio.AudioProcessor; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +/* compiled from: BaseAudioProcessor */ +public abstract class v implements AudioProcessor { + + /* renamed from: b reason: collision with root package name */ + public AudioProcessor.a f1121b; + public AudioProcessor.a c; + public AudioProcessor.a d; + public AudioProcessor.a e; + public ByteBuffer f; + public ByteBuffer g; + public boolean h; + + public v() { + ByteBuffer byteBuffer = AudioProcessor.a; + this.f = byteBuffer; + this.g = byteBuffer; + AudioProcessor.a aVar = AudioProcessor.a.a; + this.d = aVar; + this.e = aVar; + this.f1121b = aVar; + this.c = aVar; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public boolean a() { + return this.e != AudioProcessor.a.a; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + @CallSuper + public boolean b() { + return this.h && this.g == AudioProcessor.a; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public final AudioProcessor.a d(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException { + this.d = aVar; + this.e = f(aVar); + return a() ? this.e : AudioProcessor.a.a; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public final void e() { + this.h = true; + h(); + } + + public abstract AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException; + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public final void flush() { + this.g = AudioProcessor.a; + this.h = false; + this.f1121b = this.d; + this.c = this.e; + g(); + } + + public void g() { + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + @CallSuper + public ByteBuffer getOutput() { + ByteBuffer byteBuffer = this.g; + this.g = AudioProcessor.a; + return byteBuffer; + } + + public void h() { + } + + public void i() { + } + + public final ByteBuffer j(int i) { + if (this.f.capacity() < i) { + this.f = ByteBuffer.allocateDirect(i).order(ByteOrder.nativeOrder()); + } else { + this.f.clear(); + } + ByteBuffer byteBuffer = this.f; + this.g = byteBuffer; + return byteBuffer; + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public final void reset() { + flush(); + this.f = AudioProcessor.a; + AudioProcessor.a aVar = AudioProcessor.a.a; + this.d = aVar; + this.e = aVar; + this.f1121b = aVar; + this.c = aVar; + i(); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/w.java b/app/src/main/java/b/i/a/c/t2/w.java new file mode 100644 index 0000000000..59660b49e6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/w.java @@ -0,0 +1,64 @@ +package b.i.a.c.t2; + +import androidx.annotation.Nullable; +import com.google.android.exoplayer2.audio.AudioProcessor; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: ChannelMappingAudioProcessor */ +public final class w extends v { + @Nullable + public int[] i; + @Nullable + public int[] j; + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void c(ByteBuffer byteBuffer) { + int[] iArr = this.j; + Objects.requireNonNull(iArr); + int position = byteBuffer.position(); + int limit = byteBuffer.limit(); + ByteBuffer j = j(((limit - position) / this.f1121b.e) * this.c.e); + while (position < limit) { + for (int i : iArr) { + j.putShort(byteBuffer.getShort((i * 2) + position)); + } + position += this.f1121b.e; + } + byteBuffer.position(limit); + j.flip(); + } + + @Override // b.i.a.c.t2.v + public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException { + int[] iArr = this.i; + if (iArr == null) { + return AudioProcessor.a.a; + } + if (aVar.d == 2) { + boolean z2 = aVar.c != iArr.length; + int i = 0; + while (i < iArr.length) { + int i2 = iArr[i]; + if (i2 < aVar.c) { + z2 |= i2 != i; + i++; + } else { + throw new AudioProcessor.UnhandledAudioFormatException(aVar); + } + } + return z2 ? new AudioProcessor.a(aVar.f2872b, iArr.length, 2) : AudioProcessor.a.a; + } + throw new AudioProcessor.UnhandledAudioFormatException(aVar); + } + + @Override // b.i.a.c.t2.v + public void g() { + this.j = this.i; + } + + @Override // b.i.a.c.t2.v + public void i() { + this.j = null; + this.i = null; + } +} diff --git a/app/src/main/java/b/i/a/c/t2/x.java b/app/src/main/java/b/i/a/c/t2/x.java new file mode 100644 index 0000000000..92eeb3cf09 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/x.java @@ -0,0 +1,9 @@ +package b.i.a.c.t2; +/* compiled from: DtsUtil */ +public final class x { + public static final int[] a = {1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1122b = {-1, 8000, 16000, 32000, -1, -1, 11025, 22050, 44100, -1, -1, 12000, 24000, 48000, -1, -1}; + public static final int[] c = {64, 112, 128, 192, 224, 256, 384, 448, 512, 640, 768, 896, 1024, 1152, 1280, 1536, 1920, 2048, 2304, 2560, 2688, 2816, 2823, 2944, 3072, 3840, 4096, 6144, 7680}; +} diff --git a/app/src/main/java/b/i/a/c/t2/y.java b/app/src/main/java/b/i/a/c/t2/y.java new file mode 100644 index 0000000000..4f219c5848 --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/y.java @@ -0,0 +1,52 @@ +package b.i.a.c.t2; + +import b.i.a.c.f3.e0; +import com.google.android.exoplayer2.audio.AudioProcessor; +import java.nio.ByteBuffer; +/* compiled from: FloatResamplingAudioProcessor */ +public final class y extends v { + public static final int i = Float.floatToIntBits(Float.NaN); + + public static void k(int i2, ByteBuffer byteBuffer) { + int floatToIntBits = Float.floatToIntBits((float) (((double) i2) * 4.656612875245797E-10d)); + if (floatToIntBits == i) { + floatToIntBits = Float.floatToIntBits(0.0f); + } + byteBuffer.putInt(floatToIntBits); + } + + @Override // com.google.android.exoplayer2.audio.AudioProcessor + public void c(ByteBuffer byteBuffer) { + ByteBuffer byteBuffer2; + int position = byteBuffer.position(); + int limit = byteBuffer.limit(); + int i2 = limit - position; + int i3 = this.f1121b.d; + if (i3 == 536870912) { + byteBuffer2 = j((i2 / 3) * 4); + while (position < limit) { + k(((byteBuffer.get(position) & 255) << 8) | ((byteBuffer.get(position + 1) & 255) << 16) | ((byteBuffer.get(position + 2) & 255) << 24), byteBuffer2); + position += 3; + } + } else if (i3 == 805306368) { + byteBuffer2 = j(i2); + while (position < limit) { + k((byteBuffer.get(position) & 255) | ((byteBuffer.get(position + 1) & 255) << 8) | ((byteBuffer.get(position + 2) & 255) << 16) | ((byteBuffer.get(position + 3) & 255) << 24), byteBuffer2); + position += 4; + } + } else { + throw new IllegalStateException(); + } + byteBuffer.position(byteBuffer.limit()); + byteBuffer2.flip(); + } + + @Override // b.i.a.c.t2.v + public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException { + int i2 = aVar.d; + if (e0.y(i2)) { + return i2 != 4 ? new AudioProcessor.a(aVar.f2872b, aVar.c, 4) : AudioProcessor.a.a; + } + throw new AudioProcessor.UnhandledAudioFormatException(aVar); + } +} diff --git a/app/src/main/java/b/i/a/c/t2/z.java b/app/src/main/java/b/i/a/c/t2/z.java new file mode 100644 index 0000000000..30f3a2bddc --- /dev/null +++ b/app/src/main/java/b/i/a/c/t2/z.java @@ -0,0 +1,547 @@ +package b.i.a.c.t2; + +import android.content.Context; +import android.media.MediaCrypto; +import android.media.MediaFormat; +import android.os.Handler; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f2; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.a.c.f3.s; +import b.i.a.c.h2; +import b.i.a.c.j1; +import b.i.a.c.k1; +import b.i.a.c.t2.r; +import b.i.a.c.v2.e; +import b.i.a.c.v2.g; +import b.i.a.c.x1; +import b.i.a.c.y2.t; +import b.i.a.c.y2.u; +import b.i.a.c.y2.v; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.audio.AudioSink; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import com.google.android.exoplayer2.drm.DrmSession; +import com.google.android.exoplayer2.mediacodec.MediaCodecRenderer; +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.regex.Pattern; +/* compiled from: MediaCodecAudioRenderer */ +public class z extends MediaCodecRenderer implements s { + public final Context N0; + public final r.a O0; + public final AudioSink P0; + public int Q0; + public boolean R0; + @Nullable + public j1 S0; + public long T0; + public boolean U0; + public boolean V0; + public boolean W0; + @Nullable + public f2.a X0; + + /* compiled from: MediaCodecAudioRenderer */ + public final class b implements AudioSink.a { + public b(a aVar) { + } + + public void a(Exception exc) { + q.b("MediaCodecAudioRenderer", "Audio sink error", exc); + r.a aVar = z.this.O0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new d(aVar, exc)); + } + } + } + + public z(Context context, t.b bVar, v vVar, boolean z2, @Nullable Handler handler, @Nullable r rVar, AudioSink audioSink) { + super(1, bVar, vVar, z2, 44100.0f); + this.N0 = context.getApplicationContext(); + this.P0 = audioSink; + this.O0 = new r.a(handler, rVar); + audioSink.t(new b(null)); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer, b.i.a.c.v0 + public void B() { + this.W0 = true; + try { + this.P0.flush(); + try { + super.B(); + } finally { + this.O0.a(this.J0); + } + } catch (Throwable th) { + super.B(); + throw th; + } finally { + this.O0.a(this.J0); + } + } + + @Override // b.i.a.c.v0 + public void C(boolean z2, boolean z3) throws ExoPlaybackException { + e eVar = new e(); + this.J0 = eVar; + r.a aVar = this.O0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new j(aVar, eVar)); + } + h2 h2Var = this.l; + Objects.requireNonNull(h2Var); + if (h2Var.f1001b) { + this.P0.r(); + } else { + this.P0.n(); + } + } + + public final int C0(u uVar, j1 j1Var) { + int i; + if (!"OMX.google.raw.decoder".equals(uVar.a) || (i = e0.a) >= 24 || (i == 23 && e0.A(this.N0))) { + return j1Var.f1004x; + } + return -1; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer, b.i.a.c.v0 + public void D(long j, boolean z2) throws ExoPlaybackException { + super.D(j, z2); + this.P0.flush(); + this.T0 = j; + this.U0 = true; + this.V0 = true; + } + + public final void D0() { + long m = this.P0.m(b()); + if (m != Long.MIN_VALUE) { + if (!this.V0) { + m = Math.max(this.T0, m); + } + this.T0 = m; + this.V0 = false; + } + } + + @Override // b.i.a.c.v0 + public void E() { + DrmSession drmSession = null; + boolean z2 = false; + try { + M(); + o0(); + try { + } finally { + if (this.W0) { + this.W0 = z2; + this.P0.reset(); + } + } + } finally { + u0(drmSession); + } + } + + @Override // b.i.a.c.v0 + public void F() { + this.P0.e(); + } + + @Override // b.i.a.c.v0 + public void G() { + D0(); + this.P0.d(); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public g K(u uVar, j1 j1Var, j1 j1Var2) { + g c = uVar.c(j1Var, j1Var2); + int i = c.e; + if (C0(uVar, j1Var2) > this.Q0) { + i |= 64; + } + return new g(uVar.a, j1Var, j1Var2, i != 0 ? 0 : c.d, i); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public float V(float f, j1 j1Var, j1[] j1VarArr) { + int i = -1; + for (j1 j1Var2 : j1VarArr) { + int i2 = j1Var2.K; + if (i2 != -1) { + i = Math.max(i, i2); + } + } + if (i == -1) { + return -1.0f; + } + return f * ((float) i); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public List W(v vVar, j1 j1Var, boolean z2) throws MediaCodecUtil.DecoderQueryException { + u d; + String str = j1Var.w; + if (str == null) { + return Collections.emptyList(); + } + if (this.P0.a(j1Var) && (d = MediaCodecUtil.d("audio/raw", false, false)) != null) { + return Collections.singletonList(d); + } + List a2 = vVar.a(str, z2, false); + Pattern pattern = MediaCodecUtil.a; + ArrayList arrayList = new ArrayList(a2); + MediaCodecUtil.j(arrayList, new b.i.a.c.y2.g(j1Var)); + if ("audio/eac3-joc".equals(str)) { + ArrayList arrayList2 = new ArrayList(arrayList); + arrayList2.addAll(vVar.a("audio/eac3", z2, false)); + arrayList = arrayList2; + } + return Collections.unmodifiableList(arrayList); + } + + /* JADX WARNING: Removed duplicated region for block: B:24:0x0092 */ + /* JADX WARNING: Removed duplicated region for block: B:34:0x00b6 */ + /* JADX WARNING: Removed duplicated region for block: B:42:0x00d2 */ + /* JADX WARNING: Removed duplicated region for block: B:51:0x0109 */ + /* JADX WARNING: Removed duplicated region for block: B:52:0x010b */ + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public t.a Y(u uVar, j1 j1Var, @Nullable MediaCrypto mediaCrypto, float f) { + boolean z2; + MediaFormat mediaFormat; + boolean z3; + j1[] j1VarArr = this.p; + Objects.requireNonNull(j1VarArr); + int C0 = C0(uVar, j1Var); + boolean z4 = false; + if (j1VarArr.length != 1) { + for (j1 j1Var2 : j1VarArr) { + if (uVar.c(j1Var, j1Var2).d != 0) { + C0 = Math.max(C0, C0(uVar, j1Var2)); + } + } + } + this.Q0 = C0; + String str = uVar.a; + int i = e0.a; + if (i < 24 && "OMX.SEC.aac.dec".equals(str) && "samsung".equals(e0.c)) { + String str2 = e0.f954b; + if (str2.startsWith("zeroflte") || str2.startsWith("herolte") || str2.startsWith("heroqlte")) { + z2 = true; + this.R0 = z2; + String str3 = uVar.c; + int i2 = this.Q0; + mediaFormat = new MediaFormat(); + mediaFormat.setString("mime", str3); + mediaFormat.setInteger("channel-count", j1Var.J); + mediaFormat.setInteger("sample-rate", j1Var.K); + d.W1(mediaFormat, j1Var.f1005y); + d.h1(mediaFormat, "max-input-size", i2); + if (i >= 23) { + mediaFormat.setInteger("priority", 0); + if (f != -1.0f) { + if (i == 23) { + String str4 = e0.d; + if ("ZTE B2017G".equals(str4) || "AXON 7 mini".equals(str4)) { + z3 = true; + if (!z3) { + mediaFormat.setFloat("operating-rate", f); + } + } + } + z3 = false; + if (!z3) { + } + } + } + if (i <= 28 && "audio/ac4".equals(j1Var.w)) { + mediaFormat.setInteger("ac4-is-sync", 1); + } + if (i >= 24) { + AudioSink audioSink = this.P0; + int i3 = j1Var.J; + int i4 = j1Var.K; + j1.b bVar = new j1.b(); + bVar.k = "audio/raw"; + bVar.f1009x = i3; + bVar.f1010y = i4; + bVar.f1011z = 4; + if (audioSink.u(bVar.a()) == 2) { + mediaFormat.setInteger("pcm-encoding", 4); + } + } + if ("audio/raw".equals(uVar.f1301b) && !"audio/raw".equals(j1Var.w)) { + z4 = true; + } + this.S0 = !z4 ? j1Var : null; + return new t.a(uVar, mediaFormat, j1Var, null, mediaCrypto, 0, false); + } + } + z2 = false; + this.R0 = z2; + String str3 = uVar.c; + int i2 = this.Q0; + mediaFormat = new MediaFormat(); + mediaFormat.setString("mime", str3); + mediaFormat.setInteger("channel-count", j1Var.J); + mediaFormat.setInteger("sample-rate", j1Var.K); + d.W1(mediaFormat, j1Var.f1005y); + d.h1(mediaFormat, "max-input-size", i2); + if (i >= 23) { + } + mediaFormat.setInteger("ac4-is-sync", 1); + if (i >= 24) { + } + z4 = true; + this.S0 = !z4 ? j1Var : null; + return new t.a(uVar, mediaFormat, j1Var, null, mediaCrypto, 0, false); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer, b.i.a.c.f2 + public boolean b() { + return this.F0 && this.P0.b(); + } + + @Override // b.i.a.c.f3.s + public x1 c() { + return this.P0.c(); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer, b.i.a.c.f2 + public boolean d() { + return this.P0.k() || super.d(); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void d0(Exception exc) { + q.b("MediaCodecAudioRenderer", "Audio codec error", exc); + r.a aVar = this.O0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new c(aVar, exc)); + } + } + + @Override // b.i.a.c.f3.s + public long e() { + if (this.n == 2) { + D0(); + } + return this.T0; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void e0(String str, long j, long j2) { + r.a aVar = this.O0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new f(aVar, str, j, j2)); + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void f0(String str) { + r.a aVar = this.O0; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new g(aVar, str)); + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + @Nullable + public g g0(k1 k1Var) throws ExoPlaybackException { + g g02 = super.g0(k1Var); + r.a aVar = this.O0; + j1 j1Var = k1Var.f1013b; + Handler handler = aVar.a; + if (handler != null) { + handler.post(new e(aVar, j1Var, g02)); + } + return g02; + } + + @Override // b.i.a.c.f2, b.i.a.c.g2 + public String getName() { + return "MediaCodecAudioRenderer"; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void h0(j1 j1Var, @Nullable MediaFormat mediaFormat) throws ExoPlaybackException { + int i; + j1 j1Var2 = this.S0; + int[] iArr = null; + if (j1Var2 != null) { + j1Var = j1Var2; + } else if (this.S != null) { + int r = "audio/raw".equals(j1Var.w) ? j1Var.L : (e0.a < 24 || !mediaFormat.containsKey("pcm-encoding")) ? mediaFormat.containsKey("v-bits-per-sample") ? e0.r(mediaFormat.getInteger("v-bits-per-sample")) : "audio/raw".equals(j1Var.w) ? j1Var.L : 2 : mediaFormat.getInteger("pcm-encoding"); + j1.b bVar = new j1.b(); + bVar.k = "audio/raw"; + bVar.f1011z = r; + bVar.A = j1Var.M; + bVar.B = j1Var.N; + bVar.f1009x = mediaFormat.getInteger("channel-count"); + bVar.f1010y = mediaFormat.getInteger("sample-rate"); + j1 a2 = bVar.a(); + if (this.R0 && a2.J == 6 && (i = j1Var.J) < 6) { + iArr = new int[i]; + for (int i2 = 0; i2 < j1Var.J; i2++) { + iArr[i2] = i2; + } + } + j1Var = a2; + } + try { + this.P0.v(j1Var, 0, iArr); + } catch (AudioSink.ConfigurationException e) { + throw z(e, e.format, false, 5001); + } + } + + @Override // b.i.a.c.f3.s + public void i(x1 x1Var) { + this.P0.i(x1Var); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void j0() { + this.P0.p(); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void k0(DecoderInputBuffer decoderInputBuffer) { + if (this.U0 && !decoderInputBuffer.m()) { + if (Math.abs(decoderInputBuffer.n - this.T0) > 500000) { + this.T0 = decoderInputBuffer.n; + } + this.U0 = false; + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public boolean m0(long j, long j2, @Nullable t tVar, @Nullable ByteBuffer byteBuffer, int i, int i2, int i3, long j3, boolean z2, boolean z3, j1 j1Var) throws ExoPlaybackException { + Objects.requireNonNull(byteBuffer); + if (this.S0 != null && (i2 & 2) != 0) { + Objects.requireNonNull(tVar); + tVar.releaseOutputBuffer(i, false); + return true; + } else if (z2) { + if (tVar != null) { + tVar.releaseOutputBuffer(i, false); + } + this.J0.f += i3; + this.P0.p(); + return true; + } else { + try { + if (!this.P0.s(byteBuffer, j3, i3)) { + return false; + } + if (tVar != null) { + tVar.releaseOutputBuffer(i, false); + } + this.J0.e += i3; + return true; + } catch (AudioSink.InitializationException e) { + throw z(e, e.format, e.isRecoverable, 5001); + } catch (AudioSink.WriteException e2) { + throw z(e2, j1Var, e2.isRecoverable, 5002); + } + } + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public void p0() throws ExoPlaybackException { + try { + this.P0.j(); + } catch (AudioSink.WriteException e) { + throw z(e, e.format, e.isRecoverable, 5002); + } + } + + @Override // b.i.a.c.v0, b.i.a.c.b2.b + public void r(int i, @Nullable Object obj) throws ExoPlaybackException { + if (i == 2) { + this.P0.q(((Float) obj).floatValue()); + } else if (i == 3) { + this.P0.o((o) obj); + } else if (i != 6) { + switch (i) { + case 9: + this.P0.w(((Boolean) obj).booleanValue()); + return; + case 10: + this.P0.l(((Integer) obj).intValue()); + return; + case 11: + this.X0 = (f2.a) obj; + return; + default: + return; + } + } else { + this.P0.x((u) obj); + } + } + + @Override // b.i.a.c.v0, b.i.a.c.f2 + @Nullable + public s w() { + return this; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public boolean x0(j1 j1Var) { + return this.P0.a(j1Var); + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecRenderer + public int y0(v vVar, j1 j1Var) throws MediaCodecUtil.DecoderQueryException { + if (!b.i.a.c.f3.t.h(j1Var.w)) { + return 0; + } + int i = e0.a >= 21 ? 32 : 0; + int i2 = j1Var.P; + boolean z2 = i2 != 0; + boolean z3 = i2 == 0 || i2 == 2; + if (z3 && this.P0.a(j1Var) && (!z2 || MediaCodecUtil.d("audio/raw", false, false) != null)) { + return i | 12; + } + if ("audio/raw".equals(j1Var.w) && !this.P0.a(j1Var)) { + return 1; + } + AudioSink audioSink = this.P0; + int i3 = j1Var.J; + int i4 = j1Var.K; + j1.b bVar = new j1.b(); + bVar.k = "audio/raw"; + bVar.f1009x = i3; + bVar.f1010y = i4; + bVar.f1011z = 2; + if (!audioSink.a(bVar.a())) { + return 1; + } + List W = W(vVar, j1Var, false); + if (W.isEmpty()) { + return 1; + } + if (!z3) { + return 2; + } + u uVar = W.get(0); + boolean e = uVar.e(j1Var); + return ((!e || !uVar.f(j1Var)) ? 8 : 16) | (e ? 4 : 3) | i; + } +} diff --git a/app/src/main/java/b/i/a/c/u.java b/app/src/main/java/b/i/a/c/u.java new file mode 100644 index 0000000000..47be1ecc80 --- /dev/null +++ b/app/src/main/java/b/i/a/c/u.java @@ -0,0 +1,18 @@ +package b.i.a.c; + +import b.i.a.c.f3.n; +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class u implements p.b { + public final /* synthetic */ y1 a; + + public /* synthetic */ u(y1 y1Var) { + this.a = y1Var; + } + + @Override // b.i.a.c.f3.p.b + public final void a(Object obj, n nVar) { + ((y1.c) obj).E(this.a, new y1.d(nVar)); + } +} diff --git a/app/src/main/java/b/i/a/c/u0.java b/app/src/main/java/b/i/a/c/u0.java new file mode 100644 index 0000000000..068fb50e8f --- /dev/null +++ b/app/src/main/java/b/i/a/c/u0.java @@ -0,0 +1,133 @@ +package b.i.a.c; + +import b.i.a.c.o2; +/* compiled from: BasePlayer */ +public abstract class u0 implements y1 { + public final o2.c a = new o2.c(); + + @Override // b.i.a.c.y1 + public final boolean D(int i) { + return i().k.a.get(i); + } + + @Override // b.i.a.c.y1 + public final void O() { + if (!K().q() && !f()) { + if (W()) { + int b2 = b(); + if (b2 != -1) { + h(b2, -9223372036854775807L); + } + } else if (Z() && Y()) { + h(C(), -9223372036854775807L); + } + } + } + + @Override // b.i.a.c.y1 + public final void P() { + c0(v()); + } + + @Override // b.i.a.c.y1 + public final void R() { + c0(-U()); + } + + public final int V() { + o2 K = K(); + if (K.q()) { + return -1; + } + int C = C(); + int I = I(); + if (I == 1) { + I = 0; + } + return K.l(C, I, M()); + } + + public final boolean W() { + return b() != -1; + } + + public final boolean X() { + return V() != -1; + } + + public final boolean Y() { + o2 K = K(); + return !K.q() && K.n(C(), this.a).v; + } + + public final boolean Z() { + o2 K = K(); + return !K.q() && K.n(C(), this.a).c(); + } + + public final boolean a0() { + o2 K = K(); + return !K.q() && K.n(C(), this.a).u; + } + + public final int b() { + o2 K = K(); + if (K.q()) { + return -1; + } + int C = C(); + int I = I(); + if (I == 1) { + I = 0; + } + return K.e(C, I, M()); + } + + public final void b0(long j) { + h(C(), j); + } + + public final void c0(long j) { + long T = T() + j; + long J = J(); + if (J != -9223372036854775807L) { + T = Math.min(T, J); + } + b0(Math.max(T, 0L)); + } + + @Override // b.i.a.c.y1 + public final void d() { + u(false); + } + + @Override // b.i.a.c.y1 + public final void e() { + u(true); + } + + @Override // b.i.a.c.y1 + public final void s() { + int V; + if (!K().q() && !f()) { + boolean X = X(); + if (!Z() || a0()) { + if (!X || T() > l()) { + b0(0); + return; + } + int V2 = V(); + if (V2 != -1) { + h(V2, -9223372036854775807L); + } + } else if (X && (V = V()) != -1) { + h(V, -9223372036854775807L); + } + } + } + + @Override // b.i.a.c.y1 + public final boolean z() { + return y() == 3 && j() && G() == 0; + } +} diff --git a/app/src/main/java/b/i/a/c/u1.java b/app/src/main/java/b/i/a/c/u1.java new file mode 100644 index 0000000000..6d7f6c610b --- /dev/null +++ b/app/src/main/java/b/i/a/c/u1.java @@ -0,0 +1,349 @@ +package b.i.a.c; + +import android.os.Handler; +import android.util.Pair; +import androidx.annotation.Nullable; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.b0; +import b.i.a.c.a3.k0; +import b.i.a.c.a3.t; +import b.i.a.c.a3.u; +import b.i.a.c.a3.v; +import b.i.a.c.a3.w; +import b.i.a.c.a3.x; +import b.i.a.c.e3.a0; +import b.i.a.c.f3.e0; +import b.i.a.c.s2.g1; +import b.i.a.c.w2.s; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.IdentityHashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Random; +import java.util.Set; +/* compiled from: MediaSourceList */ +public final class u1 { + public final List a = new ArrayList(); + + /* renamed from: b reason: collision with root package name */ + public final IdentityHashMap f1123b = new IdentityHashMap<>(); + public final Map c = new HashMap(); + public final d d; + public final b0.a e; + public final s.a f; + public final HashMap g; + public final Set h; + public k0 i = new k0.a(0, new Random()); + public boolean j; + @Nullable + public a0 k; + + /* compiled from: MediaSourceList */ + public final class a implements b0, s { + public final c j; + public b0.a k; + public s.a l; + + public a(c cVar) { + this.k = u1.this.e; + this.l = u1.this.f; + this.j = cVar; + } + + @Override // b.i.a.c.w2.s + public void J(int i, @Nullable a0.a aVar) { + if (a(i, aVar)) { + this.l.b(); + } + } + + @Override // b.i.a.c.w2.s + public void S(int i, @Nullable a0.a aVar) { + if (a(i, aVar)) { + this.l.a(); + } + } + + @Override // b.i.a.c.a3.b0 + public void X(int i, @Nullable a0.a aVar, t tVar, w wVar) { + if (a(i, aVar)) { + this.k.d(tVar, wVar); + } + } + + public final boolean a(int i, @Nullable a0.a aVar) { + a0.a aVar2 = null; + if (aVar != null) { + c cVar = this.j; + int i2 = 0; + while (true) { + if (i2 >= cVar.c.size()) { + break; + } else if (cVar.c.get(i2).d == aVar.d) { + aVar2 = aVar.b(Pair.create(cVar.f1125b, aVar.a)); + break; + } else { + i2++; + } + } + if (aVar2 == null) { + return false; + } + } + int i3 = i + this.j.d; + b0.a aVar3 = this.k; + if (aVar3.a != i3 || !e0.a(aVar3.f793b, aVar2)) { + this.k = u1.this.e.g(i3, aVar2, 0); + } + s.a aVar4 = this.l; + if (aVar4.a == i3 && e0.a(aVar4.f1142b, aVar2)) { + return true; + } + this.l = u1.this.f.g(i3, aVar2); + return true; + } + + @Override // b.i.a.c.w2.s + public void c0(int i, @Nullable a0.a aVar, int i2) { + if (a(i, aVar)) { + this.l.d(i2); + } + } + + @Override // b.i.a.c.w2.s + public void d0(int i, @Nullable a0.a aVar) { + if (a(i, aVar)) { + this.l.f(); + } + } + + @Override // b.i.a.c.a3.b0 + public void g0(int i, @Nullable a0.a aVar, t tVar, w wVar, IOException iOException, boolean z2) { + if (a(i, aVar)) { + this.k.e(tVar, wVar, iOException, z2); + } + } + + @Override // b.i.a.c.w2.s + public void i0(int i, @Nullable a0.a aVar) { + if (a(i, aVar)) { + this.l.c(); + } + } + + @Override // b.i.a.c.a3.b0 + public void o(int i, @Nullable a0.a aVar, w wVar) { + if (a(i, aVar)) { + this.k.b(wVar); + } + } + + @Override // b.i.a.c.a3.b0 + public void q(int i, @Nullable a0.a aVar, t tVar, w wVar) { + if (a(i, aVar)) { + this.k.c(tVar, wVar); + } + } + + @Override // b.i.a.c.w2.s + public void u(int i, @Nullable a0.a aVar, Exception exc) { + if (a(i, aVar)) { + this.l.e(exc); + } + } + + @Override // b.i.a.c.a3.b0 + public void x(int i, @Nullable a0.a aVar, t tVar, w wVar) { + if (a(i, aVar)) { + this.k.f(tVar, wVar); + } + } + } + + /* compiled from: MediaSourceList */ + public static final class b { + public final b.i.a.c.a3.a0 a; + + /* renamed from: b reason: collision with root package name */ + public final a0.b f1124b; + public final a c; + + public b(b.i.a.c.a3.a0 a0Var, a0.b bVar, a aVar) { + this.a = a0Var; + this.f1124b = bVar; + this.c = aVar; + } + } + + /* compiled from: MediaSourceList */ + public static final class c implements t1 { + public final v a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1125b = new Object(); + public final List c = new ArrayList(); + public int d; + public boolean e; + + public c(b.i.a.c.a3.a0 a0Var, boolean z2) { + this.a = new v(a0Var, z2); + } + + @Override // b.i.a.c.t1 + public o2 a() { + return this.a.n; + } + + @Override // b.i.a.c.t1 + public Object getUid() { + return this.f1125b; + } + } + + /* compiled from: MediaSourceList */ + public interface d { + } + + public u1(d dVar, @Nullable g1 g1Var, Handler handler) { + this.d = dVar; + b0.a aVar = new b0.a(); + this.e = aVar; + s.a aVar2 = new s.a(); + this.f = aVar2; + this.g = new HashMap<>(); + this.h = new HashSet(); + if (g1Var != null) { + aVar.c.add(new b0.a.C0083a(handler, g1Var)); + aVar2.c.add(new s.a.C0092a(handler, g1Var)); + } + } + + public o2 a(int i, List list, k0 k0Var) { + if (!list.isEmpty()) { + this.i = k0Var; + for (int i2 = i; i2 < list.size() + i; i2++) { + c cVar = list.get(i2 - i); + if (i2 > 0) { + c cVar2 = this.a.get(i2 - 1); + v.a aVar = cVar2.a.n; + cVar.d = aVar.p() + cVar2.d; + cVar.e = false; + cVar.c.clear(); + } else { + cVar.d = 0; + cVar.e = false; + cVar.c.clear(); + } + b(i2, cVar.a.n.p()); + this.a.add(i2, cVar); + this.c.put(cVar.f1125b, cVar); + if (this.j) { + g(cVar); + if (this.f1123b.isEmpty()) { + this.h.add(cVar); + } else { + b bVar = this.g.get(cVar); + if (bVar != null) { + bVar.a.d(bVar.f1124b); + } + } + } + } + } + return c(); + } + + public final void b(int i, int i2) { + while (i < this.a.size()) { + this.a.get(i).d += i2; + i++; + } + } + + public o2 c() { + if (this.a.isEmpty()) { + return o2.j; + } + int i = 0; + for (int i2 = 0; i2 < this.a.size(); i2++) { + c cVar = this.a.get(i2); + cVar.d = i; + i += cVar.a.n.p(); + } + return new c2(this.a, this.i); + } + + public final void d() { + Iterator it = this.h.iterator(); + while (it.hasNext()) { + c next = it.next(); + if (next.c.isEmpty()) { + b bVar = this.g.get(next); + if (bVar != null) { + bVar.a.d(bVar.f1124b); + } + it.remove(); + } + } + } + + public int e() { + return this.a.size(); + } + + public final void f(c cVar) { + if (cVar.e && cVar.c.isEmpty()) { + b remove = this.g.remove(cVar); + Objects.requireNonNull(remove); + remove.a.a(remove.f1124b); + remove.a.c(remove.c); + remove.a.g(remove.c); + this.h.remove(cVar); + } + } + + public final void g(c cVar) { + v vVar = cVar.a; + n0 n0Var = new n0(this); + a aVar = new a(cVar); + this.g.put(cVar, new b(vVar, n0Var, aVar)); + Handler handler = new Handler(e0.o(), null); + Objects.requireNonNull(vVar); + b0.a aVar2 = vVar.c; + Objects.requireNonNull(aVar2); + aVar2.c.add(new b0.a.C0083a(handler, aVar)); + Handler handler2 = new Handler(e0.o(), null); + s.a aVar3 = vVar.d; + Objects.requireNonNull(aVar3); + aVar3.c.add(new s.a.C0092a(handler2, aVar)); + vVar.l(n0Var, this.k); + } + + public void h(x xVar) { + c remove = this.f1123b.remove(xVar); + Objects.requireNonNull(remove); + remove.a.j(xVar); + remove.c.remove(((u) xVar).j); + if (!this.f1123b.isEmpty()) { + d(); + } + f(remove); + } + + public final void i(int i, int i2) { + for (int i3 = i2 - 1; i3 >= i; i3--) { + c remove = this.a.remove(i3); + this.c.remove(remove.f1125b); + b(i3, -remove.a.n.p()); + remove.e = true; + if (this.j) { + f(remove); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/u2/a.java b/app/src/main/java/b/i/a/c/u2/a.java new file mode 100644 index 0000000000..5ce1b2855b --- /dev/null +++ b/app/src/main/java/b/i/a/c/u2/a.java @@ -0,0 +1,9 @@ +package b.i.a.c.u2; + +import android.database.sqlite.SQLiteDatabase; +/* compiled from: DatabaseProvider */ +public interface a { + SQLiteDatabase getReadableDatabase(); + + SQLiteDatabase getWritableDatabase(); +} diff --git a/app/src/main/java/b/i/a/c/u2/b.java b/app/src/main/java/b/i/a/c/u2/b.java new file mode 100644 index 0000000000..660747b6d5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/u2/b.java @@ -0,0 +1,10 @@ +package b.i.a.c.u2; + +import android.content.Context; +/* compiled from: ExoDatabaseProvider */ +@Deprecated +public final class b extends c { + public b(Context context) { + super(context); + } +} diff --git a/app/src/main/java/b/i/a/c/u2/c.java b/app/src/main/java/b/i/a/c/u2/c.java new file mode 100644 index 0000000000..fd57564e6d --- /dev/null +++ b/app/src/main/java/b/i/a/c/u2/c.java @@ -0,0 +1,53 @@ +package b.i.a.c.u2; + +import android.content.Context; +import android.database.Cursor; +import android.database.SQLException; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteOpenHelper; +import b.i.a.c.f3.q; +import com.discord.models.domain.ModelAuditLogEntry; +/* compiled from: StandaloneDatabaseProvider */ +public class c extends SQLiteOpenHelper implements a { + public c(Context context) { + super(context.getApplicationContext(), "exoplayer_internal.db", (SQLiteDatabase.CursorFactory) null, 1); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public void onCreate(SQLiteDatabase sQLiteDatabase) { + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + Cursor query = sQLiteDatabase.query("sqlite_master", new String[]{"type", ModelAuditLogEntry.CHANGE_KEY_NAME}, null, null, null, null, null); + while (query.moveToNext()) { + try { + String string = query.getString(0); + String string2 = query.getString(1); + if (!"sqlite_sequence".equals(string2)) { + StringBuilder sb = new StringBuilder(String.valueOf(string).length() + 16 + String.valueOf(string2).length()); + sb.append("DROP "); + sb.append(string); + sb.append(" IF EXISTS "); + sb.append(string2); + String sb2 = sb.toString(); + try { + sQLiteDatabase.execSQL(sb2); + } catch (SQLException e) { + String valueOf = String.valueOf(sb2); + q.b("SADatabaseProvider", valueOf.length() != 0 ? "Error executing ".concat(valueOf) : new String("Error executing "), e); + } + } + } catch (Throwable th) { + th.addSuppressed(th); + } + } + query.close(); + return; + throw th; + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + } +} diff --git a/app/src/main/java/b/i/a/c/u2/d.java b/app/src/main/java/b/i/a/c/u2/d.java new file mode 100644 index 0000000000..e50e64b713 --- /dev/null +++ b/app/src/main/java/b/i/a/c/u2/d.java @@ -0,0 +1,54 @@ +package b.i.a.c.u2; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.database.sqlite.SQLiteDatabase; +import b.i.a.c.f3.e0; +import b.i.a.c.i1; +import com.google.android.exoplayer2.database.DatabaseIOException; +/* compiled from: VersionTable */ +public final class d { + public static final /* synthetic */ int a = 0; + + static { + i1.a("goog.exo.database"); + } + + public static int a(SQLiteDatabase sQLiteDatabase, int i, String str) throws DatabaseIOException { + try { + if (!e0.J(sQLiteDatabase, "ExoPlayerVersions")) { + return -1; + } + Cursor query = sQLiteDatabase.query("ExoPlayerVersions", new String[]{"version"}, "feature = ? AND instance_uid = ?", new String[]{Integer.toString(i), str}, null, null, null); + try { + if (query.getCount() == 0) { + query.close(); + return -1; + } + query.moveToNext(); + int i2 = query.getInt(0); + query.close(); + return i2; + } catch (Throwable th) { + th.addSuppressed(th); + } + throw th; + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } + + public static void b(SQLiteDatabase sQLiteDatabase, int i, String str, int i2) throws DatabaseIOException { + try { + sQLiteDatabase.execSQL("CREATE TABLE IF NOT EXISTS ExoPlayerVersions (feature INTEGER NOT NULL,instance_uid TEXT NOT NULL,version INTEGER NOT NULL,PRIMARY KEY (feature, instance_uid))"); + ContentValues contentValues = new ContentValues(); + contentValues.put("feature", Integer.valueOf(i)); + contentValues.put("instance_uid", str); + contentValues.put("version", Integer.valueOf(i2)); + sQLiteDatabase.replaceOrThrow("ExoPlayerVersions", null, contentValues); + } catch (SQLException e) { + throw new DatabaseIOException(e); + } + } +} diff --git a/app/src/main/java/b/i/a/c/v.java b/app/src/main/java/b/i/a/c/v.java new file mode 100644 index 0000000000..2de799f24b --- /dev/null +++ b/app/src/main/java/b/i/a/c/v.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class v implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ v(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).j0(f1.k0(this.a)); + } +} diff --git a/app/src/main/java/b/i/a/c/v0.java b/app/src/main/java/b/i/a/c/v0.java new file mode 100644 index 0000000000..b445e8e0fd --- /dev/null +++ b/app/src/main/java/b/i/a/c/v0.java @@ -0,0 +1,247 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import b.i.a.c.a3.i0; +import b.i.a.c.f3.s; +import b.i.a.c.j1; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import java.io.IOException; +import java.util.Objects; +/* compiled from: BaseRenderer */ +public abstract class v0 implements f2, g2 { + public final int j; + public final k1 k = new k1(); + @Nullable + public h2 l; + public int m; + public int n; + @Nullable + public i0 o; + @Nullable + public j1[] p; + public long q; + public long r = Long.MIN_VALUE; + + /* renamed from: s reason: collision with root package name */ + public boolean f1126s; + public boolean t; + + public v0(int i) { + this.j = i; + } + + public final k1 A() { + this.k.a(); + return this.k; + } + + public abstract void B(); + + public void C(boolean z2, boolean z3) throws ExoPlaybackException { + } + + public abstract void D(long j, boolean z2) throws ExoPlaybackException; + + public void E() { + } + + public void F() throws ExoPlaybackException { + } + + public void G() { + } + + public abstract void H(j1[] j1VarArr, long j, long j2) throws ExoPlaybackException; + + public final int I(k1 k1Var, DecoderInputBuffer decoderInputBuffer, int i) { + i0 i0Var = this.o; + Objects.requireNonNull(i0Var); + int a = i0Var.a(k1Var, decoderInputBuffer, i); + if (a == -4) { + if (decoderInputBuffer.n()) { + this.r = Long.MIN_VALUE; + return this.f1126s ? -4 : -3; + } + long j = decoderInputBuffer.n + this.q; + decoderInputBuffer.n = j; + this.r = Math.max(this.r, j); + } else if (a == -5) { + j1 j1Var = k1Var.f1013b; + Objects.requireNonNull(j1Var); + if (j1Var.A != RecyclerView.FOREVER_NS) { + j1.b a2 = j1Var.a(); + a2.o = j1Var.A + this.q; + k1Var.f1013b = a2.a(); + } + } + return a; + } + + @Override // b.i.a.c.f2 + public final void f(int i) { + this.m = i; + } + + @Override // b.i.a.c.f2 + public final void g() { + boolean z2 = true; + if (this.n != 1) { + z2 = false; + } + d.D(z2); + this.k.a(); + this.n = 0; + this.o = null; + this.p = null; + this.f1126s = false; + B(); + } + + @Override // b.i.a.c.f2 + public final int getState() { + return this.n; + } + + @Override // b.i.a.c.f2 + @Nullable + public final i0 h() { + return this.o; + } + + @Override // b.i.a.c.f2 + public final boolean j() { + return this.r == Long.MIN_VALUE; + } + + @Override // b.i.a.c.f2 + public final void k(j1[] j1VarArr, i0 i0Var, long j, long j2) throws ExoPlaybackException { + d.D(!this.f1126s); + this.o = i0Var; + if (this.r == Long.MIN_VALUE) { + this.r = j; + } + this.p = j1VarArr; + this.q = j2; + H(j1VarArr, j, j2); + } + + @Override // b.i.a.c.f2 + public final void l() { + this.f1126s = true; + } + + @Override // b.i.a.c.f2 + public final g2 m() { + return this; + } + + @Override // b.i.a.c.f2 + public /* synthetic */ void n(float f, float f2) { + e2.a(this, f, f2); + } + + @Override // b.i.a.c.f2 + public final void o(h2 h2Var, j1[] j1VarArr, i0 i0Var, long j, boolean z2, boolean z3, long j2, long j3) throws ExoPlaybackException { + d.D(this.n == 0); + this.l = h2Var; + this.n = 1; + C(z2, z3); + k(j1VarArr, i0Var, j2, j3); + D(j, z2); + } + + @Override // b.i.a.c.g2 + public int p() throws ExoPlaybackException { + return 0; + } + + @Override // b.i.a.c.b2.b + public void r(int i, @Nullable Object obj) throws ExoPlaybackException { + } + + @Override // b.i.a.c.f2 + public final void reset() { + d.D(this.n == 0); + this.k.a(); + E(); + } + + @Override // b.i.a.c.f2 + public final void s() throws IOException { + i0 i0Var = this.o; + Objects.requireNonNull(i0Var); + i0Var.b(); + } + + @Override // b.i.a.c.f2 + public final void start() throws ExoPlaybackException { + boolean z2 = true; + if (this.n != 1) { + z2 = false; + } + d.D(z2); + this.n = 2; + F(); + } + + @Override // b.i.a.c.f2 + public final void stop() { + d.D(this.n == 2); + this.n = 1; + G(); + } + + @Override // b.i.a.c.f2 + public final long t() { + return this.r; + } + + @Override // b.i.a.c.f2 + public final void u(long j) throws ExoPlaybackException { + this.f1126s = false; + this.r = j; + D(j, false); + } + + @Override // b.i.a.c.f2 + public final boolean v() { + return this.f1126s; + } + + @Override // b.i.a.c.f2 + @Nullable + public s w() { + return null; + } + + @Override // b.i.a.c.f2 + public final int x() { + return this.j; + } + + public final ExoPlaybackException y(Throwable th, @Nullable j1 j1Var, int i) { + return z(th, j1Var, false, i); + } + + /* JADX WARNING: Removed duplicated region for block: B:16:0x0028 */ + /* JADX WARNING: Removed duplicated region for block: B:17:0x002a */ + public final ExoPlaybackException z(Throwable th, @Nullable j1 j1Var, boolean z2, int i) { + int i2; + if (j1Var != null && !this.t) { + this.t = true; + boolean z3 = false; + try { + i2 = a(j1Var) & 7; + } catch (ExoPlaybackException unused) { + } finally { + this.t = z3; + } + return new ExoPlaybackException(1, th, null, i, getName(), this.m, j1Var, j1Var != null ? 4 : i2, z2); + } + i2 = 4; + return new ExoPlaybackException(1, th, null, i, getName(), this.m, j1Var, j1Var != null ? 4 : i2, z2); + } +} diff --git a/app/src/main/java/b/i/a/c/v1.java b/app/src/main/java/b/i/a/c/v1.java new file mode 100644 index 0000000000..a489a0e7b9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/v1.java @@ -0,0 +1,27 @@ +package b.i.a.c; + +import androidx.annotation.FloatRange; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import java.util.Arrays; +/* compiled from: PercentageRating */ +public final class v1 extends d2 { + public final float k; + + public v1() { + this.k = -1.0f; + } + + public v1(@FloatRange(from = 0.0d, to = 100.0d) float f) { + d.m(f >= 0.0f && f <= 100.0f, "percent must be in the range of [0, 100]"); + this.k = f; + } + + public boolean equals(@Nullable Object obj) { + return (obj instanceof v1) && this.k == ((v1) obj).k; + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{Float.valueOf(this.k)}); + } +} diff --git a/app/src/main/java/b/i/a/c/v2/a.java b/app/src/main/java/b/i/a/c/v2/a.java new file mode 100644 index 0000000000..a7dd64cb58 --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/a.java @@ -0,0 +1,29 @@ +package b.i.a.c.v2; +/* compiled from: Buffer */ +public abstract class a { + public int j; + + public final void j(int i) { + this.j = i | this.j; + } + + public final boolean k(int i) { + return (this.j & i) == i; + } + + public final boolean l() { + return k(268435456); + } + + public final boolean m() { + return k(Integer.MIN_VALUE); + } + + public final boolean n() { + return k(4); + } + + public final boolean o() { + return k(1); + } +} diff --git a/app/src/main/java/b/i/a/c/v2/b.java b/app/src/main/java/b/i/a/c/v2/b.java new file mode 100644 index 0000000000..be3b7955c6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/b.java @@ -0,0 +1,4 @@ +package b.i.a.c.v2; +/* compiled from: CryptoConfig */ +public interface b { +} diff --git a/app/src/main/java/b/i/a/c/v2/c.java b/app/src/main/java/b/i/a/c/v2/c.java new file mode 100644 index 0000000000..2e07d27dea --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/c.java @@ -0,0 +1,45 @@ +package b.i.a.c.v2; + +import android.media.MediaCodec; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.f3.e0; +/* compiled from: CryptoInfo */ +public final class c { + @Nullable + public byte[] a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public byte[] f1127b; + public int c; + @Nullable + public int[] d; + @Nullable + public int[] e; + public int f; + public int g; + public int h; + public final MediaCodec.CryptoInfo i; + @Nullable + public final b j; + + /* compiled from: CryptoInfo */ + @RequiresApi(24) + public static final class b { + public final MediaCodec.CryptoInfo a; + + /* renamed from: b reason: collision with root package name */ + public final MediaCodec.CryptoInfo.Pattern f1128b = new MediaCodec.CryptoInfo.Pattern(0, 0); + + public b(MediaCodec.CryptoInfo cryptoInfo, a aVar) { + this.a = cryptoInfo; + } + } + + public c() { + MediaCodec.CryptoInfo cryptoInfo = new MediaCodec.CryptoInfo(); + this.i = cryptoInfo; + this.j = e0.a >= 24 ? new b(cryptoInfo, null) : null; + } +} diff --git a/app/src/main/java/b/i/a/c/v2/d.java b/app/src/main/java/b/i/a/c/v2/d.java new file mode 100644 index 0000000000..5d94f96d1d --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/d.java @@ -0,0 +1,18 @@ +package b.i.a.c.v2; + +import androidx.annotation.Nullable; +import com.google.android.exoplayer2.decoder.DecoderException; +/* compiled from: Decoder */ +public interface d { + @Nullable + O b() throws DecoderException; + + @Nullable + I c() throws DecoderException; + + void d(I i) throws DecoderException; + + void flush(); + + void release(); +} diff --git a/app/src/main/java/b/i/a/c/v2/e.java b/app/src/main/java/b/i/a/c/v2/e.java new file mode 100644 index 0000000000..722304eab6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/e.java @@ -0,0 +1,17 @@ +package b.i.a.c.v2; +/* compiled from: DecoderCounters */ +public final class e { + public int a; + + /* renamed from: b reason: collision with root package name */ + public int f1129b; + public int c; + public int d; + public int e; + public int f; + public int g; + public int h; + public int i; + public long j; + public int k; +} diff --git a/app/src/main/java/b/i/a/c/v2/f.java b/app/src/main/java/b/i/a/c/v2/f.java new file mode 100644 index 0000000000..d76a188410 --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/f.java @@ -0,0 +1,11 @@ +package b.i.a.c.v2; +/* compiled from: DecoderOutputBuffer */ +public abstract class f extends a { + public long k; + + /* compiled from: DecoderOutputBuffer */ + public interface a { + } + + public abstract void p(); +} diff --git a/app/src/main/java/b/i/a/c/v2/g.java b/app/src/main/java/b/i/a/c/v2/g.java new file mode 100644 index 0000000000..692b9f06d8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/g.java @@ -0,0 +1,48 @@ +package b.i.a.c.v2; + +import android.text.TextUtils; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.j1; +import java.util.Objects; +/* compiled from: DecoderReuseEvaluation */ +public final class g { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final j1 f1130b; + public final j1 c; + public final int d; + public final int e; + + public g(String str, j1 j1Var, j1 j1Var2, int i, int i2) { + d.j(i == 0 || i2 == 0); + if (!TextUtils.isEmpty(str)) { + this.a = str; + Objects.requireNonNull(j1Var); + this.f1130b = j1Var; + this.c = j1Var2; + this.d = i; + this.e = i2; + return; + } + throw new IllegalArgumentException(); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || g.class != obj.getClass()) { + return false; + } + g gVar = (g) obj; + return this.d == gVar.d && this.e == gVar.e && this.a.equals(gVar.a) && this.f1130b.equals(gVar.f1130b) && this.c.equals(gVar.c); + } + + public int hashCode() { + int m = a.m(this.a, (((this.d + 527) * 31) + this.e) * 31, 31); + return this.c.hashCode() + ((this.f1130b.hashCode() + m) * 31); + } +} diff --git a/app/src/main/java/b/i/a/c/v2/h.java b/app/src/main/java/b/i/a/c/v2/h.java new file mode 100644 index 0000000000..2f75c0d9e1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/h.java @@ -0,0 +1,237 @@ +package b.i.a.c.v2; + +import androidx.annotation.CallSuper; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.b3.e; +import b.i.a.c.b3.j; +import b.i.a.c.v2.f; +import com.google.android.exoplayer2.decoder.DecoderException; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import com.google.android.exoplayer2.text.SubtitleDecoderException; +import java.util.ArrayDeque; +import java.util.Objects; +/* compiled from: SimpleDecoder */ +public abstract class h implements d { + public final Thread a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1131b = new Object(); + public final ArrayDeque c = new ArrayDeque<>(); + public final ArrayDeque d = new ArrayDeque<>(); + public final I[] e; + public final O[] f; + public int g; + public int h; + @Nullable + public I i; + @Nullable + public E j; + public boolean k; + public boolean l; + public int m; + + /* compiled from: SimpleDecoder */ + public class a extends Thread { + public a(String str) { + super(str); + } + + @Override // java.lang.Thread, java.lang.Runnable + public void run() { + h hVar = h.this; + Objects.requireNonNull(hVar); + do { + try { + } catch (InterruptedException e) { + throw new IllegalStateException(e); + } + } while (hVar.f()); + } + } + + public h(I[] iArr, O[] oArr) { + this.e = iArr; + this.g = iArr.length; + for (int i = 0; i < this.g; i++) { + this.e[i] = new j(); + } + this.f = oArr; + this.h = oArr.length; + for (int i2 = 0; i2 < this.h; i2++) { + this.f[i2] = new e((b.i.a.c.b3.f) this); + } + a aVar = new a("ExoPlayer:SimpleDecoder"); + this.a = aVar; + aVar.start(); + } + + @Override // b.i.a.c.v2.d + @Nullable + public Object b() throws DecoderException { + O removeFirst; + synchronized (this.f1131b) { + h(); + removeFirst = this.d.isEmpty() ? null : this.d.removeFirst(); + } + return removeFirst; + } + + @Override // b.i.a.c.v2.d + @Nullable + public Object c() throws DecoderException { + I i; + synchronized (this.f1131b) { + h(); + d.D(this.i == null); + int i2 = this.g; + if (i2 == 0) { + i = null; + } else { + I[] iArr = this.e; + int i3 = i2 - 1; + this.g = i3; + i = iArr[i3]; + } + this.i = i; + } + return i; + } + + /* JADX DEBUG: Multi-variable search result rejected for r1v2, resolved type: java.util.ArrayDeque */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.i.a.c.v2.d + public void d(Object obj) throws DecoderException { + DecoderInputBuffer decoderInputBuffer = (DecoderInputBuffer) obj; + synchronized (this.f1131b) { + h(); + d.j(decoderInputBuffer == this.i); + this.c.addLast(decoderInputBuffer); + g(); + this.i = null; + } + } + + @Nullable + public abstract E e(I i, O o, boolean z2); + + /* JADX WARNING: Removed duplicated region for block: B:33:0x006b */ + /* JADX WARNING: Removed duplicated region for block: B:44:0x0078 A[SYNTHETIC] */ + public final boolean f() throws InterruptedException { + I removeFirst; + O o; + boolean z2; + SubtitleDecoderException subtitleDecoderException; + SubtitleDecoderException subtitleDecoderException2; + synchronized (this.f1131b) { + while (!this.l) { + if (!this.c.isEmpty() && this.h > 0) { + break; + } + this.f1131b.wait(); + } + if (this.l) { + return false; + } + removeFirst = this.c.removeFirst(); + O[] oArr = this.f; + int i = this.h - 1; + this.h = i; + o = oArr[i]; + z2 = this.k; + this.k = false; + } + if (removeFirst.n()) { + o.j(4); + } else { + if (removeFirst.m()) { + o.j(Integer.MIN_VALUE); + } + try { + subtitleDecoderException = e(removeFirst, o, z2); + } catch (RuntimeException e) { + subtitleDecoderException2 = new SubtitleDecoderException("Unexpected decode error", e); + } catch (OutOfMemoryError e2) { + subtitleDecoderException2 = new SubtitleDecoderException("Unexpected decode error", e2); + } + if (subtitleDecoderException != null) { + synchronized (this.f1131b) { + this.j = subtitleDecoderException; + } + return false; + } + } + synchronized (this.f1131b) { + if (this.k) { + o.p(); + } else if (o.m()) { + this.m++; + o.p(); + } else { + this.m = 0; + this.d.addLast(o); + } + i(removeFirst); + } + return true; + subtitleDecoderException = subtitleDecoderException2; + if (subtitleDecoderException != null) { + } + synchronized (this.f1131b) { + } + } + + @Override // b.i.a.c.v2.d + public final void flush() { + synchronized (this.f1131b) { + this.k = true; + this.m = 0; + I i = this.i; + if (i != null) { + i(i); + this.i = null; + } + while (!this.c.isEmpty()) { + i(this.c.removeFirst()); + } + while (!this.d.isEmpty()) { + this.d.removeFirst().p(); + } + } + } + + public final void g() { + if (!this.c.isEmpty() && this.h > 0) { + this.f1131b.notify(); + } + } + + public final void h() throws DecoderException { + E e = this.j; + if (e != null) { + throw e; + } + } + + public final void i(I i) { + i.p(); + I[] iArr = this.e; + int i2 = this.g; + this.g = i2 + 1; + iArr[i2] = i; + } + + @Override // b.i.a.c.v2.d + @CallSuper + public void release() { + synchronized (this.f1131b) { + this.l = true; + this.f1131b.notify(); + } + try { + this.a.join(); + } catch (InterruptedException unused) { + Thread.currentThread().interrupt(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/v2/i.java b/app/src/main/java/b/i/a/c/v2/i.java new file mode 100644 index 0000000000..bb94ebb548 --- /dev/null +++ b/app/src/main/java/b/i/a/c/v2/i.java @@ -0,0 +1,8 @@ +package b.i.a.c.v2; +/* compiled from: VideoDecoderOutputBuffer */ +public class i extends f { + @Override // b.i.a.c.v2.f + public void p() { + throw null; + } +} diff --git a/app/src/main/java/b/i/a/c/w.java b/app/src/main/java/b/i/a/c/w.java new file mode 100644 index 0000000000..a8ad0cd2d2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w.java @@ -0,0 +1,11 @@ +package b.i.a.c; + +import b.i.a.c.h1; +/* compiled from: lambda */ +public final /* synthetic */ class w implements h1.e { + public final /* synthetic */ f1 a; + + public /* synthetic */ w(f1 f1Var) { + this.a = f1Var; + } +} diff --git a/app/src/main/java/b/i/a/c/w0.java b/app/src/main/java/b/i/a/c/w0.java new file mode 100644 index 0000000000..dab18a840e --- /dev/null +++ b/app/src/main/java/b/i/a/c/w0.java @@ -0,0 +1,11 @@ +package b.i.a.c; + +import android.os.Bundle; +/* compiled from: Bundleable */ +public interface w0 { + + /* compiled from: Bundleable */ + public interface a { + T a(Bundle bundle); + } +} diff --git a/app/src/main/java/b/i/a/c/w1.java b/app/src/main/java/b/i/a/c/w1.java new file mode 100644 index 0000000000..2264b95929 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w1.java @@ -0,0 +1,106 @@ +package b.i.a.c; + +import androidx.annotation.CheckResult; +import androidx.annotation.Nullable; +import b.i.a.c.a3.a0; +import b.i.a.c.a3.o0; +import b.i.a.c.c3.r; +import b.i.b.b.a; +import b.i.b.b.h0; +import b.i.b.b.p; +import com.google.android.exoplayer2.ExoPlaybackException; +import com.google.android.exoplayer2.metadata.Metadata; +import java.util.List; +/* compiled from: PlaybackInfo */ +public final class w1 { + public static final a0.a a = new a0.a(new Object()); + + /* renamed from: b reason: collision with root package name */ + public final o2 f1132b; + public final a0.a c; + public final long d; + public final long e; + public final int f; + @Nullable + public final ExoPlaybackException g; + public final boolean h; + public final o0 i; + public final r j; + public final List k; + public final a0.a l; + public final boolean m; + public final int n; + public final x1 o; + public final boolean p; + public final boolean q; + public volatile long r; + + /* renamed from: s reason: collision with root package name */ + public volatile long f1133s; + public volatile long t; + + public w1(o2 o2Var, a0.a aVar, long j, long j2, int i, @Nullable ExoPlaybackException exoPlaybackException, boolean z2, o0 o0Var, r rVar, List list, a0.a aVar2, boolean z3, int i2, x1 x1Var, long j3, long j4, long j5, boolean z4, boolean z5) { + this.f1132b = o2Var; + this.c = aVar; + this.d = j; + this.e = j2; + this.f = i; + this.g = exoPlaybackException; + this.h = z2; + this.i = o0Var; + this.j = rVar; + this.k = list; + this.l = aVar2; + this.m = z3; + this.n = i2; + this.o = x1Var; + this.r = j3; + this.f1133s = j4; + this.t = j5; + this.p = z4; + this.q = z5; + } + + public static w1 h(r rVar) { + o2 o2Var = o2.j; + a0.a aVar = a; + o0 o0Var = o0.j; + a aVar2 = p.k; + return new w1(o2Var, aVar, -9223372036854775807L, 0, 1, null, false, o0Var, rVar, h0.l, aVar, false, 0, x1.j, 0, 0, 0, false, false); + } + + @CheckResult + public w1 a(a0.a aVar) { + return new w1(this.f1132b, this.c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, aVar, this.m, this.n, this.o, this.r, this.f1133s, this.t, this.p, this.q); + } + + @CheckResult + public w1 b(a0.a aVar, long j, long j2, long j3, long j4, o0 o0Var, r rVar, List list) { + return new w1(this.f1132b, aVar, j2, j3, this.f, this.g, this.h, o0Var, rVar, list, this.l, this.m, this.n, this.o, this.r, j4, j, this.p, this.q); + } + + @CheckResult + public w1 c(boolean z2) { + return new w1(this.f1132b, this.c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.o, this.r, this.f1133s, this.t, z2, this.q); + } + + @CheckResult + public w1 d(boolean z2, int i) { + return new w1(this.f1132b, this.c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, z2, i, this.o, this.r, this.f1133s, this.t, this.p, this.q); + } + + @CheckResult + public w1 e(@Nullable ExoPlaybackException exoPlaybackException) { + return new w1(this.f1132b, this.c, this.d, this.e, this.f, exoPlaybackException, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.o, this.r, this.f1133s, this.t, this.p, this.q); + } + + @CheckResult + public w1 f(int i) { + return new w1(this.f1132b, this.c, this.d, this.e, i, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.o, this.r, this.f1133s, this.t, this.p, this.q); + } + + @CheckResult + public w1 g(o2 o2Var) { + return new w1(o2Var, this.c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.o, this.r, this.f1133s, this.t, this.p, this.q); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/a.java b/app/src/main/java/b/i/a/c/w2/a.java new file mode 100644 index 0000000000..ebdce35875 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/a.java @@ -0,0 +1,13 @@ +package b.i.a.c.w2; + +import b.i.a.c.f3.k; +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class a implements k { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.f3.k + public final void accept(Object obj) { + ((s.a) obj).b(); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/a0.java b/app/src/main/java/b/i/a/c/w2/a0.java new file mode 100644 index 0000000000..1b389673fd --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/a0.java @@ -0,0 +1,77 @@ +package b.i.a.c.w2; + +import android.media.DeniedByServerException; +import android.media.MediaCryptoException; +import android.media.MediaDrmException; +import android.media.NotProvisionedException; +import androidx.annotation.Nullable; +import com.google.android.exoplayer2.drm.DrmInitData; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +/* compiled from: ExoMediaDrm */ +public interface a0 { + + /* compiled from: ExoMediaDrm */ + public static final class a { + public final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public final String f1134b; + + public a(byte[] bArr, String str, int i) { + this.a = bArr; + this.f1134b = str; + } + } + + /* compiled from: ExoMediaDrm */ + public interface b { + } + + /* compiled from: ExoMediaDrm */ + public interface c { + a0 a(UUID uuid); + } + + /* compiled from: ExoMediaDrm */ + public static final class d { + public final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public final String f1135b; + + public d(byte[] bArr, String str) { + this.a = bArr; + this.f1135b = str; + } + } + + Map a(byte[] bArr); + + d b(); + + b.i.a.c.v2.b c(byte[] bArr) throws MediaCryptoException; + + byte[] d() throws MediaDrmException; + + boolean e(byte[] bArr, String str); + + void f(byte[] bArr, byte[] bArr2); + + void g(byte[] bArr); + + void h(@Nullable b bVar); + + @Nullable + byte[] i(byte[] bArr, byte[] bArr2) throws NotProvisionedException, DeniedByServerException; + + void j(byte[] bArr) throws DeniedByServerException; + + a k(byte[] bArr, @Nullable List list, int i, @Nullable HashMap hashMap) throws NotProvisionedException; + + int l(); + + void release(); +} diff --git a/app/src/main/java/b/i/a/c/w2/b.java b/app/src/main/java/b/i/a/c/w2/b.java new file mode 100644 index 0000000000..0993fef35f --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/b.java @@ -0,0 +1,17 @@ +package b.i.a.c.w2; + +import b.i.a.c.f3.k; +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class b implements k { + public final /* synthetic */ Exception a; + + public /* synthetic */ b(Exception exc) { + this.a = exc; + } + + @Override // b.i.a.c.f3.k + public final void accept(Object obj) { + ((s.a) obj).e(this.a); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/b0.java b/app/src/main/java/b/i/a/c/w2/b0.java new file mode 100644 index 0000000000..6d1515bfc2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/b0.java @@ -0,0 +1,33 @@ +package b.i.a.c.w2; + +import b.i.a.c.f3.e0; +import b.i.a.c.v2.b; +import java.util.UUID; +/* compiled from: FrameworkCryptoConfig */ +public final class b0 implements b { + public static final boolean a; + + /* renamed from: b reason: collision with root package name */ + public final UUID f1136b; + public final byte[] c; + public final boolean d; + + static { + boolean z2; + if ("Amazon".equals(e0.c)) { + String str = e0.d; + if ("AFTM".equals(str) || "AFTB".equals(str)) { + z2 = true; + a = z2; + } + } + z2 = false; + a = z2; + } + + public b0(UUID uuid, byte[] bArr, boolean z2) { + this.f1136b = uuid; + this.c = bArr; + this.d = z2; + } +} diff --git a/app/src/main/java/b/i/a/c/w2/c.java b/app/src/main/java/b/i/a/c/w2/c.java new file mode 100644 index 0000000000..627377954d --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/c.java @@ -0,0 +1,17 @@ +package b.i.a.c.w2; + +import b.i.a.c.f3.k; +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class c implements k { + public final /* synthetic */ int a; + + public /* synthetic */ c(int i) { + this.a = i; + } + + @Override // b.i.a.c.f3.k + public final void accept(Object obj) { + ((s.a) obj).d(this.a); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/c0.java b/app/src/main/java/b/i/a/c/w2/c0.java new file mode 100644 index 0000000000..bd4004b0a7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/c0.java @@ -0,0 +1,334 @@ +package b.i.a.c.w2; + +import android.annotation.SuppressLint; +import android.media.DeniedByServerException; +import android.media.MediaCrypto; +import android.media.MediaCryptoException; +import android.media.MediaDrm; +import android.media.MediaDrmException; +import android.media.NotProvisionedException; +import android.media.UnsupportedSchemeException; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.DoNotInline; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.q; +import b.i.a.c.v2.b; +import b.i.a.c.w2.a0; +import b.i.a.c.x0; +import b.i.a.c.x2.i0.j; +import b.i.b.a.c; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.google.android.exoplayer2.drm.DrmInitData; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.nio.charset.Charset; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: FrameworkMediaDrm */ +@RequiresApi(18) +public final class c0 implements a0 { + public static final /* synthetic */ int a = 0; + + /* renamed from: b reason: collision with root package name */ + public final UUID f1137b; + public final MediaDrm c; + public int d; + + /* compiled from: FrameworkMediaDrm */ + @RequiresApi(31) + public static class a { + @DoNotInline + public static boolean a(MediaDrm mediaDrm, String str) { + return mediaDrm.requiresSecureDecoder(str); + } + } + + public c0(UUID uuid) throws UnsupportedSchemeException { + UUID uuid2; + Objects.requireNonNull(uuid); + d.m(!x0.f1144b.equals(uuid), "Use C.CLEARKEY_UUID instead"); + this.f1137b = uuid; + MediaDrm mediaDrm = new MediaDrm((e0.a >= 27 || !x0.c.equals(uuid)) ? uuid : uuid2); + this.c = mediaDrm; + this.d = 1; + if (x0.d.equals(uuid) && "ASUS_Z00AD".equals(e0.d)) { + mediaDrm.setPropertyString("securityLevel", "L3"); + } + } + + @Override // b.i.a.c.w2.a0 + public Map a(byte[] bArr) { + return this.c.queryKeyStatus(bArr); + } + + @Override // b.i.a.c.w2.a0 + public a0.d b() { + MediaDrm.ProvisionRequest provisionRequest = this.c.getProvisionRequest(); + return new a0.d(provisionRequest.getData(), provisionRequest.getDefaultUrl()); + } + + @Override // b.i.a.c.w2.a0 + public b c(byte[] bArr) throws MediaCryptoException { + int i = e0.a; + boolean z2 = i < 21 && x0.d.equals(this.f1137b) && "L3".equals(this.c.getPropertyString("securityLevel")); + UUID uuid = this.f1137b; + if (i < 27 && x0.c.equals(uuid)) { + uuid = x0.f1144b; + } + return new b0(uuid, bArr, z2); + } + + @Override // b.i.a.c.w2.a0 + public byte[] d() throws MediaDrmException { + return this.c.openSession(); + } + + @Override // b.i.a.c.w2.a0 + public boolean e(byte[] bArr, String str) { + if (e0.a >= 31) { + return a.a(this.c, str); + } + try { + MediaCrypto mediaCrypto = new MediaCrypto(this.f1137b, bArr); + try { + return mediaCrypto.requiresSecureDecoderComponent(str); + } finally { + mediaCrypto.release(); + } + } catch (MediaCryptoException unused) { + return true; + } + } + + @Override // b.i.a.c.w2.a0 + public void f(byte[] bArr, byte[] bArr2) { + this.c.restoreKeys(bArr, bArr2); + } + + @Override // b.i.a.c.w2.a0 + public void g(byte[] bArr) { + this.c.closeSession(bArr); + } + + @Override // b.i.a.c.w2.a0 + public void h(@Nullable a0.b bVar) { + this.c.setOnEventListener(new o(this, bVar)); + } + + @Override // b.i.a.c.w2.a0 + @Nullable + public byte[] i(byte[] bArr, byte[] bArr2) throws NotProvisionedException, DeniedByServerException { + if (x0.c.equals(this.f1137b) && e0.a < 27) { + try { + JSONObject jSONObject = new JSONObject(e0.l(bArr2)); + StringBuilder sb = new StringBuilder("{\"keys\":["); + JSONArray jSONArray = jSONObject.getJSONArray("keys"); + for (int i = 0; i < jSONArray.length(); i++) { + if (i != 0) { + sb.append(","); + } + JSONObject jSONObject2 = jSONArray.getJSONObject(i); + sb.append("{\"k\":\""); + sb.append(jSONObject2.getString("k").replace('-', '+').replace('_', MentionUtilsKt.SLASH_CHAR)); + sb.append("\",\"kid\":\""); + sb.append(jSONObject2.getString("kid").replace('-', '+').replace('_', MentionUtilsKt.SLASH_CHAR)); + sb.append("\",\"kty\":\""); + sb.append(jSONObject2.getString("kty")); + sb.append("\"}"); + } + sb.append("]}"); + bArr2 = e0.w(sb.toString()); + } catch (JSONException e) { + String l = e0.l(bArr2); + q.b("ClearKeyUtil", l.length() != 0 ? "Failed to adjust response data: ".concat(l) : new String("Failed to adjust response data: "), e); + } + } + return this.c.provideKeyResponse(bArr, bArr2); + } + + @Override // b.i.a.c.w2.a0 + public void j(byte[] bArr) throws DeniedByServerException { + this.c.provideProvisionResponse(bArr); + } + + /* JADX WARNING: Code restructure failed: missing block: B:85:0x0204, code lost: + if ("AFTT".equals(r5) == false) goto L_0x020d; + */ + /* JADX WARNING: Code restructure failed: missing block: B:87:0x020a, code lost: + if (r1 != null) goto L_0x020e; + */ + @Override // b.i.a.c.w2.a0 + @SuppressLint({"WrongConstant"}) + public a0.a k(byte[] bArr, @Nullable List list, int i, @Nullable HashMap hashMap) throws NotProvisionedException { + String str; + byte[] bArr2; + byte[] bArr3; + DrmInitData.SchemeData schemeData; + boolean z2; + DrmInitData.SchemeData schemeData2 = null; + if (list != null) { + if (!x0.d.equals(this.f1137b)) { + schemeData = list.get(0); + } else { + if (e0.a >= 28 && list.size() > 1) { + DrmInitData.SchemeData schemeData3 = list.get(0); + int i2 = 0; + int i3 = 0; + while (true) { + if (i2 >= list.size()) { + z2 = true; + break; + } + DrmInitData.SchemeData schemeData4 = list.get(i2); + byte[] bArr4 = schemeData4.n; + Objects.requireNonNull(bArr4); + if (!(e0.a(schemeData4.m, schemeData3.m) && e0.a(schemeData4.l, schemeData3.l))) { + break; + } + if (!(d.t1(bArr4) != null)) { + break; + } + i3 += bArr4.length; + i2++; + } + z2 = false; + if (z2) { + byte[] bArr5 = new byte[i3]; + int i4 = 0; + for (int i5 = 0; i5 < list.size(); i5++) { + byte[] bArr6 = list.get(i5).n; + Objects.requireNonNull(bArr6); + int length = bArr6.length; + System.arraycopy(bArr6, 0, bArr5, i4, length); + i4 += length; + } + schemeData = new DrmInitData.SchemeData(schemeData3.k, schemeData3.l, schemeData3.m, bArr5); + } + } + for (int i6 = 0; i6 < list.size(); i6++) { + DrmInitData.SchemeData schemeData5 = list.get(i6); + byte[] bArr7 = schemeData5.n; + Objects.requireNonNull(bArr7); + j t1 = d.t1(bArr7); + int i7 = t1 == null ? -1 : t1.f1213b; + int i8 = e0.a; + if ((i8 < 23 && i7 == 0) || (i8 >= 23 && i7 == 1)) { + schemeData2 = schemeData5; + break; + } + } + schemeData = list.get(0); + } + schemeData2 = schemeData; + UUID uuid = this.f1137b; + byte[] bArr8 = schemeData2.n; + Objects.requireNonNull(bArr8); + UUID uuid2 = x0.e; + if (uuid2.equals(uuid)) { + byte[] u1 = d.u1(bArr8, uuid); + if (u1 != null) { + bArr8 = u1; + } + int i9 = (bArr8[0] & 255) | ((bArr8[1] & 255) << 8) | ((bArr8[2] & 255) << 16) | ((bArr8[3] & 255) << 24); + short s2 = (short) (((bArr8[5] & 255) << 8) | (bArr8[4] & 255)); + short s3 = (short) (((bArr8[7] & 255) << 8) | (bArr8[6] & 255)); + if (s2 == 1 && s3 == 1) { + int i10 = (bArr8[9] & 255) << 8; + Charset charset = c.d; + String str2 = new String(bArr8, 10, (short) (i10 | (bArr8[8] & 255)), charset); + if (!str2.contains("")) { + int indexOf = str2.indexOf(""); + if (indexOf == -1) { + Log.w("FrameworkMediaDrm", "Could not find the tag. Skipping LA_URL workaround."); + } + String substring = str2.substring(0, indexOf); + String substring2 = str2.substring(indexOf); + String j = b.d.b.a.a.j(b.d.b.a.a.b(substring2, b.d.b.a.a.b(substring, 26)), substring, "https://x", substring2); + int i11 = i9 + 52; + ByteBuffer allocate = ByteBuffer.allocate(i11); + allocate.order(ByteOrder.LITTLE_ENDIAN); + allocate.putInt(i11); + allocate.putShort((short) s2); + allocate.putShort((short) s3); + allocate.putShort((short) (j.length() * 2)); + allocate.put(j.getBytes(charset)); + bArr8 = allocate.array(); + } + } else { + Log.i("FrameworkMediaDrm", "Unexpected record count or type. Skipping LA_URL workaround."); + } + int length2 = (bArr8 != null ? bArr8.length : 0) + 32; + ByteBuffer allocate2 = ByteBuffer.allocate(length2); + allocate2.putInt(length2); + allocate2.putInt(1886614376); + allocate2.putInt(0); + allocate2.putLong(uuid2.getMostSignificantBits()); + allocate2.putLong(uuid2.getLeastSignificantBits()); + if (!(bArr8 == null || bArr8.length == 0)) { + allocate2.putInt(bArr8.length); + allocate2.put(bArr8); + } + bArr8 = allocate2.array(); + } + int i12 = e0.a; + if (i12 >= 23 || !x0.d.equals(uuid)) { + if (uuid2.equals(uuid) && "Amazon".equals(e0.c)) { + String str3 = e0.d; + if (!"AFTB".equals(str3)) { + if (!"AFTS".equals(str3)) { + if (!"AFTM".equals(str3)) { + } + } + } + } + bArr3 = bArr8; + UUID uuid3 = this.f1137b; + String str4 = schemeData2.m; + bArr2 = bArr3; + str = (i12 >= 26 || !x0.c.equals(uuid3) || (!"video/mp4".equals(str4) && !"audio/mp4".equals(str4))) ? str4 : "cenc"; + } + bArr3 = d.u1(bArr8, uuid); + } else { + bArr2 = null; + str = null; + } + MediaDrm.KeyRequest keyRequest = this.c.getKeyRequest(bArr, bArr2, str, i, hashMap); + UUID uuid4 = this.f1137b; + byte[] data = keyRequest.getData(); + if (x0.c.equals(uuid4) && e0.a < 27) { + data = e0.w(e0.l(data).replace('+', '-').replace(MentionUtilsKt.SLASH_CHAR, '_')); + } + String defaultUrl = keyRequest.getDefaultUrl(); + if ("https://x".equals(defaultUrl)) { + defaultUrl = ""; + } + if (TextUtils.isEmpty(defaultUrl) && schemeData2 != null && !TextUtils.isEmpty(schemeData2.l)) { + defaultUrl = schemeData2.l; + } + return new a0.a(data, defaultUrl, e0.a >= 23 ? keyRequest.getRequestType() : Integer.MIN_VALUE); + } + + @Override // b.i.a.c.w2.a0 + public int l() { + return 2; + } + + @Override // b.i.a.c.w2.a0 + public synchronized void release() { + int i = this.d - 1; + this.d = i; + if (i == 0) { + this.c.release(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/w2/d.java b/app/src/main/java/b/i/a/c/w2/d.java new file mode 100644 index 0000000000..6c78cadb61 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/d.java @@ -0,0 +1,25 @@ +package b.i.a.c.w2; + +import com.google.android.exoplayer2.drm.DefaultDrmSessionManager; +import com.google.android.exoplayer2.drm.DrmSession; +/* compiled from: lambda */ +public final /* synthetic */ class d implements Runnable { + public final /* synthetic */ DefaultDrmSessionManager.d j; + + public /* synthetic */ d(DefaultDrmSessionManager.d dVar) { + this.j = dVar; + } + + @Override // java.lang.Runnable + public final void run() { + DefaultDrmSessionManager.d dVar = this.j; + if (!dVar.d) { + DrmSession drmSession = dVar.c; + if (drmSession != null) { + drmSession.b(dVar.f2890b); + } + DefaultDrmSessionManager.this.n.remove(dVar); + dVar.d = true; + } + } +} diff --git a/app/src/main/java/b/i/a/c/w2/d0.java b/app/src/main/java/b/i/a/c/w2/d0.java new file mode 100644 index 0000000000..c69e43129d --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/d0.java @@ -0,0 +1,136 @@ +package b.i.a.c.w2; + +import android.net.Uri; +import android.text.TextUtils; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.e3.m; +import b.i.a.c.e3.n; +import b.i.a.c.e3.r; +import b.i.a.c.e3.t; +import b.i.a.c.e3.y; +import b.i.a.c.f3.e0; +import b.i.a.c.w2.a0; +import b.i.a.c.x0; +import b.i.b.b.i0; +import com.discord.restapi.RestAPIBuilder; +import com.google.android.exoplayer2.drm.MediaDrmCallbackException; +import com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException; +import java.io.IOException; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +/* compiled from: HttpMediaDrmCallback */ +public final class d0 implements e0 { + public final t a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final String f1138b; + public final boolean c; + public final Map d; + + public d0(@Nullable String str, boolean z2, t tVar) { + d.j(!z2 || !TextUtils.isEmpty(str)); + this.a = tVar; + this.f1138b = str; + this.c = z2; + this.d = new HashMap(); + } + + public static byte[] b(t tVar, String str, @Nullable byte[] bArr, Map map) throws MediaDrmCallbackException { + List list; + y yVar = new y(((r.b) tVar).a()); + Collections.emptyMap(); + Uri parse = Uri.parse(str); + if (parse != null) { + n nVar = new n(parse, 0, 2, bArr, map, 0, -1, null, 1, null); + n nVar2 = nVar; + int i = 0; + while (true) { + try { + m mVar = new m(yVar, nVar2); + try { + byte[] K = e0.K(mVar); + int i2 = e0.a; + try { + mVar.close(); + } catch (IOException unused) { + } + return K; + } catch (HttpDataSource$InvalidResponseCodeException e) { + int i3 = e.responseCode; + String str2 = null; + if ((i3 == 307 || i3 == 308) && i < 5) { + Map> map2 = e.headerFields; + if (!(map2 == null || (list = map2.get("Location")) == null || list.isEmpty())) { + str2 = list.get(0); + } + } + if (str2 != null) { + i++; + n.b a = nVar2.a(); + a.a = Uri.parse(str2); + nVar2 = a.a(); + int i4 = e0.a; + try { + mVar.close(); + } catch (IOException unused2) { + } + } else { + throw e; + } + } catch (Throwable th) { + int i5 = e0.a; + try { + mVar.close(); + } catch (IOException unused3) { + } + throw th; + } + } catch (Exception e2) { + Uri uri = yVar.c; + Objects.requireNonNull(uri); + throw new MediaDrmCallbackException(nVar, uri, yVar.j(), yVar.f942b, e2); + } + } + } else { + throw new IllegalStateException("The uri must be set."); + } + } + + public byte[] a(UUID uuid, a0.a aVar) throws MediaDrmCallbackException { + String str = aVar.f1134b; + if (this.c || TextUtils.isEmpty(str)) { + str = this.f1138b; + } + if (!TextUtils.isEmpty(str)) { + HashMap hashMap = new HashMap(); + UUID uuid2 = x0.e; + hashMap.put("Content-Type", uuid2.equals(uuid) ? "text/xml" : x0.c.equals(uuid) ? RestAPIBuilder.CONTENT_TYPE_JSON : "application/octet-stream"); + if (uuid2.equals(uuid)) { + hashMap.put("SOAPAction", "http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense"); + } + synchronized (this.d) { + hashMap.putAll(this.d); + } + return b(this.a, str, aVar.a, hashMap); + } + Map emptyMap = Collections.emptyMap(); + Uri uri = Uri.EMPTY; + if (uri != null) { + throw new MediaDrmCallbackException(new n(uri, 0, 1, null, emptyMap, 0, -1, null, 0, null), Uri.EMPTY, i0.m, 0, new IllegalStateException("No license URL")); + } + throw new IllegalStateException("The uri must be set."); + } + + public byte[] c(UUID uuid, a0.d dVar) throws MediaDrmCallbackException { + String str = dVar.f1135b; + String l = e0.l(dVar.a); + return b(this.a, a.j(l.length() + a.b(str, 15), str, "&signedRequest=", l), null, Collections.emptyMap()); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/e.java b/app/src/main/java/b/i/a/c/w2/e.java new file mode 100644 index 0000000000..e4e68a0cbe --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/e.java @@ -0,0 +1,29 @@ +package b.i.a.c.w2; + +import android.os.Looper; +import b.i.a.c.j1; +import com.google.android.exoplayer2.drm.DefaultDrmSessionManager; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class e implements Runnable { + public final /* synthetic */ DefaultDrmSessionManager.d j; + public final /* synthetic */ j1 k; + + public /* synthetic */ e(DefaultDrmSessionManager.d dVar, j1 j1Var) { + this.j = dVar; + this.k = j1Var; + } + + @Override // java.lang.Runnable + public final void run() { + DefaultDrmSessionManager.d dVar = this.j; + j1 j1Var = this.k; + DefaultDrmSessionManager defaultDrmSessionManager = DefaultDrmSessionManager.this; + if (defaultDrmSessionManager.p != 0 && !dVar.d) { + Looper looper = defaultDrmSessionManager.t; + Objects.requireNonNull(looper); + dVar.c = defaultDrmSessionManager.e(looper, dVar.f2890b, j1Var, false); + DefaultDrmSessionManager.this.n.add(dVar); + } + } +} diff --git a/app/src/main/java/b/i/a/c/w2/e0.java b/app/src/main/java/b/i/a/c/w2/e0.java new file mode 100644 index 0000000000..1e3c30ecf4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/e0.java @@ -0,0 +1,4 @@ +package b.i.a.c.w2; +/* compiled from: MediaDrmCallback */ +public interface e0 { +} diff --git a/app/src/main/java/b/i/a/c/w2/f.java b/app/src/main/java/b/i/a/c/w2/f.java new file mode 100644 index 0000000000..b282c45c05 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/f.java @@ -0,0 +1,16 @@ +package b.i.a.c.w2; + +import com.google.android.exoplayer2.drm.DefaultDrmSession; +/* compiled from: lambda */ +public final /* synthetic */ class f implements Runnable { + public final /* synthetic */ DefaultDrmSession j; + + public /* synthetic */ f(DefaultDrmSession defaultDrmSession) { + this.j = defaultDrmSession; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.b(null); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/g.java b/app/src/main/java/b/i/a/c/w2/g.java new file mode 100644 index 0000000000..5b0a2ad4a7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/g.java @@ -0,0 +1,19 @@ +package b.i.a.c.w2; + +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class g implements Runnable { + public final /* synthetic */ s.a j; + public final /* synthetic */ s k; + + public /* synthetic */ g(s.a aVar, s sVar) { + this.j = aVar; + this.k = sVar; + } + + @Override // java.lang.Runnable + public final void run() { + s.a aVar = this.j; + this.k.d0(aVar.a, aVar.f1142b); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/h.java b/app/src/main/java/b/i/a/c/w2/h.java new file mode 100644 index 0000000000..4cd9f9605b --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/h.java @@ -0,0 +1,19 @@ +package b.i.a.c.w2; + +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class h implements Runnable { + public final /* synthetic */ s.a j; + public final /* synthetic */ s k; + + public /* synthetic */ h(s.a aVar, s sVar) { + this.j = aVar; + this.k = sVar; + } + + @Override // java.lang.Runnable + public final void run() { + s.a aVar = this.j; + this.k.J(aVar.a, aVar.f1142b); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/i.java b/app/src/main/java/b/i/a/c/w2/i.java new file mode 100644 index 0000000000..5d7bf6d83d --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/i.java @@ -0,0 +1,19 @@ +package b.i.a.c.w2; + +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class i implements Runnable { + public final /* synthetic */ s.a j; + public final /* synthetic */ s k; + + public /* synthetic */ i(s.a aVar, s sVar) { + this.j = aVar; + this.k = sVar; + } + + @Override // java.lang.Runnable + public final void run() { + s.a aVar = this.j; + this.k.S(aVar.a, aVar.f1142b); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/j.java b/app/src/main/java/b/i/a/c/w2/j.java new file mode 100644 index 0000000000..251d300a60 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/j.java @@ -0,0 +1,19 @@ +package b.i.a.c.w2; + +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class j implements Runnable { + public final /* synthetic */ s.a j; + public final /* synthetic */ s k; + + public /* synthetic */ j(s.a aVar, s sVar) { + this.j = aVar; + this.k = sVar; + } + + @Override // java.lang.Runnable + public final void run() { + s.a aVar = this.j; + this.k.i0(aVar.a, aVar.f1142b); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/k.java b/app/src/main/java/b/i/a/c/w2/k.java new file mode 100644 index 0000000000..2f343f8604 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/k.java @@ -0,0 +1,21 @@ +package b.i.a.c.w2; + +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class k implements Runnable { + public final /* synthetic */ s.a j; + public final /* synthetic */ s k; + public final /* synthetic */ Exception l; + + public /* synthetic */ k(s.a aVar, s sVar, Exception exc) { + this.j = aVar; + this.k = sVar; + this.l = exc; + } + + @Override // java.lang.Runnable + public final void run() { + s.a aVar = this.j; + this.k.u(aVar.a, aVar.f1142b, this.l); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/l.java b/app/src/main/java/b/i/a/c/w2/l.java new file mode 100644 index 0000000000..8350e307d7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/l.java @@ -0,0 +1,26 @@ +package b.i.a.c.w2; + +import b.i.a.c.w2.s; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class l implements Runnable { + public final /* synthetic */ s.a j; + public final /* synthetic */ s k; + public final /* synthetic */ int l; + + public /* synthetic */ l(s.a aVar, s sVar, int i) { + this.j = aVar; + this.k = sVar; + this.l = i; + } + + @Override // java.lang.Runnable + public final void run() { + s.a aVar = this.j; + s sVar = this.k; + int i = this.l; + Objects.requireNonNull(aVar); + Objects.requireNonNull(sVar); + sVar.c0(aVar.a, aVar.f1142b, i); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/m.java b/app/src/main/java/b/i/a/c/w2/m.java new file mode 100644 index 0000000000..99b7a20605 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/m.java @@ -0,0 +1,13 @@ +package b.i.a.c.w2; + +import b.i.a.c.w2.u; +/* compiled from: lambda */ +public final /* synthetic */ class m implements u.b { + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ m f1139b = new m(); + + @Override // b.i.a.c.w2.u.b + public final void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/w2/n.java b/app/src/main/java/b/i/a/c/w2/n.java new file mode 100644 index 0000000000..948dd110b8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/n.java @@ -0,0 +1,31 @@ +package b.i.a.c.w2; + +import android.media.UnsupportedSchemeException; +import android.util.Log; +import b.i.a.c.w2.a0; +import com.google.android.exoplayer2.drm.UnsupportedDrmException; +import java.util.UUID; +/* compiled from: lambda */ +public final /* synthetic */ class n implements a0.c { + public static final /* synthetic */ n a = new n(); + + @Override // b.i.a.c.w2.a0.c + public final a0 a(UUID uuid) { + int i = c0.a; + try { + return new c0(uuid); + } catch (UnsupportedSchemeException e) { + throw new UnsupportedDrmException(1, e); + } catch (Exception e2) { + throw new UnsupportedDrmException(2, e2); + } catch (UnsupportedDrmException unused) { + String valueOf = String.valueOf(uuid); + StringBuilder sb = new StringBuilder(valueOf.length() + 53); + sb.append("Failed to instantiate a FrameworkMediaDrm for uuid: "); + sb.append(valueOf); + sb.append("."); + Log.e("FrameworkMediaDrm", sb.toString()); + return new y(); + } + } +} diff --git a/app/src/main/java/b/i/a/c/w2/o.java b/app/src/main/java/b/i/a/c/w2/o.java new file mode 100644 index 0000000000..c356e72b5c --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/o.java @@ -0,0 +1,28 @@ +package b.i.a.c.w2; + +import android.media.MediaDrm; +import b.i.a.c.w2.a0; +import com.google.android.exoplayer2.drm.DefaultDrmSessionManager; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class o implements MediaDrm.OnEventListener { + public final /* synthetic */ c0 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ a0.b f1140b; + + public /* synthetic */ o(c0 c0Var, a0.b bVar) { + this.a = c0Var; + this.f1140b = bVar; + } + + @Override // android.media.MediaDrm.OnEventListener + public final void onEvent(MediaDrm mediaDrm, byte[] bArr, int i, int i2, byte[] bArr2) { + c0 c0Var = this.a; + a0.b bVar = this.f1140b; + Objects.requireNonNull(c0Var); + DefaultDrmSessionManager.c cVar = DefaultDrmSessionManager.this.f2889x; + Objects.requireNonNull(cVar); + cVar.obtainMessage(i, bArr).sendToTarget(); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/p.java b/app/src/main/java/b/i/a/c/w2/p.java new file mode 100644 index 0000000000..08f18bd629 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/p.java @@ -0,0 +1,13 @@ +package b.i.a.c.w2; + +import b.i.a.c.f3.k; +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class p implements k { + public static final /* synthetic */ p a = new p(); + + @Override // b.i.a.c.f3.k + public final void accept(Object obj) { + ((s.a) obj).a(); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/q.java b/app/src/main/java/b/i/a/c/w2/q.java new file mode 100644 index 0000000000..125da87749 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/q.java @@ -0,0 +1,13 @@ +package b.i.a.c.w2; + +import b.i.a.c.f3.k; +import b.i.a.c.w2.s; +/* compiled from: lambda */ +public final /* synthetic */ class q implements k { + public static final /* synthetic */ q a = new q(); + + @Override // b.i.a.c.f3.k + public final void accept(Object obj) { + ((s.a) obj).c(); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/r.java b/app/src/main/java/b/i/a/c/w2/r.java new file mode 100644 index 0000000000..43bc56c097 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/r.java @@ -0,0 +1,71 @@ +package b.i.a.c.w2; + +import android.net.Uri; +import androidx.annotation.GuardedBy; +import androidx.annotation.RequiresApi; +import b.c.a.a0.d; +import b.i.a.c.e3.r; +import b.i.a.c.e3.s; +import b.i.a.c.o1; +import b.i.a.c.x0; +import b.i.a.f.e.o.f; +import b.i.b.b.s0; +import com.google.android.exoplayer2.drm.DefaultDrmSessionManager; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +/* compiled from: DefaultDrmSessionManagerProvider */ +public final class r { + public final Object a = new Object(); + @GuardedBy("lock") + + /* renamed from: b reason: collision with root package name */ + public o1.f f1141b; + @GuardedBy("lock") + public u c; + + @RequiresApi(18) + public final u a(o1.f fVar) { + r.b bVar = new r.b(); + bVar.f937b = null; + Uri uri = fVar.f1022b; + d0 d0Var = new d0(uri == null ? null : uri.toString(), fVar.f, bVar); + s0> j = fVar.c.entrySet().iterator(); + while (j.hasNext()) { + Map.Entry next = j.next(); + String key = next.getKey(); + String value = next.getValue(); + Objects.requireNonNull(key); + Objects.requireNonNull(value); + synchronized (d0Var.d) { + d0Var.d.put(key, value); + } + } + HashMap hashMap = new HashMap(); + UUID uuid = x0.d; + int i = c0.a; + s sVar = new s(); + UUID uuid2 = fVar.a; + n nVar = n.a; + Objects.requireNonNull(uuid2); + boolean z2 = fVar.d; + boolean z3 = fVar.e; + int[] i1 = f.i1(fVar.g); + for (int i2 : i1) { + boolean z4 = true; + if (!(i2 == 2 || i2 == 1)) { + z4 = false; + } + d.j(z4); + } + DefaultDrmSessionManager defaultDrmSessionManager = new DefaultDrmSessionManager(uuid2, nVar, d0Var, hashMap, z2, (int[]) i1.clone(), z3, sVar, 300000, null); + byte[] bArr = fVar.h; + byte[] copyOf = bArr != null ? Arrays.copyOf(bArr, bArr.length) : null; + d.D(defaultDrmSessionManager.m.isEmpty()); + defaultDrmSessionManager.v = 0; + defaultDrmSessionManager.w = copyOf; + return defaultDrmSessionManager; + } +} diff --git a/app/src/main/java/b/i/a/c/w2/s.java b/app/src/main/java/b/i/a/c/w2/s.java new file mode 100644 index 0000000000..e8f067ee2e --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/s.java @@ -0,0 +1,113 @@ +package b.i.a.c.w2; + +import android.os.Handler; +import androidx.annotation.CheckResult; +import androidx.annotation.Nullable; +import b.i.a.c.a3.a0; +import b.i.a.c.f3.e0; +import java.util.Iterator; +import java.util.concurrent.CopyOnWriteArrayList; +/* compiled from: DrmSessionEventListener */ +public interface s { + + /* compiled from: DrmSessionEventListener */ + public static class a { + public final int a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final a0.a f1142b; + public final CopyOnWriteArrayList c; + + /* compiled from: DrmSessionEventListener */ + /* renamed from: b.i.a.c.w2.s$a$a reason: collision with other inner class name */ + public static final class C0092a { + public Handler a; + + /* renamed from: b reason: collision with root package name */ + public s f1143b; + + public C0092a(Handler handler, s sVar) { + this.a = handler; + this.f1143b = sVar; + } + } + + public a() { + this.c = new CopyOnWriteArrayList<>(); + this.a = 0; + this.f1142b = null; + } + + public a(CopyOnWriteArrayList copyOnWriteArrayList, int i, @Nullable a0.a aVar) { + this.c = copyOnWriteArrayList; + this.a = i; + this.f1142b = aVar; + } + + public void a() { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0092a next = it.next(); + e0.E(next.a, new i(this, next.f1143b)); + } + } + + public void b() { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0092a next = it.next(); + e0.E(next.a, new h(this, next.f1143b)); + } + } + + public void c() { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0092a next = it.next(); + e0.E(next.a, new j(this, next.f1143b)); + } + } + + public void d(int i) { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0092a next = it.next(); + e0.E(next.a, new l(this, next.f1143b, i)); + } + } + + public void e(Exception exc) { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0092a next = it.next(); + e0.E(next.a, new k(this, next.f1143b, exc)); + } + } + + public void f() { + Iterator it = this.c.iterator(); + while (it.hasNext()) { + C0092a next = it.next(); + e0.E(next.a, new g(this, next.f1143b)); + } + } + + @CheckResult + public a g(int i, @Nullable a0.a aVar) { + return new a(this.c, i, aVar); + } + } + + void J(int i, @Nullable a0.a aVar); + + void S(int i, @Nullable a0.a aVar); + + void c0(int i, @Nullable a0.a aVar, int i2); + + void d0(int i, @Nullable a0.a aVar); + + void i0(int i, @Nullable a0.a aVar); + + void u(int i, @Nullable a0.a aVar, Exception exc); +} diff --git a/app/src/main/java/b/i/a/c/w2/t.java b/app/src/main/java/b/i/a/c/w2/t.java new file mode 100644 index 0000000000..bb0f9f3a4d --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/t.java @@ -0,0 +1,20 @@ +package b.i.a.c.w2; + +import android.os.Looper; +import androidx.annotation.Nullable; +import b.i.a.c.j1; +import b.i.a.c.w2.s; +import b.i.a.c.w2.u; +/* compiled from: DrmSessionManager */ +public final /* synthetic */ class t { + public static u.b a(u uVar, @Nullable Looper looper, s.a aVar, j1 j1Var) { + int i = u.b.a; + return m.f1139b; + } + + public static void b(u uVar) { + } + + public static void c(u uVar) { + } +} diff --git a/app/src/main/java/b/i/a/c/w2/u.java b/app/src/main/java/b/i/a/c/w2/u.java new file mode 100644 index 0000000000..54af94fae5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/u.java @@ -0,0 +1,62 @@ +package b.i.a.c.w2; + +import android.os.Looper; +import androidx.annotation.Nullable; +import b.i.a.c.j1; +import b.i.a.c.w2.s; +import com.google.android.exoplayer2.drm.DrmSession; +import com.google.android.exoplayer2.drm.UnsupportedDrmException; +/* compiled from: DrmSessionManager */ +public interface u { + public static final u a = new a(); + + /* compiled from: DrmSessionManager */ + public class a implements u { + @Override // b.i.a.c.w2.u + public /* synthetic */ void a() { + t.b(this); + } + + @Override // b.i.a.c.w2.u + public /* synthetic */ b b(Looper looper, s.a aVar, j1 j1Var) { + return t.a(this, looper, aVar, j1Var); + } + + @Override // b.i.a.c.w2.u + @Nullable + public DrmSession c(Looper looper, @Nullable s.a aVar, j1 j1Var) { + if (j1Var.f1006z == null) { + return null; + } + return new z(new DrmSession.DrmSessionException(new UnsupportedDrmException(1), 6001)); + } + + @Override // b.i.a.c.w2.u + public int d(j1 j1Var) { + return j1Var.f1006z != null ? 1 : 0; + } + + @Override // b.i.a.c.w2.u + public /* synthetic */ void release() { + t.c(this); + } + } + + /* compiled from: DrmSessionManager */ + public interface b { + public static final /* synthetic */ int a = 0; + + void release(); + } + + void a(); + + b b(Looper looper, @Nullable s.a aVar, j1 j1Var); + + @Nullable + DrmSession c(Looper looper, @Nullable s.a aVar, j1 j1Var); + + int d(j1 j1Var); + + void release(); +} diff --git a/app/src/main/java/b/i/a/c/w2/v.java b/app/src/main/java/b/i/a/c/w2/v.java new file mode 100644 index 0000000000..8e4513b275 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/v.java @@ -0,0 +1,20 @@ +package b.i.a.c.w2; + +import android.media.DeniedByServerException; +import android.media.NotProvisionedException; +import androidx.annotation.DoNotInline; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +/* compiled from: DrmUtil */ +@RequiresApi(18) +public final class v { + @DoNotInline + public static boolean a(@Nullable Throwable th) { + return th instanceof DeniedByServerException; + } + + @DoNotInline + public static boolean b(@Nullable Throwable th) { + return th instanceof NotProvisionedException; + } +} diff --git a/app/src/main/java/b/i/a/c/w2/w.java b/app/src/main/java/b/i/a/c/w2/w.java new file mode 100644 index 0000000000..91ac792a4b --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/w.java @@ -0,0 +1,38 @@ +package b.i.a.c.w2; + +import android.media.MediaDrm; +import androidx.annotation.DoNotInline; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.f3.e0; +import java.util.Objects; +/* compiled from: DrmUtil */ +@RequiresApi(21) +public final class w { + @DoNotInline + public static boolean a(@Nullable Throwable th) { + return th instanceof MediaDrm.MediaDrmStateException; + } + + @DoNotInline + public static int b(Throwable th) { + String[] split; + int length; + String diagnosticInfo = ((MediaDrm.MediaDrmStateException) th).getDiagnosticInfo(); + int i = e0.a; + int i2 = 0; + if (diagnosticInfo != null && (length = (split = diagnosticInfo.split("_", -1)).length) >= 2) { + String str = split[length - 1]; + boolean z2 = length >= 3 && "neg".equals(split[length - 2]); + try { + Objects.requireNonNull(str); + i2 = Integer.parseInt(str); + if (z2) { + i2 = -i2; + } + } catch (NumberFormatException unused) { + } + } + return e0.p(i2); + } +} diff --git a/app/src/main/java/b/i/a/c/w2/x.java b/app/src/main/java/b/i/a/c/w2/x.java new file mode 100644 index 0000000000..6a395fe426 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/x.java @@ -0,0 +1,14 @@ +package b.i.a.c.w2; + +import android.media.MediaDrmResetException; +import androidx.annotation.DoNotInline; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +/* compiled from: DrmUtil */ +@RequiresApi(23) +public final class x { + @DoNotInline + public static boolean a(@Nullable Throwable th) { + return th instanceof MediaDrmResetException; + } +} diff --git a/app/src/main/java/b/i/a/c/w2/y.java b/app/src/main/java/b/i/a/c/w2/y.java new file mode 100644 index 0000000000..d13fce8701 --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/y.java @@ -0,0 +1,77 @@ +package b.i.a.c.w2; + +import android.media.MediaDrmException; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.v2.b; +import b.i.a.c.w2.a0; +import com.google.android.exoplayer2.drm.DrmInitData; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +/* compiled from: DummyExoMediaDrm */ +@RequiresApi(18) +public final class y implements a0 { + @Override // b.i.a.c.w2.a0 + public Map a(byte[] bArr) { + throw new IllegalStateException(); + } + + @Override // b.i.a.c.w2.a0 + public a0.d b() { + throw new IllegalStateException(); + } + + @Override // b.i.a.c.w2.a0 + public b c(byte[] bArr) { + throw new IllegalStateException(); + } + + @Override // b.i.a.c.w2.a0 + public byte[] d() throws MediaDrmException { + throw new MediaDrmException("Attempting to open a session using a dummy ExoMediaDrm."); + } + + @Override // b.i.a.c.w2.a0 + public boolean e(byte[] bArr, String str) { + throw new IllegalStateException(); + } + + @Override // b.i.a.c.w2.a0 + public void f(byte[] bArr, byte[] bArr2) { + throw new IllegalStateException(); + } + + @Override // b.i.a.c.w2.a0 + public void g(byte[] bArr) { + } + + @Override // b.i.a.c.w2.a0 + public void h(@Nullable a0.b bVar) { + } + + @Override // b.i.a.c.w2.a0 + @Nullable + public byte[] i(byte[] bArr, byte[] bArr2) { + throw new IllegalStateException(); + } + + @Override // b.i.a.c.w2.a0 + public void j(byte[] bArr) { + throw new IllegalStateException(); + } + + @Override // b.i.a.c.w2.a0 + public a0.a k(byte[] bArr, @Nullable List list, int i, @Nullable HashMap hashMap) { + throw new IllegalStateException(); + } + + @Override // b.i.a.c.w2.a0 + public int l() { + return 1; + } + + @Override // b.i.a.c.w2.a0 + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/w2/z.java b/app/src/main/java/b/i/a/c/w2/z.java new file mode 100644 index 0000000000..e469f536ed --- /dev/null +++ b/app/src/main/java/b/i/a/c/w2/z.java @@ -0,0 +1,56 @@ +package b.i.a.c.w2; + +import androidx.annotation.Nullable; +import b.i.a.c.v2.b; +import b.i.a.c.w2.s; +import b.i.a.c.x0; +import com.google.android.exoplayer2.drm.DrmSession; +import java.util.UUID; +/* compiled from: ErrorStateDrmSession */ +public final class z implements DrmSession { + public final DrmSession.DrmSessionException a; + + public z(DrmSession.DrmSessionException drmSessionException) { + this.a = drmSessionException; + } + + @Override // com.google.android.exoplayer2.drm.DrmSession + public void a(@Nullable s.a aVar) { + } + + @Override // com.google.android.exoplayer2.drm.DrmSession + public void b(@Nullable s.a aVar) { + } + + @Override // com.google.android.exoplayer2.drm.DrmSession + public final UUID c() { + return x0.a; + } + + @Override // com.google.android.exoplayer2.drm.DrmSession + public boolean d() { + return false; + } + + @Override // com.google.android.exoplayer2.drm.DrmSession + public boolean e(String str) { + return false; + } + + @Override // com.google.android.exoplayer2.drm.DrmSession + @Nullable + public DrmSession.DrmSessionException f() { + return this.a; + } + + @Override // com.google.android.exoplayer2.drm.DrmSession + @Nullable + public b g() { + return null; + } + + @Override // com.google.android.exoplayer2.drm.DrmSession + public int getState() { + return 1; + } +} diff --git a/app/src/main/java/b/i/a/c/x.java b/app/src/main/java/b/i/a/c/x.java new file mode 100644 index 0000000000..e45ef9b728 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class x implements p.a { + public final /* synthetic */ f1 a; + + public /* synthetic */ x(f1 f1Var) { + this.a = f1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).t(this.a.C); + } +} diff --git a/app/src/main/java/b/i/a/c/x0.java b/app/src/main/java/b/i/a/c/x0.java new file mode 100644 index 0000000000..46abd6f2b3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x0.java @@ -0,0 +1,13 @@ +package b.i.a.c; + +import java.util.UUID; +/* compiled from: C */ +public final class x0 { + public static final UUID a = new UUID(0, 0); + + /* renamed from: b reason: collision with root package name */ + public static final UUID f1144b = new UUID(1186680826959645954L, -5988876978535335093L); + public static final UUID c = new UUID(-2129748144642739255L, 8654423357094679310L); + public static final UUID d = new UUID(-1301668207276963122L, -6645017420763422227L); + public static final UUID e = new UUID(-7348484286925749626L, -6083546864340672619L); +} diff --git a/app/src/main/java/b/i/a/c/x1.java b/app/src/main/java/b/i/a/c/x1.java new file mode 100644 index 0000000000..2e173dae86 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x1.java @@ -0,0 +1,41 @@ +package b.i.a.c; + +import androidx.annotation.FloatRange; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +/* compiled from: PlaybackParameters */ +public final class x1 implements w0 { + public static final x1 j = new x1(1.0f, 1.0f); + public final float k; + public final float l; + public final int m; + + public x1(@FloatRange(from = 0.0d, fromInclusive = false) float f, @FloatRange(from = 0.0d, fromInclusive = false) float f2) { + boolean z2 = true; + d.j(f > 0.0f); + d.j(f2 <= 0.0f ? false : z2); + this.k = f; + this.l = f2; + this.m = Math.round(f * 1000.0f); + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || x1.class != obj.getClass()) { + return false; + } + x1 x1Var = (x1) obj; + return this.k == x1Var.k && this.l == x1Var.l; + } + + public int hashCode() { + return Float.floatToRawIntBits(this.l) + ((Float.floatToRawIntBits(this.k) + 527) * 31); + } + + public String toString() { + return e0.k("PlaybackParameters(speed=%.2f, pitch=%.2f)", Float.valueOf(this.k), Float.valueOf(this.l)); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/a.java b/app/src/main/java/b/i/a/c/x2/a.java new file mode 100644 index 0000000000..a0f6f9b3be --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/a.java @@ -0,0 +1,220 @@ +package b.i.a.c.x2; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.x2.t; +import com.discord.api.permission.Permission; +import java.io.IOException; +/* compiled from: BinarySearchSeeker */ +public abstract class a { + public final C0093a a; + + /* renamed from: b reason: collision with root package name */ + public final f f1145b; + @Nullable + public c c; + public final int d; + + /* compiled from: BinarySearchSeeker */ + /* renamed from: b.i.a.c.x2.a$a reason: collision with other inner class name */ + public static class C0093a implements t { + public final d a; + + /* renamed from: b reason: collision with root package name */ + public final long f1146b; + public final long c; + public final long d; + public final long e; + public final long f; + public final long g; + + public C0093a(d dVar, long j, long j2, long j3, long j4, long j5, long j6) { + this.a = dVar; + this.f1146b = j; + this.c = j2; + this.d = j3; + this.e = j4; + this.f = j5; + this.g = j6; + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + return new t.a(new u(j, c.a(this.a.a(j), this.c, this.d, this.e, this.f, this.g))); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.f1146b; + } + } + + /* compiled from: BinarySearchSeeker */ + public static final class b implements d { + @Override // b.i.a.c.x2.a.d + public long a(long j) { + return j; + } + } + + /* compiled from: BinarySearchSeeker */ + public static class c { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f1147b; + public final long c; + public long d; + public long e; + public long f; + public long g; + public long h; + + public c(long j, long j2, long j3, long j4, long j5, long j6, long j7) { + this.a = j; + this.f1147b = j2; + this.d = j3; + this.e = j4; + this.f = j5; + this.g = j6; + this.c = j7; + this.h = a(j2, j3, j4, j5, j6, j7); + } + + public static long a(long j, long j2, long j3, long j4, long j5, long j6) { + if (j4 + 1 >= j5 || j2 + 1 >= j3) { + return j4; + } + long j7 = (long) (((float) (j - j2)) * (((float) (j5 - j4)) / ((float) (j3 - j2)))); + return e0.i(((j7 + j4) - j6) - (j7 / 20), j4, j5 - 1); + } + } + + /* compiled from: BinarySearchSeeker */ + public interface d { + long a(long j); + } + + /* compiled from: BinarySearchSeeker */ + public static final class e { + public static final e a = new e(-3, -9223372036854775807L, -1); + + /* renamed from: b reason: collision with root package name */ + public final int f1148b; + public final long c; + public final long d; + + public e(int i, long j, long j2) { + this.f1148b = i; + this.c = j; + this.d = j2; + } + + public static e a(long j, long j2) { + return new e(-1, j, j2); + } + + public static e b(long j) { + return new e(0, -9223372036854775807L, j); + } + + public static e c(long j, long j2) { + return new e(-2, j, j2); + } + } + + /* compiled from: BinarySearchSeeker */ + public interface f { + void a(); + + e b(i iVar, long j) throws IOException; + } + + public a(d dVar, f fVar, long j, long j2, long j3, long j4, long j5, long j6, int i) { + this.f1145b = fVar; + this.d = i; + this.a = new C0093a(dVar, j, j2, j3, j4, j5, j6); + } + + public int a(i iVar, s sVar) throws IOException { + while (true) { + c cVar = this.c; + b.c.a.a0.d.H(cVar); + long j = cVar.f; + long j2 = cVar.g; + long j3 = cVar.h; + if (j2 - j <= ((long) this.d)) { + c(false, j); + return d(iVar, j, sVar); + } else if (!f(iVar, j3)) { + return d(iVar, j3, sVar); + } else { + iVar.k(); + e b2 = this.f1145b.b(iVar, cVar.f1147b); + int i = b2.f1148b; + if (i == -3) { + c(false, j3); + return d(iVar, j3, sVar); + } else if (i == -2) { + long j4 = b2.c; + long j5 = b2.d; + cVar.d = j4; + cVar.f = j5; + cVar.h = c.a(cVar.f1147b, j4, cVar.e, j5, cVar.g, cVar.c); + } else if (i == -1) { + long j6 = b2.c; + long j7 = b2.d; + cVar.e = j6; + cVar.g = j7; + cVar.h = c.a(cVar.f1147b, cVar.d, j6, cVar.f, j7, cVar.c); + } else if (i == 0) { + f(iVar, b2.d); + c(true, b2.d); + return d(iVar, b2.d, sVar); + } else { + throw new IllegalStateException("Invalid case"); + } + } + } + } + + public final boolean b() { + return this.c != null; + } + + public final void c(boolean z2, long j) { + this.c = null; + this.f1145b.a(); + } + + public final int d(i iVar, long j, s sVar) { + if (j == iVar.getPosition()) { + return 0; + } + sVar.a = j; + return 1; + } + + public final void e(long j) { + c cVar = this.c; + if (cVar == null || cVar.a != j) { + long a = this.a.a.a(j); + C0093a aVar = this.a; + this.c = new c(j, a, aVar.c, aVar.d, aVar.e, aVar.f, aVar.g); + } + } + + public final boolean f(i iVar, long j) throws IOException { + long position = j - iVar.getPosition(); + if (position < 0 || position > Permission.USE_EXTERNAL_EMOJIS) { + return false; + } + iVar.l((int) position); + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/a0.java b/app/src/main/java/b/i/a/c/x2/a0.java new file mode 100644 index 0000000000..df3e41d1fa --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/a0.java @@ -0,0 +1,9 @@ +package b.i.a.c.x2; +/* compiled from: VorbisUtil */ +public final class a0 { + public final boolean a; + + public a0(boolean z2, int i, int i2, int i3) { + this.a = z2; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/b.java b/app/src/main/java/b/i/a/c/x2/b.java new file mode 100644 index 0000000000..8ae50e2dbf --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/b.java @@ -0,0 +1,8 @@ +package b.i.a.c.x2; + +import b.i.a.c.x2.a; +/* compiled from: BinarySearchSeeker */ +public final /* synthetic */ class b { + public static void a(a.f fVar) { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/b0.java b/app/src/main/java/b/i/a/c/x2/b0.java new file mode 100644 index 0000000000..fd60b51074 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/b0.java @@ -0,0 +1,23 @@ +package b.i.a.c.x2; +/* compiled from: VorbisUtil */ +public final class b0 { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1149b; + public final int c; + public final int d; + public final int e; + public final int f; + public final byte[] g; + + public b0(int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, boolean z2, byte[] bArr) { + this.a = i2; + this.f1149b = i3; + this.c = i4; + this.d = i5; + this.e = i7; + this.f = i8; + this.g = bArr; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/c.java b/app/src/main/java/b/i/a/c/x2/c.java new file mode 100644 index 0000000000..7fa29b5f32 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/c.java @@ -0,0 +1,73 @@ +package b.i.a.c.x2; + +import b.d.b.a.a; +import b.i.a.c.f3.e0; +import b.i.a.c.x2.t; +import java.util.Arrays; +/* compiled from: ChunkIndex */ +public final class c implements t { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f1150b; + public final long[] c; + public final long[] d; + public final long[] e; + public final long f; + + public c(int[] iArr, long[] jArr, long[] jArr2, long[] jArr3) { + this.f1150b = iArr; + this.c = jArr; + this.d = jArr2; + this.e = jArr3; + int length = iArr.length; + this.a = length; + if (length > 0) { + this.f = jArr2[length - 1] + jArr3[length - 1]; + } else { + this.f = 0; + } + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + int e = e0.e(this.e, j, true, true); + long[] jArr = this.e; + long j2 = jArr[e]; + long[] jArr2 = this.c; + u uVar = new u(j2, jArr2[e]); + if (j2 >= j || e == this.a - 1) { + return new t.a(uVar); + } + int i = e + 1; + return new t.a(uVar, new u(jArr[i], jArr2[i])); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.f; + } + + public String toString() { + int i = this.a; + String arrays = Arrays.toString(this.f1150b); + String arrays2 = Arrays.toString(this.c); + String arrays3 = Arrays.toString(this.e); + String arrays4 = Arrays.toString(this.d); + StringBuilder sb = new StringBuilder(a.b(arrays4, a.b(arrays3, a.b(arrays2, a.b(arrays, 71))))); + sb.append("ChunkIndex(length="); + sb.append(i); + sb.append(", sizes="); + sb.append(arrays); + a.q0(sb, ", offsets=", arrays2, ", timeUs=", arrays3); + sb.append(", durationsUs="); + sb.append(arrays4); + sb.append(")"); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/c0/a.java b/app/src/main/java/b/i/a/c/x2/c0/a.java new file mode 100644 index 0000000000..69fb0e3eff --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/c0/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.c0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new b(0)}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/c0/b.java b/app/src/main/java/b/i/a/c/x2/c0/b.java new file mode 100644 index 0000000000..0d2663afe0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/c0/b.java @@ -0,0 +1,210 @@ +package b.i.a.c.x2.c0; + +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.f3.e0; +import b.i.a.c.j1; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import b.i.a.c.x2.w; +import com.google.android.exoplayer2.ParserException; +import java.io.EOFException; +import java.io.IOException; +import java.util.Arrays; +/* compiled from: AmrExtractor */ +public final class b implements h { + public static final int[] a = {13, 14, 16, 18, 20, 21, 27, 32, 6, 7, 6, 6, 1, 1, 1, 1}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1151b; + public static final byte[] c = e0.w("#!AMR\n"); + public static final byte[] d = e0.w("#!AMR-WB\n"); + public static final int e; + public final byte[] f; + public final int g; + public boolean h; + public long i; + public int j; + public int k; + public boolean l; + public long m; + public int n; + public int o; + public long p; + public j q; + public w r; + + /* renamed from: s reason: collision with root package name */ + public t f1152s; + public boolean t; + + static { + a aVar = a.a; + int[] iArr = {18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 1, 1, 1, 1, 1, 1}; + f1151b = iArr; + e = iArr[8]; + } + + public b(int i) { + this.g = (i & 2) != 0 ? i | 1 : i; + this.f = new byte[1]; + this.n = -1; + } + + /* JADX WARNING: Code restructure failed: missing block: B:21:0x003a, code lost: + if ((!r0 && (r5 < 12 || r5 > 14)) != false) goto L_0x003c; + */ + public final int a(i iVar) throws IOException { + iVar.k(); + boolean z2 = false; + iVar.o(this.f, 0, 1); + byte b2 = this.f[0]; + if ((b2 & 131) <= 0) { + int i = (b2 >> 3) & 15; + if (i >= 0 && i <= 15) { + boolean z3 = this.h; + if (!(z3 && (i < 10 || i > 13))) { + } + z2 = true; + } + if (z2) { + return this.h ? f1151b[i] : a[i]; + } + String str = this.h ? "WB" : "NB"; + StringBuilder sb = new StringBuilder(str.length() + 35); + sb.append("Illegal AMR "); + sb.append(str); + sb.append(" frame type "); + sb.append(i); + throw ParserException.a(sb.toString(), null); + } + throw a.t0(42, "Invalid padding bits for frame header ", b2, null); + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + return c(iVar); + } + + public final boolean c(i iVar) throws IOException { + byte[] bArr = c; + iVar.k(); + byte[] bArr2 = new byte[bArr.length]; + iVar.o(bArr2, 0, bArr.length); + if (Arrays.equals(bArr2, bArr)) { + this.h = false; + iVar.l(bArr.length); + return true; + } + byte[] bArr3 = d; + iVar.k(); + byte[] bArr4 = new byte[bArr3.length]; + iVar.o(bArr4, 0, bArr3.length); + if (!Arrays.equals(bArr4, bArr3)) { + return false; + } + this.h = true; + iVar.l(bArr3.length); + return true; + } + + /* JADX WARNING: Removed duplicated region for block: B:37:0x00b2 */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + int i; + int i2; + d.H(this.r); + if (iVar.getPosition() != 0 || c(iVar)) { + if (!this.t) { + this.t = true; + boolean z2 = this.h; + String str = z2 ? "audio/amr-wb" : "audio/3gpp"; + int i3 = z2 ? 16000 : 8000; + w wVar = this.r; + j1.b bVar = new j1.b(); + bVar.k = str; + bVar.l = e; + bVar.f1009x = 1; + bVar.f1010y = i3; + wVar.e(bVar.a()); + } + if (this.k == 0) { + try { + int a2 = a(iVar); + this.j = a2; + this.k = a2; + if (this.n == -1) { + this.m = iVar.getPosition(); + this.n = this.j; + } + if (this.n == this.j) { + this.o++; + } + } catch (EOFException unused) { + } + } + int b2 = this.r.b(iVar, this.k, true); + if (b2 != -1) { + int i4 = this.k - b2; + this.k = i4; + if (i4 <= 0) { + this.r.d(this.p + this.i, 1, this.j, 0, null); + this.i += 20000; + } + i = 0; + long b3 = iVar.b(); + if (!this.l) { + int i5 = this.g; + if ((i5 & 1) == 0 || b3 == -1 || !((i2 = this.n) == -1 || i2 == this.j)) { + t.b bVar2 = new t.b(-9223372036854775807L, 0); + this.f1152s = bVar2; + this.q.a(bVar2); + this.l = true; + } else if (this.o >= 20 || i == -1) { + b.i.a.c.x2.d dVar = new b.i.a.c.x2.d(b3, this.m, (int) ((((long) (i2 * 8)) * 1000000) / 20000), i2, (i5 & 2) != 0); + this.f1152s = dVar; + this.q.a(dVar); + this.l = true; + } + } + return i; + } + i = -1; + long b3 = iVar.b(); + if (!this.l) { + } + return i; + } + throw ParserException.a("Could not find AMR header.", null); + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.q = jVar; + this.r = jVar.p(0, 1); + jVar.j(); + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + this.i = 0; + this.j = 0; + this.k = 0; + if (j != 0) { + t tVar = this.f1152s; + if (tVar instanceof b.i.a.c.x2.d) { + b.i.a.c.x2.d dVar = (b.i.a.c.x2.d) tVar; + this.p = b.i.a.c.x2.d.e(j, dVar.f1153b, dVar.e); + return; + } + } + this.p = 0; + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/d.java b/app/src/main/java/b/i/a/c/x2/d.java new file mode 100644 index 0000000000..fdc0a52d39 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/d.java @@ -0,0 +1,72 @@ +package b.i.a.c.x2; + +import b.i.a.c.x2.t; +/* compiled from: ConstantBitrateSeekMap */ +public class d implements t { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f1153b; + public final int c; + public final long d; + public final int e; + public final long f; + public final boolean g; + + public d(long j, long j2, int i, int i2, boolean z2) { + this.a = j; + this.f1153b = j2; + this.c = i2 == -1 ? 1 : i2; + this.e = i; + this.g = z2; + if (j == -1) { + this.d = -1; + this.f = -9223372036854775807L; + return; + } + this.d = j - j2; + this.f = e(j, j2, i); + } + + public static long e(long j, long j2, int i) { + return ((Math.max(0L, j - j2) * 8) * 1000000) / ((long) i); + } + + public long b(long j) { + return e(j, this.f1153b, this.e); + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return this.d != -1 || this.g; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + long j2 = this.d; + if (j2 == -1 && !this.g) { + return new t.a(new u(0, this.f1153b)); + } + long j3 = (long) this.c; + long j4 = (((((long) this.e) * j) / 8000000) / j3) * j3; + if (j2 != -1) { + j4 = Math.min(j4, j2 - j3); + } + long max = this.f1153b + Math.max(j4, 0L); + long b2 = b(max); + u uVar = new u(b2, max); + if (this.d != -1 && b2 < j) { + int i = this.c; + if (((long) i) + max < this.a) { + long j5 = max + ((long) i); + return new t.a(uVar, new u(b(j5), j5)); + } + } + return new t.a(uVar); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.f; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/d0/a.java b/app/src/main/java/b/i/a/c/x2/d0/a.java new file mode 100644 index 0000000000..1b665387d0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/d0/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.d0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new d(0)}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/d0/b.java b/app/src/main/java/b/i/a/c/x2/d0/b.java new file mode 100644 index 0000000000..eaf588aff5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/d0/b.java @@ -0,0 +1,17 @@ +package b.i.a.c.x2.d0; + +import b.i.a.c.x2.a; +import b.i.a.c.x2.o; +/* compiled from: lambda */ +public final /* synthetic */ class b implements a.d { + public final /* synthetic */ o a; + + public /* synthetic */ b(o oVar) { + this.a = oVar; + } + + @Override // b.i.a.c.x2.a.d + public final long a(long j) { + return this.a.g(j); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/d0/c.java b/app/src/main/java/b/i/a/c/x2/d0/c.java new file mode 100644 index 0000000000..21b6286569 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/d0/c.java @@ -0,0 +1,96 @@ +package b.i.a.c.x2.d0; + +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.x2.a; +import b.i.a.c.x2.i; +import b.i.a.c.x2.m; +import b.i.a.c.x2.o; +import com.discord.api.permission.Permission; +import java.io.IOException; +import java.util.Objects; +/* compiled from: FlacBinarySearchSeeker */ +public final class c extends b.i.a.c.x2.a { + + /* compiled from: FlacBinarySearchSeeker */ + public static final class b implements a.f { + public final o a; + + /* renamed from: b reason: collision with root package name */ + public final int f1154b; + public final m.a c = new m.a(); + + public b(o oVar, int i, a aVar) { + this.a = oVar; + this.f1154b = i; + } + + @Override // b.i.a.c.x2.a.f + public /* synthetic */ void a() { + b.i.a.c.x2.b.a(this); + } + + @Override // b.i.a.c.x2.a.f + public a.e b(i iVar, long j) throws IOException { + long position = iVar.getPosition(); + long c = c(iVar); + long f = iVar.f(); + iVar.g(Math.max(6, this.a.c)); + long c2 = c(iVar); + return (c > j || c2 <= j) ? c2 <= j ? a.e.c(c2, iVar.f()) : a.e.a(c, position) : a.e.b(f); + } + + public final long c(i iVar) throws IOException { + while (iVar.f() < iVar.b() - 6) { + o oVar = this.a; + int i = this.f1154b; + m.a aVar = this.c; + long f = iVar.f(); + byte[] bArr = new byte[2]; + boolean z2 = false; + iVar.o(bArr, 0, 2); + if ((((bArr[0] & 255) << 8) | (bArr[1] & 255)) != i) { + iVar.k(); + iVar.g((int) (f - iVar.getPosition())); + } else { + x xVar = new x(16); + System.arraycopy(bArr, 0, xVar.a, 0, 2); + xVar.D(d.x1(iVar, xVar.a, 2, 14)); + iVar.k(); + iVar.g((int) (f - iVar.getPosition())); + z2 = m.b(xVar, oVar, i, aVar); + } + if (z2) { + break; + } + iVar.g(1); + } + if (iVar.f() < iVar.b() - 6) { + return this.c.a; + } + iVar.g((int) (iVar.b() - iVar.f())); + return this.a.j; + } + } + + /* JADX WARNING: Illegal instructions before constructor call */ + public c(o oVar, int i, long j, long j2) { + super(r1, r2, r3, 0, r7, j, j2, r5 + r9, Math.max(6, oVar.c)); + long j3; + long j4; + Objects.requireNonNull(oVar); + b bVar = new b(oVar); + b bVar2 = new b(oVar, i, null); + long d = oVar.d(); + long j5 = oVar.j; + int i2 = oVar.d; + if (i2 > 0) { + j4 = (((long) i2) + ((long) oVar.c)) / 2; + j3 = 1; + } else { + int i3 = oVar.a; + j4 = ((((i3 != oVar.f1278b || i3 <= 0) ? Permission.SEND_TTS_MESSAGES : (long) i3) * ((long) oVar.g)) * ((long) oVar.h)) / 8; + j3 = 64; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/d0/d.java b/app/src/main/java/b/i/a/c/x2/d0/d.java new file mode 100644 index 0000000000..07cf6b3f80 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/d0/d.java @@ -0,0 +1,382 @@ +package b.i.a.c.x2.d0; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.m; +import b.i.a.c.x2.n; +import b.i.a.c.x2.o; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import b.i.a.c.x2.w; +import b.i.b.a.c; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.flac.PictureFrame; +import java.io.IOException; +import java.util.Arrays; +import java.util.Collections; +import java.util.Objects; +/* compiled from: FlacExtractor */ +public final class d implements h { + public final byte[] a = new byte[42]; + + /* renamed from: b reason: collision with root package name */ + public final x f1155b = new x(new byte[32768], 0); + public final boolean c; + public final m.a d; + public j e; + public w f; + public int g; + @Nullable + public Metadata h; + public o i; + public int j; + public int k; + public c l; + public int m; + public long n; + + static { + a aVar = a.a; + } + + public d(int i) { + this.c = (i & 1) == 0 ? false : true; + this.d = new m.a(); + this.g = 0; + } + + public final void a() { + o oVar = this.i; + int i = e0.a; + this.f.d((this.n * 1000000) / ((long) oVar.e), 1, this.m, 0, null); + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + b.c.a.a0.d.w1(iVar, false); + byte[] bArr = new byte[4]; + iVar.o(bArr, 0, 4); + return (((((((long) bArr[0]) & 255) << 24) | ((((long) bArr[1]) & 255) << 16)) | ((((long) bArr[2]) & 255) << 8)) | (255 & ((long) bArr[3]))) == 1716281667; + } + + /* JADX DEBUG: Multi-variable search result rejected for r27v0, resolved type: b.i.a.c.x2.i */ + /* JADX DEBUG: Multi-variable search result rejected for r6v28, resolved type: boolean */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + boolean z2; + o oVar; + t tVar; + long j; + boolean z3; + int i = this.g; + boolean z4 = true; + ?? r4 = 0; + if (i == 0) { + iVar.k(); + long f = iVar.f(); + Metadata w1 = b.c.a.a0.d.w1(iVar, !this.c); + iVar.l((int) (iVar.f() - f)); + this.h = w1; + this.g = 1; + return 0; + } else if (i != 1) { + int i2 = 4; + int i3 = 3; + if (i != 2) { + int i4 = 7; + if (i != 3) { + long j2 = 0; + if (i == 4) { + iVar.k(); + byte[] bArr = new byte[2]; + iVar.o(bArr, 0, 2); + int i5 = (bArr[1] & 255) | ((bArr[0] & 255) << 8); + if ((i5 >> 2) == 16382) { + iVar.k(); + this.k = i5; + j jVar = this.e; + int i6 = e0.a; + long position = iVar.getPosition(); + long b2 = iVar.b(); + Objects.requireNonNull(this.i); + o oVar2 = this.i; + if (oVar2.k != null) { + tVar = new n(oVar2, position); + } else if (b2 == -1 || oVar2.j <= 0) { + tVar = new t.b(oVar2.d(), 0); + } else { + c cVar = new c(oVar2, this.k, position, b2); + this.l = cVar; + tVar = cVar.a; + } + jVar.a(tVar); + this.g = 5; + return 0; + } + iVar.k(); + throw ParserException.a("First frame does not start with sync code.", null); + } else if (i == 5) { + Objects.requireNonNull(this.f); + Objects.requireNonNull(this.i); + c cVar2 = this.l; + if (cVar2 != null && cVar2.b()) { + return this.l.a(iVar, sVar); + } + if (this.n == -1) { + o oVar3 = this.i; + iVar.k(); + iVar.g(1); + byte[] bArr2 = new byte[1]; + iVar.o(bArr2, 0, 1); + boolean z5 = (bArr2[0] & 1) == 1; + iVar.g(2); + if (!z5) { + i4 = 6; + } + x xVar = new x(i4); + xVar.D(b.c.a.a0.d.x1(iVar, xVar.a, 0, i4)); + iVar.k(); + try { + long z6 = xVar.z(); + if (!z5) { + z6 *= (long) oVar3.f1278b; + } + j2 = z6; + } catch (NumberFormatException unused) { + z4 = false; + } + if (z4) { + this.n = j2; + return 0; + } + throw ParserException.a(null, null); + } + x xVar2 = this.f1155b; + int i7 = xVar2.c; + if (i7 < 32768) { + int read = iVar.read(xVar2.a, i7, 32768 - i7); + if (read != -1) { + z4 = false; + } + if (!z4) { + this.f1155b.D(i7 + read); + } else if (this.f1155b.a() == 0) { + a(); + return -1; + } + } else { + z4 = false; + } + x xVar3 = this.f1155b; + int i8 = xVar3.f970b; + int i9 = this.m; + int i10 = this.j; + if (i9 < i10) { + xVar3.F(Math.min(i10 - i9, xVar3.a())); + } + x xVar4 = this.f1155b; + Objects.requireNonNull(this.i); + int i11 = xVar4.f970b; + while (true) { + if (i11 <= xVar4.c - 16) { + xVar4.E(i11); + if (m.b(xVar4, this.i, this.k, this.d)) { + xVar4.E(i11); + j = this.d.a; + break; + } + i11++; + } else { + if (z4) { + while (true) { + int i12 = xVar4.c; + if (i11 > i12 - this.j) { + xVar4.E(i12); + break; + } + xVar4.E(i11); + try { + z3 = m.b(xVar4, this.i, this.k, this.d); + } catch (IndexOutOfBoundsException unused2) { + z3 = false; + } + if (xVar4.f970b > xVar4.c) { + z3 = false; + } + if (z3) { + xVar4.E(i11); + j = this.d.a; + break; + } + i11++; + } + } else { + xVar4.E(i11); + } + j = -1; + } + } + x xVar5 = this.f1155b; + int i13 = xVar5.f970b - i8; + xVar5.E(i8); + this.f.c(this.f1155b, i13); + this.m += i13; + if (j != -1) { + a(); + this.m = 0; + this.n = j; + } + if (this.f1155b.a() >= 16) { + return 0; + } + int a = this.f1155b.a(); + x xVar6 = this.f1155b; + byte[] bArr3 = xVar6.a; + System.arraycopy(bArr3, xVar6.f970b, bArr3, 0, a); + this.f1155b.E(0); + this.f1155b.D(a); + return 0; + } else { + throw new IllegalStateException(); + } + } else { + o oVar4 = this.i; + boolean z7 = false; + while (!z7) { + iVar.k(); + b.i.a.c.f3.w wVar = new b.i.a.c.f3.w(new byte[i2]); + byte[] bArr4 = wVar.a; + int i14 = r4 == true ? 1 : 0; + int i15 = r4 == true ? 1 : 0; + int i16 = r4 == true ? 1 : 0; + iVar.o(bArr4, i14, i2); + boolean f2 = wVar.f(); + int g = wVar.g(i4); + int g2 = wVar.g(24) + i2; + if (g == 0) { + byte[] bArr5 = new byte[38]; + iVar.readFully(bArr5, r4, 38); + oVar4 = new o(bArr5, i2); + } else if (oVar4 == null) { + throw new IllegalArgumentException(); + } else if (g == i3) { + x xVar7 = new x(g2); + iVar.readFully(xVar7.a, r4, g2); + oVar4 = oVar4.b(b.c.a.a0.d.J1(xVar7)); + } else { + if (g == i2) { + x xVar8 = new x(g2); + iVar.readFully(xVar8.a, r4, g2); + xVar8.F(i2); + z2 = f2; + oVar = new o(oVar4.a, oVar4.f1278b, oVar4.c, oVar4.d, oVar4.e, oVar4.g, oVar4.h, oVar4.j, oVar4.k, oVar4.f(o.a(Arrays.asList(b.c.a.a0.d.L1(xVar8, r4, r4).a), Collections.emptyList()))); + } else { + z2 = f2; + if (g == 6) { + x xVar9 = new x(g2); + iVar.readFully(xVar9.a, 0, g2); + xVar9.F(i2); + int f3 = xVar9.f(); + String r = xVar9.r(xVar9.f(), c.a); + String q = xVar9.q(xVar9.f()); + int f4 = xVar9.f(); + int f5 = xVar9.f(); + int f6 = xVar9.f(); + int f7 = xVar9.f(); + int f8 = xVar9.f(); + byte[] bArr6 = new byte[f8]; + System.arraycopy(xVar9.a, xVar9.f970b, bArr6, 0, f8); + xVar9.f970b += f8; + oVar = new o(oVar4.a, oVar4.f1278b, oVar4.c, oVar4.d, oVar4.e, oVar4.g, oVar4.h, oVar4.j, oVar4.k, oVar4.f(o.a(Collections.emptyList(), Collections.singletonList(new PictureFrame(f3, r, q, f4, f5, f6, f7, bArr6))))); + } else { + iVar.l(g2); + int i17 = e0.a; + this.i = oVar4; + z7 = z2; + r4 = 0; + i2 = 4; + i3 = 3; + i4 = 7; + } + } + oVar4 = oVar; + int i17 = e0.a; + this.i = oVar4; + z7 = z2; + r4 = 0; + i2 = 4; + i3 = 3; + i4 = 7; + } + z2 = f2; + int i17 = e0.a; + this.i = oVar4; + z7 = z2; + r4 = 0; + i2 = 4; + i3 = 3; + i4 = 7; + } + Objects.requireNonNull(this.i); + this.j = Math.max(this.i.c, 6); + w wVar2 = this.f; + int i18 = e0.a; + wVar2.e(this.i.e(this.a, this.h)); + this.g = 4; + return 0; + } + } else { + byte[] bArr7 = new byte[4]; + iVar.readFully(bArr7, 0, 4); + if ((((((long) bArr7[0]) & 255) << 24) | ((((long) bArr7[1]) & 255) << 16) | ((((long) bArr7[2]) & 255) << 8) | (((long) bArr7[3]) & 255)) == 1716281667) { + this.g = 3; + return 0; + } + throw ParserException.a("Failed to read FLAC stream marker.", null); + } + } else { + byte[] bArr8 = this.a; + iVar.o(bArr8, 0, bArr8.length); + iVar.k(); + this.g = 2; + return 0; + } + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.e = jVar; + this.f = jVar.p(0, 1); + jVar.j(); + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + long j3 = 0; + if (j == 0) { + this.g = 0; + } else { + c cVar = this.l; + if (cVar != null) { + cVar.e(j2); + } + } + if (j2 != 0) { + j3 = -1; + } + this.n = j3; + this.m = 0; + this.f1155b.A(0); + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/e.java b/app/src/main/java/b/i/a/c/x2/e.java new file mode 100644 index 0000000000..ce236d6e0a --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/e.java @@ -0,0 +1,208 @@ +package b.i.a.c.x2; + +import b.i.a.c.e3.h; +import b.i.a.c.f3.e0; +import b.i.a.c.i1; +import java.io.EOFException; +import java.io.IOException; +import java.io.InterruptedIOException; +import java.util.Arrays; +/* compiled from: DefaultExtractorInput */ +public final class e implements i { + public final byte[] a = new byte[4096]; + + /* renamed from: b reason: collision with root package name */ + public final h f1156b; + public final long c; + public long d; + public byte[] e = new byte[65536]; + public int f; + public int g; + + static { + i1.a("goog.exo.extractor"); + } + + public e(h hVar, long j, long j2) { + this.f1156b = hVar; + this.d = j; + this.c = j2; + } + + @Override // b.i.a.c.x2.i + public long b() { + return this.c; + } + + @Override // b.i.a.c.x2.i + public boolean c(byte[] bArr, int i, int i2, boolean z2) throws IOException { + int i3; + int i4 = this.g; + if (i4 == 0) { + i3 = 0; + } else { + i3 = Math.min(i4, i2); + System.arraycopy(this.e, 0, bArr, i, i3); + s(i3); + } + int i5 = i3; + while (i5 < i2 && i5 != -1) { + i5 = r(bArr, i, i2, i5, z2); + } + p(i5); + return i5 != -1; + } + + @Override // b.i.a.c.x2.i + public boolean e(byte[] bArr, int i, int i2, boolean z2) throws IOException { + if (!m(i2, z2)) { + return false; + } + System.arraycopy(this.e, this.f - i2, bArr, i, i2); + return true; + } + + @Override // b.i.a.c.x2.i + public long f() { + return this.d + ((long) this.f); + } + + @Override // b.i.a.c.x2.i + public void g(int i) throws IOException { + m(i, false); + } + + @Override // b.i.a.c.x2.i + public long getPosition() { + return this.d; + } + + @Override // b.i.a.c.x2.i + public int h(int i) throws IOException { + int min = Math.min(this.g, i); + s(min); + if (min == 0) { + byte[] bArr = this.a; + min = r(bArr, 0, Math.min(i, bArr.length), 0, true); + } + p(min); + return min; + } + + @Override // b.i.a.c.x2.i + public int i(byte[] bArr, int i, int i2) throws IOException { + int i3; + q(i2); + int i4 = this.g; + int i5 = this.f; + int i6 = i4 - i5; + if (i6 == 0) { + i3 = r(this.e, i5, i2, 0, true); + if (i3 == -1) { + return -1; + } + this.g += i3; + } else { + i3 = Math.min(i2, i6); + } + System.arraycopy(this.e, this.f, bArr, i, i3); + this.f += i3; + return i3; + } + + @Override // b.i.a.c.x2.i + public void k() { + this.f = 0; + } + + @Override // b.i.a.c.x2.i + public void l(int i) throws IOException { + int min = Math.min(this.g, i); + s(min); + int i2 = min; + while (i2 < i && i2 != -1) { + i2 = r(this.a, -i2, Math.min(i, this.a.length + i2), i2, false); + } + p(i2); + } + + @Override // b.i.a.c.x2.i + public boolean m(int i, boolean z2) throws IOException { + q(i); + int i2 = this.g - this.f; + while (i2 < i) { + i2 = r(this.e, this.f, i, i2, z2); + if (i2 == -1) { + return false; + } + this.g = this.f + i2; + } + this.f += i; + return true; + } + + @Override // b.i.a.c.x2.i + public void o(byte[] bArr, int i, int i2) throws IOException { + e(bArr, i, i2, false); + } + + public final void p(int i) { + if (i != -1) { + this.d += (long) i; + } + } + + public final void q(int i) { + int i2 = this.f + i; + byte[] bArr = this.e; + if (i2 > bArr.length) { + this.e = Arrays.copyOf(this.e, e0.h(bArr.length * 2, 65536 + i2, i2 + 524288)); + } + } + + public final int r(byte[] bArr, int i, int i2, int i3, boolean z2) throws IOException { + if (!Thread.interrupted()) { + int read = this.f1156b.read(bArr, i + i3, i2 - i3); + if (read != -1) { + return i3 + read; + } + if (i3 == 0 && z2) { + return -1; + } + throw new EOFException(); + } + throw new InterruptedIOException(); + } + + @Override // b.i.a.c.x2.i, b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) throws IOException { + int i3 = this.g; + int i4 = 0; + if (i3 != 0) { + int min = Math.min(i3, i2); + System.arraycopy(this.e, 0, bArr, i, min); + s(min); + i4 = min; + } + if (i4 == 0) { + i4 = r(bArr, i, i2, 0, true); + } + p(i4); + return i4; + } + + @Override // b.i.a.c.x2.i + public void readFully(byte[] bArr, int i, int i2) throws IOException { + c(bArr, i, i2, false); + } + + public final void s(int i) { + int i2 = this.g - i; + this.g = i2; + this.f = 0; + byte[] bArr = this.e; + byte[] bArr2 = i2 < bArr.length - 524288 ? new byte[(65536 + i2)] : bArr; + System.arraycopy(bArr, i, bArr2, 0, i2); + this.e = bArr2; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/e0/a.java b/app/src/main/java/b/i/a/c/x2/e0/a.java new file mode 100644 index 0000000000..42c3f81cdf --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/e0/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.e0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new c()}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/e0/b.java b/app/src/main/java/b/i/a/c/x2/e0/b.java new file mode 100644 index 0000000000..ec65f5a3cb --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/e0/b.java @@ -0,0 +1,89 @@ +package b.i.a.c.x2.e0; + +import b.d.b.a.a; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.l; +import b.i.a.c.x2.w; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.extractor.flv.TagPayloadReader; +import java.util.Collections; +/* compiled from: AudioTagPayloadReader */ +public final class b extends TagPayloadReader { + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1157b = {5512, 11025, 22050, 44100}; + public boolean c; + public boolean d; + public int e; + + public b(w wVar) { + super(wVar); + } + + @Override // com.google.android.exoplayer2.extractor.flv.TagPayloadReader + public boolean b(x xVar) throws TagPayloadReader.UnsupportedFormatException { + if (!this.c) { + int t = xVar.t(); + int i = (t >> 4) & 15; + this.e = i; + if (i == 2) { + int i2 = f1157b[(t >> 2) & 3]; + j1.b bVar = new j1.b(); + bVar.k = "audio/mpeg"; + bVar.f1009x = 1; + bVar.f1010y = i2; + this.a.e(bVar.a()); + this.d = true; + } else if (i == 7 || i == 8) { + String str = i == 7 ? "audio/g711-alaw" : "audio/g711-mlaw"; + j1.b bVar2 = new j1.b(); + bVar2.k = str; + bVar2.f1009x = 1; + bVar2.f1010y = 8000; + this.a.e(bVar2.a()); + this.d = true; + } else if (i != 10) { + throw new TagPayloadReader.UnsupportedFormatException(a.f(39, "Audio format not supported: ", this.e)); + } + this.c = true; + } else { + xVar.F(1); + } + return true; + } + + @Override // com.google.android.exoplayer2.extractor.flv.TagPayloadReader + public boolean c(x xVar, long j) throws ParserException { + if (this.e == 2) { + int a = xVar.a(); + this.a.c(xVar, a); + this.a.d(j, 1, a, 0, null); + return true; + } + int t = xVar.t(); + if (t == 0 && !this.d) { + int a2 = xVar.a(); + byte[] bArr = new byte[a2]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, a2); + xVar.f970b += a2; + l.b b2 = l.b(new b.i.a.c.f3.w(bArr), false); + j1.b bVar = new j1.b(); + bVar.k = "audio/mp4a-latm"; + bVar.h = b2.c; + bVar.f1009x = b2.f1108b; + bVar.f1010y = b2.a; + bVar.m = Collections.singletonList(bArr); + this.a.e(bVar.a()); + this.d = true; + return false; + } else if (this.e == 10 && t != 1) { + return false; + } else { + int a3 = xVar.a(); + this.a.c(xVar, a3); + this.a.d(j, 1, a3, 0, null); + return true; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/e0/c.java b/app/src/main/java/b/i/a/c/x2/e0/c.java new file mode 100644 index 0000000000..ad27dda8ae --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/e0/c.java @@ -0,0 +1,200 @@ +package b.i.a.c.x2.e0; + +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.r; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import java.io.IOException; +import org.checkerframework.checker.nullness.qual.RequiresNonNull; +/* compiled from: FlvExtractor */ +public final class c implements h { + public final x a = new x(4); + + /* renamed from: b reason: collision with root package name */ + public final x f1158b = new x(9); + public final x c = new x(11); + public final x d = new x(); + public final d e = new d(); + public j f; + public int g = 1; + public boolean h; + public long i; + public int j; + public int k; + public int l; + public long m; + public boolean n; + public b o; + public e p; + + static { + a aVar = a.a; + } + + @RequiresNonNull({"extractorOutput"}) + public final void a() { + if (!this.n) { + this.f.a(new t.b(-9223372036854775807L, 0)); + this.n = true; + } + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + iVar.o(this.a.a, 0, 3); + this.a.E(0); + if (this.a.v() != 4607062) { + return false; + } + iVar.o(this.a.a, 0, 2); + this.a.E(0); + if ((this.a.y() & 250) != 0) { + return false; + } + iVar.o(this.a.a, 0, 4); + this.a.E(0); + int f = this.a.f(); + iVar.k(); + iVar.g(f); + iVar.o(this.a.a, 0, 4); + this.a.E(0); + return this.a.f() == 0; + } + + public final x c(i iVar) throws IOException { + int i = this.l; + x xVar = this.d; + byte[] bArr = xVar.a; + if (i > bArr.length) { + xVar.a = new byte[Math.max(bArr.length * 2, i)]; + xVar.c = 0; + xVar.f970b = 0; + } else { + xVar.E(0); + } + this.d.D(this.l); + iVar.readFully(this.d.a, 0, this.l); + return this.d; + } + + /* JADX WARNING: Removed duplicated region for block: B:37:0x00a6 */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x00aa */ + /* JADX WARNING: Removed duplicated region for block: B:75:0x00b4 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:82:0x0009 A[SYNTHETIC] */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + boolean z2; + boolean z3; + d.H(this.f); + while (true) { + int i = this.g; + boolean z4 = false; + if (i == 1) { + if (iVar.c(this.f1158b.a, 0, 9, true)) { + this.f1158b.E(0); + this.f1158b.F(4); + int t = this.f1158b.t(); + boolean z5 = (t & 4) != 0; + if ((t & 1) != 0) { + z4 = true; + } + if (z5 && this.o == null) { + this.o = new b(this.f.p(8, 1)); + } + if (z4 && this.p == null) { + this.p = new e(this.f.p(9, 2)); + } + this.f.j(); + this.j = (this.f1158b.f() - 9) + 4; + this.g = 2; + z4 = true; + } + if (!z4) { + return -1; + } + } else if (i == 2) { + iVar.l(this.j); + this.j = 0; + this.g = 3; + } else if (i == 3) { + if (iVar.c(this.c.a, 0, 11, true)) { + this.c.E(0); + this.k = this.c.t(); + this.l = this.c.v(); + this.m = (long) this.c.v(); + this.m = (((long) (this.c.t() << 24)) | this.m) * 1000; + this.c.F(3); + this.g = 4; + z4 = true; + } + if (!z4) { + return -1; + } + } else if (i == 4) { + long j = this.h ? this.i + this.m : this.e.f1159b == -9223372036854775807L ? 0 : this.m; + int i2 = this.k; + if (i2 == 8 && this.o != null) { + a(); + z3 = this.o.a(c(iVar), j); + } else if (i2 == 9 && this.p != null) { + a(); + z3 = this.p.a(c(iVar), j); + } else if (i2 != 18 || this.n) { + iVar.l(this.l); + z3 = false; + z2 = false; + if (!this.h && z3) { + this.h = true; + this.i = this.e.f1159b != -9223372036854775807L ? -this.m : 0; + } + this.j = 4; + this.g = 2; + if (!z2) { + return 0; + } + } else { + z3 = this.e.a(c(iVar), j); + d dVar = this.e; + long j2 = dVar.f1159b; + if (j2 != -9223372036854775807L) { + this.f.a(new r(dVar.d, dVar.c, j2)); + this.n = true; + } + } + z2 = true; + this.h = true; + this.i = this.e.f1159b != -9223372036854775807L ? -this.m : 0; + this.j = 4; + this.g = 2; + if (!z2) { + } + } else { + throw new IllegalStateException(); + } + } + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.f = jVar; + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + if (j == 0) { + this.g = 1; + this.h = false; + } else { + this.g = 3; + } + this.j = 0; + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/e0/d.java b/app/src/main/java/b/i/a/c/x2/e0/d.java new file mode 100644 index 0000000000..fc79defdd4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/e0/d.java @@ -0,0 +1,145 @@ +package b.i.a.c.x2.e0; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.x; +import b.i.a.c.x2.g; +import com.google.android.exoplayer2.extractor.flv.TagPayloadReader; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +/* compiled from: ScriptTagPayloadReader */ +public final class d extends TagPayloadReader { + + /* renamed from: b reason: collision with root package name */ + public long f1159b = -9223372036854775807L; + public long[] c = new long[0]; + public long[] d = new long[0]; + + public d() { + super(new g()); + } + + @Nullable + public static Object d(x xVar, int i) { + if (i == 0) { + return Double.valueOf(Double.longBitsToDouble(xVar.m())); + } + boolean z2 = false; + if (i == 1) { + if (xVar.t() == 1) { + z2 = true; + } + return Boolean.valueOf(z2); + } else if (i == 2) { + return f(xVar); + } else { + if (i == 3) { + HashMap hashMap = new HashMap(); + while (true) { + String f = f(xVar); + int t = xVar.t(); + if (t == 9) { + return hashMap; + } + Object d = d(xVar, t); + if (d != null) { + hashMap.put(f, d); + } + } + } else if (i == 8) { + return e(xVar); + } else { + if (i == 10) { + int w = xVar.w(); + ArrayList arrayList = new ArrayList(w); + for (int i2 = 0; i2 < w; i2++) { + Object d2 = d(xVar, xVar.t()); + if (d2 != null) { + arrayList.add(d2); + } + } + return arrayList; + } else if (i != 11) { + return null; + } else { + Date date = new Date((long) Double.valueOf(Double.longBitsToDouble(xVar.m())).doubleValue()); + xVar.F(2); + return date; + } + } + } + } + + public static HashMap e(x xVar) { + int w = xVar.w(); + HashMap hashMap = new HashMap<>(w); + for (int i = 0; i < w; i++) { + String f = f(xVar); + Object d = d(xVar, xVar.t()); + if (d != null) { + hashMap.put(f, d); + } + } + return hashMap; + } + + public static String f(x xVar) { + int y2 = xVar.y(); + int i = xVar.f970b; + xVar.F(y2); + return new String(xVar.a, i, y2); + } + + @Override // com.google.android.exoplayer2.extractor.flv.TagPayloadReader + public boolean b(x xVar) { + return true; + } + + @Override // com.google.android.exoplayer2.extractor.flv.TagPayloadReader + public boolean c(x xVar, long j) { + if (xVar.t() != 2 || !"onMetaData".equals(f(xVar)) || xVar.t() != 8) { + return false; + } + HashMap e = e(xVar); + Object obj = e.get("duration"); + if (obj instanceof Double) { + double doubleValue = ((Double) obj).doubleValue(); + if (doubleValue > ShadowDrawableWrapper.COS_45) { + this.f1159b = (long) (doubleValue * 1000000.0d); + } + } + Object obj2 = e.get("keyframes"); + if (obj2 instanceof Map) { + Map map = (Map) obj2; + Object obj3 = map.get("filepositions"); + Object obj4 = map.get("times"); + if ((obj3 instanceof List) && (obj4 instanceof List)) { + List list = (List) obj3; + List list2 = (List) obj4; + int size = list2.size(); + this.c = new long[size]; + this.d = new long[size]; + int i = 0; + while (true) { + if (i >= size) { + break; + } + Object obj5 = list.get(i); + Object obj6 = list2.get(i); + if (!(obj6 instanceof Double) || !(obj5 instanceof Double)) { + break; + } + this.c[i] = (long) (((Double) obj6).doubleValue() * 1000000.0d); + this.d[i] = ((Double) obj5).longValue(); + i++; + } + this.c = new long[0]; + this.d = new long[0]; + } + } + return false; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/e0/e.java b/app/src/main/java/b/i/a/c/x2/e0/e.java new file mode 100644 index 0000000000..3c0328231b --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/e0/e.java @@ -0,0 +1,92 @@ +package b.i.a.c.x2.e0; + +import b.d.b.a.a; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import b.i.a.c.g3.m; +import b.i.a.c.j1; +import b.i.a.c.x2.w; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.extractor.flv.TagPayloadReader; +/* compiled from: VideoTagPayloadReader */ +public final class e extends TagPayloadReader { + + /* renamed from: b reason: collision with root package name */ + public final x f1160b = new x(u.a); + public final x c = new x(4); + public int d; + public boolean e; + public boolean f; + public int g; + + public e(w wVar) { + super(wVar); + } + + @Override // com.google.android.exoplayer2.extractor.flv.TagPayloadReader + public boolean b(x xVar) throws TagPayloadReader.UnsupportedFormatException { + int t = xVar.t(); + int i = (t >> 4) & 15; + int i2 = t & 15; + if (i2 == 7) { + this.g = i; + return i != 5; + } + throw new TagPayloadReader.UnsupportedFormatException(a.f(39, "Video format not supported: ", i2)); + } + + @Override // com.google.android.exoplayer2.extractor.flv.TagPayloadReader + public boolean c(x xVar, long j) throws ParserException { + int t = xVar.t(); + byte[] bArr = xVar.a; + int i = xVar.f970b; + int i2 = i + 1; + xVar.f970b = i2; + int i3 = i2 + 1; + xVar.f970b = i3; + int i4 = (((bArr[i] & 255) << 24) >> 8) | ((bArr[i2] & 255) << 8); + xVar.f970b = i3 + 1; + long j2 = (((long) ((bArr[i3] & 255) | i4)) * 1000) + j; + if (t == 0 && !this.e) { + x xVar2 = new x(new byte[xVar.a()]); + xVar.e(xVar2.a, 0, xVar.a()); + m b2 = m.b(xVar2); + this.d = b2.f972b; + j1.b bVar = new j1.b(); + bVar.k = "video/avc"; + bVar.h = b2.f; + bVar.p = b2.c; + bVar.q = b2.d; + bVar.t = b2.e; + bVar.m = b2.a; + this.a.e(bVar.a()); + this.e = true; + return false; + } else if (t != 1 || !this.e) { + return false; + } else { + int i5 = this.g == 1 ? 1 : 0; + if (!this.f && i5 == 0) { + return false; + } + byte[] bArr2 = this.c.a; + bArr2[0] = 0; + bArr2[1] = 0; + bArr2[2] = 0; + int i6 = 4 - this.d; + int i7 = 0; + while (xVar.a() > 0) { + xVar.e(this.c.a, i6, this.d); + this.c.E(0); + int w = this.c.w(); + this.f1160b.E(0); + this.a.c(this.f1160b, 4); + this.a.c(xVar, w); + i7 = i7 + 4 + w; + } + this.a.d(j2, i5, i7, 0, null); + this.f = true; + return true; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/f.java b/app/src/main/java/b/i/a/c/x2/f.java new file mode 100644 index 0000000000..58d8c1e6ee --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/f.java @@ -0,0 +1,147 @@ +package b.i.a.c.x2; + +import android.net.Uri; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.x2.c0.b; +import b.i.a.c.x2.e0.c; +import b.i.a.c.x2.g0.e; +import b.i.a.c.x2.i0.g; +import b.i.a.c.x2.i0.i; +import b.i.a.c.x2.k0.b0; +import b.i.a.c.x2.k0.h; +import b.i.a.c.x2.k0.h0; +import b.i.a.c.x2.k0.j; +import java.lang.reflect.Constructor; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: DefaultExtractorsFactory */ +public final class f implements l { + public static final int[] a = {5, 4, 12, 8, 3, 10, 9, 11, 6, 2, 0, 1, 7, 14}; + + /* renamed from: b reason: collision with root package name */ + public static final a f1161b = new a(); + + /* compiled from: DefaultExtractorsFactory */ + public static final class a { + public final AtomicBoolean a = new AtomicBoolean(false); + @Nullable + @GuardedBy("extensionLoaded") + + /* renamed from: b reason: collision with root package name */ + public Constructor f1162b; + } + + @Override // b.i.a.c.x2.l + public synchronized h[] a() { + return b(Uri.EMPTY, new HashMap()); + } + + @Override // b.i.a.c.x2.l + public synchronized h[] b(Uri uri, Map> map) { + ArrayList arrayList; + arrayList = new ArrayList(14); + int N0 = d.N0(map); + if (N0 != -1) { + c(N0, arrayList); + } + int O0 = d.O0(uri); + if (!(O0 == -1 || O0 == N0)) { + c(O0, arrayList); + } + int[] iArr = a; + for (int i : iArr) { + if (!(i == N0 || i == O0)) { + c(i, arrayList); + } + } + return (h[]) arrayList.toArray(new h[arrayList.size()]); + } + + public final void c(int i, List list) { + h hVar; + Constructor constructor; + switch (i) { + case 0: + list.add(new b.i.a.c.x2.k0.f()); + return; + case 1: + list.add(new h()); + return; + case 2: + list.add(new j(0)); + return; + case 3: + list.add(new b(0)); + return; + case 4: + a aVar = f1161b; + synchronized (aVar.a) { + hVar = null; + if (aVar.a.get()) { + constructor = aVar.f1162b; + } else { + try { + if (Boolean.TRUE.equals(Class.forName("com.google.android.exoplayer2.ext.flac.FlacLibrary").getMethod("isAvailable", new Class[0]).invoke(null, new Object[0]))) { + aVar.f1162b = Class.forName("com.google.android.exoplayer2.ext.flac.FlacExtractor").asSubclass(h.class).getConstructor(Integer.TYPE); + } + } catch (ClassNotFoundException unused) { + } catch (Exception e) { + throw new RuntimeException("Error instantiating FLAC extension", e); + } + aVar.a.set(true); + constructor = aVar.f1162b; + } + } + if (constructor != null) { + try { + hVar = (h) constructor.newInstance(0); + } catch (Exception e2) { + throw new IllegalStateException("Unexpected error creating FLAC extractor", e2); + } + } + if (hVar != null) { + list.add(hVar); + return; + } else { + list.add(new b.i.a.c.x2.d0.d(0)); + return; + } + case 5: + list.add(new c()); + return; + case 6: + list.add(new e(0)); + return; + case 7: + list.add(new b.i.a.c.x2.h0.f(0)); + return; + case 8: + list.add(new g(0)); + list.add(new i(0)); + return; + case 9: + list.add(new b.i.a.c.x2.j0.d()); + return; + case 10: + list.add(new b0()); + return; + case 11: + list.add(new h0(1, 0, 112800)); + return; + case 12: + list.add(new b.i.a.c.x2.l0.b()); + return; + case 13: + default: + return; + case 14: + list.add(new b.i.a.c.x2.f0.a()); + return; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/f0/a.java b/app/src/main/java/b/i/a/c/x2/f0/a.java new file mode 100644 index 0000000000..348c8f1240 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/f0/a.java @@ -0,0 +1,272 @@ +package b.i.a.c.x2.f0; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.f0.b; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.i0.l; +import b.i.a.c.x2.j; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import b.i.a.c.x2.w; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.mp4.MotionPhotoMetadata; +import java.io.IOException; +import java.util.Objects; +import org.xmlpull.v1.XmlPullParserException; +/* compiled from: JpegExtractor */ +public final class a implements h { + public final x a = new x(6); + + /* renamed from: b reason: collision with root package name */ + public j f1163b; + public int c; + public int d; + public int e; + public long f = -1; + @Nullable + public MotionPhotoMetadata g; + public i h; + public c i; + @Nullable + public b.i.a.c.x2.i0.i j; + + public final void a() { + c(new Metadata.Entry[0]); + j jVar = this.f1163b; + Objects.requireNonNull(jVar); + jVar.j(); + this.f1163b.a(new t.b(-9223372036854775807L, 0)); + this.c = 6; + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + if (d(iVar) != 65496) { + return false; + } + int d = d(iVar); + this.d = d; + if (d == 65504) { + this.a.A(2); + iVar.o(this.a.a, 0, 2); + iVar.g(this.a.y() - 2); + this.d = d(iVar); + } + if (this.d != 65505) { + return false; + } + iVar.g(2); + this.a.A(6); + iVar.o(this.a.a, 0, 6); + return this.a.u() == 1165519206 && this.a.y() == 0; + } + + public final void c(Metadata.Entry... entryArr) { + j jVar = this.f1163b; + Objects.requireNonNull(jVar); + w p = jVar.p(1024, 4); + j1.b bVar = new j1.b(); + bVar.j = "image/jpeg"; + bVar.i = new Metadata(entryArr); + p.e(bVar.a()); + } + + public final int d(i iVar) throws IOException { + this.a.A(2); + iVar.o(this.a.a, 0, 2); + return this.a.y(); + } + + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + String str; + int i; + String str2; + b bVar; + long j; + int i2 = this.c; + if (i2 == 0) { + this.a.A(2); + iVar.readFully(this.a.a, 0, 2); + int y2 = this.a.y(); + this.d = y2; + if (y2 == 65498) { + if (this.f != -1) { + this.c = 4; + } else { + a(); + } + } else if ((y2 < 65488 || y2 > 65497) && y2 != 65281) { + this.c = 1; + } + return 0; + } else if (i2 == 1) { + this.a.A(2); + iVar.readFully(this.a.a, 0, 2); + this.e = this.a.y() - 2; + this.c = 2; + return 0; + } else if (i2 == 2) { + if (this.d == 65505) { + int i3 = this.e; + byte[] bArr = new byte[i3]; + iVar.readFully(bArr, 0, i3); + if (this.g == null) { + MotionPhotoMetadata motionPhotoMetadata = null; + if (i3 + 0 == 0) { + str = null; + i = 0; + } else { + i = 0; + while (i < i3 && bArr[i] != 0) { + i++; + } + str = e0.m(bArr, 0, i + 0); + if (i < i3) { + i++; + } + } + if ("http://ns.adobe.com/xap/1.0/".equals(str)) { + if (i3 - i == 0) { + str2 = null; + } else { + int i4 = i; + while (i4 < i3 && bArr[i4] != 0) { + i4++; + } + str2 = e0.m(bArr, i, i4 - i); + } + if (str2 != null) { + long b2 = iVar.b(); + if (b2 != -1) { + try { + bVar = e.a(str2); + } catch (ParserException | NumberFormatException | XmlPullParserException unused) { + Log.w("MotionPhotoXmpParser", "Ignoring unexpected XMP metadata"); + bVar = null; + } + if (bVar != null && bVar.f1164b.size() >= 2) { + long j2 = -1; + long j3 = -1; + long j4 = -1; + long j5 = -1; + boolean z2 = false; + for (int size = bVar.f1164b.size() - 1; size >= 0; size--) { + b.a aVar = bVar.f1164b.get(size); + z2 |= "video/mp4".equals(aVar.a); + if (size == 0) { + j = b2 - aVar.c; + b2 = 0; + } else { + long j6 = b2 - aVar.f1165b; + j = b2; + b2 = j6; + } + if (z2 && b2 != j) { + j5 = j - b2; + j4 = b2; + z2 = false; + } + if (size == 0) { + j3 = j; + j2 = b2; + } + } + if (!(j4 == -1 || j5 == -1 || j2 == -1 || j3 == -1)) { + motionPhotoMetadata = new MotionPhotoMetadata(j2, j3, bVar.a, j4, j5); + } + } + } + this.g = motionPhotoMetadata; + if (motionPhotoMetadata != null) { + this.f = motionPhotoMetadata.m; + } + } + } + } + } else { + iVar.l(this.e); + } + this.c = 0; + return 0; + } else if (i2 == 4) { + long position = iVar.getPosition(); + long j7 = this.f; + if (position != j7) { + sVar.a = j7; + return 1; + } + if (!iVar.e(this.a.a, 0, 1, true)) { + a(); + } else { + iVar.k(); + if (this.j == null) { + this.j = new b.i.a.c.x2.i0.i(0); + } + c cVar = new c(iVar, this.f); + this.i = cVar; + if (l.a(cVar, false, (this.j.f1208b & 2) != 0)) { + b.i.a.c.x2.i0.i iVar2 = this.j; + long j8 = this.f; + j jVar = this.f1163b; + Objects.requireNonNull(jVar); + iVar2.f1209s = new d(j8, jVar); + MotionPhotoMetadata motionPhotoMetadata2 = this.g; + Objects.requireNonNull(motionPhotoMetadata2); + c(motionPhotoMetadata2); + this.c = 5; + } else { + a(); + } + } + return 0; + } else if (i2 == 5) { + if (this.i == null || iVar != this.h) { + this.h = iVar; + this.i = new c(iVar, this.f); + } + b.i.a.c.x2.i0.i iVar3 = this.j; + Objects.requireNonNull(iVar3); + int e = iVar3.e(this.i, sVar); + if (e == 1) { + sVar.a += this.f; + } + return e; + } else if (i2 == 6) { + return -1; + } else { + throw new IllegalStateException(); + } + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.f1163b = jVar; + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + if (j == 0) { + this.c = 0; + this.j = null; + } else if (this.c == 5) { + b.i.a.c.x2.i0.i iVar = this.j; + Objects.requireNonNull(iVar); + iVar.g(j, j2); + } + } + + @Override // b.i.a.c.x2.h + public void release() { + b.i.a.c.x2.i0.i iVar = this.j; + if (iVar != null) { + Objects.requireNonNull(iVar); + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/f0/b.java b/app/src/main/java/b/i/a/c/x2/f0/b.java new file mode 100644 index 0000000000..a5251a8e8b --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/f0/b.java @@ -0,0 +1,30 @@ +package b.i.a.c.x2.f0; + +import java.util.List; +/* compiled from: MotionPhotoDescription */ +public final class b { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final List f1164b; + + /* compiled from: MotionPhotoDescription */ + public static final class a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final long f1165b; + public final long c; + + public a(String str, String str2, long j, long j2) { + this.a = str; + this.f1165b = j; + this.c = j2; + } + } + + public b(long j, List list) { + this.a = j; + this.f1164b = list; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/f0/c.java b/app/src/main/java/b/i/a/c/x2/f0/c.java new file mode 100644 index 0000000000..4b9738d64b --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/f0/c.java @@ -0,0 +1,87 @@ +package b.i.a.c.x2.f0; + +import b.c.a.a0.d; +import b.i.a.c.x2.i; +/* compiled from: StartOffsetExtractorInput */ +public final class c implements i { + public final i a; + + /* renamed from: b reason: collision with root package name */ + public final long f1166b; + + public c(i iVar, long j) { + this.a = iVar; + d.j(iVar.getPosition() >= j); + this.f1166b = j; + } + + @Override // b.i.a.c.x2.i + public long b() { + return this.a.b() - this.f1166b; + } + + @Override // b.i.a.c.x2.i + public boolean c(byte[] bArr, int i, int i2, boolean z2) { + return this.a.c(bArr, i, i2, z2); + } + + @Override // b.i.a.c.x2.i + public boolean e(byte[] bArr, int i, int i2, boolean z2) { + return this.a.e(bArr, i, i2, z2); + } + + @Override // b.i.a.c.x2.i + public long f() { + return this.a.f() - this.f1166b; + } + + @Override // b.i.a.c.x2.i + public void g(int i) { + this.a.g(i); + } + + @Override // b.i.a.c.x2.i + public long getPosition() { + return this.a.getPosition() - this.f1166b; + } + + @Override // b.i.a.c.x2.i + public int h(int i) { + return this.a.h(i); + } + + @Override // b.i.a.c.x2.i + public int i(byte[] bArr, int i, int i2) { + return this.a.i(bArr, i, i2); + } + + @Override // b.i.a.c.x2.i + public void k() { + this.a.k(); + } + + @Override // b.i.a.c.x2.i + public void l(int i) { + this.a.l(i); + } + + @Override // b.i.a.c.x2.i + public boolean m(int i, boolean z2) { + return this.a.m(i, z2); + } + + @Override // b.i.a.c.x2.i + public void o(byte[] bArr, int i, int i2) { + this.a.o(bArr, i, i2); + } + + @Override // b.i.a.c.x2.i, b.i.a.c.e3.h + public int read(byte[] bArr, int i, int i2) { + return this.a.read(bArr, i, i2); + } + + @Override // b.i.a.c.x2.i + public void readFully(byte[] bArr, int i, int i2) { + this.a.readFully(bArr, i, i2); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/f0/d.java b/app/src/main/java/b/i/a/c/x2/f0/d.java new file mode 100644 index 0000000000..8a20238c30 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/f0/d.java @@ -0,0 +1,62 @@ +package b.i.a.c.x2.f0; + +import b.i.a.c.x2.j; +import b.i.a.c.x2.t; +import b.i.a.c.x2.u; +import b.i.a.c.x2.w; +/* compiled from: StartOffsetExtractorOutput */ +public final class d implements j { + public final long j; + public final j k; + + /* compiled from: StartOffsetExtractorOutput */ + public class a implements t { + public final /* synthetic */ t a; + + public a(t tVar) { + this.a = tVar; + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return this.a.c(); + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + t.a h = this.a.h(j); + u uVar = h.a; + long j2 = uVar.f1284b; + long j3 = uVar.c; + long j4 = d.this.j; + u uVar2 = new u(j2, j3 + j4); + u uVar3 = h.f1282b; + return new t.a(uVar2, new u(uVar3.f1284b, uVar3.c + j4)); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.a.i(); + } + } + + public d(long j, j jVar) { + this.j = j; + this.k = jVar; + } + + @Override // b.i.a.c.x2.j + public void a(t tVar) { + this.k.a(new a(tVar)); + } + + @Override // b.i.a.c.x2.j + public void j() { + this.k.j(); + } + + @Override // b.i.a.c.x2.j + public w p(int i, int i2) { + return this.k.p(i, i2); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/f0/e.java b/app/src/main/java/b/i/a/c/x2/f0/e.java new file mode 100644 index 0000000000..21d05bde78 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/f0/e.java @@ -0,0 +1,146 @@ +package b.i.a.c.x2.f0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.x2.f0.b; +import b.i.a.f.e.o.f; +import b.i.b.b.a; +import b.i.b.b.h0; +import b.i.b.b.n; +import b.i.b.b.p; +import com.google.android.exoplayer2.ParserException; +import java.io.IOException; +import java.io.StringReader; +import java.util.Arrays; +import org.xmlpull.v1.XmlPullParser; +import org.xmlpull.v1.XmlPullParserException; +import org.xmlpull.v1.XmlPullParserFactory; +/* compiled from: XmpMotionPhotoDescriptionParser */ +public final class e { + public static final String[] a = {"Camera:MotionPhoto", "GCamera:MotionPhoto", "Camera:MicroVideo", "GCamera:MicroVideo"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f1168b = {"Camera:MotionPhotoPresentationTimestampUs", "GCamera:MotionPhotoPresentationTimestampUs", "Camera:MicroVideoPresentationTimestampUs", "GCamera:MicroVideoPresentationTimestampUs"}; + public static final String[] c = {"Camera:MicroVideoOffset", "GCamera:MicroVideoOffset"}; + + /* JADX WARNING: Code restructure failed: missing block: B:22:0x0069, code lost: + if (r10 == -1) goto L_0x006b; + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x006b, code lost: + r10 = -9223372036854775807L; + */ + @Nullable + public static b a(String str) throws XmlPullParserException, IOException { + boolean z2; + long j; + XmlPullParser newPullParser = XmlPullParserFactory.newInstance().newPullParser(); + newPullParser.setInput(new StringReader(str)); + newPullParser.next(); + if (d.X0(newPullParser, "x:xmpmeta")) { + a aVar = p.k; + p pVar = h0.l; + long j2 = -9223372036854775807L; + do { + newPullParser.next(); + if (d.X0(newPullParser, "rdf:Description")) { + String[] strArr = a; + int length = strArr.length; + int i = 0; + while (true) { + if (i >= length) { + break; + } + String q0 = d.q0(newPullParser, strArr[i]); + if (q0 == null) { + i++; + } else if (Integer.parseInt(q0) == 1) { + z2 = true; + } + } + z2 = false; + if (!z2) { + return null; + } + String[] strArr2 = f1168b; + int length2 = strArr2.length; + int i2 = 0; + while (true) { + if (i2 >= length2) { + break; + } + String q02 = d.q0(newPullParser, strArr2[i2]); + if (q02 != null) { + j = Long.parseLong(q02); + } else { + i2++; + } + } + String[] strArr3 = c; + int length3 = strArr3.length; + int i3 = 0; + while (true) { + if (i3 >= length3) { + a aVar2 = p.k; + pVar = h0.l; + break; + } + String q03 = d.q0(newPullParser, strArr3[i3]); + if (q03 != null) { + long parseLong = Long.parseLong(q03); + b.a aVar3 = new b.a("image/jpeg", "Primary", 0, 0); + b.a aVar4 = new b.a("video/mp4", "MotionPhoto", parseLong, 0); + a aVar5 = p.k; + pVar = p.m(aVar3, aVar4); + break; + } + i3++; + } + j2 = j; + } else if (d.X0(newPullParser, "Container:Directory")) { + pVar = b(newPullParser, "Container", "Item"); + } else if (d.X0(newPullParser, "GContainer:Directory")) { + pVar = b(newPullParser, "GContainer", "GContainerItem"); + } + } while (!d.Q0(newPullParser, "x:xmpmeta")); + if (pVar.isEmpty()) { + return null; + } + return new b(j2, pVar); + } + throw ParserException.a("Couldn't find xmp metadata", null); + } + + /* JADX DEBUG: Type inference failed for r0v2. Raw type applied. Possible types: b.i.b.b.p, b.i.b.b.p */ + public static p b(XmlPullParser xmlPullParser, String str, String str2) throws XmlPullParserException, IOException { + a aVar = p.k; + f.z(4, "initialCapacity"); + Object[] objArr = new Object[4]; + String concat = str.concat(":Item"); + String concat2 = str.concat(":Directory"); + int i = 0; + do { + xmlPullParser.next(); + if (d.X0(xmlPullParser, concat)) { + String concat3 = str2.concat(":Mime"); + String concat4 = str2.concat(":Semantic"); + String concat5 = str2.concat(":Length"); + String concat6 = str2.concat(":Padding"); + String q0 = d.q0(xmlPullParser, concat3); + String q02 = d.q0(xmlPullParser, concat4); + String q03 = d.q0(xmlPullParser, concat5); + String q04 = d.q0(xmlPullParser, concat6); + if (q0 == null || q02 == null) { + return h0.l; + } + b.a aVar2 = new b.a(q0, q02, q03 != null ? Long.parseLong(q03) : 0, q04 != null ? Long.parseLong(q04) : 0); + int i2 = i + 1; + if (objArr.length < i2) { + objArr = Arrays.copyOf(objArr, n.b.a(objArr.length, i2)); + } + objArr[i] = aVar2; + i = i2; + } + } while (!d.Q0(xmlPullParser, concat2)); + return p.l(objArr, i); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/g.java b/app/src/main/java/b/i/a/c/x2/g.java new file mode 100644 index 0000000000..0348c49a97 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/g.java @@ -0,0 +1,48 @@ +package b.i.a.c.x2; + +import androidx.annotation.Nullable; +import b.i.a.c.e3.h; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.w; +import java.io.EOFException; +import java.io.IOException; +/* compiled from: DummyTrackOutput */ +public final class g implements w { + public final byte[] a = new byte[4096]; + + @Override // b.i.a.c.x2.w + public int a(h hVar, int i, boolean z2, int i2) throws IOException { + int read = hVar.read(this.a, 0, Math.min(this.a.length, i)); + if (read != -1) { + return read; + } + if (z2) { + return -1; + } + throw new EOFException(); + } + + @Override // b.i.a.c.x2.w + public /* synthetic */ int b(h hVar, int i, boolean z2) { + return v.a(this, hVar, i, z2); + } + + @Override // b.i.a.c.x2.w + public /* synthetic */ void c(x xVar, int i) { + v.b(this, xVar, i); + } + + @Override // b.i.a.c.x2.w + public void d(long j, int i, int i2, int i3, @Nullable w.a aVar) { + } + + @Override // b.i.a.c.x2.w + public void e(j1 j1Var) { + } + + @Override // b.i.a.c.x2.w + public void f(x xVar, int i, int i2) { + xVar.E(xVar.f970b + i); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/g0/a.java b/app/src/main/java/b/i/a/c/x2/g0/a.java new file mode 100644 index 0000000000..47dde002c3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/g0/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.g0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new e(0)}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/g0/b.java b/app/src/main/java/b/i/a/c/x2/g0/b.java new file mode 100644 index 0000000000..30768b7f96 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/g0/b.java @@ -0,0 +1,40 @@ +package b.i.a.c.x2.g0; + +import b.i.a.c.x2.i; +import java.io.IOException; +import java.util.ArrayDeque; +/* compiled from: DefaultEbmlReader */ +public final class b implements d { + public final byte[] a = new byte[8]; + + /* renamed from: b reason: collision with root package name */ + public final ArrayDeque f1169b = new ArrayDeque<>(); + public final g c = new g(); + public c d; + public int e; + public int f; + public long g; + + /* compiled from: DefaultEbmlReader */ + /* renamed from: b.i.a.c.x2.g0.b$b reason: collision with other inner class name */ + public static final class C0094b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final long f1170b; + + public C0094b(int i, long j, a aVar) { + this.a = i; + this.f1170b = j; + } + } + + public final long a(i iVar, int i) throws IOException { + iVar.readFully(this.a, 0, i); + long j = 0; + for (int i2 = 0; i2 < i; i2++) { + j = (j << 8) | ((long) (this.a[i2] & 255)); + } + return j; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/g0/c.java b/app/src/main/java/b/i/a/c/x2/g0/c.java new file mode 100644 index 0000000000..8e64849f6c --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/g0/c.java @@ -0,0 +1,4 @@ +package b.i.a.c.x2.g0; +/* compiled from: EbmlProcessor */ +public interface c { +} diff --git a/app/src/main/java/b/i/a/c/x2/g0/d.java b/app/src/main/java/b/i/a/c/x2/g0/d.java new file mode 100644 index 0000000000..6c169ca851 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/g0/d.java @@ -0,0 +1,4 @@ +package b.i.a.c.x2.g0; +/* compiled from: EbmlReader */ +public interface d { +} diff --git a/app/src/main/java/b/i/a/c/x2/g0/e.java b/app/src/main/java/b/i/a/c/x2/g0/e.java new file mode 100644 index 0000000000..88efc9f320 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/g0/e.java @@ -0,0 +1,3725 @@ +package b.i.a.c.x2.g0; + +import android.util.Log; +import android.util.Pair; +import android.util.SparseArray; +import androidx.annotation.CallSuper; +import androidx.annotation.Nullable; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.r; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import b.i.a.c.g3.m; +import b.i.a.c.g3.n; +import b.i.a.c.g3.o; +import b.i.a.c.g3.q; +import b.i.a.c.j1; +import b.i.a.c.t2.l; +import b.i.a.c.x0; +import b.i.a.c.x2.g0.b; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import b.i.a.c.x2.w; +import b.i.b.b.p; +import com.discord.api.permission.Permission; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.drm.DrmInitData; +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.io.IOException; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +import org.checkerframework.checker.nullness.qual.EnsuresNonNull; +import org.checkerframework.checker.nullness.qual.RequiresNonNull; +/* compiled from: MatroskaExtractor */ +public class e implements h { + public static final byte[] a = {49, 10, 48, 48, 58, 48, 48, 58, 48, 48, 44, 48, 48, 48, 32, 45, 45, 62, 32, 48, 48, 58, 48, 48, 58, 48, 48, 44, 48, 48, 48, 10}; + + /* renamed from: b reason: collision with root package name */ + public static final byte[] f1171b = e0.w("Format: Start, End, ReadOrder, Layer, Style, Name, MarginL, MarginR, MarginV, Effect, Text"); + public static final byte[] c = {68, 105, 97, 108, 111, 103, 117, 101, 58, 32, 48, 58, 48, 48, 58, 48, 48, 58, 48, 48, 44, 48, 58, 48, 48, 58, 48, 48, 58, 48, 48, 44}; + public static final UUID d = new UUID(72057594037932032L, -9223371306706625679L); + public static final Map e; + public boolean A; + public int B; + public long C; + public boolean D; + public long E = -1; + public long F = -1; + public long G = -9223372036854775807L; + @Nullable + public r H; + @Nullable + public r I; + public boolean J; + public boolean K; + public int L; + public long M; + public long N; + public int O; + public int P; + public int[] Q; + public int R; + public int S; + public int T; + public int U; + public boolean V; + public int W; + public int X; + public int Y; + public boolean Z; + + /* renamed from: a0 reason: collision with root package name */ + public boolean f1172a0; + + /* renamed from: b0 reason: collision with root package name */ + public boolean f1173b0; + + /* renamed from: c0 reason: collision with root package name */ + public int f1174c0; + + /* renamed from: d0 reason: collision with root package name */ + public byte f1175d0; + + /* renamed from: e0 reason: collision with root package name */ + public boolean f1176e0; + public final d f; + + /* renamed from: f0 reason: collision with root package name */ + public j f1177f0; + public final g g; + public final SparseArray h; + public final boolean i; + public final x j; + public final x k; + public final x l; + public final x m; + public final x n; + public final x o; + public final x p; + public final x q; + public final x r; + + /* renamed from: s reason: collision with root package name */ + public final x f1178s; + public ByteBuffer t; + public long u; + public long v = -1; + public long w = -9223372036854775807L; + + /* renamed from: x reason: collision with root package name */ + public long f1179x = -9223372036854775807L; + + /* renamed from: y reason: collision with root package name */ + public long f1180y = -9223372036854775807L; + @Nullable + + /* renamed from: z reason: collision with root package name */ + public c f1181z; + + /* compiled from: MatroskaExtractor */ + public final class b implements c { + public b(a aVar) { + } + } + + /* compiled from: MatroskaExtractor */ + public static final class c { + public int A = -1; + public int B = 1000; + public int C = 200; + public float D = -1.0f; + public float E = -1.0f; + public float F = -1.0f; + public float G = -1.0f; + public float H = -1.0f; + public float I = -1.0f; + public float J = -1.0f; + public float K = -1.0f; + public float L = -1.0f; + public float M = -1.0f; + public byte[] N; + public int O = 1; + public int P = -1; + public int Q = 8000; + public long R = 0; + public long S = 0; + public b.i.a.c.x2.x T; + public boolean U; + public boolean V = true; + public String W = "eng"; + public w X; + public int Y; + public String a; + + /* renamed from: b reason: collision with root package name */ + public String f1182b; + public int c; + public int d; + public int e; + public int f; + public int g; + public boolean h; + public byte[] i; + public w.a j; + public byte[] k; + public DrmInitData l; + public int m = -1; + public int n = -1; + public int o = -1; + public int p = -1; + public int q = 0; + public int r = -1; + + /* renamed from: s reason: collision with root package name */ + public float f1183s = 0.0f; + public float t = 0.0f; + public float u = 0.0f; + public byte[] v = null; + public int w = -1; + + /* renamed from: x reason: collision with root package name */ + public boolean f1184x = false; + + /* renamed from: y reason: collision with root package name */ + public int f1185y = -1; + + /* renamed from: z reason: collision with root package name */ + public int f1186z = -1; + + public c() { + } + + public c(a aVar) { + } + + @EnsuresNonNull({"codecPrivate"}) + public final byte[] a(String str) throws ParserException { + byte[] bArr = this.k; + if (bArr != null) { + return bArr; + } + String valueOf = String.valueOf(str); + throw ParserException.a(valueOf.length() != 0 ? "Missing CodecPrivate for codec ".concat(valueOf) : new String("Missing CodecPrivate for codec "), null); + } + } + + static { + a aVar = a.a; + HashMap hashMap = new HashMap(); + hashMap.put("htc_video_rotA-000", 0); + hashMap.put("htc_video_rotA-090", 90); + hashMap.put("htc_video_rotA-180", Integer.valueOf((int) BaseTransientBottomBar.ANIMATION_FADE_DURATION)); + hashMap.put("htc_video_rotA-270", 270); + e = Collections.unmodifiableMap(hashMap); + } + + public e(int i) { + b bVar = new b(); + this.f = bVar; + bVar.d = new b(null); + this.i = (i & 1) == 0; + this.g = new g(); + this.h = new SparseArray<>(); + this.l = new x(4); + this.m = new x(ByteBuffer.allocate(4).putInt(-1).array()); + this.n = new x(4); + this.j = new x(u.a); + this.k = new x(4); + this.o = new x(); + this.p = new x(); + this.q = new x(8); + this.r = new x(); + this.f1178s = new x(); + this.Q = new int[1]; + } + + public static int[] i(@Nullable int[] iArr, int i) { + return iArr == null ? new int[i] : iArr.length >= i ? iArr : new int[Math.max(iArr.length * 2, i)]; + } + + public static byte[] j(long j, String str, long j2) { + d.j(j != -9223372036854775807L); + int i = (int) (j / 3600000000L); + long j3 = j - (((long) (i * 3600)) * 1000000); + int i2 = (int) (j3 / 60000000); + long j4 = j3 - (((long) (i2 * 60)) * 1000000); + int i3 = (int) (j4 / 1000000); + return e0.w(String.format(Locale.US, str, Integer.valueOf(i), Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf((int) ((j4 - (((long) i3) * 1000000)) / j2)))); + } + + @EnsuresNonNull({"cueTimesUs", "cueClusterPositions"}) + public final void a(int i) throws ParserException { + if (this.H == null || this.I == null) { + StringBuilder sb = new StringBuilder(37); + sb.append("Element "); + sb.append(i); + sb.append(" must be in a Cues"); + throw ParserException.a(sb.toString(), null); + } + } + + @Override // b.i.a.c.x2.h + public final boolean b(i iVar) throws IOException { + long a2; + int i; + f fVar = new f(); + long b2 = iVar.b(); + long j = Permission.VIEW_CHANNEL; + int i2 = (b2 > -1 ? 1 : (b2 == -1 ? 0 : -1)); + if (i2 != 0 && b2 <= Permission.VIEW_CHANNEL) { + j = b2; + } + int i3 = (int) j; + iVar.o(fVar.a.a, 0, 4); + fVar.f1187b = 4; + for (long u = fVar.a.u(); u != 440786851; u = ((u << 8) & -256) | ((long) (fVar.a.a[0] & 255))) { + int i4 = fVar.f1187b + 1; + fVar.f1187b = i4; + if (i4 == i3) { + return false; + } + iVar.o(fVar.a.a, 0, 1); + } + long a3 = fVar.a(iVar); + long j2 = (long) fVar.f1187b; + if (a3 == Long.MIN_VALUE) { + return false; + } + if (i2 != 0 && j2 + a3 >= b2) { + return false; + } + while (true) { + int i5 = (((long) fVar.f1187b) > (j2 + a3) ? 1 : (((long) fVar.f1187b) == (j2 + a3) ? 0 : -1)); + if (i5 >= 0) { + return i5 == 0; + } + if (fVar.a(iVar) == Long.MIN_VALUE || (a2 = fVar.a(iVar)) < 0 || a2 > 2147483647L) { + return false; + } + if (i != 0) { + int i6 = (int) a2; + iVar.g(i6); + fVar.f1187b += i6; + } + } + } + + @EnsuresNonNull({"currentTrack"}) + public final void c(int i) throws ParserException { + if (this.f1181z == null) { + StringBuilder sb = new StringBuilder(43); + sb.append("Element "); + sb.append(i); + sb.append(" must be in a TrackEntry"); + throw ParserException.a(sb.toString(), null); + } + } + + @RequiresNonNull({"#1.output"}) + public final void d(c cVar, long j, int i, int i2, int i3) { + int i4; + byte[] bArr; + b.i.a.c.x2.x xVar = cVar.T; + if (xVar != null) { + xVar.b(cVar.X, j, i, i2, i3, cVar.j); + } else { + if ("S_TEXT/UTF8".equals(cVar.f1182b) || "S_TEXT/ASS".equals(cVar.f1182b)) { + if (this.P > 1) { + Log.w("MatroskaExtractor", "Skipping subtitle sample in laced block."); + } else { + long j2 = this.N; + if (j2 == -9223372036854775807L) { + Log.w("MatroskaExtractor", "Skipping subtitle sample with no duration."); + } else { + String str = cVar.f1182b; + byte[] bArr2 = this.p.a; + str.hashCode(); + if (str.equals("S_TEXT/ASS")) { + bArr = j(j2, "%01d:%02d:%02d:%02d", 10000); + i4 = 21; + } else if (str.equals("S_TEXT/UTF8")) { + bArr = j(j2, "%02d:%02d:%02d,%03d", 1000); + i4 = 19; + } else { + throw new IllegalArgumentException(); + } + System.arraycopy(bArr, 0, bArr2, i4, bArr.length); + int i5 = this.p.f970b; + while (true) { + x xVar2 = this.p; + if (i5 >= xVar2.c) { + break; + } else if (xVar2.a[i5] == 0) { + xVar2.D(i5); + break; + } else { + i5++; + } + } + w wVar = cVar.X; + x xVar3 = this.p; + wVar.c(xVar3, xVar3.c); + i2 += this.p.c; + } + } + } + if ((268435456 & i) != 0) { + if (this.P > 1) { + i &= -268435457; + } else { + x xVar4 = this.f1178s; + int i6 = xVar4.c; + cVar.X.f(xVar4, i6, 2); + i2 += i6; + } + } + cVar.X.d(j, i, i2, i3, cVar.j); + } + this.K = true; + } + + /* JADX DEBUG: Multi-variable search result rejected for r29v0, resolved type: b.i.a.c.x2.i */ + /* JADX DEBUG: Multi-variable search result rejected for r8v29, resolved type: b.i.a.c.x2.g0.g */ + /* JADX DEBUG: Multi-variable search result rejected for r8v33, resolved type: b.i.a.c.f3.x */ + /* JADX DEBUG: Multi-variable search result rejected for r4v97, resolved type: b.i.a.c.f3.x */ + /* JADX DEBUG: Multi-variable search result rejected for r5v91, resolved type: b.i.a.c.x2.g0.g */ + /* JADX DEBUG: Multi-variable search result rejected for r5v92, resolved type: b.i.a.c.x2.g0.g */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Code restructure failed: missing block: B:181:0x0425, code lost: + throw com.google.android.exoplayer2.ParserException.a("EBML lacing sample size out of range.", null); + */ + /* JADX WARNING: Removed duplicated region for block: B:428:0x08d3 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:440:0x08d5 A[SYNTHETIC] */ + /* JADX WARNING: Unknown variable types count: 2 */ + @Override // b.i.a.c.x2.h + public final int e(i iVar, s sVar) throws IOException { + boolean z2; + int i; + int i2; + String str; + long j; + int i3; + int[] iArr; + boolean z3 = false; + this.K = false; + boolean z4 = true; + boolean z5 = true; + while (z5 && !this.K) { + b bVar = (b) this.f; + d.H(bVar.d); + ?? r3 = z3; + ?? r4 = z4; + while (true) { + b.C0094b peek = bVar.f1169b.peek(); + if (peek == null || iVar.getPosition() < peek.f1170b) { + if (bVar.e == 0) { + long c2 = bVar.c.c(iVar, r4, r3, 4); + if (c2 == -2) { + iVar.k(); + while (true) { + iVar.o(bVar.a, r3, 4); + int b2 = g.b(bVar.a[r3]); + if (b2 != -1 && b2 <= 4) { + int a2 = (int) g.a(bVar.a, b2, r3); + Objects.requireNonNull(e.this); + if (a2 == 357149030 || a2 == 524531317 || a2 == 475249515 || a2 == 374648427) { + iVar.l(b2); + c2 = (long) a2; + } + } + iVar.l(r4); + } + } + if (c2 == -1) { + z5 = false; + } else { + bVar.f = (int) c2; + bVar.e = r4; + } + } + if (bVar.e == r4) { + bVar.g = bVar.c.c(iVar, r3, r4, 8); + bVar.e = 2; + } + c cVar = bVar.d; + int i4 = bVar.f; + Objects.requireNonNull(e.this); + switch (i4) { + case 131: + case 136: + case 155: + case 159: + case 176: + case 179: + case 186: + case 215: + case 231: + case 238: + case 241: + case 251: + case 16871: + case 16980: + case 17029: + case 17143: + case 18401: + case 18408: + case 20529: + case 20530: + case 21420: + case 21432: + case 21680: + case 21682: + case 21690: + case 21930: + case 21945: + case 21946: + case 21947: + case 21948: + case 21949: + case 21998: + case 22186: + case 22203: + case 25188: + case 30321: + case 2352003: + case 2807729: + i = 2; + break; + case 134: + case 17026: + case 21358: + case 2274716: + i = 3; + break; + case 160: + case 166: + case 174: + case 183: + case 187: + case 224: + case HideBottomViewOnScrollBehavior.ENTER_ANIMATION_DURATION /* 225 */: + case 16868: + case 18407: + case 19899: + case 20532: + case 20533: + case 21936: + case 21968: + case 25152: + case 28032: + case 30113: + case 30320: + case 290298740: + case 357149030: + case 374648427: + case 408125543: + case 440786851: + case 475249515: + case 524531317: + i = 1; + break; + case 161: + case 163: + case 165: + case 16877: + case 16981: + case 18402: + case 21419: + case 25506: + case 30322: + i = 4; + break; + case 181: + case 17545: + case 21969: + case 21970: + case 21971: + case 21972: + case 21973: + case 21974: + case 21975: + case 21976: + case 21977: + case 21978: + case 30323: + case 30324: + case 30325: + i = 5; + break; + default: + i = 0; + break; + } + if (i == 0) { + iVar.l((int) bVar.g); + r3 = 0; + bVar.e = 0; + r4 = 1; + } else if (i == r4) { + long position = iVar.getPosition(); + bVar.f1169b.push(new b.C0094b(bVar.f, bVar.g + position, null)); + c cVar2 = bVar.d; + int i5 = bVar.f; + long j2 = bVar.g; + e eVar = e.this; + d.H(eVar.f1177f0); + if (i5 == 160) { + i2 = 0; + eVar.V = false; + } else if (i5 == 174) { + i2 = 0; + eVar.f1181z = new c(null); + } else if (i5 != 187) { + if (i5 == 19899) { + eVar.B = -1; + eVar.C = -1; + } else if (i5 == 20533) { + eVar.c(i5); + eVar.f1181z.h = true; + } else if (i5 == 21968) { + eVar.c(i5); + eVar.f1181z.f1184x = true; + } else if (i5 == 408125543) { + long j3 = eVar.v; + if (j3 == -1 || j3 == position) { + eVar.v = position; + eVar.u = j2; + } else { + throw ParserException.a("Multiple Segment elements not supported", null); + } + } else if (i5 == 475249515) { + eVar.H = new r(); + eVar.I = new r(); + } else if (i5 == 524531317 && !eVar.A) { + if (!eVar.i || eVar.E == -1) { + eVar.f1177f0.a(new t.b(eVar.f1180y, 0)); + eVar.A = true; + } else { + eVar.D = true; + } + } + i2 = 0; + } else { + i2 = 0; + eVar.J = false; + } + bVar.e = i2; + } else if (i == 2) { + long j4 = bVar.g; + if (j4 <= 8) { + c cVar3 = bVar.d; + int i6 = bVar.f; + long a3 = bVar.a(iVar, (int) j4); + e eVar2 = e.this; + Objects.requireNonNull(eVar2); + if (i6 != 20529) { + if (i6 != 20530) { + switch (i6) { + case 131: + eVar2.c(i6); + eVar2.f1181z.d = (int) a3; + break; + case 136: + eVar2.c(i6); + eVar2.f1181z.V = a3 == 1; + break; + case 155: + eVar2.N = eVar2.m(a3); + break; + case 159: + eVar2.c(i6); + eVar2.f1181z.O = (int) a3; + break; + case 176: + eVar2.c(i6); + eVar2.f1181z.m = (int) a3; + break; + case 179: + eVar2.a(i6); + eVar2.H.a(eVar2.m(a3)); + break; + case 186: + eVar2.c(i6); + eVar2.f1181z.n = (int) a3; + break; + case 215: + eVar2.c(i6); + eVar2.f1181z.c = (int) a3; + break; + case 231: + eVar2.G = eVar2.m(a3); + break; + case 238: + eVar2.U = (int) a3; + break; + case 241: + if (!eVar2.J) { + eVar2.a(i6); + eVar2.I.a(a3); + eVar2.J = true; + break; + } + break; + case 251: + eVar2.V = true; + break; + case 16871: + eVar2.c(i6); + eVar2.f1181z.g = (int) a3; + break; + case 16980: + if (a3 != 3) { + throw ParserException.a(b.d.b.a.a.h(50, "ContentCompAlgo ", a3, " not supported"), null); + } + break; + case 17029: + if (a3 < 1 || a3 > 2) { + throw ParserException.a(b.d.b.a.a.h(53, "DocTypeReadVersion ", a3, " not supported"), null); + } + case 17143: + if (a3 != 1) { + throw ParserException.a(b.d.b.a.a.h(50, "EBMLReadVersion ", a3, " not supported"), null); + } + break; + case 18401: + if (a3 != 5) { + throw ParserException.a(b.d.b.a.a.h(49, "ContentEncAlgo ", a3, " not supported"), null); + } + break; + case 18408: + if (a3 != 1) { + throw ParserException.a(b.d.b.a.a.h(56, "AESSettingsCipherMode ", a3, " not supported"), null); + } + break; + case 21420: + eVar2.C = a3 + eVar2.v; + break; + case 21432: + int i7 = (int) a3; + eVar2.c(i6); + if (i7 != 0) { + if (i7 != 1) { + if (i7 != 3) { + if (i7 == 15) { + eVar2.f1181z.w = 3; + break; + } + } else { + eVar2.f1181z.w = 1; + break; + } + } else { + eVar2.f1181z.w = 2; + break; + } + } else { + eVar2.f1181z.w = 0; + break; + } + break; + case 21680: + eVar2.c(i6); + eVar2.f1181z.o = (int) a3; + break; + case 21682: + eVar2.c(i6); + eVar2.f1181z.q = (int) a3; + break; + case 21690: + eVar2.c(i6); + eVar2.f1181z.p = (int) a3; + break; + case 21930: + eVar2.c(i6); + eVar2.f1181z.U = a3 == 1; + break; + case 21998: + eVar2.c(i6); + eVar2.f1181z.f = (int) a3; + break; + case 22186: + eVar2.c(i6); + eVar2.f1181z.R = a3; + break; + case 22203: + eVar2.c(i6); + eVar2.f1181z.S = a3; + break; + case 25188: + eVar2.c(i6); + eVar2.f1181z.P = (int) a3; + break; + case 30321: + eVar2.c(i6); + int i8 = (int) a3; + if (i8 != 0) { + if (i8 != 1) { + if (i8 != 2) { + if (i8 == 3) { + eVar2.f1181z.r = 3; + break; + } + } else { + eVar2.f1181z.r = 2; + break; + } + } else { + eVar2.f1181z.r = 1; + break; + } + } else { + eVar2.f1181z.r = 0; + break; + } + break; + case 2352003: + eVar2.c(i6); + eVar2.f1181z.e = (int) a3; + break; + case 2807729: + eVar2.w = a3; + break; + default: + switch (i6) { + case 21945: + eVar2.c(i6); + int i9 = (int) a3; + if (i9 != 1) { + if (i9 == 2) { + eVar2.f1181z.A = 1; + break; + } + } else { + eVar2.f1181z.A = 2; + break; + } + break; + case 21946: + eVar2.c(i6); + int b3 = n.b((int) a3); + if (b3 != -1) { + eVar2.f1181z.f1186z = b3; + break; + } + break; + case 21947: + eVar2.c(i6); + eVar2.f1181z.f1184x = true; + int a4 = n.a((int) a3); + if (a4 != -1) { + eVar2.f1181z.f1185y = a4; + break; + } + break; + case 21948: + eVar2.c(i6); + eVar2.f1181z.B = (int) a3; + break; + case 21949: + eVar2.c(i6); + eVar2.f1181z.C = (int) a3; + break; + } + } + } else if (a3 != 1) { + throw ParserException.a(b.d.b.a.a.h(55, "ContentEncodingScope ", a3, " not supported"), null); + } + } else if (a3 != 0) { + throw ParserException.a(b.d.b.a.a.h(55, "ContentEncodingOrder ", a3, " not supported"), null); + } + bVar.e = 0; + } else { + StringBuilder sb = new StringBuilder(42); + sb.append("Invalid integer size: "); + sb.append(j4); + throw ParserException.a(sb.toString(), null); + } + } else if (i == 3) { + long j5 = bVar.g; + if (j5 <= 2147483647L) { + c cVar4 = bVar.d; + int i10 = bVar.f; + int i11 = (int) j5; + if (i11 == 0) { + str = ""; + } else { + byte[] bArr = new byte[i11]; + iVar.readFully(bArr, 0, i11); + while (i11 > 0) { + int i12 = i11 - 1; + if (bArr[i12] == 0) { + i11 = i12; + } else { + str = new String(bArr, 0, i11); + } + } + str = new String(bArr, 0, i11); + } + e eVar3 = e.this; + Objects.requireNonNull(eVar3); + if (i10 == 134) { + eVar3.c(i10); + eVar3.f1181z.f1182b = str; + } else if (i10 != 17026) { + if (i10 == 21358) { + eVar3.c(i10); + eVar3.f1181z.a = str; + } else if (i10 == 2274716) { + eVar3.c(i10); + eVar3.f1181z.W = str; + } + } else if (!"webm".equals(str) && !"matroska".equals(str)) { + StringBuilder sb2 = new StringBuilder(str.length() + 22); + sb2.append("DocType "); + sb2.append(str); + sb2.append(" not supported"); + throw ParserException.a(sb2.toString(), null); + } + bVar.e = 0; + } else { + StringBuilder sb3 = new StringBuilder(41); + sb3.append("String element size: "); + sb3.append(j5); + throw ParserException.a(sb3.toString(), null); + } + } else if (i == 4) { + c cVar5 = bVar.d; + int i13 = bVar.f; + int i14 = (int) bVar.g; + e eVar4 = e.this; + Objects.requireNonNull(eVar4); + if (i13 == 161 || i13 == 163) { + if (eVar4.L == 0) { + eVar4.R = (int) eVar4.g.c(iVar, r3, r4, 8); + eVar4.S = eVar4.g.d; + eVar4.N = -9223372036854775807L; + eVar4.L = r4; + eVar4.l.A(r3); + } + c cVar6 = eVar4.h.get(eVar4.R); + if (cVar6 == null) { + iVar.l(i14 - eVar4.S); + eVar4.L = r3; + } else { + Objects.requireNonNull(cVar6.X); + if (eVar4.L == r4) { + eVar4.k(iVar, 3); + int i15 = r4 == true ? 1 : 0; + int i16 = r4 == true ? 1 : 0; + int i17 = r4 == true ? 1 : 0; + int i18 = r4 == true ? 1 : 0; + int i19 = (eVar4.l.a[2] & 6) >> i15; + byte b4 = 255; + if (i19 == 0) { + eVar4.P = r4; + int[] i20 = i(eVar4.Q, r4); + eVar4.Q = i20; + char c3 = r3 == true ? 1 : 0; + char c4 = r3 == true ? 1 : 0; + char c5 = r3 == true ? 1 : 0; + char c6 = r3 == true ? 1 : 0; + char c7 = r3 == true ? 1 : 0; + i20[c3] = (i14 - eVar4.S) - 3; + } else { + eVar4.k(iVar, 4); + int i21 = (eVar4.l.a[3] & 255) + r4; + eVar4.P = i21; + int[] i22 = i(eVar4.Q, i21); + eVar4.Q = i22; + if (i19 == 2) { + int i23 = eVar4.P; + int i24 = r3 == true ? 1 : 0; + int i25 = r3 == true ? 1 : 0; + int i26 = r3 == true ? 1 : 0; + int i27 = r3 == true ? 1 : 0; + int i28 = r3 == true ? 1 : 0; + Arrays.fill(i22, i24, i23, ((i14 - eVar4.S) - 4) / i23); + } else { + int i29 = 4; + if (i19 == r4) { + int i30 = 0; + int i31 = 0; + while (true) { + int i32 = eVar4.P; + if (i30 < i32 - 1) { + int[] iArr2 = eVar4.Q; + int i33 = r3 == true ? 1 : 0; + int i34 = r3 == true ? 1 : 0; + int i35 = r3 == true ? 1 : 0; + int i36 = r3 == true ? 1 : 0; + iArr2[i30] = i33; + do { + i29 += r4; + eVar4.k(iVar, i29); + i3 = eVar4.l.a[i29 - 1] & 255; + iArr = eVar4.Q; + iArr[i30] = iArr[i30] + i3; + } while (i3 == 255); + i31 += iArr[i30]; + i30++; + } else { + eVar4.Q[i32 - 1] = ((i14 - eVar4.S) - i29) - i31; + } + } + } else if (i19 == 3) { + int i37 = 0; + int i38 = 0; + boolean z6 = r3; + boolean z7 = r4; + while (true) { + int i39 = eVar4.P; + if (i37 < i39 - 1) { + int[] iArr3 = eVar4.Q; + int i40 = z6 ? 1 : 0; + int i41 = z6 ? 1 : 0; + iArr3[i37] = i40; + i29++; + eVar4.k(iVar, i29); + int i42 = i29 - 1; + if (eVar4.l.a[i42] != 0) { + int i43 = 8; + int i44 = 0; + boolean z8 = z7; + while (true) { + if (i44 < i43) { + int i45 = z8 ? 1 : 0; + int i46 = z8 ? 1 : 0; + int i47 = z8 ? 1 : 0; + int i48 = z8 ? 1 : 0; + int i49 = i45 << (7 - i44); + if ((eVar4.l.a[i42] & i49) != 0) { + int i50 = i29 + i44; + eVar4.k(iVar, i50); + j = (long) ((~i49) & eVar4.l.a[i42] & b4); + int i51 = i42 + 1; + while (i51 < i50) { + j = (j << 8) | ((long) (eVar4.l.a[i51] & 255)); + i51++; + i50 = i50; + } + if (i37 > 0) { + j -= (1 << ((i44 * 7) + 6)) - 1; + } + i29 = i50; + } else { + i44++; + i43 = 8; + z8 = true; + b4 = 255; + } + } else { + j = 0; + } + } + if (j >= -2147483648L && j <= 2147483647L) { + int i52 = (int) j; + int[] iArr4 = eVar4.Q; + if (i37 != 0) { + i52 += iArr4[i37 - 1]; + } + iArr4[i37] = i52; + i38 += iArr4[i37]; + i37++; + z6 = false; + z7 = true; + b4 = 255; + } + } else { + throw ParserException.a("No valid varint length mask found", null); + } + } else { + eVar4.Q[i39 - 1] = ((i14 - eVar4.S) - i29) - i38; + } + } + } else { + throw b.d.b.a.a.t0(36, "Unexpected lacing value: ", i19, null); + } + } + } + byte[] bArr2 = eVar4.l.a; + eVar4.M = eVar4.m((long) ((bArr2[1] & 255) | (bArr2[0] << 8))) + eVar4.G; + eVar4.T = (cVar6.d == 2 || (i13 == 163 && (eVar4.l.a[2] & 128) == 128)) ? 1 : 0; + eVar4.L = 2; + eVar4.O = 0; + } + if (i13 == 163) { + while (true) { + int i53 = eVar4.O; + if (i53 < eVar4.P) { + eVar4.d(cVar6, ((long) ((eVar4.O * cVar6.e) / 1000)) + eVar4.M, eVar4.T, eVar4.n(iVar, cVar6, eVar4.Q[i53]), 0); + eVar4.O++; + } else { + eVar4.L = 0; + } + } + } else { + while (true) { + int i54 = eVar4.O; + if (i54 < eVar4.P) { + int[] iArr5 = eVar4.Q; + iArr5[i54] = eVar4.n(iVar, cVar6, iArr5[i54]); + eVar4.O++; + } + } + } + } + } else if (i13 != 165) { + if (i13 == 16877) { + eVar4.c(i13); + c cVar7 = eVar4.f1181z; + int i55 = cVar7.g; + if (i55 == 1685485123 || i55 == 1685480259) { + byte[] bArr3 = new byte[i14]; + cVar7.N = bArr3; + iVar.readFully(bArr3, r3, i14); + } else { + iVar.l(i14); + } + } else if (i13 == 16981) { + eVar4.c(i13); + byte[] bArr4 = new byte[i14]; + eVar4.f1181z.i = bArr4; + iVar.readFully(bArr4, r3, i14); + } else if (i13 == 18402) { + byte[] bArr5 = new byte[i14]; + iVar.readFully(bArr5, r3, i14); + eVar4.c(i13); + eVar4.f1181z.j = new w.a(r4, bArr5, r3, r3); + } else if (i13 == 21419) { + byte[] bArr6 = eVar4.n.a; + byte b5 = r3 == true ? (byte) 1 : 0; + byte b6 = r3 == true ? (byte) 1 : 0; + byte b7 = r3 == true ? (byte) 1 : 0; + byte b8 = r3 == true ? (byte) 1 : 0; + byte b9 = r3 == true ? (byte) 1 : 0; + Arrays.fill(bArr6, b5); + iVar.readFully(eVar4.n.a, 4 - i14, i14); + eVar4.n.E(r3); + eVar4.B = (int) eVar4.n.u(); + } else if (i13 == 25506) { + eVar4.c(i13); + byte[] bArr7 = new byte[i14]; + eVar4.f1181z.k = bArr7; + iVar.readFully(bArr7, r3, i14); + } else if (i13 == 30322) { + eVar4.c(i13); + byte[] bArr8 = new byte[i14]; + eVar4.f1181z.v = bArr8; + iVar.readFully(bArr8, r3, i14); + } else { + throw b.d.b.a.a.t0(26, "Unexpected id: ", i13, null); + } + } else if (eVar4.L == 2) { + c cVar8 = eVar4.h.get(eVar4.R); + if (eVar4.U != 4 || !"V_VP9".equals(cVar8.f1182b)) { + iVar.l(i14); + } else { + x xVar = eVar4.f1178s; + byte[] bArr9 = xVar.a; + if (bArr9.length < i14) { + bArr9 = new byte[i14]; + } + xVar.C(bArr9, i14); + iVar.readFully(eVar4.f1178s.a, r3, i14); + } + } + bVar.e = 0; + } else if (i == 5) { + long j6 = bVar.g; + if (j6 == 4 || j6 == 8) { + c cVar9 = bVar.d; + int i56 = bVar.f; + int i57 = (int) j6; + long a5 = bVar.a(iVar, i57); + double intBitsToFloat = i57 == 4 ? (double) Float.intBitsToFloat((int) a5) : Double.longBitsToDouble(a5); + e eVar5 = e.this; + Objects.requireNonNull(eVar5); + if (i56 == 181) { + eVar5.c(i56); + eVar5.f1181z.Q = (int) intBitsToFloat; + } else if (i56 != 17545) { + switch (i56) { + case 21969: + eVar5.c(i56); + eVar5.f1181z.D = (float) intBitsToFloat; + break; + case 21970: + eVar5.c(i56); + eVar5.f1181z.E = (float) intBitsToFloat; + break; + case 21971: + eVar5.c(i56); + eVar5.f1181z.F = (float) intBitsToFloat; + break; + case 21972: + eVar5.c(i56); + eVar5.f1181z.G = (float) intBitsToFloat; + break; + case 21973: + eVar5.c(i56); + eVar5.f1181z.H = (float) intBitsToFloat; + break; + case 21974: + eVar5.c(i56); + eVar5.f1181z.I = (float) intBitsToFloat; + break; + case 21975: + eVar5.c(i56); + eVar5.f1181z.J = (float) intBitsToFloat; + break; + case 21976: + eVar5.c(i56); + eVar5.f1181z.K = (float) intBitsToFloat; + break; + case 21977: + eVar5.c(i56); + eVar5.f1181z.L = (float) intBitsToFloat; + break; + case 21978: + eVar5.c(i56); + eVar5.f1181z.M = (float) intBitsToFloat; + break; + default: + switch (i56) { + case 30323: + eVar5.c(i56); + eVar5.f1181z.f1183s = (float) intBitsToFloat; + break; + case 30324: + eVar5.c(i56); + eVar5.f1181z.t = (float) intBitsToFloat; + break; + case 30325: + eVar5.c(i56); + eVar5.f1181z.u = (float) intBitsToFloat; + break; + } + } + } else { + eVar5.f1179x = (long) intBitsToFloat; + } + bVar.e = r3; + } else { + StringBuilder sb4 = new StringBuilder(40); + sb4.append("Invalid float size: "); + sb4.append(j6); + throw ParserException.a(sb4.toString(), null); + } + } else { + throw b.d.b.a.a.t0(32, "Invalid element type ", i, null); + } + } else { + e.this.h(bVar.f1169b.pop().a); + } + } + z5 = true; + if (z5) { + long position2 = iVar.getPosition(); + if (this.D) { + this.F = position2; + sVar.a = this.E; + this.D = false; + } else { + if (this.A) { + long j7 = this.F; + if (j7 != -1) { + sVar.a = j7; + this.F = -1; + } + } + z2 = false; + if (!z2) { + return 1; + } + } + z2 = true; + if (!z2) { + } + } + z3 = false; + z4 = true; + } + if (z5) { + return 0; + } + for (int i58 = 0; i58 < this.h.size(); i58++) { + c valueAt = this.h.valueAt(i58); + Objects.requireNonNull(valueAt.X); + b.i.a.c.x2.x xVar2 = valueAt.T; + if (xVar2 != null) { + xVar2.a(valueAt.X, valueAt.j); + } + } + return -1; + } + + @Override // b.i.a.c.x2.h + public final void f(j jVar) { + this.f1177f0 = jVar; + } + + @Override // b.i.a.c.x2.h + @CallSuper + public void g(long j, long j2) { + this.G = -9223372036854775807L; + this.L = 0; + b bVar = (b) this.f; + bVar.e = 0; + bVar.f1169b.clear(); + g gVar = bVar.c; + gVar.c = 0; + gVar.d = 0; + g gVar2 = this.g; + gVar2.c = 0; + gVar2.d = 0; + l(); + for (int i = 0; i < this.h.size(); i++) { + b.i.a.c.x2.x xVar = this.h.valueAt(i).T; + if (xVar != null) { + xVar.f1286b = false; + xVar.c = 0; + } + } + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:406:0x0807, code lost: + if (r3.m() == r5.getLeastSignificantBits()) goto L_0x0809; + */ + /* JADX WARNING: Removed duplicated region for block: B:410:0x080e */ + /* JADX WARNING: Removed duplicated region for block: B:414:0x083c */ + /* JADX WARNING: Removed duplicated region for block: B:434:0x087d */ + /* JADX WARNING: Removed duplicated region for block: B:435:0x087f */ + /* JADX WARNING: Removed duplicated region for block: B:438:0x088c */ + /* JADX WARNING: Removed duplicated region for block: B:439:0x0899 */ + /* JADX WARNING: Removed duplicated region for block: B:496:0x09e5 */ + /* JADX WARNING: Removed duplicated region for block: B:497:0x09e7 */ + @CallSuper + public void h(int i) throws ParserException { + char c2; + boolean z2; + char c3; + String str; + int i2; + List list; + int i3; + j1.b bVar; + int i4; + int i5; + n nVar; + int i6; + int i7; + byte[] bArr; + int i8; + o a2; + String str2; + int i9; + List list2; + ArrayList arrayList; + List list3; + boolean z3; + Throwable th; + String str3; + ArrayList arrayList2; + ArrayList arrayList3; + String str4; + String str5; + List list4; + Pair pair; + String str6; + Pair pair2; + p pVar; + String str7; + String str8; + List list5; + t tVar; + int i10; + int i11; + d.H(this.f1177f0); + int i12 = 0; + if (i != 160) { + if (i == 174) { + c cVar = this.f1181z; + d.H(cVar); + String str9 = cVar.f1182b; + if (str9 != null) { + switch (str9.hashCode()) { + case -2095576542: + if (str9.equals("V_MPEG4/ISO/AP")) { + c2 = 0; + break; + } + c2 = 65535; + break; + case -2095575984: + if (str9.equals("V_MPEG4/ISO/SP")) { + c2 = 1; + break; + } + c2 = 65535; + break; + case -1985379776: + if (str9.equals("A_MS/ACM")) { + c2 = 2; + break; + } + c2 = 65535; + break; + case -1784763192: + if (str9.equals("A_TRUEHD")) { + c2 = 3; + break; + } + c2 = 65535; + break; + case -1730367663: + if (str9.equals("A_VORBIS")) { + c2 = 4; + break; + } + c2 = 65535; + break; + case -1482641358: + if (str9.equals("A_MPEG/L2")) { + c2 = 5; + break; + } + c2 = 65535; + break; + case -1482641357: + if (str9.equals("A_MPEG/L3")) { + c2 = 6; + break; + } + c2 = 65535; + break; + case -1373388978: + if (str9.equals("V_MS/VFW/FOURCC")) { + c2 = 7; + break; + } + c2 = 65535; + break; + case -933872740: + if (str9.equals("S_DVBSUB")) { + c2 = '\b'; + break; + } + c2 = 65535; + break; + case -538363189: + if (str9.equals("V_MPEG4/ISO/ASP")) { + c2 = '\t'; + break; + } + c2 = 65535; + break; + case -538363109: + if (str9.equals("V_MPEG4/ISO/AVC")) { + c2 = '\n'; + break; + } + c2 = 65535; + break; + case -425012669: + if (str9.equals("S_VOBSUB")) { + c2 = 11; + break; + } + c2 = 65535; + break; + case -356037306: + if (str9.equals("A_DTS/LOSSLESS")) { + c2 = '\f'; + break; + } + c2 = 65535; + break; + case 62923557: + if (str9.equals("A_AAC")) { + c2 = '\r'; + break; + } + c2 = 65535; + break; + case 62923603: + if (str9.equals("A_AC3")) { + c2 = 14; + break; + } + c2 = 65535; + break; + case 62927045: + if (str9.equals("A_DTS")) { + c2 = 15; + break; + } + c2 = 65535; + break; + case 82318131: + if (str9.equals("V_AV1")) { + c2 = 16; + break; + } + c2 = 65535; + break; + case 82338133: + if (str9.equals("V_VP8")) { + c2 = 17; + break; + } + c2 = 65535; + break; + case 82338134: + if (str9.equals("V_VP9")) { + c2 = 18; + break; + } + c2 = 65535; + break; + case 99146302: + if (str9.equals("S_HDMV/PGS")) { + c2 = 19; + break; + } + c2 = 65535; + break; + case 444813526: + if (str9.equals("V_THEORA")) { + c2 = 20; + break; + } + c2 = 65535; + break; + case 542569478: + if (str9.equals("A_DTS/EXPRESS")) { + c2 = 21; + break; + } + c2 = 65535; + break; + case 635596514: + if (str9.equals("A_PCM/FLOAT/IEEE")) { + c2 = 22; + break; + } + c2 = 65535; + break; + case 725948237: + if (str9.equals("A_PCM/INT/BIG")) { + c2 = 23; + break; + } + c2 = 65535; + break; + case 725957860: + if (str9.equals("A_PCM/INT/LIT")) { + c2 = 24; + break; + } + c2 = 65535; + break; + case 738597099: + if (str9.equals("S_TEXT/ASS")) { + c2 = 25; + break; + } + c2 = 65535; + break; + case 855502857: + if (str9.equals("V_MPEGH/ISO/HEVC")) { + c2 = 26; + break; + } + c2 = 65535; + break; + case 1422270023: + if (str9.equals("S_TEXT/UTF8")) { + c2 = 27; + break; + } + c2 = 65535; + break; + case 1809237540: + if (str9.equals("V_MPEG2")) { + c2 = 28; + break; + } + c2 = 65535; + break; + case 1950749482: + if (str9.equals("A_EAC3")) { + c2 = 29; + break; + } + c2 = 65535; + break; + case 1950789798: + if (str9.equals("A_FLAC")) { + c2 = 30; + break; + } + c2 = 65535; + break; + case 1951062397: + if (str9.equals("A_OPUS")) { + c2 = 31; + break; + } + c2 = 65535; + break; + default: + c2 = 65535; + break; + } + switch (c2) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case '\b': + case '\t': + case '\n': + case 11: + case '\f': + case '\r': + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + z2 = true; + break; + default: + z2 = false; + break; + } + if (z2) { + j jVar = this.f1177f0; + int i13 = cVar.c; + String str10 = cVar.f1182b; + str10.hashCode(); + switch (str10.hashCode()) { + case -2095576542: + if (str10.equals("V_MPEG4/ISO/AP")) { + c3 = 0; + break; + } + c3 = 65535; + break; + case -2095575984: + if (str10.equals("V_MPEG4/ISO/SP")) { + c3 = 1; + break; + } + c3 = 65535; + break; + case -1985379776: + if (str10.equals("A_MS/ACM")) { + c3 = 2; + break; + } + c3 = 65535; + break; + case -1784763192: + if (str10.equals("A_TRUEHD")) { + c3 = 3; + break; + } + c3 = 65535; + break; + case -1730367663: + if (str10.equals("A_VORBIS")) { + c3 = 4; + break; + } + c3 = 65535; + break; + case -1482641358: + if (str10.equals("A_MPEG/L2")) { + c3 = 5; + break; + } + c3 = 65535; + break; + case -1482641357: + if (str10.equals("A_MPEG/L3")) { + c3 = 6; + break; + } + c3 = 65535; + break; + case -1373388978: + if (str10.equals("V_MS/VFW/FOURCC")) { + c3 = 7; + break; + } + c3 = 65535; + break; + case -933872740: + if (str10.equals("S_DVBSUB")) { + c3 = '\b'; + break; + } + c3 = 65535; + break; + case -538363189: + if (str10.equals("V_MPEG4/ISO/ASP")) { + c3 = '\t'; + break; + } + c3 = 65535; + break; + case -538363109: + if (str10.equals("V_MPEG4/ISO/AVC")) { + c3 = '\n'; + break; + } + c3 = 65535; + break; + case -425012669: + if (str10.equals("S_VOBSUB")) { + c3 = 11; + break; + } + c3 = 65535; + break; + case -356037306: + if (str10.equals("A_DTS/LOSSLESS")) { + c3 = '\f'; + break; + } + c3 = 65535; + break; + case 62923557: + if (str10.equals("A_AAC")) { + c3 = '\r'; + break; + } + c3 = 65535; + break; + case 62923603: + if (str10.equals("A_AC3")) { + c3 = 14; + break; + } + c3 = 65535; + break; + case 62927045: + if (str10.equals("A_DTS")) { + c3 = 15; + break; + } + c3 = 65535; + break; + case 82318131: + if (str10.equals("V_AV1")) { + c3 = 16; + break; + } + c3 = 65535; + break; + case 82338133: + if (str10.equals("V_VP8")) { + c3 = 17; + break; + } + c3 = 65535; + break; + case 82338134: + if (str10.equals("V_VP9")) { + c3 = 18; + break; + } + c3 = 65535; + break; + case 99146302: + if (str10.equals("S_HDMV/PGS")) { + c3 = 19; + break; + } + c3 = 65535; + break; + case 444813526: + if (str10.equals("V_THEORA")) { + c3 = 20; + break; + } + c3 = 65535; + break; + case 542569478: + if (str10.equals("A_DTS/EXPRESS")) { + c3 = 21; + break; + } + c3 = 65535; + break; + case 635596514: + if (str10.equals("A_PCM/FLOAT/IEEE")) { + c3 = 22; + break; + } + c3 = 65535; + break; + case 725948237: + if (str10.equals("A_PCM/INT/BIG")) { + c3 = 23; + break; + } + c3 = 65535; + break; + case 725957860: + if (str10.equals("A_PCM/INT/LIT")) { + c3 = 24; + break; + } + c3 = 65535; + break; + case 738597099: + if (str10.equals("S_TEXT/ASS")) { + c3 = 25; + break; + } + c3 = 65535; + break; + case 855502857: + if (str10.equals("V_MPEGH/ISO/HEVC")) { + c3 = 26; + break; + } + c3 = 65535; + break; + case 1422270023: + if (str10.equals("S_TEXT/UTF8")) { + c3 = 27; + break; + } + c3 = 65535; + break; + case 1809237540: + if (str10.equals("V_MPEG2")) { + c3 = 28; + break; + } + c3 = 65535; + break; + case 1950749482: + if (str10.equals("A_EAC3")) { + c3 = 29; + break; + } + c3 = 65535; + break; + case 1950789798: + if (str10.equals("A_FLAC")) { + c3 = 30; + break; + } + c3 = 65535; + break; + case 1951062397: + if (str10.equals("A_OPUS")) { + c3 = 31; + break; + } + c3 = 65535; + break; + default: + c3 = 65535; + break; + } + String str11 = "video/x-unknown"; + String str12 = "audio/x-unknown"; + switch (c3) { + case 0: + case 1: + case '\t': + byte[] bArr2 = cVar.k; + str12 = "video/mp4v-es"; + list3 = bArr2 == null ? null : Collections.singletonList(bArr2); + i9 = -1; + arrayList = list3; + str2 = null; + list2 = arrayList; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + if (!(bArr3 == null || (a2 = o.a(new x(bArr3))) == null)) { + str = a2.a; + str12 = "video/dolby-vision"; + } + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + bVar.f1009x = cVar.O; + bVar.f1010y = cVar.Q; + bVar.f1011z = i3; + i4 = 1; + } else if (b.i.a.c.f3.t.j(str12)) { + if (cVar.q == 0) { + int i15 = cVar.o; + i5 = -1; + if (i15 == -1) { + i15 = cVar.m; + } + cVar.o = i15; + int i16 = cVar.p; + if (i16 == -1) { + i16 = cVar.n; + } + cVar.p = i16; + } else { + i5 = -1; + } + float f = -1.0f; + int i17 = cVar.o; + if (!(i17 == i5 || (i8 = cVar.p) == i5)) { + f = ((float) (cVar.n * i17)) / ((float) (cVar.m * i8)); + } + if (cVar.f1184x) { + if (cVar.D == -1.0f || cVar.E == -1.0f || cVar.F == -1.0f || cVar.G == -1.0f || cVar.H == -1.0f || cVar.I == -1.0f || cVar.J == -1.0f || cVar.K == -1.0f || cVar.L == -1.0f || cVar.M == -1.0f) { + bArr = null; + } else { + bArr = new byte[25]; + ByteBuffer order = ByteBuffer.wrap(bArr).order(ByteOrder.LITTLE_ENDIAN); + order.put((byte) 0); + order.putShort((short) ((int) ((cVar.D * 50000.0f) + 0.5f))); + order.putShort((short) ((int) ((cVar.E * 50000.0f) + 0.5f))); + order.putShort((short) ((int) ((cVar.F * 50000.0f) + 0.5f))); + order.putShort((short) ((int) ((cVar.G * 50000.0f) + 0.5f))); + order.putShort((short) ((int) ((cVar.H * 50000.0f) + 0.5f))); + order.putShort((short) ((int) ((cVar.I * 50000.0f) + 0.5f))); + order.putShort((short) ((int) ((cVar.J * 50000.0f) + 0.5f))); + order.putShort((short) ((int) ((cVar.K * 50000.0f) + 0.5f))); + order.putShort((short) ((int) (cVar.L + 0.5f))); + order.putShort((short) ((int) (cVar.M + 0.5f))); + order.putShort((short) cVar.B); + order.putShort((short) cVar.C); + } + nVar = new n(cVar.f1185y, cVar.A, cVar.f1186z, bArr); + } else { + nVar = null; + } + String str13 = cVar.a; + if (str13 != null) { + Map map = e; + if (map.containsKey(str13)) { + i6 = map.get(cVar.a).intValue(); + if (cVar.r == 0 && Float.compare(cVar.f1183s, 0.0f) == 0 && Float.compare(cVar.t, 0.0f) == 0) { + if (Float.compare(cVar.u, 0.0f) != 0) { + i7 = 0; + } else if (Float.compare(cVar.t, 90.0f) == 0) { + i7 = 90; + } else if (Float.compare(cVar.t, -180.0f) == 0 || Float.compare(cVar.t, 180.0f) == 0) { + i7 = BaseTransientBottomBar.ANIMATION_FADE_DURATION; + } else if (Float.compare(cVar.t, -90.0f) == 0) { + i7 = 270; + } + bVar.p = cVar.m; + bVar.q = cVar.n; + bVar.t = f; + bVar.f1008s = i7; + bVar.u = cVar.v; + bVar.v = cVar.w; + bVar.w = nVar; + i4 = 2; + } + i7 = i6; + bVar.p = cVar.m; + bVar.q = cVar.n; + bVar.t = f; + bVar.f1008s = i7; + bVar.u = cVar.v; + bVar.v = cVar.w; + bVar.w = nVar; + i4 = 2; + } + } + i6 = -1; + if (Float.compare(cVar.u, 0.0f) != 0) { + } + bVar.p = cVar.m; + bVar.q = cVar.n; + bVar.t = f; + bVar.f1008s = i7; + bVar.u = cVar.v; + bVar.v = cVar.w; + bVar.w = nVar; + i4 = 2; + } else if ("application/x-subrip".equals(str12) || "text/x-ssa".equals(str12) || "application/vobsub".equals(str12) || "application/pgs".equals(str12) || "application/dvbsubs".equals(str12)) { + i4 = 3; + } else { + throw ParserException.a("Unexpected MIME type.", null); + } + String str14 = cVar.a; + if (str14 != null && !e.containsKey(str14)) { + bVar.f1007b = cVar.a; + } + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 2: + x xVar = new x(cVar.a(cVar.f1182b)); + try { + int l = xVar.l(); + if (l != 1) { + if (l == 65534) { + xVar.E(24); + long m = xVar.m(); + UUID uuid = d; + if (m == uuid.getMostSignificantBits()) { + break; + } + } + z3 = false; + if (!z3) { + i3 = e0.r(cVar.P); + if (i3 == 0) { + int i18 = cVar.P; + StringBuilder sb = new StringBuilder(75); + sb.append("Unsupported PCM bit depth: "); + sb.append(i18); + sb.append(". Setting mimeType to "); + sb.append(str12); + Log.w("MatroskaExtractor", sb.toString()); + } + str12 = "audio/raw"; + list = null; + i2 = -1; + str = null; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + } else { + Log.w("MatroskaExtractor", "Non-PCM MS/ACM is unsupported. Setting mimeType to ".concat(str12)); + } + list3 = null; + i9 = -1; + arrayList = list3; + str2 = null; + list2 = arrayList; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + } + z3 = true; + if (!z3) { + } + list3 = null; + i9 = -1; + arrayList = list3; + str2 = null; + list2 = arrayList; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + } catch (ArrayIndexOutOfBoundsException unused) { + throw ParserException.a("Error parsing MS/ACM codec private", null); + } + break; + case 3: + cVar.T = new b.i.a.c.x2.x(); + str12 = "audio/true-hd"; + list3 = null; + i9 = -1; + arrayList = list3; + str2 = null; + list2 = arrayList; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 4: + byte[] a4 = cVar.a(cVar.f1182b); + try { + if (a4[0] == 2) { + int i19 = 1; + int i20 = 0; + while ((a4[i19] & 255) == 255) { + i20 += 255; + i19++; + } + int i21 = i19 + 1; + int i22 = i20 + (a4[i19] & 255); + int i23 = 0; + while ((a4[i21] & 255) == 255) { + i23 += 255; + i21++; + } + int i24 = i21 + 1; + int i25 = i23 + (a4[i21] & 255); + if (a4[i24] == 1) { + byte[] bArr4 = new byte[i22]; + System.arraycopy(a4, i24, bArr4, 0, i22); + int i26 = i24 + i22; + if (a4[i26] == 3) { + int i27 = i26 + i25; + if (a4[i27] == 5) { + byte[] bArr5 = new byte[(a4.length - i27)]; + System.arraycopy(a4, i27, bArr5, 0, a4.length - i27); + ArrayList arrayList4 = new ArrayList(2); + arrayList4.add(bArr4); + arrayList4.add(bArr5); + i9 = 8192; + str12 = "audio/vorbis"; + arrayList = arrayList4; + str2 = null; + list2 = arrayList; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + } else { + th = null; + try { + throw ParserException.a("Error parsing vorbis codec private", null); + } catch (ArrayIndexOutOfBoundsException unused2) { + throw ParserException.a("Error parsing vorbis codec private", th); + } + } + } else { + throw ParserException.a("Error parsing vorbis codec private", null); + } + } else { + throw ParserException.a("Error parsing vorbis codec private", null); + } + } else { + throw ParserException.a("Error parsing vorbis codec private", null); + } + } catch (ArrayIndexOutOfBoundsException unused3) { + th = null; + throw ParserException.a("Error parsing vorbis codec private", th); + } + break; + case 5: + str4 = "audio/mpeg-L2"; + str3 = str4; + i9 = 4096; + arrayList3 = null; + str2 = null; + arrayList2 = arrayList3; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 6: + str4 = "audio/mpeg"; + str3 = str4; + i9 = 4096; + arrayList3 = null; + str2 = null; + arrayList2 = arrayList3; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 7: + byte[] a5 = cVar.a(cVar.f1182b); + try { + d.j(16 <= a5.length); + long j = (((long) a5[16]) & 255) | ((((long) a5[17]) & 255) << 8) | ((((long) a5[18]) & 255) << 16) | ((255 & ((long) a5[19])) << 24); + if (j == 1482049860) { + pair = new Pair("video/divx", null); + } else if (j == 859189832) { + pair = new Pair("video/3gpp", null); + } else { + if (j == 826496599) { + for (int i28 = 40; i28 < a5.length - 4; i28++) { + if (a5[i28] == 0 && a5[i28 + 1] == 0 && a5[i28 + 2] == 1) { + if (a5[i28 + 3] == 15) { + pair2 = new Pair("video/wvc1", Collections.singletonList(Arrays.copyOfRange(a5, i28, a5.length))); + } + } + } + throw ParserException.a("Failed to find FourCC VC1 initialization data", null); + } + Log.w("MatroskaExtractor", "Unknown FourCC. Setting mimeType to video/x-unknown"); + pair2 = new Pair(str11, null); + pair = pair2; + } + str6 = (String) pair.first; + pVar = (List) pair.second; + str3 = str6; + list5 = pVar; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + } catch (ArrayIndexOutOfBoundsException unused4) { + throw ParserException.a("Error parsing FourCC private data", null); + } + break; + case '\b': + byte[] bArr6 = new byte[4]; + System.arraycopy(cVar.a(cVar.f1182b), 0, bArr6, 0, 4); + p u = p.u(bArr6); + str6 = "application/dvbsubs"; + pVar = u; + str3 = str6; + list5 = pVar; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case '\n': + m b2 = m.b(new x(cVar.a(cVar.f1182b))); + list = b2.a; + cVar.Y = b2.f972b; + str8 = b2.f; + str7 = "video/avc"; + str = str8; + str12 = str7; + i3 = -1; + i2 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 11: + str6 = "application/vobsub"; + pVar = p.u(cVar.a(cVar.f1182b)); + str3 = str6; + list5 = pVar; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case '\f': + str11 = "audio/vnd.dts.hd"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case '\r': + List singletonList = Collections.singletonList(cVar.a(cVar.f1182b)); + l.b c4 = l.c(cVar.k); + cVar.Q = c4.a; + cVar.O = c4.f1108b; + str5 = c4.c; + str3 = "audio/mp4a-latm"; + list4 = singletonList; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 14: + str11 = "audio/ac3"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 15: + case 21: + str11 = "audio/vnd.dts"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 16: + str11 = "video/av01"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 17: + str11 = "video/x-vnd.on2.vp8"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 18: + str11 = "video/x-vnd.on2.vp9"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 19: + str11 = "application/pgs"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 20: + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 22: + int i29 = cVar.P; + if (i29 == 32) { + i3 = 4; + str12 = "audio/raw"; + list = null; + i2 = -1; + str = null; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + } else { + StringBuilder sb2 = new StringBuilder(90); + sb2.append("Unsupported floating point PCM bit depth: "); + sb2.append(i29); + sb2.append(". Setting mimeType to "); + sb2.append(str12); + Log.w("MatroskaExtractor", sb2.toString()); + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + } + break; + case 23: + int i30 = cVar.P; + if (i30 == 8) { + i3 = 3; + } else if (i30 != 16) { + StringBuilder sb3 = new StringBuilder(86); + sb3.append("Unsupported big endian PCM bit depth: "); + sb3.append(i30); + sb3.append(". Setting mimeType to "); + sb3.append(str12); + Log.w("MatroskaExtractor", sb3.toString()); + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + } else { + i3 = 268435456; + } + str12 = "audio/raw"; + list = null; + i2 = -1; + str = null; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 24: + i3 = e0.r(cVar.P); + if (i3 == 0) { + int i31 = cVar.P; + StringBuilder sb4 = new StringBuilder(89); + sb4.append("Unsupported little endian PCM bit depth: "); + sb4.append(i31); + sb4.append(". Setting mimeType to "); + sb4.append(str12); + Log.w("MatroskaExtractor", sb4.toString()); + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + } + str12 = "audio/raw"; + list = null; + i2 = -1; + str = null; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 25: + byte[] bArr7 = f1171b; + byte[] a6 = cVar.a(cVar.f1182b); + b.i.b.b.a aVar = p.k; + Object[] objArr = {bArr7, a6}; + str6 = "text/x-ssa"; + pVar = p.m(objArr); + str3 = str6; + list5 = pVar; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 26: + q a7 = q.a(new x(cVar.a(cVar.f1182b))); + list = a7.a; + cVar.Y = a7.f975b; + str8 = a7.d; + str7 = "video/hevc"; + str = str8; + str12 = str7; + i3 = -1; + i2 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 27: + str11 = "application/x-subrip"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 28: + str11 = "video/mpeg2"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 29: + str11 = "audio/eac3"; + str12 = str11; + str3 = str12; + list5 = null; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 30: + str6 = "audio/flac"; + pVar = Collections.singletonList(cVar.a(cVar.f1182b)); + str3 = str6; + list5 = pVar; + str5 = null; + list4 = list5; + str2 = str5; + i9 = -1; + arrayList2 = list4; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + case 31: + ArrayList arrayList5 = new ArrayList(3); + arrayList5.add(cVar.a(cVar.f1182b)); + ByteBuffer allocate = ByteBuffer.allocate(8); + ByteOrder byteOrder = ByteOrder.LITTLE_ENDIAN; + arrayList5.add(allocate.order(byteOrder).putLong(cVar.R).array()); + arrayList5.add(ByteBuffer.allocate(8).order(byteOrder).putLong(cVar.S).array()); + i9 = 5760; + str3 = "audio/opus"; + arrayList3 = arrayList5; + str2 = null; + arrayList2 = arrayList3; + str12 = str3; + list2 = arrayList2; + str = str2; + i2 = i9; + list = list2; + i3 = -1; + byte[] bArr3 = cVar.N; + str = a2.a; + str12 = "video/dolby-vision"; + int i14 = (cVar.V ? 1 : 0) | 0 | (!cVar.U ? 2 : 0); + bVar = new j1.b(); + if (!b.i.a.c.f3.t.h(str12)) { + } + String str14 = cVar.a; + bVar.f1007b = cVar.a; + bVar.b(i13); + bVar.k = str12; + bVar.l = i2; + bVar.c = cVar.W; + bVar.d = i14; + bVar.m = list; + bVar.h = str; + bVar.n = cVar.l; + j1 a3 = bVar.a(); + w p = jVar.p(cVar.c, i4); + cVar.X = p; + p.e(a3); + this.h.put(cVar.c, cVar); + break; + default: + throw ParserException.a("Unrecognized codec identifier.", null); + } + } + this.f1181z = null; + return; + } + throw ParserException.a("CodecId is missing in TrackEntry element", null); + } else if (i == 19899) { + int i32 = this.B; + if (i32 != -1) { + long j2 = this.C; + if (j2 != -1) { + if (i32 == 475249515) { + this.E = j2; + return; + } + return; + } + } + throw ParserException.a("Mandatory element SeekID or SeekPosition not found", null); + } else if (i == 25152) { + c(i); + c cVar2 = this.f1181z; + if (cVar2.h) { + w.a aVar2 = cVar2.j; + if (aVar2 != null) { + cVar2.l = new DrmInitData(null, true, new DrmInitData.SchemeData(x0.a, "video/webm", aVar2.f1285b)); + return; + } + throw ParserException.a("Encrypted Track found but ContentEncKeyID was not found", null); + } + } else if (i == 28032) { + c(i); + c cVar3 = this.f1181z; + if (cVar3.h && cVar3.i != null) { + throw ParserException.a("Combining encryption and compression is not supported", null); + } + } else if (i == 357149030) { + if (this.w == -9223372036854775807L) { + this.w = 1000000; + } + long j3 = this.f1179x; + if (j3 != -9223372036854775807L) { + this.f1180y = m(j3); + } + } else if (i != 374648427) { + if (i == 475249515) { + if (!this.A) { + j jVar2 = this.f1177f0; + r rVar = this.H; + r rVar2 = this.I; + if (this.v == -1 || this.f1180y == -9223372036854775807L || rVar == null || (i10 = rVar.a) == 0 || rVar2 == null || rVar2.a != i10) { + tVar = new t.b(this.f1180y, 0); + } else { + int[] iArr = new int[i10]; + long[] jArr = new long[i10]; + long[] jArr2 = new long[i10]; + long[] jArr3 = new long[i10]; + for (int i33 = 0; i33 < i10; i33++) { + jArr3[i33] = rVar.b(i33); + jArr[i33] = rVar2.b(i33) + this.v; + } + while (true) { + i11 = i10 - 1; + if (i12 >= i11) { + break; + } + int i34 = i12 + 1; + iArr[i12] = (int) (jArr[i34] - jArr[i12]); + jArr2[i12] = jArr3[i34] - jArr3[i12]; + i12 = i34; + } + iArr[i11] = (int) ((this.v + this.u) - jArr[i11]); + jArr2[i11] = this.f1180y - jArr3[i11]; + long j4 = jArr2[i11]; + if (j4 <= 0) { + StringBuilder sb5 = new StringBuilder(72); + sb5.append("Discarding last cue point with unexpected duration: "); + sb5.append(j4); + Log.w("MatroskaExtractor", sb5.toString()); + iArr = Arrays.copyOf(iArr, i11); + jArr = Arrays.copyOf(jArr, i11); + jArr2 = Arrays.copyOf(jArr2, i11); + jArr3 = Arrays.copyOf(jArr3, i11); + } + tVar = new b.i.a.c.x2.c(iArr, jArr, jArr2, jArr3); + } + jVar2.a(tVar); + this.A = true; + } + this.H = null; + this.I = null; + } + } else if (this.h.size() != 0) { + this.f1177f0.j(); + } else { + throw ParserException.a("No valid tracks were found", null); + } + } else if (this.L == 2) { + int i35 = 0; + for (int i36 = 0; i36 < this.P; i36++) { + i35 += this.Q[i36]; + } + c cVar4 = this.h.get(this.R); + Objects.requireNonNull(cVar4.X); + int i37 = 0; + while (i37 < this.P) { + long j5 = this.M + ((long) ((cVar4.e * i37) / 1000)); + int i38 = this.T; + if (i37 == 0 && !this.V) { + i38 |= 1; + } + int i39 = this.Q[i37]; + int i40 = i35 - i39; + d(cVar4, j5, i38, i39, i40); + i37++; + i35 = i40; + } + this.L = 0; + } + } + + public final void k(i iVar, int i) throws IOException { + x xVar = this.l; + if (xVar.c < i) { + byte[] bArr = xVar.a; + if (bArr.length < i) { + xVar.b(Math.max(bArr.length * 2, i)); + } + x xVar2 = this.l; + byte[] bArr2 = xVar2.a; + int i2 = xVar2.c; + iVar.readFully(bArr2, i2, i - i2); + this.l.D(i); + } + } + + public final void l() { + this.W = 0; + this.X = 0; + this.Y = 0; + this.Z = false; + this.f1172a0 = false; + this.f1173b0 = false; + this.f1174c0 = 0; + this.f1175d0 = 0; + this.f1176e0 = false; + this.o.A(0); + } + + public final long m(long j) throws ParserException { + long j2 = this.w; + if (j2 != -9223372036854775807L) { + return e0.F(j, j2, 1000); + } + throw ParserException.a("Can't scale timecode prior to timecodeScale being set.", null); + } + + @RequiresNonNull({"#2.output"}) + public final int n(i iVar, c cVar, int i) throws IOException { + int i2; + if ("S_TEXT/UTF8".equals(cVar.f1182b)) { + o(iVar, a, i); + int i3 = this.X; + l(); + return i3; + } else if ("S_TEXT/ASS".equals(cVar.f1182b)) { + o(iVar, c, i); + int i4 = this.X; + l(); + return i4; + } else { + w wVar = cVar.X; + boolean z2 = true; + if (!this.Z) { + if (cVar.h) { + this.T &= -1073741825; + int i5 = 128; + if (!this.f1172a0) { + iVar.readFully(this.l.a, 0, 1); + this.W++; + byte[] bArr = this.l.a; + if ((bArr[0] & 128) != 128) { + this.f1175d0 = bArr[0]; + this.f1172a0 = true; + } else { + throw ParserException.a("Extension bit is set in signal byte", null); + } + } + byte b2 = this.f1175d0; + if ((b2 & 1) == 1) { + boolean z3 = (b2 & 2) == 2; + this.T |= BasicMeasure.EXACTLY; + if (!this.f1176e0) { + iVar.readFully(this.q.a, 0, 8); + this.W += 8; + this.f1176e0 = true; + x xVar = this.l; + byte[] bArr2 = xVar.a; + if (!z3) { + i5 = 0; + } + bArr2[0] = (byte) (i5 | 8); + xVar.E(0); + wVar.f(this.l, 1, 1); + this.X++; + this.q.E(0); + wVar.f(this.q, 8, 1); + this.X += 8; + } + if (z3) { + if (!this.f1173b0) { + iVar.readFully(this.l.a, 0, 1); + this.W++; + this.l.E(0); + this.f1174c0 = this.l.t(); + this.f1173b0 = true; + } + int i6 = this.f1174c0 * 4; + this.l.A(i6); + iVar.readFully(this.l.a, 0, i6); + this.W += i6; + short s2 = (short) ((this.f1174c0 / 2) + 1); + int i7 = (s2 * 6) + 2; + ByteBuffer byteBuffer = this.t; + if (byteBuffer == null || byteBuffer.capacity() < i7) { + this.t = ByteBuffer.allocate(i7); + } + this.t.position(0); + this.t.putShort(s2); + int i8 = 0; + int i9 = 0; + while (true) { + i2 = this.f1174c0; + if (i8 >= i2) { + break; + } + int w = this.l.w(); + if (i8 % 2 == 0) { + this.t.putShort((short) (w - i9)); + } else { + this.t.putInt(w - i9); + } + i8++; + i9 = w; + } + int i10 = (i - this.W) - i9; + if (i2 % 2 == 1) { + this.t.putInt(i10); + } else { + this.t.putShort((short) i10); + this.t.putInt(0); + } + this.r.C(this.t.array(), i7); + wVar.f(this.r, i7, 1); + this.X += i7; + } + } + } else { + byte[] bArr3 = cVar.i; + if (bArr3 != null) { + x xVar2 = this.o; + int length = bArr3.length; + xVar2.a = bArr3; + xVar2.c = length; + xVar2.f970b = 0; + } + } + if (cVar.f > 0) { + this.T |= 268435456; + this.f1178s.A(0); + this.l.A(4); + x xVar3 = this.l; + byte[] bArr4 = xVar3.a; + bArr4[0] = (byte) ((i >> 24) & 255); + bArr4[1] = (byte) ((i >> 16) & 255); + bArr4[2] = (byte) ((i >> 8) & 255); + bArr4[3] = (byte) (i & 255); + wVar.f(xVar3, 4, 2); + this.X += 4; + } + this.Z = true; + } + int i11 = i + this.o.c; + if (!"V_MPEG4/ISO/AVC".equals(cVar.f1182b) && !"V_MPEGH/ISO/HEVC".equals(cVar.f1182b)) { + if (cVar.T != null) { + if (this.o.c != 0) { + z2 = false; + } + d.D(z2); + cVar.T.c(iVar); + } + while (true) { + int i12 = this.W; + if (i12 >= i11) { + break; + } + int p = p(iVar, wVar, i11 - i12); + this.W += p; + this.X += p; + } + } else { + byte[] bArr5 = this.k.a; + bArr5[0] = 0; + bArr5[1] = 0; + bArr5[2] = 0; + int i13 = cVar.Y; + int i14 = 4 - i13; + while (this.W < i11) { + int i15 = this.Y; + if (i15 == 0) { + int min = Math.min(i13, this.o.a()); + iVar.readFully(bArr5, i14 + min, i13 - min); + if (min > 0) { + x xVar4 = this.o; + System.arraycopy(xVar4.a, xVar4.f970b, bArr5, i14, min); + xVar4.f970b += min; + } + this.W += i13; + this.k.E(0); + this.Y = this.k.w(); + this.j.E(0); + wVar.c(this.j, 4); + this.X += 4; + } else { + int p2 = p(iVar, wVar, i15); + this.W += p2; + this.X += p2; + this.Y -= p2; + } + } + } + if ("A_VORBIS".equals(cVar.f1182b)) { + this.m.E(0); + wVar.c(this.m, 4); + this.X += 4; + } + int i16 = this.X; + l(); + return i16; + } + } + + public final void o(i iVar, byte[] bArr, int i) throws IOException { + int length = bArr.length + i; + x xVar = this.p; + byte[] bArr2 = xVar.a; + if (bArr2.length < length) { + xVar.B(Arrays.copyOf(bArr, length + i)); + } else { + System.arraycopy(bArr, 0, bArr2, 0, bArr.length); + } + iVar.readFully(this.p.a, bArr.length, i); + this.p.E(0); + this.p.D(length); + } + + public final int p(i iVar, w wVar, int i) throws IOException { + int a2 = this.o.a(); + if (a2 <= 0) { + return wVar.b(iVar, i, false); + } + int min = Math.min(i, a2); + wVar.c(this.o, min); + return min; + } + + @Override // b.i.a.c.x2.h + public final void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/g0/f.java b/app/src/main/java/b/i/a/c/x2/g0/f.java new file mode 100644 index 0000000000..691f3a5777 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/g0/f.java @@ -0,0 +1,35 @@ +package b.i.a.c.x2.g0; + +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +import java.io.IOException; +/* compiled from: Sniffer */ +public final class f { + public final x a = new x(8); + + /* renamed from: b reason: collision with root package name */ + public int f1187b; + + public final long a(i iVar) throws IOException { + int i = 0; + iVar.o(this.a.a, 0, 1); + int i2 = this.a.a[0] & 255; + if (i2 == 0) { + return Long.MIN_VALUE; + } + int i3 = 128; + int i4 = 0; + while ((i2 & i3) == 0) { + i3 >>= 1; + i4++; + } + int i5 = i2 & (~i3); + iVar.o(this.a.a, 1, i4); + while (i < i4) { + i++; + i5 = (this.a.a[i] & 255) + (i5 << 8); + } + this.f1187b = i4 + 1 + this.f1187b; + return (long) i5; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/g0/g.java b/app/src/main/java/b/i/a/c/x2/g0/g.java new file mode 100644 index 0000000000..18361daa8f --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/g0/g.java @@ -0,0 +1,63 @@ +package b.i.a.c.x2.g0; + +import b.i.a.c.x2.i; +import java.io.IOException; +/* compiled from: VarintReader */ +public final class g { + public static final long[] a = {128, 64, 32, 16, 8, 4, 2, 1}; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f1188b = new byte[8]; + public int c; + public int d; + + public static long a(byte[] bArr, int i, boolean z2) { + long j = ((long) bArr[0]) & 255; + if (z2) { + j &= ~a[i - 1]; + } + for (int i2 = 1; i2 < i; i2++) { + j = (j << 8) | (((long) bArr[i2]) & 255); + } + return j; + } + + public static int b(int i) { + int i2 = 0; + while (true) { + long[] jArr = a; + if (i2 >= jArr.length) { + return -1; + } + if ((jArr[i2] & ((long) i)) != 0) { + return i2 + 1; + } + i2++; + } + } + + public long c(i iVar, boolean z2, boolean z3, int i) throws IOException { + if (this.c == 0) { + if (!iVar.c(this.f1188b, 0, 1, z2)) { + return -1; + } + int b2 = b(this.f1188b[0] & 255); + this.d = b2; + if (b2 != -1) { + this.c = 1; + } else { + throw new IllegalStateException("No valid varint length mask found"); + } + } + int i2 = this.d; + if (i2 > i) { + this.c = 0; + return -2; + } + if (i2 != 1) { + iVar.readFully(this.f1188b, 1, i2 - 1); + } + this.c = 0; + return a(this.f1188b, this.d, z3); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/h.java b/app/src/main/java/b/i/a/c/x2/h.java new file mode 100644 index 0000000000..49da4d186b --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h.java @@ -0,0 +1,15 @@ +package b.i.a.c.x2; + +import java.io.IOException; +/* compiled from: Extractor */ +public interface h { + boolean b(i iVar) throws IOException; + + int e(i iVar, s sVar) throws IOException; + + void f(j jVar); + + void g(long j, long j2); + + void release(); +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/a.java b/app/src/main/java/b/i/a/c/x2/h0/a.java new file mode 100644 index 0000000000..14eb55a505 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.h0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new f(0)}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/b.java b/app/src/main/java/b/i/a/c/x2/h0/b.java new file mode 100644 index 0000000000..b7f212b995 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/b.java @@ -0,0 +1,13 @@ +package b.i.a.c.x2.h0; + +import b.i.a.c.z2.k.b; +/* compiled from: lambda */ +public final /* synthetic */ class b implements b.a { + public static final /* synthetic */ b a = new b(); + + @Override // b.i.a.c.z2.k.b.a + public final boolean a(int i, int i2, int i3, int i4, int i5) { + b.a aVar = f.a; + return (i2 == 67 && i3 == 79 && i4 == 77 && (i5 == 77 || i == 2)) || (i2 == 77 && i3 == 76 && i4 == 76 && (i5 == 84 || i == 2)); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/c.java b/app/src/main/java/b/i/a/c/x2/h0/c.java new file mode 100644 index 0000000000..52b82c4b57 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/c.java @@ -0,0 +1,20 @@ +package b.i.a.c.x2.h0; + +import b.i.a.c.t2.a0; +import b.i.a.c.x2.d; +/* compiled from: ConstantBitrateSeeker */ +public final class c extends d implements g { + public c(long j, long j2, a0.a aVar, boolean z2) { + super(j, j2, aVar.f, aVar.c, z2); + } + + @Override // b.i.a.c.x2.h0.g + public long a() { + return -1; + } + + @Override // b.i.a.c.x2.h0.g + public long d(long j) { + return d.e(j, this.f1153b, this.e); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/d.java b/app/src/main/java/b/i/a/c/x2/h0/d.java new file mode 100644 index 0000000000..bd6d66aada --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/d.java @@ -0,0 +1,66 @@ +package b.i.a.c.x2.h0; + +import b.i.a.c.f3.e0; +import b.i.a.c.f3.r; +import b.i.a.c.x2.t; +import b.i.a.c.x2.u; +/* compiled from: IndexSeeker */ +public final class d implements g { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final r f1189b; + public final r c; + public long d; + + public d(long j, long j2, long j3) { + this.d = j; + this.a = j3; + r rVar = new r(); + this.f1189b = rVar; + r rVar2 = new r(); + this.c = rVar2; + rVar.a(0); + rVar2.a(j2); + } + + @Override // b.i.a.c.x2.h0.g + public long a() { + return this.a; + } + + public boolean b(long j) { + r rVar = this.f1189b; + return j - rVar.b(rVar.a - 1) < 100000; + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + @Override // b.i.a.c.x2.h0.g + public long d(long j) { + return this.f1189b.b(e0.c(this.c, j, true, true)); + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + int c = e0.c(this.f1189b, j, true, true); + long b2 = this.f1189b.b(c); + u uVar = new u(b2, this.c.b(c)); + if (b2 != j) { + r rVar = this.f1189b; + if (c != rVar.a - 1) { + int i = c + 1; + return new t.a(uVar, new u(rVar.b(i), this.c.b(i))); + } + } + return new t.a(uVar); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.d; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/e.java b/app/src/main/java/b/i/a/c/x2/h0/e.java new file mode 100644 index 0000000000..d8953fa2c4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/e.java @@ -0,0 +1,59 @@ +package b.i.a.c.x2.h0; + +import android.util.Pair; +import b.i.a.c.f3.e0; +import b.i.a.c.x2.t; +import b.i.a.c.x2.u; +import com.google.android.material.shadow.ShadowDrawableWrapper; +/* compiled from: MlltSeeker */ +public final class e implements g { + public final long[] a; + + /* renamed from: b reason: collision with root package name */ + public final long[] f1190b; + public final long c; + + public e(long[] jArr, long[] jArr2, long j) { + this.a = jArr; + this.f1190b = jArr2; + this.c = j == -9223372036854775807L ? e0.B(jArr2[jArr2.length - 1]) : j; + } + + public static Pair b(long j, long[] jArr, long[] jArr2) { + int e = e0.e(jArr, j, true, true); + long j2 = jArr[e]; + long j3 = jArr2[e]; + int i = e + 1; + if (i == jArr.length) { + return Pair.create(Long.valueOf(j2), Long.valueOf(j3)); + } + long j4 = jArr[i]; + return Pair.create(Long.valueOf(j), Long.valueOf(((long) ((j4 == j2 ? ShadowDrawableWrapper.COS_45 : (((double) j) - ((double) j2)) / ((double) (j4 - j2))) * ((double) (jArr2[i] - j3)))) + j3)); + } + + @Override // b.i.a.c.x2.h0.g + public long a() { + return -1; + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + @Override // b.i.a.c.x2.h0.g + public long d(long j) { + return e0.B(((Long) b(j, this.a, this.f1190b).second).longValue()); + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + Pair b2 = b(e0.M(e0.i(j, 0, this.c)), this.f1190b, this.a); + return new t.a(new u(e0.B(((Long) b2.first).longValue()), ((Long) b2.second).longValue())); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.c; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/f.java b/app/src/main/java/b/i/a/c/x2/h0/f.java new file mode 100644 index 0000000000..cb533f7d0f --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/f.java @@ -0,0 +1,698 @@ +package b.i.a.c.x2.h0; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.a0; +import b.i.a.c.x2.g; +import b.i.a.c.x2.h; +import b.i.a.c.x2.h0.g; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.p; +import b.i.a.c.x2.q; +import b.i.a.c.x2.s; +import b.i.a.c.x2.w; +import b.i.a.c.z2.k.b; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.id3.MlltFrame; +import com.google.android.exoplayer2.metadata.id3.TextInformationFrame; +import java.io.EOFException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: Mp3Extractor */ +public final class f implements h { + public static final b.a a = b.a; + + /* renamed from: b reason: collision with root package name */ + public final int f1191b; + public final long c; + public final x d; + public final a0.a e; + public final p f; + public final q g; + public final w h; + public j i; + public w j; + public w k; + public int l; + @Nullable + public Metadata m; + public long n; + public long o; + public long p; + public int q; + public g r; + + /* renamed from: s reason: collision with root package name */ + public boolean f1192s; + public boolean t; + public long u; + + static { + a aVar = a.a; + } + + public f() { + this(0); + } + + public f(int i) { + this.f1191b = (i & 2) != 0 ? i | 1 : i; + this.c = -9223372036854775807L; + this.d = new x(10); + this.e = new a0.a(); + this.f = new p(); + this.n = -9223372036854775807L; + this.g = new q(); + g gVar = new g(); + this.h = gVar; + this.k = gVar; + } + + public static long d(@Nullable Metadata metadata) { + if (metadata == null) { + return -9223372036854775807L; + } + int length = metadata.j.length; + for (int i = 0; i < length; i++) { + Metadata.Entry entry = metadata.j[i]; + if (entry instanceof TextInformationFrame) { + TextInformationFrame textInformationFrame = (TextInformationFrame) entry; + if (textInformationFrame.j.equals("TLEN")) { + return e0.B(Long.parseLong(textInformationFrame.l)); + } + } + } + return -9223372036854775807L; + } + + public static boolean h(int i, long j) { + return ((long) (i & -128000)) == (j & -128000); + } + + public final long a(long j) { + return ((j * 1000000) / ((long) this.e.d)) + this.n; + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + return j(iVar, true); + } + + public final g c(i iVar, boolean z2) throws IOException { + iVar.o(this.d.a, 0, 4); + this.d.E(0); + this.e.a(this.d.f()); + return new c(iVar.b(), iVar.getPosition(), this.e, z2); + } + + /* JADX WARNING: Code restructure failed: missing block: B:134:0x02f0, code lost: + if ((r1.f1191b & 1) != 0) goto L_0x02f2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:21:0x0061, code lost: + if (r3 != 1231971951) goto L_0x0064; + */ + /* JADX WARNING: Removed duplicated region for block: B:104:0x0253 */ + /* JADX WARNING: Removed duplicated region for block: B:116:0x02a9 */ + /* JADX WARNING: Removed duplicated region for block: B:117:0x02af */ + /* JADX WARNING: Removed duplicated region for block: B:142:0x032f */ + /* JADX WARNING: Removed duplicated region for block: B:143:0x0331 */ + /* JADX WARNING: Removed duplicated region for block: B:186:0x0459 */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x007f A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x0179 */ + /* JADX WARNING: Removed duplicated region for block: B:83:0x01ee */ + /* JADX WARNING: Removed duplicated region for block: B:97:0x023b */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + f fVar; + int i; + long a2; + i iVar2; + int i2; + h hVar; + Metadata metadata; + e eVar; + i iVar3; + long j; + long j2; + long d; + int f; + int i3; + i iVar4; + int w; + i iVar5; + h hVar2; + h hVar3; + int i4; + d.H(this.j); + int i5 = e0.a; + if (this.l == 0) { + try { + j(iVar, false); + } catch (EOFException unused) { + fVar = this; + } + } + if (this.r == null) { + x xVar = new x(this.e.c); + iVar.o(xVar.a, 0, this.e.c); + a0.a aVar = this.e; + int i6 = 21; + if ((aVar.a & 1) != 0) { + if (aVar.e != 1) { + i6 = 36; + } + } else if (aVar.e == 1) { + i6 = 13; + } + if (xVar.c >= i6 + 4) { + xVar.E(i6); + i2 = xVar.f(); + if (i2 != 1483304551) { + } + String str = ", "; + if (i2 != 1483304551 || i2 == 1231971951) { + fVar = this; + long b2 = iVar.b(); + long position = iVar.getPosition(); + a0.a aVar2 = fVar.e; + int i7 = aVar2.g; + int i8 = aVar2.d; + f = xVar.f(); + if ((f & 1) == 1 || (w = xVar.w()) == 0) { + i3 = i6; + iVar4 = null; + } else { + i3 = i6; + long F = e0.F((long) w, ((long) i7) * 1000000, (long) i8); + if ((f & 6) != 6) { + iVar5 = new i(position, aVar2.c, F, -1, null); + } else { + long u = xVar.u(); + long[] jArr = new long[100]; + for (int i9 = 0; i9 < 100; i9++) { + jArr[i9] = (long) xVar.t(); + } + if (b2 != -1) { + long j3 = position + u; + if (b2 != j3) { + StringBuilder P = a.P(67, "XING data size mismatch: ", b2, str); + P.append(j3); + Log.w("XingSeeker", P.toString()); + } + } + iVar5 = new i(position, aVar2.c, F, u, jArr); + } + iVar4 = iVar5; + } + if (iVar4 != null) { + p pVar = fVar.f; + if (!((pVar.f1280b == -1 || pVar.c == -1) ? false : true)) { + iVar.k(); + iVar2 = iVar; + iVar2.g(i3 + 141); + iVar2.o(fVar.d.a, 0, 3); + fVar.d.E(0); + p pVar2 = fVar.f; + int v = fVar.d.v(); + Objects.requireNonNull(pVar2); + int i10 = v >> 12; + int i11 = v & 4095; + if (i10 > 0 || i11 > 0) { + pVar2.f1280b = i10; + pVar2.c = i11; + } + iVar2.l(fVar.e.c); + hVar = iVar4; + if (iVar4 != null) { + boolean c = iVar4.c(); + hVar = iVar4; + if (!c) { + hVar = iVar4; + if (i2 == 1231971951) { + hVar = fVar.c(iVar2, false); + } + } + } + } + } + iVar2 = iVar; + iVar2.l(fVar.e.c); + hVar = iVar4; + if (iVar4 != null) { + } + } else { + if (i2 == 1447187017) { + long b3 = iVar.b(); + long position2 = iVar.getPosition(); + a0.a aVar3 = this.e; + xVar.F(10); + int f2 = xVar.f(); + if (f2 > 0) { + int i12 = aVar3.d; + long F2 = e0.F((long) f2, ((long) (i12 >= 32000 ? 1152 : 576)) * 1000000, (long) i12); + int y2 = xVar.y(); + int y3 = xVar.y(); + int y4 = xVar.y(); + xVar.F(2); + long j4 = ((long) aVar3.c) + position2; + long[] jArr2 = new long[y2]; + long[] jArr3 = new long[y2]; + int i13 = 0; + long j5 = position2; + while (true) { + if (i13 < y2) { + jArr2[i13] = (((long) i13) * F2) / ((long) y2); + jArr3[i13] = Math.max(j5, j4); + if (y4 == 1) { + i4 = xVar.t(); + } else if (y4 == 2) { + i4 = xVar.y(); + } else if (y4 == 3) { + i4 = xVar.v(); + } else if (y4 != 4) { + break; + } else { + i4 = xVar.w(); + } + j5 += (long) (i4 * y3); + i13++; + str = str; + b3 = b3; + } else { + if (!(b3 == -1 || b3 == j5)) { + StringBuilder P2 = a.P(67, "VBRI data size mismatch: ", b3, str); + P2.append(j5); + Log.w("VbriSeeker", P2.toString()); + } + hVar3 = new h(jArr2, jArr3, F2, j5); + } + } + fVar = this; + iVar.l(fVar.e.c); + iVar2 = iVar; + hVar2 = hVar3; + } + hVar3 = null; + fVar = this; + iVar.l(fVar.e.c); + iVar2 = iVar; + hVar2 = hVar3; + } else { + fVar = this; + iVar.k(); + iVar2 = iVar; + hVar2 = null; + } + hVar = hVar2; + } + metadata = fVar.m; + long position3 = iVar.getPosition(); + if (metadata != null) { + int length = metadata.j.length; + int i14 = 0; + while (true) { + if (i14 >= length) { + break; + } + Metadata.Entry entry = metadata.j[i14]; + if (entry instanceof MlltFrame) { + MlltFrame mlltFrame = (MlltFrame) entry; + long d2 = d(metadata); + int length2 = mlltFrame.n.length; + int i15 = length2 + 1; + long[] jArr4 = new long[i15]; + long[] jArr5 = new long[i15]; + jArr4[0] = position3; + jArr5[0] = 0; + long j6 = 0; + for (int i16 = 1; i16 <= length2; i16++) { + int i17 = i16 - 1; + position3 += (long) (mlltFrame.l + mlltFrame.n[i17]); + j6 += (long) (mlltFrame.m + mlltFrame.o[i17]); + jArr4[i16] = position3; + jArr5[i16] = j6; + } + eVar = new e(jArr4, jArr5, d2); + } else { + i14++; + } + } + if (!fVar.f1192s) { + iVar3 = new g.a(); + } else { + i iVar6 = hVar; + if ((fVar.f1191b & 4) != 0) { + if (eVar != null) { + d = eVar.c; + } else if (hVar != null) { + j2 = hVar.i(); + j = hVar.a(); + iVar6 = new d(j2, iVar.getPosition(), j); + } else { + d = d(fVar.m); + } + j2 = d; + j = -1; + iVar6 = new d(j2, iVar.getPosition(), j); + } else if (eVar != null) { + iVar6 = eVar; + } else if (hVar == null) { + iVar6 = null; + } + if (iVar6 != null) { + boolean c2 = iVar6.c(); + iVar3 = iVar6; + if (!c2) { + iVar3 = iVar6; + } + } + iVar3 = fVar.c(iVar2, (fVar.f1191b & 2) != 0); + } + fVar.r = iVar3; + fVar.i.a(iVar3); + w wVar = fVar.k; + j1.b bVar = new j1.b(); + a0.a aVar4 = fVar.e; + bVar.k = aVar4.f1102b; + bVar.l = 4096; + bVar.f1009x = aVar4.e; + bVar.f1010y = aVar4.d; + p pVar3 = fVar.f; + bVar.A = pVar3.f1280b; + bVar.B = pVar3.c; + bVar.i = (fVar.f1191b & 8) == 0 ? null : fVar.m; + wVar.e(bVar.a()); + fVar.p = iVar.getPosition(); + } + eVar = null; + if (!fVar.f1192s) { + } + fVar.r = iVar3; + fVar.i.a(iVar3); + w wVar = fVar.k; + j1.b bVar = new j1.b(); + a0.a aVar4 = fVar.e; + bVar.k = aVar4.f1102b; + bVar.l = 4096; + bVar.f1009x = aVar4.e; + bVar.f1010y = aVar4.d; + p pVar3 = fVar.f; + bVar.A = pVar3.f1280b; + bVar.B = pVar3.c; + bVar.i = (fVar.f1191b & 8) == 0 ? null : fVar.m; + wVar.e(bVar.a()); + fVar.p = iVar.getPosition(); + } + if (xVar.c >= 40) { + xVar.E(36); + if (xVar.f() == 1447187017) { + i2 = 1447187017; + String str = ", "; + if (i2 != 1483304551) { + } + fVar = this; + long b2 = iVar.b(); + long position = iVar.getPosition(); + a0.a aVar2 = fVar.e; + int i7 = aVar2.g; + int i8 = aVar2.d; + f = xVar.f(); + if ((f & 1) == 1) { + } + i3 = i6; + iVar4 = null; + if (iVar4 != null) { + } + iVar2 = iVar; + iVar2.l(fVar.e.c); + hVar = iVar4; + if (iVar4 != null) { + } + metadata = fVar.m; + long position3 = iVar.getPosition(); + if (metadata != null) { + } + eVar = null; + if (!fVar.f1192s) { + } + fVar.r = iVar3; + fVar.i.a(iVar3); + w wVar = fVar.k; + j1.b bVar = new j1.b(); + a0.a aVar4 = fVar.e; + bVar.k = aVar4.f1102b; + bVar.l = 4096; + bVar.f1009x = aVar4.e; + bVar.f1010y = aVar4.d; + p pVar3 = fVar.f; + bVar.A = pVar3.f1280b; + bVar.B = pVar3.c; + bVar.i = (fVar.f1191b & 8) == 0 ? null : fVar.m; + wVar.e(bVar.a()); + fVar.p = iVar.getPosition(); + } + } + i2 = 0; + String str = ", "; + if (i2 != 1483304551) { + } + fVar = this; + long b2 = iVar.b(); + long position = iVar.getPosition(); + a0.a aVar2 = fVar.e; + int i7 = aVar2.g; + int i8 = aVar2.d; + f = xVar.f(); + if ((f & 1) == 1) { + } + i3 = i6; + iVar4 = null; + if (iVar4 != null) { + } + iVar2 = iVar; + iVar2.l(fVar.e.c); + hVar = iVar4; + if (iVar4 != null) { + } + metadata = fVar.m; + long position3 = iVar.getPosition(); + if (metadata != null) { + } + eVar = null; + if (!fVar.f1192s) { + } + fVar.r = iVar3; + fVar.i.a(iVar3); + w wVar = fVar.k; + j1.b bVar = new j1.b(); + a0.a aVar4 = fVar.e; + bVar.k = aVar4.f1102b; + bVar.l = 4096; + bVar.f1009x = aVar4.e; + bVar.f1010y = aVar4.d; + p pVar3 = fVar.f; + bVar.A = pVar3.f1280b; + bVar.B = pVar3.c; + bVar.i = (fVar.f1191b & 8) == 0 ? null : fVar.m; + wVar.e(bVar.a()); + fVar.p = iVar.getPosition(); + } else { + iVar2 = iVar; + fVar = this; + if (fVar.p != 0) { + long position4 = iVar.getPosition(); + long j7 = fVar.p; + if (position4 < j7) { + iVar2.l((int) (j7 - position4)); + } + } + } + if (fVar.q == 0) { + iVar.k(); + if (!i(iVar)) { + fVar.d.E(0); + int f3 = fVar.d.f(); + if (!h(f3, (long) fVar.l) || a0.a(f3) == -1) { + iVar2.l(1); + fVar.l = 0; + i = 0; + if (i == -1 && (fVar.r instanceof d)) { + a2 = fVar.a(fVar.o); + if (fVar.r.i() != a2) { + g gVar = fVar.r; + ((d) gVar).d = a2; + fVar.i.a(gVar); + } + } + return i; + } + fVar.e.a(f3); + if (fVar.n == -9223372036854775807L) { + fVar.n = fVar.r.d(iVar.getPosition()); + if (fVar.c != -9223372036854775807L) { + fVar.n = (fVar.c - fVar.r.d(0)) + fVar.n; + } + } + a0.a aVar5 = fVar.e; + fVar.q = aVar5.c; + g gVar2 = fVar.r; + if (gVar2 instanceof d) { + d dVar = (d) gVar2; + long a3 = fVar.a(fVar.o + ((long) aVar5.g)); + long position5 = iVar.getPosition() + ((long) fVar.e.c); + if (!dVar.b(a3)) { + dVar.f1189b.a(a3); + dVar.c.a(position5); + } + if (fVar.t && dVar.b(fVar.u)) { + fVar.t = false; + fVar.k = fVar.j; + } + } + } + i = -1; + a2 = fVar.a(fVar.o); + if (fVar.r.i() != a2) { + } + return i; + } + int b4 = fVar.k.b(iVar2, fVar.q, true); + if (b4 != -1) { + int i18 = fVar.q - b4; + fVar.q = i18; + if (i18 <= 0) { + fVar.k.d(fVar.a(fVar.o), 1, fVar.e.c, 0, null); + fVar.o += (long) fVar.e.g; + fVar.q = 0; + } + i = 0; + a2 = fVar.a(fVar.o); + if (fVar.r.i() != a2) { + } + return i; + } + i = -1; + a2 = fVar.a(fVar.o); + if (fVar.r.i() != a2) { + } + return i; + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.i = jVar; + w p = jVar.p(0, 1); + this.j = p; + this.k = p; + this.i.j(); + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + this.l = 0; + this.n = -9223372036854775807L; + this.o = 0; + this.q = 0; + this.u = j2; + g gVar = this.r; + if ((gVar instanceof d) && !((d) gVar).b(j2)) { + this.t = true; + this.k = this.h; + } + } + + public final boolean i(i iVar) throws IOException { + g gVar = this.r; + if (gVar != null) { + long a2 = gVar.a(); + if (a2 != -1 && iVar.f() > a2 - 4) { + return true; + } + } + try { + return !iVar.e(this.d.a, 0, 4, true); + } catch (EOFException unused) { + return true; + } + } + + public final boolean j(i iVar, boolean z2) throws IOException { + int i; + int i2; + int a2; + int i3 = z2 ? 32768 : 131072; + iVar.k(); + if (iVar.getPosition() == 0) { + Metadata a3 = this.g.a(iVar, (this.f1191b & 8) == 0 ? null : a); + this.m = a3; + if (a3 != null) { + this.f.b(a3); + } + i = (int) iVar.f(); + if (!z2) { + iVar.l(i); + } + i2 = 0; + } else { + i2 = 0; + i = 0; + } + int i4 = 0; + int i5 = 0; + while (true) { + if (!i(iVar)) { + this.d.E(0); + int f = this.d.f(); + if ((i2 == 0 || h(f, (long) i2)) && (a2 = a0.a(f)) != -1) { + i4++; + if (i4 != 1) { + if (i4 == 4) { + break; + } + } else { + this.e.a(f); + i2 = f; + } + iVar.g(a2 - 4); + } else { + int i6 = i5 + 1; + if (i5 != i3) { + if (z2) { + iVar.k(); + iVar.g(i + i6); + } else { + iVar.l(1); + } + i5 = i6; + i2 = 0; + i4 = 0; + } else if (z2) { + return false; + } else { + throw ParserException.a("Searched too many bytes.", null); + } + } + } else if (i4 <= 0) { + throw new EOFException(); + } + } + if (z2) { + iVar.l(i + i5); + } else { + iVar.k(); + } + this.l = i2; + return true; + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/g.java b/app/src/main/java/b/i/a/c/x2/h0/g.java new file mode 100644 index 0000000000..217d1cabb8 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/g.java @@ -0,0 +1,27 @@ +package b.i.a.c.x2.h0; + +import b.i.a.c.x2.t; +/* compiled from: Seeker */ +public interface g extends t { + + /* compiled from: Seeker */ + public static class a extends t.b implements g { + public a() { + super(-9223372036854775807L, 0); + } + + @Override // b.i.a.c.x2.h0.g + public long a() { + return -1; + } + + @Override // b.i.a.c.x2.h0.g + public long d(long j) { + return 0; + } + } + + long a(); + + long d(long j); +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/h.java b/app/src/main/java/b/i/a/c/x2/h0/h.java new file mode 100644 index 0000000000..1bc4876a73 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/h.java @@ -0,0 +1,55 @@ +package b.i.a.c.x2.h0; + +import b.i.a.c.f3.e0; +import b.i.a.c.x2.t; +import b.i.a.c.x2.u; +/* compiled from: VbriSeeker */ +public final class h implements g { + public final long[] a; + + /* renamed from: b reason: collision with root package name */ + public final long[] f1193b; + public final long c; + public final long d; + + public h(long[] jArr, long[] jArr2, long j, long j2) { + this.a = jArr; + this.f1193b = jArr2; + this.c = j; + this.d = j2; + } + + @Override // b.i.a.c.x2.h0.g + public long a() { + return this.d; + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + @Override // b.i.a.c.x2.h0.g + public long d(long j) { + return this.a[e0.e(this.f1193b, j, true, true)]; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + int e = e0.e(this.a, j, true, true); + long[] jArr = this.a; + long j2 = jArr[e]; + long[] jArr2 = this.f1193b; + u uVar = new u(j2, jArr2[e]); + if (j2 >= j || e == jArr.length - 1) { + return new t.a(uVar); + } + int i = e + 1; + return new t.a(uVar, new u(jArr[i], jArr2[i])); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.c; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/h0/i.java b/app/src/main/java/b/i/a/c/x2/h0/i.java new file mode 100644 index 0000000000..b6d7dbf04b --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/h0/i.java @@ -0,0 +1,86 @@ +package b.i.a.c.x2.h0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.x2.t; +import b.i.a.c.x2.u; +import com.google.android.material.shadow.ShadowDrawableWrapper; +/* compiled from: XingSeeker */ +public final class i implements g { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final int f1194b; + public final long c; + public final long d; + public final long e; + @Nullable + public final long[] f; + + public i(long j, int i, long j2, long j3, @Nullable long[] jArr) { + this.a = j; + this.f1194b = i; + this.c = j2; + this.f = jArr; + this.d = j3; + this.e = j3 != -1 ? j + j3 : -1; + } + + @Override // b.i.a.c.x2.h0.g + public long a() { + return this.e; + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return this.f != null; + } + + @Override // b.i.a.c.x2.h0.g + public long d(long j) { + long j2 = j - this.a; + if (!c() || j2 <= ((long) this.f1194b)) { + return 0; + } + long[] jArr = this.f; + d.H(jArr); + double d = (((double) j2) * 256.0d) / ((double) this.d); + int e = e0.e(jArr, (long) d, true, true); + long j3 = this.c; + long j4 = (((long) e) * j3) / 100; + long j5 = jArr[e]; + int i = e + 1; + long j6 = (j3 * ((long) i)) / 100; + long j7 = e == 99 ? 256 : jArr[i]; + return Math.round((j5 == j7 ? ShadowDrawableWrapper.COS_45 : (d - ((double) j5)) / ((double) (j7 - j5))) * ((double) (j6 - j4))) + j4; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + if (!c()) { + return new t.a(new u(0, this.a + ((long) this.f1194b))); + } + long i = e0.i(j, 0, this.c); + double d = (((double) i) * 100.0d) / ((double) this.c); + double d2 = ShadowDrawableWrapper.COS_45; + if (d > ShadowDrawableWrapper.COS_45) { + if (d >= 100.0d) { + d2 = 256.0d; + } else { + int i2 = (int) d; + long[] jArr = this.f; + d.H(jArr); + long[] jArr2 = jArr; + double d3 = (double) jArr2[i2]; + d2 = d3 + (((i2 == 99 ? 256.0d : (double) jArr2[i2 + 1]) - d3) * (d - ((double) i2))); + } + } + return new t.a(new u(i, this.a + e0.i(Math.round((d2 / 256.0d) * ((double) this.d)), (long) this.f1194b, this.d - 1))); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.c; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i.java b/app/src/main/java/b/i/a/c/x2/i.java new file mode 100644 index 0000000000..d23b0bf322 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i.java @@ -0,0 +1,35 @@ +package b.i.a.c.x2; + +import b.i.a.c.e3.h; +import java.io.IOException; +/* compiled from: ExtractorInput */ +public interface i extends h { + long b(); + + boolean c(byte[] bArr, int i, int i2, boolean z2) throws IOException; + + boolean e(byte[] bArr, int i, int i2, boolean z2) throws IOException; + + long f(); + + void g(int i) throws IOException; + + long getPosition(); + + int h(int i) throws IOException; + + int i(byte[] bArr, int i, int i2) throws IOException; + + void k(); + + void l(int i) throws IOException; + + boolean m(int i, boolean z2) throws IOException; + + void o(byte[] bArr, int i, int i2) throws IOException; + + @Override // b.i.a.c.e3.h + int read(byte[] bArr, int i, int i2) throws IOException; + + void readFully(byte[] bArr, int i, int i2) throws IOException; +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/a.java b/app/src/main/java/b/i/a/c/x2/i0/a.java new file mode 100644 index 0000000000..1f474ced92 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/a.java @@ -0,0 +1,14 @@ +package b.i.a.c.x2.i0; + +import b.i.b.a.e; +/* compiled from: lambda */ +public final /* synthetic */ class a implements e { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.b.a.e + public final Object apply(Object obj) { + m mVar = (m) obj; + int i = i.a; + return mVar; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/b.java b/app/src/main/java/b/i/a/c/x2/i0/b.java new file mode 100644 index 0000000000..971a2a1805 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/b.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.i0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class b implements l { + public static final /* synthetic */ b a = new b(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new i(0)}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/c.java b/app/src/main/java/b/i/a/c/x2/i0/c.java new file mode 100644 index 0000000000..24e1e6c2a6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/c.java @@ -0,0 +1,19 @@ +package b.i.a.c.x2.i0; + +import b.i.b.a.e; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class c implements e { + public final /* synthetic */ g a; + + public /* synthetic */ c(g gVar) { + this.a = gVar; + } + + @Override // b.i.b.a.e + public final Object apply(Object obj) { + m mVar = (m) obj; + Objects.requireNonNull(this.a); + return mVar; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/d.java b/app/src/main/java/b/i/a/c/x2/i0/d.java new file mode 100644 index 0000000000..9c4b7bfcba --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/d.java @@ -0,0 +1,88 @@ +package b.i.a.c.x2.i0; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.x; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +/* compiled from: Atom */ +public abstract class d { + public final int a; + + /* compiled from: Atom */ + public static final class a extends d { + + /* renamed from: b reason: collision with root package name */ + public final long f1195b; + public final List c = new ArrayList(); + public final List d = new ArrayList(); + + public a(int i, long j) { + super(i); + this.f1195b = j; + } + + @Nullable + public a b(int i) { + int size = this.d.size(); + for (int i2 = 0; i2 < size; i2++) { + a aVar = this.d.get(i2); + if (aVar.a == i) { + return aVar; + } + } + return null; + } + + @Nullable + public b c(int i) { + int size = this.c.size(); + for (int i2 = 0; i2 < size; i2++) { + b bVar = this.c.get(i2); + if (bVar.a == i) { + return bVar; + } + } + return null; + } + + @Override // b.i.a.c.x2.i0.d + public String toString() { + String a = d.a(this.a); + String arrays = Arrays.toString(this.c.toArray()); + String arrays2 = Arrays.toString(this.d.toArray()); + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(arrays2, b.d.b.a.a.b(arrays, b.d.b.a.a.b(a, 22))), a, " leaves: ", arrays, " containers: "); + Q.append(arrays2); + return Q.toString(); + } + } + + /* compiled from: Atom */ + public static final class b extends d { + + /* renamed from: b reason: collision with root package name */ + public final x f1196b; + + public b(int i, x xVar) { + super(i); + this.f1196b = xVar; + } + } + + public d(int i) { + this.a = i; + } + + public static String a(int i) { + StringBuilder sb = new StringBuilder(4); + sb.append((char) ((i >> 24) & 255)); + sb.append((char) ((i >> 16) & 255)); + sb.append((char) ((i >> 8) & 255)); + sb.append((char) (i & 255)); + return sb.toString(); + } + + public String toString() { + return a(this.a); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/e.java b/app/src/main/java/b/i/a/c/x2/i0/e.java new file mode 100644 index 0000000000..4c5be05077 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/e.java @@ -0,0 +1,1993 @@ +package b.i.a.c.x2.i0; + +import android.util.Log; +import android.util.Pair; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.t; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.g3.m; +import b.i.a.c.g3.n; +import b.i.a.c.g3.o; +import b.i.a.c.g3.q; +import b.i.a.c.j1; +import b.i.a.c.t2.l; +import b.i.a.c.x2.i0.d; +import b.i.b.b.p; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.drm.DrmInitData; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +/* compiled from: AtomParsers */ +public final class e { + public static final byte[] a = e0.w("OpusHead"); + + /* compiled from: AtomParsers */ + public interface a { + int a(); + + int b(); + + int c(); + } + + /* compiled from: AtomParsers */ + public static final class b { + public final n[] a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public j1 f1197b; + public int c; + public int d = 0; + + public b(int i) { + this.a = new n[i]; + } + } + + /* compiled from: AtomParsers */ + public static final class c implements a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1198b; + public final x c; + + public c(d.b bVar, j1 j1Var) { + x xVar = bVar.f1196b; + this.c = xVar; + xVar.E(12); + int w = xVar.w(); + if ("audio/raw".equals(j1Var.w)) { + int s2 = e0.s(j1Var.L, j1Var.J); + if (w == 0 || w % s2 != 0) { + Log.w("AtomParsers", b.d.b.a.a.g(88, "Audio sample size mismatch. stsd sample size: ", s2, ", stsz sample size: ", w)); + w = s2; + } + } + this.a = w == 0 ? -1 : w; + this.f1198b = xVar.w(); + } + + @Override // b.i.a.c.x2.i0.e.a + public int a() { + return this.a; + } + + @Override // b.i.a.c.x2.i0.e.a + public int b() { + return this.f1198b; + } + + @Override // b.i.a.c.x2.i0.e.a + public int c() { + int i = this.a; + return i == -1 ? this.c.w() : i; + } + } + + /* compiled from: AtomParsers */ + public static final class d implements a { + public final x a; + + /* renamed from: b reason: collision with root package name */ + public final int f1199b; + public final int c; + public int d; + public int e; + + public d(d.b bVar) { + x xVar = bVar.f1196b; + this.a = xVar; + xVar.E(12); + this.c = xVar.w() & 255; + this.f1199b = xVar.w(); + } + + @Override // b.i.a.c.x2.i0.e.a + public int a() { + return -1; + } + + @Override // b.i.a.c.x2.i0.e.a + public int b() { + return this.f1199b; + } + + @Override // b.i.a.c.x2.i0.e.a + public int c() { + int i = this.c; + if (i == 8) { + return this.a.t(); + } + if (i == 16) { + return this.a.y(); + } + int i2 = this.d; + this.d = i2 + 1; + if (i2 % 2 != 0) { + return this.e & 15; + } + int t = this.a.t(); + this.e = t; + return (t & 240) >> 4; + } + } + + public static Pair a(x xVar, int i) { + xVar.E(i + 8 + 4); + xVar.F(1); + b(xVar); + xVar.F(2); + int t = xVar.t(); + if ((t & 128) != 0) { + xVar.F(2); + } + if ((t & 64) != 0) { + xVar.F(xVar.y()); + } + if ((t & 32) != 0) { + xVar.F(2); + } + xVar.F(1); + b(xVar); + String d2 = t.d(xVar.t()); + if ("audio/mpeg".equals(d2) || "audio/vnd.dts".equals(d2) || "audio/vnd.dts.hd".equals(d2)) { + return Pair.create(d2, null); + } + xVar.F(12); + xVar.F(1); + int b2 = b(xVar); + byte[] bArr = new byte[b2]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, b2); + xVar.f970b += b2; + return Pair.create(d2, bArr); + } + + public static int b(x xVar) { + int t = xVar.t(); + int i = t & 127; + while ((t & 128) == 128) { + t = xVar.t(); + i = (i << 7) | (t & 127); + } + return i; + } + + @Nullable + public static Pair c(x xVar, int i, int i2) throws ParserException { + Pair pair; + Integer num; + n nVar; + int i3; + int i4; + byte[] bArr; + int i5 = xVar.f970b; + while (i5 - i < i2) { + xVar.E(i5); + int f = xVar.f(); + int i6 = 1; + b.c.a.a0.d.q(f > 0, "childAtomSize must be positive"); + if (xVar.f() == 1936289382) { + int i7 = i5 + 8; + int i8 = -1; + int i9 = 0; + String str = null; + Integer num2 = null; + while (i7 - i5 < f) { + xVar.E(i7); + int f2 = xVar.f(); + int f3 = xVar.f(); + if (f3 == 1718775137) { + num2 = Integer.valueOf(xVar.f()); + } else if (f3 == 1935894637) { + xVar.F(4); + str = xVar.q(4); + } else if (f3 == 1935894633) { + i8 = i7; + i9 = f2; + } + i7 += f2; + } + if ("cenc".equals(str) || "cbc1".equals(str) || "cens".equals(str) || "cbcs".equals(str)) { + b.c.a.a0.d.q(num2 != null, "frma atom is mandatory"); + b.c.a.a0.d.q(i8 != -1, "schi atom is mandatory"); + int i10 = i8 + 8; + while (true) { + if (i10 - i8 >= i9) { + num = num2; + nVar = null; + break; + } + xVar.E(i10); + int f4 = xVar.f(); + if (xVar.f() == 1952804451) { + int f5 = (xVar.f() >> 24) & 255; + xVar.F(i6); + if (f5 == 0) { + xVar.F(i6); + i4 = 0; + i3 = 0; + } else { + int t = xVar.t(); + i4 = t & 15; + i3 = (t & 240) >> 4; + } + boolean z2 = xVar.t() == i6; + int t2 = xVar.t(); + byte[] bArr2 = new byte[16]; + System.arraycopy(xVar.a, xVar.f970b, bArr2, 0, 16); + xVar.f970b += 16; + if (!z2 || t2 != 0) { + bArr = null; + } else { + int t3 = xVar.t(); + byte[] bArr3 = new byte[t3]; + System.arraycopy(xVar.a, xVar.f970b, bArr3, 0, t3); + xVar.f970b += t3; + bArr = bArr3; + } + num = num2; + nVar = new n(z2, str, t2, bArr2, i3, i4, bArr); + } else { + i10 += f4; + i6 = 1; + } + } + b.c.a.a0.d.q(nVar != null, "tenc atom is mandatory"); + int i11 = e0.a; + pair = Pair.create(num, nVar); + } else { + pair = null; + } + if (pair != null) { + return pair; + } + } + i5 += f; + } + return null; + } + + /* JADX WARNING: Code restructure failed: missing block: B:489:0x0a3f, code lost: + if (r21 == null) goto L_0x0a53; + */ + /* JADX WARNING: Removed duplicated region for block: B:222:0x0374 */ + /* JADX WARNING: Removed duplicated region for block: B:309:0x061e */ + public static b d(x xVar, int i, int i2, String str, @Nullable DrmInitData drmInitData, boolean z2) throws ParserException { + int i3; + int i4; + int i5; + int i6; + b bVar; + DrmInitData drmInitData2; + int i7; + int i8; + byte[] bArr; + int i9; + int i10; + b bVar2; + int i11; + int i12; + int i13; + int i14; + int i15; + b bVar3; + int i16; + int i17; + int i18; + List list; + String str2; + float f; + List list2; + int i19; + int i20; + int i21; + int i22; + int i23; + int i24; + int i25; + DrmInitData drmInitData3; + int i26; + int i27; + int i28; + String str3; + String str4; + p pVar; + int i29; + int i30; + boolean z3; + String str5; + int i31; + int i32; + p pVar2; + int i33; + int i34; + int i35; + int i36; + String str6; + int i37; + p pVar3; + String str7; + String str8; + p pVar4; + String str9 = str; + DrmInitData drmInitData4 = drmInitData; + xVar.E(12); + int f2 = xVar.f(); + b bVar4 = new b(f2); + int i38 = 0; + while (i38 < f2) { + int i39 = xVar.f970b; + int f3 = xVar.f(); + String str10 = "childAtomSize must be positive"; + b.c.a.a0.d.q(f3 > 0, str10); + int f4 = xVar.f(); + if (f4 == 1635148593 || f4 == 1635148595 || f4 == 1701733238 || f4 == 1831958048 || f4 == 1836070006 || f4 == 1752589105 || f4 == 1751479857 || f4 == 1932670515 || f4 == 1211250227 || f4 == 1987063864 || f4 == 1987063865 || f4 == 1635135537 || f4 == 1685479798 || f4 == 1685479729 || f4 == 1685481573 || f4 == 1685481521) { + i6 = f2; + i5 = i38; + xVar.E(i39 + 8 + 8); + xVar.F(16); + int y2 = xVar.y(); + int y3 = xVar.y(); + xVar.F(50); + int i40 = xVar.f970b; + if (f4 == 1701733238) { + i8 = i39; + i7 = f3; + Pair c2 = c(xVar, i8, i7); + if (c2 != null) { + f4 = ((Integer) c2.first).intValue(); + drmInitData2 = drmInitData == null ? null : drmInitData.a(((n) c2.second).f1217b); + bVar4.a[i5] = (n) c2.second; + } else { + drmInitData2 = drmInitData; + } + xVar.E(i40); + } else { + i8 = i39; + i7 = f3; + drmInitData2 = drmInitData; + } + String str11 = f4 == 1831958048 ? "video/mpeg" : f4 == 1211250227 ? "video/3gpp" : null; + float f5 = 1.0f; + ByteBuffer byteBuffer = null; + boolean z4 = false; + byte[] bArr2 = null; + String str12 = null; + List list3 = null; + int i41 = -1; + int i42 = -1; + int i43 = -1; + int i44 = -1; + while (true) { + if (i40 - i8 >= i7) { + bArr = bArr2; + i9 = y2; + i10 = y3; + bVar2 = bVar4; + i4 = i8; + i3 = i7; + i11 = i44; + break; + } + xVar.E(i40); + int i45 = xVar.f970b; + i11 = i44; + int f6 = xVar.f(); + bArr = bArr2; + if (f6 == 0 && xVar.f970b - i8 == i7) { + i9 = y2; + i10 = y3; + bVar2 = bVar4; + i4 = i8; + i3 = i7; + break; + } + b.c.a.a0.d.q(f6 > 0, str10); + int f7 = xVar.f(); + if (f7 == 1635148611) { + b.c.a.a0.d.q(str11 == null, null); + xVar.E(i45 + 8); + m b2 = m.b(xVar); + list = b2.a; + bVar4.c = b2.f972b; + if (!z4) { + f5 = b2.e; + } + str12 = b2.f; + str2 = "video/avc"; + } else if (f7 == 1752589123) { + b.c.a.a0.d.q(str11 == null, null); + xVar.E(i45 + 8); + q a2 = q.a(xVar); + list = a2.a; + bVar4.c = a2.f975b; + if (!z4) { + f5 = a2.c; + } + str12 = a2.d; + str2 = "video/hevc"; + } else { + if (f7 == 1685480259 || f7 == 1685485123) { + i14 = y2; + i15 = y3; + bVar3 = bVar4; + i17 = i8; + i16 = i7; + i18 = f4; + f = f5; + o a3 = o.a(xVar); + if (a3 != null) { + str11 = "video/dolby-vision"; + str12 = a3.a; + } + } else if (f7 == 1987076931) { + b.c.a.a0.d.q(str11 == null, null); + str2 = f4 == 1987063864 ? "video/x-vnd.on2.vp8" : "video/x-vnd.on2.vp9"; + list = list3; + } else { + if (f7 == 1635135811) { + b.c.a.a0.d.q(str11 == null, null); + str11 = "video/av01"; + } else if (f7 == 1668050025) { + if (byteBuffer == null) { + byteBuffer = ByteBuffer.allocate(25).order(ByteOrder.LITTLE_ENDIAN); + } + byteBuffer.position(21); + byteBuffer.putShort(xVar.p()); + byteBuffer.putShort(xVar.p()); + byteBuffer = byteBuffer; + } else if (f7 == 1835295606) { + if (byteBuffer == null) { + byteBuffer = ByteBuffer.allocate(25).order(ByteOrder.LITTLE_ENDIAN); + } + short p = xVar.p(); + short p2 = xVar.p(); + i18 = f4; + short p3 = xVar.p(); + i17 = i8; + short p4 = xVar.p(); + i16 = i7; + short p5 = xVar.p(); + bVar3 = bVar4; + short p6 = xVar.p(); + short p7 = xVar.p(); + i15 = y3; + short p8 = xVar.p(); + long u = xVar.u(); + long u2 = xVar.u(); + i14 = y2; + byteBuffer.position(1); + byteBuffer.putShort(p5); + byteBuffer.putShort(p6); + byteBuffer.putShort(p); + byteBuffer.putShort(p2); + byteBuffer.putShort(p3); + byteBuffer.putShort(p4); + byteBuffer.putShort(p7); + byteBuffer.putShort(p8); + byteBuffer.putShort((short) ((int) (u / 10000))); + byteBuffer.putShort((short) ((int) (u2 / 10000))); + byteBuffer = byteBuffer; + list = list3; + f5 = f5; + list3 = list; + bArr2 = bArr; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } else { + i14 = y2; + i15 = y3; + bVar3 = bVar4; + i17 = i8; + i16 = i7; + i18 = f4; + f = f5; + if (f7 == 1681012275) { + b.c.a.a0.d.q(str11 == null, null); + str11 = "video/3gpp"; + } else if (f7 == 1702061171) { + b.c.a.a0.d.q(str11 == null, null); + Pair a4 = a(xVar, i45); + str11 = (String) a4.first; + byte[] bArr3 = (byte[]) a4.second; + if (bArr3 != null) { + list2 = p.u(bArr3); + bArr2 = bArr; + list3 = list2; + f5 = f; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } + list2 = list3; + bArr2 = bArr; + list3 = list2; + f5 = f; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } else if (f7 == 1885434736) { + xVar.E(i45 + 8); + f5 = ((float) xVar.w()) / ((float) xVar.w()); + bArr2 = bArr; + z4 = true; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } else if (f7 == 1937126244) { + int i46 = i45 + 8; + while (true) { + if (i46 - i45 >= f6) { + bArr2 = null; + break; + } + xVar.E(i46); + int f8 = xVar.f(); + if (xVar.f() == 1886547818) { + bArr2 = Arrays.copyOfRange(xVar.a, i46, f8 + i46); + break; + } + i46 += f8; + } + list2 = list3; + list3 = list2; + f5 = f; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } else if (f7 == 1936995172) { + int t = xVar.t(); + xVar.F(3); + if (t == 0) { + int t2 = xVar.t(); + if (t2 == 0) { + i19 = 0; + } else if (t2 == 1) { + i19 = 1; + } else if (t2 == 2) { + i19 = 2; + } else if (t2 == 3) { + i19 = 3; + } + i11 = i19; + list2 = list3; + bArr2 = bArr; + list3 = list2; + f5 = f; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } + } else if (f7 == 1668246642) { + int f9 = xVar.f(); + if (f9 == 1852009592 || f9 == 1852009571) { + int y4 = xVar.y(); + int y5 = xVar.y(); + xVar.F(2); + boolean z5 = f6 == 19 && (xVar.t() & 128) != 0; + int a5 = n.a(y4); + int i47 = z5 ? 1 : 2; + i43 = a5; + i41 = n.b(y5); + i42 = i47; + } else { + String valueOf = String.valueOf(d.a(f9)); + Log.w("AtomParsers", valueOf.length() != 0 ? "Unsupported color type: ".concat(valueOf) : new String("Unsupported color type: ")); + } + } + } + list = list3; + i14 = y2; + i15 = y3; + bVar3 = bVar4; + i17 = i8; + i16 = i7; + i18 = f4; + list3 = list; + bArr2 = bArr; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } + i19 = i11; + i11 = i19; + list2 = list3; + bArr2 = bArr; + list3 = list2; + f5 = f; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } + str11 = str2; + i14 = y2; + i15 = y3; + bVar3 = bVar4; + i17 = i8; + i16 = i7; + i18 = f4; + list3 = list; + bArr2 = bArr; + i40 += f6; + i44 = i11; + str10 = str10; + f4 = i18; + i8 = i17; + i7 = i16; + bVar4 = bVar3; + y3 = i15; + y2 = i14; + } + byte[] bArr4 = null; + if (str11 == null) { + bVar = bVar2; + } else { + j1.b bVar5 = new j1.b(); + bVar5.b(i); + bVar5.k = str11; + bVar5.h = str12; + bVar5.p = i9; + bVar5.q = i10; + bVar5.t = f5; + bVar5.f1008s = i2; + bVar5.u = bArr; + bVar5.v = i11; + bVar5.m = list3; + bVar5.n = drmInitData2; + if (i43 == -1) { + i13 = i42; + i12 = i41; + if (i13 == -1) { + if (i12 == -1) { + } + } + } else { + i12 = i41; + i13 = i42; + } + if (byteBuffer != null) { + bArr4 = byteBuffer.array(); + } + bVar5.w = new n(i43, i13, i12, bArr4); + j1 a6 = bVar5.a(); + bVar = bVar2; + bVar.f1197b = a6; + } + } else if (f4 == 1836069985 || f4 == 1701733217 || f4 == 1633889587 || f4 == 1700998451 || f4 == 1633889588 || f4 == 1835823201 || f4 == 1685353315 || f4 == 1685353317 || f4 == 1685353320 || f4 == 1685353324 || f4 == 1685353336 || f4 == 1935764850 || f4 == 1935767394 || f4 == 1819304813 || f4 == 1936684916 || f4 == 1953984371 || f4 == 778924082 || f4 == 778924083 || f4 == 1835557169 || f4 == 1835560241 || f4 == 1634492771 || f4 == 1634492791 || f4 == 1970037111 || f4 == 1332770163 || f4 == 1716281667) { + xVar.E(i39 + 8 + 8); + if (z2) { + i20 = xVar.y(); + xVar.F(6); + } else { + xVar.F(8); + i20 = 0; + } + if (i20 == 0 || i20 == 1) { + int y6 = xVar.y(); + xVar.F(6); + byte[] bArr5 = xVar.a; + int i48 = xVar.f970b; + int i49 = i48 + 1; + xVar.f970b = i49; + i6 = f2; + int i50 = i49 + 1; + xVar.f970b = i50; + i23 = (bArr5[i49] & 255) | ((bArr5[i48] & 255) << 8); + int i51 = i50 + 2; + xVar.f970b = i51; + xVar.E(i51 - 4); + int f10 = xVar.f(); + if (i20 == 1) { + xVar.F(16); + } + i24 = y6; + i25 = f10; + } else if (i20 == 2) { + xVar.F(16); + i23 = (int) Math.round(Double.longBitsToDouble(xVar.m())); + i24 = xVar.w(); + xVar.F(20); + i25 = 0; + i6 = f2; + } else { + i6 = f2; + i5 = i38; + i22 = i39; + i21 = f3; + bVar = bVar4; + i4 = i22; + i3 = i21; + } + int i52 = xVar.f970b; + if (f4 == 1701733217) { + Pair c3 = c(xVar, i39, f3); + if (c3 != null) { + int intValue = ((Integer) c3.first).intValue(); + drmInitData3 = drmInitData4 == null ? null : drmInitData4.a(((n) c3.second).f1217b); + bVar4.a[i38] = (n) c3.second; + f4 = intValue; + } else { + drmInitData3 = drmInitData4; + } + xVar.E(i52); + } else { + drmInitData3 = drmInitData4; + } + String str13 = "audio/ac3"; + String str14 = "audio/raw"; + if (f4 == 1633889587) { + str14 = str13; + } else if (f4 == 1700998451) { + str14 = "audio/eac3"; + } else if (f4 == 1633889588) { + str14 = "audio/ac4"; + } else { + if (f4 == 1685353315) { + str7 = "audio/vnd.dts"; + } else if (f4 == 1685353320 || f4 == 1685353324) { + str7 = "audio/vnd.dts.hd"; + } else if (f4 == 1685353317) { + str7 = "audio/vnd.dts.hd;profile=lbr"; + } else if (f4 == 1685353336) { + str7 = "audio/vnd.dts.uhd;profile=p2"; + } else if (f4 == 1935764850) { + str7 = "audio/3gpp"; + } else if (f4 == 1935767394) { + str7 = "audio/amr-wb"; + } else if (f4 == 1819304813 || f4 == 1936684916) { + i26 = 2; + i27 = i23; + i28 = i24; + str3 = null; + i5 = i38; + str4 = str14; + pVar = null; + i29 = i52; + while (i29 - i39 < f3) { + xVar.E(i29); + int f11 = xVar.f(); + if (f11 > 0) { + i30 = f3; + z3 = true; + } else { + i30 = f3; + z3 = false; + } + b.c.a.a0.d.q(z3, str10); + int f12 = xVar.f(); + if (f12 == 1835557187) { + int i53 = f11 - 13; + byte[] bArr6 = new byte[i53]; + xVar.E(i29 + 13); + System.arraycopy(xVar.a, xVar.f970b, bArr6, 0, i53); + xVar.f970b += i53; + pVar = p.u(bArr6); + str10 = str10; + i32 = f11; + i27 = i27; + str5 = str13; + i31 = i25; + } else { + int i54 = f11; + String str15 = str10; + if (f12 == 1702061171) { + i33 = i27; + str5 = str13; + i34 = 1702061171; + } else if (!z2 || f12 != 2002876005) { + if (f12 == 1684103987) { + xVar.E(i29 + 8); + String num = Integer.toString(i); + int i55 = b.i.a.c.t2.m.f1109b[(xVar.t() & 192) >> 6]; + int t3 = xVar.t(); + int i56 = b.i.a.c.t2.m.d[(t3 & 56) >> 3]; + if ((t3 & 4) != 0) { + i56++; + } + j1.b bVar6 = new j1.b(); + bVar6.a = num; + bVar6.k = str13; + bVar6.f1009x = i56; + bVar6.f1010y = i55; + bVar6.n = drmInitData3; + bVar6.c = str9; + bVar4.f1197b = bVar6.a(); + } else if (f12 == 1684366131) { + xVar.E(i29 + 8); + String num2 = Integer.toString(i); + xVar.F(2); + int i57 = b.i.a.c.t2.m.f1109b[(xVar.t() & 192) >> 6]; + int t4 = xVar.t(); + int i58 = b.i.a.c.t2.m.d[(t4 & 14) >> 1]; + if ((t4 & 1) != 0) { + i58++; + } + if (((xVar.t() & 30) >> 1) > 0 && (xVar.t() & 2) != 0) { + i58 += 2; + } + String str16 = (xVar.a() <= 0 || (xVar.t() & 1) == 0) ? "audio/eac3" : "audio/eac3-joc"; + j1.b bVar7 = new j1.b(); + bVar7.a = num2; + bVar7.k = str16; + bVar7.f1009x = i58; + bVar7.f1010y = i57; + bVar7.n = drmInitData3; + bVar7.c = str9; + bVar4.f1197b = bVar7.a(); + } else if (f12 == 1684103988) { + xVar.E(i29 + 8); + String num3 = Integer.toString(i); + xVar.F(1); + int i59 = ((xVar.t() & 32) >> 5) == 1 ? 48000 : 44100; + j1.b bVar8 = new j1.b(); + bVar8.a = num3; + bVar8.k = "audio/ac4"; + bVar8.f1009x = 2; + bVar8.f1010y = i59; + bVar8.n = drmInitData3; + bVar8.c = str9; + bVar4.f1197b = bVar8.a(); + } else { + if (f12 == 1684892784) { + if (i25 > 0) { + i28 = 2; + i27 = i25; + pVar2 = pVar; + } else { + throw b.d.b.a.a.t0(60, "Invalid sample rate for Dolby TrueHD MLP stream: ", i25, null); + } + } else if (f12 == 1684305011) { + j1.b bVar9 = new j1.b(); + bVar9.b(i); + bVar9.k = str4; + bVar9.f1009x = i28; + i37 = i27; + bVar9.f1010y = i37; + bVar9.n = drmInitData3; + bVar9.c = str9; + bVar4.f1197b = bVar9.a(); + str5 = str13; + i27 = i37; + pVar2 = pVar; + str10 = str15; + i32 = i54; + i31 = i25; + pVar = pVar2; + } else { + i37 = i27; + if (f12 == 1682927731) { + int i60 = i54 - 8; + byte[] bArr7 = a; + byte[] copyOf = Arrays.copyOf(bArr7, bArr7.length + i60); + xVar.E(i29 + 8); + xVar.e(copyOf, bArr7.length, i60); + pVar2 = b.c.a.a0.d.g(copyOf); + i27 = i37; + } else { + if (f12 == 1684425825) { + int i61 = i54 - 12; + byte[] bArr8 = new byte[(i61 + 4)]; + bArr8[0] = 102; + bArr8[1] = 76; + bArr8[2] = 97; + bArr8[3] = 67; + xVar.E(i29 + 12); + str5 = str13; + System.arraycopy(xVar.a, xVar.f970b, bArr8, 4, i61); + xVar.f970b += i61; + pVar3 = p.u(bArr8); + } else { + str5 = str13; + if (f12 == 1634492771) { + int i62 = i54 - 12; + byte[] bArr9 = new byte[i62]; + xVar.E(i29 + 12); + System.arraycopy(xVar.a, xVar.f970b, bArr9, 0, i62); + xVar.f970b += i62; + x xVar2 = new x(bArr9); + xVar2.E(9); + int t5 = xVar2.t(); + xVar2.E(20); + Pair create = Pair.create(Integer.valueOf(xVar2.w()), Integer.valueOf(t5)); + i37 = ((Integer) create.first).intValue(); + i28 = ((Integer) create.second).intValue(); + pVar3 = p.u(bArr9); + } + i27 = i37; + pVar2 = pVar; + str10 = str15; + i32 = i54; + i31 = i25; + pVar = pVar2; + } + pVar2 = pVar3; + i27 = i37; + str10 = str15; + i32 = i54; + i31 = i25; + pVar = pVar2; + } + } + str5 = str13; + str10 = str15; + i32 = i54; + i31 = i25; + pVar = pVar2; + } + i37 = i27; + str5 = str13; + i27 = i37; + pVar2 = pVar; + str10 = str15; + i32 = i54; + i31 = i25; + pVar = pVar2; + } else { + i34 = 1702061171; + i33 = i27; + str5 = str13; + } + if (f12 == i34) { + i36 = i29; + str10 = str15; + i32 = i54; + i31 = i25; + } else { + i36 = xVar.f970b; + b.c.a.a0.d.q(i36 >= i29, null); + while (true) { + i32 = i54; + if (i36 - i29 >= i32) { + str10 = str15; + i31 = i25; + i35 = -1; + i36 = -1; + break; + } + xVar.E(i36); + int f13 = xVar.f(); + str10 = str15; + b.c.a.a0.d.q(f13 > 0, str10); + i31 = i25; + if (xVar.f() == 1702061171) { + break; + } + i36 += f13; + i54 = i32; + i25 = i31; + str15 = str10; + } + if (i36 != i35) { + Pair a7 = a(xVar, i36); + str4 = (String) a7.first; + byte[] bArr10 = (byte[]) a7.second; + if (bArr10 != null) { + if ("audio/mp4a-latm".equals(str4)) { + l.b b3 = l.b(new w(bArr10), false); + i33 = b3.a; + i28 = b3.f1108b; + str6 = b3.c; + } else { + str6 = str3; + } + pVar = p.u(bArr10); + str3 = str6; + i27 = i33; + } + } + i27 = i33; + pVar2 = pVar; + pVar = pVar2; + } + i35 = -1; + if (i36 != i35) { + } + i27 = i33; + pVar2 = pVar; + pVar = pVar2; + } + i29 += i32; + i39 = i39; + f3 = i30; + i25 = i31; + str13 = str5; + } + i22 = i39; + i21 = f3; + if (bVar4.f1197b == null && str4 != null) { + j1.b bVar10 = new j1.b(); + bVar10.b(i); + bVar10.k = str4; + bVar10.h = str3; + bVar10.f1009x = i28; + bVar10.f1010y = i27; + bVar10.f1011z = i26; + bVar10.m = pVar; + bVar10.n = drmInitData3; + bVar10.c = str9; + bVar4.f1197b = bVar10.a(); + } + bVar = bVar4; + i4 = i22; + i3 = i21; + } else { + if (f4 == 1953984371) { + i26 = 268435456; + } else if (f4 == 778924082 || f4 == 778924083) { + str7 = "audio/mpeg"; + } else if (f4 == 1835557169) { + str7 = "audio/mha1"; + } else if (f4 == 1835560241) { + str7 = "audio/mhm1"; + } else if (f4 == 1634492771) { + str7 = "audio/alac"; + } else if (f4 == 1634492791) { + str7 = "audio/g711-alaw"; + } else if (f4 == 1970037111) { + str7 = "audio/g711-mlaw"; + } else if (f4 == 1332770163) { + str7 = "audio/opus"; + } else if (f4 == 1716281667) { + str7 = "audio/flac"; + } else if (f4 == 1835823201) { + str7 = "audio/true-hd"; + } else { + i26 = -1; + str14 = null; + } + i27 = i23; + i28 = i24; + str3 = null; + i5 = i38; + str4 = str14; + pVar = null; + i29 = i52; + while (i29 - i39 < f3) { + } + i22 = i39; + i21 = f3; + j1.b bVar10 = new j1.b(); + bVar10.b(i); + bVar10.k = str4; + bVar10.h = str3; + bVar10.f1009x = i28; + bVar10.f1010y = i27; + bVar10.f1011z = i26; + bVar10.m = pVar; + bVar10.n = drmInitData3; + bVar10.c = str9; + bVar4.f1197b = bVar10.a(); + bVar = bVar4; + i4 = i22; + i3 = i21; + } + str14 = str7; + } + i26 = -1; + i27 = i23; + i28 = i24; + str3 = null; + i5 = i38; + str4 = str14; + pVar = null; + i29 = i52; + while (i29 - i39 < f3) { + } + i22 = i39; + i21 = f3; + j1.b bVar10 = new j1.b(); + bVar10.b(i); + bVar10.k = str4; + bVar10.h = str3; + bVar10.f1009x = i28; + bVar10.f1010y = i27; + bVar10.f1011z = i26; + bVar10.m = pVar; + bVar10.n = drmInitData3; + bVar10.c = str9; + bVar4.f1197b = bVar10.a(); + bVar = bVar4; + i4 = i22; + i3 = i21; + } else { + if (f4 == 1414810956 || f4 == 1954034535 || f4 == 2004251764 || f4 == 1937010800 || f4 == 1664495672) { + xVar.E(i39 + 8 + 8); + long j = RecyclerView.FOREVER_NS; + String str17 = "application/ttml+xml"; + if (f4 != 1414810956) { + if (f4 == 1954034535) { + int i63 = (f3 - 8) - 8; + byte[] bArr11 = new byte[i63]; + System.arraycopy(xVar.a, xVar.f970b, bArr11, 0, i63); + xVar.f970b += i63; + pVar4 = p.u(bArr11); + str8 = "application/x-quicktime-tx3g"; + j1.b bVar11 = new j1.b(); + bVar11.b(i); + bVar11.k = str8; + bVar11.c = str9; + bVar11.o = j; + bVar11.m = pVar4; + bVar4.f1197b = bVar11.a(); + } else if (f4 == 2004251764) { + str17 = "application/x-mp4-vtt"; + } else if (f4 == 1937010800) { + j = 0; + } else if (f4 == 1664495672) { + bVar4.d = 1; + str17 = "application/x-mp4-cea-608"; + } else { + throw new IllegalStateException(); + } + } + pVar4 = null; + str8 = str17; + j1.b bVar11 = new j1.b(); + bVar11.b(i); + bVar11.k = str8; + bVar11.c = str9; + bVar11.o = j; + bVar11.m = pVar4; + bVar4.f1197b = bVar11.a(); + } else if (f4 == 1835365492) { + xVar.E(i39 + 8 + 8); + if (f4 == 1835365492) { + xVar.n(); + String n = xVar.n(); + if (n != null) { + j1.b bVar12 = new j1.b(); + bVar12.b(i); + bVar12.k = n; + bVar4.f1197b = bVar12.a(); + } + } + } else if (f4 == 1667329389) { + j1.b bVar13 = new j1.b(); + bVar13.b(i); + bVar13.k = "application/x-camera-motion"; + bVar4.f1197b = bVar13.a(); + } + i6 = f2; + bVar = bVar4; + i5 = i38; + i4 = i39; + i3 = f3; + } + xVar.E(i4 + i3); + i38 = i5 + 1; + str9 = str; + bVar4 = bVar; + f2 = i6; + drmInitData4 = drmInitData; + } + return bVar4; + } + + /* JADX WARNING: Removed duplicated region for block: B:110:0x0277 */ + /* JADX WARNING: Removed duplicated region for block: B:115:0x0292 */ + /* JADX WARNING: Removed duplicated region for block: B:118:0x02c5 */ + /* JADX WARNING: Removed duplicated region for block: B:168:0x03f3 */ + /* JADX WARNING: Removed duplicated region for block: B:193:0x04a2 */ + /* JADX WARNING: Removed duplicated region for block: B:258:0x05ef */ + /* JADX WARNING: Removed duplicated region for block: B:259:0x05f2 */ + /* JADX WARNING: Removed duplicated region for block: B:264:0x064c */ + /* JADX WARNING: Removed duplicated region for block: B:265:0x065e */ + /* JADX WARNING: Removed duplicated region for block: B:69:0x0136 */ + /* JADX WARNING: Removed duplicated region for block: B:70:0x0139 */ + /* JADX WARNING: Removed duplicated region for block: B:73:0x014c */ + /* JADX WARNING: Removed duplicated region for block: B:74:0x014f */ + /* JADX WARNING: Removed duplicated region for block: B:77:0x0162 */ + /* JADX WARNING: Removed duplicated region for block: B:80:0x019c */ + /* JADX WARNING: Removed duplicated region for block: B:81:0x019f */ + /* JADX WARNING: Removed duplicated region for block: B:84:0x01aa */ + /* JADX WARNING: Removed duplicated region for block: B:85:0x01ac */ + /* JADX WARNING: Removed duplicated region for block: B:92:0x0213 */ + /* JADX WARNING: Removed duplicated region for block: B:93:0x0215 */ + public static List

e(d.a aVar, b.i.a.c.x2.p pVar, long j, @Nullable DrmInitData drmInitData, boolean z2, boolean z3, b.i.b.a.e eVar) throws ParserException { + int i; + ArrayList arrayList; + b.i.b.a.e eVar2; + m mVar; + m apply; + a aVar2; + ArrayList arrayList2; + p pVar2; + boolean z4; + int i2; + int i3; + int i4; + int a2; + String str; + m mVar2; + int[] iArr; + long[] jArr; + long j2; + long[] jArr2; + int[] iArr2; + int i5; + long[] jArr3; + p pVar3; + int i6; + int[] iArr3; + long[] jArr4; + long[] jArr5; + int i7; + int[] iArr4; + int[] iArr5; + boolean z5; + int[] iArr6; + long[] jArr6; + int i8; + int i9; + boolean z6; + boolean z7; + long j3; + int i10; + long j4; + b d2; + long[] jArr7; + long[] jArr8; + d.a b2; + d.b c2; + Pair pair; + int i11; + int i12; + long j5; + d.a aVar3 = aVar; + ArrayList arrayList3 = new ArrayList(); + int i13 = 0; + while (i13 < aVar3.d.size()) { + d.a aVar4 = aVar3.d.get(i13); + if (aVar4.a == 1953653099) { + d.b c3 = aVar3.c(1836476516); + Objects.requireNonNull(c3); + d.a b3 = aVar4.b(1835297121); + Objects.requireNonNull(b3); + d.b c4 = b3.c(1751411826); + Objects.requireNonNull(c4); + x xVar = c4.f1196b; + xVar.E(16); + int f = xVar.f(); + int i14 = f == 1936684398 ? 1 : f == 1986618469 ? 2 : (f == 1952807028 || f == 1935832172 || f == 1937072756 || f == 1668047728) ? 3 : f == 1835365473 ? 5 : -1; + if (i14 != -1) { + d.b c5 = aVar4.c(1953196132); + Objects.requireNonNull(c5); + x xVar2 = c5.f1196b; + int i15 = 8; + xVar2.E(8); + int f2 = (xVar2.f() >> 24) & 255; + if (f2 != 0) { + i15 = 16; + } + xVar2.F(i15); + int f3 = xVar2.f(); + xVar2.F(4); + int i16 = xVar2.f970b; + int i17 = f2 == 0 ? 4 : 8; + int i18 = 0; + while (true) { + if (i18 >= i17) { + z7 = true; + break; + } else if (xVar2.a[i16 + i18] != -1) { + z7 = false; + break; + } else { + i18++; + } + } + if (z7) { + xVar2.F(i17); + } else { + j3 = f2 == 0 ? xVar2.u() : xVar2.x(); + if (j3 != 0) { + i10 = 16; + xVar2.F(i10); + int f4 = xVar2.f(); + int f5 = xVar2.f(); + xVar2.F(4); + int f6 = xVar2.f(); + int f7 = xVar2.f(); + int i19 = (f4 != 0 && f5 == 65536 && f6 == -65536 && f7 == 0) ? 90 : (f4 != 0 && f5 == -65536 && f6 == 65536 && f7 == 0) ? 270 : (f4 != -65536 && f5 == 0 && f6 == 0 && f7 == -65536) ? BaseTransientBottomBar.ANIMATION_FADE_DURATION : 0; + j4 = j != -9223372036854775807L ? j3 : j; + x xVar3 = c3.f1196b; + xVar3.E(8); + xVar3.F(((xVar3.f() >> 24) & 255) != 0 ? 8 : 16); + long u = xVar3.u(); + long j6 = -9223372036854775807L; + if (j4 != -9223372036854775807L) { + j6 = e0.F(j4, 1000000, u); + } + d.a b4 = b3.b(1835626086); + Objects.requireNonNull(b4); + d.a b5 = b4.b(1937007212); + Objects.requireNonNull(b5); + d.b c6 = b3.c(1835296868); + Objects.requireNonNull(c6); + x xVar4 = c6.f1196b; + xVar4.E(8); + int f8 = (xVar4.f() >> 24) & 255; + xVar4.F(f8 != 0 ? 8 : 16); + long u2 = xVar4.u(); + xVar4.F(f8 != 0 ? 4 : 8); + int y2 = xVar4.y(); + StringBuilder sb = new StringBuilder(3); + sb.append((char) (((y2 >> 10) & 31) + 96)); + sb.append((char) (((y2 >> 5) & 31) + 96)); + sb.append((char) ((y2 & 31) + 96)); + Pair create = Pair.create(Long.valueOf(u2), sb.toString()); + d.b c7 = b5.c(1937011556); + Objects.requireNonNull(c7); + d2 = d(c7.f1196b, f3, i19, (String) create.second, drmInitData, z3); + if (!z2 && (b2 = aVar4.b(1701082227)) != null) { + c2 = b2.c(1701606260); + if (c2 != null) { + pair = null; + } else { + x xVar5 = c2.f1196b; + xVar5.E(8); + int f9 = (xVar5.f() >> 24) & 255; + int w = xVar5.w(); + long[] jArr9 = new long[w]; + long[] jArr10 = new long[w]; + int i20 = 0; + while (i20 < w) { + jArr9[i20] = f9 == 1 ? xVar5.x() : xVar5.u(); + if (f9 == 1) { + i11 = w; + i12 = f9; + j5 = xVar5.m(); + } else { + i12 = f9; + i11 = w; + j5 = (long) xVar5.f(); + } + jArr10[i20] = j5; + if (xVar5.p() == 1) { + xVar5.F(2); + i20++; + f9 = i12; + w = i11; + } else { + throw new IllegalArgumentException("Unsupported media rate."); + } + } + pair = Pair.create(jArr9, jArr10); + } + if (pair != null) { + jArr7 = (long[]) pair.second; + jArr8 = (long[]) pair.first; + if (d2.f1197b != null) { + m mVar3 = new m(f3, i14, ((Long) create.first).longValue(), u, j6, d2.f1197b, d2.d, d2.a, d2.c, jArr8, jArr7); + eVar2 = eVar; + mVar = mVar3; + apply = eVar2.apply(mVar); + if (apply != null) { + d.a b6 = aVar4.b(1835297121); + Objects.requireNonNull(b6); + d.a b7 = b6.b(1835626086); + Objects.requireNonNull(b7); + d.a b8 = b7.b(1937007212); + Objects.requireNonNull(b8); + d.b c8 = b8.c(1937011578); + if (c8 != null) { + aVar2 = new c(c8, apply.f); + } else { + d.b c9 = b8.c(1937013298); + if (c9 != null) { + aVar2 = new d(c9); + } else { + throw ParserException.a("Track has no sample table size information", null); + } + } + int b9 = aVar2.b(); + if (b9 == 0) { + pVar2 = new p(apply, new long[0], new int[0], 0, new long[0], new int[0], 0); + arrayList2 = arrayList3; + i = i13; + } else { + d.b c10 = b8.c(1937007471); + if (c10 == null) { + c10 = b8.c(1668232756); + Objects.requireNonNull(c10); + z4 = true; + } else { + z4 = false; + } + x xVar6 = c10.f1196b; + d.b c11 = b8.c(1937011555); + Objects.requireNonNull(c11); + x xVar7 = c11.f1196b; + d.b c12 = b8.c(1937011827); + Objects.requireNonNull(c12); + x xVar8 = c12.f1196b; + d.b c13 = b8.c(1937011571); + x xVar9 = c13 != null ? c13.f1196b : null; + d.b c14 = b8.c(1668576371); + x xVar10 = c14 != null ? c14.f1196b : null; + xVar6.E(12); + int w2 = xVar6.w(); + xVar7.E(12); + int w3 = xVar7.w(); + b.c.a.a0.d.q(xVar7.f() == 1, "first_chunk must be 1"); + xVar8.E(12); + int w4 = xVar8.w() - 1; + int w5 = xVar8.w(); + int i21 = w3; + int w6 = xVar8.w(); + if (xVar10 != null) { + xVar10.E(12); + i2 = xVar10.w(); + } else { + i2 = 0; + } + if (xVar9 != null) { + xVar9.E(12); + i4 = xVar9.w(); + if (i4 > 0) { + i3 = xVar9.w() - 1; + i = i13; + a2 = aVar2.a(); + arrayList2 = arrayList3; + str = apply.f.w; + if (!(a2 == -1 && ("audio/raw".equals(str) || "audio/g711-mlaw".equals(str) || "audio/g711-alaw".equals(str)) && w4 == 0 && i2 == 0 && i4 == 0)) { + long[] jArr11 = new long[w2]; + int[] iArr7 = new int[w2]; + int i22 = 0; + long j7 = 0; + int i23 = -1; + int i24 = 0; + while (true) { + i23++; + if (i23 == w2) { + z6 = false; + } else { + j7 = z4 ? xVar6.x() : xVar6.u(); + if (i23 == i22) { + i24 = xVar7.w(); + xVar7.F(4); + i21--; + i22 = i21 > 0 ? xVar7.w() - 1 : -1; + } + z6 = true; + } + if (!z6) { + break; + } + jArr11[i23] = j7; + iArr7[i23] = i24; + } + long j8 = (long) w6; + int i25 = 8192 / a2; + int i26 = 0; + for (int i27 = 0; i27 < w2; i27++) { + i26 += e0.f(iArr7[i27], i25); + } + jArr = new long[i26]; + int[] iArr8 = new int[i26]; + long[] jArr12 = new long[i26]; + int[] iArr9 = new int[i26]; + int i28 = 0; + int i29 = 0; + int i30 = 0; + int i31 = 0; + while (i28 < w2) { + int i32 = iArr7[i28]; + long j9 = jArr11[i28]; + int i33 = i31; + int i34 = i32; + long j10 = j9; + while (i34 > 0) { + int min = Math.min(i25, i34); + jArr[i30] = j10; + iArr8[i30] = a2 * min; + i33 = Math.max(i33, iArr8[i30]); + jArr12[i30] = ((long) i29) * j8; + iArr9[i30] = 1; + j10 += (long) iArr8[i30]; + i29 += min; + i34 -= min; + i30++; + i25 = i25; + a2 = a2; + } + i28++; + i31 = i33; + jArr11 = jArr11; + iArr7 = iArr7; + } + j2 = j8 * ((long) i29); + iArr2 = iArr9; + iArr = iArr8; + jArr2 = jArr12; + i5 = i31; + mVar2 = apply; + } else { + long[] jArr13 = new long[b9]; + int[] iArr10 = new int[b9]; + jArr2 = new long[b9]; + int[] iArr11 = new int[b9]; + int i35 = 0; + int i36 = 0; + int i37 = 0; + long j11 = 0; + long j12 = 0; + long j13 = 0; + int i38 = -1; + int i39 = w6; + int i40 = w5; + int i41 = i3; + int i42 = i4; + int i43 = 0; + int i44 = 0; + int i45 = w4; + int i46 = i2; + int i47 = 0; + int i48 = 0; + while (true) { + if (i47 >= b9) { + break; + } + boolean z8 = true; + int i49 = i35; + while (true) { + if (i36 != 0) { + i9 = i41; + break; + } + i9 = i41; + int i50 = i38 + 1; + if (i50 == w2) { + z8 = false; + } else { + j13 = z4 ? xVar6.x() : xVar6.u(); + if (i50 == i49) { + i37 = xVar7.w(); + xVar7.F(4); + i21--; + i49 = i21 > 0 ? xVar7.w() - 1 : -1; + } + z8 = true; + } + i38 = i50; + if (!z8) { + break; + } + i36 = i37; + j12 = j13; + i41 = i9; + } + if (!z8) { + Log.w("AtomParsers", "Unexpected end of chunk data"); + jArr13 = Arrays.copyOf(jArr13, i47); + iArr10 = Arrays.copyOf(iArr10, i47); + jArr2 = Arrays.copyOf(jArr2, i47); + iArr11 = Arrays.copyOf(iArr11, i47); + b9 = i47; + break; + } + if (xVar10 != null) { + while (i44 == 0 && i46 > 0) { + i44 = xVar10.w(); + i43 = xVar10.f(); + i46--; + } + i44--; + } + jArr13[i47] = j12; + iArr10[i47] = aVar2.c(); + if (iArr10[i47] > i48) { + i48 = iArr10[i47]; + } + jArr2[i47] = j11 + ((long) i43); + iArr11[i47] = xVar9 == null ? 1 : 0; + int i51 = i9; + if (i47 == i51) { + iArr11[i47] = 1; + i42--; + if (i42 > 0) { + Objects.requireNonNull(xVar9); + i51 = xVar9.w() - 1; + } + } + int i52 = i39; + j11 += (long) i52; + i40--; + if (i40 == 0 && i45 > 0) { + i45--; + i40 = xVar8.w(); + i52 = xVar8.f(); + } + j12 += (long) iArr10[i47]; + i36--; + i47++; + i43 = i43; + b9 = b9; + i35 = i49; + jArr2 = jArr2; + i39 = i52; + z4 = z4; + i41 = i51; + xVar6 = xVar6; + } + long j14 = j11 + ((long) i43); + if (xVar10 != null) { + while (true) { + if (i46 <= 0) { + break; + } else if (xVar10.w() != 0) { + z5 = false; + break; + } else { + xVar10.f(); + i46--; + } + } + if (i42 != 0 && i40 == 0 && i36 == 0 && i45 == 0) { + i8 = i44; + if (i8 == 0 && z5) { + iArr6 = iArr10; + mVar2 = apply; + jArr6 = jArr13; + iArr2 = iArr11; + j2 = j14; + i5 = i48; + jArr = jArr6; + iArr = iArr6; + } + } else { + i8 = i44; + } + mVar2 = apply; + int i53 = mVar2.a; + String str2 = z5 ? ", ctts invalid" : ""; + jArr6 = jArr13; + iArr6 = iArr10; + StringBuilder O = b.d.b.a.a.O(str2.length() + 262, "Inconsistent stbl box for track ", i53, ": remainingSynchronizationSamples ", i42); + O.append(", remainingSamplesAtTimestampDelta "); + O.append(i40); + O.append(", remainingSamplesInChunk "); + O.append(i36); + O.append(", remainingTimestampDeltaChanges "); + O.append(i45); + O.append(", remainingSamplesAtTimestampOffset "); + O.append(i8); + b.d.b.a.a.o0(O, str2, "AtomParsers"); + iArr2 = iArr11; + j2 = j14; + i5 = i48; + jArr = jArr6; + iArr = iArr6; + } + z5 = true; + if (i42 != 0) { + } + i8 = i44; + mVar2 = apply; + int i53 = mVar2.a; + if (z5) { + } + jArr6 = jArr13; + iArr6 = iArr10; + StringBuilder O = b.d.b.a.a.O(str2.length() + 262, "Inconsistent stbl box for track ", i53, ": remainingSynchronizationSamples ", i42); + O.append(", remainingSamplesAtTimestampDelta "); + O.append(i40); + O.append(", remainingSamplesInChunk "); + O.append(i36); + O.append(", remainingTimestampDeltaChanges "); + O.append(i45); + O.append(", remainingSamplesAtTimestampOffset "); + O.append(i8); + b.d.b.a.a.o0(O, str2, "AtomParsers"); + iArr2 = iArr11; + j2 = j14; + i5 = i48; + jArr = jArr6; + iArr = iArr6; + } + long F = e0.F(j2, 1000000, mVar2.c); + jArr3 = mVar2.h; + if (jArr3 != null) { + e0.G(jArr2, 1000000, mVar2.c); + pVar2 = new p(mVar2, jArr, iArr, i5, jArr2, iArr2, F); + } else { + if (jArr3.length == 1 && mVar2.f1216b == 1 && jArr2.length >= 2) { + long[] jArr14 = mVar2.i; + Objects.requireNonNull(jArr14); + long j15 = jArr14[0]; + jArr4 = jArr; + i6 = i5; + iArr3 = iArr2; + long F2 = e0.F(mVar2.h[0], mVar2.c, mVar2.d) + j15; + int length = jArr2.length - 1; + if (jArr2[0] <= j15 && j15 < jArr2[e0.h(4, 0, length)] && jArr2[e0.h(jArr2.length - 4, 0, length)] < F2 && F2 <= j2) { + long j16 = j2 - F2; + long F3 = e0.F(j15 - jArr2[0], (long) mVar2.f.K, mVar2.c); + long F4 = e0.F(j16, (long) mVar2.f.K, mVar2.c); + if (!(F3 == 0 && F4 == 0) && F3 <= 2147483647L && F4 <= 2147483647L) { + pVar.f1280b = (int) F3; + pVar.c = (int) F4; + e0.G(jArr2, 1000000, mVar2.c); + pVar3 = new p(mVar2, jArr4, iArr, i6, jArr2, iArr3, e0.F(mVar2.h[0], 1000000, mVar2.d)); + pVar2 = pVar3; + } + } + } else { + i6 = i5; + iArr3 = iArr2; + jArr4 = jArr; + } + long[] jArr15 = mVar2.h; + if (jArr15.length == 1 && jArr15[0] == 0) { + long[] jArr16 = mVar2.i; + Objects.requireNonNull(jArr16); + long j17 = jArr16[0]; + for (int i54 = 0; i54 < jArr2.length; i54++) { + jArr2[i54] = e0.F(jArr2[i54] - j17, 1000000, mVar2.c); + } + pVar3 = new p(mVar2, jArr4, iArr, i6, jArr2, iArr3, e0.F(j2 - j17, 1000000, mVar2.c)); + pVar2 = pVar3; + } else { + boolean z9 = mVar2.f1216b == 1; + int[] iArr12 = new int[jArr15.length]; + int[] iArr13 = new int[jArr15.length]; + long[] jArr17 = mVar2.i; + Objects.requireNonNull(jArr17); + int i55 = 0; + boolean z10 = false; + int i56 = 0; + int i57 = 0; + while (true) { + long[] jArr18 = mVar2.h; + if (i55 >= jArr18.length) { + break; + } + long j18 = jArr17[i55]; + if (j18 != -1) { + iArr5 = iArr13; + long F5 = e0.F(jArr18[i55], mVar2.c, mVar2.d); + iArr12[i55] = e0.e(jArr2, j18, true, true); + iArr5[i55] = e0.b(jArr2, j18 + F5, z9, false); + while (iArr12[i55] < iArr5[i55] && (iArr3[iArr12[i55]] & 1) == 0) { + iArr12[i55] = iArr12[i55] + 1; + } + int i58 = (iArr5[i55] - iArr12[i55]) + i56; + boolean z11 = i57 != iArr12[i55]; + i56 = i58; + i57 = iArr5[i55]; + z10 |= z11; + } else { + iArr5 = iArr13; + i56 = i56; + z10 = z10; + } + i55++; + iArr13 = iArr5; + } + boolean z12 = z10 | (i56 != b9); + long[] jArr19 = z12 ? new long[i56] : jArr4; + int[] iArr14 = z12 ? new int[i56] : iArr; + int i59 = z12 ? 0 : i6; + int[] iArr15 = z12 ? new int[i56] : iArr3; + long[] jArr20 = new long[i56]; + int i60 = 0; + int i61 = 0; + long j19 = 0; + while (i60 < mVar2.h.length) { + long j20 = mVar2.i[i60]; + int i62 = iArr12[i60]; + int i63 = iArr13[i60]; + if (z12) { + i7 = i59; + int i64 = i63 - i62; + System.arraycopy(jArr4, i62, jArr19, i61, i64); + System.arraycopy(iArr, i62, iArr14, i61, i64); + jArr5 = jArr4; + iArr4 = iArr3; + System.arraycopy(iArr4, i62, iArr15, i61, i64); + } else { + jArr5 = jArr4; + i7 = i59; + iArr4 = iArr3; + } + i59 = i7; + while (i62 < i63) { + jArr20[i61] = e0.F(j19, 1000000, mVar2.d) + e0.F(Math.max(0L, jArr2[i62] - j20), 1000000, mVar2.c); + if (z12 && iArr14[i61] > i59) { + i59 = iArr[i62]; + } + i61++; + i62++; + iArr15 = iArr15; + j19 = j19; + jArr2 = jArr2; + iArr4 = iArr4; + i63 = i63; + } + j19 += mVar2.h[i60]; + i60++; + iArr12 = iArr12; + iArr15 = iArr15; + iArr3 = iArr4; + jArr4 = jArr5; + } + pVar2 = new p(mVar2, jArr19, iArr14, i59, jArr20, iArr15, e0.F(j19, 1000000, mVar2.d)); + } + } + } else { + xVar9 = null; + } + } else { + i4 = 0; + } + i3 = -1; + i = i13; + a2 = aVar2.a(); + arrayList2 = arrayList3; + str = apply.f.w; + if (!(a2 == -1 && ("audio/raw".equals(str) || "audio/g711-mlaw".equals(str) || "audio/g711-alaw".equals(str)) && w4 == 0 && i2 == 0 && i4 == 0)) { + } + long F = e0.F(j2, 1000000, mVar2.c); + jArr3 = mVar2.h; + if (jArr3 != null) { + } + } + arrayList = arrayList2; + arrayList.add(pVar2); + i13 = i + 1; + aVar3 = aVar; + arrayList3 = arrayList; + } + } + } + } + jArr8 = null; + jArr7 = null; + if (d2.f1197b != null) { + } + } + } + i10 = 16; + j3 = -9223372036854775807L; + xVar2.F(i10); + int f4 = xVar2.f(); + int f5 = xVar2.f(); + xVar2.F(4); + int f6 = xVar2.f(); + int f7 = xVar2.f(); + if (f4 != 0) { + } + if (j != -9223372036854775807L) { + } + x xVar3 = c3.f1196b; + xVar3.E(8); + xVar3.F(((xVar3.f() >> 24) & 255) != 0 ? 8 : 16); + long u = xVar3.u(); + long j6 = -9223372036854775807L; + if (j4 != -9223372036854775807L) { + } + d.a b4 = b3.b(1835626086); + Objects.requireNonNull(b4); + d.a b5 = b4.b(1937007212); + Objects.requireNonNull(b5); + d.b c6 = b3.c(1835296868); + Objects.requireNonNull(c6); + x xVar4 = c6.f1196b; + xVar4.E(8); + int f8 = (xVar4.f() >> 24) & 255; + xVar4.F(f8 != 0 ? 8 : 16); + long u2 = xVar4.u(); + xVar4.F(f8 != 0 ? 4 : 8); + int y2 = xVar4.y(); + StringBuilder sb = new StringBuilder(3); + sb.append((char) (((y2 >> 10) & 31) + 96)); + sb.append((char) (((y2 >> 5) & 31) + 96)); + sb.append((char) ((y2 & 31) + 96)); + Pair create = Pair.create(Long.valueOf(u2), sb.toString()); + d.b c7 = b5.c(1937011556); + Objects.requireNonNull(c7); + d2 = d(c7.f1196b, f3, i19, (String) create.second, drmInitData, z3); + c2 = b2.c(1701606260); + if (c2 != null) { + } + if (pair != null) { + } + jArr8 = null; + jArr7 = null; + if (d2.f1197b != null) { + } + } + mVar = null; + eVar2 = eVar; + apply = eVar2.apply(mVar); + if (apply != null) { + } + } + arrayList = arrayList3; + i = i13; + i13 = i + 1; + aVar3 = aVar; + arrayList3 = arrayList; + } + return arrayList3; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/f.java b/app/src/main/java/b/i/a/c/x2/i0/f.java new file mode 100644 index 0000000000..6035c0aec0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/f.java @@ -0,0 +1,17 @@ +package b.i.a.c.x2.i0; +/* compiled from: DefaultSampleValues */ +public final class f { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1200b; + public final int c; + public final int d; + + public f(int i, int i2, int i3, int i4) { + this.a = i; + this.f1200b = i2; + this.c = i3; + this.d = i4; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/g.java b/app/src/main/java/b/i/a/c/x2/i0/g.java new file mode 100644 index 0000000000..60d3067a71 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/g.java @@ -0,0 +1,1405 @@ +package b.i.a.c.x2.i0; + +import android.util.Log; +import android.util.Pair; +import android.util.SparseArray; +import androidx.annotation.Nullable; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import androidx.core.view.ViewCompat; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.n; +import b.i.a.c.x2.c; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.i0.d; +import b.i.a.c.x2.j; +import b.i.a.c.x2.p; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import b.i.a.c.x2.w; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.drm.DrmInitData; +import java.io.DataOutputStream; +import java.io.IOException; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.UUID; +/* compiled from: FragmentedMp4Extractor */ +public class g implements h { + public static final byte[] a = {-94, 57, 79, 82, 90, -101, 79, 20, -94, 68, 108, 66, 124, 100, -115, -12}; + + /* renamed from: b reason: collision with root package name */ + public static final j1 f1201b; + public int A; + public int B; + public boolean C; + public j D; + public w[] E; + public w[] F; + public boolean G; + public final int c; + public final List d; + public final SparseArray e; + public final x f = new x(u.a); + public final x g = new x(5); + public final x h = new x(); + public final byte[] i; + public final x j; + public final b.i.a.c.z2.i.b k = new b.i.a.c.z2.i.b(); + public final x l = new x(16); + public final ArrayDeque m; + public final ArrayDeque n; + public int o; + public int p; + public long q; + public int r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public x f1202s; + public long t; + public int u; + public long v; + public long w; + + /* renamed from: x reason: collision with root package name */ + public long f1203x; + @Nullable + + /* renamed from: y reason: collision with root package name */ + public b f1204y; + + /* renamed from: z reason: collision with root package name */ + public int f1205z; + + /* compiled from: FragmentedMp4Extractor */ + public static final class a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final int f1206b; + + public a(long j, int i) { + this.a = j; + this.f1206b = i; + } + } + + /* compiled from: FragmentedMp4Extractor */ + public static final class b { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final o f1207b = new o(); + public final x c = new x(); + public p d; + public f e; + public int f; + public int g; + public int h; + public int i; + public final x j = new x(1); + public final x k = new x(); + public boolean l; + + public b(w wVar, p pVar, f fVar) { + this.a = wVar; + this.d = pVar; + this.e = fVar; + this.d = pVar; + this.e = fVar; + wVar.e(pVar.a.f); + e(); + } + + public long a() { + return !this.l ? this.d.c[this.f] : this.f1207b.f[this.h]; + } + + @Nullable + public n b() { + if (!this.l) { + return null; + } + o oVar = this.f1207b; + f fVar = oVar.a; + int i = e0.a; + int i2 = fVar.a; + n nVar = oVar.m; + if (nVar == null) { + nVar = this.d.a.a(i2); + } + if (nVar == null || !nVar.a) { + return null; + } + return nVar; + } + + public boolean c() { + this.f++; + if (!this.l) { + return false; + } + int i = this.g + 1; + this.g = i; + int[] iArr = this.f1207b.g; + int i2 = this.h; + if (i != iArr[i2]) { + return true; + } + this.h = i2 + 1; + this.g = 0; + return false; + } + + public int d(int i, int i2) { + x xVar; + n b2 = b(); + if (b2 == null) { + return 0; + } + int i3 = b2.d; + if (i3 != 0) { + xVar = this.f1207b.n; + } else { + byte[] bArr = b2.e; + int i4 = e0.a; + x xVar2 = this.k; + int length = bArr.length; + xVar2.a = bArr; + xVar2.c = length; + xVar2.f970b = 0; + i3 = bArr.length; + xVar = xVar2; + } + o oVar = this.f1207b; + boolean z2 = oVar.k && oVar.l[this.f]; + boolean z3 = z2 || i2 != 0; + x xVar3 = this.j; + xVar3.a[0] = (byte) ((z3 ? 128 : 0) | i3); + xVar3.E(0); + this.a.f(this.j, 1, 1); + this.a.f(xVar, i3, 1); + if (!z3) { + return i3 + 1; + } + if (!z2) { + this.c.A(8); + x xVar4 = this.c; + byte[] bArr2 = xVar4.a; + bArr2[0] = 0; + bArr2[1] = 1; + bArr2[2] = (byte) ((i2 >> 8) & 255); + bArr2[3] = (byte) (i2 & 255); + bArr2[4] = (byte) ((i >> 24) & 255); + bArr2[5] = (byte) ((i >> 16) & 255); + bArr2[6] = (byte) ((i >> 8) & 255); + bArr2[7] = (byte) (i & 255); + this.a.f(xVar4, 8, 1); + return i3 + 1 + 8; + } + x xVar5 = this.f1207b.n; + int y2 = xVar5.y(); + xVar5.F(-2); + int i5 = (y2 * 6) + 2; + if (i2 != 0) { + this.c.A(i5); + byte[] bArr3 = this.c.a; + xVar5.e(bArr3, 0, i5); + int i6 = (((bArr3[2] & 255) << 8) | (bArr3[3] & 255)) + i2; + bArr3[2] = (byte) ((i6 >> 8) & 255); + bArr3[3] = (byte) (i6 & 255); + xVar5 = this.c; + } + this.a.f(xVar5, i5, 1); + return i3 + 1 + i5; + } + + public void e() { + o oVar = this.f1207b; + oVar.d = 0; + oVar.p = 0; + oVar.q = false; + oVar.k = false; + oVar.o = false; + oVar.m = null; + this.f = 0; + this.h = 0; + this.g = 0; + this.i = 0; + this.l = false; + } + } + + static { + j1.b bVar = new j1.b(); + bVar.k = "application/x-emsg"; + f1201b = bVar.a(); + } + + public g(int i) { + List emptyList = Collections.emptyList(); + this.c = i; + this.d = Collections.unmodifiableList(emptyList); + byte[] bArr = new byte[16]; + this.i = bArr; + this.j = new x(bArr); + this.m = new ArrayDeque<>(); + this.n = new ArrayDeque<>(); + this.e = new SparseArray<>(); + this.w = -9223372036854775807L; + this.v = -9223372036854775807L; + this.f1203x = -9223372036854775807L; + this.D = j.d; + this.E = new w[0]; + this.F = new w[0]; + } + + public static int a(int i) throws ParserException { + if (i >= 0) { + return i; + } + throw b.d.b.a.a.t0(38, "Unexpected negative value: ", i, null); + } + + @Nullable + public static DrmInitData h(List list) { + int size = list.size(); + ArrayList arrayList = null; + for (int i = 0; i < size; i++) { + d.b bVar = list.get(i); + if (bVar.a == 1886614376) { + if (arrayList == null) { + arrayList = new ArrayList(); + } + byte[] bArr = bVar.f1196b.a; + j t1 = b.c.a.a0.d.t1(bArr); + UUID uuid = t1 == null ? null : t1.a; + if (uuid == null) { + Log.w("FragmentedMp4Extractor", "Skipped pssh atom (failed to extract uuid)"); + } else { + arrayList.add(new DrmInitData.SchemeData(uuid, "video/mp4", bArr)); + } + } + } + if (arrayList == null) { + return null; + } + return new DrmInitData(null, false, (DrmInitData.SchemeData[]) arrayList.toArray(new DrmInitData.SchemeData[0])); + } + + public static void i(x xVar, int i, o oVar) throws ParserException { + xVar.E(i + 8); + int f = xVar.f() & ViewCompat.MEASURED_SIZE_MASK; + if ((f & 1) == 0) { + boolean z2 = (f & 2) != 0; + int w = xVar.w(); + if (w == 0) { + Arrays.fill(oVar.l, 0, oVar.e, false); + return; + } + int i2 = oVar.e; + if (w == i2) { + Arrays.fill(oVar.l, 0, w, z2); + int a2 = xVar.a(); + x xVar2 = oVar.n; + byte[] bArr = xVar2.a; + if (bArr.length < a2) { + bArr = new byte[a2]; + } + xVar2.a = bArr; + xVar2.c = a2; + xVar2.f970b = 0; + oVar.k = true; + oVar.o = true; + xVar.e(bArr, 0, a2); + oVar.n.E(0); + oVar.o = false; + return; + } + throw ParserException.a(b.d.b.a.a.g(80, "Senc sample count ", w, " is different from fragment sample count", i2), null); + } + throw ParserException.b("Overriding TrackEncryptionBox parameters is unsupported."); + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + return l.a(iVar, true, false); + } + + public final void c() { + this.o = 0; + this.r = 0; + } + + public final f d(SparseArray sparseArray, int i) { + if (sparseArray.size() == 1) { + return sparseArray.valueAt(0); + } + f fVar = sparseArray.get(i); + Objects.requireNonNull(fVar); + return fVar; + } + + /* JADX DEBUG: Multi-variable search result rejected for r6v32, resolved type: boolean */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:335:0x02cb A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:346:0x0759 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:349:0x0004 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:353:0x0004 A[SYNTHETIC] */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + int i; + boolean z2; + long j; + String str; + long j2; + long j3; + String str2; + long j4; + long j5; + boolean z3; + while (true) { + int i2 = this.o; + int i3 = 1; + if (i2 == 0) { + if (this.r == 0) { + if (!iVar.c(this.l.a, 0, 8, true)) { + z3 = false; + if (z3) { + return -1; + } + } else { + this.r = 8; + this.l.E(0); + this.q = this.l.u(); + this.p = this.l.f(); + } + } + long j6 = this.q; + if (j6 == 1) { + iVar.readFully(this.l.a, 8, 8); + this.r += 8; + this.q = this.l.x(); + } else if (j6 == 0) { + long b2 = iVar.b(); + if (b2 == -1 && !this.m.isEmpty()) { + b2 = this.m.peek().f1195b; + } + if (b2 != -1) { + this.q = (b2 - iVar.getPosition()) + ((long) this.r); + } + } + if (this.q >= ((long) this.r)) { + long position = iVar.getPosition() - ((long) this.r); + int i4 = this.p; + if ((i4 == 1836019558 || i4 == 1835295092) && !this.G) { + this.D.a(new t.b(this.w, position)); + this.G = true; + } + if (this.p == 1836019558) { + int size = this.e.size(); + for (int i5 = 0; i5 < size; i5++) { + o oVar = this.e.valueAt(i5).f1207b; + Objects.requireNonNull(oVar); + oVar.c = position; + oVar.f1218b = position; + } + } + int i6 = this.p; + if (i6 == 1835295092) { + this.f1204y = null; + this.t = position + this.q; + this.o = 2; + } else if (i6 == 1836019574 || i6 == 1953653099 || i6 == 1835297121 || i6 == 1835626086 || i6 == 1937007212 || i6 == 1836019558 || i6 == 1953653094 || i6 == 1836475768 || i6 == 1701082227) { + long position2 = (iVar.getPosition() + this.q) - 8; + this.m.push(new d.a(this.p, position2)); + if (this.q == ((long) this.r)) { + j(position2); + } else { + c(); + } + } else if (i6 == 1751411826 || i6 == 1835296868 || i6 == 1836476516 || i6 == 1936286840 || i6 == 1937011556 || i6 == 1937011827 || i6 == 1668576371 || i6 == 1937011555 || i6 == 1937011578 || i6 == 1937013298 || i6 == 1937007471 || i6 == 1668232756 || i6 == 1937011571 || i6 == 1952867444 || i6 == 1952868452 || i6 == 1953196132 || i6 == 1953654136 || i6 == 1953658222 || i6 == 1886614376 || i6 == 1935763834 || i6 == 1935763823 || i6 == 1936027235 || i6 == 1970628964 || i6 == 1935828848 || i6 == 1936158820 || i6 == 1701606260 || i6 == 1835362404 || i6 == 1701671783) { + if (this.r == 8) { + long j7 = this.q; + if (j7 <= 2147483647L) { + x xVar = new x((int) j7); + System.arraycopy(this.l.a, 0, xVar.a, 0, 8); + this.f1202s = xVar; + this.o = 1; + } else { + throw ParserException.b("Leaf atom with length > 2147483647 (unsupported)."); + } + } else { + throw ParserException.b("Leaf atom defines extended atom size (unsupported)."); + } + } else if (this.q <= 2147483647L) { + this.f1202s = null; + this.o = 1; + } else { + throw ParserException.b("Skipping atom with length > 2147483647 (unsupported)."); + } + z3 = true; + if (z3) { + } + } else { + throw ParserException.b("Atom size less than header length (unsupported)."); + } + } else if (i2 == 1) { + int i7 = ((int) this.q) - this.r; + x xVar2 = this.f1202s; + if (xVar2 != null) { + iVar.readFully(xVar2.a, 8, i7); + int i8 = this.p; + d.b bVar = new d.b(i8, xVar2); + long position3 = iVar.getPosition(); + if (!this.m.isEmpty()) { + this.m.peek().c.add(bVar); + } else if (i8 == 1936286840) { + xVar2.E(8); + int f = (xVar2.f() >> 24) & 255; + xVar2.F(4); + long u = xVar2.u(); + if (f == 0) { + j5 = xVar2.u(); + j4 = xVar2.u(); + } else { + j5 = xVar2.x(); + j4 = xVar2.x(); + } + long j8 = position3 + j4; + long F = e0.F(j5, 1000000, u); + xVar2.F(2); + int y2 = xVar2.y(); + int[] iArr = new int[y2]; + long[] jArr = new long[y2]; + long[] jArr2 = new long[y2]; + long[] jArr3 = new long[y2]; + int i9 = 0; + long j9 = F; + while (i9 < y2) { + int f2 = xVar2.f(); + if ((f2 & Integer.MIN_VALUE) == 0) { + long u2 = xVar2.u(); + iArr[i9] = f2 & Integer.MAX_VALUE; + jArr[i9] = j8; + jArr3[i9] = j9; + long j10 = j5 + u2; + j9 = e0.F(j10, 1000000, u); + jArr2[i9] = j9 - jArr3[i9]; + xVar2.F(4); + j8 += (long) iArr[i9]; + i9++; + jArr2 = jArr2; + jArr3 = jArr3; + jArr = jArr; + j5 = j10; + y2 = y2; + } else { + throw ParserException.a("Unhandled indirect reference", null); + } + } + Pair create = Pair.create(Long.valueOf(F), new c(iArr, jArr, jArr2, jArr3)); + this.f1203x = ((Long) create.first).longValue(); + this.D.a((t) create.second); + this.G = true; + } else if (i8 == 1701671783 && this.E.length != 0) { + xVar2.E(8); + int f3 = (xVar2.f() >> 24) & 255; + long j11 = -9223372036854775807L; + if (f3 == 0) { + str2 = xVar2.n(); + Objects.requireNonNull(str2); + str = xVar2.n(); + Objects.requireNonNull(str); + long u3 = xVar2.u(); + long F2 = e0.F(xVar2.u(), 1000000, u3); + long j12 = this.f1203x; + if (j12 != -9223372036854775807L) { + j11 = j12 + F2; + } + j3 = e0.F(xVar2.u(), 1000, u3); + j = j11; + j11 = F2; + j2 = xVar2.u(); + } else if (f3 != 1) { + b.d.b.a.a.d0(46, "Skipping unsupported emsg version: ", f3, "FragmentedMp4Extractor"); + } else { + long u4 = xVar2.u(); + long F3 = e0.F(xVar2.x(), 1000000, u4); + j3 = e0.F(xVar2.u(), 1000, u4); + j2 = xVar2.u(); + str2 = xVar2.n(); + Objects.requireNonNull(str2); + str = xVar2.n(); + Objects.requireNonNull(str); + j = F3; + } + byte[] bArr = new byte[xVar2.a()]; + int a2 = xVar2.a(); + System.arraycopy(xVar2.a, xVar2.f970b, bArr, 0, a2); + xVar2.f970b += a2; + b.i.a.c.z2.i.b bVar2 = this.k; + bVar2.a.reset(); + try { + DataOutputStream dataOutputStream = bVar2.f1308b; + dataOutputStream.writeBytes(str2); + dataOutputStream.writeByte(0); + DataOutputStream dataOutputStream2 = bVar2.f1308b; + dataOutputStream2.writeBytes(str); + dataOutputStream2.writeByte(0); + bVar2.f1308b.writeLong(j3); + bVar2.f1308b.writeLong(j2); + bVar2.f1308b.write(bArr); + bVar2.f1308b.flush(); + x xVar3 = new x(bVar2.a.toByteArray()); + int a3 = xVar3.a(); + w[] wVarArr = this.E; + for (w wVar : wVarArr) { + xVar3.E(0); + wVar.c(xVar3, a3); + } + if (j == -9223372036854775807L) { + this.n.addLast(new a(j11, a3)); + this.u += a3; + } else { + for (w wVar2 : this.E) { + wVar2.d(j, 1, a3, 0, null); + } + } + } catch (IOException e) { + throw new RuntimeException(e); + } + } + } else { + iVar.l(i7); + } + j(iVar.getPosition()); + } else if (i2 != 2) { + b bVar3 = this.f1204y; + if (bVar3 == null) { + SparseArray sparseArray = this.e; + int size2 = sparseArray.size(); + long j13 = Long.MAX_VALUE; + b bVar4 = null; + for (int i10 = 0; i10 < size2; i10++) { + b valueAt = sparseArray.valueAt(i10); + boolean z4 = valueAt.l; + if ((z4 || valueAt.f != valueAt.d.f1219b) && (!z4 || valueAt.h != valueAt.f1207b.d)) { + long a4 = valueAt.a(); + if (a4 < j13) { + bVar4 = valueAt; + j13 = a4; + } + } + } + if (bVar4 == null) { + int position4 = (int) (this.t - iVar.getPosition()); + if (position4 >= 0) { + iVar.l(position4); + c(); + i3 = 0; + if (i3 != 0) { + return 0; + } + } else { + throw ParserException.a("Offset to end of mdat was negative.", null); + } + } else { + int a5 = (int) (bVar4.a() - iVar.getPosition()); + if (a5 < 0) { + Log.w("FragmentedMp4Extractor", "Ignoring negative offset to sample data."); + a5 = 0; + } + iVar.l(a5); + this.f1204y = bVar4; + bVar3 = bVar4; + } + } + char c = 6; + if (this.o == 3) { + int i11 = !bVar3.l ? bVar3.d.d[bVar3.f] : bVar3.f1207b.h[bVar3.f]; + this.f1205z = i11; + if (bVar3.f < bVar3.i) { + iVar.l(i11); + n b3 = bVar3.b(); + if (b3 != null) { + x xVar4 = bVar3.f1207b.n; + int i12 = b3.d; + if (i12 != 0) { + xVar4.F(i12); + } + o oVar2 = bVar3.f1207b; + if (oVar2.k && oVar2.l[bVar3.f]) { + xVar4.F(xVar4.y() * 6); + } + } + if (!bVar3.c()) { + this.f1204y = null; + } + this.o = 3; + if (i3 != 0) { + } + } else { + if (bVar3.d.a.g == 1) { + this.f1205z = i11 - 8; + iVar.l(8); + } + if ("audio/ac4".equals(bVar3.d.a.f.w)) { + this.A = bVar3.d(this.f1205z, 7); + n.a(this.f1205z, this.j); + bVar3.a.c(this.j, 7); + this.A += 7; + } else { + this.A = bVar3.d(this.f1205z, 0); + } + this.f1205z += this.A; + this.o = 4; + this.B = 0; + } + } + p pVar = bVar3.d; + m mVar = pVar.a; + w wVar3 = bVar3.a; + long j14 = !bVar3.l ? pVar.f[bVar3.f] : bVar3.f1207b.i[bVar3.f]; + int i13 = mVar.j; + if (i13 == 0) { + while (true) { + int i14 = this.A; + int i15 = this.f1205z; + if (i14 >= i15) { + break; + } + this.A += wVar3.b(iVar, i15 - i14, false); + } + } else { + byte[] bArr2 = this.g.a; + bArr2[0] = 0; + bArr2[1] = 0; + bArr2[2] = 0; + int i16 = i13 + 1; + int i17 = 4 - i13; + while (this.A < this.f1205z) { + int i18 = this.B; + if (i18 == 0) { + iVar.readFully(bArr2, i17, i16); + this.g.E(0); + int f4 = this.g.f(); + if (f4 >= i3) { + this.B = f4 - 1; + this.f.E(0); + wVar3.c(this.f, 4); + wVar3.c(this.g, i3); + if (this.F.length > 0) { + String str3 = mVar.f.w; + byte b4 = bArr2[4]; + byte[] bArr3 = u.a; + if (("video/avc".equals(str3) && (b4 & 31) == c) || ("video/hevc".equals(str3) && ((b4 & 126) >> i3) == 39)) { + z2 = true; + this.C = z2; + this.A += 5; + this.f1205z += i17; + } + } + z2 = false; + this.C = z2; + this.A += 5; + this.f1205z += i17; + } else { + throw ParserException.a("Invalid NAL length", null); + } + } else { + if (this.C) { + this.h.A(i18); + iVar.readFully(this.h.a, 0, this.B); + wVar3.c(this.h, this.B); + i = this.B; + x xVar5 = this.h; + int f5 = u.f(xVar5.a, xVar5.c); + this.h.E("video/hevc".equals(mVar.f.w) ? 1 : 0); + this.h.D(f5); + b.c.a.a0.d.J(j14, this.h, this.F); + } else { + i = wVar3.b(iVar, i18, false); + } + this.A += i; + this.B -= i; + c = 6; + i3 = 1; + } + } + } + int i19 = !bVar3.l ? bVar3.d.g[bVar3.f] : bVar3.f1207b.j[bVar3.f] ? 1 : 0; + if (bVar3.b() != null) { + i19 |= BasicMeasure.EXACTLY; + } + n b5 = bVar3.b(); + wVar3.d(j14, i19, this.f1205z, 0, b5 != null ? b5.c : null); + while (!this.n.isEmpty()) { + a removeFirst = this.n.removeFirst(); + this.u -= removeFirst.f1206b; + long j15 = removeFirst.a + j14; + w[] wVarArr2 = this.E; + int i20 = 0; + for (int length = wVarArr2.length; i20 < length; length = length) { + wVarArr2[i20].d(j15, 1, removeFirst.f1206b, this.u, null); + i20++; + } + } + if (!bVar3.c()) { + this.f1204y = null; + } + this.o = 3; + i3 = 1; + if (i3 != 0) { + } + } else { + int size3 = this.e.size(); + long j16 = Long.MAX_VALUE; + b bVar5 = null; + for (int i21 = 0; i21 < size3; i21++) { + o oVar3 = this.e.valueAt(i21).f1207b; + if (oVar3.o) { + long j17 = oVar3.c; + if (j17 < j16) { + bVar5 = this.e.valueAt(i21); + j16 = j17; + } + } + } + if (bVar5 == null) { + this.o = 3; + } else { + int position5 = (int) (j16 - iVar.getPosition()); + if (position5 >= 0) { + iVar.l(position5); + o oVar4 = bVar5.f1207b; + x xVar6 = oVar4.n; + iVar.readFully(xVar6.a, 0, xVar6.c); + oVar4.n.E(0); + oVar4.o = false; + } else { + throw ParserException.a("Offset to encryption data was negative.", null); + } + } + } + } + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + int i; + this.D = jVar; + c(); + w[] wVarArr = new w[2]; + this.E = wVarArr; + int i2 = 100; + int i3 = 0; + if ((this.c & 4) != 0) { + wVarArr[0] = this.D.p(100, 5); + i2 = 101; + i = 1; + } else { + i = 0; + } + w[] wVarArr2 = (w[]) e0.D(this.E, i); + this.E = wVarArr2; + for (w wVar : wVarArr2) { + wVar.e(f1201b); + } + this.F = new w[this.d.size()]; + while (i3 < this.F.length) { + w p = this.D.p(i2, 3); + p.e(this.d.get(i3)); + this.F[i3] = p; + i3++; + i2++; + } + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + int size = this.e.size(); + for (int i = 0; i < size; i++) { + this.e.valueAt(i).e(); + } + this.n.clear(); + this.u = 0; + this.v = j2; + this.m.clear(); + c(); + } + + /* JADX WARNING: Removed duplicated region for block: B:141:0x0370 */ + public final void j(long j) throws ParserException { + g gVar; + d.a aVar; + int i; + SparseArray sparseArray; + int i2; + int i3; + byte[] bArr; + int i4; + byte[] bArr2; + int i5; + o oVar; + int i6; + byte[] bArr3; + d.a aVar2; + d.a aVar3; + int i7; + int i8; + List list; + int i9; + long j2; + int i10; + int i11; + int i12; + boolean z2; + int i13; + boolean z3; + int i14; + boolean z4; + int i15; + boolean z5; + boolean z6; + int i16; + x xVar; + int i17; + g gVar2 = this; + g gVar3 = gVar2; + while (!gVar3.m.isEmpty() && gVar3.m.peek().f1195b == j) { + d.a pop = gVar3.m.pop(); + int i18 = pop.a; + int i19 = 12; + if (i18 == 1836019574) { + b.c.a.a0.d.E(true, "Unexpected moov box."); + DrmInitData h = h(pop.c); + d.a b2 = pop.b(1836475768); + Objects.requireNonNull(b2); + SparseArray sparseArray2 = new SparseArray<>(); + int size = b2.c.size(); + long j3 = -9223372036854775807L; + int i20 = 0; + while (i20 < size) { + d.b bVar = b2.c.get(i20); + int i21 = bVar.a; + if (i21 == 1953654136) { + x xVar2 = bVar.f1196b; + xVar2.E(i19); + Pair create = Pair.create(Integer.valueOf(xVar2.f()), new f(xVar2.f() - 1, xVar2.f(), xVar2.f(), xVar2.f())); + sparseArray2.put(((Integer) create.first).intValue(), (f) create.second); + } else if (i21 == 1835362404) { + x xVar3 = bVar.f1196b; + xVar3.E(8); + j3 = ((xVar3.f() >> 24) & 255) == 0 ? xVar3.u() : xVar3.x(); + i20++; + i19 = 12; + } + i20++; + i19 = 12; + } + ArrayList arrayList = (ArrayList) e.e(pop, new p(), j3, h, (gVar3.c & 16) != 0, false, new c(gVar3)); + int size2 = arrayList.size(); + if (gVar3.e.size() == 0) { + for (int i22 = 0; i22 < size2; i22++) { + p pVar = (p) arrayList.get(i22); + m mVar = pVar.a; + gVar3.e.put(mVar.a, new b(gVar3.D.p(i22, mVar.f1216b), pVar, gVar3.d(sparseArray2, mVar.a))); + gVar3.w = Math.max(gVar3.w, mVar.e); + } + gVar3.D.j(); + } else { + b.c.a.a0.d.D(gVar3.e.size() == size2); + for (int i23 = 0; i23 < size2; i23++) { + p pVar2 = (p) arrayList.get(i23); + m mVar2 = pVar2.a; + b bVar2 = gVar3.e.get(mVar2.a); + f d = gVar3.d(sparseArray2, mVar2.a); + bVar2.d = pVar2; + bVar2.e = d; + bVar2.a.e(pVar2.a.f); + bVar2.e(); + } + } + gVar = gVar2; + } else { + int i24 = 8; + if (i18 == 1836019558) { + SparseArray sparseArray3 = gVar3.e; + int i25 = gVar3.c; + byte[] bArr4 = gVar3.i; + int size3 = pop.d.size(); + int i26 = 0; + while (i26 < size3) { + d.a aVar4 = pop.d.get(i26); + if (aVar4.a == 1953653094) { + d.b c = aVar4.c(1952868452); + Objects.requireNonNull(c); + x xVar4 = c.f1196b; + xVar4.E(i24); + int f = xVar4.f() & ViewCompat.MEASURED_SIZE_MASK; + b bVar3 = sparseArray3.get(xVar4.f()); + if (bVar3 == null) { + bVar3 = null; + } else { + if ((f & 1) != 0) { + long x2 = xVar4.x(); + o oVar2 = bVar3.f1207b; + oVar2.f1218b = x2; + oVar2.c = x2; + } + f fVar = bVar3.e; + bVar3.f1207b.a = new f((f & 2) != 0 ? xVar4.f() - 1 : fVar.a, (f & 8) != 0 ? xVar4.f() : fVar.f1200b, (f & 16) != 0 ? xVar4.f() : fVar.c, (f & 32) != 0 ? xVar4.f() : fVar.d); + } + if (bVar3 != null) { + o oVar3 = bVar3.f1207b; + long j4 = oVar3.p; + boolean z7 = oVar3.q; + bVar3.e(); + bVar3.l = true; + d.b c2 = aVar4.c(1952867444); + if (c2 == null || (i25 & 2) != 0) { + oVar3.p = j4; + oVar3.q = z7; + } else { + x xVar5 = c2.f1196b; + xVar5.E(i24); + oVar3.p = ((xVar5.f() >> 24) & 255) == 1 ? xVar5.x() : xVar5.u(); + oVar3.q = true; + } + List list2 = aVar4.c; + int size4 = list2.size(); + int i27 = 0; + int i28 = 0; + int i29 = 0; + while (true) { + i4 = 1953658222; + if (i27 >= size4) { + break; + } + d.b bVar4 = list2.get(i27); + if (bVar4.a == 1953658222) { + x xVar6 = bVar4.f1196b; + xVar6.E(12); + int w = xVar6.w(); + if (w > 0) { + i29 += w; + i28++; + } + } + i27++; + size3 = size3; + sparseArray3 = sparseArray3; + } + sparseArray = sparseArray3; + i2 = size3; + bVar3.h = 0; + bVar3.g = 0; + bVar3.f = 0; + o oVar4 = bVar3.f1207b; + oVar4.d = i28; + oVar4.e = i29; + if (oVar4.g.length < i28) { + oVar4.f = new long[i28]; + oVar4.g = new int[i28]; + } + if (oVar4.h.length < i29) { + int i30 = (i29 * 125) / 100; + oVar4.h = new int[i30]; + oVar4.i = new long[i30]; + oVar4.j = new boolean[i30]; + oVar4.l = new boolean[i30]; + } + int i31 = 0; + int i32 = 0; + int i33 = 0; + while (i31 < size4) { + d.b bVar5 = list2.get(i31); + if (bVar5.a == i4) { + int i34 = i33 + 1; + x xVar7 = bVar5.f1196b; + xVar7.E(8); + int f2 = xVar7.f() & ViewCompat.MEASURED_SIZE_MASK; + list = list2; + m mVar3 = bVar3.d.a; + i8 = size4; + o oVar5 = bVar3.f1207b; + f fVar2 = oVar5.a; + int i35 = e0.a; + oVar5.g[i33] = xVar7.w(); + long[] jArr = oVar5.f; + i7 = i26; + aVar3 = aVar4; + jArr[i33] = oVar5.f1218b; + if ((f2 & 1) != 0) { + aVar2 = pop; + bArr3 = bArr4; + i6 = i31; + jArr[i33] = jArr[i33] + ((long) xVar7.f()); + } else { + bArr3 = bArr4; + i6 = i31; + aVar2 = pop; + } + boolean z8 = (f2 & 4) != 0; + int i36 = fVar2.d; + if (z8) { + i36 = xVar7.f(); + } + boolean z9 = (f2 & 256) != 0; + boolean z10 = (f2 & 512) != 0; + boolean z11 = (f2 & 1024) != 0; + boolean z12 = (f2 & 2048) != 0; + long[] jArr2 = mVar3.h; + if (jArr2 != null) { + i10 = i36; + oVar = oVar3; + if (jArr2.length == 1 && jArr2[0] == 0) { + j2 = mVar3.i[0]; + int[] iArr = oVar5.h; + long[] jArr3 = oVar5.i; + boolean[] zArr = oVar5.j; + boolean z13 = (mVar3.f1216b == 2 || (i25 & 1) == 0) ? false : true; + i11 = oVar5.g[i33] + i32; + i9 = i25; + long j5 = mVar3.c; + long j6 = oVar5.p; + i12 = i32; + while (i12 < i11) { + if (z9) { + z2 = z9; + i13 = xVar7.f(); + } else { + z2 = z9; + i13 = fVar2.f1200b; + } + a(i13); + if (z10) { + z3 = z10; + i14 = xVar7.f(); + } else { + z3 = z10; + i14 = fVar2.c; + } + a(i14); + if (z11) { + z4 = z8; + i15 = xVar7.f(); + } else if (i12 != 0 || !z8) { + z4 = z8; + i15 = fVar2.d; + } else { + z4 = z8; + i15 = i10; + } + if (z12) { + z6 = z11; + z5 = z12; + i16 = xVar7.f(); + } else { + z6 = z11; + z5 = z12; + i16 = 0; + } + jArr3[i12] = e0.F((((long) i16) + j6) - j2, 1000000, j5); + if (!oVar5.q) { + i17 = i11; + xVar = xVar7; + jArr3[i12] = jArr3[i12] + bVar3.d.h; + } else { + i17 = i11; + xVar = xVar7; + } + iArr[i12] = i14; + zArr[i12] = ((i15 >> 16) & 1) == 0 && (!z13 || i12 == 0); + j6 += (long) i13; + i12++; + i11 = i17; + xVar7 = xVar; + z9 = z2; + z10 = z3; + z8 = z4; + z11 = z6; + z12 = z5; + } + oVar5.p = j6; + i33 = i34; + i32 = i11; + } + } else { + i10 = i36; + oVar = oVar3; + } + j2 = 0; + int[] iArr = oVar5.h; + long[] jArr3 = oVar5.i; + boolean[] zArr = oVar5.j; + if (mVar3.f1216b == 2) { + } + i11 = oVar5.g[i33] + i32; + i9 = i25; + long j5 = mVar3.c; + long j6 = oVar5.p; + i12 = i32; + while (i12 < i11) { + } + oVar5.p = j6; + i33 = i34; + i32 = i11; + } else { + bArr3 = bArr4; + i6 = i31; + aVar2 = pop; + i9 = i25; + list = list2; + i7 = i26; + aVar3 = aVar4; + oVar = oVar3; + i8 = size4; + } + i31 = i6 + 1; + i25 = i9; + list2 = list; + size4 = i8; + i26 = i7; + aVar4 = aVar3; + pop = aVar2; + bArr4 = bArr3; + oVar3 = oVar; + i4 = 1953658222; + } + byte[] bArr5 = bArr4; + aVar = pop; + i3 = i25; + i = i26; + m mVar4 = bVar3.d.a; + f fVar3 = oVar3.a; + Objects.requireNonNull(fVar3); + n a2 = mVar4.a(fVar3.a); + d.b c3 = aVar4.c(1935763834); + if (c3 != null) { + Objects.requireNonNull(a2); + x xVar8 = c3.f1196b; + int i37 = a2.d; + xVar8.E(8); + if ((xVar8.f() & ViewCompat.MEASURED_SIZE_MASK & 1) == 1) { + xVar8.F(8); + } + int t = xVar8.t(); + int w2 = xVar8.w(); + int i38 = oVar3.e; + if (w2 <= i38) { + if (t == 0) { + boolean[] zArr2 = oVar3.l; + i5 = 0; + for (int i39 = 0; i39 < w2; i39++) { + int t2 = xVar8.t(); + i5 += t2; + zArr2[i39] = t2 > i37; + } + } else { + i5 = (t * w2) + 0; + Arrays.fill(oVar3.l, 0, w2, t > i37); + } + Arrays.fill(oVar3.l, w2, oVar3.e, false); + if (i5 > 0) { + x xVar9 = oVar3.n; + byte[] bArr6 = xVar9.a; + if (bArr6.length < i5) { + bArr6 = new byte[i5]; + } + xVar9.C(bArr6, i5); + oVar3.k = true; + oVar3.o = true; + } + } else { + throw ParserException.a(b.d.b.a.a.g(78, "Saiz sample count ", w2, " is greater than fragment sample count", i38), null); + } + } + d.b c4 = aVar4.c(1935763823); + if (c4 != null) { + x xVar10 = c4.f1196b; + xVar10.E(8); + int f3 = xVar10.f(); + if ((16777215 & f3 & 1) == 1) { + xVar10.F(8); + } + int w3 = xVar10.w(); + if (w3 == 1) { + oVar3.c += ((f3 >> 24) & 255) == 0 ? xVar10.u() : xVar10.x(); + } else { + throw b.d.b.a.a.t0(40, "Unexpected saio entry count: ", w3, null); + } + } + byte[] bArr7 = null; + d.b c5 = aVar4.c(1936027235); + if (c5 != null) { + i(c5.f1196b, 0, oVar3); + } + String str = a2 != null ? a2.f1217b : null; + x xVar11 = null; + x xVar12 = null; + for (int i40 = 0; i40 < aVar4.c.size(); i40++) { + d.b bVar6 = aVar4.c.get(i40); + x xVar13 = bVar6.f1196b; + int i41 = bVar6.a; + if (i41 == 1935828848) { + xVar13.E(12); + if (xVar13.f() == 1936025959) { + xVar11 = xVar13; + } + } else if (i41 == 1936158820) { + xVar13.E(12); + if (xVar13.f() == 1936025959) { + xVar12 = xVar13; + } + } + } + if (!(xVar11 == null || xVar12 == null)) { + xVar11.E(8); + int f4 = (xVar11.f() >> 24) & 255; + xVar11.F(4); + if (f4 == 1) { + xVar11.F(4); + } + if (xVar11.f() == 1) { + xVar12.E(8); + int f5 = (xVar12.f() >> 24) & 255; + xVar12.F(4); + if (f5 == 1) { + if (xVar12.u() == 0) { + throw ParserException.b("Variable length description in sgpd found (unsupported)"); + } + } else if (f5 >= 2) { + xVar12.F(4); + } + if (xVar12.u() == 1) { + xVar12.F(1); + int t3 = xVar12.t(); + int i42 = (t3 & 240) >> 4; + int i43 = t3 & 15; + boolean z14 = xVar12.t() == 1; + if (z14) { + int t4 = xVar12.t(); + byte[] bArr8 = new byte[16]; + System.arraycopy(xVar12.a, xVar12.f970b, bArr8, 0, 16); + xVar12.f970b += 16; + if (t4 == 0) { + int t5 = xVar12.t(); + bArr7 = new byte[t5]; + System.arraycopy(xVar12.a, xVar12.f970b, bArr7, 0, t5); + xVar12.f970b += t5; + } + oVar3.k = true; + oVar3.m = new n(z14, str, t4, bArr8, i42, i43, bArr7); + } + } else { + throw ParserException.b("Entry count in sgpd != 1 (unsupported)."); + } + } else { + throw ParserException.b("Entry count in sbgp != 1 (unsupported)."); + } + } + int size5 = aVar4.c.size(); + int i44 = 0; + while (i44 < size5) { + d.b bVar7 = aVar4.c.get(i44); + if (bVar7.a == 1970628964) { + x xVar14 = bVar7.f1196b; + xVar14.E(8); + bArr2 = bArr5; + System.arraycopy(xVar14.a, xVar14.f970b, bArr2, 0, 16); + xVar14.f970b += 16; + if (Arrays.equals(bArr2, a)) { + i(xVar14, 16, oVar3); + } + } else { + bArr2 = bArr5; + } + i44++; + bArr5 = bArr2; + } + bArr = bArr5; + i26 = i + 1; + i24 = 8; + bArr4 = bArr; + i25 = i3; + size3 = i2; + sparseArray3 = sparseArray; + pop = aVar; + } + } + bArr = bArr4; + sparseArray = sparseArray3; + aVar = pop; + i3 = i25; + i2 = size3; + i = i26; + i26 = i + 1; + i24 = 8; + bArr4 = bArr; + i25 = i3; + size3 = i2; + sparseArray3 = sparseArray; + pop = aVar; + } + DrmInitData h2 = h(pop.c); + gVar = this; + if (h2 != null) { + int size6 = gVar.e.size(); + for (int i45 = 0; i45 < size6; i45++) { + b valueAt = gVar.e.valueAt(i45); + m mVar5 = valueAt.d.a; + f fVar4 = valueAt.f1207b.a; + int i46 = e0.a; + n a3 = mVar5.a(fVar4.a); + DrmInitData a4 = h2.a(a3 != null ? a3.f1217b : null); + j1.b a5 = valueAt.d.a.f.a(); + a5.n = a4; + valueAt.a.e(a5.a()); + } + } + if (gVar.v != -9223372036854775807L) { + int size7 = gVar.e.size(); + for (int i47 = 0; i47 < size7; i47++) { + b valueAt2 = gVar.e.valueAt(i47); + long j7 = gVar.v; + int i48 = valueAt2.f; + while (true) { + o oVar6 = valueAt2.f1207b; + if (i48 >= oVar6.e || oVar6.i[i48] >= j7) { + break; + } + if (oVar6.j[i48]) { + valueAt2.i = i48; + } + i48++; + } + } + gVar.v = -9223372036854775807L; + } + gVar3 = gVar; + } else { + gVar = gVar2; + if (!gVar3.m.isEmpty()) { + gVar3.m.peek().d.add(pop); + } + } + } + gVar2 = gVar; + } + c(); + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/h.java b/app/src/main/java/b/i/a/c/x2/i0/h.java new file mode 100644 index 0000000000..a896d605ce --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/h.java @@ -0,0 +1,115 @@ +package b.i.a.c.x2.i0; + +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import androidx.core.view.ViewCompat; +import b.d.b.a.a; +import b.i.a.c.f3.x; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import com.google.android.exoplayer2.metadata.id3.ApicFrame; +import com.google.android.exoplayer2.metadata.id3.CommentFrame; +import com.google.android.exoplayer2.metadata.id3.Id3Frame; +import com.google.android.exoplayer2.metadata.id3.TextInformationFrame; +/* compiled from: MetadataUtil */ +public final class h { + @VisibleForTesting + public static final String[] a = {"Blues", "Classic Rock", "Country", "Dance", "Disco", "Funk", "Grunge", "Hip-Hop", "Jazz", "Metal", "New Age", "Oldies", "Other", "Pop", "R&B", "Rap", "Reggae", "Rock", "Techno", "Industrial", "Alternative", "Ska", "Death Metal", "Pranks", "Soundtrack", "Euro-Techno", "Ambient", "Trip-Hop", "Vocal", "Jazz+Funk", "Fusion", "Trance", "Classical", "Instrumental", "Acid", "House", "Game", "Sound Clip", "Gospel", "Noise", "AlternRock", "Bass", "Soul", "Punk", "Space", "Meditative", "Instrumental Pop", "Instrumental Rock", "Ethnic", "Gothic", "Darkwave", "Techno-Industrial", "Electronic", "Pop-Folk", "Eurodance", "Dream", "Southern Rock", "Comedy", "Cult", "Gangsta", "Top 40", "Christian Rap", "Pop/Funk", "Jungle", "Native American", "Cabaret", "New Wave", "Psychadelic", "Rave", "Showtunes", "Trailer", "Lo-Fi", "Tribal", "Acid Punk", "Acid Jazz", "Polka", "Retro", "Musical", "Rock & Roll", "Hard Rock", "Folk", "Folk-Rock", "National Folk", "Swing", "Fast Fusion", "Bebob", "Latin", "Revival", "Celtic", "Bluegrass", "Avantgarde", "Gothic Rock", "Progressive Rock", "Psychedelic Rock", "Symphonic Rock", "Slow Rock", "Big Band", "Chorus", "Easy Listening", "Acoustic", "Humour", "Speech", "Chanson", "Opera", "Chamber Music", "Sonata", "Symphony", "Booty Bass", "Primus", "Porn Groove", "Satire", "Slow Jam", "Club", "Tango", "Samba", "Folklore", "Ballad", "Power Ballad", "Rhythmic Soul", "Freestyle", "Duet", "Punk Rock", "Drum Solo", "A capella", "Euro-House", "Dance Hall", "Goa", "Drum & Bass", "Club-House", "Hardcore", "Terror", "Indie", "BritPop", "Afro-Punk", "Polsk Punk", "Beat", "Christian Gangsta Rap", "Heavy Metal", "Black Metal", "Crossover", "Contemporary Christian", "Christian Rock", "Merengue", "Salsa", "Thrash Metal", "Anime", "Jpop", "Synthpop", "Abstract", "Art Rock", "Baroque", "Bhangra", "Big beat", "Breakbeat", "Chillout", "Downtempo", "Dub", "EBM", "Eclectic", "Electro", "Electroclash", "Emo", "Experimental", "Garage", "Global", "IDM", "Illbient", "Industro-Goth", "Jam Band", "Krautrock", "Leftfield", "Lounge", "Math Rock", "New Romantic", "Nu-Breakz", "Post-Punk", "Post-Rock", "Psytrance", "Shoegaze", "Space Rock", "Trop Rock", "World Music", "Neoclassical", "Audiobook", "Audio theatre", "Neue Deutsche Welle", "Podcast", "Indie-Rock", "G-Funk", "Dubstep", "Garage Rock", "Psybient"}; + + @Nullable + public static CommentFrame a(int i, x xVar) { + int f = xVar.f(); + if (xVar.f() == 1684108385) { + xVar.F(8); + String o = xVar.o(f - 16); + return new CommentFrame("und", o, o); + } + String valueOf = String.valueOf(d.a(i)); + Log.w("MetadataUtil", valueOf.length() != 0 ? "Failed to parse comment attribute: ".concat(valueOf) : new String("Failed to parse comment attribute: ")); + return null; + } + + @Nullable + public static ApicFrame b(x xVar) { + int f = xVar.f(); + if (xVar.f() == 1684108385) { + int f2 = xVar.f() & ViewCompat.MEASURED_SIZE_MASK; + String str = f2 == 13 ? "image/jpeg" : f2 == 14 ? "image/png" : null; + if (str == null) { + a.d0(41, "Unrecognized cover art flags: ", f2, "MetadataUtil"); + return null; + } + xVar.F(4); + int i = f - 16; + byte[] bArr = new byte[i]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i); + xVar.f970b += i; + return new ApicFrame(str, null, 3, bArr); + } + Log.w("MetadataUtil", "Failed to parse cover art attribute"); + return null; + } + + @Nullable + public static TextInformationFrame c(int i, String str, x xVar) { + int f = xVar.f(); + if (xVar.f() == 1684108385 && f >= 22) { + xVar.F(10); + int y2 = xVar.y(); + if (y2 > 0) { + StringBuilder sb = new StringBuilder(11); + sb.append(y2); + String sb2 = sb.toString(); + int y3 = xVar.y(); + if (y3 > 0) { + String valueOf = String.valueOf(sb2); + StringBuilder sb3 = new StringBuilder(valueOf.length() + 12); + sb3.append(valueOf); + sb3.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN); + sb3.append(y3); + sb2 = sb3.toString(); + } + return new TextInformationFrame(str, null, sb2); + } + } + String valueOf2 = String.valueOf(d.a(i)); + Log.w("MetadataUtil", valueOf2.length() != 0 ? "Failed to parse index/count attribute: ".concat(valueOf2) : new String("Failed to parse index/count attribute: ")); + return null; + } + + @Nullable + public static TextInformationFrame d(int i, String str, x xVar) { + int f = xVar.f(); + if (xVar.f() == 1684108385) { + xVar.F(8); + return new TextInformationFrame(str, null, xVar.o(f - 16)); + } + String valueOf = String.valueOf(d.a(i)); + Log.w("MetadataUtil", valueOf.length() != 0 ? "Failed to parse text attribute: ".concat(valueOf) : new String("Failed to parse text attribute: ")); + return null; + } + + @Nullable + public static Id3Frame e(int i, String str, x xVar, boolean z2, boolean z3) { + int f = f(xVar); + if (z3) { + f = Math.min(1, f); + } + if (f >= 0) { + return z2 ? new TextInformationFrame(str, null, Integer.toString(f)) : new CommentFrame("und", str, Integer.toString(f)); + } + String valueOf = String.valueOf(d.a(i)); + Log.w("MetadataUtil", valueOf.length() != 0 ? "Failed to parse uint8 attribute: ".concat(valueOf) : new String("Failed to parse uint8 attribute: ")); + return null; + } + + public static int f(x xVar) { + xVar.F(4); + if (xVar.f() == 1684108385) { + xVar.F(8); + return xVar.t(); + } + Log.w("MetadataUtil", "Failed to parse uint8 attribute value"); + return -1; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/i.java b/app/src/main/java/b/i/a/c/x2/i0/i.java new file mode 100644 index 0000000000..1ba6c49964 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/i.java @@ -0,0 +1,1348 @@ +package b.i.a.c.x2.i0; + +import android.util.Log; +import android.util.Pair; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.n; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i0.d; +import b.i.a.c.x2.i0.k; +import b.i.a.c.x2.j; +import b.i.a.c.x2.p; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import b.i.a.c.x2.w; +import com.discord.api.permission.Permission; +import com.google.android.exoplayer2.ParserException; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.id3.InternalFrame; +import com.google.android.exoplayer2.metadata.id3.TextInformationFrame; +import com.google.android.exoplayer2.metadata.mp4.MdtaMetadataEntry; +import com.google.android.exoplayer2.metadata.mp4.MotionPhotoMetadata; +import com.google.android.exoplayer2.metadata.mp4.SlowMotionData; +import com.google.android.exoplayer2.metadata.mp4.SmtaMetadataEntry; +import java.io.IOException; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +/* compiled from: Mp4Extractor */ +public final class i implements h, t { + public static final /* synthetic */ int a = 0; + + /* renamed from: b reason: collision with root package name */ + public final int f1208b; + public final x c; + public final x d; + public final x e; + public final x f; + public final ArrayDeque g; + public final k h; + public final List i; + public int j; + public int k; + public long l; + public int m; + @Nullable + public x n; + public int o; + public int p; + public int q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public j f1209s; + public a[] t; + public long[][] u; + public int v; + public long w; + + /* renamed from: x reason: collision with root package name */ + public int f1210x; + @Nullable + + /* renamed from: y reason: collision with root package name */ + public MotionPhotoMetadata f1211y; + + /* compiled from: Mp4Extractor */ + public static final class a { + public final m a; + + /* renamed from: b reason: collision with root package name */ + public final p f1212b; + public final w c; + @Nullable + public final b.i.a.c.x2.x d; + public int e; + + public a(m mVar, p pVar, w wVar) { + this.a = mVar; + this.f1212b = pVar; + this.c = wVar; + this.d = "audio/true-hd".equals(mVar.f.w) ? new b.i.a.c.x2.x() : null; + } + } + + static { + b bVar = b.a; + } + + public i(int i) { + this.f1208b = i; + this.j = (i & 4) != 0 ? 3 : 0; + this.h = new k(); + this.i = new ArrayList(); + this.f = new x(16); + this.g = new ArrayDeque<>(); + this.c = new x(u.a); + this.d = new x(4); + this.e = new x(); + this.o = -1; + } + + public static long k(p pVar, long j, long j2) { + int a2 = pVar.a(j); + if (a2 == -1) { + a2 = pVar.b(j); + } + return a2 == -1 ? j2 : Math.min(pVar.c[a2], j2); + } + + @Override // b.i.a.c.x2.h + public boolean b(b.i.a.c.x2.i iVar) throws IOException { + return l.a(iVar, false, (this.f1208b & 2) != 0); + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Removed duplicated region for block: B:340:0x04a5 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:343:0x06b9 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:345:0x0006 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:346:0x0006 A[SYNTHETIC] */ + @Override // b.i.a.c.x2.h + public int e(b.i.a.c.x2.i iVar, s sVar) throws IOException { + int i; + char c; + boolean z2; + boolean z3; + d.a peek; + while (true) { + int i2 = this.j; + int i3 = 4; + int i4 = 2; + if (i2 == 0) { + if (this.m == 0) { + if (!iVar.c(this.f.a, 0, 8, true)) { + if (this.f1210x == 2 && (this.f1208b & 2) != 0) { + j jVar = this.f1209s; + Objects.requireNonNull(jVar); + w p = jVar.p(0, 4); + MotionPhotoMetadata motionPhotoMetadata = this.f1211y; + Metadata metadata = motionPhotoMetadata == null ? null : new Metadata(motionPhotoMetadata); + j1.b bVar = new j1.b(); + bVar.i = metadata; + p.e(bVar.a()); + jVar.j(); + jVar.a(new t.b(-9223372036854775807L, 0)); + } + z3 = false; + if (z3) { + return -1; + } + } else { + this.m = 8; + this.f.E(0); + this.l = this.f.u(); + this.k = this.f.f(); + } + } + long j = this.l; + if (j == 1) { + iVar.readFully(this.f.a, 8, 8); + this.m += 8; + this.l = this.f.x(); + } else if (j == 0) { + long b2 = iVar.b(); + if (b2 == -1 && (peek = this.g.peek()) != null) { + b2 = peek.f1195b; + } + if (b2 != -1) { + this.l = (b2 - iVar.getPosition()) + ((long) this.m); + } + } + long j2 = this.l; + int i5 = this.m; + if (j2 >= ((long) i5)) { + int i6 = this.k; + if (i6 == 1836019574 || i6 == 1953653099 || i6 == 1835297121 || i6 == 1835626086 || i6 == 1937007212 || i6 == 1701082227 || i6 == 1835365473) { + long position = iVar.getPosition(); + long j3 = this.l; + long j4 = (long) this.m; + long j5 = (position + j3) - j4; + if (j3 != j4 && this.k == 1835365473) { + this.e.A(8); + iVar.o(this.e.a, 0, 8); + x xVar = this.e; + byte[] bArr = e.a; + int i7 = xVar.f970b; + xVar.F(4); + if (xVar.f() != 1751411826) { + i7 += 4; + } + xVar.E(i7); + iVar.l(this.e.f970b); + iVar.k(); + } + this.g.push(new d.a(this.k, j5)); + if (this.l == ((long) this.m)) { + l(j5); + } else { + j(); + } + } else if (i6 == 1835296868 || i6 == 1836476516 || i6 == 1751411826 || i6 == 1937011556 || i6 == 1937011827 || i6 == 1937011571 || i6 == 1668576371 || i6 == 1701606260 || i6 == 1937011555 || i6 == 1937011578 || i6 == 1937013298 || i6 == 1937007471 || i6 == 1668232756 || i6 == 1953196132 || i6 == 1718909296 || i6 == 1969517665 || i6 == 1801812339 || i6 == 1768715124) { + b.c.a.a0.d.D(i5 == 8); + b.c.a.a0.d.D(this.l <= 2147483647L); + x xVar2 = new x((int) this.l); + System.arraycopy(this.f.a, 0, xVar2.a, 0, 8); + this.n = xVar2; + this.j = 1; + } else { + long position2 = iVar.getPosition(); + long j6 = (long) this.m; + long j7 = position2 - j6; + if (this.k == 1836086884) { + this.f1211y = new MotionPhotoMetadata(0, j7, -9223372036854775807L, j7 + j6, this.l - j6); + } + this.n = null; + this.j = 1; + } + z3 = true; + if (z3) { + } + } else { + throw ParserException.b("Atom size less than header length (unsupported)."); + } + } else if (i2 == 1) { + long j8 = this.l - ((long) this.m); + long position3 = iVar.getPosition() + j8; + x xVar3 = this.n; + if (xVar3 != null) { + iVar.readFully(xVar3.a, this.m, (int) j8); + if (this.k == 1718909296) { + xVar3.E(8); + int f = xVar3.f(); + int i8 = f != 1751476579 ? f != 1903435808 ? 0 : 1 : 2; + if (i8 == 0) { + xVar3.F(4); + while (true) { + if (xVar3.a() <= 0) { + i8 = 0; + break; + } + int f2 = xVar3.f(); + if (f2 == 1751476579) { + i8 = 2; + continue; + } else if (f2 != 1903435808) { + i8 = 0; + continue; + } else { + i8 = 1; + continue; + } + if (i8 != 0) { + break; + } + } + } + this.f1210x = i8; + } else if (!this.g.isEmpty()) { + this.g.peek().c.add(new d.b(this.k, xVar3)); + } + } else if (j8 < Permission.USE_EXTERNAL_EMOJIS) { + iVar.l((int) j8); + } else { + sVar.a = iVar.getPosition() + j8; + z2 = true; + l(position3); + if (!(!z2 && this.j != 2)) { + return 1; + } + } + z2 = false; + l(position3); + if (!(!z2 && this.j != 2)) { + } + } else if (i2 == 2) { + long position4 = iVar.getPosition(); + if (this.o == -1) { + int i9 = -1; + boolean z4 = true; + int i10 = -1; + int i11 = 0; + long j9 = RecyclerView.FOREVER_NS; + boolean z5 = true; + long j10 = RecyclerView.FOREVER_NS; + long j11 = RecyclerView.FOREVER_NS; + while (true) { + a[] aVarArr = this.t; + int i12 = e0.a; + if (i11 >= aVarArr.length) { + break; + } + a aVar = aVarArr[i11]; + int i13 = aVar.e; + p pVar = aVar.f1212b; + if (i13 != pVar.f1219b) { + long j12 = pVar.c[i13]; + long j13 = this.u[i11][i13]; + long j14 = j12 - position4; + boolean z6 = j14 < 0 || j14 >= Permission.USE_EXTERNAL_EMOJIS; + if ((!z6 && z4) || (z6 == z4 && j14 < j11)) { + z4 = z6; + j11 = j14; + i10 = i11; + j10 = j13; + } + if (j13 < j9) { + z5 = z6; + i9 = i11; + j9 = j13; + } + } + i11++; + } + if (j9 == RecyclerView.FOREVER_NS || !z5 || j10 < j9 + 10485760) { + i9 = i10; + } + this.o = i9; + if (i9 == -1) { + return -1; + } + } + a[] aVarArr2 = this.t; + int i14 = e0.a; + a aVar2 = aVarArr2[this.o]; + w wVar = aVar2.c; + int i15 = aVar2.e; + p pVar2 = aVar2.f1212b; + long j15 = pVar2.c[i15]; + int i16 = pVar2.d[i15]; + b.i.a.c.x2.x xVar4 = aVar2.d; + long j16 = (j15 - position4) + ((long) this.p); + if (j16 < 0 || j16 >= Permission.USE_EXTERNAL_EMOJIS) { + sVar.a = j15; + return 1; + } + if (aVar2.a.g == 1) { + j16 += 8; + i16 -= 8; + } + iVar.l((int) j16); + m mVar = aVar2.a; + int i17 = mVar.j; + if (i17 == 0) { + if ("audio/ac4".equals(mVar.f.w)) { + if (this.q == 0) { + n.a(i16, this.e); + wVar.c(this.e, 7); + this.q += 7; + } + i16 += 7; + } else if (xVar4 != null) { + xVar4.c(iVar); + } + while (true) { + int i18 = this.q; + if (i18 >= i16) { + break; + } + int b3 = wVar.b(iVar, i16 - i18, false); + this.p += b3; + this.q += b3; + this.r -= b3; + } + } else { + byte[] bArr2 = this.d.a; + bArr2[0] = 0; + bArr2[1] = 0; + bArr2[2] = 0; + int i19 = 4 - i17; + while (this.q < i16) { + int i20 = this.r; + if (i20 == 0) { + iVar.readFully(bArr2, i19, i17); + this.p += i17; + this.d.E(0); + int f3 = this.d.f(); + if (f3 >= 0) { + this.r = f3; + this.c.E(0); + wVar.c(this.c, 4); + this.q += 4; + i16 += i19; + } else { + throw ParserException.a("Invalid NAL length", null); + } + } else { + int b4 = wVar.b(iVar, i20, false); + this.p += b4; + this.q += b4; + this.r -= b4; + } + } + } + p pVar3 = aVar2.f1212b; + long j17 = pVar3.f[i15]; + int i21 = pVar3.g[i15]; + if (xVar4 != null) { + xVar4.b(wVar, j17, i21, i16, 0, null); + if (i15 + 1 == aVar2.f1212b.f1219b) { + xVar4.a(wVar, null); + } + } else { + wVar.d(j17, i21, i16, 0, null); + } + aVar2.e++; + this.o = -1; + this.p = 0; + this.q = 0; + this.r = 0; + return 0; + } else if (i2 == 3) { + k kVar = this.h; + List list = this.i; + int i22 = kVar.d; + if (i22 == 0) { + long b5 = iVar.b(); + sVar.a = (b5 == -1 || b5 < 8) ? 0 : b5 - 8; + kVar.d = 1; + } else if (i22 != 1) { + short s2 = 2819; + if (i22 == 2) { + long b6 = iVar.b(); + int i23 = (kVar.e - 12) - 8; + x xVar5 = new x(i23); + iVar.readFully(xVar5.a, 0, i23); + int i24 = 0; + while (i24 < i23 / 12) { + xVar5.F(i4); + short i25 = xVar5.i(); + if (i25 == 2192 || i25 == 2816 || i25 == 2817 || i25 == s2 || i25 == 2820) { + kVar.c.add(new k.a(i25, (b6 - ((long) kVar.e)) - ((long) xVar5.h()), xVar5.h())); + } else { + xVar5.F(8); + } + i24++; + s2 = 2819; + i4 = 2; + } + if (kVar.c.isEmpty()) { + sVar.a = 0; + } else { + kVar.d = 3; + sVar.a = kVar.c.get(0).a; + } + } else if (i22 == 3) { + long position5 = iVar.getPosition(); + int b7 = (int) ((iVar.b() - iVar.getPosition()) - ((long) kVar.e)); + x xVar6 = new x(b7); + iVar.readFully(xVar6.a, 0, b7); + int i26 = 0; + while (i26 < kVar.c.size()) { + k.a aVar3 = kVar.c.get(i26); + xVar6.E((int) (aVar3.a - position5)); + xVar6.F(i3); + int h = xVar6.h(); + String q = xVar6.q(h); + switch (q.hashCode()) { + case -1711564334: + if (q.equals("SlowMotion_Data")) { + i = 0; + break; + } + i = -1; + break; + case -1332107749: + if (q.equals("Super_SlowMotion_Edit_Data")) { + i = 1; + break; + } + i = -1; + break; + case -1251387154: + if (q.equals("Super_SlowMotion_Data")) { + i = 2; + break; + } + i = -1; + break; + case -830665521: + if (q.equals("Super_SlowMotion_Deflickering_On")) { + i = 3; + break; + } + i = -1; + break; + case 1760745220: + if (q.equals("Super_SlowMotion_BGM")) { + i = 4; + break; + } + i = -1; + break; + default: + i = -1; + break; + } + if (i == 0) { + c = 2192; + } else if (i == 1) { + c = 2819; + } else if (i == 2) { + c = 2816; + } else if (i == 3) { + c = 2820; + } else if (i == i3) { + c = 2817; + } else { + throw ParserException.a("Invalid SEF name", null); + } + int i27 = aVar3.f1215b - (h + 8); + if (c == 2192) { + ArrayList arrayList = new ArrayList(); + List a2 = k.f1214b.a(xVar6.q(i27)); + for (int i28 = 0; i28 < a2.size(); i28++) { + List a3 = k.a.a(a2.get(i28)); + if (a3.size() == 3) { + try { + arrayList.add(new SlowMotionData.Segment(Long.parseLong(a3.get(0)), Long.parseLong(a3.get(1)), 1 << (Integer.parseInt(a3.get(2)) - 1))); + } catch (NumberFormatException e) { + throw ParserException.a(null, e); + } + } else { + throw ParserException.a(null, null); + } + } + list.add(new SlowMotionData(arrayList)); + } else if (!(c == 2816 || c == 2817 || c == 2819 || c == 2820)) { + throw new IllegalStateException(); + } + i26++; + list = list; + i3 = 4; + } + sVar.a = 0; + } else { + throw new IllegalStateException(); + } + } else { + byte[] bArr3 = new byte[8]; + iVar.readFully(bArr3, 0, 8); + kVar.e = ((bArr3[0] & 255) | ((bArr3[1] & 255) << 8) | ((bArr3[2] & 255) << 16) | ((bArr3[3] & 255) << 24)) + 8; + if (((bArr3[7] & 255) | ((bArr3[5] & 255) << 16) | ((bArr3[4] & 255) << 24) | ((bArr3[6] & 255) << 8)) != 1397048916) { + sVar.a = 0; + } else { + sVar.a = iVar.getPosition() - ((long) (kVar.e - 12)); + kVar.d = 2; + } + } + if (sVar.a == 0) { + j(); + } + return 1; + } else { + throw new IllegalStateException(); + } + } + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.f1209s = jVar; + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + this.g.clear(); + this.m = 0; + this.o = -1; + this.p = 0; + this.q = 0; + this.r = 0; + if (j != 0) { + a[] aVarArr = this.t; + if (aVarArr != null) { + for (a aVar : aVarArr) { + p pVar = aVar.f1212b; + int a2 = pVar.a(j2); + if (a2 == -1) { + a2 = pVar.b(j2); + } + aVar.e = a2; + b.i.a.c.x2.x xVar = aVar.d; + if (xVar != null) { + xVar.f1286b = false; + xVar.c = 0; + } + } + } + } else if (this.j != 3) { + j(); + } else { + k kVar = this.h; + kVar.c.clear(); + kVar.d = 0; + this.i.clear(); + } + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + long j2; + long j3; + long j4; + long j5; + int b2; + long j6 = j; + a[] aVarArr = this.t; + Objects.requireNonNull(aVarArr); + if (aVarArr.length == 0) { + return new t.a(b.i.a.c.x2.u.a); + } + long j7 = -1; + int i = this.v; + if (i != -1) { + p pVar = this.t[i].f1212b; + int a2 = pVar.a(j6); + if (a2 == -1) { + a2 = pVar.b(j6); + } + if (a2 == -1) { + return new t.a(b.i.a.c.x2.u.a); + } + long j8 = pVar.f[a2]; + j2 = pVar.c[a2]; + if (j8 >= j6 || a2 >= pVar.f1219b - 1 || (b2 = pVar.b(j6)) == -1 || b2 == a2) { + j5 = -9223372036854775807L; + } else { + long j9 = pVar.f[b2]; + long j10 = pVar.c[b2]; + j5 = j9; + j7 = j10; + } + j3 = j7; + j4 = j5; + j6 = j8; + } else { + j2 = RecyclerView.FOREVER_NS; + j3 = -1; + j4 = -9223372036854775807L; + } + int i2 = 0; + while (true) { + a[] aVarArr2 = this.t; + if (i2 >= aVarArr2.length) { + break; + } + if (i2 != this.v) { + p pVar2 = aVarArr2[i2].f1212b; + long k = k(pVar2, j6, j2); + if (j4 != -9223372036854775807L) { + j3 = k(pVar2, j4, j3); + } + j2 = k; + } + i2++; + } + b.i.a.c.x2.u uVar = new b.i.a.c.x2.u(j6, j2); + return j4 == -9223372036854775807L ? new t.a(uVar) : new t.a(uVar, new b.i.a.c.x2.u(j4, j3)); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.w; + } + + public final void j() { + this.j = 0; + this.m = 0; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0563: APUT + (r4v12 com.google.android.exoplayer2.metadata.Metadata[]) + (1 ??[boolean, int, float, short, byte, char]) + (r12v7 com.google.android.exoplayer2.metadata.Metadata) + */ + /* JADX WARNING: Removed duplicated region for block: B:161:0x02c9 */ + /* JADX WARNING: Removed duplicated region for block: B:233:0x049e */ + /* JADX WARNING: Removed duplicated region for block: B:234:0x04a1 */ + /* JADX WARNING: Removed duplicated region for block: B:237:0x04c9 */ + /* JADX WARNING: Removed duplicated region for block: B:290:0x05b3 */ + /* JADX WARNING: Removed duplicated region for block: B:296:0x05c7 */ + /* JADX WARNING: Removed duplicated region for block: B:299:0x05d7 */ + /* JADX WARNING: Removed duplicated region for block: B:302:0x05e1 */ + /* JADX WARNING: Removed duplicated region for block: B:309:0x061e A[LOOP:12: B:307:0x061b->B:309:0x061e, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:313:0x063a */ + /* JADX WARNING: Removed duplicated region for block: B:351:0x02cc A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x00de A[Catch:{ all -> 0x022a }] */ + /* JADX WARNING: Removed duplicated region for block: B:44:0x00e5 A[Catch:{ all -> 0x022a }] */ + public final void l(long j) throws ParserException { + boolean z2; + ArrayList arrayList; + int i; + Metadata metadata; + Metadata metadata2; + Metadata metadata3; + Metadata metadata4; + int size; + int i2; + a[] aVarArr; + int i3; + int i4; + Metadata metadata5; + int i5; + ArrayList arrayList2; + ArrayList arrayList3; + int i6; + int i7; + int i8; + Metadata metadata6; + String[] strArr; + int i9; + MdtaMetadataEntry mdtaMetadataEntry; + boolean z3; + ArrayList arrayList4; + Metadata metadata7; + boolean z4; + Object obj; + String str; + while (!this.g.isEmpty() && this.g.peek().f1195b == j) { + d.a pop = this.g.pop(); + if (pop.a == 1836019574) { + ArrayList arrayList5 = new ArrayList(); + boolean z5 = this.f1210x == 1; + p pVar = new p(); + d.b c = pop.c(1969517665); + int i10 = 1768715124; + int i11 = 1751411826; + int i12 = 1835365473; + int i13 = 4; + int i14 = 8; + Metadata metadata8 = null; + if (c != null) { + byte[] bArr = e.a; + x xVar = c.f1196b; + xVar.E(8); + Metadata metadata9 = null; + String str2 = null; + while (xVar.a() >= i14) { + int i15 = xVar.f970b; + int f = xVar.f(); + int f2 = xVar.f(); + if (f2 == i12) { + xVar.E(i15); + int i16 = i15 + f; + xVar.F(i14); + int i17 = xVar.f970b; + xVar.F(i13); + if (xVar.f() != i11) { + i17 += 4; + } + xVar.E(i17); + int i18 = i10; + while (true) { + int i19 = xVar.f970b; + if (i19 >= i16) { + arrayList4 = arrayList5; + z3 = z5; + break; + } + int f3 = xVar.f(); + if (xVar.f() == i18) { + xVar.E(i19); + int i20 = i19 + f3; + xVar.F(i14); + ArrayList arrayList6 = new ArrayList(); + while (true) { + int i21 = xVar.f970b; + if (i21 >= i20) { + break; + } + int f4 = xVar.f() + i21; + int f5 = xVar.f(); + int i22 = (f5 >> 24) & 255; + if (i22 == 169 || i22 == 253) { + z4 = z5; + int i23 = 16777215 & f5; + if (i23 == 6516084) { + obj = h.a(f5, xVar); + } else { + if (i23 != 7233901) { + if (i23 != 7631467) { + if (i23 != 6516589) { + if (i23 != 7828084) { + if (i23 == 6578553) { + obj = h.d(f5, "TDRC", xVar); + } else if (i23 == 4280916) { + obj = h.d(f5, "TPE1", xVar); + } else if (i23 == 7630703) { + obj = h.d(f5, "TSSE", xVar); + } else if (i23 == 6384738) { + obj = h.d(f5, "TALB", xVar); + } else if (i23 == 7108978) { + obj = h.d(f5, "USLT", xVar); + } else if (i23 == 6776174) { + obj = h.d(f5, "TCON", xVar); + } else if (i23 == 6779504) { + obj = h.d(f5, "TIT1", xVar); + } + } + } + obj = h.d(f5, "TCOM", xVar); + } + } + obj = h.d(f5, "TIT2", xVar); + } + xVar.E(f4); + if (obj == null) { + arrayList6.add(obj); + } + str2 = null; + i20 = i20; + arrayList5 = arrayList5; + z5 = z4; + } else { + if (f5 == 1735291493) { + try { + int f6 = h.f(xVar); + if (f6 > 0) { + String[] strArr2 = h.a; + if (f6 <= strArr2.length) { + str = strArr2[f6 - 1]; + if (str == null) { + obj = new TextInformationFrame("TCON", str2, str); + } else { + Log.w("MetadataUtil", "Failed to parse standard genre code"); + z4 = z5; + obj = null; + xVar.E(f4); + if (obj == null) { + } + str2 = null; + i20 = i20; + arrayList5 = arrayList5; + z5 = z4; + } + } + } + str = str2; + if (str == null) { + } + } catch (Throwable th) { + xVar.E(f4); + throw th; + } + } else if (f5 == 1684632427) { + obj = h.c(f5, "TPOS", xVar); + } else if (f5 == 1953655662) { + obj = h.c(f5, "TRCK", xVar); + } else if (f5 == 1953329263) { + obj = h.e(f5, "TBPM", xVar, true, false); + } else if (f5 == 1668311404) { + obj = h.e(f5, "TCMP", xVar, true, true); + } else if (f5 == 1668249202) { + obj = h.b(xVar); + } else if (f5 == 1631670868) { + obj = h.d(f5, "TPE2", xVar); + } else if (f5 == 1936682605) { + obj = h.d(f5, "TSOT", xVar); + } else if (f5 == 1936679276) { + obj = h.d(f5, "TSO2", xVar); + } else if (f5 == 1936679282) { + obj = h.d(f5, "TSOA", xVar); + } else if (f5 == 1936679265) { + obj = h.d(f5, "TSOP", xVar); + } else if (f5 == 1936679791) { + obj = h.d(f5, "TSOC", xVar); + } else if (f5 == 1920233063) { + obj = h.e(f5, "ITUNESADVISORY", xVar, false, false); + } else if (f5 == 1885823344) { + obj = h.e(f5, "ITUNESGAPLESS", xVar, false, true); + } else if (f5 == 1936683886) { + obj = h.d(f5, "TVSHOWSORT", xVar); + } else if (f5 == 1953919848) { + obj = h.d(f5, "TVSHOW", xVar); + } else if (f5 == 757935405) { + int i24 = -1; + int i25 = -1; + String str3 = str2; + while (true) { + int i26 = xVar.f970b; + if (i26 >= f4) { + break; + } + int f7 = xVar.f(); + int f8 = xVar.f(); + xVar.F(4); + if (f8 == 1835360622) { + str2 = xVar.o(f7 - 12); + } else if (f8 == 1851878757) { + str3 = xVar.o(f7 - 12); + } else { + if (f8 == 1684108385) { + i25 = f7; + i24 = i26; + } + xVar.F(f7 - 12); + } + z5 = z5; + } + z4 = z5; + if (!(str2 == null || str3 == null)) { + if (i24 != -1) { + xVar.E(i24); + xVar.F(16); + obj = new InternalFrame(str2, str3, xVar.o(i25 - 16)); + xVar.E(f4); + if (obj == null) { + } + str2 = null; + i20 = i20; + arrayList5 = arrayList5; + z5 = z4; + } + } + obj = null; + xVar.E(f4); + if (obj == null) { + } + str2 = null; + i20 = i20; + arrayList5 = arrayList5; + z5 = z4; + } else { + z4 = z5; + } + z4 = z5; + xVar.E(f4); + if (obj == null) { + } + str2 = null; + i20 = i20; + arrayList5 = arrayList5; + z5 = z4; + } + String valueOf = String.valueOf(d.a(f5)); + Log.d("MetadataUtil", valueOf.length() != 0 ? "Skipped unknown metadata entry: ".concat(valueOf) : new String("Skipped unknown metadata entry: ")); + obj = null; + xVar.E(f4); + if (obj == null) { + } + str2 = null; + i20 = i20; + arrayList5 = arrayList5; + z5 = z4; + } + arrayList4 = arrayList5; + z3 = z5; + if (!arrayList6.isEmpty()) { + metadata7 = new Metadata(arrayList6); + } + } else { + xVar.E(i19 + f3); + i14 = 8; + i18 = 1768715124; + str2 = null; + } + } + metadata7 = null; + metadata8 = metadata7; + } else { + arrayList4 = arrayList5; + z3 = z5; + if (f2 == 1936553057) { + xVar.E(i15); + int i27 = i15 + f; + xVar.F(12); + while (true) { + int i28 = xVar.f970b; + if (i28 >= i27) { + break; + } + int f9 = xVar.f(); + if (xVar.f() != 1935766900) { + xVar.E(i28 + f9); + } else if (f9 >= 14) { + xVar.F(5); + int t = xVar.t(); + if (t == 12 || t == 13) { + float f10 = t == 12 ? 240.0f : 120.0f; + xVar.F(1); + metadata9 = new Metadata(new SmtaMetadataEntry(f10, xVar.t())); + } + } + } + metadata9 = null; + } + } + xVar.E(i15 + f); + i14 = 8; + i10 = 1768715124; + i11 = 1751411826; + i12 = 1835365473; + str2 = null; + i13 = 4; + arrayList5 = arrayList4; + z5 = z3; + } + arrayList = arrayList5; + z2 = z5; + Pair create = Pair.create(metadata8, metadata9); + metadata = (Metadata) create.first; + metadata2 = (Metadata) create.second; + if (metadata != null) { + pVar.b(metadata); + } + i = 1835365473; + } else { + arrayList = arrayList5; + z2 = z5; + metadata2 = null; + i = 1835365473; + metadata = null; + } + Metadata metadata10 = metadata; + d.a b2 = pop.b(i); + if (b2 != null) { + byte[] bArr2 = e.a; + d.b c2 = b2.c(1751411826); + d.b c3 = b2.c(1801812339); + d.b c4 = b2.c(1768715124); + if (!(c2 == null || c3 == null || c4 == null)) { + x xVar2 = c2.f1196b; + xVar2.E(16); + if (xVar2.f() == 1835299937) { + x xVar3 = c3.f1196b; + xVar3.E(12); + int f11 = xVar3.f(); + String[] strArr3 = new String[f11]; + for (int i29 = 0; i29 < f11; i29++) { + int f12 = xVar3.f(); + xVar3.F(4); + strArr3[i29] = xVar3.q(f12 - 8); + } + int i30 = 8; + x xVar4 = c4.f1196b; + xVar4.E(8); + ArrayList arrayList7 = new ArrayList(); + while (xVar4.a() > i30) { + int i31 = xVar4.f970b; + int f13 = xVar4.f(); + int f14 = xVar4.f() - 1; + if (f14 < 0 || f14 >= f11) { + i9 = f11; + strArr = strArr3; + metadata6 = metadata10; + b.d.b.a.a.d0(52, "Skipped metadata with unknown key index: ", f14, "AtomParsers"); + } else { + String str4 = strArr3[f14]; + int i32 = i31 + f13; + while (true) { + int i33 = xVar4.f970b; + if (i33 >= i32) { + i9 = f11; + strArr = strArr3; + metadata6 = metadata10; + mdtaMetadataEntry = null; + break; + } + int f15 = xVar4.f(); + i9 = f11; + if (xVar4.f() == 1684108385) { + int f16 = xVar4.f(); + int f17 = xVar4.f(); + int i34 = f15 - 16; + byte[] bArr3 = new byte[i34]; + strArr = strArr3; + metadata6 = metadata10; + System.arraycopy(xVar4.a, xVar4.f970b, bArr3, 0, i34); + xVar4.f970b += i34; + mdtaMetadataEntry = new MdtaMetadataEntry(str4, bArr3, f17, f16); + break; + } + xVar4.E(i33 + f15); + f11 = i9; + } + if (mdtaMetadataEntry != null) { + arrayList7.add(mdtaMetadataEntry); + } + } + xVar4.E(i31 + f13); + i30 = 8; + f11 = i9; + strArr3 = strArr; + metadata10 = metadata6; + } + metadata3 = metadata10; + if (!arrayList7.isEmpty()) { + metadata4 = new Metadata(arrayList7); + Metadata metadata11 = metadata4; + List

e = e.e(pop, pVar, -9223372036854775807L, null, (this.f1208b & 1) != 0, z2, a.a); + j jVar = this.f1209s; + Objects.requireNonNull(jVar); + ArrayList arrayList8 = (ArrayList) e; + size = arrayList8.size(); + long j2 = -9223372036854775807L; + long j3 = -9223372036854775807L; + i2 = 0; + int i35 = -1; + while (i2 < size) { + p pVar2 = (p) arrayList8.get(i2); + if (pVar2.f1219b == 0) { + metadata5 = metadata2; + arrayList2 = arrayList8; + i5 = size; + arrayList3 = arrayList; + } else { + m mVar = pVar2.a; + long j4 = mVar.e; + if (j4 == j3) { + j4 = pVar2.h; + } + j2 = Math.max(j2, j4); + a aVar = new a(mVar, pVar2, jVar.p(i2, mVar.f1216b)); + arrayList2 = arrayList8; + int i36 = "audio/true-hd".equals(mVar.f.w) ? pVar2.e * 16 : pVar2.e + 30; + j1.b a2 = mVar.f.a(); + a2.l = i36; + int i37 = mVar.f1216b; + i5 = size; + if (i37 == 2 && j4 > 0 && (i8 = pVar2.f1219b) > 1) { + a2.r = ((float) i8) / (((float) j4) / 1000000.0f); + } + if (i37 == 1) { + int i38 = pVar.f1280b; + if ((i38 == -1 || pVar.c == -1) ? false : true) { + a2.A = i38; + a2.B = pVar.c; + } + } + Metadata[] metadataArr = new Metadata[2]; + metadataArr[0] = metadata2; + metadataArr[1] = this.i.isEmpty() ? null : new Metadata(this.i); + Metadata metadata12 = new Metadata(new Metadata.Entry[0]); + if (i37 == 1) { + if (metadata3 != null) { + metadata5 = metadata2; + metadata11 = metadata11; + metadata12 = metadata3; + for (i6 = 0; i6 < 2; i6++) { + Metadata metadata13 = metadataArr[i6]; + if (metadata13 != null) { + metadata12 = metadata12.a(metadata13.j); + } + } + if (metadata12.j.length > 0) { + a2.i = metadata12; + } + aVar.c.e(a2.a()); + if (mVar.f1216b == 2) { + i7 = i35; + if (i7 == -1) { + i35 = arrayList.size(); + arrayList3 = arrayList; + arrayList3.add(aVar); + } + } else { + i7 = i35; + } + i35 = i7; + arrayList3 = arrayList; + arrayList3.add(aVar); + } + } else if (i37 == 2 && metadata11 != null) { + int i39 = 0; + metadata11 = metadata11; + while (true) { + Metadata.Entry[] entryArr = metadata11.j; + if (i39 >= entryArr.length) { + metadata5 = metadata2; + break; + } + Metadata.Entry entry = entryArr[i39]; + if (entry instanceof MdtaMetadataEntry) { + MdtaMetadataEntry mdtaMetadataEntry2 = (MdtaMetadataEntry) entry; + metadata5 = metadata2; + if ("com.android.capture.fps".equals(mdtaMetadataEntry2.j)) { + metadata12 = new Metadata(mdtaMetadataEntry2); + break; + } + } else { + metadata5 = metadata2; + } + i39++; + metadata2 = metadata5; + } + while (i6 < 2) { + } + if (metadata12.j.length > 0) { + } + aVar.c.e(a2.a()); + if (mVar.f1216b == 2) { + } + i35 = i7; + arrayList3 = arrayList; + arrayList3.add(aVar); + } + metadata5 = metadata2; + metadata11 = metadata11; + while (i6 < 2) { + } + if (metadata12.j.length > 0) { + } + aVar.c.e(a2.a()); + if (mVar.f1216b == 2) { + } + i35 = i7; + arrayList3 = arrayList; + arrayList3.add(aVar); + } + i2++; + j3 = -9223372036854775807L; + arrayList = arrayList3; + arrayList8 = arrayList2; + size = i5; + metadata2 = metadata5; + } + long j5 = 0; + this.v = i35; + this.w = j2; + aVarArr = (a[]) arrayList.toArray(new a[0]); + this.t = aVarArr; + long[][] jArr = new long[aVarArr.length][]; + int[] iArr = new int[aVarArr.length]; + long[] jArr2 = new long[aVarArr.length]; + boolean[] zArr = new boolean[aVarArr.length]; + for (i3 = 0; i3 < aVarArr.length; i3++) { + jArr[i3] = new long[aVarArr[i3].f1212b.f1219b]; + jArr2[i3] = aVarArr[i3].f1212b.f[0]; + } + i4 = 0; + while (i4 < aVarArr.length) { + long j6 = RecyclerView.FOREVER_NS; + int i40 = -1; + for (int i41 = 0; i41 < aVarArr.length; i41++) { + if (!zArr[i41] && jArr2[i41] <= j6) { + j6 = jArr2[i41]; + i40 = i41; + } + } + int i42 = iArr[i40]; + jArr[i40][i42] = j5; + j5 += (long) aVarArr[i40].f1212b.d[i42]; + int i43 = i42 + 1; + iArr[i40] = i43; + if (i43 < jArr[i40].length) { + jArr2[i40] = aVarArr[i40].f1212b.f[i43]; + } else { + zArr[i40] = true; + i4++; + } + } + this.u = jArr; + jVar.j(); + jVar.a(this); + this.g.clear(); + this.j = 2; + } + metadata4 = null; + Metadata metadata11 = metadata4; + List

e = e.e(pop, pVar, -9223372036854775807L, null, (this.f1208b & 1) != 0, z2, a.a); + j jVar = this.f1209s; + Objects.requireNonNull(jVar); + ArrayList arrayList8 = (ArrayList) e; + size = arrayList8.size(); + long j2 = -9223372036854775807L; + long j3 = -9223372036854775807L; + i2 = 0; + int i35 = -1; + while (i2 < size) { + } + long j5 = 0; + this.v = i35; + this.w = j2; + aVarArr = (a[]) arrayList.toArray(new a[0]); + this.t = aVarArr; + long[][] jArr = new long[aVarArr.length][]; + int[] iArr = new int[aVarArr.length]; + long[] jArr2 = new long[aVarArr.length]; + boolean[] zArr = new boolean[aVarArr.length]; + while (i3 < aVarArr.length) { + } + i4 = 0; + while (i4 < aVarArr.length) { + } + this.u = jArr; + jVar.j(); + jVar.a(this); + this.g.clear(); + this.j = 2; + } + } + } + metadata3 = metadata10; + metadata4 = null; + Metadata metadata11 = metadata4; + List

e = e.e(pop, pVar, -9223372036854775807L, null, (this.f1208b & 1) != 0, z2, a.a); + j jVar = this.f1209s; + Objects.requireNonNull(jVar); + ArrayList arrayList8 = (ArrayList) e; + size = arrayList8.size(); + long j2 = -9223372036854775807L; + long j3 = -9223372036854775807L; + i2 = 0; + int i35 = -1; + while (i2 < size) { + } + long j5 = 0; + this.v = i35; + this.w = j2; + aVarArr = (a[]) arrayList.toArray(new a[0]); + this.t = aVarArr; + long[][] jArr = new long[aVarArr.length][]; + int[] iArr = new int[aVarArr.length]; + long[] jArr2 = new long[aVarArr.length]; + boolean[] zArr = new boolean[aVarArr.length]; + while (i3 < aVarArr.length) { + } + i4 = 0; + while (i4 < aVarArr.length) { + } + this.u = jArr; + jVar.j(); + jVar.a(this); + this.g.clear(); + this.j = 2; + } else if (!this.g.isEmpty()) { + this.g.peek().d.add(pop); + } + } + if (this.j != 2) { + j(); + } + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/j.java b/app/src/main/java/b/i/a/c/x2/i0/j.java new file mode 100644 index 0000000000..5e4c302263 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/j.java @@ -0,0 +1,17 @@ +package b.i.a.c.x2.i0; + +import java.util.UUID; +/* compiled from: PsshAtomUtil */ +public class j { + public final UUID a; + + /* renamed from: b reason: collision with root package name */ + public final int f1213b; + public final byte[] c; + + public j(UUID uuid, int i, byte[] bArr) { + this.a = uuid; + this.f1213b = i; + this.c = bArr; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/k.java b/app/src/main/java/b/i/a/c/x2/i0/k.java new file mode 100644 index 0000000000..0a06f3e490 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/k.java @@ -0,0 +1,30 @@ +package b.i.a.c.x2.i0; + +import b.i.b.a.b; +import b.i.b.a.j; +import com.discord.widgets.chat.input.MentionUtilsKt; +import java.util.ArrayList; +import java.util.List; +/* compiled from: SefReader */ +public final class k { + public static final b.i.b.a.k a = new b.i.b.a.k(new j(new b.C0123b(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR))); + + /* renamed from: b reason: collision with root package name */ + public static final b.i.b.a.k f1214b = new b.i.b.a.k(new j(new b.C0123b('*'))); + public final List c = new ArrayList(); + public int d = 0; + public int e; + + /* compiled from: SefReader */ + public static final class a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final int f1215b; + + public a(int i, long j, int i2) { + this.a = j; + this.f1215b = i2; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/l.java b/app/src/main/java/b/i/a/c/x2/i0/l.java new file mode 100644 index 0000000000..1e439d056c --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/l.java @@ -0,0 +1,128 @@ +package b.i.a.c.x2.i0; + +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +import com.discord.api.permission.Permission; +import java.io.IOException; +/* compiled from: Sniffer */ +public final class l { + public static final int[] a = {1769172845, 1769172786, 1769172787, 1769172788, 1769172789, 1769172790, 1769172793, 1635148593, 1752589105, 1751479857, 1635135537, 1836069937, 1836069938, 862401121, 862401122, 862417462, 862417718, 862414134, 862414646, 1295275552, 1295270176, 1714714144, 1801741417, 1295275600, 1903435808, 1297305174, 1684175153, 1769172332, 1885955686}; + + /* JADX WARNING: Code restructure failed: missing block: B:67:0x00fb, code lost: + r0 = true; + */ + public static boolean a(i iVar, boolean z2, boolean z3) throws IOException { + boolean z4; + long b2 = iVar.b(); + long j = Permission.SEND_TTS_MESSAGES; + long j2 = -1; + int i = (b2 > -1 ? 1 : (b2 == -1 ? 0 : -1)); + if (i != 0 && b2 <= Permission.SEND_TTS_MESSAGES) { + j = b2; + } + int i2 = (int) j; + x xVar = new x(64); + boolean z5 = false; + int i3 = 0; + boolean z6 = false; + while (true) { + if (i3 >= i2) { + break; + } + xVar.A(8); + byte[] bArr = xVar.a; + int i4 = z5 ? 1 : 0; + int i5 = z5 ? 1 : 0; + int i6 = z5 ? 1 : 0; + int i7 = z5 ? 1 : 0; + if (!iVar.e(bArr, i4, 8, true)) { + break; + } + long u = xVar.u(); + int f = xVar.f(); + int i8 = 16; + if (u == 1) { + iVar.o(xVar.a, 8, 8); + xVar.D(16); + u = xVar.m(); + } else { + if (u == 0) { + long b3 = iVar.b(); + if (b3 != j2) { + u = (b3 - iVar.f()) + ((long) 8); + } + } + i8 = 8; + } + long j3 = (long) i8; + if (u < j3) { + return z5; + } + i3 += i8; + if (f == 1836019574) { + i2 += (int) u; + if (i != 0 && ((long) i2) > b2) { + i2 = (int) b2; + } + j2 = -1; + } else if (f == 1836019558 || f == 1836475768) { + break; + } else if ((((long) i3) + u) - j3 >= ((long) i2)) { + break; + } else { + int i9 = (int) (u - j3); + i3 += i9; + if (f == 1718909296) { + if (i9 < 8) { + return false; + } + xVar.A(i9); + iVar.o(xVar.a, 0, i9); + int i10 = i9 / 4; + int i11 = 0; + while (true) { + if (i11 >= i10) { + break; + } + if (i11 == 1) { + xVar.F(4); + } else { + int f2 = xVar.f(); + if ((f2 >>> 8) != 3368816 && (f2 != 1751476579 || !z3)) { + int[] iArr = a; + int length = iArr.length; + int i12 = 0; + while (true) { + if (i12 >= length) { + z4 = false; + break; + } else if (iArr[i12] == f2) { + break; + } else { + i12++; + } + } + } + z4 = true; + if (z4) { + z6 = true; + break; + } + } + i11++; + } + if (!z6) { + return false; + } + } else if (i9 != 0) { + iVar.g(i9); + } + b2 = b2; + j2 = -1; + z5 = false; + } + } + boolean z7 = false; + return z6 && z2 == z7; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/m.java b/app/src/main/java/b/i/a/c/x2/i0/m.java new file mode 100644 index 0000000000..33d4460db6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/m.java @@ -0,0 +1,46 @@ +package b.i.a.c.x2.i0; + +import androidx.annotation.Nullable; +import b.i.a.c.j1; +/* compiled from: Track */ +public final class m { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1216b; + public final long c; + public final long d; + public final long e; + public final j1 f; + public final int g; + @Nullable + public final long[] h; + @Nullable + public final long[] i; + public final int j; + @Nullable + public final n[] k; + + public m(int i, int i2, long j, long j2, long j3, j1 j1Var, int i3, @Nullable n[] nVarArr, int i4, @Nullable long[] jArr, @Nullable long[] jArr2) { + this.a = i; + this.f1216b = i2; + this.c = j; + this.d = j2; + this.e = j3; + this.f = j1Var; + this.g = i3; + this.k = nVarArr; + this.j = i4; + this.h = jArr; + this.i = jArr2; + } + + @Nullable + public n a(int i) { + n[] nVarArr = this.k; + if (nVarArr == null) { + return null; + } + return nVarArr[i]; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/n.java b/app/src/main/java/b/i/a/c/x2/i0/n.java new file mode 100644 index 0000000000..fd67f24673 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/n.java @@ -0,0 +1,68 @@ +package b.i.a.c.x2.i0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.x2.w; +/* compiled from: TrackEncryptionBox */ +public final class n { + public final boolean a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final String f1217b; + public final w.a c; + public final int d; + @Nullable + public final byte[] e; + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:21:0x0051, code lost: + if (r6.equals("cbc1") == false) goto L_0x0053; + */ + public n(boolean z2, @Nullable String str, int i, byte[] bArr, int i2, int i3, @Nullable byte[] bArr2) { + char c = 0; + int i4 = 1; + d.j((i == 0) ^ (bArr2 == null)); + this.a = z2; + this.f1217b = str; + this.d = i; + this.e = bArr2; + if (str != null) { + switch (str.hashCode()) { + case 3046605: + break; + case 3046671: + if (str.equals("cbcs")) { + c = 1; + break; + } + c = 65535; + break; + case 3049879: + if (str.equals("cenc")) { + c = 2; + break; + } + c = 65535; + break; + case 3049895: + if (str.equals("cens")) { + c = 3; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + if (c == 0 || c == 1) { + i4 = 2; + } else if (!(c == 2 || c == 3)) { + a.g0(str.length() + 68, "Unsupported protection scheme type '", str, "'. Assuming AES-CTR crypto mode.", "TrackEncryptionBox"); + } + } + this.c = new w.a(i4, bArr, i2, i3); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/o.java b/app/src/main/java/b/i/a/c/x2/i0/o.java new file mode 100644 index 0000000000..511c6d3576 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/o.java @@ -0,0 +1,27 @@ +package b.i.a.c.x2.i0; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.x; +/* compiled from: TrackFragment */ +public final class o { + public f a; + + /* renamed from: b reason: collision with root package name */ + public long f1218b; + public long c; + public int d; + public int e; + public long[] f = new long[0]; + public int[] g = new int[0]; + public int[] h = new int[0]; + public long[] i = new long[0]; + public boolean[] j = new boolean[0]; + public boolean k; + public boolean[] l = new boolean[0]; + @Nullable + public n m; + public final x n = new x(); + public boolean o; + public long p; + public boolean q; +} diff --git a/app/src/main/java/b/i/a/c/x2/i0/p.java b/app/src/main/java/b/i/a/c/x2/i0/p.java new file mode 100644 index 0000000000..881b208557 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/i0/p.java @@ -0,0 +1,54 @@ +package b.i.a.c.x2.i0; + +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +/* compiled from: TrackSampleTable */ +public final class p { + public final m a; + + /* renamed from: b reason: collision with root package name */ + public final int f1219b; + public final long[] c; + public final int[] d; + public final int e; + public final long[] f; + public final int[] g; + public final long h; + + public p(m mVar, long[] jArr, int[] iArr, int i, long[] jArr2, int[] iArr2, long j) { + boolean z2 = false; + d.j(iArr.length == jArr2.length); + d.j(jArr.length == jArr2.length); + d.j(iArr2.length == jArr2.length ? true : z2); + this.a = mVar; + this.c = jArr; + this.d = iArr; + this.e = i; + this.f = jArr2; + this.g = iArr2; + this.h = j; + this.f1219b = jArr.length; + if (iArr2.length > 0) { + int length = iArr2.length - 1; + iArr2[length] = iArr2[length] | 536870912; + } + } + + public int a(long j) { + for (int e = e0.e(this.f, j, true, false); e >= 0; e--) { + if ((this.g[e] & 1) != 0) { + return e; + } + } + return -1; + } + + public int b(long j) { + for (int b2 = e0.b(this.f, j, true, false); b2 < this.f.length; b2++) { + if ((this.g[b2] & 1) != 0) { + return b2; + } + } + return -1; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j.java b/app/src/main/java/b/i/a/c/x2/j.java new file mode 100644 index 0000000000..06cba2335f --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j.java @@ -0,0 +1,29 @@ +package b.i.a.c.x2; +/* compiled from: ExtractorOutput */ +public interface j { + public static final j d = new a(); + + /* compiled from: ExtractorOutput */ + public class a implements j { + @Override // b.i.a.c.x2.j + public void a(t tVar) { + throw new UnsupportedOperationException(); + } + + @Override // b.i.a.c.x2.j + public void j() { + throw new UnsupportedOperationException(); + } + + @Override // b.i.a.c.x2.j + public w p(int i, int i2) { + throw new UnsupportedOperationException(); + } + } + + void a(t tVar); + + void j(); + + w p(int i, int i2); +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/a.java b/app/src/main/java/b/i/a/c/x2/j0/a.java new file mode 100644 index 0000000000..cea6414f22 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.j0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new d()}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/b.java b/app/src/main/java/b/i/a/c/x2/j0/b.java new file mode 100644 index 0000000000..9011041845 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/b.java @@ -0,0 +1,203 @@ +package b.i.a.c.x2.j0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.x2.i; +import b.i.a.c.x2.t; +import b.i.a.c.x2.u; +import java.io.EOFException; +import java.io.IOException; +/* compiled from: DefaultOggSeeker */ +public final class b implements g { + public final f a; + + /* renamed from: b reason: collision with root package name */ + public final long f1220b; + public final long c; + public final i d; + public int e; + public long f; + public long g; + public long h; + public long i; + public long j; + public long k; + public long l; + + /* compiled from: DefaultOggSeeker */ + /* renamed from: b.i.a.c.x2.j0.b$b reason: collision with other inner class name */ + public final class C0095b implements t { + public C0095b(a aVar) { + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + b bVar = b.this; + long j2 = bVar.f1220b; + long j3 = bVar.c; + return new t.a(new u(j, e0.i(((((j3 - j2) * ((((long) bVar.d.i) * j) / 1000000)) / bVar.f) + j2) - 30000, j2, j3 - 1))); + } + + @Override // b.i.a.c.x2.t + public long i() { + b bVar = b.this; + return (bVar.f * 1000000) / ((long) bVar.d.i); + } + } + + public b(i iVar, long j, long j2, long j3, long j4, boolean z2) { + d.j(j >= 0 && j2 > j); + this.d = iVar; + this.f1220b = j; + this.c = j2; + if (j3 == j2 - j || z2) { + this.f = j4; + this.e = 4; + } else { + this.e = 0; + } + this.a = new f(); + } + + @Override // b.i.a.c.x2.j0.g + @Nullable + public t a() { + if (this.f != 0) { + return new C0095b(null); + } + return null; + } + + /* JADX WARNING: Removed duplicated region for block: B:38:0x00c2 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:39:0x00c3 */ + @Override // b.i.a.c.x2.j0.g + public long b(i iVar) throws IOException { + boolean z2; + long j; + long j2; + int i = this.e; + if (i == 0) { + long position = iVar.getPosition(); + this.g = position; + this.e = 1; + long j3 = this.c - 65307; + if (j3 > position) { + return j3; + } + } else if (i != 1) { + if (i == 2) { + if (this.i != this.j) { + long position2 = iVar.getPosition(); + if (!this.a.c(iVar, this.j)) { + j2 = this.i; + if (j2 == position2) { + throw new IOException("No ogg page can be found."); + } + } else { + this.a.a(iVar, false); + iVar.k(); + long j4 = this.h; + f fVar = this.a; + long j5 = fVar.c; + long j6 = j4 - j5; + int i2 = fVar.e + fVar.f; + if (0 > j6 || j6 >= 72000) { + int i3 = (j6 > 0 ? 1 : (j6 == 0 ? 0 : -1)); + if (i3 < 0) { + this.j = position2; + this.l = j5; + } else { + this.i = iVar.getPosition() + ((long) i2); + this.k = this.a.c; + } + long j7 = this.j; + long j8 = this.i; + if (j7 - j8 < 100000) { + this.j = j8; + j2 = j8; + } else { + long position3 = iVar.getPosition() - (((long) i2) * (i3 <= 0 ? 2 : 1)); + long j9 = this.j; + long j10 = this.i; + j2 = e0.i((((j9 - j10) * j6) / (this.l - this.k)) + position3, j10, j9 - 1); + } + } + } + j = -1; + if (j2 == -1) { + return j2; + } + this.e = 3; + } + j2 = -1; + j = -1; + if (j2 == -1) { + } + } else if (i == 3) { + j = -1; + } else if (i == 4) { + return -1; + } else { + throw new IllegalStateException(); + } + while (true) { + this.a.c(iVar, j); + this.a.a(iVar, false); + f fVar2 = this.a; + if (fVar2.c > this.h) { + iVar.k(); + this.e = 4; + return -(this.k + 2); + } + iVar.l(fVar2.e + fVar2.f); + this.i = iVar.getPosition(); + this.k = this.a.c; + j = -1; + } + } + this.a.b(); + if (this.a.c(iVar, -1)) { + this.a.a(iVar, false); + f fVar3 = this.a; + iVar.l(fVar3.e + fVar3.f); + long j11 = this.a.c; + while (true) { + f fVar4 = this.a; + if ((fVar4.f1224b & 4) == 4 || !fVar4.c(iVar, -1) || iVar.getPosition() >= this.c || !this.a.a(iVar, true)) { + break; + } + f fVar5 = this.a; + try { + iVar.l(fVar5.e + fVar5.f); + z2 = true; + } catch (EOFException unused) { + z2 = false; + } + if (!z2) { + break; + } + j11 = this.a.c; + } + this.f = j11; + this.e = 4; + return this.g; + } + throw new EOFException(); + } + + @Override // b.i.a.c.x2.j0.g + public void c(long j) { + this.h = e0.i(j, 0, this.f - 1); + this.e = 2; + this.i = this.f1220b; + this.j = this.c; + this.k = 0; + this.l = this.f; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/c.java b/app/src/main/java/b/i/a/c/x2/j0/c.java new file mode 100644 index 0000000000..0fe8630de2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/c.java @@ -0,0 +1,115 @@ +package b.i.a.c.x2.j0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j0.i; +import b.i.a.c.x2.m; +import b.i.a.c.x2.n; +import b.i.a.c.x2.o; +import b.i.a.c.x2.t; +import java.util.Arrays; +import java.util.Objects; +import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf; +/* compiled from: FlacReader */ +public final class c extends i { + @Nullable + public o n; + @Nullable + public a o; + + /* compiled from: FlacReader */ + public static final class a implements g { + public o a; + + /* renamed from: b reason: collision with root package name */ + public o.a f1221b; + public long c = -1; + public long d = -1; + + public a(o oVar, o.a aVar) { + this.a = oVar; + this.f1221b = aVar; + } + + @Override // b.i.a.c.x2.j0.g + public t a() { + d.D(this.c != -1); + return new n(this.a, this.c); + } + + @Override // b.i.a.c.x2.j0.g + public long b(i iVar) { + long j = this.d; + if (j < 0) { + return -1; + } + long j2 = -(j + 2); + this.d = -1; + return j2; + } + + @Override // b.i.a.c.x2.j0.g + public void c(long j) { + long[] jArr = this.f1221b.a; + this.d = jArr[e0.e(jArr, j, true, true)]; + } + } + + @Override // b.i.a.c.x2.j0.i + public long c(x xVar) { + byte[] bArr = xVar.a; + if (!(bArr[0] == -1)) { + return -1; + } + int i = (bArr[2] & 255) >> 4; + if (i == 6 || i == 7) { + xVar.F(4); + xVar.z(); + } + int c = m.c(xVar, i); + xVar.E(0); + return (long) c; + } + + @Override // b.i.a.c.x2.j0.i + @EnsuresNonNullIf(expression = {"#3.format"}, result = false) + public boolean d(x xVar, long j, i.b bVar) { + byte[] bArr = xVar.a; + o oVar = this.n; + if (oVar == null) { + o oVar2 = new o(bArr, 17); + this.n = oVar2; + bVar.a = oVar2.e(Arrays.copyOfRange(bArr, 9, xVar.c), null); + return true; + } else if ((bArr[0] & Byte.MAX_VALUE) == 3) { + o.a J1 = d.J1(xVar); + o b2 = oVar.b(J1); + this.n = b2; + this.o = new a(b2, J1); + return true; + } else { + if (!(bArr[0] == -1)) { + return true; + } + a aVar = this.o; + if (aVar != null) { + aVar.c = j; + bVar.f1226b = aVar; + } + Objects.requireNonNull(bVar.a); + return false; + } + } + + @Override // b.i.a.c.x2.j0.i + public void e(boolean z2) { + super.e(z2); + if (z2) { + this.n = null; + this.o = null; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/d.java b/app/src/main/java/b/i/a/c/x2/j0/d.java new file mode 100644 index 0000000000..2148c19801 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/d.java @@ -0,0 +1,236 @@ +package b.i.a.c.x2.j0; + +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.j0.i; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import b.i.a.c.x2.w; +import com.discord.utilities.auth.GoogleSmartLockManager; +import com.google.android.exoplayer2.ParserException; +import java.io.IOException; +import java.util.Arrays; +import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf; +/* compiled from: OggExtractor */ +public class d implements h { + public j a; + + /* renamed from: b reason: collision with root package name */ + public i f1222b; + public boolean c; + + static { + a aVar = a.a; + } + + @EnsuresNonNullIf(expression = {"streamReader"}, result = GoogleSmartLockManager.SET_DISCORD_ACCOUNT_DETAILS) + public final boolean a(i iVar) throws IOException { + boolean z2; + boolean z3; + f fVar = new f(); + if (fVar.a(iVar, true) && (fVar.f1224b & 2) == 2) { + int min = Math.min(fVar.f, 8); + x xVar = new x(min); + iVar.o(xVar.a, 0, min); + xVar.E(0); + if (xVar.a() >= 5 && xVar.t() == 127 && xVar.u() == 1179402563) { + this.f1222b = new c(); + } else { + xVar.E(0); + try { + z2 = b.c.a.a0.d.l2(1, xVar, true); + } catch (ParserException unused) { + z2 = false; + } + if (z2) { + this.f1222b = new j(); + } else { + xVar.E(0); + int a = xVar.a(); + byte[] bArr = h.n; + if (a < bArr.length) { + z3 = false; + } else { + byte[] bArr2 = new byte[bArr.length]; + int length = bArr.length; + System.arraycopy(xVar.a, xVar.f970b, bArr2, 0, length); + xVar.f970b += length; + z3 = Arrays.equals(bArr2, bArr); + } + if (z3) { + this.f1222b = new h(); + } + } + } + return true; + } + return false; + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + try { + return a(iVar); + } catch (ParserException unused) { + return false; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:64:0x0180 */ + /* JADX WARNING: Removed duplicated region for block: B:71:? A[RETURN, SYNTHETIC] */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + boolean z2; + int i; + byte[] bArr; + b.c.a.a0.d.H(this.a); + if (this.f1222b == null) { + if (a(iVar)) { + iVar.k(); + } else { + throw ParserException.a("Failed to determine bitstream type", null); + } + } + if (!this.c) { + w p = this.a.p(0, 1); + this.a.j(); + i iVar2 = this.f1222b; + iVar2.c = this.a; + iVar2.f1225b = p; + iVar2.e(true); + this.c = true; + } + i iVar3 = this.f1222b; + b.c.a.a0.d.H(iVar3.f1225b); + int i2 = e0.a; + int i3 = iVar3.h; + int i4 = 3; + if (i3 == 0) { + while (true) { + if (iVar3.a.b(iVar)) { + long position = iVar.getPosition(); + long j = iVar3.f; + iVar3.k = position - j; + if (!iVar3.d(iVar3.a.f1223b, j, iVar3.j)) { + z2 = true; + break; + } + iVar3.f = iVar.getPosition(); + i4 = 3; + } else { + iVar3.h = i4; + z2 = false; + break; + } + } + if (z2) { + j1 j1Var = iVar3.j.a; + iVar3.i = j1Var.K; + if (!iVar3.m) { + iVar3.f1225b.e(j1Var); + iVar3.m = true; + } + g gVar = iVar3.j.f1226b; + if (gVar != null) { + iVar3.d = gVar; + } else if (iVar.b() == -1) { + iVar3.d = new i.c(null); + } else { + f fVar = iVar3.a.a; + i = 2; + iVar3.d = new b(iVar3, iVar3.f, iVar.b(), (long) (fVar.e + fVar.f), fVar.c, (fVar.f1224b & 4) != 0); + iVar3.h = i; + e eVar = iVar3.a; + x xVar = eVar.f1223b; + bArr = xVar.a; + if (bArr.length != 65025) { + return 0; + } + xVar.C(Arrays.copyOf(bArr, Math.max(65025, xVar.c)), eVar.f1223b.c); + return 0; + } + i = 2; + iVar3.h = i; + e eVar = iVar3.a; + x xVar = eVar.f1223b; + bArr = xVar.a; + if (bArr.length != 65025) { + } + } + } else if (i3 == 1) { + iVar.l((int) iVar3.f); + iVar3.h = 2; + return 0; + } else if (i3 == 2) { + long b2 = iVar3.d.b(iVar); + if (b2 >= 0) { + sVar.a = b2; + return 1; + } + if (b2 < -1) { + iVar3.b(-(b2 + 2)); + } + if (!iVar3.l) { + t a = iVar3.d.a(); + b.c.a.a0.d.H(a); + iVar3.c.a(a); + iVar3.l = true; + } + if (iVar3.k > 0 || iVar3.a.b(iVar)) { + iVar3.k = 0; + x xVar2 = iVar3.a.f1223b; + long c = iVar3.c(xVar2); + if (c >= 0) { + long j2 = iVar3.g; + if (j2 + c >= iVar3.e) { + long j3 = (j2 * 1000000) / ((long) iVar3.i); + iVar3.f1225b.c(xVar2, xVar2.c); + iVar3.f1225b.d(j3, 1, xVar2.c, 0, null); + iVar3.e = -1; + } + } + iVar3.g += c; + return 0; + } + iVar3.h = 3; + } else if (i3 != 3) { + throw new IllegalStateException(); + } + return -1; + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.a = jVar; + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + i iVar = this.f1222b; + if (iVar != null) { + e eVar = iVar.a; + eVar.a.b(); + eVar.f1223b.A(0); + eVar.c = -1; + eVar.e = false; + if (j == 0) { + iVar.e(!iVar.l); + } else if (iVar.h != 0) { + long j3 = (((long) iVar.i) * j2) / 1000000; + iVar.e = j3; + g gVar = iVar.d; + int i = e0.a; + gVar.c(j3); + iVar.h = 2; + } + } + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/e.java b/app/src/main/java/b/i/a/c/x2/j0/e.java new file mode 100644 index 0000000000..bc13386eb1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/e.java @@ -0,0 +1,96 @@ +package b.i.a.c.x2.j0; + +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +import java.io.EOFException; +import java.io.IOException; +/* compiled from: OggPacket */ +public final class e { + public final f a = new f(); + + /* renamed from: b reason: collision with root package name */ + public final x f1223b = new x(new byte[65025], 0); + public int c = -1; + public int d; + public boolean e; + + public final int a(int i) { + int i2; + int i3 = 0; + this.d = 0; + do { + int i4 = this.d; + int i5 = i + i4; + f fVar = this.a; + if (i5 >= fVar.d) { + break; + } + int[] iArr = fVar.g; + this.d = i4 + 1; + i2 = iArr[i4 + i]; + i3 += i2; + } while (i2 == 255); + return i3; + } + + public boolean b(i iVar) throws IOException { + boolean z2; + int i; + boolean z3; + d.D(iVar != null); + if (this.e) { + this.e = false; + this.f1223b.A(0); + } + while (!this.e) { + if (this.c < 0) { + if (!this.a.c(iVar, -1) || !this.a.a(iVar, true)) { + return false; + } + f fVar = this.a; + int i2 = fVar.e; + if ((fVar.f1224b & 1) == 1 && this.f1223b.c == 0) { + i2 += a(0); + i = this.d + 0; + } else { + i = 0; + } + try { + iVar.l(i2); + z3 = true; + } catch (EOFException unused) { + z3 = false; + } + if (!z3) { + return false; + } + this.c = i; + } + int a = a(this.c); + int i3 = this.c + this.d; + if (a > 0) { + x xVar = this.f1223b; + xVar.b(xVar.c + a); + x xVar2 = this.f1223b; + try { + iVar.readFully(xVar2.a, xVar2.c, a); + z2 = true; + } catch (EOFException unused2) { + z2 = false; + } + if (!z2) { + return false; + } + x xVar3 = this.f1223b; + xVar3.D(xVar3.c + a); + this.e = this.a.g[i3 + -1] != 255; + } + if (i3 == this.a.d) { + i3 = -1; + } + this.c = i3; + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/f.java b/app/src/main/java/b/i/a/c/x2/j0/f.java new file mode 100644 index 0000000000..b7d44861d4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/f.java @@ -0,0 +1,103 @@ +package b.i.a.c.x2.j0; + +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +import com.google.android.exoplayer2.ParserException; +import java.io.IOException; +/* compiled from: OggPageHeader */ +public final class f { + public int a; + + /* renamed from: b reason: collision with root package name */ + public int f1224b; + public long c; + public int d; + public int e; + public int f; + public final int[] g = new int[255]; + public final x h = new x(255); + + public boolean a(i iVar, boolean z2) throws IOException { + b(); + this.h.A(27); + if (!d.v1(iVar, this.h.a, 0, 27, z2) || this.h.u() != 1332176723) { + return false; + } + int t = this.h.t(); + this.a = t; + if (t == 0) { + this.f1224b = this.h.t(); + x xVar = this.h; + byte[] bArr = xVar.a; + int i = xVar.f970b; + int i2 = i + 1; + xVar.f970b = i2; + int i3 = i2 + 1; + xVar.f970b = i3; + int i4 = i3 + 1; + xVar.f970b = i4; + int i5 = i4 + 1; + xVar.f970b = i5; + int i6 = i5 + 1; + xVar.f970b = i6; + int i7 = i6 + 1; + xVar.f970b = i7; + int i8 = i7 + 1; + xVar.f970b = i8; + xVar.f970b = i8 + 1; + this.c = (((long) bArr[i]) & 255) | ((((long) bArr[i2]) & 255) << 8) | ((((long) bArr[i3]) & 255) << 16) | ((((long) bArr[i4]) & 255) << 24) | ((((long) bArr[i5]) & 255) << 32) | ((((long) bArr[i6]) & 255) << 40) | ((((long) bArr[i7]) & 255) << 48) | ((((long) bArr[i8]) & 255) << 56); + xVar.j(); + this.h.j(); + this.h.j(); + int t2 = this.h.t(); + this.d = t2; + this.e = t2 + 27; + this.h.A(t2); + if (!d.v1(iVar, this.h.a, 0, this.d, z2)) { + return false; + } + for (int i9 = 0; i9 < this.d; i9++) { + this.g[i9] = this.h.t(); + this.f += this.g[i9]; + } + return true; + } else if (z2) { + return false; + } else { + throw ParserException.b("unsupported bit stream revision"); + } + } + + public void b() { + this.a = 0; + this.f1224b = 0; + this.c = 0; + this.d = 0; + this.e = 0; + this.f = 0; + } + + public boolean c(i iVar, long j) throws IOException { + int i; + d.j(iVar.getPosition() == iVar.f()); + this.h.A(4); + while (true) { + i = (j > -1 ? 1 : (j == -1 ? 0 : -1)); + if ((i == 0 || iVar.getPosition() + 4 < j) && d.v1(iVar, this.h.a, 0, 4, true)) { + this.h.E(0); + if (this.h.u() == 1332176723) { + iVar.k(); + return true; + } + iVar.l(1); + } + } + do { + if (i != 0 && iVar.getPosition() >= j) { + break; + } + } while (iVar.h(1) != -1); + return false; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/g.java b/app/src/main/java/b/i/a/c/x2/j0/g.java new file mode 100644 index 0000000000..d7f8420db3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/g.java @@ -0,0 +1,15 @@ +package b.i.a.c.x2.j0; + +import androidx.annotation.Nullable; +import b.i.a.c.x2.i; +import b.i.a.c.x2.t; +import java.io.IOException; +/* compiled from: OggSeeker */ +public interface g { + @Nullable + t a(); + + long b(i iVar) throws IOException; + + void c(long j); +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/h.java b/app/src/main/java/b/i/a/c/x2/j0/h.java new file mode 100644 index 0000000000..30165e8226 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/h.java @@ -0,0 +1,64 @@ +package b.i.a.c.x2.j0; + +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.j0.i; +import com.discord.utilities.guilds.GuildConstantsKt; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf; +/* compiled from: OpusReader */ +public final class h extends i { + public static final byte[] n = {79, 112, 117, 115, 72, 101, 97, 100}; + public boolean o; + + @Override // b.i.a.c.x2.j0.i + public long c(x xVar) { + byte[] bArr = xVar.a; + int i = bArr[0] & 255; + int i2 = i & 3; + int i3 = 2; + if (i2 == 0) { + i3 = 1; + } else if (!(i2 == 1 || i2 == 2)) { + i3 = bArr[1] & 63; + } + int i4 = i >> 3; + int i5 = i4 & 3; + return a(((long) i3) * ((long) (i4 >= 16 ? GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES << i5 : i4 >= 12 ? 10000 << (i5 & 1) : i5 == 3 ? 60000 : 10000 << i5))); + } + + @Override // b.i.a.c.x2.j0.i + @EnsuresNonNullIf(expression = {"#3.format"}, result = false) + public boolean d(x xVar, long j, i.b bVar) { + boolean z2 = true; + if (!this.o) { + byte[] copyOf = Arrays.copyOf(xVar.a, xVar.c); + List g = d.g(copyOf); + j1.b bVar2 = new j1.b(); + bVar2.k = "audio/opus"; + bVar2.f1009x = copyOf[9] & 255; + bVar2.f1010y = 48000; + bVar2.m = g; + bVar.a = bVar2.a(); + this.o = true; + return true; + } + Objects.requireNonNull(bVar.a); + if (xVar.f() != 1332770163) { + z2 = false; + } + xVar.E(0); + return z2; + } + + @Override // b.i.a.c.x2.j0.i + public void e(boolean z2) { + super.e(z2); + if (z2) { + this.o = false; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/i.java b/app/src/main/java/b/i/a/c/x2/j0/i.java new file mode 100644 index 0000000000..d82cdfdc10 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/i.java @@ -0,0 +1,80 @@ +package b.i.a.c.x2.j0; + +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.t; +import b.i.a.c.x2.w; +import java.io.IOException; +import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf; +/* compiled from: StreamReader */ +public abstract class i { + public final e a = new e(); + + /* renamed from: b reason: collision with root package name */ + public w f1225b; + public j c; + public g d; + public long e; + public long f; + public long g; + public int h; + public int i; + public b j = new b(); + public long k; + public boolean l; + public boolean m; + + /* compiled from: StreamReader */ + public static class b { + public j1 a; + + /* renamed from: b reason: collision with root package name */ + public g f1226b; + } + + /* compiled from: StreamReader */ + public static final class c implements g { + public c(a aVar) { + } + + @Override // b.i.a.c.x2.j0.g + public t a() { + return new t.b(-9223372036854775807L, 0); + } + + @Override // b.i.a.c.x2.j0.g + public long b(b.i.a.c.x2.i iVar) { + return -1; + } + + @Override // b.i.a.c.x2.j0.g + public void c(long j) { + } + } + + public long a(long j) { + return (((long) this.i) * j) / 1000000; + } + + public void b(long j) { + this.g = j; + } + + public abstract long c(x xVar); + + @EnsuresNonNullIf(expression = {"#3.format"}, result = false) + public abstract boolean d(x xVar, long j, b bVar) throws IOException; + + public void e(boolean z2) { + if (z2) { + this.j = new b(); + this.f = 0; + this.h = 0; + } else { + this.h = 1; + } + this.e = -1; + this.g = 0; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/j0/j.java b/app/src/main/java/b/i/a/c/x2/j0/j.java new file mode 100644 index 0000000000..60c71d4136 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/j0/j.java @@ -0,0 +1,407 @@ +package b.i.a.c.x2.j0; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.a0; +import b.i.a.c.x2.b0; +import b.i.a.c.x2.j0.i; +import b.i.a.c.x2.y; +import b.i.a.c.x2.z; +import com.google.android.exoplayer2.ParserException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Objects; +import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf; +/* compiled from: VorbisReader */ +public final class j extends i { + @Nullable + public a n; + public int o; + public boolean p; + @Nullable + public b0 q; + @Nullable + public z r; + + /* compiled from: VorbisReader */ + public static final class a { + public final b0 a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f1227b; + public final a0[] c; + public final int d; + + public a(b0 b0Var, z zVar, byte[] bArr, a0[] a0VarArr, int i) { + this.a = b0Var; + this.f1227b = bArr; + this.c = a0VarArr; + this.d = i; + } + } + + @Override // b.i.a.c.x2.j0.i + public void b(long j) { + this.g = j; + int i = 0; + this.p = j != 0; + b0 b0Var = this.q; + if (b0Var != null) { + i = b0Var.e; + } + this.o = i; + } + + @Override // b.i.a.c.x2.j0.i + public long c(x xVar) { + byte[] bArr = xVar.a; + int i = 0; + if ((bArr[0] & 1) == 1) { + return -1; + } + byte b2 = bArr[0]; + a aVar = this.n; + d.H(aVar); + a aVar2 = aVar; + int i2 = !aVar2.c[(b2 >> 1) & (255 >>> (8 - aVar2.d))].a ? aVar2.a.e : aVar2.a.f; + if (this.p) { + i = (this.o + i2) / 4; + } + long j = (long) i; + byte[] bArr2 = xVar.a; + int length = bArr2.length; + int i3 = xVar.c + 4; + if (length < i3) { + xVar.B(Arrays.copyOf(bArr2, i3)); + } else { + xVar.D(i3); + } + byte[] bArr3 = xVar.a; + int i4 = xVar.c; + bArr3[i4 - 4] = (byte) ((int) (j & 255)); + bArr3[i4 - 3] = (byte) ((int) ((j >>> 8) & 255)); + bArr3[i4 - 2] = (byte) ((int) ((j >>> 16) & 255)); + bArr3[i4 - 1] = (byte) ((int) ((j >>> 24) & 255)); + this.p = true; + this.o = i2; + return j; + } + + /* JADX WARNING: Removed duplicated region for block: B:167:0x03b9 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:168:0x03bb */ + @Override // b.i.a.c.x2.j0.i + @EnsuresNonNullIf(expression = {"#3.format"}, result = false) + public boolean d(x xVar, long j, i.b bVar) throws IOException { + a aVar; + int i; + int i2; + int i3; + int i4; + int i5; + if (this.n != null) { + Objects.requireNonNull(bVar.a); + return false; + } + b0 b0Var = this.q; + if (b0Var == null) { + d.l2(1, xVar, false); + int k = xVar.k(); + int t = xVar.t(); + int k2 = xVar.k(); + int h = xVar.h(); + int i6 = h <= 0 ? -1 : h; + int h2 = xVar.h(); + int i7 = h2 <= 0 ? -1 : h2; + int h3 = xVar.h(); + int i8 = h3 <= 0 ? -1 : h3; + int t2 = xVar.t(); + this.q = new b0(k, t, k2, i6, i7, i8, (int) Math.pow(2.0d, (double) (t2 & 15)), (int) Math.pow(2.0d, (double) ((t2 & 240) >> 4)), (xVar.t() & 1) > 0, Arrays.copyOf(xVar.a, xVar.c)); + } else { + z zVar = this.r; + if (zVar == null) { + this.r = d.L1(xVar, true, true); + } else { + int i9 = xVar.c; + byte[] bArr = new byte[i9]; + System.arraycopy(xVar.a, 0, bArr, 0, i9); + int i10 = b0Var.a; + int i11 = 5; + d.l2(5, xVar, false); + int t3 = xVar.t() + 1; + y yVar = new y(xVar.a); + yVar.c(xVar.f970b * 8); + int i12 = 0; + while (true) { + int i13 = 16; + if (i12 >= t3) { + int i14 = 6; + int b2 = yVar.b(6) + 1; + for (int i15 = 0; i15 < b2; i15++) { + if (yVar.b(16) != 0) { + throw ParserException.a("placeholder of time domain transforms not zeroed out", null); + } + } + int i16 = 1; + int b3 = yVar.b(6) + 1; + int i17 = 0; + while (true) { + int i18 = 3; + if (i17 < b3) { + int b4 = yVar.b(i13); + if (b4 == 0) { + i3 = b3; + int i19 = 8; + yVar.c(8); + yVar.c(16); + yVar.c(16); + yVar.c(6); + yVar.c(8); + int b5 = yVar.b(4) + 1; + int i20 = 0; + while (i20 < b5) { + yVar.c(i19); + i20++; + i19 = 8; + } + } else if (b4 == i16) { + int b6 = yVar.b(5); + int[] iArr = new int[b6]; + int i21 = -1; + for (int i22 = 0; i22 < b6; i22++) { + iArr[i22] = yVar.b(4); + if (iArr[i22] > i21) { + i21 = iArr[i22]; + } + } + int i23 = i21 + 1; + int[] iArr2 = new int[i23]; + int i24 = 0; + while (i24 < i23) { + iArr2[i24] = yVar.b(i18) + 1; + int b7 = yVar.b(2); + int i25 = 8; + if (b7 > 0) { + yVar.c(8); + } + int i26 = 0; + for (int i27 = 1; i26 < (i27 << b7); i27 = 1) { + yVar.c(i25); + i26++; + i25 = 8; + } + i24++; + i18 = 3; + b3 = b3; + } + i3 = b3; + yVar.c(2); + int b8 = yVar.b(4); + int i28 = 0; + int i29 = 0; + for (int i30 = 0; i30 < b6; i30++) { + i28 += iArr2[iArr[i30]]; + while (i29 < i28) { + yVar.c(b8); + i29++; + } + } + } else { + throw b.d.b.a.a.t0(52, "floor type greater than 1 not decodable: ", b4, null); + } + i17++; + i14 = 6; + i16 = 1; + i13 = 16; + b3 = i3; + } else { + int i31 = 1; + int b9 = yVar.b(i14) + 1; + int i32 = 0; + while (i32 < b9) { + if (yVar.b(16) <= 2) { + yVar.c(24); + yVar.c(24); + yVar.c(24); + int b10 = yVar.b(i14) + i31; + int i33 = 8; + yVar.c(8); + int[] iArr3 = new int[b10]; + for (int i34 = 0; i34 < b10; i34++) { + iArr3[i34] = ((yVar.a() ? yVar.b(5) : 0) * 8) + yVar.b(3); + } + int i35 = 0; + while (i35 < b10) { + int i36 = 0; + while (i36 < i33) { + if ((iArr3[i35] & (1 << i36)) != 0) { + yVar.c(i33); + } + i36++; + i33 = 8; + } + i35++; + i33 = 8; + } + i32++; + i14 = 6; + i31 = 1; + } else { + throw ParserException.a("residueType greater than 2 is not decodable", null); + } + } + int b11 = yVar.b(i14) + 1; + for (int i37 = 0; i37 < b11; i37++) { + int b12 = yVar.b(16); + if (b12 != 0) { + StringBuilder sb = new StringBuilder(52); + sb.append("mapping type other than 0 not supported: "); + sb.append(b12); + Log.e("VorbisUtil", sb.toString()); + } else { + if (yVar.a()) { + i = 1; + i2 = yVar.b(4) + 1; + } else { + i = 1; + i2 = 1; + } + if (yVar.a()) { + int b13 = yVar.b(8) + i; + for (int i38 = 0; i38 < b13; i38++) { + int i39 = i10 - 1; + yVar.c(d.L0(i39)); + yVar.c(d.L0(i39)); + } + } + if (yVar.b(2) == 0) { + if (i2 > 1) { + for (int i40 = 0; i40 < i10; i40++) { + yVar.c(4); + } + } + for (int i41 = 0; i41 < i2; i41++) { + yVar.c(8); + yVar.c(8); + yVar.c(8); + } + } else { + throw ParserException.a("to reserved bits must be zero after mapping coupling steps", null); + } + } + } + int b14 = yVar.b(6) + 1; + a0[] a0VarArr = new a0[b14]; + for (int i42 = 0; i42 < b14; i42++) { + a0VarArr[i42] = new a0(yVar.a(), yVar.b(16), yVar.b(16), yVar.b(8)); + } + if (yVar.a()) { + aVar = new a(b0Var, zVar, bArr, a0VarArr, d.L0(b14 - 1)); + } else { + throw ParserException.a("framing bit after modes not set as expected", null); + } + } + } + } else if (yVar.b(24) == 5653314) { + int b15 = yVar.b(16); + int b16 = yVar.b(24); + long[] jArr = new long[b16]; + if (!yVar.a()) { + boolean a2 = yVar.a(); + int i43 = 0; + while (i43 < b16) { + if (!a2) { + i5 = t3; + jArr[i43] = (long) (yVar.b(5) + 1); + } else if (yVar.a()) { + i5 = t3; + jArr[i43] = (long) (yVar.b(i11) + 1); + } else { + i5 = t3; + jArr[i43] = 0; + } + i43++; + i11 = 5; + t3 = i5; + } + i4 = t3; + } else { + i4 = t3; + int b17 = yVar.b(5) + 1; + int i44 = 0; + while (i44 < b16) { + int b18 = yVar.b(d.L0(b16 - i44)); + int i45 = 0; + while (i45 < b18 && i44 < b16) { + jArr[i44] = (long) b17; + i44++; + i45++; + zVar = zVar; + bArr = bArr; + } + b17++; + zVar = zVar; + bArr = bArr; + } + } + int b19 = yVar.b(4); + if (b19 <= 2) { + if (b19 == 1 || b19 == 2) { + yVar.c(32); + yVar.c(32); + int b20 = yVar.b(4) + 1; + yVar.c(1); + yVar.c((int) (((long) b20) * (b19 == 1 ? b15 != 0 ? (long) Math.floor(Math.pow((double) ((long) b16), 1.0d / ((double) ((long) b15)))) : 0 : ((long) b16) * ((long) b15)))); + } + i12++; + i11 = 5; + t3 = i4; + zVar = zVar; + bArr = bArr; + } else { + throw b.d.b.a.a.t0(53, "lookup type greater than 2 not decodable: ", b19, null); + } + } else { + throw b.d.b.a.a.t0(66, "expected code book to start with [0x56, 0x43, 0x42] at ", (yVar.c * 8) + yVar.d, null); + } + } + this.n = aVar; + if (aVar != null) { + return true; + } + b0 b0Var2 = aVar.a; + ArrayList arrayList = new ArrayList(); + arrayList.add(b0Var2.g); + arrayList.add(aVar.f1227b); + j1.b bVar2 = new j1.b(); + bVar2.k = "audio/vorbis"; + bVar2.f = b0Var2.d; + bVar2.g = b0Var2.c; + bVar2.f1009x = b0Var2.a; + bVar2.f1010y = b0Var2.f1149b; + bVar2.m = arrayList; + bVar.a = bVar2.a(); + return true; + } + } + aVar = null; + this.n = aVar; + if (aVar != null) { + } + } + + @Override // b.i.a.c.x2.j0.i + public void e(boolean z2) { + super.e(z2); + if (z2) { + this.n = null; + this.q = null; + this.r = null; + } + this.o = 0; + this.p = false; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k.java b/app/src/main/java/b/i/a/c/x2/k.java new file mode 100644 index 0000000000..54b0cd17ac --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k.java @@ -0,0 +1,11 @@ +package b.i.a.c.x2; + +import android.net.Uri; +import java.util.Map; +/* compiled from: ExtractorsFactory */ +public final /* synthetic */ class k { + /* JADX WARN: Incorrect args count in method signature: (Landroid/net/Uri;Ljava/util/Map;>;)[Lb/i/a/c/x2/h; */ + public static h[] a(l lVar, Uri uri, Map map) { + return lVar.a(); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/a.java b/app/src/main/java/b/i/a/c/x2/k0/a.java new file mode 100644 index 0000000000..69a452eb27 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.k0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new f()}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/a0.java b/app/src/main/java/b/i/a/c/x2/k0/a0.java new file mode 100644 index 0000000000..82d8c2fa60 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/a0.java @@ -0,0 +1,45 @@ +package b.i.a.c.x2.k0; + +import b.i.a.c.f3.d0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +/* compiled from: PsDurationReader */ +public final class a0 { + public final d0 a = new d0(0); + + /* renamed from: b reason: collision with root package name */ + public final x f1228b = new x(); + public boolean c; + public boolean d; + public boolean e; + public long f = -9223372036854775807L; + public long g = -9223372036854775807L; + public long h = -9223372036854775807L; + + public static long c(x xVar) { + int i = xVar.f970b; + if (xVar.a() < 9) { + return -9223372036854775807L; + } + byte[] bArr = new byte[9]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, 9); + xVar.f970b += 9; + xVar.E(i); + if (!((bArr[0] & 196) == 68 && (bArr[2] & 4) == 4 && (bArr[4] & 4) == 4 && (bArr[5] & 1) == 1 && (bArr[8] & 3) == 3)) { + return -9223372036854775807L; + } + return (((((long) bArr[0]) & 56) >> 3) << 30) | ((((long) bArr[0]) & 3) << 28) | ((((long) bArr[1]) & 255) << 20) | (((((long) bArr[2]) & 248) >> 3) << 15) | ((((long) bArr[2]) & 3) << 13) | ((((long) bArr[3]) & 255) << 5) | ((((long) bArr[4]) & 248) >> 3); + } + + public final int a(i iVar) { + this.f1228b.B(e0.f); + this.c = true; + iVar.k(); + return 0; + } + + public final int b(byte[] bArr, int i) { + return (bArr[i + 3] & 255) | ((bArr[i] & 255) << 24) | ((bArr[i + 1] & 255) << 16) | ((bArr[i + 2] & 255) << 8); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/b.java b/app/src/main/java/b/i/a/c/x2/k0/b.java new file mode 100644 index 0000000000..5ab065f36e --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/b.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.k0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class b implements l { + public static final /* synthetic */ b a = new b(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new h()}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/b0.java b/app/src/main/java/b/i/a/c/x2/k0/b0.java new file mode 100644 index 0000000000..e3d7cb0cfd --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/b0.java @@ -0,0 +1,341 @@ +package b.i.a.c.x2.k0; + +import android.util.Log; +import android.util.SparseArray; +import androidx.annotation.Nullable; +import androidx.core.view.InputDeviceCompat; +import b.c.a.a0.d; +import b.i.a.c.f3.d0; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import com.discord.api.permission.Permission; +import java.io.IOException; +/* compiled from: PsExtractor */ +public final class b0 implements h { + public final d0 a = new d0(0); + + /* renamed from: b reason: collision with root package name */ + public final SparseArray f1229b = new SparseArray<>(); + public final x c = new x(4096); + public final a0 d = new a0(); + public boolean e; + public boolean f; + public boolean g; + public long h; + @Nullable + public z i; + public j j; + public boolean k; + + /* compiled from: PsExtractor */ + public static final class a { + public final o a; + + /* renamed from: b reason: collision with root package name */ + public final d0 f1230b; + public final w c = new w(new byte[64]); + public boolean d; + public boolean e; + public boolean f; + public int g; + public long h; + + public a(o oVar, d0 d0Var) { + this.a = oVar; + this.f1230b = d0Var; + } + } + + static { + d dVar = d.a; + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + byte[] bArr = new byte[14]; + iVar.o(bArr, 0, 14); + if (442 != (((bArr[0] & 255) << 24) | ((bArr[1] & 255) << 16) | ((bArr[2] & 255) << 8) | (bArr[3] & 255)) || (bArr[4] & 196) != 68 || (bArr[6] & 4) != 4 || (bArr[8] & 4) != 4 || (bArr[9] & 1) != 1 || (bArr[12] & 3) != 3) { + return false; + } + iVar.g(bArr[13] & 7); + iVar.o(bArr, 0, 3); + return 1 == ((((bArr[0] & 255) << 16) | ((bArr[1] & 255) << 8)) | (bArr[2] & 255)); + } + + /* JADX WARNING: Removed duplicated region for block: B:102:0x021d */ + /* JADX WARNING: Removed duplicated region for block: B:64:0x0155 */ + /* JADX WARNING: Removed duplicated region for block: B:65:0x015b */ + /* JADX WARNING: Removed duplicated region for block: B:76:0x0186 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:77:0x0187 */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + int i; + z zVar; + long f; + int f2; + o pVar; + d.H(this.j); + long b2 = iVar.b(); + int i2 = 1; + int i3 = (b2 > -1 ? 1 : (b2 == -1 ? 0 : -1)); + long j = -9223372036854775807L; + if (i3 != 0) { + a0 a0Var = this.d; + if (!a0Var.c) { + if (!a0Var.e) { + long b3 = iVar.b(); + int min = (int) Math.min(20000L, b3); + long j2 = b3 - ((long) min); + if (iVar.getPosition() != j2) { + sVar.a = j2; + return i2; + } + a0Var.f1228b.A(min); + iVar.k(); + iVar.o(a0Var.f1228b.a, 0, min); + x xVar = a0Var.f1228b; + int i4 = xVar.f970b; + int i5 = xVar.c - 4; + while (true) { + if (i5 < i4) { + break; + } + if (a0Var.b(xVar.a, i5) == 442) { + xVar.E(i5 + 4); + long c = a0.c(xVar); + if (c != -9223372036854775807L) { + j = c; + break; + } + } + i5--; + } + a0Var.g = j; + a0Var.e = true; + } else if (a0Var.g == -9223372036854775807L) { + a0Var.a(iVar); + return 0; + } else if (!a0Var.d) { + int min2 = (int) Math.min(20000L, iVar.b()); + long j3 = (long) 0; + if (iVar.getPosition() != j3) { + sVar.a = j3; + return i2; + } + a0Var.f1228b.A(min2); + iVar.k(); + iVar.o(a0Var.f1228b.a, 0, min2); + x xVar2 = a0Var.f1228b; + int i6 = xVar2.f970b; + int i7 = xVar2.c; + while (true) { + if (i6 >= i7 - 3) { + break; + } + if (a0Var.b(xVar2.a, i6) == 442) { + xVar2.E(i6 + 4); + long c2 = a0.c(xVar2); + if (c2 != -9223372036854775807L) { + j = c2; + break; + } + } + i6++; + } + a0Var.f = j; + a0Var.d = true; + } else { + long j4 = a0Var.f; + if (j4 == -9223372036854775807L) { + a0Var.a(iVar); + return 0; + } + long b4 = a0Var.a.b(a0Var.g) - a0Var.a.b(j4); + a0Var.h = b4; + if (b4 < 0) { + Log.w("PsDurationReader", b.d.b.a.a.h(65, "Invalid duration: ", b4, ". Using TIME_UNSET instead.")); + a0Var.h = -9223372036854775807L; + } + a0Var.a(iVar); + return 0; + } + i2 = 0; + return i2; + } + } + if (!this.k) { + this.k = true; + a0 a0Var2 = this.d; + long j5 = a0Var2.h; + if (j5 != -9223372036854775807L) { + z zVar2 = new z(a0Var2.a, j5, b2); + this.i = zVar2; + this.j.a(zVar2.a); + } else { + i = 442; + this.j.a(new t.b(j5, 0)); + zVar = this.i; + if (zVar == null && zVar.b()) { + return this.i.a(iVar, sVar); + } + iVar.k(); + f = i3 == 0 ? b2 - iVar.f() : -1; + if ((f == -1 && f < 4) || !iVar.e(this.c.a, 0, 4, true)) { + return -1; + } + this.c.E(0); + f2 = this.c.f(); + if (f2 != 441) { + return -1; + } + if (f2 == i) { + iVar.o(this.c.a, 0, 10); + this.c.E(9); + iVar.l((this.c.t() & 7) + 14); + return 0; + } else if (f2 == 443) { + iVar.o(this.c.a, 0, 2); + this.c.E(0); + iVar.l(this.c.y() + 6); + return 0; + } else if (((f2 & InputDeviceCompat.SOURCE_ANY) >> 8) != 1) { + iVar.l(1); + return 0; + } else { + int i8 = f2 & 255; + a aVar = this.f1229b.get(i8); + if (!this.e) { + if (aVar == null) { + o oVar = null; + if (i8 == 189) { + pVar = new g(null); + this.f = true; + this.h = iVar.getPosition(); + } else if ((i8 & 224) == 192) { + pVar = new v(null); + this.f = true; + this.h = iVar.getPosition(); + } else { + if ((i8 & 240) == 224) { + pVar = new p(null); + this.g = true; + this.h = iVar.getPosition(); + } + if (oVar != null) { + oVar.e(this.j, new i0.d(Integer.MIN_VALUE, i8, 256)); + aVar = new a(oVar, this.a); + this.f1229b.put(i8, aVar); + } + } + oVar = pVar; + if (oVar != null) { + } + } + if (iVar.getPosition() > ((!this.f || !this.g) ? Permission.CONNECT : this.h + Permission.MANAGE_MESSAGES)) { + this.e = true; + this.j.j(); + } + } + iVar.o(this.c.a, 0, 2); + this.c.E(0); + int y2 = this.c.y() + 6; + if (aVar == null) { + iVar.l(y2); + return 0; + } + this.c.A(y2); + iVar.readFully(this.c.a, 0, y2); + this.c.E(6); + x xVar3 = this.c; + xVar3.e(aVar.c.a, 0, 3); + aVar.c.k(0); + aVar.c.m(8); + aVar.d = aVar.c.f(); + aVar.e = aVar.c.f(); + aVar.c.m(6); + int g = aVar.c.g(8); + aVar.g = g; + xVar3.e(aVar.c.a, 0, g); + aVar.c.k(0); + aVar.h = 0; + if (aVar.d) { + aVar.c.m(4); + aVar.c.m(1); + aVar.c.m(1); + long g2 = (((long) aVar.c.g(3)) << 30) | ((long) (aVar.c.g(15) << 15)) | ((long) aVar.c.g(15)); + aVar.c.m(1); + if (!aVar.f && aVar.e) { + aVar.c.m(4); + aVar.c.m(1); + aVar.c.m(1); + long g3 = (long) aVar.c.g(15); + aVar.c.m(1); + aVar.f1230b.b(g3 | (((long) aVar.c.g(3)) << 30) | ((long) (aVar.c.g(15) << 15))); + aVar.f = true; + } + aVar.h = aVar.f1230b.b(g2); + } + aVar.a.f(aVar.h, 4); + aVar.a.b(xVar3); + aVar.a.d(); + x xVar4 = this.c; + xVar4.D(xVar4.a.length); + return 0; + } + } + } + i = 442; + zVar = this.i; + if (zVar == null) { + } + iVar.k(); + if (i3 == 0) { + } + if (f == -1) { + } + this.c.E(0); + f2 = this.c.f(); + if (f2 != 441) { + } + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.j = jVar; + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + boolean z2 = true; + boolean z3 = this.a.d() == -9223372036854775807L; + if (!z3) { + long c = this.a.c(); + if (c == -9223372036854775807L || c == 0 || c == j2) { + z2 = false; + } + z3 = z2; + } + if (z3) { + this.a.e(j2); + } + z zVar = this.i; + if (zVar != null) { + zVar.e(j2); + } + for (int i = 0; i < this.f1229b.size(); i++) { + a valueAt = this.f1229b.valueAt(i); + valueAt.f = false; + valueAt.a.c(); + } + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/c.java b/app/src/main/java/b/i/a/c/x2/k0/c.java new file mode 100644 index 0000000000..f40780c204 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/c.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.k0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class c implements l { + public static final /* synthetic */ c a = new c(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new j(0)}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/c0.java b/app/src/main/java/b/i/a/c/x2/k0/c0.java new file mode 100644 index 0000000000..3cac9ad1ec --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/c0.java @@ -0,0 +1,12 @@ +package b.i.a.c.x2.k0; + +import b.i.a.c.f3.d0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +/* compiled from: SectionPayloadReader */ +public interface c0 { + void a(d0 d0Var, j jVar, i0.d dVar); + + void b(x xVar); +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/d.java b/app/src/main/java/b/i/a/c/x2/k0/d.java new file mode 100644 index 0000000000..45db07cee3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/d.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.k0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class d implements l { + public static final /* synthetic */ d a = new d(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new b0()}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/d0.java b/app/src/main/java/b/i/a/c/x2/k0/d0.java new file mode 100644 index 0000000000..45c9b8df61 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/d0.java @@ -0,0 +1,107 @@ +package b.i.a.c.x2.k0; + +import androidx.core.view.InputDeviceCompat; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +/* compiled from: SectionReader */ +public final class d0 implements i0 { + public final c0 a; + + /* renamed from: b reason: collision with root package name */ + public final x f1231b = new x(32); + public int c; + public int d; + public boolean e; + public boolean f; + + public d0(c0 c0Var) { + this.a = c0Var; + } + + @Override // b.i.a.c.x2.k0.i0 + public void a(b.i.a.c.f3.d0 d0Var, j jVar, i0.d dVar) { + this.a.a(d0Var, jVar, dVar); + this.f = true; + } + + @Override // b.i.a.c.x2.k0.i0 + public void b(x xVar, int i) { + boolean z2 = (i & 1) != 0; + int t = z2 ? xVar.f970b + xVar.t() : -1; + if (this.f) { + if (z2) { + this.f = false; + xVar.E(t); + this.d = 0; + } else { + return; + } + } + while (xVar.a() > 0) { + int i2 = this.d; + if (i2 < 3) { + if (i2 == 0) { + int t2 = xVar.t(); + xVar.E(xVar.f970b - 1); + if (t2 == 255) { + this.f = true; + return; + } + } + int min = Math.min(xVar.a(), 3 - this.d); + xVar.e(this.f1231b.a, this.d, min); + int i3 = this.d + min; + this.d = i3; + if (i3 == 3) { + this.f1231b.E(0); + this.f1231b.D(3); + this.f1231b.F(1); + int t3 = this.f1231b.t(); + int t4 = this.f1231b.t(); + this.e = (t3 & 128) != 0; + int i4 = (((t3 & 15) << 8) | t4) + 3; + this.c = i4; + byte[] bArr = this.f1231b.a; + if (bArr.length < i4) { + this.f1231b.b(Math.min((int) InputDeviceCompat.SOURCE_TOUCHSCREEN, Math.max(i4, bArr.length * 2))); + } + } + } else { + int min2 = Math.min(xVar.a(), this.c - this.d); + xVar.e(this.f1231b.a, this.d, min2); + int i5 = this.d + min2; + this.d = i5; + int i6 = this.c; + if (i5 != i6) { + continue; + } else { + if (this.e) { + byte[] bArr2 = this.f1231b.a; + int i7 = e0.a; + int i8 = -1; + for (int i9 = 0; i9 < i6; i9++) { + i8 = e0.k[((i8 >>> 24) ^ (bArr2[i9] & 255)) & 255] ^ (i8 << 8); + } + if (i8 != 0) { + this.f = true; + return; + } + this.f1231b.D(this.c - 4); + } else { + this.f1231b.D(i6); + } + this.f1231b.E(0); + this.a.b(this.f1231b); + this.d = 0; + } + } + } + } + + @Override // b.i.a.c.x2.k0.i0 + public void c() { + this.f = true; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/e.java b/app/src/main/java/b/i/a/c/x2/k0/e.java new file mode 100644 index 0000000000..7f5f040be9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/e.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.k0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class e implements l { + public static final /* synthetic */ e a = new e(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new h0(1, 0, 112800)}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/e0.java b/app/src/main/java/b/i/a/c/x2/k0/e0.java new file mode 100644 index 0000000000..c413513de3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/e0.java @@ -0,0 +1,45 @@ +package b.i.a.c.x2.k0; + +import b.c.a.a0.d; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +import java.util.List; +/* compiled from: SeiReader */ +public final class e0 { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final w[] f1232b; + + public e0(List list) { + this.a = list; + this.f1232b = new w[list.size()]; + } + + public void a(j jVar, i0.d dVar) { + for (int i = 0; i < this.f1232b.length; i++) { + dVar.a(); + w p = jVar.p(dVar.c(), 3); + j1 j1Var = this.a.get(i); + String str = j1Var.w; + boolean z2 = "application/cea-608".equals(str) || "application/cea-708".equals(str); + String valueOf = String.valueOf(str); + d.m(z2, valueOf.length() != 0 ? "Invalid closed caption mime type provided: ".concat(valueOf) : new String("Invalid closed caption mime type provided: ")); + String str2 = j1Var.l; + if (str2 == null) { + str2 = dVar.b(); + } + j1.b bVar = new j1.b(); + bVar.a = str2; + bVar.k = str; + bVar.d = j1Var.o; + bVar.c = j1Var.n; + bVar.C = j1Var.O; + bVar.m = j1Var.f1005y; + p.e(bVar.a()); + this.f1232b[i] = p; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/f.java b/app/src/main/java/b/i/a/c/x2/k0/f.java new file mode 100644 index 0000000000..a73c9ebe1b --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/f.java @@ -0,0 +1,112 @@ +package b.i.a.c.x2.k0; + +import b.i.a.c.f3.x; +import b.i.a.c.t2.m; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import java.io.IOException; +/* compiled from: Ac3Extractor */ +public final class f implements h { + public final g a = new g(null); + + /* renamed from: b reason: collision with root package name */ + public final x f1233b = new x(2786); + public boolean c; + + static { + a aVar = a.a; + } + + /* JADX WARNING: Code restructure failed: missing block: B:7:0x0034, code lost: + r14.k(); + r5 = r5 + 1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:8:0x003d, code lost: + if ((r5 - r3) < 8192) goto L_0x0040; + */ + /* JADX WARNING: Code restructure failed: missing block: B:9:0x003f, code lost: + return false; + */ + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + int i; + x xVar = new x(10); + int i2 = 0; + while (true) { + iVar.o(xVar.a, 0, 10); + xVar.E(0); + if (xVar.v() != 4801587) { + break; + } + xVar.F(3); + int s2 = xVar.s(); + i2 += s2 + 10; + iVar.g(s2); + } + iVar.k(); + iVar.g(i2); + int i3 = i2; + while (true) { + int i4 = 0; + while (true) { + iVar.o(xVar.a, 0, 6); + xVar.E(0); + if (xVar.y() != 2935) { + break; + } + i4++; + if (i4 >= 4) { + return true; + } + byte[] bArr = xVar.a; + if (bArr.length < 6) { + i = -1; + } else { + i = ((bArr[5] & 248) >> 3) > 10 ? ((((bArr[2] & 7) << 8) | (bArr[3] & 255)) + 1) * 2 : m.a((bArr[4] & 192) >> 6, bArr[4] & 63); + } + if (i == -1) { + return false; + } + iVar.g(i - 6); + } + iVar.g(i3); + } + } + + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + int read = iVar.read(this.f1233b.a, 0, 2786); + if (read == -1) { + return -1; + } + this.f1233b.E(0); + this.f1233b.D(read); + if (!this.c) { + this.a.f(0, 4); + this.c = true; + } + this.a.b(this.f1233b); + return 0; + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.a.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1)); + jVar.j(); + jVar.a(new t.b(-9223372036854775807L, 0)); + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + this.c = false; + this.a.c(); + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/f0.java b/app/src/main/java/b/i/a/c/x2/k0/f0.java new file mode 100644 index 0000000000..1bd62e1dd4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/f0.java @@ -0,0 +1,76 @@ +package b.i.a.c.x2.k0; + +import b.c.a.a0.d; +import b.i.a.c.f3.d0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.a; +import b.i.a.c.x2.i; +import java.io.IOException; +/* compiled from: TsBinarySearchSeeker */ +public final class f0 extends b.i.a.c.x2.a { + + /* compiled from: TsBinarySearchSeeker */ + public static final class a implements a.f { + public final d0 a; + + /* renamed from: b reason: collision with root package name */ + public final x f1234b = new x(); + public final int c; + public final int d; + + public a(int i, d0 d0Var, int i2) { + this.c = i; + this.a = d0Var; + this.d = i2; + } + + @Override // b.i.a.c.x2.a.f + public void a() { + this.f1234b.B(e0.f); + } + + @Override // b.i.a.c.x2.a.f + public a.e b(i iVar, long j) throws IOException { + long position = iVar.getPosition(); + int min = (int) Math.min((long) this.d, iVar.b() - position); + this.f1234b.A(min); + iVar.o(this.f1234b.a, 0, min); + x xVar = this.f1234b; + int i = xVar.c; + long j2 = -1; + long j3 = -1; + long j4 = -9223372036854775807L; + while (xVar.a() >= 188) { + byte[] bArr = xVar.a; + int i2 = xVar.f970b; + while (i2 < i && bArr[i2] != 71) { + i2++; + } + int i3 = i2 + 188; + if (i3 > i) { + break; + } + long I1 = d.I1(xVar, i2, this.c); + if (I1 != -9223372036854775807L) { + long b2 = this.a.b(I1); + if (b2 > j) { + return j4 == -9223372036854775807L ? a.e.a(b2, position) : a.e.b(position + j3); + } + if (100000 + b2 > j) { + return a.e.b(position + ((long) i2)); + } + j4 = b2; + j3 = (long) i2; + } + xVar.E(i3); + j2 = (long) i3; + } + return j4 != -9223372036854775807L ? a.e.c(j4, position + j2) : a.e.a; + } + } + + public f0(d0 d0Var, long j, long j2, int i, int i2) { + super(new a.b(), new a(i, d0Var, i2), j, 0, j + 1, 0, j2, 188, 940); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/g.java b/app/src/main/java/b/i/a/c/x2/k0/g.java new file mode 100644 index 0000000000..267c8687a4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/g.java @@ -0,0 +1,372 @@ +package b.i.a.c.x2.k0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.m; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +/* compiled from: Ac3Reader */ +public final class g implements o { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final x f1235b; + @Nullable + public final String c; + public String d; + public b.i.a.c.x2.w e; + public int f = 0; + public int g; + public boolean h; + public long i; + public j1 j; + public int k; + public long l = -9223372036854775807L; + + public g(@Nullable String str) { + w wVar = new w(new byte[128]); + this.a = wVar; + this.f1235b = new x(wVar.a); + this.c = str; + } + + /* JADX WARNING: Removed duplicated region for block: B:123:0x0212 */ + /* JADX WARNING: Removed duplicated region for block: B:132:0x022e */ + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + int i; + int i2; + int i3; + String str; + int i4; + int i5; + int i6; + int i7; + int i8; + int i9; + int i10; + int i11; + int i12; + boolean z2; + d.H(this.e); + while (xVar.a() > 0) { + int i13 = this.f; + if (i13 == 0) { + while (true) { + if (xVar.a() <= 0) { + z2 = false; + break; + } else if (!this.h) { + this.h = xVar.t() == 11; + } else { + int t = xVar.t(); + if (t == 119) { + this.h = false; + z2 = true; + break; + } + this.h = t == 11; + } + } + if (z2) { + this.f = 1; + byte[] bArr = this.f1235b.a; + bArr[0] = 11; + bArr[1] = 119; + this.g = 2; + } + } else if (i13 == 1) { + byte[] bArr2 = this.f1235b.a; + int min = Math.min(xVar.a(), 128 - this.g); + System.arraycopy(xVar.a, xVar.f970b, bArr2, this.g, min); + xVar.f970b += min; + int i14 = this.g + min; + this.g = i14; + if (i14 == 128) { + this.a.k(0); + w wVar = this.a; + int e = wVar.e(); + wVar.m(40); + boolean z3 = wVar.g(5) > 10; + wVar.k(e); + int i15 = -1; + if (z3) { + wVar.m(16); + int g = wVar.g(2); + if (g == 0) { + i15 = 0; + } else if (g == 1) { + i15 = 1; + } else if (g == 2) { + i15 = 2; + } + wVar.m(3); + i3 = (wVar.g(11) + 1) * 2; + int g2 = wVar.g(2); + if (g2 == 3) { + i5 = m.c[wVar.g(2)]; + i7 = 6; + i6 = 3; + } else { + int g3 = wVar.g(2); + i6 = g3; + i7 = m.a[g3]; + i5 = m.f1109b[g2]; + } + i2 = i7 * 256; + int g4 = wVar.g(3); + boolean f = wVar.f(); + i = m.d[g4] + (f ? 1 : 0); + wVar.m(10); + if (wVar.f()) { + wVar.m(8); + } + if (g4 == 0) { + wVar.m(5); + if (wVar.f()) { + wVar.m(8); + } + } + if (i15 == 1 && wVar.f()) { + wVar.m(16); + } + if (wVar.f()) { + if (g4 > 2) { + wVar.m(2); + } + if ((g4 & 1) == 0 || g4 <= 2) { + i10 = 6; + } else { + i10 = 6; + wVar.m(6); + } + if ((g4 & 4) != 0) { + wVar.m(i10); + } + if (f && wVar.f()) { + wVar.m(5); + } + if (i15 == 0) { + if (wVar.f()) { + i11 = 6; + wVar.m(6); + } else { + i11 = 6; + } + if (g4 == 0 && wVar.f()) { + wVar.m(i11); + } + if (wVar.f()) { + wVar.m(i11); + } + int g5 = wVar.g(2); + if (g5 == 1) { + wVar.m(5); + } else if (g5 == 2) { + wVar.m(12); + } else if (g5 == 3) { + int g6 = wVar.g(5); + if (wVar.f()) { + wVar.m(5); + if (wVar.f()) { + wVar.m(4); + } + if (wVar.f()) { + wVar.m(4); + } + if (wVar.f()) { + wVar.m(4); + } + if (wVar.f()) { + wVar.m(4); + } + if (wVar.f()) { + wVar.m(4); + } + if (wVar.f()) { + wVar.m(4); + } + if (wVar.f()) { + wVar.m(4); + } + if (wVar.f()) { + if (wVar.f()) { + wVar.m(4); + } + if (wVar.f()) { + wVar.m(4); + } + } + } + if (wVar.f()) { + wVar.m(5); + if (wVar.f()) { + wVar.m(7); + if (wVar.f()) { + wVar.m(8); + i12 = 2; + wVar.m((g6 + 2) * 8); + wVar.c(); + if (g4 < i12) { + if (wVar.f()) { + wVar.m(14); + } + if (g4 == 0 && wVar.f()) { + wVar.m(14); + } + } + if (wVar.f()) { + if (i6 == 0) { + wVar.m(5); + } else { + for (int i16 = 0; i16 < i7; i16++) { + if (wVar.f()) { + wVar.m(5); + } + } + } + } + } + } + } + i12 = 2; + wVar.m((g6 + 2) * 8); + wVar.c(); + if (g4 < i12) { + } + if (wVar.f()) { + } + } + i12 = 2; + if (g4 < i12) { + } + if (wVar.f()) { + } + } + } + if (wVar.f()) { + wVar.m(5); + if (g4 == 2) { + wVar.m(4); + } + if (g4 >= 6) { + wVar.m(2); + } + if (wVar.f()) { + i9 = 8; + wVar.m(8); + } else { + i9 = 8; + } + if (g4 == 0 && wVar.f()) { + wVar.m(i9); + } + if (g2 < 3) { + wVar.l(); + } + } + if (i15 == 0 && i6 != 3) { + wVar.l(); + } + if (i15 != 2 || (i6 != 3 && !wVar.f())) { + i8 = 6; + } else { + i8 = 6; + wVar.m(6); + } + str = (wVar.f() && wVar.g(i8) == 1 && wVar.g(8) == 1) ? "audio/eac3-joc" : "audio/eac3"; + i15 = i5; + } else { + wVar.m(32); + int g7 = wVar.g(2); + String str2 = g7 == 3 ? null : "audio/ac3"; + int a = m.a(g7, wVar.g(6)); + wVar.m(8); + int g8 = wVar.g(3); + if ((g8 & 1) == 0 || g8 == 1) { + i4 = 2; + } else { + i4 = 2; + wVar.m(2); + } + if ((g8 & 4) != 0) { + wVar.m(i4); + } + if (g8 == i4) { + wVar.m(i4); + } + int[] iArr = m.f1109b; + if (g7 < iArr.length) { + i15 = iArr[g7]; + } + i = m.d[g8] + (wVar.f() ? 1 : 0); + i2 = 1536; + str = str2; + i3 = a; + } + j1 j1Var = this.j; + if (j1Var == null || i != j1Var.J || i15 != j1Var.K || !e0.a(str, j1Var.w)) { + j1.b bVar = new j1.b(); + bVar.a = this.d; + bVar.k = str; + bVar.f1009x = i; + bVar.f1010y = i15; + bVar.c = this.c; + j1 a2 = bVar.a(); + this.j = a2; + this.e.e(a2); + } + this.k = i3; + this.i = (((long) i2) * 1000000) / ((long) this.j.K); + this.f1235b.E(0); + this.e.c(this.f1235b, 128); + this.f = 2; + } + } else if (i13 == 2) { + int min2 = Math.min(xVar.a(), this.k - this.g); + this.e.c(xVar, min2); + int i17 = this.g + min2; + this.g = i17; + int i18 = this.k; + if (i17 == i18) { + long j = this.l; + if (j != -9223372036854775807L) { + this.e.d(j, 1, i18, 0, null); + this.l += this.i; + } + this.f = 0; + } + } + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.f = 0; + this.g = 0; + this.h = false; + this.l = -9223372036854775807L; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.d = dVar.b(); + this.e = jVar.p(dVar.c(), 1); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.l = j; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/g0.java b/app/src/main/java/b/i/a/c/x2/k0/g0.java new file mode 100644 index 0000000000..093422eacc --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/g0.java @@ -0,0 +1,31 @@ +package b.i.a.c.x2.k0; + +import b.i.a.c.f3.d0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +/* compiled from: TsDurationReader */ +public final class g0 { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final d0 f1236b = new d0(0); + public final x c = new x(); + public boolean d; + public boolean e; + public boolean f; + public long g = -9223372036854775807L; + public long h = -9223372036854775807L; + public long i = -9223372036854775807L; + + public g0(int i) { + this.a = i; + } + + public final int a(i iVar) { + this.c.B(e0.f); + this.d = true; + iVar.k(); + return 0; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/h.java b/app/src/main/java/b/i/a/c/x2/k0/h.java new file mode 100644 index 0000000000..e5a0fc2a8f --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/h.java @@ -0,0 +1,121 @@ +package b.i.a.c.x2.k0; + +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import java.io.IOException; +/* compiled from: Ac4Extractor */ +public final class h implements b.i.a.c.x2.h { + public final i a = new i(null); + + /* renamed from: b reason: collision with root package name */ + public final x f1237b = new x(16384); + public boolean c; + + static { + b bVar = b.a; + } + + /* JADX WARNING: Code restructure failed: missing block: B:10:0x0045, code lost: + return false; + */ + /* JADX WARNING: Code restructure failed: missing block: B:8:0x003a, code lost: + r15.k(); + r4 = r4 + 1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:9:0x0043, code lost: + if ((r4 - r3) < 8192) goto L_0x0046; + */ + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + int i; + x xVar = new x(10); + int i2 = 0; + while (true) { + iVar.o(xVar.a, 0, 10); + xVar.E(0); + if (xVar.v() != 4801587) { + break; + } + xVar.F(3); + int s2 = xVar.s(); + i2 += s2 + 10; + iVar.g(s2); + } + iVar.k(); + iVar.g(i2); + int i3 = i2; + while (true) { + int i4 = 0; + while (true) { + int i5 = 7; + iVar.o(xVar.a, 0, 7); + xVar.E(0); + int y2 = xVar.y(); + if (y2 != 44096 && y2 != 44097) { + break; + } + i4++; + if (i4 >= 4) { + return true; + } + byte[] bArr = xVar.a; + if (bArr.length < 7) { + i = -1; + } else { + int i6 = ((bArr[2] & 255) << 8) | (bArr[3] & 255); + if (i6 == 65535) { + i6 = ((bArr[4] & 255) << 16) | ((bArr[5] & 255) << 8) | (bArr[6] & 255); + } else { + i5 = 4; + } + if (y2 == 44097) { + i5 += 2; + } + i = i6 + i5; + } + if (i == -1) { + return false; + } + iVar.g(i - 7); + } + iVar.g(i3); + } + } + + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + int read = iVar.read(this.f1237b.a, 0, 16384); + if (read == -1) { + return -1; + } + this.f1237b.E(0); + this.f1237b.D(read); + if (!this.c) { + this.a.f(0, 4); + this.c = true; + } + this.a.b(this.f1237b); + return 0; + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.a.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1)); + jVar.j(); + jVar.a(new t.b(-9223372036854775807L, 0)); + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + this.c = false; + this.a.c(); + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/h0.java b/app/src/main/java/b/i/a/c/x2/k0/h0.java new file mode 100644 index 0000000000..acb7689683 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/h0.java @@ -0,0 +1,760 @@ +package b.i.a.c.x2.k0; + +import android.util.Log; +import android.util.SparseArray; +import android.util.SparseBooleanArray; +import android.util.SparseIntArray; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.d0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import com.google.android.exoplayer2.ParserException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +/* compiled from: TsExtractor */ +public final class h0 implements h { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1238b; + public final List c; + public final x d; + public final SparseIntArray e; + public final i0.c f; + public final SparseArray g; + public final SparseBooleanArray h; + public final SparseBooleanArray i; + public final g0 j; + public f0 k; + public j l; + public int m; + public boolean n; + public boolean o; + public boolean p; + @Nullable + public i0 q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public int f1239s; + + /* compiled from: TsExtractor */ + public class a implements c0 { + public final w a = new w(new byte[4]); + + public a() { + } + + @Override // b.i.a.c.x2.k0.c0 + public void a(d0 d0Var, j jVar, i0.d dVar) { + } + + @Override // b.i.a.c.x2.k0.c0 + public void b(x xVar) { + if (xVar.t() == 0 && (xVar.t() & 128) != 0) { + xVar.F(6); + int a = xVar.a() / 4; + for (int i = 0; i < a; i++) { + xVar.d(this.a, 4); + int g = this.a.g(16); + this.a.m(3); + if (g == 0) { + this.a.m(13); + } else { + int g2 = this.a.g(13); + if (h0.this.g.get(g2) == null) { + h0 h0Var = h0.this; + h0Var.g.put(g2, new d0(new b(g2))); + h0.this.m++; + } + } + } + h0 h0Var2 = h0.this; + if (h0Var2.a != 2) { + h0Var2.g.remove(0); + } + } + } + } + + /* compiled from: TsExtractor */ + public class b implements c0 { + public final w a = new w(new byte[5]); + + /* renamed from: b reason: collision with root package name */ + public final SparseArray f1241b = new SparseArray<>(); + public final SparseIntArray c = new SparseIntArray(); + public final int d; + + public b(int i) { + this.d = i; + } + + @Override // b.i.a.c.x2.k0.c0 + public void a(d0 d0Var, j jVar, i0.d dVar) { + } + + /* JADX WARNING: Code restructure failed: missing block: B:48:0x013f, code lost: + if (r24.t() == r13) goto L_0x0141; + */ + /* JADX WARNING: Removed duplicated region for block: B:89:0x0224 */ + /* JADX WARNING: Removed duplicated region for block: B:91:0x0231 */ + @Override // b.i.a.c.x2.k0.c0 + public void b(x xVar) { + d0 d0Var; + int i; + d0 d0Var2; + i0 i0Var; + int i2; + int i3; + int i4; + d0 d0Var3; + if (xVar.t() == 2) { + h0 h0Var = h0.this; + int i5 = h0Var.a; + if (i5 == 1 || i5 == 2 || h0Var.m == 1) { + d0Var = h0Var.c.get(0); + } else { + d0Var = new d0(h0Var.c.get(0).c()); + h0.this.c.add(d0Var); + } + if ((xVar.t() & 128) != 0) { + xVar.F(1); + int y2 = xVar.y(); + int i6 = 3; + xVar.F(3); + xVar.d(this.a, 2); + this.a.m(3); + int i7 = 13; + h0.this.f1239s = this.a.g(13); + xVar.d(this.a, 2); + int i8 = 4; + this.a.m(4); + int i9 = 12; + xVar.F(this.a.g(12)); + h0 h0Var2 = h0.this; + int i10 = 21; + if (h0Var2.a == 2 && h0Var2.q == null) { + i0.b bVar = new i0.b(21, null, null, e0.f); + h0 h0Var3 = h0.this; + h0Var3.q = h0Var3.f.a(21, bVar); + h0 h0Var4 = h0.this; + i0 i0Var2 = h0Var4.q; + if (i0Var2 != null) { + i0Var2.a(d0Var, h0Var4.l, new i0.d(y2, 21, 8192)); + } + } + this.f1241b.clear(); + this.c.clear(); + int a = xVar.a(); + while (a > 0) { + int i11 = 5; + xVar.d(this.a, 5); + int g = this.a.g(8); + this.a.m(i6); + int g2 = this.a.g(i7); + this.a.m(i8); + int g3 = this.a.g(i9); + int i12 = xVar.f970b; + int i13 = g3 + i12; + int i14 = -1; + String str = null; + ArrayList arrayList = null; + while (xVar.f970b < i13) { + int t = xVar.t(); + int t2 = xVar.f970b + xVar.t(); + if (t2 > i13) { + break; + } + if (t == i11) { + long u = xVar.u(); + if (u != 1094921523) { + if (u != 1161904947) { + if (u != 1094921524) { + if (u == 1212503619) { + i14 = 36; + } + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + xVar.F(t2 - xVar.f970b); + d0Var = d0Var3; + y2 = i4; + g2 = i3; + i11 = 5; + i10 = 21; + } + i14 = 172; + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + xVar.F(t2 - xVar.f970b); + d0Var = d0Var3; + y2 = i4; + g2 = i3; + i11 = 5; + i10 = 21; + } + i14 = 135; + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + xVar.F(t2 - xVar.f970b); + d0Var = d0Var3; + y2 = i4; + g2 = i3; + i11 = 5; + i10 = 21; + } + } else if (t != 106) { + if (t != 122) { + if (t != 127) { + if (t == 123) { + i14 = 138; + } else if (t == 10) { + str = xVar.q(3).trim(); + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + xVar.F(t2 - xVar.f970b); + d0Var = d0Var3; + y2 = i4; + g2 = i3; + i11 = 5; + i10 = 21; + } else { + int i15 = 3; + if (t == 89) { + ArrayList arrayList2 = new ArrayList(); + while (xVar.f970b < t2) { + String trim = xVar.q(i15).trim(); + int t3 = xVar.t(); + byte[] bArr = new byte[4]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, 4); + xVar.f970b += 4; + arrayList2.add(new i0.a(trim, t3, bArr)); + d0Var = d0Var; + y2 = y2; + g2 = g2; + i15 = 3; + } + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + arrayList = arrayList2; + i14 = 89; + } else { + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + if (t == 111) { + i14 = 257; + } + } + xVar.F(t2 - xVar.f970b); + d0Var = d0Var3; + y2 = i4; + g2 = i3; + i11 = 5; + i10 = 21; + } + } + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + xVar.F(t2 - xVar.f970b); + d0Var = d0Var3; + y2 = i4; + g2 = i3; + i11 = 5; + i10 = 21; + } + i14 = 135; + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + xVar.F(t2 - xVar.f970b); + d0Var = d0Var3; + y2 = i4; + g2 = i3; + i11 = 5; + i10 = 21; + } + i14 = 129; + i4 = y2; + d0Var3 = d0Var; + i3 = g2; + xVar.F(t2 - xVar.f970b); + d0Var = d0Var3; + y2 = i4; + g2 = i3; + i11 = 5; + i10 = 21; + } + xVar.E(i13); + i0.b bVar2 = new i0.b(i14, str, arrayList, Arrays.copyOfRange(xVar.a, i12, i13)); + if (g == 6 || g == 5) { + g = i14; + } + a -= g3 + 5; + h0 h0Var5 = h0.this; + int i16 = h0Var5.a == 2 ? g : g2; + if (!h0Var5.h.get(i16)) { + h0 h0Var6 = h0.this; + if (h0Var6.a == 2) { + if (g == 21) { + i0Var = h0Var6.q; + if (h0.this.a != 2) { + i2 = g2; + if (i2 >= this.c.get(i16, 8192)) { + } + } else { + i2 = g2; + } + this.c.put(i16, i2); + this.f1241b.put(i16, i0Var); + } + } + i0Var = h0Var6.f.a(g, bVar2); + if (h0.this.a != 2) { + } + this.c.put(i16, i2); + this.f1241b.put(i16, i0Var); + } + d0Var = d0Var; + y2 = y2; + i6 = 3; + i8 = 4; + i7 = 13; + i9 = 12; + i10 = 21; + } + int i17 = y2; + d0 d0Var4 = d0Var; + int size = this.c.size(); + int i18 = 0; + while (i18 < size) { + int keyAt = this.c.keyAt(i18); + int valueAt = this.c.valueAt(i18); + h0.this.h.put(keyAt, true); + h0.this.i.put(valueAt, true); + i0 valueAt2 = this.f1241b.valueAt(i18); + if (valueAt2 != null) { + h0 h0Var7 = h0.this; + if (valueAt2 != h0Var7.q) { + j jVar = h0Var7.l; + i = i17; + i0.d dVar = new i0.d(i, keyAt, 8192); + d0Var2 = d0Var4; + valueAt2.a(d0Var2, jVar, dVar); + } else { + d0Var2 = d0Var4; + i = i17; + } + h0.this.g.put(valueAt, valueAt2); + } else { + d0Var2 = d0Var4; + i = i17; + } + i18++; + d0Var4 = d0Var2; + i17 = i; + } + h0 h0Var8 = h0.this; + if (h0Var8.a != 2) { + h0Var8.g.remove(this.d); + h0 h0Var9 = h0.this; + int i19 = h0Var9.a == 1 ? 0 : h0Var9.m - 1; + h0Var9.m = i19; + if (i19 == 0) { + h0Var9.l.j(); + h0.this.n = true; + } + } else if (!h0Var8.n) { + h0Var8.l.j(); + h0 h0Var10 = h0.this; + h0Var10.m = 0; + h0Var10.n = true; + } + } + } + } + } + + static { + e eVar = e.a; + } + + public h0(int i, int i2, int i3) { + d0 d0Var = new d0(0); + l lVar = new l(i2); + this.f = lVar; + this.f1238b = i3; + this.a = i; + if (i == 1 || i == 2) { + this.c = Collections.singletonList(d0Var); + } else { + ArrayList arrayList = new ArrayList(); + this.c = arrayList; + arrayList.add(d0Var); + } + this.d = new x(new byte[9400], 0); + SparseBooleanArray sparseBooleanArray = new SparseBooleanArray(); + this.h = sparseBooleanArray; + this.i = new SparseBooleanArray(); + SparseArray sparseArray = new SparseArray<>(); + this.g = sparseArray; + this.e = new SparseIntArray(); + this.j = new g0(i3); + this.l = j.d; + this.f1239s = -1; + sparseBooleanArray.clear(); + sparseArray.clear(); + SparseArray b2 = lVar.b(); + int size = b2.size(); + for (int i4 = 0; i4 < size; i4++) { + this.g.put(b2.keyAt(i4), b2.valueAt(i4)); + } + this.g.put(0, new d0(new a())); + this.q = null; + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + boolean z2; + byte[] bArr = this.d.a; + iVar.o(bArr, 0, 940); + for (int i = 0; i < 188; i++) { + int i2 = 0; + while (true) { + if (i2 >= 5) { + z2 = true; + break; + } else if (bArr[(i2 * 188) + i] != 71) { + z2 = false; + break; + } else { + i2++; + } + } + if (z2) { + iVar.l(i); + return true; + } + } + return false; + } + + /* JADX DEBUG: Multi-variable search result rejected for r7v3, resolved type: android.util.SparseBooleanArray */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 2 */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + ?? r1; + ?? r0; + boolean z2; + int i; + boolean z3; + boolean z4; + long b2 = iVar.b(); + int i2 = 1; + if (this.n) { + long j = -9223372036854775807L; + if ((b2 == -1 || this.a == 2) ? false : true) { + g0 g0Var = this.j; + if (!g0Var.d) { + int i3 = this.f1239s; + if (i3 <= 0) { + g0Var.a(iVar); + return 0; + } + if (!g0Var.f) { + long b3 = iVar.b(); + int min = (int) Math.min((long) g0Var.a, b3); + long j2 = b3 - ((long) min); + if (iVar.getPosition() != j2) { + sVar.a = j2; + return i2; + } + g0Var.c.A(min); + iVar.k(); + iVar.o(g0Var.c.a, 0, min); + x xVar = g0Var.c; + int i4 = xVar.f970b; + int i5 = xVar.c; + int i6 = i5 - 188; + while (true) { + if (i6 < i4) { + break; + } + byte[] bArr = xVar.a; + int i7 = -4; + int i8 = 0; + while (true) { + if (i7 > 4) { + z4 = false; + break; + } + int i9 = (i7 * 188) + i6; + if (i9 < i4 || i9 >= i5 || bArr[i9] != 71) { + i8 = 0; + } else { + i8++; + if (i8 == 5) { + z4 = true; + break; + } + } + i7++; + } + if (z4) { + long I1 = d.I1(xVar, i6, i3); + if (I1 != -9223372036854775807L) { + j = I1; + break; + } + } + i6--; + } + g0Var.h = j; + g0Var.f = true; + } else if (g0Var.h == -9223372036854775807L) { + g0Var.a(iVar); + return 0; + } else if (!g0Var.e) { + int min2 = (int) Math.min((long) g0Var.a, iVar.b()); + long j3 = (long) 0; + if (iVar.getPosition() != j3) { + sVar.a = j3; + return i2; + } + g0Var.c.A(min2); + iVar.k(); + iVar.o(g0Var.c.a, 0, min2); + x xVar2 = g0Var.c; + int i10 = xVar2.f970b; + int i11 = xVar2.c; + while (true) { + if (i10 >= i11) { + break; + } + if (xVar2.a[i10] == 71) { + long I12 = d.I1(xVar2, i10, i3); + if (I12 != -9223372036854775807L) { + j = I12; + break; + } + } + i10++; + } + g0Var.g = j; + g0Var.e = true; + } else { + long j4 = g0Var.g; + if (j4 == -9223372036854775807L) { + g0Var.a(iVar); + return 0; + } + long b4 = g0Var.f1236b.b(g0Var.h) - g0Var.f1236b.b(j4); + g0Var.i = b4; + if (b4 < 0) { + Log.w("TsDurationReader", b.d.b.a.a.h(65, "Invalid duration: ", b4, ". Using TIME_UNSET instead.")); + g0Var.i = -9223372036854775807L; + } + g0Var.a(iVar); + return 0; + } + i2 = 0; + return i2; + } + } + if (!this.o) { + this.o = true; + g0 g0Var2 = this.j; + long j5 = g0Var2.i; + if (j5 != -9223372036854775807L) { + f0 f0Var = new f0(g0Var2.f1236b, j5, b2, this.f1239s, this.f1238b); + this.k = f0Var; + this.l.a(f0Var.a); + } else { + this.l.a(new t.b(j5, 0)); + } + } + if (this.p) { + z3 = false; + this.p = false; + g(0, 0); + if (iVar.getPosition() != 0) { + sVar.a = 0; + return 1; + } + } else { + z3 = false; + } + r1 = 1; + r1 = 1; + f0 f0Var2 = this.k; + r0 = z3; + if (f0Var2 != null) { + r0 = z3; + if (f0Var2.b()) { + return this.k.a(iVar, sVar); + } + } + } else { + r0 = 0; + r1 = 1; + } + x xVar3 = this.d; + byte[] bArr2 = xVar3.a; + if (9400 - xVar3.f970b < 188) { + int a2 = xVar3.a(); + if (a2 > 0) { + System.arraycopy(bArr2, this.d.f970b, bArr2, r0, a2); + } + this.d.C(bArr2, a2); + } + while (true) { + if (this.d.a() >= 188) { + z2 = true; + break; + } + int i12 = this.d.c; + int read = iVar.read(bArr2, i12, 9400 - i12); + if (read == -1) { + z2 = false; + break; + } + this.d.D(i12 + read); + } + if (!z2) { + return -1; + } + x xVar4 = this.d; + int i13 = xVar4.f970b; + int i14 = xVar4.c; + byte[] bArr3 = xVar4.a; + int i15 = i13; + while (i15 < i14 && bArr3[i15] != 71) { + i15++; + } + this.d.E(i15); + int i16 = i15 + 188; + i0 i0Var = null; + if (i16 > i14) { + int i17 = (i15 - i13) + this.r; + this.r = i17; + i = 2; + if (this.a == 2 && i17 > 376) { + throw ParserException.a("Cannot find sync byte. Most likely not a Transport Stream.", null); + } + } else { + i = 2; + this.r = r0; + } + x xVar5 = this.d; + int i18 = xVar5.c; + if (i16 > i18) { + return r0; + } + int f = xVar5.f(); + if ((8388608 & f) != 0) { + this.d.E(i16); + return r0; + } + int i19 = ((4194304 & f) != 0 ? 1 : 0) | 0; + int i20 = (2096896 & f) >> 8; + boolean z5 = (f & 32) != 0; + if ((f & 16) != 0) { + i0Var = this.g.get(i20); + } + if (i0Var == null) { + this.d.E(i16); + return r0; + } + if (this.a != i) { + int i21 = f & 15; + int i22 = this.e.get(i20, i21 - 1); + this.e.put(i20, i21); + if (i22 == i21) { + this.d.E(i16); + return r0; + } else if (i21 != ((i22 + r1) & 15)) { + i0Var.c(); + } + } + if (z5) { + int t = this.d.t(); + i19 |= (this.d.t() & 64) != 0 ? 2 : 0; + x xVar6 = this.d; + int i23 = r1 == true ? 1 : 0; + int i24 = r1 == true ? 1 : 0; + int i25 = r1 == true ? 1 : 0; + int i26 = r1 == true ? 1 : 0; + xVar6.F(t - i23); + } + boolean z6 = this.n; + if (this.a == i || z6 || !this.i.get(i20, r0)) { + this.d.D(i16); + i0Var.b(this.d, i19); + this.d.D(i18); + } + if (this.a != i && !z6 && this.n && b2 != -1) { + this.p = r1; + } + this.d.E(i16); + int i27 = r0 == true ? 1 : 0; + int i28 = r0 == true ? 1 : 0; + int i29 = r0 == true ? 1 : 0; + int i30 = r0 == true ? 1 : 0; + int i31 = r0 == true ? 1 : 0; + return i27; + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.l = jVar; + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + f0 f0Var; + d.D(this.a != 2); + int size = this.c.size(); + for (int i = 0; i < size; i++) { + d0 d0Var = this.c.get(i); + boolean z2 = d0Var.d() == -9223372036854775807L; + if (!z2) { + long c = d0Var.c(); + z2 = (c == -9223372036854775807L || c == 0 || c == j2) ? false : true; + } + if (z2) { + d0Var.e(j2); + } + } + if (!(j2 == 0 || (f0Var = this.k) == null)) { + f0Var.e(j2); + } + this.d.A(0); + this.e.clear(); + for (int i2 = 0; i2 < this.g.size(); i2++) { + this.g.valueAt(i2).c(); + } + this.r = 0; + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/i.java b/app/src/main/java/b/i/a/c/x2/k0/i.java new file mode 100644 index 0000000000..83ef8722b6 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/i.java @@ -0,0 +1,149 @@ +package b.i.a.c.x2.k0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.n; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +/* compiled from: Ac4Reader */ +public final class i implements o { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final x f1242b; + @Nullable + public final String c; + public String d; + public b.i.a.c.x2.w e; + public int f = 0; + public int g = 0; + public boolean h = false; + public boolean i = false; + public long j; + public j1 k; + public int l; + public long m = -9223372036854775807L; + + public i(@Nullable String str) { + w wVar = new w(new byte[16]); + this.a = wVar; + this.f1242b = new x(wVar.a); + this.c = str; + } + + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + int i; + boolean z2; + int t; + d.H(this.e); + while (xVar.a() > 0) { + int i2 = this.f; + boolean z3 = true; + if (i2 == 0) { + while (true) { + i = 65; + if (xVar.a() <= 0) { + z2 = false; + break; + } else if (!this.h) { + this.h = xVar.t() == 172; + } else { + t = xVar.t(); + this.h = t == 172; + if (t == 64 || t == 65) { + break; + } + } + } + this.i = t == 65; + z2 = true; + if (z2) { + this.f = 1; + byte[] bArr = this.f1242b.a; + bArr[0] = -84; + if (!this.i) { + i = 64; + } + bArr[1] = (byte) i; + this.g = 2; + } + } else if (i2 == 1) { + byte[] bArr2 = this.f1242b.a; + int min = Math.min(xVar.a(), 16 - this.g); + System.arraycopy(xVar.a, xVar.f970b, bArr2, this.g, min); + xVar.f970b += min; + int i3 = this.g + min; + this.g = i3; + if (i3 != 16) { + z3 = false; + } + if (z3) { + this.a.k(0); + n.b b2 = n.b(this.a); + j1 j1Var = this.k; + if (j1Var == null || 2 != j1Var.J || b2.a != j1Var.K || !"audio/ac4".equals(j1Var.w)) { + j1.b bVar = new j1.b(); + bVar.a = this.d; + bVar.k = "audio/ac4"; + bVar.f1009x = 2; + bVar.f1010y = b2.a; + bVar.c = this.c; + j1 a = bVar.a(); + this.k = a; + this.e.e(a); + } + this.l = b2.f1110b; + this.j = (((long) b2.c) * 1000000) / ((long) this.k.K); + this.f1242b.E(0); + this.e.c(this.f1242b, 16); + this.f = 2; + } + } else if (i2 == 2) { + int min2 = Math.min(xVar.a(), this.l - this.g); + this.e.c(xVar, min2); + int i4 = this.g + min2; + this.g = i4; + int i5 = this.l; + if (i4 == i5) { + long j = this.m; + if (j != -9223372036854775807L) { + this.e.d(j, 1, i5, 0, null); + this.m += this.j; + } + this.f = 0; + } + } + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.f = 0; + this.g = 0; + this.h = false; + this.i = false; + this.m = -9223372036854775807L; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.d = dVar.b(); + this.e = jVar.p(dVar.c(), 1); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.m = j; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/i0.java b/app/src/main/java/b/i/a/c/x2/k0/i0.java new file mode 100644 index 0000000000..d7fdc1fec3 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/i0.java @@ -0,0 +1,107 @@ +package b.i.a.c.x2.k0; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.d0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.j; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import com.google.android.exoplayer2.ParserException; +import java.util.Collections; +import java.util.List; +/* compiled from: TsPayloadReader */ +public interface i0 { + + /* compiled from: TsPayloadReader */ + public static final class a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f1243b; + + public a(String str, int i, byte[] bArr) { + this.a = str; + this.f1243b = bArr; + } + } + + /* compiled from: TsPayloadReader */ + public static final class b { + public final int a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final String f1244b; + public final List c; + public final byte[] d; + + public b(int i, @Nullable String str, @Nullable List list, byte[] bArr) { + this.a = i; + this.f1244b = str; + this.c = list == null ? Collections.emptyList() : Collections.unmodifiableList(list); + this.d = bArr; + } + } + + /* compiled from: TsPayloadReader */ + public interface c { + @Nullable + i0 a(int i, b bVar); + } + + /* compiled from: TsPayloadReader */ + public static final class d { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f1245b; + public final int c; + public int d; + public String e; + + public d(int i, int i2, int i3) { + String str; + if (i != Integer.MIN_VALUE) { + StringBuilder sb = new StringBuilder(12); + sb.append(i); + sb.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN); + str = sb.toString(); + } else { + str = ""; + } + this.a = str; + this.f1245b = i2; + this.c = i3; + this.d = Integer.MIN_VALUE; + this.e = ""; + } + + public void a() { + int i = this.d; + int i2 = i == Integer.MIN_VALUE ? this.f1245b : i + this.c; + this.d = i2; + String str = this.a; + this.e = b.d.b.a.a.f(b.d.b.a.a.b(str, 11), str, i2); + } + + public String b() { + if (this.d != Integer.MIN_VALUE) { + return this.e; + } + throw new IllegalStateException("generateNewId() must be called before retrieving ids."); + } + + public int c() { + int i = this.d; + if (i != Integer.MIN_VALUE) { + return i; + } + throw new IllegalStateException("generateNewId() must be called before retrieving ids."); + } + } + + void a(d0 d0Var, j jVar, d dVar); + + void b(x xVar, int i) throws ParserException; + + void c(); +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/j.java b/app/src/main/java/b/i/a/c/x2/k0/j.java new file mode 100644 index 0000000000..a4a184e3fc --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/j.java @@ -0,0 +1,204 @@ +package b.i.a.c.x2.k0; + +import b.c.a.a0.d; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.s; +import b.i.a.c.x2.t; +import com.google.android.exoplayer2.ParserException; +import java.io.EOFException; +import java.io.IOException; +/* compiled from: AdtsExtractor */ +public final class j implements h { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final k f1246b; + public final x c; + public final x d; + public final w e; + public b.i.a.c.x2.j f; + public long g; + public long h; + public int i; + public boolean j; + public boolean k; + public boolean l; + + static { + c cVar = c.a; + } + + public j(int i) { + this.a = (i & 2) != 0 ? i | 1 : i; + this.f1246b = new k(true, null); + this.c = new x(2048); + this.i = -1; + this.h = -1; + x xVar = new x(10); + this.d = xVar; + this.e = new w(xVar.a); + } + + public final int a(i iVar) throws IOException { + int i = 0; + while (true) { + iVar.o(this.d.a, 0, 10); + this.d.E(0); + if (this.d.v() != 4801587) { + break; + } + this.d.F(3); + int s2 = this.d.s(); + i += s2 + 10; + iVar.g(s2); + } + iVar.k(); + iVar.g(i); + if (this.h == -1) { + this.h = (long) i; + } + return i; + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + int a = a(iVar); + int i = a; + int i2 = 0; + int i3 = 0; + do { + iVar.o(this.d.a, 0, 2); + this.d.E(0); + if (!k.g(this.d.y())) { + i++; + iVar.k(); + iVar.g(i); + } else { + i2++; + if (i2 >= 4 && i3 > 188) { + return true; + } + iVar.o(this.d.a, 0, 4); + this.e.k(14); + int g = this.e.g(13); + if (g <= 6) { + i++; + iVar.k(); + iVar.g(i); + } else { + iVar.g(g - 6); + i3 += g; + } + } + i2 = 0; + i3 = 0; + } while (i - a < 8192); + return false; + } + + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + d.H(this.f); + long b2 = iVar.b(); + int i = this.a; + if ((((i & 2) == 0 && ((i & 1) == 0 || b2 == -1)) ? false : true) && !this.j) { + this.i = -1; + iVar.k(); + if (iVar.getPosition() == 0) { + a(iVar); + } + long j = 0; + int i2 = 0; + while (true) { + try { + if (!iVar.e(this.d.a, 0, 2, true)) { + break; + } + this.d.E(0); + if (!k.g(this.d.y())) { + i2 = 0; + break; + } else if (!iVar.e(this.d.a, 0, 4, true)) { + break; + } else { + this.e.k(14); + int g = this.e.g(13); + if (g > 6) { + j += (long) g; + i2++; + if (i2 == 1000) { + break; + } else if (!iVar.m(g - 6, true)) { + break; + } + } else { + this.j = true; + throw ParserException.a("Malformed ADTS stream", null); + } + } + } catch (EOFException unused) { + } + } + iVar.k(); + if (i2 > 0) { + this.i = (int) (j / ((long) i2)); + } else { + this.i = -1; + } + this.j = true; + } + int read = iVar.read(this.c.a, 0, 2048); + boolean z2 = read == -1; + if (!this.l) { + int i3 = this.a; + boolean z3 = (i3 & 1) != 0 && this.i > 0; + if (!z3 || this.f1246b.r != -9223372036854775807L || z2) { + if (z3) { + long j2 = this.f1246b.r; + if (j2 != -9223372036854775807L) { + b.i.a.c.x2.j jVar = this.f; + boolean z4 = (2 & i3) != 0; + int i4 = this.i; + jVar.a(new b.i.a.c.x2.d(b2, this.h, (int) ((((long) (i4 * 8)) * 1000000) / j2), i4, z4)); + this.l = true; + } + } + this.f.a(new t.b(-9223372036854775807L, 0)); + this.l = true; + } + } + if (z2) { + return -1; + } + this.c.E(0); + this.c.D(read); + if (!this.k) { + this.f1246b.f(this.g, 4); + this.k = true; + } + this.f1246b.b(this.c); + return 0; + } + + @Override // b.i.a.c.x2.h + public void f(b.i.a.c.x2.j jVar) { + this.f = jVar; + this.f1246b.e(jVar, new i0.d(Integer.MIN_VALUE, 0, 1)); + jVar.j(); + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + this.k = false; + this.f1246b.c(); + this.g = j2; + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/j0.java b/app/src/main/java/b/i/a/c/x2/k0/j0.java new file mode 100644 index 0000000000..99ffe25ae1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/j0.java @@ -0,0 +1,53 @@ +package b.i.a.c.x2.k0; + +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +import java.util.List; +/* compiled from: UserDataReader */ +public final class j0 { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final w[] f1247b; + + public j0(List list) { + this.a = list; + this.f1247b = new w[list.size()]; + } + + public void a(long j, x xVar) { + if (xVar.a() >= 9) { + int f = xVar.f(); + int f2 = xVar.f(); + int t = xVar.t(); + if (f == 434 && f2 == 1195456820 && t == 3) { + d.K(j, xVar, this.f1247b); + } + } + } + + public void b(j jVar, i0.d dVar) { + for (int i = 0; i < this.f1247b.length; i++) { + dVar.a(); + w p = jVar.p(dVar.c(), 3); + j1 j1Var = this.a.get(i); + String str = j1Var.w; + boolean z2 = "application/cea-608".equals(str) || "application/cea-708".equals(str); + String valueOf = String.valueOf(str); + d.m(z2, valueOf.length() != 0 ? "Invalid closed caption mime type provided: ".concat(valueOf) : new String("Invalid closed caption mime type provided: ")); + j1.b bVar = new j1.b(); + bVar.a = dVar.b(); + bVar.k = str; + bVar.d = j1Var.o; + bVar.c = j1Var.n; + bVar.C = j1Var.O; + bVar.m = j1Var.f1005y; + p.e(bVar.a()); + this.f1247b[i] = p; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/k.java b/app/src/main/java/b/i/a/c/x2/k0/k.java new file mode 100644 index 0000000000..2c4403ef9e --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/k.java @@ -0,0 +1,324 @@ +package b.i.a.c.x2.k0; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.l; +import b.i.a.c.x2.g; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import com.google.android.exoplayer2.ParserException; +import java.util.Arrays; +import java.util.Collections; +import java.util.Objects; +/* compiled from: AdtsReader */ +public final class k implements o { + public static final byte[] a = {73, 68, 51}; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1248b; + public final w c = new w(new byte[7]); + public final x d = new x(Arrays.copyOf(a, 10)); + @Nullable + public final String e; + public String f; + public b.i.a.c.x2.w g; + public b.i.a.c.x2.w h; + public int i; + public int j; + public int k; + public boolean l; + public boolean m; + public int n; + public int o; + public int p; + public boolean q; + public long r; + + /* renamed from: s reason: collision with root package name */ + public int f1249s; + public long t; + public b.i.a.c.x2.w u; + public long v; + + public k(boolean z2, @Nullable String str) { + h(); + this.n = -1; + this.o = -1; + this.r = -9223372036854775807L; + this.t = -9223372036854775807L; + this.f1248b = z2; + this.e = str; + } + + public static boolean g(int i) { + return (i & 65526) == 65520; + } + + public final boolean a(x xVar, byte[] bArr, int i) { + int min = Math.min(xVar.a(), i - this.j); + System.arraycopy(xVar.a, xVar.f970b, bArr, this.j, min); + xVar.f970b += min; + int i2 = this.j + min; + this.j = i2; + return i2 == i; + } + + /* JADX WARNING: Removed duplicated region for block: B:144:0x0275 A[EDGE_INSN: B:144:0x0275->B:95:0x0275 ?: BREAK , SYNTHETIC] */ + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) throws ParserException { + int i; + int i2; + boolean z2; + Objects.requireNonNull(this.g); + int i3 = e0.a; + while (xVar.a() > 0) { + int i4 = this.i; + int i5 = 13; + int i6 = 2; + if (i4 == 0) { + byte[] bArr = xVar.a; + int i7 = xVar.f970b; + int i8 = xVar.c; + while (true) { + if (i7 >= i8) { + xVar.E(i7); + break; + } + i = i7 + 1; + i2 = bArr[i7] & 255; + if (this.k == 512 && g((((byte) i2) & 255) | 65280)) { + if (this.m) { + break; + } + int i9 = i - 2; + xVar.E(i9 + 1); + if (i(xVar, this.c.a, 1)) { + this.c.k(4); + int g = this.c.g(1); + int i10 = this.n; + if (i10 == -1 || g == i10) { + if (this.o != -1) { + if (i(xVar, this.c.a, 1)) { + this.c.k(i6); + if (this.c.g(4) == this.o) { + xVar.E(i9 + 2); + } + } + z2 = true; + if (z2) { + break; + } + } + if (i(xVar, this.c.a, 4)) { + this.c.k(14); + int g2 = this.c.g(i5); + if (g2 >= 7) { + byte[] bArr2 = xVar.a; + int i11 = xVar.c; + int i12 = i9 + g2; + if (i12 < i11) { + if (bArr2[i12] == -1) { + } + } + } + } + z2 = true; + if (z2) { + } + } + } + z2 = false; + if (z2) { + } + } + int i13 = this.k; + int i14 = i2 | i13; + if (i14 == 329) { + this.k = 768; + } else if (i14 == 511) { + this.k = 512; + } else if (i14 != 836) { + if (i14 == 1075) { + this.i = 2; + this.j = a.length; + this.f1249s = 0; + this.d.E(0); + xVar.E(i); + break; + } else if (i13 != 256) { + this.k = 256; + i7 = i - 1; + i5 = 13; + i6 = 2; + } + } else { + this.k = 1024; + } + i7 = i; + i5 = 13; + i6 = 2; + } + this.p = (i2 & 8) >> 3; + this.l = (i2 & 1) == 0; + if (!this.m) { + this.i = 1; + this.j = 0; + } else { + this.i = 3; + this.j = 0; + } + xVar.E(i); + } else if (i4 != 1) { + if (i4 != 2) { + if (i4 == 3) { + if (a(xVar, this.c.a, this.l ? 7 : 5)) { + this.c.k(0); + if (!this.q) { + int g3 = this.c.g(2) + 1; + if (g3 != 2) { + StringBuilder sb = new StringBuilder(61); + sb.append("Detected audio object type: "); + sb.append(g3); + sb.append(", but assuming AAC LC."); + Log.w("AdtsReader", sb.toString()); + g3 = 2; + } + this.c.m(5); + int g4 = this.c.g(3); + int i15 = this.o; + byte[] bArr3 = {(byte) (((g3 << 3) & 248) | ((i15 >> 1) & 7)), (byte) (((i15 << 7) & 128) | ((g4 << 3) & 120))}; + l.b b2 = l.b(new w(bArr3), false); + j1.b bVar = new j1.b(); + bVar.a = this.f; + bVar.k = "audio/mp4a-latm"; + bVar.h = b2.c; + bVar.f1009x = b2.f1108b; + bVar.f1010y = b2.a; + bVar.m = Collections.singletonList(bArr3); + bVar.c = this.e; + j1 a2 = bVar.a(); + this.r = 1024000000 / ((long) a2.K); + this.g.e(a2); + this.q = true; + } else { + this.c.m(10); + } + this.c.m(4); + int g5 = (this.c.g(13) - 2) - 5; + if (this.l) { + g5 -= 2; + } + b.i.a.c.x2.w wVar = this.g; + long j = this.r; + this.i = 4; + this.j = 0; + this.u = wVar; + this.v = j; + this.f1249s = g5; + } + } else if (i4 == 4) { + int min = Math.min(xVar.a(), this.f1249s - this.j); + this.u.c(xVar, min); + int i16 = this.j + min; + this.j = i16; + int i17 = this.f1249s; + if (i16 == i17) { + long j2 = this.t; + if (j2 != -9223372036854775807L) { + this.u.d(j2, 1, i17, 0, null); + this.t += this.v; + } + h(); + } + } else { + throw new IllegalStateException(); + } + } else if (a(xVar, this.d.a, 10)) { + this.h.c(this.d, 10); + this.d.E(6); + b.i.a.c.x2.w wVar2 = this.h; + this.i = 4; + this.j = 10; + this.u = wVar2; + this.v = 0; + this.f1249s = this.d.s() + 10; + } + } else if (xVar.a() != 0) { + w wVar3 = this.c; + wVar3.a[0] = xVar.a[xVar.f970b]; + wVar3.k(2); + int g6 = this.c.g(4); + int i18 = this.o; + if (i18 == -1 || g6 == i18) { + if (!this.m) { + this.m = true; + this.n = this.p; + this.o = g6; + } + this.i = 3; + this.j = 0; + } else { + this.m = false; + h(); + } + } + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.t = -9223372036854775807L; + this.m = false; + h(); + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.f = dVar.b(); + b.i.a.c.x2.w p = jVar.p(dVar.c(), 1); + this.g = p; + this.u = p; + if (this.f1248b) { + dVar.a(); + b.i.a.c.x2.w p2 = jVar.p(dVar.c(), 5); + this.h = p2; + j1.b bVar = new j1.b(); + bVar.a = dVar.b(); + bVar.k = "application/id3"; + p2.e(bVar.a()); + return; + } + this.h = new g(); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.t = j; + } + } + + public final void h() { + this.i = 0; + this.j = 0; + this.k = 256; + } + + public final boolean i(x xVar, byte[] bArr, int i) { + if (xVar.a() < i) { + return false; + } + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i); + xVar.f970b += i; + return true; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/l.java b/app/src/main/java/b/i/a/c/x2/k0/l.java new file mode 100644 index 0000000000..9971f637fe --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/l.java @@ -0,0 +1,176 @@ +package b.i.a.c.x2.k0; + +import android.util.SparseArray; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.j1; +import b.i.a.c.x2.k0.i0; +import b.i.b.a.c; +import b.i.b.b.a; +import b.i.b.b.h0; +import b.i.b.b.p; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +/* compiled from: DefaultTsPayloadReaderFactory */ +public final class l implements i0.c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final List f1250b; + + public l(int i) { + a aVar = p.k; + p pVar = h0.l; + this.a = i; + this.f1250b = pVar; + } + + @Override // b.i.a.c.x2.k0.i0.c + @Nullable + public i0 a(int i, i0.b bVar) { + if (i != 2) { + if (i == 3 || i == 4) { + return new y(new v(bVar.f1244b)); + } + if (i == 21) { + return new y(new t()); + } + if (i != 27) { + if (i == 36) { + return new y(new s(new e0(c(bVar)))); + } + if (i == 89) { + return new y(new n(bVar.c)); + } + if (i != 138) { + if (i == 172) { + return new y(new i(bVar.f1244b)); + } + if (i == 257) { + return new d0(new x("application/vnd.dvb.ait")); + } + if (i != 134) { + if (i != 135) { + switch (i) { + case 15: + if (d(2)) { + return null; + } + return new y(new k(false, bVar.f1244b)); + case 16: + return new y(new q(new j0(c(bVar)))); + case 17: + if (d(2)) { + return null; + } + return new y(new u(bVar.f1244b)); + default: + switch (i) { + case 128: + break; + case 129: + break; + case 130: + if (!d(64)) { + return null; + } + break; + default: + return null; + } + } + } + return new y(new g(bVar.f1244b)); + } else if (d(16)) { + return null; + } else { + return new d0(new x("application/x-scte35")); + } + } + return new y(new m(bVar.f1244b)); + } else if (d(4)) { + return null; + } else { + return new y(new r(new e0(c(bVar)), d(1), d(8))); + } + } + return new y(new p(new j0(c(bVar)))); + } + + public SparseArray b() { + return new SparseArray<>(); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:42:0x009b */ + /* JADX DEBUG: Multi-variable search result rejected for r1v1, resolved type: java.util.ArrayList */ + /* JADX DEBUG: Multi-variable search result rejected for r1v3, resolved type: java.util.ArrayList */ + /* JADX DEBUG: Multi-variable search result rejected for r1v4, resolved type: java.util.ArrayList */ + /* JADX DEBUG: Multi-variable search result rejected for r1v5, resolved type: java.util.ArrayList */ + /* JADX WARN: Multi-variable type inference failed */ + public final List c(i0.b bVar) { + String str; + int i; + if (d(32)) { + return this.f1250b; + } + byte[] bArr = bVar.d; + int length = bArr.length; + int i2 = 0; + ArrayList arrayList = this.f1250b; + while (length - i2 > 0) { + int i3 = i2 + 1; + int i4 = bArr[i2] & 255; + int i5 = i3 + 1; + int i6 = (bArr[i3] & 255) + i5; + boolean z2 = true; + if (i4 == 134) { + arrayList = new ArrayList(); + int i7 = i5 + 1; + int i8 = bArr[i5] & 255 & 31; + int i9 = 0; + while (i9 < i8) { + String str2 = new String(bArr, i7, 3, c.c); + int i10 = i7 + 3; + int i11 = i10 + 1; + int i12 = bArr[i10] & 255; + boolean z3 = (i12 & 128) != 0; + if (z3) { + i = i12 & 63; + str = "application/cea-708"; + } else { + str = "application/cea-608"; + i = 1; + } + int i13 = i11 + 1; + byte b2 = (byte) (bArr[i11] & 255); + int i14 = i13 + 1; + d.j(i14 >= 0 && i14 <= length); + List list = null; + if (z3) { + list = Collections.singletonList((b2 & 64) != 0 ? new byte[]{1} : new byte[]{0}); + } + j1.b bVar2 = new j1.b(); + bVar2.k = str; + bVar2.c = str2; + bVar2.C = i; + bVar2.m = list; + arrayList.add(bVar2.a()); + i9++; + i7 = i14; + } + } + if (i6 < 0 || i6 > length) { + z2 = false; + } + d.j(z2); + i2 = i6; + arrayList = arrayList; + } + return arrayList; + } + + public final boolean d(int i) { + return (i & this.a) != 0; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/m.java b/app/src/main/java/b/i/a/c/x2/k0/m.java new file mode 100644 index 0000000000..dc95397782 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/m.java @@ -0,0 +1,288 @@ +package b.i.a.c.x2.k0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +import java.util.Arrays; +/* compiled from: DtsReader */ +public final class m implements o { + public final x a = new x(new byte[18]); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final String f1251b; + public String c; + public w d; + public int e = 0; + public int f; + public int g; + public long h; + public j1 i; + public int j; + public long k = -9223372036854775807L; + + public m(@Nullable String str) { + this.f1251b = str; + } + + /* JADX WARNING: Removed duplicated region for block: B:68:0x0220 */ + /* JADX WARNING: Removed duplicated region for block: B:71:0x022e */ + /* JADX WARNING: Removed duplicated region for block: B:79:0x0256 */ + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + boolean z2; + int i; + byte b2; + int i2; + int i3; + byte b3; + byte b4; + int i4; + byte b5; + int i5; + byte b6; + int i6; + b.i.a.c.f3.w wVar; + int i7; + int i8; + boolean z3; + boolean z4; + d.H(this.d); + while (xVar.a() > 0) { + int i9 = this.e; + int i10 = 8; + int i11 = 2; + if (i9 == 0) { + while (true) { + if (xVar.a() <= 0) { + z3 = false; + break; + } + int i12 = this.g << 8; + this.g = i12; + int t = i12 | xVar.t(); + this.g = t; + if (t == 2147385345 || t == -25230976 || t == 536864768 || t == -14745368) { + z4 = true; + continue; + } else { + z4 = false; + continue; + } + if (z4) { + byte[] bArr = this.a.a; + bArr[0] = (byte) ((t >> 24) & 255); + bArr[1] = (byte) ((t >> 16) & 255); + bArr[2] = (byte) ((t >> 8) & 255); + bArr[3] = (byte) (t & 255); + this.f = 4; + this.g = 0; + z3 = true; + break; + } + } + if (z3) { + this.e = 1; + } + } else if (i9 == 1) { + byte[] bArr2 = this.a.a; + int min = Math.min(xVar.a(), 18 - this.f); + System.arraycopy(xVar.a, xVar.f970b, bArr2, this.f, min); + xVar.f970b += min; + int i13 = this.f + min; + this.f = i13; + if (i13 == 18) { + byte[] bArr3 = this.a.a; + if (this.i == null) { + String str = this.c; + String str2 = this.f1251b; + if (bArr3[0] == Byte.MAX_VALUE) { + wVar = new b.i.a.c.f3.w(bArr3); + } else { + byte[] copyOf = Arrays.copyOf(bArr3, bArr3.length); + if (copyOf[0] == -2 || copyOf[0] == -1) { + for (int i14 = 0; i14 < copyOf.length - 1; i14 += 2) { + byte b7 = copyOf[i14]; + int i15 = i14 + 1; + copyOf[i14] = copyOf[i15]; + copyOf[i15] = b7; + } + } + b.i.a.c.f3.w wVar2 = new b.i.a.c.f3.w(copyOf); + if (copyOf[0] == 31) { + b.i.a.c.f3.w wVar3 = new b.i.a.c.f3.w(copyOf); + while (wVar3.b() >= 16) { + wVar3.m(i11); + int g = wVar3.g(14) & 16383; + int min2 = Math.min(8 - wVar2.c, 14); + int i16 = wVar2.c; + int i17 = (8 - i16) - min2; + byte[] bArr4 = wVar2.a; + int i18 = wVar2.f969b; + bArr4[i18] = (byte) (((65280 >> i16) | ((1 << i17) - 1)) & bArr4[i18]); + int i19 = 14 - min2; + bArr4[i18] = (byte) (((g >>> i19) << i17) | bArr4[i18]); + int i20 = i18 + 1; + while (i19 > i10) { + i19 -= 8; + wVar2.a[i20] = (byte) (g >>> i19); + i20++; + i10 = 8; + } + int i21 = 8 - i19; + byte[] bArr5 = wVar2.a; + bArr5[i20] = (byte) (bArr5[i20] & ((1 << i21) - 1)); + bArr5[i20] = (byte) (((((1 << i19) - 1) & g) << i21) | bArr5[i20]); + wVar2.m(14); + wVar2.a(); + i10 = 8; + i11 = 2; + } + } + int length = copyOf.length; + wVar2.a = copyOf; + wVar2.f969b = 0; + wVar2.c = 0; + wVar2.d = length; + wVar = wVar2; + } + wVar.m(60); + int i22 = b.i.a.c.t2.x.a[wVar.g(6)]; + int i23 = b.i.a.c.t2.x.f1122b[wVar.g(4)]; + int g2 = wVar.g(5); + int[] iArr = b.i.a.c.t2.x.c; + if (g2 >= iArr.length) { + i8 = -1; + i7 = 2; + } else { + i7 = 2; + i8 = (iArr[g2] * 1000) / 2; + } + wVar.m(10); + int i24 = i22 + (wVar.g(i7) > 0 ? 1 : 0); + j1.b bVar = new j1.b(); + bVar.a = str; + bVar.k = "audio/vnd.dts"; + bVar.f = i8; + bVar.f1009x = i24; + bVar.f1010y = i23; + bVar.n = null; + bVar.c = str2; + j1 a = bVar.a(); + this.i = a; + this.d.e(a); + } + byte b8 = bArr3[0]; + if (b8 != -2) { + if (b8 == -1) { + i6 = ((3 & bArr3[7]) << 12) | ((bArr3[6] & 255) << 4); + b6 = bArr3[9]; + } else if (b8 != 31) { + i4 = 4; + i5 = ((3 & bArr3[5]) << 12) | ((bArr3[6] & 255) << 4); + b5 = bArr3[7]; + } else { + i6 = ((3 & bArr3[6]) << 12) | ((bArr3[7] & 255) << 4); + b6 = bArr3[8]; + } + i = (i6 | ((b6 & 60) >> 2)) + 1; + z2 = true; + if (z2) { + i = (i * 16) / 14; + } + this.j = i; + b2 = bArr3[0]; + if (b2 == -2) { + if (b2 == -1) { + b4 = bArr3[7]; + i2 = (bArr3[4] & 7) << 4; + } else if (b2 != 31) { + i2 = (bArr3[4] & 1) << 6; + b3 = bArr3[5]; + } else { + i2 = (7 & bArr3[5]) << 4; + b4 = bArr3[6]; + } + i3 = b4 & 60; + this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.K))); + this.a.E(0); + this.d.c(this.a, 18); + this.e = 2; + } else { + i2 = (bArr3[5] & 1) << 6; + b3 = bArr3[4]; + } + i3 = b3 & 252; + this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.K))); + this.a.E(0); + this.d.c(this.a, 18); + this.e = 2; + } else { + i4 = 4; + i5 = ((bArr3[4] & 3) << 12) | ((bArr3[7] & 255) << 4); + b5 = bArr3[6]; + } + i = (i5 | ((b5 & 240) >> i4)) + 1; + z2 = false; + if (z2) { + } + this.j = i; + b2 = bArr3[0]; + if (b2 == -2) { + } + i3 = b3 & 252; + this.h = (long) ((int) ((((long) ((((i3 >> 2) | i2) + 1) * 32)) * 1000000) / ((long) this.i.K))); + this.a.E(0); + this.d.c(this.a, 18); + this.e = 2; + } + } else if (i9 == 2) { + int min3 = Math.min(xVar.a(), this.j - this.f); + this.d.c(xVar, min3); + int i25 = this.f + min3; + this.f = i25; + int i26 = this.j; + if (i25 == i26) { + long j = this.k; + if (j != -9223372036854775807L) { + this.d.d(j, 1, i26, 0, null); + this.k += this.h; + } + this.e = 0; + } + } else { + throw new IllegalStateException(); + } + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.e = 0; + this.f = 0; + this.g = 0; + this.k = -9223372036854775807L; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.c = dVar.b(); + this.d = jVar.p(dVar.c(), 1); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.k = j; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/n.java b/app/src/main/java/b/i/a/c/x2/k0/n.java new file mode 100644 index 0000000000..4eb6c21a72 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/n.java @@ -0,0 +1,101 @@ +package b.i.a.c.x2.k0; + +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +import java.util.Collections; +import java.util.List; +/* compiled from: DvbSubtitleReader */ +public final class n implements o { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final w[] f1252b; + public boolean c; + public int d; + public int e; + public long f = -9223372036854775807L; + + public n(List list) { + this.a = list; + this.f1252b = new w[list.size()]; + } + + public final boolean a(x xVar, int i) { + if (xVar.a() == 0) { + return false; + } + if (xVar.t() != i) { + this.c = false; + } + this.d--; + return this.c; + } + + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + if (!this.c) { + return; + } + if (this.d != 2 || a(xVar, 32)) { + if (this.d != 1 || a(xVar, 0)) { + int i = xVar.f970b; + int a = xVar.a(); + w[] wVarArr = this.f1252b; + for (w wVar : wVarArr) { + xVar.E(i); + wVar.c(xVar, a); + } + this.e += a; + } + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.c = false; + this.f = -9223372036854775807L; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + if (this.c) { + if (this.f != -9223372036854775807L) { + for (w wVar : this.f1252b) { + wVar.d(this.f, 1, this.e, 0, null); + } + } + this.c = false; + } + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + for (int i = 0; i < this.f1252b.length; i++) { + i0.a aVar = this.a.get(i); + dVar.a(); + w p = jVar.p(dVar.c(), 3); + j1.b bVar = new j1.b(); + bVar.a = dVar.b(); + bVar.k = "application/dvbsubs"; + bVar.m = Collections.singletonList(aVar.f1243b); + bVar.c = aVar.a; + p.e(bVar.a()); + this.f1252b[i] = p; + } + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if ((i & 4) != 0) { + this.c = true; + if (j != -9223372036854775807L) { + this.f = j; + } + this.e = 0; + this.d = 2; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/o.java b/app/src/main/java/b/i/a/c/x2/k0/o.java new file mode 100644 index 0000000000..0b22ff355e --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/o.java @@ -0,0 +1,18 @@ +package b.i.a.c.x2.k0; + +import b.i.a.c.f3.x; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import com.google.android.exoplayer2.ParserException; +/* compiled from: ElementaryStreamReader */ +public interface o { + void b(x xVar) throws ParserException; + + void c(); + + void d(); + + void e(j jVar, i0.d dVar); + + void f(long j, int i); +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/p.java b/app/src/main/java/b/i/a/c/x2/k0/p.java new file mode 100644 index 0000000000..66a0bc018c --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/p.java @@ -0,0 +1,425 @@ +package b.i.a.c.x2.k0; + +import android.util.Pair; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +import java.util.Arrays; +import java.util.Collections; +import java.util.Objects; +/* compiled from: H262Reader */ +public final class p implements o { + public static final double[] a = {23.976023976023978d, 24.0d, 25.0d, 29.97002997002997d, 30.0d, 50.0d, 59.94005994005994d, 60.0d}; + + /* renamed from: b reason: collision with root package name */ + public String f1253b; + public w c; + @Nullable + public final j0 d; + @Nullable + public final x e; + @Nullable + public final w f; + public final boolean[] g = new boolean[4]; + public final a h = new a(128); + public long i; + public boolean j; + public boolean k; + public long l; + public long m; + public long n; + public long o; + public boolean p; + public boolean q; + + /* compiled from: H262Reader */ + public static final class a { + public static final byte[] a = {0, 0, 1}; + + /* renamed from: b reason: collision with root package name */ + public boolean f1254b; + public int c; + public int d; + public byte[] e; + + public a(int i) { + this.e = new byte[i]; + } + + public void a(byte[] bArr, int i, int i2) { + if (this.f1254b) { + int i3 = i2 - i; + byte[] bArr2 = this.e; + int length = bArr2.length; + int i4 = this.c; + if (length < i4 + i3) { + this.e = Arrays.copyOf(bArr2, (i4 + i3) * 2); + } + System.arraycopy(bArr, i, this.e, this.c, i3); + this.c += i3; + } + } + } + + public p(@Nullable j0 j0Var) { + this.d = j0Var; + if (j0Var != null) { + this.f = new w(178, 128); + this.e = new x(); + } else { + this.f = null; + this.e = null; + } + this.m = -9223372036854775807L; + this.o = -9223372036854775807L; + } + + /* JADX WARNING: Removed duplicated region for block: B:28:0x0080 */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x00f4 */ + /* JADX WARNING: Removed duplicated region for block: B:53:0x0150 */ + /* JADX WARNING: Removed duplicated region for block: B:64:0x0193 */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x0197 */ + /* JADX WARNING: Removed duplicated region for block: B:78:0x01bc */ + /* JADX WARNING: Removed duplicated region for block: B:82:0x01df */ + /* JADX WARNING: Removed duplicated region for block: B:87:0x01f4 */ + /* JADX WARNING: Removed duplicated region for block: B:93:0x020b */ + /* JADX WARNING: Removed duplicated region for block: B:94:0x020d */ + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + int i; + int i2; + w wVar; + int i3; + byte[] bArr; + int i4; + long j; + long j2; + long j3; + int i5; + boolean z2; + float f; + int i6; + long j4; + int i7; + float f2; + d.H(this.c); + int i8 = xVar.f970b; + int i9 = xVar.c; + byte[] bArr2 = xVar.a; + this.i += (long) xVar.a(); + this.c.c(xVar, xVar.a()); + while (true) { + int b2 = u.b(bArr2, i8, i9, this.g); + if (b2 == i9) { + break; + } + int i10 = b2 + 3; + int i11 = xVar.a[i10] & 255; + int i12 = b2 - i8; + if (!this.k) { + if (i12 > 0) { + this.h.a(bArr2, i8, b2); + } + int i13 = i12 < 0 ? -i12 : 0; + a aVar = this.h; + if (aVar.f1254b) { + int i14 = aVar.c - i13; + aVar.c = i14; + if (aVar.d == 0 && i11 == 181) { + aVar.d = i14; + } else { + aVar.f1254b = false; + z2 = true; + if (z2) { + a aVar2 = this.h; + String str = this.f1253b; + Objects.requireNonNull(str); + byte[] copyOf = Arrays.copyOf(aVar2.e, aVar2.c); + int i15 = copyOf[5] & 255; + int i16 = ((copyOf[4] & 255) << 4) | (i15 >> 4); + int i17 = ((i15 & 15) << 8) | (copyOf[6] & 255); + int i18 = (copyOf[7] & 240) >> 4; + if (i18 == 2) { + f2 = (float) (i17 * 4); + i7 = i16 * 3; + } else if (i18 == 3) { + f2 = (float) (i17 * 16); + i7 = i16 * 9; + } else if (i18 != 4) { + f = 1.0f; + j1.b bVar = new j1.b(); + bVar.a = str; + bVar.k = "video/mpeg2"; + bVar.p = i16; + bVar.q = i17; + bVar.t = f; + bVar.m = Collections.singletonList(copyOf); + j1 a2 = bVar.a(); + i6 = (copyOf[7] & 15) - 1; + if (i6 >= 0) { + double[] dArr = a; + if (i6 < dArr.length) { + double d = dArr[i6]; + int i19 = aVar2.d + 9; + int i20 = (copyOf[i19] & 96) >> 5; + int i21 = copyOf[i19] & 31; + if (i20 != i21) { + i = i11; + i2 = i10; + d *= (((double) i20) + 1.0d) / ((double) (i21 + 1)); + } else { + i = i11; + i2 = i10; + } + j4 = (long) (1000000.0d / d); + Pair create = Pair.create(a2, Long.valueOf(j4)); + this.c.e((j1) create.first); + this.l = ((Long) create.second).longValue(); + this.k = true; + wVar = this.f; + if (wVar == null) { + if (i12 > 0) { + wVar.a(bArr2, i8, b2); + i5 = 0; + } else { + i5 = -i12; + } + if (this.f.b(i5)) { + w wVar2 = this.f; + int f3 = u.f(wVar2.d, wVar2.e); + x xVar2 = this.e; + int i22 = e0.a; + xVar2.C(this.f.d, f3); + this.d.a(this.o, this.e); + } + i3 = i; + if (i3 == 178 && xVar.a[b2 + 2] == 1) { + this.f.d(i3); + } + } else { + i3 = i; + } + if (i3 != 0 || i3 == 179) { + int i23 = i9 - b2; + if (this.q && this.k) { + j3 = this.o; + if (j3 != -9223372036854775807L) { + i4 = i9; + bArr = bArr2; + j = -9223372036854775807L; + this.c.d(j3, this.p ? 1 : 0, ((int) (this.i - this.n)) - i23, i23, null); + if (this.j || this.q) { + this.n = this.i - ((long) i23); + j2 = this.m; + if (j2 == j) { + long j5 = this.o; + j2 = j5 != j ? j5 + this.l : j; + } + this.o = j2; + this.p = false; + this.m = j; + this.j = true; + } + this.q = i3 == 0; + } + } + i4 = i9; + bArr = bArr2; + j = -9223372036854775807L; + if (this.j) { + } + this.n = this.i - ((long) i23); + j2 = this.m; + if (j2 == j) { + } + this.o = j2; + this.p = false; + this.m = j; + this.j = true; + this.q = i3 == 0; + } else { + if (i3 == 184) { + this.p = true; + } + i4 = i9; + bArr = bArr2; + } + i9 = i4; + bArr2 = bArr; + i8 = i2; + } + } + i = i11; + i2 = i10; + j4 = 0; + Pair create = Pair.create(a2, Long.valueOf(j4)); + this.c.e((j1) create.first); + this.l = ((Long) create.second).longValue(); + this.k = true; + wVar = this.f; + if (wVar == null) { + } + if (i3 != 0) { + } + int i23 = i9 - b2; + j3 = this.o; + if (j3 != -9223372036854775807L) { + } + i4 = i9; + bArr = bArr2; + j = -9223372036854775807L; + if (this.j) { + } + this.n = this.i - ((long) i23); + j2 = this.m; + if (j2 == j) { + } + this.o = j2; + this.p = false; + this.m = j; + this.j = true; + this.q = i3 == 0; + i9 = i4; + bArr2 = bArr; + i8 = i2; + } else { + f2 = (float) (i17 * 121); + i7 = i16 * 100; + } + f = f2 / ((float) i7); + j1.b bVar = new j1.b(); + bVar.a = str; + bVar.k = "video/mpeg2"; + bVar.p = i16; + bVar.q = i17; + bVar.t = f; + bVar.m = Collections.singletonList(copyOf); + j1 a2 = bVar.a(); + i6 = (copyOf[7] & 15) - 1; + if (i6 >= 0) { + } + i = i11; + i2 = i10; + j4 = 0; + Pair create = Pair.create(a2, Long.valueOf(j4)); + this.c.e((j1) create.first); + this.l = ((Long) create.second).longValue(); + this.k = true; + wVar = this.f; + if (wVar == null) { + } + if (i3 != 0) { + } + int i23 = i9 - b2; + j3 = this.o; + if (j3 != -9223372036854775807L) { + } + i4 = i9; + bArr = bArr2; + j = -9223372036854775807L; + if (this.j) { + } + this.n = this.i - ((long) i23); + j2 = this.m; + if (j2 == j) { + } + this.o = j2; + this.p = false; + this.m = j; + this.j = true; + this.q = i3 == 0; + i9 = i4; + bArr2 = bArr; + i8 = i2; + } + } + } else if (i11 == 179) { + aVar.f1254b = true; + } + byte[] bArr3 = a.a; + aVar.a(bArr3, 0, bArr3.length); + z2 = false; + if (z2) { + } + } + i = i11; + i2 = i10; + wVar = this.f; + if (wVar == null) { + } + if (i3 != 0) { + } + int i23 = i9 - b2; + j3 = this.o; + if (j3 != -9223372036854775807L) { + } + i4 = i9; + bArr = bArr2; + j = -9223372036854775807L; + if (this.j) { + } + this.n = this.i - ((long) i23); + j2 = this.m; + if (j2 == j) { + } + this.o = j2; + this.p = false; + this.m = j; + this.j = true; + this.q = i3 == 0; + i9 = i4; + bArr2 = bArr; + i8 = i2; + } + if (!this.k) { + this.h.a(bArr2, i8, i9); + } + w wVar3 = this.f; + if (wVar3 != null) { + wVar3.a(bArr2, i8, i9); + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + u.a(this.g); + a aVar = this.h; + aVar.f1254b = false; + aVar.c = 0; + aVar.d = 0; + w wVar = this.f; + if (wVar != null) { + wVar.c(); + } + this.i = 0; + this.j = false; + this.m = -9223372036854775807L; + this.o = -9223372036854775807L; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.f1253b = dVar.b(); + this.c = jVar.p(dVar.c(), 2); + j0 j0Var = this.d; + if (j0Var != null) { + j0Var.b(jVar, dVar); + } + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + this.m = j; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/q.java b/app/src/main/java/b/i/a/c/x2/k0/q.java new file mode 100644 index 0000000000..28ecf408d4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/q.java @@ -0,0 +1,515 @@ +package b.i.a.c.x2.k0; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +import java.util.Arrays; +import java.util.Collections; +import java.util.Objects; +/* compiled from: H263Reader */ +public final class q implements o { + public static final float[] a = {1.0f, 1.0f, 1.0909091f, 0.90909094f, 1.4545455f, 1.2121212f, 1.0f}; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final j0 f1255b; + @Nullable + public final x c = new x(); + public final boolean[] d = new boolean[4]; + public final a e = new a(128); + @Nullable + public final w f = new w(178, 128); + public b g; + public long h; + public String i; + public w j; + public boolean k; + public long l = -9223372036854775807L; + + /* compiled from: H263Reader */ + public static final class a { + public static final byte[] a = {0, 0, 1}; + + /* renamed from: b reason: collision with root package name */ + public boolean f1256b; + public int c; + public int d; + public int e; + public byte[] f; + + public a(int i) { + this.f = new byte[i]; + } + + public void a(byte[] bArr, int i, int i2) { + if (this.f1256b) { + int i3 = i2 - i; + byte[] bArr2 = this.f; + int length = bArr2.length; + int i4 = this.d; + if (length < i4 + i3) { + this.f = Arrays.copyOf(bArr2, (i4 + i3) * 2); + } + System.arraycopy(bArr, i, this.f, this.d, i3); + this.d += i3; + } + } + + public void b() { + this.f1256b = false; + this.d = 0; + this.c = 0; + } + } + + /* compiled from: H263Reader */ + public static final class b { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1257b; + public boolean c; + public boolean d; + public int e; + public int f; + public long g; + public long h; + + public b(w wVar) { + this.a = wVar; + } + + public void a(byte[] bArr, int i, int i2) { + if (this.c) { + int i3 = this.f; + int i4 = (i + 1) - i3; + if (i4 < i2) { + this.d = ((bArr[i4] & 192) >> 6) == 0; + this.c = false; + return; + } + this.f = (i2 - i) + i3; + } + } + } + + public q(@Nullable j0 j0Var) { + this.f1255b = j0Var; + } + + /* JADX WARNING: Removed duplicated region for block: B:102:0x024f */ + /* JADX WARNING: Removed duplicated region for block: B:105:0x026d */ + /* JADX WARNING: Removed duplicated region for block: B:108:0x027a */ + /* JADX WARNING: Removed duplicated region for block: B:114:0x0286 */ + /* JADX WARNING: Removed duplicated region for block: B:115:0x0288 */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x00d2 */ + /* JADX WARNING: Removed duplicated region for block: B:65:0x0140 */ + /* JADX WARNING: Removed duplicated region for block: B:70:0x017b */ + /* JADX WARNING: Removed duplicated region for block: B:73:0x0192 */ + /* JADX WARNING: Removed duplicated region for block: B:83:0x01ec */ + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + int i; + int i2; + w wVar; + b bVar; + long j; + int i3; + boolean z2; + float f; + d.H(this.g); + d.H(this.j); + int i4 = xVar.f970b; + int i5 = xVar.c; + byte[] bArr = xVar.a; + this.h += (long) xVar.a(); + this.j.c(xVar, xVar.a()); + while (true) { + int b2 = u.b(bArr, i4, i5, this.d); + if (b2 == i5) { + if (!this.k) { + this.e.a(bArr, i4, i5); + } + this.g.a(bArr, i4, i5); + w wVar2 = this.f; + if (wVar2 != null) { + wVar2.a(bArr, i4, i5); + return; + } + return; + } + int i6 = b2 + 3; + int i7 = xVar.a[i6] & 255; + int i8 = b2 - i4; + if (!this.k) { + if (i8 > 0) { + this.e.a(bArr, i4, b2); + } + int i9 = i8 < 0 ? -i8 : 0; + a aVar = this.e; + int i10 = aVar.c; + if (i10 != 0) { + if (i10 != 1) { + if (i10 != 2) { + if (i10 != 3) { + if (i10 != 4) { + throw new IllegalStateException(); + } else if (i7 == 179 || i7 == 181) { + aVar.d -= i9; + aVar.f1256b = false; + z2 = true; + if (z2) { + w wVar3 = this.j; + a aVar2 = this.e; + int i11 = aVar2.e; + String str = this.i; + Objects.requireNonNull(str); + byte[] copyOf = Arrays.copyOf(aVar2.f, aVar2.d); + b.i.a.c.f3.w wVar4 = new b.i.a.c.f3.w(copyOf); + wVar4.n(i11); + wVar4.n(4); + wVar4.l(); + wVar4.m(8); + if (wVar4.f()) { + wVar4.m(4); + wVar4.m(3); + } + int g = wVar4.g(4); + i = i6; + if (g == 15) { + int g2 = wVar4.g(8); + int g3 = wVar4.g(8); + if (g3 == 0) { + Log.w("H263Reader", "Invalid aspect ratio"); + i2 = i5; + } else { + f = ((float) g2) / ((float) g3); + i2 = i5; + if (wVar4.f()) { + wVar4.m(2); + wVar4.m(1); + if (wVar4.f()) { + wVar4.m(15); + wVar4.l(); + wVar4.m(15); + wVar4.l(); + wVar4.m(15); + wVar4.l(); + wVar4.m(3); + wVar4.m(11); + wVar4.l(); + wVar4.m(15); + wVar4.l(); + } + } + if (wVar4.g(2) != 0) { + Log.w("H263Reader", "Unhandled video object layer shape"); + } + wVar4.l(); + int g4 = wVar4.g(16); + wVar4.l(); + if (wVar4.f()) { + if (g4 == 0) { + Log.w("H263Reader", "Invalid vop_increment_time_resolution"); + } else { + int i12 = 0; + for (int i13 = g4 - 1; i13 > 0; i13 >>= 1) { + i12++; + } + wVar4.m(i12); + } + } + wVar4.l(); + int g5 = wVar4.g(13); + wVar4.l(); + int g6 = wVar4.g(13); + wVar4.l(); + wVar4.l(); + j1.b bVar2 = new j1.b(); + bVar2.a = str; + bVar2.k = "video/mp4v-es"; + bVar2.p = g5; + bVar2.q = g6; + bVar2.t = f; + bVar2.m = Collections.singletonList(copyOf); + wVar3.e(bVar2.a()); + this.k = true; + this.g.a(bArr, i4, b2); + wVar = this.f; + if (wVar != null) { + if (i8 > 0) { + wVar.a(bArr, i4, b2); + i3 = 0; + } else { + i3 = -i8; + } + if (this.f.b(i3)) { + w wVar5 = this.f; + int f2 = u.f(wVar5.d, wVar5.e); + x xVar2 = this.c; + int i14 = e0.a; + xVar2.C(this.f.d, f2); + this.f1255b.a(this.l, this.c); + } + if (i7 == 178) { + if (xVar.a[b2 + 2] == 1) { + this.f.d(i7); + } + int i15 = i2 - b2; + long j2 = this.h - ((long) i15); + bVar = this.g; + boolean z3 = this.k; + if (bVar.e == 182 && z3 && bVar.f1257b) { + j = bVar.h; + if (j != -9223372036854775807L) { + bVar.a.d(j, bVar.d ? 1 : 0, (int) (j2 - bVar.g), i15, null); + } + } + if (bVar.e != 179) { + bVar.g = j2; + } + b bVar3 = this.g; + long j3 = this.l; + bVar3.e = i7; + bVar3.d = false; + bVar3.f1257b = i7 != 182 || i7 == 179; + bVar3.c = i7 == 182; + bVar3.f = 0; + bVar3.h = j3; + i5 = i2; + i4 = i; + } + } + int i15 = i2 - b2; + long j2 = this.h - ((long) i15); + bVar = this.g; + boolean z3 = this.k; + j = bVar.h; + if (j != -9223372036854775807L) { + } + if (bVar.e != 179) { + } + b bVar3 = this.g; + long j3 = this.l; + bVar3.e = i7; + bVar3.d = false; + bVar3.f1257b = i7 != 182 || i7 == 179; + bVar3.c = i7 == 182; + bVar3.f = 0; + bVar3.h = j3; + i5 = i2; + i4 = i; + } + } else { + float[] fArr = a; + i2 = i5; + if (g < fArr.length) { + f = fArr[g]; + if (wVar4.f()) { + } + if (wVar4.g(2) != 0) { + } + wVar4.l(); + int g4 = wVar4.g(16); + wVar4.l(); + if (wVar4.f()) { + } + wVar4.l(); + int g5 = wVar4.g(13); + wVar4.l(); + int g6 = wVar4.g(13); + wVar4.l(); + wVar4.l(); + j1.b bVar2 = new j1.b(); + bVar2.a = str; + bVar2.k = "video/mp4v-es"; + bVar2.p = g5; + bVar2.q = g6; + bVar2.t = f; + bVar2.m = Collections.singletonList(copyOf); + wVar3.e(bVar2.a()); + this.k = true; + this.g.a(bArr, i4, b2); + wVar = this.f; + if (wVar != null) { + } + int i15 = i2 - b2; + long j2 = this.h - ((long) i15); + bVar = this.g; + boolean z3 = this.k; + j = bVar.h; + if (j != -9223372036854775807L) { + } + if (bVar.e != 179) { + } + b bVar3 = this.g; + long j3 = this.l; + bVar3.e = i7; + bVar3.d = false; + bVar3.f1257b = i7 != 182 || i7 == 179; + bVar3.c = i7 == 182; + bVar3.f = 0; + bVar3.h = j3; + i5 = i2; + i4 = i; + } else { + Log.w("H263Reader", "Invalid aspect ratio"); + } + } + f = 1.0f; + if (wVar4.f()) { + } + if (wVar4.g(2) != 0) { + } + wVar4.l(); + int g4 = wVar4.g(16); + wVar4.l(); + if (wVar4.f()) { + } + wVar4.l(); + int g5 = wVar4.g(13); + wVar4.l(); + int g6 = wVar4.g(13); + wVar4.l(); + wVar4.l(); + j1.b bVar2 = new j1.b(); + bVar2.a = str; + bVar2.k = "video/mp4v-es"; + bVar2.p = g5; + bVar2.q = g6; + bVar2.t = f; + bVar2.m = Collections.singletonList(copyOf); + wVar3.e(bVar2.a()); + this.k = true; + this.g.a(bArr, i4, b2); + wVar = this.f; + if (wVar != null) { + } + int i15 = i2 - b2; + long j2 = this.h - ((long) i15); + bVar = this.g; + boolean z3 = this.k; + j = bVar.h; + if (j != -9223372036854775807L) { + } + if (bVar.e != 179) { + } + b bVar3 = this.g; + long j3 = this.l; + bVar3.e = i7; + bVar3.d = false; + bVar3.f1257b = i7 != 182 || i7 == 179; + bVar3.c = i7 == 182; + bVar3.f = 0; + bVar3.h = j3; + i5 = i2; + i4 = i; + } + } + } else if ((i7 & 240) != 32) { + Log.w("H263Reader", "Unexpected start code value"); + aVar.b(); + } else { + aVar.e = aVar.d; + aVar.c = 4; + } + } else if (i7 > 31) { + Log.w("H263Reader", "Unexpected start code value"); + aVar.b(); + } else { + aVar.c = 3; + } + } else if (i7 != 181) { + Log.w("H263Reader", "Unexpected start code value"); + aVar.b(); + } else { + aVar.c = 2; + } + } else if (i7 == 176) { + aVar.c = 1; + aVar.f1256b = true; + } + byte[] bArr2 = a.a; + aVar.a(bArr2, 0, bArr2.length); + z2 = false; + if (z2) { + } + } + i2 = i5; + i = i6; + this.g.a(bArr, i4, b2); + wVar = this.f; + if (wVar != null) { + } + int i15 = i2 - b2; + long j2 = this.h - ((long) i15); + bVar = this.g; + boolean z3 = this.k; + j = bVar.h; + if (j != -9223372036854775807L) { + } + if (bVar.e != 179) { + } + b bVar3 = this.g; + long j3 = this.l; + bVar3.e = i7; + bVar3.d = false; + bVar3.f1257b = i7 != 182 || i7 == 179; + bVar3.c = i7 == 182; + bVar3.f = 0; + bVar3.h = j3; + i5 = i2; + i4 = i; + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + u.a(this.d); + this.e.b(); + b bVar = this.g; + if (bVar != null) { + bVar.f1257b = false; + bVar.c = false; + bVar.d = false; + bVar.e = -1; + } + w wVar = this.f; + if (wVar != null) { + wVar.c(); + } + this.h = 0; + this.l = -9223372036854775807L; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.i = dVar.b(); + w p = jVar.p(dVar.c(), 2); + this.j = p; + this.g = new b(p); + j0 j0Var = this.f1255b; + if (j0Var != null) { + j0Var.b(jVar, dVar); + } + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.l = j; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/r.java b/app/src/main/java/b/i/a/c/x2/k0/r.java new file mode 100644 index 0000000000..9508995976 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/r.java @@ -0,0 +1,621 @@ +package b.i.a.c.x2.k0; + +import android.util.SparseArray; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.h; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import b.i.a.c.f3.y; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +import java.util.ArrayList; +import java.util.Arrays; +import org.checkerframework.checker.nullness.qual.RequiresNonNull; +/* compiled from: H264Reader */ +public final class r implements o { + public final e0 a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1258b; + public final boolean c; + public final w d = new w(7, 128); + public final w e = new w(8, 128); + public final w f = new w(6, 128); + public long g; + public final boolean[] h = new boolean[3]; + public String i; + public w j; + public b k; + public boolean l; + public long m = -9223372036854775807L; + public boolean n; + public final x o = new x(); + + /* compiled from: H264Reader */ + public static final class b { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1259b; + public final boolean c; + public final SparseArray d = new SparseArray<>(); + public final SparseArray e = new SparseArray<>(); + public final y f; + public byte[] g; + public int h; + public int i; + public long j; + public boolean k; + public long l; + public a m = new a(null); + public a n = new a(null); + public boolean o; + public long p; + public long q; + public boolean r; + + /* compiled from: H264Reader */ + public static final class a { + public boolean a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1260b; + @Nullable + public u.c c; + public int d; + public int e; + public int f; + public int g; + public boolean h; + public boolean i; + public boolean j; + public boolean k; + public int l; + public int m; + public int n; + public int o; + public int p; + + public a(a aVar) { + } + } + + public b(w wVar, boolean z2, boolean z3) { + this.a = wVar; + this.f1259b = z2; + this.c = z3; + byte[] bArr = new byte[128]; + this.g = bArr; + this.f = new y(bArr, 0, 0); + this.k = false; + this.o = false; + a aVar = this.n; + aVar.f1260b = false; + aVar.a = false; + } + } + + public r(e0 e0Var, boolean z2, boolean z3) { + this.a = e0Var; + this.f1258b = z2; + this.c = z3; + } + + /* JADX WARNING: Removed duplicated region for block: B:44:0x0126 */ + /* JADX WARNING: Removed duplicated region for block: B:45:0x0128 */ + /* JADX WARNING: Removed duplicated region for block: B:47:0x012b */ + /* JADX WARNING: Removed duplicated region for block: B:50:0x013c */ + /* JADX WARNING: Removed duplicated region for block: B:53:0x0141 */ + /* JADX WARNING: Removed duplicated region for block: B:63:0x0171 */ + @RequiresNonNull({"sampleReader"}) + public final void a(byte[] bArr, int i, int i2) { + boolean z2; + boolean z3; + boolean z4; + boolean z5; + int i3; + int i4; + int i5; + int i6; + int i7; + int i8; + int i9; + int i10; + if (!this.l || this.k.c) { + this.d.a(bArr, i, i2); + this.e.a(bArr, i, i2); + } + this.f.a(bArr, i, i2); + b bVar = this.k; + if (bVar.k) { + int i11 = i2 - i; + byte[] bArr2 = bVar.g; + int length = bArr2.length; + int i12 = bVar.h + i11; + if (length < i12) { + bVar.g = Arrays.copyOf(bArr2, i12 * 2); + } + System.arraycopy(bArr, i, bVar.g, bVar.h, i11); + int i13 = bVar.h + i11; + bVar.h = i13; + y yVar = bVar.f; + yVar.a = bVar.g; + yVar.c = 0; + yVar.f971b = i13; + yVar.d = 0; + yVar.a(); + if (bVar.f.b(8)) { + bVar.f.i(); + int e = bVar.f.e(2); + bVar.f.j(5); + if (bVar.f.c()) { + bVar.f.f(); + if (bVar.f.c()) { + int f = bVar.f.f(); + if (!bVar.c) { + bVar.k = false; + b.a aVar = bVar.n; + aVar.e = f; + aVar.f1260b = true; + } else if (bVar.f.c()) { + int f2 = bVar.f.f(); + if (bVar.e.indexOfKey(f2) < 0) { + bVar.k = false; + return; + } + u.b bVar2 = bVar.e.get(f2); + u.c cVar = bVar.d.get(bVar2.f966b); + if (cVar.h) { + if (bVar.f.b(2)) { + bVar.f.j(2); + } else { + return; + } + } + if (bVar.f.b(cVar.j)) { + int e2 = bVar.f.e(cVar.j); + if (cVar.i) { + z4 = false; + } else if (bVar.f.b(1)) { + z4 = bVar.f.d(); + if (z4) { + if (bVar.f.b(1)) { + z3 = bVar.f.d(); + z2 = true; + z5 = bVar.i != 5; + if (z5) { + i3 = 0; + } else if (bVar.f.c()) { + i3 = bVar.f.f(); + } else { + return; + } + i4 = cVar.k; + if (i4 == 0) { + if (i4 != 1 || cVar.m) { + i9 = 0; + } else if (bVar.f.c()) { + i9 = bVar.f.g(); + if (bVar2.c && !z4) { + if (bVar.f.c()) { + i7 = bVar.f.g(); + i5 = 0; + i6 = i9; + i8 = 0; + } else { + return; + } + } + } else { + return; + } + i6 = i9; + i8 = 0; + i7 = 0; + i5 = 0; + } else if (bVar.f.b(cVar.l)) { + i8 = bVar.f.e(cVar.l); + if (!bVar2.c || z4) { + i10 = 0; + } else if (bVar.f.c()) { + i10 = bVar.f.g(); + } else { + return; + } + i5 = i10; + i7 = 0; + i6 = 0; + } else { + return; + } + b.a aVar2 = bVar.n; + aVar2.c = cVar; + aVar2.d = e; + aVar2.e = f; + aVar2.f = e2; + aVar2.g = f2; + aVar2.h = z4; + aVar2.i = z2; + aVar2.j = z3; + aVar2.k = z5; + aVar2.l = i3; + aVar2.m = i8; + aVar2.n = i5; + aVar2.o = i6; + aVar2.p = i7; + aVar2.a = true; + aVar2.f1260b = true; + bVar.k = false; + } + return; + } + } else { + return; + } + z3 = false; + z2 = false; + if (bVar.i != 5) { + } + if (z5) { + } + i4 = cVar.k; + if (i4 == 0) { + } + b.a aVar2 = bVar.n; + aVar2.c = cVar; + aVar2.d = e; + aVar2.e = f; + aVar2.f = e2; + aVar2.g = f2; + aVar2.h = z4; + aVar2.i = z2; + aVar2.j = z3; + aVar2.k = z5; + aVar2.l = i3; + aVar2.m = i8; + aVar2.n = i5; + aVar2.o = i6; + aVar2.p = i7; + aVar2.a = true; + aVar2.f1260b = true; + bVar.k = false; + } + } + } + } + } + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:115:0x0284, code lost: + if (r6 != 1) goto L_0x0288; + */ + /* JADX WARNING: Code restructure failed: missing block: B:52:0x01ac, code lost: + if (r7.j == r10.j) goto L_0x01ae; + */ + /* JADX WARNING: Code restructure failed: missing block: B:56:0x01b6, code lost: + if (r14 != 0) goto L_0x01b8; + */ + /* JADX WARNING: Code restructure failed: missing block: B:64:0x01ca, code lost: + if (r7.n == r10.n) goto L_0x01cc; + */ + /* JADX WARNING: Code restructure failed: missing block: B:72:0x01dd, code lost: + if (r7.p == r10.p) goto L_0x01df; + */ + /* JADX WARNING: Code restructure failed: missing block: B:77:0x01eb, code lost: + if (r7.l == r10.l) goto L_0x01ee; + */ + /* JADX WARNING: Code restructure failed: missing block: B:80:0x01f1, code lost: + if (r7 == false) goto L_0x022f; + */ + /* JADX WARNING: Removed duplicated region for block: B:106:0x0259 */ + /* JADX WARNING: Removed duplicated region for block: B:114:0x0283 */ + /* JADX WARNING: Removed duplicated region for block: B:116:0x0287 */ + /* JADX WARNING: Removed duplicated region for block: B:119:0x028c A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:126:0x02a4 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x0142 */ + /* JADX WARNING: Removed duplicated region for block: B:35:0x0170 */ + /* JADX WARNING: Removed duplicated region for block: B:86:0x020c */ + /* JADX WARNING: Removed duplicated region for block: B:90:0x0234 */ + /* JADX WARNING: Removed duplicated region for block: B:99:0x024b A[ADDED_TO_REGION] */ + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + byte[] bArr; + int i; + b bVar; + boolean z2; + b bVar2; + int i2; + long j; + boolean z3; + d.H(this.j); + int i3 = e0.a; + int i4 = xVar.f970b; + int i5 = xVar.c; + byte[] bArr2 = xVar.a; + this.g += (long) xVar.a(); + this.j.c(xVar, xVar.a()); + while (true) { + int b2 = u.b(bArr2, i4, i5, this.h); + if (b2 == i5) { + a(bArr2, i4, i5); + return; + } + int i6 = b2 + 3; + int i7 = bArr2[i6] & 31; + int i8 = b2 - i4; + if (i8 > 0) { + a(bArr2, i4, b2); + } + int i9 = i5 - b2; + long j2 = this.g - ((long) i9); + int i10 = i8 < 0 ? -i8 : 0; + long j3 = this.m; + if (!this.l || this.k.c) { + this.d.b(i10); + this.e.b(i10); + if (this.l) { + i = i5; + bArr = bArr2; + w wVar = this.d; + if (wVar.c) { + u.c e = u.e(wVar.d, 3, wVar.e); + this.k.d.append(e.d, e); + this.d.c(); + } else { + w wVar2 = this.e; + if (wVar2.c) { + u.b d = u.d(wVar2.d, 3, wVar2.e); + this.k.e.append(d.a, d); + this.e.c(); + } + } + } else if (this.d.c && this.e.c) { + ArrayList arrayList = new ArrayList(); + w wVar3 = this.d; + arrayList.add(Arrays.copyOf(wVar3.d, wVar3.e)); + w wVar4 = this.e; + arrayList.add(Arrays.copyOf(wVar4.d, wVar4.e)); + w wVar5 = this.d; + u.c e2 = u.e(wVar5.d, 3, wVar5.e); + w wVar6 = this.e; + u.b d2 = u.d(wVar6.d, 3, wVar6.e); + i = i5; + String a2 = h.a(e2.a, e2.f967b, e2.c); + w wVar7 = this.j; + j1.b bVar3 = new j1.b(); + bArr = bArr2; + bVar3.a = this.i; + bVar3.k = "video/avc"; + bVar3.h = a2; + bVar3.p = e2.e; + bVar3.q = e2.f; + bVar3.t = e2.g; + bVar3.m = arrayList; + wVar7.e(bVar3.a()); + this.l = true; + this.k.d.append(e2.d, e2); + this.k.e.append(d2.a, d2); + this.d.c(); + this.e.c(); + } + if (this.f.b(i10)) { + w wVar8 = this.f; + this.o.C(this.f.d, u.f(wVar8.d, wVar8.e)); + this.o.E(4); + d.J(j3, this.o, this.a.f1232b); + } + bVar = this.k; + boolean z4 = this.l; + boolean z5 = this.n; + if (bVar.i != 9) { + if (bVar.c) { + b.a aVar = bVar.n; + b.a aVar2 = bVar.m; + if (aVar.a) { + if (aVar2.a) { + u.c cVar = aVar.c; + d.H(cVar); + u.c cVar2 = aVar2.c; + d.H(cVar2); + if (aVar.f == aVar2.f) { + if (aVar.g == aVar2.g) { + if (aVar.h == aVar2.h) { + if (aVar.i) { + if (aVar2.i) { + } + } + int i11 = aVar.d; + int i12 = aVar2.d; + if (i11 != i12) { + if (i11 != 0) { + } + } + int i13 = cVar.k; + if (i13 == 0) { + if (cVar2.k == 0) { + if (aVar.m == aVar2.m) { + } + } + } + if (i13 == 1) { + if (cVar2.k == 1) { + if (aVar.o == aVar2.o) { + } + } + } + boolean z6 = aVar.k; + if (z6 == aVar2.k) { + if (z6) { + } + } + } + } + } + } + z3 = true; + } + z3 = false; + } + if (bVar.f1259b) { + b.a aVar3 = bVar.n; + z5 = aVar3.f1260b && ((i2 = aVar3.e) == 7 || i2 == 2); + } + boolean z7 = bVar.r; + int i14 = bVar.i; + z2 = z7 | (i14 != 5 || (z5 && i14 == 1)); + bVar.r = z2; + if (z2) { + this.n = false; + } + long j4 = this.m; + if (!this.l || this.k.c) { + this.d.d(i7); + this.e.d(i7); + } + this.f.d(i7); + bVar2 = this.k; + bVar2.i = i7; + bVar2.l = j4; + bVar2.j = j2; + int i15 = bVar2.f1259b ? 1 : 1; + if (bVar2.c) { + if (!(i7 == 5 || i7 == i15 || i7 == 2)) { + } + b.a aVar4 = bVar2.m; + bVar2.m = bVar2.n; + bVar2.n = aVar4; + aVar4.f1260b = false; + aVar4.a = false; + bVar2.h = 0; + bVar2.k = true; + } + i4 = i6; + i5 = i; + bArr2 = bArr; + } + if (z4 && bVar.o) { + long j5 = bVar.j; + int i16 = i9 + ((int) (j2 - j5)); + j = bVar.q; + if (j != -9223372036854775807L) { + bVar.a.d(j, bVar.r ? 1 : 0, (int) (j5 - bVar.p), i16, null); + } + } + bVar.p = bVar.j; + bVar.q = bVar.l; + bVar.r = false; + bVar.o = true; + if (bVar.f1259b) { + } + boolean z7 = bVar.r; + int i14 = bVar.i; + z2 = z7 | (i14 != 5 || (z5 && i14 == 1)); + bVar.r = z2; + if (z2) { + } + long j4 = this.m; + this.d.d(i7); + this.e.d(i7); + this.f.d(i7); + bVar2 = this.k; + bVar2.i = i7; + bVar2.l = j4; + bVar2.j = j2; + if (bVar2.f1259b) { + } + if (bVar2.c) { + } + i4 = i6; + i5 = i; + bArr2 = bArr; + } + i = i5; + bArr = bArr2; + if (this.f.b(i10)) { + } + bVar = this.k; + boolean z4 = this.l; + boolean z5 = this.n; + if (bVar.i != 9) { + } + long j5 = bVar.j; + int i16 = i9 + ((int) (j2 - j5)); + j = bVar.q; + if (j != -9223372036854775807L) { + } + bVar.p = bVar.j; + bVar.q = bVar.l; + bVar.r = false; + bVar.o = true; + if (bVar.f1259b) { + } + boolean z7 = bVar.r; + int i14 = bVar.i; + z2 = z7 | (i14 != 5 || (z5 && i14 == 1)); + bVar.r = z2; + if (z2) { + } + long j4 = this.m; + this.d.d(i7); + this.e.d(i7); + this.f.d(i7); + bVar2 = this.k; + bVar2.i = i7; + bVar2.l = j4; + bVar2.j = j2; + if (bVar2.f1259b) { + } + if (bVar2.c) { + } + i4 = i6; + i5 = i; + bArr2 = bArr; + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.g = 0; + this.n = false; + this.m = -9223372036854775807L; + u.a(this.h); + this.d.c(); + this.e.c(); + this.f.c(); + b bVar = this.k; + if (bVar != null) { + bVar.k = false; + bVar.o = false; + b.a aVar = bVar.n; + aVar.f1260b = false; + aVar.a = false; + } + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.i = dVar.b(); + w p = jVar.p(dVar.c(), 2); + this.j = p; + this.k = new b(p, this.f1258b, this.c); + this.a.a(jVar, dVar); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.m = j; + } + this.n |= (i & 2) != 0; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/s.java b/app/src/main/java/b/i/a/c/x2/k0/s.java new file mode 100644 index 0000000000..a5fb1176ac --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/s.java @@ -0,0 +1,482 @@ +package b.i.a.c.x2.k0; + +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.h; +import b.i.a.c.f3.u; +import b.i.a.c.f3.x; +import b.i.a.c.f3.y; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +import java.util.Collections; +import org.checkerframework.checker.nullness.qual.RequiresNonNull; +/* compiled from: H265Reader */ +public final class s implements o { + public final e0 a; + + /* renamed from: b reason: collision with root package name */ + public String f1261b; + public w c; + public a d; + public boolean e; + public final boolean[] f = new boolean[3]; + public final w g = new w(32, 128); + public final w h = new w(33, 128); + public final w i = new w(34, 128); + public final w j = new w(39, 128); + public final w k = new w(40, 128); + public long l; + public long m = -9223372036854775807L; + public final x n = new x(); + + /* compiled from: H265Reader */ + public static final class a { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public long f1262b; + public boolean c; + public int d; + public long e; + public boolean f; + public boolean g; + public boolean h; + public boolean i; + public boolean j; + public long k; + public long l; + public boolean m; + + public a(w wVar) { + this.a = wVar; + } + + public final void a(int i) { + long j = this.l; + if (j != -9223372036854775807L) { + boolean z2 = this.m; + this.a.d(j, z2 ? 1 : 0, (int) (this.f1262b - this.k), i, null); + } + } + } + + public s(e0 e0Var) { + this.a = e0Var; + } + + @RequiresNonNull({"sampleReader"}) + public final void a(byte[] bArr, int i, int i2) { + a aVar = this.d; + if (aVar.f) { + int i3 = aVar.d; + int i4 = (i + 2) - i3; + if (i4 < i2) { + aVar.g = (bArr[i4] & 128) != 0; + aVar.f = false; + } else { + aVar.d = (i2 - i) + i3; + } + } + if (!this.e) { + this.g.a(bArr, i, i2); + this.h.a(bArr, i, i2); + this.i.a(bArr, i, i2); + } + this.j.a(bArr, i, i2); + this.k.a(bArr, i, i2); + } + + /* JADX WARNING: Removed duplicated region for block: B:166:0x035d */ + /* JADX WARNING: Removed duplicated region for block: B:167:0x0382 */ + /* JADX WARNING: Removed duplicated region for block: B:170:0x038c */ + /* JADX WARNING: Removed duplicated region for block: B:178:0x03d1 */ + /* JADX WARNING: Removed duplicated region for block: B:209:0x0419 */ + /* JADX WARNING: Removed duplicated region for block: B:217:0x0428 A[SYNTHETIC] */ + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + long j; + long j2; + int i; + int i2; + int i3; + byte[] bArr; + int i4; + long j3; + int i5; + long j4; + x xVar2 = xVar; + d.H(this.c); + int i6 = e0.a; + while (xVar.a() > 0) { + int i7 = xVar2.c; + byte[] bArr2 = xVar2.a; + this.l += (long) xVar.a(); + this.c.c(xVar2, xVar.a()); + for (int i8 = xVar2.f970b; i8 < i7; i8 = i3) { + int b2 = u.b(bArr2, i8, i7, this.f); + if (b2 == i7) { + a(bArr2, i8, i7); + return; + } + int i9 = b2 + 3; + int i10 = (bArr2[i9] & 126) >> 1; + int i11 = b2 - i8; + if (i11 > 0) { + a(bArr2, i8, b2); + } + int i12 = i7 - b2; + long j5 = this.l - ((long) i12); + int i13 = i11 < 0 ? -i11 : 0; + long j6 = this.m; + a aVar = this.d; + boolean z2 = this.e; + if (aVar.j && aVar.g) { + aVar.m = aVar.c; + aVar.j = false; + } else if (aVar.h || aVar.g) { + if (z2 && aVar.i) { + aVar.a(((int) (j5 - aVar.f1262b)) + i12); + } + aVar.k = aVar.f1262b; + aVar.l = aVar.e; + aVar.m = aVar.c; + aVar.i = true; + } + if (!this.e) { + this.g.b(i13); + this.h.b(i13); + this.i.b(i13); + w wVar = this.g; + if (wVar.c) { + w wVar2 = this.h; + if (wVar2.c) { + w wVar3 = this.i; + if (wVar3.c) { + w wVar4 = this.c; + String str = this.f1261b; + i4 = i7; + int i14 = wVar.e; + bArr = bArr2; + i3 = i9; + byte[] bArr3 = new byte[(wVar2.e + i14 + wVar3.e)]; + i2 = i12; + System.arraycopy(wVar.d, 0, bArr3, 0, i14); + i = i10; + System.arraycopy(wVar2.d, 0, bArr3, wVar.e, wVar2.e); + System.arraycopy(wVar3.d, 0, bArr3, wVar.e + wVar2.e, wVar3.e); + y yVar = new y(wVar2.d, 0, wVar2.e); + yVar.j(44); + int e = yVar.e(3); + yVar.i(); + int e2 = yVar.e(2); + boolean d = yVar.d(); + int e3 = yVar.e(5); + int i15 = 0; + int i16 = 0; + for (int i17 = 32; i15 < i17; i17 = 32) { + if (yVar.d()) { + i16 |= 1 << i15; + } + i15++; + } + int[] iArr = new int[6]; + for (int i18 = 0; i18 < 6; i18++) { + iArr[i18] = yVar.e(8); + } + int e4 = yVar.e(8); + int i19 = 0; + for (int i20 = 0; i20 < e; i20++) { + if (yVar.d()) { + i19 += 89; + } + if (yVar.d()) { + i19 += 8; + } + } + yVar.j(i19); + if (e > 0) { + yVar.j((8 - e) * 2); + } + yVar.f(); + int f = yVar.f(); + if (f == 3) { + yVar.i(); + } + int f2 = yVar.f(); + int f3 = yVar.f(); + if (yVar.d()) { + int f4 = yVar.f(); + int f5 = yVar.f(); + int f6 = yVar.f(); + int f7 = yVar.f(); + j = j5; + f2 -= (f4 + f5) * ((f == 1 || f == 2) ? 2 : 1); + f3 -= (f6 + f7) * (f == 1 ? 2 : 1); + } else { + j = j5; + } + yVar.f(); + yVar.f(); + int f8 = yVar.f(); + for (int i21 = yVar.d() ? 0 : e; i21 <= e; i21++) { + yVar.f(); + yVar.f(); + yVar.f(); + } + yVar.f(); + yVar.f(); + yVar.f(); + yVar.f(); + yVar.f(); + yVar.f(); + if (yVar.d() && yVar.d()) { + int i22 = 0; + for (int i23 = 4; i22 < i23; i23 = 4) { + int i24 = 0; + while (i24 < 6) { + if (!yVar.d()) { + yVar.f(); + j4 = j6; + } else { + j4 = j6; + int min = Math.min(64, 1 << ((i22 << 1) + 4)); + if (i22 > 1) { + yVar.g(); + } + for (int i25 = 0; i25 < min; i25++) { + yVar.g(); + } + } + i24 += i22 == 3 ? 3 : 1; + j6 = j4; + } + i22++; + } + } + j2 = j6; + yVar.j(2); + if (yVar.d()) { + yVar.j(8); + yVar.f(); + yVar.f(); + yVar.i(); + } + int f9 = yVar.f(); + int i26 = 0; + boolean z3 = false; + int i27 = 0; + while (i26 < f9) { + if (i26 != 0) { + z3 = yVar.d(); + } + if (z3) { + yVar.i(); + yVar.f(); + for (int i28 = 0; i28 <= i27; i28++) { + if (yVar.d()) { + yVar.i(); + } + } + i5 = f9; + } else { + int f10 = yVar.f(); + int f11 = yVar.f(); + int i29 = f10 + f11; + i5 = f9; + for (int i30 = 0; i30 < f10; i30++) { + yVar.f(); + yVar.i(); + } + for (int i31 = 0; i31 < f11; i31++) { + yVar.f(); + yVar.i(); + } + i27 = i29; + } + i26++; + f9 = i5; + } + if (yVar.d()) { + for (int i32 = 0; i32 < yVar.f(); i32++) { + yVar.j(f8 + 4 + 1); + } + } + yVar.j(2); + float f12 = 1.0f; + if (yVar.d()) { + if (yVar.d()) { + int e5 = yVar.e(8); + if (e5 == 255) { + int e6 = yVar.e(16); + int e7 = yVar.e(16); + if (!(e6 == 0 || e7 == 0)) { + f12 = ((float) e6) / ((float) e7); + } + } else { + float[] fArr = u.f964b; + if (e5 < fArr.length) { + f12 = fArr[e5]; + } else { + b.d.b.a.a.d0(46, "Unexpected aspect_ratio_idc value: ", e5, "H265Reader"); + } + } + } + if (yVar.d()) { + yVar.i(); + } + if (yVar.d()) { + yVar.j(4); + if (yVar.d()) { + yVar.j(24); + } + } + if (yVar.d()) { + yVar.f(); + yVar.f(); + } + yVar.i(); + if (yVar.d()) { + f3 *= 2; + } + } + String b3 = h.b(e2, d, e3, i16, iArr, e4); + j1.b bVar = new j1.b(); + bVar.a = str; + bVar.k = "video/hevc"; + bVar.h = b3; + bVar.p = f2; + bVar.q = f3; + bVar.t = f12; + bVar.m = Collections.singletonList(bArr3); + wVar4.e(bVar.a()); + this.e = true; + if (!this.j.b(i13)) { + w wVar5 = this.j; + this.n.C(this.j.d, u.f(wVar5.d, wVar5.e)); + this.n.F(5); + j3 = j2; + d.J(j3, this.n, this.a.f1232b); + } else { + j3 = j2; + } + if (this.k.b(i13)) { + w wVar6 = this.k; + this.n.C(this.k.d, u.f(wVar6.d, wVar6.e)); + this.n.F(5); + d.J(j3, this.n, this.a.f1232b); + } + long j7 = this.m; + a aVar2 = this.d; + boolean z4 = this.e; + aVar2.g = false; + aVar2.h = false; + aVar2.e = j7; + aVar2.d = 0; + aVar2.f1262b = j; + if (!(i >= 32 || i == 40)) { + if (aVar2.i && !aVar2.j) { + if (z4) { + aVar2.a(i2); + } + aVar2.i = false; + } + if ((32 <= i && i <= 35) || i == 39) { + aVar2.h = !aVar2.j; + aVar2.j = true; + } + } + boolean z5 = i < 16 && i <= 21; + aVar2.c = z5; + aVar2.f = !z5 || i <= 9; + if (this.e) { + this.g.d(i); + this.h.d(i); + this.i.d(i); + } + this.j.d(i); + this.k.d(i); + i7 = i4; + bArr2 = bArr; + } + } + } + } + i2 = i12; + i4 = i7; + bArr = bArr2; + i3 = i9; + i = i10; + j = j5; + j2 = j6; + if (!this.j.b(i13)) { + } + if (this.k.b(i13)) { + } + long j7 = this.m; + a aVar2 = this.d; + boolean z4 = this.e; + aVar2.g = false; + aVar2.h = false; + aVar2.e = j7; + aVar2.d = 0; + aVar2.f1262b = j; + if (!(i >= 32 || i == 40)) { + } + if (i < 16) { + } + aVar2.c = z5; + aVar2.f = !z5 || i <= 9; + if (this.e) { + } + this.j.d(i); + this.k.d(i); + i7 = i4; + bArr2 = bArr; + } + xVar2 = xVar; + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.l = 0; + this.m = -9223372036854775807L; + u.a(this.f); + this.g.c(); + this.h.c(); + this.i.c(); + this.j.c(); + this.k.c(); + a aVar = this.d; + if (aVar != null) { + aVar.f = false; + aVar.g = false; + aVar.h = false; + aVar.i = false; + aVar.j = false; + } + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.f1261b = dVar.b(); + w p = jVar.p(dVar.c(), 2); + this.c = p; + this.d = new a(p); + this.a.a(jVar, dVar); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.m = j; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/t.java b/app/src/main/java/b/i/a/c/x2/k0/t.java new file mode 100644 index 0000000000..36709fec1e --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/t.java @@ -0,0 +1,89 @@ +package b.i.a.c.x2.k0; + +import android.util.Log; +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +/* compiled from: Id3Reader */ +public final class t implements o { + public final x a = new x(10); + + /* renamed from: b reason: collision with root package name */ + public w f1263b; + public boolean c; + public long d = -9223372036854775807L; + public int e; + public int f; + + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + d.H(this.f1263b); + if (this.c) { + int a = xVar.a(); + int i = this.f; + if (i < 10) { + int min = Math.min(a, 10 - i); + System.arraycopy(xVar.a, xVar.f970b, this.a.a, this.f, min); + if (this.f + min == 10) { + this.a.E(0); + if (73 == this.a.t() && 68 == this.a.t() && 51 == this.a.t()) { + this.a.F(3); + this.e = this.a.s() + 10; + } else { + Log.w("Id3Reader", "Discarding invalid ID3 tag"); + this.c = false; + return; + } + } + } + int min2 = Math.min(a, this.e - this.f); + this.f1263b.c(xVar, min2); + this.f += min2; + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.c = false; + this.d = -9223372036854775807L; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + int i; + d.H(this.f1263b); + if (this.c && (i = this.e) != 0 && this.f == i) { + long j = this.d; + if (j != -9223372036854775807L) { + this.f1263b.d(j, 1, i, 0, null); + } + this.c = false; + } + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + w p = jVar.p(dVar.c(), 5); + this.f1263b = p; + j1.b bVar = new j1.b(); + bVar.a = dVar.b(); + bVar.k = "application/id3"; + p.e(bVar.a()); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if ((i & 4) != 0) { + this.c = true; + if (j != -9223372036854775807L) { + this.d = j; + } + this.e = 0; + this.f = 0; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/u.java b/app/src/main/java/b/i/a/c/x2/k0/u.java new file mode 100644 index 0000000000..44419d8df1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/u.java @@ -0,0 +1,258 @@ +package b.i.a.c.x2.k0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.l; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import com.google.android.exoplayer2.ParserException; +import java.util.Collections; +import java.util.Objects; +/* compiled from: LatmReader */ +public final class u implements o { + @Nullable + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final x f1264b; + public final w c; + public b.i.a.c.x2.w d; + public String e; + public j1 f; + public int g; + public int h; + public int i; + public int j; + public long k = -9223372036854775807L; + public boolean l; + public int m; + public int n; + public int o; + public boolean p; + public long q; + public int r; + + /* renamed from: s reason: collision with root package name */ + public long f1265s; + public int t; + @Nullable + public String u; + + public u(@Nullable String str) { + this.a = str; + x xVar = new x(1024); + this.f1264b = xVar; + this.c = new w(xVar.a); + } + + public static long a(w wVar) { + return (long) wVar.g((wVar.g(2) + 1) * 8); + } + + /* JADX WARNING: Code restructure failed: missing block: B:64:0x014c, code lost: + if (r14.l == false) goto L_0x01af; + */ + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) throws ParserException { + int i; + boolean f; + d.H(this.d); + while (xVar.a() > 0) { + int i2 = this.g; + if (i2 != 0) { + if (i2 == 1) { + int t = xVar.t(); + if ((t & 224) == 224) { + this.j = t; + this.g = 2; + } else if (t != 86) { + this.g = 0; + } + } else if (i2 == 2) { + int t2 = ((this.j & -225) << 8) | xVar.t(); + this.i = t2; + x xVar2 = this.f1264b; + byte[] bArr = xVar2.a; + if (t2 > bArr.length) { + if (bArr.length < t2) { + bArr = new byte[t2]; + } + xVar2.C(bArr, t2); + w wVar = this.c; + byte[] bArr2 = this.f1264b.a; + Objects.requireNonNull(wVar); + int length = bArr2.length; + wVar.a = bArr2; + wVar.f969b = 0; + wVar.c = 0; + wVar.d = length; + } + this.h = 0; + this.g = 3; + } else if (i2 == 3) { + int min = Math.min(xVar.a(), this.i - this.h); + xVar.e(this.c.a, this.h, min); + int i3 = this.h + min; + this.h = i3; + if (i3 == this.i) { + this.c.k(0); + w wVar2 = this.c; + if (!wVar2.f()) { + this.l = true; + int g = wVar2.g(1); + int g2 = g == 1 ? wVar2.g(1) : 0; + this.m = g2; + if (g2 == 0) { + if (g == 1) { + a(wVar2); + } + if (wVar2.f()) { + this.n = wVar2.g(6); + int g3 = wVar2.g(4); + int g4 = wVar2.g(3); + if (g3 == 0 && g4 == 0) { + if (g == 0) { + int e = wVar2.e(); + int g5 = g(wVar2); + wVar2.k(e); + byte[] bArr3 = new byte[((g5 + 7) / 8)]; + wVar2.h(bArr3, 0, g5); + j1.b bVar = new j1.b(); + bVar.a = this.e; + bVar.k = "audio/mp4a-latm"; + bVar.h = this.u; + bVar.f1009x = this.t; + bVar.f1010y = this.r; + bVar.m = Collections.singletonList(bArr3); + bVar.c = this.a; + j1 a = bVar.a(); + if (!a.equals(this.f)) { + this.f = a; + this.f1265s = 1024000000 / ((long) a.K); + this.d.e(a); + } + } else { + wVar2.m(((int) a(wVar2)) - g(wVar2)); + } + int g6 = wVar2.g(3); + this.o = g6; + if (g6 == 0) { + wVar2.m(8); + } else if (g6 == 1) { + wVar2.m(9); + } else if (g6 == 3 || g6 == 4 || g6 == 5) { + wVar2.m(6); + } else if (g6 == 6 || g6 == 7) { + wVar2.m(1); + } else { + throw new IllegalStateException(); + } + boolean f2 = wVar2.f(); + this.p = f2; + this.q = 0; + if (f2) { + if (g == 1) { + this.q = a(wVar2); + } else { + do { + f = wVar2.f(); + this.q = (this.q << 8) + ((long) wVar2.g(8)); + } while (f); + } + } + if (wVar2.f()) { + wVar2.m(8); + } + } else { + throw ParserException.a(null, null); + } + } else { + throw ParserException.a(null, null); + } + } else { + throw ParserException.a(null, null); + } + } + if (this.m != 0) { + throw ParserException.a(null, null); + } else if (this.n != 0) { + throw ParserException.a(null, null); + } else if (this.o == 0) { + int i4 = 0; + while (true) { + int g7 = wVar2.g(8); + i = i4 + g7; + if (g7 != 255) { + break; + } + i4 = i; + } + int e2 = wVar2.e(); + if ((e2 & 7) == 0) { + this.f1264b.E(e2 >> 3); + } else { + wVar2.h(this.f1264b.a, 0, i * 8); + this.f1264b.E(0); + } + this.d.c(this.f1264b, i); + long j = this.k; + if (j != -9223372036854775807L) { + this.d.d(j, 1, i, 0, null); + this.k += this.f1265s; + } + if (this.p) { + wVar2.m((int) this.q); + } + this.g = 0; + } else { + throw ParserException.a(null, null); + } + } else { + continue; + } + } else { + throw new IllegalStateException(); + } + } else if (xVar.t() == 86) { + this.g = 1; + } + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.g = 0; + this.k = -9223372036854775807L; + this.l = false; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.d = jVar.p(dVar.c(), 1); + this.e = dVar.b(); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.k = j; + } + } + + public final int g(w wVar) throws ParserException { + int b2 = wVar.b(); + l.b b3 = l.b(wVar, true); + this.u = b3.c; + this.r = b3.a; + this.t = b3.f1108b; + return b2 - wVar.b(); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/v.java b/app/src/main/java/b/i/a/c/x2/k0/v.java new file mode 100644 index 0000000000..33e2736118 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/v.java @@ -0,0 +1,142 @@ +package b.i.a.c.x2.k0; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.t2.a0; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +/* compiled from: MpegAudioReader */ +public final class v implements o { + public final x a; + + /* renamed from: b reason: collision with root package name */ + public final a0.a f1266b; + @Nullable + public final String c; + public w d; + public String e; + public int f = 0; + public int g; + public boolean h; + public boolean i; + public long j; + public int k; + public long l; + + public v(@Nullable String str) { + x xVar = new x(4); + this.a = xVar; + xVar.a[0] = -1; + this.f1266b = new a0.a(); + this.l = -9223372036854775807L; + this.c = str; + } + + @Override // b.i.a.c.x2.k0.o + public void b(x xVar) { + d.H(this.d); + while (xVar.a() > 0) { + int i = this.f; + if (i == 0) { + byte[] bArr = xVar.a; + int i2 = xVar.f970b; + int i3 = xVar.c; + while (true) { + if (i2 >= i3) { + xVar.E(i3); + break; + } + boolean z2 = (bArr[i2] & 255) == 255; + boolean z3 = this.i && (bArr[i2] & 224) == 224; + this.i = z2; + if (z3) { + xVar.E(i2 + 1); + this.i = false; + this.a.a[1] = bArr[i2]; + this.g = 2; + this.f = 1; + break; + } + i2++; + } + } else if (i == 1) { + int min = Math.min(xVar.a(), 4 - this.g); + xVar.e(this.a.a, this.g, min); + int i4 = this.g + min; + this.g = i4; + if (i4 >= 4) { + this.a.E(0); + if (!this.f1266b.a(this.a.f())) { + this.g = 0; + this.f = 1; + } else { + a0.a aVar = this.f1266b; + this.k = aVar.c; + if (!this.h) { + int i5 = aVar.d; + this.j = (((long) aVar.g) * 1000000) / ((long) i5); + j1.b bVar = new j1.b(); + bVar.a = this.e; + bVar.k = aVar.f1102b; + bVar.l = 4096; + bVar.f1009x = aVar.e; + bVar.f1010y = i5; + bVar.c = this.c; + this.d.e(bVar.a()); + this.h = true; + } + this.a.E(0); + this.d.c(this.a, 4); + this.f = 2; + } + } + } else if (i == 2) { + int min2 = Math.min(xVar.a(), this.k - this.g); + this.d.c(xVar, min2); + int i6 = this.g + min2; + this.g = i6; + int i7 = this.k; + if (i6 >= i7) { + long j = this.l; + if (j != -9223372036854775807L) { + this.d.d(j, 1, i7, 0, null); + this.l += this.j; + } + this.g = 0; + this.f = 0; + } + } else { + throw new IllegalStateException(); + } + } + } + + @Override // b.i.a.c.x2.k0.o + public void c() { + this.f = 0; + this.g = 0; + this.i = false; + this.l = -9223372036854775807L; + } + + @Override // b.i.a.c.x2.k0.o + public void d() { + } + + @Override // b.i.a.c.x2.k0.o + public void e(j jVar, i0.d dVar) { + dVar.a(); + this.e = dVar.b(); + this.d = jVar.p(dVar.c(), 1); + } + + @Override // b.i.a.c.x2.k0.o + public void f(long j, int i) { + if (j != -9223372036854775807L) { + this.l = j; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/w.java b/app/src/main/java/b/i/a/c/x2/k0/w.java new file mode 100644 index 0000000000..c7b63efd49 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/w.java @@ -0,0 +1,63 @@ +package b.i.a.c.x2.k0; + +import b.c.a.a0.d; +import java.util.Arrays; +/* compiled from: NalUnitTargetBuffer */ +public final class w { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1267b; + public boolean c; + public byte[] d; + public int e; + + public w(int i, int i2) { + this.a = i; + byte[] bArr = new byte[(i2 + 3)]; + this.d = bArr; + bArr[2] = 1; + } + + public void a(byte[] bArr, int i, int i2) { + if (this.f1267b) { + int i3 = i2 - i; + byte[] bArr2 = this.d; + int length = bArr2.length; + int i4 = this.e; + if (length < i4 + i3) { + this.d = Arrays.copyOf(bArr2, (i4 + i3) * 2); + } + System.arraycopy(bArr, i, this.d, this.e, i3); + this.e += i3; + } + } + + public boolean b(int i) { + if (!this.f1267b) { + return false; + } + this.e -= i; + this.f1267b = false; + this.c = true; + return true; + } + + public void c() { + this.f1267b = false; + this.c = false; + } + + public void d(int i) { + boolean z2 = true; + d.D(!this.f1267b); + if (i != this.a) { + z2 = false; + } + this.f1267b = z2; + if (z2) { + this.e = 3; + this.c = false; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/x.java b/app/src/main/java/b/i/a/c/x2/k0/x.java new file mode 100644 index 0000000000..c7cd06db81 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/x.java @@ -0,0 +1,58 @@ +package b.i.a.c.x2.k0; + +import b.c.a.a0.d; +import b.i.a.c.f3.d0; +import b.i.a.c.f3.e0; +import b.i.a.c.j1; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import b.i.a.c.x2.w; +/* compiled from: PassthroughSectionPayloadReader */ +public final class x implements c0 { + public j1 a; + + /* renamed from: b reason: collision with root package name */ + public d0 f1268b; + public w c; + + public x(String str) { + j1.b bVar = new j1.b(); + bVar.k = str; + this.a = bVar.a(); + } + + @Override // b.i.a.c.x2.k0.c0 + public void a(d0 d0Var, j jVar, i0.d dVar) { + this.f1268b = d0Var; + dVar.a(); + w p = jVar.p(dVar.c(), 5); + this.c = p; + p.e(this.a); + } + + @Override // b.i.a.c.x2.k0.c0 + public void b(b.i.a.c.f3.x xVar) { + long c; + d.H(this.f1268b); + int i = e0.a; + d0 d0Var = this.f1268b; + synchronized (d0Var) { + long j = d0Var.c; + c = j != -9223372036854775807L ? j + d0Var.f952b : d0Var.c(); + } + long d = this.f1268b.d(); + if (c != -9223372036854775807L && d != -9223372036854775807L) { + j1 j1Var = this.a; + if (d != j1Var.A) { + j1.b a = j1Var.a(); + a.o = d; + j1 a2 = a.a(); + this.a = a2; + this.c.e(a2); + } + int a3 = xVar.a(); + this.c.c(xVar, a3); + this.c.d(c, 1, a3, 0, null); + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/y.java b/app/src/main/java/b/i/a/c/x2/k0/y.java new file mode 100644 index 0000000000..acb426e702 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/y.java @@ -0,0 +1,187 @@ +package b.i.a.c.x2.k0; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.c.f3.d0; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.x2.j; +import b.i.a.c.x2.k0.i0; +import com.google.android.exoplayer2.ParserException; +/* compiled from: PesReader */ +public final class y implements i0 { + public final o a; + + /* renamed from: b reason: collision with root package name */ + public final w f1269b = new w(new byte[10]); + public int c = 0; + public int d; + public d0 e; + public boolean f; + public boolean g; + public boolean h; + public int i; + public int j; + public boolean k; + public long l; + + public y(o oVar) { + this.a = oVar; + } + + @Override // b.i.a.c.x2.k0.i0 + public void a(d0 d0Var, j jVar, i0.d dVar) { + this.e = d0Var; + this.a.e(jVar, dVar); + } + + @Override // b.i.a.c.x2.k0.i0 + public final void b(x xVar, int i) throws ParserException { + boolean z2; + d.H(this.e); + int i2 = -1; + int i3 = 3; + if ((i & 1) != 0) { + int i4 = this.c; + if (!(i4 == 0 || i4 == 1)) { + if (i4 == 2) { + Log.w("PesReader", "Unexpected start indicator reading extended header"); + } else if (i4 == 3) { + int i5 = this.j; + if (i5 != -1) { + StringBuilder sb = new StringBuilder(59); + sb.append("Unexpected start indicator: expected "); + sb.append(i5); + sb.append(" more bytes"); + Log.w("PesReader", sb.toString()); + } + this.a.d(); + } else { + throw new IllegalStateException(); + } + } + e(1); + } + while (xVar.a() > 0) { + int i6 = this.c; + if (i6 != 0) { + int i7 = 0; + if (i6 != 1) { + if (i6 == 2) { + if (d(xVar, this.f1269b.a, Math.min(10, this.i)) && d(xVar, null, this.i)) { + this.f1269b.k(0); + this.l = -9223372036854775807L; + if (this.f) { + this.f1269b.m(4); + this.f1269b.m(1); + this.f1269b.m(1); + long g = (((long) this.f1269b.g(i3)) << 30) | ((long) (this.f1269b.g(15) << 15)) | ((long) this.f1269b.g(15)); + this.f1269b.m(1); + if (!this.h && this.g) { + this.f1269b.m(4); + this.f1269b.m(1); + this.f1269b.m(1); + this.f1269b.m(1); + this.e.b((((long) this.f1269b.g(i3)) << 30) | ((long) (this.f1269b.g(15) << 15)) | ((long) this.f1269b.g(15))); + this.h = true; + } + this.l = this.e.b(g); + } + i |= this.k ? 4 : 0; + this.a.f(this.l, i); + e(3); + } + } else if (i6 == i3) { + int a = xVar.a(); + int i8 = this.j; + if (i8 != i2) { + i7 = a - i8; + } + if (i7 > 0) { + a -= i7; + xVar.D(xVar.f970b + a); + } + this.a.b(xVar); + int i9 = this.j; + if (i9 != i2) { + int i10 = i9 - a; + this.j = i10; + if (i10 == 0) { + this.a.d(); + e(1); + } + } + } else { + throw new IllegalStateException(); + } + } else if (d(xVar, this.f1269b.a, 9)) { + this.f1269b.k(0); + int g2 = this.f1269b.g(24); + if (g2 != 1) { + a.d0(41, "Unexpected start code prefix: ", g2, "PesReader"); + this.j = -1; + z2 = false; + } else { + this.f1269b.m(8); + int g3 = this.f1269b.g(16); + this.f1269b.m(5); + this.k = this.f1269b.f(); + this.f1269b.m(2); + this.f = this.f1269b.f(); + this.g = this.f1269b.f(); + this.f1269b.m(6); + int g4 = this.f1269b.g(8); + this.i = g4; + if (g3 == 0) { + this.j = -1; + } else { + int i11 = ((g3 + 6) - 9) - g4; + this.j = i11; + if (i11 < 0) { + a.d0(47, "Found negative packet payload size: ", i11, "PesReader"); + this.j = -1; + } + } + z2 = true; + } + e(z2 ? 2 : 0); + } + } else { + xVar.F(xVar.a()); + } + i2 = -1; + i3 = 3; + } + } + + @Override // b.i.a.c.x2.k0.i0 + public final void c() { + this.c = 0; + this.d = 0; + this.h = false; + this.a.c(); + } + + public final boolean d(x xVar, @Nullable byte[] bArr, int i) { + int min = Math.min(xVar.a(), i - this.d); + if (min <= 0) { + return true; + } + if (bArr == null) { + xVar.F(min); + } else { + System.arraycopy(xVar.a, xVar.f970b, bArr, this.d, min); + xVar.f970b += min; + } + int i2 = this.d + min; + this.d = i2; + return i2 == i; + } + + public final void e(int i) { + this.c = i; + this.d = 0; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/k0/z.java b/app/src/main/java/b/i/a/c/x2/k0/z.java new file mode 100644 index 0000000000..8c338ad8f4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/k0/z.java @@ -0,0 +1,106 @@ +package b.i.a.c.x2.k0; + +import b.i.a.c.f3.d0; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.x2.a; +import b.i.a.c.x2.i; +import java.io.IOException; +/* compiled from: PsBinarySearchSeeker */ +public final class z extends b.i.a.c.x2.a { + + /* compiled from: PsBinarySearchSeeker */ + public static final class b implements a.f { + public final d0 a; + + /* renamed from: b reason: collision with root package name */ + public final x f1270b = new x(); + + public b(d0 d0Var, a aVar) { + this.a = d0Var; + } + + @Override // b.i.a.c.x2.a.f + public void a() { + this.f1270b.B(e0.f); + } + + @Override // b.i.a.c.x2.a.f + public a.e b(i iVar, long j) throws IOException { + int g; + long position = iVar.getPosition(); + int min = (int) Math.min(20000L, iVar.b() - position); + this.f1270b.A(min); + iVar.o(this.f1270b.a, 0, min); + x xVar = this.f1270b; + int i = -1; + long j2 = -9223372036854775807L; + int i2 = -1; + while (xVar.a() >= 4) { + if (z.g(xVar.a, xVar.f970b) != 442) { + xVar.F(1); + } else { + xVar.F(4); + long c = a0.c(xVar); + if (c != -9223372036854775807L) { + long b2 = this.a.b(c); + if (b2 > j) { + return j2 == -9223372036854775807L ? a.e.a(b2, position) : a.e.b(position + ((long) i2)); + } + if (100000 + b2 > j) { + return a.e.b(position + ((long) xVar.f970b)); + } + i2 = xVar.f970b; + j2 = b2; + } + int i3 = xVar.c; + if (xVar.a() >= 10) { + xVar.F(9); + int t = xVar.t() & 7; + if (xVar.a() >= t) { + xVar.F(t); + if (xVar.a() >= 4) { + if (z.g(xVar.a, xVar.f970b) == 443) { + xVar.F(4); + int y2 = xVar.y(); + if (xVar.a() < y2) { + xVar.E(i3); + } else { + xVar.F(y2); + } + } + while (true) { + if (xVar.a() < 4 || (g = z.g(xVar.a, xVar.f970b)) == 442 || g == 441 || (g >>> 8) != 1) { + break; + } + xVar.F(4); + if (xVar.a() < 2) { + xVar.E(i3); + break; + } + xVar.E(Math.min(xVar.c, xVar.f970b + xVar.y())); + } + } else { + xVar.E(i3); + } + } else { + xVar.E(i3); + } + } else { + xVar.E(i3); + } + i = xVar.f970b; + } + } + return j2 != -9223372036854775807L ? a.e.c(j2, position + ((long) i)) : a.e.a; + } + } + + public z(d0 d0Var, long j, long j2) { + super(new a.b(), new b(d0Var, null), j, 0, j + 1, 0, j2, 188, 1000); + } + + public static int g(byte[] bArr, int i) { + return (bArr[i + 3] & 255) | ((bArr[i] & 255) << 24) | ((bArr[i + 1] & 255) << 16) | ((bArr[i + 2] & 255) << 8); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/l.java b/app/src/main/java/b/i/a/c/x2/l.java new file mode 100644 index 0000000000..f9f43fa52a --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/l.java @@ -0,0 +1,11 @@ +package b.i.a.c.x2; + +import android.net.Uri; +import java.util.List; +import java.util.Map; +/* compiled from: ExtractorsFactory */ +public interface l { + h[] a(); + + h[] b(Uri uri, Map> map); +} diff --git a/app/src/main/java/b/i/a/c/x2/l0/a.java b/app/src/main/java/b/i/a/c/x2/l0/a.java new file mode 100644 index 0000000000..7997d086ae --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/l0/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.l0; + +import android.net.Uri; +import b.i.a.c.x2.h; +import b.i.a.c.x2.k; +import b.i.a.c.x2.l; +import java.util.Map; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.x2.l + public final h[] a() { + return new h[]{new b()}; + } + + @Override // b.i.a.c.x2.l + public /* synthetic */ h[] b(Uri uri, Map map) { + return k.a(this, uri, map); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/l0/b.java b/app/src/main/java/b/i/a/c/x2/l0/b.java new file mode 100644 index 0000000000..a450bd1300 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/l0/b.java @@ -0,0 +1,380 @@ +package b.i.a.c.x2.l0; + +import android.util.Log; +import android.util.Pair; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import b.i.a.c.x2.h; +import b.i.a.c.x2.i; +import b.i.a.c.x2.j; +import b.i.a.c.x2.s; +import b.i.a.c.x2.w; +import com.google.android.exoplayer2.ParserException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: WavExtractor */ +public final class b implements h { + public j a; + + /* renamed from: b reason: collision with root package name */ + public w f1271b; + public int c = 0; + public AbstractC0096b d; + public int e = -1; + public long f = -1; + + /* compiled from: WavExtractor */ + public static final class a implements AbstractC0096b { + public static final int[] a = {-1, -1, -1, -1, 2, 4, 6, 8, -1, -1, -1, -1, 2, 4, 6, 8}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1272b = {7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50, 55, 60, 66, 73, 80, 88, 97, 107, 118, 130, 143, 157, 173, 190, 209, 230, 253, 279, 307, 337, 371, 408, 449, 494, 544, 598, 658, 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066, 2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358, 5894, 6484, 7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899, 15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767}; + public final j c; + public final w d; + public final c e; + public final int f; + public final byte[] g; + public final x h; + public final int i; + public final j1 j; + public int k; + public long l; + public int m; + public long n; + + public a(j jVar, w wVar, c cVar) throws ParserException { + this.c = jVar; + this.d = wVar; + this.e = cVar; + int max = Math.max(1, cVar.c / 10); + this.i = max; + byte[] bArr = cVar.f; + int length = bArr.length; + byte b2 = bArr[0]; + byte b3 = bArr[1]; + int i = ((bArr[3] & 255) << 8) | (bArr[2] & 255); + this.f = i; + int i2 = cVar.f1274b; + int i3 = (((cVar.d - (i2 * 4)) * 8) / (cVar.e * i2)) + 1; + if (i == i3) { + int f = e0.f(max, i); + this.g = new byte[(cVar.d * f)]; + this.h = new x(i * 2 * i2 * f); + int i4 = cVar.c; + int i5 = ((cVar.d * i4) * 8) / i; + j1.b bVar = new j1.b(); + bVar.k = "audio/raw"; + bVar.f = i5; + bVar.g = i5; + bVar.l = max * 2 * i2; + bVar.f1009x = cVar.f1274b; + bVar.f1010y = i4; + bVar.f1011z = 2; + this.j = bVar.a(); + return; + } + throw ParserException.a(b.d.b.a.a.g(56, "Expected frames per block: ", i3, "; got: ", i), null); + } + + @Override // b.i.a.c.x2.l0.b.AbstractC0096b + public void a(long j) { + this.k = 0; + this.l = j; + this.m = 0; + this.n = 0; + } + + @Override // b.i.a.c.x2.l0.b.AbstractC0096b + public void b(int i, long j) { + this.c.a(new e(this.e, this.f, (long) i, j)); + this.d.e(this.j); + } + + /* JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor + jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached + at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:57) + at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31) + at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:15) + */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x0049 A[ADDED_TO_REGION, EDGE_INSN: B:41:0x0049->B:12:0x0049 ?: BREAK , SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:6:0x002b */ + @Override // b.i.a.c.x2.l0.b.AbstractC0096b + public boolean c(b.i.a.c.x2.i r19, long r20) throws java.io.IOException { + /* + // Method dump skipped, instructions count: 364 + */ + throw new UnsupportedOperationException("Method not decompiled: b.i.a.c.x2.l0.b.a.c(b.i.a.c.x2.i, long):boolean"); + } + + public final int d(int i) { + return i / (this.e.f1274b * 2); + } + + public final void e(int i) { + long F = this.l + e0.F(this.n, 1000000, (long) this.e.c); + int i2 = i * 2 * this.e.f1274b; + this.d.d(F, 1, i2, this.m - i2, null); + this.n += (long) i; + this.m -= i2; + } + } + + /* compiled from: WavExtractor */ + /* renamed from: b.i.a.c.x2.l0.b$b reason: collision with other inner class name */ + public interface AbstractC0096b { + void a(long j); + + void b(int i, long j) throws ParserException; + + boolean c(i iVar, long j) throws IOException; + } + + /* compiled from: WavExtractor */ + public static final class c implements AbstractC0096b { + public final j a; + + /* renamed from: b reason: collision with root package name */ + public final w f1273b; + public final c c; + public final j1 d; + public final int e; + public long f; + public int g; + public long h; + + public c(j jVar, w wVar, c cVar, String str, int i) throws ParserException { + this.a = jVar; + this.f1273b = wVar; + this.c = cVar; + int i2 = (cVar.f1274b * cVar.e) / 8; + int i3 = cVar.d; + if (i3 == i2) { + int i4 = cVar.c * i2; + int i5 = i4 * 8; + int max = Math.max(i2, i4 / 10); + this.e = max; + j1.b bVar = new j1.b(); + bVar.k = str; + bVar.f = i5; + bVar.g = i5; + bVar.l = max; + bVar.f1009x = cVar.f1274b; + bVar.f1010y = cVar.c; + bVar.f1011z = i; + this.d = bVar.a(); + return; + } + throw ParserException.a(b.d.b.a.a.g(50, "Expected block size: ", i2, "; got: ", i3), null); + } + + @Override // b.i.a.c.x2.l0.b.AbstractC0096b + public void a(long j) { + this.f = j; + this.g = 0; + this.h = 0; + } + + @Override // b.i.a.c.x2.l0.b.AbstractC0096b + public void b(int i, long j) { + this.a.a(new e(this.c, 1, (long) i, j)); + this.f1273b.e(this.d); + } + + @Override // b.i.a.c.x2.l0.b.AbstractC0096b + public boolean c(i iVar, long j) throws IOException { + int i; + int i2; + int i3; + long j2 = j; + while (true) { + i = (j2 > 0 ? 1 : (j2 == 0 ? 0 : -1)); + if (i <= 0 || (i2 = this.g) >= (i3 = this.e)) { + break; + } + int b2 = this.f1273b.b(iVar, (int) Math.min((long) (i3 - i2), j2), true); + if (b2 == -1) { + j2 = 0; + } else { + this.g += b2; + j2 -= (long) b2; + } + } + c cVar = this.c; + int i4 = cVar.d; + int i5 = this.g / i4; + if (i5 > 0) { + int i6 = i5 * i4; + int i7 = this.g - i6; + this.f1273b.d(this.f + e0.F(this.h, 1000000, (long) cVar.c), 1, i6, i7, null); + this.h += (long) i5; + this.g = i7; + } + return i <= 0; + } + } + + static { + a aVar = a.a; + } + + @Override // b.i.a.c.x2.h + public boolean b(i iVar) throws IOException { + return d.r(iVar); + } + + /* JADX WARNING: Removed duplicated region for block: B:63:0x01c0 */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x01d8 */ + @Override // b.i.a.c.x2.h + public int e(i iVar, s sVar) throws IOException { + byte[] bArr; + int i; + int i2; + d.H(this.f1271b); + int i3 = e0.a; + int i4 = this.c; + boolean z2 = true; + if (i4 == 0) { + d.D(iVar.getPosition() == 0); + int i5 = this.e; + if (i5 != -1) { + iVar.l(i5); + this.c = 3; + } else if (d.r(iVar)) { + iVar.l((int) (iVar.f() - iVar.getPosition())); + this.c = 1; + } else { + throw ParserException.a("Unsupported or unrecognized wav file type.", null); + } + return 0; + } else if (i4 == 1) { + x xVar = new x(16); + d a2 = d.a(iVar, xVar); + while (a2.a != 1718449184) { + iVar.l(((int) a2.f1275b) + 8); + a2 = d.a(iVar, xVar); + } + d.D(a2.f1275b >= 16); + iVar.o(xVar.a, 0, 16); + xVar.E(0); + int l = xVar.l(); + int l2 = xVar.l(); + int k = xVar.k(); + int k2 = xVar.k(); + int l3 = xVar.l(); + int l4 = xVar.l(); + int i6 = ((int) a2.f1275b) - 16; + if (i6 > 0) { + bArr = new byte[i6]; + iVar.o(bArr, 0, i6); + } else { + bArr = e0.f; + } + iVar.l((int) (iVar.f() - iVar.getPosition())); + c cVar = new c(l, l2, k, k2, l3, l4, bArr); + if (l == 17) { + this.d = new a(this.a, this.f1271b, cVar); + } else if (l == 6) { + this.d = new c(this.a, this.f1271b, cVar, "audio/g711-alaw", -1); + } else if (l == 7) { + this.d = new c(this.a, this.f1271b, cVar, "audio/g711-mlaw", -1); + } else { + if (l != 1) { + if (l == 3) { + i2 = l4 == 32 ? 4 : 0; + i = i2; + if (i != 0) { + } + } else if (l != 65534) { + i = 0; + if (i != 0) { + this.d = new c(this.a, this.f1271b, cVar, "audio/raw", i); + } else { + StringBuilder sb = new StringBuilder(40); + sb.append("Unsupported WAV format type: "); + sb.append(l); + throw ParserException.b(sb.toString()); + } + } + } + i2 = e0.r(l4); + i = i2; + if (i != 0) { + } + } + this.c = 2; + return 0; + } else if (i4 == 2) { + iVar.k(); + x xVar2 = new x(8); + d a3 = d.a(iVar, xVar2); + while (true) { + int i7 = a3.a; + if (i7 != 1684108385) { + b.d.b.a.a.d0(39, "Ignoring unknown WAV chunk: ", i7, "WavHeaderReader"); + long j = a3.f1275b + 8; + if (j <= 2147483647L) { + iVar.l((int) j); + a3 = d.a(iVar, xVar2); + } else { + int i8 = a3.a; + StringBuilder sb2 = new StringBuilder(51); + sb2.append("Chunk is too large (~2GB+) to skip; id: "); + sb2.append(i8); + throw ParserException.b(sb2.toString()); + } + } else { + iVar.l(8); + long position = iVar.getPosition(); + long j2 = a3.f1275b + position; + long b2 = iVar.b(); + if (b2 != -1 && j2 > b2) { + StringBuilder P = b.d.b.a.a.P(69, "Data exceeds input length: ", j2, ", "); + P.append(b2); + Log.w("WavHeaderReader", P.toString()); + j2 = b2; + } + Pair create = Pair.create(Long.valueOf(position), Long.valueOf(j2)); + this.e = ((Long) create.first).intValue(); + this.f = ((Long) create.second).longValue(); + AbstractC0096b bVar = this.d; + Objects.requireNonNull(bVar); + bVar.b(this.e, this.f); + this.c = 3; + return 0; + } + } + } else if (i4 == 3) { + if (this.f == -1) { + z2 = false; + } + d.D(z2); + AbstractC0096b bVar2 = this.d; + Objects.requireNonNull(bVar2); + return bVar2.c(iVar, this.f - iVar.getPosition()) ? -1 : 0; + } else { + throw new IllegalStateException(); + } + } + + @Override // b.i.a.c.x2.h + public void f(j jVar) { + this.a = jVar; + this.f1271b = jVar.p(0, 1); + jVar.j(); + } + + @Override // b.i.a.c.x2.h + public void g(long j, long j2) { + this.c = j == 0 ? 0 : 3; + AbstractC0096b bVar = this.d; + if (bVar != null) { + bVar.a(j2); + } + } + + @Override // b.i.a.c.x2.h + public void release() { + } +} diff --git a/app/src/main/java/b/i/a/c/x2/l0/c.java b/app/src/main/java/b/i/a/c/x2/l0/c.java new file mode 100644 index 0000000000..4ff82ba691 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/l0/c.java @@ -0,0 +1,21 @@ +package b.i.a.c.x2.l0; +/* compiled from: WavFormat */ +public final class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1274b; + public final int c; + public final int d; + public final int e; + public final byte[] f; + + public c(int i, int i2, int i3, int i4, int i5, int i6, byte[] bArr) { + this.a = i; + this.f1274b = i2; + this.c = i3; + this.d = i5; + this.e = i6; + this.f = bArr; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/l0/d.java b/app/src/main/java/b/i/a/c/x2/l0/d.java new file mode 100644 index 0000000000..0fea4956a1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/l0/d.java @@ -0,0 +1,23 @@ +package b.i.a.c.x2.l0; + +import b.i.a.c.f3.x; +import b.i.a.c.x2.i; +import java.io.IOException; +/* compiled from: WavHeaderReader */ +public final class d { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final long f1275b; + + public d(int i, long j) { + this.a = i; + this.f1275b = j; + } + + public static d a(i iVar, x xVar) throws IOException { + iVar.o(xVar.a, 0, 8); + xVar.E(0); + return new d(xVar.f(), xVar.j()); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/l0/e.java b/app/src/main/java/b/i/a/c/x2/l0/e.java new file mode 100644 index 0000000000..34b8e7f804 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/l0/e.java @@ -0,0 +1,51 @@ +package b.i.a.c.x2.l0; + +import b.i.a.c.f3.e0; +import b.i.a.c.x2.t; +import b.i.a.c.x2.u; +/* compiled from: WavSeekMap */ +public final class e implements t { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final int f1276b; + public final long c; + public final long d; + public final long e; + + public e(c cVar, int i, long j, long j2) { + this.a = cVar; + this.f1276b = i; + this.c = j; + long j3 = (j2 - j) / ((long) cVar.d); + this.d = j3; + this.e = b(j3); + } + + public final long b(long j) { + return e0.F(j * ((long) this.f1276b), 1000000, (long) this.a.c); + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + long i = e0.i((((long) this.a.c) * j) / (((long) this.f1276b) * 1000000), 0, this.d - 1); + long j2 = (((long) this.a.d) * i) + this.c; + long b2 = b(i); + u uVar = new u(b2, j2); + if (b2 >= j || i == this.d - 1) { + return new t.a(uVar); + } + long j3 = i + 1; + return new t.a(uVar, new u(b(j3), (((long) this.a.d) * j3) + this.c)); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.e; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/m.java b/app/src/main/java/b/i/a/c/x2/m.java new file mode 100644 index 0000000000..929cd98c11 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/m.java @@ -0,0 +1,118 @@ +package b.i.a.c.x2; + +import b.i.a.c.f3.e0; +import b.i.a.c.f3.x; +/* compiled from: FlacFrameReader */ +public final class m { + + /* compiled from: FlacFrameReader */ + public static final class a { + public long a; + } + + public static boolean a(x xVar, o oVar, boolean z2, a aVar) { + try { + long z3 = xVar.z(); + if (!z2) { + z3 *= (long) oVar.f1278b; + } + aVar.a = z3; + return true; + } catch (NumberFormatException unused) { + return false; + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:43:0x008e, code lost: + if (r7 == r18.f) goto L_0x00ac; + */ + /* JADX WARNING: Code restructure failed: missing block: B:47:0x009b, code lost: + if ((r17.t() * 1000) == r3) goto L_0x00ac; + */ + /* JADX WARNING: Code restructure failed: missing block: B:53:0x00aa, code lost: + if (r4 == r3) goto L_0x00ac; + */ + /* JADX WARNING: Removed duplicated region for block: B:57:0x00b1 */ + /* JADX WARNING: Removed duplicated region for block: B:71:? A[RETURN, SYNTHETIC] */ + public static boolean b(x xVar, o oVar, int i, a aVar) { + boolean z2; + long u = xVar.u(); + long j = u >>> 16; + if (j != ((long) i)) { + return false; + } + boolean z3 = (j & 1) == 1; + int i2 = (int) ((u >> 12) & 15); + int i3 = (int) ((u >> 8) & 15); + int i4 = (int) (15 & (u >> 4)); + int i5 = (int) ((u >> 1) & 7); + boolean z4 = (u & 1) == 1; + if (!(i4 > 7 ? !(i4 > 10 || oVar.g != 2) : i4 == oVar.g - 1)) { + return false; + } + if (!(i5 == 0 || i5 == oVar.i) || z4 || !a(xVar, oVar, z3, aVar)) { + return false; + } + int c = c(xVar, i2); + if (!(c != -1 && c <= oVar.f1278b)) { + return false; + } + int i6 = oVar.e; + if (i3 != 0) { + if (i3 > 11) { + if (i3 != 12) { + if (i3 <= 14) { + int y2 = xVar.y(); + if (i3 == 14) { + y2 *= 10; + } + } + } + } + z2 = false; + if (z2) { + return false; + } + int t = xVar.t(); + int i7 = xVar.f970b; + byte[] bArr = xVar.a; + int i8 = i7 - 1; + int i9 = e0.a; + int i10 = 0; + for (int i11 = xVar.f970b; i11 < i8; i11++) { + i10 = e0.l[i10 ^ (bArr[i11] & 255)]; + } + return t == i10; + } + z2 = true; + if (z2) { + } + } + + public static int c(x xVar, int i) { + switch (i) { + case 1: + return 192; + case 2: + case 3: + case 4: + case 5: + return 576 << (i - 2); + case 6: + return xVar.t() + 1; + case 7: + return xVar.y() + 1; + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + return 256 << (i - 8); + default: + return -1; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/n.java b/app/src/main/java/b/i/a/c/x2/n.java new file mode 100644 index 0000000000..3d469df252 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/n.java @@ -0,0 +1,53 @@ +package b.i.a.c.x2; + +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.x2.o; +import b.i.a.c.x2.t; +/* compiled from: FlacSeekTableSeekMap */ +public final class n implements t { + public final o a; + + /* renamed from: b reason: collision with root package name */ + public final long f1277b; + + public n(o oVar, long j) { + this.a = oVar; + this.f1277b = j; + } + + public final u b(long j, long j2) { + return new u((j * 1000000) / ((long) this.a.e), this.f1277b + j2); + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return true; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + d.H(this.a.k); + o oVar = this.a; + o.a aVar = oVar.k; + long[] jArr = aVar.a; + long[] jArr2 = aVar.f1279b; + int e = e0.e(jArr, oVar.g(j), true, false); + long j2 = 0; + long j3 = e == -1 ? 0 : jArr[e]; + if (e != -1) { + j2 = jArr2[e]; + } + u b2 = b(j3, j2); + if (b2.f1284b == j || e == jArr.length - 1) { + return new t.a(b2); + } + int i = e + 1; + return new t.a(b2, b(jArr[i], jArr2[i])); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.a.d(); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/o.java b/app/src/main/java/b/i/a/c/x2/o.java new file mode 100644 index 0000000000..58832f6d90 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/o.java @@ -0,0 +1,186 @@ +package b.i.a.c.x2; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.w; +import b.i.a.c.j1; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.flac.PictureFrame; +import com.google.android.exoplayer2.metadata.flac.VorbisComment; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +/* compiled from: FlacStreamMetadata */ +public final class o { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1278b; + public final int c; + public final int d; + public final int e; + public final int f; + public final int g; + public final int h; + public final int i; + public final long j; + @Nullable + public final a k; + @Nullable + public final Metadata l; + + /* compiled from: FlacStreamMetadata */ + public static class a { + public final long[] a; + + /* renamed from: b reason: collision with root package name */ + public final long[] f1279b; + + public a(long[] jArr, long[] jArr2) { + this.a = jArr; + this.f1279b = jArr2; + } + } + + public o(int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, @Nullable a aVar, @Nullable Metadata metadata) { + this.a = i; + this.f1278b = i2; + this.c = i3; + this.d = i4; + this.e = i5; + this.f = h(i5); + this.g = i6; + this.h = i7; + this.i = c(i7); + this.j = j; + this.k = aVar; + this.l = metadata; + } + + public o(byte[] bArr, int i) { + w wVar = new w(bArr); + wVar.k(i * 8); + this.a = wVar.g(16); + this.f1278b = wVar.g(16); + this.c = wVar.g(24); + this.d = wVar.g(24); + int g = wVar.g(20); + this.e = g; + this.f = h(g); + this.g = wVar.g(3) + 1; + int g2 = wVar.g(5) + 1; + this.h = g2; + this.i = c(g2); + this.j = (e0.L(wVar.g(4)) << 32) | e0.L(wVar.g(32)); + this.k = null; + this.l = null; + } + + @Nullable + public static Metadata a(List list, List list2) { + if (list.isEmpty() && list2.isEmpty()) { + return null; + } + ArrayList arrayList = new ArrayList(); + for (int i = 0; i < list.size(); i++) { + String str = list.get(i); + String[] I = e0.I(str, "="); + if (I.length != 2) { + String valueOf = String.valueOf(str); + Log.w("FlacStreamMetadata", valueOf.length() != 0 ? "Failed to parse Vorbis comment: ".concat(valueOf) : new String("Failed to parse Vorbis comment: ")); + } else { + arrayList.add(new VorbisComment(I[0], I[1])); + } + } + arrayList.addAll(list2); + if (arrayList.isEmpty()) { + return null; + } + return new Metadata(arrayList); + } + + public static int c(int i) { + if (i == 8) { + return 1; + } + if (i == 12) { + return 2; + } + if (i == 16) { + return 4; + } + if (i != 20) { + return i != 24 ? -1 : 6; + } + return 5; + } + + public static int h(int i) { + switch (i) { + case 8000: + return 4; + case 16000: + return 5; + case 22050: + return 6; + case 24000: + return 7; + case 32000: + return 8; + case 44100: + return 9; + case 48000: + return 10; + case 88200: + return 1; + case 96000: + return 11; + case 176400: + return 2; + case 192000: + return 3; + default: + return -1; + } + } + + public o b(@Nullable a aVar) { + return new o(this.a, this.f1278b, this.c, this.d, this.e, this.g, this.h, this.j, aVar, this.l); + } + + public long d() { + long j = this.j; + if (j == 0) { + return -9223372036854775807L; + } + return (j * 1000000) / ((long) this.e); + } + + public j1 e(byte[] bArr, @Nullable Metadata metadata) { + bArr[4] = Byte.MIN_VALUE; + int i = this.d; + if (i <= 0) { + i = -1; + } + Metadata f = f(metadata); + j1.b bVar = new j1.b(); + bVar.k = "audio/flac"; + bVar.l = i; + bVar.f1009x = this.g; + bVar.f1010y = this.e; + bVar.m = Collections.singletonList(bArr); + bVar.i = f; + return bVar.a(); + } + + @Nullable + public Metadata f(@Nullable Metadata metadata) { + Metadata metadata2 = this.l; + return metadata2 == null ? metadata : metadata == null ? metadata2 : metadata2.a(metadata.j); + } + + public long g(long j) { + return e0.i((j * ((long) this.e)) / 1000000, 0, this.j - 1); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/p.java b/app/src/main/java/b/i/a/c/x2/p.java new file mode 100644 index 0000000000..ad7a7d35d0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/p.java @@ -0,0 +1,62 @@ +package b.i.a.c.x2; + +import b.i.a.c.f3.e0; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.id3.CommentFrame; +import com.google.android.exoplayer2.metadata.id3.InternalFrame; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: GaplessInfoHolder */ +public final class p { + public static final Pattern a = Pattern.compile("^ [0-9a-fA-F]{8} ([0-9a-fA-F]{8}) ([0-9a-fA-F]{8})"); + + /* renamed from: b reason: collision with root package name */ + public int f1280b = -1; + public int c = -1; + + public final boolean a(String str) { + Matcher matcher = a.matcher(str); + if (!matcher.find()) { + return false; + } + try { + String group = matcher.group(1); + int i = e0.a; + int parseInt = Integer.parseInt(group, 16); + int parseInt2 = Integer.parseInt(matcher.group(2), 16); + if (parseInt <= 0 && parseInt2 <= 0) { + return false; + } + this.f1280b = parseInt; + this.c = parseInt2; + return true; + } catch (NumberFormatException unused) { + return false; + } + } + + public boolean b(Metadata metadata) { + int i = 0; + while (true) { + Metadata.Entry[] entryArr = metadata.j; + if (i >= entryArr.length) { + return false; + } + Metadata.Entry entry = entryArr[i]; + if (entry instanceof CommentFrame) { + CommentFrame commentFrame = (CommentFrame) entry; + if ("iTunSMPB".equals(commentFrame.l) && a(commentFrame.m)) { + return true; + } + } else if (entry instanceof InternalFrame) { + InternalFrame internalFrame = (InternalFrame) entry; + if ("com.apple.iTunes".equals(internalFrame.k) && "iTunSMPB".equals(internalFrame.l) && a(internalFrame.m)) { + return true; + } + } else { + continue; + } + i++; + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/q.java b/app/src/main/java/b/i/a/c/x2/q.java new file mode 100644 index 0000000000..3fc63e88e4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/q.java @@ -0,0 +1,43 @@ +package b.i.a.c.x2; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.x; +import b.i.a.c.z2.k.b; +import com.google.android.exoplayer2.metadata.Metadata; +import java.io.EOFException; +import java.io.IOException; +/* compiled from: Id3Peeker */ +public final class q { + public final x a = new x(10); + + @Nullable + public Metadata a(i iVar, @Nullable b.a aVar) throws IOException { + Metadata metadata = null; + int i = 0; + while (true) { + try { + iVar.o(this.a.a, 0, 10); + this.a.E(0); + if (this.a.v() != 4801587) { + break; + } + this.a.F(3); + int s2 = this.a.s(); + int i2 = s2 + 10; + if (metadata == null) { + byte[] bArr = new byte[i2]; + System.arraycopy(this.a.a, 0, bArr, 0, 10); + iVar.o(bArr, 10, s2); + metadata = new b(aVar).d(bArr, i2); + } else { + iVar.g(s2); + } + i += i2; + } catch (EOFException unused) { + } + } + iVar.k(); + iVar.g(i); + return metadata; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/r.java b/app/src/main/java/b/i/a/c/x2/r.java new file mode 100644 index 0000000000..1ca806c8e7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/r.java @@ -0,0 +1,61 @@ +package b.i.a.c.x2; + +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.x2.t; +/* compiled from: IndexSeekMap */ +public final class r implements t { + public final long[] a; + + /* renamed from: b reason: collision with root package name */ + public final long[] f1281b; + public final long c; + public final boolean d; + + public r(long[] jArr, long[] jArr2, long j) { + d.j(jArr.length == jArr2.length); + int length = jArr2.length; + boolean z2 = length > 0; + this.d = z2; + if (!z2 || jArr2[0] <= 0) { + this.a = jArr; + this.f1281b = jArr2; + } else { + int i = length + 1; + long[] jArr3 = new long[i]; + this.a = jArr3; + long[] jArr4 = new long[i]; + this.f1281b = jArr4; + System.arraycopy(jArr, 0, jArr3, 1, length); + System.arraycopy(jArr2, 0, jArr4, 1, length); + } + this.c = j; + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return this.d; + } + + @Override // b.i.a.c.x2.t + public t.a h(long j) { + if (!this.d) { + return new t.a(u.a); + } + int e = e0.e(this.f1281b, j, true, true); + long[] jArr = this.f1281b; + long j2 = jArr[e]; + long[] jArr2 = this.a; + u uVar = new u(j2, jArr2[e]); + if (j2 == j || e == jArr.length - 1) { + return new t.a(uVar); + } + int i = e + 1; + return new t.a(uVar, new u(jArr[i], jArr2[i])); + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.c; + } +} diff --git a/app/src/main/java/b/i/a/c/x2/s.java b/app/src/main/java/b/i/a/c/x2/s.java new file mode 100644 index 0000000000..fecfe379e5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/s.java @@ -0,0 +1,5 @@ +package b.i.a.c.x2; +/* compiled from: PositionHolder */ +public final class s { + public long a; +} diff --git a/app/src/main/java/b/i/a/c/x2/t.java b/app/src/main/java/b/i/a/c/x2/t.java new file mode 100644 index 0000000000..93876a6a2d --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/t.java @@ -0,0 +1,85 @@ +package b.i.a.c.x2; + +import androidx.annotation.Nullable; +/* compiled from: SeekMap */ +public interface t { + + /* compiled from: SeekMap */ + public static final class a { + public final u a; + + /* renamed from: b reason: collision with root package name */ + public final u f1282b; + + public a(u uVar) { + this.a = uVar; + this.f1282b = uVar; + } + + public a(u uVar, u uVar2) { + this.a = uVar; + this.f1282b = uVar2; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || a.class != obj.getClass()) { + return false; + } + a aVar = (a) obj; + return this.a.equals(aVar.a) && this.f1282b.equals(aVar.f1282b); + } + + public int hashCode() { + return this.f1282b.hashCode() + (this.a.hashCode() * 31); + } + + public String toString() { + String str; + String valueOf = String.valueOf(this.a); + if (this.a.equals(this.f1282b)) { + str = ""; + } else { + String valueOf2 = String.valueOf(this.f1282b); + str = b.d.b.a.a.i(valueOf2.length() + 2, ", ", valueOf2); + } + return b.d.b.a.a.k(b.d.b.a.a.b(str, valueOf.length() + 2), "[", valueOf, str, "]"); + } + } + + /* compiled from: SeekMap */ + public static class b implements t { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final a f1283b; + + public b(long j, long j2) { + this.a = j; + this.f1283b = new a(j2 == 0 ? u.a : new u(0, j2)); + } + + @Override // b.i.a.c.x2.t + public boolean c() { + return false; + } + + @Override // b.i.a.c.x2.t + public a h(long j) { + return this.f1283b; + } + + @Override // b.i.a.c.x2.t + public long i() { + return this.a; + } + } + + boolean c(); + + a h(long j); + + long i(); +} diff --git a/app/src/main/java/b/i/a/c/x2/u.java b/app/src/main/java/b/i/a/c/x2/u.java new file mode 100644 index 0000000000..84ef0eecc4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/u.java @@ -0,0 +1,37 @@ +package b.i.a.c.x2; + +import androidx.annotation.Nullable; +import b.d.b.a.a; +/* compiled from: SeekPoint */ +public final class u { + public static final u a = new u(0, 0); + + /* renamed from: b reason: collision with root package name */ + public final long f1284b; + public final long c; + + public u(long j, long j2) { + this.f1284b = j; + this.c = j2; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || u.class != obj.getClass()) { + return false; + } + u uVar = (u) obj; + return this.f1284b == uVar.f1284b && this.c == uVar.c; + } + + public int hashCode() { + return (((int) this.f1284b) * 31) + ((int) this.c); + } + + public String toString() { + long j = this.f1284b; + return a.B(a.P(60, "[timeUs=", j, ", position="), this.c, "]"); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/v.java b/app/src/main/java/b/i/a/c/x2/v.java new file mode 100644 index 0000000000..bbf12eabe5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/v.java @@ -0,0 +1,15 @@ +package b.i.a.c.x2; + +import b.i.a.c.e3.h; +import b.i.a.c.f3.x; +import java.io.IOException; +/* compiled from: TrackOutput */ +public final /* synthetic */ class v { + public static int a(w wVar, h hVar, int i, boolean z2) throws IOException { + return wVar.a(hVar, i, z2, 0); + } + + public static void b(w wVar, x xVar, int i) { + wVar.f(xVar, i, 0); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/w.java b/app/src/main/java/b/i/a/c/x2/w.java new file mode 100644 index 0000000000..493d0e3b44 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/w.java @@ -0,0 +1,55 @@ +package b.i.a.c.x2; + +import androidx.annotation.Nullable; +import b.i.a.c.e3.h; +import b.i.a.c.f3.x; +import b.i.a.c.j1; +import java.io.IOException; +import java.util.Arrays; +/* compiled from: TrackOutput */ +public interface w { + + /* compiled from: TrackOutput */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f1285b; + public final int c; + public final int d; + + public a(int i, byte[] bArr, int i2, int i3) { + this.a = i; + this.f1285b = bArr; + this.c = i2; + this.d = i3; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || a.class != obj.getClass()) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.c == aVar.c && this.d == aVar.d && Arrays.equals(this.f1285b, aVar.f1285b); + } + + public int hashCode() { + return ((((Arrays.hashCode(this.f1285b) + (this.a * 31)) * 31) + this.c) * 31) + this.d; + } + } + + int a(h hVar, int i, boolean z2, int i2) throws IOException; + + int b(h hVar, int i, boolean z2) throws IOException; + + void c(x xVar, int i); + + void d(long j, int i, int i2, int i3, @Nullable a aVar); + + void e(j1 j1Var); + + void f(x xVar, int i, int i2); +} diff --git a/app/src/main/java/b/i/a/c/x2/x.java b/app/src/main/java/b/i/a/c/x2/x.java new file mode 100644 index 0000000000..c184357849 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/x.java @@ -0,0 +1,62 @@ +package b.i.a.c.x2; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.c.x2.w; +import java.io.IOException; +/* compiled from: TrueHdSampleRechunker */ +public final class x { + public final byte[] a = new byte[10]; + + /* renamed from: b reason: collision with root package name */ + public boolean f1286b; + public int c; + public long d; + public int e; + public int f; + public int g; + + public void a(w wVar, @Nullable w.a aVar) { + if (this.c > 0) { + wVar.d(this.d, this.e, this.f, this.g, aVar); + this.c = 0; + } + } + + public void b(w wVar, long j, int i, int i2, int i3, @Nullable w.a aVar) { + d.E(this.g <= i2 + i3, "TrueHD chunk samples must be contiguous in the sample queue."); + if (this.f1286b) { + int i4 = this.c; + int i5 = i4 + 1; + this.c = i5; + if (i4 == 0) { + this.d = j; + this.e = i; + this.f = 0; + } + this.f += i2; + this.g = i3; + if (i5 >= 16) { + a(wVar, aVar); + } + } + } + + public void c(i iVar) throws IOException { + if (!this.f1286b) { + int i = 0; + iVar.o(this.a, 0, 10); + iVar.k(); + byte[] bArr = this.a; + if (bArr[4] == -8 && bArr[5] == 114 && bArr[6] == 111 && (bArr[7] & 254) == 186) { + if ((bArr[7] & 255) == 187) { + i = 1; + } + i = 40 << ((bArr[i != 0 ? (char) '\t' : '\b'] >> 4) & 7); + } + if (i != 0) { + this.f1286b = true; + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/x2/y.java b/app/src/main/java/b/i/a/c/x2/y.java new file mode 100644 index 0000000000..25d05f39d4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/y.java @@ -0,0 +1,57 @@ +package b.i.a.c.x2; + +import b.c.a.a0.d; +/* compiled from: VorbisBitArray */ +public final class y { + public final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public final int f1287b; + public int c; + public int d; + + public y(byte[] bArr) { + this.a = bArr; + this.f1287b = bArr.length; + } + + public boolean a() { + boolean z2 = (((this.a[this.c] & 255) >> this.d) & 1) == 1; + c(1); + return z2; + } + + public int b(int i) { + int i2 = this.c; + int min = Math.min(i, 8 - this.d); + int i3 = i2 + 1; + int i4 = ((this.a[i2] & 255) >> this.d) & (255 >> (8 - min)); + while (min < i) { + i4 |= (this.a[i3] & 255) << min; + min += 8; + i3++; + } + int i5 = i4 & (-1 >>> (32 - i)); + c(i); + return i5; + } + + public void c(int i) { + int i2; + int i3 = i / 8; + int i4 = this.c + i3; + this.c = i4; + int i5 = (i - (i3 * 8)) + this.d; + this.d = i5; + boolean z2 = true; + if (i5 > 7) { + this.c = i4 + 1; + this.d = i5 - 8; + } + int i6 = this.c; + if (i6 < 0 || (i6 >= (i2 = this.f1287b) && !(i6 == i2 && this.d == 0))) { + z2 = false; + } + d.D(z2); + } +} diff --git a/app/src/main/java/b/i/a/c/x2/z.java b/app/src/main/java/b/i/a/c/x2/z.java new file mode 100644 index 0000000000..543cae7e34 --- /dev/null +++ b/app/src/main/java/b/i/a/c/x2/z.java @@ -0,0 +1,9 @@ +package b.i.a.c.x2; +/* compiled from: VorbisUtil */ +public final class z { + public final String[] a; + + public z(String str, String[] strArr, int i) { + this.a = strArr; + } +} diff --git a/app/src/main/java/b/i/a/c/y.java b/app/src/main/java/b/i/a/c/y.java new file mode 100644 index 0000000000..c588e75518 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y.java @@ -0,0 +1,17 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class y implements p.a { + public final /* synthetic */ w1 a; + + public /* synthetic */ y(w1 w1Var) { + this.a = w1Var; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).s(this.a.g); + } +} diff --git a/app/src/main/java/b/i/a/c/y0.java b/app/src/main/java/b/i/a/c/y0.java new file mode 100644 index 0000000000..0d6bd796ba --- /dev/null +++ b/app/src/main/java/b/i/a/c/y0.java @@ -0,0 +1,62 @@ +package b.i.a.c; +/* compiled from: DefaultLivePlaybackSpeedControl */ +public final class y0 implements m1 { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f1288b; + public final float c; + public long d = -9223372036854775807L; + public long e = -9223372036854775807L; + public long f; + public long g = -9223372036854775807L; + public long h = -9223372036854775807L; + public long i; + public float j; + public float k; + public float l; + public long m; + public long n; + public long o; + + public y0(float f, float f2, long j, float f3, long j2, long j3, float f4, a aVar) { + this.a = j2; + this.f1288b = j3; + this.c = f4; + this.k = f; + this.j = f2; + this.l = 1.0f; + this.m = -9223372036854775807L; + this.f = -9223372036854775807L; + this.i = -9223372036854775807L; + this.n = -9223372036854775807L; + this.o = -9223372036854775807L; + } + + public final void a() { + long j = this.d; + if (j != -9223372036854775807L) { + long j2 = this.e; + if (j2 != -9223372036854775807L) { + j = j2; + } + long j3 = this.g; + if (j3 != -9223372036854775807L && j < j3) { + j = j3; + } + long j4 = this.h; + if (j4 != -9223372036854775807L && j > j4) { + j = j4; + } + } else { + j = -9223372036854775807L; + } + if (this.f != j) { + this.f = j; + this.i = j; + this.n = -9223372036854775807L; + this.o = -9223372036854775807L; + this.m = -9223372036854775807L; + } + } +} diff --git a/app/src/main/java/b/i/a/c/y1.java b/app/src/main/java/b/i/a/c/y1.java new file mode 100644 index 0000000000..928aa8ffc5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y1.java @@ -0,0 +1,314 @@ +package b.i.a.c; + +import android.os.Looper; +import android.view.SurfaceView; +import android.view.TextureView; +import androidx.annotation.Nullable; +import b.i.a.c.a3.o0; +import b.i.a.c.f3.n; +import b.i.a.c.g3.y; +import com.google.android.exoplayer2.PlaybackException; +import com.google.android.exoplayer2.metadata.Metadata; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +/* compiled from: Player */ +public interface y1 { + + /* compiled from: Player */ + public static final class b implements w0 { + public static final b j = new b(new n.b().b(), null); + public final n k; + + /* compiled from: Player */ + public static final class a { + public final n.b a = new n.b(); + + public a a(b bVar) { + n.b bVar2 = this.a; + n nVar = bVar.k; + Objects.requireNonNull(bVar2); + for (int i = 0; i < nVar.c(); i++) { + bVar2.a(nVar.b(i)); + } + return this; + } + + public a b(int i, boolean z2) { + n.b bVar = this.a; + Objects.requireNonNull(bVar); + if (z2) { + b.c.a.a0.d.D(!bVar.f958b); + bVar.a.append(i, true); + } + return this; + } + + public b c() { + return new b(this.a.b(), null); + } + } + + public b(n nVar, a aVar) { + this.k = nVar; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + return this.k.equals(((b) obj).k); + } + + public int hashCode() { + return this.k.hashCode(); + } + } + + /* compiled from: Player */ + @Deprecated + public interface c { + void A(p1 p1Var); + + void D(boolean z2); + + void E(y1 y1Var, d dVar); + + @Deprecated + void H(boolean z2, int i); + + void L(int i); + + void M(@Nullable o1 o1Var, int i); + + void W(boolean z2, int i); + + @Deprecated + void Y(o0 o0Var, b.i.a.c.c3.n nVar); + + @Deprecated + void a(); + + void b0(x1 x1Var); + + void f0(@Nullable PlaybackException playbackException); + + void g(f fVar, f fVar2, int i); + + void h(int i); + + @Deprecated + void i(boolean z2); + + @Deprecated + void j(int i); + + void j0(boolean z2); + + void p(p2 p2Var); + + void r(boolean z2); + + void s(PlaybackException playbackException); + + void t(b bVar); + + void v(o2 o2Var, int i); + + void y(int i); + } + + /* compiled from: Player */ + public static final class d { + public final n a; + + public d(n nVar) { + this.a = nVar; + } + + public boolean a(int... iArr) { + n nVar = this.a; + Objects.requireNonNull(nVar); + for (int i : iArr) { + if (nVar.a(i)) { + return true; + } + } + return false; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof d)) { + return false; + } + return this.a.equals(((d) obj).a); + } + + public int hashCode() { + return this.a.hashCode(); + } + } + + /* compiled from: Player */ + public interface e extends c { + void G(int i, boolean z2); + + void a0(int i, int i2); + + void b(Metadata metadata); + + void c(); + + void d(boolean z2); + + void e(List list); + + void f(y yVar); + + void w(float f); + + void z(c1 c1Var); + } + + /* compiled from: Player */ + public static final class f implements w0 { + @Nullable + public final Object j; + public final int k; + @Nullable + public final o1 l; + @Nullable + public final Object m; + public final int n; + public final long o; + public final long p; + public final int q; + public final int r; + + public f(@Nullable Object obj, int i, @Nullable o1 o1Var, @Nullable Object obj2, int i2, long j, long j2, int i3, int i4) { + this.j = obj; + this.k = i; + this.l = o1Var; + this.m = obj2; + this.n = i2; + this.o = j; + this.p = j2; + this.q = i3; + this.r = i4; + } + + public boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (obj == null || f.class != obj.getClass()) { + return false; + } + f fVar = (f) obj; + return this.k == fVar.k && this.n == fVar.n && this.o == fVar.o && this.p == fVar.p && this.q == fVar.q && this.r == fVar.r && b.i.a.f.e.o.f.U(this.j, fVar.j) && b.i.a.f.e.o.f.U(this.m, fVar.m) && b.i.a.f.e.o.f.U(this.l, fVar.l); + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{this.j, Integer.valueOf(this.k), this.l, this.m, Integer.valueOf(this.n), Long.valueOf(this.o), Long.valueOf(this.p), Integer.valueOf(this.q), Integer.valueOf(this.r)}); + } + } + + List A(); + + int B(); + + int C(); + + boolean D(int i); + + void E(int i); + + void F(@Nullable SurfaceView surfaceView); + + int G(); + + p2 H(); + + int I(); + + long J(); + + o2 K(); + + Looper L(); + + boolean M(); + + long N(); + + void O(); + + void P(); + + void Q(@Nullable TextureView textureView); + + void R(); + + p1 S(); + + long T(); + + long U(); + + void a(); + + x1 c(); + + void d(); + + void e(); + + boolean f(); + + long g(); + + void h(int i, long j); + + b i(); + + boolean j(); + + void k(boolean z2); + + long l(); + + int m(); + + void n(@Nullable TextureView textureView); + + y o(); + + void p(e eVar); + + int q(); + + void r(@Nullable SurfaceView surfaceView); + + void s(); + + @Nullable + PlaybackException t(); + + void u(boolean z2); + + long v(); + + long w(); + + void x(e eVar); + + int y(); + + boolean z(); +} diff --git a/app/src/main/java/b/i/a/c/y2/a.java b/app/src/main/java/b/i/a/c/y2/a.java new file mode 100644 index 0000000000..fd2f5b2323 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/a.java @@ -0,0 +1,17 @@ +package b.i.a.c.y2; + +import android.os.HandlerThread; +import b.i.b.a.l; +/* compiled from: lambda */ +public final /* synthetic */ class a implements l { + public final /* synthetic */ int j; + + public /* synthetic */ a(int i) { + this.j = i; + } + + @Override // b.i.b.a.l + public final Object get() { + return new HandlerThread(l.l(this.j, "ExoPlayer:MediaCodecAsyncAdapter:")); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/b.java b/app/src/main/java/b/i/a/c/y2/b.java new file mode 100644 index 0000000000..06a0fbff12 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/b.java @@ -0,0 +1,17 @@ +package b.i.a.c.y2; + +import android.os.HandlerThread; +import b.i.b.a.l; +/* compiled from: lambda */ +public final /* synthetic */ class b implements l { + public final /* synthetic */ int j; + + public /* synthetic */ b(int i) { + this.j = i; + } + + @Override // b.i.b.a.l + public final Object get() { + return new HandlerThread(l.l(this.j, "ExoPlayer:MediaCodecQueueingThread:")); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/c.java b/app/src/main/java/b/i/a/c/y2/c.java new file mode 100644 index 0000000000..078d511edb --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/c.java @@ -0,0 +1,26 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import b.i.a.c.g3.r; +import b.i.a.c.y2.t; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class c implements MediaCodec.OnFrameRenderedListener { + public final /* synthetic */ l a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ t.c f1289b; + + public /* synthetic */ c(l lVar, t.c cVar) { + this.a = lVar; + this.f1289b = cVar; + } + + @Override // android.media.MediaCodec.OnFrameRenderedListener + public final void onFrameRendered(MediaCodec mediaCodec, long j, long j2) { + l lVar = this.a; + t.c cVar = this.f1289b; + Objects.requireNonNull(lVar); + ((r.b) cVar).b(lVar, j, j2); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/d.java b/app/src/main/java/b/i/a/c/y2/d.java new file mode 100644 index 0000000000..56efc7bd53 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/d.java @@ -0,0 +1,38 @@ +package b.i.a.c.y2; +/* compiled from: lambda */ +public final /* synthetic */ class d implements Runnable { + public final /* synthetic */ o j; + public final /* synthetic */ Runnable k; + + public /* synthetic */ d(o oVar, Runnable runnable) { + this.j = oVar; + this.k = runnable; + } + + @Override // java.lang.Runnable + public final void run() { + o oVar = this.j; + Runnable runnable = this.k; + synchronized (oVar.a) { + if (!oVar.l) { + long j = oVar.k - 1; + oVar.k = j; + int i = (j > 0 ? 1 : (j == 0 ? 0 : -1)); + if (i <= 0) { + if (i < 0) { + oVar.c(new IllegalStateException()); + } else { + oVar.a(); + try { + runnable.run(); + } catch (IllegalStateException e) { + oVar.c(e); + } catch (Exception e2) { + oVar.c(new IllegalStateException(e2)); + } + } + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/y2/e.java b/app/src/main/java/b/i/a/c/y2/e.java new file mode 100644 index 0000000000..977ec6ea1b --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/e.java @@ -0,0 +1,19 @@ +package b.i.a.c.y2; + +import b.i.a.c.f3.e0; +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +import java.util.regex.Pattern; +/* compiled from: lambda */ +public final /* synthetic */ class e implements MediaCodecUtil.f { + public static final /* synthetic */ e a = new e(); + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f + public final int a(Object obj) { + Pattern pattern = MediaCodecUtil.a; + String str = ((u) obj).a; + if (str.startsWith("OMX.google") || str.startsWith("c2.android")) { + return 1; + } + return (e0.a >= 26 || !str.equals("OMX.MTK.AUDIO.DECODER.RAW")) ? 0 : -1; + } +} diff --git a/app/src/main/java/b/i/a/c/y2/f.java b/app/src/main/java/b/i/a/c/y2/f.java new file mode 100644 index 0000000000..e472fb1a7a --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/f.java @@ -0,0 +1,14 @@ +package b.i.a.c.y2; + +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +import java.util.regex.Pattern; +/* compiled from: lambda */ +public final /* synthetic */ class f implements MediaCodecUtil.f { + public static final /* synthetic */ f a = new f(); + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f + public final int a(Object obj) { + Pattern pattern = MediaCodecUtil.a; + return ((u) obj).a.startsWith("OMX.google") ? 1 : 0; + } +} diff --git a/app/src/main/java/b/i/a/c/y2/g.java b/app/src/main/java/b/i/a/c/y2/g.java new file mode 100644 index 0000000000..f1cde519f4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/g.java @@ -0,0 +1,21 @@ +package b.i.a.c.y2; + +import b.i.a.c.j1; +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +/* compiled from: lambda */ +public final /* synthetic */ class g implements MediaCodecUtil.f { + public final /* synthetic */ j1 a; + + public /* synthetic */ g(j1 j1Var) { + this.a = j1Var; + } + + @Override // com.google.android.exoplayer2.mediacodec.MediaCodecUtil.f + public final int a(Object obj) { + try { + return ((u) obj).e(this.a) ? 1 : 0; + } catch (MediaCodecUtil.DecoderQueryException unused) { + return -1; + } + } +} diff --git a/app/src/main/java/b/i/a/c/y2/h.java b/app/src/main/java/b/i/a/c/y2/h.java new file mode 100644 index 0000000000..633e986457 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/h.java @@ -0,0 +1,18 @@ +package b.i.a.c.y2; + +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +import java.util.Comparator; +/* compiled from: lambda */ +public final /* synthetic */ class h implements Comparator { + public final /* synthetic */ MediaCodecUtil.f j; + + public /* synthetic */ h(MediaCodecUtil.f fVar) { + this.j = fVar; + } + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + MediaCodecUtil.f fVar = this.j; + return fVar.a(obj2) - fVar.a(obj); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/i.java b/app/src/main/java/b/i/a/c/y2/i.java new file mode 100644 index 0000000000..5fadac32c9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/i.java @@ -0,0 +1,26 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import b.i.a.c.g3.r; +import b.i.a.c.y2.t; +import java.util.Objects; +/* compiled from: lambda */ +public final /* synthetic */ class i implements MediaCodec.OnFrameRenderedListener { + public final /* synthetic */ w a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ t.c f1290b; + + public /* synthetic */ i(w wVar, t.c cVar) { + this.a = wVar; + this.f1290b = cVar; + } + + @Override // android.media.MediaCodec.OnFrameRenderedListener + public final void onFrameRendered(MediaCodec mediaCodec, long j, long j2) { + w wVar = this.a; + t.c cVar = this.f1290b; + Objects.requireNonNull(wVar); + ((r.b) cVar).b(wVar, j, j2); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/j.java b/app/src/main/java/b/i/a/c/y2/j.java new file mode 100644 index 0000000000..86ef1b81d1 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/j.java @@ -0,0 +1,16 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +/* compiled from: lambda */ +public final /* synthetic */ class j implements Runnable { + public final /* synthetic */ MediaCodec j; + + public /* synthetic */ j(MediaCodec mediaCodec) { + this.j = mediaCodec; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.start(); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/k.java b/app/src/main/java/b/i/a/c/y2/k.java new file mode 100644 index 0000000000..d2c7148999 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/k.java @@ -0,0 +1,15 @@ +package b.i.a.c.y2; + +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +import java.util.List; +/* compiled from: lambda */ +public final /* synthetic */ class k implements v { + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ k f1291b = new k(); + + @Override // b.i.a.c.y2.v + public final List a(String str, boolean z2, boolean z3) { + return MediaCodecUtil.e(str, z2, z3); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/l.java b/app/src/main/java/b/i/a/c/y2/l.java new file mode 100644 index 0000000000..163d1b665e --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/l.java @@ -0,0 +1,367 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import android.media.MediaCrypto; +import android.media.MediaFormat; +import android.os.Bundle; +import android.os.Handler; +import android.os.HandlerThread; +import android.view.Surface; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.v2.c; +import b.i.a.c.y2.n; +import b.i.a.c.y2.t; +import java.io.IOException; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: AsynchronousMediaCodecAdapter */ +@RequiresApi(23) +public final class l implements t { + public final MediaCodec a; + + /* renamed from: b reason: collision with root package name */ + public final o f1292b; + public final n c; + public final boolean d; + public boolean e; + public int f = 0; + @Nullable + public Surface g; + + /* compiled from: AsynchronousMediaCodecAdapter */ + public static final class b implements t.b { + public final b.i.b.a.l a; + + /* renamed from: b reason: collision with root package name */ + public final b.i.b.a.l f1293b; + + public b(int i, boolean z2) { + a aVar = new a(i); + b bVar = new b(i); + this.a = aVar; + this.f1293b = bVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x0057 */ + /* JADX WARNING: Removed duplicated region for block: B:20:0x005d */ + /* renamed from: b */ + public l a(t.a aVar) throws IOException { + Exception e; + MediaCodec mediaCodec; + l lVar; + String str = aVar.a.a; + l lVar2 = null; + try { + String valueOf = String.valueOf(str); + d.f(valueOf.length() != 0 ? "createCodec:".concat(valueOf) : new String("createCodec:")); + mediaCodec = MediaCodec.createByCodecName(str); + try { + lVar = new l(mediaCodec, this.a.get(), this.f1293b.get(), false, null); + } catch (Exception e2) { + e = e2; + if (lVar2 != null) { + lVar2.release(); + } else if (mediaCodec != null) { + mediaCodec.release(); + } + throw e; + } + try { + d.c0(); + l.k(lVar, aVar.f1300b, aVar.d, aVar.e, 0, false); + return lVar; + } catch (Exception e3) { + e = e3; + lVar2 = lVar; + if (lVar2 != null) { + } + throw e; + } + } catch (Exception e4) { + e = e4; + mediaCodec = null; + if (lVar2 != null) { + } + throw e; + } + } + } + + public l(MediaCodec mediaCodec, HandlerThread handlerThread, HandlerThread handlerThread2, boolean z2, a aVar) { + this.a = mediaCodec; + this.f1292b = new o(handlerThread); + this.c = new n(mediaCodec, handlerThread2); + this.d = z2; + } + + public static void k(l lVar, MediaFormat mediaFormat, Surface surface, MediaCrypto mediaCrypto, int i, boolean z2) { + o oVar = lVar.f1292b; + MediaCodec mediaCodec = lVar.a; + d.D(oVar.c == null); + oVar.f1296b.start(); + Handler handler = new Handler(oVar.f1296b.getLooper()); + mediaCodec.setCallback(oVar, handler); + oVar.c = handler; + d.f("configureCodec"); + lVar.a.configure(mediaFormat, surface, mediaCrypto, i); + d.c0(); + if (z2) { + lVar.g = lVar.a.createInputSurface(); + } + n nVar = lVar.c; + if (!nVar.h) { + nVar.d.start(); + nVar.e = new m(nVar, nVar.d.getLooper()); + nVar.h = true; + } + d.f("startCodec"); + lVar.a.start(); + d.c0(); + lVar.f = 1; + } + + public static String l(int i, String str) { + StringBuilder sb = new StringBuilder(str); + if (i == 1) { + sb.append("Audio"); + } else if (i == 2) { + sb.append("Video"); + } else { + sb.append("Unknown("); + sb.append(i); + sb.append(")"); + } + return sb.toString(); + } + + @Override // b.i.a.c.y2.t + public boolean a() { + return false; + } + + @Override // b.i.a.c.y2.t + public void b(int i, int i2, c cVar, long j, int i3) { + n nVar = this.c; + nVar.f(); + n.a e = n.e(); + e.a = i; + e.f1295b = i2; + e.c = 0; + e.e = j; + e.f = i3; + MediaCodec.CryptoInfo cryptoInfo = e.d; + cryptoInfo.numSubSamples = cVar.f; + cryptoInfo.numBytesOfClearData = n.c(cVar.d, cryptoInfo.numBytesOfClearData); + cryptoInfo.numBytesOfEncryptedData = n.c(cVar.e, cryptoInfo.numBytesOfEncryptedData); + byte[] b2 = n.b(cVar.f1127b, cryptoInfo.key); + Objects.requireNonNull(b2); + cryptoInfo.key = b2; + byte[] b3 = n.b(cVar.a, cryptoInfo.iv); + Objects.requireNonNull(b3); + cryptoInfo.iv = b3; + cryptoInfo.mode = cVar.c; + if (e0.a >= 24) { + cryptoInfo.setPattern(new MediaCodec.CryptoInfo.Pattern(cVar.g, cVar.h)); + } + nVar.e.obtainMessage(1, e).sendToTarget(); + } + + @Override // b.i.a.c.y2.t + public void c(int i, long j) { + this.a.releaseOutputBuffer(i, j); + } + + @Override // b.i.a.c.y2.t + public int d() { + int i; + o oVar = this.f1292b; + synchronized (oVar.a) { + i = -1; + if (!oVar.b()) { + IllegalStateException illegalStateException = oVar.m; + if (illegalStateException == null) { + MediaCodec.CodecException codecException = oVar.j; + if (codecException == null) { + s sVar = oVar.d; + if (!(sVar.c == 0)) { + i = sVar.b(); + } + } else { + oVar.j = null; + throw codecException; + } + } else { + oVar.m = null; + throw illegalStateException; + } + } + } + return i; + } + + @Override // b.i.a.c.y2.t + public int e(MediaCodec.BufferInfo bufferInfo) { + int i; + o oVar = this.f1292b; + synchronized (oVar.a) { + i = -1; + if (!oVar.b()) { + IllegalStateException illegalStateException = oVar.m; + if (illegalStateException == null) { + MediaCodec.CodecException codecException = oVar.j; + if (codecException == null) { + s sVar = oVar.e; + if (!(sVar.c == 0)) { + i = sVar.b(); + if (i >= 0) { + d.H(oVar.h); + MediaCodec.BufferInfo remove = oVar.f.remove(); + bufferInfo.set(remove.offset, remove.size, remove.presentationTimeUs, remove.flags); + } else if (i == -2) { + oVar.h = oVar.g.remove(); + } + } + } else { + oVar.j = null; + throw codecException; + } + } else { + oVar.m = null; + throw illegalStateException; + } + } + } + return i; + } + + @Override // b.i.a.c.y2.t + public void f(t.c cVar, Handler handler) { + m(); + this.a.setOnFrameRenderedListener(new c(this, cVar), handler); + } + + @Override // b.i.a.c.y2.t + public void flush() { + this.c.d(); + this.a.flush(); + o oVar = this.f1292b; + MediaCodec mediaCodec = this.a; + Objects.requireNonNull(mediaCodec); + j jVar = new j(mediaCodec); + synchronized (oVar.a) { + oVar.k++; + Handler handler = oVar.c; + int i = e0.a; + handler.post(new d(oVar, jVar)); + } + } + + @Override // b.i.a.c.y2.t + public void g(int i) { + m(); + this.a.setVideoScalingMode(i); + } + + @Override // b.i.a.c.y2.t + public MediaFormat getOutputFormat() { + MediaFormat mediaFormat; + o oVar = this.f1292b; + synchronized (oVar.a) { + mediaFormat = oVar.h; + if (mediaFormat == null) { + throw new IllegalStateException(); + } + } + return mediaFormat; + } + + @Override // b.i.a.c.y2.t + @Nullable + public ByteBuffer h(int i) { + return this.a.getInputBuffer(i); + } + + @Override // b.i.a.c.y2.t + public void i(Surface surface) { + m(); + this.a.setOutputSurface(surface); + } + + @Override // b.i.a.c.y2.t + @Nullable + public ByteBuffer j(int i) { + return this.a.getOutputBuffer(i); + } + + public final void m() { + if (this.d) { + try { + this.c.a(); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new IllegalStateException(e); + } + } + } + + @Override // b.i.a.c.y2.t + public void queueInputBuffer(int i, int i2, int i3, long j, int i4) { + n nVar = this.c; + nVar.f(); + n.a e = n.e(); + e.a = i; + e.f1295b = i2; + e.c = i3; + e.e = j; + e.f = i4; + Handler handler = nVar.e; + int i5 = e0.a; + handler.obtainMessage(0, e).sendToTarget(); + } + + @Override // b.i.a.c.y2.t + public void release() { + Surface surface; + boolean z2 = true; + try { + if (this.f == 1) { + n nVar = this.c; + if (nVar.h) { + nVar.d(); + nVar.d.quit(); + } + nVar.h = false; + o oVar = this.f1292b; + synchronized (oVar.a) { + oVar.l = true; + oVar.f1296b.quit(); + oVar.a(); + } + } + this.f = 2; + } finally { + surface = this.g; + if (surface != null) { + surface.release(); + } + if (!this.e) { + this.a.release(); + this.e = z2; + } + } + } + + @Override // b.i.a.c.y2.t + public void releaseOutputBuffer(int i, boolean z2) { + this.a.releaseOutputBuffer(i, z2); + } + + @Override // b.i.a.c.y2.t + public void setParameters(Bundle bundle) { + m(); + this.a.setParameters(bundle); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/m.java b/app/src/main/java/b/i/a/c/y2/m.java new file mode 100644 index 0000000000..494f312680 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/m.java @@ -0,0 +1,62 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import android.os.Handler; +import android.os.Looper; +import android.os.Message; +import b.i.a.c.y2.n; +import java.util.ArrayDeque; +import java.util.Objects; +/* compiled from: AsynchronousMediaCodecBufferEnqueuer */ +public class m extends Handler { + public final /* synthetic */ n a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public m(n nVar, Looper looper) { + super(looper); + this.a = nVar; + } + + @Override // android.os.Handler + public void handleMessage(Message message) { + n.a aVar; + n nVar = this.a; + Objects.requireNonNull(nVar); + int i = message.what; + if (i == 0) { + aVar = (n.a) message.obj; + try { + nVar.c.queueInputBuffer(aVar.a, aVar.f1295b, aVar.c, aVar.e, aVar.f); + } catch (RuntimeException e) { + nVar.f.set(e); + } + } else if (i != 1) { + if (i != 2) { + nVar.f.set(new IllegalStateException(String.valueOf(message.what))); + } else { + nVar.g.b(); + } + aVar = null; + } else { + aVar = (n.a) message.obj; + int i2 = aVar.a; + int i3 = aVar.f1295b; + MediaCodec.CryptoInfo cryptoInfo = aVar.d; + long j = aVar.e; + int i4 = aVar.f; + try { + synchronized (n.f1294b) { + nVar.c.queueSecureInputBuffer(i2, i3, cryptoInfo, j, i4); + } + } catch (RuntimeException e2) { + nVar.f.set(e2); + } + } + if (aVar != null) { + ArrayDeque arrayDeque = n.a; + synchronized (arrayDeque) { + arrayDeque.add(aVar); + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/y2/n.java b/app/src/main/java/b/i/a/c/y2/n.java new file mode 100644 index 0000000000..3cedec73bf --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/n.java @@ -0,0 +1,116 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import android.os.Handler; +import android.os.HandlerThread; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.j; +import java.util.ArrayDeque; +import java.util.Arrays; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: AsynchronousMediaCodecBufferEnqueuer */ +@RequiresApi(23) +public class n { + @GuardedBy("MESSAGE_PARAMS_INSTANCE_POOL") + public static final ArrayDeque a = new ArrayDeque<>(); + + /* renamed from: b reason: collision with root package name */ + public static final Object f1294b = new Object(); + public final MediaCodec c; + public final HandlerThread d; + public Handler e; + public final AtomicReference f = new AtomicReference<>(); + public final j g; + public boolean h; + + /* compiled from: AsynchronousMediaCodecBufferEnqueuer */ + public static class a { + public int a; + + /* renamed from: b reason: collision with root package name */ + public int f1295b; + public int c; + public final MediaCodec.CryptoInfo d = new MediaCodec.CryptoInfo(); + public long e; + public int f; + } + + public n(MediaCodec mediaCodec, HandlerThread handlerThread) { + j jVar = new j(); + this.c = mediaCodec; + this.d = handlerThread; + this.g = jVar; + } + + @Nullable + public static byte[] b(@Nullable byte[] bArr, @Nullable byte[] bArr2) { + if (bArr == null) { + return bArr2; + } + if (bArr2 == null || bArr2.length < bArr.length) { + return Arrays.copyOf(bArr, bArr.length); + } + System.arraycopy(bArr, 0, bArr2, 0, bArr.length); + return bArr2; + } + + @Nullable + public static int[] c(@Nullable int[] iArr, @Nullable int[] iArr2) { + if (iArr == null) { + return iArr2; + } + if (iArr2 == null || iArr2.length < iArr.length) { + return Arrays.copyOf(iArr, iArr.length); + } + System.arraycopy(iArr, 0, iArr2, 0, iArr.length); + return iArr2; + } + + public static a e() { + ArrayDeque arrayDeque = a; + synchronized (arrayDeque) { + if (arrayDeque.isEmpty()) { + return new a(); + } + return arrayDeque.removeFirst(); + } + } + + public final void a() throws InterruptedException { + this.g.a(); + Handler handler = this.e; + int i = e0.a; + handler.obtainMessage(2).sendToTarget(); + j jVar = this.g; + synchronized (jVar) { + while (!jVar.f957b) { + jVar.wait(); + } + } + } + + public void d() { + if (this.h) { + try { + Handler handler = this.e; + int i = e0.a; + handler.removeCallbacksAndMessages(null); + a(); + f(); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new IllegalStateException(e); + } + } + } + + public final void f() { + RuntimeException andSet = this.f.getAndSet(null); + if (andSet != null) { + throw andSet; + } + } +} diff --git a/app/src/main/java/b/i/a/c/y2/o.java b/app/src/main/java/b/i/a/c/y2/o.java new file mode 100644 index 0000000000..755a4cfa47 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/o.java @@ -0,0 +1,117 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import android.media.MediaFormat; +import android.os.Handler; +import android.os.HandlerThread; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import java.util.ArrayDeque; +/* compiled from: AsynchronousMediaCodecCallback */ +@RequiresApi(23) +public final class o extends MediaCodec.Callback { + public final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public final HandlerThread f1296b; + public Handler c; + @GuardedBy("lock") + public final s d; + @GuardedBy("lock") + public final s e; + @GuardedBy("lock") + public final ArrayDeque f; + @GuardedBy("lock") + public final ArrayDeque g; + @Nullable + @GuardedBy("lock") + public MediaFormat h; + @Nullable + @GuardedBy("lock") + public MediaFormat i; + @Nullable + @GuardedBy("lock") + public MediaCodec.CodecException j; + @GuardedBy("lock") + public long k; + @GuardedBy("lock") + public boolean l; + @Nullable + @GuardedBy("lock") + public IllegalStateException m; + + public o(HandlerThread handlerThread) { + this.f1296b = handlerThread; + this.d = new s(); + this.e = new s(); + this.f = new ArrayDeque<>(); + this.g = new ArrayDeque<>(); + } + + @GuardedBy("lock") + public final void a() { + if (!this.g.isEmpty()) { + this.i = this.g.getLast(); + } + s sVar = this.d; + sVar.a = 0; + sVar.f1299b = -1; + sVar.c = 0; + s sVar2 = this.e; + sVar2.a = 0; + sVar2.f1299b = -1; + sVar2.c = 0; + this.f.clear(); + this.g.clear(); + this.j = null; + } + + @GuardedBy("lock") + public final boolean b() { + return this.k > 0 || this.l; + } + + public final void c(IllegalStateException illegalStateException) { + synchronized (this.a) { + this.m = illegalStateException; + } + } + + @Override // android.media.MediaCodec.Callback + public void onError(MediaCodec mediaCodec, MediaCodec.CodecException codecException) { + synchronized (this.a) { + this.j = codecException; + } + } + + @Override // android.media.MediaCodec.Callback + public void onInputBufferAvailable(MediaCodec mediaCodec, int i) { + synchronized (this.a) { + this.d.a(i); + } + } + + @Override // android.media.MediaCodec.Callback + public void onOutputBufferAvailable(MediaCodec mediaCodec, int i, MediaCodec.BufferInfo bufferInfo) { + synchronized (this.a) { + MediaFormat mediaFormat = this.i; + if (mediaFormat != null) { + this.e.a(-2); + this.g.add(mediaFormat); + this.i = null; + } + this.e.a(i); + this.f.add(bufferInfo); + } + } + + @Override // android.media.MediaCodec.Callback + public void onOutputFormatChanged(MediaCodec mediaCodec, MediaFormat mediaFormat) { + synchronized (this.a) { + this.e.a(-2); + this.g.add(mediaFormat); + this.i = null; + } + } +} diff --git a/app/src/main/java/b/i/a/c/y2/p.java b/app/src/main/java/b/i/a/c/y2/p.java new file mode 100644 index 0000000000..2617c02fe0 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/p.java @@ -0,0 +1,71 @@ +package b.i.a.c.y2; + +import b.c.a.a0.d; +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +import java.nio.ByteBuffer; +/* compiled from: BatchBuffer */ +public final class p extends DecoderInputBuffer { + public long r; + + /* renamed from: s reason: collision with root package name */ + public int f1297s; + public int t = 32; + + public p() { + super(2); + } + + @Override // com.google.android.exoplayer2.decoder.DecoderInputBuffer + public void p() { + super.p(); + this.f1297s = 0; + } + + /* JADX WARNING: Code restructure failed: missing block: B:13:0x0049, code lost: + if ((r0.remaining() + r3.position()) > 3072000) goto L_0x0028; + */ + /* JADX WARNING: Removed duplicated region for block: B:15:0x004e A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:16:0x004f */ + public boolean u(DecoderInputBuffer decoderInputBuffer) { + boolean z2; + d.j(!decoderInputBuffer.t()); + d.j(!decoderInputBuffer.l()); + d.j(!decoderInputBuffer.n()); + if (v()) { + if (this.f1297s < this.t && decoderInputBuffer.m() == m()) { + ByteBuffer byteBuffer = decoderInputBuffer.l; + if (!(byteBuffer == null || (r3 = this.l) == null)) { + } + } + z2 = false; + if (z2) { + return false; + } + int i = this.f1297s; + this.f1297s = i + 1; + if (i == 0) { + this.n = decoderInputBuffer.n; + if (decoderInputBuffer.o()) { + this.j = 1; + } + } + if (decoderInputBuffer.m()) { + this.j = Integer.MIN_VALUE; + } + ByteBuffer byteBuffer2 = decoderInputBuffer.l; + if (byteBuffer2 != null) { + r(byteBuffer2.remaining()); + this.l.put(byteBuffer2); + } + this.r = decoderInputBuffer.n; + return true; + } + z2 = true; + if (z2) { + } + } + + public boolean v() { + return this.f1297s > 0; + } +} diff --git a/app/src/main/java/b/i/a/c/y2/q.java b/app/src/main/java/b/i/a/c/y2/q.java new file mode 100644 index 0000000000..d33941e6e7 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/q.java @@ -0,0 +1,13 @@ +package b.i.a.c.y2; +/* compiled from: C2Mp3TimestampTracker */ +public final class q { + public long a; + + /* renamed from: b reason: collision with root package name */ + public long f1298b; + public boolean c; + + public final long a(long j) { + return Math.max(0L, ((this.f1298b - 529) * 1000000) / j) + this.a; + } +} diff --git a/app/src/main/java/b/i/a/c/y2/r.java b/app/src/main/java/b/i/a/c/y2/r.java new file mode 100644 index 0000000000..82542e646d --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/r.java @@ -0,0 +1,97 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import android.util.Log; +import androidx.core.app.NotificationCompat; +import b.c.a.a0.d; +import b.i.a.c.f3.e0; +import b.i.a.c.y2.l; +import b.i.a.c.y2.t; +import java.io.IOException; +import java.util.Objects; +import org.webrtc.MediaStreamTrack; +/* compiled from: DefaultMediaCodecAdapterFactory */ +public final class r implements t.b { + /* JADX WARNING: Removed duplicated region for block: B:37:0x00c8 */ + @Override // b.i.a.c.y2.t.b + public t a(t.a aVar) throws IOException { + Throwable e; + String str; + if (e0.a >= 31) { + int g = b.i.a.c.f3.t.g(aVar.c.w); + int i = e0.a; + switch (g) { + case -2: + str = "none"; + break; + case -1: + default: + if (g < 10000) { + str = "?"; + break; + } else { + StringBuilder sb = new StringBuilder(20); + sb.append("custom ("); + sb.append(g); + sb.append(")"); + str = sb.toString(); + break; + } + case 0: + str = "default"; + break; + case 1: + str = MediaStreamTrack.AUDIO_TRACK_KIND; + break; + case 2: + str = MediaStreamTrack.VIDEO_TRACK_KIND; + break; + case 3: + str = NotificationCompat.MessagingStyle.Message.KEY_TEXT; + break; + case 4: + str = "image"; + break; + case 5: + str = "metadata"; + break; + case 6: + str = "camera motion"; + break; + } + String valueOf = String.valueOf(str); + Log.i("DefaultMediaCodecAdapterFactory", valueOf.length() != 0 ? "Creating an asynchronous MediaCodec adapter for track type ".concat(valueOf) : new String("Creating an asynchronous MediaCodec adapter for track type ")); + return new l.b(g, false).a(aVar); + } + MediaCodec mediaCodec = null; + try { + Objects.requireNonNull(aVar.a); + String str2 = aVar.a.a; + String valueOf2 = String.valueOf(str2); + d.f(valueOf2.length() != 0 ? "createCodec:".concat(valueOf2) : new String("createCodec:")); + MediaCodec createByCodecName = MediaCodec.createByCodecName(str2); + d.c0(); + try { + d.f("configureCodec"); + createByCodecName.configure(aVar.f1300b, aVar.d, aVar.e, 0); + d.c0(); + d.f("startCodec"); + createByCodecName.start(); + d.c0(); + return new w(createByCodecName, null, null); + } catch (IOException | RuntimeException e2) { + e = e2; + mediaCodec = createByCodecName; + if (mediaCodec != null) { + } + throw e; + } + } catch (IOException | RuntimeException e3) { + e = e3; + if (mediaCodec != null) { + mediaCodec.release(); + } + throw e; + } + } +} diff --git a/app/src/main/java/b/i/a/c/y2/s.java b/app/src/main/java/b/i/a/c/y2/s.java new file mode 100644 index 0000000000..762a38d8df --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/s.java @@ -0,0 +1,58 @@ +package b.i.a.c.y2; + +import java.util.NoSuchElementException; +/* compiled from: IntArrayQueue */ +public final class s { + public int a = 0; + + /* renamed from: b reason: collision with root package name */ + public int f1299b = -1; + public int c = 0; + public int[] d; + public int e; + + public s() { + int[] iArr = new int[16]; + this.d = iArr; + this.e = iArr.length - 1; + } + + public void a(int i) { + int i2 = this.c; + int[] iArr = this.d; + if (i2 == iArr.length) { + int length = iArr.length << 1; + if (length >= 0) { + int[] iArr2 = new int[length]; + int length2 = iArr.length; + int i3 = this.a; + int i4 = length2 - i3; + System.arraycopy(iArr, i3, iArr2, 0, i4); + System.arraycopy(this.d, 0, iArr2, i4, i3); + this.a = 0; + this.f1299b = this.c - 1; + this.d = iArr2; + this.e = length - 1; + } else { + throw new IllegalStateException(); + } + } + int i5 = (this.f1299b + 1) & this.e; + this.f1299b = i5; + this.d[i5] = i; + this.c++; + } + + public int b() { + int i = this.c; + if (i != 0) { + int[] iArr = this.d; + int i2 = this.a; + int i3 = iArr[i2]; + this.a = (i2 + 1) & this.e; + this.c = i - 1; + return i3; + } + throw new NoSuchElementException(); + } +} diff --git a/app/src/main/java/b/i/a/c/y2/t.java b/app/src/main/java/b/i/a/c/y2/t.java new file mode 100644 index 0000000000..375034dc6e --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/t.java @@ -0,0 +1,84 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import android.media.MediaCrypto; +import android.media.MediaFormat; +import android.os.Bundle; +import android.os.Handler; +import android.view.Surface; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.j1; +import java.io.IOException; +import java.nio.ByteBuffer; +/* compiled from: MediaCodecAdapter */ +public interface t { + + /* compiled from: MediaCodecAdapter */ + public static final class a { + public final u a; + + /* renamed from: b reason: collision with root package name */ + public final MediaFormat f1300b; + public final j1 c; + @Nullable + public final Surface d; + @Nullable + public final MediaCrypto e; + + public a(u uVar, MediaFormat mediaFormat, j1 j1Var, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto, int i, boolean z2) { + this.a = uVar; + this.f1300b = mediaFormat; + this.c = j1Var; + this.d = surface; + this.e = mediaCrypto; + } + } + + /* compiled from: MediaCodecAdapter */ + public interface b { + t a(a aVar) throws IOException; + } + + /* compiled from: MediaCodecAdapter */ + public interface c { + } + + boolean a(); + + void b(int i, int i2, b.i.a.c.v2.c cVar, long j, int i3); + + @RequiresApi(21) + void c(int i, long j); + + int d(); + + int e(MediaCodec.BufferInfo bufferInfo); + + @RequiresApi(23) + void f(c cVar, Handler handler); + + void flush(); + + void g(int i); + + MediaFormat getOutputFormat(); + + @Nullable + ByteBuffer h(int i); + + @RequiresApi(23) + void i(Surface surface); + + @Nullable + ByteBuffer j(int i); + + void queueInputBuffer(int i, int i2, int i3, long j, int i4); + + void release(); + + void releaseOutputBuffer(int i, boolean z2); + + @RequiresApi(19) + void setParameters(Bundle bundle); +} diff --git a/app/src/main/java/b/i/a/c/y2/u.java b/app/src/main/java/b/i/a/c/y2/u.java new file mode 100644 index 0000000000..914e49bb08 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/u.java @@ -0,0 +1,379 @@ +package b.i.a.c.y2; + +import android.graphics.Point; +import android.media.MediaCodecInfo; +import android.util.Log; +import android.util.Pair; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import androidx.annotation.VisibleForTesting; +import b.d.b.a.a; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.t; +import b.i.a.c.j1; +import b.i.a.c.v2.g; +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +import java.util.Objects; +/* compiled from: MediaCodecInfo */ +public final class u { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1301b; + public final String c; + @Nullable + public final MediaCodecInfo.CodecCapabilities d; + public final boolean e; + public final boolean f; + public final boolean g; + + @VisibleForTesting + public u(String str, String str2, String str3, @Nullable MediaCodecInfo.CodecCapabilities codecCapabilities, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7) { + Objects.requireNonNull(str); + this.a = str; + this.f1301b = str2; + this.c = str3; + this.d = codecCapabilities; + this.e = z5; + this.f = z7; + this.g = t.j(str2); + } + + @RequiresApi(21) + public static Point a(MediaCodecInfo.VideoCapabilities videoCapabilities, int i, int i2) { + int widthAlignment = videoCapabilities.getWidthAlignment(); + int heightAlignment = videoCapabilities.getHeightAlignment(); + return new Point(e0.f(i, widthAlignment) * widthAlignment, e0.f(i2, heightAlignment) * heightAlignment); + } + + @RequiresApi(21) + public static boolean b(MediaCodecInfo.VideoCapabilities videoCapabilities, int i, int i2, double d) { + Point a = a(videoCapabilities, i, i2); + int i3 = a.x; + int i4 = a.y; + return (d == -1.0d || d < 1.0d) ? videoCapabilities.isSizeSupported(i3, i4) : videoCapabilities.areSizeAndRateSupported(i3, i4, Math.floor(d)); + } + + /* JADX WARNING: Code restructure failed: missing block: B:44:0x0076, code lost: + if ((b.i.a.c.f3.e0.a >= 21 && r15.isFeatureSupported("secure-playback")) != false) goto L_0x007b; + */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x0048 */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x004f */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x0065 */ + public static u i(String str, String str2, String str3, @Nullable MediaCodecInfo.CodecCapabilities codecCapabilities, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { + boolean z7; + boolean z8; + boolean z9; + boolean z10; + if (!z5 && codecCapabilities != null) { + int i = e0.a; + if (i >= 19 && codecCapabilities.isFeatureSupported("adaptive-playback")) { + if (i <= 22) { + String str4 = e0.d; + if (("ODROID-XU3".equals(str4) || "Nexus 10".equals(str4)) && ("OMX.Exynos.AVC.Decoder".equals(str) || "OMX.Exynos.AVC.Decoder.secure".equals(str))) { + z10 = true; + if (!z10) { + z7 = true; + if (codecCapabilities != null) { + if (e0.a >= 21 && codecCapabilities.isFeatureSupported("tunneled-playback")) { + z8 = true; + if (!z6) { + if (codecCapabilities != null) { + } + z9 = false; + return new u(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9); + } + z9 = true; + return new u(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9); + } + } + z8 = false; + if (!z6) { + } + z9 = true; + return new u(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9); + } + } + } + z10 = false; + if (!z10) { + } + } + } + z7 = false; + if (codecCapabilities != null) { + } + z8 = false; + if (!z6) { + } + z9 = true; + return new u(str, str2, str3, codecCapabilities, z2, z3, z4, z7, z8, z9); + } + + public g c(j1 j1Var, j1 j1Var2) { + boolean z2 = false; + int i = !e0.a(j1Var.w, j1Var2.w) ? 8 : 0; + if (this.g) { + if (j1Var.E != j1Var2.E) { + i |= 1024; + } + if (!this.e && !(j1Var.B == j1Var2.B && j1Var.C == j1Var2.C)) { + i |= 512; + } + if (!e0.a(j1Var.I, j1Var2.I)) { + i |= 2048; + } + String str = this.a; + if (e0.d.startsWith("SM-T230") && "OMX.MARVELL.VIDEO.HW.CODA7542DECODER".equals(str)) { + z2 = true; + } + if (z2 && !j1Var.c(j1Var2)) { + i |= 2; + } + if (i == 0) { + return new g(this.a, j1Var, j1Var2, j1Var.c(j1Var2) ? 3 : 2, 0); + } + } else { + if (j1Var.J != j1Var2.J) { + i |= 4096; + } + if (j1Var.K != j1Var2.K) { + i |= 8192; + } + if (j1Var.L != j1Var2.L) { + i |= 16384; + } + if (i == 0 && "audio/mp4a-latm".equals(this.f1301b)) { + Pair c = MediaCodecUtil.c(j1Var); + Pair c2 = MediaCodecUtil.c(j1Var2); + if (!(c == null || c2 == null)) { + int intValue = ((Integer) c.first).intValue(); + int intValue2 = ((Integer) c2.first).intValue(); + if (intValue == 42 && intValue2 == 42) { + return new g(this.a, j1Var, j1Var2, 3, 0); + } + } + } + if (!j1Var.c(j1Var2)) { + i |= 32; + } + if ("audio/opus".equals(this.f1301b)) { + i |= 2; + } + if (i == 0) { + return new g(this.a, j1Var, j1Var2, 1, 0); + } + } + return new g(this.a, j1Var, j1Var2, 0, i); + } + + public MediaCodecInfo.CodecProfileLevel[] d() { + MediaCodecInfo.CodecProfileLevel[] codecProfileLevelArr; + MediaCodecInfo.CodecCapabilities codecCapabilities = this.d; + return (codecCapabilities == null || (codecProfileLevelArr = codecCapabilities.profileLevels) == null) ? new MediaCodecInfo.CodecProfileLevel[0] : codecProfileLevelArr; + } + + /* JADX WARNING: Removed duplicated region for block: B:156:? A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:157:? A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:70:0x0114 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:71:0x0115 */ + public boolean e(j1 j1Var) throws MediaCodecUtil.DecoderQueryException { + boolean z2; + boolean z3; + boolean z4; + int i; + String c; + MediaCodecInfo.VideoCapabilities videoCapabilities; + String str = j1Var.t; + int i2 = 16; + boolean z5 = false; + if (!(str == null || this.f1301b == null || (c = t.c(str)) == null)) { + if (!this.f1301b.equals(c)) { + String str2 = j1Var.t; + h(a.k(c.length() + a.b(str2, 13), "codec.mime ", str2, ", ", c)); + } else { + Pair c2 = MediaCodecUtil.c(j1Var); + if (c2 != null) { + int intValue = ((Integer) c2.first).intValue(); + int intValue2 = ((Integer) c2.second).intValue(); + if (this.g || intValue == 42) { + MediaCodecInfo.CodecProfileLevel[] d = d(); + if (e0.a <= 23 && "video/x-vnd.on2.vp9".equals(this.f1301b) && d.length == 0) { + MediaCodecInfo.CodecCapabilities codecCapabilities = this.d; + int intValue3 = (codecCapabilities == null || (videoCapabilities = codecCapabilities.getVideoCapabilities()) == null) ? 0 : videoCapabilities.getBitrateRange().getUpper().intValue(); + int i3 = intValue3 >= 180000000 ? 1024 : intValue3 >= 120000000 ? 512 : intValue3 >= 60000000 ? 256 : intValue3 >= 30000000 ? 128 : intValue3 >= 18000000 ? 64 : intValue3 >= 12000000 ? 32 : intValue3 >= 7200000 ? 16 : intValue3 >= 3600000 ? 8 : intValue3 >= 1800000 ? 4 : intValue3 >= 800000 ? 2 : 1; + MediaCodecInfo.CodecProfileLevel codecProfileLevel = new MediaCodecInfo.CodecProfileLevel(); + codecProfileLevel.profile = 1; + codecProfileLevel.level = i3; + d = new MediaCodecInfo.CodecProfileLevel[]{codecProfileLevel}; + } + for (MediaCodecInfo.CodecProfileLevel codecProfileLevel2 : d) { + if (codecProfileLevel2.profile != intValue || codecProfileLevel2.level < intValue2) { + } + } + String str3 = j1Var.t; + h(a.k(c.length() + a.b(str3, 22), "codec.profileLevel, ", str3, ", ", c)); + } + } + } + z2 = false; + if (z2) { + return false; + } + if (this.g) { + int i4 = j1Var.B; + if (i4 <= 0 || (i = j1Var.C) <= 0) { + return true; + } + if (e0.a >= 21) { + return g(i4, i, (double) j1Var.D); + } + if (i4 * i <= MediaCodecUtil.i()) { + z5 = true; + } + if (!z5) { + h(a.g(40, "legacyFrameSize, ", j1Var.B, "x", j1Var.C)); + } + return z5; + } + int i5 = e0.a; + if (i5 >= 21) { + int i6 = j1Var.K; + if (i6 != -1) { + MediaCodecInfo.CodecCapabilities codecCapabilities2 = this.d; + if (codecCapabilities2 == null) { + h("sampleRate.caps"); + } else { + MediaCodecInfo.AudioCapabilities audioCapabilities = codecCapabilities2.getAudioCapabilities(); + if (audioCapabilities == null) { + h("sampleRate.aCaps"); + } else if (!audioCapabilities.isSampleRateSupported(i6)) { + StringBuilder sb = new StringBuilder(31); + sb.append("sampleRate.support, "); + sb.append(i6); + h(sb.toString()); + } else { + z4 = true; + if (!z4) { + return false; + } + } + } + z4 = false; + if (!z4) { + } + } + int i7 = j1Var.J; + if (i7 != -1) { + MediaCodecInfo.CodecCapabilities codecCapabilities3 = this.d; + if (codecCapabilities3 == null) { + h("channelCount.caps"); + } else { + MediaCodecInfo.AudioCapabilities audioCapabilities2 = codecCapabilities3.getAudioCapabilities(); + if (audioCapabilities2 == null) { + h("channelCount.aCaps"); + } else { + String str4 = this.a; + String str5 = this.f1301b; + int maxInputChannelCount = audioCapabilities2.getMaxInputChannelCount(); + if (maxInputChannelCount <= 1 && ((i5 < 26 || maxInputChannelCount <= 0) && !"audio/mpeg".equals(str5) && !"audio/3gpp".equals(str5) && !"audio/amr-wb".equals(str5) && !"audio/mp4a-latm".equals(str5) && !"audio/vorbis".equals(str5) && !"audio/opus".equals(str5) && !"audio/raw".equals(str5) && !"audio/flac".equals(str5) && !"audio/g711-alaw".equals(str5) && !"audio/g711-mlaw".equals(str5) && !"audio/gsm".equals(str5))) { + if ("audio/ac3".equals(str5)) { + i2 = 6; + } else if (!"audio/eac3".equals(str5)) { + i2 = 30; + } + StringBuilder sb2 = new StringBuilder(a.b(str4, 59)); + sb2.append("AssumedMaxChannelAdjustment: "); + sb2.append(str4); + sb2.append(", ["); + sb2.append(maxInputChannelCount); + sb2.append(" to "); + sb2.append(i2); + sb2.append("]"); + Log.w("MediaCodecInfo", sb2.toString()); + maxInputChannelCount = i2; + } + if (maxInputChannelCount < i7) { + StringBuilder sb3 = new StringBuilder(33); + sb3.append("channelCount.support, "); + sb3.append(i7); + h(sb3.toString()); + } else { + z3 = true; + if (z3) { + return false; + } + } + } + } + z3 = false; + if (z3) { + } + } + } + return true; + } + z2 = true; + if (z2) { + } + } + + public boolean f(j1 j1Var) { + if (this.g) { + return this.e; + } + Pair c = MediaCodecUtil.c(j1Var); + return c != null && ((Integer) c.first).intValue() == 42; + } + + @RequiresApi(21) + public boolean g(int i, int i2, double d) { + MediaCodecInfo.CodecCapabilities codecCapabilities = this.d; + if (codecCapabilities == null) { + h("sizeAndRate.caps"); + return false; + } + MediaCodecInfo.VideoCapabilities videoCapabilities = codecCapabilities.getVideoCapabilities(); + if (videoCapabilities == null) { + h("sizeAndRate.vCaps"); + return false; + } + if (!b(videoCapabilities, i, i2, d)) { + if (i < i2) { + if ((!"OMX.MTK.VIDEO.DECODER.HEVC".equals(this.a) || !"mcv5a".equals(e0.f954b)) && b(videoCapabilities, i2, i, d)) { + StringBuilder O = a.O(69, "sizeAndRate.rotated, ", i, "x", i2); + O.append("x"); + O.append(d); + String sb = O.toString(); + String str = this.a; + String str2 = this.f1301b; + String str3 = e0.e; + StringBuilder Q = a.Q(a.b(str3, a.b(str2, a.b(str, a.b(sb, 25)))), "AssumedSupport [", sb, "] [", str); + a.q0(Q, ", ", str2, "] [", str3); + Q.append("]"); + Log.d("MediaCodecInfo", Q.toString()); + } + } + StringBuilder O2 = a.O(69, "sizeAndRate.support, ", i, "x", i2); + O2.append("x"); + O2.append(d); + h(O2.toString()); + return false; + } + return true; + } + + public final void h(String str) { + String str2 = this.a; + String str3 = this.f1301b; + String str4 = e0.e; + StringBuilder Q = a.Q(a.b(str4, a.b(str3, a.b(str2, a.b(str, 20)))), "NoSupport [", str, "] [", str2); + a.q0(Q, ", ", str3, "] [", str4); + Q.append("]"); + Log.d("MediaCodecInfo", Q.toString()); + } + + public String toString() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/c/y2/v.java b/app/src/main/java/b/i/a/c/y2/v.java new file mode 100644 index 0000000000..183c0acede --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/v.java @@ -0,0 +1,10 @@ +package b.i.a.c.y2; + +import com.google.android.exoplayer2.mediacodec.MediaCodecUtil; +import java.util.List; +/* compiled from: MediaCodecSelector */ +public interface v { + public static final /* synthetic */ int a = 0; + + List a(String str, boolean z2, boolean z3) throws MediaCodecUtil.DecoderQueryException; +} diff --git a/app/src/main/java/b/i/a/c/y2/w.java b/app/src/main/java/b/i/a/c/y2/w.java new file mode 100644 index 0000000000..047361f3d5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/y2/w.java @@ -0,0 +1,127 @@ +package b.i.a.c.y2; + +import android.media.MediaCodec; +import android.media.MediaFormat; +import android.os.Bundle; +import android.os.Handler; +import android.view.Surface; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.c.f3.e0; +import b.i.a.c.v2.c; +import b.i.a.c.y2.t; +import java.nio.ByteBuffer; +/* compiled from: SynchronousMediaCodecAdapter */ +public class w implements t { + public final MediaCodec a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public ByteBuffer[] f1302b; + @Nullable + public ByteBuffer[] c; + + public w(MediaCodec mediaCodec, Surface surface, a aVar) { + this.a = mediaCodec; + if (e0.a < 21) { + this.f1302b = mediaCodec.getInputBuffers(); + this.c = mediaCodec.getOutputBuffers(); + } + } + + @Override // b.i.a.c.y2.t + public boolean a() { + return false; + } + + @Override // b.i.a.c.y2.t + public void b(int i, int i2, c cVar, long j, int i3) { + this.a.queueSecureInputBuffer(i, i2, cVar.i, j, i3); + } + + @Override // b.i.a.c.y2.t + @RequiresApi(21) + public void c(int i, long j) { + this.a.releaseOutputBuffer(i, j); + } + + @Override // b.i.a.c.y2.t + public int d() { + return this.a.dequeueInputBuffer(0); + } + + @Override // b.i.a.c.y2.t + public int e(MediaCodec.BufferInfo bufferInfo) { + int dequeueOutputBuffer; + do { + dequeueOutputBuffer = this.a.dequeueOutputBuffer(bufferInfo, 0); + if (dequeueOutputBuffer == -3 && e0.a < 21) { + this.c = this.a.getOutputBuffers(); + continue; + } + } while (dequeueOutputBuffer == -3); + return dequeueOutputBuffer; + } + + @Override // b.i.a.c.y2.t + @RequiresApi(23) + public void f(t.c cVar, Handler handler) { + this.a.setOnFrameRenderedListener(new i(this, cVar), handler); + } + + @Override // b.i.a.c.y2.t + public void flush() { + this.a.flush(); + } + + @Override // b.i.a.c.y2.t + public void g(int i) { + this.a.setVideoScalingMode(i); + } + + @Override // b.i.a.c.y2.t + public MediaFormat getOutputFormat() { + return this.a.getOutputFormat(); + } + + @Override // b.i.a.c.y2.t + @Nullable + public ByteBuffer h(int i) { + return e0.a >= 21 ? this.a.getInputBuffer(i) : this.f1302b[i]; + } + + @Override // b.i.a.c.y2.t + @RequiresApi(23) + public void i(Surface surface) { + this.a.setOutputSurface(surface); + } + + @Override // b.i.a.c.y2.t + @Nullable + public ByteBuffer j(int i) { + return e0.a >= 21 ? this.a.getOutputBuffer(i) : this.c[i]; + } + + @Override // b.i.a.c.y2.t + public void queueInputBuffer(int i, int i2, int i3, long j, int i4) { + this.a.queueInputBuffer(i, i2, i3, j, i4); + } + + @Override // b.i.a.c.y2.t + public void release() { + this.f1302b = null; + this.c = null; + this.a.release(); + } + + @Override // b.i.a.c.y2.t + public void releaseOutputBuffer(int i, boolean z2) { + this.a.releaseOutputBuffer(i, z2); + } + + @Override // b.i.a.c.y2.t + @RequiresApi(19) + public void setParameters(Bundle bundle) { + this.a.setParameters(bundle); + } +} diff --git a/app/src/main/java/b/i/a/c/z.java b/app/src/main/java/b/i/a/c/z.java new file mode 100644 index 0000000000..d301892407 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z.java @@ -0,0 +1,21 @@ +package b.i.a.c; + +import b.i.a.c.f3.p; +import b.i.a.c.y1; +/* compiled from: lambda */ +public final /* synthetic */ class z implements p.a { + public final /* synthetic */ o1 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1303b; + + public /* synthetic */ z(o1 o1Var, int i) { + this.a = o1Var; + this.f1303b = i; + } + + @Override // b.i.a.c.f3.p.a + public final void invoke(Object obj) { + ((y1.c) obj).M(this.a, this.f1303b); + } +} diff --git a/app/src/main/java/b/i/a/c/z0.java b/app/src/main/java/b/i/a/c/z0.java new file mode 100644 index 0000000000..1ac4e2f99c --- /dev/null +++ b/app/src/main/java/b/i/a/c/z0.java @@ -0,0 +1,195 @@ +package b.i.a.c; + +import android.util.Log; +import b.c.a.a0.d; +import b.i.a.c.a3.o0; +import b.i.a.c.c3.j; +import b.i.a.c.e3.o; +import b.i.a.c.f3.e0; +/* compiled from: DefaultLoadControl */ +public class z0 implements n1 { + public final o a; + + /* renamed from: b reason: collision with root package name */ + public final long f1304b; + public final long c; + public final long d; + public final long e; + public final int f; + public final boolean g; + public final long h; + public final boolean i; + public int j; + public boolean k; + + public z0(o oVar, int i, int i2, int i3, int i4, int i5, boolean z2, int i6, boolean z3) { + j(i3, 0, "bufferForPlaybackMs", "0"); + j(i4, 0, "bufferForPlaybackAfterRebufferMs", "0"); + j(i, i3, "minBufferMs", "bufferForPlaybackMs"); + j(i, i4, "minBufferMs", "bufferForPlaybackAfterRebufferMs"); + j(i2, i, "maxBufferMs", "minBufferMs"); + j(i6, 0, "backBufferDurationMs", "0"); + this.a = oVar; + this.f1304b = e0.B((long) i); + this.c = e0.B((long) i2); + this.d = e0.B((long) i3); + this.e = e0.B((long) i4); + this.f = i5; + this.j = i5 == -1 ? 13107200 : i5; + this.g = z2; + this.h = e0.B((long) i6); + this.i = z3; + } + + public static void j(int i, int i2, String str, String str2) { + boolean z2 = i >= i2; + StringBuilder sb = new StringBuilder(String.valueOf(str2).length() + String.valueOf(str).length() + 21); + sb.append(str); + sb.append(" cannot be less than "); + sb.append(str2); + d.m(z2, sb.toString()); + } + + @Override // b.i.a.c.n1 + public boolean a() { + return this.i; + } + + @Override // b.i.a.c.n1 + public long b() { + return this.h; + } + + @Override // b.i.a.c.n1 + public void c() { + k(false); + } + + @Override // b.i.a.c.n1 + public void d(f2[] f2VarArr, o0 o0Var, j[] jVarArr) { + int i = this.f; + if (i == -1) { + int i2 = 0; + int i3 = 0; + while (true) { + int i4 = 13107200; + if (i2 < f2VarArr.length) { + if (jVarArr[i2] != null) { + switch (f2VarArr[i2].x()) { + case -2: + i4 = 0; + break; + case -1: + default: + throw new IllegalArgumentException(); + case 0: + i4 = 144310272; + break; + case 1: + break; + case 2: + i4 = 131072000; + break; + case 3: + case 4: + case 5: + case 6: + i4 = 131072; + break; + } + i3 += i4; + } + i2++; + } else { + i = Math.max(13107200, i3); + } + } + } + this.j = i; + this.a.b(i); + } + + @Override // b.i.a.c.n1 + public void e() { + k(true); + } + + @Override // b.i.a.c.n1 + public boolean f(long j, float f, boolean z2, long j2) { + int i; + int i2 = e0.a; + if (f != 1.0f) { + j = Math.round(((double) j) / ((double) f)); + } + long j3 = z2 ? this.e : this.d; + if (j2 != -9223372036854775807L) { + j3 = Math.min(j2 / 2, j3); + } + if (j3 > 0 && j < j3) { + if (!this.g) { + o oVar = this.a; + synchronized (oVar) { + i = oVar.e * oVar.f930b; + } + if (i >= this.j) { + } + } + return false; + } + return true; + } + + @Override // b.i.a.c.n1 + public boolean g(long j, long j2, float f) { + int i; + o oVar = this.a; + synchronized (oVar) { + i = oVar.e * oVar.f930b; + } + boolean z2 = true; + boolean z3 = i >= this.j; + long j3 = this.f1304b; + if (f > 1.0f) { + j3 = Math.min(e0.q(j3, f), this.c); + } + if (j2 < Math.max(j3, 500000L)) { + if (!this.g && z3) { + z2 = false; + } + this.k = z2; + if (!z2 && j2 < 500000) { + Log.w("DefaultLoadControl", "Target buffer size reached with less than 500ms of buffered media data."); + } + } else if (j2 >= this.c || z3) { + this.k = false; + } + return this.k; + } + + @Override // b.i.a.c.n1 + public o h() { + return this.a; + } + + @Override // b.i.a.c.n1 + public void i() { + k(true); + } + + public final void k(boolean z2) { + int i = this.f; + if (i == -1) { + i = 13107200; + } + this.j = i; + this.k = false; + if (z2) { + o oVar = this.a; + synchronized (oVar) { + if (oVar.a) { + oVar.b(0); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/z1.java b/app/src/main/java/b/i/a/c/z1.java new file mode 100644 index 0000000000..a18d87a6a4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z1.java @@ -0,0 +1,71 @@ +package b.i.a.c; + +import androidx.annotation.Nullable; +import b.i.a.c.a3.o0; +import b.i.a.c.c3.n; +import b.i.a.c.y1; +import com.google.android.exoplayer2.PlaybackException; +/* compiled from: Player */ +public final /* synthetic */ class z1 { + public static void a(y1.c cVar, y1.b bVar) { + } + + public static void b(y1.c cVar, y1 y1Var, y1.d dVar) { + } + + public static void c(y1.c cVar, boolean z2) { + } + + @Deprecated + public static void d(y1.c cVar, boolean z2) { + } + + public static void e(@Nullable y1.c cVar, o1 o1Var, int i) { + } + + public static void f(y1.c cVar, p1 p1Var) { + } + + public static void g(y1.c cVar, x1 x1Var) { + } + + public static void h(y1.c cVar, int i) { + } + + public static void i(y1.c cVar, PlaybackException playbackException) { + } + + public static void j(@Nullable y1.c cVar, PlaybackException playbackException) { + } + + @Deprecated + public static void k(y1.c cVar, boolean z2, int i) { + } + + @Deprecated + public static void l(y1.c cVar, int i) { + } + + public static void m(y1.c cVar, y1.f fVar, y1.f fVar2, int i) { + } + + public static void n(y1.c cVar, int i) { + } + + @Deprecated + public static void o(y1.c cVar) { + } + + public static void p(y1.c cVar, boolean z2) { + } + + public static void q(y1.c cVar, o2 o2Var, int i) { + } + + @Deprecated + public static void r(y1.c cVar, o0 o0Var, n nVar) { + } + + public static void s(y1.c cVar, p2 p2Var) { + } +} diff --git a/app/src/main/java/b/i/a/c/z2/a.java b/app/src/main/java/b/i/a/c/z2/a.java new file mode 100644 index 0000000000..0045ec1805 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/a.java @@ -0,0 +1,21 @@ +package b.i.a.c.z2; + +import androidx.annotation.Nullable; +import b.i.a.c.j1; +import b.i.a.c.p1; +import com.google.android.exoplayer2.metadata.Metadata; +/* compiled from: Metadata */ +public final /* synthetic */ class a { + @Nullable + public static byte[] a(Metadata.Entry entry) { + return null; + } + + @Nullable + public static j1 b(Metadata.Entry entry) { + return null; + } + + public static void c(Metadata.Entry entry, p1.b bVar) { + } +} diff --git a/app/src/main/java/b/i/a/c/z2/b.java b/app/src/main/java/b/i/a/c/z2/b.java new file mode 100644 index 0000000000..84aebb07a2 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/b.java @@ -0,0 +1,9 @@ +package b.i.a.c.z2; + +import androidx.annotation.Nullable; +import com.google.android.exoplayer2.metadata.Metadata; +/* compiled from: MetadataDecoder */ +public interface b { + @Nullable + Metadata a(d dVar); +} diff --git a/app/src/main/java/b/i/a/c/z2/c.java b/app/src/main/java/b/i/a/c/z2/c.java new file mode 100644 index 0000000000..5bccd38c6b --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/c.java @@ -0,0 +1,75 @@ +package b.i.a.c.z2; + +import b.i.a.c.j1; +import b.i.a.c.z2.k.b; +/* compiled from: MetadataDecoderFactory */ +public interface c { + public static final c a = new a(); + + /* compiled from: MetadataDecoderFactory */ + public class a implements c { + @Override // b.i.a.c.z2.c + public boolean a(j1 j1Var) { + String str = j1Var.w; + return "application/id3".equals(str) || "application/x-emsg".equals(str) || "application/x-scte35".equals(str) || "application/x-icy".equals(str) || "application/vnd.dvb.ait".equals(str); + } + + @Override // b.i.a.c.z2.c + public b b(j1 j1Var) { + String str = j1Var.w; + if (str != null) { + char c = 65535; + switch (str.hashCode()) { + case -1354451219: + if (str.equals("application/vnd.dvb.ait")) { + c = 0; + break; + } + break; + case -1348231605: + if (str.equals("application/x-icy")) { + c = 1; + break; + } + break; + case -1248341703: + if (str.equals("application/id3")) { + c = 2; + break; + } + break; + case 1154383568: + if (str.equals("application/x-emsg")) { + c = 3; + break; + } + break; + case 1652648887: + if (str.equals("application/x-scte35")) { + c = 4; + break; + } + break; + } + switch (c) { + case 0: + return new b.i.a.c.z2.h.a(); + case 1: + return new b.i.a.c.z2.j.a(); + case 2: + return new b(); + case 3: + return new b.i.a.c.z2.i.a(); + case 4: + return new b.i.a.c.z2.l.a(); + } + } + String valueOf = String.valueOf(str); + throw new IllegalArgumentException(valueOf.length() != 0 ? "Attempted to create decoder for unsupported MIME type: ".concat(valueOf) : new String("Attempted to create decoder for unsupported MIME type: ")); + } + } + + boolean a(j1 j1Var); + + b b(j1 j1Var); +} diff --git a/app/src/main/java/b/i/a/c/z2/d.java b/app/src/main/java/b/i/a/c/z2/d.java new file mode 100644 index 0000000000..0a325fa85b --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/d.java @@ -0,0 +1,11 @@ +package b.i.a.c.z2; + +import com.google.android.exoplayer2.decoder.DecoderInputBuffer; +/* compiled from: MetadataInputBuffer */ +public final class d extends DecoderInputBuffer { + public long r; + + public d() { + super(1); + } +} diff --git a/app/src/main/java/b/i/a/c/z2/e.java b/app/src/main/java/b/i/a/c/z2/e.java new file mode 100644 index 0000000000..c7585c115f --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/e.java @@ -0,0 +1,7 @@ +package b.i.a.c.z2; + +import com.google.android.exoplayer2.metadata.Metadata; +/* compiled from: MetadataOutput */ +public interface e { + void b(Metadata metadata); +} diff --git a/app/src/main/java/b/i/a/c/z2/f.java b/app/src/main/java/b/i/a/c/z2/f.java new file mode 100644 index 0000000000..f1fed8ddfc --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/f.java @@ -0,0 +1,191 @@ +package b.i.a.c.z2; + +import android.os.Handler; +import android.os.Looper; +import android.os.Message; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.j1; +import b.i.a.c.k1; +import b.i.a.c.v0; +import com.google.android.exoplayer2.metadata.Metadata; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +/* compiled from: MetadataRenderer */ +public final class f extends v0 implements Handler.Callback { + public boolean A; + public long B; + public long C; + @Nullable + public Metadata D; + public final c u; + public final e v; + @Nullable + public final Handler w; + + /* renamed from: x reason: collision with root package name */ + public final d f1305x; + @Nullable + + /* renamed from: y reason: collision with root package name */ + public b f1306y; + + /* renamed from: z reason: collision with root package name */ + public boolean f1307z; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f(e eVar, @Nullable Looper looper) { + super(5); + Handler handler; + c cVar = c.a; + Objects.requireNonNull(eVar); + this.v = eVar; + if (looper == null) { + handler = null; + } else { + int i = e0.a; + handler = new Handler(looper, this); + } + this.w = handler; + this.u = cVar; + this.f1305x = new d(); + this.C = -9223372036854775807L; + } + + @Override // b.i.a.c.v0 + public void B() { + this.D = null; + this.C = -9223372036854775807L; + this.f1306y = null; + } + + @Override // b.i.a.c.v0 + public void D(long j, boolean z2) { + this.D = null; + this.C = -9223372036854775807L; + this.f1307z = false; + this.A = false; + } + + @Override // b.i.a.c.v0 + public void H(j1[] j1VarArr, long j, long j2) { + this.f1306y = this.u.b(j1VarArr[0]); + } + + public final void J(Metadata metadata, List list) { + int i = 0; + while (true) { + Metadata.Entry[] entryArr = metadata.j; + if (i < entryArr.length) { + j1 y2 = entryArr[i].y(); + if (y2 == null || !this.u.a(y2)) { + list.add(metadata.j[i]); + } else { + b b2 = this.u.b(y2); + byte[] o0 = metadata.j[i].o0(); + Objects.requireNonNull(o0); + this.f1305x.p(); + this.f1305x.r(o0.length); + ByteBuffer byteBuffer = this.f1305x.l; + int i2 = e0.a; + byteBuffer.put(o0); + this.f1305x.s(); + Metadata a = b2.a(this.f1305x); + if (a != null) { + J(a, list); + } + } + i++; + } else { + return; + } + } + } + + @Override // b.i.a.c.g2 + public int a(j1 j1Var) { + if (!this.u.a(j1Var)) { + return 0; + } + return (j1Var.P == 0 ? 4 : 2) | 0 | 0; + } + + @Override // b.i.a.c.f2 + public boolean b() { + return this.A; + } + + @Override // b.i.a.c.f2 + public boolean d() { + return true; + } + + @Override // b.i.a.c.f2, b.i.a.c.g2 + public String getName() { + return "MetadataRenderer"; + } + + @Override // android.os.Handler.Callback + public boolean handleMessage(Message message) { + if (message.what == 0) { + this.v.b((Metadata) message.obj); + return true; + } + throw new IllegalStateException(); + } + + @Override // b.i.a.c.f2 + public void q(long j, long j2) { + boolean z2 = true; + while (z2) { + if (!this.f1307z && this.D == null) { + this.f1305x.p(); + k1 A = A(); + int I = I(A, this.f1305x, 0); + if (I == -4) { + if (this.f1305x.n()) { + this.f1307z = true; + } else { + d dVar = this.f1305x; + dVar.r = this.B; + dVar.s(); + b bVar = this.f1306y; + int i = e0.a; + Metadata a = bVar.a(this.f1305x); + if (a != null) { + ArrayList arrayList = new ArrayList(a.j.length); + J(a, arrayList); + if (!arrayList.isEmpty()) { + this.D = new Metadata(arrayList); + this.C = this.f1305x.n; + } + } + } + } else if (I == -5) { + j1 j1Var = A.f1013b; + Objects.requireNonNull(j1Var); + this.B = j1Var.A; + } + } + Metadata metadata = this.D; + if (metadata == null || this.C > j) { + z2 = false; + } else { + Handler handler = this.w; + if (handler != null) { + handler.obtainMessage(0, metadata).sendToTarget(); + } else { + this.v.b(metadata); + } + this.D = null; + this.C = -9223372036854775807L; + z2 = true; + } + if (this.f1307z && this.D == null) { + this.A = true; + } + } + } +} diff --git a/app/src/main/java/b/i/a/c/z2/g.java b/app/src/main/java/b/i/a/c/z2/g.java new file mode 100644 index 0000000000..e08cfcb6d5 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/g.java @@ -0,0 +1,24 @@ +package b.i.a.c.z2; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import com.google.android.exoplayer2.metadata.Metadata; +import java.nio.ByteBuffer; +import java.util.Objects; +/* compiled from: SimpleMetadataDecoder */ +public abstract class g implements b { + @Override // b.i.a.c.z2.b + @Nullable + public final Metadata a(d dVar) { + ByteBuffer byteBuffer = dVar.l; + Objects.requireNonNull(byteBuffer); + d.j(byteBuffer.position() == 0 && byteBuffer.hasArray() && byteBuffer.arrayOffset() == 0); + if (dVar.m()) { + return null; + } + return b(dVar, byteBuffer); + } + + @Nullable + public abstract Metadata b(d dVar, ByteBuffer byteBuffer); +} diff --git a/app/src/main/java/b/i/a/c/z2/h/a.java b/app/src/main/java/b/i/a/c/z2/h/a.java new file mode 100644 index 0000000000..c01fa23dec --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/h/a.java @@ -0,0 +1,72 @@ +package b.i.a.c.z2.h; + +import androidx.annotation.Nullable; +import b.i.a.c.f3.w; +import b.i.a.c.z2.d; +import b.i.a.c.z2.g; +import b.i.b.a.c; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.dvbsi.AppInfoTable; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.util.ArrayList; +/* compiled from: AppInfoTableDecoder */ +public final class a extends g { + @Override // b.i.a.c.z2.g + @Nullable + public Metadata b(d dVar, ByteBuffer byteBuffer) { + if (byteBuffer.get() == 116) { + w wVar = new w(byteBuffer.array(), byteBuffer.limit()); + wVar.m(12); + int d = (wVar.d() + wVar.g(12)) - 4; + wVar.m(44); + wVar.n(wVar.g(12)); + wVar.m(16); + ArrayList arrayList = new ArrayList(); + while (wVar.d() < d) { + wVar.m(48); + int g = wVar.g(8); + wVar.m(4); + int d2 = wVar.d() + wVar.g(12); + String str = null; + String str2 = null; + while (wVar.d() < d2) { + int g2 = wVar.g(8); + int g3 = wVar.g(8); + int d3 = wVar.d() + g3; + if (g2 == 2) { + int g4 = wVar.g(16); + wVar.m(8); + if (g4 != 3) { + } + while (wVar.d() < d3) { + int g5 = wVar.g(8); + Charset charset = c.a; + byte[] bArr = new byte[g5]; + wVar.i(bArr, 0, g5); + str = new String(bArr, charset); + int g6 = wVar.g(8); + for (int i = 0; i < g6; i++) { + wVar.n(wVar.g(8)); + } + } + } else if (g2 == 21) { + Charset charset2 = c.a; + byte[] bArr2 = new byte[g3]; + wVar.i(bArr2, 0, g3); + str2 = new String(bArr2, charset2); + } + wVar.k(d3 * 8); + } + wVar.k(d2 * 8); + if (!(str == null || str2 == null)) { + arrayList.add(new AppInfoTable(g, str2.length() != 0 ? str.concat(str2) : new String(str))); + } + } + if (!arrayList.isEmpty()) { + return new Metadata(arrayList); + } + } + return null; + } +} diff --git a/app/src/main/java/b/i/a/c/z2/i/a.java b/app/src/main/java/b/i/a/c/z2/i/a.java new file mode 100644 index 0000000000..4c2df6479e --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/i/a.java @@ -0,0 +1,22 @@ +package b.i.a.c.z2.i; + +import b.i.a.c.f3.x; +import b.i.a.c.z2.d; +import b.i.a.c.z2.g; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.emsg.EventMessage; +import java.nio.ByteBuffer; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: EventMessageDecoder */ +public final class a extends g { + @Override // b.i.a.c.z2.g + public Metadata b(d dVar, ByteBuffer byteBuffer) { + x xVar = new x(byteBuffer.array(), byteBuffer.limit()); + String n = xVar.n(); + Objects.requireNonNull(n); + String n2 = xVar.n(); + Objects.requireNonNull(n2); + return new Metadata(new EventMessage(n, n2, xVar.m(), xVar.m(), Arrays.copyOfRange(xVar.a, xVar.f970b, xVar.c))); + } +} diff --git a/app/src/main/java/b/i/a/c/z2/i/b.java b/app/src/main/java/b/i/a/c/z2/i/b.java new file mode 100644 index 0000000000..2e0f954fc9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/i/b.java @@ -0,0 +1,17 @@ +package b.i.a.c.z2.i; + +import java.io.ByteArrayOutputStream; +import java.io.DataOutputStream; +/* compiled from: EventMessageEncoder */ +public final class b { + public final ByteArrayOutputStream a; + + /* renamed from: b reason: collision with root package name */ + public final DataOutputStream f1308b; + + public b() { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(512); + this.a = byteArrayOutputStream; + this.f1308b = new DataOutputStream(byteArrayOutputStream); + } +} diff --git a/app/src/main/java/b/i/a/c/z2/j/a.java b/app/src/main/java/b/i/a/c/z2/j/a.java new file mode 100644 index 0000000000..088b1b5dd4 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/j/a.java @@ -0,0 +1,69 @@ +package b.i.a.c.z2.j; + +import b.i.a.c.z2.d; +import b.i.a.c.z2.g; +import b.i.a.f.e.o.f; +import b.i.b.a.c; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.icy.IcyInfo; +import java.nio.ByteBuffer; +import java.nio.charset.CharacterCodingException; +import java.nio.charset.CharsetDecoder; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: IcyDecoder */ +public final class a extends g { + public static final Pattern a = Pattern.compile("(.+?)='(.*?)';", 32); + + /* renamed from: b reason: collision with root package name */ + public final CharsetDecoder f1309b = c.c.newDecoder(); + public final CharsetDecoder c = c.f1627b.newDecoder(); + + /* JADX INFO: finally extract failed */ + @Override // b.i.a.c.z2.g + public Metadata b(d dVar, ByteBuffer byteBuffer) { + String str; + String str2 = null; + try { + str = this.f1309b.decode(byteBuffer).toString(); + } catch (CharacterCodingException unused) { + try { + str = this.c.decode(byteBuffer).toString(); + this.c.reset(); + byteBuffer.rewind(); + } catch (CharacterCodingException unused2) { + this.c.reset(); + byteBuffer.rewind(); + str = null; + } catch (Throwable th) { + this.c.reset(); + byteBuffer.rewind(); + throw th; + } + } finally { + this.f1309b.reset(); + byteBuffer.rewind(); + } + byte[] bArr = new byte[byteBuffer.limit()]; + byteBuffer.get(bArr); + if (str == null) { + return new Metadata(new IcyInfo(bArr, null, null)); + } + Matcher matcher = a.matcher(str); + String str3 = null; + for (int i = 0; matcher.find(i); i = matcher.end()) { + String group = matcher.group(1); + String group2 = matcher.group(2); + if (group != null) { + String m1 = f.m1(group); + m1.hashCode(); + if (m1.equals("streamurl")) { + str3 = group2; + } else if (m1.equals("streamtitle")) { + str2 = group2; + } + } + } + return new Metadata(new IcyInfo(bArr, str2, str3)); + } +} diff --git a/app/src/main/java/b/i/a/c/z2/k/a.java b/app/src/main/java/b/i/a/c/z2/k/a.java new file mode 100644 index 0000000000..d2eb300636 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/k/a.java @@ -0,0 +1,13 @@ +package b.i.a.c.z2.k; + +import b.i.a.c.z2.k.b; +/* compiled from: lambda */ +public final /* synthetic */ class a implements b.a { + public static final /* synthetic */ a a = new a(); + + @Override // b.i.a.c.z2.k.b.a + public final boolean a(int i, int i2, int i3, int i4, int i5) { + int i6 = b.a; + return false; + } +} diff --git a/app/src/main/java/b/i/a/c/z2/k/b.java b/app/src/main/java/b/i/a/c/z2/k/b.java new file mode 100644 index 0000000000..a013be58c9 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/k/b.java @@ -0,0 +1,620 @@ +package b.i.a.c.z2.k; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.c.f3.e0; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.z2.d; +import b.i.a.c.z2.g; +import b.i.a.f.e.o.f; +import com.adjust.sdk.Constants; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.id3.ApicFrame; +import com.google.android.exoplayer2.metadata.id3.BinaryFrame; +import com.google.android.exoplayer2.metadata.id3.ChapterFrame; +import com.google.android.exoplayer2.metadata.id3.ChapterTocFrame; +import com.google.android.exoplayer2.metadata.id3.CommentFrame; +import com.google.android.exoplayer2.metadata.id3.GeobFrame; +import com.google.android.exoplayer2.metadata.id3.Id3Frame; +import com.google.android.exoplayer2.metadata.id3.MlltFrame; +import com.google.android.exoplayer2.metadata.id3.PrivFrame; +import com.google.android.exoplayer2.metadata.id3.TextInformationFrame; +import com.google.android.exoplayer2.metadata.id3.UrlLinkFrame; +import java.io.UnsupportedEncodingException; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Locale; +/* compiled from: Id3Decoder */ +public final class b extends g { + public static final /* synthetic */ int a = 0; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final a f1310b; + + /* compiled from: Id3Decoder */ + public interface a { + boolean a(int i, int i2, int i3, int i4, int i5); + } + + /* compiled from: Id3Decoder */ + /* renamed from: b.i.a.c.z2.k.b$b reason: collision with other inner class name */ + public static final class C0097b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1311b; + public final int c; + + public C0097b(int i, boolean z2, int i2) { + this.a = i; + this.f1311b = z2; + this.c = i2; + } + } + + public b() { + this.f1310b = null; + } + + public b(@Nullable a aVar) { + this.f1310b = aVar; + } + + public static byte[] c(byte[] bArr, int i, int i2) { + return i2 <= i ? e0.f : Arrays.copyOfRange(bArr, i, i2); + } + + public static ApicFrame e(x xVar, int i, int i2) throws UnsupportedEncodingException { + int i3; + String str; + int t = xVar.t(); + String t2 = t(t); + int i4 = i - 1; + byte[] bArr = new byte[i4]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i4); + xVar.f970b += i4; + if (i2 == 2) { + String valueOf = String.valueOf(f.m1(new String(bArr, 0, 3, "ISO-8859-1"))); + String concat = valueOf.length() != 0 ? "image/".concat(valueOf) : new String("image/"); + if ("image/jpg".equals(concat)) { + concat = "image/jpeg"; + } + str = concat; + i3 = 2; + } else { + i3 = w(bArr, 0); + String m1 = f.m1(new String(bArr, 0, i3, "ISO-8859-1")); + str = m1.indexOf(47) == -1 ? m1.length() != 0 ? "image/".concat(m1) : new String("image/") : m1; + } + int i5 = i3 + 2; + int v = v(bArr, i5, t); + return new ApicFrame(str, new String(bArr, i5, v - i5, t2), bArr[i3 + 1] & 255, c(bArr, s(t) + v, i4)); + } + + public static BinaryFrame f(x xVar, int i, String str) { + byte[] bArr = new byte[i]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i); + xVar.f970b += i; + return new BinaryFrame(str, bArr); + } + + public static ChapterFrame g(x xVar, int i, int i2, boolean z2, int i3, @Nullable a aVar) throws UnsupportedEncodingException { + int i4 = xVar.f970b; + int w = w(xVar.a, i4); + String str = new String(xVar.a, i4, w - i4, "ISO-8859-1"); + xVar.E(w + 1); + int f = xVar.f(); + int f2 = xVar.f(); + long u = xVar.u(); + long j = u == 4294967295L ? -1 : u; + long u2 = xVar.u(); + long j2 = u2 == 4294967295L ? -1 : u2; + ArrayList arrayList = new ArrayList(); + int i5 = i4 + i; + while (xVar.f970b < i5) { + Id3Frame j3 = j(i2, xVar, z2, i3, aVar); + if (j3 != null) { + arrayList.add(j3); + } + } + return new ChapterFrame(str, f, f2, j, j2, (Id3Frame[]) arrayList.toArray(new Id3Frame[0])); + } + + public static ChapterTocFrame h(x xVar, int i, int i2, boolean z2, int i3, @Nullable a aVar) throws UnsupportedEncodingException { + int i4 = xVar.f970b; + int w = w(xVar.a, i4); + String str = new String(xVar.a, i4, w - i4, "ISO-8859-1"); + xVar.E(w + 1); + int t = xVar.t(); + boolean z3 = (t & 2) != 0; + boolean z4 = (t & 1) != 0; + int t2 = xVar.t(); + String[] strArr = new String[t2]; + for (int i5 = 0; i5 < t2; i5++) { + int i6 = xVar.f970b; + int w2 = w(xVar.a, i6); + strArr[i5] = new String(xVar.a, i6, w2 - i6, "ISO-8859-1"); + xVar.E(w2 + 1); + } + ArrayList arrayList = new ArrayList(); + int i7 = i4 + i; + while (xVar.f970b < i7) { + Id3Frame j = j(i2, xVar, z2, i3, aVar); + if (j != null) { + arrayList.add(j); + } + } + return new ChapterTocFrame(str, z3, z4, strArr, (Id3Frame[]) arrayList.toArray(new Id3Frame[0])); + } + + @Nullable + public static CommentFrame i(x xVar, int i) throws UnsupportedEncodingException { + if (i < 4) { + return null; + } + int t = xVar.t(); + String t2 = t(t); + byte[] bArr = new byte[3]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, 3); + xVar.f970b += 3; + String str = new String(bArr, 0, 3); + int i2 = i - 4; + byte[] bArr2 = new byte[i2]; + System.arraycopy(xVar.a, xVar.f970b, bArr2, 0, i2); + xVar.f970b += i2; + int v = v(bArr2, 0, t); + String str2 = new String(bArr2, 0, v, t2); + int s2 = s(t) + v; + return new CommentFrame(str, str2, n(bArr2, s2, v(bArr2, s2, t), t2)); + } + + /* JADX WARNING: Code restructure failed: missing block: B:129:0x0188, code lost: + if (r13 == 67) goto L_0x018a; + */ + @Nullable + public static Id3Frame j(int i, x xVar, boolean z2, int i2, @Nullable a aVar) { + int w; + int i3; + int i4; + String str; + boolean z3; + boolean z4; + boolean z5; + boolean z6; + boolean z7; + Id3Frame id3Frame; + int t = xVar.t(); + int t2 = xVar.t(); + int t3 = xVar.t(); + int t4 = i >= 3 ? xVar.t() : 0; + if (i == 4) { + w = xVar.w(); + if (!z2) { + w = (((w >> 24) & 255) << 21) | (w & 255) | (((w >> 8) & 255) << 7) | (((w >> 16) & 255) << 14); + } + } else { + w = i == 3 ? xVar.w() : xVar.v(); + } + int i5 = w; + int y2 = i >= 3 ? xVar.y() : 0; + if (t == 0 && t2 == 0 && t3 == 0 && t4 == 0 && i5 == 0 && y2 == 0) { + xVar.E(xVar.c); + return null; + } + int i6 = xVar.f970b + i5; + if (i6 > xVar.c) { + Log.w("Id3Decoder", "Frame size exceeds remaining tag data"); + xVar.E(xVar.c); + return null; + } + if (aVar != null) { + str = "Id3Decoder"; + i4 = i6; + i3 = y2; + if (!aVar.a(i, t, t2, t3, t4)) { + xVar.E(i4); + return null; + } + } else { + str = "Id3Decoder"; + i4 = i6; + i3 = y2; + } + if (i == 3) { + z6 = (i3 & 128) != 0; + z5 = (i3 & 64) != 0; + z7 = (i3 & 32) != 0; + z3 = z6; + z4 = false; + } else if (i == 4) { + boolean z8 = (i3 & 64) != 0; + boolean z9 = (i3 & 8) != 0; + boolean z10 = (i3 & 4) != 0; + z4 = (i3 & 2) != 0; + z7 = z8; + z6 = (i3 & 1) != 0; + z3 = z9; + z5 = z10; + } else { + z7 = false; + z6 = false; + z5 = false; + z4 = false; + z3 = false; + } + if (z3 || z5) { + Log.w(str, "Skipping unsupported compressed or encrypted frame"); + xVar.E(i4); + return null; + } + if (z7) { + i5--; + xVar.F(1); + } + if (z6) { + i5 -= 4; + xVar.F(4); + } + if (z4) { + i5 = x(xVar, i5); + } + if (t == 84 && t2 == 88 && t3 == 88 && (i == 2 || t4 == 88)) { + try { + id3Frame = p(xVar, i5); + } catch (UnsupportedEncodingException unused) { + Log.w(str, "Unsupported character encoding"); + xVar.E(i4); + return null; + } catch (Throwable th) { + xVar.E(i4); + throw th; + } + } else if (t == 84) { + id3Frame = o(xVar, i5, u(i, t, t2, t3, t4)); + } else if (t == 87 && t2 == 88 && t3 == 88 && (i == 2 || t4 == 88)) { + id3Frame = r(xVar, i5); + } else if (t == 87) { + id3Frame = q(xVar, i5, u(i, t, t2, t3, t4)); + } else if (t == 80 && t2 == 82 && t3 == 73 && t4 == 86) { + id3Frame = m(xVar, i5); + } else if (t == 71 && t2 == 69 && t3 == 79 && (t4 == 66 || i == 2)) { + id3Frame = k(xVar, i5); + } else { + if (i == 2) { + if (t == 80 && t2 == 73 && t3 == 67) { + } + id3Frame = (t != 67 && t2 == 79 && t3 == 77 && (t4 == 77 || i == 2)) ? i(xVar, i5) : (t != 67 && t2 == 72 && t3 == 65 && t4 == 80) ? g(xVar, i5, i, z2, i2, aVar) : (t != 67 && t2 == 84 && t3 == 79 && t4 == 67) ? h(xVar, i5, i, z2, i2, aVar) : (t != 77 && t2 == 76 && t3 == 76 && t4 == 84) ? l(xVar, i5) : f(xVar, i5, u(i, t, t2, t3, t4)); + } else { + if (t == 65) { + if (t2 == 80) { + if (t3 == 73) { + } + } + } + if (t != 67) { + } + } + id3Frame = e(xVar, i5, i); + } + if (id3Frame == null) { + String u = u(i, t, t2, t3, t4); + StringBuilder sb = new StringBuilder(String.valueOf(u).length() + 50); + sb.append("Failed to decode frame: id="); + sb.append(u); + sb.append(", frameSize="); + sb.append(i5); + Log.w(str, sb.toString()); + } + xVar.E(i4); + return id3Frame; + } + + public static GeobFrame k(x xVar, int i) throws UnsupportedEncodingException { + int t = xVar.t(); + String t2 = t(t); + int i2 = i - 1; + byte[] bArr = new byte[i2]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i2); + xVar.f970b += i2; + int w = w(bArr, 0); + String str = new String(bArr, 0, w, "ISO-8859-1"); + int i3 = w + 1; + int v = v(bArr, i3, t); + String n = n(bArr, i3, v, t2); + int s2 = s(t) + v; + int v2 = v(bArr, s2, t); + return new GeobFrame(str, n, n(bArr, s2, v2, t2), c(bArr, s(t) + v2, i2)); + } + + public static MlltFrame l(x xVar, int i) { + int y2 = xVar.y(); + int v = xVar.v(); + int v2 = xVar.v(); + int t = xVar.t(); + int t2 = xVar.t(); + w wVar = new w(); + wVar.j(xVar.a, xVar.c); + wVar.k(xVar.f970b * 8); + int i2 = ((i - 10) * 8) / (t + t2); + int[] iArr = new int[i2]; + int[] iArr2 = new int[i2]; + for (int i3 = 0; i3 < i2; i3++) { + int g = wVar.g(t); + int g2 = wVar.g(t2); + iArr[i3] = g; + iArr2[i3] = g2; + } + return new MlltFrame(y2, v, v2, iArr, iArr2); + } + + public static PrivFrame m(x xVar, int i) throws UnsupportedEncodingException { + byte[] bArr = new byte[i]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i); + xVar.f970b += i; + int w = w(bArr, 0); + return new PrivFrame(new String(bArr, 0, w, "ISO-8859-1"), c(bArr, w + 1, i)); + } + + public static String n(byte[] bArr, int i, int i2, String str) throws UnsupportedEncodingException { + return (i2 <= i || i2 > bArr.length) ? "" : new String(bArr, i, i2 - i, str); + } + + @Nullable + public static TextInformationFrame o(x xVar, int i, String str) throws UnsupportedEncodingException { + if (i < 1) { + return null; + } + int t = xVar.t(); + String t2 = t(t); + int i2 = i - 1; + byte[] bArr = new byte[i2]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i2); + xVar.f970b += i2; + return new TextInformationFrame(str, null, new String(bArr, 0, v(bArr, 0, t), t2)); + } + + @Nullable + public static TextInformationFrame p(x xVar, int i) throws UnsupportedEncodingException { + if (i < 1) { + return null; + } + int t = xVar.t(); + String t2 = t(t); + int i2 = i - 1; + byte[] bArr = new byte[i2]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i2); + xVar.f970b += i2; + int v = v(bArr, 0, t); + String str = new String(bArr, 0, v, t2); + int s2 = s(t) + v; + return new TextInformationFrame("TXXX", str, n(bArr, s2, v(bArr, s2, t), t2)); + } + + public static UrlLinkFrame q(x xVar, int i, String str) throws UnsupportedEncodingException { + byte[] bArr = new byte[i]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i); + xVar.f970b += i; + return new UrlLinkFrame(str, null, new String(bArr, 0, w(bArr, 0), "ISO-8859-1")); + } + + @Nullable + public static UrlLinkFrame r(x xVar, int i) throws UnsupportedEncodingException { + if (i < 1) { + return null; + } + int t = xVar.t(); + String t2 = t(t); + int i2 = i - 1; + byte[] bArr = new byte[i2]; + System.arraycopy(xVar.a, xVar.f970b, bArr, 0, i2); + xVar.f970b += i2; + int v = v(bArr, 0, t); + String str = new String(bArr, 0, v, t2); + int s2 = s(t) + v; + return new UrlLinkFrame("WXXX", str, n(bArr, s2, w(bArr, s2), "ISO-8859-1")); + } + + public static int s(int i) { + return (i == 0 || i == 3) ? 1 : 2; + } + + public static String t(int i) { + return i != 1 ? i != 2 ? i != 3 ? "ISO-8859-1" : Constants.ENCODING : "UTF-16BE" : "UTF-16"; + } + + public static String u(int i, int i2, int i3, int i4, int i5) { + return i == 2 ? String.format(Locale.US, "%c%c%c", Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf(i4)) : String.format(Locale.US, "%c%c%c%c", Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf(i4), Integer.valueOf(i5)); + } + + public static int v(byte[] bArr, int i, int i2) { + int w = w(bArr, i); + if (i2 == 0 || i2 == 3) { + return w; + } + while (w < bArr.length - 1) { + if ((w - i) % 2 == 0 && bArr[w + 1] == 0) { + return w; + } + w = w(bArr, w + 1); + } + return bArr.length; + } + + public static int w(byte[] bArr, int i) { + while (i < bArr.length) { + if (bArr[i] == 0) { + return i; + } + i++; + } + return bArr.length; + } + + public static int x(x xVar, int i) { + byte[] bArr = xVar.a; + int i2 = xVar.f970b; + int i3 = i2; + while (true) { + int i4 = i3 + 1; + if (i4 >= i2 + i) { + return i; + } + if ((bArr[i3] & 255) == 255 && bArr[i4] == 0) { + System.arraycopy(bArr, i3 + 2, bArr, i4, (i - (i3 - i2)) - 2); + i--; + } + i3 = i4; + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:30:0x0074, code lost: + if ((r10 & 1) != 0) goto L_0x0087; + */ + /* JADX WARNING: Code restructure failed: missing block: B:37:0x0082, code lost: + if ((r10 & 128) != 0) goto L_0x0087; + */ + public static boolean y(x xVar, int i, int i2, boolean z2) { + int i3; + long j; + int i4; + int i5; + int i6 = xVar.f970b; + while (true) { + try { + boolean z3 = true; + if (xVar.a() >= i2) { + if (i >= 3) { + i4 = xVar.f(); + j = xVar.u(); + i3 = xVar.y(); + } else { + i4 = xVar.v(); + j = (long) xVar.v(); + i3 = 0; + } + if (i4 == 0 && j == 0 && i3 == 0) { + xVar.E(i6); + return true; + } + if (i == 4 && !z2) { + if ((8421504 & j) != 0) { + xVar.E(i6); + return false; + } + j = (((j >> 24) & 255) << 21) | (j & 255) | (((j >> 8) & 255) << 7) | (((j >> 16) & 255) << 14); + } + if (i == 4) { + i5 = (i3 & 64) != 0 ? 1 : 0; + } else if (i == 3) { + i5 = (i3 & 32) != 0 ? 1 : 0; + } else { + i5 = 0; + } + z3 = false; + if (z3) { + i5 += 4; + } + if (j < ((long) i5)) { + xVar.E(i6); + return false; + } else if (((long) xVar.a()) < j) { + return false; + } else { + xVar.F((int) j); + } + } else { + xVar.E(i6); + return true; + } + } finally { + xVar.E(i6); + } + } + } + + @Override // b.i.a.c.z2.g + @Nullable + public Metadata b(d dVar, ByteBuffer byteBuffer) { + return d(byteBuffer.array(), byteBuffer.limit()); + } + + /* JADX WARNING: Removed duplicated region for block: B:48:0x00c1 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x00c2 */ + @Nullable + public Metadata d(byte[] bArr, int i) { + C0097b bVar; + ArrayList arrayList = new ArrayList(); + x xVar = new x(bArr, i); + boolean z2 = false; + int i2 = 10; + if (xVar.a() < 10) { + Log.w("Id3Decoder", "Data too short to be an ID3 tag"); + } else { + int v = xVar.v(); + if (v != 4801587) { + String valueOf = String.valueOf(String.format("%06X", Integer.valueOf(v))); + Log.w("Id3Decoder", valueOf.length() != 0 ? "Unexpected first three bytes of ID3 tag header: 0x".concat(valueOf) : new String("Unexpected first three bytes of ID3 tag header: 0x")); + } else { + int t = xVar.t(); + xVar.F(1); + int t2 = xVar.t(); + int s2 = xVar.s(); + if (t == 2) { + if ((t2 & 64) != 0) { + Log.w("Id3Decoder", "Skipped ID3 tag with majorVersion=2 and undefined compression scheme"); + } + } else if (t == 3) { + if ((t2 & 64) != 0) { + int f = xVar.f(); + xVar.F(f); + s2 -= f + 4; + } + } else if (t == 4) { + if ((t2 & 64) != 0) { + int s3 = xVar.s(); + xVar.F(s3 - 4); + s2 -= s3; + } + if ((t2 & 16) != 0) { + s2 -= 10; + } + } else { + b.d.b.a.a.d0(57, "Skipped ID3 tag with unsupported majorVersion=", t, "Id3Decoder"); + } + bVar = new C0097b(t, t < 4 && (t2 & 128) != 0, s2); + if (bVar != null) { + return null; + } + int i3 = xVar.f970b; + if (bVar.a == 2) { + i2 = 6; + } + int i4 = bVar.c; + if (bVar.f1311b) { + i4 = x(xVar, i4); + } + xVar.D(i3 + i4); + if (!y(xVar, bVar.a, i2, false)) { + if (bVar.a != 4 || !y(xVar, 4, i2, true)) { + b.d.b.a.a.d0(56, "Failed to validate ID3 tag with majorVersion=", bVar.a, "Id3Decoder"); + return null; + } + z2 = true; + } + while (xVar.a() >= i2) { + Id3Frame j = j(bVar.a, xVar, z2, i2, this.f1310b); + if (j != null) { + arrayList.add(j); + } + } + return new Metadata(arrayList); + } + } + bVar = null; + if (bVar != null) { + } + } +} diff --git a/app/src/main/java/b/i/a/c/z2/l/a.java b/app/src/main/java/b/i/a/c/z2/l/a.java new file mode 100644 index 0000000000..7cdc728703 --- /dev/null +++ b/app/src/main/java/b/i/a/c/z2/l/a.java @@ -0,0 +1,215 @@ +package b.i.a.c.z2.l; + +import b.i.a.c.f3.d0; +import b.i.a.c.f3.w; +import b.i.a.c.f3.x; +import b.i.a.c.z2.d; +import b.i.a.c.z2.g; +import com.google.android.exoplayer2.metadata.Metadata; +import com.google.android.exoplayer2.metadata.scte35.PrivateCommand; +import com.google.android.exoplayer2.metadata.scte35.SpliceInsertCommand; +import com.google.android.exoplayer2.metadata.scte35.SpliceNullCommand; +import com.google.android.exoplayer2.metadata.scte35.SpliceScheduleCommand; +import com.google.android.exoplayer2.metadata.scte35.TimeSignalCommand; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +/* compiled from: SpliceInfoDecoder */ +public final class a extends g { + public final x a = new x(); + + /* renamed from: b reason: collision with root package name */ + public final w f1312b = new w(); + public d0 c; + + @Override // b.i.a.c.z2.g + public Metadata b(d dVar, ByteBuffer byteBuffer) { + int i; + int i2; + int i3; + long j; + boolean z2; + long j2; + ArrayList arrayList; + boolean z3; + boolean z4; + int i4; + long j3; + long j4; + boolean z5; + int i5; + int i6; + int i7; + long j5; + boolean z6; + List list; + boolean z7; + boolean z8; + boolean z9; + long j6; + long j7; + boolean z10; + d0 d0Var = this.c; + if (d0Var == null || dVar.r != d0Var.d()) { + d0 d0Var2 = new d0(dVar.n); + this.c = d0Var2; + d0Var2.a(dVar.n - dVar.r); + } + byte[] array = byteBuffer.array(); + int limit = byteBuffer.limit(); + this.a.C(array, limit); + this.f1312b.j(array, limit); + this.f1312b.m(39); + long g = (((long) this.f1312b.g(1)) << 32) | ((long) this.f1312b.g(32)); + this.f1312b.m(20); + int g2 = this.f1312b.g(12); + int g3 = this.f1312b.g(8); + this.a.F(14); + Metadata.Entry entry = null; + if (g3 == 0) { + entry = new SpliceNullCommand(); + } else if (g3 != 255) { + long j8 = 128; + if (g3 == 4) { + x xVar = this.a; + int t = xVar.t(); + ArrayList arrayList2 = new ArrayList(t); + int i8 = 0; + while (i8 < t) { + long u = xVar.u(); + boolean z11 = (xVar.t() & 128) != 0; + ArrayList arrayList3 = new ArrayList(); + if (!z11) { + int t2 = xVar.t(); + boolean z12 = (t2 & 128) != 0; + boolean z13 = (t2 & 64) != 0; + boolean z14 = (t2 & 32) != 0; + long u2 = z13 ? xVar.u() : -9223372036854775807L; + if (!z13) { + int t3 = xVar.t(); + ArrayList arrayList4 = new ArrayList(t3); + int i9 = 0; + while (i9 < t3) { + arrayList4.add(new SpliceScheduleCommand.b(xVar.t(), xVar.u(), null)); + i9++; + t3 = t3; + t = t; + } + i4 = t; + arrayList3 = arrayList4; + } else { + i4 = t; + } + if (z14) { + long t4 = (long) xVar.t(); + j3 = 128; + z5 = (t4 & 128) != 0; + j4 = ((((t4 & 1) << 32) | xVar.u()) * 1000) / 90; + } else { + j3 = 128; + z5 = false; + j4 = -9223372036854775807L; + } + z2 = z5; + j = j4; + arrayList = arrayList3; + i3 = xVar.y(); + z4 = z12; + z3 = z13; + j2 = u2; + i2 = xVar.t(); + i = xVar.t(); + } else { + i4 = t; + j3 = j8; + arrayList = arrayList3; + z4 = false; + z3 = false; + j2 = -9223372036854775807L; + z2 = false; + j = -9223372036854775807L; + i3 = 0; + i2 = 0; + i = 0; + } + arrayList2.add(new SpliceScheduleCommand.c(u, z11, z4, z3, arrayList, j2, z2, j, i3, i2, i)); + i8++; + j8 = j3; + t = i4; + } + entry = new SpliceScheduleCommand(arrayList2); + } else if (g3 == 5) { + x xVar2 = this.a; + d0 d0Var3 = this.c; + long u3 = xVar2.u(); + boolean z15 = (xVar2.t() & 128) != 0; + List emptyList = Collections.emptyList(); + if (!z15) { + int t5 = xVar2.t(); + boolean z16 = (t5 & 128) != 0; + boolean z17 = (t5 & 64) != 0; + boolean z18 = (t5 & 32) != 0; + boolean z19 = (t5 & 16) != 0; + long a = (!z17 || z19) ? -9223372036854775807L : TimeSignalCommand.a(xVar2, g); + if (!z17) { + int t6 = xVar2.t(); + ArrayList arrayList5 = new ArrayList(t6); + for (int i10 = 0; i10 < t6; i10++) { + int t7 = xVar2.t(); + long a2 = !z19 ? TimeSignalCommand.a(xVar2, g) : -9223372036854775807L; + arrayList5.add(new SpliceInsertCommand.b(t7, a2, d0Var3.b(a2), null)); + } + emptyList = arrayList5; + } + if (z18) { + long t8 = (long) xVar2.t(); + z10 = (t8 & 128) != 0; + j7 = ((((t8 & 1) << 32) | xVar2.u()) * 1000) / 90; + } else { + z10 = false; + j7 = -9223372036854775807L; + } + int y2 = xVar2.y(); + int t9 = xVar2.t(); + i7 = y2; + z6 = z10; + i5 = xVar2.t(); + list = emptyList; + j5 = j7; + i6 = t9; + z9 = z16; + j6 = a; + z7 = z19; + z8 = z17; + } else { + list = emptyList; + j6 = -9223372036854775807L; + z9 = false; + z8 = false; + z7 = false; + z6 = false; + j5 = -9223372036854775807L; + i7 = 0; + i6 = 0; + i5 = 0; + } + entry = new SpliceInsertCommand(u3, z15, z9, z8, z7, j6, d0Var3.b(j6), list, z6, j5, i7, i6, i5); + } else if (g3 == 6) { + x xVar3 = this.a; + d0 d0Var4 = this.c; + long a3 = TimeSignalCommand.a(xVar3, g); + entry = new TimeSignalCommand(a3, d0Var4.b(a3)); + } + } else { + x xVar4 = this.a; + long u4 = xVar4.u(); + int i11 = g2 - 4; + byte[] bArr = new byte[i11]; + System.arraycopy(xVar4.a, xVar4.f970b, bArr, 0, i11); + xVar4.f970b += i11; + entry = new PrivateCommand(u4, bArr, g); + } + return entry == null ? new Metadata(new Metadata.Entry[0]) : new Metadata(entry); + } +} diff --git a/app/src/main/java/b/i/a/d/a/a.java b/app/src/main/java/b/i/a/d/a/a.java new file mode 100644 index 0000000000..2217faf1dc --- /dev/null +++ b/app/src/main/java/b/i/a/d/a/a.java @@ -0,0 +1,49 @@ +package b.i.a.d.a; + +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.Parcelable; +import android.os.RemoteException; +import b.i.a.a.b; +import b.i.a.a.c; +/* compiled from: IGetInstallReferrerService */ +public interface a extends IInterface { + + /* compiled from: IGetInstallReferrerService */ + /* renamed from: b.i.a.d.a.a$a reason: collision with other inner class name */ + public static abstract class AbstractBinderC0098a extends b implements a { + public static final /* synthetic */ int a = 0; + + /* compiled from: IGetInstallReferrerService */ + /* renamed from: b.i.a.d.a.a$a$a reason: collision with other inner class name */ + public static class C0099a extends b.i.a.a.a implements a { + public C0099a(IBinder iBinder) { + super(iBinder); + } + + @Override // b.i.a.d.a.a + public final Bundle C(Bundle bundle) throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken("com.google.android.finsky.externalreferrer.IGetInstallReferrerService"); + int i = c.a; + obtain.writeInt(1); + bundle.writeToParcel(obtain, 0); + obtain = Parcel.obtain(); + try { + this.a.transact(1, obtain, obtain, 0); + obtain.readException(); + obtain.recycle(); + return (Bundle) (obtain.readInt() == 0 ? null : (Parcelable) Bundle.CREATOR.createFromParcel(obtain)); + } catch (RuntimeException e) { + throw e; + } finally { + obtain.recycle(); + } + } + } + } + + Bundle C(Bundle bundle) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/e/a.java b/app/src/main/java/b/i/a/e/a.java new file mode 100644 index 0000000000..518d63c300 --- /dev/null +++ b/app/src/main/java/b/i/a/e/a.java @@ -0,0 +1,58 @@ +package b.i.a.e; + +import android.view.View; +import java.util.List; +/* compiled from: FlexContainer */ +public interface a { + void a(View view, int i, int i2, b bVar); + + void b(b bVar); + + View c(int i); + + int d(int i, int i2, int i3); + + void e(int i, View view); + + View f(int i); + + int g(View view, int i, int i2); + + int getAlignContent(); + + int getAlignItems(); + + int getFlexDirection(); + + int getFlexItemCount(); + + List getFlexLinesInternal(); + + int getFlexWrap(); + + int getLargestMainSize(); + + int getMaxLine(); + + int getPaddingBottom(); + + int getPaddingEnd(); + + int getPaddingLeft(); + + int getPaddingRight(); + + int getPaddingStart(); + + int getPaddingTop(); + + int getSumOfCrossSize(); + + int h(int i, int i2, int i3); + + boolean i(); + + int j(View view); + + void setFlexLines(List list); +} diff --git a/app/src/main/java/b/i/a/e/b.java b/app/src/main/java/b/i/a/e/b.java new file mode 100644 index 0000000000..f18e8ac1e8 --- /dev/null +++ b/app/src/main/java/b/i/a/e/b.java @@ -0,0 +1,41 @@ +package b.i.a.e; + +import android.view.View; +import com.google.android.flexbox.FlexItem; +import java.util.ArrayList; +import java.util.List; +/* compiled from: FlexLine */ +public class b { + public int a = Integer.MAX_VALUE; + + /* renamed from: b reason: collision with root package name */ + public int f1313b = Integer.MAX_VALUE; + public int c = Integer.MIN_VALUE; + public int d = Integer.MIN_VALUE; + public int e; + public int f; + public int g; + public int h; + public int i; + public float j; + public float k; + public int l; + public int m; + public List n = new ArrayList(); + public int o; + public int p; + public boolean q; + public boolean r; + + public int a() { + return this.h - this.i; + } + + public void b(View view, int i, int i2, int i3, int i4) { + FlexItem flexItem = (FlexItem) view.getLayoutParams(); + this.a = Math.min(this.a, (view.getLeft() - flexItem.J()) - i); + this.f1313b = Math.min(this.f1313b, (view.getTop() - flexItem.N()) - i2); + this.c = Math.max(this.c, flexItem.d0() + view.getRight() + i3); + this.d = Math.max(this.d, flexItem.I() + view.getBottom() + i4); + } +} diff --git a/app/src/main/java/b/i/a/e/c.java b/app/src/main/java/b/i/a/e/c.java new file mode 100644 index 0000000000..6d8de17e61 --- /dev/null +++ b/app/src/main/java/b/i/a/e/c.java @@ -0,0 +1,1249 @@ +package b.i.a.e; + +import android.graphics.drawable.Drawable; +import android.util.SparseIntArray; +import android.view.View; +import android.view.ViewGroup; +import android.widget.CompoundButton; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import androidx.core.view.MarginLayoutParamsCompat; +import androidx.core.widget.CompoundButtonCompat; +import com.google.android.flexbox.FlexItem; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +/* compiled from: FlexboxHelper */ +public class c { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public boolean[] f1314b; + @Nullable + public int[] c; + @Nullable + public long[] d; + @Nullable + public long[] e; + + /* compiled from: FlexboxHelper */ + public static class b { + public List a; + + /* renamed from: b reason: collision with root package name */ + public int f1315b; + + public void a() { + this.a = null; + this.f1315b = 0; + } + } + + /* compiled from: FlexboxHelper */ + /* renamed from: b.i.a.e.c$c reason: collision with other inner class name */ + public static class C0100c implements Comparable { + public int j; + public int k; + + public C0100c() { + } + + public C0100c(a aVar) { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public int compareTo(@NonNull C0100c cVar) { + C0100c cVar2 = cVar; + int i = this.k; + int i2 = cVar2.k; + return i != i2 ? i - i2 : this.j - cVar2.j; + } + + @Override // java.lang.Object + @NonNull + public String toString() { + StringBuilder R = b.d.b.a.a.R("Order{order="); + R.append(this.k); + R.append(", index="); + return b.d.b.a.a.z(R, this.j, '}'); + } + } + + public c(a aVar) { + this.a = aVar; + } + + public void A(int i) { + View c; + if (i < this.a.getFlexItemCount()) { + int flexDirection = this.a.getFlexDirection(); + if (this.a.getAlignItems() == 4) { + int[] iArr = this.c; + List flexLinesInternal = this.a.getFlexLinesInternal(); + int size = flexLinesInternal.size(); + for (int i2 = iArr != null ? iArr[i] : 0; i2 < size; i2++) { + b bVar = flexLinesInternal.get(i2); + int i3 = bVar.h; + for (int i4 = 0; i4 < i3; i4++) { + int i5 = bVar.o + i4; + if (!(i4 >= this.a.getFlexItemCount() || (c = this.a.c(i5)) == null || c.getVisibility() == 8)) { + FlexItem flexItem = (FlexItem) c.getLayoutParams(); + if (flexItem.u() == -1 || flexItem.u() == 4) { + if (flexDirection == 0 || flexDirection == 1) { + z(c, bVar.g, i5); + } else if (flexDirection == 2 || flexDirection == 3) { + y(c, bVar.g, i5); + } else { + throw new IllegalArgumentException(b.d.b.a.a.p("Invalid flex direction: ", flexDirection)); + } + } + } + } + } + return; + } + for (b bVar2 : this.a.getFlexLinesInternal()) { + Iterator it = bVar2.n.iterator(); + while (true) { + if (it.hasNext()) { + Integer next = it.next(); + View c2 = this.a.c(next.intValue()); + if (flexDirection == 0 || flexDirection == 1) { + z(c2, bVar2.g, next.intValue()); + } else if (flexDirection == 2 || flexDirection == 3) { + y(c2, bVar2.g, next.intValue()); + } else { + throw new IllegalArgumentException(b.d.b.a.a.p("Invalid flex direction: ", flexDirection)); + } + } + } + } + } + } + + public final void B(int i, int i2, int i3, View view) { + long[] jArr = this.d; + if (jArr != null) { + jArr[i] = (((long) i2) & 4294967295L) | (((long) i3) << 32); + } + long[] jArr2 = this.e; + if (jArr2 != null) { + jArr2[i] = (((long) view.getMeasuredWidth()) & 4294967295L) | (((long) view.getMeasuredHeight()) << 32); + } + } + + public final void a(List list, b bVar, int i, int i2) { + bVar.m = i2; + this.a.b(bVar); + bVar.p = i; + list.add(bVar); + } + + /* JADX WARNING: Code restructure failed: missing block: B:84:0x022c, code lost: + if (r2 < (r8 + r11)) goto L_0x022e; + */ + /* JADX WARNING: Removed duplicated region for block: B:103:0x02b9 */ + /* JADX WARNING: Removed duplicated region for block: B:106:0x02d1 */ + /* JADX WARNING: Removed duplicated region for block: B:107:0x02d4 */ + /* JADX WARNING: Removed duplicated region for block: B:110:0x02e4 */ + /* JADX WARNING: Removed duplicated region for block: B:111:0x02e7 */ + /* JADX WARNING: Removed duplicated region for block: B:114:0x02f1 */ + /* JADX WARNING: Removed duplicated region for block: B:117:0x02fb */ + /* JADX WARNING: Removed duplicated region for block: B:118:0x0300 */ + /* JADX WARNING: Removed duplicated region for block: B:121:0x032f */ + /* JADX WARNING: Removed duplicated region for block: B:122:0x0334 */ + /* JADX WARNING: Removed duplicated region for block: B:125:0x035b */ + /* JADX WARNING: Removed duplicated region for block: B:131:0x0394 */ + /* JADX WARNING: Removed duplicated region for block: B:134:0x039f */ + /* JADX WARNING: Removed duplicated region for block: B:143:0x03c5 A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:88:0x0233 */ + public void b(b bVar, int i, int i2, int i3, int i4, int i5, @Nullable List list) { + b bVar2; + int i6; + int i7; + int i8; + boolean z2; + int i9; + int i10; + int i11; + List list2; + int i12; + int i13; + int i14; + boolean z3; + int i15; + int i16; + int i17; + int i18; + int[] iArr; + int i19; + int i20; + int i21; + int i22 = i; + boolean i23 = this.a.i(); + int mode = View.MeasureSpec.getMode(i); + int size = View.MeasureSpec.getSize(i); + List arrayList = list == null ? new ArrayList<>() : list; + bVar.a = arrayList; + boolean z4 = i5 == -1; + int paddingStart = i23 ? this.a.getPaddingStart() : this.a.getPaddingTop(); + int paddingEnd = i23 ? this.a.getPaddingEnd() : this.a.getPaddingBottom(); + int paddingTop = i23 ? this.a.getPaddingTop() : this.a.getPaddingStart(); + int paddingBottom = i23 ? this.a.getPaddingBottom() : this.a.getPaddingEnd(); + b bVar3 = new b(); + int i24 = i4; + bVar3.o = i24; + int i25 = paddingStart + paddingEnd; + bVar3.e = i25; + int flexItemCount = this.a.getFlexItemCount(); + int i26 = Integer.MIN_VALUE; + boolean z5 = z4; + int i27 = 0; + int i28 = 0; + int i29 = 0; + while (true) { + if (i24 >= flexItemCount) { + bVar2 = bVar; + break; + } + int i30 = i27; + View c = this.a.c(i24); + if (c == null) { + if (t(i24, flexItemCount, bVar3)) { + a(arrayList, bVar3, i24, i29); + } + i10 = i28; + } else { + i10 = i28; + if (c.getVisibility() == 8) { + bVar3.i++; + bVar3.h++; + if (t(i24, flexItemCount, bVar3)) { + a(arrayList, bVar3, i24, i29); + } + } else { + if (c instanceof CompoundButton) { + CompoundButton compoundButton = (CompoundButton) c; + FlexItem flexItem = (FlexItem) compoundButton.getLayoutParams(); + i11 = flexItemCount; + int D = flexItem.D(); + list2 = arrayList; + int f02 = flexItem.f0(); + Drawable buttonDrawable = CompoundButtonCompat.getButtonDrawable(compoundButton); + int minimumWidth = buttonDrawable == null ? 0 : buttonDrawable.getMinimumWidth(); + if (buttonDrawable == null) { + i21 = -1; + i20 = 0; + } else { + i20 = buttonDrawable.getMinimumHeight(); + i21 = -1; + } + if (D == i21) { + D = minimumWidth; + } + flexItem.H(D); + if (f02 == i21) { + f02 = i20; + } + flexItem.O(f02); + } else { + list2 = arrayList; + i11 = flexItemCount; + } + FlexItem flexItem2 = (FlexItem) c.getLayoutParams(); + if (flexItem2.u() == 4) { + bVar3.n.add(Integer.valueOf(i24)); + } + int width = i23 ? flexItem2.getWidth() : flexItem2.getHeight(); + if (flexItem2.W() != -1.0f && mode == 1073741824) { + width = Math.round(flexItem2.W() * ((float) size)); + } + if (i23) { + i13 = this.a.d(i22, q(flexItem2, true) + s(flexItem2, true) + i25, width); + i12 = size; + i6 = mode; + i8 = i2; + int h = this.a.h(i8, p(flexItem2, true) + r(flexItem2, true) + paddingTop + paddingBottom + i29, flexItem2.getHeight()); + c.measure(i13, h); + B(i24, i13, h, c); + } else { + i6 = mode; + i12 = size; + i8 = i2; + int d = this.a.d(i8, p(flexItem2, false) + r(flexItem2, false) + paddingTop + paddingBottom + i29, flexItem2.getWidth()); + i13 = this.a.h(i22, q(flexItem2, false) + s(flexItem2, false) + i25, width); + c.measure(d, i13); + B(i24, d, i13, c); + } + this.a.e(i24, c); + c(c, i24); + int combineMeasuredStates = View.combineMeasuredStates(i10, c.getMeasuredState()); + int i31 = bVar3.e; + int q = q(flexItem2, i23) + s(flexItem2, i23) + (i23 ? c.getMeasuredWidth() : c.getMeasuredHeight()); + int size2 = list2.size(); + if (this.a.getFlexWrap() != 0) { + if (!flexItem2.j0()) { + if (i6 != 0) { + int maxLine = this.a.getMaxLine(); + i14 = combineMeasuredStates; + if (maxLine == -1 || maxLine > size2 + 1) { + i15 = i30; + int g = this.a.g(c, i24, i15); + if (g > 0) { + q += g; + } + i16 = i12; + } + i15 = i30; + i16 = i12; + z3 = false; + if (z3) { + if (bVar3.a() > 0) { + arrayList = list2; + a(arrayList, bVar3, i24 > 0 ? i24 - 1 : 0, i29); + i29 += bVar3.g; + } else { + arrayList = list2; + } + if (i23) { + if (flexItem2.getHeight() == -1) { + a aVar = this.a; + c.measure(i13, aVar.h(i8, flexItem2.I() + flexItem2.N() + this.a.getPaddingBottom() + aVar.getPaddingTop() + i29, flexItem2.getHeight())); + c(c, i24); + } + } else if (flexItem2.getWidth() == -1) { + a aVar2 = this.a; + c.measure(aVar2.d(i8, flexItem2.d0() + flexItem2.J() + this.a.getPaddingRight() + aVar2.getPaddingLeft() + i29, flexItem2.getWidth()), i13); + c(c, i24); + } + bVar3 = new b(); + bVar3.h = 1; + bVar3.e = i25; + bVar3.o = i24; + i18 = 0; + i17 = Integer.MIN_VALUE; + } else { + arrayList = list2; + bVar3.h++; + i18 = i15 + 1; + i17 = i26; + } + bVar3.q |= flexItem2.S() != 0.0f; + bVar3.r |= flexItem2.x() != 0.0f; + iArr = this.c; + if (iArr != null) { + iArr[i24] = arrayList.size(); + } + bVar3.e = q(flexItem2, i23) + s(flexItem2, i23) + (i23 ? c.getMeasuredWidth() : c.getMeasuredHeight()) + bVar3.e; + bVar3.j = flexItem2.S() + bVar3.j; + bVar3.k = flexItem2.x() + bVar3.k; + this.a.a(c, i24, i18, bVar3); + i7 = i16; + int max = Math.max(i17, this.a.j(c) + p(flexItem2, i23) + r(flexItem2, i23) + (i23 ? c.getMeasuredHeight() : c.getMeasuredWidth())); + bVar3.g = Math.max(bVar3.g, max); + if (i23) { + if (this.a.getFlexWrap() != 2) { + bVar3.l = Math.max(bVar3.l, flexItem2.N() + c.getBaseline()); + } else { + bVar3.l = Math.max(bVar3.l, flexItem2.I() + (c.getMeasuredHeight() - c.getBaseline())); + } + } + i9 = i11; + if (t(i24, i9, bVar3)) { + a(arrayList, bVar3, i24, i29); + i29 += bVar3.g; + } + if (i5 != -1 || arrayList.size() <= 0 || arrayList.get(arrayList.size() - 1).p < i5 || i24 < i5 || z5) { + i19 = i3; + z2 = z5; + } else { + i29 = -bVar3.g; + z2 = true; + i19 = i3; + } + if (i29 <= i19 && z2) { + bVar2 = bVar; + i28 = i14; + break; + } + i26 = max; + i30 = i18; + i28 = i14; + i24++; + i22 = i; + flexItemCount = i9; + z5 = z2; + i27 = i30; + size = i7; + mode = i6; + } + } else { + i14 = combineMeasuredStates; + i15 = i30; + i16 = i12; + } + z3 = true; + if (z3) { + } + bVar3.q |= flexItem2.S() != 0.0f; + bVar3.r |= flexItem2.x() != 0.0f; + iArr = this.c; + if (iArr != null) { + } + bVar3.e = q(flexItem2, i23) + s(flexItem2, i23) + (i23 ? c.getMeasuredWidth() : c.getMeasuredHeight()) + bVar3.e; + bVar3.j = flexItem2.S() + bVar3.j; + bVar3.k = flexItem2.x() + bVar3.k; + this.a.a(c, i24, i18, bVar3); + i7 = i16; + int max = Math.max(i17, this.a.j(c) + p(flexItem2, i23) + r(flexItem2, i23) + (i23 ? c.getMeasuredHeight() : c.getMeasuredWidth())); + bVar3.g = Math.max(bVar3.g, max); + if (i23) { + } + i9 = i11; + if (t(i24, i9, bVar3)) { + } + if (i5 != -1) { + } + i19 = i3; + z2 = z5; + if (i29 <= i19) { + } + i26 = max; + i30 = i18; + i28 = i14; + i24++; + i22 = i; + flexItemCount = i9; + z5 = z2; + i27 = i30; + size = i7; + mode = i6; + } + i14 = combineMeasuredStates; + i15 = i30; + i16 = i12; + z3 = false; + if (z3) { + } + bVar3.q |= flexItem2.S() != 0.0f; + bVar3.r |= flexItem2.x() != 0.0f; + iArr = this.c; + if (iArr != null) { + } + bVar3.e = q(flexItem2, i23) + s(flexItem2, i23) + (i23 ? c.getMeasuredWidth() : c.getMeasuredHeight()) + bVar3.e; + bVar3.j = flexItem2.S() + bVar3.j; + bVar3.k = flexItem2.x() + bVar3.k; + this.a.a(c, i24, i18, bVar3); + i7 = i16; + int max = Math.max(i17, this.a.j(c) + p(flexItem2, i23) + r(flexItem2, i23) + (i23 ? c.getMeasuredHeight() : c.getMeasuredWidth())); + bVar3.g = Math.max(bVar3.g, max); + if (i23) { + } + i9 = i11; + if (t(i24, i9, bVar3)) { + } + if (i5 != -1) { + } + i19 = i3; + z2 = z5; + if (i29 <= i19) { + } + i26 = max; + i30 = i18; + i28 = i14; + i24++; + i22 = i; + flexItemCount = i9; + z5 = z2; + i27 = i30; + size = i7; + mode = i6; + } + } + z2 = z5; + i6 = mode; + i7 = size; + i9 = flexItemCount; + i28 = i10; + i8 = i2; + i24++; + i22 = i; + flexItemCount = i9; + z5 = z2; + i27 = i30; + size = i7; + mode = i6; + } + bVar2.f1315b = i28; + } + + /* JADX WARNING: Removed duplicated region for block: B:10:0x002d */ + /* JADX WARNING: Removed duplicated region for block: B:11:0x0032 */ + /* JADX WARNING: Removed duplicated region for block: B:16:0x0040 */ + /* JADX WARNING: Removed duplicated region for block: B:18:? A[RETURN, SYNTHETIC] */ + public final void c(View view, int i) { + boolean z2; + FlexItem flexItem = (FlexItem) view.getLayoutParams(); + int measuredWidth = view.getMeasuredWidth(); + int measuredHeight = view.getMeasuredHeight(); + boolean z3 = true; + if (measuredWidth < flexItem.D()) { + measuredWidth = flexItem.D(); + } else if (measuredWidth > flexItem.t0()) { + measuredWidth = flexItem.t0(); + } else { + z2 = false; + if (measuredHeight >= flexItem.f0()) { + measuredHeight = flexItem.f0(); + } else if (measuredHeight > flexItem.m0()) { + measuredHeight = flexItem.m0(); + } else { + z3 = z2; + } + if (!z3) { + int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(measuredWidth, BasicMeasure.EXACTLY); + int makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(measuredHeight, BasicMeasure.EXACTLY); + view.measure(makeMeasureSpec, makeMeasureSpec2); + B(i, makeMeasureSpec, makeMeasureSpec2, view); + this.a.e(i, view); + return; + } + return; + } + z2 = true; + if (measuredHeight >= flexItem.f0()) { + } + if (!z3) { + } + } + + public void d(List list, int i) { + int i2 = this.c[i]; + if (i2 == -1) { + i2 = 0; + } + for (int size = list.size() - 1; size >= i2; size--) { + list.remove(size); + } + int[] iArr = this.c; + int length = iArr.length - 1; + if (i > length) { + Arrays.fill(iArr, -1); + } else { + Arrays.fill(iArr, i, length, -1); + } + long[] jArr = this.d; + int length2 = jArr.length - 1; + if (i > length2) { + Arrays.fill(jArr, 0L); + } else { + Arrays.fill(jArr, i, length2, 0L); + } + } + + public final List e(List list, int i, int i2) { + ArrayList arrayList = new ArrayList(); + b bVar = new b(); + bVar.g = (i - i2) / 2; + int size = list.size(); + for (int i3 = 0; i3 < size; i3++) { + if (i3 == 0) { + arrayList.add(bVar); + } + arrayList.add(list.get(i3)); + if (i3 == list.size() - 1) { + arrayList.add(bVar); + } + } + return arrayList; + } + + @NonNull + public final List f(int i) { + ArrayList arrayList = new ArrayList(i); + for (int i2 = 0; i2 < i; i2++) { + C0100c cVar = new C0100c(null); + cVar.k = ((FlexItem) this.a.f(i2).getLayoutParams()).getOrder(); + cVar.j = i2; + arrayList.add(cVar); + } + return arrayList; + } + + public void g(int i, int i2, int i3) { + int i4; + int i5; + int flexDirection = this.a.getFlexDirection(); + if (flexDirection == 0 || flexDirection == 1) { + int mode = View.MeasureSpec.getMode(i2); + int size = View.MeasureSpec.getSize(i2); + i4 = mode; + i5 = size; + } else if (flexDirection == 2 || flexDirection == 3) { + i4 = View.MeasureSpec.getMode(i); + i5 = View.MeasureSpec.getSize(i); + } else { + throw new IllegalArgumentException(b.d.b.a.a.p("Invalid flex direction: ", flexDirection)); + } + List flexLinesInternal = this.a.getFlexLinesInternal(); + if (i4 == 1073741824) { + int sumOfCrossSize = this.a.getSumOfCrossSize() + i3; + int i6 = 0; + if (flexLinesInternal.size() == 1) { + flexLinesInternal.get(0).g = i5 - i3; + } else if (flexLinesInternal.size() >= 2) { + int alignContent = this.a.getAlignContent(); + if (alignContent == 1) { + int i7 = i5 - sumOfCrossSize; + b bVar = new b(); + bVar.g = i7; + flexLinesInternal.add(0, bVar); + } else if (alignContent == 2) { + this.a.setFlexLines(e(flexLinesInternal, i5, sumOfCrossSize)); + } else if (alignContent != 3) { + if (alignContent != 4) { + if (alignContent == 5 && sumOfCrossSize < i5) { + float size2 = ((float) (i5 - sumOfCrossSize)) / ((float) flexLinesInternal.size()); + int size3 = flexLinesInternal.size(); + float f = 0.0f; + while (i6 < size3) { + b bVar2 = flexLinesInternal.get(i6); + float f2 = ((float) bVar2.g) + size2; + if (i6 == flexLinesInternal.size() - 1) { + f2 += f; + f = 0.0f; + } + int round = Math.round(f2); + float f3 = (f2 - ((float) round)) + f; + if (f3 > 1.0f) { + round++; + f3 -= 1.0f; + } else if (f3 < -1.0f) { + round--; + f3 += 1.0f; + } + f = f3; + bVar2.g = round; + i6++; + } + } + } else if (sumOfCrossSize >= i5) { + this.a.setFlexLines(e(flexLinesInternal, i5, sumOfCrossSize)); + } else { + int size4 = (i5 - sumOfCrossSize) / (flexLinesInternal.size() * 2); + ArrayList arrayList = new ArrayList(); + b bVar3 = new b(); + bVar3.g = size4; + for (b bVar4 : flexLinesInternal) { + arrayList.add(bVar3); + arrayList.add(bVar4); + arrayList.add(bVar3); + } + this.a.setFlexLines(arrayList); + } + } else if (sumOfCrossSize < i5) { + float size5 = ((float) (i5 - sumOfCrossSize)) / ((float) (flexLinesInternal.size() - 1)); + ArrayList arrayList2 = new ArrayList(); + int size6 = flexLinesInternal.size(); + float f4 = 0.0f; + while (i6 < size6) { + arrayList2.add(flexLinesInternal.get(i6)); + if (i6 != flexLinesInternal.size() - 1) { + b bVar5 = new b(); + if (i6 == flexLinesInternal.size() - 2) { + bVar5.g = Math.round(f4 + size5); + f4 = 0.0f; + } else { + bVar5.g = Math.round(size5); + } + int i8 = bVar5.g; + float f5 = (size5 - ((float) i8)) + f4; + if (f5 > 1.0f) { + bVar5.g = i8 + 1; + f5 -= 1.0f; + } else if (f5 < -1.0f) { + bVar5.g = i8 - 1; + f5 += 1.0f; + } + arrayList2.add(bVar5); + f4 = f5; + } + i6++; + } + this.a.setFlexLines(arrayList2); + } + } + } + } + + public void h(int i, int i2, int i3) { + int i4; + int i5; + int i6; + int flexItemCount = this.a.getFlexItemCount(); + boolean[] zArr = this.f1314b; + int i7 = 0; + if (zArr == null) { + if (flexItemCount < 10) { + flexItemCount = 10; + } + this.f1314b = new boolean[flexItemCount]; + } else if (zArr.length < flexItemCount) { + int length = zArr.length * 2; + if (length >= flexItemCount) { + flexItemCount = length; + } + this.f1314b = new boolean[flexItemCount]; + } else { + Arrays.fill(zArr, false); + } + if (i3 < this.a.getFlexItemCount()) { + int flexDirection = this.a.getFlexDirection(); + int flexDirection2 = this.a.getFlexDirection(); + if (flexDirection2 == 0 || flexDirection2 == 1) { + int mode = View.MeasureSpec.getMode(i); + i5 = View.MeasureSpec.getSize(i); + int largestMainSize = this.a.getLargestMainSize(); + if (mode != 1073741824 && largestMainSize <= i5) { + i5 = largestMainSize; + } + i6 = this.a.getPaddingLeft(); + i4 = this.a.getPaddingRight(); + } else if (flexDirection2 == 2 || flexDirection2 == 3) { + int mode2 = View.MeasureSpec.getMode(i2); + i5 = View.MeasureSpec.getSize(i2); + if (mode2 != 1073741824) { + i5 = this.a.getLargestMainSize(); + } + i6 = this.a.getPaddingTop(); + i4 = this.a.getPaddingBottom(); + } else { + throw new IllegalArgumentException(b.d.b.a.a.p("Invalid flex direction: ", flexDirection)); + } + int i8 = i4 + i6; + int[] iArr = this.c; + if (iArr != null) { + i7 = iArr[i3]; + } + List flexLinesInternal = this.a.getFlexLinesInternal(); + int size = flexLinesInternal.size(); + while (i7 < size) { + b bVar = flexLinesInternal.get(i7); + int i9 = bVar.e; + if (i9 < i5 && bVar.q) { + l(i, i2, bVar, i5, i8, false); + } else if (i9 > i5 && bVar.r) { + w(i, i2, bVar, i5, i8, false); + } + i7++; + } + } + } + + public void i(int i) { + int[] iArr = this.c; + if (iArr == null) { + if (i < 10) { + i = 10; + } + this.c = new int[i]; + } else if (iArr.length < i) { + int length = iArr.length * 2; + if (length >= i) { + i = length; + } + this.c = Arrays.copyOf(iArr, i); + } + } + + public void j(int i) { + long[] jArr = this.d; + if (jArr == null) { + if (i < 10) { + i = 10; + } + this.d = new long[i]; + } else if (jArr.length < i) { + int length = jArr.length * 2; + if (length >= i) { + i = length; + } + this.d = Arrays.copyOf(jArr, i); + } + } + + public void k(int i) { + long[] jArr = this.e; + if (jArr == null) { + if (i < 10) { + i = 10; + } + this.e = new long[i]; + } else if (jArr.length < i) { + int length = jArr.length * 2; + if (length >= i) { + i = length; + } + this.e = Arrays.copyOf(jArr, i); + } + } + + public final void l(int i, int i2, b bVar, int i3, int i4, boolean z2) { + int i5; + int i6; + int i7; + double d; + int i8; + double d2; + float f = bVar.j; + float f2 = 0.0f; + if (f > 0.0f && i3 >= (i5 = bVar.e)) { + float f3 = ((float) (i3 - i5)) / f; + bVar.e = i4 + bVar.f; + if (!z2) { + bVar.g = Integer.MIN_VALUE; + } + int i9 = 0; + boolean z3 = false; + int i10 = 0; + float f4 = 0.0f; + while (i9 < bVar.h) { + int i11 = bVar.o + i9; + View c = this.a.c(i11); + if (c == null || c.getVisibility() == 8) { + i6 = i5; + } else { + FlexItem flexItem = (FlexItem) c.getLayoutParams(); + int flexDirection = this.a.getFlexDirection(); + if (flexDirection == 0 || flexDirection == 1) { + int measuredWidth = c.getMeasuredWidth(); + long[] jArr = this.e; + if (jArr != null) { + measuredWidth = (int) jArr[i11]; + } + int measuredHeight = c.getMeasuredHeight(); + long[] jArr2 = this.e; + i6 = i5; + if (jArr2 != null) { + measuredHeight = m(jArr2[i11]); + } + if (!this.f1314b[i11] && flexItem.S() > 0.0f) { + float S = (flexItem.S() * f3) + ((float) measuredWidth); + if (i9 == bVar.h - 1) { + S += f4; + f4 = 0.0f; + } + int round = Math.round(S); + if (round > flexItem.t0()) { + round = flexItem.t0(); + this.f1314b[i11] = true; + bVar.j -= flexItem.S(); + z3 = true; + } else { + float f5 = (S - ((float) round)) + f4; + double d3 = (double) f5; + if (d3 > 1.0d) { + round++; + d = d3 - 1.0d; + } else { + if (d3 < -1.0d) { + round--; + d = d3 + 1.0d; + } + f4 = f5; + } + f5 = (float) d; + f4 = f5; + } + int n = n(i2, flexItem, bVar.m); + int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(round, BasicMeasure.EXACTLY); + c.measure(makeMeasureSpec, n); + int measuredWidth2 = c.getMeasuredWidth(); + int measuredHeight2 = c.getMeasuredHeight(); + B(i11, makeMeasureSpec, n, c); + this.a.e(i11, c); + measuredWidth = measuredWidth2; + measuredHeight = measuredHeight2; + } + int max = Math.max(i10, this.a.j(c) + flexItem.I() + flexItem.N() + measuredHeight); + bVar.e = flexItem.d0() + flexItem.J() + measuredWidth + bVar.e; + i7 = max; + } else { + int measuredHeight3 = c.getMeasuredHeight(); + long[] jArr3 = this.e; + if (jArr3 != null) { + measuredHeight3 = m(jArr3[i11]); + } + int measuredWidth3 = c.getMeasuredWidth(); + long[] jArr4 = this.e; + if (jArr4 != null) { + measuredWidth3 = (int) jArr4[i11]; + } + if (this.f1314b[i11] || flexItem.S() <= f2) { + i8 = i5; + } else { + float S2 = (flexItem.S() * f3) + ((float) measuredHeight3); + if (i9 == bVar.h - 1) { + S2 += f4; + f4 = 0.0f; + } + int round2 = Math.round(S2); + if (round2 > flexItem.m0()) { + round2 = flexItem.m0(); + this.f1314b[i11] = true; + bVar.j -= flexItem.S(); + i8 = i5; + z3 = true; + } else { + float f6 = (S2 - ((float) round2)) + f4; + i8 = i5; + double d4 = (double) f6; + if (d4 > 1.0d) { + round2++; + d2 = d4 - 1.0d; + } else if (d4 < -1.0d) { + round2--; + d2 = d4 + 1.0d; + } else { + f4 = f6; + } + f4 = (float) d2; + } + int o = o(i, flexItem, bVar.m); + int makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(round2, BasicMeasure.EXACTLY); + c.measure(o, makeMeasureSpec2); + measuredWidth3 = c.getMeasuredWidth(); + int measuredHeight4 = c.getMeasuredHeight(); + B(i11, o, makeMeasureSpec2, c); + this.a.e(i11, c); + measuredHeight3 = measuredHeight4; + } + i7 = Math.max(i10, this.a.j(c) + flexItem.d0() + flexItem.J() + measuredWidth3); + bVar.e = flexItem.I() + flexItem.N() + measuredHeight3 + bVar.e; + i6 = i8; + } + bVar.g = Math.max(bVar.g, i7); + i10 = i7; + } + i9++; + i5 = i6; + f2 = 0.0f; + } + if (z3 && i5 != bVar.e) { + l(i, i2, bVar, i3, i4, true); + } + } + } + + public int m(long j) { + return (int) (j >> 32); + } + + public final int n(int i, FlexItem flexItem, int i2) { + a aVar = this.a; + int h = aVar.h(i, flexItem.I() + flexItem.N() + this.a.getPaddingBottom() + aVar.getPaddingTop() + i2, flexItem.getHeight()); + int size = View.MeasureSpec.getSize(h); + return size > flexItem.m0() ? View.MeasureSpec.makeMeasureSpec(flexItem.m0(), View.MeasureSpec.getMode(h)) : size < flexItem.f0() ? View.MeasureSpec.makeMeasureSpec(flexItem.f0(), View.MeasureSpec.getMode(h)) : h; + } + + public final int o(int i, FlexItem flexItem, int i2) { + a aVar = this.a; + int d = aVar.d(i, flexItem.d0() + flexItem.J() + this.a.getPaddingRight() + aVar.getPaddingLeft() + i2, flexItem.getWidth()); + int size = View.MeasureSpec.getSize(d); + return size > flexItem.t0() ? View.MeasureSpec.makeMeasureSpec(flexItem.t0(), View.MeasureSpec.getMode(d)) : size < flexItem.D() ? View.MeasureSpec.makeMeasureSpec(flexItem.D(), View.MeasureSpec.getMode(d)) : d; + } + + public final int p(FlexItem flexItem, boolean z2) { + return z2 ? flexItem.I() : flexItem.d0(); + } + + public final int q(FlexItem flexItem, boolean z2) { + return z2 ? flexItem.d0() : flexItem.I(); + } + + public final int r(FlexItem flexItem, boolean z2) { + return z2 ? flexItem.N() : flexItem.J(); + } + + public final int s(FlexItem flexItem, boolean z2) { + return z2 ? flexItem.J() : flexItem.N(); + } + + public final boolean t(int i, int i2, b bVar) { + return i == i2 - 1 && bVar.a() != 0; + } + + public void u(View view, b bVar, int i, int i2, int i3, int i4) { + FlexItem flexItem = (FlexItem) view.getLayoutParams(); + int alignItems = this.a.getAlignItems(); + if (flexItem.u() != -1) { + alignItems = flexItem.u(); + } + int i5 = bVar.g; + if (alignItems != 0) { + if (alignItems != 1) { + if (alignItems == 2) { + int N = ((flexItem.N() + (i5 - view.getMeasuredHeight())) - flexItem.I()) / 2; + if (this.a.getFlexWrap() != 2) { + int i6 = i2 + N; + view.layout(i, i6, i3, view.getMeasuredHeight() + i6); + return; + } + int i7 = i2 - N; + view.layout(i, i7, i3, view.getMeasuredHeight() + i7); + return; + } else if (alignItems != 3) { + if (alignItems != 4) { + return; + } + } else if (this.a.getFlexWrap() != 2) { + int max = Math.max(bVar.l - view.getBaseline(), flexItem.N()); + view.layout(i, i2 + max, i3, i4 + max); + return; + } else { + int max2 = Math.max(view.getBaseline() + (bVar.l - view.getMeasuredHeight()), flexItem.I()); + view.layout(i, i2 - max2, i3, i4 - max2); + return; + } + } else if (this.a.getFlexWrap() != 2) { + int i8 = i2 + i5; + view.layout(i, (i8 - view.getMeasuredHeight()) - flexItem.I(), i3, i8 - flexItem.I()); + return; + } else { + view.layout(i, flexItem.N() + view.getMeasuredHeight() + (i2 - i5), i3, flexItem.N() + view.getMeasuredHeight() + (i4 - i5)); + return; + } + } + if (this.a.getFlexWrap() != 2) { + view.layout(i, flexItem.N() + i2, i3, flexItem.N() + i4); + } else { + view.layout(i, i2 - flexItem.I(), i3, i4 - flexItem.I()); + } + } + + public void v(View view, b bVar, boolean z2, int i, int i2, int i3, int i4) { + FlexItem flexItem = (FlexItem) view.getLayoutParams(); + int alignItems = this.a.getAlignItems(); + if (flexItem.u() != -1) { + alignItems = flexItem.u(); + } + int i5 = bVar.g; + if (alignItems != 0) { + if (alignItems != 1) { + if (alignItems == 2) { + ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams(); + int marginStart = ((MarginLayoutParamsCompat.getMarginStart(marginLayoutParams) + (i5 - view.getMeasuredWidth())) - MarginLayoutParamsCompat.getMarginEnd(marginLayoutParams)) / 2; + if (!z2) { + view.layout(i + marginStart, i2, i3 + marginStart, i4); + return; + } else { + view.layout(i - marginStart, i2, i3 - marginStart, i4); + return; + } + } else if (!(alignItems == 3 || alignItems == 4)) { + return; + } + } else if (!z2) { + view.layout(((i + i5) - view.getMeasuredWidth()) - flexItem.d0(), i2, ((i3 + i5) - view.getMeasuredWidth()) - flexItem.d0(), i4); + return; + } else { + int J = flexItem.J(); + view.layout(flexItem.J() + view.getMeasuredWidth() + (i - i5), i2, J + view.getMeasuredWidth() + (i3 - i5), i4); + return; + } + } + if (!z2) { + view.layout(flexItem.J() + i, i2, flexItem.J() + i3, i4); + } else { + view.layout(i - flexItem.d0(), i2, i3 - flexItem.d0(), i4); + } + } + + public final void w(int i, int i2, b bVar, int i3, int i4, boolean z2) { + int i5; + int i6; + int i7; + int i8; + int i9 = bVar.e; + float f = bVar.k; + float f2 = 0.0f; + if (f > 0.0f && i3 <= i9) { + float f3 = ((float) (i9 - i3)) / f; + bVar.e = i4 + bVar.f; + if (!z2) { + bVar.g = Integer.MIN_VALUE; + } + int i10 = 0; + boolean z3 = false; + int i11 = 0; + float f4 = 0.0f; + while (i10 < bVar.h) { + int i12 = bVar.o + i10; + View c = this.a.c(i12); + if (c == null || c.getVisibility() == 8) { + i6 = i9; + i5 = i10; + } else { + FlexItem flexItem = (FlexItem) c.getLayoutParams(); + int flexDirection = this.a.getFlexDirection(); + if (flexDirection == 0 || flexDirection == 1) { + i6 = i9; + int measuredWidth = c.getMeasuredWidth(); + long[] jArr = this.e; + if (jArr != null) { + measuredWidth = (int) jArr[i12]; + } + int measuredHeight = c.getMeasuredHeight(); + long[] jArr2 = this.e; + if (jArr2 != null) { + measuredHeight = m(jArr2[i12]); + } + if (this.f1314b[i12] || flexItem.x() <= 0.0f) { + i5 = i10; + } else { + float x2 = ((float) measuredWidth) - (flexItem.x() * f3); + i5 = i10; + if (i5 == bVar.h - 1) { + x2 += f4; + f4 = 0.0f; + } + int round = Math.round(x2); + if (round < flexItem.D()) { + i8 = flexItem.D(); + this.f1314b[i12] = true; + bVar.k -= flexItem.x(); + z3 = true; + } else { + float f5 = (x2 - ((float) round)) + f4; + double d = (double) f5; + if (d > 1.0d) { + round++; + f5 -= 1.0f; + } else if (d < -1.0d) { + round--; + f5 += 1.0f; + } + f4 = f5; + i8 = round; + } + int n = n(i2, flexItem, bVar.m); + int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(i8, BasicMeasure.EXACTLY); + c.measure(makeMeasureSpec, n); + int measuredWidth2 = c.getMeasuredWidth(); + int measuredHeight2 = c.getMeasuredHeight(); + B(i12, makeMeasureSpec, n, c); + this.a.e(i12, c); + measuredWidth = measuredWidth2; + measuredHeight = measuredHeight2; + } + int max = Math.max(i11, this.a.j(c) + flexItem.I() + flexItem.N() + measuredHeight); + bVar.e = flexItem.d0() + flexItem.J() + measuredWidth + bVar.e; + i7 = max; + } else { + int measuredHeight3 = c.getMeasuredHeight(); + long[] jArr3 = this.e; + if (jArr3 != null) { + measuredHeight3 = m(jArr3[i12]); + } + int measuredWidth3 = c.getMeasuredWidth(); + long[] jArr4 = this.e; + if (jArr4 != null) { + measuredWidth3 = (int) jArr4[i12]; + } + if (this.f1314b[i12] || flexItem.x() <= f2) { + i6 = i9; + i5 = i10; + } else { + float x3 = ((float) measuredHeight3) - (flexItem.x() * f3); + if (i10 == bVar.h - 1) { + x3 += f4; + f4 = 0.0f; + } + int round2 = Math.round(x3); + if (round2 < flexItem.f0()) { + int f02 = flexItem.f0(); + this.f1314b[i12] = true; + bVar.k -= flexItem.x(); + i5 = i10; + round2 = f02; + z3 = true; + i6 = i9; + } else { + float f6 = (x3 - ((float) round2)) + f4; + i6 = i9; + i5 = i10; + double d2 = (double) f6; + if (d2 > 1.0d) { + round2++; + f6 -= 1.0f; + } else if (d2 < -1.0d) { + round2--; + f6 += 1.0f; + } + f4 = f6; + } + int o = o(i, flexItem, bVar.m); + int makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(round2, BasicMeasure.EXACTLY); + c.measure(o, makeMeasureSpec2); + measuredWidth3 = c.getMeasuredWidth(); + int measuredHeight4 = c.getMeasuredHeight(); + B(i12, o, makeMeasureSpec2, c); + this.a.e(i12, c); + measuredHeight3 = measuredHeight4; + } + i7 = Math.max(i11, this.a.j(c) + flexItem.d0() + flexItem.J() + measuredWidth3); + bVar.e = flexItem.I() + flexItem.N() + measuredHeight3 + bVar.e; + } + bVar.g = Math.max(bVar.g, i7); + i11 = i7; + } + i10 = i5 + 1; + i9 = i6; + f2 = 0.0f; + } + if (z3 && i9 != bVar.e) { + w(i, i2, bVar, i3, i4, true); + } + } + } + + public final int[] x(int i, List list, SparseIntArray sparseIntArray) { + Collections.sort(list); + sparseIntArray.clear(); + int[] iArr = new int[i]; + int i2 = 0; + for (C0100c cVar : list) { + int i3 = cVar.j; + iArr[i2] = i3; + sparseIntArray.append(i3, cVar.k); + i2++; + } + return iArr; + } + + public final void y(View view, int i, int i2) { + FlexItem flexItem = (FlexItem) view.getLayoutParams(); + int min = Math.min(Math.max(((i - flexItem.J()) - flexItem.d0()) - this.a.j(view), flexItem.D()), flexItem.t0()); + long[] jArr = this.e; + int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(jArr != null ? m(jArr[i2]) : view.getMeasuredHeight(), BasicMeasure.EXACTLY); + int makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(min, BasicMeasure.EXACTLY); + view.measure(makeMeasureSpec2, makeMeasureSpec); + B(i2, makeMeasureSpec2, makeMeasureSpec, view); + this.a.e(i2, view); + } + + public final void z(View view, int i, int i2) { + FlexItem flexItem = (FlexItem) view.getLayoutParams(); + int min = Math.min(Math.max(((i - flexItem.N()) - flexItem.I()) - this.a.j(view), flexItem.f0()), flexItem.m0()); + long[] jArr = this.e; + int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(jArr != null ? (int) jArr[i2] : view.getMeasuredWidth(), BasicMeasure.EXACTLY); + int makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(min, BasicMeasure.EXACTLY); + view.measure(makeMeasureSpec, makeMeasureSpec2); + B(i2, makeMeasureSpec, makeMeasureSpec2, view); + this.a.e(i2, view); + } +} diff --git a/app/src/main/java/b/i/a/f/a/a/a.java b/app/src/main/java/b/i/a/f/a/a/a.java new file mode 100644 index 0000000000..cedbf52f2e --- /dev/null +++ b/app/src/main/java/b/i/a/f/a/a/a.java @@ -0,0 +1,65 @@ +package b.i.a.f.a.a; + +import android.net.Uri; +import android.util.Log; +import java.io.IOException; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.Map; +public final class a extends Thread { + public final /* synthetic */ Map j; + + public a(Map map) { + this.j = map; + } + + @Override // java.lang.Thread, java.lang.Runnable + public final void run() { + StringBuilder sb; + String str; + String str2; + Exception exc; + Map map = this.j; + Uri.Builder buildUpon = Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon(); + for (String str3 : map.keySet()) { + buildUpon.appendQueryParameter(str3, (String) map.get(str3)); + } + String uri = buildUpon.build().toString(); + try { + HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(uri).openConnection(); + try { + int responseCode = httpURLConnection.getResponseCode(); + if (responseCode < 200 || responseCode >= 300) { + StringBuilder sb2 = new StringBuilder(String.valueOf(uri).length() + 65); + sb2.append("Received non-success response code "); + sb2.append(responseCode); + sb2.append(" from pinging URL: "); + sb2.append(uri); + Log.w("HttpUrlPinger", sb2.toString()); + } + } finally { + httpURLConnection.disconnect(); + } + } catch (IndexOutOfBoundsException e) { + str2 = e.getMessage(); + sb = new StringBuilder(b.d.b.a.a.b(str2, b.d.b.a.a.b(uri, 32))); + str = "Error while parsing ping URL: "; + exc = e; + sb.append(str); + sb.append(uri); + sb.append(". "); + sb.append(str2); + Log.w("HttpUrlPinger", sb.toString(), exc); + } catch (IOException | RuntimeException e2) { + str2 = e2.getMessage(); + sb = new StringBuilder(b.d.b.a.a.b(str2, b.d.b.a.a.b(uri, 27))); + str = "Error while pinging URL: "; + exc = e2; + sb.append(str); + sb.append(uri); + sb.append(". "); + sb.append(str2); + Log.w("HttpUrlPinger", sb.toString(), exc); + } + } +} diff --git a/app/src/main/java/b/i/a/f/a/a/b.java b/app/src/main/java/b/i/a/f/a/a/b.java new file mode 100644 index 0000000000..55c3501a1b --- /dev/null +++ b/app/src/main/java/b/i/a/f/a/a/b.java @@ -0,0 +1,39 @@ +package b.i.a.f.a.a; + +import android.content.Context; +import android.content.SharedPreferences; +import android.content.pm.PackageManager; +import android.util.Log; +import b.i.a.f.e.e; +public final class b { + public SharedPreferences a; + + public b(Context context) { + Context context2; + try { + boolean z2 = e.a; + try { + context2 = context.createPackageContext("com.google.android.gms", 3); + } catch (PackageManager.NameNotFoundException unused) { + context2 = null; + } + this.a = context2 == null ? null : context2.getSharedPreferences("google_ads_flags", 0); + } catch (Throwable th) { + Log.w("GmscoreFlag", "Error while getting SharedPreferences ", th); + this.a = null; + } + } + + public final boolean a(String str) { + try { + SharedPreferences sharedPreferences = this.a; + if (sharedPreferences == null) { + return false; + } + return sharedPreferences.getBoolean(str, false); + } catch (Throwable th) { + Log.w("GmscoreFlag", "Error while reading from SharedPreferences ", th); + return false; + } + } +} diff --git a/app/src/main/java/b/i/a/f/b/a.java b/app/src/main/java/b/i/a/f/b/a.java new file mode 100644 index 0000000000..31025a9cf6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/b/a.java @@ -0,0 +1,6 @@ +package b.i.a.f.b; + +import android.content.BroadcastReceiver; +public class a extends BroadcastReceiver { + public static Boolean a; +} diff --git a/app/src/main/java/b/i/a/f/b/b.java b/app/src/main/java/b/i/a/f/b/b.java new file mode 100644 index 0000000000..1fc166ca88 --- /dev/null +++ b/app/src/main/java/b/i/a/f/b/b.java @@ -0,0 +1,16 @@ +package b.i.a.f.b; + +import b.i.a.f.h.j.g; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +public final class b extends c { + + /* renamed from: b reason: collision with root package name */ + public static List f1316b = new ArrayList(); + + public b(g gVar) { + super(gVar); + new HashSet(); + } +} diff --git a/app/src/main/java/b/i/a/f/b/c.java b/app/src/main/java/b/i/a/f/b/c.java new file mode 100644 index 0000000000..3348482515 --- /dev/null +++ b/app/src/main/java/b/i/a/f/b/c.java @@ -0,0 +1,21 @@ +package b.i.a.f.b; + +import b.i.a.f.e.o.b; +import b.i.a.f.h.j.g; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Objects; +public class c { + public final g a; + + public c(g gVar) { + f d = gVar.d(); + b bVar = gVar.d; + Objects.requireNonNull(d, "null reference"); + new ArrayList(); + Objects.requireNonNull(bVar, "null reference"); + new HashMap(); + new ArrayList(); + this.a = gVar; + } +} diff --git a/app/src/main/java/b/i/a/f/b/d.java b/app/src/main/java/b/i/a/f/b/d.java new file mode 100644 index 0000000000..045710bc52 --- /dev/null +++ b/app/src/main/java/b/i/a/f/b/d.java @@ -0,0 +1,17 @@ +package b.i.a.f.b; + +import android.net.Uri; +import android.util.LogPrinter; +import androidx.core.app.NotificationCompat; +public final class d { + static { + Uri.Builder builder = new Uri.Builder(); + builder.scheme(NotificationCompat.MessagingStyle.Message.KEY_DATA_URI); + builder.authority("local"); + builder.build(); + } + + public d() { + new LogPrinter(4, "GA/LogCatTransport"); + } +} diff --git a/app/src/main/java/b/i/a/f/b/e.java b/app/src/main/java/b/i/a/f/b/e.java new file mode 100644 index 0000000000..96aef9a62b --- /dev/null +++ b/app/src/main/java/b/i/a/f/b/e.java @@ -0,0 +1,76 @@ +package b.i.a.f.b; + +import android.text.TextUtils; +import b.i.a.f.b.e; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; +public abstract class e { + public static String a(Object obj, int i) { + if (i > 10) { + return "ERROR: Recursive toString calls"; + } + if (obj == null) { + return ""; + } + if (obj instanceof String) { + return TextUtils.isEmpty((String) obj) ? "" : obj.toString(); + } + if (obj instanceof Integer) { + return ((Integer) obj).intValue() == 0 ? "" : obj.toString(); + } + if (obj instanceof Long) { + return ((Long) obj).longValue() == 0 ? "" : obj.toString(); + } + if (obj instanceof Double) { + return ((Double) obj).doubleValue() == ShadowDrawableWrapper.COS_45 ? "" : obj.toString(); + } + if (obj instanceof Boolean) { + return !((Boolean) obj).booleanValue() ? "" : obj.toString(); + } + if (obj instanceof List) { + StringBuilder sb = new StringBuilder(); + if (i > 0) { + sb.append("["); + } + int length = sb.length(); + for (Object obj2 : (List) obj) { + if (sb.length() > length) { + sb.append(", "); + } + sb.append(a(obj2, i + 1)); + } + if (i > 0) { + sb.append("]"); + } + return sb.toString(); + } else if (!(obj instanceof Map)) { + return obj.toString(); + } else { + StringBuilder sb2 = new StringBuilder(); + boolean z2 = false; + int i2 = 0; + for (Map.Entry entry : new TreeMap((Map) obj).entrySet()) { + String a = a(entry.getValue(), i + 1); + if (!TextUtils.isEmpty(a)) { + if (i > 0 && !z2) { + sb2.append("{"); + i2 = sb2.length(); + z2 = true; + } + if (sb2.length() > i2) { + sb2.append(", "); + } + sb2.append((String) entry.getKey()); + sb2.append('='); + sb2.append(a); + } + } + if (z2) { + sb2.append("}"); + } + return sb2.toString(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/b/f.java b/app/src/main/java/b/i/a/f/b/f.java new file mode 100644 index 0000000000..92dd12906e --- /dev/null +++ b/app/src/main/java/b/i/a/f/b/f.java @@ -0,0 +1,80 @@ +package b.i.a.f.b; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.os.Process; +import b.i.a.f.h.j.f1; +import java.lang.Thread; +import java.util.Objects; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.RunnableFuture; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +@SuppressLint({"StaticFieldLeak"}) +public final class f { + public static volatile f a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1317b; + public final a c = new a(); + public volatile f1 d; + public Thread.UncaughtExceptionHandler e; + + public class a extends ThreadPoolExecutor { + public a() { + super(1, 1, 1, TimeUnit.MINUTES, new LinkedBlockingQueue()); + setThreadFactory(new b(null)); + allowCoreThreadTimeOut(true); + } + + @Override // java.util.concurrent.AbstractExecutorService + public final RunnableFuture newTaskFor(Runnable runnable, T t) { + return new h(this, runnable, t); + } + } + + public static class b implements ThreadFactory { + public static final AtomicInteger j = new AtomicInteger(); + + public b(g gVar) { + } + + @Override // java.util.concurrent.ThreadFactory + public final Thread newThread(Runnable runnable) { + return new c(runnable, b.d.b.a.a.f(23, "measurement-", j.incrementAndGet())); + } + } + + public static class c extends Thread { + public c(Runnable runnable, String str) { + super(runnable, str); + } + + @Override // java.lang.Thread, java.lang.Runnable + public final void run() { + Process.setThreadPriority(10); + super.run(); + } + } + + public f(Context context) { + Context applicationContext = context.getApplicationContext(); + Objects.requireNonNull(applicationContext, "null reference"); + this.f1317b = applicationContext; + new CopyOnWriteArrayList(); + new d(); + } + + public static void b() { + if (!(Thread.currentThread() instanceof c)) { + throw new IllegalStateException("Call expected from worker thread"); + } + } + + public final void a(Runnable runnable) { + this.c.submit(runnable); + } +} diff --git a/app/src/main/java/b/i/a/f/b/g.java b/app/src/main/java/b/i/a/f/b/g.java new file mode 100644 index 0000000000..0d4982e352 --- /dev/null +++ b/app/src/main/java/b/i/a/f/b/g.java @@ -0,0 +1,3 @@ +package b.i.a.f.b; +public final class g implements Runnable { +} diff --git a/app/src/main/java/b/i/a/f/b/h.java b/app/src/main/java/b/i/a/f/b/h.java new file mode 100644 index 0000000000..88e4a10c39 --- /dev/null +++ b/app/src/main/java/b/i/a/f/b/h.java @@ -0,0 +1,30 @@ +package b.i.a.f.b; + +import android.util.Log; +import b.i.a.f.b.f; +import java.lang.Thread; +import java.util.concurrent.FutureTask; +public final class h extends FutureTask { + public final /* synthetic */ f.a j; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(f.a aVar, Runnable runnable, Object obj) { + super(runnable, obj); + this.j = aVar; + } + + @Override // java.util.concurrent.FutureTask + public final void setException(Throwable th) { + Thread.UncaughtExceptionHandler uncaughtExceptionHandler = f.this.e; + if (uncaughtExceptionHandler != null) { + uncaughtExceptionHandler.uncaughtException(Thread.currentThread(), th); + } else if (Log.isLoggable("GAv4", 6)) { + String valueOf = String.valueOf(th); + StringBuilder sb = new StringBuilder(valueOf.length() + 37); + sb.append("MeasurementExecutor: job failed with "); + sb.append(valueOf); + Log.e("GAv4", sb.toString()); + } + super.setException(th); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/a.java b/app/src/main/java/b/i/a/f/c/a/a.java new file mode 100644 index 0000000000..574dbcf103 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/a.java @@ -0,0 +1,91 @@ +package b.i.a.f.c.a; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.f.c.a.d.c; +import b.i.a.f.c.a.f.b.f; +import b.i.a.f.e.h.a; +import b.i.a.f.h.c.h; +import b.i.a.f.h.c.o; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import java.util.Arrays; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class a { + public static final a.g a; + + /* renamed from: b reason: collision with root package name */ + public static final a.g f1318b; + public static final a.AbstractC0103a c; + public static final a.AbstractC0103a d; + public static final b.i.a.f.e.h.a e; + public static final b.i.a.f.e.h.a f; + public static final c g = new h(); + + /* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ + @Deprecated + /* renamed from: b.i.a.f.c.a.a$a reason: collision with other inner class name */ + public static class C0101a implements a.d { + public static final C0101a j = new C0101a(new C0102a()); + public final String k; + public final boolean l; + @Nullable + public final String m; + + /* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ + @Deprecated + /* renamed from: b.i.a.f.c.a.a$a$a reason: collision with other inner class name */ + public static class C0102a { + public String a; + + /* renamed from: b reason: collision with root package name */ + public Boolean f1319b = Boolean.FALSE; + @Nullable + public String c; + + public C0102a() { + } + + public C0102a(C0101a aVar) { + this.a = aVar.k; + this.f1319b = Boolean.valueOf(aVar.l); + this.c = aVar.m; + } + } + + public C0101a(C0102a aVar) { + this.k = aVar.a; + this.l = aVar.f1319b.booleanValue(); + this.m = aVar.c; + } + + public boolean equals(@Nullable Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof C0101a)) { + return false; + } + C0101a aVar = (C0101a) obj; + return d.g0(this.k, aVar.k) && this.l == aVar.l && d.g0(this.m, aVar.m); + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{this.k, Boolean.valueOf(this.l), this.m}); + } + } + + static { + a.g gVar = new a.g<>(); + a = gVar; + a.g gVar2 = new a.g<>(); + f1318b = gVar2; + h hVar = new h(); + c = hVar; + i iVar = new i(); + d = iVar; + b.i.a.f.e.h.a aVar = b.c; + e = new b.i.a.f.e.h.a<>("Auth.CREDENTIALS_API", hVar, gVar); + f = new b.i.a.f.e.h.a<>("Auth.GOOGLE_SIGN_IN_API", iVar, gVar2); + b.i.a.f.h.d.d dVar = b.d; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/b.java b/app/src/main/java/b/i/a/f/c/a/b.java new file mode 100644 index 0000000000..8c1cf83e64 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/b.java @@ -0,0 +1,20 @@ +package b.i.a.f.c.a; + +import b.i.a.f.e.h.a; +import b.i.a.f.h.d.d; +public final class b { + public static final a.g a; + + /* renamed from: b reason: collision with root package name */ + public static final a.AbstractC0103a f1320b; + public static final a c; + public static final d d = new d(); + + static { + a.g gVar = new a.g<>(); + a = gVar; + g gVar2 = new g(); + f1320b = gVar2; + c = new a<>("Auth.PROXY_API", gVar2, gVar); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/c.java b/app/src/main/java/b/i/a/f/c/a/c.java new file mode 100644 index 0000000000..7752f4457f --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/c.java @@ -0,0 +1,5 @@ +package b.i.a.f.c.a; + +import b.i.a.f.e.h.a; +public final class c implements a.d { +} diff --git a/app/src/main/java/b/i/a/f/c/a/d/a.java b/app/src/main/java/b/i/a/f/c/a/d/a.java new file mode 100644 index 0000000000..55dc105bcc --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/d/a.java @@ -0,0 +1,6 @@ +package b.i.a.f.c.a.d; + +import b.i.a.f.e.h.g; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public class a extends g { +} diff --git a/app/src/main/java/b/i/a/f/c/a/d/b.java b/app/src/main/java/b/i/a/f/c/a/d/b.java new file mode 100644 index 0000000000..10a7d4a668 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/d/b.java @@ -0,0 +1,10 @@ +package b.i.a.f.c.a.d; + +import androidx.annotation.Nullable; +import b.i.a.f.e.h.h; +import com.google.android.gms.auth.api.credentials.Credential; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public interface b extends h { + @Nullable + Credential R(); +} diff --git a/app/src/main/java/b/i/a/f/c/a/d/c.java b/app/src/main/java/b/i/a/f/c/a/d/c.java new file mode 100644 index 0000000000..7ab29be113 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/d/c.java @@ -0,0 +1,4 @@ +package b.i.a.f.c.a.d; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public interface c { +} diff --git a/app/src/main/java/b/i/a/f/c/a/d/d.java b/app/src/main/java/b/i/a/f/c/a/d/d.java new file mode 100644 index 0000000000..bdc0657724 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/d/d.java @@ -0,0 +1,21 @@ +package b.i.a.f.c.a.d; + +import b.i.a.f.c.a.a; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class d extends a.C0101a { + + /* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ + public static final class a extends a.C0101a.C0102a { + public final d a() { + return new d(this, null); + } + } + + static { + new a().a(); + } + + public d(a aVar, h hVar) { + super(aVar); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/d/e.java b/app/src/main/java/b/i/a/f/c/a/d/e.java new file mode 100644 index 0000000000..f536965039 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/d/e.java @@ -0,0 +1,67 @@ +package b.i.a.f.c.a.d; + +import android.net.Uri; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.auth.api.credentials.IdToken; +import java.util.ArrayList; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class e implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final Credential createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + Uri uri = null; + ArrayList arrayList = null; + String str3 = null; + String str4 = null; + String str5 = null; + String str6 = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + str = d.Q(parcel, readInt); + break; + case 2: + str2 = d.Q(parcel, readInt); + break; + case 3: + uri = (Uri) d.P(parcel, readInt, Uri.CREATOR); + break; + case 4: + arrayList = d.U(parcel, readInt, IdToken.CREATOR); + break; + case 5: + str3 = d.Q(parcel, readInt); + break; + case 6: + str4 = d.Q(parcel, readInt); + break; + case 7: + case 8: + default: + d.b2(parcel, readInt); + break; + case 9: + str5 = d.Q(parcel, readInt); + break; + case 10: + str6 = d.Q(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new Credential(str, str2, uri, arrayList, str3, str4, str5, str6); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ Credential[] newArray(int i) { + return new Credential[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/d/f.java b/app/src/main/java/b/i/a/f/c/a/d/f.java new file mode 100644 index 0000000000..6d6cab3ba0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/d/f.java @@ -0,0 +1,44 @@ +package b.i.a.f.c.a.d; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.credentials.CredentialPickerConfig; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class f implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final CredentialPickerConfig createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + boolean z2 = false; + boolean z3 = false; + boolean z4 = false; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + z2 = d.C1(parcel, readInt); + } else if (i3 == 2) { + z3 = d.C1(parcel, readInt); + } else if (i3 == 3) { + z4 = d.C1(parcel, readInt); + } else if (i3 == 4) { + i2 = d.E1(parcel, readInt); + } else if (i3 != 1000) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new CredentialPickerConfig(i, z2, z3, z4, i2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ CredentialPickerConfig[] newArray(int i) { + return new CredentialPickerConfig[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/d/g.java b/app/src/main/java/b/i/a/f/c/a/d/g.java new file mode 100644 index 0000000000..78c30ebbfd --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/d/g.java @@ -0,0 +1,69 @@ +package b.i.a.f.c.a.d; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.credentials.CredentialPickerConfig; +import com.google.android.gms.auth.api.credentials.CredentialRequest; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class g implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final CredentialRequest createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String[] strArr = null; + CredentialPickerConfig credentialPickerConfig = null; + CredentialPickerConfig credentialPickerConfig2 = null; + String str = null; + String str2 = null; + int i = 0; + boolean z2 = false; + boolean z3 = false; + boolean z4 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 != 1000) { + switch (i2) { + case 1: + z2 = d.C1(parcel, readInt); + continue; + case 2: + strArr = d.R(parcel, readInt); + continue; + case 3: + credentialPickerConfig = (CredentialPickerConfig) d.P(parcel, readInt, CredentialPickerConfig.CREATOR); + continue; + case 4: + credentialPickerConfig2 = (CredentialPickerConfig) d.P(parcel, readInt, CredentialPickerConfig.CREATOR); + continue; + case 5: + z3 = d.C1(parcel, readInt); + continue; + case 6: + str = d.Q(parcel, readInt); + continue; + case 7: + str2 = d.Q(parcel, readInt); + continue; + case 8: + z4 = d.C1(parcel, readInt); + continue; + default: + d.b2(parcel, readInt); + continue; + } + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new CredentialRequest(i, z2, strArr, credentialPickerConfig, credentialPickerConfig2, z3, str, str2, z4); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ CredentialRequest[] newArray(int i) { + return new CredentialRequest[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/d/i.java b/app/src/main/java/b/i/a/f/c/a/d/i.java new file mode 100644 index 0000000000..226d520cc5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/d/i.java @@ -0,0 +1,35 @@ +package b.i.a.f.c.a.d; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.credentials.IdToken; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class i implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final IdToken createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 1) { + str = d.Q(parcel, readInt); + } else if (i != 2) { + d.b2(parcel, readInt); + } else { + str2 = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new IdToken(str, str2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ IdToken[] newArray(int i) { + return new IdToken[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/e/a.java b/app/src/main/java/b/i/a/f/c/a/e/a.java new file mode 100644 index 0000000000..116bec69fa --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/e/a.java @@ -0,0 +1,25 @@ +package b.i.a.f.c.a.e; + +import android.content.Context; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.b; +import b.i.a.f.h.b.i; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public abstract class a extends b { + public static final a.g j; + public static final a.AbstractC0103a k; + public static final b.i.a.f.e.h.a l; + + static { + a.g gVar = new a.g<>(); + j = gVar; + b bVar = new b(); + k = bVar; + l = new b.i.a.f.e.h.a<>("SmsRetriever.API", bVar, gVar); + } + + public a(@NonNull Context context) { + super(context, l, (a.d) null, b.a.a); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/e/b.java b/app/src/main/java/b/i/a/f/c/a/e/b.java new file mode 100644 index 0000000000..767b372f8b --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/e/b.java @@ -0,0 +1,18 @@ +package b.i.a.f.c.a.e; + +import android.content.Context; +import android.os.Looper; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.j.f; +import b.i.a.f.e.h.j.l; +import b.i.a.f.e.k.c; +import b.i.a.f.h.b.i; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public final class b extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.j.f, b.i.a.f.e.h.j.l] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final /* synthetic */ i b(Context context, Looper looper, c cVar, a.d.c cVar2, f fVar, l lVar) { + return new i(context, looper, cVar, fVar, lVar); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/a.java b/app/src/main/java/b/i/a/f/c/a/f/a.java new file mode 100644 index 0000000000..19a966fa73 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/a.java @@ -0,0 +1,33 @@ +package b.i.a.f.c.a.f; + +import android.content.Context; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.b; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import com.google.android.gms.common.GoogleApiAvailability; +import com.google.android.gms.dynamite.DynamiteModule; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public class a extends b { + public static int j = 1; + + public a(@NonNull Context context, GoogleSignInOptions googleSignInOptions) { + super(context, b.i.a.f.c.a.a.f, googleSignInOptions, new b.i.a.f.e.h.j.a()); + } + + public final synchronized int f() { + if (j == 1) { + Context context = this.a; + Object obj = GoogleApiAvailability.c; + GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.d; + int b2 = googleApiAvailability.b(context, 12451000); + if (b2 == 0) { + j = 4; + } else if (googleApiAvailability.a(context, b2, null) != null || DynamiteModule.a(context, "com.google.android.gms.auth.api.fallback") == 0) { + j = 2; + } else { + j = 3; + } + } + return j; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/a.java b/app/src/main/java/b/i/a/f/c/a/f/b/a.java new file mode 100644 index 0000000000..e5ebb3084a --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/a.java @@ -0,0 +1,194 @@ +package b.i.a.f.c.a.f.b; + +import android.accounts.Account; +import android.content.Context; +import android.content.SharedPreferences; +import android.net.Uri; +import android.text.TextUtils; +import androidx.annotation.Nullable; +import androidx.core.app.NotificationCompat; +import b.i.a.f.c.a.f.c; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import com.google.android.gms.common.api.Scope; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class a { + public static final Lock a = new ReentrantLock(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public static a f1321b; + public final Lock c = new ReentrantLock(); + public final SharedPreferences d; + + public a(Context context) { + this.d = context.getSharedPreferences("com.google.android.gms.signin", 0); + } + + public static a a(Context context) { + Objects.requireNonNull(context, "null reference"); + Lock lock = a; + lock.lock(); + try { + if (f1321b == null) { + f1321b = new a(context.getApplicationContext()); + } + a aVar = f1321b; + lock.unlock(); + return aVar; + } catch (Throwable th) { + a.unlock(); + throw th; + } + } + + public static String f(String str, String str2) { + return b.d.b.a.a.j(b.d.b.a.a.b(str2, str.length() + 1), str, ":", str2); + } + + @Nullable + public GoogleSignInAccount b() { + String g; + String g2 = g("defaultGoogleSignInAccount"); + if (TextUtils.isEmpty(g2) || (g = g(f("googleSignInAccount", g2))) == null) { + return null; + } + try { + return GoogleSignInAccount.x0(g); + } catch (JSONException unused) { + return null; + } + } + + @Nullable + public GoogleSignInOptions c() { + String g; + String g2 = g("defaultGoogleSignInAccount"); + if (TextUtils.isEmpty(g2) || (g = g(f("googleSignInOptions", g2))) == null) { + return null; + } + try { + return GoogleSignInOptions.x0(g); + } catch (JSONException unused) { + return null; + } + } + + public void d(GoogleSignInAccount googleSignInAccount, GoogleSignInOptions googleSignInOptions) { + Objects.requireNonNull(googleSignInAccount, "null reference"); + Objects.requireNonNull(googleSignInOptions, "null reference"); + e("defaultGoogleSignInAccount", googleSignInAccount.r); + String str = googleSignInAccount.r; + String f = f("googleSignInAccount", str); + JSONObject jSONObject = new JSONObject(); + try { + String str2 = googleSignInAccount.k; + if (str2 != null) { + jSONObject.put(ModelAuditLogEntry.CHANGE_KEY_ID, str2); + } + String str3 = googleSignInAccount.l; + if (str3 != null) { + jSONObject.put("tokenId", str3); + } + String str4 = googleSignInAccount.m; + if (str4 != null) { + jSONObject.put(NotificationCompat.CATEGORY_EMAIL, str4); + } + String str5 = googleSignInAccount.n; + if (str5 != null) { + jSONObject.put("displayName", str5); + } + String str6 = googleSignInAccount.t; + if (str6 != null) { + jSONObject.put("givenName", str6); + } + String str7 = googleSignInAccount.u; + if (str7 != null) { + jSONObject.put("familyName", str7); + } + Uri uri = googleSignInAccount.o; + if (uri != null) { + jSONObject.put("photoUrl", uri.toString()); + } + String str8 = googleSignInAccount.p; + if (str8 != null) { + jSONObject.put("serverAuthCode", str8); + } + jSONObject.put("expirationTime", googleSignInAccount.q); + jSONObject.put("obfuscatedIdentifier", googleSignInAccount.r); + JSONArray jSONArray = new JSONArray(); + List list = googleSignInAccount.f2954s; + Scope[] scopeArr = (Scope[]) list.toArray(new Scope[list.size()]); + Arrays.sort(scopeArr, c.j); + int i = 0; + for (Scope scope : scopeArr) { + jSONArray.put(scope.k); + } + jSONObject.put("grantedScopes", jSONArray); + jSONObject.remove("serverAuthCode"); + e(f, jSONObject.toString()); + String f2 = f("googleSignInOptions", str); + JSONObject jSONObject2 = new JSONObject(); + try { + JSONArray jSONArray2 = new JSONArray(); + Collections.sort(googleSignInOptions.q, GoogleSignInOptions.o); + ArrayList arrayList = googleSignInOptions.q; + int size = arrayList.size(); + while (i < size) { + Scope scope2 = arrayList.get(i); + i++; + jSONArray2.put(scope2.k); + } + jSONObject2.put("scopes", jSONArray2); + Account account = googleSignInOptions.r; + if (account != null) { + jSONObject2.put("accountName", account.name); + } + jSONObject2.put("idTokenRequested", googleSignInOptions.f2955s); + jSONObject2.put("forceCodeForRefreshToken", googleSignInOptions.u); + jSONObject2.put("serverAuthRequested", googleSignInOptions.t); + if (!TextUtils.isEmpty(googleSignInOptions.v)) { + jSONObject2.put("serverClientId", googleSignInOptions.v); + } + if (!TextUtils.isEmpty(googleSignInOptions.w)) { + jSONObject2.put("hostedDomain", googleSignInOptions.w); + } + e(f2, jSONObject2.toString()); + } catch (JSONException e) { + throw new RuntimeException(e); + } + } catch (JSONException e2) { + throw new RuntimeException(e2); + } + } + + public final void e(String str, String str2) { + this.c.lock(); + try { + this.d.edit().putString(str, str2).apply(); + } finally { + this.c.unlock(); + } + } + + @Nullable + public final String g(String str) { + this.c.lock(); + try { + return this.d.getString(str, null); + } finally { + this.c.unlock(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/b.java b/app/src/main/java/b/i/a/f/c/a/f/b/b.java new file mode 100644 index 0000000000..96fd402638 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/b.java @@ -0,0 +1,39 @@ +package b.i.a.f.c.a.f.b; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.signin.internal.GoogleSignInOptionsExtensionParcelable; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class b implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final GoogleSignInOptionsExtensionParcelable createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + Bundle bundle = null; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + i = d.E1(parcel, readInt); + } else if (i3 == 2) { + i2 = d.E1(parcel, readInt); + } else if (i3 != 3) { + d.b2(parcel, readInt); + } else { + bundle = d.M(parcel, readInt); + } + } + d.e0(parcel, k2); + return new GoogleSignInOptionsExtensionParcelable(i, i2, bundle); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ GoogleSignInOptionsExtensionParcelable[] newArray(int i) { + return new GoogleSignInOptionsExtensionParcelable[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/c.java b/app/src/main/java/b/i/a/f/c/a/f/b/c.java new file mode 100644 index 0000000000..a595c3bf1a --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/c.java @@ -0,0 +1,16 @@ +package b.i.a.f.c.a.f.b; + +import android.os.RemoteException; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public class c extends p { + @Override // b.i.a.f.c.a.f.b.n + public void o(Status status) throws RemoteException { + throw new UnsupportedOperationException(); + } + + @Override // b.i.a.f.c.a.f.b.n + public void v(Status status) throws RemoteException { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/d.java b/app/src/main/java/b/i/a/f/c/a/f/b/d.java new file mode 100644 index 0000000000..ea58405b41 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/d.java @@ -0,0 +1,48 @@ +package b.i.a.f.c.a.f.b; + +import android.content.Context; +import android.util.Log; +import androidx.loader.content.AsyncTaskLoader; +import b.i.a.f.e.h.c; +import java.util.Iterator; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.Semaphore; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class d extends AsyncTaskLoader { + public Semaphore a = new Semaphore(0); + + /* renamed from: b reason: collision with root package name */ + public Set f1322b; + + public d(Context context, Set set) { + super(context); + this.f1322b = set; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // androidx.loader.content.AsyncTaskLoader + public final Void loadInBackground() { + Iterator it = this.f1322b.iterator(); + if (!it.hasNext()) { + try { + this.a.tryAcquire(0, 5, TimeUnit.SECONDS); + return null; + } catch (InterruptedException e) { + Log.i("GACSignInLoader", "Unexpected InterruptedException", e); + Thread.currentThread().interrupt(); + return null; + } + } else { + Objects.requireNonNull(it.next()); + throw new UnsupportedOperationException(); + } + } + + @Override // androidx.loader.content.Loader + public final void onStartLoading() { + this.a.drainPermits(); + forceLoad(); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/e.java b/app/src/main/java/b/i/a/f/c/a/f/b/e.java new file mode 100644 index 0000000000..77470b6dce --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/e.java @@ -0,0 +1,51 @@ +package b.i.a.f.c.a.f.b; + +import androidx.browser.trusted.sharing.ShareTarget; +import b.c.a.a0.d; +import b.i.a.f.e.h.j.o; +import b.i.a.f.e.l.a; +import com.google.android.gms.common.api.Status; +import java.io.IOException; +import java.net.HttpURLConnection; +import java.net.URL; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class e implements Runnable { + public static final a j = new a("RevokeAccessOperation", new String[0]); + public final String k; + public final o l = new o(null); + + public e(String str) { + d.w(str); + this.k = str; + } + + @Override // java.lang.Runnable + public final void run() { + Status status = Status.l; + try { + String valueOf = String.valueOf(this.k); + HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(valueOf.length() != 0 ? "https://accounts.google.com/o/oauth2/revoke?token=".concat(valueOf) : new String("https://accounts.google.com/o/oauth2/revoke?token=")).openConnection(); + httpURLConnection.setRequestProperty("Content-Type", ShareTarget.ENCODING_TYPE_URL_ENCODED); + int responseCode = httpURLConnection.getResponseCode(); + if (responseCode == 200) { + status = Status.j; + } else { + j.b("Unable to revoke access!", new Object[0]); + } + a aVar = j; + StringBuilder sb = new StringBuilder(26); + sb.append("Response Code: "); + sb.append(responseCode); + aVar.a(sb.toString(), new Object[0]); + } catch (IOException e) { + a aVar2 = j; + String valueOf2 = String.valueOf(e.toString()); + aVar2.b(valueOf2.length() != 0 ? "IOException when revoking access: ".concat(valueOf2) : new String("IOException when revoking access: "), new Object[0]); + } catch (Exception e2) { + a aVar3 = j; + String valueOf3 = String.valueOf(e2.toString()); + aVar3.b(valueOf3.length() != 0 ? "Exception when revoking access: ".concat(valueOf3) : new String("Exception when revoking access: "), new Object[0]); + } + this.l.b(status); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/f.java b/app/src/main/java/b/i/a/f/c/a/f/b/f.java new file mode 100644 index 0000000000..05652e7068 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/f.java @@ -0,0 +1,58 @@ +package b.i.a.f.c.a.f.b; + +import android.content.Context; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import android.util.Base64; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +import b.i.a.f.e.k.d; +import b.i.a.f.h.c.a; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import com.google.android.gms.common.api.Scope; +import java.util.Arrays; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class f extends d { + public final GoogleSignInOptions A; + + public f(Context context, Looper looper, c cVar, @Nullable GoogleSignInOptions googleSignInOptions, c.a aVar, c.b bVar) { + super(context, looper, 91, cVar, aVar, bVar); + GoogleSignInOptions.a aVar2 = googleSignInOptions != null ? new GoogleSignInOptions.a(googleSignInOptions) : new GoogleSignInOptions.a(); + byte[] bArr = new byte[16]; + a.a.nextBytes(bArr); + aVar2.i = Base64.encodeToString(bArr, 11); + if (!cVar.c.isEmpty()) { + for (Scope scope : cVar.c) { + aVar2.a.add(scope); + aVar2.a.addAll(Arrays.asList(new Scope[0])); + } + } + this.A = aVar2.a(); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12451000; + } + + @Override // b.i.a.f.e.k.b + public final /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.auth.api.signin.internal.ISignInService"); + return queryLocalInterface instanceof o ? (o) queryLocalInterface : new r(iBinder); + } + + @Override // b.i.a.f.e.k.b + public final String x() { + return "com.google.android.gms.auth.api.signin.internal.ISignInService"; + } + + @Override // b.i.a.f.e.k.b + public final String y() { + return "com.google.android.gms.auth.api.signin.service.START"; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/g.java b/app/src/main/java/b/i/a/f/c/a/f/b/g.java new file mode 100644 index 0000000000..186db7cfdb --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/g.java @@ -0,0 +1,34 @@ +package b.i.a.f.c.a.f.b; + +import android.content.Context; +import android.os.Handler; +import b.i.a.f.e.h.c; +import b.i.a.f.e.l.a; +import java.util.Iterator; +import java.util.Objects; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class g { + public static a a = new a("GoogleSignInCommon", new String[0]); + + public static void a(Context context) { + m.b(context).a(); + Set set = c.a; + synchronized (set) { + } + Iterator it = set.iterator(); + if (!it.hasNext()) { + synchronized (b.i.a.f.e.h.j.g.l) { + b.i.a.f.e.h.j.g gVar = b.i.a.f.e.h.j.g.m; + if (gVar != null) { + gVar.f1343s.incrementAndGet(); + Handler handler = gVar.f1344x; + handler.sendMessageAtFrontOfQueue(handler.obtainMessage(10)); + } + } + return; + } + Objects.requireNonNull(it.next()); + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/h.java b/app/src/main/java/b/i/a/f/c/a/f/b/h.java new file mode 100644 index 0000000000..11577defda --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/h.java @@ -0,0 +1,23 @@ +package b.i.a.f.c.a.f.b; + +import android.os.RemoteException; +import b.i.a.f.e.h.c; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class h extends k { + public h(c cVar) { + super(cVar); + } + + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public final /* synthetic */ b.i.a.f.e.h.h d(Status status) { + return status; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.f.e.h.a$b] */ + @Override // b.i.a.f.e.h.j.d + public final void k(f fVar) throws RemoteException { + f fVar2 = fVar; + fVar2.w().n0(new j(this), fVar2.A); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/i.java b/app/src/main/java/b/i/a/f/c/a/f/b/i.java new file mode 100644 index 0000000000..96f372d181 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/i.java @@ -0,0 +1,24 @@ +package b.i.a.f.c.a.f.b; + +import android.os.RemoteException; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class i extends k { + public i(c cVar) { + super(cVar); + } + + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public final /* synthetic */ h d(Status status) { + return status; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.f.e.h.a$b] */ + @Override // b.i.a.f.e.h.j.d + public final void k(f fVar) throws RemoteException { + f fVar2 = fVar; + fVar2.w().a0(new l(this), fVar2.A); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/j.java b/app/src/main/java/b/i/a/f/c/a/f/b/j.java new file mode 100644 index 0000000000..bc93617c07 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/j.java @@ -0,0 +1,17 @@ +package b.i.a.f.c.a.f.b; + +import android.os.RemoteException; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class j extends c { + public final /* synthetic */ h a; + + public j(h hVar) { + this.a = hVar; + } + + @Override // b.i.a.f.c.a.f.b.c, b.i.a.f.c.a.f.b.n + public final void o(Status status) throws RemoteException { + this.a.b(status); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/k.java b/app/src/main/java/b/i/a/f/c/a/f/b/k.java new file mode 100644 index 0000000000..097824d2e1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/k.java @@ -0,0 +1,19 @@ +package b.i.a.f.c.a.f.b; + +import b.i.a.f.c.a.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import b.i.a.f.e.h.j.d; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public abstract class k extends d { + public k(c cVar) { + super(a.f, cVar); + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: b.i.a.f.c.a.f.b.k */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // com.google.android.gms.common.api.internal.BasePendingResult, b.i.a.f.e.h.j.e + public /* bridge */ /* synthetic */ void b(Object obj) { + b((h) obj); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/l.java b/app/src/main/java/b/i/a/f/c/a/f/b/l.java new file mode 100644 index 0000000000..bba5ae5707 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/l.java @@ -0,0 +1,17 @@ +package b.i.a.f.c.a.f.b; + +import android.os.RemoteException; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class l extends c { + public final /* synthetic */ i a; + + public l(i iVar) { + this.a = iVar; + } + + @Override // b.i.a.f.c.a.f.b.c, b.i.a.f.c.a.f.b.n + public final void v(Status status) throws RemoteException { + this.a.b(status); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/m.java b/app/src/main/java/b/i/a/f/c/a/f/b/m.java new file mode 100644 index 0000000000..0e7b30c556 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/m.java @@ -0,0 +1,46 @@ +package b.i.a.f.c.a.f.b; + +import android.content.Context; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class m { + @Nullable + public static m a; + + /* renamed from: b reason: collision with root package name */ + public a f1323b; + + public m(Context context) { + a a2 = a.a(context); + this.f1323b = a2; + a2.b(); + this.f1323b.c(); + } + + public static synchronized m b(@NonNull Context context) { + m mVar; + synchronized (m.class) { + Context applicationContext = context.getApplicationContext(); + synchronized (m.class) { + mVar = a; + if (mVar == null) { + mVar = new m(applicationContext); + a = mVar; + } + } + return mVar; + } + return mVar; + } + + public final synchronized void a() { + a aVar = this.f1323b; + aVar.c.lock(); + try { + aVar.d.edit().clear().apply(); + } finally { + aVar.c.unlock(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/n.java b/app/src/main/java/b/i/a/f/c/a/f/b/n.java new file mode 100644 index 0000000000..d96ec7fc1b --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/n.java @@ -0,0 +1,11 @@ +package b.i.a.f.c.a.f.b; + +import android.os.IInterface; +import android.os.RemoteException; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public interface n extends IInterface { + void o(Status status) throws RemoteException; + + void v(Status status) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/o.java b/app/src/main/java/b/i/a/f/c/a/f/b/o.java new file mode 100644 index 0000000000..1297ac8c77 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/o.java @@ -0,0 +1,11 @@ +package b.i.a.f.c.a.f.b; + +import android.os.IInterface; +import android.os.RemoteException; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public interface o extends IInterface { + void a0(n nVar, GoogleSignInOptions googleSignInOptions) throws RemoteException; + + void n0(n nVar, GoogleSignInOptions googleSignInOptions) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/p.java b/app/src/main/java/b/i/a/f/c/a/f/b/p.java new file mode 100644 index 0000000000..86a6fe5911 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/p.java @@ -0,0 +1,34 @@ +package b.i.a.f.c.a.f.b; + +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.c.b; +import b.i.a.f.h.c.d; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public abstract class p extends b implements n { + public p() { + super("com.google.android.gms.auth.api.signin.internal.ISignInCallbacks"); + } + + @Override // b.i.a.f.h.c.b + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + switch (i) { + case 101: + GoogleSignInAccount googleSignInAccount = (GoogleSignInAccount) d.a(parcel, GoogleSignInAccount.CREATOR); + Status status = (Status) d.a(parcel, Status.CREATOR); + throw new UnsupportedOperationException(); + case 102: + o((Status) d.a(parcel, Status.CREATOR)); + break; + case 103: + v((Status) d.a(parcel, Status.CREATOR)); + break; + default: + return false; + } + parcel2.writeNoException(); + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/q.java b/app/src/main/java/b/i/a/f/c/a/f/b/q.java new file mode 100644 index 0000000000..8fdc6a84f8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/q.java @@ -0,0 +1,104 @@ +package b.i.a.f.c.a.f.b; + +import android.content.Context; +import android.os.Binder; +import android.os.IInterface; +import android.os.Parcel; +import b.c.a.a0.d; +import b.i.a.f.c.a.f.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.e; +import b.i.a.f.e.h.j.o; +import b.i.a.f.e.k.l; +import b.i.a.f.e.o.f; +import b.i.a.f.h.c.b; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.api.internal.BasePendingResult; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class q extends b implements IInterface { + public final Context a; + + public q(Context context) { + super("com.google.android.gms.auth.api.signin.internal.IRevocationService"); + this.a = context; + } + + @Override // b.i.a.f.h.c.b + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) { + BasePendingResult basePendingResult; + BasePendingResult basePendingResult2; + if (i == 1) { + g(); + a a = a.a(this.a); + GoogleSignInAccount b2 = a.b(); + GoogleSignInOptions googleSignInOptions = GoogleSignInOptions.n; + if (b2 != null) { + googleSignInOptions = a.c(); + } + Context context = this.a; + Objects.requireNonNull(googleSignInOptions, "null reference"); + a aVar = new a(context, googleSignInOptions); + if (b2 != null) { + c cVar = aVar.g; + Context context2 = aVar.a; + boolean z2 = aVar.f() == 3; + g.a.a("Revoking access", new Object[0]); + String g = a.a(context2).g("refreshToken"); + g.a(context2); + if (z2) { + b.i.a.f.e.l.a aVar2 = e.j; + if (g == null) { + Status status = new Status(4, null); + d.z(status, "Result must not be null"); + d.o(!status.w0(), "Status code must not be SUCCESS"); + basePendingResult2 = new e(null, status); + basePendingResult2.b(status); + } else { + e eVar = new e(g); + new Thread(eVar).start(); + basePendingResult2 = eVar.l; + } + } else { + basePendingResult2 = cVar.b(new i(cVar)); + } + l.a(basePendingResult2); + return true; + } + c cVar2 = aVar.g; + Context context3 = aVar.a; + boolean z3 = aVar.f() == 3; + g.a.a("Signing out", new Object[0]); + g.a(context3); + if (z3) { + Status status2 = Status.j; + d.z(status2, "Result must not be null"); + basePendingResult = new o(cVar2); + basePendingResult.b(status2); + } else { + basePendingResult = cVar2.b(new h(cVar2)); + } + l.a(basePendingResult); + return true; + } else if (i != 2) { + return false; + } else { + g(); + m.b(this.a).a(); + return true; + } + } + + public final void g() { + if (!f.B0(this.a, Binder.getCallingUid())) { + int callingUid = Binder.getCallingUid(); + StringBuilder sb = new StringBuilder(52); + sb.append("Calling UID "); + sb.append(callingUid); + sb.append(" is not Google Play services."); + throw new SecurityException(sb.toString()); + } + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/r.java b/app/src/main/java/b/i/a/f/c/a/f/b/r.java new file mode 100644 index 0000000000..bc44a5dcd4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/r.java @@ -0,0 +1,30 @@ +package b.i.a.f.c.a.f.b; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.c.c; +import b.i.a.f.h.c.d; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class r extends c implements o { + public r(IBinder iBinder) { + super(iBinder, "com.google.android.gms.auth.api.signin.internal.ISignInService"); + } + + @Override // b.i.a.f.c.a.f.b.o + public final void a0(n nVar, GoogleSignInOptions googleSignInOptions) throws RemoteException { + Parcel e = e(); + d.b(e, nVar); + d.c(e, googleSignInOptions); + g(103, e); + } + + @Override // b.i.a.f.c.a.f.b.o + public final void n0(n nVar, GoogleSignInOptions googleSignInOptions) throws RemoteException { + Parcel e = e(); + d.b(e, nVar); + d.c(e, googleSignInOptions); + g(102, e); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/b/s.java b/app/src/main/java/b/i/a/f/c/a/f/b/s.java new file mode 100644 index 0000000000..c067349f2d --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/b/s.java @@ -0,0 +1,36 @@ +package b.i.a.f.c.a.f.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import com.google.android.gms.auth.api.signin.internal.SignInConfiguration; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class s implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final SignInConfiguration createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + GoogleSignInOptions googleSignInOptions = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 2) { + str = d.Q(parcel, readInt); + } else if (i != 5) { + d.b2(parcel, readInt); + } else { + googleSignInOptions = (GoogleSignInOptions) d.P(parcel, readInt, GoogleSignInOptions.CREATOR); + } + } + d.e0(parcel, k2); + return new SignInConfiguration(str, googleSignInOptions); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ SignInConfiguration[] newArray(int i) { + return new SignInConfiguration[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/c.java b/app/src/main/java/b/i/a/f/c/a/f/c.java new file mode 100644 index 0000000000..4970270af2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/c.java @@ -0,0 +1,16 @@ +package b.i.a.f.c.a.f; + +import android.os.Parcelable; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.common.api.Scope; +import java.util.Comparator; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final /* synthetic */ class c implements Comparator { + public static final Comparator j = new c(); + + @Override // java.util.Comparator + public final int compare(Object obj, Object obj2) { + Parcelable.Creator creator = GoogleSignInAccount.CREATOR; + return ((Scope) obj).k.compareTo(((Scope) obj2).k); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/d.java b/app/src/main/java/b/i/a/f/c/a/f/d.java new file mode 100644 index 0000000000..912057e78f --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/d.java @@ -0,0 +1,80 @@ +package b.i.a.f.c.a.f; + +import android.net.Uri; +import android.os.Parcel; +import android.os.Parcelable; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.common.api.Scope; +import java.util.ArrayList; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class d implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final GoogleSignInAccount createFromParcel(Parcel parcel) { + int k2 = b.c.a.a0.d.k2(parcel); + String str = null; + String str2 = null; + String str3 = null; + String str4 = null; + Uri uri = null; + String str5 = null; + String str6 = null; + ArrayList arrayList = null; + String str7 = null; + String str8 = null; + long j = 0; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = b.c.a.a0.d.E1(parcel, readInt); + break; + case 2: + str = b.c.a.a0.d.Q(parcel, readInt); + break; + case 3: + str2 = b.c.a.a0.d.Q(parcel, readInt); + break; + case 4: + str3 = b.c.a.a0.d.Q(parcel, readInt); + break; + case 5: + str4 = b.c.a.a0.d.Q(parcel, readInt); + break; + case 6: + uri = (Uri) b.c.a.a0.d.P(parcel, readInt, Uri.CREATOR); + break; + case 7: + str5 = b.c.a.a0.d.Q(parcel, readInt); + break; + case 8: + j = b.c.a.a0.d.F1(parcel, readInt); + break; + case 9: + str6 = b.c.a.a0.d.Q(parcel, readInt); + break; + case 10: + arrayList = b.c.a.a0.d.U(parcel, readInt, Scope.CREATOR); + break; + case 11: + str7 = b.c.a.a0.d.Q(parcel, readInt); + break; + case 12: + str8 = b.c.a.a0.d.Q(parcel, readInt); + break; + default: + b.c.a.a0.d.b2(parcel, readInt); + break; + } + } + b.c.a.a0.d.e0(parcel, k2); + return new GoogleSignInAccount(i, str, str2, str3, str4, uri, str5, j, str6, arrayList, str7, str8); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ GoogleSignInAccount[] newArray(int i) { + return new GoogleSignInAccount[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/e.java b/app/src/main/java/b/i/a/f/c/a/f/e.java new file mode 100644 index 0000000000..eab028e5ae --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/e.java @@ -0,0 +1,12 @@ +package b.i.a.f.c.a.f; + +import com.google.android.gms.common.api.Scope; +import java.util.Comparator; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class e implements Comparator { + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public final int compare(Scope scope, Scope scope2) { + return scope.k.compareTo(scope2.k); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/f.java b/app/src/main/java/b/i/a/f/c/a/f/f.java new file mode 100644 index 0000000000..882664891c --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/f.java @@ -0,0 +1,74 @@ +package b.i.a.f.c.a.f; + +import android.accounts.Account; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +import com.google.android.gms.auth.api.signin.internal.GoogleSignInOptionsExtensionParcelable; +import com.google.android.gms.common.api.Scope; +import java.util.ArrayList; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class f implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final GoogleSignInOptions createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + ArrayList arrayList = null; + ArrayList arrayList2 = null; + Account account = null; + String str = null; + String str2 = null; + String str3 = null; + int i = 0; + boolean z2 = false; + boolean z3 = false; + boolean z4 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + arrayList2 = d.U(parcel, readInt, Scope.CREATOR); + break; + case 3: + account = (Account) d.P(parcel, readInt, Account.CREATOR); + break; + case 4: + z2 = d.C1(parcel, readInt); + break; + case 5: + z3 = d.C1(parcel, readInt); + break; + case 6: + z4 = d.C1(parcel, readInt); + break; + case 7: + str = d.Q(parcel, readInt); + break; + case 8: + str2 = d.Q(parcel, readInt); + break; + case 9: + arrayList = d.U(parcel, readInt, GoogleSignInOptionsExtensionParcelable.CREATOR); + break; + case 10: + str3 = d.Q(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new GoogleSignInOptions(i, arrayList2, account, z2, z3, z4, str, str2, GoogleSignInOptions.y0(arrayList), str3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ GoogleSignInOptions[] newArray(int i) { + return new GoogleSignInOptions[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/f/g.java b/app/src/main/java/b/i/a/f/c/a/f/g.java new file mode 100644 index 0000000000..e2ac9f1537 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/f/g.java @@ -0,0 +1,39 @@ +package b.i.a.f.c.a.f; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.auth.api.signin.SignInAccount; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class g implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final SignInAccount createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = ""; + GoogleSignInAccount googleSignInAccount = null; + String str2 = str; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 4) { + str = d.Q(parcel, readInt); + } else if (i == 7) { + googleSignInAccount = (GoogleSignInAccount) d.P(parcel, readInt, GoogleSignInAccount.CREATOR); + } else if (i != 8) { + d.b2(parcel, readInt); + } else { + str2 = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new SignInAccount(str, googleSignInAccount, str2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ SignInAccount[] newArray(int i) { + return new SignInAccount[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/g.java b/app/src/main/java/b/i/a/f/c/a/g.java new file mode 100644 index 0000000000..6312c1879e --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/g.java @@ -0,0 +1,15 @@ +package b.i.a.f.c.a; + +import android.content.Context; +import android.os.Looper; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +public final class g extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.c$a, b.i.a.f.e.h.c$b] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final /* synthetic */ b.i.a.f.h.d.a a(Context context, Looper looper, c cVar, c cVar2, c.a aVar, c.b bVar) { + return new b.i.a.f.h.d.a(context, looper, cVar, cVar2, aVar, bVar); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/h.java b/app/src/main/java/b/i/a/f/c/a/h.java new file mode 100644 index 0000000000..532387ccba --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/h.java @@ -0,0 +1,18 @@ +package b.i.a.f.c.a; + +import android.content.Context; +import android.os.Looper; +import b.i.a.f.c.a.a; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +import b.i.a.f.h.c.o; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class h extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.c$a, b.i.a.f.e.h.c$b] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final /* synthetic */ o a(Context context, Looper looper, c cVar, a.C0101a aVar, c.a aVar2, c.b bVar) { + return new o(context, looper, cVar, aVar, aVar2, bVar); + } +} diff --git a/app/src/main/java/b/i/a/f/c/a/i.java b/app/src/main/java/b/i/a/f/c/a/i.java new file mode 100644 index 0000000000..9c58e110e4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/c/a/i.java @@ -0,0 +1,19 @@ +package b.i.a.f.c.a; + +import android.content.Context; +import android.os.Looper; +import androidx.annotation.Nullable; +import b.i.a.f.c.a.f.b.f; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +import com.google.android.gms.auth.api.signin.GoogleSignInOptions; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class i extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.c$a, b.i.a.f.e.h.c$b] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final /* synthetic */ f a(Context context, Looper looper, c cVar, @Nullable GoogleSignInOptions googleSignInOptions, c.a aVar, c.b bVar) { + return new f(context, looper, cVar, googleSignInOptions, aVar, bVar); + } +} diff --git a/app/src/main/java/b/i/a/f/d/a.java b/app/src/main/java/b/i/a/f/d/a.java new file mode 100644 index 0000000000..7405d1eaee --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/a.java @@ -0,0 +1,111 @@ +package b.i.a.f.d; + +import android.app.PendingIntent; +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.f; +import com.google.android.gms.cloudmessaging.CloudMessage; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public abstract class a extends BroadcastReceiver { + public final ExecutorService a; + + public a() { + ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 60, TimeUnit.SECONDS, new LinkedBlockingQueue(), new b.i.a.f.e.o.j.a("firebase-iid-executor")); + threadPoolExecutor.allowCoreThreadTimeOut(true); + this.a = Executors.unconfigurableExecutorService(threadPoolExecutor); + } + + @WorkerThread + public final int a(@NonNull Context context, @NonNull Intent intent) { + PendingIntent pendingIntent = (PendingIntent) intent.getParcelableExtra("pending_intent"); + if (pendingIntent != null) { + try { + pendingIntent.send(); + } catch (PendingIntent.CanceledException unused) { + Log.e("CloudMessagingReceiver", "Notification pending intent canceled"); + } + } + Bundle extras = intent.getExtras(); + if (extras != null) { + extras.remove("pending_intent"); + } else { + extras = new Bundle(); + } + if ("com.google.firebase.messaging.NOTIFICATION_OPEN".equals(intent.getAction())) { + try { + f.i(new b.i.c.s.f(context).b(new Intent("com.google.firebase.messaging.NOTIFICATION_OPEN").putExtras(extras))); + return -1; + } catch (InterruptedException | ExecutionException e) { + Log.e("FirebaseInstanceId", "Failed to send notification open event to service.", e); + return -1; + } + } else if ("com.google.firebase.messaging.NOTIFICATION_DISMISS".equals(intent.getAction())) { + try { + f.i(new b.i.c.s.f(context).b(new Intent("com.google.firebase.messaging.NOTIFICATION_DISMISS").putExtras(extras))); + return -1; + } catch (InterruptedException | ExecutionException e2) { + Log.e("FirebaseInstanceId", "Failed to send notification dismissed event to service.", e2); + return -1; + } + } else { + Log.e("CloudMessagingReceiver", "Unknown notification action"); + return 500; + } + } + + @WorkerThread + public final int b(@NonNull Context context, @NonNull Intent intent) { + Task task; + int i; + int i2 = 500; + if (intent.getExtras() == null) { + return 500; + } + String stringExtra = intent.getStringExtra("google.message_id"); + if (TextUtils.isEmpty(stringExtra)) { + task = f.Y(null); + } else { + Bundle bundle = new Bundle(); + bundle.putString("google.message_id", stringExtra); + f a = f.a(context); + synchronized (a) { + i = a.e; + a.e = i + 1; + } + task = a.b(new o(i, bundle)); + } + try { + i2 = ((Integer) f.i(new b.i.c.s.f(context).b(new CloudMessage(intent).j))).intValue(); + } catch (InterruptedException | ExecutionException e) { + Log.e("FirebaseInstanceId", "Failed to send message to service.", e); + } + try { + f.j(task, TimeUnit.SECONDS.toMillis(1), TimeUnit.MILLISECONDS); + } catch (InterruptedException | ExecutionException | TimeoutException e2) { + String valueOf = String.valueOf(e2); + b.d.b.a.a.f0(valueOf.length() + 20, "Message ack failed: ", valueOf, "CloudMessagingReceiver"); + } + return i2; + } + + @Override // android.content.BroadcastReceiver + public final void onReceive(@NonNull Context context, @NonNull Intent intent) { + if (intent != null) { + this.a.execute(new e(this, intent, context, isOrderedBroadcast(), goAsync())); + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/b.java b/app/src/main/java/b/i/a/f/d/b.java new file mode 100644 index 0000000000..801b99ca2a --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/b.java @@ -0,0 +1,135 @@ +package b.i.a.f.d; + +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.os.Looper; +import android.os.Message; +import android.os.Messenger; +import android.os.RemoteException; +import android.util.Log; +import androidx.annotation.AnyThread; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.collection.SimpleArrayMap; +import b.d.b.a.a; +import b.i.a.f.n.b0; +import b.i.a.f.n.q; +import com.google.android.gms.cloudmessaging.zza; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public class b { + public static int a; + + /* renamed from: b reason: collision with root package name */ + public static PendingIntent f1324b; + public final SimpleArrayMap> c = new SimpleArrayMap<>(); + public final Context d; + public final r e; + public final ScheduledExecutorService f; + public Messenger g; + public Messenger h; + public zza i; + + public b(@NonNull Context context) { + this.d = context; + this.e = new r(context); + this.g = new Messenger(new y(this, Looper.getMainLooper())); + ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(1); + scheduledThreadPoolExecutor.setKeepAliveTime(60, TimeUnit.SECONDS); + scheduledThreadPoolExecutor.allowCoreThreadTimeOut(true); + this.f = scheduledThreadPoolExecutor; + } + + public final void a(String str, @Nullable Bundle bundle) { + synchronized (this.c) { + TaskCompletionSource remove = this.c.remove(str); + if (remove == null) { + String valueOf = String.valueOf(str); + Log.w("Rpc", valueOf.length() != 0 ? "Missing callback for ".concat(valueOf) : new String("Missing callback for ")); + return; + } + remove.a.t(bundle); + } + } + + @AnyThread + public final Task b(Bundle bundle) { + String num; + synchronized (b.class) { + int i = a; + a = i + 1; + num = Integer.toString(i); + } + TaskCompletionSource taskCompletionSource = new TaskCompletionSource<>(); + synchronized (this.c) { + this.c.put(num, taskCompletionSource); + } + Intent intent = new Intent(); + intent.setPackage("com.google.android.gms"); + if (this.e.a() == 2) { + intent.setAction("com.google.iid.TOKEN_REQUEST"); + } else { + intent.setAction("com.google.android.c2dm.intent.REGISTER"); + } + intent.putExtras(bundle); + Context context = this.d; + synchronized (b.class) { + if (f1324b == null) { + Intent intent2 = new Intent(); + intent2.setPackage("com.google.example.invalidpackage"); + f1324b = PendingIntent.getBroadcast(context, 0, intent2, 0); + } + intent.putExtra("app", f1324b); + } + intent.putExtra("kid", a.j(a.b(num, 5), "|ID|", num, "|")); + if (Log.isLoggable("Rpc", 3)) { + String valueOf = String.valueOf(intent.getExtras()); + StringBuilder sb = new StringBuilder(valueOf.length() + 8); + sb.append("Sending "); + sb.append(valueOf); + Log.d("Rpc", sb.toString()); + } + intent.putExtra("google.messenger", this.g); + if (!(this.h == null && this.i == null)) { + Message obtain = Message.obtain(); + obtain.obj = intent; + try { + Messenger messenger = this.h; + if (messenger != null) { + messenger.send(obtain); + } else { + Messenger messenger2 = this.i.j; + Objects.requireNonNull(messenger2); + messenger2.send(obtain); + } + } catch (RemoteException unused) { + if (Log.isLoggable("Rpc", 3)) { + Log.d("Rpc", "Messenger failed, fallback to startService"); + } + } + ScheduledFuture schedule = this.f.schedule(new u(taskCompletionSource), 30, TimeUnit.SECONDS); + b0 b0Var = taskCompletionSource.a; + b0Var.f1577b.b(new q(z.j, new x(this, num, schedule))); + b0Var.w(); + return taskCompletionSource.a; + } + if (this.e.a() == 2) { + this.d.sendBroadcast(intent); + } else { + this.d.startService(intent); + } + ScheduledFuture schedule = this.f.schedule(new u(taskCompletionSource), 30, TimeUnit.SECONDS); + b0 b0Var = taskCompletionSource.a; + b0Var.f1577b.b(new q(z.j, new x(this, num, schedule))); + b0Var.w(); + return taskCompletionSource.a; + } +} diff --git a/app/src/main/java/b/i/a/f/d/c.java b/app/src/main/java/b/i/a/f/d/c.java new file mode 100644 index 0000000000..cc76d053c0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/c.java @@ -0,0 +1,32 @@ +package b.i.a.f.d; + +import android.content.Intent; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.cloudmessaging.CloudMessage; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class c implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final CloudMessage createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Intent intent = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 1) { + d.b2(parcel, readInt); + } else { + intent = (Intent) d.P(parcel, readInt, Intent.CREATOR); + } + } + d.e0(parcel, k2); + return new CloudMessage(intent); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ CloudMessage[] newArray(int i) { + return new CloudMessage[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/d/d.java b/app/src/main/java/b/i/a/f/d/d.java new file mode 100644 index 0000000000..00c1398a48 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/d.java @@ -0,0 +1,19 @@ +package b.i.a.f.d; + +import android.os.Parcel; +import android.os.Parcelable; +import com.google.android.gms.cloudmessaging.zza; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class d implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zza createFromParcel(Parcel parcel) { + return new zza(parcel.readStrongBinder()); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zza[] newArray(int i) { + return new zza[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/d/e.java b/app/src/main/java/b/i/a/f/d/e.java new file mode 100644 index 0000000000..16f01c3af1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/e.java @@ -0,0 +1,43 @@ +package b.i.a.f.d; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.os.Parcelable; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class e implements Runnable { + public final a j; + public final Intent k; + public final Context l; + public final boolean m; + public final BroadcastReceiver.PendingResult n; + + public e(a aVar, Intent intent, Context context, boolean z2, BroadcastReceiver.PendingResult pendingResult) { + this.j = aVar; + this.k = intent; + this.l = context; + this.m = z2; + this.n = pendingResult; + } + + @Override // java.lang.Runnable + public final void run() { + a aVar = this.j; + Intent intent = this.k; + Context context = this.l; + boolean z2 = this.m; + BroadcastReceiver.PendingResult pendingResult = this.n; + Objects.requireNonNull(aVar); + try { + Parcelable parcelableExtra = intent.getParcelableExtra("wrapped_intent"); + Intent intent2 = parcelableExtra instanceof Intent ? (Intent) parcelableExtra : null; + int a = intent2 != null ? aVar.a(context, intent2) : aVar.b(context, intent); + if (z2) { + pendingResult.setResultCode(a); + } + } finally { + pendingResult.finish(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/f.java b/app/src/main/java/b/i/a/f/d/f.java new file mode 100644 index 0000000000..4b43b2af0f --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/f.java @@ -0,0 +1,54 @@ +package b.i.a.f.d; + +import android.content.Context; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.i.a.f.e.o.j.a; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class f { + @Nullable + public static f a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1325b; + public final ScheduledExecutorService c; + public g d = new g(this, null); + public int e = 1; + + @VisibleForTesting + public f(Context context, ScheduledExecutorService scheduledExecutorService) { + this.c = scheduledExecutorService; + this.f1325b = context.getApplicationContext(); + } + + public static synchronized f a(Context context) { + f fVar; + synchronized (f.class) { + if (a == null) { + a = new f(context, Executors.unconfigurableScheduledExecutorService(Executors.newScheduledThreadPool(1, new a("MessengerIpcClient")))); + } + fVar = a; + } + return fVar; + } + + public final synchronized Task b(q qVar) { + if (Log.isLoggable("MessengerIpcClient", 3)) { + String valueOf = String.valueOf(qVar); + StringBuilder sb = new StringBuilder(valueOf.length() + 9); + sb.append("Queueing "); + sb.append(valueOf); + Log.d("MessengerIpcClient", sb.toString()); + } + if (!this.d.b(qVar)) { + g gVar = new g(this, null); + this.d = gVar; + gVar.b(qVar); + } + return qVar.f1327b.a; + } +} diff --git a/app/src/main/java/b/i/a/f/d/g.java b/app/src/main/java/b/i/a/f/d/g.java new file mode 100644 index 0000000000..8bc8052ea3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/g.java @@ -0,0 +1,131 @@ +package b.i.a.f.d; + +import android.content.ComponentName; +import android.content.Intent; +import android.content.ServiceConnection; +import android.os.IBinder; +import android.os.Looper; +import android.os.Messenger; +import android.util.Log; +import android.util.SparseArray; +import androidx.annotation.MainThread; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.f.h.f.a; +import com.google.android.gms.cloudmessaging.zzp; +import java.util.ArrayDeque; +import java.util.Queue; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class g implements ServiceConnection { + public int j = 0; + public final Messenger k = new Messenger(new a(Looper.getMainLooper(), new j(this))); + public p l; + public final Queue> m = new ArrayDeque(); + public final SparseArray> n = new SparseArray<>(); + public final /* synthetic */ f o; + + public g(f fVar, h hVar) { + this.o = fVar; + } + + public final synchronized void a(int i, @Nullable String str) { + if (Log.isLoggable("MessengerIpcClient", 3)) { + String valueOf = String.valueOf(str); + Log.d("MessengerIpcClient", valueOf.length() != 0 ? "Disconnected: ".concat(valueOf) : new String("Disconnected: ")); + } + int i2 = this.j; + if (i2 == 0) { + throw new IllegalStateException(); + } else if (i2 == 1 || i2 == 2) { + if (Log.isLoggable("MessengerIpcClient", 2)) { + Log.v("MessengerIpcClient", "Unbinding service"); + } + this.j = 4; + b.i.a.f.e.n.a.b().c(this.o.f1325b, this); + zzp zzp = new zzp(i, str); + for (q qVar : this.m) { + qVar.b(zzp); + } + this.m.clear(); + for (int i3 = 0; i3 < this.n.size(); i3++) { + this.n.valueAt(i3).b(zzp); + } + this.n.clear(); + } else if (i2 == 3) { + this.j = 4; + } else if (i2 != 4) { + int i4 = this.j; + StringBuilder sb = new StringBuilder(26); + sb.append("Unknown state: "); + sb.append(i4); + throw new IllegalStateException(sb.toString()); + } + } + + public final synchronized boolean b(q qVar) { + int i = this.j; + if (i == 0) { + this.m.add(qVar); + d.F(this.j == 0); + if (Log.isLoggable("MessengerIpcClient", 2)) { + Log.v("MessengerIpcClient", "Starting bind to GmsCore"); + } + this.j = 1; + Intent intent = new Intent("com.google.android.c2dm.intent.REGISTER"); + intent.setPackage("com.google.android.gms"); + if (!b.i.a.f.e.n.a.b().a(this.o.f1325b, intent, this, 1)) { + a(0, "Unable to bind to service"); + } else { + this.o.c.schedule(new i(this), 30, TimeUnit.SECONDS); + } + return true; + } else if (i == 1) { + this.m.add(qVar); + return true; + } else if (i != 2) { + if (i != 3) { + if (i != 4) { + int i2 = this.j; + StringBuilder sb = new StringBuilder(26); + sb.append("Unknown state: "); + sb.append(i2); + throw new IllegalStateException(sb.toString()); + } + } + return false; + } else { + this.m.add(qVar); + this.o.c.execute(new k(this)); + return true; + } + } + + public final synchronized void c() { + if (this.j == 2 && this.m.isEmpty() && this.n.size() == 0) { + if (Log.isLoggable("MessengerIpcClient", 2)) { + Log.v("MessengerIpcClient", "Finished handling requests, unbinding"); + } + this.j = 3; + b.i.a.f.e.n.a.b().c(this.o.f1325b, this); + } + } + + @Override // android.content.ServiceConnection + @MainThread + public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { + if (Log.isLoggable("MessengerIpcClient", 2)) { + Log.v("MessengerIpcClient", "Service connected"); + } + this.o.c.execute(new l(this, iBinder)); + } + + @Override // android.content.ServiceConnection + @MainThread + public final void onServiceDisconnected(ComponentName componentName) { + if (Log.isLoggable("MessengerIpcClient", 2)) { + Log.v("MessengerIpcClient", "Service disconnected"); + } + this.o.c.execute(new n(this)); + } +} diff --git a/app/src/main/java/b/i/a/f/d/i.java b/app/src/main/java/b/i/a/f/d/i.java new file mode 100644 index 0000000000..7a67293b64 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/i.java @@ -0,0 +1,19 @@ +package b.i.a.f.d; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class i implements Runnable { + public final g j; + + public i(g gVar) { + this.j = gVar; + } + + @Override // java.lang.Runnable + public final void run() { + g gVar = this.j; + synchronized (gVar) { + if (gVar.j == 1) { + gVar.a(1, "Timed out while binding"); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/j.java b/app/src/main/java/b/i/a/f/d/j.java new file mode 100644 index 0000000000..09aeafb15e --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/j.java @@ -0,0 +1,49 @@ +package b.i.a.f.d; + +import android.os.Bundle; +import android.os.Handler; +import android.os.Message; +import android.util.Log; +import com.google.android.gms.cloudmessaging.zzp; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class j implements Handler.Callback { + public final g j; + + public j(g gVar) { + this.j = gVar; + } + + @Override // android.os.Handler.Callback + public final boolean handleMessage(Message message) { + q qVar; + g gVar = this.j; + Objects.requireNonNull(gVar); + int i = message.arg1; + if (Log.isLoggable("MessengerIpcClient", 3)) { + StringBuilder sb = new StringBuilder(41); + sb.append("Received response to request: "); + sb.append(i); + Log.d("MessengerIpcClient", sb.toString()); + } + synchronized (gVar) { + qVar = gVar.n.get(i); + if (qVar == null) { + StringBuilder sb2 = new StringBuilder(50); + sb2.append("Received response for unknown request: "); + sb2.append(i); + Log.w("MessengerIpcClient", sb2.toString()); + return true; + } + gVar.n.remove(i); + gVar.c(); + } + Bundle data = message.getData(); + if (data.getBoolean("unsupported", false)) { + qVar.b(new zzp(4, "Not supported by GmsCore")); + return true; + } + qVar.a(data); + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/d/k.java b/app/src/main/java/b/i/a/f/d/k.java new file mode 100644 index 0000000000..0be6c5b6e2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/k.java @@ -0,0 +1,76 @@ +package b.i.a.f.d; + +import android.content.Context; +import android.os.Bundle; +import android.os.Message; +import android.os.Messenger; +import android.os.RemoteException; +import android.util.Log; +import com.google.android.gms.cloudmessaging.zza; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class k implements Runnable { + public final g j; + + public k(g gVar) { + this.j = gVar; + } + + @Override // java.lang.Runnable + public final void run() { + q poll; + g gVar = this.j; + while (true) { + synchronized (gVar) { + if (gVar.j == 2) { + if (gVar.m.isEmpty()) { + gVar.c(); + return; + } + poll = gVar.m.poll(); + gVar.n.put(poll.a, poll); + gVar.o.c.schedule(new m(gVar, poll), 30, TimeUnit.SECONDS); + } else { + return; + } + } + if (Log.isLoggable("MessengerIpcClient", 3)) { + String valueOf = String.valueOf(poll); + StringBuilder sb = new StringBuilder(valueOf.length() + 8); + sb.append("Sending "); + sb.append(valueOf); + Log.d("MessengerIpcClient", sb.toString()); + } + Context context = gVar.o.f1325b; + Messenger messenger = gVar.k; + Message obtain = Message.obtain(); + obtain.what = poll.c; + obtain.arg1 = poll.a; + obtain.replyTo = messenger; + Bundle bundle = new Bundle(); + bundle.putBoolean("oneWay", poll.d()); + bundle.putString("pkg", context.getPackageName()); + bundle.putBundle("data", poll.d); + obtain.setData(bundle); + try { + p pVar = gVar.l; + Messenger messenger2 = pVar.a; + if (messenger2 != null) { + messenger2.send(obtain); + } else { + zza zza = pVar.f1326b; + if (zza != null) { + Messenger messenger3 = zza.j; + Objects.requireNonNull(messenger3); + messenger3.send(obtain); + } else { + throw new IllegalStateException("Both messengers are null"); + } + } + } catch (RemoteException e) { + gVar.a(2, e.getMessage()); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/l.java b/app/src/main/java/b/i/a/f/d/l.java new file mode 100644 index 0000000000..49aa1e47b3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/l.java @@ -0,0 +1,33 @@ +package b.i.a.f.d; + +import android.os.IBinder; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class l implements Runnable { + public final g j; + public final IBinder k; + + public l(g gVar, IBinder iBinder) { + this.j = gVar; + this.k = iBinder; + } + + @Override // java.lang.Runnable + public final void run() { + g gVar = this.j; + IBinder iBinder = this.k; + synchronized (gVar) { + if (iBinder == null) { + gVar.a(0, "Null service connection"); + return; + } + try { + gVar.l = new p(iBinder); + gVar.j = 2; + gVar.o.c.execute(new k(gVar)); + } catch (RemoteException e) { + gVar.a(0, e.getMessage()); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/m.java b/app/src/main/java/b/i/a/f/d/m.java new file mode 100644 index 0000000000..5180bbfa7f --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/m.java @@ -0,0 +1,32 @@ +package b.i.a.f.d; + +import android.util.Log; +import com.google.android.gms.cloudmessaging.zzp; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class m implements Runnable { + public final g j; + public final q k; + + public m(g gVar, q qVar) { + this.j = gVar; + this.k = qVar; + } + + @Override // java.lang.Runnable + public final void run() { + g gVar = this.j; + int i = this.k.a; + synchronized (gVar) { + q qVar = gVar.n.get(i); + if (qVar != null) { + StringBuilder sb = new StringBuilder(31); + sb.append("Timing out request: "); + sb.append(i); + Log.w("MessengerIpcClient", sb.toString()); + gVar.n.remove(i); + qVar.b(new zzp(3, "Timed out waiting for response")); + gVar.c(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/n.java b/app/src/main/java/b/i/a/f/d/n.java new file mode 100644 index 0000000000..4eda38c10a --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/n.java @@ -0,0 +1,14 @@ +package b.i.a.f.d; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class n implements Runnable { + public final g j; + + public n(g gVar) { + this.j = gVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.a(2, "Service disconnected"); + } +} diff --git a/app/src/main/java/b/i/a/f/d/o.java b/app/src/main/java/b/i/a/f/d/o.java new file mode 100644 index 0000000000..6521ca5a34 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/o.java @@ -0,0 +1,24 @@ +package b.i.a.f.d; + +import android.os.Bundle; +import com.google.android.gms.cloudmessaging.zzp; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class o extends q { + public o(int i, Bundle bundle) { + super(i, 2, bundle); + } + + @Override // b.i.a.f.d.q + public final void a(Bundle bundle) { + if (bundle.getBoolean("ack", false)) { + c(null); + } else { + b(new zzp(4, "Invalid response to one way request")); + } + } + + @Override // b.i.a.f.d.q + public final boolean d() { + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/d/p.java b/app/src/main/java/b/i/a/f/d/p.java new file mode 100644 index 0000000000..33f0df0332 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/p.java @@ -0,0 +1,32 @@ +package b.i.a.f.d; + +import android.os.IBinder; +import android.os.Messenger; +import android.os.RemoteException; +import android.util.Log; +import androidx.annotation.Nullable; +import com.google.android.gms.cloudmessaging.zza; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class p { + @Nullable + public final Messenger a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final zza f1326b; + + public p(IBinder iBinder) throws RemoteException { + String interfaceDescriptor = iBinder.getInterfaceDescriptor(); + if ("android.os.IMessenger".equals(interfaceDescriptor)) { + this.a = new Messenger(iBinder); + this.f1326b = null; + } else if ("com.google.android.gms.iid.IMessengerCompat".equals(interfaceDescriptor)) { + this.f1326b = new zza(iBinder); + this.a = null; + } else { + String valueOf = String.valueOf(interfaceDescriptor); + Log.w("MessengerIpcClient", valueOf.length() != 0 ? "Invalid interface descriptor: ".concat(valueOf) : new String("Invalid interface descriptor: ")); + throw new RemoteException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/q.java b/app/src/main/java/b/i/a/f/d/q.java new file mode 100644 index 0000000000..96d609e55b --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/q.java @@ -0,0 +1,55 @@ +package b.i.a.f.d; + +import android.os.Bundle; +import android.util.Log; +import b.d.b.a.a; +import com.google.android.gms.cloudmessaging.zzp; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public abstract class q { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final TaskCompletionSource f1327b = new TaskCompletionSource<>(); + public final int c; + public final Bundle d; + + public q(int i, int i2, Bundle bundle) { + this.a = i; + this.c = i2; + this.d = bundle; + } + + public abstract void a(Bundle bundle); + + public final void b(zzp zzp) { + if (Log.isLoggable("MessengerIpcClient", 3)) { + String valueOf = String.valueOf(this); + String valueOf2 = String.valueOf(zzp); + Log.d("MessengerIpcClient", a.k(valueOf2.length() + valueOf.length() + 14, "Failing ", valueOf, " with ", valueOf2)); + } + this.f1327b.a.s(zzp); + } + + public final void c(T t) { + if (Log.isLoggable("MessengerIpcClient", 3)) { + String valueOf = String.valueOf(this); + String valueOf2 = String.valueOf(t); + Log.d("MessengerIpcClient", a.k(valueOf2.length() + valueOf.length() + 16, "Finishing ", valueOf, " with ", valueOf2)); + } + this.f1327b.a.t(t); + } + + public abstract boolean d(); + + public String toString() { + int i = this.c; + int i2 = this.a; + boolean d = d(); + StringBuilder O = a.O(55, "Request { what=", i, " id=", i2); + O.append(" oneWay="); + O.append(d); + O.append("}"); + return O.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/d/r.java b/app/src/main/java/b/i/a/f/d/r.java new file mode 100644 index 0000000000..41fb53e6e1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/r.java @@ -0,0 +1,71 @@ +package b.i.a.f.d; + +import android.content.Context; +import android.content.Intent; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; +import android.util.Log; +import androidx.annotation.Nullable; +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import b.i.a.f.e.p.b; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class r { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public int f1328b; + public int c = 0; + + public r(Context context) { + this.a = context; + } + + public final synchronized int a() { + int i = this.c; + if (i != 0) { + return i; + } + PackageManager packageManager = this.a.getPackageManager(); + if (b.a(this.a).a.getPackageManager().checkPermission("com.google.android.c2dm.permission.SEND", "com.google.android.gms") == -1) { + Log.e("Metadata", "Google Play services missing or without correct permission."); + return 0; + } + if (!f.y0()) { + Intent intent = new Intent("com.google.android.c2dm.intent.REGISTER"); + intent.setPackage("com.google.android.gms"); + List queryIntentServices = packageManager.queryIntentServices(intent, 0); + if (queryIntentServices != null && queryIntentServices.size() > 0) { + this.c = 1; + return 1; + } + } + Intent intent2 = new Intent("com.google.iid.TOKEN_REQUEST"); + intent2.setPackage("com.google.android.gms"); + List queryBroadcastReceivers = packageManager.queryBroadcastReceivers(intent2, 0); + if (queryBroadcastReceivers == null || queryBroadcastReceivers.size() <= 0) { + Log.w("Metadata", "Failed to resolve IID implementation package, falling back"); + if (f.y0()) { + this.c = 2; + } else { + this.c = 1; + } + return this.c; + } + this.c = 2; + return 2; + } + + @Nullable + public final PackageInfo b(String str) { + try { + return b.a(this.a).a.getPackageManager().getPackageInfo(str, 0); + } catch (PackageManager.NameNotFoundException e) { + String valueOf = String.valueOf(e); + a.f0(valueOf.length() + 23, "Failed to find package ", valueOf, "Metadata"); + return null; + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/s.java b/app/src/main/java/b/i/a/f/d/s.java new file mode 100644 index 0000000000..3201c07785 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/s.java @@ -0,0 +1,23 @@ +package b.i.a.f.d; + +import android.os.Bundle; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class s extends q { + public s(int i, Bundle bundle) { + super(i, 1, bundle); + } + + @Override // b.i.a.f.d.q + public final void a(Bundle bundle) { + Bundle bundle2 = bundle.getBundle("data"); + if (bundle2 == null) { + bundle2 = Bundle.EMPTY; + } + c(bundle2); + } + + @Override // b.i.a.f.d.q + public final boolean d() { + return false; + } +} diff --git a/app/src/main/java/b/i/a/f/d/t.java b/app/src/main/java/b/i/a/f/d/t.java new file mode 100644 index 0000000000..458528d8f0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/t.java @@ -0,0 +1,27 @@ +package b.i.a.f.d; + +import android.os.Bundle; +import android.util.Log; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +import java.io.IOException; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class t implements a { + public static final a a = new t(); + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + int i = b.a; + if (task.p()) { + return (Bundle) task.l(); + } + if (Log.isLoggable("Rpc", 3)) { + String valueOf = String.valueOf(task.k()); + StringBuilder sb = new StringBuilder(valueOf.length() + 22); + sb.append("Error making request: "); + sb.append(valueOf); + Log.d("Rpc", sb.toString()); + } + throw new IOException("SERVICE_NOT_AVAILABLE", task.k()); + } +} diff --git a/app/src/main/java/b/i/a/f/d/u.java b/app/src/main/java/b/i/a/f/d/u.java new file mode 100644 index 0000000000..3754fa5df5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/u.java @@ -0,0 +1,20 @@ +package b.i.a.f.d; + +import android.util.Log; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.io.IOException; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class u implements Runnable { + public final TaskCompletionSource j; + + public u(TaskCompletionSource taskCompletionSource) { + this.j = taskCompletionSource; + } + + @Override // java.lang.Runnable + public final void run() { + if (this.j.a(new IOException("TIMEOUT"))) { + Log.w("Rpc", "No response"); + } + } +} diff --git a/app/src/main/java/b/i/a/f/d/v.java b/app/src/main/java/b/i/a/f/d/v.java new file mode 100644 index 0000000000..5c9aa6216d --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/v.java @@ -0,0 +1,30 @@ +package b.i.a.f.d; + +import android.os.Bundle; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class v implements a { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final Bundle f1329b; + + public v(b bVar, Bundle bundle) { + this.a = bVar; + this.f1329b = bundle; + } + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + b bVar = this.a; + Bundle bundle = this.f1329b; + Objects.requireNonNull(bVar); + if (!task.p()) { + return task; + } + Bundle bundle2 = (Bundle) task.l(); + return !(bundle2 != null && bundle2.containsKey("google.messenger")) ? task : bVar.b(bundle).r(z.j, w.a); + } +} diff --git a/app/src/main/java/b/i/a/f/d/w.java b/app/src/main/java/b/i/a/f/d/w.java new file mode 100644 index 0000000000..2a83cf3457 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/w.java @@ -0,0 +1,16 @@ +package b.i.a.f.d; + +import android.os.Bundle; +import b.i.a.f.n.f; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class w implements f { + public static final f a = new w(); + + @Override // b.i.a.f.n.f + public final Task a(Object obj) { + Bundle bundle = (Bundle) obj; + int i = b.a; + return bundle != null && bundle.containsKey("google.messenger") ? b.i.a.f.e.o.f.Y(null) : b.i.a.f.e.o.f.Y(bundle); + } +} diff --git a/app/src/main/java/b/i/a/f/d/x.java b/app/src/main/java/b/i/a/f/d/x.java new file mode 100644 index 0000000000..c5f12d6419 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/x.java @@ -0,0 +1,30 @@ +package b.i.a.f.d; + +import b.i.a.f.n.c; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.ScheduledFuture; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class x implements c { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final String f1330b; + public final ScheduledFuture c; + + public x(b bVar, String str, ScheduledFuture scheduledFuture) { + this.a = bVar; + this.f1330b = str; + this.c = scheduledFuture; + } + + @Override // b.i.a.f.n.c + public final void onComplete(Task task) { + b bVar = this.a; + String str = this.f1330b; + ScheduledFuture scheduledFuture = this.c; + synchronized (bVar.c) { + bVar.c.remove(str); + } + scheduledFuture.cancel(false); + } +} diff --git a/app/src/main/java/b/i/a/f/d/y.java b/app/src/main/java/b/i/a/f/d/y.java new file mode 100644 index 0000000000..f9dad68da7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/y.java @@ -0,0 +1,109 @@ +package b.i.a.f.d; + +import android.content.Intent; +import android.os.Bundle; +import android.os.Looper; +import android.os.Message; +import android.os.Messenger; +import android.os.Parcelable; +import android.util.Log; +import b.i.a.f.h.f.a; +import com.google.android.gms.cloudmessaging.zza; +import java.util.Objects; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final class y extends a { + public final /* synthetic */ b a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public y(b bVar, Looper looper) { + super(looper); + this.a = bVar; + } + + @Override // android.os.Handler + public final void handleMessage(Message message) { + b bVar = this.a; + Objects.requireNonNull(bVar); + if (message != null) { + Object obj = message.obj; + if (obj instanceof Intent) { + Intent intent = (Intent) obj; + intent.setExtrasClassLoader(new zza.a()); + if (intent.hasExtra("google.messenger")) { + Parcelable parcelableExtra = intent.getParcelableExtra("google.messenger"); + if (parcelableExtra instanceof zza) { + bVar.i = (zza) parcelableExtra; + } + if (parcelableExtra instanceof Messenger) { + bVar.h = (Messenger) parcelableExtra; + } + } + Intent intent2 = (Intent) message.obj; + String action = intent2.getAction(); + if ("com.google.android.c2dm.intent.REGISTRATION".equals(action)) { + String stringExtra = intent2.getStringExtra("registration_id"); + if (stringExtra == null) { + stringExtra = intent2.getStringExtra("unregistered"); + } + if (stringExtra == null) { + String stringExtra2 = intent2.getStringExtra("error"); + if (stringExtra2 == null) { + String valueOf = String.valueOf(intent2.getExtras()); + b.d.b.a.a.f0(valueOf.length() + 49, "Unexpected response, no error or registration id ", valueOf, "Rpc"); + return; + } + if (Log.isLoggable("Rpc", 3)) { + Log.d("Rpc", stringExtra2.length() != 0 ? "Received InstanceID error ".concat(stringExtra2) : new String("Received InstanceID error ")); + } + if (stringExtra2.startsWith("|")) { + String[] split = stringExtra2.split("\\|"); + if (split.length <= 2 || !"ID".equals(split[1])) { + Log.w("Rpc", stringExtra2.length() != 0 ? "Unexpected structured response ".concat(stringExtra2) : new String("Unexpected structured response ")); + return; + } + String str = split[2]; + String str2 = split[3]; + if (str2.startsWith(":")) { + str2 = str2.substring(1); + } + bVar.a(str, intent2.putExtra("error", str2).getExtras()); + return; + } + synchronized (bVar.c) { + for (int i = 0; i < bVar.c.size(); i++) { + bVar.a(bVar.c.keyAt(i), intent2.getExtras()); + } + } + return; + } + Matcher matcher = Pattern.compile("\\|ID\\|([^|]+)\\|:?+(.*)").matcher(stringExtra); + if (matcher.matches()) { + String group = matcher.group(1); + String group2 = matcher.group(2); + if (group != null) { + Bundle extras = intent2.getExtras(); + extras.putString("registration_id", group2); + bVar.a(group, extras); + return; + } + return; + } else if (Log.isLoggable("Rpc", 3)) { + Log.d("Rpc", stringExtra.length() != 0 ? "Unexpected response string: ".concat(stringExtra) : new String("Unexpected response string: ")); + return; + } else { + return; + } + } else if (Log.isLoggable("Rpc", 3)) { + String valueOf2 = String.valueOf(action); + Log.d("Rpc", valueOf2.length() != 0 ? "Unexpected response action: ".concat(valueOf2) : new String("Unexpected response action: ")); + return; + } else { + return; + } + } + } + Log.w("Rpc", "Dropping invalid message"); + } +} diff --git a/app/src/main/java/b/i/a/f/d/z.java b/app/src/main/java/b/i/a/f/d/z.java new file mode 100644 index 0000000000..2c951bedc6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/d/z.java @@ -0,0 +1,12 @@ +package b.i.a.f.d; + +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public final /* synthetic */ class z implements Executor { + public static final Executor j = new z(); + + @Override // java.util.concurrent.Executor + public final void execute(Runnable runnable) { + runnable.run(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/a.java b/app/src/main/java/b/i/a/f/e/a.java new file mode 100644 index 0000000000..0f17abeba4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/a.java @@ -0,0 +1,39 @@ +package b.i.a.f.e; + +import android.content.ComponentName; +import android.content.ServiceConnection; +import android.os.IBinder; +import androidx.annotation.RecentlyNonNull; +import b.c.a.a0.d; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a implements ServiceConnection { + public boolean j = false; + public final BlockingQueue k = new LinkedBlockingQueue(); + + @RecentlyNonNull + public IBinder a(@RecentlyNonNull long j, @RecentlyNonNull TimeUnit timeUnit) throws InterruptedException, TimeoutException { + d.x("BlockingServiceConnection.getServiceWithTimeout() called on main thread"); + if (!this.j) { + this.j = true; + IBinder poll = this.k.poll(j, timeUnit); + if (poll != null) { + return poll; + } + throw new TimeoutException("Timed out waiting for the service connection"); + } + throw new IllegalStateException("Cannot call get on this connection more than once"); + } + + @Override // android.content.ServiceConnection + public void onServiceConnected(@RecentlyNonNull ComponentName componentName, @RecentlyNonNull IBinder iBinder) { + this.k.add(iBinder); + } + + @Override // android.content.ServiceConnection + public void onServiceDisconnected(@RecentlyNonNull ComponentName componentName) { + } +} diff --git a/app/src/main/java/b/i/a/f/e/a0.java b/app/src/main/java/b/i/a/f/e/a0.java new file mode 100644 index 0000000000..8290a5e1d6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/a0.java @@ -0,0 +1,30 @@ +package b.i.a.f.e; + +import androidx.annotation.NonNull; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a0 { + public static final a0 a = new a0(true, null, null); + + /* renamed from: b reason: collision with root package name */ + public final boolean f1331b; + public final String c; + public final Throwable d; + + public a0(boolean z2, String str, Throwable th) { + this.f1331b = z2; + this.c = str; + this.d = th; + } + + public static a0 a(@NonNull String str) { + return new a0(false, str, null); + } + + public static a0 b(@NonNull String str, @NonNull Throwable th) { + return new a0(false, str, th); + } + + public String c() { + return this.c; + } +} diff --git a/app/src/main/java/b/i/a/f/e/b.java b/app/src/main/java/b/i/a/f/e/b.java new file mode 100644 index 0000000000..845ed80e9c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/b.java @@ -0,0 +1,36 @@ +package b.i.a.f.e; + +import android.app.Dialog; +import android.app.DialogFragment; +import android.app.FragmentManager; +import android.content.DialogInterface; +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class b extends DialogFragment { + public Dialog j; + public DialogInterface.OnCancelListener k; + + @Override // android.app.DialogFragment, android.content.DialogInterface.OnCancelListener + public void onCancel(DialogInterface dialogInterface) { + DialogInterface.OnCancelListener onCancelListener = this.k; + if (onCancelListener != null) { + onCancelListener.onCancel(dialogInterface); + } + } + + @Override // android.app.DialogFragment + @NonNull + public Dialog onCreateDialog(@Nullable Bundle bundle) { + if (this.j == null) { + setShowsDialog(false); + } + return this.j; + } + + @Override // android.app.DialogFragment + public void show(FragmentManager fragmentManager, @Nullable String str) { + super.show(fragmentManager, str); + } +} diff --git a/app/src/main/java/b/i/a/f/e/b0.java b/app/src/main/java/b/i/a/f/e/b0.java new file mode 100644 index 0000000000..49a2279bd9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/b0.java @@ -0,0 +1,42 @@ +package b.i.a.f.e; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.zzj; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class b0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzj createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + boolean z2 = false; + String str = null; + IBinder iBinder = null; + boolean z3 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 1) { + str = d.Q(parcel, readInt); + } else if (i == 2) { + iBinder = d.D1(parcel, readInt); + } else if (i == 3) { + z2 = d.C1(parcel, readInt); + } else if (i != 4) { + d.b2(parcel, readInt); + } else { + z3 = d.C1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzj(str, iBinder, z2, z3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzj[] newArray(int i) { + return new zzj[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/c.java b/app/src/main/java/b/i/a/f/e/c.java new file mode 100644 index 0000000000..2a6c0e31df --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/c.java @@ -0,0 +1,210 @@ +package b.i.a.f.e; + +import android.content.Context; +import android.content.Intent; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.net.Uri; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import androidx.annotation.RecentlyNullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.f.e.k.h0; +import b.i.a.f.e.k.q0; +import b.i.a.f.e.p.b; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.common.R; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class c { + @RecentlyNonNull + public static final int a = 12451000; + + /* renamed from: b reason: collision with root package name */ + public static final c f1332b = new c(); + + static { + boolean z2 = e.a; + } + + @RecentlyNullable + public Intent a(@Nullable Context context, @RecentlyNonNull int i, @Nullable String str) { + if (i == 1 || i == 2) { + if (context == null || !d.Z0(context)) { + StringBuilder R = a.R("gcore_"); + R.append(a); + R.append("-"); + if (!TextUtils.isEmpty(str)) { + R.append(str); + } + R.append("-"); + if (context != null) { + R.append(context.getPackageName()); + } + R.append("-"); + if (context != null) { + try { + R.append(b.a(context).b(context.getPackageName(), 0).versionCode); + } catch (PackageManager.NameNotFoundException unused) { + } + } + String sb = R.toString(); + int i2 = h0.a; + Intent intent = new Intent("android.intent.action.VIEW"); + Uri.Builder appendQueryParameter = Uri.parse("market://details").buildUpon().appendQueryParameter(ModelAuditLogEntry.CHANGE_KEY_ID, "com.google.android.gms"); + if (!TextUtils.isEmpty(sb)) { + appendQueryParameter.appendQueryParameter("pcampaignid", sb); + } + intent.setData(appendQueryParameter.build()); + intent.setPackage("com.android.vending"); + intent.addFlags(524288); + return intent; + } + int i3 = h0.a; + Intent intent2 = new Intent("com.google.android.clockwork.home.UPDATE_ANDROID_WEAR_ACTION"); + intent2.setPackage("com.google.android.wearable.app"); + return intent2; + } else if (i != 3) { + return null; + } else { + int i4 = h0.a; + Uri fromParts = Uri.fromParts("package", "com.google.android.gms", null); + Intent intent3 = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS"); + intent3.setData(fromParts); + return intent3; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:33:0x0090 */ + /* JADX WARNING: Removed duplicated region for block: B:34:0x0092 */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x00a1 */ + /* JADX WARNING: Removed duplicated region for block: B:47:0x00c7 */ + /* JADX WARNING: Removed duplicated region for block: B:48:0x00d5 */ + /* JADX WARNING: Removed duplicated region for block: B:78:0x016d */ + /* JADX WARNING: Removed duplicated region for block: B:82:0x0177 A[ORIG_RETURN, RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:83:? A[RETURN, SYNTHETIC] */ + @RecentlyNonNull + public int b(@RecentlyNonNull Context context, @RecentlyNonNull int i) { + boolean z2; + String packageName; + int i2; + PackageInfo packageInfo; + boolean z3 = e.a; + try { + context.getResources().getString(R.a.common_google_play_services_unknown_issue); + } catch (Throwable unused) { + Log.e("GooglePlayServicesUtil", "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included."); + } + if (!"com.google.android.gms".equals(context.getPackageName()) && !e.d.get()) { + q0.a(context); + int i3 = q0.d; + if (i3 == 0) { + throw new IllegalStateException("A required meta-data tag in your app's AndroidManifest.xml does not exist. You must have the following declaration within the element: "); + } else if (i3 != 12451000) { + StringBuilder O = a.O(320, "The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected ", 12451000, " but found ", i3); + O.append(". You must have the following declaration within the element: "); + throw new IllegalStateException(O.toString()); + } + } + boolean z4 = true; + if (!d.Z0(context)) { + if (d.e == null) { + d.e = Boolean.valueOf(context.getPackageManager().hasSystemFeature("android.hardware.type.iot") || context.getPackageManager().hasSystemFeature("android.hardware.type.embedded")); + } + if (!d.e.booleanValue()) { + z2 = true; + d.l(i < 0); + packageName = context.getPackageName(); + PackageManager packageManager = context.getPackageManager(); + PackageInfo packageInfo2 = null; + if (z2) { + try { + packageInfo2 = packageManager.getPackageInfo("com.android.vending", 8256); + } catch (PackageManager.NameNotFoundException unused2) { + Log.w("GooglePlayServicesUtil", String.valueOf(packageName).concat(" requires the Google Play Store, but it is missing.")); + } + } + packageInfo = packageManager.getPackageInfo("com.google.android.gms", 64); + f.a(context); + if (f.d(packageInfo, true)) { + Log.w("GooglePlayServicesUtil", String.valueOf(packageName).concat(" requires Google Play services, but their signature is invalid.")); + } else { + if (z2) { + Objects.requireNonNull(packageInfo2, "null reference"); + if (!f.d(packageInfo2, true) || !packageInfo2.signatures[0].equals(packageInfo.signatures[0])) { + Log.w("GooglePlayServicesUtil", String.valueOf(packageName).concat(" requires Google Play Store, but its signature is invalid.")); + } + } + int i4 = packageInfo.versionCode; + int i5 = -1; + int i6 = i4 == -1 ? -1 : i4 / 1000; + if (i != -1) { + i5 = i / 1000; + } + if (i6 < i5) { + StringBuilder sb = new StringBuilder(a.b(packageName, 82)); + sb.append("Google Play services out of date for "); + sb.append(packageName); + sb.append(". Requires "); + sb.append(i); + sb.append(" but found "); + sb.append(i4); + Log.w("GooglePlayServicesUtil", sb.toString()); + i2 = 2; + } else { + ApplicationInfo applicationInfo = packageInfo.applicationInfo; + if (applicationInfo == null) { + try { + applicationInfo = packageManager.getApplicationInfo("com.google.android.gms", 0); + } catch (PackageManager.NameNotFoundException e) { + Log.wtf("GooglePlayServicesUtil", String.valueOf(packageName).concat(" requires Google Play services, but they're missing when getting application info."), e); + } + } + i2 = !applicationInfo.enabled ? 3 : 0; + } + if (i2 != 18) { + z4 = i2 == 1 ? e.b(context, "com.google.android.gms") : false; + } + if (!z4) { + return 18; + } + return i2; + } + i2 = 9; + if (i2 != 18) { + } + if (!z4) { + } + } + } + z2 = false; + d.l(i < 0); + packageName = context.getPackageName(); + PackageManager packageManager = context.getPackageManager(); + PackageInfo packageInfo2 = null; + if (z2) { + } + try { + packageInfo = packageManager.getPackageInfo("com.google.android.gms", 64); + f.a(context); + if (f.d(packageInfo, true)) { + } + i2 = 9; + } catch (PackageManager.NameNotFoundException unused3) { + Log.w("GooglePlayServicesUtil", String.valueOf(packageName).concat(" requires Google Play services, but they are missing.")); + i2 = 1; + if (i2 != 18) { + } + if (!z4) { + } + } + if (i2 != 18) { + } + if (!z4) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/c0.java b/app/src/main/java/b/i/a/f/e/c0.java new file mode 100644 index 0000000000..3b14f9901a --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/c0.java @@ -0,0 +1,21 @@ +package b.i.a.f.e; + +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class c0 extends a0 { + public final Callable e; + + public c0(Callable callable, d0 d0Var) { + super(false, null, null); + this.e = callable; + } + + @Override // b.i.a.f.e.a0 + public final String c() { + try { + return this.e.call(); + } catch (Exception e) { + throw new RuntimeException(e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/d.java b/app/src/main/java/b/i/a/f/e/d.java new file mode 100644 index 0000000000..0aae35b1ac --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/d.java @@ -0,0 +1,5 @@ +package b.i.a.f.e; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class d extends e { + public static final /* synthetic */ int e = 0; +} diff --git a/app/src/main/java/b/i/a/f/e/e.java b/app/src/main/java/b/i/a/f/e/e.java new file mode 100644 index 0000000000..5056ae3fda --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/e.java @@ -0,0 +1,72 @@ +package b.i.a.f.e; + +import android.annotation.TargetApi; +import android.content.Context; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageInstaller; +import android.content.pm.PackageManager; +import android.os.Build; +import android.os.Bundle; +import android.os.UserManager; +import android.util.Log; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.e.p.b; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class e { + public static boolean a = false; + + /* renamed from: b reason: collision with root package name */ + public static boolean f1333b = false; + public static final AtomicBoolean c = new AtomicBoolean(); + public static final AtomicBoolean d = new AtomicBoolean(); + + @RecentlyNonNull + public static boolean a(@RecentlyNonNull Context context) { + boolean z2 = true; + if (!f1333b) { + try { + PackageInfo packageInfo = b.a(context).a.getPackageManager().getPackageInfo("com.google.android.gms", 64); + f.a(context); + if (packageInfo == null || f.d(packageInfo, false) || !f.d(packageInfo, true)) { + a = false; + } else { + a = true; + } + } catch (PackageManager.NameNotFoundException e) { + Log.w("GooglePlayServicesUtil", "Cannot find Google Play services package name.", e); + } finally { + f1333b = z2; + } + } + return a || !"user".equals(Build.TYPE); + } + + @TargetApi(21) + public static boolean b(Context context, String str) { + boolean equals = str.equals("com.google.android.gms"); + try { + for (PackageInstaller.SessionInfo sessionInfo : context.getPackageManager().getPackageInstaller().getAllSessions()) { + if (str.equals(sessionInfo.getAppPackageName())) { + return true; + } + } + ApplicationInfo applicationInfo = context.getPackageManager().getApplicationInfo(str, 8192); + if (equals) { + return applicationInfo.enabled; + } + if (applicationInfo.enabled) { + Object systemService = context.getSystemService("user"); + Objects.requireNonNull(systemService, "null reference"); + Bundle applicationRestrictions = ((UserManager) systemService).getApplicationRestrictions(context.getPackageName()); + if (!(applicationRestrictions != null && "true".equals(applicationRestrictions.getString("restricted_profile")))) { + return true; + } + } + return false; + } catch (Exception unused) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/f.java b/app/src/main/java/b/i/a/f/e/f.java new file mode 100644 index 0000000000..392bb029f2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/f.java @@ -0,0 +1,156 @@ +package b.i.a.f.e; + +import android.content.Context; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.pm.Signature; +import android.os.StrictMode; +import android.util.Log; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.e.k.o0; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class f { + public static f a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1334b; + public volatile String c; + + public f(Context context) { + this.f1334b = context.getApplicationContext(); + } + + @RecentlyNonNull + public static f a(@RecentlyNonNull Context context) { + Objects.requireNonNull(context, "null reference"); + synchronized (f.class) { + if (a == null) { + o0 o0Var = s.a; + synchronized (s.class) { + if (s.c == null) { + s.c = context.getApplicationContext(); + } else { + Log.w("GoogleCertificates", "GoogleCertificates has been initialized already"); + } + } + a = new f(context); + } + } + return a; + } + + public static t c(PackageInfo packageInfo, t... tVarArr) { + Signature[] signatureArr = packageInfo.signatures; + if (signatureArr == null) { + return null; + } + if (signatureArr.length != 1) { + Log.w("GoogleSignatureVerifier", "Package has more than one signature."); + return null; + } + w wVar = new w(packageInfo.signatures[0].toByteArray()); + for (int i = 0; i < tVarArr.length; i++) { + if (tVarArr[i].equals(wVar)) { + return tVarArr[i]; + } + } + return null; + } + + @RecentlyNonNull + public static boolean d(@RecentlyNonNull PackageInfo packageInfo, @RecentlyNonNull boolean z2) { + if (!(packageInfo == null || packageInfo.signatures == null)) { + if ((z2 ? c(packageInfo, y.a) : c(packageInfo, y.a[0])) != null) { + return true; + } + } + return false; + } + + /* JADX INFO: finally extract failed */ + @RecentlyNonNull + public boolean b(@RecentlyNonNull int i) { + a0 a0Var; + a0 a0Var2; + ApplicationInfo applicationInfo; + String[] packagesForUid = this.f1334b.getPackageManager().getPackagesForUid(i); + if (packagesForUid == null || packagesForUid.length == 0) { + a0Var = a0.a("no pkgs"); + } else { + a0Var = null; + int length = packagesForUid.length; + int i2 = 0; + while (true) { + if (i2 >= length) { + Objects.requireNonNull(a0Var, "null reference"); + break; + } + String str = packagesForUid[i2]; + if (str == null) { + a0Var = a0.a("null pkg"); + } else if (str.equals(this.c)) { + a0Var = a0.a; + } else { + try { + PackageInfo packageInfo = this.f1334b.getPackageManager().getPackageInfo(str, 64); + boolean a2 = e.a(this.f1334b); + if (packageInfo == null) { + a0Var2 = a0.a("null pkg"); + } else { + Signature[] signatureArr = packageInfo.signatures; + if (signatureArr == null || signatureArr.length != 1) { + a0Var2 = a0.a("single cert required"); + } else { + w wVar = new w(packageInfo.signatures[0].toByteArray()); + String str2 = packageInfo.packageName; + o0 o0Var = s.a; + StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads(); + try { + a0 a3 = s.a(str2, wVar, a2, false); + StrictMode.setThreadPolicy(allowThreadDiskReads); + if (!(!a3.f1331b || (applicationInfo = packageInfo.applicationInfo) == null || (applicationInfo.flags & 2) == 0)) { + StrictMode.ThreadPolicy allowThreadDiskReads2 = StrictMode.allowThreadDiskReads(); + try { + a0 a4 = s.a(str2, wVar, false, true); + StrictMode.setThreadPolicy(allowThreadDiskReads2); + if (a4.f1331b) { + a0Var2 = a0.a("debuggable release cert app rejected"); + } + } catch (Throwable th) { + StrictMode.setThreadPolicy(allowThreadDiskReads2); + throw th; + } + } + a0Var2 = a3; + } catch (Throwable th2) { + StrictMode.setThreadPolicy(allowThreadDiskReads); + throw th2; + } + } + } + if (a0Var2.f1331b) { + this.c = str; + } + a0Var = a0Var2; + } catch (PackageManager.NameNotFoundException e) { + a0Var = a0.b(str.length() != 0 ? "no pkg ".concat(str) : new String("no pkg "), e); + } + } + if (a0Var.f1331b) { + break; + } + i2++; + } + } + if (!a0Var.f1331b && Log.isLoggable("GoogleCertificatesRslt", 3)) { + if (a0Var.d != null) { + Log.d("GoogleCertificatesRslt", a0Var.c(), a0Var.d); + } else { + Log.d("GoogleCertificatesRslt", a0Var.c()); + } + } + return a0Var.f1331b; + } +} diff --git a/app/src/main/java/b/i/a/f/e/g.java b/app/src/main/java/b/i/a/f/e/g.java new file mode 100644 index 0000000000..d32c77e8df --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/g.java @@ -0,0 +1,36 @@ +package b.i.a.f.e; + +import android.app.Dialog; +import android.content.DialogInterface; +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.DialogFragment; +import androidx.fragment.app.FragmentManager; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class g extends DialogFragment { + public Dialog j; + public DialogInterface.OnCancelListener k; + + @Override // androidx.fragment.app.DialogFragment, android.content.DialogInterface.OnCancelListener + public void onCancel(DialogInterface dialogInterface) { + DialogInterface.OnCancelListener onCancelListener = this.k; + if (onCancelListener != null) { + onCancelListener.onCancel(dialogInterface); + } + } + + @Override // androidx.fragment.app.DialogFragment + @NonNull + public Dialog onCreateDialog(@Nullable Bundle bundle) { + if (this.j == null) { + setShowsDialog(false); + } + return this.j; + } + + @Override // androidx.fragment.app.DialogFragment + public void show(FragmentManager fragmentManager, @Nullable String str) { + super.show(fragmentManager, str); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/a.java b/app/src/main/java/b/i/a/f/e/h/a.java new file mode 100644 index 0000000000..51d3e54728 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/a.java @@ -0,0 +1,117 @@ +package b.i.a.f.e.h; + +import android.accounts.Account; +import android.content.Context; +import android.os.Looper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a.d; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.j.l; +import b.i.a.f.e.k.b; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.common.Feature; +import com.google.android.gms.common.api.Scope; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class a { + @Nullable + public final AbstractC0103a a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final g f1335b; + public final String c; + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + /* renamed from: b.i.a.f.e.h.a$a reason: collision with other inner class name */ + public static abstract class AbstractC0103a extends e { + @Deprecated + public T a(Context context, Looper looper, b.i.a.f.e.k.c cVar, O o, c.a aVar, c.b bVar) { + return b(context, looper, cVar, o, aVar, bVar); + } + + public T b(Context context, Looper looper, b.i.a.f.e.k.c cVar, O o, b.i.a.f.e.h.j.f fVar, l lVar) { + throw new UnsupportedOperationException("buildClient must be implemented"); + } + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public interface b { + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static class c { + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public interface d { + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + /* renamed from: b.i.a.f.e.h.a$d$a reason: collision with other inner class name */ + public interface AbstractC0104a extends d { + Account T(); + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public interface b extends d { + GoogleSignInAccount L(); + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static final class c implements d { + } + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static abstract class e { + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public interface f extends b { + @NonNull + Set a(); + + void b(@Nullable b.i.a.f.e.k.g gVar, @Nullable Set set); + + void c(String str); + + boolean e(); + + String f(); + + void g(b.c cVar); + + void h(); + + void i(b.e eVar); + + boolean j(); + + boolean k(); + + int l(); + + Feature[] m(); + + @Nullable + String n(); + + boolean o(); + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static final class g extends c { + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: b.i.a.f.e.h.a$a */ + /* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: b.i.a.f.e.h.a$g */ + /* JADX WARN: Multi-variable type inference failed */ + public a(String str, AbstractC0103a aVar, g gVar) { + b.c.a.a0.d.z(aVar, "Cannot construct an Api with a null ClientBuilder"); + b.c.a.a0.d.z(gVar, "Cannot construct an Api with a null ClientKey"); + this.c = str; + this.a = aVar; + this.f1335b = gVar; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/b.java b/app/src/main/java/b/i/a/f/e/h/b.java new file mode 100644 index 0000000000..979ef5dd06 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/b.java @@ -0,0 +1,224 @@ +package b.i.a.f.e.h; + +import android.accounts.Account; +import android.app.Activity; +import android.content.Context; +import android.os.Build; +import android.os.Handler; +import android.os.Looper; +import android.util.Log; +import androidx.annotation.MainThread; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.collection.ArraySet; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.a.d; +import b.i.a.f.e.h.j.a1; +import b.i.a.f.e.h.j.c0; +import b.i.a.f.e.h.j.g; +import b.i.a.f.e.h.j.k; +import b.i.a.f.e.h.j.n; +import b.i.a.f.e.h.j.o0; +import b.i.a.f.e.h.j.p; +import b.i.a.f.e.h.j.p0; +import b.i.a.f.e.h.j.q0; +import b.i.a.f.e.h.j.y; +import b.i.a.f.e.k.c; +import b.i.a.f.e.o.f; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.common.api.GoogleApiActivity; +import com.google.android.gms.common.api.Scope; +import com.google.android.gms.common.api.internal.BasePendingResult; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.lang.reflect.InvocationTargetException; +import java.util.Collections; +import java.util.ConcurrentModificationException; +import java.util.Objects; +import java.util.Set; +import org.checkerframework.checker.initialization.qual.NotOnlyInitialized; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class b { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final a f1336b; + public final O c; + public final b.i.a.f.e.h.j.b d; + public final Looper e; + public final int f; + @NotOnlyInitialized + public final c g; + public final n h; + public final g i; + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static class a { + public static final a a = new a(new b.i.a.f.e.h.j.a(), null, Looper.getMainLooper()); + + /* renamed from: b reason: collision with root package name */ + public final n f1337b; + public final Looper c; + + public a(n nVar, Account account, Looper looper) { + this.f1337b = nVar; + this.c = looper; + } + } + + @MainThread + public b(@NonNull Activity activity, a aVar, O o, a aVar2) { + b.c.a.a0.d.z(activity, "Null activity is not permitted."); + b.c.a.a0.d.z(aVar, "Api must not be null."); + b.c.a.a0.d.z(aVar2, "Settings must not be null; use Settings.DEFAULT_SETTINGS instead."); + Context applicationContext = activity.getApplicationContext(); + this.a = applicationContext; + e(activity); + this.f1336b = aVar; + this.c = o; + this.e = aVar2.c; + b.i.a.f.e.h.j.b bVar = new b.i.a.f.e.h.j.b<>(aVar, o); + this.d = bVar; + this.g = new y(this); + g a2 = g.a(applicationContext); + this.i = a2; + this.f = a2.r.getAndIncrement(); + this.h = aVar2.f1337b; + if (!(activity instanceof GoogleApiActivity)) { + try { + a1.o(activity, a2, bVar); + } catch (IllegalStateException | ConcurrentModificationException unused) { + } + } + Handler handler = this.i.f1344x; + handler.sendMessage(handler.obtainMessage(7, this)); + } + + public b(@NonNull Context context, a aVar, O o, a aVar2) { + b.c.a.a0.d.z(context, "Null context is not permitted."); + b.c.a.a0.d.z(aVar, "Api must not be null."); + b.c.a.a0.d.z(aVar2, "Settings must not be null; use Settings.DEFAULT_SETTINGS instead."); + Context applicationContext = context.getApplicationContext(); + this.a = applicationContext; + e(context); + this.f1336b = aVar; + this.c = o; + this.e = aVar2.c; + this.d = new b.i.a.f.e.h.j.b<>(aVar, o); + this.g = new y(this); + g a2 = g.a(applicationContext); + this.i = a2; + this.f = a2.r.getAndIncrement(); + this.h = aVar2.f1337b; + Handler handler = a2.f1344x; + handler.sendMessage(handler.obtainMessage(7, this)); + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + @Deprecated + public b(@NonNull Context context, a aVar, O o, n nVar) { + this(context, aVar, o, new a(nVar, null, Looper.getMainLooper())); + b.c.a.a0.d.z(nVar, "StatusExceptionMapper must not be null."); + } + + /* JADX WARNING: Removed duplicated region for block: B:42:0x0093 */ + /* JADX WARNING: Removed duplicated region for block: B:48:? A[RETURN, SYNTHETIC] */ + @Nullable + public static String e(Object obj) { + int i = Build.VERSION.SDK_INT; + boolean z2 = true; + if (i >= 29) { + if (i < 30 || !Build.VERSION.CODENAME.equals("REL")) { + String str = Build.VERSION.CODENAME; + if (str.length() == 1 && str.charAt(0) >= 'R' && str.charAt(0) <= 'Z') { + Boolean bool = f.a; + if (bool != null) { + z2 = bool.booleanValue(); + } else { + try { + if (!"google".equals(Build.BRAND) || Build.ID.startsWith("RPP1") || Build.ID.startsWith("RPP2") || Integer.parseInt(Build.VERSION.INCREMENTAL) < 6301457) { + z2 = false; + } + f.a = Boolean.valueOf(z2); + } catch (NumberFormatException unused) { + f.a = Boolean.TRUE; + } + if (!f.a.booleanValue()) { + Log.w("PlatformVersion", "Build version must be at least 6301457 to support R in gmscore"); + } + z2 = f.a.booleanValue(); + } + } + } + if (z2) { + return null; + } + try { + return (String) Context.class.getMethod("getAttributionTag", new Class[0]).invoke(obj, new Object[0]); + } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused2) { + return null; + } + } + z2 = false; + if (z2) { + } + } + + public c.a a() { + GoogleSignInAccount L; + GoogleSignInAccount L2; + c.a aVar = new c.a(); + O o = this.c; + Account account = null; + if (!(o instanceof a.d.b) || (L2 = ((a.d.b) o).L()) == null) { + O o2 = this.c; + if (o2 instanceof a.d.AbstractC0104a) { + account = ((a.d.AbstractC0104a) o2).T(); + } + } else if (L2.m != null) { + account = new Account(L2.m, "com.google"); + } + aVar.a = account; + O o3 = this.c; + Set emptySet = (!(o3 instanceof a.d.b) || (L = ((a.d.b) o3).L()) == null) ? Collections.emptySet() : L.w0(); + if (aVar.f1368b == null) { + aVar.f1368b = new ArraySet<>(); + } + aVar.f1368b.addAll(emptySet); + aVar.d = this.a.getClass().getName(); + aVar.c = this.a.getPackageName(); + return aVar; + } + + public Task b(@NonNull k.a aVar) { + b.c.a.a0.d.z(aVar, "Listener key cannot be null."); + g gVar = this.i; + Objects.requireNonNull(gVar); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + p0 p0Var = new p0(aVar, taskCompletionSource); + Handler handler = gVar.f1344x; + handler.sendMessage(handler.obtainMessage(13, new c0(p0Var, gVar.f1343s.get(), this))); + return taskCompletionSource.a; + } + + public Task c(p pVar) { + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + g gVar = this.i; + n nVar = this.h; + Objects.requireNonNull(gVar); + q0 q0Var = new q0(1, pVar, taskCompletionSource, nVar); + Handler handler = gVar.f1344x; + handler.sendMessage(handler.obtainMessage(4, new c0(q0Var, gVar.f1343s.get(), this))); + return taskCompletionSource.a; + } + + public final > T d(int i, @NonNull T t) { + t.k = t.k || BasePendingResult.a.get().booleanValue(); + g gVar = this.i; + Objects.requireNonNull(gVar); + o0 o0Var = new o0(i, t); + Handler handler = gVar.f1344x; + handler.sendMessage(handler.obtainMessage(4, new c0(o0Var, gVar.f1343s.get(), this))); + return t; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/c.java b/app/src/main/java/b/i/a/f/e/h/c.java new file mode 100644 index 0000000000..c4a02666d6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/c.java @@ -0,0 +1,38 @@ +package b.i.a.f.e.h; + +import android.os.Looper; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.j.d; +import b.i.a.f.e.h.j.f; +import b.i.a.f.e.h.j.l; +import java.util.Collections; +import java.util.Set; +import java.util.WeakHashMap; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +@Deprecated +public abstract class c { + public static final Set a = Collections.newSetFromMap(new WeakHashMap()); + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + @Deprecated + public interface a extends f { + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + @Deprecated + public interface b extends l { + } + + public > T a(@NonNull T t) { + throw new UnsupportedOperationException(); + } + + public > T b(@NonNull T t) { + throw new UnsupportedOperationException(); + } + + public Looper c() { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/d.java b/app/src/main/java/b/i/a/f/e/h/d.java new file mode 100644 index 0000000000..c2932d0e5e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/d.java @@ -0,0 +1,15 @@ +package b.i.a.f.e.h; + +import androidx.annotation.NonNull; +import b.i.a.f.e.h.h; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class d { + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public interface a { + void a(Status status); + } + + public abstract void c(@NonNull a aVar); +} diff --git a/app/src/main/java/b/i/a/f/e/h/e.java b/app/src/main/java/b/i/a/f/e/h/e.java new file mode 100644 index 0000000000..8183cc17ac --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/e.java @@ -0,0 +1,19 @@ +package b.i.a.f.e.h; + +import b.i.a.f.e.h.h; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.api.internal.BasePendingResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class e extends BasePendingResult { + public final R l; + + public e(c cVar, R r) { + super(cVar); + this.l = r; + } + + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public final R d(Status status) { + return this.l; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/f.java b/app/src/main/java/b/i/a/f/e/h/f.java new file mode 100644 index 0000000000..fb58c3c51b --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/f.java @@ -0,0 +1,5 @@ +package b.i.a.f.e.h; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface f { + void release(); +} diff --git a/app/src/main/java/b/i/a/f/e/h/g.java b/app/src/main/java/b/i/a/f/e/h/g.java new file mode 100644 index 0000000000..e50fa14662 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/g.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.h; + +import b.i.a.f.e.h.h; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class g { + public T a; +} diff --git a/app/src/main/java/b/i/a/f/e/h/h.java b/app/src/main/java/b/i/a/f/e/h/h.java new file mode 100644 index 0000000000..b43f64d9b2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/h.java @@ -0,0 +1,9 @@ +package b.i.a.f.e.h; + +import androidx.annotation.RecentlyNonNull; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface h { + @RecentlyNonNull + Status b0(); +} diff --git a/app/src/main/java/b/i/a/f/e/h/i.java b/app/src/main/java/b/i/a/f/e/h/i.java new file mode 100644 index 0000000000..234d879d46 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/i.java @@ -0,0 +1,8 @@ +package b.i.a.f.e.h; + +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.e.h.h; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface i { + void a(@RecentlyNonNull R r); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/a.java b/app/src/main/java/b/i/a/f/e/h/j/a.java new file mode 100644 index 0000000000..2051791cfe --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/a.java @@ -0,0 +1,11 @@ +package b.i.a.f.e.h.j; + +import b.c.a.a0.d; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class a implements n { + @Override // b.i.a.f.e.h.j.n + public Exception a(Status status) { + return d.k0(status); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/a0.java b/app/src/main/java/b/i/a/f/e/h/j/a0.java new file mode 100644 index 0000000000..4301a44866 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/a0.java @@ -0,0 +1,40 @@ +package b.i.a.f.e.h.j; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.net.Uri; +import androidx.annotation.Nullable; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class a0 extends BroadcastReceiver { + @Nullable + public Context a; + + /* renamed from: b reason: collision with root package name */ + public final u0 f1338b; + + public a0(u0 u0Var) { + this.f1338b = u0Var; + } + + public final synchronized void a() { + Context context = this.a; + if (context != null) { + context.unregisterReceiver(this); + } + this.a = null; + } + + @Override // android.content.BroadcastReceiver + public final void onReceive(Context context, Intent intent) { + Uri data = intent.getData(); + if ("com.google.android.gms".equals(data != null ? data.getSchemeSpecificPart() : null)) { + u0 u0Var = this.f1338b; + u0Var.f1358b.k.m(); + if (u0Var.a.isShowing()) { + u0Var.a.dismiss(); + } + a(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/a1.java b/app/src/main/java/b/i/a/f/e/h/j/a1.java new file mode 100644 index 0000000000..b1fd12172e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/a1.java @@ -0,0 +1,77 @@ +package b.i.a.f.e.h.j; + +import android.app.Activity; +import android.os.Handler; +import androidx.collection.ArraySet; +import b.c.a.a0.d; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.GoogleApiAvailability; +import com.google.android.gms.common.api.internal.LifecycleCallback; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class a1 extends t0 { + public final ArraySet> o = new ArraySet<>(); + public final g p; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a1(j jVar, g gVar) { + super(jVar, GoogleApiAvailability.d); + Object obj = GoogleApiAvailability.c; + this.p = gVar; + jVar.a("ConnectionlessLifecycleHelper", this); + } + + public static void o(Activity activity, g gVar, b bVar) { + j c = LifecycleCallback.c(activity); + a1 a1Var = (a1) c.d("ConnectionlessLifecycleHelper", a1.class); + if (a1Var == null) { + a1Var = new a1(c, gVar); + } + d.z(bVar, "ApiKey cannot be null"); + a1Var.o.add(bVar); + gVar.b(a1Var); + } + + @Override // com.google.android.gms.common.api.internal.LifecycleCallback + public void g() { + if (!this.o.isEmpty()) { + this.p.b(this); + } + } + + @Override // b.i.a.f.e.h.j.t0, com.google.android.gms.common.api.internal.LifecycleCallback + public void i() { + this.k = true; + if (!this.o.isEmpty()) { + this.p.b(this); + } + } + + @Override // b.i.a.f.e.h.j.t0, com.google.android.gms.common.api.internal.LifecycleCallback + public void j() { + this.k = false; + g gVar = this.p; + Objects.requireNonNull(gVar); + synchronized (g.l) { + if (gVar.u == this) { + gVar.u = null; + gVar.v.clear(); + } + } + } + + @Override // b.i.a.f.e.h.j.t0 + public final void k() { + Handler handler = this.p.f1344x; + handler.sendMessage(handler.obtainMessage(3)); + } + + @Override // b.i.a.f.e.h.j.t0 + public final void l(ConnectionResult connectionResult, int i) { + g gVar = this.p; + if (!gVar.c(connectionResult, i)) { + Handler handler = gVar.f1344x; + handler.sendMessage(handler.obtainMessage(5, i, 0, connectionResult)); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/b.java b/app/src/main/java/b/i/a/f/e/h/j/b.java new file mode 100644 index 0000000000..1189852448 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/b.java @@ -0,0 +1,39 @@ +package b.i.a.f.e.h.j; + +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.a.d; +import java.util.Arrays; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final a f1339b; + @Nullable + public final O c; + + public b(a aVar, @Nullable O o) { + this.f1339b = aVar; + this.c = o; + this.a = Arrays.hashCode(new Object[]{aVar, o}); + } + + public final boolean equals(@Nullable Object obj) { + if (obj == null) { + return false; + } + if (obj == this) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return b.c.a.a0.d.g0(this.f1339b, bVar.f1339b) && b.c.a.a0.d.g0(this.c, bVar.c); + } + + public final int hashCode() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/b0.java b/app/src/main/java/b/i/a/f/e/h/j/b0.java new file mode 100644 index 0000000000..cbc0c2305c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/b0.java @@ -0,0 +1,48 @@ +package b.i.a.f.e.h.j; + +import android.app.Activity; +import b.c.a.a0.d; +import b.i.a.f.e.c; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.GoogleApiAvailability; +import com.google.android.gms.common.api.ApiException; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.concurrent.CancellationException; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class b0 extends t0 { + public TaskCompletionSource o = new TaskCompletionSource<>(); + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b0(j jVar) { + super(jVar, GoogleApiAvailability.d); + Object obj = GoogleApiAvailability.c; + jVar.a("GmsAvailabilityHelper", this); + } + + @Override // com.google.android.gms.common.api.internal.LifecycleCallback + public void f() { + this.o.a(new CancellationException("Host activity was destroyed before Google Play services could be made available.")); + } + + @Override // b.i.a.f.e.h.j.t0 + public final void k() { + Activity e = this.j.e(); + if (e == null) { + this.o.a(new ApiException(new Status(8, null))); + return; + } + int b2 = this.n.b(e, c.a); + if (b2 == 0) { + this.o.b(null); + } else if (!this.o.a.o()) { + n(new ConnectionResult(b2, null), 0); + } + } + + @Override // b.i.a.f.e.h.j.t0 + public final void l(ConnectionResult connectionResult, int i) { + TaskCompletionSource taskCompletionSource = this.o; + taskCompletionSource.a.s(d.k0(new Status(connectionResult.l, connectionResult.n, connectionResult.m))); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/b1.java b/app/src/main/java/b/i/a/f/e/h/j/b1.java new file mode 100644 index 0000000000..45c530b161 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/b1.java @@ -0,0 +1,4 @@ +package b.i.a.f.e.h.j; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class b1 { +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/c.java b/app/src/main/java/b/i/a/f/e/h/j/c.java new file mode 100644 index 0000000000..73a2ffbb4e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/c.java @@ -0,0 +1,102 @@ +package b.i.a.f.e.h.j; + +import android.app.Activity; +import android.app.Application; +import android.content.ComponentCallbacks2; +import android.content.res.Configuration; +import android.os.Bundle; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import java.util.ArrayList; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class c implements Application.ActivityLifecycleCallbacks, ComponentCallbacks2 { + public static final c j = new c(); + public final AtomicBoolean k = new AtomicBoolean(); + public final AtomicBoolean l = new AtomicBoolean(); + public final ArrayList m = new ArrayList<>(); + public boolean n = false; + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public interface a { + void a(@RecentlyNonNull boolean z2); + } + + public static void a(@RecentlyNonNull Application application) { + c cVar = j; + synchronized (cVar) { + if (!cVar.n) { + application.registerActivityLifecycleCallbacks(cVar); + application.registerComponentCallbacks(cVar); + cVar.n = true; + } + } + } + + public final void b(boolean z2) { + synchronized (j) { + ArrayList arrayList = this.m; + int size = arrayList.size(); + int i = 0; + while (i < size) { + a aVar = arrayList.get(i); + i++; + aVar.a(z2); + } + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityCreated(@RecentlyNonNull Activity activity, @Nullable Bundle bundle) { + boolean compareAndSet = this.k.compareAndSet(true, false); + this.l.set(true); + if (compareAndSet) { + b(false); + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityDestroyed(@RecentlyNonNull Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityPaused(@RecentlyNonNull Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityResumed(@RecentlyNonNull Activity activity) { + boolean compareAndSet = this.k.compareAndSet(true, false); + this.l.set(true); + if (compareAndSet) { + b(false); + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivitySaveInstanceState(@RecentlyNonNull Activity activity, @RecentlyNonNull Bundle bundle) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStarted(@RecentlyNonNull Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStopped(@RecentlyNonNull Activity activity) { + } + + @Override // android.content.ComponentCallbacks + public final void onConfigurationChanged(@RecentlyNonNull Configuration configuration) { + } + + @Override // android.content.ComponentCallbacks + public final void onLowMemory() { + } + + @Override // android.content.ComponentCallbacks2 + public final void onTrimMemory(@RecentlyNonNull int i) { + if (i == 20 && this.k.compareAndSet(false, true)) { + this.l.set(true); + b(true); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/c0.java b/app/src/main/java/b/i/a/f/e/h/j/c0.java new file mode 100644 index 0000000000..47eb2ba8c7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/c0.java @@ -0,0 +1,17 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.b; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class c0 { + public final s a; + + /* renamed from: b reason: collision with root package name */ + public final int f1340b; + public final b c; + + public c0(s sVar, int i, b bVar) { + this.a = sVar; + this.f1340b = i; + this.c = bVar; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/c1.java b/app/src/main/java/b/i/a/f/e/h/j/c1.java new file mode 100644 index 0000000000..d783510276 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/c1.java @@ -0,0 +1,38 @@ +package b.i.a.f.e.h.j; + +import android.os.Bundle; +import com.google.android.gms.common.api.internal.LifecycleCallback; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class c1 implements Runnable { + public final /* synthetic */ LifecycleCallback j; + public final /* synthetic */ String k; + public final /* synthetic */ d1 l; + + public c1(d1 d1Var, LifecycleCallback lifecycleCallback, String str) { + this.l = d1Var; + this.j = lifecycleCallback; + this.k = str; + } + + @Override // java.lang.Runnable + public final void run() { + d1 d1Var = this.l; + if (d1Var.l > 0) { + LifecycleCallback lifecycleCallback = this.j; + Bundle bundle = d1Var.m; + lifecycleCallback.e(bundle != null ? bundle.getBundle(this.k) : null); + } + if (this.l.l >= 2) { + this.j.i(); + } + if (this.l.l >= 3) { + this.j.g(); + } + if (this.l.l >= 4) { + this.j.j(); + } + if (this.l.l >= 5) { + this.j.f(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/d.java b/app/src/main/java/b/i/a/f/e/h/j/d.java new file mode 100644 index 0000000000..3151e4ddba --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/d.java @@ -0,0 +1,48 @@ +package b.i.a.f.e.h.j; + +import android.os.DeadObjectException; +import android.os.RemoteException; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.a.b; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import b.i.a.f.e.k.z; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.api.internal.BasePendingResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class d extends BasePendingResult implements e { + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(@NonNull a aVar, @NonNull c cVar) { + super(cVar); + b.c.a.a0.d.z(cVar, "GoogleApiClient must not be null"); + b.c.a.a0.d.z(aVar, "Api must not be null"); + if (aVar.f1335b == null) { + throw new IllegalStateException("This API was constructed with null client keys. This should not be possible."); + } + } + + @Override // b.i.a.f.e.h.j.e + public final void a(@NonNull Status status) { + b.c.a.a0.d.o(!status.w0(), "Failed result must not be success"); + b(d(status)); + } + + public abstract void k(@NonNull A a) throws RemoteException; + + public final void l(@NonNull A a) throws DeadObjectException { + if (!(a instanceof z)) { + try { + k(a); + } catch (DeadObjectException e) { + a(new Status(8, e.getLocalizedMessage(), null)); + throw e; + } catch (RemoteException e2) { + a(new Status(8, e2.getLocalizedMessage(), null)); + } + } else { + z zVar = (z) a; + throw new NoSuchMethodError(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/d0.java b/app/src/main/java/b/i/a/f/e/h/j/d0.java new file mode 100644 index 0000000000..799e760edf --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/d0.java @@ -0,0 +1,18 @@ +package b.i.a.f.e.h.j; + +import androidx.annotation.NonNull; +import b.i.a.f.e.h.a; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class d0 { + public final m a; + + /* renamed from: b reason: collision with root package name */ + public final q f1341b; + public final Runnable c; + + public d0(@NonNull m mVar, @NonNull q qVar, @NonNull Runnable runnable) { + this.a = mVar; + this.f1341b = qVar; + this.c = runnable; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/d1.java b/app/src/main/java/b/i/a/f/e/h/j/d1.java new file mode 100644 index 0000000000..d66f9c8176 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/d1.java @@ -0,0 +1,125 @@ +package b.i.a.f.e.h.j; + +import android.app.Activity; +import android.app.Fragment; +import android.content.Intent; +import android.os.Bundle; +import android.os.Looper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.collection.ArrayMap; +import b.d.b.a.a; +import b.i.a.f.h.g.d; +import com.google.android.gms.common.api.internal.LifecycleCallback; +import java.io.FileDescriptor; +import java.io.PrintWriter; +import java.lang.ref.WeakReference; +import java.util.Collections; +import java.util.Map; +import java.util.WeakHashMap; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class d1 extends Fragment implements j { + public static WeakHashMap> j = new WeakHashMap<>(); + public Map k = Collections.synchronizedMap(new ArrayMap()); + public int l = 0; + @Nullable + public Bundle m; + + @Override // b.i.a.f.e.h.j.j + public final void a(String str, @NonNull LifecycleCallback lifecycleCallback) { + if (!this.k.containsKey(str)) { + this.k.put(str, lifecycleCallback); + if (this.l > 0) { + new d(Looper.getMainLooper()).post(new c1(this, lifecycleCallback, str)); + return; + } + return; + } + throw new IllegalArgumentException(a.j(str.length() + 59, "LifecycleCallback with tag ", str, " already added to this fragment.")); + } + + @Override // b.i.a.f.e.h.j.j + @Nullable + public final T d(String str, Class cls) { + return cls.cast(this.k.get(str)); + } + + @Override // android.app.Fragment + public final void dump(String str, @Nullable FileDescriptor fileDescriptor, PrintWriter printWriter, @Nullable String[] strArr) { + super.dump(str, fileDescriptor, printWriter, strArr); + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.a(); + } + } + + @Override // b.i.a.f.e.h.j.j + public final Activity e() { + return getActivity(); + } + + @Override // android.app.Fragment + public final void onActivityResult(int i, int i2, @Nullable Intent intent) { + super.onActivityResult(i, i2, intent); + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.d(i, i2, intent); + } + } + + @Override // android.app.Fragment + public final void onCreate(@Nullable Bundle bundle) { + super.onCreate(bundle); + this.l = 1; + this.m = bundle; + for (Map.Entry entry : this.k.entrySet()) { + entry.getValue().e(bundle != null ? bundle.getBundle(entry.getKey()) : null); + } + } + + @Override // android.app.Fragment + public final void onDestroy() { + super.onDestroy(); + this.l = 5; + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.f(); + } + } + + @Override // android.app.Fragment + public final void onResume() { + super.onResume(); + this.l = 3; + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.g(); + } + } + + @Override // android.app.Fragment + public final void onSaveInstanceState(Bundle bundle) { + super.onSaveInstanceState(bundle); + if (bundle != null) { + for (Map.Entry entry : this.k.entrySet()) { + Bundle bundle2 = new Bundle(); + entry.getValue().h(bundle2); + bundle.putBundle(entry.getKey(), bundle2); + } + } + } + + @Override // android.app.Fragment + public final void onStart() { + super.onStart(); + this.l = 2; + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.i(); + } + } + + @Override // android.app.Fragment + public final void onStop() { + super.onStop(); + this.l = 4; + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.j(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/e.java b/app/src/main/java/b/i/a/f/e/h/j/e.java new file mode 100644 index 0000000000..1dd23c3857 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/e.java @@ -0,0 +1,9 @@ +package b.i.a.f.e.h.j; + +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public interface e { + void a(Status status); + + void b(R r); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/e0.java b/app/src/main/java/b/i/a/f/e/h/j/e0.java new file mode 100644 index 0000000000..16f091aaec --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/e0.java @@ -0,0 +1,46 @@ +package b.i.a.f.e.h.j; + +import android.os.DeadObjectException; +import android.os.RemoteException; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.j.g; +import com.google.android.gms.common.api.ApiException; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class e0 extends m0 { + + /* renamed from: b reason: collision with root package name */ + public final TaskCompletionSource f1342b; + + public e0(int i, TaskCompletionSource taskCompletionSource) { + super(i); + this.f1342b = taskCompletionSource; + } + + @Override // b.i.a.f.e.h.j.s + public void b(@NonNull Status status) { + this.f1342b.a(new ApiException(status)); + } + + @Override // b.i.a.f.e.h.j.s + public final void c(g.a aVar) throws DeadObjectException { + try { + h(aVar); + } catch (DeadObjectException e) { + this.f1342b.a(new ApiException(s.a(e))); + throw e; + } catch (RemoteException e2) { + this.f1342b.a(new ApiException(s.a(e2))); + } catch (RuntimeException e3) { + this.f1342b.a(e3); + } + } + + @Override // b.i.a.f.e.h.j.s + public void e(@NonNull Exception exc) { + this.f1342b.a(exc); + } + + public abstract void h(g.a aVar) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/e1.java b/app/src/main/java/b/i/a/f/e/h/j/e1.java new file mode 100644 index 0000000000..49b9239e29 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/e1.java @@ -0,0 +1,126 @@ +package b.i.a.f.e.h.j; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.os.Looper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.collection.ArrayMap; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentActivity; +import b.d.b.a.a; +import b.i.a.f.h.g.d; +import com.google.android.gms.common.api.internal.LifecycleCallback; +import java.io.FileDescriptor; +import java.io.PrintWriter; +import java.lang.ref.WeakReference; +import java.util.Collections; +import java.util.Map; +import java.util.WeakHashMap; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class e1 extends Fragment implements j { + public static WeakHashMap> j = new WeakHashMap<>(); + public Map k = Collections.synchronizedMap(new ArrayMap()); + public int l = 0; + @Nullable + public Bundle m; + + @Override // b.i.a.f.e.h.j.j + public final void a(String str, @NonNull LifecycleCallback lifecycleCallback) { + if (!this.k.containsKey(str)) { + this.k.put(str, lifecycleCallback); + if (this.l > 0) { + new d(Looper.getMainLooper()).post(new f1(this, lifecycleCallback, str)); + return; + } + return; + } + throw new IllegalArgumentException(a.j(str.length() + 59, "LifecycleCallback with tag ", str, " already added to this fragment.")); + } + + @Override // b.i.a.f.e.h.j.j + @Nullable + public final T d(String str, Class cls) { + return cls.cast(this.k.get(str)); + } + + @Override // androidx.fragment.app.Fragment + public final void dump(String str, @Nullable FileDescriptor fileDescriptor, PrintWriter printWriter, @Nullable String[] strArr) { + super.dump(str, fileDescriptor, printWriter, strArr); + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.a(); + } + } + + @Override // b.i.a.f.e.h.j.j + public final /* synthetic */ Activity e() { + return getActivity(); + } + + @Override // androidx.fragment.app.Fragment + public final void onActivityResult(int i, int i2, @Nullable Intent intent) { + super.onActivityResult(i, i2, intent); + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.d(i, i2, intent); + } + } + + @Override // androidx.fragment.app.Fragment + public final void onCreate(@Nullable Bundle bundle) { + super.onCreate(bundle); + this.l = 1; + this.m = bundle; + for (Map.Entry entry : this.k.entrySet()) { + entry.getValue().e(bundle != null ? bundle.getBundle(entry.getKey()) : null); + } + } + + @Override // androidx.fragment.app.Fragment + public final void onDestroy() { + super.onDestroy(); + this.l = 5; + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.f(); + } + } + + @Override // androidx.fragment.app.Fragment + public final void onResume() { + super.onResume(); + this.l = 3; + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.g(); + } + } + + @Override // androidx.fragment.app.Fragment + public final void onSaveInstanceState(Bundle bundle) { + super.onSaveInstanceState(bundle); + if (bundle != null) { + for (Map.Entry entry : this.k.entrySet()) { + Bundle bundle2 = new Bundle(); + entry.getValue().h(bundle2); + bundle.putBundle(entry.getKey(), bundle2); + } + } + } + + @Override // androidx.fragment.app.Fragment + public final void onStart() { + super.onStart(); + this.l = 2; + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.i(); + } + } + + @Override // androidx.fragment.app.Fragment + public final void onStop() { + super.onStop(); + this.l = 4; + for (LifecycleCallback lifecycleCallback : this.k.values()) { + lifecycleCallback.j(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/f.java b/app/src/main/java/b/i/a/f/e/h/j/f.java new file mode 100644 index 0000000000..94ffe9a4f8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/f.java @@ -0,0 +1,10 @@ +package b.i.a.f.e.h.j; + +import android.os.Bundle; +import androidx.annotation.Nullable; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public interface f { + void e(int i); + + void h(@Nullable Bundle bundle); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/f0.java b/app/src/main/java/b/i/a/f/e/h/j/f0.java new file mode 100644 index 0000000000..92a407d858 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/f0.java @@ -0,0 +1,17 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.j.g; +import com.google.android.gms.common.ConnectionResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class f0 implements Runnable { + public final /* synthetic */ g0 j; + + public f0(g0 g0Var) { + this.j = g0Var; + } + + @Override // java.lang.Runnable + public final void run() { + ((g.b) this.j.h).b(new ConnectionResult(4)); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/f1.java b/app/src/main/java/b/i/a/f/e/h/j/f1.java new file mode 100644 index 0000000000..5903acc4e5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/f1.java @@ -0,0 +1,38 @@ +package b.i.a.f.e.h.j; + +import android.os.Bundle; +import com.google.android.gms.common.api.internal.LifecycleCallback; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class f1 implements Runnable { + public final /* synthetic */ LifecycleCallback j; + public final /* synthetic */ String k; + public final /* synthetic */ e1 l; + + public f1(e1 e1Var, LifecycleCallback lifecycleCallback, String str) { + this.l = e1Var; + this.j = lifecycleCallback; + this.k = str; + } + + @Override // java.lang.Runnable + public final void run() { + e1 e1Var = this.l; + if (e1Var.l > 0) { + LifecycleCallback lifecycleCallback = this.j; + Bundle bundle = e1Var.m; + lifecycleCallback.e(bundle != null ? bundle.getBundle(this.k) : null); + } + if (this.l.l >= 2) { + this.j.i(); + } + if (this.l.l >= 3) { + this.j.g(); + } + if (this.l.l >= 4) { + this.j.j(); + } + if (this.l.l >= 5) { + this.j.f(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/g.java b/app/src/main/java/b/i/a/f/e/h/j/g.java new file mode 100644 index 0000000000..7222e8a32e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/g.java @@ -0,0 +1,926 @@ +package b.i.a.f.e.h.j; + +import android.app.ActivityManager; +import android.app.Application; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.os.Bundle; +import android.os.DeadObjectException; +import android.os.Handler; +import android.os.HandlerThread; +import android.os.Looper; +import android.os.Message; +import android.os.RemoteException; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import androidx.collection.ArrayMap; +import androidx.collection.ArraySet; +import b.c.a.a0.d; +import b.i.a.f.e.e; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.j.k; +import b.i.a.f.e.k.b; +import b.i.a.f.e.k.s; +import b.i.a.f.e.k.z; +import b.i.a.f.j.b.e.i; +import b.i.a.f.j.b.e.v; +import b.i.a.f.l.f; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.Feature; +import com.google.android.gms.common.GoogleApiAvailability; +import com.google.android.gms.common.api.GoogleApiActivity; +import com.google.android.gms.common.api.Scope; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.api.UnsupportedApiCallException; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Queue; +import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.atomic.AtomicInteger; +import org.checkerframework.checker.initialization.qual.NotOnlyInitialized; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class g implements Handler.Callback { + public static final Status j = new Status(4, "Sign-out occurred while this API call was in progress."); + public static final Status k = new Status(4, "The user must be signed in to make this API call."); + public static final Object l = new Object(); + @Nullable + public static g m; + public long n = 10000; + public final Context o; + public final GoogleApiAvailability p; + public final s q; + public final AtomicInteger r; + + /* renamed from: s reason: collision with root package name */ + public final AtomicInteger f1343s; + public final Map, a> t; + @Nullable + public a1 u; + public final Set> v; + public final Set> w; + @NotOnlyInitialized + + /* renamed from: x reason: collision with root package name */ + public final Handler f1344x; + + /* renamed from: y reason: collision with root package name */ + public volatile boolean f1345y; + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public class a implements c.a, c.b { + public final Queue a = new LinkedList(); + @NotOnlyInitialized + + /* renamed from: b reason: collision with root package name */ + public final a.f f1346b; + public final a.b c; + public final b d; + public final x0 e; + public final Set f = new HashSet(); + public final Map, d0> g = new HashMap(); + public final int h; + @Nullable + public final g0 i; + public boolean j; + public final List k = new ArrayList(); + @Nullable + public ConnectionResult l = null; + + @WorkerThread + public a(b.i.a.f.e.h.b bVar) { + Looper looper = g.this.f1344x.getLooper(); + b.i.a.f.e.k.c a = bVar.a().a(); + b.i.a.f.e.h.a aVar = bVar.f1336b; + d.G(aVar.a != null, "This API was constructed with a SimpleClientBuilder. Use getSimpleClientBuilder"); + a.AbstractC0103a aVar2 = aVar.a; + Objects.requireNonNull(aVar2, "null reference"); + a.f a2 = aVar2.a(bVar.a, looper, a, bVar.c, this, this); + this.f1346b = a2; + if (!(a2 instanceof z)) { + this.c = a2; + this.d = bVar.d; + this.e = new x0(); + this.h = bVar.f; + if (a2.o()) { + this.i = new g0(g.this.o, g.this.f1344x, bVar.a().a()); + } else { + this.i = null; + } + } else { + z zVar = (z) a2; + throw new NoSuchMethodError(); + } + } + + @Nullable + @WorkerThread + public final Feature a(@Nullable Feature[] featureArr) { + if (!(featureArr == null || featureArr.length == 0)) { + Feature[] m = this.f1346b.m(); + if (m == null) { + m = new Feature[0]; + } + ArrayMap arrayMap = new ArrayMap(m.length); + for (Feature feature : m) { + arrayMap.put(feature.j, Long.valueOf(feature.w0())); + } + for (Feature feature2 : featureArr) { + Long l = arrayMap.get(feature2.j); + if (l == null || l.longValue() < feature2.w0()) { + return feature2; + } + } + } + return null; + } + + @WorkerThread + public final void b() { + d.s(g.this.f1344x); + Status status = g.j; + f(status); + x0 x0Var = this.e; + Objects.requireNonNull(x0Var); + x0Var.a(false, status); + for (k.a aVar : (k.a[]) this.g.keySet().toArray(new k.a[0])) { + j(new p0(aVar, new TaskCompletionSource())); + } + n(new ConnectionResult(4)); + if (this.f1346b.j()) { + this.f1346b.i(new x(this)); + } + } + + @WorkerThread + public final void c(int i) { + q(); + this.j = true; + x0 x0Var = this.e; + String n = this.f1346b.n(); + Objects.requireNonNull(x0Var); + StringBuilder sb = new StringBuilder("The connection to Google Play services was lost"); + if (i == 1) { + sb.append(" due to service disconnection."); + } else if (i == 3) { + sb.append(" due to dead object exception."); + } + if (n != null) { + sb.append(" Last reason for disconnect: "); + sb.append(n); + } + x0Var.a(true, new Status(20, sb.toString())); + Handler handler = g.this.f1344x; + Message obtain = Message.obtain(handler, 9, this.d); + Objects.requireNonNull(g.this); + handler.sendMessageDelayed(obtain, 5000); + Handler handler2 = g.this.f1344x; + Message obtain2 = Message.obtain(handler2, 11, this.d); + Objects.requireNonNull(g.this); + handler2.sendMessageDelayed(obtain2, 120000); + g.this.q.a.clear(); + for (d0 d0Var : this.g.values()) { + d0Var.c.run(); + } + } + + @WorkerThread + public final void d(@NonNull ConnectionResult connectionResult, @Nullable Exception exc) { + f fVar; + d.s(g.this.f1344x); + g0 g0Var = this.i; + if (!(g0Var == null || (fVar = g0Var.g) == null)) { + fVar.h(); + } + q(); + g.this.q.a.clear(); + n(connectionResult); + if (connectionResult.l == 4) { + f(g.k); + } else if (this.a.isEmpty()) { + this.l = connectionResult; + } else if (exc != null) { + d.s(g.this.f1344x); + i(null, exc, false); + } else if (!g.this.f1345y) { + Status p = p(connectionResult); + d.s(g.this.f1344x); + i(p, null, false); + } else { + i(p(connectionResult), null, true); + if (!this.a.isEmpty() && !l(connectionResult) && !g.this.c(connectionResult, this.h)) { + if (connectionResult.l == 18) { + this.j = true; + } + if (this.j) { + Handler handler = g.this.f1344x; + Message obtain = Message.obtain(handler, 9, this.d); + Objects.requireNonNull(g.this); + handler.sendMessageDelayed(obtain, 5000); + return; + } + Status p2 = p(connectionResult); + d.s(g.this.f1344x); + i(p2, null, false); + } + } + } + + @Override // b.i.a.f.e.h.j.f + public final void e(int i) { + if (Looper.myLooper() == g.this.f1344x.getLooper()) { + c(i); + } else { + g.this.f1344x.post(new v(this, i)); + } + } + + @WorkerThread + public final void f(Status status) { + d.s(g.this.f1344x); + i(status, null, false); + } + + @Override // b.i.a.f.e.h.j.l + @WorkerThread + public final void g(@NonNull ConnectionResult connectionResult) { + d(connectionResult, null); + } + + @Override // b.i.a.f.e.h.j.f + public final void h(@Nullable Bundle bundle) { + if (Looper.myLooper() == g.this.f1344x.getLooper()) { + t(); + } else { + g.this.f1344x.post(new u(this)); + } + } + + @WorkerThread + public final void i(@Nullable Status status, @Nullable Exception exc, boolean z2) { + d.s(g.this.f1344x); + boolean z3 = true; + boolean z4 = status == null; + if (exc != null) { + z3 = false; + } + if (z4 != z3) { + Iterator it = this.a.iterator(); + while (it.hasNext()) { + s next = it.next(); + if (!z2 || next.a == 2) { + if (status != null) { + next.b(status); + } else { + next.e(exc); + } + it.remove(); + } + } + return; + } + throw new IllegalArgumentException("Status XOR exception should be null"); + } + + @WorkerThread + public final void j(s sVar) { + d.s(g.this.f1344x); + if (!this.f1346b.j()) { + this.a.add(sVar); + ConnectionResult connectionResult = this.l; + if (connectionResult == null || !connectionResult.w0()) { + r(); + } else { + d(this.l, null); + } + } else if (m(sVar)) { + w(); + } else { + this.a.add(sVar); + } + } + + @WorkerThread + public final boolean k(boolean z2) { + d.s(g.this.f1344x); + if (!this.f1346b.j() || this.g.size() != 0) { + return false; + } + x0 x0Var = this.e; + if (!x0Var.a.isEmpty() || !x0Var.f1359b.isEmpty()) { + if (z2) { + w(); + } + return false; + } + this.f1346b.c("Timing out service connection."); + return true; + } + + @WorkerThread + public final boolean l(@NonNull ConnectionResult connectionResult) { + synchronized (g.l) { + g gVar = g.this; + if (gVar.u == null || !gVar.v.contains(this.d)) { + return false; + } + g.this.u.n(connectionResult, this.h); + return true; + } + } + + @WorkerThread + public final boolean m(s sVar) { + if (!(sVar instanceof m0)) { + o(sVar); + return true; + } + m0 m0Var = (m0) sVar; + Feature a = a(m0Var.f(this)); + if (a == null) { + o(sVar); + return true; + } + String name = this.c.getClass().getName(); + String str = a.j; + long w0 = a.w0(); + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(str, name.length() + 77), name, " could not execute call because it requires feature (", str, ", "); + Q.append(w0); + Q.append(")."); + Log.w("GoogleApiManager", Q.toString()); + if (!g.this.f1345y || !m0Var.g(this)) { + m0Var.e(new UnsupportedApiCallException(a)); + return true; + } + c cVar = new c(this.d, a, null); + int indexOf = this.k.indexOf(cVar); + if (indexOf >= 0) { + c cVar2 = this.k.get(indexOf); + g.this.f1344x.removeMessages(15, cVar2); + Handler handler = g.this.f1344x; + Message obtain = Message.obtain(handler, 15, cVar2); + Objects.requireNonNull(g.this); + handler.sendMessageDelayed(obtain, 5000); + return false; + } + this.k.add(cVar); + Handler handler2 = g.this.f1344x; + Message obtain2 = Message.obtain(handler2, 15, cVar); + Objects.requireNonNull(g.this); + handler2.sendMessageDelayed(obtain2, 5000); + Handler handler3 = g.this.f1344x; + Message obtain3 = Message.obtain(handler3, 16, cVar); + Objects.requireNonNull(g.this); + handler3.sendMessageDelayed(obtain3, 120000); + ConnectionResult connectionResult = new ConnectionResult(2, null); + if (l(connectionResult)) { + return false; + } + g.this.c(connectionResult, this.h); + return false; + } + + @WorkerThread + public final void n(ConnectionResult connectionResult) { + Iterator it = this.f.iterator(); + if (it.hasNext()) { + r0 next = it.next(); + if (d.g0(connectionResult, ConnectionResult.j)) { + this.f1346b.f(); + } + Objects.requireNonNull(next); + throw null; + } + this.f.clear(); + } + + @WorkerThread + public final void o(s sVar) { + sVar.d(this.e, s()); + try { + sVar.c(this); + } catch (DeadObjectException unused) { + e(1); + this.f1346b.c("DeadObjectException thrown while running ApiCallRunner."); + } catch (Throwable th) { + throw new IllegalStateException(String.format("Error in GoogleApi implementation for client %s.", this.c.getClass().getName()), th); + } + } + + public final Status p(ConnectionResult connectionResult) { + String str = this.d.f1339b.c; + String valueOf = String.valueOf(connectionResult); + return new Status(17, b.d.b.a.a.k(valueOf.length() + b.d.b.a.a.b(str, 63), "API: ", str, " is not available on this device. Connection failed with: ", valueOf)); + } + + @WorkerThread + public final void q() { + d.s(g.this.f1344x); + this.l = null; + } + + @WorkerThread + public final void r() { + d.s(g.this.f1344x); + if (!this.f1346b.j() && !this.f1346b.e()) { + try { + g gVar = g.this; + int a = gVar.q.a(gVar.o, this.f1346b); + if (a != 0) { + ConnectionResult connectionResult = new ConnectionResult(a, null); + String name = this.c.getClass().getName(); + String valueOf = String.valueOf(connectionResult); + StringBuilder sb = new StringBuilder(name.length() + 35 + valueOf.length()); + sb.append("The service for "); + sb.append(name); + sb.append(" is not available: "); + sb.append(valueOf); + Log.w("GoogleApiManager", sb.toString()); + d(connectionResult, null); + return; + } + g gVar2 = g.this; + a.f fVar = this.f1346b; + b bVar = new b(fVar, this.d); + if (fVar.o()) { + g0 g0Var = this.i; + Objects.requireNonNull(g0Var, "null reference"); + f fVar2 = g0Var.g; + if (fVar2 != null) { + fVar2.h(); + } + g0Var.f.h = Integer.valueOf(System.identityHashCode(g0Var)); + a.AbstractC0103a aVar = g0Var.d; + Context context = g0Var.f1349b; + Looper looper = g0Var.c.getLooper(); + b.i.a.f.e.k.c cVar = g0Var.f; + g0Var.g = (f) aVar.a(context, looper, cVar, cVar.g, g0Var, g0Var); + g0Var.h = bVar; + Set set = g0Var.e; + if (set == null || set.isEmpty()) { + g0Var.c.post(new f0(g0Var)); + } else { + g0Var.g.p(); + } + } + try { + this.f1346b.g(bVar); + } catch (SecurityException e) { + d(new ConnectionResult(10), e); + } + } catch (IllegalStateException e2) { + d(new ConnectionResult(10), e2); + } + } + } + + public final boolean s() { + return this.f1346b.o(); + } + + @WorkerThread + public final void t() { + q(); + n(ConnectionResult.j); + v(); + Iterator it = this.g.values().iterator(); + while (it.hasNext()) { + d0 next = it.next(); + Objects.requireNonNull(next.a); + if (a(null) != null) { + it.remove(); + } else { + try { + m mVar = next.a; + a.b bVar = this.c; + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + v vVar = (v) mVar; + Objects.requireNonNull(vVar); + vVar.f1571b.a((b.i.a.f.j.b.e.f) bVar, i.j(vVar.c, taskCompletionSource)); + } catch (DeadObjectException unused) { + e(3); + this.f1346b.c("DeadObjectException thrown while calling register listener method."); + } catch (RemoteException unused2) { + it.remove(); + } + } + } + u(); + w(); + } + + @WorkerThread + public final void u() { + ArrayList arrayList = new ArrayList(this.a); + int size = arrayList.size(); + int i = 0; + while (i < size) { + Object obj = arrayList.get(i); + i++; + s sVar = (s) obj; + if (!this.f1346b.j()) { + return; + } + if (m(sVar)) { + this.a.remove(sVar); + } + } + } + + @WorkerThread + public final void v() { + if (this.j) { + g.this.f1344x.removeMessages(11, this.d); + g.this.f1344x.removeMessages(9, this.d); + this.j = false; + } + } + + public final void w() { + g.this.f1344x.removeMessages(12, this.d); + Handler handler = g.this.f1344x; + handler.sendMessageDelayed(handler.obtainMessage(12, this.d), g.this.n); + } + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public class b implements h0, b.c { + public final a.f a; + + /* renamed from: b reason: collision with root package name */ + public final b f1347b; + @Nullable + public b.i.a.f.e.k.g c = null; + @Nullable + public Set d = null; + public boolean e = false; + + public b(a.f fVar, b bVar) { + this.a = fVar; + this.f1347b = bVar; + } + + @Override // b.i.a.f.e.k.b.c + public final void a(@NonNull ConnectionResult connectionResult) { + g.this.f1344x.post(new z(this, connectionResult)); + } + + @WorkerThread + public final void b(ConnectionResult connectionResult) { + a aVar = g.this.t.get(this.f1347b); + if (aVar != null) { + d.s(g.this.f1344x); + a.f fVar = aVar.f1346b; + String name = aVar.c.getClass().getName(); + String valueOf = String.valueOf(connectionResult); + fVar.c(b.d.b.a.a.k(valueOf.length() + name.length() + 25, "onSignInFailed for ", name, " with ", valueOf)); + aVar.d(connectionResult, null); + } + } + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static class c { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final Feature f1348b; + + public c(b bVar, Feature feature, t tVar) { + this.a = bVar; + this.f1348b = feature; + } + + public final boolean equals(@Nullable Object obj) { + if (obj != null && (obj instanceof c)) { + c cVar = (c) obj; + if (d.g0(this.a, cVar.a) && d.g0(this.f1348b, cVar.f1348b)) { + return true; + } + } + return false; + } + + public final int hashCode() { + return Arrays.hashCode(new Object[]{this.a, this.f1348b}); + } + + public final String toString() { + b.i.a.f.e.k.k kVar = new b.i.a.f.e.k.k(this, null); + kVar.a("key", this.a); + kVar.a("feature", this.f1348b); + return kVar.toString(); + } + } + + public g(Context context, Looper looper, GoogleApiAvailability googleApiAvailability) { + boolean z2 = true; + this.r = new AtomicInteger(1); + this.f1343s = new AtomicInteger(0); + this.t = new ConcurrentHashMap(5, 0.75f, 1); + this.u = null; + this.v = new ArraySet(); + this.w = new ArraySet(); + this.f1345y = true; + this.o = context; + b.i.a.f.h.e.c cVar = new b.i.a.f.h.e.c(looper, this); + this.f1344x = cVar; + this.p = googleApiAvailability; + this.q = new s(googleApiAvailability); + PackageManager packageManager = context.getPackageManager(); + if (d.f == null) { + d.f = Boolean.valueOf((!b.i.a.f.e.o.f.y0() || !packageManager.hasSystemFeature("android.hardware.type.automotive")) ? false : z2); + } + if (d.f.booleanValue()) { + this.f1345y = false; + } + cVar.sendMessage(cVar.obtainMessage(6)); + } + + public static g a(Context context) { + g gVar; + synchronized (l) { + if (m == null) { + HandlerThread handlerThread = new HandlerThread("GoogleApiHandler", 9); + handlerThread.start(); + Looper looper = handlerThread.getLooper(); + Context applicationContext = context.getApplicationContext(); + Object obj = GoogleApiAvailability.c; + m = new g(applicationContext, looper, GoogleApiAvailability.d); + } + gVar = m; + } + return gVar; + } + + public final void b(@NonNull a1 a1Var) { + synchronized (l) { + if (this.u != a1Var) { + this.u = a1Var; + this.v.clear(); + } + this.v.addAll(a1Var.o); + } + } + + public final boolean c(ConnectionResult connectionResult, int i) { + PendingIntent pendingIntent; + GoogleApiAvailability googleApiAvailability = this.p; + Context context = this.o; + Objects.requireNonNull(googleApiAvailability); + if (connectionResult.w0()) { + pendingIntent = connectionResult.m; + } else { + Intent a2 = googleApiAvailability.a(context, connectionResult.l, null); + pendingIntent = a2 == null ? null : PendingIntent.getActivity(context, 0, a2, 134217728); + } + if (pendingIntent == null) { + return false; + } + int i2 = connectionResult.l; + int i3 = GoogleApiActivity.j; + Intent intent = new Intent(context, GoogleApiActivity.class); + intent.putExtra("pending_intent", pendingIntent); + intent.putExtra("failing_client_id", i); + intent.putExtra("notify_manager", true); + googleApiAvailability.i(context, i2, PendingIntent.getActivity(context, 0, intent, 134217728)); + return true; + } + + @WorkerThread + public final a d(b.i.a.f.e.h.b bVar) { + b bVar2 = bVar.d; + a aVar = this.t.get(bVar2); + if (aVar == null) { + aVar = new a<>(bVar); + this.t.put(bVar2, aVar); + } + if (aVar.s()) { + this.w.add(bVar2); + } + aVar.r(); + return aVar; + } + + @Override // android.os.Handler.Callback + @WorkerThread + public boolean handleMessage(Message message) { + a aVar; + Feature[] f; + int i = message.what; + int i2 = 0; + long j2 = 300000; + switch (i) { + case 1: + if (((Boolean) message.obj).booleanValue()) { + j2 = 10000; + } + this.n = j2; + this.f1344x.removeMessages(12); + for (b bVar : this.t.keySet()) { + Handler handler = this.f1344x; + handler.sendMessageDelayed(handler.obtainMessage(12, bVar), this.n); + } + break; + case 2: + Objects.requireNonNull((r0) message.obj); + throw null; + case 3: + for (a aVar2 : this.t.values()) { + aVar2.q(); + aVar2.r(); + } + break; + case 4: + case 8: + case 13: + c0 c0Var = (c0) message.obj; + a aVar3 = this.t.get(c0Var.c.d); + if (aVar3 == null) { + aVar3 = d(c0Var.c); + } + if (!aVar3.s() || this.f1343s.get() == c0Var.f1340b) { + aVar3.j(c0Var.a); + break; + } else { + c0Var.a.b(j); + aVar3.b(); + break; + } + break; + case 5: + int i3 = message.arg1; + ConnectionResult connectionResult = (ConnectionResult) message.obj; + Iterator> it = this.t.values().iterator(); + while (true) { + if (it.hasNext()) { + aVar = it.next(); + if (aVar.h == i3) { + } + } else { + aVar = null; + } + } + if (aVar != null) { + GoogleApiAvailability googleApiAvailability = this.p; + int i4 = connectionResult.l; + Objects.requireNonNull(googleApiAvailability); + boolean z2 = e.a; + String y0 = ConnectionResult.y0(i4); + String str = connectionResult.n; + Status status = new Status(17, b.d.b.a.a.k(b.d.b.a.a.b(str, b.d.b.a.a.b(y0, 69)), "Error resolution was canceled by the user, original error message: ", y0, ": ", str)); + d.s(g.this.f1344x); + aVar.i(status, null, false); + break; + } else { + StringBuilder sb = new StringBuilder(76); + sb.append("Could not find API instance "); + sb.append(i3); + sb.append(" while trying to fail enqueued calls."); + Log.wtf("GoogleApiManager", sb.toString(), new Exception()); + break; + } + case 6: + if (this.o.getApplicationContext() instanceof Application) { + c.a((Application) this.o.getApplicationContext()); + c cVar = c.j; + t tVar = new t(this); + Objects.requireNonNull(cVar); + synchronized (cVar) { + cVar.m.add(tVar); + } + if (!cVar.l.get()) { + ActivityManager.RunningAppProcessInfo runningAppProcessInfo = new ActivityManager.RunningAppProcessInfo(); + ActivityManager.getMyMemoryState(runningAppProcessInfo); + if (!cVar.l.getAndSet(true) && runningAppProcessInfo.importance > 100) { + cVar.k.set(true); + } + } + if (!cVar.k.get()) { + this.n = 300000; + break; + } + } + break; + case 7: + d((b.i.a.f.e.h.b) message.obj); + break; + case 9: + if (this.t.containsKey(message.obj)) { + a aVar4 = this.t.get(message.obj); + d.s(g.this.f1344x); + if (aVar4.j) { + aVar4.r(); + break; + } + } + break; + case 10: + for (b bVar2 : this.w) { + a remove = this.t.remove(bVar2); + if (remove != null) { + remove.b(); + } + } + this.w.clear(); + break; + case 11: + if (this.t.containsKey(message.obj)) { + a aVar5 = this.t.get(message.obj); + d.s(g.this.f1344x); + if (aVar5.j) { + aVar5.v(); + g gVar = g.this; + Status status2 = gVar.p.c(gVar.o) == 18 ? new Status(8, "Connection timed out while waiting for Google Play services update to complete.") : new Status(8, "API failed to connect while resuming due to an unknown error."); + d.s(g.this.f1344x); + aVar5.i(status2, null, false); + aVar5.f1346b.c("Timing out connection while resuming."); + break; + } + } + break; + case 12: + if (this.t.containsKey(message.obj)) { + this.t.get(message.obj).k(true); + break; + } + break; + case 14: + Objects.requireNonNull((b1) message.obj); + if (!this.t.containsKey(null)) { + throw null; + } + this.t.get(null).k(false); + throw null; + case 15: + c cVar2 = (c) message.obj; + if (this.t.containsKey(cVar2.a)) { + a aVar6 = this.t.get(cVar2.a); + if (aVar6.k.contains(cVar2) && !aVar6.j) { + if (!aVar6.f1346b.j()) { + aVar6.r(); + break; + } else { + aVar6.u(); + break; + } + } + } + break; + case 16: + c cVar3 = (c) message.obj; + if (this.t.containsKey(cVar3.a)) { + a aVar7 = this.t.get(cVar3.a); + if (aVar7.k.remove(cVar3)) { + g.this.f1344x.removeMessages(15, cVar3); + g.this.f1344x.removeMessages(16, cVar3); + Feature feature = cVar3.f1348b; + ArrayList arrayList = new ArrayList(aVar7.a.size()); + for (s sVar : aVar7.a) { + if ((sVar instanceof m0) && (f = ((m0) sVar).f(aVar7)) != null) { + int length = f.length; + int i5 = 0; + while (true) { + if (i5 >= length) { + i5 = -1; + } else if (!d.g0(f[i5], feature)) { + i5++; + } + } + if (i5 >= 0) { + arrayList.add(sVar); + } + } + } + int size = arrayList.size(); + while (i2 < size) { + Object obj = arrayList.get(i2); + i2++; + s sVar2 = (s) obj; + aVar7.a.remove(sVar2); + sVar2.e(new UnsupportedApiCallException(feature)); + } + break; + } + } + break; + default: + b.d.b.a.a.d0(31, "Unknown message id: ", i, "GoogleApiManager"); + return false; + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/g0.java b/app/src/main/java/b/i/a/f/e/h/j/g0.java new file mode 100644 index 0000000000..e3c2f9891f --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/g0.java @@ -0,0 +1,58 @@ +package b.i.a.f.e.h.j; + +import android.content.Context; +import android.os.Bundle; +import android.os.Handler; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.j.g; +import b.i.a.f.l.b.d; +import b.i.a.f.l.f; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.api.Scope; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class g0 extends d implements c.a, c.b { + public static a.AbstractC0103a a = b.i.a.f.l.c.c; + + /* renamed from: b reason: collision with root package name */ + public final Context f1349b; + public final Handler c; + public final a.AbstractC0103a d; + public Set e; + public b.i.a.f.e.k.c f; + public f g; + public h0 h; + + @WorkerThread + public g0(Context context, Handler handler, @NonNull b.i.a.f.e.k.c cVar) { + a.AbstractC0103a aVar = a; + this.f1349b = context; + this.c = handler; + b.c.a.a0.d.z(cVar, "ClientSettings must not be null"); + this.f = cVar; + this.e = cVar.f1367b; + this.d = aVar; + } + + @Override // b.i.a.f.e.h.j.f + @WorkerThread + public final void e(int i) { + this.g.h(); + } + + @Override // b.i.a.f.e.h.j.l + @WorkerThread + public final void g(@NonNull ConnectionResult connectionResult) { + ((g.b) this.h).b(connectionResult); + } + + @Override // b.i.a.f.e.h.j.f + @WorkerThread + public final void h(@Nullable Bundle bundle) { + this.g.d(this); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/h.java b/app/src/main/java/b/i/a/f/e/h/j/h.java new file mode 100644 index 0000000000..b1250f1942 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/h.java @@ -0,0 +1,63 @@ +package b.i.a.f.e.h.j; + +import android.content.Context; +import android.content.res.Resources; +import android.text.TextUtils; +import androidx.annotation.Nullable; +import b.i.a.f.e.k.q0; +import com.google.android.gms.common.R; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +@Deprecated +public final class h { + public static final Object a = new Object(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public static h f1350b; + @Nullable + public final String c; + public final Status d; + public final boolean e; + + public h(Context context) { + Resources resources = context.getResources(); + int i = R.a.common_google_play_services_unknown_issue; + int identifier = resources.getIdentifier("google_app_measurement_enable", "integer", resources.getResourcePackageName(i)); + boolean z2 = false; + if (identifier != 0) { + this.e = !(resources.getInteger(identifier) != 0 ? true : z2); + } else { + this.e = false; + } + q0.a(context); + String str = q0.c; + if (str == null) { + Resources resources2 = context.getResources(); + int identifier2 = resources2.getIdentifier("google_app_id", "string", resources2.getResourcePackageName(i)); + str = identifier2 == 0 ? null : resources2.getString(identifier2); + } + if (TextUtils.isEmpty(str)) { + this.d = new Status(10, "Missing google app id value from from string resources with name google_app_id."); + this.c = null; + return; + } + this.c = str; + this.d = Status.j; + } + + public static h a(String str) { + h hVar; + synchronized (a) { + hVar = f1350b; + if (hVar == null) { + StringBuilder sb = new StringBuilder(str.length() + 34); + sb.append("Initialize must be called before "); + sb.append(str); + sb.append("."); + throw new IllegalStateException(sb.toString()); + } + } + return hVar; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/h0.java b/app/src/main/java/b/i/a/f/e/h/j/h0.java new file mode 100644 index 0000000000..88e1241493 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/h0.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.h.j; + +import androidx.annotation.WorkerThread; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +@WorkerThread +public interface h0 { +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/i.java b/app/src/main/java/b/i/a/f/e/h/j/i.java new file mode 100644 index 0000000000..d4e77d9e3f --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/i.java @@ -0,0 +1,4 @@ +package b.i.a.f.e.h.j; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class i { +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/i0.java b/app/src/main/java/b/i/a/f/e/h/j/i0.java new file mode 100644 index 0000000000..0e4d5a5c4b --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/i0.java @@ -0,0 +1,59 @@ +package b.i.a.f.e.h.j; + +import android.util.Log; +import b.d.b.a.a; +import b.i.a.f.e.h.j.g; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.api.Scope; +import com.google.android.gms.common.internal.zau; +import com.google.android.gms.signin.internal.zam; +import java.util.Objects; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class i0 implements Runnable { + public final /* synthetic */ zam j; + public final /* synthetic */ g0 k; + + public i0(g0 g0Var, zam zam) { + this.k = g0Var; + this.j = zam; + } + + @Override // java.lang.Runnable + public final void run() { + g0 g0Var = this.k; + zam zam = this.j; + Objects.requireNonNull(g0Var); + ConnectionResult connectionResult = zam.k; + if (connectionResult.x0()) { + zau zau = zam.l; + Objects.requireNonNull(zau, "null reference"); + ConnectionResult connectionResult2 = zau.l; + if (!connectionResult2.x0()) { + String valueOf = String.valueOf(connectionResult2); + Log.wtf("SignInCoordinator", a.i(valueOf.length() + 48, "Sign-in succeeded with resolve account failure: ", valueOf), new Exception()); + ((g.b) g0Var.h).b(connectionResult2); + g0Var.g.h(); + return; + } + h0 h0Var = g0Var.h; + b.i.a.f.e.k.g w0 = zau.w0(); + Set set = g0Var.e; + g.b bVar = (g.b) h0Var; + Objects.requireNonNull(bVar); + if (w0 == null || set == null) { + Log.wtf("GoogleApiManager", "Received null response from onSignInSuccess", new Exception()); + bVar.b(new ConnectionResult(4)); + } else { + bVar.c = w0; + bVar.d = set; + if (bVar.e) { + bVar.a.b(w0, set); + } + } + } else { + ((g.b) g0Var.h).b(connectionResult); + } + g0Var.g.h(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/j.java b/app/src/main/java/b/i/a/f/e/h/j/j.java new file mode 100644 index 0000000000..fd5642cc2b --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/j.java @@ -0,0 +1,19 @@ +package b.i.a.f.e.h.j; + +import android.app.Activity; +import android.content.Intent; +import androidx.annotation.RecentlyNonNull; +import androidx.annotation.RecentlyNullable; +import com.google.android.gms.common.api.internal.LifecycleCallback; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface j { + void a(@RecentlyNonNull String str, @RecentlyNonNull LifecycleCallback lifecycleCallback); + + @RecentlyNullable + T d(@RecentlyNonNull String str, @RecentlyNonNull Class cls); + + @RecentlyNonNull + Activity e(); + + void startActivityForResult(@RecentlyNonNull Intent intent, @RecentlyNonNull int i); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/k.java b/app/src/main/java/b/i/a/f/e/h/j/k.java new file mode 100644 index 0000000000..fe424d87ee --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/k.java @@ -0,0 +1,93 @@ +package b.i.a.f.e.h.j; + +import android.os.Looper; +import android.os.Message; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class k { + public final c a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public volatile L f1351b; + @Nullable + public volatile a c; + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static final class a { + public final L a; + + /* renamed from: b reason: collision with root package name */ + public final String f1352b; + + public a(L l, String str) { + this.a = l; + this.f1352b = str; + } + + public final boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.f1352b.equals(aVar.f1352b); + } + + public final int hashCode() { + return this.f1352b.hashCode() + (System.identityHashCode(this.a) * 31); + } + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public interface b { + void a(L l); + + void b(); + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public final class c extends b.i.a.f.h.e.c { + public c(Looper looper) { + super(looper); + } + + @Override // android.os.Handler + public final void handleMessage(Message message) { + boolean z2 = true; + if (message.what != 1) { + z2 = false; + } + d.l(z2); + b bVar = (b) message.obj; + L l = k.this.f1351b; + if (l == null) { + bVar.b(); + return; + } + try { + bVar.a(l); + } catch (RuntimeException e) { + bVar.b(); + throw e; + } + } + } + + public k(@NonNull Looper looper, @NonNull L l, @NonNull String str) { + this.a = new c(looper); + d.z(l, "Listener must not be null"); + this.f1351b = l; + d.w(str); + this.c = new a<>(l, str); + } + + public final void a(b bVar) { + d.z(bVar, "Notifier must not be null"); + this.a.sendMessage(this.a.obtainMessage(1, bVar)); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/k0.java b/app/src/main/java/b/i/a/f/e/h/j/k0.java new file mode 100644 index 0000000000..41be3ec528 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/k0.java @@ -0,0 +1,24 @@ +package b.i.a.f.e.h.j; + +import android.os.RemoteException; +import b.i.a.f.e.h.j.p; +import b.i.a.f.h.b.k; +import com.google.android.gms.common.Feature; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class k0 extends p { + public final /* synthetic */ p.a c; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k0(p.a aVar, Feature[] featureArr, boolean z2) { + super(featureArr, z2, null); + this.c = aVar; + } + + @Override // b.i.a.f.e.h.j.p + public final void c(A a, TaskCompletionSource taskCompletionSource) throws RemoteException { + Objects.requireNonNull(this.c.a); + a.w().Y(new k(taskCompletionSource)); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/l.java b/app/src/main/java/b/i/a/f/e/h/j/l.java new file mode 100644 index 0000000000..092ea3e150 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/l.java @@ -0,0 +1,8 @@ +package b.i.a.f.e.h.j; + +import androidx.annotation.NonNull; +import com.google.android.gms.common.ConnectionResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public interface l { + void g(@NonNull ConnectionResult connectionResult); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/l0.java b/app/src/main/java/b/i/a/f/e/h/j/l0.java new file mode 100644 index 0000000000..5df57c4e4a --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/l0.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.h.j; + +import com.google.android.gms.common.api.internal.BasePendingResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public interface l0 { + void a(BasePendingResult basePendingResult); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/m.java b/app/src/main/java/b/i/a/f/e/h/j/m.java new file mode 100644 index 0000000000..50add5c2bf --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/m.java @@ -0,0 +1,12 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.a.b; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class m { + public final k a; + + public m(k kVar) { + this.a = kVar; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/m0.java b/app/src/main/java/b/i/a/f/e/h/j/m0.java new file mode 100644 index 0000000000..520359afa3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/m0.java @@ -0,0 +1,16 @@ +package b.i.a.f.e.h.j; + +import androidx.annotation.Nullable; +import b.i.a.f.e.h.j.g; +import com.google.android.gms.common.Feature; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class m0 extends s { + public m0(int i) { + super(i); + } + + @Nullable + public abstract Feature[] f(g.a aVar); + + public abstract boolean g(g.a aVar); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/n.java b/app/src/main/java/b/i/a/f/e/h/j/n.java new file mode 100644 index 0000000000..1575e2f57c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/n.java @@ -0,0 +1,9 @@ +package b.i.a.f.e.h.j; + +import androidx.annotation.RecentlyNonNull; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface n { + @RecentlyNonNull + Exception a(@RecentlyNonNull Status status); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/n0.java b/app/src/main/java/b/i/a/f/e/h/j/n0.java new file mode 100644 index 0000000000..bc128b8f5b --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/n0.java @@ -0,0 +1,54 @@ +package b.i.a.f.e.h.j; + +import android.os.RemoteException; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.j.g; +import b.i.a.f.e.h.j.k; +import b.i.a.f.j.b.e.f; +import b.i.a.f.j.b.e.i; +import b.i.a.f.j.b.e.v; +import com.google.android.gms.common.Feature; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class n0 extends e0 { + public final d0 c; + + public n0(d0 d0Var, TaskCompletionSource taskCompletionSource) { + super(3, taskCompletionSource); + this.c = d0Var; + } + + @Override // b.i.a.f.e.h.j.s + public final /* bridge */ /* synthetic */ void d(@NonNull x0 x0Var, boolean z2) { + } + + @Override // b.i.a.f.e.h.j.m0 + @Nullable + public final Feature[] f(g.a aVar) { + Objects.requireNonNull(this.c.a); + return null; + } + + @Override // b.i.a.f.e.h.j.m0 + public final boolean g(g.a aVar) { + Objects.requireNonNull(this.c.a); + return false; + } + + @Override // b.i.a.f.e.h.j.e0 + public final void h(g.a aVar) throws RemoteException { + m mVar = this.c.a; + a.f fVar = aVar.f1346b; + TaskCompletionSource taskCompletionSource = this.f1342b; + v vVar = (v) mVar; + Objects.requireNonNull(vVar); + vVar.f1571b.a((f) fVar, i.j(vVar.c, taskCompletionSource)); + k.a aVar2 = this.c.a.a.c; + if (aVar2 != null) { + aVar.g.put(aVar2, this.c); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/o.java b/app/src/main/java/b/i/a/f/e/h/j/o.java new file mode 100644 index 0000000000..c3ec48de9a --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/o.java @@ -0,0 +1,17 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.c; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.api.internal.BasePendingResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class o extends BasePendingResult { + public o(c cVar) { + super(cVar); + } + + /* Return type fixed from 'b.i.a.f.e.h.h' to match base method */ + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public /* synthetic */ Status d(Status status) { + return status; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/o0.java b/app/src/main/java/b/i/a/f/e/h/j/o0.java new file mode 100644 index 0000000000..2e5d1e1c85 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/o0.java @@ -0,0 +1,49 @@ +package b.i.a.f.e.h.j; + +import android.os.DeadObjectException; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.h; +import b.i.a.f.e.h.j.d; +import b.i.a.f.e.h.j.g; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class o0> extends s { + + /* renamed from: b reason: collision with root package name */ + public final A f1353b; + + public o0(int i, A a) { + super(i); + b.c.a.a0.d.z(a, "Null methods are not runnable."); + this.f1353b = a; + } + + @Override // b.i.a.f.e.h.j.s + public final void b(@NonNull Status status) { + this.f1353b.a(status); + } + + @Override // b.i.a.f.e.h.j.s + public final void c(g.a aVar) throws DeadObjectException { + try { + this.f1353b.l(aVar.f1346b); + } catch (RuntimeException e) { + e(e); + } + } + + @Override // b.i.a.f.e.h.j.s + public final void d(@NonNull x0 x0Var, boolean z2) { + A a = this.f1353b; + x0Var.a.put(a, Boolean.valueOf(z2)); + a.c(new z0(x0Var, a)); + } + + @Override // b.i.a.f.e.h.j.s + public final void e(@NonNull Exception exc) { + String simpleName = exc.getClass().getSimpleName(); + String localizedMessage = exc.getLocalizedMessage(); + this.f1353b.a(new Status(10, b.d.b.a.a.j(b.d.b.a.a.b(localizedMessage, simpleName.length() + 2), simpleName, ": ", localizedMessage))); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/p.java b/app/src/main/java/b/i/a/f/e/h/j/p.java new file mode 100644 index 0000000000..3f0b903506 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/p.java @@ -0,0 +1,41 @@ +package b.i.a.f.e.h.j; + +import android.os.RemoteException; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.a.b; +import b.i.a.f.h.b.j; +import com.google.android.gms.common.Feature; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class p { + @Nullable + public final Feature[] a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1354b; + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static class a { + public j> a; + + /* renamed from: b reason: collision with root package name */ + public Feature[] f1355b; + + public a(j0 j0Var) { + } + } + + @Deprecated + public p() { + this.a = null; + this.f1354b = false; + } + + public p(Feature[] featureArr, boolean z2, j0 j0Var) { + this.a = featureArr; + this.f1354b = z2; + } + + public abstract void c(A a2, TaskCompletionSource taskCompletionSource) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/p0.java b/app/src/main/java/b/i/a/f/e/h/j/p0.java new file mode 100644 index 0000000000..2191175e1d --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/p0.java @@ -0,0 +1,66 @@ +package b.i.a.f.e.h.j; + +import android.os.RemoteException; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.j.g; +import b.i.a.f.e.h.j.k; +import b.i.a.f.j.b.e.f; +import b.i.a.f.j.b.e.i; +import b.i.a.f.j.b.e.x; +import com.google.android.gms.common.Feature; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class p0 extends e0 { + public final k.a c; + + public p0(k.a aVar, TaskCompletionSource taskCompletionSource) { + super(4, taskCompletionSource); + this.c = aVar; + } + + @Override // b.i.a.f.e.h.j.s + public final /* bridge */ /* synthetic */ void d(@NonNull x0 x0Var, boolean z2) { + } + + @Override // b.i.a.f.e.h.j.m0 + @Nullable + public final Feature[] f(g.a aVar) { + d0 d0Var = aVar.g.get(this.c); + if (d0Var == null) { + return null; + } + Objects.requireNonNull(d0Var.a); + return null; + } + + @Override // b.i.a.f.e.h.j.m0 + public final boolean g(g.a aVar) { + d0 d0Var = aVar.g.get(this.c); + if (d0Var == null) { + return false; + } + Objects.requireNonNull(d0Var.a); + return false; + } + + @Override // b.i.a.f.e.h.j.e0 + public final void h(g.a aVar) throws RemoteException { + d0 remove = aVar.g.remove(this.c); + if (remove != null) { + q qVar = remove.f1341b; + a.f fVar = aVar.f1346b; + TaskCompletionSource taskCompletionSource = this.f1342b; + x xVar = (x) qVar; + Objects.requireNonNull(xVar); + xVar.f1572b.a((f) fVar, i.j(xVar.c, taskCompletionSource)); + k kVar = remove.a.a; + kVar.f1351b = null; + kVar.c = null; + return; + } + this.f1342b.b(Boolean.FALSE); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/q.java b/app/src/main/java/b/i/a/f/e/h/j/q.java new file mode 100644 index 0000000000..7eba1fb3f4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/q.java @@ -0,0 +1,13 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.a.b; +import b.i.a.f.e.h.j.k; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class q { + public final k.a a; + + public q(k.a aVar) { + this.a = aVar; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/q0.java b/app/src/main/java/b/i/a/f/e/h/j/q0.java new file mode 100644 index 0000000000..16cc30b22b --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/q0.java @@ -0,0 +1,75 @@ +package b.i.a.f.e.h.j; + +import android.os.DeadObjectException; +import android.os.RemoteException; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.j.g; +import b.i.a.f.n.b0; +import com.google.android.gms.common.Feature; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class q0 extends m0 { + + /* renamed from: b reason: collision with root package name */ + public final p f1356b; + public final TaskCompletionSource c; + public final n d; + + public q0(int i, p pVar, TaskCompletionSource taskCompletionSource, n nVar) { + super(i); + this.c = taskCompletionSource; + this.f1356b = pVar; + this.d = nVar; + if (i == 2 && pVar.f1354b) { + throw new IllegalArgumentException("Best-effort write calls cannot pass methods that should auto-resolve missing features."); + } + } + + @Override // b.i.a.f.e.h.j.s + public final void b(@NonNull Status status) { + this.c.a(this.d.a(status)); + } + + @Override // b.i.a.f.e.h.j.s + public final void c(g.a aVar) throws DeadObjectException { + try { + this.f1356b.c(aVar.f1346b, this.c); + } catch (DeadObjectException e) { + throw e; + } catch (RemoteException e2) { + this.c.a(this.d.a(s.a(e2))); + } catch (RuntimeException e3) { + this.c.a(e3); + } + } + + @Override // b.i.a.f.e.h.j.s + public final void d(@NonNull x0 x0Var, boolean z2) { + TaskCompletionSource taskCompletionSource = this.c; + x0Var.f1359b.put(taskCompletionSource, Boolean.valueOf(z2)); + b0 b0Var = taskCompletionSource.a; + y0 y0Var = new y0(x0Var, taskCompletionSource); + Objects.requireNonNull(b0Var); + b0Var.c(b.i.a.f.n.g.a, y0Var); + } + + @Override // b.i.a.f.e.h.j.s + public final void e(@NonNull Exception exc) { + this.c.a(exc); + } + + @Override // b.i.a.f.e.h.j.m0 + @Nullable + public final Feature[] f(g.a aVar) { + return this.f1356b.a; + } + + @Override // b.i.a.f.e.h.j.m0 + public final boolean g(g.a aVar) { + return this.f1356b.f1354b; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/r.java b/app/src/main/java/b/i/a/f/e/h/j/r.java new file mode 100644 index 0000000000..95e67a78f8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/r.java @@ -0,0 +1,8 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.c; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class r extends c { + public r(String str) { + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/r0.java b/app/src/main/java/b/i/a/f/e/h/j/r0.java new file mode 100644 index 0000000000..e903445e6d --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/r0.java @@ -0,0 +1,4 @@ +package b.i.a.f.e.h.j; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class r0 { +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/s.java b/app/src/main/java/b/i/a/f/e/h/j/s.java new file mode 100644 index 0000000000..70be2080ce --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/s.java @@ -0,0 +1,27 @@ +package b.i.a.f.e.h.j; + +import android.os.DeadObjectException; +import android.os.RemoteException; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.j.g; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class s { + public final int a; + + public s(int i) { + this.a = i; + } + + public static Status a(RemoteException remoteException) { + return new Status(19, remoteException.getClass().getSimpleName() + ": " + remoteException.getLocalizedMessage()); + } + + public abstract void b(@NonNull Status status); + + public abstract void c(g.a aVar) throws DeadObjectException; + + public abstract void d(@NonNull x0 x0Var, boolean z2); + + public abstract void e(@NonNull Exception exc); +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/s0.java b/app/src/main/java/b/i/a/f/e/h/j/s0.java new file mode 100644 index 0000000000..d40d3b4de5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/s0.java @@ -0,0 +1,17 @@ +package b.i.a.f.e.h.j; + +import com.google.android.gms.common.ConnectionResult; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class s0 { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final ConnectionResult f1357b; + + public s0(ConnectionResult connectionResult, int i) { + Objects.requireNonNull(connectionResult, "null reference"); + this.f1357b = connectionResult; + this.a = i; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/t.java b/app/src/main/java/b/i/a/f/e/h/j/t.java new file mode 100644 index 0000000000..403bd6a1c2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/t.java @@ -0,0 +1,18 @@ +package b.i.a.f.e.h.j; + +import android.os.Handler; +import b.i.a.f.e.h.j.c; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class t implements c.a { + public final /* synthetic */ g a; + + public t(g gVar) { + this.a = gVar; + } + + @Override // b.i.a.f.e.h.j.c.a + public final void a(boolean z2) { + Handler handler = this.a.f1344x; + handler.sendMessage(handler.obtainMessage(1, Boolean.valueOf(z2))); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/t0.java b/app/src/main/java/b/i/a/f/e/h/j/t0.java new file mode 100644 index 0000000000..06ff56794b --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/t0.java @@ -0,0 +1,117 @@ +package b.i.a.f.e.h.j; + +import android.app.PendingIntent; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; +import b.i.a.f.h.e.c; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.GoogleApiAvailability; +import com.google.android.gms.common.api.internal.LifecycleCallback; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class t0 extends LifecycleCallback implements DialogInterface.OnCancelListener { + public volatile boolean k; + public final AtomicReference l = new AtomicReference<>(null); + public final Handler m = new c(Looper.getMainLooper()); + public final GoogleApiAvailability n; + + public t0(j jVar, GoogleApiAvailability googleApiAvailability) { + super(jVar); + this.n = googleApiAvailability; + } + + @Override // com.google.android.gms.common.api.internal.LifecycleCallback + public void d(int i, int i2, Intent intent) { + s0 s0Var = this.l.get(); + boolean z2 = false; + if (i != 1) { + if (i == 2) { + int c = this.n.c(b()); + if (c == 0) { + z2 = true; + } + if (s0Var != null) { + if (s0Var.f1357b.l == 18 && c == 18) { + return; + } + } else { + return; + } + } + } else if (i2 == -1) { + z2 = true; + } else if (i2 == 0) { + if (s0Var != null) { + int i3 = 13; + if (intent != null) { + i3 = intent.getIntExtra("<>", 13); + } + s0 s0Var2 = new s0(new ConnectionResult(i3, null, s0Var.f1357b.toString()), s0Var.a); + this.l.set(s0Var2); + s0Var = s0Var2; + } else { + return; + } + } + if (z2) { + m(); + } else if (s0Var != null) { + l(s0Var.f1357b, s0Var.a); + } + } + + @Override // com.google.android.gms.common.api.internal.LifecycleCallback + public void e(Bundle bundle) { + if (bundle != null) { + this.l.set(bundle.getBoolean("resolving_error", false) ? new s0(new ConnectionResult(bundle.getInt("failed_status"), (PendingIntent) bundle.getParcelable("failed_resolution")), bundle.getInt("failed_client_id", -1)) : null); + } + } + + @Override // com.google.android.gms.common.api.internal.LifecycleCallback + public void h(Bundle bundle) { + s0 s0Var = this.l.get(); + if (s0Var != null) { + bundle.putBoolean("resolving_error", true); + bundle.putInt("failed_client_id", s0Var.a); + bundle.putInt("failed_status", s0Var.f1357b.l); + bundle.putParcelable("failed_resolution", s0Var.f1357b.m); + } + } + + @Override // com.google.android.gms.common.api.internal.LifecycleCallback + public void i() { + this.k = true; + } + + @Override // com.google.android.gms.common.api.internal.LifecycleCallback + public void j() { + this.k = false; + } + + public abstract void k(); + + public abstract void l(ConnectionResult connectionResult, int i); + + public final void m() { + this.l.set(null); + k(); + } + + public final void n(ConnectionResult connectionResult, int i) { + s0 s0Var = new s0(connectionResult, i); + if (this.l.compareAndSet(null, s0Var)) { + this.m.post(new v0(this, s0Var)); + } + } + + @Override // android.content.DialogInterface.OnCancelListener + public void onCancel(DialogInterface dialogInterface) { + ConnectionResult connectionResult = new ConnectionResult(13, null); + s0 s0Var = this.l.get(); + l(connectionResult, s0Var == null ? -1 : s0Var.a); + m(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/u.java b/app/src/main/java/b/i/a/f/e/h/j/u.java new file mode 100644 index 0000000000..b7a1cd66a6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/u.java @@ -0,0 +1,16 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.j.g; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class u implements Runnable { + public final /* synthetic */ g.a j; + + public u(g.a aVar) { + this.j = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.t(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/u0.java b/app/src/main/java/b/i/a/f/e/h/j/u0.java new file mode 100644 index 0000000000..0f54cf12ad --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/u0.java @@ -0,0 +1,15 @@ +package b.i.a.f.e.h.j; + +import android.app.Dialog; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class u0 { + public final /* synthetic */ Dialog a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ v0 f1358b; + + public u0(v0 v0Var, Dialog dialog) { + this.f1358b = v0Var; + this.a = dialog; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/v.java b/app/src/main/java/b/i/a/f/e/h/j/v.java new file mode 100644 index 0000000000..adce763805 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/v.java @@ -0,0 +1,18 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.j.g; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class v implements Runnable { + public final /* synthetic */ int j; + public final /* synthetic */ g.a k; + + public v(g.a aVar, int i) { + this.k = aVar; + this.j = i; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.c(this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/v0.java b/app/src/main/java/b/i/a/f/e/h/j/v0.java new file mode 100644 index 0000000000..f868d4e592 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/v0.java @@ -0,0 +1,86 @@ +package b.i.a.f.e.h.j; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.PendingIntent; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.IntentFilter; +import android.widget.ProgressBar; +import androidx.annotation.MainThread; +import b.i.a.f.e.e; +import b.i.a.f.e.k.m; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.GoogleApiAvailability; +import com.google.android.gms.common.api.GoogleApiActivity; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class v0 implements Runnable { + public final s0 j; + public final /* synthetic */ t0 k; + + public v0(t0 t0Var, s0 s0Var) { + this.k = t0Var; + this.j = s0Var; + } + + @Override // java.lang.Runnable + @MainThread + public final void run() { + if (this.k.k) { + ConnectionResult connectionResult = this.j.f1357b; + if (connectionResult.w0()) { + t0 t0Var = this.k; + j jVar = t0Var.j; + Activity b2 = t0Var.b(); + PendingIntent pendingIntent = connectionResult.m; + Objects.requireNonNull(pendingIntent, "null reference"); + int i = this.j.a; + int i2 = GoogleApiActivity.j; + Intent intent = new Intent(b2, GoogleApiActivity.class); + intent.putExtra("pending_intent", pendingIntent); + intent.putExtra("failing_client_id", i); + intent.putExtra("notify_manager", false); + jVar.startActivityForResult(intent, 1); + } else if (this.k.n.d(connectionResult.l)) { + t0 t0Var2 = this.k; + GoogleApiAvailability googleApiAvailability = t0Var2.n; + Activity b3 = t0Var2.b(); + t0 t0Var3 = this.k; + googleApiAvailability.j(b3, t0Var3.j, connectionResult.l, t0Var3); + } else if (connectionResult.l == 18) { + Activity b4 = this.k.b(); + t0 t0Var4 = this.k; + ProgressBar progressBar = new ProgressBar(b4, null, 16842874); + progressBar.setIndeterminate(true); + progressBar.setVisibility(0); + AlertDialog.Builder builder = new AlertDialog.Builder(b4); + builder.setView(progressBar); + builder.setMessage(m.e(b4, 18)); + builder.setPositiveButton("", (DialogInterface.OnClickListener) null); + AlertDialog create = builder.create(); + GoogleApiAvailability.h(b4, create, "GooglePlayServicesUpdatingDialog", t0Var4); + t0 t0Var5 = this.k; + GoogleApiAvailability googleApiAvailability2 = t0Var5.n; + Context applicationContext = t0Var5.b().getApplicationContext(); + u0 u0Var = new u0(this, create); + Objects.requireNonNull(googleApiAvailability2); + IntentFilter intentFilter = new IntentFilter("android.intent.action.PACKAGE_ADDED"); + intentFilter.addDataScheme("package"); + a0 a0Var = new a0(u0Var); + applicationContext.registerReceiver(a0Var, intentFilter); + a0Var.a = applicationContext; + if (!e.b(applicationContext, "com.google.android.gms")) { + this.k.m(); + if (create.isShowing()) { + create.dismiss(); + } + a0Var.a(); + } + } else { + this.k.l(connectionResult, this.j.a); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/w.java b/app/src/main/java/b/i/a/f/e/h/j/w.java new file mode 100644 index 0000000000..ecef664137 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/w.java @@ -0,0 +1,17 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.j.g; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class w implements Runnable { + public final /* synthetic */ x j; + + public w(x xVar) { + this.j = xVar; + } + + @Override // java.lang.Runnable + public final void run() { + g.a aVar = this.j.a; + aVar.f1346b.c(aVar.c.getClass().getName().concat(" disconnecting because it was signed out.")); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/w0.java b/app/src/main/java/b/i/a/f/e/h/j/w0.java new file mode 100644 index 0000000000..6c872355fe --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/w0.java @@ -0,0 +1,9 @@ +package b.i.a.f.e.h.j; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class w0 extends ThreadLocal { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.lang.ThreadLocal + public final /* synthetic */ Boolean initialValue() { + return Boolean.FALSE; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/x.java b/app/src/main/java/b/i/a/f/e/h/j/x.java new file mode 100644 index 0000000000..011bce0b5d --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/x.java @@ -0,0 +1,12 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.j.g; +import b.i.a.f.e.k.b; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class x implements b.e { + public final /* synthetic */ g.a a; + + public x(g.a aVar) { + this.a = aVar; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/x0.java b/app/src/main/java/b/i/a/f/e/h/j/x0.java new file mode 100644 index 0000000000..59da7d0d2a --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/x0.java @@ -0,0 +1,38 @@ +package b.i.a.f.e.h.j; + +import com.google.android.gms.common.api.ApiException; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.api.internal.BasePendingResult; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.WeakHashMap; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class x0 { + public final Map, Boolean> a = Collections.synchronizedMap(new WeakHashMap()); + + /* renamed from: b reason: collision with root package name */ + public final Map, Boolean> f1359b = Collections.synchronizedMap(new WeakHashMap()); + + public final void a(boolean z2, Status status) { + HashMap hashMap; + HashMap hashMap2; + synchronized (this.a) { + hashMap = new HashMap(this.a); + } + synchronized (this.f1359b) { + hashMap2 = new HashMap(this.f1359b); + } + for (Map.Entry entry : hashMap.entrySet()) { + if (z2 || ((Boolean) entry.getValue()).booleanValue()) { + ((BasePendingResult) entry.getKey()).e(status); + } + } + for (Map.Entry entry2 : hashMap2.entrySet()) { + if (z2 || ((Boolean) entry2.getValue()).booleanValue()) { + ((TaskCompletionSource) entry2.getKey()).a(new ApiException(status)); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/y.java b/app/src/main/java/b/i/a/f/e/h/j/y.java new file mode 100644 index 0000000000..cbb5b83032 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/y.java @@ -0,0 +1,38 @@ +package b.i.a.f.e.h.j; + +import android.os.Looper; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.a.d; +import b.i.a.f.e.h.b; +import b.i.a.f.e.h.h; +import org.checkerframework.checker.initialization.qual.NotOnlyInitialized; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class y extends r { + @NotOnlyInitialized + + /* renamed from: b reason: collision with root package name */ + public final b f1360b; + + public y(b bVar) { + super("Method is not supported by connectionless client. APIs supporting connectionless client must not call this method."); + this.f1360b = bVar; + } + + @Override // b.i.a.f.e.h.c + public final > T a(@NonNull T t) { + this.f1360b.d(0, t); + return t; + } + + @Override // b.i.a.f.e.h.c + public final > T b(@NonNull T t) { + this.f1360b.d(1, t); + return t; + } + + @Override // b.i.a.f.e.h.c + public final Looper c() { + return this.f1360b.e; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/y0.java b/app/src/main/java/b/i/a/f/e/h/j/y0.java new file mode 100644 index 0000000000..4c838d8e11 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/y0.java @@ -0,0 +1,23 @@ +package b.i.a.f.e.h.j; + +import androidx.annotation.NonNull; +import b.i.a.f.n.c; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class y0 implements c { + public final /* synthetic */ TaskCompletionSource a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ x0 f1361b; + + public y0(x0 x0Var, TaskCompletionSource taskCompletionSource) { + this.f1361b = x0Var; + this.a = taskCompletionSource; + } + + @Override // b.i.a.f.n.c + public final void onComplete(@NonNull Task task) { + this.f1361b.f1359b.remove(this.a); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/z.java b/app/src/main/java/b/i/a/f/e/h/j/z.java new file mode 100644 index 0000000000..9e5d0a43d0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/z.java @@ -0,0 +1,47 @@ +package b.i.a.f.e.h.j; + +import android.util.Log; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.j.g; +import com.google.android.gms.common.ConnectionResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class z implements Runnable { + public final /* synthetic */ ConnectionResult j; + public final /* synthetic */ g.b k; + + public z(g.b bVar, ConnectionResult connectionResult) { + this.k = bVar; + this.j = connectionResult; + } + + @Override // java.lang.Runnable + public final void run() { + b.i.a.f.e.k.g gVar; + g.b bVar = this.k; + g.a aVar = g.this.t.get(bVar.f1347b); + if (aVar != null) { + if (this.j.x0()) { + g.b bVar2 = this.k; + bVar2.e = true; + if (bVar2.a.o()) { + g.b bVar3 = this.k; + if (bVar3.e && (gVar = bVar3.c) != null) { + bVar3.a.b(gVar, bVar3.d); + return; + } + return; + } + try { + a.f fVar = this.k.a; + fVar.b(null, fVar.a()); + } catch (SecurityException e) { + Log.e("GoogleApiManager", "Failed to get service from broker. ", e); + this.k.a.c("Failed to get service from broker."); + aVar.d(new ConnectionResult(10), null); + } + } else { + aVar.d(this.j, null); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/j/z0.java b/app/src/main/java/b/i/a/f/e/h/j/z0.java new file mode 100644 index 0000000000..fe3c3a5446 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/j/z0.java @@ -0,0 +1,22 @@ +package b.i.a.f.e.h.j; + +import b.i.a.f.e.h.d; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.api.internal.BasePendingResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class z0 implements d.a { + public final /* synthetic */ BasePendingResult a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ x0 f1362b; + + public z0(x0 x0Var, BasePendingResult basePendingResult) { + this.f1362b = x0Var; + this.a = basePendingResult; + } + + @Override // b.i.a.f.e.h.d.a + public final void a(Status status) { + this.f1362b.a.remove(this.a); + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/k.java b/app/src/main/java/b/i/a/f/e/h/k.java new file mode 100644 index 0000000000..ce274eb9fe --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/k.java @@ -0,0 +1,9 @@ +package b.i.a.f.e.h; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final /* synthetic */ class k implements Runnable { + public static final Runnable j = new k(); + + @Override // java.lang.Runnable + public final void run() { + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/l.java b/app/src/main/java/b/i/a/f/e/h/l.java new file mode 100644 index 0000000000..3d83102ee4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/l.java @@ -0,0 +1,35 @@ +package b.i.a.f.e.h; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.api.Scope; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class l implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final Scope createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + String str = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + i = d.E1(parcel, readInt); + } else if (i2 != 2) { + d.b2(parcel, readInt); + } else { + str = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new Scope(i, str); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ Scope[] newArray(int i) { + return new Scope[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/h/m.java b/app/src/main/java/b/i/a/f/e/h/m.java new file mode 100644 index 0000000000..4cf9c27967 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/h/m.java @@ -0,0 +1,46 @@ +package b.i.a.f.e.h; + +import android.app.PendingIntent; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class m implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final Status createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + PendingIntent pendingIntent = null; + ConnectionResult connectionResult = null; + int i = 0; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + i2 = d.E1(parcel, readInt); + } else if (i3 == 2) { + str = d.Q(parcel, readInt); + } else if (i3 == 3) { + pendingIntent = (PendingIntent) d.P(parcel, readInt, PendingIntent.CREATOR); + } else if (i3 == 4) { + connectionResult = (ConnectionResult) d.P(parcel, readInt, ConnectionResult.CREATOR); + } else if (i3 != 1000) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new Status(i, i2, str, pendingIntent, connectionResult); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ Status[] newArray(int i) { + return new Status[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/i/a.java b/app/src/main/java/b/i/a/f/e/i/a.java new file mode 100644 index 0000000000..a8f965dd74 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/i/a.java @@ -0,0 +1,12 @@ +package b.i.a.f.e.i; + +import androidx.annotation.RecentlyNonNull; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public abstract class a { + @RecentlyNonNull + public final T a; + + public a(@RecentlyNonNull String str, @RecentlyNonNull T t) { + this.a = t; + } +} diff --git a/app/src/main/java/b/i/a/f/e/i/b.java b/app/src/main/java/b/i/a/f/e/i/b.java new file mode 100644 index 0000000000..dad46f65b1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/i/b.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.i; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class b extends a { + public b(String str, Long l) { + super(str, l); + } +} diff --git a/app/src/main/java/b/i/a/f/e/i/c.java b/app/src/main/java/b/i/a/f/e/i/c.java new file mode 100644 index 0000000000..97b6d46ec5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/i/c.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.i; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class c extends a { + public c(String str, Boolean bool) { + super(str, bool); + } +} diff --git a/app/src/main/java/b/i/a/f/e/i/d.java b/app/src/main/java/b/i/a/f/e/i/d.java new file mode 100644 index 0000000000..36a6bbf27f --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/i/d.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.i; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class d extends a { + public d(String str, Float f) { + super(str, f); + } +} diff --git a/app/src/main/java/b/i/a/f/e/i/e.java b/app/src/main/java/b/i/a/f/e/i/e.java new file mode 100644 index 0000000000..de79b78893 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/i/e.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.i; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class e extends a { + public e(String str, Integer num) { + super(str, num); + } +} diff --git a/app/src/main/java/b/i/a/f/e/i/f.java b/app/src/main/java/b/i/a/f/e/i/f.java new file mode 100644 index 0000000000..0bd12390c6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/i/f.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.i; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class f extends a { + public f(String str, String str2) { + super(str, str2); + } +} diff --git a/app/src/main/java/b/i/a/f/e/j/a.java b/app/src/main/java/b/i/a/f/e/j/a.java new file mode 100644 index 0000000000..53b063c57d --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/j/a.java @@ -0,0 +1,68 @@ +package b.i.a.f.e.j; + +import android.database.CursorWindow; +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.data.DataHolder; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class a implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final DataHolder createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + String[] strArr = null; + CursorWindow[] cursorWindowArr = null; + Bundle bundle = null; + int i2 = 0; + int i3 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i4 = 65535 & readInt; + if (i4 == 1) { + strArr = d.R(parcel, readInt); + } else if (i4 == 2) { + cursorWindowArr = (CursorWindow[]) d.T(parcel, readInt, CursorWindow.CREATOR); + } else if (i4 == 3) { + i3 = d.E1(parcel, readInt); + } else if (i4 == 4) { + bundle = d.M(parcel, readInt); + } else if (i4 != 1000) { + d.b2(parcel, readInt); + } else { + i2 = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + DataHolder dataHolder = new DataHolder(i2, strArr, cursorWindowArr, i3, bundle); + dataHolder.l = new Bundle(); + int i5 = 0; + while (true) { + String[] strArr2 = dataHolder.k; + if (i5 >= strArr2.length) { + break; + } + dataHolder.l.putInt(strArr2[i5], i5); + i5++; + } + dataHolder.p = new int[dataHolder.m.length]; + int i6 = 0; + while (true) { + CursorWindow[] cursorWindowArr2 = dataHolder.m; + if (i >= cursorWindowArr2.length) { + return dataHolder; + } + dataHolder.p[i] = i6; + i6 += dataHolder.m[i].getNumRows() - (i6 - cursorWindowArr2[i].getStartPosition()); + i++; + } + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ DataHolder[] newArray(int i) { + return new DataHolder[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/a.java b/app/src/main/java/b/i/a/f/e/k/a.java new file mode 100644 index 0000000000..3ec8888c3e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/a.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.k; + +import b.i.a.f.e.k.g; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a extends g.a { + public static final /* synthetic */ int a = 0; +} diff --git a/app/src/main/java/b/i/a/f/e/k/a0.java b/app/src/main/java/b/i/a/f/e/k/a0.java new file mode 100644 index 0000000000..c185c3533c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/a0.java @@ -0,0 +1,43 @@ +package b.i.a.f.e.k; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.Feature; +import com.google.android.gms.common.internal.ConnectionTelemetryConfiguration; +import com.google.android.gms.common.internal.zzc; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class a0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzc createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Bundle bundle = null; + Feature[] featureArr = null; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + bundle = d.M(parcel, readInt); + } else if (i2 == 2) { + featureArr = (Feature[]) d.T(parcel, readInt, Feature.CREATOR); + } else if (i2 == 3) { + i = d.E1(parcel, readInt); + } else if (i2 != 4) { + d.b2(parcel, readInt); + } else { + ConnectionTelemetryConfiguration connectionTelemetryConfiguration = (ConnectionTelemetryConfiguration) d.P(parcel, readInt, ConnectionTelemetryConfiguration.CREATOR); + } + } + d.e0(parcel, k2); + return new zzc(bundle, featureArr, i); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzc[] newArray(int i) { + return new zzc[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/b.java b/app/src/main/java/b/i/a/f/e/k/b.java new file mode 100644 index 0000000000..de39648688 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/b.java @@ -0,0 +1,777 @@ +package b.i.a.f.e.k; + +import android.accounts.Account; +import android.app.PendingIntent; +import android.content.ComponentName; +import android.content.Context; +import android.content.ServiceConnection; +import android.os.Bundle; +import android.os.DeadObjectException; +import android.os.Handler; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import android.os.Message; +import android.os.RemoteException; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.BinderThread; +import androidx.annotation.CallSuper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import androidx.annotation.RecentlyNullable; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.h.j.w; +import b.i.a.f.e.h.j.x; +import b.i.a.f.e.k.e; +import b.i.a.f.e.k.h; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.Feature; +import com.google.android.gms.common.api.Scope; +import com.google.android.gms.common.internal.GetServiceRequest; +import com.google.android.gms.common.internal.zzc; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public abstract class b { + public static final Feature[] a = new Feature[0]; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public volatile String f1363b = null; + public j0 c; + public final Context d; + public final e e; + public final b.i.a.f.e.c f; + public final Handler g; + public final Object h = new Object(); + public final Object i = new Object(); + @Nullable + public j j; + @RecentlyNonNull + public c k; + @Nullable + public T l; + public final ArrayList> m = new ArrayList<>(); + @Nullable + public i n; + public int o = 1; + @Nullable + public final a p; + @Nullable + public final AbstractC0105b q; + public final int r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public final String f1364s; + @Nullable + public ConnectionResult t = null; + public boolean u = false; + @Nullable + public volatile zzc v = null; + @RecentlyNonNull + public AtomicInteger w = new AtomicInteger(0); + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public interface a { + void e(@RecentlyNonNull int i); + + void h(@Nullable Bundle bundle); + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + /* renamed from: b.i.a.f.e.k.b$b reason: collision with other inner class name */ + public interface AbstractC0105b { + void g(@RecentlyNonNull ConnectionResult connectionResult); + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public interface c { + void a(@RecentlyNonNull ConnectionResult connectionResult); + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public class d implements c { + public d() { + } + + @Override // b.i.a.f.e.k.b.c + public void a(@RecentlyNonNull ConnectionResult connectionResult) { + if (connectionResult.x0()) { + b bVar = b.this; + bVar.b(null, bVar.v()); + return; + } + AbstractC0105b bVar2 = b.this.q; + if (bVar2 != null) { + bVar2.g(connectionResult); + } + } + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public interface e { + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public abstract class f extends h { + public final int d; + @Nullable + public final Bundle e; + + @BinderThread + public f(int i, @Nullable Bundle bundle) { + super(Boolean.TRUE); + this.d = i; + this.e = bundle; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.e.k.b.h + public final /* synthetic */ void a(Boolean bool) { + PendingIntent pendingIntent = null; + if (this.d != 0) { + b.this.C(1, null); + Bundle bundle = this.e; + if (bundle != null) { + pendingIntent = (PendingIntent) bundle.getParcelable("pendingIntent"); + } + d(new ConnectionResult(this.d, pendingIntent)); + } else if (!e()) { + b.this.C(1, null); + d(new ConnectionResult(8, null)); + } + } + + @Override // b.i.a.f.e.k.b.h + public final void b() { + } + + public abstract void d(ConnectionResult connectionResult); + + public abstract boolean e(); + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public final class g extends b.i.a.f.h.g.d { + public g(Looper looper) { + super(looper); + } + + public static boolean a(Message message) { + int i = message.what; + return i == 2 || i == 1 || i == 7; + } + + /* JADX WARNING: Code restructure failed: missing block: B:11:0x002f, code lost: + if (r0 == 5) goto L_0x0031; + */ + @Override // android.os.Handler + public final void handleMessage(Message message) { + TListener tlistener; + if (b.this.w.get() == message.arg1) { + int i = message.what; + if (!(i == 1 || i == 7)) { + if (i == 4) { + Objects.requireNonNull(b.this); + } + } + if (!b.this.e()) { + h hVar = (h) message.obj; + hVar.b(); + hVar.c(); + return; + } + int i2 = message.what; + PendingIntent pendingIntent = null; + if (i2 == 4) { + b.this.t = new ConnectionResult(message.arg2); + if (b.F(b.this)) { + b bVar = b.this; + if (!bVar.u) { + bVar.C(3, null); + return; + } + } + ConnectionResult connectionResult = b.this.t; + if (connectionResult == null) { + connectionResult = new ConnectionResult(8); + } + b.this.k.a(connectionResult); + Objects.requireNonNull(b.this); + System.currentTimeMillis(); + } else if (i2 == 5) { + ConnectionResult connectionResult2 = b.this.t; + if (connectionResult2 == null) { + connectionResult2 = new ConnectionResult(8); + } + b.this.k.a(connectionResult2); + Objects.requireNonNull(b.this); + System.currentTimeMillis(); + } else if (i2 == 3) { + Object obj = message.obj; + if (obj instanceof PendingIntent) { + pendingIntent = (PendingIntent) obj; + } + b.this.k.a(new ConnectionResult(message.arg2, pendingIntent)); + Objects.requireNonNull(b.this); + System.currentTimeMillis(); + } else if (i2 == 6) { + b.this.C(5, null); + a aVar = b.this.p; + if (aVar != null) { + aVar.e(message.arg2); + } + b.this.A(message.arg2); + b.E(b.this, 5, 1, null); + } else if (i2 == 2 && !b.this.j()) { + h hVar2 = (h) message.obj; + hVar2.b(); + hVar2.c(); + } else if (a(message)) { + h hVar3 = (h) message.obj; + synchronized (hVar3) { + tlistener = hVar3.a; + if (hVar3.f1365b) { + String valueOf = String.valueOf(hVar3); + StringBuilder sb = new StringBuilder(valueOf.length() + 47); + sb.append("Callback proxy "); + sb.append(valueOf); + sb.append(" being reused. This is not safe."); + Log.w("GmsClient", sb.toString()); + } + } + if (tlistener != 0) { + try { + hVar3.a(tlistener); + } catch (RuntimeException e) { + hVar3.b(); + throw e; + } + } else { + hVar3.b(); + } + synchronized (hVar3) { + hVar3.f1365b = true; + } + hVar3.c(); + } else { + Log.wtf("GmsClient", b.d.b.a.a.f(45, "Don't know how to handle message: ", message.what), new Exception()); + } + } else if (a(message)) { + h hVar4 = (h) message.obj; + hVar4.b(); + hVar4.c(); + } + } + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public abstract class h { + @Nullable + public TListener a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1365b = false; + + public h(TListener tlistener) { + this.a = tlistener; + } + + public abstract void a(TListener tlistener); + + public abstract void b(); + + public final void c() { + synchronized (this) { + this.a = null; + } + synchronized (b.this.m) { + b.this.m.remove(this); + } + } + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public final class i implements ServiceConnection { + public final int j; + + public i(int i) { + this.j = i; + } + + @Override // android.content.ServiceConnection + public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { + if (iBinder == null) { + b.D(b.this); + return; + } + synchronized (b.this.i) { + b bVar = b.this; + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.IGmsServiceBroker"); + bVar.j = (queryLocalInterface == null || !(queryLocalInterface instanceof j)) ? new i(iBinder) : (j) queryLocalInterface; + } + b bVar2 = b.this; + int i = this.j; + Handler handler = bVar2.g; + handler.sendMessage(handler.obtainMessage(7, i, -1, new l(0))); + } + + @Override // android.content.ServiceConnection + public final void onServiceDisconnected(ComponentName componentName) { + b bVar; + synchronized (b.this.i) { + bVar = b.this; + bVar.j = null; + } + Handler handler = bVar.g; + handler.sendMessage(handler.obtainMessage(6, this.j, 1)); + } + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public static final class j extends h.a { + @Nullable + public b a; + + /* renamed from: b reason: collision with root package name */ + public final int f1366b; + + public j(@NonNull b bVar, int i) { + this.a = bVar; + this.f1366b = i; + } + + @BinderThread + public final void g(int i, @NonNull IBinder iBinder, @Nullable Bundle bundle) { + b.c.a.a0.d.z(this.a, "onPostInitComplete can be called only once per call to getRemoteService"); + b bVar = this.a; + int i2 = this.f1366b; + Handler handler = bVar.g; + handler.sendMessage(handler.obtainMessage(1, i2, -1, new k(i, iBinder, bundle))); + this.a = null; + } + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public final class k extends f { + @Nullable + public final IBinder g; + + @BinderThread + public k(int i, @Nullable IBinder iBinder, @Nullable Bundle bundle) { + super(i, bundle); + this.g = iBinder; + } + + @Override // b.i.a.f.e.k.b.f + public final void d(ConnectionResult connectionResult) { + AbstractC0105b bVar = b.this.q; + if (bVar != null) { + bVar.g(connectionResult); + } + Objects.requireNonNull(b.this); + System.currentTimeMillis(); + } + + @Override // b.i.a.f.e.k.b.f + public final boolean e() { + try { + IBinder iBinder = this.g; + Objects.requireNonNull(iBinder, "null reference"); + String interfaceDescriptor = iBinder.getInterfaceDescriptor(); + if (!b.this.x().equals(interfaceDescriptor)) { + String x2 = b.this.x(); + Log.e("GmsClient", b.d.b.a.a.k(b.d.b.a.a.b(interfaceDescriptor, b.d.b.a.a.b(x2, 34)), "service descriptor mismatch: ", x2, " vs. ", interfaceDescriptor)); + return false; + } + IInterface r = b.this.r(this.g); + if (r == null || (!b.E(b.this, 2, 4, r) && !b.E(b.this, 3, 4, r))) { + return false; + } + b bVar = b.this; + bVar.t = null; + a aVar = bVar.p; + if (aVar == null) { + return true; + } + aVar.h(null); + return true; + } catch (RemoteException unused) { + Log.w("GmsClient", "service probably died"); + return false; + } + } + } + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public final class l extends f { + @BinderThread + public l(int i) { + super(i, null); + } + + @Override // b.i.a.f.e.k.b.f + public final void d(ConnectionResult connectionResult) { + Objects.requireNonNull(b.this); + b.this.k.a(connectionResult); + Objects.requireNonNull(b.this); + System.currentTimeMillis(); + } + + @Override // b.i.a.f.e.k.b.f + public final boolean e() { + b.this.k.a(ConnectionResult.j); + return true; + } + } + + public b(@RecentlyNonNull Context context, @RecentlyNonNull Looper looper, @RecentlyNonNull e eVar, @RecentlyNonNull b.i.a.f.e.c cVar, @RecentlyNonNull int i2, @Nullable a aVar, @Nullable AbstractC0105b bVar, @Nullable String str) { + b.c.a.a0.d.z(context, "Context must not be null"); + this.d = context; + b.c.a.a0.d.z(looper, "Looper must not be null"); + b.c.a.a0.d.z(eVar, "Supervisor must not be null"); + this.e = eVar; + b.c.a.a0.d.z(cVar, "API availability must not be null"); + this.f = cVar; + this.g = new g(looper); + this.r = i2; + this.p = aVar; + this.q = bVar; + this.f1364s = str; + } + + public static void D(b bVar) { + boolean z2; + int i2; + synchronized (bVar.h) { + z2 = bVar.o == 3; + } + if (z2) { + i2 = 5; + bVar.u = true; + } else { + i2 = 4; + } + Handler handler = bVar.g; + handler.sendMessage(handler.obtainMessage(i2, bVar.w.get(), 16)); + } + + public static boolean E(b bVar, int i2, int i3, IInterface iInterface) { + boolean z2; + synchronized (bVar.h) { + if (bVar.o != i2) { + z2 = false; + } else { + bVar.C(i3, iInterface); + z2 = true; + } + } + return z2; + } + + public static boolean F(b bVar) { + if (bVar.u || TextUtils.isEmpty(bVar.x()) || TextUtils.isEmpty(null)) { + return false; + } + try { + Class.forName(bVar.x()); + return true; + } catch (ClassNotFoundException unused) { + return false; + } + } + + @CallSuper + public void A(@RecentlyNonNull int i2) { + System.currentTimeMillis(); + } + + public final String B() { + String str = this.f1364s; + return str == null ? this.d.getClass().getName() : str; + } + + public final void C(int i2, @Nullable T t) { + j0 j0Var; + b.c.a.a0.d.l((i2 == 4) == (t != null)); + synchronized (this.h) { + this.o = i2; + this.l = t; + if (i2 == 1) { + i iVar = this.n; + if (iVar != null) { + e eVar = this.e; + String str = this.c.a; + Objects.requireNonNull(str, "null reference"); + Objects.requireNonNull(this.c); + String B = B(); + Objects.requireNonNull(this.c); + Objects.requireNonNull(eVar); + eVar.c(new e.a(str, "com.google.android.gms", 4225, false), iVar, B); + this.n = null; + } + } else if (i2 == 2 || i2 == 3) { + i iVar2 = this.n; + if (!(iVar2 == null || (j0Var = this.c) == null)) { + String str2 = j0Var.a; + StringBuilder sb = new StringBuilder(String.valueOf(str2).length() + 70 + "com.google.android.gms".length()); + sb.append("Calling connect() while still connected, missing disconnect() for "); + sb.append(str2); + sb.append(" on "); + sb.append("com.google.android.gms"); + Log.e("GmsClient", sb.toString()); + e eVar2 = this.e; + String str3 = this.c.a; + Objects.requireNonNull(str3, "null reference"); + Objects.requireNonNull(this.c); + String B2 = B(); + Objects.requireNonNull(this.c); + Objects.requireNonNull(eVar2); + eVar2.c(new e.a(str3, "com.google.android.gms", 4225, false), iVar2, B2); + this.w.incrementAndGet(); + } + i iVar3 = new i(this.w.get()); + this.n = iVar3; + String y2 = y(); + Object obj = e.a; + this.c = new j0("com.google.android.gms", y2, false, 4225, false); + e eVar3 = this.e; + Objects.requireNonNull(y2, "null reference"); + Objects.requireNonNull(this.c); + String B3 = B(); + Objects.requireNonNull(this.c); + if (!eVar3.b(new e.a(y2, "com.google.android.gms", 4225, false), iVar3, B3)) { + String str4 = this.c.a; + StringBuilder sb2 = new StringBuilder(String.valueOf(str4).length() + 34 + "com.google.android.gms".length()); + sb2.append("unable to connect to service: "); + sb2.append(str4); + sb2.append(" on "); + sb2.append("com.google.android.gms"); + Log.e("GmsClient", sb2.toString()); + int i3 = this.w.get(); + Handler handler = this.g; + handler.sendMessage(handler.obtainMessage(7, i3, -1, new l(16))); + } + } else if (i2 == 4) { + Objects.requireNonNull(t, "null reference"); + z(t); + } + } + } + + @WorkerThread + public void b(@Nullable g gVar, @RecentlyNonNull Set set) { + Bundle u = u(); + GetServiceRequest getServiceRequest = new GetServiceRequest(this.r); + getServiceRequest.m = this.d.getPackageName(); + getServiceRequest.p = u; + if (set != null) { + getServiceRequest.o = (Scope[]) set.toArray(new Scope[set.size()]); + } + if (o()) { + Account s2 = s(); + if (s2 == null) { + s2 = new Account("<>", "com.google"); + } + getServiceRequest.q = s2; + if (gVar != null) { + getServiceRequest.n = gVar.asBinder(); + } + } + getServiceRequest.r = a; + getServiceRequest.f2963s = t(); + try { + synchronized (this.i) { + j jVar = this.j; + if (jVar != null) { + jVar.w(new j(this, this.w.get()), getServiceRequest); + } else { + Log.w("GmsClient", "mServiceBroker is null, client disconnected"); + } + } + } catch (DeadObjectException e2) { + Log.w("GmsClient", "IGmsServiceBroker.getService failed", e2); + Handler handler = this.g; + handler.sendMessage(handler.obtainMessage(6, this.w.get(), 3)); + } catch (SecurityException e3) { + throw e3; + } catch (RemoteException | RuntimeException e4) { + Log.w("GmsClient", "IGmsServiceBroker.getService failed", e4); + int i2 = this.w.get(); + Handler handler2 = this.g; + handler2.sendMessage(handler2.obtainMessage(1, i2, -1, new k(8, null, null))); + } + } + + public void c(@RecentlyNonNull String str) { + this.f1363b = str; + h(); + } + + @RecentlyNonNull + public boolean e() { + boolean z2; + synchronized (this.h) { + int i2 = this.o; + if (i2 != 2) { + if (i2 != 3) { + z2 = false; + } + } + z2 = true; + } + return z2; + } + + @RecentlyNonNull + public String f() { + j0 j0Var; + if (!j() || (j0Var = this.c) == null) { + throw new RuntimeException("Failed to connect when checking package"); + } + Objects.requireNonNull(j0Var); + return "com.google.android.gms"; + } + + public void g(@RecentlyNonNull c cVar) { + b.c.a.a0.d.z(cVar, "Connection progress callbacks cannot be null."); + this.k = cVar; + C(2, null); + } + + @Override // b.i.a.f.e.h.a.f + public void h() { + this.w.incrementAndGet(); + synchronized (this.m) { + int size = this.m.size(); + for (int i2 = 0; i2 < size; i2++) { + h hVar = this.m.get(i2); + synchronized (hVar) { + hVar.a = null; + } + } + this.m.clear(); + } + synchronized (this.i) { + this.j = null; + } + C(1, null); + } + + public void i(@RecentlyNonNull e eVar) { + x xVar = (x) eVar; + b.i.a.f.e.h.j.g.this.f1344x.post(new w(xVar)); + } + + @RecentlyNonNull + public boolean j() { + boolean z2; + synchronized (this.h) { + z2 = this.o == 4; + } + return z2; + } + + @Override // b.i.a.f.e.h.a.f + @RecentlyNonNull + public boolean k() { + return true; + } + + @Override // b.i.a.f.e.h.a.f + @RecentlyNonNull + public int l() { + return b.i.a.f.e.c.a; + } + + @RecentlyNullable + public final Feature[] m() { + zzc zzc = this.v; + if (zzc == null) { + return null; + } + return zzc.k; + } + + @RecentlyNullable + public String n() { + return this.f1363b; + } + + @Override // b.i.a.f.e.h.a.f + @RecentlyNonNull + public boolean o() { + return false; + } + + public void q() { + int b2 = this.f.b(this.d, l()); + if (b2 != 0) { + C(1, null); + d dVar = new d(); + b.c.a.a0.d.z(dVar, "Connection progress callbacks cannot be null."); + this.k = dVar; + Handler handler = this.g; + handler.sendMessage(handler.obtainMessage(3, this.w.get(), b2, null)); + return; + } + g(new d()); + } + + @RecentlyNullable + public abstract T r(@RecentlyNonNull IBinder iBinder); + + @RecentlyNullable + public Account s() { + return null; + } + + @RecentlyNonNull + public Feature[] t() { + return a; + } + + @RecentlyNonNull + public Bundle u() { + return new Bundle(); + } + + @RecentlyNonNull + public Set v() { + return Collections.emptySet(); + } + + @RecentlyNonNull + public final T w() throws DeadObjectException { + T t; + synchronized (this.h) { + if (this.o == 5) { + throw new DeadObjectException(); + } else if (j()) { + T t2 = this.l; + b.c.a.a0.d.z(t2, "Client is connected but service is null"); + t = t2; + } else { + throw new IllegalStateException("Not connected. Call connect() and wait for onConnected() to be called."); + } + } + return t; + } + + @NonNull + public abstract String x(); + + @NonNull + public abstract String y(); + + @CallSuper + public void z(@RecentlyNonNull T t) { + System.currentTimeMillis(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/b0.java b/app/src/main/java/b/i/a/f/e/k/b0.java new file mode 100644 index 0000000000..87b289c8d3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/b0.java @@ -0,0 +1,52 @@ +package b.i.a.f.e.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.internal.ConnectionTelemetryConfiguration; +import com.google.android.gms.common.internal.RootTelemetryConfiguration; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class b0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final ConnectionTelemetryConfiguration createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + RootTelemetryConfiguration rootTelemetryConfiguration = null; + int[] iArr = null; + boolean z2 = false; + boolean z3 = false; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + rootTelemetryConfiguration = (RootTelemetryConfiguration) d.P(parcel, readInt, RootTelemetryConfiguration.CREATOR); + } else if (i2 == 2) { + z2 = d.C1(parcel, readInt); + } else if (i2 == 3) { + z3 = d.C1(parcel, readInt); + } else if (i2 == 4) { + int K1 = d.K1(parcel, readInt); + int dataPosition = parcel.dataPosition(); + if (K1 == 0) { + iArr = null; + } else { + iArr = parcel.createIntArray(); + parcel.setDataPosition(dataPosition + K1); + } + } else if (i2 != 5) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new ConnectionTelemetryConfiguration(rootTelemetryConfiguration, z2, z3, iArr, i); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ ConnectionTelemetryConfiguration[] newArray(int i) { + return new ConnectionTelemetryConfiguration[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/c.java b/app/src/main/java/b/i/a/f/e/k/c.java new file mode 100644 index 0000000000..9145bbe85f --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/c.java @@ -0,0 +1,60 @@ +package b.i.a.f.e.k; + +import android.accounts.Account; +import android.view.View; +import androidx.collection.ArraySet; +import com.google.android.gms.common.api.Scope; +import java.util.Collections; +import java.util.HashSet; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class c { + public final Account a; + + /* renamed from: b reason: collision with root package name */ + public final Set f1367b; + public final Set c; + public final Map, b> d; + public final String e; + public final String f; + public final b.i.a.f.l.a g; + public Integer h; + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static final class a { + public Account a; + + /* renamed from: b reason: collision with root package name */ + public ArraySet f1368b; + public String c; + public String d; + + public final c a() { + return new c(this.a, this.f1368b, null, 0, null, this.c, this.d, b.i.a.f.l.a.j); + } + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public static final class b { + } + + /* JADX WARN: Incorrect args count in method signature: (Landroid/accounts/Account;Ljava/util/Set;Ljava/util/Map;Lb/i/a/f/e/k/c$b;>;ILandroid/view/View;Ljava/lang/String;Ljava/lang/String;Lb/i/a/f/l/a;Z)V */ + public c(Account account, Set set, Map map, int i, View view, String str, String str2, b.i.a.f.l.a aVar) { + this.a = account; + Set emptySet = set == null ? Collections.emptySet() : Collections.unmodifiableSet(set); + this.f1367b = emptySet; + Map, b> emptyMap = Collections.emptyMap(); + this.d = emptyMap; + this.e = str; + this.f = str2; + this.g = aVar; + HashSet hashSet = new HashSet(emptySet); + for (b bVar : emptyMap.values()) { + Objects.requireNonNull(bVar); + hashSet.addAll(null); + } + this.c = Collections.unmodifiableSet(hashSet); + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/c0.java b/app/src/main/java/b/i/a/f/e/k/c0.java new file mode 100644 index 0000000000..1e3c2757da --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/c0.java @@ -0,0 +1,88 @@ +package b.i.a.f.e.k; + +import android.accounts.Account; +import android.os.Bundle; +import android.os.IBinder; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.Feature; +import com.google.android.gms.common.api.Scope; +import com.google.android.gms.common.internal.GetServiceRequest; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class c0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final GetServiceRequest createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + IBinder iBinder = null; + Scope[] scopeArr = null; + Bundle bundle = null; + Account account = null; + Feature[] featureArr = null; + Feature[] featureArr2 = null; + int i = 0; + int i2 = 0; + int i3 = 0; + boolean z2 = false; + int i4 = 0; + boolean z3 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + i2 = d.E1(parcel, readInt); + break; + case 3: + i3 = d.E1(parcel, readInt); + break; + case 4: + str = d.Q(parcel, readInt); + break; + case 5: + iBinder = d.D1(parcel, readInt); + break; + case 6: + scopeArr = (Scope[]) d.T(parcel, readInt, Scope.CREATOR); + break; + case 7: + bundle = d.M(parcel, readInt); + break; + case 8: + account = (Account) d.P(parcel, readInt, Account.CREATOR); + break; + case 9: + default: + d.b2(parcel, readInt); + break; + case 10: + featureArr = (Feature[]) d.T(parcel, readInt, Feature.CREATOR); + break; + case 11: + featureArr2 = (Feature[]) d.T(parcel, readInt, Feature.CREATOR); + break; + case 12: + z2 = d.C1(parcel, readInt); + break; + case 13: + i4 = d.E1(parcel, readInt); + break; + case 14: + z3 = d.C1(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new GetServiceRequest(i, i2, i3, str, iBinder, scopeArr, bundle, account, featureArr, featureArr2, z2, i4, z3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ GetServiceRequest[] newArray(int i) { + return new GetServiceRequest[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/d.java b/app/src/main/java/b/i/a/f/e/k/d.java new file mode 100644 index 0000000000..1398044a32 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/d.java @@ -0,0 +1,65 @@ +package b.i.a.f.e.k; + +import android.accounts.Account; +import android.content.Context; +import android.os.IInterface; +import android.os.Looper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.j.f; +import b.i.a.f.e.h.j.l; +import com.google.android.gms.common.GoogleApiAvailability; +import com.google.android.gms.common.api.Scope; +import java.util.Collections; +import java.util.Objects; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class d extends b implements a.f { + + /* renamed from: x reason: collision with root package name */ + public final c f1369x; + + /* renamed from: y reason: collision with root package name */ + public final Set f1370y; + @Nullable + + /* renamed from: z reason: collision with root package name */ + public final Account f1371z; + + /* JADX WARNING: Illegal instructions before constructor call */ + public d(Context context, Looper looper, int i, c cVar, f fVar, l lVar) { + super(context, looper, r3, r4, i, new r(fVar), new q(lVar), cVar.f); + e a = e.a(context); + Object obj = GoogleApiAvailability.c; + GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.d; + Objects.requireNonNull(fVar, "null reference"); + Objects.requireNonNull(lVar, "null reference"); + this.f1369x = cVar; + this.f1371z = cVar.a; + Set set = cVar.c; + for (Scope scope : set) { + if (!set.contains(scope)) { + throw new IllegalStateException("Expanding scopes is not permitted, use implied scopes instead"); + } + } + this.f1370y = set; + } + + @Override // b.i.a.f.e.h.a.f + @NonNull + public Set a() { + return o() ? this.f1370y : Collections.emptySet(); + } + + @Override // b.i.a.f.e.k.b + @Nullable + public final Account s() { + return this.f1371z; + } + + @Override // b.i.a.f.e.k.b + public final Set v() { + return this.f1370y; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/e.java b/app/src/main/java/b/i/a/f/e/k/e.java new file mode 100644 index 0000000000..1267b2e98c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/e.java @@ -0,0 +1,77 @@ +package b.i.a.f.e.k; + +import android.content.Context; +import android.content.ServiceConnection; +import android.net.Uri; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import b.c.a.a0.d; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public abstract class e { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static e f1372b; + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public static final class a { + public static final Uri a = new Uri.Builder().scheme("content").authority("com.google.android.gms.chimera").build(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final String f1373b; + @Nullable + public final String c; + public final int d; + public final boolean e; + + public a(String str, String str2, int i, boolean z2) { + d.w(str); + this.f1373b = str; + d.w(str2); + this.c = str2; + this.d = i; + this.e = z2; + } + + public final boolean equals(@Nullable Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return d.g0(this.f1373b, aVar.f1373b) && d.g0(this.c, aVar.c) && d.g0(null, null) && this.d == aVar.d && this.e == aVar.e; + } + + public final int hashCode() { + return Arrays.hashCode(new Object[]{this.f1373b, this.c, null, Integer.valueOf(this.d), Boolean.valueOf(this.e)}); + } + + public final String toString() { + String str = this.f1373b; + if (str != null) { + return str; + } + Objects.requireNonNull((Object) null, "null reference"); + throw null; + } + } + + @RecentlyNonNull + public static e a(@RecentlyNonNull Context context) { + synchronized (a) { + if (f1372b == null) { + f1372b = new e0(context.getApplicationContext()); + } + } + return f1372b; + } + + public abstract boolean b(a aVar, ServiceConnection serviceConnection, String str); + + public abstract void c(a aVar, ServiceConnection serviceConnection, String str); +} diff --git a/app/src/main/java/b/i/a/f/e/k/e0.java b/app/src/main/java/b/i/a/f/e/k/e0.java new file mode 100644 index 0000000000..457ced5b40 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/e0.java @@ -0,0 +1,87 @@ +package b.i.a.f.e.k; + +import android.content.Context; +import android.content.ServiceConnection; +import android.os.Handler; +import b.i.a.f.e.k.b; +import b.i.a.f.e.k.e; +import b.i.a.f.e.n.a; +import b.i.a.f.h.g.d; +import java.util.HashMap; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class e0 extends e { + public final HashMap c = new HashMap<>(); + public final Context d; + public final Handler e; + public final a f; + public final long g; + public final long h; + + public e0(Context context) { + this.d = context.getApplicationContext(); + this.e = new d(context.getMainLooper(), new f0(this, null)); + this.f = a.b(); + this.g = 5000; + this.h = 300000; + } + + @Override // b.i.a.f.e.k.e + public final boolean b(e.a aVar, ServiceConnection serviceConnection, String str) { + boolean z2; + b.c.a.a0.d.z(serviceConnection, "ServiceConnection must not be null"); + synchronized (this.c) { + g0 g0Var = this.c.get(aVar); + if (g0Var == null) { + g0Var = new g0(this, aVar); + g0Var.j.put(serviceConnection, serviceConnection); + g0Var.a(str); + this.c.put(aVar, g0Var); + } else { + this.e.removeMessages(0, aVar); + if (!g0Var.j.containsKey(serviceConnection)) { + g0Var.j.put(serviceConnection, serviceConnection); + int i = g0Var.k; + if (i == 1) { + ((b.i) serviceConnection).onServiceConnected(g0Var.o, g0Var.m); + } else if (i == 2) { + g0Var.a(str); + } + } else { + String valueOf = String.valueOf(aVar); + StringBuilder sb = new StringBuilder(valueOf.length() + 81); + sb.append("Trying to bind a GmsServiceConnection that was already connected before. config="); + sb.append(valueOf); + throw new IllegalStateException(sb.toString()); + } + } + z2 = g0Var.l; + } + return z2; + } + + @Override // b.i.a.f.e.k.e + public final void c(e.a aVar, ServiceConnection serviceConnection, String str) { + b.c.a.a0.d.z(serviceConnection, "ServiceConnection must not be null"); + synchronized (this.c) { + g0 g0Var = this.c.get(aVar); + if (g0Var == null) { + String valueOf = String.valueOf(aVar); + StringBuilder sb = new StringBuilder(valueOf.length() + 50); + sb.append("Nonexistent connection status for service config: "); + sb.append(valueOf); + throw new IllegalStateException(sb.toString()); + } else if (g0Var.j.containsKey(serviceConnection)) { + g0Var.j.remove(serviceConnection); + if (g0Var.j.isEmpty()) { + this.e.sendMessageDelayed(this.e.obtainMessage(0, aVar), this.g); + } + } else { + String valueOf2 = String.valueOf(aVar); + StringBuilder sb2 = new StringBuilder(valueOf2.length() + 76); + sb2.append("Trying to unbind a GmsServiceConnection that was not bound before. config="); + sb2.append(valueOf2); + throw new IllegalStateException(sb2.toString()); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/f.java b/app/src/main/java/b/i/a/f/e/k/f.java new file mode 100644 index 0000000000..22ed02be08 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/f.java @@ -0,0 +1,11 @@ +package b.i.a.f.e.k; + +import androidx.annotation.RecentlyNonNull; +import b.c.a.a0.d; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class f { + public f(@RecentlyNonNull String str) { + d.z(str, "log tag cannot be null"); + d.n(str.length() <= 23, "tag \"%s\" is longer than the %d character maximum", str, 23); + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/f0.java b/app/src/main/java/b/i/a/f/e/k/f0.java new file mode 100644 index 0000000000..9adbc6c22c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/f0.java @@ -0,0 +1,65 @@ +package b.i.a.f.e.k; + +import android.content.ComponentName; +import android.os.Handler; +import android.os.Message; +import android.util.Log; +import androidx.core.os.EnvironmentCompat; +import b.i.a.f.e.k.e; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class f0 implements Handler.Callback { + public final /* synthetic */ e0 j; + + public f0(e0 e0Var, d0 d0Var) { + this.j = e0Var; + } + + @Override // android.os.Handler.Callback + public final boolean handleMessage(Message message) { + int i = message.what; + if (i == 0) { + synchronized (this.j.c) { + e.a aVar = (e.a) message.obj; + g0 g0Var = this.j.c.get(aVar); + if (g0Var != null && g0Var.j.isEmpty()) { + if (g0Var.l) { + g0Var.p.e.removeMessages(1, g0Var.n); + e0 e0Var = g0Var.p; + e0Var.f.c(e0Var.d, g0Var); + g0Var.l = false; + g0Var.k = 2; + } + this.j.c.remove(aVar); + } + } + return true; + } else if (i != 1) { + return false; + } else { + synchronized (this.j.c) { + e.a aVar2 = (e.a) message.obj; + g0 g0Var2 = this.j.c.get(aVar2); + if (g0Var2 != null && g0Var2.k == 3) { + String valueOf = String.valueOf(aVar2); + StringBuilder sb = new StringBuilder(valueOf.length() + 47); + sb.append("Timeout waiting for ServiceConnection callback "); + sb.append(valueOf); + Log.e("GmsClientSupervisor", sb.toString(), new Exception()); + ComponentName componentName = g0Var2.o; + if (componentName == null) { + Objects.requireNonNull(aVar2); + componentName = null; + } + if (componentName == null) { + String str = aVar2.c; + Objects.requireNonNull(str, "null reference"); + componentName = new ComponentName(str, EnvironmentCompat.MEDIA_UNKNOWN); + } + g0Var2.onServiceDisconnected(componentName); + } + } + return true; + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/g.java b/app/src/main/java/b/i/a/f/e/k/g.java new file mode 100644 index 0000000000..fe1bf1f12d --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/g.java @@ -0,0 +1,45 @@ +package b.i.a.f.e.k; + +import android.accounts.Account; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.h.g.b; +import b.i.a.f.h.g.c; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface g extends IInterface { + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public static abstract class a extends b.i.a.f.h.g.a implements g { + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + /* renamed from: b.i.a.f.e.k.g$a$a reason: collision with other inner class name */ + public static class C0106a extends b implements g { + public C0106a(IBinder iBinder) { + super(iBinder, "com.google.android.gms.common.internal.IAccountAccessor"); + } + + @Override // b.i.a.f.e.k.g + public final Account a() throws RemoteException { + Parcel g = g(2, e()); + Account account = (Account) c.a(g, Account.CREATOR); + g.recycle(); + return account; + } + } + + @RecentlyNonNull + public static g g(@RecentlyNonNull IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.IAccountAccessor"); + return queryLocalInterface instanceof g ? (g) queryLocalInterface : new C0106a(iBinder); + } + } + + @RecentlyNonNull + Account a() throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/e/k/g0.java b/app/src/main/java/b/i/a/f/e/k/g0.java new file mode 100644 index 0000000000..6132685365 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/g0.java @@ -0,0 +1,117 @@ +package b.i.a.f.e.k; + +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.ServiceConnection; +import android.os.Bundle; +import android.os.IBinder; +import android.os.Message; +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.f.e.k.e; +import b.i.a.f.e.n.a; +import java.util.HashMap; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class g0 implements ServiceConnection, i0 { + public final Map j = new HashMap(); + public int k = 2; + public boolean l; + @Nullable + public IBinder m; + public final e.a n; + public ComponentName o; + public final /* synthetic */ e0 p; + + public g0(e0 e0Var, e.a aVar) { + this.p = e0Var; + this.n = aVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:23:0x0091 */ + /* JADX WARNING: Removed duplicated region for block: B:25:0x00a6 */ + public final void a(String str) { + boolean d; + Intent intent; + Bundle bundle; + this.k = 3; + e0 e0Var = this.p; + a aVar = e0Var.f; + Context context = e0Var.d; + e.a aVar2 = this.n; + Intent intent2 = null; + if (aVar2.f1373b != null) { + if (aVar2.e) { + Bundle bundle2 = new Bundle(); + bundle2.putString("serviceActionBundleKey", aVar2.f1373b); + try { + bundle = context.getContentResolver().call(e.a.a, "serviceIntentCall", (String) null, bundle2); + } catch (IllegalArgumentException e) { + String valueOf = String.valueOf(e); + b.d.b.a.a.f0(valueOf.length() + 34, "Dynamic intent resolution failed: ", valueOf, "ConnectionStatusConfig"); + bundle = null; + } + if (bundle != null) { + intent2 = (Intent) bundle.getParcelable("serviceResponseIntentKey"); + } + if (intent2 == null) { + String valueOf2 = String.valueOf(aVar2.f1373b); + Log.w("ConnectionStatusConfig", valueOf2.length() != 0 ? "Dynamic lookup for intent failed for action: ".concat(valueOf2) : new String("Dynamic lookup for intent failed for action: ")); + } + } + if (intent2 == null) { + intent = new Intent(aVar2.f1373b).setPackage(aVar2.c); + } + d = aVar.d(context, str, intent2, this, this.n.d); + this.l = d; + if (!d) { + Message obtainMessage = this.p.e.obtainMessage(1, this.n); + e0 e0Var2 = this.p; + e0Var2.e.sendMessageDelayed(obtainMessage, e0Var2.h); + return; + } + this.k = 2; + try { + e0 e0Var3 = this.p; + e0Var3.f.c(e0Var3.d, this); + return; + } catch (IllegalArgumentException unused) { + return; + } + } else { + intent = new Intent().setComponent(null); + } + intent2 = intent; + d = aVar.d(context, str, intent2, this, this.n.d); + this.l = d; + if (!d) { + } + } + + @Override // android.content.ServiceConnection + public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { + synchronized (this.p.c) { + this.p.e.removeMessages(1, this.n); + this.m = iBinder; + this.o = componentName; + for (ServiceConnection serviceConnection : this.j.values()) { + serviceConnection.onServiceConnected(componentName, iBinder); + } + this.k = 1; + } + } + + @Override // android.content.ServiceConnection + public final void onServiceDisconnected(ComponentName componentName) { + synchronized (this.p.c) { + this.p.e.removeMessages(1, this.n); + this.m = null; + this.o = componentName; + for (ServiceConnection serviceConnection : this.j.values()) { + serviceConnection.onServiceDisconnected(componentName); + } + this.k = 2; + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/h.java b/app/src/main/java/b/i/a/f/e/k/h.java new file mode 100644 index 0000000000..21633edd9e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/h.java @@ -0,0 +1,48 @@ +package b.i.a.f.e.k; + +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import android.util.Log; +import b.c.a.a0.d; +import b.i.a.f.e.k.b; +import b.i.a.f.h.g.c; +import com.google.android.gms.common.internal.zzc; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface h extends IInterface { + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + public static abstract class a extends b.i.a.f.h.g.a implements h { + public a() { + super("com.google.android.gms.common.internal.IGmsCallbacks"); + } + + @Override // b.i.a.f.h.g.a + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i == 1) { + ((b.j) this).g(parcel.readInt(), parcel.readStrongBinder(), (Bundle) c.a(parcel, Bundle.CREATOR)); + } else if (i == 2) { + parcel.readInt(); + Bundle bundle = (Bundle) c.a(parcel, Bundle.CREATOR); + Log.wtf("GmsClient", "received deprecated onAccountValidationComplete callback, ignoring", new Exception()); + } else if (i != 3) { + return false; + } else { + int readInt = parcel.readInt(); + IBinder readStrongBinder = parcel.readStrongBinder(); + zzc zzc = (zzc) c.a(parcel, zzc.CREATOR); + b.j jVar = (b.j) this; + b bVar = jVar.a; + d.z(bVar, "onPostInitCompleteWithConnectionInfo can be called only once per call togetRemoteService"); + Objects.requireNonNull(zzc, "null reference"); + bVar.v = zzc; + jVar.g(readInt, readStrongBinder, zzc.j); + } + parcel2.writeNoException(); + return true; + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/h0.java b/app/src/main/java/b/i/a/f/e/k/h0.java new file mode 100644 index 0000000000..38c8cfadf1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/h0.java @@ -0,0 +1,11 @@ +package b.i.a.f.e.k; + +import android.net.Uri; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class h0 { + public static final /* synthetic */ int a = 0; + + static { + Uri.parse("https://plus.google.com/").buildUpon().appendPath("circles").appendPath("find").build(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/i.java b/app/src/main/java/b/i/a/f/e/k/i.java new file mode 100644 index 0000000000..c1801cd525 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/i.java @@ -0,0 +1,38 @@ +package b.i.a.f.e.k; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import androidx.annotation.Nullable; +import b.i.a.f.h.g.a; +import com.google.android.gms.common.internal.GetServiceRequest; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class i implements j { + public final IBinder a; + + public i(IBinder iBinder) { + this.a = iBinder; + } + + @Override // android.os.IInterface + public final IBinder asBinder() { + return this.a; + } + + @Override // b.i.a.f.e.k.j + public final void w(h hVar, @Nullable GetServiceRequest getServiceRequest) throws RemoteException { + Parcel obtain = Parcel.obtain(); + Parcel obtain2 = Parcel.obtain(); + try { + obtain.writeInterfaceToken("com.google.android.gms.common.internal.IGmsServiceBroker"); + obtain.writeStrongBinder((a) hVar); + obtain.writeInt(1); + getServiceRequest.writeToParcel(obtain, 0); + this.a.transact(46, obtain, obtain2, 0); + obtain2.readException(); + } finally { + obtain2.recycle(); + obtain.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/i0.java b/app/src/main/java/b/i/a/f/e/k/i0.java new file mode 100644 index 0000000000..f6a5828d37 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/i0.java @@ -0,0 +1,4 @@ +package b.i.a.f.e.k; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface i0 { +} diff --git a/app/src/main/java/b/i/a/f/e/k/j.java b/app/src/main/java/b/i/a/f/e/k/j.java new file mode 100644 index 0000000000..5160b53fae --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/j.java @@ -0,0 +1,11 @@ +package b.i.a.f.e.k; + +import android.os.IInterface; +import android.os.RemoteException; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import com.google.android.gms.common.internal.GetServiceRequest; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface j extends IInterface { + void w(@RecentlyNonNull h hVar, @Nullable GetServiceRequest getServiceRequest) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/e/k/j0.java b/app/src/main/java/b/i/a/f/e/k/j0.java new file mode 100644 index 0000000000..f69b7caaad --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/j0.java @@ -0,0 +1,12 @@ +package b.i.a.f.e.k; + +import androidx.annotation.Nullable; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class j0 { + @Nullable + public final String a; + + public j0(String str, @Nullable String str2, boolean z2, int i, boolean z3) { + this.a = str2; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/k.java b/app/src/main/java/b/i/a/f/e/k/k.java new file mode 100644 index 0000000000..78de4c0133 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/k.java @@ -0,0 +1,47 @@ +package b.i.a.f.e.k; + +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class k { + public final List a = new ArrayList(); + + /* renamed from: b reason: collision with root package name */ + public final Object f1374b; + + public k(Object obj, r0 r0Var) { + Objects.requireNonNull(obj, "null reference"); + this.f1374b = obj; + } + + @RecentlyNonNull + public final k a(@RecentlyNonNull String str, @Nullable Object obj) { + List list = this.a; + String valueOf = String.valueOf(obj); + StringBuilder sb = new StringBuilder(valueOf.length() + str.length() + 1); + sb.append(str); + sb.append("="); + sb.append(valueOf); + list.add(sb.toString()); + return this; + } + + @RecentlyNonNull + public final String toString() { + StringBuilder sb = new StringBuilder(100); + sb.append(this.f1374b.getClass().getSimpleName()); + sb.append('{'); + int size = this.a.size(); + for (int i = 0; i < size; i++) { + sb.append(this.a.get(i)); + if (i < size - 1) { + sb.append(", "); + } + } + sb.append('}'); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/k0.java b/app/src/main/java/b/i/a/f/e/k/k0.java new file mode 100644 index 0000000000..352bf5c595 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/k0.java @@ -0,0 +1,11 @@ +package b.i.a.f.e.k; + +import android.os.IInterface; +import android.os.RemoteException; +import b.i.a.f.f.a; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface k0 extends IInterface { + a b() throws RemoteException; + + int c() throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/e/k/l.java b/app/src/main/java/b/i/a/f/e/k/l.java new file mode 100644 index 0000000000..919330ee57 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/l.java @@ -0,0 +1,27 @@ +package b.i.a.f.e.k; + +import b.i.a.f.e.h.d; +import b.i.a.f.e.h.h; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class l { + public static final b a = new u(); + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public interface a { + T a(R r); + } + + /* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ + public interface b { + } + + public static Task a(d dVar) { + v vVar = new v(); + b bVar = a; + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + dVar.c(new t(dVar, taskCompletionSource, vVar, bVar)); + return taskCompletionSource.a; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/l0.java b/app/src/main/java/b/i/a/f/e/k/l0.java new file mode 100644 index 0000000000..6931ef994d --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/l0.java @@ -0,0 +1,29 @@ +package b.i.a.f.e.k; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.f.a; +import b.i.a.f.h.g.b; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class l0 extends b implements k0 { + public l0(IBinder iBinder) { + super(iBinder, "com.google.android.gms.common.internal.ICertData"); + } + + @Override // b.i.a.f.e.k.k0 + public final a b() throws RemoteException { + Parcel g = g(1, e()); + a g2 = a.AbstractBinderC0109a.g(g.readStrongBinder()); + g.recycle(); + return g2; + } + + @Override // b.i.a.f.e.k.k0 + public final int c() throws RemoteException { + Parcel g = g(2, e()); + int readInt = g.readInt(); + g.recycle(); + return readInt; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/m.java b/app/src/main/java/b/i/a/f/e/k/m.java new file mode 100644 index 0000000000..8441b1a69e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/m.java @@ -0,0 +1,176 @@ +package b.i.a.f.e.k; + +import android.content.Context; +import android.content.pm.PackageManager; +import android.content.res.Resources; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.collection.SimpleArrayMap; +import androidx.core.os.ConfigurationCompat; +import b.i.a.f.e.d; +import b.i.a.f.e.p.a; +import b.i.a.f.e.p.b; +import com.google.android.gms.base.R; +import java.util.Locale; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class m { + public static final SimpleArrayMap a = new SimpleArrayMap<>(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public static Locale f1375b; + + @Nullable + public static String a(Context context, int i) { + Resources resources = context.getResources(); + switch (i) { + case 1: + return resources.getString(R.b.common_google_play_services_install_title); + case 2: + return resources.getString(R.b.common_google_play_services_update_title); + case 3: + return resources.getString(R.b.common_google_play_services_enable_title); + case 4: + case 6: + case 18: + return null; + case 5: + Log.e("GoogleApiAvailability", "An invalid account was specified when connecting. Please provide a valid account."); + return b(context, "common_google_play_services_invalid_account_title"); + case 7: + Log.e("GoogleApiAvailability", "Network error occurred. Please retry request later."); + return b(context, "common_google_play_services_network_error_title"); + case 8: + Log.e("GoogleApiAvailability", "Internal error occurred. Please see logs for detailed information"); + return null; + case 9: + Log.e("GoogleApiAvailability", "Google Play services is invalid. Cannot recover."); + return null; + case 10: + Log.e("GoogleApiAvailability", "Developer error occurred. Please see logs for detailed information"); + return null; + case 11: + Log.e("GoogleApiAvailability", "The application is not licensed to the user."); + return null; + case 12: + case 13: + case 14: + case 15: + case 19: + default: + StringBuilder sb = new StringBuilder(33); + sb.append("Unexpected error code "); + sb.append(i); + Log.e("GoogleApiAvailability", sb.toString()); + return null; + case 16: + Log.e("GoogleApiAvailability", "One of the API components you attempted to connect to is not available."); + return null; + case 17: + Log.e("GoogleApiAvailability", "The specified account could not be signed in."); + return b(context, "common_google_play_services_sign_in_failed_title"); + case 20: + Log.e("GoogleApiAvailability", "The current user profile is restricted and could not use authenticated features."); + return b(context, "common_google_play_services_restricted_profile_title"); + } + } + + @Nullable + public static String b(Context context, String str) { + Resources resources; + SimpleArrayMap simpleArrayMap = a; + synchronized (simpleArrayMap) { + Locale locale = ConfigurationCompat.getLocales(context.getResources().getConfiguration()).get(0); + if (!locale.equals(f1375b)) { + simpleArrayMap.clear(); + f1375b = locale; + } + String str2 = simpleArrayMap.get(str); + if (str2 != null) { + return str2; + } + int i = d.e; + try { + resources = context.getPackageManager().getResourcesForApplication("com.google.android.gms"); + } catch (PackageManager.NameNotFoundException unused) { + resources = null; + } + if (resources == null) { + return null; + } + int identifier = resources.getIdentifier(str, "string", "com.google.android.gms"); + if (identifier == 0) { + String valueOf = String.valueOf(str); + Log.w("GoogleApiAvailability", valueOf.length() != 0 ? "Missing resource: ".concat(valueOf) : new String("Missing resource: ")); + return null; + } + String string = resources.getString(identifier); + if (TextUtils.isEmpty(string)) { + String valueOf2 = String.valueOf(str); + Log.w("GoogleApiAvailability", valueOf2.length() != 0 ? "Got empty resource: ".concat(valueOf2) : new String("Got empty resource: ")); + return null; + } + a.put(str, string); + return string; + } + } + + public static String c(Context context, String str, String str2) { + Resources resources = context.getResources(); + String b2 = b(context, str); + if (b2 == null) { + b2 = resources.getString(com.google.android.gms.common.R.a.common_google_play_services_unknown_issue); + } + return String.format(resources.getConfiguration().locale, b2, str2); + } + + public static String d(Context context) { + String packageName = context.getPackageName(); + try { + a a2 = b.a(context); + return a2.a.getPackageManager().getApplicationLabel(a2.a.getPackageManager().getApplicationInfo(packageName, 0)).toString(); + } catch (PackageManager.NameNotFoundException | NullPointerException unused) { + String str = context.getApplicationInfo().name; + return TextUtils.isEmpty(str) ? packageName : str; + } + } + + @NonNull + public static String e(Context context, int i) { + Resources resources = context.getResources(); + String d = d(context); + if (i == 1) { + return resources.getString(R.b.common_google_play_services_install_text, d); + } + if (i == 2) { + return b.c.a.a0.d.Z0(context) ? resources.getString(R.b.common_google_play_services_wear_update_text) : resources.getString(R.b.common_google_play_services_update_text, d); + } + if (i == 3) { + return resources.getString(R.b.common_google_play_services_enable_text, d); + } + if (i == 5) { + return c(context, "common_google_play_services_invalid_account_text", d); + } + if (i == 7) { + return c(context, "common_google_play_services_network_error_text", d); + } + if (i == 9) { + return resources.getString(R.b.common_google_play_services_unsupported_text, d); + } + if (i == 20) { + return c(context, "common_google_play_services_restricted_profile_text", d); + } + switch (i) { + case 16: + return c(context, "common_google_play_services_api_unavailable_text", d); + case 17: + return c(context, "common_google_play_services_sign_in_failed_text", d); + case 18: + return resources.getString(R.b.common_google_play_services_updating_text, d); + default: + return resources.getString(com.google.android.gms.common.R.a.common_google_play_services_unknown_issue, d); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/m0.java b/app/src/main/java/b/i/a/f/e/k/m0.java new file mode 100644 index 0000000000..55f9461f27 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/m0.java @@ -0,0 +1,31 @@ +package b.i.a.f.e.k; + +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.e.t; +import b.i.a.f.h.g.a; +import b.i.a.f.h.g.c; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public abstract class m0 extends a implements k0 { + public static final /* synthetic */ int a = 0; + + public m0() { + super("com.google.android.gms.common.internal.ICertData"); + } + + @Override // b.i.a.f.h.g.a + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i == 1) { + b.i.a.f.f.a b2 = ((t) this).b(); + parcel2.writeNoException(); + c.b(parcel2, b2); + } else if (i != 2) { + return false; + } else { + int i3 = ((t) this).f1387b; + parcel2.writeNoException(); + parcel2.writeInt(i3); + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/n.java b/app/src/main/java/b/i/a/f/e/k/n.java new file mode 100644 index 0000000000..a76796ca9c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/n.java @@ -0,0 +1,24 @@ +package b.i.a.f.e.k; + +import android.app.Activity; +import android.content.Intent; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class n extends o { + public final /* synthetic */ Intent j; + public final /* synthetic */ Activity k; + public final /* synthetic */ int l; + + public n(Intent intent, Activity activity, int i) { + this.j = intent; + this.k = activity; + this.l = i; + } + + @Override // b.i.a.f.e.k.o + public final void a() { + Intent intent = this.j; + if (intent != null) { + this.k.startActivityForResult(intent, this.l); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/n0.java b/app/src/main/java/b/i/a/f/e/k/n0.java new file mode 100644 index 0000000000..711c4c5482 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/n0.java @@ -0,0 +1,7 @@ +package b.i.a.f.e.k; + +import b.i.a.f.h.g.a; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public abstract class n0 extends a implements o0 { + public static final /* synthetic */ int a = 0; +} diff --git a/app/src/main/java/b/i/a/f/e/k/o.java b/app/src/main/java/b/i/a/f/e/k/o.java new file mode 100644 index 0000000000..ace226b95f --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/o.java @@ -0,0 +1,20 @@ +package b.i.a.f.e.k; + +import android.content.ActivityNotFoundException; +import android.content.DialogInterface; +import android.util.Log; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class o implements DialogInterface.OnClickListener { + public abstract void a(); + + @Override // android.content.DialogInterface.OnClickListener + public void onClick(DialogInterface dialogInterface, int i) { + try { + a(); + } catch (ActivityNotFoundException e) { + Log.e("DialogRedirect", "Failed to start resolution intent", e); + } finally { + dialogInterface.dismiss(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/o0.java b/app/src/main/java/b/i/a/f/e/k/o0.java new file mode 100644 index 0000000000..4d1b58a8b3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/o0.java @@ -0,0 +1,10 @@ +package b.i.a.f.e.k; + +import android.os.IInterface; +import android.os.RemoteException; +import b.i.a.f.f.a; +import com.google.android.gms.common.zzj; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface o0 extends IInterface { + boolean r0(zzj zzj, a aVar) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/e/k/p.java b/app/src/main/java/b/i/a/f/e/k/p.java new file mode 100644 index 0000000000..26bbba5c86 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/p.java @@ -0,0 +1,22 @@ +package b.i.a.f.e.k; + +import android.content.Intent; +import b.i.a.f.e.h.j.j; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class p extends o { + public final /* synthetic */ Intent j; + public final /* synthetic */ j k; + + public p(Intent intent, j jVar, int i) { + this.j = intent; + this.k = jVar; + } + + @Override // b.i.a.f.e.k.o + public final void a() { + Intent intent = this.j; + if (intent != null) { + this.k.startActivityForResult(intent, 2); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/p0.java b/app/src/main/java/b/i/a/f/e/k/p0.java new file mode 100644 index 0000000000..64e56a478f --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/p0.java @@ -0,0 +1,31 @@ +package b.i.a.f.e.k; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.f.a; +import b.i.a.f.h.g.b; +import b.i.a.f.h.g.c; +import com.google.android.gms.common.zzj; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class p0 extends b implements o0 { + public p0(IBinder iBinder) { + super(iBinder, "com.google.android.gms.common.internal.IGoogleCertificatesApi"); + } + + @Override // b.i.a.f.e.k.o0 + public final boolean r0(zzj zzj, a aVar) throws RemoteException { + Parcel e = e(); + int i = c.a; + boolean z2 = true; + e.writeInt(1); + zzj.writeToParcel(e, 0); + c.b(e, aVar); + Parcel g = g(5, e); + if (g.readInt() == 0) { + z2 = false; + } + g.recycle(); + return z2; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/q.java b/app/src/main/java/b/i/a/f/e/k/q.java new file mode 100644 index 0000000000..30fe2e81cf --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/q.java @@ -0,0 +1,19 @@ +package b.i.a.f.e.k; + +import androidx.annotation.NonNull; +import b.i.a.f.e.h.j.l; +import b.i.a.f.e.k.b; +import com.google.android.gms.common.ConnectionResult; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class q implements b.AbstractC0105b { + public final /* synthetic */ l j; + + public q(l lVar) { + this.j = lVar; + } + + @Override // b.i.a.f.e.k.b.AbstractC0105b + public final void g(@NonNull ConnectionResult connectionResult) { + this.j.g(connectionResult); + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/q0.java b/app/src/main/java/b/i/a/f/e/k/q0.java new file mode 100644 index 0000000000..8219e60724 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/q0.java @@ -0,0 +1,35 @@ +package b.i.a.f.e.k; + +import android.content.Context; +import android.content.pm.PackageManager; +import android.os.Bundle; +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.f.e.p.b; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class q0 { + public static Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static boolean f1376b; + @Nullable + public static String c; + public static int d; + + public static void a(Context context) { + synchronized (a) { + if (!f1376b) { + f1376b = true; + try { + Bundle bundle = b.a(context).a(context.getPackageName(), 128).metaData; + if (bundle != null) { + c = bundle.getString("com.google.app.id"); + d = bundle.getInt("com.google.android.gms.version"); + } + } catch (PackageManager.NameNotFoundException e) { + Log.wtf("MetadataValueReader", "This should never happen.", e); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/r.java b/app/src/main/java/b/i/a/f/e/k/r.java new file mode 100644 index 0000000000..42b16c3537 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/r.java @@ -0,0 +1,24 @@ +package b.i.a.f.e.k; + +import android.os.Bundle; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.j.f; +import b.i.a.f.e.k.b; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class r implements b.a { + public final /* synthetic */ f j; + + public r(f fVar) { + this.j = fVar; + } + + @Override // b.i.a.f.e.k.b.a + public final void e(int i) { + this.j.e(i); + } + + @Override // b.i.a.f.e.k.b.a + public final void h(@Nullable Bundle bundle) { + this.j.h(null); + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/s.java b/app/src/main/java/b/i/a/f/e/k/s.java new file mode 100644 index 0000000000..758f79591d --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/s.java @@ -0,0 +1,51 @@ +package b.i.a.f.e.k; + +import android.content.Context; +import android.util.SparseIntArray; +import androidx.annotation.NonNull; +import b.i.a.f.e.c; +import b.i.a.f.e.h.a; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class s { + public final SparseIntArray a = new SparseIntArray(); + + /* renamed from: b reason: collision with root package name */ + public c f1377b; + + public s(@NonNull c cVar) { + Objects.requireNonNull(cVar, "null reference"); + this.f1377b = cVar; + } + + public final int a(@NonNull Context context, @NonNull a.f fVar) { + Objects.requireNonNull(context, "null reference"); + Objects.requireNonNull(fVar, "null reference"); + int i = 0; + if (!fVar.k()) { + return 0; + } + int l = fVar.l(); + int i2 = this.a.get(l, -1); + if (i2 != -1) { + return i2; + } + int i3 = 0; + while (true) { + if (i3 >= this.a.size()) { + i = i2; + break; + } + int keyAt = this.a.keyAt(i3); + if (keyAt > l && this.a.get(keyAt) == 0) { + break; + } + i3++; + } + if (i == -1) { + i = this.f1377b.b(context, l); + } + this.a.put(l, i); + return i; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/s0.java b/app/src/main/java/b/i/a/f/e/k/s0.java new file mode 100644 index 0000000000..328b967ac3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/s0.java @@ -0,0 +1,44 @@ +package b.i.a.f.e.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.internal.RootTelemetryConfiguration; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class s0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final RootTelemetryConfiguration createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + boolean z2 = false; + boolean z3 = false; + int i2 = 0; + int i3 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i4 = 65535 & readInt; + if (i4 == 1) { + i = d.E1(parcel, readInt); + } else if (i4 == 2) { + z2 = d.C1(parcel, readInt); + } else if (i4 == 3) { + z3 = d.C1(parcel, readInt); + } else if (i4 == 4) { + i2 = d.E1(parcel, readInt); + } else if (i4 != 5) { + d.b2(parcel, readInt); + } else { + i3 = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new RootTelemetryConfiguration(i, z2, z3, i2, i3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ RootTelemetryConfiguration[] newArray(int i) { + return new RootTelemetryConfiguration[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/t.java b/app/src/main/java/b/i/a/f/e/k/t.java new file mode 100644 index 0000000000..6ccb626c1f --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/t.java @@ -0,0 +1,50 @@ +package b.i.a.f.e.k; + +import b.i.a.f.e.h.d; +import b.i.a.f.e.h.h; +import b.i.a.f.e.k.l; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.common.api.internal.BasePendingResult; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class t implements d.a { + public final /* synthetic */ d a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ TaskCompletionSource f1378b; + public final /* synthetic */ l.a c; + + public t(d dVar, TaskCompletionSource taskCompletionSource, l.a aVar, l.b bVar) { + this.a = dVar; + this.f1378b = taskCompletionSource; + this.c = aVar; + } + + @Override // b.i.a.f.e.h.d.a + public final void a(Status status) { + if (status.w0()) { + d dVar = this.a; + TimeUnit timeUnit = TimeUnit.MILLISECONDS; + BasePendingResult basePendingResult = (BasePendingResult) dVar; + Objects.requireNonNull(basePendingResult); + b.c.a.a0.d.G(!basePendingResult.i, "Result has already been consumed."); + b.c.a.a0.d.G(true, "Cannot await if then() has been called."); + try { + if (!basePendingResult.d.await(0, timeUnit)) { + basePendingResult.e(Status.m); + } + } catch (InterruptedException unused) { + basePendingResult.e(Status.k); + } + b.c.a.a0.d.G(basePendingResult.f(), "Result is not ready."); + h j = basePendingResult.j(); + TaskCompletionSource taskCompletionSource = this.f1378b; + taskCompletionSource.a.t(this.c.a(j)); + return; + } + TaskCompletionSource taskCompletionSource2 = this.f1378b; + taskCompletionSource2.a.s(b.c.a.a0.d.k0(status)); + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/u.java b/app/src/main/java/b/i/a/f/e/k/u.java new file mode 100644 index 0000000000..814448ac4e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/u.java @@ -0,0 +1,6 @@ +package b.i.a.f.e.k; + +import b.i.a.f.e.k.l; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class u implements l.b { +} diff --git a/app/src/main/java/b/i/a/f/e/k/v.java b/app/src/main/java/b/i/a/f/e/k/v.java new file mode 100644 index 0000000000..d8f8911dee --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/v.java @@ -0,0 +1,12 @@ +package b.i.a.f.e.k; + +import b.i.a.f.e.h.h; +import b.i.a.f.e.k.l; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class v implements l.a { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.e.k.l.a + public final /* bridge */ /* synthetic */ Void a(h hVar) { + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/w.java b/app/src/main/java/b/i/a/f/e/k/w.java new file mode 100644 index 0000000000..bc8600dd53 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/w.java @@ -0,0 +1,22 @@ +package b.i.a.f.e.k; + +import b.i.a.f.e.h.g; +import b.i.a.f.e.h.h; +import b.i.a.f.e.k.l; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class w implements l.a { + public final /* synthetic */ g a; + + public w(g gVar) { + this.a = gVar; + } + + /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: b.i.a.f.e.h.h */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.i.a.f.e.k.l.a + public final Object a(h hVar) { + g gVar = this.a; + gVar.a = hVar; + return gVar; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/x.java b/app/src/main/java/b/i/a/f/e/k/x.java new file mode 100644 index 0000000000..c1fd4b6862 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/x.java @@ -0,0 +1,43 @@ +package b.i.a.f.e.k; + +import android.accounts.Account; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.common.internal.zas; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class x implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zas createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + Account account = null; + GoogleSignInAccount googleSignInAccount = null; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + i = d.E1(parcel, readInt); + } else if (i3 == 2) { + account = (Account) d.P(parcel, readInt, Account.CREATOR); + } else if (i3 == 3) { + i2 = d.E1(parcel, readInt); + } else if (i3 != 4) { + d.b2(parcel, readInt); + } else { + googleSignInAccount = (GoogleSignInAccount) d.P(parcel, readInt, GoogleSignInAccount.CREATOR); + } + } + d.e0(parcel, k2); + return new zas(i, account, i2, googleSignInAccount); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zas[] newArray(int i) { + return new zas[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/y.java b/app/src/main/java/b/i/a/f/e/k/y.java new file mode 100644 index 0000000000..8c9aadbf94 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/y.java @@ -0,0 +1,46 @@ +package b.i.a.f.e.k; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.internal.zau; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class y implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zau createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + IBinder iBinder = null; + ConnectionResult connectionResult = null; + int i = 0; + boolean z2 = false; + boolean z3 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + i = d.E1(parcel, readInt); + } else if (i2 == 2) { + iBinder = d.D1(parcel, readInt); + } else if (i2 == 3) { + connectionResult = (ConnectionResult) d.P(parcel, readInt, ConnectionResult.CREATOR); + } else if (i2 == 4) { + z2 = d.C1(parcel, readInt); + } else if (i2 != 5) { + d.b2(parcel, readInt); + } else { + z3 = d.C1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zau(i, iBinder, connectionResult, z2, z3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zau[] newArray(int i) { + return new zau[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/k/z.java b/app/src/main/java/b/i/a/f/e/k/z.java new file mode 100644 index 0000000000..182e4f6f72 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/k/z.java @@ -0,0 +1,21 @@ +package b.i.a.f.e.k; + +import android.os.IBinder; +import android.os.IInterface; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class z extends d { + @Override // b.i.a.f.e.k.b + public final T r(IBinder iBinder) { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.e.k.b + public final String x() { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.e.k.b + public final String y() { + throw new NoSuchMethodError(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/l/a.java b/app/src/main/java/b/i/a/f/e/l/a.java new file mode 100644 index 0000000000..bb9c1eee6c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/l/a.java @@ -0,0 +1,59 @@ +package b.i.a.f.e.l; + +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.e.k.f; +import java.util.Locale; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1379b; + public final int c; + + public a(@RecentlyNonNull String str, @RecentlyNonNull String... strArr) { + String str2; + if (strArr.length == 0) { + str2 = ""; + } else { + StringBuilder N = b.d.b.a.a.N('['); + for (String str3 : strArr) { + if (N.length() > 1) { + N.append(","); + } + N.append(str3); + } + N.append(']'); + N.append(' '); + str2 = N.toString(); + } + this.f1379b = str2; + this.a = str; + new f(str); + int i = 2; + while (7 >= i && !Log.isLoggable(this.a, i)) { + i++; + } + this.c = i; + } + + public void a(@RecentlyNonNull String str, @Nullable Object... objArr) { + if (this.c <= 3) { + String str2 = this.a; + if (objArr.length > 0) { + str = String.format(Locale.US, str, objArr); + } + Log.d(str2, this.f1379b.concat(str)); + } + } + + public void b(@RecentlyNonNull String str, @Nullable Object... objArr) { + String str2 = this.a; + if (objArr.length > 0) { + str = String.format(Locale.US, str, objArr); + } + Log.e(str2, this.f1379b.concat(str)); + } +} diff --git a/app/src/main/java/b/i/a/f/e/m/a.java b/app/src/main/java/b/i/a/f/e/m/a.java new file mode 100644 index 0000000000..b200839fa0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/m/a.java @@ -0,0 +1,11 @@ +package b.i.a.f.e.m; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +@Deprecated +public class a { + public static AbstractC0107a a; + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + /* renamed from: b.i.a.f.e.m.a$a reason: collision with other inner class name */ + public interface AbstractC0107a { + } +} diff --git a/app/src/main/java/b/i/a/f/e/m/b.java b/app/src/main/java/b/i/a/f/e/m/b.java new file mode 100644 index 0000000000..c7042860a4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/m/b.java @@ -0,0 +1,6 @@ +package b.i.a.f.e.m; + +import b.i.a.f.e.m.a; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class b implements a.AbstractC0107a { +} diff --git a/app/src/main/java/b/i/a/f/e/n/a.java b/app/src/main/java/b/i/a/f/e/n/a.java new file mode 100644 index 0000000000..a5e76112f3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/n/a.java @@ -0,0 +1,102 @@ +package b.i.a.f.e.n; + +import android.annotation.SuppressLint; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.ServiceConnection; +import android.content.pm.PackageManager; +import android.util.Log; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.e.k.i0; +import b.i.a.f.e.p.b; +import java.util.Objects; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static volatile a f1380b; + public ConcurrentHashMap c = new ConcurrentHashMap<>(); + + @RecentlyNonNull + public static a b() { + if (f1380b == null) { + synchronized (a) { + if (f1380b == null) { + f1380b = new a(); + } + } + } + a aVar = f1380b; + Objects.requireNonNull(aVar, "null reference"); + return aVar; + } + + @RecentlyNonNull + public boolean a(@RecentlyNonNull Context context, @RecentlyNonNull Intent intent, @RecentlyNonNull ServiceConnection serviceConnection, @RecentlyNonNull int i) { + return d(context, context.getClass().getName(), intent, serviceConnection, i); + } + + @SuppressLint({"UntrackedBindService"}) + public void c(@RecentlyNonNull Context context, @RecentlyNonNull ServiceConnection serviceConnection) { + if (!(!(serviceConnection instanceof i0)) || !this.c.containsKey(serviceConnection)) { + try { + context.unbindService(serviceConnection); + } catch (IllegalArgumentException | IllegalStateException unused) { + } + } else { + try { + try { + context.unbindService(this.c.get(serviceConnection)); + } catch (IllegalArgumentException | IllegalStateException unused2) { + } + } finally { + this.c.remove(serviceConnection); + } + } + } + + /* JADX WARNING: Removed duplicated region for block: B:12:0x002e */ + /* JADX WARNING: Removed duplicated region for block: B:13:0x0034 */ + @RecentlyNonNull + public final boolean d(@RecentlyNonNull Context context, @RecentlyNonNull String str, @RecentlyNonNull Intent intent, @RecentlyNonNull ServiceConnection serviceConnection, @RecentlyNonNull int i) { + boolean z2; + boolean z3; + ComponentName component = intent.getComponent(); + if (component != null) { + String packageName = component.getPackageName(); + "com.google.android.gms".equals(packageName); + try { + if ((b.a(context).a.getPackageManager().getApplicationInfo(packageName, 0).flags & 2097152) != 0) { + z2 = true; + if (!z2) { + Log.w("ConnectionTracker", "Attempted to bind to a service in a STOPPED package."); + return false; + } + if (!(serviceConnection instanceof i0)) { + ServiceConnection putIfAbsent = this.c.putIfAbsent(serviceConnection, serviceConnection); + if (!(putIfAbsent == null || serviceConnection == putIfAbsent)) { + Log.w("ConnectionTracker", String.format("Duplicate binding with the same ServiceConnection: %s, %s, %s.", serviceConnection, str, intent.getAction())); + } + try { + z3 = context.bindService(intent, serviceConnection, i); + if (!z3) { + } + } finally { + this.c.remove(serviceConnection, serviceConnection); + } + } else { + z3 = context.bindService(intent, serviceConnection, i); + } + return z3; + } + } catch (PackageManager.NameNotFoundException unused) { + } + } + z2 = false; + if (!z2) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/a.java b/app/src/main/java/b/i/a/f/e/o/a.java new file mode 100644 index 0000000000..feda83ee2e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/a.java @@ -0,0 +1,22 @@ +package b.i.a.f.e.o; + +import androidx.annotation.RecentlyNonNull; +import androidx.annotation.RecentlyNullable; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a { + @RecentlyNullable + public static MessageDigest a(@RecentlyNonNull String str) { + for (int i = 0; i < 2; i++) { + try { + MessageDigest instance = MessageDigest.getInstance(str); + if (instance != null) { + return instance; + } + } catch (NoSuchAlgorithmException unused) { + } + } + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/b.java b/app/src/main/java/b/i/a/f/e/o/b.java new file mode 100644 index 0000000000..2108271268 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/b.java @@ -0,0 +1,4 @@ +package b.i.a.f.e.o; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface b { +} diff --git a/app/src/main/java/b/i/a/f/e/o/c.java b/app/src/main/java/b/i/a/f/e/o/c.java new file mode 100644 index 0000000000..b1b435d56f --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/c.java @@ -0,0 +1,12 @@ +package b.i.a.f.e.o; + +import androidx.annotation.RecentlyNonNull; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class c implements b { + public static final c a = new c(); + + @RecentlyNonNull + public long a() { + return System.currentTimeMillis(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/d.java b/app/src/main/java/b/i/a/f/e/o/d.java new file mode 100644 index 0000000000..b4ae6a90d3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/d.java @@ -0,0 +1,24 @@ +package b.i.a.f.e.o; + +import androidx.annotation.RecentlyNonNull; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class d { + public static final char[] a = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; + + /* renamed from: b reason: collision with root package name */ + public static final char[] f1381b = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; + + @RecentlyNonNull + public static String a(@RecentlyNonNull byte[] bArr, @RecentlyNonNull boolean z2) { + int length = bArr.length; + StringBuilder sb = new StringBuilder(length << 1); + int i = 0; + while (i < length && (!z2 || i != length - 1 || (bArr[i] & 255) != 0)) { + char[] cArr = a; + sb.append(cArr[(bArr[i] & 240) >>> 4]); + sb.append(cArr[bArr[i] & 15]); + i++; + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/e.java b/app/src/main/java/b/i/a/f/e/o/e.java new file mode 100644 index 0000000000..b2a2c90837 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/e.java @@ -0,0 +1,54 @@ +package b.i.a.f.e.o; + +import androidx.annotation.RecentlyNonNull; +import java.io.UnsupportedEncodingException; +import java.net.URI; +import java.net.URLDecoder; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Scanner; +import java.util.regex.Pattern; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class e { + static { + Pattern.compile("^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"); + Pattern.compile("^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$"); + Pattern.compile("^((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)::((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)$"); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:29:0x0063 */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Unknown variable types count: 1 */ + @RecentlyNonNull + public static Map a(@RecentlyNonNull URI uri, @RecentlyNonNull String str) { + ?? emptyMap = Collections.emptyMap(); + String rawQuery = uri.getRawQuery(); + if (rawQuery != null && rawQuery.length() > 0) { + emptyMap = new HashMap(); + Scanner scanner = new Scanner(rawQuery); + scanner.useDelimiter("&"); + while (scanner.hasNext()) { + String[] split = scanner.next().split("="); + if (split.length == 0 || split.length > 2) { + throw new IllegalArgumentException("bad parameter"); + } + try { + String decode = URLDecoder.decode(split[0], str); + String str2 = null; + if (split.length == 2) { + try { + str2 = URLDecoder.decode(split[1], str); + } catch (UnsupportedEncodingException e) { + throw new IllegalArgumentException(e); + } + } + emptyMap.put(decode, str2); + } catch (UnsupportedEncodingException e2) { + throw new IllegalArgumentException(e2); + } + } + } + return emptyMap; + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/f.java b/app/src/main/java/b/i/a/f/e/o/f.java new file mode 100644 index 0000000000..84315e0f28 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/f.java @@ -0,0 +1,3221 @@ +package b.i.a.f.e.o; + +import android.annotation.TargetApi; +import android.app.AppOpsManager; +import android.content.Context; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.res.Resources; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.graphics.Rect; +import android.graphics.RectF; +import android.hardware.Camera; +import android.opengl.EGL14; +import android.opengl.EGLConfig; +import android.opengl.EGLContext; +import android.opengl.EGLDisplay; +import android.opengl.EGLSurface; +import android.opengl.GLES20; +import android.os.Binder; +import android.os.Build; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; +import android.util.TypedValue; +import android.view.Display; +import android.view.WindowManager; +import androidx.annotation.DimenRes; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import androidx.annotation.WorkerThread; +import androidx.media.AudioAttributesCompat; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.f.h.l.a3; +import b.i.a.f.h.l.b5; +import b.i.a.f.h.l.b7; +import b.i.a.f.h.l.c3; +import b.i.a.f.h.l.c6; +import b.i.a.f.h.l.c7; +import b.i.a.f.h.l.d2; +import b.i.a.f.h.l.e6; +import b.i.a.f.h.l.k7; +import b.i.a.f.h.l.q6; +import b.i.a.f.h.l.s3; +import b.i.a.f.h.l.t3; +import b.i.a.f.h.l.u4; +import b.i.a.f.h.l.w4; +import b.i.a.f.h.l.x4; +import b.i.a.f.h.l.z2; +import b.i.a.f.h.l.z3; +import b.i.a.f.i.b.ga; +import b.i.a.f.i.b.q3; +import b.i.a.f.n.b0; +import b.i.a.f.n.d0; +import b.i.a.f.n.h; +import b.i.b.b.h; +import b.i.b.b.n0; +import b.i.c.l.d; +import b.i.c.m.d.k.s0; +import b.i.c.m.d.k.t0; +import b.o.a.x.i; +import b.o.a.x.j; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.google.android.gms.common.R; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.internal.measurement.zzij; +import com.google.android.gms.tasks.Task; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import com.google.firebase.appindexing.FirebaseAppIndexingException; +import com.google.firebase.appindexing.FirebaseAppIndexingInvalidArgumentException; +import com.google.firebase.appindexing.FirebaseAppIndexingTooManyArgumentsException; +import com.google.firebase.appindexing.zza; +import com.google.firebase.appindexing.zzb; +import com.google.firebase.appindexing.zzc; +import com.google.firebase.appindexing.zzd; +import com.google.firebase.appindexing.zze; +import com.google.firebase.appindexing.zzf; +import com.google.firebase.appindexing.zzg; +import com.google.firebase.appindexing.zzh; +import com.google.gson.JsonElement; +import com.google.gson.JsonParseException; +import com.google.gson.internal.bind.TypeAdapters; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.MalformedJsonException; +import com.lytefast.flexinput.viewmodel.FlexInputViewModel; +import d0.g0.t; +import d0.k; +import d0.w.d; +import d0.w.i.a.g; +import d0.z.d.e0; +import d0.z.d.m; +import f0.e0.f.d; +import g0.n; +import g0.p; +import g0.u; +import g0.x; +import java.io.EOFException; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.Serializable; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.net.IDN; +import java.net.InetAddress; +import java.net.Socket; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.nio.FloatBuffer; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.TreeSet; +import java.util.concurrent.Callable; +import java.util.concurrent.CancellationException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Executor; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import java.util.concurrent.atomic.AtomicLong; +import java.util.concurrent.atomic.AtomicReference; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.zip.GZIPOutputStream; +import kotlin.TypeCastException; +import kotlin.Unit; +import kotlin.coroutines.Continuation; +import kotlin.coroutines.CoroutineContext; +import kotlin.jvm.functions.Function1; +import kotlin.jvm.functions.Function2; +import kotlinx.coroutines.CoroutineExceptionHandler; +import kotlinx.coroutines.CoroutineScope; +import kotlinx.coroutines.CoroutineStart; +import kotlinx.coroutines.Job; +import kotlinx.coroutines.internal.UndeliveredElementException; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +import s.a.a.r; +import s.a.b2.f; +import s.a.b2.o; +import s.a.b2.q; +import s.a.b2.s; +import s.a.b2.v; +import s.a.d; +import s.a.f0; +import s.a.f1; +import s.a.g0; +import s.a.h0; +import s.a.i0; +import s.a.i1; +import s.a.j0; +import s.a.j1; +import s.a.k1; +import s.a.l; +import s.a.m0; +import s.a.s1; +import s.a.t1; +import s.a.w; +import s.a.y1; +import s.a.z; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class f { + public static Boolean a; + + /* renamed from: b reason: collision with root package name */ + public static Context f1382b; + @Nullable + public static Boolean c; + public static ga d; + + /* compiled from: SizeSelectors */ + public static class a implements j { + public final /* synthetic */ int a; + + public a(int i) { + this.a = i; + } + + @Override // b.o.a.x.j + public boolean a(@NonNull b.o.a.x.b bVar) { + return bVar.j <= this.a; + } + } + + /* compiled from: SizeSelectors */ + public static class b implements j { + public final /* synthetic */ int a; + + public b(int i) { + this.a = i; + } + + @Override // b.o.a.x.j + public boolean a(@NonNull b.o.a.x.b bVar) { + return bVar.j >= this.a; + } + } + + /* compiled from: SizeSelectors */ + public static class c implements j { + public final /* synthetic */ int a; + + public c(int i) { + this.a = i; + } + + @Override // b.o.a.x.j + public boolean a(@NonNull b.o.a.x.b bVar) { + return bVar.k <= this.a; + } + } + + /* compiled from: SizeSelectors */ + public static class d implements j { + public final /* synthetic */ int a; + + public d(int i) { + this.a = i; + } + + @Override // b.o.a.x.j + public boolean a(@NonNull b.o.a.x.b bVar) { + return bVar.k >= this.a; + } + } + + /* compiled from: Await.kt */ + @d0.w.i.a.e(c = "kotlinx.coroutines.AwaitKt", f = "Await.kt", l = {26}, m = "awaitAll") + public static final class e extends d0.w.i.a.d { + public Object L$0; + public int label; + public /* synthetic */ Object result; + + public e(Continuation continuation) { + super(continuation); + } + + @Override // d0.w.i.a.a + public final Object invokeSuspend(Object obj) { + this.result = obj; + this.label |= Integer.MIN_VALUE; + return f.k(null, this); + } + } + + /* compiled from: Channels.kt */ + @d0.w.i.a.e(c = "kotlinx.coroutines.flow.FlowKt__ChannelsKt", f = "Channels.kt", l = {50, 61}, m = "emitAllImpl$FlowKt__ChannelsKt") + /* renamed from: b.i.a.f.e.o.f$f reason: collision with other inner class name */ + public static final class C0108f extends d0.w.i.a.d { + public Object L$0; + public Object L$1; + public Object L$2; + public Object L$3; + public boolean Z$0; + public int label; + public /* synthetic */ Object result; + + public C0108f(Continuation continuation) { + super(continuation); + } + + @Override // d0.w.i.a.a + public final Object invokeSuspend(Object obj) { + this.result = obj; + this.label |= Integer.MIN_VALUE; + return f.T(null, null, false, this); + } + } + + public static final void A(long j, long j2, long j3) { + if ((j2 | j3) < 0 || j2 > j || j - j2 < j3) { + throw new ArrayIndexOutOfBoundsException("size=" + j + " offset=" + j2 + " byteCount=" + j3); + } + } + + public static boolean A0(Camera camera) { + List supportedFlashModes; + if (camera != null) { + Camera.Parameters parameters = camera.getParameters(); + if (parameters.getFlashMode() != null && (supportedFlashModes = parameters.getSupportedFlashModes()) != null && !supportedFlashModes.isEmpty() && (supportedFlashModes.size() != 1 || !supportedFlashModes.get(0).equals("off"))) { + return true; + } + } + return false; + } + + public static int A1(int i, byte[] bArr, int i2, s3 s3Var) { + int i3 = i & 127; + int i4 = i2 + 1; + byte b2 = bArr[i2]; + if (b2 >= 0) { + s3Var.a = i3 | (b2 << 7); + return i4; + } + int i5 = i3 | ((b2 & Byte.MAX_VALUE) << 7); + int i6 = i4 + 1; + byte b3 = bArr[i4]; + if (b3 >= 0) { + s3Var.a = i5 | (b3 << 14); + return i6; + } + int i7 = i5 | ((b3 & Byte.MAX_VALUE) << 14); + int i8 = i6 + 1; + byte b4 = bArr[i6]; + if (b4 >= 0) { + s3Var.a = i7 | (b4 << 21); + return i8; + } + int i9 = i7 | ((b4 & Byte.MAX_VALUE) << 21); + int i10 = i8 + 1; + byte b5 = bArr[i8]; + if (b5 >= 0) { + s3Var.a = i9 | (b5 << 28); + return i10; + } + int i11 = i9 | ((b5 & Byte.MAX_VALUE) << 28); + while (true) { + int i12 = i10 + 1; + if (bArr[i10] >= 0) { + s3Var.a = i11; + return i12; + } + i10 = i12; + } + } + + @CanIgnoreReturnValue + public static int B(int i, int i2) { + if (i >= 0 && i <= i2) { + return i; + } + throw new IndexOutOfBoundsException(l(i, i2, "index")); + } + + @RecentlyNonNull + public static boolean B0(@RecentlyNonNull Context context, @RecentlyNonNull int i) { + if (!r1(context, i, "com.google.android.gms")) { + return false; + } + try { + PackageInfo packageInfo = context.getPackageManager().getPackageInfo("com.google.android.gms", 64); + b.i.a.f.e.f a2 = b.i.a.f.e.f.a(context); + Objects.requireNonNull(a2); + if (packageInfo == null) { + return false; + } + if (!b.i.a.f.e.f.d(packageInfo, false)) { + if (!b.i.a.f.e.f.d(packageInfo, true)) { + return false; + } + if (!b.i.a.f.e.e.a(a2.f1334b)) { + Log.w("GoogleSignatureVerifier", "Test-keys aren't accepted on this build."); + return false; + } + } + return true; + } catch (PackageManager.NameNotFoundException unused) { + if (Log.isLoggable("UidVerifier", 3)) { + Log.d("UidVerifier", "Package manager can't find google play services package, defaulting to false"); + } + return false; + } + } + + public static int B1(q6 q6Var, int i, byte[] bArr, int i2, int i3, b5 b5Var, s3 s3Var) throws IOException { + int D1 = D1(q6Var, bArr, i2, i3, s3Var); + b5Var.add(s3Var.c); + while (D1 < i3) { + int F1 = F1(bArr, D1, s3Var); + if (i != s3Var.a) { + break; + } + D1 = D1(q6Var, bArr, F1, i3, s3Var); + b5Var.add(s3Var.c); + } + return D1; + } + + public static void C(int i, int i2, int i3) { + if (i < 0 || i2 < i || i2 > i3) { + throw new IndexOutOfBoundsException((i < 0 || i > i3) ? l(i, i3, "start index") : (i2 < 0 || i2 > i3) ? l(i2, i3, "end index") : G0("end index (%s) must not be less than start index (%s)", Integer.valueOf(i2), Integer.valueOf(i))); + } + } + + @RecentlyNonNull + public static synchronized boolean C0(@RecentlyNonNull Context context) { + Boolean bool; + synchronized (f.class) { + Context applicationContext = context.getApplicationContext(); + Context context2 = f1382b; + if (context2 != null && (bool = c) != null && context2 == applicationContext) { + return bool.booleanValue(); + } + c = null; + if (y0()) { + c = Boolean.valueOf(applicationContext.getPackageManager().isInstantApp()); + } else { + try { + context.getClassLoader().loadClass("com.google.android.instantapps.supervisor.InstantAppsRuntime"); + c = Boolean.TRUE; + } catch (ClassNotFoundException unused) { + c = Boolean.FALSE; + } + } + f1382b = applicationContext; + return c.booleanValue(); + } + } + + public static int C1(q6 q6Var, byte[] bArr, int i, int i2, int i3, s3 s3Var) throws IOException { + e6 e6Var = (e6) q6Var; + Object b2 = e6Var.m.b(e6Var.g); + int m = e6Var.m(b2, bArr, i, i2, i3, s3Var); + e6Var.d(b2); + s3Var.c = b2; + return m; + } + + public static void D(boolean z2) { + if (!z2) { + throw new IllegalStateException("no calls to next() since the last call to remove()"); + } + } + + public static final boolean D0(g0.e eVar) { + m.checkParameterIsNotNull(eVar, "$this$isProbablyUtf8"); + try { + g0.e eVar2 = new g0.e(); + eVar.n(eVar2, 0, d0.d0.f.coerceAtMost(eVar.k, 64)); + for (int i = 0; i < 16; i++) { + if (eVar2.w()) { + return true; + } + int I = eVar2.I(); + if (Character.isISOControl(I) && !Character.isWhitespace(I)) { + return false; + } + } + return true; + } catch (EOFException unused) { + return false; + } + } + + public static int D1(q6 q6Var, byte[] bArr, int i, int i2, s3 s3Var) throws IOException { + int i3 = i + 1; + byte b2 = bArr[i]; + byte b3 = b2; + if (b2 < 0) { + i3 = A1(b2, bArr, i3, s3Var); + b3 = s3Var.a; + } + if (b3 < 0 || b3 > i2 - i3) { + throw zzij.a(); + } + Object a2 = q6Var.a(); + int i4 = (b3 == 1 ? 1 : 0) + i3; + q6Var.h(a2, bArr, i3, i4, s3Var); + q6Var.d(a2); + s3Var.c = a2; + return i4; + } + + public static void E(boolean z2, @NullableDecl String str, int i) { + if (!z2) { + throw new IllegalStateException(G0(str, Integer.valueOf(i))); + } + } + + public static final Job E0(CoroutineScope coroutineScope, CoroutineContext coroutineContext, CoroutineStart coroutineStart, Function2, ? extends Object> function2) { + CoroutineContext a2 = z.a(coroutineScope, coroutineContext); + Objects.requireNonNull(coroutineStart); + s.a.b k1Var = coroutineStart == CoroutineStart.LAZY ? new k1(a2, function2) : new s1(a2, true); + k1Var.j0(coroutineStart, k1Var, function2); + return k1Var; + } + + public static int E1(byte[] bArr, int i) { + return ((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16); + } + + public static void F(boolean z2, @NullableDecl String str, @NullableDecl Object obj) { + if (!z2) { + throw new IllegalStateException(G0(str, obj)); + } + } + + public static /* synthetic */ Job F0(CoroutineScope coroutineScope, CoroutineContext coroutineContext, CoroutineStart coroutineStart, Function2 function2, int i, Object obj) { + if ((i & 1) != 0) { + coroutineContext = d0.w.f.j; + } + return E0(coroutineScope, coroutineContext, (i & 2) != 0 ? CoroutineStart.DEFAULT : null, function2); + } + + public static int F1(byte[] bArr, int i, s3 s3Var) { + int i2 = i + 1; + byte b2 = bArr[i]; + if (b2 < 0) { + return A1(b2, bArr, i2, s3Var); + } + s3Var.a = b2; + return i2; + } + + public static int G(long j) { + int i = (int) j; + if (((long) i) == j) { + return i; + } + throw new IllegalArgumentException(G0("Out of range: %s", Long.valueOf(j))); + } + + public static String G0(@NullableDecl String str, @NullableDecl Object... objArr) { + int indexOf; + String str2; + String valueOf = String.valueOf(str); + int i = 0; + for (int i2 = 0; i2 < objArr.length; i2++) { + Object obj = objArr[i2]; + try { + str2 = String.valueOf(obj); + } catch (Exception e2) { + String str3 = obj.getClass().getName() + MentionUtilsKt.MENTIONS_CHAR + Integer.toHexString(System.identityHashCode(obj)); + Logger.getLogger("com.google.common.base.Strings").log(Level.WARNING, "Exception during lenientFormat for " + str3, (Throwable) e2); + str2 = "<" + str3 + " threw " + e2.getClass().getName() + ">"; + } + objArr[i2] = str2; + } + StringBuilder sb = new StringBuilder((objArr.length * 16) + valueOf.length()); + int i3 = 0; + while (i < objArr.length && (indexOf = valueOf.indexOf("%s", i3)) != -1) { + sb.append((CharSequence) valueOf, i3, indexOf); + sb.append(objArr[i]); + i3 = indexOf + 2; + i++; + } + sb.append((CharSequence) valueOf, i3, valueOf.length()); + if (i < objArr.length) { + sb.append(" ["); + sb.append(objArr[i]); + for (int i4 = i + 1; i4 < objArr.length; i4++) { + sb.append(", "); + sb.append(objArr[i4]); + } + sb.append(']'); + } + return sb.toString(); + } + + public static int G1(byte[] bArr, int i, b5 b5Var, s3 s3Var) throws IOException { + x4 x4Var = (x4) b5Var; + int F1 = F1(bArr, i, s3Var); + int i2 = s3Var.a + F1; + while (F1 < i2) { + F1 = F1(bArr, F1, s3Var); + x4Var.g(s3Var.a); + } + if (F1 == i2) { + return F1; + } + throw zzij.a(); + } + + public static /* synthetic */ boolean H(s sVar, Throwable th, int i, Object obj) { + int i2 = i & 1; + return sVar.j(null); + } + + public static final float[] H0(float[] fArr) { + m.checkNotNullParameter(fArr, "matrix"); + return (float[]) fArr.clone(); + } + + public static z2 H1(z2 z2Var) { + return ((z2Var instanceof c3) || (z2Var instanceof a3)) ? z2Var : z2Var instanceof Serializable ? new a3(z2Var) : new c3(z2Var); + } + + public static int I(int i, int i2) { + int i3 = i - i2; + if (i3 > i2) { + i3 = i2; + i2 = i3; + } + int i4 = 1; + int i5 = 1; + while (i > i2) { + i4 *= i; + if (i5 <= i3) { + i4 /= i5; + i5++; + } + i--; + } + while (i5 <= i3) { + i4 /= i5; + i5++; + } + return i4; + } + + @NonNull + public static b.o.a.x.c I0(int i) { + return u1(new c(i)); + } + + public static FirebaseAppIndexingException I1(@NonNull Status status, String str) { + String str2 = status.q; + if (str2 != null && !str2.isEmpty()) { + str = str2; + } + int i = status.p; + if (i == 17510) { + return new FirebaseAppIndexingInvalidArgumentException(str); + } + if (i == 17511) { + return new FirebaseAppIndexingTooManyArgumentsException(str); + } + if (i == 17602) { + return new zzh(str); + } + switch (i) { + case 17513: + return new zzb(str); + case 17514: + return new zza(str); + case 17515: + return new zzg(str); + case 17516: + return new zze(str); + case 17517: + return new zzf(str); + case 17518: + return new zzd(str); + case 17519: + return new zzc(str); + default: + return new FirebaseAppIndexingException(str); + } + } + + public static final byte[] J(String str) { + int i; + int i2; + char charAt; + m.checkParameterIsNotNull(str, "$this$commonAsUtf8ToByteArray"); + byte[] bArr = new byte[(str.length() * 4)]; + int length = str.length(); + int i3 = 0; + while (i3 < length) { + char charAt2 = str.charAt(i3); + if (charAt2 >= 128) { + int length2 = str.length(); + int i4 = i3; + while (i3 < length2) { + char charAt3 = str.charAt(i3); + if (charAt3 < 128) { + int i5 = i4 + 1; + bArr[i4] = (byte) charAt3; + i3++; + while (i3 < length2 && str.charAt(i3) < 128) { + bArr[i5] = (byte) str.charAt(i3); + i3++; + i5++; + } + i4 = i5; + } else { + if (charAt3 < 2048) { + int i6 = i4 + 1; + bArr[i4] = (byte) ((charAt3 >> 6) | 192); + i = i6 + 1; + bArr[i6] = (byte) ((charAt3 & '?') | 128); + } else if (55296 > charAt3 || 57343 < charAt3) { + int i7 = i4 + 1; + bArr[i4] = (byte) ((charAt3 >> '\f') | 224); + int i8 = i7 + 1; + bArr[i7] = (byte) (((charAt3 >> 6) & 63) | 128); + i = i8 + 1; + bArr[i8] = (byte) ((charAt3 & '?') | 128); + } else if (charAt3 > 56319 || length2 <= (i2 = i3 + 1) || 56320 > (charAt = str.charAt(i2)) || 57343 < charAt) { + i = i4 + 1; + bArr[i4] = 63; + } else { + int charAt4 = (str.charAt(i2) + (charAt3 << '\n')) - 56613888; + int i9 = i4 + 1; + bArr[i4] = (byte) ((charAt4 >> 18) | 240); + int i10 = i9 + 1; + bArr[i9] = (byte) (((charAt4 >> 12) & 63) | 128); + int i11 = i10 + 1; + bArr[i10] = (byte) (((charAt4 >> 6) & 63) | 128); + i = i11 + 1; + bArr[i11] = (byte) ((charAt4 & 63) | 128); + i3 += 2; + i4 = i; + } + i3++; + i4 = i; + } + } + byte[] copyOf = Arrays.copyOf(bArr, i4); + m.checkExpressionValueIsNotNull(copyOf, "java.util.Arrays.copyOf(this, newSize)"); + return copyOf; + } + bArr[i3] = (byte) charAt2; + i3++; + } + byte[] copyOf2 = Arrays.copyOf(bArr, str.length()); + m.checkExpressionValueIsNotNull(copyOf2, "java.util.Arrays.copyOf(this, newSize)"); + return copyOf2; + } + + @NonNull + public static b.o.a.x.c J0(int i) { + return u1(new a(i)); + } + + public static T J1(@NonNull Bundle bundle, String str, Class cls, T t) { + T t2 = (T) bundle.get(str); + if (t2 == null) { + return t; + } + if (cls.isAssignableFrom(t2.getClass())) { + return t2; + } + throw new IllegalStateException(String.format("Invalid conditional user property field type. '%s' expected [%s] but was [%s]", str, cls.getCanonicalName(), t2.getClass().getCanonicalName())); + } + + @NonNull + public static Rect K(@NonNull b.o.a.x.b bVar, @NonNull b.o.a.x.a aVar) { + int i; + int i2 = bVar.j; + int i3 = bVar.k; + int i4 = 0; + if (Math.abs(aVar.i() - b.o.a.x.a.f(bVar.j, bVar.k).i()) <= 5.0E-4f) { + return new Rect(0, 0, i2, i3); + } + if (b.o.a.x.a.f(i2, i3).i() > aVar.i()) { + int round = Math.round(aVar.i() * ((float) i3)); + i2 = round; + i4 = Math.round(((float) (i2 - round)) / 2.0f); + i = 0; + } else { + int round2 = Math.round(((float) i2) / aVar.i()); + i = Math.round(((float) (i3 - round2)) / 2.0f); + i3 = round2; + } + return new Rect(i4, i, i2 + i4, i3 + i); + } + + @NonNull + public static b.o.a.x.c K0(int i) { + return u1(new d(i)); + } + + public static V K1(d2 d2Var) { + long clearCallingIdentity; + try { + return d2Var.a(); + } catch (SecurityException unused) { + clearCallingIdentity = Binder.clearCallingIdentity(); + V a2 = d2Var.a(); + Binder.restoreCallingIdentity(clearCallingIdentity); + return a2; + } catch (Throwable th) { + Binder.restoreCallingIdentity(clearCallingIdentity); + throw th; + } + } + + public static final Object L(Function2, ? extends Object> function2, Continuation continuation) { + r rVar = new r(continuation.getContext(), continuation); + Object c1 = c1(rVar, rVar, function2); + if (c1 == d0.w.h.c.getCOROUTINE_SUSPENDED()) { + g.probeCoroutineSuspended(continuation); + } + return c1; + } + + @NonNull + public static b.o.a.x.c L0(int i) { + return u1(new b(i)); + } + + public static TResult L1(@NonNull Task task) throws ExecutionException { + if (task.p()) { + return task.l(); + } + if (task.n()) { + throw new CancellationException("Task is already canceled"); + } + throw new ExecutionException(task.k()); + } + + public static b.i.c.l.d M(String str, String str2) { + b.i.c.x.a aVar = new b.i.c.x.a(str, str2); + d.b a2 = b.i.c.l.d.a(b.i.c.x.e.class); + a2.d = 1; + a2.c(new b.i.c.l.c(aVar)); + return a2.b(); + } + + public static /* synthetic */ void M0(FlexInputViewModel flexInputViewModel, boolean z2, int i, Object obj) { + if ((i & 1) != 0) { + z2 = true; + } + flexInputViewModel.onContentDialogDismissed(z2); + } + + public static String M1(Context context, String str) { + try { + Objects.requireNonNull(context, "null reference"); + Resources resources = context.getResources(); + int identifier = resources.getIdentifier(str, "string", resources.getResourcePackageName(R.a.common_google_play_services_unknown_issue)); + if (identifier == 0) { + return null; + } + return resources.getString(identifier); + } catch (Resources.NotFoundException unused) { + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:40:0x00a0, code lost: + if ((r2 - r15) != 0) goto L_0x00a3; + */ + /* JADX WARNING: Code restructure failed: missing block: B:61:0x00ea, code lost: + return null; + */ + public static final InetAddress N(String str, int i, int i2) { + boolean z2; + int i3; + int i4; + byte[] bArr = new byte[16]; + int i5 = i; + int i6 = 0; + int i7 = -1; + int i8 = -1; + while (true) { + if (i5 >= i2) { + break; + } else if (i6 == 16) { + return null; + } else { + int i9 = i5 + 2; + if (i9 > i2 || !t.startsWith$default(str, "::", i5, false, 4, null)) { + if (i6 != 0) { + if (t.startsWith$default(str, ":", i5, false, 4, null)) { + i5++; + } else if (!t.startsWith$default(str, ".", i5, false, 4, null)) { + return null; + } else { + int i10 = i6 - 2; + int i11 = i10; + loop1: + while (true) { + if (i8 < i2) { + if (i11 == 16) { + break; + } + if (i11 != i10) { + if (str.charAt(i8) != '.') { + break; + } + i8++; + } + i3 = i8; + i4 = 0; + while (true) { + if (i3 < i2) { + char charAt = str.charAt(i3); + if (charAt >= '0' && charAt <= '9') { + if ((i4 == 0 && i8 != i3) || (i4 = ((i4 * 10) + charAt) - 48) > 255) { + break loop1; + } + i3++; + } else { + break; + } + } else { + break; + } + } + } else if (i11 == i10 + 4) { + z2 = true; + } + bArr[i11] = (byte) i4; + i8 = i3; + i11++; + } + z2 = false; + if (!z2) { + return null; + } + i6 += 2; + } + } + i8 = i5; + } else if (i7 != -1) { + return null; + } else { + i6 += 2; + if (i9 == i2) { + i7 = i6; + break; + } + i8 = i9; + i7 = i6; + } + i5 = i8; + int i12 = 0; + while (i5 < i2) { + int r = f0.e0.c.r(str.charAt(i5)); + if (r == -1) { + break; + } + i12 = (i12 << 4) + r; + i5++; + } + int i13 = i5 - i8; + if (i13 == 0 || i13 > 4) { + break; + } + int i14 = i6 + 1; + bArr[i6] = (byte) ((i12 >>> 8) & 255); + i6 = i14 + 1; + bArr[i14] = (byte) (i12 & 255); + } + } + if (i6 != 16) { + if (i7 == -1) { + return null; + } + int i15 = i6 - i7; + System.arraycopy(bArr, i7, bArr, 16 - i15, i15); + Arrays.fill(bArr, i7, (16 - i6) + i7, (byte) 0); + } + return InetAddress.getByAddress(bArr); + } + + public static /* synthetic */ void N0(FlexInputViewModel flexInputViewModel, String str, Boolean bool, int i, Object obj) { + int i2 = i & 2; + flexInputViewModel.onInputTextChanged(str, null); + } + + public static String N1(t3 t3Var) { + b7 b7Var = new b7(t3Var); + StringBuilder sb = new StringBuilder(t3Var.d()); + for (int i = 0; i < b7Var.a.d(); i++) { + byte c2 = b7Var.a.c(i); + if (c2 == 34) { + sb.append("\\\""); + } else if (c2 == 39) { + sb.append("\\'"); + } else if (c2 != 92) { + switch (c2) { + case 7: + sb.append("\\a"); + continue; + case 8: + sb.append("\\b"); + continue; + case 9: + sb.append("\\t"); + continue; + case 10: + sb.append("\\n"); + continue; + case 11: + sb.append("\\v"); + continue; + case 12: + sb.append("\\f"); + continue; + case 13: + sb.append("\\r"); + continue; + default: + if (c2 < 32 || c2 > 126) { + sb.append('\\'); + sb.append((char) (((c2 >>> 6) & 3) + 48)); + sb.append((char) (((c2 >>> 3) & 7) + 48)); + sb.append((char) ((c2 & 7) + 48)); + break; + } else { + sb.append((char) c2); + continue; + } + } + } else { + sb.append("\\\\"); + } + } + return sb.toString(); + } + + public static final Object O(long j, Continuation continuation) { + if (j <= 0) { + return Unit.a; + } + l lVar = new l(d0.w.h.b.intercepted(continuation), 1); + lVar.A(); + if (j < RecyclerView.FOREVER_NS) { + g0(lVar.o).c(j, lVar); + } + Object u = lVar.u(); + if (u == d0.w.h.c.getCOROUTINE_SUSPENDED()) { + g.probeCoroutineSuspended(continuation); + } + return u; + } + + @NonNull + public static b.o.a.x.c O0(b.o.a.x.c... cVarArr) { + return new b.o.a.x.l(cVarArr, null); + } + + public static final String O1(String str) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < str.length(); i++) { + char charAt = str.charAt(i); + if (Character.isUpperCase(charAt)) { + sb.append("_"); + } + sb.append(Character.toLowerCase(charAt)); + } + return sb.toString(); + } + + public static float P(float f, float f2, float f3, float f4) { + float f5 = f - f3; + float f6 = f2 - f4; + return (float) Math.sqrt((double) ((f6 * f6) + (f5 * f5))); + } + + public static int P0(int i) { + if (i >= 200 && i <= 299) { + return 0; + } + if (i >= 300 && i <= 399) { + return 1; + } + if (i >= 400 && i <= 499) { + return 0; + } + if (i >= 500) { + } + return 1; + } + + @Nullable + public static String P1(String str, String[] strArr, String[] strArr2) { + int min = Math.min(strArr.length, strArr2.length); + for (int i = 0; i < min; i++) { + String str2 = strArr[i]; + if ((str == null && str2 == null) ? true : str == null ? false : str.equals(str2)) { + return strArr2[i]; + } + } + return null; + } + + public static float Q(int i, int i2, int i3, int i4) { + int i5 = i - i3; + int i6 = i2 - i4; + return (float) Math.sqrt((double) ((i6 * i6) + (i5 * i5))); + } + + /* JADX WARNING: Code restructure failed: missing block: B:10:0x0016, code lost: + r2 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:12:0x001c, code lost: + throw new com.google.gson.JsonIOException(r2); + */ + /* JADX WARNING: Code restructure failed: missing block: B:13:0x001d, code lost: + r2 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:15:0x0023, code lost: + throw new com.google.gson.JsonSyntaxException(r2); + */ + /* JADX WARNING: Code restructure failed: missing block: B:20:0x002a, code lost: + return b.i.d.j.a; + */ + /* JADX WARNING: Code restructure failed: missing block: B:22:0x0030, code lost: + throw new com.google.gson.JsonSyntaxException(r2); + */ + /* JADX WARNING: Code restructure failed: missing block: B:6:0x000d, code lost: + r2 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:7:0x000f, code lost: + r2 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:9:0x0015, code lost: + throw new com.google.gson.JsonSyntaxException(r2); + */ + /* JADX WARNING: Failed to process nested try/catch */ + /* JADX WARNING: Removed duplicated region for block: B:10:0x0016 A[ExcHandler: IOException (r2v5 'e' java.io.IOException A[CUSTOM_DECLARE]), Splitter:B:0:0x0000] */ + /* JADX WARNING: Removed duplicated region for block: B:13:0x001d A[ExcHandler: MalformedJsonException (r2v4 'e' com.google.gson.stream.MalformedJsonException A[CUSTOM_DECLARE]), Splitter:B:0:0x0000] */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x0028 */ + /* JADX WARNING: Removed duplicated region for block: B:21:0x002b */ + /* JADX WARNING: Removed duplicated region for block: B:7:0x000f A[ExcHandler: NumberFormatException (r2v6 'e' java.lang.NumberFormatException A[CUSTOM_DECLARE]), Splitter:B:0:0x0000] */ + public static JsonElement Q0(JsonReader jsonReader) throws JsonParseException { + boolean z2; + try { + jsonReader.N(); + z2 = false; + return TypeAdapters.X.read(jsonReader); + } catch (EOFException e2) { + EOFException e3 = e2; + z2 = true; + if (!z2) { + } + } catch (MalformedJsonException e4) { + } catch (IOException e5) { + } catch (NumberFormatException e6) { + } + } + + @WorkerThread + public static Set Q1(SQLiteDatabase sQLiteDatabase, String str) { + HashSet hashSet = new HashSet(); + Cursor rawQuery = sQLiteDatabase.rawQuery(b.d.b.a.a.j(b.d.b.a.a.b(str, 22), "SELECT * FROM ", str, " LIMIT 0"), null); + try { + Collections.addAll(hashSet, rawQuery.getColumnNames()); + return hashSet; + } finally { + rawQuery.close(); + } + } + + public static int R(Context context, float f) { + float applyDimension = TypedValue.applyDimension(1, f, context.getResources().getDisplayMetrics()); + int i = (int) (((double) applyDimension) + 0.5d); + if (i != 0 || applyDimension <= 0.0f) { + return i; + } + return 1; + } + + public static final Object R0(Object obj, E e2) { + if (obj == null) { + return e2; + } + if (obj instanceof ArrayList) { + ((ArrayList) obj).add(e2); + return obj; + } + ArrayList arrayList = new ArrayList(4); + arrayList.add(obj); + arrayList.add(e2); + return arrayList; + } + + public static void R1(byte b2, byte b3, byte b4, byte b5, char[] cArr, int i) throws zzij { + if (!m2(b3)) { + if ((((b3 + 112) + (b2 << 28)) >> 30) == 0 && !m2(b4) && !m2(b5)) { + int i2 = ((b2 & 7) << 18) | ((b3 & 63) << 12) | ((b4 & 63) << 6) | (b5 & 63); + cArr[i] = (char) ((i2 >>> 10) + 55232); + cArr[i + 1] = (char) ((i2 & AudioAttributesCompat.FLAG_ALL) + 56320); + return; + } + } + throw zzij.e(); + } + + public static float S(float f, float f2, float f3, float f4) { + float f5 = f / (f4 / 2.0f); + float f6 = f3 / 2.0f; + if (f5 < 1.0f) { + return (f6 * f5 * f5 * f5) + f2; + } + float f7 = f5 - 2.0f; + return (((f7 * f7 * f7) + 2.0f) * f6) + f2; + } + + /* JADX ERROR: JadxRuntimeException in pass: RegionMakerVisitor + jadx.core.utils.exceptions.JadxRuntimeException: Failed to find switch 'out' block + at jadx.core.dex.visitors.regions.RegionMaker.processSwitch(RegionMaker.java:821) + at jadx.core.dex.visitors.regions.RegionMaker.traverse(RegionMaker.java:157) + at jadx.core.dex.visitors.regions.RegionMaker.makeRegion(RegionMaker.java:94) + at jadx.core.dex.visitors.regions.RegionMaker.processSwitch(RegionMaker.java:860) + at jadx.core.dex.visitors.regions.RegionMaker.traverse(RegionMaker.java:157) + at jadx.core.dex.visitors.regions.RegionMaker.makeRegion(RegionMaker.java:94) + at jadx.core.dex.visitors.regions.RegionMaker.processIf(RegionMaker.java:731) + at jadx.core.dex.visitors.regions.RegionMaker.traverse(RegionMaker.java:152) + at jadx.core.dex.visitors.regions.RegionMaker.makeRegion(RegionMaker.java:94) + at jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:50) + */ + public static void S0(int r2, h0.a.a.c r3) { + /* + int r0 = r2 >>> 24 + if (r0 == 0) goto L_0x0025 + r1 = 1 + if (r0 == r1) goto L_0x0025 + switch(r0) { + case 16: goto L_0x001b; + case 17: goto L_0x001b; + case 18: goto L_0x001b; + case 19: goto L_0x0013; + case 20: goto L_0x0013; + case 21: goto L_0x0013; + case 22: goto L_0x0025; + case 23: goto L_0x001b; + default: goto L_0x000a; + } + L_0x000a: + switch(r0) { + case 66: goto L_0x001b; + case 67: goto L_0x001b; + case 68: goto L_0x001b; + case 69: goto L_0x001b; + case 70: goto L_0x001b; + case 71: goto L_0x0017; + case 72: goto L_0x0017; + case 73: goto L_0x0017; + case 74: goto L_0x0017; + case 75: goto L_0x0017; + default: goto L_0x000d; + } + L_0x000d: + java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException + r2.() + throw r2 + L_0x0013: + r3.g(r0) + goto L_0x002a + L_0x0017: + r3.i(r2) + goto L_0x002a + L_0x001b: + r1 = 16776960(0xffff00, float:2.3509528E-38) + r2 = r2 & r1 + int r2 = r2 >> 8 + r3.e(r0, r2) + goto L_0x002a + L_0x0025: + int r2 = r2 >>> 16 + r3.j(r2) + L_0x002a: + return + switch-data {16->0x001b, 17->0x001b, 18->0x001b, 19->0x0013, 20->0x0013, 21->0x0013, 22->0x0025, 23->0x001b, } + switch-data {66->0x001b, 67->0x001b, 68->0x001b, 69->0x001b, 70->0x001b, 71->0x0017, 72->0x0017, 73->0x0017, 74->0x0017, 75->0x0017, } + */ + throw new UnsupportedOperationException("Method not decompiled: b.i.a.f.e.o.f.S0(int, h0.a.a.c):void"); + } + + public static void S1(byte b2, byte b3, byte b4, char[] cArr, int i) throws zzij { + if (m2(b3) || ((b2 == -32 && b3 < -96) || ((b2 == -19 && b3 >= -96) || m2(b4)))) { + throw zzij.e(); + } + cArr[i] = (char) (((b2 & 15) << 12) | ((b3 & 63) << 6) | (b4 & 63)); + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x0060 */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x0077 */ + /* JADX WARNING: Removed duplicated region for block: B:28:0x0086 */ + /* JADX WARNING: Removed duplicated region for block: B:35:0x0095 */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x00a1 */ + /* JADX WARNING: Removed duplicated region for block: B:8:0x0024 */ + public static final Object T(s.a.c2.e eVar, o oVar, boolean z2, Continuation continuation) { + C0108f fVar; + Object coroutine_suspended; + int i; + o oVar2; + boolean z3; + Throwable th; + Throwable th2; + s.a.c2.e eVar2; + Throwable th3; + Object m; + s.a.c2.e eVar3; + if (continuation instanceof C0108f) { + fVar = (C0108f) continuation; + int i2 = fVar.label; + if ((i2 & Integer.MIN_VALUE) != 0) { + fVar.label = i2 - Integer.MIN_VALUE; + Object obj = fVar.result; + coroutine_suspended = d0.w.h.c.getCOROUTINE_SUSPENDED(); + i = fVar.label; + if (i != 0) { + d0.l.throwOnFailure(obj); + th3 = null; + fVar.L$0 = eVar; + fVar.L$1 = oVar; + fVar.Z$0 = z2; + fVar.L$2 = th3; + fVar.L$3 = eVar; + fVar.label = 1; + m = oVar.m(fVar); + if (m != coroutine_suspended) { + eVar2 = eVar; + th2 = th3; + obj = m; + oVar2 = oVar; + z3 = z2; + if (!(obj instanceof v.a)) { + } + if (!(obj instanceof v.a)) { + } + } + return coroutine_suspended; + } else if (i == 1) { + s.a.c2.e eVar4 = (s.a.c2.e) fVar.L$3; + th2 = (Throwable) fVar.L$2; + z3 = fVar.Z$0; + oVar2 = (o) fVar.L$1; + d0.l.throwOnFailure(obj); + eVar2 = (s.a.c2.e) fVar.L$0; + if (!(obj instanceof v.a)) { + if (!(obj instanceof v.a)) { + fVar.L$0 = eVar2; + fVar.L$1 = oVar2; + fVar.Z$0 = z3; + fVar.L$2 = th2; + fVar.L$3 = obj; + fVar.label = 2; + Object emit = eVar2.emit(obj, fVar); + eVar3 = eVar2; + if (emit == coroutine_suspended) { + return coroutine_suspended; + } + } + throw new IllegalStateException("Channel was closed".toString()); + } + if (!(obj instanceof v.a)) { + Throwable th4 = ((v.a) obj).a; + if (th4 == null) { + if (z3) { + t(oVar2, th2); + } + return Unit.a; + } + throw th4; + } + throw new IllegalStateException("Channel was not closed".toString()); + } else if (i == 2) { + th2 = (Throwable) fVar.L$2; + z3 = fVar.Z$0; + oVar2 = (o) fVar.L$1; + s.a.c2.e eVar5 = (s.a.c2.e) fVar.L$0; + try { + d0.l.throwOnFailure(obj); + eVar3 = eVar5; + } catch (Throwable th5) { + th = th5; + try { + throw th; + } catch (Throwable th6) { + if (z3) { + t(oVar2, th); + } + throw th6; + } + } + } else { + throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); + } + th3 = th2; + eVar = eVar3; + z2 = z3; + oVar = oVar2; + fVar.L$0 = eVar; + fVar.L$1 = oVar; + fVar.Z$0 = z2; + fVar.L$2 = th3; + fVar.L$3 = eVar; + fVar.label = 1; + m = oVar.m(fVar); + if (m != coroutine_suspended) { + } + return coroutine_suspended; + } + } + fVar = new C0108f(continuation); + Object obj = fVar.result; + coroutine_suspended = d0.w.h.c.getCOROUTINE_SUSPENDED(); + i = fVar.label; + if (i != 0) { + } + th3 = th2; + eVar = eVar3; + z2 = z3; + oVar = oVar2; + try { + fVar.L$0 = eVar; + fVar.L$1 = oVar; + fVar.Z$0 = z2; + fVar.L$2 = th3; + fVar.L$3 = eVar; + fVar.label = 1; + m = oVar.m(fVar); + if (m != coroutine_suspended) { + } + return coroutine_suspended; + } catch (Throwable th7) { + th = th7; + oVar2 = oVar; + z3 = z2; + throw th; + } + } + + public static final Object T0(Object obj, Continuation continuation) { + if (obj instanceof w) { + k.a aVar = k.j; + return k.m72constructorimpl(d0.l.createFailure(((w) obj).f3804b)); + } + k.a aVar2 = k.j; + return k.m72constructorimpl(obj); + } + + public static void T1(byte b2, byte b3, char[] cArr, int i) throws zzij { + if (b2 < -62 || m2(b3)) { + throw zzij.e(); + } + cArr[i] = (char) (((b2 & 31) << 6) | (b3 & 63)); + } + + public static boolean U(@NullableDecl Object obj, @NullableDecl Object obj2) { + return obj == obj2 || (obj != null && obj.equals(obj2)); + } + + public static final void U0(j0 j0Var, Continuation continuation, boolean z2) { + Object obj; + Object m = j0Var.m(); + Throwable e2 = j0Var.e(m); + if (e2 != null) { + k.a aVar = k.j; + obj = d0.l.createFailure(e2); + } else { + k.a aVar2 = k.j; + obj = j0Var.j(m); + } + Object r2 = k.m72constructorimpl(obj); + if (z2) { + Objects.requireNonNull(continuation, "null cannot be cast to non-null type kotlinx.coroutines.internal.DispatchedContinuation"); + s.a.a.g gVar = (s.a.a.g) continuation; + CoroutineContext context = gVar.getContext(); + Object b2 = s.a.a.a.b(context, gVar.p); + try { + gVar.r.resumeWith(r2); + } finally { + s.a.a.a.a(context, b2); + } + } else { + continuation.resumeWith(r2); + } + } + + public static void U1(@NonNull Bundle bundle, @NonNull Object obj) { + if (obj instanceof Double) { + bundle.putDouble("value", ((Double) obj).doubleValue()); + } else if (obj instanceof Long) { + bundle.putLong("value", ((Long) obj).longValue()); + } else { + bundle.putString("value", obj.toString()); + } + } + + public static T V(@NullableDecl T t, @NullableDecl T t2) { + if (t != null) { + return t; + } + Objects.requireNonNull(t2, "Both parameters are null"); + return t2; + } + + public static int V0(float f) { + return (int) (f + (f < 0.0f ? -0.5f : 0.5f)); + } + + /* JADX WARNING: Code restructure failed: missing block: B:81:0x01e5, code lost: + if (((java.lang.Boolean) r4).booleanValue() == false) goto L_0x024a; + */ + /* JADX WARNING: Code restructure failed: missing block: B:85:0x01f3, code lost: + if (((java.lang.Integer) r4).intValue() == 0) goto L_0x024a; + */ + /* JADX WARNING: Code restructure failed: missing block: B:89:0x0204, code lost: + if (((java.lang.Float) r4).floatValue() == 0.0f) goto L_0x024a; + */ + /* JADX WARNING: Code restructure failed: missing block: B:93:0x0216, code lost: + if (((java.lang.Double) r4).doubleValue() == com.google.android.material.shadow.ShadowDrawableWrapper.COS_45) goto L_0x024a; + */ + /* JADX WARNING: Removed duplicated region for block: B:111:0x0250 */ + public static void V1(c6 c6Var, StringBuilder sb, int i) { + boolean z2; + HashMap hashMap = new HashMap(); + HashMap hashMap2 = new HashMap(); + TreeSet treeSet = new TreeSet(); + Method[] declaredMethods = c6Var.getClass().getDeclaredMethods(); + for (Method method : declaredMethods) { + hashMap2.put(method.getName(), method); + if (method.getParameterTypes().length == 0) { + hashMap.put(method.getName(), method); + if (method.getName().startsWith("get")) { + treeSet.add(method.getName()); + } + } + } + Iterator it = treeSet.iterator(); + while (it.hasNext()) { + String str = (String) it.next(); + String substring = str.startsWith("get") ? str.substring(3) : str; + boolean z3 = true; + if (substring.endsWith("List") && !substring.endsWith("OrBuilderList") && !substring.equals("List")) { + String valueOf = String.valueOf(substring.substring(0, 1).toLowerCase()); + String valueOf2 = String.valueOf(substring.substring(1, substring.length() - 4)); + String concat = valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf); + Method method2 = (Method) hashMap.get(str); + if (method2 != null && method2.getReturnType().equals(List.class)) { + Z1(sb, i, O1(concat), u4.q(method2, c6Var, new Object[0])); + } + } + if (substring.endsWith("Map") && !substring.equals("Map")) { + String valueOf3 = String.valueOf(substring.substring(0, 1).toLowerCase()); + String valueOf4 = String.valueOf(substring.substring(1, substring.length() - 3)); + String concat2 = valueOf4.length() != 0 ? valueOf3.concat(valueOf4) : new String(valueOf3); + Method method3 = (Method) hashMap.get(str); + if (method3 != null && method3.getReturnType().equals(Map.class) && !method3.isAnnotationPresent(Deprecated.class) && Modifier.isPublic(method3.getModifiers())) { + Z1(sb, i, O1(concat2), u4.q(method3, c6Var, new Object[0])); + } + } + if (((Method) hashMap2.get(substring.length() != 0 ? "set".concat(substring) : new String("set"))) != null) { + if (substring.endsWith("Bytes")) { + String valueOf5 = String.valueOf(substring.substring(0, substring.length() - 5)); + if (!hashMap.containsKey(valueOf5.length() != 0 ? "get".concat(valueOf5) : new String("get"))) { + } + } + String valueOf6 = String.valueOf(substring.substring(0, 1).toLowerCase()); + String valueOf7 = String.valueOf(substring.substring(1)); + String concat3 = valueOf7.length() != 0 ? valueOf6.concat(valueOf7) : new String(valueOf6); + Method method4 = (Method) hashMap.get(substring.length() != 0 ? "get".concat(substring) : new String("get")); + Method method5 = (Method) hashMap.get(substring.length() != 0 ? "has".concat(substring) : new String("has")); + if (method4 != null) { + Object q = u4.q(method4, c6Var, new Object[0]); + if (method5 == null) { + if (!(q instanceof Boolean)) { + if (!(q instanceof Integer)) { + if (!(q instanceof Float)) { + if (!(q instanceof Double)) { + if (q instanceof String) { + z2 = q.equals(""); + } else if (q instanceof t3) { + z2 = q.equals(t3.j); + } else { + z2 = !(q instanceof c6) ? false : false; + } + if (z2) { + z3 = false; + } + } + } + } + } + z2 = true; + if (z2) { + } + } else { + z3 = ((Boolean) u4.q(method5, c6Var, new Object[0])).booleanValue(); + } + if (z3) { + Z1(sb, i, O1(concat3), q); + } + } + } + } + if (c6Var instanceof u4.d) { + Iterator> l = ((u4.d) c6Var).zzc.l(); + if (l.hasNext()) { + l.next().getKey(); + throw new NoSuchMethodError(); + } + } + c7 c7Var = ((u4) c6Var).zzb; + if (c7Var != null) { + for (int i2 = 0; i2 < c7Var.f1423b; i2++) { + Z1(sb, i, String.valueOf(c7Var.c[i2] >>> 3), c7Var.d[i2]); + } + } + } + + public static final FloatBuffer W(int i) { + ByteBuffer order = ByteBuffer.allocateDirect(i * 4 * 1).order(ByteOrder.nativeOrder()); + order.limit(order.capacity()); + m.checkNotNullExpressionValue(order, "ByteBuffer\n .allo…it.limit(it.capacity()) }"); + FloatBuffer asFloatBuffer = order.asFloatBuffer(); + m.checkNotNullExpressionValue(asFloatBuffer, "byteBuffer(size * Egloo.…OF_FLOAT).asFloatBuffer()"); + return asFloatBuffer; + } + + public static final int W0(u uVar, int i) { + int i2; + m.checkParameterIsNotNull(uVar, "$this$segment"); + int[] iArr = uVar.o; + int i3 = i + 1; + int length = uVar.n.length; + m.checkParameterIsNotNull(iArr, "$this$binarySearch"); + int i4 = length - 1; + int i5 = 0; + while (true) { + if (i5 <= i4) { + i2 = (i5 + i4) >>> 1; + int i6 = iArr[i2]; + if (i6 >= i3) { + if (i6 <= i3) { + break; + } + i4 = i2 - 1; + } else { + i5 = i2 + 1; + } + } else { + i2 = (-i5) - 1; + break; + } + } + return i2 >= 0 ? i2 : ~i2; + } + + public static void W1(q3 q3Var, SQLiteDatabase sQLiteDatabase) { + if (q3Var != null) { + File file = new File(sQLiteDatabase.getPath()); + if (!file.setReadable(false, false)) { + q3Var.i.a("Failed to turn off database read permission"); + } + if (!file.setWritable(false, false)) { + q3Var.i.a("Failed to turn off database write permission"); + } + if (!file.setReadable(true, true)) { + q3Var.i.a("Failed to turn on database read permission for owner"); + } + if (!file.setWritable(true, true)) { + q3Var.i.a("Failed to turn on database write permission for owner"); + return; + } + return; + } + throw new IllegalArgumentException("Monitor must not be null"); + } + + @NonNull + public static Task X(@NonNull Exception exc) { + b0 b0Var = new b0(); + b0Var.s(exc); + return b0Var; + } + + public static final g0.v X0(Socket socket) throws IOException { + m.checkParameterIsNotNull(socket, "$this$sink"); + g0.w wVar = new g0.w(socket); + OutputStream outputStream = socket.getOutputStream(); + m.checkExpressionValueIsNotNull(outputStream, "getOutputStream()"); + p pVar = new p(outputStream, wVar); + m.checkParameterIsNotNull(pVar, "sink"); + return new g0.c(wVar, pVar); + } + + @WorkerThread + public static void X1(q3 q3Var, SQLiteDatabase sQLiteDatabase, String str, String str2, String str3, String[] strArr) throws SQLiteException { + boolean z2; + if (q3Var != null) { + Cursor cursor = null; + try { + cursor = sQLiteDatabase.query("SQLITE_MASTER", new String[]{ModelAuditLogEntry.CHANGE_KEY_NAME}, "name=?", new String[]{str}, null, null, null); + z2 = cursor.moveToFirst(); + cursor.close(); + } catch (SQLiteException e2) { + q3Var.i.c("Error querying for table", str, e2); + if (cursor != null) { + cursor.close(); + } + z2 = false; + } catch (Throwable th) { + if (cursor != null) { + cursor.close(); + } + throw th; + } + if (!z2) { + sQLiteDatabase.execSQL(str2); + } + try { + Set Q1 = Q1(sQLiteDatabase, str); + String[] split = str3.split(","); + for (String str4 : split) { + if (!((HashSet) Q1).remove(str4)) { + StringBuilder sb = new StringBuilder(str.length() + 35 + String.valueOf(str4).length()); + sb.append("Table "); + sb.append(str); + sb.append(" is missing required column: "); + sb.append(str4); + throw new SQLiteException(sb.toString()); + } + } + if (strArr != null) { + for (int i = 0; i < strArr.length; i += 2) { + if (!((HashSet) Q1).remove(strArr[i])) { + sQLiteDatabase.execSQL(strArr[i + 1]); + } + } + } + if (!((HashSet) Q1).isEmpty()) { + q3Var.i.c("Table has extra columns. table, columns", str, TextUtils.join(", ", Q1)); + } + } catch (SQLiteException e3) { + q3Var.f.b("Failed to verify columns on table that was just created", str); + throw e3; + } + } else { + throw new IllegalArgumentException("Monitor must not be null"); + } + } + + @NonNull + public static Task Y(TResult tresult) { + b0 b0Var = new b0(); + b0Var.t(tresult); + return b0Var; + } + + public static int Y0(int i) { + return (int) (((long) Integer.rotateLeft((int) (((long) i) * -862048943), 15)) * 461845907); + } + + public static void Y1(Task task, h hVar) { + Executor executor = b.i.a.f.n.g.f1578b; + task.g(executor, hVar); + task.e(executor, hVar); + task.a(executor, hVar); + } + + public static final String Z(long j) { + String str; + if (j <= ((long) -999500000)) { + str = ((j - ((long) 500000000)) / ((long) 1000000000)) + " s "; + } else if (j <= ((long) -999500)) { + str = ((j - ((long) 500000)) / ((long) 1000000)) + " ms"; + } else if (j <= 0) { + str = ((j - ((long) 500)) / ((long) 1000)) + " µs"; + } else if (j < ((long) 999500)) { + str = ((j + ((long) 500)) / ((long) 1000)) + " µs"; + } else if (j < ((long) 999500000)) { + str = ((j + ((long) 500000)) / ((long) 1000000)) + " ms"; + } else { + str = ((j + ((long) 500000000)) / ((long) 1000000000)) + " s "; + } + String format = String.format("%6s", Arrays.copyOf(new Object[]{str}, 1)); + m.checkExpressionValueIsNotNull(format, "java.lang.String.format(format, *args)"); + return format; + } + + public static final x Z0(Socket socket) throws IOException { + m.checkParameterIsNotNull(socket, "$this$source"); + g0.w wVar = new g0.w(socket); + InputStream inputStream = socket.getInputStream(); + m.checkExpressionValueIsNotNull(inputStream, "getInputStream()"); + n nVar = new n(inputStream, wVar); + m.checkParameterIsNotNull(nVar, "source"); + return new g0.d(wVar, nVar); + } + + public static final void Z1(StringBuilder sb, int i, String str, Object obj) { + if (obj instanceof List) { + for (Object obj2 : (List) obj) { + Z1(sb, i, str, obj2); + } + } else if (obj instanceof Map) { + for (Map.Entry entry : ((Map) obj).entrySet()) { + Z1(sb, i, str, entry); + } + } else { + sb.append('\n'); + int i2 = 0; + for (int i3 = 0; i3 < i; i3++) { + sb.append(' '); + } + sb.append(str); + if (obj instanceof String) { + sb.append(": \""); + t3 t3Var = t3.j; + sb.append(N1(new z3(((String) obj).getBytes(w4.a)))); + sb.append('\"'); + } else if (obj instanceof t3) { + sb.append(": \""); + sb.append(N1((t3) obj)); + sb.append('\"'); + } else if (obj instanceof u4) { + sb.append(" {"); + V1((u4) obj, sb, i + 2); + sb.append("\n"); + while (i2 < i) { + sb.append(' '); + i2++; + } + sb.append("}"); + } else if (obj instanceof Map.Entry) { + sb.append(" {"); + Map.Entry entry2 = (Map.Entry) obj; + int i4 = i + 2; + Z1(sb, i4, "key", entry2.getKey()); + Z1(sb, i4, "value", entry2.getValue()); + sb.append("\n"); + while (i2 < i) { + sb.append(' '); + i2++; + } + sb.append("}"); + } else { + sb.append(": "); + sb.append(obj.toString()); + } + } + } + + public static final CancellationException a(String str, Throwable th) { + CancellationException cancellationException = new CancellationException(str); + cancellationException.initCause(th); + return cancellationException; + } + + public static b.i.c.l.d a0(String str, b.i.c.x.g gVar) { + d.b a2 = b.i.c.l.d.a(b.i.c.x.e.class); + a2.d = 1; + a2.a(new b.i.c.l.o(Context.class, 1, 0)); + a2.c(new b.i.c.x.f(str, gVar)); + return a2.b(); + } + + public static final void a1(Continuation continuation, Continuation continuation2) { + try { + Continuation intercepted = d0.w.h.b.intercepted(continuation); + k.a aVar = k.j; + s.a.a.h.b(intercepted, k.m72constructorimpl(Unit.a), null, 2); + } catch (Throwable th) { + k.a aVar2 = k.j; + ((s.a.b) continuation2).resumeWith(k.m72constructorimpl(d0.l.createFailure(th))); + } + } + + public static boolean a2(byte b2) { + return b2 >= 0; + } + + public static s.a.b2.f b(int i, s.a.b2.e eVar, Function1 function1, int i2) { + s.a.b2.e eVar2 = s.a.b2.e.SUSPEND; + boolean z2 = false; + if ((i2 & 1) != 0) { + i = 0; + } + if ((i2 & 2) != 0) { + eVar = eVar2; + } + int i3 = i2 & 4; + int i4 = 1; + if (i == -2) { + if (eVar == eVar2) { + Objects.requireNonNull(s.a.b2.f.i); + i4 = f.a.a; + } + return new s.a.b2.d(i4, eVar, null); + } else if (i != -1) { + return i != 0 ? i != Integer.MAX_VALUE ? (i == 1 && eVar == s.a.b2.e.DROP_OLDEST) ? new s.a.b2.j(null) : new s.a.b2.d(i, eVar, null) : new s.a.b2.k(null) : eVar == eVar2 ? new q(null) : new s.a.b2.d(1, eVar, null); + } else { + if (eVar == eVar2) { + z2 = true; + } + if (z2) { + return new s.a.b2.j(null); + } + throw new IllegalArgumentException("CONFLATED capacity cannot be used with non-default onBufferOverflow".toString()); + } + } + + public static float[] b0(RectF rectF) { + return new float[]{rectF.centerX(), rectF.centerY()}; + } + + public static void b1(Function2 function2, Object obj, Continuation continuation, Function1 function1, int i) { + int i2 = i & 4; + try { + Continuation intercepted = d0.w.h.b.intercepted(d0.w.h.b.createCoroutineUnintercepted(function2, obj, continuation)); + k.a aVar = k.j; + s.a.a.h.a(intercepted, k.m72constructorimpl(Unit.a), null); + } catch (Throwable th) { + k.a aVar2 = k.j; + continuation.resumeWith(k.m72constructorimpl(d0.l.createFailure(th))); + } + } + + public static boolean b2(@NullableDecl Object obj, @NullableDecl Object obj2) { + if (obj != obj2) { + return obj != null && obj.equals(obj2); + } + return true; + } + + public static final CoroutineScope c(CoroutineContext coroutineContext) { + if (coroutineContext.get(Job.h) == null) { + coroutineContext = coroutineContext.plus(new f1(null)); + } + return new s.a.a.f(coroutineContext); + } + + public static final String c0(Object obj) { + return obj.getClass().getSimpleName(); + } + + public static final Object c1(r rVar, R r, Function2, ? extends Object> function2) { + Object obj; + rVar.f0(); + if (function2 != null) { + try { + obj = ((Function2) e0.beforeCheckcastToFunctionOfArity(function2, 2)).invoke(r, rVar); + } catch (Throwable th) { + obj = new w(th, false, 2); + } + if (obj == d0.w.h.c.getCOROUTINE_SUSPENDED()) { + return d0.w.h.c.getCOROUTINE_SUSPENDED(); + } + Object R = rVar.R(obj); + if (R == i1.f3798b) { + return d0.w.h.c.getCOROUTINE_SUSPENDED(); + } + if (!(R instanceof w)) { + return i1.a(R); + } + throw ((w) R).f3804b; + } + throw new NullPointerException("null cannot be cast to non-null type (R, kotlin.coroutines.Continuation) -> kotlin.Any?"); + } + + public static String c2(String str, Object... objArr) { + int length; + int length2; + int indexOf; + String str2; + int i = 0; + int i2 = 0; + while (true) { + length = objArr.length; + if (i2 >= length) { + break; + } + Object obj = objArr[i2]; + if (obj == null) { + str2 = "null"; + } else { + try { + str2 = obj.toString(); + } catch (Exception e2) { + String name = obj.getClass().getName(); + String hexString = Integer.toHexString(System.identityHashCode(obj)); + StringBuilder sb = new StringBuilder(name.length() + 1 + String.valueOf(hexString).length()); + sb.append(name); + sb.append(MentionUtilsKt.MENTIONS_CHAR); + sb.append(hexString); + String sb2 = sb.toString(); + Logger logger = Logger.getLogger("com.google.common.base.Strings"); + Level level = Level.WARNING; + String valueOf = String.valueOf(sb2); + logger.logp(level, "com.google.common.base.Strings", "lenientToString", valueOf.length() != 0 ? "Exception during lenientFormat for ".concat(valueOf) : new String("Exception during lenientFormat for "), (Throwable) e2); + String name2 = e2.getClass().getName(); + StringBuilder sb3 = new StringBuilder(String.valueOf(sb2).length() + 9 + name2.length()); + b.d.b.a.a.q0(sb3, "<", sb2, " threw ", name2); + sb3.append(">"); + str2 = sb3.toString(); + } + } + objArr[i2] = str2; + i2++; + } + StringBuilder sb4 = new StringBuilder((length * 16) + str.length()); + int i3 = 0; + while (true) { + length2 = objArr.length; + if (i >= length2 || (indexOf = str.indexOf("%s", i3)) == -1) { + break; + } + sb4.append((CharSequence) str, i3, indexOf); + sb4.append(objArr[i]); + i3 = indexOf + 2; + i++; + } + sb4.append((CharSequence) str, i3, str.length()); + if (i < length2) { + sb4.append(" ["); + sb4.append(objArr[i]); + for (int i4 = i + 1; i4 < objArr.length; i4++) { + sb4.append(", "); + sb4.append(objArr[i4]); + } + sb4.append(']'); + } + return sb4.toString(); + } + + public static s.a.u d(Job job, int i) { + int i2 = i & 1; + return new t1(null); + } + + public static float[] d0(RectF rectF) { + float f = rectF.left; + float f2 = rectF.top; + float f3 = rectF.right; + float f4 = rectF.bottom; + return new float[]{f, f2, f3, f2, f3, f4, f, f4}; + } + + public static int d1(int[] iArr) { + int i = 0; + for (int i2 : iArr) { + i += i2; + } + return i; + } + + public static boolean d2(Object obj, Object obj2) { + return obj == obj2 || (obj != null && obj.equals(obj2)); + } + + public static final void e(f0.e0.f.a aVar, f0.e0.f.c cVar, String str) { + d.b bVar = f0.e0.f.d.c; + Logger logger = f0.e0.f.d.f3570b; + StringBuilder sb = new StringBuilder(); + sb.append(cVar.f); + sb.append(' '); + String format = String.format("%-22s", Arrays.copyOf(new Object[]{str}, 1)); + m.checkExpressionValueIsNotNull(format, "java.lang.String.format(format, *args)"); + sb.append(format); + sb.append(": "); + sb.append(aVar.c); + logger.fine(sb.toString()); + } + + public static String e0(long j) { + return f0(j, null); + } + + public static final long e1(String str, long j, long j2, long j3) { + String f1 = f1(str); + if (f1 == null) { + return j; + } + Long longOrNull = d0.g0.s.toLongOrNull(f1); + if (longOrNull != null) { + long longValue = longOrNull.longValue(); + if (j2 <= longValue && j3 >= longValue) { + return longValue; + } + throw new IllegalStateException(("System property '" + str + "' should be in range " + j2 + ".." + j3 + ", but is '" + longValue + '\'').toString()); + } + throw new IllegalStateException(("System property '" + str + "' has unrecognized value '" + f1 + '\'').toString()); + } + + public static int e2(byte[] bArr, int i, s3 s3Var) { + int i2 = i + 1; + long j = (long) bArr[i]; + if (j >= 0) { + s3Var.f1478b = j; + return i2; + } + int i3 = i2 + 1; + byte b2 = bArr[i2]; + long j2 = (j & 127) | (((long) (b2 & Byte.MAX_VALUE)) << 7); + int i4 = 7; + while (b2 < 0) { + int i5 = i3 + 1; + byte b3 = bArr[i3]; + i4 += 7; + j2 |= ((long) (b3 & Byte.MAX_VALUE)) << i4; + b2 = b3; + i3 = i5; + } + s3Var.f1478b = j2; + return i3; + } + + @NonNull + public static b.o.a.x.c f(b.o.a.x.c... cVarArr) { + return new i(cVarArr, null); + } + + public static String f0(long j, @Nullable SimpleDateFormat simpleDateFormat) { + Calendar h = b.i.a.g.d.l.h(); + Calendar i = b.i.a.g.d.l.i(); + i.setTimeInMillis(j); + return simpleDateFormat != null ? simpleDateFormat.format(new Date(j)) : h.get(1) == i.get(1) ? l0(j, Locale.getDefault()) : q0(j, Locale.getDefault()); + } + + public static final String f1(String str) { + int i = s.a.a.u.a; + try { + return System.getProperty(str); + } catch (SecurityException unused) { + return null; + } + } + + public static long f2(byte[] bArr, int i) { + return ((((long) bArr[i + 7]) & 255) << 56) | (((long) bArr[i]) & 255) | ((((long) bArr[i + 1]) & 255) << 8) | ((((long) bArr[i + 2]) & 255) << 16) | ((((long) bArr[i + 3]) & 255) << 24) | ((((long) bArr[i + 4]) & 255) << 32) | ((((long) bArr[i + 5]) & 255) << 40) | ((((long) bArr[i + 6]) & 255) << 48); + } + + public static final boolean g(byte[] bArr, int i, byte[] bArr2, int i2, int i3) { + m.checkParameterIsNotNull(bArr, "a"); + m.checkParameterIsNotNull(bArr2, "b"); + for (int i4 = 0; i4 < i3; i4++) { + if (bArr[i4 + i] != bArr2[i4 + i2]) { + return false; + } + } + return true; + } + + public static final h0 g0(CoroutineContext coroutineContext) { + int i = d0.w.d.e; + CoroutineContext.Element element = coroutineContext.get(d.b.a); + if (!(element instanceof h0)) { + element = null; + } + h0 h0Var = (h0) element; + return h0Var != null ? h0Var : s.a.e0.a; + } + + public static int g1(String str, int i, int i2, int i3, int i4, Object obj) { + if ((i4 & 4) != 0) { + i2 = 1; + } + if ((i4 & 8) != 0) { + i3 = Integer.MAX_VALUE; + } + return (int) e1(str, (long) i, (long) i2, (long) i3); + } + + public static void g2(boolean z2, @NullableDecl Object obj) { + if (!z2) { + throw new IllegalStateException(String.valueOf(obj)); + } + } + + public static f0 h(CoroutineScope coroutineScope, CoroutineContext coroutineContext, CoroutineStart coroutineStart, Function2 function2, int i, Object obj) { + CoroutineStart coroutineStart2 = null; + d0.w.f fVar = (i & 1) != 0 ? d0.w.f.j : null; + if ((i & 2) != 0) { + coroutineStart2 = CoroutineStart.DEFAULT; + } + CoroutineContext a2 = z.a(coroutineScope, fVar); + Objects.requireNonNull(coroutineStart2); + g0 j1Var = coroutineStart2 == CoroutineStart.LAZY ? new j1(a2, function2) : new g0(a2, true); + j1Var.j0(coroutineStart2, j1Var, function2); + return j1Var; + } + + public static final int h0(b.p.a.b bVar, @DimenRes int i) { + m.checkNotNullParameter(bVar, "$this$getDimenPixelSize"); + return bVar.getResources().getDimensionPixelSize(i); + } + + public static /* synthetic */ long h1(String str, long j, long j2, long j3, int i, Object obj) { + if ((i & 4) != 0) { + j2 = 1; + } + if ((i & 8) != 0) { + j3 = RecyclerView.FOREVER_NS; + } + return e1(str, j, j2, j3); + } + + public static int h2(byte[] bArr, int i, s3 s3Var) throws zzij { + int F1 = F1(bArr, i, s3Var); + int i2 = s3Var.a; + if (i2 < 0) { + throw zzij.b(); + } else if (i2 == 0) { + s3Var.c = ""; + return F1; + } else { + s3Var.c = new String(bArr, F1, i2, w4.a); + return F1 + i2; + } + } + + public static TResult i(@NonNull Task task) throws ExecutionException, InterruptedException { + b.c.a.a0.d.x("Must not be called on the main application thread"); + b.c.a.a0.d.z(task, "Task must not be null"); + if (task.o()) { + return (TResult) L1(task); + } + b.i.a.f.n.i iVar = new b.i.a.f.n.i(null); + Y1(task, iVar); + iVar.a.await(); + return (TResult) L1(task); + } + + @NullableDecl + public static T i0(Iterable iterable, @NullableDecl T t) { + n0 n0Var = new n0((h.a) iterable); + return n0Var.hasNext() ? (T) n0Var.next() : t; + } + + public static int[] i1(Collection collection) { + if (collection instanceof b.i.b.c.a) { + b.i.b.c.a aVar = (b.i.b.c.a) collection; + return Arrays.copyOfRange(aVar.array, aVar.start, aVar.end); + } + Object[] array = collection.toArray(); + int length = array.length; + int[] iArr = new int[length]; + for (int i = 0; i < length; i++) { + Object obj = array[i]; + Objects.requireNonNull(obj); + iArr[i] = ((Number) obj).intValue(); + } + return iArr; + } + + public static void i2(int i, int i2, int i3) { + if (i < 0 || i2 < i || i2 > i3) { + throw new IndexOutOfBoundsException((i < 0 || i > i3) ? k2(i, i3, "start index") : (i2 < 0 || i2 > i3) ? k2(i2, i3, "end index") : c2("end index (%s) must not be less than start index (%s)", Integer.valueOf(i2), Integer.valueOf(i))); + } + } + + public static TResult j(@NonNull Task task, long j, @NonNull TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException { + b.c.a.a0.d.x("Must not be called on the main application thread"); + b.c.a.a0.d.z(task, "Task must not be null"); + b.c.a.a0.d.z(timeUnit, "TimeUnit must not be null"); + if (task.o()) { + return (TResult) L1(task); + } + b.i.a.f.n.i iVar = new b.i.a.f.n.i(null); + Y1(task, iVar); + if (iVar.a.await(j, timeUnit)) { + return (TResult) L1(task); + } + throw new TimeoutException("Timed out waiting for Task"); + } + + public static final String j0(Object obj) { + return Integer.toHexString(System.identityHashCode(obj)); + } + + /* JADX WARNING: Code restructure failed: missing block: B:66:0x010b, code lost: + r1 = 1; + */ + public static final String j1(String str) { + m.checkParameterIsNotNull(str, "$this$toCanonicalHost"); + int i = 0; + int i2 = -1; + if (d0.g0.w.contains$default((CharSequence) str, (CharSequence) ":", false, 2, (Object) null)) { + InetAddress N = (!t.startsWith$default(str, "[", false, 2, null) || !t.endsWith$default(str, "]", false, 2, null)) ? N(str, 0, str.length()) : N(str, 1, str.length() - 1); + if (N == null) { + return null; + } + byte[] address = N.getAddress(); + if (address.length == 16) { + m.checkExpressionValueIsNotNull(address, "address"); + int i3 = 0; + int i4 = 0; + while (i3 < address.length) { + int i5 = i3; + while (i5 < 16 && address[i5] == 0 && address[i5 + 1] == 0) { + i5 += 2; + } + int i6 = i5 - i3; + if (i6 > i4 && i6 >= 4) { + i2 = i3; + i4 = i6; + } + i3 = i5 + 2; + } + g0.e eVar = new g0.e(); + while (i < address.length) { + if (i == i2) { + eVar.T(58); + i += i4; + if (i == 16) { + eVar.T(58); + } + } else { + if (i > 0) { + eVar.T(58); + } + byte b2 = address[i]; + byte[] bArr = f0.e0.c.a; + eVar.Q((long) (((b2 & 255) << 8) | (address[i + 1] & 255))); + i += 2; + } + } + return eVar.D(); + } else if (address.length == 4) { + return N.getHostAddress(); + } else { + throw new AssertionError("Invalid IPv6 address: '" + str + '\''); + } + } else { + try { + String ascii = IDN.toASCII(str); + m.checkExpressionValueIsNotNull(ascii, "IDN.toASCII(host)"); + Locale locale = Locale.US; + m.checkExpressionValueIsNotNull(locale, "Locale.US"); + if (ascii != null) { + String lowerCase = ascii.toLowerCase(locale); + m.checkExpressionValueIsNotNull(lowerCase, "(this as java.lang.String).toLowerCase(locale)"); + if (lowerCase.length() == 0) { + return null; + } + int length = lowerCase.length(); + int i7 = 0; + while (true) { + if (i7 >= length) { + break; + } + char charAt = lowerCase.charAt(i7); + if (charAt <= 31) { + break; + } else if (charAt >= 127) { + break; + } else if (d0.g0.w.indexOf$default((CharSequence) " #%/:?@[\\]", charAt, 0, false, 6, (Object) null) != -1) { + break; + } else { + i7++; + } + } + if (i != 0) { + return null; + } + return lowerCase; + } + throw new TypeCastException("null cannot be cast to non-null type java.lang.String"); + } catch (IllegalArgumentException unused) { + return null; + } + } + } + + public static int j2(byte[] bArr, int i, s3 s3Var) throws zzij { + int F1 = F1(bArr, i, s3Var); + int i2 = s3Var.a; + if (i2 < 0) { + throw zzij.b(); + } else if (i2 == 0) { + s3Var.c = ""; + return F1; + } else { + s3Var.c = k7.a.c(bArr, F1, i2); + return F1 + i2; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:12:0x0036 */ + /* JADX WARNING: Removed duplicated region for block: B:8:0x0023 */ + public static final Object k(f0[] f0VarArr, Continuation> continuation) { + e eVar; + int i; + if (continuation instanceof e) { + eVar = (e) continuation; + int i2 = eVar.label; + if ((i2 & Integer.MIN_VALUE) != 0) { + eVar.label = i2 - Integer.MIN_VALUE; + Object obj = eVar.result; + Object coroutine_suspended = d0.w.h.c.getCOROUTINE_SUSPENDED(); + i = eVar.label; + if (i != 0) { + d0.l.throwOnFailure(obj); + if (f0VarArr.length == 0) { + return d0.t.n.emptyList(); + } + s.a.d dVar = new s.a.d(f0VarArr); + eVar.L$0 = f0VarArr; + eVar.label = 1; + l lVar = new l(d0.w.h.b.intercepted(eVar), 1); + lVar.A(); + int length = f0VarArr.length; + d.a[] aVarArr = new d.a[length]; + for (int i3 = 0; i3 < length; i3++) { + f0 f0Var = dVar.f3794b[d0.w.i.a.b.boxInt(i3).intValue()]; + f0Var.start(); + d.a aVar = new d.a(lVar, f0Var); + aVar.n = f0Var.u(aVar); + aVarArr[i3] = aVar; + } + d.b bVar = new d.b(dVar, aVarArr); + for (int i4 = 0; i4 < length; i4++) { + aVarArr[i4]._disposer = bVar; + } + if (lVar.v()) { + bVar.b(); + } else { + lVar.f(bVar); + } + obj = lVar.u(); + if (obj == d0.w.h.c.getCOROUTINE_SUSPENDED()) { + g.probeCoroutineSuspended(eVar); + } + if (obj == coroutine_suspended) { + return coroutine_suspended; + } + } else if (i == 1) { + f0[] f0VarArr2 = (f0[]) eVar.L$0; + d0.l.throwOnFailure(obj); + } else { + throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); + } + return (List) obj; + } + } + eVar = new e(continuation); + Object obj = eVar.result; + Object coroutine_suspended = d0.w.h.c.getCOROUTINE_SUSPENDED(); + i = eVar.label; + if (i != 0) { + } + return (List) obj; + } + + @TargetApi(17) + public static int k0() { + EGLDisplay eglGetDisplay = EGL14.eglGetDisplay(0); + int[] iArr = new int[2]; + EGL14.eglInitialize(eglGetDisplay, iArr, 0, iArr, 1); + EGLConfig[] eGLConfigArr = new EGLConfig[1]; + int[] iArr2 = new int[1]; + EGL14.eglChooseConfig(eglGetDisplay, new int[]{12351, 12430, 12329, 0, 12352, 4, 12339, 1, 12344}, 0, eGLConfigArr, 0, 1, iArr2, 0); + if (iArr2[0] == 0) { + return 0; + } + EGLConfig eGLConfig = eGLConfigArr[0]; + EGLSurface eglCreatePbufferSurface = EGL14.eglCreatePbufferSurface(eglGetDisplay, eGLConfig, new int[]{12375, 64, 12374, 64, 12344}, 0); + EGLContext eglCreateContext = EGL14.eglCreateContext(eglGetDisplay, eGLConfig, EGL14.EGL_NO_CONTEXT, new int[]{12440, 2, 12344}, 0); + EGL14.eglMakeCurrent(eglGetDisplay, eglCreatePbufferSurface, eglCreatePbufferSurface, eglCreateContext); + int[] iArr3 = new int[1]; + GLES20.glGetIntegerv(3379, iArr3, 0); + EGLSurface eGLSurface = EGL14.EGL_NO_SURFACE; + EGL14.eglMakeCurrent(eglGetDisplay, eGLSurface, eGLSurface, EGL14.EGL_NO_CONTEXT); + EGL14.eglDestroySurface(eglGetDisplay, eglCreatePbufferSurface); + EGL14.eglDestroyContext(eglGetDisplay, eglCreateContext); + EGL14.eglTerminate(eglGetDisplay); + return iArr3[0]; + } + + public static final String k1(Continuation continuation) { + Object obj; + if (continuation instanceof s.a.a.g) { + return continuation.toString(); + } + try { + k.a aVar = k.j; + obj = k.m72constructorimpl(continuation + MentionUtilsKt.MENTIONS_CHAR + j0(continuation)); + } catch (Throwable th) { + k.a aVar2 = k.j; + obj = k.m72constructorimpl(d0.l.createFailure(th)); + } + if (k.m74exceptionOrNullimpl(obj) != null) { + obj = continuation.getClass().getName() + MentionUtilsKt.MENTIONS_CHAR + j0(continuation); + } + return (String) obj; + } + + public static String k2(int i, int i2, @NullableDecl String str) { + if (i < 0) { + return c2("%s (%s) must not be negative", str, Integer.valueOf(i)); + } + if (i2 >= 0) { + return c2("%s (%s) must not be greater than size (%s)", str, Integer.valueOf(i), Integer.valueOf(i2)); + } + throw new IllegalArgumentException(b.d.b.a.a.f(26, "negative size: ", i2)); + } + + public static String l(int i, int i2, @NullableDecl String str) { + if (i < 0) { + return G0("%s (%s) must not be negative", str, Integer.valueOf(i)); + } + if (i2 >= 0) { + return G0("%s (%s) must not be greater than size (%s)", str, Integer.valueOf(i), Integer.valueOf(i2)); + } + throw new IllegalArgumentException(b.d.b.a.a.p("negative size: ", i2)); + } + + public static String l0(long j, Locale locale) { + if (Build.VERSION.SDK_INT >= 24) { + return b.i.a.g.d.l.c("MMMd", locale).format(new Date(j)); + } + AtomicReference atomicReference = b.i.a.g.d.l.a; + DateFormat dateInstance = DateFormat.getDateInstance(2, locale); + dateInstance.setTimeZone(b.i.a.g.d.l.g()); + SimpleDateFormat simpleDateFormat = (SimpleDateFormat) dateInstance; + String pattern = simpleDateFormat.toPattern(); + int b2 = b.i.a.g.d.l.b(pattern, "yY", 1, 0); + if (b2 < pattern.length()) { + String str = "EMd"; + int b3 = b.i.a.g.d.l.b(pattern, str, 1, b2); + if (b3 < pattern.length()) { + str = "EMd,"; + } + pattern = pattern.replace(pattern.substring(b.i.a.g.d.l.b(pattern, str, -1, b2) + 1, b3), " ").trim(); + } + simpleDateFormat.applyPattern(pattern); + return simpleDateFormat.format(new Date(j)); + } + + public static final String l1(byte b2) { + char[] cArr = g0.z.b.a; + return new String(new char[]{cArr[(b2 >> 4) & 15], cArr[b2 & 15]}); + } + + public static int l2(byte[] bArr, int i, s3 s3Var) throws zzij { + int F1 = F1(bArr, i, s3Var); + int i2 = s3Var.a; + if (i2 < 0) { + throw zzij.b(); + } else if (i2 > bArr.length - F1) { + throw zzij.a(); + } else if (i2 == 0) { + s3Var.c = t3.j; + return F1; + } else { + s3Var.c = t3.h(bArr, F1, i2); + return F1 + i2; + } + } + + public static ExecutorService m(String str) { + ExecutorService unconfigurableExecutorService = Executors.unconfigurableExecutorService(new ThreadPoolExecutor(1, 1, 0, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new s0(str, new AtomicLong(1)), new ThreadPoolExecutor.DiscardPolicy())); + Runtime.getRuntime().addShutdownHook(new Thread(new t0(str, unconfigurableExecutorService, 2, TimeUnit.SECONDS), b.d.b.a.a.v("Crashlytics Shutdown Hook for ", str))); + return unconfigurableExecutorService; + } + + /* JADX DEBUG: Multi-variable search result rejected for r4v2, resolved type: java.util.concurrent.atomic.AtomicReferenceFieldUpdater */ + /* JADX WARN: Multi-variable type inference failed */ + public static final l m0(Continuation continuation) { + l lVar; + l lVar2; + if (!(continuation instanceof s.a.a.g)) { + return new l<>(continuation, 2); + } + s.a.a.g gVar = (s.a.a.g) continuation; + while (true) { + Object obj = gVar._reusableCancellableContinuation; + lVar = null; + if (obj == null) { + gVar._reusableCancellableContinuation = s.a.a.h.f3784b; + lVar2 = null; + break; + } else if (obj instanceof l) { + if (s.a.a.g.m.compareAndSet(gVar, obj, s.a.a.h.f3784b)) { + lVar2 = (l) obj; + break; + } + } else { + throw new IllegalStateException(b.d.b.a.a.u("Inconsistent state ", obj).toString()); + } + } + if (lVar2 != null) { + Object obj2 = lVar2._state; + boolean z2 = false; + if (!(obj2 instanceof s.a.v) || ((s.a.v) obj2).d == null) { + lVar2._decision = 0; + lVar2._state = s.a.c.j; + z2 = true; + } else { + lVar2.q(); + } + if (z2) { + lVar = lVar2; + } + if (lVar != null) { + return lVar; + } + } + return new l<>(continuation, 2); + } + + public static String m1(String str) { + int length = str.length(); + int i = 0; + while (i < length) { + char charAt = str.charAt(i); + if (charAt >= 'A' && charAt <= 'Z') { + char[] charArray = str.toCharArray(); + while (i < length) { + char c2 = charArray[i]; + if (c2 >= 'A' && c2 <= 'Z') { + charArray[i] = (char) (c2 ^ ' '); + } + i++; + } + return String.valueOf(charArray); + } + i++; + } + return str; + } + + public static boolean m2(byte b2) { + return b2 > -65; + } + + @NonNull + @Deprecated + public static Task n(@NonNull Executor executor, @NonNull Callable callable) { + b.c.a.a0.d.z(executor, "Executor must not be null"); + b.c.a.a0.d.z(callable, "Callback must not be null"); + b0 b0Var = new b0(); + executor.execute(new d0(b0Var, callable)); + return b0Var; + } + + public static int n0(int[] iArr, int i, boolean z2) { + int[] iArr2 = iArr; + int i2 = 0; + for (int i3 : iArr2) { + i2 += i3; + } + int length = iArr2.length; + int i4 = 0; + int i5 = 0; + int i6 = 0; + while (true) { + int i7 = length - 1; + if (i4 >= i7) { + return i5; + } + int i8 = 1 << i4; + i6 |= i8; + int i9 = 1; + while (i9 < iArr2[i4]) { + int i10 = i2 - i9; + int i11 = length - i4; + int i12 = i11 - 2; + int I = I(i10 - 1, i12); + if (z2 && i6 == 0) { + int i13 = i11 - 1; + if (i10 - i13 >= i13) { + I -= I(i10 - i11, i12); + } + } + if (i11 - 1 > 1) { + int i14 = 0; + for (int i15 = i10 - i12; i15 > i; i15--) { + i14 += I((i10 - i15) - 1, i11 - 3); + } + I -= (i7 - i4) * i14; + } else if (i10 > i) { + I--; + } + i5 += I; + i9++; + i6 &= ~i8; + iArr2 = iArr; + } + i2 -= i9; + i4++; + iArr2 = iArr; + } + } + + public static final Object n1(Object obj, Function1 function1) { + Throwable r0 = k.m74exceptionOrNullimpl(obj); + return r0 == null ? function1 != null ? new s.a.x(obj, function1) : obj : new w(r0, false, 2); + } + + public static int n2(String str) { + if (Log.isLoggable("FirebaseAppIndex", 3) ? true : Log.isLoggable("FirebaseAppIndex", 3)) { + return Log.d("FirebaseAppIndex", str); + } + return 0; + } + + public static final UndeliveredElementException o(Function1 function1, E e2, UndeliveredElementException undeliveredElementException) { + try { + function1.invoke(e2); + } catch (Throwable th) { + if (undeliveredElementException == null || undeliveredElementException.getCause() == th) { + return new UndeliveredElementException(b.d.b.a.a.u("Exception in undelivered element handler for ", e2), th); + } + d0.b.addSuppressed(undeliveredElementException, th); + } + return undeliveredElementException; + } + + public static int o0(Context context) { + Display defaultDisplay = ((WindowManager) context.getSystemService("window")).getDefaultDisplay(); + if (defaultDisplay.getWidth() == defaultDisplay.getHeight()) { + return 3; + } + return defaultDisplay.getWidth() < defaultDisplay.getHeight() ? 1 : 2; + } + + public static String o1(String str) { + int length = str.length(); + int i = 0; + while (i < length) { + char charAt = str.charAt(i); + if (charAt >= 'a' && charAt <= 'z') { + char[] charArray = str.toCharArray(); + while (i < length) { + char c2 = charArray[i]; + if (c2 >= 'a' && c2 <= 'z') { + charArray[i] = (char) (c2 ^ ' '); + } + i++; + } + return String.valueOf(charArray); + } + i++; + } + return str; + } + + public static /* synthetic */ UndeliveredElementException p(Function1 function1, Object obj, UndeliveredElementException undeliveredElementException, int i) { + int i2 = i & 2; + return o(function1, obj, null); + } + + public static DateFormat p0(int i, int i2) { + String str; + String str2; + StringBuilder sb = new StringBuilder(); + if (i == 0) { + str = "EEEE, MMMM d, yyyy"; + } else if (i == 1) { + str = "MMMM d, yyyy"; + } else if (i == 2) { + str = "MMM d, yyyy"; + } else if (i == 3) { + str = "M/d/yy"; + } else { + throw new IllegalArgumentException(b.d.b.a.a.p("Unknown DateFormat style: ", i)); + } + sb.append(str); + sb.append(" "); + if (i2 == 0 || i2 == 1) { + str2 = "h:mm:ss a z"; + } else if (i2 == 2) { + str2 = "h:mm:ss a"; + } else if (i2 == 3) { + str2 = "h:mm a"; + } else { + throw new IllegalArgumentException(b.d.b.a.a.p("Unknown DateFormat style: ", i2)); + } + sb.append(str2); + return new SimpleDateFormat(sb.toString(), Locale.US); + } + + @NonNull + public static b.o.a.n.o.e p1(@NonNull b.o.a.n.o.e... eVarArr) { + return new b.o.a.n.o.j(Arrays.asList(eVarArr)); + } + + public static final void q(CoroutineScope coroutineScope, CancellationException cancellationException) { + Job job = (Job) coroutineScope.getCoroutineContext().get(Job.h); + if (job != null) { + job.b(cancellationException); + return; + } + throw new IllegalStateException(("Scope cannot be cancelled because it does not have a job: " + coroutineScope).toString()); + } + + public static String q0(long j, Locale locale) { + if (Build.VERSION.SDK_INT >= 24) { + return b.i.a.g.d.l.c("yMMMd", locale).format(new Date(j)); + } + AtomicReference atomicReference = b.i.a.g.d.l.a; + DateFormat dateInstance = DateFormat.getDateInstance(2, locale); + dateInstance.setTimeZone(b.i.a.g.d.l.g()); + return dateInstance.format(new Date(j)); + } + + public static RectF q1(float[] fArr) { + RectF rectF = new RectF(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY); + for (int i = 1; i < fArr.length; i += 2) { + float round = ((float) Math.round(fArr[i - 1] * 10.0f)) / 10.0f; + float round2 = ((float) Math.round(fArr[i] * 10.0f)) / 10.0f; + float f = rectF.left; + if (round < f) { + f = round; + } + rectF.left = f; + float f2 = rectF.top; + if (round2 < f2) { + f2 = round2; + } + rectF.top = f2; + float f3 = rectF.right; + if (round <= f3) { + round = f3; + } + rectF.right = round; + float f4 = rectF.bottom; + if (round2 <= f4) { + round2 = f4; + } + rectF.bottom = round2; + } + rectF.sort(); + return rectF; + } + + public static void r(CoroutineContext coroutineContext, CancellationException cancellationException, int i, Object obj) { + int i2 = i & 1; + Job job = (Job) coroutineContext.get(Job.h); + if (job != null) { + job.b(null); + } + } + + public static void r0(@Nullable InputStream inputStream, @NonNull File file) throws IOException { + Throwable th; + byte[] bArr = new byte[8192]; + GZIPOutputStream gZIPOutputStream = null; + try { + GZIPOutputStream gZIPOutputStream2 = new GZIPOutputStream(new FileOutputStream(file)); + while (true) { + try { + int read = inputStream.read(bArr); + if (read > 0) { + gZIPOutputStream2.write(bArr, 0, read); + } else { + gZIPOutputStream2.finish(); + b.i.c.m.d.k.h.d(gZIPOutputStream2); + return; + } + } catch (Throwable th2) { + th = th2; + gZIPOutputStream = gZIPOutputStream2; + b.i.c.m.d.k.h.d(gZIPOutputStream); + throw th; + } + } + } catch (Throwable th3) { + th = th3; + b.i.c.m.d.k.h.d(gZIPOutputStream); + throw th; + } + } + + @RecentlyNonNull + @TargetApi(19) + public static boolean r1(@RecentlyNonNull Context context, @RecentlyNonNull int i, @RecentlyNonNull String str) { + b.i.a.f.e.p.a a2 = b.i.a.f.e.p.b.a(context); + Objects.requireNonNull(a2); + try { + AppOpsManager appOpsManager = (AppOpsManager) a2.a.getSystemService("appops"); + if (appOpsManager != null) { + appOpsManager.checkPackage(i, str); + return true; + } + throw new NullPointerException("context.getSystemService(Context.APP_OPS_SERVICE) is null"); + } catch (SecurityException unused) { + return false; + } + } + + public static /* synthetic */ void s(Job job, CancellationException cancellationException, int i, Object obj) { + int i2 = i & 1; + job.b(null); + } + + public static final void s0(CoroutineContext coroutineContext, Throwable th) { + try { + int i = CoroutineExceptionHandler.g; + CoroutineExceptionHandler coroutineExceptionHandler = (CoroutineExceptionHandler) coroutineContext.get(CoroutineExceptionHandler.a.a); + if (coroutineExceptionHandler != null) { + coroutineExceptionHandler.handleException(coroutineContext, th); + } else { + s.a.b0.a(coroutineContext, th); + } + } catch (Throwable th2) { + if (th != th2) { + RuntimeException runtimeException = new RuntimeException("Exception while trying to handle coroutine exception", th2); + d0.b.addSuppressed(runtimeException, th); + th = runtimeException; + } + s.a.b0.a(coroutineContext, th); + } + } + + @NonNull + public static Task s1(@Nullable Collection> collection) { + if (collection == null || collection.isEmpty()) { + return Y(null); + } + Iterator> it = collection.iterator(); + while (it.hasNext()) { + Objects.requireNonNull((Task) it.next(), "null tasks are not accepted"); + } + b0 b0Var = new b0(); + b.i.a.f.n.j jVar = new b.i.a.f.n.j(collection.size(), b0Var); + Iterator> it2 = collection.iterator(); + while (it2.hasNext()) { + Y1((Task) it2.next(), jVar); + } + return b0Var; + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v6, resolved type: java.util.concurrent.CancellationException */ + /* JADX WARN: Multi-variable type inference failed */ + public static final void t(o oVar, Throwable th) { + CancellationException cancellationException = null; + if (th != null) { + if (th instanceof CancellationException) { + cancellationException = th; + } + cancellationException = cancellationException; + if (cancellationException == null) { + cancellationException = a("Channel was consumed, consumer had failed", th); + } + } + oVar.b(cancellationException); + } + + public static int t0(long j) { + return (int) (j ^ (j >>> 32)); + } + + /* JADX INFO: finally extract failed */ + /* JADX DEBUG: Multi-variable search result rejected for r3v11, resolved type: java.util.concurrent.atomic.AtomicIntegerFieldUpdater */ + /* JADX WARN: Multi-variable type inference failed */ + public static final Object t1(CoroutineContext coroutineContext, Function2, ? extends Object> function2, Continuation continuation) { + Object obj; + boolean z2; + CoroutineContext context = continuation.getContext(); + CoroutineContext plus = context.plus(coroutineContext); + Job job = (Job) plus.get(Job.h); + if (job == null || job.a()) { + if (plus == context) { + r rVar = new r(plus, continuation); + obj = c1(rVar, rVar, function2); + } else { + int i = d0.w.d.e; + d.b bVar = d.b.a; + if (m.areEqual((d0.w.d) plus.get(bVar), (d0.w.d) context.get(bVar))) { + y1 y1Var = new y1(plus, continuation); + Object b2 = s.a.a.a.b(plus, null); + try { + Object c1 = c1(y1Var, y1Var, function2); + s.a.a.a.a(plus, b2); + obj = c1; + } catch (Throwable th) { + s.a.a.a.a(plus, b2); + throw th; + } + } else { + i0 i0Var = new i0(plus, continuation); + i0Var.f0(); + b1(function2, i0Var, i0Var, null, 4); + while (true) { + int i2 = i0Var._decision; + z2 = false; + if (i2 == 0) { + if (i0.n.compareAndSet(i0Var, 0, 1)) { + z2 = true; + break; + } + } else if (i2 != 2) { + throw new IllegalStateException("Already suspended".toString()); + } + } + if (z2) { + obj = d0.w.h.c.getCOROUTINE_SUSPENDED(); + } else { + obj = i1.a(i0Var.M()); + if (obj instanceof w) { + throw ((w) obj).f3804b; + } + } + } + } + if (obj == d0.w.h.c.getCOROUTINE_SUSPENDED()) { + g.probeCoroutineSuspended(continuation); + } + return obj; + } + throw job.q(); + } + + public static void u(boolean z2) { + if (!z2) { + throw new IllegalArgumentException(); + } + } + + public static /* synthetic */ m0 u0(Job job, boolean z2, boolean z3, Function1 function1, int i, Object obj) { + if ((i & 1) != 0) { + z2 = false; + } + if ((i & 2) != 0) { + z3 = true; + } + return job.n(z2, z3, function1); + } + + @NonNull + public static b.o.a.x.c u1(@NonNull j jVar) { + return new b.o.a.x.k(jVar, null); + } + + public static void v(boolean z2) { + if (!z2) { + throw new IllegalArgumentException(); + } + } + + public static m0 v0(long j, Runnable runnable, CoroutineContext coroutineContext) { + return s.a.e0.a.x(j, runnable, coroutineContext); + } + + public static Class v1(Class cls) { + return cls == Integer.TYPE ? Integer.class : cls == Float.TYPE ? Float.class : cls == Byte.TYPE ? Byte.class : cls == Double.TYPE ? Double.class : cls == Long.TYPE ? Long.class : cls == Character.TYPE ? Character.class : cls == Boolean.TYPE ? Boolean.class : cls == Short.TYPE ? Short.class : cls == Void.TYPE ? Void.class : cls; + } + + @CanIgnoreReturnValue + public static int w(int i, int i2) { + String str; + if (i >= 0 && i < i2) { + return i; + } + if (i < 0) { + str = G0("%s (%s) must not be negative", "index", Integer.valueOf(i)); + } else if (i2 >= 0) { + str = G0("%s (%s) must be less than size (%s)", "index", Integer.valueOf(i), Integer.valueOf(i2)); + } else { + throw new IllegalArgumentException(b.d.b.a.a.p("negative size: ", i2)); + } + throw new IndexOutOfBoundsException(str); + } + + public static final boolean w0(CoroutineScope coroutineScope) { + Job job = (Job) coroutineScope.getCoroutineContext().get(Job.h); + if (job != null) { + return job.a(); + } + return true; + } + + public static int w1(int i, int i2, @NullableDecl String str) { + String str2; + if (i >= 0 && i < i2) { + return i; + } + if (i < 0) { + str2 = c2("%s (%s) must not be negative", "index", Integer.valueOf(i)); + } else if (i2 < 0) { + throw new IllegalArgumentException(b.d.b.a.a.f(26, "negative size: ", i2)); + } else { + str2 = c2("%s (%s) must be less than size (%s)", "index", Integer.valueOf(i), Integer.valueOf(i2)); + } + throw new IndexOutOfBoundsException(str2); + } + + @CanIgnoreReturnValue + public static Object x(Object obj, int i) { + if (obj != null) { + return obj; + } + throw new NullPointerException(b.d.b.a.a.p("at index ", i)); + } + + public static final boolean x0(AssertionError assertionError) { + m.checkParameterIsNotNull(assertionError, "$this$isAndroidGetsocknameError"); + if (assertionError.getCause() == null) { + return false; + } + String message = assertionError.getMessage(); + return message != null ? d0.g0.w.contains$default(message, "getsockname failed", false, 2, null) : false; + } + + public static int x1(int i, byte[] bArr, int i2, int i3, s3 s3Var) throws zzij { + if ((i >>> 3) != 0) { + int i4 = i & 7; + if (i4 == 0) { + return e2(bArr, i2, s3Var); + } + if (i4 == 1) { + return i2 + 8; + } + if (i4 == 2) { + return F1(bArr, i2, s3Var) + s3Var.a; + } + if (i4 == 3) { + int i5 = (i & -8) | 4; + int i6 = 0; + while (i2 < i3) { + i2 = F1(bArr, i2, s3Var); + i6 = s3Var.a; + if (i6 == i5) { + break; + } + i2 = x1(i6, bArr, i2, i3, s3Var); + } + if (i2 <= i3 && i6 == i5) { + return i2; + } + throw zzij.d(); + } else if (i4 == 5) { + return i2 + 4; + } else { + throw zzij.c(); + } + } else { + throw zzij.c(); + } + } + + public static void y(Object obj, Object obj2) { + if (obj == null) { + throw new NullPointerException(b.d.b.a.a.u("null key in entry: null=", obj2)); + } else if (obj2 == null) { + throw new NullPointerException("null value in entry: " + obj + "=null"); + } + } + + @RecentlyNonNull + public static boolean y0() { + return Build.VERSION.SDK_INT >= 26; + } + + public static int y1(int i, byte[] bArr, int i2, int i3, b5 b5Var, s3 s3Var) { + x4 x4Var = (x4) b5Var; + int F1 = F1(bArr, i2, s3Var); + x4Var.g(s3Var.a); + while (F1 < i3) { + int F12 = F1(bArr, F1, s3Var); + if (i != s3Var.a) { + break; + } + F1 = F1(bArr, F12, s3Var); + x4Var.g(s3Var.a); + } + return F1; + } + + @CanIgnoreReturnValue + public static int z(int i, String str) { + if (i >= 0) { + return i; + } + throw new IllegalArgumentException(str + " cannot be negative but was: " + i); + } + + public static final boolean z0(int i) { + return i == 1 || i == 2; + } + + public static int z1(int i, byte[] bArr, int i2, int i3, c7 c7Var, s3 s3Var) throws zzij { + if ((i >>> 3) != 0) { + int i4 = i & 7; + if (i4 == 0) { + int e2 = e2(bArr, i2, s3Var); + c7Var.a(i, Long.valueOf(s3Var.f1478b)); + return e2; + } else if (i4 == 1) { + c7Var.a(i, Long.valueOf(f2(bArr, i2))); + return i2 + 8; + } else if (i4 == 2) { + int F1 = F1(bArr, i2, s3Var); + int i5 = s3Var.a; + if (i5 < 0) { + throw zzij.b(); + } else if (i5 <= bArr.length - F1) { + if (i5 == 0) { + c7Var.a(i, t3.j); + } else { + c7Var.a(i, t3.h(bArr, F1, i5)); + } + return F1 + i5; + } else { + throw zzij.a(); + } + } else if (i4 == 3) { + c7 c2 = c7.c(); + int i6 = (i & -8) | 4; + int i7 = 0; + while (true) { + if (i2 >= i3) { + break; + } + int F12 = F1(bArr, i2, s3Var); + int i8 = s3Var.a; + if (i8 == i6) { + i7 = i8; + i2 = F12; + break; + } + i7 = i8; + i2 = z1(i8, bArr, F12, i3, c2, s3Var); + } + if (i2 > i3 || i7 != i6) { + throw zzij.d(); + } + c7Var.a(i, c2); + return i2; + } else if (i4 == 5) { + c7Var.a(i, Integer.valueOf(E1(bArr, i2))); + return i2 + 4; + } else { + throw zzij.c(); + } + } else { + throw zzij.c(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/g.java b/app/src/main/java/b/i/a/f/e/o/g.java new file mode 100644 index 0000000000..d01a5cf505 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/g.java @@ -0,0 +1,90 @@ +package b.i.a.f.e.o; + +import android.os.Process; +import android.os.StrictMode; +import androidx.annotation.RecentlyNullable; +import java.io.BufferedReader; +import java.io.FileReader; +import java.io.IOException; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class g { + public static String a; + + /* renamed from: b reason: collision with root package name */ + public static int f1383b; + + /* JADX WARNING: Removed duplicated region for block: B:19:0x004b A[SYNTHETIC, Splitter:B:19:0x004b] */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x0052 */ + @RecentlyNullable + public static String a() { + BufferedReader bufferedReader; + Throwable th; + if (a == null) { + if (f1383b == 0) { + f1383b = Process.myPid(); + } + int i = f1383b; + String str = null; + str = null; + str = null; + BufferedReader bufferedReader2 = null; + if (i > 0) { + try { + StringBuilder sb = new StringBuilder(25); + sb.append("/proc/"); + sb.append(i); + sb.append("/cmdline"); + bufferedReader = b(sb.toString()); + try { + String readLine = bufferedReader.readLine(); + Objects.requireNonNull(readLine, "null reference"); + str = readLine.trim(); + try { + bufferedReader.close(); + } catch (IOException unused) { + } + } catch (IOException unused2) { + if (bufferedReader != null) { + } + a = str; + return a; + } catch (Throwable th2) { + bufferedReader2 = bufferedReader; + th = th2; + if (bufferedReader2 != null) { + } + throw th; + } + } catch (IOException unused3) { + bufferedReader = null; + if (bufferedReader != null) { + bufferedReader.close(); + } + a = str; + return a; + } catch (Throwable th3) { + th = th3; + if (bufferedReader2 != null) { + try { + bufferedReader2.close(); + } catch (IOException unused4) { + } + } + throw th; + } + } + a = str; + } + return a; + } + + public static BufferedReader b(String str) throws IOException { + StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads(); + try { + return new BufferedReader(new FileReader(str)); + } finally { + StrictMode.setThreadPolicy(allowThreadDiskReads); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/h.java b/app/src/main/java/b/i/a/f/e/o/h.java new file mode 100644 index 0000000000..bb1b5241c6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/h.java @@ -0,0 +1,16 @@ +package b.i.a.f.e.o; + +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import java.util.regex.Pattern; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class h { + static { + Pattern.compile("\\$\\{(.*?)\\}"); + } + + @RecentlyNonNull + public static boolean a(@Nullable String str) { + return str == null || str.trim().isEmpty(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/i.java b/app/src/main/java/b/i/a/f/e/o/i.java new file mode 100644 index 0000000000..bbd873c4f9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/i.java @@ -0,0 +1,81 @@ +package b.i.a.f.e.o; + +import android.content.Context; +import android.os.Build; +import android.os.Process; +import android.os.WorkSource; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.e.p.b; +import java.lang.reflect.Method; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class i { + @Nullable + public static final Method a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public static final Method f1384b; + @Nullable + public static final Method c; + @Nullable + public static final Method d; + + static { + Method method; + Method method2; + Method method3; + Process.myUid(); + Method method4 = null; + try { + method = WorkSource.class.getMethod("add", Integer.TYPE); + } catch (Exception unused) { + method = null; + } + a = method; + try { + method2 = WorkSource.class.getMethod("add", Integer.TYPE, String.class); + } catch (Exception unused2) { + method2 = null; + } + f1384b = method2; + try { + method3 = WorkSource.class.getMethod("size", new Class[0]); + } catch (Exception unused3) { + method3 = null; + } + c = method3; + try { + WorkSource.class.getMethod("get", Integer.TYPE); + } catch (Exception unused4) { + } + try { + method4 = WorkSource.class.getMethod("getName", Integer.TYPE); + } catch (Exception unused5) { + } + d = method4; + if (Build.VERSION.SDK_INT >= 28) { + try { + WorkSource.class.getMethod("createWorkChain", new Class[0]); + } catch (Exception e) { + Log.w("WorkSourceUtil", "Missing WorkChain API createWorkChain", e); + } + } + if (Build.VERSION.SDK_INT >= 28) { + try { + Class.forName("android.os.WorkSource$WorkChain").getMethod("addNode", Integer.TYPE, String.class); + } catch (Exception e2) { + Log.w("WorkSourceUtil", "Missing WorkChain class", e2); + } + } + } + + @RecentlyNonNull + public static boolean a(@RecentlyNonNull Context context) { + if (context == null || context.getPackageManager() == null) { + return false; + } + return b.a(context).a.getPackageManager().checkPermission("android.permission.UPDATE_DEVICE_STATS", context.getPackageName()) == 0; + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/j/a.java b/app/src/main/java/b/i/a/f/e/o/j/a.java new file mode 100644 index 0000000000..ed734b2546 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/j/a.java @@ -0,0 +1,24 @@ +package b.i.a.f.e.o.j; + +import androidx.annotation.RecentlyNonNull; +import b.c.a.a0.d; +import java.util.concurrent.Executors; +import java.util.concurrent.ThreadFactory; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a implements ThreadFactory { + public final String j; + public final ThreadFactory k = Executors.defaultThreadFactory(); + + public a(@RecentlyNonNull String str) { + d.z(str, "Name must not be null"); + this.j = str; + } + + @Override // java.util.concurrent.ThreadFactory + @RecentlyNonNull + public Thread newThread(@RecentlyNonNull Runnable runnable) { + Thread newThread = this.k.newThread(new b(runnable)); + newThread.setName(this.j); + return newThread; + } +} diff --git a/app/src/main/java/b/i/a/f/e/o/j/b.java b/app/src/main/java/b/i/a/f/e/o/j/b.java new file mode 100644 index 0000000000..1c2619050b --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/o/j/b.java @@ -0,0 +1,17 @@ +package b.i.a.f.e.o.j; + +import android.os.Process; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class b implements Runnable { + public final Runnable j; + + public b(Runnable runnable) { + this.j = runnable; + } + + @Override // java.lang.Runnable + public final void run() { + Process.setThreadPriority(0); + this.j.run(); + } +} diff --git a/app/src/main/java/b/i/a/f/e/p/a.java b/app/src/main/java/b/i/a/f/e/p/a.java new file mode 100644 index 0000000000..c1eb14336c --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/p/a.java @@ -0,0 +1,40 @@ +package b.i.a.f.e.p; + +import android.content.Context; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.os.Binder; +import android.os.Process; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a { + public final Context a; + + public a(@RecentlyNonNull Context context) { + this.a = context; + } + + @RecentlyNonNull + public ApplicationInfo a(@RecentlyNonNull String str, @RecentlyNonNull int i) throws PackageManager.NameNotFoundException { + return this.a.getPackageManager().getApplicationInfo(str, i); + } + + @RecentlyNonNull + public PackageInfo b(@RecentlyNonNull String str, @RecentlyNonNull int i) throws PackageManager.NameNotFoundException { + return this.a.getPackageManager().getPackageInfo(str, i); + } + + @RecentlyNonNull + public boolean c() { + String nameForUid; + if (Binder.getCallingUid() == Process.myUid()) { + return f.C0(this.a); + } + if (!f.y0() || (nameForUid = this.a.getPackageManager().getNameForUid(Binder.getCallingUid())) == null) { + return false; + } + return this.a.getPackageManager().isInstantApp(nameForUid); + } +} diff --git a/app/src/main/java/b/i/a/f/e/p/b.java b/app/src/main/java/b/i/a/f/e/p/b.java new file mode 100644 index 0000000000..96ebb42596 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/p/b.java @@ -0,0 +1,29 @@ +package b.i.a.f.e.p; + +import android.content.Context; +import androidx.annotation.Nullable; +import androidx.annotation.RecentlyNonNull; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class b { + public static b a = new b(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public a f1385b = null; + + @RecentlyNonNull + public static a a(@RecentlyNonNull Context context) { + a aVar; + b bVar = a; + synchronized (bVar) { + if (bVar.f1385b == null) { + if (context.getApplicationContext() != null) { + context = context.getApplicationContext(); + } + bVar.f1385b = new a(context); + } + aVar = bVar.f1385b; + } + return aVar; + } +} diff --git a/app/src/main/java/b/i/a/f/e/q.java b/app/src/main/java/b/i/a/f/e/q.java new file mode 100644 index 0000000000..2982f33750 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/q.java @@ -0,0 +1,42 @@ +package b.i.a.f.e; + +import android.app.PendingIntent; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.ConnectionResult; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class q implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final ConnectionResult createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + PendingIntent pendingIntent = null; + String str = null; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + i = d.E1(parcel, readInt); + } else if (i3 == 2) { + i2 = d.E1(parcel, readInt); + } else if (i3 == 3) { + pendingIntent = (PendingIntent) d.P(parcel, readInt, PendingIntent.CREATOR); + } else if (i3 != 4) { + d.b2(parcel, readInt); + } else { + str = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new ConnectionResult(i, i2, pendingIntent, str); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ ConnectionResult[] newArray(int i) { + return new ConnectionResult[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/r.java b/app/src/main/java/b/i/a/f/e/r.java new file mode 100644 index 0000000000..ab9d2b1426 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/r.java @@ -0,0 +1,38 @@ +package b.i.a.f.e; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.Feature; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class r implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final Feature createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + int i = 0; + long j = -1; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + str = d.Q(parcel, readInt); + } else if (i2 == 2) { + i = d.E1(parcel, readInt); + } else if (i2 != 3) { + d.b2(parcel, readInt); + } else { + j = d.F1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new Feature(str, i, j); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ Feature[] newArray(int i) { + return new Feature[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/e/s.java b/app/src/main/java/b/i/a/f/e/s.java new file mode 100644 index 0000000000..21c6ea1f91 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/s.java @@ -0,0 +1,55 @@ +package b.i.a.f.e; + +import android.content.Context; +import android.os.IBinder; +import android.os.IInterface; +import android.os.RemoteException; +import android.util.Log; +import b.i.a.f.e.k.n0; +import b.i.a.f.e.k.o0; +import b.i.a.f.e.k.p0; +import b.i.a.f.f.b; +import com.google.android.gms.common.zzj; +import com.google.android.gms.dynamite.DynamiteModule; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class s { + public static volatile o0 a; + + /* renamed from: b reason: collision with root package name */ + public static final Object f1386b = new Object(); + public static Context c; + + public static a0 a(String str, t tVar, boolean z2, boolean z3) { + o0 o0Var; + try { + if (a == null) { + Objects.requireNonNull(c, "null reference"); + synchronized (f1386b) { + if (a == null) { + IBinder b2 = DynamiteModule.c(c, DynamiteModule.i, "com.google.android.gms.googlecertificates").b("com.google.android.gms.common.GoogleCertificatesImpl"); + int i = n0.a; + if (b2 == null) { + o0Var = null; + } else { + IInterface queryLocalInterface = b2.queryLocalInterface("com.google.android.gms.common.internal.IGoogleCertificatesApi"); + o0Var = queryLocalInterface instanceof o0 ? (o0) queryLocalInterface : new p0(b2); + } + a = o0Var; + } + } + } + Objects.requireNonNull(c, "null reference"); + try { + return a.r0(new zzj(str, tVar, z2, z3), new b(c.getPackageManager())) ? a0.a : new c0(new u(z2, str, tVar), null); + } catch (RemoteException e) { + Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e); + return a0.b("module call", e); + } + } catch (DynamiteModule.LoadingException e2) { + Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e2); + String valueOf = String.valueOf(e2.getMessage()); + return a0.b(valueOf.length() != 0 ? "module init: ".concat(valueOf) : new String("module init: "), e2); + } + } +} diff --git a/app/src/main/java/b/i/a/f/e/t.java b/app/src/main/java/b/i/a/f/e/t.java new file mode 100644 index 0000000000..554e4cd7ac --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/t.java @@ -0,0 +1,65 @@ +package b.i.a.f.e; + +import android.os.RemoteException; +import android.util.Log; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.f.e.k.k0; +import b.i.a.f.e.k.m0; +import b.i.a.f.f.a; +import b.i.a.f.f.b; +import java.io.UnsupportedEncodingException; +import java.util.Arrays; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public abstract class t extends m0 { + + /* renamed from: b reason: collision with root package name */ + public int f1387b; + + public t(byte[] bArr) { + d.l(bArr.length == 25); + this.f1387b = Arrays.hashCode(bArr); + } + + public static byte[] h(String str) { + try { + return str.getBytes("ISO-8859-1"); + } catch (UnsupportedEncodingException e) { + throw new AssertionError(e); + } + } + + @Override // b.i.a.f.e.k.k0 + public final a b() { + return new b(g()); + } + + @Override // b.i.a.f.e.k.k0 + public final int c() { + return this.f1387b; + } + + @Override // java.lang.Object + public boolean equals(@Nullable Object obj) { + a b2; + if (obj != null && (obj instanceof k0)) { + try { + k0 k0Var = (k0) obj; + if (k0Var.c() == this.f1387b && (b2 = k0Var.b()) != null) { + return Arrays.equals(g(), (byte[]) b.h(b2)); + } + return false; + } catch (RemoteException e) { + Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e); + } + } + return false; + } + + public abstract byte[] g(); + + @Override // java.lang.Object + public int hashCode() { + return this.f1387b; + } +} diff --git a/app/src/main/java/b/i/a/f/e/u.java b/app/src/main/java/b/i/a/f/e/u.java new file mode 100644 index 0000000000..a020a57c2b --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/u.java @@ -0,0 +1,52 @@ +package b.i.a.f.e; + +import b.i.a.f.e.o.a; +import b.i.a.f.e.o.d; +import com.adjust.sdk.Constants; +import java.security.MessageDigest; +import java.util.Objects; +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final /* synthetic */ class u implements Callable { + public final boolean j; + public final String k; + public final t l; + + public u(boolean z2, String str, t tVar) { + this.j = z2; + this.k = str; + this.l = tVar; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x005e: APUT + (r6v1 java.lang.Object[]) + (2 ??[int, float, short, byte, char]) + (wrap: java.lang.String : 0x005b: CONSTRUCTOR (r2v3 java.lang.String) = (r4v2 char[]) call: java.lang.String.(char[]):void type: CONSTRUCTOR) + */ + @Override // java.util.concurrent.Callable + public final Object call() { + boolean z2 = this.j; + String str = this.k; + t tVar = this.l; + Object[] objArr = new Object[5]; + objArr[0] = !z2 && s.a(str, tVar, true, false).f1331b ? "debug cert rejected" : "not allowed"; + objArr[1] = str; + MessageDigest a = a.a(Constants.SHA1); + Objects.requireNonNull(a, "null reference"); + byte[] digest = a.digest(tVar.g()); + char[] cArr = new char[(digest.length << 1)]; + int i = 0; + for (byte b2 : digest) { + int i2 = b2 & 255; + int i3 = i + 1; + char[] cArr2 = d.f1381b; + cArr[i] = cArr2[i2 >>> 4]; + i = i3 + 1; + cArr[i3] = cArr2[i2 & 15]; + } + objArr[2] = new String(cArr); + objArr[3] = Boolean.valueOf(z2); + objArr[4] = "12451009.false"; + return String.format("%s: pkg=%s, sha1=%s, atk=%s, ver=%s", objArr); + } +} diff --git a/app/src/main/java/b/i/a/f/e/v.java b/app/src/main/java/b/i/a/f/e/v.java new file mode 100644 index 0000000000..e426e7d5f8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/v.java @@ -0,0 +1,27 @@ +package b.i.a.f.e; + +import java.lang.ref.WeakReference; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public abstract class v extends t { + public static final WeakReference c = new WeakReference<>(null); + public WeakReference d = c; + + public v(byte[] bArr) { + super(bArr); + } + + @Override // b.i.a.f.e.t + public final byte[] g() { + byte[] bArr; + synchronized (this) { + bArr = this.d.get(); + if (bArr == null) { + bArr = x0(); + this.d = new WeakReference<>(bArr); + } + } + return bArr; + } + + public abstract byte[] x0(); +} diff --git a/app/src/main/java/b/i/a/f/e/w.java b/app/src/main/java/b/i/a/f/e/w.java new file mode 100644 index 0000000000..376d613c4d --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/w.java @@ -0,0 +1,17 @@ +package b.i.a.f.e; + +import java.util.Arrays; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class w extends t { + public final byte[] c; + + public w(byte[] bArr) { + super(Arrays.copyOfRange(bArr, 0, 25)); + this.c = bArr; + } + + @Override // b.i.a.f.e.t + public final byte[] g() { + return this.c; + } +} diff --git a/app/src/main/java/b/i/a/f/e/x.java b/app/src/main/java/b/i/a/f/e/x.java new file mode 100644 index 0000000000..9f31d38d2e --- /dev/null +++ b/app/src/main/java/b/i/a/f/e/x.java @@ -0,0 +1,12 @@ +package b.i.a.f.e; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class x extends v { + public x(byte[] bArr) { + super(bArr); + } + + @Override // b.i.a.f.e.v + public final byte[] x0() { + return t.h("0‚\u0004C0‚\u0003+ \u0003\u0002\u0001\u0002\u0002\t\u0000Âà‡FdJ00\r\u0006\t*†H†÷\r\u0001\u0001\u0004\u0005\u00000t1\u000b0\t\u0006\u0003U\u0004\u0006\u0013\u0002US1\u00130\u0011\u0006\u0003U\u0004\b\u0013\nCalifornia1\u00160\u0014\u0006\u0003U\u0004\u0007\u0013\rMountain View1\u00140\u0012\u0006\u0003U\u0004\n\u0013\u000bGoogle Inc.1\u00100\u000e\u0006\u0003U\u0004\u000b\u0013\u0007Android1\u00100\u000e\u0006\u0003U\u0004\u0003\u0013\u0007Android0\u001e\u0017\r080821231334Z\u0017\r360107231334Z0t1\u000b0\t\u0006\u0003U\u0004\u0006\u0013\u0002US1\u00130\u0011\u0006\u0003U\u0004\b\u0013\nCalifornia1\u00160\u0014\u0006\u0003U\u0004\u0007\u0013\rMountain View1\u00140\u0012\u0006\u0003U\u0004\n\u0013\u000bGoogle Inc.1\u00100\u000e\u0006\u0003U\u0004\u000b\u0013\u0007Android1\u00100\u000e\u0006\u0003U\u0004\u0003\u0013\u0007Android0‚\u0001 0\r\u0006\t*†H†÷\r\u0001\u0001\u0001\u0005\u0000\u0003‚\u0001\r\u00000‚\u0001\b\u0002‚\u0001\u0001\u0000«V.\u0000Ø;¢\b®\n–o\u0012N)Ú\u0011ò«VЏXâÌ©\u0013\u0003é·TÓrö@§\u001b\u001dË\u0013\tgbNFV§wj’\u0019=²å¿·$©\u001ew\u0018‹\u000ejG¤;3Ù`›w\u00181EÌß{.XftÉáV[\u001fLjYU¿òQ¦=«ùÅ\\'\"\"Rèuäø\u0015Jd_‰qhÀ±¿Æ\u0012ê¿xWi»4ªy„Ü~.¢vL®ƒ\u0007ØÁqT×î_d¥\u001aD¦\u0002ÂI\u0005AWÜ\u0002Í_\\\u000eUûï…\u0019ûã'ð±Q\u0016’Å o\u0019у…õÄÛÂÖ¹?hÌ)yÇ\u000e\u0018«“†k;Õۉ™U*\u000e;L™ßXû‘‹íÁ‚º5à\u0003Á´±\rÒD¨î$ÿý38r«R!˜^Ú°ü\r\u000b\u0014[j¡’…Žy\u0002\u0001\u0003£Ù0Ö0\u001d\u0006\u0003U\u001d\u000e\u0004\u0016\u0004\u0014Ç}ŒÂ!\u0017V%šӂßkã˜ä׆¥0¦\u0006\u0003U\u001d#\u0004ž0›€\u0014Ç}ŒÂ!\u0017V%šӂßkã˜ä׆¥¡x¤v0t1\u000b0\t\u0006\u0003U\u0004\u0006\u0013\u0002US1\u00130\u0011\u0006\u0003U\u0004\b\u0013\nCalifornia1\u00160\u0014\u0006\u0003U\u0004\u0007\u0013\rMountain View1\u00140\u0012\u0006\u0003U\u0004\n\u0013\u000bGoogle Inc.1\u00100\u000e\u0006\u0003U\u0004\u000b\u0013\u0007Android1\u00100\u000e\u0006\u0003U\u0004\u0003\u0013\u0007Android‚\t\u0000Âà‡FdJ00\f\u0006\u0003U\u001d\u0013\u0004\u00050\u0003\u0001\u0001ÿ0\r\u0006\t*†H†÷\r\u0001\u0001\u0004\u0005\u0000\u0003‚\u0001\u0001\u0000mÒRÎï…0,6\nªÎ“›ÏòÌ©\u0004»]z\u0016aø®F²™B\u0004ÐÿJhÇí\u001aS\u001eÄYZb<æ\u0007c±g)zzãW\u0012Ä\u0007ò\bðË\u0010”)\u0012M{\u0010b\u0019À„Ê>³ù­_¸qï’&š‹â‹ñmDÈÙ Žl²ð\u0005»?â˖D~†Žs\u0010v­E³?`\tê\u0019Áaæ&Aª™'\u001dýR(Å҇]ÛE'XÖaöÌ\fÌ·5.BLÄ6\\R52÷2Q7Y‚…œfCéÁ–/ Áƒ33[Àÿšk\"ÞÑ­DB)¥9©Nï­«ÐeÎÒK>QåÝ{fx{ï\u0012þ—û¤„Ä#ûOøÌIL\u0002ðõ\u0005\u0016\u0012ÿe)9>ŽFêÅ»!òwÁQª_*¦'Ñ蝧\n¶\u00035iÞ;˜—¿ÿ|©Ú>\u0012Cö\u000b"); + } +} diff --git a/app/src/main/java/b/i/a/f/f/a.java b/app/src/main/java/b/i/a/f/f/a.java new file mode 100644 index 0000000000..fa5dbd318a --- /dev/null +++ b/app/src/main/java/b/i/a/f/f/a.java @@ -0,0 +1,35 @@ +package b.i.a.f.f; + +import android.os.IBinder; +import android.os.IInterface; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.h.g.b; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface a extends IInterface { + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + /* renamed from: b.i.a.f.f.a$a reason: collision with other inner class name */ + public static abstract class AbstractBinderC0109a extends b.i.a.f.h.g.a implements a { + + /* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ + /* renamed from: b.i.a.f.f.a$a$a reason: collision with other inner class name */ + public static class C0110a extends b implements a { + public C0110a(IBinder iBinder) { + super(iBinder, "com.google.android.gms.dynamic.IObjectWrapper"); + } + } + + public AbstractBinderC0109a() { + super("com.google.android.gms.dynamic.IObjectWrapper"); + } + + @RecentlyNonNull + public static a g(@RecentlyNonNull IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.dynamic.IObjectWrapper"); + return queryLocalInterface instanceof a ? (a) queryLocalInterface : new C0110a(iBinder); + } + } +} diff --git a/app/src/main/java/b/i/a/f/f/b.java b/app/src/main/java/b/i/a/f/f/b.java new file mode 100644 index 0000000000..b1ffe0e8cf --- /dev/null +++ b/app/src/main/java/b/i/a/f/f/b.java @@ -0,0 +1,49 @@ +package b.i.a.f.f; + +import android.os.IBinder; +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.f.a; +import java.lang.reflect.Field; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class b extends a.AbstractBinderC0109a { + public final T a; + + public b(T t) { + this.a = t; + } + + @RecentlyNonNull + public static T h(@RecentlyNonNull a aVar) { + if (aVar instanceof b) { + return ((b) aVar).a; + } + IBinder asBinder = aVar.asBinder(); + Field[] declaredFields = asBinder.getClass().getDeclaredFields(); + Field field = null; + int i = 0; + for (Field field2 : declaredFields) { + if (!field2.isSynthetic()) { + i++; + field = field2; + } + } + if (i == 1) { + Objects.requireNonNull(field, "null reference"); + if (!field.isAccessible()) { + field.setAccessible(true); + try { + return (T) field.get(asBinder); + } catch (NullPointerException e) { + throw new IllegalArgumentException("Binder object is null.", e); + } catch (IllegalAccessException e2) { + throw new IllegalArgumentException("Could not access the field in remoteBinder.", e2); + } + } else { + throw new IllegalArgumentException("IObjectWrapper declared field not private!"); + } + } else { + throw new IllegalArgumentException(b.d.b.a.a.f(64, "Unexpected number of IObjectWrapper declared fields: ", declaredFields.length)); + } + } +} diff --git a/app/src/main/java/b/i/a/f/g/a.java b/app/src/main/java/b/i/a/f/g/a.java new file mode 100644 index 0000000000..40cde87480 --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/a.java @@ -0,0 +1,16 @@ +package b.i.a.f.g; + +import android.content.Context; +import com.google.android.gms.dynamite.DynamiteModule; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class a implements DynamiteModule.a.b { + @Override // com.google.android.gms.dynamite.DynamiteModule.a.b + public final int a(Context context, String str, boolean z2) throws DynamiteModule.LoadingException { + return DynamiteModule.d(context, str, z2); + } + + @Override // com.google.android.gms.dynamite.DynamiteModule.a.b + public final int b(Context context, String str) { + return DynamiteModule.a(context, str); + } +} diff --git a/app/src/main/java/b/i/a/f/g/b.java b/app/src/main/java/b/i/a/f/g/b.java new file mode 100644 index 0000000000..e742b552c4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/b.java @@ -0,0 +1,23 @@ +package b.i.a.f.g; + +import android.content.Context; +import com.google.android.gms.dynamite.DynamiteModule; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class b implements DynamiteModule.a { + @Override // com.google.android.gms.dynamite.DynamiteModule.a + public final DynamiteModule.a.C0189a a(Context context, String str, DynamiteModule.a.b bVar) throws DynamiteModule.LoadingException { + DynamiteModule.a.C0189a aVar = new DynamiteModule.a.C0189a(); + int b2 = bVar.b(context, str); + aVar.a = b2; + if (b2 != 0) { + aVar.c = -1; + } else { + int a = bVar.a(context, str, true); + aVar.f2965b = a; + if (a != 0) { + aVar.c = 1; + } + } + return aVar; + } +} diff --git a/app/src/main/java/b/i/a/f/g/c.java b/app/src/main/java/b/i/a/f/g/c.java new file mode 100644 index 0000000000..457bf6579f --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/c.java @@ -0,0 +1,27 @@ +package b.i.a.f.g; + +import android.content.Context; +import com.google.android.gms.dynamite.DynamiteModule; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class c implements DynamiteModule.a { + @Override // com.google.android.gms.dynamite.DynamiteModule.a + public final DynamiteModule.a.C0189a a(Context context, String str, DynamiteModule.a.b bVar) throws DynamiteModule.LoadingException { + DynamiteModule.a.C0189a aVar = new DynamiteModule.a.C0189a(); + int b2 = bVar.b(context, str); + aVar.a = b2; + if (b2 != 0) { + aVar.f2965b = bVar.a(context, str, false); + } else { + aVar.f2965b = bVar.a(context, str, true); + } + int i = aVar.a; + if (i == 0 && aVar.f2965b == 0) { + aVar.c = 0; + } else if (i >= aVar.f2965b) { + aVar.c = -1; + } else { + aVar.c = 1; + } + return aVar; + } +} diff --git a/app/src/main/java/b/i/a/f/g/d.java b/app/src/main/java/b/i/a/f/g/d.java new file mode 100644 index 0000000000..11c84505e4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/d.java @@ -0,0 +1,23 @@ +package b.i.a.f.g; + +import android.content.Context; +import com.google.android.gms.dynamite.DynamiteModule; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class d implements DynamiteModule.a { + @Override // com.google.android.gms.dynamite.DynamiteModule.a + public final DynamiteModule.a.C0189a a(Context context, String str, DynamiteModule.a.b bVar) throws DynamiteModule.LoadingException { + DynamiteModule.a.C0189a aVar = new DynamiteModule.a.C0189a(); + aVar.a = bVar.b(context, str); + int a = bVar.a(context, str, true); + aVar.f2965b = a; + int i = aVar.a; + if (i == 0 && a == 0) { + aVar.c = 0; + } else if (a >= i) { + aVar.c = 1; + } else { + aVar.c = -1; + } + return aVar; + } +} diff --git a/app/src/main/java/b/i/a/f/g/e.java b/app/src/main/java/b/i/a/f/g/e.java new file mode 100644 index 0000000000..c4bb86bfa5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/e.java @@ -0,0 +1,20 @@ +package b.i.a.f.g; + +import dalvik.system.PathClassLoader; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class e extends PathClassLoader { + public e(String str, ClassLoader classLoader) { + super(str, classLoader); + } + + @Override // java.lang.ClassLoader + public final Class loadClass(String str, boolean z2) throws ClassNotFoundException { + if (!str.startsWith("java.") && !str.startsWith("android.")) { + try { + return findClass(str); + } catch (ClassNotFoundException unused) { + } + } + return super.loadClass(str, z2); + } +} diff --git a/app/src/main/java/b/i/a/f/g/f.java b/app/src/main/java/b/i/a/f/g/f.java new file mode 100644 index 0000000000..828dc8d265 --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/f.java @@ -0,0 +1,95 @@ +package b.i.a.f.g; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.f.a; +import b.i.a.f.h.g.b; +import b.i.a.f.h.g.c; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class f extends b implements g { + public f(IBinder iBinder) { + super(iBinder, "com.google.android.gms.dynamite.IDynamiteLoader"); + } + + @Override // b.i.a.f.g.g + public final a B(a aVar, String str, int i) throws RemoteException { + Parcel e = e(); + c.b(e, aVar); + e.writeString(str); + e.writeInt(i); + Parcel g = g(2, e); + a g2 = a.AbstractBinderC0109a.g(g.readStrongBinder()); + g.recycle(); + return g2; + } + + @Override // b.i.a.f.g.g + public final int R(a aVar, String str, boolean z2) throws RemoteException { + Parcel e = e(); + c.b(e, aVar); + e.writeString(str); + e.writeInt(z2 ? 1 : 0); + Parcel g = g(5, e); + int readInt = g.readInt(); + g.recycle(); + return readInt; + } + + @Override // b.i.a.f.g.g + public final int b() throws RemoteException { + Parcel g = g(6, e()); + int readInt = g.readInt(); + g.recycle(); + return readInt; + } + + @Override // b.i.a.f.g.g + public final a c0(a aVar, String str, boolean z2) throws RemoteException { + Parcel e = e(); + c.b(e, aVar); + e.writeString(str); + e.writeInt(z2 ? 1 : 0); + Parcel g = g(7, e); + a g2 = a.AbstractBinderC0109a.g(g.readStrongBinder()); + g.recycle(); + return g2; + } + + @Override // b.i.a.f.g.g + public final a d(a aVar, String str, int i, a aVar2) throws RemoteException { + Parcel e = e(); + c.b(e, aVar); + e.writeString(str); + e.writeInt(i); + c.b(e, aVar2); + Parcel g = g(8, e); + a g2 = a.AbstractBinderC0109a.g(g.readStrongBinder()); + g.recycle(); + return g2; + } + + @Override // b.i.a.f.g.g + public final int d0(a aVar, String str, boolean z2) throws RemoteException { + Parcel e = e(); + c.b(e, aVar); + e.writeString(str); + e.writeInt(z2 ? 1 : 0); + Parcel g = g(3, e); + int readInt = g.readInt(); + g.recycle(); + return readInt; + } + + @Override // b.i.a.f.g.g + public final a i0(a aVar, String str, int i) throws RemoteException { + Parcel e = e(); + c.b(e, aVar); + e.writeString(str); + e.writeInt(i); + Parcel g = g(4, e); + a g2 = a.AbstractBinderC0109a.g(g.readStrongBinder()); + g.recycle(); + return g2; + } +} diff --git a/app/src/main/java/b/i/a/f/g/g.java b/app/src/main/java/b/i/a/f/g/g.java new file mode 100644 index 0000000000..18e42ed3e3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/g.java @@ -0,0 +1,21 @@ +package b.i.a.f.g; + +import android.os.IInterface; +import android.os.RemoteException; +import b.i.a.f.f.a; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface g extends IInterface { + a B(a aVar, String str, int i) throws RemoteException; + + int R(a aVar, String str, boolean z2) throws RemoteException; + + int b() throws RemoteException; + + a c0(a aVar, String str, boolean z2) throws RemoteException; + + a d(a aVar, String str, int i, a aVar2) throws RemoteException; + + int d0(a aVar, String str, boolean z2) throws RemoteException; + + a i0(a aVar, String str, int i) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/g/h.java b/app/src/main/java/b/i/a/f/g/h.java new file mode 100644 index 0000000000..7fcdcb740b --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/h.java @@ -0,0 +1,40 @@ +package b.i.a.f.g; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.f.a; +import b.i.a.f.h.g.b; +import b.i.a.f.h.g.c; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public final class h extends b implements i { + public h(IBinder iBinder) { + super(iBinder, "com.google.android.gms.dynamite.IDynamiteLoaderV2"); + } + + @Override // b.i.a.f.g.i + public final a d(a aVar, String str, int i, a aVar2) throws RemoteException { + Parcel e = e(); + c.b(e, aVar); + e.writeString(str); + e.writeInt(i); + c.b(e, aVar2); + Parcel g = g(2, e); + a g2 = a.AbstractBinderC0109a.g(g.readStrongBinder()); + g.recycle(); + return g2; + } + + @Override // b.i.a.f.g.i + public final a r(a aVar, String str, int i, a aVar2) throws RemoteException { + Parcel e = e(); + c.b(e, aVar); + e.writeString(str); + e.writeInt(i); + c.b(e, aVar2); + Parcel g = g(3, e); + a g2 = a.AbstractBinderC0109a.g(g.readStrongBinder()); + g.recycle(); + return g2; + } +} diff --git a/app/src/main/java/b/i/a/f/g/i.java b/app/src/main/java/b/i/a/f/g/i.java new file mode 100644 index 0000000000..4a336e4e0e --- /dev/null +++ b/app/src/main/java/b/i/a/f/g/i.java @@ -0,0 +1,11 @@ +package b.i.a.f.g; + +import android.os.IInterface; +import android.os.RemoteException; +import b.i.a.f.f.a; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public interface i extends IInterface { + a d(a aVar, String str, int i, a aVar2) throws RemoteException; + + a r(a aVar, String str, int i, a aVar2) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/a/a.java b/app/src/main/java/b/i/a/f/h/a/a.java new file mode 100644 index 0000000000..3cccbd1a7a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/a/a.java @@ -0,0 +1,8 @@ +package b.i.a.f.h.a; +public class a { + public static final /* synthetic */ int a = 0; + + static { + a.class.getClassLoader(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/a/b.java b/app/src/main/java/b/i/a/f/h/a/b.java new file mode 100644 index 0000000000..26f04aff1e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/a/b.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.a; + +import android.os.IInterface; +import android.os.RemoteException; +public interface b extends IInterface { + boolean E(boolean z2) throws RemoteException; + + String getId() throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/a/c.java b/app/src/main/java/b/i/a/f/h/a/c.java new file mode 100644 index 0000000000..b1a97eeedb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/a/c.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.a; + +import android.os.Binder; +import android.os.IInterface; +public abstract class c extends Binder implements b, IInterface { + public static final /* synthetic */ int a = 0; +} diff --git a/app/src/main/java/b/i/a/f/h/a/d.java b/app/src/main/java/b/i/a/f/h/a/d.java new file mode 100644 index 0000000000..911aa50137 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/a/d.java @@ -0,0 +1,59 @@ +package b.i.a.f.h.a; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +public final class d implements b, IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1388b = "com.google.android.gms.ads.identifier.internal.IAdvertisingIdService"; + + public d(IBinder iBinder) { + this.a = iBinder; + } + + @Override // b.i.a.f.h.a.b + public final boolean E(boolean z2) throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1388b); + int i = a.a; + boolean z3 = true; + obtain.writeInt(1); + Parcel e = e(2, obtain); + if (e.readInt() == 0) { + z3 = false; + } + e.recycle(); + return z3; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + public final Parcel e(int i, Parcel parcel) { + parcel = Parcel.obtain(); + try { + this.a.transact(i, parcel, parcel, 0); + parcel.readException(); + return parcel; + } catch (RuntimeException e) { + throw e; + } finally { + parcel.recycle(); + } + } + + @Override // b.i.a.f.h.a.b + public final String getId() throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1388b); + Parcel e = e(1, obtain); + String readString = e.readString(); + e.recycle(); + return readString; + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/a.java b/app/src/main/java/b/i/a/f/h/b/a.java new file mode 100644 index 0000000000..294f842077 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/a.java @@ -0,0 +1,43 @@ +package b.i.a.f.h.b; + +import android.os.Binder; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.Parcelable; +import android.os.RemoteException; +import b.c.a.a0.d; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public class a extends Binder implements IInterface { + public a(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + f fVar = (f) this; + if (i != 1) { + return false; + } + Parcelable.Creator creator = Status.CREATOR; + int i3 = c.a; + d.Y1(parcel.readInt() == 0 ? null : creator.createFromParcel(parcel), null, ((k) fVar).a); + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/b.java b/app/src/main/java/b/i/a/f/h/b/b.java new file mode 100644 index 0000000000..c2f3ffc5f0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/b.java @@ -0,0 +1,22 @@ +package b.i.a.f.h.b; + +import com.google.android.gms.common.Feature; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public final class b { + public static final Feature a; + + /* renamed from: b reason: collision with root package name */ + public static final Feature f1389b; + public static final Feature c; + public static final Feature[] d; + + static { + Feature feature = new Feature("sms_code_autofill", 2); + a = feature; + Feature feature2 = new Feature("sms_retrieve", 1); + f1389b = feature2; + Feature feature3 = new Feature("user_consent", 3); + c = feature3; + d = new Feature[]{feature, feature2, feature3}; + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/c.java b/app/src/main/java/b/i/a/f/h/b/c.java new file mode 100644 index 0000000000..272b428cd1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/c.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.b; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public class c { + public static final /* synthetic */ int a = 0; + + static { + c.class.getClassLoader(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/d.java b/app/src/main/java/b/i/a/f/h/b/d.java new file mode 100644 index 0000000000..1fcf738fa5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/d.java @@ -0,0 +1,38 @@ +package b.i.a.f.h.b; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public final class d implements e, IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1390b = "com.google.android.gms.auth.api.phone.internal.ISmsRetrieverApiService"; + + public d(IBinder iBinder) { + this.a = iBinder; + } + + @Override // b.i.a.f.h.b.e + public final void Y(g gVar) throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1390b); + int i = c.a; + obtain.writeStrongBinder((a) gVar); + Parcel obtain2 = Parcel.obtain(); + try { + this.a.transact(1, obtain, obtain2, 0); + obtain2.readException(); + } finally { + obtain.recycle(); + obtain2.recycle(); + } + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/e.java b/app/src/main/java/b/i/a/f/h/b/e.java new file mode 100644 index 0000000000..d0068b8621 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/e.java @@ -0,0 +1,8 @@ +package b.i.a.f.h.b; + +import android.os.IInterface; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public interface e extends IInterface { + void Y(g gVar) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/b/f.java b/app/src/main/java/b/i/a/f/h/b/f.java new file mode 100644 index 0000000000..6bf0b3e5b2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/f.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.b; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public abstract class f extends a implements g { + public f() { + super("com.google.android.gms.auth.api.phone.internal.ISmsRetrieverResultCallback"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/g.java b/app/src/main/java/b/i/a/f/h/b/g.java new file mode 100644 index 0000000000..7c541ebc01 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/g.java @@ -0,0 +1,6 @@ +package b.i.a.f.h.b; + +import android.os.IInterface; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public interface g extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/h/b/h.java b/app/src/main/java/b/i/a/f/h/b/h.java new file mode 100644 index 0000000000..5ad0bfa9b6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/h.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.b; + +import android.content.Context; +import b.i.a.f.c.a.e.a; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public final class h extends a { + public h(Context context) { + super(context); + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/i.java b/app/src/main/java/b/i/a/f/h/b/i.java new file mode 100644 index 0000000000..e4c56b0872 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/i.java @@ -0,0 +1,46 @@ +package b.i.a.f.h.b; + +import android.content.Context; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import b.i.a.f.e.h.j.f; +import b.i.a.f.e.h.j.l; +import b.i.a.f.e.k.c; +import b.i.a.f.e.k.d; +import com.google.android.gms.common.Feature; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public final class i extends d { + public i(Context context, Looper looper, c cVar, f fVar, l lVar) { + super(context, looper, 126, cVar, fVar, lVar); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12451000; + } + + @Override // b.i.a.f.e.k.b + public final /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.auth.api.phone.internal.ISmsRetrieverApiService"); + return queryLocalInterface instanceof e ? (e) queryLocalInterface : new d(iBinder); + } + + @Override // b.i.a.f.e.k.b + public final Feature[] t() { + return b.d; + } + + @Override // b.i.a.f.e.k.b + public final String x() { + return "com.google.android.gms.auth.api.phone.internal.ISmsRetrieverApiService"; + } + + @Override // b.i.a.f.e.k.b + public final String y() { + return "com.google.android.gms.auth.api.phone.service.SmsRetrieverApiService.START"; + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/j.java b/app/src/main/java/b/i/a/f/h/b/j.java new file mode 100644 index 0000000000..f723bc5226 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/j.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.b; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public final /* synthetic */ class j { + public final h a; + + public j(h hVar) { + this.a = hVar; + } +} diff --git a/app/src/main/java/b/i/a/f/h/b/k.java b/app/src/main/java/b/i/a/f/h/b/k.java new file mode 100644 index 0000000000..d163357060 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/b/k.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.b; + +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: com.google.android.gms:play-services-auth-api-phone@@17.4.0 */ +public final class k extends f { + public final /* synthetic */ TaskCompletionSource a; + + public k(TaskCompletionSource taskCompletionSource) { + this.a = taskCompletionSource; + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/a.java b/app/src/main/java/b/i/a/f/h/c/a.java new file mode 100644 index 0000000000..b93ddc6e9f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/a.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.c; + +import java.util.Random; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class a { + public static final Random a = new Random(); +} diff --git a/app/src/main/java/b/i/a/f/h/c/b.java b/app/src/main/java/b/i/a/f/h/c/b.java new file mode 100644 index 0000000000..4f70ca149b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/b.java @@ -0,0 +1,37 @@ +package b.i.a.f.h.c; + +import android.os.Binder; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public class b extends Binder implements IInterface { + public b(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + public boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + throw null; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + return e(i, parcel, parcel2, i2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/c.java b/app/src/main/java/b/i/a/f/h/c/c.java new file mode 100644 index 0000000000..8cd1224c50 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/c.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.c; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public class c implements IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1391b; + + public c(IBinder iBinder, String str) { + this.a = iBinder; + this.f1391b = str; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + public final Parcel e() { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1391b); + return obtain; + } + + public final void g(int i, Parcel parcel) throws RemoteException { + Parcel obtain = Parcel.obtain(); + try { + this.a.transact(i, parcel, obtain, 0); + obtain.readException(); + } finally { + parcel.recycle(); + obtain.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/d.java b/app/src/main/java/b/i/a/f/h/c/d.java new file mode 100644 index 0000000000..572b4472e0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/d.java @@ -0,0 +1,35 @@ +package b.i.a.f.h.c; + +import android.os.IInterface; +import android.os.Parcel; +import android.os.Parcelable; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public class d { + static { + d.class.getClassLoader(); + } + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } + + public static void b(Parcel parcel, IInterface iInterface) { + if (iInterface == null) { + parcel.writeStrongBinder(null); + } else { + parcel.writeStrongBinder(iInterface.asBinder()); + } + } + + public static void c(Parcel parcel, Parcelable parcelable) { + if (parcelable == null) { + parcel.writeInt(0); + return; + } + parcel.writeInt(1); + parcelable.writeToParcel(parcel, 0); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/e.java b/app/src/main/java/b/i/a/f/h/c/e.java new file mode 100644 index 0000000000..c8dd8d421b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/e.java @@ -0,0 +1,28 @@ +package b.i.a.f.h.c; + +import androidx.annotation.Nullable; +import b.i.a.f.c.a.d.b; +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class e implements b { + public final Status j; + @Nullable + public final Credential k; + + public e(Status status, @Nullable Credential credential) { + this.j = status; + this.k = credential; + } + + @Override // b.i.a.f.c.a.d.b + @Nullable + public final Credential R() { + return this.k; + } + + @Override // b.i.a.f.e.h.h + public final Status b0() { + return this.j; + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/f.java b/app/src/main/java/b/i/a/f/h/c/f.java new file mode 100644 index 0000000000..c2592c9564 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/f.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.c; + +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public class f extends q { + @Override // b.i.a.f.h.c.r + public void O(Status status, Credential credential) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/g.java b/app/src/main/java/b/i/a/f/h/c/g.java new file mode 100644 index 0000000000..0a0dac3e3e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/g.java @@ -0,0 +1,29 @@ +package b.i.a.f.h.c; + +import android.content.Context; +import android.os.RemoteException; +import b.i.a.f.c.a.d.b; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import com.google.android.gms.auth.api.credentials.CredentialRequest; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class g extends m { + public final /* synthetic */ CredentialRequest l; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(c cVar, CredentialRequest credentialRequest) { + super(cVar); + this.l = credentialRequest; + } + + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public final h d(Status status) { + return new e(status, null); + } + + @Override // b.i.a.f.h.c.m + public final void m(Context context, t tVar) throws RemoteException { + tVar.t(new j(this), this.l); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/h.java b/app/src/main/java/b/i/a/f/h/c/h.java new file mode 100644 index 0000000000..f0f0f788ef --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/h.java @@ -0,0 +1,6 @@ +package b.i.a.f.h.c; + +import b.i.a.f.c.a.d.c; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class h implements c { +} diff --git a/app/src/main/java/b/i/a/f/h/c/i.java b/app/src/main/java/b/i/a/f/h/c/i.java new file mode 100644 index 0000000000..b57e8f2d6a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/i.java @@ -0,0 +1,29 @@ +package b.i.a.f.h.c; + +import android.content.Context; +import android.os.RemoteException; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.internal.p001authapi.zzz; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class i extends m { + public final /* synthetic */ Credential l; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(c cVar, Credential credential) { + super(cVar); + this.l = credential; + } + + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public final /* synthetic */ h d(Status status) { + return status; + } + + @Override // b.i.a.f.h.c.m + public final void m(Context context, t tVar) throws RemoteException { + tVar.x(new n(this), new zzz(this.l)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/j.java b/app/src/main/java/b/i/a/f/h/c/j.java new file mode 100644 index 0000000000..949286cd86 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/j.java @@ -0,0 +1,22 @@ +package b.i.a.f.h.c; + +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class j extends f { + public final /* synthetic */ g a; + + public j(g gVar) { + this.a = gVar; + } + + @Override // b.i.a.f.h.c.f, b.i.a.f.h.c.r + public final void O(Status status, Credential credential) { + this.a.b(new e(status, credential)); + } + + @Override // b.i.a.f.h.c.r + public final void k(Status status) { + this.a.b(new e(status, null)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/k.java b/app/src/main/java/b/i/a/f/h/c/k.java new file mode 100644 index 0000000000..85540bce35 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/k.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.c; + +import android.content.Context; +import android.os.RemoteException; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class k extends m { + public k(c cVar) { + super(cVar); + } + + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public final /* synthetic */ h d(Status status) { + return status; + } + + @Override // b.i.a.f.h.c.m + public final void m(Context context, t tVar) throws RemoteException { + tVar.M(new n(this)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/l.java b/app/src/main/java/b/i/a/f/h/c/l.java new file mode 100644 index 0000000000..46477b929b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/l.java @@ -0,0 +1,29 @@ +package b.i.a.f.h.c; + +import android.content.Context; +import android.os.RemoteException; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.internal.p001authapi.zzt; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class l extends m { + public final /* synthetic */ Credential l; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(c cVar, Credential credential) { + super(cVar); + this.l = credential; + } + + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public final /* synthetic */ h d(Status status) { + return status; + } + + @Override // b.i.a.f.h.c.m + public final void m(Context context, t tVar) throws RemoteException { + tVar.L(new n(this), new zzt(this.l)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/m.java b/app/src/main/java/b/i/a/f/h/c/m.java new file mode 100644 index 0000000000..80d98ddb11 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/m.java @@ -0,0 +1,31 @@ +package b.i.a.f.h.c; + +import android.content.Context; +import android.os.DeadObjectException; +import android.os.RemoteException; +import b.i.a.f.c.a.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import b.i.a.f.e.h.j.d; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public abstract class m extends d { + public m(c cVar) { + super(a.e, cVar); + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: b.i.a.f.h.c.m */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // com.google.android.gms.common.api.internal.BasePendingResult, b.i.a.f.e.h.j.e + public /* bridge */ /* synthetic */ void b(Object obj) { + b((h) obj); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.f.e.h.a$b] */ + @Override // b.i.a.f.e.h.j.d + public void k(o oVar) throws RemoteException { + o oVar2 = oVar; + m(oVar2.d, oVar2.w()); + } + + public abstract void m(Context context, t tVar) throws DeadObjectException, RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/c/n.java b/app/src/main/java/b/i/a/f/h/c/n.java new file mode 100644 index 0000000000..05e470f522 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/n.java @@ -0,0 +1,17 @@ +package b.i.a.f.h.c; + +import b.i.a.f.e.h.j.e; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class n extends f { + public e a; + + public n(e eVar) { + this.a = eVar; + } + + @Override // b.i.a.f.h.c.r + public final void k(Status status) { + this.a.b(status); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/o.java b/app/src/main/java/b/i/a/f/h/c/o.java new file mode 100644 index 0000000000..8b413442c5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/o.java @@ -0,0 +1,61 @@ +package b.i.a.f.h.c; + +import android.content.Context; +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import android.util.Base64; +import b.i.a.f.c.a.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +import b.i.a.f.e.k.d; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class o extends d { + public final a.C0101a A; + + public o(Context context, Looper looper, c cVar, a.C0101a aVar, c.a aVar2, c.b bVar) { + super(context, looper, 68, cVar, aVar2, bVar); + a.C0101a.C0102a aVar3 = new a.C0101a.C0102a(aVar == null ? a.C0101a.j : aVar); + byte[] bArr = new byte[16]; + a.a.nextBytes(bArr); + aVar3.c = Base64.encodeToString(bArr, 11); + this.A = new a.C0101a(aVar3); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12800000; + } + + @Override // b.i.a.f.e.k.b + public final /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.auth.api.credentials.internal.ICredentialsService"); + return queryLocalInterface instanceof t ? (t) queryLocalInterface : new s(iBinder); + } + + @Override // b.i.a.f.e.k.b + public final Bundle u() { + a.C0101a aVar = this.A; + Objects.requireNonNull(aVar); + Bundle bundle = new Bundle(); + bundle.putString("consumer_package", aVar.k); + bundle.putBoolean("force_save_dialog", aVar.l); + bundle.putString("log_session_id", aVar.m); + return bundle; + } + + @Override // b.i.a.f.e.k.b + public final String x() { + return "com.google.android.gms.auth.api.credentials.internal.ICredentialsService"; + } + + @Override // b.i.a.f.e.k.b + public final String y() { + return "com.google.android.gms.auth.api.credentials.service.START"; + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/p.java b/app/src/main/java/b/i/a/f/h/c/p.java new file mode 100644 index 0000000000..8724465a9d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/p.java @@ -0,0 +1,32 @@ +package b.i.a.f.h.c; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.internal.p001authapi.zzt; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class p implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzt createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Credential credential = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 1) { + d.b2(parcel, readInt); + } else { + credential = (Credential) d.P(parcel, readInt, Credential.CREATOR); + } + } + d.e0(parcel, k2); + return new zzt(credential); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzt[] newArray(int i) { + return new zzt[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/q.java b/app/src/main/java/b/i/a/f/h/c/q.java new file mode 100644 index 0000000000..e4411a5df0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/q.java @@ -0,0 +1,29 @@ +package b.i.a.f.h.c; + +import android.os.Parcel; +import android.os.RemoteException; +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public abstract class q extends b implements r { + public q() { + super("com.google.android.gms.auth.api.credentials.internal.ICredentialsCallbacks"); + } + + @Override // b.i.a.f.h.c.b + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i == 1) { + O((Status) d.a(parcel, Status.CREATOR), (Credential) d.a(parcel, Credential.CREATOR)); + } else if (i == 2) { + k((Status) d.a(parcel, Status.CREATOR)); + } else if (i != 3) { + return false; + } else { + Status status = (Status) d.a(parcel, Status.CREATOR); + parcel.readString(); + throw new UnsupportedOperationException(); + } + parcel2.writeNoException(); + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/r.java b/app/src/main/java/b/i/a/f/h/c/r.java new file mode 100644 index 0000000000..127d1fcbc0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/r.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.c; + +import android.os.IInterface; +import android.os.RemoteException; +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public interface r extends IInterface { + void O(Status status, Credential credential) throws RemoteException; + + void k(Status status) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/c/s.java b/app/src/main/java/b/i/a/f/h/c/s.java new file mode 100644 index 0000000000..548c420cc2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/s.java @@ -0,0 +1,45 @@ +package b.i.a.f.h.c; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import com.google.android.gms.auth.api.credentials.CredentialRequest; +import com.google.android.gms.internal.p001authapi.zzt; +import com.google.android.gms.internal.p001authapi.zzz; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class s extends c implements t { + public s(IBinder iBinder) { + super(iBinder, "com.google.android.gms.auth.api.credentials.internal.ICredentialsService"); + } + + @Override // b.i.a.f.h.c.t + public final void L(r rVar, zzt zzt) throws RemoteException { + Parcel e = e(); + d.b(e, rVar); + d.c(e, zzt); + g(3, e); + } + + @Override // b.i.a.f.h.c.t + public final void M(r rVar) throws RemoteException { + Parcel e = e(); + d.b(e, rVar); + g(4, e); + } + + @Override // b.i.a.f.h.c.t + public final void t(r rVar, CredentialRequest credentialRequest) throws RemoteException { + Parcel e = e(); + d.b(e, rVar); + d.c(e, credentialRequest); + g(1, e); + } + + @Override // b.i.a.f.h.c.t + public final void x(r rVar, zzz zzz) throws RemoteException { + Parcel e = e(); + d.b(e, rVar); + d.c(e, zzz); + g(2, e); + } +} diff --git a/app/src/main/java/b/i/a/f/h/c/t.java b/app/src/main/java/b/i/a/f/h/c/t.java new file mode 100644 index 0000000000..84ecd830aa --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/t.java @@ -0,0 +1,17 @@ +package b.i.a.f.h.c; + +import android.os.IInterface; +import android.os.RemoteException; +import com.google.android.gms.auth.api.credentials.CredentialRequest; +import com.google.android.gms.internal.p001authapi.zzt; +import com.google.android.gms.internal.p001authapi.zzz; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public interface t extends IInterface { + void L(r rVar, zzt zzt) throws RemoteException; + + void M(r rVar) throws RemoteException; + + void t(r rVar, CredentialRequest credentialRequest) throws RemoteException; + + void x(r rVar, zzz zzz) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/c/u.java b/app/src/main/java/b/i/a/f/h/c/u.java new file mode 100644 index 0000000000..2bd17422a9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/c/u.java @@ -0,0 +1,32 @@ +package b.i.a.f.h.c; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.auth.api.credentials.Credential; +import com.google.android.gms.internal.p001authapi.zzz; +/* compiled from: com.google.android.gms:play-services-auth@@19.0.0 */ +public final class u implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzz createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Credential credential = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 1) { + d.b2(parcel, readInt); + } else { + credential = (Credential) d.P(parcel, readInt, Credential.CREATOR); + } + } + d.e0(parcel, k2); + return new zzz(credential); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzz[] newArray(int i) { + return new zzz[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/d/a.java b/app/src/main/java/b/i/a/f/h/d/a.java new file mode 100644 index 0000000000..0b3f6b7ced --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/d/a.java @@ -0,0 +1,67 @@ +package b.i.a.f.h.d; + +import android.accounts.Account; +import android.content.Context; +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import android.text.TextUtils; +import b.i.a.f.c.a.b; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +import b.i.a.f.e.k.d; +public final class a extends d { + public final Bundle A; + + public a(Context context, Looper looper, c cVar, b.i.a.f.c.a.c cVar2, c.a aVar, c.b bVar) { + super(context, looper, 16, cVar, aVar, bVar); + if (cVar2 == null) { + this.A = new Bundle(); + return; + } + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12451000; + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final boolean o() { + b.i.a.f.e.k.c cVar = this.f1369x; + Account account = cVar.a; + if (TextUtils.isEmpty(account != null ? account.name : null)) { + return false; + } + if (cVar.d.get(b.c) == null) { + return !cVar.f1367b.isEmpty(); + } + throw null; + } + + @Override // b.i.a.f.e.k.b + public final /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.auth.api.internal.IAuthService"); + return queryLocalInterface instanceof b ? (b) queryLocalInterface : new c(iBinder); + } + + @Override // b.i.a.f.e.k.b + public final Bundle u() { + return this.A; + } + + @Override // b.i.a.f.e.k.b + public final String x() { + return "com.google.android.gms.auth.api.internal.IAuthService"; + } + + @Override // b.i.a.f.e.k.b + public final String y() { + return "com.google.android.gms.auth.service.START"; + } +} diff --git a/app/src/main/java/b/i/a/f/h/d/b.java b/app/src/main/java/b/i/a/f/h/d/b.java new file mode 100644 index 0000000000..b8f5a24268 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/d/b.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.d; + +import android.os.IInterface; +public interface b extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/h/d/c.java b/app/src/main/java/b/i/a/f/h/d/c.java new file mode 100644 index 0000000000..d8709f3abc --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/d/c.java @@ -0,0 +1,16 @@ +package b.i.a.f.h.d; + +import android.os.IBinder; +import android.os.IInterface; +public final class c implements b, IInterface { + public final IBinder a; + + public c(IBinder iBinder) { + this.a = iBinder; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/f/h/d/d.java b/app/src/main/java/b/i/a/f/h/d/d.java new file mode 100644 index 0000000000..9f98e0b27b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/d/d.java @@ -0,0 +1,3 @@ +package b.i.a.f.h.d; +public final class d { +} diff --git a/app/src/main/java/b/i/a/f/h/e/a.java b/app/src/main/java/b/i/a/f/h/e/a.java new file mode 100644 index 0000000000..0e462aa17c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/e/a.java @@ -0,0 +1,70 @@ +package b.i.a.f.h.e; + +import android.os.Binder; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.e.h.j.g0; +import b.i.a.f.e.h.j.i0; +import b.i.a.f.l.b.f; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.signin.internal.zab; +import com.google.android.gms.signin.internal.zag; +import com.google.android.gms.signin.internal.zam; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class a extends Binder implements IInterface { + public a(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + f fVar = (f) this; + switch (i) { + case 3: + ConnectionResult connectionResult = (ConnectionResult) b.a(parcel, ConnectionResult.CREATOR); + zab zab = (zab) b.a(parcel, zab.CREATOR); + break; + case 4: + Status status = (Status) b.a(parcel, Status.CREATOR); + break; + case 5: + default: + return false; + case 6: + Status status2 = (Status) b.a(parcel, Status.CREATOR); + break; + case 7: + Status status3 = (Status) b.a(parcel, Status.CREATOR); + GoogleSignInAccount googleSignInAccount = (GoogleSignInAccount) b.a(parcel, GoogleSignInAccount.CREATOR); + break; + case 8: + g0 g0Var = (g0) fVar; + g0Var.c.post(new i0(g0Var, (zam) b.a(parcel, zam.CREATOR))); + break; + case 9: + zag zag = (zag) b.a(parcel, zag.CREATOR); + break; + } + parcel2.writeNoException(); + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/h/e/b.java b/app/src/main/java/b/i/a/f/h/e/b.java new file mode 100644 index 0000000000..f95581ff93 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/e/b.java @@ -0,0 +1,19 @@ +package b.i.a.f.h.e; + +import android.os.Parcel; +import android.os.Parcelable; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class b { + public static final /* synthetic */ int a = 0; + + static { + b.class.getClassLoader(); + } + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } +} diff --git a/app/src/main/java/b/i/a/f/h/e/c.java b/app/src/main/java/b/i/a/f/h/e/c.java new file mode 100644 index 0000000000..3ba6b4197a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/e/c.java @@ -0,0 +1,20 @@ +package b.i.a.f.h.e; + +import android.os.Handler; +import android.os.Looper; +import android.os.Message; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class c extends Handler { + public c(Looper looper) { + super(looper); + } + + public c(Looper looper, Handler.Callback callback) { + super(looper, callback); + } + + @Override // android.os.Handler + public final void dispatchMessage(Message message) { + super.dispatchMessage(message); + } +} diff --git a/app/src/main/java/b/i/a/f/h/f/a.java b/app/src/main/java/b/i/a/f/h/f/a.java new file mode 100644 index 0000000000..671ef6edc4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/f/a.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.f; + +import android.os.Handler; +import android.os.Looper; +/* compiled from: com.google.android.gms:play-services-cloud-messaging@@16.0.0 */ +public class a extends Handler { + public a(Looper looper) { + super(looper); + } + + public a(Looper looper, Handler.Callback callback) { + super(looper, callback); + } +} diff --git a/app/src/main/java/b/i/a/f/h/g/a.java b/app/src/main/java/b/i/a/f/h/g/a.java new file mode 100644 index 0000000000..f4d7eeb014 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/g/a.java @@ -0,0 +1,37 @@ +package b.i.a.f.h.g; + +import android.os.Binder; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class a extends Binder implements IInterface { + public a(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + public boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + return false; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + return e(i, parcel, parcel2, i2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/g/b.java b/app/src/main/java/b/i/a/f/h/g/b.java new file mode 100644 index 0000000000..ac442daea0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/g/b.java @@ -0,0 +1,42 @@ +package b.i.a.f.h.g; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class b implements IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1392b; + + public b(IBinder iBinder, String str) { + this.a = iBinder; + this.f1392b = str; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + public final Parcel e() { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1392b); + return obtain; + } + + public final Parcel g(int i, Parcel parcel) throws RemoteException { + parcel = Parcel.obtain(); + try { + this.a.transact(i, parcel, parcel, 0); + parcel.readException(); + return parcel; + } catch (RuntimeException e) { + throw e; + } finally { + parcel.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/g/c.java b/app/src/main/java/b/i/a/f/h/g/c.java new file mode 100644 index 0000000000..7072dd257f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/g/c.java @@ -0,0 +1,28 @@ +package b.i.a.f.h.g; + +import android.os.IInterface; +import android.os.Parcel; +import android.os.Parcelable; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class c { + public static final /* synthetic */ int a = 0; + + static { + c.class.getClassLoader(); + } + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } + + public static void b(Parcel parcel, IInterface iInterface) { + if (iInterface == null) { + parcel.writeStrongBinder(null); + } else { + parcel.writeStrongBinder(iInterface.asBinder()); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/g/d.java b/app/src/main/java/b/i/a/f/h/g/d.java new file mode 100644 index 0000000000..afdbb77a5c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/g/d.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.g; + +import android.os.Handler; +import android.os.Looper; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class d extends Handler { + public d(Looper looper) { + super(looper); + } + + public d(Looper looper, Handler.Callback callback) { + super(looper, callback); + } +} diff --git a/app/src/main/java/b/i/a/f/h/h/a.java b/app/src/main/java/b/i/a/f/h/h/a.java new file mode 100644 index 0000000000..be37848893 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/h/a.java @@ -0,0 +1,66 @@ +package b.i.a.f.h.h; + +import android.os.Binder; +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import b.c.a.a0.d; +import b.i.c.o.b.g; +import b.i.c.o.b.k; +import com.google.android.gms.common.api.Status; +import com.google.firebase.dynamiclinks.PendingDynamicLinkData; +import com.google.firebase.dynamiclinks.internal.DynamicLinkData; +import com.google.firebase.dynamiclinks.internal.zzo; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public class a extends Binder implements IInterface { + public a(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + k kVar = (k) this; + if (i == 1) { + Status status = (Status) b.a(parcel, Status.CREATOR); + DynamicLinkData dynamicLinkData = (DynamicLinkData) b.a(parcel, DynamicLinkData.CREATOR); + g gVar = (g) kVar; + d.Y1(status, dynamicLinkData == null ? null : new PendingDynamicLinkData(dynamicLinkData), gVar.a); + if (dynamicLinkData != null) { + Bundle bundle = dynamicLinkData.n; + if (bundle == null) { + bundle = new Bundle(); + } + Bundle bundle2 = bundle.getBundle("scionData"); + if (!(bundle2 == null || bundle2.keySet() == null || gVar.f1744b == null)) { + for (String str : bundle2.keySet()) { + gVar.f1744b.a("fdl", str, bundle2.getBundle(str)); + } + } + } + return true; + } else if (i != 2) { + return false; + } else { + Status status2 = (Status) b.a(parcel, Status.CREATOR); + zzo zzo = (zzo) b.a(parcel, zzo.CREATOR); + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/h/b.java b/app/src/main/java/b/i/a/f/h/h/b.java new file mode 100644 index 0000000000..fce2cef457 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/h/b.java @@ -0,0 +1,19 @@ +package b.i.a.f.h.h; + +import android.os.Parcel; +import android.os.Parcelable; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public class b { + public static final /* synthetic */ int a = 0; + + static { + b.class.getClassLoader(); + } + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } +} diff --git a/app/src/main/java/b/i/a/f/h/i/a.java b/app/src/main/java/b/i/a/f/h/i/a.java new file mode 100644 index 0000000000..f5a61b91fa --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/a.java @@ -0,0 +1,25 @@ +package b.i.a.f.h.i; + +import java.io.OutputStream; +import java.util.Objects; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class a extends OutputStream { + @Override // java.lang.Object + public final String toString() { + return "ByteStreams.nullOutputStream()"; + } + + @Override // java.io.OutputStream + public final void write(int i) { + } + + @Override // java.io.OutputStream + public final void write(byte[] bArr) { + Objects.requireNonNull(bArr); + } + + @Override // java.io.OutputStream + public final void write(byte[] bArr, int i, int i2) { + Objects.requireNonNull(bArr); + } +} diff --git a/app/src/main/java/b/i/a/f/h/i/b.java b/app/src/main/java/b/i/a/f/h/i/b.java new file mode 100644 index 0000000000..26724ed51c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/b.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.i; + +import java.util.Queue; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class b { + public static final /* synthetic */ int a = 0; + + static { + new a(); + } + + public static byte[] a(Queue queue, int i) { + byte[] bArr = new byte[i]; + int i2 = i; + while (i2 > 0) { + byte[] remove = queue.remove(); + int min = Math.min(i2, remove.length); + System.arraycopy(remove, 0, bArr, i - i2, min); + i2 -= min; + } + return bArr; + } +} diff --git a/app/src/main/java/b/i/a/f/h/i/c.java b/app/src/main/java/b/i/a/f/h/i/c.java new file mode 100644 index 0000000000..9a33c50bb0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/c.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.i; + +import java.util.logging.Logger; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class c { + public static final Logger a = Logger.getLogger(c.class.getName()); +} diff --git a/app/src/main/java/b/i/a/f/h/i/d.java b/app/src/main/java/b/i/a/f/h/i/d.java new file mode 100644 index 0000000000..a9cd832c08 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/d.java @@ -0,0 +1,72 @@ +package b.i.a.f.h.i; + +import java.io.FilterInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class d extends FilterInputStream { + public long j; + public long k = -1; + + public d(InputStream inputStream) { + super(inputStream); + Objects.requireNonNull(inputStream); + this.j = 1048577; + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public final int available() throws IOException { + return (int) Math.min((long) ((FilterInputStream) this).in.available(), this.j); + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public final synchronized void mark(int i) { + ((FilterInputStream) this).in.mark(i); + this.k = this.j; + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public final int read() throws IOException { + if (this.j == 0) { + return -1; + } + int read = ((FilterInputStream) this).in.read(); + if (read != -1) { + this.j--; + } + return read; + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public final int read(byte[] bArr, int i, int i2) throws IOException { + long j = this.j; + if (j == 0) { + return -1; + } + int read = ((FilterInputStream) this).in.read(bArr, i, (int) Math.min((long) i2, j)); + if (read != -1) { + this.j -= (long) read; + } + return read; + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public final synchronized void reset() throws IOException { + if (!((FilterInputStream) this).in.markSupported()) { + throw new IOException("Mark not supported"); + } else if (this.k != -1) { + ((FilterInputStream) this).in.reset(); + this.j = this.k; + } else { + throw new IOException("Mark not set"); + } + } + + @Override // java.io.FilterInputStream, java.io.InputStream + public final long skip(long j) throws IOException { + long skip = ((FilterInputStream) this).in.skip(Math.min(j, this.j)); + this.j -= skip; + return skip; + } +} diff --git a/app/src/main/java/b/i/a/f/h/i/e.java b/app/src/main/java/b/i/a/f/h/i/e.java new file mode 100644 index 0000000000..78ee80147a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/e.java @@ -0,0 +1,50 @@ +package b.i.a.f.h.i; + +import java.io.PrintStream; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class e { + public static final g a; + + /* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ + public static final class a extends g { + @Override // b.i.a.f.h.i.g + public final void a(Throwable th, Throwable th2) { + } + } + + /* JADX WARNING: Removed duplicated region for block: B:19:0x0080 */ + /* JADX WARNING: Removed duplicated region for block: B:21:? A[RETURN, SYNTHETIC] */ + static { + g gVar; + Integer num = null; + try { + num = (Integer) Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null); + } catch (Exception e) { + System.err.println("Failed to retrieve value from android.os.Build$VERSION.SDK_INT due to the following exception."); + e.printStackTrace(System.err); + } catch (Throwable th) { + PrintStream printStream = System.err; + String name = a.class.getName(); + StringBuilder sb = new StringBuilder(name.length() + 133); + sb.append("An error has occurred when initializing the try-with-resources desuguring strategy. The default strategy "); + sb.append(name); + sb.append("will be used. The error is: "); + printStream.println(sb.toString()); + th.printStackTrace(System.err); + gVar = new a(); + } + if (num == null || num.intValue() < 19) { + gVar = Boolean.getBoolean("com.google.devtools.build.android.desugar.runtime.twr_disable_mimic") ^ true ? new h() : new a(); + a = gVar; + if (num == null) { + num.intValue(); + return; + } + return; + } + gVar = new j(); + a = gVar; + if (num == null) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/i/f.java b/app/src/main/java/b/i/a/f/h/i/f.java new file mode 100644 index 0000000000..03bc7d4af7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/f.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.i; + +import java.lang.ref.ReferenceQueue; +import java.util.List; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class f { + public final ConcurrentHashMap> a = new ConcurrentHashMap<>(16, 0.75f, 10); + + /* renamed from: b reason: collision with root package name */ + public final ReferenceQueue f1393b = new ReferenceQueue<>(); +} diff --git a/app/src/main/java/b/i/a/f/h/i/g.java b/app/src/main/java/b/i/a/f/h/i/g.java new file mode 100644 index 0000000000..61e9877c53 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/g.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.i; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public abstract class g { + public abstract void a(Throwable th, Throwable th2); +} diff --git a/app/src/main/java/b/i/a/f/h/i/h.java b/app/src/main/java/b/i/a/f/h/i/h.java new file mode 100644 index 0000000000..c3b6140704 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/h.java @@ -0,0 +1,29 @@ +package b.i.a.f.h.i; + +import java.lang.ref.Reference; +import java.util.List; +import java.util.Objects; +import java.util.Vector; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class h extends g { + public final f a = new f(); + + @Override // b.i.a.f.h.i.g + public final void a(Throwable th, Throwable th2) { + List putIfAbsent; + if (th2 != th) { + Objects.requireNonNull(th2, "The suppressed exception cannot be null."); + f fVar = this.a; + for (Reference poll = fVar.f1393b.poll(); poll != null; poll = fVar.f1393b.poll()) { + fVar.a.remove(poll); + } + List list = fVar.a.get(new i(th, null)); + if (list == null && (putIfAbsent = fVar.a.putIfAbsent(new i(th, fVar.f1393b), (list = new Vector<>(2)))) != null) { + list = putIfAbsent; + } + list.add(th2); + return; + } + throw new IllegalArgumentException("Self suppression is not allowed.", th2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/i/i.java b/app/src/main/java/b/i/a/f/h/i/i.java new file mode 100644 index 0000000000..e141556eb7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/i.java @@ -0,0 +1,34 @@ +package b.i.a.f.h.i; + +import java.lang.ref.ReferenceQueue; +import java.lang.ref.WeakReference; +import java.util.Objects; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class i extends WeakReference { + public final int a; + + public i(Throwable th, ReferenceQueue referenceQueue) { + super(th, referenceQueue); + Objects.requireNonNull(th, "The referent cannot be null"); + this.a = System.identityHashCode(th); + } + + @Override // java.lang.Object + public final boolean equals(Object obj) { + if (obj != null && obj.getClass() == i.class) { + if (this == obj) { + return true; + } + i iVar = (i) obj; + if (this.a == iVar.a && get() == iVar.get()) { + return true; + } + } + return false; + } + + @Override // java.lang.Object + public final int hashCode() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/f/h/i/j.java b/app/src/main/java/b/i/a/f/h/i/j.java new file mode 100644 index 0000000000..ad8ec2b9d7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/i/j.java @@ -0,0 +1,8 @@ +package b.i.a.f.h.i; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class j extends g { + @Override // b.i.a.f.h.i.g + public final void a(Throwable th, Throwable th2) { + th.addSuppressed(th2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/a.java b/app/src/main/java/b/i/a/f/h/j/a.java new file mode 100644 index 0000000000..04fc0ebf6d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/a.java @@ -0,0 +1,27 @@ +package b.i.a.f.h.j; + +import b.i.a.f.b.f; +import b.i.a.f.e.o.c; +import java.util.Objects; +public final class a extends e { + public final r l; + + public a(g gVar, i iVar) { + super(gVar); + this.l = new r(gVar, iVar); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + this.l.J(); + } + + public final void O() { + f.b(); + r rVar = this.l; + Objects.requireNonNull(rVar); + f.b(); + Objects.requireNonNull((c) rVar.j.d); + rVar.u = System.currentTimeMillis(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/a0.java b/app/src/main/java/b/i/a/f/h/j/a0.java new file mode 100644 index 0000000000..d42d472aca --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/a0.java @@ -0,0 +1,54 @@ +package b.i.a.f.h.j; + +import android.os.Handler; +import b.i.a.f.e.o.c; +import java.util.Objects; +public abstract class a0 { + public static volatile Handler a; + + /* renamed from: b reason: collision with root package name */ + public final g f1394b; + public final Runnable c = new b0(this); + public volatile long d; + + public a0(g gVar) { + Objects.requireNonNull(gVar, "null reference"); + this.f1394b = gVar; + } + + public final void a() { + this.d = 0; + b().removeCallbacks(this.c); + } + + public final Handler b() { + Handler handler; + if (a != null) { + return a; + } + synchronized (a0.class) { + if (a == null) { + a = new e1(this.f1394b.f1402b.getMainLooper()); + } + handler = a; + } + return handler; + } + + public abstract void c(); + + public final boolean d() { + return this.d != 0; + } + + public final void e(long j) { + a(); + if (j >= 0) { + Objects.requireNonNull((c) this.f1394b.d); + this.d = System.currentTimeMillis(); + if (!b().postDelayed(this.c, j)) { + this.f1394b.c().A("Failed to schedule delayed post. time", Long.valueOf(j)); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/a1.java b/app/src/main/java/b/i/a/f/h/j/a1.java new file mode 100644 index 0000000000..7dfd48ba78 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/a1.java @@ -0,0 +1,84 @@ +package b.i.a.f.h.j; + +import android.content.Context; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageManager; +import android.content.res.Resources; +import android.os.Bundle; +import java.util.Locale; +public final class a1 extends e { + public String l; + public String m; + public boolean n; + public int o; + public boolean p; + public boolean q; + + public a1(g gVar) { + super(gVar); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + ApplicationInfo applicationInfo; + int i; + Context context = this.j.f1402b; + i0 i0Var = null; + try { + applicationInfo = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128); + } catch (PackageManager.NameNotFoundException e) { + x("PackageManager doesn't know about the app package", e); + applicationInfo = null; + } + if (applicationInfo == null) { + D("Couldn't get ApplicationInfo to load global config"); + return; + } + Bundle bundle = applicationInfo.metaData; + if (bundle != null && (i = bundle.getInt("com.google.android.gms.analytics.globalConfigResource")) > 0) { + g0 g0Var = new g0(this.j); + try { + i0Var = g0Var.I(g0Var.j.c.getResources().getXml(i)); + } catch (Resources.NotFoundException e2) { + g0Var.x("inflate() called with unknown resourceId", e2); + } + if (i0Var != null) { + C("Loading global XML config values"); + String str = i0Var.a; + boolean z2 = false; + if (str != null) { + this.m = str; + d("XML config - app name", str); + } + String str2 = i0Var.f1405b; + if (str2 != null) { + this.l = str2; + d("XML config - app version", str2); + } + String str3 = i0Var.c; + if (str3 != null) { + String lowerCase = str3.toLowerCase(Locale.US); + int i2 = "verbose".equals(lowerCase) ? 0 : "info".equals(lowerCase) ? 1 : "warning".equals(lowerCase) ? 2 : "error".equals(lowerCase) ? 3 : -1; + if (i2 >= 0) { + b("XML config - log level", Integer.valueOf(i2)); + } + } + int i3 = i0Var.d; + if (i3 >= 0) { + this.o = i3; + this.n = true; + d("XML config - dispatch period (sec)", Integer.valueOf(i3)); + } + int i4 = i0Var.e; + if (i4 != -1) { + if (i4 == 1) { + z2 = true; + } + this.q = z2; + this.p = true; + d("XML config - dry run", Boolean.valueOf(z2)); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/b.java b/app/src/main/java/b/i/a/f/h/j/b.java new file mode 100644 index 0000000000..fbde9815dd --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/b.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.j; +public final class b implements Runnable { + public final /* synthetic */ a j; + + public b(a aVar, boolean z2) { + this.j = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.l.U(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/b0.java b/app/src/main/java/b/i/a/f/h/j/b0.java new file mode 100644 index 0000000000..dab216c168 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/b0.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.j; + +import android.os.Looper; +public final class b0 implements Runnable { + public final /* synthetic */ a0 j; + + public b0(a0 a0Var) { + this.j = a0Var; + } + + @Override // java.lang.Runnable + public final void run() { + if (Looper.myLooper() == Looper.getMainLooper()) { + this.j.f1394b.d().a(this); + return; + } + boolean d = this.j.d(); + this.j.d = 0; + if (d) { + this.j.c(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/b1.java b/app/src/main/java/b/i/a/f/h/j/b1.java new file mode 100644 index 0000000000..990419ee42 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/b1.java @@ -0,0 +1,51 @@ +package b.i.a.f.h.j; + +import android.annotation.TargetApi; +import android.app.job.JobInfo; +import android.app.job.JobScheduler; +import android.os.Build; +import android.os.UserHandle; +import android.util.Log; +import androidx.annotation.Nullable; +import java.lang.reflect.Method; +@TargetApi(24) +public final class b1 { + @Nullable + public static final Method a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public static final Method f1395b; + public static volatile d1 c = c1.a; + + /* JADX WARNING: Removed duplicated region for block: B:12:0x003b */ + static { + Method method; + Method method2 = null; + if (Build.VERSION.SDK_INT >= 24) { + try { + method = JobScheduler.class.getDeclaredMethod("scheduleAsPackage", JobInfo.class, String.class, Integer.TYPE, String.class); + } catch (NoSuchMethodException unused) { + if (Log.isLoggable("JobSchedulerCompat", 6)) { + Log.e("JobSchedulerCompat", "No scheduleAsPackage method available, falling back to schedule"); + } + } + a = method; + if (Build.VERSION.SDK_INT >= 24) { + try { + method2 = UserHandle.class.getDeclaredMethod("myUserId", null); + } catch (NoSuchMethodException unused2) { + if (Log.isLoggable("JobSchedulerCompat", 6)) { + Log.e("JobSchedulerCompat", "No myUserId method available"); + } + } + } + f1395b = method2; + } + method = null; + a = method; + if (Build.VERSION.SDK_INT >= 24) { + } + f1395b = method2; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/c.java b/app/src/main/java/b/i/a/f/h/j/c.java new file mode 100644 index 0000000000..1b4ab21510 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/c.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.j; +public final class c implements Runnable { + public final /* synthetic */ d0 j; + public final /* synthetic */ a k; + + public c(a aVar, d0 d0Var) { + this.k = aVar; + this.j = d0Var; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.l.R(this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/c0.java b/app/src/main/java/b/i/a/f/h/j/c0.java new file mode 100644 index 0000000000..ca0b8d985c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/c0.java @@ -0,0 +1,61 @@ +package b.i.a.f.h.j; + +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.app.job.JobScheduler; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.pm.ActivityInfo; +import android.content.pm.PackageManager; +import android.os.Build; +import androidx.core.app.NotificationCompat; +public final class c0 extends e { + public boolean l; + public boolean m; + public final AlarmManager n = ((AlarmManager) this.j.f1402b.getSystemService(NotificationCompat.CATEGORY_ALARM)); + public Integer o; + + public c0(g gVar) { + super(gVar); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + try { + O(); + if (z.b() > 0) { + Context context = this.j.f1402b; + ActivityInfo receiverInfo = context.getPackageManager().getReceiverInfo(new ComponentName(context, "com.google.android.gms.analytics.AnalyticsReceiver"), 0); + if (receiverInfo != null && receiverInfo.enabled) { + C("Receiver registered for local dispatch."); + this.l = true; + } + } + } catch (PackageManager.NameNotFoundException unused) { + } + } + + public final void O() { + this.m = false; + this.n.cancel(S()); + if (Build.VERSION.SDK_INT >= 24) { + int R = R(); + b("Cancelling job. JobID", Integer.valueOf(R)); + ((JobScheduler) this.j.f1402b.getSystemService("jobscheduler")).cancel(R); + } + } + + public final int R() { + if (this.o == null) { + String valueOf = String.valueOf(this.j.f1402b.getPackageName()); + this.o = Integer.valueOf((valueOf.length() != 0 ? "analytics".concat(valueOf) : new String("analytics")).hashCode()); + } + return this.o.intValue(); + } + + public final PendingIntent S() { + Context context = this.j.f1402b; + return PendingIntent.getBroadcast(context, 0, new Intent("com.google.android.gms.analytics.ANALYTICS_DISPATCH").setComponent(new ComponentName(context, "com.google.android.gms.analytics.AnalyticsReceiver")), 0); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/c1.java b/app/src/main/java/b/i/a/f/h/j/c1.java new file mode 100644 index 0000000000..de2b0c7f52 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/c1.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.j; +public final /* synthetic */ class c1 implements d1 { + public static final d1 a = new c1(); +} diff --git a/app/src/main/java/b/i/a/f/h/j/d.java b/app/src/main/java/b/i/a/f/h/j/d.java new file mode 100644 index 0000000000..6fd065771a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/d.java @@ -0,0 +1,165 @@ +package b.i.a.f.h.j; + +import android.text.TextUtils; +import android.util.Log; +import androidx.exifinterface.media.ExifInterface; +import b.i.a.f.b.f; +import java.util.Objects; +public class d { + public final g j; + + public d(g gVar) { + Objects.requireNonNull(gVar, "null reference"); + this.j = gVar; + } + + public static String c(Object obj) { + return obj == null ? "" : obj instanceof String ? (String) obj : obj instanceof Boolean ? obj == Boolean.TRUE ? "true" : "false" : obj instanceof Throwable ? ((Throwable) obj).toString() : obj.toString(); + } + + public static String e(String str, Object obj, Object obj2, Object obj3) { + String str2 = ""; + if (str == null) { + str = str2; + } + String c = c(obj); + String c2 = c(obj2); + String c3 = c(obj3); + StringBuilder sb = new StringBuilder(); + if (!TextUtils.isEmpty(str)) { + sb.append(str); + str2 = ": "; + } + String str3 = ", "; + if (!TextUtils.isEmpty(c)) { + sb.append(str2); + sb.append(c); + str2 = str3; + } + if (!TextUtils.isEmpty(c2)) { + sb.append(str2); + sb.append(c2); + } else { + str3 = str2; + } + if (!TextUtils.isEmpty(c3)) { + sb.append(str3); + sb.append(c3); + } + return sb.toString(); + } + + public final void A(String str, Object obj) { + a(6, str, obj, null, null); + } + + public final void C(String str) { + a(2, str, null, null, null); + } + + public final void D(String str) { + a(5, str, null, null, null); + } + + public final void H(String str) { + a(6, str, null, null, null); + } + + public final void a(int i, String str, Object obj, Object obj2, Object obj3) { + g gVar = this.j; + p0 p0Var = null; + m0 m0Var = gVar != null ? gVar.f : null; + if (m0Var != null) { + String str2 = e0.f1396b.a; + if (Log.isLoggable(str2, i)) { + Log.println(i, str2, e(str, obj, obj2, obj3)); + } + if (i >= 5) { + synchronized (m0Var) { + Objects.requireNonNull(str, "null reference"); + if (i < 0) { + i = 0; + } + if (i >= 9) { + i = 8; + } + char c = m0Var.j.e.a() ? 'C' : 'c'; + char charAt = "01VDIWEA?".charAt(i); + String str3 = f.a; + String e = e(str, m0.R(obj), m0.R(obj2), m0.R(obj3)); + StringBuilder sb = new StringBuilder(String.valueOf(str3).length() + 4 + String.valueOf(e).length()); + sb.append(ExifInterface.GPS_MEASUREMENT_3D); + sb.append(charAt); + sb.append(c); + sb.append(str3); + sb.append(":"); + sb.append(e); + String sb2 = sb.toString(); + if (sb2.length() > 1024) { + sb2 = sb2.substring(0, 1024); + } + g gVar2 = m0Var.j; + p0 p0Var2 = gVar2.k; + if (p0Var2 != null) { + if (p0Var2.I()) { + p0Var = gVar2.k; + } + } + if (p0Var != null) { + p0Var.o.a(sb2); + } + } + return; + } + return; + } + String str4 = e0.f1396b.a; + if (Log.isLoggable(str4, i)) { + Log.println(i, str4, e(str, obj, obj2, obj3)); + } + } + + public final void b(String str, Object obj) { + a(2, str, obj, null, null); + } + + public final void d(String str, Object obj) { + a(3, str, obj, null, null); + } + + public final void f(String str, Object obj, Object obj2) { + a(5, str, obj, obj2, null); + } + + public final m0 n() { + return this.j.c(); + } + + public final f q() { + return this.j.d(); + } + + public final a s() { + return this.j.e(); + } + + public final a1 t() { + g gVar = this.j; + g.a(gVar.j); + return gVar.j; + } + + public final p0 u() { + g gVar = this.j; + g.a(gVar.k); + return gVar.k; + } + + public final void x(String str, Object obj) { + a(5, str, obj, null, null); + } + + public final void y(String str, Object obj, Object obj2) { + a(6, str, obj, obj2, null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/d0.java b/app/src/main/java/b/i/a/f/h/j/d0.java new file mode 100644 index 0000000000..89feb03330 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/d0.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.j; +public interface d0 { + void a(Throwable th); +} diff --git a/app/src/main/java/b/i/a/f/h/j/d1.java b/app/src/main/java/b/i/a/f/h/j/d1.java new file mode 100644 index 0000000000..f792d8c09d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/d1.java @@ -0,0 +1,3 @@ +package b.i.a.f.h.j; +public interface d1 { +} diff --git a/app/src/main/java/b/i/a/f/h/j/e.java b/app/src/main/java/b/i/a/f/h/j/e.java new file mode 100644 index 0000000000..9d32eed7f8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/e.java @@ -0,0 +1,25 @@ +package b.i.a.f.h.j; +public abstract class e extends d { + public boolean k; + + public e(g gVar) { + super(gVar); + } + + public final boolean I() { + return this.k; + } + + public final void J() { + L(); + this.k = true; + } + + public abstract void L(); + + public final void N() { + if (!I()) { + throw new IllegalStateException("Not initialized"); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/e0.java b/app/src/main/java/b/i/a/f/h/j/e0.java new file mode 100644 index 0000000000..ce31fbc07e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/e0.java @@ -0,0 +1,64 @@ +package b.i.a.f.h.j; + +import b.i.a.f.e.i.d; +import com.discord.stores.StoreGuildScheduledEvents; +import java.util.Objects; +public final class e0 { + public static f0 A = f0.b("analytics.monitoring.sample_period_millis", 86400000, 86400000); + public static f0 B = f0.b("analytics.initialization_warning_threshold", 5000, 5000); + public static f0 C = f0.d("analytics.gcm_task_service", false, false); + public static f0 a = f0.d("analytics.service_client_enabled", true, true); + + /* renamed from: b reason: collision with root package name */ + public static f0 f1396b = f0.c("analytics.log_tag", "GAv4", "GAv4-SVC"); + public static f0 c = f0.b("analytics.local_dispatch_millis", StoreGuildScheduledEvents.FETCH_GUILD_EVENTS_THRESHOLD, 120000); + public static f0 d = f0.b("analytics.initial_local_dispatch_millis", 5000, 5000); + public static f0 e = f0.b("analytics.dispatch_alarm_millis", 7200000, 7200000); + public static f0 f = f0.b("analytics.max_dispatch_alarm_millis", 32400000, 32400000); + public static f0 g = f0.a("analytics.max_hits_per_dispatch", 20, 20); + public static f0 h = f0.a("analytics.max_hits_per_batch", 20, 20); + public static f0 i = f0.c("analytics.insecure_host", "http://www.google-analytics.com", "http://www.google-analytics.com"); + public static f0 j = f0.c("analytics.secure_host", "https://ssl.google-analytics.com", "https://ssl.google-analytics.com"); + public static f0 k = f0.c("analytics.simple_endpoint", "/collect", "/collect"); + public static f0 l = f0.c("analytics.batching_endpoint", "/batch", "/batch"); + public static f0 m = f0.a("analytics.max_get_length", 2036, 2036); + public static f0 n = f0.c("analytics.batching_strategy.k", "BATCH_BY_COUNT", "BATCH_BY_COUNT"); + public static f0 o = f0.c("analytics.compression_strategy.k", "GZIP", "GZIP"); + public static f0 p = f0.a("analytics.max_hit_length.k", 8192, 8192); + public static f0 q = f0.a("analytics.max_post_length.k", 8192, 8192); + public static f0 r = f0.a("analytics.max_batch_post_length", 8192, 8192); + + /* renamed from: s reason: collision with root package name */ + public static f0 f1397s = f0.c("analytics.fallback_responses.k", "404,502", "404,502"); + public static f0 t = f0.a("analytics.batch_retry_interval.seconds.k", 3600, 3600); + public static f0 u = f0.a("analytics.http_connection.connect_timeout_millis", 60000, 60000); + public static f0 v = f0.a("analytics.http_connection.read_timeout_millis", 61000, 61000); + public static f0 w = f0.d("analytics.test.disable_receiver", false, false); + + /* renamed from: x reason: collision with root package name */ + public static f0 f1398x = f0.b("analytics.service_client.idle_disconnect_millis", 10000, 10000); + + /* renamed from: y reason: collision with root package name */ + public static f0 f1399y = f0.b("analytics.service_client.connect_timeout_millis", 5000, 5000); + + /* renamed from: z reason: collision with root package name */ + public static f0 f1400z = f0.b("analytics.service_client.reconnect_throttle_millis", StoreGuildScheduledEvents.FETCH_GUILD_EVENTS_THRESHOLD, StoreGuildScheduledEvents.FETCH_GUILD_EVENTS_THRESHOLD); + + static { + f0.d("analytics.service_enabled", false, false); + f0.b("analytics.max_tokens", 60, 60); + Objects.requireNonNull(new d("analytics.tokens_per_sec", Float.valueOf(0.5f)), "null reference"); + f0.a("analytics.max_stored_hits", 2000, 20000); + f0.a("analytics.max_stored_hits_per_app", 2000, 2000); + f0.a("analytics.max_stored_properties_per_app", 100, 100); + f0.b("analytics.min_local_dispatch_millis", 120000, 120000); + f0.b("analytics.max_local_dispatch_millis", 7200000, 7200000); + f0.a("analytics.max_hits_per_request.k", 20, 20); + f0.b("analytics.service_monitor_interval", 86400000, 86400000); + f0.b("analytics.campaigns.time_limit", 86400000, 86400000); + f0.c("analytics.first_party_experiment_id", "", ""); + f0.a("analytics.first_party_experiment_variant", 0, 0); + f0.b("analytics.service_client.second_connect_delay_millis", 5000, 5000); + f0.b("analytics.service_client.unexpected_reconnect_millis", 60000, 60000); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/e1.java b/app/src/main/java/b/i/a/f/h/j/e1.java new file mode 100644 index 0000000000..d5cb451c94 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/e1.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.j; + +import android.os.Handler; +import android.os.Looper; +import android.os.Message; +public class e1 extends Handler { + public e1() { + } + + public e1(Looper looper) { + super(looper); + } + + @Override // android.os.Handler + public final void dispatchMessage(Message message) { + super.dispatchMessage(message); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/f.java b/app/src/main/java/b/i/a/f/h/j/f.java new file mode 100644 index 0000000000..a32847559a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/f.java @@ -0,0 +1,17 @@ +package b.i.a.f.h.j; + +import b.i.a.f.e.c; +public final class f { + public static final String a; + + static { + String replaceAll = String.valueOf(c.a / 1000).replaceAll("(\\d+)(\\d)(\\d\\d)", "$1.$2.$3"); + a = replaceAll; + String valueOf = String.valueOf(replaceAll); + if (valueOf.length() != 0) { + "ma".concat(valueOf); + } else { + new String("ma"); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/f0.java b/app/src/main/java/b/i/a/f/h/j/f0.java new file mode 100644 index 0000000000..4dde7c693e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/f0.java @@ -0,0 +1,30 @@ +package b.i.a.f.h.j; + +import b.i.a.f.e.i.a; +import b.i.a.f.e.i.b; +import b.i.a.f.e.i.c; +import b.i.a.f.e.i.e; +import b.i.a.f.e.i.f; +public final class f0 { + public final V a; + + public f0(a aVar, V v) { + this.a = v; + } + + public static f0 a(String str, int i, int i2) { + return new f0<>(new e(str, Integer.valueOf(i2)), Integer.valueOf(i)); + } + + public static f0 b(String str, long j, long j2) { + return new f0<>(new b(str, Long.valueOf(j2)), Long.valueOf(j)); + } + + public static f0 c(String str, String str2, String str3) { + return new f0<>(new f(str, str3), str2); + } + + public static f0 d(String str, boolean z2, boolean z3) { + return new f0<>(new c(str, Boolean.valueOf(z3)), Boolean.valueOf(z2)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/f1.java b/app/src/main/java/b/i/a/f/h/j/f1.java new file mode 100644 index 0000000000..5b18f0cbbb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/f1.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.j; + +import b.i.a.f.b.e; +import java.util.HashMap; +public final class f1 extends e { + public String a; + + /* renamed from: b reason: collision with root package name */ + public String f1401b; + public String c; + public String d; + + public final String toString() { + HashMap hashMap = new HashMap(); + hashMap.put("appName", this.a); + hashMap.put("appVersion", this.f1401b); + hashMap.put("appId", this.c); + hashMap.put("appInstallerId", this.d); + return e.a(hashMap, 0); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/g.java b/app/src/main/java/b/i/a/f/h/j/g.java new file mode 100644 index 0000000000..859c4d2650 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/g.java @@ -0,0 +1,133 @@ +package b.i.a.f.h.j; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.os.SystemClock; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.f.b.f; +import b.i.a.f.e.o.b; +import b.i.a.f.e.o.c; +import java.util.List; +import java.util.Objects; +@SuppressLint({"StaticFieldLeak"}) +public class g { + public static volatile g a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1402b; + public final Context c; + public final b d; + public final z e = new z(this); + public final m0 f; + public final f g; + public final a h; + public final c0 i; + public final a1 j; + public final p0 k; + + public g(i iVar) { + Context context = iVar.a; + d.z(context, "Application context can't be null"); + Context context2 = iVar.f1404b; + Objects.requireNonNull(context2, "null reference"); + this.f1402b = context; + this.c = context2; + c cVar = c.a; + this.d = cVar; + m0 m0Var = new m0(this); + m0Var.J(); + this.f = m0Var; + m0 c = c(); + String str = f.a; + c.a(4, a.j(a.b(str, 134), "Google Analytics ", str, " is starting up. To enable debug logging on a device run:\n adb shell setprop log.tag.GAv4 DEBUG\n adb logcat -s GAv4"), null, null, null); + p0 p0Var = new p0(this); + p0Var.J(); + this.k = p0Var; + a1 a1Var = new a1(this); + a1Var.J(); + this.j = a1Var; + a aVar = new a(this, iVar); + Objects.requireNonNull(cVar, "null reference"); + q qVar = new q(this); + if (f.a == null) { + synchronized (f.class) { + if (f.a == null) { + f.a = new f(context); + } + } + } + f fVar = f.a; + fVar.e = new h(this); + this.g = fVar; + b.i.a.f.b.b bVar = new b.i.a.f.b.b(this); + qVar.J(); + c0 c0Var = new c0(this); + c0Var.J(); + this.i = c0Var; + aVar.J(); + this.h = aVar; + g gVar = bVar.a; + a(gVar.j); + a1 a1Var2 = gVar.j; + a1Var2.N(); + a1Var2.N(); + if (a1Var2.p) { + a1Var2.N(); + } + a1Var2.N(); + r rVar = aVar.l; + rVar.N(); + d.G(!rVar.l, "Analytics backend already started"); + rVar.l = true; + rVar.q().a(new u(rVar)); + } + + public static void a(e eVar) { + d.z(eVar, "Analytics service not created/initialized"); + d.o(eVar.I(), "Analytics service not initialized"); + } + + public static g b(Context context) { + Objects.requireNonNull(context, "null reference"); + if (a == null) { + synchronized (g.class) { + if (a == null) { + long elapsedRealtime = SystemClock.elapsedRealtime(); + g gVar = new g(new i(context)); + a = gVar; + synchronized (b.i.a.f.b.b.class) { + List list = b.i.a.f.b.b.f1316b; + if (list != null) { + for (Runnable runnable : list) { + runnable.run(); + } + b.i.a.f.b.b.f1316b = null; + } + } + long elapsedRealtime2 = SystemClock.elapsedRealtime() - elapsedRealtime; + long longValue = e0.B.a.longValue(); + if (elapsedRealtime2 > longValue) { + gVar.c().f("Slow initialization (ms)", Long.valueOf(elapsedRealtime2), Long.valueOf(longValue)); + } + } + } + } + return a; + } + + public final m0 c() { + a(this.f); + return this.f; + } + + public final f d() { + Objects.requireNonNull(this.g, "null reference"); + return this.g; + } + + public final a e() { + a(this.h); + return this.h; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/g0.java b/app/src/main/java/b/i/a/f/h/j/g0.java new file mode 100644 index 0000000000..04d244b6c7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/g0.java @@ -0,0 +1,6 @@ +package b.i.a.f.h.j; +public final class g0 extends y { + public g0(g gVar) { + super(gVar, new h0(gVar)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/g1.java b/app/src/main/java/b/i/a/f/h/j/g1.java new file mode 100644 index 0000000000..7552c46e4b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/g1.java @@ -0,0 +1,3 @@ +package b.i.a.f.h.j; +public interface g1 { +} diff --git a/app/src/main/java/b/i/a/f/h/j/h.java b/app/src/main/java/b/i/a/f/h/j/h.java new file mode 100644 index 0000000000..3abe0fac39 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/h.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.j; + +import java.lang.Thread; +public final class h implements Thread.UncaughtExceptionHandler { + public final /* synthetic */ g a; + + public h(g gVar) { + this.a = gVar; + } + + @Override // java.lang.Thread.UncaughtExceptionHandler + public final void uncaughtException(Thread thread, Throwable th) { + m0 m0Var = this.a.f; + if (m0Var != null) { + m0Var.A("Job execution failed", th); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/h0.java b/app/src/main/java/b/i/a/f/h/j/h0.java new file mode 100644 index 0000000000..6a11ea20ec --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/h0.java @@ -0,0 +1,39 @@ +package b.i.a.f.h.j; +public final class h0 { + public final g a; + + /* renamed from: b reason: collision with root package name */ + public final i0 f1403b = new i0(); + + public h0(g gVar) { + this.a = gVar; + } + + public final void a(String str, boolean z2) { + if ("ga_dryRun".equals(str)) { + this.f1403b.e = z2 ? 1 : 0; + return; + } + this.a.c().x("Bool xml configuration name not recognized", str); + } + + public final void b(String str, int i) { + if ("ga_dispatchPeriod".equals(str)) { + this.f1403b.d = i; + } else { + this.a.c().x("Int xml configuration name not recognized", str); + } + } + + public final void c(String str, String str2) { + if ("ga_appName".equals(str)) { + this.f1403b.a = str2; + } else if ("ga_appVersion".equals(str)) { + this.f1403b.f1405b = str2; + } else if ("ga_logLevel".equals(str)) { + this.f1403b.c = str2; + } else { + this.a.c().x("String xml configuration name not recognized", str); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/i.java b/app/src/main/java/b/i/a/f/h/j/i.java new file mode 100644 index 0000000000..99ccbc071a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/i.java @@ -0,0 +1,17 @@ +package b.i.a.f.h.j; + +import android.content.Context; +import b.c.a.a0.d; +public final class i { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1404b; + + public i(Context context) { + Context applicationContext = context.getApplicationContext(); + d.z(applicationContext, "Application context can't be null"); + this.a = applicationContext; + this.f1404b = applicationContext; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/i0.java b/app/src/main/java/b/i/a/f/h/j/i0.java new file mode 100644 index 0000000000..652b5786d4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/i0.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.j; +public final class i0 { + public String a; + + /* renamed from: b reason: collision with root package name */ + public String f1405b; + public String c; + public int d = -1; + public int e = -1; +} diff --git a/app/src/main/java/b/i/a/f/h/j/j.java b/app/src/main/java/b/i/a/f/h/j/j.java new file mode 100644 index 0000000000..8d8fb482b7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/j.java @@ -0,0 +1,71 @@ +package b.i.a.f.h.j; + +import android.os.RemoteException; +import b.i.a.f.b.f; +import b.i.a.f.e.n.a; +import java.util.Collections; +import java.util.Objects; +public final class j extends e { + public final l l = new l(this); + public k0 m; + public final a0 n; + public final y0 o; + + public j(g gVar) { + super(gVar); + this.o = new y0(gVar.d); + this.n = new k(this, gVar); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + } + + public final void O() { + f.b(); + N(); + try { + a.b().c(this.j.f1402b, this.l); + } catch (IllegalArgumentException | IllegalStateException unused) { + } + if (this.m != null) { + this.m = null; + a s2 = s(); + s2.N(); + f.b(); + r rVar = s2.l; + f.b(); + rVar.N(); + rVar.C("Service disconnected"); + } + } + + public final boolean R() { + f.b(); + N(); + return this.m != null; + } + + public final boolean S(j0 j0Var) { + Objects.requireNonNull(j0Var, "null reference"); + f.b(); + N(); + k0 k0Var = this.m; + if (k0Var == null) { + return false; + } + try { + k0Var.j0(j0Var.a, j0Var.d, j0Var.f ? z.d() : z.e(), Collections.emptyList()); + T(); + return true; + } catch (RemoteException unused) { + C("Failed to send hits to AnalyticsService"); + return false; + } + } + + public final void T() { + this.o.a(); + this.n.e(e0.f1398x.a.longValue()); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/j0.java b/app/src/main/java/b/i/a/f/h/j/j0.java new file mode 100644 index 0000000000..974d3354c7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/j0.java @@ -0,0 +1,120 @@ +package b.i.a.f.h.j; + +import android.text.TextUtils; +import b.d.b.a.a; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +public final class j0 { + public final Map a; + + /* renamed from: b reason: collision with root package name */ + public final List f1406b = Collections.emptyList(); + public final long c; + public final long d; + public final int e; + public final boolean f; + public final String g; + + public j0(d dVar, Map map, long j, boolean z2, long j2, int i) { + String a; + String a2; + Objects.requireNonNull(map, "null reference"); + this.d = j; + this.f = z2; + this.c = j2; + this.e = i; + TextUtils.isEmpty(null); + this.g = null; + HashMap hashMap = new HashMap(); + Iterator> it = map.entrySet().iterator(); + while (true) { + boolean z3 = false; + if (!it.hasNext()) { + break; + } + Map.Entry next = it.next(); + String key = next.getKey(); + if ((key != null ? key.toString().startsWith("&") : z3) && (a2 = a(dVar, next.getKey())) != null) { + hashMap.put(a2, b(dVar, next.getValue())); + } + } + for (Map.Entry entry : map.entrySet()) { + String key2 = entry.getKey(); + if (!(key2 == null ? false : key2.toString().startsWith("&")) && (a = a(dVar, entry.getKey())) != null) { + hashMap.put(a, b(dVar, entry.getValue())); + } + } + if (!TextUtils.isEmpty(this.g)) { + String str = this.g; + if (str != null && !hashMap.containsKey("_v")) { + hashMap.put("_v", str); + } + if (this.g.equals("ma4.0.0") || this.g.equals("ma4.0.1")) { + hashMap.remove("adid"); + } + } + this.a = Collections.unmodifiableMap(hashMap); + } + + public static String a(d dVar, Object obj) { + if (obj == null) { + return null; + } + String obj2 = obj.toString(); + if (obj2.startsWith("&")) { + obj2 = obj2.substring(1); + } + int length = obj2.length(); + if (length > 256) { + obj2 = obj2.substring(0, 256); + dVar.f("Hit param name is too long and will be trimmed", Integer.valueOf(length), obj2); + } + if (TextUtils.isEmpty(obj2)) { + return null; + } + return obj2; + } + + public static String b(d dVar, Object obj) { + String obj2 = obj == null ? "" : obj.toString(); + int length = obj2.length(); + if (length <= 8192) { + return obj2; + } + String substring = obj2.substring(0, 8192); + dVar.f("Hit param value is too long and will be trimmed", Integer.valueOf(length), substring); + return substring; + } + + public final String toString() { + StringBuilder R = a.R("ht="); + R.append(this.d); + if (this.c != 0) { + R.append(", dbId="); + R.append(this.c); + } + if (this.e != 0) { + R.append(", appUID="); + R.append(this.e); + } + ArrayList arrayList = new ArrayList(this.a.keySet()); + Collections.sort(arrayList); + int size = arrayList.size(); + int i = 0; + while (i < size) { + Object obj = arrayList.get(i); + i++; + String str = (String) obj; + R.append(", "); + R.append(str); + R.append("="); + R.append(this.a.get(str)); + } + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/k.java b/app/src/main/java/b/i/a/f/h/j/k.java new file mode 100644 index 0000000000..48def599f2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/k.java @@ -0,0 +1,24 @@ +package b.i.a.f.h.j; + +import b.i.a.f.b.f; +import java.util.Objects; +public final class k extends a0 { + public final /* synthetic */ j e; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(j jVar, g gVar) { + super(gVar); + this.e = jVar; + } + + @Override // b.i.a.f.h.j.a0 + public final void c() { + j jVar = this.e; + Objects.requireNonNull(jVar); + f.b(); + if (jVar.R()) { + jVar.C("Inactivity, disconnecting from device AnalyticsService"); + jVar.O(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/k0.java b/app/src/main/java/b/i/a/f/h/j/k0.java new file mode 100644 index 0000000000..2792922eb9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/k0.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.j; + +import android.os.IInterface; +import android.os.RemoteException; +import java.util.List; +import java.util.Map; +public interface k0 extends IInterface { + void j0(Map map, long j, String str, List list) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/j/l.java b/app/src/main/java/b/i/a/f/h/j/l.java new file mode 100644 index 0000000000..7c912b1e89 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/l.java @@ -0,0 +1,66 @@ +package b.i.a.f.h.j; + +import android.content.ComponentName; +import android.content.ServiceConnection; +import android.os.IBinder; +import android.os.IInterface; +import android.os.RemoteException; +import b.c.a.a0.d; +import b.i.a.f.e.n.a; +public final class l implements ServiceConnection { + public volatile k0 j; + public volatile boolean k; + public final /* synthetic */ j l; + + public l(j jVar) { + this.l = jVar; + } + + @Override // android.content.ServiceConnection + public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { + d.u("AnalyticsServiceConnection.onServiceConnected"); + synchronized (this) { + if (iBinder == null) { + try { + this.l.H("Service connected with null binder"); + } finally { + notifyAll(); + } + } else { + k0 k0Var = null; + try { + String interfaceDescriptor = iBinder.getInterfaceDescriptor(); + if ("com.google.android.gms.analytics.internal.IAnalyticsService".equals(interfaceDescriptor)) { + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.analytics.internal.IAnalyticsService"); + k0Var = queryLocalInterface instanceof k0 ? (k0) queryLocalInterface : new l0(iBinder); + this.l.C("Bound to IAnalyticsService interface"); + } else { + this.l.A("Got binder with a wrong descriptor", interfaceDescriptor); + } + } catch (RemoteException unused) { + this.l.H("Service connect failed to get IAnalyticsService"); + } + if (k0Var == null) { + try { + a b2 = a.b(); + j jVar = this.l; + b2.c(jVar.j.f1402b, jVar.l); + } catch (IllegalArgumentException unused2) { + } + } else if (!this.k) { + this.l.D("onServiceConnected received after the timeout limit"); + this.l.q().a(new m(this, k0Var)); + } else { + this.j = k0Var; + } + notifyAll(); + } + } + } + + @Override // android.content.ServiceConnection + public final void onServiceDisconnected(ComponentName componentName) { + d.u("AnalyticsServiceConnection.onServiceDisconnected"); + this.l.q().a(new n(this, componentName)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/l0.java b/app/src/main/java/b/i/a/f/h/j/l0.java new file mode 100644 index 0000000000..b4525d40b9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/l0.java @@ -0,0 +1,41 @@ +package b.i.a.f.h.j; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import java.util.List; +import java.util.Map; +public final class l0 implements k0, IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1407b = "com.google.android.gms.analytics.internal.IAnalyticsService"; + + public l0(IBinder iBinder) { + this.a = iBinder; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + @Override // b.i.a.f.h.j.k0 + public final void j0(Map map, long j, String str, List list) throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1407b); + obtain.writeMap(map); + obtain.writeLong(j); + obtain.writeString(str); + obtain.writeTypedList(list); + Parcel obtain2 = Parcel.obtain(); + try { + this.a.transact(1, obtain, obtain2, 0); + obtain2.readException(); + } finally { + obtain.recycle(); + obtain2.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/m.java b/app/src/main/java/b/i/a/f/h/j/m.java new file mode 100644 index 0000000000..e6cbe740a8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/m.java @@ -0,0 +1,30 @@ +package b.i.a.f.h.j; + +import b.i.a.f.b.f; +import java.util.Objects; +public final class m implements Runnable { + public final /* synthetic */ k0 j; + public final /* synthetic */ l k; + + public m(l lVar, k0 k0Var) { + this.k = lVar; + this.j = k0Var; + } + + @Override // java.lang.Runnable + public final void run() { + if (!this.k.l.R()) { + this.k.l.a(3, "Connected to service after a timeout", null, null, null); + j jVar = this.k.l; + k0 k0Var = this.j; + Objects.requireNonNull(jVar); + f.b(); + jVar.m = k0Var; + jVar.T(); + a s2 = jVar.s(); + Objects.requireNonNull(s2); + f.b(); + s2.l.O(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/m0.java b/app/src/main/java/b/i/a/f/h/j/m0.java new file mode 100644 index 0000000000..efb02f9c95 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/m0.java @@ -0,0 +1,48 @@ +package b.i.a.f.h.j; + +import b.d.b.a.a; +public class m0 extends e { + public static m0 l; + + public m0(g gVar) { + super(gVar); + } + + public static String R(Object obj) { + if (obj == null) { + return null; + } + if (obj instanceof Integer) { + obj = Long.valueOf((long) ((Integer) obj).intValue()); + } + String str = "-"; + if (!(obj instanceof Long)) { + return obj instanceof Boolean ? String.valueOf(obj) : obj instanceof Throwable ? obj.getClass().getCanonicalName() : str; + } + Long l2 = (Long) obj; + if (Math.abs(l2.longValue()) < 100) { + return String.valueOf(obj); + } + if (String.valueOf(obj).charAt(0) != '-') { + str = ""; + } + String valueOf = String.valueOf(Math.abs(l2.longValue())); + StringBuilder R = a.R(str); + R.append(Math.round(Math.pow(10.0d, (double) (valueOf.length() - 1)))); + R.append("..."); + R.append(str); + R.append(Math.round(Math.pow(10.0d, (double) valueOf.length()) - 1.0d)); + return R.toString(); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + synchronized (m0.class) { + l = this; + } + } + + public final void O(j0 j0Var, String str) { + x(str.length() != 0 ? "Discarding hit. ".concat(str) : new String("Discarding hit. "), j0Var.toString()); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/n.java b/app/src/main/java/b/i/a/f/h/j/n.java new file mode 100644 index 0000000000..d997f207fa --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/n.java @@ -0,0 +1,33 @@ +package b.i.a.f.h.j; + +import android.content.ComponentName; +import b.i.a.f.b.f; +import java.util.Objects; +public final class n implements Runnable { + public final /* synthetic */ ComponentName j; + public final /* synthetic */ l k; + + public n(l lVar, ComponentName componentName) { + this.k = lVar; + this.j = componentName; + } + + @Override // java.lang.Runnable + public final void run() { + j jVar = this.k.l; + ComponentName componentName = this.j; + Objects.requireNonNull(jVar); + f.b(); + if (jVar.m != null) { + jVar.m = null; + jVar.b("Disconnected from device AnalyticsService", componentName); + a s2 = jVar.s(); + s2.N(); + f.b(); + r rVar = s2.l; + f.b(); + rVar.N(); + rVar.C("Service disconnected"); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/n0.java b/app/src/main/java/b/i/a/f/h/j/n0.java new file mode 100644 index 0000000000..0427c74889 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/n0.java @@ -0,0 +1,75 @@ +package b.i.a.f.h.j; + +import android.content.BroadcastReceiver; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import java.util.Objects; +public class n0 extends BroadcastReceiver { + public static final String a = n0.class.getName(); + + /* renamed from: b reason: collision with root package name */ + public final g f1408b; + public boolean c; + public boolean d; + + public n0(g gVar) { + Objects.requireNonNull(gVar, "null reference"); + this.f1408b = gVar; + } + + public final void a() { + if (this.c) { + this.f1408b.c().C("Unregistering connectivity change receiver"); + this.c = false; + this.d = false; + try { + this.f1408b.f1402b.unregisterReceiver(this); + } catch (IllegalArgumentException e) { + this.f1408b.c().A("Failed to unregister the network broadcast receiver", e); + } + } + } + + public final boolean b() { + try { + NetworkInfo activeNetworkInfo = ((ConnectivityManager) this.f1408b.f1402b.getSystemService("connectivity")).getActiveNetworkInfo(); + return activeNetworkInfo != null && activeNetworkInfo.isConnected(); + } catch (SecurityException unused) { + } + } + + @Override // android.content.BroadcastReceiver + public void onReceive(Context context, Intent intent) { + this.f1408b.c(); + this.f1408b.e(); + String action = intent.getAction(); + this.f1408b.c().b("NetworkBroadcastReceiver received action", action); + if ("android.net.conn.CONNECTIVITY_CHANGE".equals(action)) { + boolean b2 = b(); + if (this.d != b2) { + this.d = b2; + a e = this.f1408b.e(); + e.b("Network connectivity status changed", Boolean.valueOf(b2)); + e.q().a(new b(e, b2)); + } + } else if (!"com.google.analytics.RADIO_POWERED".equals(action)) { + this.f1408b.c().x("NetworkBroadcastReceiver received unknown action", action); + } else if (!intent.hasExtra(a)) { + a e2 = this.f1408b.e(); + e2.C("Radio powered up"); + e2.N(); + Context context2 = e2.j.f1402b; + if (!s0.a(context2) || !t0.c(context2)) { + e2.N(); + e2.q().a(new c(e2, null)); + return; + } + Intent intent2 = new Intent("com.google.android.gms.analytics.ANALYTICS_DISPATCH"); + intent2.setComponent(new ComponentName(context2, "com.google.android.gms.analytics.AnalyticsService")); + context2.startService(intent2); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/o.java b/app/src/main/java/b/i/a/f/h/j/o.java new file mode 100644 index 0000000000..e23007bacc --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/o.java @@ -0,0 +1,225 @@ +package b.i.a.f.h.j; + +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.text.TextUtils; +import b.c.a.a0.d; +import b.i.a.f.b.f; +import b.i.a.f.e.o.c; +import b.i.a.f.e.o.e; +import com.adjust.sdk.Constants; +import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemGuildWelcomeKt; +import java.io.Closeable; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +public final class o extends e implements Closeable { + public static final String l = String.format("CREATE TABLE IF NOT EXISTS %s ( '%s' INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, '%s' INTEGER NOT NULL, '%s' TEXT NOT NULL, '%s' TEXT NOT NULL, '%s' INTEGER);", "hits2", "hit_id", "hit_time", "hit_url", "hit_string", "hit_app_id"); + public static final String m = String.format("SELECT MAX(%s) FROM %s WHERE 1;", "hit_time", "hits2"); + public final p n; + public final y0 o = new y0(this.j.d); + public final y0 p = new y0(this.j.d); + + public o(g gVar) { + super(gVar); + this.n = new p(this, gVar.f1402b, "google_analytics_v4.db"); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + } + + public final SQLiteDatabase O() { + try { + return this.n.getWritableDatabase(); + } catch (SQLiteException e) { + x("Error opening database", e); + throw e; + } + } + + public final boolean R() { + f.b(); + N(); + Cursor cursor = null; + try { + Cursor rawQuery = O().rawQuery("SELECT COUNT(*) FROM hits2", null); + if (rawQuery.moveToFirst()) { + long j = rawQuery.getLong(0); + rawQuery.close(); + return j == 0; + } + throw new SQLiteException("Database returned empty set"); + } catch (SQLiteException e) { + y("Database error", "SELECT COUNT(*) FROM hits2", e); + throw e; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + public final void S(List list) { + f.b(); + N(); + if (!list.isEmpty()) { + StringBuilder sb = new StringBuilder("hit_id"); + sb.append(" in ("); + for (int i = 0; i < list.size(); i++) { + Long l2 = list.get(i); + if (l2 == null || l2.longValue() == 0) { + throw new SQLiteException("Invalid hit id"); + } + if (i > 0) { + sb.append(","); + } + sb.append(l2); + } + sb.append(")"); + String sb2 = sb.toString(); + try { + SQLiteDatabase O = O(); + b("Deleting dispatched hits. count", Integer.valueOf(list.size())); + int delete = O.delete("hits2", sb2, null); + if (delete != list.size()) { + a(5, "Deleted fewer hits then expected", Integer.valueOf(list.size()), Integer.valueOf(delete), sb2); + } + } catch (SQLiteException e) { + A("Error deleting hits", e); + throw e; + } + } + } + + public final List T(long j) { + boolean z2; + d.l(j >= 0); + f.b(); + N(); + Cursor cursor = null; + try { + Cursor query = O().query("hits2", new String[]{"hit_id", "hit_time", "hit_string", "hit_url", "hit_app_id"}, null, null, null, null, String.format("%s ASC", "hit_id"), Long.toString(j)); + ArrayList arrayList = new ArrayList(); + if (query.moveToFirst()) { + do { + long j2 = query.getLong(0); + long j3 = query.getLong(1); + String string = query.getString(2); + String string2 = query.getString(3); + int i = query.getInt(4); + Map X = X(string); + if (!TextUtils.isEmpty(string2)) { + if (string2.startsWith("http:")) { + z2 = false; + arrayList.add(new j0(this, X, j3, z2, j2, i)); + } + } + z2 = true; + arrayList.add(new j0(this, X, j3, z2, j2, i)); + } while (query.moveToNext()); + } + query.close(); + return arrayList; + } catch (SQLiteException e) { + A("Error loading hits from the database", e); + throw e; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + public final int U() { + f.b(); + N(); + if (!this.o.b(86400000)) { + return 0; + } + this.o.a(); + C("Deleting stale hits (if any)"); + SQLiteDatabase O = O(); + Objects.requireNonNull((c) this.j.d); + int delete = O.delete("hits2", "hit_time < ?", new String[]{Long.toString(System.currentTimeMillis() - WidgetChatListAdapterItemGuildWelcomeKt.OLD_GUILD_AGE_THRESHOLD)}); + b("Deleted stale hits, count", Integer.valueOf(delete)); + return delete; + } + + public final long V() { + f.b(); + N(); + String str = m; + Cursor cursor = null; + try { + Cursor rawQuery = O().rawQuery(str, null); + if (rawQuery.moveToFirst()) { + long j = rawQuery.getLong(0); + rawQuery.close(); + return j; + } + rawQuery.close(); + return 0; + } catch (SQLiteException e) { + y("Database error", str, e); + throw e; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + public final void W(long j) { + f.b(); + N(); + ArrayList arrayList = new ArrayList(1); + arrayList.add(Long.valueOf(j)); + b("Deleting hit, id", Long.valueOf(j)); + S(arrayList); + } + + public final Map X(String str) { + if (TextUtils.isEmpty(str)) { + return new HashMap(0); + } + try { + if (!str.startsWith("?")) { + str = str.length() != 0 ? "?".concat(str) : new String("?"); + } + return e.a(new URI(str), Constants.ENCODING); + } catch (URISyntaxException e) { + A("Error parsing hit parameters", e); + return new HashMap(0); + } + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public final void close() { + try { + this.n.close(); + } catch (SQLiteException e) { + A("Sql error closing database", e); + } catch (IllegalStateException e2) { + A("Error closing database", e2); + } + } + + public final void endTransaction() { + N(); + O().endTransaction(); + } + + public final void setTransactionSuccessful() { + N(); + O().setTransactionSuccessful(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/o0.java b/app/src/main/java/b/i/a/f/h/j/o0.java new file mode 100644 index 0000000000..3eae0ad228 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/o0.java @@ -0,0 +1,635 @@ +package b.i.a.f.h.j; + +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.os.Build; +import android.text.TextUtils; +import android.util.Log; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.f.b.f; +import b.i.a.f.e.o.c; +import com.adjust.sdk.Constants; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.UnsupportedEncodingException; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.net.URLConnection; +import java.net.URLEncoder; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.zip.GZIPOutputStream; +public final class o0 extends e { + public static final byte[] l = "\n".getBytes(); + public final String m; + public final y0 n; + + public o0(g gVar) { + super(gVar); + String str; + String str2 = f.a; + String str3 = Build.VERSION.RELEASE; + Locale locale = Locale.getDefault(); + if (locale != null) { + String language = locale.getLanguage(); + if (!TextUtils.isEmpty(language)) { + StringBuilder sb = new StringBuilder(); + sb.append(language.toLowerCase(locale)); + if (!TextUtils.isEmpty(locale.getCountry())) { + sb.append("-"); + sb.append(locale.getCountry().toLowerCase(locale)); + } + str = sb.toString(); + this.m = String.format("%s/%s (Linux; U; Android %s; %s; %s Build/%s)", "GoogleAnalytics", str2, str3, str, Build.MODEL, Build.ID); + this.n = new y0(gVar.d); + } + } + str = null; + this.m = String.format("%s/%s (Linux; U; Android %s; %s; %s Build/%s)", "GoogleAnalytics", str2, str3, str, Build.MODEL, Build.ID); + this.n = new y0(gVar.d); + } + + public static void S(StringBuilder sb, String str, String str2) throws UnsupportedEncodingException { + if (sb.length() != 0) { + sb.append('&'); + } + sb.append(URLEncoder.encode(str, Constants.ENCODING)); + sb.append('='); + sb.append(URLEncoder.encode(str2, Constants.ENCODING)); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + b("Network initialized. User agent", this.m); + } + + /* JADX WARNING: Removed duplicated region for block: B:27:0x0080 A[SYNTHETIC, Splitter:B:27:0x0080] */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x008a */ + /* JADX WARNING: Removed duplicated region for block: B:36:0x0095 A[SYNTHETIC, Splitter:B:36:0x0095] */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x009f */ + /* JADX WARNING: Removed duplicated region for block: B:44:? A[RETURN, SYNTHETIC] */ + public final int O(URL url, byte[] bArr) { + HttpURLConnection httpURLConnection; + Throwable th; + IOException e; + HttpURLConnection httpURLConnection2; + Objects.requireNonNull(bArr, "null reference"); + a(3, "POST bytes, url", Integer.valueOf(bArr.length), url, null); + if (Log.isLoggable(e0.f1396b.a, 2)) { + b("Post payload\n", new String(bArr)); + } + OutputStream outputStream = null; + try { + this.j.f1402b.getPackageName(); + httpURLConnection2 = U(url); + try { + httpURLConnection2.setDoOutput(true); + httpURLConnection2.setFixedLengthStreamingMode(bArr.length); + httpURLConnection2.connect(); + OutputStream outputStream2 = httpURLConnection2.getOutputStream(); + outputStream2.write(bArr); + T(httpURLConnection2); + int responseCode = httpURLConnection2.getResponseCode(); + if (responseCode == 200) { + s().O(); + } + d("POST status", Integer.valueOf(responseCode)); + try { + outputStream2.close(); + } catch (IOException e2) { + A("Error closing http post connection output stream", e2); + } + httpURLConnection2.disconnect(); + return responseCode; + } catch (IOException e3) { + e = e3; + try { + x("Network POST connection error", e); + if (0 != 0) { + try { + outputStream.close(); + } catch (IOException e4) { + A("Error closing http post connection output stream", e4); + } + } + if (httpURLConnection2 != null) { + return 0; + } + httpURLConnection2.disconnect(); + return 0; + } catch (Throwable th2) { + httpURLConnection = httpURLConnection2; + th = th2; + if (0 != 0) { + } + if (httpURLConnection != null) { + } + throw th; + } + } + } catch (IOException e5) { + e = e5; + httpURLConnection2 = null; + x("Network POST connection error", e); + if (0 != 0) { + } + if (httpURLConnection2 != null) { + } + } catch (Throwable th3) { + th = th3; + httpURLConnection = null; + if (0 != 0) { + try { + outputStream.close(); + } catch (IOException e6) { + A("Error closing http post connection output stream", e6); + } + } + if (httpURLConnection != null) { + httpURLConnection.disconnect(); + } + throw th; + } + } + + public final String R(j0 j0Var, boolean z2) { + long j; + StringBuilder sb = new StringBuilder(); + try { + for (Map.Entry entry : j0Var.a.entrySet()) { + String key = entry.getKey(); + if (!"ht".equals(key) && !"qt".equals(key) && !"AppUID".equals(key) && !"z".equals(key) && !"_gmsv".equals(key)) { + S(sb, key, entry.getValue()); + } + } + S(sb, "ht", String.valueOf(j0Var.d)); + Objects.requireNonNull((c) this.j.d); + S(sb, "qt", String.valueOf(System.currentTimeMillis() - j0Var.d)); + if (z2) { + d.w("_s"); + d.o(true, "Short param name required"); + String str = j0Var.a.get("_s"); + if (str == null) { + str = "0"; + } + try { + j = Long.parseLong(str); + } catch (NumberFormatException unused) { + j = 0; + } + S(sb, "z", j != 0 ? String.valueOf(j) : String.valueOf(j0Var.c)); + } + return sb.toString(); + } catch (UnsupportedEncodingException e) { + A("Failed to encode name or value", e); + return null; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x001f A[SYNTHETIC, Splitter:B:18:0x001f] */ + public final void T(HttpURLConnection httpURLConnection) throws IOException { + InputStream inputStream; + Throwable th; + try { + inputStream = httpURLConnection.getInputStream(); + try { + do { + } while (inputStream.read(new byte[1024]) > 0); + try { + inputStream.close(); + } catch (IOException e) { + A("Error closing http connection input stream", e); + } + } catch (Throwable th2) { + th = th2; + if (inputStream != null) { + try { + inputStream.close(); + } catch (IOException e2) { + A("Error closing http connection input stream", e2); + } + } + throw th; + } + } catch (Throwable th3) { + th = th3; + inputStream = null; + if (inputStream != null) { + } + throw th; + } + } + + public final HttpURLConnection U(URL url) throws IOException { + URLConnection openConnection = url.openConnection(); + if (openConnection instanceof HttpURLConnection) { + HttpURLConnection httpURLConnection = (HttpURLConnection) openConnection; + httpURLConnection.setDefaultUseCaches(false); + httpURLConnection.setConnectTimeout(e0.u.a.intValue()); + httpURLConnection.setReadTimeout(e0.v.a.intValue()); + httpURLConnection.setInstanceFollowRedirects(false); + httpURLConnection.setRequestProperty("User-Agent", this.m); + httpURLConnection.setDoInput(true); + return httpURLConnection; + } + throw new IOException("Failed to obtain http connection"); + } + + /* JADX WARNING: Code restructure failed: missing block: B:175:0x038e, code lost: + if (r0 != 200) goto L_0x0426; + */ + /* JADX WARNING: Code restructure failed: missing block: B:204:0x0422, code lost: + if (O(r5, r4) == 200) goto L_0x0424; + */ + /* JADX WARNING: Removed duplicated region for block: B:112:0x0263 A[SYNTHETIC, Splitter:B:112:0x0263] */ + /* JADX WARNING: Removed duplicated region for block: B:117:0x026e */ + /* JADX WARNING: Removed duplicated region for block: B:120:0x0276 A[SYNTHETIC, Splitter:B:120:0x0276] */ + /* JADX WARNING: Removed duplicated region for block: B:125:0x0281 */ + /* JADX WARNING: Removed duplicated region for block: B:129:0x028f */ + /* JADX WARNING: Removed duplicated region for block: B:131:0x0299 */ + /* JADX WARNING: Removed duplicated region for block: B:136:0x02c3 */ + /* JADX WARNING: Removed duplicated region for block: B:173:0x038a */ + /* JADX WARNING: Removed duplicated region for block: B:178:0x0395 */ + /* JADX WARNING: Removed duplicated region for block: B:202:0x0418 */ + /* JADX WARNING: Removed duplicated region for block: B:203:0x041e */ + /* JADX WARNING: Removed duplicated region for block: B:208:0x0429 */ + /* JADX WARNING: Removed duplicated region for block: B:211:0x014f A[EDGE_INSN: B:211:0x014f->B:61:0x014f ?: BREAK , SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:213:0x043c A[EDGE_INSN: B:213:0x043c->B:210:0x043c ?: BREAK , SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:33:0x0099 */ + /* JADX WARNING: Removed duplicated region for block: B:60:0x0144 A[LOOP:0: B:34:0x00c6->B:60:0x0144, LOOP_END] */ + public final List V(List list) { + boolean z2; + boolean z3; + boolean z4; + String str; + URL url; + String str2; + String str3; + URL url2; + HttpURLConnection httpURLConnection; + Throwable th; + int i; + HttpURLConnection httpURLConnection2; + Object e; + URL url3; + OutputStream outputStream; + HttpURLConnection httpURLConnection3; + Throwable th2; + HttpURLConnection httpURLConnection4; + Object e2; + boolean z5; + x xVar = x.GZIP; + w wVar = w.NONE; + f.b(); + N(); + int i2 = 0; + if (this.j.e.g().isEmpty() || !this.n.b(((long) e0.t.a.intValue()) * 1000)) { + z3 = false; + } else { + String str4 = e0.n.a; + z3 = ("BATCH_BY_SESSION".equalsIgnoreCase(str4) ? w.BATCH_BY_SESSION : "BATCH_BY_TIME".equalsIgnoreCase(str4) ? w.BATCH_BY_TIME : "BATCH_BY_BRUTE_FORCE".equalsIgnoreCase(str4) ? w.BATCH_BY_BRUTE_FORCE : "BATCH_BY_COUNT".equalsIgnoreCase(str4) ? w.BATCH_BY_COUNT : "BATCH_BY_SIZE".equalsIgnoreCase(str4) ? w.BATCH_BY_SIZE : wVar) != wVar; + if (("GZIP".equalsIgnoreCase(e0.o.a) ? xVar : x.NONE) == xVar) { + z2 = true; + if (!z3) { + d.l(!list.isEmpty()); + a(2, "Uploading batched hits. compression, count", Boolean.valueOf(z2), Integer.valueOf(list.size()), null); + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + ArrayList arrayList = new ArrayList(); + int i3 = 0; + for (j0 j0Var : list) { + Objects.requireNonNull(j0Var, "null reference"); + int i4 = i3 + 1; + if (i4 <= e0.h.a.intValue()) { + String R = R(j0Var, false); + if (R == null) { + n().O(j0Var, "Error formatting hit"); + } else { + byte[] bytes = R.getBytes(); + int length = bytes.length; + if (length > e0.p.a.intValue()) { + n().O(j0Var, "Hit size exceeds the maximum size limit"); + } else { + if (byteArrayOutputStream.size() > 0) { + length++; + } + if (byteArrayOutputStream.size() + length <= e0.r.a.intValue()) { + try { + if (byteArrayOutputStream.size() > 0) { + byteArrayOutputStream.write(l); + } + byteArrayOutputStream.write(bytes); + i3 = i4; + } catch (IOException e3) { + A("Failed to write payload when batching hits", e3); + } + } + } + } + z5 = true; + if (z5) { + break; + } + arrayList.add(Long.valueOf(j0Var.c)); + } + z5 = false; + if (z5) { + } + } + if (i3 == 0) { + return arrayList; + } + String valueOf = String.valueOf(z.d()); + String valueOf2 = String.valueOf(e0.l.a); + try { + url3 = new URL(valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf)); + } catch (MalformedURLException e4) { + A("Error trying to parse the hardcoded host url", e4); + url3 = null; + } + if (url3 == null) { + H("Failed to build batching endpoint url"); + } else { + if (z2) { + byte[] byteArray = byteArrayOutputStream.toByteArray(); + Objects.requireNonNull(byteArray, "null reference"); + try { + this.j.f1402b.getPackageName(); + ByteArrayOutputStream byteArrayOutputStream2 = new ByteArrayOutputStream(); + GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(byteArrayOutputStream2); + gZIPOutputStream.write(byteArray); + gZIPOutputStream.close(); + byteArrayOutputStream2.close(); + byte[] byteArray2 = byteArrayOutputStream2.toByteArray(); + a(3, "POST compressed size, ratio %, url", Integer.valueOf(byteArray2.length), Long.valueOf((((long) byteArray2.length) * 100) / ((long) byteArray.length)), url3); + if (byteArray2.length > byteArray.length) { + f("Compressed payload is larger then uncompressed. compressed, uncompressed", Integer.valueOf(byteArray2.length), Integer.valueOf(byteArray.length)); + } + if (Log.isLoggable(e0.f1396b.a, 2)) { + String str5 = new String(byteArray); + b("Post payload", str5.length() != 0 ? "\n".concat(str5) : new String("\n")); + } + httpURLConnection3 = U(url3); + try { + httpURLConnection3.setDoOutput(true); + httpURLConnection3.addRequestProperty("Content-Encoding", "gzip"); + httpURLConnection3.setFixedLengthStreamingMode(byteArray2.length); + httpURLConnection3.connect(); + outputStream = httpURLConnection3.getOutputStream(); + } catch (IOException e5) { + e2 = e5; + outputStream = null; + try { + x("Network compressed POST connection error", e2); + if (outputStream != null) { + } + if (httpURLConnection3 != null) { + } + if (200 != i2) { + } + } catch (Throwable th3) { + th2 = th3; + httpURLConnection4 = httpURLConnection3; + if (outputStream != null) { + } + if (httpURLConnection4 != null) { + } + throw th2; + } + } catch (Throwable th4) { + th2 = th4; + outputStream = null; + httpURLConnection4 = httpURLConnection3; + if (outputStream != null) { + } + if (httpURLConnection4 != null) { + } + throw th2; + } + try { + outputStream.write(byteArray2); + outputStream.close(); + T(httpURLConnection3); + int responseCode = httpURLConnection3.getResponseCode(); + if (responseCode == 200) { + s().O(); + } + d("POST status", Integer.valueOf(responseCode)); + httpURLConnection3.disconnect(); + i2 = responseCode; + } catch (IOException e6) { + e2 = e6; + x("Network compressed POST connection error", e2); + if (outputStream != null) { + } + if (httpURLConnection3 != null) { + } + if (200 != i2) { + } + } + } catch (IOException e7) { + e2 = e7; + httpURLConnection3 = null; + outputStream = null; + x("Network compressed POST connection error", e2); + if (outputStream != null) { + try { + outputStream.close(); + } catch (IOException e8) { + A("Error closing http compressed post connection output stream", e8); + } + } + if (httpURLConnection3 != null) { + httpURLConnection3.disconnect(); + } + if (200 != i2) { + } + } catch (Throwable th5) { + th2 = th5; + httpURLConnection4 = null; + outputStream = null; + if (outputStream != null) { + try { + outputStream.close(); + } catch (IOException e9) { + A("Error closing http compressed post connection output stream", e9); + } + } + if (httpURLConnection4 != null) { + httpURLConnection4.disconnect(); + } + throw th2; + } + } else { + i2 = O(url3, byteArrayOutputStream.toByteArray()); + } + if (200 != i2) { + b("Batched upload completed. Hits batched", Integer.valueOf(i3)); + return arrayList; + } + b("Network error uploading hits. status code", Integer.valueOf(i2)); + if (this.j.e.g().contains(Integer.valueOf(i2))) { + D("Server instructed the client to stop batching"); + this.n.a(); + } + } + return Collections.emptyList(); + } + ArrayList arrayList2 = new ArrayList(list.size()); + for (j0 j0Var2 : list) { + Objects.requireNonNull(j0Var2, "null reference"); + String R2 = R(j0Var2, !j0Var2.f); + if (R2 != null) { + if (R2.length() <= e0.m.a.intValue()) { + if (j0Var2.f) { + String d = z.d(); + String f = z.f(); + str3 = a.k(R2.length() + a.b(f, a.b(d, 1)), d, f, "?", R2); + } else { + String e10 = z.e(); + String f2 = z.f(); + str3 = a.k(R2.length() + a.b(f2, a.b(e10, 1)), e10, f2, "?", R2); + } + try { + url2 = new URL(str3); + } catch (MalformedURLException e11) { + A("Error trying to parse the hardcoded host url", e11); + url2 = null; + } + if (url2 == null) { + H("Failed to build collect GET endpoint url"); + } else { + d("GET request", url2); + try { + httpURLConnection2 = U(url2); + try { + httpURLConnection2.connect(); + T(httpURLConnection2); + i = httpURLConnection2.getResponseCode(); + if (i == 200) { + s().O(); + } + d("GET status", Integer.valueOf(i)); + httpURLConnection2.disconnect(); + } catch (IOException e12) { + e = e12; + try { + x("Network GET connection error", e); + if (httpURLConnection2 != null) { + httpURLConnection2.disconnect(); + } + i = 0; + } catch (Throwable th6) { + th = th6; + httpURLConnection = httpURLConnection2; + if (httpURLConnection != null) { + } + throw th; + } + } + } catch (IOException e13) { + e = e13; + httpURLConnection2 = null; + x("Network GET connection error", e); + if (httpURLConnection2 != null) { + } + i = 0; + } catch (Throwable th7) { + th = th7; + httpURLConnection = null; + if (httpURLConnection != null) { + httpURLConnection.disconnect(); + } + throw th; + } + } + } else { + String R3 = R(j0Var2, false); + if (R3 == null) { + n().O(j0Var2, "Error formatting hit for POST upload"); + } else { + byte[] bytes2 = R3.getBytes(); + if (bytes2.length > e0.q.a.intValue()) { + n().O(j0Var2, "Hit payload exceeds size limit"); + } else { + if (j0Var2.f) { + String valueOf3 = String.valueOf(z.d()); + String valueOf4 = String.valueOf(z.f()); + if (valueOf4.length() != 0) { + str = valueOf3.concat(valueOf4); + url = new URL(str); + if (url == null) { + H("Failed to build collect POST endpoint url"); + } + } else { + str2 = new String(valueOf3); + } + } else { + String valueOf5 = String.valueOf(z.e()); + String valueOf6 = String.valueOf(z.f()); + if (valueOf6.length() != 0) { + str = valueOf5.concat(valueOf6); + url = new URL(str); + if (url == null) { + } + } else { + str2 = new String(valueOf5); + } + } + str = str2; + try { + url = new URL(str); + } catch (MalformedURLException e14) { + A("Error trying to parse the hardcoded host url", e14); + url = null; + } + if (url == null) { + } + } + } + } + z4 = false; + if (z4) { + break; + } + arrayList2.add(Long.valueOf(j0Var2.c)); + if (arrayList2.size() >= z.c()) { + break; + } + } else { + n().O(j0Var2, "Error formatting hit for upload"); + } + z4 = true; + if (z4) { + } + } + return arrayList2; + } + } + z2 = false; + if (!z3) { + } + } + + public final boolean W() { + f.b(); + N(); + NetworkInfo networkInfo = null; + try { + networkInfo = ((ConnectivityManager) this.j.f1402b.getSystemService("connectivity")).getActiveNetworkInfo(); + } catch (SecurityException unused) { + } + if (networkInfo != null && networkInfo.isConnected()) { + return true; + } + C("No network connectivity"); + return false; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/p.java b/app/src/main/java/b/i/a/f/h/j/p.java new file mode 100644 index 0000000000..345fc241e5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/p.java @@ -0,0 +1,155 @@ +package b.i.a.f.h.j; + +import android.content.Context; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.database.sqlite.SQLiteOpenHelper; +import android.os.Build; +import android.util.Log; +import b.d.b.a.a; +import com.discord.models.domain.ModelAuditLogEntry; +import java.io.File; +import java.util.HashSet; +import java.util.Set; +public final class p extends SQLiteOpenHelper { + public final /* synthetic */ o j; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public p(o oVar, Context context, String str) { + super(context, str, (SQLiteDatabase.CursorFactory) null, 1); + this.j = oVar; + } + + public static Set b(SQLiteDatabase sQLiteDatabase, String str) { + String[] columnNames; + HashSet hashSet = new HashSet(); + Cursor rawQuery = sQLiteDatabase.rawQuery(a.j(str.length() + 22, "SELECT * FROM ", str, " LIMIT 0"), null); + try { + for (String str2 : rawQuery.getColumnNames()) { + hashSet.add(str2); + } + return hashSet; + } finally { + rawQuery.close(); + } + } + + public final boolean a(SQLiteDatabase sQLiteDatabase, String str) { + Cursor cursor = null; + try { + cursor = sQLiteDatabase.query("SQLITE_MASTER", new String[]{ModelAuditLogEntry.CHANGE_KEY_NAME}, "name=?", new String[]{str}, null, null, null); + boolean moveToFirst = cursor.moveToFirst(); + cursor.close(); + return moveToFirst; + } catch (SQLiteException e) { + this.j.f("Error querying for table", str, e); + if (cursor != null) { + cursor.close(); + } + return false; + } catch (Throwable th) { + if (cursor != null) { + cursor.close(); + } + throw th; + } + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public final SQLiteDatabase getWritableDatabase() { + if (this.j.p.b(3600000)) { + try { + return super.getWritableDatabase(); + } catch (SQLiteException unused) { + this.j.p.a(); + this.j.H("Opening the database failed, dropping the table and recreating it"); + String str = o.l; + this.j.j.f1402b.getDatabasePath("google_analytics_v4.db").delete(); + try { + SQLiteDatabase writableDatabase = super.getWritableDatabase(); + this.j.p.f1414b = 0; + return writableDatabase; + } catch (SQLiteException e) { + this.j.A("Failed to open freshly created database", e); + throw e; + } + } + } else { + throw new SQLiteException("Database open failed"); + } + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public final void onCreate(SQLiteDatabase sQLiteDatabase) { + int i; + String path = sQLiteDatabase.getPath(); + try { + i = Integer.parseInt(Build.VERSION.SDK); + } catch (NumberFormatException unused) { + String str = "Invalid version number"; + String str2 = Build.VERSION.SDK; + m0 m0Var = m0.l; + if (m0Var != null) { + m0Var.A(str, str2); + } else { + if (str2 != null) { + str = a.j(str2.length() + 23, str, ":", str2); + } + Log.e(e0.f1396b.a, str); + } + i = 0; + } + if (i >= 9) { + File file = new File(path); + file.setReadable(false, false); + file.setWritable(false, false); + file.setReadable(true, true); + file.setWritable(true, true); + } + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public final void onOpen(SQLiteDatabase sQLiteDatabase) { + if (!a(sQLiteDatabase, "hits2")) { + sQLiteDatabase.execSQL(o.l); + } else { + Set b2 = b(sQLiteDatabase, "hits2"); + String[] strArr = {"hit_id", "hit_string", "hit_time", "hit_url"}; + for (int i = 0; i < 4; i++) { + String str = strArr[i]; + if (!((HashSet) b2).remove(str)) { + String valueOf = String.valueOf(str); + throw new SQLiteException(valueOf.length() != 0 ? "Database hits2 is missing required column: ".concat(valueOf) : new String("Database hits2 is missing required column: ")); + } + } + HashSet hashSet = (HashSet) b2; + boolean z2 = !hashSet.remove("hit_app_id"); + if (!hashSet.isEmpty()) { + throw new SQLiteException("Database hits2 has extra columns"); + } else if (z2) { + sQLiteDatabase.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER"); + } + } + if (!a(sQLiteDatabase, "properties")) { + sQLiteDatabase.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;"); + return; + } + Set b3 = b(sQLiteDatabase, "properties"); + String[] strArr2 = {"app_uid", "cid", "tid", "params", "adid", "hits_count"}; + for (int i2 = 0; i2 < 6; i2++) { + String str2 = strArr2[i2]; + if (!((HashSet) b3).remove(str2)) { + String valueOf2 = String.valueOf(str2); + throw new SQLiteException(valueOf2.length() != 0 ? "Database properties is missing required column: ".concat(valueOf2) : new String("Database properties is missing required column: ")); + } + } + if (!((HashSet) b3).isEmpty()) { + throw new SQLiteException("Database properties table has extra columns"); + } + } + + @Override // android.database.sqlite.SQLiteOpenHelper + public final void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/p0.java b/app/src/main/java/b/i/a/f/h/j/p0.java new file mode 100644 index 0000000000..48e8b29bb0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/p0.java @@ -0,0 +1,41 @@ +package b.i.a.f.h.j; + +import android.content.SharedPreferences; +import b.i.a.f.b.f; +import b.i.a.f.e.o.c; +import java.util.Objects; +public final class p0 extends e { + public SharedPreferences l; + public long m; + public long n = -1; + public final r0 o = new r0(this, "monitoring", e0.A.a.longValue(), null); + + public p0(g gVar) { + super(gVar); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + this.l = this.j.f1402b.getSharedPreferences("com.google.android.gms.analytics.prefs", 0); + } + + public final long O() { + f.b(); + N(); + if (this.n == -1) { + this.n = this.l.getLong("last_dispatch", 0); + } + return this.n; + } + + public final void R() { + f.b(); + N(); + Objects.requireNonNull((c) this.j.d); + long currentTimeMillis = System.currentTimeMillis(); + SharedPreferences.Editor edit = this.l.edit(); + edit.putLong("last_dispatch", currentTimeMillis); + edit.apply(); + this.n = currentTimeMillis; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/q.java b/app/src/main/java/b/i/a/f/h/j/q.java new file mode 100644 index 0000000000..1edb459122 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/q.java @@ -0,0 +1,72 @@ +package b.i.a.f.h.j; + +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.text.TextUtils; +import android.util.Log; +import b.i.a.f.b.f; +public final class q extends e { + public final f1 l = new f1(); + + public q(g gVar) { + super(gVar); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + f q = q(); + if (q.d == null) { + synchronized (q) { + if (q.d == null) { + f1 f1Var = new f1(); + PackageManager packageManager = q.f1317b.getPackageManager(); + String packageName = q.f1317b.getPackageName(); + f1Var.c = packageName; + f1Var.d = packageManager.getInstallerPackageName(packageName); + String str = null; + try { + PackageInfo packageInfo = packageManager.getPackageInfo(q.f1317b.getPackageName(), 0); + if (packageInfo != null) { + CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo); + if (!TextUtils.isEmpty(applicationLabel)) { + packageName = applicationLabel.toString(); + } + str = packageInfo.versionName; + } + } catch (PackageManager.NameNotFoundException unused) { + String valueOf = String.valueOf(packageName); + Log.e("GAv4", valueOf.length() != 0 ? "Error retrieving package info: appName set to ".concat(valueOf) : new String("Error retrieving package info: appName set to ")); + } + f1Var.a = packageName; + f1Var.f1401b = str; + q.d = f1Var; + } + } + } + f1 f1Var2 = q.d; + f1 f1Var3 = this.l; + if (!TextUtils.isEmpty(f1Var2.a)) { + f1Var3.a = f1Var2.a; + } + if (!TextUtils.isEmpty(f1Var2.f1401b)) { + f1Var3.f1401b = f1Var2.f1401b; + } + if (!TextUtils.isEmpty(f1Var2.c)) { + f1Var3.c = f1Var2.c; + } + if (!TextUtils.isEmpty(f1Var2.d)) { + f1Var3.d = f1Var2.d; + } + a1 t = t(); + t.N(); + String str2 = t.m; + if (str2 != null) { + this.l.a = str2; + } + t.N(); + String str3 = t.l; + if (str3 != null) { + this.l.f1401b = str3; + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/r.java b/app/src/main/java/b/i/a/f/h/j/r.java new file mode 100644 index 0000000000..045946982e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/r.java @@ -0,0 +1,519 @@ +package b.i.a.f.h.j; + +import android.app.job.JobInfo; +import android.app.job.JobScheduler; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.database.sqlite.SQLiteException; +import android.os.Build; +import android.os.PersistableBundle; +import android.os.SystemClock; +import b.c.a.a0.d; +import b.i.a.f.b.f; +import b.i.a.f.e.n.a; +import b.i.a.f.e.o.c; +import b.i.a.f.e.p.b; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +public final class r extends e { + public boolean l; + public final o m; + public final o0 n; + public final n0 o; + public final j p; + public long q = Long.MIN_VALUE; + public final a0 r; + + /* renamed from: s reason: collision with root package name */ + public final a0 f1409s; + public final y0 t; + public long u; + public boolean v; + + public r(g gVar, i iVar) { + super(gVar); + this.o = new n0(gVar); + this.m = new o(gVar); + this.n = new o0(gVar); + this.p = new j(gVar); + this.t = new y0(this.j.d); + this.r = new s(this, gVar); + this.f1409s = new t(this, gVar); + } + + @Override // b.i.a.f.h.j.e + public final void L() { + this.m.J(); + this.n.J(); + this.p.J(); + } + + /* JADX WARNING: Removed duplicated region for block: B:15:0x004c A[LOOP:1: B:15:0x004c->B:23:?, LOOP_START] */ + /* JADX WARNING: Removed duplicated region for block: B:29:0x0048 A[SYNTHETIC] */ + public final void O() { + f.b(); + f.b(); + N(); + if (!e0.a.a.booleanValue()) { + D("Service client disabled. Can't dispatch local hits to device AnalyticsService"); + } + if (!this.p.R()) { + C("Service not connected"); + } else if (!this.m.R()) { + C("Dispatching local hits to device AnalyticsService"); + while (true) { + try { + ArrayList arrayList = (ArrayList) this.m.T((long) z.c()); + if (!arrayList.isEmpty()) { + U(); + return; + } + while (true) { + if (!arrayList.isEmpty()) { + j0 j0Var = (j0) arrayList.get(0); + if (!this.p.S(j0Var)) { + U(); + return; + } + arrayList.remove(j0Var); + try { + this.m.W(j0Var.c); + } catch (SQLiteException e) { + A("Failed to remove hit that was send for delivery", e); + W(); + return; + } + } + } + ArrayList arrayList = (ArrayList) this.m.T((long) z.c()); + if (!arrayList.isEmpty()) { + } + } catch (SQLiteException e2) { + A("Failed to read hits from store", e2); + W(); + return; + } + } + } + } + + public final void R(d0 d0Var) { + long j; + long j2 = this.u; + f.b(); + N(); + long O = u().O(); + if (O != 0) { + Objects.requireNonNull((c) this.j.d); + j = Math.abs(System.currentTimeMillis() - O); + } else { + j = -1; + } + d("Dispatching local hits. Elapsed time since last dispatch (ms)", Long.valueOf(j)); + S(); + try { + T(); + u().R(); + U(); + if (d0Var != null) { + d0Var.a(null); + } + if (this.u != j2) { + Context context = this.o.f1408b.f1402b; + Intent intent = new Intent("com.google.analytics.RADIO_POWERED"); + intent.addCategory(context.getPackageName()); + intent.putExtra(n0.a, true); + context.sendOrderedBroadcast(intent, null); + } + } catch (Exception e) { + A("Local dispatch failed", e); + u().R(); + U(); + if (d0Var != null) { + d0Var.a(e); + } + } + } + + public final void S() { + k0 k0Var; + if (!this.v && e0.a.a.booleanValue() && !this.p.R()) { + if (this.t.b(e0.f1400z.a.longValue())) { + this.t.a(); + C("Connecting to service"); + j jVar = this.p; + Objects.requireNonNull(jVar); + f.b(); + jVar.N(); + boolean z2 = true; + if (jVar.m == null) { + l lVar = jVar.l; + Objects.requireNonNull(lVar); + f.b(); + Intent intent = new Intent("com.google.android.gms.analytics.service.START"); + intent.setComponent(new ComponentName("com.google.android.gms", "com.google.android.gms.analytics.service.AnalyticsService")); + Context context = lVar.l.j.f1402b; + intent.putExtra("app_package_name", context.getPackageName()); + a b2 = a.b(); + synchronized (lVar) { + k0Var = null; + lVar.j = null; + lVar.k = true; + boolean a = b2.a(context, intent, lVar.l.l, 129); + lVar.l.b("Bind to service requested", Boolean.valueOf(a)); + if (!a) { + lVar.k = false; + } else { + try { + lVar.wait(e0.f1399y.a.longValue()); + } catch (InterruptedException unused) { + lVar.l.D("Wait for service connect was interrupted"); + } + lVar.k = false; + k0 k0Var2 = lVar.j; + lVar.j = null; + if (k0Var2 == null) { + lVar.l.H("Successfully bound to service but never got onServiceConnected callback"); + } + k0Var = k0Var2; + } + } + if (k0Var != null) { + jVar.m = k0Var; + jVar.T(); + } else { + z2 = false; + } + } + if (z2) { + C("Connected to service"); + this.t.f1414b = 0; + O(); + } + } + } + } + + public final boolean T() { + f.b(); + N(); + C("Dispatching a batch of local hits"); + boolean z2 = !this.p.R(); + boolean z3 = !this.n.W(); + if (!z2 || !z3) { + long max = (long) Math.max(z.c(), e0.h.a.intValue()); + ArrayList arrayList = new ArrayList(); + long j = 0; + while (true) { + try { + o oVar = this.m; + oVar.N(); + oVar.O().beginTransaction(); + arrayList.clear(); + try { + List T = this.m.T(max); + ArrayList arrayList2 = (ArrayList) T; + if (arrayList2.isEmpty()) { + C("Store is empty, nothing to dispatch"); + W(); + try { + this.m.setTransactionSuccessful(); + this.m.endTransaction(); + return false; + } catch (SQLiteException e) { + A("Failed to commit local dispatch transaction", e); + W(); + return false; + } + } else { + b("Hits loaded from store. count", Integer.valueOf(arrayList2.size())); + Iterator it = arrayList2.iterator(); + while (it.hasNext()) { + if (((j0) it.next()).c == j) { + y("Database contains successfully uploaded hit", Long.valueOf(j), Integer.valueOf(arrayList2.size())); + W(); + try { + return false; + } catch (SQLiteException e2) { + A("Failed to commit local dispatch transaction", e2); + W(); + return false; + } + } + } + if (this.p.R()) { + C("Service connected, sending hits to the service"); + while (!arrayList2.isEmpty()) { + j0 j0Var = (j0) arrayList2.get(0); + if (!this.p.S(j0Var)) { + break; + } + j = Math.max(j, j0Var.c); + arrayList2.remove(j0Var); + d("Hit sent do device AnalyticsService for delivery", j0Var); + try { + this.m.W(j0Var.c); + arrayList.add(Long.valueOf(j0Var.c)); + } catch (SQLiteException e3) { + A("Failed to remove hit that was send for delivery", e3); + W(); + try { + this.m.setTransactionSuccessful(); + this.m.endTransaction(); + return false; + } catch (SQLiteException e4) { + A("Failed to commit local dispatch transaction", e4); + W(); + return false; + } + } + } + } + if (this.n.W()) { + List V = this.n.V(T); + for (Long l : V) { + j = Math.max(j, l.longValue()); + } + try { + this.m.S(V); + arrayList.addAll(V); + } catch (SQLiteException e5) { + A("Failed to remove successfully uploaded hits", e5); + W(); + try { + this.m.setTransactionSuccessful(); + this.m.endTransaction(); + return false; + } catch (SQLiteException e6) { + A("Failed to commit local dispatch transaction", e6); + W(); + return false; + } + } + } + if (arrayList.isEmpty()) { + try { + this.m.setTransactionSuccessful(); + this.m.endTransaction(); + return false; + } catch (SQLiteException e7) { + A("Failed to commit local dispatch transaction", e7); + W(); + return false; + } + } else { + try { + this.m.setTransactionSuccessful(); + this.m.endTransaction(); + } catch (SQLiteException e8) { + A("Failed to commit local dispatch transaction", e8); + W(); + return false; + } + } + } + } catch (SQLiteException e9) { + x("Failed to read hits from persisted store", e9); + W(); + try { + this.m.setTransactionSuccessful(); + this.m.endTransaction(); + return false; + } catch (SQLiteException e10) { + A("Failed to commit local dispatch transaction", e10); + W(); + return false; + } + } + } finally { + try { + this.m.setTransactionSuccessful(); + this.m.endTransaction(); + } catch (SQLiteException e11) { + A("Failed to commit local dispatch transaction", e11); + W(); + return false; + } + } + } + } else { + C("No network or service available. Will retry later"); + return false; + } + } + + public final void U() { + long j; + long j2; + f.b(); + N(); + boolean z2 = true; + long j3 = 0; + if (!(!this.v && X() > 0)) { + this.o.a(); + W(); + } else if (this.m.R()) { + this.o.a(); + W(); + } else { + if (!e0.w.a.booleanValue()) { + n0 n0Var = this.o; + n0Var.f1408b.c(); + n0Var.f1408b.e(); + if (!n0Var.c) { + Context context = n0Var.f1408b.f1402b; + context.registerReceiver(n0Var, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE")); + IntentFilter intentFilter = new IntentFilter("com.google.analytics.RADIO_POWERED"); + intentFilter.addCategory(context.getPackageName()); + context.registerReceiver(n0Var, intentFilter); + n0Var.d = n0Var.b(); + n0Var.f1408b.c().b("Registering connectivity change receiver. Network connected", Boolean.valueOf(n0Var.d)); + n0Var.c = true; + } + n0 n0Var2 = this.o; + if (!n0Var2.c) { + n0Var2.f1408b.c().D("Connectivity unknown. Receiver not registered"); + } + z2 = n0Var2.d; + } + if (z2) { + V(); + long X = X(); + long O = u().O(); + if (O != 0) { + Objects.requireNonNull((c) this.j.d); + j = X - Math.abs(System.currentTimeMillis() - O); + if (j <= 0) { + j = Math.min(e0.d.a.longValue(), X); + } + } else { + j = Math.min(e0.d.a.longValue(), X); + } + b("Dispatch scheduled (ms)", Long.valueOf(j)); + if (this.r.d()) { + a0 a0Var = this.r; + if (a0Var.d == 0) { + j2 = 0; + } else { + Objects.requireNonNull((c) a0Var.f1394b.d); + j2 = Math.abs(System.currentTimeMillis() - a0Var.d); + } + long max = Math.max(1L, j + j2); + a0 a0Var2 = this.r; + if (a0Var2.d()) { + if (max < 0) { + a0Var2.a(); + return; + } + Objects.requireNonNull((c) a0Var2.f1394b.d); + long abs = max - Math.abs(System.currentTimeMillis() - a0Var2.d); + if (abs >= 0) { + j3 = abs; + } + a0Var2.b().removeCallbacks(a0Var2.c); + if (!a0Var2.b().postDelayed(a0Var2.c, j3)) { + a0Var2.f1394b.c().A("Failed to adjust delayed post. time", Long.valueOf(j3)); + return; + } + return; + } + return; + } + this.r.e(j); + return; + } + W(); + V(); + } + } + + public final void V() { + long j; + g gVar = this.j; + g.a(gVar.i); + c0 c0Var = gVar.i; + if (c0Var.l && !c0Var.m) { + f.b(); + N(); + try { + j = this.m.V(); + } catch (SQLiteException e) { + A("Failed to get min/max hit times from local store", e); + j = 0; + } + if (j != 0) { + Objects.requireNonNull((c) this.j.d); + if (Math.abs(System.currentTimeMillis() - j) <= e0.f.a.longValue()) { + b("Dispatch alarm scheduled (ms)", Long.valueOf(z.b())); + c0Var.N(); + d.G(c0Var.l, "Receiver not registered"); + long b2 = z.b(); + if (b2 > 0) { + c0Var.O(); + Objects.requireNonNull((c) c0Var.j.d); + long elapsedRealtime = SystemClock.elapsedRealtime() + b2; + c0Var.m = true; + e0.C.a.booleanValue(); + if (Build.VERSION.SDK_INT >= 24) { + c0Var.C("Scheduling upload with JobScheduler"); + Context context = c0Var.j.f1402b; + ComponentName componentName = new ComponentName(context, "com.google.android.gms.analytics.AnalyticsJobService"); + int R = c0Var.R(); + PersistableBundle persistableBundle = new PersistableBundle(); + persistableBundle.putString("action", "com.google.android.gms.analytics.ANALYTICS_DISPATCH"); + JobInfo build = new JobInfo.Builder(R, componentName).setMinimumLatency(b2).setOverrideDeadline(b2 << 1).setExtras(persistableBundle).build(); + c0Var.b("Scheduling job. JobID", Integer.valueOf(R)); + Method method = b1.a; + JobScheduler jobScheduler = (JobScheduler) context.getSystemService("jobscheduler"); + if (b1.a != null) { + Objects.requireNonNull((c1) b1.c); + } + jobScheduler.schedule(build); + return; + } + c0Var.C("Scheduling upload with AlarmManager"); + c0Var.n.setInexactRepeating(2, elapsedRealtime, b2, c0Var.S()); + } + } + } + } + } + + public final void W() { + if (this.r.d()) { + C("All hits dispatched or no network/service. Going to power save mode"); + } + this.r.a(); + g gVar = this.j; + g.a(gVar.i); + c0 c0Var = gVar.i; + if (c0Var.m) { + c0Var.O(); + } + } + + public final long X() { + long j = this.q; + if (j != Long.MIN_VALUE) { + return j; + } + long longValue = e0.c.a.longValue(); + a1 t = t(); + t.N(); + if (!t.n) { + return longValue; + } + a1 t2 = t(); + t2.N(); + return ((long) t2.o) * 1000; + } + + public final boolean b0(String str) { + return b.a(this.j.f1402b).a.checkCallingOrSelfPermission(str) == 0; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/r0.java b/app/src/main/java/b/i/a/f/h/j/r0.java new file mode 100644 index 0000000000..b4e396173d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/r0.java @@ -0,0 +1,62 @@ +package b.i.a.f.h.j; + +import android.content.SharedPreferences; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import b.i.a.f.e.o.c; +import java.util.Objects; +import java.util.UUID; +public final class r0 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ p0 f1410b; + + public r0(p0 p0Var, String str, long j, q0 q0Var) { + this.f1410b = p0Var; + d.w(str); + d.l(j > 0); + this.a = str; + } + + public final void a(String str) { + if (this.f1410b.l.getLong(String.valueOf(this.a).concat(":start"), 0) == 0) { + Objects.requireNonNull((c) this.f1410b.j.d); + long currentTimeMillis = System.currentTimeMillis(); + SharedPreferences.Editor edit = this.f1410b.l.edit(); + edit.remove(b()); + edit.remove(c()); + edit.putLong(String.valueOf(this.a).concat(":start"), currentTimeMillis); + edit.commit(); + } + if (str == null) { + str = ""; + } + synchronized (this) { + long j = this.f1410b.l.getLong(b(), 0); + if (j <= 0) { + SharedPreferences.Editor edit2 = this.f1410b.l.edit(); + edit2.putString(c(), str); + edit2.putLong(b(), 1); + edit2.apply(); + return; + } + long j2 = j + 1; + boolean z2 = (UUID.randomUUID().getLeastSignificantBits() & RecyclerView.FOREVER_NS) < RecyclerView.FOREVER_NS / j2; + SharedPreferences.Editor edit3 = this.f1410b.l.edit(); + if (z2) { + edit3.putString(c(), str); + } + edit3.putLong(b(), j2); + edit3.apply(); + } + } + + public final String b() { + return String.valueOf(this.a).concat(":count"); + } + + public final String c() { + return String.valueOf(this.a).concat(":value"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/s.java b/app/src/main/java/b/i/a/f/h/j/s.java new file mode 100644 index 0000000000..22544f25a7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/s.java @@ -0,0 +1,16 @@ +package b.i.a.f.h.j; +public final class s extends a0 { + public final /* synthetic */ r e; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public s(r rVar, g gVar) { + super(gVar); + this.e = rVar; + } + + @Override // b.i.a.f.h.j.a0 + public final void c() { + r rVar = this.e; + rVar.R(new v(rVar)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/s0.java b/app/src/main/java/b/i/a/f/h/j/s0.java new file mode 100644 index 0000000000..9ab6ea2bc1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/s0.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.j; + +import android.content.Context; +import b.i.a.f.m.a; +import java.util.Objects; +public final class s0 { + public static Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static a f1411b; + public static Boolean c; + + public static boolean a(Context context) { + Objects.requireNonNull(context, "null reference"); + Boolean bool = c; + if (bool != null) { + return bool.booleanValue(); + } + boolean a2 = z0.a(context, "com.google.android.gms.analytics.AnalyticsReceiver", false); + c = Boolean.valueOf(a2); + return a2; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/t.java b/app/src/main/java/b/i/a/f/h/j/t.java new file mode 100644 index 0000000000..e19bf4999f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/t.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.j; + +import android.database.sqlite.SQLiteException; +import java.util.Objects; +public final class t extends a0 { + public final /* synthetic */ r e; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public t(r rVar, g gVar) { + super(gVar); + this.e = rVar; + } + + @Override // b.i.a.f.h.j.a0 + public final void c() { + r rVar = this.e; + Objects.requireNonNull(rVar); + try { + rVar.m.U(); + rVar.U(); + } catch (SQLiteException e) { + rVar.x("Failed to delete stale hits", e); + } + rVar.f1409s.e(86400000); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/t0.java b/app/src/main/java/b/i/a/f/h/j/t0.java new file mode 100644 index 0000000000..bfa0f4d024 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/t0.java @@ -0,0 +1,72 @@ +package b.i.a.f.h.j; + +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.content.pm.ServiceInfo; +import android.os.Handler; +import androidx.annotation.RequiresPermission; +import b.i.a.f.h.j.x0; +import b.i.a.f.m.a; +import java.util.Objects; +public final class t0 { + public static Boolean a; + + /* renamed from: b reason: collision with root package name */ + public final Handler f1412b = new e1(); + public final T c; + + public t0(T t) { + this.c = t; + } + + public static boolean c(Context context) { + Objects.requireNonNull(context, "null reference"); + Boolean bool = a; + if (bool != null) { + return bool.booleanValue(); + } + boolean z2 = false; + try { + ServiceInfo serviceInfo = context.getPackageManager().getServiceInfo(new ComponentName(context, "com.google.android.gms.analytics.AnalyticsService"), 0); + if (serviceInfo != null && serviceInfo.enabled) { + z2 = true; + } + } catch (PackageManager.NameNotFoundException unused) { + } + a = Boolean.valueOf(z2); + return z2; + } + + @RequiresPermission(allOf = {"android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE"}) + public final int a(Intent intent, int i) { + try { + synchronized (s0.a) { + a aVar = s0.f1411b; + if (aVar != null && aVar.c.isHeld()) { + aVar.b(); + } + } + } catch (SecurityException unused) { + } + m0 c = g.b(this.c).c(); + if (intent == null) { + c.D("AnalyticsService started with null intent"); + return 2; + } + String action = intent.getAction(); + c.a(2, "Local AnalyticsService called. startId, action", Integer.valueOf(i), action, null); + if ("com.google.android.gms.analytics.ANALYTICS_DISPATCH".equals(action)) { + b(new u0(this, i, c)); + } + return 2; + } + + public final void b(Runnable runnable) { + a e = g.b(this.c).e(); + w0 w0Var = new w0(this, runnable); + e.N(); + e.q().a(new c(e, w0Var)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/u.java b/app/src/main/java/b/i/a/f/h/j/u.java new file mode 100644 index 0000000000..d3d73af5c5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/u.java @@ -0,0 +1,84 @@ +package b.i.a.f.h.j; + +import android.content.Context; +import android.content.SharedPreferences; +import b.i.a.f.b.a; +import b.i.a.f.b.f; +import b.i.a.f.e.o.c; +import java.util.Objects; +public final class u implements Runnable { + public final /* synthetic */ r j; + + public u(r rVar) { + this.j = rVar; + } + + @Override // java.lang.Runnable + public final void run() { + boolean z2; + r rVar = this.j; + rVar.N(); + f.b(); + Context context = rVar.j.f1402b; + if (!s0.a(context)) { + rVar.D("AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See http://goo.gl/8Rd3yj for instructions."); + } else if (!t0.c(context)) { + rVar.H("AnalyticsService is not registered or is disabled. Analytics service at risk of not starting. See http://goo.gl/8Rd3yj for instructions."); + } + Boolean bool = a.a; + Boolean bool2 = a.a; + if (bool2 != null) { + z2 = bool2.booleanValue(); + } else { + z2 = z0.a(context, "com.google.android.gms.analytics.CampaignTrackingReceiver", true); + a.a = Boolean.valueOf(z2); + } + if (!z2) { + rVar.D("CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions."); + } + p0 u = rVar.u(); + Objects.requireNonNull(u); + f.b(); + u.N(); + if (u.m == 0) { + long j = u.l.getLong("first_run", 0); + if (j != 0) { + u.m = j; + } else { + Objects.requireNonNull((c) u.j.d); + long currentTimeMillis = System.currentTimeMillis(); + SharedPreferences.Editor edit = u.l.edit(); + edit.putLong("first_run", currentTimeMillis); + if (!edit.commit()) { + u.D("Failed to commit first run time"); + } + u.m = currentTimeMillis; + } + } + if (!rVar.b0("android.permission.ACCESS_NETWORK_STATE")) { + rVar.H("Missing required android.permission.ACCESS_NETWORK_STATE. Google Analytics disabled. See http://goo.gl/8Rd3yj for instructions"); + rVar.N(); + f.b(); + rVar.v = true; + rVar.p.O(); + rVar.U(); + } + if (!rVar.b0("android.permission.INTERNET")) { + rVar.H("Missing required android.permission.INTERNET. Google Analytics disabled. See http://goo.gl/8Rd3yj for instructions"); + rVar.N(); + f.b(); + rVar.v = true; + rVar.p.O(); + rVar.U(); + } + if (t0.c(rVar.j.f1402b)) { + rVar.C("AnalyticsService registered in the app manifest and enabled"); + } else { + rVar.D("AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions."); + } + if (!rVar.v && !rVar.m.R()) { + rVar.S(); + } + rVar.U(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/u0.java b/app/src/main/java/b/i/a/f/h/j/u0.java new file mode 100644 index 0000000000..26fa04e560 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/u0.java @@ -0,0 +1,22 @@ +package b.i.a.f.h.j; +public final /* synthetic */ class u0 implements Runnable { + public final t0 j; + public final int k; + public final m0 l; + + public u0(t0 t0Var, int i, m0 m0Var) { + this.j = t0Var; + this.k = i; + this.l = m0Var; + } + + @Override // java.lang.Runnable + public final void run() { + t0 t0Var = this.j; + int i = this.k; + m0 m0Var = this.l; + if (t0Var.c.b(i)) { + m0Var.C("Local AnalyticsService processed last dispatch request"); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/v.java b/app/src/main/java/b/i/a/f/h/j/v.java new file mode 100644 index 0000000000..a30ff2b002 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/v.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.j; +public final class v implements d0 { + public final /* synthetic */ r a; + + public v(r rVar) { + this.a = rVar; + } + + @Override // b.i.a.f.h.j.d0 + public final void a(Throwable th) { + this.a.U(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/v0.java b/app/src/main/java/b/i/a/f/h/j/v0.java new file mode 100644 index 0000000000..87b2e615e8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/v0.java @@ -0,0 +1,25 @@ +package b.i.a.f.h.j; + +import android.app.job.JobParameters; +import java.util.Objects; +public final /* synthetic */ class v0 implements Runnable { + public final t0 j; + public final m0 k; + public final JobParameters l; + + public v0(t0 t0Var, m0 m0Var, JobParameters jobParameters) { + this.j = t0Var; + this.k = m0Var; + this.l = jobParameters; + } + + @Override // java.lang.Runnable + public final void run() { + t0 t0Var = this.j; + m0 m0Var = this.k; + JobParameters jobParameters = this.l; + Objects.requireNonNull(t0Var); + m0Var.C("AnalyticsJobService processed last dispatch request"); + t0Var.c.a(jobParameters, false); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/w.java b/app/src/main/java/b/i/a/f/h/j/w.java new file mode 100644 index 0000000000..b5504acf9a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/w.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.j; +public enum w { + NONE, + BATCH_BY_SESSION, + BATCH_BY_TIME, + BATCH_BY_BRUTE_FORCE, + BATCH_BY_COUNT, + BATCH_BY_SIZE +} diff --git a/app/src/main/java/b/i/a/f/h/j/w0.java b/app/src/main/java/b/i/a/f/h/j/w0.java new file mode 100644 index 0000000000..8b00064e94 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/w0.java @@ -0,0 +1,17 @@ +package b.i.a.f.h.j; +public final class w0 implements d0 { + public final /* synthetic */ Runnable a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ t0 f1413b; + + public w0(t0 t0Var, Runnable runnable) { + this.f1413b = t0Var; + this.a = runnable; + } + + @Override // b.i.a.f.h.j.d0 + public final void a(Throwable th) { + this.f1413b.f1412b.post(this.a); + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/x.java b/app/src/main/java/b/i/a/f/h/j/x.java new file mode 100644 index 0000000000..b707b8bacf --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/x.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.j; +public enum x { + NONE, + GZIP +} diff --git a/app/src/main/java/b/i/a/f/h/j/x0.java b/app/src/main/java/b/i/a/f/h/j/x0.java new file mode 100644 index 0000000000..8e3bb0a5fd --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/x0.java @@ -0,0 +1,8 @@ +package b.i.a.f.h.j; + +import android.app.job.JobParameters; +public interface x0 { + void a(JobParameters jobParameters, boolean z2); + + boolean b(int i); +} diff --git a/app/src/main/java/b/i/a/f/h/j/y.java b/app/src/main/java/b/i/a/f/h/j/y.java new file mode 100644 index 0000000000..77c0f9fdeb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/y.java @@ -0,0 +1,67 @@ +package b.i.a.f.h.j; + +import android.content.res.XmlResourceParser; +import android.text.TextUtils; +import b.i.a.f.h.j.i0; +import com.discord.models.domain.ModelAuditLogEntry; +import java.io.IOException; +import java.util.Locale; +import java.util.Objects; +import org.xmlpull.v1.XmlPullParserException; +public class y extends d { + public h0 k; + + public y(g gVar, h0 h0Var) { + super(gVar); + this.k = h0Var; + } + + public final T I(XmlResourceParser xmlResourceParser) { + try { + xmlResourceParser.next(); + int eventType = xmlResourceParser.getEventType(); + while (eventType != 1) { + if (xmlResourceParser.getEventType() == 2) { + String lowerCase = xmlResourceParser.getName().toLowerCase(Locale.US); + if (lowerCase.equals("screenname")) { + String attributeValue = xmlResourceParser.getAttributeValue(null, ModelAuditLogEntry.CHANGE_KEY_NAME); + String trim = xmlResourceParser.nextText().trim(); + if (!TextUtils.isEmpty(attributeValue) && !TextUtils.isEmpty(trim)) { + Objects.requireNonNull(this.k); + } + } else if (lowerCase.equals("string")) { + String attributeValue2 = xmlResourceParser.getAttributeValue(null, ModelAuditLogEntry.CHANGE_KEY_NAME); + String trim2 = xmlResourceParser.nextText().trim(); + if (!TextUtils.isEmpty(attributeValue2) && trim2 != null) { + this.k.c(attributeValue2, trim2); + } + } else if (lowerCase.equals("bool")) { + String attributeValue3 = xmlResourceParser.getAttributeValue(null, ModelAuditLogEntry.CHANGE_KEY_NAME); + String trim3 = xmlResourceParser.nextText().trim(); + if (!TextUtils.isEmpty(attributeValue3) && !TextUtils.isEmpty(trim3)) { + try { + this.k.a(attributeValue3, Boolean.parseBoolean(trim3)); + } catch (NumberFormatException e) { + f("Error parsing bool configuration value", trim3, e); + } + } + } else if (lowerCase.equals("integer")) { + String attributeValue4 = xmlResourceParser.getAttributeValue(null, ModelAuditLogEntry.CHANGE_KEY_NAME); + String trim4 = xmlResourceParser.nextText().trim(); + if (!TextUtils.isEmpty(attributeValue4) && !TextUtils.isEmpty(trim4)) { + try { + this.k.b(attributeValue4, Integer.parseInt(trim4)); + } catch (NumberFormatException e2) { + f("Error parsing int configuration value", trim4, e2); + } + } + } + } + eventType = xmlResourceParser.next(); + } + } catch (IOException | XmlPullParserException e3) { + A("Error parsing tracker configuration file", e3); + } + return (T) this.k.f1403b; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/y0.java b/app/src/main/java/b/i/a/f/h/j/y0.java new file mode 100644 index 0000000000..2688d6bcf2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/y0.java @@ -0,0 +1,30 @@ +package b.i.a.f.h.j; + +import android.os.SystemClock; +import b.i.a.f.e.o.b; +import b.i.a.f.e.o.c; +import java.util.Objects; +public final class y0 { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public long f1414b; + + public y0(b bVar) { + Objects.requireNonNull(bVar, "null reference"); + this.a = bVar; + } + + public final void a() { + Objects.requireNonNull((c) this.a); + this.f1414b = SystemClock.elapsedRealtime(); + } + + public final boolean b(long j) { + if (this.f1414b == 0) { + return true; + } + Objects.requireNonNull((c) this.a); + return SystemClock.elapsedRealtime() - this.f1414b > j; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/z.java b/app/src/main/java/b/i/a/f/h/j/z.java new file mode 100644 index 0000000000..c3ca34a04f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/z.java @@ -0,0 +1,80 @@ +package b.i.a.f.h.j; + +import android.content.pm.ApplicationInfo; +import android.text.TextUtils; +import b.i.a.f.e.o.g; +import java.util.HashSet; +import java.util.Set; +public final class z { + public final g a; + + /* renamed from: b reason: collision with root package name */ + public volatile Boolean f1415b; + public String c; + public Set d; + + public z(g gVar) { + this.a = gVar; + } + + public static long b() { + return e0.e.a.longValue(); + } + + public static int c() { + return e0.g.a.intValue(); + } + + public static String d() { + return e0.j.a; + } + + public static String e() { + return e0.i.a; + } + + public static String f() { + return e0.k.a; + } + + public final boolean a() { + if (this.f1415b == null) { + synchronized (this) { + if (this.f1415b == null) { + ApplicationInfo applicationInfo = this.a.f1402b.getApplicationInfo(); + String a = g.a(); + if (applicationInfo != null) { + String str = applicationInfo.processName; + this.f1415b = Boolean.valueOf(str != null && str.equals(a)); + } + if ((this.f1415b == null || !this.f1415b.booleanValue()) && "com.google.android.gms.analytics".equals(a)) { + this.f1415b = Boolean.TRUE; + } + if (this.f1415b == null) { + this.f1415b = Boolean.TRUE; + this.a.c().H("My process not in the list of running processes"); + } + } + } + } + return this.f1415b.booleanValue(); + } + + public final Set g() { + String str; + String str2 = e0.f1397s.a; + if (this.d == null || (str = this.c) == null || !str.equals(str2)) { + String[] split = TextUtils.split(str2, ","); + HashSet hashSet = new HashSet(); + for (String str3 : split) { + try { + hashSet.add(Integer.valueOf(Integer.parseInt(str3))); + } catch (NumberFormatException unused) { + } + } + this.c = str2; + this.d = hashSet; + } + return this.d; + } +} diff --git a/app/src/main/java/b/i/a/f/h/j/z0.java b/app/src/main/java/b/i/a/f/h/j/z0.java new file mode 100644 index 0000000000..81416eabd5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/j/z0.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.j; + +import android.content.ComponentName; +import android.content.Context; +import android.content.pm.ActivityInfo; +import android.content.pm.PackageManager; +public final class z0 { + public static boolean a(Context context, String str, boolean z2) { + try { + ActivityInfo receiverInfo = context.getPackageManager().getReceiverInfo(new ComponentName(context, str), 0); + return receiverInfo != null && receiverInfo.enabled && (!z2 || receiverInfo.exported); + } catch (PackageManager.NameNotFoundException unused) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/a.java b/app/src/main/java/b/i/a/f/h/k/a.java new file mode 100644 index 0000000000..1faed92269 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/a.java @@ -0,0 +1,47 @@ +package b.i.a.f.h.k; + +import android.os.Binder; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.ParcelFileDescriptor; +import android.os.RemoteException; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.internal.icing.zzo; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public class a extends Binder implements IInterface { + public a(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + f fVar = (f) this; + if (i == 1) { + ((h) fVar).a.b((Status) i.a(parcel, Status.CREATOR)); + } else if (i == 2) { + Status status = (Status) i.a(parcel, Status.CREATOR); + ParcelFileDescriptor parcelFileDescriptor = (ParcelFileDescriptor) i.a(parcel, ParcelFileDescriptor.CREATOR); + } else if (i != 4) { + return false; + } else { + zzo zzo = (zzo) i.a(parcel, zzo.CREATOR); + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/b.java b/app/src/main/java/b/i/a/f/h/k/b.java new file mode 100644 index 0000000000..70b1e3b0bc --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/b.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.k; + +import android.os.IInterface; +import android.os.RemoteException; +import com.google.firebase.appindexing.internal.zza; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public interface b extends IInterface { + void T(c cVar, zza[] zzaArr) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/k/c.java b/app/src/main/java/b/i/a/f/h/k/c.java new file mode 100644 index 0000000000..db46b24a1a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/c.java @@ -0,0 +1,6 @@ +package b.i.a.f.h.k; + +import android.os.IInterface; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public interface c extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/h/k/d.java b/app/src/main/java/b/i/a/f/h/k/d.java new file mode 100644 index 0000000000..e373770d58 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/d.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.k; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import com.google.firebase.appindexing.internal.zza; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class d implements b, IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1416b = "com.google.android.gms.appdatasearch.internal.ILightweightAppDataSearch"; + + public d(IBinder iBinder) { + this.a = iBinder; + } + + @Override // b.i.a.f.h.k.b + public final void T(c cVar, zza[] zzaArr) throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1416b); + int i = i.a; + obtain.writeStrongBinder((a) cVar); + obtain.writeTypedArray(zzaArr, 0); + Parcel obtain2 = Parcel.obtain(); + try { + this.a.transact(7, obtain, obtain2, 0); + obtain2.readException(); + } finally { + obtain.recycle(); + obtain2.recycle(); + } + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/e.java b/app/src/main/java/b/i/a/f/h/k/e.java new file mode 100644 index 0000000000..da5d2d2b87 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/e.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.k; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public class e extends f { + public b.i.a.f.e.h.j.e a; + + public e(b.i.a.f.e.h.j.e eVar) { + this.a = eVar; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/f.java b/app/src/main/java/b/i/a/f/h/k/f.java new file mode 100644 index 0000000000..928ff1a928 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/f.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.k; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public abstract class f extends a implements c { + public f() { + super("com.google.android.gms.appdatasearch.internal.ILightweightAppDataSearchCallbacks"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/g.java b/app/src/main/java/b/i/a/f/h/k/g.java new file mode 100644 index 0000000000..8194966101 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/g.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.k; + +import android.content.Context; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import b.i.a.f.e.h.j.f; +import b.i.a.f.e.h.j.l; +import b.i.a.f.e.k.c; +import b.i.a.f.e.k.d; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class g extends d { + public g(Context context, Looper looper, c cVar, f fVar, l lVar) { + super(context, looper, 19, cVar, fVar, lVar); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12600000; + } + + @Override // b.i.a.f.e.k.b + public final /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.appdatasearch.internal.ILightweightAppDataSearch"); + return queryLocalInterface instanceof b ? (b) queryLocalInterface : new d(iBinder); + } + + @Override // b.i.a.f.e.k.b + public final String x() { + return "com.google.android.gms.appdatasearch.internal.ILightweightAppDataSearch"; + } + + @Override // b.i.a.f.e.k.b + public final String y() { + return "com.google.android.gms.icing.LIGHTWEIGHT_INDEX_SERVICE"; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/h.java b/app/src/main/java/b/i/a/f/h/k/h.java new file mode 100644 index 0000000000..f493887cf1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/h.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.k; + +import b.i.a.f.e.h.j.e; +import com.google.android.gms.common.api.Status; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class h extends e { + public h(e eVar) { + super(eVar); + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/i.java b/app/src/main/java/b/i/a/f/h/k/i.java new file mode 100644 index 0000000000..80eaf9fd59 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/i.java @@ -0,0 +1,19 @@ +package b.i.a.f.h.k; + +import android.os.Parcel; +import android.os.Parcelable; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public class i { + public static final /* synthetic */ int a = 0; + + static { + i.class.getClassLoader(); + } + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/j.java b/app/src/main/java/b/i/a/f/h/k/j.java new file mode 100644 index 0000000000..cd9132c40c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/j.java @@ -0,0 +1,17 @@ +package b.i.a.f.h.k; + +import android.content.Context; +import android.os.Looper; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.j.f; +import b.i.a.f.e.h.j.l; +import b.i.a.f.e.k.c; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class j extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.j.f, b.i.a.f.e.h.j.l] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final /* synthetic */ g b(Context context, Looper looper, c cVar, a.d.c cVar2, f fVar, l lVar) { + return new g(context, looper, cVar, fVar, lVar); + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/k.java b/app/src/main/java/b/i/a/f/h/k/k.java new file mode 100644 index 0000000000..3165cf029a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/k.java @@ -0,0 +1,19 @@ +package b.i.a.f.h.k; + +import b.i.a.f.e.h.a; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class k { + public static final a.g a; + + /* renamed from: b reason: collision with root package name */ + public static final a.AbstractC0103a f1417b; + public static final a c; + + static { + a.g gVar = new a.g<>(); + a = gVar; + j jVar = new j(); + f1417b = jVar; + c = new a<>("AppDataSearch.LIGHTWEIGHT_API", jVar, gVar); + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/l.java b/app/src/main/java/b/i/a/f/h/k/l.java new file mode 100644 index 0000000000..7068391401 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/l.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.k; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public interface l { +} diff --git a/app/src/main/java/b/i/a/f/h/k/m.java b/app/src/main/java/b/i/a/f/h/k/m.java new file mode 100644 index 0000000000..7fe78b6943 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/m.java @@ -0,0 +1,43 @@ +package b.i.a.f.h.k; + +import android.accounts.Account; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.icing.zzh; +import com.google.android.gms.internal.icing.zzk; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class m implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzh createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + zzk[] zzkArr = null; + String str = null; + Account account = null; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 1) { + zzkArr = (zzk[]) d.T(parcel, readInt, zzk.CREATOR); + } else if (i == 2) { + str = d.Q(parcel, readInt); + } else if (i == 3) { + z2 = d.C1(parcel, readInt); + } else if (i != 4) { + d.b2(parcel, readInt); + } else { + account = (Account) d.P(parcel, readInt, Account.CREATOR); + } + } + d.e0(parcel, k2); + return new zzh(zzkArr, str, z2, account); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzh[] newArray(int i) { + return new zzh[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/n.java b/app/src/main/java/b/i/a/f/h/k/n.java new file mode 100644 index 0000000000..683f64e09c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/n.java @@ -0,0 +1,38 @@ +package b.i.a.f.h.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.icing.zzi; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class n implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzi createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + String str3 = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 1) { + str = d.Q(parcel, readInt); + } else if (i == 2) { + str2 = d.Q(parcel, readInt); + } else if (i != 3) { + d.b2(parcel, readInt); + } else { + str3 = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzi(str, str2, str3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzi[] newArray(int i) { + return new zzi[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/o.java b/app/src/main/java/b/i/a/f/h/k/o.java new file mode 100644 index 0000000000..5d203619f5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/o.java @@ -0,0 +1,42 @@ +package b.i.a.f.h.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.icing.zzk; +import com.google.android.gms.internal.icing.zzt; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class o implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzk createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + zzt zzt = null; + byte[] bArr = null; + int i = -1; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + str = d.Q(parcel, readInt); + } else if (i2 == 3) { + zzt = (zzt) d.P(parcel, readInt, zzt.CREATOR); + } else if (i2 == 4) { + i = d.E1(parcel, readInt); + } else if (i2 != 5) { + d.b2(parcel, readInt); + } else { + bArr = d.N(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzk(str, zzt, i, bArr); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzk[] newArray(int i) { + return new zzk[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/p.java b/app/src/main/java/b/i/a/f/h/k/p.java new file mode 100644 index 0000000000..101db938aa --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/p.java @@ -0,0 +1,36 @@ +package b.i.a.f.h.k; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.icing.zzm; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class p implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzm createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + Bundle bundle = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + i = d.E1(parcel, readInt); + } else if (i2 != 2) { + d.b2(parcel, readInt); + } else { + bundle = d.M(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzm(i, bundle); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzm[] newArray(int i) { + return new zzm[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/q.java b/app/src/main/java/b/i/a/f/h/k/q.java new file mode 100644 index 0000000000..cf9f93966f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/q.java @@ -0,0 +1,27 @@ +package b.i.a.f.h.k; + +import java.util.HashMap; +import java.util.Map; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class q { + public static final String[] a; + + /* renamed from: b reason: collision with root package name */ + public static final Map f1418b; + + static { + String[] strArr = {"text1", "text2", "icon", "intent_action", "intent_data", "intent_data_id", "intent_extra_data", "suggest_large_icon", "intent_activity", "thing_proto"}; + a = strArr; + f1418b = new HashMap(strArr.length); + int i = 0; + while (true) { + String[] strArr2 = a; + if (i < strArr2.length) { + f1418b.put(strArr2[i], Integer.valueOf(i)); + i++; + } else { + return; + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/r.java b/app/src/main/java/b/i/a/f/h/k/r.java new file mode 100644 index 0000000000..8132a34dfc --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/r.java @@ -0,0 +1,41 @@ +package b.i.a.f.h.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.internal.icing.zzo; +import com.google.android.gms.internal.icing.zzw; +import java.util.ArrayList; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class r implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzo createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Status status = null; + ArrayList arrayList = null; + String[] strArr = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 1) { + status = (Status) d.P(parcel, readInt, Status.CREATOR); + } else if (i == 2) { + arrayList = d.U(parcel, readInt, zzw.CREATOR); + } else if (i != 3) { + d.b2(parcel, readInt); + } else { + strArr = d.R(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzo(status, arrayList, strArr); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzo[] newArray(int i) { + return new zzo[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/s.java b/app/src/main/java/b/i/a/f/h/k/s.java new file mode 100644 index 0000000000..7a1bc50906 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/s.java @@ -0,0 +1,69 @@ +package b.i.a.f.h.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.icing.zzm; +import com.google.android.gms.internal.icing.zzt; +import com.google.android.gms.internal.icing.zzu; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class s implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzt createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + String str3 = null; + zzm[] zzmArr = null; + String str4 = null; + zzu zzu = null; + boolean z2 = false; + int i = 1; + boolean z3 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 11) { + str4 = d.Q(parcel, readInt); + } else if (i2 != 12) { + switch (i2) { + case 1: + str = d.Q(parcel, readInt); + continue; + case 2: + str2 = d.Q(parcel, readInt); + continue; + case 3: + z2 = d.C1(parcel, readInt); + continue; + case 4: + i = d.E1(parcel, readInt); + continue; + case 5: + z3 = d.C1(parcel, readInt); + continue; + case 6: + str3 = d.Q(parcel, readInt); + continue; + case 7: + zzmArr = (zzm[]) d.T(parcel, readInt, zzm.CREATOR); + continue; + default: + d.b2(parcel, readInt); + continue; + } + } else { + zzu = (zzu) d.P(parcel, readInt, zzu.CREATOR); + } + } + d.e0(parcel, k2); + return new zzt(str, str2, z2, i, z3, str3, zzmArr, str4, zzu); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzt[] newArray(int i) { + return new zzt[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/t.java b/app/src/main/java/b/i/a/f/h/k/t.java new file mode 100644 index 0000000000..69df838977 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/t.java @@ -0,0 +1,31 @@ +package b.i.a.f.h.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.icing.zzu; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class t implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzu createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 1) { + d.b2(parcel, readInt); + } else { + z2 = d.C1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzu(z2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzu[] newArray(int i) { + return new zzu[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/k/u.java b/app/src/main/java/b/i/a/f/h/k/u.java new file mode 100644 index 0000000000..0704d601ea --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/k/u.java @@ -0,0 +1,68 @@ +package b.i.a.f.h.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.icing.zzh; +import com.google.android.gms.internal.icing.zzi; +import com.google.android.gms.internal.icing.zzw; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class u implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzw createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + zzi zzi = null; + String str = null; + zzh zzh = null; + String str2 = null; + long j = 0; + int i = 0; + boolean z2 = false; + int i2 = -1; + int i3 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + zzi = (zzi) d.P(parcel, readInt, zzi.CREATOR); + break; + case 2: + j = d.F1(parcel, readInt); + break; + case 3: + i = d.E1(parcel, readInt); + break; + case 4: + str = d.Q(parcel, readInt); + break; + case 5: + zzh = (zzh) d.P(parcel, readInt, zzh.CREATOR); + break; + case 6: + z2 = d.C1(parcel, readInt); + break; + case 7: + i2 = d.E1(parcel, readInt); + break; + case 8: + i3 = d.E1(parcel, readInt); + break; + case 9: + str2 = d.Q(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzw(zzi, j, i, str, zzh, z2, i2, i3, str2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzw[] newArray(int i) { + return new zzw[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/a.java b/app/src/main/java/b/i/a/f/h/l/a.java new file mode 100644 index 0000000000..e7b777c613 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a.java @@ -0,0 +1,53 @@ +package b.i.a.f.h.l; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class a implements IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1419b; + + public a(IBinder iBinder, String str) { + this.a = iBinder; + this.f1419b = str; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + public final Parcel e() { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1419b); + return obtain; + } + + public final Parcel g(int i, Parcel parcel) throws RemoteException { + parcel = Parcel.obtain(); + try { + this.a.transact(i, parcel, parcel, 0); + parcel.readException(); + return parcel; + } catch (RuntimeException e) { + throw e; + } finally { + parcel.recycle(); + } + } + + public final void h(int i, Parcel parcel) throws RemoteException { + Parcel obtain = Parcel.obtain(); + try { + this.a.transact(i, parcel, obtain, 0); + obtain.readException(); + } finally { + parcel.recycle(); + obtain.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/a0.java b/app/src/main/java/b/i/a/f/h/l/a0.java new file mode 100644 index 0000000000..c80b970bb5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a0.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class a0 extends g.a { + public final /* synthetic */ g.c n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a0(g gVar, g.c cVar) { + super(true); + this.o = gVar; + this.n = cVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.registerOnMeasurementEventListener(this.n); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/a1.java b/app/src/main/java/b/i/a/f/h/l/a1.java new file mode 100644 index 0000000000..396f2e8c88 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a1.java @@ -0,0 +1,237 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.c1; +import b.i.a.f.h.l.u4; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class a1 extends u4 implements d6 { + private static final a1 zzi; + private static volatile j6 zzj; + private int zzc; + private b5 zzd = m6.k; + private String zze = ""; + private long zzf; + private long zzg; + private int zzh; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(a1.N()); + } + + public a(k1 k1Var) { + super(a1.N()); + } + + public final long A() { + return ((a1) this.k).J(); + } + + public final a q(int i, c1 c1Var) { + if (this.l) { + n(); + this.l = false; + } + a1.y((a1) this.k, i, c1Var); + return this; + } + + public final a r(long j) { + if (this.l) { + n(); + this.l = false; + } + a1.z((a1) this.k, j); + return this; + } + + public final a s(c1.a aVar) { + if (this.l) { + n(); + this.l = false; + } + a1.A((a1) this.k, (c1) ((u4) aVar.p())); + return this; + } + + public final a t(String str) { + if (this.l) { + n(); + this.l = false; + } + a1.C((a1) this.k, str); + return this; + } + + public final c1 u(int i) { + return ((a1) this.k).u(i); + } + + public final List v() { + return Collections.unmodifiableList(((a1) this.k).v()); + } + + public final int w() { + return ((a1) this.k).D(); + } + + public final a x(int i) { + if (this.l) { + n(); + this.l = false; + } + a1.x((a1) this.k, i); + return this; + } + + public final String y() { + return ((a1) this.k).F(); + } + + public final long z() { + return ((a1) this.k).H(); + } + } + + static { + a1 a1Var = new a1(); + zzi = a1Var; + u4.r(a1.class, a1Var); + } + + public static void A(a1 a1Var, c1 c1Var) { + Objects.requireNonNull(a1Var); + c1Var.getClass(); + a1Var.O(); + a1Var.zzd.add(c1Var); + } + + public static void B(a1 a1Var, Iterable iterable) { + a1Var.O(); + l3.c(iterable, a1Var.zzd); + } + + public static void C(a1 a1Var, String str) { + Objects.requireNonNull(a1Var); + str.getClass(); + a1Var.zzc |= 1; + a1Var.zze = str; + } + + public static void E(a1 a1Var, long j) { + a1Var.zzc |= 4; + a1Var.zzg = j; + } + + public static a M() { + return zzi.s(); + } + + public static /* synthetic */ a1 N() { + return zzi; + } + + public static void w(a1 a1Var) { + Objects.requireNonNull(a1Var); + a1Var.zzd = m6.k; + } + + public static void x(a1 a1Var, int i) { + a1Var.O(); + a1Var.zzd.remove(i); + } + + public static void y(a1 a1Var, int i, c1 c1Var) { + Objects.requireNonNull(a1Var); + c1Var.getClass(); + a1Var.O(); + a1Var.zzd.set(i, c1Var); + } + + public static void z(a1 a1Var, long j) { + a1Var.zzc |= 2; + a1Var.zzf = j; + } + + public final int D() { + return this.zzd.size(); + } + + public final String F() { + return this.zze; + } + + public final boolean G() { + return (this.zzc & 2) != 0; + } + + public final long H() { + return this.zzf; + } + + public final boolean I() { + return (this.zzc & 4) != 0; + } + + public final long J() { + return this.zzg; + } + + public final boolean K() { + return (this.zzc & 8) != 0; + } + + public final int L() { + return this.zzh; + } + + public final void O() { + b5 b5Var = this.zzd; + if (!b5Var.a()) { + this.zzd = u4.n(b5Var); + } + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new a1(); + case 2: + return new a(null); + case 3: + return new o6(zzi, "\u0001\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0001\u0000\u0001\u001b\u0002ဈ\u0000\u0003ဂ\u0001\u0004ဂ\u0002\u0005င\u0003", new Object[]{"zzc", "zzd", c1.class, "zze", "zzf", "zzg", "zzh"}); + case 4: + return zzi; + case 5: + j6 j6Var = zzj; + if (j6Var == null) { + synchronized (a1.class) { + j6Var = zzj; + if (j6Var == null) { + j6Var = new u4.a<>(zzi); + zzj = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final c1 u(int i) { + return this.zzd.get(i); + } + + public final List v() { + return this.zzd; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/a2.java b/app/src/main/java/b/i/a/f/h/l/a2.java new file mode 100644 index 0000000000..be2cc0c803 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a2.java @@ -0,0 +1,27 @@ +package b.i.a.f.h.l; + +import android.database.ContentObserver; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class a2 extends ContentObserver { + public final /* synthetic */ y1 a; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a2(y1 y1Var) { + super(null); + this.a = y1Var; + } + + @Override // android.database.ContentObserver + public final void onChange(boolean z2) { + y1 y1Var = this.a; + synchronized (y1Var.f) { + y1Var.g = null; + l2.d.incrementAndGet(); + } + synchronized (y1Var) { + for (z1 z1Var : y1Var.h) { + z1Var.a(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/a3.java b/app/src/main/java/b/i/a/f/h/l/a3.java new file mode 100644 index 0000000000..e6e0fcaf9d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a3.java @@ -0,0 +1,46 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.io.Serializable; +import java.util.Objects; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class a3 implements z2, Serializable { + public volatile transient boolean j; + @NullableDecl + public transient T k; + private final z2 zza; + + public a3(z2 z2Var) { + Objects.requireNonNull(z2Var); + this.zza = z2Var; + } + + @Override // b.i.a.f.h.l.z2 + public final T a() { + if (!this.j) { + synchronized (this) { + if (!this.j) { + T a = this.zza.a(); + this.k = a; + this.j = true; + return a; + } + } + } + return this.k; + } + + @Override // java.lang.Object + public final String toString() { + Object obj; + if (this.j) { + String valueOf = String.valueOf(this.k); + obj = a.j(valueOf.length() + 25, ""); + } else { + obj = this.zza; + } + String valueOf2 = String.valueOf(obj); + return a.j(valueOf2.length() + 19, "Suppliers.memoize(", valueOf2, ")"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/a4.java b/app/src/main/java/b/i/a/f/h/l/a4.java new file mode 100644 index 0000000000..d4e619bbe2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a4.java @@ -0,0 +1,51 @@ +package b.i.a.f.h.l; + +import android.annotation.TargetApi; +import android.app.job.JobInfo; +import android.app.job.JobScheduler; +import android.os.Build; +import android.os.UserHandle; +import android.util.Log; +import androidx.annotation.Nullable; +import java.lang.reflect.Method; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +@TargetApi(24) +public final class a4 { + @Nullable + public static final Method a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public static final Method f1420b; + + /* JADX WARNING: Removed duplicated region for block: B:12:0x003b */ + static { + Method method; + Method method2 = null; + if (Build.VERSION.SDK_INT >= 24) { + try { + method = JobScheduler.class.getDeclaredMethod("scheduleAsPackage", JobInfo.class, String.class, Integer.TYPE, String.class); + } catch (NoSuchMethodException unused) { + if (Log.isLoggable("JobSchedulerCompat", 6)) { + Log.e("JobSchedulerCompat", "No scheduleAsPackage method available, falling back to schedule"); + } + } + a = method; + if (Build.VERSION.SDK_INT >= 24) { + try { + method2 = UserHandle.class.getDeclaredMethod("myUserId", null); + } catch (NoSuchMethodException unused2) { + if (Log.isLoggable("JobSchedulerCompat", 6)) { + Log.e("JobSchedulerCompat", "No myUserId method available"); + } + } + } + f1420b = method2; + } + method = null; + a = method; + if (Build.VERSION.SDK_INT >= 24) { + } + f1420b = method2; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/a5.java b/app/src/main/java/b/i/a/f/h/l/a5.java new file mode 100644 index 0000000000..11ee1a514a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a5.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface a5 { + boolean f(int i); +} diff --git a/app/src/main/java/b/i/a/f/h/l/a6.java b/app/src/main/java/b/i/a/f/h/l/a6.java new file mode 100644 index 0000000000..84e1ff46a2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a6.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface a6 { + int a(); + + boolean b(); + + c6 c(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/a7.java b/app/src/main/java/b/i/a/f/h/l/a7.java new file mode 100644 index 0000000000..efead53cfc --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a7.java @@ -0,0 +1,59 @@ +package b.i.a.f.h.l; + +import java.util.AbstractSet; +import java.util.Iterator; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class a7 extends AbstractSet> { + public final /* synthetic */ r6 j; + + public a7(r6 r6Var, t6 t6Var) { + this.j = r6Var; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public /* synthetic */ boolean add(Object obj) { + Map.Entry entry = (Map.Entry) obj; + if (contains(entry)) { + return false; + } + this.j.put((Comparable) entry.getKey(), entry.getValue()); + return true; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public void clear() { + this.j.clear(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(Object obj) { + Map.Entry entry = (Map.Entry) obj; + Object obj2 = this.j.get(entry.getKey()); + Object value = entry.getValue(); + if (obj2 != value) { + return obj2 != null && obj2.equals(value); + } + return true; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set, java.lang.Iterable + public Iterator> iterator() { + return new x6(this.j, null); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean remove(Object obj) { + Map.Entry entry = (Map.Entry) obj; + if (!contains(entry)) { + return false; + } + this.j.remove(entry.getKey()); + return true; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return this.j.size(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/a8.java b/app/src/main/java/b/i/a/f/h/l/a8.java new file mode 100644 index 0000000000..774e2523a2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a8.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface a8 { + boolean a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/a9.java b/app/src/main/java/b/i/a/f/h/l/a9.java new file mode 100644 index 0000000000..434153e2ea --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/a9.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class a9 implements z2 { + public static a9 j = new a9(); + public final z2 k = f.H1(new b3(new c9())); + + public static boolean b() { + return ((d9) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ d9 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/aa.java b/app/src/main/java/b/i/a/f/h/l/aa.java new file mode 100644 index 0000000000..ea9544cacb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/aa.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class aa implements ba { + public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.collection.firebase_global_collection_flag_enabled", true); + + @Override // b.i.a.f.h.l.ba + public final boolean a() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/ab.java b/app/src/main/java/b/i/a/f/h/l/ab.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/ab.java rename to app/src/main/java/b/i/a/f/h/l/ab.java index a35aa1d410..c89caf88f1 100644 --- a/app/src/main/java/c/i/a/f/h/l/ab.java +++ b/app/src/main/java/b/i/a/f/h/l/ab.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface ab { boolean a(); diff --git a/app/src/main/java/c/i/a/f/h/l/ac.java b/app/src/main/java/b/i/a/f/h/l/ac.java similarity index 86% rename from app/src/main/java/c/i/a/f/h/l/ac.java rename to app/src/main/java/b/i/a/f/h/l/ac.java index 6db4463e78..09e80ebfbc 100644 --- a/app/src/main/java/c/i/a/f/h/l/ac.java +++ b/app/src/main/java/b/i/a/f/h/l/ac.java @@ -1,9 +1,9 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ac implements yb { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.upload.file_lock_state_check", false); - @Override // c.i.a.f.h.l.yb + @Override // b.i.a.f.h.l.yb public final boolean a() { return a.d().booleanValue(); } diff --git a/app/src/main/java/b/i/a/f/h/l/b.java b/app/src/main/java/b/i/a/f/h/l/b.java new file mode 100644 index 0000000000..55301f1647 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b.java @@ -0,0 +1,27 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class b extends s0 implements c { + public b() { + super("com.google.android.gms.measurement.api.internal.IEventHandlerProxy"); + } + + @Override // b.i.a.f.h.l.s0 + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i == 1) { + ((g.c) this).Z(parcel.readString(), parcel.readString(), (Bundle) v.a(parcel, Bundle.CREATOR), parcel.readLong()); + parcel2.writeNoException(); + } else if (i != 2) { + return false; + } else { + int a = ((g.c) this).a(); + parcel2.writeNoException(); + parcel2.writeInt(a); + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/b0.java b/app/src/main/java/b/i/a/f/h/l/b0.java new file mode 100644 index 0000000000..03008a6ae3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b0.java @@ -0,0 +1,28 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class b0 extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ String o; + public final /* synthetic */ Object p; + public final /* synthetic */ boolean q; + public final /* synthetic */ g r; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public b0(g gVar, String str, String str2, Object obj, boolean z2) { + super(true); + this.r = gVar; + this.n = str; + this.o = str2; + this.p = obj; + this.q = z2; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.r.j.setUserProperty(this.n, this.o, new b(this.p), this.q, this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/b1.java b/app/src/main/java/b/i/a/f/h/l/b1.java new file mode 100644 index 0000000000..1b076d1336 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b1.java @@ -0,0 +1,60 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class b1 extends u4 implements d6 { + private static final b1 zzf; + private static volatile j6 zzg; + private int zzc; + private String zzd = ""; + private long zze; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a(k1 k1Var) { + super(b1.u()); + } + } + + static { + b1 b1Var = new b1(); + zzf = b1Var; + u4.r(b1.class, b1Var); + } + + public static /* synthetic */ b1 u() { + return zzf; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new b1(); + case 2: + return new a(null); + case 3: + return new o6(zzf, "\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001ဈ\u0000\u0002ဂ\u0001", new Object[]{"zzc", "zzd", "zze"}); + case 4: + return zzf; + case 5: + j6 j6Var = zzg; + if (j6Var == null) { + synchronized (b1.class) { + j6Var = zzg; + if (j6Var == null) { + j6Var = new u4.a<>(zzf); + zzg = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/b2.java b/app/src/main/java/b/i/a/f/h/l/b2.java new file mode 100644 index 0000000000..69c565d9d5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b2.java @@ -0,0 +1,8 @@ +package b.i.a.f.h.l; + +import androidx.annotation.Nullable; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface b2 { + @Nullable + Object g(String str); +} diff --git a/app/src/main/java/b/i/a/f/h/l/b3.java b/app/src/main/java/b/i/a/f/h/l/b3.java new file mode 100644 index 0000000000..a314e04fcc --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b3.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import java.io.Serializable; +import java.util.Arrays; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class b3 implements z2, Serializable { + @NullableDecl + private final T zza; + + public b3(@NullableDecl T t) { + this.zza = t; + } + + @Override // b.i.a.f.h.l.z2 + public final T a() { + return this.zza; + } + + @Override // java.lang.Object + public final boolean equals(@NullableDecl Object obj) { + if (obj instanceof b3) { + return f.b2(this.zza, ((b3) obj).zza); + } + return false; + } + + @Override // java.lang.Object + public final int hashCode() { + return Arrays.hashCode(new Object[]{this.zza}); + } + + @Override // java.lang.Object + public final String toString() { + String valueOf = String.valueOf(this.zza); + return a.j(valueOf.length() + 22, "Suppliers.ofInstance(", valueOf, ")"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/b4.java b/app/src/main/java/b/i/a/f/h/l/b4.java new file mode 100644 index 0000000000..64d1c9fcbb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b4.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class b4 extends t3 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/b5.java b/app/src/main/java/b/i/a/f/h/l/b5.java new file mode 100644 index 0000000000..62df0768db --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b5.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.l; + +import java.util.List; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface b5 extends List, RandomAccess { + boolean a(); + + b5 f(int i); + + void g0(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/b6.java b/app/src/main/java/b/i/a/f/h/l/b6.java new file mode 100644 index 0000000000..72716bcf09 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b6.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface b6 extends d6, Cloneable { +} diff --git a/app/src/main/java/b/i/a/f/h/l/b7.java b/app/src/main/java/b/i/a/f/h/l/b7.java new file mode 100644 index 0000000000..09a4e72276 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b7.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class b7 { + public final /* synthetic */ t3 a; + + public b7(t3 t3Var) { + this.a = t3Var; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/b8.java b/app/src/main/java/b/i/a/f/h/l/b8.java new file mode 100644 index 0000000000..bebe8dd8c5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b8.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class b8 implements z2 { + public static b8 j = new b8(); + public final z2 k = f.H1(new b3(new d8())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ a8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/b9.java b/app/src/main/java/b/i/a/f/h/l/b9.java new file mode 100644 index 0000000000..44a4359d55 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/b9.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class b9 implements y8 { + public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.upload.file_truncate_fix", false); + + @Override // b.i.a.f.h.l.y8 + public final boolean a() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/ba.java b/app/src/main/java/b/i/a/f/h/l/ba.java new file mode 100644 index 0000000000..85cf4f19a7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ba.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface ba { + boolean a(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/bb.java b/app/src/main/java/b/i/a/f/h/l/bb.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/bb.java rename to app/src/main/java/b/i/a/f/h/l/bb.java index 2bc14e39e7..60b5670137 100644 --- a/app/src/main/java/c/i/a/f/h/l/bb.java +++ b/app/src/main/java/b/i/a/f/h/l/bb.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class bb implements z2 { public static bb j = new bb(); public final z2 k = f.H1(new b3(new db())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ ab a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/bc.java b/app/src/main/java/b/i/a/f/h/l/bc.java similarity index 91% rename from app/src/main/java/c/i/a/f/h/l/bc.java rename to app/src/main/java/b/i/a/f/h/l/bc.java index c320230161..cfe36e64a3 100644 --- a/app/src/main/java/c/i/a/f/h/l/bc.java +++ b/app/src/main/java/b/i/a/f/h/l/bc.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; import android.os.Handler; import android.os.Looper; diff --git a/app/src/main/java/b/i/a/f/h/l/c.java b/app/src/main/java/b/i/a/f/h/l/c.java new file mode 100644 index 0000000000..b8f23b9244 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.IInterface; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface c extends IInterface { + void Z(String str, String str2, Bundle bundle, long j) throws RemoteException; + + int a() throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/l/c0.java b/app/src/main/java/b/i/a/f/h/l/c0.java new file mode 100644 index 0000000000..19eb671eb1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c0.java @@ -0,0 +1,35 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class c0 extends g.a { + public final /* synthetic */ Long n; + public final /* synthetic */ String o; + public final /* synthetic */ String p; + public final /* synthetic */ Bundle q; + public final /* synthetic */ boolean r; + + /* renamed from: s reason: collision with root package name */ + public final /* synthetic */ boolean f1421s; + public final /* synthetic */ g t; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c0(g gVar, Long l, String str, String str2, Bundle bundle, boolean z2, boolean z3) { + super(true); + this.t = gVar; + this.n = l; + this.o = str; + this.p = str2; + this.q = bundle; + this.r = z2; + this.f1421s = z3; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + Long l = this.n; + this.t.j.logEvent(this.o, this.p, this.q, this.r, this.f1421s, l == null ? this.j : l.longValue()); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/c1.java b/app/src/main/java/b/i/a/f/h/l/c1.java new file mode 100644 index 0000000000..cb526dd3d9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c1.java @@ -0,0 +1,220 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class c1 extends u4 implements d6 { + private static final c1 zzj; + private static volatile j6 zzk; + private int zzc; + private String zzd = ""; + private String zze = ""; + private long zzf; + private float zzg; + private double zzh; + private b5 zzi = m6.k; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(c1.R()); + } + + public a(k1 k1Var) { + super(c1.R()); + } + + public final a q(double d) { + if (this.l) { + n(); + this.l = false; + } + c1.v((c1) this.k, d); + return this; + } + + public final a r(long j) { + if (this.l) { + n(); + this.l = false; + } + c1.w((c1) this.k, j); + return this; + } + + public final a s(String str) { + if (this.l) { + n(); + this.l = false; + } + c1.z((c1) this.k, str); + return this; + } + + public final a t(String str) { + if (this.l) { + n(); + this.l = false; + } + c1.D((c1) this.k, str); + return this; + } + } + + static { + c1 c1Var = new c1(); + zzj = c1Var; + u4.r(c1.class, c1Var); + } + + public static void C(c1 c1Var) { + c1Var.zzc &= -5; + c1Var.zzf = 0; + } + + public static void D(c1 c1Var, String str) { + Objects.requireNonNull(c1Var); + str.getClass(); + c1Var.zzc |= 2; + c1Var.zze = str; + } + + public static void E(c1 c1Var) { + c1Var.zzc &= -17; + c1Var.zzh = ShadowDrawableWrapper.COS_45; + } + + public static void H(c1 c1Var) { + Objects.requireNonNull(c1Var); + c1Var.zzi = m6.k; + } + + public static a Q() { + return zzj.s(); + } + + public static /* synthetic */ c1 R() { + return zzj; + } + + public static void u(c1 c1Var) { + c1Var.zzc &= -3; + c1Var.zze = zzj.zze; + } + + public static void v(c1 c1Var, double d) { + c1Var.zzc |= 16; + c1Var.zzh = d; + } + + public static void w(c1 c1Var, long j) { + c1Var.zzc |= 4; + c1Var.zzf = j; + } + + public static void x(c1 c1Var, c1 c1Var2) { + Objects.requireNonNull(c1Var); + b5 b5Var = c1Var.zzi; + if (!b5Var.a()) { + c1Var.zzi = u4.n(b5Var); + } + c1Var.zzi.add(c1Var2); + } + + public static void y(c1 c1Var, Iterable iterable) { + b5 b5Var = c1Var.zzi; + if (!b5Var.a()) { + c1Var.zzi = u4.n(b5Var); + } + l3.c(iterable, c1Var.zzi); + } + + public static void z(c1 c1Var, String str) { + Objects.requireNonNull(c1Var); + str.getClass(); + c1Var.zzc |= 1; + c1Var.zzd = str; + } + + public final boolean A() { + return (this.zzc & 1) != 0; + } + + public final String B() { + return this.zzd; + } + + public final boolean F() { + return (this.zzc & 2) != 0; + } + + public final String G() { + return this.zze; + } + + public final boolean I() { + return (this.zzc & 4) != 0; + } + + public final long J() { + return this.zzf; + } + + public final boolean K() { + return (this.zzc & 8) != 0; + } + + public final float L() { + return this.zzg; + } + + public final boolean M() { + return (this.zzc & 16) != 0; + } + + public final double N() { + return this.zzh; + } + + public final List O() { + return this.zzi; + } + + public final int P() { + return this.zzi.size(); + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new c1(); + case 2: + return new a(null); + case 3: + return new o6(zzj, "\u0001\u0006\u0000\u0001\u0001\u0006\u0006\u0000\u0001\u0000\u0001ဈ\u0000\u0002ဈ\u0001\u0003ဂ\u0002\u0004ခ\u0003\u0005က\u0004\u0006\u001b", new Object[]{"zzc", "zzd", "zze", "zzf", "zzg", "zzh", "zzi", c1.class}); + case 4: + return zzj; + case 5: + j6 j6Var = zzk; + if (j6Var == null) { + synchronized (c1.class) { + j6Var = zzk; + if (j6Var == null) { + j6Var = new u4.a<>(zzj); + zzk = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/c2.java b/app/src/main/java/b/i/a/f/h/l/c2.java new file mode 100644 index 0000000000..15847fee51 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c2.java @@ -0,0 +1,54 @@ +package b.i.a.f.h.l; + +import android.content.Context; +import android.database.ContentObserver; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.core.content.PermissionChecker; +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c2 implements b2 { + @GuardedBy("GservicesLoader.class") + public static c2 a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1422b; + public final ContentObserver c; + + public c2() { + this.f1422b = null; + this.c = null; + } + + public c2(Context context) { + this.f1422b = context; + f2 f2Var = new f2(); + this.c = f2Var; + context.getContentResolver().registerContentObserver(u1.a, true, f2Var); + } + + public static c2 a(Context context) { + c2 c2Var; + synchronized (c2.class) { + if (a == null) { + a = PermissionChecker.checkSelfPermission(context, "com.google.android.providers.gsf.permission.READ_GSERVICES") == 0 ? new c2(context) : new c2(); + } + c2Var = a; + } + return c2Var; + } + + @Override // b.i.a.f.h.l.b2 + public final Object g(String str) { + if (this.f1422b == null) { + return null; + } + try { + return (String) f.K1(new g2(this, str)); + } catch (IllegalStateException | SecurityException e) { + String valueOf = String.valueOf(str); + Log.e("GservicesLoader", valueOf.length() != 0 ? "Unable to read GServices for: ".concat(valueOf) : new String("Unable to read GServices for: "), e); + return null; + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/c3.java b/app/src/main/java/b/i/a/f/h/l/c3.java new file mode 100644 index 0000000000..2a00b5f483 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c3.java @@ -0,0 +1,43 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.util.Objects; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c3 implements z2 { + public volatile z2 j; + public volatile boolean k; + @NullableDecl + public T l; + + public c3(z2 z2Var) { + Objects.requireNonNull(z2Var); + this.j = z2Var; + } + + @Override // b.i.a.f.h.l.z2 + public final T a() { + if (!this.k) { + synchronized (this) { + if (!this.k) { + T a = this.j.a(); + this.l = a; + this.k = true; + this.j = null; + return a; + } + } + } + return this.l; + } + + public final String toString() { + Object obj = this.j; + if (obj == null) { + String valueOf = String.valueOf(this.l); + obj = a.j(valueOf.length() + 25, ""); + } + String valueOf2 = String.valueOf(obj); + return a.j(valueOf2.length() + 19, "Suppliers.memoize(", valueOf2, ")"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/c4.java b/app/src/main/java/b/i/a/f/h/l/c4.java new file mode 100644 index 0000000000..8e0389b75e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c4.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class c4 implements x3 { + public c4(v3 v3Var) { + } + + @Override // b.i.a.f.h.l.x3 + public final byte[] a(byte[] bArr, int i, int i2) { + byte[] bArr2 = new byte[i2]; + System.arraycopy(bArr, i, bArr2, 0, i2); + return bArr2; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/c5.java b/app/src/main/java/b/i/a/f/h/l/c5.java new file mode 100644 index 0000000000..a47d419765 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c5.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface c5 extends b5 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/c6.java b/app/src/main/java/b/i/a/f/h/l/c6.java new file mode 100644 index 0000000000..6864240f40 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c6.java @@ -0,0 +1,16 @@ +package b.i.a.f.h.l; + +import com.google.android.gms.internal.measurement.zzhi; +import java.io.IOException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface c6 extends d6 { + t3 b(); + + b6 f(); + + int g(); + + b6 h(); + + void i(zzhi zzhi) throws IOException; +} diff --git a/app/src/main/java/b/i/a/f/h/l/c7.java b/app/src/main/java/b/i/a/f/h/l/c7.java new file mode 100644 index 0000000000..62c229efdb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c7.java @@ -0,0 +1,186 @@ +package b.i.a.f.h.l; + +import com.google.android.gms.internal.measurement.zzhi; +import com.google.android.gms.internal.measurement.zzii; +import com.google.android.gms.internal.measurement.zzij; +import java.io.IOException; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class c7 { + public static final c7 a = new c7(0, new int[0], new Object[0], false); + + /* renamed from: b reason: collision with root package name */ + public int f1423b; + public int[] c; + public Object[] d; + public int e; + public boolean f; + + public c7() { + this(0, new int[8], new Object[8], true); + } + + public c7(int i, int[] iArr, Object[] objArr, boolean z2) { + this.e = -1; + this.f1423b = i; + this.c = iArr; + this.d = objArr; + this.f = z2; + } + + public static void b(int i, Object obj, v7 v7Var) throws IOException { + int i2 = i >>> 3; + int i3 = i & 7; + if (i3 == 0) { + ((g4) v7Var).a.g(i2, ((Long) obj).longValue()); + } else if (i3 == 1) { + ((g4) v7Var).a.z(i2, ((Long) obj).longValue()); + } else if (i3 == 2) { + ((g4) v7Var).a.h(i2, (t3) obj); + } else if (i3 == 3) { + g4 g4Var = (g4) v7Var; + g4Var.a.f(i2, 3); + ((c7) obj).d(v7Var); + g4Var.a.f(i2, 4); + } else if (i3 == 5) { + ((g4) v7Var).a.G(i2, ((Integer) obj).intValue()); + } else { + int i4 = zzij.j; + throw new RuntimeException(new zzii("Protocol message tag had invalid wire type.")); + } + } + + public static c7 c() { + return new c7(0, new int[8], new Object[8], true); + } + + public final void a(int i, Object obj) { + if (this.f) { + int i2 = this.f1423b; + int[] iArr = this.c; + if (i2 == iArr.length) { + int i3 = i2 + (i2 < 4 ? 8 : i2 >> 1); + this.c = Arrays.copyOf(iArr, i3); + this.d = Arrays.copyOf(this.d, i3); + } + int[] iArr2 = this.c; + int i4 = this.f1423b; + iArr2[i4] = i; + this.d[i4] = obj; + this.f1423b = i4 + 1; + return; + } + throw new UnsupportedOperationException(); + } + + public final void d(v7 v7Var) throws IOException { + if (this.f1423b != 0) { + Objects.requireNonNull(v7Var); + for (int i = 0; i < this.f1423b; i++) { + b(this.c[i], this.d[i], v7Var); + } + } + } + + public final int e() { + int i; + int i2 = this.e; + if (i2 != -1) { + return i2; + } + int i3 = 0; + for (int i4 = 0; i4 < this.f1423b; i4++) { + int i5 = this.c[i4]; + int i6 = i5 >>> 3; + int i7 = i5 & 7; + if (i7 == 0) { + i = zzhi.E(i6, ((Long) this.d[i4]).longValue()); + } else if (i7 == 1) { + ((Long) this.d[i4]).longValue(); + i = zzhi.N(i6); + } else if (i7 == 2) { + i = zzhi.w(i6, (t3) this.d[i4]); + } else if (i7 == 3) { + i3 = ((c7) this.d[i4]).e() + (zzhi.D(i6) << 1) + i3; + } else if (i7 == 5) { + ((Integer) this.d[i4]).intValue(); + i = zzhi.S(i6); + } else { + int i8 = zzij.j; + throw new IllegalStateException(new zzii("Protocol message tag had invalid wire type.")); + } + i3 = i + i3; + } + this.e = i3; + return i3; + } + + public final boolean equals(Object obj) { + boolean z2; + boolean z3; + if (this == obj) { + return true; + } + if (obj == null || !(obj instanceof c7)) { + return false; + } + c7 c7Var = (c7) obj; + int i = this.f1423b; + if (i == c7Var.f1423b) { + int[] iArr = this.c; + int[] iArr2 = c7Var.c; + int i2 = 0; + while (true) { + if (i2 >= i) { + z2 = true; + break; + } else if (iArr[i2] != iArr2[i2]) { + z2 = false; + break; + } else { + i2++; + } + } + if (z2) { + Object[] objArr = this.d; + Object[] objArr2 = c7Var.d; + int i3 = this.f1423b; + int i4 = 0; + while (true) { + if (i4 >= i3) { + z3 = true; + break; + } else if (!objArr[i4].equals(objArr2[i4])) { + z3 = false; + break; + } else { + i4++; + } + } + if (z3) { + return true; + } + } + } + return false; + } + + public final int hashCode() { + int i = this.f1423b; + int i2 = (i + 527) * 31; + int[] iArr = this.c; + int i3 = 17; + int i4 = 17; + for (int i5 = 0; i5 < i; i5++) { + i4 = (i4 * 31) + iArr[i5]; + } + int i6 = (i2 + i4) * 31; + Object[] objArr = this.d; + int i7 = this.f1423b; + for (int i8 = 0; i8 < i7; i8++) { + i3 = (i3 * 31) + objArr[i8].hashCode(); + } + return i6 + i3; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/c8.java b/app/src/main/java/b/i/a/f/h/l/c8.java new file mode 100644 index 0000000000..d08462df7f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c8.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c8 implements z2 { + public static c8 j = new c8(); + public final z2 k = f.H1(new b3(new e8())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ f8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/c9.java b/app/src/main/java/b/i/a/f/h/l/c9.java new file mode 100644 index 0000000000..f47ee137aa --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/c9.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c9 implements d9 { + public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.client.firebase_feature_rollout.v1.enable", true); + + @Override // b.i.a.f.h.l.d9 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.d9 + public final boolean b() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/ca.java b/app/src/main/java/b/i/a/f/h/l/ca.java new file mode 100644 index 0000000000..3bcad480b1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ca.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface ca { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/cb.java b/app/src/main/java/b/i/a/f/h/l/cb.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/cb.java rename to app/src/main/java/b/i/a/f/h/l/cb.java index d4cee93bd8..af89f4ee5e 100644 --- a/app/src/main/java/c/i/a/f/h/l/cb.java +++ b/app/src/main/java/b/i/a/f/h/l/cb.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class cb implements z2 { public static cb j = new cb(); public final z2 k = f.H1(new b3(new eb())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ fb a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/cc.java b/app/src/main/java/b/i/a/f/h/l/cc.java similarity index 87% rename from app/src/main/java/c/i/a/f/h/l/cc.java rename to app/src/main/java/b/i/a/f/h/l/cc.java index e4f57e5b7d..7241b36d45 100644 --- a/app/src/main/java/c/i/a/f/h/l/cc.java +++ b/app/src/main/java/b/i/a/f/h/l/cc.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; import android.os.Bundle; import android.util.Log; @@ -6,7 +6,9 @@ import java.util.concurrent.atomic.AtomicReference; /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ public final class cc extends ic { public final AtomicReference a = new AtomicReference<>(); - public boolean b; + + /* renamed from: b reason: collision with root package name */ + public boolean f1424b; /* JADX WARNING: Code restructure failed: missing block: B:1:0x0002, code lost: r4 = r4.get("r"); @@ -24,12 +26,12 @@ public final class cc extends ic { } } - @Override // c.i.a.f.h.l.fc + @Override // b.i.a.f.h.l.fc public final void f(Bundle bundle) { synchronized (this.a) { try { this.a.set(bundle); - this.b = true; + this.f1424b = true; this.a.notify(); } catch (Throwable th) { this.a.notify(); @@ -45,7 +47,7 @@ public final class cc extends ic { public final Bundle x0(long j) { Bundle bundle; synchronized (this.a) { - if (!this.b) { + if (!this.f1424b) { try { this.a.wait(j); } catch (InterruptedException unused) { diff --git a/app/src/main/java/b/i/a/f/h/l/d.java b/app/src/main/java/b/i/a/f/h/l/d.java new file mode 100644 index 0000000000..44598b2005 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d.java @@ -0,0 +1,6 @@ +package b.i.a.f.h.l; + +import android.os.IInterface; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface d extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/h/l/d0.java b/app/src/main/java/b/i/a/f/h/l/d0.java new file mode 100644 index 0000000000..bd166b887a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d0.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class d0 extends g.a { + public final /* synthetic */ Activity n; + public final /* synthetic */ g.b o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d0(g.b bVar, Activity activity) { + super(true); + this.o = bVar; + this.n = activity; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + g.this.j.onActivityStarted(new b(this.n), this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/d1.java b/app/src/main/java/b/i/a/f/h/l/d1.java new file mode 100644 index 0000000000..c5907c456b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d1.java @@ -0,0 +1,95 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.e1; +import b.i.a.f.h.l.u4; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class d1 extends u4 implements d6 { + private static final d1 zzd; + private static volatile j6 zze; + private b5 zzc = m6.k; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(d1.y()); + } + + public a(k1 k1Var) { + super(d1.y()); + } + + public final a q(e1.a aVar) { + if (this.l) { + n(); + this.l = false; + } + d1.w((d1) this.k, (e1) ((u4) aVar.p())); + return this; + } + } + + static { + d1 d1Var = new d1(); + zzd = d1Var; + u4.r(d1.class, d1Var); + } + + public static void w(d1 d1Var, e1 e1Var) { + Objects.requireNonNull(d1Var); + b5 b5Var = d1Var.zzc; + if (!b5Var.a()) { + d1Var.zzc = u4.n(b5Var); + } + d1Var.zzc.add(e1Var); + } + + public static a x() { + return zzd.s(); + } + + public static /* synthetic */ d1 y() { + return zzd; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new d1(); + case 2: + return new a(null); + case 3: + return new o6(zzd, "\u0001\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b", new Object[]{"zzc", e1.class}); + case 4: + return zzd; + case 5: + j6 j6Var = zze; + if (j6Var == null) { + synchronized (d1.class) { + j6Var = zze; + if (j6Var == null) { + j6Var = new u4.a<>(zzd); + zze = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final e1 u() { + return this.zzc.get(0); + } + + public final List v() { + return this.zzc; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/d2.java b/app/src/main/java/b/i/a/f/h/l/d2.java new file mode 100644 index 0000000000..e1228f700d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d2.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface d2 { + V a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/d3.java b/app/src/main/java/b/i/a/f/h/l/d3.java new file mode 100644 index 0000000000..6c6e9ae2da --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d3.java @@ -0,0 +1,22 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class d3 extends a implements e2 { + public d3(IBinder iBinder) { + super(iBinder, "com.google.android.finsky.externalreferrer.IGetInstallReferrerService"); + } + + @Override // b.i.a.f.h.l.e2 + public final Bundle f(Bundle bundle) throws RemoteException { + Parcel e = e(); + v.c(e, bundle); + Parcel g = g(1, e); + Bundle bundle2 = (Bundle) v.a(g, Bundle.CREATOR); + g.recycle(); + return bundle2; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/d4.java b/app/src/main/java/b/i/a/f/h/l/d4.java new file mode 100644 index 0000000000..2ab385d11d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d4.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class d4 { + public static long a(long j) { + return (-(j & 1)) ^ (j >>> 1); + } + + public static int b(int i) { + return (-(i & 1)) ^ (i >>> 1); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/d5.java b/app/src/main/java/b/i/a/f/h/l/d5.java new file mode 100644 index 0000000000..f13ead7274 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d5.java @@ -0,0 +1,19 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class d5 extends h5 { + public static final /* synthetic */ int c = 0; + + @Override // b.i.a.f.h.l.h5 + public final boolean equals(Object obj) { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.h5 + public final int hashCode() { + throw new NoSuchMethodError(); + } + + public final String toString() { + throw new NoSuchMethodError(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/d6.java b/app/src/main/java/b/i/a/f/h/l/d6.java new file mode 100644 index 0000000000..12d4ff9a5f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d6.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface d6 { + boolean j(); + + c6 k(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/d7.java b/app/src/main/java/b/i/a/f/h/l/d7.java new file mode 100644 index 0000000000..d461876581 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d7.java @@ -0,0 +1,25 @@ +package b.i.a.f.h.l; + +import java.io.IOException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class d7 { + public abstract B a(); + + public abstract void b(B b2, int i, long j); + + public abstract void c(T t, v7 v7Var) throws IOException; + + public abstract void d(Object obj, T t); + + public abstract T e(Object obj); + + public abstract void f(T t, v7 v7Var) throws IOException; + + public abstract T g(T t, T t2); + + public abstract void h(Object obj); + + public abstract int i(T t); + + public abstract int j(T t); +} diff --git a/app/src/main/java/b/i/a/f/h/l/d8.java b/app/src/main/java/b/i/a/f/h/l/d8.java new file mode 100644 index 0000000000..803af3171b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d8.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class d8 implements a8 { + public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.sdk.collection.validate_param_names_alphabetical", true); + + @Override // b.i.a.f.h.l.a8 + public final boolean a() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/d9.java b/app/src/main/java/b/i/a/f/h/l/d9.java new file mode 100644 index 0000000000..f34474d1e8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/d9.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface d9 { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/da.java b/app/src/main/java/b/i/a/f/h/l/da.java new file mode 100644 index 0000000000..0a2ce5c44d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/da.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class da implements z2 { + public static da j = new da(); + public final z2 k = f.H1(new b3(new fa())); + + public static boolean b() { + return ((ca) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ ca a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/db.java b/app/src/main/java/b/i/a/f/h/l/db.java similarity index 86% rename from app/src/main/java/c/i/a/f/h/l/db.java rename to app/src/main/java/b/i/a/f/h/l/db.java index 6b7d4be279..6cb22c2c10 100644 --- a/app/src/main/java/c/i/a/f/h/l/db.java +++ b/app/src/main/java/b/i/a/f/h/l/db.java @@ -1,9 +1,9 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class db implements ab { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.collection.log_event_and_bundle_v2", true); - @Override // c.i.a.f.h.l.ab + @Override // b.i.a.f.h.l.ab public final boolean a() { return a.d().booleanValue(); } diff --git a/app/src/main/java/c/i/a/f/h/l/dc.java b/app/src/main/java/b/i/a/f/h/l/dc.java similarity index 94% rename from app/src/main/java/c/i/a/f/h/l/dc.java rename to app/src/main/java/b/i/a/f/h/l/dc.java index 9701065289..2bcc9e6f37 100644 --- a/app/src/main/java/c/i/a/f/h/l/dc.java +++ b/app/src/main/java/b/i/a/f/h/l/dc.java @@ -1,11 +1,11 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; import android.os.Bundle; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; -import c.i.a.f.f.a; +import b.i.a.f.f.a; import com.google.android.gms.internal.measurement.zzae; /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ public abstract class dc extends s0 implements ec { @@ -21,7 +21,7 @@ public abstract class dc extends s0 implements ec { return queryLocalInterface instanceof ec ? (ec) queryLocalInterface : new gc(iBinder); } - @Override // c.i.a.f.h.l.s0 + @Override // b.i.a.f.h.l.s0 public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { boolean z2 = false; fc fcVar = null; @@ -44,7 +44,7 @@ public abstract class dc extends s0 implements ec { fc fcVar14 = null; switch (i) { case 1: - initialize(a.AbstractBinderC0111a.g(parcel.readStrongBinder()), (zzae) v.a(parcel, zzae.CREATOR), parcel.readLong()); + initialize(a.AbstractBinderC0109a.g(parcel.readStrongBinder()), (zzae) v.a(parcel, zzae.CREATOR), parcel.readLong()); break; case 2: logEvent(parcel.readString(), parcel.readString(), (Bundle) v.a(parcel, Bundle.CREATOR), parcel.readInt() != 0, parcel.readInt() != 0, parcel.readLong()); @@ -63,7 +63,7 @@ public abstract class dc extends s0 implements ec { case 4: String readString3 = parcel.readString(); String readString4 = parcel.readString(); - a g = a.AbstractBinderC0111a.g(parcel.readStrongBinder()); + a g = a.AbstractBinderC0109a.g(parcel.readStrongBinder()); ClassLoader classLoader = v.a; setUserProperty(readString3, readString4, g, parcel.readInt() != 0, parcel.readLong()); break; @@ -126,7 +126,7 @@ public abstract class dc extends s0 implements ec { setSessionTimeoutDuration(parcel.readLong()); break; case 15: - setCurrentScreen(a.AbstractBinderC0111a.g(parcel.readStrongBinder()), parcel.readString(), parcel.readString(), parcel.readLong()); + setCurrentScreen(a.AbstractBinderC0109a.g(parcel.readStrongBinder()), parcel.readString(), parcel.readString(), parcel.readLong()); break; case 16: IBinder readStrongBinder5 = parcel.readStrongBinder(); @@ -191,25 +191,25 @@ public abstract class dc extends s0 implements ec { endAdUnitExposure(parcel.readString(), parcel.readLong()); break; case 25: - onActivityStarted(a.AbstractBinderC0111a.g(parcel.readStrongBinder()), parcel.readLong()); + onActivityStarted(a.AbstractBinderC0109a.g(parcel.readStrongBinder()), parcel.readLong()); break; case 26: - onActivityStopped(a.AbstractBinderC0111a.g(parcel.readStrongBinder()), parcel.readLong()); + onActivityStopped(a.AbstractBinderC0109a.g(parcel.readStrongBinder()), parcel.readLong()); break; case 27: - onActivityCreated(a.AbstractBinderC0111a.g(parcel.readStrongBinder()), (Bundle) v.a(parcel, Bundle.CREATOR), parcel.readLong()); + onActivityCreated(a.AbstractBinderC0109a.g(parcel.readStrongBinder()), (Bundle) v.a(parcel, Bundle.CREATOR), parcel.readLong()); break; case 28: - onActivityDestroyed(a.AbstractBinderC0111a.g(parcel.readStrongBinder()), parcel.readLong()); + onActivityDestroyed(a.AbstractBinderC0109a.g(parcel.readStrongBinder()), parcel.readLong()); break; case 29: - onActivityPaused(a.AbstractBinderC0111a.g(parcel.readStrongBinder()), parcel.readLong()); + onActivityPaused(a.AbstractBinderC0109a.g(parcel.readStrongBinder()), parcel.readLong()); break; case 30: - onActivityResumed(a.AbstractBinderC0111a.g(parcel.readStrongBinder()), parcel.readLong()); + onActivityResumed(a.AbstractBinderC0109a.g(parcel.readStrongBinder()), parcel.readLong()); break; case 31: - a g2 = a.AbstractBinderC0111a.g(parcel.readStrongBinder()); + a g2 = a.AbstractBinderC0109a.g(parcel.readStrongBinder()); IBinder readStrongBinder12 = parcel.readStrongBinder(); if (readStrongBinder12 != null) { IInterface queryLocalInterface12 = readStrongBinder12.queryLocalInterface("com.google.android.gms.measurement.api.internal.IBundleReceiver"); @@ -227,7 +227,7 @@ public abstract class dc extends s0 implements ec { performAction(bundle2, fcVar4, parcel.readLong()); break; case 33: - logHealthData(parcel.readInt(), parcel.readString(), a.AbstractBinderC0111a.g(parcel.readStrongBinder()), a.AbstractBinderC0111a.g(parcel.readStrongBinder()), a.AbstractBinderC0111a.g(parcel.readStrongBinder())); + logHealthData(parcel.readInt(), parcel.readString(), a.AbstractBinderC0109a.g(parcel.readStrongBinder()), a.AbstractBinderC0109a.g(parcel.readStrongBinder()), a.AbstractBinderC0109a.g(parcel.readStrongBinder())); break; case 34: IBinder readStrongBinder14 = parcel.readStrongBinder(); diff --git a/app/src/main/java/b/i/a/f/h/l/e.java b/app/src/main/java/b/i/a/f/h/l/e.java new file mode 100644 index 0000000000..ff957c4daa --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e.java @@ -0,0 +1,30 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class e extends a implements c { + public e(IBinder iBinder) { + super(iBinder, "com.google.android.gms.measurement.api.internal.IEventHandlerProxy"); + } + + @Override // b.i.a.f.h.l.c + public final void Z(String str, String str2, Bundle bundle, long j) throws RemoteException { + Parcel e = e(); + e.writeString(str); + e.writeString(str2); + v.c(e, bundle); + e.writeLong(j); + h(1, e); + } + + @Override // b.i.a.f.h.l.c + public final int a() throws RemoteException { + Parcel g = g(2, e()); + int readInt = g.readInt(); + g.recycle(); + return readInt; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/e0.java b/app/src/main/java/b/i/a/f/h/l/e0.java new file mode 100644 index 0000000000..ba8b872d16 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e0.java @@ -0,0 +1,38 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.os.Bundle; +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class e0 extends g.a { + public final /* synthetic */ Bundle n; + public final /* synthetic */ Activity o; + public final /* synthetic */ g.b p; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public e0(g.b bVar, Bundle bundle, Activity activity) { + super(true); + this.p = bVar; + this.n = bundle; + this.o = activity; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + Bundle bundle; + if (this.n != null) { + bundle = new Bundle(); + if (this.n.containsKey("com.google.app_measurement.screen_service")) { + Object obj = this.n.get("com.google.app_measurement.screen_service"); + if (obj instanceof Bundle) { + bundle.putBundle("com.google.app_measurement.screen_service", (Bundle) obj); + } + } + } else { + bundle = null; + } + g.this.j.onActivityCreated(new b(this.o), bundle, this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/e1.java b/app/src/main/java/b/i/a/f/h/l/e1.java new file mode 100644 index 0000000000..95c388048c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e1.java @@ -0,0 +1,1176 @@ +package b.i.a.f.h.l; + +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import b.i.a.f.h.l.a1; +import b.i.a.f.h.l.i1; +import b.i.a.f.h.l.u4; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class e1 extends u4 implements d6 { + public static final /* synthetic */ int j = 0; + private static final e1 zzax; + private static volatile j6 zzay; + private int zzaa; + private String zzab = ""; + private String zzac = ""; + private boolean zzad; + private b5 zzae; + private String zzaf; + private int zzag; + private int zzah; + private int zzai; + private String zzaj; + private long zzak; + private long zzal; + private String zzam; + private String zzan; + private int zzao; + private String zzap; + private f1 zzaq; + private z4 zzar; + private long zzas; + private long zzat; + private String zzau; + private String zzav; + private int zzaw; + private int zzc; + private int zzd; + private int zze; + private b5 zzf; + private b5 zzg; + private long zzh; + private long zzi; + private long zzj; + private long zzk; + private long zzl; + private String zzm = ""; + private String zzn = ""; + private String zzo = ""; + private String zzp = ""; + private int zzq; + private String zzr = ""; + private String zzs = ""; + private String zzt = ""; + private long zzu; + private long zzv; + private String zzw = ""; + private boolean zzx; + private String zzy = ""; + private long zzz; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(e1.v0()); + } + + public a(k1 k1Var) { + super(e1.v0()); + } + + public final int A() { + return ((e1) this.k).E0(); + } + + public final a1 B(int i) { + return ((e1) this.k).u(i); + } + + public final a D(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.k0((e1) this.k, j); + return this; + } + + public final a E(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.l0((e1) this.k, str); + return this; + } + + public final a F() { + if (this.l) { + n(); + this.l = false; + } + e1.v((e1) this.k); + return this; + } + + public final a G(int i) { + if (this.l) { + n(); + this.l = false; + } + e1.j0((e1) this.k, i); + return this; + } + + public final a H(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.B0((e1) this.k, j); + return this; + } + + public final a I(Iterable iterable) { + if (this.l) { + n(); + this.l = false; + } + e1.C0((e1) this.k, iterable); + return this; + } + + public final a J(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.D0((e1) this.k, str); + return this; + } + + public final a K(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.H0((e1) this.k, j); + return this; + } + + public final a M(Iterable iterable) { + if (this.l) { + n(); + this.l = false; + } + e1.I0((e1) this.k, iterable); + return this; + } + + public final a N(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.J0((e1) this.k, str); + return this; + } + + public final i1 O(int i) { + return ((e1) this.k).h0(i); + } + + public final List P() { + return Collections.unmodifiableList(((e1) this.k).K0()); + } + + public final int Q() { + return ((e1) this.k).P0(); + } + + public final a R(int i) { + if (this.l) { + n(); + this.l = false; + } + e1.A0((e1) this.k, i); + return this; + } + + public final a S(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.N0((e1) this.k, j); + return this; + } + + public final a T(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.O0((e1) this.k, str); + return this; + } + + public final long U() { + return ((e1) this.k).h1(); + } + + public final a V(int i) { + if (this.l) { + n(); + this.l = false; + } + e1.G0((e1) this.k, i); + return this; + } + + public final a W(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.S0((e1) this.k, j); + return this; + } + + public final a X(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.T0((e1) this.k, str); + return this; + } + + public final long Y() { + return ((e1) this.k).o1(); + } + + public final a Z(int i) { + if (this.l) { + n(); + this.l = false; + } + e1.M0((e1) this.k, i); + return this; + } + + public final a a0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.X0((e1) this.k, str); + return this; + } + + public final a b0() { + if (this.l) { + n(); + this.l = false; + } + e1.i0((e1) this.k); + return this; + } + + public final a c0(int i) { + if (this.l) { + n(); + this.l = false; + } + e1.R0((e1) this.k, i); + return this; + } + + public final a d0(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.b1((e1) this.k, j); + return this; + } + + public final a e0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.c1((e1) this.k, str); + return this; + } + + public final a f0() { + if (this.l) { + n(); + this.l = false; + } + e1.z0((e1) this.k); + return this; + } + + public final a g0(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.e1((e1) this.k, j); + return this; + } + + public final a h0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.f1((e1) this.k, str); + return this; + } + + public final a i0(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.j1((e1) this.k, j); + return this; + } + + public final a j0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.k1((e1) this.k, str); + return this; + } + + public final String k0() { + return ((e1) this.k).G1(); + } + + public final a l0(long j) { + if (this.l) { + n(); + this.l = false; + } + e1.l1((e1) this.k, j); + return this; + } + + public final a m0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.m1((e1) this.k, str); + return this; + } + + public final a n0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.q1((e1) this.k, str); + return this; + } + + public final a o0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.r1((e1) this.k, str); + return this; + } + + public final a p0() { + if (this.l) { + n(); + this.l = false; + } + e1.U0((e1) this.k); + return this; + } + + public final a q() { + if (this.l) { + n(); + this.l = false; + } + e1.G((e1) this.k); + return this; + } + + public final a q0() { + if (this.l) { + n(); + this.l = false; + } + int i = e1.j; + Objects.requireNonNull((e1) this.k); + throw null; + } + + public final a r(int i, a1.a aVar) { + if (this.l) { + n(); + this.l = false; + } + e1.w((e1) this.k, i, (a1) ((u4) aVar.p())); + return this; + } + + public final a r0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.u1((e1) this.k, str); + return this; + } + + public final a s(int i, i1 i1Var) { + if (this.l) { + n(); + this.l = false; + } + e1.x((e1) this.k, i, i1Var); + return this; + } + + public final String s0() { + return ((e1) this.k).S(); + } + + public final a t(a1.a aVar) { + if (this.l) { + n(); + this.l = false; + } + e1.z((e1) this.k, (a1) ((u4) aVar.p())); + return this; + } + + public final a t0() { + if (this.l) { + n(); + this.l = false; + } + e1.a1((e1) this.k); + return this; + } + + public final a u(i1.a aVar) { + if (this.l) { + n(); + this.l = false; + } + e1.A((e1) this.k, (i1) ((u4) aVar.p())); + return this; + } + + public final a u0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.x1((e1) this.k, str); + return this; + } + + public final a v(i1 i1Var) { + if (this.l) { + n(); + this.l = false; + } + e1.A((e1) this.k, i1Var); + return this; + } + + public final a v0() { + if (this.l) { + n(); + this.l = false; + } + e1.d1((e1) this.k); + return this; + } + + public final a w(Iterable iterable) { + if (this.l) { + n(); + this.l = false; + } + e1.B((e1) this.k, iterable); + return this; + } + + public final a w0(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.z1((e1) this.k, str); + return this; + } + + public final a x(String str) { + if (this.l) { + n(); + this.l = false; + } + e1.C((e1) this.k, str); + return this; + } + + public final String x0() { + return ((e1) this.k).r0(); + } + + public final a y(boolean z2) { + if (this.l) { + n(); + this.l = false; + } + e1.D((e1) this.k, z2); + return this; + } + + public final List z() { + return Collections.unmodifiableList(((e1) this.k).y0()); + } + } + + static { + e1 e1Var = new e1(); + zzax = e1Var; + u4.r(e1.class, e1Var); + } + + public e1() { + m6 m6Var = m6.k; + this.zzf = m6Var; + this.zzg = m6Var; + this.zzae = m6Var; + this.zzaf = ""; + this.zzaj = ""; + this.zzam = ""; + this.zzan = ""; + this.zzap = ""; + this.zzar = x4.k; + this.zzau = ""; + this.zzav = ""; + } + + public static void A(e1 e1Var, i1 i1Var) { + Objects.requireNonNull(e1Var); + i1Var.getClass(); + e1Var.x0(); + e1Var.zzg.add(i1Var); + } + + public static void A0(e1 e1Var, int i) { + e1Var.x0(); + e1Var.zzg.remove(i); + } + + public static void B(e1 e1Var, Iterable iterable) { + e1Var.w0(); + l3.c(iterable, e1Var.zzf); + } + + public static void B0(e1 e1Var, long j2) { + e1Var.zzc |= 8; + e1Var.zzj = j2; + } + + public static void C(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 64; + e1Var.zzm = str; + } + + public static void C0(e1 e1Var, Iterable iterable) { + b5 b5Var = e1Var.zzae; + if (!b5Var.a()) { + e1Var.zzae = u4.n(b5Var); + } + l3.c(iterable, e1Var.zzae); + } + + public static void D(e1 e1Var, boolean z2) { + e1Var.zzc |= 131072; + e1Var.zzx = z2; + } + + public static void D0(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 256; + e1Var.zzo = str; + } + + public static void F0(e1 e1Var) { + e1Var.zzc &= -65537; + e1Var.zzw = zzax.zzw; + } + + public static void G(e1 e1Var) { + e1Var.zzc |= 1; + e1Var.zze = 1; + } + + public static void G0(e1 e1Var, int i) { + e1Var.zzc |= 1024; + e1Var.zzq = i; + } + + public static void H0(e1 e1Var, long j2) { + e1Var.zzc |= 16; + e1Var.zzk = j2; + } + + public static void I0(e1 e1Var, Iterable iterable) { + z4 z4Var = e1Var.zzar; + if (!((o3) z4Var).j) { + x4 x4Var = (x4) z4Var; + int i = x4Var.m; + e1Var.zzar = x4Var.f(i == 0 ? 10 : i << 1); + } + l3.c(iterable, e1Var.zzar); + } + + public static void J0(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 512; + e1Var.zzp = str; + } + + public static void L0(e1 e1Var) { + e1Var.zzc &= -131073; + e1Var.zzx = false; + } + + public static void M0(e1 e1Var, int i) { + e1Var.zzc |= 1048576; + e1Var.zzaa = i; + } + + public static void N0(e1 e1Var, long j2) { + e1Var.zzc |= 32; + e1Var.zzl = j2; + } + + public static void O0(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 2048; + e1Var.zzr = str; + } + + public static void Q0(e1 e1Var) { + e1Var.zzc &= -262145; + e1Var.zzy = zzax.zzy; + } + + public static void R0(e1 e1Var, int i) { + e1Var.zzc |= 33554432; + e1Var.zzag = i; + } + + public static void S0(e1 e1Var, long j2) { + e1Var.zzc |= 16384; + e1Var.zzu = j2; + } + + public static void T0(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 4096; + e1Var.zzs = str; + } + + public static void U0(e1 e1Var) { + e1Var.zzc &= -2097153; + e1Var.zzab = zzax.zzab; + } + + public static void V0(e1 e1Var, int i) { + e1Var.zzd |= 2; + e1Var.zzao = i; + } + + public static void W0(e1 e1Var, long j2) { + e1Var.zzc |= 32768; + e1Var.zzv = j2; + } + + public static void X0(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 8192; + e1Var.zzt = str; + } + + public static void a1(e1 e1Var) { + Objects.requireNonNull(e1Var); + e1Var.zzae = m6.k; + } + + public static void b1(e1 e1Var, long j2) { + e1Var.zzc |= 524288; + e1Var.zzz = j2; + } + + public static void c1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 65536; + e1Var.zzw = str; + } + + public static void d1(e1 e1Var) { + e1Var.zzc &= -268435457; + e1Var.zzaj = zzax.zzaj; + } + + public static void e1(e1 e1Var, long j2) { + e1Var.zzc |= 536870912; + e1Var.zzak = j2; + } + + public static void f1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 262144; + e1Var.zzy = str; + } + + public static void i0(e1 e1Var) { + e1Var.zzc &= -17; + e1Var.zzk = 0; + } + + public static void i1(e1 e1Var) { + e1Var.zzc &= Integer.MAX_VALUE; + e1Var.zzam = zzax.zzam; + } + + public static void j0(e1 e1Var, int i) { + e1Var.w0(); + e1Var.zzf.remove(i); + } + + public static void j1(e1 e1Var, long j2) { + e1Var.zzc |= BasicMeasure.EXACTLY; + e1Var.zzal = j2; + } + + public static void k0(e1 e1Var, long j2) { + e1Var.zzc |= 4; + e1Var.zzi = j2; + } + + public static void k1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 2097152; + e1Var.zzab = str; + } + + public static void l0(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 128; + e1Var.zzn = str; + } + + public static void l1(e1 e1Var, long j2) { + e1Var.zzd |= 16; + e1Var.zzas = j2; + } + + public static void m0(e1 e1Var, boolean z2) { + e1Var.zzc |= 8388608; + e1Var.zzad = z2; + } + + public static void m1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 4194304; + e1Var.zzac = str; + } + + public static void p1(e1 e1Var, long j2) { + e1Var.zzd |= 32; + e1Var.zzat = j2; + } + + public static void q1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 16777216; + e1Var.zzaf = str; + } + + public static void r1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzc |= 268435456; + e1Var.zzaj = str; + } + + public static a u0() { + return zzax.s(); + } + + public static void u1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzd |= 4; + e1Var.zzap = str; + } + + public static void v(e1 e1Var) { + Objects.requireNonNull(e1Var); + e1Var.zzf = m6.k; + } + + public static /* synthetic */ e1 v0() { + return zzax; + } + + public static void w(e1 e1Var, int i, a1 a1Var) { + Objects.requireNonNull(e1Var); + e1Var.w0(); + e1Var.zzf.set(i, a1Var); + } + + public static void x(e1 e1Var, int i, i1 i1Var) { + Objects.requireNonNull(e1Var); + i1Var.getClass(); + e1Var.x0(); + e1Var.zzg.set(i, i1Var); + } + + public static void x1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzd |= 64; + e1Var.zzau = str; + } + + public static void y(e1 e1Var, long j2) { + e1Var.zzc |= 2; + e1Var.zzh = j2; + } + + public static void z(e1 e1Var, a1 a1Var) { + Objects.requireNonNull(e1Var); + e1Var.w0(); + e1Var.zzf.add(a1Var); + } + + public static void z0(e1 e1Var) { + e1Var.zzc &= -33; + e1Var.zzl = 0; + } + + public static void z1(e1 e1Var, String str) { + Objects.requireNonNull(e1Var); + str.getClass(); + e1Var.zzd |= 128; + e1Var.zzav = str; + } + + public final String A1() { + return this.zzn; + } + + public final String B1() { + return this.zzo; + } + + public final String C1() { + return this.zzp; + } + + public final boolean D1() { + return (this.zzc & 1024) != 0; + } + + public final boolean E() { + return (this.zzc & 1) != 0; + } + + public final int E0() { + return this.zzf.size(); + } + + public final int E1() { + return this.zzq; + } + + public final long F() { + return this.zzu; + } + + public final String F1() { + return this.zzr; + } + + public final String G1() { + return this.zzs; + } + + public final boolean H() { + return (this.zzc & 32768) != 0; + } + + public final String H1() { + return this.zzt; + } + + public final long I() { + return this.zzv; + } + + public final boolean I1() { + return (this.zzc & 16384) != 0; + } + + public final String J() { + return this.zzw; + } + + public final boolean K() { + return (this.zzc & 131072) != 0; + } + + public final List K0() { + return this.zzg; + } + + public final boolean L() { + return this.zzx; + } + + public final String M() { + return this.zzy; + } + + public final boolean N() { + return (this.zzc & 524288) != 0; + } + + public final long O() { + return this.zzz; + } + + public final boolean P() { + return (this.zzc & 1048576) != 0; + } + + public final int P0() { + return this.zzg.size(); + } + + public final int Q() { + return this.zzaa; + } + + public final String R() { + return this.zzab; + } + + public final String S() { + return this.zzac; + } + + public final boolean T() { + return (this.zzc & 8388608) != 0; + } + + public final boolean U() { + return this.zzad; + } + + public final List V() { + return this.zzae; + } + + public final String W() { + return this.zzaf; + } + + public final boolean X() { + return (this.zzc & 33554432) != 0; + } + + public final int Y() { + return this.zzag; + } + + public final boolean Y0() { + return (this.zzc & 2) != 0; + } + + public final String Z() { + return this.zzaj; + } + + public final long Z0() { + return this.zzh; + } + + public final boolean a0() { + return (this.zzc & 536870912) != 0; + } + + public final long b0() { + return this.zzak; + } + + public final boolean c0() { + return (this.zzc & BasicMeasure.EXACTLY) != 0; + } + + public final long d0() { + return this.zzal; + } + + public final String e0() { + return this.zzam; + } + + public final boolean f0() { + return (this.zzd & 2) != 0; + } + + public final int g0() { + return this.zze; + } + + public final boolean g1() { + return (this.zzc & 4) != 0; + } + + public final i1 h0(int i) { + return this.zzg.get(i); + } + + public final long h1() { + return this.zzi; + } + + public final int n0() { + return this.zzao; + } + + public final boolean n1() { + return (this.zzc & 8) != 0; + } + + public final String o0() { + return this.zzap; + } + + public final long o1() { + return this.zzj; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new e1(); + case 2: + return new a(null); + case 3: + return new o6(zzax, "\u0001-\u0000\u0002\u00015-\u0000\u0004\u0000\u0001င\u0000\u0002\u001b\u0003\u001b\u0004ဂ\u0001\u0005ဂ\u0002\u0006ဂ\u0003\u0007ဂ\u0005\bဈ\u0006\tဈ\u0007\nဈ\b\u000bဈ\t\fင\n\rဈ\u000b\u000eဈ\f\u0010ဈ\r\u0011ဂ\u000e\u0012ဂ\u000f\u0013ဈ\u0010\u0014ဇ\u0011\u0015ဈ\u0012\u0016ဂ\u0013\u0017င\u0014\u0018ဈ\u0015\u0019ဈ\u0016\u001aဂ\u0004\u001cဇ\u0017\u001d\u001b\u001eဈ\u0018\u001fင\u0019 င\u001a!င\u001b\"ဈ\u001c#ဂ\u001d$ဂ\u001e%ဈ\u001f&ဈ 'င!)ဈ\",ဉ#-\u001d.ဂ$/ဂ%2ဈ&4ဈ'5ဌ(", new Object[]{"zzc", "zzd", "zze", "zzf", a1.class, "zzg", i1.class, "zzh", "zzi", "zzj", "zzl", "zzm", "zzn", "zzo", "zzp", "zzq", "zzr", "zzs", "zzt", "zzu", "zzv", "zzw", "zzx", "zzy", "zzz", "zzaa", "zzab", "zzac", "zzk", "zzad", "zzae", y0.class, "zzaf", "zzag", "zzah", "zzai", "zzaj", "zzak", "zzal", "zzam", "zzan", "zzao", "zzap", "zzaq", "zzar", "zzas", "zzat", "zzau", "zzav", "zzaw", l1.a}); + case 4: + return zzax; + case 5: + j6 j6Var = zzay; + if (j6Var == null) { + synchronized (e1.class) { + j6Var = zzay; + if (j6Var == null) { + j6Var = new u4.a<>(zzax); + zzay = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final boolean p0() { + return (this.zzd & 16) != 0; + } + + public final long q0() { + return this.zzas; + } + + public final String r0() { + return this.zzau; + } + + public final boolean s0() { + return (this.zzd & 128) != 0; + } + + public final boolean s1() { + return (this.zzc & 16) != 0; + } + + public final String t0() { + return this.zzav; + } + + public final long t1() { + return this.zzk; + } + + public final a1 u(int i) { + return this.zzf.get(i); + } + + public final boolean v1() { + return (this.zzc & 32) != 0; + } + + public final void w0() { + b5 b5Var = this.zzf; + if (!b5Var.a()) { + this.zzf = u4.n(b5Var); + } + } + + public final long w1() { + return this.zzl; + } + + public final void x0() { + b5 b5Var = this.zzg; + if (!b5Var.a()) { + this.zzg = u4.n(b5Var); + } + } + + public final List y0() { + return this.zzf; + } + + public final String y1() { + return this.zzm; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/e2.java b/app/src/main/java/b/i/a/f/h/l/e2.java new file mode 100644 index 0000000000..2b7dddc3a3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e2.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.IInterface; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface e2 extends IInterface { + Bundle f(Bundle bundle) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/l/e3.java b/app/src/main/java/b/i/a/f/h/l/e3.java new file mode 100644 index 0000000000..a197dd0222 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e3.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public abstract class e3 extends s0 implements e2 { + public static final /* synthetic */ int a = 0; +} diff --git a/app/src/main/java/b/i/a/f/h/l/e5.java b/app/src/main/java/b/i/a/f/h/l/e5.java new file mode 100644 index 0000000000..f91bef5e43 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e5.java @@ -0,0 +1,36 @@ +package b.i.a.f.h.l; + +import com.google.android.material.shadow.ShadowDrawableWrapper; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +/* JADX WARN: Init of enum k can be incorrect */ +/* JADX WARN: Init of enum r can be incorrect */ +public enum e5 { + VOID(Void.class, Void.class, null), + INT(r1, Integer.class, 0), + LONG(Long.TYPE, Long.class, 0L), + FLOAT(Float.TYPE, Float.class, Float.valueOf(0.0f)), + DOUBLE(Double.TYPE, Double.class, Double.valueOf((double) ShadowDrawableWrapper.COS_45)), + BOOLEAN(Boolean.TYPE, Boolean.class, Boolean.FALSE), + STRING(String.class, String.class, ""), + BYTE_STRING(t3.class, t3.class, t3.j), + ENUM(r1, Integer.class, null), + MESSAGE(Object.class, Object.class, null); + + private final Class zzk; + private final Class zzl; + private final Object zzm; + + static { + Class cls = Integer.TYPE; + } + + public e5(Class cls, Class cls2, Object obj) { + this.zzk = cls; + this.zzl = cls2; + this.zzm = obj; + } + + public final Class f() { + return this.zzl; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/e6.java b/app/src/main/java/b/i/a/f/h/l/e6.java new file mode 100644 index 0000000000..e8eee0850d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e6.java @@ -0,0 +1,5342 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import b.i.a.f.h.l.h4; +import com.google.android.gms.internal.measurement.zzhi; +import com.google.android.gms.internal.measurement.zzij; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.io.IOException; +import java.lang.reflect.Field; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import sun.misc.Unsafe; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class e6 implements q6 { + public static final int[] a = new int[0]; + + /* renamed from: b reason: collision with root package name */ + public static final Unsafe f1426b = j7.k(); + public final int[] c; + public final Object[] d; + public final int e; + public final int f; + public final c6 g; + public final boolean h; + public final boolean i; + public final int[] j; + public final int k; + public final int l; + public final i6 m; + public final m5 n; + public final d7 o; + public final j4 p; + public final v5 q; + + /* JADX WARN: Incorrect args count in method signature: ([I[Ljava/lang/Object;IILb/i/a/f/h/l/c6;ZZ[IIILb/i/a/f/h/l/i6;Lb/i/a/f/h/l/m5;Lb/i/a/f/h/l/d7<**>;Lb/i/a/f/h/l/j4<*>;Lb/i/a/f/h/l/v5;)V */ + public e6(int[] iArr, Object[] objArr, int i, int i2, c6 c6Var, boolean z2, int[] iArr2, int i3, int i4, i6 i6Var, m5 m5Var, d7 d7Var, j4 j4Var, v5 v5Var) { + this.c = iArr; + this.d = objArr; + this.e = i; + this.f = i2; + boolean z3 = c6Var instanceof u4; + this.i = z2; + this.h = j4Var != null && j4Var.e(c6Var); + this.j = iArr2; + this.k = i3; + this.l = i4; + this.m = i6Var; + this.n = m5Var; + this.o = d7Var; + this.p = j4Var; + this.g = c6Var; + this.q = v5Var; + } + + public static float F(T t, long j) { + return ((Float) j7.r(t, j)).floatValue(); + } + + public static int J(T t, long j) { + return ((Integer) j7.r(t, j)).intValue(); + } + + public static long L(T t, long j) { + return ((Long) j7.r(t, j)).longValue(); + } + + public static c7 M(Object obj) { + u4 u4Var = (u4) obj; + c7 c7Var = u4Var.zzb; + if (c7Var != c7.a) { + return c7Var; + } + c7 c = c7.c(); + u4Var.zzb = c; + return c; + } + + public static boolean N(T t, long j) { + return ((Boolean) j7.r(t, j)).booleanValue(); + } + + /* JADX WARN: Incorrect args count in method signature: (Ljava/lang/Class;Lb/i/a/f/h/l/a6;Lb/i/a/f/h/l/i6;Lb/i/a/f/h/l/m5;Lb/i/a/f/h/l/d7<**>;Lb/i/a/f/h/l/j4<*>;Lb/i/a/f/h/l/v5;)Lb/i/a/f/h/l/e6; */ + public static e6 n(a6 a6Var, i6 i6Var, m5 m5Var, d7 d7Var, j4 j4Var, v5 v5Var) { + int i; + int i2; + int i3; + int[] iArr; + int i4; + int i5; + int i6; + int i7; + int i8; + int i9; + int i10; + int i11; + o6 o6Var; + int i12; + String str; + Object[] objArr; + boolean z2; + int i13; + int i14; + int i15; + Field field; + int i16; + char charAt; + int i17; + int i18; + Field field2; + Field field3; + int i19; + char charAt2; + int i20; + char charAt3; + int i21; + char charAt4; + int i22; + char charAt5; + int i23; + char charAt6; + int i24; + char charAt7; + int i25; + char charAt8; + int i26; + char charAt9; + int i27; + char charAt10; + int i28; + char charAt11; + int i29; + char charAt12; + int i30; + char charAt13; + if (a6Var instanceof o6) { + o6 o6Var2 = (o6) a6Var; + int i31 = 0; + boolean z3 = ((o6Var2.d & 1) == 1 ? (char) 1 : 2) == 2; + String str2 = o6Var2.f1462b; + int length = str2.length(); + if (str2.charAt(0) >= 55296) { + int i32 = 1; + while (true) { + i = i32 + 1; + if (str2.charAt(i32) < 55296) { + break; + } + i32 = i; + } + } else { + i = 1; + } + int i33 = i + 1; + int charAt14 = str2.charAt(i); + if (charAt14 >= 55296) { + int i34 = charAt14 & 8191; + int i35 = 13; + while (true) { + i30 = i33 + 1; + charAt13 = str2.charAt(i33); + if (charAt13 < 55296) { + break; + } + i34 |= (charAt13 & 8191) << i35; + i35 += 13; + i33 = i30; + } + charAt14 = i34 | (charAt13 << i35); + i33 = i30; + } + if (charAt14 == 0) { + iArr = a; + i7 = 0; + i6 = 0; + i5 = 0; + i4 = 0; + i3 = 0; + i2 = 0; + } else { + int i36 = i33 + 1; + int charAt15 = str2.charAt(i33); + if (charAt15 >= 55296) { + int i37 = charAt15 & 8191; + int i38 = 13; + while (true) { + i29 = i36 + 1; + charAt12 = str2.charAt(i36); + if (charAt12 < 55296) { + break; + } + i37 |= (charAt12 & 8191) << i38; + i38 += 13; + i36 = i29; + } + charAt15 = i37 | (charAt12 << i38); + i36 = i29; + } + int i39 = i36 + 1; + int charAt16 = str2.charAt(i36); + if (charAt16 >= 55296) { + int i40 = charAt16 & 8191; + int i41 = 13; + while (true) { + i28 = i39 + 1; + charAt11 = str2.charAt(i39); + if (charAt11 < 55296) { + break; + } + i40 |= (charAt11 & 8191) << i41; + i41 += 13; + i39 = i28; + } + charAt16 = i40 | (charAt11 << i41); + i39 = i28; + } + int i42 = i39 + 1; + i6 = str2.charAt(i39); + if (i6 >= 55296) { + int i43 = i6 & 8191; + int i44 = 13; + while (true) { + i27 = i42 + 1; + charAt10 = str2.charAt(i42); + if (charAt10 < 55296) { + break; + } + i43 |= (charAt10 & 8191) << i44; + i44 += 13; + i42 = i27; + } + i6 = i43 | (charAt10 << i44); + i42 = i27; + } + int i45 = i42 + 1; + i5 = str2.charAt(i42); + if (i5 >= 55296) { + int i46 = i5 & 8191; + int i47 = 13; + while (true) { + i26 = i45 + 1; + charAt9 = str2.charAt(i45); + if (charAt9 < 55296) { + break; + } + i46 |= (charAt9 & 8191) << i47; + i47 += 13; + i45 = i26; + } + i5 = i46 | (charAt9 << i47); + i45 = i26; + } + int i48 = i45 + 1; + i4 = str2.charAt(i45); + if (i4 >= 55296) { + int i49 = i4 & 8191; + int i50 = 13; + while (true) { + i25 = i48 + 1; + charAt8 = str2.charAt(i48); + if (charAt8 < 55296) { + break; + } + i49 |= (charAt8 & 8191) << i50; + i50 += 13; + i48 = i25; + } + i4 = i49 | (charAt8 << i50); + i48 = i25; + } + int i51 = i48 + 1; + int charAt17 = str2.charAt(i48); + if (charAt17 >= 55296) { + int i52 = charAt17 & 8191; + int i53 = 13; + while (true) { + i24 = i51 + 1; + charAt7 = str2.charAt(i51); + if (charAt7 < 55296) { + break; + } + i52 |= (charAt7 & 8191) << i53; + i53 += 13; + i51 = i24; + } + charAt17 = i52 | (charAt7 << i53); + i51 = i24; + } + int i54 = i51 + 1; + int charAt18 = str2.charAt(i51); + if (charAt18 >= 55296) { + int i55 = charAt18 & 8191; + int i56 = 13; + while (true) { + i23 = i54 + 1; + charAt6 = str2.charAt(i54); + if (charAt6 < 55296) { + break; + } + i55 |= (charAt6 & 8191) << i56; + i56 += 13; + i54 = i23; + } + charAt18 = i55 | (charAt6 << i56); + i54 = i23; + } + int i57 = i54 + 1; + i2 = str2.charAt(i54); + if (i2 >= 55296) { + int i58 = i2 & 8191; + int i59 = i57; + int i60 = 13; + while (true) { + i22 = i59 + 1; + charAt5 = str2.charAt(i59); + if (charAt5 < 55296) { + break; + } + i58 |= (charAt5 & 8191) << i60; + i60 += 13; + i59 = i22; + } + i2 = i58 | (charAt5 << i60); + i57 = i22; + } + i3 = (charAt15 << 1) + charAt16; + i7 = charAt17; + iArr = new int[(i2 + charAt17 + charAt18)]; + i31 = charAt15; + i33 = i57; + } + Unsafe unsafe = f1426b; + Object[] objArr2 = o6Var2.c; + Class cls = o6Var2.a.getClass(); + int[] iArr2 = new int[(i4 * 3)]; + Object[] objArr3 = new Object[(i4 << 1)]; + int i61 = i2 + i7; + int i62 = i2; + int i63 = i33; + int i64 = i61; + int i65 = 0; + int i66 = 0; + while (i63 < length) { + int i67 = i63 + 1; + int charAt19 = str2.charAt(i63); + if (charAt19 >= 55296) { + int i68 = charAt19 & 8191; + int i69 = i67; + int i70 = 13; + while (true) { + i21 = i69 + 1; + charAt4 = str2.charAt(i69); + i8 = i2; + if (charAt4 < 55296) { + break; + } + i68 |= (charAt4 & 8191) << i70; + i70 += 13; + i69 = i21; + i2 = i8; + } + charAt19 = i68 | (charAt4 << i70); + i9 = i21; + } else { + i8 = i2; + i9 = i67; + } + int i71 = i9 + 1; + int charAt20 = str2.charAt(i9); + if (charAt20 >= 55296) { + int i72 = charAt20 & 8191; + int i73 = i71; + int i74 = 13; + while (true) { + i20 = i73 + 1; + charAt3 = str2.charAt(i73); + i10 = i5; + if (charAt3 < 55296) { + break; + } + i72 |= (charAt3 & 8191) << i74; + i74 += 13; + i73 = i20; + i5 = i10; + } + charAt20 = i72 | (charAt3 << i74); + i11 = i20; + } else { + i10 = i5; + i11 = i71; + } + int i75 = charAt20 & 255; + if ((charAt20 & 1024) != 0) { + iArr[i65] = i66; + i65++; + } + if (i75 >= 51) { + int i76 = i11 + 1; + int charAt21 = str2.charAt(i11); + char c = 55296; + if (charAt21 >= 55296) { + int i77 = 13; + int i78 = charAt21 & 8191; + int i79 = i76; + while (true) { + i19 = i79 + 1; + charAt2 = str2.charAt(i79); + if (charAt2 < c) { + break; + } + i78 |= (charAt2 & 8191) << i77; + i77 += 13; + i79 = i19; + c = 55296; + } + charAt21 = i78 | (charAt2 << i77); + i18 = i19; + } else { + i18 = i76; + } + int i80 = i75 - 51; + o6Var = o6Var2; + if (i80 == 9 || i80 == 17) { + objArr3[((i66 / 3) << 1) + 1] = objArr2[i3]; + i3++; + } else if (i80 == 12 && !z3) { + objArr3[((i66 / 3) << 1) + 1] = objArr2[i3]; + i3++; + } + int i81 = charAt21 << 1; + Object obj = objArr2[i81]; + if (obj instanceof Field) { + field2 = (Field) obj; + } else { + field2 = p(cls, (String) obj); + objArr2[i81] = field2; + } + i14 = (int) unsafe.objectFieldOffset(field2); + int i82 = i81 + 1; + Object obj2 = objArr2[i82]; + if (obj2 instanceof Field) { + field3 = (Field) obj2; + } else { + field3 = p(cls, (String) obj2); + objArr2[i82] = field3; + } + int objectFieldOffset = (int) unsafe.objectFieldOffset(field3); + str = str2; + z2 = z3; + i11 = i18; + i12 = i3; + i15 = objectFieldOffset; + objArr = objArr3; + i13 = 0; + } else { + o6Var = o6Var2; + int i83 = i3 + 1; + Field p = p(cls, (String) objArr2[i3]); + if (i75 == 9 || i75 == 17) { + objArr3[((i66 / 3) << 1) + 1] = p.getType(); + } else { + if (i75 == 27 || i75 == 49) { + i17 = i83 + 1; + objArr3[((i66 / 3) << 1) + 1] = objArr2[i83]; + } else if (i75 == 12 || i75 == 30 || i75 == 44) { + if (!z3) { + i17 = i83 + 1; + objArr3[((i66 / 3) << 1) + 1] = objArr2[i83]; + } + } else if (i75 == 50) { + int i84 = i62 + 1; + iArr[i62] = i66; + int i85 = (i66 / 3) << 1; + i17 = i83 + 1; + objArr3[i85] = objArr2[i83]; + if ((charAt20 & 2048) != 0) { + i83 = i17 + 1; + objArr3[i85 + 1] = objArr2[i17]; + objArr = objArr3; + i62 = i84; + z2 = z3; + i14 = (int) unsafe.objectFieldOffset(p); + if ((charAt20 & 4096) == 4096 || i75 > 17) { + i12 = i83; + str = str2; + i15 = 1048575; + i13 = 0; + } else { + int i86 = i11 + 1; + int charAt22 = str2.charAt(i11); + if (charAt22 >= 55296) { + int i87 = charAt22 & 8191; + int i88 = 13; + while (true) { + i16 = i86 + 1; + charAt = str2.charAt(i86); + if (charAt < 55296) { + break; + } + i87 |= (charAt & 8191) << i88; + i88 += 13; + i86 = i16; + } + charAt22 = i87 | (charAt << i88); + i86 = i16; + } + int i89 = (charAt22 / 32) + (i31 << 1); + Object obj3 = objArr2[i89]; + i12 = i83; + if (obj3 instanceof Field) { + field = (Field) obj3; + } else { + field = p(cls, (String) obj3); + objArr2[i89] = field; + } + str = str2; + i15 = (int) unsafe.objectFieldOffset(field); + i13 = charAt22 % 32; + i11 = i86; + } + if (i75 >= 18 && i75 <= 49) { + iArr[i64] = i14; + i64++; + } + } else { + i62 = i84; + } + } + i83 = i17; + } + z2 = z3; + objArr = objArr3; + i14 = (int) unsafe.objectFieldOffset(p); + if ((charAt20 & 4096) == 4096) { + } + i12 = i83; + str = str2; + i15 = 1048575; + i13 = 0; + iArr[i64] = i14; + i64++; + } + int i90 = i66 + 1; + iArr2[i66] = charAt19; + int i91 = i90 + 1; + iArr2[i90] = ((charAt20 & 512) != 0 ? 536870912 : 0) | ((charAt20 & 256) != 0 ? 268435456 : 0) | (i75 << 20) | i14; + i66 = i91 + 1; + iArr2[i91] = (i13 << 20) | i15; + z3 = z2; + i63 = i11; + i6 = i6; + length = length; + i2 = i8; + i5 = i10; + objArr3 = objArr; + str2 = str; + i3 = i12; + o6Var2 = o6Var; + } + return new e6(iArr2, objArr3, i6, i5, o6Var2.a, z3, iArr, i2, i61, i6Var, m5Var, d7Var, j4Var, v5Var); + } + z6 z6Var = (z6) a6Var; + throw new NoSuchMethodError(); + } + + public static Field p(Class cls, String str) { + try { + return cls.getDeclaredField(str); + } catch (NoSuchFieldException unused) { + Field[] declaredFields = cls.getDeclaredFields(); + for (Field field : declaredFields) { + if (str.equals(field.getName())) { + return field; + } + } + String name = cls.getName(); + String arrays = Arrays.toString(declaredFields); + throw new RuntimeException(a.H(a.Q(a.b(arrays, name.length() + a.b(str, 40)), "Field ", str, " for ", name), " not found. Known fields are ", arrays)); + } + } + + public static List q(Object obj, long j) { + return (List) j7.r(obj, j); + } + + public static void r(int i, Object obj, v7 v7Var) throws IOException { + if (obj instanceof String) { + ((g4) v7Var).a.k(i, (String) obj); + return; + } + ((g4) v7Var).a.h(i, (t3) obj); + } + + public static void s(d7 d7Var, T t, v7 v7Var) throws IOException { + d7Var.c(d7Var.e(t), v7Var); + } + + public static double y(T t, long j) { + return ((Double) j7.r(t, j)).doubleValue(); + } + + public final Object A(int i) { + return this.d[(i / 3) << 1]; + } + + public final void B(T t, int i) { + int i2 = this.c[i + 2]; + long j = (long) (1048575 & i2); + if (j != 1048575) { + j7.e.e(t, j, (1 << (i2 >>> 20)) | j7.b(t, j)); + } + } + + public final void C(T t, int i, int i2) { + j7.e.e(t, (long) (this.c[i2 + 2] & 1048575), i); + } + + /* JADX WARNING: Removed duplicated region for block: B:168:0x0527 */ + /* JADX WARNING: Removed duplicated region for block: B:8:0x0031 */ + public final void D(T t, v7 v7Var) throws IOException { + Map.Entry entry; + Iterator> it; + int length; + int i; + int i2; + if (this.h) { + n4 b2 = this.p.b(t); + if (!b2.f1446b.isEmpty()) { + it = b2.l(); + entry = it.next(); + length = this.c.length; + Unsafe unsafe = f1426b; + int i3 = 1048575; + int i4 = 0; + for (i = 0; i < length; i += 3) { + int I = I(i); + int[] iArr = this.c; + int i5 = iArr[i]; + int i6 = (I & 267386880) >>> 20; + if (i6 <= 17) { + int i7 = iArr[i + 2]; + int i8 = i7 & 1048575; + if (i8 != i3) { + i4 = unsafe.getInt(t, (long) i8); + i3 = i8; + } + i2 = 1 << (i7 >>> 20); + } else { + i2 = 0; + } + while (entry != null && this.p.a(entry) <= i5) { + this.p.d(v7Var, entry); + entry = it.hasNext() ? it.next() : null; + } + long j = (long) (I & 1048575); + switch (i6) { + case 0: + if ((i2 & i4) != 0) { + ((g4) v7Var).a(i5, j7.q(t, j)); + continue; + } + case 1: + if ((i2 & i4) != 0) { + ((g4) v7Var).b(i5, j7.n(t, j)); + } else { + continue; + } + case 2: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.g(i5, unsafe.getLong(t, j)); + } else { + continue; + } + case 3: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.g(i5, unsafe.getLong(t, j)); + } else { + continue; + } + case 4: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.s(i5, unsafe.getInt(t, j)); + } else { + continue; + } + case 5: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.z(i5, unsafe.getLong(t, j)); + } else { + continue; + } + case 6: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.G(i5, unsafe.getInt(t, j)); + } else { + continue; + } + case 7: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.l(i5, j7.m(t, j)); + } else { + continue; + } + case 8: + if ((i2 & i4) != 0) { + r(i5, unsafe.getObject(t, j), v7Var); + } else { + continue; + } + case 9: + if ((i2 & i4) != 0) { + ((g4) v7Var).d(i5, unsafe.getObject(t, j), o(i)); + } else { + continue; + } + case 10: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.h(i5, (t3) unsafe.getObject(t, j)); + } else { + continue; + } + case 11: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.y(i5, unsafe.getInt(t, j)); + } else { + continue; + } + case 12: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.s(i5, unsafe.getInt(t, j)); + } else { + continue; + } + case 13: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.G(i5, unsafe.getInt(t, j)); + } else { + continue; + } + case 14: + if ((i2 & i4) != 0) { + ((g4) v7Var).a.z(i5, unsafe.getLong(t, j)); + } else { + continue; + } + case 15: + if ((i2 & i4) != 0) { + ((g4) v7Var).g(i5, unsafe.getInt(t, j)); + } else { + continue; + } + case 16: + if ((i2 & i4) != 0) { + ((g4) v7Var).f(i5, unsafe.getLong(t, j)); + } else { + continue; + } + case 17: + if ((i2 & i4) != 0) { + ((g4) v7Var).e(i5, unsafe.getObject(t, j), o(i)); + } else { + continue; + } + case 18: + s6.h(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 19: + s6.q(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 20: + s6.u(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 21: + s6.x(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 22: + s6.J(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 23: + s6.D(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 24: + s6.O(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 25: + s6.R(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 26: + s6.f(this.c[i], (List) unsafe.getObject(t, j), v7Var); + break; + case 27: + s6.g(this.c[i], (List) unsafe.getObject(t, j), v7Var, o(i)); + break; + case 28: + s6.o(this.c[i], (List) unsafe.getObject(t, j), v7Var); + break; + case 29: + s6.M(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 30: + s6.Q(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 31: + s6.P(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 32: + s6.G(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 33: + s6.N(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 34: + s6.A(this.c[i], (List) unsafe.getObject(t, j), v7Var, false); + break; + case 35: + s6.h(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 36: + s6.q(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 37: + s6.u(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 38: + s6.x(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 39: + s6.J(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 40: + s6.D(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 41: + s6.O(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 42: + s6.R(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 43: + s6.M(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 44: + s6.Q(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 45: + s6.P(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 46: + s6.G(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 47: + s6.N(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 48: + s6.A(this.c[i], (List) unsafe.getObject(t, j), v7Var, true); + break; + case 49: + s6.p(this.c[i], (List) unsafe.getObject(t, j), v7Var, o(i)); + break; + case 50: + t(v7Var, i5, unsafe.getObject(t, j), i); + break; + case 51: + if (w(t, i5, i)) { + ((g4) v7Var).a(i5, y(t, j)); + break; + } + break; + case 52: + if (w(t, i5, i)) { + ((g4) v7Var).b(i5, F(t, j)); + break; + } + break; + case 53: + if (w(t, i5, i)) { + ((g4) v7Var).a.g(i5, L(t, j)); + break; + } + break; + case 54: + if (w(t, i5, i)) { + ((g4) v7Var).a.g(i5, L(t, j)); + break; + } + break; + case 55: + if (w(t, i5, i)) { + ((g4) v7Var).a.s(i5, J(t, j)); + break; + } + break; + case 56: + if (w(t, i5, i)) { + ((g4) v7Var).a.z(i5, L(t, j)); + break; + } + break; + case 57: + if (w(t, i5, i)) { + ((g4) v7Var).a.G(i5, J(t, j)); + break; + } + break; + case 58: + if (w(t, i5, i)) { + ((g4) v7Var).a.l(i5, N(t, j)); + break; + } + break; + case 59: + if (w(t, i5, i)) { + r(i5, unsafe.getObject(t, j), v7Var); + break; + } + break; + case 60: + if (w(t, i5, i)) { + ((g4) v7Var).d(i5, unsafe.getObject(t, j), o(i)); + break; + } + break; + case 61: + if (w(t, i5, i)) { + ((g4) v7Var).a.h(i5, (t3) unsafe.getObject(t, j)); + break; + } + break; + case 62: + if (w(t, i5, i)) { + ((g4) v7Var).a.y(i5, J(t, j)); + break; + } + break; + case 63: + if (w(t, i5, i)) { + ((g4) v7Var).a.s(i5, J(t, j)); + break; + } + break; + case 64: + if (w(t, i5, i)) { + ((g4) v7Var).a.G(i5, J(t, j)); + break; + } + break; + case 65: + if (w(t, i5, i)) { + ((g4) v7Var).a.z(i5, L(t, j)); + break; + } + break; + case 66: + if (w(t, i5, i)) { + ((g4) v7Var).g(i5, J(t, j)); + break; + } + break; + case 67: + if (w(t, i5, i)) { + ((g4) v7Var).f(i5, L(t, j)); + break; + } + break; + case 68: + if (w(t, i5, i)) { + ((g4) v7Var).e(i5, unsafe.getObject(t, j), o(i)); + break; + } + break; + } + } + while (entry != null) { + this.p.d(v7Var, entry); + entry = it.hasNext() ? it.next() : null; + } + s(this.o, t, v7Var); + } + } + it = null; + entry = null; + length = this.c.length; + Unsafe unsafe = f1426b; + int i3 = 1048575; + int i4 = 0; + while (i < length) { + } + while (entry != null) { + } + s(this.o, t, v7Var); + } + + public final void E(T t, T t2, int i) { + int[] iArr = this.c; + int i2 = iArr[i + 1]; + int i3 = iArr[i]; + long j = (long) (i2 & 1048575); + if (w(t2, i3, i)) { + Object obj = null; + if (w(t, i3, i)) { + obj = j7.r(t, j); + } + Object r = j7.r(t2, j); + if (obj != null && r != null) { + j7.f(t, j, w4.c(obj, r)); + C(t, i3, i); + } else if (r != null) { + j7.f(t, j, r); + C(t, i3, i); + } + } + } + + public final a5 G(int i) { + return (a5) this.d[((i / 3) << 1) + 1]; + } + + public final boolean H(T t, T t2, int i) { + return v(t, i) == v(t2, i); + } + + public final int I(int i) { + return this.c[i + 1]; + } + + public final int K(int i) { + return this.c[i + 2]; + } + + @Override // b.i.a.f.h.l.q6 + public final T a() { + return (T) this.m.b(this.g); + } + + @Override // b.i.a.f.h.l.q6 + public final int b(T t) { + int i; + int i2; + int length = this.c.length; + int i3 = 0; + for (int i4 = 0; i4 < length; i4 += 3) { + int I = I(i4); + int i5 = this.c[i4]; + long j = (long) (1048575 & I); + int i6 = 37; + switch ((I & 267386880) >>> 20) { + case 0: + i2 = i3 * 53; + i = w4.a(Double.doubleToLongBits(j7.q(t, j))); + i3 = i + i2; + break; + case 1: + i2 = i3 * 53; + i = Float.floatToIntBits(j7.n(t, j)); + i3 = i + i2; + break; + case 2: + i2 = i3 * 53; + i = w4.a(j7.i(t, j)); + i3 = i + i2; + break; + case 3: + i2 = i3 * 53; + i = w4.a(j7.i(t, j)); + i3 = i + i2; + break; + case 4: + i2 = i3 * 53; + i = j7.b(t, j); + i3 = i + i2; + break; + case 5: + i2 = i3 * 53; + i = w4.a(j7.i(t, j)); + i3 = i + i2; + break; + case 6: + i2 = i3 * 53; + i = j7.b(t, j); + i3 = i + i2; + break; + case 7: + i2 = i3 * 53; + i = w4.b(j7.m(t, j)); + i3 = i + i2; + break; + case 8: + i2 = i3 * 53; + i = ((String) j7.r(t, j)).hashCode(); + i3 = i + i2; + break; + case 9: + Object r = j7.r(t, j); + if (r != null) { + i6 = r.hashCode(); + } + i3 = (i3 * 53) + i6; + break; + case 10: + i2 = i3 * 53; + i = j7.r(t, j).hashCode(); + i3 = i + i2; + break; + case 11: + i2 = i3 * 53; + i = j7.b(t, j); + i3 = i + i2; + break; + case 12: + i2 = i3 * 53; + i = j7.b(t, j); + i3 = i + i2; + break; + case 13: + i2 = i3 * 53; + i = j7.b(t, j); + i3 = i + i2; + break; + case 14: + i2 = i3 * 53; + i = w4.a(j7.i(t, j)); + i3 = i + i2; + break; + case 15: + i2 = i3 * 53; + i = j7.b(t, j); + i3 = i + i2; + break; + case 16: + i2 = i3 * 53; + i = w4.a(j7.i(t, j)); + i3 = i + i2; + break; + case 17: + Object r2 = j7.r(t, j); + if (r2 != null) { + i6 = r2.hashCode(); + } + i3 = (i3 * 53) + i6; + break; + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + i2 = i3 * 53; + i = j7.r(t, j).hashCode(); + i3 = i + i2; + break; + case 50: + i2 = i3 * 53; + i = j7.r(t, j).hashCode(); + i3 = i + i2; + break; + case 51: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = w4.a(Double.doubleToLongBits(y(t, j))); + i3 = i + i2; + break; + } else { + break; + } + case 52: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = Float.floatToIntBits(F(t, j)); + i3 = i + i2; + break; + } else { + break; + } + case 53: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = w4.a(L(t, j)); + i3 = i + i2; + break; + } else { + break; + } + case 54: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = w4.a(L(t, j)); + i3 = i + i2; + break; + } else { + break; + } + case 55: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = J(t, j); + i3 = i + i2; + break; + } else { + break; + } + case 56: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = w4.a(L(t, j)); + i3 = i + i2; + break; + } else { + break; + } + case 57: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = J(t, j); + i3 = i + i2; + break; + } else { + break; + } + case 58: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = w4.b(N(t, j)); + i3 = i + i2; + break; + } else { + break; + } + case 59: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = ((String) j7.r(t, j)).hashCode(); + i3 = i + i2; + break; + } else { + break; + } + case 60: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = j7.r(t, j).hashCode(); + i3 = i + i2; + break; + } else { + break; + } + case 61: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = j7.r(t, j).hashCode(); + i3 = i + i2; + break; + } else { + break; + } + case 62: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = J(t, j); + i3 = i + i2; + break; + } else { + break; + } + case 63: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = J(t, j); + i3 = i + i2; + break; + } else { + break; + } + case 64: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = J(t, j); + i3 = i + i2; + break; + } else { + break; + } + case 65: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = w4.a(L(t, j)); + i3 = i + i2; + break; + } else { + break; + } + case 66: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = J(t, j); + i3 = i + i2; + break; + } else { + break; + } + case 67: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = w4.a(L(t, j)); + i3 = i + i2; + break; + } else { + break; + } + case 68: + if (w(t, i5, i4)) { + i2 = i3 * 53; + i = j7.r(t, j).hashCode(); + i3 = i + i2; + break; + } else { + break; + } + } + } + int hashCode = this.o.e(t).hashCode() + (i3 * 53); + return this.h ? (hashCode * 53) + this.p.b(t).hashCode() : hashCode; + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v15, resolved type: b.i.a.f.h.l.q6 */ + /* JADX DEBUG: Multi-variable search result rejected for r1v11, resolved type: b.i.a.f.h.l.q6 */ + /* JADX DEBUG: Multi-variable search result rejected for r0v22, resolved type: b.i.a.f.h.l.q6 */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.i.a.f.h.l.q6 + public final boolean c(T t) { + int i; + int i2; + int i3 = 1048575; + int i4 = 0; + int i5 = 0; + while (true) { + boolean z2 = true; + if (i5 >= this.k) { + return !this.h || this.p.b(t).m(); + } + int i6 = this.j[i5]; + int i7 = this.c[i6]; + int I = I(i6); + int i8 = this.c[i6 + 2]; + int i9 = i8 & 1048575; + int i10 = 1 << (i8 >>> 20); + if (i9 != i3) { + if (i9 != 1048575) { + i4 = f1426b.getInt(t, (long) i9); + } + i = i4; + i2 = i9; + } else { + i2 = i3; + i = i4; + } + if (((268435456 & I) != 0) && !x(t, i6, i2, i, i10)) { + return false; + } + int i11 = (267386880 & I) >>> 20; + if (i11 != 9 && i11 != 17) { + if (i11 != 27) { + if (i11 == 60 || i11 == 68) { + if (w(t, i7, i6) && !o(i6).c(j7.r(t, (long) (I & 1048575)))) { + return false; + } + } else if (i11 != 49) { + if (i11 == 50 && !this.q.e(j7.r(t, (long) (I & 1048575))).isEmpty()) { + Objects.requireNonNull(this.q.g(A(i6))); + throw null; + } + } + } + List list = (List) j7.r(t, (long) (I & 1048575)); + if (!list.isEmpty()) { + q6 o = o(i6); + int i12 = 0; + while (true) { + if (i12 >= list.size()) { + break; + } else if (!o.c(list.get(i12))) { + z2 = false; + break; + } else { + i12++; + } + } + } + if (!z2) { + return false; + } + } else if (x(t, i6, i2, i, i10) && !o(i6).c(j7.r(t, (long) (I & 1048575)))) { + return false; + } + i5++; + i3 = i2; + i4 = i; + } + } + + @Override // b.i.a.f.h.l.q6 + public final void d(T t) { + int i; + int i2 = this.k; + while (true) { + i = this.l; + if (i2 >= i) { + break; + } + long I = (long) (I(this.j[i2]) & 1048575); + Object r = j7.r(t, I); + if (r != null) { + j7.f(t, I, this.q.c(r)); + } + i2++; + } + int length = this.j.length; + while (i < length) { + this.n.b(t, (long) this.j[i]); + i++; + } + this.o.h(t); + if (this.h) { + this.p.g(t); + } + } + + @Override // b.i.a.f.h.l.q6 + public final int e(T t) { + int i; + int i2; + int i3; + int i4; + int i5; + int i6; + int i7; + int i8; + int i9; + if (this.i) { + Unsafe unsafe = f1426b; + int i10 = 0; + for (int i11 = 0; i11 < this.c.length; i11 += 3) { + int I = I(i11); + int i12 = (I & 267386880) >>> 20; + int i13 = this.c[i11]; + long j = (long) (I & 1048575); + if (i12 >= o4.DOUBLE_LIST_PACKED.a() && i12 <= o4.SINT64_LIST_PACKED.a()) { + int i14 = this.c[i11 + 2]; + } + switch (i12) { + case 0: + if (v(t, i11)) { + i6 = zzhi.u(i13); + i10 += i6; + break; + } else { + break; + } + case 1: + if (v(t, i11)) { + i6 = zzhi.n(i13); + i10 += i6; + break; + } else { + break; + } + case 2: + if (v(t, i11)) { + i6 = zzhi.B(i13, j7.i(t, j)); + i10 += i6; + break; + } else { + break; + } + case 3: + if (v(t, i11)) { + i6 = zzhi.E(i13, j7.i(t, j)); + i10 += i6; + break; + } else { + break; + } + case 4: + if (v(t, i11)) { + i6 = zzhi.I(i13, j7.b(t, j)); + i10 += i6; + break; + } else { + break; + } + case 5: + if (v(t, i11)) { + i6 = zzhi.N(i13); + i10 += i6; + break; + } else { + break; + } + case 6: + if (v(t, i11)) { + i6 = zzhi.S(i13); + i10 += i6; + break; + } else { + break; + } + case 7: + if (v(t, i11)) { + i6 = zzhi.v(i13); + i10 += i6; + break; + } else { + break; + } + case 8: + if (v(t, i11)) { + Object r = j7.r(t, j); + i6 = r instanceof t3 ? zzhi.w(i13, (t3) r) : zzhi.o(i13, (String) r); + i10 += i6; + break; + } else { + break; + } + case 9: + if (v(t, i11)) { + i6 = s6.a(i13, j7.r(t, j), o(i11)); + i10 += i6; + break; + } else { + break; + } + case 10: + if (v(t, i11)) { + i6 = zzhi.w(i13, (t3) j7.r(t, j)); + i10 += i6; + break; + } else { + break; + } + case 11: + if (v(t, i11)) { + i6 = zzhi.M(i13, j7.b(t, j)); + i10 += i6; + break; + } else { + break; + } + case 12: + if (v(t, i11)) { + i6 = zzhi.U(i13, j7.b(t, j)); + i10 += i6; + break; + } else { + break; + } + case 13: + if (v(t, i11)) { + i6 = zzhi.T(i13); + i10 += i6; + break; + } else { + break; + } + case 14: + if (v(t, i11)) { + i6 = zzhi.Q(i13); + i10 += i6; + break; + } else { + break; + } + case 15: + if (v(t, i11)) { + i6 = zzhi.P(i13, j7.b(t, j)); + i10 += i6; + break; + } else { + break; + } + case 16: + if (v(t, i11)) { + i6 = zzhi.J(i13, j7.i(t, j)); + i10 += i6; + break; + } else { + break; + } + case 17: + if (v(t, i11)) { + i6 = zzhi.x(i13, (c6) j7.r(t, j), o(i11)); + i10 += i6; + break; + } else { + break; + } + case 18: + i6 = s6.K(i13, q(t, j)); + i10 += i6; + break; + case 19: + i6 = s6.H(i13, q(t, j)); + i10 += i6; + break; + case 20: + i6 = s6.k(i13, q(t, j)); + i10 += i6; + break; + case 21: + i6 = s6.r(i13, q(t, j)); + i10 += i6; + break; + case 22: + i6 = s6.y(i13, q(t, j)); + i10 += i6; + break; + case 23: + i6 = s6.K(i13, q(t, j)); + i10 += i6; + break; + case 24: + i6 = s6.H(i13, q(t, j)); + i10 += i6; + break; + case 25: + List q = q(t, j); + Class cls = s6.a; + int size = q.size(); + i6 = size == 0 ? 0 : size * zzhi.v(i13); + i10 += i6; + break; + case 26: + i6 = s6.b(i13, q(t, j)); + i10 += i6; + break; + case 27: + i6 = s6.c(i13, q(t, j), o(i11)); + i10 += i6; + break; + case 28: + i6 = s6.l(i13, q(t, j)); + i10 += i6; + break; + case 29: + i6 = s6.B(i13, q(t, j)); + i10 += i6; + break; + case 30: + i6 = s6.v(i13, q(t, j)); + i10 += i6; + break; + case 31: + i6 = s6.H(i13, q(t, j)); + i10 += i6; + break; + case 32: + i6 = s6.K(i13, q(t, j)); + i10 += i6; + break; + case 33: + i6 = s6.E(i13, q(t, j)); + i10 += i6; + break; + case 34: + i6 = s6.s(i13, q(t, j)); + i10 += i6; + break; + case 35: + i9 = s6.L((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 36: + i9 = s6.I((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 37: + i9 = s6.d((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 38: + i9 = s6.n((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 39: + i9 = s6.z((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 40: + i9 = s6.L((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 41: + i9 = s6.I((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 42: + Class cls2 = s6.a; + i9 = ((List) unsafe.getObject(t, j)).size(); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 43: + i9 = s6.C((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 44: + i9 = s6.w((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 45: + i9 = s6.I((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 46: + i9 = s6.L((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 47: + i9 = s6.F((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 48: + i9 = s6.t((List) unsafe.getObject(t, j)); + if (i9 > 0) { + i8 = zzhi.D(i13); + i7 = zzhi.L(i9); + i10 = i7 + i8 + i9 + i10; + break; + } else { + break; + } + case 49: + i6 = s6.m(i13, q(t, j), o(i11)); + i10 += i6; + break; + case 50: + i6 = this.q.i(i13, j7.r(t, j), A(i11)); + i10 += i6; + break; + case 51: + if (w(t, i13, i11)) { + i6 = zzhi.u(i13); + i10 += i6; + break; + } else { + break; + } + case 52: + if (w(t, i13, i11)) { + i6 = zzhi.n(i13); + i10 += i6; + break; + } else { + break; + } + case 53: + if (w(t, i13, i11)) { + i6 = zzhi.B(i13, L(t, j)); + i10 += i6; + break; + } else { + break; + } + case 54: + if (w(t, i13, i11)) { + i6 = zzhi.E(i13, L(t, j)); + i10 += i6; + break; + } else { + break; + } + case 55: + if (w(t, i13, i11)) { + i6 = zzhi.I(i13, J(t, j)); + i10 += i6; + break; + } else { + break; + } + case 56: + if (w(t, i13, i11)) { + i6 = zzhi.N(i13); + i10 += i6; + break; + } else { + break; + } + case 57: + if (w(t, i13, i11)) { + i6 = zzhi.S(i13); + i10 += i6; + break; + } else { + break; + } + case 58: + if (w(t, i13, i11)) { + i6 = zzhi.v(i13); + i10 += i6; + break; + } else { + break; + } + case 59: + if (w(t, i13, i11)) { + Object r2 = j7.r(t, j); + i6 = r2 instanceof t3 ? zzhi.w(i13, (t3) r2) : zzhi.o(i13, (String) r2); + i10 += i6; + break; + } else { + break; + } + case 60: + if (w(t, i13, i11)) { + i6 = s6.a(i13, j7.r(t, j), o(i11)); + i10 += i6; + break; + } else { + break; + } + case 61: + if (w(t, i13, i11)) { + i6 = zzhi.w(i13, (t3) j7.r(t, j)); + i10 += i6; + break; + } else { + break; + } + case 62: + if (w(t, i13, i11)) { + i6 = zzhi.M(i13, J(t, j)); + i10 += i6; + break; + } else { + break; + } + case 63: + if (w(t, i13, i11)) { + i6 = zzhi.U(i13, J(t, j)); + i10 += i6; + break; + } else { + break; + } + case 64: + if (w(t, i13, i11)) { + i6 = zzhi.T(i13); + i10 += i6; + break; + } else { + break; + } + case 65: + if (w(t, i13, i11)) { + i6 = zzhi.Q(i13); + i10 += i6; + break; + } else { + break; + } + case 66: + if (w(t, i13, i11)) { + i6 = zzhi.P(i13, J(t, j)); + i10 += i6; + break; + } else { + break; + } + case 67: + if (w(t, i13, i11)) { + i6 = zzhi.J(i13, L(t, j)); + i10 += i6; + break; + } else { + break; + } + case 68: + if (w(t, i13, i11)) { + i6 = zzhi.x(i13, (c6) j7.r(t, j), o(i11)); + i10 += i6; + break; + } else { + break; + } + } + } + d7 d7Var = this.o; + return d7Var.j(d7Var.e(t)) + i10; + } + Unsafe unsafe2 = f1426b; + int i15 = 0; + int i16 = 1048575; + int i17 = 0; + for (int i18 = 0; i18 < this.c.length; i18 += 3) { + int I2 = I(i18); + int[] iArr = this.c; + int i19 = iArr[i18]; + int i20 = (I2 & 267386880) >>> 20; + if (i20 <= 17) { + int i21 = iArr[i18 + 2]; + int i22 = i21 & 1048575; + i = 1 << (i21 >>> 20); + if (i22 != i16) { + i17 = unsafe2.getInt(t, (long) i22); + i16 = i22; + } + } else { + i = 0; + } + long j2 = (long) (I2 & 1048575); + switch (i20) { + case 0: + if ((i17 & i) != 0) { + i2 = zzhi.u(i19); + i15 += i2; + break; + } else { + break; + } + case 1: + if ((i17 & i) != 0) { + i2 = zzhi.n(i19); + i15 += i2; + break; + } else { + break; + } + case 2: + if ((i17 & i) != 0) { + i2 = zzhi.B(i19, unsafe2.getLong(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 3: + if ((i17 & i) != 0) { + i2 = zzhi.E(i19, unsafe2.getLong(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 4: + if ((i17 & i) != 0) { + i2 = zzhi.I(i19, unsafe2.getInt(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 5: + if ((i17 & i) != 0) { + i2 = zzhi.N(i19); + i15 += i2; + break; + } else { + break; + } + case 6: + if ((i17 & i) != 0) { + i2 = zzhi.S(i19); + i15 += i2; + break; + } else { + break; + } + case 7: + if ((i17 & i) != 0) { + i2 = zzhi.v(i19); + i15 += i2; + break; + } else { + break; + } + case 8: + if ((i17 & i) != 0) { + Object object = unsafe2.getObject(t, j2); + i2 = object instanceof t3 ? zzhi.w(i19, (t3) object) : zzhi.o(i19, (String) object); + i15 += i2; + break; + } else { + break; + } + case 9: + if ((i17 & i) != 0) { + i2 = s6.a(i19, unsafe2.getObject(t, j2), o(i18)); + i15 += i2; + break; + } else { + break; + } + case 10: + if ((i17 & i) != 0) { + i2 = zzhi.w(i19, (t3) unsafe2.getObject(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 11: + if ((i17 & i) != 0) { + i2 = zzhi.M(i19, unsafe2.getInt(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 12: + if ((i17 & i) != 0) { + i2 = zzhi.U(i19, unsafe2.getInt(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 13: + if ((i17 & i) != 0) { + i2 = zzhi.T(i19); + i15 += i2; + break; + } else { + break; + } + case 14: + if ((i17 & i) != 0) { + i2 = zzhi.Q(i19); + i15 += i2; + break; + } else { + break; + } + case 15: + if ((i17 & i) != 0) { + i2 = zzhi.P(i19, unsafe2.getInt(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 16: + if ((i17 & i) != 0) { + i2 = zzhi.J(i19, unsafe2.getLong(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 17: + if ((i17 & i) != 0) { + i2 = zzhi.x(i19, (c6) unsafe2.getObject(t, j2), o(i18)); + i15 += i2; + break; + } else { + break; + } + case 18: + i2 = s6.K(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 19: + i2 = s6.H(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 20: + i2 = s6.k(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 21: + i2 = s6.r(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 22: + i2 = s6.y(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 23: + i2 = s6.K(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 24: + i2 = s6.H(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 25: + Class cls3 = s6.a; + int size2 = ((List) unsafe2.getObject(t, j2)).size(); + i2 = size2 == 0 ? 0 : size2 * zzhi.v(i19); + i15 += i2; + break; + case 26: + i2 = s6.b(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 27: + i2 = s6.c(i19, (List) unsafe2.getObject(t, j2), o(i18)); + i15 += i2; + break; + case 28: + i2 = s6.l(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 29: + i2 = s6.B(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 30: + i2 = s6.v(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 31: + i2 = s6.H(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 32: + i2 = s6.K(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 33: + i2 = s6.E(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 34: + i2 = s6.s(i19, (List) unsafe2.getObject(t, j2)); + i15 += i2; + break; + case 35: + i5 = s6.L((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 36: + i5 = s6.I((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 37: + i5 = s6.d((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 38: + i5 = s6.n((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 39: + i5 = s6.z((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 40: + i5 = s6.L((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 41: + i5 = s6.I((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 42: + Class cls4 = s6.a; + i5 = ((List) unsafe2.getObject(t, j2)).size(); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 43: + i5 = s6.C((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 44: + i5 = s6.w((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 45: + i5 = s6.I((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 46: + i5 = s6.L((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 47: + i5 = s6.F((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 48: + i5 = s6.t((List) unsafe2.getObject(t, j2)); + if (i5 > 0) { + i4 = zzhi.D(i19); + i3 = zzhi.L(i5); + i15 = i3 + i4 + i5 + i15; + break; + } else { + break; + } + case 49: + i2 = s6.m(i19, (List) unsafe2.getObject(t, j2), o(i18)); + i15 += i2; + break; + case 50: + i2 = this.q.i(i19, unsafe2.getObject(t, j2), A(i18)); + i15 += i2; + break; + case 51: + if (w(t, i19, i18)) { + i2 = zzhi.u(i19); + i15 += i2; + break; + } else { + break; + } + case 52: + if (w(t, i19, i18)) { + i2 = zzhi.n(i19); + i15 += i2; + break; + } else { + break; + } + case 53: + if (w(t, i19, i18)) { + i2 = zzhi.B(i19, L(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 54: + if (w(t, i19, i18)) { + i2 = zzhi.E(i19, L(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 55: + if (w(t, i19, i18)) { + i2 = zzhi.I(i19, J(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 56: + if (w(t, i19, i18)) { + i2 = zzhi.N(i19); + i15 += i2; + break; + } else { + break; + } + case 57: + if (w(t, i19, i18)) { + i2 = zzhi.S(i19); + i15 += i2; + break; + } else { + break; + } + case 58: + if (w(t, i19, i18)) { + i2 = zzhi.v(i19); + i15 += i2; + break; + } else { + break; + } + case 59: + if (w(t, i19, i18)) { + Object object2 = unsafe2.getObject(t, j2); + i2 = object2 instanceof t3 ? zzhi.w(i19, (t3) object2) : zzhi.o(i19, (String) object2); + i15 += i2; + break; + } else { + break; + } + case 60: + if (w(t, i19, i18)) { + i2 = s6.a(i19, unsafe2.getObject(t, j2), o(i18)); + i15 += i2; + break; + } else { + break; + } + case 61: + if (w(t, i19, i18)) { + i2 = zzhi.w(i19, (t3) unsafe2.getObject(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 62: + if (w(t, i19, i18)) { + i2 = zzhi.M(i19, J(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 63: + if (w(t, i19, i18)) { + i2 = zzhi.U(i19, J(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 64: + if (w(t, i19, i18)) { + i2 = zzhi.T(i19); + i15 += i2; + break; + } else { + break; + } + case 65: + if (w(t, i19, i18)) { + i2 = zzhi.Q(i19); + i15 += i2; + break; + } else { + break; + } + case 66: + if (w(t, i19, i18)) { + i2 = zzhi.P(i19, J(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 67: + if (w(t, i19, i18)) { + i2 = zzhi.J(i19, L(t, j2)); + i15 += i2; + break; + } else { + break; + } + case 68: + if (w(t, i19, i18)) { + i2 = zzhi.x(i19, (c6) unsafe2.getObject(t, j2), o(i18)); + i15 += i2; + break; + } else { + break; + } + } + } + d7 d7Var2 = this.o; + int j3 = d7Var2.j(d7Var2.e(t)) + i15; + if (!this.h) { + return j3; + } + n4 b2 = this.p.b(t); + int i23 = 0; + for (int i24 = 0; i24 < b2.f1446b.e(); i24++) { + Map.Entry d = b2.f1446b.d(i24); + i23 += n4.a((p4) d.getKey(), d.getValue()); + } + for (Map.Entry entry : b2.f1446b.g()) { + i23 += n4.a((p4) entry.getKey(), entry.getValue()); + } + return j3 + i23; + } + + /* JADX WARNING: Code restructure failed: missing block: B:14:0x006a, code lost: + if (b.i.a.f.h.l.s6.j(b.i.a.f.h.l.j7.r(r10, r6), b.i.a.f.h.l.j7.r(r11, r6)) != false) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:18:0x007e, code lost: + if (b.i.a.f.h.l.j7.i(r10, r6) == b.i.a.f.h.l.j7.i(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:22:0x0090, code lost: + if (b.i.a.f.h.l.j7.b(r10, r6) == b.i.a.f.h.l.j7.b(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:26:0x00a4, code lost: + if (b.i.a.f.h.l.j7.i(r10, r6) == b.i.a.f.h.l.j7.i(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:30:0x00b6, code lost: + if (b.i.a.f.h.l.j7.b(r10, r6) == b.i.a.f.h.l.j7.b(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:34:0x00c8, code lost: + if (b.i.a.f.h.l.j7.b(r10, r6) == b.i.a.f.h.l.j7.b(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:38:0x00da, code lost: + if (b.i.a.f.h.l.j7.b(r10, r6) == b.i.a.f.h.l.j7.b(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:42:0x00f0, code lost: + if (b.i.a.f.h.l.s6.j(b.i.a.f.h.l.j7.r(r10, r6), b.i.a.f.h.l.j7.r(r11, r6)) != false) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:46:0x0106, code lost: + if (b.i.a.f.h.l.s6.j(b.i.a.f.h.l.j7.r(r10, r6), b.i.a.f.h.l.j7.r(r11, r6)) != false) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:50:0x011c, code lost: + if (b.i.a.f.h.l.s6.j(b.i.a.f.h.l.j7.r(r10, r6), b.i.a.f.h.l.j7.r(r11, r6)) != false) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:54:0x012e, code lost: + if (b.i.a.f.h.l.j7.m(r10, r6) == b.i.a.f.h.l.j7.m(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:58:0x0140, code lost: + if (b.i.a.f.h.l.j7.b(r10, r6) == b.i.a.f.h.l.j7.b(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:62:0x0154, code lost: + if (b.i.a.f.h.l.j7.i(r10, r6) == b.i.a.f.h.l.j7.i(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:66:0x0165, code lost: + if (b.i.a.f.h.l.j7.b(r10, r6) == b.i.a.f.h.l.j7.b(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:70:0x0178, code lost: + if (b.i.a.f.h.l.j7.i(r10, r6) == b.i.a.f.h.l.j7.i(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:74:0x018b, code lost: + if (b.i.a.f.h.l.j7.i(r10, r6) == b.i.a.f.h.l.j7.i(r11, r6)) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:78:0x01a4, code lost: + if (java.lang.Float.floatToIntBits(b.i.a.f.h.l.j7.n(r10, r6)) == java.lang.Float.floatToIntBits(b.i.a.f.h.l.j7.n(r11, r6))) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:82:0x01bf, code lost: + if (java.lang.Double.doubleToLongBits(b.i.a.f.h.l.j7.q(r10, r6)) == java.lang.Double.doubleToLongBits(b.i.a.f.h.l.j7.q(r11, r6))) goto L_0x01c2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:8:0x0038, code lost: + if (b.i.a.f.h.l.s6.j(b.i.a.f.h.l.j7.r(r10, r6), b.i.a.f.h.l.j7.r(r11, r6)) != false) goto L_0x01c2; + */ + @Override // b.i.a.f.h.l.q6 + public final boolean f(T t, T t2) { + int length = this.c.length; + int i = 0; + while (true) { + boolean z2 = true; + if (i < length) { + int I = I(i); + long j = (long) (I & 1048575); + switch ((I & 267386880) >>> 20) { + case 0: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 1: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 2: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 3: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 4: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 5: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 6: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 7: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 8: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 9: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 10: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 11: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 12: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 13: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 14: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 15: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 16: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 17: + if (H(t, t2, i)) { + break; + } + z2 = false; + break; + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + z2 = s6.j(j7.r(t, j), j7.r(t2, j)); + break; + case 50: + z2 = s6.j(j7.r(t, j), j7.r(t2, j)); + break; + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + long K = (long) (K(i) & 1048575); + if (j7.b(t, K) == j7.b(t2, K)) { + break; + } + z2 = false; + break; + } + if (!z2) { + return false; + } + i += 3; + } else if (!this.o.e(t).equals(this.o.e(t2))) { + return false; + } else { + if (this.h) { + return this.p.b(t).equals(this.p.b(t2)); + } + return true; + } + } + } + + /* JADX WARNING: Removed duplicated region for block: B:10:0x002e */ + /* JADX WARNING: Removed duplicated region for block: B:163:0x059e */ + @Override // b.i.a.f.h.l.q6 + public final void g(T t, v7 v7Var) throws IOException { + Map.Entry entry; + Iterator> it; + int length; + int i; + Objects.requireNonNull(v7Var); + if (this.i) { + if (this.h) { + n4 b2 = this.p.b(t); + if (!b2.f1446b.isEmpty()) { + it = b2.l(); + entry = it.next(); + length = this.c.length; + for (i = 0; i < length; i += 3) { + int I = I(i); + int i2 = this.c[i]; + while (entry != null && this.p.a(entry) <= i2) { + this.p.d(v7Var, entry); + entry = it.hasNext() ? it.next() : null; + } + switch ((267386880 & I) >>> 20) { + case 0: + if (v(t, i)) { + ((g4) v7Var).a(i2, j7.q(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 1: + if (v(t, i)) { + ((g4) v7Var).b(i2, j7.n(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 2: + if (v(t, i)) { + ((g4) v7Var).a.g(i2, j7.i(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 3: + if (v(t, i)) { + ((g4) v7Var).a.g(i2, j7.i(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 4: + if (v(t, i)) { + ((g4) v7Var).a.s(i2, j7.b(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 5: + if (v(t, i)) { + ((g4) v7Var).a.z(i2, j7.i(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 6: + if (v(t, i)) { + ((g4) v7Var).a.G(i2, j7.b(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 7: + if (v(t, i)) { + ((g4) v7Var).a.l(i2, j7.m(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 8: + if (v(t, i)) { + r(i2, j7.r(t, (long) (I & 1048575)), v7Var); + break; + } else { + break; + } + case 9: + if (v(t, i)) { + ((g4) v7Var).d(i2, j7.r(t, (long) (I & 1048575)), o(i)); + break; + } else { + break; + } + case 10: + if (v(t, i)) { + ((g4) v7Var).a.h(i2, (t3) j7.r(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 11: + if (v(t, i)) { + ((g4) v7Var).a.y(i2, j7.b(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 12: + if (v(t, i)) { + ((g4) v7Var).a.s(i2, j7.b(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 13: + if (v(t, i)) { + ((g4) v7Var).a.G(i2, j7.b(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 14: + if (v(t, i)) { + ((g4) v7Var).a.z(i2, j7.i(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 15: + if (v(t, i)) { + ((g4) v7Var).g(i2, j7.b(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 16: + if (v(t, i)) { + ((g4) v7Var).f(i2, j7.i(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 17: + if (v(t, i)) { + ((g4) v7Var).e(i2, j7.r(t, (long) (I & 1048575)), o(i)); + break; + } else { + break; + } + case 18: + s6.h(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 19: + s6.q(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 20: + s6.u(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 21: + s6.x(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 22: + s6.J(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 23: + s6.D(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 24: + s6.O(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 25: + s6.R(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 26: + s6.f(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var); + break; + case 27: + s6.g(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, o(i)); + break; + case 28: + s6.o(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var); + break; + case 29: + s6.M(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 30: + s6.Q(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 31: + s6.P(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 32: + s6.G(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 33: + s6.N(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 34: + s6.A(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, false); + break; + case 35: + s6.h(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 36: + s6.q(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 37: + s6.u(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 38: + s6.x(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 39: + s6.J(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 40: + s6.D(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 41: + s6.O(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 42: + s6.R(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 43: + s6.M(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 44: + s6.Q(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 45: + s6.P(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 46: + s6.G(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 47: + s6.N(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 48: + s6.A(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, true); + break; + case 49: + s6.p(this.c[i], (List) j7.r(t, (long) (I & 1048575)), v7Var, o(i)); + break; + case 50: + t(v7Var, i2, j7.r(t, (long) (I & 1048575)), i); + break; + case 51: + if (w(t, i2, i)) { + ((g4) v7Var).a(i2, y(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 52: + if (w(t, i2, i)) { + ((g4) v7Var).b(i2, F(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 53: + if (w(t, i2, i)) { + ((g4) v7Var).a.g(i2, L(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 54: + if (w(t, i2, i)) { + ((g4) v7Var).a.g(i2, L(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 55: + if (w(t, i2, i)) { + ((g4) v7Var).a.s(i2, J(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 56: + if (w(t, i2, i)) { + ((g4) v7Var).a.z(i2, L(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 57: + if (w(t, i2, i)) { + ((g4) v7Var).a.G(i2, J(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 58: + if (w(t, i2, i)) { + ((g4) v7Var).a.l(i2, N(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 59: + if (w(t, i2, i)) { + r(i2, j7.r(t, (long) (I & 1048575)), v7Var); + break; + } else { + break; + } + case 60: + if (w(t, i2, i)) { + ((g4) v7Var).d(i2, j7.r(t, (long) (I & 1048575)), o(i)); + break; + } else { + break; + } + case 61: + if (w(t, i2, i)) { + ((g4) v7Var).a.h(i2, (t3) j7.r(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 62: + if (w(t, i2, i)) { + ((g4) v7Var).a.y(i2, J(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 63: + if (w(t, i2, i)) { + ((g4) v7Var).a.s(i2, J(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 64: + if (w(t, i2, i)) { + ((g4) v7Var).a.G(i2, J(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 65: + if (w(t, i2, i)) { + ((g4) v7Var).a.z(i2, L(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 66: + if (w(t, i2, i)) { + ((g4) v7Var).g(i2, J(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 67: + if (w(t, i2, i)) { + ((g4) v7Var).f(i2, L(t, (long) (I & 1048575))); + break; + } else { + break; + } + case 68: + if (w(t, i2, i)) { + ((g4) v7Var).e(i2, j7.r(t, (long) (I & 1048575)), o(i)); + break; + } else { + break; + } + } + } + while (entry != null) { + this.p.d(v7Var, entry); + entry = it.hasNext() ? it.next() : null; + } + s(this.o, t, v7Var); + return; + } + } + it = null; + entry = null; + length = this.c.length; + while (i < length) { + } + while (entry != null) { + } + s(this.o, t, v7Var); + return; + } + D(t, v7Var); + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Code restructure failed: missing block: B:116:0x0340, code lost: + if (r0 == r0) goto L_0x0389; + */ + /* JADX WARNING: Code restructure failed: missing block: B:125:0x0387, code lost: + if (r0 == r15) goto L_0x0389; + */ + /* JADX WARNING: Removed duplicated region for block: B:158:0x0055 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x005d */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.a.f.h.l.q6 + public final void h(T t, byte[] bArr, int i, int i2, s3 s3Var) throws IOException { + byte b2; + int i3; + int i4; + int i5; + int i6; + Unsafe unsafe; + e6 e6Var; + int i7; + int i8; + int i9; + int i10; + s3 s3Var2; + e6 e6Var2; + T t2; + int i11; + int i12; + int i13; + byte[] bArr2; + int i14; + T t3; + s3 s3Var3; + e6 e6Var3; + int i15; + T t4; + s3 s3Var4; + s3 s3Var5; + T t5; + s3 s3Var6; + T t6; + e6 e6Var4; + int i16; + int i17 = i2; + if (this.i) { + Unsafe unsafe2 = f1426b; + int i18 = -1; + int i19 = 0; + T t7 = t; + byte[] bArr3 = bArr; + int i20 = i; + s3 s3Var7 = s3Var; + e6 e6Var5 = this; + int i21 = -1; + int i22 = 0; + int i23 = 1048575; + int i24 = 0; + while (i20 < i17) { + int i25 = i20 + 1; + byte b3 = bArr3[i20]; + if (b3 < 0) { + i3 = f.A1(b3, bArr3, i25, s3Var7); + b2 = s3Var7.a; + } else { + b2 = b3; + i3 = i25; + } + int i26 = b2 >>> 3; + int i27 = b2 & 7; + if (i26 > i21) { + int i28 = i22 / 3; + if (i26 >= e6Var5.e && i26 <= e6Var5.f) { + i16 = e6Var5.z(i26, i28); + } + i4 = -1; + if (i4 == i18) { + i5 = i26; + i6 = 0; + } else { + int[] iArr = e6Var5.c; + int i29 = iArr[i4 + 1]; + int i30 = (i29 & 267386880) >>> 20; + long j = (long) (i29 & 1048575); + e6 e6Var6 = e6Var5; + if (i30 <= 17) { + int i31 = iArr[i4 + 2]; + int i32 = 1 << (i31 >>> 20); + int i33 = i31 & 1048575; + if (i33 != i23) { + bArr2 = bArr3; + if (i23 != 1048575) { + unsafe2.putInt(t7, (long) i23, i24); + } + if (i33 != 1048575) { + i24 = unsafe2.getInt(t7, (long) i33); + } + i23 = i33; + } else { + bArr2 = bArr3; + } + switch (i30) { + case 0: + i5 = i26; + i14 = i4; + bArr3 = bArr2; + e6Var = e6Var6; + if (i27 == 1) { + j7.d(t7, j, Double.longBitsToDouble(f.f2(bArr3, i3))); + i20 = i3 + 8; + i7 = i24 | i32; + t7 = t7; + s3Var7 = s3Var7; + unsafe = unsafe2; + i22 = i14; + i24 = i7; + e6Var5 = e6Var; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + i6 = i14; + break; + case 1: + i5 = i26; + i14 = i4; + t3 = t7; + s3Var3 = s3Var7; + bArr3 = bArr2; + e6Var3 = e6Var6; + if (i27 == 5) { + j7.e.d(t3, j, Float.intBitsToFloat(f.E1(bArr3, i3))); + i20 = i3 + 4; + i15 = i24 | i32; + i24 = i15; + t7 = t3; + s3Var7 = s3Var3; + unsafe = unsafe2; + i22 = i14; + e6Var5 = e6Var3; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + i6 = i14; + break; + case 2: + case 3: + i5 = i26; + i14 = i4; + s3Var3 = s3Var7; + bArr3 = bArr2; + e6Var3 = e6Var6; + if (i27 == 0) { + i20 = f.e2(bArr3, i3, s3Var3); + unsafe2.putLong(t, j, s3Var3.f1478b); + i15 = i24 | i32; + t3 = t7; + i24 = i15; + t7 = t3; + s3Var7 = s3Var3; + unsafe = unsafe2; + i22 = i14; + e6Var5 = e6Var3; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + i6 = i14; + break; + case 4: + case 11: + i5 = i26; + i14 = i4; + s3Var3 = s3Var7; + bArr3 = bArr2; + t4 = t7; + e6Var3 = e6Var6; + if (i27 == 0) { + i20 = f.F1(bArr3, i3, s3Var3); + unsafe2.putInt(t4, j, s3Var3.a); + t3 = t4; + i15 = i24 | i32; + i24 = i15; + t7 = t3; + s3Var7 = s3Var3; + unsafe = unsafe2; + i22 = i14; + e6Var5 = e6Var3; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + i6 = i14; + break; + case 5: + case 14: + i5 = i26; + i14 = i4; + bArr3 = bArr2; + if (i27 == 1) { + e6Var3 = e6Var6; + s3Var3 = s3Var7; + unsafe2.putLong(t, j, f.f2(bArr3, i3)); + i20 = i3 + 8; + t3 = t7; + i15 = i24 | i32; + i24 = i15; + t7 = t3; + s3Var7 = s3Var3; + unsafe = unsafe2; + i22 = i14; + e6Var5 = e6Var3; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + i6 = i14; + break; + case 6: + case 13: + i5 = i26; + i14 = i4; + s3Var5 = s3Var7; + bArr3 = bArr2; + t5 = t7; + i17 = i2; + if (i27 != 5) { + i6 = i14; + break; + } else { + unsafe2.putInt(t5, j, f.E1(bArr3, i3)); + i20 = i3 + 4; + i24 |= i32; + t7 = t5; + s3Var7 = s3Var5; + i22 = i14; + e6Var5 = e6Var6; + i21 = i5; + i19 = 0; + i18 = -1; + } + case 7: + i5 = i26; + i14 = i4; + s3Var5 = s3Var7; + bArr3 = bArr2; + t5 = t7; + i17 = i2; + if (i27 != 0) { + i6 = i14; + break; + } else { + i20 = f.e2(bArr3, i3, s3Var5); + j7.e.g(t5, j, s3Var5.f1478b != 0); + i24 |= i32; + t7 = t5; + s3Var7 = s3Var5; + i22 = i14; + e6Var5 = e6Var6; + i21 = i5; + i19 = 0; + i18 = -1; + } + case 8: + i5 = i26; + i14 = i4; + s3Var4 = s3Var7; + bArr3 = bArr2; + t4 = t7; + if (i27 == 2) { + i20 = (536870912 & i29) == 0 ? f.h2(bArr3, i3, s3Var4) : f.j2(bArr3, i3, s3Var4); + unsafe2.putObject(t4, j, s3Var4.c); + s3Var3 = s3Var4; + e6Var3 = e6Var6; + t3 = t4; + i15 = i24 | i32; + i24 = i15; + t7 = t3; + s3Var7 = s3Var3; + unsafe = unsafe2; + i22 = i14; + e6Var5 = e6Var3; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + i6 = i14; + break; + case 9: + i5 = i26; + i14 = i4; + s3Var4 = s3Var7; + bArr3 = bArr2; + t4 = t7; + if (i27 == 2) { + q6 o = e6Var6.o(i14); + e6Var6 = e6Var6; + i20 = f.D1(o, bArr3, i3, i2, s3Var4); + Object object = unsafe2.getObject(t4, j); + if (object == null) { + unsafe2.putObject(t4, j, s3Var4.c); + } else { + unsafe2.putObject(t4, j, w4.c(object, s3Var4.c)); + } + s3Var3 = s3Var4; + e6Var3 = e6Var6; + t3 = t4; + i15 = i24 | i32; + i24 = i15; + t7 = t3; + s3Var7 = s3Var3; + unsafe = unsafe2; + i22 = i14; + e6Var5 = e6Var3; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + i6 = i14; + break; + case 10: + i5 = i26; + i14 = i4; + s3Var6 = s3Var7; + bArr3 = bArr2; + t6 = t7; + e6Var4 = e6Var6; + if (i27 != 2) { + i6 = i14; + break; + } else { + i20 = f.l2(bArr3, i3, s3Var6); + unsafe2.putObject(t6, j, s3Var6.c); + i24 |= i32; + i17 = i2; + e6Var2 = e6Var4; + t2 = t6; + s3Var2 = s3Var6; + i10 = i14; + break; + } + case 12: + i5 = i26; + i14 = i4; + s3Var6 = s3Var7; + bArr3 = bArr2; + t6 = t7; + e6Var4 = e6Var6; + if (i27 != 0) { + i6 = i14; + break; + } else { + i20 = f.F1(bArr3, i3, s3Var6); + unsafe2.putInt(t6, j, s3Var6.a); + i24 |= i32; + i17 = i2; + e6Var2 = e6Var4; + t2 = t6; + s3Var2 = s3Var6; + i10 = i14; + break; + } + case 15: + i5 = i26; + i14 = i4; + s3Var6 = s3Var7; + bArr3 = bArr2; + t6 = t7; + e6Var4 = e6Var6; + if (i27 != 0) { + i6 = i14; + break; + } else { + i20 = f.F1(bArr3, i3, s3Var6); + unsafe2.putInt(t6, j, d4.b(s3Var6.a)); + i24 |= i32; + i17 = i2; + e6Var2 = e6Var4; + t2 = t6; + s3Var2 = s3Var6; + i10 = i14; + break; + } + case 16: + if (i27 != 0) { + i5 = i26; + i14 = i4; + i6 = i14; + break; + } else { + bArr3 = bArr2; + int e2 = f.e2(bArr3, i3, s3Var7); + i14 = i4; + i5 = i26; + unsafe2.putLong(t, j, d4.a(s3Var7.f1478b)); + i24 |= i32; + i20 = e2; + t6 = t7; + s3Var6 = s3Var7; + e6Var4 = e6Var6; + i17 = i2; + e6Var2 = e6Var4; + t2 = t6; + s3Var2 = s3Var6; + i10 = i14; + break; + } + default: + i5 = i26; + i14 = i4; + i6 = i14; + break; + } + } else { + i5 = i26; + s3Var2 = s3Var7; + e6Var2 = e6Var6; + i17 = i2; + if (i30 != 27) { + i8 = i4; + if (i30 <= 49) { + i11 = i23; + i12 = i24; + unsafe = unsafe2; + i20 = k(t, bArr, i3, i2, b2, i5, i27, i8, (long) i29, i30, j, s3Var); + } else { + i11 = i23; + i12 = i24; + unsafe = unsafe2; + i13 = i3; + if (i30 != 50) { + i20 = j(t, bArr, i13, i2, b2, i5, i27, i29, i30, j, i8, s3Var); + } else if (i27 == 2) { + l(t, bArr, i13, i2, i8, j, s3Var); + throw null; + } + } + i22 = i8; + i24 = i12; + i23 = i11; + e6Var = this; + t7 = t; + bArr3 = bArr; + s3Var7 = s3Var; + i7 = i24; + i24 = i7; + e6Var5 = e6Var; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } else if (i27 == 2) { + b5 b5Var = (b5) unsafe2.getObject(t7, j); + if (!b5Var.a()) { + int size = b5Var.size(); + b5Var = b5Var.f(size == 0 ? 10 : size << 1); + unsafe2.putObject(t7, j, b5Var); + } + i10 = i4; + t2 = t7; + i20 = f.B1(e6Var2.o(i4), b2, bArr, i3, i2, b5Var, s3Var); + } else { + i8 = i4; + i13 = i3; + i11 = i23; + i12 = i24; + unsafe = unsafe2; + } + i20 = i13; + i9 = i20; + i24 = i12; + i23 = i11; + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + i22 = i8; + e6Var = this; + t7 = t; + bArr3 = bArr; + s3Var7 = s3Var; + i7 = i24; + i24 = i7; + e6Var5 = e6Var; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + t7 = t2; + e6Var5 = e6Var2; + s3Var7 = s3Var2; + i22 = i10; + i21 = i5; + i19 = 0; + i18 = -1; + } + i8 = i6; + unsafe = unsafe2; + i9 = i3; + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + i22 = i8; + e6Var = this; + t7 = t; + bArr3 = bArr; + s3Var7 = s3Var; + i7 = i24; + i24 = i7; + e6Var5 = e6Var; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } else { + if (i26 >= e6Var5.e && i26 <= e6Var5.f) { + i16 = e6Var5.z(i26, i19); + } + i4 = -1; + if (i4 == i18) { + } + i8 = i6; + unsafe = unsafe2; + i9 = i3; + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + i22 = i8; + e6Var = this; + t7 = t; + bArr3 = bArr; + s3Var7 = s3Var; + i7 = i24; + i24 = i7; + e6Var5 = e6Var; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + i4 = i16; + if (i4 == i18) { + } + i8 = i6; + unsafe = unsafe2; + i9 = i3; + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + i22 = i8; + e6Var = this; + t7 = t; + bArr3 = bArr; + s3Var7 = s3Var; + i7 = i24; + i24 = i7; + e6Var5 = e6Var; + i17 = i2; + i21 = i5; + unsafe2 = unsafe; + i19 = 0; + i18 = -1; + } + if (i23 != 1048575) { + unsafe2.putInt(t, (long) i23, i24); + } + if (i20 != i2) { + throw zzij.d(); + } + return; + } + m(t, bArr, i, i2, 0, s3Var); + } + + @Override // b.i.a.f.h.l.q6 + public final void i(T t, T t2) { + Objects.requireNonNull(t2); + for (int i = 0; i < this.c.length; i += 3) { + int I = I(i); + long j = (long) (1048575 & I); + int i2 = this.c[i]; + switch ((I & 267386880) >>> 20) { + case 0: + if (v(t2, i)) { + j7.d(t, j, j7.q(t2, j)); + B(t, i); + break; + } else { + break; + } + case 1: + if (v(t2, i)) { + j7.e.d(t, j, j7.n(t2, j)); + B(t, i); + break; + } else { + break; + } + case 2: + if (v(t2, i)) { + j7.e(t, j, j7.i(t2, j)); + B(t, i); + break; + } else { + break; + } + case 3: + if (v(t2, i)) { + j7.e(t, j, j7.i(t2, j)); + B(t, i); + break; + } else { + break; + } + case 4: + if (v(t2, i)) { + j7.e.e(t, j, j7.b(t2, j)); + B(t, i); + break; + } else { + break; + } + case 5: + if (v(t2, i)) { + j7.e(t, j, j7.i(t2, j)); + B(t, i); + break; + } else { + break; + } + case 6: + if (v(t2, i)) { + j7.e.e(t, j, j7.b(t2, j)); + B(t, i); + break; + } else { + break; + } + case 7: + if (v(t2, i)) { + j7.e.g(t, j, j7.m(t2, j)); + B(t, i); + break; + } else { + break; + } + case 8: + if (v(t2, i)) { + j7.f(t, j, j7.r(t2, j)); + B(t, i); + break; + } else { + break; + } + case 9: + u(t, t2, i); + break; + case 10: + if (v(t2, i)) { + j7.f(t, j, j7.r(t2, j)); + B(t, i); + break; + } else { + break; + } + case 11: + if (v(t2, i)) { + j7.e.e(t, j, j7.b(t2, j)); + B(t, i); + break; + } else { + break; + } + case 12: + if (v(t2, i)) { + j7.e.e(t, j, j7.b(t2, j)); + B(t, i); + break; + } else { + break; + } + case 13: + if (v(t2, i)) { + j7.e.e(t, j, j7.b(t2, j)); + B(t, i); + break; + } else { + break; + } + case 14: + if (v(t2, i)) { + j7.e(t, j, j7.i(t2, j)); + B(t, i); + break; + } else { + break; + } + case 15: + if (v(t2, i)) { + j7.e.e(t, j, j7.b(t2, j)); + B(t, i); + break; + } else { + break; + } + case 16: + if (v(t2, i)) { + j7.e(t, j, j7.i(t2, j)); + B(t, i); + break; + } else { + break; + } + case 17: + u(t, t2, i); + break; + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + this.n.a(t, t2, j); + break; + case 50: + v5 v5Var = this.q; + Class cls = s6.a; + j7.f(t, j, v5Var.f(j7.r(t, j), j7.r(t2, j))); + break; + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + if (w(t2, i2, i)) { + j7.f(t, j, j7.r(t2, j)); + C(t, i2, i); + break; + } else { + break; + } + case 60: + E(t, t2, i); + break; + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + if (w(t2, i2, i)) { + j7.f(t, j, j7.r(t2, j)); + C(t, i2, i); + break; + } else { + break; + } + case 68: + E(t, t2, i); + break; + } + } + d7 d7Var = this.o; + Class cls2 = s6.a; + d7Var.d(t, d7Var.g(d7Var.e(t), d7Var.e(t2))); + if (this.h) { + s6.i(this.p, t, t2); + } + } + + public final int j(T t, byte[] bArr, int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, int i8, s3 s3Var) throws IOException { + int i9; + Unsafe unsafe = f1426b; + long j2 = (long) (this.c[i8 + 2] & 1048575); + boolean z2 = true; + switch (i7) { + case 51: + if (i5 == 1) { + unsafe.putObject(t, j, Double.valueOf(Double.longBitsToDouble(f.f2(bArr, i)))); + i9 = i + 8; + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 52: + if (i5 == 5) { + unsafe.putObject(t, j, Float.valueOf(Float.intBitsToFloat(f.E1(bArr, i)))); + i9 = i + 4; + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 53: + case 54: + if (i5 == 0) { + i9 = f.e2(bArr, i, s3Var); + unsafe.putObject(t, j, Long.valueOf(s3Var.f1478b)); + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 55: + case 62: + if (i5 == 0) { + i9 = f.F1(bArr, i, s3Var); + unsafe.putObject(t, j, Integer.valueOf(s3Var.a)); + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 56: + case 65: + if (i5 == 1) { + unsafe.putObject(t, j, Long.valueOf(f.f2(bArr, i))); + i9 = i + 8; + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 57: + case 64: + if (i5 == 5) { + unsafe.putObject(t, j, Integer.valueOf(f.E1(bArr, i))); + i9 = i + 4; + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 58: + if (i5 == 0) { + i9 = f.e2(bArr, i, s3Var); + if (s3Var.f1478b == 0) { + z2 = false; + } + unsafe.putObject(t, j, Boolean.valueOf(z2)); + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 59: + if (i5 == 2) { + int F1 = f.F1(bArr, i, s3Var); + int i10 = s3Var.a; + if (i10 == 0) { + unsafe.putObject(t, j, ""); + } else if ((i6 & 536870912) == 0 || k7.b(bArr, F1, F1 + i10)) { + unsafe.putObject(t, j, new String(bArr, F1, i10, w4.a)); + F1 += i10; + } else { + throw zzij.e(); + } + unsafe.putInt(t, j2, i4); + return F1; + } + return i; + case 60: + if (i5 == 2) { + int D1 = f.D1(o(i8), bArr, i, i2, s3Var); + Object object = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; + if (object == null) { + unsafe.putObject(t, j, s3Var.c); + } else { + unsafe.putObject(t, j, w4.c(object, s3Var.c)); + } + unsafe.putInt(t, j2, i4); + return D1; + } + return i; + case 61: + if (i5 == 2) { + i9 = f.l2(bArr, i, s3Var); + unsafe.putObject(t, j, s3Var.c); + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 63: + if (i5 == 0) { + int F12 = f.F1(bArr, i, s3Var); + int i11 = s3Var.a; + a5 a5Var = (a5) this.d[((i8 / 3) << 1) + 1]; + if (a5Var == null || a5Var.f(i11)) { + unsafe.putObject(t, j, Integer.valueOf(i11)); + i9 = F12; + unsafe.putInt(t, j2, i4); + return i9; + } + M(t).a(i3, Long.valueOf((long) i11)); + return F12; + } + return i; + case 66: + if (i5 == 0) { + i9 = f.F1(bArr, i, s3Var); + unsafe.putObject(t, j, Integer.valueOf(d4.b(s3Var.a))); + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 67: + if (i5 == 0) { + i9 = f.e2(bArr, i, s3Var); + unsafe.putObject(t, j, Long.valueOf(d4.a(s3Var.f1478b))); + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + case 68: + if (i5 == 3) { + i9 = f.C1(o(i8), bArr, i, i2, (i3 & -8) | 4, s3Var); + Object object2 = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; + if (object2 == null) { + unsafe.putObject(t, j, s3Var.c); + } else { + unsafe.putObject(t, j, w4.c(object2, s3Var.c)); + } + unsafe.putInt(t, j2, i4); + return i9; + } + return i; + default: + return i; + } + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:263:0x017e */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:267:0x018f */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:70:0x01a5 */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:266:0x01b3 */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:268:0x018f */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX DEBUG: Type inference failed for r6v25. Raw type applied. Possible types: java.util.Iterator, java.util.Iterator */ + /* JADX DEBUG: Type inference failed for r3v5. Raw type applied. Possible types: ?, java.lang.Object */ + /* JADX DEBUG: Type inference failed for r4v52. Raw type applied. Possible types: java.util.List, java.util.List */ + /* JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor + jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached + at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:57) + at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31) + at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:15) + */ + /* JADX WARNING: Removed duplicated region for block: B:116:0x0256 */ + /* JADX WARNING: Removed duplicated region for block: B:136:0x02a4 */ + /* JADX WARNING: Removed duplicated region for block: B:276:0x04a7 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:281:0x04a7 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:87:0x01dc */ + public final int k(T r18, byte[] r19, int r20, int r21, int r22, int r23, int r24, int r25, long r26, int r28, long r29, b.i.a.f.h.l.s3 r31) throws java.io.IOException { + /* + // Method dump skipped, instructions count: 1262 + */ + throw new UnsupportedOperationException("Method not decompiled: b.i.a.f.h.l.e6.k(java.lang.Object, byte[], int, int, int, int, int, int, long, int, long, b.i.a.f.h.l.s3):int"); + } + + public final int l(T t, byte[] bArr, int i, int i2, int i3, long j, s3 s3Var) throws IOException { + Unsafe unsafe = f1426b; + Object obj = this.d[(i3 / 3) << 1]; + Object object = unsafe.getObject(t, j); + if (this.q.d(object)) { + Object h = this.q.h(obj); + this.q.f(h, object); + unsafe.putObject(t, j, h); + object = h; + } + t5 g = this.q.g(obj); + this.q.b(object); + int F1 = f.F1(bArr, i, s3Var); + int i4 = s3Var.a; + if (i4 < 0 || i4 > i2 - F1) { + throw zzij.a(); + } + Objects.requireNonNull(g); + throw null; + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:147:0x0449 A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:151:0x045d */ + /* JADX WARNING: Removed duplicated region for block: B:217:0x04b0 A[SYNTHETIC] */ + /* JADX WARNING: Unknown variable types count: 1 */ + public final int m(T t, byte[] bArr, int i, int i2, int i3, s3 s3Var) throws IOException { + Unsafe unsafe; + T t2; + e6 e6Var; + byte b2; + int i4; + int i5; + int i6; + int i7; + int i8; + int i9; + int i10; + int i11; + s3 s3Var2; + T t3; + int i12; + byte b3; + int i13; + int i14; + byte b4; + int i15; + int i16; + long j; + int i17; + byte b5; + byte b6; + int e2; + byte b7; + byte b8; + byte b9; + int i18; + T t4; + e6 e6Var2 = this; + T t5 = t; + byte[] bArr2 = bArr; + int i19 = i2; + s3 s3Var3 = s3Var; + Unsafe unsafe2 = f1426b; + int i20 = i; + int i21 = i3; + byte[] bArr3 = bArr2; + int i22 = -1; + int i23 = 0; + int i24 = 1048575; + int i25 = 0; + byte b10 = 0; + while (true) { + if (i20 < i19) { + int i26 = i20 + 1; + byte b11 = bArr3[i20]; + if (b11 < 0) { + i26 = f.A1(b11, bArr3, i26, s3Var3); + b11 = s3Var3.a; + } + int i27 = b11 >>> 3; + int i28 = b11 & 7; + if (i27 > i22) { + i4 = (i27 < e6Var2.e || i27 > e6Var2.f) ? -1 : e6Var2.z(i27, i23 / 3); + i5 = -1; + } else if (i27 < e6Var2.e || i27 > e6Var2.f) { + i5 = -1; + i4 = -1; + } else { + i4 = e6Var2.z(i27, 0); + i5 = -1; + } + if (i4 == i5) { + i6 = i24; + i7 = i25; + i8 = i27; + unsafe = unsafe2; + i9 = i26; + b2 = b11; + i10 = 0; + i11 = i21; + if (b2 == i11 || i11 == 0) { + if (this.h) { + s3Var2 = s3Var; + if (s3Var2.d == h4.a()) { + t3 = t; + } else if (s3Var2.d.d.get(new h4.a(this.g, i8)) == null) { + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + t5 = t; + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + s3Var3 = s3Var2; + i22 = i8; + b10 = b2; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + } else { + t.u(); + throw new NoSuchMethodError(); + } + } else { + t3 = t; + s3Var2 = s3Var; + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } else { + e6Var = this; + t2 = t; + i20 = i9; + i21 = i11; + i25 = i7; + i24 = i6; + } + } else { + int[] iArr = e6Var2.c; + int i29 = iArr[i4 + 1]; + int i30 = (i29 & 267386880) >>> 20; + long j2 = (long) (i29 & 1048575); + if (i30 <= 17) { + int i31 = iArr[i4 + 2]; + int i32 = 1 << (i31 >>> 20); + int i33 = i31 & 1048575; + if (i33 != i24) { + if (i24 != 1048575) { + long j3 = (long) i24; + t4 = t; + j = j2; + unsafe2.putInt(t4, j3, i25); + } else { + t4 = t; + j = j2; + } + t5 = t4; + i7 = unsafe2.getInt(t4, (long) i33); + i17 = i33; + } else { + t5 = t; + j = j2; + i7 = i25; + i17 = i24; + } + switch (i30) { + case 0: + i12 = i27; + b5 = b11; + i13 = i4; + if (i28 == 1) { + j7.d(t5, j, Double.longBitsToDouble(f.f2(bArr2, i26))); + i20 = i26 + 8; + i7 |= i32; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + case 1: + i12 = i27; + b5 = b11; + i13 = i4; + if (i28 == 5) { + j7.e.d(t5, j, Float.intBitsToFloat(f.E1(bArr2, i26))); + i20 = i26 + 4; + i7 |= i32; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + case 2: + case 3: + i12 = i27; + b6 = b11; + i13 = i4; + if (i28 == 0) { + e2 = f.e2(bArr2, i26, s3Var3); + b7 = b6; + unsafe2.putLong(t, j, s3Var3.f1478b); + i7 |= i32; + i20 = e2; + b5 = b7; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } + b5 = b6; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + case 4: + case 11: + i12 = i27; + b6 = b11; + i13 = i4; + if (i28 == 0) { + i20 = f.F1(bArr2, i26, s3Var3); + unsafe2.putInt(t5, j, s3Var3.a); + b5 = b6; + i7 |= i32; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } + b5 = b6; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + case 5: + case 14: + i12 = i27; + b8 = b11; + i13 = i4; + if (i28 == 1) { + unsafe2.putLong(t, j, f.f2(bArr2, i26)); + b5 = b8; + i20 = i26 + 8; + i7 |= i32; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } + b5 = b8; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + case 6: + case 13: + i12 = i27; + b8 = b11; + i13 = i4; + if (i28 == 5) { + unsafe2.putInt(t5, j, f.E1(bArr2, i26)); + i20 = i26 + 4; + i18 = i7 | i32; + i19 = i2; + b10 = b8; + i24 = i17; + i23 = i13; + bArr3 = bArr2; + i22 = i12; + break; + } else { + b5 = b8; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } + break; + case 7: + i12 = i27; + b8 = b11; + i13 = i4; + if (i28 == 0) { + int e22 = f.e2(bArr2, i26, s3Var3); + j7.e.g(t5, j, s3Var3.f1478b != 0); + i20 = e22; + i18 = i7 | i32; + i19 = i2; + b10 = b8; + i24 = i17; + i23 = i13; + bArr3 = bArr2; + i22 = i12; + break; + } else { + b5 = b8; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } + break; + case 8: + i12 = i27; + b8 = b11; + i13 = i4; + if (i28 == 2) { + i20 = (536870912 & i29) == 0 ? f.h2(bArr2, i26, s3Var3) : f.j2(bArr2, i26, s3Var3); + unsafe2.putObject(t5, j, s3Var3.c); + i18 = i7 | i32; + i19 = i2; + b10 = b8; + i24 = i17; + i23 = i13; + bArr3 = bArr2; + i22 = i12; + break; + } else { + b5 = b8; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } + break; + case 9: + i12 = i27; + b8 = b11; + i13 = i4; + if (i28 == 2) { + i20 = f.D1(e6Var2.o(i13), bArr2, i26, i2, s3Var3); + if ((i7 & i32) == 0) { + unsafe2.putObject(t5, j, s3Var3.c); + } else { + unsafe2.putObject(t5, j, w4.c(unsafe2.getObject(t5, j), s3Var3.c)); + } + i18 = i7 | i32; + i19 = i2; + b10 = b8; + i24 = i17; + i23 = i13; + bArr3 = bArr2; + i22 = i12; + break; + } else { + b5 = b8; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } + break; + case 10: + i12 = i27; + b9 = b11; + i13 = i4; + if (i28 == 2) { + i20 = f.l2(bArr2, i26, s3Var3); + unsafe2.putObject(t5, j, s3Var3.c); + b5 = b9; + i7 |= i32; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } + b5 = b9; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + case 12: + i12 = i27; + b9 = b11; + i13 = i4; + if (i28 == 0) { + i20 = f.F1(bArr2, i26, s3Var3); + int i34 = s3Var3.a; + a5 G = e6Var2.G(i13); + if (G == null || G.f(i34)) { + unsafe2.putInt(t5, j, i34); + b5 = b9; + i7 |= i32; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } else { + M(t).a(b9, Long.valueOf((long) i34)); + b5 = b9; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + } + } + b5 = b9; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + case 15: + i12 = i27; + b9 = b11; + i13 = i4; + if (i28 == 0) { + i20 = f.F1(bArr2, i26, s3Var3); + unsafe2.putInt(t5, j, d4.b(s3Var3.a)); + b5 = b9; + i7 |= i32; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } + b5 = b9; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + case 16: + b9 = b11; + if (i28 == 0) { + e2 = f.e2(bArr2, i26, s3Var3); + b7 = b9; + i12 = i27; + i13 = i4; + unsafe2.putLong(t, j, d4.a(s3Var3.f1478b)); + i7 |= i32; + i20 = e2; + b5 = b7; + i24 = i17; + bArr3 = bArr2; + i25 = i7; + b3 = b5; + break; + } else { + i12 = i27; + i13 = i4; + b5 = b9; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } + break; + case 17: + if (i28 == 3) { + i20 = f.C1(e6Var2.o(i4), bArr, i26, i2, (i27 << 3) | 4, s3Var); + if ((i7 & i32) == 0) { + unsafe2.putObject(t5, j, s3Var3.c); + } else { + unsafe2.putObject(t5, j, w4.c(unsafe2.getObject(t5, j), s3Var3.c)); + } + i18 = i7 | i32; + i19 = i2; + i24 = i17; + b10 = b11; + i22 = i27; + i23 = i4; + bArr3 = bArr2; + break; + } else { + b5 = b11; + i12 = i27; + i13 = i4; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } + break; + default: + i12 = i27; + b5 = b11; + i13 = i4; + i6 = i17; + unsafe = unsafe2; + i9 = i26; + i8 = i12; + i11 = i3; + b2 = b5; + i10 = i13; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + break; + } + i25 = i18; + i21 = i3; + } else { + t5 = t; + i12 = i27; + b3 = b11; + i13 = i4; + if (i30 != 27) { + i6 = i24; + i14 = i25; + if (i30 <= 49) { + i8 = i12; + i10 = i13; + unsafe = unsafe2; + b4 = b3; + i20 = k(t, bArr, i26, i2, b3, i12, i28, i13, (long) i29, i30, j2, s3Var); + if (i20 != i26) { + } + i15 = i20; + i11 = i3; + i9 = i15; + b2 = b4; + i7 = i14; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } else { + unsafe = unsafe2; + i16 = i26; + b4 = b3; + i8 = i12; + i10 = i13; + if (i30 != 50) { + i20 = j(t, bArr, i16, i2, b4, i8, i28, i29, i30, j2, i10, s3Var); + if (i20 != i16) { + } + i15 = i20; + i11 = i3; + i9 = i15; + b2 = b4; + i7 = i14; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } else if (i28 == 2) { + l(t, bArr, i16, i2, i10, j2, s3Var); + throw null; + } + } + s3Var2 = s3Var; + bArr3 = bArr; + bArr2 = bArr3; + i19 = i2; + i21 = i3; + e6Var2 = this; + i22 = i8; + b10 = b4; + t5 = t; + i23 = i10; + i24 = i6; + i25 = i14; + unsafe2 = unsafe; + s3Var3 = s3Var2; + } else if (i28 == 2) { + b5 b5Var = (b5) unsafe2.getObject(t5, j2); + if (!b5Var.a()) { + int size = b5Var.size(); + b5Var = b5Var.f(size == 0 ? 10 : size << 1); + unsafe2.putObject(t5, j2, b5Var); + } + i20 = f.B1(e6Var2.o(i13), b3, bArr, i26, i2, b5Var, s3Var); + bArr3 = bArr3; + i24 = i24; + i25 = i25; + } else { + i6 = i24; + i14 = i25; + unsafe = unsafe2; + i16 = i26; + b4 = b3; + i8 = i12; + i10 = i13; + } + i15 = i16; + i11 = i3; + i9 = i15; + b2 = b4; + i7 = i14; + if (b2 == i11) { + } + if (this.h) { + } + i20 = f.z1(b2, bArr, i9, i2, M(t), s3Var); + bArr3 = bArr; + bArr2 = bArr3; + i21 = i11; + e6Var2 = this; + i22 = i8; + b10 = b2; + t5 = t3; + i25 = i7; + i23 = i10; + i24 = i6; + unsafe2 = unsafe; + i19 = i2; + s3Var3 = s3Var2; + } + bArr2 = bArr; + i21 = i3; + s3Var3 = s3Var; + i23 = i13; + b10 = b3; + i22 = i12; + } + i19 = i2; + } else { + unsafe = unsafe2; + t2 = t5; + e6Var = e6Var2; + b2 = b10; + } + } + if (i24 != 1048575) { + unsafe.putInt(t2, (long) i24, i25); + } + for (int i35 = e6Var.k; i35 < e6Var.l; i35++) { + int i36 = e6Var.j[i35]; + d7 d7Var = e6Var.o; + int[] iArr2 = e6Var.c; + int i37 = iArr2[i36]; + Object r = j7.r(t2, (long) (iArr2[i36 + 1] & 1048575)); + if (r != null) { + int i38 = (i36 / 3) << 1; + a5 a5Var = (a5) e6Var.d[i38 + 1]; + if (a5Var == null) { + continue; + } else { + Map b12 = e6Var.q.b(r); + e6Var.q.g(e6Var.d[i38]); + for (Map.Entry entry : b12.entrySet()) { + if (!a5Var.f(((Integer) entry.getValue()).intValue())) { + d7Var.a(); + entry.getKey(); + entry.getValue(); + Objects.requireNonNull(null); + throw null; + } + } + continue; + } + } + } + if (i21 == 0) { + if (i20 != i2) { + throw zzij.d(); + } + } else if (i20 > i2 || b2 != i21) { + throw zzij.d(); + } + return i20; + } + + public final q6 o(int i) { + int i2 = (i / 3) << 1; + Object[] objArr = this.d; + q6 q6Var = (q6) objArr[i2]; + if (q6Var != null) { + return q6Var; + } + q6 a2 = n6.a.a((Class) objArr[i2 + 1]); + this.d[i2] = a2; + return a2; + } + + public final void t(v7 v7Var, int i, Object obj, int i2) throws IOException { + if (obj != null) { + this.q.g(this.d[(i2 / 3) << 1]); + Map e = this.q.e(obj); + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + Iterator> it = e.entrySet().iterator(); + if (it.hasNext()) { + Map.Entry next = it.next(); + g4Var.a.f(i, 2); + next.getKey(); + next.getValue(); + Objects.requireNonNull(null); + throw null; + } + } + } + + public final void u(T t, T t2, int i) { + long j = (long) (this.c[i + 1] & 1048575); + if (v(t2, i)) { + Object r = j7.r(t, j); + Object r2 = j7.r(t2, j); + if (r != null && r2 != null) { + j7.f(t, j, w4.c(r, r2)); + B(t, i); + } else if (r2 != null) { + j7.f(t, j, r2); + B(t, i); + } + } + } + + public final boolean v(T t, int i) { + int[] iArr = this.c; + int i2 = iArr[i + 2]; + long j = (long) (i2 & 1048575); + if (j == 1048575) { + int i3 = iArr[i + 1]; + long j2 = (long) (i3 & 1048575); + switch ((i3 & 267386880) >>> 20) { + case 0: + return j7.q(t, j2) != ShadowDrawableWrapper.COS_45; + case 1: + return j7.n(t, j2) != 0.0f; + case 2: + return j7.i(t, j2) != 0; + case 3: + return j7.i(t, j2) != 0; + case 4: + return j7.b(t, j2) != 0; + case 5: + return j7.i(t, j2) != 0; + case 6: + return j7.b(t, j2) != 0; + case 7: + return j7.m(t, j2); + case 8: + Object r = j7.r(t, j2); + if (r instanceof String) { + return !((String) r).isEmpty(); + } + if (r instanceof t3) { + return !t3.j.equals(r); + } + throw new IllegalArgumentException(); + case 9: + return j7.r(t, j2) != null; + case 10: + return !t3.j.equals(j7.r(t, j2)); + case 11: + return j7.b(t, j2) != 0; + case 12: + return j7.b(t, j2) != 0; + case 13: + return j7.b(t, j2) != 0; + case 14: + return j7.i(t, j2) != 0; + case 15: + return j7.b(t, j2) != 0; + case 16: + return j7.i(t, j2) != 0; + case 17: + return j7.r(t, j2) != null; + default: + throw new IllegalArgumentException(); + } + } else { + return (j7.b(t, j) & (1 << (i2 >>> 20))) != 0; + } + } + + public final boolean w(T t, int i, int i2) { + return j7.b(t, (long) (this.c[i2 + 2] & 1048575)) == i; + } + + public final boolean x(T t, int i, int i2, int i3, int i4) { + return i2 == 1048575 ? v(t, i) : (i3 & i4) != 0; + } + + public final int z(int i, int i2) { + int length = (this.c.length / 3) - 1; + while (i2 <= length) { + int i3 = (length + i2) >>> 1; + int i4 = i3 * 3; + int i5 = this.c[i4]; + if (i == i5) { + return i4; + } + if (i < i5) { + length = i3 - 1; + } else { + i2 = i3 + 1; + } + } + return -1; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/e7.java b/app/src/main/java/b/i/a/f/h/l/e7.java new file mode 100644 index 0000000000..c682fb48eb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e7.java @@ -0,0 +1,55 @@ +package b.i.a.f.h.l; + +import java.util.AbstractList; +import java.util.Iterator; +import java.util.List; +import java.util.ListIterator; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class e7 extends AbstractList implements j5, RandomAccess { + public final j5 j; + + public e7(j5 j5Var) { + this.j = j5Var; + } + + @Override // b.i.a.f.h.l.j5 + public final Object A(int i) { + return this.j.A(i); + } + + @Override // b.i.a.f.h.l.j5 + public final List b() { + return this.j.b(); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object get(int i) { + return (String) this.j.get(i); + } + + @Override // java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection, java.lang.Iterable + public final Iterator iterator() { + return new g7(this); + } + + @Override // java.util.AbstractList, java.util.List + public final ListIterator listIterator(int i) { + return new h7(this, i); + } + + @Override // b.i.a.f.h.l.j5 + public final j5 s() { + return this; + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final int size() { + return this.j.size(); + } + + @Override // b.i.a.f.h.l.j5 + public final void t(t3 t3Var) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/e8.java b/app/src/main/java/b/i/a/f/h/l/e8.java new file mode 100644 index 0000000000..328a28a748 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e8.java @@ -0,0 +1,16 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class e8 implements f8 { + public static final l2 a; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.androidId.delete_feature", true); + q2Var.c("measurement.log_androidId_enabled", false); + } + + @Override // b.i.a.f.h.l.f8 + public final boolean a() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/e9.java b/app/src/main/java/b/i/a/f/h/l/e9.java new file mode 100644 index 0000000000..ca732542b2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/e9.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface e9 { + boolean a(); + + boolean b(); + + boolean c(); + + boolean d(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/ea.java b/app/src/main/java/b/i/a/f/h/l/ea.java new file mode 100644 index 0000000000..49d2dd3691 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ea.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class ea implements z2 { + public static ea j = new ea(); + public final z2 k = f.H1(new b3(new ga())); + + public static boolean b() { + return ((ha) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ ha a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/eb.java b/app/src/main/java/b/i/a/f/h/l/eb.java similarity index 86% rename from app/src/main/java/c/i/a/f/h/l/eb.java rename to app/src/main/java/b/i/a/f/h/l/eb.java index b8af78bc2a..2c66d19193 100644 --- a/app/src/main/java/c/i/a/f/h/l/eb.java +++ b/app/src/main/java/b/i/a/f/h/l/eb.java @@ -1,9 +1,9 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class eb implements fb { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.scheduler.task_thread.cleanup_on_exit", false); - @Override // c.i.a.f.h.l.fb + @Override // b.i.a.f.h.l.fb public final boolean a() { return a.d().booleanValue(); } diff --git a/app/src/main/java/c/i/a/f/h/l/ec.java b/app/src/main/java/b/i/a/f/h/l/ec.java similarity index 98% rename from app/src/main/java/c/i/a/f/h/l/ec.java rename to app/src/main/java/b/i/a/f/h/l/ec.java index 33191324d2..4d50fb4fc6 100644 --- a/app/src/main/java/c/i/a/f/h/l/ec.java +++ b/app/src/main/java/b/i/a/f/h/l/ec.java @@ -1,9 +1,9 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; import android.os.Bundle; import android.os.IInterface; import android.os.RemoteException; -import c.i.a.f.f.a; +import b.i.a.f.f.a; import com.google.android.gms.internal.measurement.zzae; import java.util.Map; /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ diff --git a/app/src/main/java/b/i/a/f/h/l/f.java b/app/src/main/java/b/i/a/f/h/l/f.java new file mode 100644 index 0000000000..64cd96f0b8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.l; + +import android.os.IBinder; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class f extends a implements d { + public f(IBinder iBinder) { + super(iBinder, "com.google.android.gms.measurement.api.internal.IStringProvider"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/f0.java b/app/src/main/java/b/i/a/f/h/l/f0.java new file mode 100644 index 0000000000..0ab11d62eb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f0.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class f0 extends g.a { + public final /* synthetic */ Activity n; + public final /* synthetic */ g.b o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public f0(g.b bVar, Activity activity) { + super(true); + this.o = bVar; + this.n = activity; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + g.this.j.onActivityPaused(new b(this.n), this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/f1.java b/app/src/main/java/b/i/a/f/h/l/f1.java new file mode 100644 index 0000000000..d1ffda3149 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f1.java @@ -0,0 +1,83 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import com.discord.widgets.chat.input.MentionUtilsKt; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class f1 extends u4 implements d6 { + private static final f1 zzf; + private static volatile j6 zzg; + private int zzc; + private int zzd = 1; + private b5 zze = m6.k; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a(k1 k1Var) { + super(f1.u()); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public enum b implements y4 { + RADS(1), + PROVISIONING(2); + + private final int zzd; + + public b(int i) { + this.zzd = i; + } + + @Override // b.i.a.f.h.l.y4 + public final int a() { + return this.zzd; + } + + @Override // java.lang.Enum, java.lang.Object + public final String toString() { + return "<" + b.class.getName() + MentionUtilsKt.MENTIONS_CHAR + Integer.toHexString(System.identityHashCode(this)) + " number=" + this.zzd + " name=" + name() + '>'; + } + } + + static { + f1 f1Var = new f1(); + zzf = f1Var; + u4.r(f1.class, f1Var); + } + + public static /* synthetic */ f1 u() { + return zzf; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new f1(); + case 2: + return new a(null); + case 3: + return new o6(zzf, "\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0001\u0000\u0001ဌ\u0000\u0002\u001b", new Object[]{"zzc", "zzd", m1.a, "zze", b1.class}); + case 4: + return zzf; + case 5: + j6 j6Var = zzg; + if (j6Var == null) { + synchronized (f1.class) { + j6Var = zzg; + if (j6Var == null) { + j6Var = new u4.a<>(zzf); + zzg = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/f2.java b/app/src/main/java/b/i/a/f/h/l/f2.java new file mode 100644 index 0000000000..0a2b131158 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f2.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import android.database.ContentObserver; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class f2 extends ContentObserver { + public f2() { + super(null); + } + + @Override // android.database.ContentObserver + public final void onChange(boolean z2) { + l2.d.incrementAndGet(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/f3.java b/app/src/main/java/b/i/a/f/h/l/f3.java new file mode 100644 index 0000000000..c33ecbb035 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f3.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class f3 { + public abstract void a(Throwable th, Throwable th2); +} diff --git a/app/src/main/java/b/i/a/f/h/l/f4.java b/app/src/main/java/b/i/a/f/h/l/f4.java new file mode 100644 index 0000000000..7ce9e4c792 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f4.java @@ -0,0 +1,218 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.nio.charset.Charset; +import java.util.AbstractList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Objects; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class f4 extends o3 implements b5, l6, RandomAccess { + public double[] k; + public int l; + + static { + new f4(new double[0], 0).j = false; + } + + public f4() { + this.k = new double[10]; + this.l = 0; + } + + public f4(double[] dArr, int i) { + this.k = dArr; + this.l = i; + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ void add(int i, Object obj) { + int i2; + double doubleValue = ((Double) obj).doubleValue(); + c(); + if (i < 0 || i > (i2 = this.l)) { + throw new IndexOutOfBoundsException(g(i)); + } + double[] dArr = this.k; + if (i2 < dArr.length) { + System.arraycopy(dArr, i, dArr, i + 1, i2 - i); + } else { + double[] dArr2 = new double[(((i2 * 3) / 2) + 1)]; + System.arraycopy(dArr, 0, dArr2, 0, i); + System.arraycopy(this.k, i, dArr2, i + 1, this.l - i); + this.k = dArr2; + } + this.k[i] = doubleValue; + this.l++; + ((AbstractList) this).modCount++; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public final /* synthetic */ boolean add(Object obj) { + d(((Double) obj).doubleValue()); + return true; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean addAll(Collection collection) { + c(); + Charset charset = w4.a; + Objects.requireNonNull(collection); + if (!(collection instanceof f4)) { + return super.addAll(collection); + } + f4 f4Var = (f4) collection; + int i = f4Var.l; + if (i == 0) { + return false; + } + int i2 = this.l; + if (Integer.MAX_VALUE - i2 >= i) { + int i3 = i2 + i; + double[] dArr = this.k; + if (i3 > dArr.length) { + this.k = Arrays.copyOf(dArr, i3); + } + System.arraycopy(f4Var.k, 0, this.k, this.l, f4Var.l); + this.l = i3; + ((AbstractList) this).modCount++; + return true; + } + throw new OutOfMemoryError(); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean contains(Object obj) { + return indexOf(obj) != -1; + } + + public final void d(double d) { + c(); + int i = this.l; + double[] dArr = this.k; + if (i == dArr.length) { + double[] dArr2 = new double[(((i * 3) / 2) + 1)]; + System.arraycopy(dArr, 0, dArr2, 0, i); + this.k = dArr2; + } + double[] dArr3 = this.k; + int i2 = this.l; + this.l = i2 + 1; + dArr3[i2] = d; + } + + public final void e(int i) { + if (i < 0 || i >= this.l) { + throw new IndexOutOfBoundsException(g(i)); + } + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof f4)) { + return super.equals(obj); + } + f4 f4Var = (f4) obj; + if (this.l != f4Var.l) { + return false; + } + double[] dArr = f4Var.k; + for (int i = 0; i < this.l; i++) { + if (Double.doubleToLongBits(this.k[i]) != Double.doubleToLongBits(dArr[i])) { + return false; + } + } + return true; + } + + /* Return type fixed from 'b.i.a.f.h.l.b5' to match base method */ + @Override // b.i.a.f.h.l.b5 + public final /* synthetic */ b5 f(int i) { + if (i >= this.l) { + return new f4(Arrays.copyOf(this.k, i), this.l); + } + throw new IllegalArgumentException(); + } + + public final String g(int i) { + return a.g(35, "Index:", i, ", Size:", this.l); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object get(int i) { + e(i); + return Double.valueOf(this.k[i]); + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final int hashCode() { + int i = 1; + for (int i2 = 0; i2 < this.l; i2++) { + i = (i * 31) + w4.a(Double.doubleToLongBits(this.k[i2])); + } + return i; + } + + @Override // java.util.AbstractList, java.util.List + public final int indexOf(Object obj) { + if (!(obj instanceof Double)) { + return -1; + } + double doubleValue = ((Double) obj).doubleValue(); + int i = this.l; + for (int i2 = 0; i2 < i; i2++) { + if (this.k[i2] == doubleValue) { + return i2; + } + } + return -1; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List + public final /* synthetic */ Object remove(int i) { + c(); + e(i); + double[] dArr = this.k; + double d = dArr[i]; + int i2 = this.l; + if (i < i2 - 1) { + System.arraycopy(dArr, i + 1, dArr, i, (i2 - i) - 1); + } + this.l--; + ((AbstractList) this).modCount++; + return Double.valueOf(d); + } + + @Override // java.util.AbstractList + public final void removeRange(int i, int i2) { + c(); + if (i2 >= i) { + double[] dArr = this.k; + System.arraycopy(dArr, i2, dArr, i, this.l - i2); + this.l -= i2 - i; + ((AbstractList) this).modCount++; + return; + } + throw new IndexOutOfBoundsException("toIndex < fromIndex"); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object set(int i, Object obj) { + double doubleValue = ((Double) obj).doubleValue(); + c(); + e(i); + double[] dArr = this.k; + double d = dArr[i]; + dArr[i] = doubleValue; + return Double.valueOf(d); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final int size() { + return this.l; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/f5.java b/app/src/main/java/b/i/a/f/h/l/f5.java new file mode 100644 index 0000000000..eb0bc69ef6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f5.java @@ -0,0 +1,37 @@ +package b.i.a.f.h.l; + +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class f5 implements Map.Entry { + public Map.Entry j; + + public f5(Map.Entry entry, g5 g5Var) { + this.j = entry; + } + + @Override // java.util.Map.Entry + public final K getKey() { + return this.j.getKey(); + } + + @Override // java.util.Map.Entry + public final Object getValue() { + if (this.j.getValue() == null) { + return null; + } + int i = d5.c; + throw new NoSuchMethodError(); + } + + @Override // java.util.Map.Entry + public final Object setValue(Object obj) { + if (obj instanceof c6) { + d5 value = this.j.getValue(); + c6 c6Var = value.a; + value.f1433b = null; + value.a = (c6) obj; + return c6Var; + } + throw new IllegalArgumentException("LazyField now only used for MessageSet, and the value of MessageSet must be an instance of MessageLite"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/f6.java b/app/src/main/java/b/i/a/f/h/l/f6.java new file mode 100644 index 0000000000..1e3bcb69fe --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f6.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface f6 extends c6, Cloneable { + f6 a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/f7.java b/app/src/main/java/b/i/a/f/h/l/f7.java new file mode 100644 index 0000000000..129540c73d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f7.java @@ -0,0 +1,94 @@ +package b.i.a.f.h.l; + +import com.google.android.gms.internal.measurement.zzhi; +import java.io.IOException; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class f7 extends d7 { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.d7 + public final /* synthetic */ c7 a() { + return c7.c(); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, int, long] */ + @Override // b.i.a.f.h.l.d7 + public final /* synthetic */ void b(c7 c7Var, int i, long j) { + c7Var.a(i << 3, Long.valueOf(j)); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, b.i.a.f.h.l.v7] */ + @Override // b.i.a.f.h.l.d7 + public final /* synthetic */ void c(c7 c7Var, v7 v7Var) throws IOException { + c7Var.d(v7Var); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.a.f.h.l.d7 + public final void d(Object obj, c7 c7Var) { + ((u4) obj).zzb = c7Var; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.d7 + public final /* synthetic */ c7 e(Object obj) { + return ((u4) obj).zzb; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, b.i.a.f.h.l.v7] */ + @Override // b.i.a.f.h.l.d7 + public final void f(c7 c7Var, v7 v7Var) throws IOException { + c7 c7Var2 = c7Var; + Objects.requireNonNull(c7Var2); + Objects.requireNonNull(v7Var); + for (int i = 0; i < c7Var2.f1423b; i++) { + ((g4) v7Var).c(c7Var2.c[i] >>> 3, c7Var2.d[i]); + } + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.a.f.h.l.d7 + public final c7 g(c7 c7Var, c7 c7Var2) { + c7 c7Var3 = c7Var; + c7 c7Var4 = c7Var2; + if (c7Var4.equals(c7.a)) { + return c7Var3; + } + int i = c7Var3.f1423b + c7Var4.f1423b; + int[] copyOf = Arrays.copyOf(c7Var3.c, i); + System.arraycopy(c7Var4.c, 0, copyOf, c7Var3.f1423b, c7Var4.f1423b); + Object[] copyOf2 = Arrays.copyOf(c7Var3.d, i); + System.arraycopy(c7Var4.d, 0, copyOf2, c7Var3.f1423b, c7Var4.f1423b); + return new c7(i, copyOf, copyOf2, true); + } + + @Override // b.i.a.f.h.l.d7 + public final void h(Object obj) { + ((u4) obj).zzb.f = false; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.h.l.d7 + public final int i(c7 c7Var) { + c7 c7Var2 = c7Var; + int i = c7Var2.e; + if (i != -1) { + return i; + } + int i2 = 0; + for (int i3 = 0; i3 < c7Var2.f1423b; i3++) { + int M = zzhi.M(2, c7Var2.c[i3] >>> 3); + i2 += zzhi.w(3, (t3) c7Var2.d[i3]) + M + (zzhi.L(8) << 1); + } + c7Var2.e = i2; + return i2; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.h.l.d7 + public final /* synthetic */ int j(c7 c7Var) { + return c7Var.e(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/f8.java b/app/src/main/java/b/i/a/f/h/l/f8.java new file mode 100644 index 0000000000..ce41f6d931 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f8.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface f8 { + boolean a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/f9.java b/app/src/main/java/b/i/a/f/h/l/f9.java new file mode 100644 index 0000000000..b4861478ac --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/f9.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class f9 implements z2 { + public static f9 j = new f9(); + public final z2 k = f.H1(new b3(new h9())); + + public static boolean b() { + return ((e9) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ e9 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/fa.java b/app/src/main/java/b/i/a/f/h/l/fa.java new file mode 100644 index 0000000000..fb5256a0f8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/fa.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class fa implements ca { + public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.ga.ga_app_id", false); + + @Override // b.i.a.f.h.l.ca + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.ca + public final boolean b() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/fb.java b/app/src/main/java/b/i/a/f/h/l/fb.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/fb.java rename to app/src/main/java/b/i/a/f/h/l/fb.java index 6da3ab7709..766488f9a2 100644 --- a/app/src/main/java/c/i/a/f/h/l/fb.java +++ b/app/src/main/java/b/i/a/f/h/l/fb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface fb { boolean a(); diff --git a/app/src/main/java/c/i/a/f/h/l/fc.java b/app/src/main/java/b/i/a/f/h/l/fc.java similarity index 92% rename from app/src/main/java/c/i/a/f/h/l/fc.java rename to app/src/main/java/b/i/a/f/h/l/fc.java index b16f1d4d53..f8ed0a6573 100644 --- a/app/src/main/java/c/i/a/f/h/l/fc.java +++ b/app/src/main/java/b/i/a/f/h/l/fc.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; import android.os.Bundle; import android.os.IInterface; diff --git a/app/src/main/java/b/i/a/f/h/l/g.java b/app/src/main/java/b/i/a/f/h/l/g.java new file mode 100644 index 0000000000..85c24e2aaa --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g.java @@ -0,0 +1,299 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.app.Application; +import android.content.Context; +import android.content.SharedPreferences; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageManager; +import android.os.Bundle; +import android.os.RemoteException; +import android.os.SystemClock; +import android.util.Log; +import android.util.Pair; +import androidx.annotation.GuardedBy; +import b.c.a.a0.d; +import b.i.a.f.e.o.f; +import b.i.a.f.i.b.z5; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public class g { + public static volatile g a; + + /* renamed from: b reason: collision with root package name */ + public static Boolean f1427b; + public final String c; + public final b.i.a.f.e.o.b d; + public final ExecutorService e; + public final b.i.a.f.i.a.a f; + @GuardedBy("listenerList") + public final List> g; + public int h; + public boolean i; + public volatile ec j; + + /* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ + public abstract class a implements Runnable { + public final long j = System.currentTimeMillis(); + public final long k; + public final boolean l; + + public a(boolean z2) { + Objects.requireNonNull((b.i.a.f.e.o.c) g.this.d); + Objects.requireNonNull((b.i.a.f.e.o.c) g.this.d); + this.k = SystemClock.elapsedRealtime(); + this.l = z2; + } + + public abstract void a() throws RemoteException; + + public void b() { + } + + @Override // java.lang.Runnable + public void run() { + if (g.this.i) { + b(); + return; + } + try { + a(); + } catch (Exception e) { + g.this.b(e, false, this.l); + b(); + } + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ + public class b implements Application.ActivityLifecycleCallbacks { + public b() { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityCreated(Activity activity, Bundle bundle) { + g gVar = g.this; + gVar.e.execute(new e0(this, bundle, activity)); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityDestroyed(Activity activity) { + g gVar = g.this; + gVar.e.execute(new j0(this, activity)); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityPaused(Activity activity) { + g gVar = g.this; + gVar.e.execute(new f0(this, activity)); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityResumed(Activity activity) { + g gVar = g.this; + gVar.e.execute(new g0(this, activity)); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) { + cc ccVar = new cc(); + g gVar = g.this; + gVar.e.execute(new h0(this, activity, ccVar)); + Bundle x0 = ccVar.x0(50); + if (x0 != null) { + bundle.putAll(x0); + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStarted(Activity activity) { + g gVar = g.this; + gVar.e.execute(new d0(this, activity)); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStopped(Activity activity) { + g gVar = g.this; + gVar.e.execute(new i0(this, activity)); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ + public static class c extends b { + public final z5 a; + + public c(z5 z5Var) { + this.a = z5Var; + } + + @Override // b.i.a.f.h.l.c + public final void Z(String str, String str2, Bundle bundle, long j) { + this.a.a(str, str2, bundle, j); + } + + @Override // b.i.a.f.h.l.c + public final int a() { + return System.identityHashCode(this.a); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:14:0x0053 */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x0063 */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x006d */ + public g(Context context, String str, String str2, String str3, Bundle bundle) { + boolean z2; + boolean z3; + boolean z4; + if (str == null || !e(str2, str3)) { + this.c = "FA"; + } else { + this.c = str; + } + this.d = b.i.a.f.e.o.c.a; + ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 60, TimeUnit.SECONDS, new LinkedBlockingQueue(), new o()); + boolean z5 = true; + threadPoolExecutor.allowCoreThreadTimeOut(true); + this.e = Executors.unconfigurableExecutorService(threadPoolExecutor); + this.f = new b.i.a.f.i.a.a(this); + this.g = new ArrayList(); + try { + if (f.M1(context, "google_app_id") != null) { + z2 = true; + if (z2) { + try { + Class.forName("com.google.firebase.analytics.FirebaseAnalytics"); + z4 = true; + } catch (ClassNotFoundException unused) { + z4 = false; + } + if (!z4) { + z3 = false; + if (!z3) { + this.i = true; + Log.w(this.c, "Disabling data collection. Found google_app_id in strings.xml but Google Analytics for Firebase is missing. Remove this value or add Google Analytics for Firebase to resume data collection."); + return; + } + if (!e(str2, str3)) { + if (str2 == null || str3 == null) { + if ((str2 == null) ^ (str3 != null ? false : z5)) { + Log.w(this.c, "Specified origin or custom app id is null. Both parameters will be ignored."); + } + } else { + Log.v(this.c, "Deferring to Google Analytics for Firebase for event data collection. https://goo.gl/J1sWQy"); + } + } + this.e.execute(new j(this, str2, str3, context, bundle)); + Application application = (Application) context.getApplicationContext(); + if (application == null) { + Log.w(this.c, "Unable to register lifecycle notifications. Application null."); + return; + } else { + application.registerActivityLifecycleCallbacks(new b()); + return; + } + } + } + z3 = true; + if (!z3) { + } + } + } catch (IllegalStateException unused2) { + } + z2 = false; + if (z2) { + } + z3 = true; + if (!z3) { + } + } + + public static g a(Context context, String str, String str2, String str3, Bundle bundle) { + Objects.requireNonNull(context, "null reference"); + if (a == null) { + synchronized (g.class) { + if (a == null) { + a = new g(context, null, null, null, bundle); + } + } + } + return a; + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x002c */ + /* JADX WARNING: Removed duplicated region for block: B:20:0x0032 */ + public static void d(Context context) { + boolean z2; + synchronized (g.class) { + try { + if (f1427b == null) { + d.w("app_measurement_internal_disable_startup_flags"); + try { + ApplicationInfo a2 = b.i.a.f.e.p.b.a(context).a(context.getPackageName(), 128); + if (a2 != null) { + Bundle bundle = a2.metaData; + if (bundle != null) { + z2 = bundle.getBoolean("app_measurement_internal_disable_startup_flags"); + if (!z2) { + f1427b = Boolean.TRUE; + return; + } + SharedPreferences sharedPreferences = context.getSharedPreferences("com.google.android.gms.measurement.prefs", 0); + f1427b = Boolean.valueOf(sharedPreferences.getBoolean("allow_remote_dynamite", true)); + SharedPreferences.Editor edit = sharedPreferences.edit(); + edit.remove("allow_remote_dynamite"); + edit.apply(); + return; + } + } + } catch (PackageManager.NameNotFoundException unused) { + } + z2 = false; + if (!z2) { + } + } + } catch (Exception e) { + Log.e("FA", "Exception reading flag from SharedPreferences.", e); + f1427b = Boolean.TRUE; + } + } + } + + public static boolean e(String str, String str2) { + boolean z2; + if (!(str2 == null || str == null)) { + try { + Class.forName("com.google.firebase.analytics.FirebaseAnalytics"); + z2 = true; + } catch (ClassNotFoundException unused) { + z2 = false; + } + if (!z2) { + return true; + } + } + return false; + } + + public final void b(Exception exc, boolean z2, boolean z3) { + this.i |= z2; + if (z2) { + Log.w(this.c, "Data collection startup failed. No data will be collected.", exc); + return; + } + if (z3) { + this.e.execute(new y(this, "Error with data collection. Data lost.", exc)); + } + Log.w(this.c, "Error with data collection. Data lost.", exc); + } + + public final void c(String str, String str2, Bundle bundle, boolean z2, boolean z3, Long l) { + this.e.execute(new c0(this, null, str, str2, bundle, z2, z3)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/g0.java b/app/src/main/java/b/i/a/f/h/l/g0.java new file mode 100644 index 0000000000..8e5ff98012 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g0.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class g0 extends g.a { + public final /* synthetic */ Activity n; + public final /* synthetic */ g.b o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g0(g.b bVar, Activity activity) { + super(true); + this.o = bVar; + this.n = activity; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + g.this.j.onActivityResumed(new b(this.n), this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/g1.java b/app/src/main/java/b/i/a/f/h/l/g1.java new file mode 100644 index 0000000000..c070da1c38 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g1.java @@ -0,0 +1,182 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class g1 extends u4 implements d6 { + private static final g1 zzg; + private static volatile j6 zzh; + private c5 zzc; + private c5 zzd; + private b5 zze; + private b5

zzf; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(g1.O()); + } + + public a(k1 k1Var) { + super(g1.O()); + } + } + + static { + g1 g1Var = new g1(); + zzg = g1Var; + u4.r(g1.class, g1Var); + } + + public g1() { + q5 q5Var = q5.k; + this.zzc = q5Var; + this.zzd = q5Var; + m6 m6Var = m6.k; + this.zze = m6Var; + this.zzf = m6Var; + } + + public static void B(g1 g1Var) { + Objects.requireNonNull(g1Var); + g1Var.zzd = q5.k; + } + + public static void C(g1 g1Var, int i) { + b5

b5Var = g1Var.zzf; + if (!b5Var.a()) { + g1Var.zzf = u4.n(b5Var); + } + g1Var.zzf.remove(i); + } + + public static void D(g1 g1Var, Iterable iterable) { + c5 c5Var = g1Var.zzd; + if (!((o3) c5Var).j) { + g1Var.zzd = u4.o(c5Var); + } + l3.c(iterable, g1Var.zzd); + } + + public static void F(g1 g1Var, Iterable iterable) { + b5 b5Var = g1Var.zze; + if (!b5Var.a()) { + g1Var.zze = u4.n(b5Var); + } + l3.c(iterable, g1Var.zze); + } + + public static void H(g1 g1Var, Iterable iterable) { + b5

b5Var = g1Var.zzf; + if (!b5Var.a()) { + g1Var.zzf = u4.n(b5Var); + } + l3.c(iterable, g1Var.zzf); + } + + public static a M() { + return zzg.s(); + } + + public static g1 N() { + return zzg; + } + + public static /* synthetic */ g1 O() { + return zzg; + } + + public static void w(g1 g1Var) { + Objects.requireNonNull(g1Var); + g1Var.zzc = q5.k; + } + + public static void x(g1 g1Var, int i) { + b5 b5Var = g1Var.zze; + if (!b5Var.a()) { + g1Var.zze = u4.n(b5Var); + } + g1Var.zze.remove(i); + } + + public static void y(g1 g1Var, Iterable iterable) { + c5 c5Var = g1Var.zzc; + if (!((o3) c5Var).j) { + g1Var.zzc = u4.o(c5Var); + } + l3.c(iterable, g1Var.zzc); + } + + public final h1 A(int i) { + return this.zzf.get(i); + } + + public final List E() { + return this.zzd; + } + + public final int G() { + return ((q5) this.zzd).size(); + } + + public final List I() { + return this.zze; + } + + public final int J() { + return this.zze.size(); + } + + public final List

K() { + return this.zzf; + } + + public final int L() { + return this.zzf.size(); + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new g1(); + case 2: + return new a(null); + case 3: + return new o6(zzg, "\u0001\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0004\u0000\u0001\u0015\u0002\u0015\u0003\u001b\u0004\u001b", new Object[]{"zzc", "zzd", "zze", z0.class, "zzf", h1.class}); + case 4: + return zzg; + case 5: + j6 j6Var = zzh; + if (j6Var == null) { + synchronized (g1.class) { + j6Var = zzh; + if (j6Var == null) { + j6Var = new u4.a<>(zzg); + zzh = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final z0 u(int i) { + return this.zze.get(i); + } + + public final List v() { + return this.zzc; + } + + public final int z() { + return ((q5) this.zzc).size(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/g2.java b/app/src/main/java/b/i/a/f/h/l/g2.java new file mode 100644 index 0000000000..d160980cb2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g2.java @@ -0,0 +1,108 @@ +package b.i.a.f.h.l; + +import android.content.ContentResolver; +import android.database.Cursor; +import android.net.Uri; +import java.util.HashMap; +import java.util.TreeMap; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class g2 implements d2 { + public final c2 a; + + /* renamed from: b reason: collision with root package name */ + public final String f1428b; + + public g2(c2 c2Var, String str) { + this.a = c2Var; + this.f1428b = str; + } + + @Override // b.i.a.f.h.l.d2 + public final Object a() { + String str; + c2 c2Var = this.a; + String str2 = this.f1428b; + ContentResolver contentResolver = c2Var.f1422b.getContentResolver(); + Uri uri = u1.a; + synchronized (u1.class) { + if (u1.f == null) { + u1.e.set(false); + u1.f = new HashMap<>(); + u1.k = new Object(); + u1.l = false; + contentResolver.registerContentObserver(u1.a, true, new t1()); + } else if (u1.e.getAndSet(false)) { + u1.f.clear(); + u1.g.clear(); + u1.h.clear(); + u1.i.clear(); + u1.j.clear(); + u1.k = new Object(); + u1.l = false; + } + Object obj = u1.k; + str = null; + if (u1.f.containsKey(str2)) { + String str3 = u1.f.get(str2); + if (str3 != null) { + str = str3; + } + } else { + String[] strArr = u1.m; + int length = strArr.length; + int i = 0; + while (true) { + if (i >= length) { + Cursor query = contentResolver.query(u1.a, null, null, new String[]{str2}, null); + if (query != null) { + try { + if (!query.moveToFirst()) { + u1.a(obj, str2, null); + } else { + String string = query.getString(1); + if (string != null && string.equals(null)) { + string = null; + } + u1.a(obj, str2, string); + if (string != null) { + str = string; + } + query.close(); + } + } finally { + query.close(); + } + } else if (query != null) { + query.close(); + } + } else if (!str2.startsWith(strArr[i])) { + i++; + } else if (!u1.l || u1.f.isEmpty()) { + String[] strArr2 = u1.m; + HashMap hashMap = u1.f; + Cursor query2 = contentResolver.query(u1.f1481b, null, null, strArr2, null); + TreeMap treeMap = new TreeMap(); + if (query2 != null) { + while (query2.moveToNext()) { + try { + treeMap.put(query2.getString(0), query2.getString(1)); + } finally { + query2.close(); + } + } + } + hashMap.putAll(treeMap); + u1.l = true; + if (u1.f.containsKey(str2)) { + String str4 = u1.f.get(str2); + if (str4 != null) { + str = str4; + } + } + } + } + } + } + return str; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/g3.java b/app/src/main/java/b/i/a/f/h/l/g3.java new file mode 100644 index 0000000000..0be09e6599 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g3.java @@ -0,0 +1,50 @@ +package b.i.a.f.h.l; + +import java.io.PrintStream; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class g3 { + public static final f3 a; + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static final class a extends f3 { + @Override // b.i.a.f.h.l.f3 + public final void a(Throwable th, Throwable th2) { + } + } + + /* JADX WARNING: Removed duplicated region for block: B:19:0x0080 */ + /* JADX WARNING: Removed duplicated region for block: B:21:? A[RETURN, SYNTHETIC] */ + static { + f3 f3Var; + Integer num = null; + try { + num = (Integer) Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null); + } catch (Exception e) { + System.err.println("Failed to retrieve value from android.os.Build$VERSION.SDK_INT due to the following exception."); + e.printStackTrace(System.err); + } catch (Throwable th) { + PrintStream printStream = System.err; + String name = a.class.getName(); + StringBuilder sb = new StringBuilder(name.length() + 133); + sb.append("An error has occurred when initializing the try-with-resources desuguring strategy. The default strategy "); + sb.append(name); + sb.append("will be used. The error is: "); + printStream.println(sb.toString()); + th.printStackTrace(System.err); + f3Var = new a(); + } + if (num == null || num.intValue() < 19) { + f3Var = Boolean.getBoolean("com.google.devtools.build.android.desugar.runtime.twr_disable_mimic") ^ true ? new j3() : new a(); + a = f3Var; + if (num == null) { + num.intValue(); + return; + } + return; + } + f3Var = new k3(); + a = f3Var; + if (num == null) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/g4.java b/app/src/main/java/b/i/a/f/h/l/g4.java new file mode 100644 index 0000000000..c24f58441e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g4.java @@ -0,0 +1,55 @@ +package b.i.a.f.h.l; + +import com.google.android.gms.internal.measurement.zzhi; +import java.io.IOException; +import java.nio.charset.Charset; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class g4 implements v7 { + public final zzhi a; + + public g4(zzhi zzhi) { + Charset charset = w4.a; + this.a = zzhi; + zzhi.c = this; + } + + public final void a(int i, double d) throws IOException { + zzhi zzhi = this.a; + Objects.requireNonNull(zzhi); + zzhi.z(i, Double.doubleToRawLongBits(d)); + } + + public final void b(int i, float f) throws IOException { + zzhi zzhi = this.a; + Objects.requireNonNull(zzhi); + zzhi.G(i, Float.floatToRawIntBits(f)); + } + + public final void c(int i, Object obj) throws IOException { + if (obj instanceof t3) { + this.a.t(i, (t3) obj); + } else { + this.a.i(i, (c6) obj); + } + } + + public final void d(int i, Object obj, q6 q6Var) throws IOException { + this.a.j(i, (c6) obj, q6Var); + } + + public final void e(int i, Object obj, q6 q6Var) throws IOException { + zzhi zzhi = this.a; + zzhi.f(i, 3); + q6Var.g((c6) obj, zzhi.c); + zzhi.f(i, 4); + } + + public final void f(int i, long j) throws IOException { + this.a.g(i, zzhi.R(j)); + } + + public final void g(int i, int i2) throws IOException { + this.a.y(i, zzhi.V(i2)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/g6.java b/app/src/main/java/b/i/a/f/h/l/g6.java new file mode 100644 index 0000000000..67cac866ba --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g6.java @@ -0,0 +1,165 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +import b.i.a.f.h.l.u4; +import com.google.android.gms.internal.measurement.zzij; +import java.io.IOException; +import java.util.Iterator; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class g6 implements q6 { + public final c6 a; + + /* renamed from: b reason: collision with root package name */ + public final d7 f1429b; + public final boolean c; + public final j4 d; + + public g6(d7 d7Var, j4 j4Var, c6 c6Var) { + this.f1429b = d7Var; + this.c = j4Var.e(c6Var); + this.d = j4Var; + this.a = c6Var; + } + + @Override // b.i.a.f.h.l.q6 + public final T a() { + return (T) ((u4.b) this.a.h()).o(); + } + + @Override // b.i.a.f.h.l.q6 + public final int b(T t) { + int hashCode = this.f1429b.e(t).hashCode(); + return this.c ? (hashCode * 53) + this.d.b(t).hashCode() : hashCode; + } + + @Override // b.i.a.f.h.l.q6 + public final boolean c(T t) { + return this.d.b(t).m(); + } + + @Override // b.i.a.f.h.l.q6 + public final void d(T t) { + this.f1429b.h(t); + this.d.g(t); + } + + @Override // b.i.a.f.h.l.q6 + public final int e(T t) { + d7 d7Var = this.f1429b; + int i = d7Var.i(d7Var.e(t)) + 0; + if (!this.c) { + return i; + } + n4 b2 = this.d.b(t); + int i2 = 0; + for (int i3 = 0; i3 < b2.f1446b.e(); i3++) { + i2 += n4.k(b2.f1446b.d(i3)); + } + for (Map.Entry entry : b2.f1446b.g()) { + i2 += n4.k(entry); + } + return i + i2; + } + + @Override // b.i.a.f.h.l.q6 + public final boolean f(T t, T t2) { + if (!this.f1429b.e(t).equals(this.f1429b.e(t2))) { + return false; + } + if (this.c) { + return this.d.b(t).equals(this.d.b(t2)); + } + return true; + } + + @Override // b.i.a.f.h.l.q6 + public final void g(T t, v7 v7Var) throws IOException { + Iterator> l = this.d.b(t).l(); + while (l.hasNext()) { + Map.Entry next = l.next(); + p4 p4Var = (p4) next.getKey(); + if (p4Var.c() != w7.MESSAGE || p4Var.d() || p4Var.e()) { + throw new IllegalStateException("Found invalid MessageSet item."); + } else if (next instanceof f5) { + ((g4) v7Var).c(p4Var.a(), ((f5) next).j.getValue().c()); + } else { + ((g4) v7Var).c(p4Var.a(), next.getValue()); + } + } + d7 d7Var = this.f1429b; + d7Var.f(d7Var.e(t), v7Var); + } + + @Override // b.i.a.f.h.l.q6 + public final void h(T t, byte[] bArr, int i, int i2, s3 s3Var) throws IOException { + T t2 = t; + c7 c7Var = t2.zzb; + if (c7Var == c7.a) { + c7Var = c7.c(); + t2.zzb = c7Var; + } + t.u(); + u4.f fVar = null; + while (i < i2) { + int F1 = f.F1(bArr, i, s3Var); + int i3 = s3Var.a; + if (i3 == 11) { + int i4 = 0; + t3 t3Var = null; + while (F1 < i2) { + F1 = f.F1(bArr, F1, s3Var); + int i5 = s3Var.a; + int i6 = i5 >>> 3; + int i7 = i5 & 7; + if (i6 != 2) { + if (i6 == 3) { + if (fVar != null) { + n6 n6Var = n6.a; + throw new NoSuchMethodError(); + } else if (i7 == 2) { + F1 = f.l2(bArr, F1, s3Var); + t3Var = (t3) s3Var.c; + } + } + } else if (i7 == 0) { + F1 = f.F1(bArr, F1, s3Var); + i4 = s3Var.a; + fVar = (u4.f) this.d.c(s3Var.d, this.a, i4); + } + if (i5 == 12) { + break; + } + F1 = f.x1(i5, bArr, F1, i2, s3Var); + } + if (t3Var != null) { + c7Var.a((i4 << 3) | 2, t3Var); + } + i = F1; + } else if ((i3 & 7) == 2) { + fVar = (u4.f) this.d.c(s3Var.d, this.a, i3 >>> 3); + if (fVar == null) { + i = f.z1(i3, bArr, F1, i2, c7Var, s3Var); + } else { + n6 n6Var2 = n6.a; + throw new NoSuchMethodError(); + } + } else { + i = f.x1(i3, bArr, F1, i2, s3Var); + } + } + if (i != i2) { + throw zzij.d(); + } + } + + @Override // b.i.a.f.h.l.q6 + public final void i(T t, T t2) { + d7 d7Var = this.f1429b; + Class cls = s6.a; + d7Var.d(t, d7Var.g(d7Var.e(t), d7Var.e(t2))); + if (this.c) { + s6.i(this.d, t, t2); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/g7.java b/app/src/main/java/b/i/a/f/h/l/g7.java new file mode 100644 index 0000000000..94f302fd00 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g7.java @@ -0,0 +1,29 @@ +package b.i.a.f.h.l; + +import java.util.Iterator; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class g7 implements Iterator { + public Iterator j; + public final /* synthetic */ e7 k; + + public g7(e7 e7Var) { + this.k = e7Var; + this.j = e7Var.j.iterator(); + } + + @Override // java.util.Iterator + public final boolean hasNext() { + return this.j.hasNext(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.Iterator + public final /* synthetic */ String next() { + return this.j.next(); + } + + @Override // java.util.Iterator + public final void remove() { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/g8.java b/app/src/main/java/b/i/a/f/h/l/g8.java new file mode 100644 index 0000000000..256269f8db --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g8.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface g8 { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/g9.java b/app/src/main/java/b/i/a/f/h/l/g9.java new file mode 100644 index 0000000000..cf7d03c9a9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/g9.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class g9 implements z2 { + public static g9 j = new g9(); + public final z2 k = f.H1(new b3(new i9())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ j9 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/ga.java b/app/src/main/java/b/i/a/f/h/l/ga.java new file mode 100644 index 0000000000..de3f80bb28 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ga.java @@ -0,0 +1,37 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class ga implements ha { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1430b; + public static final l2 c; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.client.global_params", true); + f1430b = q2Var.c("measurement.service.global_params_in_payload", true); + c = q2Var.c("measurement.service.global_params", true); + q2Var.a("measurement.id.service.global_params", 0); + } + + @Override // b.i.a.f.h.l.ha + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.ha + public final boolean b() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.ha + public final boolean c() { + return f1430b.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.ha + public final boolean d() { + return c.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/gb.java b/app/src/main/java/b/i/a/f/h/l/gb.java similarity index 87% rename from app/src/main/java/c/i/a/f/h/l/gb.java rename to app/src/main/java/b/i/a/f/h/l/gb.java index 81aca33d25..89c0715696 100644 --- a/app/src/main/java/c/i/a/f/h/l/gb.java +++ b/app/src/main/java/b/i/a/f/h/l/gb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface gb { boolean a(); diff --git a/app/src/main/java/c/i/a/f/h/l/gc.java b/app/src/main/java/b/i/a/f/h/l/gc.java similarity index 86% rename from app/src/main/java/c/i/a/f/h/l/gc.java rename to app/src/main/java/b/i/a/f/h/l/gc.java index 702e348bb0..c72afcde01 100644 --- a/app/src/main/java/c/i/a/f/h/l/gc.java +++ b/app/src/main/java/b/i/a/f/h/l/gc.java @@ -1,10 +1,10 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; import android.os.Bundle; import android.os.IBinder; import android.os.Parcel; import android.os.RemoteException; -import c.i.a.f.f.a; +import b.i.a.f.f.a; import com.google.android.gms.internal.measurement.zzae; /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ public final class gc extends a implements ec { @@ -12,7 +12,7 @@ public final class gc extends a implements ec { super(iBinder, "com.google.android.gms.measurement.api.internal.IAppMeasurementDynamiteService"); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void beginAdUnitExposure(String str, long j) throws RemoteException { Parcel e = e(); e.writeString(str); @@ -20,7 +20,7 @@ public final class gc extends a implements ec { h(23, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void clearConditionalUserProperty(String str, String str2, Bundle bundle) throws RemoteException { Parcel e = e(); e.writeString(str); @@ -29,7 +29,7 @@ public final class gc extends a implements ec { h(9, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void endAdUnitExposure(String str, long j) throws RemoteException { Parcel e = e(); e.writeString(str); @@ -37,21 +37,21 @@ public final class gc extends a implements ec { h(24, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void generateEventId(fc fcVar) throws RemoteException { Parcel e = e(); v.b(e, fcVar); h(22, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void getCachedAppInstanceId(fc fcVar) throws RemoteException { Parcel e = e(); v.b(e, fcVar); h(19, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void getConditionalUserProperties(String str, String str2, fc fcVar) throws RemoteException { Parcel e = e(); e.writeString(str); @@ -60,28 +60,28 @@ public final class gc extends a implements ec { h(10, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void getCurrentScreenClass(fc fcVar) throws RemoteException { Parcel e = e(); v.b(e, fcVar); h(17, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void getCurrentScreenName(fc fcVar) throws RemoteException { Parcel e = e(); v.b(e, fcVar); h(16, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void getGmpAppId(fc fcVar) throws RemoteException { Parcel e = e(); v.b(e, fcVar); h(21, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void getMaxUserProperties(String str, fc fcVar) throws RemoteException { Parcel e = e(); e.writeString(str); @@ -89,7 +89,7 @@ public final class gc extends a implements ec { h(6, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void getUserProperties(String str, String str2, boolean z2, fc fcVar) throws RemoteException { Parcel e = e(); e.writeString(str); @@ -100,7 +100,7 @@ public final class gc extends a implements ec { h(5, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void initialize(a aVar, zzae zzae, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -109,7 +109,7 @@ public final class gc extends a implements ec { h(1, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void logEvent(String str, String str2, Bundle bundle, boolean z2, boolean z3, long j) throws RemoteException { Parcel e = e(); e.writeString(str); @@ -121,7 +121,7 @@ public final class gc extends a implements ec { h(2, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void logHealthData(int i, String str, a aVar, a aVar2, a aVar3) throws RemoteException { Parcel e = e(); e.writeInt(i); @@ -132,7 +132,7 @@ public final class gc extends a implements ec { h(33, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void onActivityCreated(a aVar, Bundle bundle, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -141,7 +141,7 @@ public final class gc extends a implements ec { h(27, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void onActivityDestroyed(a aVar, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -149,7 +149,7 @@ public final class gc extends a implements ec { h(28, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void onActivityPaused(a aVar, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -157,7 +157,7 @@ public final class gc extends a implements ec { h(29, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void onActivityResumed(a aVar, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -165,7 +165,7 @@ public final class gc extends a implements ec { h(30, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void onActivitySaveInstanceState(a aVar, fc fcVar, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -174,7 +174,7 @@ public final class gc extends a implements ec { h(31, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void onActivityStarted(a aVar, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -182,7 +182,7 @@ public final class gc extends a implements ec { h(25, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void onActivityStopped(a aVar, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -190,14 +190,14 @@ public final class gc extends a implements ec { h(26, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void registerOnMeasurementEventListener(c cVar) throws RemoteException { Parcel e = e(); v.b(e, cVar); h(35, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void setConditionalUserProperty(Bundle bundle, long j) throws RemoteException { Parcel e = e(); v.c(e, bundle); @@ -205,7 +205,7 @@ public final class gc extends a implements ec { h(8, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void setCurrentScreen(a aVar, String str, String str2, long j) throws RemoteException { Parcel e = e(); v.b(e, aVar); @@ -215,7 +215,7 @@ public final class gc extends a implements ec { h(15, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void setDataCollectionEnabled(boolean z2) throws RemoteException { Parcel e = e(); ClassLoader classLoader = v.a; @@ -223,7 +223,7 @@ public final class gc extends a implements ec { h(39, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void setUserId(String str, long j) throws RemoteException { Parcel e = e(); e.writeString(str); @@ -231,7 +231,7 @@ public final class gc extends a implements ec { h(7, e); } - @Override // c.i.a.f.h.l.ec + @Override // b.i.a.f.h.l.ec public final void setUserProperty(String str, String str2, a aVar, boolean z2, long j) throws RemoteException { Parcel e = e(); e.writeString(str); diff --git a/app/src/main/java/b/i/a/f/h/l/h.java b/app/src/main/java/b/i/a/f/h/l/h.java new file mode 100644 index 0000000000..e90c155ac1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h.java @@ -0,0 +1,59 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.measurement.zzae; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class h implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzae createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + long j = 0; + long j2 = 0; + String str = null; + String str2 = null; + String str3 = null; + Bundle bundle = null; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + j = d.F1(parcel, readInt); + break; + case 2: + j2 = d.F1(parcel, readInt); + break; + case 3: + z2 = d.C1(parcel, readInt); + break; + case 4: + str = d.Q(parcel, readInt); + break; + case 5: + str2 = d.Q(parcel, readInt); + break; + case 6: + str3 = d.Q(parcel, readInt); + break; + case 7: + bundle = d.M(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzae(j, j2, z2, str, str2, str3, bundle); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzae[] newArray(int i) { + return new zzae[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h0.java b/app/src/main/java/b/i/a/f/h/l/h0.java new file mode 100644 index 0000000000..beefb0dedf --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h0.java @@ -0,0 +1,25 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class h0 extends g.a { + public final /* synthetic */ Activity n; + public final /* synthetic */ cc o; + public final /* synthetic */ g.b p; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h0(g.b bVar, Activity activity, cc ccVar) { + super(true); + this.p = bVar; + this.n = activity; + this.o = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + g.this.j.onActivitySaveInstanceState(new b(this.n), this.o, this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h1.java b/app/src/main/java/b/i/a/f/h/l/h1.java new file mode 100644 index 0000000000..d7520195c7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h1.java @@ -0,0 +1,104 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class h1 extends u4 implements d6 { + private static final h1 zzf; + private static volatile j6

zzg; + private int zzc; + private int zzd; + private c5 zze = q5.k; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(h1.C()); + } + + public a(k1 k1Var) { + super(h1.C()); + } + } + + static { + h1 h1Var = new h1(); + zzf = h1Var; + u4.r(h1.class, h1Var); + } + + public static a B() { + return zzf.s(); + } + + public static /* synthetic */ h1 C() { + return zzf; + } + + public static void v(h1 h1Var, int i) { + h1Var.zzc |= 1; + h1Var.zzd = i; + } + + public static void w(h1 h1Var, Iterable iterable) { + c5 c5Var = h1Var.zze; + if (!((o3) c5Var).j) { + h1Var.zze = u4.o(c5Var); + } + l3.c(iterable, h1Var.zze); + } + + public final int A() { + return ((q5) this.zze).size(); + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new h1(); + case 2: + return new a(null); + case 3: + return new o6(zzf, "\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0001\u0000\u0001င\u0000\u0002\u0014", new Object[]{"zzc", "zzd", "zze"}); + case 4: + return zzf; + case 5: + j6

j6Var = zzg; + if (j6Var == null) { + synchronized (h1.class) { + j6Var = zzg; + if (j6Var == null) { + j6Var = new u4.a<>(zzf); + zzg = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final long u(int i) { + q5 q5Var = (q5) this.zze; + q5Var.h(i); + return q5Var.l[i]; + } + + public final boolean x() { + return (this.zzc & 1) != 0; + } + + public final int y() { + return this.zzd; + } + + public final List z() { + return this.zze; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h2.java b/app/src/main/java/b/i/a/f/h/l/h2.java new file mode 100644 index 0000000000..690546c779 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h2.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; + +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class h2 { + public final Map> a; + + public h2(Map> map) { + this.a = map; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h3.java b/app/src/main/java/b/i/a/f/h/l/h3.java new file mode 100644 index 0000000000..baac6e1079 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h3.java @@ -0,0 +1,34 @@ +package b.i.a.f.h.l; + +import java.lang.ref.ReferenceQueue; +import java.lang.ref.WeakReference; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class h3 extends WeakReference { + public final int a; + + public h3(Throwable th, ReferenceQueue referenceQueue) { + super(th, referenceQueue); + Objects.requireNonNull(th, "The referent cannot be null"); + this.a = System.identityHashCode(th); + } + + @Override // java.lang.Object + public final boolean equals(Object obj) { + if (obj != null && obj.getClass() == h3.class) { + if (this == obj) { + return true; + } + h3 h3Var = (h3) obj; + if (this.a == h3Var.a && get() == h3Var.get()) { + return true; + } + } + return false; + } + + @Override // java.lang.Object + public final int hashCode() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h4.java b/app/src/main/java/b/i/a/f/h/l/h4.java new file mode 100644 index 0000000000..050446f28b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h4.java @@ -0,0 +1,62 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class h4 { + public static volatile h4 a; + + /* renamed from: b reason: collision with root package name */ + public static volatile h4 f1431b; + public static final h4 c = new h4(true); + public final Map> d; + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static final class a { + public final Object a; + + /* renamed from: b reason: collision with root package name */ + public final int f1432b; + + public a(Object obj, int i) { + this.a = obj; + this.f1432b = i; + } + + public final boolean equals(Object obj) { + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.a == aVar.a && this.f1432b == aVar.f1432b; + } + + public final int hashCode() { + return (System.identityHashCode(this.a) * 65535) + this.f1432b; + } + } + + public h4() { + this.d = new HashMap(); + } + + public h4(boolean z2) { + this.d = Collections.emptyMap(); + } + + public static h4 a() { + h4 h4Var = a; + if (h4Var == null) { + synchronized (h4.class) { + h4Var = a; + if (h4Var == null) { + h4Var = c; + a = h4Var; + } + } + } + return h4Var; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h5.java b/app/src/main/java/b/i/a/f/h/l/h5.java new file mode 100644 index 0000000000..c50c18c9a7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h5.java @@ -0,0 +1,75 @@ +package b.i.a.f.h.l; + +import com.google.android.gms.internal.measurement.zzij; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class h5 { + public volatile c6 a; + + /* renamed from: b reason: collision with root package name */ + public volatile t3 f1433b; + + static { + h4.a(); + } + + public final int a() { + if (this.f1433b != null) { + return this.f1433b.d(); + } + if (this.a != null) { + return this.a.g(); + } + return 0; + } + + public final c6 b(c6 c6Var) { + if (this.a == null) { + synchronized (this) { + if (this.a == null) { + try { + this.a = c6Var; + this.f1433b = t3.j; + } catch (zzij unused) { + this.a = c6Var; + this.f1433b = t3.j; + } + } + } + } + return this.a; + } + + public final t3 c() { + if (this.f1433b != null) { + return this.f1433b; + } + synchronized (this) { + if (this.f1433b != null) { + return this.f1433b; + } + if (this.a == null) { + this.f1433b = t3.j; + } else { + this.f1433b = this.a.b(); + } + return this.f1433b; + } + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof h5)) { + return false; + } + h5 h5Var = (h5) obj; + c6 c6Var = this.a; + c6 c6Var2 = h5Var.a; + return (c6Var == null && c6Var2 == null) ? c().equals(h5Var.c()) : (c6Var == null || c6Var2 == null) ? c6Var != null ? c6Var.equals(h5Var.b(c6Var.k())) : b(c6Var2.k()).equals(c6Var2) : c6Var.equals(c6Var2); + } + + public int hashCode() { + return 1; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h6.java b/app/src/main/java/b/i/a/f/h/l/h6.java new file mode 100644 index 0000000000..0367dcf5e5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h6.java @@ -0,0 +1,8 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class h6 implements i6 { + @Override // b.i.a.f.h.l.i6 + public final Object b(Object obj) { + return ((u4) obj).p(4, null, null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h7.java b/app/src/main/java/b/i/a/f/h/l/h7.java new file mode 100644 index 0000000000..8e288b1277 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h7.java @@ -0,0 +1,63 @@ +package b.i.a.f.h.l; + +import java.util.ListIterator; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class h7 implements ListIterator { + public ListIterator j; + public final /* synthetic */ int k; + public final /* synthetic */ e7 l; + + public h7(e7 e7Var, int i) { + this.l = e7Var; + this.k = i; + this.j = e7Var.j.listIterator(i); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.util.ListIterator + public final /* synthetic */ void add(String str) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.ListIterator, java.util.Iterator + public final boolean hasNext() { + return this.j.hasNext(); + } + + @Override // java.util.ListIterator + public final boolean hasPrevious() { + return this.j.hasPrevious(); + } + + @Override // java.util.ListIterator, java.util.Iterator + public final /* synthetic */ Object next() { + return this.j.next(); + } + + @Override // java.util.ListIterator + public final int nextIndex() { + return this.j.nextIndex(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.ListIterator + public final /* synthetic */ String previous() { + return this.j.previous(); + } + + @Override // java.util.ListIterator + public final int previousIndex() { + return this.j.previousIndex(); + } + + @Override // java.util.ListIterator, java.util.Iterator + public final void remove() { + throw new UnsupportedOperationException(); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.util.ListIterator + public final /* synthetic */ void set(String str) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h8.java b/app/src/main/java/b/i/a/f/h/l/h8.java new file mode 100644 index 0000000000..2bc7535cef --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h8.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class h8 implements z2 { + public static h8 j = new h8(); + public final z2 k = f.H1(new b3(new j8())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ g8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/h9.java b/app/src/main/java/b/i/a/f/h/l/h9.java new file mode 100644 index 0000000000..33ae77748b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/h9.java @@ -0,0 +1,37 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class h9 implements e9 { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1434b; + public static final l2 c; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + q2Var.c("measurement.service.audience.fix_skip_audience_with_failed_filters", true); + a = q2Var.c("measurement.audience.refresh_event_count_filters_timestamp", false); + f1434b = q2Var.c("measurement.audience.use_bundle_end_timestamp_for_non_sequence_property_filters", false); + c = q2Var.c("measurement.audience.use_bundle_timestamp_for_event_count_filters", false); + } + + @Override // b.i.a.f.h.l.e9 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.e9 + public final boolean b() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.e9 + public final boolean c() { + return f1434b.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.e9 + public final boolean d() { + return c.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/ha.java b/app/src/main/java/b/i/a/f/h/l/ha.java new file mode 100644 index 0000000000..7ab90763a2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ha.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface ha { + boolean a(); + + boolean b(); + + boolean c(); + + boolean d(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/hb.java b/app/src/main/java/b/i/a/f/h/l/hb.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/hb.java rename to app/src/main/java/b/i/a/f/h/l/hb.java index ae1110c6d9..93199d4121 100644 --- a/app/src/main/java/c/i/a/f/h/l/hb.java +++ b/app/src/main/java/b/i/a/f/h/l/hb.java @@ -1,6 +1,6 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class hb implements z2 { public static hb j = new hb(); @@ -11,7 +11,7 @@ public final class hb implements z2 { } /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ gb a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/hc.java b/app/src/main/java/b/i/a/f/h/l/hc.java similarity index 90% rename from app/src/main/java/c/i/a/f/h/l/hc.java rename to app/src/main/java/b/i/a/f/h/l/hc.java index caa0f8dbdd..1acfe2be14 100644 --- a/app/src/main/java/c/i/a/f/h/l/hc.java +++ b/app/src/main/java/b/i/a/f/h/l/hc.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; import android.os.Bundle; import android.os.IBinder; @@ -10,7 +10,7 @@ public final class hc extends a implements fc { super(iBinder, "com.google.android.gms.measurement.api.internal.IBundleReceiver"); } - @Override // c.i.a.f.h.l.fc + @Override // b.i.a.f.h.l.fc public final void f(Bundle bundle) throws RemoteException { Parcel e = e(); v.c(e, bundle); diff --git a/app/src/main/java/b/i/a/f/h/l/i.java b/app/src/main/java/b/i/a/f/h/l/i.java new file mode 100644 index 0000000000..a53879a322 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i.java @@ -0,0 +1,22 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class i extends g.a { + public final /* synthetic */ Bundle n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(g gVar, Bundle bundle) { + super(true); + this.o = gVar; + this.n = bundle; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.setConditionalUserProperty(this.n, this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/i0.java b/app/src/main/java/b/i/a/f/h/l/i0.java new file mode 100644 index 0000000000..e54afe69fd --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i0.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class i0 extends g.a { + public final /* synthetic */ Activity n; + public final /* synthetic */ g.b o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i0(g.b bVar, Activity activity) { + super(true); + this.o = bVar; + this.n = activity; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + g.this.j.onActivityStopped(new b(this.n), this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/i1.java b/app/src/main/java/b/i/a/f/h/l/i1.java new file mode 100644 index 0000000000..2e0df8d68c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i1.java @@ -0,0 +1,181 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class i1 extends u4 implements d6 { + private static final i1 zzj; + private static volatile j6 zzk; + private int zzc; + private long zzd; + private String zze = ""; + private String zzf = ""; + private long zzg; + private float zzh; + private double zzi; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(i1.M()); + } + + public a(k1 k1Var) { + super(i1.M()); + } + + public final a q(long j) { + if (this.l) { + n(); + this.l = false; + } + i1.w((i1) this.k, j); + return this; + } + + public final a r(String str) { + if (this.l) { + n(); + this.l = false; + } + i1.x((i1) this.k, str); + return this; + } + + public final a s(long j) { + if (this.l) { + n(); + this.l = false; + } + i1.B((i1) this.k, j); + return this; + } + } + + static { + i1 i1Var = new i1(); + zzj = i1Var; + u4.r(i1.class, i1Var); + } + + public static void A(i1 i1Var) { + i1Var.zzc &= -9; + i1Var.zzg = 0; + } + + public static void B(i1 i1Var, long j) { + i1Var.zzc |= 8; + i1Var.zzg = j; + } + + public static void C(i1 i1Var, String str) { + Objects.requireNonNull(i1Var); + str.getClass(); + i1Var.zzc |= 4; + i1Var.zzf = str; + } + + public static void E(i1 i1Var) { + i1Var.zzc &= -33; + i1Var.zzi = ShadowDrawableWrapper.COS_45; + } + + public static a L() { + return zzj.s(); + } + + public static /* synthetic */ i1 M() { + return zzj; + } + + public static void u(i1 i1Var) { + i1Var.zzc &= -5; + i1Var.zzf = zzj.zzf; + } + + public static void v(i1 i1Var, double d) { + i1Var.zzc |= 32; + i1Var.zzi = d; + } + + public static void w(i1 i1Var, long j) { + i1Var.zzc |= 1; + i1Var.zzd = j; + } + + public static void x(i1 i1Var, String str) { + Objects.requireNonNull(i1Var); + str.getClass(); + i1Var.zzc |= 2; + i1Var.zze = str; + } + + public final String D() { + return this.zze; + } + + public final boolean F() { + return (this.zzc & 4) != 0; + } + + public final String G() { + return this.zzf; + } + + public final boolean H() { + return (this.zzc & 8) != 0; + } + + public final long I() { + return this.zzg; + } + + public final boolean J() { + return (this.zzc & 32) != 0; + } + + public final double K() { + return this.zzi; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new i1(); + case 2: + return new a(null); + case 3: + return new o6(zzj, "\u0001\u0006\u0000\u0001\u0001\u0006\u0006\u0000\u0000\u0000\u0001ဂ\u0000\u0002ဈ\u0001\u0003ဈ\u0002\u0004ဂ\u0003\u0005ခ\u0004\u0006က\u0005", new Object[]{"zzc", "zzd", "zze", "zzf", "zzg", "zzh", "zzi"}); + case 4: + return zzj; + case 5: + j6 j6Var = zzk; + if (j6Var == null) { + synchronized (i1.class) { + j6Var = zzk; + if (j6Var == null) { + j6Var = new u4.a<>(zzj); + zzk = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final boolean y() { + return (this.zzc & 1) != 0; + } + + public final long z() { + return this.zzd; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/i2.java b/app/src/main/java/b/i/a/f/h/l/i2.java new file mode 100644 index 0000000000..4c6de6bfc0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i2.java @@ -0,0 +1,24 @@ +package b.i.a.f.h.l; + +import android.net.Uri; +import androidx.annotation.GuardedBy; +import androidx.collection.ArrayMap; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class i2 { + @GuardedBy("PhenotypeConstants.class") + public static final ArrayMap a = new ArrayMap<>(); + + public static synchronized Uri a(String str) { + Uri uri; + synchronized (i2.class) { + ArrayMap arrayMap = a; + uri = arrayMap.get(str); + if (uri == null) { + String valueOf = String.valueOf(Uri.encode(str)); + uri = Uri.parse(valueOf.length() != 0 ? "content://com.google.android.gms.phenotype/".concat(valueOf) : new String("content://com.google.android.gms.phenotype/")); + arrayMap.put(str, uri); + } + } + return uri; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/i3.java b/app/src/main/java/b/i/a/f/h/l/i3.java new file mode 100644 index 0000000000..5278bd972e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i3.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.l; + +import java.lang.ref.ReferenceQueue; +import java.util.List; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class i3 { + public final ConcurrentHashMap> a = new ConcurrentHashMap<>(16, 0.75f, 10); + + /* renamed from: b reason: collision with root package name */ + public final ReferenceQueue f1435b = new ReferenceQueue<>(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/i4.java b/app/src/main/java/b/i/a/f/h/l/i4.java new file mode 100644 index 0000000000..bba97ca83a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i4.java @@ -0,0 +1,6 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.c6; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class i4 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/i5.java b/app/src/main/java/b/i/a/f/h/l/i5.java new file mode 100644 index 0000000000..d4cab094e2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i5.java @@ -0,0 +1,28 @@ +package b.i.a.f.h.l; + +import java.util.Iterator; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class i5 implements Iterator> { + public Iterator> j; + + public i5(Iterator> it) { + this.j = it; + } + + @Override // java.util.Iterator + public final boolean hasNext() { + return this.j.hasNext(); + } + + @Override // java.util.Iterator + public final /* synthetic */ Object next() { + Map.Entry next = this.j.next(); + return next.getValue() instanceof d5 ? new f5(next, null) : next; + } + + @Override // java.util.Iterator + public final void remove() { + this.j.remove(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/i6.java b/app/src/main/java/b/i/a/f/h/l/i6.java new file mode 100644 index 0000000000..ee54721157 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i6.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface i6 { + Object b(Object obj); +} diff --git a/app/src/main/java/b/i/a/f/h/l/i7.java b/app/src/main/java/b/i/a/f/h/l/i7.java new file mode 100644 index 0000000000..41520d8c9d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i7.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import java.lang.reflect.Field; +import java.security.PrivilegedExceptionAction; +import sun.misc.Unsafe; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class i7 implements PrivilegedExceptionAction { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.security.PrivilegedExceptionAction + public final /* synthetic */ Unsafe run() throws Exception { + Field[] declaredFields = Unsafe.class.getDeclaredFields(); + for (Field field : declaredFields) { + field.setAccessible(true); + Object obj = field.get(null); + if (Unsafe.class.isInstance(obj)) { + return (Unsafe) Unsafe.class.cast(obj); + } + } + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/i8.java b/app/src/main/java/b/i/a/f/h/l/i8.java new file mode 100644 index 0000000000..f243c7f138 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i8.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class i8 implements z2 { + public static i8 j = new i8(); + public final z2 k = f.H1(new b3(new k8())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ l8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/i9.java b/app/src/main/java/b/i/a/f/h/l/i9.java new file mode 100644 index 0000000000..8d98723c7e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/i9.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class i9 implements j9 { + public static final l2 a; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.sdk.referrer.delayed_install_referrer_api", false); + q2Var.a("measurement.id.sdk.referrer.delayed_install_referrer_api", 0); + } + + @Override // b.i.a.f.h.l.j9 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.j9 + public final boolean b() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/ia.java b/app/src/main/java/b/i/a/f/h/l/ia.java new file mode 100644 index 0000000000..9abbc363cb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ia.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface ia { + boolean a(); + + boolean b(); + + boolean c(); + + boolean d(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/ib.java b/app/src/main/java/b/i/a/f/h/l/ib.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/ib.java rename to app/src/main/java/b/i/a/f/h/l/ib.java index 901e013d7f..7522142f10 100644 --- a/app/src/main/java/c/i/a/f/h/l/ib.java +++ b/app/src/main/java/b/i/a/f/h/l/ib.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ib implements z2 { public static ib j = new ib(); public final z2 k = f.H1(new b3(new kb())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ lb a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/ic.java b/app/src/main/java/b/i/a/f/h/l/ic.java similarity index 92% rename from app/src/main/java/c/i/a/f/h/l/ic.java rename to app/src/main/java/b/i/a/f/h/l/ic.java index d5e0af1515..94e4cbf906 100644 --- a/app/src/main/java/c/i/a/f/h/l/ic.java +++ b/app/src/main/java/b/i/a/f/h/l/ic.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; import android.os.Bundle; import android.os.Parcel; @@ -9,7 +9,7 @@ public abstract class ic extends s0 implements fc { super("com.google.android.gms.measurement.api.internal.IBundleReceiver"); } - @Override // c.i.a.f.h.l.s0 + @Override // b.i.a.f.h.l.s0 public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { if (i != 1) { return false; diff --git a/app/src/main/java/b/i/a/f/h/l/j.java b/app/src/main/java/b/i/a/f/h/l/j.java new file mode 100644 index 0000000000..daa4f85a74 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j.java @@ -0,0 +1,106 @@ +package b.i.a.f.h.l; + +import android.content.Context; +import android.os.Bundle; +import android.util.Log; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +import com.google.android.gms.dynamite.DynamiteModule; +import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor; +import com.google.android.gms.internal.measurement.zzae; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class j extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ String o; + public final /* synthetic */ Context p; + public final /* synthetic */ Bundle q; + public final /* synthetic */ g r; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j(g gVar, String str, String str2, Context context, Bundle bundle) { + super(true); + this.r = gVar; + this.n = str; + this.o = str2; + this.p = context; + this.q = bundle; + } + + /* JADX WARNING: Removed duplicated region for block: B:15:0x003a A[SYNTHETIC, Splitter:B:15:0x003a] */ + /* JADX WARNING: Removed duplicated region for block: B:17:0x003d A[Catch:{ LoadingException -> 0x004e }] */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x005a */ + /* JADX WARNING: Removed duplicated region for block: B:25:0x0064 */ + @Override // b.i.a.f.h.l.g.a + public final void a() { + String str; + String str2; + String str3; + boolean z2; + boolean z3; + int i; + DynamiteModule.a aVar; + try { + ec ecVar = null; + if (g.e(this.n, this.o)) { + str = this.o; + str2 = this.n; + str3 = this.r.c; + } else { + str3 = null; + str2 = null; + str = null; + } + g.d(this.p); + if (!g.f1427b.booleanValue()) { + if (str2 == null) { + z2 = false; + g gVar = this.r; + Context context = this.p; + Objects.requireNonNull(gVar); + if (!z2) { + try { + aVar = DynamiteModule.j; + } catch (DynamiteModule.LoadingException e) { + gVar.b(e, true, false); + } + } else { + aVar = DynamiteModule.h; + } + ecVar = dc.asInterface(DynamiteModule.c(context, aVar, ModuleDescriptor.MODULE_ID).b("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService")); + gVar.j = ecVar; + if (this.r.j != null) { + Log.w(this.r.c, "Failed to connect to measurement client."); + return; + } + int a = DynamiteModule.a(this.p, ModuleDescriptor.MODULE_ID); + int d = DynamiteModule.d(this.p, ModuleDescriptor.MODULE_ID, false); + if (z2) { + i = Math.max(a, d); + z3 = d < a; + } else { + if (a > 0) { + d = a; + } + z3 = a > 0; + i = d; + } + this.r.j.initialize(new b(this.p), new zzae(33025, (long) i, z3, str3, str2, str, this.q), this.j); + return; + } + } + z2 = true; + g gVar = this.r; + Context context = this.p; + Objects.requireNonNull(gVar); + if (!z2) { + } + ecVar = dc.asInterface(DynamiteModule.c(context, aVar, ModuleDescriptor.MODULE_ID).b("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService")); + gVar.j = ecVar; + if (this.r.j != null) { + } + } catch (Exception e2) { + this.r.b(e2, true, false); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/j0.java b/app/src/main/java/b/i/a/f/h/l/j0.java new file mode 100644 index 0000000000..c23444a47b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j0.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class j0 extends g.a { + public final /* synthetic */ Activity n; + public final /* synthetic */ g.b o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j0(g.b bVar, Activity activity) { + super(true); + this.o = bVar; + this.n = activity; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + g.this.j.onActivityDestroyed(new b(this.n), this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/j1.java b/app/src/main/java/b/i/a/f/h/l/j1.java new file mode 100644 index 0000000000..8c69358fd7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j1.java @@ -0,0 +1,28 @@ +package b.i.a.f.h.l; + +import com.discord.widgets.chat.input.MentionUtilsKt; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public enum j1 implements y4 { + AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_UNKNOWN(0), + AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_RESTRICTED(1), + AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_DENIED(2), + AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_AUTHORIZED(3), + AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_NOT_DETERMINED(4), + AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_NOT_CONFIGURED(5); + + private final int zzh; + + public j1(int i) { + this.zzh = i; + } + + @Override // b.i.a.f.h.l.y4 + public final int a() { + return this.zzh; + } + + @Override // java.lang.Enum, java.lang.Object + public final String toString() { + return "<" + j1.class.getName() + MentionUtilsKt.MENTIONS_CHAR + Integer.toHexString(System.identityHashCode(this)) + " number=" + this.zzh + " name=" + name() + '>'; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/j2.java b/app/src/main/java/b/i/a/f/h/l/j2.java new file mode 100644 index 0000000000..9749c1fdcb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j2.java @@ -0,0 +1,65 @@ +package b.i.a.f.h.l; + +import android.content.Context; +import android.content.pm.PackageManager; +import android.content.pm.ProviderInfo; +import android.net.Uri; +import android.util.Log; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class j2 { + public static volatile x2 a = w2.j; + + /* renamed from: b reason: collision with root package name */ + public static final Object f1436b = new Object(); + + /* JADX WARNING: Removed duplicated region for block: B:26:0x0085 */ + /* JADX WARNING: Removed duplicated region for block: B:36:0x009a */ + public static boolean a(Context context, Uri uri) { + boolean z2; + boolean z3; + String authority = uri.getAuthority(); + boolean z4 = false; + if (!"com.google.android.gms.phenotype".equals(authority)) { + StringBuilder sb = new StringBuilder(String.valueOf(authority).length() + 91); + sb.append(authority); + sb.append(" is an unsupported authority. Only com.google.android.gms.phenotype authority is supported."); + Log.e("PhenotypeClientHelper", sb.toString()); + return false; + } else if (a.b()) { + return a.c().booleanValue(); + } else { + synchronized (f1436b) { + if (a.b()) { + return a.c().booleanValue(); + } + if (!"com.google.android.gms".equals(context.getPackageName())) { + ProviderInfo resolveContentProvider = context.getPackageManager().resolveContentProvider("com.google.android.gms.phenotype", 0); + if (resolveContentProvider == null || !"com.google.android.gms".equals(resolveContentProvider.packageName)) { + z2 = false; + if (z2) { + try { + if ((context.getPackageManager().getApplicationInfo("com.google.android.gms", 0).flags & 129) != 0) { + z3 = true; + if (z3) { + z4 = true; + } + } + } catch (PackageManager.NameNotFoundException unused) { + } + z3 = false; + if (z3) { + } + } + a = x2.a(Boolean.valueOf(z4)); + return a.c().booleanValue(); + } + } + z2 = true; + if (z2) { + } + a = x2.a(Boolean.valueOf(z4)); + return a.c().booleanValue(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/j3.java b/app/src/main/java/b/i/a/f/h/l/j3.java new file mode 100644 index 0000000000..5c25959a86 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j3.java @@ -0,0 +1,29 @@ +package b.i.a.f.h.l; + +import java.lang.ref.Reference; +import java.util.List; +import java.util.Objects; +import java.util.Vector; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class j3 extends f3 { + public final i3 a = new i3(); + + @Override // b.i.a.f.h.l.f3 + public final void a(Throwable th, Throwable th2) { + List putIfAbsent; + if (th2 != th) { + Objects.requireNonNull(th2, "The suppressed exception cannot be null."); + i3 i3Var = this.a; + for (Reference poll = i3Var.f1435b.poll(); poll != null; poll = i3Var.f1435b.poll()) { + i3Var.a.remove(poll); + } + List list = i3Var.a.get(new h3(th, null)); + if (list == null && (putIfAbsent = i3Var.a.putIfAbsent(new h3(th, i3Var.f1435b), (list = new Vector<>(2)))) != null) { + list = putIfAbsent; + } + list.add(th2); + return; + } + throw new IllegalArgumentException("Self suppression is not allowed.", th2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/j4.java b/app/src/main/java/b/i/a/f/h/l/j4.java new file mode 100644 index 0000000000..c395317850 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j4.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.p4; +import java.io.IOException; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class j4> { + public abstract int a(Map.Entry entry); + + public abstract n4 b(Object obj); + + public abstract Object c(h4 h4Var, c6 c6Var, int i); + + public abstract void d(v7 v7Var, Map.Entry entry) throws IOException; + + public abstract boolean e(c6 c6Var); + + public abstract n4 f(Object obj); + + public abstract void g(Object obj); +} diff --git a/app/src/main/java/b/i/a/f/h/l/j5.java b/app/src/main/java/b/i/a/f/h/l/j5.java new file mode 100644 index 0000000000..fe0a5b10df --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j5.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.l; + +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface j5 extends List { + Object A(int i); + + List b(); + + j5 s(); + + void t(t3 t3Var); +} diff --git a/app/src/main/java/b/i/a/f/h/l/j6.java b/app/src/main/java/b/i/a/f/h/l/j6.java new file mode 100644 index 0000000000..843d5bce08 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j6.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface j6 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/j7.java b/app/src/main/java/b/i/a/f/h/l/j7.java new file mode 100644 index 0000000000..6bae6e08d2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j7.java @@ -0,0 +1,643 @@ +package b.i.a.f.h.l; + +import java.lang.reflect.Field; +import java.nio.Buffer; +import java.nio.ByteOrder; +import java.security.AccessController; +import java.util.logging.Level; +import java.util.logging.Logger; +import sun.misc.Unsafe; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class j7 { + public static final Unsafe a; + + /* renamed from: b reason: collision with root package name */ + public static final Class f1437b = q3.a; + public static final boolean c; + public static final boolean d; + public static final c e; + public static final boolean f; + public static final boolean g; + public static final long h = ((long) h(byte[].class)); + public static final boolean i; + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static final class a extends c { + public a(Unsafe unsafe) { + super(unsafe); + } + + @Override // b.i.a.f.h.l.j7.c + public final byte a(Object obj, long j) { + return j7.i ? j7.t(obj, j) : j7.u(obj, j); + } + + @Override // b.i.a.f.h.l.j7.c + public final void b(Object obj, long j, byte b2) { + if (j7.i) { + j7.l(obj, j, b2); + } else { + j7.o(obj, j, b2); + } + } + + @Override // b.i.a.f.h.l.j7.c + public final void c(Object obj, long j, double d) { + f(obj, j, Double.doubleToLongBits(d)); + } + + @Override // b.i.a.f.h.l.j7.c + public final void d(Object obj, long j, float f) { + e(obj, j, Float.floatToIntBits(f)); + } + + /* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: boolean */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.i.a.f.h.l.j7.c + public final void g(Object obj, long j, boolean z2) { + if (j7.i) { + j7.l(obj, j, z2 ? (byte) 1 : 0); + } else { + j7.o(obj, j, z2 ? (byte) 1 : 0); + } + } + + @Override // b.i.a.f.h.l.j7.c + public final boolean h(Object obj, long j) { + return j7.i ? j7.t(obj, j) != 0 : j7.u(obj, j) != 0; + } + + @Override // b.i.a.f.h.l.j7.c + public final float i(Object obj, long j) { + return Float.intBitsToFloat(k(obj, j)); + } + + @Override // b.i.a.f.h.l.j7.c + public final double j(Object obj, long j) { + return Double.longBitsToDouble(l(obj, j)); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static final class b extends c { + public b(Unsafe unsafe) { + super(unsafe); + } + + @Override // b.i.a.f.h.l.j7.c + public final byte a(Object obj, long j) { + return j7.i ? j7.t(obj, j) : j7.u(obj, j); + } + + @Override // b.i.a.f.h.l.j7.c + public final void b(Object obj, long j, byte b2) { + if (j7.i) { + j7.l(obj, j, b2); + } else { + j7.o(obj, j, b2); + } + } + + @Override // b.i.a.f.h.l.j7.c + public final void c(Object obj, long j, double d) { + f(obj, j, Double.doubleToLongBits(d)); + } + + @Override // b.i.a.f.h.l.j7.c + public final void d(Object obj, long j, float f) { + e(obj, j, Float.floatToIntBits(f)); + } + + /* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: boolean */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.i.a.f.h.l.j7.c + public final void g(Object obj, long j, boolean z2) { + if (j7.i) { + j7.l(obj, j, z2 ? (byte) 1 : 0); + } else { + j7.o(obj, j, z2 ? (byte) 1 : 0); + } + } + + @Override // b.i.a.f.h.l.j7.c + public final boolean h(Object obj, long j) { + return j7.i ? j7.t(obj, j) != 0 : j7.u(obj, j) != 0; + } + + @Override // b.i.a.f.h.l.j7.c + public final float i(Object obj, long j) { + return Float.intBitsToFloat(k(obj, j)); + } + + @Override // b.i.a.f.h.l.j7.c + public final double j(Object obj, long j) { + return Double.longBitsToDouble(l(obj, j)); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static abstract class c { + public Unsafe a; + + public c(Unsafe unsafe) { + this.a = unsafe; + } + + public abstract byte a(Object obj, long j); + + public abstract void b(Object obj, long j, byte b2); + + public abstract void c(Object obj, long j, double d); + + public abstract void d(Object obj, long j, float f); + + public final void e(Object obj, long j, int i) { + this.a.putInt(obj, j, i); + } + + public final void f(Object obj, long j, long j2) { + this.a.putLong(obj, j, j2); + } + + public abstract void g(Object obj, long j, boolean z2); + + public abstract boolean h(Object obj, long j); + + public abstract float i(Object obj, long j); + + public abstract double j(Object obj, long j); + + public final int k(Object obj, long j) { + return this.a.getInt(obj, j); + } + + public final long l(Object obj, long j) { + return this.a.getLong(obj, j); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static final class d extends c { + public d(Unsafe unsafe) { + super(unsafe); + } + + @Override // b.i.a.f.h.l.j7.c + public final byte a(Object obj, long j) { + return this.a.getByte(obj, j); + } + + @Override // b.i.a.f.h.l.j7.c + public final void b(Object obj, long j, byte b2) { + this.a.putByte(obj, j, b2); + } + + @Override // b.i.a.f.h.l.j7.c + public final void c(Object obj, long j, double d) { + this.a.putDouble(obj, j, d); + } + + @Override // b.i.a.f.h.l.j7.c + public final void d(Object obj, long j, float f) { + this.a.putFloat(obj, j, f); + } + + @Override // b.i.a.f.h.l.j7.c + public final void g(Object obj, long j, boolean z2) { + this.a.putBoolean(obj, j, z2); + } + + @Override // b.i.a.f.h.l.j7.c + public final boolean h(Object obj, long j) { + return this.a.getBoolean(obj, j); + } + + @Override // b.i.a.f.h.l.j7.c + public final float i(Object obj, long j) { + return this.a.getFloat(obj, j); + } + + @Override // b.i.a.f.h.l.j7.c + public final double j(Object obj, long j) { + return this.a.getDouble(obj, j); + } + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x00ab: APUT + (r5v17 java.lang.Class[]) + (1 ??[boolean, int, float, short, byte, char]) + (wrap: java.lang.Class : 0x00a6: SGET (r22v2 java.lang.Class) = java.lang.Byte.TYPE java.lang.Class) + */ + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x014e: APUT (r3v7 java.lang.Class[]), (1 ??[boolean, int, float, short, byte, char]), (r5v5 java.lang.Class) */ + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x015d: APUT + (r3v10 java.lang.Class[]) + (2 ??[int, float, short, byte, char]) + (wrap: java.lang.Class : 0x015a: SGET (r8v6 java.lang.Class) = java.lang.Integer.TYPE java.lang.Class) + */ + /* JADX WARNING: Removed duplicated region for block: B:31:0x0120 */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x0122 A[SYNTHETIC, Splitter:B:32:0x0122] */ + /* JADX WARNING: Removed duplicated region for block: B:54:0x0282 */ + static { + String str; + boolean z2; + Unsafe unsafe; + boolean z3; + boolean z4; + Field s2; + c cVar; + boolean z5; + Object th; + Object th2; + Unsafe k = k(); + a = k; + Class cls = Long.TYPE; + boolean p = p(cls); + c = p; + Class cls2 = Integer.TYPE; + boolean p2 = p(cls2); + d = p2; + c cVar2 = null; + if (k != null) { + if (!q3.a()) { + cVar2 = new d(k); + } else if (p) { + cVar2 = new a(k); + } else if (p2) { + cVar2 = new b(k); + } + } + e = cVar2; + if (k != null) { + try { + Class cls3 = k.getClass(); + cls3.getMethod("objectFieldOffset", Field.class); + cls3.getMethod("getLong", Object.class, cls); + if (s() != null) { + if (q3.a()) { + str = "getByte"; + } else { + cls3.getMethod("getByte", cls); + Class[] clsArr = new Class[2]; + clsArr[0] = cls; + str = "getByte"; + try { + clsArr[1] = Byte.TYPE; + cls3.getMethod("putByte", clsArr); + cls3.getMethod("getInt", cls); + cls3.getMethod("putInt", cls, cls2); + cls3.getMethod("getLong", cls); + cls3.getMethod("putLong", cls, cls); + cls3.getMethod("copyMemory", cls, cls, cls); + cls3.getMethod("copyMemory", Object.class, cls, Object.class, cls, cls); + } catch (Throwable th3) { + th2 = th3; + Logger logger = Logger.getLogger(j7.class.getName()); + Level level = Level.WARNING; + String valueOf = String.valueOf(th2); + logger.logp(level, "com.google.protobuf.UnsafeUtil", "supportsUnsafeByteBufferOperations", b.d.b.a.a.i(valueOf.length() + 71, "platform method missing - proto runtime falling back to safer methods: ", valueOf)); + z2 = false; + f = z2; + unsafe = a; + if (unsafe != null) { + } + z3 = true; + g = z4; + h(boolean[].class); + j(boolean[].class); + h(int[].class); + j(int[].class); + h(long[].class); + j(long[].class); + h(float[].class); + j(float[].class); + h(double[].class); + j(double[].class); + h(Object[].class); + j(Object[].class); + s2 = s(); + cVar.a.objectFieldOffset(s2); + if (ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN) { + } + i = z3; + } + } + z2 = true; + f = z2; + unsafe = a; + if (unsafe != null) { + z4 = false; + } else { + try { + Class cls4 = unsafe.getClass(); + cls4.getMethod("objectFieldOffset", Field.class); + cls4.getMethod("arrayBaseOffset", Class.class); + cls4.getMethod("arrayIndexScale", Class.class); + Class[] clsArr2 = new Class[2]; + clsArr2[0] = Object.class; + Class cls5 = Long.TYPE; + try { + clsArr2[1] = cls5; + cls4.getMethod("getInt", clsArr2); + Class[] clsArr3 = new Class[3]; + clsArr3[0] = Object.class; + clsArr3[1] = cls5; + clsArr3[2] = Integer.TYPE; + cls4.getMethod("putInt", clsArr3); + cls4.getMethod("getLong", Object.class, cls5); + cls4.getMethod("putLong", Object.class, cls5, cls5); + cls4.getMethod("getObject", Object.class, cls5); + cls4.getMethod("putObject", Object.class, cls5, Object.class); + if (!q3.a()) { + cls4.getMethod(str, Object.class, cls5); + cls4.getMethod("putByte", Object.class, cls5, Byte.TYPE); + cls4.getMethod("getBoolean", Object.class, cls5); + cls4.getMethod("putBoolean", Object.class, cls5, Boolean.TYPE); + cls4.getMethod("getFloat", Object.class, cls5); + cls4.getMethod("putFloat", Object.class, cls5, Float.TYPE); + cls4.getMethod("getDouble", Object.class, cls5); + cls4.getMethod("putDouble", Object.class, cls5, Double.TYPE); + } + z4 = true; + } catch (Throwable th4) { + th = th4; + z5 = true; + Logger logger2 = Logger.getLogger(j7.class.getName()); + Level level2 = Level.WARNING; + String valueOf2 = String.valueOf(th); + logger2.logp(level2, "com.google.protobuf.UnsafeUtil", "supportsUnsafeArrayOperations", b.d.b.a.a.i(valueOf2.length() + 71, "platform method missing - proto runtime falling back to safer methods: ", valueOf2)); + z4 = false; + z3 = z5; + g = z4; + h(boolean[].class); + j(boolean[].class); + h(int[].class); + j(int[].class); + h(long[].class); + j(long[].class); + h(float[].class); + j(float[].class); + h(double[].class); + j(double[].class); + h(Object[].class); + j(Object[].class); + s2 = s(); + cVar.a.objectFieldOffset(s2); + if (ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN) { + } + i = z3; + } + } catch (Throwable th5) { + th = th5; + z5 = true; + Logger logger2 = Logger.getLogger(j7.class.getName()); + Level level2 = Level.WARNING; + String valueOf2 = String.valueOf(th); + logger2.logp(level2, "com.google.protobuf.UnsafeUtil", "supportsUnsafeArrayOperations", b.d.b.a.a.i(valueOf2.length() + 71, "platform method missing - proto runtime falling back to safer methods: ", valueOf2)); + z4 = false; + z3 = z5; + g = z4; + h(boolean[].class); + j(boolean[].class); + h(int[].class); + j(int[].class); + h(long[].class); + j(long[].class); + h(float[].class); + j(float[].class); + h(double[].class); + j(double[].class); + h(Object[].class); + j(Object[].class); + s2 = s(); + cVar.a.objectFieldOffset(s2); + if (ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN) { + } + i = z3; + } + } + z3 = true; + g = z4; + h(boolean[].class); + j(boolean[].class); + h(int[].class); + j(int[].class); + h(long[].class); + j(long[].class); + h(float[].class); + j(float[].class); + h(double[].class); + j(double[].class); + h(Object[].class); + j(Object[].class); + s2 = s(); + if (!(s2 == null || (cVar = e) == null)) { + cVar.a.objectFieldOffset(s2); + } + if (ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN) { + z3 = false; + } + i = z3; + } + } catch (Throwable th6) { + th2 = th6; + str = "getByte"; + Logger logger = Logger.getLogger(j7.class.getName()); + Level level = Level.WARNING; + String valueOf = String.valueOf(th2); + logger.logp(level, "com.google.protobuf.UnsafeUtil", "supportsUnsafeByteBufferOperations", b.d.b.a.a.i(valueOf.length() + 71, "platform method missing - proto runtime falling back to safer methods: ", valueOf)); + z2 = false; + f = z2; + unsafe = a; + if (unsafe != null) { + } + z3 = true; + g = z4; + h(boolean[].class); + j(boolean[].class); + h(int[].class); + j(int[].class); + h(long[].class); + j(long[].class); + h(float[].class); + j(float[].class); + h(double[].class); + j(double[].class); + h(Object[].class); + j(Object[].class); + s2 = s(); + cVar.a.objectFieldOffset(s2); + if (ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN) { + } + i = z3; + } + } + str = "getByte"; + z2 = false; + f = z2; + unsafe = a; + if (unsafe != null) { + } + z3 = true; + g = z4; + h(boolean[].class); + j(boolean[].class); + h(int[].class); + j(int[].class); + h(long[].class); + j(long[].class); + h(float[].class); + j(float[].class); + h(double[].class); + j(double[].class); + h(Object[].class); + j(Object[].class); + s2 = s(); + cVar.a.objectFieldOffset(s2); + if (ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN) { + } + i = z3; + } + + public static byte a(byte[] bArr, long j) { + return e.a(bArr, h + j); + } + + public static int b(Object obj, long j) { + return e.k(obj, j); + } + + public static T c(Class cls) { + try { + return (T) a.allocateInstance(cls); + } catch (InstantiationException e2) { + throw new IllegalStateException(e2); + } + } + + public static void d(Object obj, long j, double d2) { + e.c(obj, j, d2); + } + + public static void e(Object obj, long j, long j2) { + e.f(obj, j, j2); + } + + public static void f(Object obj, long j, Object obj2) { + e.a.putObject(obj, j, obj2); + } + + public static void g(byte[] bArr, long j, byte b2) { + e.b(bArr, h + j, b2); + } + + public static int h(Class cls) { + if (g) { + return e.a.arrayBaseOffset(cls); + } + return -1; + } + + public static long i(Object obj, long j) { + return e.l(obj, j); + } + + public static int j(Class cls) { + if (g) { + return e.a.arrayIndexScale(cls); + } + return -1; + } + + public static Unsafe k() { + try { + return (Unsafe) AccessController.doPrivileged(new i7()); + } catch (Throwable unused) { + return null; + } + } + + public static void l(Object obj, long j, byte b2) { + long j2 = -4 & j; + int b3 = b(obj, j2); + int i2 = ((~((int) j)) & 3) << 3; + c cVar = e; + cVar.e(obj, j2, ((255 & b2) << i2) | (b3 & (~(255 << i2)))); + } + + public static boolean m(Object obj, long j) { + return e.h(obj, j); + } + + public static float n(Object obj, long j) { + return e.i(obj, j); + } + + public static void o(Object obj, long j, byte b2) { + long j2 = -4 & j; + int i2 = (((int) j) & 3) << 3; + c cVar = e; + cVar.e(obj, j2, ((255 & b2) << i2) | (b(obj, j2) & (~(255 << i2)))); + } + + public static boolean p(Class cls) { + if (!q3.a()) { + return false; + } + try { + Class cls2 = f1437b; + Class cls3 = Boolean.TYPE; + cls2.getMethod("peekLong", cls, cls3); + cls2.getMethod("pokeLong", cls, Long.TYPE, cls3); + Class cls4 = Integer.TYPE; + cls2.getMethod("pokeInt", cls, cls4, cls3); + cls2.getMethod("peekInt", cls, cls3); + cls2.getMethod("pokeByte", cls, Byte.TYPE); + cls2.getMethod("peekByte", cls); + cls2.getMethod("pokeByteArray", cls, byte[].class, cls4, cls4); + cls2.getMethod("peekByteArray", cls, byte[].class, cls4, cls4); + return true; + } catch (Throwable unused) { + return false; + } + } + + public static double q(Object obj, long j) { + return e.j(obj, j); + } + + public static Object r(Object obj, long j) { + return e.a.getObject(obj, j); + } + + public static Field s() { + Field field; + Field field2; + if (q3.a()) { + try { + field2 = Buffer.class.getDeclaredField("effectiveDirectAddress"); + } catch (Throwable unused) { + field2 = null; + } + if (field2 != null) { + return field2; + } + } + try { + field = Buffer.class.getDeclaredField("address"); + } catch (Throwable unused2) { + field = null; + } + if (field == null || field.getType() != Long.TYPE) { + return null; + } + return field; + } + + public static byte t(Object obj, long j) { + return (byte) (b(obj, -4 & j) >>> ((int) (((~j) & 3) << 3))); + } + + public static byte u(Object obj, long j) { + return (byte) (b(obj, -4 & j) >>> ((int) ((j & 3) << 3))); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/j8.java b/app/src/main/java/b/i/a/f/h/l/j8.java new file mode 100644 index 0000000000..3e8bc3d00c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j8.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class j8 implements g8 { + public static final l2 a; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.service.directly_maybe_log_error_events", false); + q2Var.a("measurement.id.service.directly_maybe_log_error_events", 0); + } + + @Override // b.i.a.f.h.l.g8 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.g8 + public final boolean b() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/j9.java b/app/src/main/java/b/i/a/f/h/l/j9.java new file mode 100644 index 0000000000..0fdeefe019 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/j9.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface j9 { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/ja.java b/app/src/main/java/b/i/a/f/h/l/ja.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/ja.java rename to app/src/main/java/b/i/a/f/h/l/ja.java index 6948454e81..0bcc38a07b 100644 --- a/app/src/main/java/c/i/a/f/h/l/ja.java +++ b/app/src/main/java/b/i/a/f/h/l/ja.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ja implements z2 { public static ja j = new ja(); public final z2 k = f.H1(new b3(new la())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ ia a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/jb.java b/app/src/main/java/b/i/a/f/h/l/jb.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/jb.java rename to app/src/main/java/b/i/a/f/h/l/jb.java index 09f95d6257..87b1de7032 100644 --- a/app/src/main/java/c/i/a/f/h/l/jb.java +++ b/app/src/main/java/b/i/a/f/h/l/jb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class jb implements gb { public static final l2 a; @@ -9,12 +9,12 @@ public final class jb implements gb { q2Var.a("measurement.id.ssaid_removal", 0); } - @Override // c.i.a.f.h.l.gb + @Override // b.i.a.f.h.l.gb public final boolean a() { return true; } - @Override // c.i.a.f.h.l.gb + @Override // b.i.a.f.h.l.gb public final boolean b() { return a.d().booleanValue(); } diff --git a/app/src/main/java/b/i/a/f/h/l/k.java b/app/src/main/java/b/i/a/f/h/l/k.java new file mode 100644 index 0000000000..f608c89084 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k.java @@ -0,0 +1,30 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class k extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ String o; + public final /* synthetic */ cc p; + public final /* synthetic */ g q; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public k(g gVar, String str, String str2, cc ccVar) { + super(true); + this.q = gVar; + this.n = str; + this.o = str2; + this.p = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.q.j.getConditionalUserProperties(this.n, this.o, this.p); + } + + @Override // b.i.a.f.h.l.g.a + public final void b() { + this.p.f(null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k0.java b/app/src/main/java/b/i/a/f/h/l/k0.java new file mode 100644 index 0000000000..848a1c969f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k0.java @@ -0,0 +1,125 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class k0 extends u4 implements d6 { + private static final k0 zzi; + private static volatile j6 zzj; + private int zzc; + private int zzd; + private b5 zze; + private b5 zzf; + private boolean zzg; + private boolean zzh; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(k0.E()); + } + + public a(q0 q0Var) { + super(k0.E()); + } + } + + static { + k0 k0Var = new k0(); + zzi = k0Var; + u4.r(k0.class, k0Var); + } + + public k0() { + m6 m6Var = m6.k; + this.zze = m6Var; + this.zzf = m6Var; + } + + public static /* synthetic */ k0 E() { + return zzi; + } + + public static void v(k0 k0Var, int i, l0 l0Var) { + Objects.requireNonNull(k0Var); + b5 b5Var = k0Var.zzf; + if (!b5Var.a()) { + k0Var.zzf = u4.n(b5Var); + } + k0Var.zzf.set(i, l0Var); + } + + public static void w(k0 k0Var, int i, o0 o0Var) { + Objects.requireNonNull(k0Var); + b5 b5Var = k0Var.zze; + if (!b5Var.a()) { + k0Var.zze = u4.n(b5Var); + } + k0Var.zze.set(i, o0Var); + } + + public final List A() { + return this.zze; + } + + public final int B() { + return this.zze.size(); + } + + public final List C() { + return this.zzf; + } + + public final int D() { + return this.zzf.size(); + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (q0.a[i - 1]) { + case 1: + return new k0(); + case 2: + return new a(null); + case 3: + return new o6(zzi, "\u0001\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0002\u0000\u0001င\u0000\u0002\u001b\u0003\u001b\u0004ဇ\u0001\u0005ဇ\u0002", new Object[]{"zzc", "zzd", "zze", o0.class, "zzf", l0.class, "zzg", "zzh"}); + case 4: + return zzi; + case 5: + j6 j6Var = zzj; + if (j6Var == null) { + synchronized (k0.class) { + j6Var = zzj; + if (j6Var == null) { + j6Var = new u4.a<>(zzi); + zzj = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final o0 u(int i) { + return this.zze.get(i); + } + + public final boolean x() { + return (this.zzc & 1) != 0; + } + + public final int y() { + return this.zzd; + } + + public final l0 z(int i) { + return this.zzf.get(i); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k1.java b/app/src/main/java/b/i/a/f/h/l/k1.java new file mode 100644 index 0000000000..7a4225eab3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k1.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final /* synthetic */ class k1 { + public static final /* synthetic */ int[] a; + + static { + int[] iArr = new int[u4.e.a().length]; + a = iArr; + try { + iArr[3] = 1; + } catch (NoSuchFieldError unused) { + } + try { + a[4] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + a[2] = 3; + } catch (NoSuchFieldError unused3) { + } + try { + a[5] = 4; + } catch (NoSuchFieldError unused4) { + } + try { + a[6] = 5; + } catch (NoSuchFieldError unused5) { + } + try { + a[0] = 6; + } catch (NoSuchFieldError unused6) { + } + try { + a[1] = 7; + } catch (NoSuchFieldError unused7) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k2.java b/app/src/main/java/b/i/a/f/h/l/k2.java new file mode 100644 index 0000000000..cd10780b9f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k2.java @@ -0,0 +1,91 @@ +package b.i.a.f.h.l; + +import android.content.Context; +import android.net.Uri; +import android.os.Build; +import android.os.StrictMode; +import android.util.Log; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.HashMap; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class k2 implements z2 { + public final Context j; + + public k2(Context context) { + this.j = context; + } + + @Override // b.i.a.f.h.l.z2 + public final Object a() { + x2 x2Var; + Context context = this.j; + String str = Build.TYPE; + String str2 = Build.TAGS; + if (!((str.equals("eng") || str.equals("userdebug")) && (str2.contains("dev-keys") || str2.contains("test-keys")))) { + return w2.j; + } + if (w1.a() && !context.isDeviceProtectedStorage()) { + context = context.createDeviceProtectedStorageContext(); + } + StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads(); + try { + StrictMode.allowThreadDiskWrites(); + try { + File file = new File(context.getDir("phenotype_hermetic", 0), "overrides.txt"); + x2Var = file.exists() ? new y2(file) : w2.j; + } catch (RuntimeException e) { + Log.e("HermeticFileOverrides", "no data dir", e); + x2Var = w2.j; + StrictMode.setThreadPolicy(allowThreadDiskReads); + } + if (!x2Var.b()) { + return w2.j; + } + File file2 = (File) x2Var.c(); + try { + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file2))); + try { + HashMap hashMap = new HashMap(); + while (true) { + String readLine = bufferedReader.readLine(); + if (readLine != null) { + String[] split = readLine.split(" ", 3); + if (split.length != 3) { + Log.e("HermeticFileOverrides", readLine.length() != 0 ? "Invalid: ".concat(readLine) : new String("Invalid: ")); + } else { + String str3 = split[0]; + String decode = Uri.decode(split[1]); + String decode2 = Uri.decode(split[2]); + if (!hashMap.containsKey(str3)) { + hashMap.put(str3, new HashMap()); + } + ((Map) hashMap.get(str3)).put(decode, decode2); + } + } else { + String valueOf = String.valueOf(file2); + StringBuilder sb = new StringBuilder(valueOf.length() + 7); + sb.append("Parsed "); + sb.append(valueOf); + Log.i("HermeticFileOverrides", sb.toString()); + h2 h2Var = new h2(hashMap); + bufferedReader.close(); + return new y2(h2Var); + } + } + } catch (Throwable th) { + g3.a.a(th, th); + } + } catch (IOException e2) { + throw new RuntimeException(e2); + } + } finally { + StrictMode.setThreadPolicy(allowThreadDiskReads); + } + throw th; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k3.java b/app/src/main/java/b/i/a/f/h/l/k3.java new file mode 100644 index 0000000000..2fdb30e9ab --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k3.java @@ -0,0 +1,8 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class k3 extends f3 { + @Override // b.i.a.f.h.l.f3 + public final void a(Throwable th, Throwable th2) { + th.addSuppressed(th2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k4.java b/app/src/main/java/b/i/a/f/h/l/k4.java new file mode 100644 index 0000000000..5e5686495b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k4.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class k4 { + public static final j4 a = new l4(); + + /* renamed from: b reason: collision with root package name */ + public static final j4 f1438b; + + static { + j4 j4Var; + try { + j4Var = (j4) Class.forName("com.google.protobuf.ExtensionSchemaFull").getDeclaredConstructor(new Class[0]).newInstance(new Object[0]); + } catch (Exception unused) { + j4Var = null; + } + f1438b = j4Var; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k5.java b/app/src/main/java/b/i/a/f/h/l/k5.java new file mode 100644 index 0000000000..2a8af0891a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k5.java @@ -0,0 +1,151 @@ +package b.i.a.f.h.l; + +import java.nio.charset.Charset; +import java.util.AbstractList; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class k5 extends o3 implements j5, RandomAccess { + public static final k5 k; + public final List l; + + static { + k5 k5Var = new k5(10); + k = k5Var; + k5Var.j = false; + } + + public k5(int i) { + this.l = new ArrayList(i); + } + + public k5(ArrayList arrayList) { + this.l = arrayList; + } + + public static String d(Object obj) { + if (obj instanceof String) { + return (String) obj; + } + if (obj instanceof t3) { + t3 t3Var = (t3) obj; + Objects.requireNonNull(t3Var); + return t3Var.d() == 0 ? "" : t3Var.i(w4.a); + } + Charset charset = w4.a; + return new String((byte[]) obj, w4.a); + } + + @Override // b.i.a.f.h.l.j5 + public final Object A(int i) { + return this.l.get(i); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ void add(int i, Object obj) { + c(); + this.l.add(i, (String) obj); + ((AbstractList) this).modCount++; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List + public final boolean addAll(int i, Collection collection) { + c(); + if (collection instanceof j5) { + collection = ((j5) collection).b(); + } + boolean addAll = this.l.addAll(i, collection); + ((AbstractList) this).modCount++; + return addAll; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean addAll(Collection collection) { + return addAll(size(), collection); + } + + @Override // b.i.a.f.h.l.j5 + public final List b() { + return Collections.unmodifiableList(this.l); + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public final void clear() { + c(); + this.l.clear(); + ((AbstractList) this).modCount++; + } + + @Override // b.i.a.f.h.l.b5 + public final /* synthetic */ b5 f(int i) { + if (i >= size()) { + ArrayList arrayList = new ArrayList(i); + arrayList.addAll(this.l); + return new k5(arrayList); + } + throw new IllegalArgumentException(); + } + + @Override // java.util.AbstractList, java.util.List + public final Object get(int i) { + Object obj = this.l.get(i); + if (obj instanceof String) { + return (String) obj; + } + if (obj instanceof t3) { + t3 t3Var = (t3) obj; + Objects.requireNonNull(t3Var); + String i2 = t3Var.d() == 0 ? "" : t3Var.i(w4.a); + if (t3Var.m()) { + this.l.set(i, i2); + } + return i2; + } + byte[] bArr = (byte[]) obj; + Charset charset = w4.a; + String str = new String(bArr, w4.a); + boolean z2 = false; + if (k7.a.a(0, bArr, 0, bArr.length) == 0) { + z2 = true; + } + if (z2) { + this.l.set(i, str); + } + return str; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List + public final /* synthetic */ Object remove(int i) { + c(); + Object remove = this.l.remove(i); + ((AbstractList) this).modCount++; + return d(remove); + } + + @Override // b.i.a.f.h.l.j5 + public final j5 s() { + return this.j ? new e7(this) : this; + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object set(int i, Object obj) { + c(); + return d(this.l.set(i, (String) obj)); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final int size() { + return this.l.size(); + } + + @Override // b.i.a.f.h.l.j5 + public final void t(t3 t3Var) { + c(); + this.l.add(t3Var); + ((AbstractList) this).modCount++; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k6.java b/app/src/main/java/b/i/a/f/h/l/k6.java new file mode 100644 index 0000000000..7f14a41b82 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k6.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class k6 { + public static final i6 a; + + /* renamed from: b reason: collision with root package name */ + public static final i6 f1439b = new h6(); + + static { + i6 i6Var; + try { + i6Var = (i6) Class.forName("com.google.protobuf.NewInstanceSchemaFull").getDeclaredConstructor(new Class[0]).newInstance(new Object[0]); + } catch (Exception unused) { + i6Var = null; + } + a = i6Var; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k7.java b/app/src/main/java/b/i/a/f/h/l/k7.java new file mode 100644 index 0000000000..9fe731e292 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k7.java @@ -0,0 +1,87 @@ +package b.i.a.f.h.l; + +import com.discord.api.permission.Permission; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class k7 { + public static final m7 a = ((!(j7.g && j7.f) || q3.a()) ? new l7() : new n7()); + + public static int a(CharSequence charSequence) { + int length = charSequence.length(); + int i = 0; + int i2 = 0; + while (i2 < length && charSequence.charAt(i2) < 128) { + i2++; + } + int i3 = length; + while (true) { + if (i2 >= length) { + break; + } + char charAt = charSequence.charAt(i2); + if (charAt < 2048) { + i3 += (127 - charAt) >>> 31; + i2++; + } else { + int length2 = charSequence.length(); + while (i2 < length2) { + char charAt2 = charSequence.charAt(i2); + if (charAt2 < 2048) { + i += (127 - charAt2) >>> 31; + } else { + i += 2; + if (55296 <= charAt2 && charAt2 <= 57343) { + if (Character.codePointAt(charSequence, i2) >= 65536) { + i2++; + } else { + throw new o7(i2, length2); + } + } + } + i2++; + } + i3 += i; + } + } + if (i3 >= length) { + return i3; + } + long j = ((long) i3) + Permission.REQUEST_TO_SPEAK; + StringBuilder sb = new StringBuilder(54); + sb.append("UTF-8 length does not fit in int: "); + sb.append(j); + throw new IllegalArgumentException(sb.toString()); + } + + public static boolean b(byte[] bArr, int i, int i2) { + return a.a(0, bArr, i, i2) == 0; + } + + public static int c(int i, int i2, int i3) { + if (i > -12 || i2 > -65 || i3 > -65) { + return -1; + } + return (i ^ (i2 << 8)) ^ (i3 << 16); + } + + public static int d(byte[] bArr, int i, int i2) { + byte b2 = bArr[i - 1]; + int i3 = i2 - i; + int i4 = -1; + if (i3 == 0) { + if (b2 > -12) { + b2 = -1; + } + return b2; + } else if (i3 == 1) { + byte b3 = bArr[i]; + if (b2 <= -12 && b3 <= -65) { + i4 = b2 ^ (b3 << 8); + } + return i4; + } else if (i3 == 2) { + return c(b2, bArr[i], bArr[i + 1]); + } else { + throw new AssertionError(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k8.java b/app/src/main/java/b/i/a/f/h/l/k8.java new file mode 100644 index 0000000000..1c292765be --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k8.java @@ -0,0 +1,24 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class k8 implements l8 { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1440b; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.sdk.attribution.cache", true); + f1440b = q2Var.a("measurement.sdk.attribution.cache.ttl", 604800000); + } + + @Override // b.i.a.f.h.l.l8 + public final boolean a() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.l8 + public final long b() { + return f1440b.d().longValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/k9.java b/app/src/main/java/b/i/a/f/h/l/k9.java new file mode 100644 index 0000000000..66b9802b8e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/k9.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface k9 { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/ka.java b/app/src/main/java/b/i/a/f/h/l/ka.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/ka.java rename to app/src/main/java/b/i/a/f/h/l/ka.java index 29f4bf1a6c..1e44c548b1 100644 --- a/app/src/main/java/c/i/a/f/h/l/ka.java +++ b/app/src/main/java/b/i/a/f/h/l/ka.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ka implements z2 { public static ka j = new ka(); public final z2 k = f.H1(new b3(new ma())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ na a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/kb.java b/app/src/main/java/b/i/a/f/h/l/kb.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/kb.java rename to app/src/main/java/b/i/a/f/h/l/kb.java index 41febafa1b..7e1bf0107e 100644 --- a/app/src/main/java/c/i/a/f/h/l/kb.java +++ b/app/src/main/java/b/i/a/f/h/l/kb.java @@ -1,14 +1,14 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class kb implements lb { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.client.string_reader", true); - @Override // c.i.a.f.h.l.lb + @Override // b.i.a.f.h.l.lb public final boolean a() { return true; } - @Override // c.i.a.f.h.l.lb + @Override // b.i.a.f.h.l.lb public final boolean b() { return a.d().booleanValue(); } diff --git a/app/src/main/java/b/i/a/f/h/l/l.java b/app/src/main/java/b/i/a/f/h/l/l.java new file mode 100644 index 0000000000..01ee28af4d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.l; + +import android.os.Bundle; +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class l extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ String o; + public final /* synthetic */ Bundle p; + public final /* synthetic */ g q; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public l(g gVar, String str, String str2, Bundle bundle) { + super(true); + this.q = gVar; + this.n = str; + this.o = str2; + this.p = bundle; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.q.j.clearConditionalUserProperty(this.n, this.o, this.p); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/l0.java b/app/src/main/java/b/i/a/f/h/l/l0.java new file mode 100644 index 0000000000..4be3caa508 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l0.java @@ -0,0 +1,142 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class l0 extends u4 implements d6 { + private static final l0 zzl; + private static volatile j6 zzm; + private int zzc; + private int zzd; + private String zze = ""; + private b5 zzf = m6.k; + private boolean zzg; + private n0 zzh; + private boolean zzi; + private boolean zzj; + private boolean zzk; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(l0.J()); + } + + public a(q0 q0Var) { + super(l0.J()); + } + } + + static { + l0 l0Var = new l0(); + zzl = l0Var; + u4.r(l0.class, l0Var); + } + + public static a I() { + return zzl.s(); + } + + public static /* synthetic */ l0 J() { + return zzl; + } + + public static void v(l0 l0Var, int i, m0 m0Var) { + Objects.requireNonNull(l0Var); + m0Var.getClass(); + b5 b5Var = l0Var.zzf; + if (!b5Var.a()) { + l0Var.zzf = u4.n(b5Var); + } + l0Var.zzf.set(i, m0Var); + } + + public static void w(l0 l0Var, String str) { + Objects.requireNonNull(l0Var); + str.getClass(); + l0Var.zzc |= 2; + l0Var.zze = str; + } + + public final List A() { + return this.zzf; + } + + public final int B() { + return this.zzf.size(); + } + + public final boolean C() { + return (this.zzc & 8) != 0; + } + + public final n0 D() { + n0 n0Var = this.zzh; + return n0Var == null ? n0.E() : n0Var; + } + + public final boolean E() { + return this.zzi; + } + + public final boolean F() { + return this.zzj; + } + + public final boolean G() { + return (this.zzc & 64) != 0; + } + + public final boolean H() { + return this.zzk; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (q0.a[i - 1]) { + case 1: + return new l0(); + case 2: + return new a(null); + case 3: + return new o6(zzl, "\u0001\b\u0000\u0001\u0001\b\b\u0000\u0001\u0000\u0001င\u0000\u0002ဈ\u0001\u0003\u001b\u0004ဇ\u0002\u0005ဉ\u0003\u0006ဇ\u0004\u0007ဇ\u0005\bဇ\u0006", new Object[]{"zzc", "zzd", "zze", "zzf", m0.class, "zzg", "zzh", "zzi", "zzj", "zzk"}); + case 4: + return zzl; + case 5: + j6 j6Var = zzm; + if (j6Var == null) { + synchronized (l0.class) { + j6Var = zzm; + if (j6Var == null) { + j6Var = new u4.a<>(zzl); + zzm = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final m0 u(int i) { + return this.zzf.get(i); + } + + public final boolean x() { + return (this.zzc & 1) != 0; + } + + public final int y() { + return this.zzd; + } + + public final String z() { + return this.zze; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/l1.java b/app/src/main/java/b/i/a/f/h/l/l1.java new file mode 100644 index 0000000000..c24d5a4933 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l1.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class l1 implements a5 { + public static final a5 a = new l1(); + + @Override // b.i.a.f.h.l.a5 + public final boolean f(int i) { + return (i != 0 ? i != 1 ? i != 2 ? i != 3 ? i != 4 ? i != 5 ? null : j1.AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_NOT_CONFIGURED : j1.AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_NOT_DETERMINED : j1.AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_AUTHORIZED : j1.AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_DENIED : j1.AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_RESTRICTED : j1.AT_TRACKING_MANAGER_AUTHORIZATION_STATUS_UNKNOWN) != null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/l2.java b/app/src/main/java/b/i/a/f/h/l/l2.java new file mode 100644 index 0000000000..7a87a6b1bd --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l2.java @@ -0,0 +1,134 @@ +package b.i.a.f.h.l; + +import android.net.Uri; +import android.util.Log; +import b.i.a.f.e.o.f; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public abstract class l2 { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static volatile t2 f1441b; + public static u2 c = new u2(n2.a); + public static final AtomicInteger d = new AtomicInteger(); + public final q2 e; + public final String f; + public final T g; + public volatile int h = -1; + public volatile T i; + public final boolean j; + + static { + new AtomicReference(); + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: java.lang.Object */ + /* JADX WARN: Multi-variable type inference failed */ + public l2(q2 q2Var, String str, Object obj, boolean z2, m2 m2Var) { + if (q2Var.a != null) { + this.e = q2Var; + this.f = str; + this.g = obj; + this.j = z2; + return; + } + throw new IllegalArgumentException("Must pass a valid SharedPreferences file name or ContentProvider URI"); + } + + public abstract T a(Object obj); + + public final String b(String str) { + if (str != null && str.isEmpty()) { + return this.f; + } + String valueOf = String.valueOf(str); + String valueOf2 = String.valueOf(this.f); + return valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf); + } + + public final String c() { + Objects.requireNonNull(this.e); + return b(""); + } + + /* JADX WARNING: Removed duplicated region for block: B:41:0x00c1 */ + /* JADX WARNING: Removed duplicated region for block: B:42:0x00c2 */ + /* JADX WARNING: Removed duplicated region for block: B:51:0x00f6 */ + public final T d() { + T t; + x2

a2; + Object g; + boolean z2 = true; + if (!this.j) { + u2 u2Var = c; + String str = this.f; + Objects.requireNonNull(u2Var); + Objects.requireNonNull(str, "flagName must not be null"); + f.g2(true, "Attempt to access PhenotypeFlag not via codegen. All new PhenotypeFlags must be accessed through codegen APIs. If you believe you are seeing this error by mistake, you can add your flag to the exemption list located at //java/com/google/android/libraries/phenotype/client/lockdown/flags.textproto. Send the addition CL to ph-reviews@. See go/phenotype-android-codegen for information about generated code. See go/ph-lockdown for more information about this error."); + } + int i = d.get(); + if (this.h < i) { + synchronized (this) { + if (this.h < i) { + t2 t2Var = f1441b; + f.g2(t2Var != null, "Must call PhenotypeFlag.init() first"); + String str2 = (String) c2.a(t2Var.a()).g("gms:phenotype:phenotype_flag:debug_bypass_phenotype"); + if (str2 == null || !u1.c.matcher(str2).matches()) { + z2 = false; + } + String str3 = null; + if (!z2) { + b2 a3 = this.e.a != null ? j2.a(t2Var.a(), this.e.a) ? y1.a(t2Var.a().getContentResolver(), this.e.a) : null : s2.a(t2Var.a()); + if (!(a3 == null || (g = a3.g(c())) == null)) { + t = a(g); + if (t != null) { + c2 a4 = c2.a(t2Var.a()); + Objects.requireNonNull(this.e); + Object g2 = a4.g(b("")); + t = g2 != null ? a(g2) : null; + if (t == null) { + t = this.g; + } + } + a2 = t2Var.b().a(); + if (a2.b()) { + h2 c2 = a2.c(); + q2 q2Var = this.e; + Uri uri = q2Var.a; + Objects.requireNonNull(q2Var); + String str4 = this.f; + Objects.requireNonNull(c2); + if (uri != null) { + Map map = c2.a.get(uri.toString()); + if (map != null) { + String valueOf = String.valueOf(str4); + str3 = map.get(valueOf.length() != 0 ? "".concat(valueOf) : new String("")); + } + } + t = str3 == null ? this.g : a(str3); + } + this.i = t; + this.h = i; + } + } else if (Log.isLoggable("PhenotypeFlag", 3)) { + String valueOf2 = String.valueOf(c()); + Log.d("PhenotypeFlag", valueOf2.length() != 0 ? "Bypass reading Phenotype values for flag: ".concat(valueOf2) : new String("Bypass reading Phenotype values for flag: ")); + } + t = null; + if (t != null) { + } + a2 = t2Var.b().a(); + if (a2.b()) { + } + this.i = t; + this.h = i; + } + } + } + return this.i; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/l3.java b/app/src/main/java/b/i/a/f/h/l/l3.java new file mode 100644 index 0000000000..5ef1863d6b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l3.java @@ -0,0 +1,126 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import b.i.a.f.h.l.l3; +import b.i.a.f.h.l.n3; +import com.google.android.gms.internal.measurement.zzhi; +import java.io.IOException; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.logging.Logger; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class l3, BuilderType extends n3> implements c6 { + public int zza = 0; + + public static void c(Iterable iterable, List list) { + Charset charset = w4.a; + Objects.requireNonNull(iterable); + if (iterable instanceof j5) { + List b2 = ((j5) iterable).b(); + j5 j5Var = (j5) list; + int size = list.size(); + for (Object obj : b2) { + if (obj == null) { + StringBuilder sb = new StringBuilder(37); + sb.append("Element at index "); + sb.append(j5Var.size() - size); + sb.append(" is null."); + String sb2 = sb.toString(); + int size2 = j5Var.size(); + while (true) { + size2--; + if (size2 >= size) { + j5Var.remove(size2); + } else { + throw new NullPointerException(sb2); + } + } + } else if (obj instanceof t3) { + j5Var.t((t3) obj); + } else { + j5Var.add((String) obj); + } + } + } else if (iterable instanceof l6) { + list.addAll((Collection) iterable); + } else { + if ((list instanceof ArrayList) && (iterable instanceof Collection)) { + ((ArrayList) list).ensureCapacity(((Collection) iterable).size() + list.size()); + } + int size3 = list.size(); + for (T t : iterable) { + if (t == null) { + StringBuilder sb3 = new StringBuilder(37); + sb3.append("Element at index "); + sb3.append(list.size() - size3); + sb3.append(" is null."); + String sb4 = sb3.toString(); + int size4 = list.size(); + while (true) { + size4--; + if (size4 >= size3) { + list.remove(size4); + } else { + throw new NullPointerException(sb4); + } + } + } else { + list.add(t); + } + } + } + } + + @Override // b.i.a.f.h.l.c6 + public final t3 b() { + try { + u4 u4Var = (u4) this; + int g = u4Var.g(); + t3 t3Var = t3.j; + byte[] bArr = new byte[g]; + Logger logger = zzhi.a; + zzhi.a aVar = new zzhi.a(bArr, g); + u4Var.i(aVar); + if (aVar.a() == 0) { + return new z3(bArr); + } + throw new IllegalStateException("Did not write as much data as expected."); + } catch (IOException e) { + String name = getClass().getName(); + StringBuilder Q = a.Q(name.length() + 62 + 10, "Serializing ", name, " to a ", "ByteString"); + Q.append(" threw an IOException (should never happen)."); + throw new RuntimeException(Q.toString(), e); + } + } + + public final byte[] d() { + try { + u4 u4Var = (u4) this; + int g = u4Var.g(); + byte[] bArr = new byte[g]; + Logger logger = zzhi.a; + zzhi.a aVar = new zzhi.a(bArr, g); + u4Var.i(aVar); + if (aVar.a() == 0) { + return bArr; + } + throw new IllegalStateException("Did not write as much data as expected."); + } catch (IOException e) { + String name = getClass().getName(); + StringBuilder Q = a.Q(name.length() + 62 + 10, "Serializing ", name, " to a ", "byte array"); + Q.append(" threw an IOException (should never happen)."); + throw new RuntimeException(Q.toString(), e); + } + } + + public int e() { + throw new UnsupportedOperationException(); + } + + public void l(int i) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/l4.java b/app/src/main/java/b/i/a/f/h/l/l4.java new file mode 100644 index 0000000000..4e31212f1c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l4.java @@ -0,0 +1,45 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.h4; +import b.i.a.f.h.l.u4; +import java.io.IOException; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class l4 extends j4 { + @Override // b.i.a.f.h.l.j4 + public final int a(Map.Entry entry) { + u4.c cVar = (u4.c) entry.getKey(); + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.j4 + public final n4 b(Object obj) { + return ((u4.d) obj).zzc; + } + + @Override // b.i.a.f.h.l.j4 + public final Object c(h4 h4Var, c6 c6Var, int i) { + return h4Var.d.get(new h4.a(c6Var, i)); + } + + @Override // b.i.a.f.h.l.j4 + public final void d(v7 v7Var, Map.Entry entry) throws IOException { + u4.c cVar = (u4.c) entry.getKey(); + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.j4 + public final boolean e(c6 c6Var) { + return c6Var instanceof u4.d; + } + + @Override // b.i.a.f.h.l.j4 + public final n4 f(Object obj) { + return ((u4.d) obj).u(); + } + + @Override // b.i.a.f.h.l.j4 + public final void g(Object obj) { + ((u4.d) obj).zzc.h(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/l6.java b/app/src/main/java/b/i/a/f/h/l/l6.java new file mode 100644 index 0000000000..011d4da869 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l6.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface l6 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/l7.java b/app/src/main/java/b/i/a/f/h/l/l7.java new file mode 100644 index 0000000000..4f2d390ac2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l7.java @@ -0,0 +1,206 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +import com.google.android.gms.internal.measurement.zzij; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class l7 extends m7 { + @Override // b.i.a.f.h.l.m7 + public final int a(int i, byte[] bArr, int i2, int i3) { + while (i2 < i3 && bArr[i2] >= 0) { + i2++; + } + if (i2 >= i3) { + return 0; + } + while (i2 < i3) { + int i4 = i2 + 1; + byte b2 = bArr[i2]; + if (b2 < 0) { + if (b2 < -32) { + if (i4 >= i3) { + return b2; + } + if (b2 >= -62) { + i2 = i4 + 1; + if (bArr[i4] > -65) { + } + } + return -1; + } else if (b2 < -16) { + if (i4 >= i3 - 1) { + return k7.d(bArr, i4, i3); + } + int i5 = i4 + 1; + byte b3 = bArr[i4]; + if (b3 <= -65 && ((b2 != -32 || b3 >= -96) && (b2 != -19 || b3 < -96))) { + i2 = i5 + 1; + if (bArr[i5] > -65) { + } + } + return -1; + } else if (i4 >= i3 - 2) { + return k7.d(bArr, i4, i3); + } else { + int i6 = i4 + 1; + byte b4 = bArr[i4]; + if (b4 <= -65) { + if ((((b4 + 112) + (b2 << 28)) >> 30) == 0) { + int i7 = i6 + 1; + if (bArr[i6] <= -65) { + i4 = i7 + 1; + if (bArr[i7] > -65) { + } + } + } + } + return -1; + } + } + i2 = i4; + } + return 0; + } + + @Override // b.i.a.f.h.l.m7 + public final int b(CharSequence charSequence, byte[] bArr, int i, int i2) { + int i3; + int i4; + int i5; + char charAt; + int length = charSequence.length(); + int i6 = i2 + i; + int i7 = 0; + while (i7 < length && (i5 = i7 + i) < i6 && (charAt = charSequence.charAt(i7)) < 128) { + bArr[i5] = (byte) charAt; + i7++; + } + if (i7 == length) { + return i + length; + } + int i8 = i + i7; + while (i7 < length) { + char charAt2 = charSequence.charAt(i7); + if (charAt2 < 128 && i8 < i6) { + i4 = i8 + 1; + bArr[i8] = (byte) charAt2; + } else if (charAt2 < 2048 && i8 <= i6 - 2) { + int i9 = i8 + 1; + bArr[i8] = (byte) ((charAt2 >>> 6) | 960); + i8 = i9 + 1; + bArr[i9] = (byte) ((charAt2 & '?') | 128); + i7++; + } else if ((charAt2 < 55296 || 57343 < charAt2) && i8 <= i6 - 3) { + int i10 = i8 + 1; + bArr[i8] = (byte) ((charAt2 >>> '\f') | 480); + int i11 = i10 + 1; + bArr[i10] = (byte) (((charAt2 >>> 6) & 63) | 128); + i4 = i11 + 1; + bArr[i11] = (byte) ((charAt2 & '?') | 128); + } else if (i8 <= i6 - 4) { + int i12 = i7 + 1; + if (i12 != charSequence.length()) { + char charAt3 = charSequence.charAt(i12); + if (Character.isSurrogatePair(charAt2, charAt3)) { + int codePoint = Character.toCodePoint(charAt2, charAt3); + int i13 = i8 + 1; + bArr[i8] = (byte) ((codePoint >>> 18) | 240); + int i14 = i13 + 1; + bArr[i13] = (byte) (((codePoint >>> 12) & 63) | 128); + int i15 = i14 + 1; + bArr[i14] = (byte) (((codePoint >>> 6) & 63) | 128); + i8 = i15 + 1; + bArr[i15] = (byte) ((codePoint & 63) | 128); + i7 = i12; + i7++; + } else { + i7 = i12; + } + } + throw new o7(i7 - 1, length); + } else if (55296 > charAt2 || charAt2 > 57343 || ((i3 = i7 + 1) != charSequence.length() && Character.isSurrogatePair(charAt2, charSequence.charAt(i3)))) { + StringBuilder sb = new StringBuilder(37); + sb.append("Failed writing "); + sb.append(charAt2); + sb.append(" at index "); + sb.append(i8); + throw new ArrayIndexOutOfBoundsException(sb.toString()); + } else { + throw new o7(i7, length); + } + i8 = i4; + i7++; + } + return i8; + } + + @Override // b.i.a.f.h.l.m7 + public final String c(byte[] bArr, int i, int i2) throws zzij { + if ((i | i2 | ((bArr.length - i) - i2)) >= 0) { + int i3 = i + i2; + char[] cArr = new char[i2]; + int i4 = 0; + while (i < i3) { + byte b2 = bArr[i]; + if (!f.a2(b2)) { + break; + } + i++; + cArr[i4] = (char) b2; + i4++; + } + int i5 = i4; + while (i < i3) { + int i6 = i + 1; + byte b3 = bArr[i]; + if (f.a2(b3)) { + int i7 = i5 + 1; + cArr[i5] = (char) b3; + i = i6; + while (true) { + i5 = i7; + if (i >= i3) { + break; + } + byte b4 = bArr[i]; + if (!f.a2(b4)) { + break; + } + i++; + i7 = i5 + 1; + cArr[i5] = (char) b4; + } + } else { + if (!(b3 < -32)) { + if (b3 < -16) { + if (i6 < i3 - 1) { + int i8 = i6 + 1; + f.S1(b3, bArr[i6], bArr[i8], cArr, i5); + i = i8 + 1; + i5++; + } else { + throw zzij.e(); + } + } else if (i6 < i3 - 2) { + int i9 = i6 + 1; + byte b5 = bArr[i6]; + int i10 = i9 + 1; + f.R1(b3, b5, bArr[i9], bArr[i10], cArr, i5); + i5 = i5 + 1 + 1; + i = i10 + 1; + } else { + throw zzij.e(); + } + } else if (i6 < i3) { + f.T1(b3, bArr[i6], cArr, i5); + i = i6 + 1; + i5++; + } else { + throw zzij.e(); + } + } + } + return new String(cArr, 0, i5); + } + throw new ArrayIndexOutOfBoundsException(String.format("buffer length=%d, index=%d, size=%d", Integer.valueOf(bArr.length), Integer.valueOf(i), Integer.valueOf(i2))); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/l8.java b/app/src/main/java/b/i/a/f/h/l/l8.java new file mode 100644 index 0000000000..36a026f517 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l8.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface l8 { + boolean a(); + + long b(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/l9.java b/app/src/main/java/b/i/a/f/h/l/l9.java new file mode 100644 index 0000000000..ff73a1de39 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/l9.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class l9 implements z2 { + public static l9 j = new l9(); + public final z2 k = f.H1(new b3(new n9())); + + public static boolean b() { + return ((k9) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ k9 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/la.java b/app/src/main/java/b/i/a/f/h/l/la.java new file mode 100644 index 0000000000..feccd7e9ef --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/la.java @@ -0,0 +1,39 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class la implements ia { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1442b; + public static final l2 c; + public static final l2 d; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.sdk.collection.enable_extend_user_property_size", true); + f1442b = q2Var.c("measurement.sdk.collection.last_deep_link_referrer2", true); + c = q2Var.c("measurement.sdk.collection.last_deep_link_referrer_campaign2", false); + d = q2Var.c("measurement.sdk.collection.last_gclid_from_referrer2", false); + q2Var.a("measurement.id.sdk.collection.last_deep_link_referrer2", 0); + } + + @Override // b.i.a.f.h.l.ia + public final boolean a() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.ia + public final boolean b() { + return f1442b.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.ia + public final boolean c() { + return c.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.ia + public final boolean d() { + return d.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/lb.java b/app/src/main/java/b/i/a/f/h/l/lb.java similarity index 87% rename from app/src/main/java/c/i/a/f/h/l/lb.java rename to app/src/main/java/b/i/a/f/h/l/lb.java index 5265610feb..1450d2d408 100644 --- a/app/src/main/java/c/i/a/f/h/l/lb.java +++ b/app/src/main/java/b/i/a/f/h/l/lb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface lb { boolean a(); diff --git a/app/src/main/java/b/i/a/f/h/l/m.java b/app/src/main/java/b/i/a/f/h/l/m.java new file mode 100644 index 0000000000..508a1a80f3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m.java @@ -0,0 +1,27 @@ +package b.i.a.f.h.l; + +import android.app.Activity; +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class m extends g.a { + public final /* synthetic */ Activity n; + public final /* synthetic */ String o; + public final /* synthetic */ String p; + public final /* synthetic */ g q; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public m(g gVar, Activity activity, String str, String str2) { + super(true); + this.q = gVar; + this.n = activity; + this.o = str; + this.p = str2; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.q.j.setCurrentScreen(new b(this.n), this.o, this.p, this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/m0.java b/app/src/main/java/b/i/a/f/h/l/m0.java new file mode 100644 index 0000000000..804ce6f9a8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m0.java @@ -0,0 +1,112 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class m0 extends u4 implements d6 { + private static final m0 zzh; + private static volatile j6 zzi; + private int zzc; + private p0 zzd; + private n0 zze; + private boolean zzf; + private String zzg = ""; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(m0.E()); + } + + public a(q0 q0Var) { + super(m0.E()); + } + } + + static { + m0 m0Var = new m0(); + zzh = m0Var; + u4.r(m0.class, m0Var); + } + + public static m0 D() { + return zzh; + } + + public static /* synthetic */ m0 E() { + return zzh; + } + + public static void u(m0 m0Var, String str) { + Objects.requireNonNull(m0Var); + str.getClass(); + m0Var.zzc |= 8; + m0Var.zzg = str; + } + + public final boolean A() { + return this.zzf; + } + + public final boolean B() { + return (this.zzc & 8) != 0; + } + + public final String C() { + return this.zzg; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (q0.a[i - 1]) { + case 1: + return new m0(); + case 2: + return new a(null); + case 3: + return new o6(zzh, "\u0001\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001ဉ\u0000\u0002ဉ\u0001\u0003ဇ\u0002\u0004ဈ\u0003", new Object[]{"zzc", "zzd", "zze", "zzf", "zzg"}); + case 4: + return zzh; + case 5: + j6 j6Var = zzi; + if (j6Var == null) { + synchronized (m0.class) { + j6Var = zzi; + if (j6Var == null) { + j6Var = new u4.a<>(zzh); + zzi = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final boolean v() { + return (this.zzc & 1) != 0; + } + + public final p0 w() { + p0 p0Var = this.zzd; + return p0Var == null ? p0.C() : p0Var; + } + + public final boolean x() { + return (this.zzc & 2) != 0; + } + + public final n0 y() { + n0 n0Var = this.zze; + return n0Var == null ? n0.E() : n0Var; + } + + public final boolean z() { + return (this.zzc & 4) != 0; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/m1.java b/app/src/main/java/b/i/a/f/h/l/m1.java new file mode 100644 index 0000000000..336471c9ab --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m1.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.f1; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class m1 implements a5 { + public static final a5 a = new m1(); + + @Override // b.i.a.f.h.l.a5 + public final boolean f(int i) { + return (i != 1 ? i != 2 ? null : f1.b.PROVISIONING : f1.b.RADS) != null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/m2.java b/app/src/main/java/b/i/a/f/h/l/m2.java new file mode 100644 index 0000000000..cdcbc0be73 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m2.java @@ -0,0 +1,28 @@ +package b.i.a.f.h.l; + +import android.util.Log; +import b.d.b.a.a; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class m2 extends l2 { + public m2(q2 q2Var, String str, Long l) { + super(q2Var, str, l, true, null); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.l2 + public final Long a(Object obj) { + if (obj instanceof Long) { + return (Long) obj; + } + if (obj instanceof String) { + try { + return Long.valueOf(Long.parseLong((String) obj)); + } catch (NumberFormatException unused) { + } + } + String c = c(); + String valueOf = String.valueOf(obj); + Log.e("PhenotypeFlag", a.k(valueOf.length() + a.b(c, 25), "Invalid long value for ", c, ": ", valueOf)); + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/m3.java b/app/src/main/java/b/i/a/f/h/l/m3.java new file mode 100644 index 0000000000..825b4b073d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m3.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class m3 implements f6 { + @Override // b.i.a.f.h.l.f6 + public final f6 a() { + throw new UnsupportedOperationException("clone() should be implemented by subclasses."); + } + + @Override // java.lang.Object + public Object clone() throws CloneNotSupportedException { + throw new UnsupportedOperationException("clone() should be implemented by subclasses."); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/m4.java b/app/src/main/java/b/i/a/f/h/l/m4.java new file mode 100644 index 0000000000..84cad582cf --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m4.java @@ -0,0 +1,136 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final /* synthetic */ class m4 { + public static final /* synthetic */ int[] a; + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ int[] f1443b; + + static { + p7.values(); + int[] iArr = new int[18]; + f1443b = iArr; + try { + iArr[p7.DOUBLE.ordinal()] = 1; + } catch (NoSuchFieldError unused) { + } + try { + f1443b[p7.FLOAT.ordinal()] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + f1443b[p7.INT64.ordinal()] = 3; + } catch (NoSuchFieldError unused3) { + } + try { + f1443b[p7.UINT64.ordinal()] = 4; + } catch (NoSuchFieldError unused4) { + } + try { + f1443b[p7.INT32.ordinal()] = 5; + } catch (NoSuchFieldError unused5) { + } + try { + f1443b[p7.FIXED64.ordinal()] = 6; + } catch (NoSuchFieldError unused6) { + } + try { + f1443b[p7.FIXED32.ordinal()] = 7; + } catch (NoSuchFieldError unused7) { + } + try { + f1443b[p7.BOOL.ordinal()] = 8; + } catch (NoSuchFieldError unused8) { + } + try { + f1443b[p7.GROUP.ordinal()] = 9; + } catch (NoSuchFieldError unused9) { + } + try { + f1443b[p7.MESSAGE.ordinal()] = 10; + } catch (NoSuchFieldError unused10) { + } + try { + f1443b[p7.STRING.ordinal()] = 11; + } catch (NoSuchFieldError unused11) { + } + try { + f1443b[p7.BYTES.ordinal()] = 12; + } catch (NoSuchFieldError unused12) { + } + try { + f1443b[p7.UINT32.ordinal()] = 13; + } catch (NoSuchFieldError unused13) { + } + try { + f1443b[p7.SFIXED32.ordinal()] = 14; + } catch (NoSuchFieldError unused14) { + } + try { + f1443b[p7.SFIXED64.ordinal()] = 15; + } catch (NoSuchFieldError unused15) { + } + try { + f1443b[p7.SINT32.ordinal()] = 16; + } catch (NoSuchFieldError unused16) { + } + try { + f1443b[p7.SINT64.ordinal()] = 17; + } catch (NoSuchFieldError unused17) { + } + try { + f1443b[p7.ENUM.ordinal()] = 18; + } catch (NoSuchFieldError unused18) { + } + w7.values(); + int[] iArr2 = new int[9]; + a = iArr2; + try { + w7 w7Var = w7.INT; + iArr2[0] = 1; + } catch (NoSuchFieldError unused19) { + } + try { + int[] iArr3 = a; + w7 w7Var2 = w7.LONG; + iArr3[1] = 2; + } catch (NoSuchFieldError unused20) { + } + try { + int[] iArr4 = a; + w7 w7Var3 = w7.FLOAT; + iArr4[2] = 3; + } catch (NoSuchFieldError unused21) { + } + try { + int[] iArr5 = a; + w7 w7Var4 = w7.DOUBLE; + iArr5[3] = 4; + } catch (NoSuchFieldError unused22) { + } + try { + int[] iArr6 = a; + w7 w7Var5 = w7.BOOLEAN; + iArr6[4] = 5; + } catch (NoSuchFieldError unused23) { + } + try { + int[] iArr7 = a; + w7 w7Var6 = w7.STRING; + iArr7[5] = 6; + } catch (NoSuchFieldError unused24) { + } + try { + a[w7.BYTE_STRING.ordinal()] = 7; + } catch (NoSuchFieldError unused25) { + } + try { + a[w7.ENUM.ordinal()] = 8; + } catch (NoSuchFieldError unused26) { + } + try { + a[w7.MESSAGE.ordinal()] = 9; + } catch (NoSuchFieldError unused27) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/m5.java b/app/src/main/java/b/i/a/f/h/l/m5.java new file mode 100644 index 0000000000..57a86ef51b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m5.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class m5 { + public static final m5 a = new o5(null); + + /* renamed from: b reason: collision with root package name */ + public static final m5 f1444b = new n5(null); + + public m5(l5 l5Var) { + } + + public abstract void a(Object obj, Object obj2, long j); + + public abstract void b(Object obj, long j); +} diff --git a/app/src/main/java/b/i/a/f/h/l/m6.java b/app/src/main/java/b/i/a/f/h/l/m6.java new file mode 100644 index 0000000000..8a1bee2b45 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m6.java @@ -0,0 +1,115 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.util.AbstractList; +import java.util.Arrays; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class m6 extends o3 implements RandomAccess { + public static final m6 k; + public E[] l; + public int m; + + static { + m6 m6Var = new m6<>(new Object[0], 0); + k = m6Var; + m6Var.j = false; + } + + public m6(E[] eArr, int i) { + this.l = eArr; + this.m = i; + } + + @Override // java.util.AbstractList, java.util.List + public final void add(int i, E e) { + int i2; + c(); + if (i < 0 || i > (i2 = this.m)) { + throw new IndexOutOfBoundsException(e(i)); + } + E[] eArr = this.l; + if (i2 < eArr.length) { + System.arraycopy(eArr, i, eArr, i + 1, i2 - i); + } else { + E[] eArr2 = (E[]) new Object[(((i2 * 3) / 2) + 1)]; + System.arraycopy(eArr, 0, eArr2, 0, i); + System.arraycopy(this.l, i, eArr2, i + 1, this.m - i); + this.l = eArr2; + } + this.l[i] = e; + this.m++; + ((AbstractList) this).modCount++; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean add(E e) { + c(); + int i = this.m; + E[] eArr = this.l; + if (i == eArr.length) { + this.l = (E[]) Arrays.copyOf(eArr, ((i * 3) / 2) + 1); + } + E[] eArr2 = this.l; + int i2 = this.m; + this.m = i2 + 1; + eArr2[i2] = e; + ((AbstractList) this).modCount++; + return true; + } + + public final void d(int i) { + if (i < 0 || i >= this.m) { + throw new IndexOutOfBoundsException(e(i)); + } + } + + public final String e(int i) { + return a.g(35, "Index:", i, ", Size:", this.m); + } + + @Override // b.i.a.f.h.l.b5 + public final /* synthetic */ b5 f(int i) { + if (i >= this.m) { + return new m6(Arrays.copyOf(this.l, i), this.m); + } + throw new IllegalArgumentException(); + } + + @Override // java.util.AbstractList, java.util.List + public final E get(int i) { + d(i); + return this.l[i]; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List + public final E remove(int i) { + c(); + d(i); + E[] eArr = this.l; + E e = eArr[i]; + int i2 = this.m; + if (i < i2 - 1) { + System.arraycopy(eArr, i + 1, eArr, i, (i2 - i) - 1); + } + this.m--; + ((AbstractList) this).modCount++; + return e; + } + + @Override // java.util.AbstractList, java.util.List + public final E set(int i, E e) { + c(); + d(i); + E[] eArr = this.l; + E e2 = eArr[i]; + eArr[i] = e; + ((AbstractList) this).modCount++; + return e2; + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final int size() { + return this.m; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/m7.java b/app/src/main/java/b/i/a/f/h/l/m7.java new file mode 100644 index 0000000000..5ddd725bf1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m7.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; + +import com.google.android.gms.internal.measurement.zzij; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class m7 { + public abstract int a(int i, byte[] bArr, int i2, int i3); + + public abstract int b(CharSequence charSequence, byte[] bArr, int i, int i2); + + public abstract String c(byte[] bArr, int i, int i2) throws zzij; +} diff --git a/app/src/main/java/b/i/a/f/h/l/m8.java b/app/src/main/java/b/i/a/f/h/l/m8.java new file mode 100644 index 0000000000..4070a9fc38 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m8.java @@ -0,0 +1,69 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface m8 { + long A(); + + long B(); + + long C(); + + long D(); + + long E(); + + long F(); + + long G(); + + long H(); + + long a(); + + long b(); + + String c(); + + String d(); + + long e(); + + long f(); + + long g(); + + long h(); + + long j(); + + long k(); + + long l(); + + long m(); + + long n(); + + long o(); + + long p(); + + long q(); + + long r(); + + long s(); + + long t(); + + long u(); + + long v(); + + long w(); + + long x(); + + String y(); + + long z(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/m9.java b/app/src/main/java/b/i/a/f/h/l/m9.java new file mode 100644 index 0000000000..9b4cb79c5c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/m9.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class m9 implements z2 { + public static m9 j = new m9(); + public final z2 k = f.H1(new b3(new o9())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ p9 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/ma.java b/app/src/main/java/b/i/a/f/h/l/ma.java new file mode 100644 index 0000000000..219fc86439 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ma.java @@ -0,0 +1,27 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class ma implements na { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1445b; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + q2Var.a("measurement.id.lifecycle.app_in_background_parameter", 0); + a = q2Var.c("measurement.lifecycle.app_backgrounded_engagement", false); + q2Var.c("measurement.lifecycle.app_backgrounded_tracking", true); + f1445b = q2Var.c("measurement.lifecycle.app_in_background_parameter", false); + q2Var.a("measurement.id.lifecycle.app_backgrounded_tracking", 0); + } + + @Override // b.i.a.f.h.l.na + public final boolean a() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.na + public final boolean b() { + return f1445b.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/mb.java b/app/src/main/java/b/i/a/f/h/l/mb.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/mb.java rename to app/src/main/java/b/i/a/f/h/l/mb.java index f7032a24bf..190ae903b8 100644 --- a/app/src/main/java/c/i/a/f/h/l/mb.java +++ b/app/src/main/java/b/i/a/f/h/l/mb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface mb { boolean a(); diff --git a/app/src/main/java/b/i/a/f/h/l/n.java b/app/src/main/java/b/i/a/f/h/l/n.java new file mode 100644 index 0000000000..971b0c99a0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class n extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public n(g gVar, String str) { + super(true); + this.o = gVar; + this.n = str; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.setUserId(this.n, this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/n0.java b/app/src/main/java/b/i/a/f/h/l/n0.java new file mode 100644 index 0000000000..2c390304ad --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n0.java @@ -0,0 +1,153 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import com.discord.widgets.chat.input.MentionUtilsKt; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class n0 extends u4 implements d6 { + private static final n0 zzi; + private static volatile j6 zzj; + private int zzc; + private int zzd; + private boolean zze; + private String zzf = ""; + private String zzg = ""; + private String zzh = ""; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public enum a implements y4 { + UNKNOWN_COMPARISON_TYPE(0), + LESS_THAN(1), + GREATER_THAN(2), + EQUAL(3), + BETWEEN(4); + + private final int zzg; + + public a(int i) { + this.zzg = i; + } + + public static a f(int i) { + if (i == 0) { + return UNKNOWN_COMPARISON_TYPE; + } + if (i == 1) { + return LESS_THAN; + } + if (i == 2) { + return GREATER_THAN; + } + if (i == 3) { + return EQUAL; + } + if (i != 4) { + return null; + } + return BETWEEN; + } + + @Override // b.i.a.f.h.l.y4 + public final int a() { + return this.zzg; + } + + @Override // java.lang.Enum, java.lang.Object + public final String toString() { + return "<" + a.class.getName() + MentionUtilsKt.MENTIONS_CHAR + Integer.toHexString(System.identityHashCode(this)) + " number=" + this.zzg + " name=" + name() + '>'; + } + } + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class b extends u4.b implements d6 { + public b(q0 q0Var) { + super(n0.F()); + } + } + + static { + n0 n0Var = new n0(); + zzi = n0Var; + u4.r(n0.class, n0Var); + } + + public static n0 E() { + return zzi; + } + + public static /* synthetic */ n0 F() { + return zzi; + } + + public final boolean A() { + return (this.zzc & 8) != 0; + } + + public final String B() { + return this.zzg; + } + + public final boolean C() { + return (this.zzc & 16) != 0; + } + + public final String D() { + return this.zzh; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (q0.a[i - 1]) { + case 1: + return new n0(); + case 2: + return new b(null); + case 3: + return new o6(zzi, "\u0001\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0000\u0000\u0001ဌ\u0000\u0002ဇ\u0001\u0003ဈ\u0002\u0004ဈ\u0003\u0005ဈ\u0004", new Object[]{"zzc", "zzd", r0.a, "zze", "zzf", "zzg", "zzh"}); + case 4: + return zzi; + case 5: + j6 j6Var = zzj; + if (j6Var == null) { + synchronized (n0.class) { + j6Var = zzj; + if (j6Var == null) { + j6Var = new u4.a<>(zzi); + zzj = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final boolean u() { + return (this.zzc & 1) != 0; + } + + public final a v() { + a f = a.f(this.zzd); + return f == null ? a.UNKNOWN_COMPARISON_TYPE : f; + } + + public final boolean w() { + return (this.zzc & 2) != 0; + } + + public final boolean x() { + return this.zze; + } + + public final boolean y() { + return (this.zzc & 4) != 0; + } + + public final String z() { + return this.zzf; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/n1.java b/app/src/main/java/b/i/a/f/h/l/n1.java new file mode 100644 index 0000000000..3bca891617 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n1.java @@ -0,0 +1,58 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class n1 extends u4 implements d6 { + private static final n1 zzd; + private static volatile j6 zze; + private b5 zzc = m6.k; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a(r1 r1Var) { + super(n1.u()); + } + } + + static { + n1 n1Var = new n1(); + zzd = n1Var; + u4.r(n1.class, n1Var); + } + + public static /* synthetic */ n1 u() { + return zzd; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (r1.a[i - 1]) { + case 1: + return new n1(); + case 2: + return new a(null); + case 3: + return new o6(zzd, "\u0001\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b", new Object[]{"zzc", o1.class}); + case 4: + return zzd; + case 5: + j6 j6Var = zze; + if (j6Var == null) { + synchronized (n1.class) { + j6Var = zze; + if (j6Var == null) { + j6Var = new u4.a<>(zzd); + zze = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/n2.java b/app/src/main/java/b/i/a/f/h/l/n2.java new file mode 100644 index 0000000000..8329b6cef0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n2.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class n2 implements v2 { + public static final v2 a = new n2(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/n3.java b/app/src/main/java/b/i/a/f/h/l/n3.java new file mode 100644 index 0000000000..bbdd8ab94f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n3.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.l3; +import b.i.a.f.h.l.n3; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class n3, BuilderType extends n3> implements b6 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/n4.java b/app/src/main/java/b/i/a/f/h/l/n4.java new file mode 100644 index 0000000000..387999dfda --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n4.java @@ -0,0 +1,372 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.p4; +import b.i.a.f.h.l.u4; +import com.google.android.gms.internal.measurement.zzhi; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.logging.Logger; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class n4> { + public static final n4 a = new n4(true); + + /* renamed from: b reason: collision with root package name */ + public final r6 f1446b = new t6(16); + public boolean c; + public boolean d; + + public n4() { + int i = r6.j; + } + + public n4(boolean z2) { + int i = r6.j; + h(); + h(); + } + + public static int a(p4 p4Var, Object obj) { + p7 b2 = p4Var.b(); + int a2 = p4Var.a(); + if (!p4Var.d()) { + return b(b2, a2, obj); + } + int i = 0; + if (p4Var.e()) { + for (Object obj2 : (List) obj) { + i += g(b2, obj2); + } + return zzhi.D(a2) + i + zzhi.L(i); + } + for (Object obj3 : (List) obj) { + i += b(b2, a2, obj3); + } + return i; + } + + public static int b(p7 p7Var, int i, Object obj) { + int D = zzhi.D(i); + if (p7Var == p7.GROUP) { + c6 c6Var = (c6) obj; + if (c6Var instanceof m3) { + m3 m3Var = (m3) c6Var; + } + D <<= 1; + } + return g(p7Var, obj) + D; + } + + public static Object d(Object obj) { + if (obj instanceof f6) { + return ((f6) obj).a(); + } + if (!(obj instanceof byte[])) { + return obj; + } + byte[] bArr = (byte[]) obj; + byte[] bArr2 = new byte[bArr.length]; + System.arraycopy(bArr, 0, bArr2, 0, bArr.length); + return bArr2; + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:10:0x0027, code lost: + if ((r3 instanceof b.i.a.f.h.l.y4) == false) goto L_0x0016; + */ + /* JADX WARNING: Code restructure failed: missing block: B:14:0x0030, code lost: + if ((r3 instanceof byte[]) == false) goto L_0x0016; + */ + /* JADX WARNING: Code restructure failed: missing block: B:6:0x001e, code lost: + if ((r3 instanceof b.i.a.f.h.l.d5) == false) goto L_0x0016; + */ + public static void e(p7 p7Var, Object obj) { + Charset charset = w4.a; + Objects.requireNonNull(obj); + boolean z2 = true; + switch (m4.a[p7Var.f().ordinal()]) { + case 1: + z2 = obj instanceof Integer; + break; + case 2: + z2 = obj instanceof Long; + break; + case 3: + z2 = obj instanceof Float; + break; + case 4: + z2 = obj instanceof Double; + break; + case 5: + z2 = obj instanceof Boolean; + break; + case 6: + z2 = obj instanceof String; + break; + case 7: + if (!(obj instanceof t3)) { + break; + } + break; + case 8: + if (!(obj instanceof Integer)) { + break; + } + break; + case 9: + if (!(obj instanceof c6)) { + break; + } + break; + default: + z2 = false; + break; + } + if (!z2) { + throw new IllegalArgumentException("Wrong object type used with protocol message reflection."); + } + } + + public static > boolean f(Map.Entry entry) { + T key = entry.getKey(); + if (key.c() == w7.MESSAGE) { + if (key.d()) { + for (c6 c6Var : (List) entry.getValue()) { + if (!c6Var.j()) { + return false; + } + } + } else { + Object value = entry.getValue(); + if (value instanceof c6) { + if (!((c6) value).j()) { + return false; + } + } else if (value instanceof d5) { + return true; + } else { + throw new IllegalArgumentException("Wrong object type used with protocol message reflection."); + } + } + } + return true; + } + + public static int g(p7 p7Var, Object obj) { + int g; + int L; + switch (m4.f1443b[p7Var.ordinal()]) { + case 1: + ((Double) obj).doubleValue(); + Logger logger = zzhi.a; + return 8; + case 2: + ((Float) obj).floatValue(); + Logger logger2 = zzhi.a; + return 4; + case 3: + return zzhi.F(((Long) obj).longValue()); + case 4: + return zzhi.F(((Long) obj).longValue()); + case 5: + return zzhi.H(((Integer) obj).intValue()); + case 6: + ((Long) obj).longValue(); + Logger logger3 = zzhi.a; + return 8; + case 7: + ((Integer) obj).intValue(); + Logger logger4 = zzhi.a; + return 4; + case 8: + ((Boolean) obj).booleanValue(); + Logger logger5 = zzhi.a; + return 1; + case 9: + Logger logger6 = zzhi.a; + return ((c6) obj).g(); + case 10: + if (!(obj instanceof d5)) { + Logger logger7 = zzhi.a; + g = ((c6) obj).g(); + L = zzhi.L(g); + break; + } else { + Logger logger8 = zzhi.a; + g = ((d5) obj).a(); + L = zzhi.L(g); + break; + } + case 11: + return obj instanceof t3 ? zzhi.p((t3) obj) : zzhi.q((String) obj); + case 12: + if (!(obj instanceof t3)) { + Logger logger9 = zzhi.a; + g = ((byte[]) obj).length; + L = zzhi.L(g); + break; + } else { + return zzhi.p((t3) obj); + } + case 13: + return zzhi.L(((Integer) obj).intValue()); + case 14: + ((Integer) obj).intValue(); + Logger logger10 = zzhi.a; + return 4; + case 15: + ((Long) obj).longValue(); + Logger logger11 = zzhi.a; + return 8; + case 16: + return zzhi.O(((Integer) obj).intValue()); + case 17: + return zzhi.K(((Long) obj).longValue()); + case 18: + return obj instanceof y4 ? zzhi.H(((y4) obj).a()) : zzhi.H(((Integer) obj).intValue()); + default: + throw new RuntimeException("There is no way to get here, but the compiler thinks otherwise."); + } + return L + g; + } + + public static int k(Map.Entry entry) { + int M; + int L; + int g; + int L2; + T key = entry.getKey(); + Object value = entry.getValue(); + if (key.c() != w7.MESSAGE || key.d() || key.e()) { + return a(key, value); + } + if (value instanceof d5) { + M = zzhi.M(2, entry.getKey().a()) + (zzhi.L(8) << 1); + L = zzhi.L(24); + g = ((d5) value).a(); + L2 = zzhi.L(g); + } else { + M = zzhi.M(2, entry.getKey().a()) + (zzhi.L(8) << 1); + L = zzhi.L(24); + g = ((c6) value).g(); + L2 = zzhi.L(g); + } + return L2 + g + L + M; + } + + public final Object c(T t) { + Object obj = this.f1446b.get(t); + if (!(obj instanceof d5)) { + return obj; + } + d5 d5Var = (d5) obj; + int i = d5.c; + throw new NoSuchMethodError(); + } + + public final /* synthetic */ Object clone() throws CloneNotSupportedException { + n4 n4Var = new n4(); + for (int i = 0; i < this.f1446b.e(); i++) { + Map.Entry d = this.f1446b.d(i); + n4Var.i(d.getKey(), d.getValue()); + } + for (Map.Entry entry : this.f1446b.g()) { + n4Var.i(entry.getKey(), entry.getValue()); + } + n4Var.d = this.d; + return n4Var; + } + + public final boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof n4)) { + return false; + } + return this.f1446b.equals(((n4) obj).f1446b); + } + + public final void h() { + if (!this.c) { + this.f1446b.c(); + this.c = true; + } + } + + public final int hashCode() { + return this.f1446b.hashCode(); + } + + public final void i(T t, Object obj) { + if (!t.d()) { + e(t.b(), obj); + } else if (obj instanceof List) { + ArrayList arrayList = new ArrayList(); + arrayList.addAll((List) obj); + int size = arrayList.size(); + int i = 0; + while (i < size) { + Object obj2 = arrayList.get(i); + i++; + e(t.b(), obj2); + } + obj = arrayList; + } else { + throw new IllegalArgumentException("Wrong object type used with protocol message reflection."); + } + if (obj instanceof d5) { + this.d = true; + } + this.f1446b.put(t, obj); + } + + public final void j(Map.Entry entry) { + T key = entry.getKey(); + Object value = entry.getValue(); + if (value instanceof d5) { + d5 d5Var = (d5) value; + int i = d5.c; + throw new NoSuchMethodError(); + } else if (key.d()) { + Object c = c(key); + if (c == null) { + c = new ArrayList(); + } + for (Object obj : (List) value) { + ((List) c).add(d(obj)); + } + this.f1446b.put(key, c); + } else if (key.c() == w7.MESSAGE) { + Object c2 = c(key); + if (c2 == null) { + this.f1446b.put(key, d(value)); + } else { + this.f1446b.put(key, c2 instanceof f6 ? key.c0((f6) c2, (f6) value) : ((u4.b) key.X(((c6) c2).f(), (c6) value)).p()); + } + } else { + this.f1446b.put(key, d(value)); + } + } + + public final Iterator> l() { + return this.d ? new i5(this.f1446b.entrySet().iterator()) : this.f1446b.entrySet().iterator(); + } + + public final boolean m() { + for (int i = 0; i < this.f1446b.e(); i++) { + if (!f(this.f1446b.d(i))) { + return false; + } + } + for (Map.Entry entry : this.f1446b.g()) { + if (!f(entry)) { + return false; + } + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/n5.java b/app/src/main/java/b/i/a/f/h/l/n5.java new file mode 100644 index 0000000000..decdb4d536 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n5.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class n5 extends m5 { + public n5(l5 l5Var) { + super(null); + } + + public static b5 c(Object obj, long j) { + return (b5) j7.r(obj, j); + } + + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.i.a.f.h.l.m5 + public final void a(Object obj, Object obj2, long j) { + b5 c = c(obj, j); + b5 c2 = c(obj2, j); + int size = c.size(); + int size2 = c2.size(); + b5 b5Var = c; + b5Var = c; + if (size > 0 && size2 > 0) { + boolean a = c.a(); + b5 b5Var2 = c; + if (!a) { + b5Var2 = c.f(size2 + size); + } + b5Var2.addAll(c2); + b5Var = b5Var2; + } + if (size > 0) { + c2 = b5Var; + } + j7.f(obj, j, c2); + } + + @Override // b.i.a.f.h.l.m5 + public final void b(Object obj, long j) { + c(obj, j).g0(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/n6.java b/app/src/main/java/b/i/a/f/h/l/n6.java new file mode 100644 index 0000000000..b1941833f4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n6.java @@ -0,0 +1,88 @@ +package b.i.a.f.h.l; + +import java.nio.charset.Charset; +import java.util.Objects; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class n6 { + public static final n6 a = new n6(); + + /* renamed from: b reason: collision with root package name */ + public final p6 f1447b = new p5(); + public final ConcurrentMap, q6> c = new ConcurrentHashMap(); + + public final q6 a(Class cls) { + q6 q6Var; + g6 g6Var; + Class cls2; + Charset charset = w4.a; + Objects.requireNonNull(cls, "messageType"); + q6 q6Var2 = (q6) this.c.get(cls); + if (q6Var2 != null) { + return q6Var2; + } + p5 p5Var = (p5) this.f1447b; + Objects.requireNonNull(p5Var); + Class cls3 = s6.a; + if (u4.class.isAssignableFrom(cls) || (cls2 = s6.a) == null || cls2.isAssignableFrom(cls)) { + a6 b2 = p5Var.f1463b.b(cls); + if (b2.b()) { + if (u4.class.isAssignableFrom(cls)) { + d7 d7Var = s6.d; + j4 j4Var = k4.a; + g6Var = new g6(d7Var, k4.a, b2.c()); + } else { + d7 d7Var2 = s6.f1480b; + j4 j4Var2 = k4.f1438b; + if (j4Var2 != null) { + g6Var = new g6(d7Var2, j4Var2, b2.c()); + } else { + throw new IllegalStateException("Protobuf runtime is not correctly loaded."); + } + } + q6Var = g6Var; + } else { + boolean z2 = false; + if (u4.class.isAssignableFrom(cls)) { + if (b2.a() == 1) { + z2 = true; + } + if (z2) { + i6 i6Var = k6.f1439b; + m5 m5Var = m5.f1444b; + d7 d7Var3 = s6.d; + j4 j4Var3 = k4.a; + q6Var = e6.n(b2, i6Var, m5Var, d7Var3, k4.a, x5.f1487b); + } else { + q6Var = e6.n(b2, k6.f1439b, m5.f1444b, s6.d, null, x5.f1487b); + } + } else { + if (b2.a() == 1) { + z2 = true; + } + if (z2) { + i6 i6Var2 = k6.a; + m5 m5Var2 = m5.a; + d7 d7Var4 = s6.f1480b; + j4 j4Var4 = k4.f1438b; + if (j4Var4 != null) { + q6Var = e6.n(b2, i6Var2, m5Var2, d7Var4, j4Var4, x5.a); + } else { + throw new IllegalStateException("Protobuf runtime is not correctly loaded."); + } + } else { + q6Var = e6.n(b2, k6.a, m5.a, s6.c, null, x5.a); + } + } + } + q6 q6Var3 = (q6) this.c.putIfAbsent(cls, q6Var); + return q6Var3 != null ? q6Var3 : q6Var; + } + throw new IllegalArgumentException("Message classes must extend GeneratedMessage or GeneratedMessageLite"); + } + + public final q6 b(T t) { + return a(t.getClass()); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/n7.java b/app/src/main/java/b/i/a/f/h/l/n7.java new file mode 100644 index 0000000000..c712719a5e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n7.java @@ -0,0 +1,304 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +import com.google.android.gms.internal.measurement.zzij; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class n7 extends m7 { + public static int d(byte[] bArr, int i, long j, int i2) { + if (i2 == 0) { + m7 m7Var = k7.a; + if (i > -12) { + return -1; + } + return i; + } else if (i2 == 1) { + byte a = j7.a(bArr, j); + m7 m7Var2 = k7.a; + if (i > -12 || a > -65) { + return -1; + } + return i ^ (a << 8); + } else if (i2 == 2) { + return k7.c(i, j7.a(bArr, j), j7.a(bArr, j + 1)); + } else { + throw new AssertionError(); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:29:0x0061, code lost: + return -1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:57:0x00b6, code lost: + return -1; + */ + @Override // b.i.a.f.h.l.m7 + public final int a(int i, byte[] bArr, int i2, int i3) { + int i4; + long j; + if ((i2 | i3 | (bArr.length - i3)) >= 0) { + long j2 = (long) i2; + int i5 = (int) (((long) i3) - j2); + if (i5 >= 16) { + long j3 = j2; + i4 = 0; + while (true) { + if (i4 >= i5) { + i4 = i5; + break; + } + long j4 = j3 + 1; + if (j7.a(bArr, j3) < 0) { + break; + } + i4++; + j3 = j4; + } + } else { + i4 = 0; + } + int i6 = i5 - i4; + long j5 = j2 + ((long) i4); + while (true) { + byte b2 = 0; + while (true) { + if (i6 <= 0) { + break; + } + long j6 = j5 + 1; + b2 = j7.a(bArr, j5); + if (b2 < 0) { + j5 = j6; + break; + } + i6--; + j5 = j6; + } + if (i6 == 0) { + return 0; + } + int i7 = i6 - 1; + if (b2 >= -32) { + if (b2 >= -16) { + if (i7 >= 3) { + i6 = i7 - 3; + long j7 = j5 + 1; + byte a = j7.a(bArr, j5); + if (a > -65 || (((a + 112) + (b2 << 28)) >> 30) != 0) { + break; + } + long j8 = j7 + 1; + if (j7.a(bArr, j7) > -65) { + break; + } + j = j8 + 1; + if (j7.a(bArr, j8) > -65) { + break; + } + } else { + return d(bArr, b2, j5, i7); + } + } else if (i7 >= 2) { + i6 = i7 - 2; + long j9 = j5 + 1; + byte a2 = j7.a(bArr, j5); + if (a2 > -65 || ((b2 == -32 && a2 < -96) || (b2 == -19 && a2 >= -96))) { + break; + } + j5 = j9 + 1; + if (j7.a(bArr, j9) > -65) { + break; + } + } else { + return d(bArr, b2, j5, i7); + } + } else if (i7 != 0) { + i6 = i7 - 1; + if (b2 < -62) { + break; + } + j = j5 + 1; + if (j7.a(bArr, j5) > -65) { + break; + } + } else { + return b2; + } + j5 = j; + } + return -1; + } + throw new ArrayIndexOutOfBoundsException(String.format("Array length=%d, index=%d, limit=%d", Integer.valueOf(bArr.length), Integer.valueOf(i2), Integer.valueOf(i3))); + } + + @Override // b.i.a.f.h.l.m7 + public final int b(CharSequence charSequence, byte[] bArr, int i, int i2) { + char c; + long j; + long j2; + long j3; + int i3; + char charAt; + long j4 = (long) i; + long j5 = ((long) i2) + j4; + int length = charSequence.length(); + if (length > i2 || bArr.length - i2 < i) { + char charAt2 = charSequence.charAt(length - 1); + StringBuilder sb = new StringBuilder(37); + sb.append("Failed writing "); + sb.append(charAt2); + sb.append(" at index "); + sb.append(i + i2); + throw new ArrayIndexOutOfBoundsException(sb.toString()); + } + int i4 = 0; + while (true) { + c = 128; + j = 1; + if (i4 >= length || (charAt = charSequence.charAt(i4)) >= 128) { + break; + } + j7.g(bArr, j4, (byte) charAt); + i4++; + j4 = 1 + j4; + } + if (i4 == length) { + return (int) j4; + } + while (i4 < length) { + char charAt3 = charSequence.charAt(i4); + if (charAt3 < c && j4 < j5) { + long j6 = j4 + j; + j7.g(bArr, j4, (byte) charAt3); + j3 = j; + j2 = j6; + } else if (charAt3 < 2048 && j4 <= j5 - 2) { + long j7 = j4 + j; + j7.g(bArr, j4, (byte) ((charAt3 >>> 6) | 960)); + j7.g(bArr, j7, (byte) ((charAt3 & '?') | 128)); + j2 = j7 + j; + j3 = j; + i4++; + c = 128; + j4 = j2; + j = j3; + } else if ((charAt3 < 55296 || 57343 < charAt3) && j4 <= j5 - 3) { + long j8 = j4 + j; + j7.g(bArr, j4, (byte) ((charAt3 >>> '\f') | 480)); + long j9 = j8 + j; + j7.g(bArr, j8, (byte) (((charAt3 >>> 6) & 63) | 128)); + j7.g(bArr, j9, (byte) ((charAt3 & '?') | 128)); + j2 = j9 + 1; + j3 = 1; + } else if (j4 <= j5 - 4) { + int i5 = i4 + 1; + if (i5 != length) { + char charAt4 = charSequence.charAt(i5); + if (Character.isSurrogatePair(charAt3, charAt4)) { + int codePoint = Character.toCodePoint(charAt3, charAt4); + long j10 = j4 + 1; + j7.g(bArr, j4, (byte) ((codePoint >>> 18) | 240)); + long j11 = j10 + 1; + j7.g(bArr, j10, (byte) (((codePoint >>> 12) & 63) | 128)); + long j12 = j11 + 1; + j7.g(bArr, j11, (byte) (((codePoint >>> 6) & 63) | 128)); + j3 = 1; + j2 = j12 + 1; + j7.g(bArr, j12, (byte) ((codePoint & 63) | 128)); + i4 = i5; + i4++; + c = 128; + j4 = j2; + j = j3; + } else { + i4 = i5; + } + } + throw new o7(i4 - 1, length); + } else if (55296 > charAt3 || charAt3 > 57343 || ((i3 = i4 + 1) != length && Character.isSurrogatePair(charAt3, charSequence.charAt(i3)))) { + StringBuilder sb2 = new StringBuilder(46); + sb2.append("Failed writing "); + sb2.append(charAt3); + sb2.append(" at index "); + sb2.append(j4); + throw new ArrayIndexOutOfBoundsException(sb2.toString()); + } else { + throw new o7(i4, length); + } + i4++; + c = 128; + j4 = j2; + j = j3; + } + return (int) j4; + } + + @Override // b.i.a.f.h.l.m7 + public final String c(byte[] bArr, int i, int i2) throws zzij { + if ((i | i2 | ((bArr.length - i) - i2)) >= 0) { + int i3 = i + i2; + char[] cArr = new char[i2]; + int i4 = 0; + while (i < i3) { + byte a = j7.a(bArr, (long) i); + if (!f.a2(a)) { + break; + } + i++; + cArr[i4] = (char) a; + i4++; + } + int i5 = i4; + while (i < i3) { + int i6 = i + 1; + byte a2 = j7.a(bArr, (long) i); + if (f.a2(a2)) { + int i7 = i5 + 1; + cArr[i5] = (char) a2; + i = i6; + while (true) { + i5 = i7; + if (i >= i3) { + break; + } + byte a3 = j7.a(bArr, (long) i); + if (!f.a2(a3)) { + break; + } + i++; + i7 = i5 + 1; + cArr[i5] = (char) a3; + } + } else { + if (!(a2 < -32)) { + if (a2 < -16) { + if (i6 < i3 - 1) { + int i8 = i6 + 1; + f.S1(a2, j7.a(bArr, (long) i6), j7.a(bArr, (long) i8), cArr, i5); + i = i8 + 1; + i5++; + } else { + throw zzij.e(); + } + } else if (i6 < i3 - 2) { + int i9 = i6 + 1; + int i10 = i9 + 1; + f.R1(a2, j7.a(bArr, (long) i6), j7.a(bArr, (long) i9), j7.a(bArr, (long) i10), cArr, i5); + i5 = i5 + 1 + 1; + i = i10 + 1; + } else { + throw zzij.e(); + } + } else if (i6 < i3) { + f.T1(a2, j7.a(bArr, (long) i6), cArr, i5); + i = i6 + 1; + i5++; + } else { + throw zzij.e(); + } + } + } + return new String(cArr, 0, i5); + } + throw new ArrayIndexOutOfBoundsException(String.format("buffer length=%d, index=%d, size=%d", Integer.valueOf(bArr.length), Integer.valueOf(i), Integer.valueOf(i2))); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/n8.java b/app/src/main/java/b/i/a/f/h/l/n8.java new file mode 100644 index 0000000000..ef7cf421fa --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n8.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class n8 implements z2 { + public static n8 j = new n8(); + public final z2 k = f.H1(new b3(new p8())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ m8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/n9.java b/app/src/main/java/b/i/a/f/h/l/n9.java new file mode 100644 index 0000000000..83a0f1d130 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/n9.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class n9 implements k9 { + public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.service.database_return_empty_collection", true); + + @Override // b.i.a.f.h.l.k9 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.k9 + public final boolean b() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/na.java b/app/src/main/java/b/i/a/f/h/l/na.java similarity index 87% rename from app/src/main/java/c/i/a/f/h/l/na.java rename to app/src/main/java/b/i/a/f/h/l/na.java index 5d130a908e..b61013a686 100644 --- a/app/src/main/java/c/i/a/f/h/l/na.java +++ b/app/src/main/java/b/i/a/f/h/l/na.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface na { boolean a(); diff --git a/app/src/main/java/c/i/a/f/h/l/nb.java b/app/src/main/java/b/i/a/f/h/l/nb.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/nb.java rename to app/src/main/java/b/i/a/f/h/l/nb.java index f3d3b73068..2f8dca5b17 100644 --- a/app/src/main/java/c/i/a/f/h/l/nb.java +++ b/app/src/main/java/b/i/a/f/h/l/nb.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class nb implements z2 { public static nb j = new nb(); public final z2 k = f.H1(new b3(new pb())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ mb a() { return this.k.a(); } diff --git a/app/src/main/java/b/i/a/f/h/l/o.java b/app/src/main/java/b/i/a/f/h/l/o.java new file mode 100644 index 0000000000..a827f4700f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.l; + +import java.util.concurrent.Executors; +import java.util.concurrent.ThreadFactory; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class o implements ThreadFactory { + public ThreadFactory j = Executors.defaultThreadFactory(); + + @Override // java.util.concurrent.ThreadFactory + public final Thread newThread(Runnable runnable) { + Thread newThread = this.j.newThread(runnable); + newThread.setName("ScionFrontendApi"); + return newThread; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o0.java b/app/src/main/java/b/i/a/f/h/l/o0.java new file mode 100644 index 0000000000..b3c2cb6dad --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o0.java @@ -0,0 +1,113 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class o0 extends u4 implements d6 { + private static final o0 zzj; + private static volatile j6 zzk; + private int zzc; + private int zzd; + private String zze = ""; + private m0 zzf; + private boolean zzg; + private boolean zzh; + private boolean zzi; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(o0.E()); + } + + public a(q0 q0Var) { + super(o0.E()); + } + } + + static { + o0 o0Var = new o0(); + zzj = o0Var; + u4.r(o0.class, o0Var); + } + + public static a D() { + return zzj.s(); + } + + public static /* synthetic */ o0 E() { + return zzj; + } + + public static void u(o0 o0Var, String str) { + Objects.requireNonNull(o0Var); + str.getClass(); + o0Var.zzc |= 2; + o0Var.zze = str; + } + + public final boolean A() { + return this.zzh; + } + + public final boolean B() { + return (this.zzc & 32) != 0; + } + + public final boolean C() { + return this.zzi; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (q0.a[i - 1]) { + case 1: + return new o0(); + case 2: + return new a(null); + case 3: + return new o6(zzj, "\u0001\u0006\u0000\u0001\u0001\u0006\u0006\u0000\u0000\u0000\u0001င\u0000\u0002ဈ\u0001\u0003ဉ\u0002\u0004ဇ\u0003\u0005ဇ\u0004\u0006ဇ\u0005", new Object[]{"zzc", "zzd", "zze", "zzf", "zzg", "zzh", "zzi"}); + case 4: + return zzj; + case 5: + j6 j6Var = zzk; + if (j6Var == null) { + synchronized (o0.class) { + j6Var = zzk; + if (j6Var == null) { + j6Var = new u4.a<>(zzj); + zzk = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final boolean v() { + return (this.zzc & 1) != 0; + } + + public final int w() { + return this.zzd; + } + + public final String x() { + return this.zze; + } + + public final m0 y() { + m0 m0Var = this.zzf; + return m0Var == null ? m0.D() : m0Var; + } + + public final boolean z() { + return this.zzg; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o1.java b/app/src/main/java/b/i/a/f/h/l/o1.java new file mode 100644 index 0000000000..b911cd5860 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o1.java @@ -0,0 +1,60 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class o1 extends u4 implements d6 { + private static final o1 zzf; + private static volatile j6 zzg; + private int zzc; + private String zzd = ""; + private b5 zze = m6.k; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a(r1 r1Var) { + super(o1.u()); + } + } + + static { + o1 o1Var = new o1(); + zzf = o1Var; + u4.r(o1.class, o1Var); + } + + public static /* synthetic */ o1 u() { + return zzf; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (r1.a[i - 1]) { + case 1: + return new o1(); + case 2: + return new a(null); + case 3: + return new o6(zzf, "\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0001\u0000\u0001ဈ\u0000\u0002\u001b", new Object[]{"zzc", "zzd", "zze", q1.class}); + case 4: + return zzf; + case 5: + j6 j6Var = zzg; + if (j6Var == null) { + synchronized (o1.class) { + j6Var = zzg; + if (j6Var == null) { + j6Var = new u4.a<>(zzf); + zzg = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o2.java b/app/src/main/java/b/i/a/f/h/l/o2.java new file mode 100644 index 0000000000..0177cc6ef3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o2.java @@ -0,0 +1,31 @@ +package b.i.a.f.h.l; + +import android.util.Log; +import b.d.b.a.a; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o2 extends l2 { + public o2(q2 q2Var, String str, Double d) { + super(q2Var, str, d, true, null); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.l2 + public final Double a(Object obj) { + if (obj instanceof Double) { + return (Double) obj; + } + if (obj instanceof Float) { + return Double.valueOf(((Float) obj).doubleValue()); + } + if (obj instanceof String) { + try { + return Double.valueOf(Double.parseDouble((String) obj)); + } catch (NumberFormatException unused) { + } + } + String c = c(); + String valueOf = String.valueOf(obj); + Log.e("PhenotypeFlag", a.k(valueOf.length() + a.b(c, 27), "Invalid double value for ", c, ": ", valueOf)); + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o3.java b/app/src/main/java/b/i/a/f/h/l/o3.java new file mode 100644 index 0000000000..b3965ab37c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o3.java @@ -0,0 +1,110 @@ +package b.i.a.f.h.l; + +import java.util.AbstractList; +import java.util.Collection; +import java.util.List; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class o3 extends AbstractList implements b5 { + public boolean j = true; + + @Override // b.i.a.f.h.l.b5 + public boolean a() { + return this.j; + } + + @Override // java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public boolean add(E e) { + c(); + return super.add(e); + } + + @Override // java.util.AbstractList, java.util.List + public boolean addAll(int i, Collection collection) { + c(); + return super.addAll(i, collection); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public boolean addAll(Collection collection) { + c(); + return super.addAll(collection); + } + + public final void c() { + if (!this.j) { + throw new UnsupportedOperationException(); + } + } + + @Override // java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public void clear() { + c(); + super.clear(); + } + + @Override // java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof List)) { + return false; + } + if (!(obj instanceof RandomAccess)) { + return super.equals(obj); + } + List list = (List) obj; + int size = size(); + if (size != list.size()) { + return false; + } + for (int i = 0; i < size; i++) { + if (!get(i).equals(list.get(i))) { + return false; + } + } + return true; + } + + @Override // b.i.a.f.h.l.b5 + public final void g0() { + this.j = false; + } + + @Override // java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public int hashCode() { + int size = size(); + int i = 1; + for (int i2 = 0; i2 < size; i2++) { + i = (i * 31) + get(i2).hashCode(); + } + return i; + } + + @Override // java.util.AbstractList, java.util.List + public abstract E remove(int i); + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public boolean remove(Object obj) { + c(); + int indexOf = indexOf(obj); + if (indexOf == -1) { + return false; + } + remove(indexOf); + return true; + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public boolean removeAll(Collection collection) { + c(); + return super.removeAll(collection); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public boolean retainAll(Collection collection) { + c(); + return super.retainAll(collection); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o4.java b/app/src/main/java/b/i/a/f/h/l/o4.java new file mode 100644 index 0000000000..09e385e77b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o4.java @@ -0,0 +1,156 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +/* JADX WARN: Init of enum j can be incorrect */ +/* JADX WARN: Init of enum k can be incorrect */ +/* JADX WARN: Init of enum l can be incorrect */ +/* JADX WARN: Init of enum m can be incorrect */ +/* JADX WARN: Init of enum n can be incorrect */ +/* JADX WARN: Init of enum o can be incorrect */ +/* JADX WARN: Init of enum p can be incorrect */ +/* JADX WARN: Init of enum q can be incorrect */ +/* JADX WARN: Init of enum r can be incorrect */ +/* JADX WARN: Init of enum s can be incorrect */ +/* JADX WARN: Init of enum t can be incorrect */ +/* JADX WARN: Init of enum u can be incorrect */ +/* JADX WARN: Init of enum v can be incorrect */ +/* JADX WARN: Init of enum w can be incorrect */ +/* JADX WARN: Init of enum x can be incorrect */ +/* JADX WARN: Init of enum y can be incorrect */ +/* JADX WARN: Init of enum z can be incorrect */ +/* JADX WARN: Init of enum A can be incorrect */ +/* JADX WARN: Init of enum B can be incorrect */ +/* JADX WARN: Init of enum C can be incorrect */ +/* JADX WARN: Init of enum D can be incorrect */ +/* JADX WARN: Init of enum E can be incorrect */ +/* JADX WARN: Init of enum F can be incorrect */ +/* JADX WARN: Init of enum G can be incorrect */ +/* JADX WARN: Init of enum H can be incorrect */ +/* JADX WARN: Init of enum I can be incorrect */ +/* JADX WARN: Init of enum J can be incorrect */ +/* JADX WARN: Init of enum K can be incorrect */ +/* JADX WARN: Init of enum L can be incorrect */ +/* JADX WARN: Init of enum M can be incorrect */ +/* JADX WARN: Init of enum N can be incorrect */ +/* JADX WARN: Init of enum O can be incorrect */ +/* JADX WARN: Init of enum P can be incorrect */ +/* JADX WARN: Init of enum Q can be incorrect */ +/* JADX WARN: Init of enum R can be incorrect */ +/* JADX WARN: Init of enum S can be incorrect */ +/* JADX WARN: Init of enum T can be incorrect */ +/* JADX WARN: Init of enum U can be incorrect */ +/* JADX WARN: Init of enum V can be incorrect */ +/* JADX WARN: Init of enum W can be incorrect */ +/* JADX WARN: Init of enum X can be incorrect */ +/* JADX WARN: Init of enum Y can be incorrect */ +/* JADX WARN: Init of enum Z can be incorrect */ +/* JADX WARN: Init of enum a0 can be incorrect */ +/* JADX WARN: Init of enum b0 can be incorrect */ +/* JADX WARN: Init of enum c0 can be incorrect */ +/* JADX WARN: Init of enum d0 can be incorrect */ +/* JADX WARN: Init of enum e0 can be incorrect */ +/* JADX WARN: Init of enum f0 can be incorrect */ +/* JADX WARN: Init of enum g0 can be incorrect */ +public enum o4 { + DOUBLE(0, r7, r8), + FLOAT(1, r7, r9), + INT64(2, r7, r10), + UINT64(3, r7, r10), + INT32(4, r7, r11), + FIXED64(5, r7, r10), + FIXED32(6, r7, r11), + BOOL(7, r7, r12), + STRING(8, r7, r13), + MESSAGE(9, r7, r14), + BYTES(10, r7, r15), + UINT32(11, r7, r11), + ENUM(12, r7, r16), + SFIXED32(13, r7, r11), + SFIXED64(14, r7, r10), + SINT32(15, r7, r11), + SINT64(16, r7, r10), + GROUP(17, r7, r14), + DOUBLE_LIST(18, r7, r8), + FLOAT_LIST(19, r7, r9), + INT64_LIST(20, r7, r10), + UINT64_LIST(21, r7, r10), + INT32_LIST(22, r7, r11), + FIXED64_LIST(23, r7, r10), + FIXED32_LIST(24, r7, r11), + BOOL_LIST(25, r7, r12), + STRING_LIST(26, r7, r13), + MESSAGE_LIST(27, r7, r14), + BYTES_LIST(28, r7, r15), + UINT32_LIST(29, r7, r11), + ENUM_LIST(30, r7, r16), + SFIXED32_LIST(31, r7, r11), + SFIXED64_LIST(32, r7, r10), + SINT32_LIST(33, r7, r11), + SINT64_LIST(34, r7, r10), + DOUBLE_LIST_PACKED(35, r13, r8), + FLOAT_LIST_PACKED(36, r13, r9), + INT64_LIST_PACKED(37, r13, r10), + UINT64_LIST_PACKED(38, r13, r10), + INT32_LIST_PACKED(39, r13, r11), + FIXED64_LIST_PACKED(40, r13, r10), + FIXED32_LIST_PACKED(41, r13, r11), + BOOL_LIST_PACKED(42, r13, r12), + UINT32_LIST_PACKED(43, r13, r11), + ENUM_LIST_PACKED(44, r13, r16), + SFIXED32_LIST_PACKED(45, r13, r11), + SFIXED64_LIST_PACKED(46, r13, r8), + SINT32_LIST_PACKED(47, r13, e5.INT), + SINT64_LIST_PACKED(48, r13, r8), + GROUP_LIST(49, r7, r14), + MAP(50, q4.MAP, e5.VOID); + + + /* renamed from: i0 reason: collision with root package name */ + public static final o4[] f1456i0 = new o4[51]; + private final e5 zzaz; + private final int zzba; + private final q4 zzbb; + private final Class zzbc; + private final boolean zzbd; + + static { + q4 q4Var = q4.SCALAR; + e5 e5Var = e5.DOUBLE; + e5 e5Var2 = e5.FLOAT; + e5 e5Var3 = e5.LONG; + e5 e5Var4 = e5.INT; + e5 e5Var5 = e5.BOOLEAN; + e5 e5Var6 = e5.STRING; + e5 e5Var7 = e5.MESSAGE; + e5 e5Var8 = e5.BYTE_STRING; + e5 e5Var9 = e5.ENUM; + q4 q4Var2 = q4.VECTOR; + q4 q4Var3 = q4.PACKED_VECTOR; + e5 e5Var10 = e5.LONG; + o4[] values = values(); + for (int i = 0; i < 51; i++) { + o4 o4Var = values[i]; + f1456i0[o4Var.zzba] = o4Var; + } + } + + public o4(int i, q4 q4Var, e5 e5Var) { + int i2; + this.zzba = i; + this.zzbb = q4Var; + this.zzaz = e5Var; + int i3 = r4.a[q4Var.ordinal()]; + boolean z2 = true; + if (i3 == 1) { + this.zzbc = e5Var.f(); + } else if (i3 != 2) { + this.zzbc = null; + } else { + this.zzbc = e5Var.f(); + } + this.zzbd = (q4Var != q4.SCALAR || (i2 = r4.f1475b[e5Var.ordinal()]) == 1 || i2 == 2 || i2 == 3) ? false : z2; + } + + public final int a() { + return this.zzba; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o5.java b/app/src/main/java/b/i/a/f/h/l/o5.java new file mode 100644 index 0000000000..f87b3a6567 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o5.java @@ -0,0 +1,76 @@ +package b.i.a.f.h.l; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class o5 extends m5 { + public static final Class c = Collections.unmodifiableList(Collections.emptyList()).getClass(); + + public o5(l5 l5Var) { + super(null); + } + + @Override // b.i.a.f.h.l.m5 + public final void a(Object obj, Object obj2, long j) { + ArrayList arrayList; + List list = (List) j7.r(obj2, j); + int size = list.size(); + List list2 = (List) j7.r(obj, j); + if (list2.isEmpty()) { + list2 = list2 instanceof j5 ? new k5(size) : (!(list2 instanceof l6) || !(list2 instanceof b5)) ? new ArrayList(size) : ((b5) list2).f(size); + j7.f(obj, j, list2); + } else { + if (c.isAssignableFrom(list2.getClass())) { + ArrayList arrayList2 = new ArrayList(list2.size() + size); + arrayList2.addAll(list2); + j7.f(obj, j, arrayList2); + arrayList = arrayList2; + } else if (list2 instanceof e7) { + k5 k5Var = new k5(list2.size() + size); + k5Var.addAll(k5Var.size(), (e7) list2); + j7.f(obj, j, k5Var); + arrayList = k5Var; + } else if ((list2 instanceof l6) && (list2 instanceof b5)) { + b5 b5Var = (b5) list2; + if (!b5Var.a()) { + list2 = b5Var.f(list2.size() + size); + j7.f(obj, j, list2); + } + } + list2 = arrayList; + } + int size2 = list2.size(); + int size3 = list.size(); + if (size2 > 0 && size3 > 0) { + list2.addAll(list); + } + if (size2 > 0) { + list = list2; + } + j7.f(obj, j, list); + } + + @Override // b.i.a.f.h.l.m5 + public final void b(Object obj, long j) { + Object obj2; + List list = (List) j7.r(obj, j); + if (list instanceof j5) { + obj2 = ((j5) list).s(); + } else if (!c.isAssignableFrom(list.getClass())) { + if (!(list instanceof l6) || !(list instanceof b5)) { + obj2 = Collections.unmodifiableList(list); + } else { + b5 b5Var = (b5) list; + if (b5Var.a()) { + b5Var.g0(); + return; + } + return; + } + } else { + return; + } + j7.f(obj, j, obj2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o6.java b/app/src/main/java/b/i/a/f/h/l/o6.java new file mode 100644 index 0000000000..881f3a5965 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o6.java @@ -0,0 +1,51 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class o6 implements a6 { + public final c6 a; + + /* renamed from: b reason: collision with root package name */ + public final String f1462b; + public final Object[] c; + public final int d; + + public o6(c6 c6Var, String str, Object[] objArr) { + this.a = c6Var; + this.f1462b = str; + this.c = objArr; + char charAt = str.charAt(0); + if (charAt < 55296) { + this.d = charAt; + return; + } + int i = charAt & 8191; + int i2 = 13; + int i3 = 1; + while (true) { + int i4 = i3 + 1; + char charAt2 = str.charAt(i3); + if (charAt2 >= 55296) { + i |= (charAt2 & 8191) << i2; + i2 += 13; + i3 = i4; + } else { + this.d = i | (charAt2 << i2); + return; + } + } + } + + @Override // b.i.a.f.h.l.a6 + public final int a() { + return (this.d & 1) == 1 ? 1 : 2; + } + + @Override // b.i.a.f.h.l.a6 + public final boolean b() { + return (this.d & 2) == 2; + } + + @Override // b.i.a.f.h.l.a6 + public final c6 c() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o7.java b/app/src/main/java/b/i/a/f/h/l/o7.java new file mode 100644 index 0000000000..7bf4360e5d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o7.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class o7 extends IllegalArgumentException { + public o7(int i, int i2) { + super(a.g(54, "Unpaired surrogate at index ", i, " of ", i2)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o8.java b/app/src/main/java/b/i/a/f/h/l/o8.java new file mode 100644 index 0000000000..40a2836536 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o8.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o8 implements z2 { + public static o8 j = new o8(); + public final z2 k = f.H1(new b3(new q8())); + + public static boolean b() { + return ((r8) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ r8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/o9.java b/app/src/main/java/b/i/a/f/h/l/o9.java new file mode 100644 index 0000000000..b95f33027b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/o9.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o9 implements p9 { + public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.service.use_appinfo_modified", false); + + @Override // b.i.a.f.h.l.p9 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.p9 + public final boolean b() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/oa.java b/app/src/main/java/b/i/a/f/h/l/oa.java similarity index 88% rename from app/src/main/java/c/i/a/f/h/l/oa.java rename to app/src/main/java/b/i/a/f/h/l/oa.java index 2f2ed6c8a7..29659943e6 100644 --- a/app/src/main/java/c/i/a/f/h/l/oa.java +++ b/app/src/main/java/b/i/a/f/h/l/oa.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface oa { boolean a(); diff --git a/app/src/main/java/c/i/a/f/h/l/ob.java b/app/src/main/java/b/i/a/f/h/l/ob.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/ob.java rename to app/src/main/java/b/i/a/f/h/l/ob.java index 65d3ca9646..53e5da003c 100644 --- a/app/src/main/java/c/i/a/f/h/l/ob.java +++ b/app/src/main/java/b/i/a/f/h/l/ob.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ob implements z2 { public static ob j = new ob(); public final z2 k = f.H1(new b3(new qb())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ rb a() { return this.k.a(); } diff --git a/app/src/main/java/b/i/a/f/h/l/p.java b/app/src/main/java/b/i/a/f/h/l/p.java new file mode 100644 index 0000000000..942af9520c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class p extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public p(g gVar, String str) { + super(true); + this.o = gVar; + this.n = str; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.endAdUnitExposure(this.n, this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/p0.java b/app/src/main/java/b/i/a/f/h/l/p0.java new file mode 100644 index 0000000000..f4b2b1bcd9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p0.java @@ -0,0 +1,149 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import com.discord.widgets.chat.input.MentionUtilsKt; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class p0 extends u4 implements d6 { + private static final p0 zzh; + private static volatile j6 zzi; + private int zzc; + private int zzd; + private String zze = ""; + private boolean zzf; + private b5 zzg = m6.k; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a(q0 q0Var) { + super(p0.D()); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public enum b implements y4 { + UNKNOWN_MATCH_TYPE(0), + REGEXP(1), + BEGINS_WITH(2), + ENDS_WITH(3), + PARTIAL(4), + EXACT(5), + IN_LIST(6); + + private final int zzi; + + public b(int i) { + this.zzi = i; + } + + public static b f(int i) { + switch (i) { + case 0: + return UNKNOWN_MATCH_TYPE; + case 1: + return REGEXP; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return PARTIAL; + case 5: + return EXACT; + case 6: + return IN_LIST; + default: + return null; + } + } + + @Override // b.i.a.f.h.l.y4 + public final int a() { + return this.zzi; + } + + @Override // java.lang.Enum, java.lang.Object + public final String toString() { + return "<" + b.class.getName() + MentionUtilsKt.MENTIONS_CHAR + Integer.toHexString(System.identityHashCode(this)) + " number=" + this.zzi + " name=" + name() + '>'; + } + } + + static { + p0 p0Var = new p0(); + zzh = p0Var; + u4.r(p0.class, p0Var); + } + + public static p0 C() { + return zzh; + } + + public static /* synthetic */ p0 D() { + return zzh; + } + + public final List A() { + return this.zzg; + } + + public final int B() { + return this.zzg.size(); + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (q0.a[i - 1]) { + case 1: + return new p0(); + case 2: + return new a(null); + case 3: + return new o6(zzh, "\u0001\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0001\u0000\u0001ဌ\u0000\u0002ဈ\u0001\u0003ဇ\u0002\u0004\u001a", new Object[]{"zzc", "zzd", w0.a, "zze", "zzf", "zzg"}); + case 4: + return zzh; + case 5: + j6 j6Var = zzi; + if (j6Var == null) { + synchronized (p0.class) { + j6Var = zzi; + if (j6Var == null) { + j6Var = new u4.a<>(zzh); + zzi = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final boolean u() { + return (this.zzc & 1) != 0; + } + + public final b v() { + b f = b.f(this.zzd); + return f == null ? b.UNKNOWN_MATCH_TYPE : f; + } + + public final boolean w() { + return (this.zzc & 2) != 0; + } + + public final String x() { + return this.zze; + } + + public final boolean y() { + return (this.zzc & 4) != 0; + } + + public final boolean z() { + return this.zzf; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/p1.java b/app/src/main/java/b/i/a/f/h/l/p1.java new file mode 100644 index 0000000000..eba784e812 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p1.java @@ -0,0 +1,60 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class p1 extends u4 implements d6 { + private static final p1 zzf; + private static volatile j6 zzg; + private int zzc; + private b5 zzd = m6.k; + private n1 zze; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a(r1 r1Var) { + super(p1.u()); + } + } + + static { + p1 p1Var = new p1(); + zzf = p1Var; + u4.r(p1.class, p1Var); + } + + public static /* synthetic */ p1 u() { + return zzf; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (r1.a[i - 1]) { + case 1: + return new p1(); + case 2: + return new a(null); + case 3: + return new o6(zzf, "\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u001b\u0002ဉ\u0000", new Object[]{"zzc", "zzd", q1.class, "zze"}); + case 4: + return zzf; + case 5: + j6 j6Var = zzg; + if (j6Var == null) { + synchronized (p1.class) { + j6Var = zzg; + if (j6Var == null) { + j6Var = new u4.a<>(zzf); + zzg = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/p2.java b/app/src/main/java/b/i/a/f/h/l/p2.java new file mode 100644 index 0000000000..cbea476202 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p2.java @@ -0,0 +1,31 @@ +package b.i.a.f.h.l; + +import android.util.Log; +import b.d.b.a.a; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class p2 extends l2 { + public p2(q2 q2Var, String str, Boolean bool) { + super(q2Var, str, bool, true, null); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.l2 + public final /* synthetic */ Boolean a(Object obj) { + if (obj instanceof Boolean) { + return (Boolean) obj; + } + if (obj instanceof String) { + String str = (String) obj; + if (u1.c.matcher(str).matches()) { + return Boolean.TRUE; + } + if (u1.d.matcher(str).matches()) { + return Boolean.FALSE; + } + } + String c = c(); + String valueOf = String.valueOf(obj); + Log.e("PhenotypeFlag", a.k(valueOf.length() + a.b(c, 28), "Invalid boolean value for ", c, ": ", valueOf)); + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/p3.java b/app/src/main/java/b/i/a/f/h/l/p3.java new file mode 100644 index 0000000000..b65618e6f5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p3.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.c6; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class p3 implements j6 { + static { + h4.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/p4.java b/app/src/main/java/b/i/a/f/h/l/p4.java new file mode 100644 index 0000000000..ecb68f3dbe --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p4.java @@ -0,0 +1,19 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.p4; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface p4> extends Comparable { + b6 X(b6 b6Var, c6 c6Var); + + int a(); + + p7 b(); + + w7 c(); + + f6 c0(f6 f6Var, f6 f6Var2); + + boolean d(); + + boolean e(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/p5.java b/app/src/main/java/b/i/a/f/h/l/p5.java new file mode 100644 index 0000000000..45ccf50200 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p5.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.l; + +import java.nio.charset.Charset; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class p5 implements p6 { + public static final z5 a = new s5(); + + /* renamed from: b reason: collision with root package name */ + public final z5 f1463b; + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0025: APUT (r1v1 b.i.a.f.h.l.z5[]), (1 ??[boolean, int, float, short, byte, char]), (r2v2 b.i.a.f.h.l.z5) */ + public p5() { + z5 z5Var; + z5[] z5VarArr = new z5[2]; + z5VarArr[0] = v4.a; + try { + z5Var = (z5) Class.forName("com.google.protobuf.DescriptorMessageInfoFactory").getDeclaredMethod("getInstance", new Class[0]).invoke(null, new Object[0]); + } catch (Exception unused) { + z5Var = a; + } + z5VarArr[1] = z5Var; + r5 r5Var = new r5(z5VarArr); + Charset charset = w4.a; + this.f1463b = r5Var; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/p6.java b/app/src/main/java/b/i/a/f/h/l/p6.java new file mode 100644 index 0000000000..dcf32cd67b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p6.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface p6 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/p7.java b/app/src/main/java/b/i/a/f/h/l/p7.java new file mode 100644 index 0000000000..1882f8b2b2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p7.java @@ -0,0 +1,61 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +/* JADX WARN: Init of enum l can be incorrect */ +/* JADX WARN: Init of enum m can be incorrect */ +/* JADX WARN: Init of enum n can be incorrect */ +/* JADX WARN: Init of enum o can be incorrect */ +/* JADX WARN: Init of enum p can be incorrect */ +/* JADX WARN: Init of enum s can be incorrect */ +/* JADX WARN: Init of enum t can be incorrect */ +/* JADX WARN: Init of enum v can be incorrect */ +/* JADX WARN: Init of enum x can be incorrect */ +/* JADX WARN: Init of enum y can be incorrect */ +/* JADX WARN: Init of enum z can be incorrect */ +/* JADX WARN: Init of enum A can be incorrect */ +public enum p7 { + DOUBLE(w7.DOUBLE, 1), + FLOAT(w7.FLOAT, 5), + INT64(r5, 0), + UINT64(r5, 0), + INT32(r11, 0), + FIXED64(r5, 1), + FIXED32(r11, 5), + BOOL(w7.BOOLEAN, 0), + STRING { + }, + GROUP { + }, + MESSAGE { + }, + BYTES { + }, + UINT32(r11, 0), + ENUM(w7.ENUM, 0), + SFIXED32(r11, 5), + SFIXED64(r5, 1), + SINT32(r11, 0), + SINT64(r5, 0); + + private final w7 zzs; + private final int zzt; + + static { + w7 w7Var = w7.LONG; + w7 w7Var2 = w7.INT; + w7 w7Var3 = w7.MESSAGE; + } + + public p7(w7 w7Var, int i) { + this.zzs = w7Var; + this.zzt = i; + } + + public p7(w7 w7Var, int i, q7 q7Var) { + this.zzs = w7Var; + this.zzt = i; + } + + public final w7 f() { + return this.zzs; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/p8.java b/app/src/main/java/b/i/a/f/h/l/p8.java new file mode 100644 index 0000000000..3e60c99488 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p8.java @@ -0,0 +1,256 @@ +package b.i.a.f.h.l; + +import com.adjust.sdk.Constants; +import com.discord.api.permission.Permission; +import com.discord.stores.StoreGuildScheduledEvents; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class p8 implements m8 { + public static final l2 A; + public static final l2 B; + public static final l2 C; + public static final l2 D; + public static final l2 E; + public static final l2 F; + public static final l2 G; + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1468b; + public static final l2 c; + public static final l2 d; + public static final l2 e; + public static final l2 f; + public static final l2 g; + public static final l2 h; + public static final l2 i; + public static final l2 j; + public static final l2 k; + public static final l2 l; + public static final l2 m; + public static final l2 n; + public static final l2 o; + public static final l2 p; + public static final l2 q; + public static final l2 r; + + /* renamed from: s reason: collision with root package name */ + public static final l2 f1469s; + public static final l2 t; + public static final l2 u; + public static final l2 v; + public static final l2 w; + + /* renamed from: x reason: collision with root package name */ + public static final l2 f1470x; + + /* renamed from: y reason: collision with root package name */ + public static final l2 f1471y; + + /* renamed from: z reason: collision with root package name */ + public static final l2 f1472z; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.a("measurement.ad_id_cache_time", 10000); + f1468b = q2Var.a("measurement.config.cache_time", 86400000); + q2Var.b("measurement.log_tag", "FA"); + c = q2Var.b("measurement.config.url_authority", "app-measurement.com"); + d = q2Var.b("measurement.config.url_scheme", Constants.SCHEME); + e = q2Var.a("measurement.upload.debug_upload_interval", 1000); + f = q2Var.a("measurement.lifetimevalue.max_currency_tracked", 4); + g = q2Var.a("measurement.store.max_stored_events_per_app", 100000); + h = q2Var.a("measurement.experiment.max_ids", 50); + i = q2Var.a("measurement.audience.filter_result_max_count", 200); + j = q2Var.a("measurement.alarm_manager.minimum_interval", 60000); + k = q2Var.a("measurement.upload.minimum_delay", 500); + l = q2Var.a("measurement.monitoring.sample_period_millis", 86400000); + m = q2Var.a("measurement.upload.realtime_upload_interval", 10000); + n = q2Var.a("measurement.upload.refresh_blacklisted_config_interval", 604800000); + q2Var.a("measurement.config.cache_time.service", 3600000); + o = q2Var.a("measurement.service_client.idle_disconnect_millis", 5000); + q2Var.b("measurement.log_tag.service", "FA-SVC"); + p = q2Var.a("measurement.upload.stale_data_deletion_interval", 86400000); + q = q2Var.a("measurement.upload.backoff_period", 43200000); + r = q2Var.a("measurement.upload.initial_upload_delay_time", 15000); + f1469s = q2Var.a("measurement.upload.interval", 3600000); + t = q2Var.a("measurement.upload.max_bundle_size", Permission.READ_MESSAGE_HISTORY); + u = q2Var.a("measurement.upload.max_bundles", 100); + v = q2Var.a("measurement.upload.max_conversions_per_day", 500); + w = q2Var.a("measurement.upload.max_error_events_per_day", 1000); + f1470x = q2Var.a("measurement.upload.max_events_per_bundle", 1000); + f1471y = q2Var.a("measurement.upload.max_events_per_day", 100000); + f1472z = q2Var.a("measurement.upload.max_public_events_per_day", 50000); + A = q2Var.a("measurement.upload.max_queue_time", 2419200000L); + B = q2Var.a("measurement.upload.max_realtime_events_per_day", 10); + C = q2Var.a("measurement.upload.max_batch_size", Permission.READ_MESSAGE_HISTORY); + D = q2Var.a("measurement.upload.retry_count", 6); + E = q2Var.a("measurement.upload.retry_time", StoreGuildScheduledEvents.FETCH_GUILD_EVENTS_THRESHOLD); + F = q2Var.b("measurement.upload.url", "https://app-measurement.com/a"); + G = q2Var.a("measurement.upload.window_interval", 3600000); + } + + @Override // b.i.a.f.h.l.m8 + public final long A() { + return u.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long B() { + return v.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long C() { + return D.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long D() { + return j.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long E() { + return A.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long F() { + return f1469s.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long G() { + return k.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long H() { + return B.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long a() { + return a.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long b() { + return f1468b.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final String c() { + return c.d(); + } + + @Override // b.i.a.f.h.l.m8 + public final String d() { + return d.d(); + } + + @Override // b.i.a.f.h.l.m8 + public final long e() { + return e.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long f() { + return p.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long g() { + return q.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long h() { + return l.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long j() { + return m.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long k() { + return t.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long l() { + return f1471y.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long m() { + return h.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long n() { + return G.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long o() { + return f1472z.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long p() { + return i.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long q() { + return r.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long r() { + return n.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long s() { + return w.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long t() { + return f.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long u() { + return E.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long v() { + return o.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long w() { + return g.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final long x() { + return f1470x.d().longValue(); + } + + @Override // b.i.a.f.h.l.m8 + public final String y() { + return F.d(); + } + + @Override // b.i.a.f.h.l.m8 + public final long z() { + return C.d().longValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/p9.java b/app/src/main/java/b/i/a/f/h/l/p9.java new file mode 100644 index 0000000000..24a08fb847 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/p9.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface p9 { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/pa.java b/app/src/main/java/b/i/a/f/h/l/pa.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/pa.java rename to app/src/main/java/b/i/a/f/h/l/pa.java index ae49209ca6..09cb0ac9bf 100644 --- a/app/src/main/java/c/i/a/f/h/l/pa.java +++ b/app/src/main/java/b/i/a/f/h/l/pa.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class pa implements z2 { public static pa j = new pa(); public final z2 k = f.H1(new b3(new ra())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ oa a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/pb.java b/app/src/main/java/b/i/a/f/h/l/pb.java similarity index 86% rename from app/src/main/java/c/i/a/f/h/l/pb.java rename to app/src/main/java/b/i/a/f/h/l/pb.java index e8300669db..017847bef2 100644 --- a/app/src/main/java/c/i/a/f/h/l/pb.java +++ b/app/src/main/java/b/i/a/f/h/l/pb.java @@ -1,9 +1,9 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class pb implements mb { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.collection.synthetic_data_mitigation", false); - @Override // c.i.a.f.h.l.mb + @Override // b.i.a.f.h.l.mb public final boolean a() { return a.d().booleanValue(); } diff --git a/app/src/main/java/b/i/a/f/h/l/q.java b/app/src/main/java/b/i/a/f/h/l/q.java new file mode 100644 index 0000000000..74220190a2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class q extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public q(g gVar, String str) { + super(true); + this.o = gVar; + this.n = str; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.beginAdUnitExposure(this.n, this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/q0.java b/app/src/main/java/b/i/a/f/h/l/q0.java new file mode 100644 index 0000000000..4eee749af3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q0.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final /* synthetic */ class q0 { + public static final /* synthetic */ int[] a; + + static { + int[] iArr = new int[u4.e.a().length]; + a = iArr; + try { + iArr[3] = 1; + } catch (NoSuchFieldError unused) { + } + try { + a[4] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + a[2] = 3; + } catch (NoSuchFieldError unused3) { + } + try { + a[5] = 4; + } catch (NoSuchFieldError unused4) { + } + try { + a[6] = 5; + } catch (NoSuchFieldError unused5) { + } + try { + a[0] = 6; + } catch (NoSuchFieldError unused6) { + } + try { + a[1] = 7; + } catch (NoSuchFieldError unused7) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/q1.java b/app/src/main/java/b/i/a/f/h/l/q1.java new file mode 100644 index 0000000000..a88596605e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q1.java @@ -0,0 +1,91 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import com.discord.widgets.chat.input.MentionUtilsKt; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class q1 extends u4 implements d6 { + private static final q1 zzk; + private static volatile j6 zzl; + private int zzc; + private int zzd; + private String zze = ""; + private boolean zzf; + private long zzg; + private double zzh; + private b5 zzi = m6.k; + private String zzj = ""; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public enum a implements y4 { + UNKNOWN(0), + STRING(1), + NUMBER(2), + BOOLEAN(3), + STATEMENT(4); + + private final int zzg; + + public a(int i) { + this.zzg = i; + } + + @Override // b.i.a.f.h.l.y4 + public final int a() { + return this.zzg; + } + + @Override // java.lang.Enum, java.lang.Object + public final String toString() { + return "<" + a.class.getName() + MentionUtilsKt.MENTIONS_CHAR + Integer.toHexString(System.identityHashCode(this)) + " number=" + this.zzg + " name=" + name() + '>'; + } + } + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class b extends u4.b implements d6 { + public b(r1 r1Var) { + super(q1.u()); + } + } + + static { + q1 q1Var = new q1(); + zzk = q1Var; + u4.r(q1.class, q1Var); + } + + public static /* synthetic */ q1 u() { + return zzk; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (r1.a[i - 1]) { + case 1: + return new q1(); + case 2: + return new b(null); + case 3: + return new o6(zzk, "\u0001\u0007\u0000\u0001\u0001\u0007\u0007\u0000\u0001\u0000\u0001ဌ\u0000\u0002ဈ\u0001\u0003ဇ\u0002\u0004ဂ\u0003\u0005က\u0004\u0006\u001b\u0007ဈ\u0005", new Object[]{"zzc", "zzd", s1.a, "zze", "zzf", "zzg", "zzh", "zzi", q1.class, "zzj"}); + case 4: + return zzk; + case 5: + j6 j6Var = zzl; + if (j6Var == null) { + synchronized (q1.class) { + j6Var = zzl; + if (j6Var == null) { + j6Var = new u4.a<>(zzk); + zzl = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/q2.java b/app/src/main/java/b/i/a/f/h/l/q2.java new file mode 100644 index 0000000000..155efbfbc6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q2.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.l; + +import android.net.Uri; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class q2 { + public final Uri a; + + public q2(Uri uri) { + this.a = uri; + } + + public final l2 a(String str, long j) { + Object obj = l2.a; + return new m2(this, str, Long.valueOf(j)); + } + + public final l2 b(String str, String str2) { + Object obj = l2.a; + return new r2(this, str, str2); + } + + public final l2 c(String str, boolean z2) { + Object obj = l2.a; + return new p2(this, str, Boolean.valueOf(z2)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/q3.java b/app/src/main/java/b/i/a/f/h/l/q3.java new file mode 100644 index 0000000000..67d58c46b0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q3.java @@ -0,0 +1,28 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class q3 { + public static final Class a; + + /* renamed from: b reason: collision with root package name */ + public static final boolean f1473b; + + static { + Class cls; + Class cls2 = null; + try { + cls = Class.forName("libcore.io.Memory"); + } catch (Throwable unused) { + cls = null; + } + a = cls; + try { + cls2 = Class.forName("org.robolectric.Robolectric"); + } catch (Throwable unused2) { + } + f1473b = cls2 != null; + } + + public static boolean a() { + return a != null && !f1473b; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/q4.java b/app/src/main/java/b/i/a/f/h/l/q4.java new file mode 100644 index 0000000000..3afffb69f9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q4.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public enum q4 { + SCALAR(false), + VECTOR(true), + PACKED_VECTOR(true), + MAP(false); + + private final boolean zze; + + public q4(boolean z2) { + this.zze = z2; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/q5.java b/app/src/main/java/b/i/a/f/h/l/q5.java new file mode 100644 index 0000000000..9adcaf7b6d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q5.java @@ -0,0 +1,225 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.nio.charset.Charset; +import java.util.AbstractList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Objects; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class q5 extends o3 implements c5, l6, RandomAccess { + public static final q5 k; + public long[] l; + public int m; + + static { + q5 q5Var = new q5(new long[0], 0); + k = q5Var; + q5Var.j = false; + } + + public q5() { + this.l = new long[10]; + this.m = 0; + } + + public q5(long[] jArr, int i) { + this.l = jArr; + this.m = i; + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ void add(int i, Object obj) { + int i2; + long longValue = ((Long) obj).longValue(); + c(); + if (i < 0 || i > (i2 = this.m)) { + throw new IndexOutOfBoundsException(i(i)); + } + long[] jArr = this.l; + if (i2 < jArr.length) { + System.arraycopy(jArr, i, jArr, i + 1, i2 - i); + } else { + long[] jArr2 = new long[(((i2 * 3) / 2) + 1)]; + System.arraycopy(jArr, 0, jArr2, 0, i); + System.arraycopy(this.l, i, jArr2, i + 1, this.m - i); + this.l = jArr2; + } + this.l[i] = longValue; + this.m++; + ((AbstractList) this).modCount++; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public final /* synthetic */ boolean add(Object obj) { + d(((Long) obj).longValue()); + return true; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean addAll(Collection collection) { + c(); + Charset charset = w4.a; + Objects.requireNonNull(collection); + if (!(collection instanceof q5)) { + return super.addAll(collection); + } + q5 q5Var = (q5) collection; + int i = q5Var.m; + if (i == 0) { + return false; + } + int i2 = this.m; + if (Integer.MAX_VALUE - i2 >= i) { + int i3 = i2 + i; + long[] jArr = this.l; + if (i3 > jArr.length) { + this.l = Arrays.copyOf(jArr, i3); + } + System.arraycopy(q5Var.l, 0, this.l, this.m, q5Var.m); + this.m = i3; + ((AbstractList) this).modCount++; + return true; + } + throw new OutOfMemoryError(); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean contains(Object obj) { + return indexOf(obj) != -1; + } + + public final void d(long j) { + c(); + int i = this.m; + long[] jArr = this.l; + if (i == jArr.length) { + long[] jArr2 = new long[(((i * 3) / 2) + 1)]; + System.arraycopy(jArr, 0, jArr2, 0, i); + this.l = jArr2; + } + long[] jArr3 = this.l; + int i2 = this.m; + this.m = i2 + 1; + jArr3[i2] = j; + } + + public final long e(int i) { + h(i); + return this.l[i]; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof q5)) { + return super.equals(obj); + } + q5 q5Var = (q5) obj; + if (this.m != q5Var.m) { + return false; + } + long[] jArr = q5Var.l; + for (int i = 0; i < this.m; i++) { + if (this.l[i] != jArr[i]) { + return false; + } + } + return true; + } + + /* renamed from: g */ + public final c5 f(int i) { + if (i >= this.m) { + return new q5(Arrays.copyOf(this.l, i), this.m); + } + throw new IllegalArgumentException(); + } + + @Override // java.util.AbstractList, java.util.List + public final Object get(int i) { + h(i); + return Long.valueOf(this.l[i]); + } + + public final void h(int i) { + if (i < 0 || i >= this.m) { + throw new IndexOutOfBoundsException(i(i)); + } + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final int hashCode() { + int i = 1; + for (int i2 = 0; i2 < this.m; i2++) { + i = (i * 31) + w4.a(this.l[i2]); + } + return i; + } + + public final String i(int i) { + return a.g(35, "Index:", i, ", Size:", this.m); + } + + @Override // java.util.AbstractList, java.util.List + public final int indexOf(Object obj) { + if (!(obj instanceof Long)) { + return -1; + } + long longValue = ((Long) obj).longValue(); + int i = this.m; + for (int i2 = 0; i2 < i; i2++) { + if (this.l[i2] == longValue) { + return i2; + } + } + return -1; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List + public final /* synthetic */ Object remove(int i) { + c(); + h(i); + long[] jArr = this.l; + long j = jArr[i]; + int i2 = this.m; + if (i < i2 - 1) { + System.arraycopy(jArr, i + 1, jArr, i, (i2 - i) - 1); + } + this.m--; + ((AbstractList) this).modCount++; + return Long.valueOf(j); + } + + @Override // java.util.AbstractList + public final void removeRange(int i, int i2) { + c(); + if (i2 >= i) { + long[] jArr = this.l; + System.arraycopy(jArr, i2, jArr, i, this.m - i2); + this.m -= i2 - i; + ((AbstractList) this).modCount++; + return; + } + throw new IndexOutOfBoundsException("toIndex < fromIndex"); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object set(int i, Object obj) { + long longValue = ((Long) obj).longValue(); + c(); + h(i); + long[] jArr = this.l; + long j = jArr[i]; + jArr[i] = longValue; + return Long.valueOf(j); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final int size() { + return this.m; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/q6.java b/app/src/main/java/b/i/a/f/h/l/q6.java new file mode 100644 index 0000000000..ce52031978 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q6.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.l; + +import java.io.IOException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface q6 { + T a(); + + int b(T t); + + boolean c(T t); + + void d(T t); + + int e(T t); + + boolean f(T t, T t2); + + void g(T t, v7 v7Var) throws IOException; + + void h(T t, byte[] bArr, int i, int i2, s3 s3Var) throws IOException; + + void i(T t, T t2); +} diff --git a/app/src/main/java/b/i/a/f/h/l/q8.java b/app/src/main/java/b/i/a/f/h/l/q8.java new file mode 100644 index 0000000000..0ec58f4b55 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q8.java @@ -0,0 +1,30 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class q8 implements r8 { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1474b; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.service.configurable_service_limits", true); + f1474b = q2Var.c("measurement.client.configurable_service_limits", true); + q2Var.a("measurement.id.service.configurable_service_limits", 0); + } + + @Override // b.i.a.f.h.l.r8 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.r8 + public final boolean b() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.r8 + public final boolean c() { + return f1474b.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/q9.java b/app/src/main/java/b/i/a/f/h/l/q9.java new file mode 100644 index 0000000000..c81c6b087a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/q9.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface q9 { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/qa.java b/app/src/main/java/b/i/a/f/h/l/qa.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/qa.java rename to app/src/main/java/b/i/a/f/h/l/qa.java index 62aef54a8c..e9180ccec9 100644 --- a/app/src/main/java/c/i/a/f/h/l/qa.java +++ b/app/src/main/java/b/i/a/f/h/l/qa.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class qa implements z2 { public static qa j = new qa(); public final z2 k = f.H1(new b3(new sa())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ ta a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/qb.java b/app/src/main/java/b/i/a/f/h/l/qb.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/qb.java rename to app/src/main/java/b/i/a/f/h/l/qb.java index 9d8ad6bd79..4cb5f8b251 100644 --- a/app/src/main/java/c/i/a/f/h/l/qb.java +++ b/app/src/main/java/b/i/a/f/h/l/qb.java @@ -1,14 +1,14 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class qb implements rb { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.integration.disable_firebase_instance_id", false); - @Override // c.i.a.f.h.l.rb + @Override // b.i.a.f.h.l.rb public final boolean a() { return true; } - @Override // c.i.a.f.h.l.rb + @Override // b.i.a.f.h.l.rb public final boolean b() { return a.d().booleanValue(); } diff --git a/app/src/main/java/b/i/a/f/h/l/r.java b/app/src/main/java/b/i/a/f/h/l/r.java new file mode 100644 index 0000000000..9e99b42a52 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class r extends g.a { + public final /* synthetic */ cc n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public r(g gVar, cc ccVar) { + super(true); + this.o = gVar; + this.n = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.getCachedAppInstanceId(this.n); + } + + @Override // b.i.a.f.h.l.g.a + public final void b() { + this.n.f(null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/r0.java b/app/src/main/java/b/i/a/f/h/l/r0.java new file mode 100644 index 0000000000..c5cd8d9f4b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r0.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.n0; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class r0 implements a5 { + public static final a5 a = new r0(); + + @Override // b.i.a.f.h.l.a5 + public final boolean f(int i) { + return n0.a.f(i) != null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/r1.java b/app/src/main/java/b/i/a/f/h/l/r1.java new file mode 100644 index 0000000000..9598994204 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r1.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final /* synthetic */ class r1 { + public static final /* synthetic */ int[] a; + + static { + int[] iArr = new int[u4.e.a().length]; + a = iArr; + try { + iArr[3] = 1; + } catch (NoSuchFieldError unused) { + } + try { + a[4] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + a[2] = 3; + } catch (NoSuchFieldError unused3) { + } + try { + a[5] = 4; + } catch (NoSuchFieldError unused4) { + } + try { + a[6] = 5; + } catch (NoSuchFieldError unused5) { + } + try { + a[0] = 6; + } catch (NoSuchFieldError unused6) { + } + try { + a[1] = 7; + } catch (NoSuchFieldError unused7) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/r2.java b/app/src/main/java/b/i/a/f/h/l/r2.java new file mode 100644 index 0000000000..859d85cf70 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r2.java @@ -0,0 +1,16 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class r2 extends l2 { + public r2(q2 q2Var, String str, String str2) { + super(q2Var, str, str2, true, null); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.l2 + public final /* synthetic */ String a(Object obj) { + if (obj instanceof String) { + return (String) obj; + } + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/r3.java b/app/src/main/java/b/i/a/f/h/l/r3.java new file mode 100644 index 0000000000..d10aed0811 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r3.java @@ -0,0 +1,218 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.nio.charset.Charset; +import java.util.AbstractList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Objects; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class r3 extends o3 implements b5, l6, RandomAccess { + public boolean[] k; + public int l; + + static { + new r3(new boolean[0], 0).j = false; + } + + public r3() { + this.k = new boolean[10]; + this.l = 0; + } + + public r3(boolean[] zArr, int i) { + this.k = zArr; + this.l = i; + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ void add(int i, Object obj) { + int i2; + boolean booleanValue = ((Boolean) obj).booleanValue(); + c(); + if (i < 0 || i > (i2 = this.l)) { + throw new IndexOutOfBoundsException(g(i)); + } + boolean[] zArr = this.k; + if (i2 < zArr.length) { + System.arraycopy(zArr, i, zArr, i + 1, i2 - i); + } else { + boolean[] zArr2 = new boolean[(((i2 * 3) / 2) + 1)]; + System.arraycopy(zArr, 0, zArr2, 0, i); + System.arraycopy(this.k, i, zArr2, i + 1, this.l - i); + this.k = zArr2; + } + this.k[i] = booleanValue; + this.l++; + ((AbstractList) this).modCount++; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public final /* synthetic */ boolean add(Object obj) { + d(((Boolean) obj).booleanValue()); + return true; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean addAll(Collection collection) { + c(); + Charset charset = w4.a; + Objects.requireNonNull(collection); + if (!(collection instanceof r3)) { + return super.addAll(collection); + } + r3 r3Var = (r3) collection; + int i = r3Var.l; + if (i == 0) { + return false; + } + int i2 = this.l; + if (Integer.MAX_VALUE - i2 >= i) { + int i3 = i2 + i; + boolean[] zArr = this.k; + if (i3 > zArr.length) { + this.k = Arrays.copyOf(zArr, i3); + } + System.arraycopy(r3Var.k, 0, this.k, this.l, r3Var.l); + this.l = i3; + ((AbstractList) this).modCount++; + return true; + } + throw new OutOfMemoryError(); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean contains(Object obj) { + return indexOf(obj) != -1; + } + + public final void d(boolean z2) { + c(); + int i = this.l; + boolean[] zArr = this.k; + if (i == zArr.length) { + boolean[] zArr2 = new boolean[(((i * 3) / 2) + 1)]; + System.arraycopy(zArr, 0, zArr2, 0, i); + this.k = zArr2; + } + boolean[] zArr3 = this.k; + int i2 = this.l; + this.l = i2 + 1; + zArr3[i2] = z2; + } + + public final void e(int i) { + if (i < 0 || i >= this.l) { + throw new IndexOutOfBoundsException(g(i)); + } + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof r3)) { + return super.equals(obj); + } + r3 r3Var = (r3) obj; + if (this.l != r3Var.l) { + return false; + } + boolean[] zArr = r3Var.k; + for (int i = 0; i < this.l; i++) { + if (this.k[i] != zArr[i]) { + return false; + } + } + return true; + } + + /* Return type fixed from 'b.i.a.f.h.l.b5' to match base method */ + @Override // b.i.a.f.h.l.b5 + public final /* synthetic */ b5 f(int i) { + if (i >= this.l) { + return new r3(Arrays.copyOf(this.k, i), this.l); + } + throw new IllegalArgumentException(); + } + + public final String g(int i) { + return a.g(35, "Index:", i, ", Size:", this.l); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object get(int i) { + e(i); + return Boolean.valueOf(this.k[i]); + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final int hashCode() { + int i = 1; + for (int i2 = 0; i2 < this.l; i2++) { + i = (i * 31) + w4.b(this.k[i2]); + } + return i; + } + + @Override // java.util.AbstractList, java.util.List + public final int indexOf(Object obj) { + if (!(obj instanceof Boolean)) { + return -1; + } + boolean booleanValue = ((Boolean) obj).booleanValue(); + int i = this.l; + for (int i2 = 0; i2 < i; i2++) { + if (this.k[i2] == booleanValue) { + return i2; + } + } + return -1; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List + public final /* synthetic */ Object remove(int i) { + c(); + e(i); + boolean[] zArr = this.k; + boolean z2 = zArr[i]; + int i2 = this.l; + if (i < i2 - 1) { + System.arraycopy(zArr, i + 1, zArr, i, (i2 - i) - 1); + } + this.l--; + ((AbstractList) this).modCount++; + return Boolean.valueOf(z2); + } + + @Override // java.util.AbstractList + public final void removeRange(int i, int i2) { + c(); + if (i2 >= i) { + boolean[] zArr = this.k; + System.arraycopy(zArr, i2, zArr, i, this.l - i2); + this.l -= i2 - i; + ((AbstractList) this).modCount++; + return; + } + throw new IndexOutOfBoundsException("toIndex < fromIndex"); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object set(int i, Object obj) { + boolean booleanValue = ((Boolean) obj).booleanValue(); + c(); + e(i); + boolean[] zArr = this.k; + boolean z2 = zArr[i]; + zArr[i] = booleanValue; + return Boolean.valueOf(z2); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final int size() { + return this.l; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/r4.java b/app/src/main/java/b/i/a/f/h/l/r4.java new file mode 100644 index 0000000000..6c6414e38e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r4.java @@ -0,0 +1,41 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final /* synthetic */ class r4 { + public static final /* synthetic */ int[] a; + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ int[] f1475b; + + static { + e5.values(); + int[] iArr = new int[10]; + f1475b = iArr; + try { + iArr[e5.BYTE_STRING.ordinal()] = 1; + } catch (NoSuchFieldError unused) { + } + try { + f1475b[e5.MESSAGE.ordinal()] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + f1475b[e5.STRING.ordinal()] = 3; + } catch (NoSuchFieldError unused3) { + } + q4.values(); + int[] iArr2 = new int[4]; + a = iArr2; + try { + iArr2[3] = 1; + } catch (NoSuchFieldError unused4) { + } + try { + a[1] = 2; + } catch (NoSuchFieldError unused5) { + } + try { + a[0] = 3; + } catch (NoSuchFieldError unused6) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/r5.java b/app/src/main/java/b/i/a/f/h/l/r5.java new file mode 100644 index 0000000000..a1543fad46 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r5.java @@ -0,0 +1,31 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class r5 implements z5 { + public z5[] a; + + public r5(z5... z5VarArr) { + this.a = z5VarArr; + } + + @Override // b.i.a.f.h.l.z5 + public final boolean a(Class cls) { + for (z5 z5Var : this.a) { + if (z5Var.a(cls)) { + return true; + } + } + return false; + } + + @Override // b.i.a.f.h.l.z5 + public final a6 b(Class cls) { + z5[] z5VarArr = this.a; + for (z5 z5Var : z5VarArr) { + if (z5Var.a(cls)) { + return z5Var.b(cls); + } + } + String name = cls.getName(); + throw new UnsupportedOperationException(name.length() != 0 ? "No factory is available for message type: ".concat(name) : new String("No factory is available for message type: ")); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/r6.java b/app/src/main/java/b/i/a/f/h/l/r6.java new file mode 100644 index 0000000000..e2d7c871c3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r6.java @@ -0,0 +1,223 @@ +package b.i.a.f.h.l; + +import java.lang.Comparable; +import java.util.AbstractMap; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.SortedMap; +import java.util.TreeMap; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class r6, V> extends AbstractMap { + public static final /* synthetic */ int j = 0; + public final int k; + public List l = Collections.emptyList(); + public Map m = Collections.emptyMap(); + public boolean n; + public volatile a7 o; + public Map p = Collections.emptyMap(); + + public r6(int i, t6 t6Var) { + this.k = i; + } + + public final int a(K k) { + int size = this.l.size() - 1; + if (size >= 0) { + int compareTo = k.compareTo(this.l.get(size).j); + if (compareTo > 0) { + return -(size + 2); + } + if (compareTo == 0) { + return size; + } + } + int i = 0; + while (i <= size) { + int i2 = (i + size) / 2; + int compareTo2 = k.compareTo(this.l.get(i2).j); + if (compareTo2 < 0) { + size = i2 - 1; + } else if (compareTo2 <= 0) { + return i2; + } else { + i = i2 + 1; + } + } + return -(i + 1); + } + + /* renamed from: b */ + public final V put(K k, V v) { + h(); + int a = a(k); + if (a >= 0) { + y6 y6Var = this.l.get(a); + y6Var.l.h(); + V v2 = y6Var.k; + y6Var.k = v; + return v2; + } + h(); + if (this.l.isEmpty() && !(this.l instanceof ArrayList)) { + this.l = new ArrayList(this.k); + } + int i = -(a + 1); + if (i >= this.k) { + return i().put(k, v); + } + int size = this.l.size(); + int i2 = this.k; + if (size == i2) { + y6 remove = this.l.remove(i2 - 1); + i().put((K) remove.j, remove.k); + } + this.l.add(i, new y6(this, k, v)); + return null; + } + + public void c() { + if (!this.n) { + this.m = this.m.isEmpty() ? Collections.emptyMap() : Collections.unmodifiableMap(this.m); + this.p = this.p.isEmpty() ? Collections.emptyMap() : Collections.unmodifiableMap(this.p); + this.n = true; + } + } + + @Override // java.util.AbstractMap, java.util.Map + public void clear() { + h(); + if (!this.l.isEmpty()) { + this.l.clear(); + } + if (!this.m.isEmpty()) { + this.m.clear(); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: b.i.a.f.h.l.r6, V> */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // java.util.AbstractMap, java.util.Map + public boolean containsKey(Object obj) { + Comparable comparable = (Comparable) obj; + return a(comparable) >= 0 || this.m.containsKey(comparable); + } + + public final Map.Entry d(int i) { + return this.l.get(i); + } + + public final int e() { + return this.l.size(); + } + + @Override // java.util.AbstractMap, java.util.Map + public Set> entrySet() { + if (this.o == null) { + this.o = new a7(this, null); + } + return this.o; + } + + @Override // java.util.AbstractMap, java.util.Map, java.lang.Object + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof r6)) { + return super.equals(obj); + } + r6 r6Var = (r6) obj; + int size = size(); + if (size != r6Var.size()) { + return false; + } + int e = e(); + if (e != r6Var.e()) { + return entrySet().equals(r6Var.entrySet()); + } + for (int i = 0; i < e; i++) { + if (!d(i).equals(r6Var.d(i))) { + return false; + } + } + if (e != size) { + return this.m.equals(r6Var.m); + } + return true; + } + + public final V f(int i) { + h(); + V v = this.l.remove(i).k; + if (!this.m.isEmpty()) { + Iterator> it = i().entrySet().iterator(); + this.l.add(new y6(this, it.next())); + it.remove(); + } + return v; + } + + public final Iterable> g() { + return this.m.isEmpty() ? (Iterable>) u6.f1482b : this.m.entrySet(); + } + + /* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: b.i.a.f.h.l.r6, V> */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // java.util.AbstractMap, java.util.Map + public V get(Object obj) { + Comparable comparable = (Comparable) obj; + int a = a(comparable); + return a >= 0 ? this.l.get(a).k : this.m.get(comparable); + } + + public final void h() { + if (this.n) { + throw new UnsupportedOperationException(); + } + } + + @Override // java.util.AbstractMap, java.util.Map, java.lang.Object + public int hashCode() { + int e = e(); + int i = 0; + for (int i2 = 0; i2 < e; i2++) { + i += this.l.get(i2).hashCode(); + } + return this.m.size() > 0 ? i + this.m.hashCode() : i; + } + + public final SortedMap i() { + h(); + if (this.m.isEmpty() && !(this.m instanceof TreeMap)) { + TreeMap treeMap = new TreeMap(); + this.m = treeMap; + this.p = treeMap.descendingMap(); + } + return (SortedMap) this.m; + } + + /* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: b.i.a.f.h.l.r6, V> */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // java.util.AbstractMap, java.util.Map + public V remove(Object obj) { + h(); + Comparable comparable = (Comparable) obj; + int a = a(comparable); + if (a >= 0) { + return (V) f(a); + } + if (this.m.isEmpty()) { + return null; + } + return this.m.remove(comparable); + } + + @Override // java.util.AbstractMap, java.util.Map + public int size() { + return this.m.size() + this.l.size(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/r8.java b/app/src/main/java/b/i/a/f/h/l/r8.java new file mode 100644 index 0000000000..08a8e1069b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r8.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface r8 { + boolean a(); + + boolean b(); + + boolean c(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/r9.java b/app/src/main/java/b/i/a/f/h/l/r9.java new file mode 100644 index 0000000000..8ed7ff85d4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/r9.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class r9 implements z2 { + public static r9 j = new r9(); + public final z2 k = f.H1(new b3(new t9())); + + public static boolean b() { + return ((q9) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ q9 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/ra.java b/app/src/main/java/b/i/a/f/h/l/ra.java new file mode 100644 index 0000000000..f8129524fb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ra.java @@ -0,0 +1,29 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class ra implements oa { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1476b; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.sdk.screen.manual_screen_view_logging", true); + f1476b = q2Var.c("measurement.sdk.screen.disabling_automatic_reporting", true); + } + + @Override // b.i.a.f.h.l.oa + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.oa + public final boolean b() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.oa + public final boolean c() { + return f1476b.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/rb.java b/app/src/main/java/b/i/a/f/h/l/rb.java similarity index 87% rename from app/src/main/java/c/i/a/f/h/l/rb.java rename to app/src/main/java/b/i/a/f/h/l/rb.java index a9ab4ac9ad..2c6523aca0 100644 --- a/app/src/main/java/c/i/a/f/h/l/rb.java +++ b/app/src/main/java/b/i/a/f/h/l/rb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface rb { boolean a(); diff --git a/app/src/main/java/b/i/a/f/h/l/s.java b/app/src/main/java/b/i/a/f/h/l/s.java new file mode 100644 index 0000000000..c411eed0f8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class s extends g.a { + public final /* synthetic */ cc n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public s(g gVar, cc ccVar) { + super(true); + this.o = gVar; + this.n = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.getGmpAppId(this.n); + } + + @Override // b.i.a.f.h.l.g.a + public final void b() { + this.n.f(null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/s0.java b/app/src/main/java/b/i/a/f/h/l/s0.java new file mode 100644 index 0000000000..20c0b8124d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s0.java @@ -0,0 +1,37 @@ +package b.i.a.f.h.l; + +import android.os.Binder; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class s0 extends Binder implements IInterface { + public s0(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + public boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + throw null; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + return e(i, parcel, parcel2, i2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/s1.java b/app/src/main/java/b/i/a/f/h/l/s1.java new file mode 100644 index 0000000000..9cdc00f006 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s1.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.q1; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class s1 implements a5 { + public static final a5 a = new s1(); + + @Override // b.i.a.f.h.l.a5 + public final boolean f(int i) { + return (i != 0 ? i != 1 ? i != 2 ? i != 3 ? i != 4 ? null : q1.a.STATEMENT : q1.a.BOOLEAN : q1.a.NUMBER : q1.a.STRING : q1.a.UNKNOWN) != null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/s2.java b/app/src/main/java/b/i/a/f/h/l/s2.java new file mode 100644 index 0000000000..c29b25cc67 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s2.java @@ -0,0 +1,75 @@ +package b.i.a.f.h.l; + +import android.content.Context; +import android.content.SharedPreferences; +import android.os.StrictMode; +import androidx.annotation.GuardedBy; +import androidx.collection.ArrayMap; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class s2 implements b2 { + @GuardedBy("SharedPreferencesLoader.class") + public static final Map a = new ArrayMap(); + + /* renamed from: b reason: collision with root package name */ + public final SharedPreferences f1477b; + public final SharedPreferences.OnSharedPreferenceChangeListener c; + public final Object d; + public volatile Map e; + + public static s2 a(Context context) { + s2 s2Var; + if (!w1.a()) { + synchronized (s2.class) { + s2Var = a.get(null); + if (s2Var == null) { + StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads(); + try { + throw null; + } catch (Throwable th) { + StrictMode.setThreadPolicy(allowThreadDiskReads); + throw th; + } + } + } + return s2Var; + } + throw null; + } + + public static synchronized void b() { + synchronized (s2.class) { + for (s2 s2Var : a.values()) { + s2Var.f1477b.unregisterOnSharedPreferenceChangeListener(s2Var.c); + } + a.clear(); + } + } + + /* JADX INFO: finally extract failed */ + @Override // b.i.a.f.h.l.b2 + public final Object g(String str) { + Map map = this.e; + if (map == null) { + synchronized (this.d) { + map = this.e; + if (map == null) { + StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads(); + try { + Map all = this.f1477b.getAll(); + this.e = all; + StrictMode.setThreadPolicy(allowThreadDiskReads); + map = all; + } catch (Throwable th) { + StrictMode.setThreadPolicy(allowThreadDiskReads); + throw th; + } + } + } + } + if (map != null) { + return map.get(str); + } + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/s3.java b/app/src/main/java/b/i/a/f/h/l/s3.java new file mode 100644 index 0000000000..ece0258b96 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s3.java @@ -0,0 +1,17 @@ +package b.i.a.f.h.l; + +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class s3 { + public int a; + + /* renamed from: b reason: collision with root package name */ + public long f1478b; + public Object c; + public final h4 d; + + public s3(h4 h4Var) { + Objects.requireNonNull(h4Var); + this.d = h4Var; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/s4.java b/app/src/main/java/b/i/a/f/h/l/s4.java new file mode 100644 index 0000000000..9fe74b3f76 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s4.java @@ -0,0 +1,74 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.h4; +import com.google.android.gms.internal.measurement.zzhi; +import java.lang.reflect.InvocationTargetException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.ServiceConfigurationError; +import java.util.ServiceLoader; +import java.util.logging.Level; +import java.util.logging.Logger; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class s4 { + public static final Logger a = Logger.getLogger(zzhi.class.getName()); + + /* renamed from: b reason: collision with root package name */ + public static String f1479b = "com.google.protobuf.BlazeGeneratedExtensionRegistryLiteLoader"; + + public static T b(Class cls) { + String str; + ClassLoader classLoader = s4.class.getClassLoader(); + if (cls.equals(h4.class)) { + str = f1479b; + } else if (cls.getPackage().equals(s4.class.getPackage())) { + str = String.format("%s.BlazeGenerated%sLoader", cls.getPackage().getName(), cls.getSimpleName()); + } else { + throw new IllegalArgumentException(cls.getName()); + } + try { + try { + return cls.cast(((s4) Class.forName(str, true, classLoader).getConstructor(new Class[0]).newInstance(new Object[0])).a()); + } catch (NoSuchMethodException e) { + throw new IllegalStateException(e); + } catch (InstantiationException e2) { + throw new IllegalStateException(e2); + } catch (IllegalAccessException e3) { + throw new IllegalStateException(e3); + } catch (InvocationTargetException e4) { + throw new IllegalStateException(e4); + } + } catch (ClassNotFoundException unused) { + Iterator it = ServiceLoader.load(s4.class, classLoader).iterator(); + ArrayList arrayList = new ArrayList(); + while (it.hasNext()) { + try { + arrayList.add(cls.cast(((s4) it.next()).a())); + } catch (ServiceConfigurationError e5) { + Logger logger = a; + Level level = Level.SEVERE; + String simpleName = cls.getSimpleName(); + logger.logp(level, "com.google.protobuf.GeneratedExtensionRegistryLoader", "load", simpleName.length() != 0 ? "Unable to load ".concat(simpleName) : new String("Unable to load "), (Throwable) e5); + } + } + if (arrayList.size() == 1) { + return (T) ((h4) arrayList.get(0)); + } + if (arrayList.size() == 0) { + return null; + } + try { + return (T) ((h4) cls.getMethod("combine", Collection.class).invoke(null, arrayList)); + } catch (NoSuchMethodException e6) { + throw new IllegalStateException(e6); + } catch (IllegalAccessException e7) { + throw new IllegalStateException(e7); + } catch (InvocationTargetException e8) { + throw new IllegalStateException(e8); + } + } + } + + public abstract T a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/s5.java b/app/src/main/java/b/i/a/f/h/l/s5.java new file mode 100644 index 0000000000..94731e6c00 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s5.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class s5 implements z5 { + @Override // b.i.a.f.h.l.z5 + public final boolean a(Class cls) { + return false; + } + + @Override // b.i.a.f.h.l.z5 + public final a6 b(Class cls) { + throw new IllegalStateException("This should never be called."); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/s6.java b/app/src/main/java/b/i/a/f/h/l/s6.java new file mode 100644 index 0000000000..b440ec01be --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s6.java @@ -0,0 +1,822 @@ +package b.i.a.f.h.l; + +import com.google.android.gms.internal.measurement.zzhi; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.logging.Logger; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class s6 { + public static final Class a; + + /* renamed from: b reason: collision with root package name */ + public static final d7 f1480b = e(false); + public static final d7 c = e(true); + public static final d7 d = new f7(); + + static { + Class cls; + try { + cls = Class.forName("com.google.protobuf.GeneratedMessage"); + } catch (Throwable unused) { + cls = null; + } + a = cls; + } + + public static void A(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + i3 += zzhi.K(list.get(i4).longValue()); + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.m(zzhi.R(list.get(i2).longValue())); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.g(i, zzhi.R(list.get(i2).longValue())); + i2++; + } + } + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List;Z)I */ + public static int B(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + return (zzhi.D(i) * size) + C(list); + } + + public static int C(List list) { + int i; + int size = list.size(); + int i2 = 0; + if (size == 0) { + return 0; + } + if (list instanceof x4) { + x4 x4Var = (x4) list; + i = 0; + while (i2 < size) { + i += zzhi.L(x4Var.e(i2)); + i2++; + } + } else { + i = 0; + while (i2 < size) { + i += zzhi.L(list.get(i2).intValue()); + i2++; + } + } + return i; + } + + public static void D(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + list.get(i4).longValue(); + Logger logger = zzhi.a; + i3 += 8; + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.A(list.get(i2).longValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.z(i, list.get(i2).longValue()); + i2++; + } + } + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List;Z)I */ + public static int E(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + return (zzhi.D(i) * size) + F(list); + } + + public static int F(List list) { + int i; + int size = list.size(); + int i2 = 0; + if (size == 0) { + return 0; + } + if (list instanceof x4) { + x4 x4Var = (x4) list; + i = 0; + while (i2 < size) { + i += zzhi.O(x4Var.e(i2)); + i2++; + } + } else { + i = 0; + while (i2 < size) { + i += zzhi.O(list.get(i2).intValue()); + i2++; + } + } + return i; + } + + public static void G(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + list.get(i4).longValue(); + Logger logger = zzhi.a; + i3 += 8; + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.A(list.get(i2).longValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.z(i, list.get(i2).longValue()); + i2++; + } + } + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List<*>;Z)I */ + public static int H(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + return zzhi.S(i) * size; + } + + public static int I(List list) { + return list.size() << 2; + } + + public static void J(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + i3 += zzhi.H(list.get(i4).intValue()); + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.e(list.get(i2).intValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.s(i, list.get(i2).intValue()); + i2++; + } + } + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List<*>;Z)I */ + public static int K(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + return zzhi.N(i) * size; + } + + public static int L(List list) { + return list.size() << 3; + } + + public static void M(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + i3 += zzhi.L(list.get(i4).intValue()); + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.r(list.get(i2).intValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.y(i, list.get(i2).intValue()); + i2++; + } + } + } + + public static void N(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + i3 += zzhi.O(list.get(i4).intValue()); + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.r(zzhi.V(list.get(i2).intValue())); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.y(i, zzhi.V(list.get(i2).intValue())); + i2++; + } + } + } + + public static void O(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + list.get(i4).intValue(); + Logger logger = zzhi.a; + i3 += 4; + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.C(list.get(i2).intValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.G(i, list.get(i2).intValue()); + i2++; + } + } + } + + public static void P(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + list.get(i4).intValue(); + Logger logger = zzhi.a; + i3 += 4; + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.C(list.get(i2).intValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.G(i, list.get(i2).intValue()); + i2++; + } + } + } + + public static void Q(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + i3 += zzhi.H(list.get(i4).intValue()); + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.e(list.get(i2).intValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.s(i, list.get(i2).intValue()); + i2++; + } + } + } + + public static void R(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + list.get(i4).booleanValue(); + Logger logger = zzhi.a; + i3++; + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.d(list.get(i2).booleanValue() ? (byte) 1 : 0); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.l(i, list.get(i2).booleanValue()); + i2++; + } + } + } + + public static int a(int i, Object obj, q6 q6Var) { + if (obj instanceof h5) { + int L = zzhi.L(i << 3); + int a2 = ((h5) obj).a(); + return zzhi.L(a2) + a2 + L; + } + return zzhi.c((c6) obj, q6Var) + zzhi.L(i << 3); + } + + public static int b(int i, List list) { + int size = list.size(); + int i2 = 0; + if (size == 0) { + return 0; + } + int D = zzhi.D(i) * size; + if (list instanceof j5) { + j5 j5Var = (j5) list; + while (i2 < size) { + Object A = j5Var.A(i2); + D = (A instanceof t3 ? zzhi.p((t3) A) : zzhi.q((String) A)) + D; + i2++; + } + } else { + while (i2 < size) { + Object obj = list.get(i2); + D = (obj instanceof t3 ? zzhi.p((t3) obj) : zzhi.q((String) obj)) + D; + i2++; + } + } + return D; + } + + public static int c(int i, List list, q6 q6Var) { + int size = list.size(); + if (size == 0) { + return 0; + } + int D = zzhi.D(i) * size; + for (int i2 = 0; i2 < size; i2++) { + Object obj = list.get(i2); + D += obj instanceof h5 ? zzhi.b((h5) obj) : zzhi.c((c6) obj, q6Var); + } + return D; + } + + public static int d(List list) { + int i; + int size = list.size(); + int i2 = 0; + if (size == 0) { + return 0; + } + if (list instanceof q5) { + q5 q5Var = (q5) list; + i = 0; + while (i2 < size) { + i += zzhi.F(q5Var.e(i2)); + i2++; + } + } else { + i = 0; + while (i2 < size) { + i += zzhi.F(list.get(i2).longValue()); + i2++; + } + } + return i; + } + + public static d7 e(boolean z2) { + Class cls; + try { + cls = Class.forName("com.google.protobuf.UnknownFieldSetSchema"); + } catch (Throwable unused) { + cls = null; + } + if (cls == null) { + return null; + } + try { + return (d7) cls.getConstructor(Boolean.TYPE).newInstance(Boolean.valueOf(z2)); + } catch (Throwable unused2) { + return null; + } + } + + public static void f(int i, List list, v7 v7Var) throws IOException { + if (list != null && !list.isEmpty()) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (list instanceof j5) { + j5 j5Var = (j5) list; + while (i2 < list.size()) { + Object A = j5Var.A(i2); + if (A instanceof String) { + g4Var.a.k(i, (String) A); + } else { + g4Var.a.h(i, (t3) A); + } + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.k(i, list.get(i2)); + i2++; + } + } + } + + public static void g(int i, List list, v7 v7Var, q6 q6Var) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + for (int i2 = 0; i2 < list.size(); i2++) { + g4Var.a.j(i, (c6) list.get(i2), q6Var); + } + } + } + + public static void h(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + list.get(i4).doubleValue(); + Logger logger = zzhi.a; + i3 += 8; + } + g4Var.a.r(i3); + while (i2 < list.size()) { + zzhi zzhi = g4Var.a; + double doubleValue = list.get(i2).doubleValue(); + Objects.requireNonNull(zzhi); + zzhi.A(Double.doubleToRawLongBits(doubleValue)); + i2++; + } + return; + } + while (i2 < list.size()) { + zzhi zzhi2 = g4Var.a; + double doubleValue2 = list.get(i2).doubleValue(); + Objects.requireNonNull(zzhi2); + zzhi2.z(i, Double.doubleToRawLongBits(doubleValue2)); + i2++; + } + } + } + + public static > void i(j4 j4Var, T t, T t2) { + n4 b2 = j4Var.b(t2); + if (!b2.f1446b.isEmpty()) { + n4 f = j4Var.f(t); + Objects.requireNonNull(f); + for (int i = 0; i < b2.f1446b.e(); i++) { + f.j(b2.f1446b.d(i)); + } + for (Map.Entry entry : b2.f1446b.g()) { + f.j(entry); + } + } + } + + public static boolean j(Object obj, Object obj2) { + if (obj != obj2) { + return obj != null && obj.equals(obj2); + } + return true; + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List;Z)I */ + public static int k(int i, List list) { + if (list.size() == 0) { + return 0; + } + return (zzhi.D(i) * list.size()) + d(list); + } + + public static int l(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + int D = zzhi.D(i) * size; + for (int i2 = 0; i2 < list.size(); i2++) { + D += zzhi.p(list.get(i2)); + } + return D; + } + + public static int m(int i, List list, q6 q6Var) { + int size = list.size(); + if (size == 0) { + return 0; + } + int i2 = 0; + for (int i3 = 0; i3 < size; i3++) { + i2 += zzhi.x(i, list.get(i3), q6Var); + } + return i2; + } + + public static int n(List list) { + int i; + int size = list.size(); + int i2 = 0; + if (size == 0) { + return 0; + } + if (list instanceof q5) { + q5 q5Var = (q5) list; + i = 0; + while (i2 < size) { + i += zzhi.F(q5Var.e(i2)); + i2++; + } + } else { + i = 0; + while (i2 < size) { + i += zzhi.F(list.get(i2).longValue()); + i2++; + } + } + return i; + } + + public static void o(int i, List list, v7 v7Var) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + for (int i2 = 0; i2 < list.size(); i2++) { + g4Var.a.h(i, list.get(i2)); + } + } + } + + public static void p(int i, List list, v7 v7Var, q6 q6Var) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + for (int i2 = 0; i2 < list.size(); i2++) { + g4Var.e(i, list.get(i2), q6Var); + } + } + } + + public static void q(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + list.get(i4).floatValue(); + Logger logger = zzhi.a; + i3 += 4; + } + g4Var.a.r(i3); + while (i2 < list.size()) { + zzhi zzhi = g4Var.a; + float floatValue = list.get(i2).floatValue(); + Objects.requireNonNull(zzhi); + zzhi.C(Float.floatToRawIntBits(floatValue)); + i2++; + } + return; + } + while (i2 < list.size()) { + zzhi zzhi2 = g4Var.a; + float floatValue2 = list.get(i2).floatValue(); + Objects.requireNonNull(zzhi2); + zzhi2.G(i, Float.floatToRawIntBits(floatValue2)); + i2++; + } + } + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List;Z)I */ + public static int r(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + return (zzhi.D(i) * size) + n(list); + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List;Z)I */ + public static int s(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + return (zzhi.D(i) * size) + t(list); + } + + public static int t(List list) { + int i; + int size = list.size(); + int i2 = 0; + if (size == 0) { + return 0; + } + if (list instanceof q5) { + q5 q5Var = (q5) list; + i = 0; + while (i2 < size) { + i += zzhi.K(q5Var.e(i2)); + i2++; + } + } else { + i = 0; + while (i2 < size) { + i += zzhi.K(list.get(i2).longValue()); + i2++; + } + } + return i; + } + + public static void u(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + i3 += zzhi.F(list.get(i4).longValue()); + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.m(list.get(i2).longValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.g(i, list.get(i2).longValue()); + i2++; + } + } + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List;Z)I */ + public static int v(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + return (zzhi.D(i) * size) + w(list); + } + + public static int w(List list) { + int i; + int size = list.size(); + int i2 = 0; + if (size == 0) { + return 0; + } + if (list instanceof x4) { + x4 x4Var = (x4) list; + i = 0; + while (i2 < size) { + i += zzhi.H(x4Var.e(i2)); + i2++; + } + } else { + i = 0; + while (i2 < size) { + i += zzhi.H(list.get(i2).intValue()); + i2++; + } + } + return i; + } + + public static void x(int i, List list, v7 v7Var, boolean z2) throws IOException { + if (!(list == null || list.isEmpty())) { + g4 g4Var = (g4) v7Var; + Objects.requireNonNull(g4Var); + int i2 = 0; + if (z2) { + g4Var.a.f(i, 2); + int i3 = 0; + for (int i4 = 0; i4 < list.size(); i4++) { + i3 += zzhi.F(list.get(i4).longValue()); + } + g4Var.a.r(i3); + while (i2 < list.size()) { + g4Var.a.m(list.get(i2).longValue()); + i2++; + } + return; + } + while (i2 < list.size()) { + g4Var.a.g(i, list.get(i2).longValue()); + i2++; + } + } + } + + /* JADX WARN: Incorrect args count in method signature: (ILjava/util/List;Z)I */ + public static int y(int i, List list) { + int size = list.size(); + if (size == 0) { + return 0; + } + return (zzhi.D(i) * size) + z(list); + } + + public static int z(List list) { + int i; + int size = list.size(); + int i2 = 0; + if (size == 0) { + return 0; + } + if (list instanceof x4) { + x4 x4Var = (x4) list; + i = 0; + while (i2 < size) { + i += zzhi.H(x4Var.e(i2)); + i2++; + } + } else { + i = 0; + while (i2 < size) { + i += zzhi.H(list.get(i2).intValue()); + i2++; + } + } + return i; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/s8.java b/app/src/main/java/b/i/a/f/h/l/s8.java new file mode 100644 index 0000000000..c052281f87 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s8.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface s8 { + boolean a(); + + boolean b(); + + boolean c(); + + boolean d(); + + long e(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/s9.java b/app/src/main/java/b/i/a/f/h/l/s9.java new file mode 100644 index 0000000000..834d395e0a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/s9.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class s9 implements z2 { + public static s9 j = new s9(); + public final z2 k = f.H1(new b3(new u9())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ v9 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/sa.java b/app/src/main/java/b/i/a/f/h/l/sa.java similarity index 89% rename from app/src/main/java/c/i/a/f/h/l/sa.java rename to app/src/main/java/b/i/a/f/h/l/sa.java index 0bdc8c7f06..f52f5701d5 100644 --- a/app/src/main/java/c/i/a/f/h/l/sa.java +++ b/app/src/main/java/b/i/a/f/h/l/sa.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class sa implements ta { public static final l2 a; @@ -9,7 +9,7 @@ public final class sa implements ta { a = q2Var.a("measurement.max_bundles_per_iteration", 2); } - @Override // c.i.a.f.h.l.ta + @Override // b.i.a.f.h.l.ta public final long a() { return a.d().longValue(); } diff --git a/app/src/main/java/c/i/a/f/h/l/sb.java b/app/src/main/java/b/i/a/f/h/l/sb.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/sb.java rename to app/src/main/java/b/i/a/f/h/l/sb.java index 5ac7f592ec..f482a41f10 100644 --- a/app/src/main/java/c/i/a/f/h/l/sb.java +++ b/app/src/main/java/b/i/a/f/h/l/sb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface sb { boolean a(); diff --git a/app/src/main/java/b/i/a/f/h/l/t.java b/app/src/main/java/b/i/a/f/h/l/t.java new file mode 100644 index 0000000000..7c8f0cf410 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class t extends g.a { + public final /* synthetic */ cc n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public t(g gVar, cc ccVar) { + super(true); + this.o = gVar; + this.n = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.getCurrentScreenName(this.n); + } + + @Override // b.i.a.f.h.l.g.a + public final void b() { + this.n.f(null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/t0.java b/app/src/main/java/b/i/a/f/h/l/t0.java new file mode 100644 index 0000000000..c781b9ba59 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t0.java @@ -0,0 +1,102 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class t0 extends u4 implements d6 { + private static final t0 zzh; + private static volatile j6 zzi; + private int zzc; + private String zzd = ""; + private boolean zze; + private boolean zzf; + private int zzg; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(t0.A()); + } + + public a(x0 x0Var) { + super(t0.A()); + } + + public final String q() { + return ((t0) this.k).u(); + } + + public final int r() { + return ((t0) this.k).z(); + } + } + + static { + t0 t0Var = new t0(); + zzh = t0Var; + u4.r(t0.class, t0Var); + } + + public static /* synthetic */ t0 A() { + return zzh; + } + + public static void v(t0 t0Var, String str) { + Objects.requireNonNull(t0Var); + str.getClass(); + t0Var.zzc |= 1; + t0Var.zzd = str; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (x0.a[i - 1]) { + case 1: + return new t0(); + case 2: + return new a(null); + case 3: + return new o6(zzh, "\u0001\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001ဈ\u0000\u0002ဇ\u0001\u0003ဇ\u0002\u0004င\u0003", new Object[]{"zzc", "zzd", "zze", "zzf", "zzg"}); + case 4: + return zzh; + case 5: + j6 j6Var = zzi; + if (j6Var == null) { + synchronized (t0.class) { + j6Var = zzi; + if (j6Var == null) { + j6Var = new u4.a<>(zzh); + zzi = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final String u() { + return this.zzd; + } + + public final boolean w() { + return this.zze; + } + + public final boolean x() { + return this.zzf; + } + + public final boolean y() { + return (this.zzc & 8) != 0; + } + + public final int z() { + return this.zzg; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/t1.java b/app/src/main/java/b/i/a/f/h/l/t1.java new file mode 100644 index 0000000000..1ec740af14 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t1.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import android.database.ContentObserver; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class t1 extends ContentObserver { + public t1() { + super(null); + } + + @Override // android.database.ContentObserver + public final void onChange(boolean z2) { + u1.e.set(true); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/t2.java b/app/src/main/java/b/i/a/f/h/l/t2.java new file mode 100644 index 0000000000..072969983a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t2.java @@ -0,0 +1,9 @@ +package b.i.a.f.h.l; + +import android.content.Context; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public abstract class t2 { + public abstract Context a(); + + public abstract z2> b(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/t3.java b/app/src/main/java/b/i/a/f/h/l/t3.java new file mode 100644 index 0000000000..dfa8e6a8e0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t3.java @@ -0,0 +1,92 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import java.io.IOException; +import java.io.Serializable; +import java.nio.charset.Charset; +import java.util.Iterator; +import java.util.Locale; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class t3 implements Serializable, Iterable { + public static final t3 j = new z3(w4.f1485b); + public static final x3 k = (q3.a() ? new c4(null) : new w3(null)); + private int zzc = 0; + + public static t3 h(byte[] bArr, int i, int i2) { + l(i, i + i2, bArr.length); + return new z3(k.a(bArr, i, i2)); + } + + public static int l(int i, int i2, int i3) { + int i4 = i2 - i; + if ((i | i2 | i4 | (i3 - i2)) >= 0) { + return i4; + } + if (i < 0) { + StringBuilder sb = new StringBuilder(32); + sb.append("Beginning index: "); + sb.append(i); + sb.append(" < 0"); + throw new IndexOutOfBoundsException(sb.toString()); + } else if (i2 < i) { + throw new IndexOutOfBoundsException(a.g(66, "Beginning index larger than ending index: ", i, ", ", i2)); + } else { + throw new IndexOutOfBoundsException(a.g(37, "End index: ", i2, " >= ", i3)); + } + } + + public abstract byte c(int i); + + public abstract int d(); + + public abstract int e(int i, int i2, int i3); + + @Override // java.lang.Object + public abstract boolean equals(Object obj); + + public abstract t3 g(int i, int i2); + + @Override // java.lang.Object + public final int hashCode() { + int i = this.zzc; + if (i == 0) { + int d = d(); + i = e(d, 0, d); + if (i == 0) { + i = 1; + } + this.zzc = i; + } + return i; + } + + public abstract String i(Charset charset); + + /* Return type fixed from 'java.util.Iterator' to match base method */ + @Override // java.lang.Iterable + public /* synthetic */ Iterator iterator() { + return new v3(this); + } + + public abstract void j(u3 u3Var) throws IOException; + + public abstract byte k(int i); + + public abstract boolean m(); + + public final int n() { + return this.zzc; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x003d: APUT (r1v1 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r2v5 java.lang.String) */ + @Override // java.lang.Object + public final String toString() { + Locale locale = Locale.ROOT; + Object[] objArr = new Object[3]; + objArr[0] = Integer.toHexString(System.identityHashCode(this)); + objArr[1] = Integer.valueOf(d()); + objArr[2] = d() <= 50 ? f.N1(this) : String.valueOf(f.N1(g(0, 47))).concat("..."); + return String.format(locale, "", objArr); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/t4.java b/app/src/main/java/b/i/a/f/h/l/t4.java new file mode 100644 index 0000000000..a8dfe276d6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t4.java @@ -0,0 +1,218 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.nio.charset.Charset; +import java.util.AbstractList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Objects; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class t4 extends o3 implements b5, l6, RandomAccess { + public float[] k; + public int l; + + static { + new t4(new float[0], 0).j = false; + } + + public t4() { + this.k = new float[10]; + this.l = 0; + } + + public t4(float[] fArr, int i) { + this.k = fArr; + this.l = i; + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ void add(int i, Object obj) { + int i2; + float floatValue = ((Float) obj).floatValue(); + c(); + if (i < 0 || i > (i2 = this.l)) { + throw new IndexOutOfBoundsException(g(i)); + } + float[] fArr = this.k; + if (i2 < fArr.length) { + System.arraycopy(fArr, i, fArr, i + 1, i2 - i); + } else { + float[] fArr2 = new float[(((i2 * 3) / 2) + 1)]; + System.arraycopy(fArr, 0, fArr2, 0, i); + System.arraycopy(this.k, i, fArr2, i + 1, this.l - i); + this.k = fArr2; + } + this.k[i] = floatValue; + this.l++; + ((AbstractList) this).modCount++; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public final /* synthetic */ boolean add(Object obj) { + d(((Float) obj).floatValue()); + return true; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean addAll(Collection collection) { + c(); + Charset charset = w4.a; + Objects.requireNonNull(collection); + if (!(collection instanceof t4)) { + return super.addAll(collection); + } + t4 t4Var = (t4) collection; + int i = t4Var.l; + if (i == 0) { + return false; + } + int i2 = this.l; + if (Integer.MAX_VALUE - i2 >= i) { + int i3 = i2 + i; + float[] fArr = this.k; + if (i3 > fArr.length) { + this.k = Arrays.copyOf(fArr, i3); + } + System.arraycopy(t4Var.k, 0, this.k, this.l, t4Var.l); + this.l = i3; + ((AbstractList) this).modCount++; + return true; + } + throw new OutOfMemoryError(); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean contains(Object obj) { + return indexOf(obj) != -1; + } + + public final void d(float f) { + c(); + int i = this.l; + float[] fArr = this.k; + if (i == fArr.length) { + float[] fArr2 = new float[(((i * 3) / 2) + 1)]; + System.arraycopy(fArr, 0, fArr2, 0, i); + this.k = fArr2; + } + float[] fArr3 = this.k; + int i2 = this.l; + this.l = i2 + 1; + fArr3[i2] = f; + } + + public final void e(int i) { + if (i < 0 || i >= this.l) { + throw new IndexOutOfBoundsException(g(i)); + } + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof t4)) { + return super.equals(obj); + } + t4 t4Var = (t4) obj; + if (this.l != t4Var.l) { + return false; + } + float[] fArr = t4Var.k; + for (int i = 0; i < this.l; i++) { + if (Float.floatToIntBits(this.k[i]) != Float.floatToIntBits(fArr[i])) { + return false; + } + } + return true; + } + + /* Return type fixed from 'b.i.a.f.h.l.b5' to match base method */ + @Override // b.i.a.f.h.l.b5 + public final /* synthetic */ b5 f(int i) { + if (i >= this.l) { + return new t4(Arrays.copyOf(this.k, i), this.l); + } + throw new IllegalArgumentException(); + } + + public final String g(int i) { + return a.g(35, "Index:", i, ", Size:", this.l); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object get(int i) { + e(i); + return Float.valueOf(this.k[i]); + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final int hashCode() { + int i = 1; + for (int i2 = 0; i2 < this.l; i2++) { + i = (i * 31) + Float.floatToIntBits(this.k[i2]); + } + return i; + } + + @Override // java.util.AbstractList, java.util.List + public final int indexOf(Object obj) { + if (!(obj instanceof Float)) { + return -1; + } + float floatValue = ((Float) obj).floatValue(); + int i = this.l; + for (int i2 = 0; i2 < i; i2++) { + if (this.k[i2] == floatValue) { + return i2; + } + } + return -1; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List + public final /* synthetic */ Object remove(int i) { + c(); + e(i); + float[] fArr = this.k; + float f = fArr[i]; + int i2 = this.l; + if (i < i2 - 1) { + System.arraycopy(fArr, i + 1, fArr, i, (i2 - i) - 1); + } + this.l--; + ((AbstractList) this).modCount++; + return Float.valueOf(f); + } + + @Override // java.util.AbstractList + public final void removeRange(int i, int i2) { + c(); + if (i2 >= i) { + float[] fArr = this.k; + System.arraycopy(fArr, i2, fArr, i, this.l - i2); + this.l -= i2 - i; + ((AbstractList) this).modCount++; + return; + } + throw new IndexOutOfBoundsException("toIndex < fromIndex"); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object set(int i, Object obj) { + float floatValue = ((Float) obj).floatValue(); + c(); + e(i); + float[] fArr = this.k; + float f = fArr[i]; + fArr[i] = floatValue; + return Float.valueOf(f); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final int size() { + return this.l; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/t5.java b/app/src/main/java/b/i/a/f/h/l/t5.java new file mode 100644 index 0000000000..0c05792e9c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t5.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class t5 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/t6.java b/app/src/main/java/b/i/a/f/h/l/t6.java new file mode 100644 index 0000000000..a95358eccd --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t6.java @@ -0,0 +1,32 @@ +package b.i.a.f.h.l; + +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class t6 extends r6 { + public t6(int i) { + super(i, null); + } + + @Override // b.i.a.f.h.l.r6 + public final void c() { + if (!this.n) { + for (int i = 0; i < e(); i++) { + Map.Entry d = d(i); + if (((p4) d.getKey()).d()) { + d.setValue(Collections.unmodifiableList((List) d.getValue())); + } + } + Iterator it = g().iterator(); + while (it.hasNext()) { + Map.Entry entry = (Map.Entry) it.next(); + if (((p4) entry.getKey()).d()) { + entry.setValue(Collections.unmodifiableList((List) entry.getValue())); + } + } + } + super.c(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/t8.java b/app/src/main/java/b/i/a/f/h/l/t8.java new file mode 100644 index 0000000000..c587660a04 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t8.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class t8 implements z2 { + public static t8 j = new t8(); + public final z2 k = f.H1(new b3(new v8())); + + public static boolean b() { + return ((s8) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ s8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/t9.java b/app/src/main/java/b/i/a/f/h/l/t9.java new file mode 100644 index 0000000000..76988cd1eb --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/t9.java @@ -0,0 +1,22 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class t9 implements q9 { + public static final l2 a; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.client.sessions.check_on_reset_and_enable2", true); + q2Var.c("measurement.client.sessions.check_on_startup", true); + q2Var.c("measurement.client.sessions.start_session_before_view_screen", true); + } + + @Override // b.i.a.f.h.l.q9 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.q9 + public final boolean b() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/ta.java b/app/src/main/java/b/i/a/f/h/l/ta.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/ta.java rename to app/src/main/java/b/i/a/f/h/l/ta.java index 052e03ef67..f86fde2f07 100644 --- a/app/src/main/java/c/i/a/f/h/l/ta.java +++ b/app/src/main/java/b/i/a/f/h/l/ta.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface ta { long a(); diff --git a/app/src/main/java/c/i/a/f/h/l/tb.java b/app/src/main/java/b/i/a/f/h/l/tb.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/tb.java rename to app/src/main/java/b/i/a/f/h/l/tb.java index b03f7ef2df..80dc7ec546 100644 --- a/app/src/main/java/c/i/a/f/h/l/tb.java +++ b/app/src/main/java/b/i/a/f/h/l/tb.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class tb implements z2 { public static tb j = new tb(); public final z2 k = f.H1(new b3(new vb())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ sb a() { return this.k.a(); } diff --git a/app/src/main/java/b/i/a/f/h/l/u.java b/app/src/main/java/b/i/a/f/h/l/u.java new file mode 100644 index 0000000000..2e83b6ee16 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class u extends g.a { + public final /* synthetic */ cc n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public u(g gVar, cc ccVar) { + super(true); + this.o = gVar; + this.n = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.generateEventId(this.n); + } + + @Override // b.i.a.f.h.l.g.a + public final void b() { + this.n.f(null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/u0.java b/app/src/main/java/b/i/a/f/h/l/u0.java new file mode 100644 index 0000000000..0d85387cd7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u0.java @@ -0,0 +1,140 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class u0 extends u4 implements d6 { + private static final u0 zzm; + private static volatile j6 zzn; + private int zzc; + private long zzd; + private String zze = ""; + private int zzf; + private b5 zzg; + private b5 zzh; + private b5 zzi; + private String zzj; + private boolean zzk; + private b5 zzl; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(u0.H()); + } + + public a(x0 x0Var) { + super(u0.H()); + } + } + + static { + u0 u0Var = new u0(); + zzm = u0Var; + u4.r(u0.class, u0Var); + } + + public u0() { + m6 m6Var = m6.k; + this.zzg = m6Var; + this.zzh = m6Var; + this.zzi = m6Var; + this.zzj = ""; + this.zzl = m6Var; + } + + public static a F() { + return zzm.s(); + } + + public static u0 G() { + return zzm; + } + + public static /* synthetic */ u0 H() { + return zzm; + } + + public static void v(u0 u0Var) { + Objects.requireNonNull(u0Var); + u0Var.zzi = m6.k; + } + + public static void w(u0 u0Var, int i, t0 t0Var) { + Objects.requireNonNull(u0Var); + b5 b5Var = u0Var.zzh; + if (!b5Var.a()) { + u0Var.zzh = u4.n(b5Var); + } + u0Var.zzh.set(i, t0Var); + } + + public final String A() { + return this.zze; + } + + public final List B() { + return this.zzg; + } + + public final int C() { + return this.zzh.size(); + } + + public final List D() { + return this.zzi; + } + + public final boolean E() { + return this.zzk; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (x0.a[i - 1]) { + case 1: + return new u0(); + case 2: + return new a(null); + case 3: + return new o6(zzm, "\u0001\t\u0000\u0001\u0001\t\t\u0000\u0004\u0000\u0001ဂ\u0000\u0002ဈ\u0001\u0003င\u0002\u0004\u001b\u0005\u001b\u0006\u001b\u0007ဈ\u0003\bဇ\u0004\t\u001b", new Object[]{"zzc", "zzd", "zze", "zzf", "zzg", v0.class, "zzh", t0.class, "zzi", k0.class, "zzj", "zzk", "zzl", p1.class}); + case 4: + return zzm; + case 5: + j6 j6Var = zzn; + if (j6Var == null) { + synchronized (u0.class) { + j6Var = zzn; + if (j6Var == null) { + j6Var = new u4.a<>(zzm); + zzn = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final t0 u(int i) { + return this.zzh.get(i); + } + + public final boolean x() { + return (this.zzc & 1) != 0; + } + + public final long y() { + return this.zzd; + } + + public final boolean z() { + return (this.zzc & 2) != 0; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/u1.java b/app/src/main/java/b/i/a/f/h/l/u1.java new file mode 100644 index 0000000000..b9d626f766 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u1.java @@ -0,0 +1,32 @@ +package b.i.a.f.h.l; + +import android.net.Uri; +import java.util.HashMap; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.regex.Pattern; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public class u1 { + public static final Uri a = Uri.parse("content://com.google.android.gsf.gservices"); + + /* renamed from: b reason: collision with root package name */ + public static final Uri f1481b = Uri.parse("content://com.google.android.gsf.gservices/prefix"); + public static final Pattern c = Pattern.compile("^(1|true|t|on|yes|y)$", 2); + public static final Pattern d = Pattern.compile("^(0|false|f|off|no|n)$", 2); + public static final AtomicBoolean e = new AtomicBoolean(); + public static HashMap f; + public static final HashMap g = new HashMap<>(); + public static final HashMap h = new HashMap<>(); + public static final HashMap i = new HashMap<>(); + public static final HashMap j = new HashMap<>(); + public static Object k; + public static boolean l; + public static String[] m = new String[0]; + + public static void a(Object obj, String str, String str2) { + synchronized (u1.class) { + if (obj == k) { + f.put(str, str2); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/u2.java b/app/src/main/java/b/i/a/f/h/l/u2.java new file mode 100644 index 0000000000..0636762273 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u2.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class u2 { + public u2(v2 v2Var) { + Object obj = l2.a; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/u3.java b/app/src/main/java/b/i/a/f/h/l/u3.java new file mode 100644 index 0000000000..7fe7368da9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u3.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class u3 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/u4.java b/app/src/main/java/b/i/a/f/h/l/u4.java new file mode 100644 index 0000000000..1e06e46d32 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u4.java @@ -0,0 +1,324 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import b.i.a.f.h.l.u4.b; +import com.google.android.gms.internal.measurement.zzhi; +import com.google.android.gms.internal.measurement.zzij; +import com.google.android.gms.internal.measurement.zzkq; +import java.io.IOException; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public abstract class u4, BuilderType extends b> extends l3 { + private static Map> zzd = new ConcurrentHashMap(); + public c7 zzb = c7.a; + private int zzc = -1; + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static class a> extends p3 { + public a(T t) { + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static abstract class b, BuilderType extends b> extends n3 { + public final MessageType j; + public MessageType k; + public boolean l = false; + + public b(MessageType messagetype) { + this.j = messagetype; + this.k = (MessageType) ((u4) messagetype.p(4, null, null)); + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v2, resolved type: b.i.a.f.h.l.u4$b */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // java.lang.Object + public /* synthetic */ Object clone() throws CloneNotSupportedException { + b bVar = (b) this.j.p(5, null, null); + bVar.l((u4) o()); + return bVar; + } + + @Override // b.i.a.f.h.l.d6 + public final /* synthetic */ c6 k() { + return this.j; + } + + public final BuilderType l(MessageType messagetype) { + if (this.l) { + n(); + this.l = false; + } + MessageType messagetype2 = this.k; + n6.a.b(messagetype2).i(messagetype2, messagetype); + return this; + } + + /* JADX WARN: Incorrect args count in method signature: ([BIILb/i/a/f/h/l/h4;)TBuilderType; */ + public final b m(byte[] bArr, int i, h4 h4Var) throws zzij { + if (this.l) { + n(); + this.l = false; + } + try { + n6.a.b(this.k).h(this.k, bArr, 0, i, new s3(h4Var)); + return this; + } catch (zzij e) { + throw e; + } catch (IndexOutOfBoundsException unused) { + throw zzij.a(); + } catch (IOException e2) { + throw new RuntimeException("Reading from byte array should not throw IOException.", e2); + } + } + + public void n() { + MessageType messagetype = (MessageType) ((u4) this.k.p(4, null, null)); + n6.a.b(messagetype).i(messagetype, this.k); + this.k = messagetype; + } + + public c6 o() { + if (this.l) { + return this.k; + } + MessageType messagetype = this.k; + n6.a.b(messagetype).d(messagetype); + this.l = true; + return this.k; + } + + public c6 p() { + u4 u4Var = (u4) o(); + if (u4Var.j()) { + return u4Var; + } + throw new zzkq(); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static final class c implements p4 { + @Override // b.i.a.f.h.l.p4 + public final b6 X(b6 b6Var, c6 c6Var) { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.p4 + public final int a() { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.p4 + public final p7 b() { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.p4 + public final w7 c() { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.p4 + public final f6 c0(f6 f6Var, f6 f6Var2) { + throw new NoSuchMethodError(); + } + + @Override // java.lang.Comparable + public final /* synthetic */ int compareTo(Object obj) { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.p4 + public final boolean d() { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.p4 + public final boolean e() { + throw new NoSuchMethodError(); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static abstract class d, BuilderType> extends u4 implements d6 { + public n4 zzc = n4.a; + + public final n4 u() { + n4 n4Var = this.zzc; + if (n4Var.c) { + this.zzc = (n4) n4Var.clone(); + } + return this.zzc; + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + /* JADX INFO: Failed to restore enum class, 'enum' modifier removed */ + public static final class e { + public static final /* synthetic */ int[] a = {1, 2, 3, 4, 5, 6, 7}; + + public static int[] a() { + return (int[]) a.clone(); + } + } + + /* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ + public static class f extends i4 { + } + + public static > T m(Class cls) { + u4 u4Var = zzd.get(cls); + if (u4Var == null) { + try { + Class.forName(cls.getName(), true, cls.getClassLoader()); + u4Var = (T) zzd.get(cls); + } catch (ClassNotFoundException e2) { + throw new IllegalStateException("Class initialization cannot fail.", e2); + } + } + if (u4Var == null) { + u4Var = (T) ((u4) ((u4) j7.c(cls)).p(6, null, null)); + if (u4Var != null) { + zzd.put(cls, u4Var); + } else { + throw new IllegalStateException(); + } + } + return (T) u4Var; + } + + public static b5 n(b5 b5Var) { + int size = b5Var.size(); + return b5Var.f(size == 0 ? 10 : size << 1); + } + + public static c5 o(c5 c5Var) { + int i = ((q5) c5Var).m; + return ((q5) c5Var).f(i == 0 ? 10 : i << 1); + } + + public static Object q(Method method, Object obj, Object... objArr) { + try { + return method.invoke(obj, objArr); + } catch (IllegalAccessException e2) { + throw new RuntimeException("Couldn't use Java reflection to implement protocol message reflection.", e2); + } catch (InvocationTargetException e3) { + Throwable cause = e3.getCause(); + if (cause instanceof RuntimeException) { + throw ((RuntimeException) cause); + } else if (cause instanceof Error) { + throw ((Error) cause); + } else { + throw new RuntimeException("Unexpected exception thrown by generated accessor method.", cause); + } + } + } + + public static > void r(Class cls, T t) { + zzd.put(cls, t); + } + + @Override // b.i.a.f.h.l.l3 + public final int e() { + return this.zzc; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj != null && getClass() == obj.getClass()) { + return n6.a.b(this).f(this, (u4) obj); + } + return false; + } + + @Override // b.i.a.f.h.l.c6 + public final /* synthetic */ b6 f() { + b bVar = (b) p(5, null, null); + bVar.l(this); + return bVar; + } + + @Override // b.i.a.f.h.l.c6 + public final int g() { + if (this.zzc == -1) { + this.zzc = n6.a.b(this).e(this); + } + return this.zzc; + } + + @Override // b.i.a.f.h.l.c6 + public final /* synthetic */ b6 h() { + return (b) p(5, null, null); + } + + public int hashCode() { + int i = this.zza; + if (i != 0) { + return i; + } + int b2 = n6.a.b(this).b(this); + this.zza = b2; + return b2; + } + + @Override // b.i.a.f.h.l.c6 + public final void i(zzhi zzhi) throws IOException { + q6 b2 = n6.a.b(this); + g4 g4Var = zzhi.c; + if (g4Var == null) { + g4Var = new g4(zzhi); + } + b2.g(this, g4Var); + } + + @Override // b.i.a.f.h.l.d6 + public final boolean j() { + byte byteValue = ((Byte) p(1, null, null)).byteValue(); + if (byteValue == 1) { + return true; + } + if (byteValue == 0) { + return false; + } + boolean c2 = n6.a.b(this).c(this); + p(2, c2 ? this : null, null); + return c2; + } + + @Override // b.i.a.f.h.l.d6 + public final /* synthetic */ c6 k() { + return (u4) p(6, null, null); + } + + @Override // b.i.a.f.h.l.l3 + public final void l(int i) { + this.zzc = i; + } + + public abstract Object p(int i, Object obj, Object obj2); + + public final , BuilderType extends b> BuilderType s() { + return (BuilderType) ((b) p(5, null, null)); + } + + public final BuilderType t() { + BuilderType buildertype = (BuilderType) ((b) p(5, null, null)); + buildertype.l(this); + return buildertype; + } + + public String toString() { + String obj = super.toString(); + StringBuilder sb = new StringBuilder(); + sb.append("# "); + sb.append(obj); + b.i.a.f.e.o.f.V1(this, sb, 0); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/u5.java b/app/src/main/java/b/i/a/f/h/l/u5.java new file mode 100644 index 0000000000..c4a21dd87e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u5.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class u5 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/u6.java b/app/src/main/java/b/i/a/f/h/l/u6.java new file mode 100644 index 0000000000..25ab715e2e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u6.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.l; + +import java.util.Iterator; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class u6 { + public static final Iterator a = new w6(); + + /* renamed from: b reason: collision with root package name */ + public static final Iterable f1482b = new v6(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/u8.java b/app/src/main/java/b/i/a/f/h/l/u8.java new file mode 100644 index 0000000000..e17e832e47 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u8.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class u8 implements z2 { + public static u8 j = new u8(); + public final z2 k = f.H1(new b3(new w8())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ x8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/u9.java b/app/src/main/java/b/i/a/f/h/l/u9.java new file mode 100644 index 0000000000..b9aa7c0f06 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/u9.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class u9 implements v9 { + public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.client.freeride_engagement_fix", true); + + @Override // b.i.a.f.h.l.v9 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.v9 + public final boolean b() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/ua.java b/app/src/main/java/b/i/a/f/h/l/ua.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/ua.java rename to app/src/main/java/b/i/a/f/h/l/ua.java index f3a22b9b70..2ff6e6a6ea 100644 --- a/app/src/main/java/c/i/a/f/h/l/ua.java +++ b/app/src/main/java/b/i/a/f/h/l/ua.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface ua { boolean a(); diff --git a/app/src/main/java/c/i/a/f/h/l/ub.java b/app/src/main/java/b/i/a/f/h/l/ub.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/ub.java rename to app/src/main/java/b/i/a/f/h/l/ub.java index c379bff765..c0bbf41477 100644 --- a/app/src/main/java/c/i/a/f/h/l/ub.java +++ b/app/src/main/java/b/i/a/f/h/l/ub.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ub implements z2 { public static ub j = new ub(); public final z2 k = f.H1(new b3(new wb())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ xb a() { return this.k.a(); } diff --git a/app/src/main/java/b/i/a/f/h/l/v.java b/app/src/main/java/b/i/a/f/h/l/v.java new file mode 100644 index 0000000000..c59f765bf7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v.java @@ -0,0 +1,33 @@ +package b.i.a.f.h.l; + +import android.os.IInterface; +import android.os.Parcel; +import android.os.Parcelable; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class v { + public static final ClassLoader a = v.class.getClassLoader(); + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } + + public static void b(Parcel parcel, IInterface iInterface) { + if (iInterface == null) { + parcel.writeStrongBinder(null); + } else { + parcel.writeStrongBinder(iInterface.asBinder()); + } + } + + public static void c(Parcel parcel, Parcelable parcelable) { + if (parcelable == null) { + parcel.writeInt(0); + return; + } + parcel.writeInt(1); + parcelable.writeToParcel(parcel, 0); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/v0.java b/app/src/main/java/b/i/a/f/h/l/v0.java new file mode 100644 index 0000000000..06f926077c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v0.java @@ -0,0 +1,68 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class v0 extends u4 implements d6 { + private static final v0 zzf; + private static volatile j6 zzg; + private int zzc; + private String zzd = ""; + private String zze = ""; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a(x0 x0Var) { + super(v0.w()); + } + } + + static { + v0 v0Var = new v0(); + zzf = v0Var; + u4.r(v0.class, v0Var); + } + + public static /* synthetic */ v0 w() { + return zzf; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (x0.a[i - 1]) { + case 1: + return new v0(); + case 2: + return new a(null); + case 3: + return new o6(zzf, "\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001ဈ\u0000\u0002ဈ\u0001", new Object[]{"zzc", "zzd", "zze"}); + case 4: + return zzf; + case 5: + j6 j6Var = zzg; + if (j6Var == null) { + synchronized (v0.class) { + j6Var = zzg; + if (j6Var == null) { + j6Var = new u4.a<>(zzf); + zzg = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final String u() { + return this.zzd; + } + + public final String v() { + return this.zze; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/v1.java b/app/src/main/java/b/i/a/f/h/l/v1.java new file mode 100644 index 0000000000..cd6e0b6cba --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v1.java @@ -0,0 +1,54 @@ +package b.i.a.f.h.l; + +import android.content.Context; +import b.d.b.a.a; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class v1 extends t2 { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final z2> f1483b; + + public v1(Context context, z2> z2Var) { + this.a = context; + this.f1483b = z2Var; + } + + @Override // b.i.a.f.h.l.t2 + public final Context a() { + return this.a; + } + + @Override // b.i.a.f.h.l.t2 + public final z2> b() { + return this.f1483b; + } + + public final boolean equals(Object obj) { + z2> z2Var; + if (obj == this) { + return true; + } + if (obj instanceof t2) { + t2 t2Var = (t2) obj; + if (this.a.equals(t2Var.a()) && ((z2Var = this.f1483b) != null ? z2Var.equals(t2Var.b()) : t2Var.b() == null)) { + return true; + } + } + return false; + } + + public final int hashCode() { + int hashCode = (this.a.hashCode() ^ 1000003) * 1000003; + z2> z2Var = this.f1483b; + return hashCode ^ (z2Var == null ? 0 : z2Var.hashCode()); + } + + public final String toString() { + String valueOf = String.valueOf(this.a); + String valueOf2 = String.valueOf(this.f1483b); + StringBuilder Q = a.Q(valueOf2.length() + valueOf.length() + 46, "FlagsContext{context=", valueOf, ", hermeticFileOverrides=", valueOf2); + Q.append("}"); + return Q.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/v2.java b/app/src/main/java/b/i/a/f/h/l/v2.java new file mode 100644 index 0000000000..61291de59b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v2.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface v2 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/v3.java b/app/src/main/java/b/i/a/f/h/l/v3.java new file mode 100644 index 0000000000..2c686bcf8c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v3.java @@ -0,0 +1,39 @@ +package b.i.a.f.h.l; + +import java.util.Iterator; +import java.util.NoSuchElementException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class v3 implements Iterator { + public int j = 0; + public final int k; + public final /* synthetic */ t3 l; + + public v3(t3 t3Var) { + this.l = t3Var; + this.k = t3Var.d(); + } + + public final byte a() { + int i = this.j; + if (i < this.k) { + this.j = i + 1; + return this.l.k(i); + } + throw new NoSuchElementException(); + } + + @Override // java.util.Iterator + public final boolean hasNext() { + return this.j < this.k; + } + + @Override // java.util.Iterator + public /* synthetic */ Object next() { + return Byte.valueOf(a()); + } + + @Override // java.util.Iterator + public final void remove() { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/v4.java b/app/src/main/java/b/i/a/f/h/l/v4.java new file mode 100644 index 0000000000..a9f65f453c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v4.java @@ -0,0 +1,24 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class v4 implements z5 { + public static final v4 a = new v4(); + + @Override // b.i.a.f.h.l.z5 + public final boolean a(Class cls) { + return u4.class.isAssignableFrom(cls); + } + + @Override // b.i.a.f.h.l.z5 + public final a6 b(Class cls) { + if (!u4.class.isAssignableFrom(cls)) { + String name = cls.getName(); + throw new IllegalArgumentException(name.length() != 0 ? "Unsupported message type: ".concat(name) : new String("Unsupported message type: ")); + } + try { + return (a6) u4.m(cls.asSubclass(u4.class)).p(3, null, null); + } catch (Exception e) { + String name2 = cls.getName(); + throw new RuntimeException(name2.length() != 0 ? "Unable to get message info for ".concat(name2) : new String("Unable to get message info for "), e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/v5.java b/app/src/main/java/b/i/a/f/h/l/v5.java new file mode 100644 index 0000000000..87de268d24 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v5.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface v5 { + Map b(Object obj); + + Object c(Object obj); + + boolean d(Object obj); + + Map e(Object obj); + + Object f(Object obj, Object obj2); + + t5 g(Object obj); + + Object h(Object obj); + + int i(int i, Object obj, Object obj2); +} diff --git a/app/src/main/java/b/i/a/f/h/l/v6.java b/app/src/main/java/b/i/a/f/h/l/v6.java new file mode 100644 index 0000000000..75ca913507 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v6.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.l; + +import java.util.Iterator; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class v6 implements Iterable { + @Override // java.lang.Iterable + public final Iterator iterator() { + return u6.a; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/v7.java b/app/src/main/java/b/i/a/f/h/l/v7.java new file mode 100644 index 0000000000..580fc0b585 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v7.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface v7 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/v8.java b/app/src/main/java/b/i/a/f/h/l/v8.java new file mode 100644 index 0000000000..31076126de --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v8.java @@ -0,0 +1,44 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class v8 implements s8 { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1484b; + public static final l2 c; + public static final l2 d; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.client.consent_state_v1", false); + f1484b = q2Var.c("measurement.client.3p_consent_state_v1", false); + c = q2Var.c("measurement.service.consent_state_v1_W36", false); + q2Var.a("measurement.id.service.consent_state_v1_W36", 0); + d = q2Var.a("measurement.service.storage_consent_support_version", 203590); + } + + @Override // b.i.a.f.h.l.s8 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.s8 + public final boolean b() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.s8 + public final boolean c() { + return f1484b.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.s8 + public final boolean d() { + return c.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.s8 + public final long e() { + return d.d().longValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/v9.java b/app/src/main/java/b/i/a/f/h/l/v9.java new file mode 100644 index 0000000000..8ac31722a1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/v9.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface v9 { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/va.java b/app/src/main/java/b/i/a/f/h/l/va.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/va.java rename to app/src/main/java/b/i/a/f/h/l/va.java index d3d081dc3d..453b79637a 100644 --- a/app/src/main/java/c/i/a/f/h/l/va.java +++ b/app/src/main/java/b/i/a/f/h/l/va.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class va implements z2 { public static va j = new va(); public final z2 k = f.H1(new b3(new xa())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ ua a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/vb.java b/app/src/main/java/b/i/a/f/h/l/vb.java similarity index 87% rename from app/src/main/java/c/i/a/f/h/l/vb.java rename to app/src/main/java/b/i/a/f/h/l/vb.java index 0af36c59ea..1d2379886b 100644 --- a/app/src/main/java/c/i/a/f/h/l/vb.java +++ b/app/src/main/java/b/i/a/f/h/l/vb.java @@ -1,9 +1,9 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class vb implements sb { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.sdk.collection.retrieve_deeplink_from_bow_2", true); - @Override // c.i.a.f.h.l.sb + @Override // b.i.a.f.h.l.sb public final boolean a() { return a.d().booleanValue(); } diff --git a/app/src/main/java/b/i/a/f/h/l/w.java b/app/src/main/java/b/i/a/f/h/l/w.java new file mode 100644 index 0000000000..e0bc2f0f3a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w.java @@ -0,0 +1,32 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class w extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ String o; + public final /* synthetic */ boolean p; + public final /* synthetic */ cc q; + public final /* synthetic */ g r; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public w(g gVar, String str, String str2, boolean z2, cc ccVar) { + super(true); + this.r = gVar; + this.n = str; + this.o = str2; + this.p = z2; + this.q = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.r.j.getUserProperties(this.n, this.o, this.p, this.q); + } + + @Override // b.i.a.f.h.l.g.a + public final void b() { + this.q.f(null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w0.java b/app/src/main/java/b/i/a/f/h/l/w0.java new file mode 100644 index 0000000000..f04dd733c8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w0.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.p0; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class w0 implements a5 { + public static final a5 a = new w0(); + + @Override // b.i.a.f.h.l.a5 + public final boolean f(int i) { + return p0.b.f(i) != null; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w1.java b/app/src/main/java/b/i/a/f/h/l/w1.java new file mode 100644 index 0000000000..51142e5f35 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w1.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; + +import android.os.Build; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public class w1 { + public static volatile boolean a = (!a()); + + public static boolean a() { + return Build.VERSION.SDK_INT >= 24; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w2.java b/app/src/main/java/b/i/a/f/h/l/w2.java new file mode 100644 index 0000000000..0a445aefd0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w2.java @@ -0,0 +1,32 @@ +package b.i.a.f.h.l; + +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class w2 extends x2 { + public static final w2 j = new w2<>(); + + @Override // b.i.a.f.h.l.x2 + public final boolean b() { + return false; + } + + @Override // b.i.a.f.h.l.x2 + public final T c() { + throw new IllegalStateException("Optional.get() cannot be called on an absent value"); + } + + @Override // java.lang.Object + public final boolean equals(@NullableDecl Object obj) { + return obj == this; + } + + @Override // java.lang.Object + public final int hashCode() { + return 2040732332; + } + + @Override // java.lang.Object + public final String toString() { + return "Optional.absent()"; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w3.java b/app/src/main/java/b/i/a/f/h/l/w3.java new file mode 100644 index 0000000000..eb3c716b9c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w3.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.l; + +import java.util.Arrays; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class w3 implements x3 { + public w3(v3 v3Var) { + } + + @Override // b.i.a.f.h.l.x3 + public final byte[] a(byte[] bArr, int i, int i2) { + return Arrays.copyOfRange(bArr, i, i2 + i); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w4.java b/app/src/main/java/b/i/a/f/h/l/w4.java new file mode 100644 index 0000000000..0c88f1ccbd --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w4.java @@ -0,0 +1,55 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import com.adjust.sdk.Constants; +import com.google.android.gms.internal.measurement.zzij; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class w4 { + public static final Charset a = Charset.forName(Constants.ENCODING); + + /* renamed from: b reason: collision with root package name */ + public static final byte[] f1485b; + + static { + Charset.forName("ISO-8859-1"); + byte[] bArr = new byte[0]; + f1485b = bArr; + ByteBuffer.wrap(bArr); + int length = bArr.length; + int i = length + 0; + if (length < 0) { + throw zzij.b(); + } else if (length + 0 <= Integer.MAX_VALUE) { + int i2 = i + 0 + 0; + } else { + try { + throw zzij.a(); + } catch (zzij e) { + throw new IllegalArgumentException(e); + } + } + } + + public static int a(long j) { + return (int) (j ^ (j >>> 32)); + } + + public static int b(boolean z2) { + return z2 ? 1231 : 1237; + } + + public static Object c(Object obj, Object obj2) { + c6 c6Var = (c6) obj2; + n3 n3Var = (n3) ((c6) obj).f(); + Objects.requireNonNull(n3Var); + u4.b bVar = (u4.b) n3Var; + if (bVar.j.getClass().isInstance(c6Var)) { + bVar.l((u4) ((l3) c6Var)); + return bVar.o(); + } + throw new IllegalArgumentException("mergeFrom(MessageLite) can only merge messages of the same type."); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w5.java b/app/src/main/java/b/i/a/f/h/l/w5.java new file mode 100644 index 0000000000..7df0222f22 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w5.java @@ -0,0 +1,153 @@ +package b.i.a.f.h.l; + +import java.nio.charset.Charset; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class w5 extends LinkedHashMap { + public static final w5 j; + private boolean zza = true; + + static { + w5 w5Var = new w5(); + j = w5Var; + w5Var.zza = false; + } + + public w5() { + } + + public w5(Map map) { + super(map); + } + + public static int b(Object obj) { + if (obj instanceof byte[]) { + byte[] bArr = (byte[]) obj; + Charset charset = w4.a; + int length = bArr.length; + int i = length; + for (int i2 = 0; i2 < 0 + length; i2++) { + i = (i * 31) + bArr[i2]; + } + if (i == 0) { + return 1; + } + return i; + } else if (!(obj instanceof y4)) { + return obj.hashCode(); + } else { + throw new UnsupportedOperationException(); + } + } + + @Override // java.util.LinkedHashMap, java.util.AbstractMap, java.util.Map, java.util.HashMap + public final void clear() { + h(); + super.clear(); + } + + @Override // java.util.LinkedHashMap, java.util.AbstractMap, java.util.Map, java.util.HashMap + public final Set> entrySet() { + return isEmpty() ? Collections.emptySet() : super.entrySet(); + } + + /* JADX WARNING: Removed duplicated region for block: B:21:0x005c A[RETURN] */ + @Override // java.util.AbstractMap, java.util.Map, java.lang.Object + public final boolean equals(Object obj) { + boolean z2; + boolean z3; + if (obj instanceof Map) { + Map map = (Map) obj; + if (this != map) { + if (size() == map.size()) { + Iterator> it = entrySet().iterator(); + while (true) { + if (!it.hasNext()) { + break; + } + Map.Entry next = it.next(); + if (map.containsKey(next.getKey())) { + V value = next.getValue(); + Object obj2 = map.get(next.getKey()); + if (!(value instanceof byte[]) || !(obj2 instanceof byte[])) { + z3 = value.equals(obj2); + continue; + } else { + z3 = Arrays.equals((byte[]) value, (byte[]) obj2); + continue; + } + if (!z3) { + break; + } + } else { + break; + } + } + } + z2 = false; + if (!z2) { + return true; + } + } + z2 = true; + if (!z2) { + } + } + return false; + } + + public final void f() { + this.zza = false; + } + + public final boolean g() { + return this.zza; + } + + public final void h() { + if (!this.zza) { + throw new UnsupportedOperationException(); + } + } + + @Override // java.util.AbstractMap, java.util.Map, java.lang.Object + public final int hashCode() { + int i = 0; + for (Map.Entry entry : entrySet()) { + i += b(entry.getValue()) ^ b(entry.getKey()); + } + return i; + } + + @Override // java.util.AbstractMap, java.util.Map, java.util.HashMap + public final V put(K k, V v) { + h(); + Charset charset = w4.a; + Objects.requireNonNull(k); + Objects.requireNonNull(v); + return (V) super.put(k, v); + } + + @Override // java.util.AbstractMap, java.util.Map, java.util.HashMap + public final void putAll(Map map) { + h(); + for (Object obj : map.keySet()) { + Charset charset = w4.a; + Objects.requireNonNull(obj); + Objects.requireNonNull(map.get(obj)); + } + super.putAll(map); + } + + @Override // java.util.AbstractMap, java.util.Map, java.util.HashMap + public final V remove(Object obj) { + h(); + return (V) super.remove(obj); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w6.java b/app/src/main/java/b/i/a/f/h/l/w6.java new file mode 100644 index 0000000000..4394204e10 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w6.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import java.util.Iterator; +import java.util.NoSuchElementException; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class w6 implements Iterator { + @Override // java.util.Iterator + public final boolean hasNext() { + return false; + } + + @Override // java.util.Iterator + public final Object next() { + throw new NoSuchElementException(); + } + + @Override // java.util.Iterator + public final void remove() { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w7.java b/app/src/main/java/b/i/a/f/h/l/w7.java new file mode 100644 index 0000000000..c1aa7b0936 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w7.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.l; + +import com.google.android.material.shadow.ShadowDrawableWrapper; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public enum w7 { + INT(0), + LONG(0L), + FLOAT(Float.valueOf(0.0f)), + DOUBLE(Double.valueOf((double) ShadowDrawableWrapper.COS_45)), + BOOLEAN(Boolean.FALSE), + STRING(""), + BYTE_STRING(t3.j), + ENUM(null), + MESSAGE(null); + + private final Object zzj; + + public w7(Object obj) { + this.zzj = obj; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w8.java b/app/src/main/java/b/i/a/f/h/l/w8.java new file mode 100644 index 0000000000..2bd545bb3c --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w8.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class w8 implements x8 { + public static final l2 a; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.sdk.dynamite.allow_remote_dynamite3", true); + q2Var.c("measurement.collection.init_params_control_enabled", true); + q2Var.c("measurement.sdk.dynamite.use_dynamite3", true); + q2Var.a("measurement.id.sdk.dynamite.use_dynamite", 0); + } + + @Override // b.i.a.f.h.l.x8 + public final boolean a() { + return a.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/w9.java b/app/src/main/java/b/i/a/f/h/l/w9.java new file mode 100644 index 0000000000..4b112ffc54 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/w9.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface w9 { + boolean a(); + + boolean b(); +} diff --git a/app/src/main/java/c/i/a/f/h/l/wa.java b/app/src/main/java/b/i/a/f/h/l/wa.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/wa.java rename to app/src/main/java/b/i/a/f/h/l/wa.java index 0711ae061b..7d94ee7400 100644 --- a/app/src/main/java/c/i/a/f/h/l/wa.java +++ b/app/src/main/java/b/i/a/f/h/l/wa.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class wa implements z2 { public static wa j = new wa(); public final z2 k = f.H1(new b3(new ya())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ za a() { return this.k.a(); } diff --git a/app/src/main/java/c/i/a/f/h/l/wb.java b/app/src/main/java/b/i/a/f/h/l/wb.java similarity index 87% rename from app/src/main/java/c/i/a/f/h/l/wb.java rename to app/src/main/java/b/i/a/f/h/l/wb.java index f01ec2a3ea..9353af3441 100644 --- a/app/src/main/java/c/i/a/f/h/l/wb.java +++ b/app/src/main/java/b/i/a/f/h/l/wb.java @@ -1,9 +1,9 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class wb implements xb { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.collection.service.update_with_analytics_fix", false); - @Override // c.i.a.f.h.l.xb + @Override // b.i.a.f.h.l.xb public final boolean a() { return a.d().booleanValue(); } diff --git a/app/src/main/java/b/i/a/f/h/l/x.java b/app/src/main/java/b/i/a/f/h/l/x.java new file mode 100644 index 0000000000..a608f6b56d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x.java @@ -0,0 +1,26 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class x extends g.a { + public final /* synthetic */ cc n; + public final /* synthetic */ g o; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public x(g gVar, cc ccVar) { + super(true); + this.o = gVar; + this.n = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.o.j.getCurrentScreenClass(this.n); + } + + @Override // b.i.a.f.h.l.g.a + public final void b() { + this.n.f(null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/x0.java b/app/src/main/java/b/i/a/f/h/l/x0.java new file mode 100644 index 0000000000..f55ff073d3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x0.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final /* synthetic */ class x0 { + public static final /* synthetic */ int[] a; + + static { + int[] iArr = new int[u4.e.a().length]; + a = iArr; + try { + iArr[3] = 1; + } catch (NoSuchFieldError unused) { + } + try { + a[4] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + a[2] = 3; + } catch (NoSuchFieldError unused3) { + } + try { + a[5] = 4; + } catch (NoSuchFieldError unused4) { + } + try { + a[6] = 5; + } catch (NoSuchFieldError unused5) { + } + try { + a[0] = 6; + } catch (NoSuchFieldError unused6) { + } + try { + a[1] = 7; + } catch (NoSuchFieldError unused7) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/x1.java b/app/src/main/java/b/i/a/f/h/l/x1.java new file mode 100644 index 0000000000..da32f50c7a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x1.java @@ -0,0 +1,38 @@ +package b.i.a.f.h.l; + +import android.database.Cursor; +import androidx.collection.ArrayMap; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class x1 implements d2 { + public final y1 a; + + public x1(y1 y1Var) { + this.a = y1Var; + } + + @Override // b.i.a.f.h.l.d2 + public final Object a() { + y1 y1Var = this.a; + Cursor query = y1Var.c.query(y1Var.d, y1.f1488b, null, null, null); + if (query == null) { + return Collections.emptyMap(); + } + try { + int count = query.getCount(); + if (count == 0) { + return Collections.emptyMap(); + } + Map arrayMap = count <= 256 ? new ArrayMap(count) : new HashMap(count, 1.0f); + while (query.moveToNext()) { + arrayMap.put(query.getString(0), query.getString(1)); + } + query.close(); + return arrayMap; + } finally { + query.close(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/x2.java b/app/src/main/java/b/i/a/f/h/l/x2.java new file mode 100644 index 0000000000..45c4dbbda0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x2.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.l; + +import java.io.Serializable; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public abstract class x2 implements Serializable { + public static x2 a(T t) { + Objects.requireNonNull(t); + return new y2(t); + } + + public abstract boolean b(); + + public abstract T c(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/x3.java b/app/src/main/java/b/i/a/f/h/l/x3.java new file mode 100644 index 0000000000..0258af68ea --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x3.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface x3 { + byte[] a(byte[] bArr, int i, int i2); +} diff --git a/app/src/main/java/b/i/a/f/h/l/x4.java b/app/src/main/java/b/i/a/f/h/l/x4.java new file mode 100644 index 0000000000..27b8cffbd1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x4.java @@ -0,0 +1,225 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.nio.charset.Charset; +import java.util.AbstractList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Objects; +import java.util.RandomAccess; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class x4 extends o3 implements z4, l6, RandomAccess { + public static final x4 k; + public int[] l; + public int m; + + static { + x4 x4Var = new x4(new int[0], 0); + k = x4Var; + x4Var.j = false; + } + + public x4() { + this.l = new int[10]; + this.m = 0; + } + + public x4(int[] iArr, int i) { + this.l = iArr; + this.m = i; + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ void add(int i, Object obj) { + int i2; + int intValue = ((Integer) obj).intValue(); + c(); + if (i < 0 || i > (i2 = this.m)) { + throw new IndexOutOfBoundsException(i(i)); + } + int[] iArr = this.l; + if (i2 < iArr.length) { + System.arraycopy(iArr, i, iArr, i + 1, i2 - i); + } else { + int[] iArr2 = new int[(((i2 * 3) / 2) + 1)]; + System.arraycopy(iArr, 0, iArr2, 0, i); + System.arraycopy(this.l, i, iArr2, i + 1, this.m - i); + this.l = iArr2; + } + this.l[i] = intValue; + this.m++; + ((AbstractList) this).modCount++; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.AbstractCollection, java.util.List, java.util.Collection + public final /* synthetic */ boolean add(Object obj) { + g(((Integer) obj).intValue()); + return true; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean addAll(Collection collection) { + c(); + Charset charset = w4.a; + Objects.requireNonNull(collection); + if (!(collection instanceof x4)) { + return super.addAll(collection); + } + x4 x4Var = (x4) collection; + int i = x4Var.m; + if (i == 0) { + return false; + } + int i2 = this.m; + if (Integer.MAX_VALUE - i2 >= i) { + int i3 = i2 + i; + int[] iArr = this.l; + if (i3 > iArr.length) { + this.l = Arrays.copyOf(iArr, i3); + } + System.arraycopy(x4Var.l, 0, this.l, this.m, x4Var.m); + this.m = i3; + ((AbstractList) this).modCount++; + return true; + } + throw new OutOfMemoryError(); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final boolean contains(Object obj) { + return indexOf(obj) != -1; + } + + /* renamed from: d */ + public final z4 f(int i) { + if (i >= this.m) { + return new x4(Arrays.copyOf(this.l, i), this.m); + } + throw new IllegalArgumentException(); + } + + public final int e(int i) { + h(i); + return this.l[i]; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof x4)) { + return super.equals(obj); + } + x4 x4Var = (x4) obj; + if (this.m != x4Var.m) { + return false; + } + int[] iArr = x4Var.l; + for (int i = 0; i < this.m; i++) { + if (this.l[i] != iArr[i]) { + return false; + } + } + return true; + } + + public final void g(int i) { + c(); + int i2 = this.m; + int[] iArr = this.l; + if (i2 == iArr.length) { + int[] iArr2 = new int[(((i2 * 3) / 2) + 1)]; + System.arraycopy(iArr, 0, iArr2, 0, i2); + this.l = iArr2; + } + int[] iArr3 = this.l; + int i3 = this.m; + this.m = i3 + 1; + iArr3[i3] = i; + } + + @Override // java.util.AbstractList, java.util.List + public final Object get(int i) { + h(i); + return Integer.valueOf(this.l[i]); + } + + public final void h(int i) { + if (i < 0 || i >= this.m) { + throw new IndexOutOfBoundsException(i(i)); + } + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public final int hashCode() { + int i = 1; + for (int i2 = 0; i2 < this.m; i2++) { + i = (i * 31) + this.l[i2]; + } + return i; + } + + public final String i(int i) { + return a.g(35, "Index:", i, ", Size:", this.m); + } + + @Override // java.util.AbstractList, java.util.List + public final int indexOf(Object obj) { + if (!(obj instanceof Integer)) { + return -1; + } + int intValue = ((Integer) obj).intValue(); + int i = this.m; + for (int i2 = 0; i2 < i; i2++) { + if (this.l[i2] == intValue) { + return i2; + } + } + return -1; + } + + @Override // b.i.a.f.h.l.o3, java.util.AbstractList, java.util.List + public final /* synthetic */ Object remove(int i) { + c(); + h(i); + int[] iArr = this.l; + int i2 = iArr[i]; + int i3 = this.m; + if (i < i3 - 1) { + System.arraycopy(iArr, i + 1, iArr, i, (i3 - i) - 1); + } + this.m--; + ((AbstractList) this).modCount++; + return Integer.valueOf(i2); + } + + @Override // java.util.AbstractList + public final void removeRange(int i, int i2) { + c(); + if (i2 >= i) { + int[] iArr = this.l; + System.arraycopy(iArr, i2, iArr, i, this.m - i2); + this.m -= i2 - i; + ((AbstractList) this).modCount++; + return; + } + throw new IndexOutOfBoundsException("toIndex < fromIndex"); + } + + @Override // java.util.AbstractList, java.util.List + public final /* synthetic */ Object set(int i, Object obj) { + int intValue = ((Integer) obj).intValue(); + c(); + h(i); + int[] iArr = this.l; + int i2 = iArr[i]; + iArr[i] = intValue; + return Integer.valueOf(i2); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public final int size() { + return this.m; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/x5.java b/app/src/main/java/b/i/a/f/h/l/x5.java new file mode 100644 index 0000000000..a52f979ca3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x5.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class x5 { + public static final v5 a; + + /* renamed from: b reason: collision with root package name */ + public static final v5 f1487b = new y5(); + + static { + v5 v5Var; + try { + v5Var = (v5) Class.forName("com.google.protobuf.MapFieldSchemaFull").getDeclaredConstructor(new Class[0]).newInstance(new Object[0]); + } catch (Exception unused) { + v5Var = null; + } + a = v5Var; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/x6.java b/app/src/main/java/b/i/a/f/h/l/x6.java new file mode 100644 index 0000000000..acef67afa8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x6.java @@ -0,0 +1,55 @@ +package b.i.a.f.h.l; + +import java.util.Iterator; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class x6 implements Iterator> { + public int j = -1; + public boolean k; + public Iterator> l; + public final /* synthetic */ r6 m; + + public x6(r6 r6Var, t6 t6Var) { + this.m = r6Var; + } + + public final Iterator> a() { + if (this.l == null) { + this.l = this.m.m.entrySet().iterator(); + } + return this.l; + } + + @Override // java.util.Iterator + public final boolean hasNext() { + return this.j + 1 < this.m.l.size() || (!this.m.m.isEmpty() && a().hasNext()); + } + + @Override // java.util.Iterator + public final /* synthetic */ Object next() { + this.k = true; + int i = this.j + 1; + this.j = i; + return i < this.m.l.size() ? this.m.l.get(this.j) : (Map.Entry) a().next(); + } + + @Override // java.util.Iterator + public final void remove() { + if (this.k) { + this.k = false; + r6 r6Var = this.m; + int i = r6.j; + r6Var.h(); + if (this.j < this.m.l.size()) { + r6 r6Var2 = this.m; + int i2 = this.j; + this.j = i2 - 1; + r6Var2.f(i2); + return; + } + a().remove(); + return; + } + throw new IllegalStateException("remove() was called before next()"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/x7.java b/app/src/main/java/b/i/a/f/h/l/x7.java new file mode 100644 index 0000000000..9425fec7c1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x7.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class x7 implements z2 { + public static x7 j = new x7(); + public final z2 k = f.H1(new b3(new y7())); + + public static boolean b() { + return ((z7) j.a()).a(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ z7 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/x8.java b/app/src/main/java/b/i/a/f/h/l/x8.java new file mode 100644 index 0000000000..fe8c539760 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x8.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface x8 { + boolean a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/x9.java b/app/src/main/java/b/i/a/f/h/l/x9.java new file mode 100644 index 0000000000..e4077fe19b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/x9.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class x9 implements z2 { + public static x9 j = new x9(); + public final z2 k = f.H1(new b3(new z9())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ w9 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/xa.java b/app/src/main/java/b/i/a/f/h/l/xa.java similarity index 87% rename from app/src/main/java/c/i/a/f/h/l/xa.java rename to app/src/main/java/b/i/a/f/h/l/xa.java index 11bb79b4e9..1d4d548d57 100644 --- a/app/src/main/java/c/i/a/f/h/l/xa.java +++ b/app/src/main/java/b/i/a/f/h/l/xa.java @@ -1,9 +1,9 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class xa implements ua { public static final l2 a = new q2(i2.a("com.google.android.gms.measurement")).c("measurement.validation.internal_limits_internal_event_params", false); - @Override // c.i.a.f.h.l.ua + @Override // b.i.a.f.h.l.ua public final boolean a() { return a.d().booleanValue(); } diff --git a/app/src/main/java/c/i/a/f/h/l/xb.java b/app/src/main/java/b/i/a/f/h/l/xb.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/xb.java rename to app/src/main/java/b/i/a/f/h/l/xb.java index fc9c00de47..df8e5c2fc9 100644 --- a/app/src/main/java/c/i/a/f/h/l/xb.java +++ b/app/src/main/java/b/i/a/f/h/l/xb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface xb { boolean a(); diff --git a/app/src/main/java/b/i/a/f/h/l/y.java b/app/src/main/java/b/i/a/f/h/l/y.java new file mode 100644 index 0000000000..d9ae162524 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y.java @@ -0,0 +1,24 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.f.b; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class y extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ Object o; + public final /* synthetic */ g p; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public y(g gVar, String str, Object obj) { + super(false); + this.p = gVar; + this.n = str; + this.o = obj; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.p.j.logHealthData(5, this.n, new b(this.o), new b(null), new b(null)); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/y0.java b/app/src/main/java/b/i/a/f/h/l/y0.java new file mode 100644 index 0000000000..7fdb468ea1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y0.java @@ -0,0 +1,124 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class y0 extends u4 implements d6 { + private static final y0 zzh; + private static volatile j6 zzi; + private int zzc; + private int zzd; + private g1 zze; + private g1 zzf; + private boolean zzg; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(y0.G()); + } + + public a(k1 k1Var) { + super(y0.G()); + } + } + + static { + y0 y0Var = new y0(); + zzh = y0Var; + u4.r(y0.class, y0Var); + } + + public static a F() { + return zzh.s(); + } + + public static /* synthetic */ y0 G() { + return zzh; + } + + public static void u(y0 y0Var, int i) { + y0Var.zzc |= 1; + y0Var.zzd = i; + } + + public static void v(y0 y0Var, g1 g1Var) { + Objects.requireNonNull(y0Var); + y0Var.zze = g1Var; + y0Var.zzc |= 2; + } + + public static void w(y0 y0Var, boolean z2) { + y0Var.zzc |= 8; + y0Var.zzg = z2; + } + + public static void z(y0 y0Var, g1 g1Var) { + Objects.requireNonNull(y0Var); + g1Var.getClass(); + y0Var.zzf = g1Var; + y0Var.zzc |= 4; + } + + public final g1 A() { + g1 g1Var = this.zze; + return g1Var == null ? g1.N() : g1Var; + } + + public final boolean B() { + return (this.zzc & 4) != 0; + } + + public final g1 C() { + g1 g1Var = this.zzf; + return g1Var == null ? g1.N() : g1Var; + } + + public final boolean D() { + return (this.zzc & 8) != 0; + } + + public final boolean E() { + return this.zzg; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new y0(); + case 2: + return new a(null); + case 3: + return new o6(zzh, "\u0001\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001င\u0000\u0002ဉ\u0001\u0003ဉ\u0002\u0004ဇ\u0003", new Object[]{"zzc", "zzd", "zze", "zzf", "zzg"}); + case 4: + return zzh; + case 5: + j6 j6Var = zzi; + if (j6Var == null) { + synchronized (y0.class) { + j6Var = zzi; + if (j6Var == null) { + j6Var = new u4.a<>(zzh); + zzi = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final boolean x() { + return (this.zzc & 1) != 0; + } + + public final int y() { + return this.zzd; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/y1.java b/app/src/main/java/b/i/a/f/h/l/y1.java new file mode 100644 index 0000000000..382520adc6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y1.java @@ -0,0 +1,103 @@ +package b.i.a.f.h.l; + +import android.content.ContentResolver; +import android.database.ContentObserver; +import android.database.sqlite.SQLiteException; +import android.net.Uri; +import android.os.StrictMode; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.collection.ArrayMap; +import b.i.a.f.e.o.f; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class y1 implements b2 { + @GuardedBy("ConfigurationContentLoader.class") + public static final Map a = new ArrayMap(); + + /* renamed from: b reason: collision with root package name */ + public static final String[] f1488b = {"key", "value"}; + public final ContentResolver c; + public final Uri d; + public final ContentObserver e; + public final Object f = new Object(); + public volatile Map g; + @GuardedBy("this") + public final List h = new ArrayList(); + + public y1(ContentResolver contentResolver, Uri uri) { + a2 a2Var = new a2(this); + this.e = a2Var; + Objects.requireNonNull(contentResolver); + Objects.requireNonNull(uri); + this.c = contentResolver; + this.d = uri; + contentResolver.registerContentObserver(uri, false, a2Var); + } + + public static y1 a(ContentResolver contentResolver, Uri uri) { + y1 y1Var; + synchronized (y1.class) { + Map map = a; + y1Var = map.get(uri); + if (y1Var == null) { + try { + y1 y1Var2 = new y1(contentResolver, uri); + try { + map.put(uri, y1Var2); + } catch (SecurityException unused) { + } + y1Var = y1Var2; + } catch (SecurityException unused2) { + } + } + } + return y1Var; + } + + public static synchronized void c() { + synchronized (y1.class) { + for (y1 y1Var : a.values()) { + y1Var.c.unregisterContentObserver(y1Var.e); + } + a.clear(); + } + } + + /* JADX INFO: finally extract failed */ + public final Map b() { + Map map; + Map map2 = this.g; + if (map2 == null) { + synchronized (this.f) { + map2 = this.g; + if (map2 == null) { + StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads(); + try { + map = (Map) f.K1(new x1(this)); + StrictMode.setThreadPolicy(allowThreadDiskReads); + } catch (SQLiteException | IllegalStateException | SecurityException unused) { + Log.e("ConfigurationContentLoader", "PhenotypeFlag unable to load ContentProvider, using default values"); + StrictMode.setThreadPolicy(allowThreadDiskReads); + map = null; + } catch (Throwable th) { + StrictMode.setThreadPolicy(allowThreadDiskReads); + throw th; + } + this.g = map; + map2 = map; + } + } + } + return map2 != null ? map2 : Collections.emptyMap(); + } + + @Override // b.i.a.f.h.l.b2 + public final /* synthetic */ Object g(String str) { + return b().get(str); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/y2.java b/app/src/main/java/b/i/a/f/h/l/y2.java new file mode 100644 index 0000000000..665cd697a9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y2.java @@ -0,0 +1,41 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class y2 extends x2 { + private final T zza; + + public y2(T t) { + this.zza = t; + } + + @Override // b.i.a.f.h.l.x2 + public final boolean b() { + return true; + } + + @Override // b.i.a.f.h.l.x2 + public final T c() { + return this.zza; + } + + @Override // java.lang.Object + public final boolean equals(@NullableDecl Object obj) { + if (obj instanceof y2) { + return this.zza.equals(((y2) obj).zza); + } + return false; + } + + @Override // java.lang.Object + public final int hashCode() { + return this.zza.hashCode() + 1502476572; + } + + @Override // java.lang.Object + public final String toString() { + String valueOf = String.valueOf(this.zza); + return a.j(valueOf.length() + 13, "Optional.of(", valueOf, ")"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/y3.java b/app/src/main/java/b/i/a/f/h/l/y3.java new file mode 100644 index 0000000000..3727358b99 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y3.java @@ -0,0 +1,42 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class y3 extends z3 { + private final int zzc; + private final int zzd; + + public y3(byte[] bArr, int i, int i2) { + super(bArr); + t3.l(i, i + i2, bArr.length); + this.zzc = i; + this.zzd = i2; + } + + @Override // b.i.a.f.h.l.z3, b.i.a.f.h.l.t3 + public final byte c(int i) { + int i2 = this.zzd; + if (((i2 - (i + 1)) | i) >= 0) { + return this.zzb[this.zzc + i]; + } + if (i < 0) { + throw new ArrayIndexOutOfBoundsException(a.f(22, "Index < 0: ", i)); + } + throw new ArrayIndexOutOfBoundsException(a.g(40, "Index > length: ", i, ", ", i2)); + } + + @Override // b.i.a.f.h.l.z3, b.i.a.f.h.l.t3 + public final int d() { + return this.zzd; + } + + @Override // b.i.a.f.h.l.z3, b.i.a.f.h.l.t3 + public final byte k(int i) { + return this.zzb[this.zzc + i]; + } + + @Override // b.i.a.f.h.l.z3 + public final int o() { + return this.zzc; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/y4.java b/app/src/main/java/b/i/a/f/h/l/y4.java new file mode 100644 index 0000000000..e2e043f06e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y4.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface y4 { + int a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/y5.java b/app/src/main/java/b/i/a/f/h/l/y5.java new file mode 100644 index 0000000000..ce1f279832 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y5.java @@ -0,0 +1,72 @@ +package b.i.a.f.h.l; + +import java.util.Iterator; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class y5 implements v5 { + @Override // b.i.a.f.h.l.v5 + public final Map b(Object obj) { + return (w5) obj; + } + + @Override // b.i.a.f.h.l.v5 + public final Object c(Object obj) { + ((w5) obj).f(); + return obj; + } + + @Override // b.i.a.f.h.l.v5 + public final boolean d(Object obj) { + return !((w5) obj).g(); + } + + @Override // b.i.a.f.h.l.v5 + public final Map e(Object obj) { + return (w5) obj; + } + + @Override // b.i.a.f.h.l.v5 + public final Object f(Object obj, Object obj2) { + w5 w5Var = (w5) obj; + w5 w5Var2 = (w5) obj2; + if (!w5Var2.isEmpty()) { + if (!w5Var.g()) { + w5Var = w5Var.isEmpty() ? new w5() : new w5(w5Var); + } + w5Var.h(); + if (!w5Var2.isEmpty()) { + w5Var.putAll(w5Var2); + } + } + return w5Var; + } + + @Override // b.i.a.f.h.l.v5 + public final t5 g(Object obj) { + u5 u5Var = (u5) obj; + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.v5 + public final Object h(Object obj) { + w5 w5Var = w5.j; + return w5Var.isEmpty() ? new w5() : new w5(w5Var); + } + + @Override // b.i.a.f.h.l.v5 + public final int i(int i, Object obj, Object obj2) { + w5 w5Var = (w5) obj; + u5 u5Var = (u5) obj2; + if (w5Var.isEmpty()) { + return 0; + } + Iterator it = w5Var.entrySet().iterator(); + if (!it.hasNext()) { + return 0; + } + Map.Entry entry = (Map.Entry) it.next(); + entry.getKey(); + entry.getValue(); + throw new NoSuchMethodError(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/y6.java b/app/src/main/java/b/i/a/f/h/l/y6.java new file mode 100644 index 0000000000..02de7b5c53 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y6.java @@ -0,0 +1,90 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class y6 implements Comparable, Map.Entry { + public final K j; + public V k; + public final /* synthetic */ r6 l; + + public y6(r6 r6Var, K k, V v) { + this.l = r6Var; + this.j = k; + this.k = v; + } + + /* JADX WARNING: Unknown variable types count: 2 */ + public y6(r6 r6Var, Map.Entry entry) { + ?? value = entry.getValue(); + this.l = r6Var; + this.j = (Comparable) entry.getKey(); + this.k = value; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public final /* synthetic */ int compareTo(y6 y6Var) { + return this.j.compareTo(y6Var.j); + } + + @Override // java.lang.Object, java.util.Map.Entry + public final boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Map.Entry)) { + return false; + } + Map.Entry entry = (Map.Entry) obj; + K k = this.j; + Object key = entry.getKey(); + if (k == 0 ? key == null : k.equals(key)) { + V v = this.k; + Object value = entry.getValue(); + if (v == 0 ? value == null : v.equals(value)) { + return true; + } + } + return false; + } + + @Override // java.util.Map.Entry + public final /* synthetic */ Object getKey() { + return this.j; + } + + @Override // java.util.Map.Entry + public final V getValue() { + return this.k; + } + + @Override // java.lang.Object, java.util.Map.Entry + public final int hashCode() { + K k = this.j; + int i = 0; + int hashCode = k == 0 ? 0 : k.hashCode(); + V v = this.k; + if (v != 0) { + i = v.hashCode(); + } + return hashCode ^ i; + } + + @Override // java.util.Map.Entry + public final V setValue(V v) { + r6 r6Var = this.l; + int i = r6.j; + r6Var.h(); + V v2 = this.k; + this.k = v; + return v2; + } + + @Override // java.lang.Object + public final String toString() { + String valueOf = String.valueOf(this.j); + String valueOf2 = String.valueOf(this.k); + return a.j(valueOf2.length() + valueOf.length() + 1, valueOf, "=", valueOf2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/y7.java b/app/src/main/java/b/i/a/f/h/l/y7.java new file mode 100644 index 0000000000..5a0f16b8c2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y7.java @@ -0,0 +1,37 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class y7 implements z7 { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1489b; + public static final l2 c; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.client.ad_impression", true); + f1489b = q2Var.c("measurement.service.separate_public_internal_event_blacklisting", true); + c = q2Var.c("measurement.service.ad_impression", true); + q2Var.a("measurement.id.service.ad_impression", 0); + } + + @Override // b.i.a.f.h.l.z7 + public final boolean a() { + return true; + } + + @Override // b.i.a.f.h.l.z7 + public final boolean b() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.z7 + public final boolean c() { + return f1489b.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.z7 + public final boolean d() { + return c.d().booleanValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/y8.java b/app/src/main/java/b/i/a/f/h/l/y8.java new file mode 100644 index 0000000000..a49df7366f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y8.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface y8 { + boolean a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/y9.java b/app/src/main/java/b/i/a/f/h/l/y9.java new file mode 100644 index 0000000000..0d52d41cc9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/y9.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class y9 implements z2 { + public static y9 j = new y9(); + public final z2 k = f.H1(new b3(new aa())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ ba a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/ya.java b/app/src/main/java/b/i/a/f/h/l/ya.java new file mode 100644 index 0000000000..343599fa13 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/ya.java @@ -0,0 +1,46 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class ya implements za { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1490b; + public static final l2 c; + public static final l2 d; + public static final l2 e; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.test.boolean_flag", false); + Object obj = l2.a; + f1490b = new o2(q2Var, "measurement.test.double_flag", Double.valueOf(-3.0d)); + c = q2Var.a("measurement.test.int_flag", -2); + d = q2Var.a("measurement.test.long_flag", -1); + e = q2Var.b("measurement.test.string_flag", "---"); + } + + @Override // b.i.a.f.h.l.za + public final boolean a() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.za + public final double b() { + return f1490b.d().doubleValue(); + } + + @Override // b.i.a.f.h.l.za + public final long c() { + return c.d().longValue(); + } + + @Override // b.i.a.f.h.l.za + public final long d() { + return d.d().longValue(); + } + + @Override // b.i.a.f.h.l.za + public final String e() { + return e.d(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/yb.java b/app/src/main/java/b/i/a/f/h/l/yb.java similarity index 85% rename from app/src/main/java/c/i/a/f/h/l/yb.java rename to app/src/main/java/b/i/a/f/h/l/yb.java index d0f3ef4b62..fa96cef2f0 100644 --- a/app/src/main/java/c/i/a/f/h/l/yb.java +++ b/app/src/main/java/b/i/a/f/h/l/yb.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface yb { boolean a(); diff --git a/app/src/main/java/b/i/a/f/h/l/z.java b/app/src/main/java/b/i/a/f/h/l/z.java new file mode 100644 index 0000000000..181717a0b7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z.java @@ -0,0 +1,28 @@ +package b.i.a.f.h.l; + +import android.os.RemoteException; +import b.i.a.f.h.l.g; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public final class z extends g.a { + public final /* synthetic */ String n; + public final /* synthetic */ cc o; + public final /* synthetic */ g p; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public z(g gVar, String str, cc ccVar) { + super(true); + this.p = gVar; + this.n = str; + this.o = ccVar; + } + + @Override // b.i.a.f.h.l.g.a + public final void a() throws RemoteException { + this.p.j.getMaxUserProperties(this.n, this.o); + } + + @Override // b.i.a.f.h.l.g.a + public final void b() { + this.o.f(null); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/z0.java b/app/src/main/java/b/i/a/f/h/l/z0.java new file mode 100644 index 0000000000..7b93d6044e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z0.java @@ -0,0 +1,94 @@ +package b.i.a.f.h.l; + +import b.i.a.f.h.l.u4; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class z0 extends u4 implements d6 { + private static final z0 zzf; + private static volatile j6 zzg; + private int zzc; + private int zzd; + private long zze; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public static final class a extends u4.b implements d6 { + public a() { + super(z0.B()); + } + + public a(k1 k1Var) { + super(z0.B()); + } + } + + static { + z0 z0Var = new z0(); + zzf = z0Var; + u4.r(z0.class, z0Var); + } + + public static a A() { + return zzf.s(); + } + + public static /* synthetic */ z0 B() { + return zzf; + } + + public static void u(z0 z0Var, int i) { + z0Var.zzc |= 1; + z0Var.zzd = i; + } + + public static void v(z0 z0Var, long j) { + z0Var.zzc |= 2; + z0Var.zze = j; + } + + @Override // b.i.a.f.h.l.u4 + public final Object p(int i, Object obj, Object obj2) { + switch (k1.a[i - 1]) { + case 1: + return new z0(); + case 2: + return new a(null); + case 3: + return new o6(zzf, "\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001င\u0000\u0002ဂ\u0001", new Object[]{"zzc", "zzd", "zze"}); + case 4: + return zzf; + case 5: + j6 j6Var = zzg; + if (j6Var == null) { + synchronized (z0.class) { + j6Var = zzg; + if (j6Var == null) { + j6Var = new u4.a<>(zzf); + zzg = j6Var; + } + } + } + return j6Var; + case 6: + return (byte) 1; + case 7: + return null; + default: + throw new UnsupportedOperationException(); + } + } + + public final boolean w() { + return (this.zzc & 1) != 0; + } + + public final int x() { + return this.zzd; + } + + public final boolean y() { + return (this.zzc & 2) != 0; + } + + public final long z() { + return this.zze; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/z1.java b/app/src/main/java/b/i/a/f/h/l/z1.java new file mode 100644 index 0000000000..2eca253388 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z1.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface z1 { + void a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/z2.java b/app/src/main/java/b/i/a/f/h/l/z2.java new file mode 100644 index 0000000000..eb9abf7287 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z2.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface z2 { + T a(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/z3.java b/app/src/main/java/b/i/a/f/h/l/z3.java new file mode 100644 index 0000000000..9179a5545f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z3.java @@ -0,0 +1,115 @@ +package b.i.a.f.h.l; + +import b.d.b.a.a; +import com.google.android.gms.internal.measurement.zzhi; +import java.io.IOException; +import java.nio.charset.Charset; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public class z3 extends b4 { + public final byte[] zzb; + + public z3(byte[] bArr) { + Objects.requireNonNull(bArr); + this.zzb = bArr; + } + + @Override // b.i.a.f.h.l.t3 + public byte c(int i) { + return this.zzb[i]; + } + + @Override // b.i.a.f.h.l.t3 + public int d() { + return this.zzb.length; + } + + @Override // b.i.a.f.h.l.t3 + public final int e(int i, int i2, int i3) { + byte[] bArr = this.zzb; + int o = o(); + Charset charset = w4.a; + for (int i4 = o; i4 < o + i3; i4++) { + i = (i * 31) + bArr[i4]; + } + return i; + } + + @Override // b.i.a.f.h.l.t3, java.lang.Object + public final boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof t3) || d() != ((t3) obj).d()) { + return false; + } + if (d() == 0) { + return true; + } + if (!(obj instanceof z3)) { + return obj.equals(this); + } + z3 z3Var = (z3) obj; + int n = n(); + int n2 = z3Var.n(); + if (n != 0 && n2 != 0 && n != n2) { + return false; + } + int d = d(); + if (d > z3Var.d()) { + int d2 = d(); + StringBuilder sb = new StringBuilder(40); + sb.append("Length too large: "); + sb.append(d); + sb.append(d2); + throw new IllegalArgumentException(sb.toString()); + } else if (d <= z3Var.d()) { + byte[] bArr = this.zzb; + byte[] bArr2 = z3Var.zzb; + int o = o() + d; + int o2 = o(); + int o3 = z3Var.o(); + while (o2 < o) { + if (bArr[o2] != bArr2[o3]) { + return false; + } + o2++; + o3++; + } + return true; + } else { + throw new IllegalArgumentException(a.g(59, "Ran off end of other: 0, ", d, ", ", z3Var.d())); + } + } + + @Override // b.i.a.f.h.l.t3 + public final t3 g(int i, int i2) { + int l = t3.l(0, i2, d()); + return l == 0 ? t3.j : new y3(this.zzb, o(), l); + } + + @Override // b.i.a.f.h.l.t3 + public final String i(Charset charset) { + return new String(this.zzb, o(), d(), charset); + } + + @Override // b.i.a.f.h.l.t3 + public final void j(u3 u3Var) throws IOException { + ((zzhi.a) u3Var).Z(this.zzb, o(), d()); + } + + @Override // b.i.a.f.h.l.t3 + public byte k(int i) { + return this.zzb[i]; + } + + @Override // b.i.a.f.h.l.t3 + public final boolean m() { + int o = o(); + return k7.b(this.zzb, o, d() + o); + } + + public int o() { + return 0; + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/z4.java b/app/src/main/java/b/i/a/f/h/l/z4.java new file mode 100644 index 0000000000..98ac7eb403 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z4.java @@ -0,0 +1,4 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface z4 extends b5 { +} diff --git a/app/src/main/java/b/i/a/f/h/l/z5.java b/app/src/main/java/b/i/a/f/h/l/z5.java new file mode 100644 index 0000000000..94dcb8fa54 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z5.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface z5 { + boolean a(Class cls); + + a6 b(Class cls); +} diff --git a/app/src/main/java/b/i/a/f/h/l/z6.java b/app/src/main/java/b/i/a/f/h/l/z6.java new file mode 100644 index 0000000000..532fed3031 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z6.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class z6 implements a6 { + @Override // b.i.a.f.h.l.a6 + public final int a() { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.a6 + public final boolean b() { + throw new NoSuchMethodError(); + } + + @Override // b.i.a.f.h.l.a6 + public final c6 c() { + throw new NoSuchMethodError(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/z7.java b/app/src/main/java/b/i/a/f/h/l/z7.java new file mode 100644 index 0000000000..110fa72551 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z7.java @@ -0,0 +1,11 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface z7 { + boolean a(); + + boolean b(); + + boolean c(); + + boolean d(); +} diff --git a/app/src/main/java/b/i/a/f/h/l/z8.java b/app/src/main/java/b/i/a/f/h/l/z8.java new file mode 100644 index 0000000000..a1b8dc9eba --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z8.java @@ -0,0 +1,14 @@ +package b.i.a.f.h.l; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class z8 implements z2 { + public static z8 j = new z8(); + public final z2 k = f.H1(new b3(new b9())); + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.h.l.z2 + public final /* synthetic */ y8 a() { + return this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/l/z9.java b/app/src/main/java/b/i/a/f/h/l/z9.java new file mode 100644 index 0000000000..3d726b2589 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/l/z9.java @@ -0,0 +1,25 @@ +package b.i.a.f.h.l; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class z9 implements w9 { + public static final l2 a; + + /* renamed from: b reason: collision with root package name */ + public static final l2 f1491b; + + static { + q2 q2Var = new q2(i2.a("com.google.android.gms.measurement")); + a = q2Var.c("measurement.collection.efficient_engagement_reporting_enabled_2", true); + f1491b = q2Var.c("measurement.collection.redundant_engagement_removal_enabled", false); + q2Var.a("measurement.id.collection.redundant_engagement_removal_enabled", 0); + } + + @Override // b.i.a.f.h.l.w9 + public final boolean a() { + return a.d().booleanValue(); + } + + @Override // b.i.a.f.h.l.w9 + public final boolean b() { + return f1491b.d().booleanValue(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/l/za.java b/app/src/main/java/b/i/a/f/h/l/za.java similarity index 89% rename from app/src/main/java/c/i/a/f/h/l/za.java rename to app/src/main/java/b/i/a/f/h/l/za.java index 9eaf3c24f6..a9249af959 100644 --- a/app/src/main/java/c/i/a/f/h/l/za.java +++ b/app/src/main/java/b/i/a/f/h/l/za.java @@ -1,4 +1,4 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public interface za { boolean a(); diff --git a/app/src/main/java/c/i/a/f/h/l/zb.java b/app/src/main/java/b/i/a/f/h/l/zb.java similarity index 82% rename from app/src/main/java/c/i/a/f/h/l/zb.java rename to app/src/main/java/b/i/a/f/h/l/zb.java index 23d71322ee..7e72748314 100644 --- a/app/src/main/java/c/i/a/f/h/l/zb.java +++ b/app/src/main/java/b/i/a/f/h/l/zb.java @@ -1,13 +1,13 @@ -package c.i.a.f.h.l; +package b.i.a.f.h.l; -import c.i.a.f.e.o.f; +import b.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class zb implements z2 { public static zb j = new zb(); public final z2 k = f.H1(new b3(new ac())); /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // c.i.a.f.h.l.z2 + @Override // b.i.a.f.h.l.z2 public final /* synthetic */ yb a() { return this.k.a(); } diff --git a/app/src/main/java/b/i/a/f/h/m/a.java b/app/src/main/java/b/i/a/f/h/m/a.java new file mode 100644 index 0000000000..3cb35eb53b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/a.java @@ -0,0 +1,36 @@ +package b.i.a.f.h.m; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +public class a implements IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1492b; + + public a(IBinder iBinder, String str) { + this.a = iBinder; + this.f1492b = str; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + public final Parcel e() { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1492b); + return obtain; + } + + public final void g(int i, Parcel parcel) throws RemoteException { + try { + this.a.transact(i, parcel, null, 1); + } finally { + parcel.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/b.java b/app/src/main/java/b/i/a/f/h/m/b.java new file mode 100644 index 0000000000..64aeca9ccc --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/b.java @@ -0,0 +1,36 @@ +package b.i.a.f.h.m; + +import android.os.Binder; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +public class b extends Binder implements IInterface { + public b(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + public boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + throw null; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + return e(i, parcel, parcel2, i2); + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/c.java b/app/src/main/java/b/i/a/f/h/m/c.java new file mode 100644 index 0000000000..c62bc68759 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/c.java @@ -0,0 +1,27 @@ +package b.i.a.f.h.m; + +import android.os.Parcel; +import android.os.Parcelable; +public class c { + public static final /* synthetic */ int a = 0; + + static { + c.class.getClassLoader(); + } + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } + + public static void b(Parcel parcel, Parcelable parcelable) { + if (parcelable == null) { + parcel.writeInt(0); + return; + } + parcel.writeInt(1); + parcelable.writeToParcel(parcel, 0); + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/d.java b/app/src/main/java/b/i/a/f/h/m/d.java new file mode 100644 index 0000000000..9a0d3c3a6f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/d.java @@ -0,0 +1,67 @@ +package b.i.a.f.h.m; + +import android.os.Parcel; +import android.os.ParcelUuid; +import android.os.Parcelable; +import com.google.android.gms.internal.nearby.zzgp; +public final class d implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzgp createFromParcel(Parcel parcel) { + int k2 = b.c.a.a0.d.k2(parcel); + ParcelUuid parcelUuid = null; + ParcelUuid parcelUuid2 = null; + ParcelUuid parcelUuid3 = null; + byte[] bArr = null; + byte[] bArr2 = null; + byte[] bArr3 = null; + byte[] bArr4 = null; + int i = 0; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 != 1) { + switch (i3) { + case 4: + parcelUuid = (ParcelUuid) b.c.a.a0.d.P(parcel, readInt, ParcelUuid.CREATOR); + continue; + case 5: + parcelUuid2 = (ParcelUuid) b.c.a.a0.d.P(parcel, readInt, ParcelUuid.CREATOR); + continue; + case 6: + parcelUuid3 = (ParcelUuid) b.c.a.a0.d.P(parcel, readInt, ParcelUuid.CREATOR); + continue; + case 7: + bArr = b.c.a.a0.d.N(parcel, readInt); + continue; + case 8: + bArr2 = b.c.a.a0.d.N(parcel, readInt); + continue; + case 9: + i2 = b.c.a.a0.d.E1(parcel, readInt); + continue; + case 10: + bArr3 = b.c.a.a0.d.N(parcel, readInt); + continue; + case 11: + bArr4 = b.c.a.a0.d.N(parcel, readInt); + continue; + default: + b.c.a.a0.d.b2(parcel, readInt); + continue; + } + } else { + i = b.c.a.a0.d.E1(parcel, readInt); + } + } + b.c.a.a0.d.e0(parcel, k2); + return new zzgp(i, parcelUuid, parcelUuid2, parcelUuid3, bArr, bArr2, i2, bArr3, bArr4); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzgp[] newArray(int i) { + return new zzgp[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/e.java b/app/src/main/java/b/i/a/f/h/m/e.java new file mode 100644 index 0000000000..7b24c7770f --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/e.java @@ -0,0 +1,145 @@ +package b.i.a.f.h.m; + +import android.os.ParcelUuid; +import android.util.SparseArray; +import androidx.annotation.Nullable; +import b.d.b.a.a; +import b.i.a.f.e.o.d; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.UUID; +public final class e { + public static final ParcelUuid a = ParcelUuid.fromString("00000000-0000-1000-8000-00805F9B34FB"); + + /* renamed from: b reason: collision with root package name */ + public final int f1493b; + @Nullable + public final List c; + @Nullable + public final SparseArray d; + @Nullable + public final Map e; + public final int f; + @Nullable + public final String g; + public final byte[] h; + + public e(@Nullable List list, @Nullable SparseArray sparseArray, @Nullable Map map, int i, int i2, @Nullable String str, byte[] bArr) { + this.c = list; + this.d = sparseArray; + this.e = map; + this.g = str; + this.f1493b = i; + this.f = i2; + this.h = bArr; + } + + public static int a(byte[] bArr, int i, int i2, int i3, List list) { + while (i2 > 0) { + list.add(c(b(bArr, i, i3))); + i2 -= i3; + i += i3; + } + return i; + } + + public static byte[] b(byte[] bArr, int i, int i2) { + byte[] bArr2 = new byte[i2]; + System.arraycopy(bArr, i, bArr2, 0, i2); + return bArr2; + } + + public static ParcelUuid c(byte[] bArr) { + long j; + int length = bArr.length; + if (length != 2 && length != 4 && length != 16) { + throw new IllegalArgumentException(a.f(38, "uuidBytes length invalid - ", length)); + } else if (length == 16) { + ByteBuffer order = ByteBuffer.wrap(bArr).order(ByteOrder.LITTLE_ENDIAN); + return new ParcelUuid(new UUID(order.getLong(8), order.getLong(0))); + } else { + if (length == 2) { + j = ((long) (bArr[0] & 255)) + ((long) ((bArr[1] & 255) << 8)); + } else { + j = ((long) ((bArr[3] & 255) << 24)) + ((long) (bArr[0] & 255)) + ((long) ((bArr[1] & 255) << 8)) + ((long) ((bArr[2] & 255) << 16)); + } + ParcelUuid parcelUuid = a; + return new ParcelUuid(new UUID(parcelUuid.getUuid().getMostSignificantBits() + (j << 32), parcelUuid.getUuid().getLeastSignificantBits())); + } + } + + public final boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof e)) { + return false; + } + return Arrays.equals(this.h, ((e) obj).h); + } + + public final int hashCode() { + return Arrays.hashCode(this.h); + } + + public final String toString() { + String str; + int i = this.f1493b; + String valueOf = String.valueOf(this.c); + SparseArray sparseArray = this.d; + StringBuilder sb = new StringBuilder(); + String str2 = "{}"; + if (sparseArray.size() <= 0) { + str = str2; + } else { + sb.append('{'); + for (int i2 = 0; i2 < sparseArray.size(); i2++) { + if (i2 > 0) { + sb.append(", "); + } + int keyAt = sparseArray.keyAt(i2); + byte[] valueAt = sparseArray.valueAt(i2); + sb.append(keyAt); + sb.append('='); + sb.append(valueAt == null ? null : d.a(valueAt, false)); + } + sb.append('}'); + str = sb.toString(); + } + Map map = this.e; + StringBuilder sb2 = new StringBuilder(); + if (map.keySet().size() > 0) { + sb2.append('{'); + int i3 = 0; + for (Map.Entry entry : map.entrySet()) { + if (i3 > 0) { + sb2.append(", "); + } + sb2.append(entry.getKey()); + sb2.append('='); + byte[] value = entry.getValue(); + sb2.append(value == null ? null : d.a(value, false)); + i3++; + } + sb2.append('}'); + str2 = sb2.toString(); + } + int i4 = this.f; + String str3 = this.g; + StringBuilder sb3 = new StringBuilder(a.b(str3, a.b(str2, a.b(str, valueOf.length() + 139)))); + sb3.append("BleRecord [mAdvertiseFlags="); + sb3.append(i); + sb3.append(", mServiceUuids="); + sb3.append(valueOf); + a.q0(sb3, ", mManufacturerSpecificData=", str, ", mServiceData=", str2); + sb3.append(", mTxPowerLevel="); + sb3.append(i4); + sb3.append(", mDeviceName="); + sb3.append(str3); + sb3.append("]"); + return sb3.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/f.java b/app/src/main/java/b/i/a/f/h/m/f.java new file mode 100644 index 0000000000..643f9a5486 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/f.java @@ -0,0 +1,37 @@ +package b.i.a.f.h.m; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.nearby.zzgs; +public final class f implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzgs createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 3) { + str = d.Q(parcel, readInt); + } else if (i2 == 6) { + str2 = d.Q(parcel, readInt); + } else if (i2 != 1000) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzgs(i, str, str2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzgs[] newArray(int i) { + return new zzgs[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/g.java b/app/src/main/java/b/i/a/f/h/m/g.java new file mode 100644 index 0000000000..b5711d518e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/g.java @@ -0,0 +1,40 @@ +package b.i.a.f.h.m; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.nearby.zzgu; +public final class g implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzgu createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + byte[] bArr = null; + int i2 = 0; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + i2 = d.E1(parcel, readInt); + } else if (i3 == 2) { + bArr = d.N(parcel, readInt); + } else if (i3 == 3) { + z2 = d.C1(parcel, readInt); + } else if (i3 != 1000) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzgu(i, i2, bArr, z2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzgu[] newArray(int i) { + return new zzgu[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/h.java b/app/src/main/java/b/i/a/f/h/m/h.java new file mode 100644 index 0000000000..cf5ed58da3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/h.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.m; + +import b.i.a.f.e.h.j.k; +import b.i.a.f.j.b.e.p0; +import com.google.android.gms.nearby.messages.MessageListener; +public final class h extends p0 { + public final k a; + + public h(k kVar) { + this.a = kVar; + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/i.java b/app/src/main/java/b/i/a/f/h/m/i.java new file mode 100644 index 0000000000..9b3db1f2ac --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/i.java @@ -0,0 +1,31 @@ +package b.i.a.f.h.m; + +import com.google.android.gms.nearby.messages.MessageListener; +import com.google.android.gms.nearby.messages.internal.Update; +import java.util.List; +public final class i extends l { + public final /* synthetic */ List a; + + public i(List list) { + this.a = list; + } + + @Override // b.i.a.f.e.h.j.k.b + public final void a(Object obj) { + MessageListener messageListener = (MessageListener) obj; + for (Update update : this.a) { + if (update.w0(1)) { + messageListener.onFound(update.l); + } + if (update.w0(2)) { + messageListener.onLost(update.l); + } + if (update.w0(4)) { + messageListener.onDistanceChanged(update.l, update.m); + } + if (update.w0(8)) { + messageListener.onBleSignalChanged(update.l, update.n); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/j.java b/app/src/main/java/b/i/a/f/h/m/j.java new file mode 100644 index 0000000000..4c093a84af --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/j.java @@ -0,0 +1,31 @@ +package b.i.a.f.h.m; + +import android.os.RemoteException; +import android.util.Log; +import b.i.a.f.e.h.j.e; +import b.i.a.f.e.h.j.k; +import b.i.a.f.j.b.e.s0; +import com.google.android.gms.common.api.Status; +public final class j extends s0 { + public final k> a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1494b = false; + + public j(k> kVar) { + this.a = kVar; + } + + public final synchronized void g(Status status) throws RemoteException { + if (!this.f1494b) { + this.a.a(new k(status)); + this.f1494b = true; + return; + } + String valueOf = String.valueOf(status); + StringBuilder sb = new StringBuilder(valueOf.length() + 28); + sb.append("Received multiple statuses: "); + sb.append(valueOf); + Log.wtf("NearbyMessagesCallbackWrapper", sb.toString(), new Exception()); + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/k.java b/app/src/main/java/b/i/a/f/h/m/k.java new file mode 100644 index 0000000000..56766257d6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/k.java @@ -0,0 +1,21 @@ +package b.i.a.f.h.m; + +import b.i.a.f.e.h.j.e; +import com.google.android.gms.common.api.Status; +public final class k extends l> { + public final /* synthetic */ Status a; + + public k(Status status) { + this.a = status; + } + + @Override // b.i.a.f.e.h.j.k.b + public final /* synthetic */ void a(Object obj) { + e eVar = (e) obj; + if (this.a.w0()) { + eVar.b(this.a); + } else { + eVar.a(this.a); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/l.java b/app/src/main/java/b/i/a/f/h/m/l.java new file mode 100644 index 0000000000..8a5784a923 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/l.java @@ -0,0 +1,8 @@ +package b.i.a.f.h.m; + +import b.i.a.f.e.h.j.k; +public abstract class l implements k.b { + @Override // b.i.a.f.e.h.j.k.b + public void b() { + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/m.java b/app/src/main/java/b/i/a/f/h/m/m.java new file mode 100644 index 0000000000..990ca766e7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/m.java @@ -0,0 +1,12 @@ +package b.i.a.f.h.m; + +import b.i.a.f.e.h.j.k; +import b.i.a.f.j.b.c; +import b.i.a.f.j.b.e.a1; +public final class m extends a1 { + public final k a; + + public m(k kVar) { + this.a = kVar; + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/n.java b/app/src/main/java/b/i/a/f/h/m/n.java new file mode 100644 index 0000000000..e3855f9836 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/n.java @@ -0,0 +1,15 @@ +package b.i.a.f.h.m; + +import b.i.a.f.j.b.c; +public final class n extends l { + public final /* synthetic */ boolean a; + + public n(boolean z2) { + this.a = z2; + } + + @Override // b.i.a.f.e.h.j.k.b + public final /* synthetic */ void a(Object obj) { + ((c) obj).onPermissionChanged(this.a); + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/o.java b/app/src/main/java/b/i/a/f/h/m/o.java new file mode 100644 index 0000000000..2f50a32488 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/o.java @@ -0,0 +1,20 @@ +package b.i.a.f.h.m; + +import java.lang.ref.WeakReference; +import java.util.Map; +import java.util.WeakHashMap; +public final class o { + public final Map> a = new WeakHashMap(); + + public final boolean a(K k) { + return b(k) != null; + } + + public final V b(K k) { + WeakReference weakReference = this.a.get(k); + if (weakReference == null) { + return null; + } + return weakReference.get(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/p.java b/app/src/main/java/b/i/a/f/h/m/p.java new file mode 100644 index 0000000000..fede5c6c33 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/p.java @@ -0,0 +1,50 @@ +package b.i.a.f.h.m; + +import android.content.ContentResolver; +import android.net.Uri; +import java.util.HashMap; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.regex.Pattern; +public class p { + public static final Uri a = Uri.parse("content://com.google.android.gsf.gservices"); + + /* renamed from: b reason: collision with root package name */ + public static final Uri f1495b = Uri.parse("content://com.google.android.gsf.gservices/prefix"); + public static final Pattern c = Pattern.compile("^(1|true|t|on|yes|y)$", 2); + public static final Pattern d = Pattern.compile("^(0|false|f|off|no|n)$", 2); + public static final AtomicBoolean e = new AtomicBoolean(); + public static HashMap f; + public static final HashMap g = new HashMap<>(); + public static final HashMap h = new HashMap<>(); + public static final HashMap i = new HashMap<>(); + public static final HashMap j = new HashMap<>(); + public static Object k; + public static boolean l; + public static String[] m = new String[0]; + + public static void a(ContentResolver contentResolver) { + if (f == null) { + e.set(false); + f = new HashMap<>(); + k = new Object(); + l = false; + contentResolver.registerContentObserver(a, true, new q()); + } else if (e.getAndSet(false)) { + f.clear(); + g.clear(); + h.clear(); + i.clear(); + j.clear(); + k = new Object(); + l = false; + } + } + + public static void b(Object obj, String str, String str2) { + synchronized (p.class) { + if (obj == k) { + f.put(str, str2); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/m/q.java b/app/src/main/java/b/i/a/f/h/m/q.java new file mode 100644 index 0000000000..f17497ed85 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/m/q.java @@ -0,0 +1,13 @@ +package b.i.a.f.h.m; + +import android.database.ContentObserver; +public final class q extends ContentObserver { + public q() { + super(null); + } + + @Override // android.database.ContentObserver + public final void onChange(boolean z2) { + p.e.set(true); + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/a.java b/app/src/main/java/b/i/a/f/h/n/a.java new file mode 100644 index 0000000000..1a053ea8a0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/a.java @@ -0,0 +1,121 @@ +package b.i.a.f.h.n; + +import android.content.Intent; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.Nullable; +import b.d.a.a.q; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; +import java.util.ArrayList; +import org.json.JSONException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class a { + public static final int a = Runtime.getRuntime().availableProcessors(); + + public static int a(Bundle bundle, String str) { + if (bundle == null) { + f(str, "Unexpected null bundle received!"); + return 6; + } + Object obj = bundle.get("RESPONSE_CODE"); + if (obj == null) { + e(str, "getResponseCodeFromBundle() got null response code, assuming OK"); + return 0; + } else if (obj instanceof Integer) { + return ((Integer) obj).intValue(); + } else { + String name = obj.getClass().getName(); + f(str, name.length() != 0 ? "Unexpected type for bundle response code: ".concat(name) : new String("Unexpected type for bundle response code: ")); + return 6; + } + } + + public static Bundle b(int i, boolean z2, String str, @Nullable String str2, ArrayList arrayList) { + Bundle bundle = new Bundle(); + if (i >= 9) { + bundle.putString("playBillingLibraryVersion", str); + } + if (i >= 9 && z2) { + bundle.putBoolean("enablePendingPurchases", true); + } + if (i >= 14) { + ArrayList arrayList2 = new ArrayList<>(); + int size = arrayList.size(); + boolean z3 = false; + for (int i2 = 0; i2 < size; i2++) { + arrayList.get(i2); + arrayList2.add(null); + z3 |= !TextUtils.isEmpty(null); + } + if (z3) { + bundle.putStringArrayList("SKU_OFFER_ID_TOKEN_LIST", arrayList2); + } + } + return bundle; + } + + public static BillingResult c(Intent intent, String str) { + if (intent == null) { + f("BillingHelper", "Got null intent!"); + BillingResult billingResult = new BillingResult(); + billingResult.a = 6; + billingResult.f1988b = "An internal error occurred."; + return billingResult; + } + int a2 = a(intent.getExtras(), str); + String d = d(intent.getExtras(), str); + BillingResult billingResult2 = new BillingResult(); + billingResult2.a = a2; + billingResult2.f1988b = d; + return billingResult2; + } + + public static String d(Bundle bundle, String str) { + if (bundle == null) { + f(str, "Unexpected null bundle received!"); + return ""; + } + Object obj = bundle.get("DEBUG_MESSAGE"); + if (obj == null) { + e(str, "getDebugMessageFromBundle() got null response code, assuming OK"); + return ""; + } else if (obj instanceof String) { + return (String) obj; + } else { + String name = obj.getClass().getName(); + f(str, name.length() != 0 ? "Unexpected type for debug message: ".concat(name) : new String("Unexpected type for debug message: ")); + return ""; + } + } + + public static void e(String str, String str2) { + if (Log.isLoggable(str, 2)) { + Log.v(str, str2); + } + } + + public static void f(String str, String str2) { + if (Log.isLoggable(str, 5)) { + Log.w(str, str2); + } + } + + public static Purchase g(String str, String str2) { + if (str == null || str2 == null) { + f("BillingHelper", "Received a bad purchase data."); + return null; + } + try { + return new Purchase(str, str2); + } catch (JSONException e) { + String valueOf = String.valueOf(e); + StringBuilder sb = new StringBuilder(valueOf.length() + 47); + sb.append("Got JSONException while parsing purchase data: "); + sb.append(valueOf); + f("BillingHelper", sb.toString()); + return null; + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/b.java b/app/src/main/java/b/i/a/f/h/n/b.java new file mode 100644 index 0000000000..d20b6592ea --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/b.java @@ -0,0 +1,143 @@ +package b.i.a.f.h.n; + +import android.os.Bundle; +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class b extends e implements d { + public b(IBinder iBinder) { + super(iBinder); + } + + @Override // b.i.a.f.h.n.d + public final Bundle F(int i, String str, String str2, String str3) throws RemoteException { + Parcel e = e(); + e.writeInt(3); + e.writeString(str); + e.writeString(str2); + e.writeString(str3); + Parcel g = g(4, e); + Bundle bundle = (Bundle) g.a(g, Bundle.CREATOR); + g.recycle(); + return bundle; + } + + @Override // b.i.a.f.h.n.d + public final Bundle G(int i, String str, String str2, String str3, String str4) throws RemoteException { + Parcel e = e(); + e.writeInt(3); + e.writeString(str); + e.writeString(str2); + e.writeString(str3); + e.writeString(null); + Parcel g = g(3, e); + Bundle bundle = (Bundle) g.a(g, Bundle.CREATOR); + g.recycle(); + return bundle; + } + + @Override // b.i.a.f.h.n.d + public final int N(int i, String str, String str2) throws RemoteException { + Parcel e = e(); + e.writeInt(i); + e.writeString(str); + e.writeString(str2); + Parcel g = g(1, e); + int readInt = g.readInt(); + g.recycle(); + return readInt; + } + + @Override // b.i.a.f.h.n.d + public final Bundle e0(int i, String str, String str2, String str3, String str4, Bundle bundle) throws RemoteException { + Parcel e = e(); + e.writeInt(i); + e.writeString(str); + e.writeString(str2); + e.writeString(str3); + e.writeString(null); + int i2 = g.a; + e.writeInt(1); + bundle.writeToParcel(e, 0); + Parcel g = g(8, e); + Bundle bundle2 = (Bundle) g.a(g, Bundle.CREATOR); + g.recycle(); + return bundle2; + } + + @Override // b.i.a.f.h.n.d + public final Bundle g0(int i, String str, String str2, Bundle bundle) throws RemoteException { + Parcel e = e(); + e.writeInt(3); + e.writeString(str); + e.writeString(str2); + int i2 = g.a; + e.writeInt(1); + bundle.writeToParcel(e, 0); + Parcel g = g(2, e); + Bundle bundle2 = (Bundle) g.a(g, Bundle.CREATOR); + g.recycle(); + return bundle2; + } + + @Override // b.i.a.f.h.n.d + public final Bundle n(int i, String str, String str2, Bundle bundle, Bundle bundle2) throws RemoteException { + Parcel e = e(); + e.writeInt(10); + e.writeString(str); + e.writeString(str2); + int i2 = g.a; + e.writeInt(1); + bundle.writeToParcel(e, 0); + e.writeInt(1); + bundle2.writeToParcel(e, 0); + Parcel g = g(901, e); + Bundle bundle3 = (Bundle) g.a(g, Bundle.CREATOR); + g.recycle(); + return bundle3; + } + + @Override // b.i.a.f.h.n.d + public final int p(int i, String str, String str2) throws RemoteException { + Parcel e = e(); + e.writeInt(3); + e.writeString(str); + e.writeString(str2); + Parcel g = g(5, e); + int readInt = g.readInt(); + g.recycle(); + return readInt; + } + + @Override // b.i.a.f.h.n.d + public final Bundle q(int i, String str, String str2, Bundle bundle) throws RemoteException { + Parcel e = e(); + e.writeInt(9); + e.writeString(str); + e.writeString(str2); + int i2 = g.a; + e.writeInt(1); + bundle.writeToParcel(e, 0); + Parcel g = g(12, e); + Bundle bundle2 = (Bundle) g.a(g, Bundle.CREATOR); + g.recycle(); + return bundle2; + } + + @Override // b.i.a.f.h.n.d + public final Bundle s0(int i, String str, String str2, String str3, Bundle bundle) throws RemoteException { + Parcel e = e(); + e.writeInt(9); + e.writeString(str); + e.writeString(str2); + e.writeString(str3); + int i2 = g.a; + e.writeInt(1); + bundle.writeToParcel(e, 0); + Parcel g = g(11, e); + Bundle bundle2 = (Bundle) g.a(g, Bundle.CREATOR); + g.recycle(); + return bundle2; + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/c.java b/app/src/main/java/b/i/a/f/h/n/c.java new file mode 100644 index 0000000000..91639f977b --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/c.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.n; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public abstract class c extends f implements d { + public static final /* synthetic */ int a = 0; +} diff --git a/app/src/main/java/b/i/a/f/h/n/d.java b/app/src/main/java/b/i/a/f/h/n/d.java new file mode 100644 index 0000000000..040a918429 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/d.java @@ -0,0 +1,25 @@ +package b.i.a.f.h.n; + +import android.os.Bundle; +import android.os.IInterface; +import android.os.RemoteException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public interface d extends IInterface { + Bundle F(int i, String str, String str2, String str3) throws RemoteException; + + Bundle G(int i, String str, String str2, String str3, String str4) throws RemoteException; + + int N(int i, String str, String str2) throws RemoteException; + + Bundle e0(int i, String str, String str2, String str3, String str4, Bundle bundle) throws RemoteException; + + Bundle g0(int i, String str, String str2, Bundle bundle) throws RemoteException; + + Bundle n(int i, String str, String str2, Bundle bundle, Bundle bundle2) throws RemoteException; + + int p(int i, String str, String str2) throws RemoteException; + + Bundle q(int i, String str, String str2, Bundle bundle) throws RemoteException; + + Bundle s0(int i, String str, String str2, String str3, Bundle bundle) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/n/e.java b/app/src/main/java/b/i/a/f/h/n/e.java new file mode 100644 index 0000000000..eb791ddfb6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/e.java @@ -0,0 +1,38 @@ +package b.i.a.f.h.n; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public class e implements IInterface { + public final IBinder a; + + public e(IBinder iBinder) { + this.a = iBinder; + } + + @Override // android.os.IInterface + public final IBinder asBinder() { + return this.a; + } + + public final Parcel e() { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken("com.android.vending.billing.IInAppBillingService"); + return obtain; + } + + public final Parcel g(int i, Parcel parcel) throws RemoteException { + parcel = Parcel.obtain(); + try { + this.a.transact(i, parcel, parcel, 0); + parcel.readException(); + return parcel; + } catch (RuntimeException e) { + throw e; + } finally { + parcel.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/f.java b/app/src/main/java/b/i/a/f/h/n/f.java new file mode 100644 index 0000000000..a633ddb287 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/f.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.n; + +import android.os.Binder; +import android.os.IInterface; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public class f extends Binder implements IInterface { +} diff --git a/app/src/main/java/b/i/a/f/h/n/g.java b/app/src/main/java/b/i/a/f/h/n/g.java new file mode 100644 index 0000000000..b7b469d157 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/g.java @@ -0,0 +1,19 @@ +package b.i.a.f.h.n; + +import android.os.Parcel; +import android.os.Parcelable; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class g { + public static final /* synthetic */ int a = 0; + + static { + g.class.getClassLoader(); + } + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/h.java b/app/src/main/java/b/i/a/f/h/n/h.java new file mode 100644 index 0000000000..a6cc51c4d1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/h.java @@ -0,0 +1,81 @@ +package b.i.a.f.h.n; + +import java.io.Serializable; +import java.lang.reflect.Array; +import java.util.AbstractCollection; +import java.util.Arrays; +import java.util.Collection; +import java.util.Objects; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public abstract class h extends AbstractCollection implements Serializable { + public static final Object[] j = new Object[0]; + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean add(E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean addAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + public abstract int c(Object[] objArr, int i); + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final void clear() { + throw new UnsupportedOperationException(); + } + + public abstract int d(); + + public abstract int e(); + + @NullableDecl + public abstract Object[] g(); + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean remove(Object obj) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean removeAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean retainAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public final Object[] toArray() { + return toArray(j); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public final T[] toArray(T[] tArr) { + Objects.requireNonNull(tArr); + int size = size(); + int length = tArr.length; + if (length < size) { + Object[] g = g(); + if (g != null) { + return (T[]) Arrays.copyOfRange(g, e(), d(), tArr.getClass()); + } + tArr = (T[]) ((Object[]) Array.newInstance(tArr.getClass().getComponentType(), size)); + } else if (length > size) { + tArr[size] = null; + } + c(tArr, 0); + return tArr; + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/i.java b/app/src/main/java/b/i/a/f/h/n/i.java new file mode 100644 index 0000000000..2bbad9e7e7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/i.java @@ -0,0 +1,54 @@ +package b.i.a.f.h.n; + +import b.i.a.f.e.o.f; +import java.util.NoSuchElementException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class i { + public final int j; + public int k; + public final k l; + + public i(k kVar, int i) { + int size = kVar.size(); + if (i < 0 || i > size) { + throw new IndexOutOfBoundsException(f.k2(i, size, "index")); + } + this.j = size; + this.k = i; + this.l = kVar; + } + + public final boolean hasNext() { + return this.k < this.j; + } + + public final boolean hasPrevious() { + return this.k > 0; + } + + public final Object next() { + if (hasNext()) { + int i = this.k; + this.k = i + 1; + return this.l.get(i); + } + throw new NoSuchElementException(); + } + + public final int nextIndex() { + return this.k; + } + + public final Object previous() { + if (hasPrevious()) { + int i = this.k - 1; + this.k = i; + return this.l.get(i); + } + throw new NoSuchElementException(); + } + + public final int previousIndex() { + return this.k - 1; + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/j.java b/app/src/main/java/b/i/a/f/h/n/j.java new file mode 100644 index 0000000000..0109712596 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/j.java @@ -0,0 +1,50 @@ +package b.i.a.f.h.n; + +import b.i.a.f.e.o.f; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class j extends k { + public final transient int l; + public final transient int m; + public final /* synthetic */ k zzc; + + public j(k kVar, int i, int i2) { + this.zzc = kVar; + this.l = i; + this.m = i2; + } + + @Override // b.i.a.f.h.n.h + public final int d() { + return this.zzc.e() + this.l + this.m; + } + + @Override // b.i.a.f.h.n.h + public final int e() { + return this.zzc.e() + this.l; + } + + @Override // b.i.a.f.h.n.h + public final Object[] g() { + return this.zzc.g(); + } + + @Override // java.util.List + public final Object get(int i) { + f.w1(i, this.m, "index"); + return this.zzc.get(i + this.l); + } + + @Override // b.i.a.f.h.n.k + /* renamed from: h */ + public final k subList(int i, int i2) { + f.i2(i, i2, this.m); + k kVar = this.zzc; + int i3 = this.l; + return kVar.subList(i + i3, i2 + i3); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public final int size() { + return this.m; + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/k.java b/app/src/main/java/b/i/a/f/h/n/k.java new file mode 100644 index 0000000000..05995a34e4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/k.java @@ -0,0 +1,150 @@ +package b.i.a.f.h.n; + +import b.i.a.f.e.o.f; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.ListIterator; +import java.util.RandomAccess; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public abstract class k extends h implements List, RandomAccess { + public static final m k = new i(l.l, 0); + + @Override // java.util.List + @Deprecated + public final void add(int i, E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.List + @Deprecated + public final boolean addAll(int i, Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // b.i.a.f.h.n.h + public int c(Object[] objArr, int i) { + int size = size(); + for (int i2 = 0; i2 < size; i2++) { + objArr[i2] = get(i2); + } + return size; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public final boolean contains(@NullableDecl Object obj) { + return indexOf(obj) >= 0; + } + + @Override // java.util.Collection, java.lang.Object, java.util.List + public final boolean equals(@NullableDecl Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof List) { + List list = (List) obj; + int size = size(); + if (size == list.size()) { + if (list instanceof RandomAccess) { + for (int i = 0; i < size; i++) { + if (f.d2(get(i), list.get(i))) { + } + } + return true; + } + Iterator it = iterator(); + Iterator it2 = list.iterator(); + while (true) { + if (it.hasNext()) { + if (it2.hasNext()) { + if (!f.d2(it.next(), it2.next())) { + break; + } + } else { + break; + } + } else if (!it2.hasNext()) { + return true; + } + } + } + } + return false; + } + + /* renamed from: h */ + public k subList(int i, int i2) { + f.i2(i, i2, size()); + int i3 = i2 - i; + return i3 == size() ? this : i3 == 0 ? (k) l.l : new j(this, i, i3); + } + + @Override // java.util.Collection, java.lang.Object, java.util.List + public final int hashCode() { + int size = size(); + int i = 1; + for (int i2 = 0; i2 < size; i2++) { + i = (i * 31) + get(i2).hashCode(); + } + return i; + } + + /* renamed from: i */ + public final m listIterator(int i) { + int size = size(); + if (i >= 0 && i <= size) { + return isEmpty() ? (m) k : new i(this, i); + } + throw new IndexOutOfBoundsException(f.k2(i, size, "index")); + } + + @Override // java.util.List + public final int indexOf(@NullableDecl Object obj) { + if (obj == null) { + return -1; + } + int size = size(); + for (int i = 0; i < size; i++) { + if (obj.equals(get(i))) { + return i; + } + } + return -1; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.List + public final /* bridge */ /* synthetic */ Iterator iterator() { + return listIterator(0); + } + + @Override // java.util.List + public final int lastIndexOf(@NullableDecl Object obj) { + if (obj == null) { + return -1; + } + for (int size = size() - 1; size >= 0; size--) { + if (obj.equals(get(size))) { + return size; + } + } + return -1; + } + + @Override // java.util.List + public final /* bridge */ /* synthetic */ ListIterator listIterator() { + return listIterator(0); + } + + @Override // java.util.List + @Deprecated + public final E remove(int i) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.List + @Deprecated + public final E set(int i, E e) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/l.java b/app/src/main/java/b/i/a/f/h/n/l.java new file mode 100644 index 0000000000..dabcc432e4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/l.java @@ -0,0 +1,44 @@ +package b.i.a.f.h.n; + +import b.i.a.f.e.o.f; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class l extends k { + public static final k l = new l(new Object[0]); + public final transient Object[] m; + + public l(Object[] objArr) { + this.m = objArr; + } + + @Override // b.i.a.f.h.n.k, b.i.a.f.h.n.h + public final int c(Object[] objArr, int i) { + System.arraycopy(this.m, 0, objArr, 0, 0); + return 0; + } + + @Override // b.i.a.f.h.n.h + public final int d() { + return 0; + } + + @Override // b.i.a.f.h.n.h + public final int e() { + return 0; + } + + @Override // b.i.a.f.h.n.h + public final Object[] g() { + return this.m; + } + + @Override // java.util.List + public final E get(int i) { + f.w1(i, 0, "index"); + return (E) this.m[i]; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public final int size() { + return 0; + } +} diff --git a/app/src/main/java/b/i/a/f/h/n/m.java b/app/src/main/java/b/i/a/f/h/n/m.java new file mode 100644 index 0000000000..416c4e448d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/n/m.java @@ -0,0 +1,23 @@ +package b.i.a.f.h.n; + +import java.util.Iterator; +import java.util.ListIterator; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public abstract class m implements ListIterator, Iterator { + @Override // java.util.ListIterator + @Deprecated + public final void add(E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.ListIterator, java.util.Iterator + public final void remove() { + throw new UnsupportedOperationException(); + } + + @Override // java.util.ListIterator + @Deprecated + public final void set(E e) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/a.java b/app/src/main/java/b/i/a/f/h/o/a.java new file mode 100644 index 0000000000..a14194d5fe --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/a.java @@ -0,0 +1,75 @@ +package b.i.a.f.h.o; + +import android.os.Binder; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.o.i; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.safetynet.SafeBrowsingData; +import com.google.android.gms.safetynet.zza; +import com.google.android.gms.safetynet.zzd; +import com.google.android.gms.safetynet.zzf; +import com.google.android.gms.safetynet.zzh; +public class a extends Binder implements IInterface { + public a(String str) { + attachInterface(this, str); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2; + if (i > 16777215) { + z2 = super.onTransact(i, parcel, parcel2, i2); + } else { + parcel.enforceInterface(getInterfaceDescriptor()); + z2 = false; + } + if (z2) { + return true; + } + f fVar = (f) this; + if (i == 1) { + Status status = (Status) b.a(parcel, Status.CREATOR); + zza zza = (zza) b.a(parcel, zza.CREATOR); + throw new UnsupportedOperationException(); + } else if (i == 2) { + parcel.readString(); + throw new UnsupportedOperationException(); + } else if (i == 3) { + Status status2 = (Status) b.a(parcel, Status.CREATOR); + SafeBrowsingData safeBrowsingData = (SafeBrowsingData) b.a(parcel, SafeBrowsingData.CREATOR); + throw new UnsupportedOperationException(); + } else if (i == 4) { + Status status3 = (Status) b.a(parcel, Status.CREATOR); + parcel.readInt(); + throw new UnsupportedOperationException(); + } else if (i == 6) { + ((k) fVar).a.b(new i.b((Status) b.a(parcel, Status.CREATOR), (zzf) b.a(parcel, zzf.CREATOR))); + return true; + } else if (i == 8) { + Status status4 = (Status) b.a(parcel, Status.CREATOR); + zzd zzd = (zzd) b.a(parcel, zzd.CREATOR); + throw new UnsupportedOperationException(); + } else if (i == 15) { + Status status5 = (Status) b.a(parcel, Status.CREATOR); + zzh zzh = (zzh) b.a(parcel, zzh.CREATOR); + throw new UnsupportedOperationException(); + } else if (i == 10) { + Status status6 = (Status) b.a(parcel, Status.CREATOR); + parcel.readInt(); + throw new UnsupportedOperationException(); + } else if (i != 11) { + return false; + } else { + Status status7 = (Status) b.a(parcel, Status.CREATOR); + throw new UnsupportedOperationException(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/b.java b/app/src/main/java/b/i/a/f/h/o/b.java new file mode 100644 index 0000000000..42ab4f1625 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/b.java @@ -0,0 +1,18 @@ +package b.i.a.f.h.o; + +import android.os.Parcel; +import android.os.Parcelable; +public class b { + public static final /* synthetic */ int a = 0; + + static { + b.class.getClassLoader(); + } + + public static T a(Parcel parcel, Parcelable.Creator creator) { + if (parcel.readInt() == 0) { + return null; + } + return creator.createFromParcel(parcel); + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/c.java b/app/src/main/java/b/i/a/f/h/o/c.java new file mode 100644 index 0000000000..b698c2cdb0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/c.java @@ -0,0 +1,3 @@ +package b.i.a.f.h.o; +public class c extends f { +} diff --git a/app/src/main/java/b/i/a/f/h/o/d.java b/app/src/main/java/b/i/a/f/h/o/d.java new file mode 100644 index 0000000000..b92cd36289 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/d.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.o; + +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import b.i.a.f.k.a; +public abstract class d extends b.i.a.f.e.h.j.d { + public d(c cVar) { + super(a.c, cVar); + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/e.java b/app/src/main/java/b/i/a/f/h/o/e.java new file mode 100644 index 0000000000..ec25172d9a --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/e.java @@ -0,0 +1,5 @@ +package b.i.a.f.h.o; + +import android.os.IInterface; +public interface e extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/h/o/f.java b/app/src/main/java/b/i/a/f/h/o/f.java new file mode 100644 index 0000000000..b872dbc238 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/f.java @@ -0,0 +1,6 @@ +package b.i.a.f.h.o; +public abstract class f extends a implements e { + public f() { + super("com.google.android.gms.safetynet.internal.ISafetyNetCallbacks"); + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/g.java b/app/src/main/java/b/i/a/f/h/o/g.java new file mode 100644 index 0000000000..483089aa8d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/g.java @@ -0,0 +1,7 @@ +package b.i.a.f.h.o; + +import android.os.IInterface; +import android.os.RemoteException; +public interface g extends IInterface { + void q0(e eVar, String str) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/h/o/h.java b/app/src/main/java/b/i/a/f/h/o/h.java new file mode 100644 index 0000000000..0c1e9114c5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/h.java @@ -0,0 +1,38 @@ +package b.i.a.f.h.o; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +public final class h implements g, IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1496b = "com.google.android.gms.safetynet.internal.ISafetyNetService"; + + public h(IBinder iBinder) { + this.a = iBinder; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + @Override // b.i.a.f.h.o.g + public final void q0(e eVar, String str) throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1496b); + int i = b.a; + obtain.writeStrongBinder(eVar == null ? null : (a) eVar); + obtain.writeString(str); + Parcel obtain2 = Parcel.obtain(); + try { + this.a.transact(6, obtain, obtain2, 0); + obtain2.readException(); + } finally { + obtain.recycle(); + obtain2.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/i.java b/app/src/main/java/b/i/a/f/h/o/i.java new file mode 100644 index 0000000000..e4ef876e7e --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/i.java @@ -0,0 +1,46 @@ +package b.i.a.f.h.o; + +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.h; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.safetynet.SafetyNetApi; +import com.google.android.gms.safetynet.zzf; +public class i implements SafetyNetApi { + + public static abstract class a extends d { + public e l = new k(this); + + public a(c cVar) { + super(cVar); + } + + @Override // com.google.android.gms.common.api.internal.BasePendingResult + public /* synthetic */ h d(Status status) { + return new b(status, null); + } + } + + public static class b implements SafetyNetApi.a { + public final Status j; + public final zzf k; + + public b(Status status, zzf zzf) { + this.j = status; + this.k = zzf; + } + + @Override // com.google.android.gms.safetynet.SafetyNetApi.a + public final String C() { + zzf zzf = this.k; + if (zzf == null) { + return null; + } + return zzf.j; + } + + @Override // b.i.a.f.e.h.h + public final Status b0() { + return this.j; + } + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/j.java b/app/src/main/java/b/i/a/f/h/o/j.java new file mode 100644 index 0000000000..516cca3f7d --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/j.java @@ -0,0 +1,20 @@ +package b.i.a.f.h.o; + +import android.os.RemoteException; +import b.i.a.f.e.h.c; +import b.i.a.f.h.o.i; +public final class j extends i.a { + public final /* synthetic */ String m; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public j(c cVar, String str) { + super(cVar); + this.m = str; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.f.e.h.a$b] */ + @Override // b.i.a.f.e.h.j.d + public final /* synthetic */ void k(l lVar) throws RemoteException { + lVar.w().q0(this.l, this.m); + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/k.java b/app/src/main/java/b/i/a/f/h/o/k.java new file mode 100644 index 0000000000..c2badf3cf8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/k.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.o; + +import b.i.a.f.h.o.i; +public final class k extends c { + public final /* synthetic */ i.a a; + + public k(i.a aVar) { + this.a = aVar; + } +} diff --git a/app/src/main/java/b/i/a/f/h/o/l.java b/app/src/main/java/b/i/a/f/h/o/l.java new file mode 100644 index 0000000000..0419f861f9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/o/l.java @@ -0,0 +1,38 @@ +package b.i.a.f.h.o; + +import android.content.Context; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +import b.i.a.f.e.k.d; +public final class l extends d { + public l(Context context, Looper looper, c cVar, c.a aVar, c.b bVar) { + super(context, looper, 45, cVar, aVar, bVar); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12200000; + } + + @Override // b.i.a.f.e.k.b + public final /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.safetynet.internal.ISafetyNetService"); + return queryLocalInterface instanceof g ? (g) queryLocalInterface : new h(iBinder); + } + + @Override // b.i.a.f.e.k.b + public final String x() { + return "com.google.android.gms.safetynet.internal.ISafetyNetService"; + } + + @Override // b.i.a.f.e.k.b + public final String y() { + return "com.google.android.gms.safetynet.service.START"; + } +} diff --git a/app/src/main/java/b/i/a/f/h/p/a.java b/app/src/main/java/b/i/a/f/h/p/a.java new file mode 100644 index 0000000000..c1dcf54b50 --- /dev/null +++ b/app/src/main/java/b/i/a/f/h/p/a.java @@ -0,0 +1,10 @@ +package b.i.a.f.h.p; + +import android.os.Handler; +import android.os.Looper; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class a extends Handler { + public a(Looper looper) { + super(looper); + } +} diff --git a/app/src/main/java/b/i/a/f/i/a/a.java b/app/src/main/java/b/i/a/f/i/a/a.java new file mode 100644 index 0000000000..9c4b34e063 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/a/a.java @@ -0,0 +1,49 @@ +package b.i.a.f.i.a; + +import android.os.BadParcelableException; +import android.os.NetworkOnMainThreadException; +import android.os.RemoteException; +import android.util.Log; +import android.util.Pair; +import b.i.a.f.h.l.a0; +import b.i.a.f.h.l.g; +import b.i.a.f.i.b.z5; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ +public class a { + public final g a; + + /* compiled from: com.google.android.gms:play-services-measurement-sdk-api@@18.0.0 */ + /* renamed from: b.i.a.f.i.a.a$a reason: collision with other inner class name */ + public interface AbstractC0111a extends z5 { + } + + public a(g gVar) { + this.a = gVar; + } + + public void a(AbstractC0111a aVar) { + g.c cVar; + g gVar = this.a; + Objects.requireNonNull(gVar); + synchronized (gVar.g) { + for (int i = 0; i < gVar.g.size(); i++) { + if (aVar.equals(gVar.g.get(i).first)) { + Log.w(gVar.c, "OnEventListener already registered."); + return; + } + } + cVar = new g.c(aVar); + gVar.g.add(new Pair<>(aVar, cVar)); + } + if (gVar.j != null) { + try { + gVar.j.registerOnMeasurementEventListener(cVar); + return; + } catch (BadParcelableException | NetworkOnMainThreadException | RemoteException | IllegalArgumentException | IllegalStateException | NullPointerException | SecurityException | UnsupportedOperationException unused) { + Log.w(gVar.c, "Failed to register event listener on calling thread. Trying again on the dynamite thread."); + } + } + gVar.e.execute(new a0(gVar, cVar)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a.java b/app/src/main/java/b/i/a/f/i/b/a.java new file mode 100644 index 0000000000..f4dcaa112d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a.java @@ -0,0 +1,85 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import androidx.annotation.WorkerThread; +import androidx.collection.ArrayMap; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class a extends z1 { + + /* renamed from: b reason: collision with root package name */ + public final Map f1497b = new ArrayMap(); + public final Map c = new ArrayMap(); + public long d; + + public a(u4 u4Var) { + super(u4Var); + } + + @WorkerThread + public final void t(long j) { + i7 w = q().w(false); + for (String str : this.f1497b.keySet()) { + w(str, j - this.f1497b.get(str).longValue(), w); + } + if (!this.f1497b.isEmpty()) { + u(j - this.d, w); + } + x(j); + } + + @WorkerThread + public final void u(long j, i7 i7Var) { + if (i7Var == null) { + g().n.a("Not logging ad exposure. No active activity"); + } else if (j < 1000) { + g().n.b("Not logging ad exposure. Less than 1000 ms. exposure", Long.valueOf(j)); + } else { + Bundle bundle = new Bundle(); + bundle.putLong("_xt", j); + h7.A(i7Var, bundle, true); + n().H("am", "_xa", bundle); + } + } + + public final void v(String str, long j) { + if (str == null || str.length() == 0) { + g().f.a("Ad unit id must be a non-empty string"); + } else { + f().v(new y0(this, str, j)); + } + } + + @WorkerThread + public final void w(String str, long j, i7 i7Var) { + if (i7Var == null) { + g().n.a("Not logging ad unit exposure. No active activity"); + } else if (j < 1000) { + g().n.b("Not logging ad unit exposure. Less than 1000 ms. exposure", Long.valueOf(j)); + } else { + Bundle bundle = new Bundle(); + bundle.putString("_ai", str); + bundle.putLong("_xt", j); + h7.A(i7Var, bundle, true); + n().H("am", "_xu", bundle); + } + } + + @WorkerThread + public final void x(long j) { + for (String str : this.f1497b.keySet()) { + this.f1497b.put(str, Long.valueOf(j)); + } + if (!this.f1497b.isEmpty()) { + this.d = j; + } + } + + public final void y(String str, long j) { + if (str == null || str.length() == 0) { + g().f.a("Ad unit id must be a non-empty string"); + } else { + f().v(new x(this, str, j)); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a0.java b/app/src/main/java/b/i/a/f/i/b/a0.java new file mode 100644 index 0000000000..cb3bca4f32 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class a0 implements h3 { + public static final h3 a = new a0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).n()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a1.java b/app/src/main/java/b/i/a/f/i/b/a1.java new file mode 100644 index 0000000000..6545c1d013 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.qa; +import b.i.a.f.h.l.ta; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class a1 implements h3 { + public static final h3 a = new a1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((ta) qa.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a2.java b/app/src/main/java/b/i/a/f/i/b/a2.java new file mode 100644 index 0000000000..306d004bda --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.a9; +import b.i.a.f.h.l.d9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class a2 implements h3 { + public static final h3 a = new a2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((d9) a9.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a3.java b/app/src/main/java/b/i/a/f/i/b/a3.java new file mode 100644 index 0000000000..efb4ab3ab5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a3.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class a3 implements Runnable { + public final /* synthetic */ long j; + public final /* synthetic */ a k; + + public a3(a aVar, long j) { + this.k = aVar; + this.j = j; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.x(this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a4.java b/app/src/main/java/b/i/a/f/i/b/a4.java new file mode 100644 index 0000000000..ff62aed461 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a4.java @@ -0,0 +1,417 @@ +package b.i.a.f.i.b; + +import android.text.TextUtils; +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class a4 { + public long A; + public long B; + public long C; + public String D; + public boolean E; + public long F; + public long G; + public final u4 a; + + /* renamed from: b reason: collision with root package name */ + public final String f1498b; + public String c; + public String d; + public String e; + public String f; + public long g; + public long h; + public long i; + public String j; + public long k; + public String l; + public long m; + public long n; + public boolean o; + public long p; + public boolean q; + public boolean r; + + /* renamed from: s reason: collision with root package name */ + public String f1499s; + public Boolean t; + public long u; + public List v; + public String w; + + /* renamed from: x reason: collision with root package name */ + public long f1500x; + + /* renamed from: y reason: collision with root package name */ + public long f1501y; + + /* renamed from: z reason: collision with root package name */ + public long f1502z; + + @WorkerThread + public a4(u4 u4Var, String str) { + Objects.requireNonNull(u4Var, "null reference"); + d.w(str); + this.a = u4Var; + this.f1498b = str; + u4Var.f().b(); + } + + @WorkerThread + public final void A(String str) { + this.a.f().b(); + this.E |= !t9.q0(this.f, str); + this.f = str; + } + + @WorkerThread + public final String B() { + this.a.f().b(); + return this.w; + } + + @WorkerThread + public final void C(long j) { + boolean z2 = true; + d.l(j >= 0); + this.a.f().b(); + boolean z3 = this.E; + if (this.g == j) { + z2 = false; + } + this.E = z2 | z3; + this.g = j; + } + + @WorkerThread + public final void D(String str) { + this.a.f().b(); + this.E |= !t9.q0(this.j, str); + this.j = str; + } + + @WorkerThread + public final String E() { + this.a.f().b(); + return this.e; + } + + @WorkerThread + public final void F(long j) { + this.a.f().b(); + this.E |= this.F != j; + this.F = j; + } + + @WorkerThread + public final void G(String str) { + this.a.f().b(); + this.E |= !t9.q0(this.l, str); + this.l = str; + } + + @WorkerThread + public final String H() { + this.a.f().b(); + return this.f; + } + + @WorkerThread + public final void I(long j) { + this.a.f().b(); + this.E |= this.G != j; + this.G = j; + } + + @WorkerThread + public final void J(String str) { + this.a.f().b(); + this.E |= !t9.q0(this.D, str); + this.D = str; + } + + @WorkerThread + public final long K() { + this.a.f().b(); + return this.h; + } + + @WorkerThread + public final long L() { + this.a.f().b(); + return this.i; + } + + @WorkerThread + public final String M() { + this.a.f().b(); + return this.j; + } + + @WorkerThread + public final long N() { + this.a.f().b(); + return this.k; + } + + @WorkerThread + public final String O() { + this.a.f().b(); + return this.l; + } + + @WorkerThread + public final long P() { + this.a.f().b(); + return this.m; + } + + @WorkerThread + public final long Q() { + this.a.f().b(); + return this.n; + } + + @WorkerThread + public final void R(long j) { + this.a.f().b(); + this.E |= this.p != j; + this.p = j; + } + + @WorkerThread + public final long S() { + this.a.f().b(); + return this.u; + } + + @WorkerThread + public final boolean T() { + this.a.f().b(); + return this.o; + } + + @WorkerThread + public final long U() { + this.a.f().b(); + return this.g; + } + + @WorkerThread + public final long V() { + this.a.f().b(); + return this.F; + } + + @WorkerThread + public final long W() { + this.a.f().b(); + return this.G; + } + + @WorkerThread + public final void X() { + this.a.f().b(); + long j = this.g + 1; + if (j > 2147483647L) { + this.a.g().i.b("Bundle index overflow. appId", q3.s(this.f1498b)); + j = 0; + } + this.E = true; + this.g = j; + } + + @WorkerThread + public final void a(long j) { + this.a.f().b(); + this.E |= this.h != j; + this.h = j; + } + + @WorkerThread + public final void b(Boolean bool) { + this.a.f().b(); + boolean z2 = this.E; + Boolean bool2 = this.t; + this.E = z2 | (!((bool2 == null && bool == null) ? true : bool2 == null ? false : bool2.equals(bool))); + this.t = bool; + } + + @WorkerThread + public final void c(String str) { + this.a.f().b(); + this.E |= !t9.q0(this.c, str); + this.c = str; + } + + @WorkerThread + public final void d(@Nullable List list) { + this.a.f().b(); + List list2 = this.v; + if (!((list2 == null && list == null) ? true : list2 == null ? false : list2.equals(list))) { + this.E = true; + this.v = list != null ? new ArrayList(list) : null; + } + } + + @WorkerThread + public final void e(boolean z2) { + this.a.f().b(); + this.E |= this.o != z2; + this.o = z2; + } + + @WorkerThread + public final String f() { + this.a.f().b(); + String str = this.D; + J(null); + return str; + } + + @WorkerThread + public final long g() { + this.a.f().b(); + return this.p; + } + + @WorkerThread + public final boolean h() { + this.a.f().b(); + return this.q; + } + + @WorkerThread + public final boolean i() { + this.a.f().b(); + return this.r; + } + + @WorkerThread + public final Boolean j() { + this.a.f().b(); + return this.t; + } + + @Nullable + @WorkerThread + public final List k() { + this.a.f().b(); + return this.v; + } + + @WorkerThread + public final void l(long j) { + this.a.f().b(); + this.E |= this.i != j; + this.i = j; + } + + @WorkerThread + public final void m(String str) { + this.a.f().b(); + if (TextUtils.isEmpty(str)) { + str = null; + } + this.E |= !t9.q0(this.d, str); + this.d = str; + } + + @WorkerThread + public final void n(boolean z2) { + this.a.f().b(); + this.E |= this.q != z2; + this.q = z2; + } + + @WorkerThread + public final String o() { + this.a.f().b(); + return this.f1498b; + } + + @WorkerThread + public final void p(long j) { + this.a.f().b(); + this.E |= this.k != j; + this.k = j; + } + + @WorkerThread + public final void q(String str) { + this.a.f().b(); + if (TextUtils.isEmpty(str)) { + str = null; + } + this.E |= !t9.q0(this.f1499s, str); + this.f1499s = str; + } + + @WorkerThread + public final void r(boolean z2) { + this.a.f().b(); + this.E |= this.r != z2; + this.r = z2; + } + + @WorkerThread + public final String s() { + this.a.f().b(); + return this.c; + } + + @WorkerThread + public final void t(long j) { + this.a.f().b(); + this.E |= this.m != j; + this.m = j; + } + + @WorkerThread + public final void u(String str) { + this.a.f().b(); + if (TextUtils.isEmpty(str)) { + str = null; + } + this.E |= !t9.q0(this.w, str); + this.w = str; + } + + @WorkerThread + public final String v() { + this.a.f().b(); + return this.d; + } + + @WorkerThread + public final void w(long j) { + this.a.f().b(); + this.E |= this.n != j; + this.n = j; + } + + @WorkerThread + public final void x(String str) { + this.a.f().b(); + this.E |= !t9.q0(this.e, str); + this.e = str; + } + + @WorkerThread + public final String y() { + this.a.f().b(); + return this.f1499s; + } + + @WorkerThread + public final void z(long j) { + this.a.f().b(); + this.E |= this.u != j; + this.u = j; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a5.java b/app/src/main/java/b/i/a/f/i/b/a5.java new file mode 100644 index 0000000000..c0e23ff832 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a5.java @@ -0,0 +1,29 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public abstract class a5 extends z1 { + + /* renamed from: b reason: collision with root package name */ + public boolean f1503b; + + public a5(u4 u4Var) { + super(u4Var); + this.a.F++; + } + + public final void t() { + if (!this.f1503b) { + throw new IllegalStateException("Not initialized"); + } + } + + public final void u() { + if (this.f1503b) { + throw new IllegalStateException("Can't initialize twice"); + } else if (!v()) { + this.a.G.incrementAndGet(); + this.f1503b = true; + } + } + + public abstract boolean v(); +} diff --git a/app/src/main/java/b/i/a/f/i/b/a6.java b/app/src/main/java/b/i/a/f/i/b/a6.java new file mode 100644 index 0000000000..97b2333da8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a6.java @@ -0,0 +1,23 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.fc; +import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService; +/* compiled from: com.google.android.gms:play-services-measurement-sdk@@18.0.0 */ +public final class a6 implements Runnable { + public final /* synthetic */ fc j; + public final /* synthetic */ AppMeasurementDynamiteService k; + + public a6(AppMeasurementDynamiteService appMeasurementDynamiteService, fc fcVar) { + this.k = appMeasurementDynamiteService; + this.j = fcVar; + } + + @Override // java.lang.Runnable + public final void run() { + q7 x2 = this.k.a.x(); + fc fcVar = this.j; + x2.b(); + x2.t(); + x2.z(new u7(x2, x2.I(false), fcVar)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a7.java b/app/src/main/java/b/i/a/f/i/b/a7.java new file mode 100644 index 0000000000..0c007e452e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a7.java @@ -0,0 +1,32 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.fc; +import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService; +/* compiled from: com.google.android.gms:play-services-measurement-sdk@@18.0.0 */ +public final class a7 implements Runnable { + public final /* synthetic */ fc j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ boolean m; + public final /* synthetic */ AppMeasurementDynamiteService n; + + public a7(AppMeasurementDynamiteService appMeasurementDynamiteService, fc fcVar, String str, String str2, boolean z2) { + this.n = appMeasurementDynamiteService; + this.j = fcVar; + this.k = str; + this.l = str2; + this.m = z2; + } + + @Override // java.lang.Runnable + public final void run() { + q7 x2 = this.n.a.x(); + fc fcVar = this.j; + String str = this.k; + String str2 = this.l; + boolean z2 = this.m; + x2.b(); + x2.t(); + x2.z(new s7(x2, str, str2, z2, x2.I(false), fcVar)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a8.java b/app/src/main/java/b/i/a/f/i/b/a8.java new file mode 100644 index 0000000000..beb5eec632 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a8.java @@ -0,0 +1,32 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.os.RemoteException; +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class a8 implements Runnable { + public final /* synthetic */ Bundle j; + public final /* synthetic */ zzn k; + public final /* synthetic */ q7 l; + + public a8(q7 q7Var, Bundle bundle, zzn zzn) { + this.l = q7Var; + this.j = bundle; + this.k = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + q7 q7Var = this.l; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Failed to send default event parameters to service"); + return; + } + try { + i3Var.p0(this.j, this.k); + } catch (RemoteException e) { + this.l.g().f.b("Failed to send default event parameters to service", e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/a9.java b/app/src/main/java/b/i/a/f/i/b/a9.java new file mode 100644 index 0000000000..622e9b950a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/a9.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class a9 implements Runnable { + public final b9 j; + + public a9(b9 b9Var) { + this.j = b9Var; + } + + @Override // java.lang.Runnable + public final void run() { + b9 b9Var = this.j; + x8 x8Var = b9Var.l; + long j = b9Var.j; + long j2 = b9Var.k; + x8Var.f1564b.b(); + x8Var.f1564b.g().m.a("Application going to the background"); + boolean z2 = true; + if (x8Var.f1564b.a.h.o(p.v0)) { + x8Var.f1564b.l().f1510x.a(true); + } + Bundle bundle = new Bundle(); + if (!x8Var.f1564b.a.h.z().booleanValue()) { + x8Var.f1564b.e.c.c(); + if (x8Var.f1564b.a.h.o(p.m0)) { + d9 d9Var = x8Var.f1564b.e; + d9Var.f1513b = j2; + bundle.putLong("_et", j2 - d9Var.f1513b); + h7.A(x8Var.f1564b.q().w(true), bundle, true); + } else { + z2 = false; + } + x8Var.f1564b.w(false, z2, j2); + } + x8Var.f1564b.n().E("auto", "_ab", j, bundle); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/aa.java b/app/src/main/java/b/i/a/f/i/b/aa.java new file mode 100644 index 0000000000..fb0d61b6d5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/aa.java @@ -0,0 +1,60 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.n0; +import b.i.a.f.h.l.p0; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final /* synthetic */ class aa { + public static final /* synthetic */ int[] a; + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ int[] f1504b; + + static { + n0.a.values(); + int[] iArr = new int[5]; + f1504b = iArr; + try { + iArr[1] = 1; + } catch (NoSuchFieldError unused) { + } + try { + f1504b[2] = 2; + } catch (NoSuchFieldError unused2) { + } + try { + f1504b[3] = 3; + } catch (NoSuchFieldError unused3) { + } + try { + f1504b[4] = 4; + } catch (NoSuchFieldError unused4) { + } + p0.b.values(); + int[] iArr2 = new int[7]; + a = iArr2; + try { + iArr2[1] = 1; + } catch (NoSuchFieldError unused5) { + } + try { + a[2] = 2; + } catch (NoSuchFieldError unused6) { + } + try { + a[3] = 3; + } catch (NoSuchFieldError unused7) { + } + try { + a[4] = 4; + } catch (NoSuchFieldError unused8) { + } + try { + a[5] = 5; + } catch (NoSuchFieldError unused9) { + } + try { + a[6] = 6; + } catch (NoSuchFieldError unused10) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b.java b/app/src/main/java/b/i/a/f/i/b/b.java new file mode 100644 index 0000000000..e9306f15e5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b.java @@ -0,0 +1,10 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class b implements e { + public static final e a = new b(); + + @Override // b.i.a.f.i.b.e + public final String i(String str, String str2) { + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b0.java b/app/src/main/java/b/i/a/f/i/b/b0.java new file mode 100644 index 0000000000..395199a40d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class b0 implements h3 { + public static final h3 a = new b0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).g()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b1.java b/app/src/main/java/b/i/a/f/i/b/b1.java new file mode 100644 index 0000000000..6ab26dc745 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ba; +import b.i.a.f.h.l.y9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class b1 implements h3 { + public static final h3 a = new b1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ba) y9.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b2.java b/app/src/main/java/b/i/a/f/i/b/b2.java new file mode 100644 index 0000000000..3eeb65ab74 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m9; +import b.i.a.f.h.l.p9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class b2 implements h3 { + public static final h3 a = new b2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((p9) m9.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b3.java b/app/src/main/java/b/i/a/f/i/b/b3.java new file mode 100644 index 0000000000..21f936335e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b3.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.x7; +import b.i.a.f.h.l.z7; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class b3 implements h3 { + public static final h3 a = new b3(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((z7) x7.j.a()).d()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b4.java b/app/src/main/java/b/i/a/f/i/b/b4.java new file mode 100644 index 0000000000..ef327a89ba --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b4.java @@ -0,0 +1,54 @@ +package b.i.a.f.i.b; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import androidx.annotation.MainThread; +import androidx.annotation.WorkerThread; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public class b4 extends BroadcastReceiver { + public final k9 a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1505b; + public boolean c; + + public b4(k9 k9Var) { + this.a = k9Var; + } + + @WorkerThread + public final void a() { + this.a.P(); + this.a.f().b(); + this.a.f().b(); + if (this.f1505b) { + this.a.g().n.a("Unregistering connectivity change receiver"); + this.f1505b = false; + this.c = false; + try { + this.a.k.f1555b.unregisterReceiver(this); + } catch (IllegalArgumentException e) { + this.a.g().f.b("Failed to unregister the network broadcast receiver", e); + } + } + } + + @Override // android.content.BroadcastReceiver + @MainThread + public void onReceive(Context context, Intent intent) { + this.a.P(); + String action = intent.getAction(); + this.a.g().n.b("NetworkBroadcastReceiver received action", action); + if ("android.net.conn.CONNECTIVITY_CHANGE".equals(action)) { + boolean u = this.a.J().u(); + if (this.c != u) { + this.c = u; + this.a.f().v(new e4(this, u)); + return; + } + return; + } + this.a.g().i.b("NetworkBroadcastReceiver received unknown action", action); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b5.java b/app/src/main/java/b/i/a/f/i/b/b5.java new file mode 100644 index 0000000000..4d115edb38 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b5.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class b5 implements Runnable { + public final /* synthetic */ zzz j; + public final /* synthetic */ zzn k; + public final /* synthetic */ z4 l; + + public b5(z4 z4Var, zzz zzz, zzn zzn) { + this.l = z4Var; + this.j = zzz; + this.k = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + this.l.a.R(); + if (this.j.l.w0() == null) { + this.l.a.F(this.j, this.k); + } else { + this.l.a.q(this.j, this.k); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b6.java b/app/src/main/java/b/i/a/f/i/b/b6.java new file mode 100644 index 0000000000..9800f4cf1a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b6.java @@ -0,0 +1,76 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import b.i.a.f.h.l.ea; +import java.util.Iterator; +import java.util.Objects; +import java.util.TreeSet; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class b6 implements Runnable { + public final c6 j; + public final Bundle k; + + public b6(c6 c6Var, Bundle bundle) { + this.j = c6Var; + this.k = bundle; + } + + @Override // java.lang.Runnable + public final void run() { + boolean z2; + c6 c6Var = this.j; + Bundle bundle = this.k; + Objects.requireNonNull(c6Var); + if (ea.b() && c6Var.a.h.o(p.z0)) { + if (bundle == null) { + c6Var.l().D.b(new Bundle()); + return; + } + Bundle a = c6Var.l().D.a(); + for (String str : bundle.keySet()) { + Object obj = bundle.get(str); + if (obj != null && !(obj instanceof String) && !(obj instanceof Long) && !(obj instanceof Double)) { + c6Var.e(); + if (t9.W(obj)) { + c6Var.e().R(c6Var.p, 27, null, null, 0); + } + c6Var.g().k.c("Invalid default event parameter type. Name, value", str, obj); + } else if (t9.r0(str)) { + c6Var.g().k.b("Invalid default event parameter name. Name", str); + } else if (obj == null) { + a.remove(str); + } else if (c6Var.e().b0("param", str, 100, obj)) { + c6Var.e().I(a, str, obj); + } + } + c6Var.e(); + int t = c6Var.a.h.t(); + if (a.size() > t) { + Iterator it = new TreeSet(a.keySet()).iterator(); + int i = 0; + while (true) { + z2 = true; + if (!it.hasNext()) { + break; + } + String str2 = (String) it.next(); + i++; + if (i > t) { + a.remove(str2); + } + } + } else { + z2 = false; + } + if (z2) { + c6Var.e().R(c6Var.p, 26, null, null, 0); + c6Var.g().k.a("Too many default event parameters set. Discarding beyond event parameter limit"); + } + c6Var.l().D.b(a); + q7 p = c6Var.p(); + p.b(); + p.t(); + p.z(new a8(p, a, p.I(false))); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b7.java b/app/src/main/java/b/i/a/f/i/b/b7.java new file mode 100644 index 0000000000..ec58bf6d7c --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b7.java @@ -0,0 +1,33 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import java.util.List; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface b7 { + String a(); + + String b(); + + String c(); + + String d(); + + long e(); + + void f(Bundle bundle); + + void g(String str); + + int h(String str); + + List i(String str, String str2); + + void j(String str); + + Map k(String str, String str2, boolean z2); + + void l(String str, String str2, Bundle bundle); + + void m(String str, String str2, Bundle bundle); +} diff --git a/app/src/main/java/b/i/a/f/i/b/b8.java b/app/src/main/java/b/i/a/f/i/b/b8.java new file mode 100644 index 0000000000..88191d86c8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b8.java @@ -0,0 +1,30 @@ +package b.i.a.f.i.b; + +import android.os.RemoteException; +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class b8 implements Runnable { + public final /* synthetic */ zzn j; + public final /* synthetic */ q7 k; + + public b8(q7 q7Var, zzn zzn) { + this.k = q7Var; + this.j = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + q7 q7Var = this.k; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Failed to send measurementEnabled to service"); + return; + } + try { + i3Var.f0(this.j); + this.k.F(); + } catch (RemoteException e) { + this.k.g().f.b("Failed to send measurementEnabled to the service", e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/b9.java b/app/src/main/java/b/i/a/f/i/b/b9.java new file mode 100644 index 0000000000..33e08941cf --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/b9.java @@ -0,0 +1,18 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class b9 implements Runnable { + public long j; + public long k; + public final /* synthetic */ x8 l; + + public b9(x8 x8Var, long j, long j2) { + this.l = x8Var; + this.j = j; + this.k = j2; + } + + @Override // java.lang.Runnable + public final void run() { + this.l.f1564b.f().v(new a9(this)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/ba.java b/app/src/main/java/b/i/a/f/i/b/ba.java new file mode 100644 index 0000000000..88fbf276cb --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/ba.java @@ -0,0 +1,892 @@ +package b.i.a.f.i.b; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.sqlite.SQLiteException; +import androidx.annotation.WorkerThread; +import androidx.collection.ArrayMap; +import b.c.a.a0.d; +import b.i.a.f.h.l.a1; +import b.i.a.f.h.l.f9; +import b.i.a.f.h.l.g1; +import b.i.a.f.h.l.h1; +import b.i.a.f.h.l.i1; +import b.i.a.f.h.l.l0; +import b.i.a.f.h.l.l9; +import b.i.a.f.h.l.o0; +import b.i.a.f.h.l.u4; +import b.i.a.f.h.l.y0; +import b.i.a.f.h.l.z0; +import java.io.IOException; +import java.util.ArrayList; +import java.util.BitSet; +import java.util.Collections; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class ba extends i9 { + public String d; + public Set e; + public Map f; + public Long g; + public Long h; + + public ba(k9 k9Var) { + super(k9Var); + } + + @Override // b.i.a.f.i.b.i9 + public final boolean p() { + return false; + } + + public final da s(int i) { + if (this.f.containsKey(Integer.valueOf(i))) { + return this.f.get(Integer.valueOf(i)); + } + da daVar = new da(this, this.d, null); + this.f.put(Integer.valueOf(i), daVar); + return daVar; + } + + /* JADX WARNING: Code restructure failed: missing block: B:140:0x0314, code lost: + r0 = th; + */ + /* JADX WARNING: Code restructure failed: missing block: B:141:0x0315, code lost: + r7 = null; + */ + /* JADX WARNING: Code restructure failed: missing block: B:203:0x0472, code lost: + r7.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:293:0x0711, code lost: + if (r62.a.h.u(r62.d, b.i.a.f.i.b.p.F0) == false) goto L_0x0716; + */ + /* JADX WARNING: Removed duplicated region for block: B:105:0x0262 */ + /* JADX WARNING: Removed duplicated region for block: B:109:0x026d */ + /* JADX WARNING: Removed duplicated region for block: B:140:0x0314 A[ExcHandler: all (th java.lang.Throwable), Splitter:B:119:0x02ba] */ + /* JADX WARNING: Removed duplicated region for block: B:146:0x0332 A[Catch:{ all -> 0x046e }] */ + /* JADX WARNING: Removed duplicated region for block: B:152:0x034a */ + /* JADX WARNING: Removed duplicated region for block: B:157:0x035c */ + /* JADX WARNING: Removed duplicated region for block: B:203:0x0472 */ + /* JADX WARNING: Removed duplicated region for block: B:211:0x0487 */ + /* JADX WARNING: Removed duplicated region for block: B:251:0x0577 */ + /* JADX WARNING: Removed duplicated region for block: B:279:0x0639 */ + /* JADX WARNING: Removed duplicated region for block: B:319:0x07d8 */ + /* JADX WARNING: Removed duplicated region for block: B:368:0x0959 */ + /* JADX WARNING: Removed duplicated region for block: B:384:0x09e0 */ + /* JADX WARNING: Removed duplicated region for block: B:422:0x057e A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:59:0x017c */ + /* JADX WARNING: Removed duplicated region for block: B:63:0x0184 */ + /* JADX WARNING: Removed duplicated region for block: B:72:0x01bb A[Catch:{ SQLiteException -> 0x022c }] */ + /* JADX WARNING: Removed duplicated region for block: B:79:0x01db */ + @WorkerThread + public final List t(String str, List list, List list2, Long l, Long l2) { + int i; + int i2; + boolean z2; + ArrayMap arrayMap; + g q; + String str2; + Cursor cursor; + Throwable th; + ArrayMap arrayMap2; + String str3; + SQLiteException e; + ArrayMap arrayMap3; + String str4; + o0 next; + Integer num; + l lVar; + ca caVar; + Iterator it; + ArrayMap arrayMap4; + Iterator it2; + String str5; + ArrayMap arrayMap5; + Iterator it3; + List list3; + boolean z3; + ArrayMap arrayMap6; + Iterator it4; + Map map; + Iterator it5; + Cursor cursor2; + SQLiteException e2; + Map map2; + Cursor cursor3; + SQLiteException e3; + ArrayMap arrayMap7; + Cursor cursor4; + Throwable th2; + Cursor cursor5; + SQLiteException e4; + d.w(str); + Objects.requireNonNull(list, "null reference"); + Objects.requireNonNull(list2, "null reference"); + this.d = str; + this.e = new HashSet(); + this.f = new ArrayMap(); + this.g = l; + this.h = l2; + Iterator it6 = list.iterator(); + while (true) { + i = 1; + i2 = 0; + if (it6.hasNext()) { + if ("_s".equals(it6.next().F())) { + z2 = true; + break; + } + } else { + z2 = false; + break; + } + } + boolean z4 = f9.b() && this.a.h.u(this.d, p.f1539c0); + boolean z5 = f9.b() && this.a.h.u(this.d, p.f1538b0); + if (z2) { + g q2 = q(); + String str6 = this.d; + q2.n(); + q2.b(); + d.w(str6); + ContentValues contentValues = new ContentValues(); + contentValues.put("current_session_count", (Integer) 0); + try { + q2.t().update("events", contentValues, "app_id = ?", new String[]{str6}); + } catch (SQLiteException e5) { + q2.g().f.c("Error resetting session-scoped event counts. appId", q3.s(str6), e5); + } + } + Map emptyMap = Collections.emptyMap(); + if (z5 && z4) { + g q3 = q(); + String str7 = this.d; + Objects.requireNonNull(q3); + d.w(str7); + ArrayMap arrayMap8 = new ArrayMap(); + try { + cursor5 = q3.t().query("event_filters", new String[]{"audience_id", "data"}, "app_id=?", new String[]{str7}, null, null, null); + try { + } catch (SQLiteException e6) { + e4 = e6; + try { + q3.g().f.c("Database error querying filters. appId", q3.s(str7), e4); + emptyMap = Collections.emptyMap(); + if (cursor5 != null) { + } + arrayMap = emptyMap; + q = q(); + str2 = this.d; + q.n(); + q.b(); + d.w(str2); + cursor3 = q.t().query("audience_filter_values", new String[]{"audience_id", "current_results"}, "app_id=?", new String[]{str2}, null, null, null); + if (!cursor3.moveToFirst()) { + } + } catch (Throwable th3) { + th2 = th3; + cursor4 = cursor5; + if (cursor4 != null) { + cursor4.close(); + } + throw th2; + } + } + } catch (SQLiteException e7) { + e4 = e7; + cursor5 = null; + q3.g().f.c("Database error querying filters. appId", q3.s(str7), e4); + emptyMap = Collections.emptyMap(); + if (cursor5 != null) { + cursor5.close(); + } + arrayMap = emptyMap; + q = q(); + str2 = this.d; + q.n(); + q.b(); + d.w(str2); + cursor3 = q.t().query("audience_filter_values", new String[]{"audience_id", "current_results"}, "app_id=?", new String[]{str2}, null, null, null); + if (!cursor3.moveToFirst()) { + } + } catch (Throwable th4) { + th2 = th4; + cursor4 = null; + if (cursor4 != null) { + } + throw th2; + } + if (!cursor5.moveToFirst()) { + emptyMap = Collections.emptyMap(); + cursor5.close(); + } else { + while (true) { + try { + l0 l0Var = (l0) ((u4) ((l0.a) q9.x(l0.I(), cursor5.getBlob(1))).p()); + if (l0Var.C()) { + int i3 = cursor5.getInt(i2); + List list4 = arrayMap8.get(Integer.valueOf(i3)); + if (list4 == null) { + list4 = new ArrayList(); + arrayMap8.put(Integer.valueOf(i3), list4); + } + list4.add(l0Var); + } + } catch (IOException e8) { + q3.g().f.c("Failed to merge filter. appId", q3.s(str7), e8); + } + if (!cursor5.moveToNext()) { + break; + } + i2 = 0; + } + cursor5.close(); + arrayMap = arrayMap8; + q = q(); + str2 = this.d; + q.n(); + q.b(); + d.w(str2); + cursor3 = q.t().query("audience_filter_values", new String[]{"audience_id", "current_results"}, "app_id=?", new String[]{str2}, null, null, null); + if (!cursor3.moveToFirst()) { + ArrayMap arrayMap9 = new ArrayMap(); + int i4 = 0; + while (true) { + int i5 = cursor3.getInt(i4); + try { + arrayMap9.put(Integer.valueOf(i5), (g1) ((u4) ((g1.a) q9.x(g1.M(), cursor3.getBlob(i))).p())); + arrayMap7 = arrayMap9; + } catch (IOException e9) { + arrayMap7 = arrayMap9; + q.g().f.d("Failed to merge filter results. appId, audienceId, error", q3.s(str2), Integer.valueOf(i5), e9); + } + if (!cursor3.moveToNext()) { + break; + } + arrayMap9 = arrayMap7; + i4 = 0; + i = 1; + } + cursor3.close(); + arrayMap2 = arrayMap7; + if (l9.b()) { + } + str3 = "audience_id"; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } else if (!l9.b() || !q.a.h.u(str2, p.F0)) { + cursor3.close(); + arrayMap2 = null; + if (((l9.b() || !this.a.h.u(this.d, p.F0)) && arrayMap2 == null) || arrayMap2.isEmpty()) { + str3 = "audience_id"; + } else { + HashSet hashSet = new HashSet(arrayMap2.keySet()); + if (z2) { + String str9 = this.d; + d.w(str9); + ArrayMap arrayMap10 = new ArrayMap(); + if (!arrayMap2.isEmpty()) { + g q4 = q(); + q4.n(); + q4.b(); + d.w(str9); + Map arrayMap11 = new ArrayMap(); + str5 = "audience_id"; + try { + cursor2 = q4.t().rawQuery("select audience_id, filter_id from event_filters where app_id = ? and session_scoped = 1 UNION select audience_id, filter_id from property_filters where app_id = ? and session_scoped = 1;", new String[]{str9, str9}); + try { + if (!cursor2.moveToFirst()) { + arrayMap11 = Collections.emptyMap(); + cursor2.close(); + } else { + while (true) { + int i6 = cursor2.getInt(0); + List list5 = (List) arrayMap11.get(Integer.valueOf(i6)); + if (list5 == null) { + list5 = new ArrayList(); + arrayMap11.put(Integer.valueOf(i6), list5); + } + try { + list5.add(Integer.valueOf(cursor2.getInt(1))); + if (!cursor2.moveToNext()) { + break; + } + } catch (SQLiteException e10) { + e2 = e10; + try { + q4.g().f.c("Database error querying scoped filters. appId", q3.s(str9), e2); + if (l9.b()) { + } + if (cursor2 != null) { + } + arrayMap11 = null; + it4 = arrayMap2.keySet().iterator(); + while (it4.hasNext()) { + } + arrayMap5 = arrayMap10; + it3 = hashSet.iterator(); + while (it3.hasNext()) { + } + str3 = str5; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } catch (Throwable th5) { + Throwable th6 = th5; + Cursor cursor6 = cursor2; + if (cursor6 != null) { + } + throw th6; + } + } + } + cursor2.close(); + } + } catch (SQLiteException e11) { + e2 = e11; + q4.g().f.c("Database error querying scoped filters. appId", q3.s(str9), e2); + if (l9.b()) { + } + if (cursor2 != null) { + } + arrayMap11 = null; + it4 = arrayMap2.keySet().iterator(); + while (it4.hasNext()) { + } + arrayMap5 = arrayMap10; + it3 = hashSet.iterator(); + while (it3.hasNext()) { + } + str3 = str5; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } + } catch (SQLiteException e12) { + e2 = e12; + cursor2 = null; + q4.g().f.c("Database error querying scoped filters. appId", q3.s(str9), e2); + if (l9.b() || !q4.a.h.u(str9, p.F0)) { + if (cursor2 != null) { + cursor2.close(); + } + arrayMap11 = null; + it4 = arrayMap2.keySet().iterator(); + while (it4.hasNext()) { + } + arrayMap5 = arrayMap10; + it3 = hashSet.iterator(); + while (it3.hasNext()) { + } + str3 = str5; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } + arrayMap11 = Collections.emptyMap(); + if (cursor2 != null) { + cursor2.close(); + } + it4 = arrayMap2.keySet().iterator(); + while (it4.hasNext()) { + } + arrayMap5 = arrayMap10; + it3 = hashSet.iterator(); + while (it3.hasNext()) { + } + str3 = str5; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } catch (Throwable th7) { + } + it4 = arrayMap2.keySet().iterator(); + while (it4.hasNext()) { + int intValue = ((Integer) it4.next()).intValue(); + g1 g1Var = arrayMap2.get(Integer.valueOf(intValue)); + List list6 = (List) arrayMap11.get(Integer.valueOf(intValue)); + if (list6 == null || list6.isEmpty()) { + map = arrayMap11; + it5 = it4; + arrayMap10.put(Integer.valueOf(intValue), g1Var); + } else { + List C = m().C(g1Var.E(), list6); + if (!C.isEmpty()) { + g1.a t = g1Var.t(); + map = arrayMap11; + if (t.l) { + t.n(); + it5 = it4; + t.l = false; + } else { + it5 = it4; + } + g1.B((g1) t.k); + if (t.l) { + t.n(); + t.l = false; + } + g1.D((g1) t.k, C); + List C2 = m().C(g1Var.v(), list6); + if (t.l) { + t.n(); + t.l = false; + } + g1.w((g1) t.k); + if (t.l) { + t.n(); + t.l = false; + } + g1.y((g1) t.k, C2); + for (int i7 = 0; i7 < g1Var.J(); i7++) { + if (list6.contains(Integer.valueOf(g1Var.u(i7).x()))) { + if (t.l) { + t.n(); + t.l = false; + } + g1.x((g1) t.k, i7); + } + } + for (int i8 = 0; i8 < g1Var.L(); i8++) { + if (list6.contains(Integer.valueOf(g1Var.A(i8).y()))) { + if (t.l) { + t.n(); + t.l = false; + } + g1.C((g1) t.k, i8); + } + } + arrayMap10.put(Integer.valueOf(intValue), (g1) ((u4) t.p())); + } + } + it4 = it5; + arrayMap11 = map; + } + } else { + str5 = "audience_id"; + } + arrayMap5 = arrayMap10; + } else { + str5 = "audience_id"; + arrayMap5 = arrayMap2; + } + it3 = hashSet.iterator(); + while (it3.hasNext()) { + int intValue2 = ((Integer) it3.next()).intValue(); + g1 g1Var2 = (g1) arrayMap5.get(Integer.valueOf(intValue2)); + BitSet bitSet = new BitSet(); + BitSet bitSet2 = new BitSet(); + ArrayMap arrayMap12 = new ArrayMap(); + if (!(g1Var2 == null || g1Var2.J() == 0)) { + for (z0 z0Var : g1Var2.I()) { + if (z0Var.w()) { + arrayMap12.put(Integer.valueOf(z0Var.x()), z0Var.y() ? Long.valueOf(z0Var.z()) : null); + } + } + } + ArrayMap arrayMap13 = new ArrayMap(); + if (!(g1Var2 == null || g1Var2.L() == 0)) { + for (h1 h1Var : g1Var2.K()) { + if (!h1Var.x() || h1Var.A() <= 0) { + arrayMap6 = arrayMap5; + } else { + arrayMap6 = arrayMap5; + arrayMap13.put(Integer.valueOf(h1Var.y()), Long.valueOf(h1Var.u(h1Var.A() - 1))); + } + arrayMap5 = arrayMap6; + } + } + if (g1Var2 != null) { + for (int i9 = 0; i9 < (g1Var2.z() << 6); i9++) { + if (q9.Q(g1Var2.v(), i9)) { + g().n.c("Filter already evaluated. audience ID, filter ID", Integer.valueOf(intValue2), Integer.valueOf(i9)); + bitSet2.set(i9); + if (q9.Q(g1Var2.E(), i9)) { + bitSet.set(i9); + z3 = true; + if (z3) { + arrayMap12.remove(Integer.valueOf(i9)); + } + } + } + z3 = false; + if (z3) { + } + } + } + g1 g1Var3 = (g1) arrayMap2.get(Integer.valueOf(intValue2)); + if (!(!z5 || !z4 || (list3 = (List) arrayMap.get(Integer.valueOf(intValue2))) == null || this.h == null || this.g == null)) { + for (l0 l0Var2 : list3) { + int y2 = l0Var2.y(); + long longValue = this.h.longValue() / 1000; + if (l0Var2.F()) { + longValue = this.g.longValue() / 1000; + } + if (arrayMap12.containsKey(Integer.valueOf(y2))) { + arrayMap12.put(Integer.valueOf(y2), Long.valueOf(longValue)); + } + if (arrayMap13.containsKey(Integer.valueOf(y2))) { + arrayMap13.put(Integer.valueOf(y2), Long.valueOf(longValue)); + } + } + } + this.f.put(Integer.valueOf(intValue2), new da(this, this.d, g1Var3, bitSet, bitSet2, arrayMap12, arrayMap13, null)); + str5 = str5; + arrayMap = arrayMap; + arrayMap5 = arrayMap5; + } + str3 = str5; + } + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + ca caVar2 = new ca(this, null); + ArrayMap arrayMap14 = new ArrayMap(); + Iterator it7 = list.iterator(); + while (it7.hasNext()) { + a1 next2 = it7.next(); + a1 a = caVar2.a(this.d, next2); + if (a != null) { + g q5 = q(); + String str10 = this.d; + String F = a.F(); + l z6 = q5.z(str10, next2.F()); + if (z6 == null) { + q5.g().i.c("Event aggregate wasn't created during raw event logging. appId, event", q3.s(str10), q5.d().u(F)); + lVar = new l(str10, next2.F(), 1, 1, 1, next2.H(), 0, null, null, null, null); + } else { + lVar = new l(z6.a, z6.f1533b, z6.c + 1, z6.d + 1, z6.e + 1, z6.f, z6.g, z6.h, z6.i, z6.j, z6.k); + } + q().H(lVar); + long j = lVar.c; + String F2 = a.F(); + V v = arrayMap14.get(F2); + if (v == null) { + v = q().c0(this.d, F2); + if (l9.b()) { + caVar = caVar2; + } else { + caVar = caVar2; + } + if (v == null) { + v = new ArrayMap(); + } + arrayMap14.put(F2, v); + } else { + caVar = caVar2; + } + Iterator it8 = v.keySet().iterator(); + while (it8.hasNext()) { + int intValue3 = it8.next().intValue(); + if (this.e.contains(Integer.valueOf(intValue3))) { + g().n.b(str8, Integer.valueOf(intValue3)); + } else { + Iterator it9 = v.get(Integer.valueOf(intValue3)).iterator(); + boolean z7 = true; + while (true) { + if (!it9.hasNext()) { + it = it8; + arrayMap4 = arrayMap14; + it2 = it7; + break; + } + l0 next3 = it9.next(); + it = it8; + arrayMap4 = arrayMap14; + fa faVar = new fa(this, this.d, intValue3, next3); + it2 = it7; + z7 = faVar.i(this.g, this.h, a, j, lVar, u(intValue3, next3.y())); + if (!z7) { + this.e.add(Integer.valueOf(intValue3)); + break; + } + s(intValue3).b(faVar); + it8 = it; + arrayMap14 = arrayMap4; + it7 = it2; + } + if (!z7) { + this.e.add(Integer.valueOf(intValue3)); + } + it8 = it; + arrayMap14 = arrayMap4; + it7 = it2; + } + } + caVar2 = caVar; + } + } + } + if (!list2.isEmpty()) { + ArrayMap arrayMap15 = new ArrayMap(); + for (i1 i1Var : list2) { + String D = i1Var.D(); + V v2 = arrayMap15.get(D); + if (v2 == null) { + v2 = q().d0(this.d, D); + if ((!l9.b() || !this.a.h.u(this.d, p.F0)) && v2 == null) { + v2 = new ArrayMap<>(); + } + arrayMap15.put(D, v2); + } + Iterator it10 = v2.keySet().iterator(); + while (true) { + if (!it10.hasNext()) { + break; + } + int intValue4 = it10.next().intValue(); + if (this.e.contains(Integer.valueOf(intValue4))) { + g().n.b(str8, Integer.valueOf(intValue4)); + break; + } + Iterator it11 = v2.get(Integer.valueOf(intValue4)).iterator(); + boolean z8 = true; + while (true) { + if (!it11.hasNext()) { + arrayMap3 = arrayMap15; + str4 = str8; + break; + } + next = it11.next(); + if (g().x(2)) { + s3 s3Var = g().n; + Integer valueOf = Integer.valueOf(intValue4); + if (next.v()) { + arrayMap3 = arrayMap15; + num = Integer.valueOf(next.w()); + } else { + arrayMap3 = arrayMap15; + num = null; + } + str4 = str8; + s3Var.d("Evaluating filter. audience, filter, property", valueOf, num, d().y(next.x())); + g().n.b("Filter definition", m().y(next)); + } else { + arrayMap3 = arrayMap15; + str4 = str8; + } + if (!next.v() || next.w() > 256) { + break; + } + ha haVar = new ha(this, this.d, intValue4, next); + z8 = haVar.i(this.g, this.h, i1Var, u(intValue4, next.w())); + if (!z8) { + this.e.add(Integer.valueOf(intValue4)); + break; + } + s(intValue4).b(haVar); + arrayMap15 = arrayMap3; + str8 = str4; + } + g().i.c("Invalid property filter ID. appId, id", q3.s(this.d), String.valueOf(next.v() ? Integer.valueOf(next.w()) : null)); + z8 = false; + if (!z8) { + this.e.add(Integer.valueOf(intValue4)); + } + arrayMap15 = arrayMap3; + str8 = str4; + } + } + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + for (Integer num2 : keySet) { + int intValue5 = num2.intValue(); + y0 a2 = this.f.get(Integer.valueOf(intValue5)).a(intValue5); + arrayList.add(a2); + g q6 = q(); + String str11 = this.d; + g1 A = a2.A(); + q6.n(); + q6.b(); + d.w(str11); + Objects.requireNonNull(A, "null reference"); + byte[] d = A.d(); + ContentValues contentValues2 = new ContentValues(); + contentValues2.put("app_id", str11); + contentValues2.put(str3, Integer.valueOf(intValue5)); + contentValues2.put("current_results", d); + try { + try { + if (q6.t().insertWithOnConflict("audience_filter_values", null, contentValues2, 5) == -1) { + q6.g().f.b("Failed to insert filter results (got -1). appId", q3.s(str11)); + } + } catch (SQLiteException e13) { + e = e13; + q6.g().f.c("Error storing filter results. appId", q3.s(str11), e); + } + } catch (SQLiteException e14) { + e = e14; + q6.g().f.c("Error storing filter results. appId", q3.s(str11), e); + } + } + return arrayList; + } else { + map2 = Collections.emptyMap(); + cursor3.close(); + arrayMap2 = map2; + if (l9.b()) { + } + str3 = "audience_id"; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } + } + } + arrayMap = emptyMap; + q = q(); + str2 = this.d; + q.n(); + q.b(); + d.w(str2); + try { + cursor3 = q.t().query("audience_filter_values", new String[]{"audience_id", "current_results"}, "app_id=?", new String[]{str2}, null, null, null); + try { + if (!cursor3.moveToFirst()) { + } + } catch (SQLiteException e15) { + e3 = e15; + try { + q.g().f.c("Database error querying filter results. appId", q3.s(str2), e3); + if (l9.b()) { + } + if (cursor3 != null) { + } + arrayMap2 = null; + if (l9.b()) { + } + str3 = "audience_id"; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } catch (Throwable th8) { + th = th8; + cursor = cursor3; + if (cursor != null) { + } + throw th; + } + } + } catch (SQLiteException e16) { + e3 = e16; + cursor3 = null; + q.g().f.c("Database error querying filter results. appId", q3.s(str2), e3); + if (l9.b() || !q.a.h.u(str2, p.F0)) { + if (cursor3 != null) { + cursor3.close(); + } + arrayMap2 = null; + if (l9.b()) { + } + str3 = "audience_id"; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } + map2 = Collections.emptyMap(); + if (cursor3 != null) { + cursor3.close(); + } + arrayMap2 = map2; + if (l9.b()) { + } + str3 = "audience_id"; + String str8 = "Skipping failed audience ID"; + if (!list.isEmpty()) { + } + if (!list2.isEmpty()) { + } + ArrayList arrayList = new ArrayList(); + Set keySet = this.f.keySet(); + keySet.removeAll(this.e); + while (r2.hasNext()) { + } + return arrayList; + } catch (Throwable th9) { + th = th9; + cursor = null; + if (cursor != null) { + cursor.close(); + } + throw th; + } + } + + public final boolean u(int i, int i2) { + if (this.f.get(Integer.valueOf(i)) == null) { + return false; + } + return this.f.get(Integer.valueOf(i)).d.get(i2); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c.java b/app/src/main/java/b/i/a/f/i/b/c.java new file mode 100644 index 0000000000..68a9667f53 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c.java @@ -0,0 +1,208 @@ +package b.i.a.f.i.b; + +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageManager; +import android.os.Bundle; +import android.text.TextUtils; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.Size; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +import b.i.a.f.e.p.b; +import b.i.a.f.h.l.o8; +import b.i.a.f.h.l.oa; +import b.i.a.f.h.l.pa; +import java.lang.reflect.InvocationTargetException; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c extends s5 { + + /* renamed from: b reason: collision with root package name */ + public Boolean f1506b; + @NonNull + public e c = b.a; + public Boolean d; + + public c(u4 u4Var) { + super(u4Var); + } + + public static long B() { + return p.D.a(null).longValue(); + } + + public final boolean A(String str) { + return "1".equals(this.c.i(str, "measurement.event_sampling_enabled")); + } + + @WorkerThread + public final boolean C() { + if (this.f1506b == null) { + Boolean w = w("app_measurement_lite"); + this.f1506b = w; + if (w == null) { + this.f1506b = Boolean.FALSE; + } + } + return this.f1506b.booleanValue() || !this.a.f; + } + + @Nullable + public final Bundle D() { + try { + if (this.a.f1555b.getPackageManager() == null) { + g().f.a("Failed to load metadata: PackageManager is null"); + return null; + } + ApplicationInfo a = b.a(this.a.f1555b).a(this.a.f1555b.getPackageName(), 128); + if (a != null) { + return a.metaData; + } + g().f.a("Failed to load metadata: ApplicationInfo is null"); + return null; + } catch (PackageManager.NameNotFoundException e) { + g().f.b("Failed to load metadata: Package name not found", e); + return null; + } + } + + public final String i(String str, String str2) { + try { + return (String) Class.forName("android.os.SystemProperties").getMethod("get", String.class, String.class).invoke(null, str, str2); + } catch (ClassNotFoundException e) { + g().f.b("Could not find SystemProperties class", e); + return str2; + } catch (NoSuchMethodException e2) { + g().f.b("Could not find SystemProperties.get() method", e2); + return str2; + } catch (IllegalAccessException e3) { + g().f.b("Could not access SystemProperties.get()", e3); + return str2; + } catch (InvocationTargetException e4) { + g().f.b("SystemProperties.get() threw an exception", e4); + return str2; + } + } + + public final int m(@Size(min = 1) String str) { + return Math.max(Math.min(q(str, p.I), 100), 25); + } + + @WorkerThread + public final long n(String str, @NonNull j3 j3Var) { + if (str == null) { + return j3Var.a(null).longValue(); + } + String i = this.c.i(str, j3Var.f1524b); + if (TextUtils.isEmpty(i)) { + return j3Var.a(null).longValue(); + } + try { + return j3Var.a(Long.valueOf(Long.parseLong(i))).longValue(); + } catch (NumberFormatException unused) { + return j3Var.a(null).longValue(); + } + } + + public final boolean o(j3 j3Var) { + return u(null, j3Var); + } + + public final int p(@Size(min = 1) String str) { + if (!o8.b() || !u(null, p.w0)) { + return 500; + } + return Math.max(Math.min(q(str, p.H), 2000), 500); + } + + @WorkerThread + public final int q(String str, @NonNull j3 j3Var) { + if (str == null) { + return j3Var.a(null).intValue(); + } + String i = this.c.i(str, j3Var.f1524b); + if (TextUtils.isEmpty(i)) { + return j3Var.a(null).intValue(); + } + try { + return j3Var.a(Integer.valueOf(Integer.parseInt(i))).intValue(); + } catch (NumberFormatException unused) { + return j3Var.a(null).intValue(); + } + } + + @WorkerThread + public final double r(String str, @NonNull j3 j3Var) { + if (str == null) { + return j3Var.a(null).doubleValue(); + } + String i = this.c.i(str, j3Var.f1524b); + if (TextUtils.isEmpty(i)) { + return j3Var.a(null).doubleValue(); + } + try { + return j3Var.a(Double.valueOf(Double.parseDouble(i))).doubleValue(); + } catch (NumberFormatException unused) { + return j3Var.a(null).doubleValue(); + } + } + + @WorkerThread + public final int s(@Size(min = 1) String str) { + return q(str, p.o); + } + + public final int t() { + if (!o8.b() || !this.a.h.u(null, p.x0)) { + return 25; + } + t9 e = e(); + Boolean bool = e.a.x().e; + return e.y0() >= 201500 || (bool != null && !bool.booleanValue()) ? 100 : 25; + } + + @WorkerThread + public final boolean u(String str, @NonNull j3 j3Var) { + if (str == null) { + return j3Var.a(null).booleanValue(); + } + String i = this.c.i(str, j3Var.f1524b); + return TextUtils.isEmpty(i) ? j3Var.a(null).booleanValue() : j3Var.a(Boolean.valueOf(Boolean.parseBoolean(i))).booleanValue(); + } + + public final boolean v(String str, j3 j3Var) { + return u(str, j3Var); + } + + @Nullable + public final Boolean w(@Size(min = 1) String str) { + d.w(str); + Bundle D = D(); + if (D == null) { + g().f.a("Failed to load metadata: Metadata bundle is null"); + return null; + } else if (!D.containsKey(str)) { + return null; + } else { + return Boolean.valueOf(D.getBoolean(str)); + } + } + + public final boolean x() { + Boolean w = w("firebase_analytics_collection_deactivated"); + return w != null && w.booleanValue(); + } + + public final Boolean y() { + Boolean w = w("google_analytics_adid_collection_enabled"); + return Boolean.valueOf(w == null || w.booleanValue()); + } + + public final Boolean z() { + if (!((oa) pa.j.a()).a() || !o(p.u0)) { + return Boolean.TRUE; + } + Boolean w = w("google_analytics_automatic_screen_reporting_enabled"); + return Boolean.valueOf(w == null || w.booleanValue()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c0.java b/app/src/main/java/b/i/a/f/i/b/c0.java new file mode 100644 index 0000000000..351296d83b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class c0 implements h3 { + public static final h3 a = new c0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).j()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c1.java b/app/src/main/java/b/i/a/f/i/b/c1.java new file mode 100644 index 0000000000..86b050f353 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class c1 implements h3 { + public static final h3 a = new c1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return ((m8) n8.j.a()).c(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c2.java b/app/src/main/java/b/i/a/f/i/b/c2.java new file mode 100644 index 0000000000..216eb58363 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.cb; +import b.i.a.f.h.l.fb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class c2 implements h3 { + public static final h3 a = new c2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((fb) cb.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c3.java b/app/src/main/java/b/i/a/f/i/b/c3.java new file mode 100644 index 0000000000..d5982ef14d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c3.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.x7; +import b.i.a.f.h.l.z7; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class c3 implements h3 { + public static final h3 a = new c3(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((z7) x7.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c4.java b/app/src/main/java/b/i/a/f/i/b/c4.java new file mode 100644 index 0000000000..8fe5396f63 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c4.java @@ -0,0 +1,194 @@ +package b.i.a.f.i.b; + +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +import java.io.IOException; +import java.io.OutputStream; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.List; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +@WorkerThread +public final class c4 implements Runnable { + public final URL j; + public final byte[] k; + public final z3 l; + public final String m; + public final Map n; + public final /* synthetic */ x3 o; + + public c4(x3 x3Var, String str, URL url, byte[] bArr, Map map, z3 z3Var) { + this.o = x3Var; + d.w(str); + this.j = url; + this.k = bArr; + this.l = z3Var; + this.m = str; + this.n = map; + } + + /* JADX WARNING: Removed duplicated region for block: B:44:0x00c9 A[SYNTHETIC, Splitter:B:44:0x00c9] */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x00e1 */ + /* JADX WARNING: Removed duplicated region for block: B:57:0x0102 A[SYNTHETIC, Splitter:B:57:0x0102] */ + /* JADX WARNING: Removed duplicated region for block: B:62:0x011a */ + @Override // java.lang.Runnable + public final void run() { + Map> map; + IOException iOException; + int i; + HttpURLConnection httpURLConnection; + IOException e; + Map> map2; + int i2; + Throwable th; + Throwable th2; + IOException e2; + this.o.a(); + OutputStream outputStream = null; + try { + httpURLConnection = this.o.s(this.j); + try { + Map map3 = this.n; + if (map3 != null) { + for (Map.Entry entry : map3.entrySet()) { + httpURLConnection.addRequestProperty(entry.getKey(), entry.getValue()); + } + } + if (this.k != null) { + byte[] T = this.o.m().T(this.k); + this.o.g().n.b("Uploading data. size", Integer.valueOf(T.length)); + httpURLConnection.setDoOutput(true); + httpURLConnection.addRequestProperty("Content-Encoding", "gzip"); + httpURLConnection.setFixedLengthStreamingMode(T.length); + httpURLConnection.connect(); + OutputStream outputStream2 = httpURLConnection.getOutputStream(); + try { + outputStream2.write(T); + outputStream2.close(); + } catch (IOException e3) { + map = null; + iOException = e3; + outputStream = outputStream2; + } catch (Throwable th3) { + map2 = null; + th = th3; + outputStream = outputStream2; + i2 = 0; + if (outputStream != null) { + } + if (httpURLConnection != null) { + } + this.o.f().v(new y3(this.m, this.l, i2, null, null, map2, null)); + throw th; + } + } + int responseCode = httpURLConnection.getResponseCode(); + try { + Map> headerFields = httpURLConnection.getHeaderFields(); + try { + byte[] t = x3.t(httpURLConnection); + httpURLConnection.disconnect(); + this.o.f().v(new y3(this.m, this.l, responseCode, null, t, headerFields, null)); + } catch (IOException e4) { + e2 = e4; + i = responseCode; + map = headerFields; + iOException = e2; + if (outputStream != null) { + } + if (httpURLConnection != null) { + } + this.o.f().v(new y3(this.m, this.l, i, iOException, null, map, null)); + } catch (Throwable th4) { + th = th4; + i2 = responseCode; + map2 = headerFields; + if (outputStream != null) { + } + if (httpURLConnection != null) { + } + this.o.f().v(new y3(this.m, this.l, i2, null, null, map2, null)); + throw th; + } + } catch (IOException e5) { + e2 = e5; + map = null; + i = responseCode; + iOException = e2; + if (outputStream != null) { + } + if (httpURLConnection != null) { + } + this.o.f().v(new y3(this.m, this.l, i, iOException, null, map, null)); + } catch (Throwable th5) { + map2 = null; + th = th5; + i2 = responseCode; + if (outputStream != null) { + } + if (httpURLConnection != null) { + } + this.o.f().v(new y3(this.m, this.l, i2, null, null, map2, null)); + throw th; + } + } catch (IOException e6) { + e = e6; + map = null; + iOException = e; + i = 0; + if (outputStream != null) { + } + if (httpURLConnection != null) { + } + this.o.f().v(new y3(this.m, this.l, i, iOException, null, map, null)); + } catch (Throwable th6) { + th2 = th6; + map2 = null; + th = th2; + i2 = 0; + if (outputStream != null) { + } + if (httpURLConnection != null) { + } + this.o.f().v(new y3(this.m, this.l, i2, null, null, map2, null)); + throw th; + } + } catch (IOException e7) { + e = e7; + httpURLConnection = null; + map = null; + iOException = e; + i = 0; + if (outputStream != null) { + try { + outputStream.close(); + } catch (IOException e8) { + this.o.g().f.c("Error closing HTTP compressed POST connection output stream. appId", q3.s(this.m), e8); + } + } + if (httpURLConnection != null) { + httpURLConnection.disconnect(); + } + this.o.f().v(new y3(this.m, this.l, i, iOException, null, map, null)); + } catch (Throwable th7) { + th2 = th7; + httpURLConnection = null; + map2 = null; + th = th2; + i2 = 0; + if (outputStream != null) { + try { + outputStream.close(); + } catch (IOException e9) { + this.o.g().f.c("Error closing HTTP compressed POST connection output stream. appId", q3.s(this.m), e9); + } + } + if (httpURLConnection != null) { + httpURLConnection.disconnect(); + } + this.o.f().v(new y3(this.m, this.l, i2, null, null, map2, null)); + throw th; + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c5.java b/app/src/main/java/b/i/a/f/i/b/c5.java new file mode 100644 index 0000000000..e7293217de --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c5.java @@ -0,0 +1,25 @@ +package b.i.a.f.i.b; + +import b.c.a.a0.d; +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class c5 implements Runnable { + public final /* synthetic */ zzn j; + public final /* synthetic */ z4 k; + + public c5(z4 z4Var, zzn zzn) { + this.k = z4Var; + this.j = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.a.R(); + k9 k9Var = this.k.a; + zzn zzn = this.j; + k9Var.f().b(); + k9Var.P(); + d.w(zzn.j); + k9Var.G(zzn); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c6.java b/app/src/main/java/b/i/a/f/i/b/c6.java new file mode 100644 index 0000000000..286c3a7cd3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c6.java @@ -0,0 +1,908 @@ +package b.i.a.f.i.b; + +import android.app.Activity; +import android.app.Application; +import android.content.Context; +import android.content.SharedPreferences; +import android.os.Build; +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import android.os.RemoteException; +import android.os.SystemClock; +import android.text.TextUtils; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +import b.i.a.f.e.o.c; +import b.i.a.f.e.o.f; +import b.i.a.f.e.o.h; +import b.i.a.f.h.l.a9; +import b.i.a.f.h.l.ea; +import b.i.a.f.h.l.g9; +import b.i.a.f.h.l.j9; +import b.i.a.f.h.l.r9; +import b.i.a.f.h.l.t8; +import b.i.a.f.h.l.x7; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService; +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzn; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Locale; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.CopyOnWriteArraySet; +import java.util.concurrent.atomic.AtomicLong; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c6 extends a5 { + public y6 c; + public w5 d; + public final Set e = new CopyOnWriteArraySet(); + public boolean f; + public final AtomicReference g = new AtomicReference<>(); + public final Object h = new Object(); + @GuardedBy("consentLock") + public d i = new d(null, null); + @GuardedBy("consentLock") + public int j = 100; + public final AtomicLong k = new AtomicLong(0); + public long l = -1; + public int m = 100; + public final y9 n; + public boolean o = true; + public final v9 p = new q6(this); + + public c6(u4 u4Var) { + super(u4Var); + this.n = new y9(u4Var); + } + + /* JADX WARNING: Removed duplicated region for block: B:14:0x0062 */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x00af */ + public static void C(c6 c6Var, d dVar, int i, long j, boolean z2, boolean z3) { + boolean z4; + c6Var.b(); + c6Var.t(); + if (j > c6Var.l || !d.e(c6Var.m, i)) { + d4 l = c6Var.l(); + Objects.requireNonNull(l); + if (t8.b() && l.a.h.o(p.H0)) { + l.b(); + if (l.t(i)) { + SharedPreferences.Editor edit = l.w().edit(); + edit.putString("consent_settings", dVar.d()); + edit.putInt("consent_source", i); + edit.apply(); + z4 = true; + if (!z4) { + c6Var.l = j; + c6Var.m = i; + q7 p = c6Var.p(); + Objects.requireNonNull(p); + if (t8.b() && p.a.h.o(p.H0)) { + p.b(); + p.t(); + if (z2) { + p.r().y(); + } + if (p.E()) { + p.z(new e8(p, p.I(false))); + } + } + if (z3) { + c6Var.p().A(new AtomicReference<>()); + return; + } + return; + } + c6Var.g().l.b("Lower precedence consent source ignored, proposed source", Integer.valueOf(i)); + return; + } + } + z4 = false; + if (!z4) { + } + } else { + c6Var.g().l.b("Dropped out-of-date consent setting, proposed settings", dVar); + } + } + + public final void A(d dVar, int i, long j) { + boolean z2; + boolean z3; + d dVar2; + boolean z4; + if (t8.b() && this.a.h.o(p.H0)) { + t(); + if ((!this.a.h.o(p.I0) || i != 20) && dVar.f1508b == null && dVar.c == null) { + g().k.a("Discarding empty consent settings"); + return; + } + synchronized (this.h) { + z2 = false; + if (d.e(i, this.j)) { + z4 = dVar.f(this.i); + if (dVar.k() && !this.i.k()) { + z2 = true; + } + d dVar3 = this.i; + Boolean bool = dVar.f1508b; + if (bool == null) { + bool = dVar3.f1508b; + } + Boolean bool2 = dVar.c; + if (bool2 == null) { + bool2 = dVar3.c; + } + d dVar4 = new d(bool, bool2); + this.i = dVar4; + this.j = i; + z3 = z2; + dVar2 = dVar4; + z2 = true; + } else { + dVar2 = dVar; + z3 = false; + z4 = false; + } + } + if (!z2) { + g().l.b("Ignoring lower-priority consent settings, proposed settings", dVar2); + return; + } + long andIncrement = this.k.getAndIncrement(); + if (z4) { + this.g.set(null); + f().w(new x6(this, dVar2, j, i, andIncrement, z3)); + } else if (!this.a.h.o(p.I0) || !(i == 40 || i == 20)) { + f().v(new z6(this, dVar2, i, andIncrement, z3)); + } else { + f().w(new w6(this, dVar2, i, andIncrement, z3)); + } + } + } + + @WorkerThread + public final void B(w5 w5Var) { + w5 w5Var2; + b(); + t(); + if (!(w5Var == null || w5Var == (w5Var2 = this.d))) { + d.G(w5Var2 == null, "EventInterceptor already set."); + } + this.d = w5Var; + } + + @WorkerThread + public final void D(@Nullable Boolean bool, boolean z2) { + b(); + t(); + g().m.b("Setting app measurement enabled (FE)", bool); + l().s(bool); + if (t8.b() && this.a.h.o(p.H0) && z2) { + d4 l = l(); + Objects.requireNonNull(l); + if (t8.b() && l.a.h.o(p.H0)) { + l.b(); + SharedPreferences.Editor edit = l.w().edit(); + if (bool != null) { + edit.putBoolean("measurement_enabled_from_api", bool.booleanValue()); + } else { + edit.remove("measurement_enabled_from_api"); + } + edit.apply(); + } + } + if (!t8.b() || !this.a.h.o(p.H0) || this.a.i() || !bool.booleanValue()) { + P(); + } + } + + @WorkerThread + public final void E(String str, String str2, long j, Bundle bundle) { + b(); + F(str, str2, j, bundle, true, this.d == null || t9.r0(str2), false, null); + } + + /* JADX WARNING: Removed duplicated region for block: B:66:0x0157 */ + @WorkerThread + public final void F(String str, String str2, long j, Bundle bundle, boolean z2, boolean z3, boolean z4, String str3) { + ArrayList arrayList; + Bundle bundle2; + boolean z5; + boolean z6; + Bundle[] bundleArr; + boolean z7; + boolean z8; + d.w(str); + Objects.requireNonNull(bundle, "null reference"); + b(); + t(); + if (!this.a.d()) { + g().m.a("Event not sent since app measurement is disabled"); + return; + } + List list = o().i; + if (list == null || list.contains(str2)) { + int i = 0; + if (!this.f) { + this.f = true; + try { + u4 u4Var = this.a; + try { + (!u4Var.f ? Class.forName("com.google.android.gms.tagmanager.TagManagerService", true, u4Var.f1555b.getClassLoader()) : Class.forName("com.google.android.gms.tagmanager.TagManagerService")).getDeclaredMethod("initialize", Context.class).invoke(null, this.a.f1555b); + } catch (Exception e) { + g().i.b("Failed to invoke Tag Manager's initialize() method", e); + } + } catch (ClassNotFoundException unused) { + g().l.a("Tag Manager is not found and thus will not be used"); + } + } + if (this.a.h.o(p.f1541e0) && "_cmp".equals(str2) && bundle.containsKey("gclid")) { + String string = bundle.getString("gclid"); + Objects.requireNonNull((c) this.a.o); + K("auto", "_lgclid", string, System.currentTimeMillis()); + } + if (ea.b() && this.a.h.o(p.z0) && z2) { + String[] strArr = t9.d; + int length = strArr.length; + int i2 = 0; + while (true) { + if (i2 >= length) { + z8 = true; + break; + } else if (strArr[i2].equals(str2)) { + z8 = false; + break; + } else { + i2++; + } + } + if (z8) { + e().H(bundle, l().D.a()); + } + } + if (z4 && !"_iap".equals(str2)) { + t9 t = this.a.t(); + boolean z9 = x7.b() && this.a.h.o(p.L0); + int i3 = 2; + if (t.a0("event", str2)) { + if (z9) { + if (t.Z("event", 40, str2)) { + i3 = 0; + } + } else if (t.Z("event", 40, str2)) { + } + i3 = 13; + } + if (i3 != 0) { + g().h.b("Invalid public event name. Event will not be logged (FE)", d().u(str2)); + this.a.t(); + String E = t9.E(str2, 40, true); + if (str2 != null) { + i = str2.length(); + } + this.a.t().R(this.p, i3, "_ev", E, i); + return; + } + } + i7 w = q().w(false); + if (w != null && !bundle.containsKey("_sc")) { + w.d = true; + } + h7.A(w, bundle, z2 && z4); + boolean equals = "am".equals(str); + boolean r0 = t9.r0(str2); + if (z2 && this.d != null && !r0 && !equals) { + g().m.c("Passing event to registered event handler (FE)", d().u(str2), d().s(bundle)); + AppMeasurementDynamiteService.a aVar = (AppMeasurementDynamiteService.a) this.d; + Objects.requireNonNull(aVar); + try { + aVar.a.Z(str, str2, bundle, j); + } catch (RemoteException e2) { + AppMeasurementDynamiteService.this.a.g().i.b("Event interceptor threw exception", e2); + } + } else if (this.a.m()) { + int t2 = e().t(str2, x7.b() && this.a.h.o(p.L0)); + if (t2 != 0) { + g().h.b("Invalid event name. Event will not be logged (FE)", d().u(str2)); + e(); + String E2 = t9.E(str2, 40, true); + if (str2 != null) { + i = str2.length(); + } + this.a.t().S(this.p, str3, t2, "_ev", E2, i); + return; + } + String str4 = "_o"; + Bundle z10 = e().z(str3, str2, bundle, Collections.unmodifiableList(Arrays.asList(str4, "_sn", "_sc", "_si")), z4); + if (z10 != null && z10.containsKey("_sc") && z10.containsKey("_si")) { + z10.getString("_sn"); + z10.getString("_sc"); + Long.valueOf(z10.getLong("_si")).longValue(); + } + if (this.a.h.o(p.T) && q().w(false) != null && "_ae".equals(str2)) { + long b2 = s().e.b(); + if (b2 > 0) { + e().G(z10, b2); + } + } + if (a9.b() && this.a.h.o(p.p0)) { + if (!"auto".equals(str) && "_ssr".equals(str2)) { + t9 e3 = e(); + String string2 = z10.getString("_ffr"); + String trim = h.a(string2) ? null : string2.trim(); + if (t9.q0(trim, e3.l().A.a())) { + e3.g().m.a("Not logging duplicate session_start_with_rollout event"); + z7 = false; + } else { + e3.l().A.b(trim); + z7 = true; + } + if (!z7) { + return; + } + } else if ("_ae".equals(str2)) { + String a = e().l().A.a(); + if (!TextUtils.isEmpty(a)) { + z10.putString("_ffr", a); + } + } + } + ArrayList arrayList2 = new ArrayList(); + arrayList2.add(z10); + e().v0().nextLong(); + if (l().v.a() <= 0 || !l().u(j) || !l().f1510x.b()) { + bundle2 = z10; + arrayList = arrayList2; + } else { + g().n.a("Current session is expired, remove the session number, ID, and engagement time"); + Objects.requireNonNull((c) this.a.o); + bundle2 = z10; + arrayList = arrayList2; + K("auto", "_sid", null, System.currentTimeMillis()); + Objects.requireNonNull((c) this.a.o); + K("auto", "_sno", null, System.currentTimeMillis()); + Objects.requireNonNull((c) this.a.o); + K("auto", "_se", null, System.currentTimeMillis()); + } + if (bundle2.getLong("extend_session", 0) == 1) { + g().n.a("EXTEND_SESSION param attached: initiate a new session or extend the current active session"); + this.a.r().d.b(j, true); + } + String[] strArr2 = (String[]) bundle2.keySet().toArray(new String[bundle2.size()]); + Arrays.sort(strArr2); + for (String str5 : strArr2) { + e(); + Object obj = bundle2.get(str5); + if (obj instanceof Bundle) { + bundleArr = new Bundle[]{(Bundle) obj}; + } else if (obj instanceof Parcelable[]) { + Parcelable[] parcelableArr = (Parcelable[]) obj; + bundleArr = (Bundle[]) Arrays.copyOf(parcelableArr, parcelableArr.length, Bundle[].class); + } else if (obj instanceof ArrayList) { + ArrayList arrayList3 = (ArrayList) obj; + bundleArr = (Bundle[]) arrayList3.toArray(new Bundle[arrayList3.size()]); + } else { + bundleArr = null; + } + if (bundleArr != null) { + bundle2.putParcelableArray(str5, bundleArr); + } + } + int i4 = 0; + while (i4 < arrayList.size()) { + Bundle bundle3 = (Bundle) arrayList.get(i4); + String str6 = i4 != 0 ? "_ep" : str2; + bundle3.putString(str4, str); + if (z3) { + bundle3 = e().y(bundle3); + } + zzaq zzaq = new zzaq(str6, new zzap(bundle3), str, j); + q7 p = p(); + Objects.requireNonNull(p); + p.b(); + p.t(); + m3 r = p.r(); + Objects.requireNonNull(r); + Parcel obtain = Parcel.obtain(); + zzaq.writeToParcel(obtain, 0); + byte[] marshall = obtain.marshall(); + obtain.recycle(); + if (marshall.length > 131072) { + r.g().g.a("Event is too long for local database. Sending event directly to service"); + z6 = true; + z5 = false; + } else { + z5 = r.x(0, marshall); + z6 = true; + } + p.z(new d8(p, true, z5, zzaq, p.I(z6), str3)); + if (!equals) { + for (z5 z5Var : this.e) { + z5Var.a(str, str2, new Bundle(bundle3), j); + } + } + i4++; + str4 = str4; + arrayList = arrayList; + } + if (q().w(false) != null && "_ae".equals(str2)) { + w8 s2 = s(); + Objects.requireNonNull((c) this.a.o); + s2.w(true, true, SystemClock.elapsedRealtime()); + } + } + } else { + g().m.c("Dropping non-safelisted event. event name, origin", str2, str); + } + } + + public final void G(String str, String str2, long j, Object obj) { + f().v(new j6(this, str, str2, obj, j)); + } + + public final void H(String str, String str2, Bundle bundle) { + Objects.requireNonNull((c) this.a.o); + I(str, str2, bundle, true, true, System.currentTimeMillis()); + } + + public final void I(String str, String str2, Bundle bundle, boolean z2, boolean z3, long j) { + String string; + String str3; + String str4 = str == null ? "app" : str; + Bundle bundle2 = bundle == null ? new Bundle() : bundle; + if (this.a.h.o(p.v0)) { + if (t9.q0(str2, "screen_view")) { + h7 q = q(); + if (!q.a.h.o(p.v0)) { + q.g().k.a("Manual screen reporting is disabled."); + return; + } + synchronized (q.l) { + if (!q.k) { + q.g().k.a("Cannot log screen view event when the app is in the background."); + return; + } + string = bundle2.getString("screen_name"); + if (string == null || (string.length() > 0 && string.length() <= 100)) { + String string2 = bundle2.getString("screen_class"); + if (string2 == null || (string2.length() > 0 && string2.length() <= 100)) { + if (string2 == null) { + Activity activity = q.g; + str3 = activity != null ? h7.x(activity.getClass().getCanonicalName()) : "Activity"; + } else { + str3 = string2; + } + if (q.h && q.c != null) { + q.h = false; + boolean q0 = t9.q0(q.c.f1522b, str3); + boolean q02 = t9.q0(q.c.a, string); + if (q0 && q02) { + q.g().k.a("Ignoring call to log screen view event with duplicate parameters."); + return; + } + } + } else { + q.g().k.b("Invalid screen class length for screen view. Length", Integer.valueOf(string2.length())); + return; + } + } else { + q.g().k.b("Invalid screen name length for screen view. Length", Integer.valueOf(string.length())); + return; + } + } + q.g().n.c("Logging screen view with name, class", string == null ? "null" : string, str3 == null ? "null" : str3); + i7 i7Var = q.c == null ? q.d : q.c; + i7 i7Var2 = new i7(string, str3, q.e().t0(), true, j); + q.c = i7Var2; + q.d = i7Var; + q.i = i7Var2; + Objects.requireNonNull((c) q.a.o); + q.f().v(new k7(q, bundle2, i7Var2, i7Var, SystemClock.elapsedRealtime())); + return; + } + } + Q(str4, str2, j, bundle2, z3, !z3 || this.d == null || t9.r0(str2), !z2, null); + } + + public final void J(String str, String str2, Object obj) { + Objects.requireNonNull((c) this.a.o); + L(str, str2, obj, true, System.currentTimeMillis()); + } + + /* JADX WARNING: Removed duplicated region for block: B:20:0x006a */ + /* JADX WARNING: Removed duplicated region for block: B:22:0x0076 */ + @WorkerThread + public final void K(String str, String str2, Object obj, long j) { + Long l; + String str3; + d.w(str); + d.w(str2); + b(); + t(); + if ("allow_personalized_ads".equals(str2)) { + if (obj instanceof String) { + String str4 = (String) obj; + if (!TextUtils.isEmpty(str4)) { + String str5 = "false"; + Long valueOf = Long.valueOf(str5.equals(str4.toLowerCase(Locale.ENGLISH)) ? 1 : 0); + j4 j4Var = l().t; + if (valueOf.longValue() == 1) { + str5 = "true"; + } + j4Var.b(str5); + l = valueOf; + str3 = "_npa"; + if (!this.a.d()) { + g().n.a("User property not set since app measurement is disabled"); + return; + } else if (this.a.m()) { + zzku zzku = new zzku(str3, j, l, str); + q7 p = p(); + p.b(); + p.t(); + m3 r = p.r(); + Objects.requireNonNull(r); + Parcel obtain = Parcel.obtain(); + boolean z2 = false; + zzku.writeToParcel(obtain, 0); + byte[] marshall = obtain.marshall(); + obtain.recycle(); + if (marshall.length > 131072) { + r.g().g.a("User property too long for local database. Sending directly to service"); + } else { + z2 = r.x(1, marshall); + } + p.z(new r7(p, z2, zzku, p.I(true))); + return; + } else { + return; + } + } + } + if (obj == null) { + l().t.b("unset"); + l = obj; + str3 = "_npa"; + if (!this.a.d()) { + } + } + } + str3 = str2; + l = obj; + if (!this.a.d()) { + } + } + + public final void L(String str, String str2, Object obj, boolean z2, long j) { + int i; + if (str == null) { + str = "app"; + } + if (z2) { + i = e().h0(str2); + } else { + t9 e = e(); + if (e.a0("user property", str2)) { + if (!e.f0("user property", x5.a, null, str2)) { + i = 15; + } else if (e.Z("user property", 24, str2)) { + i = 0; + } + } + i = 6; + } + if (i != 0) { + e(); + this.a.t().R(this.p, i, "_ev", t9.E(str2, 24, true), str2 != null ? str2.length() : 0); + } else if (obj != null) { + int i02 = e().i0(str2, obj); + if (i02 != 0) { + e(); + this.a.t().R(this.p, i02, "_ev", t9.E(str2, 24, true), ((obj instanceof String) || (obj instanceof CharSequence)) ? String.valueOf(obj).length() : 0); + return; + } + Object n0 = e().n0(str2, obj); + if (n0 != null) { + G(str, str2, j, n0); + } + } else { + G(str, str2, j, null); + } + } + + public final void M() { + if (this.a.f1555b.getApplicationContext() instanceof Application) { + ((Application) this.a.f1555b.getApplicationContext()).unregisterActivityLifecycleCallbacks(this.c); + } + } + + @WorkerThread + public final void N() { + b(); + t(); + if (this.a.m()) { + if (this.a.h.o(p.f1540d0)) { + Boolean w = this.a.h.w("google_analytics_deferred_deep_link_enabled"); + if (w != null && w.booleanValue()) { + g().m.a("Deferred Deep Link feature enabled."); + f().v(new e6(this)); + } + } + q7 p = p(); + p.b(); + p.t(); + zzn I = p.I(true); + p.r().x(3, new byte[0]); + p.z(new x7(p, I)); + this.o = false; + d4 l = l(); + l.b(); + String string = l.w().getString("previous_os_version", null); + l.c().o(); + String str = Build.VERSION.RELEASE; + if (!TextUtils.isEmpty(str) && !str.equals(string)) { + SharedPreferences.Editor edit = l.w().edit(); + edit.putString("previous_os_version", str); + edit.apply(); + } + if (!TextUtils.isEmpty(string)) { + c().o(); + if (!string.equals(str)) { + Bundle bundle = new Bundle(); + bundle.putString("_po", string); + H("auto", "_ou", bundle); + } + } + } + } + + @Nullable + public final String O() { + u4 u4Var = this.a; + String str = u4Var.c; + if (str != null) { + return str; + } + try { + return f.M1(u4Var.f1555b, "google_app_id"); + } catch (IllegalStateException e) { + this.a.g().f.b("getGoogleAppId failed with exception", e); + return null; + } + } + + @WorkerThread + public final void P() { + b(); + String a = l().t.a(); + if (a != null) { + if ("unset".equals(a)) { + Objects.requireNonNull((c) this.a.o); + K("app", "_npa", null, System.currentTimeMillis()); + } else { + Long valueOf = Long.valueOf("true".equals(a) ? 1 : 0); + Objects.requireNonNull((c) this.a.o); + K("app", "_npa", valueOf, System.currentTimeMillis()); + } + } + boolean z2 = true; + if (!this.a.d() || !this.o) { + g().m.a("Updating Scion state (FE)"); + q7 p = p(); + p.b(); + p.t(); + p.z(new b8(p, p.I(true))); + return; + } + g().m.a("Recording app launch after enabling measurement for the first time (FE)"); + N(); + if (r9.b() && this.a.h.o(p.q0)) { + s().d.a(); + } + if (((j9) g9.j.a()).a() && this.a.h.o(p.t0)) { + if (this.a.f1557x.a.o().l.a() <= 0) { + z2 = false; + } + if (!z2) { + m4 m4Var = this.a.f1557x; + m4Var.a(m4Var.a.f1555b.getPackageName()); + } + } + if (this.a.h.o(p.D0)) { + f().v(new f6(this)); + } + } + + public final void Q(String str, String str2, long j, Bundle bundle, boolean z2, boolean z3, boolean z4, String str3) { + Bundle bundle2 = new Bundle(bundle); + for (String str4 : bundle2.keySet()) { + Object obj = bundle2.get(str4); + if (obj instanceof Bundle) { + bundle2.putBundle(str4, new Bundle((Bundle) obj)); + } else { + int i = 0; + if (obj instanceof Parcelable[]) { + Parcelable[] parcelableArr = (Parcelable[]) obj; + while (i < parcelableArr.length) { + if (parcelableArr[i] instanceof Bundle) { + parcelableArr[i] = new Bundle((Bundle) parcelableArr[i]); + } + i++; + } + } else if (obj instanceof List) { + List list = (List) obj; + while (i < list.size()) { + Object obj2 = list.get(i); + if (obj2 instanceof Bundle) { + list.set(i, new Bundle((Bundle) obj2)); + } + i++; + } + } + } + } + f().v(new k6(this, str, str2, j, bundle2, z2, z3, z4, null)); + } + + public final void R(String str, String str2, Bundle bundle) { + Objects.requireNonNull((c) this.a.o); + long currentTimeMillis = System.currentTimeMillis(); + d.w(str); + Bundle bundle2 = new Bundle(); + bundle2.putString(ModelAuditLogEntry.CHANGE_KEY_NAME, str); + bundle2.putLong("creation_timestamp", currentTimeMillis); + if (str2 != null) { + bundle2.putString("expired_event_name", str2); + bundle2.putBundle("expired_event_params", bundle); + } + f().v(new p6(this, bundle2)); + } + + @Override // b.i.a.f.i.b.a5 + public final boolean v() { + return false; + } + + public final void w(long j, boolean z2) { + b(); + t(); + g().m.a("Resetting analytics data (FE)"); + w8 s2 = s(); + s2.b(); + d9 d9Var = s2.e; + d9Var.c.c(); + d9Var.a = 0; + d9Var.f1513b = 0; + boolean d = this.a.d(); + d4 l = l(); + l.k.b(j); + if (!TextUtils.isEmpty(l.l().A.a())) { + l.A.b(null); + } + if (r9.b() && l.a.h.o(p.q0)) { + l.v.b(0); + } + if (!l.a.h.x()) { + l.v(!d); + } + l.B.b(null); + l.C.b(0); + l.D.b(null); + if (z2) { + q7 p = p(); + p.b(); + p.t(); + zzn I = p.I(false); + p.r().y(); + p.z(new t7(p, I)); + } + if (r9.b() && this.a.h.o(p.q0)) { + s().d.a(); + } + this.o = !d; + } + + public final void x(Bundle bundle, int i, long j) { + if (t8.b() && this.a.h.o(p.H0)) { + t(); + String string = bundle.getString("ad_storage"); + if ((string == null || d.i(string) != null) && ((string = bundle.getString("analytics_storage")) == null || d.i(string) != null)) { + string = null; + } + if (string != null) { + g().k.b("Ignoring invalid consent setting", string); + g().k.a("Valid consent values are 'granted', 'denied'"); + } + A(d.g(bundle), i, j); + } + } + + public final void y(Bundle bundle, long j) { + Objects.requireNonNull(bundle, "null reference"); + Bundle bundle2 = new Bundle(bundle); + if (!TextUtils.isEmpty(bundle2.getString("app_id"))) { + g().i.a("Package name should be null when calling setConditionalUserProperty"); + } + bundle2.remove("app_id"); + f.J1(bundle2, "app_id", String.class, null); + f.J1(bundle2, "origin", String.class, null); + f.J1(bundle2, ModelAuditLogEntry.CHANGE_KEY_NAME, String.class, null); + f.J1(bundle2, "value", Object.class, null); + f.J1(bundle2, "trigger_event_name", String.class, null); + f.J1(bundle2, "trigger_timeout", Long.class, 0L); + f.J1(bundle2, "timed_out_event_name", String.class, null); + f.J1(bundle2, "timed_out_event_params", Bundle.class, null); + f.J1(bundle2, "triggered_event_name", String.class, null); + f.J1(bundle2, "triggered_event_params", Bundle.class, null); + f.J1(bundle2, "time_to_live", Long.class, 0L); + f.J1(bundle2, "expired_event_name", String.class, null); + f.J1(bundle2, "expired_event_params", Bundle.class, null); + d.w(bundle2.getString(ModelAuditLogEntry.CHANGE_KEY_NAME)); + d.w(bundle2.getString("origin")); + Objects.requireNonNull(bundle2.get("value"), "null reference"); + bundle2.putLong("creation_timestamp", j); + String string = bundle2.getString(ModelAuditLogEntry.CHANGE_KEY_NAME); + Object obj = bundle2.get("value"); + if (e().h0(string) != 0) { + g().f.b("Invalid conditional user property name", d().y(string)); + } else if (e().i0(string, obj) != 0) { + g().f.c("Invalid conditional user property value", d().y(string), obj); + } else { + Object n0 = e().n0(string, obj); + if (n0 == null) { + g().f.c("Unable to normalize conditional user property value", d().y(string), obj); + return; + } + f.U1(bundle2, n0); + long j2 = bundle2.getLong("trigger_timeout"); + if (TextUtils.isEmpty(bundle2.getString("trigger_event_name")) || (j2 <= 15552000000L && j2 >= 1)) { + long j3 = bundle2.getLong("time_to_live"); + if (j3 > 15552000000L || j3 < 1) { + g().f.c("Invalid conditional user property time to live", d().y(string), Long.valueOf(j3)); + } else { + f().v(new n6(this, bundle2)); + } + } else { + g().f.c("Invalid conditional user property timeout", d().y(string), Long.valueOf(j2)); + } + } + } + + @WorkerThread + public final void z(d dVar) { + Boolean bool; + b(); + boolean z2 = (dVar.k() && dVar.j()) || p().E(); + if (z2 != this.a.i()) { + u4 u4Var = this.a; + u4Var.f().b(); + u4Var.E = z2; + d4 l = l(); + Objects.requireNonNull(l); + if (t8.b() && l.a.h.o(p.H0)) { + l.b(); + if (l.w().contains("measurement_enabled_from_api")) { + bool = Boolean.valueOf(l.w().getBoolean("measurement_enabled_from_api", true)); + if (z2 || bool == null || bool.booleanValue()) { + D(Boolean.valueOf(z2), false); + } + return; + } + } + bool = null; + if (z2) { + } + D(Boolean.valueOf(z2), false); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c7.java b/app/src/main/java/b/i/a/f/i/b/c7.java new file mode 100644 index 0000000000..aec7254428 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c7.java @@ -0,0 +1,110 @@ +package b.i.a.f.i.b; + +import android.net.Uri; +import android.os.Bundle; +import android.text.TextUtils; +import com.adjust.sdk.Constants; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c7 implements Runnable { + public final /* synthetic */ boolean j; + public final /* synthetic */ Uri k; + public final /* synthetic */ String l; + public final /* synthetic */ String m; + public final /* synthetic */ y6 n; + + public c7(y6 y6Var, boolean z2, Uri uri, String str, String str2) { + this.n = y6Var; + this.j = z2; + this.k = uri; + this.l = str; + this.m = str2; + } + + /* JADX WARNING: Removed duplicated region for block: B:30:0x00a0 */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x00fb */ + /* JADX WARNING: Removed duplicated region for block: B:57:0x013d */ + /* JADX WARNING: Removed duplicated region for block: B:90:? A[RETURN, SYNTHETIC] */ + @Override // java.lang.Runnable + public final void run() { + Bundle bundle; + Bundle bundle2; + y6 y6Var = this.n; + boolean z2 = this.j; + Uri uri = this.k; + String str = this.l; + String str2 = this.m; + y6Var.j.b(); + try { + if (y6Var.j.a.h.o(p.f1541e0) || y6Var.j.a.h.o(p.f1543g0) || y6Var.j.a.h.o(p.f1542f0)) { + t9 e = y6Var.j.e(); + if (!TextUtils.isEmpty(str2)) { + if (str2.contains("gclid") || str2.contains("utm_campaign") || str2.contains("utm_source") || str2.contains("utm_medium")) { + bundle = e.x(Uri.parse(str2.length() != 0 ? "https://google.com/search?".concat(str2) : new String("https://google.com/search?"))); + if (bundle != null) { + bundle.putString("_cis", Constants.REFERRER); + } + boolean z3 = true; + if (!z2) { + bundle2 = y6Var.j.e().x(uri); + if (bundle2 != null) { + bundle2.putString("_cis", "intent"); + if (y6Var.j.a.h.o(p.f1541e0) && !bundle2.containsKey("gclid") && bundle != null && bundle.containsKey("gclid")) { + bundle2.putString("_cer", String.format("gclid=%s", bundle.getString("gclid"))); + } + y6Var.j.H(str, "_cmp", bundle2); + if (y6Var.j.a.h.o(p.D0)) { + y6Var.j.n.a(str, bundle2); + } + } + } else { + bundle2 = null; + } + if (y6Var.j.a.h.o(p.f1543g0) && !y6Var.j.a.h.o(p.f1542f0) && bundle != null && bundle.containsKey("gclid") && (bundle2 == null || !bundle2.containsKey("gclid"))) { + y6Var.j.J("auto", "_lgclid", bundle.getString("gclid")); + } + if (TextUtils.isEmpty(str2)) { + y6Var.j.g().m.b("Activity created with referrer", str2); + if (y6Var.j.a.h.o(p.f1542f0)) { + if (bundle != null) { + y6Var.j.H(str, "_cmp", bundle); + if (y6Var.j.a.h.o(p.D0)) { + y6Var.j.n.a(str, bundle); + } + } else { + y6Var.j.g().m.b("Referrer does not contain valid parameters", str2); + } + y6Var.j.J("auto", "_ldl", null); + return; + } + if (!str2.contains("gclid") || (!str2.contains("utm_campaign") && !str2.contains("utm_source") && !str2.contains("utm_medium") && !str2.contains("utm_term") && !str2.contains("utm_content"))) { + z3 = false; + } + if (!z3) { + y6Var.j.g().m.a("Activity created with data 'referrer' without required params"); + return; + } else if (!TextUtils.isEmpty(str2)) { + y6Var.j.J("auto", "_ldl", str2); + return; + } else { + return; + } + } else { + return; + } + } else { + e.g().m.a("Activity created with data 'referrer' without required params"); + } + } + } + bundle = null; + boolean z3 = true; + if (!z2) { + } + y6Var.j.J("auto", "_lgclid", bundle.getString("gclid")); + if (TextUtils.isEmpty(str2)) { + } + } catch (Exception e2) { + y6Var.j.g().f.b("Throwable caught in handleReferrerForOnActivityCreated", e2); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c8.java b/app/src/main/java/b/i/a/f/i/b/c8.java new file mode 100644 index 0000000000..fefd05800e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c8.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import android.os.RemoteException; +import b.i.a.f.h.l.fc; +import com.google.android.gms.measurement.internal.zzaq; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c8 implements Runnable { + public final /* synthetic */ zzaq j; + public final /* synthetic */ String k; + public final /* synthetic */ fc l; + public final /* synthetic */ q7 m; + + public c8(q7 q7Var, zzaq zzaq, String str, fc fcVar) { + this.m = q7Var; + this.j = zzaq; + this.k = str; + this.l = fcVar; + } + + @Override // java.lang.Runnable + public final void run() { + byte[] bArr = null; + try { + q7 q7Var = this.m; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Discarding data. Failed to send event to service to bundle"); + return; + } + byte[] i = i3Var.i(this.j, this.k); + this.m.F(); + this.m.e().P(this.l, i); + } catch (RemoteException e) { + this.m.g().f.b("Failed to send event to the service to bundle", e); + } finally { + this.m.e().P(this.l, bArr); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/c9.java b/app/src/main/java/b/i/a/f/i/b/c9.java new file mode 100644 index 0000000000..d7a5a4562e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/c9.java @@ -0,0 +1,28 @@ +package b.i.a.f.i.b; + +import android.os.SystemClock; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.c; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class c9 extends i { + public final /* synthetic */ d9 e; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c9(d9 d9Var, t5 t5Var) { + super(t5Var); + this.e = d9Var; + } + + @Override // b.i.a.f.i.b.i + @WorkerThread + public final void a() { + d9 d9Var = this.e; + d9Var.d.b(); + Objects.requireNonNull((c) d9Var.d.a.o); + d9Var.a(false, false, SystemClock.elapsedRealtime()); + a m = d9Var.d.m(); + Objects.requireNonNull((c) d9Var.d.a.o); + m.t(SystemClock.elapsedRealtime()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/ca.java b/app/src/main/java/b/i/a/f/i/b/ca.java new file mode 100644 index 0000000000..429ce5f88b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/ca.java @@ -0,0 +1,180 @@ +package b.i.a.f.i.b; + +import android.database.Cursor; +import android.database.sqlite.SQLiteException; +import android.text.TextUtils; +import android.util.Pair; +import b.i.a.f.h.l.a1; +import b.i.a.f.h.l.c1; +import b.i.a.f.h.l.u4; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class ca { + public a1 a; + + /* renamed from: b reason: collision with root package name */ + public Long f1507b; + public long c; + public final /* synthetic */ ba d; + + public ca(ba baVar, aa aaVar) { + this.d = baVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:43:0x00f2 */ + /* JADX WARNING: Removed duplicated region for block: B:46:0x00f8 */ + /* JADX WARNING: Removed duplicated region for block: B:73:0x01c0 */ + public final a1 a(String str, a1 a1Var) { + Cursor cursor; + Throwable th; + Pair pair; + Object obj; + Cursor cursor2; + SQLiteException e; + String F = a1Var.F(); + List v = a1Var.v(); + this.d.m(); + Long l = (Long) q9.R(a1Var, "_eid"); + boolean z2 = l != null; + if (z2 && F.equals("_ep")) { + this.d.m(); + String str2 = (String) q9.R(a1Var, "_en"); + if (TextUtils.isEmpty(str2)) { + this.d.g().g.b("Extra parameter without an event name. eventId", l); + return null; + } + if (this.a == null || this.f1507b == null || l.longValue() != this.f1507b.longValue()) { + g q = this.d.q(); + q.b(); + q.n(); + try { + cursor2 = q.t().rawQuery("select main_event, children_to_process from main_event_params where app_id=? and event_id=?", new String[]{str, String.valueOf(l)}); + try { + if (!cursor2.moveToFirst()) { + q.g().n.a("Main event not found"); + cursor2.close(); + pair = null; + } else { + try { + pair = Pair.create((a1) ((u4) ((a1.a) q9.x(a1.M(), cursor2.getBlob(0))).p()), Long.valueOf(cursor2.getLong(1))); + cursor2.close(); + } catch (IOException e2) { + q.g().f.d("Failed to merge main event. appId, eventId", q3.s(str), l, e2); + cursor2.close(); + pair = null; + if (pair != null) { + } + this.d.g().g.c("Extra parameter without existing main event. eventName, eventId", str2, l); + return null; + } + } + } catch (SQLiteException e3) { + e = e3; + try { + q.g().f.b("Error selecting main event", e); + if (cursor2 != null) { + } + pair = null; + if (pair != null) { + } + this.d.g().g.c("Extra parameter without existing main event. eventName, eventId", str2, l); + return null; + } catch (Throwable th2) { + th = th2; + cursor = cursor2; + if (cursor != null) { + } + throw th; + } + } + } catch (SQLiteException e4) { + e = e4; + cursor2 = null; + q.g().f.b("Error selecting main event", e); + if (cursor2 != null) { + cursor2.close(); + } + pair = null; + if (pair != null) { + } + this.d.g().g.c("Extra parameter without existing main event. eventName, eventId", str2, l); + return null; + } catch (Throwable th3) { + th = th3; + cursor = null; + if (cursor != null) { + cursor.close(); + } + throw th; + } + if (pair != null || (obj = pair.first) == null) { + this.d.g().g.c("Extra parameter without existing main event. eventName, eventId", str2, l); + return null; + } + this.a = (a1) obj; + this.c = ((Long) pair.second).longValue(); + this.d.m(); + this.f1507b = (Long) q9.R(this.a, "_eid"); + } + long j = this.c - 1; + this.c = j; + if (j <= 0) { + g q2 = this.d.q(); + q2.b(); + q2.g().n.b("Clearing complex main event info. appId", str); + try { + q2.t().execSQL("delete from main_event_params where app_id=?", new String[]{str}); + } catch (SQLiteException e5) { + q2.g().f.b("Error clearing complex main event", e5); + } + } else { + this.d.q().Q(str, l, this.c, this.a); + } + ArrayList arrayList = new ArrayList(); + for (c1 c1Var : this.a.v()) { + this.d.m(); + if (q9.w(a1Var, c1Var.B()) == null) { + arrayList.add(c1Var); + } + } + if (!arrayList.isEmpty()) { + arrayList.addAll(v); + v = arrayList; + } else { + this.d.g().g.b("No unique parameters in main event. eventName", str2); + } + F = str2; + } else if (z2) { + this.f1507b = l; + this.a = a1Var; + this.d.m(); + long j2 = 0L; + Object R = q9.R(a1Var, "_epc"); + if (R != null) { + j2 = R; + } + long longValue = ((Long) j2).longValue(); + this.c = longValue; + if (longValue <= 0) { + this.d.g().g.b("Complex event with zero extra param count. eventName", F); + } else { + this.d.q().Q(str, l, this.c, a1Var); + } + } + a1.a t = a1Var.t(); + t.t(F); + if (t.l) { + t.n(); + t.l = false; + } + a1.w((a1) t.k); + if (t.l) { + t.n(); + t.l = false; + } + a1.B((a1) t.k, v); + return (a1) ((u4) t.p()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d.java b/app/src/main/java/b/i/a/f/i/b/d.java new file mode 100644 index 0000000000..27deff22f1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d.java @@ -0,0 +1,164 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class d { + public static final d a = new d(null, null); + + /* renamed from: b reason: collision with root package name */ + public final Boolean f1508b; + public final Boolean c; + + public d(Boolean bool, Boolean bool2) { + this.f1508b = bool; + this.c = bool2; + } + + public static int a(Boolean bool) { + if (bool == null) { + return 0; + } + return bool.booleanValue() ? 1 : 2; + } + + /* JADX WARNING: Removed duplicated region for block: B:12:0x0026 */ + public static d b(String str) { + Boolean bool; + Boolean bool2; + Boolean bool3; + Boolean bool4 = null; + if (str != null) { + if (str.length() >= 3) { + char charAt = str.charAt(2); + if (charAt == '0') { + bool2 = Boolean.FALSE; + } else if (charAt == '1') { + bool2 = Boolean.TRUE; + } + if (str.length() >= 4) { + char charAt2 = str.charAt(3); + if (charAt2 == '0') { + bool3 = Boolean.FALSE; + } else if (charAt2 == '1') { + bool3 = Boolean.TRUE; + } + bool4 = bool3; + } + bool = bool4; + bool4 = bool2; + } + bool2 = null; + if (str.length() >= 4) { + } + bool = bool4; + bool4 = bool2; + } else { + bool = null; + } + return new d(bool4, bool); + } + + public static Boolean c(Boolean bool, Boolean bool2) { + if (bool == null) { + return bool2; + } + if (bool2 == null) { + return bool; + } + return Boolean.valueOf(bool.booleanValue() && bool2.booleanValue()); + } + + public static boolean e(int i, int i2) { + return i <= i2; + } + + public static d g(Bundle bundle) { + return bundle == null ? a : new d(i(bundle.getString("ad_storage")), i(bundle.getString("analytics_storage"))); + } + + public static Boolean i(String str) { + if (str == null) { + return null; + } + if (str.equals("granted")) { + return Boolean.TRUE; + } + if (str.equals("denied")) { + return Boolean.FALSE; + } + return null; + } + + public final String d() { + StringBuilder sb = new StringBuilder("G1"); + Boolean bool = this.f1508b; + char c = '0'; + sb.append(bool == null ? '-' : bool.booleanValue() ? '1' : '0'); + Boolean bool2 = this.c; + if (bool2 == null) { + c = '-'; + } else if (bool2.booleanValue()) { + c = '1'; + } + sb.append(c); + return sb.toString(); + } + + public final boolean equals(Object obj) { + if (!(obj instanceof d)) { + return false; + } + d dVar = (d) obj; + return a(this.f1508b) == a(dVar.f1508b) && a(this.c) == a(dVar.c); + } + + public final boolean f(d dVar) { + Boolean bool = this.f1508b; + Boolean bool2 = Boolean.FALSE; + if (bool != bool2 || dVar.f1508b == bool2) { + return this.c == bool2 && dVar.c != bool2; + } + return true; + } + + public final d h(d dVar) { + return new d(c(this.f1508b, dVar.f1508b), c(this.c, dVar.c)); + } + + public final int hashCode() { + return a(this.c) + ((a(this.f1508b) + 527) * 31); + } + + public final boolean j() { + Boolean bool = this.f1508b; + return bool == null || bool.booleanValue(); + } + + public final boolean k() { + Boolean bool = this.c; + return bool == null || bool.booleanValue(); + } + + public final String toString() { + StringBuilder sb = new StringBuilder("ConsentSettings: "); + sb.append("adStorage="); + Boolean bool = this.f1508b; + String str = "granted"; + if (bool == null) { + sb.append("uninitialized"); + } else { + sb.append(bool.booleanValue() ? str : "denied"); + } + sb.append(", analyticsStorage="); + Boolean bool2 = this.c; + if (bool2 == null) { + sb.append("uninitialized"); + } else { + if (!bool2.booleanValue()) { + str = "denied"; + } + sb.append(str); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d0.java b/app/src/main/java/b/i/a/f/i/b/d0.java new file mode 100644 index 0000000000..8384bc8562 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class d0 implements h3 { + public static final h3 a = new d0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).F()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d1.java b/app/src/main/java/b/i/a/f/i/b/d1.java new file mode 100644 index 0000000000..101d453332 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.w9; +import b.i.a.f.h.l.x9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class d1 implements h3 { + public static final h3 a = new d1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((w9) x9.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d2.java b/app/src/main/java/b/i/a/f/i/b/d2.java new file mode 100644 index 0000000000..e4b825b696 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.q9; +import b.i.a.f.h.l.r9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class d2 implements h3 { + public static final h3 a = new d2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((q9) r9.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d3.java b/app/src/main/java/b/i/a/f/i/b/d3.java new file mode 100644 index 0000000000..e5078d932b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d3.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.g8; +import b.i.a.f.h.l.h8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class d3 implements h3 { + public static final h3 a = new d3(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((g8) h8.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d4.java b/app/src/main/java/b/i/a/f/i/b/d4.java new file mode 100644 index 0000000000..f7009852cb --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d4.java @@ -0,0 +1,121 @@ +package b.i.a.f.i.b; + +import android.content.SharedPreferences; +import android.util.Pair; +import androidx.annotation.WorkerThread; +import com.discord.stores.StoreGuildScheduledEvents; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class d4 extends r5 { + public static final Pair c = new Pair<>("", 0L); + public final j4 A = new j4(this, "firebase_feature_rollouts"); + public final j4 B = new j4(this, "deferred_attribution_cache"); + public final h4 C = new h4(this, "deferred_attribution_cache_timestamp", 0); + public final i4 D = new i4(this, "default_event_parameters"); + public SharedPreferences d; + public k4 e; + public final h4 f = new h4(this, "last_upload", 0); + public final h4 g = new h4(this, "last_upload_attempt", 0); + public final h4 h = new h4(this, "backoff", 0); + public final h4 i = new h4(this, "last_delete_stale", 0); + public final h4 j = new h4(this, "midnight_offset", 0); + public final h4 k = new h4(this, "first_open_time", 0); + public final h4 l = new h4(this, "app_install_time", 0); + public final j4 m = new j4(this, "app_instance_id"); + public String n; + public boolean o; + public long p; + public final h4 q = new h4(this, "time_before_start", 10000); + public final h4 r = new h4(this, "session_timeout", StoreGuildScheduledEvents.FETCH_GUILD_EVENTS_THRESHOLD); + + /* renamed from: s reason: collision with root package name */ + public final f4 f1509s = new f4(this, "start_new_session", true); + public final j4 t = new j4(this, "non_personalized_ads"); + public final f4 u = new f4(this, "allow_remote_dynamite", false); + public final h4 v = new h4(this, "last_pause_time", 0); + public boolean w; + + /* renamed from: x reason: collision with root package name */ + public f4 f1510x = new f4(this, "app_backgrounded", false); + + /* renamed from: y reason: collision with root package name */ + public f4 f1511y = new f4(this, "deep_link_retrieval_complete", false); + + /* renamed from: z reason: collision with root package name */ + public h4 f1512z = new h4(this, "deep_link_retrieval_attempts", 0); + + public d4(u4 u4Var) { + super(u4Var); + } + + @Override // b.i.a.f.i.b.r5 + @WorkerThread + public final void m() { + SharedPreferences sharedPreferences = this.a.f1555b.getSharedPreferences("com.google.android.gms.measurement.prefs", 0); + this.d = sharedPreferences; + boolean z2 = sharedPreferences.getBoolean("has_been_opened", false); + this.w = z2; + if (!z2) { + SharedPreferences.Editor edit = this.d.edit(); + edit.putBoolean("has_been_opened", true); + edit.apply(); + } + this.e = new k4(this, "health_monitor", Math.max(0L, p.c.a(null).longValue()), null); + } + + @Override // b.i.a.f.i.b.r5 + public final boolean r() { + return true; + } + + @WorkerThread + public final void s(Boolean bool) { + b(); + SharedPreferences.Editor edit = w().edit(); + if (bool != null) { + edit.putBoolean("measurement_enabled", bool.booleanValue()); + } else { + edit.remove("measurement_enabled"); + } + edit.apply(); + } + + @WorkerThread + public final boolean t(int i) { + return d.e(i, w().getInt("consent_source", 100)); + } + + public final boolean u(long j) { + return j - this.r.a() > this.v.a(); + } + + @WorkerThread + public final void v(boolean z2) { + b(); + g().n.b("App measurement setting deferred collection", Boolean.valueOf(z2)); + SharedPreferences.Editor edit = w().edit(); + edit.putBoolean("deferred_analytics_collection", z2); + edit.apply(); + } + + @WorkerThread + public final SharedPreferences w() { + b(); + o(); + return this.d; + } + + @WorkerThread + public final Boolean x() { + b(); + if (w().contains("measurement_enabled")) { + return Boolean.valueOf(w().getBoolean("measurement_enabled", true)); + } + return null; + } + + @WorkerThread + public final d y() { + b(); + return d.b(w().getString("consent_settings", "G1")); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d5.java b/app/src/main/java/b/i/a/f/i/b/d5.java new file mode 100644 index 0000000000..b9c19b45a4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d5.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzn; +import java.util.List; +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class d5 implements Callable> { + public final /* synthetic */ zzn j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ z4 m; + + public d5(z4 z4Var, zzn zzn, String str, String str2) { + this.m = z4Var; + this.j = zzn; + this.k = str; + this.l = str2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final /* synthetic */ List call() throws Exception { + this.m.a.R(); + return this.m.a.K().E(this.j.j, this.k, this.l); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d6.java b/app/src/main/java/b/i/a/f/i/b/d6.java new file mode 100644 index 0000000000..eb015dacf0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d6.java @@ -0,0 +1,34 @@ +package b.i.a.f.i.b; + +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class d6 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ c6 k; + + public d6(c6 c6Var, AtomicReference atomicReference) { + this.k = c6Var; + this.j = atomicReference; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j) { + try { + AtomicReference atomicReference = this.j; + c6 c6Var = this.k; + c cVar = c6Var.a.h; + n3 o = c6Var.o(); + o.t(); + String str = o.c; + Objects.requireNonNull(cVar); + atomicReference.set(Boolean.valueOf(cVar.u(str, p.K))); + this.j.notify(); + } catch (Throwable th) { + this.j.notify(); + throw th; + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d7.java b/app/src/main/java/b/i/a/f/i/b/d7.java new file mode 100644 index 0000000000..64d0025b12 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d7.java @@ -0,0 +1,59 @@ +package b.i.a.f.i.b; + +import androidx.annotation.WorkerThread; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.HttpURLConnection; +import java.net.URL; +import java.net.URLConnection; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class d7 extends r5 { + public d7(u4 u4Var) { + super(u4Var); + } + + public static byte[] t(HttpURLConnection httpURLConnection) throws IOException { + InputStream inputStream = null; + try { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + InputStream inputStream2 = httpURLConnection.getInputStream(); + byte[] bArr = new byte[1024]; + while (true) { + int read = inputStream2.read(bArr); + if (read > 0) { + byteArrayOutputStream.write(bArr, 0, read); + } else { + byte[] byteArray = byteArrayOutputStream.toByteArray(); + inputStream2.close(); + return byteArray; + } + } + } catch (Throwable th) { + if (0 != 0) { + inputStream.close(); + } + throw th; + } + } + + @Override // b.i.a.f.i.b.r5 + public final boolean r() { + return false; + } + + @WorkerThread + public final HttpURLConnection s(URL url) throws IOException { + URLConnection openConnection = url.openConnection(); + if (openConnection instanceof HttpURLConnection) { + HttpURLConnection httpURLConnection = (HttpURLConnection) openConnection; + httpURLConnection.setDefaultUseCaches(false); + httpURLConnection.setConnectTimeout(60000); + httpURLConnection.setReadTimeout(61000); + httpURLConnection.setInstanceFollowRedirects(false); + httpURLConnection.setDoInput(true); + return httpURLConnection; + } + throw new IOException("Failed to obtain HTTP connection"); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d8.java b/app/src/main/java/b/i/a/f/i/b/d8.java new file mode 100644 index 0000000000..6c1bb11d2c --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d8.java @@ -0,0 +1,32 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class d8 implements Runnable { + public final /* synthetic */ boolean j; + public final /* synthetic */ zzaq k; + public final /* synthetic */ zzn l; + public final /* synthetic */ String m; + public final /* synthetic */ q7 n; + + public d8(q7 q7Var, boolean z2, boolean z3, zzaq zzaq, zzn zzn, String str) { + this.n = q7Var; + this.j = z3; + this.k = zzaq; + this.l = zzn; + this.m = str; + } + + @Override // java.lang.Runnable + public final void run() { + q7 q7Var = this.n; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Discarding data. Failed to send event to service"); + return; + } + q7Var.w(i3Var, this.j ? null : this.k, this.l); + this.n.F(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/d9.java b/app/src/main/java/b/i/a/f/i/b/d9.java new file mode 100644 index 0000000000..0074d615b2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/d9.java @@ -0,0 +1,75 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.os.SystemClock; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.c; +import b.i.a.f.h.l.r9; +import b.i.a.f.h.l.s9; +import b.i.a.f.h.l.v9; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class d9 { + public long a; + + /* renamed from: b reason: collision with root package name */ + public long f1513b; + public final i c; + public final /* synthetic */ w8 d; + + public d9(w8 w8Var) { + this.d = w8Var; + this.c = new c9(this, w8Var.a); + Objects.requireNonNull((c) w8Var.a.o); + long elapsedRealtime = SystemClock.elapsedRealtime(); + this.a = elapsedRealtime; + this.f1513b = elapsedRealtime; + } + + @WorkerThread + public final boolean a(boolean z2, boolean z3, long j) { + this.d.b(); + this.d.t(); + if (!r9.b() || !this.d.a.h.o(p.q0) || this.d.a.d()) { + h4 h4Var = this.d.l().v; + Objects.requireNonNull((c) this.d.a.o); + h4Var.b(System.currentTimeMillis()); + } + long j2 = j - this.a; + if (z2 || j2 >= 1000) { + if (this.d.a.h.o(p.T) && !z3) { + if (!((v9) s9.j.a()).a() || !this.d.a.h.o(p.V)) { + j2 = b(); + } else { + j2 = j - this.f1513b; + this.f1513b = j; + } + } + this.d.g().n.b("Recording user engagement, ms", Long.valueOf(j2)); + Bundle bundle = new Bundle(); + bundle.putLong("_et", j2); + h7.A(this.d.q().w(!this.d.a.h.z().booleanValue()), bundle, true); + if (this.d.a.h.o(p.T) && !this.d.a.h.o(p.U) && z3) { + bundle.putLong("_fr", 1); + } + if (!this.d.a.h.o(p.U) || !z3) { + this.d.n().H("auto", "_e", bundle); + } + this.a = j; + this.c.c(); + this.c.b(3600000); + return true; + } + this.d.g().n.b("Screen exposed for less than 1000 ms. Event not sent. time", Long.valueOf(j2)); + return false; + } + + @WorkerThread + public final long b() { + Objects.requireNonNull((c) this.d.a.o); + long elapsedRealtime = SystemClock.elapsedRealtime(); + long j = elapsedRealtime - this.f1513b; + this.f1513b = elapsedRealtime; + return j; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/da.java b/app/src/main/java/b/i/a/f/i/b/da.java new file mode 100644 index 0000000000..aae3b79081 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/da.java @@ -0,0 +1,209 @@ +package b.i.a.f.i.b; + +import androidx.annotation.NonNull; +import androidx.collection.ArrayMap; +import b.i.a.f.h.l.f9; +import b.i.a.f.h.l.g1; +import b.i.a.f.h.l.h1; +import b.i.a.f.h.l.u4; +import b.i.a.f.h.l.y0; +import b.i.a.f.h.l.z0; +import java.util.ArrayList; +import java.util.BitSet; +import java.util.Collections; +import java.util.List; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class da { + public String a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1514b; + public g1 c; + public BitSet d; + public BitSet e; + public Map f; + public Map> g; + public final /* synthetic */ ba h; + + public da(ba baVar, String str, g1 g1Var, BitSet bitSet, BitSet bitSet2, Map map, Map map2, aa aaVar) { + this.h = baVar; + this.a = str; + this.d = bitSet; + this.e = bitSet2; + this.f = map; + this.g = new ArrayMap(); + for (Integer num : map2.keySet()) { + ArrayList arrayList = new ArrayList(); + arrayList.add((Long) map2.get(num)); + this.g.put(num, arrayList); + } + this.f1514b = false; + this.c = g1Var; + } + + public da(ba baVar, String str, aa aaVar) { + this.h = baVar; + this.a = str; + this.f1514b = true; + this.d = new BitSet(); + this.e = new BitSet(); + this.f = new ArrayMap(); + this.g = new ArrayMap(); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:61:0x0151 */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX DEBUG: Type inference failed for r1v1. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r1v4. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r3v1. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r3v4. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r3v7. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r3v10. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r1v15. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r7v1. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r6v3. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r6v6. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r4v16. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX DEBUG: Type inference failed for r1v22. Raw type applied. Possible types: MessageType extends b.i.a.f.h.l.u4 */ + /* JADX WARNING: Unknown variable types count: 1 */ + @NonNull + public final y0 a(int i) { + ArrayList arrayList; + ?? r1; + y0.a F = y0.F(); + if (F.l) { + F.n(); + F.l = false; + } + y0.u((y0) F.k, i); + boolean z2 = this.f1514b; + if (F.l) { + F.n(); + F.l = false; + } + y0.w((y0) F.k, z2); + g1 g1Var = this.c; + if (g1Var != null) { + if (F.l) { + F.n(); + F.l = false; + } + y0.z((y0) F.k, g1Var); + } + g1.a M = g1.M(); + List B = q9.B(this.d); + if (M.l) { + M.n(); + M.l = false; + } + g1.D((g1) M.k, B); + List B2 = q9.B(this.e); + if (M.l) { + M.n(); + M.l = false; + } + g1.y((g1) M.k, B2); + if (this.f == null) { + arrayList = null; + } else { + arrayList = new ArrayList(this.f.size()); + for (Integer num : this.f.keySet()) { + int intValue = num.intValue(); + z0.a A = z0.A(); + if (A.l) { + A.n(); + A.l = false; + } + z0.u((z0) A.k, intValue); + long longValue = this.f.get(Integer.valueOf(intValue)).longValue(); + if (A.l) { + A.n(); + A.l = false; + } + z0.v((z0) A.k, longValue); + arrayList.add((z0) ((u4) A.p())); + } + } + if (M.l) { + M.n(); + M.l = false; + } + g1.F((g1) M.k, arrayList); + if (this.g == null) { + r1 = Collections.emptyList(); + } else { + r1 = new ArrayList(this.g.size()); + for (Integer num2 : this.g.keySet()) { + h1.a B3 = h1.B(); + int intValue2 = num2.intValue(); + if (B3.l) { + B3.n(); + B3.l = false; + } + h1.v((h1) B3.k, intValue2); + List list = this.g.get(num2); + if (list != null) { + Collections.sort(list); + if (B3.l) { + B3.n(); + B3.l = false; + } + h1.w((h1) B3.k, list); + } + r1.add((h1) ((u4) B3.p())); + } + } + if (M.l) { + M.n(); + M.l = false; + } + g1.H((g1) M.k, r1); + if (F.l) { + F.n(); + F.l = false; + } + y0.v((y0) F.k, (g1) ((u4) M.p())); + return (y0) ((u4) F.p()); + } + + public final void b(@NonNull ea eaVar) { + int a = eaVar.a(); + Boolean bool = eaVar.c; + if (bool != null) { + this.e.set(a, bool.booleanValue()); + } + Boolean bool2 = eaVar.d; + if (bool2 != null) { + this.d.set(a, bool2.booleanValue()); + } + if (eaVar.e != null) { + Long l = this.f.get(Integer.valueOf(a)); + long longValue = eaVar.e.longValue() / 1000; + if (l == null || longValue > l.longValue()) { + this.f.put(Integer.valueOf(a), Long.valueOf(longValue)); + } + } + if (eaVar.f != null) { + List list = this.g.get(Integer.valueOf(a)); + if (list == null) { + list = new ArrayList<>(); + this.g.put(Integer.valueOf(a), list); + } + if (eaVar.g()) { + list.clear(); + } + if (f9.b() && this.h.a.h.u(this.a, p.f1539c0) && eaVar.h()) { + list.clear(); + } + if (!f9.b() || !this.h.a.h.u(this.a, p.f1539c0)) { + list.add(Long.valueOf(eaVar.f.longValue() / 1000)); + return; + } + long longValue2 = eaVar.f.longValue() / 1000; + if (!list.contains(Long.valueOf(longValue2))) { + list.add(Long.valueOf(longValue2)); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e.java b/app/src/main/java/b/i/a/f/i/b/e.java new file mode 100644 index 0000000000..853e3582ad --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e.java @@ -0,0 +1,5 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface e { + String i(String str, String str2); +} diff --git a/app/src/main/java/b/i/a/f/i/b/e0.java b/app/src/main/java/b/i/a/f/i/b/e0.java new file mode 100644 index 0000000000..685d1efdea --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class e0 implements h3 { + public static final h3 a = new e0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).e()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e1.java b/app/src/main/java/b/i/a/f/i/b/e1.java new file mode 100644 index 0000000000..ed68f0ba1d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.w9; +import b.i.a.f.h.l.x9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class e1 implements h3 { + public static final h3 a = new e1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((w9) x9.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e2.java b/app/src/main/java/b/i/a/f/i/b/e2.java new file mode 100644 index 0000000000..e6718b9021 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.g9; +import b.i.a.f.h.l.j9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class e2 implements h3 { + public static final h3 a = new e2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((j9) g9.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e3.java b/app/src/main/java/b/i/a/f/i/b/e3.java new file mode 100644 index 0000000000..83b3a4ff10 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e3.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.x7; +import b.i.a.f.h.l.z7; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class e3 implements h3 { + public static final h3 a = new e3(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((z7) x7.j.a()).c()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e4.java b/app/src/main/java/b/i/a/f/i/b/e4.java new file mode 100644 index 0000000000..8ea10635d8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e4.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class e4 implements Runnable { + public final /* synthetic */ boolean j; + public final /* synthetic */ b4 k; + + public e4(b4 b4Var, boolean z2) { + this.k = b4Var; + this.j = z2; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.a.w(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e5.java b/app/src/main/java/b/i/a/f/i/b/e5.java new file mode 100644 index 0000000000..70c1d2471e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e5.java @@ -0,0 +1,38 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class e5 implements Runnable { + public final /* synthetic */ zzz j; + public final /* synthetic */ z4 k; + + public e5(z4 z4Var, zzz zzz) { + this.k = z4Var; + this.j = zzz; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.a.R(); + if (this.j.l.w0() == null) { + k9 k9Var = this.k.a; + zzz zzz = this.j; + Objects.requireNonNull(k9Var); + zzn y2 = k9Var.y(zzz.j); + if (y2 != null) { + k9Var.F(zzz, y2); + return; + } + return; + } + k9 k9Var2 = this.k.a; + zzz zzz2 = this.j; + Objects.requireNonNull(k9Var2); + zzn y3 = k9Var2.y(zzz2.j); + if (y3 != null) { + k9Var2.q(zzz2, y3); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e6.java b/app/src/main/java/b/i/a/f/i/b/e6.java new file mode 100644 index 0000000000..6ecb88dfe6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e6.java @@ -0,0 +1,110 @@ +package b.i.a.f.i.b; + +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.os.SystemClock; +import android.text.TextUtils; +import android.util.Pair; +import b.c.a.a0.d; +import b.i.a.f.e.o.c; +import com.google.android.gms.ads.identifier.AdvertisingIdClient; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class e6 implements Runnable { + public final c6 j; + + public e6(c6 c6Var) { + this.j = c6Var; + } + + @Override // java.lang.Runnable + public final void run() { + Pair pair; + NetworkInfo networkInfo; + URL url; + c6 c6Var = this.j; + c6Var.b(); + if (c6Var.l().f1511y.b()) { + c6Var.g().m.a("Deferred Deep Link already retrieved. Not fetching again."); + return; + } + long a = c6Var.l().f1512z.a(); + c6Var.l().f1512z.b(a + 1); + if (a >= 5) { + c6Var.g().i.a("Permanently failed to retrieve Deferred Deep Link. Reached maximum retries."); + c6Var.l().f1511y.a(true); + return; + } + u4 u4Var = c6Var.a; + u4Var.f().b(); + u4.q(u4Var.n()); + n3 z2 = u4Var.z(); + z2.t(); + String str = z2.c; + d4 o = u4Var.o(); + o.b(); + Objects.requireNonNull((c) o.a.o); + long elapsedRealtime = SystemClock.elapsedRealtime(); + if (o.n == null || elapsedRealtime >= o.p) { + c cVar = o.a.h; + Objects.requireNonNull(cVar); + o.p = cVar.n(str, p.f1537b) + elapsedRealtime; + try { + AdvertisingIdClient.Info advertisingIdInfo = AdvertisingIdClient.getAdvertisingIdInfo(o.a.f1555b); + if (advertisingIdInfo != null) { + o.n = advertisingIdInfo.getId(); + o.o = advertisingIdInfo.isLimitAdTrackingEnabled(); + } + if (o.n == null) { + o.n = ""; + } + } catch (Exception e) { + o.g().m.b("Unable to get advertising id", e); + o.n = ""; + } + pair = new Pair(o.n, Boolean.valueOf(o.o)); + } else { + pair = new Pair(o.n, Boolean.valueOf(o.o)); + } + if (!u4Var.h.y().booleanValue() || ((Boolean) pair.second).booleanValue() || TextUtils.isEmpty((CharSequence) pair.first)) { + u4Var.g().m.a("ADID unavailable to retrieve Deferred Deep Link. Skipping"); + return; + } + d7 n = u4Var.n(); + n.o(); + try { + networkInfo = ((ConnectivityManager) n.a.f1555b.getSystemService("connectivity")).getActiveNetworkInfo(); + } catch (SecurityException unused) { + networkInfo = null; + } + if (!(networkInfo != null && networkInfo.isConnected())) { + u4Var.g().i.a("Network is not available for Deferred Deep Link request. Skipping"); + return; + } + t9 t = u4Var.t(); + u4Var.z(); + String str2 = (String) pair.first; + long a2 = u4Var.o().f1512z.a() - 1; + Objects.requireNonNull(t); + try { + d.w(str2); + d.w(str); + String format = String.format("https://www.googleadservices.com/pagead/conversion/app/deeplink?id_type=adid&sdk_version=%s&rdid=%s&bundleid=%s&retry=%s", String.format("v%s.%s", 33025L, Integer.valueOf(t.y0())), str2, str, Long.valueOf(a2)); + if (str.equals(t.a.h.i("debug.deferred.deeplink", ""))) { + format = format.concat("&ddl_test=1"); + } + url = new URL(format); + } catch (IllegalArgumentException | MalformedURLException e2) { + t.g().f.b("Failed to create BOW URL for Deferred Deep Link. exception", e2.getMessage()); + url = null; + } + d7 n2 = u4Var.n(); + x4 x4Var = new x4(u4Var); + n2.b(); + n2.o(); + Objects.requireNonNull(url, "null reference"); + n2.f().x(new f7(n2, str, url, x4Var)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e7.java b/app/src/main/java/b/i/a/f/i/b/e7.java new file mode 100644 index 0000000000..877c539a4e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e7.java @@ -0,0 +1,77 @@ +package b.i.a.f.i.b; + +import android.content.Intent; +import android.content.pm.ResolveInfo; +import android.net.Uri; +import android.os.Bundle; +import android.text.TextUtils; +import com.adjust.sdk.Constants; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.util.List; +import java.util.Map; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class e7 implements Runnable { + public final f7 j; + public final int k; + public final Exception l; + public final byte[] m; + public final Map n; + + public e7(f7 f7Var, int i, Exception exc, byte[] bArr, Map map) { + this.j = f7Var; + this.k = i; + this.l = exc; + this.m = bArr; + this.n = map; + } + + @Override // java.lang.Runnable + public final void run() { + List queryIntentActivities; + f7 f7Var = this.j; + int i = this.k; + Exception exc = this.l; + byte[] bArr = this.m; + u4 u4Var = f7Var.k.a; + boolean z2 = true; + if (!((i == 200 || i == 204 || i == 304) && exc == null)) { + u4Var.g().i.c("Network Request for Deferred Deep Link failed. response, exception", Integer.valueOf(i), exc); + return; + } + u4Var.o().f1511y.a(true); + if (bArr.length == 0) { + u4Var.g().m.a("Deferred Deep Link response empty."); + return; + } + try { + JSONObject jSONObject = new JSONObject(new String(bArr)); + String optString = jSONObject.optString(Constants.DEEPLINK, ""); + String optString2 = jSONObject.optString("gclid", ""); + double optDouble = jSONObject.optDouble("timestamp", ShadowDrawableWrapper.COS_45); + if (TextUtils.isEmpty(optString)) { + u4Var.g().m.a("Deferred Deep Link is empty."); + return; + } + t9 t = u4Var.t(); + if (TextUtils.isEmpty(optString) || (queryIntentActivities = t.a.f1555b.getPackageManager().queryIntentActivities(new Intent("android.intent.action.VIEW", Uri.parse(optString)), 0)) == null || queryIntentActivities.isEmpty()) { + z2 = false; + } + if (!z2) { + u4Var.g().i.c("Deferred Deep Link validation failed. gclid, deep link", optString2, optString); + return; + } + Bundle bundle = new Bundle(); + bundle.putString("gclid", optString2); + bundle.putString("_cis", "ddp"); + u4Var.q.H("auto", "_cmp", bundle); + t9 t2 = u4Var.t(); + if (!TextUtils.isEmpty(optString) && t2.Y(optString, optDouble)) { + t2.a.f1555b.sendBroadcast(new Intent("android.google.analytics.action.DEEPLINK_ACTION")); + } + } catch (JSONException e) { + u4Var.g().f.b("Failed to parse the Deferred Deep Link response. exception", e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e8.java b/app/src/main/java/b/i/a/f/i/b/e8.java new file mode 100644 index 0000000000..85fe8032fe --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e8.java @@ -0,0 +1,30 @@ +package b.i.a.f.i.b; + +import android.os.RemoteException; +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class e8 implements Runnable { + public final /* synthetic */ zzn j; + public final /* synthetic */ q7 k; + + public e8(q7 q7Var, zzn zzn) { + this.k = q7Var; + this.j = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + q7 q7Var = this.k; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Failed to send consent settings to service"); + return; + } + try { + i3Var.l(this.j); + this.k.F(); + } catch (RemoteException e) { + this.k.g().f.b("Failed to send consent settings to the service", e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/e9.java b/app/src/main/java/b/i/a/f/i/b/e9.java new file mode 100644 index 0000000000..261be6afc9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/e9.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; + +import b.i.a.f.e.o.b; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class e9 { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public long f1515b; + + public e9(b bVar) { + Objects.requireNonNull(bVar, "null reference"); + this.a = bVar; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/ea.java b/app/src/main/java/b/i/a/f/i/b/ea.java new file mode 100644 index 0000000000..d5a6c4f607 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/ea.java @@ -0,0 +1,207 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.n0; +import b.i.a.f.h.l.p0; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Locale; +import java.util.Objects; +import java.util.regex.Pattern; +import java.util.regex.PatternSyntaxException; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public abstract class ea { + public String a; + + /* renamed from: b reason: collision with root package name */ + public int f1516b; + public Boolean c; + public Boolean d; + public Long e; + public Long f; + + public ea(String str, int i) { + this.a = str; + this.f1516b = i; + } + + public static Boolean b(long j, n0 n0Var) { + try { + return f(new BigDecimal(j), n0Var, ShadowDrawableWrapper.COS_45); + } catch (NumberFormatException unused) { + return null; + } + } + + public static Boolean c(Boolean bool, boolean z2) { + if (bool == null) { + return null; + } + return Boolean.valueOf(bool.booleanValue() != z2); + } + + public static Boolean d(String str, n0 n0Var) { + if (!q9.P(str)) { + return null; + } + try { + return f(new BigDecimal(str), n0Var, ShadowDrawableWrapper.COS_45); + } catch (NumberFormatException unused) { + return null; + } + } + + public static Boolean e(String str, p0 p0Var, q3 q3Var) { + List list; + p0.b bVar = p0.b.REGEXP; + p0.b bVar2 = p0.b.IN_LIST; + Objects.requireNonNull(p0Var, "null reference"); + if (str == null || !p0Var.u() || p0Var.v() == p0.b.UNKNOWN_MATCH_TYPE) { + return null; + } + if (p0Var.v() == bVar2) { + if (p0Var.B() == 0) { + return null; + } + } else if (!p0Var.w()) { + return null; + } + p0.b v = p0Var.v(); + boolean z2 = p0Var.z(); + String x2 = (z2 || v == bVar || v == bVar2) ? p0Var.x() : p0Var.x().toUpperCase(Locale.ENGLISH); + if (p0Var.B() == 0) { + list = null; + } else { + list = p0Var.A(); + if (!z2) { + ArrayList arrayList = new ArrayList(list.size()); + for (String str2 : list) { + arrayList.add(str2.toUpperCase(Locale.ENGLISH)); + } + list = Collections.unmodifiableList(arrayList); + } + } + String str3 = v == bVar ? x2 : null; + if (v == bVar2) { + if (list == null || list.size() == 0) { + return null; + } + } else if (x2 == null) { + return null; + } + if (!z2 && v != bVar) { + str = str.toUpperCase(Locale.ENGLISH); + } + switch (aa.a[v.ordinal()]) { + case 1: + try { + return Boolean.valueOf(Pattern.compile(str3, z2 ? 0 : 66).matcher(str).matches()); + } catch (PatternSyntaxException unused) { + if (q3Var == null) { + return null; + } + q3Var.i.b("Invalid regular expression in REGEXP audience filter. expression", str3); + return null; + } + case 2: + return Boolean.valueOf(str.startsWith(x2)); + case 3: + return Boolean.valueOf(str.endsWith(x2)); + case 4: + return Boolean.valueOf(str.contains(x2)); + case 5: + return Boolean.valueOf(str.equals(x2)); + case 6: + return Boolean.valueOf(list.contains(str)); + default: + return null; + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:34:0x0082, code lost: + if (r3 != null) goto L_0x0084; + */ + public static Boolean f(BigDecimal bigDecimal, n0 n0Var, double d) { + BigDecimal bigDecimal2; + BigDecimal bigDecimal3; + BigDecimal bigDecimal4; + Objects.requireNonNull(n0Var, "null reference"); + if (n0Var.u() && n0Var.v() != n0.a.UNKNOWN_COMPARISON_TYPE) { + n0.a v = n0Var.v(); + n0.a aVar = n0.a.BETWEEN; + if (v == aVar) { + if (!n0Var.A() || !n0Var.C()) { + return null; + } + } else if (!n0Var.y()) { + return null; + } + n0.a v2 = n0Var.v(); + if (n0Var.v() == aVar) { + if (q9.P(n0Var.B()) && q9.P(n0Var.D())) { + try { + BigDecimal bigDecimal5 = new BigDecimal(n0Var.B()); + bigDecimal3 = new BigDecimal(n0Var.D()); + bigDecimal2 = bigDecimal5; + bigDecimal4 = null; + } catch (NumberFormatException unused) { + } + } + return null; + } else if (!q9.P(n0Var.z())) { + return null; + } else { + try { + bigDecimal4 = new BigDecimal(n0Var.z()); + bigDecimal2 = null; + bigDecimal3 = null; + } catch (NumberFormatException unused2) { + } + } + if (v2 == aVar) { + if (bigDecimal2 == null) { + return null; + } + } + int i = aa.f1504b[v2.ordinal()]; + boolean z2 = false; + if (i == 1) { + if (bigDecimal.compareTo(bigDecimal4) == -1) { + z2 = true; + } + return Boolean.valueOf(z2); + } else if (i == 2) { + if (bigDecimal.compareTo(bigDecimal4) == 1) { + z2 = true; + } + return Boolean.valueOf(z2); + } else if (i != 3) { + if (i == 4) { + if (!(bigDecimal.compareTo(bigDecimal2) == -1 || bigDecimal.compareTo(bigDecimal3) == 1)) { + z2 = true; + } + return Boolean.valueOf(z2); + } + } else if (d != ShadowDrawableWrapper.COS_45) { + if (bigDecimal.compareTo(bigDecimal4.subtract(new BigDecimal(d).multiply(new BigDecimal(2)))) == 1 && bigDecimal.compareTo(bigDecimal4.add(new BigDecimal(d).multiply(new BigDecimal(2)))) == -1) { + z2 = true; + } + return Boolean.valueOf(z2); + } else { + if (bigDecimal.compareTo(bigDecimal4) == 0) { + z2 = true; + } + return Boolean.valueOf(z2); + } + } + return null; + } + + public abstract int a(); + + public abstract boolean g(); + + public abstract boolean h(); +} diff --git a/app/src/main/java/b/i/a/f/i/b/f.java b/app/src/main/java/b/i/a/f/i/b/f.java new file mode 100644 index 0000000000..1d7f95db81 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f.java @@ -0,0 +1,11 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class f { + public long a; + + /* renamed from: b reason: collision with root package name */ + public long f1517b; + public long c; + public long d; + public long e; +} diff --git a/app/src/main/java/b/i/a/f/i/b/f0.java b/app/src/main/java/b/i/a/f/i/b/f0.java new file mode 100644 index 0000000000..2e3e8e38d5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class f0 implements h3 { + public static final h3 a = new f0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/f1.java b/app/src/main/java/b/i/a/f/i/b/f1.java new file mode 100644 index 0000000000..5454289b6b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ab; +import b.i.a.f.h.l.bb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class f1 implements h3 { + public static final h3 a = new f1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ab) bb.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/f2.java b/app/src/main/java/b/i/a/f/i/b/f2.java new file mode 100644 index 0000000000..238c32e8df --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.y8; +import b.i.a.f.h.l.z8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class f2 implements h3 { + public static final h3 a = new f2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((y8) z8.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/f4.java b/app/src/main/java/b/i/a/f/i/b/f4.java new file mode 100644 index 0000000000..21a6326306 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f4.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import android.content.SharedPreferences; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class f4 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1518b; + public boolean c; + public boolean d; + public final /* synthetic */ d4 e; + + public f4(d4 d4Var, String str, boolean z2) { + this.e = d4Var; + d.w(str); + this.a = str; + this.f1518b = z2; + } + + @WorkerThread + public final void a(boolean z2) { + SharedPreferences.Editor edit = this.e.w().edit(); + edit.putBoolean(this.a, z2); + edit.apply(); + this.d = z2; + } + + @WorkerThread + public final boolean b() { + if (!this.c) { + this.c = true; + this.d = this.e.w().getBoolean(this.a, this.f1518b); + } + return this.d; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/f5.java b/app/src/main/java/b/i/a/f/i/b/f5.java new file mode 100644 index 0000000000..f5e4886be9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f5.java @@ -0,0 +1,27 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +import java.util.List; +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class f5 implements Callable> { + public final /* synthetic */ zzn j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ z4 m; + + public f5(z4 z4Var, zzn zzn, String str, String str2) { + this.m = z4Var; + this.j = zzn; + this.k = str; + this.l = str2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final /* synthetic */ List call() throws Exception { + this.m.a.R(); + return this.m.a.K().U(this.j.j, this.k, this.l); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/f6.java b/app/src/main/java/b/i/a/f/i/b/f6.java new file mode 100644 index 0000000000..7e4f59c346 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f6.java @@ -0,0 +1,49 @@ +package b.i.a.f.i.b; + +import android.net.Uri; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Pair; +import com.adjust.sdk.Constants; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class f6 implements Runnable { + public final /* synthetic */ c6 j; + + public f6(c6 c6Var) { + this.j = c6Var; + } + + @Override // java.lang.Runnable + public final void run() { + y9 y9Var = this.j.n; + y9Var.a.f().b(); + if (y9Var.c()) { + if (y9Var.b()) { + y9Var.a.o().B.b(null); + Bundle bundle = new Bundle(); + bundle.putString("source", "(not set)"); + bundle.putString(Constants.MEDIUM, "(not set)"); + bundle.putString("_cis", "intent"); + bundle.putLong("_cc", 1); + y9Var.a.s().H("auto", "_cmpx", bundle); + } else { + String a = y9Var.a.o().B.a(); + if (TextUtils.isEmpty(a)) { + y9Var.a.g().g.a("Cache still valid but referrer not found"); + } else { + long a2 = ((y9Var.a.o().C.a() / 3600000) - 1) * 3600000; + Uri parse = Uri.parse(a); + Bundle bundle2 = new Bundle(); + Pair pair = new Pair(parse.getPath(), bundle2); + for (String str : parse.getQueryParameterNames()) { + bundle2.putString(str, parse.getQueryParameter(str)); + } + ((Bundle) pair.second).putLong("_cc", a2); + y9Var.a.s().H((String) pair.first, "_cmp", (Bundle) pair.second); + } + y9Var.a.o().B.b(null); + } + y9Var.a.o().C.b(0); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/f7.java b/app/src/main/java/b/i/a/f/i/b/f7.java new file mode 100644 index 0000000000..3267f3d41a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f7.java @@ -0,0 +1,95 @@ +package b.i.a.f.i.b; + +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +import java.io.IOException; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.List; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +@WorkerThread +public final class f7 implements Runnable { + public final URL j; + public final x4 k; + public final String l; + public final /* synthetic */ d7 m; + + /* JADX WARN: Incorrect args count in method signature: (Ljava/lang/String;Ljava/net/URL;[BLjava/util/Map;Lb/i/a/f/i/b/x4;)V */ + public f7(d7 d7Var, String str, URL url, x4 x4Var) { + this.m = d7Var; + d.w(str); + this.j = url; + this.k = x4Var; + this.l = str; + } + + public final void a(int i, Exception exc, byte[] bArr, Map> map) { + this.m.f().v(new e7(this, i, exc, bArr, map)); + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x0031 */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x003d */ + @Override // java.lang.Runnable + public final void run() { + IOException e; + Map> map; + HttpURLConnection httpURLConnection; + Throwable th; + this.m.a(); + int i = 0; + try { + httpURLConnection = this.m.s(this.j); + try { + i = httpURLConnection.getResponseCode(); + map = httpURLConnection.getHeaderFields(); + } catch (IOException e2) { + e = e2; + map = null; + if (httpURLConnection != null) { + } + a(i, e, null, map); + } catch (Throwable th2) { + th = th2; + map = null; + if (httpURLConnection != null) { + } + a(i, null, null, map); + throw th; + } + try { + byte[] t = d7.t(httpURLConnection); + httpURLConnection.disconnect(); + a(i, null, t, map); + } catch (IOException e3) { + e = e3; + if (httpURLConnection != null) { + } + a(i, e, null, map); + } catch (Throwable th3) { + th = th3; + if (httpURLConnection != null) { + } + a(i, null, null, map); + throw th; + } + } catch (IOException e4) { + e = e4; + httpURLConnection = null; + map = null; + if (httpURLConnection != null) { + httpURLConnection.disconnect(); + } + a(i, e, null, map); + } catch (Throwable th4) { + th = th4; + httpURLConnection = null; + map = null; + if (httpURLConnection != null) { + httpURLConnection.disconnect(); + } + a(i, null, null, map); + throw th; + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/f8.java b/app/src/main/java/b/i/a/f/i/b/f8.java new file mode 100644 index 0000000000..1073b1a820 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f8.java @@ -0,0 +1,52 @@ +package b.i.a.f.i.b; + +import android.os.RemoteException; +import android.text.TextUtils; +import com.google.android.gms.measurement.internal.zzn; +import java.util.Collections; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class f8 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ String m; + public final /* synthetic */ zzn n; + public final /* synthetic */ q7 o; + + public f8(q7 q7Var, AtomicReference atomicReference, String str, String str2, String str3, zzn zzn) { + this.o = q7Var; + this.j = atomicReference; + this.k = str; + this.l = str2; + this.m = str3; + this.n = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j) { + try { + q7 q7Var = this.o; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.d("(legacy) Failed to get conditional properties; not connected to service", q3.s(this.k), this.l, this.m); + this.j.set(Collections.emptyList()); + return; + } + if (TextUtils.isEmpty(this.k)) { + this.j.set(i3Var.K(this.l, this.m, this.n)); + } else { + this.j.set(i3Var.J(this.k, this.l, this.m)); + } + this.o.F(); + this.j.notify(); + } catch (RemoteException e) { + this.o.g().f.d("(legacy) Failed to get conditional properties; remote exception", q3.s(this.k), this.l, e); + this.j.set(Collections.emptyList()); + } finally { + this.j.notify(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/f9.java b/app/src/main/java/b/i/a/f/i/b/f9.java new file mode 100644 index 0000000000..c0bea75c35 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/f9.java @@ -0,0 +1,75 @@ +package b.i.a.f.i.b; + +import android.app.ActivityManager; +import android.os.Bundle; +import android.os.SystemClock; +import android.text.TextUtils; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.c; +import b.i.a.f.h.l.a9; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class f9 { + public final /* synthetic */ w8 a; + + public f9(w8 w8Var) { + this.a = w8Var; + } + + @WorkerThread + public final void a() { + this.a.b(); + d4 l = this.a.l(); + Objects.requireNonNull((c) this.a.a.o); + if (l.u(System.currentTimeMillis())) { + this.a.l().f1509s.a(true); + ActivityManager.RunningAppProcessInfo runningAppProcessInfo = new ActivityManager.RunningAppProcessInfo(); + ActivityManager.getMyMemoryState(runningAppProcessInfo); + if (runningAppProcessInfo.importance == 100) { + this.a.g().n.a("Detected application was in foreground"); + Objects.requireNonNull((c) this.a.a.o); + c(System.currentTimeMillis(), false); + } + } + } + + @WorkerThread + public final void b(long j, boolean z2) { + this.a.b(); + this.a.x(); + if (this.a.l().u(j)) { + this.a.l().f1509s.a(true); + } + this.a.l().v.b(j); + if (this.a.l().f1509s.b()) { + c(j, z2); + } + } + + @WorkerThread + public final void c(long j, boolean z2) { + this.a.b(); + if (this.a.a.d()) { + this.a.l().v.b(j); + Objects.requireNonNull((c) this.a.a.o); + this.a.g().n.b("Session started, time", Long.valueOf(SystemClock.elapsedRealtime())); + Long valueOf = Long.valueOf(j / 1000); + this.a.n().K("auto", "_sid", valueOf, j); + this.a.l().f1509s.a(false); + Bundle bundle = new Bundle(); + bundle.putLong("_sid", valueOf.longValue()); + if (this.a.a.h.o(p.k0) && z2) { + bundle.putLong("_aib", 1); + } + this.a.n().E("auto", "_s", j, bundle); + if (a9.b() && this.a.a.h.o(p.p0)) { + String a = this.a.l().A.a(); + if (!TextUtils.isEmpty(a)) { + Bundle bundle2 = new Bundle(); + bundle2.putString("_ffr", a); + this.a.n().E("auto", "_ssr", j, bundle2); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/fa.java b/app/src/main/java/b/i/a/f/i/b/fa.java new file mode 100644 index 0000000000..79557dac77 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/fa.java @@ -0,0 +1,290 @@ +package b.i.a.f.i.b; + +import androidx.collection.ArrayMap; +import b.d.b.a.a; +import b.i.a.f.h.l.a1; +import b.i.a.f.h.l.c1; +import b.i.a.f.h.l.f9; +import b.i.a.f.h.l.l0; +import b.i.a.f.h.l.m0; +import java.math.BigDecimal; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class fa extends ea { + public l0 g; + public final /* synthetic */ ba h; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public fa(ba baVar, String str, int i, l0 l0Var) { + super(str, i); + this.h = baVar; + this.g = l0Var; + } + + @Override // b.i.a.f.i.b.ea + public final int a() { + return this.g.y(); + } + + @Override // b.i.a.f.i.b.ea + public final boolean g() { + return false; + } + + @Override // b.i.a.f.i.b.ea + public final boolean h() { + return this.g.C(); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:192:0x041f */ + /* JADX DEBUG: Multi-variable search result rejected for r9v3, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v4, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v5, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v6, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v8, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v9, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v10, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v13, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v14, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v15, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v16, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v17, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v18, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v19, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v20, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v21, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v22, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v23, resolved type: java.lang.Boolean */ + /* JADX DEBUG: Multi-variable search result rejected for r9v24, resolved type: java.lang.Boolean */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:148:0x042a */ + /* JADX WARNING: Removed duplicated region for block: B:151:0x0432 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:152:0x0433 */ + public final boolean i(Long l, Long l2, a1 a1Var, long j, l lVar, boolean z2) { + Boolean bool; + Boolean bool2; + String str; + boolean z3 = f9.b() && this.h.a.h.u(this.a, p.f1539c0); + long j2 = this.g.H() ? lVar.e : j; + String str2 = "null"; + Integer num = null; + Integer num2 = null; + r9 = 0; + r9 = 0; + r9 = 0; + r9 = 0; + r9 = 0; + r9 = 0; + r9 = 0; + r9 = 0; + r9 = 0; + r9 = 0; + r9 = 0; + Boolean bool3 = 0; + if (this.h.g().x(2)) { + this.h.g().n.d("Evaluating filter. audience, filter, event", Integer.valueOf(this.f1516b), this.g.x() ? Integer.valueOf(this.g.y()) : null, this.h.d().u(this.g.z())); + s3 s3Var = this.h.g().n; + q9 m = this.h.m(); + l0 l0Var = this.g; + Objects.requireNonNull(m); + if (l0Var == null) { + str = str2; + } else { + StringBuilder R = a.R("\nevent_filter {\n"); + if (l0Var.x()) { + q9.L(R, 0, "filter_id", Integer.valueOf(l0Var.y())); + } + q9.L(R, 0, "event_name", m.d().u(l0Var.z())); + String A = q9.A(l0Var.E(), l0Var.F(), l0Var.H()); + if (!A.isEmpty()) { + q9.L(R, 0, "filter_type", A); + } + if (l0Var.C()) { + q9.J(R, 1, "event_count_filter", l0Var.D()); + } + if (l0Var.B() > 0) { + R.append(" filters {\n"); + for (m0 m0Var : l0Var.A()) { + m.I(R, 2, m0Var); + } + } + q9.H(R, 1); + R.append("}\n}\n"); + str = R.toString(); + } + s3Var.b("Filter definition", str); + } + if (!this.g.x() || this.g.y() > 256) { + s3 s3Var2 = this.h.g().i; + Object s2 = q3.s(this.a); + if (this.g.x()) { + num = Integer.valueOf(this.g.y()); + } + s3Var2.c("Invalid event filter ID. appId, id", s2, String.valueOf(num)); + return false; + } + boolean z4 = this.g.E() || this.g.F() || this.g.H(); + if (!z2 || z4) { + l0 l0Var2 = this.g; + String F = a1Var.F(); + if (l0Var2.C()) { + Boolean b2 = ea.b(j2, l0Var2.D()); + if (b2 != null) { + if (!b2.booleanValue()) { + bool3 = Boolean.FALSE; + } + } + s3 s3Var3 = this.h.g().n; + if (bool3 != 0) { + str2 = bool3; + } + s3Var3.b("Event filter result", str2); + if (bool3 != 0) { + return false; + } + Boolean bool4 = Boolean.TRUE; + this.c = bool4; + if (!bool3.booleanValue()) { + return true; + } + this.d = bool4; + if (z4 && a1Var.G()) { + Long valueOf = Long.valueOf(a1Var.H()); + if (this.g.F()) { + if (z3 && this.g.C()) { + valueOf = l; + } + this.f = valueOf; + } else { + if (z3 && this.g.C()) { + valueOf = l2; + } + this.e = valueOf; + } + } + return true; + } + HashSet hashSet = new HashSet(); + Iterator it = l0Var2.A().iterator(); + while (true) { + if (!it.hasNext()) { + ArrayMap arrayMap = new ArrayMap(); + Iterator it2 = a1Var.v().iterator(); + while (true) { + if (!it2.hasNext()) { + Iterator it3 = l0Var2.A().iterator(); + while (true) { + if (!it3.hasNext()) { + bool3 = Boolean.TRUE; + break; + } + m0 next = it3.next(); + boolean z5 = next.z() && next.A(); + String C = next.C(); + if (C.isEmpty()) { + this.h.g().i.b("Event has empty param name. event", this.h.d().u(F)); + break; + } + Object obj = arrayMap.get(C); + if (obj instanceof Long) { + if (!next.x()) { + this.h.g().i.c("No number filter for long param. event, param", this.h.d().u(F), this.h.d().x(C)); + break; + } + Boolean b3 = ea.b(((Long) obj).longValue(), next.y()); + if (b3 == null) { + break; + } else if (b3.booleanValue() == z5) { + bool3 = Boolean.FALSE; + break; + } + } else if (obj instanceof Double) { + if (!next.x()) { + this.h.g().i.c("No number filter for double param. event, param", this.h.d().u(F), this.h.d().x(C)); + break; + } + double doubleValue = ((Double) obj).doubleValue(); + try { + bool = ea.f(new BigDecimal(doubleValue), next.y(), Math.ulp(doubleValue)); + } catch (NumberFormatException unused) { + bool = null; + } + if (bool == null) { + break; + } else if (bool.booleanValue() == z5) { + bool3 = Boolean.FALSE; + break; + } + } else if (obj instanceof String) { + if (!next.v()) { + if (!next.x()) { + this.h.g().i.c("No filter for String param. event, param", this.h.d().u(F), this.h.d().x(C)); + break; + } + String str3 = (String) obj; + if (!q9.P(str3)) { + this.h.g().i.c("Invalid param value for number filter. event, param", this.h.d().u(F), this.h.d().x(C)); + break; + } + bool2 = ea.d(str3, next.y()); + } else { + bool2 = ea.e((String) obj, next.w(), this.h.g()); + } + if (bool2 == null) { + break; + } else if (bool2.booleanValue() == z5) { + bool3 = Boolean.FALSE; + break; + } + } else if (obj == null) { + this.h.g().n.c("Missing param for filter. event, param", this.h.d().u(F), this.h.d().x(C)); + bool3 = Boolean.FALSE; + } else { + this.h.g().i.c("Unknown param type. event, param", this.h.d().u(F), this.h.d().x(C)); + } + } + } else { + c1 next2 = it2.next(); + if (hashSet.contains(next2.B())) { + if (next2.I()) { + arrayMap.put(next2.B(), next2.I() ? Long.valueOf(next2.J()) : null); + } else if (!next2.M()) { + if (!next2.F()) { + this.h.g().i.c("Unknown value for param. event, param", this.h.d().u(F), this.h.d().x(next2.B())); + break; + } + arrayMap.put(next2.B(), next2.G()); + } else { + arrayMap.put(next2.B(), next2.M() ? Double.valueOf(next2.N()) : null); + } + } + } + } + } else { + m0 next3 = it.next(); + if (next3.C().isEmpty()) { + this.h.g().i.b("null or empty param name in filter. event", this.h.d().u(F)); + break; + } + hashSet.add(next3.C()); + } + } + s3 s3Var3 = this.h.g().n; + if (bool3 != 0) { + } + s3Var3.b("Event filter result", str2); + if (bool3 != 0) { + } + } else { + s3 s3Var4 = this.h.g().n; + Integer valueOf2 = Integer.valueOf(this.f1516b); + if (this.g.x()) { + num2 = Integer.valueOf(this.g.y()); + } + s3Var4.c("Event filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", valueOf2, num2); + return true; + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g.java b/app/src/main/java/b/i/a/f/i/b/g.java new file mode 100644 index 0000000000..b0f2796c84 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g.java @@ -0,0 +1,1842 @@ +package b.i.a.f.i.b; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.os.Bundle; +import android.os.Parcelable; +import android.os.SystemClock; +import android.text.TextUtils; +import android.util.Pair; +import androidx.annotation.WorkerThread; +import androidx.collection.ArrayMap; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.f.e.o.c; +import b.i.a.f.h.l.a1; +import b.i.a.f.h.l.c1; +import b.i.a.f.h.l.da; +import b.i.a.f.h.l.e1; +import b.i.a.f.h.l.l0; +import b.i.a.f.h.l.l9; +import b.i.a.f.h.l.o0; +import b.i.a.f.h.l.o8; +import b.i.a.f.h.l.u4; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzz; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class g extends i9 { + public static final String[] d = {"last_bundled_timestamp", "ALTER TABLE events ADD COLUMN last_bundled_timestamp INTEGER;", "last_bundled_day", "ALTER TABLE events ADD COLUMN last_bundled_day INTEGER;", "last_sampled_complex_event_id", "ALTER TABLE events ADD COLUMN last_sampled_complex_event_id INTEGER;", "last_sampling_rate", "ALTER TABLE events ADD COLUMN last_sampling_rate INTEGER;", "last_exempt_from_sampling", "ALTER TABLE events ADD COLUMN last_exempt_from_sampling INTEGER;", "current_session_count", "ALTER TABLE events ADD COLUMN current_session_count INTEGER;"}; + public static final String[] e = {"origin", "ALTER TABLE user_attributes ADD COLUMN origin TEXT;"}; + public static final String[] f = {"app_version", "ALTER TABLE apps ADD COLUMN app_version TEXT;", "app_store", "ALTER TABLE apps ADD COLUMN app_store TEXT;", "gmp_version", "ALTER TABLE apps ADD COLUMN gmp_version INTEGER;", "dev_cert_hash", "ALTER TABLE apps ADD COLUMN dev_cert_hash INTEGER;", "measurement_enabled", "ALTER TABLE apps ADD COLUMN measurement_enabled INTEGER;", "last_bundle_start_timestamp", "ALTER TABLE apps ADD COLUMN last_bundle_start_timestamp INTEGER;", "day", "ALTER TABLE apps ADD COLUMN day INTEGER;", "daily_public_events_count", "ALTER TABLE apps ADD COLUMN daily_public_events_count INTEGER;", "daily_events_count", "ALTER TABLE apps ADD COLUMN daily_events_count INTEGER;", "daily_conversions_count", "ALTER TABLE apps ADD COLUMN daily_conversions_count INTEGER;", "remote_config", "ALTER TABLE apps ADD COLUMN remote_config BLOB;", "config_fetched_time", "ALTER TABLE apps ADD COLUMN config_fetched_time INTEGER;", "failed_config_fetch_time", "ALTER TABLE apps ADD COLUMN failed_config_fetch_time INTEGER;", "app_version_int", "ALTER TABLE apps ADD COLUMN app_version_int INTEGER;", "firebase_instance_id", "ALTER TABLE apps ADD COLUMN firebase_instance_id TEXT;", "daily_error_events_count", "ALTER TABLE apps ADD COLUMN daily_error_events_count INTEGER;", "daily_realtime_events_count", "ALTER TABLE apps ADD COLUMN daily_realtime_events_count INTEGER;", "health_monitor_sample", "ALTER TABLE apps ADD COLUMN health_monitor_sample TEXT;", "android_id", "ALTER TABLE apps ADD COLUMN android_id INTEGER;", "adid_reporting_enabled", "ALTER TABLE apps ADD COLUMN adid_reporting_enabled INTEGER;", "ssaid_reporting_enabled", "ALTER TABLE apps ADD COLUMN ssaid_reporting_enabled INTEGER;", "admob_app_id", "ALTER TABLE apps ADD COLUMN admob_app_id TEXT;", "linked_admob_app_id", "ALTER TABLE apps ADD COLUMN linked_admob_app_id TEXT;", "dynamite_version", "ALTER TABLE apps ADD COLUMN dynamite_version INTEGER;", "safelisted_events", "ALTER TABLE apps ADD COLUMN safelisted_events TEXT;", "ga_app_id", "ALTER TABLE apps ADD COLUMN ga_app_id TEXT;"}; + public static final String[] g = {"realtime", "ALTER TABLE raw_events ADD COLUMN realtime INTEGER;"}; + public static final String[] h = {"has_realtime", "ALTER TABLE queue ADD COLUMN has_realtime INTEGER;", "retry_count", "ALTER TABLE queue ADD COLUMN retry_count INTEGER;"}; + public static final String[] i = {"session_scoped", "ALTER TABLE event_filters ADD COLUMN session_scoped BOOLEAN;"}; + public static final String[] j = {"session_scoped", "ALTER TABLE property_filters ADD COLUMN session_scoped BOOLEAN;"}; + public static final String[] k = {"previous_install_count", "ALTER TABLE app2 ADD COLUMN previous_install_count INTEGER;"}; + public final h l = new h(this, this.a.f1555b, "google_app_measurement.db"); + public final e9 m = new e9(this.a.o); + + public g(k9 k9Var) { + super(k9Var); + } + + @WorkerThread + public static void G(ContentValues contentValues, String str, Object obj) { + d.w(str); + Objects.requireNonNull(obj, "null reference"); + if (obj instanceof String) { + contentValues.put(str, (String) obj); + } else if (obj instanceof Long) { + contentValues.put(str, (Long) obj); + } else if (obj instanceof Double) { + contentValues.put(str, (Double) obj); + } else { + throw new IllegalArgumentException("Invalid value type"); + } + } + + @WorkerThread + public final Object A(Cursor cursor, int i2) { + int type = cursor.getType(i2); + if (type == 0) { + g().f.a("Loaded invalid null value from database"); + return null; + } else if (type == 1) { + return Long.valueOf(cursor.getLong(i2)); + } else { + if (type == 2) { + return Double.valueOf(cursor.getDouble(i2)); + } + if (type == 3) { + return cursor.getString(i2); + } + if (type != 4) { + g().f.b("Loaded invalid unknown value type, ignoring it", Integer.valueOf(type)); + return null; + } + g().f.a("Loaded invalid blob type value, ignoring it"); + return null; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x004b */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x0053 */ + public final String B(long j2) { + Throwable th; + SQLiteException e2; + Cursor cursor; + b(); + n(); + Cursor cursor2 = null; + try { + cursor = t().rawQuery("select app_id from apps where app_id in (select distinct app_id from raw_events) and config_fetched_time < ? order by failed_config_fetch_time limit 1;", new String[]{String.valueOf(j2)}); + try { + if (!cursor.moveToFirst()) { + g().n.a("No expired configs for apps with pending events"); + cursor.close(); + return null; + } + String string = cursor.getString(0); + cursor.close(); + return string; + } catch (SQLiteException e3) { + e2 = e3; + try { + g().f.b("Error selecting expired configs", e2); + if (cursor != null) { + } + return null; + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } + } catch (SQLiteException e4) { + e2 = e4; + cursor = null; + g().f.b("Error selecting expired configs", e2); + if (cursor != null) { + cursor.close(); + } + return null; + } catch (Throwable th3) { + th = th3; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:33:0x00ad */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x00b5 */ + @WorkerThread + public final List C(String str) { + Throwable th; + Cursor cursor; + SQLiteException e2; + d.w(str); + b(); + n(); + ArrayList arrayList = new ArrayList(); + Cursor cursor2 = null; + try { + cursor = t().query("user_attributes", new String[]{ModelAuditLogEntry.CHANGE_KEY_NAME, "origin", "set_timestamp", "value"}, "app_id=?", new String[]{str}, null, null, "rowid", "1000"); + try { + if (!cursor.moveToFirst()) { + cursor.close(); + return arrayList; + } + do { + String string = cursor.getString(0); + String string2 = cursor.getString(1); + if (string2 == null) { + string2 = ""; + } + long j2 = cursor.getLong(2); + Object A = A(cursor, 3); + if (A == null) { + g().f.b("Read invalid user property value, ignoring it. appId", q3.s(str)); + } else { + arrayList.add(new u9(str, string2, string, j2, A)); + } + } while (cursor.moveToNext()); + cursor.close(); + return arrayList; + } catch (SQLiteException e3) { + e2 = e3; + try { + g().f.c("Error querying user properties. appId", q3.s(str), e2); + if (l9.b() || !this.a.h.u(str, p.F0)) { + if (cursor != null) { + cursor.close(); + } + return null; + } + List emptyList = Collections.emptyList(); + if (cursor != null) { + cursor.close(); + } + return emptyList; + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } + } catch (SQLiteException e4) { + e2 = e4; + cursor = null; + g().f.c("Error querying user properties. appId", q3.s(str), e2); + if (l9.b()) { + } + if (cursor != null) { + } + return null; + } catch (Throwable th3) { + th = th3; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + + @WorkerThread + public final List> D(String str, int i2, int i3) { + b(); + n(); + d.l(i2 > 0); + d.l(i3 > 0); + d.w(str); + Cursor cursor = null; + try { + Cursor query = t().query("queue", new String[]{"rowid", "data", "retry_count"}, "app_id=?", new String[]{str}, null, null, "rowid", String.valueOf(i2)); + if (!query.moveToFirst()) { + List> emptyList = Collections.emptyList(); + query.close(); + return emptyList; + } + ArrayList arrayList = new ArrayList(); + int i4 = 0; + do { + long j2 = query.getLong(0); + try { + byte[] S = m().S(query.getBlob(1)); + if (!arrayList.isEmpty() && S.length + i4 > i3) { + break; + } + try { + e1.a aVar = (e1.a) q9.x(e1.u0(), S); + if (!query.isNull(2)) { + int i5 = query.getInt(2); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + e1.V0((e1) aVar.k, i5); + } + i4 += S.length; + arrayList.add(Pair.create((e1) ((u4) aVar.p()), Long.valueOf(j2))); + } catch (IOException e2) { + g().f.c("Failed to merge queued bundle. appId", q3.s(str), e2); + } + if (!query.moveToNext()) { + break; + } + } catch (IOException e3) { + g().f.c("Failed to unzip queued bundle. appId", q3.s(str), e3); + } + } while (i4 <= i3); + query.close(); + return arrayList; + } catch (SQLiteException e4) { + g().f.c("Error querying bundles. appId", q3.s(str), e4); + List> emptyList2 = Collections.emptyList(); + if (0 != 0) { + cursor.close(); + } + return emptyList2; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:34:0x00e8, code lost: + r0 = th; + */ + /* JADX WARNING: Code restructure failed: missing block: B:35:0x00ea, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:36:0x00eb, code lost: + r4 = r23; + */ + /* JADX WARNING: Code restructure failed: missing block: B:43:0x010f, code lost: + r0 = java.util.Collections.emptyList(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:44:0x0113, code lost: + if (r12 != null) goto L_0x0115; + */ + /* JADX WARNING: Code restructure failed: missing block: B:45:0x0115, code lost: + r12.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:46:0x0118, code lost: + return r0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:48:0x011b, code lost: + r12.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:53:0x0123, code lost: + r10.close(); + */ + /* JADX WARNING: Failed to process nested try/catch */ + /* JADX WARNING: Removed duplicated region for block: B:34:0x00e8 A[ExcHandler: all (th java.lang.Throwable), Splitter:B:1:0x0013] */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x0103 A[Catch:{ all -> 0x011f }] */ + /* JADX WARNING: Removed duplicated region for block: B:48:0x011b */ + /* JADX WARNING: Removed duplicated region for block: B:53:0x0123 */ + @WorkerThread + public final List E(String str, String str2, String str3) { + Cursor cursor; + String str4; + SQLiteException e2; + d.w(str); + b(); + n(); + ArrayList arrayList = new ArrayList(); + Cursor cursor2 = null; + try { + ArrayList arrayList2 = new ArrayList(3); + arrayList2.add(str); + StringBuilder sb = new StringBuilder("app_id=?"); + if (!TextUtils.isEmpty(str2)) { + str4 = str2; + arrayList2.add(str4); + sb.append(" and origin=?"); + } else { + str4 = str2; + } + if (!TextUtils.isEmpty(str3)) { + arrayList2.add(String.valueOf(str3).concat("*")); + sb.append(" and name glob ?"); + } + cursor = t().query("user_attributes", new String[]{ModelAuditLogEntry.CHANGE_KEY_NAME, "set_timestamp", "value", "origin"}, sb.toString(), (String[]) arrayList2.toArray(new String[arrayList2.size()]), null, null, "rowid", "1001"); + try { + if (!cursor.moveToFirst()) { + cursor.close(); + return arrayList; + } + while (true) { + if (arrayList.size() >= 1000) { + g().f.b("Read more than the max allowed user properties, ignoring excess", 1000); + break; + } + String string = cursor.getString(0); + long j2 = cursor.getLong(1); + Object A = A(cursor, 2); + String string2 = cursor.getString(3); + if (A == null) { + try { + g().f.d("(2)Read invalid user property value, ignoring it", q3.s(str), string2, str3); + } catch (SQLiteException e3) { + e2 = e3; + str4 = string2; + try { + g().f.d("(2)Error querying user properties", q3.s(str), str4, e2); + if (l9.b()) { + } + if (cursor != null) { + } + return null; + } catch (Throwable th) { + Throwable th2 = th; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th2; + } + } + } else { + arrayList.add(new u9(str, string2, string, j2, A)); + } + if (!cursor.moveToNext()) { + break; + } + } + cursor.close(); + return arrayList; + } catch (SQLiteException e4) { + e2 = e4; + g().f.d("(2)Error querying user properties", q3.s(str), str4, e2); + if (l9.b()) { + } + if (cursor != null) { + } + return null; + } + } catch (SQLiteException e5) { + e2 = e5; + cursor = null; + g().f.d("(2)Error querying user properties", q3.s(str), str4, e2); + if (l9.b()) { + } + if (cursor != null) { + } + return null; + } catch (Throwable th3) { + } + } + + public final List F(String str, String[] strArr) { + b(); + n(); + ArrayList arrayList = new ArrayList(); + Cursor cursor = null; + try { + cursor = t().query("conditional_properties", new String[]{"app_id", "origin", ModelAuditLogEntry.CHANGE_KEY_NAME, "value", "active", "trigger_event_name", "trigger_timeout", "timed_out_event", "creation_timestamp", "triggered_event", "triggered_timestamp", "time_to_live", "expired_event"}, str, strArr, null, null, "rowid", "1001"); + if (!cursor.moveToFirst()) { + cursor.close(); + return arrayList; + } + while (true) { + if (arrayList.size() < 1000) { + boolean z2 = false; + String string = cursor.getString(0); + String string2 = cursor.getString(1); + String string3 = cursor.getString(2); + Object A = A(cursor, 3); + if (cursor.getInt(4) != 0) { + z2 = true; + } + String string4 = cursor.getString(5); + long j2 = cursor.getLong(6); + q9 m = m(); + byte[] blob = cursor.getBlob(7); + Parcelable.Creator creator = zzaq.CREATOR; + long j3 = cursor.getLong(8); + arrayList.add(new zzz(string, string2, new zzku(string3, cursor.getLong(10), A, string2), j3, z2, string4, (zzaq) m.u(blob, creator), j2, (zzaq) m().u(cursor.getBlob(9), creator), cursor.getLong(11), (zzaq) m().u(cursor.getBlob(12), creator))); + if (!cursor.moveToNext()) { + break; + } + } else { + g().f.b("Read more than the max allowed conditional properties, ignoring extra", 1000); + break; + } + } + cursor.close(); + return arrayList; + } catch (SQLiteException e2) { + g().f.b("Error querying conditional user property value", e2); + List emptyList = Collections.emptyList(); + if (cursor != null) { + cursor.close(); + } + return emptyList; + } catch (Throwable th) { + if (cursor != null) { + cursor.close(); + } + throw th; + } + } + + @WorkerThread + public final void H(l lVar) { + Objects.requireNonNull(lVar, "null reference"); + b(); + n(); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", lVar.a); + contentValues.put(ModelAuditLogEntry.CHANGE_KEY_NAME, lVar.f1533b); + contentValues.put("lifetime_count", Long.valueOf(lVar.c)); + contentValues.put("current_bundle_count", Long.valueOf(lVar.d)); + contentValues.put("last_fire_timestamp", Long.valueOf(lVar.f)); + contentValues.put("last_bundled_timestamp", Long.valueOf(lVar.g)); + contentValues.put("last_bundled_day", lVar.h); + contentValues.put("last_sampled_complex_event_id", lVar.i); + contentValues.put("last_sampling_rate", lVar.j); + contentValues.put("current_session_count", Long.valueOf(lVar.e)); + Boolean bool = lVar.k; + contentValues.put("last_exempt_from_sampling", (bool == null || !bool.booleanValue()) ? null : 1L); + try { + if (t().insertWithOnConflict("events", null, contentValues, 5) == -1) { + g().f.b("Failed to insert/update event aggregates (got -1). appId", q3.s(lVar.a)); + } + } catch (SQLiteException e2) { + g().f.c("Error storing event aggregates. appId", q3.s(lVar.a), e2); + } + } + + @WorkerThread + public final void I(a4 a4Var) { + b(); + n(); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", a4Var.o()); + contentValues.put("app_instance_id", a4Var.s()); + contentValues.put("gmp_app_id", a4Var.v()); + contentValues.put("resettable_device_id_hash", a4Var.E()); + contentValues.put("last_bundle_index", Long.valueOf(a4Var.U())); + contentValues.put("last_bundle_start_timestamp", Long.valueOf(a4Var.K())); + contentValues.put("last_bundle_end_timestamp", Long.valueOf(a4Var.L())); + contentValues.put("app_version", a4Var.M()); + contentValues.put("app_store", a4Var.O()); + contentValues.put("gmp_version", Long.valueOf(a4Var.P())); + contentValues.put("dev_cert_hash", Long.valueOf(a4Var.Q())); + contentValues.put("measurement_enabled", Boolean.valueOf(a4Var.T())); + a4Var.a.f().b(); + contentValues.put("day", Long.valueOf(a4Var.f1500x)); + a4Var.a.f().b(); + contentValues.put("daily_public_events_count", Long.valueOf(a4Var.f1501y)); + a4Var.a.f().b(); + contentValues.put("daily_events_count", Long.valueOf(a4Var.f1502z)); + a4Var.a.f().b(); + contentValues.put("daily_conversions_count", Long.valueOf(a4Var.A)); + a4Var.a.f().b(); + contentValues.put("config_fetched_time", Long.valueOf(a4Var.F)); + a4Var.a.f().b(); + contentValues.put("failed_config_fetch_time", Long.valueOf(a4Var.G)); + contentValues.put("app_version_int", Long.valueOf(a4Var.N())); + contentValues.put("firebase_instance_id", a4Var.H()); + a4Var.a.f().b(); + contentValues.put("daily_error_events_count", Long.valueOf(a4Var.B)); + a4Var.a.f().b(); + contentValues.put("daily_realtime_events_count", Long.valueOf(a4Var.C)); + a4Var.a.f().b(); + contentValues.put("health_monitor_sample", a4Var.D); + contentValues.put("android_id", Long.valueOf(a4Var.g())); + contentValues.put("adid_reporting_enabled", Boolean.valueOf(a4Var.h())); + contentValues.put("ssaid_reporting_enabled", Boolean.valueOf(a4Var.i())); + contentValues.put("admob_app_id", a4Var.y()); + contentValues.put("dynamite_version", Long.valueOf(a4Var.S())); + if (a4Var.k() != null) { + if (a4Var.k().size() == 0) { + g().i.b("Safelisted events should not be an empty list. appId", a4Var.o()); + } else { + contentValues.put("safelisted_events", TextUtils.join(",", a4Var.k())); + } + } + if (da.b() && this.a.h.u(a4Var.o(), p.f1546j0)) { + contentValues.put("ga_app_id", a4Var.B()); + } + try { + SQLiteDatabase t = t(); + if (((long) t.update("apps", contentValues, "app_id = ?", new String[]{a4Var.o()})) == 0 && t.insertWithOnConflict("apps", null, contentValues, 5) == -1) { + g().f.b("Failed to insert/update app (got -1). appId", q3.s(a4Var.o())); + } + } catch (SQLiteException e2) { + g().f.c("Error storing app. appId", q3.s(a4Var.o()), e2); + } + } + + @WorkerThread + public final void J(List list) { + b(); + n(); + Objects.requireNonNull(list, "null reference"); + if (list.size() == 0) { + throw new IllegalArgumentException("Given Integer is zero"); + } else if (R()) { + String join = TextUtils.join(",", list); + String j2 = a.j(a.b(join, 2), "(", join, ")"); + if (S(a.j(a.b(j2, 80), "SELECT COUNT(1) FROM queue WHERE rowid IN ", j2, " AND retry_count = 2147483647 LIMIT 1"), null) > 0) { + g().i.a("The number of upload retries exceeds the limit. Will remain unchanged."); + } + try { + SQLiteDatabase t = t(); + StringBuilder sb = new StringBuilder(String.valueOf(j2).length() + 127); + sb.append("UPDATE queue SET retry_count = IFNULL(retry_count, 0) + 1 WHERE rowid IN "); + sb.append(j2); + sb.append(" AND (retry_count IS NULL OR retry_count < 2147483647)"); + t.execSQL(sb.toString()); + } catch (SQLiteException e2) { + g().f.b("Error incrementing retry count. error", e2); + } + } + } + + @WorkerThread + public final boolean K(e1 e1Var, boolean z2) { + b(); + n(); + d.w(e1Var.G1()); + d.F(e1Var.n1()); + i0(); + Objects.requireNonNull((c) this.a.o); + long currentTimeMillis = System.currentTimeMillis(); + if (e1Var.o1() < currentTimeMillis - c.B() || e1Var.o1() > c.B() + currentTimeMillis) { + g().i.d("Storing bundle outside of the max uploading time span. appId, now, timestamp", q3.s(e1Var.G1()), Long.valueOf(currentTimeMillis), Long.valueOf(e1Var.o1())); + } + try { + byte[] T = m().T(e1Var.d()); + g().n.b("Saving bundle, size", Integer.valueOf(T.length)); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", e1Var.G1()); + contentValues.put("bundle_end_timestamp", Long.valueOf(e1Var.o1())); + contentValues.put("data", T); + contentValues.put("has_realtime", Integer.valueOf(z2 ? 1 : 0)); + if (e1Var.f0()) { + contentValues.put("retry_count", Integer.valueOf(e1Var.n0())); + } + try { + if (t().insert("queue", null, contentValues) != -1) { + return true; + } + g().f.b("Failed to insert bundle (got -1). appId", q3.s(e1Var.G1())); + return false; + } catch (SQLiteException e2) { + g().f.c("Error storing bundle. appId", q3.s(e1Var.G1()), e2); + return false; + } + } catch (IOException e3) { + g().f.c("Data loss. Failed to serialize bundle. appId", q3.s(e1Var.G1()), e3); + return false; + } + } + + public final boolean L(m mVar, long j2, boolean z2) { + b(); + n(); + d.w(mVar.a); + byte[] d2 = m().v(mVar).d(); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", mVar.a); + contentValues.put(ModelAuditLogEntry.CHANGE_KEY_NAME, mVar.f1534b); + contentValues.put("timestamp", Long.valueOf(mVar.d)); + contentValues.put("metadata_fingerprint", Long.valueOf(j2)); + contentValues.put("data", d2); + contentValues.put("realtime", Integer.valueOf(z2 ? 1 : 0)); + try { + if (t().insert("raw_events", null, contentValues) != -1) { + return true; + } + g().f.b("Failed to insert raw event (got -1). appId", q3.s(mVar.a)); + return false; + } catch (SQLiteException e2) { + g().f.c("Error storing raw event. appId", q3.s(mVar.a), e2); + return false; + } + } + + @WorkerThread + public final boolean M(u9 u9Var) { + b(); + n(); + if (Y(u9Var.a, u9Var.c) == null) { + if (t9.X(u9Var.c)) { + long S = S("select count(1) from user_attributes where app_id=? and name not like '!_%' escape '!'", new String[]{u9Var.a}); + c cVar = this.a.h; + String str = u9Var.a; + Objects.requireNonNull(cVar); + int i2 = 25; + if (o8.b() && cVar.u(null, p.w0)) { + i2 = Math.max(Math.min(cVar.q(str, p.G), 100), 25); + } + if (S >= ((long) i2)) { + return false; + } + } else if (!"_npa".equals(u9Var.c) && S("select count(1) from user_attributes where app_id=? and origin=? AND name like '!_%' escape '!'", new String[]{u9Var.a, u9Var.f1561b}) >= 25) { + return false; + } + } + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", u9Var.a); + contentValues.put("origin", u9Var.f1561b); + contentValues.put(ModelAuditLogEntry.CHANGE_KEY_NAME, u9Var.c); + contentValues.put("set_timestamp", Long.valueOf(u9Var.d)); + G(contentValues, "value", u9Var.e); + try { + if (t().insertWithOnConflict("user_attributes", null, contentValues, 5) == -1) { + g().f.b("Failed to insert/update user property (got -1). appId", q3.s(u9Var.a)); + } + } catch (SQLiteException e2) { + g().f.c("Error storing user property. appId", q3.s(u9Var.a), e2); + } + return true; + } + + @WorkerThread + public final boolean N(zzz zzz) { + b(); + n(); + if (Y(zzz.j, zzz.l.k) == null && S("SELECT COUNT(1) FROM conditional_properties WHERE app_id=?", new String[]{zzz.j}) >= 1000) { + return false; + } + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", zzz.j); + contentValues.put("origin", zzz.k); + contentValues.put(ModelAuditLogEntry.CHANGE_KEY_NAME, zzz.l.k); + G(contentValues, "value", zzz.l.w0()); + contentValues.put("active", Boolean.valueOf(zzz.n)); + contentValues.put("trigger_event_name", zzz.o); + contentValues.put("trigger_timeout", Long.valueOf(zzz.q)); + e(); + contentValues.put("timed_out_event", t9.g0(zzz.p)); + contentValues.put("creation_timestamp", Long.valueOf(zzz.m)); + e(); + contentValues.put("triggered_event", t9.g0(zzz.r)); + contentValues.put("triggered_timestamp", Long.valueOf(zzz.l.l)); + contentValues.put("time_to_live", Long.valueOf(zzz.f2975s)); + e(); + contentValues.put("expired_event", t9.g0(zzz.t)); + try { + if (t().insertWithOnConflict("conditional_properties", null, contentValues, 5) == -1) { + g().f.b("Failed to insert/update conditional user property (got -1)", q3.s(zzz.j)); + } + } catch (SQLiteException e2) { + g().f.c("Error storing conditional user property", q3.s(zzz.j), e2); + } + return true; + } + + @WorkerThread + public final boolean O(String str, int i2, l0 l0Var) { + n(); + b(); + d.w(str); + Objects.requireNonNull(l0Var, "null reference"); + Integer num = null; + if (TextUtils.isEmpty(l0Var.z())) { + s3 s3Var = g().i; + Object s2 = q3.s(str); + Integer valueOf = Integer.valueOf(i2); + if (l0Var.x()) { + num = Integer.valueOf(l0Var.y()); + } + s3Var.d("Event filter had no event name. Audience definition ignored. appId, audienceId, filterId", s2, valueOf, String.valueOf(num)); + return false; + } + byte[] d2 = l0Var.d(); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", str); + contentValues.put("audience_id", Integer.valueOf(i2)); + contentValues.put("filter_id", l0Var.x() ? Integer.valueOf(l0Var.y()) : null); + contentValues.put("event_name", l0Var.z()); + contentValues.put("session_scoped", l0Var.G() ? Boolean.valueOf(l0Var.H()) : null); + contentValues.put("data", d2); + try { + if (t().insertWithOnConflict("event_filters", null, contentValues, 5) != -1) { + return true; + } + g().f.b("Failed to insert event filter (got -1). appId", q3.s(str)); + return true; + } catch (SQLiteException e2) { + g().f.c("Error storing event filter. appId", q3.s(str), e2); + return false; + } + } + + @WorkerThread + public final boolean P(String str, int i2, o0 o0Var) { + n(); + b(); + d.w(str); + Objects.requireNonNull(o0Var, "null reference"); + Integer num = null; + if (TextUtils.isEmpty(o0Var.x())) { + s3 s3Var = g().i; + Object s2 = q3.s(str); + Integer valueOf = Integer.valueOf(i2); + if (o0Var.v()) { + num = Integer.valueOf(o0Var.w()); + } + s3Var.d("Property filter had no property name. Audience definition ignored. appId, audienceId, filterId", s2, valueOf, String.valueOf(num)); + return false; + } + byte[] d2 = o0Var.d(); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", str); + contentValues.put("audience_id", Integer.valueOf(i2)); + contentValues.put("filter_id", o0Var.v() ? Integer.valueOf(o0Var.w()) : null); + contentValues.put("property_name", o0Var.x()); + contentValues.put("session_scoped", o0Var.B() ? Boolean.valueOf(o0Var.C()) : null); + contentValues.put("data", d2); + try { + if (t().insertWithOnConflict("property_filters", null, contentValues, 5) != -1) { + return true; + } + g().f.b("Failed to insert property filter (got -1). appId", q3.s(str)); + return false; + } catch (SQLiteException e2) { + g().f.c("Error storing property filter. appId", q3.s(str), e2); + return false; + } + } + + public final boolean Q(String str, Long l, long j2, a1 a1Var) { + b(); + n(); + Objects.requireNonNull(a1Var, "null reference"); + d.w(str); + Objects.requireNonNull(l, "null reference"); + byte[] d2 = a1Var.d(); + g().n.c("Saving complex main event, appId, data size", d().u(str), Integer.valueOf(d2.length)); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", str); + contentValues.put("event_id", l); + contentValues.put("children_to_process", Long.valueOf(j2)); + contentValues.put("main_event", d2); + try { + if (t().insertWithOnConflict("main_event_params", null, contentValues, 5) != -1) { + return true; + } + g().f.b("Failed to insert complex main event (got -1). appId", q3.s(str)); + return false; + } catch (SQLiteException e2) { + g().f.c("Error storing complex main event. appId", q3.s(str), e2); + return false; + } + } + + public final boolean R() { + return this.a.f1555b.getDatabasePath("google_app_measurement.db").exists(); + } + + @WorkerThread + public final long S(String str, String[] strArr) { + Cursor cursor = null; + try { + Cursor rawQuery = t().rawQuery(str, strArr); + if (rawQuery.moveToFirst()) { + long j2 = rawQuery.getLong(0); + rawQuery.close(); + return j2; + } + throw new SQLiteException("Database returned empty set"); + } catch (SQLiteException e2) { + g().f.c("Database error", str, e2); + throw e2; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:83:0x029b */ + /* JADX WARNING: Removed duplicated region for block: B:88:0x02a3 */ + @WorkerThread + public final a4 T(String str) { + Throwable th; + Cursor cursor; + SQLiteException e2; + d.w(str); + b(); + n(); + Cursor cursor2 = null; + try { + boolean z2 = true; + cursor = t().query("apps", new String[]{"app_instance_id", "gmp_app_id", "resettable_device_id_hash", "last_bundle_index", "last_bundle_start_timestamp", "last_bundle_end_timestamp", "app_version", "app_store", "gmp_version", "dev_cert_hash", "measurement_enabled", "day", "daily_public_events_count", "daily_events_count", "daily_conversions_count", "config_fetched_time", "failed_config_fetch_time", "app_version_int", "firebase_instance_id", "daily_error_events_count", "daily_realtime_events_count", "health_monitor_sample", "android_id", "adid_reporting_enabled", "ssaid_reporting_enabled", "admob_app_id", "dynamite_version", "safelisted_events", "ga_app_id"}, "app_id=?", new String[]{str}, null, null, null); + try { + if (!cursor.moveToFirst()) { + cursor.close(); + return null; + } + a4 a4Var = new a4(this.f1523b.k, str); + a4Var.c(cursor.getString(0)); + a4Var.m(cursor.getString(1)); + a4Var.x(cursor.getString(2)); + a4Var.C(cursor.getLong(3)); + a4Var.a(cursor.getLong(4)); + a4Var.l(cursor.getLong(5)); + a4Var.D(cursor.getString(6)); + a4Var.G(cursor.getString(7)); + a4Var.t(cursor.getLong(8)); + a4Var.w(cursor.getLong(9)); + a4Var.e(cursor.isNull(10) || cursor.getInt(10) != 0); + long j2 = cursor.getLong(11); + a4Var.a.f().b(); + a4Var.E |= a4Var.f1500x != j2; + a4Var.f1500x = j2; + long j3 = cursor.getLong(12); + a4Var.a.f().b(); + a4Var.E |= a4Var.f1501y != j3; + a4Var.f1501y = j3; + long j4 = cursor.getLong(13); + a4Var.a.f().b(); + a4Var.E |= a4Var.f1502z != j4; + a4Var.f1502z = j4; + long j5 = cursor.getLong(14); + a4Var.a.f().b(); + a4Var.E |= a4Var.A != j5; + a4Var.A = j5; + a4Var.F(cursor.getLong(15)); + a4Var.I(cursor.getLong(16)); + a4Var.p(cursor.isNull(17) ? -2147483648L : (long) cursor.getInt(17)); + a4Var.A(cursor.getString(18)); + long j6 = cursor.getLong(19); + a4Var.a.f().b(); + a4Var.E |= a4Var.B != j6; + a4Var.B = j6; + long j7 = cursor.getLong(20); + a4Var.a.f().b(); + a4Var.E |= a4Var.C != j7; + a4Var.C = j7; + a4Var.J(cursor.getString(21)); + long j8 = 0; + if (!this.a.h.o(p.y0)) { + a4Var.R(cursor.isNull(22) ? 0 : cursor.getLong(22)); + } + a4Var.n(cursor.isNull(23) || cursor.getInt(23) != 0); + if (!cursor.isNull(24) && cursor.getInt(24) == 0) { + z2 = false; + } + a4Var.r(z2); + a4Var.q(cursor.getString(25)); + if (!cursor.isNull(26)) { + j8 = cursor.getLong(26); + } + a4Var.z(j8); + if (!cursor.isNull(27)) { + a4Var.d(Arrays.asList(cursor.getString(27).split(",", -1))); + } + if (da.b() && this.a.h.u(str, p.f1546j0)) { + a4Var.u(cursor.getString(28)); + } + a4Var.a.f().b(); + a4Var.E = false; + if (cursor.moveToNext()) { + g().f.b("Got multiple records for app, expected one. appId", q3.s(str)); + } + cursor.close(); + return a4Var; + } catch (SQLiteException e3) { + e2 = e3; + try { + g().f.c("Error querying app. appId", q3.s(str), e2); + if (cursor != null) { + } + return null; + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } + } catch (SQLiteException e4) { + e2 = e4; + cursor = null; + g().f.c("Error querying app. appId", q3.s(str), e2); + if (cursor != null) { + cursor.close(); + } + return null; + } catch (Throwable th3) { + th = th3; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + + @WorkerThread + public final List U(String str, String str2, String str3) { + d.w(str); + b(); + n(); + ArrayList arrayList = new ArrayList(3); + arrayList.add(str); + StringBuilder sb = new StringBuilder("app_id=?"); + if (!TextUtils.isEmpty(str2)) { + arrayList.add(str2); + sb.append(" and origin=?"); + } + if (!TextUtils.isEmpty(str3)) { + arrayList.add(String.valueOf(str3).concat("*")); + sb.append(" and name glob ?"); + } + return F(sb.toString(), (String[]) arrayList.toArray(new String[arrayList.size()])); + } + + @WorkerThread + public final void V(String str, String str2) { + d.w(str); + d.w(str2); + b(); + n(); + try { + t().delete("user_attributes", "app_id=? and name=?", new String[]{str, str2}); + } catch (SQLiteException e2) { + g().f.d("Error deleting user property. appId", q3.s(str), d().y(str2), e2); + } + } + + public final boolean W(String str, List list) { + d.w(str); + n(); + b(); + SQLiteDatabase t = t(); + try { + long S = S("select count(1) from audience_filter_values where app_id=?", new String[]{str}); + int max = Math.max(0, Math.min(2000, this.a.h.q(str, p.F))); + if (S <= ((long) max)) { + return false; + } + ArrayList arrayList = new ArrayList(); + for (int i2 = 0; i2 < list.size(); i2++) { + Integer num = list.get(i2); + if (num == null) { + return false; + } + arrayList.add(Integer.toString(num.intValue())); + } + String join = TextUtils.join(",", arrayList); + String j2 = a.j(a.b(join, 2), "(", join, ")"); + return t.delete("audience_filter_values", a.j(a.b(j2, 140), "audience_id in (select audience_id from audience_filter_values where app_id=? and audience_id not in ", j2, " order by rowid desc limit -1 offset ?)"), new String[]{str, Integer.toString(max)}) > 0; + } catch (SQLiteException e2) { + g().f.c("Database error querying filters. appId", q3.s(str), e2); + return false; + } + } + + public final long X(String str) { + d.w(str); + b(); + n(); + try { + return (long) t().delete("raw_events", "rowid in (select rowid from raw_events where app_id=? order by rowid desc limit -1 offset ?)", new String[]{str, String.valueOf(Math.max(0, Math.min(1000000, this.a.h.q(str, p.p))))}); + } catch (SQLiteException e2) { + g().f.c("Error deleting over the limit events. appId", q3.s(str), e2); + return 0; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:27:0x0099 */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x00a1 */ + @WorkerThread + public final u9 Y(String str, String str2) { + Throwable th; + Cursor cursor; + SQLiteException e2; + d.w(str); + d.w(str2); + b(); + n(); + Cursor cursor2 = null; + try { + cursor = t().query("user_attributes", new String[]{"set_timestamp", "value", "origin"}, "app_id=? and name=?", new String[]{str, str2}, null, null, null); + try { + if (!cursor.moveToFirst()) { + cursor.close(); + return null; + } + try { + u9 u9Var = new u9(str, cursor.getString(2), str2, cursor.getLong(0), A(cursor, 1)); + if (cursor.moveToNext()) { + g().f.b("Got multiple records for user property, expected one. appId", q3.s(str)); + } + cursor.close(); + return u9Var; + } catch (SQLiteException e3) { + e2 = e3; + try { + g().f.d("Error querying user property. appId", q3.s(str), d().y(str2), e2); + if (cursor != null) { + } + return null; + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } + } catch (SQLiteException e4) { + e2 = e4; + g().f.d("Error querying user property. appId", q3.s(str), d().y(str2), e2); + if (cursor != null) { + } + return null; + } catch (Throwable th3) { + th = th3; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } catch (SQLiteException e5) { + e2 = e5; + cursor = null; + g().f.d("Error querying user property. appId", q3.s(str), d().y(str2), e2); + if (cursor != null) { + cursor.close(); + } + return null; + } catch (Throwable th4) { + th = th4; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:31:0x0111 */ + /* JADX WARNING: Removed duplicated region for block: B:36:0x0119 */ + @WorkerThread + public final zzz Z(String str, String str2) { + Throwable th; + Cursor cursor; + SQLiteException e2; + d.w(str); + d.w(str2); + b(); + n(); + Cursor cursor2 = null; + try { + cursor = t().query("conditional_properties", new String[]{"origin", "value", "active", "trigger_event_name", "trigger_timeout", "timed_out_event", "creation_timestamp", "triggered_event", "triggered_timestamp", "time_to_live", "expired_event"}, "app_id=? and name=?", new String[]{str, str2}, null, null, null); + try { + if (!cursor.moveToFirst()) { + cursor.close(); + return null; + } + String string = cursor.getString(0); + try { + Object A = A(cursor, 1); + boolean z2 = cursor.getInt(2) != 0; + String string2 = cursor.getString(3); + long j2 = cursor.getLong(4); + q9 m = m(); + byte[] blob = cursor.getBlob(5); + Parcelable.Creator creator = zzaq.CREATOR; + zzz zzz = new zzz(str, string, new zzku(str2, cursor.getLong(8), A, string), cursor.getLong(6), z2, string2, (zzaq) m.u(blob, creator), j2, (zzaq) m().u(cursor.getBlob(7), creator), cursor.getLong(9), (zzaq) m().u(cursor.getBlob(10), creator)); + if (cursor.moveToNext()) { + g().f.c("Got multiple records for conditional property, expected one", q3.s(str), d().y(str2)); + } + cursor.close(); + return zzz; + } catch (SQLiteException e3) { + e2 = e3; + try { + g().f.d("Error querying conditional property", q3.s(str), d().y(str2), e2); + if (cursor != null) { + cursor.close(); + } + return null; + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + } catch (SQLiteException e4) { + e2 = e4; + g().f.d("Error querying conditional property", q3.s(str), d().y(str2), e2); + if (cursor != null) { + } + return null; + } catch (Throwable th3) { + th = th3; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } catch (SQLiteException e5) { + e2 = e5; + cursor = null; + g().f.d("Error querying conditional property", q3.s(str), d().y(str2), e2); + if (cursor != null) { + } + return null; + } catch (Throwable th4) { + th = th4; + if (cursor2 != null) { + } + throw th; + } + } + + @WorkerThread + public final int a0(String str, String str2) { + d.w(str); + d.w(str2); + b(); + n(); + try { + return t().delete("conditional_properties", "app_id=? and name=?", new String[]{str, str2}); + } catch (SQLiteException e2) { + g().f.d("Error deleting conditional property", q3.s(str), d().y(str2), e2); + return 0; + } + } + + @WorkerThread + public final void b0() { + n(); + t().beginTransaction(); + } + + /* JADX WARNING: Removed duplicated region for block: B:36:0x00c3 */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x00cb */ + public final Map> c0(String str, String str2) { + Throwable th; + Cursor cursor; + SQLiteException e2; + n(); + b(); + d.w(str); + d.w(str2); + ArrayMap arrayMap = new ArrayMap(); + Cursor cursor2 = null; + try { + cursor = t().query("event_filters", new String[]{"audience_id", "data"}, "app_id=? AND event_name=?", new String[]{str, str2}, null, null, null); + try { + if (!cursor.moveToFirst()) { + Map> emptyMap = Collections.emptyMap(); + cursor.close(); + return emptyMap; + } + do { + try { + l0 l0Var = (l0) ((u4) ((l0.a) q9.x(l0.I(), cursor.getBlob(1))).p()); + int i2 = cursor.getInt(0); + List list = arrayMap.get(Integer.valueOf(i2)); + if (list == null) { + list = new ArrayList(); + arrayMap.put(Integer.valueOf(i2), list); + } + list.add(l0Var); + } catch (IOException e3) { + g().f.c("Failed to merge filter. appId", q3.s(str), e3); + } + } while (cursor.moveToNext()); + cursor.close(); + return arrayMap; + } catch (SQLiteException e4) { + e2 = e4; + try { + g().f.c("Database error querying filters. appId", q3.s(str), e2); + if (l9.b()) { + } + if (cursor != null) { + } + return null; + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } + } catch (SQLiteException e5) { + e2 = e5; + cursor = null; + g().f.c("Database error querying filters. appId", q3.s(str), e2); + if (l9.b() || !this.a.h.u(str, p.F0)) { + if (cursor != null) { + cursor.close(); + } + return null; + } + Map> emptyMap2 = Collections.emptyMap(); + if (cursor != null) { + cursor.close(); + } + return emptyMap2; + } catch (Throwable th3) { + th = th3; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:36:0x00c3 */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x00cb */ + public final Map> d0(String str, String str2) { + Throwable th; + Cursor cursor; + SQLiteException e2; + n(); + b(); + d.w(str); + d.w(str2); + ArrayMap arrayMap = new ArrayMap(); + Cursor cursor2 = null; + try { + cursor = t().query("property_filters", new String[]{"audience_id", "data"}, "app_id=? AND property_name=?", new String[]{str, str2}, null, null, null); + try { + if (!cursor.moveToFirst()) { + Map> emptyMap = Collections.emptyMap(); + cursor.close(); + return emptyMap; + } + do { + try { + o0 o0Var = (o0) ((u4) ((o0.a) q9.x(o0.D(), cursor.getBlob(1))).p()); + int i2 = cursor.getInt(0); + List list = arrayMap.get(Integer.valueOf(i2)); + if (list == null) { + list = new ArrayList(); + arrayMap.put(Integer.valueOf(i2), list); + } + list.add(o0Var); + } catch (IOException e3) { + g().f.c("Failed to merge filter", q3.s(str), e3); + } + } while (cursor.moveToNext()); + cursor.close(); + return arrayMap; + } catch (SQLiteException e4) { + e2 = e4; + try { + g().f.c("Database error querying filters. appId", q3.s(str), e2); + if (l9.b()) { + } + if (cursor != null) { + } + return null; + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } + } catch (SQLiteException e5) { + e2 = e5; + cursor = null; + g().f.c("Database error querying filters. appId", q3.s(str), e2); + if (l9.b() || !this.a.h.u(str, p.F0)) { + if (cursor != null) { + cursor.close(); + } + return null; + } + Map> emptyMap2 = Collections.emptyMap(); + if (cursor != null) { + cursor.close(); + } + return emptyMap2; + } catch (Throwable th3) { + th = th3; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + + @WorkerThread + public final void e0() { + n(); + t().endTransaction(); + } + + public final long f0(String str) { + d.w(str); + return w("select count(1) from events where app_id=? and name not like '!_%' escape '!'", new String[]{str}, 0); + } + + @WorkerThread + public final long g0(String str, String str2) { + Throwable th; + SQLiteException e2; + long w; + d.w(str); + d.w(str2); + b(); + n(); + SQLiteDatabase t = t(); + t.beginTransaction(); + long j2 = 0; + try { + StringBuilder sb = new StringBuilder(str2.length() + 32); + sb.append("select "); + sb.append(str2); + sb.append(" from app2 where app_id=?"); + try { + w = w(sb.toString(), new String[]{str}, -1); + if (w == -1) { + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", str); + contentValues.put("first_open_count", (Integer) 0); + contentValues.put("previous_install_count", (Integer) 0); + if (t.insertWithOnConflict("app2", null, contentValues, 5) == -1) { + g().f.c("Failed to insert column (got -1). appId", q3.s(str), str2); + t.endTransaction(); + return -1; + } + w = 0; + } + } catch (SQLiteException e3) { + e2 = e3; + try { + g().f.d("Error inserting column. appId", q3.s(str), str2, e2); + t.endTransaction(); + return j2; + } catch (Throwable th2) { + th = th2; + t.endTransaction(); + throw th; + } + } + try { + ContentValues contentValues2 = new ContentValues(); + contentValues2.put("app_id", str); + contentValues2.put(str2, Long.valueOf(1 + w)); + if (((long) t.update("app2", contentValues2, "app_id = ?", new String[]{str})) == 0) { + g().f.c("Failed to update column (got 0). appId", q3.s(str), str2); + t.endTransaction(); + return -1; + } + t.setTransactionSuccessful(); + t.endTransaction(); + return w; + } catch (SQLiteException e4) { + e2 = e4; + j2 = w; + g().f.d("Error inserting column. appId", q3.s(str), str2, e2); + t.endTransaction(); + return j2; + } + } catch (SQLiteException e5) { + e2 = e5; + g().f.d("Error inserting column. appId", q3.s(str), str2, e2); + t.endTransaction(); + return j2; + } catch (Throwable th3) { + th = th3; + t.endTransaction(); + throw th; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:39:0x00c5 */ + /* JADX WARNING: Removed duplicated region for block: B:44:0x00cd */ + public final Bundle h0(String str) { + Throwable th; + SQLiteException e2; + Cursor cursor; + b(); + n(); + Cursor cursor2 = null; + try { + cursor = t().rawQuery("select parameters from default_event_params where app_id=?", new String[]{str}); + try { + if (!cursor.moveToFirst()) { + g().n.a("Default event parameters not found"); + cursor.close(); + return null; + } + try { + a1 a1Var = (a1) ((u4) ((a1.a) q9.x(a1.M(), cursor.getBlob(0))).p()); + m(); + List v = a1Var.v(); + Bundle bundle = new Bundle(); + for (c1 c1Var : v) { + String B = c1Var.B(); + if (c1Var.M()) { + bundle.putDouble(B, c1Var.N()); + } else if (c1Var.K()) { + bundle.putFloat(B, c1Var.L()); + } else if (c1Var.F()) { + bundle.putString(B, c1Var.G()); + } else if (c1Var.I()) { + bundle.putLong(B, c1Var.J()); + } + } + cursor.close(); + return bundle; + } catch (IOException e3) { + g().f.c("Failed to retrieve default event parameters. appId", q3.s(str), e3); + cursor.close(); + return null; + } + } catch (SQLiteException e4) { + e2 = e4; + try { + g().f.b("Error selecting default event parameters", e2); + if (cursor != null) { + } + return null; + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } + } catch (SQLiteException e5) { + e2 = e5; + cursor = null; + g().f.b("Error selecting default event parameters", e2); + if (cursor != null) { + cursor.close(); + } + return null; + } catch (Throwable th3) { + th = th3; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + + @WorkerThread + public final void i0() { + b(); + n(); + if (R()) { + long a = l().i.a(); + Objects.requireNonNull((c) this.a.o); + long elapsedRealtime = SystemClock.elapsedRealtime(); + if (Math.abs(elapsedRealtime - a) > p.f1549y.a(null).longValue()) { + l().i.b(elapsedRealtime); + b(); + n(); + if (R()) { + SQLiteDatabase t = t(); + Objects.requireNonNull((c) this.a.o); + int delete = t.delete("queue", "abs(bundle_end_timestamp - ?) > cast(? as integer)", new String[]{String.valueOf(System.currentTimeMillis()), String.valueOf(c.B())}); + if (delete > 0) { + g().n.b("Deleted stale rows. rowsDeleted", Integer.valueOf(delete)); + } + } + } + } + } + + public final long j0() { + Cursor cursor = null; + try { + cursor = t().rawQuery("select rowid from raw_events order by rowid desc limit 1;", null); + if (!cursor.moveToFirst()) { + cursor.close(); + return -1; + } + long j2 = cursor.getLong(0); + cursor.close(); + return j2; + } catch (SQLiteException e2) { + g().f.b("Error querying raw events", e2); + if (cursor != null) { + cursor.close(); + } + return -1; + } catch (Throwable th) { + if (cursor != null) { + cursor.close(); + } + throw th; + } + } + + @Override // b.i.a.f.i.b.i9 + public final boolean p() { + return false; + } + + @WorkerThread + public final void s() { + n(); + t().setTransactionSuccessful(); + } + + @WorkerThread + public final SQLiteDatabase t() { + b(); + try { + return this.l.getWritableDatabase(); + } catch (SQLiteException e2) { + g().i.b("Error opening database", e2); + throw e2; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:19:0x0034 */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x003b */ + @WorkerThread + public final String u() { + Throwable th; + Cursor cursor; + SQLiteException e2; + try { + cursor = t().rawQuery("select app_id from queue order by has_realtime desc, rowid asc limit 1;", null); + try { + if (cursor.moveToFirst()) { + String string = cursor.getString(0); + cursor.close(); + return string; + } + cursor.close(); + return null; + } catch (SQLiteException e3) { + e2 = e3; + try { + g().f.b("Database error getting next bundle app id", e2); + if (cursor != null) { + } + return null; + } catch (Throwable th2) { + th = th2; + if (cursor != null) { + } + throw th; + } + } + } catch (SQLiteException e4) { + e2 = e4; + cursor = null; + g().f.b("Database error getting next bundle app id", e2); + if (cursor != null) { + cursor.close(); + } + return null; + } catch (Throwable th3) { + th = th3; + cursor = null; + if (cursor != null) { + cursor.close(); + } + throw th; + } + } + + public final long v(e1 e1Var) throws IOException { + b(); + n(); + d.w(e1Var.G1()); + byte[] d2 = e1Var.d(); + long t = m().t(d2); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", e1Var.G1()); + contentValues.put("metadata_fingerprint", Long.valueOf(t)); + contentValues.put("metadata", d2); + try { + t().insertWithOnConflict("raw_events_metadata", null, contentValues, 4); + return t; + } catch (SQLiteException e2) { + g().f.c("Error storing raw event metadata. appId", q3.s(e1Var.G1()), e2); + throw e2; + } + } + + @WorkerThread + public final long w(String str, String[] strArr, long j2) { + Cursor cursor = null; + try { + Cursor rawQuery = t().rawQuery(str, strArr); + if (rawQuery.moveToFirst()) { + long j3 = rawQuery.getLong(0); + rawQuery.close(); + return j3; + } + rawQuery.close(); + return j2; + } catch (SQLiteException e2) { + g().f.c("Database error", str, e2); + throw e2; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + @WorkerThread + public final f x(long j2, String str, long j3, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { + d.w(str); + b(); + n(); + String[] strArr = {str}; + f fVar = new f(); + Cursor cursor = null; + try { + SQLiteDatabase t = t(); + Cursor query = t.query("apps", new String[]{"day", "daily_events_count", "daily_public_events_count", "daily_conversions_count", "daily_error_events_count", "daily_realtime_events_count"}, "app_id=?", new String[]{str}, null, null, null); + if (!query.moveToFirst()) { + g().i.b("Not updating daily counts, app is not known. appId", q3.s(str)); + query.close(); + return fVar; + } + if (query.getLong(0) == j2) { + fVar.f1517b = query.getLong(1); + fVar.a = query.getLong(2); + fVar.c = query.getLong(3); + fVar.d = query.getLong(4); + fVar.e = query.getLong(5); + } + if (z2) { + fVar.f1517b += j3; + } + if (z3) { + fVar.a += j3; + } + if (z4) { + fVar.c += j3; + } + if (z5) { + fVar.d += j3; + } + if (z6) { + fVar.e += j3; + } + ContentValues contentValues = new ContentValues(); + contentValues.put("day", Long.valueOf(j2)); + contentValues.put("daily_public_events_count", Long.valueOf(fVar.a)); + contentValues.put("daily_events_count", Long.valueOf(fVar.f1517b)); + contentValues.put("daily_conversions_count", Long.valueOf(fVar.c)); + contentValues.put("daily_error_events_count", Long.valueOf(fVar.d)); + contentValues.put("daily_realtime_events_count", Long.valueOf(fVar.e)); + t.update("apps", contentValues, "app_id=?", strArr); + query.close(); + return fVar; + } catch (SQLiteException e2) { + g().f.c("Error updating daily counts. appId", q3.s(str), e2); + if (0 != 0) { + cursor.close(); + } + return fVar; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + @WorkerThread + public final f y(long j2, String str, boolean z2, boolean z3) { + return x(j2, str, 1, false, false, z2, false, z3); + } + + /* JADX WARNING: Removed duplicated region for block: B:59:0x013e */ + /* JADX WARNING: Removed duplicated region for block: B:64:0x0147 */ + @WorkerThread + public final l z(String str, String str2) { + Throwable th; + Cursor cursor; + SQLiteException e2; + Cursor cursor2; + Boolean bool; + d.w(str); + d.w(str2); + b(); + n(); + Cursor cursor3 = null; + try { + boolean z2 = false; + cursor = t().query("events", (String[]) new ArrayList(Arrays.asList("lifetime_count", "current_bundle_count", "last_fire_timestamp", "last_bundled_timestamp", "last_bundled_day", "last_sampled_complex_event_id", "last_sampling_rate", "last_exempt_from_sampling", "current_session_count")).toArray(new String[0]), "app_id=? and name=?", new String[]{str, str2}, null, null, null); + try { + if (!cursor.moveToFirst()) { + cursor.close(); + return null; + } + long j2 = cursor.getLong(0); + long j3 = cursor.getLong(1); + long j4 = cursor.getLong(2); + long j5 = cursor.isNull(3) ? 0 : cursor.getLong(3); + Long valueOf = cursor.isNull(4) ? null : Long.valueOf(cursor.getLong(4)); + Long valueOf2 = cursor.isNull(5) ? null : Long.valueOf(cursor.getLong(5)); + Long valueOf3 = cursor.isNull(6) ? null : Long.valueOf(cursor.getLong(6)); + if (!cursor.isNull(7)) { + try { + if (cursor.getLong(7) == 1) { + z2 = true; + } + bool = Boolean.valueOf(z2); + } catch (SQLiteException e3) { + e2 = e3; + try { + g().f.d("Error querying events. appId", q3.s(str), d().u(str2), e2); + if (cursor != null) { + } + return null; + } catch (Throwable th2) { + th = th2; + cursor3 = cursor; + if (cursor3 != null) { + } + throw th; + } + } + } else { + bool = null; + } + cursor2 = cursor; + try { + l lVar = new l(str, str2, j2, j3, cursor.isNull(8) ? 0 : cursor.getLong(8), j4, j5, valueOf, valueOf2, valueOf3, bool); + if (cursor2.moveToNext()) { + g().f.b("Got multiple records for event aggregates, expected one. appId", q3.s(str)); + } + cursor2.close(); + return lVar; + } catch (SQLiteException e4) { + e2 = e4; + cursor = cursor2; + g().f.d("Error querying events. appId", q3.s(str), d().u(str2), e2); + if (cursor != null) { + } + return null; + } catch (Throwable th3) { + th = th3; + cursor3 = cursor2; + if (cursor3 != null) { + } + throw th; + } + } catch (SQLiteException e5) { + e2 = e5; + g().f.d("Error querying events. appId", q3.s(str), d().u(str2), e2); + if (cursor != null) { + } + return null; + } catch (Throwable th4) { + th = th4; + cursor2 = cursor; + cursor3 = cursor2; + if (cursor3 != null) { + } + throw th; + } + } catch (SQLiteException e6) { + e2 = e6; + cursor = null; + g().f.d("Error querying events. appId", q3.s(str), d().u(str2), e2); + if (cursor != null) { + cursor.close(); + } + return null; + } catch (Throwable th5) { + th = th5; + if (cursor3 != null) { + cursor3.close(); + } + throw th; + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g0.java b/app/src/main/java/b/i/a/f/i/b/g0.java new file mode 100644 index 0000000000..9aa02d94e0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class g0 implements h3 { + public static final h3 a = new g0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).D()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g1.java b/app/src/main/java/b/i/a/f/i/b/g1.java new file mode 100644 index 0000000000..c7409a33ec --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.s9; +import b.i.a.f.h.l.v9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class g1 implements h3 { + public static final h3 a = new g1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((v9) s9.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g2.java b/app/src/main/java/b/i/a/f/i/b/g2.java new file mode 100644 index 0000000000..5d9fc2f20a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.oa; +import b.i.a.f.h.l.pa; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class g2 implements h3 { + public static final h3 a = new g2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((oa) pa.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g3.java b/app/src/main/java/b/i/a/f/i/b/g3.java new file mode 100644 index 0000000000..227ed35423 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g3.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class g3 implements h3 { + public static final h3 a = new g3(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).l()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g5.java b/app/src/main/java/b/i/a/f/i/b/g5.java new file mode 100644 index 0000000000..bd086bd2c2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g5.java @@ -0,0 +1,25 @@ +package b.i.a.f.i.b; + +import java.util.List; +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class g5 implements Callable> { + public final /* synthetic */ String j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ z4 m; + + public g5(z4 z4Var, String str, String str2, String str3) { + this.m = z4Var; + this.j = str; + this.k = str2; + this.l = str3; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final /* synthetic */ List call() throws Exception { + this.m.a.R(); + return this.m.a.K().E(this.j, this.k, this.l); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g6.java b/app/src/main/java/b/i/a/f/i/b/g6.java new file mode 100644 index 0000000000..c61db62715 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g6.java @@ -0,0 +1,25 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class g6 implements Runnable { + public final /* synthetic */ boolean j; + public final /* synthetic */ c6 k; + + public g6(c6 c6Var, boolean z2) { + this.k = c6Var; + this.j = z2; + } + + @Override // java.lang.Runnable + public final void run() { + boolean d = this.k.a.d(); + boolean B = this.k.a.B(); + this.k.a.B = Boolean.valueOf(this.j); + if (B == this.j) { + this.k.a.g().n.b("Default data collection state already set to", Boolean.valueOf(this.j)); + } + if (this.k.a.d() == d || this.k.a.d() != this.k.a.B()) { + this.k.a.g().k.c("Default data collection is different than actual status", Boolean.valueOf(this.j), Boolean.valueOf(d)); + } + this.k.P(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g7.java b/app/src/main/java/b/i/a/f/i/b/g7.java new file mode 100644 index 0000000000..f7c0fc327f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g7.java @@ -0,0 +1,12 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class g7 extends i9 { + public g7(k9 k9Var) { + super(k9Var); + } + + @Override // b.i.a.f.i.b.i9 + public final boolean p() { + return false; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g8.java b/app/src/main/java/b/i/a/f/i/b/g8.java new file mode 100644 index 0000000000..9d562e367b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g8.java @@ -0,0 +1,32 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class g8 implements Runnable { + public final /* synthetic */ boolean j; + public final /* synthetic */ zzz k; + public final /* synthetic */ zzn l; + public final /* synthetic */ zzz m; + public final /* synthetic */ q7 n; + + public g8(q7 q7Var, boolean z2, zzz zzz, zzn zzn, zzz zzz2) { + this.n = q7Var; + this.j = z2; + this.k = zzz; + this.l = zzn; + this.m = zzz2; + } + + @Override // java.lang.Runnable + public final void run() { + q7 q7Var = this.n; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Discarding data. Failed to send conditional user property to service"); + return; + } + q7Var.w(i3Var, this.j ? null : this.k, this.l); + this.n.F(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/g9.java b/app/src/main/java/b/i/a/f/i/b/g9.java new file mode 100644 index 0000000000..3b630e07fc --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/g9.java @@ -0,0 +1,20 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class g9 extends i { + public final /* synthetic */ k9 e; + public final /* synthetic */ h9 f; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g9(h9 h9Var, t5 t5Var, k9 k9Var) { + super(t5Var); + this.f = h9Var; + this.e = k9Var; + } + + @Override // b.i.a.f.i.b.i + public final void a() { + this.f.s(); + this.f.g().n.a("Starting upload from DelayedRunnable"); + this.e.Q(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/ga.java b/app/src/main/java/b/i/a/f/i/b/ga.java new file mode 100644 index 0000000000..72120a4763 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/ga.java @@ -0,0 +1,9 @@ +package b.i.a.f.i.b; + +import android.os.Looper; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class ga { + public static boolean a() { + return Looper.myLooper() == Looper.getMainLooper(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h.java b/app/src/main/java/b/i/a/f/i/b/h.java new file mode 100644 index 0000000000..39f61c6c94 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h.java @@ -0,0 +1,97 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.database.sqlite.SQLiteOpenHelper; +import android.os.SystemClock; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.c; +import b.i.a.f.e.o.f; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class h extends SQLiteOpenHelper { + public final /* synthetic */ g j; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public h(g gVar, Context context, String str) { + super(context, str, (SQLiteDatabase.CursorFactory) null, 1); + this.j = gVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:20:0x0083 */ + /* JADX WARNING: Removed duplicated region for block: B:7:0x0027 A[SYNTHETIC, Splitter:B:7:0x0027] */ + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final SQLiteDatabase getWritableDatabase() { + boolean z2; + e9 e9Var = this.j.m; + if (e9Var.f1515b != 0) { + Objects.requireNonNull((c) e9Var.a); + if (SystemClock.elapsedRealtime() - e9Var.f1515b < 3600000) { + z2 = false; + if (!z2) { + try { + return super.getWritableDatabase(); + } catch (SQLiteException unused) { + e9 e9Var2 = this.j.m; + Objects.requireNonNull((c) e9Var2.a); + e9Var2.f1515b = SystemClock.elapsedRealtime(); + this.j.g().f.a("Opening the database failed, dropping and recreating it"); + if (!this.j.a.f1555b.getDatabasePath("google_app_measurement.db").delete()) { + this.j.g().f.b("Failed to delete corrupted db file", "google_app_measurement.db"); + } + try { + SQLiteDatabase writableDatabase = super.getWritableDatabase(); + this.j.m.f1515b = 0; + return writableDatabase; + } catch (SQLiteException e) { + this.j.g().f.b("Failed to open freshly created database", e); + throw e; + } + } + } else { + throw new SQLiteException("Database open failed"); + } + } + } + z2 = true; + if (!z2) { + } + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final void onCreate(SQLiteDatabase sQLiteDatabase) { + f.W1(this.j.g(), sQLiteDatabase); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final void onOpen(SQLiteDatabase sQLiteDatabase) { + f.X1(this.j.g(), sQLiteDatabase, "events", "CREATE TABLE IF NOT EXISTS events ( app_id TEXT NOT NULL, name TEXT NOT NULL, lifetime_count INTEGER NOT NULL, current_bundle_count INTEGER NOT NULL, last_fire_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,lifetime_count,current_bundle_count,last_fire_timestamp", g.d); + f.X1(this.j.g(), sQLiteDatabase, "conditional_properties", "CREATE TABLE IF NOT EXISTS conditional_properties ( app_id TEXT NOT NULL, origin TEXT NOT NULL, name TEXT NOT NULL, value BLOB NOT NULL, creation_timestamp INTEGER NOT NULL, active INTEGER NOT NULL, trigger_event_name TEXT, trigger_timeout INTEGER NOT NULL, timed_out_event BLOB,triggered_event BLOB, triggered_timestamp INTEGER NOT NULL, time_to_live INTEGER NOT NULL, expired_event BLOB, PRIMARY KEY (app_id, name)) ;", "app_id,origin,name,value,active,trigger_event_name,trigger_timeout,creation_timestamp,timed_out_event,triggered_event,triggered_timestamp,time_to_live,expired_event", null); + f.X1(this.j.g(), sQLiteDatabase, "user_attributes", "CREATE TABLE IF NOT EXISTS user_attributes ( app_id TEXT NOT NULL, name TEXT NOT NULL, set_timestamp INTEGER NOT NULL, value BLOB NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,set_timestamp,value", g.e); + f.X1(this.j.g(), sQLiteDatabase, "apps", "CREATE TABLE IF NOT EXISTS apps ( app_id TEXT NOT NULL, app_instance_id TEXT, gmp_app_id TEXT, resettable_device_id_hash TEXT, last_bundle_index INTEGER NOT NULL, last_bundle_end_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id)) ;", "app_id,app_instance_id,gmp_app_id,resettable_device_id_hash,last_bundle_index,last_bundle_end_timestamp", g.f); + f.X1(this.j.g(), sQLiteDatabase, "queue", "CREATE TABLE IF NOT EXISTS queue ( app_id TEXT NOT NULL, bundle_end_timestamp INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,bundle_end_timestamp,data", g.h); + f.X1(this.j.g(), sQLiteDatabase, "raw_events_metadata", "CREATE TABLE IF NOT EXISTS raw_events_metadata ( app_id TEXT NOT NULL, metadata_fingerprint INTEGER NOT NULL, metadata BLOB NOT NULL, PRIMARY KEY (app_id, metadata_fingerprint));", "app_id,metadata_fingerprint,metadata", null); + f.X1(this.j.g(), sQLiteDatabase, "raw_events", "CREATE TABLE IF NOT EXISTS raw_events ( app_id TEXT NOT NULL, name TEXT NOT NULL, timestamp INTEGER NOT NULL, metadata_fingerprint INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,name,timestamp,metadata_fingerprint,data", g.g); + f.X1(this.j.g(), sQLiteDatabase, "event_filters", "CREATE TABLE IF NOT EXISTS event_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, event_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, event_name, audience_id, filter_id));", "app_id,audience_id,filter_id,event_name,data", g.i); + f.X1(this.j.g(), sQLiteDatabase, "property_filters", "CREATE TABLE IF NOT EXISTS property_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, property_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, property_name, audience_id, filter_id));", "app_id,audience_id,filter_id,property_name,data", g.j); + f.X1(this.j.g(), sQLiteDatabase, "audience_filter_values", "CREATE TABLE IF NOT EXISTS audience_filter_values ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, current_results BLOB, PRIMARY KEY (app_id, audience_id));", "app_id,audience_id,current_results", null); + f.X1(this.j.g(), sQLiteDatabase, "app2", "CREATE TABLE IF NOT EXISTS app2 ( app_id TEXT NOT NULL, first_open_count INTEGER NOT NULL, PRIMARY KEY (app_id));", "app_id,first_open_count", g.k); + f.X1(this.j.g(), sQLiteDatabase, "main_event_params", "CREATE TABLE IF NOT EXISTS main_event_params ( app_id TEXT NOT NULL, event_id TEXT NOT NULL, children_to_process INTEGER NOT NULL, main_event BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,event_id,children_to_process,main_event", null); + f.X1(this.j.g(), sQLiteDatabase, "default_event_params", "CREATE TABLE IF NOT EXISTS default_event_params ( app_id TEXT NOT NULL, parameters BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,parameters", null); + f.X1(this.j.g(), sQLiteDatabase, "consent_settings", "CREATE TABLE IF NOT EXISTS consent_settings ( app_id TEXT NOT NULL, consent_state TEXT NOT NULL, PRIMARY KEY (app_id));", "app_id,consent_state", null); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h0.java b/app/src/main/java/b/i/a/f/i/b/h0.java new file mode 100644 index 0000000000..16e84de614 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class h0 implements h3 { + public static final h3 a = new h0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).G()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h1.java b/app/src/main/java/b/i/a/f/i/b/h1.java new file mode 100644 index 0000000000..cd7553d1b0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.a8; +import b.i.a.f.h.l.b8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class h1 implements h3 { + public static final h3 a = new h1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((a8) b8.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h2.java b/app/src/main/java/b/i/a/f/i/b/h2.java new file mode 100644 index 0000000000..15603037f2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.oa; +import b.i.a.f.h.l.pa; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class h2 implements h3 { + public static final h3 a = new h2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((oa) pa.j.a()).c()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h3.java b/app/src/main/java/b/i/a/f/i/b/h3.java new file mode 100644 index 0000000000..b9b6695b4d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h3.java @@ -0,0 +1,5 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface h3 { + V a(); +} diff --git a/app/src/main/java/b/i/a/f/i/b/h4.java b/app/src/main/java/b/i/a/f/i/b/h4.java new file mode 100644 index 0000000000..2d09eec968 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h4.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import android.content.SharedPreferences; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class h4 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final long f1519b; + public boolean c; + public long d; + public final /* synthetic */ d4 e; + + public h4(d4 d4Var, String str, long j) { + this.e = d4Var; + d.w(str); + this.a = str; + this.f1519b = j; + } + + @WorkerThread + public final long a() { + if (!this.c) { + this.c = true; + this.d = this.e.w().getLong(this.a, this.f1519b); + } + return this.d; + } + + @WorkerThread + public final void b(long j) { + SharedPreferences.Editor edit = this.e.w().edit(); + edit.putLong(this.a, j); + edit.apply(); + this.d = j; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h5.java b/app/src/main/java/b/i/a/f/i/b/h5.java new file mode 100644 index 0000000000..4d5a7b28d7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h5.java @@ -0,0 +1,19 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class h5 implements Runnable { + public final /* synthetic */ zzn j; + public final /* synthetic */ z4 k; + + public h5(z4 z4Var, zzn zzn) { + this.k = z4Var; + this.j = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.a.R(); + this.k.a.p(this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h6.java b/app/src/main/java/b/i/a/f/i/b/h6.java new file mode 100644 index 0000000000..72a1ee49c0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h6.java @@ -0,0 +1,17 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class h6 implements Runnable { + public final /* synthetic */ long j; + public final /* synthetic */ c6 k; + + public h6(c6 c6Var, long j) { + this.k = c6Var; + this.j = j; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.l().r.b(this.j); + this.k.g().m.b("Session timeout duration set", Long.valueOf(this.j)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h7.java b/app/src/main/java/b/i/a/f/i/b/h7.java new file mode 100644 index 0000000000..8a704240b0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h7.java @@ -0,0 +1,227 @@ +package b.i.a.f.i.b; + +import android.app.Activity; +import android.os.Bundle; +import android.os.SystemClock; +import androidx.annotation.MainThread; +import androidx.annotation.NonNull; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.c; +import b.i.a.f.h.l.s9; +import b.i.a.f.h.l.v9; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class h7 extends a5 { + public volatile i7 c; + public i7 d; + public i7 e; + public final Map f = new ConcurrentHashMap(); + public Activity g; + public volatile boolean h; + public volatile i7 i; + public i7 j; + public boolean k; + public final Object l = new Object(); + public String m; + + public h7(u4 u4Var) { + super(u4Var); + } + + public static void A(i7 i7Var, Bundle bundle, boolean z2) { + if (i7Var != null && (!bundle.containsKey("_sc") || z2)) { + String str = i7Var.a; + if (str != null) { + bundle.putString("_sn", str); + } else { + bundle.remove("_sn"); + } + String str2 = i7Var.f1522b; + if (str2 != null) { + bundle.putString("_sc", str2); + } else { + bundle.remove("_sc"); + } + bundle.putLong("_si", i7Var.c); + } else if (i7Var == null && z2) { + bundle.remove("_sn"); + bundle.remove("_sc"); + bundle.remove("_si"); + } + } + + public static String x(String str) { + String[] split = str.split("\\."); + String str2 = split.length > 0 ? split[split.length - 1] : ""; + return str2.length() > 100 ? str2.substring(0, 100) : str2; + } + + /* JADX WARNING: Removed duplicated region for block: B:60:0x010d */ + /* JADX WARNING: Removed duplicated region for block: B:67:0x0131 */ + @WorkerThread + public final void B(i7 i7Var, i7 i7Var2, long j, boolean z2, Bundle bundle) { + boolean z3; + String str; + long j2; + long j3; + i7 i7Var3; + b(); + boolean z4 = false; + if (this.a.h.o(p.T)) { + z3 = z2 && this.e != null; + if (z3) { + C(this.e, true, j); + } + } else { + if (z2 && (i7Var3 = this.e) != null) { + C(i7Var3, true, j); + } + z3 = false; + } + if (i7Var2 == null || i7Var2.c != i7Var.c || !t9.q0(i7Var2.f1522b, i7Var.f1522b) || !t9.q0(i7Var2.a, i7Var.a)) { + z4 = true; + } + if (z4) { + Bundle bundle2 = new Bundle(); + if (this.a.h.o(p.v0)) { + bundle2 = bundle != null ? new Bundle(bundle) : new Bundle(); + } + A(i7Var, bundle2, true); + if (i7Var2 != null) { + String str2 = i7Var2.a; + if (str2 != null) { + bundle2.putString("_pn", str2); + } + String str3 = i7Var2.f1522b; + if (str3 != null) { + bundle2.putString("_pc", str3); + } + bundle2.putLong("_pi", i7Var2.c); + } + if (this.a.h.o(p.T) && z3) { + if (!((v9) s9.j.a()).a() || !this.a.h.o(p.V)) { + j3 = s().e.b(); + } else { + d9 d9Var = s().e; + j3 = j - d9Var.f1513b; + d9Var.f1513b = j; + } + if (j3 > 0) { + e().G(bundle2, j3); + } + } + if (this.a.h.o(p.v0)) { + if (!this.a.h.z().booleanValue()) { + bundle2.putLong("_mst", 1); + } + if (i7Var.e) { + str = "app"; + if (!this.a.h.o(p.v0)) { + Objects.requireNonNull((c) this.a.o); + long currentTimeMillis = System.currentTimeMillis(); + if (i7Var.e) { + long j4 = i7Var.f; + if (j4 != 0) { + j2 = j4; + n().E(str, "_vs", j2, bundle2); + } + } + j2 = currentTimeMillis; + n().E(str, "_vs", j2, bundle2); + } else { + c6 n = n(); + n.b(); + Objects.requireNonNull((c) n.a.o); + n.E(str, "_vs", System.currentTimeMillis(), bundle2); + } + } + } + str = "auto"; + if (!this.a.h.o(p.v0)) { + } + } + this.e = i7Var; + if (this.a.h.o(p.v0) && i7Var.e) { + this.j = i7Var; + } + q7 p = p(); + p.b(); + p.t(); + p.z(new w7(p, i7Var)); + } + + @WorkerThread + public final void C(i7 i7Var, boolean z2, long j) { + a m = m(); + Objects.requireNonNull((c) this.a.o); + m.t(SystemClock.elapsedRealtime()); + if (s().w(i7Var != null && i7Var.d, z2, j) && i7Var != null) { + i7Var.d = false; + } + } + + @WorkerThread + public final void D(String str, i7 i7Var) { + b(); + synchronized (this) { + String str2 = this.m; + if (str2 == null || str2.equals(str)) { + this.m = str; + } + } + } + + @MainThread + public final i7 E(@NonNull Activity activity) { + Objects.requireNonNull(activity, "null reference"); + i7 i7Var = this.f.get(activity); + if (i7Var == null) { + i7 i7Var2 = new i7(null, x(activity.getClass().getCanonicalName()), e().t0()); + this.f.put(activity, i7Var2); + i7Var = i7Var2; + } + return (this.a.h.o(p.v0) && this.i != null) ? this.i : i7Var; + } + + @Override // b.i.a.f.i.b.a5 + public final boolean v() { + return false; + } + + @WorkerThread + public final i7 w(boolean z2) { + t(); + b(); + if (!this.a.h.o(p.v0) || !z2) { + return this.e; + } + i7 i7Var = this.e; + return i7Var != null ? i7Var : this.j; + } + + @MainThread + public final void y(Activity activity, Bundle bundle) { + Bundle bundle2; + if (this.a.h.z().booleanValue() && bundle != null && (bundle2 = bundle.getBundle("com.google.app_measurement.screen_service")) != null) { + this.f.put(activity, new i7(bundle2.getString(ModelAuditLogEntry.CHANGE_KEY_NAME), bundle2.getString("referrer_name"), bundle2.getLong(ModelAuditLogEntry.CHANGE_KEY_ID))); + } + } + + @MainThread + public final void z(Activity activity, i7 i7Var, boolean z2) { + i7 i7Var2; + i7 i7Var3 = this.c == null ? this.d : this.c; + if (i7Var.f1522b == null) { + i7Var2 = new i7(i7Var.a, activity != null ? x(activity.getClass().getCanonicalName()) : null, i7Var.c, i7Var.e, i7Var.f); + } else { + i7Var2 = i7Var; + } + this.d = this.c; + this.c = i7Var2; + Objects.requireNonNull((c) this.a.o); + f().v(new j7(this, i7Var2, i7Var3, SystemClock.elapsedRealtime(), z2)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h8.java b/app/src/main/java/b/i/a/f/i/b/h8.java new file mode 100644 index 0000000000..80a22e98b8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h8.java @@ -0,0 +1,54 @@ +package b.i.a.f.i.b; + +import android.os.RemoteException; +import android.text.TextUtils; +import com.google.android.gms.measurement.internal.zzn; +import java.util.Collections; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class h8 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ String m; + public final /* synthetic */ boolean n; + public final /* synthetic */ zzn o; + public final /* synthetic */ q7 p; + + public h8(q7 q7Var, AtomicReference atomicReference, String str, String str2, String str3, boolean z2, zzn zzn) { + this.p = q7Var; + this.j = atomicReference; + this.k = str; + this.l = str2; + this.m = str3; + this.n = z2; + this.o = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j) { + try { + q7 q7Var = this.p; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.d("(legacy) Failed to get user properties; not connected to service", q3.s(this.k), this.l, this.m); + this.j.set(Collections.emptyList()); + return; + } + if (TextUtils.isEmpty(this.k)) { + this.j.set(i3Var.S(this.l, this.m, this.n, this.o)); + } else { + this.j.set(i3Var.u(this.k, this.l, this.m, this.n)); + } + this.p.F(); + this.j.notify(); + } catch (RemoteException e) { + this.p.g().f.d("(legacy) Failed to get user properties; remote exception", q3.s(this.k), this.l, e); + this.j.set(Collections.emptyList()); + } finally { + this.j.notify(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/h9.java b/app/src/main/java/b/i/a/f/i/b/h9.java new file mode 100644 index 0000000000..8b2e8ad3ae --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/h9.java @@ -0,0 +1,53 @@ +package b.i.a.f.i.b; + +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.app.job.JobScheduler; +import android.content.Context; +import android.content.Intent; +import android.os.Build; +import androidx.core.app.NotificationCompat; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class h9 extends i9 { + public final AlarmManager d = ((AlarmManager) this.a.f1555b.getSystemService(NotificationCompat.CATEGORY_ALARM)); + public final i e; + public Integer f; + + public h9(k9 k9Var) { + super(k9Var); + this.e = new g9(this, k9Var.k, k9Var); + } + + @Override // b.i.a.f.i.b.i9 + public final boolean p() { + this.d.cancel(u()); + if (Build.VERSION.SDK_INT < 24) { + return false; + } + ((JobScheduler) this.a.f1555b.getSystemService("jobscheduler")).cancel(t()); + return false; + } + + public final void s() { + n(); + g().n.a("Unscheduling upload"); + this.d.cancel(u()); + this.e.c(); + if (Build.VERSION.SDK_INT >= 24) { + ((JobScheduler) this.a.f1555b.getSystemService("jobscheduler")).cancel(t()); + } + } + + public final int t() { + if (this.f == null) { + String valueOf = String.valueOf(this.a.f1555b.getPackageName()); + this.f = Integer.valueOf((valueOf.length() != 0 ? "measurement".concat(valueOf) : new String("measurement")).hashCode()); + } + return this.f.intValue(); + } + + public final PendingIntent u() { + Context context = this.a.f1555b; + return PendingIntent.getBroadcast(context, 0, new Intent().setClassName(context, "com.google.android.gms.measurement.AppMeasurementReceiver").setAction("com.google.android.gms.measurement.UPLOAD"), 0); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/ha.java b/app/src/main/java/b/i/a/f/i/b/ha.java new file mode 100644 index 0000000000..d883e62666 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/ha.java @@ -0,0 +1,114 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.f9; +import b.i.a.f.h.l.i1; +import b.i.a.f.h.l.m0; +import b.i.a.f.h.l.o0; +import java.math.BigDecimal; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class ha extends ea { + public o0 g; + public final /* synthetic */ ba h; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public ha(ba baVar, String str, int i, o0 o0Var) { + super(str, i); + this.h = baVar; + this.g = o0Var; + } + + @Override // b.i.a.f.i.b.ea + public final int a() { + return this.g.w(); + } + + @Override // b.i.a.f.i.b.ea + public final boolean g() { + return true; + } + + @Override // b.i.a.f.i.b.ea + public final boolean h() { + return false; + } + + public final boolean i(Long l, Long l2, i1 i1Var, boolean z2) { + boolean z3 = f9.b() && this.h.a.h.u(this.a, p.f1536a0); + boolean z4 = this.g.z(); + boolean A = this.g.A(); + boolean C = this.g.C(); + boolean z5 = z4 || A || C; + Boolean bool = null; + Boolean bool2 = null; + Integer num = null; + bool = null; + bool = null; + bool = null; + bool = null; + if (!z2 || z5) { + m0 y2 = this.g.y(); + boolean A2 = y2.A(); + if (i1Var.H()) { + if (!y2.x()) { + this.h.g().i.b("No number filter for long property. property", this.h.d().y(i1Var.D())); + } else { + bool = ea.c(ea.b(i1Var.I(), y2.y()), A2); + } + } else if (i1Var.J()) { + if (!y2.x()) { + this.h.g().i.b("No number filter for double property. property", this.h.d().y(i1Var.D())); + } else { + double K = i1Var.K(); + try { + bool2 = ea.f(new BigDecimal(K), y2.y(), Math.ulp(K)); + } catch (NumberFormatException unused) { + } + bool = ea.c(bool2, A2); + } + } else if (!i1Var.F()) { + this.h.g().i.b("User property has no value, property", this.h.d().y(i1Var.D())); + } else if (y2.v()) { + bool = ea.c(ea.e(i1Var.G(), y2.w(), this.h.g()), A2); + } else if (!y2.x()) { + this.h.g().i.b("No string or number filter defined. property", this.h.d().y(i1Var.D())); + } else if (q9.P(i1Var.G())) { + bool = ea.c(ea.d(i1Var.G(), y2.y()), A2); + } else { + this.h.g().i.c("Invalid user property value for Numeric number filter. property, value", this.h.d().y(i1Var.D()), i1Var.G()); + } + this.h.g().n.b("Property filter result", bool == null ? "null" : bool); + if (bool == null) { + return false; + } + this.c = Boolean.TRUE; + if (C && !bool.booleanValue()) { + return true; + } + if (!z2 || this.g.z()) { + this.d = bool; + } + if (bool.booleanValue() && z5 && i1Var.y()) { + long z6 = i1Var.z(); + if (l != null) { + z6 = l.longValue(); + } + if (z3 && this.g.z() && !this.g.A() && l2 != null) { + z6 = l2.longValue(); + } + if (this.g.A()) { + this.f = Long.valueOf(z6); + } else { + this.e = Long.valueOf(z6); + } + } + return true; + } + s3 s3Var = this.h.g().n; + Integer valueOf = Integer.valueOf(this.f1516b); + if (this.g.v()) { + num = Integer.valueOf(this.g.w()); + } + s3Var.c("Property filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", valueOf, num); + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i.java b/app/src/main/java/b/i/a/f/i/b/i.java new file mode 100644 index 0000000000..648bb3573e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i.java @@ -0,0 +1,53 @@ +package b.i.a.f.i.b; + +import android.os.Handler; +import b.i.a.f.e.o.c; +import b.i.a.f.h.l.bc; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public abstract class i { + public static volatile Handler a; + + /* renamed from: b reason: collision with root package name */ + public final t5 f1520b; + public final Runnable c; + public volatile long d; + + public i(t5 t5Var) { + Objects.requireNonNull(t5Var, "null reference"); + this.f1520b = t5Var; + this.c = new k(this, t5Var); + } + + public abstract void a(); + + public final void b(long j) { + c(); + if (j >= 0) { + Objects.requireNonNull((c) this.f1520b.h()); + this.d = System.currentTimeMillis(); + if (!d().postDelayed(this.c, j)) { + this.f1520b.g().f.b("Failed to schedule delayed post. time", Long.valueOf(j)); + } + } + } + + public final void c() { + this.d = 0; + d().removeCallbacks(this.c); + } + + public final Handler d() { + Handler handler; + if (a != null) { + return a; + } + synchronized (i.class) { + if (a == null) { + a = new bc(this.f1520b.j().getMainLooper()); + } + handler = a; + } + return handler; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i0.java b/app/src/main/java/b/i/a/f/i/b/i0.java new file mode 100644 index 0000000000..ea2d2a887f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class i0 implements h3 { + public static final h3 a = new i0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).r()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i1.java b/app/src/main/java/b/i/a/f/i/b/i1.java new file mode 100644 index 0000000000..9d64ee8063 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.u8; +import b.i.a.f.h.l.x8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class i1 implements h3 { + public static final h3 a = new i1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((x8) u8.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i2.java b/app/src/main/java/b/i/a/f/i/b/i2.java new file mode 100644 index 0000000000..a33976e129 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class i2 implements h3 { + public static final h3 a = new i2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).k()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i3.java b/app/src/main/java/b/i/a/f/i/b/i3.java new file mode 100644 index 0000000000..64fcb1e861 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i3.java @@ -0,0 +1,42 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.os.IInterface; +import android.os.RemoteException; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface i3 extends IInterface { + String A(zzn zzn) throws RemoteException; + + void H(long j, String str, String str2, String str3) throws RemoteException; + + void I(zzn zzn) throws RemoteException; + + List J(String str, String str2, String str3) throws RemoteException; + + List K(String str, String str2, zzn zzn) throws RemoteException; + + List S(String str, String str2, boolean z2, zzn zzn) throws RemoteException; + + void U(zzn zzn) throws RemoteException; + + void f0(zzn zzn) throws RemoteException; + + byte[] i(zzaq zzaq, String str) throws RemoteException; + + void l(zzn zzn) throws RemoteException; + + void o0(zzaq zzaq, zzn zzn) throws RemoteException; + + void p0(Bundle bundle, zzn zzn) throws RemoteException; + + void t0(zzku zzku, zzn zzn) throws RemoteException; + + List u(String str, String str2, String str3, boolean z2) throws RemoteException; + + void u0(zzz zzz, zzn zzn) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/i/b/i4.java b/app/src/main/java/b/i/a/f/i/b/i4.java new file mode 100644 index 0000000000..2ae0461c29 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i4.java @@ -0,0 +1,116 @@ +package b.i.a.f.i.b; + +import android.content.SharedPreferences; +import android.os.Bundle; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class i4 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final Bundle f1521b = new Bundle(); + public boolean c; + public Bundle d; + public final /* synthetic */ d4 e; + + public i4(d4 d4Var, String str) { + this.e = d4Var; + d.w(str); + this.a = str; + } + + @WorkerThread + public final Bundle a() { + if (!this.c) { + this.c = true; + String string = this.e.w().getString(this.a, null); + if (string != null) { + try { + Bundle bundle = new Bundle(); + JSONArray jSONArray = new JSONArray(string); + for (int i = 0; i < jSONArray.length(); i++) { + JSONObject jSONObject = jSONArray.getJSONObject(i); + String string2 = jSONObject.getString("n"); + String string3 = jSONObject.getString("t"); + char c = 65535; + int hashCode = string3.hashCode(); + if (hashCode != 100) { + if (hashCode != 108) { + if (hashCode == 115 && string3.equals("s")) { + c = 0; + } + } else if (string3.equals("l")) { + c = 2; + } + } else if (string3.equals("d")) { + c = 1; + } + if (c == 0) { + bundle.putString(string2, jSONObject.getString("v")); + } else if (c == 1) { + bundle.putDouble(string2, Double.parseDouble(jSONObject.getString("v"))); + } else if (c != 2) { + try { + this.e.g().f.b("Unrecognized persisted bundle type. Type", string3); + } catch (NumberFormatException | JSONException unused) { + this.e.g().f.a("Error reading value from SharedPreferences. Value dropped"); + } + } else { + bundle.putLong(string2, Long.parseLong(jSONObject.getString("v"))); + } + } + this.d = bundle; + } catch (JSONException unused2) { + this.e.g().f.a("Error loading bundle from SharedPreferences. Values will be lost"); + } + } + if (this.d == null) { + this.d = this.f1521b; + } + } + return this.d; + } + + @WorkerThread + public final void b(Bundle bundle) { + if (bundle == null) { + bundle = new Bundle(); + } + SharedPreferences.Editor edit = this.e.w().edit(); + if (bundle.size() == 0) { + edit.remove(this.a); + } else { + String str = this.a; + JSONArray jSONArray = new JSONArray(); + for (String str2 : bundle.keySet()) { + Object obj = bundle.get(str2); + if (obj != null) { + try { + JSONObject jSONObject = new JSONObject(); + jSONObject.put("n", str2); + jSONObject.put("v", String.valueOf(obj)); + if (obj instanceof String) { + jSONObject.put("t", "s"); + } else if (obj instanceof Long) { + jSONObject.put("t", "l"); + } else if (obj instanceof Double) { + jSONObject.put("t", "d"); + } else { + this.e.g().f.b("Cannot serialize bundle value to SharedPreferences. Type", obj.getClass()); + } + jSONArray.put(jSONObject); + } catch (JSONException e) { + this.e.g().f.b("Cannot serialize bundle value to SharedPreferences", e); + } + } + } + edit.putString(str, jSONArray.toString()); + } + edit.apply(); + this.d = bundle; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i5.java b/app/src/main/java/b/i/a/f/i/b/i5.java new file mode 100644 index 0000000000..f1e3db7330 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i5.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzz; +import java.util.List; +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class i5 implements Callable> { + public final /* synthetic */ String j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ z4 m; + + public i5(z4 z4Var, String str, String str2, String str3) { + this.m = z4Var; + this.j = str; + this.k = str2; + this.l = str3; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final /* synthetic */ List call() throws Exception { + this.m.a.R(); + return this.m.a.K().U(this.j, this.k, this.l); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i6.java b/app/src/main/java/b/i/a/f/i/b/i6.java new file mode 100644 index 0000000000..3ccbde52af --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i6.java @@ -0,0 +1,17 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class i6 implements Runnable { + public final /* synthetic */ long j; + public final /* synthetic */ c6 k; + + public i6(c6 c6Var, long j) { + this.k = c6Var; + this.j = j; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.l().q.b(this.j); + this.k.g().m.b("Minimum session duration set", Long.valueOf(this.j)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i7.java b/app/src/main/java/b/i/a/f/i/b/i7.java new file mode 100644 index 0000000000..7663f66a32 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i7.java @@ -0,0 +1,25 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class i7 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1522b; + public final long c; + public boolean d; + public final boolean e; + public final long f; + + public i7(String str, String str2, long j) { + this(str, str2, j, false, 0); + } + + public i7(String str, String str2, long j, boolean z2, long j2) { + this.a = str; + this.f1522b = str2; + this.c = j; + this.d = false; + this.e = z2; + this.f = j2; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i8.java b/app/src/main/java/b/i/a/f/i/b/i8.java new file mode 100644 index 0000000000..55921bd80a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i8.java @@ -0,0 +1,43 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.os.RemoteException; +import b.i.a.f.h.l.fc; +import com.google.android.gms.measurement.internal.zzn; +import java.util.ArrayList; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class i8 implements Runnable { + public final /* synthetic */ String j; + public final /* synthetic */ String k; + public final /* synthetic */ zzn l; + public final /* synthetic */ fc m; + public final /* synthetic */ q7 n; + + public i8(q7 q7Var, String str, String str2, zzn zzn, fc fcVar) { + this.n = q7Var; + this.j = str; + this.k = str2; + this.l = zzn; + this.m = fcVar; + } + + @Override // java.lang.Runnable + public final void run() { + ArrayList arrayList = new ArrayList<>(); + try { + q7 q7Var = this.n; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.c("Failed to get conditional properties; not connected to service", this.j, this.k); + return; + } + ArrayList j02 = t9.j0(i3Var.K(this.j, this.k, this.l)); + this.n.F(); + this.n.e().N(this.m, j02); + } catch (RemoteException e) { + this.n.g().f.d("Failed to get conditional properties; remote exception", this.j, this.k, e); + } finally { + this.n.e().N(this.m, arrayList); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/i9.java b/app/src/main/java/b/i/a/f/i/b/i9.java new file mode 100644 index 0000000000..f9d2efc893 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/i9.java @@ -0,0 +1,44 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public abstract class i9 extends s5 implements t5 { + + /* renamed from: b reason: collision with root package name */ + public final k9 f1523b; + public boolean c; + + public i9(k9 k9Var) { + super(k9Var.k); + this.f1523b = k9Var; + k9Var.p++; + } + + public q9 m() { + return this.f1523b.N(); + } + + public final void n() { + if (!this.c) { + throw new IllegalStateException("Not initialized"); + } + } + + public final void o() { + if (!this.c) { + p(); + this.f1523b.q++; + this.c = true; + return; + } + throw new IllegalStateException("Can't initialize twice"); + } + + public abstract boolean p(); + + public g q() { + return this.f1523b.K(); + } + + public p4 r() { + return this.f1523b.H(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/ia.java b/app/src/main/java/b/i/a/f/i/b/ia.java new file mode 100644 index 0000000000..3177e19d13 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/ia.java @@ -0,0 +1,76 @@ +package b.i.a.f.i.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzz; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class ia implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzz createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + long j = 0; + long j2 = 0; + long j3 = 0; + String str = null; + String str2 = null; + zzku zzku = null; + String str3 = null; + zzaq zzaq = null; + zzaq zzaq2 = null; + zzaq zzaq3 = null; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 2: + str = d.Q(parcel, readInt); + break; + case 3: + str2 = d.Q(parcel, readInt); + break; + case 4: + zzku = (zzku) d.P(parcel, readInt, zzku.CREATOR); + break; + case 5: + j = d.F1(parcel, readInt); + break; + case 6: + z2 = d.C1(parcel, readInt); + break; + case 7: + str3 = d.Q(parcel, readInt); + break; + case 8: + zzaq = (zzaq) d.P(parcel, readInt, zzaq.CREATOR); + break; + case 9: + j2 = d.F1(parcel, readInt); + break; + case 10: + zzaq2 = (zzaq) d.P(parcel, readInt, zzaq.CREATOR); + break; + case 11: + j3 = d.F1(parcel, readInt); + break; + case 12: + zzaq3 = (zzaq) d.P(parcel, readInt, zzaq.CREATOR); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzz(str, str2, zzku, j, z2, str3, zzaq, j2, zzaq2, j3, zzaq3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzz[] newArray(int i) { + return new zzz[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j.java b/app/src/main/java/b/i/a/f/i/b/j.java new file mode 100644 index 0000000000..cf30923baa --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j.java @@ -0,0 +1,116 @@ +package b.i.a.f.i.b; + +import android.accounts.Account; +import android.accounts.AccountManager; +import android.accounts.AuthenticatorException; +import android.accounts.OperationCanceledException; +import android.content.Context; +import android.content.pm.PackageManager; +import androidx.annotation.WorkerThread; +import androidx.core.content.ContextCompat; +import b.d.b.a.a; +import b.i.a.f.e.o.c; +import java.io.IOException; +import java.util.Calendar; +import java.util.Locale; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class j extends r5 { + public long c; + public String d; + public Boolean e; + public AccountManager f; + public Boolean g; + public long h; + + public j(u4 u4Var) { + super(u4Var); + } + + @Override // b.i.a.f.i.b.r5 + public final boolean r() { + Calendar instance = Calendar.getInstance(); + this.c = TimeUnit.MINUTES.convert((long) (instance.get(16) + instance.get(15)), TimeUnit.MILLISECONDS); + Locale locale = Locale.getDefault(); + String language = locale.getLanguage(); + Locale locale2 = Locale.ENGLISH; + String lowerCase = language.toLowerCase(locale2); + String lowerCase2 = locale.getCountry().toLowerCase(locale2); + this.d = a.j(a.b(lowerCase2, a.b(lowerCase, 1)), lowerCase, "-", lowerCase2); + return false; + } + + public final boolean s(Context context) { + if (this.e == null) { + this.e = Boolean.FALSE; + try { + PackageManager packageManager = context.getPackageManager(); + if (packageManager != null) { + packageManager.getPackageInfo("com.google.android.gms", 128); + this.e = Boolean.TRUE; + } + } catch (PackageManager.NameNotFoundException unused) { + } + } + return this.e.booleanValue(); + } + + public final long t() { + o(); + return this.c; + } + + public final String u() { + o(); + return this.d; + } + + @WorkerThread + public final long v() { + b(); + return this.h; + } + + @WorkerThread + public final boolean w() { + b(); + Objects.requireNonNull((c) this.a.o); + long currentTimeMillis = System.currentTimeMillis(); + if (currentTimeMillis - this.h > 86400000) { + this.g = null; + } + Boolean bool = this.g; + if (bool != null) { + return bool.booleanValue(); + } + if (ContextCompat.checkSelfPermission(this.a.f1555b, "android.permission.GET_ACCOUNTS") != 0) { + g().j.a("Permission error checking for dasher/unicorn accounts"); + this.h = currentTimeMillis; + this.g = Boolean.FALSE; + return false; + } + if (this.f == null) { + this.f = AccountManager.get(this.a.f1555b); + } + try { + Account[] result = this.f.getAccountsByTypeAndFeatures("com.google", new String[]{"service_HOSTED"}, null, null).getResult(); + if (result == null || result.length <= 0) { + Account[] result2 = this.f.getAccountsByTypeAndFeatures("com.google", new String[]{"service_uca"}, null, null).getResult(); + if (result2 != null && result2.length > 0) { + this.g = Boolean.TRUE; + this.h = currentTimeMillis; + return true; + } + this.h = currentTimeMillis; + this.g = Boolean.FALSE; + return false; + } + this.g = Boolean.TRUE; + this.h = currentTimeMillis; + return true; + } catch (AuthenticatorException | OperationCanceledException | IOException e) { + g().g.b("Exception checking account types", e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j0.java b/app/src/main/java/b/i/a/f/i/b/j0.java new file mode 100644 index 0000000000..47815203fc --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class j0 implements h3 { + public static final h3 a = new j0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).f()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j1.java b/app/src/main/java/b/i/a/f/i/b/j1.java new file mode 100644 index 0000000000..d7cb215217 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.e9; +import b.i.a.f.h.l.f9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class j1 implements h3 { + public static final h3 a = new j1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((e9) f9.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j2.java b/app/src/main/java/b/i/a/f/i/b/j2.java new file mode 100644 index 0000000000..78f6be33be --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.mb; +import b.i.a.f.h.l.nb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class j2 implements h3 { + public static final h3 a = new j2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((mb) nb.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j3.java b/app/src/main/java/b/i/a/f/i/b/j3.java new file mode 100644 index 0000000000..84d32e3104 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j3.java @@ -0,0 +1,75 @@ +package b.i.a.f.i.b; + +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class j3 { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public final String f1524b; + public final h3 c; + public final V d; + public final V e; + public final Object f = new Object(); + @GuardedBy("cachingLock") + public volatile V g = null; + + /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.lang.Object */ + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: java.lang.Object */ + /* JADX WARN: Multi-variable type inference failed */ + public j3(String str, Object obj, Object obj2, h3 h3Var, f3 f3Var) { + this.f1524b = str; + this.d = obj; + this.e = obj2; + this.c = h3Var; + } + + public final V a(@Nullable V v) { + synchronized (this.f) { + } + if (v != null) { + return v; + } + if (f.d == null) { + return this.d; + } + synchronized (a) { + if (ga.a()) { + return this.g == null ? this.d : this.g; + } + } + try { + for (j3 j3Var : p.a) { + if (!ga.a()) { + V v2 = null; + try { + h3 h3Var = j3Var.c; + if (h3Var != null) { + v2 = (V) h3Var.a(); + } + } catch (IllegalStateException unused) { + } + synchronized (a) { + j3Var.g = v2; + } + } else { + throw new IllegalStateException("Refreshing flag cache must be done on a worker thread."); + } + } + } catch (SecurityException unused2) { + } + h3 h3Var2 = this.c; + if (h3Var2 == null) { + return this.d; + } + try { + return h3Var2.a(); + } catch (SecurityException unused3) { + return this.d; + } catch (IllegalStateException unused4) { + return this.d; + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j4.java b/app/src/main/java/b/i/a/f/i/b/j4.java new file mode 100644 index 0000000000..652d8111d9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j4.java @@ -0,0 +1,37 @@ +package b.i.a.f.i.b; + +import android.content.SharedPreferences; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class j4 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1525b; + public String c; + public final /* synthetic */ d4 d; + + public j4(d4 d4Var, String str) { + this.d = d4Var; + d.w(str); + this.a = str; + } + + @WorkerThread + public final String a() { + if (!this.f1525b) { + this.f1525b = true; + this.c = this.d.w().getString(this.a, null); + } + return this.c; + } + + @WorkerThread + public final void b(String str) { + SharedPreferences.Editor edit = this.d.w().edit(); + edit.putString(this.a, str); + edit.apply(); + this.c = str; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j5.java b/app/src/main/java/b/i/a/f/i/b/j5.java new file mode 100644 index 0000000000..0df3c2f34d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j5.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzn; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class j5 implements Runnable { + public final /* synthetic */ zzaq j; + public final /* synthetic */ zzn k; + public final /* synthetic */ z4 l; + + public j5(z4 z4Var, zzaq zzaq, zzn zzn) { + this.l = z4Var; + this.j = zzaq; + this.k = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + zzap zzap; + z4 z4Var = this.l; + zzaq zzaq = this.j; + Objects.requireNonNull(z4Var); + boolean z2 = false; + if (!(!"_cmp".equals(zzaq.j) || (zzap = zzaq.k) == null || zzap.j.size() == 0)) { + String string = zzaq.k.j.getString("_cis"); + if ("referrer broadcast".equals(string) || "referrer API".equals(string)) { + z2 = true; + } + } + if (z2) { + z4Var.a.g().l.b("Event has been filtered ", zzaq.toString()); + zzaq = new zzaq("_cmpx", zzaq.k, zzaq.l, zzaq.m); + } + this.l.a.R(); + this.l.a.l(zzaq, this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j6.java b/app/src/main/java/b/i/a/f/i/b/j6.java new file mode 100644 index 0000000000..2a3ef86355 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j6.java @@ -0,0 +1,22 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class j6 implements Runnable { + public final /* synthetic */ String j; + public final /* synthetic */ String k; + public final /* synthetic */ Object l; + public final /* synthetic */ long m; + public final /* synthetic */ c6 n; + + public j6(c6 c6Var, String str, String str2, Object obj, long j) { + this.n = c6Var; + this.j = str; + this.k = str2; + this.l = obj; + this.m = j; + } + + @Override // java.lang.Runnable + public final void run() { + this.n.K(this.j, this.k, this.l, this.m); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j7.java b/app/src/main/java/b/i/a/f/i/b/j7.java new file mode 100644 index 0000000000..005e57204d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j7.java @@ -0,0 +1,22 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class j7 implements Runnable { + public final /* synthetic */ i7 j; + public final /* synthetic */ i7 k; + public final /* synthetic */ long l; + public final /* synthetic */ boolean m; + public final /* synthetic */ h7 n; + + public j7(h7 h7Var, i7 i7Var, i7 i7Var2, long j, boolean z2) { + this.n = h7Var; + this.j = i7Var; + this.k = i7Var2; + this.l = j; + this.m = z2; + } + + @Override // java.lang.Runnable + public final void run() { + this.n.B(this.j, this.k, this.l, this.m, null); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j8.java b/app/src/main/java/b/i/a/f/i/b/j8.java new file mode 100644 index 0000000000..566fc09f95 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j8.java @@ -0,0 +1,30 @@ +package b.i.a.f.i.b; + +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class j8 implements Runnable { + public final /* synthetic */ i3 j; + public final /* synthetic */ k8 k; + + public j8(k8 k8Var, i3 i3Var) { + this.k = k8Var; + this.j = i3Var; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.k) { + this.k.j = false; + if (!this.k.l.B()) { + this.k.l.g().n.a("Connected to service"); + q7 q7Var = this.k.l; + i3 i3Var = this.j; + q7Var.b(); + Objects.requireNonNull(i3Var, "null reference"); + q7Var.d = i3Var; + q7Var.F(); + q7Var.H(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/j9.java b/app/src/main/java/b/i/a/f/i/b/j9.java new file mode 100644 index 0000000000..1a5fb4ef38 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/j9.java @@ -0,0 +1,50 @@ +package b.i.a.f.i.b; + +import b.i.a.f.e.o.c; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class j9 implements Runnable { + public final /* synthetic */ r9 j; + public final /* synthetic */ k9 k; + + public j9(k9 k9Var, r9 r9Var) { + this.k = k9Var; + this.j = r9Var; + } + + @Override // java.lang.Runnable + public final void run() { + k9 k9Var = this.k; + k9Var.k.f().b(); + g gVar = new g(k9Var); + gVar.o(); + k9Var.d = gVar; + k9Var.k.h.c = k9Var.f1527b; + q8 q8Var = new q8(k9Var); + q8Var.o(); + k9Var.j = q8Var; + ba baVar = new ba(k9Var); + baVar.o(); + k9Var.g = baVar; + g7 g7Var = new g7(k9Var); + g7Var.o(); + k9Var.i = g7Var; + h9 h9Var = new h9(k9Var); + h9Var.o(); + k9Var.f = h9Var; + k9Var.e = new b4(k9Var); + if (k9Var.p != k9Var.q) { + k9Var.k.g().f.c("Not all upload components initialized", Integer.valueOf(k9Var.p), Integer.valueOf(k9Var.q)); + } + k9Var.l = true; + k9 k9Var2 = this.k; + k9Var2.k.f().b(); + k9Var2.K().i0(); + if (k9Var2.k.o().f.a() == 0) { + h4 h4Var = k9Var2.k.o().f; + Objects.requireNonNull((c) k9Var2.k.o); + h4Var.b(System.currentTimeMillis()); + } + k9Var2.w(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k.java b/app/src/main/java/b/i/a/f/i/b/k.java new file mode 100644 index 0000000000..6db50c58fb --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k.java @@ -0,0 +1,25 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class k implements Runnable { + public final /* synthetic */ t5 j; + public final /* synthetic */ i k; + + public k(i iVar, t5 t5Var) { + this.k = iVar; + this.j = t5Var; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.k(); + if (ga.a()) { + this.j.f().v(this); + return; + } + boolean z2 = this.k.d != 0; + this.k.d = 0; + if (z2) { + this.k.a(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k0.java b/app/src/main/java/b/i/a/f/i/b/k0.java new file mode 100644 index 0000000000..07278b481a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class k0 implements h3 { + public static final h3 a = new k0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).u()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k1.java b/app/src/main/java/b/i/a/f/i/b/k1.java new file mode 100644 index 0000000000..c9295d8bb3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.e9; +import b.i.a.f.h.l.f9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class k1 implements h3 { + public static final h3 a = new k1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((e9) f9.j.a()).c()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k2.java b/app/src/main/java/b/i/a/f/i/b/k2.java new file mode 100644 index 0000000000..c567565a3f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.o8; +import b.i.a.f.h.l.r8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class k2 implements h3 { + public static final h3 a = new k2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((r8) o8.j.a()).c()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k3.java b/app/src/main/java/b/i/a/f/i/b/k3.java new file mode 100644 index 0000000000..3604ce84ad --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k3.java @@ -0,0 +1,163 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.l.a; +import b.i.a.f.h.l.v; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +import java.util.ArrayList; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class k3 extends a implements i3 { + public k3(IBinder iBinder) { + super(iBinder, "com.google.android.gms.measurement.internal.IMeasurementService"); + } + + @Override // b.i.a.f.i.b.i3 + public final String A(zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, zzn); + Parcel g = g(11, e); + String readString = g.readString(); + g.recycle(); + return readString; + } + + @Override // b.i.a.f.i.b.i3 + public final void H(long j, String str, String str2, String str3) throws RemoteException { + Parcel e = e(); + e.writeLong(j); + e.writeString(str); + e.writeString(str2); + e.writeString(str3); + h(10, e); + } + + @Override // b.i.a.f.i.b.i3 + public final void I(zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, zzn); + h(18, e); + } + + @Override // b.i.a.f.i.b.i3 + public final List J(String str, String str2, String str3) throws RemoteException { + Parcel e = e(); + e.writeString(str); + e.writeString(str2); + e.writeString(str3); + Parcel g = g(17, e); + ArrayList createTypedArrayList = g.createTypedArrayList(zzz.CREATOR); + g.recycle(); + return createTypedArrayList; + } + + @Override // b.i.a.f.i.b.i3 + public final List K(String str, String str2, zzn zzn) throws RemoteException { + Parcel e = e(); + e.writeString(str); + e.writeString(str2); + v.c(e, zzn); + Parcel g = g(16, e); + ArrayList createTypedArrayList = g.createTypedArrayList(zzz.CREATOR); + g.recycle(); + return createTypedArrayList; + } + + @Override // b.i.a.f.i.b.i3 + public final List S(String str, String str2, boolean z2, zzn zzn) throws RemoteException { + Parcel e = e(); + e.writeString(str); + e.writeString(str2); + ClassLoader classLoader = v.a; + e.writeInt(z2 ? 1 : 0); + v.c(e, zzn); + Parcel g = g(14, e); + ArrayList createTypedArrayList = g.createTypedArrayList(zzku.CREATOR); + g.recycle(); + return createTypedArrayList; + } + + @Override // b.i.a.f.i.b.i3 + public final void U(zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, zzn); + h(4, e); + } + + @Override // b.i.a.f.i.b.i3 + public final void f0(zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, zzn); + h(6, e); + } + + @Override // b.i.a.f.i.b.i3 + public final byte[] i(zzaq zzaq, String str) throws RemoteException { + Parcel e = e(); + v.c(e, zzaq); + e.writeString(str); + Parcel g = g(9, e); + byte[] createByteArray = g.createByteArray(); + g.recycle(); + return createByteArray; + } + + @Override // b.i.a.f.i.b.i3 + public final void l(zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, zzn); + h(20, e); + } + + @Override // b.i.a.f.i.b.i3 + public final void o0(zzaq zzaq, zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, zzaq); + v.c(e, zzn); + h(1, e); + } + + @Override // b.i.a.f.i.b.i3 + public final void p0(Bundle bundle, zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, bundle); + v.c(e, zzn); + h(19, e); + } + + @Override // b.i.a.f.i.b.i3 + public final void t0(zzku zzku, zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, zzku); + v.c(e, zzn); + h(2, e); + } + + @Override // b.i.a.f.i.b.i3 + public final List u(String str, String str2, String str3, boolean z2) throws RemoteException { + Parcel e = e(); + e.writeString(str); + e.writeString(str2); + e.writeString(str3); + ClassLoader classLoader = v.a; + e.writeInt(z2 ? 1 : 0); + Parcel g = g(15, e); + ArrayList createTypedArrayList = g.createTypedArrayList(zzku.CREATOR); + g.recycle(); + return createTypedArrayList; + } + + @Override // b.i.a.f.i.b.i3 + public final void u0(zzz zzz, zzn zzn) throws RemoteException { + Parcel e = e(); + v.c(e, zzz); + v.c(e, zzn); + h(12, e); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k4.java b/app/src/main/java/b/i/a/f/i/b/k4.java new file mode 100644 index 0000000000..20762f0835 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k4.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import android.content.SharedPreferences; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +import b.i.a.f.e.o.c; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class k4 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1526b; + public final String c; + public final long d; + public final /* synthetic */ d4 e; + + public k4(d4 d4Var, String str, long j, g4 g4Var) { + this.e = d4Var; + d.w(str); + d.l(j > 0); + this.a = str.concat(":start"); + this.f1526b = str.concat(":count"); + this.c = str.concat(":value"); + this.d = j; + } + + @WorkerThread + public final void a() { + this.e.b(); + Objects.requireNonNull((c) this.e.a.o); + long currentTimeMillis = System.currentTimeMillis(); + SharedPreferences.Editor edit = this.e.w().edit(); + edit.remove(this.f1526b); + edit.remove(this.c); + edit.putLong(this.a, currentTimeMillis); + edit.apply(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k5.java b/app/src/main/java/b/i/a/f/i/b/k5.java new file mode 100644 index 0000000000..c54617287a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k5.java @@ -0,0 +1,34 @@ +package b.i.a.f.i.b; + +import b.c.a.a0.d; +import b.i.a.f.h.l.t8; +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class k5 implements Runnable { + public final /* synthetic */ zzn j; + public final /* synthetic */ z4 k; + + public k5(z4 z4Var, zzn zzn) { + this.k = z4Var; + this.j = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.a.R(); + k9 k9Var = this.k.a; + zzn zzn = this.j; + if (t8.b() && k9Var.k.h.o(p.J0)) { + k9Var.f().b(); + k9Var.P(); + d.w(zzn.j); + d b2 = d.b(zzn.F); + d a = k9Var.a(zzn.j); + k9Var.g().n.c("Setting consent, package, consent", zzn.j, b2); + k9Var.s(zzn.j, b2); + if (b2.f(a)) { + k9Var.p(zzn); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k6.java b/app/src/main/java/b/i/a/f/i/b/k6.java new file mode 100644 index 0000000000..cce2435d45 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k6.java @@ -0,0 +1,32 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class k6 implements Runnable { + public final /* synthetic */ String j; + public final /* synthetic */ String k; + public final /* synthetic */ long l; + public final /* synthetic */ Bundle m; + public final /* synthetic */ boolean n; + public final /* synthetic */ boolean o; + public final /* synthetic */ boolean p; + public final /* synthetic */ String q; + public final /* synthetic */ c6 r; + + public k6(c6 c6Var, String str, String str2, long j, Bundle bundle, boolean z2, boolean z3, boolean z4, String str3) { + this.r = c6Var; + this.j = str; + this.k = str2; + this.l = j; + this.m = bundle; + this.n = z2; + this.o = z3; + this.p = z4; + this.q = str3; + } + + @Override // java.lang.Runnable + public final void run() { + this.r.F(this.j, this.k, this.l, this.m, this.n, this.o, this.p, this.q); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k7.java b/app/src/main/java/b/i/a/f/i/b/k7.java new file mode 100644 index 0000000000..359d2bb688 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k7.java @@ -0,0 +1,35 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class k7 implements Runnable { + public final /* synthetic */ Bundle j; + public final /* synthetic */ i7 k; + public final /* synthetic */ i7 l; + public final /* synthetic */ long m; + public final /* synthetic */ h7 n; + + public k7(h7 h7Var, Bundle bundle, i7 i7Var, i7 i7Var2, long j) { + this.n = h7Var; + this.j = bundle; + this.k = i7Var; + this.l = i7Var2; + this.m = j; + } + + @Override // java.lang.Runnable + public final void run() { + h7 h7Var = this.n; + Bundle bundle = this.j; + i7 i7Var = this.k; + i7 i7Var2 = this.l; + long j = this.m; + Objects.requireNonNull(h7Var); + if (bundle != null) { + bundle.remove("screen_name"); + bundle.remove("screen_class"); + } + h7Var.B(i7Var, i7Var2, j, true, h7Var.e().z(null, "screen_view", bundle, null, true)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k8.java b/app/src/main/java/b/i/a/f/i/b/k8.java new file mode 100644 index 0000000000..644d21abc3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k8.java @@ -0,0 +1,110 @@ +package b.i.a.f.i.b; + +import android.content.ComponentName; +import android.content.ServiceConnection; +import android.os.Bundle; +import android.os.DeadObjectException; +import android.os.IBinder; +import android.os.IInterface; +import android.os.RemoteException; +import androidx.annotation.MainThread; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.f.e.k.b; +import b.i.a.f.e.n.a; +import com.google.android.gms.common.ConnectionResult; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class k8 implements ServiceConnection, b.a, b.AbstractC0105b { + public volatile boolean j; + public volatile r3 k; + public final /* synthetic */ q7 l; + + public k8(q7 q7Var) { + this.l = q7Var; + } + + @Override // b.i.a.f.e.k.b.a + @MainThread + public final void e(int i) { + d.u("MeasurementServiceConnection.onConnectionSuspended"); + this.l.g().m.a("Service connection suspended"); + this.l.f().v(new o8(this)); + } + + @Override // b.i.a.f.e.k.b.AbstractC0105b + @MainThread + public final void g(@NonNull ConnectionResult connectionResult) { + d.u("MeasurementServiceConnection.onConnectionFailed"); + u4 u4Var = this.l.a; + q3 q3Var = u4Var.j; + q3 q3Var2 = (q3Var == null || !q3Var.n()) ? null : u4Var.j; + if (q3Var2 != null) { + q3Var2.i.b("Service connection failed", connectionResult); + } + synchronized (this) { + this.j = false; + this.k = null; + } + this.l.f().v(new n8(this)); + } + + @Override // b.i.a.f.e.k.b.a + @MainThread + public final void h(@Nullable Bundle bundle) { + d.u("MeasurementServiceConnection.onConnected"); + synchronized (this) { + try { + this.l.f().v(new l8(this, this.k.w())); + } catch (DeadObjectException | IllegalStateException unused) { + this.k = null; + this.j = false; + } + } + } + + @Override // android.content.ServiceConnection + @MainThread + public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { + d.u("MeasurementServiceConnection.onServiceConnected"); + synchronized (this) { + if (iBinder == null) { + this.j = false; + this.l.g().f.a("Service connected with null binder"); + return; + } + i3 i3Var = null; + try { + String interfaceDescriptor = iBinder.getInterfaceDescriptor(); + if ("com.google.android.gms.measurement.internal.IMeasurementService".equals(interfaceDescriptor)) { + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.measurement.internal.IMeasurementService"); + i3Var = queryLocalInterface instanceof i3 ? (i3) queryLocalInterface : new k3(iBinder); + this.l.g().n.a("Bound to IMeasurementService interface"); + } else { + this.l.g().f.b("Got binder with a wrong descriptor", interfaceDescriptor); + } + } catch (RemoteException unused) { + this.l.g().f.a("Service connect failed to get IMeasurementService"); + } + if (i3Var == null) { + this.j = false; + try { + a b2 = a.b(); + q7 q7Var = this.l; + b2.c(q7Var.a.f1555b, q7Var.c); + } catch (IllegalArgumentException unused2) { + } + } else { + this.l.f().v(new j8(this, i3Var)); + } + } + } + + @Override // android.content.ServiceConnection + @MainThread + public final void onServiceDisconnected(ComponentName componentName) { + d.u("MeasurementServiceConnection.onServiceDisconnected"); + this.l.g().m.a("Service disconnected"); + this.l.f().v(new m8(this, componentName)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/k9.java b/app/src/main/java/b/i/a/f/i/b/k9.java new file mode 100644 index 0000000000..dc49b5c440 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/k9.java @@ -0,0 +1,3724 @@ +package b.i.a.f.i.b; + +import android.app.job.JobInfo; +import android.app.job.JobScheduler; +import android.content.ComponentName; +import android.content.ContentValues; +import android.content.Context; +import android.content.IntentFilter; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.net.Uri; +import android.os.Build; +import android.os.Bundle; +import android.os.PersistableBundle; +import android.os.SystemClock; +import android.provider.Settings; +import android.text.TextUtils; +import android.util.Log; +import android.util.Pair; +import androidx.annotation.NonNull; +import androidx.annotation.WorkerThread; +import androidx.collection.ArrayMap; +import androidx.exifinterface.media.ExifInterface; +import androidx.recyclerview.widget.RecyclerView; +import b.c.a.a0.d; +import b.i.a.f.e.o.c; +import b.i.a.f.e.p.b; +import b.i.a.f.h.l.a1; +import b.i.a.f.h.l.a4; +import b.i.a.f.h.l.c1; +import b.i.a.f.h.l.d1; +import b.i.a.f.h.l.da; +import b.i.a.f.h.l.e1; +import b.i.a.f.h.l.ea; +import b.i.a.f.h.l.hb; +import b.i.a.f.h.l.i1; +import b.i.a.f.h.l.m9; +import b.i.a.f.h.l.o8; +import b.i.a.f.h.l.p9; +import b.i.a.f.h.l.t8; +import b.i.a.f.h.l.u0; +import b.i.a.f.h.l.u4; +import b.i.a.f.h.l.x7; +import com.adjust.sdk.AdjustConfig; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +import com.google.android.material.shadow.ShadowDrawableWrapper; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.RandomAccessFile; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.math.BigInteger; +import java.net.MalformedURLException; +import java.net.URL; +import java.nio.ByteBuffer; +import java.nio.channels.FileChannel; +import java.nio.channels.FileLock; +import java.nio.channels.OverlappingFileLockException; +import java.security.SecureRandom; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public class k9 implements t5 { + public static volatile k9 a; + public final v9 A = new n9(this); + + /* renamed from: b reason: collision with root package name */ + public p4 f1527b; + public x3 c; + public g d; + public b4 e; + public h9 f; + public ba g; + public final q9 h; + public g7 i; + public q8 j; + public final u4 k; + public boolean l = false; + public boolean m; + public long n; + public List o; + public int p; + public int q; + public boolean r; + + /* renamed from: s reason: collision with root package name */ + public boolean f1528s; + public boolean t; + public FileLock u; + public FileChannel v; + public List w; + + /* renamed from: x reason: collision with root package name */ + public List f1529x; + + /* renamed from: y reason: collision with root package name */ + public long f1530y; + + /* renamed from: z reason: collision with root package name */ + public final Map f1531z; + + /* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ + public class a { + public e1 a; + + /* renamed from: b reason: collision with root package name */ + public List f1532b; + public List c; + public long d; + + public a(k9 k9Var, j9 j9Var) { + } + + public final void a(e1 e1Var) { + this.a = e1Var; + } + + public final boolean b(long j, a1 a1Var) { + if (this.c == null) { + this.c = new ArrayList(); + } + if (this.f1532b == null) { + this.f1532b = new ArrayList(); + } + if (this.c.size() > 0 && ((this.c.get(0).H() / 1000) / 60) / 60 != ((a1Var.H() / 1000) / 60) / 60) { + return false; + } + long g = this.d + ((long) a1Var.g()); + if (g >= ((long) Math.max(0, p.i.a(null).intValue()))) { + return false; + } + this.d = g; + this.c.add(a1Var); + this.f1532b.add(Long.valueOf(j)); + return this.c.size() < Math.max(1, p.j.a(null).intValue()); + } + } + + public k9(r9 r9Var) { + u4 b2 = u4.b(r9Var.a, null, null); + this.k = b2; + this.f1530y = -1; + q9 q9Var = new q9(this); + q9Var.o(); + this.h = q9Var; + x3 x3Var = new x3(this); + x3Var.o(); + this.c = x3Var; + p4 p4Var = new p4(this); + p4Var.o(); + this.f1527b = p4Var; + this.f1531z = new HashMap(); + b2.f().v(new j9(this, r9Var)); + } + + public static void C(i9 i9Var) { + if (i9Var == null) { + throw new IllegalStateException("Upload Component not created"); + } else if (!i9Var.c) { + String valueOf = String.valueOf(i9Var.getClass()); + throw new IllegalStateException(b.d.b.a.a.i(valueOf.length() + 27, "Component not initialized: ", valueOf)); + } + } + + public static k9 b(Context context) { + Objects.requireNonNull(context, "null reference"); + Objects.requireNonNull(context.getApplicationContext(), "null reference"); + if (a == null) { + synchronized (k9.class) { + if (a == null) { + a = new k9(new r9(context)); + } + } + } + return a; + } + + public static void d(a1.a aVar, int i, String str) { + List v = aVar.v(); + for (int i2 = 0; i2 < v.size(); i2++) { + if ("_err".equals(v.get(i2).B())) { + return; + } + } + c1.a Q = c1.Q(); + Q.s("_err"); + Q.r(Long.valueOf((long) i).longValue()); + c1 c1Var = (c1) ((u4) Q.p()); + c1.a Q2 = c1.Q(); + Q2.s("_ev"); + Q2.t(str); + c1 c1Var2 = (c1) ((u4) Q2.p()); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + a1.A((a1) aVar.k, c1Var); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + a1.A((a1) aVar.k, c1Var2); + } + + public static void e(a1.a aVar, @NonNull String str) { + List v = aVar.v(); + for (int i = 0; i < v.size(); i++) { + if (str.equals(v.get(i).B())) { + aVar.x(i); + return; + } + } + } + + public final void A(a1.a aVar, a1.a aVar2) { + d.l("_e".equals(aVar.y())); + N(); + c1 w = q9.w((a1) ((u4) aVar.p()), "_et"); + if (w.I() && w.J() > 0) { + long J = w.J(); + N(); + c1 w2 = q9.w((a1) ((u4) aVar2.p()), "_et"); + if (w2 != null && w2.J() > 0) { + J += w2.J(); + } + N(); + q9.E(aVar2, "_et", Long.valueOf(J)); + N(); + q9.E(aVar, "_fr", 1L); + } + } + + @WorkerThread + public final void B(zzaq zzaq, zzn zzn) { + if (ea.b() && this.k.h.o(p.A0)) { + u3 b2 = u3.b(zzaq); + this.k.t().H(b2.d, K().h0(zzn.j)); + this.k.t().Q(b2, this.k.h.m(zzn.j)); + zzaq = b2.a(); + } + if (this.k.h.o(p.f1541e0) && "_cmp".equals(zzaq.j) && "referrer API v2".equals(zzaq.k.j.getString("_cis"))) { + String string = zzaq.k.j.getString("gclid"); + if (!TextUtils.isEmpty(string)) { + o(new zzku("_lgclid", zzaq.m, string, "auto"), zzn); + } + } + l(zzaq, zzn); + } + + @WorkerThread + public final void D(zzku zzku, zzn zzn) { + U(); + P(); + if (L(zzn)) { + if (!zzn.q) { + G(zzn); + } else if (!"_npa".equals(zzku.k) || zzn.B == null) { + this.k.g().m.b("Removing user property", this.k.u().y(zzku.k)); + K().b0(); + try { + G(zzn); + K().V(zzn.j, zzku.k); + K().s(); + this.k.g().m.b("User property removed", this.k.u().y(zzku.k)); + } finally { + K().e0(); + } + } else { + this.k.g().m.a("Falling back to manifest metadata value for ad personalization"); + Objects.requireNonNull((c) this.k.o); + o(new zzku("_npa", System.currentTimeMillis(), Long.valueOf(zzn.B.booleanValue() ? 1 : 0), "auto"), zzn); + } + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v16, resolved type: android.content.pm.PackageInfo */ + /* JADX DEBUG: Multi-variable search result rejected for r14v16, resolved type: android.content.pm.ApplicationInfo */ + /* JADX DEBUG: Multi-variable search result rejected for r14v17, resolved type: android.content.pm.ApplicationInfo */ + /* JADX DEBUG: Multi-variable search result rejected for r0v34, resolved type: android.content.pm.PackageInfo */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:123:0x03b5 */ + /* JADX WARNING: Removed duplicated region for block: B:149:0x0488 */ + /* JADX WARNING: Removed duplicated region for block: B:45:0x0125 A[Catch:{ all -> 0x04b4 }] */ + /* JADX WARNING: Removed duplicated region for block: B:56:0x01d8 */ + /* JADX WARNING: Removed duplicated region for block: B:76:0x023d */ + /* JADX WARNING: Removed duplicated region for block: B:77:0x024a */ + /* JADX WARNING: Removed duplicated region for block: B:82:0x025e */ + @WorkerThread + public final void E(zzn zzn) { + a4 a4Var; + a4 T; + String str; + long j; + long j2; + String str2; + PackageInfo packageInfo; + String str3; + long j3; + ApplicationInfo applicationInfo; + boolean z2; + U(); + P(); + Objects.requireNonNull(zzn, "null reference"); + d.w(zzn.j); + if (L(zzn)) { + a4 T2 = K().T(zzn.j); + if (T2 != null && TextUtils.isEmpty(T2.v()) && !TextUtils.isEmpty(zzn.k)) { + T2.F(0); + K().I(T2); + p4 H = H(); + String str4 = zzn.j; + H.b(); + H.g.remove(str4); + } + if (!zzn.q) { + G(zzn); + return; + } + long j4 = zzn.v; + if (j4 == 0) { + Objects.requireNonNull((c) this.k.o); + j4 = System.currentTimeMillis(); + } + j y2 = this.k.y(); + y2.b(); + y2.g = null; + y2.h = 0; + int i = zzn.w; + if (!(i == 0 || i == 1)) { + this.k.g().i.c("Incorrect app type, assuming installed app. appId, appType", q3.s(zzn.j), Integer.valueOf(i)); + i = 0; + } + K().b0(); + try { + u9 Y = K().Y(zzn.j, "_npa"); + if (Y != null) { + if (!"auto".equals(Y.f1561b)) { + a4Var = null; + T = K().T(zzn.j); + if (T != null) { + this.k.t(); + if (t9.d0(zzn.k, T.v(), zzn.A, T.y())) { + this.k.g().i.b("New GMP App Id passed in. Removing cached database data. appId", q3.s(T.o())); + g K = K(); + String o = T.o(); + K.n(); + K.b(); + d.w(o); + try { + SQLiteDatabase t = K.t(); + String[] strArr = {o}; + int delete = t.delete("events", "app_id=?", strArr) + 0 + t.delete("user_attributes", "app_id=?", strArr) + t.delete("conditional_properties", "app_id=?", strArr) + t.delete("apps", "app_id=?", strArr) + t.delete("raw_events", "app_id=?", strArr) + t.delete("raw_events_metadata", "app_id=?", strArr) + t.delete("event_filters", "app_id=?", strArr) + t.delete("property_filters", "app_id=?", strArr) + t.delete("audience_filter_values", "app_id=?", strArr) + t.delete("consent_settings", "app_id=?", strArr); + if (delete > 0) { + K.g().n.c("Deleted application data. app, records", o, Integer.valueOf(delete)); + } + } catch (SQLiteException e) { + K.g().f.c("Error deleting application data. appId, error", q3.s(o), e); + } + T = a4Var; + } + } + if (T != null) { + if (((T.N() == -2147483648L || T.N() == zzn.f2971s) ? false : true) || (T.N() == -2147483648L && T.M() != null && !T.M().equals(zzn.l))) { + Bundle bundle = new Bundle(); + bundle.putString("_pv", T.M()); + l(new zzaq("_au", new zzap(bundle), "auto", j4), zzn); + G(zzn); + if ((i == 0 ? K().z(zzn.j, "_f") : i == 1 ? K().z(zzn.j, "_v") : a4Var) == null) { + long j5 = ((j4 / 3600000) + 1) * 3600000; + if (i == 0) { + o(new zzku("_fot", j4, Long.valueOf(j5), "auto"), zzn); + U(); + this.k.f1557x.a(zzn.j); + U(); + P(); + Bundle bundle2 = new Bundle(); + bundle2.putLong("_c", 1); + bundle2.putLong("_r", 1); + bundle2.putLong("_uwa", 0); + bundle2.putLong("_pfo", 0); + bundle2.putLong("_sys", 0); + bundle2.putLong("_sysu", 0); + if (this.k.h.u(zzn.j, p.T)) { + str2 = "_et"; + j2 = 1; + bundle2.putLong(str2, 1); + } else { + str2 = "_et"; + j2 = 1; + } + if (zzn.f2974z) { + bundle2.putLong("_dac", j2); + } + g K2 = K(); + String str5 = zzn.j; + d.w(str5); + K2.b(); + K2.n(); + long g02 = K2.g0(str5, "first_open_count"); + if (this.k.f1555b.getPackageManager() == null) { + this.k.g().f.b("PackageManager is null, first open report might be inaccurate. appId", q3.s(zzn.j)); + str3 = str2; + j3 = g02; + } else { + try { + packageInfo = b.a(this.k.f1555b).b(zzn.j, 0); + } catch (PackageManager.NameNotFoundException e2) { + this.k.g().f.c("Package info is null, first open report might be inaccurate. appId", q3.s(zzn.j), e2); + packageInfo = a4Var; + } + if (packageInfo != 0) { + long j6 = packageInfo.firstInstallTime; + if (j6 != 0) { + str3 = str2; + if (j6 != packageInfo.lastUpdateTime) { + if (!this.k.h.o(p.n0)) { + bundle2.putLong("_uwa", 1); + } else if (g02 == 0) { + bundle2.putLong("_uwa", 1); + } + z2 = false; + } else { + z2 = true; + } + j3 = g02; + o(new zzku("_fi", j4, Long.valueOf(z2 ? 1 : 0), "auto"), zzn); + applicationInfo = b.a(this.k.f1555b).a(zzn.j, 0); + if (applicationInfo != null) { + if ((applicationInfo.flags & 1) != 0) { + bundle2.putLong("_sys", 1); + } + if ((applicationInfo.flags & 128) != 0) { + bundle2.putLong("_sysu", 1); + } + } + } + } + str3 = str2; + j3 = g02; + try { + applicationInfo = b.a(this.k.f1555b).a(zzn.j, 0); + } catch (PackageManager.NameNotFoundException e3) { + this.k.g().f.c("Application info is null, first open report might be inaccurate. appId", q3.s(zzn.j), e3); + applicationInfo = a4Var; + } + if (applicationInfo != null) { + } + } + if (j3 >= 0) { + bundle2.putLong("_pfo", j3); + } + B(new zzaq("_f", new zzap(bundle2), "auto", j4), zzn); + str = str3; + } else { + str = "_et"; + if (i == 1) { + o(new zzku("_fvt", j4, Long.valueOf(j5), "auto"), zzn); + U(); + P(); + Bundle bundle3 = new Bundle(); + bundle3.putLong("_c", 1); + bundle3.putLong("_r", 1); + if (this.k.h.u(zzn.j, p.T)) { + j = 1; + bundle3.putLong(str, 1); + } else { + j = 1; + } + if (zzn.f2974z) { + bundle3.putLong("_dac", j); + } + B(new zzaq("_v", new zzap(bundle3), "auto", j4), zzn); + } + } + if (!this.k.h.u(zzn.j, p.U)) { + Bundle bundle4 = new Bundle(); + bundle4.putLong(str, 1); + if (this.k.h.u(zzn.j, p.T)) { + bundle4.putLong("_fr", 1); + } + B(new zzaq("_e", new zzap(bundle4), "auto", j4), zzn); + } + } else if (zzn.r) { + B(new zzaq("_cd", new zzap(new Bundle()), "auto", j4), zzn); + } + K().s(); + } + } + G(zzn); + if ((i == 0 ? K().z(zzn.j, "_f") : i == 1 ? K().z(zzn.j, "_v") : a4Var) == null) { + } + K().s(); + } + } + Boolean bool = zzn.B; + if (bool != null) { + a4Var = null; + zzku zzku = new zzku("_npa", j4, Long.valueOf(bool.booleanValue() ? 1 : 0), "auto"); + if (Y == null || !Y.e.equals(zzku.m)) { + o(zzku, zzn); + } + } else { + a4Var = null; + if (Y != null) { + D(new zzku("_npa", j4, null, "auto"), zzn); + } + } + T = K().T(zzn.j); + if (T != null) { + } + if (T != null) { + } + G(zzn); + if ((i == 0 ? K().z(zzn.j, "_f") : i == 1 ? K().z(zzn.j, "_v") : a4Var) == null) { + } + K().s(); + } finally { + K().e0(); + } + } + } + + @WorkerThread + public final void F(zzz zzz, zzn zzn) { + Objects.requireNonNull(zzz, "null reference"); + d.w(zzz.j); + Objects.requireNonNull(zzz.l, "null reference"); + d.w(zzz.l.k); + U(); + P(); + if (L(zzn)) { + if (!zzn.q) { + G(zzn); + return; + } + K().b0(); + try { + G(zzn); + zzz Z = K().Z(zzz.j, zzz.l.k); + if (Z != null) { + this.k.g().m.c("Removing conditional user property", zzz.j, this.k.u().y(zzz.l.k)); + K().a0(zzz.j, zzz.l.k); + if (Z.n) { + K().V(zzz.j, zzz.l.k); + } + zzaq zzaq = zzz.t; + if (zzaq != null) { + Bundle bundle = null; + zzap zzap = zzaq.k; + if (zzap != null) { + bundle = zzap.x0(); + } + t9 t = this.k.t(); + String str = zzz.j; + zzaq zzaq2 = zzz.t; + I(t.B(str, zzaq2.j, bundle, Z.k, zzaq2.m, true, x7.b() && this.k.h.o(p.M0)), zzn); + } + } else { + this.k.g().i.c("Conditional user property doesn't exist", q3.s(zzz.j), this.k.u().y(zzz.l.k)); + } + K().s(); + } finally { + K().e0(); + } + } + } + + /* JADX WARNING: Removed duplicated region for block: B:127:0x02bf */ + /* JADX WARNING: Removed duplicated region for block: B:130:0x02d1 */ + /* JADX WARNING: Removed duplicated region for block: B:155:0x0351 */ + /* JADX WARNING: Removed duplicated region for block: B:163:0x0375 */ + /* JADX WARNING: Removed duplicated region for block: B:166:0x0383 */ + /* JADX WARNING: Removed duplicated region for block: B:169:0x0391 */ + /* JADX WARNING: Removed duplicated region for block: B:179:0x03ce */ + /* JADX WARNING: Removed duplicated region for block: B:182:0x03dc */ + /* JADX WARNING: Removed duplicated region for block: B:185:0x03ea */ + /* JADX WARNING: Removed duplicated region for block: B:193:0x0407 */ + @WorkerThread + public final a4 G(zzn zzn) { + boolean z2; + long j; + U(); + P(); + Objects.requireNonNull(zzn, "null reference"); + d.w(zzn.j); + a4 T = K().T(zzn.j); + d dVar = d.a; + d h = (!t8.b() || !this.k.h.o(p.J0)) ? dVar : a(zzn.j).h(d.b(zzn.F)); + String t = (!t8.b() || !this.k.h.o(p.J0) || h.j()) ? this.j.t(zzn.j) : ""; + if (!((p9) m9.j.a()).a() || !this.k.h.o(p.o0)) { + if (t8.b() && this.k.h.o(p.J0)) { + dVar = a(zzn.j).h(d.b(zzn.F)); + } + boolean z3 = true; + if (T == null) { + T = new a4(this.k, zzn.j); + if (!t8.b() || !this.k.h.o(p.J0)) { + T.c(W()); + T.x(t); + } else { + if (dVar.k()) { + T.c(c(dVar)); + } + if (dVar.j()) { + T.x(t); + } + } + } else if ((!t8.b() || !this.k.h.o(p.J0) || dVar.j()) && !t.equals(T.E())) { + T.x(t); + if (!t8.b() || !this.k.h.o(p.J0)) { + T.c(W()); + } else if (dVar.k()) { + T.c(c(dVar)); + } + } else if (!t8.b() || !this.k.h.o(p.J0) || !TextUtils.isEmpty(T.s()) || !dVar.k()) { + z2 = false; + if (!TextUtils.equals(zzn.k, T.v())) { + T.m(zzn.k); + z2 = true; + } + if (!TextUtils.equals(zzn.A, T.y())) { + T.q(zzn.A); + z2 = true; + } + if (da.b() && this.k.h.u(T.o(), p.f1546j0) && !TextUtils.equals(zzn.E, T.B())) { + T.u(zzn.E); + z2 = true; + } + if (!TextUtils.isEmpty(zzn.t) && !zzn.t.equals(T.H())) { + T.A(zzn.t); + z2 = true; + } + long j2 = zzn.n; + if (!(j2 == 0 || j2 == T.P())) { + T.t(zzn.n); + z2 = true; + } + if (!TextUtils.isEmpty(zzn.l) && !zzn.l.equals(T.M())) { + T.D(zzn.l); + z2 = true; + } + if (zzn.f2971s != T.N()) { + T.p(zzn.f2971s); + z2 = true; + } + String str = zzn.m; + if (str != null && !str.equals(T.O())) { + T.G(zzn.m); + z2 = true; + } + if (zzn.o != T.Q()) { + T.w(zzn.o); + z2 = true; + } + if (zzn.q != T.T()) { + T.e(zzn.q); + z2 = true; + } + if (!TextUtils.isEmpty(zzn.p)) { + String str2 = zzn.p; + T.a.f().b(); + if (!str2.equals(T.D)) { + T.J(zzn.p); + z2 = true; + } + } + if (!this.k.h.o(p.y0) && zzn.u != T.g()) { + T.R(zzn.u); + z2 = true; + } + if (zzn.f2972x != T.h()) { + T.n(zzn.f2972x); + z2 = true; + } + if (zzn.f2973y != T.i()) { + T.r(zzn.f2973y); + z2 = true; + } + if (zzn.B != T.j()) { + T.b(zzn.B); + z2 = true; + } + j = zzn.C; + if (j != 0 || j == T.S()) { + z3 = z2; + } else { + T.z(zzn.C); + } + if (z3) { + K().I(T); + } + return T; + } else { + T.c(c(dVar)); + } + z2 = true; + if (!TextUtils.equals(zzn.k, T.v())) { + } + if (!TextUtils.equals(zzn.A, T.y())) { + } + T.u(zzn.E); + z2 = true; + T.A(zzn.t); + z2 = true; + long j2 = zzn.n; + T.t(zzn.n); + z2 = true; + T.D(zzn.l); + z2 = true; + if (zzn.f2971s != T.N()) { + } + String str = zzn.m; + T.G(zzn.m); + z2 = true; + if (zzn.o != T.Q()) { + } + if (zzn.q != T.T()) { + } + if (!TextUtils.isEmpty(zzn.p)) { + } + T.R(zzn.u); + z2 = true; + if (zzn.f2972x != T.h()) { + } + if (zzn.f2973y != T.i()) { + } + if (zzn.B != T.j()) { + } + j = zzn.C; + if (j != 0) { + } + z3 = z2; + if (z3) { + } + return T; + } + if (T == null) { + T = new a4(this.k, zzn.j); + if (!t8.b() || !this.k.h.o(p.J0)) { + T.c(W()); + T.x(t); + } else { + if (h.k()) { + T.c(c(h)); + } + if (h.j()) { + T.x(t); + } + } + } else if ((!t8.b() || !this.k.h.o(p.J0) || h.j()) && !t.equals(T.E())) { + T.x(t); + if (!t8.b() || !this.k.h.o(p.J0)) { + T.c(W()); + } else { + T.c(c(h)); + } + } else if (t8.b() && this.k.h.o(p.J0) && TextUtils.isEmpty(T.s()) && h.k()) { + T.c(c(h)); + } + T.m(zzn.k); + T.q(zzn.A); + if (da.b() && this.k.h.u(T.o(), p.f1546j0)) { + T.u(zzn.E); + } + if (!TextUtils.isEmpty(zzn.t)) { + T.A(zzn.t); + } + long j3 = zzn.n; + if (j3 != 0) { + T.t(j3); + } + if (!TextUtils.isEmpty(zzn.l)) { + T.D(zzn.l); + } + T.p(zzn.f2971s); + String str3 = zzn.m; + if (str3 != null) { + T.G(str3); + } + T.w(zzn.o); + T.e(zzn.q); + if (!TextUtils.isEmpty(zzn.p)) { + T.J(zzn.p); + } + if (!this.k.h.o(p.y0)) { + T.R(zzn.u); + } + T.n(zzn.f2972x); + T.r(zzn.f2973y); + T.b(zzn.B); + T.z(zzn.C); + T.a.f().b(); + if (T.E) { + K().I(T); + } + return T; + } + + public final p4 H() { + C(this.f1527b); + return this.f1527b; + } + + /* JADX WARNING: Code restructure failed: missing block: B:276:0x0944, code lost: + r5 = true; + */ + /* JADX WARNING: Removed duplicated region for block: B:86:0x02ba */ + /* JADX WARNING: Removed duplicated region for block: B:90:0x02f3 */ + @WorkerThread + public final void I(zzaq zzaq, zzn zzn) { + long j; + int i; + boolean X; + boolean equals; + f x2; + long intValue; + l lVar; + zzap zzap; + u9 Y; + boolean z2; + long j2; + u9 u9Var; + Long l; + a4 T; + zzaq zzaq2 = zzaq; + d.A(zzn); + d.w(zzn.j); + long nanoTime = System.nanoTime(); + U(); + P(); + String str = zzn.j; + N(); + if (q9.O(zzaq, zzn)) { + if (!zzn.q) { + G(zzn); + return; + } + boolean z3 = true; + if (H().x(str, zzaq2.j)) { + this.k.g().A().c("Dropping blacklisted event. appId", q3.s(str), this.k.u().u(zzaq2.j)); + if (!H().C(str) && !H().D(str)) { + z3 = false; + } + if (z3 || "_err".equals(zzaq2.j)) { + l = null; + } else { + l = null; + this.k.t().S(this.A, str, 11, "_ev", zzaq2.j, 0); + } + if (z3 && (T = K().T(str)) != null && Math.abs(((c) this.k.h()).a() - Math.max(T.W(), T.V())) > p.f1550z.a(l).longValue()) { + this.k.g().C().a("Fetching config for blacklisted app"); + n(T); + return; + } + return; + } + if (o8.b() && this.k.a().o(p.w0)) { + u3 b2 = u3.b(zzaq); + this.k.t().Q(b2, this.k.a().m(str)); + zzaq2 = b2.a(); + } + if (this.k.g().x(2)) { + this.k.g().D().b("Logging event", this.k.u().t(zzaq2)); + } + K().b0(); + try { + G(zzn); + boolean z4 = "ecommerce_purchase".equals(zzaq2.j) || "purchase".equals(zzaq2.j) || "refund".equals(zzaq2.j); + if ("_iap".equals(zzaq2.j) || z4) { + String A0 = zzaq2.k.A0("currency"); + if (z4) { + double doubleValue = zzaq2.k.z0("value").doubleValue() * 1000000.0d; + if (doubleValue == ShadowDrawableWrapper.COS_45) { + doubleValue = ((double) zzaq2.k.y0("value").longValue()) * 1000000.0d; + } + if (doubleValue > 9.223372036854776E18d || doubleValue < -9.223372036854776E18d) { + this.k.g().A().c("Data lost. Currency value is too big. appId", q3.s(str), Double.valueOf(doubleValue)); + j = nanoTime; + i = 0; + z2 = false; + if (!z2) { + K().s(); + return; + } + } else { + j2 = Math.round(doubleValue); + if ("refund".equals(zzaq2.j)) { + j2 = -j2; + } + } + } else { + j2 = zzaq2.k.y0("value").longValue(); + } + if (!TextUtils.isEmpty(A0)) { + String upperCase = A0.toUpperCase(Locale.US); + if (upperCase.matches("[A-Z]{3}")) { + String concat = upperCase.length() != 0 ? "_ltv_".concat(upperCase) : new String("_ltv_"); + u9 Y2 = K().Y(str, concat); + if (Y2 != null) { + Object obj = Y2.e; + if (obj instanceof Long) { + j = nanoTime; + i = 0; + u9Var = new u9(str, zzaq2.l, concat, ((c) this.k.h()).a(), Long.valueOf(((Long) obj).longValue() + j2)); + if (!K().M(u9Var)) { + this.k.g().z().d("Too many unique user properties are set. Ignoring user property. appId", q3.s(str), this.k.u().y(u9Var.c), u9Var.e); + this.k.t().S(this.A, str, 9, null, null, 0); + } + z2 = true; + if (!z2) { + } + } + } + j = nanoTime; + i = 0; + g K = K(); + int q = this.k.a().q(str, p.E) - 1; + d.w(str); + K.b(); + K.n(); + try { + K.t().execSQL("delete from user_attributes where app_id=? and name in (select name from user_attributes where app_id=? and name like '_ltv_%' order by set_timestamp desc limit ?,10);", new String[]{str, str, String.valueOf(q)}); + } catch (SQLiteException e) { + K.g().z().c("Error pruning currencies. appId", q3.s(str), e); + } + u9Var = new u9(str, zzaq2.l, concat, ((c) this.k.h()).a(), Long.valueOf(j2)); + if (!K().M(u9Var)) { + } + z2 = true; + if (!z2) { + } + } + } + j = nanoTime; + i = 0; + z2 = true; + if (!z2) { + } + } else { + j = nanoTime; + i = 0; + } + X = t9.X(zzaq2.j); + equals = "_err".equals(zzaq2.j); + this.k.t(); + x2 = K().x(V(), str, t9.v(zzaq2.k) + 1, true, X, false, equals, false); + intValue = x2.f1517b - ((long) p.k.a(null).intValue()); + } finally { + K().e0(); + } + if (intValue > 0) { + if (intValue % 1000 == 1) { + this.k.g().z().c("Data loss. Too many events logged. appId, count", q3.s(str), Long.valueOf(x2.f1517b)); + } + K().s(); + K().e0(); + return; + } + if (X) { + long intValue2 = x2.a - ((long) p.m.a(null).intValue()); + if (intValue2 > 0) { + if (intValue2 % 1000 == 1) { + this.k.g().z().c("Data loss. Too many public events logged. appId, count", q3.s(str), Long.valueOf(x2.a)); + } + this.k.t().S(this.A, str, 16, "_ev", zzaq2.j, 0); + K().s(); + K().e0(); + return; + } + } + if (equals) { + long max = x2.d - ((long) Math.max(i, Math.min(1000000, this.k.a().q(zzn.j, p.l)))); + if (max > 0) { + if (max == 1) { + this.k.g().z().c("Too many error events logged. appId, count", q3.s(str), Long.valueOf(x2.d)); + } + K().s(); + K().e0(); + return; + } + } + Bundle x0 = zzaq2.k.x0(); + this.k.t().I(x0, "_o", zzaq2.l); + if (this.k.t().s0(str)) { + this.k.t().I(x0, "_dbg", 1L); + this.k.t().I(x0, "_r", 1L); + } + if ("_s".equals(zzaq2.j) && (Y = K().Y(zzn.j, "_sno")) != null && (Y.e instanceof Long)) { + this.k.t().I(x0, "_sno", Y.e); + } + long X2 = K().X(str); + if (X2 > 0) { + this.k.g().A().c("Data lost. Too many events stored on disk, deleted. appId", q3.s(str), Long.valueOf(X2)); + } + m mVar = new m(this.k, zzaq2.l, str, zzaq2.j, zzaq2.m, 0, x0); + l z5 = K().z(str, mVar.f1534b); + if (z5 != null) { + mVar = mVar.a(this.k, z5.f); + lVar = z5.a(mVar.d); + } else if (K().f0(str) < ((long) this.k.a().p(str)) || !X) { + lVar = new l(str, mVar.f1534b, mVar.d); + } else { + this.k.g().z().d("Too many event names used, ignoring event. appId, name, supported count", q3.s(str), this.k.u().u(mVar.f1534b), Integer.valueOf(this.k.a().p(str))); + this.k.t().S(this.A, str, 8, null, null, 0); + K().e0(); + return; + } + K().H(lVar); + U(); + P(); + d.A(mVar); + d.A(zzn); + d.w(mVar.a); + d.l(mVar.a.equals(zzn.j)); + e1.a u0 = e1.u0(); + u0.q(); + u0.x("android"); + if (!TextUtils.isEmpty(zzn.j)) { + u0.X(zzn.j); + } + if (!TextUtils.isEmpty(zzn.m)) { + u0.T(zzn.m); + } + if (!TextUtils.isEmpty(zzn.l)) { + u0.a0(zzn.l); + } + long j3 = zzn.f2971s; + if (j3 != -2147483648L) { + u0.c0((int) j3); + } + u0.W(zzn.n); + if (!TextUtils.isEmpty(zzn.k)) { + u0.m0(zzn.k); + } + if (t8.b() && this.k.a().o(p.J0)) { + u0.w0(a(zzn.j).h(d.b(zzn.F)).d()); + } + if (da.b() && this.k.a().v(zzn.j, p.f1546j0)) { + if (TextUtils.isEmpty(u0.s0()) && !TextUtils.isEmpty(zzn.E)) { + u0.u0(zzn.E); + } + if (TextUtils.isEmpty(u0.s0()) && TextUtils.isEmpty(u0.x0()) && !TextUtils.isEmpty(zzn.A)) { + u0.r0(zzn.A); + } + } else if (TextUtils.isEmpty(u0.s0()) && !TextUtils.isEmpty(zzn.A)) { + u0.r0(zzn.A); + } + long j4 = zzn.o; + if (j4 != 0) { + u0.d0(j4); + } + u0.l0(zzn.C); + List U = N().U(); + if (U != null) { + u0.M(U); + } + d h = a(zzn.j).h(d.b(zzn.F)); + if (!t8.b() || !this.k.a().o(p.J0) || h.j()) { + Pair s2 = this.j.s(zzn.j, h); + if (!TextUtils.isEmpty((CharSequence) s2.first)) { + if (zzn.f2972x) { + u0.e0((String) s2.first); + Object obj2 = s2.second; + if (obj2 != null) { + u0.y(((Boolean) obj2).booleanValue()); + } + } + } else if (!this.k.y().s(this.k.j()) && zzn.f2973y && (!hb.b() || !this.k.a().v(zzn.j, p.G0))) { + String string = Settings.Secure.getString(this.k.j().getContentResolver(), "android_id"); + if (string == null) { + this.k.g().A().b("null secure ID. appId", q3.s(u0.k0())); + string = "null"; + } else if (string.isEmpty()) { + this.k.g().A().b("empty secure ID. appId", q3.s(u0.k0())); + } + u0.o0(string); + } + } + this.k.y().o(); + u0.J(Build.MODEL); + this.k.y().o(); + u0.E(Build.VERSION.RELEASE); + u0.V((int) this.k.y().t()); + u0.N(this.k.y().u()); + if (!this.k.a().o(p.y0)) { + u0.i0(zzn.u); + } + if (this.k.d()) { + if (!t8.b() || !this.k.a().o(p.J0)) { + u0.k0(); + } else { + u0.k0(); + } + if (!TextUtils.isEmpty(null)) { + u0.q0(); + throw null; + } + } + a4 T2 = K().T(zzn.j); + if (T2 == null) { + T2 = new a4(this.k, zzn.j); + if (!t8.b() || !this.k.a().o(p.J0)) { + T2.c(W()); + } else { + T2.c(c(h)); + } + T2.A(zzn.t); + T2.m(zzn.k); + if (!t8.b() || !this.k.a().o(p.J0) || h.j()) { + T2.x(this.j.t(zzn.j)); + } + T2.C(0); + T2.a(0); + T2.l(0); + T2.D(zzn.l); + T2.p(zzn.f2971s); + T2.G(zzn.m); + T2.t(zzn.n); + T2.w(zzn.o); + T2.e(zzn.q); + if (!this.k.a().o(p.y0)) { + T2.R(zzn.u); + } + T2.z(zzn.C); + K().I(T2); + } + if ((!t8.b() || !this.k.a().o(p.J0) || h.k()) && !TextUtils.isEmpty(T2.s())) { + u0.h0(T2.s()); + } + if (!TextUtils.isEmpty(T2.H())) { + u0.n0(T2.H()); + } + List C = K().C(zzn.j); + for (int i2 = 0; i2 < C.size(); i2++) { + i1.a L = i1.L(); + L.r(C.get(i2).c); + L.q(C.get(i2).d); + N().G(L, C.get(i2).e); + u0.u(L); + } + try { + long v = K().v((e1) ((u4) u0.p())); + g K2 = K(); + zzap = mVar.f; + boolean z6 = false; + if (K2.L(mVar, v, z6)) { + this.n = 0; + } + } catch (IOException e2) { + this.k.g().z().c("Data loss. Failed to insert raw event metadata. appId", q3.s(u0.k0()), e2); + } + if (zzap != null) { + Iterator it = zzap.iterator(); + while (true) { + n nVar = (n) it; + if (nVar.hasNext()) { + if ("_r".equals((String) nVar.next())) { + break; + } + } else { + boolean y2 = H().y(mVar.a, mVar.f1534b); + f y3 = K().y(V(), mVar.a, false, false); + if (y2 && y3.e < ((long) this.k.a().s(mVar.a))) { + break; + } + } + } + } + K().s(); + K().e0(); + w(); + this.k.g().D().b("Background event processing time, ms", Long.valueOf(((System.nanoTime() - j) + 500000) / 1000000)); + } + } + + public final x3 J() { + C(this.c); + return this.c; + } + + public final g K() { + C(this.d); + return this.d; + } + + public final boolean L(zzn zzn) { + return (!da.b() || !this.k.h.u(zzn.j, p.f1546j0)) ? !TextUtils.isEmpty(zzn.k) || !TextUtils.isEmpty(zzn.A) : !TextUtils.isEmpty(zzn.k) || !TextUtils.isEmpty(zzn.E) || !TextUtils.isEmpty(zzn.A); + } + + public final ba M() { + C(this.g); + return this.g; + } + + public final q9 N() { + C(this.h); + return this.h; + } + + public final o3 O() { + return this.k.u(); + } + + public final void P() { + if (!this.l) { + throw new IllegalStateException("UploadController is not initialized"); + } + } + + @WorkerThread + public final void Q() { + a4 T; + String str; + U(); + P(); + this.t = true; + boolean z2 = false; + try { + Boolean bool = this.k.x().e; + if (bool == null) { + this.k.g().i.a("Upload data called on the client side before use of service was decided"); + } else if (bool.booleanValue()) { + this.k.g().f.a("Upload called in the client side when service should be used"); + this.t = false; + x(); + } else if (this.n > 0) { + w(); + this.t = false; + x(); + } else { + U(); + if (this.w != null) { + this.k.g().n.a("Uploading requested multiple times"); + this.t = false; + x(); + } else if (!J().u()) { + this.k.g().n.a("Network not connected, ignoring upload request"); + w(); + this.t = false; + x(); + } else { + Objects.requireNonNull((c) this.k.o); + long currentTimeMillis = System.currentTimeMillis(); + int q = this.k.h.q(null, p.Q); + long longValue = currentTimeMillis - p.d.a(null).longValue(); + for (int i = 0; i < q && t(longValue); i++) { + } + long a2 = this.k.o().f.a(); + if (a2 != 0) { + this.k.g().m.b("Uploading events. Elapsed time since last upload attempt (ms)", Long.valueOf(Math.abs(currentTimeMillis - a2))); + } + String u = K().u(); + if (!TextUtils.isEmpty(u)) { + if (this.f1530y == -1) { + this.f1530y = K().j0(); + } + List> D = K().D(u, this.k.h.q(u, p.g), Math.max(0, this.k.h.q(u, p.h))); + if (!D.isEmpty()) { + if (!t8.b() || !this.k.h.o(p.J0) || a(u).j()) { + Iterator> it = D.iterator(); + while (true) { + if (!it.hasNext()) { + str = null; + break; + } + e1 e1Var = (e1) it.next().first; + if (!TextUtils.isEmpty(e1Var.J())) { + str = e1Var.J(); + break; + } + } + if (str != null) { + int i2 = 0; + while (true) { + if (i2 >= D.size()) { + break; + } + e1 e1Var2 = (e1) D.get(i2).first; + if (!(TextUtils.isEmpty(e1Var2.J()) || e1Var2.J().equals(str))) { + D = D.subList(0, i2); + break; + } + i2++; + } + } + } + d1.a x2 = d1.x(); + int size = D.size(); + ArrayList arrayList = new ArrayList(D.size()); + boolean z3 = "1".equals(this.k.h.c.i(u, "gaia_collection_enabled")) && (!t8.b() || !this.k.h.o(p.J0) || a(u).j()); + boolean z4 = !t8.b() || !this.k.h.o(p.J0) || a(u).j(); + boolean z5 = !t8.b() || !this.k.h.o(p.J0) || a(u).k(); + int i3 = 0; + while (i3 < size) { + e1.a t = ((e1) D.get(i3).first).t(); + arrayList.add((Long) D.get(i3).second); + if (t.l) { + t.n(); + t.l = false; + } + e1.W0((e1) t.k, 33025); + if (t.l) { + t.n(); + t.l = false; + } + e1.y((e1) t.k, currentTimeMillis); + if (t.l) { + t.n(); + t.l = false; + } + e1.m0((e1) t.k, false); + if (!z3) { + if (t.l) { + t.n(); + t.l = false; + } + e1.i1((e1) t.k); + } + if (t8.b() && this.k.h.o(p.J0)) { + if (!z4) { + if (t.l) { + t.n(); + t.l = false; + } + e1.F0((e1) t.k); + if (t.l) { + t.n(); + t.l = false; + } + e1.L0((e1) t.k); + } + if (!z5) { + if (t.l) { + t.n(); + t.l = false; + } + e1.Q0((e1) t.k); + } + } + if (this.k.h.u(u, p.X)) { + long t2 = N().t(((e1) ((u4) t.p())).d()); + if (t.l) { + t.n(); + t.l = false; + } + e1.p1((e1) t.k, t2); + } + x2.q(t); + i3++; + arrayList = arrayList; + } + String z6 = this.k.g().x(2) ? N().z((d1) ((u4) x2.p())) : null; + N(); + byte[] d = ((d1) ((u4) x2.p())).d(); + String a3 = p.q.a(null); + try { + URL url = new URL(a3); + d.l(!arrayList.isEmpty()); + if (this.w != null) { + this.k.g().f.a("Set uploading progress before finishing the previous upload"); + } else { + this.w = new ArrayList(arrayList); + } + this.k.o().g.b(currentTimeMillis); + String str2 = "?"; + if (size > 0) { + str2 = ((d1) x2.k).u().G1(); + } + this.k.g().n.d("Uploading data. app, uncompressed size, data", str2, Integer.valueOf(d.length), z6); + this.f1528s = true; + x3 J = J(); + m9 m9Var = new m9(this, u); + J.b(); + J.n(); + J.f().x(new c4(J, u, url, d, null, m9Var)); + } catch (MalformedURLException unused) { + this.k.g().f.c("Failed to parse upload URL. Not uploading. appId", q3.s(u), a3); + } + } + } else { + this.f1530y = -1; + String B = K().B(currentTimeMillis - p.d.a(null).longValue()); + if (!TextUtils.isEmpty(B) && (T = K().T(B)) != null) { + n(T); + } + } + this.t = false; + x(); + } + } + } finally { + this.t = z2; + x(); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:24:0x00a3 */ + /* JADX WARNING: Removed duplicated region for block: B:42:0x010b */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x0122 */ + /* JADX WARNING: Removed duplicated region for block: B:58:0x018b */ + /* JADX WARNING: Removed duplicated region for block: B:59:0x01a1 */ + /* JADX WARNING: Removed duplicated region for block: B:62:? A[RETURN, SYNTHETIC] */ + @WorkerThread + public final void R() { + boolean z2; + int i; + int i2; + FileLock fileLock; + U(); + P(); + if (!this.m) { + boolean z3 = true; + this.m = true; + U(); + if (!this.k.h.o(p.f1545i0) || (fileLock = this.u) == null || !fileLock.isValid()) { + try { + FileChannel channel = new RandomAccessFile(new File(this.k.f1555b.getFilesDir(), "google_app_measurement.db"), "rw").getChannel(); + this.v = channel; + FileLock tryLock = channel.tryLock(); + this.u = tryLock; + if (tryLock != null) { + this.k.g().n.a("Storage concurrent access okay"); + } else { + this.k.g().f.a("Storage concurrent data access panic"); + z2 = false; + if (!z2) { + FileChannel fileChannel = this.v; + U(); + if (fileChannel == null || !fileChannel.isOpen()) { + this.k.g().f.a("Bad channel to read from"); + } else { + ByteBuffer allocate = ByteBuffer.allocate(4); + try { + fileChannel.position(0L); + int read = fileChannel.read(allocate); + if (read == 4) { + allocate.flip(); + i = allocate.getInt(); + n3 z4 = this.k.z(); + z4.t(); + i2 = z4.e; + U(); + if (i <= i2) { + this.k.g().f.c("Panic: can't downgrade version. Previous, current version", Integer.valueOf(i), Integer.valueOf(i2)); + return; + } else if (i < i2) { + FileChannel fileChannel2 = this.v; + U(); + if (fileChannel2 == null || !fileChannel2.isOpen()) { + this.k.g().f.a("Bad channel to read from"); + } else { + ByteBuffer allocate2 = ByteBuffer.allocate(4); + allocate2.putInt(i2); + allocate2.flip(); + try { + fileChannel2.truncate(0L); + this.k.h.o(p.s0); + fileChannel2.write(allocate2); + fileChannel2.force(true); + if (fileChannel2.size() != 4) { + this.k.g().f.b("Error writing to channel. Bytes written", Long.valueOf(fileChannel2.size())); + } + } catch (IOException e) { + this.k.g().f.b("Failed to write to channel", e); + } + if (!z3) { + this.k.g().n.c("Storage version upgraded. Previous, current version", Integer.valueOf(i), Integer.valueOf(i2)); + return; + } else { + this.k.g().f.c("Storage version upgrade failed. Previous, current version", Integer.valueOf(i), Integer.valueOf(i2)); + return; + } + } + z3 = false; + if (!z3) { + } + } else { + return; + } + } else if (read != -1) { + this.k.g().i.b("Unexpected data length. Bytes read", Integer.valueOf(read)); + } + } catch (IOException e2) { + this.k.g().f.b("Failed to read from channel", e2); + } + } + i = 0; + n3 z4 = this.k.z(); + z4.t(); + i2 = z4.e; + U(); + if (i <= i2) { + } + } else { + return; + } + } + } catch (FileNotFoundException e3) { + this.k.g().f.b("Failed to acquire storage lock", e3); + } catch (IOException e4) { + this.k.g().f.b("Failed to access storage lock file", e4); + } catch (OverlappingFileLockException e5) { + this.k.g().i.b("Storage lock already acquired", e5); + } + } else { + this.k.g().n.a("Storage concurrent access okay"); + } + z2 = true; + if (!z2) { + } + } + } + + public final b4 S() { + b4 b4Var = this.e; + if (b4Var != null) { + return b4Var; + } + throw new IllegalStateException("Network broadcast receiver not created"); + } + + public final h9 T() { + C(this.f); + return this.f; + } + + @WorkerThread + public final void U() { + this.k.f().b(); + } + + public final long V() { + Objects.requireNonNull((c) this.k.o); + long currentTimeMillis = System.currentTimeMillis(); + d4 o = this.k.o(); + o.o(); + o.b(); + long a2 = o.j.a(); + if (a2 == 0) { + a2 = 1 + ((long) o.e().v0().nextInt(86400000)); + o.j.b(a2); + } + return ((((currentTimeMillis + a2) / 1000) / 60) / 60) / 24; + } + + @WorkerThread + @Deprecated + public final String W() { + byte[] bArr = new byte[16]; + this.k.t().v0().nextBytes(bArr); + return String.format(Locale.US, "%032x", new BigInteger(1, bArr)); + } + + @WorkerThread + public final d a(String str) { + String str2; + d dVar = d.a; + if (!t8.b() || !this.k.h.o(p.J0)) { + return dVar; + } + U(); + P(); + d dVar2 = this.f1531z.get(str); + if (dVar2 != null) { + return dVar2; + } + g K = K(); + Objects.requireNonNull(K); + Objects.requireNonNull(str, "null reference"); + K.b(); + K.n(); + Cursor cursor = null; + try { + Cursor rawQuery = K.t().rawQuery("select consent_state from consent_settings where app_id=? limit 1;", new String[]{str}); + if (rawQuery.moveToFirst()) { + str2 = rawQuery.getString(0); + rawQuery.close(); + } else { + rawQuery.close(); + str2 = "G1"; + } + d b2 = d.b(str2); + s(str, b2); + return b2; + } catch (SQLiteException e) { + K.g().f.c("Database error", "select consent_state from consent_settings where app_id=? limit 1;", e); + throw e; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + @WorkerThread + public final String c(d dVar) { + if (!t8.b() || !this.k.h.o(p.J0) || dVar.k()) { + return W(); + } + return null; + } + + @Override // b.i.a.f.i.b.t5 + public final r4 f() { + return this.k.f(); + } + + @Override // b.i.a.f.i.b.t5 + public final q3 g() { + return this.k.g(); + } + + @Override // b.i.a.f.i.b.t5 + public final b.i.a.f.e.o.b h() { + return this.k.o; + } + + public final void i(e1.a aVar, long j, boolean z2) { + u9 u9Var; + boolean z3; + String str = z2 ? "_se" : "_lte"; + u9 Y = K().Y(aVar.k0(), str); + if (Y == null || Y.e == null) { + String k0 = aVar.k0(); + Objects.requireNonNull((c) this.k.o); + u9Var = new u9(k0, "auto", str, System.currentTimeMillis(), Long.valueOf(j)); + } else { + String k02 = aVar.k0(); + Objects.requireNonNull((c) this.k.o); + u9Var = new u9(k02, "auto", str, System.currentTimeMillis(), Long.valueOf(((Long) Y.e).longValue() + j)); + } + i1.a L = i1.L(); + L.r(str); + Objects.requireNonNull((c) this.k.o); + L.q(System.currentTimeMillis()); + L.s(((Long) u9Var.e).longValue()); + i1 i1Var = (i1) ((u4) L.p()); + int s2 = q9.s(aVar, str); + if (s2 >= 0) { + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + e1.x((e1) aVar.k, s2, i1Var); + z3 = true; + } else { + z3 = false; + } + if (!z3) { + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + e1.A((e1) aVar.k, i1Var); + } + if (j > 0) { + K().M(u9Var); + this.k.g().n.c("Updated engagement user property. scope, value", z2 ? "session-scoped" : "lifetime", u9Var.e); + } + } + + @Override // b.i.a.f.i.b.t5 + public final Context j() { + return this.k.f1555b; + } + + @Override // b.i.a.f.i.b.t5 + public final ga k() { + return this.k.g; + } + + @WorkerThread + public final void l(zzaq zzaq, zzn zzn) { + List list; + List list2; + List list3; + zzaq zzaq2 = zzaq; + Objects.requireNonNull(zzn, "null reference"); + d.w(zzn.j); + U(); + P(); + String str = zzn.j; + long j = zzaq2.m; + N(); + if (q9.O(zzaq, zzn)) { + if (!zzn.q) { + G(zzn); + return; + } + List list4 = zzn.D; + if (list4 != null) { + if (list4.contains(zzaq2.j)) { + Bundle x0 = zzaq2.k.x0(); + x0.putLong("ga_safelisted", 1); + zzaq2 = new zzaq(zzaq2.j, new zzap(x0), zzaq2.l, zzaq2.m); + } else { + this.k.g().m.d("Dropping non-safelisted event. appId, event name, origin", str, zzaq2.j, zzaq2.l); + return; + } + } + K().b0(); + try { + g K = K(); + d.w(str); + K.b(); + K.n(); + int i = (j > 0 ? 1 : (j == 0 ? 0 : -1)); + if (i < 0) { + K.g().i.c("Invalid time querying timed out conditional properties", q3.s(str), Long.valueOf(j)); + list = Collections.emptyList(); + } else { + list = K.F("active=0 and app_id=? and abs(? - creation_timestamp) > trigger_timeout", new String[]{str, String.valueOf(j)}); + } + for (zzz zzz : list) { + if (zzz != null) { + this.k.g().n.d("User property timed out", zzz.j, this.k.u().y(zzz.l.k), zzz.l.w0()); + zzaq zzaq3 = zzz.p; + if (zzaq3 != null) { + I(new zzaq(zzaq3, j), zzn); + } + K().a0(str, zzz.l.k); + } + } + g K2 = K(); + d.w(str); + K2.b(); + K2.n(); + if (i < 0) { + K2.g().i.c("Invalid time querying expired conditional properties", q3.s(str), Long.valueOf(j)); + list2 = Collections.emptyList(); + } else { + list2 = K2.F("active<>0 and app_id=? and abs(? - triggered_timestamp) > time_to_live", new String[]{str, String.valueOf(j)}); + } + ArrayList arrayList = new ArrayList(list2.size()); + for (zzz zzz2 : list2) { + if (zzz2 != null) { + this.k.g().n.d("User property expired", zzz2.j, this.k.u().y(zzz2.l.k), zzz2.l.w0()); + K().V(str, zzz2.l.k); + zzaq zzaq4 = zzz2.t; + if (zzaq4 != null) { + arrayList.add(zzaq4); + } + K().a0(str, zzz2.l.k); + } + } + int size = arrayList.size(); + int i2 = 0; + while (i2 < size) { + Object obj = arrayList.get(i2); + i2++; + I(new zzaq((zzaq) obj, j), zzn); + } + g K3 = K(); + String str2 = zzaq2.j; + d.w(str); + d.w(str2); + K3.b(); + K3.n(); + if (i < 0) { + K3.g().i.d("Invalid time querying triggered conditional properties", q3.s(str), K3.d().u(str2), Long.valueOf(j)); + list3 = Collections.emptyList(); + } else { + list3 = K3.F("active=0 and app_id=? and trigger_event_name=? and abs(? - creation_timestamp) <= trigger_timeout", new String[]{str, str2, String.valueOf(j)}); + } + ArrayList arrayList2 = new ArrayList(list3.size()); + for (zzz zzz3 : list3) { + if (zzz3 != null) { + zzku zzku = zzz3.l; + u9 u9Var = new u9(zzz3.j, zzz3.k, zzku.k, j, zzku.w0()); + if (K().M(u9Var)) { + this.k.g().n.d("User property triggered", zzz3.j, this.k.u().y(u9Var.c), u9Var.e); + } else { + this.k.g().f.d("Too many active user properties, ignoring", q3.s(zzz3.j), this.k.u().y(u9Var.c), u9Var.e); + } + zzaq zzaq5 = zzz3.r; + if (zzaq5 != null) { + arrayList2.add(zzaq5); + } + zzz3.l = new zzku(u9Var); + zzz3.n = true; + K().N(zzz3); + } + } + I(zzaq2, zzn); + int size2 = arrayList2.size(); + int i3 = 0; + while (i3 < size2) { + Object obj2 = arrayList2.get(i3); + i3++; + I(new zzaq((zzaq) obj2, j), zzn); + } + K().s(); + } finally { + K().e0(); + } + } + } + + @WorkerThread + public final void m(zzaq zzaq, String str) { + boolean z2; + String str2; + a4 T = K().T(str); + if (T == null || TextUtils.isEmpty(T.M())) { + this.k.g().m.b("No app data available; dropping event", str); + return; + } + Boolean z3 = z(T); + if (z3 == null) { + if (!"_ui".equals(zzaq.j)) { + this.k.g().i.b("Could not find package. appId", q3.s(str)); + } + } else if (!z3.booleanValue()) { + this.k.g().f.b("App version does not match; dropping event. appId", q3.s(str)); + return; + } + String v = T.v(); + String M = T.M(); + long N = T.N(); + String O = T.O(); + long P = T.P(); + long Q = T.Q(); + boolean T2 = T.T(); + String H = T.H(); + long g = T.g(); + boolean h = T.h(); + boolean i = T.i(); + String y2 = T.y(); + Boolean j = T.j(); + long S = T.S(); + List k = T.k(); + if (da.b()) { + z2 = T2; + if (this.k.h.u(T.o(), p.f1546j0)) { + str2 = T.B(); + B(zzaq, new zzn(str, v, M, N, O, P, Q, (String) null, z2, false, H, g, 0L, 0, h, i, false, y2, j, S, k, str2, (t8.b() || !this.k.h.o(p.J0)) ? "" : a(str).d())); + } + } else { + z2 = T2; + } + str2 = null; + B(zzaq, new zzn(str, v, M, N, O, P, Q, (String) null, z2, false, H, g, 0L, 0, h, i, false, y2, j, S, k, str2, (t8.b() || !this.k.h.o(p.J0)) ? "" : a(str).d())); + } + + /* JADX WARNING: Code restructure failed: missing block: B:25:0x009b, code lost: + if (android.text.TextUtils.isEmpty(r2) != false) goto L_0x009d; + */ + @WorkerThread + public final void n(a4 a4Var) { + U(); + if (!da.b() || !this.k.h.u(a4Var.o(), p.f1546j0)) { + if (TextUtils.isEmpty(a4Var.v()) && TextUtils.isEmpty(a4Var.y())) { + r(a4Var.o(), 204, null, null, null); + return; + } + } else if (TextUtils.isEmpty(a4Var.v()) && TextUtils.isEmpty(a4Var.B()) && TextUtils.isEmpty(a4Var.y())) { + r(a4Var.o(), 204, null, null, null); + return; + } + c cVar = this.k.h; + Objects.requireNonNull(cVar); + Uri.Builder builder = new Uri.Builder(); + String v = a4Var.v(); + if (TextUtils.isEmpty(v)) { + if (da.b() && cVar.a.h.u(a4Var.o(), p.f1546j0)) { + v = a4Var.B(); + } + v = a4Var.y(); + } + ArrayMap arrayMap = null; + Uri.Builder encodedAuthority = builder.scheme(p.e.a(null)).encodedAuthority(p.f.a(null)); + String valueOf = String.valueOf(v); + encodedAuthority.path(valueOf.length() != 0 ? "config/app/".concat(valueOf) : new String("config/app/")).appendQueryParameter("app_instance_id", a4Var.s()).appendQueryParameter("platform", "android").appendQueryParameter("gmp_version", "33025"); + String uri = builder.build().toString(); + try { + URL url = new URL(uri); + this.k.g().n.b("Fetching remote configuration", a4Var.o()); + u0 s2 = H().s(a4Var.o()); + p4 H = H(); + String o = a4Var.o(); + H.b(); + String str = H.i.get(o); + if (s2 != null && !TextUtils.isEmpty(str)) { + arrayMap = new ArrayMap(); + arrayMap.put("If-Modified-Since", str); + } + this.r = true; + x3 J = J(); + String o2 = a4Var.o(); + l9 l9Var = new l9(this); + J.b(); + J.n(); + J.f().x(new c4(J, o2, url, null, arrayMap, l9Var)); + } catch (MalformedURLException unused) { + this.k.g().f.c("Failed to parse config URL. Not fetching. appId", q3.s(a4Var.o()), uri); + } + } + + @WorkerThread + public final void o(zzku zzku, zzn zzn) { + U(); + P(); + if (L(zzn)) { + if (!zzn.q) { + G(zzn); + return; + } + int h02 = this.k.t().h0(zzku.k); + if (h02 != 0) { + this.k.t(); + String E = t9.E(zzku.k, 24, true); + String str = zzku.k; + this.k.t().S(this.A, zzn.j, h02, "_ev", E, str != null ? str.length() : 0); + return; + } + int i02 = this.k.t().i0(zzku.k, zzku.w0()); + if (i02 != 0) { + this.k.t(); + String E2 = t9.E(zzku.k, 24, true); + Object w0 = zzku.w0(); + this.k.t().S(this.A, zzn.j, i02, "_ev", E2, (w0 == null || (!(w0 instanceof String) && !(w0 instanceof CharSequence))) ? 0 : String.valueOf(w0).length()); + return; + } + Object n0 = this.k.t().n0(zzku.k, zzku.w0()); + if (n0 != null) { + if ("_sid".equals(zzku.k)) { + long j = zzku.l; + String str2 = zzku.o; + long j2 = 0; + u9 Y = K().Y(zzn.j, "_sno"); + if (Y != null) { + Object obj = Y.e; + if (obj instanceof Long) { + j2 = ((Long) obj).longValue(); + o(new zzku("_sno", j, Long.valueOf(j2 + 1), str2), zzn); + } + } + if (Y != null) { + this.k.g().i.b("Retrieved last session number from database does not contain a valid (long) value", Y.e); + } + l z2 = K().z(zzn.j, "_s"); + if (z2 != null) { + j2 = z2.c; + this.k.g().n.b("Backfill the session number. Last used session number", Long.valueOf(j2)); + } + o(new zzku("_sno", j, Long.valueOf(j2 + 1), str2), zzn); + } + u9 u9Var = new u9(zzn.j, zzku.o, zzku.k, zzku.l, n0); + this.k.g().n.c("Setting user property", this.k.u().y(u9Var.c), n0); + K().b0(); + try { + G(zzn); + boolean M = K().M(u9Var); + K().s(); + if (!M) { + this.k.g().f.c("Too many unique user properties are set. Ignoring user property", this.k.u().y(u9Var.c), u9Var.e); + this.k.t().S(this.A, zzn.j, 9, null, null, 0); + } + } finally { + K().e0(); + } + } + } + } + + @WorkerThread + public final void p(zzn zzn) { + if (this.w != null) { + ArrayList arrayList = new ArrayList(); + this.f1529x = arrayList; + arrayList.addAll(this.w); + } + g K = K(); + String str = zzn.j; + d.w(str); + K.b(); + K.n(); + try { + SQLiteDatabase t = K.t(); + String[] strArr = {str}; + int delete = t.delete("apps", "app_id=?", strArr) + 0 + t.delete("events", "app_id=?", strArr) + t.delete("user_attributes", "app_id=?", strArr) + t.delete("conditional_properties", "app_id=?", strArr) + t.delete("raw_events", "app_id=?", strArr) + t.delete("raw_events_metadata", "app_id=?", strArr) + t.delete("queue", "app_id=?", strArr) + t.delete("audience_filter_values", "app_id=?", strArr) + t.delete("main_event_params", "app_id=?", strArr) + t.delete("default_event_params", "app_id=?", strArr); + if (delete > 0) { + K.g().n.c("Reset analytics data. app, records", str, Integer.valueOf(delete)); + } + } catch (SQLiteException e) { + K.g().f.c("Error resetting analytics data. appId, error", q3.s(str), e); + } + if (zzn.q) { + E(zzn); + } + } + + @WorkerThread + public final void q(zzz zzz, zzn zzn) { + zzaq zzaq; + boolean z2; + Objects.requireNonNull(zzz, "null reference"); + d.w(zzz.j); + Objects.requireNonNull(zzz.k, "null reference"); + Objects.requireNonNull(zzz.l, "null reference"); + d.w(zzz.l.k); + U(); + P(); + if (L(zzn)) { + if (!zzn.q) { + G(zzn); + return; + } + zzz zzz2 = new zzz(zzz); + boolean z3 = false; + zzz2.n = false; + K().b0(); + try { + zzz Z = K().Z(zzz2.j, zzz2.l.k); + if (Z != null && !Z.k.equals(zzz2.k)) { + this.k.g().i.d("Updating a conditional user property with different origin. name, origin, origin (from DB)", this.k.u().y(zzz2.l.k), zzz2.k, Z.k); + } + if (Z != null && (z2 = Z.n)) { + zzz2.k = Z.k; + zzz2.m = Z.m; + zzz2.q = Z.q; + zzz2.o = Z.o; + zzz2.r = Z.r; + zzz2.n = z2; + zzku zzku = zzz2.l; + zzz2.l = new zzku(zzku.k, Z.l.l, zzku.w0(), Z.l.o); + } else if (TextUtils.isEmpty(zzz2.o)) { + zzku zzku2 = zzz2.l; + zzz2.l = new zzku(zzku2.k, zzz2.m, zzku2.w0(), zzz2.l.o); + zzz2.n = true; + z3 = true; + } + if (zzz2.n) { + zzku zzku3 = zzz2.l; + u9 u9Var = new u9(zzz2.j, zzz2.k, zzku3.k, zzku3.l, zzku3.w0()); + if (K().M(u9Var)) { + this.k.g().m.d("User property updated immediately", zzz2.j, this.k.u().y(u9Var.c), u9Var.e); + } else { + this.k.g().f.d("(2)Too many active user properties, ignoring", q3.s(zzz2.j), this.k.u().y(u9Var.c), u9Var.e); + } + if (z3 && (zzaq = zzz2.r) != null) { + I(new zzaq(zzaq, zzz2.m), zzn); + } + } + if (K().N(zzz2)) { + this.k.g().m.d("Conditional property added", zzz2.j, this.k.u().y(zzz2.l.k), zzz2.l.w0()); + } else { + this.k.g().f.d("Too many conditional properties, ignoring", q3.s(zzz2.j), this.k.u().y(zzz2.l.k), zzz2.l.w0()); + } + K().s(); + } finally { + K().e0(); + } + } + } + + /* JADX INFO: finally extract failed */ + /* JADX WARNING: Removed duplicated region for block: B:46:0x0126 A[Catch:{ all -> 0x0175 }] */ + /* JADX WARNING: Removed duplicated region for block: B:47:0x0134 A[Catch:{ all -> 0x0175 }] */ + @WorkerThread + public final void r(String str, int i, Throwable th, byte[] bArr, Map> map) { + U(); + P(); + d.w(str); + if (bArr == null) { + try { + bArr = new byte[0]; + } catch (Throwable th2) { + this.r = false; + x(); + throw th2; + } + } + this.k.g().n.b("onConfigFetched. Response size", Integer.valueOf(bArr.length)); + K().b0(); + try { + a4 T = K().T(str); + boolean z2 = true; + boolean z3 = (i == 200 || i == 204 || i == 304) && th == null; + if (T == null) { + this.k.g().i.b("App does not exist in onConfigFetched. appId", q3.s(str)); + } else { + if (!z3) { + if (i != 404) { + Objects.requireNonNull((c) this.k.o); + T.I(System.currentTimeMillis()); + K().I(T); + this.k.g().n.c("Fetching config failed. code, error", Integer.valueOf(i), th); + p4 H = H(); + H.b(); + H.i.put(str, null); + h4 h4Var = this.k.o().g; + Objects.requireNonNull((c) this.k.o); + h4Var.b(System.currentTimeMillis()); + if (i != 503) { + if (i != 429) { + z2 = false; + } + } + if (z2) { + h4 h4Var2 = this.k.o().h; + Objects.requireNonNull((c) this.k.o); + h4Var2.b(System.currentTimeMillis()); + } + w(); + } + } + List list = map != null ? map.get("Last-Modified") : null; + String str2 = (list == null || list.size() <= 0) ? null : list.get(0); + if (i != 404) { + if (i != 304) { + H().w(str, bArr, str2); + Objects.requireNonNull((c) this.k.o); + T.F(System.currentTimeMillis()); + K().I(T); + if (i != 404) { + this.k.g().k.b("Config not found. Using empty config. appId", str); + } else { + this.k.g().n.c("Successfully fetched config. Got network response. code, size", Integer.valueOf(i), Integer.valueOf(bArr.length)); + } + if (J().u() || !v()) { + w(); + } else { + Q(); + } + } + } + if (H().s(str) == null) { + H().w(str, null, null); + } + Objects.requireNonNull((c) this.k.o); + T.F(System.currentTimeMillis()); + K().I(T); + if (i != 404) { + } + if (J().u()) { + } + w(); + } + K().s(); + K().e0(); + this.r = false; + x(); + } catch (Throwable th3) { + K().e0(); + throw th3; + } + } + + @WorkerThread + public final void s(String str, d dVar) { + if (t8.b() && this.k.h.o(p.J0)) { + U(); + P(); + this.f1531z.put(str, dVar); + g K = K(); + if (t8.b() && K.a.h.o(p.J0)) { + Objects.requireNonNull(str, "null reference"); + K.b(); + K.n(); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", str); + contentValues.put("consent_state", dVar.d()); + try { + if (K.t().insertWithOnConflict("consent_settings", null, contentValues, 5) == -1) { + K.g().f.b("Failed to insert/update consent setting (got -1). appId", q3.s(str)); + } + } catch (SQLiteException e) { + K.g().f.c("Error storing consent setting. appId, error", q3.s(str), e); + } + } + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:107:0x025f, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:108:0x0261, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:109:0x0262, code lost: + r9 = r4; + */ + /* JADX WARNING: Code restructure failed: missing block: B:113:0x0283, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:114:0x0284, code lost: + r28 = "_si"; + r29 = "_sc"; + */ + /* JADX WARNING: Code restructure failed: missing block: B:123:0x02aa, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:124:0x02ab, code lost: + r2 = r0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:125:0x02af, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:126:0x02b0, code lost: + r28 = "_si"; + r29 = "_sc"; + r9 = r4; + r27 = "_npa"; + r2 = r0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:127:0x02b9, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:128:0x02ba, code lost: + r28 = "_si"; + r29 = "_sc"; + r9 = r4; + r27 = "_npa"; + */ + /* JADX WARNING: Code restructure failed: missing block: B:129:0x02c2, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:130:0x02c3, code lost: + r2 = r0; + r9 = null; + */ + /* JADX WARNING: Code restructure failed: missing block: B:131:0x02c8, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:132:0x02c9, code lost: + r28 = "_si"; + r29 = "_sc"; + r9 = r4; + r27 = "_npa"; + r26 = ""; + */ + /* JADX WARNING: Code restructure failed: missing block: B:133:0x02d2, code lost: + r2 = r0; + r7 = null; + */ + /* JADX WARNING: Code restructure failed: missing block: B:134:0x02d4, code lost: + r14 = null; + */ + /* JADX WARNING: Code restructure failed: missing block: B:32:0x00a8, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:33:0x00a9, code lost: + r9 = r0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:34:0x00ab, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:35:0x00ac, code lost: + r26 = ""; + */ + /* JADX WARNING: Code restructure failed: missing block: B:36:0x00ae, code lost: + r9 = r0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:40:0x00c5, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:46:0x00d1, code lost: + r7 = null; + */ + /* JADX WARNING: Code restructure failed: missing block: B:47:0x00d2, code lost: + r28 = "_si"; + r29 = "_sc"; + r27 = "_npa"; + r2 = r9; + r14 = null; + */ + /* JADX WARNING: Code restructure failed: missing block: B:77:0x0190, code lost: + r0 = e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:78:0x0191, code lost: + r28 = "_si"; + */ + /* JADX WARNING: Code restructure failed: missing block: B:79:0x0193, code lost: + r29 = "_sc"; + */ + /* JADX WARNING: Code restructure failed: missing block: B:90:0x0201, code lost: + r0 = e; + */ + /* JADX WARNING: Exception block dominator not found, dom blocks: [B:23:0x0084, B:50:0x00fe] */ + /* JADX WARNING: Failed to process nested try/catch */ + /* JADX WARNING: Removed duplicated region for block: B:123:0x02aa A[ExcHandler: all (r0v9 'th' java.lang.Throwable A[CUSTOM_DECLARE]), PHI: r7 + PHI: (r7v42 android.database.Cursor) = (r7v49 android.database.Cursor), (r7v49 android.database.Cursor), (r7v54 android.database.Cursor), (r7v54 android.database.Cursor) binds: [B:97:0x0224, B:98:?, B:50:0x00fe, B:51:?] A[DONT_GENERATE, DONT_INLINE], Splitter:B:23:0x0084] */ + /* JADX WARNING: Removed duplicated region for block: B:129:0x02c2 A[ExcHandler: all (r0v8 'th' java.lang.Throwable A[CUSTOM_DECLARE]), Splitter:B:4:0x002c] */ + /* JADX WARNING: Removed duplicated region for block: B:138:0x02e8 */ + /* JADX WARNING: Removed duplicated region for block: B:141:0x02ef */ + /* JADX WARNING: Removed duplicated region for block: B:146:0x02fb */ + /* JADX WARNING: Removed duplicated region for block: B:200:0x04d1 */ + /* JADX WARNING: Removed duplicated region for block: B:207:0x04dd */ + /* JADX WARNING: Removed duplicated region for block: B:213:0x04fa */ + /* JADX WARNING: Removed duplicated region for block: B:226:0x058f */ + /* JADX WARNING: Removed duplicated region for block: B:229:0x05e8 */ + /* JADX WARNING: Removed duplicated region for block: B:230:0x05ec */ + /* JADX WARNING: Removed duplicated region for block: B:239:0x064c */ + /* JADX WARNING: Removed duplicated region for block: B:247:0x0673 A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:250:0x067c */ + /* JADX WARNING: Removed duplicated region for block: B:251:0x0699 */ + /* JADX WARNING: Removed duplicated region for block: B:289:0x078d */ + /* JADX WARNING: Removed duplicated region for block: B:342:0x0934 */ + /* JADX WARNING: Removed duplicated region for block: B:349:0x0955 */ + /* JADX WARNING: Removed duplicated region for block: B:350:0x096f */ + /* JADX WARNING: Removed duplicated region for block: B:472:0x0ce2 */ + /* JADX WARNING: Removed duplicated region for block: B:473:0x0cf5 */ + /* JADX WARNING: Removed duplicated region for block: B:475:0x0cf8 */ + /* JADX WARNING: Removed duplicated region for block: B:476:0x0d1f */ + /* JADX WARNING: Removed duplicated region for block: B:590:0x1083 */ + /* JADX WARNING: Removed duplicated region for block: B:596:0x109a */ + /* JADX WARNING: Removed duplicated region for block: B:610:0x055b A[EDGE_INSN: B:610:0x055b->B:221:0x055b ?: BREAK , SYNTHETIC] */ + @WorkerThread + public final boolean t(long j) { + Cursor cursor; + Throwable th; + Cursor cursor2; + String str; + String str2; + String str3; + String str4; + String str5; + List list; + boolean z2; + boolean z3; + a aVar; + k9 k9Var; + SecureRandom secureRandom; + a aVar2; + HashMap hashMap; + k9 k9Var2; + int i; + boolean z4; + int z5; + Long l; + HashMap hashMap2; + int i2; + long j2; + a4 T; + boolean z6; + a1.a aVar3; + String str6; + boolean z7; + int i3; + String str7; + int i4; + e1.a aVar4; + String str8; + String str9; + int i5; + a1.a aVar5; + int i6; + boolean z8; + e1.a aVar6; + int i7; + boolean z9; + c1.a aVar7; + a1.a aVar8; + String str10; + int i8; + int i9; + boolean z10; + char c; + String str11; + SQLiteException sQLiteException; + SQLiteException e; + String str12; + Cursor cursor3; + Throwable th2; + String[] strArr; + String str13; + SQLiteException e2; + k9 k9Var3 = this; + String str14 = "_sn"; + String str15 = "_ai"; + K().b0(); + try { + a aVar9 = new a(k9Var3, null); + g K = K(); + long j3 = k9Var3.f1530y; + d.A(aVar9); + K.b(); + K.n(); + try { + SQLiteDatabase t = K.t(); + if (TextUtils.isEmpty(null)) { + int i10 = (j3 > -1 ? 1 : (j3 == -1 ? 0 : -1)); + String[] strArr2 = i10 != 0 ? new String[]{String.valueOf(j3), String.valueOf(j)} : new String[]{String.valueOf(j)}; + String str16 = i10 != 0 ? "rowid <= ? and " : ""; + str4 = ""; + StringBuilder sb = new StringBuilder(str16.length() + 148); + sb.append("select app_id, metadata_fingerprint from raw_events where "); + sb.append(str16); + sb.append("app_id in (select app_id from apps where config_fetched_time >= ?) order by rowid limit 1;"); + cursor2 = t.rawQuery(sb.toString(), strArr2); + try { + if (!cursor2.moveToFirst()) { + cursor2.close(); + str2 = "_si"; + str = "_sc"; + str5 = str14; + str3 = "_npa"; + list = aVar9.c; + if (!(list != null || list.isEmpty())) { + e1.a t2 = aVar9.a.t(); + t2.F(); + boolean v = k9Var3.k.a().v(aVar9.a.G1(), p.U); + int i11 = -1; + boolean z11 = false; + int i12 = 0; + int i13 = 0; + a1.a aVar10 = null; + a1.a aVar11 = null; + int i14 = -1; + long j4 = 0; + while (true) { + z2 = z11; + if (i13 >= aVar9.c.size()) { + break; + } + a1.a t3 = aVar9.c.get(i13).t(); + if (H().x(aVar9.a.G1(), t3.y())) { + z7 = v; + k9Var3.k.g().A().c("Dropping blacklisted raw event. appId", q3.s(aVar9.a.G1()), k9Var3.k.u().u(t3.y())); + if (!(H().C(aVar9.a.G1()) || H().D(aVar9.a.G1())) && !"_err".equals(t3.y())) { + k9Var3.k.t().S(k9Var3.A, aVar9.a.G1(), 11, "_ev", t3.y(), 0); + } + i3 = i11; + str6 = str15; + aVar3 = aVar11; + z11 = z2; + i12 = i12; + str7 = str5; + str8 = str2; + str9 = str; + i4 = i13; + aVar4 = t2; + } else { + z7 = v; + if (x7.b() && k9Var3.k.a().v(aVar9.a.G1(), p.M0) && t3.y().equals(v5.a(str15))) { + t3.t(str15); + k9Var3.k.g().D().a("Renaming ad_impression to _ai"); + if (k9Var3.k.g().x(5)) { + for (int i15 = 0; i15 < t3.w(); i15++) { + if ("ad_platform".equals(t3.u(i15).B()) && !TextUtils.isEmpty(t3.u(i15).G()) && AdjustConfig.AD_REVENUE_ADMOB.equalsIgnoreCase(t3.u(i15).G())) { + k9Var3.k.g().B().a("AdMob ad impression logged from app. Potentially duplicative."); + } + } + } + } + boolean y2 = H().y(aVar9.a.G1(), t3.y()); + if (!y2) { + N(); + String y3 = t3.y(); + d.w(y3); + str6 = str15; + int hashCode = y3.hashCode(); + i5 = i14; + if (hashCode != 94660) { + if (hashCode != 95025) { + if (hashCode == 95027 && y3.equals("_ui")) { + c = 1; + if (!(c != 0 || c == 1 || c == 2)) { + aVar6 = t2; + aVar5 = aVar10; + aVar3 = aVar11; + } + aVar5 = aVar10; + i6 = 0; + boolean z12 = false; + z8 = false; + while (true) { + aVar6 = t2; + if (i6 >= t3.w()) { + break; + } + if ("_c".equals(t3.u(i6).B())) { + c1.a t4 = t3.u(i6).t(); + t4.r(1); + t3.q(i6, (c1) ((u4) t4.p())); + aVar8 = aVar11; + z12 = true; + } else if ("_r".equals(t3.u(i6).B())) { + c1.a t5 = t3.u(i6).t(); + aVar8 = aVar11; + t5.r(1); + t3.q(i6, (c1) ((u4) t5.p())); + z8 = true; + } else { + aVar8 = aVar11; + } + i6++; + t2 = aVar6; + aVar11 = aVar8; + } + aVar3 = aVar11; + if (!z12 && y2) { + k9Var3.k.g().D().b("Marking event as conversion", k9Var3.k.u().u(t3.y())); + c1.a Q = c1.Q(); + Q.s("_c"); + Q.r(1); + t3.s(Q); + } + if (!z8) { + k9Var3.k.g().D().b("Marking event as real-time", k9Var3.k.u().u(t3.y())); + c1.a Q2 = c1.Q(); + Q2.s("_r"); + Q2.r(1); + t3.s(Q2); + } + if (K().y(V(), aVar9.a.G1(), false, true).e > ((long) k9Var3.k.a().s(aVar9.a.G1()))) { + e(t3, "_r"); + } else { + z2 = true; + } + if (t9.X(t3.y()) && y2 && K().y(V(), aVar9.a.G1(), true, false).c > ((long) k9Var3.k.a().q(aVar9.a.G1(), p.n))) { + k9Var3.k.g().A().b("Too many conversions. Not logging as conversion. appId", q3.s(aVar9.a.G1())); + z9 = false; + int i16 = -1; + aVar7 = null; + for (i7 = 0; i7 < t3.w(); i7++) { + c1 u = t3.u(i7); + if ("_c".equals(u.B())) { + aVar7 = u.t(); + i16 = i7; + } else if ("_err".equals(u.B())) { + z9 = true; + } + } + if (!z9 && aVar7 != null) { + t3.x(i16); + } else if (aVar7 != null) { + c1.a aVar12 = (c1.a) ((u4.b) aVar7.clone()); + aVar12.s("_err"); + aVar12.r(10); + t3.q(i16, (c1) ((u4) aVar12.p())); + } else { + k9Var3.k.g().z().b("Did not find conversion parameter. appId", q3.s(aVar9.a.G1())); + } + } + } + } else if (y3.equals("_ug")) { + c = 2; + if (!(c != 0 || c == 1 || c == 2)) { + } + aVar5 = aVar10; + i6 = 0; + boolean z12 = false; + z8 = false; + while (true) { + aVar6 = t2; + if (i6 >= t3.w()) { + } + i6++; + t2 = aVar6; + aVar11 = aVar8; + } + aVar3 = aVar11; + k9Var3.k.g().D().b("Marking event as conversion", k9Var3.k.u().u(t3.y())); + c1.a Q = c1.Q(); + Q.s("_c"); + Q.r(1); + t3.s(Q); + if (!z8) { + } + if (K().y(V(), aVar9.a.G1(), false, true).e > ((long) k9Var3.k.a().s(aVar9.a.G1()))) { + } + k9Var3.k.g().A().b("Too many conversions. Not logging as conversion. appId", q3.s(aVar9.a.G1())); + z9 = false; + int i16 = -1; + aVar7 = null; + while (i7 < t3.w()) { + } + if (!z9) { + } + if (aVar7 != null) { + } + } + } else if (y3.equals("_in")) { + c = 0; + if (!(c != 0 || c == 1 || c == 2)) { + } + aVar5 = aVar10; + i6 = 0; + boolean z12 = false; + z8 = false; + while (true) { + aVar6 = t2; + if (i6 >= t3.w()) { + } + i6++; + t2 = aVar6; + aVar11 = aVar8; + } + aVar3 = aVar11; + k9Var3.k.g().D().b("Marking event as conversion", k9Var3.k.u().u(t3.y())); + c1.a Q = c1.Q(); + Q.s("_c"); + Q.r(1); + t3.s(Q); + if (!z8) { + } + if (K().y(V(), aVar9.a.G1(), false, true).e > ((long) k9Var3.k.a().s(aVar9.a.G1()))) { + } + k9Var3.k.g().A().b("Too many conversions. Not logging as conversion. appId", q3.s(aVar9.a.G1())); + z9 = false; + int i16 = -1; + aVar7 = null; + while (i7 < t3.w()) { + } + if (!z9) { + } + if (aVar7 != null) { + } + } + c = 65535; + if (!(c != 0 || c == 1 || c == 2)) { + } + aVar5 = aVar10; + i6 = 0; + boolean z12 = false; + z8 = false; + while (true) { + aVar6 = t2; + if (i6 >= t3.w()) { + } + i6++; + t2 = aVar6; + aVar11 = aVar8; + } + aVar3 = aVar11; + k9Var3.k.g().D().b("Marking event as conversion", k9Var3.k.u().u(t3.y())); + c1.a Q = c1.Q(); + Q.s("_c"); + Q.r(1); + t3.s(Q); + if (!z8) { + } + if (K().y(V(), aVar9.a.G1(), false, true).e > ((long) k9Var3.k.a().s(aVar9.a.G1()))) { + } + k9Var3.k.g().A().b("Too many conversions. Not logging as conversion. appId", q3.s(aVar9.a.G1())); + z9 = false; + int i16 = -1; + aVar7 = null; + while (i7 < t3.w()) { + } + if (!z9) { + } + if (aVar7 != null) { + } + } else { + str6 = str15; + i5 = i14; + aVar5 = aVar10; + i6 = 0; + boolean z12 = false; + z8 = false; + while (true) { + aVar6 = t2; + if (i6 >= t3.w()) { + } + i6++; + t2 = aVar6; + aVar11 = aVar8; + } + aVar3 = aVar11; + k9Var3.k.g().D().b("Marking event as conversion", k9Var3.k.u().u(t3.y())); + c1.a Q = c1.Q(); + Q.s("_c"); + Q.r(1); + t3.s(Q); + if (!z8) { + } + if (K().y(V(), aVar9.a.G1(), false, true).e > ((long) k9Var3.k.a().s(aVar9.a.G1()))) { + } + k9Var3.k.g().A().b("Too many conversions. Not logging as conversion. appId", q3.s(aVar9.a.G1())); + z9 = false; + int i16 = -1; + aVar7 = null; + while (i7 < t3.w()) { + } + if (!z9) { + } + if (aVar7 != null) { + } + } + z11 = z2; + if (y2) { + ArrayList arrayList = new ArrayList(t3.v()); + int i17 = -1; + int i18 = -1; + for (int i19 = 0; i19 < arrayList.size(); i19++) { + if ("value".equals(((c1) arrayList.get(i19)).B())) { + i17 = i19; + } else if ("currency".equals(((c1) arrayList.get(i19)).B())) { + i18 = i19; + } + } + if (i17 != -1) { + if (((c1) arrayList.get(i17)).I() || ((c1) arrayList.get(i17)).M()) { + if (i18 == -1) { + z10 = true; + } else { + String G = ((c1) arrayList.get(i18)).G(); + if (G.length() == 3) { + int i20 = 0; + while (true) { + if (i20 >= G.length()) { + z10 = false; + break; + } + int codePointAt = G.codePointAt(i20); + if (!Character.isLetter(codePointAt)) { + break; + } + i20 += Character.charCount(codePointAt); + } + } + z10 = true; + } + if (z10) { + k9Var3.k.g().B().a("Value parameter discarded. You must also supply a 3-letter ISO_4217 currency code in the currency parameter."); + t3.x(i17); + e(t3, "_c"); + d(t3, 19, "currency"); + } + if (k9Var3.k.a().v(aVar9.a.G1(), p.T)) { + if ("_e".equals(t3.y())) { + N(); + if (q9.w((a1) ((u4) t3.p()), "_fr") == null) { + if (aVar3 != null && Math.abs(aVar3.z() - t3.z()) <= 1000) { + a1.a aVar13 = (a1.a) ((u4.b) aVar3.clone()); + if (k9Var3.u(t3, aVar13)) { + aVar4 = aVar6; + aVar4.r(i11, aVar13); + str10 = "_et"; + i9 = i5; + i3 = i11; + i14 = i9; + str7 = str5; + str8 = str2; + str9 = str; + aVar5 = null; + aVar3 = null; + if (!z7 && "_e".equals(t3.y())) { + if (t3.w() == 0) { + k9Var3.k.g().A().b("Engagement event does not contain any parameters. appId", q3.s(aVar9.a.G1())); + } else { + N(); + Long l2 = (Long) q9.R((a1) ((u4) t3.p()), str10); + if (l2 == null) { + k9Var3.k.g().A().b("Engagement event does not include duration. appId", q3.s(aVar9.a.G1())); + } else { + j4 += l2.longValue(); + } + } + } + i4 = i13; + aVar9.c.set(i4, (a1) ((u4) t3.p())); + i12++; + aVar4.t(t3); + aVar10 = aVar5; + } + } + aVar4 = aVar6; + aVar5 = t3; + i14 = i12; + } else { + aVar4 = aVar6; + i14 = i5; + } + i3 = i11; + str7 = str5; + str10 = "_et"; + } else { + aVar4 = aVar6; + if ("_vs".equals(t3.y())) { + N(); + str10 = "_et"; + if (q9.w((a1) ((u4) t3.p()), str10) == null) { + if (aVar5 != null && Math.abs(aVar5.z() - t3.z()) <= 1000) { + a1.a aVar14 = (a1.a) ((u4.b) aVar5.clone()); + if (k9Var3.u(aVar14, t3)) { + i9 = i5; + aVar4.r(i9, aVar14); + i3 = i11; + i14 = i9; + str7 = str5; + str8 = str2; + str9 = str; + aVar5 = null; + aVar3 = null; + if (t3.w() == 0) { + } + i4 = i13; + aVar9.c.set(i4, (a1) ((u4) t3.p())); + i12++; + aVar4.t(t3); + aVar10 = aVar5; + } + } + aVar3 = t3; + i14 = i5; + i3 = i12; + str7 = str5; + } else { + i8 = i5; + } + } else { + str10 = "_et"; + i8 = i5; + if (k9Var3.k.a().v(aVar9.a.G1(), p.m0) && "_ab".equals(t3.y())) { + N(); + if (q9.w((a1) ((u4) t3.p()), str10) == null && aVar5 != null && Math.abs(aVar5.z() - t3.z()) <= 4000) { + a1.a aVar15 = (a1.a) ((u4.b) aVar5.clone()); + k9Var3.A(aVar15, t3); + d.l("_e".equals(aVar15.y())); + N(); + str7 = str5; + c1 w = q9.w((a1) ((u4) aVar15.p()), str7); + N(); + str9 = str; + c1 w2 = q9.w((a1) ((u4) aVar15.p()), str9); + N(); + i3 = i11; + str8 = str2; + c1 w3 = q9.w((a1) ((u4) aVar15.p()), str8); + String G2 = w != null ? w.G() : str4; + if (!TextUtils.isEmpty(G2)) { + N(); + q9.E(t3, str7, G2); + } + String G3 = w2 != null ? w2.G() : str4; + if (!TextUtils.isEmpty(G3)) { + N(); + q9.E(t3, str9, G3); + } + if (w3 != null) { + N(); + q9.E(t3, str8, Long.valueOf(w3.J())); + } + aVar4.r(i8, aVar15); + i14 = i8; + aVar5 = null; + if (t3.w() == 0) { + } + i4 = i13; + aVar9.c.set(i4, (a1) ((u4) t3.p())); + i12++; + aVar4.t(t3); + aVar10 = aVar5; + } + } + } + i3 = i11; + str7 = str5; + str8 = str2; + str9 = str; + } + str8 = str2; + str9 = str; + if (t3.w() == 0) { + } + i4 = i13; + aVar9.c.set(i4, (a1) ((u4) t3.p())); + i12++; + aVar4.t(t3); + aVar10 = aVar5; + } else { + i3 = i11; + str7 = str5; + str10 = "_et"; + str8 = str2; + str9 = str; + i8 = i5; + aVar4 = aVar6; + } + i14 = i8; + if (t3.w() == 0) { + } + i4 = i13; + aVar9.c.set(i4, (a1) ((u4) t3.p())); + i12++; + aVar4.t(t3); + aVar10 = aVar5; + } else { + k9Var3.k.g().B().a("Value must be specified with a numeric type."); + t3.x(i17); + e(t3, "_c"); + d(t3, 18, "value"); + } + } + if (k9Var3.k.a().v(aVar9.a.G1(), p.T)) { + } + i14 = i8; + if (t3.w() == 0) { + } + i4 = i13; + aVar9.c.set(i4, (a1) ((u4) t3.p())); + i12++; + aVar4.t(t3); + aVar10 = aVar5; + } + if (k9Var3.k.a().v(aVar9.a.G1(), p.T)) { + } + i14 = i8; + if (t3.w() == 0) { + } + i4 = i13; + aVar9.c.set(i4, (a1) ((u4) t3.p())); + i12++; + aVar4.t(t3); + aVar10 = aVar5; + } + i13 = i4 + 1; + str = str9; + str2 = str8; + t2 = aVar4; + str5 = str7; + i11 = i3; + v = z7; + str15 = str6; + aVar11 = aVar3; + } + if (v) { + int i21 = i12; + int i22 = 0; + while (i22 < i21) { + a1 B = t2.B(i22); + if ("_e".equals(B.F())) { + N(); + if (q9.w(B, "_fr") != null) { + t2.G(i22); + i21--; + i22--; + i22++; + } + } + N(); + c1 w4 = q9.w(B, "_et"); + if (w4 != null) { + Long valueOf = w4.I() ? Long.valueOf(w4.J()) : null; + if (valueOf != null && valueOf.longValue() > 0) { + j4 += valueOf.longValue(); + } + } + i22++; + } + } + k9Var3.i(t2, j4, false); + Iterator it = t2.z().iterator(); + while (true) { + if (it.hasNext()) { + if ("_s".equals(it.next().F())) { + z3 = true; + break; + } + } else { + z3 = false; + break; + } + } + if (z3) { + K().V(t2.k0(), "_se"); + } + if (q9.s(t2, "_sid") >= 0) { + k9Var3.i(t2, j4, true); + } else { + int s2 = q9.s(t2, "_se"); + if (s2 >= 0) { + t2.R(s2); + k9Var3.k.g().z().b("Session engagement user property is in the bundle without session ID. appId", q3.s(aVar9.a.G1())); + } + } + q9 N = N(); + N.g().D().a("Checking account type status for ad personalization signals"); + if (N.r().A(t2.k0()) && (T = N.q().T(t2.k0())) != null && T.h() && N.c().w()) { + N.g().C().a("Turning off ad personalization due to account type"); + i1.a L = i1.L(); + L.r(str3); + L.q(N.c().v()); + L.s(1); + i1 i1Var = (i1) ((u4) L.p()); + int i23 = 0; + while (true) { + if (i23 >= t2.Q()) { + z6 = false; + break; + } else if (str3.equals(t2.O(i23).D())) { + t2.s(i23, i1Var); + z6 = true; + break; + } else { + i23++; + } + } + if (!z6) { + t2.v(i1Var); + } + } + t2.D(RecyclerView.FOREVER_NS); + t2.H(Long.MIN_VALUE); + for (int i24 = 0; i24 < t2.A(); i24++) { + a1 B2 = t2.B(i24); + if (B2.H() < t2.U()) { + t2.D(B2.H()); + } + if (B2.H() > t2.Y()) { + t2.H(B2.H()); + } + } + if (hb.b() && k9Var3.k.a().v(t2.k0(), p.G0)) { + t2.v0(); + } + t2.t0(); + t2.I(M().t(t2.k0(), t2.z(), t2.P(), Long.valueOf(t2.U()), Long.valueOf(t2.Y()))); + if (k9Var3.k.a().A(aVar9.a.G1())) { + HashMap hashMap3 = new HashMap(); + ArrayList arrayList2 = new ArrayList(); + SecureRandom v0 = k9Var3.k.t().v0(); + int i25 = 0; + while (i25 < t2.A()) { + a1.a t6 = t2.B(i25).t(); + if (t6.y().equals("_ep")) { + N(); + String str17 = (String) q9.R((a1) ((u4) t6.p()), "_en"); + l lVar = (l) hashMap3.get(str17); + if (lVar == null) { + lVar = K().z(aVar9.a.G1(), str17); + hashMap3.put(str17, lVar); + } + if (lVar.i == null) { + if (lVar.j.longValue() > 1) { + N(); + q9.E(t6, "_sr", lVar.j); + } + Boolean bool = lVar.k; + if (bool != null && bool.booleanValue()) { + N(); + q9.E(t6, "_efs", 1L); + } + arrayList2.add((a1) ((u4) t6.p())); + } + t2.r(i25, t6); + } else { + long B3 = H().B(aVar9.a.G1()); + k9Var3.k.t(); + long u2 = t9.u(t6.z(), B3); + a1 a1Var = (a1) ((u4) t6.p()); + Long l3 = 1L; + if (!TextUtils.isEmpty("_dbg") && l3 != null) { + Iterator it2 = a1Var.v().iterator(); + while (true) { + if (!it2.hasNext()) { + break; + } + c1 next = it2.next(); + if (!"_dbg".equals(next.B())) { + it2 = it2; + } else if (l3.equals(Long.valueOf(next.J())) || (((l3 instanceof String) && l3.equals(next.G())) || ((l3 instanceof Double) && l3.equals(Double.valueOf(next.N()))))) { + z4 = true; + } + } + z5 = z4 ? H().z(aVar9.a.G1(), t6.y()) : 1; + if (z5 > 0) { + k9Var3.k.g().A().c("Sample rate must be positive. event, rate", t6.y(), Integer.valueOf(z5)); + arrayList2.add((a1) ((u4) t6.p())); + t2.r(i25, t6); + } else { + l lVar2 = (l) hashMap3.get(t6.y()); + if (lVar2 == null) { + try { + lVar2 = K().z(aVar9.a.G1(), t6.y()); + if (lVar2 == null) { + k9Var3.k.g().A().c("Event being bundled has no eventAggregate. appId, eventName", aVar9.a.G1(), t6.y()); + lVar2 = new l(aVar9.a.G1(), t6.y(), 1, 1, 1, t6.z(), 0, null, null, null, null); + } + } catch (Throwable th3) { + th = th3; + K().e0(); + throw th; + } + } + N(); + Long l4 = (Long) q9.R((a1) ((u4) t6.p()), "_eid"); + Boolean valueOf2 = Boolean.valueOf(l4 != null); + if (z5 == 1) { + arrayList2.add((a1) ((u4) t6.p())); + if (valueOf2.booleanValue() && !(lVar2.i == null && lVar2.j == null && lVar2.k == null)) { + hashMap3.put(t6.y(), lVar2.c(null, null, null)); + } + t2.r(i25, t6); + } else { + if (v0.nextInt(z5) == 0) { + N(); + aVar2 = aVar9; + long j5 = (long) z5; + q9.E(t6, "_sr", Long.valueOf(j5)); + arrayList2.add((a1) ((u4) t6.p())); + if (valueOf2.booleanValue()) { + lVar2 = lVar2.c(null, Long.valueOf(j5), null); + } + hashMap3.put(t6.y(), lVar2.b(t6.z(), u2)); + k9Var2 = this; + hashMap = hashMap3; + secureRandom = v0; + i = i25; + } else { + aVar2 = aVar9; + Long l5 = lVar2.h; + if (l5 != null) { + long longValue = l5.longValue(); + k9Var2 = this; + l = l4; + hashMap2 = hashMap3; + j2 = longValue; + secureRandom = v0; + i2 = i25; + } else { + k9Var2 = this; + secureRandom = v0; + k9Var2.k.t(); + i2 = i25; + l = l4; + hashMap2 = hashMap3; + j2 = t9.u(t6.A(), B3); + } + if (j2 != u2) { + N(); + q9.E(t6, "_efs", 1L); + N(); + long j6 = (long) z5; + q9.E(t6, "_sr", Long.valueOf(j6)); + arrayList2.add((a1) ((u4) t6.p())); + if (valueOf2.booleanValue()) { + lVar2 = lVar2.c(null, Long.valueOf(j6), Boolean.TRUE); + } + hashMap = hashMap2; + hashMap.put(t6.y(), lVar2.b(t6.z(), u2)); + } else { + hashMap = hashMap2; + if (valueOf2.booleanValue()) { + hashMap.put(t6.y(), lVar2.c(l, null, null)); + } + } + i = i2; + } + t2.r(i, t6); + i25 = i + 1; + k9Var3 = k9Var2; + hashMap3 = hashMap; + aVar9 = aVar2; + v0 = secureRandom; + } + } + } + z4 = false; + if (z4) { + } + if (z5 > 0) { + } + } + hashMap = hashMap3; + secureRandom = v0; + i = i25; + aVar2 = aVar9; + k9Var2 = this; + i25 = i + 1; + k9Var3 = k9Var2; + hashMap3 = hashMap; + aVar9 = aVar2; + v0 = secureRandom; + } + aVar = aVar9; + k9Var = k9Var3; + if (arrayList2.size() < t2.A()) { + t2.F(); + t2.w(arrayList2); + } + for (Map.Entry entry : hashMap3.entrySet()) { + K().H((l) entry.getValue()); + } + } else { + aVar = aVar9; + k9Var = k9Var3; + } + String G1 = aVar.a.G1(); + a4 T2 = K().T(G1); + if (T2 == null) { + k9Var.k.g().z().b("Bundling raw events w/o app info. appId", q3.s(aVar.a.G1())); + } else if (t2.A() > 0) { + long L2 = T2.L(); + if (L2 != 0) { + t2.S(L2); + } else { + t2.f0(); + } + long K2 = T2.K(); + if (K2 != 0) { + L2 = K2; + } + if (L2 != 0) { + t2.K(L2); + } else { + t2.b0(); + } + T2.X(); + t2.Z((int) T2.U()); + T2.a(t2.U()); + T2.l(t2.Y()); + String f = T2.f(); + if (f != null) { + t2.j0(f); + } else { + t2.p0(); + } + K().I(T2); + } + if (t2.A() > 0) { + u0 s3 = H().s(aVar.a.G1()); + if (s3 != null) { + if (s3.x()) { + t2.g0(s3.y()); + K().K((e1) ((u4) t2.p()), z2); + } + } + if (TextUtils.isEmpty(aVar.a.S())) { + t2.g0(-1); + } else { + k9Var.k.g().A().b("Did not find measurement config or missing version info. appId", q3.s(aVar.a.G1())); + } + K().K((e1) ((u4) t2.p()), z2); + } + g K3 = K(); + List list2 = aVar.f1532b; + d.A(list2); + K3.b(); + K3.n(); + StringBuilder sb2 = new StringBuilder("rowid in ("); + for (int i26 = 0; i26 < list2.size(); i26++) { + if (i26 != 0) { + sb2.append(","); + } + sb2.append(list2.get(i26).longValue()); + } + sb2.append(")"); + int delete = K3.t().delete("raw_events", sb2.toString(), null); + if (delete != list2.size()) { + K3.g().z().c("Deleted fewer rows from raw events table than expected", Integer.valueOf(delete), Integer.valueOf(list2.size())); + } + g K4 = K(); + try { + K4.t().execSQL("delete from raw_events_metadata where app_id=? and metadata_fingerprint not in (select distinct metadata_fingerprint from raw_events where app_id=?)", new String[]{G1, G1}); + } catch (SQLiteException e3) { + K4.g().z().c("Failed to remove unused event metadata. appId", q3.s(G1), e3); + } + K().s(); + K().e0(); + return true; + } + K().s(); + K().e0(); + return false; + } + str11 = cursor2.getString(0); + str12 = cursor2.getString(1); + cursor2.close(); + } catch (SQLiteException e4) { + e = e4; + str2 = "_si"; + str = "_sc"; + str5 = str14; + str3 = "_npa"; + } catch (Throwable th4) { + } + } else { + str4 = ""; + int i27 = (j3 > -1 ? 1 : (j3 == -1 ? 0 : -1)); + String[] strArr3 = i27 != 0 ? new String[]{null, String.valueOf(j3)} : new String[]{null}; + String str18 = i27 != 0 ? " and rowid <= ?" : str4; + StringBuilder sb3 = new StringBuilder(str18.length() + 84); + sb3.append("select metadata_fingerprint from raw_events where app_id = ?"); + sb3.append(str18); + sb3.append(" order by rowid limit 1;"); + cursor2 = t.rawQuery(sb3.toString(), strArr3); + if (!cursor2.moveToFirst()) { + cursor2.close(); + str2 = "_si"; + str = "_sc"; + str5 = str14; + str3 = "_npa"; + list = aVar9.c; + if (!(list != null || list.isEmpty())) { + } + } else { + str12 = cursor2.getString(0); + cursor2.close(); + str11 = null; + } + } + try { + cursor3 = cursor2; + try { + cursor2 = t.query("raw_events_metadata", new String[]{"metadata"}, "app_id = ? and metadata_fingerprint = ?", new String[]{str11, str12}, null, null, "rowid", ExifInterface.GPS_MEASUREMENT_2D); + if (!cursor2.moveToFirst()) { + K.g().z().b("Raw event metadata record is missing. appId", q3.s(str11)); + cursor2.close(); + str2 = "_si"; + str = "_sc"; + str5 = str14; + str3 = "_npa"; + list = aVar9.c; + if (!(list != null || list.isEmpty())) { + } + } else { + str3 = "_npa"; + try { + e1 e1Var = (e1) ((u4) ((e1.a) q9.x(e1.u0(), cursor2.getBlob(0))).p()); + if (cursor2.moveToNext()) { + str2 = "_si"; + str = "_sc"; + K.g().A().b("Get multiple raw event metadata records, expected one. appId", q3.s(str11)); + } else { + str2 = "_si"; + str = "_sc"; + } + cursor2.close(); + aVar9.a(e1Var); + if (j3 != -1) { + str13 = "app_id = ? and metadata_fingerprint = ? and rowid <= ?"; + strArr = new String[]{str11, str12, String.valueOf(j3)}; + } else { + str13 = "app_id = ? and metadata_fingerprint = ?"; + strArr = new String[]{str11, str12}; + } + cursor2 = t.query("raw_events", new String[]{"rowid", ModelAuditLogEntry.CHANGE_KEY_NAME, "timestamp", "data"}, str13, strArr, null, null, "rowid", null); + if (!cursor2.moveToFirst()) { + K.g().A().b("Raw event data disappeared while in transaction. appId", q3.s(str11)); + cursor2.close(); + str5 = str14; + } else { + while (true) { + long j7 = cursor2.getLong(0); + try { + a1.a aVar16 = (a1.a) q9.x(a1.M(), cursor2.getBlob(3)); + aVar16.t(cursor2.getString(1)); + str5 = str14; + aVar16.r(cursor2.getLong(2)); + if (!aVar9.b(j7, (a1) ((u4) aVar16.p()))) { + cursor2.close(); + break; + } + } catch (IOException e5) { + str5 = str14; + K.g().z().c("Data loss. Failed to merge raw event. appId", q3.s(str11), e5); + } + if (!cursor2.moveToNext()) { + cursor2.close(); + break; + } + str14 = str5; + } + } + } catch (IOException e6) { + str2 = "_si"; + str = "_sc"; + str5 = str14; + K.g().z().c("Data loss. Failed to merge raw event metadata. appId", q3.s(str11), e6); + cursor2.close(); + } + list = aVar9.c; + if (!(list != null || list.isEmpty())) { + } + } + } catch (SQLiteException e7) { + e = e7; + str2 = "_si"; + str = "_sc"; + str5 = str14; + str3 = "_npa"; + cursor2 = cursor3; + sQLiteException = e; + try { + K.g().z().c("Data loss. Error selecting raw event. appId", q3.s(str11), sQLiteException); + if (cursor2 != null) { + cursor2.close(); + } + list = aVar9.c; + if (!(list != null || list.isEmpty())) { + } + } catch (Throwable th5) { + th = th5; + cursor = cursor2; + if (cursor != null) { + } + throw th; + } + } catch (Throwable th6) { + th2 = th6; + cursor = cursor3; + th = th2; + if (cursor != null) { + cursor.close(); + } + throw th; + } + } catch (SQLiteException e8) { + e = e8; + str2 = "_si"; + str = "_sc"; + str5 = str14; + str3 = "_npa"; + sQLiteException = e; + K.g().z().c("Data loss. Error selecting raw event. appId", q3.s(str11), sQLiteException); + if (cursor2 != null) { + } + list = aVar9.c; + if (!(list != null || list.isEmpty())) { + } + } catch (Throwable th7) { + th2 = th7; + cursor3 = cursor2; + cursor = cursor3; + th = th2; + if (cursor != null) { + } + throw th; + } + sQLiteException = e2; + str5 = str14; + K.g().z().c("Data loss. Error selecting raw event. appId", q3.s(str11), sQLiteException); + if (cursor2 != null) { + } + list = aVar9.c; + if (!(list != null || list.isEmpty())) { + } + } catch (SQLiteException e9) { + SQLiteException sQLiteException2 = e9; + str4 = ""; + } catch (Throwable th8) { + } + } catch (Throwable th9) { + th = th9; + K().e0(); + throw th; + } + } + + public final boolean u(a1.a aVar, a1.a aVar2) { + d.l("_e".equals(aVar.y())); + N(); + c1 w = q9.w((a1) ((u4) aVar.p()), "_sc"); + String str = null; + String G = w == null ? null : w.G(); + N(); + c1 w2 = q9.w((a1) ((u4) aVar2.p()), "_pc"); + if (w2 != null) { + str = w2.G(); + } + if (str == null || !str.equals(G)) { + return false; + } + A(aVar, aVar2); + return true; + } + + public final boolean v() { + U(); + P(); + return ((K().S("select count(1) > 0 from raw_events", null) > 0 ? 1 : (K().S("select count(1) > 0 from raw_events", null) == 0 ? 0 : -1)) != 0) || !TextUtils.isEmpty(K().u()); + } + + /* JADX WARNING: Removed duplicated region for block: B:101:0x0399 */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x00a8 */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x00e4 */ + /* JADX WARNING: Removed duplicated region for block: B:33:0x012c */ + /* JADX WARNING: Removed duplicated region for block: B:54:0x01a4 */ + /* JADX WARNING: Removed duplicated region for block: B:56:0x01c2 */ + @WorkerThread + public final void w() { + boolean z2; + long j; + long max; + long j2; + int i; + Method method; + U(); + P(); + if (this.n > 0) { + Objects.requireNonNull((c) this.k.o); + long abs = 3600000 - Math.abs(SystemClock.elapsedRealtime() - this.n); + if (abs > 0) { + this.k.g().n.b("Upload has been suspended. Will update scheduling later in approximately ms", Long.valueOf(abs)); + S().a(); + T().s(); + return; + } + this.n = 0; + } + if (!this.k.m() || !v()) { + this.k.g().n.a("Nothing to upload or uploading impossible"); + S().a(); + T().s(); + return; + } + Objects.requireNonNull((c) this.k.o); + long currentTimeMillis = System.currentTimeMillis(); + long max2 = Math.max(0L, p.A.a(null).longValue()); + if (!(K().S("select count(1) > 0 from raw_events where realtime = 1", null) != 0)) { + if (!(K().S("select count(1) > 0 from queue where has_realtime = 1", null) != 0)) { + z2 = false; + if (!z2) { + String i2 = this.k.h.i("debug.firebase.analytics.app", ""); + j = (TextUtils.isEmpty(i2) || ".none.".equals(i2)) ? Math.max(0L, p.u.a(null).longValue()) : Math.max(0L, p.v.a(null).longValue()); + } else { + j = Math.max(0L, p.t.a(null).longValue()); + } + long a2 = this.k.o().f.a(); + long a3 = this.k.o().g.a(); + max = Math.max(K().w("select max(bundle_end_timestamp) from queue", null, 0), K().w("select max(timestamp) from raw_events", null, 0)); + if (max != 0) { + long abs2 = currentTimeMillis - Math.abs(max - currentTimeMillis); + long abs3 = currentTimeMillis - Math.abs(a2 - currentTimeMillis); + long abs4 = currentTimeMillis - Math.abs(a3 - currentTimeMillis); + long max3 = Math.max(abs3, abs4); + j2 = max2 + abs2; + if (z2 && max3 > 0) { + j2 = Math.min(abs2, max3) + j; + } + if (!N().N(max3, j)) { + j2 = max3 + j; + } + if (abs4 != 0 && abs4 >= abs2) { + int i3 = 0; + while (true) { + if (i3 >= Math.min(20, Math.max(0, p.C.a(null).intValue()))) { + break; + } + j2 += Math.max(0L, p.B.a(null).longValue()) * (1 << i3); + if (j2 > abs4) { + break; + } + i3++; + } + } + if (j2 == 0) { + this.k.g().n.a("Next upload time is 0"); + S().a(); + T().s(); + return; + } else if (!J().u()) { + this.k.g().n.a("No network"); + b4 S = S(); + S.a.P(); + S.a.f().b(); + if (!S.f1505b) { + S.a.k.f1555b.registerReceiver(S, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE")); + S.c = S.a.J().u(); + S.a.g().n.b("Registering connectivity change receiver. Network connected", Boolean.valueOf(S.c)); + S.f1505b = true; + } + T().s(); + return; + } else { + long a4 = this.k.o().h.a(); + long max4 = Math.max(0L, p.r.a(null).longValue()); + if (!N().N(a4, max4)) { + j2 = Math.max(j2, a4 + max4); + } + S().a(); + Objects.requireNonNull((c) this.k.o); + long currentTimeMillis2 = j2 - System.currentTimeMillis(); + if (currentTimeMillis2 <= 0) { + currentTimeMillis2 = Math.max(0L, p.w.a(null).longValue()); + h4 h4Var = this.k.o().f; + Objects.requireNonNull((c) this.k.o); + h4Var.b(System.currentTimeMillis()); + } + this.k.g().n.b("Upload scheduled in approximately ms", Long.valueOf(currentTimeMillis2)); + h9 T = T(); + T.n(); + Context context = T.a.f1555b; + if (!n4.a(context)) { + T.g().m.a("Receiver not registered/enabled"); + } + if (!t9.U(context)) { + T.g().m.a("Service not registered/enabled"); + } + T.s(); + T.g().n.b("Scheduling upload, millis", Long.valueOf(currentTimeMillis2)); + Objects.requireNonNull((c) T.a.o); + long elapsedRealtime = SystemClock.elapsedRealtime() + currentTimeMillis2; + if (currentTimeMillis2 < Math.max(0L, p.f1548x.a(null).longValue())) { + if (!(T.e.d != 0)) { + T.e.b(currentTimeMillis2); + } + } + if (Build.VERSION.SDK_INT >= 24) { + Context context2 = T.a.f1555b; + ComponentName componentName = new ComponentName(context2, "com.google.android.gms.measurement.AppMeasurementJobService"); + int t = T.t(); + PersistableBundle persistableBundle = new PersistableBundle(); + persistableBundle.putString("action", "com.google.android.gms.measurement.UPLOAD"); + JobInfo build = new JobInfo.Builder(t, componentName).setMinimumLatency(currentTimeMillis2).setOverrideDeadline(currentTimeMillis2 << 1).setExtras(persistableBundle).build(); + Method method2 = a4.a; + JobScheduler jobScheduler = (JobScheduler) context2.getSystemService("jobscheduler"); + if (a4.a == null || context2.checkSelfPermission("android.permission.UPDATE_DEVICE_STATS") != 0) { + jobScheduler.schedule(build); + return; + } + Method method3 = a4.f1420b; + if (method3 != null) { + try { + i = ((Integer) method3.invoke(null, new Object[0])).intValue(); + } catch (IllegalAccessException | InvocationTargetException e) { + if (Log.isLoggable("JobSchedulerCompat", 6)) { + Log.e("JobSchedulerCompat", "myUserId invocation illegal", e); + } + } + method = a4.a; + if (method != null) { + try { + ((Integer) method.invoke(jobScheduler, build, "com.google.android.gms", Integer.valueOf(i), "UploadAlarm")).intValue(); + return; + } catch (IllegalAccessException | InvocationTargetException e2) { + Log.e("UploadAlarm", "error calling scheduleAsPackage", e2); + } + } + jobScheduler.schedule(build); + return; + } + i = 0; + method = a4.a; + if (method != null) { + } + jobScheduler.schedule(build); + return; + } + T.d.setInexactRepeating(2, elapsedRealtime, Math.max(p.f1547s.a(null).longValue(), currentTimeMillis2), T.u()); + return; + } + } + j2 = 0; + if (j2 == 0) { + } + } + } + z2 = true; + if (!z2) { + } + long a2 = this.k.o().f.a(); + long a3 = this.k.o().g.a(); + max = Math.max(K().w("select max(bundle_end_timestamp) from queue", null, 0), K().w("select max(timestamp) from raw_events", null, 0)); + if (max != 0) { + } + j2 = 0; + if (j2 == 0) { + } + } + + @WorkerThread + public final void x() { + U(); + if (this.r || this.f1528s || this.t) { + this.k.g().n.d("Not stopping services. fetch, network, upload", Boolean.valueOf(this.r), Boolean.valueOf(this.f1528s), Boolean.valueOf(this.t)); + return; + } + this.k.g().n.a("Stopping uploading service(s)"); + List list = this.o; + if (list != null) { + for (Runnable runnable : list) { + runnable.run(); + } + this.o.clear(); + } + } + + @WorkerThread + public final zzn y(String str) { + a4 T = K().T(str); + if (T == null || TextUtils.isEmpty(T.M())) { + this.k.g().m.b("No app data available; dropping", str); + return null; + } + Boolean z2 = z(T); + if (z2 == null || z2.booleanValue()) { + return new zzn(str, T.v(), T.M(), T.N(), T.O(), T.P(), T.Q(), (String) null, T.T(), false, T.H(), T.g(), 0L, 0, T.h(), T.i(), false, T.y(), T.j(), T.S(), T.k(), (!da.b() || !this.k.h.u(str, p.f1546j0)) ? null : T.B(), (!t8.b() || !this.k.h.o(p.J0)) ? "" : a(str).d()); + } + this.k.g().f.b("App version does not match; dropping. appId", q3.s(str)); + return null; + } + + @WorkerThread + public final Boolean z(a4 a4Var) { + try { + if (a4Var.N() != -2147483648L) { + if (a4Var.N() == ((long) b.a(this.k.f1555b).b(a4Var.o(), 0).versionCode)) { + return Boolean.TRUE; + } + } else { + String str = b.a(this.k.f1555b).b(a4Var.o(), 0).versionName; + if (a4Var.M() != null && a4Var.M().equals(str)) { + return Boolean.TRUE; + } + } + return Boolean.FALSE; + } catch (PackageManager.NameNotFoundException unused) { + return null; + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l.java b/app/src/main/java/b/i/a/f/i/b/l.java new file mode 100644 index 0000000000..e845bbafc2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l.java @@ -0,0 +1,56 @@ +package b.i.a.f.i.b; + +import b.c.a.a0.d; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class l { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1533b; + public final long c; + public final long d; + public final long e; + public final long f; + public final long g; + public final Long h; + public final Long i; + public final Long j; + public final Boolean k; + + public l(String str, String str2, long j) { + this(str, str2, 0, 0, 0, j, 0, null, null, null, null); + } + + public l(String str, String str2, long j, long j2, long j3, long j4, long j5, Long l, Long l2, Long l3, Boolean bool) { + d.w(str); + d.w(str2); + boolean z2 = true; + d.l(j >= 0); + d.l(j2 >= 0); + d.l(j3 >= 0); + d.l(j5 < 0 ? false : z2); + this.a = str; + this.f1533b = str2; + this.c = j; + this.d = j2; + this.e = j3; + this.f = j4; + this.g = j5; + this.h = l; + this.i = l2; + this.j = l3; + this.k = bool; + } + + public final l a(long j) { + return new l(this.a, this.f1533b, this.c, this.d, this.e, j, this.g, this.h, this.i, this.j, this.k); + } + + public final l b(long j, long j2) { + return new l(this.a, this.f1533b, this.c, this.d, this.e, this.f, j, Long.valueOf(j2), this.i, this.j, this.k); + } + + public final l c(Long l, Long l2, Boolean bool) { + return new l(this.a, this.f1533b, this.c, this.d, this.e, this.f, this.g, this.h, l, l2, (bool == null || bool.booleanValue()) ? bool : null); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l0.java b/app/src/main/java/b/i/a/f/i/b/l0.java new file mode 100644 index 0000000000..86ea6855ee --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class l0 implements h3 { + public static final h3 a = new l0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).q()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l1.java b/app/src/main/java/b/i/a/f/i/b/l1.java new file mode 100644 index 0000000000..28eeb9e5c7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class l1 implements h3 { + public static final h3 a = new l1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).A()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l2.java b/app/src/main/java/b/i/a/f/i/b/l2.java new file mode 100644 index 0000000000..020df0d0ea --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.o8; +import b.i.a.f.h.l.r8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class l2 implements h3 { + public static final h3 a = new l2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((r8) o8.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l3.java b/app/src/main/java/b/i/a/f/i/b/l3.java new file mode 100644 index 0000000000..1d5df7dc09 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l3.java @@ -0,0 +1,166 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.RemoteException; +import b.c.a.a0.d; +import b.i.a.f.h.l.s0; +import b.i.a.f.h.l.v; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.FutureTask; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public abstract class l3 extends s0 implements i3 { + public l3() { + super("com.google.android.gms.measurement.internal.IMeasurementService"); + } + + @Override // b.i.a.f.h.l.s0 + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + ArrayList arrayList; + boolean z2 = false; + switch (i) { + case 1: + ((z4) this).o0((zzaq) v.a(parcel, zzaq.CREATOR), (zzn) v.a(parcel, zzn.CREATOR)); + parcel2.writeNoException(); + break; + case 2: + zzku zzku = (zzku) v.a(parcel, zzku.CREATOR); + zzn zzn = (zzn) v.a(parcel, zzn.CREATOR); + z4 z4Var = (z4) this; + Objects.requireNonNull(zzku, "null reference"); + z4Var.y0(zzn); + z4Var.h(new o5(z4Var, zzku, zzn)); + parcel2.writeNoException(); + break; + case 3: + case 8: + default: + return false; + case 4: + zzn zzn2 = (zzn) v.a(parcel, zzn.CREATOR); + z4 z4Var2 = (z4) this; + z4Var2.y0(zzn2); + z4Var2.h(new q5(z4Var2, zzn2)); + parcel2.writeNoException(); + break; + case 5: + zzaq zzaq = (zzaq) v.a(parcel, zzaq.CREATOR); + String readString = parcel.readString(); + parcel.readString(); + z4 z4Var3 = (z4) this; + Objects.requireNonNull(zzaq, "null reference"); + d.w(readString); + z4Var3.x0(readString, true); + z4Var3.h(new m5(z4Var3, zzaq, readString)); + parcel2.writeNoException(); + break; + case 6: + zzn zzn3 = (zzn) v.a(parcel, zzn.CREATOR); + z4 z4Var4 = (z4) this; + z4Var4.y0(zzn3); + z4Var4.h(new c5(z4Var4, zzn3)); + parcel2.writeNoException(); + break; + case 7: + zzn zzn4 = (zzn) v.a(parcel, zzn.CREATOR); + if (parcel.readInt() != 0) { + z2 = true; + } + z4 z4Var5 = (z4) this; + z4Var5.y0(zzn4); + try { + List list = (List) ((FutureTask) z4Var5.a.f().t(new n5(z4Var5, zzn4))).get(); + arrayList = new ArrayList(list.size()); + for (u9 u9Var : list) { + if (z2 || !t9.r0(u9Var.c)) { + arrayList.add(new zzku(u9Var)); + } + } + } catch (InterruptedException | ExecutionException e) { + z4Var5.a.g().f.c("Failed to get user properties. appId", q3.s(zzn4.j), e); + arrayList = null; + } + parcel2.writeNoException(); + parcel2.writeTypedList(arrayList); + break; + case 9: + byte[] i3 = ((z4) this).i((zzaq) v.a(parcel, zzaq.CREATOR), parcel.readString()); + parcel2.writeNoException(); + parcel2.writeByteArray(i3); + break; + case 10: + ((z4) this).H(parcel.readLong(), parcel.readString(), parcel.readString(), parcel.readString()); + parcel2.writeNoException(); + break; + case 11: + String A = ((z4) this).A((zzn) v.a(parcel, zzn.CREATOR)); + parcel2.writeNoException(); + parcel2.writeString(A); + break; + case 12: + ((z4) this).u0((zzz) v.a(parcel, zzz.CREATOR), (zzn) v.a(parcel, zzn.CREATOR)); + parcel2.writeNoException(); + break; + case 13: + ((z4) this).g((zzz) v.a(parcel, zzz.CREATOR)); + parcel2.writeNoException(); + break; + case 14: + String readString2 = parcel.readString(); + String readString3 = parcel.readString(); + ClassLoader classLoader = v.a; + if (parcel.readInt() != 0) { + z2 = true; + } + List S = ((z4) this).S(readString2, readString3, z2, (zzn) v.a(parcel, zzn.CREATOR)); + parcel2.writeNoException(); + parcel2.writeTypedList(S); + break; + case 15: + String readString4 = parcel.readString(); + String readString5 = parcel.readString(); + String readString6 = parcel.readString(); + ClassLoader classLoader2 = v.a; + if (parcel.readInt() != 0) { + z2 = true; + } + List u = ((z4) this).u(readString4, readString5, readString6, z2); + parcel2.writeNoException(); + parcel2.writeTypedList(u); + break; + case 16: + List K = ((z4) this).K(parcel.readString(), parcel.readString(), (zzn) v.a(parcel, zzn.CREATOR)); + parcel2.writeNoException(); + parcel2.writeTypedList(K); + break; + case 17: + List J = ((z4) this).J(parcel.readString(), parcel.readString(), parcel.readString()); + parcel2.writeNoException(); + parcel2.writeTypedList(J); + break; + case 18: + zzn zzn5 = (zzn) v.a(parcel, zzn.CREATOR); + z4 z4Var6 = (z4) this; + z4Var6.x0(zzn5.j, false); + z4Var6.h(new h5(z4Var6, zzn5)); + parcel2.writeNoException(); + break; + case 19: + ((z4) this).p0((Bundle) v.a(parcel, Bundle.CREATOR), (zzn) v.a(parcel, zzn.CREATOR)); + parcel2.writeNoException(); + break; + case 20: + ((z4) this).l((zzn) v.a(parcel, zzn.CREATOR)); + parcel2.writeNoException(); + break; + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l4.java b/app/src/main/java/b/i/a/f/i/b/l4.java new file mode 100644 index 0000000000..f93a8b1131 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l4.java @@ -0,0 +1,48 @@ +package b.i.a.f.i.b; + +import android.content.ComponentName; +import android.content.ServiceConnection; +import android.os.IBinder; +import android.os.IInterface; +import androidx.annotation.MainThread; +import b.i.a.f.h.l.d3; +import b.i.a.f.h.l.e2; +import b.i.a.f.h.l.e3; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class l4 implements ServiceConnection { + public final String j; + public final /* synthetic */ m4 k; + + public l4(m4 m4Var, String str) { + this.k = m4Var; + this.j = str; + } + + @Override // android.content.ServiceConnection + @MainThread + public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { + if (iBinder == null) { + this.k.a.g().i.a("Install Referrer connection returned with null binder"); + return; + } + try { + int i = e3.a; + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.finsky.externalreferrer.IGetInstallReferrerService"); + e2 d3Var = queryLocalInterface instanceof e2 ? (e2) queryLocalInterface : new d3(iBinder); + if (d3Var == null) { + this.k.a.g().i.a("Install Referrer Service implementation was not found"); + return; + } + this.k.a.g().n.a("Install Referrer Service connected"); + this.k.a.f().v(new o4(this, d3Var, this)); + } catch (Exception e) { + this.k.a.g().i.b("Exception occurred while calling Install Referrer API", e); + } + } + + @Override // android.content.ServiceConnection + @MainThread + public final void onServiceDisconnected(ComponentName componentName) { + this.k.a.g().n.a("Install Referrer Service disconnected"); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l5.java b/app/src/main/java/b/i/a/f/i/b/l5.java new file mode 100644 index 0000000000..af85ae163d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l5.java @@ -0,0 +1,28 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzaq; +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class l5 implements Callable { + public final /* synthetic */ zzaq j; + public final /* synthetic */ String k; + public final /* synthetic */ z4 l; + + public l5(z4 z4Var, zzaq zzaq, String str) { + this.l = z4Var; + this.j = zzaq; + this.k = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final byte[] call() throws Exception { + this.l.a.R(); + k9 k9Var = this.l.a; + k9.C(k9Var.i); + g7 g7Var = k9Var.i; + g7Var.b(); + g7Var.a.l(); + throw null; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l6.java b/app/src/main/java/b/i/a/f/i/b/l6.java new file mode 100644 index 0000000000..e83abb355e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l6.java @@ -0,0 +1,19 @@ +package b.i.a.f.i.b; + +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class l6 implements Runnable { + public final /* synthetic */ long j; + public final /* synthetic */ c6 k; + + public l6(c6 c6Var, long j) { + this.k = c6Var; + this.j = j; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.w(this.j, true); + this.k.p().A(new AtomicReference<>()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l7.java b/app/src/main/java/b/i/a/f/i/b/l7.java new file mode 100644 index 0000000000..808bad692d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l7.java @@ -0,0 +1,17 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class l7 implements Runnable { + public final /* synthetic */ long j; + public final /* synthetic */ h7 k; + + public l7(h7 h7Var, long j) { + this.k = h7Var; + this.j = j; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.m().t(this.j); + this.k.e = null; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l8.java b/app/src/main/java/b/i/a/f/i/b/l8.java new file mode 100644 index 0000000000..4c8cfec8c0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l8.java @@ -0,0 +1,30 @@ +package b.i.a.f.i.b; + +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class l8 implements Runnable { + public final /* synthetic */ i3 j; + public final /* synthetic */ k8 k; + + public l8(k8 k8Var, i3 i3Var) { + this.k = k8Var; + this.j = i3Var; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.k) { + this.k.j = false; + if (!this.k.l.B()) { + this.k.l.g().m.a("Connected to remote service"); + q7 q7Var = this.k.l; + i3 i3Var = this.j; + q7Var.b(); + Objects.requireNonNull(i3Var, "null reference"); + q7Var.d = i3Var; + q7Var.F(); + q7Var.H(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/l9.java b/app/src/main/java/b/i/a/f/i/b/l9.java new file mode 100644 index 0000000000..e484263453 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/l9.java @@ -0,0 +1,17 @@ +package b.i.a.f.i.b; + +import java.util.List; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class l9 implements z3 { + public final /* synthetic */ k9 a; + + public l9(k9 k9Var) { + this.a = k9Var; + } + + @Override // b.i.a.f.i.b.z3 + public final void a(String str, int i, Throwable th, byte[] bArr, Map> map) { + this.a.r(str, i, th, bArr, map); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m.java b/app/src/main/java/b/i/a/f/i/b/m.java new file mode 100644 index 0000000000..027079d637 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m.java @@ -0,0 +1,87 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.text.TextUtils; +import b.c.a.a0.d; +import b.d.b.a.a; +import com.google.android.gms.measurement.internal.zzap; +import java.util.Iterator; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class m { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1534b; + public final String c; + public final long d; + public final long e; + public final zzap f; + + public m(u4 u4Var, String str, String str2, String str3, long j, long j2, Bundle bundle) { + zzap zzap; + d.w(str2); + d.w(str3); + this.a = str2; + this.f1534b = str3; + this.c = TextUtils.isEmpty(str) ? null : str; + this.d = j; + this.e = j2; + if (j2 != 0 && j2 > j) { + u4Var.g().i.b("Event created with reverse previous/current timestamps. appId", q3.s(str2)); + } + if (!bundle.isEmpty()) { + Bundle bundle2 = new Bundle(bundle); + Iterator it = bundle2.keySet().iterator(); + while (it.hasNext()) { + String next = it.next(); + if (next == null) { + u4Var.g().f.a("Param name can't be null"); + it.remove(); + } else { + Object D = u4Var.t().D(next, bundle2.get(next)); + if (D == null) { + u4Var.g().i.b("Param value can't be null", u4Var.u().x(next)); + it.remove(); + } else { + u4Var.t().I(bundle2, next, D); + } + } + } + zzap = new zzap(bundle2); + } else { + zzap = new zzap(new Bundle()); + } + this.f = zzap; + } + + public m(u4 u4Var, String str, String str2, String str3, long j, long j2, zzap zzap) { + d.w(str2); + d.w(str3); + Objects.requireNonNull(zzap, "null reference"); + this.a = str2; + this.f1534b = str3; + this.c = TextUtils.isEmpty(str) ? null : str; + this.d = j; + this.e = j2; + if (j2 != 0 && j2 > j) { + u4Var.g().i.c("Event created with reverse previous/current timestamps. appId, name", q3.s(str2), q3.s(str3)); + } + this.f = zzap; + } + + public final m a(u4 u4Var, long j) { + return new m(u4Var, this.c, this.a, this.f1534b, this.d, j, this.f); + } + + public final String toString() { + String str = this.a; + String str2 = this.f1534b; + String valueOf = String.valueOf(this.f); + StringBuilder Q = a.Q(valueOf.length() + a.b(str2, a.b(str, 33)), "Event{appId='", str, "', name='", str2); + Q.append("', params="); + Q.append(valueOf); + Q.append('}'); + return Q.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m0.java b/app/src/main/java/b/i/a/f/i/b/m0.java new file mode 100644 index 0000000000..47f8dda7e3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class m0 implements h3 { + public static final h3 a = new m0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).E()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m1.java b/app/src/main/java/b/i/a/f/i/b/m1.java new file mode 100644 index 0000000000..46d8071c97 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.e9; +import b.i.a.f.h.l.f9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class m1 implements h3 { + public static final h3 a = new m1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((e9) f9.j.a()).d()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m2.java b/app/src/main/java/b/i/a/f/i/b/m2.java new file mode 100644 index 0000000000..b279bb5aef --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ea; +import b.i.a.f.h.l.ha; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class m2 implements h3 { + public static final h3 a = new m2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ha) ea.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m3.java b/app/src/main/java/b/i/a/f/i/b/m3.java new file mode 100644 index 0000000000..a93d487a19 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m3.java @@ -0,0 +1,360 @@ +package b.i.a.f.i.b; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteDatabaseLockedException; +import android.database.sqlite.SQLiteException; +import android.database.sqlite.SQLiteFullException; +import android.os.SystemClock; +import androidx.annotation.WorkerThread; +import androidx.exifinterface.media.ExifInterface; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class m3 extends a5 { + public final p3 c = new p3(this, this.a.f1555b, "google_app_measurement_local.db"); + public boolean d; + + public m3(u4 u4Var) { + super(u4Var); + } + + public static long w(SQLiteDatabase sQLiteDatabase) { + Cursor cursor = null; + try { + Cursor query = sQLiteDatabase.query("messages", new String[]{"rowid"}, "type=?", new String[]{ExifInterface.GPS_MEASUREMENT_3D}, null, null, "rowid desc", "1"); + if (query.moveToFirst()) { + long j = query.getLong(0); + query.close(); + return j; + } + query.close(); + return -1; + } catch (Throwable th) { + if (0 != 0) { + cursor.close(); + } + throw th; + } + } + + @WorkerThread + public final SQLiteDatabase A() throws SQLiteException { + if (this.d) { + return null; + } + SQLiteDatabase writableDatabase = this.c.getWritableDatabase(); + if (writableDatabase != null) { + return writableDatabase; + } + this.d = true; + return null; + } + + @Override // b.i.a.f.i.b.a5 + public final boolean v() { + return false; + } + + /* JADX WARNING: Removed duplicated region for block: B:47:0x00c2 A[SYNTHETIC, Splitter:B:47:0x00c2] */ + /* JADX WARNING: Removed duplicated region for block: B:53:0x00db */ + /* JADX WARNING: Removed duplicated region for block: B:55:0x00e0 */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x00f1 */ + /* JADX WARNING: Removed duplicated region for block: B:68:0x00f6 */ + /* JADX WARNING: Removed duplicated region for block: B:73:0x010c */ + /* JADX WARNING: Removed duplicated region for block: B:75:0x0111 */ + /* JADX WARNING: Removed duplicated region for block: B:78:0x011c */ + /* JADX WARNING: Removed duplicated region for block: B:80:0x0121 */ + /* JADX WARNING: Removed duplicated region for block: B:88:0x0114 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:90:0x0114 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:92:0x0114 A[SYNTHETIC] */ + @WorkerThread + public final boolean x(int i, byte[] bArr) { + SQLiteDatabase sQLiteDatabase; + Throwable th; + SQLiteFullException e; + Cursor cursor; + SQLiteException e2; + b(); + boolean z2 = false; + if (this.d) { + return false; + } + ContentValues contentValues = new ContentValues(); + contentValues.put("type", Integer.valueOf(i)); + contentValues.put("entry", bArr); + int i2 = 0; + int i3 = 5; + for (int i4 = 5; i2 < i4; i4 = 5) { + Cursor cursor2 = null; + Cursor cursor3 = null; + cursor2 = null; + r7 = null; + r7 = null; + SQLiteDatabase sQLiteDatabase2 = null; + Cursor cursor4 = null; + try { + sQLiteDatabase = A(); + if (sQLiteDatabase == null) { + try { + this.d = true; + if (sQLiteDatabase != null) { + sQLiteDatabase.close(); + } + return z2; + } catch (SQLiteFullException e3) { + e = e3; + } catch (SQLiteDatabaseLockedException unused) { + try { + SystemClock.sleep((long) i3); + i3 += 20; + if (cursor4 != null) { + } + if (sQLiteDatabase != null) { + } + i2++; + z2 = false; + } catch (Throwable th2) { + th = th2; + if (cursor4 != null) { + cursor4.close(); + } + if (sQLiteDatabase != null) { + sQLiteDatabase.close(); + } + throw th; + } + } catch (SQLiteException e4) { + e2 = e4; + cursor = cursor3; + sQLiteDatabase2 = sQLiteDatabase; + if (sQLiteDatabase2 != null) { + } + g().f.b("Error writing entry to local database", e2); + this.d = true; + if (cursor != null) { + } + if (sQLiteDatabase2 != null) { + } + i2++; + z2 = false; + } + } else { + sQLiteDatabase.beginTransaction(); + long j = 0; + Cursor rawQuery = sQLiteDatabase.rawQuery("select count(1) from messages", null); + if (rawQuery != null) { + try { + if (rawQuery.moveToFirst()) { + int i5 = z2 ? 1 : 0; + int i6 = z2 ? 1 : 0; + int i7 = z2 ? 1 : 0; + j = rawQuery.getLong(i5); + } + } catch (SQLiteFullException e5) { + e = e5; + cursor2 = rawQuery; + g().f.b("Error writing entry; local database full", e); + this.d = true; + if (cursor2 != null) { + cursor2.close(); + } + if (sQLiteDatabase == null) { + sQLiteDatabase.close(); + } + i2++; + z2 = false; + } catch (SQLiteDatabaseLockedException unused2) { + cursor4 = rawQuery; + SystemClock.sleep((long) i3); + i3 += 20; + if (cursor4 != null) { + cursor4.close(); + } + if (sQLiteDatabase != null) { + sQLiteDatabase.close(); + } + i2++; + z2 = false; + } catch (SQLiteException e6) { + e2 = e6; + cursor3 = rawQuery; + cursor = cursor3; + sQLiteDatabase2 = sQLiteDatabase; + if (sQLiteDatabase2 != null) { + try { + if (sQLiteDatabase2.inTransaction()) { + sQLiteDatabase2.endTransaction(); + } + } catch (Throwable th3) { + th = th3; + sQLiteDatabase = sQLiteDatabase2; + cursor4 = cursor; + if (cursor4 != null) { + } + if (sQLiteDatabase != null) { + } + throw th; + } + } + g().f.b("Error writing entry to local database", e2); + this.d = true; + if (cursor != null) { + cursor.close(); + } + if (sQLiteDatabase2 != null) { + sQLiteDatabase2.close(); + } + i2++; + z2 = false; + } catch (Throwable th4) { + th = th4; + cursor4 = rawQuery; + if (cursor4 != null) { + } + if (sQLiteDatabase != null) { + } + throw th; + } + } + if (j >= 100000) { + g().f.a("Data loss, local db full"); + long j2 = (100000 - j) + 1; + String[] strArr = new String[1]; + String l = Long.toString(j2); + char c = z2 ? 1 : 0; + char c2 = z2 ? 1 : 0; + char c3 = z2 ? 1 : 0; + strArr[c] = l; + long delete = (long) sQLiteDatabase.delete("messages", "rowid in (select rowid from messages order by rowid asc limit ?)", strArr); + if (delete != j2) { + g().f.d("Different delete count than expected in local db. expected, received, difference", Long.valueOf(j2), Long.valueOf(delete), Long.valueOf(j2 - delete)); + } + } + sQLiteDatabase.insertOrThrow("messages", null, contentValues); + sQLiteDatabase.setTransactionSuccessful(); + sQLiteDatabase.endTransaction(); + if (rawQuery != null) { + rawQuery.close(); + } + sQLiteDatabase.close(); + return true; + } + } catch (SQLiteFullException e7) { + e = e7; + sQLiteDatabase = null; + g().f.b("Error writing entry; local database full", e); + this.d = true; + if (cursor2 != null) { + } + if (sQLiteDatabase == null) { + } + i2++; + z2 = false; + } catch (SQLiteDatabaseLockedException unused3) { + sQLiteDatabase = null; + SystemClock.sleep((long) i3); + i3 += 20; + if (cursor4 != null) { + } + if (sQLiteDatabase != null) { + } + i2++; + z2 = false; + } catch (SQLiteException e8) { + e2 = e8; + cursor = null; + if (sQLiteDatabase2 != null) { + } + g().f.b("Error writing entry to local database", e2); + this.d = true; + if (cursor != null) { + } + if (sQLiteDatabase2 != null) { + } + i2++; + z2 = false; + } catch (Throwable th5) { + th = th5; + sQLiteDatabase = null; + if (cursor4 != null) { + } + if (sQLiteDatabase != null) { + } + throw th; + } + } + g().n.a("Failed to write entry to local database"); + return false; + } + + @WorkerThread + public final void y() { + b(); + try { + int delete = A().delete("messages", null, null) + 0; + if (delete > 0) { + g().n.b("Reset local analytics data. records", Integer.valueOf(delete)); + } + } catch (SQLiteException e) { + g().f.b("Error resetting local analytics data. error", e); + } + } + + @WorkerThread + public final boolean z() { + b(); + if (this.d || !this.a.f1555b.getDatabasePath("google_app_measurement_local.db").exists()) { + return false; + } + int i = 5; + for (int i2 = 0; i2 < 5; i2++) { + SQLiteDatabase sQLiteDatabase = null; + try { + SQLiteDatabase A = A(); + if (A == null) { + this.d = true; + if (A != null) { + A.close(); + } + return false; + } + A.beginTransaction(); + A.delete("messages", "type == ?", new String[]{Integer.toString(3)}); + A.setTransactionSuccessful(); + A.endTransaction(); + A.close(); + return true; + } catch (SQLiteFullException e) { + g().f.b("Error deleting app launch break from local database", e); + this.d = true; + if (0 != 0) { + sQLiteDatabase.close(); + } + } catch (SQLiteDatabaseLockedException unused) { + SystemClock.sleep((long) i); + i += 20; + if (0 != 0) { + sQLiteDatabase.close(); + } + } catch (SQLiteException e2) { + if (0 != 0) { + if (sQLiteDatabase.inTransaction()) { + sQLiteDatabase.endTransaction(); + } + } + g().f.b("Error deleting app launch break from local database", e2); + this.d = true; + if (0 != 0) { + sQLiteDatabase.close(); + } + } catch (Throwable th) { + if (0 != 0) { + sQLiteDatabase.close(); + } + throw th; + } + } + g().i.a("Error deleting app launch break from local database in reasonable time"); + return false; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m4.java b/app/src/main/java/b/i/a/f/i/b/m4.java new file mode 100644 index 0000000000..85dbf3181f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m4.java @@ -0,0 +1,74 @@ +package b.i.a.f.i.b; + +import android.content.ComponentName; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; +import android.content.pm.ServiceInfo; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.n.a; +import b.i.a.f.e.p.b; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class m4 { + public final u4 a; + + public m4(u4 u4Var) { + this.a = u4Var; + } + + @WorkerThread + public final void a(String str) { + if (str == null || str.isEmpty()) { + this.a.g().j.a("Install Referrer Reporter was called with invalid app package name"); + return; + } + this.a.f().b(); + if (!b()) { + this.a.g().l.a("Install Referrer Reporter is not available"); + return; + } + l4 l4Var = new l4(this, str); + this.a.f().b(); + Intent intent = new Intent("com.google.android.finsky.BIND_GET_INSTALL_REFERRER_SERVICE"); + intent.setComponent(new ComponentName("com.android.vending", "com.google.android.finsky.externalreferrer.GetInstallReferrerService")); + PackageManager packageManager = this.a.f1555b.getPackageManager(); + if (packageManager == null) { + this.a.g().j.a("Failed to obtain Package Manager to verify binding conditions for Install Referrer"); + return; + } + List queryIntentServices = packageManager.queryIntentServices(intent, 0); + if (queryIntentServices == null || queryIntentServices.isEmpty()) { + this.a.g().l.a("Play Service for fetching Install Referrer is unavailable on device"); + return; + } + ServiceInfo serviceInfo = queryIntentServices.get(0).serviceInfo; + if (serviceInfo != null) { + String str2 = serviceInfo.packageName; + if (serviceInfo.name == null || !"com.android.vending".equals(str2) || !b()) { + this.a.g().i.a("Play Store version 8.3.73 or higher required for Install Referrer"); + return; + } + try { + this.a.g().n.b("Install Referrer Service is", a.b().a(this.a.f1555b, new Intent(intent), l4Var, 1) ? ModelAuditLogEntry.CHANGE_KEY_AVAILABLE : "not available"); + } catch (Exception e) { + this.a.g().f.b("Exception occurred while binding to Install Referrer Service", e.getMessage()); + } + } + } + + public final boolean b() { + try { + b.i.a.f.e.p.a a = b.a(this.a.f1555b); + if (a != null) { + return a.a.getPackageManager().getPackageInfo("com.android.vending", 128).versionCode >= 80837300; + } + this.a.g().n.a("Failed to get PackageManager for Install Referrer Play Store compatibility check"); + return false; + } catch (Exception e) { + this.a.g().n.b("Failed to retrieve Play Store version for Install Referrer", e); + return false; + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m5.java b/app/src/main/java/b/i/a/f/i/b/m5.java new file mode 100644 index 0000000000..5bdfb9b83f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m5.java @@ -0,0 +1,21 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzaq; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class m5 implements Runnable { + public final /* synthetic */ zzaq j; + public final /* synthetic */ String k; + public final /* synthetic */ z4 l; + + public m5(z4 z4Var, zzaq zzaq, String str) { + this.l = z4Var; + this.j = zzaq; + this.k = str; + } + + @Override // java.lang.Runnable + public final void run() { + this.l.a.R(); + this.l.a.m(this.j, this.k); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m6.java b/app/src/main/java/b/i/a/f/i/b/m6.java new file mode 100644 index 0000000000..a7a672630c --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m6.java @@ -0,0 +1,35 @@ +package b.i.a.f.i.b; + +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class m6 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ c6 k; + + public m6(c6 c6Var, AtomicReference atomicReference) { + this.k = c6Var; + this.j = atomicReference; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j) { + try { + AtomicReference atomicReference = this.j; + c6 c6Var = this.k; + c cVar = c6Var.a.h; + n3 o = c6Var.o(); + o.t(); + String str = o.c; + Objects.requireNonNull(cVar); + j3 j3Var = p.L; + atomicReference.set(str == null ? j3Var.a(null) : j3Var.a(cVar.c.i(str, j3Var.f1524b))); + this.j.notify(); + } catch (Throwable th) { + this.j.notify(); + throw th; + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m7.java b/app/src/main/java/b/i/a/f/i/b/m7.java new file mode 100644 index 0000000000..efc75b354f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m7.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class m7 implements Runnable { + public final /* synthetic */ h7 j; + + public m7(h7 h7Var) { + this.j = h7Var; + } + + @Override // java.lang.Runnable + public final void run() { + h7 h7Var = this.j; + h7Var.e = h7Var.j; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m8.java b/app/src/main/java/b/i/a/f/i/b/m8.java new file mode 100644 index 0000000000..983d04a133 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m8.java @@ -0,0 +1,18 @@ +package b.i.a.f.i.b; + +import android.content.ComponentName; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class m8 implements Runnable { + public final /* synthetic */ ComponentName j; + public final /* synthetic */ k8 k; + + public m8(k8 k8Var, ComponentName componentName) { + this.k = k8Var; + this.j = componentName; + } + + @Override // java.lang.Runnable + public final void run() { + q7.x(this.k.l, this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/m9.java b/app/src/main/java/b/i/a/f/i/b/m9.java new file mode 100644 index 0000000000..fa7e6fd575 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/m9.java @@ -0,0 +1,109 @@ +package b.i.a.f.i.b; + +import android.database.sqlite.SQLiteException; +import android.os.SystemClock; +import b.i.a.f.e.o.c; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class m9 implements z3 { + public final /* synthetic */ String a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ k9 f1535b; + + public m9(k9 k9Var, String str) { + this.f1535b = k9Var; + this.a = str; + } + + /* JADX INFO: finally extract failed */ + @Override // b.i.a.f.i.b.z3 + public final void a(String str, int i, Throwable th, byte[] bArr, Map> map) { + k9 k9Var = this.f1535b; + k9Var.U(); + k9Var.P(); + if (bArr == null) { + try { + bArr = new byte[0]; + } catch (Throwable th2) { + k9Var.f1528s = false; + k9Var.x(); + throw th2; + } + } + List list = k9Var.w; + k9Var.w = null; + boolean z2 = true; + if ((i == 200 || i == 204) && th == null) { + try { + h4 h4Var = k9Var.k.o().f; + Objects.requireNonNull((c) k9Var.k.o); + h4Var.b(System.currentTimeMillis()); + k9Var.k.o().g.b(0); + k9Var.w(); + k9Var.k.g().n.c("Successful upload. Got network response. code, size", Integer.valueOf(i), Integer.valueOf(bArr.length)); + k9Var.K().b0(); + try { + for (Long l : list) { + try { + g K = k9Var.K(); + long longValue = l.longValue(); + K.b(); + K.n(); + try { + if (K.t().delete("queue", "rowid=?", new String[]{String.valueOf(longValue)}) != 1) { + throw new SQLiteException("Deleted fewer rows from queue than expected"); + } + } catch (SQLiteException e) { + K.g().f.b("Failed to delete a bundle in a queue table", e); + throw e; + } + } catch (SQLiteException e2) { + List list2 = k9Var.f1529x; + if (list2 == null || !list2.contains(l)) { + throw e2; + } + } + } + k9Var.K().s(); + k9Var.K().e0(); + k9Var.f1529x = null; + if (!k9Var.J().u() || !k9Var.v()) { + k9Var.f1530y = -1; + k9Var.w(); + } else { + k9Var.Q(); + } + k9Var.n = 0; + } catch (Throwable th3) { + k9Var.K().e0(); + throw th3; + } + } catch (SQLiteException e3) { + k9Var.k.g().f.b("Database error while trying to delete uploaded bundles", e3); + Objects.requireNonNull((c) k9Var.k.o); + k9Var.n = SystemClock.elapsedRealtime(); + k9Var.k.g().n.b("Disable upload, time", Long.valueOf(k9Var.n)); + } + } else { + k9Var.k.g().n.c("Network upload failed. Will retry later. code, error", Integer.valueOf(i), th); + h4 h4Var2 = k9Var.k.o().g; + Objects.requireNonNull((c) k9Var.k.o); + h4Var2.b(System.currentTimeMillis()); + if (!(i == 503 || i == 429)) { + z2 = false; + } + if (z2) { + h4 h4Var3 = k9Var.k.o().h; + Objects.requireNonNull((c) k9Var.k.o); + h4Var3.b(System.currentTimeMillis()); + } + k9Var.K().J(list); + k9Var.w(); + } + k9Var.f1528s = false; + k9Var.x(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n.java b/app/src/main/java/b/i/a/f/i/b/n.java new file mode 100644 index 0000000000..f2c63d402a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n.java @@ -0,0 +1,30 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzap; +import java.util.Iterator; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class n implements Iterator { + public Iterator j; + public final /* synthetic */ zzap k; + + public n(zzap zzap) { + this.k = zzap; + this.j = zzap.j.keySet().iterator(); + } + + @Override // java.util.Iterator + public final boolean hasNext() { + return this.j.hasNext(); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.Iterator + public final /* synthetic */ String next() { + return this.j.next(); + } + + @Override // java.util.Iterator + public final void remove() { + throw new UnsupportedOperationException("Remove not supported"); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n0.java b/app/src/main/java/b/i/a/f/i/b/n0.java new file mode 100644 index 0000000000..0d9ba5a59d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class n0 implements h3 { + public static final h3 a = new n0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).C()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n1.java b/app/src/main/java/b/i/a/f/i/b/n1.java new file mode 100644 index 0000000000..e1617119ae --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ia; +import b.i.a.f.h.l.ja; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class n1 implements h3 { + public static final h3 a = new n1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ia) ja.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n2.java b/app/src/main/java/b/i/a/f/i/b/n2.java new file mode 100644 index 0000000000..d2ee48389d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.c8; +import b.i.a.f.h.l.f8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class n2 implements h3 { + public static final h3 a = new n2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((f8) c8.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n3.java b/app/src/main/java/b/i/a/f/i/b/n3.java new file mode 100644 index 0000000000..7b583c5c91 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n3.java @@ -0,0 +1,282 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.res.Resources; +import android.os.Bundle; +import android.text.TextUtils; +import androidx.core.os.EnvironmentCompat; +import b.c.a.a0.d; +import b.i.a.f.e.h.j.h; +import b.i.a.f.e.o.f; +import b.i.a.f.h.l.da; +import b.i.a.f.h.l.ib; +import b.i.a.f.h.l.lb; +import com.google.android.gms.common.R; +import com.google.android.gms.common.api.Status; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class n3 extends a5 { + public String c; + public String d; + public int e; + public String f; + public long g; + public long h; + public List i; + public int j; + public String k; + public String l; + public String m; + + public n3(u4 u4Var, long j) { + super(u4Var); + this.h = j; + } + + @Override // b.i.a.f.i.b.a5 + public final boolean v() { + return true; + } + + /* JADX WARNING: Removed duplicated region for block: B:104:0x0240 A[Catch:{ IllegalStateException -> 0x01c3 }] */ + /* JADX WARNING: Removed duplicated region for block: B:110:0x0267 A[Catch:{ IllegalStateException -> 0x01c3 }] */ + /* JADX WARNING: Removed duplicated region for block: B:118:0x02a5 */ + /* JADX WARNING: Removed duplicated region for block: B:119:0x02b1 */ + /* JADX WARNING: Removed duplicated region for block: B:124:0x02c4 A[SYNTHETIC, Splitter:B:124:0x02c4] */ + /* JADX WARNING: Removed duplicated region for block: B:132:0x02ea */ + /* JADX WARNING: Removed duplicated region for block: B:142:0x031c */ + /* JADX WARNING: Removed duplicated region for block: B:144:0x0320 */ + /* JADX WARNING: Removed duplicated region for block: B:146:0x032b */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x0197 */ + /* JADX WARNING: Removed duplicated region for block: B:79:0x01d4 A[Catch:{ IllegalStateException -> 0x01c3 }] */ + /* JADX WARNING: Removed duplicated region for block: B:80:0x01d7 A[Catch:{ IllegalStateException -> 0x01c3 }] */ + public final void w() { + Status status; + boolean z2; + List list; + Bundle D; + Integer num; + String M1; + String str = EnvironmentCompat.MEDIA_UNKNOWN; + String str2 = "Unknown"; + String packageName = this.a.f1555b.getPackageName(); + PackageManager packageManager = this.a.f1555b.getPackageManager(); + int i = Integer.MIN_VALUE; + if (packageManager == null) { + g().f.b("PackageManager is null, app identity information might be inaccurate. appId", q3.s(packageName)); + } else { + try { + str = packageManager.getInstallerPackageName(packageName); + } catch (IllegalArgumentException unused) { + g().f.b("Error retrieving app installer package name. appId", q3.s(packageName)); + } + if (str == null) { + str = "manual_install"; + } else if ("com.android.vending".equals(str)) { + str = ""; + } + try { + PackageInfo packageInfo = packageManager.getPackageInfo(this.a.f1555b.getPackageName(), 0); + if (packageInfo != null) { + CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo); + if (!TextUtils.isEmpty(applicationLabel)) { + applicationLabel.toString(); + } + str2 = packageInfo.versionName; + i = packageInfo.versionCode; + } + } catch (PackageManager.NameNotFoundException unused2) { + g().f.c("Error retrieving package info. appId, appName", q3.s(packageName), "Unknown"); + } + } + this.c = packageName; + this.f = str; + this.d = str2; + this.e = i; + this.g = 0; + Context context = this.a.f1555b; + Object obj = h.a; + d.z(context, "Context must not be null."); + synchronized (h.a) { + if (h.f1350b == null) { + h.f1350b = new h(context); + } + status = h.f1350b.d; + } + boolean z3 = true; + boolean z4 = status != null && status.w0(); + boolean z5 = !TextUtils.isEmpty(this.a.c) && "am".equals(this.a.d); + boolean z6 = z4 | z5; + if (!z6) { + if (status == null) { + g().g.a("GoogleService failed to initialize (no status)"); + } else { + g().g.c("GoogleService failed to initialize, status", Integer.valueOf(status.p), status.q); + } + } + if (z6) { + int e = this.a.e(); + switch (e) { + case 0: + g().n.a("App measurement collection enabled"); + break; + case 1: + g().l.a("App measurement deactivated via the manifest"); + break; + case 2: + g().n.a("App measurement deactivated via the init parameters"); + break; + case 3: + g().l.a("App measurement disabled by setAnalyticsCollectionEnabled(false)"); + break; + case 4: + g().l.a("App measurement disabled via the manifest"); + break; + case 5: + g().n.a("App measurement disabled via the init parameters"); + break; + case 6: + g().k.a("App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics"); + break; + case 7: + g().l.a("App measurement disabled via the global data collection setting"); + break; + case 8: + g().l.a("App measurement disabled due to denied storage consent"); + break; + default: + g().l.a("App measurement disabled"); + g().g.a("Invalid scion state in identity"); + break; + } + if (e == 0) { + z2 = true; + this.k = ""; + this.l = ""; + this.m = ""; + if (z5) { + this.l = this.a.c; + } + list = null; + M1 = (((lb) ib.j.a()).a() || !this.a.h.o(p.C0)) ? h.a("getGoogleAppId").c : f.M1(this.a.f1555b, "google_app_id"); + this.k = !TextUtils.isEmpty(M1) ? "" : M1; + if (!da.b() && this.a.h.o(p.f1546j0)) { + Context context2 = this.a.f1555b; + Objects.requireNonNull(context2, "null reference"); + Resources resources = context2.getResources(); + String resourcePackageName = resources.getResourcePackageName(R.a.common_google_play_services_unknown_issue); + int identifier = resources.getIdentifier("ga_app_id", "string", resourcePackageName); + String string = identifier == 0 ? null : resources.getString(identifier); + this.m = TextUtils.isEmpty(string) ? "" : string; + if (!TextUtils.isEmpty(M1) || !TextUtils.isEmpty(string)) { + int identifier2 = resources.getIdentifier("admob_app_id", "string", resourcePackageName); + this.l = identifier2 == 0 ? null : resources.getString(identifier2); + } + } else if (!TextUtils.isEmpty(M1)) { + Context context3 = this.a.f1555b; + Objects.requireNonNull(context3, "null reference"); + Resources resources2 = context3.getResources(); + int identifier3 = resources2.getIdentifier("admob_app_id", "string", resources2.getResourcePackageName(R.a.common_google_play_services_unknown_issue)); + this.l = identifier3 == 0 ? null : resources2.getString(identifier3); + } + if (z2) { + g().n.c("App measurement enabled for app package, google app id", this.c, TextUtils.isEmpty(this.k) ? this.l : this.k); + } + this.i = null; + c cVar = this.a.h; + Objects.requireNonNull(cVar); + d.w("analytics.safelisted_events"); + D = cVar.D(); + if (D != null) { + cVar.g().f.a("Failed to load metadata: Metadata bundle is null"); + } else if (D.containsKey("analytics.safelisted_events")) { + num = Integer.valueOf(D.getInt("analytics.safelisted_events")); + if (num != null) { + try { + String[] stringArray = cVar.a.f1555b.getResources().getStringArray(num.intValue()); + if (stringArray != null) { + list = Arrays.asList(stringArray); + } + } catch (Resources.NotFoundException e2) { + cVar.g().f.b("Failed to load string array from metadata: resource not found", e2); + } + } + if (list != null) { + if (list.size() == 0) { + g().k.a("Safelisted event list is empty. Ignoring"); + } else { + Iterator it = list.iterator(); + while (true) { + if (it.hasNext()) { + if (!e().m0("safelisted event", it.next())) { + } + } + } + } + z3 = false; + } + if (z3) { + this.i = list; + } + if (packageManager != null) { + this.j = f.C0(this.a.f1555b) ? 1 : 0; + return; + } else { + this.j = 0; + return; + } + } + num = null; + if (num != null) { + } + if (list != null) { + } + if (z3) { + } + if (packageManager != null) { + } + } + } + z2 = false; + this.k = ""; + this.l = ""; + this.m = ""; + if (z5) { + } + list = null; + try { + if (((lb) ib.j.a()).a()) { + } + this.k = !TextUtils.isEmpty(M1) ? "" : M1; + if (!da.b()) { + } + if (!TextUtils.isEmpty(M1)) { + } + if (z2) { + } + } catch (IllegalStateException e3) { + g().f.c("Fetching Google App Id failed with exception. appId", q3.s(packageName), e3); + } + this.i = null; + c cVar = this.a.h; + Objects.requireNonNull(cVar); + d.w("analytics.safelisted_events"); + D = cVar.D(); + if (D != null) { + } + num = null; + if (num != null) { + } + if (list != null) { + } + if (z3) { + } + if (packageManager != null) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n4.java b/app/src/main/java/b/i/a/f/i/b/n4.java new file mode 100644 index 0000000000..35f9930787 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n4.java @@ -0,0 +1,25 @@ +package b.i.a.f.i.b; + +import android.content.ComponentName; +import android.content.Context; +import android.content.pm.ActivityInfo; +import android.content.pm.PackageManager; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class n4 { + public final q4 a; + + public n4(q4 q4Var) { + this.a = q4Var; + } + + public static boolean a(Context context) { + ActivityInfo receiverInfo; + Objects.requireNonNull(context, "null reference"); + try { + PackageManager packageManager = context.getPackageManager(); + return (packageManager == null || (receiverInfo = packageManager.getReceiverInfo(new ComponentName(context, "com.google.android.gms.measurement.AppMeasurementReceiver"), 0)) == null || !receiverInfo.enabled) ? false : true; + } catch (PackageManager.NameNotFoundException unused) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n5.java b/app/src/main/java/b/i/a/f/i/b/n5.java new file mode 100644 index 0000000000..6111753ad0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n5.java @@ -0,0 +1,22 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzn; +import java.util.List; +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class n5 implements Callable> { + public final /* synthetic */ zzn j; + public final /* synthetic */ z4 k; + + public n5(z4 z4Var, zzn zzn) { + this.k = z4Var; + this.j = zzn; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final /* synthetic */ List call() throws Exception { + this.k.a.R(); + return this.k.a.K().C(this.j.j); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n6.java b/app/src/main/java/b/i/a/f/i/b/n6.java new file mode 100644 index 0000000000..e48d65bd08 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n6.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import b.c.a.a0.d; +import b.i.a.f.h.l.x7; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzz; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class n6 implements Runnable { + public final /* synthetic */ Bundle j; + public final /* synthetic */ c6 k; + + public n6(c6 c6Var, Bundle bundle) { + this.k = c6Var; + this.j = bundle; + } + + @Override // java.lang.Runnable + public final void run() { + c6 c6Var = this.k; + Bundle bundle = this.j; + c6Var.b(); + c6Var.t(); + Objects.requireNonNull(bundle, "null reference"); + d.w(bundle.getString(ModelAuditLogEntry.CHANGE_KEY_NAME)); + d.w(bundle.getString("origin")); + Objects.requireNonNull(bundle.get("value"), "null reference"); + if (!c6Var.a.d()) { + c6Var.g().n.a("Conditional property not set since app measurement is disabled"); + return; + } + try { + c6Var.p().y(new zzz(bundle.getString("app_id"), bundle.getString("origin"), new zzku(bundle.getString(ModelAuditLogEntry.CHANGE_KEY_NAME), bundle.getLong("triggered_timestamp"), bundle.get("value"), bundle.getString("origin")), bundle.getLong("creation_timestamp"), false, bundle.getString("trigger_event_name"), c6Var.e().B(bundle.getString("app_id"), bundle.getString("timed_out_event_name"), bundle.getBundle("timed_out_event_params"), bundle.getString("origin"), 0, true, x7.b() && c6Var.a.h.o(p.L0)), bundle.getLong("trigger_timeout"), c6Var.e().B(bundle.getString("app_id"), bundle.getString("triggered_event_name"), bundle.getBundle("triggered_event_params"), bundle.getString("origin"), 0, true, x7.b() && c6Var.a.h.o(p.L0)), bundle.getLong("time_to_live"), c6Var.e().B(bundle.getString("app_id"), bundle.getString("expired_event_name"), bundle.getBundle("expired_event_params"), bundle.getString("origin"), 0, true, x7.b() && c6Var.a.h.o(p.L0)))); + } catch (IllegalArgumentException unused) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n7.java b/app/src/main/java/b/i/a/f/i/b/n7.java new file mode 100644 index 0000000000..2e8f7f0c28 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n7.java @@ -0,0 +1,14 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class n7 implements Runnable { + public final /* synthetic */ h7 j; + + public n7(h7 h7Var) { + this.j = h7Var; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.j = null; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n8.java b/app/src/main/java/b/i/a/f/i/b/n8.java new file mode 100644 index 0000000000..beed1431d2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n8.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class n8 implements Runnable { + public final /* synthetic */ k8 j; + + public n8(k8 k8Var) { + this.j = k8Var; + } + + @Override // java.lang.Runnable + public final void run() { + q7 q7Var = this.j.l; + q7Var.d = null; + q7Var.H(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/n9.java b/app/src/main/java/b/i/a/f/i/b/n9.java new file mode 100644 index 0000000000..99670fd65b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/n9.java @@ -0,0 +1,21 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.text.TextUtils; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class n9 implements v9 { + public final /* synthetic */ k9 a; + + public n9(k9 k9Var) { + this.a = k9Var; + } + + @Override // b.i.a.f.i.b.v9 + public final void a(String str, Bundle bundle) { + if (TextUtils.isEmpty(str)) { + this.a.k.g().f.a("AppId not known when logging error event"); + } else { + this.a.f().v(new p9(this, str, bundle)); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o.java b/app/src/main/java/b/i/a/f/i/b/o.java new file mode 100644 index 0000000000..b23c9a3572 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o.java @@ -0,0 +1,32 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.measurement.internal.zzap; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzap createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Bundle bundle = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 2) { + d.b2(parcel, readInt); + } else { + bundle = d.M(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzap(bundle); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzap[] newArray(int i) { + return new zzap[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o0.java b/app/src/main/java/b/i/a/f/i/b/o0.java new file mode 100644 index 0000000000..428585cb1c --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class o0 implements h3 { + public static final h3 a = new o0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return ((m8) n8.j.a()).d(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o1.java b/app/src/main/java/b/i/a/f/i/b/o1.java new file mode 100644 index 0000000000..1fe2dcf584 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.sb; +import b.i.a.f.h.l.tb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class o1 implements h3 { + public static final h3 a = new o1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((sb) tb.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o2.java b/app/src/main/java/b/i/a/f/i/b/o2.java new file mode 100644 index 0000000000..bfb12d15e5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ea; +import b.i.a.f.h.l.ha; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class o2 implements h3 { + public static final h3 a = new o2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ha) ea.j.a()).c()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o3.java b/app/src/main/java/b/i/a/f/i/b/o3.java new file mode 100644 index 0000000000..2040ce75ce --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o3.java @@ -0,0 +1,140 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzaq; +import java.util.ArrayList; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o3 extends r5 { + public static final AtomicReference c = new AtomicReference<>(); + public static final AtomicReference d = new AtomicReference<>(); + public static final AtomicReference e = new AtomicReference<>(); + + public o3(u4 u4Var) { + super(u4Var); + } + + @Nullable + public static String v(String str, String[] strArr, String[] strArr2, AtomicReference atomicReference) { + String str2; + Objects.requireNonNull(atomicReference, "null reference"); + d.l(strArr.length == strArr2.length); + for (int i = 0; i < strArr.length; i++) { + if (t9.q0(str, strArr[i])) { + synchronized (atomicReference) { + String[] strArr3 = atomicReference.get(); + if (strArr3 == null) { + strArr3 = new String[strArr2.length]; + atomicReference.set(strArr3); + } + if (strArr3[i] == null) { + strArr3[i] = strArr2[i] + "(" + strArr[i] + ")"; + } + str2 = strArr3[i]; + } + return str2; + } + } + return str; + } + + @Override // b.i.a.f.i.b.r5 + public final boolean r() { + return false; + } + + @Nullable + public final String s(Bundle bundle) { + if (bundle == null) { + return null; + } + if (!z()) { + return bundle.toString(); + } + StringBuilder R = a.R("Bundle[{"); + for (String str : bundle.keySet()) { + if (R.length() != 8) { + R.append(", "); + } + R.append(x(str)); + R.append("="); + Object obj = bundle.get(str); + R.append(obj instanceof Bundle ? w(new Object[]{obj}) : obj instanceof Object[] ? w((Object[]) obj) : obj instanceof ArrayList ? w(((ArrayList) obj).toArray()) : String.valueOf(obj)); + } + R.append("}]"); + return R.toString(); + } + + @Nullable + public final String t(zzaq zzaq) { + if (!z()) { + return zzaq.toString(); + } + StringBuilder R = a.R("origin="); + R.append(zzaq.l); + R.append(",name="); + R.append(u(zzaq.j)); + R.append(",params="); + zzap zzap = zzaq.k; + R.append(zzap == null ? null : !z() ? zzap.toString() : s(zzap.x0())); + return R.toString(); + } + + @Nullable + public final String u(String str) { + if (str == null) { + return null; + } + return !z() ? str : v(str, v5.c, v5.a, c); + } + + @Nullable + public final String w(Object[] objArr) { + if (objArr == null) { + return "[]"; + } + StringBuilder R = a.R("["); + for (Object obj : objArr) { + String s2 = obj instanceof Bundle ? s((Bundle) obj) : String.valueOf(obj); + if (s2 != null) { + if (R.length() != 1) { + R.append(", "); + } + R.append(s2); + } + } + R.append("]"); + return R.toString(); + } + + @Nullable + public final String x(String str) { + if (str == null) { + return null; + } + return !z() ? str : v(str, u5.f1560b, u5.a, d); + } + + @Nullable + public final String y(String str) { + if (str == null) { + return null; + } + if (!z()) { + return str; + } + if (!str.startsWith("_exp_")) { + return v(str, x5.f1563b, x5.a, e); + } + return "experiment_id(" + str + ")"; + } + + public final boolean z() { + return this.a.v() && this.a.g().x(3); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o4.java b/app/src/main/java/b/i/a/f/i/b/o4.java new file mode 100644 index 0000000000..2a755cfe6c --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o4.java @@ -0,0 +1,97 @@ +package b.i.a.f.i.b; + +import android.content.ServiceConnection; +import android.net.Uri; +import android.os.Bundle; +import b.i.a.f.e.n.a; +import b.i.a.f.h.l.e2; +import b.i.a.f.h.l.g9; +import b.i.a.f.h.l.j9; +import com.adjust.sdk.Constants; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o4 implements Runnable { + public final /* synthetic */ e2 j; + public final /* synthetic */ ServiceConnection k; + public final /* synthetic */ l4 l; + + public o4(l4 l4Var, e2 e2Var, ServiceConnection serviceConnection) { + this.l = l4Var; + this.j = e2Var; + this.k = serviceConnection; + } + + /* JADX WARNING: Removed duplicated region for block: B:13:0x005f */ + /* JADX WARNING: Removed duplicated region for block: B:52:0x0185 */ + /* JADX WARNING: Removed duplicated region for block: B:54:? A[RETURN, SYNTHETIC] */ + @Override // java.lang.Runnable + public final void run() { + Bundle bundle; + l4 l4Var = this.l; + m4 m4Var = l4Var.k; + String str = l4Var.j; + e2 e2Var = this.j; + ServiceConnection serviceConnection = this.k; + m4Var.a.f().b(); + if (e2Var == null) { + m4Var.a.g().i.a("Attempting to use Install Referrer Service while it is not initialized"); + } else { + Bundle bundle2 = new Bundle(); + bundle2.putString("package_name", str); + try { + bundle = e2Var.f(bundle2); + if (bundle == null) { + m4Var.a.g().f.a("Install Referrer Service returned a null response"); + } + } catch (Exception e) { + m4Var.a.g().f.b("Exception occurred while retrieving the Install Referrer", e.getMessage()); + } + m4Var.a.f().b(); + if (bundle != null) { + long j = bundle.getLong("install_begin_timestamp_seconds", 0) * 1000; + if (j == 0) { + m4Var.a.g().i.a("Service response is missing Install Referrer install timestamp"); + } else { + String string = bundle.getString(Constants.INSTALL_REFERRER); + if (string == null || string.isEmpty()) { + m4Var.a.g().f.a("No referrer defined in Install Referrer response"); + } else { + m4Var.a.g().n.b("InstallReferrer API result", string); + Bundle x2 = m4Var.a.t().x(Uri.parse(string.length() != 0 ? "?".concat(string) : new String("?"))); + if (x2 == null) { + m4Var.a.g().f.a("No campaign params defined in Install Referrer result"); + } else { + String string2 = x2.getString(Constants.MEDIUM); + if (string2 != null && !"(not set)".equalsIgnoreCase(string2) && !"organic".equalsIgnoreCase(string2)) { + long j2 = bundle.getLong("referrer_click_timestamp_seconds", 0) * 1000; + if (j2 == 0) { + m4Var.a.g().f.a("Install Referrer is missing click timestamp for ad campaign"); + } else { + x2.putLong("click_timestamp", j2); + } + } + if (j == m4Var.a.o().l.a()) { + m4Var.a.g().n.a("Install Referrer campaign has already been logged"); + } else if (!((j9) g9.j.a()).a() || !m4Var.a.h.o(p.t0) || m4Var.a.d()) { + m4Var.a.o().l.b(j); + m4Var.a.g().n.b("Logging Install Referrer campaign from sdk with ", "referrer API"); + x2.putString("_cis", "referrer API"); + m4Var.a.s().H("auto", "_cmp", x2); + } + } + } + } + } + if (serviceConnection == null) { + a.b().c(m4Var.a.f1555b, serviceConnection); + return; + } + return; + } + bundle = null; + m4Var.a.f().b(); + if (bundle != null) { + } + if (serviceConnection == null) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o5.java b/app/src/main/java/b/i/a/f/i/b/o5.java new file mode 100644 index 0000000000..c66f6776bf --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o5.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class o5 implements Runnable { + public final /* synthetic */ zzku j; + public final /* synthetic */ zzn k; + public final /* synthetic */ z4 l; + + public o5(z4 z4Var, zzku zzku, zzn zzn) { + this.l = z4Var; + this.j = zzku; + this.k = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + this.l.a.R(); + if (this.j.w0() == null) { + this.l.a.D(this.j, this.k); + } else { + this.l.a.o(this.j, this.k); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o6.java b/app/src/main/java/b/i/a/f/i/b/o6.java new file mode 100644 index 0000000000..8e263f0501 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o6.java @@ -0,0 +1,28 @@ +package b.i.a.f.i.b; + +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o6 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ c6 m; + + public o6(c6 c6Var, AtomicReference atomicReference, String str, String str2) { + this.m = c6Var; + this.j = atomicReference; + this.k = str; + this.l = str2; + } + + @Override // java.lang.Runnable + public final void run() { + q7 x2 = this.m.a.x(); + AtomicReference atomicReference = this.j; + String str = this.k; + String str2 = this.l; + x2.b(); + x2.t(); + x2.z(new f8(x2, atomicReference, null, str, str2, x2.I(false))); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o7.java b/app/src/main/java/b/i/a/f/i/b/o7.java new file mode 100644 index 0000000000..d9cd1dd930 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o7.java @@ -0,0 +1,24 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o7 implements Runnable { + public final /* synthetic */ i7 j; + public final /* synthetic */ long k; + public final /* synthetic */ h7 l; + + public o7(h7 h7Var, i7 i7Var, long j) { + this.l = h7Var; + this.j = i7Var; + this.k = j; + } + + @Override // java.lang.Runnable + public final void run() { + this.l.C(this.j, false, this.k); + h7 h7Var = this.l; + h7Var.e = null; + q7 p = h7Var.p(); + p.b(); + p.t(); + p.z(new w7(p, null)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o8.java b/app/src/main/java/b/i/a/f/i/b/o8.java new file mode 100644 index 0000000000..b21e150995 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o8.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; + +import android.content.ComponentName; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class o8 implements Runnable { + public final /* synthetic */ k8 j; + + public o8(k8 k8Var) { + this.j = k8Var; + } + + @Override // java.lang.Runnable + public final void run() { + q7.x(this.j.l, new ComponentName(this.j.l.a.f1555b, "com.google.android.gms.measurement.AppMeasurementService")); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/o9.java b/app/src/main/java/b/i/a/f/i/b/o9.java new file mode 100644 index 0000000000..14a5d8920a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/o9.java @@ -0,0 +1,25 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.t8; +import com.google.android.gms.measurement.internal.zzn; +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class o9 implements Callable { + public final /* synthetic */ zzn j; + public final /* synthetic */ k9 k; + + public o9(k9 k9Var, zzn zzn) { + this.k = k9Var; + this.j = zzn; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final String call() throws Exception { + if (!t8.b() || !this.k.k.h.o(p.J0) || (this.k.a(this.j.j).k() && d.b(this.j.F).k())) { + return this.k.G(this.j).s(); + } + this.k.g().n.a("Analytics storage consent denied. Returning null app instance id"); + return null; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p.java b/app/src/main/java/b/i/a/f/i/b/p.java new file mode 100644 index 0000000000..76b9b6e019 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p.java @@ -0,0 +1,202 @@ +package b.i.a.f.i.b; + +import androidx.annotation.Nullable; +import com.adjust.sdk.Constants; +import com.discord.stores.StoreGuildScheduledEvents; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class p { + public static j3 A = a("measurement.upload.initial_upload_delay_time", 15000L, 15000L, l0.a); + public static j3 A0; + public static j3 B; + public static j3 B0; + public static j3 C = a("measurement.upload.retry_count", 6, 6, n0.a); + public static j3 C0; + public static j3 D = a("measurement.upload.max_queue_time", 2419200000L, 2419200000L, m0.a); + public static j3 D0; + public static j3 E = a("measurement.lifetimevalue.max_currency_tracked", 4, 4, p0.a); + public static j3 E0 = a("measurement.sdk.attribution.cache.ttl", 604800000L, 604800000L, t2.a); + public static j3 F = a("measurement.audience.filter_result_max_count", 200, 200, r0.a); + public static j3 F0; + public static j3 G = a("measurement.upload.max_public_user_properties", 25, 25, null); + public static j3 G0; + public static j3 H = a("measurement.upload.max_event_name_cardinality", 500, 500, null); + public static j3 H0; + public static j3 I = a("measurement.upload.max_public_event_params", 25, 25, null); + public static j3 I0; + public static j3 J = a("measurement.service_client.idle_disconnect_millis", 5000L, 5000L, q0.a); + public static j3 J0; + public static j3 K; + public static j3 K0 = a("measurement.service.storage_consent_support_version", 203590, 203590, y2.a); + public static j3 L = a("measurement.test.string_flag", "---", "---", s0.a); + public static j3 L0; + public static j3 M = a("measurement.test.long_flag", -1L, -1L, v0.a); + public static j3 M0; + public static j3 N = a("measurement.test.int_flag", -2, -2, u0.a); + public static j3 N0; + public static j3 O; + public static j3 O0; + public static j3 P = a("measurement.experiment.max_ids", 50, 50, w0.a); + public static j3 Q = a("measurement.max_bundles_per_iteration", 100, 100, a1.a); + public static j3 R; + public static j3 S; + public static j3 T; + public static j3 U; + public static j3 V; + public static j3 W; + public static j3 X; + public static j3 Y; + public static j3 Z; + public static List> a = Collections.synchronizedList(new ArrayList()); + + /* renamed from: a0 reason: collision with root package name */ + public static j3 f1536a0; + + /* renamed from: b reason: collision with root package name */ + public static j3 f1537b = a("measurement.ad_id_cache_time", 10000L, 10000L, s.a); + + /* renamed from: b0 reason: collision with root package name */ + public static j3 f1538b0; + public static j3 c = a("measurement.monitoring.sample_period_millis", 86400000L, 86400000L, r.a); + + /* renamed from: c0 reason: collision with root package name */ + public static j3 f1539c0; + public static j3 d = a("measurement.config.cache_time", 86400000L, 3600000L, f0.a); + + /* renamed from: d0 reason: collision with root package name */ + public static j3 f1540d0; + public static j3 e = a("measurement.config.url_scheme", Constants.SCHEME, Constants.SCHEME, o0.a); + + /* renamed from: e0 reason: collision with root package name */ + public static j3 f1541e0; + public static j3 f = a("measurement.config.url_authority", "app-measurement.com", "app-measurement.com", c1.a); + + /* renamed from: f0 reason: collision with root package name */ + public static j3 f1542f0; + public static j3 g = a("measurement.upload.max_bundles", 100, 100, l1.a); + + /* renamed from: g0 reason: collision with root package name */ + public static j3 f1543g0; + public static j3 h = a("measurement.upload.max_batch_size", 65536, 65536, y1.a); + + /* renamed from: h0 reason: collision with root package name */ + public static j3 f1544h0; + public static j3 i = a("measurement.upload.max_bundle_size", 65536, 65536, i2.a); + + /* renamed from: i0 reason: collision with root package name */ + public static j3 f1545i0; + public static j3 j = a("measurement.upload.max_events_per_bundle", 1000, 1000, v2.a); + + /* renamed from: j0 reason: collision with root package name */ + public static j3 f1546j0; + public static j3 k = a("measurement.upload.max_events_per_day", 100000, 100000, g3.a); + public static j3 k0; + public static j3 l = a("measurement.upload.max_error_events_per_day", 1000, 1000, u.a); + public static j3 l0; + public static j3 m = a("measurement.upload.max_public_events_per_day", 50000, 50000, t.a); + public static j3 m0; + public static j3 n = a("measurement.upload.max_conversions_per_day", 10000, 10000, w.a); + public static j3 n0; + public static j3 o = a("measurement.upload.max_realtime_events_per_day", 10, 10, v.a); + public static j3 o0; + public static j3 p = a("measurement.store.max_stored_events_per_app", 100000, 100000, z.a); + public static j3 p0; + public static j3 q = a("measurement.upload.url", "https://app-measurement.com/a", "https://app-measurement.com/a", y.a); + public static j3 q0; + public static j3 r = a("measurement.upload.backoff_period", 43200000L, 43200000L, b0.a); + public static j3 r0; + + /* renamed from: s reason: collision with root package name */ + public static j3 f1547s = a("measurement.upload.window_interval", 3600000L, 3600000L, a0.a); + public static j3 s0; + public static j3 t = a("measurement.upload.interval", 3600000L, 3600000L, d0.a); + public static j3 t0; + public static j3 u = a("measurement.upload.realtime_upload_interval", 10000L, 10000L, c0.a); + public static j3 u0; + public static j3 v = a("measurement.upload.debug_upload_interval", 1000L, 1000L, e0.a); + public static j3 v0; + public static j3 w = a("measurement.upload.minimum_delay", 500L, 500L, h0.a); + public static j3 w0; + + /* renamed from: x reason: collision with root package name */ + public static j3 f1548x = a("measurement.alarm_manager.minimum_interval", 60000L, 60000L, g0.a); + public static j3 x0; + + /* renamed from: y reason: collision with root package name */ + public static j3 f1549y = a("measurement.upload.stale_data_deletion_interval", 86400000L, 86400000L, j0.a); + public static j3 y0; + + /* renamed from: z reason: collision with root package name */ + public static j3 f1550z = a("measurement.upload.refresh_blacklisted_config_interval", 604800000L, 604800000L, i0.a); + public static j3 z0; + + static { + Collections.synchronizedSet(new HashSet()); + Long valueOf = Long.valueOf((long) StoreGuildScheduledEvents.FETCH_GUILD_EVENTS_THRESHOLD); + B = a("measurement.upload.retry_time", valueOf, valueOf, k0.a); + Boolean bool = Boolean.FALSE; + K = a("measurement.test.boolean_flag", bool, bool, t0.a); + Double valueOf2 = Double.valueOf(-3.0d); + O = a("measurement.test.double_flag", valueOf2, valueOf2, x0.a); + R = a("measurement.validation.internal_limits_internal_event_params", bool, bool, z0.a); + Boolean bool2 = Boolean.TRUE; + S = a("measurement.collection.firebase_global_collection_flag_enabled", bool2, bool2, b1.a); + T = a("measurement.collection.efficient_engagement_reporting_enabled_2", bool2, bool2, e1.a); + U = a("measurement.collection.redundant_engagement_removal_enabled", bool, bool, d1.a); + V = a("measurement.client.freeride_engagement_fix", bool2, bool2, g1.a); + W = a("measurement.collection.log_event_and_bundle_v2", bool2, bool2, f1.a); + X = a("measurement.quality.checksum", bool, bool, null); + Y = a("measurement.sdk.dynamite.allow_remote_dynamite3", bool2, bool2, i1.a); + Z = a("measurement.sdk.collection.validate_param_names_alphabetical", bool2, bool2, h1.a); + f1536a0 = a("measurement.audience.use_bundle_end_timestamp_for_non_sequence_property_filters", bool, bool, k1.a); + f1538b0 = a("measurement.audience.refresh_event_count_filters_timestamp", bool, bool, j1.a); + f1539c0 = a("measurement.audience.use_bundle_timestamp_for_event_count_filters", bool, bool, m1.a); + f1540d0 = a("measurement.sdk.collection.retrieve_deeplink_from_bow_2", bool2, bool2, o1.a); + f1541e0 = a("measurement.sdk.collection.last_deep_link_referrer2", bool2, bool2, n1.a); + f1542f0 = a("measurement.sdk.collection.last_deep_link_referrer_campaign2", bool, bool, q1.a); + f1543g0 = a("measurement.sdk.collection.last_gclid_from_referrer2", bool, bool, p1.a); + f1544h0 = a("measurement.sdk.collection.enable_extend_user_property_size", bool2, bool2, s1.a); + f1545i0 = a("measurement.upload.file_lock_state_check", bool, bool, r1.a); + f1546j0 = a("measurement.ga.ga_app_id", bool, bool, u1.a); + k0 = a("measurement.lifecycle.app_in_background_parameter", bool, bool, t1.a); + l0 = a("measurement.integration.disable_firebase_instance_id", bool, bool, w1.a); + m0 = a("measurement.lifecycle.app_backgrounded_engagement", bool, bool, v1.a); + n0 = a("measurement.collection.service.update_with_analytics_fix", bool, bool, x1.a); + o0 = a("measurement.service.use_appinfo_modified", bool, bool, b2.a); + p0 = a("measurement.client.firebase_feature_rollout.v1.enable", bool2, bool2, a2.a); + q0 = a("measurement.client.sessions.check_on_reset_and_enable2", bool2, bool2, d2.a); + r0 = a("measurement.scheduler.task_thread.cleanup_on_exit", bool, bool, c2.a); + s0 = a("measurement.upload.file_truncate_fix", bool, bool, f2.a); + t0 = a("measurement.sdk.referrer.delayed_install_referrer_api", bool, bool, e2.a); + u0 = a("measurement.sdk.screen.disabling_automatic_reporting", bool2, bool2, h2.a); + v0 = a("measurement.sdk.screen.manual_screen_view_logging", bool2, bool2, g2.a); + a("measurement.collection.synthetic_data_mitigation", bool, bool, j2.a); + w0 = a("measurement.service.configurable_service_limits", bool2, bool2, l2.a); + x0 = a("measurement.client.configurable_service_limits", bool2, bool2, k2.a); + y0 = a("measurement.androidId.delete_feature", bool2, bool2, n2.a); + z0 = a("measurement.client.global_params", bool2, bool2, m2.a); + A0 = a("measurement.service.global_params", bool2, bool2, p2.a); + B0 = a("measurement.service.global_params_in_payload", bool2, bool2, o2.a); + C0 = a("measurement.client.string_reader", bool2, bool2, r2.a); + D0 = a("measurement.sdk.attribution.cache", bool2, bool2, q2.a); + F0 = a("measurement.service.database_return_empty_collection", bool2, bool2, s2.a); + G0 = a("measurement.service.ssaid_removal", bool2, bool2, u2.a); + H0 = a("measurement.client.consent_state_v1", bool2, bool2, x2.a); + I0 = a("measurement.client.3p_consent_state_v1", bool2, bool2, w2.a); + Boolean bool3 = Boolean.FALSE; + J0 = a("measurement.service.consent_state_v1_W36", bool3, bool3, z2.a); + L0 = a("measurement.client.ad_impression", bool2, bool2, c3.a); + M0 = a("measurement.service.ad_impression", bool2, bool2, b3.a); + N0 = a("measurement.service.separate_public_internal_event_blacklisting", bool2, bool2, e3.a); + O0 = a("measurement.service.directly_maybe_log_error_events", bool3, bool3, d3.a); + } + + public static j3 a(@Nullable String str, @Nullable V v2, @Nullable V v3, @Nullable h3 h3Var) { + j3 j3Var = new j3<>(str, v2, v3, h3Var, null); + a.add(j3Var); + return j3Var; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p0.java b/app/src/main/java/b/i/a/f/i/b/p0.java new file mode 100644 index 0000000000..9788d36bc6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class p0 implements h3 { + public static final h3 a = new p0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).t()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p1.java b/app/src/main/java/b/i/a/f/i/b/p1.java new file mode 100644 index 0000000000..2e732ddf63 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ia; +import b.i.a.f.h.l.ja; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class p1 implements h3 { + public static final h3 a = new p1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ia) ja.j.a()).d()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p2.java b/app/src/main/java/b/i/a/f/i/b/p2.java new file mode 100644 index 0000000000..72dbd2a0f6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ea; +import b.i.a.f.h.l.ha; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class p2 implements h3 { + public static final h3 a = new p2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ha) ea.j.a()).d()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p3.java b/app/src/main/java/b/i/a/f/i/b/p3.java new file mode 100644 index 0000000000..0ce0d01bb0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p3.java @@ -0,0 +1,62 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteDatabaseLockedException; +import android.database.sqlite.SQLiteException; +import android.database.sqlite.SQLiteOpenHelper; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class p3 extends SQLiteOpenHelper { + public final /* synthetic */ m3 j; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public p3(m3 m3Var, Context context, String str) { + super(context, str, (SQLiteDatabase.CursorFactory) null, 1); + this.j = m3Var; + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final SQLiteDatabase getWritableDatabase() throws SQLiteException { + try { + return super.getWritableDatabase(); + } catch (SQLiteDatabaseLockedException e) { + throw e; + } catch (SQLiteException unused) { + this.j.g().f.a("Opening the local database failed, dropping and recreating it"); + if (!this.j.a.f1555b.getDatabasePath("google_app_measurement_local.db").delete()) { + this.j.g().f.b("Failed to delete corrupted local db file", "google_app_measurement_local.db"); + } + try { + return super.getWritableDatabase(); + } catch (SQLiteException e2) { + this.j.g().f.b("Failed to open local database. Events will bypass local storage", e2); + return null; + } + } + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final void onCreate(SQLiteDatabase sQLiteDatabase) { + f.W1(this.j.g(), sQLiteDatabase); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final void onOpen(SQLiteDatabase sQLiteDatabase) { + f.X1(this.j.g(), sQLiteDatabase, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", null); + } + + @Override // android.database.sqlite.SQLiteOpenHelper + @WorkerThread + public final void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) { + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p4.java b/app/src/main/java/b/i/a/f/i/b/p4.java new file mode 100644 index 0000000000..6b45fed23f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p4.java @@ -0,0 +1,528 @@ +package b.i.a.f.i.b; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.text.TextUtils; +import androidx.annotation.WorkerThread; +import androidx.collection.ArrayMap; +import b.c.a.a0.d; +import b.i.a.f.e.o.f; +import b.i.a.f.h.l.k0; +import b.i.a.f.h.l.l0; +import b.i.a.f.h.l.m0; +import b.i.a.f.h.l.o0; +import b.i.a.f.h.l.t0; +import b.i.a.f.h.l.u0; +import b.i.a.f.h.l.u4; +import b.i.a.f.h.l.v0; +import b.i.a.f.h.l.x7; +import com.google.android.gms.internal.measurement.zzij; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class p4 extends i9 implements e { + public final Map> d = new ArrayMap(); + public final Map> e = new ArrayMap(); + public final Map> f = new ArrayMap(); + public final Map g = new ArrayMap(); + public final Map> h = new ArrayMap(); + public final Map i = new ArrayMap(); + + public p4(k9 k9Var) { + super(k9Var); + } + + public static Map u(u0 u0Var) { + ArrayMap arrayMap = new ArrayMap(); + for (v0 v0Var : u0Var.B()) { + arrayMap.put(v0Var.u(), v0Var.v()); + } + return arrayMap; + } + + @WorkerThread + public final boolean A(String str) { + b(); + u0 s2 = s(str); + if (s2 == null) { + return false; + } + return s2.E(); + } + + @WorkerThread + public final long B(String str) { + String i = i(str, "measurement.account.time_zone_offset_minutes"); + if (TextUtils.isEmpty(i)) { + return 0; + } + try { + return Long.parseLong(i); + } catch (NumberFormatException e) { + g().i.c("Unable to parse timezone offset. appId", q3.s(str), e); + return 0; + } + } + + public final boolean C(String str) { + return "1".equals(i(str, "measurement.upload.blacklist_internal")); + } + + public final boolean D(String str) { + return "1".equals(i(str, "measurement.upload.blacklist_public")); + } + + /* JADX WARNING: Removed duplicated region for block: B:20:0x007c */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x0082 */ + /* JADX WARNING: Removed duplicated region for block: B:25:0x00a1 */ + /* JADX WARNING: Removed duplicated region for block: B:29:0x00d6 */ + @WorkerThread + public final void E(String str) { + Throwable th; + byte[] bArr; + SQLiteException e; + Cursor cursor; + n(); + b(); + d.w(str); + if (this.g.get(str) == null) { + g q = q(); + Objects.requireNonNull(q); + d.w(str); + q.b(); + q.n(); + Cursor cursor2 = null; + try { + cursor = q.t().query("apps", new String[]{"remote_config"}, "app_id=?", new String[]{str}, null, null, null); + try { + if (!cursor.moveToFirst()) { + cursor.close(); + bArr = null; + if (bArr != null) { + this.d.put(str, null); + this.e.put(str, null); + this.f.put(str, null); + this.g.put(str, null); + this.i.put(str, null); + this.h.put(str, null); + return; + } + u0.a t = t(str, bArr).t(); + v(str, t); + this.d.put(str, u((u0) ((u4) t.p()))); + this.g.put(str, (u0) ((u4) t.p())); + this.i.put(str, null); + return; + } + bArr = cursor.getBlob(0); + if (cursor.moveToNext()) { + q.g().f.b("Got multiple records for app config, expected one. appId", q3.s(str)); + } + cursor.close(); + if (bArr != null) { + } + } catch (SQLiteException e2) { + e = e2; + try { + q.g().f.c("Error querying remote config. appId", q3.s(str), e); + if (cursor != null) { + } + bArr = null; + if (bArr != null) { + } + } catch (Throwable th2) { + th = th2; + cursor2 = cursor; + if (cursor2 != null) { + } + throw th; + } + } + } catch (SQLiteException e3) { + e = e3; + cursor = null; + q.g().f.c("Error querying remote config. appId", q3.s(str), e); + if (cursor != null) { + cursor.close(); + } + bArr = null; + if (bArr != null) { + } + } catch (Throwable th3) { + th = th3; + if (cursor2 != null) { + cursor2.close(); + } + throw th; + } + } + } + + @Override // b.i.a.f.i.b.e + @WorkerThread + public final String i(String str, String str2) { + b(); + E(str); + Map map = this.d.get(str); + if (map != null) { + return map.get(str2); + } + return null; + } + + @Override // b.i.a.f.i.b.i9 + public final boolean p() { + return false; + } + + @WorkerThread + public final u0 s(String str) { + n(); + b(); + d.w(str); + E(str); + return this.g.get(str); + } + + @WorkerThread + public final u0 t(String str, byte[] bArr) { + if (bArr == null) { + return u0.G(); + } + try { + u0 u0Var = (u0) ((u4) ((u0.a) q9.x(u0.F(), bArr)).p()); + s3 s3Var = g().n; + String str2 = null; + Long valueOf = u0Var.x() ? Long.valueOf(u0Var.y()) : null; + if (u0Var.z()) { + str2 = u0Var.A(); + } + s3Var.c("Parsed config. version, gmp_app_id", valueOf, str2); + return u0Var; + } catch (zzij e) { + g().i.c("Unable to merge remote config. appId", q3.s(str), e); + return u0.G(); + } catch (RuntimeException e2) { + g().i.c("Unable to merge remote config. appId", q3.s(str), e2); + return u0.G(); + } + } + + public final void v(String str, u0.a aVar) { + ArrayMap arrayMap = new ArrayMap(); + ArrayMap arrayMap2 = new ArrayMap(); + ArrayMap arrayMap3 = new ArrayMap(); + for (int i = 0; i < ((u0) aVar.k).C(); i++) { + t0.a t = ((u0) aVar.k).u(i).t(); + if (TextUtils.isEmpty(t.q())) { + g().i.a("EventConfig contained null event name"); + } else { + String q = t.q(); + String P1 = f.P1(t.q(), v5.a, v5.c); + if (!TextUtils.isEmpty(P1)) { + if (t.l) { + t.n(); + t.l = false; + } + t0.v((t0) t.k, P1); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + u0.w((u0) aVar.k, i, (t0) ((u4) t.p())); + } + if (!x7.b() || !this.a.h.o(p.N0)) { + arrayMap.put(t.q(), Boolean.valueOf(((t0) t.k).w())); + } else { + arrayMap.put(q, Boolean.valueOf(((t0) t.k).w())); + } + arrayMap2.put(t.q(), Boolean.valueOf(((t0) t.k).x())); + if (((t0) t.k).y()) { + if (t.r() < 2 || t.r() > 65535) { + g().i.c("Invalid sampling rate. Event name, sample rate", t.q(), Integer.valueOf(t.r())); + } else { + arrayMap3.put(t.q(), Integer.valueOf(t.r())); + } + } + } + } + this.e.put(str, arrayMap); + this.f.put(str, arrayMap2); + this.h.put(str, arrayMap3); + } + + @WorkerThread + public final boolean w(String str, byte[] bArr, String str2) { + byte[] bArr2; + boolean z2; + String str3; + boolean z3; + boolean z4; + n(); + b(); + d.w(str); + u0.a t = t(str, bArr).t(); + v(str, t); + this.g.put(str, (u0) ((u4) t.p())); + this.i.put(str, str2); + this.d.put(str, u((u0) ((u4) t.p()))); + g q = q(); + ArrayList arrayList = new ArrayList(Collections.unmodifiableList(((u0) t.k).D())); + Objects.requireNonNull(q); + String str4 = "app_id=? and audience_id=?"; + String str5 = "null reference"; + int i = 0; + while (i < arrayList.size()) { + k0.a t2 = ((k0) arrayList.get(i)).t(); + if (((k0) t2.k).D() != 0) { + int i2 = 0; + while (i2 < ((k0) t2.k).D()) { + l0.a t3 = ((k0) t2.k).z(i2).t(); + l0.a aVar = (l0.a) ((u4.b) t3.clone()); + String P1 = f.P1(((l0) t3.k).z(), v5.a, v5.c); + if (P1 != null) { + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + l0.w((l0) aVar.k, P1); + z4 = true; + } else { + z4 = false; + } + int i3 = 0; + while (i3 < ((l0) t3.k).B()) { + m0 u = ((l0) t3.k).u(i3); + String P12 = f.P1(u.C(), u5.a, u5.f1560b); + if (P12 != null) { + m0.a t4 = u.t(); + if (t4.l) { + t4.n(); + t4.l = false; + } + m0.u((m0) t4.k, P12); + m0 m0Var = (m0) ((u4) t4.p()); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + l0.v((l0) aVar.k, i3, m0Var); + z4 = true; + } + i3++; + t3 = t3; + str4 = str4; + str5 = str5; + } + if (z4) { + if (t2.l) { + t2.n(); + t2.l = false; + } + k0.v((k0) t2.k, i2, (l0) ((u4) aVar.p())); + arrayList.set(i, (k0) ((u4) t2.p())); + } + i2++; + t = t; + str4 = str4; + str5 = str5; + } + } + if (((k0) t2.k).B() != 0) { + for (int i4 = 0; i4 < ((k0) t2.k).B(); i4++) { + o0 u2 = ((k0) t2.k).u(i4); + String P13 = f.P1(u2.x(), x5.a, x5.f1563b); + if (P13 != null) { + o0.a t5 = u2.t(); + if (t5.l) { + t5.n(); + z3 = false; + t5.l = false; + } else { + z3 = false; + } + o0.u((o0) t5.k, P13); + if (t2.l) { + t2.n(); + t2.l = z3; + } + k0.w((k0) t2.k, i4, (o0) ((u4) t5.p())); + arrayList.set(i, (k0) ((u4) t2.p())); + } + } + } + i++; + t = t; + str4 = str4; + str5 = str5; + } + String str6 = str4; + String str7 = str5; + q.n(); + q.b(); + d.w(str); + SQLiteDatabase t6 = q.t(); + t6.beginTransaction(); + try { + q.n(); + q.b(); + d.w(str); + SQLiteDatabase t7 = q.t(); + t7.delete("property_filters", "app_id=?", new String[]{str}); + t7.delete("event_filters", "app_id=?", new String[]{str}); + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + k0 k0Var = (k0) it.next(); + q.n(); + q.b(); + d.w(str); + Objects.requireNonNull(k0Var, str7); + if (!k0Var.x()) { + q.g().i.b("Audience with no ID. appId", q3.s(str)); + } else { + int y2 = k0Var.y(); + Iterator it2 = k0Var.C().iterator(); + while (true) { + if (it2.hasNext()) { + if (!it2.next().x()) { + q.g().i.c("Event filter with no ID. Audience definition ignored. appId, audienceId", q3.s(str), Integer.valueOf(y2)); + break; + } + } else { + for (o0 o0Var : k0Var.A()) { + if (!o0Var.v()) { + q.g().i.c("Property filter with no ID. Audience definition ignored. appId, audienceId", q3.s(str), Integer.valueOf(y2)); + } + } + Iterator it3 = k0Var.C().iterator(); + while (true) { + if (it3.hasNext()) { + if (!q.O(str, y2, it3.next())) { + z2 = false; + break; + } + } else { + z2 = true; + break; + } + } + if (z2) { + Iterator it4 = k0Var.A().iterator(); + while (true) { + if (it4.hasNext()) { + if (!q.P(str, y2, it4.next())) { + z2 = false; + break; + } + } else { + break; + } + } + } + if (!z2) { + q.n(); + q.b(); + d.w(str); + SQLiteDatabase t8 = q.t(); + str3 = str6; + t8.delete("property_filters", str3, new String[]{str, String.valueOf(y2)}); + t8.delete("event_filters", str3, new String[]{str, String.valueOf(y2)}); + } else { + str3 = str6; + } + str7 = str7; + str6 = str3; + } + } + } + str7 = str7; + } + ArrayList arrayList2 = new ArrayList(); + Iterator it5 = arrayList.iterator(); + while (it5.hasNext()) { + k0 k0Var2 = (k0) it5.next(); + arrayList2.add(k0Var2.x() ? Integer.valueOf(k0Var2.y()) : null); + } + q.W(str, arrayList2); + t6.setTransactionSuccessful(); + try { + if (t.l) { + t.n(); + t.l = false; + } + u0.v((u0) t.k); + bArr2 = ((u0) ((u4) t.p())).d(); + } catch (RuntimeException e) { + g().i.c("Unable to serialize reduced-size config. Storing full config instead. appId", q3.s(str), e); + bArr2 = bArr; + } + g q2 = q(); + d.w(str); + q2.b(); + q2.n(); + ContentValues contentValues = new ContentValues(); + contentValues.put("remote_config", bArr2); + try { + if (((long) q2.t().update("apps", contentValues, "app_id = ?", new String[]{str})) == 0) { + q2.g().f.b("Failed to update remote config (got 0). appId", q3.s(str)); + } + } catch (SQLiteException e2) { + q2.g().f.c("Error storing remote config. appId", q3.s(str), e2); + } + this.g.put(str, (u0) ((u4) t.p())); + return true; + } finally { + t6.endTransaction(); + } + } + + @WorkerThread + public final boolean x(String str, String str2) { + Boolean bool; + b(); + E(str); + if ("1".equals(i(str, "measurement.upload.blacklist_internal")) && t9.r0(str2)) { + return true; + } + if ("1".equals(i(str, "measurement.upload.blacklist_public")) && t9.X(str2)) { + return true; + } + Map map = this.e.get(str); + if (map == null || (bool = map.get(str2)) == null) { + return false; + } + return bool.booleanValue(); + } + + @WorkerThread + public final boolean y(String str, String str2) { + Boolean bool; + b(); + E(str); + if ("ecommerce_purchase".equals(str2) || "purchase".equals(str2) || "refund".equals(str2)) { + return true; + } + Map map = this.f.get(str); + if (map == null || (bool = map.get(str2)) == null) { + return false; + } + return bool.booleanValue(); + } + + @WorkerThread + public final int z(String str, String str2) { + Integer num; + b(); + E(str); + Map map = this.h.get(str); + if (map == null || (num = map.get(str2)) == null) { + return 1; + } + return num.intValue(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p5.java b/app/src/main/java/b/i/a/f/i/b/p5.java new file mode 100644 index 0000000000..113453a63d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p5.java @@ -0,0 +1,35 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class p5 implements Runnable { + public final /* synthetic */ String j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ long m; + public final /* synthetic */ z4 n; + + public p5(z4 z4Var, String str, String str2, String str3, long j) { + this.n = z4Var; + this.j = str; + this.k = str2; + this.l = str3; + this.m = j; + } + + @Override // java.lang.Runnable + public final void run() { + if (this.j == null) { + this.n.a.k.w().D(this.k, null); + return; + } + h7 w = this.n.a.k.w(); + String str = this.k; + w.b(); + synchronized (w) { + String str2 = w.m; + if (str2 != null) { + str2.equals(str); + } + w.m = str; + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p6.java b/app/src/main/java/b/i/a/f/i/b/p6.java new file mode 100644 index 0000000000..fb6ead0c8d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p6.java @@ -0,0 +1,37 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import b.c.a.a0.d; +import b.i.a.f.h.l.x7; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzz; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class p6 implements Runnable { + public final /* synthetic */ Bundle j; + public final /* synthetic */ c6 k; + + public p6(c6 c6Var, Bundle bundle) { + this.k = c6Var; + this.j = bundle; + } + + @Override // java.lang.Runnable + public final void run() { + c6 c6Var = this.k; + Bundle bundle = this.j; + c6Var.b(); + c6Var.t(); + Objects.requireNonNull(bundle, "null reference"); + d.w(bundle.getString(ModelAuditLogEntry.CHANGE_KEY_NAME)); + if (!c6Var.a.d()) { + c6Var.g().n.a("Conditional property not cleared since app measurement is disabled"); + return; + } + try { + c6Var.p().y(new zzz(bundle.getString("app_id"), bundle.getString("origin"), new zzku(bundle.getString(ModelAuditLogEntry.CHANGE_KEY_NAME), 0, null, null), bundle.getLong("creation_timestamp"), bundle.getBoolean("active"), bundle.getString("trigger_event_name"), null, bundle.getLong("trigger_timeout"), null, bundle.getLong("time_to_live"), c6Var.e().B(bundle.getString("app_id"), bundle.getString("expired_event_name"), bundle.getBundle("expired_event_params"), bundle.getString("origin"), bundle.getLong("creation_timestamp"), true, x7.b() && c6Var.a.h.o(p.L0)))); + } catch (IllegalArgumentException unused) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p7.java b/app/src/main/java/b/i/a/f/i/b/p7.java new file mode 100644 index 0000000000..74e633c263 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p7.java @@ -0,0 +1,21 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class p7 extends i { + public final /* synthetic */ q7 e; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public p7(q7 q7Var, t5 t5Var) { + super(t5Var); + this.e = q7Var; + } + + @Override // b.i.a.f.i.b.i + public final void a() { + q7 q7Var = this.e; + q7Var.b(); + if (q7Var.B()) { + q7Var.g().n.a("Inactivity, disconnecting from the service"); + q7Var.D(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p8.java b/app/src/main/java/b/i/a/f/i/b/p8.java new file mode 100644 index 0000000000..0b4c56f1e5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p8.java @@ -0,0 +1,37 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import android.content.Intent; +import androidx.annotation.MainThread; +import b.i.a.f.i.b.t8; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class p8 { + public final T a; + + public p8(T t) { + this.a = t; + } + + @MainThread + public final boolean a(Intent intent) { + if (intent == null) { + b().f.a("onUnbind called with null intent"); + return true; + } + b().n.b("onUnbind called for intent. action", intent.getAction()); + return true; + } + + public final q3 b() { + return u4.b(this.a, null, null).g(); + } + + @MainThread + public final void c(Intent intent) { + if (intent == null) { + b().f.a("onRebind called with null intent"); + return; + } + b().n.b("onRebind called. action", intent.getAction()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/p9.java b/app/src/main/java/b/i/a/f/i/b/p9.java new file mode 100644 index 0000000000..981cdfd294 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/p9.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import b.i.a.f.e.o.c; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class p9 implements Runnable { + public final /* synthetic */ String j; + public final /* synthetic */ Bundle k; + public final /* synthetic */ n9 l; + + public p9(n9 n9Var, String str, Bundle bundle) { + this.l = n9Var; + this.j = str; + this.k = bundle; + } + + @Override // java.lang.Runnable + public final void run() { + t9 t = this.l.a.k.t(); + String str = this.j; + Bundle bundle = this.k; + Objects.requireNonNull((c) this.l.a.k.o); + this.l.a.m(t.B(str, "_err", bundle, "auto", System.currentTimeMillis(), false, false), this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/q.java b/app/src/main/java/b/i/a/f/i/b/q.java new file mode 100644 index 0000000000..0fedd2230c --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q.java @@ -0,0 +1,42 @@ +package b.i.a.f.i.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzaq; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class q implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzaq createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + zzap zzap = null; + String str2 = null; + long j = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 2) { + str = d.Q(parcel, readInt); + } else if (i == 3) { + zzap = (zzap) d.P(parcel, readInt, zzap.CREATOR); + } else if (i == 4) { + str2 = d.Q(parcel, readInt); + } else if (i != 5) { + d.b2(parcel, readInt); + } else { + j = d.F1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzaq(str, zzap, str2, j); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzaq[] newArray(int i) { + return new zzaq[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/q0.java b/app/src/main/java/b/i/a/f/i/b/q0.java new file mode 100644 index 0000000000..090509d0a7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class q0 implements h3 { + public static final h3 a = new q0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).v()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/q1.java b/app/src/main/java/b/i/a/f/i/b/q1.java new file mode 100644 index 0000000000..bfc1a514b0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ia; +import b.i.a.f.h.l.ja; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class q1 implements h3 { + public static final h3 a = new q1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ia) ja.j.a()).c()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/q2.java b/app/src/main/java/b/i/a/f/i/b/q2.java new file mode 100644 index 0000000000..6b407e588d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.i8; +import b.i.a.f.h.l.l8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class q2 implements h3 { + public static final h3 a = new q2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((l8) i8.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/q3.java b/app/src/main/java/b/i/a/f/i/b/q3.java new file mode 100644 index 0000000000..de5d7b83f4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q3.java @@ -0,0 +1,236 @@ +package b.i.a.f.i.b; + +import android.text.TextUtils; +import android.util.Log; +import android.util.Pair; +import androidx.annotation.GuardedBy; +import b.d.b.a.a; +import b.i.a.f.e.o.c; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class q3 extends r5 { + public char c = 0; + public long d = -1; + @GuardedBy("this") + public String e; + public final s3 f = new s3(this, 6, false, false); + public final s3 g = new s3(this, 6, true, false); + public final s3 h = new s3(this, 6, false, true); + public final s3 i = new s3(this, 5, false, false); + public final s3 j = new s3(this, 5, true, false); + public final s3 k = new s3(this, 5, false, true); + public final s3 l = new s3(this, 4, false, false); + public final s3 m = new s3(this, 3, false, false); + public final s3 n = new s3(this, 2, false, false); + + public q3(u4 u4Var) { + super(u4Var); + } + + public static Object s(String str) { + if (str == null) { + return null; + } + return new v3(str); + } + + public static String t(boolean z2, Object obj) { + String className; + String str = ""; + if (obj == null) { + return str; + } + if (obj instanceof Integer) { + obj = Long.valueOf((long) ((Integer) obj).intValue()); + } + int i = 0; + if (obj instanceof Long) { + if (!z2) { + return String.valueOf(obj); + } + Long l = (Long) obj; + if (Math.abs(l.longValue()) < 100) { + return String.valueOf(obj); + } + if (String.valueOf(obj).charAt(0) == '-') { + str = "-"; + } + String valueOf = String.valueOf(Math.abs(l.longValue())); + long round = Math.round(Math.pow(10.0d, (double) (valueOf.length() - 1))); + long round2 = Math.round(Math.pow(10.0d, (double) valueOf.length()) - 1.0d); + StringBuilder P = a.P(str.length() + str.length() + 43, str, round, "..."); + P.append(str); + P.append(round2); + return P.toString(); + } else if (obj instanceof Boolean) { + return String.valueOf(obj); + } else { + if (!(obj instanceof Throwable)) { + return obj instanceof v3 ? ((v3) obj).a : z2 ? "-" : String.valueOf(obj); + } + Throwable th = (Throwable) obj; + StringBuilder sb = new StringBuilder(z2 ? th.getClass().getName() : th.toString()); + String y2 = y(u4.class.getCanonicalName()); + StackTraceElement[] stackTrace = th.getStackTrace(); + int length = stackTrace.length; + while (true) { + if (i >= length) { + break; + } + StackTraceElement stackTraceElement = stackTrace[i]; + if (!stackTraceElement.isNativeMethod() && (className = stackTraceElement.getClassName()) != null && y(className).equals(y2)) { + sb.append(": "); + sb.append(stackTraceElement); + break; + } + i++; + } + return sb.toString(); + } + } + + public static String u(boolean z2, String str, Object obj, Object obj2, Object obj3) { + String str2 = ""; + if (str == null) { + str = str2; + } + String t = t(z2, obj); + String t2 = t(z2, obj2); + String t3 = t(z2, obj3); + StringBuilder sb = new StringBuilder(); + if (!TextUtils.isEmpty(str)) { + sb.append(str); + str2 = ": "; + } + String str3 = ", "; + if (!TextUtils.isEmpty(t)) { + sb.append(str2); + sb.append(t); + str2 = str3; + } + if (!TextUtils.isEmpty(t2)) { + sb.append(str2); + sb.append(t2); + } else { + str3 = str2; + } + if (!TextUtils.isEmpty(t3)) { + sb.append(str3); + sb.append(t3); + } + return sb.toString(); + } + + public static String y(String str) { + if (TextUtils.isEmpty(str)) { + return ""; + } + int lastIndexOf = str.lastIndexOf(46); + return lastIndexOf == -1 ? str : str.substring(0, lastIndexOf); + } + + public final s3 A() { + return this.i; + } + + public final s3 B() { + return this.k; + } + + public final s3 C() { + return this.m; + } + + public final s3 D() { + return this.n; + } + + public final String E() { + long j; + Pair pair; + k4 k4Var = l().e; + k4Var.e.b(); + k4Var.e.b(); + long j2 = k4Var.e.w().getLong(k4Var.a, 0); + if (j2 == 0) { + k4Var.a(); + j = 0; + } else { + Objects.requireNonNull((c) k4Var.e.a.o); + j = Math.abs(j2 - System.currentTimeMillis()); + } + long j3 = k4Var.d; + if (j >= j3) { + if (j > (j3 << 1)) { + k4Var.a(); + } else { + String string = k4Var.e.w().getString(k4Var.c, null); + long j4 = k4Var.e.w().getLong(k4Var.f1526b, 0); + k4Var.a(); + pair = (string == null || j4 <= 0) ? d4.c : new Pair<>(string, Long.valueOf(j4)); + if (pair != null || pair == d4.c) { + return null; + } + String valueOf = String.valueOf(pair.second); + String str = (String) pair.first; + return a.j(a.b(str, valueOf.length() + 1), valueOf, ":", str); + } + } + pair = null; + if (pair != null) { + } + return null; + } + + public final String F() { + String str; + synchronized (this) { + if (this.e == null) { + String str2 = this.a.e; + if (str2 == null) { + str2 = "FA"; + } + this.e = str2; + } + str = this.e; + } + return str; + } + + @Override // b.i.a.f.i.b.r5 + public final boolean r() { + return false; + } + + public final void v(int i, String str) { + Log.println(i, F(), str); + } + + public final void w(int i, boolean z2, boolean z3, String str, Object obj, Object obj2, Object obj3) { + if (!z2 && Log.isLoggable(F(), i)) { + Log.println(i, F(), u(false, str, obj, obj2, obj3)); + } + if (!z3 && i >= 5) { + Objects.requireNonNull(str, "null reference"); + r4 r4Var = this.a.k; + if (r4Var == null) { + v(6, "Scheduler not set. Not logging error/warn"); + } else if (!r4Var.n()) { + v(6, "Scheduler not initialized. Not logging error/warn"); + } else { + if (i < 0) { + i = 0; + } + r4Var.v(new t3(this, i >= 9 ? 8 : i, str, obj, obj2, obj3)); + } + } + } + + public final boolean x(int i) { + return Log.isLoggable(F(), i); + } + + public final s3 z() { + return this.f; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/q4.java b/app/src/main/java/b/i/a/f/i/b/q4.java new file mode 100644 index 0000000000..3279e240fd --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q4.java @@ -0,0 +1,4 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface q4 { +} diff --git a/app/src/main/java/b/i/a/f/i/b/q5.java b/app/src/main/java/b/i/a/f/i/b/q5.java new file mode 100644 index 0000000000..f91c7691be --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q5.java @@ -0,0 +1,19 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class q5 implements Runnable { + public final /* synthetic */ zzn j; + public final /* synthetic */ z4 k; + + public q5(z4 z4Var, zzn zzn) { + this.k = z4Var; + this.j = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.a.R(); + this.k.a.E(this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/q6.java b/app/src/main/java/b/i/a/f/i/b/q6.java new file mode 100644 index 0000000000..01a1e20322 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q6.java @@ -0,0 +1,22 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import android.text.TextUtils; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class q6 implements v9 { + public final /* synthetic */ c6 a; + + public q6(c6 c6Var) { + this.a = c6Var; + } + + @Override // b.i.a.f.i.b.v9 + public final void a(String str, Bundle bundle) { + if (TextUtils.isEmpty(str)) { + this.a.H("auto", "_err", bundle); + } else { + this.a.a.l(); + throw null; + } + } +} diff --git a/app/src/main/java/c/i/a/f/i/b/q7.java b/app/src/main/java/b/i/a/f/i/b/q7.java similarity index 95% rename from app/src/main/java/c/i/a/f/i/b/q7.java rename to app/src/main/java/b/i/a/f/i/b/q7.java index 8237f8bcaf..ae0656fd60 100644 --- a/app/src/main/java/c/i/a/f/i/b/q7.java +++ b/app/src/main/java/b/i/a/f/i/b/q7.java @@ -1,4 +1,4 @@ -package c.i.a.f.i.b; +package b.i.a.f.i.b; import android.content.ComponentName; import android.content.Context; @@ -18,14 +18,14 @@ import android.os.RemoteException; import android.os.SystemClock; import androidx.annotation.Nullable; import androidx.annotation.WorkerThread; -import c.c.a.a0.d; -import c.i.a.f.e.n.a; -import c.i.a.f.e.o.c; -import c.i.a.f.e.p.b; -import c.i.a.f.h.l.da; -import c.i.a.f.h.l.ob; -import c.i.a.f.h.l.rb; -import c.i.a.f.h.l.t8; +import b.c.a.a0.d; +import b.i.a.f.e.n.a; +import b.i.a.f.e.o.c; +import b.i.a.f.e.p.b; +import b.i.a.f.h.l.da; +import b.i.a.f.h.l.ob; +import b.i.a.f.h.l.rb; +import b.i.a.f.h.l.t8; import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException; import com.google.android.gms.measurement.internal.zzaq; @@ -40,9 +40,7 @@ import java.util.Objects; import java.util.concurrent.atomic.AtomicReference; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class q7 extends a5 { - - /* renamed from: c reason: collision with root package name */ - public final k8 f1250c; + public final k8 c; public i3 d; public volatile Boolean e; public final i f; @@ -53,7 +51,7 @@ public final class q7 extends a5 { public q7(u4 u4Var) { super(u4Var); this.g = new e9(u4Var.o); - this.f1250c = new k8(this); + this.c = new k8(this); this.f = new p7(this, u4Var); this.i = new z7(this, u4Var); } @@ -88,9 +86,9 @@ public final class q7 extends a5 { t(); if (!B()) { if (G()) { - k8 k8Var = this.f1250c; + k8 k8Var = this.c; k8Var.l.b(); - Context context = k8Var.l.a.b; + Context context = k8Var.l.a.f1555b; synchronized (k8Var) { if (k8Var.j) { k8Var.l.g().n.a("Connection attempt already in progress"); @@ -104,14 +102,14 @@ public final class q7 extends a5 { } } } else if (!this.a.h.C()) { - List queryIntentServices = this.a.b.getPackageManager().queryIntentServices(new Intent().setClassName(this.a.b, "com.google.android.gms.measurement.AppMeasurementService"), 65536); + List queryIntentServices = this.a.f1555b.getPackageManager().queryIntentServices(new Intent().setClassName(this.a.f1555b, "com.google.android.gms.measurement.AppMeasurementService"), 65536); if (queryIntentServices != null && queryIntentServices.size() > 0) { Intent intent = new Intent("com.google.android.gms.measurement.START"); - intent.setComponent(new ComponentName(this.a.b, "com.google.android.gms.measurement.AppMeasurementService")); - k8 k8Var2 = this.f1250c; + intent.setComponent(new ComponentName(this.a.f1555b, "com.google.android.gms.measurement.AppMeasurementService")); + k8 k8Var2 = this.c; k8Var2.l.b(); - Context context2 = k8Var2.l.a.b; - a b = a.b(); + Context context2 = k8Var2.l.a.f1555b; + a b2 = a.b(); synchronized (k8Var2) { if (k8Var2.j) { k8Var2.l.g().n.a("Connection attempt already in progress"); @@ -119,7 +117,7 @@ public final class q7 extends a5 { } k8Var2.l.g().n.a("Using local app measurement service"); k8Var2.j = true; - b.a(context2, intent, k8Var2.l.f1250c, 129); + b2.a(context2, intent, k8Var2.l.c, 129); return; } } @@ -132,13 +130,13 @@ public final class q7 extends a5 { public final void D() { b(); t(); - k8 k8Var = this.f1250c; + k8 k8Var = this.c; if (k8Var.k != null && (k8Var.k.j() || k8Var.k.e())) { k8Var.k.h(); } k8Var.k = null; try { - a.b().c(this.a.b, this.f1250c); + a.b().c(this.a.f1555b, this.c); } catch (IllegalArgumentException | IllegalStateException unused) { } this.d = null; @@ -159,7 +157,7 @@ public final class q7 extends a5 { b(); e9 e9Var = this.g; Objects.requireNonNull((c) e9Var.a); - e9Var.b = SystemClock.elapsedRealtime(); + e9Var.f1515b = SystemClock.elapsedRealtime(); this.f.b(p.J.a(null).longValue()); } @@ -185,17 +183,17 @@ public final class q7 extends a5 { g().n.a("Checking service availability"); t9 e = e(); Objects.requireNonNull(e); - int b = c.i.a.f.e.c.b.b(e.a.b, 12451000); - if (b != 0) { - if (b == 1) { + int b2 = b.i.a.f.e.c.f1332b.b(e.a.f1555b, 12451000); + if (b2 != 0) { + if (b2 == 1) { g().n.a("Service missing"); - } else if (b != 2) { - if (b == 3) { + } else if (b2 != 2) { + if (b2 == 3) { g().i.a("Service disabled"); - } else if (b == 9) { + } else if (b2 == 9) { g().i.a("Service invalid"); - } else if (b != 18) { - g().i.b("Unexpected service status", Integer.valueOf(b)); + } else if (b2 != 18) { + g().i.b("Unexpected service status", Integer.valueOf(b2)); } else { g().i.a("Service updating"); } @@ -262,7 +260,7 @@ public final class q7 extends a5 { /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0127: APUT (r11v10 java.lang.Object[]) (0 ??[int, short, byte, char]) - (wrap: android.content.Context : 0x0122: IGET (r10v17 android.content.Context) = (wrap: c.i.a.f.i.b.u4 : 0x0120: IGET (r10v16 c.i.a.f.i.b.u4) = (r1v0 c.i.a.f.i.b.n3) c.i.a.f.i.b.s5.a c.i.a.f.i.b.u4) c.i.a.f.i.b.u4.b android.content.Context) + (wrap: android.content.Context : 0x0122: IGET (r10v17 android.content.Context) = (wrap: b.i.a.f.i.b.u4 : 0x0120: IGET (r10v16 b.i.a.f.i.b.u4) = (r1v0 b.i.a.f.i.b.n3) b.i.a.f.i.b.s5.a b.i.a.f.i.b.u4) b.i.a.f.i.b.u4.b android.content.Context) */ /* JADX WARNING: Removed duplicated region for block: B:56:0x017a */ /* JADX WARNING: Removed duplicated region for block: B:57:0x0181 */ @@ -288,7 +286,7 @@ public final class q7 extends a5 { String E = z2 ? g().E() : null; o.b(); o.t(); - String str4 = o.f1232c; + String str4 = o.c; o.t(); String str5 = o.k; o.t(); @@ -301,7 +299,7 @@ public final class q7 extends a5 { o.b(); if (o.g == 0) { t9 t = o.a.t(); - Context context = o.a.b; + Context context = o.a.f1555b; String packageName = context.getPackageName(); t.b(); d.w(packageName); @@ -314,7 +312,7 @@ public final class q7 extends a5 { if (packageManager != null) { try { if (!t.o0(context, packageName)) { - Signature[] signatureArr = b.a(context).b(t.a.b.getPackageName(), 64).signatures; + Signature[] signatureArr = b.a(context).b(t.a.f1555b.getPackageName(), 64).signatures; if (signatureArr == null || signatureArr.length <= 0) { t.g().i.a("Could not get signatures"); } else { @@ -338,14 +336,14 @@ public final class q7 extends a5 { if (o.a.d()) { if (!((rb) ob.j.a()).a() || !o.a.h.o(p.l0)) { try { - Class loadClass = o.a.b.getClassLoader().loadClass("com.google.firebase.analytics.FirebaseAnalytics"); + Class loadClass = o.a.f1555b.getClassLoader().loadClass("com.google.firebase.analytics.FirebaseAnalytics"); if (loadClass != null) { try { Method declaredMethod = loadClass.getDeclaredMethod("getInstance", Context.class); Object[] objArr = new Object[1]; z3 = d; try { - objArr[0] = o.a.b; + objArr[0] = o.a.f1555b; Object invoke = declaredMethod.invoke(null, objArr); if (invoke == null) { str = null; @@ -437,7 +435,7 @@ public final class q7 extends a5 { if (!da.b()) { list = list2; j2 = j7; - if (o.a.h.o(p.f1244j0)) { + if (o.a.h.o(p.f1546j0)) { o.t(); str3 = o.m; return new zzn(str4, str5, str6, j4, str7, 33025, j6, E, z3, z4, str2, 0, j, i, booleanValue, booleanValue2, z5, str8, valueOf2, j2, list, str3, (t8.b() || !o.a.h.o(p.H0)) ? "" : o.l().y().d()); @@ -482,7 +480,7 @@ public final class q7 extends a5 { return new zzn(str4, str5, str6, j4, str7, 33025, j6, E, z3, z4, str2, 0, j, i, booleanValue, booleanValue2, z5, str8, valueOf2, j2, list, str3, (t8.b() || !o.a.h.o(p.H0)) ? "" : o.l().y().d()); } - @Override // c.i.a.f.i.b.a5 + @Override // b.i.a.f.i.b.a5 public final boolean v() { return false; } @@ -537,7 +535,7 @@ public final class q7 extends a5 { r.b(); if (!r.d) { ArrayList arrayList3 = new ArrayList(); - if (!r.a.b.getDatabasePath("google_app_measurement_local.db").exists()) { + if (!r.a.f1555b.getDatabasePath("google_app_measurement_local.db").exists()) { arrayList = arrayList3; if (arrayList != null) { arrayList2.addAll(arrayList); diff --git a/app/src/main/java/b/i/a/f/i/b/q8.java b/app/src/main/java/b/i/a/f/i/b/q8.java new file mode 100644 index 0000000000..78ac890ce5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q8.java @@ -0,0 +1,75 @@ +package b.i.a.f.i.b; + +import android.os.SystemClock; +import android.util.Pair; +import androidx.annotation.NonNull; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.c; +import b.i.a.f.h.l.t8; +import com.google.android.gms.ads.identifier.AdvertisingIdClient; +import java.math.BigInteger; +import java.security.MessageDigest; +import java.util.Locale; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class q8 extends i9 { + public String d; + public boolean e; + public long f; + + public q8(k9 k9Var) { + super(k9Var); + } + + @Override // b.i.a.f.i.b.i9 + public final boolean p() { + return false; + } + + @NonNull + @WorkerThread + public final Pair s(String str, d dVar) { + return (!t8.b() || !this.a.h.o(p.J0) || dVar.j()) ? u(str) : new Pair<>("", Boolean.FALSE); + } + + @WorkerThread + @Deprecated + public final String t(String str) { + b(); + String str2 = (String) u(str).first; + MessageDigest x0 = t9.x0(); + if (x0 == null) { + return null; + } + return String.format(Locale.US, "%032X", new BigInteger(1, x0.digest(str2.getBytes()))); + } + + @NonNull + @Deprecated + @WorkerThread + public final Pair u(String str) { + b(); + Objects.requireNonNull((c) this.a.o); + long elapsedRealtime = SystemClock.elapsedRealtime(); + if (this.d != null && elapsedRealtime < this.f) { + return new Pair<>(this.d, Boolean.valueOf(this.e)); + } + c cVar = this.a.h; + Objects.requireNonNull(cVar); + this.f = elapsedRealtime + cVar.n(str, p.f1537b); + try { + AdvertisingIdClient.Info advertisingIdInfo = AdvertisingIdClient.getAdvertisingIdInfo(this.a.f1555b); + if (advertisingIdInfo != null) { + this.d = advertisingIdInfo.getId(); + this.e = advertisingIdInfo.isLimitAdTrackingEnabled(); + } + if (this.d == null) { + this.d = ""; + } + } catch (Exception e) { + g().m.b("Unable to get advertising id", e); + this.d = ""; + } + return new Pair<>(this.d, Boolean.valueOf(this.e)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/q9.java b/app/src/main/java/b/i/a/f/i/b/q9.java new file mode 100644 index 0000000000..5d2df963d4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/q9.java @@ -0,0 +1,859 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import android.text.TextUtils; +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import b.d.b.a.a; +import b.i.a.f.e.o.c; +import b.i.a.f.h.l.a1; +import b.i.a.f.h.l.b6; +import b.i.a.f.h.l.c1; +import b.i.a.f.h.l.d1; +import b.i.a.f.h.l.e1; +import b.i.a.f.h.l.g1; +import b.i.a.f.h.l.h1; +import b.i.a.f.h.l.h4; +import b.i.a.f.h.l.i1; +import b.i.a.f.h.l.i2; +import b.i.a.f.h.l.m0; +import b.i.a.f.h.l.n0; +import b.i.a.f.h.l.n3; +import b.i.a.f.h.l.o0; +import b.i.a.f.h.l.p0; +import b.i.a.f.h.l.q5; +import b.i.a.f.h.l.s4; +import b.i.a.f.h.l.u4; +import b.i.a.f.h.l.y0; +import b.i.a.f.h.l.y1; +import b.i.a.f.h.l.z0; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException; +import com.google.android.gms.internal.measurement.zzij; +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzn; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.security.MessageDigest; +import java.util.ArrayList; +import java.util.BitSet; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.zip.GZIPInputStream; +import java.util.zip.GZIPOutputStream; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class q9 extends i9 { + public q9(k9 k9Var) { + super(k9Var); + } + + public static String A(boolean z2, boolean z3, boolean z4) { + StringBuilder sb = new StringBuilder(); + if (z2) { + sb.append("Dynamic "); + } + if (z3) { + sb.append("Sequence "); + } + if (z4) { + sb.append("Session-Scoped "); + } + return sb.toString(); + } + + public static List B(BitSet bitSet) { + int length = (bitSet.length() + 63) / 64; + ArrayList arrayList = new ArrayList(length); + for (int i = 0; i < length; i++) { + long j = 0; + for (int i2 = 0; i2 < 64; i2++) { + int i3 = (i << 6) + i2; + if (i3 >= bitSet.length()) { + break; + } + if (bitSet.get(i3)) { + j |= 1 << i2; + } + } + arrayList.add(Long.valueOf(j)); + } + return arrayList; + } + + public static List D(Bundle[] bundleArr) { + ArrayList arrayList = new ArrayList(); + for (Bundle bundle : bundleArr) { + if (bundle != null) { + c1.a Q = c1.Q(); + for (String str : bundle.keySet()) { + c1.a Q2 = c1.Q(); + Q2.s(str); + Object obj = bundle.get(str); + if (obj instanceof Long) { + Q2.r(((Long) obj).longValue()); + } else if (obj instanceof String) { + Q2.t((String) obj); + } else if (obj instanceof Double) { + Q2.q(((Double) obj).doubleValue()); + } + if (Q.l) { + Q.n(); + Q.l = false; + } + c1.x((c1) Q.k, (c1) ((u4) Q2.p())); + } + if (((c1) Q.k).P() > 0) { + arrayList.add((c1) ((u4) Q.p())); + } + } + } + return arrayList; + } + + public static void E(a1.a aVar, String str, Object obj) { + List v = aVar.v(); + int i = 0; + while (true) { + if (i >= v.size()) { + i = -1; + break; + } else if (str.equals(v.get(i).B())) { + break; + } else { + i++; + } + } + c1.a Q = c1.Q(); + Q.s(str); + if (obj instanceof Long) { + Q.r(((Long) obj).longValue()); + } else if (obj instanceof String) { + Q.t((String) obj); + } else if (obj instanceof Double) { + Q.q(((Double) obj).doubleValue()); + } else if (obj instanceof Bundle[]) { + List D = D((Bundle[]) obj); + if (Q.l) { + Q.n(); + Q.l = false; + } + c1.y((c1) Q.k, D); + } + if (i >= 0) { + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + a1.y((a1) aVar.k, i, (c1) ((u4) Q.p())); + return; + } + aVar.s(Q); + } + + public static void H(StringBuilder sb, int i) { + for (int i2 = 0; i2 < i; i2++) { + sb.append(" "); + } + } + + public static void J(StringBuilder sb, int i, String str, n0 n0Var) { + if (n0Var != null) { + H(sb, i); + sb.append(str); + sb.append(" {\n"); + if (n0Var.u()) { + L(sb, i, "comparison_type", n0Var.v().name()); + } + if (n0Var.w()) { + L(sb, i, "match_as_float", Boolean.valueOf(n0Var.x())); + } + if (n0Var.y()) { + L(sb, i, "comparison_value", n0Var.z()); + } + if (n0Var.A()) { + L(sb, i, "min_comparison_value", n0Var.B()); + } + if (n0Var.C()) { + L(sb, i, "max_comparison_value", n0Var.D()); + } + H(sb, i); + sb.append("}\n"); + } + } + + public static void K(StringBuilder sb, int i, String str, g1 g1Var) { + if (g1Var != null) { + H(sb, 3); + sb.append(str); + sb.append(" {\n"); + if (g1Var.G() != 0) { + H(sb, 4); + sb.append("results: "); + int i2 = 0; + for (Long l : g1Var.E()) { + int i3 = i2 + 1; + if (i2 != 0) { + sb.append(", "); + } + sb.append(l); + i2 = i3; + } + sb.append('\n'); + } + if (g1Var.z() != 0) { + H(sb, 4); + sb.append("status: "); + int i4 = 0; + for (Long l2 : g1Var.v()) { + int i5 = i4 + 1; + if (i4 != 0) { + sb.append(", "); + } + sb.append(l2); + i4 = i5; + } + sb.append('\n'); + } + if (g1Var.J() != 0) { + H(sb, 4); + sb.append("dynamic_filter_timestamps: {"); + int i6 = 0; + for (z0 z0Var : g1Var.I()) { + int i7 = i6 + 1; + if (i6 != 0) { + sb.append(", "); + } + sb.append(z0Var.w() ? Integer.valueOf(z0Var.x()) : null); + sb.append(":"); + sb.append(z0Var.y() ? Long.valueOf(z0Var.z()) : null); + i6 = i7; + } + sb.append("}\n"); + } + if (g1Var.L() != 0) { + H(sb, 4); + sb.append("sequence_filter_timestamps: {"); + int i8 = 0; + for (h1 h1Var : g1Var.K()) { + int i9 = i8 + 1; + if (i8 != 0) { + sb.append(", "); + } + sb.append(h1Var.x() ? Integer.valueOf(h1Var.y()) : null); + sb.append(": ["); + int i10 = 0; + for (Long l3 : h1Var.z()) { + long longValue = l3.longValue(); + int i11 = i10 + 1; + if (i10 != 0) { + sb.append(", "); + } + sb.append(longValue); + i10 = i11; + } + sb.append("]"); + i8 = i9; + } + sb.append("}\n"); + } + H(sb, 3); + sb.append("}\n"); + } + } + + public static void L(StringBuilder sb, int i, String str, Object obj) { + if (obj != null) { + H(sb, i + 1); + sb.append(str); + sb.append(": "); + sb.append(obj); + sb.append('\n'); + } + } + + @WorkerThread + public static boolean O(zzaq zzaq, zzn zzn) { + Objects.requireNonNull(zzaq, "null reference"); + return !TextUtils.isEmpty(zzn.k) || !TextUtils.isEmpty(zzn.A); + } + + public static boolean P(String str) { + return str != null && str.matches("([+-])?([0-9]+\\.?[0-9]*|[0-9]*\\.?[0-9]+)") && str.length() <= 310; + } + + public static boolean Q(List list, int i) { + if (i >= (((q5) list).m << 6)) { + return false; + } + return ((1 << (i % 64)) & ((Long) ((q5) list).get(i / 64)).longValue()) != 0; + } + + public static Object R(a1 a1Var, String str) { + c1 w = w(a1Var, str); + if (w == null) { + return null; + } + if (w.F()) { + return w.G(); + } + if (w.I()) { + return Long.valueOf(w.J()); + } + if (w.M()) { + return Double.valueOf(w.N()); + } + if (w.P() <= 0) { + return null; + } + List O = w.O(); + ArrayList arrayList = new ArrayList(); + for (c1 c1Var : O) { + if (c1Var != null) { + Bundle bundle = new Bundle(); + for (c1 c1Var2 : c1Var.O()) { + if (c1Var2.F()) { + bundle.putString(c1Var2.B(), c1Var2.G()); + } else if (c1Var2.I()) { + bundle.putLong(c1Var2.B(), c1Var2.J()); + } else if (c1Var2.M()) { + bundle.putDouble(c1Var2.B(), c1Var2.N()); + } + } + if (!bundle.isEmpty()) { + arrayList.add(bundle); + } + } + } + return (Bundle[]) arrayList.toArray(new Bundle[arrayList.size()]); + } + + public static int s(e1.a aVar, String str) { + for (int i = 0; i < ((e1) aVar.k).P0(); i++) { + if (str.equals(((e1) aVar.k).h0(i).D())) { + return i; + } + } + return -1; + } + + public static c1 w(a1 a1Var, String str) { + for (c1 c1Var : a1Var.v()) { + if (c1Var.B().equals(str)) { + return c1Var; + } + } + return null; + } + + public static Builder x(Builder builder, byte[] bArr) throws zzij { + h4 h4Var = h4.f1431b; + if (h4Var == null) { + synchronized (h4.class) { + h4Var = h4.f1431b; + if (h4Var == null) { + h4Var = s4.b(h4.class); + h4.f1431b = h4Var; + } + } + } + if (h4Var != null) { + n3 n3Var = (n3) builder; + Objects.requireNonNull(n3Var); + u4.b bVar = (u4.b) n3Var; + bVar.m(bArr, bArr.length, h4Var); + return bVar; + } + n3 n3Var2 = (n3) builder; + Objects.requireNonNull(n3Var2); + u4.b bVar2 = (u4.b) n3Var2; + bVar2.m(bArr, bArr.length, h4.a()); + return bVar2; + } + + public final List C(List list, List list2) { + ArrayList arrayList = new ArrayList(list); + for (Integer num : list2) { + if (num.intValue() < 0) { + g().i.b("Ignoring negative bit index to be cleared", num); + } else { + int intValue = num.intValue() / 64; + if (intValue >= arrayList.size()) { + g().i.c("Ignoring bit index greater than bitSet size", num, Integer.valueOf(arrayList.size())); + } else { + arrayList.set(intValue, Long.valueOf(((Long) arrayList.get(intValue)).longValue() & (~(1 << (num.intValue() % 64))))); + } + } + } + int size = arrayList.size(); + int size2 = arrayList.size() - 1; + while (true) { + size = size2; + if (size < 0 || ((Long) arrayList.get(size)).longValue() != 0) { + break; + } + size2 = size - 1; + } + return arrayList.subList(0, size); + } + + public final void F(c1.a aVar, Object obj) { + Objects.requireNonNull(obj, "null reference"); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + c1.u((c1) aVar.k); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + c1.C((c1) aVar.k); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + c1.E((c1) aVar.k); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + c1.H((c1) aVar.k); + if (obj instanceof String) { + aVar.t((String) obj); + } else if (obj instanceof Long) { + aVar.r(((Long) obj).longValue()); + } else if (obj instanceof Double) { + aVar.q(((Double) obj).doubleValue()); + } else if (obj instanceof Bundle[]) { + List D = D((Bundle[]) obj); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + c1.y((c1) aVar.k, D); + } else { + g().f.b("Ignoring invalid (type) event param value", obj); + } + } + + public final void G(i1.a aVar, Object obj) { + Objects.requireNonNull(obj, "null reference"); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + i1.u((i1) aVar.k); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + i1.A((i1) aVar.k); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + i1.E((i1) aVar.k); + if (obj instanceof String) { + String str = (String) obj; + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + i1.C((i1) aVar.k, str); + } else if (obj instanceof Long) { + aVar.s(((Long) obj).longValue()); + } else if (obj instanceof Double) { + double doubleValue = ((Double) obj).doubleValue(); + if (aVar.l) { + aVar.n(); + aVar.l = false; + } + i1.v((i1) aVar.k, doubleValue); + } else { + g().f.b("Ignoring invalid (type) user attribute value", obj); + } + } + + public final void I(StringBuilder sb, int i, m0 m0Var) { + if (m0Var != null) { + H(sb, i); + sb.append("filter {\n"); + if (m0Var.z()) { + L(sb, i, "complement", Boolean.valueOf(m0Var.A())); + } + if (m0Var.B()) { + L(sb, i, "param_name", d().x(m0Var.C())); + } + if (m0Var.v()) { + int i2 = i + 1; + p0 w = m0Var.w(); + if (w != null) { + H(sb, i2); + sb.append("string_filter"); + sb.append(" {\n"); + if (w.u()) { + L(sb, i2, "match_type", w.v().name()); + } + if (w.w()) { + L(sb, i2, "expression", w.x()); + } + if (w.y()) { + L(sb, i2, "case_sensitive", Boolean.valueOf(w.z())); + } + if (w.B() > 0) { + H(sb, i2 + 1); + sb.append("expression_list {\n"); + for (String str : w.A()) { + H(sb, i2 + 2); + sb.append(str); + sb.append("\n"); + } + sb.append("}\n"); + } + H(sb, i2); + sb.append("}\n"); + } + } + if (m0Var.x()) { + J(sb, i + 1, "number_filter", m0Var.y()); + } + H(sb, i); + sb.append("}\n"); + } + } + + public final void M(StringBuilder sb, int i, List list) { + if (list != null) { + int i2 = i + 1; + for (c1 c1Var : list) { + if (c1Var != null) { + H(sb, i2); + sb.append("param {\n"); + Double d = null; + L(sb, i2, ModelAuditLogEntry.CHANGE_KEY_NAME, c1Var.A() ? d().x(c1Var.B()) : null); + L(sb, i2, "string_value", c1Var.F() ? c1Var.G() : null); + L(sb, i2, "int_value", c1Var.I() ? Long.valueOf(c1Var.J()) : null); + if (c1Var.M()) { + d = Double.valueOf(c1Var.N()); + } + L(sb, i2, "double_value", d); + if (c1Var.P() > 0) { + M(sb, i2, c1Var.O()); + } + H(sb, i2); + sb.append("}\n"); + } + } + } + } + + public final boolean N(long j, long j2) { + if (j == 0 || j2 <= 0) { + return true; + } + Objects.requireNonNull((c) this.a.o); + return Math.abs(System.currentTimeMillis() - j) > j2; + } + + public final byte[] S(byte[] bArr) throws IOException { + try { + ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bArr); + GZIPInputStream gZIPInputStream = new GZIPInputStream(byteArrayInputStream); + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + byte[] bArr2 = new byte[1024]; + while (true) { + int read = gZIPInputStream.read(bArr2); + if (read > 0) { + byteArrayOutputStream.write(bArr2, 0, read); + } else { + gZIPInputStream.close(); + byteArrayInputStream.close(); + return byteArrayOutputStream.toByteArray(); + } + } + } catch (IOException e) { + g().f.b("Failed to ungzip content", e); + throw e; + } + } + + public final byte[] T(byte[] bArr) throws IOException { + try { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(byteArrayOutputStream); + gZIPOutputStream.write(bArr); + gZIPOutputStream.close(); + byteArrayOutputStream.close(); + return byteArrayOutputStream.toByteArray(); + } catch (IOException e) { + g().f.b("Failed to gzip content", e); + throw e; + } + } + + @Nullable + public final List U() { + Context context = this.f1523b.k.f1555b; + List> list = p.a; + y1 a = y1.a(context.getContentResolver(), i2.a("com.google.android.gms.measurement")); + Map emptyMap = a == null ? Collections.emptyMap() : a.b(); + if (emptyMap == null || emptyMap.size() == 0) { + return null; + } + ArrayList arrayList = new ArrayList(); + int intValue = p.P.a(null).intValue(); + Iterator> it = emptyMap.entrySet().iterator(); + while (true) { + if (!it.hasNext()) { + break; + } + Map.Entry next = it.next(); + if (next.getKey().startsWith("measurement.id.")) { + try { + int parseInt = Integer.parseInt(next.getValue()); + if (parseInt != 0) { + arrayList.add(Integer.valueOf(parseInt)); + if (arrayList.size() >= intValue) { + g().i.b("Too many experiment IDs. Number of IDs", Integer.valueOf(arrayList.size())); + break; + } + } else { + continue; + } + } catch (NumberFormatException e) { + g().i.b("Experiment ID NumberFormatException", e); + } + } + } + if (arrayList.size() == 0) { + return null; + } + return arrayList; + } + + @Override // b.i.a.f.i.b.i9 + public final boolean p() { + return false; + } + + @WorkerThread + public final long t(byte[] bArr) { + e().b(); + MessageDigest x0 = t9.x0(); + if (x0 != null) { + return t9.w(x0.digest(bArr)); + } + g().f.a("Failed to get MD5"); + return 0; + } + + public final T u(byte[] bArr, Parcelable.Creator creator) { + if (bArr == null) { + return null; + } + Parcel obtain = Parcel.obtain(); + try { + obtain.unmarshall(bArr, 0, bArr.length); + obtain.setDataPosition(0); + return creator.createFromParcel(obtain); + } catch (SafeParcelReader$ParseException unused) { + g().f.a("Failed to load parcelable from buffer"); + return null; + } finally { + obtain.recycle(); + } + } + + public final a1 v(m mVar) { + a1.a M = a1.M(); + long j = mVar.e; + if (M.l) { + M.n(); + M.l = false; + } + a1.E((a1) M.k, j); + zzap zzap = mVar.f; + Objects.requireNonNull(zzap); + for (String str : zzap.j.keySet()) { + c1.a Q = c1.Q(); + Q.s(str); + F(Q, mVar.f.w0(str)); + M.s(Q); + } + return (a1) ((u4) M.p()); + } + + public final String y(o0 o0Var) { + StringBuilder R = a.R("\nproperty_filter {\n"); + if (o0Var.v()) { + L(R, 0, "filter_id", Integer.valueOf(o0Var.w())); + } + L(R, 0, "property_name", d().y(o0Var.x())); + String A = A(o0Var.z(), o0Var.A(), o0Var.C()); + if (!A.isEmpty()) { + L(R, 0, "filter_type", A); + } + I(R, 1, o0Var.y()); + R.append("}\n"); + return R.toString(); + } + + public final String z(d1 d1Var) { + StringBuilder R = a.R("\nbatch {\n"); + for (e1 e1Var : d1Var.v()) { + if (e1Var != null) { + H(R, 1); + R.append("bundle {\n"); + if (e1Var.E()) { + L(R, 1, "protocol_version", Integer.valueOf(e1Var.g0())); + } + L(R, 1, "platform", e1Var.y1()); + if (e1Var.I1()) { + L(R, 1, "gmp_version", Long.valueOf(e1Var.F())); + } + if (e1Var.H()) { + L(R, 1, "uploading_gmp_version", Long.valueOf(e1Var.I())); + } + if (e1Var.p0()) { + L(R, 1, "dynamite_version", Long.valueOf(e1Var.q0())); + } + if (e1Var.a0()) { + L(R, 1, "config_version", Long.valueOf(e1Var.b0())); + } + L(R, 1, "gmp_app_id", e1Var.S()); + L(R, 1, "admob_app_id", e1Var.o0()); + L(R, 1, "app_id", e1Var.G1()); + L(R, 1, "app_version", e1Var.H1()); + if (e1Var.X()) { + L(R, 1, "app_version_major", Integer.valueOf(e1Var.Y())); + } + L(R, 1, "firebase_instance_id", e1Var.W()); + if (e1Var.N()) { + L(R, 1, "dev_cert_hash", Long.valueOf(e1Var.O())); + } + L(R, 1, "app_store", e1Var.F1()); + if (e1Var.Y0()) { + L(R, 1, "upload_timestamp_millis", Long.valueOf(e1Var.Z0())); + } + if (e1Var.g1()) { + L(R, 1, "start_timestamp_millis", Long.valueOf(e1Var.h1())); + } + if (e1Var.n1()) { + L(R, 1, "end_timestamp_millis", Long.valueOf(e1Var.o1())); + } + if (e1Var.s1()) { + L(R, 1, "previous_bundle_start_timestamp_millis", Long.valueOf(e1Var.t1())); + } + if (e1Var.v1()) { + L(R, 1, "previous_bundle_end_timestamp_millis", Long.valueOf(e1Var.w1())); + } + L(R, 1, "app_instance_id", e1Var.M()); + L(R, 1, "resettable_device_id", e1Var.J()); + L(R, 1, "device_id", e1Var.Z()); + L(R, 1, "ds_id", e1Var.e0()); + if (e1Var.K()) { + L(R, 1, "limited_ad_tracking", Boolean.valueOf(e1Var.L())); + } + L(R, 1, "os_version", e1Var.A1()); + L(R, 1, "device_model", e1Var.B1()); + L(R, 1, "user_default_language", e1Var.C1()); + if (e1Var.D1()) { + L(R, 1, "time_zone_offset_minutes", Integer.valueOf(e1Var.E1())); + } + if (e1Var.P()) { + L(R, 1, "bundle_sequential_index", Integer.valueOf(e1Var.Q())); + } + if (e1Var.T()) { + L(R, 1, "service_upload", Boolean.valueOf(e1Var.U())); + } + L(R, 1, "health_monitor", e1Var.R()); + if (!this.a.h.o(p.y0) && e1Var.c0() && e1Var.d0() != 0) { + L(R, 1, "android_id", Long.valueOf(e1Var.d0())); + } + if (e1Var.f0()) { + L(R, 1, "retry_counter", Integer.valueOf(e1Var.n0())); + } + if (e1Var.s0()) { + L(R, 1, "consent_signals", e1Var.t0()); + } + List K0 = e1Var.K0(); + if (K0 != null) { + for (i1 i1Var : K0) { + if (i1Var != null) { + H(R, 2); + R.append("user_property {\n"); + Double d = null; + L(R, 2, "set_timestamp_millis", i1Var.y() ? Long.valueOf(i1Var.z()) : null); + L(R, 2, ModelAuditLogEntry.CHANGE_KEY_NAME, d().y(i1Var.D())); + L(R, 2, "string_value", i1Var.G()); + L(R, 2, "int_value", i1Var.H() ? Long.valueOf(i1Var.I()) : null); + if (i1Var.J()) { + d = Double.valueOf(i1Var.K()); + } + L(R, 2, "double_value", d); + H(R, 2); + R.append("}\n"); + } + } + } + List V = e1Var.V(); + if (V != null) { + for (y0 y0Var : V) { + if (y0Var != null) { + H(R, 2); + R.append("audience_membership {\n"); + if (y0Var.x()) { + L(R, 2, "audience_id", Integer.valueOf(y0Var.y())); + } + if (y0Var.D()) { + L(R, 2, "new_audience", Boolean.valueOf(y0Var.E())); + } + K(R, 2, "current_data", y0Var.A()); + if (y0Var.B()) { + K(R, 2, "previous_data", y0Var.C()); + } + H(R, 2); + R.append("}\n"); + } + } + } + List y0 = e1Var.y0(); + if (y0 != null) { + for (a1 a1Var : y0) { + if (a1Var != null) { + H(R, 2); + R.append("event {\n"); + L(R, 2, ModelAuditLogEntry.CHANGE_KEY_NAME, d().u(a1Var.F())); + if (a1Var.G()) { + L(R, 2, "timestamp_millis", Long.valueOf(a1Var.H())); + } + if (a1Var.I()) { + L(R, 2, "previous_timestamp_millis", Long.valueOf(a1Var.J())); + } + if (a1Var.K()) { + L(R, 2, "count", Integer.valueOf(a1Var.L())); + } + if (a1Var.D() != 0) { + M(R, 2, a1Var.v()); + } + H(R, 2); + R.append("}\n"); + } + } + } + H(R, 1); + R.append("}\n"); + } + } + R.append("}\n"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/r.java b/app/src/main/java/b/i/a/f/i/b/r.java new file mode 100644 index 0000000000..e28ce33fbd --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class r implements h3 { + public static final h3 a = new r(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).h()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/r0.java b/app/src/main/java/b/i/a/f/i/b/r0.java new file mode 100644 index 0000000000..4625f29f2b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class r0 implements h3 { + public static final h3 a = new r0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).p()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/r1.java b/app/src/main/java/b/i/a/f/i/b/r1.java new file mode 100644 index 0000000000..4749831b4a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.yb; +import b.i.a.f.h.l.zb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class r1 implements h3 { + public static final h3 a = new r1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((yb) zb.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/r2.java b/app/src/main/java/b/i/a/f/i/b/r2.java new file mode 100644 index 0000000000..b20902b859 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ib; +import b.i.a.f.h.l.lb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class r2 implements h3 { + public static final h3 a = new r2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((lb) ib.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/r3.java b/app/src/main/java/b/i/a/f/i/b/r3.java new file mode 100644 index 0000000000..5a0c11314d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r3.java @@ -0,0 +1,43 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import androidx.annotation.NonNull; +import b.i.a.f.e.c; +import b.i.a.f.e.k.b; +import b.i.a.f.e.k.e; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class r3 extends b { + public r3(Context context, Looper looper, b.a aVar, b.AbstractC0105b bVar) { + super(context, looper, e.a(context), c.f1332b, 93, aVar, bVar, null); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12451000; + } + + /* Return type fixed from 'android.os.IInterface' to match base method */ + @Override // b.i.a.f.e.k.b + public final /* synthetic */ i3 r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.measurement.internal.IMeasurementService"); + return queryLocalInterface instanceof i3 ? (i3) queryLocalInterface : new k3(iBinder); + } + + @Override // b.i.a.f.e.k.b + @NonNull + public final String x() { + return "com.google.android.gms.measurement.internal.IMeasurementService"; + } + + @Override // b.i.a.f.e.k.b + @NonNull + public final String y() { + return "com.google.android.gms.measurement.START"; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/r4.java b/app/src/main/java/b/i/a/f/i/b/r4.java new file mode 100644 index 0000000000..404441a9ed --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r4.java @@ -0,0 +1,129 @@ +package b.i.a.f.i.b; + +import java.lang.Thread; +import java.util.Objects; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Callable; +import java.util.concurrent.Future; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.PriorityBlockingQueue; +import java.util.concurrent.Semaphore; +import java.util.concurrent.atomic.AtomicLong; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class r4 extends r5 { + public static final AtomicLong c = new AtomicLong(Long.MIN_VALUE); + public v4 d; + public v4 e; + public final PriorityBlockingQueue> f = new PriorityBlockingQueue<>(); + public final BlockingQueue> g = new LinkedBlockingQueue(); + public final Thread.UncaughtExceptionHandler h = new t4(this, "Thread death: Uncaught exception on worker thread"); + public final Thread.UncaughtExceptionHandler i = new t4(this, "Thread death: Uncaught exception on network thread"); + public final Object j = new Object(); + public final Semaphore k = new Semaphore(2); + + public r4(u4 u4Var) { + super(u4Var); + } + + @Override // b.i.a.f.i.b.s5 + public final void a() { + if (Thread.currentThread() != this.e) { + throw new IllegalStateException("Call expected from network thread"); + } + } + + @Override // b.i.a.f.i.b.s5 + public final void b() { + if (Thread.currentThread() != this.d) { + throw new IllegalStateException("Call expected from worker thread"); + } + } + + @Override // b.i.a.f.i.b.r5 + public final boolean r() { + return false; + } + + public final T s(AtomicReference atomicReference, long j, String str, Runnable runnable) { + synchronized (atomicReference) { + f().v(runnable); + try { + atomicReference.wait(j); + } catch (InterruptedException unused) { + g().i.a(str.length() != 0 ? "Interrupted waiting for ".concat(str) : new String("Interrupted waiting for ")); + return null; + } + } + T t = atomicReference.get(); + if (t == null) { + g().i.a(str.length() != 0 ? "Timed out waiting for ".concat(str) : new String("Timed out waiting for ")); + } + return t; + } + + public final Future t(Callable callable) throws IllegalStateException { + o(); + s4 s4Var = new s4<>(this, (Callable) callable, false, "Task exception on worker thread"); + if (Thread.currentThread() == this.d) { + if (!this.f.isEmpty()) { + g().i.a("Callable skipped the worker queue."); + } + s4Var.run(); + } else { + u(s4Var); + } + return s4Var; + } + + public final void u(s4 s4Var) { + synchronized (this.j) { + this.f.add(s4Var); + v4 v4Var = this.d; + if (v4Var == null) { + v4 v4Var2 = new v4(this, "Measurement Worker", this.f); + this.d = v4Var2; + v4Var2.setUncaughtExceptionHandler(this.h); + this.d.start(); + } else { + synchronized (v4Var.j) { + v4Var.j.notifyAll(); + } + } + } + } + + public final void v(Runnable runnable) throws IllegalStateException { + o(); + Objects.requireNonNull(runnable, "null reference"); + u(new s4<>(this, runnable, false, "Task exception on worker thread")); + } + + public final void w(Runnable runnable) throws IllegalStateException { + o(); + u(new s4<>(this, runnable, true, "Task exception on worker thread")); + } + + public final void x(Runnable runnable) throws IllegalStateException { + o(); + s4 s4Var = new s4<>(this, runnable, false, "Task exception on network thread"); + synchronized (this.j) { + this.g.add(s4Var); + v4 v4Var = this.e; + if (v4Var == null) { + v4 v4Var2 = new v4(this, "Measurement Network", this.g); + this.e = v4Var2; + v4Var2.setUncaughtExceptionHandler(this.i); + this.e.start(); + } else { + synchronized (v4Var.j) { + v4Var.j.notifyAll(); + } + } + } + } + + public final boolean y() { + return Thread.currentThread() == this.d; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/r5.java b/app/src/main/java/b/i/a/f/i/b/r5.java new file mode 100644 index 0000000000..c531abc57f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r5.java @@ -0,0 +1,46 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public abstract class r5 extends s5 { + + /* renamed from: b reason: collision with root package name */ + public boolean f1551b; + + public r5(u4 u4Var) { + super(u4Var); + this.a.F++; + } + + public void m() { + } + + public final boolean n() { + return this.f1551b; + } + + public final void o() { + if (!n()) { + throw new IllegalStateException("Not initialized"); + } + } + + public final void p() { + if (this.f1551b) { + throw new IllegalStateException("Can't initialize twice"); + } else if (!r()) { + this.a.G.incrementAndGet(); + this.f1551b = true; + } + } + + public final void q() { + if (!this.f1551b) { + m(); + this.a.G.incrementAndGet(); + this.f1551b = true; + return; + } + throw new IllegalStateException("Can't initialize twice"); + } + + public abstract boolean r(); +} diff --git a/app/src/main/java/b/i/a/f/i/b/r6.java b/app/src/main/java/b/i/a/f/i/b/r6.java new file mode 100644 index 0000000000..ec4bd6559d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r6.java @@ -0,0 +1,31 @@ +package b.i.a.f.i.b; + +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class r6 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ boolean m; + public final /* synthetic */ c6 n; + + public r6(c6 c6Var, AtomicReference atomicReference, String str, String str2, boolean z2) { + this.n = c6Var; + this.j = atomicReference; + this.k = str; + this.l = str2; + this.m = z2; + } + + @Override // java.lang.Runnable + public final void run() { + q7 x2 = this.n.a.x(); + AtomicReference atomicReference = this.j; + String str = this.k; + String str2 = this.l; + boolean z2 = this.m; + x2.b(); + x2.t(); + x2.z(new h8(x2, atomicReference, null, str, str2, z2, x2.I(false))); + } +} diff --git a/app/src/main/java/c/i/a/f/i/b/r7.java b/app/src/main/java/b/i/a/f/i/b/r7.java similarity index 97% rename from app/src/main/java/c/i/a/f/i/b/r7.java rename to app/src/main/java/b/i/a/f/i/b/r7.java index 70f7af02ee..d40f2d4a83 100644 --- a/app/src/main/java/c/i/a/f/i/b/r7.java +++ b/app/src/main/java/b/i/a/f/i/b/r7.java @@ -1,4 +1,4 @@ -package c.i.a.f.i.b; +package b.i.a.f.i.b; import com.google.android.gms.measurement.internal.zzku; import com.google.android.gms.measurement.internal.zzn; diff --git a/app/src/main/java/b/i/a/f/i/b/r8.java b/app/src/main/java/b/i/a/f/i/b/r8.java new file mode 100644 index 0000000000..13d02d4a1e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r8.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; + +import android.app.job.JobParameters; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final /* synthetic */ class r8 implements Runnable { + public final p8 j; + public final q3 k; + public final JobParameters l; + + public r8(p8 p8Var, q3 q3Var, JobParameters jobParameters) { + this.j = p8Var; + this.k = q3Var; + this.l = jobParameters; + } + + @Override // java.lang.Runnable + public final void run() { + p8 p8Var = this.j; + q3 q3Var = this.k; + JobParameters jobParameters = this.l; + Objects.requireNonNull(p8Var); + q3Var.n.a("AppMeasurementJobService processed last upload request."); + p8Var.a.a(jobParameters, false); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/r9.java b/app/src/main/java/b/i/a/f/i/b/r9.java new file mode 100644 index 0000000000..460a1c5f12 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/r9.java @@ -0,0 +1,14 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class r9 { + public final Context a; + + public r9(Context context) { + Context applicationContext = context.getApplicationContext(); + Objects.requireNonNull(applicationContext, "null reference"); + this.a = applicationContext; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s.java b/app/src/main/java/b/i/a/f/i/b/s.java new file mode 100644 index 0000000000..395d6f6f96 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class s implements h3 { + public static final h3 a = new s(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((m8) n8.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s0.java b/app/src/main/java/b/i/a/f/i/b/s0.java new file mode 100644 index 0000000000..4e36e439a8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.wa; +import b.i.a.f.h.l.za; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class s0 implements h3 { + public static final h3 a = new s0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return ((za) wa.j.a()).e(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s1.java b/app/src/main/java/b/i/a/f/i/b/s1.java new file mode 100644 index 0000000000..2a9aef008b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ia; +import b.i.a.f.h.l.ja; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class s1 implements h3 { + public static final h3 a = new s1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ia) ja.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s2.java b/app/src/main/java/b/i/a/f/i/b/s2.java new file mode 100644 index 0000000000..ae495df009 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.k9; +import b.i.a.f.h.l.l9; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class s2 implements h3 { + public static final h3 a = new s2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((k9) l9.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s3.java b/app/src/main/java/b/i/a/f/i/b/s3.java new file mode 100644 index 0000000000..059bd8b3ce --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s3.java @@ -0,0 +1,33 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class s3 { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1552b; + public final boolean c; + public final /* synthetic */ q3 d; + + public s3(q3 q3Var, int i, boolean z2, boolean z3) { + this.d = q3Var; + this.a = i; + this.f1552b = z2; + this.c = z3; + } + + public final void a(String str) { + this.d.w(this.a, this.f1552b, this.c, str, null, null, null); + } + + public final void b(String str, Object obj) { + this.d.w(this.a, this.f1552b, this.c, str, obj, null, null); + } + + public final void c(String str, Object obj, Object obj2) { + this.d.w(this.a, this.f1552b, this.c, str, obj, obj2, null); + } + + public final void d(String str, Object obj, Object obj2, Object obj3) { + this.d.w(this.a, this.f1552b, this.c, str, obj, obj2, obj3); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s4.java b/app/src/main/java/b/i/a/f/i/b/s4.java new file mode 100644 index 0000000000..f8de43f5e2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s4.java @@ -0,0 +1,64 @@ +package b.i.a.f.i.b; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; +import java.util.concurrent.Callable; +import java.util.concurrent.FutureTask; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class s4 extends FutureTask implements Comparable> { + public final long j; + public final boolean k; + public final String l; + public final /* synthetic */ r4 m; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public s4(r4 r4Var, Runnable runnable, boolean z2, String str) { + super(runnable, null); + this.m = r4Var; + long andIncrement = r4.c.getAndIncrement(); + this.j = andIncrement; + this.l = str; + this.k = z2; + if (andIncrement == RecyclerView.FOREVER_NS) { + r4Var.g().f.a("Tasks index overflow"); + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public s4(r4 r4Var, Callable callable, boolean z2, String str) { + super(callable); + this.m = r4Var; + long andIncrement = r4.c.getAndIncrement(); + this.j = andIncrement; + this.l = str; + this.k = z2; + if (andIncrement == RecyclerView.FOREVER_NS) { + r4Var.g().f.a("Tasks index overflow"); + } + } + + @Override // java.lang.Comparable + public final int compareTo(@NonNull Object obj) { + s4 s4Var = (s4) obj; + boolean z2 = this.k; + if (z2 != s4Var.k) { + return z2 ? -1 : 1; + } + long j = this.j; + long j2 = s4Var.j; + if (j < j2) { + return -1; + } + if (j > j2) { + return 1; + } + this.m.g().g.b("Two tasks share the same index. index", Long.valueOf(this.j)); + return 0; + } + + @Override // java.util.concurrent.FutureTask + public final void setException(Throwable th) { + this.m.g().f.b(this.l, th); + super.setException(th); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s5.java b/app/src/main/java/b/i/a/f/i/b/s5.java new file mode 100644 index 0000000000..f590fb5b3a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s5.java @@ -0,0 +1,63 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import b.i.a.f.e.o.b; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public class s5 implements t5 { + public final u4 a; + + public s5(u4 u4Var) { + Objects.requireNonNull(u4Var, "null reference"); + this.a = u4Var; + } + + public void a() { + this.a.f().a(); + } + + public void b() { + this.a.f().b(); + } + + public j c() { + return this.a.y(); + } + + public o3 d() { + return this.a.u(); + } + + public t9 e() { + return this.a.t(); + } + + @Override // b.i.a.f.i.b.t5 + public r4 f() { + return this.a.f(); + } + + @Override // b.i.a.f.i.b.t5 + public q3 g() { + return this.a.g(); + } + + @Override // b.i.a.f.i.b.t5 + public b h() { + return this.a.o; + } + + @Override // b.i.a.f.i.b.t5 + public Context j() { + return this.a.f1555b; + } + + @Override // b.i.a.f.i.b.t5 + public ga k() { + return this.a.g; + } + + public d4 l() { + return this.a.o(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s6.java b/app/src/main/java/b/i/a/f/i/b/s6.java new file mode 100644 index 0000000000..4ee9cbf942 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s6.java @@ -0,0 +1,31 @@ +package b.i.a.f.i.b; + +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class s6 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ c6 k; + + public s6(c6 c6Var, AtomicReference atomicReference) { + this.k = c6Var; + this.j = atomicReference; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j) { + try { + AtomicReference atomicReference = this.j; + c6 c6Var = this.k; + c cVar = c6Var.a.h; + n3 o = c6Var.o(); + o.t(); + atomicReference.set(Integer.valueOf(cVar.q(o.c, p.N))); + this.j.notify(); + } catch (Throwable th) { + this.j.notify(); + throw th; + } + } + } +} diff --git a/app/src/main/java/c/i/a/f/i/b/s7.java b/app/src/main/java/b/i/a/f/i/b/s7.java similarity index 96% rename from app/src/main/java/c/i/a/f/i/b/s7.java rename to app/src/main/java/b/i/a/f/i/b/s7.java index bed7977242..bdbdafbac2 100644 --- a/app/src/main/java/c/i/a/f/i/b/s7.java +++ b/app/src/main/java/b/i/a/f/i/b/s7.java @@ -1,8 +1,8 @@ -package c.i.a.f.i.b; +package b.i.a.f.i.b; import android.os.Bundle; import android.os.RemoteException; -import c.i.a.f.h.l.fc; +import b.i.a.f.h.l.fc; import com.google.android.gms.measurement.internal.zzn; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class s7 implements Runnable { diff --git a/app/src/main/java/b/i/a/f/i/b/s8.java b/app/src/main/java/b/i/a/f/i/b/s8.java new file mode 100644 index 0000000000..9df5b1a6e1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s8.java @@ -0,0 +1,30 @@ +package b.i.a.f.i.b; + +import android.content.Intent; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final /* synthetic */ class s8 implements Runnable { + public final p8 j; + public final int k; + public final q3 l; + public final Intent m; + + public s8(p8 p8Var, int i, q3 q3Var, Intent intent) { + this.j = p8Var; + this.k = i; + this.l = q3Var; + this.m = intent; + } + + @Override // java.lang.Runnable + public final void run() { + p8 p8Var = this.j; + int i = this.k; + q3 q3Var = this.l; + Intent intent = this.m; + if (p8Var.a.f(i)) { + q3Var.n.b("Local AppMeasurementService processed last upload request. StartId", Integer.valueOf(i)); + p8Var.b().n.a("Completed wakeful intent."); + p8Var.a.b(intent); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/s9.java b/app/src/main/java/b/i/a/f/i/b/s9.java new file mode 100644 index 0000000000..b18d11c32d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/s9.java @@ -0,0 +1,83 @@ +package b.i.a.f.i.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.measurement.internal.zzku; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class s9 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzku createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + Long l = null; + Float f = null; + String str2 = null; + String str3 = null; + Double d = null; + long j = 0; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + str = d.Q(parcel, readInt); + break; + case 3: + j = d.F1(parcel, readInt); + break; + case 4: + int K1 = d.K1(parcel, readInt); + if (K1 != 0) { + d.z2(parcel, K1, 8); + l = Long.valueOf(parcel.readLong()); + break; + } else { + l = null; + break; + } + case 5: + int K12 = d.K1(parcel, readInt); + if (K12 != 0) { + d.z2(parcel, K12, 4); + f = Float.valueOf(parcel.readFloat()); + break; + } else { + f = null; + break; + } + case 6: + str2 = d.Q(parcel, readInt); + break; + case 7: + str3 = d.Q(parcel, readInt); + break; + case 8: + int K13 = d.K1(parcel, readInt); + if (K13 != 0) { + d.z2(parcel, K13, 8); + d = Double.valueOf(parcel.readDouble()); + break; + } else { + d = null; + break; + } + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzku(i, str, j, l, f, str2, str3, d); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzku[] newArray(int i) { + return new zzku[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/t.java b/app/src/main/java/b/i/a/f/i/b/t.java new file mode 100644 index 0000000000..14d857c70d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class t implements h3 { + public static final h3 a = new t(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).o()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/t0.java b/app/src/main/java/b/i/a/f/i/b/t0.java new file mode 100644 index 0000000000..e527833717 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.wa; +import b.i.a.f.h.l.za; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class t0 implements h3 { + public static final h3 a = new t0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((za) wa.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/t1.java b/app/src/main/java/b/i/a/f/i/b/t1.java new file mode 100644 index 0000000000..182a5d9d05 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ka; +import b.i.a.f.h.l.na; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class t1 implements h3 { + public static final h3 a = new t1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((na) ka.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/t2.java b/app/src/main/java/b/i/a/f/i/b/t2.java new file mode 100644 index 0000000000..ee327a0da5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.i8; +import b.i.a.f.h.l.l8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class t2 implements h3 { + public static final h3 a = new t2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((l8) i8.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/t3.java b/app/src/main/java/b/i/a/f/i/b/t3.java new file mode 100644 index 0000000000..60456129bb --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t3.java @@ -0,0 +1,106 @@ +package b.i.a.f.i.b; + +import android.content.SharedPreferences; +import android.content.pm.ApplicationInfo; +import androidx.exifinterface.media.ExifInterface; +import androidx.recyclerview.widget.RecyclerView; +import b.i.a.f.e.o.g; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class t3 implements Runnable { + public final /* synthetic */ int j; + public final /* synthetic */ String k; + public final /* synthetic */ Object l; + public final /* synthetic */ Object m; + public final /* synthetic */ Object n; + public final /* synthetic */ q3 o; + + public t3(q3 q3Var, int i, String str, Object obj, Object obj2, Object obj3) { + this.o = q3Var; + this.j = i; + this.k = str; + this.l = obj; + this.m = obj2; + this.n = obj3; + } + + @Override // java.lang.Runnable + public final void run() { + d4 o = this.o.a.o(); + if (!o.n()) { + this.o.v(6, "Persisted config not initialized. Not logging error/warn"); + return; + } + q3 q3Var = this.o; + boolean z2 = true; + if (q3Var.c == 0) { + c cVar = q3Var.a.h; + if (cVar.d == null) { + synchronized (cVar) { + if (cVar.d == null) { + ApplicationInfo applicationInfo = cVar.a.f1555b.getApplicationInfo(); + String a = g.a(); + if (applicationInfo != null) { + String str = applicationInfo.processName; + cVar.d = Boolean.valueOf(str != null && str.equals(a)); + } + if (cVar.d == null) { + cVar.d = Boolean.TRUE; + cVar.g().f.a("My process not in the list of running processes"); + } + } + } + } + if (cVar.d.booleanValue()) { + this.o.c = 'C'; + } else { + this.o.c = 'c'; + } + } + q3 q3Var2 = this.o; + if (q3Var2.d < 0) { + q3Var2.d = 33025; + } + char charAt = "01VDIWEA?".charAt(this.j); + q3 q3Var3 = this.o; + char c = q3Var3.c; + long j = q3Var3.d; + String u = q3.u(true, this.k, this.l, this.m, this.n); + StringBuilder sb = new StringBuilder(String.valueOf(u).length() + 24); + sb.append(ExifInterface.GPS_MEASUREMENT_2D); + sb.append(charAt); + sb.append(c); + sb.append(j); + sb.append(":"); + sb.append(u); + String sb2 = sb.toString(); + if (sb2.length() > 1024) { + sb2 = this.k.substring(0, 1024); + } + k4 k4Var = o.e; + k4Var.e.b(); + if (k4Var.e.w().getLong(k4Var.a, 0) == 0) { + k4Var.a(); + } + if (sb2 == null) { + sb2 = ""; + } + long j2 = k4Var.e.w().getLong(k4Var.f1526b, 0); + if (j2 <= 0) { + SharedPreferences.Editor edit = k4Var.e.w().edit(); + edit.putString(k4Var.c, sb2); + edit.putLong(k4Var.f1526b, 1); + edit.apply(); + return; + } + long j3 = j2 + 1; + if ((k4Var.e.e().v0().nextLong() & RecyclerView.FOREVER_NS) >= RecyclerView.FOREVER_NS / j3) { + z2 = false; + } + SharedPreferences.Editor edit2 = k4Var.e.w().edit(); + if (z2) { + edit2.putString(k4Var.c, sb2); + } + edit2.putLong(k4Var.f1526b, j3); + edit2.apply(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/t4.java b/app/src/main/java/b/i/a/f/i/b/t4.java new file mode 100644 index 0000000000..d17384ee12 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t4.java @@ -0,0 +1,20 @@ +package b.i.a.f.i.b; + +import java.lang.Thread; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class t4 implements Thread.UncaughtExceptionHandler { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ r4 f1553b; + + public t4(r4 r4Var, String str) { + this.f1553b = r4Var; + this.a = str; + } + + @Override // java.lang.Thread.UncaughtExceptionHandler + public final synchronized void uncaughtException(Thread thread, Throwable th) { + this.f1553b.g().f.b(this.a, th); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/t5.java b/app/src/main/java/b/i/a/f/i/b/t5.java new file mode 100644 index 0000000000..0e5a3a252e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t5.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import b.i.a.f.e.o.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface t5 { + r4 f(); + + q3 g(); + + b h(); + + Context j(); + + ga k(); +} diff --git a/app/src/main/java/b/i/a/f/i/b/t6.java b/app/src/main/java/b/i/a/f/i/b/t6.java new file mode 100644 index 0000000000..b1f9248d27 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t6.java @@ -0,0 +1,31 @@ +package b.i.a.f.i.b; + +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class t6 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ c6 k; + + public t6(c6 c6Var, AtomicReference atomicReference) { + this.k = c6Var; + this.j = atomicReference; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j) { + try { + AtomicReference atomicReference = this.j; + c6 c6Var = this.k; + c cVar = c6Var.a.h; + n3 o = c6Var.o(); + o.t(); + atomicReference.set(Long.valueOf(cVar.n(o.c, p.M))); + this.j.notify(); + } catch (Throwable th) { + this.j.notify(); + throw th; + } + } + } +} diff --git a/app/src/main/java/c/i/a/f/i/b/t7.java b/app/src/main/java/b/i/a/f/i/b/t7.java similarity index 97% rename from app/src/main/java/c/i/a/f/i/b/t7.java rename to app/src/main/java/b/i/a/f/i/b/t7.java index 74ad5dbaf1..da6620106d 100644 --- a/app/src/main/java/c/i/a/f/i/b/t7.java +++ b/app/src/main/java/b/i/a/f/i/b/t7.java @@ -1,4 +1,4 @@ -package c.i.a.f.i.b; +package b.i.a.f.i.b; import android.os.RemoteException; import com.google.android.gms.measurement.internal.zzn; diff --git a/app/src/main/java/b/i/a/f/i/b/t8.java b/app/src/main/java/b/i/a/f/i/b/t8.java new file mode 100644 index 0000000000..a45c563c7d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t8.java @@ -0,0 +1,12 @@ +package b.i.a.f.i.b; + +import android.app.job.JobParameters; +import android.content.Intent; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public interface t8 { + void a(JobParameters jobParameters, boolean z2); + + void b(Intent intent); + + boolean f(int i); +} diff --git a/app/src/main/java/b/i/a/f/i/b/t9.java b/app/src/main/java/b/i/a/f/i/b/t9.java new file mode 100644 index 0000000000..e78767c814 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/t9.java @@ -0,0 +1,1114 @@ +package b.i.a.f.i.b; + +import android.annotation.SuppressLint; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.pm.ServiceInfo; +import android.content.pm.Signature; +import android.net.Uri; +import android.os.Build; +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import android.os.RemoteException; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.WorkerThread; +import b.c.a.a0.d; +import b.d.b.a.a; +import b.i.a.f.e.e; +import b.i.a.f.e.o.c; +import b.i.a.f.e.o.f; +import b.i.a.f.e.p.b; +import b.i.a.f.h.l.da; +import b.i.a.f.h.l.fc; +import b.i.a.f.h.l.g8; +import b.i.a.f.h.l.h8; +import com.adjust.sdk.Constants; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzz; +import java.io.ByteArrayInputStream; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.security.cert.CertificateException; +import java.security.cert.CertificateFactory; +import java.security.cert.X509Certificate; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Random; +import java.util.TreeSet; +import java.util.concurrent.atomic.AtomicLong; +import javax.security.auth.x500.X500Principal; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class t9 extends r5 { + public static final String[] c = {"firebase_", "google_", "ga_"}; + public static final String[] d = {"_err"}; + public SecureRandom e; + public final AtomicLong f = new AtomicLong(0); + public int g; + public Integer h = null; + + public t9(u4 u4Var) { + super(u4Var); + } + + public static Bundle A(List list) { + Bundle bundle = new Bundle(); + if (list == null) { + return bundle; + } + for (zzku zzku : list) { + String str = zzku.n; + if (str != null) { + bundle.putString(zzku.k, str); + } else { + Long l = zzku.m; + if (l != null) { + bundle.putLong(zzku.k, l.longValue()); + } else { + Double d2 = zzku.p; + if (d2 != null) { + bundle.putDouble(zzku.k, d2.doubleValue()); + } + } + } + } + return bundle; + } + + public static String E(String str, int i, boolean z2) { + if (str == null) { + return null; + } + if (str.codePointCount(0, str.length()) <= i) { + return str; + } + if (z2) { + return String.valueOf(str.substring(0, str.offsetByCodePoints(0, i))).concat("..."); + } + return null; + } + + public static void F(Bundle bundle, int i, String str, Object obj) { + if (l0(bundle, i)) { + bundle.putString("_ev", E(str, 40, true)); + if (obj == null) { + return; + } + if ((obj instanceof String) || (obj instanceof CharSequence)) { + bundle.putLong("_el", (long) String.valueOf(obj).length()); + } + } + } + + public static boolean U(Context context) { + Objects.requireNonNull(context, "null reference"); + return Build.VERSION.SDK_INT >= 24 ? k0(context, "com.google.android.gms.measurement.AppMeasurementJobService") : k0(context, "com.google.android.gms.measurement.AppMeasurementService"); + } + + public static boolean V(Intent intent) { + String stringExtra = intent.getStringExtra("android.intent.extra.REFERRER_NAME"); + return "android-app://com.google.android.googlequicksearchbox/https/www.google.com".equals(stringExtra) || "https://www.google.com".equals(stringExtra) || "android-app://com.google.appcrawler".equals(stringExtra); + } + + public static boolean W(Object obj) { + return (obj instanceof Parcelable[]) || (obj instanceof ArrayList) || (obj instanceof Bundle); + } + + public static boolean X(String str) { + d.w(str); + return str.charAt(0) != '_' || str.equals("_ep"); + } + + public static boolean d0(String str, String str2, String str3, String str4) { + boolean isEmpty = TextUtils.isEmpty(str); + boolean isEmpty2 = TextUtils.isEmpty(str2); + if (!isEmpty && !isEmpty2) { + return !str.equals(str2); + } + if (isEmpty && isEmpty2) { + return (TextUtils.isEmpty(str3) || TextUtils.isEmpty(str4)) ? !TextUtils.isEmpty(str4) : !str3.equals(str4); + } + if (isEmpty || !isEmpty2) { + return TextUtils.isEmpty(str3) || !str3.equals(str4); + } + if (TextUtils.isEmpty(str4)) { + return false; + } + return TextUtils.isEmpty(str3) || !str3.equals(str4); + } + + public static boolean e0(String str, String[] strArr) { + for (String str2 : strArr) { + if (q0(str, str2)) { + return true; + } + } + return false; + } + + public static byte[] g0(Parcelable parcelable) { + if (parcelable == null) { + return null; + } + Parcel obtain = Parcel.obtain(); + try { + parcelable.writeToParcel(obtain, 0); + return obtain.marshall(); + } finally { + obtain.recycle(); + } + } + + public static ArrayList j0(List list) { + if (list == null) { + return new ArrayList<>(0); + } + ArrayList arrayList = new ArrayList<>(list.size()); + for (zzz zzz : list) { + Bundle bundle = new Bundle(); + bundle.putString("app_id", zzz.j); + bundle.putString("origin", zzz.k); + bundle.putLong("creation_timestamp", zzz.m); + bundle.putString(ModelAuditLogEntry.CHANGE_KEY_NAME, zzz.l.k); + f.U1(bundle, zzz.l.w0()); + bundle.putBoolean("active", zzz.n); + String str = zzz.o; + if (str != null) { + bundle.putString("trigger_event_name", str); + } + zzaq zzaq = zzz.p; + if (zzaq != null) { + bundle.putString("timed_out_event_name", zzaq.j); + zzap zzap = zzz.p.k; + if (zzap != null) { + bundle.putBundle("timed_out_event_params", zzap.x0()); + } + } + bundle.putLong("trigger_timeout", zzz.q); + zzaq zzaq2 = zzz.r; + if (zzaq2 != null) { + bundle.putString("triggered_event_name", zzaq2.j); + zzap zzap2 = zzz.r.k; + if (zzap2 != null) { + bundle.putBundle("triggered_event_params", zzap2.x0()); + } + } + bundle.putLong("triggered_timestamp", zzz.l.l); + bundle.putLong("time_to_live", zzz.f2975s); + zzaq zzaq3 = zzz.t; + if (zzaq3 != null) { + bundle.putString("expired_event_name", zzaq3.j); + zzap zzap3 = zzz.t.k; + if (zzap3 != null) { + bundle.putBundle("expired_event_params", zzap3.x0()); + } + } + arrayList.add(bundle); + } + return arrayList; + } + + public static boolean k0(Context context, String str) { + ServiceInfo serviceInfo; + try { + PackageManager packageManager = context.getPackageManager(); + return (packageManager == null || (serviceInfo = packageManager.getServiceInfo(new ComponentName(context, str), 0)) == null || !serviceInfo.enabled) ? false : true; + } catch (PackageManager.NameNotFoundException unused) { + } + } + + public static boolean l0(Bundle bundle, int i) { + if (bundle == null || bundle.getLong("_err") != 0) { + return false; + } + bundle.putLong("_err", (long) i); + return true; + } + + public static boolean q0(String str, String str2) { + if (str == null && str2 == null) { + return true; + } + if (str == null) { + return false; + } + return str.equals(str2); + } + + public static boolean r0(String str) { + return !TextUtils.isEmpty(str) && str.startsWith("_"); + } + + public static long u(long j, long j2) { + return ((j2 * 60000) + j) / 86400000; + } + + public static long v(zzap zzap) { + long j = 0; + if (zzap == null) { + return 0; + } + for (String str : zzap.j.keySet()) { + Object w0 = zzap.w0(str); + if (w0 instanceof Parcelable[]) { + j += (long) ((Parcelable[]) w0).length; + } + } + return j; + } + + public static long w(byte[] bArr) { + Objects.requireNonNull(bArr, "null reference"); + int i = 0; + d.F(bArr.length > 0); + long j = 0; + int length = bArr.length - 1; + while (length >= 0 && length >= bArr.length - 8) { + j += (((long) bArr[length]) & 255) << i; + i += 8; + length--; + } + return j; + } + + public static MessageDigest x0() { + for (int i = 0; i < 2; i++) { + try { + MessageDigest instance = MessageDigest.getInstance(Constants.MD5); + if (instance != null) { + return instance; + } + } catch (NoSuchAlgorithmException unused) { + } + } + return null; + } + + public final zzaq B(String str, String str2, Bundle bundle, String str3, long j, boolean z2, boolean z3) { + if (TextUtils.isEmpty(str2)) { + return null; + } + if (t(str2, z3) == 0) { + Bundle bundle2 = bundle != null ? new Bundle(bundle) : new Bundle(); + bundle2.putString("_o", str3); + Bundle z4 = z(str, str2, bundle2, Collections.singletonList("_o"), false); + if (z2) { + z4 = y(z4); + } + return new zzaq(str2, new zzap(z4), str3, j); + } + g().f.b("Invalid conditional property event name", d().y(str2)); + throw new IllegalArgumentException(); + } + + public final Object C(int i, Object obj, boolean z2, boolean z3) { + if (obj == null) { + return null; + } + if ((obj instanceof Long) || (obj instanceof Double)) { + return obj; + } + if (obj instanceof Integer) { + return Long.valueOf((long) ((Integer) obj).intValue()); + } + if (obj instanceof Byte) { + return Long.valueOf((long) ((Byte) obj).byteValue()); + } + if (obj instanceof Short) { + return Long.valueOf((long) ((Short) obj).shortValue()); + } + if (obj instanceof Boolean) { + return Long.valueOf(((Boolean) obj).booleanValue() ? 1 : 0); + } else if (obj instanceof Float) { + return Double.valueOf(((Float) obj).doubleValue()); + } else { + if ((obj instanceof String) || (obj instanceof Character) || (obj instanceof CharSequence)) { + return E(String.valueOf(obj), i, z2); + } + if (!z3 || (!(obj instanceof Bundle[]) && !(obj instanceof Parcelable[]))) { + return null; + } + ArrayList arrayList = new ArrayList(); + Parcelable[] parcelableArr = (Parcelable[]) obj; + for (Parcelable parcelable : parcelableArr) { + if (parcelable instanceof Bundle) { + Bundle y2 = y((Bundle) parcelable); + if (!y2.isEmpty()) { + arrayList.add(y2); + } + } + } + return arrayList.toArray(new Bundle[arrayList.size()]); + } + } + + public final Object D(String str, Object obj) { + int i = 256; + if ("_ev".equals(str)) { + return C(256, obj, true, true); + } + if (!r0(str)) { + i = 100; + } + return C(i, obj, false, true); + } + + @WorkerThread + public final void G(Bundle bundle, long j) { + long j2 = bundle.getLong("_et"); + if (j2 != 0) { + g().i.b("Params already contained engagement", Long.valueOf(j2)); + } + bundle.putLong("_et", j + j2); + } + + public final void H(Bundle bundle, Bundle bundle2) { + if (bundle2 != null) { + for (String str : bundle2.keySet()) { + if (!bundle.containsKey(str)) { + e().I(bundle, str, bundle2.get(str)); + } + } + } + } + + public final void I(Bundle bundle, String str, Object obj) { + if (bundle != null) { + if (obj instanceof Long) { + bundle.putLong(str, ((Long) obj).longValue()); + } else if (obj instanceof String) { + bundle.putString(str, String.valueOf(obj)); + } else if (obj instanceof Double) { + bundle.putDouble(str, ((Double) obj).doubleValue()); + } else if (obj instanceof Bundle[]) { + bundle.putParcelableArray(str, (Bundle[]) obj); + } else if (str != null) { + g().k.c("Not putting event parameter. Invalid value type. name, type", d().x(str), obj != null ? obj.getClass().getSimpleName() : null); + } + } + } + + public final void J(fc fcVar, int i) { + Bundle bundle = new Bundle(); + bundle.putInt("r", i); + try { + fcVar.f(bundle); + } catch (RemoteException e) { + this.a.g().i.b("Error returning int value to wrapper", e); + } + } + + public final void K(fc fcVar, long j) { + try { + fcVar.f(a.I("r", j)); + } catch (RemoteException e) { + this.a.g().i.b("Error returning long value to wrapper", e); + } + } + + public final void L(fc fcVar, Bundle bundle) { + try { + fcVar.f(bundle); + } catch (RemoteException e) { + this.a.g().i.b("Error returning bundle value to wrapper", e); + } + } + + public final void M(fc fcVar, String str) { + Bundle bundle = new Bundle(); + bundle.putString("r", str); + try { + fcVar.f(bundle); + } catch (RemoteException e) { + this.a.g().i.b("Error returning string value to wrapper", e); + } + } + + public final void N(fc fcVar, ArrayList arrayList) { + Bundle bundle = new Bundle(); + bundle.putParcelableArrayList("r", arrayList); + try { + fcVar.f(bundle); + } catch (RemoteException e) { + this.a.g().i.b("Error returning bundle list to wrapper", e); + } + } + + public final void O(fc fcVar, boolean z2) { + Bundle bundle = new Bundle(); + bundle.putBoolean("r", z2); + try { + fcVar.f(bundle); + } catch (RemoteException e) { + this.a.g().i.b("Error returning boolean value to wrapper", e); + } + } + + public final void P(fc fcVar, byte[] bArr) { + Bundle bundle = new Bundle(); + bundle.putByteArray("r", bArr); + try { + fcVar.f(bundle); + } catch (RemoteException e) { + this.a.g().i.b("Error returning byte array to wrapper", e); + } + } + + public final void Q(u3 u3Var, int i) { + Iterator it = new TreeSet(u3Var.d.keySet()).iterator(); + int i2 = 0; + while (it.hasNext()) { + String str = (String) it.next(); + if (X(str) && (i2 = i2 + 1) > i) { + StringBuilder sb = new StringBuilder(48); + sb.append("Event can't contain more than "); + sb.append(i); + sb.append(" params"); + g().h.c(sb.toString(), d().u(u3Var.a), d().s(u3Var.d)); + l0(u3Var.d, 5); + u3Var.d.remove(str); + } + } + } + + public final void R(v9 v9Var, int i, String str, String str2, int i2) { + S(v9Var, null, i, str, str2, i2); + } + + public final void S(v9 v9Var, String str, int i, String str2, String str3, int i2) { + Bundle bundle = new Bundle(); + l0(bundle, i); + if (!TextUtils.isEmpty(str2) && !TextUtils.isEmpty(str3)) { + bundle.putString(str2, str3); + } + if (i == 6 || i == 7 || i == 2) { + bundle.putLong("_el", (long) i2); + } + if (!((g8) h8.j.a()).a() || !this.a.h.o(p.O0)) { + this.a.s().H("auto", "_err", bundle); + } else { + v9Var.a(str, bundle); + } + } + + public final void T(String str, String str2, String str3, Bundle bundle, @Nullable List list, boolean z2) { + int i; + String str4; + int i2; + if (bundle != null) { + Iterator it = new TreeSet(bundle.keySet()).iterator(); + int i3 = 0; + while (it.hasNext()) { + String str5 = (String) it.next(); + if (list == null || !list.contains(str5)) { + i = z2 ? u0(str5) : 0; + if (i == 0) { + i = w0(str5); + } + } else { + i = 0; + } + if (i != 0) { + F(bundle, i, str5, i == 3 ? str5 : null); + bundle.remove(str5); + } else { + if (W(bundle.get(str5))) { + g().k.d("Nested Bundle parameters are not allowed; discarded. event name, param name, child param name", str2, str3, str5); + i2 = 22; + str4 = str5; + } else { + str4 = str5; + i2 = s(str, str2, str5, bundle.get(str5), bundle, list, z2, false); + } + if (i2 != 0 && !"_ev".equals(str4)) { + F(bundle, i2, str4, bundle.get(str4)); + bundle.remove(str4); + } else if (X(str4) && !e0(str4, u5.d) && (i3 = i3 + 1) > 0) { + g().h.c("Item cannot contain custom parameters", d().u(str2), d().s(bundle)); + l0(bundle, 23); + bundle.remove(str4); + } + } + } + } + } + + @SuppressLint({"ApplySharedPref"}) + public final boolean Y(String str, double d2) { + try { + SharedPreferences.Editor edit = this.a.f1555b.getSharedPreferences("google.analytics.deferred.deeplink.prefs", 0).edit(); + edit.putString(Constants.DEEPLINK, str); + edit.putLong("timestamp", Double.doubleToRawLongBits(d2)); + return edit.commit(); + } catch (Exception e) { + g().f.b("Failed to persist Deferred Deep Link. exception", e); + return false; + } + } + + public final boolean Z(String str, int i, String str2) { + if (str2 == null) { + g().h.b("Name is required and can't be null. Type", str); + return false; + } else if (str2.codePointCount(0, str2.length()) <= i) { + return true; + } else { + g().h.d("Name is too long. Type, maximum supported length, name", str, Integer.valueOf(i), str2); + return false; + } + } + + public final boolean a0(String str, String str2) { + if (str2 == null) { + g().h.b("Name is required and can't be null. Type", str); + return false; + } else if (str2.length() == 0) { + g().h.b("Name is required and can't be empty. Type", str); + return false; + } else { + int codePointAt = str2.codePointAt(0); + if (!Character.isLetter(codePointAt)) { + g().h.c("Name must start with a letter. Type, name", str, str2); + return false; + } + int length = str2.length(); + int charCount = Character.charCount(codePointAt); + while (charCount < length) { + int codePointAt2 = str2.codePointAt(charCount); + if (codePointAt2 == 95 || Character.isLetterOrDigit(codePointAt2)) { + charCount += Character.charCount(codePointAt2); + } else { + g().h.c("Name must consist of letters, digits or _ (underscores). Type, name", str, str2); + return false; + } + } + return true; + } + } + + public final boolean b0(String str, String str2, int i, Object obj) { + if (obj != null && !(obj instanceof Long) && !(obj instanceof Float) && !(obj instanceof Integer) && !(obj instanceof Byte) && !(obj instanceof Short) && !(obj instanceof Boolean) && !(obj instanceof Double)) { + if (!(obj instanceof String) && !(obj instanceof Character) && !(obj instanceof CharSequence)) { + return false; + } + String valueOf = String.valueOf(obj); + if (valueOf.codePointCount(0, valueOf.length()) > i) { + g().k.d("Value is too long; discarded. Value kind, name, value length", str, str2, Integer.valueOf(valueOf.length())); + return false; + } + } + return true; + } + + public final boolean c0(String str, String str2, String str3) { + if (!TextUtils.isEmpty(str)) { + Objects.requireNonNull(str, "null reference"); + if (str.matches("^(1:\\d+:android:[a-f0-9]+|ca-app-pub-.*)$")) { + return true; + } + if (this.a.v()) { + g().h.b("Invalid google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI. provided id", q3.s(str)); + } + return false; + } else if (da.b() && this.a.h.o(p.f1546j0) && !TextUtils.isEmpty(str3)) { + return true; + } else { + if (!TextUtils.isEmpty(str2)) { + Objects.requireNonNull(str2, "null reference"); + if (str2.matches("^(1:\\d+:android:[a-f0-9]+|ca-app-pub-.*)$")) { + return true; + } + g().h.b("Invalid admob_app_id. Analytics disabled.", q3.s(str2)); + return false; + } + if (this.a.v()) { + g().h.a("Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI"); + } + return false; + } + } + + public final boolean f0(String str, String[] strArr, String[] strArr2, String str2) { + boolean z2; + if (str2 == null) { + g().h.b("Name is required and can't be null. Type", str); + return false; + } + String[] strArr3 = c; + int length = strArr3.length; + int i = 0; + while (true) { + if (i >= length) { + z2 = false; + break; + } else if (str2.startsWith(strArr3[i])) { + z2 = true; + break; + } else { + i++; + } + } + if (z2) { + g().h.c("Name starts with reserved prefix. Type, name", str, str2); + return false; + } else if (strArr == null || !e0(str2, strArr) || (strArr2 != null && e0(str2, strArr2))) { + return true; + } else { + g().h.c("Name is reserved. Type, name", str, str2); + return false; + } + } + + public final int h0(String str) { + if (!m0("user property", str)) { + return 6; + } + if (!f0("user property", x5.a, null, str)) { + return 15; + } + return !Z("user property", 24, str) ? 6 : 0; + } + + public final int i0(String str, Object obj) { + return "_ldl".equals(str) ? b0("user property referrer", str, z0(str), obj) : b0("user property", str, z0(str), obj) ? 0 : 7; + } + + @Override // b.i.a.f.i.b.r5 + @WorkerThread + public final void m() { + b(); + SecureRandom secureRandom = new SecureRandom(); + long nextLong = secureRandom.nextLong(); + if (nextLong == 0) { + nextLong = secureRandom.nextLong(); + if (nextLong == 0) { + g().i.a("Utils falling back to Random for random id"); + } + } + this.f.set(nextLong); + } + + public final boolean m0(String str, String str2) { + if (str2 == null) { + g().h.b("Name is required and can't be null. Type", str); + return false; + } else if (str2.length() == 0) { + g().h.b("Name is required and can't be empty. Type", str); + return false; + } else { + int codePointAt = str2.codePointAt(0); + if (Character.isLetter(codePointAt) || codePointAt == 95) { + int length = str2.length(); + int charCount = Character.charCount(codePointAt); + while (charCount < length) { + int codePointAt2 = str2.codePointAt(charCount); + if (codePointAt2 == 95 || Character.isLetterOrDigit(codePointAt2)) { + charCount += Character.charCount(codePointAt2); + } else { + g().h.c("Name must consist of letters, digits or _ (underscores). Type, name", str, str2); + return false; + } + } + return true; + } + g().h.c("Name must start with a letter or _ (underscore). Type, name", str, str2); + return false; + } + } + + public final Object n0(String str, Object obj) { + return "_ldl".equals(str) ? C(z0(str), obj, true, false) : C(z0(str), obj, false, false); + } + + public final boolean o0(Context context, String str) { + Signature[] signatureArr; + X500Principal x500Principal = new X500Principal("CN=Android Debug,O=Android,C=US"); + try { + PackageInfo packageInfo = b.a(context).a.getPackageManager().getPackageInfo(str, 64); + if (packageInfo == null || (signatureArr = packageInfo.signatures) == null || signatureArr.length <= 0) { + return true; + } + return ((X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(new ByteArrayInputStream(signatureArr[0].toByteArray()))).getSubjectX500Principal().equals(x500Principal); + } catch (CertificateException e) { + g().f.b("Error obtaining certificate", e); + return true; + } catch (PackageManager.NameNotFoundException e2) { + g().f.b("Package name not found", e2); + return true; + } + } + + @WorkerThread + public final boolean p0(String str) { + b(); + if (b.a(this.a.f1555b).a.checkCallingOrSelfPermission(str) == 0) { + return true; + } + g().m.b("Permission not granted", str); + return false; + } + + @Override // b.i.a.f.i.b.r5 + public final boolean r() { + return true; + } + + /* JADX WARNING: Removed duplicated region for block: B:24:0x0076 */ + /* JADX WARNING: Removed duplicated region for block: B:46:0x00cf A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:47:0x00d0 */ + @WorkerThread + public final int s(String str, String str2, String str3, Object obj, Bundle bundle, @Nullable List list, boolean z2, boolean z3) { + int i; + boolean z4; + int i2; + b(); + boolean z5 = true; + if (W(obj)) { + if (!z3) { + return 21; + } + if (!e0(str3, u5.c)) { + return 20; + } + q7 x2 = this.a.x(); + x2.b(); + x2.t(); + if (!(!x2.G() || x2.e().y0() >= 200900)) { + return 25; + } + boolean z6 = obj instanceof Parcelable[]; + if (z6) { + i2 = ((Parcelable[]) obj).length; + } else { + if (obj instanceof ArrayList) { + i2 = ((ArrayList) obj).size(); + } + z4 = true; + if (!z4) { + if (z6) { + Parcelable[] parcelableArr = (Parcelable[]) obj; + if (parcelableArr.length > 200) { + bundle.putParcelableArray(str3, (Parcelable[]) Arrays.copyOf(parcelableArr, 200)); + } + } else if (obj instanceof ArrayList) { + ArrayList arrayList = (ArrayList) obj; + if (arrayList.size() > 200) { + bundle.putParcelableArrayList(str3, new ArrayList<>(arrayList.subList(0, 200))); + } + } + i = 17; + if (!b0("param", str3, ((this.a.h.u(str, p.R) || !r0(str2)) && !r0(str3)) ? 100 : 256, obj)) { + return i; + } + if (!z3) { + return 4; + } + if (obj instanceof Bundle) { + T(str, str2, str3, (Bundle) obj, list, z2); + } else { + if (obj instanceof Parcelable[]) { + Parcelable[] parcelableArr2 = (Parcelable[]) obj; + int length = parcelableArr2.length; + int i3 = 0; + while (true) { + if (i3 >= length) { + break; + } + Parcelable parcelable = parcelableArr2[i3]; + if (!(parcelable instanceof Bundle)) { + g().k.c("All Parcelable[] elements must be of type Bundle. Value type, name", parcelable.getClass(), str3); + break; + } + T(str, str2, str3, (Bundle) parcelable, list, z2); + i3++; + } + } else if (obj instanceof ArrayList) { + ArrayList arrayList2 = (ArrayList) obj; + int size = arrayList2.size(); + int i4 = 0; + while (true) { + if (i4 >= size) { + break; + } + Object obj2 = arrayList2.get(i4); + int i5 = i4 + 1; + if (!(obj2 instanceof Bundle)) { + g().k.c("All ArrayList elements must be of type Bundle. Value type, name", obj2.getClass(), str3); + break; + } + T(str, str2, str3, (Bundle) obj2, list, z2); + i4 = i5; + } + } + z5 = false; + } + if (z5) { + return i; + } + return 4; + } + } + if (i2 > 200) { + g().k.d("Parameter array is too long; discarded. Value kind, name, array length", "param", str3, Integer.valueOf(i2)); + z4 = false; + if (!z4) { + } + } + z4 = true; + if (!z4) { + } + } + i = 0; + if (!b0("param", str3, ((this.a.h.u(str, p.R) || !r0(str2)) && !r0(str3)) ? 100 : 256, obj)) { + } + } + + public final boolean s0(String str) { + if (TextUtils.isEmpty(str)) { + return false; + } + return this.a.h.i("debug.firebase.analytics.app", "").equals(str); + } + + public final int t(String str, boolean z2) { + if (!m0("event", str)) { + return 2; + } + if (z2) { + if (!f0("event", v5.a, v5.f1562b, str)) { + return 13; + } + } else if (!f0("event", v5.a, null, str)) { + return 13; + } + return !Z("event", 40, str) ? 2 : 0; + } + + public final long t0() { + long andIncrement; + long j; + if (this.f.get() == 0) { + synchronized (this.f) { + long nanoTime = System.nanoTime(); + Objects.requireNonNull((c) this.a.o); + long nextLong = new Random(nanoTime ^ System.currentTimeMillis()).nextLong(); + int i = this.g + 1; + this.g = i; + j = nextLong + ((long) i); + } + return j; + } + synchronized (this.f) { + this.f.compareAndSet(-1, 1); + andIncrement = this.f.getAndIncrement(); + } + return andIncrement; + } + + public final int u0(String str) { + if (!a0("event param", str)) { + return 3; + } + if (!f0("event param", null, null, str)) { + return 14; + } + return !Z("event param", 40, str) ? 3 : 0; + } + + @WorkerThread + public final SecureRandom v0() { + b(); + if (this.e == null) { + this.e = new SecureRandom(); + } + return this.e; + } + + public final int w0(String str) { + if (!m0("event param", str)) { + return 3; + } + if (!f0("event param", null, null, str)) { + return 14; + } + return !Z("event param", 40, str) ? 3 : 0; + } + + public final Bundle x(@NonNull Uri uri) { + String str; + String str2; + String str3; + String str4; + if (uri == null) { + return null; + } + try { + if (uri.isHierarchical()) { + str4 = uri.getQueryParameter("utm_campaign"); + str3 = uri.getQueryParameter("utm_source"); + str2 = uri.getQueryParameter("utm_medium"); + str = uri.getQueryParameter("gclid"); + } else { + str4 = null; + str3 = null; + str2 = null; + str = null; + } + if (TextUtils.isEmpty(str4) && TextUtils.isEmpty(str3) && TextUtils.isEmpty(str2) && TextUtils.isEmpty(str)) { + return null; + } + Bundle bundle = new Bundle(); + if (!TextUtils.isEmpty(str4)) { + bundle.putString("campaign", str4); + } + if (!TextUtils.isEmpty(str3)) { + bundle.putString("source", str3); + } + if (!TextUtils.isEmpty(str2)) { + bundle.putString(Constants.MEDIUM, str2); + } + if (!TextUtils.isEmpty(str)) { + bundle.putString("gclid", str); + } + String queryParameter = uri.getQueryParameter("utm_term"); + if (!TextUtils.isEmpty(queryParameter)) { + bundle.putString("term", queryParameter); + } + String queryParameter2 = uri.getQueryParameter("utm_content"); + if (!TextUtils.isEmpty(queryParameter2)) { + bundle.putString("content", queryParameter2); + } + String queryParameter3 = uri.getQueryParameter("aclid"); + if (!TextUtils.isEmpty(queryParameter3)) { + bundle.putString("aclid", queryParameter3); + } + String queryParameter4 = uri.getQueryParameter("cp1"); + if (!TextUtils.isEmpty(queryParameter4)) { + bundle.putString("cp1", queryParameter4); + } + String queryParameter5 = uri.getQueryParameter("anid"); + if (!TextUtils.isEmpty(queryParameter5)) { + bundle.putString("anid", queryParameter5); + } + return bundle; + } catch (UnsupportedOperationException e) { + g().i.b("Install referrer url isn't a hierarchical URI", e); + return null; + } + } + + public final Bundle y(Bundle bundle) { + Bundle bundle2 = new Bundle(); + if (bundle != null) { + for (String str : bundle.keySet()) { + Object D = D(str, bundle.get(str)); + if (D == null) { + g().k.b("Param value can't be null", d().x(str)); + } else { + I(bundle2, str, D); + } + } + } + return bundle2; + } + + public final int y0() { + if (this.h == null) { + b.i.a.f.e.c cVar = b.i.a.f.e.c.f1332b; + Context context = this.a.f1555b; + Objects.requireNonNull(cVar); + boolean z2 = e.a; + int i = 0; + try { + i = context.getPackageManager().getPackageInfo("com.google.android.gms", 0).versionCode; + } catch (PackageManager.NameNotFoundException unused) { + Log.w("GooglePlayServicesUtil", "Google Play services is missing."); + } + this.h = Integer.valueOf(i / 1000); + } + return this.h.intValue(); + } + + /* JADX WARN: Incorrect args count in method signature: (Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;Ljava/util/List;ZZ)Landroid/os/Bundle; */ + public final Bundle z(String str, String str2, Bundle bundle, @Nullable List list, boolean z2) { + int i; + int i2; + t9 t9Var = this; + boolean e02 = e0(str2, v5.d); + if (bundle == null) { + return null; + } + Bundle bundle2 = new Bundle(bundle); + int t = t9Var.a.h.t(); + int i3 = 0; + for (String str3 : t9Var.a.h.u(str, p.Z) ? new TreeSet<>(bundle.keySet()) : bundle.keySet()) { + if (list == null || !list.contains(str3)) { + i = z2 ? t9Var.u0(str3) : 0; + if (i == 0) { + i = t9Var.w0(str3); + } + } else { + i = 0; + } + if (i != 0) { + F(bundle2, i, str3, i == 3 ? str3 : null); + bundle2.remove(str3); + i2 = t; + } else { + i2 = t; + int s2 = s(str, str2, str3, bundle.get(str3), bundle2, list, z2, e02); + if (s2 == 17) { + F(bundle2, s2, str3, Boolean.FALSE); + } else if (s2 != 0 && !"_ev".equals(str3)) { + F(bundle2, s2, s2 == 21 ? str2 : str3, bundle.get(str3)); + bundle2.remove(str3); + } + if (X(str3)) { + int i4 = i3 + 1; + if (i4 > i2) { + StringBuilder sb = new StringBuilder(48); + sb.append("Event can't contain more than "); + sb.append(i2); + sb.append(" params"); + g().h.c(sb.toString(), d().u(str2), d().s(bundle)); + l0(bundle2, 5); + bundle2.remove(str3); + i3 = i4; + t = i2; + t9Var = this; + } else { + i3 = i4; + } + } + } + t = i2; + t9Var = this; + } + return bundle2; + } + + public final int z0(String str) { + if ("_ldl".equals(str)) { + return 2048; + } + if ("_id".equals(str)) { + return 256; + } + return (!this.a.h.o(p.f1544h0) || !"_lgclid".equals(str)) ? 36 : 100; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/u.java b/app/src/main/java/b/i/a/f/i/b/u.java new file mode 100644 index 0000000000..28d4fdae34 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class u implements h3 { + public static final h3 a = new u(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).s()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/u0.java b/app/src/main/java/b/i/a/f/i/b/u0.java new file mode 100644 index 0000000000..cf4dd4c464 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.wa; +import b.i.a.f.h.l.za; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class u0 implements h3 { + public static final h3 a = new u0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((za) wa.j.a()).c()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/u1.java b/app/src/main/java/b/i/a/f/i/b/u1.java new file mode 100644 index 0000000000..28010c0164 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ca; +import b.i.a.f.h.l.da; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class u1 implements h3 { + public static final h3 a = new u1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ca) da.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/u2.java b/app/src/main/java/b/i/a/f/i/b/u2.java new file mode 100644 index 0000000000..552310c38e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.gb; +import b.i.a.f.h.l.hb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class u2 implements h3 { + public static final h3 a = new u2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((gb) hb.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/u3.java b/app/src/main/java/b/i/a/f/i/b/u3.java new file mode 100644 index 0000000000..166c14878d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u3.java @@ -0,0 +1,42 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.d.b.a.a; +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzaq; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class u3 { + @NonNull + public String a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public String f1554b; + public long c; + @NonNull + public Bundle d; + + public u3(@NonNull String str, @NonNull String str2, @Nullable Bundle bundle, long j) { + this.a = str; + this.f1554b = str2; + this.d = bundle; + this.c = j; + } + + public static u3 b(zzaq zzaq) { + return new u3(zzaq.j, zzaq.l, zzaq.k.x0(), zzaq.m); + } + + public final zzaq a() { + return new zzaq(this.a, new zzap(new Bundle(this.d)), this.f1554b, this.c); + } + + public final String toString() { + String str = this.f1554b; + String str2 = this.a; + String valueOf = String.valueOf(this.d); + return a.H(a.Q(valueOf.length() + a.b(str2, a.b(str, 21)), "origin=", str, ",name=", str2), ",params=", valueOf); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/u4.java b/app/src/main/java/b/i/a/f/i/b/u4.java new file mode 100644 index 0000000000..2dbd518713 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u4.java @@ -0,0 +1,402 @@ +package b.i.a.f.i.b; + +import android.app.Application; +import android.content.Context; +import android.os.Bundle; +import android.os.SystemClock; +import android.text.TextUtils; +import androidx.annotation.WorkerThread; +import b.d.b.a.a; +import b.i.a.f.e.h.j.h; +import b.i.a.f.e.o.b; +import b.i.a.f.e.o.c; +import b.i.a.f.e.o.f; +import b.i.a.f.h.l.c2; +import b.i.a.f.h.l.k2; +import b.i.a.f.h.l.l2; +import b.i.a.f.h.l.s2; +import b.i.a.f.h.l.t2; +import b.i.a.f.h.l.t8; +import b.i.a.f.h.l.v1; +import b.i.a.f.h.l.y1; +import com.google.android.gms.internal.measurement.zzae; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public class u4 implements t5 { + public static volatile u4 a; + public long A; + public volatile Boolean B; + public Boolean C; + public Boolean D; + public volatile boolean E; + public int F; + public AtomicInteger G = new AtomicInteger(0); + public final long H; + + /* renamed from: b reason: collision with root package name */ + public final Context f1555b; + public final String c; + public final String d; + public final String e; + public final boolean f; + public final ga g; + public final c h; + public final d4 i; + public final q3 j; + public final r4 k; + public final w8 l; + public final t9 m; + public final o3 n; + public final b o; + public final h7 p; + public final c6 q; + public final a r; + + /* renamed from: s reason: collision with root package name */ + public final d7 f1556s; + public m3 t; + public q7 u; + public j v; + public n3 w; + + /* renamed from: x reason: collision with root package name */ + public m4 f1557x; + + /* renamed from: y reason: collision with root package name */ + public boolean f1558y = false; + + /* renamed from: z reason: collision with root package name */ + public Boolean f1559z; + + public u4(y5 y5Var) { + Context context; + Bundle bundle; + boolean z2 = false; + Context context2 = y5Var.a; + ga gaVar = new ga(); + this.g = gaVar; + f.d = gaVar; + this.f1555b = context2; + this.c = y5Var.f1565b; + this.d = y5Var.c; + this.e = y5Var.d; + this.f = y5Var.h; + this.B = y5Var.e; + this.E = true; + zzae zzae = y5Var.g; + if (!(zzae == null || (bundle = zzae.p) == null)) { + Object obj = bundle.get("measurementEnabled"); + if (obj instanceof Boolean) { + this.C = (Boolean) obj; + } + Object obj2 = zzae.p.get("measurementDeactivated"); + if (obj2 instanceof Boolean) { + this.D = (Boolean) obj2; + } + } + synchronized (l2.a) { + t2 t2Var = l2.f1441b; + Context applicationContext = context2.getApplicationContext(); + applicationContext = applicationContext == null ? context2 : applicationContext; + if (t2Var == null || t2Var.a() != applicationContext) { + y1.c(); + s2.b(); + synchronized (c2.class) { + c2 c2Var = c2.a; + if (!(c2Var == null || (context = c2Var.f1422b) == null || c2Var.c == null)) { + context.getContentResolver().unregisterContentObserver(c2.a.c); + } + c2.a = null; + } + l2.f1441b = new v1(applicationContext, f.H1(new k2(applicationContext))); + l2.d.incrementAndGet(); + } + } + this.o = c.a; + Long l = y5Var.i; + this.H = l != null ? l.longValue() : System.currentTimeMillis(); + this.h = new c(this); + d4 d4Var = new d4(this); + d4Var.p(); + this.i = d4Var; + q3 q3Var = new q3(this); + q3Var.p(); + this.j = q3Var; + t9 t9Var = new t9(this); + t9Var.p(); + this.m = t9Var; + o3 o3Var = new o3(this); + o3Var.p(); + this.n = o3Var; + this.r = new a(this); + h7 h7Var = new h7(this); + h7Var.u(); + this.p = h7Var; + c6 c6Var = new c6(this); + c6Var.u(); + this.q = c6Var; + w8 w8Var = new w8(this); + w8Var.u(); + this.l = w8Var; + d7 d7Var = new d7(this); + d7Var.p(); + this.f1556s = d7Var; + r4 r4Var = new r4(this); + r4Var.p(); + this.k = r4Var; + zzae zzae2 = y5Var.g; + if (!(zzae2 == null || zzae2.k == 0)) { + z2 = true; + } + boolean z3 = !z2; + if (context2.getApplicationContext() instanceof Application) { + c6 s2 = s(); + if (s2.a.f1555b.getApplicationContext() instanceof Application) { + Application application = (Application) s2.a.f1555b.getApplicationContext(); + if (s2.c == null) { + s2.c = new y6(s2, null); + } + if (z3) { + application.unregisterActivityLifecycleCallbacks(s2.c); + application.registerActivityLifecycleCallbacks(s2.c); + s2.g().n.a("Registered activity lifecycle callback"); + } + } + } else { + g().i.a("Application context is not an Application"); + } + r4Var.v(new w4(this, y5Var)); + } + + public static u4 b(Context context, zzae zzae, Long l) { + Bundle bundle; + if (zzae != null && (zzae.n == null || zzae.o == null)) { + zzae = new zzae(zzae.j, zzae.k, zzae.l, zzae.m, null, null, zzae.p); + } + Objects.requireNonNull(context, "null reference"); + Objects.requireNonNull(context.getApplicationContext(), "null reference"); + if (a == null) { + synchronized (u4.class) { + if (a == null) { + a = new u4(new y5(context, zzae, l)); + } + } + } else if (!(zzae == null || (bundle = zzae.p) == null || !bundle.containsKey("dataCollectionDefaultEnabled"))) { + a.B = Boolean.valueOf(zzae.p.getBoolean("dataCollectionDefaultEnabled")); + } + return a; + } + + public static void c(s5 s5Var) { + if (s5Var == null) { + throw new IllegalStateException("Component not created"); + } + } + + public static void p(a5 a5Var) { + if (a5Var == null) { + throw new IllegalStateException("Component not created"); + } else if (!a5Var.f1503b) { + String valueOf = String.valueOf(a5Var.getClass()); + throw new IllegalStateException(a.i(valueOf.length() + 27, "Component not initialized: ", valueOf)); + } + } + + public static void q(r5 r5Var) { + if (r5Var == null) { + throw new IllegalStateException("Component not created"); + } else if (!r5Var.n()) { + String valueOf = String.valueOf(r5Var.getClass()); + throw new IllegalStateException(a.i(valueOf.length() + 27, "Component not initialized: ", valueOf)); + } + } + + public final a A() { + a aVar = this.r; + if (aVar != null) { + return aVar; + } + throw new IllegalStateException("Component not created"); + } + + @WorkerThread + public final boolean B() { + return this.B != null && this.B.booleanValue(); + } + + public final c a() { + return this.h; + } + + @WorkerThread + public final boolean d() { + return e() == 0; + } + + @WorkerThread + public final int e() { + f().b(); + if (this.h.x()) { + return 1; + } + Boolean bool = this.D; + if (bool != null && bool.booleanValue()) { + return 2; + } + if (t8.b() && this.h.o(p.H0) && !i()) { + return 8; + } + Boolean x2 = o().x(); + if (x2 != null) { + return x2.booleanValue() ? 0 : 3; + } + Boolean w = this.h.w("firebase_analytics_collection_enabled"); + if (w != null) { + return w.booleanValue() ? 0 : 4; + } + Boolean bool2 = this.C; + if (bool2 != null) { + return bool2.booleanValue() ? 0 : 5; + } + if (h.a("isMeasurementExplicitlyDisabled").e) { + return 6; + } + return (!this.h.o(p.S) || this.B == null || this.B.booleanValue()) ? 0 : 7; + } + + @Override // b.i.a.f.i.b.t5 + public final r4 f() { + q(this.k); + return this.k; + } + + @Override // b.i.a.f.i.b.t5 + public final q3 g() { + q(this.j); + return this.j; + } + + @Override // b.i.a.f.i.b.t5 + public final b h() { + return this.o; + } + + @WorkerThread + public final boolean i() { + f().b(); + return this.E; + } + + @Override // b.i.a.f.i.b.t5 + public final Context j() { + return this.f1555b; + } + + @Override // b.i.a.f.i.b.t5 + public final ga k() { + return this.g; + } + + public final void l() { + throw new IllegalStateException("Unexpected call on client side"); + } + + /* JADX WARNING: Code restructure failed: missing block: B:29:0x00c1, code lost: + if (android.text.TextUtils.isEmpty(r0.l) == false) goto L_0x00c3; + */ + /* JADX WARNING: Code restructure failed: missing block: B:9:0x0033, code lost: + if (java.lang.Math.abs(android.os.SystemClock.elapsedRealtime() - r6.A) > 1000) goto L_0x0035; + */ + @WorkerThread + public final boolean m() { + if (this.f1558y) { + f().b(); + Boolean bool = this.f1559z; + if (!(bool == null || this.A == 0)) { + if (!bool.booleanValue()) { + Objects.requireNonNull((c) this.o); + } + return this.f1559z.booleanValue(); + } + Objects.requireNonNull((c) this.o); + this.A = SystemClock.elapsedRealtime(); + boolean z2 = false; + Boolean valueOf = Boolean.valueOf(t().p0("android.permission.INTERNET") && t().p0("android.permission.ACCESS_NETWORK_STATE") && (b.i.a.f.e.p.b.a(this.f1555b).c() || this.h.C() || (n4.a(this.f1555b) && t9.U(this.f1555b)))); + this.f1559z = valueOf; + if (valueOf.booleanValue()) { + t9 t = t(); + n3 z3 = z(); + z3.t(); + String str = z3.k; + n3 z4 = z(); + z4.t(); + String str2 = z4.l; + n3 z5 = z(); + z5.t(); + if (!t.c0(str, str2, z5.m)) { + n3 z6 = z(); + z6.t(); + } + z2 = true; + this.f1559z = Boolean.valueOf(z2); + } + return this.f1559z.booleanValue(); + } + throw new IllegalStateException("AppMeasurement is not initialized"); + } + + public final d7 n() { + q(this.f1556s); + return this.f1556s; + } + + public final d4 o() { + c(this.i); + return this.i; + } + + public final w8 r() { + p(this.l); + return this.l; + } + + public final c6 s() { + p(this.q); + return this.q; + } + + public final t9 t() { + c(this.m); + return this.m; + } + + public final o3 u() { + c(this.n); + return this.n; + } + + public final boolean v() { + return TextUtils.isEmpty(this.c); + } + + public final h7 w() { + p(this.p); + return this.p; + } + + public final q7 x() { + p(this.u); + return this.u; + } + + public final j y() { + q(this.v); + return this.v; + } + + public final n3 z() { + p(this.w); + return this.w; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/u5.java b/app/src/main/java/b/i/a/f/i/b/u5.java new file mode 100644 index 0000000000..ec475dea29 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u5.java @@ -0,0 +1,12 @@ +package b.i.a.f.i.b; + +import com.discord.models.domain.ModelAuditLogEntry; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class u5 { + public static final String[] a = {"ga_conversion", "engagement_time_msec", "exposure_time", "ad_event_id", "ad_unit_id", "ga_error", "ga_error_value", "ga_error_length", "ga_event_origin", "ga_screen", "ga_screen_class", "ga_screen_id", "ga_previous_screen", "ga_previous_class", "ga_previous_id", "manual_tracking", "message_device_time", "message_id", "message_name", "message_time", "message_tracking_id", "message_type", "previous_app_version", "previous_os_version", ModelAuditLogEntry.CHANGE_KEY_TOPIC, "update_with_analytics", "previous_first_open_count", "system_app", "system_app_update", "previous_install_count", "ga_event_id", "ga_extra_params_ct", "ga_group_name", "ga_list_length", "ga_index", "ga_event_name", "campaign_info_source", "cached_campaign", "deferred_analytics_collection", "ga_session_number", "ga_session_id", "campaign_extra_referrer", "app_in_background", "firebase_feature_rollouts", "firebase_conversion", "firebase_error", "firebase_error_value", "firebase_error_length", "firebase_event_origin", "firebase_screen", "firebase_screen_class", "firebase_screen_id", "firebase_previous_screen", "firebase_previous_class", "firebase_previous_id", "session_number", "session_id"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f1560b = {"_c", "_et", "_xt", "_aeid", "_ai", "_err", "_ev", "_el", "_o", "_sn", "_sc", "_si", "_pn", "_pc", "_pi", "_mst", "_ndt", "_nmid", "_nmn", "_nmt", "_nmtid", "_nmc", "_pv", "_po", "_nt", "_uwa", "_pfo", "_sys", "_sysu", "_pin", "_eid", "_epc", "_gn", "_ll", "_i", "_en", "_cis", "_cc", "_dac", "_sno", "_sid", "_cer", "_aib", "_ffr", "_c", "_err", "_ev", "_el", "_o", "_sn", "_sc", "_si", "_pn", "_pc", "_pi", "_sno", "_sid"}; + public static final String[] c = {"items"}; + public static final String[] d = {"affiliation", "coupon", "creative_name", "creative_slot", "currency", "discount", "index", "item_id", "item_brand", "item_category", "item_category2", "item_category3", "item_category4", "item_category5", "item_list_name", "item_list_id", "item_name", "item_variant", "location_id", "payment_type", "price", "promotion_id", "promotion_name", "quantity", "shipping", "shipping_tier", "tax", "transaction_id", "value", "item_list", "checkout_step", "checkout_option", "item_location_id"}; +} diff --git a/app/src/main/java/b/i/a/f/i/b/u6.java b/app/src/main/java/b/i/a/f/i/b/u6.java new file mode 100644 index 0000000000..1e0aba7590 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u6.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class u6 implements Runnable { + public final /* synthetic */ Boolean j; + public final /* synthetic */ c6 k; + + public u6(c6 c6Var, Boolean bool) { + this.k = c6Var; + this.j = bool; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.D(this.j, true); + } +} diff --git a/app/src/main/java/c/i/a/f/i/b/u7.java b/app/src/main/java/b/i/a/f/i/b/u7.java similarity index 95% rename from app/src/main/java/c/i/a/f/i/b/u7.java rename to app/src/main/java/b/i/a/f/i/b/u7.java index da93d1ae29..66fd4011dd 100644 --- a/app/src/main/java/c/i/a/f/i/b/u7.java +++ b/app/src/main/java/b/i/a/f/i/b/u7.java @@ -1,8 +1,8 @@ -package c.i.a.f.i.b; +package b.i.a.f.i.b; import android.os.RemoteException; -import c.i.a.f.h.l.fc; -import c.i.a.f.h.l.t8; +import b.i.a.f.h.l.fc; +import b.i.a.f.h.l.t8; import com.google.android.gms.measurement.internal.zzn; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class u7 implements Runnable { diff --git a/app/src/main/java/b/i/a/f/i/b/u8.java b/app/src/main/java/b/i/a/f/i/b/u8.java new file mode 100644 index 0000000000..008971c0b4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u8.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; + +import java.util.ArrayList; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class u8 implements Runnable { + public final /* synthetic */ k9 j; + public final /* synthetic */ Runnable k; + + public u8(k9 k9Var, Runnable runnable) { + this.j = k9Var; + this.k = runnable; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.R(); + k9 k9Var = this.j; + Runnable runnable = this.k; + k9Var.U(); + if (k9Var.o == null) { + k9Var.o = new ArrayList(); + } + k9Var.o.add(runnable); + this.j.Q(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/u9.java b/app/src/main/java/b/i/a/f/i/b/u9.java new file mode 100644 index 0000000000..ec3a679aad --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/u9.java @@ -0,0 +1,25 @@ +package b.i.a.f.i.b; + +import b.c.a.a0.d; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class u9 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1561b; + public final String c; + public final long d; + public final Object e; + + public u9(String str, String str2, String str3, long j, Object obj) { + d.w(str); + d.w(str3); + Objects.requireNonNull(obj, "null reference"); + this.a = str; + this.f1561b = str2; + this.c = str3; + this.d = j; + this.e = obj; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v.java b/app/src/main/java/b/i/a/f/i/b/v.java new file mode 100644 index 0000000000..1d7a4215a5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class v implements h3 { + public static final h3 a = new v(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).H()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v0.java b/app/src/main/java/b/i/a/f/i/b/v0.java new file mode 100644 index 0000000000..cbebc9fa8f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.wa; +import b.i.a.f.h.l.za; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class v0 implements h3 { + public static final h3 a = new v0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Long.valueOf(((za) wa.j.a()).d()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v1.java b/app/src/main/java/b/i/a/f/i/b/v1.java new file mode 100644 index 0000000000..f512a61632 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ka; +import b.i.a.f.h.l.na; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class v1 implements h3 { + public static final h3 a = new v1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((na) ka.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v2.java b/app/src/main/java/b/i/a/f/i/b/v2.java new file mode 100644 index 0000000000..7462a995b9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class v2 implements h3 { + public static final h3 a = new v2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).x()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v3.java b/app/src/main/java/b/i/a/f/i/b/v3.java new file mode 100644 index 0000000000..b475cb0025 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v3.java @@ -0,0 +1,11 @@ +package b.i.a.f.i.b; + +import androidx.annotation.NonNull; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class v3 { + public final String a; + + public v3(@NonNull String str) { + this.a = str; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v4.java b/app/src/main/java/b/i/a/f/i/b/v4.java new file mode 100644 index 0000000000..593c832a6a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v4.java @@ -0,0 +1,88 @@ +package b.i.a.f.i.b; + +import android.os.Process; +import androidx.annotation.GuardedBy; +import java.util.Objects; +import java.util.concurrent.BlockingQueue; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class v4 extends Thread { + public final Object j; + public final BlockingQueue> k; + @GuardedBy("threadLifeCycleLock") + public boolean l = false; + public final /* synthetic */ r4 m; + + public v4(r4 r4Var, String str, BlockingQueue> blockingQueue) { + this.m = r4Var; + Objects.requireNonNull(blockingQueue, "null reference"); + this.j = new Object(); + this.k = blockingQueue; + setName(str); + } + + public final void a(InterruptedException interruptedException) { + this.m.g().i.b(String.valueOf(getName()).concat(" was interrupted"), interruptedException); + } + + public final void b() { + synchronized (this.m.j) { + if (!this.l) { + this.m.k.release(); + this.m.j.notifyAll(); + r4 r4Var = this.m; + if (this == r4Var.d) { + r4Var.d = null; + } else if (this == r4Var.e) { + r4Var.e = null; + } else { + r4Var.g().f.a("Current scheduler thread is neither worker nor network"); + } + this.l = true; + } + } + } + + @Override // java.lang.Thread, java.lang.Runnable + public final void run() { + boolean z2 = false; + while (!z2) { + try { + this.m.k.acquire(); + z2 = true; + } catch (InterruptedException e) { + a(e); + } + } + try { + int threadPriority = Process.getThreadPriority(Process.myTid()); + while (true) { + s4 poll = this.k.poll(); + if (poll != null) { + Process.setThreadPriority(poll.k ? threadPriority : 10); + poll.run(); + } else { + synchronized (this.j) { + if (this.k.peek() == null) { + Objects.requireNonNull(this.m); + try { + this.j.wait(30000); + } catch (InterruptedException e2) { + a(e2); + } + } + } + synchronized (this.m.j) { + if (this.k.peek() == null) { + if (this.m.a.h.o(p.r0)) { + } + b(); + return; + } + } + } + } + } finally { + b(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v5.java b/app/src/main/java/b/i/a/f/i/b/v5.java new file mode 100644 index 0000000000..955bea39dd --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v5.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; + +import b.i.a.f.e.o.f; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class v5 { + public static final String[] a = {"ad_activeview", "ad_click", "ad_exposure", "ad_query", "ad_reward", "adunit_exposure", "app_background", "app_clear_data", "app_exception", "app_remove", "app_store_refund", "app_store_subscription_cancel", "app_store_subscription_convert", "app_store_subscription_renew", "app_upgrade", "app_update", "dynamic_link_app_open", "dynamic_link_app_update", "dynamic_link_first_open", "ga_campaign", "error", "first_open", "first_visit", "in_app_purchase", "notification_dismiss", "notification_foreground", "notification_open", "notification_receive", "os_update", "session_start", "session_start_with_rollout", "user_engagement", "ad_impression", "screen_view", "ga_extra_parameter", "firebase_campaign"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f1562b = {"ad_impression"}; + public static final String[] c = {"_aa", "_ac", "_xa", "_aq", "_ar", "_xu", "_ab", "_cd", "_ae", "_ui", "app_store_refund", "app_store_subscription_cancel", "app_store_subscription_convert", "app_store_subscription_renew", "_ug", "_au", "dynamic_link_app_open", "dynamic_link_app_update", "dynamic_link_first_open", "_cmp", "_err", "_f", "_v", "_iap", "_nd", "_nf", "_no", "_nr", "_ou", "_s", "_ssr", "_e", "_ai", "_vs", "_ep", "_cmp"}; + public static final String[] d = {"purchase", "refund", "add_payment_info", "add_shipping_info", "add_to_cart", "add_to_wishlist", "begin_checkout", "remove_from_cart", "select_item", "select_promotion", "view_cart", "view_item", "view_item_list", "view_promotion", "ecommerce_purchase", "purchase_refund", "set_checkout_option", "checkout_progress", "select_content", "view_search_results"}; + + public static String a(String str) { + return f.P1(str, c, a); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v6.java b/app/src/main/java/b/i/a/f/i/b/v6.java new file mode 100644 index 0000000000..4865d09adc --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v6.java @@ -0,0 +1,31 @@ +package b.i.a.f.i.b; + +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class v6 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ c6 k; + + public v6(c6 c6Var, AtomicReference atomicReference) { + this.k = c6Var; + this.j = atomicReference; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j) { + try { + AtomicReference atomicReference = this.j; + c6 c6Var = this.k; + c cVar = c6Var.a.h; + n3 o = c6Var.o(); + o.t(); + atomicReference.set(Double.valueOf(cVar.r(o.c, p.O))); + this.j.notify(); + } catch (Throwable th) { + this.j.notify(); + throw th; + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v7.java b/app/src/main/java/b/i/a/f/i/b/v7.java new file mode 100644 index 0000000000..285f31ff98 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v7.java @@ -0,0 +1,52 @@ +package b.i.a.f.i.b; + +import android.os.RemoteException; +import b.i.a.f.h.l.t8; +import com.google.android.gms.measurement.internal.zzn; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class v7 implements Runnable { + public final /* synthetic */ AtomicReference j; + public final /* synthetic */ zzn k; + public final /* synthetic */ q7 l; + + public v7(q7 q7Var, AtomicReference atomicReference, zzn zzn) { + this.l = q7Var; + this.j = atomicReference; + this.k = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j) { + try { + if (!t8.b() || !this.l.a.h.o(p.H0) || this.l.l().y().k()) { + q7 q7Var = this.l; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Failed to get app instance id"); + this.j.notify(); + return; + } + this.j.set(i3Var.A(this.k)); + String str = (String) this.j.get(); + if (str != null) { + this.l.n().g.set(str); + this.l.l().m.b(str); + } + this.l.F(); + this.j.notify(); + return; + } + this.l.g().k.a("Analytics storage consent denied; will not get app instance id"); + this.l.n().g.set(null); + this.l.l().m.b(null); + this.j.set(null); + } catch (RemoteException e) { + this.l.g().f.b("Failed to get app instance id", e); + } finally { + this.j.notify(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v8.java b/app/src/main/java/b/i/a/f/i/b/v8.java new file mode 100644 index 0000000000..53db9ea7a4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v8.java @@ -0,0 +1,51 @@ +package b.i.a.f.i.b; + +import b.i.a.f.e.o.c; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class v8 implements Runnable { + public final /* synthetic */ long j; + public final /* synthetic */ w8 k; + + public v8(w8 w8Var, long j) { + this.k = w8Var; + this.j = j; + } + + @Override // java.lang.Runnable + public final void run() { + w8 w8Var = this.k; + long j = this.j; + w8Var.b(); + w8Var.x(); + w8Var.g().n.b("Activity resumed, time", Long.valueOf(j)); + if (w8Var.a.h.o(p.v0)) { + if (w8Var.a.h.z().booleanValue() || w8Var.l().f1510x.b()) { + d9 d9Var = w8Var.e; + d9Var.d.b(); + d9Var.c.c(); + d9Var.a = j; + d9Var.f1513b = j; + } + w8Var.f.a(); + } else { + w8Var.f.a(); + if (w8Var.a.h.z().booleanValue()) { + d9 d9Var2 = w8Var.e; + d9Var2.d.b(); + d9Var2.c.c(); + d9Var2.a = j; + d9Var2.f1513b = j; + } + } + f9 f9Var = w8Var.d; + f9Var.a.b(); + if (f9Var.a.a.d()) { + if (!f9Var.a.a.h.o(p.v0)) { + f9Var.a.l().f1510x.a(false); + } + Objects.requireNonNull((c) f9Var.a.a.o); + f9Var.b(System.currentTimeMillis(), false); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/v9.java b/app/src/main/java/b/i/a/f/i/b/v9.java new file mode 100644 index 0000000000..67712950e0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/v9.java @@ -0,0 +1,7 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public interface v9 { + void a(String str, Bundle bundle); +} diff --git a/app/src/main/java/b/i/a/f/i/b/w.java b/app/src/main/java/b/i/a/f/i/b/w.java new file mode 100644 index 0000000000..c31df05a67 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class w implements h3 { + public static final h3 a = new w(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).B()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/w0.java b/app/src/main/java/b/i/a/f/i/b/w0.java new file mode 100644 index 0000000000..fb332d50c1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class w0 implements h3 { + public static final h3 a = new w0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).m()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/w1.java b/app/src/main/java/b/i/a/f/i/b/w1.java new file mode 100644 index 0000000000..b9a00a4f07 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ob; +import b.i.a.f.h.l.rb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class w1 implements h3 { + public static final h3 a = new w1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((rb) ob.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/w2.java b/app/src/main/java/b/i/a/f/i/b/w2.java new file mode 100644 index 0000000000..effd84bf09 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.s8; +import b.i.a.f.h.l.t8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class w2 implements h3 { + public static final h3 a = new w2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((s8) t8.j.a()).c()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/w4.java b/app/src/main/java/b/i/a/f/i/b/w4.java new file mode 100644 index 0000000000..b7074a1405 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w4.java @@ -0,0 +1,258 @@ +package b.i.a.f.i.b; + +import android.content.SharedPreferences; +import android.os.Bundle; +import android.text.TextUtils; +import b.i.a.f.e.o.c; +import b.i.a.f.e.p.b; +import b.i.a.f.h.l.a9; +import b.i.a.f.h.l.ea; +import b.i.a.f.h.l.t8; +import com.google.android.gms.internal.measurement.zzae; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class w4 implements Runnable { + public final /* synthetic */ y5 j; + public final /* synthetic */ u4 k; + + public w4(u4 u4Var, y5 y5Var) { + this.k = u4Var; + this.j = y5Var; + } + + /* JADX WARNING: Code restructure failed: missing block: B:103:0x0317, code lost: + if (android.text.TextUtils.isEmpty(r1.l) == false) goto L_0x0319; + */ + /* JADX WARNING: Code restructure failed: missing block: B:134:0x0485, code lost: + if (android.text.TextUtils.isEmpty(r1.l) == false) goto L_0x0487; + */ + /* JADX WARNING: Code restructure failed: missing block: B:52:0x01bd, code lost: + if (r1.equals(b.i.a.f.i.b.d.a) == false) goto L_0x01c2; + */ + @Override // java.lang.Runnable + public final void run() { + d dVar; + String str; + s3 s3Var; + u4 u4Var = this.k; + y5 y5Var = this.j; + u4Var.f().b(); + j jVar = new j(u4Var); + jVar.p(); + u4Var.v = jVar; + n3 n3Var = new n3(u4Var, y5Var.f); + n3Var.u(); + u4Var.w = n3Var; + m3 m3Var = new m3(u4Var); + m3Var.u(); + u4Var.t = m3Var; + q7 q7Var = new q7(u4Var); + q7Var.u(); + u4Var.u = q7Var; + u4Var.m.q(); + u4Var.i.q(); + u4Var.f1557x = new m4(u4Var); + n3 n3Var2 = u4Var.w; + if (!n3Var2.f1503b) { + n3Var2.w(); + n3Var2.a.G.incrementAndGet(); + boolean z2 = true; + n3Var2.f1503b = true; + u4Var.g().l.b("App measurement initialized, version", 33025L); + u4Var.g().l.a("To enable debug logging run: adb shell setprop log.tag.FA VERBOSE"); + n3Var.t(); + String str2 = n3Var.c; + if (TextUtils.isEmpty(u4Var.c)) { + if (u4Var.t().s0(str2)) { + s3Var = u4Var.g().l; + str = "Faster debug mode event logging enabled. To disable, run:\n adb shell setprop debug.firebase.analytics.app .none."; + } else { + s3 s3Var2 = u4Var.g().l; + String valueOf = String.valueOf(str2); + str = valueOf.length() != 0 ? "To enable faster debug mode event logging run:\n adb shell setprop debug.firebase.analytics.app ".concat(valueOf) : new String("To enable faster debug mode event logging run:\n adb shell setprop debug.firebase.analytics.app "); + s3Var = s3Var2; + } + s3Var.a(str); + } + u4Var.g().m.a("Debug-level message logging enabled"); + if (u4Var.F != u4Var.G.get()) { + u4Var.g().f.c("Not all components initialized", Integer.valueOf(u4Var.F), Integer.valueOf(u4Var.G.get())); + } + u4Var.f1558y = true; + u4 u4Var2 = this.k; + zzae zzae = this.j.g; + u4Var2.f().b(); + if (t8.b() && u4Var2.h.o(p.H0)) { + d y2 = u4Var2.o().y(); + d4 o = u4Var2.o(); + o.b(); + int i = o.w().getInt("consent_source", 100); + int i2 = 40; + if (u4Var2.h.o(p.I0)) { + c cVar = u4Var2.h; + Objects.requireNonNull(cVar); + Boolean w = (!t8.b() || !cVar.o(p.I0)) ? null : cVar.w("google_analytics_default_allow_ad_storage"); + c cVar2 = u4Var2.h; + Objects.requireNonNull(cVar2); + Boolean w2 = (!t8.b() || !cVar2.o(p.I0)) ? null : cVar2.w("google_analytics_default_allow_analytics_storage"); + if (!(w == null && w2 == null) && u4Var2.o().t(20)) { + dVar = new d(w, w2); + i2 = 20; + } else { + n3 z3 = u4Var2.z(); + z3.t(); + if (!TextUtils.isEmpty(z3.k) && (i == 30 || i == 40)) { + u4Var2.s().A(d.a, 20, u4Var2.H); + } else if (!(zzae == null || zzae.p == null || !u4Var2.o().t(40))) { + dVar = d.g(zzae.p); + } + dVar = null; + i2 = 0; + } + if (dVar != null) { + u4Var2.s().A(dVar, i2, u4Var2.H); + } + u4Var2.s().z(y2); + } else { + if (!(zzae == null || zzae.p == null || !u4Var2.o().t(40))) { + dVar = d.g(zzae.p); + if (!dVar.equals(d.a)) { + u4Var2.s().A(dVar, 40, u4Var2.H); + } + } + u4Var2.s().z(y2); + } + y2 = dVar; + u4Var2.s().z(y2); + } + if (u4Var2.o().f.a() == 0) { + h4 h4Var = u4Var2.o().f; + Objects.requireNonNull((c) u4Var2.o); + h4Var.b(System.currentTimeMillis()); + } + if (Long.valueOf(u4Var2.o().k.a()).longValue() == 0) { + u4Var2.g().n.b("Persisting first open", Long.valueOf(u4Var2.H)); + u4Var2.o().k.b(u4Var2.H); + } + if (u4Var2.h.o(p.D0)) { + y9 y9Var = u4Var2.s().n; + if (y9Var.c() && y9Var.b()) { + y9Var.a.o().B.b(null); + } + } + if (u4Var2.m()) { + n3 z4 = u4Var2.z(); + z4.t(); + if (TextUtils.isEmpty(z4.k)) { + n3 z5 = u4Var2.z(); + z5.t(); + } + u4Var2.t(); + n3 z6 = u4Var2.z(); + z6.t(); + String str3 = z6.k; + d4 o2 = u4Var2.o(); + o2.b(); + String string = o2.w().getString("gmp_app_id", null); + n3 z7 = u4Var2.z(); + z7.t(); + String str4 = z7.l; + d4 o3 = u4Var2.o(); + o3.b(); + if (t9.d0(str3, string, str4, o3.w().getString("admob_app_id", null))) { + u4Var2.g().l.a("Rechecking which service to use due to a GMP App Id change"); + d4 o4 = u4Var2.o(); + o4.b(); + Boolean x2 = o4.x(); + SharedPreferences.Editor edit = o4.w().edit(); + edit.clear(); + edit.apply(); + if (x2 != null) { + o4.s(x2); + } + u4.p(u4Var2.t); + u4Var2.t.y(); + u4Var2.u.D(); + u4Var2.u.C(); + u4Var2.o().k.b(u4Var2.H); + u4Var2.o().m.b(null); + } + d4 o5 = u4Var2.o(); + n3 z8 = u4Var2.z(); + z8.t(); + String str5 = z8.k; + o5.b(); + SharedPreferences.Editor edit2 = o5.w().edit(); + edit2.putString("gmp_app_id", str5); + edit2.apply(); + d4 o6 = u4Var2.o(); + n3 z9 = u4Var2.z(); + z9.t(); + String str6 = z9.l; + o6.b(); + SharedPreferences.Editor edit3 = o6.w().edit(); + edit3.putString("admob_app_id", str6); + edit3.apply(); + if (t8.b() && u4Var2.h.o(p.H0) && !u4Var2.o().y().k()) { + u4Var2.o().m.b(null); + } + u4Var2.s().g.set(u4Var2.o().m.a()); + if (a9.b() && u4Var2.h.o(p.p0)) { + t9 t = u4Var2.t(); + Objects.requireNonNull(t); + try { + t.a.f1555b.getClassLoader().loadClass("com.google.firebase.remoteconfig.FirebaseRemoteConfig"); + } catch (ClassNotFoundException unused) { + z2 = false; + } + if (!z2 && !TextUtils.isEmpty(u4Var2.o().A.a())) { + u4Var2.g().i.a("Remote config removed with active feature rollouts"); + u4Var2.o().A.b(null); + } + } + n3 z10 = u4Var2.z(); + z10.t(); + if (TextUtils.isEmpty(z10.k)) { + n3 z11 = u4Var2.z(); + z11.t(); + } + boolean d = u4Var2.d(); + if (!u4Var2.o().d.contains("deferred_analytics_collection") && !u4Var2.h.x()) { + u4Var2.o().v(!d); + } + if (d) { + u4Var2.s().N(); + } + u4Var2.r().d.a(); + u4Var2.x().A(new AtomicReference<>()); + if (ea.b() && u4Var2.h.o(p.z0)) { + q7 x3 = u4Var2.x(); + Bundle a = u4Var2.o().D.a(); + x3.b(); + x3.t(); + x3.z(new a8(x3, a, x3.I(false))); + } + } else if (u4Var2.d()) { + if (!u4Var2.t().p0("android.permission.INTERNET")) { + u4Var2.g().f.a("App is missing INTERNET permission"); + } + if (!u4Var2.t().p0("android.permission.ACCESS_NETWORK_STATE")) { + u4Var2.g().f.a("App is missing ACCESS_NETWORK_STATE permission"); + } + if (!b.a(u4Var2.f1555b).c() && !u4Var2.h.C()) { + if (!n4.a(u4Var2.f1555b)) { + u4Var2.g().f.a("AppMeasurementReceiver not registered/enabled"); + } + if (!t9.U(u4Var2.f1555b)) { + u4Var2.g().f.a("AppMeasurementService not registered/enabled"); + } + } + u4Var2.g().f.a("Uploading is not possible. App measurement disabled"); + } + u4Var2.o().u.a(u4Var2.h.o(p.Y)); + return; + } + throw new IllegalStateException("Can't initialize twice"); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/w5.java b/app/src/main/java/b/i/a/f/i/b/w5.java new file mode 100644 index 0000000000..e4b8f25e6a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w5.java @@ -0,0 +1,4 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface w5 { +} diff --git a/app/src/main/java/b/i/a/f/i/b/w6.java b/app/src/main/java/b/i/a/f/i/b/w6.java new file mode 100644 index 0000000000..12dac9452f --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w6.java @@ -0,0 +1,23 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class w6 implements Runnable { + public final /* synthetic */ d j; + public final /* synthetic */ int k; + public final /* synthetic */ long l; + public final /* synthetic */ boolean m; + public final /* synthetic */ c6 n; + + public w6(c6 c6Var, d dVar, int i, long j, boolean z2) { + this.n = c6Var; + this.j = dVar; + this.k = i; + this.l = j; + this.m = z2; + } + + @Override // java.lang.Runnable + public final void run() { + this.n.z(this.j); + c6.C(this.n, this.j, this.k, this.l, false, this.m); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/w7.java b/app/src/main/java/b/i/a/f/i/b/w7.java new file mode 100644 index 0000000000..e2b2103984 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w7.java @@ -0,0 +1,34 @@ +package b.i.a.f.i.b; + +import android.os.RemoteException; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class w7 implements Runnable { + public final /* synthetic */ i7 j; + public final /* synthetic */ q7 k; + + public w7(q7 q7Var, i7 i7Var) { + this.k = q7Var; + this.j = i7Var; + } + + @Override // java.lang.Runnable + public final void run() { + q7 q7Var = this.k; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Failed to send current screen to service"); + return; + } + try { + i7 i7Var = this.j; + if (i7Var == null) { + i3Var.H(0, null, null, q7Var.a.f1555b.getPackageName()); + } else { + i3Var.H(i7Var.c, i7Var.a, i7Var.f1522b, q7Var.a.f1555b.getPackageName()); + } + this.k.F(); + } catch (RemoteException e) { + this.k.g().f.b("Failed to send current screen to the service", e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/w8.java b/app/src/main/java/b/i/a/f/i/b/w8.java new file mode 100644 index 0000000000..372050f407 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w8.java @@ -0,0 +1,34 @@ +package b.i.a.f.i.b; + +import android.os.Handler; +import android.os.Looper; +import androidx.annotation.WorkerThread; +import b.i.a.f.h.l.bc; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class w8 extends a5 { + public Handler c; + public final f9 d = new f9(this); + public final d9 e = new d9(this); + public final x8 f = new x8(this); + + public w8(u4 u4Var) { + super(u4Var); + } + + @Override // b.i.a.f.i.b.a5 + public final boolean v() { + return false; + } + + public final boolean w(boolean z2, boolean z3, long j) { + return this.e.a(z2, z3, j); + } + + @WorkerThread + public final void x() { + b(); + if (this.c == null) { + this.c = new bc(Looper.getMainLooper()); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/w9.java b/app/src/main/java/b/i/a/f/i/b/w9.java new file mode 100644 index 0000000000..9b99bfd5c1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/w9.java @@ -0,0 +1,18 @@ +package b.i.a.f.i.b; + +import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService; +/* compiled from: com.google.android.gms:play-services-measurement-sdk@@18.0.0 */ +public final class w9 implements Runnable { + public final /* synthetic */ AppMeasurementDynamiteService.a j; + public final /* synthetic */ AppMeasurementDynamiteService k; + + public w9(AppMeasurementDynamiteService appMeasurementDynamiteService, AppMeasurementDynamiteService.a aVar) { + this.k = appMeasurementDynamiteService; + this.j = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.a.s().B(this.j); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x.java b/app/src/main/java/b/i/a/f/i/b/x.java new file mode 100644 index 0000000000..a1b0231b49 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x.java @@ -0,0 +1,53 @@ +package b.i.a.f.i.b; + +import b.c.a.a0.d; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class x implements Runnable { + public final /* synthetic */ String j; + public final /* synthetic */ long k; + public final /* synthetic */ a l; + + public x(a aVar, String str, long j) { + this.l = aVar; + this.j = str; + this.k = j; + } + + @Override // java.lang.Runnable + public final void run() { + a aVar = this.l; + String str = this.j; + long j = this.k; + aVar.b(); + d.w(str); + Integer num = aVar.c.get(str); + if (num != null) { + i7 w = aVar.q().w(false); + int intValue = num.intValue() - 1; + if (intValue == 0) { + aVar.c.remove(str); + Long l = aVar.f1497b.get(str); + if (l == null) { + aVar.g().f.a("First ad unit exposure time was never set"); + } else { + aVar.f1497b.remove(str); + aVar.w(str, j - l.longValue(), w); + } + if (aVar.c.isEmpty()) { + long j2 = aVar.d; + if (j2 == 0) { + aVar.g().f.a("First ad exposure time was never set"); + return; + } + aVar.u(j - j2, w); + aVar.d = 0; + return; + } + return; + } + aVar.c.put(str, Integer.valueOf(intValue)); + return; + } + aVar.g().f.b("Call to endAdUnitExposure for unknown ad unit id", str); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x0.java b/app/src/main/java/b/i/a/f/i/b/x0.java new file mode 100644 index 0000000000..4633e0f5db --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.wa; +import b.i.a.f.h.l.za; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class x0 implements h3 { + public static final h3 a = new x0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Double.valueOf(((za) wa.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x1.java b/app/src/main/java/b/i/a/f/i/b/x1.java new file mode 100644 index 0000000000..b461ebab6d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ub; +import b.i.a.f.h.l.xb; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class x1 implements h3 { + public static final h3 a = new x1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((xb) ub.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x2.java b/app/src/main/java/b/i/a/f/i/b/x2.java new file mode 100644 index 0000000000..2200d83daa --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.s8; +import b.i.a.f.h.l.t8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class x2 implements h3 { + public static final h3 a = new x2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((s8) t8.j.a()).b()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x3.java b/app/src/main/java/b/i/a/f/i/b/x3.java new file mode 100644 index 0000000000..3bb9c1522a --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x3.java @@ -0,0 +1,71 @@ +package b.i.a.f.i.b; + +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import androidx.annotation.WorkerThread; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.HttpURLConnection; +import java.net.URL; +import java.net.URLConnection; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class x3 extends i9 { + public x3(k9 k9Var) { + super(k9Var); + } + + public static byte[] t(HttpURLConnection httpURLConnection) throws IOException { + InputStream inputStream = null; + try { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + InputStream inputStream2 = httpURLConnection.getInputStream(); + byte[] bArr = new byte[1024]; + while (true) { + int read = inputStream2.read(bArr); + if (read > 0) { + byteArrayOutputStream.write(bArr, 0, read); + } else { + byte[] byteArray = byteArrayOutputStream.toByteArray(); + inputStream2.close(); + return byteArray; + } + } + } catch (Throwable th) { + if (0 != 0) { + inputStream.close(); + } + throw th; + } + } + + @Override // b.i.a.f.i.b.i9 + public final boolean p() { + return false; + } + + @WorkerThread + public final HttpURLConnection s(URL url) throws IOException { + URLConnection openConnection = url.openConnection(); + if (openConnection instanceof HttpURLConnection) { + HttpURLConnection httpURLConnection = (HttpURLConnection) openConnection; + httpURLConnection.setDefaultUseCaches(false); + httpURLConnection.setConnectTimeout(60000); + httpURLConnection.setReadTimeout(61000); + httpURLConnection.setInstanceFollowRedirects(false); + httpURLConnection.setDoInput(true); + return httpURLConnection; + } + throw new IOException("Failed to obtain HTTP connection"); + } + + public final boolean u() { + n(); + NetworkInfo networkInfo = null; + try { + networkInfo = ((ConnectivityManager) this.a.f1555b.getSystemService("connectivity")).getActiveNetworkInfo(); + } catch (SecurityException unused) { + } + return networkInfo != null && networkInfo.isConnected(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x4.java b/app/src/main/java/b/i/a/f/i/b/x4.java new file mode 100644 index 0000000000..9136e66794 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x4.java @@ -0,0 +1,9 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class x4 { + public final u4 a; + + public x4(u4 u4Var) { + this.a = u4Var; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x5.java b/app/src/main/java/b/i/a/f/i/b/x5.java new file mode 100644 index 0000000000..1316372c99 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x5.java @@ -0,0 +1,8 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public final class x5 { + public static final String[] a = {"firebase_last_notification", "first_open_time", "first_visit_time", "last_deep_link_referrer", "user_id", "first_open_after_install", "lifetime_user_engagement", "session_user_engagement", "non_personalized_ads", "ga_session_number", "ga_session_id", "last_gclid", "session_number", "session_id"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f1563b = {"_ln", "_fot", "_fvt", "_ldl", "_id", "_fi", "_lte", "_se", "_npa", "_sno", "_sid", "_lgclid", "_sno", "_sid"}; +} diff --git a/app/src/main/java/b/i/a/f/i/b/x6.java b/app/src/main/java/b/i/a/f/i/b/x6.java new file mode 100644 index 0000000000..6b50cf2e9e --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x6.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class x6 implements Runnable { + public final /* synthetic */ d j; + public final /* synthetic */ long k; + public final /* synthetic */ int l; + public final /* synthetic */ long m; + public final /* synthetic */ boolean n; + public final /* synthetic */ c6 o; + + public x6(c6 c6Var, d dVar, long j, int i, long j2, boolean z2) { + this.o = c6Var; + this.j = dVar; + this.k = j; + this.l = i; + this.m = j2; + this.n = z2; + } + + @Override // java.lang.Runnable + public final void run() { + this.o.z(this.j); + this.o.w(this.k, false); + c6.C(this.o, this.j, this.l, this.m, true, this.n); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x7.java b/app/src/main/java/b/i/a/f/i/b/x7.java new file mode 100644 index 0000000000..64a0721d72 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x7.java @@ -0,0 +1,32 @@ +package b.i.a.f.i.b; + +import android.os.RemoteException; +import com.google.android.gms.measurement.internal.zzn; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class x7 implements Runnable { + public final /* synthetic */ zzn j; + public final /* synthetic */ q7 k; + + public x7(q7 q7Var, zzn zzn) { + this.k = q7Var; + this.j = zzn; + } + + @Override // java.lang.Runnable + public final void run() { + q7 q7Var = this.k; + i3 i3Var = q7Var.d; + if (i3Var == null) { + q7Var.g().f.a("Discarding data. Failed to send app launch"); + return; + } + try { + i3Var.U(this.j); + this.k.r().z(); + this.k.w(i3Var, null, this.j); + this.k.F(); + } catch (RemoteException e) { + this.k.g().f.b("Failed to send app launch to the service", e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x8.java b/app/src/main/java/b/i/a/f/i/b/x8.java new file mode 100644 index 0000000000..4a129ef860 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x8.java @@ -0,0 +1,26 @@ +package b.i.a.f.i.b; + +import androidx.annotation.WorkerThread; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class x8 { + public b9 a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ w8 f1564b; + + public x8(w8 w8Var) { + this.f1564b = w8Var; + } + + @WorkerThread + public final void a() { + this.f1564b.b(); + b9 b9Var = this.a; + if (b9Var != null) { + this.f1564b.c.removeCallbacks(b9Var); + } + if (this.f1564b.a.h.o(p.v0)) { + this.f1564b.l().f1510x.a(false); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/x9.java b/app/src/main/java/b/i/a/f/i/b/x9.java new file mode 100644 index 0000000000..434ddb523b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/x9.java @@ -0,0 +1,19 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.fc; +import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService; +/* compiled from: com.google.android.gms:play-services-measurement-sdk@@18.0.0 */ +public final class x9 implements Runnable { + public final /* synthetic */ fc j; + public final /* synthetic */ AppMeasurementDynamiteService k; + + public x9(AppMeasurementDynamiteService appMeasurementDynamiteService, fc fcVar) { + this.k = appMeasurementDynamiteService; + this.j = fcVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.k.a.t().O(this.j, this.k.a.B()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y.java b/app/src/main/java/b/i/a/f/i/b/y.java new file mode 100644 index 0000000000..85b5ac8ec1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class y implements h3 { + public static final h3 a = new y(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return ((m8) n8.j.a()).y(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y0.java b/app/src/main/java/b/i/a/f/i/b/y0.java new file mode 100644 index 0000000000..22641290ea --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y0.java @@ -0,0 +1,36 @@ +package b.i.a.f.i.b; + +import b.c.a.a0.d; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class y0 implements Runnable { + public final /* synthetic */ String j; + public final /* synthetic */ long k; + public final /* synthetic */ a l; + + public y0(a aVar, String str, long j) { + this.l = aVar; + this.j = str; + this.k = j; + } + + @Override // java.lang.Runnable + public final void run() { + a aVar = this.l; + String str = this.j; + long j = this.k; + aVar.b(); + d.w(str); + if (aVar.c.isEmpty()) { + aVar.d = j; + } + Integer num = aVar.c.get(str); + if (num != null) { + aVar.c.put(str, Integer.valueOf(num.intValue() + 1)); + } else if (aVar.c.size() >= 100) { + aVar.g().i.a("Too many ads visible"); + } else { + aVar.c.put(str, 1); + aVar.f1497b.put(str, Long.valueOf(j)); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y1.java b/app/src/main/java/b/i/a/f/i/b/y1.java new file mode 100644 index 0000000000..720f54b455 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y1.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class y1 implements h3 { + public static final h3 a = new y1(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).z()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y2.java b/app/src/main/java/b/i/a/f/i/b/y2.java new file mode 100644 index 0000000000..bfcfba9753 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.s8; +import b.i.a.f.h.l.t8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class y2 implements h3 { + public static final h3 a = new y2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((s8) t8.j.a()).e()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y3.java b/app/src/main/java/b/i/a/f/i/b/y3.java new file mode 100644 index 0000000000..9c11e55549 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y3.java @@ -0,0 +1,31 @@ +package b.i.a.f.i.b; + +import androidx.annotation.WorkerThread; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +@WorkerThread +public final class y3 implements Runnable { + public final z3 j; + public final int k; + public final Throwable l; + public final byte[] m; + public final String n; + public final Map> o; + + public y3(String str, z3 z3Var, int i, Throwable th, byte[] bArr, Map map, w3 w3Var) { + Objects.requireNonNull(z3Var, "null reference"); + this.j = z3Var; + this.k = i; + this.l = th; + this.m = bArr; + this.n = str; + this.o = map; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.a(this.n, this.k, this.l, this.m, this.o); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y4.java b/app/src/main/java/b/i/a/f/i/b/y4.java new file mode 100644 index 0000000000..ed0eb992f9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y4.java @@ -0,0 +1,88 @@ +package b.i.a.f.i.b; + +import android.content.ContentValues; +import android.database.sqlite.SQLiteException; +import android.os.Bundle; +import android.text.TextUtils; +import b.c.a.a0.d; +import b.i.a.f.h.l.a1; +import b.i.a.f.h.l.c1; +import b.i.a.f.h.l.u4; +import com.google.android.gms.measurement.internal.zzap; +import com.google.android.gms.measurement.internal.zzn; +import java.util.Iterator; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final /* synthetic */ class y4 implements Runnable { + public final z4 j; + public final zzn k; + public final Bundle l; + + public y4(z4 z4Var, zzn zzn, Bundle bundle) { + this.j = z4Var; + this.k = zzn; + this.l = bundle; + } + + @Override // java.lang.Runnable + public final void run() { + zzap zzap; + z4 z4Var = this.j; + zzn zzn = this.k; + Bundle bundle = this.l; + g K = z4Var.a.K(); + String str = zzn.j; + K.b(); + K.n(); + u4 u4Var = K.a; + d.w(str); + d.w("dep"); + TextUtils.isEmpty(""); + if (bundle == null || bundle.isEmpty()) { + zzap = new zzap(new Bundle()); + } else { + Bundle bundle2 = new Bundle(bundle); + Iterator it = bundle2.keySet().iterator(); + while (it.hasNext()) { + String next = it.next(); + if (next == null) { + u4Var.g().f.a("Param name can't be null"); + it.remove(); + } else { + Object D = u4Var.t().D(next, bundle2.get(next)); + if (D == null) { + u4Var.g().i.b("Param value can't be null", u4Var.u().x(next)); + it.remove(); + } else { + u4Var.t().I(bundle2, next, D); + } + } + } + zzap = new zzap(bundle2); + } + q9 m = K.m(); + a1.a M = a1.M(); + if (M.l) { + M.n(); + M.l = false; + } + a1.E((a1) M.k, 0); + for (String str2 : zzap.j.keySet()) { + c1.a Q = c1.Q(); + Q.s(str2); + m.F(Q, zzap.w0(str2)); + M.s(Q); + } + byte[] d = ((a1) ((u4) M.p())).d(); + K.g().n.c("Saving default event parameters, appId, data size", K.d().u(str), Integer.valueOf(d.length)); + ContentValues contentValues = new ContentValues(); + contentValues.put("app_id", str); + contentValues.put("parameters", d); + try { + if (K.t().insertWithOnConflict("default_event_params", null, contentValues, 5) == -1) { + K.g().f.b("Failed to insert default event parameters (got -1). appId", q3.s(str)); + } + } catch (SQLiteException e) { + K.g().f.c("Error storing default event parameters. appId", q3.s(str), e); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y5.java b/app/src/main/java/b/i/a/f/i/b/y5.java new file mode 100644 index 0000000000..f95b286f97 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y5.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import android.os.Bundle; +import com.google.android.gms.internal.measurement.zzae; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class y5 { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public String f1565b; + public String c; + public String d; + public Boolean e; + public long f; + public zzae g; + public boolean h = true; + public Long i; + + public y5(Context context, zzae zzae, Long l) { + Context applicationContext = context.getApplicationContext(); + Objects.requireNonNull(applicationContext, "null reference"); + this.a = applicationContext; + this.i = l; + if (zzae != null) { + this.g = zzae; + this.f1565b = zzae.o; + this.c = zzae.n; + this.d = zzae.m; + this.h = zzae.l; + this.f = zzae.k; + Bundle bundle = zzae.p; + if (bundle != null) { + this.e = Boolean.valueOf(bundle.getBoolean("dataCollectionDefaultEnabled", true)); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y6.java b/app/src/main/java/b/i/a/f/i/b/y6.java new file mode 100644 index 0000000000..7f26b62d9c --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y6.java @@ -0,0 +1,139 @@ +package b.i.a.f.i.b; + +import android.annotation.TargetApi; +import android.app.Activity; +import android.app.Application; +import android.content.Intent; +import android.net.Uri; +import android.os.Bundle; +import android.os.SystemClock; +import androidx.annotation.MainThread; +import b.i.a.f.e.o.c; +import com.adjust.sdk.Constants; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +@TargetApi(14) +@MainThread +public final class y6 implements Application.ActivityLifecycleCallbacks { + public final /* synthetic */ c6 j; + + public y6(c6 c6Var, d6 d6Var) { + this.j = c6Var; + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityCreated(Activity activity, Bundle bundle) { + try { + this.j.g().n.a("onActivityCreated"); + Intent intent = activity.getIntent(); + if (intent != null) { + Uri data = intent.getData(); + if (data == null || !data.isHierarchical()) { + this.j.q().y(activity, bundle); + return; + } + this.j.e(); + this.j.f().v(new c7(this, bundle == null, data, t9.V(intent) ? "gs" : "auto", data.getQueryParameter(Constants.REFERRER))); + this.j.q().y(activity, bundle); + } + } catch (Exception e) { + this.j.g().f.b("Throwable caught in onActivityCreated", e); + } finally { + this.j.q().y(activity, bundle); + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityDestroyed(Activity activity) { + h7 q = this.j.q(); + synchronized (q.l) { + if (activity == q.g) { + q.g = null; + } + } + if (q.a.h.z().booleanValue()) { + q.f.remove(activity); + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + @MainThread + public final void onActivityPaused(Activity activity) { + h7 q = this.j.q(); + if (q.a.h.o(p.v0)) { + synchronized (q.l) { + q.k = false; + q.h = true; + } + } + Objects.requireNonNull((c) q.a.o); + long elapsedRealtime = SystemClock.elapsedRealtime(); + if (!q.a.h.o(p.u0) || q.a.h.z().booleanValue()) { + i7 E = q.E(activity); + q.d = q.c; + q.c = null; + q.f().v(new o7(q, E, elapsedRealtime)); + } else { + q.c = null; + q.f().v(new l7(q, elapsedRealtime)); + } + w8 s2 = this.j.s(); + Objects.requireNonNull((c) s2.a.o); + s2.f().v(new y8(s2, SystemClock.elapsedRealtime())); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + @MainThread + public final void onActivityResumed(Activity activity) { + w8 s2 = this.j.s(); + Objects.requireNonNull((c) s2.a.o); + s2.f().v(new v8(s2, SystemClock.elapsedRealtime())); + h7 q = this.j.q(); + if (q.a.h.o(p.v0)) { + synchronized (q.l) { + q.k = true; + if (activity != q.g) { + synchronized (q.l) { + q.g = activity; + q.h = false; + } + if (q.a.h.o(p.u0) && q.a.h.z().booleanValue()) { + q.i = null; + q.f().v(new n7(q)); + } + } + } + } + if (!q.a.h.o(p.u0) || q.a.h.z().booleanValue()) { + q.z(activity, q.E(activity), false); + a m = q.m(); + Objects.requireNonNull((c) m.a.o); + m.f().v(new a3(m, SystemClock.elapsedRealtime())); + return; + } + q.c = q.i; + q.f().v(new m7(q)); + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) { + i7 i7Var; + h7 q = this.j.q(); + if (q.a.h.z().booleanValue() && bundle != null && (i7Var = q.f.get(activity)) != null) { + Bundle bundle2 = new Bundle(); + bundle2.putLong(ModelAuditLogEntry.CHANGE_KEY_ID, i7Var.c); + bundle2.putString(ModelAuditLogEntry.CHANGE_KEY_NAME, i7Var.a); + bundle2.putString("referrer_name", i7Var.f1522b); + bundle.putBundle("com.google.app_measurement.screen_service", bundle2); + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStarted(Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStopped(Activity activity) { + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y7.java b/app/src/main/java/b/i/a/f/i/b/y7.java new file mode 100644 index 0000000000..92bfd80821 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y7.java @@ -0,0 +1,39 @@ +package b.i.a.f.i.b; + +import b.i.a.f.e.c; +import b.i.a.f.h.l.fc; +import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService; +import com.google.android.gms.measurement.internal.zzaq; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-sdk@@18.0.0 */ +public final class y7 implements Runnable { + public final /* synthetic */ fc j; + public final /* synthetic */ zzaq k; + public final /* synthetic */ String l; + public final /* synthetic */ AppMeasurementDynamiteService m; + + public y7(AppMeasurementDynamiteService appMeasurementDynamiteService, fc fcVar, zzaq zzaq, String str) { + this.m = appMeasurementDynamiteService; + this.j = fcVar; + this.k = zzaq; + this.l = str; + } + + @Override // java.lang.Runnable + public final void run() { + q7 x2 = this.m.a.x(); + fc fcVar = this.j; + zzaq zzaq = this.k; + String str = this.l; + x2.b(); + x2.t(); + t9 e = x2.e(); + Objects.requireNonNull(e); + if (c.f1332b.b(e.a.f1555b, 12451000) != 0) { + x2.g().i.a("Not bundling data. Service unavailable or out of date"); + x2.e().P(fcVar, new byte[0]); + return; + } + x2.z(new c8(x2, zzaq, str, fcVar)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y8.java b/app/src/main/java/b/i/a/f/i/b/y8.java new file mode 100644 index 0000000000..ade3eec9f4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y8.java @@ -0,0 +1,35 @@ +package b.i.a.f.i.b; + +import b.i.a.f.e.o.c; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class y8 implements Runnable { + public final /* synthetic */ long j; + public final /* synthetic */ w8 k; + + public y8(w8 w8Var, long j) { + this.k = w8Var; + this.j = j; + } + + @Override // java.lang.Runnable + public final void run() { + w8 w8Var = this.k; + long j = this.j; + w8Var.b(); + w8Var.x(); + w8Var.g().n.b("Activity paused, time", Long.valueOf(j)); + x8 x8Var = w8Var.f; + Objects.requireNonNull((c) x8Var.f1564b.a.o); + b9 b9Var = new b9(x8Var, System.currentTimeMillis(), j); + x8Var.a = b9Var; + x8Var.f1564b.c.postDelayed(b9Var, 2000); + if (w8Var.a.h.z().booleanValue()) { + w8Var.e.c.c(); + } + f9 f9Var = w8Var.d; + if (!f9Var.a.a.h.o(p.v0)) { + f9Var.a.l().f1510x.a(true); + } + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/y9.java b/app/src/main/java/b/i/a/f/i/b/y9.java new file mode 100644 index 0000000000..e66246ab8c --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/y9.java @@ -0,0 +1,55 @@ +package b.i.a.f.i.b; + +import android.net.Uri; +import android.os.Bundle; +import android.text.TextUtils; +import androidx.annotation.WorkerThread; +import b.i.a.f.e.o.c; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class y9 { + public final u4 a; + + public y9(u4 u4Var) { + this.a = u4Var; + } + + @WorkerThread + public final void a(String str, Bundle bundle) { + String str2; + this.a.f().b(); + if (!this.a.d()) { + if (bundle.isEmpty()) { + str2 = null; + } else { + if (str == null || str.isEmpty()) { + str = "auto"; + } + Uri.Builder builder = new Uri.Builder(); + builder.path(str); + for (String str3 : bundle.keySet()) { + builder.appendQueryParameter(str3, bundle.getString(str3)); + } + str2 = builder.build().toString(); + } + if (!TextUtils.isEmpty(str2)) { + this.a.o().B.b(str2); + h4 h4Var = this.a.o().C; + Objects.requireNonNull((c) this.a.o); + h4Var.b(System.currentTimeMillis()); + } + } + } + + public final boolean b() { + if (!c()) { + return false; + } + Objects.requireNonNull((c) this.a.o); + return System.currentTimeMillis() - this.a.o().C.a() > this.a.h.n(null, p.E0); + } + + public final boolean c() { + return this.a.o().C.a() > 0; + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z.java b/app/src/main/java/b/i/a/f/i/b/z.java new file mode 100644 index 0000000000..f8f2bbbd4d --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.m8; +import b.i.a.f.h.l.n8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class z implements h3 { + public static final h3 a = new z(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Integer.valueOf((int) ((m8) n8.j.a()).w()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z0.java b/app/src/main/java/b/i/a/f/i/b/z0.java new file mode 100644 index 0000000000..a3d9b5956b --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z0.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.ua; +import b.i.a.f.h.l.va; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class z0 implements h3 { + public static final h3 a = new z0(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((ua) va.j.a()).a()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z1.java b/app/src/main/java/b/i/a/f/i/b/z1.java new file mode 100644 index 0000000000..838501f5ae --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z1.java @@ -0,0 +1,47 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public class z1 extends s5 implements t5 { + public z1(u4 u4Var) { + super(u4Var); + } + + @Override // b.i.a.f.i.b.s5 + public void a() { + this.a.f().a(); + } + + @Override // b.i.a.f.i.b.s5 + public void b() { + this.a.f().b(); + } + + public a m() { + return this.a.A(); + } + + public c6 n() { + return this.a.s(); + } + + public n3 o() { + return this.a.z(); + } + + public q7 p() { + return this.a.x(); + } + + public h7 q() { + return this.a.w(); + } + + public m3 r() { + u4 u4Var = this.a; + u4.p(u4Var.t); + return u4Var.t; + } + + public w8 s() { + return this.a.r(); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z2.java b/app/src/main/java/b/i/a/f/i/b/z2.java new file mode 100644 index 0000000000..0e86d1ccde --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z2.java @@ -0,0 +1,15 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.s8; +import b.i.a.f.h.l.t8; +import java.util.List; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final /* synthetic */ class z2 implements h3 { + public static final h3 a = new z2(); + + @Override // b.i.a.f.i.b.h3 + public final Object a() { + List> list = p.a; + return Boolean.valueOf(((s8) t8.j.a()).d()); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z3.java b/app/src/main/java/b/i/a/f/i/b/z3.java new file mode 100644 index 0000000000..1bdd69af64 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z3.java @@ -0,0 +1,10 @@ +package b.i.a.f.i.b; + +import androidx.annotation.WorkerThread; +import java.util.List; +import java.util.Map; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +@WorkerThread +public interface z3 { + void a(String str, int i, Throwable th, byte[] bArr, Map> map); +} diff --git a/app/src/main/java/b/i/a/f/i/b/z4.java b/app/src/main/java/b/i/a/f/i/b/z4.java new file mode 100644 index 0000000000..3b28631284 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z4.java @@ -0,0 +1,291 @@ +package b.i.a.f.i.b; + +import android.content.Context; +import android.os.Binder; +import android.os.Bundle; +import android.text.TextUtils; +import androidx.annotation.BinderThread; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.f.e.e; +import b.i.a.f.e.o.c; +import b.i.a.f.e.o.f; +import b.i.a.f.h.l.ea; +import b.i.a.f.h.l.t8; +import com.google.android.gms.measurement.internal.zzaq; +import com.google.android.gms.measurement.internal.zzku; +import com.google.android.gms.measurement.internal.zzn; +import com.google.android.gms.measurement.internal.zzz; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.FutureTask; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */ +public final class z4 extends l3 { + public final k9 a; + + /* renamed from: b reason: collision with root package name */ + public Boolean f1566b; + @Nullable + public String c = null; + + public z4(k9 k9Var) { + Objects.requireNonNull(k9Var, "null reference"); + this.a = k9Var; + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final String A(zzn zzn) { + y0(zzn); + k9 k9Var = this.a; + try { + return (String) ((FutureTask) k9Var.k.f().t(new o9(k9Var, zzn))).get(30000, TimeUnit.MILLISECONDS); + } catch (InterruptedException | ExecutionException | TimeoutException e) { + k9Var.k.g().f.c("Failed to get app instance id. appId", q3.s(zzn.j), e); + return null; + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void H(long j, String str, String str2, String str3) { + h(new p5(this, str2, str3, str, j)); + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void I(zzn zzn) { + x0(zzn.j, false); + h(new h5(this, zzn)); + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final List J(String str, String str2, String str3) { + x0(str, true); + try { + return (List) ((FutureTask) this.a.f().t(new i5(this, str, str2, str3))).get(); + } catch (InterruptedException | ExecutionException e) { + this.a.g().f.b("Failed to get conditional user properties as", e); + return Collections.emptyList(); + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final List K(String str, String str2, zzn zzn) { + y0(zzn); + try { + return (List) ((FutureTask) this.a.f().t(new f5(this, zzn, str, str2))).get(); + } catch (InterruptedException | ExecutionException e) { + this.a.g().f.b("Failed to get conditional user properties", e); + return Collections.emptyList(); + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final List S(String str, String str2, boolean z2, zzn zzn) { + y0(zzn); + try { + List list = (List) ((FutureTask) this.a.f().t(new d5(this, zzn, str, str2))).get(); + ArrayList arrayList = new ArrayList(list.size()); + for (u9 u9Var : list) { + if (z2 || !t9.r0(u9Var.c)) { + arrayList.add(new zzku(u9Var)); + } + } + return arrayList; + } catch (InterruptedException | ExecutionException e) { + this.a.g().f.c("Failed to query user properties. appId", q3.s(zzn.j), e); + return Collections.emptyList(); + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void U(zzn zzn) { + y0(zzn); + h(new q5(this, zzn)); + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void f0(zzn zzn) { + y0(zzn); + h(new c5(this, zzn)); + } + + @BinderThread + public final void g(zzz zzz) { + Objects.requireNonNull(zzz, "null reference"); + Objects.requireNonNull(zzz.l, "null reference"); + x0(zzz.j, true); + h(new e5(this, new zzz(zzz))); + } + + public final void h(Runnable runnable) { + if (this.a.f().y()) { + runnable.run(); + } else { + this.a.f().v(runnable); + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final byte[] i(zzaq zzaq, String str) { + d.w(str); + Objects.requireNonNull(zzaq, "null reference"); + x0(str, true); + this.a.g().m.b("Log and bundle. event", this.a.O().u(zzaq.j)); + Objects.requireNonNull((c) this.a.k.o); + long nanoTime = System.nanoTime() / 1000000; + r4 f = this.a.f(); + l5 l5Var = new l5(this, zzaq, str); + f.o(); + s4 s4Var = new s4<>(f, (Callable) l5Var, true, "Task exception on worker thread"); + if (Thread.currentThread() == f.d) { + s4Var.run(); + } else { + f.u(s4Var); + } + try { + byte[] bArr = (byte[]) s4Var.get(); + if (bArr == null) { + this.a.g().f.b("Log and bundle returned null. appId", q3.s(str)); + bArr = new byte[0]; + } + Objects.requireNonNull((c) this.a.k.o); + this.a.g().m.d("Log and bundle processed. event, size, time_ms", this.a.O().u(zzaq.j), Integer.valueOf(bArr.length), Long.valueOf((System.nanoTime() / 1000000) - nanoTime)); + return bArr; + } catch (InterruptedException | ExecutionException e) { + this.a.g().f.d("Failed to log and bundle. appId, event, error", q3.s(str), this.a.O().u(zzaq.j), e); + return null; + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void l(zzn zzn) { + if (t8.b() && this.a.k.h.o(p.J0)) { + d.w(zzn.j); + Objects.requireNonNull(zzn.F, "null reference"); + k5 k5Var = new k5(this, zzn); + if (this.a.f().y()) { + k5Var.run(); + } else { + this.a.f().w(k5Var); + } + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void o0(zzaq zzaq, zzn zzn) { + Objects.requireNonNull(zzaq, "null reference"); + y0(zzn); + h(new j5(this, zzaq, zzn)); + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void p0(Bundle bundle, zzn zzn) { + if (ea.b() && this.a.k.h.o(p.A0)) { + y0(zzn); + h(new y4(this, zzn, bundle)); + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void t0(zzku zzku, zzn zzn) { + Objects.requireNonNull(zzku, "null reference"); + y0(zzn); + h(new o5(this, zzku, zzn)); + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final List u(String str, String str2, String str3, boolean z2) { + x0(str, true); + try { + List list = (List) ((FutureTask) this.a.f().t(new g5(this, str, str2, str3))).get(); + ArrayList arrayList = new ArrayList(list.size()); + for (u9 u9Var : list) { + if (z2 || !t9.r0(u9Var.c)) { + arrayList.add(new zzku(u9Var)); + } + } + return arrayList; + } catch (InterruptedException | ExecutionException e) { + this.a.g().f.c("Failed to get user properties as. appId", q3.s(str), e); + return Collections.emptyList(); + } + } + + @Override // b.i.a.f.i.b.i3 + @BinderThread + public final void u0(zzz zzz, zzn zzn) { + Objects.requireNonNull(zzz, "null reference"); + Objects.requireNonNull(zzz.l, "null reference"); + y0(zzn); + zzz zzz2 = new zzz(zzz); + zzz2.j = zzn.j; + h(new b5(this, zzz2, zzn)); + } + + @BinderThread + public final void x0(String str, boolean z2) { + boolean z3; + if (!TextUtils.isEmpty(str)) { + if (z2) { + try { + if (this.f1566b == null) { + if (!"com.google.android.gms".equals(this.c) && !f.B0(this.a.k.f1555b, Binder.getCallingUid())) { + if (!b.i.a.f.e.f.a(this.a.k.f1555b).b(Binder.getCallingUid())) { + z3 = false; + this.f1566b = Boolean.valueOf(z3); + } + } + z3 = true; + this.f1566b = Boolean.valueOf(z3); + } + if (this.f1566b.booleanValue()) { + return; + } + } catch (SecurityException e) { + this.a.g().f.b("Measurement Service called with invalid calling package. appId", q3.s(str)); + throw e; + } + } + if (this.c == null) { + Context context = this.a.k.f1555b; + int callingUid = Binder.getCallingUid(); + boolean z4 = e.a; + if (f.r1(context, callingUid, str)) { + this.c = str; + } + } + if (!str.equals(this.c)) { + throw new SecurityException(String.format("Unknown calling package name '%s'.", str)); + } + return; + } + this.a.g().f.a("Measurement Service called without app package"); + throw new SecurityException("Measurement Service called without app package"); + } + + @BinderThread + public final void y0(zzn zzn) { + Objects.requireNonNull(zzn, "null reference"); + x0(zzn.j, false); + this.a.k.t().c0(zzn.k, zzn.A, zzn.E); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z5.java b/app/src/main/java/b/i/a/f/i/b/z5.java new file mode 100644 index 0000000000..16515680e1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z5.java @@ -0,0 +1,9 @@ +package b.i.a.f.i.b; + +import android.os.Bundle; +import androidx.annotation.WorkerThread; +/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */ +public interface z5 { + @WorkerThread + void a(String str, String str2, Bundle bundle, long j); +} diff --git a/app/src/main/java/b/i/a/f/i/b/z6.java b/app/src/main/java/b/i/a/f/i/b/z6.java new file mode 100644 index 0000000000..ea6e1a1499 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z6.java @@ -0,0 +1,23 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class z6 implements Runnable { + public final /* synthetic */ d j; + public final /* synthetic */ int k; + public final /* synthetic */ long l; + public final /* synthetic */ boolean m; + public final /* synthetic */ c6 n; + + public z6(c6 c6Var, d dVar, int i, long j, boolean z2) { + this.n = c6Var; + this.j = dVar; + this.k = i; + this.l = j; + this.m = z2; + } + + @Override // java.lang.Runnable + public final void run() { + this.n.z(this.j); + c6.C(this.n, this.j, this.k, this.l, false, this.m); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z7.java b/app/src/main/java/b/i/a/f/i/b/z7.java new file mode 100644 index 0000000000..2d87e0ebd6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z7.java @@ -0,0 +1,16 @@ +package b.i.a.f.i.b; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class z7 extends i { + public final /* synthetic */ q7 e; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public z7(q7 q7Var, t5 t5Var) { + super(t5Var); + this.e = q7Var; + } + + @Override // b.i.a.f.i.b.i + public final void a() { + this.e.g().i.a("Tasks have been queued for a long time"); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z8.java b/app/src/main/java/b/i/a/f/i/b/z8.java new file mode 100644 index 0000000000..2bb63374d8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z8.java @@ -0,0 +1,29 @@ +package b.i.a.f.i.b; + +import b.i.a.f.h.l.fc; +import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService; +/* compiled from: com.google.android.gms:play-services-measurement-sdk@@18.0.0 */ +public final class z8 implements Runnable { + public final /* synthetic */ fc j; + public final /* synthetic */ String k; + public final /* synthetic */ String l; + public final /* synthetic */ AppMeasurementDynamiteService m; + + public z8(AppMeasurementDynamiteService appMeasurementDynamiteService, fc fcVar, String str, String str2) { + this.m = appMeasurementDynamiteService; + this.j = fcVar; + this.k = str; + this.l = str2; + } + + @Override // java.lang.Runnable + public final void run() { + q7 x2 = this.m.a.x(); + fc fcVar = this.j; + String str = this.k; + String str2 = this.l; + x2.b(); + x2.t(); + x2.z(new i8(x2, str, str2, x2.I(false), fcVar)); + } +} diff --git a/app/src/main/java/b/i/a/f/i/b/z9.java b/app/src/main/java/b/i/a/f/i/b/z9.java new file mode 100644 index 0000000000..f620de8bcb --- /dev/null +++ b/app/src/main/java/b/i/a/f/i/b/z9.java @@ -0,0 +1,131 @@ +package b.i.a.f.i.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.measurement.internal.zzn; +import java.util.ArrayList; +/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ +public final class z9 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzn createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + long j = 0; + long j2 = 0; + long j3 = 0; + long j4 = 0; + long j5 = 0; + String str = null; + String str2 = null; + String str3 = null; + String str4 = null; + String str5 = null; + String str6 = null; + String str7 = null; + Boolean bool = null; + ArrayList arrayList = null; + String str8 = null; + long j6 = -2147483648L; + String str9 = ""; + boolean z2 = true; + boolean z3 = false; + int i = 0; + boolean z4 = true; + boolean z5 = true; + boolean z6 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 2: + str = d.Q(parcel, readInt); + break; + case 3: + str2 = d.Q(parcel, readInt); + break; + case 4: + str3 = d.Q(parcel, readInt); + break; + case 5: + str4 = d.Q(parcel, readInt); + break; + case 6: + j = d.F1(parcel, readInt); + break; + case 7: + j2 = d.F1(parcel, readInt); + break; + case 8: + str5 = d.Q(parcel, readInt); + break; + case 9: + z2 = d.C1(parcel, readInt); + break; + case 10: + z3 = d.C1(parcel, readInt); + break; + case 11: + j6 = d.F1(parcel, readInt); + break; + case 12: + str6 = d.Q(parcel, readInt); + break; + case 13: + j3 = d.F1(parcel, readInt); + break; + case 14: + j4 = d.F1(parcel, readInt); + break; + case 15: + i = d.E1(parcel, readInt); + break; + case 16: + z4 = d.C1(parcel, readInt); + break; + case 17: + z5 = d.C1(parcel, readInt); + break; + case 18: + z6 = d.C1(parcel, readInt); + break; + case 19: + str7 = d.Q(parcel, readInt); + break; + case 20: + default: + d.b2(parcel, readInt); + break; + case 21: + int K1 = d.K1(parcel, readInt); + if (K1 != 0) { + d.z2(parcel, K1, 4); + bool = Boolean.valueOf(parcel.readInt() != 0); + break; + } else { + bool = null; + break; + } + case 22: + j5 = d.F1(parcel, readInt); + break; + case 23: + arrayList = d.S(parcel, readInt); + break; + case 24: + str8 = d.Q(parcel, readInt); + break; + case 25: + str9 = d.Q(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzn(str, str2, str3, str4, j, j2, str5, z2, z3, j6, str6, j3, j4, i, z4, z5, z6, str7, bool, j5, arrayList, str8, str9); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzn[] newArray(int i) { + return new zzn[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/a.java b/app/src/main/java/b/i/a/f/j/a.java new file mode 100644 index 0000000000..b3db9061da --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/a.java @@ -0,0 +1,134 @@ +package b.i.a.f.j; + +import android.content.ContentResolver; +import android.content.Context; +import android.database.Cursor; +import android.net.Uri; +import android.util.Log; +import androidx.core.content.PermissionChecker; +import b.i.a.f.h.m.p; +import java.util.HashMap; +import java.util.TreeMap; +public final class a { + /* JADX WARNING: Code restructure failed: missing block: B:27:0x0053, code lost: + if (r2 != null) goto L_0x0055; + */ + /* JADX WARNING: Code restructure failed: missing block: B:47:0x00b0, code lost: + if (r2 != null) goto L_0x0055; + */ + /* JADX WARNING: Code restructure failed: missing block: B:69:0x00eb, code lost: + if (r2 != null) goto L_0x00ed; + */ + /* JADX WARNING: Removed duplicated region for block: B:84:0x013e A[SYNTHETIC] */ + public static boolean a(Context context) { + Object obj; + String str; + boolean z2; + Boolean bool; + String str2; + if (PermissionChecker.checkCallingOrSelfPermission(context, "com.google.android.providers.gsf.permission.READ_GSERVICES") != 0) { + return true; + } + ContentResolver contentResolver = context.getContentResolver(); + Uri uri = p.a; + synchronized (p.class) { + p.a(contentResolver); + obj = p.k; + } + HashMap hashMap = p.g; + Boolean bool2 = Boolean.TRUE; + synchronized (p.class) { + str = null; + if (hashMap.containsKey("gms:nearby:requires_gms_check")) { + Boolean bool3 = hashMap.get("gms:nearby:requires_gms_check"); + if (bool3 != null) { + bool2 = bool3; + } + } else { + bool2 = null; + } + } + Boolean bool4 = bool2; + if (bool4 != null) { + return bool4.booleanValue(); + } + synchronized (p.class) { + p.a(contentResolver); + Object obj2 = p.k; + z2 = false; + if (p.f.containsKey("gms:nearby:requires_gms_check")) { + str2 = p.f.get("gms:nearby:requires_gms_check"); + } else { + for (String str3 : p.m) { + if ("gms:nearby:requires_gms_check".startsWith(str3)) { + if (!p.l || p.f.isEmpty()) { + String[] strArr = p.m; + HashMap hashMap2 = p.f; + Cursor query = contentResolver.query(p.f1495b, null, null, strArr, null); + TreeMap treeMap = new TreeMap(); + if (query != null) { + while (query.moveToNext()) { + try { + treeMap.put(query.getString(0), query.getString(1)); + } finally { + query.close(); + } + } + } + hashMap2.putAll(treeMap); + p.l = true; + if (p.f.containsKey("gms:nearby:requires_gms_check")) { + str2 = p.f.get("gms:nearby:requires_gms_check"); + } + } + } + } + Cursor query2 = contentResolver.query(p.a, null, null, new String[]{"gms:nearby:requires_gms_check"}, null); + if (query2 != null) { + try { + if (query2.moveToFirst()) { + String string = query2.getString(1); + if (string != null && string.equals(null)) { + string = null; + } + p.b(obj2, "gms:nearby:requires_gms_check", string); + if (string != null) { + str = string; + } + query2.close(); + } + } catch (Throwable th) { + if (query2 != null) { + query2.close(); + } + throw th; + } + } + p.b(obj2, "gms:nearby:requires_gms_check", null); + } + str = str2; + } + if (str != null && !str.equals("")) { + if (p.c.matcher(str).matches()) { + bool4 = Boolean.TRUE; + } else if (p.d.matcher(str).matches()) { + bool = Boolean.FALSE; + HashMap hashMap3 = p.g; + synchronized (p.class) { + if (obj == p.k) { + hashMap3.put("gms:nearby:requires_gms_check", bool); + p.f.remove("gms:nearby:requires_gms_check"); + } + } + return z2; + } else { + Log.w("Gservices", "attempt to read gservices key gms:nearby:requires_gms_check (value \"" + str + "\") as boolean"); + } + } + bool = bool4; + z2 = true; + HashMap hashMap3 = p.g; + synchronized (p.class) { + } + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/a.java b/app/src/main/java/b/i/a/f/j/b/a.java new file mode 100644 index 0000000000..3bbe9c1415 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/a.java @@ -0,0 +1,13 @@ +package b.i.a.f.j.b; + +import b.i.a.f.e.h.a; +public class a implements a.d { + public final int j = -1; + + /* renamed from: b.i.a.f.j.b.a$a reason: collision with other inner class name */ + public static class C0112a { + } + + public a(C0112a aVar, h hVar) { + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/b.java b/app/src/main/java/b/i/a/f/j/b/b.java new file mode 100644 index 0000000000..8011673b5f --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/b.java @@ -0,0 +1,5 @@ +package b.i.a.f.j.b; +public class b { + public void onExpired() { + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/c.java b/app/src/main/java/b/i/a/f/j/b/c.java new file mode 100644 index 0000000000..70058e571c --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/c.java @@ -0,0 +1,5 @@ +package b.i.a.f.j.b; +public class c { + public void onPermissionChanged(boolean z2) { + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/d.java b/app/src/main/java/b/i/a/f/j/b/d.java new file mode 100644 index 0000000000..1892494229 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/d.java @@ -0,0 +1,3 @@ +package b.i.a.f.j.b; +public class d { +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/a.java b/app/src/main/java/b/i/a/f/j/b/e/a.java new file mode 100644 index 0000000000..b6c8c2e920 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/a.java @@ -0,0 +1,5 @@ +package b.i.a.f.j.b.e; + +import android.os.IInterface; +public interface a extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/a0.java b/app/src/main/java/b/i/a/f/j/b/e/a0.java new file mode 100644 index 0000000000..8cf6d8c656 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/a0.java @@ -0,0 +1,9 @@ +package b.i.a.f.j.b.e; + +import android.os.RemoteException; +import b.i.a.f.e.h.j.e; +import b.i.a.f.e.h.j.k; +import com.google.android.gms.common.api.Status; +public interface a0 { + void a(f fVar, k> kVar) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/a1.java b/app/src/main/java/b/i/a/f/j/b/e/a1.java new file mode 100644 index 0000000000..967bf14123 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/a1.java @@ -0,0 +1,27 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.m.b; +import b.i.a.f.h.m.c; +import b.i.a.f.h.m.m; +import b.i.a.f.h.m.n; +public abstract class a1 extends b implements z0 { + public a1() { + super("com.google.android.gms.nearby.messages.internal.IStatusCallback"); + } + + @Override // b.i.a.f.h.m.b + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + boolean z2 = false; + if (i != 1) { + return false; + } + int i3 = c.a; + if (parcel.readInt() != 0) { + z2 = true; + } + ((m) this).a.a(new n(z2)); + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/b.java b/app/src/main/java/b/i/a/f/j/b/e/b.java new file mode 100644 index 0000000000..afcb7580a2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/b.java @@ -0,0 +1,25 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.e.h.j.k; +import b.i.a.f.j.b.d; +public abstract class b extends b.i.a.f.h.m.b implements a { + public b() { + super("com.google.android.gms.nearby.messages.internal.ISubscribeCallback"); + } + + @Override // b.i.a.f.h.m.b + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i != 1) { + return false; + } + s sVar = (s) this; + sVar.d.b(sVar.c.c); + k kVar = sVar.f1568b; + if (kVar != null) { + kVar.a(d0.a); + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/b0.java b/app/src/main/java/b/i/a/f/j/b/e/b0.java new file mode 100644 index 0000000000..fbbef63624 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/b0.java @@ -0,0 +1,17 @@ +package b.i.a.f.j.b.e; + +import androidx.annotation.Nullable; +import b.i.a.f.e.h.j.k; +import b.i.a.f.h.m.l; +import b.i.a.f.j.b.b; +public class b0 extends x0 { + public static final l a = new c0(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final k f1567b; + + public b0(@Nullable k kVar) { + this.f1567b = kVar; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/b1.java b/app/src/main/java/b/i/a/f/j/b/e/b1.java new file mode 100644 index 0000000000..89fedbefbb --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/b1.java @@ -0,0 +1,9 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.h.m.a; +public final class b1 extends a implements z0 { + public b1(IBinder iBinder) { + super(iBinder, "com.google.android.gms.nearby.messages.internal.IStatusCallback"); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/c.java b/app/src/main/java/b/i/a/f/j/b/e/c.java new file mode 100644 index 0000000000..6be99acb46 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/c.java @@ -0,0 +1,9 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.h.m.a; +public final class c extends a implements a { + public c(IBinder iBinder) { + super(iBinder, "com.google.android.gms.nearby.messages.internal.ISubscribeCallback"); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/c0.java b/app/src/main/java/b/i/a/f/j/b/e/c0.java new file mode 100644 index 0000000000..efa530f8bc --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/c0.java @@ -0,0 +1,10 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.h.m.l; +import b.i.a.f.j.b.b; +public final class c0 extends l { + @Override // b.i.a.f.e.h.j.k.b + public final /* synthetic */ void a(Object obj) { + ((b) obj).onExpired(); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/d.java b/app/src/main/java/b/i/a/f/j/b/e/d.java new file mode 100644 index 0000000000..696bed5bb9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/d.java @@ -0,0 +1,36 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.Parcelable; +import com.google.android.gms.nearby.messages.internal.zzad; +public final class d implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzad createFromParcel(Parcel parcel) { + int k2 = b.c.a.a0.d.k2(parcel); + String str = null; + String str2 = null; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + str = b.c.a.a0.d.Q(parcel, readInt); + } else if (i2 == 2) { + str2 = b.c.a.a0.d.Q(parcel, readInt); + } else if (i2 != 1000) { + b.c.a.a0.d.b2(parcel, readInt); + } else { + i = b.c.a.a0.d.E1(parcel, readInt); + } + } + b.c.a.a0.d.e0(parcel, k2); + return new zzad(i, str, str2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzad[] newArray(int i) { + return new zzad[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/d0.java b/app/src/main/java/b/i/a/f/j/b/e/d0.java new file mode 100644 index 0000000000..9ebc029ea2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/d0.java @@ -0,0 +1,17 @@ +package b.i.a.f.j.b.e; + +import androidx.annotation.Nullable; +import b.i.a.f.e.h.j.k; +import b.i.a.f.h.m.l; +import b.i.a.f.j.b.d; +public class d0 extends b { + public static final l a = new e0(); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final k f1568b; + + public d0(@Nullable k kVar) { + this.f1568b = kVar; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/e.java b/app/src/main/java/b/i/a/f/j/b/e/e.java new file mode 100644 index 0000000000..250a43c971 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/e.java @@ -0,0 +1,35 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.Message; +import com.google.android.gms.nearby.messages.internal.zzaf; +public final class e implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzaf createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + Message message = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + message = (Message) d.P(parcel, readInt, Message.CREATOR); + } else if (i2 != 1000) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzaf(i, message); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzaf[] newArray(int i) { + return new zzaf[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/e0.java b/app/src/main/java/b/i/a/f/j/b/e/e0.java new file mode 100644 index 0000000000..5b995181d8 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/e0.java @@ -0,0 +1,10 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.h.m.l; +import b.i.a.f.j.b.d; +public final class e0 extends l { + @Override // b.i.a.f.e.h.j.k.b + public final void a(Object obj) { + d dVar = (d) obj; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/f.java b/app/src/main/java/b/i/a/f/j/b/e/f.java new file mode 100644 index 0000000000..59f4896765 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/f.java @@ -0,0 +1,125 @@ +package b.i.a.f.j.b.e; + +import android.annotation.TargetApi; +import android.app.Activity; +import android.app.Application; +import android.app.Service; +import android.content.Context; +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import android.os.RemoteException; +import android.util.Log; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.j.k; +import b.i.a.f.e.k.d; +import b.i.a.f.h.m.o; +import b.i.a.f.j.b.a; +import com.google.android.gms.nearby.messages.internal.ClientAppContext; +import com.google.android.gms.nearby.messages.internal.zzj; +public final class f extends d { + public final o A = new o<>(); + public final ClientAppContext B; + public final int C; + + @TargetApi(14) + public f(Context context, Looper looper, c.a aVar, c.b bVar, b.i.a.f.e.k.c cVar, a aVar2) { + super(context, looper, 62, cVar, aVar, bVar); + int i; + String str = cVar.e; + int i2 = context instanceof Activity ? 1 : context instanceof Application ? 2 : context instanceof Service ? 3 : 0; + if (aVar2 != null) { + this.B = new ClientAppContext(str, null, false, null, i2); + i = aVar2.j; + } else { + this.B = new ClientAppContext(str, null, false, null, i2); + i = -1; + } + this.C = i; + if (i2 == 1) { + Activity activity = (Activity) context; + if (Log.isLoggable("NearbyMessagesClient", 2)) { + Log.v("NearbyMessagesClient", String.format("Registering ClientLifecycleSafetyNet's ActivityLifecycleCallbacks for %s", activity.getPackageName())); + } + activity.getApplication().registerActivityLifecycleCallbacks(new h(activity, this, null)); + } + } + + public final void G(int i) throws RemoteException { + String str; + if (i == 1) { + str = "ACTIVITY_STOPPED"; + } else if (i == 2) { + str = "CLIENT_DISCONNECTED"; + } else if (Log.isLoggable("NearbyMessagesClient", 5)) { + Log.w("NearbyMessagesClient", String.format("Received unknown/unforeseen client lifecycle event %d, can't do anything with it.", Integer.valueOf(i))); + return; + } else { + return; + } + if (j()) { + zzj zzj = new zzj(i); + if (Log.isLoggable("NearbyMessagesClient", 3)) { + Log.d("NearbyMessagesClient", String.format("Emitting client lifecycle event %s", str)); + } + w().l0(zzj); + } else if (Log.isLoggable("NearbyMessagesClient", 3)) { + Log.d("NearbyMessagesClient", String.format("Failed to emit client lifecycle event %s due to GmsClient being disconnected", str)); + } + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final void h() { + try { + G(2); + } catch (RemoteException e) { + if (Log.isLoggable("NearbyMessagesClient", 2)) { + Log.v("NearbyMessagesClient", String.format("Failed to emit CLIENT_DISCONNECTED from override of GmsClient#disconnect(): %s", e)); + } + } + this.A.a.clear(); + super.h(); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final boolean k() { + return b.i.a.f.j.a.a(this.d); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12451000; + } + + @Override // b.i.a.f.e.k.b + public final /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.nearby.messages.internal.INearbyMessagesService"); + return queryLocalInterface instanceof u0 ? (u0) queryLocalInterface : new v0(iBinder); + } + + @Override // b.i.a.f.e.k.b + @NonNull + public final Bundle u() { + Bundle bundle = new Bundle(); + bundle.putInt("NearbyPermissions", this.C); + bundle.putParcelable("ClientAppContext", this.B); + return bundle; + } + + @Override // b.i.a.f.e.k.b + @NonNull + public final String x() { + return "com.google.android.gms.nearby.messages.internal.INearbyMessagesService"; + } + + @Override // b.i.a.f.e.k.b + @NonNull + public final String y() { + return "com.google.android.gms.nearby.messages.service.NearbyMessagesService.START"; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/f0.java b/app/src/main/java/b/i/a/f/j/b/e/f0.java new file mode 100644 index 0000000000..1949d08098 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/f0.java @@ -0,0 +1,77 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.Strategy; +import com.google.android.gms.nearby.messages.internal.ClientAppContext; +import com.google.android.gms.nearby.messages.internal.zzaf; +import com.google.android.gms.nearby.messages.internal.zzbz; +public final class f0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzbz createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + zzaf zzaf = null; + Strategy strategy = null; + IBinder iBinder = null; + String str = null; + String str2 = null; + IBinder iBinder2 = null; + ClientAppContext clientAppContext = null; + int i = 0; + boolean z2 = false; + boolean z3 = false; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + zzaf = (zzaf) d.P(parcel, readInt, zzaf.CREATOR); + break; + case 3: + strategy = (Strategy) d.P(parcel, readInt, Strategy.CREATOR); + break; + case 4: + iBinder = d.D1(parcel, readInt); + break; + case 5: + str = d.Q(parcel, readInt); + break; + case 6: + str2 = d.Q(parcel, readInt); + break; + case 7: + z2 = d.C1(parcel, readInt); + break; + case 8: + iBinder2 = d.D1(parcel, readInt); + break; + case 9: + z3 = d.C1(parcel, readInt); + break; + case 10: + clientAppContext = (ClientAppContext) d.P(parcel, readInt, ClientAppContext.CREATOR); + break; + case 11: + i2 = d.E1(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzbz(i, zzaf, strategy, iBinder, str, str2, z2, iBinder2, z3, clientAppContext, i2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzbz[] newArray(int i) { + return new zzbz[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/g0.java b/app/src/main/java/b/i/a/f/j/b/e/g0.java new file mode 100644 index 0000000000..a9e5c82202 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/g0.java @@ -0,0 +1,55 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.internal.ClientAppContext; +import com.google.android.gms.nearby.messages.internal.zzcb; +public final class g0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzcb createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + IBinder iBinder = null; + IBinder iBinder2 = null; + String str = null; + ClientAppContext clientAppContext = null; + int i = 0; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + iBinder = d.D1(parcel, readInt); + break; + case 3: + iBinder2 = d.D1(parcel, readInt); + break; + case 4: + z2 = d.C1(parcel, readInt); + break; + case 5: + str = d.Q(parcel, readInt); + break; + case 6: + clientAppContext = (ClientAppContext) d.P(parcel, readInt, ClientAppContext.CREATOR); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzcb(i, iBinder, iBinder2, z2, str, clientAppContext); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzcb[] newArray(int i) { + return new zzcb[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/h.java b/app/src/main/java/b/i/a/f/j/b/e/h.java new file mode 100644 index 0000000000..c0e05e40f2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/h.java @@ -0,0 +1,61 @@ +package b.i.a.f.j.b.e; + +import android.annotation.TargetApi; +import android.app.Activity; +import android.app.Application; +import android.os.Bundle; +import android.os.RemoteException; +import android.util.Log; +@TargetApi(14) +public final class h implements Application.ActivityLifecycleCallbacks { + public final Activity j; + public final f k; + + public h(Activity activity, f fVar, g gVar) { + this.j = activity; + this.k = fVar; + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityCreated(Activity activity, Bundle bundle) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityDestroyed(Activity activity) { + if (activity == this.j) { + if (Log.isLoggable("NearbyMessagesClient", 2)) { + Log.v("NearbyMessagesClient", String.format("Unregistering ClientLifecycleSafetyNet's ActivityLifecycleCallbacks for %s", activity.getPackageName())); + } + activity.getApplication().unregisterActivityLifecycleCallbacks(this); + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityPaused(Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityResumed(Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStarted(Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStopped(Activity activity) { + if (activity == this.j) { + try { + this.k.G(1); + } catch (RemoteException e) { + if (Log.isLoggable("NearbyMessagesClient", 2)) { + Log.v("NearbyMessagesClient", String.format("Failed to emit ACTIVITY_STOPPED from ClientLifecycleSafetyNet for Activity %s: %s", activity.getPackageName(), e)); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/h0.java b/app/src/main/java/b/i/a/f/j/b/e/h0.java new file mode 100644 index 0000000000..8f03d7e83d --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/h0.java @@ -0,0 +1,102 @@ +package b.i.a.f.j.b.e; + +import android.app.PendingIntent; +import android.os.IBinder; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.MessageFilter; +import com.google.android.gms.nearby.messages.Strategy; +import com.google.android.gms.nearby.messages.internal.ClientAppContext; +import com.google.android.gms.nearby.messages.internal.SubscribeRequest; +public final class h0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final SubscribeRequest createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + IBinder iBinder = null; + Strategy strategy = null; + IBinder iBinder2 = null; + MessageFilter messageFilter = null; + PendingIntent pendingIntent = null; + String str = null; + String str2 = null; + byte[] bArr = null; + IBinder iBinder3 = null; + ClientAppContext clientAppContext = null; + int i = 0; + int i2 = 0; + boolean z2 = false; + boolean z3 = false; + boolean z4 = false; + int i3 = 0; + int i4 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + iBinder = d.D1(parcel, readInt); + break; + case 3: + strategy = (Strategy) d.P(parcel, readInt, Strategy.CREATOR); + break; + case 4: + iBinder2 = d.D1(parcel, readInt); + break; + case 5: + messageFilter = (MessageFilter) d.P(parcel, readInt, MessageFilter.CREATOR); + break; + case 6: + pendingIntent = (PendingIntent) d.P(parcel, readInt, PendingIntent.CREATOR); + break; + case 7: + i2 = d.E1(parcel, readInt); + break; + case 8: + str = d.Q(parcel, readInt); + break; + case 9: + str2 = d.Q(parcel, readInt); + break; + case 10: + bArr = d.N(parcel, readInt); + break; + case 11: + z2 = d.C1(parcel, readInt); + break; + case 12: + iBinder3 = d.D1(parcel, readInt); + break; + case 13: + z3 = d.C1(parcel, readInt); + break; + case 14: + clientAppContext = (ClientAppContext) d.P(parcel, readInt, ClientAppContext.CREATOR); + break; + case 15: + z4 = d.C1(parcel, readInt); + break; + case 16: + i3 = d.E1(parcel, readInt); + break; + case 17: + i4 = d.E1(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new SubscribeRequest(i, iBinder, strategy, iBinder2, messageFilter, pendingIntent, i2, str, str2, bArr, z2, iBinder3, z3, clientAppContext, z4, i3, i4); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ SubscribeRequest[] newArray(int i) { + return new SubscribeRequest[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/i.java b/app/src/main/java/b/i/a/f/j/b/e/i.java new file mode 100644 index 0000000000..6f40d900e4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/i.java @@ -0,0 +1,126 @@ +package b.i.a.f.j.b.e; + +import android.app.Activity; +import android.os.Handler; +import android.os.Looper; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.b; +import b.i.a.f.e.h.j.c0; +import b.i.a.f.e.h.j.d0; +import b.i.a.f.e.h.j.g; +import b.i.a.f.e.h.j.k; +import b.i.a.f.e.h.j.n0; +import b.i.a.f.e.k.c; +import b.i.a.f.n.b0; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.nearby.messages.Message; +import com.google.android.gms.nearby.messages.MessageListener; +import com.google.android.gms.nearby.messages.MessagesClient; +import com.google.android.gms.nearby.messages.PublishOptions; +import com.google.android.gms.nearby.messages.SubscribeOptions; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +public final class i extends MessagesClient { + public static final a.g j; + public static final a.AbstractC0103a k; + public static final a l; + public final int m = 1; + + static { + a.g gVar = new a.g<>(); + j = gVar; + q qVar = new q(); + k = qVar; + l = new a<>("Nearby.MESSAGES_API", qVar, gVar); + } + + public i(Activity activity, @Nullable b.i.a.f.j.b.a aVar) { + super(activity, l, aVar, b.a.a); + activity.getApplication().registerActivityLifecycleCallbacks(new z(activity, this, null)); + } + + public static k j(i iVar, TaskCompletionSource taskCompletionSource) { + Objects.requireNonNull(iVar); + t tVar = new t(taskCompletionSource); + String name = Status.class.getName(); + Looper looper = iVar.e; + d.z(tVar, "Listener must not be null"); + d.z(looper, "Looper must not be null"); + d.z(name, "Listener type must not be null"); + return new k(looper, tVar, name); + } + + @Override // b.i.a.f.e.h.b + public final c.a a() { + return super.a(); + } + + @Override // com.google.android.gms.nearby.messages.MessagesClient + public final Task f(Message message, PublishOptions publishOptions) { + k m = m(message); + return k(m, new j(this, message, new r(this, m(publishOptions.f2976b), m), publishOptions), new k(message)); + } + + @Override // com.google.android.gms.nearby.messages.MessagesClient + public final Task g(MessageListener messageListener, SubscribeOptions subscribeOptions) { + d.o(subscribeOptions.a.f2977s == 0, "Strategy.setBackgroundScanMode() is only supported by background subscribe (the version which takes a PendingIntent)."); + k m = m(messageListener); + return k(m, new l(this, m, new s(this, m(subscribeOptions.c), m), subscribeOptions), new m(m)); + } + + @Override // com.google.android.gms.nearby.messages.MessagesClient + public final Task h(Message message) { + return l(message); + } + + @Override // com.google.android.gms.nearby.messages.MessagesClient + public final Task i(MessageListener messageListener) { + return l(messageListener); + } + + public final Task k(k kVar, a0 a0Var, a0 a0Var2) { + v vVar = new v(this, kVar, a0Var); + k.a aVar = kVar.c; + x xVar = new x(this, aVar, a0Var2); + d.z(kVar.c, "Listener has already been released."); + d.z(aVar, "Listener has already been released."); + d.o(d.g0(kVar.c, aVar), "Listener registration and unregistration methods must be constructed with the same ListenerHolder."); + g gVar = this.i; + Runnable runnable = b.i.a.f.e.h.k.j; + Objects.requireNonNull(gVar); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + n0 n0Var = new n0(new d0(vVar, xVar, runnable), taskCompletionSource); + Handler handler = gVar.f1344x; + handler.sendMessage(handler.obtainMessage(8, new c0(n0Var, gVar.f1343s.get(), this))); + return taskCompletionSource.a; + } + + public final Task l(T t) { + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + String name = t.getClass().getName(); + d.z(t, "Listener must not be null"); + d.z(name, "Listener type must not be null"); + d.v(name, "Listener type must not be empty"); + Task b2 = b(new k.a<>(t, name)); + u uVar = new u(taskCompletionSource); + b0 b0Var = (b0) b2; + Objects.requireNonNull(b0Var); + b0Var.c(b.i.a.f.n.g.a, uVar); + return taskCompletionSource.a; + } + + public final k m(T t) { + if (t == null) { + return null; + } + String name = t.getClass().getName(); + Looper looper = this.e; + d.z(t, "Listener must not be null"); + d.z(looper, "Looper must not be null"); + d.z(name, "Listener type must not be null"); + return new k<>(looper, t, name); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/i0.java b/app/src/main/java/b/i/a/f/j/b/e/i0.java new file mode 100644 index 0000000000..09fe818fa0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/i0.java @@ -0,0 +1,60 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.internal.ClientAppContext; +import com.google.android.gms.nearby.messages.internal.zzaf; +import com.google.android.gms.nearby.messages.internal.zzce; +public final class i0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzce createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + zzaf zzaf = null; + IBinder iBinder = null; + String str = null; + String str2 = null; + ClientAppContext clientAppContext = null; + int i = 0; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + zzaf = (zzaf) d.P(parcel, readInt, zzaf.CREATOR); + break; + case 3: + iBinder = d.D1(parcel, readInt); + break; + case 4: + str = d.Q(parcel, readInt); + break; + case 5: + str2 = d.Q(parcel, readInt); + break; + case 6: + z2 = d.C1(parcel, readInt); + break; + case 7: + clientAppContext = (ClientAppContext) d.P(parcel, readInt, ClientAppContext.CREATOR); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzce(i, zzaf, iBinder, str, str2, z2, clientAppContext); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzce[] newArray(int i) { + return new zzce[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/j.java b/app/src/main/java/b/i/a/f/j/b/e/j.java new file mode 100644 index 0000000000..a227e36345 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/j.java @@ -0,0 +1,36 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.e.h.j.k; +import com.google.android.gms.nearby.messages.Message; +import com.google.android.gms.nearby.messages.PublishOptions; +import com.google.android.gms.nearby.messages.internal.zzaf; +import com.google.android.gms.nearby.messages.internal.zzbz; +import java.util.Objects; +public final /* synthetic */ class j implements a0 { + public final i a; + + /* renamed from: b reason: collision with root package name */ + public final Message f1569b; + public final b0 c; + public final PublishOptions d; + + public j(i iVar, Message message, b0 b0Var, PublishOptions publishOptions) { + this.a = iVar; + this.f1569b = message; + this.c = b0Var; + this.d = publishOptions; + } + + @Override // b.i.a.f.j.b.e.a0 + public final void a(f fVar, k kVar) { + i iVar = this.a; + Message message = this.f1569b; + b0 b0Var = this.c; + PublishOptions publishOptions = this.d; + Objects.requireNonNull(iVar); + zzaf zzaf = new zzaf(1, message); + int i = iVar.m; + Objects.requireNonNull(fVar); + fVar.w().m(new zzbz(2, zzaf, publishOptions.a, new b.i.a.f.h.m.j(kVar), null, null, false, b0Var, false, null, i)); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/j0.java b/app/src/main/java/b/i/a/f/j/b/e/j0.java new file mode 100644 index 0000000000..0537a11be3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/j0.java @@ -0,0 +1,68 @@ +package b.i.a.f.j.b.e; + +import android.app.PendingIntent; +import android.os.IBinder; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.internal.ClientAppContext; +import com.google.android.gms.nearby.messages.internal.zzcg; +public final class j0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzcg createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + IBinder iBinder = null; + IBinder iBinder2 = null; + PendingIntent pendingIntent = null; + String str = null; + String str2 = null; + ClientAppContext clientAppContext = null; + int i = 0; + int i2 = 0; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + iBinder = d.D1(parcel, readInt); + break; + case 3: + iBinder2 = d.D1(parcel, readInt); + break; + case 4: + pendingIntent = (PendingIntent) d.P(parcel, readInt, PendingIntent.CREATOR); + break; + case 5: + i2 = d.E1(parcel, readInt); + break; + case 6: + str = d.Q(parcel, readInt); + break; + case 7: + str2 = d.Q(parcel, readInt); + break; + case 8: + z2 = d.C1(parcel, readInt); + break; + case 9: + clientAppContext = (ClientAppContext) d.P(parcel, readInt, ClientAppContext.CREATOR); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzcg(i, iBinder, iBinder2, pendingIntent, i2, str, str2, z2, clientAppContext); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzcg[] newArray(int i) { + return new zzcg[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/k.java b/app/src/main/java/b/i/a/f/j/b/e/k.java new file mode 100644 index 0000000000..0c03f5dd3c --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/k.java @@ -0,0 +1,21 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.h.m.j; +import com.google.android.gms.nearby.messages.Message; +import com.google.android.gms.nearby.messages.internal.zzaf; +import com.google.android.gms.nearby.messages.internal.zzce; +import java.util.Objects; +public final /* synthetic */ class k implements a0 { + public final Message a; + + public k(Message message) { + this.a = message; + } + + @Override // b.i.a.f.j.b.e.a0 + public final void a(f fVar, b.i.a.f.e.h.j.k kVar) { + zzaf zzaf = new zzaf(1, this.a); + Objects.requireNonNull(fVar); + fVar.w().P(new zzce(1, zzaf, new j(kVar), null, null, false, null)); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/k0.java b/app/src/main/java/b/i/a/f/j/b/e/k0.java new file mode 100644 index 0000000000..e0028a4a84 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/k0.java @@ -0,0 +1,61 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.nearby.zzgs; +import com.google.android.gms.nearby.messages.Message; +import com.google.android.gms.nearby.messages.internal.Update; +import com.google.android.gms.nearby.messages.internal.zza; +import com.google.android.gms.nearby.messages.internal.zze; +public final class k0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final Update createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Message message = null; + zze zze = null; + zza zza = null; + zzgs zzgs = null; + byte[] bArr = null; + int i = 0; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + i2 = d.E1(parcel, readInt); + break; + case 3: + message = (Message) d.P(parcel, readInt, Message.CREATOR); + break; + case 4: + zze = (zze) d.P(parcel, readInt, zze.CREATOR); + break; + case 5: + zza = (zza) d.P(parcel, readInt, zza.CREATOR); + break; + case 6: + zzgs = (zzgs) d.P(parcel, readInt, zzgs.CREATOR); + break; + case 7: + bArr = d.N(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new Update(i, i2, message, zze, zza, zzgs, bArr); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ Update[] newArray(int i) { + return new Update[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/l.java b/app/src/main/java/b/i/a/f/j/b/e/l.java new file mode 100644 index 0000000000..151fda2f91 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/l.java @@ -0,0 +1,39 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.e.h.j.k; +import b.i.a.f.h.m.h; +import b.i.a.f.h.m.j; +import b.i.a.f.h.m.o; +import com.google.android.gms.nearby.messages.SubscribeOptions; +import com.google.android.gms.nearby.messages.internal.SubscribeRequest; +import java.lang.ref.WeakReference; +public final /* synthetic */ class l implements a0 { + public final i a; + + /* renamed from: b reason: collision with root package name */ + public final k f1570b; + public final d0 c; + public final SubscribeOptions d; + + public l(i iVar, k kVar, d0 d0Var, SubscribeOptions subscribeOptions) { + this.a = iVar; + this.f1570b = kVar; + this.c = d0Var; + this.d = subscribeOptions; + } + + @Override // b.i.a.f.j.b.e.a0 + public final void a(f fVar, k kVar) { + i iVar = this.a; + k kVar2 = this.f1570b; + d0 d0Var = this.c; + SubscribeOptions subscribeOptions = this.d; + int i = iVar.m; + if (!fVar.A.a(kVar2.c)) { + o oVar = fVar.A; + oVar.a.put(kVar2.c, new WeakReference<>(new h(kVar2))); + } + fVar.w().D(new SubscribeRequest(3, fVar.A.b(kVar2.c), subscribeOptions.a, new j(kVar), subscribeOptions.f2978b, null, 0, null, null, null, false, d0Var, false, null, subscribeOptions.d, 0, i)); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/l0.java b/app/src/main/java/b/i/a/f/j/b/e/l0.java new file mode 100644 index 0000000000..0838764e1d --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/l0.java @@ -0,0 +1,53 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.internal.ClientAppContext; +public final class l0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final ClientAppContext createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + String str3 = null; + int i = 0; + boolean z2 = false; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + str = d.Q(parcel, readInt); + break; + case 3: + str2 = d.Q(parcel, readInt); + break; + case 4: + z2 = d.C1(parcel, readInt); + break; + case 5: + i2 = d.E1(parcel, readInt); + break; + case 6: + str3 = d.Q(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new ClientAppContext(i, str, str2, z2, i2, str3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ ClientAppContext[] newArray(int i) { + return new ClientAppContext[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/m.java b/app/src/main/java/b/i/a/f/j/b/e/m.java new file mode 100644 index 0000000000..8168c2ed17 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/m.java @@ -0,0 +1,30 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.e.h.j.k; +import b.i.a.f.h.m.j; +import b.i.a.f.h.m.o; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.nearby.messages.internal.zzcg; +import java.util.Objects; +public final /* synthetic */ class m implements a0 { + public final k a; + + public m(k kVar) { + this.a = kVar; + } + + @Override // b.i.a.f.j.b.e.a0 + public final void a(f fVar, k kVar) { + k kVar2 = this.a; + Objects.requireNonNull(fVar); + j jVar = new j(kVar); + if (!fVar.A.a(kVar2.c)) { + jVar.g(new Status(0, null)); + return; + } + fVar.w().m0(new zzcg(1, fVar.A.b(kVar2.c), jVar, null, 0, null, null, false, null)); + o oVar = fVar.A; + oVar.a.remove(kVar2.c); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/m0.java b/app/src/main/java/b/i/a/f/j/b/e/m0.java new file mode 100644 index 0000000000..2f10d0c5d2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/m0.java @@ -0,0 +1,38 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.internal.zze; +public final class m0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zze createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + double d = 0.0d; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + i = d.E1(parcel, readInt); + } else if (i3 == 2) { + i2 = d.E1(parcel, readInt); + } else if (i3 != 3) { + d.b2(parcel, readInt); + } else { + d.w2(parcel, readInt, 8); + d = parcel.readDouble(); + } + } + d.e0(parcel, k2); + return new zze(i, i2, d); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zze[] newArray(int i) { + return new zze[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/n.java b/app/src/main/java/b/i/a/f/j/b/e/n.java new file mode 100644 index 0000000000..486058a6e3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/n.java @@ -0,0 +1,28 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.e.h.j.k; +import b.i.a.f.h.m.j; +import b.i.a.f.h.m.m; +import b.i.a.f.h.m.o; +import com.google.android.gms.nearby.messages.internal.zzcb; +import java.lang.ref.WeakReference; +public final /* synthetic */ class n implements a0 { + public final k a; + + public n(k kVar) { + this.a = kVar; + } + + @Override // b.i.a.f.j.b.e.a0 + public final void a(f fVar, k kVar) { + k kVar2 = this.a; + if (!fVar.A.a(kVar2.c)) { + o oVar = fVar.A; + oVar.a.put(kVar2.c, new WeakReference<>(new m(kVar2))); + } + zzcb zzcb = new zzcb(1, new j(kVar), fVar.A.b(kVar2.c), false, null, null); + zzcb.m = true; + fVar.w().s(zzcb); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/n0.java b/app/src/main/java/b/i/a/f/j/b/e/n0.java new file mode 100644 index 0000000000..206f5aa59d --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/n0.java @@ -0,0 +1,38 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.internal.ClientAppContext; +import com.google.android.gms.nearby.messages.internal.zzj; +public final class n0 implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzj createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + ClientAppContext clientAppContext = null; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + i = d.E1(parcel, readInt); + } else if (i3 == 2) { + clientAppContext = (ClientAppContext) d.P(parcel, readInt, ClientAppContext.CREATOR); + } else if (i3 != 3) { + d.b2(parcel, readInt); + } else { + i2 = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzj(i, clientAppContext, i2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzj[] newArray(int i) { + return new zzj[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/o.java b/app/src/main/java/b/i/a/f/j/b/e/o.java new file mode 100644 index 0000000000..53e99ecd04 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/o.java @@ -0,0 +1,31 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.e.h.j.k; +import b.i.a.f.h.m.j; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.nearby.messages.internal.zzcb; +import java.util.Objects; +public final /* synthetic */ class o implements a0 { + public final k a; + + public o(k kVar) { + this.a = kVar; + } + + @Override // b.i.a.f.j.b.e.a0 + public final void a(f fVar, k kVar) { + k kVar2 = this.a; + Objects.requireNonNull(fVar); + j jVar = new j(kVar); + if (!fVar.A.a(kVar2.c)) { + jVar.g(new Status(0, null)); + return; + } + zzcb zzcb = new zzcb(1, jVar, fVar.A.b(kVar2.c), false, null, null); + zzcb.m = false; + fVar.w().s(zzcb); + b.i.a.f.h.m.o oVar = fVar.A; + oVar.a.remove(kVar2.c); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/o0.java b/app/src/main/java/b/i/a/f/j/b/e/o0.java new file mode 100644 index 0000000000..de9f1df2b7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/o0.java @@ -0,0 +1,5 @@ +package b.i.a.f.j.b.e; + +import android.os.IInterface; +public interface o0 extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/p.java b/app/src/main/java/b/i/a/f/j/b/e/p.java new file mode 100644 index 0000000000..221cb9aae4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/p.java @@ -0,0 +1,12 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.e.h.j.k; +public final /* synthetic */ class p implements a0 { + public p(int i) { + } + + @Override // b.i.a.f.j.b.e.a0 + public final void a(f fVar, k kVar) { + fVar.G(1); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/p0.java b/app/src/main/java/b/i/a/f/j/b/e/p0.java new file mode 100644 index 0000000000..71afca7096 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/p0.java @@ -0,0 +1,27 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.m.b; +import b.i.a.f.h.m.c; +import b.i.a.f.h.m.h; +import b.i.a.f.h.m.i; +import com.google.android.gms.nearby.messages.internal.Update; +import com.google.android.gms.nearby.messages.internal.zzaf; +public abstract class p0 extends b implements o0 { + public p0() { + super("com.google.android.gms.nearby.messages.internal.IMessageListener"); + } + + @Override // b.i.a.f.h.m.b + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i == 1 || i == 2) { + zzaf zzaf = (zzaf) c.a(parcel, zzaf.CREATOR); + } else if (i != 4) { + return false; + } else { + ((h) this).a.a(new i(parcel.createTypedArrayList(Update.CREATOR))); + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/q.java b/app/src/main/java/b/i/a/f/j/b/e/q.java new file mode 100644 index 0000000000..2b0ab3b317 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/q.java @@ -0,0 +1,15 @@ +package b.i.a.f.j.b.e; + +import android.content.Context; +import android.os.Looper; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +public final class q extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.c$a, b.i.a.f.e.h.c$b] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final /* synthetic */ f a(Context context, Looper looper, c cVar, b.i.a.f.j.b.a aVar, c.a aVar2, c.b bVar) { + return new f(context, looper, aVar2, bVar, cVar, aVar); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/q0.java b/app/src/main/java/b/i/a/f/j/b/e/q0.java new file mode 100644 index 0000000000..c550773d8b --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/q0.java @@ -0,0 +1,9 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.h.m.a; +public final class q0 extends a implements o0 { + public q0(IBinder iBinder) { + super(iBinder, "com.google.android.gms.nearby.messages.internal.IMessageListener"); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/r.java b/app/src/main/java/b/i/a/f/j/b/e/r.java new file mode 100644 index 0000000000..0086c87853 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/r.java @@ -0,0 +1,14 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.e.h.j.k; +public final class r extends b0 { + public final /* synthetic */ k c; + public final /* synthetic */ i d; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public r(i iVar, k kVar, k kVar2) { + super(kVar); + this.d = iVar; + this.c = kVar2; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/r0.java b/app/src/main/java/b/i/a/f/j/b/e/r0.java new file mode 100644 index 0000000000..48ed344578 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/r0.java @@ -0,0 +1,5 @@ +package b.i.a.f.j.b.e; + +import android.os.IInterface; +public interface r0 extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/s.java b/app/src/main/java/b/i/a/f/j/b/e/s.java new file mode 100644 index 0000000000..c68c92914b --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/s.java @@ -0,0 +1,14 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.e.h.j.k; +public final class s extends d0 { + public final /* synthetic */ k c; + public final /* synthetic */ i d; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public s(i iVar, k kVar, k kVar2) { + super(kVar); + this.d = iVar; + this.c = kVar2; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/s0.java b/app/src/main/java/b/i/a/f/j/b/e/s0.java new file mode 100644 index 0000000000..a365fa27ef --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/s0.java @@ -0,0 +1,22 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.m.b; +import b.i.a.f.h.m.c; +import b.i.a.f.h.m.j; +import com.google.android.gms.common.api.Status; +public abstract class s0 extends b implements r0 { + public s0() { + super("com.google.android.gms.nearby.messages.internal.INearbyMessagesCallback"); + } + + @Override // b.i.a.f.h.m.b + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i != 1) { + return false; + } + ((j) this).g((Status) c.a(parcel, Status.CREATOR)); + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/t.java b/app/src/main/java/b/i/a/f/j/b/e/t.java new file mode 100644 index 0000000000..acf9c75f74 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/t.java @@ -0,0 +1,25 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.e.h.j.e; +import com.google.android.gms.common.api.ApiException; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.tasks.TaskCompletionSource; +public final class t implements e { + public final /* synthetic */ TaskCompletionSource a; + + public t(TaskCompletionSource taskCompletionSource) { + this.a = taskCompletionSource; + } + + @Override // b.i.a.f.e.h.j.e + public final void a(Status status) { + TaskCompletionSource taskCompletionSource = this.a; + taskCompletionSource.a.s(new ApiException(status)); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.e.h.j.e + public final void b(Status status) { + this.a.a.t(null); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/t0.java b/app/src/main/java/b/i/a/f/j/b/e/t0.java new file mode 100644 index 0000000000..8f2c2a3c34 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/t0.java @@ -0,0 +1,9 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.h.m.a; +public final class t0 extends a implements r0 { + public t0(IBinder iBinder) { + super(iBinder, "com.google.android.gms.nearby.messages.internal.INearbyMessagesCallback"); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/u.java b/app/src/main/java/b/i/a/f/j/b/e/u.java new file mode 100644 index 0000000000..9e2e0a56a3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/u.java @@ -0,0 +1,23 @@ +package b.i.a.f.j.b.e; + +import androidx.annotation.NonNull; +import b.i.a.f.n.c; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +public final class u implements c { + public final /* synthetic */ TaskCompletionSource a; + + public u(TaskCompletionSource taskCompletionSource) { + this.a = taskCompletionSource; + } + + @Override // b.i.a.f.n.c + public final void onComplete(@NonNull Task task) { + if (task.p()) { + this.a.a.t(null); + return; + } + TaskCompletionSource taskCompletionSource = this.a; + taskCompletionSource.a.s(task.k()); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/u0.java b/app/src/main/java/b/i/a/f/j/b/e/u0.java new file mode 100644 index 0000000000..17dd58d3e4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/u0.java @@ -0,0 +1,23 @@ +package b.i.a.f.j.b.e; + +import android.os.IInterface; +import android.os.RemoteException; +import com.google.android.gms.nearby.messages.internal.SubscribeRequest; +import com.google.android.gms.nearby.messages.internal.zzbz; +import com.google.android.gms.nearby.messages.internal.zzcb; +import com.google.android.gms.nearby.messages.internal.zzce; +import com.google.android.gms.nearby.messages.internal.zzcg; +import com.google.android.gms.nearby.messages.internal.zzj; +public interface u0 extends IInterface { + void D(SubscribeRequest subscribeRequest) throws RemoteException; + + void P(zzce zzce) throws RemoteException; + + void l0(zzj zzj) throws RemoteException; + + void m(zzbz zzbz) throws RemoteException; + + void m0(zzcg zzcg) throws RemoteException; + + void s(zzcb zzcb) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/v.java b/app/src/main/java/b/i/a/f/j/b/e/v.java new file mode 100644 index 0000000000..607a5fd329 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/v.java @@ -0,0 +1,17 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.e.h.j.k; +import b.i.a.f.e.h.j.m; +public final class v extends m { + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ a0 f1571b; + public final /* synthetic */ i c; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public v(i iVar, k kVar, a0 a0Var) { + super(kVar); + this.c = iVar; + this.f1571b = a0Var; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/v0.java b/app/src/main/java/b/i/a/f/j/b/e/v0.java new file mode 100644 index 0000000000..120b65e0a5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/v0.java @@ -0,0 +1,60 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.m.a; +import b.i.a.f.h.m.c; +import com.google.android.gms.nearby.messages.internal.SubscribeRequest; +import com.google.android.gms.nearby.messages.internal.zzbz; +import com.google.android.gms.nearby.messages.internal.zzcb; +import com.google.android.gms.nearby.messages.internal.zzce; +import com.google.android.gms.nearby.messages.internal.zzcg; +import com.google.android.gms.nearby.messages.internal.zzj; +public final class v0 extends a implements u0 { + public v0(IBinder iBinder) { + super(iBinder, "com.google.android.gms.nearby.messages.internal.INearbyMessagesService"); + } + + @Override // b.i.a.f.j.b.e.u0 + public final void D(SubscribeRequest subscribeRequest) throws RemoteException { + Parcel e = e(); + c.b(e, subscribeRequest); + g(3, e); + } + + @Override // b.i.a.f.j.b.e.u0 + public final void P(zzce zzce) throws RemoteException { + Parcel e = e(); + c.b(e, zzce); + g(2, e); + } + + @Override // b.i.a.f.j.b.e.u0 + public final void l0(zzj zzj) throws RemoteException { + Parcel e = e(); + c.b(e, zzj); + g(9, e); + } + + @Override // b.i.a.f.j.b.e.u0 + public final void m(zzbz zzbz) throws RemoteException { + Parcel e = e(); + c.b(e, zzbz); + g(1, e); + } + + @Override // b.i.a.f.j.b.e.u0 + public final void m0(zzcg zzcg) throws RemoteException { + Parcel e = e(); + c.b(e, zzcg); + g(4, e); + } + + @Override // b.i.a.f.j.b.e.u0 + public final void s(zzcb zzcb) throws RemoteException { + Parcel e = e(); + c.b(e, zzcb); + g(8, e); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/w.java b/app/src/main/java/b/i/a/f/j/b/e/w.java new file mode 100644 index 0000000000..486e705ed6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/w.java @@ -0,0 +1,37 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.internal.zza; +public final class w implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zza createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + int i2 = 0; + int i3 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i4 = 65535 & readInt; + if (i4 == 1) { + i = d.E1(parcel, readInt); + } else if (i4 == 2) { + i2 = d.E1(parcel, readInt); + } else if (i4 != 3) { + d.b2(parcel, readInt); + } else { + i3 = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zza(i, i2, i3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zza[] newArray(int i) { + return new zza[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/w0.java b/app/src/main/java/b/i/a/f/j/b/e/w0.java new file mode 100644 index 0000000000..a3a7f6140d --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/w0.java @@ -0,0 +1,5 @@ +package b.i.a.f.j.b.e; + +import android.os.IInterface; +public interface w0 extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/x.java b/app/src/main/java/b/i/a/f/j/b/e/x.java new file mode 100644 index 0000000000..3a9d7a4038 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/x.java @@ -0,0 +1,17 @@ +package b.i.a.f.j.b.e; + +import b.i.a.f.e.h.j.k; +import b.i.a.f.e.h.j.q; +public final class x extends q { + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ a0 f1572b; + public final /* synthetic */ i c; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public x(i iVar, k.a aVar, a0 a0Var) { + super(aVar); + this.c = iVar; + this.f1572b = a0Var; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/x0.java b/app/src/main/java/b/i/a/f/j/b/e/x0.java new file mode 100644 index 0000000000..3c65376244 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/x0.java @@ -0,0 +1,25 @@ +package b.i.a.f.j.b.e; + +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.e.h.j.k; +import b.i.a.f.h.m.b; +public abstract class x0 extends b implements w0 { + public x0() { + super("com.google.android.gms.nearby.messages.internal.IPublishCallback"); + } + + @Override // b.i.a.f.h.m.b + public final boolean e(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i != 1) { + return false; + } + r rVar = (r) this; + rVar.d.b(rVar.c.c); + k kVar = rVar.f1567b; + if (kVar != null) { + kVar.a(b0.a); + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/y.java b/app/src/main/java/b/i/a/f/j/b/e/y.java new file mode 100644 index 0000000000..9f9d5a4df3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/y.java @@ -0,0 +1,20 @@ +package b.i.a.f.j.b.e; + +import android.os.RemoteException; +import b.i.a.f.e.h.j.p; +import com.google.android.gms.tasks.TaskCompletionSource; +public final class y extends p { + public final /* synthetic */ a0 c; + public final /* synthetic */ i d; + + public y(i iVar, a0 a0Var) { + this.d = iVar; + this.c = a0Var; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.f.e.h.a$b, com.google.android.gms.tasks.TaskCompletionSource] */ + @Override // b.i.a.f.e.h.j.p + public final /* synthetic */ void c(f fVar, TaskCompletionSource taskCompletionSource) throws RemoteException { + this.c.a(fVar, i.j(this.d, taskCompletionSource)); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/y0.java b/app/src/main/java/b/i/a/f/j/b/e/y0.java new file mode 100644 index 0000000000..b4da48f7b7 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/y0.java @@ -0,0 +1,9 @@ +package b.i.a.f.j.b.e; + +import android.os.IBinder; +import b.i.a.f.h.m.a; +public final class y0 extends a implements w0 { + public y0(IBinder iBinder) { + super(iBinder, "com.google.android.gms.nearby.messages.internal.IPublishCallback"); + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/z.java b/app/src/main/java/b/i/a/f/j/b/e/z.java new file mode 100644 index 0000000000..49dc3711e5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/z.java @@ -0,0 +1,51 @@ +package b.i.a.f.j.b.e; + +import android.app.Activity; +import android.app.Application; +import android.os.Bundle; +import android.util.Log; +public final class z implements Application.ActivityLifecycleCallbacks { + public final Activity j; + public final i k; + + public z(Activity activity, i iVar, q qVar) { + this.j = activity; + this.k = iVar; + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityCreated(Activity activity, Bundle bundle) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityDestroyed(Activity activity) { + if (activity == this.j) { + Log.v("NearbyMessages", String.format("Unregistering ClientLifecycleSafetyNet's ActivityLifecycleCallbacks for %s", activity.getPackageName())); + activity.getApplication().unregisterActivityLifecycleCallbacks(this); + } + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityPaused(Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityResumed(Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStarted(Activity activity) { + } + + @Override // android.app.Application.ActivityLifecycleCallbacks + public final void onActivityStopped(Activity activity) { + if (activity == this.j) { + i iVar = this.k; + iVar.c(new y(iVar, new p(1))); + } + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/e/z0.java b/app/src/main/java/b/i/a/f/j/b/e/z0.java new file mode 100644 index 0000000000..98fd229b66 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/e/z0.java @@ -0,0 +1,5 @@ +package b.i.a.f.j.b.e; + +import android.os.IInterface; +public interface z0 extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/j/b/f.java b/app/src/main/java/b/i/a/f/j/b/f.java new file mode 100644 index 0000000000..4c196e1e11 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/f.java @@ -0,0 +1,47 @@ +package b.i.a.f.j.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.nearby.zzgs; +import com.google.android.gms.nearby.messages.Message; +public final class f implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final Message createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + byte[] bArr = null; + String str = null; + String str2 = null; + zzgs[] zzgsArr = null; + long j = 0; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + bArr = d.N(parcel, readInt); + } else if (i2 == 2) { + str2 = d.Q(parcel, readInt); + } else if (i2 == 3) { + str = d.Q(parcel, readInt); + } else if (i2 == 4) { + zzgsArr = (zzgs[]) d.T(parcel, readInt, zzgs.CREATOR); + } else if (i2 == 5) { + j = d.F1(parcel, readInt); + } else if (i2 != 1000) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new Message(i, bArr, str, str2, zzgsArr, j); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ Message[] newArray(int i) { + return new Message[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/g.java b/app/src/main/java/b/i/a/f/j/b/g.java new file mode 100644 index 0000000000..78e224e0ac --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/g.java @@ -0,0 +1,50 @@ +package b.i.a.f.j.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.internal.nearby.zzgp; +import com.google.android.gms.internal.nearby.zzgu; +import com.google.android.gms.nearby.messages.MessageFilter; +import com.google.android.gms.nearby.messages.internal.zzad; +import java.util.ArrayList; +public final class g implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final MessageFilter createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + ArrayList arrayList = null; + ArrayList arrayList2 = null; + ArrayList arrayList3 = null; + int i = 0; + boolean z2 = false; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + arrayList = d.U(parcel, readInt, zzad.CREATOR); + } else if (i3 == 2) { + arrayList2 = d.U(parcel, readInt, zzgu.CREATOR); + } else if (i3 == 3) { + z2 = d.C1(parcel, readInt); + } else if (i3 == 4) { + arrayList3 = d.U(parcel, readInt, zzgp.CREATOR); + } else if (i3 == 5) { + i2 = d.E1(parcel, readInt); + } else if (i3 != 1000) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new MessageFilter(i, arrayList, arrayList2, z2, arrayList3, i2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ MessageFilter[] newArray(int i) { + return new MessageFilter[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/j/b/j.java b/app/src/main/java/b/i/a/f/j/b/j.java new file mode 100644 index 0000000000..2d4475d233 --- /dev/null +++ b/app/src/main/java/b/i/a/f/j/b/j.java @@ -0,0 +1,63 @@ +package b.i.a.f.j.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.nearby.messages.Strategy; +public final class j implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final Strategy createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + int i2 = 0; + int i3 = 0; + int i4 = 0; + boolean z2 = false; + int i5 = 0; + int i6 = 0; + int i7 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i8 = 65535 & readInt; + if (i8 != 1000) { + switch (i8) { + case 1: + i2 = d.E1(parcel, readInt); + continue; + case 2: + i3 = d.E1(parcel, readInt); + continue; + case 3: + i4 = d.E1(parcel, readInt); + continue; + case 4: + z2 = d.C1(parcel, readInt); + continue; + case 5: + i5 = d.E1(parcel, readInt); + continue; + case 6: + i6 = d.E1(parcel, readInt); + continue; + case 7: + i7 = d.E1(parcel, readInt); + continue; + default: + d.b2(parcel, readInt); + continue; + } + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new Strategy(i, i2, i3, i4, z2, i5, i6, i7); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ Strategy[] newArray(int i) { + return new Strategy[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/k/a.java b/app/src/main/java/b/i/a/f/k/a.java new file mode 100644 index 0000000000..c836e9f869 --- /dev/null +++ b/app/src/main/java/b/i/a/f/k/a.java @@ -0,0 +1,24 @@ +package b.i.a.f.k; + +import b.i.a.f.e.h.a; +import b.i.a.f.h.o.i; +import b.i.a.f.h.o.l; +import com.google.android.gms.safetynet.SafetyNetApi; +public final class a { + public static final a.g a; + + /* renamed from: b reason: collision with root package name */ + public static final a.AbstractC0103a f1573b; + @Deprecated + public static final b.i.a.f.e.h.a c; + @Deprecated + public static final SafetyNetApi d = new i(); + + static { + a.g gVar = new a.g<>(); + a = gVar; + h hVar = new h(); + f1573b = hVar; + c = new b.i.a.f.e.h.a<>("SafetyNet.API", hVar, gVar); + } +} diff --git a/app/src/main/java/b/i/a/f/k/b.java b/app/src/main/java/b/i/a/f/k/b.java new file mode 100644 index 0000000000..b90f82b6d3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/k/b.java @@ -0,0 +1,30 @@ +package b.i.a.f.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.safetynet.zza; +public final class b implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zza createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 2) { + d.b2(parcel, readInt); + } else { + str = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zza(str); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zza[] newArray(int i) { + return new zza[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/k/c.java b/app/src/main/java/b/i/a/f/k/c.java new file mode 100644 index 0000000000..d9abb65f78 --- /dev/null +++ b/app/src/main/java/b/i/a/f/k/c.java @@ -0,0 +1,37 @@ +package b.i.a.f.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.safetynet.HarmfulAppsData; +public final class c implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final HarmfulAppsData createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + byte[] bArr = null; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 2) { + str = d.Q(parcel, readInt); + } else if (i2 == 3) { + bArr = d.N(parcel, readInt); + } else if (i2 != 4) { + d.b2(parcel, readInt); + } else { + i = d.E1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new HarmfulAppsData(str, bArr, i); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ HarmfulAppsData[] newArray(int i) { + return new HarmfulAppsData[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/k/d.java b/app/src/main/java/b/i/a/f/k/d.java new file mode 100644 index 0000000000..4bc1e92d2b --- /dev/null +++ b/app/src/main/java/b/i/a/f/k/d.java @@ -0,0 +1,40 @@ +package b.i.a.f.k; + +import android.os.Parcel; +import android.os.Parcelable; +import com.google.android.gms.safetynet.HarmfulAppsData; +import com.google.android.gms.safetynet.zzd; +public final class d implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzd createFromParcel(Parcel parcel) { + int k2 = b.c.a.a0.d.k2(parcel); + long j = 0; + HarmfulAppsData[] harmfulAppsDataArr = null; + int i = 0; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 2) { + j = b.c.a.a0.d.F1(parcel, readInt); + } else if (i2 == 3) { + harmfulAppsDataArr = (HarmfulAppsData[]) b.c.a.a0.d.T(parcel, readInt, HarmfulAppsData.CREATOR); + } else if (i2 == 4) { + i = b.c.a.a0.d.E1(parcel, readInt); + } else if (i2 != 5) { + b.c.a.a0.d.b2(parcel, readInt); + } else { + z2 = b.c.a.a0.d.C1(parcel, readInt); + } + } + b.c.a.a0.d.e0(parcel, k2); + return new zzd(j, harmfulAppsDataArr, i, z2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzd[] newArray(int i) { + return new zzd[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/k/e.java b/app/src/main/java/b/i/a/f/k/e.java new file mode 100644 index 0000000000..6bc61e1311 --- /dev/null +++ b/app/src/main/java/b/i/a/f/k/e.java @@ -0,0 +1,30 @@ +package b.i.a.f.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.safetynet.zzf; +public final class e implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzf createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 2) { + d.b2(parcel, readInt); + } else { + str = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzf(str); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzf[] newArray(int i) { + return new zzf[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/k/f.java b/app/src/main/java/b/i/a/f/k/f.java new file mode 100644 index 0000000000..138ab827d9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/k/f.java @@ -0,0 +1,34 @@ +package b.i.a.f.k; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.safetynet.zzh; +public final class f implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzh createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + boolean z2 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 2) { + i = d.E1(parcel, readInt); + } else if (i2 != 3) { + d.b2(parcel, readInt); + } else { + z2 = d.C1(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzh(i, z2); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzh[] newArray(int i) { + return new zzh[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/k/g.java b/app/src/main/java/b/i/a/f/k/g.java new file mode 100644 index 0000000000..fc164c49cf --- /dev/null +++ b/app/src/main/java/b/i/a/f/k/g.java @@ -0,0 +1,57 @@ +package b.i.a.f.k; + +import android.os.Parcel; +import android.os.ParcelFileDescriptor; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.data.DataHolder; +import com.google.android.gms.safetynet.SafeBrowsingData; +public final class g implements Parcelable.Creator { + public static void a(SafeBrowsingData safeBrowsingData, Parcel parcel, int i) { + int v2 = d.v2(parcel, 20293); + d.r2(parcel, 2, safeBrowsingData.j, false); + d.q2(parcel, 3, safeBrowsingData.k, i, false); + d.q2(parcel, 4, safeBrowsingData.l, i, false); + long j = safeBrowsingData.m; + d.y2(parcel, 5, 8); + parcel.writeLong(j); + d.o2(parcel, 6, safeBrowsingData.n, false); + d.A2(parcel, v2); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final SafeBrowsingData createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + DataHolder dataHolder = null; + ParcelFileDescriptor parcelFileDescriptor = null; + byte[] bArr = null; + long j = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 2) { + str = d.Q(parcel, readInt); + } else if (i == 3) { + dataHolder = (DataHolder) d.P(parcel, readInt, DataHolder.CREATOR); + } else if (i == 4) { + parcelFileDescriptor = (ParcelFileDescriptor) d.P(parcel, readInt, ParcelFileDescriptor.CREATOR); + } else if (i == 5) { + j = d.F1(parcel, readInt); + } else if (i != 6) { + d.b2(parcel, readInt); + } else { + bArr = d.N(parcel, readInt); + } + } + d.e0(parcel, k2); + return new SafeBrowsingData(str, dataHolder, parcelFileDescriptor, j, bArr); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ SafeBrowsingData[] newArray(int i) { + return new SafeBrowsingData[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/k/h.java b/app/src/main/java/b/i/a/f/k/h.java new file mode 100644 index 0000000000..e33b55c381 --- /dev/null +++ b/app/src/main/java/b/i/a/f/k/h.java @@ -0,0 +1,16 @@ +package b.i.a.f.k; + +import android.content.Context; +import android.os.Looper; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +import b.i.a.f.h.o.l; +public final class h extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.c$a, b.i.a.f.e.h.c$b] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final /* synthetic */ l a(Context context, Looper looper, c cVar, a.d.c cVar2, c.a aVar, c.b bVar) { + return new l(context, looper, cVar, aVar, bVar); + } +} diff --git a/app/src/main/java/b/i/a/f/l/a.java b/app/src/main/java/b/i/a/f/l/a.java new file mode 100644 index 0000000000..08535e5ea0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/a.java @@ -0,0 +1,27 @@ +package b.i.a.f.l; + +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.f.e.h.a; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class a implements a.d { + public static final a j = new a(); + + public final boolean equals(@Nullable Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + Objects.requireNonNull((a) obj); + return d.g0(null, null) && d.g0(null, null) && d.g0(null, null) && d.g0(null, null) && d.g0(null, null); + } + + public final int hashCode() { + Boolean bool = Boolean.FALSE; + return Arrays.hashCode(new Object[]{bool, bool, null, bool, bool, null, null, null, null}); + } +} diff --git a/app/src/main/java/b/i/a/f/l/b/a.java b/app/src/main/java/b/i/a/f/l/b/a.java new file mode 100644 index 0000000000..781803cf92 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/a.java @@ -0,0 +1,107 @@ +package b.i.a.f.l.b; + +import android.accounts.Account; +import android.content.Context; +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import android.os.RemoteException; +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.c; +import b.i.a.f.e.h.j.g0; +import b.i.a.f.e.h.j.i0; +import b.i.a.f.e.k.b; +import b.i.a.f.e.k.c; +import b.i.a.f.e.k.d; +import b.i.a.f.l.f; +import com.google.android.gms.auth.api.signin.GoogleSignInAccount; +import com.google.android.gms.common.internal.zas; +import com.google.android.gms.signin.internal.zak; +import com.google.android.gms.signin.internal.zam; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class a extends d implements f { + public final boolean A; + public final c B; + public final Bundle C; + @Nullable + public final Integer D; + + public a(Context context, Looper looper, boolean z2, c cVar, Bundle bundle, c.a aVar, c.b bVar) { + super(context, looper, 44, cVar, aVar, bVar); + this.A = z2; + this.B = cVar; + this.C = bundle; + this.D = cVar.h; + } + + @Override // b.i.a.f.l.f + public final void d(c cVar) { + b.c.a.a0.d.z(cVar, "Expecting a valid ISignInCallbacks"); + try { + Account account = this.B.a; + if (account == null) { + account = new Account("<>", "com.google"); + } + GoogleSignInAccount googleSignInAccount = null; + if ("<>".equals(account.name)) { + googleSignInAccount = b.i.a.f.c.a.f.b.a.a(this.d).b(); + } + Integer num = this.D; + Objects.requireNonNull(num, "null reference"); + w().h0(new zak(new zas(account, num.intValue(), googleSignInAccount)), cVar); + } catch (RemoteException e) { + Log.w("SignInClientImpl", "Remote service probably died when signIn is called"); + try { + g0 g0Var = (g0) cVar; + g0Var.c.post(new i0(g0Var, new zam())); + } catch (RemoteException unused) { + Log.wtf("SignInClientImpl", "ISignInCallbacks#onSignInComplete should be executed from the same process, unexpected RemoteException.", e); + } + } + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public int l() { + return 12451000; + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public boolean o() { + return this.A; + } + + @Override // b.i.a.f.l.f + public final void p() { + g(new b.d()); + } + + @Override // b.i.a.f.e.k.b + public /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.signin.internal.ISignInService"); + return queryLocalInterface instanceof e ? (e) queryLocalInterface : new g(iBinder); + } + + @Override // b.i.a.f.e.k.b + public Bundle u() { + if (!this.d.getPackageName().equals(this.B.e)) { + this.C.putString("com.google.android.gms.signin.internal.realClientPackageName", this.B.e); + } + return this.C; + } + + @Override // b.i.a.f.e.k.b + public String x() { + return "com.google.android.gms.signin.internal.ISignInService"; + } + + @Override // b.i.a.f.e.k.b + public String y() { + return "com.google.android.gms.signin.service.START"; + } +} diff --git a/app/src/main/java/b/i/a/f/l/b/b.java b/app/src/main/java/b/i/a/f/l/b/b.java new file mode 100644 index 0000000000..72225898f0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/b.java @@ -0,0 +1,39 @@ +package b.i.a.f.l.b; + +import android.content.Intent; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.signin.internal.zab; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class b implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zab createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + Intent intent = null; + int i2 = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i3 = 65535 & readInt; + if (i3 == 1) { + i = d.E1(parcel, readInt); + } else if (i3 == 2) { + i2 = d.E1(parcel, readInt); + } else if (i3 != 3) { + d.b2(parcel, readInt); + } else { + intent = (Intent) d.P(parcel, readInt, Intent.CREATOR); + } + } + d.e0(parcel, k2); + return new zab(i, i2, intent); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zab[] newArray(int i) { + return new zab[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/l/b/c.java b/app/src/main/java/b/i/a/f/l/b/c.java new file mode 100644 index 0000000000..86f57ea4e5 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/c.java @@ -0,0 +1,6 @@ +package b.i.a.f.l.b; + +import android.os.IInterface; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public interface c extends IInterface { +} diff --git a/app/src/main/java/b/i/a/f/l/b/d.java b/app/src/main/java/b/i/a/f/l/b/d.java new file mode 100644 index 0000000000..1b38814fcc --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/d.java @@ -0,0 +1,4 @@ +package b.i.a.f.l.b; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public class d extends f { +} diff --git a/app/src/main/java/b/i/a/f/l/b/e.java b/app/src/main/java/b/i/a/f/l/b/e.java new file mode 100644 index 0000000000..1494374902 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/e.java @@ -0,0 +1,9 @@ +package b.i.a.f.l.b; + +import android.os.IInterface; +import android.os.RemoteException; +import com.google.android.gms.signin.internal.zak; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public interface e extends IInterface { + void h0(zak zak, c cVar) throws RemoteException; +} diff --git a/app/src/main/java/b/i/a/f/l/b/f.java b/app/src/main/java/b/i/a/f/l/b/f.java new file mode 100644 index 0000000000..ce0b032803 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/f.java @@ -0,0 +1,9 @@ +package b.i.a.f.l.b; + +import b.i.a.f.h.e.a; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public abstract class f extends a implements c { + public f() { + super("com.google.android.gms.signin.internal.ISignInCallbacks"); + } +} diff --git a/app/src/main/java/b/i/a/f/l/b/g.java b/app/src/main/java/b/i/a/f/l/b/g.java new file mode 100644 index 0000000000..0dbd777208 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/g.java @@ -0,0 +1,43 @@ +package b.i.a.f.l.b; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.e.a; +import b.i.a.f.h.e.b; +import com.google.android.gms.signin.internal.zak; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class g implements e, IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1574b = "com.google.android.gms.signin.internal.ISignInService"; + + public g(IBinder iBinder) { + this.a = iBinder; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + @Override // b.i.a.f.l.b.e + public final void h0(zak zak, c cVar) throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1574b); + int i = b.a; + obtain.writeInt(1); + zak.writeToParcel(obtain, 0); + obtain.writeStrongBinder((a) cVar); + Parcel obtain2 = Parcel.obtain(); + try { + this.a.transact(12, obtain, obtain2, 0); + obtain2.readException(); + } finally { + obtain.recycle(); + obtain2.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/l/b/h.java b/app/src/main/java/b/i/a/f/l/b/h.java new file mode 100644 index 0000000000..672696c893 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/h.java @@ -0,0 +1,36 @@ +package b.i.a.f.l.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.signin.internal.zag; +import java.util.ArrayList; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class h implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zag createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + ArrayList arrayList = null; + String str = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 1) { + arrayList = d.S(parcel, readInt); + } else if (i != 2) { + d.b2(parcel, readInt); + } else { + str = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zag(arrayList, str); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zag[] newArray(int i) { + return new zag[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/l/b/i.java b/app/src/main/java/b/i/a/f/l/b/i.java new file mode 100644 index 0000000000..e406e1c340 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/i.java @@ -0,0 +1,36 @@ +package b.i.a.f.l.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.internal.zas; +import com.google.android.gms.signin.internal.zak; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class i implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zak createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + int i = 0; + zas zas = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + i = d.E1(parcel, readInt); + } else if (i2 != 2) { + d.b2(parcel, readInt); + } else { + zas = (zas) d.P(parcel, readInt, zas.CREATOR); + } + } + d.e0(parcel, k2); + return new zak(i, zas); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zak[] newArray(int i) { + return new zak[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/l/b/j.java b/app/src/main/java/b/i/a/f/l/b/j.java new file mode 100644 index 0000000000..f83c15b965 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/b/j.java @@ -0,0 +1,40 @@ +package b.i.a.f.l.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.android.gms.common.ConnectionResult; +import com.google.android.gms.common.internal.zau; +import com.google.android.gms.signin.internal.zam; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class j implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zam createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + ConnectionResult connectionResult = null; + zau zau = null; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i2 = 65535 & readInt; + if (i2 == 1) { + i = d.E1(parcel, readInt); + } else if (i2 == 2) { + connectionResult = (ConnectionResult) d.P(parcel, readInt, ConnectionResult.CREATOR); + } else if (i2 != 3) { + d.b2(parcel, readInt); + } else { + zau = (zau) d.P(parcel, readInt, zau.CREATOR); + } + } + d.e0(parcel, k2); + return new zam(i, connectionResult, zau); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zam[] newArray(int i) { + return new zam[i]; + } +} diff --git a/app/src/main/java/b/i/a/f/l/c.java b/app/src/main/java/b/i/a/f/l/c.java new file mode 100644 index 0000000000..54e8066648 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/c.java @@ -0,0 +1,32 @@ +package b.i.a.f.l; + +import androidx.core.app.NotificationCompat; +import b.c.a.a0.d; +import b.i.a.f.e.h.a; +import com.google.android.gms.common.api.Scope; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class c { + public static final a.g a; + + /* renamed from: b reason: collision with root package name */ + public static final a.g f1575b; + public static final a.AbstractC0103a c; + public static final a.AbstractC0103a d; + + static { + a.g gVar = new a.g<>(); + a = gVar; + a.g gVar2 = new a.g<>(); + f1575b = gVar2; + e eVar = new e(); + c = eVar; + d dVar = new d(); + d = dVar; + new Scope("profile"); + new Scope(NotificationCompat.CATEGORY_EMAIL); + d.z(eVar, "Cannot construct an Api with a null ClientBuilder"); + d.z(gVar, "Cannot construct an Api with a null ClientKey"); + d.z(dVar, "Cannot construct an Api with a null ClientBuilder"); + d.z(gVar2, "Cannot construct an Api with a null ClientKey"); + } +} diff --git a/app/src/main/java/b/i/a/f/l/d.java b/app/src/main/java/b/i/a/f/l/d.java new file mode 100644 index 0000000000..9ea15d4638 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/d.java @@ -0,0 +1,16 @@ +package b.i.a.f.l; + +import android.content.Context; +import android.os.Looper; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class d extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.c$a, b.i.a.f.e.h.c$b] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final b.i.a.f.l.b.a a(Context context, Looper looper, c cVar, g gVar, c.a aVar, c.b bVar) { + throw new NoSuchMethodError(); + } +} diff --git a/app/src/main/java/b/i/a/f/l/e.java b/app/src/main/java/b/i/a/f/l/e.java new file mode 100644 index 0000000000..bd2edb4f76 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/e.java @@ -0,0 +1,34 @@ +package b.i.a.f.l; + +import android.content.Context; +import android.os.Bundle; +import android.os.Looper; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class e extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.c$a, b.i.a.f.e.h.c$b] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final b.i.a.f.l.b.a a(Context context, Looper looper, c cVar, a aVar, c.a aVar2, c.b bVar) { + a aVar3 = cVar.g; + Integer num = cVar.h; + Bundle bundle = new Bundle(); + bundle.putParcelable("com.google.android.gms.signin.internal.clientRequestedAccount", cVar.a); + if (num != null) { + bundle.putInt("com.google.android.gms.common.internal.ClientSettings.sessionId", num.intValue()); + } + if (aVar3 != null) { + bundle.putBoolean("com.google.android.gms.signin.internal.offlineAccessRequested", false); + bundle.putBoolean("com.google.android.gms.signin.internal.idTokenRequested", false); + bundle.putString("com.google.android.gms.signin.internal.serverClientId", null); + bundle.putBoolean("com.google.android.gms.signin.internal.usePromptModeForAuthCode", true); + bundle.putBoolean("com.google.android.gms.signin.internal.forceCodeForRefreshToken", false); + bundle.putString("com.google.android.gms.signin.internal.hostedDomain", null); + bundle.putString("com.google.android.gms.signin.internal.logSessionId", null); + bundle.putBoolean("com.google.android.gms.signin.internal.waitForAccessTokenRefresh", false); + } + return new b.i.a.f.l.b.a(context, looper, true, cVar, bundle, aVar2, bVar); + } +} diff --git a/app/src/main/java/b/i/a/f/l/f.java b/app/src/main/java/b/i/a/f/l/f.java new file mode 100644 index 0000000000..7975d24ad4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/f.java @@ -0,0 +1,10 @@ +package b.i.a.f.l; + +import b.i.a.f.e.h.a; +import b.i.a.f.l.b.c; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public interface f extends a.f { + void d(c cVar); + + void p(); +} diff --git a/app/src/main/java/b/i/a/f/l/g.java b/app/src/main/java/b/i/a/f/l/g.java new file mode 100644 index 0000000000..3f8ed17cc0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/l/g.java @@ -0,0 +1,14 @@ +package b.i.a.f.l; + +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a; +/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */ +public final class g implements a.d { + public final boolean equals(@Nullable Object obj) { + throw new NoSuchMethodError(); + } + + public final int hashCode() { + throw new NoSuchMethodError(); + } +} diff --git a/app/src/main/java/b/i/a/f/m/a.java b/app/src/main/java/b/i/a/f/m/a.java new file mode 100644 index 0000000000..c183b4498f --- /dev/null +++ b/app/src/main/java/b/i/a/f/m/a.java @@ -0,0 +1,257 @@ +package b.i.a.f.m; + +import android.content.Context; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageManager; +import android.os.PowerManager; +import android.os.WorkSource; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.NonNull; +import b.c.a.a0.d; +import b.i.a.f.e.m.a; +import b.i.a.f.e.o.h; +import b.i.a.f.e.o.i; +import b.i.a.f.e.p.b; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +public class a { + public static ScheduledExecutorService a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1576b; + public final PowerManager.WakeLock c; + public WorkSource d; + public final int e; + public final String f; + public final Context g; + public boolean h; + public final Map i; + public int j; + public AtomicInteger k; + + public a(@NonNull Context context, int i, @NonNull String str) { + a.AbstractC0107a aVar; + WorkSource workSource = null; + String packageName = context == null ? null : context.getPackageName(); + this.f1576b = this; + this.h = true; + this.i = new HashMap(); + Collections.synchronizedSet(new HashSet()); + this.k = new AtomicInteger(0); + d.z(context, "WakeLock: context must not be null"); + d.v(str, "WakeLock: wakeLockName must not be empty"); + this.e = i; + this.g = context.getApplicationContext(); + if (!"com.google.android.gms".equals(context.getPackageName())) { + this.f = str.length() != 0 ? "*gcore*:".concat(str) : new String("*gcore*:"); + } else { + this.f = str; + } + this.c = ((PowerManager) context.getSystemService("power")).newWakeLock(i, str); + if (i.a(context)) { + packageName = h.a(packageName) ? context.getPackageName() : packageName; + if (!(context.getPackageManager() == null || packageName == null)) { + try { + ApplicationInfo applicationInfo = b.a(context).a.getPackageManager().getApplicationInfo(packageName, 0); + if (applicationInfo == null) { + Log.e("WorkSourceUtil", packageName.length() != 0 ? "Could not get applicationInfo from package: ".concat(packageName) : new String("Could not get applicationInfo from package: ")); + } else { + int i2 = applicationInfo.uid; + workSource = new WorkSource(); + Method method = i.f1384b; + if (method != null) { + try { + method.invoke(workSource, Integer.valueOf(i2), packageName); + } catch (Exception e) { + Log.wtf("WorkSourceUtil", "Unable to assign blame through WorkSource", e); + } + } else { + Method method2 = i.a; + if (method2 != null) { + try { + method2.invoke(workSource, Integer.valueOf(i2)); + } catch (Exception e2) { + Log.wtf("WorkSourceUtil", "Unable to assign blame through WorkSource", e2); + } + } + } + } + } catch (PackageManager.NameNotFoundException unused) { + Log.e("WorkSourceUtil", packageName.length() != 0 ? "Could not find package: ".concat(packageName) : new String("Could not find package: ")); + } + } + this.d = workSource; + if (workSource != null && i.a(this.g)) { + WorkSource workSource2 = this.d; + if (workSource2 != null) { + workSource2.add(workSource); + } else { + this.d = workSource; + } + try { + this.c.setWorkSource(this.d); + } catch (ArrayIndexOutOfBoundsException | IllegalArgumentException e3) { + Log.wtf("WakeLock", e3.toString()); + } + } + } + if (a == null) { + synchronized (b.i.a.f.e.m.a.class) { + if (b.i.a.f.e.m.a.a == null) { + b.i.a.f.e.m.a.a = new b.i.a.f.e.m.b(); + } + aVar = b.i.a.f.e.m.a.a; + } + Objects.requireNonNull((b.i.a.f.e.m.b) aVar); + a = Executors.unconfigurableScheduledExecutorService(Executors.newScheduledThreadPool(1)); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:19:0x0057, code lost: + if (r3 == false) goto L_0x0059; + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x005f, code lost: + if (r7.j == 0) goto L_0x0061; + */ + /* JADX WARNING: Code restructure failed: missing block: B:24:0x0061, code lost: + b.c.a.a0.d.u0(r7.c, null); + c(); + r7.j++; + */ + public void a(long j) { + this.k.incrementAndGet(); + if (this.h) { + TextUtils.isEmpty(null); + } + synchronized (this.f1576b) { + boolean z2 = false; + if ((!this.i.isEmpty() || this.j > 0) && !this.c.isHeld()) { + this.i.clear(); + this.j = 0; + } + if (this.h) { + Integer[] numArr = this.i.get(null); + if (numArr == null) { + this.i.put(null, new Integer[]{1}); + z2 = true; + } else { + numArr[0] = Integer.valueOf(numArr[0].intValue() + 1); + } + } + if (!this.h) { + } + } + this.c.acquire(); + if (j > 0) { + a.schedule(new b(this), j, TimeUnit.MILLISECONDS); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:18:0x0051, code lost: + if (r4 == false) goto L_0x0053; + */ + /* JADX WARNING: Code restructure failed: missing block: B:22:0x0059, code lost: + if (r6.j == 1) goto L_0x005b; + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x005b, code lost: + b.c.a.a0.d.u0(r6.c, null); + c(); + r6.j--; + */ + public void b() { + if (this.k.decrementAndGet() < 0) { + Log.e("WakeLock", String.valueOf(this.f).concat(" release without a matched acquire!")); + } + if (this.h) { + TextUtils.isEmpty(null); + } + synchronized (this.f1576b) { + if (this.h) { + Integer[] numArr = this.i.get(null); + boolean z2 = false; + if (numArr != null) { + if (numArr[0].intValue() == 1) { + this.i.remove(null); + z2 = true; + } else { + numArr[0] = Integer.valueOf(numArr[0].intValue() - 1); + } + } + } + if (!this.h) { + } + } + d(); + } + + /* JADX WARNING: Removed duplicated region for block: B:10:0x002f */ + /* JADX WARNING: Removed duplicated region for block: B:22:0x0051 */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x0057 A[SYNTHETIC] */ + public final List c() { + int i; + String str; + Method method; + WorkSource workSource = this.d; + Method method2 = i.a; + ArrayList arrayList = new ArrayList(); + if (!(workSource == null || (method = i.c) == null)) { + try { + Object invoke = method.invoke(workSource, new Object[0]); + Objects.requireNonNull(invoke, "null reference"); + i = ((Integer) invoke).intValue(); + } catch (Exception e) { + Log.wtf("WorkSourceUtil", "Unable to assign blame through WorkSource", e); + } + if (i != 0) { + for (int i2 = 0; i2 < i; i2++) { + Method method3 = i.d; + if (method3 != null) { + try { + str = (String) method3.invoke(workSource, Integer.valueOf(i2)); + } catch (Exception e2) { + Log.wtf("WorkSourceUtil", "Unable to assign blame through WorkSource", e2); + } + if (h.a(str)) { + Objects.requireNonNull(str, "null reference"); + arrayList.add(str); + } + } + str = null; + if (h.a(str)) { + } + } + } + return arrayList; + } + i = 0; + if (i != 0) { + } + return arrayList; + } + + public final void d() { + if (this.c.isHeld()) { + try { + this.c.release(); + } catch (RuntimeException e) { + if (e.getClass().equals(RuntimeException.class)) { + Log.e("WakeLock", String.valueOf(this.f).concat(" was already released!"), e); + } else { + throw e; + } + } + this.c.isHeld(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/m/b.java b/app/src/main/java/b/i/a/f/m/b.java new file mode 100644 index 0000000000..3e5d38c136 --- /dev/null +++ b/app/src/main/java/b/i/a/f/m/b.java @@ -0,0 +1,13 @@ +package b.i.a.f.m; +public final class b implements Runnable { + public final /* synthetic */ a j; + + public b(a aVar) { + this.j = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.d(); + } +} diff --git a/app/src/main/java/b/i/a/f/n/a.java b/app/src/main/java/b/i/a/f/n/a.java new file mode 100644 index 0000000000..d5da142fa0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/a.java @@ -0,0 +1,8 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public interface a { + TContinuationResult a(@NonNull Task task) throws Exception; +} diff --git a/app/src/main/java/b/i/a/f/n/a0.java b/app/src/main/java/b/i/a/f/n/a0.java new file mode 100644 index 0000000000..b5e78bb83f --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/a0.java @@ -0,0 +1,11 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class a0 implements Executor { + @Override // java.util.concurrent.Executor + public final void execute(@NonNull Runnable runnable) { + runnable.run(); + } +} diff --git a/app/src/main/java/b/i/a/f/n/b.java b/app/src/main/java/b/i/a/f/n/b.java new file mode 100644 index 0000000000..f342d5b70a --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/b.java @@ -0,0 +1,5 @@ +package b.i.a.f.n; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public interface b { + void b(); +} diff --git a/app/src/main/java/b/i/a/f/n/b0.java b/app/src/main/java/b/i/a/f/n/b0.java new file mode 100644 index 0000000000..d6129b86cb --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/b0.java @@ -0,0 +1,256 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.d.b.a.a; +import com.google.android.gms.tasks.DuplicateTaskCompletionException; +import com.google.android.gms.tasks.RuntimeExecutionException; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.CancellationException; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class b0 extends Task { + public final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public final y f1577b = new y<>(); + public boolean c; + public volatile boolean d; + @Nullable + public TResult e; + public Exception f; + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task a(@NonNull Executor executor, @NonNull b bVar) { + y yVar = this.f1577b; + int i = c0.a; + yVar.b(new p(executor, bVar)); + w(); + return this; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task b(@NonNull c cVar) { + c(g.a, cVar); + return this; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task c(@NonNull Executor executor, @NonNull c cVar) { + y yVar = this.f1577b; + int i = c0.a; + yVar.b(new q(executor, cVar)); + w(); + return this; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task d(@NonNull d dVar) { + e(g.a, dVar); + return this; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task e(@NonNull Executor executor, @NonNull d dVar) { + y yVar = this.f1577b; + int i = c0.a; + yVar.b(new t(executor, dVar)); + w(); + return this; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task f(@NonNull e eVar) { + g(g.a, eVar); + return this; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task g(@NonNull Executor executor, @NonNull e eVar) { + y yVar = this.f1577b; + int i = c0.a; + yVar.b(new u(executor, eVar)); + w(); + return this; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task h(@NonNull a aVar) { + return i(g.a, aVar); + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task i(@NonNull Executor executor, @NonNull a aVar) { + b0 b0Var = new b0(); + y yVar = this.f1577b; + int i = c0.a; + yVar.b(new k(executor, aVar, b0Var)); + w(); + return b0Var; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task j(@NonNull Executor executor, @NonNull a> aVar) { + b0 b0Var = new b0(); + y yVar = this.f1577b; + int i = c0.a; + yVar.b(new l(executor, aVar, b0Var)); + w(); + return b0Var; + } + + @Override // com.google.android.gms.tasks.Task + @Nullable + public final Exception k() { + Exception exc; + synchronized (this.a) { + exc = this.f; + } + return exc; + } + + @Override // com.google.android.gms.tasks.Task + public final TResult l() { + TResult tresult; + synchronized (this.a) { + d.G(this.c, "Task is not yet complete"); + if (this.d) { + throw new CancellationException("Task is already canceled."); + } else if (this.f == null) { + tresult = this.e; + } else { + throw new RuntimeExecutionException(this.f); + } + } + return tresult; + } + + @Override // com.google.android.gms.tasks.Task + public final TResult m(@NonNull Class cls) throws Throwable { + TResult tresult; + synchronized (this.a) { + d.G(this.c, "Task is not yet complete"); + if (this.d) { + throw new CancellationException("Task is already canceled."); + } else if (cls.isInstance(this.f)) { + throw cls.cast(this.f); + } else if (this.f == null) { + tresult = this.e; + } else { + throw new RuntimeExecutionException(this.f); + } + } + return tresult; + } + + @Override // com.google.android.gms.tasks.Task + public final boolean n() { + return this.d; + } + + @Override // com.google.android.gms.tasks.Task + public final boolean o() { + boolean z2; + synchronized (this.a) { + z2 = this.c; + } + return z2; + } + + @Override // com.google.android.gms.tasks.Task + public final boolean p() { + boolean z2; + synchronized (this.a) { + z2 = this.c && !this.d && this.f == null; + } + return z2; + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task q(@NonNull f fVar) { + return r(g.a, fVar); + } + + @Override // com.google.android.gms.tasks.Task + @NonNull + public final Task r(Executor executor, f fVar) { + b0 b0Var = new b0(); + y yVar = this.f1577b; + int i = c0.a; + yVar.b(new x(executor, fVar, b0Var)); + w(); + return b0Var; + } + + public final void s(@NonNull Exception exc) { + d.z(exc, "Exception must not be null"); + synchronized (this.a) { + v(); + this.c = true; + this.f = exc; + } + this.f1577b.a(this); + } + + public final void t(@Nullable TResult tresult) { + synchronized (this.a) { + v(); + this.c = true; + this.e = tresult; + } + this.f1577b.a(this); + } + + public final boolean u() { + synchronized (this.a) { + if (this.c) { + return false; + } + this.c = true; + this.d = true; + this.f1577b.a(this); + return true; + } + } + + public final void v() { + String str; + if (this.c) { + int i = DuplicateTaskCompletionException.j; + if (o()) { + Exception k = k(); + if (k != null) { + str = "failure"; + } else if (p()) { + String valueOf = String.valueOf(l()); + str = a.i(valueOf.length() + 7, "result ", valueOf); + } else { + str = n() ? "cancellation" : "unknown issue"; + } + String valueOf2 = String.valueOf(str); + throw new DuplicateTaskCompletionException(valueOf2.length() != 0 ? "Complete with: ".concat(valueOf2) : new String("Complete with: "), k); + } + throw new IllegalStateException("DuplicateTaskCompletionException can only be created from completed Task."); + } + } + + public final void w() { + synchronized (this.a) { + if (this.c) { + this.f1577b.a(this); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/c.java b/app/src/main/java/b/i/a/f/n/c.java new file mode 100644 index 0000000000..dec6ff763d --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/c.java @@ -0,0 +1,8 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public interface c { + void onComplete(@NonNull Task task); +} diff --git a/app/src/main/java/b/i/a/f/n/c0.java b/app/src/main/java/b/i/a/f/n/c0.java new file mode 100644 index 0000000000..933b839cc3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/c0.java @@ -0,0 +1,5 @@ +package b.i.a.f.n; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class c0 { + public static final /* synthetic */ int a = 0; +} diff --git a/app/src/main/java/b/i/a/f/n/d.java b/app/src/main/java/b/i/a/f/n/d.java new file mode 100644 index 0000000000..73503796fa --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/d.java @@ -0,0 +1,7 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public interface d { + void onFailure(@NonNull Exception exc); +} diff --git a/app/src/main/java/b/i/a/f/n/d0.java b/app/src/main/java/b/i/a/f/n/d0.java new file mode 100644 index 0000000000..7c9cbb19b6 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/d0.java @@ -0,0 +1,24 @@ +package b.i.a.f.n; + +import java.util.concurrent.Callable; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class d0 implements Runnable { + public final /* synthetic */ b0 j; + public final /* synthetic */ Callable k; + + public d0(b0 b0Var, Callable callable) { + this.j = b0Var; + this.k = callable; + } + + @Override // java.lang.Runnable + public final void run() { + try { + this.j.t(this.k.call()); + } catch (Exception e) { + this.j.s(e); + } catch (Throwable th) { + this.j.s(new RuntimeException(th)); + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/e.java b/app/src/main/java/b/i/a/f/n/e.java new file mode 100644 index 0000000000..d032965586 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/e.java @@ -0,0 +1,5 @@ +package b.i.a.f.n; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public interface e { + void onSuccess(TResult tresult); +} diff --git a/app/src/main/java/b/i/a/f/n/f.java b/app/src/main/java/b/i/a/f/n/f.java new file mode 100644 index 0000000000..d8df301cf4 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/f.java @@ -0,0 +1,9 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public interface f { + @NonNull + Task a(TResult tresult) throws Exception; +} diff --git a/app/src/main/java/b/i/a/f/n/g.java b/app/src/main/java/b/i/a/f/n/g.java new file mode 100644 index 0000000000..833e0bf1dd --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/g.java @@ -0,0 +1,23 @@ +package b.i.a.f.n; + +import android.os.Handler; +import android.os.Looper; +import androidx.annotation.NonNull; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class g { + public static final Executor a = new a(); + + /* renamed from: b reason: collision with root package name */ + public static final Executor f1578b = new a0(); + + /* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ + public static final class a implements Executor { + public final Handler j = new b.i.a.f.h.p.a(Looper.getMainLooper()); + + @Override // java.util.concurrent.Executor + public final void execute(@NonNull Runnable runnable) { + this.j.post(runnable); + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/h.java b/app/src/main/java/b/i/a/f/n/h.java new file mode 100644 index 0000000000..192ef0f99c --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/h.java @@ -0,0 +1,4 @@ +package b.i.a.f.n; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public interface h extends b, d, e { +} diff --git a/app/src/main/java/b/i/a/f/n/i.java b/app/src/main/java/b/i/a/f/n/i.java new file mode 100644 index 0000000000..e3ec487195 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/i.java @@ -0,0 +1,26 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import java.util.concurrent.CountDownLatch; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class i implements h { + public final CountDownLatch a = new CountDownLatch(1); + + public i(d0 d0Var) { + } + + @Override // b.i.a.f.n.b + public final void b() { + this.a.countDown(); + } + + @Override // b.i.a.f.n.d + public final void onFailure(@NonNull Exception exc) { + this.a.countDown(); + } + + @Override // b.i.a.f.n.e + public final void onSuccess(Object obj) { + this.a.countDown(); + } +} diff --git a/app/src/main/java/b/i/a/f/n/j.java b/app/src/main/java/b/i/a/f/n/j.java new file mode 100644 index 0000000000..9f5f8e3270 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/j.java @@ -0,0 +1,69 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import java.util.concurrent.ExecutionException; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class j implements h { + public final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public final int f1579b; + public final b0 c; + public int d; + public int e; + public int f; + public Exception g; + public boolean h; + + public j(int i, b0 b0Var) { + this.f1579b = i; + this.c = b0Var; + } + + public final void a() { + if (this.d + this.e + this.f != this.f1579b) { + return; + } + if (this.g != null) { + b0 b0Var = this.c; + int i = this.e; + int i2 = this.f1579b; + StringBuilder sb = new StringBuilder(54); + sb.append(i); + sb.append(" out of "); + sb.append(i2); + sb.append(" underlying tasks failed"); + b0Var.s(new ExecutionException(sb.toString(), this.g)); + } else if (this.h) { + this.c.u(); + } else { + this.c.t(null); + } + } + + @Override // b.i.a.f.n.b + public final void b() { + synchronized (this.a) { + this.f++; + this.h = true; + a(); + } + } + + @Override // b.i.a.f.n.d + public final void onFailure(@NonNull Exception exc) { + synchronized (this.a) { + this.e++; + this.g = exc; + a(); + } + } + + @Override // b.i.a.f.n.e + public final void onSuccess(Object obj) { + synchronized (this.a) { + this.d++; + a(); + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/k.java b/app/src/main/java/b/i/a/f/n/k.java new file mode 100644 index 0000000000..9ab7fbb97d --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/k.java @@ -0,0 +1,24 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class k implements z { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final a f1580b; + public final b0 c; + + public k(@NonNull Executor executor, @NonNull a aVar, @NonNull b0 b0Var) { + this.a = executor; + this.f1580b = aVar; + this.c = b0Var; + } + + @Override // b.i.a.f.n.z + public final void a(@NonNull Task task) { + this.a.execute(new m(this, task)); + } +} diff --git a/app/src/main/java/b/i/a/f/n/l.java b/app/src/main/java/b/i/a/f/n/l.java new file mode 100644 index 0000000000..124f96caf3 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/l.java @@ -0,0 +1,39 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class l implements b, d, e, z { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final a> f1581b; + public final b0 c; + + public l(@NonNull Executor executor, @NonNull a> aVar, @NonNull b0 b0Var) { + this.a = executor; + this.f1581b = aVar; + this.c = b0Var; + } + + @Override // b.i.a.f.n.z + public final void a(@NonNull Task task) { + this.a.execute(new n(this, task)); + } + + @Override // b.i.a.f.n.b + public final void b() { + this.c.u(); + } + + @Override // b.i.a.f.n.d + public final void onFailure(@NonNull Exception exc) { + this.c.s(exc); + } + + @Override // b.i.a.f.n.e + public final void onSuccess(TContinuationResult tcontinuationresult) { + this.c.t(tcontinuationresult); + } +} diff --git a/app/src/main/java/b/i/a/f/n/m.java b/app/src/main/java/b/i/a/f/n/m.java new file mode 100644 index 0000000000..4b43d260eb --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/m.java @@ -0,0 +1,33 @@ +package b.i.a.f.n; + +import com.google.android.gms.tasks.RuntimeExecutionException; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class m implements Runnable { + public final /* synthetic */ Task j; + public final /* synthetic */ k k; + + public m(k kVar, Task task) { + this.k = kVar; + this.j = task; + } + + @Override // java.lang.Runnable + public final void run() { + if (this.j.n()) { + this.k.c.u(); + return; + } + try { + this.k.c.t(this.k.f1580b.a(this.j)); + } catch (RuntimeExecutionException e) { + if (e.getCause() instanceof Exception) { + this.k.c.s((Exception) e.getCause()); + } else { + this.k.c.s(e); + } + } catch (Exception e2) { + this.k.c.s(e2); + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/n.java b/app/src/main/java/b/i/a/f/n/n.java new file mode 100644 index 0000000000..3d0db24365 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/n.java @@ -0,0 +1,39 @@ +package b.i.a.f.n; + +import com.google.android.gms.tasks.RuntimeExecutionException; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class n implements Runnable { + public final /* synthetic */ Task j; + public final /* synthetic */ l k; + + public n(l lVar, Task task) { + this.k = lVar; + this.j = task; + } + + @Override // java.lang.Runnable + public final void run() { + try { + Task task = (Task) this.k.f1581b.a(this.j); + if (task == null) { + l lVar = this.k; + lVar.c.s(new NullPointerException("Continuation returned null")); + return; + } + Executor executor = g.f1578b; + task.g(executor, this.k); + task.e(executor, this.k); + task.a(executor, this.k); + } catch (RuntimeExecutionException e) { + if (e.getCause() instanceof Exception) { + this.k.c.s((Exception) e.getCause()); + } else { + this.k.c.s(e); + } + } catch (Exception e2) { + this.k.c.s(e2); + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/o.java b/app/src/main/java/b/i/a/f/n/o.java new file mode 100644 index 0000000000..160c7aa17c --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/o.java @@ -0,0 +1,19 @@ +package b.i.a.f.n; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class o implements Runnable { + public final /* synthetic */ p j; + + public o(p pVar) { + this.j = pVar; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.j.f1582b) { + b bVar = this.j.c; + if (bVar != null) { + bVar.b(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/p.java b/app/src/main/java/b/i/a/f/n/p.java new file mode 100644 index 0000000000..896a09dd4d --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/p.java @@ -0,0 +1,29 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class p implements z { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1582b = new Object(); + public b c; + + public p(@NonNull Executor executor, @NonNull b bVar) { + this.a = executor; + this.c = bVar; + } + + @Override // b.i.a.f.n.z + public final void a(@NonNull Task task) { + if (task.n()) { + synchronized (this.f1582b) { + if (this.c != null) { + this.a.execute(new o(this)); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/q.java b/app/src/main/java/b/i/a/f/n/q.java new file mode 100644 index 0000000000..3d370ad111 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/q.java @@ -0,0 +1,27 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class q implements z { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1583b = new Object(); + public c c; + + public q(@NonNull Executor executor, @NonNull c cVar) { + this.a = executor; + this.c = cVar; + } + + @Override // b.i.a.f.n.z + public final void a(@NonNull Task task) { + synchronized (this.f1583b) { + if (this.c != null) { + this.a.execute(new r(this, task)); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/r.java b/app/src/main/java/b/i/a/f/n/r.java new file mode 100644 index 0000000000..15fff1bd3b --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/r.java @@ -0,0 +1,23 @@ +package b.i.a.f.n; + +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class r implements Runnable { + public final /* synthetic */ Task j; + public final /* synthetic */ q k; + + public r(q qVar, Task task) { + this.k = qVar; + this.j = task; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.k.f1583b) { + c cVar = this.k.c; + if (cVar != 0) { + cVar.onComplete(this.j); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/s.java b/app/src/main/java/b/i/a/f/n/s.java new file mode 100644 index 0000000000..23fea3d661 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/s.java @@ -0,0 +1,26 @@ +package b.i.a.f.n; + +import com.google.android.gms.tasks.Task; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class s implements Runnable { + public final /* synthetic */ Task j; + public final /* synthetic */ t k; + + public s(t tVar, Task task) { + this.k = tVar; + this.j = task; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.k.f1584b) { + d dVar = this.k.c; + if (dVar != null) { + Exception k = this.j.k(); + Objects.requireNonNull(k, "null reference"); + dVar.onFailure(k); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/t.java b/app/src/main/java/b/i/a/f/n/t.java new file mode 100644 index 0000000000..01191895c0 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/t.java @@ -0,0 +1,29 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class t implements z { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1584b = new Object(); + public d c; + + public t(@NonNull Executor executor, @NonNull d dVar) { + this.a = executor; + this.c = dVar; + } + + @Override // b.i.a.f.n.z + public final void a(@NonNull Task task) { + if (!task.p() && !task.n()) { + synchronized (this.f1584b) { + if (this.c != null) { + this.a.execute(new s(this, task)); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/u.java b/app/src/main/java/b/i/a/f/n/u.java new file mode 100644 index 0000000000..358d2dda1a --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/u.java @@ -0,0 +1,29 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class u implements z { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1585b = new Object(); + public e c; + + public u(@NonNull Executor executor, @NonNull e eVar) { + this.a = executor; + this.c = eVar; + } + + @Override // b.i.a.f.n.z + public final void a(@NonNull Task task) { + if (task.p()) { + synchronized (this.f1585b) { + if (this.c != null) { + this.a.execute(new v(this, task)); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/v.java b/app/src/main/java/b/i/a/f/n/v.java new file mode 100644 index 0000000000..d48826cdd9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/v.java @@ -0,0 +1,23 @@ +package b.i.a.f.n; + +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class v implements Runnable { + public final /* synthetic */ Task j; + public final /* synthetic */ u k; + + public v(u uVar, Task task) { + this.k = uVar; + this.j = task; + } + + @Override // java.lang.Runnable + public final void run() { + synchronized (this.k.f1585b) { + e eVar = this.k.c; + if (eVar != 0) { + eVar.onSuccess(this.j.l()); + } + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/w.java b/app/src/main/java/b/i/a/f/n/w.java new file mode 100644 index 0000000000..ced6649dc1 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/w.java @@ -0,0 +1,42 @@ +package b.i.a.f.n; + +import com.google.android.gms.tasks.RuntimeExecutionException; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.CancellationException; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class w implements Runnable { + public final /* synthetic */ Task j; + public final /* synthetic */ x k; + + public w(x xVar, Task task) { + this.k = xVar; + this.j = task; + } + + @Override // java.lang.Runnable + public final void run() { + try { + Task a = this.k.f1586b.a(this.j.l()); + if (a == null) { + x xVar = this.k; + xVar.c.s(new NullPointerException("Continuation returned null")); + return; + } + Executor executor = g.f1578b; + a.g(executor, this.k); + a.e(executor, this.k); + a.a(executor, this.k); + } catch (RuntimeExecutionException e) { + if (e.getCause() instanceof Exception) { + this.k.c.s((Exception) e.getCause()); + return; + } + this.k.c.s(e); + } catch (CancellationException unused) { + this.k.c.u(); + } catch (Exception e2) { + this.k.c.s(e2); + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/x.java b/app/src/main/java/b/i/a/f/n/x.java new file mode 100644 index 0000000000..1d6db130f2 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/x.java @@ -0,0 +1,39 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class x implements b, d, e, z { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final f f1586b; + public final b0 c; + + public x(@NonNull Executor executor, @NonNull f fVar, @NonNull b0 b0Var) { + this.a = executor; + this.f1586b = fVar; + this.c = b0Var; + } + + @Override // b.i.a.f.n.z + public final void a(@NonNull Task task) { + this.a.execute(new w(this, task)); + } + + @Override // b.i.a.f.n.b + public final void b() { + this.c.u(); + } + + @Override // b.i.a.f.n.d + public final void onFailure(@NonNull Exception exc) { + this.c.s(exc); + } + + @Override // b.i.a.f.n.e + public final void onSuccess(TContinuationResult tcontinuationresult) { + this.c.t(tcontinuationresult); + } +} diff --git a/app/src/main/java/b/i/a/f/n/y.java b/app/src/main/java/b/i/a/f/n/y.java new file mode 100644 index 0000000000..320482d1b9 --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/y.java @@ -0,0 +1,45 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import java.util.ArrayDeque; +import java.util.Queue; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public final class y { + public final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public Queue> f1587b; + public boolean c; + + public final void a(@NonNull Task task) { + z poll; + synchronized (this.a) { + if (this.f1587b != null) { + if (!this.c) { + this.c = true; + } + } + return; + } + while (true) { + synchronized (this.a) { + poll = this.f1587b.poll(); + if (poll == null) { + this.c = false; + return; + } + } + poll.a(task); + } + } + + public final void b(@NonNull z zVar) { + synchronized (this.a) { + if (this.f1587b == null) { + this.f1587b = new ArrayDeque(); + } + this.f1587b.add(zVar); + } + } +} diff --git a/app/src/main/java/b/i/a/f/n/z.java b/app/src/main/java/b/i/a/f/n/z.java new file mode 100644 index 0000000000..c65610f8db --- /dev/null +++ b/app/src/main/java/b/i/a/f/n/z.java @@ -0,0 +1,8 @@ +package b.i.a.f.n; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */ +public interface z { + void a(@NonNull Task task); +} diff --git a/app/src/main/java/b/i/a/g/a/a.java b/app/src/main/java/b/i/a/g/a/a.java new file mode 100644 index 0000000000..ec22cd4bdf --- /dev/null +++ b/app/src/main/java/b/i/a/g/a/a.java @@ -0,0 +1,215 @@ +package b.i.a.g.a; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.MotionEvent; +import android.view.VelocityTracker; +import android.view.View; +import android.view.ViewConfiguration; +import android.widget.OverScroller; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.coordinatorlayout.widget.CoordinatorLayout; +import androidx.core.view.ViewCompat; +/* compiled from: HeaderBehavior */ +public abstract class a extends c { + private static final int INVALID_POINTER = -1; + private int activePointerId = -1; + @Nullable + private Runnable flingRunnable; + private boolean isBeingDragged; + private int lastMotionY; + public OverScroller scroller; + private int touchSlop = -1; + @Nullable + private VelocityTracker velocityTracker; + + /* compiled from: HeaderBehavior */ + /* renamed from: b.i.a.g.a.a$a reason: collision with other inner class name */ + public class RunnableC0113a implements Runnable { + public final CoordinatorLayout j; + public final V k; + + public RunnableC0113a(CoordinatorLayout coordinatorLayout, V v) { + this.j = coordinatorLayout; + this.k = v; + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v4, resolved type: b.i.a.g.a.a */ + /* JADX DEBUG: Multi-variable search result rejected for r0v5, resolved type: b.i.a.g.a.a */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // java.lang.Runnable + public void run() { + OverScroller overScroller; + if (this.k != 0 && (overScroller = a.this.scroller) != null) { + if (overScroller.computeScrollOffset()) { + a aVar = a.this; + aVar.setHeaderTopBottomOffset(this.j, this.k, aVar.scroller.getCurrY()); + ViewCompat.postOnAnimation(this.k, this); + return; + } + a.this.onFlingFinished(this.j, this.k); + } + } + } + + public a() { + } + + public a(Context context, AttributeSet attributeSet) { + super(context, attributeSet); + } + + private void ensureVelocityTracker() { + if (this.velocityTracker == null) { + this.velocityTracker = VelocityTracker.obtain(); + } + } + + public abstract boolean canDragView(V v); + + public final boolean fling(CoordinatorLayout coordinatorLayout, @NonNull V v, int i, int i2, float f) { + Runnable runnable = this.flingRunnable; + if (runnable != null) { + v.removeCallbacks(runnable); + this.flingRunnable = null; + } + if (this.scroller == null) { + this.scroller = new OverScroller(v.getContext()); + } + this.scroller.fling(0, getTopAndBottomOffset(), 0, Math.round(f), 0, 0, i, i2); + if (this.scroller.computeScrollOffset()) { + RunnableC0113a aVar = new RunnableC0113a(coordinatorLayout, v); + this.flingRunnable = aVar; + ViewCompat.postOnAnimation(v, aVar); + return true; + } + onFlingFinished(coordinatorLayout, v); + return false; + } + + public abstract int getMaxDragOffset(@NonNull V v); + + public abstract int getScrollRangeForDragFling(@NonNull V v); + + public abstract int getTopBottomOffsetForScrollingSibling(); + + public abstract void onFlingFinished(CoordinatorLayout coordinatorLayout, V v); + + @Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior + public boolean onInterceptTouchEvent(@NonNull CoordinatorLayout coordinatorLayout, @NonNull V v, @NonNull MotionEvent motionEvent) { + int findPointerIndex; + if (this.touchSlop < 0) { + this.touchSlop = ViewConfiguration.get(coordinatorLayout.getContext()).getScaledTouchSlop(); + } + if (motionEvent.getActionMasked() == 2 && this.isBeingDragged) { + int i = this.activePointerId; + if (i == -1 || (findPointerIndex = motionEvent.findPointerIndex(i)) == -1) { + return false; + } + int y2 = (int) motionEvent.getY(findPointerIndex); + if (Math.abs(y2 - this.lastMotionY) > this.touchSlop) { + this.lastMotionY = y2; + return true; + } + } + if (motionEvent.getActionMasked() == 0) { + this.activePointerId = -1; + int x2 = (int) motionEvent.getX(); + int y3 = (int) motionEvent.getY(); + boolean z2 = canDragView(v) && coordinatorLayout.isPointInChildBounds(v, x2, y3); + this.isBeingDragged = z2; + if (z2) { + this.lastMotionY = y3; + this.activePointerId = motionEvent.getPointerId(0); + ensureVelocityTracker(); + OverScroller overScroller = this.scroller; + if (overScroller != null && !overScroller.isFinished()) { + this.scroller.abortAnimation(); + return true; + } + } + } + VelocityTracker velocityTracker = this.velocityTracker; + if (velocityTracker != null) { + velocityTracker.addMovement(motionEvent); + } + return false; + } + + /* JADX WARNING: Removed duplicated region for block: B:24:0x007b */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x0085 */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x008c A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:32:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */ + @Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior + public boolean onTouchEvent(@NonNull CoordinatorLayout coordinatorLayout, @NonNull V v, @NonNull MotionEvent motionEvent) { + boolean z2; + VelocityTracker velocityTracker; + VelocityTracker velocityTracker2; + int actionMasked = motionEvent.getActionMasked(); + if (actionMasked != 1) { + if (actionMasked == 2) { + int findPointerIndex = motionEvent.findPointerIndex(this.activePointerId); + if (findPointerIndex == -1) { + return false; + } + int y2 = (int) motionEvent.getY(findPointerIndex); + this.lastMotionY = y2; + scroll(coordinatorLayout, v, this.lastMotionY - y2, getMaxDragOffset(v), 0); + } else if (actionMasked != 3) { + if (actionMasked == 6) { + int i = motionEvent.getActionIndex() == 0 ? 1 : 0; + this.activePointerId = motionEvent.getPointerId(i); + this.lastMotionY = (int) (motionEvent.getY(i) + 0.5f); + } + } + z2 = false; + velocityTracker = this.velocityTracker; + if (velocityTracker != null) { + velocityTracker.addMovement(motionEvent); + } + return !this.isBeingDragged || z2; + } + VelocityTracker velocityTracker3 = this.velocityTracker; + if (velocityTracker3 != null) { + velocityTracker3.addMovement(motionEvent); + this.velocityTracker.computeCurrentVelocity(1000); + fling(coordinatorLayout, v, -getScrollRangeForDragFling(v), 0, this.velocityTracker.getYVelocity(this.activePointerId)); + z2 = true; + this.isBeingDragged = false; + this.activePointerId = -1; + velocityTracker2 = this.velocityTracker; + if (velocityTracker2 != null) { + velocityTracker2.recycle(); + this.velocityTracker = null; + } + velocityTracker = this.velocityTracker; + if (velocityTracker != null) { + } + if (!this.isBeingDragged) { + return true; + } + } + z2 = false; + this.isBeingDragged = false; + this.activePointerId = -1; + velocityTracker2 = this.velocityTracker; + if (velocityTracker2 != null) { + } + velocityTracker = this.velocityTracker; + if (velocityTracker != null) { + } + if (!this.isBeingDragged) { + } + } + + public final int scroll(CoordinatorLayout coordinatorLayout, V v, int i, int i2, int i3) { + return setHeaderTopBottomOffset(coordinatorLayout, v, getTopBottomOffsetForScrollingSibling() - i, i2, i3); + } + + public int setHeaderTopBottomOffset(CoordinatorLayout coordinatorLayout, V v, int i) { + return setHeaderTopBottomOffset(coordinatorLayout, v, i, Integer.MIN_VALUE, Integer.MAX_VALUE); + } + + public abstract int setHeaderTopBottomOffset(CoordinatorLayout coordinatorLayout, V v, int i, int i2, int i3); +} diff --git a/app/src/main/java/b/i/a/g/a/b.java b/app/src/main/java/b/i/a/g/a/b.java new file mode 100644 index 0000000000..056931120a --- /dev/null +++ b/app/src/main/java/b/i/a/g/a/b.java @@ -0,0 +1,117 @@ +package b.i.a.g.a; + +import android.content.Context; +import android.graphics.Rect; +import android.util.AttributeSet; +import android.view.View; +import android.view.ViewGroup; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import androidx.coordinatorlayout.widget.CoordinatorLayout; +import androidx.core.math.MathUtils; +import androidx.core.view.GravityCompat; +import androidx.core.view.ViewCompat; +import androidx.core.view.WindowInsetsCompat; +import com.google.android.material.badge.BadgeDrawable; +import java.util.List; +/* compiled from: HeaderScrollingViewBehavior */ +public abstract class b extends c { + private int overlayTop; + public final Rect tempRect1 = new Rect(); + public final Rect tempRect2 = new Rect(); + private int verticalLayoutGap = 0; + + public b() { + } + + public b(Context context, AttributeSet attributeSet) { + super(context, attributeSet); + } + + private static int resolveGravity(int i) { + return i == 0 ? BadgeDrawable.TOP_START : i; + } + + @Nullable + public abstract View findFirstDependency(List list); + + public final int getOverlapPixelsForOffset(View view) { + if (this.overlayTop == 0) { + return 0; + } + float overlapRatioForOffset = getOverlapRatioForOffset(view); + int i = this.overlayTop; + return MathUtils.clamp((int) (overlapRatioForOffset * ((float) i)), 0, i); + } + + public abstract float getOverlapRatioForOffset(View view); + + public final int getOverlayTop() { + return this.overlayTop; + } + + public int getScrollRange(@NonNull View view) { + return view.getMeasuredHeight(); + } + + public final int getVerticalLayoutGap() { + return this.verticalLayoutGap; + } + + @Override // b.i.a.g.a.c + public void layoutChild(@NonNull CoordinatorLayout coordinatorLayout, @NonNull View view, int i) { + View findFirstDependency = findFirstDependency(coordinatorLayout.getDependencies(view)); + if (findFirstDependency != null) { + CoordinatorLayout.LayoutParams layoutParams = (CoordinatorLayout.LayoutParams) view.getLayoutParams(); + Rect rect = this.tempRect1; + rect.set(coordinatorLayout.getPaddingLeft() + ((ViewGroup.MarginLayoutParams) layoutParams).leftMargin, findFirstDependency.getBottom() + ((ViewGroup.MarginLayoutParams) layoutParams).topMargin, (coordinatorLayout.getWidth() - coordinatorLayout.getPaddingRight()) - ((ViewGroup.MarginLayoutParams) layoutParams).rightMargin, ((findFirstDependency.getBottom() + coordinatorLayout.getHeight()) - coordinatorLayout.getPaddingBottom()) - ((ViewGroup.MarginLayoutParams) layoutParams).bottomMargin); + WindowInsetsCompat lastWindowInsets = coordinatorLayout.getLastWindowInsets(); + if (lastWindowInsets != null && ViewCompat.getFitsSystemWindows(coordinatorLayout) && !ViewCompat.getFitsSystemWindows(view)) { + rect.left = lastWindowInsets.getSystemWindowInsetLeft() + rect.left; + rect.right -= lastWindowInsets.getSystemWindowInsetRight(); + } + Rect rect2 = this.tempRect2; + GravityCompat.apply(resolveGravity(layoutParams.gravity), view.getMeasuredWidth(), view.getMeasuredHeight(), rect, rect2, i); + int overlapPixelsForOffset = getOverlapPixelsForOffset(findFirstDependency); + view.layout(rect2.left, rect2.top - overlapPixelsForOffset, rect2.right, rect2.bottom - overlapPixelsForOffset); + this.verticalLayoutGap = rect2.top - findFirstDependency.getBottom(); + return; + } + super.layoutChild(coordinatorLayout, view, i); + this.verticalLayoutGap = 0; + } + + @Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior + public boolean onMeasureChild(@NonNull CoordinatorLayout coordinatorLayout, @NonNull View view, int i, int i2, int i3, int i4) { + View findFirstDependency; + WindowInsetsCompat lastWindowInsets; + int i5 = view.getLayoutParams().height; + if ((i5 != -1 && i5 != -2) || (findFirstDependency = findFirstDependency(coordinatorLayout.getDependencies(view))) == null) { + return false; + } + int size = View.MeasureSpec.getSize(i3); + if (size <= 0) { + size = coordinatorLayout.getHeight(); + } else if (ViewCompat.getFitsSystemWindows(findFirstDependency) && (lastWindowInsets = coordinatorLayout.getLastWindowInsets()) != null) { + size = lastWindowInsets.getSystemWindowInsetBottom() + lastWindowInsets.getSystemWindowInsetTop() + size; + } + int scrollRange = getScrollRange(findFirstDependency) + size; + int measuredHeight = findFirstDependency.getMeasuredHeight(); + if (shouldHeaderOverlapScrollingChild()) { + view.setTranslationY((float) (-measuredHeight)); + } else { + scrollRange -= measuredHeight; + } + coordinatorLayout.onMeasureChild(view, i, i2, View.MeasureSpec.makeMeasureSpec(scrollRange, i5 == -1 ? BasicMeasure.EXACTLY : Integer.MIN_VALUE), i4); + return true; + } + + public final void setOverlayTop(int i) { + this.overlayTop = i; + } + + public boolean shouldHeaderOverlapScrollingChild() { + return false; + } +} diff --git a/app/src/main/java/b/i/a/g/a/c.java b/app/src/main/java/b/i/a/g/a/c.java new file mode 100644 index 0000000000..01a5f62f96 --- /dev/null +++ b/app/src/main/java/b/i/a/g/a/c.java @@ -0,0 +1,115 @@ +package b.i.a.g.a; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.View; +import androidx.annotation.NonNull; +import androidx.coordinatorlayout.widget.CoordinatorLayout; +/* compiled from: ViewOffsetBehavior */ +public class c extends CoordinatorLayout.Behavior { + private int tempLeftRightOffset = 0; + private int tempTopBottomOffset = 0; + private d viewOffsetHelper; + + public c() { + } + + public c(Context context, AttributeSet attributeSet) { + super(context, attributeSet); + } + + public int getLeftAndRightOffset() { + d dVar = this.viewOffsetHelper; + if (dVar != null) { + return dVar.e; + } + return 0; + } + + public int getTopAndBottomOffset() { + d dVar = this.viewOffsetHelper; + if (dVar != null) { + return dVar.d; + } + return 0; + } + + public boolean isHorizontalOffsetEnabled() { + d dVar = this.viewOffsetHelper; + return dVar != null && dVar.g; + } + + public boolean isVerticalOffsetEnabled() { + d dVar = this.viewOffsetHelper; + return dVar != null && dVar.f; + } + + public void layoutChild(@NonNull CoordinatorLayout coordinatorLayout, @NonNull V v, int i) { + coordinatorLayout.onLayoutChild(v, i); + } + + @Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior + public boolean onLayoutChild(@NonNull CoordinatorLayout coordinatorLayout, @NonNull V v, int i) { + layoutChild(coordinatorLayout, v, i); + if (this.viewOffsetHelper == null) { + this.viewOffsetHelper = new d(v); + } + d dVar = this.viewOffsetHelper; + dVar.f1588b = dVar.a.getTop(); + dVar.c = dVar.a.getLeft(); + this.viewOffsetHelper.a(); + int i2 = this.tempTopBottomOffset; + if (i2 != 0) { + this.viewOffsetHelper.b(i2); + this.tempTopBottomOffset = 0; + } + int i3 = this.tempLeftRightOffset; + if (i3 == 0) { + return true; + } + d dVar2 = this.viewOffsetHelper; + if (dVar2.g && dVar2.e != i3) { + dVar2.e = i3; + dVar2.a(); + } + this.tempLeftRightOffset = 0; + return true; + } + + public void setHorizontalOffsetEnabled(boolean z2) { + d dVar = this.viewOffsetHelper; + if (dVar != null) { + dVar.g = z2; + } + } + + public boolean setLeftAndRightOffset(int i) { + d dVar = this.viewOffsetHelper; + if (dVar == null) { + this.tempLeftRightOffset = i; + return false; + } else if (!dVar.g || dVar.e == i) { + return false; + } else { + dVar.e = i; + dVar.a(); + return true; + } + } + + public boolean setTopAndBottomOffset(int i) { + d dVar = this.viewOffsetHelper; + if (dVar != null) { + return dVar.b(i); + } + this.tempTopBottomOffset = i; + return false; + } + + public void setVerticalOffsetEnabled(boolean z2) { + d dVar = this.viewOffsetHelper; + if (dVar != null) { + dVar.f = z2; + } + } +} diff --git a/app/src/main/java/b/i/a/g/a/d.java b/app/src/main/java/b/i/a/g/a/d.java new file mode 100644 index 0000000000..8ac5600c1f --- /dev/null +++ b/app/src/main/java/b/i/a/g/a/d.java @@ -0,0 +1,36 @@ +package b.i.a.g.a; + +import android.view.View; +import androidx.core.view.ViewCompat; +/* compiled from: ViewOffsetHelper */ +public class d { + public final View a; + + /* renamed from: b reason: collision with root package name */ + public int f1588b; + public int c; + public int d; + public int e; + public boolean f = true; + public boolean g = true; + + public d(View view) { + this.a = view; + } + + public void a() { + View view = this.a; + ViewCompat.offsetTopAndBottom(view, this.d - (view.getTop() - this.f1588b)); + View view2 = this.a; + ViewCompat.offsetLeftAndRight(view2, this.e - (view2.getLeft() - this.c)); + } + + public boolean b(int i) { + if (!this.f || this.d == i) { + return false; + } + this.d = i; + a(); + return true; + } +} diff --git a/app/src/main/java/b/i/a/g/a/e.java b/app/src/main/java/b/i/a/g/a/e.java new file mode 100644 index 0000000000..0c80a96207 --- /dev/null +++ b/app/src/main/java/b/i/a/g/a/e.java @@ -0,0 +1,24 @@ +package b.i.a.g.a; + +import android.animation.ObjectAnimator; +import android.animation.StateListAnimator; +import android.view.View; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import androidx.constraintlayout.motion.widget.Key; +import com.google.android.material.R; +/* compiled from: ViewUtilsLollipop */ +@RequiresApi(21) +public class e { + public static final int[] a = {16843848}; + + public static void a(@NonNull View view, float f) { + int integer = view.getResources().getInteger(R.integer.app_bar_elevation_anim_duration); + StateListAnimator stateListAnimator = new StateListAnimator(); + long j = (long) integer; + stateListAnimator.addState(new int[]{16842766, R.attr.state_liftable, -R.attr.state_lifted}, ObjectAnimator.ofFloat(view, Key.ELEVATION, 0.0f).setDuration(j)); + stateListAnimator.addState(new int[]{16842766}, ObjectAnimator.ofFloat(view, Key.ELEVATION, f).setDuration(j)); + stateListAnimator.addState(new int[0], ObjectAnimator.ofFloat(view, Key.ELEVATION, 0.0f).setDuration(0L)); + view.setStateListAnimator(stateListAnimator); + } +} diff --git a/app/src/main/java/b/i/a/g/b/a.java b/app/src/main/java/b/i/a/g/b/a.java new file mode 100644 index 0000000000..85873f230d --- /dev/null +++ b/app/src/main/java/b/i/a/g/b/a.java @@ -0,0 +1,151 @@ +package b.i.a.g.b; + +import android.content.res.ColorStateList; +import android.graphics.PorterDuff; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.InsetDrawable; +import android.graphics.drawable.LayerDrawable; +import android.graphics.drawable.RippleDrawable; +import androidx.annotation.Dimension; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import androidx.core.graphics.drawable.DrawableCompat; +import androidx.core.view.ViewCompat; +import com.google.android.material.R; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.color.MaterialColors; +import com.google.android.material.ripple.RippleUtils; +import com.google.android.material.shape.MaterialShapeDrawable; +import com.google.android.material.shape.ShapeAppearanceModel; +import com.google.android.material.shape.Shapeable; +/* compiled from: MaterialButtonHelper */ +@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) +public class a { + public final MaterialButton a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public ShapeAppearanceModel f1589b; + public int c; + public int d; + public int e; + public int f; + public int g; + public int h; + @Nullable + public PorterDuff.Mode i; + @Nullable + public ColorStateList j; + @Nullable + public ColorStateList k; + @Nullable + public ColorStateList l; + @Nullable + public Drawable m; + public boolean n = false; + public boolean o = false; + public boolean p = false; + public boolean q; + public LayerDrawable r; + + /* renamed from: s reason: collision with root package name */ + public int f1590s; + + public a(MaterialButton materialButton, @NonNull ShapeAppearanceModel shapeAppearanceModel) { + this.a = materialButton; + this.f1589b = shapeAppearanceModel; + } + + @Nullable + public Shapeable a() { + LayerDrawable layerDrawable = this.r; + if (layerDrawable == null || layerDrawable.getNumberOfLayers() <= 1) { + return null; + } + return this.r.getNumberOfLayers() > 2 ? (Shapeable) this.r.getDrawable(2) : (Shapeable) this.r.getDrawable(1); + } + + @Nullable + public MaterialShapeDrawable b() { + return c(false); + } + + @Nullable + public final MaterialShapeDrawable c(boolean z2) { + LayerDrawable layerDrawable = this.r; + if (layerDrawable == null || layerDrawable.getNumberOfLayers() <= 0) { + return null; + } + return (MaterialShapeDrawable) ((LayerDrawable) ((InsetDrawable) this.r.getDrawable(0)).getDrawable()).getDrawable(!z2 ? 1 : 0); + } + + @Nullable + public final MaterialShapeDrawable d() { + return c(true); + } + + public void e(@NonNull ShapeAppearanceModel shapeAppearanceModel) { + this.f1589b = shapeAppearanceModel; + if (b() != null) { + b().setShapeAppearanceModel(shapeAppearanceModel); + } + if (d() != null) { + d().setShapeAppearanceModel(shapeAppearanceModel); + } + if (a() != null) { + a().setShapeAppearanceModel(shapeAppearanceModel); + } + } + + public final void f(@Dimension int i, @Dimension int i2) { + int paddingStart = ViewCompat.getPaddingStart(this.a); + int paddingTop = this.a.getPaddingTop(); + int paddingEnd = ViewCompat.getPaddingEnd(this.a); + int paddingBottom = this.a.getPaddingBottom(); + int i3 = this.e; + int i4 = this.f; + this.f = i2; + this.e = i; + if (!this.o) { + g(); + } + ViewCompat.setPaddingRelative(this.a, paddingStart, (paddingTop + i) - i3, paddingEnd, (paddingBottom + i2) - i4); + } + + public final void g() { + MaterialButton materialButton = this.a; + MaterialShapeDrawable materialShapeDrawable = new MaterialShapeDrawable(this.f1589b); + materialShapeDrawable.initializeElevationOverlay(this.a.getContext()); + DrawableCompat.setTintList(materialShapeDrawable, this.j); + PorterDuff.Mode mode = this.i; + if (mode != null) { + DrawableCompat.setTintMode(materialShapeDrawable, mode); + } + materialShapeDrawable.setStroke((float) this.h, this.k); + MaterialShapeDrawable materialShapeDrawable2 = new MaterialShapeDrawable(this.f1589b); + materialShapeDrawable2.setTint(0); + materialShapeDrawable2.setStroke((float) this.h, this.n ? MaterialColors.getColor(this.a, R.attr.colorSurface) : 0); + MaterialShapeDrawable materialShapeDrawable3 = new MaterialShapeDrawable(this.f1589b); + this.m = materialShapeDrawable3; + DrawableCompat.setTint(materialShapeDrawable3, -1); + RippleDrawable rippleDrawable = new RippleDrawable(RippleUtils.sanitizeRippleDrawableColor(this.l), new InsetDrawable((Drawable) new LayerDrawable(new Drawable[]{materialShapeDrawable2, materialShapeDrawable}), this.c, this.e, this.d, this.f), this.m); + this.r = rippleDrawable; + materialButton.setInternalBackground(rippleDrawable); + MaterialShapeDrawable b2 = b(); + if (b2 != null) { + b2.setElevation((float) this.f1590s); + } + } + + public final void h() { + MaterialShapeDrawable b2 = b(); + MaterialShapeDrawable d = d(); + if (b2 != null) { + b2.setStroke((float) this.h, this.k); + if (d != null) { + d.setStroke((float) this.h, this.n ? MaterialColors.getColor(this.a, R.attr.colorSurface) : 0); + } + } + } +} diff --git a/app/src/main/java/b/i/a/g/c/a.java b/app/src/main/java/b/i/a/g/c/a.java new file mode 100644 index 0000000000..b1817cb73e --- /dev/null +++ b/app/src/main/java/b/i/a/g/c/a.java @@ -0,0 +1,258 @@ +package b.i.a.g.c; + +import android.content.res.ColorStateList; +import android.content.res.TypedArray; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.InsetDrawable; +import android.graphics.drawable.LayerDrawable; +import android.graphics.drawable.RippleDrawable; +import android.graphics.drawable.StateListDrawable; +import android.util.AttributeSet; +import androidx.annotation.Dimension; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import androidx.annotation.StyleRes; +import androidx.core.graphics.drawable.DrawableCompat; +import com.google.android.material.R; +import com.google.android.material.card.MaterialCardView; +import com.google.android.material.ripple.RippleUtils; +import com.google.android.material.shape.CornerTreatment; +import com.google.android.material.shape.CutCornerTreatment; +import com.google.android.material.shape.MaterialShapeDrawable; +import com.google.android.material.shape.RoundedCornerTreatment; +import com.google.android.material.shape.ShapeAppearanceModel; +/* compiled from: MaterialCardViewHelper */ +@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) +public class a { + public static final int[] a = {16842912}; + + /* renamed from: b reason: collision with root package name */ + public static final double f1591b = Math.cos(Math.toRadians(45.0d)); + @NonNull + public final MaterialCardView c; + @NonNull + public final Rect d = new Rect(); + @NonNull + public final MaterialShapeDrawable e; + @NonNull + public final MaterialShapeDrawable f; + @Dimension + public int g; + @Dimension + public int h; + @Dimension + public int i; + @Nullable + public Drawable j; + @Nullable + public Drawable k; + @Nullable + public ColorStateList l; + @Nullable + public ColorStateList m; + @Nullable + public ShapeAppearanceModel n; + @Nullable + public ColorStateList o; + @Nullable + public Drawable p; + @Nullable + public LayerDrawable q; + @Nullable + public MaterialShapeDrawable r; + @Nullable + + /* renamed from: s reason: collision with root package name */ + public MaterialShapeDrawable f1592s; + public boolean t = false; + public boolean u; + + /* compiled from: MaterialCardViewHelper */ + /* renamed from: b.i.a.g.c.a$a reason: collision with other inner class name */ + public class C0114a extends InsetDrawable { + public C0114a(a aVar, Drawable drawable, int i, int i2, int i3, int i4) { + super(drawable, i, i2, i3, i4); + } + + @Override // android.graphics.drawable.Drawable + public int getMinimumHeight() { + return -1; + } + + @Override // android.graphics.drawable.Drawable + public int getMinimumWidth() { + return -1; + } + + @Override // android.graphics.drawable.InsetDrawable, android.graphics.drawable.Drawable, android.graphics.drawable.DrawableWrapper + public boolean getPadding(Rect rect) { + return false; + } + } + + public a(@NonNull MaterialCardView materialCardView, AttributeSet attributeSet, int i, @StyleRes int i2) { + this.c = materialCardView; + MaterialShapeDrawable materialShapeDrawable = new MaterialShapeDrawable(materialCardView.getContext(), attributeSet, i, i2); + this.e = materialShapeDrawable; + materialShapeDrawable.initializeElevationOverlay(materialCardView.getContext()); + materialShapeDrawable.setShadowColor(-12303292); + ShapeAppearanceModel.Builder builder = materialShapeDrawable.getShapeAppearanceModel().toBuilder(); + TypedArray obtainStyledAttributes = materialCardView.getContext().obtainStyledAttributes(attributeSet, R.styleable.CardView, i, R.style.CardView); + int i3 = R.styleable.CardView_cardCornerRadius; + if (obtainStyledAttributes.hasValue(i3)) { + builder.setAllCornerSizes(obtainStyledAttributes.getDimension(i3, 0.0f)); + } + this.f = new MaterialShapeDrawable(); + h(builder.build()); + obtainStyledAttributes.recycle(); + } + + public final float a() { + return Math.max(Math.max(b(this.n.getTopLeftCorner(), this.e.getTopLeftCornerResolvedSize()), b(this.n.getTopRightCorner(), this.e.getTopRightCornerResolvedSize())), Math.max(b(this.n.getBottomRightCorner(), this.e.getBottomRightCornerResolvedSize()), b(this.n.getBottomLeftCorner(), this.e.getBottomLeftCornerResolvedSize()))); + } + + public final float b(CornerTreatment cornerTreatment, float f) { + if (cornerTreatment instanceof RoundedCornerTreatment) { + return (float) ((1.0d - f1591b) * ((double) f)); + } + if (cornerTreatment instanceof CutCornerTreatment) { + return f / 2.0f; + } + return 0.0f; + } + + public final float c() { + return this.c.getMaxCardElevation() + (j() ? a() : 0.0f); + } + + public final float d() { + return (this.c.getMaxCardElevation() * 1.5f) + (j() ? a() : 0.0f); + } + + @NonNull + public final Drawable e() { + RippleDrawable rippleDrawable; + if (this.p == null) { + if (RippleUtils.USE_FRAMEWORK_RIPPLE) { + this.f1592s = new MaterialShapeDrawable(this.n); + rippleDrawable = new RippleDrawable(this.l, null, this.f1592s); + } else { + StateListDrawable stateListDrawable = new StateListDrawable(); + MaterialShapeDrawable materialShapeDrawable = new MaterialShapeDrawable(this.n); + this.r = materialShapeDrawable; + materialShapeDrawable.setFillColor(this.l); + stateListDrawable.addState(new int[]{16842919}, this.r); + rippleDrawable = stateListDrawable; + } + this.p = rippleDrawable; + } + if (this.q == null) { + StateListDrawable stateListDrawable2 = new StateListDrawable(); + Drawable drawable = this.k; + if (drawable != null) { + stateListDrawable2.addState(a, drawable); + } + LayerDrawable layerDrawable = new LayerDrawable(new Drawable[]{this.p, this.f, stateListDrawable2}); + this.q = layerDrawable; + layerDrawable.setId(2, R.id.mtrl_card_checked_layer_id); + } + return this.q; + } + + @NonNull + public final Drawable f(Drawable drawable) { + int i; + int i2; + if (this.c.getUseCompatPadding()) { + int ceil = (int) Math.ceil((double) d()); + i2 = (int) Math.ceil((double) c()); + i = ceil; + } else { + i2 = 0; + i = 0; + } + return new C0114a(this, drawable, i2, i, i2, i); + } + + public void g(@Nullable Drawable drawable) { + this.k = drawable; + if (drawable != null) { + Drawable wrap = DrawableCompat.wrap(drawable.mutate()); + this.k = wrap; + DrawableCompat.setTintList(wrap, this.m); + } + if (this.q != null) { + StateListDrawable stateListDrawable = new StateListDrawable(); + Drawable drawable2 = this.k; + if (drawable2 != null) { + stateListDrawable.addState(a, drawable2); + } + this.q.setDrawableByLayerId(R.id.mtrl_card_checked_layer_id, stateListDrawable); + } + } + + public void h(@NonNull ShapeAppearanceModel shapeAppearanceModel) { + this.n = shapeAppearanceModel; + this.e.setShapeAppearanceModel(shapeAppearanceModel); + MaterialShapeDrawable materialShapeDrawable = this.e; + materialShapeDrawable.setShadowBitmapDrawingEnable(!materialShapeDrawable.isRoundRect()); + MaterialShapeDrawable materialShapeDrawable2 = this.f; + if (materialShapeDrawable2 != null) { + materialShapeDrawable2.setShapeAppearanceModel(shapeAppearanceModel); + } + MaterialShapeDrawable materialShapeDrawable3 = this.f1592s; + if (materialShapeDrawable3 != null) { + materialShapeDrawable3.setShapeAppearanceModel(shapeAppearanceModel); + } + MaterialShapeDrawable materialShapeDrawable4 = this.r; + if (materialShapeDrawable4 != null) { + materialShapeDrawable4.setShapeAppearanceModel(shapeAppearanceModel); + } + } + + public final boolean i() { + return this.c.getPreventCornerOverlap() && !this.e.isRoundRect(); + } + + public final boolean j() { + return this.c.getPreventCornerOverlap() && this.e.isRoundRect() && this.c.getUseCompatPadding(); + } + + public void k() { + float f = 0.0f; + float a2 = i() || j() ? a() : 0.0f; + if (this.c.getPreventCornerOverlap() && this.c.getUseCompatPadding()) { + f = (float) ((1.0d - f1591b) * ((double) this.c.getCardViewRadius())); + } + int i = (int) (a2 - f); + MaterialCardView materialCardView = this.c; + Rect rect = this.d; + materialCardView.setAncestorContentPadding(rect.left + i, rect.top + i, rect.right + i, rect.bottom + i); + } + + public void l() { + if (!this.t) { + this.c.setBackgroundInternal(f(this.e)); + } + this.c.setForeground(f(this.j)); + } + + public final void m() { + Drawable drawable; + if (!RippleUtils.USE_FRAMEWORK_RIPPLE || (drawable = this.p) == null) { + MaterialShapeDrawable materialShapeDrawable = this.r; + if (materialShapeDrawable != null) { + materialShapeDrawable.setFillColor(this.l); + return; + } + return; + } + ((RippleDrawable) drawable).setColor(this.l); + } + + public void n() { + this.f.setStroke((float) this.i, this.o); + } +} diff --git a/app/src/main/java/b/i/a/g/d/a.java b/app/src/main/java/b/i/a/g/d/a.java new file mode 100644 index 0000000000..b2652387ff --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/a.java @@ -0,0 +1,70 @@ +package b.i.a.g.d; + +import android.content.Context; +import android.content.res.ColorStateList; +import android.content.res.TypedArray; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.InsetDrawable; +import android.graphics.drawable.RippleDrawable; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.StyleRes; +import androidx.core.util.Preconditions; +import androidx.core.view.ViewCompat; +import com.google.android.material.R; +import com.google.android.material.resources.MaterialResources; +import com.google.android.material.shape.MaterialShapeDrawable; +import com.google.android.material.shape.ShapeAppearanceModel; +/* compiled from: CalendarItemStyle */ +public final class a { + @NonNull + public final Rect a; + + /* renamed from: b reason: collision with root package name */ + public final ColorStateList f1593b; + public final ColorStateList c; + public final ColorStateList d; + public final int e; + public final ShapeAppearanceModel f; + + public a(ColorStateList colorStateList, ColorStateList colorStateList2, ColorStateList colorStateList3, int i, ShapeAppearanceModel shapeAppearanceModel, @NonNull Rect rect) { + Preconditions.checkArgumentNonnegative(rect.left); + Preconditions.checkArgumentNonnegative(rect.top); + Preconditions.checkArgumentNonnegative(rect.right); + Preconditions.checkArgumentNonnegative(rect.bottom); + this.a = rect; + this.f1593b = colorStateList2; + this.c = colorStateList; + this.d = colorStateList3; + this.e = i; + this.f = shapeAppearanceModel; + } + + @NonNull + public static a a(@NonNull Context context, @StyleRes int i) { + Preconditions.checkArgument(i != 0, "Cannot create a CalendarItemStyle with a styleResId of 0"); + TypedArray obtainStyledAttributes = context.obtainStyledAttributes(i, R.styleable.MaterialCalendarItem); + Rect rect = new Rect(obtainStyledAttributes.getDimensionPixelOffset(R.styleable.MaterialCalendarItem_android_insetLeft, 0), obtainStyledAttributes.getDimensionPixelOffset(R.styleable.MaterialCalendarItem_android_insetTop, 0), obtainStyledAttributes.getDimensionPixelOffset(R.styleable.MaterialCalendarItem_android_insetRight, 0), obtainStyledAttributes.getDimensionPixelOffset(R.styleable.MaterialCalendarItem_android_insetBottom, 0)); + ColorStateList colorStateList = MaterialResources.getColorStateList(context, obtainStyledAttributes, R.styleable.MaterialCalendarItem_itemFillColor); + ColorStateList colorStateList2 = MaterialResources.getColorStateList(context, obtainStyledAttributes, R.styleable.MaterialCalendarItem_itemTextColor); + ColorStateList colorStateList3 = MaterialResources.getColorStateList(context, obtainStyledAttributes, R.styleable.MaterialCalendarItem_itemStrokeColor); + int dimensionPixelSize = obtainStyledAttributes.getDimensionPixelSize(R.styleable.MaterialCalendarItem_itemStrokeWidth, 0); + ShapeAppearanceModel build = ShapeAppearanceModel.builder(context, obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendarItem_itemShapeAppearance, 0), obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendarItem_itemShapeAppearanceOverlay, 0)).build(); + obtainStyledAttributes.recycle(); + return new a(colorStateList, colorStateList2, colorStateList3, dimensionPixelSize, build, rect); + } + + public void b(@NonNull TextView textView) { + MaterialShapeDrawable materialShapeDrawable = new MaterialShapeDrawable(); + MaterialShapeDrawable materialShapeDrawable2 = new MaterialShapeDrawable(); + materialShapeDrawable.setShapeAppearanceModel(this.f); + materialShapeDrawable2.setShapeAppearanceModel(this.f); + materialShapeDrawable.setFillColor(this.c); + materialShapeDrawable.setStroke((float) this.e, this.d); + textView.setTextColor(this.f1593b); + RippleDrawable rippleDrawable = new RippleDrawable(this.f1593b.withAlpha(30), materialShapeDrawable, materialShapeDrawable2); + Rect rect = this.a; + ViewCompat.setBackground(textView, new InsetDrawable((Drawable) rippleDrawable, rect.left, rect.top, rect.right, rect.bottom)); + } +} diff --git a/app/src/main/java/b/i/a/g/d/b.java b/app/src/main/java/b/i/a/g/d/b.java new file mode 100644 index 0000000000..853dd76196 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/b.java @@ -0,0 +1,48 @@ +package b.i.a.g.d; + +import android.content.Context; +import android.content.res.ColorStateList; +import android.content.res.TypedArray; +import android.graphics.Paint; +import androidx.annotation.NonNull; +import com.google.android.material.R; +import com.google.android.material.datepicker.MaterialCalendar; +import com.google.android.material.resources.MaterialAttributes; +import com.google.android.material.resources.MaterialResources; +/* compiled from: CalendarStyle */ +public final class b { + @NonNull + public final a a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final a f1594b; + @NonNull + public final a c; + @NonNull + public final a d; + @NonNull + public final a e; + @NonNull + public final a f; + @NonNull + public final a g; + @NonNull + public final Paint h; + + public b(@NonNull Context context) { + TypedArray obtainStyledAttributes = context.obtainStyledAttributes(MaterialAttributes.resolveOrThrow(context, R.attr.materialCalendarStyle, MaterialCalendar.class.getCanonicalName()), R.styleable.MaterialCalendar); + this.a = a.a(context, obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendar_dayStyle, 0)); + this.g = a.a(context, obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendar_dayInvalidStyle, 0)); + this.f1594b = a.a(context, obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendar_daySelectedStyle, 0)); + this.c = a.a(context, obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendar_dayTodayStyle, 0)); + ColorStateList colorStateList = MaterialResources.getColorStateList(context, obtainStyledAttributes, R.styleable.MaterialCalendar_rangeFillColor); + this.d = a.a(context, obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendar_yearStyle, 0)); + this.e = a.a(context, obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendar_yearSelectedStyle, 0)); + this.f = a.a(context, obtainStyledAttributes.getResourceId(R.styleable.MaterialCalendar_yearTodayStyle, 0)); + Paint paint = new Paint(); + this.h = paint; + paint.setColor(colorStateList.getDefaultColor()); + obtainStyledAttributes.recycle(); + } +} diff --git a/app/src/main/java/b/i/a/g/d/c.java b/app/src/main/java/b/i/a/g/d/c.java new file mode 100644 index 0000000000..8befef7c22 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/c.java @@ -0,0 +1,81 @@ +package b.i.a.g.d; + +import android.content.Context; +import android.text.TextUtils; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.google.android.material.R; +import com.google.android.material.datepicker.CalendarConstraints; +import com.google.android.material.internal.TextWatcherAdapter; +import com.google.android.material.textfield.TextInputLayout; +import java.text.DateFormat; +import java.text.ParseException; +import java.util.Date; +/* compiled from: DateFormatTextWatcher */ +public abstract class c extends TextWatcherAdapter { + @NonNull + public final TextInputLayout j; + public final DateFormat k; + public final CalendarConstraints l; + public final String m; + public final Runnable n; + public Runnable o; + + /* compiled from: DateFormatTextWatcher */ + public class a implements Runnable { + public final /* synthetic */ String j; + + public a(String str) { + this.j = str; + } + + @Override // java.lang.Runnable + public void run() { + c cVar = c.this; + TextInputLayout textInputLayout = cVar.j; + DateFormat dateFormat = cVar.k; + Context context = textInputLayout.getContext(); + String string = context.getString(R.string.mtrl_picker_invalid_format); + String format = String.format(context.getString(R.string.mtrl_picker_invalid_format_use), this.j); + String format2 = String.format(context.getString(R.string.mtrl_picker_invalid_format_example), dateFormat.format(new Date(l.h().getTimeInMillis()))); + textInputLayout.setError(string + "\n" + format + "\n" + format2); + c.this.a(); + } + } + + public c(String str, DateFormat dateFormat, @NonNull TextInputLayout textInputLayout, CalendarConstraints calendarConstraints) { + this.k = dateFormat; + this.j = textInputLayout; + this.l = calendarConstraints; + this.m = textInputLayout.getContext().getString(R.string.mtrl_picker_out_of_range); + this.n = new a(str); + } + + public abstract void a(); + + public abstract void b(@Nullable Long l); + + @Override // com.google.android.material.internal.TextWatcherAdapter, android.text.TextWatcher + public void onTextChanged(@NonNull CharSequence charSequence, int i, int i2, int i3) { + this.j.removeCallbacks(this.n); + this.j.removeCallbacks(this.o); + this.j.setError(null); + b(null); + if (!TextUtils.isEmpty(charSequence)) { + try { + Date parse = this.k.parse(charSequence.toString()); + this.j.setError(null); + long time = parse.getTime(); + if (!this.l.getDateValidator().isValid(time) || !this.l.isWithinBounds(time)) { + d dVar = new d(this, time); + this.o = dVar; + this.j.postDelayed(dVar, 1000); + return; + } + b(Long.valueOf(parse.getTime())); + } catch (ParseException unused) { + this.j.postDelayed(this.n, 1000); + } + } + } +} diff --git a/app/src/main/java/b/i/a/g/d/d.java b/app/src/main/java/b/i/a/g/d/d.java new file mode 100644 index 0000000000..b307afaa5e --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/d.java @@ -0,0 +1,20 @@ +package b.i.a.g.d; + +import b.i.a.f.e.o.f; +/* compiled from: DateFormatTextWatcher */ +public class d implements Runnable { + public final /* synthetic */ long j; + public final /* synthetic */ c k; + + public d(c cVar, long j) { + this.k = cVar; + this.j = j; + } + + @Override // java.lang.Runnable + public void run() { + c cVar = this.k; + cVar.j.setError(String.format(cVar.m, f.e0(this.j))); + this.k.a(); + } +} diff --git a/app/src/main/java/b/i/a/g/d/e.java b/app/src/main/java/b/i/a/g/d/e.java new file mode 100644 index 0000000000..6b33df6854 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/e.java @@ -0,0 +1,73 @@ +package b.i.a.g.d; + +import android.annotation.SuppressLint; +import android.os.Build; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.google.android.material.R; +import java.util.Calendar; +import java.util.Locale; +/* compiled from: DaysOfWeekAdapter */ +public class e extends BaseAdapter { + public static final int j = (Build.VERSION.SDK_INT >= 26 ? 4 : 1); + @NonNull + public final Calendar k; + public final int l; + public final int m; + + public e() { + Calendar i = l.i(); + this.k = i; + this.l = i.getMaximum(7); + this.m = i.getFirstDayOfWeek(); + } + + @Override // android.widget.Adapter + public int getCount() { + return this.l; + } + + @Override // android.widget.Adapter + @Nullable + public Object getItem(int i) { + int i2 = this.l; + if (i >= i2) { + return null; + } + int i3 = i + this.m; + if (i3 > i2) { + i3 -= i2; + } + return Integer.valueOf(i3); + } + + @Override // android.widget.Adapter + public long getItemId(int i) { + return 0; + } + + @Override // android.widget.Adapter + @Nullable + @SuppressLint({"WrongConstant"}) + public View getView(int i, @Nullable View view, @NonNull ViewGroup viewGroup) { + TextView textView = (TextView) view; + if (view == null) { + textView = (TextView) LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.mtrl_calendar_day_of_week, viewGroup, false); + } + Calendar calendar = this.k; + int i2 = i + this.m; + int i3 = this.l; + if (i2 > i3) { + i2 -= i3; + } + calendar.set(7, i2); + textView.setText(this.k.getDisplayName(7, j, textView.getResources().getConfiguration().locale)); + textView.setContentDescription(String.format(viewGroup.getContext().getString(R.string.mtrl_picker_day_of_week_column_header), this.k.getDisplayName(7, 2, Locale.getDefault()))); + return textView; + } +} diff --git a/app/src/main/java/b/i/a/g/d/f.java b/app/src/main/java/b/i/a/g/d/f.java new file mode 100644 index 0000000000..3f2dad1c22 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/f.java @@ -0,0 +1,18 @@ +package b.i.a.g.d; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.core.view.AccessibilityDelegateCompat; +import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; +import com.google.android.material.datepicker.MaterialCalendarGridView; +/* compiled from: MaterialCalendarGridView */ +public class f extends AccessibilityDelegateCompat { + public f(MaterialCalendarGridView materialCalendarGridView) { + } + + @Override // androidx.core.view.AccessibilityDelegateCompat + public void onInitializeAccessibilityNodeInfo(View view, @NonNull AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) { + super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat); + accessibilityNodeInfoCompat.setCollectionInfo(null); + } +} diff --git a/app/src/main/java/b/i/a/g/d/g.java b/app/src/main/java/b/i/a/g/d/g.java new file mode 100644 index 0000000000..1baad73291 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/g.java @@ -0,0 +1,172 @@ +package b.i.a.g.d; + +import android.content.Context; +import android.os.Build; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.google.android.material.R; +import com.google.android.material.datepicker.CalendarConstraints; +import com.google.android.material.datepicker.DateSelector; +import com.google.android.material.datepicker.MaterialCalendarGridView; +import com.google.android.material.datepicker.Month; +import java.text.DateFormat; +import java.util.Calendar; +import java.util.Collection; +import java.util.Date; +import java.util.Iterator; +import java.util.Locale; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: MonthAdapter */ +public class g extends BaseAdapter { + public static final int j = l.i().getMaximum(4); + public final Month k; + public final DateSelector l; + public Collection m; + public b n; + public final CalendarConstraints o; + + public g(Month month, DateSelector dateSelector, CalendarConstraints calendarConstraints) { + this.k = month; + this.l = dateSelector; + this.o = calendarConstraints; + this.m = dateSelector.getSelectedDays(); + } + + public int a(int i) { + return b() + (i - 1); + } + + public int b() { + return this.k.j(); + } + + @Nullable + /* renamed from: c */ + public Long getItem(int i) { + if (i < this.k.j() || i > d()) { + return null; + } + Month month = this.k; + return Long.valueOf(month.k((i - month.j()) + 1)); + } + + public int d() { + return (this.k.j() + this.k.n) - 1; + } + + public final void e(@Nullable TextView textView, long j2) { + a aVar; + if (textView != null) { + boolean z2 = false; + if (this.o.getDateValidator().isValid(j2)) { + textView.setEnabled(true); + Iterator it = this.l.getSelectedDays().iterator(); + while (true) { + if (!it.hasNext()) { + break; + } + if (l.a(j2) == l.a(it.next().longValue())) { + z2 = true; + break; + } + } + aVar = z2 ? this.n.f1594b : l.h().getTimeInMillis() == j2 ? this.n.c : this.n.a; + } else { + textView.setEnabled(false); + aVar = this.n.g; + } + aVar.b(textView); + } + } + + public final void f(MaterialCalendarGridView materialCalendarGridView, long j2) { + if (Month.h(j2).equals(this.k)) { + Calendar d = l.d(this.k.j); + d.setTimeInMillis(j2); + e((TextView) materialCalendarGridView.getChildAt(materialCalendarGridView.getAdapter().a(d.get(5)) - materialCalendarGridView.getFirstVisiblePosition()), j2); + } + } + + @Override // android.widget.Adapter + public int getCount() { + return b() + this.k.n; + } + + @Override // android.widget.Adapter + public long getItemId(int i) { + return (long) (i / this.k.m); + } + + /* JADX WARNING: Removed duplicated region for block: B:26:0x00e3 */ + @Override // android.widget.Adapter + @NonNull + public View getView(int i, @Nullable View view, @NonNull ViewGroup viewGroup) { + Long c; + CharSequence charSequence; + CharSequence charSequence2; + Context context = viewGroup.getContext(); + if (this.n == null) { + this.n = new b(context); + } + TextView textView = (TextView) view; + if (view == null) { + textView = (TextView) LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.mtrl_calendar_day, viewGroup, false); + } + int b2 = i - b(); + if (b2 >= 0) { + Month month = this.k; + if (b2 < month.n) { + int i2 = b2 + 1; + textView.setTag(month); + textView.setText(String.format(textView.getResources().getConfiguration().locale, "%d", Integer.valueOf(i2))); + long k = this.k.k(i2); + if (this.k.l == Month.i().l) { + Locale locale = Locale.getDefault(); + if (Build.VERSION.SDK_INT >= 24) { + charSequence2 = l.c("MMMEd", locale).format(new Date(k)); + } else { + AtomicReference atomicReference = l.a; + DateFormat dateInstance = DateFormat.getDateInstance(0, locale); + dateInstance.setTimeZone(l.g()); + charSequence2 = dateInstance.format(new Date(k)); + } + textView.setContentDescription(charSequence2); + } else { + Locale locale2 = Locale.getDefault(); + if (Build.VERSION.SDK_INT >= 24) { + charSequence = l.c("yMMMEd", locale2).format(new Date(k)); + } else { + AtomicReference atomicReference2 = l.a; + DateFormat dateInstance2 = DateFormat.getDateInstance(0, locale2); + dateInstance2.setTimeZone(l.g()); + charSequence = dateInstance2.format(new Date(k)); + } + textView.setContentDescription(charSequence); + } + textView.setVisibility(0); + textView.setEnabled(true); + c = getItem(i); + if (c != null) { + e(textView, c.longValue()); + } + return textView; + } + } + textView.setVisibility(8); + textView.setEnabled(false); + c = getItem(i); + if (c != null) { + } + return textView; + } + + @Override // android.widget.BaseAdapter, android.widget.Adapter + public boolean hasStableIds() { + return true; + } +} diff --git a/app/src/main/java/b/i/a/g/d/h.java b/app/src/main/java/b/i/a/g/d/h.java new file mode 100644 index 0000000000..a3ee4f01b6 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/h.java @@ -0,0 +1,40 @@ +package b.i.a.g.d; + +import android.view.View; +import android.widget.AdapterView; +import com.google.android.material.datepicker.MaterialCalendar; +import com.google.android.material.datepicker.MaterialCalendarGridView; +import com.google.android.material.datepicker.MonthsPagerAdapter; +import com.google.android.material.datepicker.OnSelectionChangedListener; +import java.util.Iterator; +/* compiled from: MonthsPagerAdapter */ +public class h implements AdapterView.OnItemClickListener { + public final /* synthetic */ MaterialCalendarGridView j; + public final /* synthetic */ MonthsPagerAdapter k; + + public h(MonthsPagerAdapter monthsPagerAdapter, MaterialCalendarGridView materialCalendarGridView) { + this.k = monthsPagerAdapter; + this.j = materialCalendarGridView; + } + + @Override // android.widget.AdapterView.OnItemClickListener + public void onItemClick(AdapterView adapterView, View view, int i, long j) { + g a = this.j.getAdapter(); + if (i >= a.b() && i <= a.d()) { + MaterialCalendar.l lVar = this.k.d; + long longValue = this.j.getAdapter().getItem(i).longValue(); + MaterialCalendar.d dVar = (MaterialCalendar.d) lVar; + if (MaterialCalendar.access$100(MaterialCalendar.this).getDateValidator().isValid(longValue)) { + MaterialCalendar.access$200(MaterialCalendar.this).select(longValue); + Iterator it = MaterialCalendar.this.onSelectionChangedListeners.iterator(); + while (it.hasNext()) { + ((OnSelectionChangedListener) it.next()).onSelectionChanged(MaterialCalendar.access$200(MaterialCalendar.this).getSelection()); + } + MaterialCalendar.access$000(MaterialCalendar.this).getAdapter().notifyDataSetChanged(); + if (MaterialCalendar.access$300(MaterialCalendar.this) != null) { + MaterialCalendar.access$300(MaterialCalendar.this).getAdapter().notifyDataSetChanged(); + } + } + } + } +} diff --git a/app/src/main/java/b/i/a/g/d/i.java b/app/src/main/java/b/i/a/g/d/i.java new file mode 100644 index 0000000000..5c2536bbf1 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/i.java @@ -0,0 +1,24 @@ +package b.i.a.g.d; + +import androidx.fragment.app.Fragment; +import com.google.android.material.datepicker.DateSelector; +import com.google.android.material.datepicker.OnSelectionChangedListener; +import java.util.LinkedHashSet; +/* compiled from: PickerFragment */ +public abstract class i extends Fragment { + public final LinkedHashSet> onSelectionChangedListeners = new LinkedHashSet<>(); + + public boolean addOnSelectionChangedListener(OnSelectionChangedListener onSelectionChangedListener) { + return this.onSelectionChangedListeners.add(onSelectionChangedListener); + } + + public void clearOnSelectionChangedListeners() { + this.onSelectionChangedListeners.clear(); + } + + public abstract DateSelector getDateSelector(); + + public boolean removeOnSelectionChangedListener(OnSelectionChangedListener onSelectionChangedListener) { + return this.onSelectionChangedListeners.remove(onSelectionChangedListener); + } +} diff --git a/app/src/main/java/b/i/a/g/d/j.java b/app/src/main/java/b/i/a/g/d/j.java new file mode 100644 index 0000000000..b63422b680 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/j.java @@ -0,0 +1,33 @@ +package b.i.a.g.d; + +import android.content.Context; +import android.util.DisplayMetrics; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.LinearSmoothScroller; +import androidx.recyclerview.widget.RecyclerView; +/* compiled from: SmoothCalendarLayoutManager */ +public class j extends LinearLayoutManager { + + /* compiled from: SmoothCalendarLayoutManager */ + public class a extends LinearSmoothScroller { + public a(j jVar, Context context) { + super(context); + } + + @Override // androidx.recyclerview.widget.LinearSmoothScroller + public float calculateSpeedPerPixel(DisplayMetrics displayMetrics) { + return 100.0f / ((float) displayMetrics.densityDpi); + } + } + + public j(Context context, int i, boolean z2) { + super(context, i, z2); + } + + @Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.RecyclerView.LayoutManager + public void smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, int i) { + a aVar = new a(this, recyclerView.getContext()); + aVar.setTargetPosition(i); + startSmoothScroll(aVar); + } +} diff --git a/app/src/main/java/b/i/a/g/d/k.java b/app/src/main/java/b/i/a/g/d/k.java new file mode 100644 index 0000000000..12a51d53b0 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/k.java @@ -0,0 +1,17 @@ +package b.i.a.g.d; + +import androidx.annotation.Nullable; +import java.util.TimeZone; +/* compiled from: TimeSource */ +public class k { + public static final k a = new k(null, null); + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final Long f1595b = null; + @Nullable + public final TimeZone c = null; + + public k(@Nullable Long l, @Nullable TimeZone timeZone) { + } +} diff --git a/app/src/main/java/b/i/a/g/d/l.java b/app/src/main/java/b/i/a/g/d/l.java new file mode 100644 index 0000000000..377706c940 --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/l.java @@ -0,0 +1,101 @@ +package b.i.a.g.d; + +import android.annotation.TargetApi; +import android.content.res.Resources; +import android.icu.text.DateFormat; +import android.icu.util.TimeZone; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.google.android.material.R; +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.Locale; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: UtcDates */ +public class l { + public static AtomicReference a = new AtomicReference<>(); + + public static long a(long j) { + Calendar i = i(); + i.setTimeInMillis(j); + return d(i).getTimeInMillis(); + } + + public static int b(@NonNull String str, @NonNull String str2, int i, int i2) { + while (i2 >= 0 && i2 < str.length() && str2.indexOf(str.charAt(i2)) == -1) { + if (str.charAt(i2) == '\'') { + do { + i2 += i; + if (i2 < 0 || i2 >= str.length()) { + break; + } + } while (str.charAt(i2) != '\''); + } + i2 += i; + } + return i2; + } + + @TargetApi(24) + public static DateFormat c(String str, Locale locale) { + DateFormat instanceForSkeleton = DateFormat.getInstanceForSkeleton(str, locale); + instanceForSkeleton.setTimeZone(TimeZone.getTimeZone("UTC")); + return instanceForSkeleton; + } + + public static Calendar d(Calendar calendar) { + Calendar j = j(calendar); + Calendar i = i(); + i.set(j.get(1), j.get(2), j.get(5)); + return i; + } + + public static SimpleDateFormat e() { + SimpleDateFormat simpleDateFormat = new SimpleDateFormat(((SimpleDateFormat) java.text.DateFormat.getDateInstance(3, Locale.getDefault())).toLocalizedPattern().replaceAll("\\s+", ""), Locale.getDefault()); + simpleDateFormat.setTimeZone(g()); + simpleDateFormat.setLenient(false); + return simpleDateFormat; + } + + public static String f(Resources resources, SimpleDateFormat simpleDateFormat) { + String localizedPattern = simpleDateFormat.toLocalizedPattern(); + return localizedPattern.replaceAll("d", resources.getString(R.string.mtrl_picker_text_input_day_abbr)).replaceAll("M", resources.getString(R.string.mtrl_picker_text_input_month_abbr)).replaceAll("y", resources.getString(R.string.mtrl_picker_text_input_year_abbr)); + } + + public static java.util.TimeZone g() { + return java.util.TimeZone.getTimeZone("UTC"); + } + + public static Calendar h() { + k kVar = a.get(); + if (kVar == null) { + kVar = k.a; + } + java.util.TimeZone timeZone = kVar.c; + Calendar instance = timeZone == null ? Calendar.getInstance() : Calendar.getInstance(timeZone); + Long l = kVar.f1595b; + if (l != null) { + instance.setTimeInMillis(l.longValue()); + } + instance.set(11, 0); + instance.set(12, 0); + instance.set(13, 0); + instance.set(14, 0); + instance.setTimeZone(g()); + return instance; + } + + public static Calendar i() { + return j(null); + } + + public static Calendar j(@Nullable Calendar calendar) { + Calendar instance = Calendar.getInstance(g()); + if (calendar == null) { + instance.clear(); + } else { + instance.setTimeInMillis(calendar.getTimeInMillis()); + } + return instance; + } +} diff --git a/app/src/main/java/b/i/a/g/d/m.java b/app/src/main/java/b/i/a/g/d/m.java new file mode 100644 index 0000000000..9318d2144a --- /dev/null +++ b/app/src/main/java/b/i/a/g/d/m.java @@ -0,0 +1,22 @@ +package b.i.a.g.d; + +import android.view.View; +import com.google.android.material.datepicker.MaterialCalendar; +import com.google.android.material.datepicker.Month; +import com.google.android.material.datepicker.YearGridAdapter; +/* compiled from: YearGridAdapter */ +public class m implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ YearGridAdapter k; + + public m(YearGridAdapter yearGridAdapter, int i) { + this.k = yearGridAdapter; + this.j = i; + } + + @Override // android.view.View.OnClickListener + public void onClick(View view) { + this.k.a.setCurrentMonth(this.k.a.getCalendarConstraints().clamp(Month.g(this.j, this.k.a.getCurrentMonth().k))); + this.k.a.setSelector(MaterialCalendar.k.DAY); + } +} diff --git a/app/src/main/java/b/i/a/g/e/a.java b/app/src/main/java/b/i/a/g/e/a.java new file mode 100644 index 0000000000..49cc5581b0 --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/a.java @@ -0,0 +1,9 @@ +package b.i.a.g.e; + +import android.animation.Animator; +import androidx.annotation.Nullable; +/* compiled from: AnimatorTracker */ +public class a { + @Nullable + public Animator a; +} diff --git a/app/src/main/java/b/i/a/g/e/b.java b/app/src/main/java/b/i/a/g/e/b.java new file mode 100644 index 0000000000..89b31f552f --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/b.java @@ -0,0 +1,136 @@ +package b.i.a.g.e; + +import android.animation.Animator; +import android.animation.AnimatorSet; +import android.content.Context; +import android.content.res.ColorStateList; +import android.graphics.Color; +import android.util.Property; +import android.view.View; +import androidx.annotation.CallSuper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.core.util.Preconditions; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.animation.AnimatorSetCompat; +import com.google.android.material.animation.MotionSpec; +import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton; +import java.util.ArrayList; +/* compiled from: BaseMotionStrategy */ +public abstract class b implements j { + public final Context a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final ExtendedFloatingActionButton f1596b; + public final ArrayList c = new ArrayList<>(); + public final a d; + @Nullable + public MotionSpec e; + @Nullable + public MotionSpec f; + + /* compiled from: BaseMotionStrategy */ + public class a extends Property { + public a(Class cls, String str) { + super(cls, str); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // android.util.Property + public Float get(ExtendedFloatingActionButton extendedFloatingActionButton) { + ExtendedFloatingActionButton extendedFloatingActionButton2 = extendedFloatingActionButton; + return Float.valueOf(AnimationUtils.lerp(0.0f, 1.0f, (((float) Color.alpha(extendedFloatingActionButton2.getCurrentTextColor())) / 255.0f) / ((float) Color.alpha(extendedFloatingActionButton2.originalTextCsl.getColorForState(extendedFloatingActionButton2.getDrawableState(), b.this.f1596b.originalTextCsl.getDefaultColor()))))); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // android.util.Property + public void set(ExtendedFloatingActionButton extendedFloatingActionButton, Float f) { + ExtendedFloatingActionButton extendedFloatingActionButton2 = extendedFloatingActionButton; + Float f2 = f; + int colorForState = extendedFloatingActionButton2.originalTextCsl.getColorForState(extendedFloatingActionButton2.getDrawableState(), b.this.f1596b.originalTextCsl.getDefaultColor()); + ColorStateList valueOf = ColorStateList.valueOf(Color.argb((int) (AnimationUtils.lerp(0.0f, ((float) Color.alpha(colorForState)) / 255.0f, f2.floatValue()) * 255.0f), Color.red(colorForState), Color.green(colorForState), Color.blue(colorForState))); + if (f2.floatValue() == 1.0f) { + extendedFloatingActionButton2.silentlyUpdateTextColor(extendedFloatingActionButton2.originalTextCsl); + } else { + extendedFloatingActionButton2.silentlyUpdateTextColor(valueOf); + } + } + } + + public b(@NonNull ExtendedFloatingActionButton extendedFloatingActionButton, a aVar) { + this.f1596b = extendedFloatingActionButton; + this.a = extendedFloatingActionButton.getContext(); + this.d = aVar; + } + + @Override // b.i.a.g.e.j + @CallSuper + public void a() { + this.d.a = null; + } + + @Override // b.i.a.g.e.j + @CallSuper + public void e() { + this.d.a = null; + } + + @Override // b.i.a.g.e.j + public AnimatorSet f() { + return h(i()); + } + + @NonNull + public AnimatorSet h(@NonNull MotionSpec motionSpec) { + ArrayList arrayList = new ArrayList(); + if (motionSpec.hasPropertyValues("opacity")) { + arrayList.add(motionSpec.getAnimator("opacity", this.f1596b, View.ALPHA)); + } + if (motionSpec.hasPropertyValues("scale")) { + arrayList.add(motionSpec.getAnimator("scale", this.f1596b, View.SCALE_Y)); + arrayList.add(motionSpec.getAnimator("scale", this.f1596b, View.SCALE_X)); + } + if (motionSpec.hasPropertyValues("width")) { + arrayList.add(motionSpec.getAnimator("width", this.f1596b, ExtendedFloatingActionButton.WIDTH)); + } + if (motionSpec.hasPropertyValues("height")) { + arrayList.add(motionSpec.getAnimator("height", this.f1596b, ExtendedFloatingActionButton.HEIGHT)); + } + if (motionSpec.hasPropertyValues("paddingStart")) { + arrayList.add(motionSpec.getAnimator("paddingStart", this.f1596b, ExtendedFloatingActionButton.PADDING_START)); + } + if (motionSpec.hasPropertyValues("paddingEnd")) { + arrayList.add(motionSpec.getAnimator("paddingEnd", this.f1596b, ExtendedFloatingActionButton.PADDING_END)); + } + if (motionSpec.hasPropertyValues("labelOpacity")) { + arrayList.add(motionSpec.getAnimator("labelOpacity", this.f1596b, new a(Float.class, "LABEL_OPACITY_PROPERTY"))); + } + AnimatorSet animatorSet = new AnimatorSet(); + AnimatorSetCompat.playTogether(animatorSet, arrayList); + return animatorSet; + } + + public final MotionSpec i() { + MotionSpec motionSpec = this.f; + if (motionSpec != null) { + return motionSpec; + } + if (this.e == null) { + this.e = MotionSpec.createFromResource(this.a, b()); + } + return (MotionSpec) Preconditions.checkNotNull(this.e); + } + + @Override // b.i.a.g.e.j + @CallSuper + public void onAnimationStart(Animator animator) { + a aVar = this.d; + Animator animator2 = aVar.a; + if (animator2 != null) { + animator2.cancel(); + } + aVar.a = animator; + } +} diff --git a/app/src/main/java/b/i/a/g/e/c.java b/app/src/main/java/b/i/a/g/e/c.java new file mode 100644 index 0000000000..a28e2c2848 --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/c.java @@ -0,0 +1,185 @@ +package b.i.a.g.e; + +import android.annotation.TargetApi; +import android.content.res.ColorStateList; +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.LinearGradient; +import android.graphics.Outline; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.Shader; +import android.graphics.drawable.Drawable; +import androidx.annotation.ColorInt; +import androidx.annotation.Dimension; +import androidx.annotation.IntRange; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import androidx.core.graphics.ColorUtils; +import com.google.android.material.shape.ShapeAppearanceModel; +import com.google.android.material.shape.ShapeAppearancePathProvider; +/* compiled from: BorderDrawable */ +@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) +public class c extends Drawable { + public final ShapeAppearancePathProvider a = ShapeAppearancePathProvider.getInstance(); + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final Paint f1597b; + public final Path c = new Path(); + public final Rect d = new Rect(); + public final RectF e = new RectF(); + public final RectF f = new RectF(); + public final b g = new b(null); + @Dimension + public float h; + @ColorInt + public int i; + @ColorInt + public int j; + @ColorInt + public int k; + @ColorInt + public int l; + @ColorInt + public int m; + public boolean n = true; + public ShapeAppearanceModel o; + @Nullable + public ColorStateList p; + + /* compiled from: BorderDrawable */ + public class b extends Drawable.ConstantState { + public b(a aVar) { + } + + @Override // android.graphics.drawable.Drawable.ConstantState + public int getChangingConfigurations() { + return 0; + } + + @Override // android.graphics.drawable.Drawable.ConstantState + @NonNull + public Drawable newDrawable() { + return c.this; + } + } + + public c(ShapeAppearanceModel shapeAppearanceModel) { + this.o = shapeAppearanceModel; + Paint paint = new Paint(1); + this.f1597b = paint; + paint.setStyle(Paint.Style.STROKE); + } + + @NonNull + public RectF a() { + this.f.set(getBounds()); + return this.f; + } + + public void b(@Nullable ColorStateList colorStateList) { + if (colorStateList != null) { + this.m = colorStateList.getColorForState(getState(), this.m); + } + this.p = colorStateList; + this.n = true; + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public void draw(@NonNull Canvas canvas) { + if (this.n) { + Paint paint = this.f1597b; + Rect rect = this.d; + copyBounds(rect); + float height = this.h / ((float) rect.height()); + paint.setShader(new LinearGradient(0.0f, (float) rect.top, 0.0f, (float) rect.bottom, new int[]{ColorUtils.compositeColors(this.i, this.m), ColorUtils.compositeColors(this.j, this.m), ColorUtils.compositeColors(ColorUtils.setAlphaComponent(this.j, 0), this.m), ColorUtils.compositeColors(ColorUtils.setAlphaComponent(this.l, 0), this.m), ColorUtils.compositeColors(this.l, this.m), ColorUtils.compositeColors(this.k, this.m)}, new float[]{0.0f, height, 0.5f, 0.5f, 1.0f - height, 1.0f}, Shader.TileMode.CLAMP)); + this.n = false; + } + float strokeWidth = this.f1597b.getStrokeWidth() / 2.0f; + copyBounds(this.d); + this.e.set(this.d); + float min = Math.min(this.o.getTopLeftCornerSize().getCornerSize(a()), this.e.width() / 2.0f); + if (this.o.isRoundRect(a())) { + this.e.inset(strokeWidth, strokeWidth); + canvas.drawRoundRect(this.e, min, min, this.f1597b); + } + } + + @Override // android.graphics.drawable.Drawable + @Nullable + public Drawable.ConstantState getConstantState() { + return this.g; + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + return this.h > 0.0f ? -3 : -2; + } + + @Override // android.graphics.drawable.Drawable + @TargetApi(21) + public void getOutline(@NonNull Outline outline) { + if (this.o.isRoundRect(a())) { + outline.setRoundRect(getBounds(), this.o.getTopLeftCornerSize().getCornerSize(a())); + return; + } + copyBounds(this.d); + this.e.set(this.d); + this.a.calculatePath(this.o, 1.0f, this.e, this.c); + if (this.c.isConvex()) { + outline.setConvexPath(this.c); + } + } + + @Override // android.graphics.drawable.Drawable + public boolean getPadding(@NonNull Rect rect) { + if (!this.o.isRoundRect(a())) { + return true; + } + int round = Math.round(this.h); + rect.set(round, round, round, round); + return true; + } + + @Override // android.graphics.drawable.Drawable + public boolean isStateful() { + ColorStateList colorStateList = this.p; + return (colorStateList != null && colorStateList.isStateful()) || super.isStateful(); + } + + @Override // android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + this.n = true; + } + + @Override // android.graphics.drawable.Drawable + public boolean onStateChange(int[] iArr) { + int colorForState; + ColorStateList colorStateList = this.p; + if (!(colorStateList == null || (colorForState = colorStateList.getColorForState(iArr, this.m)) == this.m)) { + this.n = true; + this.m = colorForState; + } + if (this.n) { + invalidateSelf(); + } + return this.n; + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(@IntRange(from = 0, to = 255) int i) { + this.f1597b.setAlpha(i); + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(@Nullable ColorFilter colorFilter) { + this.f1597b.setColorFilter(colorFilter); + invalidateSelf(); + } +} diff --git a/app/src/main/java/b/i/a/g/e/d.java b/app/src/main/java/b/i/a/g/e/d.java new file mode 100644 index 0000000000..8ba9692a2e --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/d.java @@ -0,0 +1,52 @@ +package b.i.a.g.e; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +import b.i.a.g.e.f; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +/* compiled from: FloatingActionButtonImpl */ +public class d extends AnimatorListenerAdapter { + public boolean a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ boolean f1598b; + public final /* synthetic */ f.AbstractC0115f c; + public final /* synthetic */ f d; + + public d(f fVar, boolean z2, f.AbstractC0115f fVar2) { + this.d = fVar; + this.f1598b = z2; + this.c = fVar2; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationCancel(Animator animator) { + this.a = true; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + f fVar = this.d; + fVar.B = 0; + fVar.v = null; + if (!this.a) { + FloatingActionButton floatingActionButton = fVar.F; + boolean z2 = this.f1598b; + floatingActionButton.internalSetVisibility(z2 ? 8 : 4, z2); + f.AbstractC0115f fVar2 = this.c; + if (fVar2 != null) { + FloatingActionButton.a aVar = (FloatingActionButton.a) fVar2; + aVar.a.onHidden(FloatingActionButton.this); + } + } + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + this.d.F.internalSetVisibility(0, this.f1598b); + f fVar = this.d; + fVar.B = 1; + fVar.v = animator; + this.a = false; + } +} diff --git a/app/src/main/java/b/i/a/g/e/e.java b/app/src/main/java/b/i/a/g/e/e.java new file mode 100644 index 0000000000..6057ffa067 --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/e.java @@ -0,0 +1,40 @@ +package b.i.a.g.e; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +import b.i.a.g.e.f; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +/* compiled from: FloatingActionButtonImpl */ +public class e extends AnimatorListenerAdapter { + public final /* synthetic */ boolean a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ f.AbstractC0115f f1599b; + public final /* synthetic */ f c; + + public e(f fVar, boolean z2, f.AbstractC0115f fVar2) { + this.c = fVar; + this.a = z2; + this.f1599b = fVar2; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + f fVar = this.c; + fVar.B = 0; + fVar.v = null; + f.AbstractC0115f fVar2 = this.f1599b; + if (fVar2 != null) { + FloatingActionButton.a aVar = (FloatingActionButton.a) fVar2; + aVar.a.onShown(FloatingActionButton.this); + } + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + this.c.F.internalSetVisibility(0, this.a); + f fVar = this.c; + fVar.B = 2; + fVar.v = animator; + } +} diff --git a/app/src/main/java/b/i/a/g/e/f.java b/app/src/main/java/b/i/a/g/e/f.java new file mode 100644 index 0000000000..3765bf83c5 --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/f.java @@ -0,0 +1,404 @@ +package b.i.a.g.e; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +import android.animation.AnimatorSet; +import android.animation.ObjectAnimator; +import android.animation.TimeInterpolator; +import android.animation.ValueAnimator; +import android.content.res.ColorStateList; +import android.graphics.Matrix; +import android.graphics.PorterDuff; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.InsetDrawable; +import android.os.Build; +import android.view.View; +import android.view.ViewTreeObserver; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.core.util.Preconditions; +import androidx.core.view.ViewCompat; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.animation.AnimatorSetCompat; +import com.google.android.material.animation.ImageMatrixProperty; +import com.google.android.material.animation.MatrixEvaluator; +import com.google.android.material.animation.MotionSpec; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.google.android.material.internal.StateListAnimator; +import com.google.android.material.shadow.ShadowViewDelegate; +import com.google.android.material.shape.MaterialShapeDrawable; +import com.google.android.material.shape.ShapeAppearanceModel; +import com.google.android.material.shape.Shapeable; +import java.util.ArrayList; +import java.util.Iterator; +/* compiled from: FloatingActionButtonImpl */ +public class f { + public static final TimeInterpolator a = AnimationUtils.FAST_OUT_LINEAR_IN_INTERPOLATOR; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1600b = {16842919, 16842910}; + public static final int[] c = {16843623, 16842908, 16842910}; + public static final int[] d = {16842908, 16842910}; + public static final int[] e = {16843623, 16842910}; + public static final int[] f = {16842910}; + public static final int[] g = new int[0]; + public int A; + public int B = 0; + public ArrayList C; + public ArrayList D; + public ArrayList E; + public final FloatingActionButton F; + public final ShadowViewDelegate G; + public final Rect H = new Rect(); + public final RectF I = new RectF(); + public final RectF J = new RectF(); + public final Matrix K = new Matrix(); + @Nullable + public ViewTreeObserver.OnPreDrawListener L; + @Nullable + public ShapeAppearanceModel h; + @Nullable + public MaterialShapeDrawable i; + @Nullable + public Drawable j; + @Nullable + public c k; + @Nullable + public Drawable l; + public boolean m; + public boolean n = true; + public float o; + public float p; + public float q; + public int r; + @NonNull + + /* renamed from: s reason: collision with root package name */ + public final StateListAnimator f1601s; + @Nullable + public MotionSpec t; + @Nullable + public MotionSpec u; + @Nullable + public Animator v; + @Nullable + public MotionSpec w; + @Nullable + + /* renamed from: x reason: collision with root package name */ + public MotionSpec f1602x; + + /* renamed from: y reason: collision with root package name */ + public float f1603y; + + /* renamed from: z reason: collision with root package name */ + public float f1604z = 1.0f; + + /* compiled from: FloatingActionButtonImpl */ + public class a extends MatrixEvaluator { + public a() { + } + + @Override // com.google.android.material.animation.MatrixEvaluator + public Matrix evaluate(float f, @NonNull Matrix matrix, @NonNull Matrix matrix2) { + f.this.f1604z = f; + return super.evaluate(f, matrix, matrix2); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [float, java.lang.Object, java.lang.Object] */ + @Override // com.google.android.material.animation.MatrixEvaluator, android.animation.TypeEvaluator + public Matrix evaluate(float f, @NonNull Matrix matrix, @NonNull Matrix matrix2) { + f.this.f1604z = f; + return super.evaluate(f, matrix, matrix2); + } + } + + /* compiled from: FloatingActionButtonImpl */ + public class b extends h { + public b(f fVar) { + super(null); + } + + @Override // b.i.a.g.e.f.h + public float a() { + return 0.0f; + } + } + + /* compiled from: FloatingActionButtonImpl */ + public class c extends h { + public c() { + super(null); + } + + @Override // b.i.a.g.e.f.h + public float a() { + f fVar = f.this; + return fVar.o + fVar.p; + } + } + + /* compiled from: FloatingActionButtonImpl */ + public class d extends h { + public d() { + super(null); + } + + @Override // b.i.a.g.e.f.h + public float a() { + f fVar = f.this; + return fVar.o + fVar.q; + } + } + + /* compiled from: FloatingActionButtonImpl */ + public interface e { + void a(); + + void b(); + } + + /* compiled from: FloatingActionButtonImpl */ + /* renamed from: b.i.a.g.e.f$f reason: collision with other inner class name */ + public interface AbstractC0115f { + } + + /* compiled from: FloatingActionButtonImpl */ + public class g extends h { + public g() { + super(null); + } + + @Override // b.i.a.g.e.f.h + public float a() { + return f.this.o; + } + } + + /* compiled from: FloatingActionButtonImpl */ + public abstract class h extends AnimatorListenerAdapter implements ValueAnimator.AnimatorUpdateListener { + public boolean a; + + /* renamed from: b reason: collision with root package name */ + public float f1605b; + public float c; + + public h(d dVar) { + } + + public abstract float a(); + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + f.this.w((float) ((int) this.c)); + this.a = false; + } + + @Override // android.animation.ValueAnimator.AnimatorUpdateListener + public void onAnimationUpdate(@NonNull ValueAnimator valueAnimator) { + if (!this.a) { + MaterialShapeDrawable materialShapeDrawable = f.this.i; + this.f1605b = materialShapeDrawable == null ? 0.0f : materialShapeDrawable.getElevation(); + this.c = a(); + this.a = true; + } + f fVar = f.this; + float f = this.f1605b; + fVar.w((float) ((int) ((valueAnimator.getAnimatedFraction() * (this.c - f)) + f))); + } + } + + public f(FloatingActionButton floatingActionButton, ShadowViewDelegate shadowViewDelegate) { + this.F = floatingActionButton; + this.G = shadowViewDelegate; + StateListAnimator stateListAnimator = new StateListAnimator(); + this.f1601s = stateListAnimator; + stateListAnimator.addState(f1600b, c(new d())); + stateListAnimator.addState(c, c(new c())); + stateListAnimator.addState(d, c(new c())); + stateListAnimator.addState(e, c(new c())); + stateListAnimator.addState(f, c(new g())); + stateListAnimator.addState(g, c(new b(this))); + this.f1603y = floatingActionButton.getRotation(); + } + + public final void a(float f2, @NonNull Matrix matrix) { + matrix.reset(); + Drawable drawable = this.F.getDrawable(); + if (drawable != null && this.A != 0) { + RectF rectF = this.I; + RectF rectF2 = this.J; + rectF.set(0.0f, 0.0f, (float) drawable.getIntrinsicWidth(), (float) drawable.getIntrinsicHeight()); + int i = this.A; + rectF2.set(0.0f, 0.0f, (float) i, (float) i); + matrix.setRectToRect(rectF, rectF2, Matrix.ScaleToFit.CENTER); + int i2 = this.A; + matrix.postScale(f2, f2, ((float) i2) / 2.0f, ((float) i2) / 2.0f); + } + } + + @NonNull + public final AnimatorSet b(@NonNull MotionSpec motionSpec, float f2, float f3, float f4) { + ArrayList arrayList = new ArrayList(); + ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.F, View.ALPHA, f2); + motionSpec.getTiming("opacity").apply(ofFloat); + arrayList.add(ofFloat); + ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.F, View.SCALE_X, f3); + motionSpec.getTiming("scale").apply(ofFloat2); + int i = Build.VERSION.SDK_INT; + if (i == 26) { + ofFloat2.setEvaluator(new g(this)); + } + arrayList.add(ofFloat2); + ObjectAnimator ofFloat3 = ObjectAnimator.ofFloat(this.F, View.SCALE_Y, f3); + motionSpec.getTiming("scale").apply(ofFloat3); + if (i == 26) { + ofFloat3.setEvaluator(new g(this)); + } + arrayList.add(ofFloat3); + a(f4, this.K); + ObjectAnimator ofObject = ObjectAnimator.ofObject(this.F, new ImageMatrixProperty(), new a(), new Matrix(this.K)); + motionSpec.getTiming("iconScale").apply(ofObject); + arrayList.add(ofObject); + AnimatorSet animatorSet = new AnimatorSet(); + AnimatorSetCompat.playTogether(animatorSet, arrayList); + return animatorSet; + } + + @NonNull + public final ValueAnimator c(@NonNull h hVar) { + ValueAnimator valueAnimator = new ValueAnimator(); + valueAnimator.setInterpolator(a); + valueAnimator.setDuration(100L); + valueAnimator.addListener(hVar); + valueAnimator.addUpdateListener(hVar); + valueAnimator.setFloatValues(0.0f, 1.0f); + return valueAnimator; + } + + public float d() { + throw null; + } + + public void e(@NonNull Rect rect) { + int sizeDimension = this.m ? (this.r - this.F.getSizeDimension()) / 2 : 0; + float d2 = this.n ? d() + this.q : 0.0f; + int max = Math.max(sizeDimension, (int) Math.ceil((double) d2)); + int max2 = Math.max(sizeDimension, (int) Math.ceil((double) (d2 * 1.5f))); + rect.set(max, max2, max, max2); + } + + public void f(ColorStateList colorStateList, @Nullable PorterDuff.Mode mode, ColorStateList colorStateList2, int i) { + throw null; + } + + public boolean g() { + return this.F.getVisibility() == 0 ? this.B == 1 : this.B != 2; + } + + public boolean h() { + return this.F.getVisibility() != 0 ? this.B == 2 : this.B != 1; + } + + public void i() { + throw null; + } + + public void j() { + throw null; + } + + public void k(int[] iArr) { + throw null; + } + + public void l(float f2, float f3, float f4) { + throw null; + } + + public void m() { + ArrayList arrayList = this.E; + if (arrayList != null) { + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + it.next().b(); + } + } + } + + public void n() { + ArrayList arrayList = this.E; + if (arrayList != null) { + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + it.next().a(); + } + } + } + + public final void o(float f2) { + this.f1604z = f2; + Matrix matrix = this.K; + a(f2, matrix); + this.F.setImageMatrix(matrix); + } + + public void p(@Nullable ColorStateList colorStateList) { + throw null; + } + + public final void q(@NonNull ShapeAppearanceModel shapeAppearanceModel) { + this.h = shapeAppearanceModel; + MaterialShapeDrawable materialShapeDrawable = this.i; + if (materialShapeDrawable != null) { + materialShapeDrawable.setShapeAppearanceModel(shapeAppearanceModel); + } + Drawable drawable = this.j; + if (drawable instanceof Shapeable) { + ((Shapeable) drawable).setShapeAppearanceModel(shapeAppearanceModel); + } + c cVar = this.k; + if (cVar != null) { + cVar.o = shapeAppearanceModel; + cVar.invalidateSelf(); + } + } + + public boolean r() { + throw null; + } + + public final boolean s() { + return ViewCompat.isLaidOut(this.F) && !this.F.isInEditMode(); + } + + public final boolean t() { + return !this.m || this.F.getSizeDimension() >= this.r; + } + + public void u() { + throw null; + } + + public final void v() { + Rect rect = this.H; + e(rect); + Preconditions.checkNotNull(this.l, "Didn't initialize content background"); + if (r()) { + this.G.setBackgroundDrawable(new InsetDrawable(this.l, rect.left, rect.top, rect.right, rect.bottom)); + } else { + this.G.setBackgroundDrawable(this.l); + } + this.G.setShadowPadding(rect.left, rect.top, rect.right, rect.bottom); + } + + public void w(float f2) { + MaterialShapeDrawable materialShapeDrawable = this.i; + if (materialShapeDrawable != null) { + materialShapeDrawable.setElevation(f2); + } + } +} diff --git a/app/src/main/java/b/i/a/g/e/g.java b/app/src/main/java/b/i/a/g/e/g.java new file mode 100644 index 0000000000..b61c6aeb77 --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/g.java @@ -0,0 +1,22 @@ +package b.i.a.g.e; + +import android.animation.FloatEvaluator; +import android.animation.TypeEvaluator; +/* compiled from: FloatingActionButtonImpl */ +public class g implements TypeEvaluator { + public FloatEvaluator a = new FloatEvaluator(); + + public g(f fVar) { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [float, java.lang.Object, java.lang.Object] */ + @Override // android.animation.TypeEvaluator + public Float evaluate(float f, Float f2, Float f3) { + float floatValue = this.a.evaluate(f, (Number) f2, (Number) f3).floatValue(); + if (floatValue < 0.1f) { + floatValue = 0.0f; + } + return Float.valueOf(floatValue); + } +} diff --git a/app/src/main/java/b/i/a/g/e/h.java b/app/src/main/java/b/i/a/g/e/h.java new file mode 100644 index 0000000000..5b2c1a40ac --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/h.java @@ -0,0 +1,23 @@ +package b.i.a.g.e; + +import android.view.ViewTreeObserver; +/* compiled from: FloatingActionButtonImpl */ +public class h implements ViewTreeObserver.OnPreDrawListener { + public final /* synthetic */ f j; + + public h(f fVar) { + this.j = fVar; + } + + @Override // android.view.ViewTreeObserver.OnPreDrawListener + public boolean onPreDraw() { + f fVar = this.j; + float rotation = fVar.F.getRotation(); + if (fVar.f1603y == rotation) { + return true; + } + fVar.f1603y = rotation; + fVar.u(); + return true; + } +} diff --git a/app/src/main/java/b/i/a/g/e/i.java b/app/src/main/java/b/i/a/g/e/i.java new file mode 100644 index 0000000000..ede35eb9ce --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/i.java @@ -0,0 +1,192 @@ +package b.i.a.g.e; + +import android.animation.Animator; +import android.animation.AnimatorSet; +import android.animation.ObjectAnimator; +import android.animation.StateListAnimator; +import android.content.Context; +import android.content.res.ColorStateList; +import android.graphics.PorterDuff; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.LayerDrawable; +import android.graphics.drawable.RippleDrawable; +import android.os.Build; +import android.view.View; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import androidx.constraintlayout.motion.widget.Key; +import androidx.core.content.ContextCompat; +import androidx.core.graphics.drawable.DrawableCompat; +import androidx.core.util.Preconditions; +import com.google.android.material.R; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.google.android.material.ripple.RippleUtils; +import com.google.android.material.shadow.ShadowViewDelegate; +import com.google.android.material.shape.MaterialShapeDrawable; +import com.google.android.material.shape.ShapeAppearanceModel; +import java.util.ArrayList; +/* compiled from: FloatingActionButtonImplLollipop */ +@RequiresApi(21) +public class i extends f { + + /* compiled from: FloatingActionButtonImplLollipop */ + public static class a extends MaterialShapeDrawable { + public a(ShapeAppearanceModel shapeAppearanceModel) { + super(shapeAppearanceModel); + } + + @Override // com.google.android.material.shape.MaterialShapeDrawable, android.graphics.drawable.Drawable + public boolean isStateful() { + return true; + } + } + + public i(FloatingActionButton floatingActionButton, ShadowViewDelegate shadowViewDelegate) { + super(floatingActionButton, shadowViewDelegate); + } + + @Override // b.i.a.g.e.f + public float d() { + return this.F.getElevation(); + } + + @Override // b.i.a.g.e.f + public void e(@NonNull Rect rect) { + if (this.G.isCompatPaddingEnabled()) { + super.e(rect); + } else if (!t()) { + int sizeDimension = (this.r - this.F.getSizeDimension()) / 2; + rect.set(sizeDimension, sizeDimension, sizeDimension, sizeDimension); + } else { + rect.set(0, 0, 0, 0); + } + } + + @Override // b.i.a.g.e.f + public void f(ColorStateList colorStateList, @Nullable PorterDuff.Mode mode, ColorStateList colorStateList2, int i) { + Drawable drawable; + a aVar = new a((ShapeAppearanceModel) Preconditions.checkNotNull(this.h)); + this.i = aVar; + aVar.setTintList(colorStateList); + if (mode != null) { + this.i.setTintMode(mode); + } + this.i.initializeElevationOverlay(this.F.getContext()); + if (i > 0) { + Context context = this.F.getContext(); + c cVar = new c((ShapeAppearanceModel) Preconditions.checkNotNull(this.h)); + int color = ContextCompat.getColor(context, R.color.design_fab_stroke_top_outer_color); + int color2 = ContextCompat.getColor(context, R.color.design_fab_stroke_top_inner_color); + int color3 = ContextCompat.getColor(context, R.color.design_fab_stroke_end_inner_color); + int color4 = ContextCompat.getColor(context, R.color.design_fab_stroke_end_outer_color); + cVar.i = color; + cVar.j = color2; + cVar.k = color3; + cVar.l = color4; + float f = (float) i; + if (cVar.h != f) { + cVar.h = f; + cVar.f1597b.setStrokeWidth(f * 1.3333f); + cVar.n = true; + cVar.invalidateSelf(); + } + cVar.b(colorStateList); + this.k = cVar; + drawable = new LayerDrawable(new Drawable[]{(Drawable) Preconditions.checkNotNull(this.k), (Drawable) Preconditions.checkNotNull(this.i)}); + } else { + this.k = null; + drawable = this.i; + } + RippleDrawable rippleDrawable = new RippleDrawable(RippleUtils.sanitizeRippleDrawableColor(colorStateList2), drawable, null); + this.j = rippleDrawable; + this.l = rippleDrawable; + } + + @Override // b.i.a.g.e.f + public void i() { + } + + @Override // b.i.a.g.e.f + public void j() { + v(); + } + + @Override // b.i.a.g.e.f + public void k(int[] iArr) { + if (Build.VERSION.SDK_INT != 21) { + return; + } + if (this.F.isEnabled()) { + this.F.setElevation(this.o); + if (this.F.isPressed()) { + this.F.setTranslationZ(this.q); + } else if (this.F.isFocused() || this.F.isHovered()) { + this.F.setTranslationZ(this.p); + } else { + this.F.setTranslationZ(0.0f); + } + } else { + this.F.setElevation(0.0f); + this.F.setTranslationZ(0.0f); + } + } + + @Override // b.i.a.g.e.f + public void l(float f, float f2, float f3) { + int i = Build.VERSION.SDK_INT; + if (i == 21) { + this.F.refreshDrawableState(); + } else { + StateListAnimator stateListAnimator = new StateListAnimator(); + stateListAnimator.addState(f.f1600b, x(f, f3)); + stateListAnimator.addState(f.c, x(f, f2)); + stateListAnimator.addState(f.d, x(f, f2)); + stateListAnimator.addState(f.e, x(f, f2)); + AnimatorSet animatorSet = new AnimatorSet(); + ArrayList arrayList = new ArrayList(); + arrayList.add(ObjectAnimator.ofFloat(this.F, Key.ELEVATION, f).setDuration(0L)); + if (i >= 22 && i <= 24) { + FloatingActionButton floatingActionButton = this.F; + arrayList.add(ObjectAnimator.ofFloat(floatingActionButton, View.TRANSLATION_Z, floatingActionButton.getTranslationZ()).setDuration(100L)); + } + arrayList.add(ObjectAnimator.ofFloat(this.F, View.TRANSLATION_Z, 0.0f).setDuration(100L)); + animatorSet.playSequentially((Animator[]) arrayList.toArray(new Animator[0])); + animatorSet.setInterpolator(f.a); + stateListAnimator.addState(f.f, animatorSet); + stateListAnimator.addState(f.g, x(0.0f, 0.0f)); + this.F.setStateListAnimator(stateListAnimator); + } + if (r()) { + v(); + } + } + + @Override // b.i.a.g.e.f + public void p(@Nullable ColorStateList colorStateList) { + Drawable drawable = this.j; + if (drawable instanceof RippleDrawable) { + ((RippleDrawable) drawable).setColor(RippleUtils.sanitizeRippleDrawableColor(colorStateList)); + } else if (drawable != null) { + DrawableCompat.setTintList(drawable, RippleUtils.sanitizeRippleDrawableColor(colorStateList)); + } + } + + @Override // b.i.a.g.e.f + public boolean r() { + return this.G.isCompatPaddingEnabled() || !t(); + } + + @Override // b.i.a.g.e.f + public void u() { + } + + @NonNull + public final Animator x(float f, float f2) { + AnimatorSet animatorSet = new AnimatorSet(); + animatorSet.play(ObjectAnimator.ofFloat(this.F, Key.ELEVATION, f).setDuration(0L)).with(ObjectAnimator.ofFloat(this.F, View.TRANSLATION_Z, f2).setDuration(100L)); + animatorSet.setInterpolator(f.a); + return animatorSet; + } +} diff --git a/app/src/main/java/b/i/a/g/e/j.java b/app/src/main/java/b/i/a/g/e/j.java new file mode 100644 index 0000000000..32741b0c71 --- /dev/null +++ b/app/src/main/java/b/i/a/g/e/j.java @@ -0,0 +1,26 @@ +package b.i.a.g.e; + +import android.animation.Animator; +import android.animation.AnimatorSet; +import androidx.annotation.AnimatorRes; +import androidx.annotation.Nullable; +import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton; +/* compiled from: MotionStrategy */ +public interface j { + void a(); + + @AnimatorRes + int b(); + + void c(); + + boolean d(); + + void e(); + + AnimatorSet f(); + + void g(@Nullable ExtendedFloatingActionButton.OnChangedCallback onChangedCallback); + + void onAnimationStart(Animator animator); +} diff --git a/app/src/main/java/b/i/a/g/f/a.java b/app/src/main/java/b/i/a/g/f/a.java new file mode 100644 index 0000000000..e827813cfd --- /dev/null +++ b/app/src/main/java/b/i/a/g/f/a.java @@ -0,0 +1,99 @@ +package b.i.a.g.f; + +import android.os.Build; +import android.text.Layout; +import android.text.StaticLayout; +import android.text.TextDirectionHeuristic; +import android.text.TextDirectionHeuristics; +import android.text.TextPaint; +import android.text.TextUtils; +import androidx.annotation.Nullable; +import androidx.annotation.RestrictTo; +import androidx.core.util.Preconditions; +import java.lang.reflect.Constructor; +/* compiled from: StaticLayoutBuilderCompat */ +@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) +public final class a { + public static boolean a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public static Constructor f1606b; + @Nullable + public static Object c; + public CharSequence d; + public final TextPaint e; + public final int f; + public int g; + public Layout.Alignment h = Layout.Alignment.ALIGN_NORMAL; + public int i = Integer.MAX_VALUE; + public boolean j = true; + public boolean k; + @Nullable + public TextUtils.TruncateAt l = null; + + /* compiled from: StaticLayoutBuilderCompat */ + /* renamed from: b.i.a.g.f.a$a reason: collision with other inner class name */ + public static class C0116a extends Exception { + /* JADX WARNING: Illegal instructions before constructor call */ + public C0116a(Throwable th) { + super(r0.toString(), th); + StringBuilder R = b.d.b.a.a.R("Error thrown initializing StaticLayout "); + R.append(th.getMessage()); + } + } + + public a(CharSequence charSequence, TextPaint textPaint, int i) { + this.d = charSequence; + this.e = textPaint; + this.f = i; + this.g = charSequence.length(); + } + + public StaticLayout a() throws C0116a { + if (this.d == null) { + this.d = ""; + } + int max = Math.max(0, this.f); + CharSequence charSequence = this.d; + if (this.i == 1) { + charSequence = TextUtils.ellipsize(charSequence, this.e, (float) max, this.l); + } + int min = Math.min(charSequence.length(), this.g); + this.g = min; + int i = Build.VERSION.SDK_INT; + if (i >= 23) { + if (this.k) { + this.h = Layout.Alignment.ALIGN_OPPOSITE; + } + StaticLayout.Builder obtain = StaticLayout.Builder.obtain(charSequence, 0, min, this.e, max); + obtain.setAlignment(this.h); + obtain.setIncludePad(this.j); + obtain.setTextDirection(this.k ? TextDirectionHeuristics.RTL : TextDirectionHeuristics.LTR); + TextUtils.TruncateAt truncateAt = this.l; + if (truncateAt != null) { + obtain.setEllipsize(truncateAt); + } + obtain.setMaxLines(this.i); + return obtain.build(); + } + if (!a) { + try { + c = this.k && i >= 23 ? TextDirectionHeuristics.RTL : TextDirectionHeuristics.LTR; + Class cls = Integer.TYPE; + Class cls2 = Float.TYPE; + Constructor declaredConstructor = StaticLayout.class.getDeclaredConstructor(CharSequence.class, cls, cls, TextPaint.class, cls, Layout.Alignment.class, TextDirectionHeuristic.class, cls2, cls2, Boolean.TYPE, TextUtils.TruncateAt.class, cls, cls); + f1606b = declaredConstructor; + declaredConstructor.setAccessible(true); + a = true; + } catch (Exception e) { + throw new C0116a(e); + } + } + try { + return (StaticLayout) ((Constructor) Preconditions.checkNotNull(f1606b)).newInstance(charSequence, 0, Integer.valueOf(this.g), this.e, Integer.valueOf(max), this.h, Preconditions.checkNotNull(c), Float.valueOf(1.0f), Float.valueOf(0.0f), Boolean.valueOf(this.j), null, Integer.valueOf(max), Integer.valueOf(this.i)); + } catch (Exception e2) { + throw new C0116a(e2); + } + } +} diff --git a/app/src/main/java/b/i/a/g/f/b.java b/app/src/main/java/b/i/a/g/f/b.java new file mode 100644 index 0000000000..8da7636cb1 --- /dev/null +++ b/app/src/main/java/b/i/a/g/f/b.java @@ -0,0 +1,27 @@ +package b.i.a.g.f; + +import android.graphics.drawable.Drawable; +import android.view.View; +import android.view.ViewOverlay; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import com.google.android.material.internal.ViewOverlayImpl; +/* compiled from: ViewOverlayApi18 */ +@RequiresApi(18) +public class b implements ViewOverlayImpl { + public final ViewOverlay a; + + public b(@NonNull View view) { + this.a = view.getOverlay(); + } + + @Override // com.google.android.material.internal.ViewOverlayImpl + public void add(@NonNull Drawable drawable) { + this.a.add(drawable); + } + + @Override // com.google.android.material.internal.ViewOverlayImpl + public void remove(@NonNull Drawable drawable) { + this.a.remove(drawable); + } +} diff --git a/app/src/main/java/b/i/a/g/g/a.java b/app/src/main/java/b/i/a/g/g/a.java new file mode 100644 index 0000000000..7b94e4cde2 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/a.java @@ -0,0 +1,108 @@ +package b.i.a.g.g; + +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.RectF; +import androidx.annotation.ColorInt; +import androidx.annotation.FloatRange; +import androidx.annotation.NonNull; +import com.google.android.material.color.MaterialColors; +import com.google.android.material.progressindicator.CircularProgressIndicatorSpec; +/* compiled from: CircularDrawingDelegate */ +public final class a extends f { + public int c = 1; + public float d; + public float e; + public float f; + + public a(@NonNull CircularProgressIndicatorSpec circularProgressIndicatorSpec) { + super(circularProgressIndicatorSpec); + } + + @Override // b.i.a.g.g.f + public void a(@NonNull Canvas canvas, @FloatRange(from = 0.0d, to = 1.0d) float f) { + S s2 = this.a; + float f2 = (((float) ((CircularProgressIndicatorSpec) s2).indicatorSize) / 2.0f) + ((float) ((CircularProgressIndicatorSpec) s2).indicatorInset); + canvas.translate(f2, f2); + canvas.rotate(-90.0f); + float f3 = -f2; + canvas.clipRect(f3, f3, f2, f2); + S s3 = this.a; + this.c = ((CircularProgressIndicatorSpec) s3).indicatorDirection == 0 ? 1 : -1; + this.d = ((float) ((CircularProgressIndicatorSpec) s3).trackThickness) * f; + this.e = ((float) ((CircularProgressIndicatorSpec) s3).trackCornerRadius) * f; + this.f = ((float) (((CircularProgressIndicatorSpec) s3).indicatorSize - ((CircularProgressIndicatorSpec) s3).trackThickness)) / 2.0f; + if ((this.f1607b.isShowing() && ((CircularProgressIndicatorSpec) this.a).showAnimationBehavior == 2) || (this.f1607b.isHiding() && ((CircularProgressIndicatorSpec) this.a).hideAnimationBehavior == 1)) { + this.f = (((1.0f - f) * ((float) ((CircularProgressIndicatorSpec) this.a).trackThickness)) / 2.0f) + this.f; + } else if ((this.f1607b.isShowing() && ((CircularProgressIndicatorSpec) this.a).showAnimationBehavior == 1) || (this.f1607b.isHiding() && ((CircularProgressIndicatorSpec) this.a).hideAnimationBehavior == 2)) { + this.f -= ((1.0f - f) * ((float) ((CircularProgressIndicatorSpec) this.a).trackThickness)) / 2.0f; + } + } + + @Override // b.i.a.g.g.f + public void b(@NonNull Canvas canvas, @NonNull Paint paint, @FloatRange(from = 0.0d, to = 1.0d) float f, @FloatRange(from = 0.0d, to = 1.0d) float f2, @ColorInt int i) { + if (f != f2) { + paint.setStyle(Paint.Style.STROKE); + paint.setStrokeCap(Paint.Cap.BUTT); + paint.setAntiAlias(true); + paint.setColor(i); + paint.setStrokeWidth(this.d); + float f3 = (float) this.c; + float f4 = f * 360.0f * f3; + if (f2 < f) { + f2 += 1.0f; + } + float f5 = (f2 - f) * 360.0f * f3; + float f6 = this.f; + float f7 = -f6; + canvas.drawArc(new RectF(f7, f7, f6, f6), f4, f5, false, paint); + if (this.e > 0.0f && Math.abs(f5) < 360.0f) { + paint.setStyle(Paint.Style.FILL); + float f8 = this.e; + float f9 = -f8; + RectF rectF = new RectF(f9, f9, f8, f8); + f(canvas, paint, this.d, this.e, f4, true, rectF); + f(canvas, paint, this.d, this.e, f4 + f5, false, rectF); + } + } + } + + @Override // b.i.a.g.g.f + public void c(@NonNull Canvas canvas, @NonNull Paint paint) { + int compositeARGBWithAlpha = MaterialColors.compositeARGBWithAlpha(((CircularProgressIndicatorSpec) this.a).trackColor, this.f1607b.getAlpha()); + paint.setStyle(Paint.Style.STROKE); + paint.setStrokeCap(Paint.Cap.BUTT); + paint.setAntiAlias(true); + paint.setColor(compositeARGBWithAlpha); + paint.setStrokeWidth(this.d); + float f = this.f; + float f2 = -f; + canvas.drawArc(new RectF(f2, f2, f, f), 0.0f, 360.0f, false, paint); + } + + @Override // b.i.a.g.g.f + public int d() { + CircularProgressIndicatorSpec circularProgressIndicatorSpec = (CircularProgressIndicatorSpec) this.a; + return (circularProgressIndicatorSpec.indicatorInset * 2) + circularProgressIndicatorSpec.indicatorSize; + } + + @Override // b.i.a.g.g.f + public int e() { + CircularProgressIndicatorSpec circularProgressIndicatorSpec = (CircularProgressIndicatorSpec) this.a; + return (circularProgressIndicatorSpec.indicatorInset * 2) + circularProgressIndicatorSpec.indicatorSize; + } + + public final void f(Canvas canvas, Paint paint, float f, float f2, float f3, boolean z2, RectF rectF) { + float f4 = z2 ? -1.0f : 1.0f; + canvas.save(); + canvas.rotate(f3); + float f5 = f / 2.0f; + float f6 = f4 * f2; + canvas.drawRect((this.f - f5) + f2, Math.min(0.0f, ((float) this.c) * f6), (this.f + f5) - f2, Math.max(0.0f, f6 * ((float) this.c)), paint); + canvas.translate((this.f - f5) + f2, 0.0f); + canvas.drawArc(rectF, 180.0f, (-f4) * 90.0f * ((float) this.c), true, paint); + canvas.translate(f - (f2 * 2.0f), 0.0f); + canvas.drawArc(rectF, 0.0f, f4 * 90.0f * ((float) this.c), true, paint); + canvas.restore(); + } +} diff --git a/app/src/main/java/b/i/a/g/g/b.java b/app/src/main/java/b/i/a/g/g/b.java new file mode 100644 index 0000000000..81afbf6749 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/b.java @@ -0,0 +1,19 @@ +package b.i.a.g.g; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +/* compiled from: CircularIndeterminateAnimatorDelegate */ +public class b extends AnimatorListenerAdapter { + public final /* synthetic */ d a; + + public b(d dVar) { + this.a = dVar; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationRepeat(Animator animator) { + super.onAnimationRepeat(animator); + d dVar = this.a; + dVar.m = (dVar.m + 4) % dVar.l.indicatorColors.length; + } +} diff --git a/app/src/main/java/b/i/a/g/g/c.java b/app/src/main/java/b/i/a/g/g/c.java new file mode 100644 index 0000000000..efad243106 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/c.java @@ -0,0 +1,20 @@ +package b.i.a.g.g; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +/* compiled from: CircularIndeterminateAnimatorDelegate */ +public class c extends AnimatorListenerAdapter { + public final /* synthetic */ d a; + + public c(d dVar) { + this.a = dVar; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + super.onAnimationEnd(animator); + this.a.a(); + d dVar = this.a; + dVar.p.onAnimationEnd(dVar.a); + } +} diff --git a/app/src/main/java/b/i/a/g/g/d.java b/app/src/main/java/b/i/a/g/g/d.java new file mode 100644 index 0000000000..df794deb95 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/d.java @@ -0,0 +1,173 @@ +package b.i.a.g.g; + +import android.animation.ObjectAnimator; +import android.util.Property; +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import androidx.interpolator.view.animation.FastOutSlowInInterpolator; +import androidx.vectordrawable.graphics.drawable.Animatable2Compat; +import com.google.android.material.animation.ArgbEvaluatorCompat; +import com.google.android.material.color.MaterialColors; +import com.google.android.material.progressindicator.BaseProgressIndicatorSpec; +import com.google.android.material.progressindicator.CircularProgressIndicatorSpec; +/* compiled from: CircularIndeterminateAnimatorDelegate */ +public final class d extends g { + public static final int[] d = {0, 1350, 2700, 4050}; + public static final int[] e = {667, 2017, 3367, 4717}; + public static final int[] f = {1000, 2350, 3700, 5050}; + public static final Property g = new a(Float.class, "animationFraction"); + public static final Property h = new b(Float.class, "completeEndFraction"); + public ObjectAnimator i; + public ObjectAnimator j; + public final FastOutSlowInInterpolator k; + public final BaseProgressIndicatorSpec l; + public int m = 0; + public float n; + public float o; + public Animatable2Compat.AnimationCallback p = null; + + /* compiled from: CircularIndeterminateAnimatorDelegate */ + public static class a extends Property { + public a(Class cls, String str) { + super(cls, str); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // android.util.Property + public Float get(d dVar) { + return Float.valueOf(dVar.n); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // android.util.Property + public void set(d dVar, Float f) { + d dVar2 = dVar; + float floatValue = f.floatValue(); + dVar2.n = floatValue; + int i = (int) (5400.0f * floatValue); + float[] fArr = dVar2.f1608b; + float f2 = floatValue * 1520.0f; + fArr[0] = -20.0f + f2; + fArr[1] = f2; + for (int i2 = 0; i2 < 4; i2++) { + float b2 = dVar2.b(i, d.d[i2], 667); + float[] fArr2 = dVar2.f1608b; + fArr2[1] = (dVar2.k.getInterpolation(b2) * 250.0f) + fArr2[1]; + float b3 = dVar2.b(i, d.e[i2], 667); + float[] fArr3 = dVar2.f1608b; + fArr3[0] = (dVar2.k.getInterpolation(b3) * 250.0f) + fArr3[0]; + } + float[] fArr4 = dVar2.f1608b; + fArr4[0] = ((fArr4[1] - fArr4[0]) * dVar2.o) + fArr4[0]; + fArr4[0] = fArr4[0] / 360.0f; + fArr4[1] = fArr4[1] / 360.0f; + int i3 = 0; + while (true) { + if (i3 >= 4) { + break; + } + float b4 = dVar2.b(i, d.f[i3], 333); + if (b4 >= 0.0f && b4 <= 1.0f) { + int i4 = i3 + dVar2.m; + int[] iArr = dVar2.l.indicatorColors; + int length = i4 % iArr.length; + int compositeARGBWithAlpha = MaterialColors.compositeARGBWithAlpha(iArr[length], dVar2.a.getAlpha()); + int compositeARGBWithAlpha2 = MaterialColors.compositeARGBWithAlpha(dVar2.l.indicatorColors[(length + 1) % iArr.length], dVar2.a.getAlpha()); + dVar2.c[0] = ArgbEvaluatorCompat.getInstance().evaluate(dVar2.k.getInterpolation(b4), Integer.valueOf(compositeARGBWithAlpha), Integer.valueOf(compositeARGBWithAlpha2)).intValue(); + break; + } + i3++; + } + dVar2.a.invalidateSelf(); + } + } + + /* compiled from: CircularIndeterminateAnimatorDelegate */ + public static class b extends Property { + public b(Class cls, String str) { + super(cls, str); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // android.util.Property + public Float get(d dVar) { + return Float.valueOf(dVar.o); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // android.util.Property + public void set(d dVar, Float f) { + dVar.o = f.floatValue(); + } + } + + public d(@NonNull CircularProgressIndicatorSpec circularProgressIndicatorSpec) { + super(1); + this.l = circularProgressIndicatorSpec; + this.k = new FastOutSlowInInterpolator(); + } + + @Override // b.i.a.g.g.g + public void a() { + ObjectAnimator objectAnimator = this.i; + if (objectAnimator != null) { + objectAnimator.cancel(); + } + } + + @Override // b.i.a.g.g.g + public void c() { + h(); + } + + @Override // b.i.a.g.g.g + public void d(@NonNull Animatable2Compat.AnimationCallback animationCallback) { + this.p = animationCallback; + } + + @Override // b.i.a.g.g.g + public void e() { + if (!this.j.isRunning()) { + if (this.a.isVisible()) { + this.j.start(); + } else { + a(); + } + } + } + + @Override // b.i.a.g.g.g + public void f() { + if (this.i == null) { + ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this, g, 0.0f, 1.0f); + this.i = ofFloat; + ofFloat.setDuration(5400L); + this.i.setInterpolator(null); + this.i.setRepeatCount(-1); + this.i.addListener(new b(this)); + } + if (this.j == null) { + ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this, h, 0.0f, 1.0f); + this.j = ofFloat2; + ofFloat2.setDuration(333L); + this.j.setInterpolator(this.k); + this.j.addListener(new c(this)); + } + h(); + this.i.start(); + } + + @Override // b.i.a.g.g.g + public void g() { + this.p = null; + } + + @VisibleForTesting + public void h() { + this.m = 0; + this.c[0] = MaterialColors.compositeARGBWithAlpha(this.l.indicatorColors[0], this.a.getAlpha()); + this.o = 0.0f; + } +} diff --git a/app/src/main/java/b/i/a/g/g/e.java b/app/src/main/java/b/i/a/g/g/e.java new file mode 100644 index 0000000000..a649ea267a --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/e.java @@ -0,0 +1,332 @@ +package b.i.a.g.g; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +import android.animation.ObjectAnimator; +import android.animation.ValueAnimator; +import android.content.Context; +import android.graphics.ColorFilter; +import android.graphics.Paint; +import android.graphics.drawable.Drawable; +import android.util.Property; +import androidx.annotation.FloatRange; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import androidx.vectordrawable.graphics.drawable.Animatable2Compat; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.progressindicator.AnimatorDurationScaleProvider; +import com.google.android.material.progressindicator.BaseProgressIndicatorSpec; +import java.util.ArrayList; +import java.util.List; +/* compiled from: DrawableWithAnimatedVisibilityChange */ +public abstract class e extends Drawable implements Animatable2Compat { + private static final boolean DEFAULT_DRAWABLE_RESTART = false; + private static final int GROW_DURATION = 500; + private static final Property GROW_FRACTION = new c(Float.class, "growFraction"); + private List animationCallbacks; + public AnimatorDurationScaleProvider animatorDurationScaleProvider; + public final BaseProgressIndicatorSpec baseSpec; + public final Context context; + private float growFraction; + private ValueAnimator hideAnimator; + private boolean ignoreCallbacks; + private Animatable2Compat.AnimationCallback internalAnimationCallback; + private float mockGrowFraction; + private boolean mockHideAnimationRunning; + private boolean mockShowAnimationRunning; + public final Paint paint = new Paint(); + private ValueAnimator showAnimator; + private int totalAlpha; + + /* compiled from: DrawableWithAnimatedVisibilityChange */ + public class a extends AnimatorListenerAdapter { + public a() { + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + super.onAnimationStart(animator); + e.access$000(e.this); + } + } + + /* compiled from: DrawableWithAnimatedVisibilityChange */ + public class b extends AnimatorListenerAdapter { + public b() { + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + super.onAnimationEnd(animator); + e.access$101(e.this, false, false); + e.access$200(e.this); + } + } + + /* compiled from: DrawableWithAnimatedVisibilityChange */ + public static class c extends Property { + public c(Class cls, String str) { + super(cls, str); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // android.util.Property + public Float get(e eVar) { + return Float.valueOf(eVar.getGrowFraction()); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // android.util.Property + public void set(e eVar, Float f) { + eVar.setGrowFraction(f.floatValue()); + } + } + + public e(@NonNull Context context, @NonNull BaseProgressIndicatorSpec baseProgressIndicatorSpec) { + this.context = context; + this.baseSpec = baseProgressIndicatorSpec; + this.animatorDurationScaleProvider = new AnimatorDurationScaleProvider(); + setAlpha(255); + } + + public static /* synthetic */ void access$000(e eVar) { + eVar.dispatchAnimationStart(); + } + + public static /* synthetic */ boolean access$101(e eVar, boolean z2, boolean z3) { + return super.setVisible(z2, z3); + } + + public static /* synthetic */ void access$200(e eVar) { + eVar.dispatchAnimationEnd(); + } + + private void dispatchAnimationEnd() { + Animatable2Compat.AnimationCallback animationCallback = this.internalAnimationCallback; + if (animationCallback != null) { + animationCallback.onAnimationEnd(this); + } + List list = this.animationCallbacks; + if (!(list == null || this.ignoreCallbacks)) { + for (Animatable2Compat.AnimationCallback animationCallback2 : list) { + animationCallback2.onAnimationEnd(this); + } + } + } + + private void dispatchAnimationStart() { + Animatable2Compat.AnimationCallback animationCallback = this.internalAnimationCallback; + if (animationCallback != null) { + animationCallback.onAnimationStart(this); + } + List list = this.animationCallbacks; + if (!(list == null || this.ignoreCallbacks)) { + for (Animatable2Compat.AnimationCallback animationCallback2 : list) { + animationCallback2.onAnimationStart(this); + } + } + } + + private void endAnimatorWithoutCallbacks(@NonNull ValueAnimator... valueAnimatorArr) { + boolean z2 = this.ignoreCallbacks; + this.ignoreCallbacks = true; + for (ValueAnimator valueAnimator : valueAnimatorArr) { + valueAnimator.end(); + } + this.ignoreCallbacks = z2; + } + + private void maybeInitializeAnimators() { + if (this.showAnimator == null) { + ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this, GROW_FRACTION, 0.0f, 1.0f); + this.showAnimator = ofFloat; + ofFloat.setDuration(500L); + this.showAnimator.setInterpolator(AnimationUtils.FAST_OUT_SLOW_IN_INTERPOLATOR); + setShowAnimator(this.showAnimator); + } + if (this.hideAnimator == null) { + ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this, GROW_FRACTION, 1.0f, 0.0f); + this.hideAnimator = ofFloat2; + ofFloat2.setDuration(500L); + this.hideAnimator.setInterpolator(AnimationUtils.FAST_OUT_SLOW_IN_INTERPOLATOR); + setHideAnimator(this.hideAnimator); + } + } + + private void setHideAnimator(@NonNull ValueAnimator valueAnimator) { + ValueAnimator valueAnimator2 = this.hideAnimator; + if (valueAnimator2 == null || !valueAnimator2.isRunning()) { + this.hideAnimator = valueAnimator; + valueAnimator.addListener(new b()); + return; + } + throw new IllegalArgumentException("Cannot set hideAnimator while the current hideAnimator is running."); + } + + private void setShowAnimator(@NonNull ValueAnimator valueAnimator) { + ValueAnimator valueAnimator2 = this.showAnimator; + if (valueAnimator2 == null || !valueAnimator2.isRunning()) { + this.showAnimator = valueAnimator; + valueAnimator.addListener(new a()); + return; + } + throw new IllegalArgumentException("Cannot set showAnimator while the current showAnimator is running."); + } + + @Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat + public void clearAnimationCallbacks() { + this.animationCallbacks.clear(); + this.animationCallbacks = null; + } + + @Override // android.graphics.drawable.Drawable + public int getAlpha() { + return this.totalAlpha; + } + + public float getGrowFraction() { + if (this.baseSpec.isShowAnimationEnabled() || this.baseSpec.isHideAnimationEnabled()) { + return (this.mockHideAnimationRunning || this.mockShowAnimationRunning) ? this.mockGrowFraction : this.growFraction; + } + return 1.0f; + } + + @NonNull + public ValueAnimator getHideAnimator() { + return this.hideAnimator; + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + return -3; + } + + public boolean hideNow() { + return setVisible(false, false, false); + } + + public boolean isHiding() { + ValueAnimator valueAnimator = this.hideAnimator; + return (valueAnimator != null && valueAnimator.isRunning()) || this.mockHideAnimationRunning; + } + + @Override // android.graphics.drawable.Animatable + public boolean isRunning() { + return isShowing() || isHiding(); + } + + public boolean isShowing() { + ValueAnimator valueAnimator = this.showAnimator; + return (valueAnimator != null && valueAnimator.isRunning()) || this.mockShowAnimationRunning; + } + + @Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat + public void registerAnimationCallback(@NonNull Animatable2Compat.AnimationCallback animationCallback) { + if (this.animationCallbacks == null) { + this.animationCallbacks = new ArrayList(); + } + if (!this.animationCallbacks.contains(animationCallback)) { + this.animationCallbacks.add(animationCallback); + } + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + this.totalAlpha = i; + invalidateSelf(); + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(@Nullable ColorFilter colorFilter) { + this.paint.setColorFilter(colorFilter); + invalidateSelf(); + } + + public void setGrowFraction(@FloatRange(from = 0.0d, to = 1.0d) float f) { + if (this.growFraction != f) { + this.growFraction = f; + invalidateSelf(); + } + } + + public void setInternalAnimationCallback(@NonNull Animatable2Compat.AnimationCallback animationCallback) { + this.internalAnimationCallback = animationCallback; + } + + @VisibleForTesting + public void setMockHideAnimationRunning(boolean z2, @FloatRange(from = 0.0d, to = 1.0d) float f) { + this.mockHideAnimationRunning = z2; + this.mockGrowFraction = f; + } + + @VisibleForTesting + public void setMockShowAnimationRunning(boolean z2, @FloatRange(from = 0.0d, to = 1.0d) float f) { + this.mockShowAnimationRunning = z2; + this.mockGrowFraction = f; + } + + @Override // android.graphics.drawable.Drawable + public boolean setVisible(boolean z2, boolean z3) { + return setVisible(z2, z3, true); + } + + public boolean setVisible(boolean z2, boolean z3, boolean z4) { + return setVisibleInternal(z2, z3, z4 && this.animatorDurationScaleProvider.getSystemAnimatorDurationScale(this.context.getContentResolver()) > 0.0f); + } + + public boolean setVisibleInternal(boolean z2, boolean z3, boolean z4) { + maybeInitializeAnimators(); + if (!isVisible() && !z2) { + return false; + } + ValueAnimator valueAnimator = z2 ? this.showAnimator : this.hideAnimator; + if (!z4) { + if (valueAnimator.isRunning()) { + valueAnimator.end(); + } else { + endAnimatorWithoutCallbacks(valueAnimator); + } + return super.setVisible(z2, false); + } else if (z4 && valueAnimator.isRunning()) { + return false; + } else { + boolean z5 = !z2 || super.setVisible(z2, false); + if (!(z2 ? this.baseSpec.isShowAnimationEnabled() : this.baseSpec.isHideAnimationEnabled())) { + endAnimatorWithoutCallbacks(valueAnimator); + return z5; + } + if (z3 || !valueAnimator.isPaused()) { + valueAnimator.start(); + } else { + valueAnimator.resume(); + } + return z5; + } + } + + @Override // android.graphics.drawable.Animatable + public void start() { + setVisibleInternal(true, true, false); + } + + @Override // android.graphics.drawable.Animatable + public void stop() { + setVisibleInternal(false, true, false); + } + + @Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat + public boolean unregisterAnimationCallback(@NonNull Animatable2Compat.AnimationCallback animationCallback) { + List list = this.animationCallbacks; + if (list == null || !list.contains(animationCallback)) { + return false; + } + this.animationCallbacks.remove(animationCallback); + if (!this.animationCallbacks.isEmpty()) { + return true; + } + this.animationCallbacks = null; + return true; + } +} diff --git a/app/src/main/java/b/i/a/g/g/f.java b/app/src/main/java/b/i/a/g/g/f.java new file mode 100644 index 0000000000..92f39c2497 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/f.java @@ -0,0 +1,29 @@ +package b.i.a.g.g; + +import android.graphics.Canvas; +import android.graphics.Paint; +import androidx.annotation.ColorInt; +import androidx.annotation.FloatRange; +import androidx.annotation.NonNull; +import com.google.android.material.progressindicator.BaseProgressIndicatorSpec; +/* compiled from: DrawingDelegate */ +public abstract class f { + public S a; + + /* renamed from: b reason: collision with root package name */ + public e f1607b; + + public f(S s2) { + this.a = s2; + } + + public abstract void a(@NonNull Canvas canvas, @FloatRange(from = 0.0d, to = 1.0d) float f); + + public abstract void b(@NonNull Canvas canvas, @NonNull Paint paint, @FloatRange(from = 0.0d, to = 1.0d) float f, @FloatRange(from = 0.0d, to = 1.0d) float f2, @ColorInt int i); + + public abstract void c(@NonNull Canvas canvas, @NonNull Paint paint); + + public abstract int d(); + + public abstract int e(); +} diff --git a/app/src/main/java/b/i/a/g/g/g.java b/app/src/main/java/b/i/a/g/g/g.java new file mode 100644 index 0000000000..36d3cbe113 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/g.java @@ -0,0 +1,35 @@ +package b.i.a.g.g; + +import android.animation.Animator; +import androidx.annotation.NonNull; +import androidx.vectordrawable.graphics.drawable.Animatable2Compat; +import com.google.android.material.progressindicator.IndeterminateDrawable; +/* compiled from: IndeterminateAnimatorDelegate */ +public abstract class g { + public IndeterminateDrawable a; + + /* renamed from: b reason: collision with root package name */ + public final float[] f1608b; + public final int[] c; + + public g(int i) { + this.f1608b = new float[(i * 2)]; + this.c = new int[i]; + } + + public abstract void a(); + + public float b(int i, int i2, int i3) { + return ((float) (i - i2)) / ((float) i3); + } + + public abstract void c(); + + public abstract void d(@NonNull Animatable2Compat.AnimationCallback animationCallback); + + public abstract void e(); + + public abstract void f(); + + public abstract void g(); +} diff --git a/app/src/main/java/b/i/a/g/g/h.java b/app/src/main/java/b/i/a/g/g/h.java new file mode 100644 index 0000000000..8f37aa4f9a --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/h.java @@ -0,0 +1,110 @@ +package b.i.a.g.g; + +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.RectF; +import androidx.annotation.ColorInt; +import androidx.annotation.FloatRange; +import androidx.annotation.NonNull; +import com.google.android.material.color.MaterialColors; +import com.google.android.material.progressindicator.LinearProgressIndicatorSpec; +/* compiled from: LinearDrawingDelegate */ +public final class h extends f { + public float c = 300.0f; + public float d; + public float e; + + public h(@NonNull LinearProgressIndicatorSpec linearProgressIndicatorSpec) { + super(linearProgressIndicatorSpec); + } + + public static void f(Canvas canvas, Paint paint, float f, float f2, float f3, boolean z2, RectF rectF) { + canvas.save(); + canvas.translate(f3, 0.0f); + if (!z2) { + canvas.rotate(180.0f); + } + float f4 = ((-f) / 2.0f) + f2; + float f5 = (f / 2.0f) - f2; + canvas.drawRect(-f2, f4, 0.0f, f5, paint); + canvas.save(); + canvas.translate(0.0f, f4); + canvas.drawArc(rectF, 180.0f, 90.0f, true, paint); + canvas.restore(); + canvas.translate(0.0f, f5); + canvas.drawArc(rectF, 180.0f, -90.0f, true, paint); + canvas.restore(); + } + + @Override // b.i.a.g.g.f + public void a(@NonNull Canvas canvas, @FloatRange(from = 0.0d, to = 1.0d) float f) { + Rect clipBounds = canvas.getClipBounds(); + this.c = (float) clipBounds.width(); + float f2 = (float) ((LinearProgressIndicatorSpec) this.a).trackThickness; + canvas.translate(((float) clipBounds.width()) / 2.0f, Math.max(0.0f, ((float) (clipBounds.height() - ((LinearProgressIndicatorSpec) this.a).trackThickness)) / 2.0f) + (((float) clipBounds.height()) / 2.0f)); + if (((LinearProgressIndicatorSpec) this.a).drawHorizontallyInverse) { + canvas.scale(-1.0f, 1.0f); + } + if ((this.f1607b.isShowing() && ((LinearProgressIndicatorSpec) this.a).showAnimationBehavior == 1) || (this.f1607b.isHiding() && ((LinearProgressIndicatorSpec) this.a).hideAnimationBehavior == 2)) { + canvas.scale(1.0f, -1.0f); + } + if (this.f1607b.isShowing() || this.f1607b.isHiding()) { + canvas.translate(0.0f, ((f - 1.0f) * ((float) ((LinearProgressIndicatorSpec) this.a).trackThickness)) / 2.0f); + } + float f3 = this.c; + canvas.clipRect((-f3) / 2.0f, (-f2) / 2.0f, f3 / 2.0f, f2 / 2.0f); + S s2 = this.a; + this.d = ((float) ((LinearProgressIndicatorSpec) s2).trackThickness) * f; + this.e = ((float) ((LinearProgressIndicatorSpec) s2).trackCornerRadius) * f; + } + + @Override // b.i.a.g.g.f + public void b(@NonNull Canvas canvas, @NonNull Paint paint, @FloatRange(from = 0.0d, to = 1.0d) float f, @FloatRange(from = 0.0d, to = 1.0d) float f2, @ColorInt int i) { + if (f != f2) { + float f3 = this.c; + float f4 = this.e; + float f5 = ((-f3) / 2.0f) + f4; + float f6 = f3 - (f4 * 2.0f); + float f7 = (f * f6) + f5; + float f8 = (f6 * f2) + f5; + paint.setStyle(Paint.Style.FILL); + paint.setAntiAlias(true); + paint.setColor(i); + float f9 = this.d; + canvas.drawRect(f7, (-f9) / 2.0f, f8, f9 / 2.0f, paint); + float f10 = this.e; + float f11 = -f10; + RectF rectF = new RectF(f11, f11, f10, f10); + f(canvas, paint, this.d, this.e, f7, true, rectF); + f(canvas, paint, this.d, this.e, f8, false, rectF); + } + } + + @Override // b.i.a.g.g.f + public void c(@NonNull Canvas canvas, @NonNull Paint paint) { + int compositeARGBWithAlpha = MaterialColors.compositeARGBWithAlpha(((LinearProgressIndicatorSpec) this.a).trackColor, this.f1607b.getAlpha()); + float f = ((-this.c) / 2.0f) + this.e; + float f2 = -f; + paint.setStyle(Paint.Style.FILL); + paint.setAntiAlias(true); + paint.setColor(compositeARGBWithAlpha); + float f3 = this.d; + canvas.drawRect(f, (-f3) / 2.0f, f2, f3 / 2.0f, paint); + float f4 = this.e; + float f5 = -f4; + RectF rectF = new RectF(f5, f5, f4, f4); + f(canvas, paint, this.d, this.e, f, true, rectF); + f(canvas, paint, this.d, this.e, f2, false, rectF); + } + + @Override // b.i.a.g.g.f + public int d() { + return ((LinearProgressIndicatorSpec) this.a).trackThickness; + } + + @Override // b.i.a.g.g.f + public int e() { + return -1; + } +} diff --git a/app/src/main/java/b/i/a/g/g/i.java b/app/src/main/java/b/i/a/g/g/i.java new file mode 100644 index 0000000000..4c86b16c64 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/i.java @@ -0,0 +1,20 @@ +package b.i.a.g.g; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +/* compiled from: LinearIndeterminateContiguousAnimatorDelegate */ +public class i extends AnimatorListenerAdapter { + public final /* synthetic */ j a; + + public i(j jVar) { + this.a = jVar; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationRepeat(Animator animator) { + super.onAnimationRepeat(animator); + j jVar = this.a; + jVar.h = (jVar.h + 1) % jVar.g.indicatorColors.length; + jVar.i = true; + } +} diff --git a/app/src/main/java/b/i/a/g/g/j.java b/app/src/main/java/b/i/a/g/g/j.java new file mode 100644 index 0000000000..a648b26f07 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/j.java @@ -0,0 +1,117 @@ +package b.i.a.g.g; + +import android.animation.ObjectAnimator; +import android.util.Property; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import androidx.interpolator.view.animation.FastOutSlowInInterpolator; +import androidx.vectordrawable.graphics.drawable.Animatable2Compat; +import com.google.android.material.color.MaterialColors; +import com.google.android.material.progressindicator.BaseProgressIndicatorSpec; +import com.google.android.material.progressindicator.LinearProgressIndicatorSpec; +import java.util.Arrays; +/* compiled from: LinearIndeterminateContiguousAnimatorDelegate */ +public final class j extends g { + public static final Property d = new a(Float.class, "animationFraction"); + public ObjectAnimator e; + public FastOutSlowInInterpolator f; + public final BaseProgressIndicatorSpec g; + public int h = 1; + public boolean i; + public float j; + + /* compiled from: LinearIndeterminateContiguousAnimatorDelegate */ + public static class a extends Property { + public a(Class cls, String str) { + super(cls, str); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // android.util.Property + public Float get(j jVar) { + return Float.valueOf(jVar.j); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // android.util.Property + public void set(j jVar, Float f) { + j jVar2 = jVar; + float floatValue = f.floatValue(); + jVar2.j = floatValue; + jVar2.f1608b[0] = 0.0f; + float b2 = jVar2.b((int) (floatValue * 333.0f), 0, 667); + float[] fArr = jVar2.f1608b; + float interpolation = jVar2.f.getInterpolation(b2); + fArr[2] = interpolation; + fArr[1] = interpolation; + float[] fArr2 = jVar2.f1608b; + float interpolation2 = jVar2.f.getInterpolation(b2 + 0.49925038f); + fArr2[4] = interpolation2; + fArr2[3] = interpolation2; + float[] fArr3 = jVar2.f1608b; + fArr3[5] = 1.0f; + if (jVar2.i && fArr3[3] < 1.0f) { + int[] iArr = jVar2.c; + iArr[2] = iArr[1]; + iArr[1] = iArr[0]; + iArr[0] = MaterialColors.compositeARGBWithAlpha(jVar2.g.indicatorColors[jVar2.h], jVar2.a.getAlpha()); + jVar2.i = false; + } + jVar2.a.invalidateSelf(); + } + } + + public j(@NonNull LinearProgressIndicatorSpec linearProgressIndicatorSpec) { + super(3); + this.g = linearProgressIndicatorSpec; + this.f = new FastOutSlowInInterpolator(); + } + + @Override // b.i.a.g.g.g + public void a() { + ObjectAnimator objectAnimator = this.e; + if (objectAnimator != null) { + objectAnimator.cancel(); + } + } + + @Override // b.i.a.g.g.g + public void c() { + h(); + } + + @Override // b.i.a.g.g.g + public void d(@Nullable Animatable2Compat.AnimationCallback animationCallback) { + } + + @Override // b.i.a.g.g.g + public void e() { + } + + @Override // b.i.a.g.g.g + public void f() { + if (this.e == null) { + ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this, d, 0.0f, 1.0f); + this.e = ofFloat; + ofFloat.setDuration(333L); + this.e.setInterpolator(null); + this.e.setRepeatCount(-1); + this.e.addListener(new i(this)); + } + h(); + this.e.start(); + } + + @Override // b.i.a.g.g.g + public void g() { + } + + @VisibleForTesting + public void h() { + this.i = true; + this.h = 1; + Arrays.fill(this.c, MaterialColors.compositeARGBWithAlpha(this.g.indicatorColors[0], this.a.getAlpha())); + } +} diff --git a/app/src/main/java/b/i/a/g/g/k.java b/app/src/main/java/b/i/a/g/g/k.java new file mode 100644 index 0000000000..b8a0db61a6 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/k.java @@ -0,0 +1,32 @@ +package b.i.a.g.g; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +/* compiled from: LinearIndeterminateDisjointAnimatorDelegate */ +public class k extends AnimatorListenerAdapter { + public final /* synthetic */ l a; + + public k(l lVar) { + this.a = lVar; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + super.onAnimationEnd(animator); + l lVar = this.a; + if (lVar.m) { + lVar.g.setRepeatCount(-1); + l lVar2 = this.a; + lVar2.n.onAnimationEnd(lVar2.a); + this.a.m = false; + } + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationRepeat(Animator animator) { + super.onAnimationRepeat(animator); + l lVar = this.a; + lVar.j = (lVar.j + 1) % lVar.i.indicatorColors.length; + lVar.k = true; + } +} diff --git a/app/src/main/java/b/i/a/g/g/l.java b/app/src/main/java/b/i/a/g/g/l.java new file mode 100644 index 0000000000..74ba09f453 --- /dev/null +++ b/app/src/main/java/b/i/a/g/g/l.java @@ -0,0 +1,125 @@ +package b.i.a.g.g; + +import android.animation.ObjectAnimator; +import android.content.Context; +import android.util.Property; +import android.view.animation.Interpolator; +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import androidx.vectordrawable.graphics.drawable.Animatable2Compat; +import androidx.vectordrawable.graphics.drawable.AnimationUtilsCompat; +import com.google.android.material.R; +import com.google.android.material.color.MaterialColors; +import com.google.android.material.progressindicator.BaseProgressIndicatorSpec; +import com.google.android.material.progressindicator.LinearProgressIndicatorSpec; +import java.util.Arrays; +/* compiled from: LinearIndeterminateDisjointAnimatorDelegate */ +public final class l extends g { + public static final int[] d = {533, 567, 850, 750}; + public static final int[] e = {1267, 1000, 333, 0}; + public static final Property f = new a(Float.class, "animationFraction"); + public ObjectAnimator g; + public final Interpolator[] h; + public final BaseProgressIndicatorSpec i; + public int j = 0; + public boolean k; + public float l; + public boolean m; + public Animatable2Compat.AnimationCallback n = null; + + /* compiled from: LinearIndeterminateDisjointAnimatorDelegate */ + public static class a extends Property { + public a(Class cls, String str) { + super(cls, str); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // android.util.Property + public Float get(l lVar) { + return Float.valueOf(lVar.l); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // android.util.Property + public void set(l lVar, Float f) { + l lVar2 = lVar; + float floatValue = f.floatValue(); + lVar2.l = floatValue; + int i = (int) (floatValue * 1800.0f); + for (int i2 = 0; i2 < 4; i2++) { + lVar2.f1608b[i2] = Math.max(0.0f, Math.min(1.0f, lVar2.h[i2].getInterpolation(lVar2.b(i, l.e[i2], l.d[i2])))); + } + if (lVar2.k) { + Arrays.fill(lVar2.c, MaterialColors.compositeARGBWithAlpha(lVar2.i.indicatorColors[lVar2.j], lVar2.a.getAlpha())); + lVar2.k = false; + } + lVar2.a.invalidateSelf(); + } + } + + public l(@NonNull Context context, @NonNull LinearProgressIndicatorSpec linearProgressIndicatorSpec) { + super(2); + this.i = linearProgressIndicatorSpec; + this.h = new Interpolator[]{AnimationUtilsCompat.loadInterpolator(context, R.animator.linear_indeterminate_line1_head_interpolator), AnimationUtilsCompat.loadInterpolator(context, R.animator.linear_indeterminate_line1_tail_interpolator), AnimationUtilsCompat.loadInterpolator(context, R.animator.linear_indeterminate_line2_head_interpolator), AnimationUtilsCompat.loadInterpolator(context, R.animator.linear_indeterminate_line2_tail_interpolator)}; + } + + @Override // b.i.a.g.g.g + public void a() { + ObjectAnimator objectAnimator = this.g; + if (objectAnimator != null) { + objectAnimator.cancel(); + } + } + + @Override // b.i.a.g.g.g + public void c() { + h(); + } + + @Override // b.i.a.g.g.g + public void d(@NonNull Animatable2Compat.AnimationCallback animationCallback) { + this.n = animationCallback; + } + + @Override // b.i.a.g.g.g + public void e() { + if (this.a.isVisible()) { + this.m = true; + this.g.setRepeatCount(0); + return; + } + ObjectAnimator objectAnimator = this.g; + if (objectAnimator != null) { + objectAnimator.cancel(); + } + } + + @Override // b.i.a.g.g.g + public void f() { + if (this.g == null) { + ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this, f, 0.0f, 1.0f); + this.g = ofFloat; + ofFloat.setDuration(1800L); + this.g.setInterpolator(null); + this.g.setRepeatCount(-1); + this.g.addListener(new k(this)); + } + h(); + this.g.start(); + } + + @Override // b.i.a.g.g.g + public void g() { + this.n = null; + } + + @VisibleForTesting + public void h() { + this.j = 0; + int compositeARGBWithAlpha = MaterialColors.compositeARGBWithAlpha(this.i.indicatorColors[0], this.a.getAlpha()); + int[] iArr = this.c; + iArr[0] = compositeARGBWithAlpha; + iArr[1] = compositeARGBWithAlpha; + } +} diff --git a/app/src/main/java/b/i/a/g/h/a.java b/app/src/main/java/b/i/a/g/h/a.java new file mode 100644 index 0000000000..b9cd1f09f5 --- /dev/null +++ b/app/src/main/java/b/i/a/g/h/a.java @@ -0,0 +1,149 @@ +package b.i.a.g.h; + +import android.os.Handler; +import android.os.Looper; +import android.os.Message; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import java.lang.ref.WeakReference; +/* compiled from: SnackbarManager */ +public class a { + public static a a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final Object f1609b = new Object(); + @NonNull + public final Handler c = new Handler(Looper.getMainLooper(), new C0117a()); + @Nullable + public c d; + @Nullable + public c e; + + /* compiled from: SnackbarManager */ + /* renamed from: b.i.a.g.h.a$a reason: collision with other inner class name */ + public class C0117a implements Handler.Callback { + public C0117a() { + } + + @Override // android.os.Handler.Callback + public boolean handleMessage(@NonNull Message message) { + if (message.what != 0) { + return false; + } + a aVar = a.this; + c cVar = (c) message.obj; + synchronized (aVar.f1609b) { + if (aVar.d == cVar || aVar.e == cVar) { + aVar.a(cVar, 2); + } + } + return true; + } + } + + /* compiled from: SnackbarManager */ + public interface b { + void a(int i); + + void show(); + } + + /* compiled from: SnackbarManager */ + public static class c { + @NonNull + public final WeakReference a; + + /* renamed from: b reason: collision with root package name */ + public int f1610b; + public boolean c; + + public c(int i, b bVar) { + this.a = new WeakReference<>(bVar); + this.f1610b = i; + } + } + + public static a b() { + if (a == null) { + a = new a(); + } + return a; + } + + public final boolean a(@NonNull c cVar, int i) { + b bVar = cVar.a.get(); + if (bVar == null) { + return false; + } + this.c.removeCallbacksAndMessages(cVar); + bVar.a(i); + return true; + } + + public final boolean c(b bVar) { + c cVar = this.d; + if (cVar == null) { + return false; + } + return bVar != null && cVar.a.get() == bVar; + } + + public final boolean d(b bVar) { + c cVar = this.e; + if (cVar == null) { + return false; + } + return bVar != null && cVar.a.get() == bVar; + } + + public void e(b bVar) { + synchronized (this.f1609b) { + if (c(bVar)) { + c cVar = this.d; + if (!cVar.c) { + cVar.c = true; + this.c.removeCallbacksAndMessages(cVar); + } + } + } + } + + public void f(b bVar) { + synchronized (this.f1609b) { + if (c(bVar)) { + c cVar = this.d; + if (cVar.c) { + cVar.c = false; + g(cVar); + } + } + } + } + + public final void g(@NonNull c cVar) { + int i = cVar.f1610b; + if (i != -2) { + if (i <= 0) { + i = i == -1 ? 1500 : 2750; + } + this.c.removeCallbacksAndMessages(cVar); + Handler handler = this.c; + handler.sendMessageDelayed(Message.obtain(handler, 0, cVar), (long) i); + } + } + + public final void h() { + c cVar = this.e; + if (cVar != null) { + this.d = cVar; + this.e = null; + b bVar = cVar.a.get(); + if (bVar != null) { + bVar.show(); + } else { + this.d = null; + } + } + } +} diff --git a/app/src/main/java/b/i/a/g/i/a.java b/app/src/main/java/b/i/a/g/i/a.java new file mode 100644 index 0000000000..ea1eb7e9ec --- /dev/null +++ b/app/src/main/java/b/i/a/g/i/a.java @@ -0,0 +1,31 @@ +package b.i.a.g.i; + +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import android.view.View; +import androidx.annotation.FloatRange; +import androidx.annotation.NonNull; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.tabs.TabLayout; +/* compiled from: ElasticTabIndicatorInterpolator */ +public class a extends b { + public static float c(@FloatRange(from = 0.0d, to = 1.0d) float f) { + return (float) (1.0d - Math.cos((((double) f) * 3.141592653589793d) / 2.0d)); + } + + @Override // b.i.a.g.i.b + public void b(TabLayout tabLayout, View view, View view2, float f, @NonNull Drawable drawable) { + float f2; + float f3; + RectF a = b.a(tabLayout, view); + RectF a2 = b.a(tabLayout, view2); + if (a.left < a2.left) { + f3 = c(f); + f2 = (float) Math.sin((((double) f) * 3.141592653589793d) / 2.0d); + } else { + f3 = (float) Math.sin((((double) f) * 3.141592653589793d) / 2.0d); + f2 = c(f); + } + drawable.setBounds(AnimationUtils.lerp((int) a.left, (int) a2.left, f3), drawable.getBounds().top, AnimationUtils.lerp((int) a.right, (int) a2.right, f2), drawable.getBounds().bottom); + } +} diff --git a/app/src/main/java/b/i/a/g/i/b.java b/app/src/main/java/b/i/a/g/i/b.java new file mode 100644 index 0000000000..2857bb0450 --- /dev/null +++ b/app/src/main/java/b/i/a/g/i/b.java @@ -0,0 +1,39 @@ +package b.i.a.g.i; + +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import android.view.View; +import androidx.annotation.FloatRange; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.internal.ViewUtils; +import com.google.android.material.tabs.TabLayout; +/* compiled from: TabIndicatorInterpolator */ +public class b { + public static RectF a(TabLayout tabLayout, @Nullable View view) { + if (view == null) { + return new RectF(); + } + if (tabLayout.isTabIndicatorFullWidth() || !(view instanceof TabLayout.TabView)) { + return new RectF((float) view.getLeft(), (float) view.getTop(), (float) view.getRight(), (float) view.getBottom()); + } + TabLayout.TabView tabView = (TabLayout.TabView) view; + int contentWidth = tabView.getContentWidth(); + int contentHeight = tabView.getContentHeight(); + int dpToPx = (int) ViewUtils.dpToPx(tabView.getContext(), 24); + if (contentWidth < dpToPx) { + contentWidth = dpToPx; + } + int right = (tabView.getRight() + tabView.getLeft()) / 2; + int bottom = (tabView.getBottom() + tabView.getTop()) / 2; + int i = contentWidth / 2; + return new RectF((float) (right - i), (float) (bottom - (contentHeight / 2)), (float) (i + right), (float) ((right / 2) + bottom)); + } + + public void b(TabLayout tabLayout, View view, View view2, @FloatRange(from = 0.0d, to = 1.0d) float f, @NonNull Drawable drawable) { + RectF a = a(tabLayout, view); + RectF a2 = a(tabLayout, view2); + drawable.setBounds(AnimationUtils.lerp((int) a.left, (int) a2.left, f), drawable.getBounds().top, AnimationUtils.lerp((int) a.right, (int) a2.right, f), drawable.getBounds().bottom); + } +} diff --git a/app/src/main/java/b/i/a/g/j/a.java b/app/src/main/java/b/i/a/g/j/a.java new file mode 100644 index 0000000000..699d6a0587 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/a.java @@ -0,0 +1,191 @@ +package b.i.a.g.j; + +import android.animation.AnimatorSet; +import android.animation.TimeInterpolator; +import android.animation.ValueAnimator; +import android.text.Editable; +import android.text.TextUtils; +import android.text.TextWatcher; +import android.view.View; +import android.widget.EditText; +import androidx.annotation.NonNull; +import androidx.appcompat.content.res.AppCompatResources; +import com.google.android.material.R; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: ClearTextEndIconDelegate */ +public class a extends m { + public final TextWatcher d = new C0118a(); + public final View.OnFocusChangeListener e = new b(); + public final TextInputLayout.OnEditTextAttachedListener f = new c(); + public final TextInputLayout.OnEndIconChangedListener g = new d(); + public AnimatorSet h; + public ValueAnimator i; + + /* compiled from: ClearTextEndIconDelegate */ + /* renamed from: b.i.a.g.j.a$a reason: collision with other inner class name */ + public class C0118a implements TextWatcher { + public C0118a() { + } + + @Override // android.text.TextWatcher + public void afterTextChanged(@NonNull Editable editable) { + if (a.this.a.getSuffixText() == null) { + a.this.d(editable.length() > 0); + } + } + + @Override // android.text.TextWatcher + public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) { + } + + @Override // android.text.TextWatcher + public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) { + } + } + + /* compiled from: ClearTextEndIconDelegate */ + public class b implements View.OnFocusChangeListener { + public b() { + } + + @Override // android.view.View.OnFocusChangeListener + public void onFocusChange(View view, boolean z2) { + boolean z3 = true; + boolean z4 = !TextUtils.isEmpty(((EditText) view).getText()); + a aVar = a.this; + if (!z4 || !z2) { + z3 = false; + } + aVar.d(z3); + } + } + + /* compiled from: ClearTextEndIconDelegate */ + public class c implements TextInputLayout.OnEditTextAttachedListener { + public c() { + } + + /* JADX WARNING: Code restructure failed: missing block: B:6:0x0019, code lost: + if ((r0.getText().length() > 0) != false) goto L_0x001d; + */ + @Override // com.google.android.material.textfield.TextInputLayout.OnEditTextAttachedListener + public void onEditTextAttached(@NonNull TextInputLayout textInputLayout) { + EditText editText = textInputLayout.getEditText(); + boolean z2 = true; + if (editText.hasFocus()) { + } + z2 = false; + textInputLayout.setEndIconVisible(z2); + textInputLayout.setEndIconCheckable(false); + editText.setOnFocusChangeListener(a.this.e); + editText.removeTextChangedListener(a.this.d); + editText.addTextChangedListener(a.this.d); + } + } + + /* compiled from: ClearTextEndIconDelegate */ + public class d implements TextInputLayout.OnEndIconChangedListener { + + /* compiled from: ClearTextEndIconDelegate */ + /* renamed from: b.i.a.g.j.a$d$a reason: collision with other inner class name */ + public class RunnableC0119a implements Runnable { + public final /* synthetic */ EditText j; + + public RunnableC0119a(EditText editText) { + this.j = editText; + } + + @Override // java.lang.Runnable + public void run() { + this.j.removeTextChangedListener(a.this.d); + } + } + + public d() { + } + + @Override // com.google.android.material.textfield.TextInputLayout.OnEndIconChangedListener + public void onEndIconChanged(@NonNull TextInputLayout textInputLayout, int i) { + EditText editText = textInputLayout.getEditText(); + if (editText != null && i == 2) { + editText.post(new RunnableC0119a(editText)); + if (editText.getOnFocusChangeListener() == a.this.e) { + editText.setOnFocusChangeListener(null); + } + } + } + } + + /* compiled from: ClearTextEndIconDelegate */ + public class e implements View.OnClickListener { + public e() { + } + + @Override // android.view.View.OnClickListener + public void onClick(View view) { + Editable text = a.this.a.getEditText().getText(); + if (text != null) { + text.clear(); + } + a.this.a.refreshEndIconDrawableState(); + } + } + + public a(@NonNull TextInputLayout textInputLayout) { + super(textInputLayout); + } + + @Override // b.i.a.g.j.m + public void a() { + this.a.setEndIconDrawable(AppCompatResources.getDrawable(this.f1611b, R.drawable.mtrl_ic_cancel)); + TextInputLayout textInputLayout = this.a; + textInputLayout.setEndIconContentDescription(textInputLayout.getResources().getText(R.string.clear_text_end_icon_content_description)); + this.a.setEndIconOnClickListener(new e()); + this.a.addOnEditTextAttachedListener(this.f); + this.a.addOnEndIconChangedListener(this.g); + ValueAnimator ofFloat = ValueAnimator.ofFloat(0.8f, 1.0f); + ofFloat.setInterpolator(AnimationUtils.LINEAR_OUT_SLOW_IN_INTERPOLATOR); + ofFloat.setDuration(150L); + ofFloat.addUpdateListener(new e(this)); + ValueAnimator ofFloat2 = ValueAnimator.ofFloat(0.0f, 1.0f); + TimeInterpolator timeInterpolator = AnimationUtils.LINEAR_INTERPOLATOR; + ofFloat2.setInterpolator(timeInterpolator); + ofFloat2.setDuration(100L); + ofFloat2.addUpdateListener(new d(this)); + AnimatorSet animatorSet = new AnimatorSet(); + this.h = animatorSet; + animatorSet.playTogether(ofFloat, ofFloat2); + this.h.addListener(new b(this)); + ValueAnimator ofFloat3 = ValueAnimator.ofFloat(1.0f, 0.0f); + ofFloat3.setInterpolator(timeInterpolator); + ofFloat3.setDuration(100L); + ofFloat3.addUpdateListener(new d(this)); + this.i = ofFloat3; + ofFloat3.addListener(new c(this)); + } + + @Override // b.i.a.g.j.m + public void c(boolean z2) { + if (this.a.getSuffixText() != null) { + d(z2); + } + } + + public final void d(boolean z2) { + boolean z3 = this.a.isEndIconVisible() == z2; + if (z2 && !this.h.isRunning()) { + this.i.cancel(); + this.h.start(); + if (z3) { + this.h.end(); + } + } else if (!z2) { + this.h.cancel(); + this.i.start(); + if (z3) { + this.i.end(); + } + } + } +} diff --git a/app/src/main/java/b/i/a/g/j/b.java b/app/src/main/java/b/i/a/g/j/b.java new file mode 100644 index 0000000000..66af78a3cb --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/b.java @@ -0,0 +1,17 @@ +package b.i.a.g.j; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +/* compiled from: ClearTextEndIconDelegate */ +public class b extends AnimatorListenerAdapter { + public final /* synthetic */ a a; + + public b(a aVar) { + this.a = aVar; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + this.a.a.setEndIconVisible(true); + } +} diff --git a/app/src/main/java/b/i/a/g/j/c.java b/app/src/main/java/b/i/a/g/j/c.java new file mode 100644 index 0000000000..e5db2fc44b --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/c.java @@ -0,0 +1,17 @@ +package b.i.a.g.j; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +/* compiled from: ClearTextEndIconDelegate */ +public class c extends AnimatorListenerAdapter { + public final /* synthetic */ a a; + + public c(a aVar) { + this.a = aVar; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + this.a.a.setEndIconVisible(false); + } +} diff --git a/app/src/main/java/b/i/a/g/j/d.java b/app/src/main/java/b/i/a/g/j/d.java new file mode 100644 index 0000000000..55c60f0ed1 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/d.java @@ -0,0 +1,17 @@ +package b.i.a.g.j; + +import android.animation.ValueAnimator; +import androidx.annotation.NonNull; +/* compiled from: ClearTextEndIconDelegate */ +public class d implements ValueAnimator.AnimatorUpdateListener { + public final /* synthetic */ a a; + + public d(a aVar) { + this.a = aVar; + } + + @Override // android.animation.ValueAnimator.AnimatorUpdateListener + public void onAnimationUpdate(@NonNull ValueAnimator valueAnimator) { + this.a.c.setAlpha(((Float) valueAnimator.getAnimatedValue()).floatValue()); + } +} diff --git a/app/src/main/java/b/i/a/g/j/e.java b/app/src/main/java/b/i/a/g/j/e.java new file mode 100644 index 0000000000..44c01fbc60 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/e.java @@ -0,0 +1,19 @@ +package b.i.a.g.j; + +import android.animation.ValueAnimator; +import androidx.annotation.NonNull; +/* compiled from: ClearTextEndIconDelegate */ +public class e implements ValueAnimator.AnimatorUpdateListener { + public final /* synthetic */ a a; + + public e(a aVar) { + this.a = aVar; + } + + @Override // android.animation.ValueAnimator.AnimatorUpdateListener + public void onAnimationUpdate(@NonNull ValueAnimator valueAnimator) { + float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue(); + this.a.c.setScaleX(floatValue); + this.a.c.setScaleY(floatValue); + } +} diff --git a/app/src/main/java/b/i/a/g/j/f.java b/app/src/main/java/b/i/a/g/j/f.java new file mode 100644 index 0000000000..63310b4019 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/f.java @@ -0,0 +1,16 @@ +package b.i.a.g.j; + +import androidx.annotation.NonNull; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: CustomEndIconDelegate */ +public class f extends m { + public f(@NonNull TextInputLayout textInputLayout) { + super(textInputLayout); + } + + @Override // b.i.a.g.j.m + public void a() { + this.a.setEndIconOnClickListener(null); + this.a.setEndIconOnLongClickListener(null); + } +} diff --git a/app/src/main/java/b/i/a/g/j/g.java b/app/src/main/java/b/i/a/g/j/g.java new file mode 100644 index 0000000000..e0ceb6b1c8 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/g.java @@ -0,0 +1,62 @@ +package b.i.a.g.j; + +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.PorterDuff; +import android.graphics.PorterDuffXfermode; +import android.graphics.RectF; +import android.graphics.drawable.Drawable; +import android.view.View; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.google.android.material.shape.MaterialShapeDrawable; +import com.google.android.material.shape.ShapeAppearanceModel; +/* compiled from: CutoutDrawable */ +public class g extends MaterialShapeDrawable { + @NonNull + public final Paint j; + @NonNull + public final RectF k; + public int l; + + public g() { + this(null); + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public g(@Nullable ShapeAppearanceModel shapeAppearanceModel) { + super(shapeAppearanceModel == null ? new ShapeAppearanceModel() : shapeAppearanceModel); + Paint paint = new Paint(1); + this.j = paint; + paint.setStyle(Paint.Style.FILL_AND_STROKE); + paint.setColor(-1); + paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OUT)); + this.k = new RectF(); + } + + public void a(float f, float f2, float f3, float f4) { + RectF rectF = this.k; + if (f != rectF.left || f2 != rectF.top || f3 != rectF.right || f4 != rectF.bottom) { + rectF.set(f, f2, f3, f4); + invalidateSelf(); + } + } + + @Override // com.google.android.material.shape.MaterialShapeDrawable, android.graphics.drawable.Drawable + public void draw(@NonNull Canvas canvas) { + Drawable.Callback callback = getCallback(); + if (callback instanceof View) { + View view = (View) callback; + if (view.getLayerType() != 2) { + view.setLayerType(2, null); + } + } else { + this.l = canvas.saveLayer(0.0f, 0.0f, (float) canvas.getWidth(), (float) canvas.getHeight(), null); + } + super.draw(canvas); + canvas.drawRect(this.k, this.j); + if (!(getCallback() instanceof View)) { + canvas.restoreToCount(this.l); + } + } +} diff --git a/app/src/main/java/b/i/a/g/j/h.java b/app/src/main/java/b/i/a/g/j/h.java new file mode 100644 index 0000000000..b6ea72193a --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/h.java @@ -0,0 +1,329 @@ +package b.i.a.g.j; + +import android.animation.TimeInterpolator; +import android.animation.ValueAnimator; +import android.annotation.SuppressLint; +import android.content.res.ColorStateList; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.LayerDrawable; +import android.graphics.drawable.RippleDrawable; +import android.graphics.drawable.StateListDrawable; +import android.text.Editable; +import android.text.TextWatcher; +import android.view.View; +import android.view.accessibility.AccessibilityEvent; +import android.view.accessibility.AccessibilityManager; +import android.widget.AutoCompleteTextView; +import android.widget.EditText; +import android.widget.Spinner; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.appcompat.content.res.AppCompatResources; +import androidx.core.view.ViewCompat; +import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; +import androidx.recyclerview.widget.RecyclerView; +import com.google.android.material.R; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.color.MaterialColors; +import com.google.android.material.internal.TextWatcherAdapter; +import com.google.android.material.shape.MaterialShapeDrawable; +import com.google.android.material.shape.ShapeAppearanceModel; +import com.google.android.material.textfield.TextInputLayout; +import java.util.Objects; +/* compiled from: DropdownMenuEndIconDelegate */ +public class h extends m { + public final TextWatcher d = new a(); + public final View.OnFocusChangeListener e = new b(); + public final TextInputLayout.AccessibilityDelegate f = new c(this.a); + public final TextInputLayout.OnEditTextAttachedListener g = new d(); + @SuppressLint({"ClickableViewAccessibility"}) + public final TextInputLayout.OnEndIconChangedListener h = new e(); + public boolean i = false; + public boolean j = false; + public long k = RecyclerView.FOREVER_NS; + public StateListDrawable l; + public MaterialShapeDrawable m; + @Nullable + public AccessibilityManager n; + public ValueAnimator o; + public ValueAnimator p; + + /* compiled from: DropdownMenuEndIconDelegate */ + public class a extends TextWatcherAdapter { + + /* compiled from: DropdownMenuEndIconDelegate */ + /* renamed from: b.i.a.g.j.h$a$a reason: collision with other inner class name */ + public class RunnableC0120a implements Runnable { + public final /* synthetic */ AutoCompleteTextView j; + + public RunnableC0120a(AutoCompleteTextView autoCompleteTextView) { + this.j = autoCompleteTextView; + } + + @Override // java.lang.Runnable + public void run() { + boolean isPopupShowing = this.j.isPopupShowing(); + h.f(h.this, isPopupShowing); + h.this.i = isPopupShowing; + } + } + + public a() { + } + + @Override // com.google.android.material.internal.TextWatcherAdapter, android.text.TextWatcher + public void afterTextChanged(Editable editable) { + AutoCompleteTextView d = h.d(h.this.a.getEditText()); + if (h.this.n.isTouchExplorationEnabled() && h.e(d) && !h.this.c.hasFocus()) { + d.dismissDropDown(); + } + d.post(new RunnableC0120a(d)); + } + } + + /* compiled from: DropdownMenuEndIconDelegate */ + public class b implements View.OnFocusChangeListener { + public b() { + } + + @Override // android.view.View.OnFocusChangeListener + public void onFocusChange(View view, boolean z2) { + h.this.a.setEndIconActivated(z2); + if (!z2) { + h.f(h.this, false); + h.this.i = false; + } + } + } + + /* compiled from: DropdownMenuEndIconDelegate */ + public class c extends TextInputLayout.AccessibilityDelegate { + public c(TextInputLayout textInputLayout) { + super(textInputLayout); + } + + @Override // com.google.android.material.textfield.TextInputLayout.AccessibilityDelegate, androidx.core.view.AccessibilityDelegateCompat + public void onInitializeAccessibilityNodeInfo(View view, @NonNull AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) { + super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat); + if (!h.e(h.this.a.getEditText())) { + accessibilityNodeInfoCompat.setClassName(Spinner.class.getName()); + } + if (accessibilityNodeInfoCompat.isShowingHintText()) { + accessibilityNodeInfoCompat.setHintText(null); + } + } + + @Override // androidx.core.view.AccessibilityDelegateCompat + public void onPopulateAccessibilityEvent(View view, @NonNull AccessibilityEvent accessibilityEvent) { + super.onPopulateAccessibilityEvent(view, accessibilityEvent); + AutoCompleteTextView d = h.d(h.this.a.getEditText()); + if (accessibilityEvent.getEventType() == 1 && h.this.n.isTouchExplorationEnabled() && !h.e(h.this.a.getEditText())) { + h.g(h.this, d); + } + } + } + + /* compiled from: DropdownMenuEndIconDelegate */ + public class d implements TextInputLayout.OnEditTextAttachedListener { + public d() { + } + + @Override // com.google.android.material.textfield.TextInputLayout.OnEditTextAttachedListener + public void onEditTextAttached(@NonNull TextInputLayout textInputLayout) { + AutoCompleteTextView d = h.d(textInputLayout.getEditText()); + h hVar = h.this; + int boxBackgroundMode = hVar.a.getBoxBackgroundMode(); + if (boxBackgroundMode == 2) { + d.setDropDownBackgroundDrawable(hVar.m); + } else if (boxBackgroundMode == 1) { + d.setDropDownBackgroundDrawable(hVar.l); + } + h hVar2 = h.this; + Objects.requireNonNull(hVar2); + boolean z2 = false; + if (!(d.getKeyListener() != null)) { + int boxBackgroundMode2 = hVar2.a.getBoxBackgroundMode(); + MaterialShapeDrawable boxBackground = hVar2.a.getBoxBackground(); + int color = MaterialColors.getColor(d, R.attr.colorControlHighlight); + int[][] iArr = {new int[]{16842919}, new int[0]}; + if (boxBackgroundMode2 == 2) { + int color2 = MaterialColors.getColor(d, R.attr.colorSurface); + MaterialShapeDrawable materialShapeDrawable = new MaterialShapeDrawable(boxBackground.getShapeAppearanceModel()); + int layer = MaterialColors.layer(color, color2, 0.1f); + materialShapeDrawable.setFillColor(new ColorStateList(iArr, new int[]{layer, 0})); + materialShapeDrawable.setTint(color2); + ColorStateList colorStateList = new ColorStateList(iArr, new int[]{layer, color2}); + MaterialShapeDrawable materialShapeDrawable2 = new MaterialShapeDrawable(boxBackground.getShapeAppearanceModel()); + materialShapeDrawable2.setTint(-1); + ViewCompat.setBackground(d, new LayerDrawable(new Drawable[]{new RippleDrawable(colorStateList, materialShapeDrawable, materialShapeDrawable2), boxBackground})); + } else if (boxBackgroundMode2 == 1) { + int boxBackgroundColor = hVar2.a.getBoxBackgroundColor(); + ViewCompat.setBackground(d, new RippleDrawable(new ColorStateList(iArr, new int[]{MaterialColors.layer(color, boxBackgroundColor, 0.1f), boxBackgroundColor}), boxBackground, boxBackground)); + } + } + h hVar3 = h.this; + Objects.requireNonNull(hVar3); + d.setOnTouchListener(new j(hVar3, d)); + d.setOnFocusChangeListener(hVar3.e); + d.setOnDismissListener(new k(hVar3)); + d.setThreshold(0); + d.removeTextChangedListener(h.this.d); + d.addTextChangedListener(h.this.d); + textInputLayout.setEndIconCheckable(true); + textInputLayout.setErrorIconDrawable((Drawable) null); + if (d.getKeyListener() != null) { + z2 = true; + } + if (!z2) { + ViewCompat.setImportantForAccessibility(h.this.c, 2); + } + textInputLayout.setTextInputAccessibilityDelegate(h.this.f); + textInputLayout.setEndIconVisible(true); + } + } + + /* compiled from: DropdownMenuEndIconDelegate */ + public class e implements TextInputLayout.OnEndIconChangedListener { + + /* compiled from: DropdownMenuEndIconDelegate */ + public class a implements Runnable { + public final /* synthetic */ AutoCompleteTextView j; + + public a(AutoCompleteTextView autoCompleteTextView) { + this.j = autoCompleteTextView; + } + + @Override // java.lang.Runnable + public void run() { + this.j.removeTextChangedListener(h.this.d); + } + } + + public e() { + } + + @Override // com.google.android.material.textfield.TextInputLayout.OnEndIconChangedListener + public void onEndIconChanged(@NonNull TextInputLayout textInputLayout, int i) { + AutoCompleteTextView autoCompleteTextView = (AutoCompleteTextView) textInputLayout.getEditText(); + if (autoCompleteTextView != null && i == 3) { + autoCompleteTextView.post(new a(autoCompleteTextView)); + if (autoCompleteTextView.getOnFocusChangeListener() == h.this.e) { + autoCompleteTextView.setOnFocusChangeListener(null); + } + autoCompleteTextView.setOnTouchListener(null); + autoCompleteTextView.setOnDismissListener(null); + } + } + } + + /* compiled from: DropdownMenuEndIconDelegate */ + public class f implements View.OnClickListener { + public f() { + } + + @Override // android.view.View.OnClickListener + public void onClick(View view) { + h.g(h.this, (AutoCompleteTextView) h.this.a.getEditText()); + } + } + + public h(@NonNull TextInputLayout textInputLayout) { + super(textInputLayout); + } + + public static AutoCompleteTextView d(EditText editText) { + if (editText instanceof AutoCompleteTextView) { + return (AutoCompleteTextView) editText; + } + throw new RuntimeException("EditText needs to be an AutoCompleteTextView if an Exposed Dropdown Menu is being used."); + } + + public static boolean e(EditText editText) { + return editText.getKeyListener() != null; + } + + public static void f(h hVar, boolean z2) { + if (hVar.j != z2) { + hVar.j = z2; + hVar.p.cancel(); + hVar.o.start(); + } + } + + public static void g(h hVar, AutoCompleteTextView autoCompleteTextView) { + Objects.requireNonNull(hVar); + if (autoCompleteTextView != null) { + if (hVar.i()) { + hVar.i = false; + } + if (!hVar.i) { + boolean z2 = hVar.j; + boolean z3 = !z2; + if (z2 != z3) { + hVar.j = z3; + hVar.p.cancel(); + hVar.o.start(); + } + if (hVar.j) { + autoCompleteTextView.requestFocus(); + autoCompleteTextView.showDropDown(); + return; + } + autoCompleteTextView.dismissDropDown(); + return; + } + hVar.i = false; + } + } + + @Override // b.i.a.g.j.m + public void a() { + float dimensionPixelOffset = (float) this.f1611b.getResources().getDimensionPixelOffset(R.dimen.mtrl_shape_corner_size_small_component); + float dimensionPixelOffset2 = (float) this.f1611b.getResources().getDimensionPixelOffset(R.dimen.mtrl_exposed_dropdown_menu_popup_elevation); + int dimensionPixelOffset3 = this.f1611b.getResources().getDimensionPixelOffset(R.dimen.mtrl_exposed_dropdown_menu_popup_vertical_padding); + MaterialShapeDrawable h = h(dimensionPixelOffset, dimensionPixelOffset, dimensionPixelOffset2, dimensionPixelOffset3); + MaterialShapeDrawable h2 = h(0.0f, dimensionPixelOffset, dimensionPixelOffset2, dimensionPixelOffset3); + this.m = h; + StateListDrawable stateListDrawable = new StateListDrawable(); + this.l = stateListDrawable; + stateListDrawable.addState(new int[]{16842922}, h); + this.l.addState(new int[0], h2); + this.a.setEndIconDrawable(AppCompatResources.getDrawable(this.f1611b, R.drawable.mtrl_dropdown_arrow)); + TextInputLayout textInputLayout = this.a; + textInputLayout.setEndIconContentDescription(textInputLayout.getResources().getText(R.string.exposed_dropdown_menu_content_description)); + this.a.setEndIconOnClickListener(new f()); + this.a.addOnEditTextAttachedListener(this.g); + this.a.addOnEndIconChangedListener(this.h); + ValueAnimator ofFloat = ValueAnimator.ofFloat(0.0f, 1.0f); + TimeInterpolator timeInterpolator = AnimationUtils.LINEAR_INTERPOLATOR; + ofFloat.setInterpolator(timeInterpolator); + ofFloat.setDuration((long) 67); + ofFloat.addUpdateListener(new i(this)); + this.p = ofFloat; + ValueAnimator ofFloat2 = ValueAnimator.ofFloat(1.0f, 0.0f); + ofFloat2.setInterpolator(timeInterpolator); + ofFloat2.setDuration((long) 50); + ofFloat2.addUpdateListener(new i(this)); + this.o = ofFloat2; + ofFloat2.addListener(new l(this)); + this.n = (AccessibilityManager) this.f1611b.getSystemService("accessibility"); + } + + @Override // b.i.a.g.j.m + public boolean b(int i) { + return i != 0; + } + + public final MaterialShapeDrawable h(float f2, float f3, float f4, int i) { + ShapeAppearanceModel build = ShapeAppearanceModel.builder().setTopLeftCornerSize(f2).setTopRightCornerSize(f2).setBottomLeftCornerSize(f3).setBottomRightCornerSize(f3).build(); + MaterialShapeDrawable createWithElevationOverlay = MaterialShapeDrawable.createWithElevationOverlay(this.f1611b, f4); + createWithElevationOverlay.setShapeAppearanceModel(build); + createWithElevationOverlay.setPadding(0, i, 0, i); + return createWithElevationOverlay; + } + + public final boolean i() { + long currentTimeMillis = System.currentTimeMillis() - this.k; + return currentTimeMillis < 0 || currentTimeMillis > 300; + } +} diff --git a/app/src/main/java/b/i/a/g/j/i.java b/app/src/main/java/b/i/a/g/j/i.java new file mode 100644 index 0000000000..a84709fa83 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/i.java @@ -0,0 +1,17 @@ +package b.i.a.g.j; + +import android.animation.ValueAnimator; +import androidx.annotation.NonNull; +/* compiled from: DropdownMenuEndIconDelegate */ +public class i implements ValueAnimator.AnimatorUpdateListener { + public final /* synthetic */ h a; + + public i(h hVar) { + this.a = hVar; + } + + @Override // android.animation.ValueAnimator.AnimatorUpdateListener + public void onAnimationUpdate(@NonNull ValueAnimator valueAnimator) { + this.a.c.setAlpha(((Float) valueAnimator.getAnimatedValue()).floatValue()); + } +} diff --git a/app/src/main/java/b/i/a/g/j/j.java b/app/src/main/java/b/i/a/g/j/j.java new file mode 100644 index 0000000000..59222bc93e --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/j.java @@ -0,0 +1,27 @@ +package b.i.a.g.j; + +import android.view.MotionEvent; +import android.view.View; +import android.widget.AutoCompleteTextView; +import androidx.annotation.NonNull; +/* compiled from: DropdownMenuEndIconDelegate */ +public class j implements View.OnTouchListener { + public final /* synthetic */ AutoCompleteTextView j; + public final /* synthetic */ h k; + + public j(h hVar, AutoCompleteTextView autoCompleteTextView) { + this.k = hVar; + this.j = autoCompleteTextView; + } + + @Override // android.view.View.OnTouchListener + public boolean onTouch(@NonNull View view, @NonNull MotionEvent motionEvent) { + if (motionEvent.getAction() == 1) { + if (this.k.i()) { + this.k.i = false; + } + h.g(this.k, this.j); + } + return false; + } +} diff --git a/app/src/main/java/b/i/a/g/j/k.java b/app/src/main/java/b/i/a/g/j/k.java new file mode 100644 index 0000000000..e8d8f36c64 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/k.java @@ -0,0 +1,19 @@ +package b.i.a.g.j; + +import android.widget.AutoCompleteTextView; +/* compiled from: DropdownMenuEndIconDelegate */ +public class k implements AutoCompleteTextView.OnDismissListener { + public final /* synthetic */ h a; + + public k(h hVar) { + this.a = hVar; + } + + @Override // android.widget.AutoCompleteTextView.OnDismissListener + public void onDismiss() { + h hVar = this.a; + hVar.i = true; + hVar.k = System.currentTimeMillis(); + h.f(this.a, false); + } +} diff --git a/app/src/main/java/b/i/a/g/j/l.java b/app/src/main/java/b/i/a/g/j/l.java new file mode 100644 index 0000000000..4195bb40c4 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/l.java @@ -0,0 +1,19 @@ +package b.i.a.g.j; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +/* compiled from: DropdownMenuEndIconDelegate */ +public class l extends AnimatorListenerAdapter { + public final /* synthetic */ h a; + + public l(h hVar) { + this.a = hVar; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + h hVar = this.a; + hVar.c.setChecked(hVar.j); + this.a.p.start(); + } +} diff --git a/app/src/main/java/b/i/a/g/j/m.java b/app/src/main/java/b/i/a/g/j/m.java new file mode 100644 index 0000000000..a75ad7fe17 --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/m.java @@ -0,0 +1,29 @@ +package b.i.a.g.j; + +import android.content.Context; +import androidx.annotation.NonNull; +import com.google.android.material.internal.CheckableImageButton; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: EndIconDelegate */ +public abstract class m { + public TextInputLayout a; + + /* renamed from: b reason: collision with root package name */ + public Context f1611b; + public CheckableImageButton c; + + public m(@NonNull TextInputLayout textInputLayout) { + this.a = textInputLayout; + this.f1611b = textInputLayout.getContext(); + this.c = textInputLayout.getEndIconView(); + } + + public abstract void a(); + + public boolean b(int i) { + return true; + } + + public void c(boolean z2) { + } +} diff --git a/app/src/main/java/b/i/a/g/j/n.java b/app/src/main/java/b/i/a/g/j/n.java new file mode 100644 index 0000000000..19fe0a455d --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/n.java @@ -0,0 +1,266 @@ +package b.i.a.g.j; + +import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; +import android.animation.AnimatorSet; +import android.animation.ObjectAnimator; +import android.content.Context; +import android.content.res.ColorStateList; +import android.graphics.Typeface; +import android.text.TextUtils; +import android.view.View; +import android.widget.EditText; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.annotation.ColorInt; +import androidx.annotation.DimenRes; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.core.view.ViewCompat; +import com.google.android.material.R; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.animation.AnimatorSetCompat; +import com.google.android.material.resources.MaterialResources; +import com.google.android.material.textfield.TextInputLayout; +import java.util.ArrayList; +import java.util.List; +/* compiled from: IndicatorViewController */ +public final class n { + public final Context a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final TextInputLayout f1612b; + public LinearLayout c; + public int d; + public FrameLayout e; + @Nullable + public Animator f; + public final float g; + public int h; + public int i; + @Nullable + public CharSequence j; + public boolean k; + @Nullable + public TextView l; + @Nullable + public CharSequence m; + public int n; + @Nullable + public ColorStateList o; + public CharSequence p; + public boolean q; + @Nullable + public TextView r; + + /* renamed from: s reason: collision with root package name */ + public int f1613s; + @Nullable + public ColorStateList t; + public Typeface u; + + /* compiled from: IndicatorViewController */ + public class a extends AnimatorListenerAdapter { + public final /* synthetic */ int a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ TextView f1614b; + public final /* synthetic */ int c; + public final /* synthetic */ TextView d; + + public a(int i, TextView textView, int i2, TextView textView2) { + this.a = i; + this.f1614b = textView; + this.c = i2; + this.d = textView2; + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationEnd(Animator animator) { + TextView textView; + n nVar = n.this; + nVar.h = this.a; + nVar.f = null; + TextView textView2 = this.f1614b; + if (textView2 != null) { + textView2.setVisibility(4); + if (this.c == 1 && (textView = n.this.l) != null) { + textView.setText((CharSequence) null); + } + } + TextView textView3 = this.d; + if (textView3 != null) { + textView3.setTranslationY(0.0f); + this.d.setAlpha(1.0f); + } + } + + @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener + public void onAnimationStart(Animator animator) { + TextView textView = this.d; + if (textView != null) { + textView.setVisibility(0); + } + } + } + + public n(@NonNull TextInputLayout textInputLayout) { + Context context = textInputLayout.getContext(); + this.a = context; + this.f1612b = textInputLayout; + this.g = (float) context.getResources().getDimensionPixelSize(R.dimen.design_textinput_caption_translate_y); + } + + public void a(TextView textView, int i) { + if (this.c == null && this.e == null) { + LinearLayout linearLayout = new LinearLayout(this.a); + this.c = linearLayout; + linearLayout.setOrientation(0); + this.f1612b.addView(this.c, -1, -2); + this.e = new FrameLayout(this.a); + this.c.addView(this.e, new LinearLayout.LayoutParams(0, -2, 1.0f)); + if (this.f1612b.getEditText() != null) { + b(); + } + } + if (i == 0 || i == 1) { + this.e.setVisibility(0); + this.e.addView(textView); + } else { + this.c.addView(textView, new LinearLayout.LayoutParams(-2, -2)); + } + this.c.setVisibility(0); + this.d++; + } + + public void b() { + if ((this.c == null || this.f1612b.getEditText() == null) ? false : true) { + EditText editText = this.f1612b.getEditText(); + boolean isFontScaleAtLeast1_3 = MaterialResources.isFontScaleAtLeast1_3(this.a); + LinearLayout linearLayout = this.c; + int i = R.dimen.material_helper_text_font_1_3_padding_horizontal; + ViewCompat.setPaddingRelative(linearLayout, h(isFontScaleAtLeast1_3, i, ViewCompat.getPaddingStart(editText)), h(isFontScaleAtLeast1_3, R.dimen.material_helper_text_font_1_3_padding_top, this.a.getResources().getDimensionPixelSize(R.dimen.material_helper_text_default_padding_top)), h(isFontScaleAtLeast1_3, i, ViewCompat.getPaddingEnd(editText)), 0); + } + } + + public void c() { + Animator animator = this.f; + if (animator != null) { + animator.cancel(); + } + } + + public final void d(@NonNull List list, boolean z2, @Nullable TextView textView, int i, int i2, int i3) { + if (textView != null && z2) { + if (i == i3 || i == i2) { + ObjectAnimator ofFloat = ObjectAnimator.ofFloat(textView, View.ALPHA, i3 == i ? 1.0f : 0.0f); + ofFloat.setDuration(167L); + ofFloat.setInterpolator(AnimationUtils.LINEAR_INTERPOLATOR); + list.add(ofFloat); + if (i3 == i) { + ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(textView, View.TRANSLATION_Y, -this.g, 0.0f); + ofFloat2.setDuration(217L); + ofFloat2.setInterpolator(AnimationUtils.LINEAR_OUT_SLOW_IN_INTERPOLATOR); + list.add(ofFloat2); + } + } + } + } + + public boolean e() { + return this.i == 1 && this.l != null && !TextUtils.isEmpty(this.j); + } + + @Nullable + public final TextView f(int i) { + if (i == 1) { + return this.l; + } + if (i != 2) { + return null; + } + return this.r; + } + + @ColorInt + public int g() { + TextView textView = this.l; + if (textView != null) { + return textView.getCurrentTextColor(); + } + return -1; + } + + public final int h(boolean z2, @DimenRes int i, int i2) { + return z2 ? this.a.getResources().getDimensionPixelSize(i) : i2; + } + + public void i() { + this.j = null; + c(); + if (this.h == 1) { + if (!this.q || TextUtils.isEmpty(this.p)) { + this.i = 0; + } else { + this.i = 2; + } + } + l(this.h, this.i, k(this.l, null)); + } + + public void j(TextView textView, int i) { + FrameLayout frameLayout; + LinearLayout linearLayout = this.c; + if (linearLayout != null) { + if (!(i == 0 || i == 1) || (frameLayout = this.e) == null) { + linearLayout.removeView(textView); + } else { + frameLayout.removeView(textView); + } + int i2 = this.d - 1; + this.d = i2; + LinearLayout linearLayout2 = this.c; + if (i2 == 0) { + linearLayout2.setVisibility(8); + } + } + } + + public final boolean k(@Nullable TextView textView, @Nullable CharSequence charSequence) { + return ViewCompat.isLaidOut(this.f1612b) && this.f1612b.isEnabled() && (this.i != this.h || textView == null || !TextUtils.equals(textView.getText(), charSequence)); + } + + public final void l(int i, int i2, boolean z2) { + TextView f; + TextView f2; + if (i != i2) { + if (z2) { + AnimatorSet animatorSet = new AnimatorSet(); + this.f = animatorSet; + ArrayList arrayList = new ArrayList(); + d(arrayList, this.q, this.r, 2, i, i2); + d(arrayList, this.k, this.l, 1, i, i2); + AnimatorSetCompat.playTogether(animatorSet, arrayList); + animatorSet.addListener(new a(i2, f(i), i, f(i2))); + animatorSet.start(); + } else if (i != i2) { + if (!(i2 == 0 || (f2 = f(i2)) == null)) { + f2.setVisibility(0); + f2.setAlpha(1.0f); + } + if (!(i == 0 || (f = f(i)) == null)) { + f.setVisibility(4); + if (i == 1) { + f.setText((CharSequence) null); + } + } + this.h = i2; + } + this.f1612b.updateEditTextBackground(); + this.f1612b.updateLabelState(z2); + this.f1612b.updateTextInputBoxState(); + } + } +} diff --git a/app/src/main/java/b/i/a/g/j/o.java b/app/src/main/java/b/i/a/g/j/o.java new file mode 100644 index 0000000000..7fa0b2d70f --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/o.java @@ -0,0 +1,18 @@ +package b.i.a.g.j; + +import android.graphics.drawable.Drawable; +import androidx.annotation.NonNull; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: NoEndIconDelegate */ +public class o extends m { + public o(@NonNull TextInputLayout textInputLayout) { + super(textInputLayout); + } + + @Override // b.i.a.g.j.m + public void a() { + this.a.setEndIconOnClickListener(null); + this.a.setEndIconDrawable((Drawable) null); + this.a.setEndIconContentDescription((CharSequence) null); + } +} diff --git a/app/src/main/java/b/i/a/g/j/p.java b/app/src/main/java/b/i/a/g/j/p.java new file mode 100644 index 0000000000..461c8e4f8e --- /dev/null +++ b/app/src/main/java/b/i/a/g/j/p.java @@ -0,0 +1,122 @@ +package b.i.a.g.j; + +import android.text.TextWatcher; +import android.text.method.PasswordTransformationMethod; +import android.view.View; +import android.widget.EditText; +import androidx.annotation.NonNull; +import androidx.appcompat.content.res.AppCompatResources; +import com.google.android.material.R; +import com.google.android.material.internal.TextWatcherAdapter; +import com.google.android.material.textfield.TextInputLayout; +/* compiled from: PasswordToggleEndIconDelegate */ +public class p extends m { + public final TextWatcher d = new a(); + public final TextInputLayout.OnEditTextAttachedListener e = new b(); + public final TextInputLayout.OnEndIconChangedListener f = new c(); + + /* compiled from: PasswordToggleEndIconDelegate */ + public class a extends TextWatcherAdapter { + public a() { + } + + @Override // com.google.android.material.internal.TextWatcherAdapter, android.text.TextWatcher + public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) { + p pVar = p.this; + pVar.c.setChecked(!p.d(pVar)); + } + } + + /* compiled from: PasswordToggleEndIconDelegate */ + public class b implements TextInputLayout.OnEditTextAttachedListener { + public b() { + } + + @Override // com.google.android.material.textfield.TextInputLayout.OnEditTextAttachedListener + public void onEditTextAttached(@NonNull TextInputLayout textInputLayout) { + EditText editText = textInputLayout.getEditText(); + textInputLayout.setEndIconVisible(true); + textInputLayout.setEndIconCheckable(true); + p pVar = p.this; + pVar.c.setChecked(!p.d(pVar)); + editText.removeTextChangedListener(p.this.d); + editText.addTextChangedListener(p.this.d); + } + } + + /* compiled from: PasswordToggleEndIconDelegate */ + public class c implements TextInputLayout.OnEndIconChangedListener { + + /* compiled from: PasswordToggleEndIconDelegate */ + public class a implements Runnable { + public final /* synthetic */ EditText j; + + public a(EditText editText) { + this.j = editText; + } + + @Override // java.lang.Runnable + public void run() { + this.j.removeTextChangedListener(p.this.d); + } + } + + public c() { + } + + @Override // com.google.android.material.textfield.TextInputLayout.OnEndIconChangedListener + public void onEndIconChanged(@NonNull TextInputLayout textInputLayout, int i) { + EditText editText = textInputLayout.getEditText(); + if (editText != null && i == 1) { + editText.setTransformationMethod(PasswordTransformationMethod.getInstance()); + editText.post(new a(editText)); + } + } + } + + /* compiled from: PasswordToggleEndIconDelegate */ + public class d implements View.OnClickListener { + public d() { + } + + @Override // android.view.View.OnClickListener + public void onClick(View view) { + EditText editText = p.this.a.getEditText(); + if (editText != null) { + int selectionEnd = editText.getSelectionEnd(); + if (p.d(p.this)) { + editText.setTransformationMethod(null); + } else { + editText.setTransformationMethod(PasswordTransformationMethod.getInstance()); + } + if (selectionEnd >= 0) { + editText.setSelection(selectionEnd); + } + p.this.a.refreshEndIconDrawableState(); + } + } + } + + public p(@NonNull TextInputLayout textInputLayout) { + super(textInputLayout); + } + + public static boolean d(p pVar) { + EditText editText = pVar.a.getEditText(); + return editText != null && (editText.getTransformationMethod() instanceof PasswordTransformationMethod); + } + + @Override // b.i.a.g.j.m + public void a() { + this.a.setEndIconDrawable(AppCompatResources.getDrawable(this.f1611b, R.drawable.design_password_eye)); + TextInputLayout textInputLayout = this.a; + textInputLayout.setEndIconContentDescription(textInputLayout.getResources().getText(R.string.password_toggle_content_description)); + this.a.setEndIconOnClickListener(new d()); + this.a.addOnEditTextAttachedListener(this.e); + this.a.addOnEndIconChangedListener(this.f); + EditText editText = this.a.getEditText(); + if (editText != null && (editText.getInputType() == 16 || editText.getInputType() == 128 || editText.getInputType() == 144 || editText.getInputType() == 224)) { + editText.setTransformationMethod(PasswordTransformationMethod.getInstance()); + } + } +} diff --git a/app/src/main/java/b/i/a/g/k/a.java b/app/src/main/java/b/i/a/g/k/a.java new file mode 100644 index 0000000000..d21c833612 --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/a.java @@ -0,0 +1,20 @@ +package b.i.a.g.k; + +import android.content.Context; +import android.view.View; +import androidx.core.view.AccessibilityDelegateCompat; +import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; +/* compiled from: ClickActionDelegate */ +public class a extends AccessibilityDelegateCompat { + public final AccessibilityNodeInfoCompat.AccessibilityActionCompat a; + + public a(Context context, int i) { + this.a = new AccessibilityNodeInfoCompat.AccessibilityActionCompat(16, context.getString(i)); + } + + @Override // androidx.core.view.AccessibilityDelegateCompat + public void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) { + super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat); + accessibilityNodeInfoCompat.addAction(this.a); + } +} diff --git a/app/src/main/java/b/i/a/g/k/b.java b/app/src/main/java/b/i/a/g/k/b.java new file mode 100644 index 0000000000..7126c57e28 --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/b.java @@ -0,0 +1,31 @@ +package b.i.a.g.k; + +import android.view.ViewTreeObserver; +import com.google.android.material.timepicker.ClockFaceView; +import com.google.android.material.timepicker.ClockHandView; +/* compiled from: ClockFaceView */ +public class b implements ViewTreeObserver.OnPreDrawListener { + public final /* synthetic */ ClockFaceView j; + + public b(ClockFaceView clockFaceView) { + this.j = clockFaceView; + } + + @Override // android.view.ViewTreeObserver.OnPreDrawListener + public boolean onPreDraw() { + if (!this.j.isShown()) { + return true; + } + this.j.getViewTreeObserver().removeOnPreDrawListener(this); + ClockFaceView clockFaceView = this.j; + int height = ((this.j.getHeight() / 2) - clockFaceView.m.r) - clockFaceView.t; + if (height != clockFaceView.k) { + clockFaceView.k = height; + clockFaceView.a(); + ClockHandView clockHandView = clockFaceView.m; + clockHandView.A = clockFaceView.k; + clockHandView.invalidate(); + } + return true; + } +} diff --git a/app/src/main/java/b/i/a/g/k/c.java b/app/src/main/java/b/i/a/g/k/c.java new file mode 100644 index 0000000000..4ed97fdb2c --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/c.java @@ -0,0 +1,26 @@ +package b.i.a.g.k; + +import android.view.View; +import androidx.annotation.NonNull; +import androidx.core.view.AccessibilityDelegateCompat; +import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; +import com.google.android.material.R; +import com.google.android.material.timepicker.ClockFaceView; +/* compiled from: ClockFaceView */ +public class c extends AccessibilityDelegateCompat { + public final /* synthetic */ ClockFaceView a; + + public c(ClockFaceView clockFaceView) { + this.a = clockFaceView; + } + + @Override // androidx.core.view.AccessibilityDelegateCompat + public void onInitializeAccessibilityNodeInfo(View view, @NonNull AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) { + super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat); + int intValue = ((Integer) view.getTag(R.id.material_value_index)).intValue(); + if (intValue > 0) { + accessibilityNodeInfoCompat.setTraversalAfter(this.a.p.get(intValue - 1)); + } + accessibilityNodeInfoCompat.setCollectionItemInfo(AccessibilityNodeInfoCompat.CollectionItemInfoCompat.obtain(0, 1, intValue, 1, false, view.isSelected())); + } +} diff --git a/app/src/main/java/b/i/a/g/k/d.java b/app/src/main/java/b/i/a/g/k/d.java new file mode 100644 index 0000000000..61e797ed7d --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/d.java @@ -0,0 +1,26 @@ +package b.i.a.g.k; + +import android.text.InputFilter; +import android.text.Spanned; +/* compiled from: MaxInputValidator */ +public class d implements InputFilter { + public int a; + + public d(int i) { + this.a = i; + } + + @Override // android.text.InputFilter + public CharSequence filter(CharSequence charSequence, int i, int i2, Spanned spanned, int i3, int i4) { + try { + StringBuilder sb = new StringBuilder(spanned); + sb.replace(i3, i4, charSequence.subSequence(i, i2).toString()); + if (Integer.parseInt(sb.toString()) <= this.a) { + return null; + } + return ""; + } catch (NumberFormatException unused) { + return ""; + } + } +} diff --git a/app/src/main/java/b/i/a/g/k/e.java b/app/src/main/java/b/i/a/g/k/e.java new file mode 100644 index 0000000000..548feb47ee --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/e.java @@ -0,0 +1,111 @@ +package b.i.a.g.k; + +import android.content.Context; +import android.content.res.ColorStateList; +import android.content.res.TypedArray; +import android.os.Handler; +import android.util.AttributeSet; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import androidx.annotation.ColorInt; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.constraintlayout.widget.ConstraintSet; +import androidx.core.view.ViewCompat; +import com.google.android.material.R; +import com.google.android.material.shape.MaterialShapeDrawable; +import com.google.android.material.shape.RelativeCornerSize; +/* compiled from: RadialViewGroup */ +public class e extends ConstraintLayout { + public final Runnable j; + public int k; + public MaterialShapeDrawable l; + + /* compiled from: RadialViewGroup */ + public class a implements Runnable { + public a() { + } + + @Override // java.lang.Runnable + public void run() { + e.this.a(); + } + } + + public e(@NonNull Context context, @Nullable AttributeSet attributeSet) { + this(context, attributeSet, 0); + } + + public e(@NonNull Context context, @Nullable AttributeSet attributeSet, int i) { + super(context, attributeSet, i); + LayoutInflater.from(context).inflate(R.layout.material_radial_view_group, this); + MaterialShapeDrawable materialShapeDrawable = new MaterialShapeDrawable(); + this.l = materialShapeDrawable; + materialShapeDrawable.setCornerSize(new RelativeCornerSize(0.5f)); + this.l.setFillColor(ColorStateList.valueOf(-1)); + ViewCompat.setBackground(this, this.l); + TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R.styleable.RadialViewGroup, i, 0); + this.k = obtainStyledAttributes.getDimensionPixelSize(R.styleable.RadialViewGroup_materialCircleRadius, 0); + this.j = new a(); + obtainStyledAttributes.recycle(); + } + + public void a() { + int childCount = getChildCount(); + int i = 1; + for (int i2 = 0; i2 < childCount; i2++) { + if ("skip".equals(getChildAt(i2).getTag())) { + i++; + } + } + ConstraintSet constraintSet = new ConstraintSet(); + constraintSet.clone(this); + float f = 0.0f; + for (int i3 = 0; i3 < childCount; i3++) { + View childAt = getChildAt(i3); + int id2 = childAt.getId(); + int i4 = R.id.circle_center; + if (id2 != i4 && !"skip".equals(childAt.getTag())) { + constraintSet.constrainCircle(childAt.getId(), i4, this.k, f); + f = (360.0f / ((float) (childCount - i))) + f; + } + } + constraintSet.applyTo(this); + } + + @Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup + public void addView(View view, int i, ViewGroup.LayoutParams layoutParams) { + super.addView(view, i, layoutParams); + if (view.getId() == -1) { + view.setId(ViewCompat.generateViewId()); + } + Handler handler = getHandler(); + if (handler != null) { + handler.removeCallbacks(this.j); + handler.post(this.j); + } + } + + @Override // android.view.View + public void onFinishInflate() { + super.onFinishInflate(); + a(); + } + + @Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup + public void onViewRemoved(View view) { + super.onViewRemoved(view); + Handler handler = getHandler(); + if (handler != null) { + handler.removeCallbacks(this.j); + handler.post(this.j); + } + } + + @Override // android.view.View + public void setBackgroundColor(@ColorInt int i) { + this.l.setFillColor(ColorStateList.valueOf(i)); + } +} diff --git a/app/src/main/java/b/i/a/g/k/f.java b/app/src/main/java/b/i/a/g/k/f.java new file mode 100644 index 0000000000..51e59e7020 --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/f.java @@ -0,0 +1,166 @@ +package b.i.a.g.k; + +import android.view.accessibility.AccessibilityManager; +import androidx.core.content.ContextCompat; +import androidx.core.view.ViewCompat; +import androidx.exifinterface.media.ExifInterface; +import com.google.android.material.R; +import com.google.android.material.chip.Chip; +import com.google.android.material.timepicker.ClockHandView; +import com.google.android.material.timepicker.TimeModel; +import com.google.android.material.timepicker.TimePickerView; +import java.util.Locale; +import java.util.Objects; +/* compiled from: TimePickerClockPresenter */ +public class f implements ClockHandView.OnRotateListener, TimePickerView.d, TimePickerView.c, ClockHandView.OnActionUpListener, g { + public static final String[] j = {"12", "1", ExifInterface.GPS_MEASUREMENT_2D, ExifInterface.GPS_MEASUREMENT_3D, "4", "5", "6", "7", "8", "9", "10", "11"}; + public static final String[] k = {"00", ExifInterface.GPS_MEASUREMENT_2D, "4", "6", "8", "10", "12", "14", "16", "18", "20", "22"}; + public static final String[] l = {"00", "5", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"}; + public TimePickerView m; + public TimeModel n; + public float o; + public float p; + public boolean q = false; + + public f(TimePickerView timePickerView, TimeModel timeModel) { + this.m = timePickerView; + this.n = timeModel; + if (timeModel.l == 0) { + timePickerView.n.setVisibility(0); + } + this.m.l.q.add(this); + TimePickerView timePickerView2 = this.m; + timePickerView2.q = this; + timePickerView2.p = this; + timePickerView2.l.f3035y = this; + g(j, "%d"); + g(k, "%d"); + g(l, "%02d"); + a(); + } + + @Override // b.i.a.g.k.g + public void a() { + this.p = (float) (d() * this.n.b()); + TimeModel timeModel = this.n; + this.o = (float) (timeModel.n * 6); + e(timeModel.o, false); + f(); + } + + @Override // com.google.android.material.timepicker.TimePickerView.d + public void b(int i) { + e(i, true); + } + + @Override // b.i.a.g.k.g + public void c() { + this.m.setVisibility(8); + } + + public final int d() { + return this.n.l == 1 ? 15 : 30; + } + + public void e(int i, boolean z2) { + boolean z3 = false; + boolean z4 = i == 12; + TimePickerView timePickerView = this.m; + timePickerView.l.l = z4; + TimeModel timeModel = this.n; + timeModel.o = i; + timePickerView.m.c(z4 ? l : timeModel.l == 1 ? k : j, z4 ? R.string.material_minute_suffix : R.string.material_hour_suffix); + this.m.l.b(z4 ? this.o : this.p, z2); + TimePickerView timePickerView2 = this.m; + timePickerView2.j.setChecked(i == 12); + Chip chip = timePickerView2.k; + if (i == 10) { + z3 = true; + } + chip.setChecked(z3); + ViewCompat.setAccessibilityDelegate(this.m.k, new a(this.m.getContext(), R.string.material_hour_selection)); + ViewCompat.setAccessibilityDelegate(this.m.j, new a(this.m.getContext(), R.string.material_minute_selection)); + } + + public final void f() { + TimePickerView timePickerView = this.m; + TimeModel timeModel = this.n; + int i = timeModel.p; + int b2 = timeModel.b(); + int i2 = this.n.n; + timePickerView.n.check(i == 1 ? R.id.material_clock_period_pm_button : R.id.material_clock_period_am_button); + Locale locale = timePickerView.getResources().getConfiguration().locale; + String format = String.format(locale, "%02d", Integer.valueOf(i2)); + String format2 = String.format(locale, "%02d", Integer.valueOf(b2)); + timePickerView.j.setText(format); + timePickerView.k.setText(format2); + } + + public final void g(String[] strArr, String str) { + for (int i = 0; i < strArr.length; i++) { + strArr[i] = TimeModel.a(this.m.getResources(), strArr[i], str); + } + } + + @Override // com.google.android.material.timepicker.ClockHandView.OnActionUpListener + public void onActionUp(float f, boolean z2) { + this.q = true; + TimeModel timeModel = this.n; + int i = timeModel.n; + int i2 = timeModel.m; + if (timeModel.o == 10) { + TimePickerView timePickerView = this.m; + timePickerView.l.b(this.p, false); + if (!((AccessibilityManager) ContextCompat.getSystemService(this.m.getContext(), AccessibilityManager.class)).isTouchExplorationEnabled()) { + e(12, true); + } + } else { + int round = Math.round(f); + if (!z2) { + TimeModel timeModel2 = this.n; + Objects.requireNonNull(timeModel2); + timeModel2.n = (((round + 15) / 30) * 5) % 60; + this.o = (float) (this.n.n * 6); + } + TimePickerView timePickerView2 = this.m; + timePickerView2.l.b(this.o, z2); + } + this.q = false; + f(); + TimeModel timeModel3 = this.n; + if (timeModel3.n != i || timeModel3.m != i2) { + this.m.performHapticFeedback(4); + } + } + + @Override // com.google.android.material.timepicker.ClockHandView.OnRotateListener + public void onRotate(float f, boolean z2) { + if (!this.q) { + TimeModel timeModel = this.n; + int i = timeModel.m; + int i2 = timeModel.n; + int round = Math.round(f); + TimeModel timeModel2 = this.n; + if (timeModel2.o == 12) { + int i3 = ((round + 3) / 6) % 60; + timeModel2.n = i3; + this.o = (float) Math.floor((double) (i3 * 6)); + } else { + this.n.c((round + (d() / 2)) / d()); + this.p = (float) (d() * this.n.b()); + } + if (!z2) { + f(); + TimeModel timeModel3 = this.n; + if (timeModel3.n != i2 || timeModel3.m != i) { + this.m.performHapticFeedback(4); + } + } + } + } + + @Override // b.i.a.g.k.g + public void show() { + this.m.setVisibility(0); + } +} diff --git a/app/src/main/java/b/i/a/g/k/g.java b/app/src/main/java/b/i/a/g/k/g.java new file mode 100644 index 0000000000..a0302abd4a --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/g.java @@ -0,0 +1,9 @@ +package b.i.a.g.k; +/* compiled from: TimePickerPresenter */ +public interface g { + void a(); + + void c(); + + void show(); +} diff --git a/app/src/main/java/b/i/a/g/k/h.java b/app/src/main/java/b/i/a/g/k/h.java new file mode 100644 index 0000000000..e2a144333b --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/h.java @@ -0,0 +1,72 @@ +package b.i.a.g.k; + +import android.text.Editable; +import android.text.TextUtils; +import android.view.KeyEvent; +import android.view.View; +import android.widget.EditText; +import android.widget.TextView; +import com.google.android.material.timepicker.ChipTextInputComboView; +import com.google.android.material.timepicker.TimeModel; +/* compiled from: TimePickerTextInputKeyController */ +public class h implements TextView.OnEditorActionListener, View.OnKeyListener { + public final ChipTextInputComboView j; + public final ChipTextInputComboView k; + public final TimeModel l; + public boolean m = false; + + public h(ChipTextInputComboView chipTextInputComboView, ChipTextInputComboView chipTextInputComboView2, TimeModel timeModel) { + this.j = chipTextInputComboView; + this.k = chipTextInputComboView2; + this.l = timeModel; + } + + public final void a(int i) { + boolean z2 = true; + this.k.setChecked(i == 12); + ChipTextInputComboView chipTextInputComboView = this.j; + if (i != 10) { + z2 = false; + } + chipTextInputComboView.setChecked(z2); + this.l.o = i; + } + + @Override // android.widget.TextView.OnEditorActionListener + public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) { + boolean z2 = i == 5; + if (z2) { + a(12); + } + return z2; + } + + @Override // android.view.View.OnKeyListener + public boolean onKey(View view, int i, KeyEvent keyEvent) { + if (this.m) { + return false; + } + boolean z2 = true; + this.m = true; + EditText editText = (EditText) view; + if (this.l.o == 12) { + if (i == 67 && keyEvent.getAction() == 0 && TextUtils.isEmpty(editText.getText())) { + a(10); + this.m = false; + return z2; + } + } else { + Editable text = editText.getText(); + if (text != null) { + if (i >= 7 && i <= 16 && keyEvent.getAction() == 1 && editText.getSelectionStart() == 2 && text.length() == 2) { + a(12); + this.m = false; + return z2; + } + } + } + z2 = false; + this.m = false; + return z2; + } +} diff --git a/app/src/main/java/b/i/a/g/k/i.java b/app/src/main/java/b/i/a/g/k/i.java new file mode 100644 index 0000000000..eccdcd9830 --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/i.java @@ -0,0 +1,198 @@ +package b.i.a.g.k; + +import android.content.res.Resources; +import android.text.Editable; +import android.text.TextUtils; +import android.text.TextWatcher; +import android.view.View; +import android.view.inputmethod.InputMethodManager; +import android.widget.EditText; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.core.content.ContextCompat; +import androidx.core.view.ViewCompat; +import com.google.android.material.R; +import com.google.android.material.button.MaterialButtonToggleGroup; +import com.google.android.material.internal.TextWatcherAdapter; +import com.google.android.material.textfield.TextInputLayout; +import com.google.android.material.timepicker.ChipTextInputComboView; +import com.google.android.material.timepicker.TimeModel; +import com.google.android.material.timepicker.TimePickerView; +import java.util.Locale; +import java.util.Objects; +/* compiled from: TimePickerTextInputPresenter */ +public class i implements TimePickerView.d, g { + public final LinearLayout j; + public final TimeModel k; + public final TextWatcher l; + public final TextWatcher m; + public final ChipTextInputComboView n; + public final ChipTextInputComboView o; + public final h p; + public final EditText q; + public final EditText r; + + /* renamed from: s reason: collision with root package name */ + public MaterialButtonToggleGroup f1615s; + + /* compiled from: TimePickerTextInputPresenter */ + public class a extends TextWatcherAdapter { + public a() { + } + + @Override // com.google.android.material.internal.TextWatcherAdapter, android.text.TextWatcher + public void afterTextChanged(Editable editable) { + try { + if (TextUtils.isEmpty(editable)) { + TimeModel timeModel = i.this.k; + Objects.requireNonNull(timeModel); + timeModel.n = 0; + return; + } + int parseInt = Integer.parseInt(editable.toString()); + TimeModel timeModel2 = i.this.k; + Objects.requireNonNull(timeModel2); + timeModel2.n = parseInt % 60; + } catch (NumberFormatException unused) { + } + } + } + + /* compiled from: TimePickerTextInputPresenter */ + public class b extends TextWatcherAdapter { + public b() { + } + + @Override // com.google.android.material.internal.TextWatcherAdapter, android.text.TextWatcher + public void afterTextChanged(Editable editable) { + try { + if (TextUtils.isEmpty(editable)) { + i.this.k.c(0); + return; + } + i.this.k.c(Integer.parseInt(editable.toString())); + } catch (NumberFormatException unused) { + } + } + } + + /* compiled from: TimePickerTextInputPresenter */ + public class c implements View.OnClickListener { + public c() { + } + + @Override // android.view.View.OnClickListener + public void onClick(View view) { + i.this.b(((Integer) view.getTag(R.id.selection_type)).intValue()); + } + } + + public i(LinearLayout linearLayout, TimeModel timeModel) { + a aVar = new a(); + this.l = aVar; + b bVar = new b(); + this.m = bVar; + this.j = linearLayout; + this.k = timeModel; + Resources resources = linearLayout.getResources(); + ChipTextInputComboView chipTextInputComboView = (ChipTextInputComboView) linearLayout.findViewById(R.id.material_minute_text_input); + this.n = chipTextInputComboView; + ChipTextInputComboView chipTextInputComboView2 = (ChipTextInputComboView) linearLayout.findViewById(R.id.material_hour_text_input); + this.o = chipTextInputComboView2; + int i = R.id.material_label; + ((TextView) chipTextInputComboView.findViewById(i)).setText(resources.getString(R.string.material_timepicker_minute)); + ((TextView) chipTextInputComboView2.findViewById(i)).setText(resources.getString(R.string.material_timepicker_hour)); + int i2 = R.id.selection_type; + chipTextInputComboView.setTag(i2, 12); + chipTextInputComboView2.setTag(i2, 10); + if (timeModel.l == 0) { + MaterialButtonToggleGroup materialButtonToggleGroup = (MaterialButtonToggleGroup) linearLayout.findViewById(R.id.material_clock_period_toggle); + this.f1615s = materialButtonToggleGroup; + materialButtonToggleGroup.addOnButtonCheckedListener(new j(this)); + this.f1615s.setVisibility(0); + e(); + } + c cVar = new c(); + chipTextInputComboView2.setOnClickListener(cVar); + chipTextInputComboView.setOnClickListener(cVar); + chipTextInputComboView2.a(timeModel.k); + chipTextInputComboView.a(timeModel.j); + EditText editText = chipTextInputComboView2.k.getEditText(); + this.q = editText; + EditText editText2 = chipTextInputComboView.k.getEditText(); + this.r = editText2; + h hVar = new h(chipTextInputComboView2, chipTextInputComboView, timeModel); + this.p = hVar; + ViewCompat.setAccessibilityDelegate(chipTextInputComboView2.j, new a(linearLayout.getContext(), R.string.material_hour_selection)); + ViewCompat.setAccessibilityDelegate(chipTextInputComboView.j, new a(linearLayout.getContext(), R.string.material_minute_selection)); + editText.addTextChangedListener(bVar); + editText2.addTextChangedListener(aVar); + d(timeModel); + TextInputLayout textInputLayout = chipTextInputComboView2.k; + TextInputLayout textInputLayout2 = chipTextInputComboView.k; + EditText editText3 = textInputLayout.getEditText(); + EditText editText4 = textInputLayout2.getEditText(); + editText3.setImeOptions(268435461); + editText4.setImeOptions(268435462); + editText3.setOnEditorActionListener(hVar); + editText3.setOnKeyListener(hVar); + editText4.setOnKeyListener(hVar); + } + + @Override // b.i.a.g.k.g + public void a() { + d(this.k); + } + + @Override // com.google.android.material.timepicker.TimePickerView.d + public void b(int i) { + this.k.o = i; + boolean z2 = true; + this.n.setChecked(i == 12); + ChipTextInputComboView chipTextInputComboView = this.o; + if (i != 10) { + z2 = false; + } + chipTextInputComboView.setChecked(z2); + e(); + } + + @Override // b.i.a.g.k.g + public void c() { + View focusedChild = this.j.getFocusedChild(); + if (focusedChild == null) { + this.j.setVisibility(8); + return; + } + InputMethodManager inputMethodManager = (InputMethodManager) ContextCompat.getSystemService(this.j.getContext(), InputMethodManager.class); + if (inputMethodManager != null) { + inputMethodManager.hideSoftInputFromWindow(focusedChild.getWindowToken(), 0); + } + this.j.setVisibility(8); + } + + public final void d(TimeModel timeModel) { + this.q.removeTextChangedListener(this.m); + this.r.removeTextChangedListener(this.l); + Locale locale = this.j.getResources().getConfiguration().locale; + String format = String.format(locale, "%02d", Integer.valueOf(timeModel.n)); + String format2 = String.format(locale, "%02d", Integer.valueOf(timeModel.b())); + this.n.b(format); + this.o.b(format2); + this.q.addTextChangedListener(this.m); + this.r.addTextChangedListener(this.l); + e(); + } + + public final void e() { + MaterialButtonToggleGroup materialButtonToggleGroup = this.f1615s; + if (materialButtonToggleGroup != null) { + materialButtonToggleGroup.check(this.k.p == 0 ? R.id.material_clock_period_am_button : R.id.material_clock_period_pm_button); + } + } + + @Override // b.i.a.g.k.g + public void show() { + this.j.setVisibility(0); + } +} diff --git a/app/src/main/java/b/i/a/g/k/j.java b/app/src/main/java/b/i/a/g/k/j.java new file mode 100644 index 0000000000..b95b7db7ec --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/j.java @@ -0,0 +1,17 @@ +package b.i.a.g.k; + +import com.google.android.material.R; +import com.google.android.material.button.MaterialButtonToggleGroup; +/* compiled from: TimePickerTextInputPresenter */ +public class j implements MaterialButtonToggleGroup.OnButtonCheckedListener { + public final /* synthetic */ i a; + + public j(i iVar) { + this.a = iVar; + } + + @Override // com.google.android.material.button.MaterialButtonToggleGroup.OnButtonCheckedListener + public void onButtonChecked(MaterialButtonToggleGroup materialButtonToggleGroup, int i, boolean z2) { + this.a.k.d(i == R.id.material_clock_period_pm_button ? 1 : 0); + } +} diff --git a/app/src/main/java/b/i/a/g/k/k.java b/app/src/main/java/b/i/a/g/k/k.java new file mode 100644 index 0000000000..4562db890a --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/k.java @@ -0,0 +1,22 @@ +package b.i.a.g.k; + +import com.google.android.material.R; +import com.google.android.material.button.MaterialButtonToggleGroup; +import com.google.android.material.timepicker.TimePickerView; +/* compiled from: TimePickerView */ +public class k implements MaterialButtonToggleGroup.OnButtonCheckedListener { + public final /* synthetic */ TimePickerView a; + + public k(TimePickerView timePickerView) { + this.a = timePickerView; + } + + @Override // com.google.android.material.button.MaterialButtonToggleGroup.OnButtonCheckedListener + public void onButtonChecked(MaterialButtonToggleGroup materialButtonToggleGroup, int i, boolean z2) { + int i2 = i == R.id.material_clock_period_pm_button ? 1 : 0; + TimePickerView.c cVar = this.a.p; + if (cVar != null && z2) { + ((f) cVar).n.d(i2); + } + } +} diff --git a/app/src/main/java/b/i/a/g/k/l.java b/app/src/main/java/b/i/a/g/k/l.java new file mode 100644 index 0000000000..c751813c31 --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/l.java @@ -0,0 +1,36 @@ +package b.i.a.g.k; + +import android.view.GestureDetector; +import android.view.MotionEvent; +import com.google.android.material.timepicker.ChipTextInputComboView; +import com.google.android.material.timepicker.MaterialTimePicker; +import com.google.android.material.timepicker.TimePickerView; +/* compiled from: TimePickerView */ +public class l extends GestureDetector.SimpleOnGestureListener { + public final /* synthetic */ TimePickerView j; + + public l(TimePickerView timePickerView) { + this.j = timePickerView; + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnDoubleTapListener + public boolean onDoubleTap(MotionEvent motionEvent) { + boolean onDoubleTap = super.onDoubleTap(motionEvent); + TimePickerView.b bVar = this.j.r; + if (bVar != null) { + MaterialTimePicker.a aVar = (MaterialTimePicker.a) bVar; + boolean z2 = true; + MaterialTimePicker.access$402(MaterialTimePicker.this, 1); + MaterialTimePicker materialTimePicker = MaterialTimePicker.this; + MaterialTimePicker.access$600(materialTimePicker, MaterialTimePicker.access$500(materialTimePicker)); + i access$700 = MaterialTimePicker.access$700(MaterialTimePicker.this); + access$700.n.setChecked(access$700.k.o == 12); + ChipTextInputComboView chipTextInputComboView = access$700.o; + if (access$700.k.o != 10) { + z2 = false; + } + chipTextInputComboView.setChecked(z2); + } + return onDoubleTap; + } +} diff --git a/app/src/main/java/b/i/a/g/k/m.java b/app/src/main/java/b/i/a/g/k/m.java new file mode 100644 index 0000000000..3116fad366 --- /dev/null +++ b/app/src/main/java/b/i/a/g/k/m.java @@ -0,0 +1,23 @@ +package b.i.a.g.k; + +import android.view.GestureDetector; +import android.view.MotionEvent; +import android.view.View; +import android.widget.Checkable; +import com.google.android.material.timepicker.TimePickerView; +/* compiled from: TimePickerView */ +public class m implements View.OnTouchListener { + public final /* synthetic */ GestureDetector j; + + public m(TimePickerView timePickerView, GestureDetector gestureDetector) { + this.j = gestureDetector; + } + + @Override // android.view.View.OnTouchListener + public boolean onTouch(View view, MotionEvent motionEvent) { + if (((Checkable) view).isChecked()) { + return this.j.onTouchEvent(motionEvent); + } + return false; + } +} diff --git a/app/src/main/java/b/i/a/g/l/a.java b/app/src/main/java/b/i/a/g/l/a.java new file mode 100644 index 0000000000..92711741d3 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/a.java @@ -0,0 +1,5 @@ +package b.i.a.g.l; +/* compiled from: FadeModeEvaluator */ +public interface a { + c a(float f, float f2, float f3); +} diff --git a/app/src/main/java/b/i/a/g/l/b.java b/app/src/main/java/b/i/a/g/l/b.java new file mode 100644 index 0000000000..f0b6b0b1ad --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/b.java @@ -0,0 +1,44 @@ +package b.i.a.g.l; +/* compiled from: FadeModeEvaluators */ +public class b { + public static final a a = new a(); + + /* renamed from: b reason: collision with root package name */ + public static final a f1616b = new C0121b(); + public static final a c = new c(); + public static final a d = new d(); + + /* compiled from: FadeModeEvaluators */ + public static class a implements a { + @Override // b.i.a.g.l.a + public c a(float f, float f2, float f3) { + return new c(255, k.g(0, 255, f2, f3, f), true); + } + } + + /* compiled from: FadeModeEvaluators */ + /* renamed from: b.i.a.g.l.b$b reason: collision with other inner class name */ + public static class C0121b implements a { + @Override // b.i.a.g.l.a + public c a(float f, float f2, float f3) { + return c.a(k.g(255, 0, f2, f3, f), 255); + } + } + + /* compiled from: FadeModeEvaluators */ + public static class c implements a { + @Override // b.i.a.g.l.a + public c a(float f, float f2, float f3) { + return c.a(k.g(255, 0, f2, f3, f), k.g(0, 255, f2, f3, f)); + } + } + + /* compiled from: FadeModeEvaluators */ + public static class d implements a { + @Override // b.i.a.g.l.a + public c a(float f, float f2, float f3) { + float a = b.d.b.a.a.a(f3, f2, 0.35f, f2); + return c.a(k.g(255, 0, f2, a, f), k.g(0, 255, a, f3, f)); + } + } +} diff --git a/app/src/main/java/b/i/a/g/l/c.java b/app/src/main/java/b/i/a/g/l/c.java new file mode 100644 index 0000000000..3eb6cfae51 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/c.java @@ -0,0 +1,19 @@ +package b.i.a.g.l; +/* compiled from: FadeModeResult */ +public class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1617b; + public final boolean c; + + public c(int i, int i2, boolean z2) { + this.a = i; + this.f1617b = i2; + this.c = z2; + } + + public static c a(int i, int i2) { + return new c(i, i2, false); + } +} diff --git a/app/src/main/java/b/i/a/g/l/d.java b/app/src/main/java/b/i/a/g/l/d.java new file mode 100644 index 0000000000..ee63a4b2e3 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/d.java @@ -0,0 +1,11 @@ +package b.i.a.g.l; + +import android.graphics.RectF; +/* compiled from: FitModeEvaluator */ +public interface d { + f a(float f, float f2, float f3, float f4, float f5, float f6, float f7); + + boolean b(f fVar); + + void c(RectF rectF, float f, f fVar); +} diff --git a/app/src/main/java/b/i/a/g/l/e.java b/app/src/main/java/b/i/a/g/l/e.java new file mode 100644 index 0000000000..21d7117c53 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/e.java @@ -0,0 +1,54 @@ +package b.i.a.g.l; + +import android.graphics.RectF; +/* compiled from: FitModeEvaluators */ +public class e { + public static final d a = new a(); + + /* renamed from: b reason: collision with root package name */ + public static final d f1618b = new b(); + + /* compiled from: FitModeEvaluators */ + public static class a implements d { + @Override // b.i.a.g.l.d + public f a(float f, float f2, float f3, float f4, float f5, float f6, float f7) { + float f8 = k.f(f4, f6, f2, f3, f, true); + float f9 = f8 / f4; + float f10 = f8 / f6; + return new f(f9, f10, f8, f5 * f9, f8, f7 * f10); + } + + @Override // b.i.a.g.l.d + public boolean b(f fVar) { + return fVar.d > fVar.f; + } + + @Override // b.i.a.g.l.d + public void c(RectF rectF, float f, f fVar) { + rectF.bottom -= Math.abs(fVar.f - fVar.d) * f; + } + } + + /* compiled from: FitModeEvaluators */ + public static class b implements d { + @Override // b.i.a.g.l.d + public f a(float f, float f2, float f3, float f4, float f5, float f6, float f7) { + float f8 = k.f(f5, f7, f2, f3, f, true); + float f9 = f8 / f5; + float f10 = f8 / f7; + return new f(f9, f10, f4 * f9, f8, f6 * f10, f8); + } + + @Override // b.i.a.g.l.d + public boolean b(f fVar) { + return fVar.c > fVar.e; + } + + @Override // b.i.a.g.l.d + public void c(RectF rectF, float f, f fVar) { + float abs = (Math.abs(fVar.e - fVar.c) / 2.0f) * f; + rectF.left += abs; + rectF.right -= abs; + } + } +} diff --git a/app/src/main/java/b/i/a/g/l/f.java b/app/src/main/java/b/i/a/g/l/f.java new file mode 100644 index 0000000000..bce7083f2d --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/f.java @@ -0,0 +1,21 @@ +package b.i.a.g.l; +/* compiled from: FitModeResult */ +public class f { + public final float a; + + /* renamed from: b reason: collision with root package name */ + public final float f1619b; + public final float c; + public final float d; + public final float e; + public final float f; + + public f(float f, float f2, float f3, float f4, float f5, float f6) { + this.a = f; + this.f1619b = f2; + this.c = f3; + this.d = f4; + this.e = f5; + this.f = f6; + } +} diff --git a/app/src/main/java/b/i/a/g/l/g.java b/app/src/main/java/b/i/a/g/l/g.java new file mode 100644 index 0000000000..ec7847bffc --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/g.java @@ -0,0 +1,15 @@ +package b.i.a.g.l; + +import android.graphics.Path; +import com.google.android.material.shape.ShapeAppearanceModel; +import com.google.android.material.shape.ShapeAppearancePathProvider; +/* compiled from: MaskEvaluator */ +public class g { + public final Path a = new Path(); + + /* renamed from: b reason: collision with root package name */ + public final Path f1620b = new Path(); + public final Path c = new Path(); + public final ShapeAppearancePathProvider d = ShapeAppearancePathProvider.getInstance(); + public ShapeAppearanceModel e; +} diff --git a/app/src/main/java/b/i/a/g/l/h.java b/app/src/main/java/b/i/a/g/l/h.java new file mode 100644 index 0000000000..86da59291a --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/h.java @@ -0,0 +1,85 @@ +package b.i.a.g.l; + +import android.animation.Animator; +import android.animation.AnimatorSet; +import android.view.View; +import android.view.ViewGroup; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.transition.TransitionValues; +import androidx.transition.Visibility; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.animation.AnimatorSetCompat; +import com.google.android.material.transition.VisibilityAnimatorProvider; +import java.util.ArrayList; +import java.util.List; +/* compiled from: MaterialVisibility */ +public abstract class h

extends Visibility { + private final List additionalAnimatorProviders = new ArrayList(); + private final P primaryAnimatorProvider; + @Nullable + private VisibilityAnimatorProvider secondaryAnimatorProvider; + + public h(P p, @Nullable VisibilityAnimatorProvider visibilityAnimatorProvider) { + this.primaryAnimatorProvider = p; + this.secondaryAnimatorProvider = visibilityAnimatorProvider; + setInterpolator(AnimationUtils.FAST_OUT_SLOW_IN_INTERPOLATOR); + } + + private static void addAnimatorIfNeeded(List list, @Nullable VisibilityAnimatorProvider visibilityAnimatorProvider, ViewGroup viewGroup, View view, boolean z2) { + if (visibilityAnimatorProvider != null) { + Animator createAppear = z2 ? visibilityAnimatorProvider.createAppear(viewGroup, view) : visibilityAnimatorProvider.createDisappear(viewGroup, view); + if (createAppear != null) { + list.add(createAppear); + } + } + } + + private Animator createAnimator(ViewGroup viewGroup, View view, boolean z2) { + AnimatorSet animatorSet = new AnimatorSet(); + ArrayList arrayList = new ArrayList(); + addAnimatorIfNeeded(arrayList, this.primaryAnimatorProvider, viewGroup, view, z2); + addAnimatorIfNeeded(arrayList, this.secondaryAnimatorProvider, viewGroup, view, z2); + for (VisibilityAnimatorProvider visibilityAnimatorProvider : this.additionalAnimatorProviders) { + addAnimatorIfNeeded(arrayList, visibilityAnimatorProvider, viewGroup, view, z2); + } + AnimatorSetCompat.playTogether(animatorSet, arrayList); + return animatorSet; + } + + public void addAdditionalAnimatorProvider(@NonNull VisibilityAnimatorProvider visibilityAnimatorProvider) { + this.additionalAnimatorProviders.add(visibilityAnimatorProvider); + } + + public void clearAdditionalAnimatorProvider() { + this.additionalAnimatorProviders.clear(); + } + + @NonNull + public P getPrimaryAnimatorProvider() { + return this.primaryAnimatorProvider; + } + + @Nullable + public VisibilityAnimatorProvider getSecondaryAnimatorProvider() { + return this.secondaryAnimatorProvider; + } + + @Override // androidx.transition.Visibility + public Animator onAppear(ViewGroup viewGroup, View view, TransitionValues transitionValues, TransitionValues transitionValues2) { + return createAnimator(viewGroup, view, true); + } + + @Override // androidx.transition.Visibility + public Animator onDisappear(ViewGroup viewGroup, View view, TransitionValues transitionValues, TransitionValues transitionValues2) { + return createAnimator(viewGroup, view, false); + } + + public boolean removeAdditionalAnimatorProvider(@NonNull VisibilityAnimatorProvider visibilityAnimatorProvider) { + return this.additionalAnimatorProviders.remove(visibilityAnimatorProvider); + } + + public void setSecondaryAnimatorProvider(@Nullable VisibilityAnimatorProvider visibilityAnimatorProvider) { + this.secondaryAnimatorProvider = visibilityAnimatorProvider; + } +} diff --git a/app/src/main/java/b/i/a/g/l/i.java b/app/src/main/java/b/i/a/g/l/i.java new file mode 100644 index 0000000000..e5625922e9 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/i.java @@ -0,0 +1,17 @@ +package b.i.a.g.l; + +import androidx.transition.Transition; +/* compiled from: TransitionListenerAdapter */ +public abstract class i implements Transition.TransitionListener { + @Override // androidx.transition.Transition.TransitionListener + public void onTransitionCancel(Transition transition) { + } + + @Override // androidx.transition.Transition.TransitionListener + public void onTransitionPause(Transition transition) { + } + + @Override // androidx.transition.Transition.TransitionListener + public void onTransitionResume(Transition transition) { + } +} diff --git a/app/src/main/java/b/i/a/g/l/j.java b/app/src/main/java/b/i/a/g/l/j.java new file mode 100644 index 0000000000..bd5d661029 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/j.java @@ -0,0 +1,21 @@ +package b.i.a.g.l; + +import android.graphics.RectF; +import androidx.annotation.NonNull; +import com.google.android.material.shape.CornerSize; +import com.google.android.material.shape.RelativeCornerSize; +import com.google.android.material.shape.ShapeAppearanceModel; +/* compiled from: TransitionUtils */ +public final class j implements ShapeAppearanceModel.CornerSizeUnaryOperator { + public final /* synthetic */ RectF a; + + public j(RectF rectF) { + this.a = rectF; + } + + @Override // com.google.android.material.shape.ShapeAppearanceModel.CornerSizeUnaryOperator + @NonNull + public CornerSize apply(@NonNull CornerSize cornerSize) { + return cornerSize instanceof RelativeCornerSize ? cornerSize : new RelativeCornerSize(cornerSize.getCornerSize(this.a) / this.a.height()); + } +} diff --git a/app/src/main/java/b/i/a/g/l/k.java b/app/src/main/java/b/i/a/g/l/k.java new file mode 100644 index 0000000000..560907989d --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/k.java @@ -0,0 +1,80 @@ +package b.i.a.g.l; + +import android.graphics.Canvas; +import android.graphics.Rect; +import android.graphics.RectF; +import android.view.View; +import android.view.ViewParent; +import androidx.annotation.FloatRange; +import androidx.annotation.IdRes; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +/* compiled from: TransitionUtils */ +public class k { + public static final RectF a = new RectF(); + + /* compiled from: TransitionUtils */ + public interface a { + void a(Canvas canvas); + } + + @NonNull + public static T a(@Nullable T t, @NonNull T t2) { + return t != null ? t : t2; + } + + public static View b(View view, @IdRes int i) { + String resourceName = view.getResources().getResourceName(i); + while (view != null) { + if (view.getId() != i) { + ViewParent parent = view.getParent(); + if (!(parent instanceof View)) { + break; + } + view = (View) parent; + } else { + return view; + } + } + throw new IllegalArgumentException(b.d.b.a.a.v(resourceName, " is not a valid ancestor")); + } + + public static RectF c(View view) { + int[] iArr = new int[2]; + view.getLocationOnScreen(iArr); + int i = iArr[0]; + int i2 = iArr[1]; + return new RectF((float) i, (float) i2, (float) (view.getWidth() + i), (float) (view.getHeight() + i2)); + } + + public static float d(float f, float f2, float f3) { + return b.d.b.a.a.a(f2, f, f3, f); + } + + public static float e(float f, float f2, @FloatRange(from = 0.0d, to = 1.0d) float f3, @FloatRange(from = 0.0d, to = 1.0d) float f4, @FloatRange(from = 0.0d, to = 1.0d) float f5) { + return f(f, f2, f3, f4, f5, false); + } + + public static float f(float f, float f2, @FloatRange(from = 0.0d, to = 1.0d) float f3, @FloatRange(from = 0.0d, to = 1.0d) float f4, @FloatRange(from = 0.0d) float f5, boolean z2) { + return (!z2 || (f5 >= 0.0f && f5 <= 1.0f)) ? f5 < f3 ? f : f5 > f4 ? f2 : d(f, f2, (f5 - f3) / (f4 - f3)) : d(f, f2, f5); + } + + public static int g(int i, int i2, @FloatRange(from = 0.0d, to = 1.0d) float f, @FloatRange(from = 0.0d, to = 1.0d) float f2, @FloatRange(from = 0.0d, to = 1.0d) float f3) { + return f3 < f ? i : f3 > f2 ? i2 : (int) d((float) i, (float) i2, (f3 - f) / (f2 - f)); + } + + public static void h(Canvas canvas, Rect rect, float f, float f2, float f3, int i, a aVar) { + if (i > 0) { + int save = canvas.save(); + canvas.translate(f, f2); + canvas.scale(f3, f3); + if (i < 255) { + RectF rectF = a; + rectF.set(rect); + canvas.saveLayerAlpha(rectF, i); + } + aVar.a(canvas); + canvas.restoreToCount(save); + } + } +} diff --git a/app/src/main/java/b/i/a/g/l/l/a.java b/app/src/main/java/b/i/a/g/l/l/a.java new file mode 100644 index 0000000000..85a4d26fe8 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/a.java @@ -0,0 +1,8 @@ +package b.i.a.g.l.l; + +import androidx.annotation.RequiresApi; +/* compiled from: FadeModeEvaluator */ +@RequiresApi(21) +public interface a { + c a(float f, float f2, float f3); +} diff --git a/app/src/main/java/b/i/a/g/l/l/b.java b/app/src/main/java/b/i/a/g/l/l/b.java new file mode 100644 index 0000000000..7c324199b5 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/b.java @@ -0,0 +1,47 @@ +package b.i.a.g.l.l; + +import androidx.annotation.RequiresApi; +/* compiled from: FadeModeEvaluators */ +@RequiresApi(21) +public class b { + public static final a a = new a(); + + /* renamed from: b reason: collision with root package name */ + public static final a f1621b = new C0122b(); + public static final a c = new c(); + public static final a d = new d(); + + /* compiled from: FadeModeEvaluators */ + public static class a implements a { + @Override // b.i.a.g.l.l.a + public c a(float f, float f2, float f3) { + return new c(255, k.g(0, 255, f2, f3, f), true); + } + } + + /* compiled from: FadeModeEvaluators */ + /* renamed from: b.i.a.g.l.l.b$b reason: collision with other inner class name */ + public static class C0122b implements a { + @Override // b.i.a.g.l.l.a + public c a(float f, float f2, float f3) { + return c.a(k.g(255, 0, f2, f3, f), 255); + } + } + + /* compiled from: FadeModeEvaluators */ + public static class c implements a { + @Override // b.i.a.g.l.l.a + public c a(float f, float f2, float f3) { + return c.a(k.g(255, 0, f2, f3, f), k.g(0, 255, f2, f3, f)); + } + } + + /* compiled from: FadeModeEvaluators */ + public static class d implements a { + @Override // b.i.a.g.l.l.a + public c a(float f, float f2, float f3) { + float a = b.d.b.a.a.a(f3, f2, 0.35f, f2); + return c.a(k.g(255, 0, f2, a, f), k.g(0, 255, a, f3, f)); + } + } +} diff --git a/app/src/main/java/b/i/a/g/l/l/c.java b/app/src/main/java/b/i/a/g/l/l/c.java new file mode 100644 index 0000000000..5cd4ade452 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/c.java @@ -0,0 +1,22 @@ +package b.i.a.g.l.l; + +import androidx.annotation.RequiresApi; +/* compiled from: FadeModeResult */ +@RequiresApi(21) +public class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1622b; + public final boolean c; + + public c(int i, int i2, boolean z2) { + this.a = i; + this.f1622b = i2; + this.c = z2; + } + + public static c a(int i, int i2) { + return new c(i, i2, false); + } +} diff --git a/app/src/main/java/b/i/a/g/l/l/d.java b/app/src/main/java/b/i/a/g/l/l/d.java new file mode 100644 index 0000000000..db8ca53d44 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/d.java @@ -0,0 +1,13 @@ +package b.i.a.g.l.l; + +import android.graphics.RectF; +import androidx.annotation.RequiresApi; +/* compiled from: FitModeEvaluator */ +@RequiresApi(21) +public interface d { + f a(float f, float f2, float f3, float f4, float f5, float f6, float f7); + + boolean b(f fVar); + + void c(RectF rectF, float f, f fVar); +} diff --git a/app/src/main/java/b/i/a/g/l/l/e.java b/app/src/main/java/b/i/a/g/l/l/e.java new file mode 100644 index 0000000000..88f8febb07 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/e.java @@ -0,0 +1,56 @@ +package b.i.a.g.l.l; + +import android.graphics.RectF; +import androidx.annotation.RequiresApi; +/* compiled from: FitModeEvaluators */ +@RequiresApi(21) +public class e { + public static final d a = new a(); + + /* renamed from: b reason: collision with root package name */ + public static final d f1623b = new b(); + + /* compiled from: FitModeEvaluators */ + public static class a implements d { + @Override // b.i.a.g.l.l.d + public f a(float f, float f2, float f3, float f4, float f5, float f6, float f7) { + float f8 = k.f(f4, f6, f2, f3, f, true); + float f9 = f8 / f4; + float f10 = f8 / f6; + return new f(f9, f10, f8, f5 * f9, f8, f7 * f10); + } + + @Override // b.i.a.g.l.l.d + public boolean b(f fVar) { + return fVar.d > fVar.f; + } + + @Override // b.i.a.g.l.l.d + public void c(RectF rectF, float f, f fVar) { + rectF.bottom -= Math.abs(fVar.f - fVar.d) * f; + } + } + + /* compiled from: FitModeEvaluators */ + public static class b implements d { + @Override // b.i.a.g.l.l.d + public f a(float f, float f2, float f3, float f4, float f5, float f6, float f7) { + float f8 = k.f(f5, f7, f2, f3, f, true); + float f9 = f8 / f5; + float f10 = f8 / f7; + return new f(f9, f10, f4 * f9, f8, f6 * f10, f8); + } + + @Override // b.i.a.g.l.l.d + public boolean b(f fVar) { + return fVar.c > fVar.e; + } + + @Override // b.i.a.g.l.l.d + public void c(RectF rectF, float f, f fVar) { + float abs = (Math.abs(fVar.e - fVar.c) / 2.0f) * f; + rectF.left += abs; + rectF.right -= abs; + } + } +} diff --git a/app/src/main/java/b/i/a/g/l/l/f.java b/app/src/main/java/b/i/a/g/l/l/f.java new file mode 100644 index 0000000000..2a12ac8cf5 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/f.java @@ -0,0 +1,24 @@ +package b.i.a.g.l.l; + +import androidx.annotation.RequiresApi; +/* compiled from: FitModeResult */ +@RequiresApi(21) +public class f { + public final float a; + + /* renamed from: b reason: collision with root package name */ + public final float f1624b; + public final float c; + public final float d; + public final float e; + public final float f; + + public f(float f, float f2, float f3, float f4, float f5, float f6) { + this.a = f; + this.f1624b = f2; + this.c = f3; + this.d = f4; + this.e = f5; + this.f = f6; + } +} diff --git a/app/src/main/java/b/i/a/g/l/l/g.java b/app/src/main/java/b/i/a/g/l/l/g.java new file mode 100644 index 0000000000..c7a122768d --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/g.java @@ -0,0 +1,17 @@ +package b.i.a.g.l.l; + +import android.graphics.Path; +import androidx.annotation.RequiresApi; +import com.google.android.material.shape.ShapeAppearanceModel; +import com.google.android.material.shape.ShapeAppearancePathProvider; +/* compiled from: MaskEvaluator */ +@RequiresApi(21) +public class g { + public final Path a = new Path(); + + /* renamed from: b reason: collision with root package name */ + public final Path f1625b = new Path(); + public final Path c = new Path(); + public final ShapeAppearancePathProvider d = ShapeAppearancePathProvider.getInstance(); + public ShapeAppearanceModel e; +} diff --git a/app/src/main/java/b/i/a/g/l/l/h.java b/app/src/main/java/b/i/a/g/l/l/h.java new file mode 100644 index 0000000000..d426b74db4 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/h.java @@ -0,0 +1,87 @@ +package b.i.a.g.l.l; + +import android.animation.Animator; +import android.animation.AnimatorSet; +import android.transition.TransitionValues; +import android.transition.Visibility; +import android.view.View; +import android.view.ViewGroup; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import com.google.android.material.animation.AnimationUtils; +import com.google.android.material.animation.AnimatorSetCompat; +import com.google.android.material.transition.platform.VisibilityAnimatorProvider; +import java.util.ArrayList; +import java.util.List; +/* compiled from: MaterialVisibility */ +@RequiresApi(21) +public abstract class h

extends Visibility { + private final List additionalAnimatorProviders = new ArrayList(); + private final P primaryAnimatorProvider; + @Nullable + private VisibilityAnimatorProvider secondaryAnimatorProvider; + + public h(P p, @Nullable VisibilityAnimatorProvider visibilityAnimatorProvider) { + this.primaryAnimatorProvider = p; + this.secondaryAnimatorProvider = visibilityAnimatorProvider; + setInterpolator(AnimationUtils.FAST_OUT_SLOW_IN_INTERPOLATOR); + } + + private static void addAnimatorIfNeeded(List list, @Nullable VisibilityAnimatorProvider visibilityAnimatorProvider, ViewGroup viewGroup, View view, boolean z2) { + if (visibilityAnimatorProvider != null) { + Animator createAppear = z2 ? visibilityAnimatorProvider.createAppear(viewGroup, view) : visibilityAnimatorProvider.createDisappear(viewGroup, view); + if (createAppear != null) { + list.add(createAppear); + } + } + } + + private Animator createAnimator(ViewGroup viewGroup, View view, boolean z2) { + AnimatorSet animatorSet = new AnimatorSet(); + ArrayList arrayList = new ArrayList(); + addAnimatorIfNeeded(arrayList, this.primaryAnimatorProvider, viewGroup, view, z2); + addAnimatorIfNeeded(arrayList, this.secondaryAnimatorProvider, viewGroup, view, z2); + for (VisibilityAnimatorProvider visibilityAnimatorProvider : this.additionalAnimatorProviders) { + addAnimatorIfNeeded(arrayList, visibilityAnimatorProvider, viewGroup, view, z2); + } + AnimatorSetCompat.playTogether(animatorSet, arrayList); + return animatorSet; + } + + public void addAdditionalAnimatorProvider(@NonNull VisibilityAnimatorProvider visibilityAnimatorProvider) { + this.additionalAnimatorProviders.add(visibilityAnimatorProvider); + } + + public void clearAdditionalAnimatorProvider() { + this.additionalAnimatorProviders.clear(); + } + + @NonNull + public P getPrimaryAnimatorProvider() { + return this.primaryAnimatorProvider; + } + + @Nullable + public VisibilityAnimatorProvider getSecondaryAnimatorProvider() { + return this.secondaryAnimatorProvider; + } + + @Override // android.transition.Visibility + public Animator onAppear(ViewGroup viewGroup, View view, TransitionValues transitionValues, TransitionValues transitionValues2) { + return createAnimator(viewGroup, view, true); + } + + @Override // android.transition.Visibility + public Animator onDisappear(ViewGroup viewGroup, View view, TransitionValues transitionValues, TransitionValues transitionValues2) { + return createAnimator(viewGroup, view, false); + } + + public boolean removeAdditionalAnimatorProvider(@NonNull VisibilityAnimatorProvider visibilityAnimatorProvider) { + return this.additionalAnimatorProviders.remove(visibilityAnimatorProvider); + } + + public void setSecondaryAnimatorProvider(@Nullable VisibilityAnimatorProvider visibilityAnimatorProvider) { + this.secondaryAnimatorProvider = visibilityAnimatorProvider; + } +} diff --git a/app/src/main/java/b/i/a/g/l/l/i.java b/app/src/main/java/b/i/a/g/l/l/i.java new file mode 100644 index 0000000000..8170e1ed7d --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/i.java @@ -0,0 +1,27 @@ +package b.i.a.g.l.l; + +import android.transition.Transition; +import androidx.annotation.RequiresApi; +/* compiled from: TransitionListenerAdapter */ +@RequiresApi(21) +public abstract class i implements Transition.TransitionListener { + @Override // android.transition.Transition.TransitionListener + public void onTransitionCancel(Transition transition) { + } + + @Override // android.transition.Transition.TransitionListener + public void onTransitionEnd(Transition transition) { + } + + @Override // android.transition.Transition.TransitionListener + public void onTransitionPause(Transition transition) { + } + + @Override // android.transition.Transition.TransitionListener + public void onTransitionResume(Transition transition) { + } + + @Override // android.transition.Transition.TransitionListener + public void onTransitionStart(Transition transition) { + } +} diff --git a/app/src/main/java/b/i/a/g/l/l/j.java b/app/src/main/java/b/i/a/g/l/l/j.java new file mode 100644 index 0000000000..0c744cee6b --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/j.java @@ -0,0 +1,21 @@ +package b.i.a.g.l.l; + +import android.graphics.RectF; +import androidx.annotation.NonNull; +import com.google.android.material.shape.CornerSize; +import com.google.android.material.shape.RelativeCornerSize; +import com.google.android.material.shape.ShapeAppearanceModel; +/* compiled from: TransitionUtils */ +public final class j implements ShapeAppearanceModel.CornerSizeUnaryOperator { + public final /* synthetic */ RectF a; + + public j(RectF rectF) { + this.a = rectF; + } + + @Override // com.google.android.material.shape.ShapeAppearanceModel.CornerSizeUnaryOperator + @NonNull + public CornerSize apply(@NonNull CornerSize cornerSize) { + return cornerSize instanceof RelativeCornerSize ? cornerSize : new RelativeCornerSize(cornerSize.getCornerSize(this.a) / this.a.height()); + } +} diff --git a/app/src/main/java/b/i/a/g/l/l/k.java b/app/src/main/java/b/i/a/g/l/l/k.java new file mode 100644 index 0000000000..9b193ed522 --- /dev/null +++ b/app/src/main/java/b/i/a/g/l/l/k.java @@ -0,0 +1,82 @@ +package b.i.a.g.l.l; + +import android.graphics.Canvas; +import android.graphics.Rect; +import android.graphics.RectF; +import android.view.View; +import android.view.ViewParent; +import androidx.annotation.FloatRange; +import androidx.annotation.IdRes; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +/* compiled from: TransitionUtils */ +@RequiresApi(21) +public class k { + public static final RectF a = new RectF(); + + /* compiled from: TransitionUtils */ + public interface a { + void a(Canvas canvas); + } + + @NonNull + public static T a(@Nullable T t, @NonNull T t2) { + return t != null ? t : t2; + } + + public static View b(View view, @IdRes int i) { + String resourceName = view.getResources().getResourceName(i); + while (view != null) { + if (view.getId() != i) { + ViewParent parent = view.getParent(); + if (!(parent instanceof View)) { + break; + } + view = (View) parent; + } else { + return view; + } + } + throw new IllegalArgumentException(b.d.b.a.a.v(resourceName, " is not a valid ancestor")); + } + + public static RectF c(View view) { + int[] iArr = new int[2]; + view.getLocationOnScreen(iArr); + int i = iArr[0]; + int i2 = iArr[1]; + return new RectF((float) i, (float) i2, (float) (view.getWidth() + i), (float) (view.getHeight() + i2)); + } + + public static float d(float f, float f2, float f3) { + return b.d.b.a.a.a(f2, f, f3, f); + } + + public static float e(float f, float f2, @FloatRange(from = 0.0d, to = 1.0d) float f3, @FloatRange(from = 0.0d, to = 1.0d) float f4, @FloatRange(from = 0.0d, to = 1.0d) float f5) { + return f(f, f2, f3, f4, f5, false); + } + + public static float f(float f, float f2, @FloatRange(from = 0.0d, to = 1.0d) float f3, @FloatRange(from = 0.0d, to = 1.0d) float f4, @FloatRange(from = 0.0d) float f5, boolean z2) { + return (!z2 || (f5 >= 0.0f && f5 <= 1.0f)) ? f5 < f3 ? f : f5 > f4 ? f2 : d(f, f2, (f5 - f3) / (f4 - f3)) : d(f, f2, f5); + } + + public static int g(int i, int i2, @FloatRange(from = 0.0d, to = 1.0d) float f, @FloatRange(from = 0.0d, to = 1.0d) float f2, @FloatRange(from = 0.0d, to = 1.0d) float f3) { + return f3 < f ? i : f3 > f2 ? i2 : (int) d((float) i, (float) i2, (f3 - f) / (f2 - f)); + } + + public static void h(Canvas canvas, Rect rect, float f, float f2, float f3, int i, a aVar) { + if (i > 0) { + int save = canvas.save(); + canvas.translate(f, f2); + canvas.scale(f3, f3); + if (i < 255) { + RectF rectF = a; + rectF.set(rect); + canvas.saveLayerAlpha(rectF, i); + } + aVar.a(canvas); + canvas.restoreToCount(save); + } + } +} diff --git a/app/src/main/java/b/i/b/a/a.java b/app/src/main/java/b/i/b/a/a.java new file mode 100644 index 0000000000..8a9b2a0e02 --- /dev/null +++ b/app/src/main/java/b/i/b/a/a.java @@ -0,0 +1,109 @@ +package b.i.b.a; + +import b.c.a.y.b; +import b.i.b.a.k; +import java.util.Iterator; +import java.util.NoSuchElementException; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: AbstractIterator */ +public abstract class a implements Iterator { + public int j = 2; + @NullableDecl + public T k; + + @Override // java.util.Iterator + public final boolean hasNext() { + T t; + int a; + int i = this.j; + if (i != 4) { + int h = b.h(i); + if (h == 0) { + return true; + } + if (h == 2) { + return false; + } + this.j = 4; + k.a aVar = (k.a) this; + int i2 = aVar.o; + while (true) { + int i3 = aVar.o; + if (i3 == -1) { + aVar.j = 3; + t = null; + break; + } + i iVar = (i) aVar; + a = iVar.q.a.a(iVar.l, i3); + if (a == -1) { + a = aVar.l.length(); + aVar.o = -1; + } else { + aVar.o = a + 1; + } + int i4 = aVar.o; + if (i4 == i2) { + int i5 = i4 + 1; + aVar.o = i5; + if (i5 > aVar.l.length()) { + aVar.o = -1; + } + } else { + while (i2 < a && aVar.m.b(aVar.l.charAt(i2))) { + i2++; + } + while (a > i2) { + int i6 = a - 1; + if (!aVar.m.b(aVar.l.charAt(i6))) { + break; + } + a = i6; + } + if (!aVar.n || i2 != a) { + break; + } + i2 = aVar.o; + } + } + int i7 = aVar.p; + if (i7 == 1) { + a = aVar.l.length(); + aVar.o = -1; + while (a > i2) { + int i8 = a - 1; + if (!aVar.m.b(aVar.l.charAt(i8))) { + break; + } + a = i8; + } + } else { + aVar.p = i7 - 1; + } + t = (T) aVar.l.subSequence(i2, a).toString(); + this.k = t; + if (this.j == 3) { + return false; + } + this.j = 1; + return true; + } + throw new IllegalStateException(); + } + + @Override // java.util.Iterator + public final T next() { + if (hasNext()) { + this.j = 2; + T t = this.k; + this.k = null; + return t; + } + throw new NoSuchElementException(); + } + + @Override // java.util.Iterator + public final void remove() { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/b/a/b.java b/app/src/main/java/b/i/b/a/b.java new file mode 100644 index 0000000000..ae78af8e67 --- /dev/null +++ b/app/src/main/java/b/i/b/a/b.java @@ -0,0 +1,93 @@ +package b.i.b.a; + +import b.i.a.f.e.o.f; +/* compiled from: CharMatcher */ +public abstract class b implements h { + + /* compiled from: CharMatcher */ + public static abstract class a extends b { + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.b.a.h + @Deprecated + public boolean apply(Character ch) { + return b(ch.charValue()); + } + } + + /* compiled from: CharMatcher */ + /* renamed from: b.i.b.a.b$b reason: collision with other inner class name */ + public static final class C0123b extends a { + public final char a; + + public C0123b(char c) { + this.a = c; + } + + @Override // b.i.b.a.b + public boolean b(char c) { + return c == this.a; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("CharMatcher.is('"); + char c = this.a; + char[] cArr = {'\\', 'u', 0, 0, 0, 0}; + for (int i = 0; i < 4; i++) { + cArr[5 - i] = "0123456789ABCDEF".charAt(c & 15); + c = (char) (c >> 4); + } + R.append(String.copyValueOf(cArr)); + R.append("')"); + return R.toString(); + } + } + + /* compiled from: CharMatcher */ + public static abstract class c extends a { + public final String a; + + public c(String str) { + this.a = str; + } + + public final String toString() { + return this.a; + } + } + + /* compiled from: CharMatcher */ + public static final class d extends c { + + /* renamed from: b reason: collision with root package name */ + public static final d f1626b = new d(); + + public d() { + super("CharMatcher.none()"); + } + + @Override // b.i.b.a.b + public int a(CharSequence charSequence, int i) { + f.B(i, charSequence.length()); + return -1; + } + + @Override // b.i.b.a.b + public boolean b(char c) { + return false; + } + } + + public int a(CharSequence charSequence, int i) { + int length = charSequence.length(); + f.B(i, length); + while (i < length) { + if (b(charSequence.charAt(i))) { + return i; + } + i++; + } + return -1; + } + + public abstract boolean b(char c2); +} diff --git a/app/src/main/java/b/i/b/a/c.java b/app/src/main/java/b/i/b/a/c.java new file mode 100644 index 0000000000..13940cb10b --- /dev/null +++ b/app/src/main/java/b/i/b/a/c.java @@ -0,0 +1,18 @@ +package b.i.b.a; + +import com.adjust.sdk.Constants; +import java.nio.charset.Charset; +/* compiled from: Charsets */ +public final class c { + public static final Charset a = Charset.forName("US-ASCII"); + + /* renamed from: b reason: collision with root package name */ + public static final Charset f1627b = Charset.forName("ISO-8859-1"); + public static final Charset c = Charset.forName(Constants.ENCODING); + public static final Charset d = Charset.forName("UTF-16LE"); + public static final Charset e = Charset.forName("UTF-16"); + + static { + Charset.forName("UTF-16BE"); + } +} diff --git a/app/src/main/java/b/i/b/a/d.java b/app/src/main/java/b/i/b/a/d.java new file mode 100644 index 0000000000..04040cd4ef --- /dev/null +++ b/app/src/main/java/b/i/b/a/d.java @@ -0,0 +1,64 @@ +package b.i.b.a; + +import com.google.errorprone.annotations.ForOverride; +import java.io.Serializable; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: Equivalence */ +public abstract class d { + + /* compiled from: Equivalence */ + public static final class a extends d implements Serializable { + public static final a j = new a(); + private static final long serialVersionUID = 1; + + private Object readResolve() { + return j; + } + + @Override // b.i.b.a.d + public boolean a(Object obj, Object obj2) { + return obj.equals(obj2); + } + + @Override // b.i.b.a.d + public int b(Object obj) { + return obj.hashCode(); + } + } + + /* compiled from: Equivalence */ + public static final class b extends d implements Serializable { + public static final b j = new b(); + private static final long serialVersionUID = 1; + + private Object readResolve() { + return j; + } + + @Override // b.i.b.a.d + public boolean a(Object obj, Object obj2) { + return false; + } + + @Override // b.i.b.a.d + public int b(Object obj) { + return System.identityHashCode(obj); + } + } + + @ForOverride + public abstract boolean a(T t, T t2); + + @ForOverride + public abstract int b(T t); + + public final boolean c(@NullableDecl T t, @NullableDecl T t2) { + if (t == t2) { + return true; + } + if (t == null || t2 == null) { + return false; + } + return a(t, t2); + } +} diff --git a/app/src/main/java/b/i/b/a/e.java b/app/src/main/java/b/i/b/a/e.java new file mode 100644 index 0000000000..086166eff2 --- /dev/null +++ b/app/src/main/java/b/i/b/a/e.java @@ -0,0 +1,10 @@ +package b.i.b.a; + +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: Function */ +public interface e { + @CanIgnoreReturnValue + @NullableDecl + T apply(@NullableDecl F f); +} diff --git a/app/src/main/java/b/i/b/a/g.java b/app/src/main/java/b/i/b/a/g.java new file mode 100644 index 0000000000..c40932e45b --- /dev/null +++ b/app/src/main/java/b/i/b/a/g.java @@ -0,0 +1,73 @@ +package b.i.b.a; + +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.util.Arrays; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: MoreObjects */ +public final class g { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final a f1628b; + public a c; + + /* compiled from: MoreObjects */ + public static final class a { + @NullableDecl + public String a; + @NullableDecl + + /* renamed from: b reason: collision with root package name */ + public Object f1629b; + @NullableDecl + public a c; + + public a(f fVar) { + } + } + + public g(String str, f fVar) { + a aVar = new a(null); + this.f1628b = aVar; + this.c = aVar; + this.a = str; + } + + @CanIgnoreReturnValue + public g a(String str, int i) { + String valueOf = String.valueOf(i); + a aVar = new a(null); + this.c.c = aVar; + this.c = aVar; + aVar.f1629b = valueOf; + aVar.a = str; + return this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(32); + sb.append(this.a); + sb.append('{'); + a aVar = this.f1628b.c; + String str = ""; + while (aVar != null) { + Object obj = aVar.f1629b; + sb.append(str); + String str2 = aVar.a; + if (str2 != null) { + sb.append(str2); + sb.append('='); + } + if (obj == null || !obj.getClass().isArray()) { + sb.append(obj); + } else { + String deepToString = Arrays.deepToString(new Object[]{obj}); + sb.append((CharSequence) deepToString, 1, deepToString.length() - 1); + } + aVar = aVar.c; + str = ", "; + } + sb.append('}'); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/b/a/h.java b/app/src/main/java/b/i/b/a/h.java new file mode 100644 index 0000000000..c7e8f06cfb --- /dev/null +++ b/app/src/main/java/b/i/b/a/h.java @@ -0,0 +1,9 @@ +package b.i.b.a; + +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: Predicate */ +public interface h { + @CanIgnoreReturnValue + boolean apply(@NullableDecl T t); +} diff --git a/app/src/main/java/b/i/b/a/i.java b/app/src/main/java/b/i/b/a/i.java new file mode 100644 index 0000000000..2b5e9d0ece --- /dev/null +++ b/app/src/main/java/b/i/b/a/i.java @@ -0,0 +1,13 @@ +package b.i.b.a; + +import b.i.b.a.k; +/* compiled from: Splitter */ +public class i extends k.a { + public final /* synthetic */ j q; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public i(j jVar, k kVar, CharSequence charSequence) { + super(kVar, charSequence); + this.q = jVar; + } +} diff --git a/app/src/main/java/b/i/b/a/j.java b/app/src/main/java/b/i/b/a/j.java new file mode 100644 index 0000000000..df90719878 --- /dev/null +++ b/app/src/main/java/b/i/b/a/j.java @@ -0,0 +1,11 @@ +package b.i.b.a; + +import b.i.b.a.k; +/* compiled from: Splitter */ +public final class j implements k.b { + public final /* synthetic */ b a; + + public j(b bVar) { + this.a = bVar; + } +} diff --git a/app/src/main/java/b/i/b/a/k.java b/app/src/main/java/b/i/b/a/k.java new file mode 100644 index 0000000000..f89d68b046 --- /dev/null +++ b/app/src/main/java/b/i/b/a/k.java @@ -0,0 +1,53 @@ +package b.i.b.a; + +import b.i.b.a.b; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: Splitter */ +public final class k { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final b f1630b; + public final int c = Integer.MAX_VALUE; + + /* compiled from: Splitter */ + public static abstract class a extends a { + public final CharSequence l; + public final b m; + public final boolean n; + public int o = 0; + public int p; + + public a(k kVar, CharSequence charSequence) { + this.m = kVar.a; + this.n = false; + this.p = kVar.c; + this.l = charSequence; + } + } + + /* compiled from: Splitter */ + public interface b { + } + + public k(b bVar) { + b.d dVar = b.d.f1626b; + this.f1630b = bVar; + this.a = dVar; + } + + public List a(CharSequence charSequence) { + Objects.requireNonNull(charSequence); + j jVar = (j) this.f1630b; + Objects.requireNonNull(jVar); + i iVar = new i(jVar, this, charSequence); + ArrayList arrayList = new ArrayList(); + while (iVar.hasNext()) { + arrayList.add(iVar.next()); + } + return Collections.unmodifiableList(arrayList); + } +} diff --git a/app/src/main/java/b/i/b/a/l.java b/app/src/main/java/b/i/b/a/l.java new file mode 100644 index 0000000000..600507261e --- /dev/null +++ b/app/src/main/java/b/i/b/a/l.java @@ -0,0 +1,8 @@ +package b.i.b.a; + +import com.google.errorprone.annotations.CanIgnoreReturnValue; +/* compiled from: Supplier */ +public interface l { + @CanIgnoreReturnValue + T get(); +} diff --git a/app/src/main/java/b/i/b/b/a.java b/app/src/main/java/b/i/b/b/a.java new file mode 100644 index 0000000000..5db3a5c73b --- /dev/null +++ b/app/src/main/java/b/i/b/b/a.java @@ -0,0 +1,67 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import b.i.b.b.p; +import java.util.ListIterator; +import java.util.NoSuchElementException; +/* compiled from: AbstractIndexedListIterator */ +public abstract class a implements ListIterator { + public final int j; + public int k; + + public a(int i, int i2) { + f.B(i2, i); + this.j = i; + this.k = i2; + } + + @Override // java.util.ListIterator + public final void add(Object obj) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.ListIterator, java.util.Iterator + public final boolean hasNext() { + return this.k < this.j; + } + + @Override // java.util.ListIterator + public final boolean hasPrevious() { + return this.k > 0; + } + + @Override // java.util.ListIterator, java.util.Iterator + public final E next() { + if (hasNext()) { + int i = this.k; + this.k = i + 1; + return ((p.b) this).l.get(i); + } + throw new NoSuchElementException(); + } + + @Override // java.util.ListIterator + public final int nextIndex() { + return this.k; + } + + @Override // java.util.ListIterator + public final E previous() { + if (hasPrevious()) { + int i = this.k - 1; + this.k = i; + return ((p.b) this).l.get(i); + } + throw new NoSuchElementException(); + } + + @Override // java.util.ListIterator + public final int previousIndex() { + return this.k - 1; + } + + @Override // java.util.ListIterator + public final void set(Object obj) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/b/b/a0.java b/app/src/main/java/b/i/b/b/a0.java new file mode 100644 index 0000000000..ed6dfa6707 --- /dev/null +++ b/app/src/main/java/b/i/b/b/a0.java @@ -0,0 +1,37 @@ +package b.i.b.b; + +import b.i.b.b.e; +import java.util.AbstractMap; +import java.util.Collection; +import java.util.Map; +import java.util.Set; +import org.checkerframework.checker.nullness.compatqual.MonotonicNonNullDecl; +/* compiled from: Maps */ +public abstract class a0 extends AbstractMap { + @MonotonicNonNullDecl + public transient Set> j; + @MonotonicNonNullDecl + public transient Collection k; + + @Override // java.util.AbstractMap, java.util.Map + public Set> entrySet() { + Set> set = this.j; + if (set != null) { + return set; + } + e.a.C0124a aVar = new e.a.C0124a(); + this.j = aVar; + return aVar; + } + + @Override // java.util.AbstractMap, java.util.Map + public Collection values() { + Collection collection = this.k; + if (collection != null) { + return collection; + } + z zVar = new z(this); + this.k = zVar; + return zVar; + } +} diff --git a/app/src/main/java/b/i/b/b/b.java b/app/src/main/java/b/i/b/b/b.java new file mode 100644 index 0000000000..d60d104079 --- /dev/null +++ b/app/src/main/java/b/i/b/b/b.java @@ -0,0 +1,59 @@ +package b.i.b.b; + +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.util.NoSuchElementException; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: AbstractIterator */ +public abstract class b extends s0 { + public int j = 2; + @NullableDecl + public T k; + + @Override // java.util.Iterator + @CanIgnoreReturnValue + public final boolean hasNext() { + T t; + int i = this.j; + if (i != 4) { + int h = b.c.a.y.b.h(i); + if (h == 0) { + return true; + } + if (h == 2) { + return false; + } + this.j = 4; + n0 n0Var = (n0) this; + while (true) { + if (!n0Var.l.hasNext()) { + n0Var.j = 3; + t = null; + break; + } + t = (T) n0Var.l.next(); + if (n0Var.m.k.contains(t)) { + break; + } + } + this.k = t; + if (this.j == 3) { + return false; + } + this.j = 1; + return true; + } + throw new IllegalStateException(); + } + + @Override // java.util.Iterator + @CanIgnoreReturnValue + public final T next() { + if (hasNext()) { + this.j = 2; + T t = this.k; + this.k = null; + return t; + } + throw new NoSuchElementException(); + } +} diff --git a/app/src/main/java/b/i/b/b/b0.java b/app/src/main/java/b/i/b/b/b0.java new file mode 100644 index 0000000000..d3aa10787b --- /dev/null +++ b/app/src/main/java/b/i/b/b/b0.java @@ -0,0 +1,8 @@ +package b.i.b.b; + +import java.util.Collection; +import java.util.Map; +/* compiled from: Multimap */ +public interface b0 { + Map> a(); +} diff --git a/app/src/main/java/b/i/b/b/c.java b/app/src/main/java/b/i/b/b/c.java new file mode 100644 index 0000000000..2494b627e3 --- /dev/null +++ b/app/src/main/java/b/i/b/b/c.java @@ -0,0 +1,33 @@ +package b.i.b.b; + +import b.i.b.b.e; +import java.util.Collection; +import java.util.Map; +import java.util.NavigableMap; +import java.util.SortedMap; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: AbstractListMultimap */ +public abstract class c extends e implements b0 { + private static final long serialVersionUID = 6588350623831699109L; + + public c(Map> map) { + super(map); + } + + @Override // b.i.b.b.g, b.i.b.b.b0 + public Map> a() { + Map> map = this.l; + if (map == null) { + d0 d0Var = (d0) this; + Map> map2 = d0Var.m; + map = map2 instanceof NavigableMap ? new e.d((NavigableMap) d0Var.m) : map2 instanceof SortedMap ? new e.g((SortedMap) d0Var.m) : new e.a(d0Var.m); + this.l = map; + } + return map; + } + + @Override // b.i.b.b.g, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + return super.equals(obj); + } +} diff --git a/app/src/main/java/b/i/b/b/c0.java b/app/src/main/java/b/i/b/b/c0.java new file mode 100644 index 0000000000..795cad9db8 --- /dev/null +++ b/app/src/main/java/b/i/b/b/c0.java @@ -0,0 +1,21 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import b.i.b.a.l; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; +/* compiled from: MultimapBuilder */ +public final class c0 implements l>, Serializable { + private final int expectedValuesPerKey; + + public c0(int i) { + f.z(i, "expectedValuesPerKey"); + this.expectedValuesPerKey = i; + } + + @Override // b.i.b.a.l + public Object get() { + return new ArrayList(this.expectedValuesPerKey); + } +} diff --git a/app/src/main/java/b/i/b/b/d.java b/app/src/main/java/b/i/b/b/d.java new file mode 100644 index 0000000000..b57d0b29f0 --- /dev/null +++ b/app/src/main/java/b/i/b/b/d.java @@ -0,0 +1,7 @@ +package b.i.b.b; +/* compiled from: AbstractMapBasedMultimap */ +public class d extends e.b { + public d(e eVar) { + super(); + } +} diff --git a/app/src/main/java/b/i/b/b/d0.java b/app/src/main/java/b/i/b/b/d0.java new file mode 100644 index 0000000000..5954d24249 --- /dev/null +++ b/app/src/main/java/b/i/b/b/d0.java @@ -0,0 +1,45 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import b.i.b.a.l; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.Objects; +/* compiled from: Multimaps */ +public class d0 extends c { + private static final long serialVersionUID = 0; + public transient l> o; + + public d0(Map> map, l> lVar) { + super(map); + Objects.requireNonNull(lVar); + this.o = lVar; + } + + private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException { + objectInputStream.defaultReadObject(); + this.o = (l) objectInputStream.readObject(); + Map> map = (Map) objectInputStream.readObject(); + this.m = map; + this.n = 0; + for (Collection collection : map.values()) { + f.u(!collection.isEmpty()); + this.n = collection.size() + this.n; + } + } + + private void writeObject(ObjectOutputStream objectOutputStream) throws IOException { + objectOutputStream.defaultWriteObject(); + objectOutputStream.writeObject(this.o); + objectOutputStream.writeObject(this.m); + } + + @Override // b.i.b.b.e + public Collection e() { + return (List) this.o.get(); + } +} diff --git a/app/src/main/java/b/i/b/b/e.java b/app/src/main/java/b/i/b/b/e.java new file mode 100644 index 0000000000..5bf9cda06e --- /dev/null +++ b/app/src/main/java/b/i/b/b/e.java @@ -0,0 +1,1110 @@ +package b.i.b.b; + +import java.io.Serializable; +import java.util.AbstractCollection; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.ConcurrentModificationException; +import java.util.Iterator; +import java.util.List; +import java.util.ListIterator; +import java.util.Map; +import java.util.NavigableMap; +import java.util.NavigableSet; +import java.util.Objects; +import java.util.RandomAccess; +import java.util.Set; +import java.util.SortedMap; +import java.util.SortedSet; +import org.checkerframework.checker.nullness.compatqual.MonotonicNonNullDecl; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: AbstractMapBasedMultimap */ +public abstract class e extends g implements Serializable { + private static final long serialVersionUID = 2447537837011683357L; + public transient Map> m; + public transient int n; + + /* compiled from: AbstractMapBasedMultimap */ + public class a extends a0> { + public final transient Map> l; + + /* compiled from: AbstractMapBasedMultimap */ + /* renamed from: b.i.b.b.e$a$a reason: collision with other inner class name */ + public class C0124a extends x> { + public C0124a() { + } + + @Override // b.i.b.b.x, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(Object obj) { + Set>> entrySet = a.this.l.entrySet(); + Objects.requireNonNull(entrySet); + try { + return entrySet.contains(obj); + } catch (ClassCastException | NullPointerException unused) { + return false; + } + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set, java.lang.Iterable + public Iterator>> iterator() { + return new b(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean remove(Object obj) { + Collection collection; + if (!contains(obj)) { + return false; + } + e eVar = e.this; + Object key = ((Map.Entry) obj).getKey(); + Map> map = eVar.m; + Objects.requireNonNull(map); + try { + collection = map.remove(key); + } catch (ClassCastException | NullPointerException unused) { + collection = null; + } + Collection collection2 = collection; + if (collection2 == null) { + return true; + } + int size = collection2.size(); + collection2.clear(); + eVar.n -= size; + return true; + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public class b implements Iterator>> { + public final Iterator>> j; + @NullableDecl + public Collection k; + + public b() { + this.j = a.this.l.entrySet().iterator(); + } + + @Override // java.util.Iterator + public boolean hasNext() { + return this.j.hasNext(); + } + + @Override // java.util.Iterator + public Object next() { + Map.Entry> next = this.j.next(); + this.k = next.getValue(); + return a.this.a(next); + } + + @Override // java.util.Iterator + public void remove() { + b.i.a.f.e.o.f.D(this.k != null); + this.j.remove(); + e.this.n -= this.k.size(); + this.k.clear(); + this.k = null; + } + } + + public a(Map> map) { + this.l = map; + } + + public Map.Entry> a(Map.Entry> entry) { + K key = entry.getKey(); + c cVar = (c) e.this; + Objects.requireNonNull(cVar); + List list = (List) entry.getValue(); + return new o(key, list instanceof RandomAccess ? new f(cVar, key, list, null) : new j(key, list, null)); + } + + @Override // java.util.AbstractMap, java.util.Map + public void clear() { + Map> map = this.l; + e eVar = e.this; + if (map == eVar.m) { + eVar.d(); + return; + } + b bVar = new b(); + while (bVar.hasNext()) { + bVar.next(); + bVar.remove(); + } + } + + @Override // java.util.AbstractMap, java.util.Map + public boolean containsKey(Object obj) { + Map> map = this.l; + Objects.requireNonNull(map); + try { + return map.containsKey(obj); + } catch (ClassCastException | NullPointerException unused) { + return false; + } + } + + @Override // java.util.AbstractMap, java.util.Map, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + return this == obj || this.l.equals(obj); + } + + @Override // java.util.AbstractMap, java.util.Map + public Object get(Object obj) { + Collection collection; + Map> map = this.l; + Objects.requireNonNull(map); + try { + collection = map.get(obj); + } catch (ClassCastException | NullPointerException unused) { + collection = null; + } + Collection collection2 = collection; + if (collection2 == null) { + return null; + } + c cVar = (c) e.this; + Objects.requireNonNull(cVar); + List list = (List) collection2; + return list instanceof RandomAccess ? new f(cVar, obj, list, null) : new j(obj, list, null); + } + + @Override // java.util.AbstractMap, java.util.Map, java.lang.Object + public int hashCode() { + return this.l.hashCode(); + } + + @Override // java.util.AbstractMap, java.util.Map + public Set keySet() { + e eVar = e.this; + Set set = eVar.j; + if (set == null) { + d0 d0Var = (d0) eVar; + Map> map = d0Var.m; + set = map instanceof NavigableMap ? new C0125e((NavigableMap) d0Var.m) : map instanceof SortedMap ? new h((SortedMap) d0Var.m) : new c(d0Var.m); + eVar.j = set; + } + return set; + } + + @Override // java.util.AbstractMap, java.util.Map + public Object remove(Object obj) { + Collection remove = this.l.remove(obj); + if (remove == null) { + return null; + } + Collection e = e.this.e(); + e.addAll(remove); + e.this.n -= remove.size(); + remove.clear(); + return e; + } + + @Override // java.util.AbstractMap, java.util.Map + public int size() { + return this.l.size(); + } + + @Override // java.util.AbstractMap, java.lang.Object + public String toString() { + return this.l.toString(); + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public abstract class b implements Iterator { + public final Iterator>> j; + @NullableDecl + public K k = null; + @MonotonicNonNullDecl + public Collection l = null; + public Iterator m = t.INSTANCE; + + public b() { + this.j = e.this.m.entrySet().iterator(); + } + + @Override // java.util.Iterator + public boolean hasNext() { + return this.j.hasNext() || this.m.hasNext(); + } + + @Override // java.util.Iterator + public T next() { + if (!this.m.hasNext()) { + Map.Entry> next = this.j.next(); + this.k = next.getKey(); + Collection value = next.getValue(); + this.l = value; + this.m = value.iterator(); + } + return this.m.next(); + } + + @Override // java.util.Iterator + public void remove() { + this.m.remove(); + if (this.l.isEmpty()) { + this.j.remove(); + } + e.c(e.this); + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public class c extends y> { + + /* compiled from: AbstractMapBasedMultimap */ + public class a implements Iterator { + @NullableDecl + public Map.Entry> j; + public final /* synthetic */ Iterator k; + + public a(Iterator it) { + this.k = it; + } + + @Override // java.util.Iterator + public boolean hasNext() { + return this.k.hasNext(); + } + + @Override // java.util.Iterator + public K next() { + Map.Entry> entry = (Map.Entry) this.k.next(); + this.j = entry; + return entry.getKey(); + } + + @Override // java.util.Iterator + public void remove() { + b.i.a.f.e.o.f.D(this.j != null); + Collection value = this.j.getValue(); + this.k.remove(); + e.this.n -= value.size(); + value.clear(); + this.j = null; + } + } + + public c(Map> map) { + super(map); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public void clear() { + Iterator it = iterator(); + while (true) { + a aVar = (a) it; + if (aVar.hasNext()) { + aVar.next(); + aVar.remove(); + } else { + return; + } + } + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean containsAll(Collection collection) { + return this.j.keySet().containsAll(collection); + } + + @Override // java.util.AbstractSet, java.util.Collection, java.util.Set, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + return this == obj || this.j.keySet().equals(obj); + } + + @Override // java.util.AbstractSet, java.util.Collection, java.util.Set, java.lang.Object + public int hashCode() { + return this.j.keySet().hashCode(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set, java.lang.Iterable + public Iterator iterator() { + return new a(this.j.entrySet().iterator()); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean remove(Object obj) { + int i; + V remove = this.j.remove(obj); + if (remove != null) { + i = remove.size(); + remove.clear(); + e.this.n -= i; + } else { + i = 0; + } + return i > 0; + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public class d extends e.g implements NavigableMap> { + public d(NavigableMap> navigableMap) { + super(navigableMap); + } + + @Override // b.i.b.b.e.g + public SortedSet b() { + return new C0125e(d()); + } + + @Override // java.util.NavigableMap + public Map.Entry> ceilingEntry(K k) { + Map.Entry> ceilingEntry = d().ceilingEntry(k); + if (ceilingEntry == null) { + return null; + } + return a(ceilingEntry); + } + + @Override // java.util.NavigableMap + public K ceilingKey(K k) { + return d().ceilingKey(k); + } + + @Override // java.util.NavigableMap + public NavigableSet descendingKeySet() { + return ((d) descendingMap()).navigableKeySet(); + } + + @Override // java.util.NavigableMap + public NavigableMap> descendingMap() { + return new d(d().descendingMap()); + } + + /* renamed from: e */ + public NavigableSet keySet() { + SortedSet sortedSet = this.n; + if (sortedSet == null) { + sortedSet = b(); + this.n = sortedSet; + } + return (NavigableSet) sortedSet; + } + + public Map.Entry> f(Iterator>> it) { + if (!it.hasNext()) { + return null; + } + Map.Entry> next = it.next(); + Collection e = e.this.e(); + e.addAll(next.getValue()); + it.remove(); + K key = next.getKey(); + Objects.requireNonNull((c) e.this); + return new o(key, Collections.unmodifiableList((List) e)); + } + + @Override // java.util.NavigableMap + public Map.Entry> firstEntry() { + Map.Entry> firstEntry = d().firstEntry(); + if (firstEntry == null) { + return null; + } + return a(firstEntry); + } + + @Override // java.util.NavigableMap + public Map.Entry> floorEntry(K k) { + Map.Entry> floorEntry = d().floorEntry(k); + if (floorEntry == null) { + return null; + } + return a(floorEntry); + } + + @Override // java.util.NavigableMap + public K floorKey(K k) { + return d().floorKey(k); + } + + /* renamed from: g */ + public NavigableMap> d() { + return (NavigableMap) ((SortedMap) this.l); + } + + @Override // java.util.NavigableMap + public NavigableMap> headMap(K k, boolean z2) { + return new d(d().headMap(k, z2)); + } + + @Override // b.i.b.b.e.g, java.util.SortedMap, java.util.NavigableMap + public SortedMap headMap(Object obj) { + return headMap(obj, false); + } + + @Override // java.util.NavigableMap + public Map.Entry> higherEntry(K k) { + Map.Entry> higherEntry = d().higherEntry(k); + if (higherEntry == null) { + return null; + } + return a(higherEntry); + } + + @Override // java.util.NavigableMap + public K higherKey(K k) { + return d().higherKey(k); + } + + @Override // java.util.NavigableMap + public Map.Entry> lastEntry() { + Map.Entry> lastEntry = d().lastEntry(); + if (lastEntry == null) { + return null; + } + return a(lastEntry); + } + + @Override // java.util.NavigableMap + public Map.Entry> lowerEntry(K k) { + Map.Entry> lowerEntry = d().lowerEntry(k); + if (lowerEntry == null) { + return null; + } + return a(lowerEntry); + } + + @Override // java.util.NavigableMap + public K lowerKey(K k) { + return d().lowerKey(k); + } + + @Override // java.util.NavigableMap + public NavigableSet navigableKeySet() { + return keySet(); + } + + @Override // java.util.NavigableMap + public Map.Entry> pollFirstEntry() { + return f(entrySet().iterator()); + } + + @Override // java.util.NavigableMap + public Map.Entry> pollLastEntry() { + return f(((a0) descendingMap()).entrySet().iterator()); + } + + @Override // java.util.NavigableMap + public NavigableMap> subMap(K k, boolean z2, K k2, boolean z3) { + return new d(d().subMap(k, z2, k2, z3)); + } + + @Override // b.i.b.b.e.g, java.util.SortedMap, java.util.NavigableMap + public SortedMap subMap(Object obj, Object obj2) { + return subMap(obj, true, obj2, false); + } + + @Override // java.util.NavigableMap + public NavigableMap> tailMap(K k, boolean z2) { + return new d(d().tailMap(k, z2)); + } + + @Override // b.i.b.b.e.g, java.util.SortedMap, java.util.NavigableMap + public SortedMap tailMap(Object obj) { + return tailMap(obj, true); + } + } + + /* compiled from: AbstractMapBasedMultimap */ + /* renamed from: b.i.b.b.e$e reason: collision with other inner class name */ + public class C0125e extends e.h implements NavigableSet { + public C0125e(NavigableMap> navigableMap) { + super(navigableMap); + } + + @Override // java.util.NavigableSet + public K ceiling(K k) { + return c().ceilingKey(k); + } + + /* renamed from: d */ + public NavigableMap> c() { + return (NavigableMap) ((SortedMap) this.j); + } + + @Override // java.util.NavigableSet + public Iterator descendingIterator() { + return ((c) descendingSet()).iterator(); + } + + @Override // java.util.NavigableSet + public NavigableSet descendingSet() { + return new C0125e(c().descendingMap()); + } + + @Override // java.util.NavigableSet + public K floor(K k) { + return c().floorKey(k); + } + + @Override // java.util.NavigableSet + public NavigableSet headSet(K k, boolean z2) { + return new C0125e(c().headMap(k, z2)); + } + + @Override // b.i.b.b.e.h, java.util.SortedSet, java.util.NavigableSet + public SortedSet headSet(Object obj) { + return headSet(obj, false); + } + + @Override // java.util.NavigableSet + public K higher(K k) { + return c().higherKey(k); + } + + @Override // java.util.NavigableSet + public K lower(K k) { + return c().lowerKey(k); + } + + @Override // java.util.NavigableSet + public K pollFirst() { + c.a aVar = (c.a) iterator(); + if (!aVar.hasNext()) { + return null; + } + K k = (K) aVar.next(); + aVar.remove(); + return k; + } + + @Override // java.util.NavigableSet + public K pollLast() { + Iterator descendingIterator = descendingIterator(); + if (!descendingIterator.hasNext()) { + return null; + } + K next = descendingIterator.next(); + descendingIterator.remove(); + return next; + } + + @Override // java.util.NavigableSet + public NavigableSet subSet(K k, boolean z2, K k2, boolean z3) { + return new C0125e(c().subMap(k, z2, k2, z3)); + } + + @Override // b.i.b.b.e.h, java.util.SortedSet, java.util.NavigableSet + public SortedSet subSet(Object obj, Object obj2) { + return subSet(obj, true, obj2, false); + } + + @Override // java.util.NavigableSet + public NavigableSet tailSet(K k, boolean z2) { + return new C0125e(c().tailMap(k, z2)); + } + + @Override // b.i.b.b.e.h, java.util.SortedSet, java.util.NavigableSet + public SortedSet tailSet(Object obj) { + return tailSet(obj, true); + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public class f extends e.j implements RandomAccess { + public f(@NullableDecl e eVar, K k, @NullableDecl List list, e.i iVar) { + super(k, list, iVar); + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public class g extends e.a implements SortedMap> { + @MonotonicNonNullDecl + public SortedSet n; + + public g(SortedMap> sortedMap) { + super(sortedMap); + } + + public SortedSet b() { + return new h(d()); + } + + /* renamed from: c */ + public SortedSet keySet() { + SortedSet sortedSet = this.n; + if (sortedSet != null) { + return sortedSet; + } + SortedSet b2 = b(); + this.n = b2; + return b2; + } + + @Override // java.util.SortedMap + public Comparator comparator() { + return d().comparator(); + } + + public SortedMap> d() { + return (SortedMap) this.l; + } + + @Override // java.util.SortedMap + public K firstKey() { + return d().firstKey(); + } + + @Override // java.util.SortedMap, java.util.NavigableMap + public SortedMap> headMap(K k) { + return new g(d().headMap(k)); + } + + @Override // java.util.SortedMap + public K lastKey() { + return d().lastKey(); + } + + @Override // java.util.SortedMap, java.util.NavigableMap + public SortedMap> subMap(K k, K k2) { + return new g(d().subMap(k, k2)); + } + + @Override // java.util.SortedMap, java.util.NavigableMap + public SortedMap> tailMap(K k) { + return new g(d().tailMap(k)); + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public class h extends e.c implements SortedSet { + public h(SortedMap> sortedMap) { + super(sortedMap); + } + + public SortedMap> c() { + return (SortedMap) this.j; + } + + @Override // java.util.SortedSet + public Comparator comparator() { + return c().comparator(); + } + + @Override // java.util.SortedSet + public K first() { + return c().firstKey(); + } + + @Override // java.util.SortedSet, java.util.NavigableSet + public SortedSet headSet(K k) { + return new h(c().headMap(k)); + } + + @Override // java.util.SortedSet + public K last() { + return c().lastKey(); + } + + @Override // java.util.SortedSet, java.util.NavigableSet + public SortedSet subSet(K k, K k2) { + return new h(c().subMap(k, k2)); + } + + @Override // java.util.SortedSet, java.util.NavigableSet + public SortedSet tailSet(K k) { + return new h(c().tailMap(k)); + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public class i extends AbstractCollection { + @NullableDecl + public final K j; + public Collection k; + @NullableDecl + public final e.i l; + @NullableDecl + public final Collection m; + + /* compiled from: AbstractMapBasedMultimap */ + public class a implements Iterator { + public final Iterator j; + public final Collection k; + + public a() { + Collection collection = i.this.k; + this.k = collection; + this.j = collection instanceof List ? ((List) collection).listIterator() : collection.iterator(); + } + + public a(Iterator it) { + this.k = i.this.k; + this.j = it; + } + + public void a() { + i.this.d(); + if (i.this.k != this.k) { + throw new ConcurrentModificationException(); + } + } + + @Override // java.util.Iterator + public boolean hasNext() { + a(); + return this.j.hasNext(); + } + + @Override // java.util.Iterator + public V next() { + a(); + return this.j.next(); + } + + @Override // java.util.Iterator + public void remove() { + this.j.remove(); + e.c(e.this); + i.this.e(); + } + } + + public i(@NullableDecl K k, Collection collection, @NullableDecl e.i iVar) { + this.j = k; + this.k = collection; + this.l = iVar; + this.m = iVar == null ? null : iVar.k; + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean add(V v) { + d(); + boolean isEmpty = this.k.isEmpty(); + boolean add = this.k.add(v); + if (add) { + e.b(e.this); + if (isEmpty) { + c(); + } + } + return add; + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean addAll(Collection collection) { + if (collection.isEmpty()) { + return false; + } + int size = size(); + boolean addAll = this.k.addAll(collection); + if (addAll) { + int size2 = this.k.size(); + e eVar = e.this; + eVar.n = (size2 - size) + eVar.n; + if (size == 0) { + c(); + } + } + return addAll; + } + + public void c() { + e.i iVar = this.l; + if (iVar != null) { + iVar.c(); + } else { + e.this.m.put(this.j, this.k); + } + } + + @Override // java.util.AbstractCollection, java.util.Collection + public void clear() { + int size = size(); + if (size != 0) { + this.k.clear(); + e.this.n -= size; + e(); + } + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean contains(Object obj) { + d(); + return this.k.contains(obj); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean containsAll(Collection collection) { + d(); + return this.k.containsAll(collection); + } + + public void d() { + Collection collection; + e.i iVar = this.l; + if (iVar != null) { + iVar.d(); + if (this.l.k != this.m) { + throw new ConcurrentModificationException(); + } + } else if (this.k.isEmpty() && (collection = e.this.m.get(this.j)) != null) { + this.k = collection; + } + } + + public void e() { + e.i iVar = this.l; + if (iVar != null) { + iVar.e(); + } else if (this.k.isEmpty()) { + e.this.m.remove(this.j); + } + } + + @Override // java.util.Collection, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + if (obj == this) { + return true; + } + d(); + return this.k.equals(obj); + } + + @Override // java.util.Collection, java.lang.Object + public int hashCode() { + d(); + return this.k.hashCode(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable + public Iterator iterator() { + d(); + return new a(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean remove(Object obj) { + d(); + boolean remove = this.k.remove(obj); + if (remove) { + e.c(e.this); + e(); + } + return remove; + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean removeAll(Collection collection) { + if (collection.isEmpty()) { + return false; + } + int size = size(); + boolean removeAll = this.k.removeAll(collection); + if (removeAll) { + int size2 = this.k.size(); + e eVar = e.this; + eVar.n = (size2 - size) + eVar.n; + e(); + } + return removeAll; + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean retainAll(Collection collection) { + Objects.requireNonNull(collection); + int size = size(); + boolean retainAll = this.k.retainAll(collection); + if (retainAll) { + int size2 = this.k.size(); + e eVar = e.this; + eVar.n = (size2 - size) + eVar.n; + e(); + } + return retainAll; + } + + @Override // java.util.AbstractCollection, java.util.Collection + public int size() { + d(); + return this.k.size(); + } + + @Override // java.util.AbstractCollection, java.lang.Object + public String toString() { + d(); + return this.k.toString(); + } + } + + /* compiled from: AbstractMapBasedMultimap */ + public class j extends e.i implements List { + + /* compiled from: AbstractMapBasedMultimap */ + public class a extends e.i.a implements ListIterator { + public a() { + super(); + } + + public a(int i) { + super(((List) j.this.k).listIterator(i)); + } + + @Override // java.util.ListIterator + public void add(V v) { + boolean isEmpty = j.this.isEmpty(); + b().add(v); + e.b(e.this); + if (isEmpty) { + j.this.c(); + } + } + + public final ListIterator b() { + a(); + return (ListIterator) this.j; + } + + @Override // java.util.ListIterator + public boolean hasPrevious() { + return b().hasPrevious(); + } + + @Override // java.util.ListIterator + public int nextIndex() { + return b().nextIndex(); + } + + @Override // java.util.ListIterator + public V previous() { + return b().previous(); + } + + @Override // java.util.ListIterator + public int previousIndex() { + return b().previousIndex(); + } + + @Override // java.util.ListIterator + public void set(V v) { + b().set(v); + } + } + + public j(@NullableDecl K k, List list, @NullableDecl e.i iVar) { + super(k, list, iVar); + } + + @Override // java.util.List + public void add(int i, V v) { + d(); + boolean isEmpty = this.k.isEmpty(); + ((List) this.k).add(i, v); + e.b(e.this); + if (isEmpty) { + c(); + } + } + + @Override // java.util.List + public boolean addAll(int i, Collection collection) { + if (collection.isEmpty()) { + return false; + } + int size = size(); + boolean addAll = ((List) this.k).addAll(i, collection); + if (addAll) { + int size2 = this.k.size(); + e eVar = e.this; + eVar.n = (size2 - size) + eVar.n; + if (size == 0) { + c(); + } + } + return addAll; + } + + @Override // java.util.List + public V get(int i) { + d(); + return (V) ((List) this.k).get(i); + } + + @Override // java.util.List + public int indexOf(Object obj) { + d(); + return ((List) this.k).indexOf(obj); + } + + @Override // java.util.List + public int lastIndexOf(Object obj) { + d(); + return ((List) this.k).lastIndexOf(obj); + } + + @Override // java.util.List + public ListIterator listIterator() { + d(); + return new a(); + } + + @Override // java.util.List + public ListIterator listIterator(int i) { + d(); + return new a(i); + } + + @Override // java.util.List + public V remove(int i) { + d(); + V v = (V) ((List) this.k).remove(i); + e.c(e.this); + e(); + return v; + } + + @Override // java.util.List + public V set(int i, V v) { + d(); + return (V) ((List) this.k).set(i, v); + } + + @Override // java.util.List + public List subList(int i, int i2) { + d(); + e eVar = e.this; + K k = this.j; + List subList = ((List) this.k).subList(i, i2); + e.i iVar = this.l; + if (iVar == null) { + iVar = this; + } + Objects.requireNonNull(eVar); + return subList instanceof RandomAccess ? new f(eVar, k, subList, iVar) : new j(k, subList, iVar); + } + } + + public e(Map> map) { + b.i.a.f.e.o.f.u(map.isEmpty()); + this.m = map; + } + + public static /* synthetic */ int b(e eVar) { + int i2 = eVar.n; + eVar.n = i2 + 1; + return i2; + } + + public static /* synthetic */ int c(e eVar) { + int i2 = eVar.n; + eVar.n = i2 - 1; + return i2; + } + + public void d() { + for (Collection collection : this.m.values()) { + collection.clear(); + } + this.m.clear(); + this.n = 0; + } + + public abstract Collection e(); +} diff --git a/app/src/main/java/b/i/b/b/e0.java b/app/src/main/java/b/i/b/b/e0.java new file mode 100644 index 0000000000..2e8dc404cf --- /dev/null +++ b/app/src/main/java/b/i/b/b/e0.java @@ -0,0 +1,8 @@ +package b.i.b.b; + +import java.util.Collection; +import java.util.Set; +/* compiled from: Multiset */ +public interface e0 extends Collection { + Set q(); +} diff --git a/app/src/main/java/b/i/b/b/f.java b/app/src/main/java/b/i/b/b/f.java new file mode 100644 index 0000000000..296e8310dd --- /dev/null +++ b/app/src/main/java/b/i/b/b/f.java @@ -0,0 +1,38 @@ +package b.i.b.b; + +import java.util.Map; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: AbstractMapEntry */ +public abstract class f implements Map.Entry { + @Override // java.util.Map.Entry, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + if (!(obj instanceof Map.Entry)) { + return false; + } + Map.Entry entry = (Map.Entry) obj; + return b.i.a.f.e.o.f.U(getKey(), entry.getKey()) && b.i.a.f.e.o.f.U(getValue(), entry.getValue()); + } + + @Override // java.util.Map.Entry + public abstract K getKey(); + + @Override // java.util.Map.Entry + public abstract V getValue(); + + @Override // java.util.Map.Entry, java.lang.Object + public int hashCode() { + K key = getKey(); + V value = getValue(); + int i = 0; + int hashCode = key == null ? 0 : key.hashCode(); + if (value != null) { + i = value.hashCode(); + } + return hashCode ^ i; + } + + @Override // java.lang.Object + public String toString() { + return ((Object) getKey()) + "=" + ((Object) getValue()); + } +} diff --git a/app/src/main/java/b/i/b/b/f0.java b/app/src/main/java/b/i/b/b/f0.java new file mode 100644 index 0000000000..0a94249007 --- /dev/null +++ b/app/src/main/java/b/i/b/b/f0.java @@ -0,0 +1,32 @@ +package b.i.b.b; + +import java.io.Serializable; +import java.util.Objects; +/* compiled from: NaturalOrdering */ +public final class f0 extends g0 implements Serializable { + public static final f0 j = new f0(); + private static final long serialVersionUID = 0; + + private Object readResolve() { + return j; + } + + @Override // b.i.b.b.g0 + public g0 b() { + return k0.j; + } + + @Override // b.i.b.b.g0, java.util.Comparator + public int compare(Object obj, Object obj2) { + Comparable comparable = (Comparable) obj; + Comparable comparable2 = (Comparable) obj2; + Objects.requireNonNull(comparable); + Objects.requireNonNull(comparable2); + return comparable.compareTo(comparable2); + } + + @Override // java.lang.Object + public String toString() { + return "Ordering.natural()"; + } +} diff --git a/app/src/main/java/b/i/b/b/g.java b/app/src/main/java/b/i/b/b/g.java new file mode 100644 index 0000000000..f57e69d319 --- /dev/null +++ b/app/src/main/java/b/i/b/b/g.java @@ -0,0 +1,86 @@ +package b.i.b.b; + +import b.i.b.b.e; +import java.util.AbstractCollection; +import java.util.Collection; +import java.util.Iterator; +import java.util.Map; +import java.util.NavigableMap; +import java.util.Objects; +import java.util.Set; +import java.util.SortedMap; +import org.checkerframework.checker.nullness.compatqual.MonotonicNonNullDecl; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: AbstractMultimap */ +public abstract class g implements b0 { + @MonotonicNonNullDecl + public transient Set j; + @MonotonicNonNullDecl + public transient Collection k; + @MonotonicNonNullDecl + public transient Map> l; + + /* compiled from: AbstractMultimap */ + public class a extends AbstractCollection { + public a() { + } + + @Override // java.util.AbstractCollection, java.util.Collection + public void clear() { + ((e) g.this).d(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean contains(@NullableDecl Object obj) { + for (Collection collection : g.this.a().values()) { + if (collection.contains(obj)) { + return true; + } + } + return false; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable + public Iterator iterator() { + e eVar = (e) g.this; + Objects.requireNonNull(eVar); + return new d(eVar); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public int size() { + return ((e) g.this).n; + } + } + + @Override // b.i.b.b.b0 + public Map> a() { + Map> map = this.l; + if (map == null) { + d0 d0Var = (d0) this; + Map> map2 = d0Var.m; + map = map2 instanceof NavigableMap ? new e.d((NavigableMap) d0Var.m) : map2 instanceof SortedMap ? new e.g((SortedMap) d0Var.m) : new e.a(d0Var.m); + this.l = map; + } + return map; + } + + @Override // java.lang.Object + public boolean equals(@NullableDecl Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof b0) { + return ((c) this).a().equals(((b0) obj).a()); + } + return false; + } + + public int hashCode() { + return a().hashCode(); + } + + public String toString() { + return a().toString(); + } +} diff --git a/app/src/main/java/b/i/b/b/g0.java b/app/src/main/java/b/i/b/b/g0.java new file mode 100644 index 0000000000..faa3e63526 --- /dev/null +++ b/app/src/main/java/b/i/b/b/g0.java @@ -0,0 +1,19 @@ +package b.i.b.b; + +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.util.Comparator; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: Ordering */ +public abstract class g0 implements Comparator { + public static g0 a(Comparator comparator) { + return comparator instanceof g0 ? (g0) comparator : new i(comparator); + } + + public g0 b() { + return new l0(this); + } + + @Override // java.util.Comparator + @CanIgnoreReturnValue + public abstract int compare(@NullableDecl T t, @NullableDecl T t2); +} diff --git a/app/src/main/java/b/i/b/b/h.java b/app/src/main/java/b/i/b/b/h.java new file mode 100644 index 0000000000..948baec405 --- /dev/null +++ b/app/src/main/java/b/i/b/b/h.java @@ -0,0 +1,83 @@ +package b.i.b.b; + +import java.util.Collection; +import java.util.Collections; +import java.util.IdentityHashMap; +import java.util.Iterator; +import java.util.Objects; +import java.util.Set; +/* compiled from: Collections2 */ +public final class h { + + /* compiled from: Sets */ + public static class a extends p0 { + public final /* synthetic */ Set j; + public final /* synthetic */ Set k; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(Set set, Set set2) { + super(null); + this.j = set; + this.k = set2; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(Object obj) { + return this.j.contains(obj) && this.k.contains(obj); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean containsAll(Collection collection) { + return this.j.containsAll(collection) && this.k.containsAll(collection); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean isEmpty() { + return Collections.disjoint(this.k, this.j); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set, java.lang.Iterable + public Iterator iterator() { + return new n0(this); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + int i = 0; + for (Object obj : this.j) { + if (this.k.contains(obj)) { + i++; + } + } + return i; + } + } + + public static int a(Set set) { + Iterator it = set.iterator(); + int i = 0; + while (it.hasNext()) { + Object next = it.next(); + i = ~(~(i + (next != null ? next.hashCode() : 0))); + } + return i; + } + + public static p0 b(Set set, Set set2) { + Objects.requireNonNull(set, "set1"); + Objects.requireNonNull(set2, "set2"); + return new a(set, set2); + } + + public static Set c() { + return Collections.newSetFromMap(new IdentityHashMap()); + } + + public static boolean d(Set set, Iterator it) { + boolean z2 = false; + while (it.hasNext()) { + z2 |= set.remove(it.next()); + } + return z2; + } +} diff --git a/app/src/main/java/b/i/b/b/h0.java b/app/src/main/java/b/i/b/b/h0.java new file mode 100644 index 0000000000..0edec0c0a0 --- /dev/null +++ b/app/src/main/java/b/i/b/b/h0.java @@ -0,0 +1,51 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +/* compiled from: RegularImmutableList */ +public class h0 extends p { + public static final p l = new h0(new Object[0], 0); + public final transient Object[] m; + public final transient int n; + + public h0(Object[] objArr, int i) { + this.m = objArr; + this.n = i; + } + + @Override // b.i.b.b.p, b.i.b.b.n + public int d(Object[] objArr, int i) { + System.arraycopy(this.m, 0, objArr, i, this.n); + return i + this.n; + } + + @Override // b.i.b.b.n + public Object[] e() { + return this.m; + } + + @Override // b.i.b.b.n + public int g() { + return this.n; + } + + @Override // java.util.List + public E get(int i) { + f.w(i, this.n); + return (E) this.m[i]; + } + + @Override // b.i.b.b.n + public int h() { + return 0; + } + + @Override // b.i.b.b.n + public boolean i() { + return false; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public int size() { + return this.n; + } +} diff --git a/app/src/main/java/b/i/b/b/i.java b/app/src/main/java/b/i/b/b/i.java new file mode 100644 index 0000000000..43979e4659 --- /dev/null +++ b/app/src/main/java/b/i/b/b/i.java @@ -0,0 +1,42 @@ +package b.i.b.b; + +import java.io.Serializable; +import java.util.Comparator; +import java.util.Objects; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ComparatorOrdering */ +public final class i extends g0 implements Serializable { + private static final long serialVersionUID = 0; + public final Comparator comparator; + + public i(Comparator comparator) { + Objects.requireNonNull(comparator); + this.comparator = comparator; + } + + @Override // b.i.b.b.g0, java.util.Comparator + public int compare(T t, T t2) { + return this.comparator.compare(t, t2); + } + + @Override // java.util.Comparator, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof i) { + return this.comparator.equals(((i) obj).comparator); + } + return false; + } + + @Override // java.lang.Object + public int hashCode() { + return this.comparator.hashCode(); + } + + @Override // java.lang.Object + public String toString() { + return this.comparator.toString(); + } +} diff --git a/app/src/main/java/b/i/b/b/i0.java b/app/src/main/java/b/i/b/b/i0.java new file mode 100644 index 0000000000..93bf90e5e1 --- /dev/null +++ b/app/src/main/java/b/i/b/b/i0.java @@ -0,0 +1,228 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import java.util.AbstractMap; +import java.util.Map; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: RegularImmutableMap */ +public final class i0 extends q { + public static final q m = new i0(null, new Object[0], 0); + private static final long serialVersionUID = 0; + public final transient int[] n; + public final transient Object[] o; + public final transient int p; + + /* compiled from: RegularImmutableMap */ + public static class a extends r> { + public final transient q m; + public final transient Object[] n; + public final transient int o; + public final transient int p; + + /* compiled from: RegularImmutableMap */ + /* renamed from: b.i.b.b.i0$a$a reason: collision with other inner class name */ + public class C0126a extends p> { + public C0126a() { + } + + @Override // java.util.List + public Object get(int i) { + f.w(i, a.this.p); + a aVar = a.this; + Object[] objArr = aVar.n; + int i2 = i * 2; + int i3 = aVar.o; + return new AbstractMap.SimpleImmutableEntry(objArr[i2 + i3], objArr[i2 + (i3 ^ 1)]); + } + + @Override // b.i.b.b.n + public boolean i() { + return true; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public int size() { + return a.this.p; + } + } + + public a(q qVar, Object[] objArr, int i, int i2) { + this.m = qVar; + this.n = objArr; + this.o = i; + this.p = i2; + } + + @Override // b.i.b.b.n, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(Object obj) { + if (!(obj instanceof Map.Entry)) { + return false; + } + Map.Entry entry = (Map.Entry) obj; + Object key = entry.getKey(); + Object value = entry.getValue(); + return value != null && value.equals(this.m.get(key)); + } + + @Override // b.i.b.b.n + public int d(Object[] objArr, int i) { + return c().d(objArr, i); + } + + @Override // b.i.b.b.n + public boolean i() { + return true; + } + + @Override // b.i.b.b.n + /* renamed from: j */ + public s0> iterator() { + return c().listIterator(); + } + + @Override // b.i.b.b.r + public p> o() { + return new C0126a(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return this.p; + } + } + + /* compiled from: RegularImmutableMap */ + public static final class b extends r { + public final transient q m; + public final transient p n; + + public b(q qVar, p pVar) { + this.m = qVar; + this.n = pVar; + } + + @Override // b.i.b.b.r, b.i.b.b.n + public p c() { + return this.n; + } + + @Override // b.i.b.b.n, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(@NullableDecl Object obj) { + return this.m.get(obj) != null; + } + + @Override // b.i.b.b.n + public int d(Object[] objArr, int i) { + return this.n.d(objArr, i); + } + + @Override // b.i.b.b.n + public boolean i() { + return true; + } + + @Override // b.i.b.b.n + /* renamed from: j */ + public s0 iterator() { + return this.n.listIterator(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return this.m.size(); + } + } + + /* compiled from: RegularImmutableMap */ + public static final class c extends p { + public final transient Object[] l; + public final transient int m; + public final transient int n; + + public c(Object[] objArr, int i, int i2) { + this.l = objArr; + this.m = i; + this.n = i2; + } + + @Override // java.util.List + public Object get(int i) { + f.w(i, this.n); + return this.l[(i * 2) + this.m]; + } + + @Override // b.i.b.b.n + public boolean i() { + return true; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public int size() { + return this.n; + } + } + + public i0(int[] iArr, Object[] objArr, int i) { + this.n = iArr; + this.o = objArr; + this.p = i; + } + + @Override // b.i.b.b.q + public r> b() { + return new a(this, this.o, 0, this.p); + } + + @Override // b.i.b.b.q + public r c() { + return new b(this, new c(this.o, 0, this.p)); + } + + @Override // b.i.b.b.q + public n d() { + return new c(this.o, 1, this.p); + } + + @Override // b.i.b.b.q + public boolean f() { + return false; + } + + @Override // b.i.b.b.q, java.util.Map + @NullableDecl + public V get(@NullableDecl Object obj) { + int[] iArr = this.n; + Object[] objArr = this.o; + int i = this.p; + if (obj == null) { + return null; + } + if (i == 1) { + if (objArr[0].equals(obj)) { + return (V) objArr[1]; + } + return null; + } else if (iArr == null) { + return null; + } else { + int length = iArr.length - 1; + int Y0 = f.Y0(obj.hashCode()); + while (true) { + int i2 = Y0 & length; + int i3 = iArr[i2]; + if (i3 == -1) { + return null; + } + if (objArr[i3].equals(obj)) { + return (V) objArr[i3 ^ 1]; + } + Y0 = i2 + 1; + } + } + } + + @Override // java.util.Map + public int size() { + return this.p; + } +} diff --git a/app/src/main/java/b/i/b/b/j.java b/app/src/main/java/b/i/b/b/j.java new file mode 100644 index 0000000000..80076ccc56 --- /dev/null +++ b/app/src/main/java/b/i/b/b/j.java @@ -0,0 +1,96 @@ +package b.i.b.b; + +import java.util.Comparator; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ComparisonChain */ +public abstract class j { + public static final j a = new a(); + + /* renamed from: b reason: collision with root package name */ + public static final j f1631b = new b(-1); + public static final j c = new b(1); + + /* compiled from: ComparisonChain */ + public static class a extends j { + public a() { + super(null); + } + + @Override // b.i.b.b.j + public j a(int i, int i2) { + return f(i < i2 ? -1 : i > i2 ? 1 : 0); + } + + @Override // b.i.b.b.j + public j b(@NullableDecl T t, @NullableDecl T t2, Comparator comparator) { + return f(comparator.compare(t, t2)); + } + + @Override // b.i.b.b.j + public j c(boolean z2, boolean z3) { + return f(z2 == z3 ? 0 : z2 ? 1 : -1); + } + + @Override // b.i.b.b.j + public j d(boolean z2, boolean z3) { + return f(z3 == z2 ? 0 : z3 ? 1 : -1); + } + + @Override // b.i.b.b.j + public int e() { + return 0; + } + + public j f(int i) { + return i < 0 ? j.f1631b : i > 0 ? j.c : j.a; + } + } + + /* compiled from: ComparisonChain */ + public static final class b extends j { + public final int d; + + public b(int i) { + super(null); + this.d = i; + } + + @Override // b.i.b.b.j + public j a(int i, int i2) { + return this; + } + + @Override // b.i.b.b.j + public j b(@NullableDecl T t, @NullableDecl T t2, @NullableDecl Comparator comparator) { + return this; + } + + @Override // b.i.b.b.j + public j c(boolean z2, boolean z3) { + return this; + } + + @Override // b.i.b.b.j + public j d(boolean z2, boolean z3) { + return this; + } + + @Override // b.i.b.b.j + public int e() { + return this.d; + } + } + + public j(a aVar) { + } + + public abstract j a(int i, int i2); + + public abstract j b(@NullableDecl T t, @NullableDecl T t2, Comparator comparator); + + public abstract j c(boolean z2, boolean z3); + + public abstract j d(boolean z2, boolean z3); + + public abstract int e(); +} diff --git a/app/src/main/java/b/i/b/b/j0.java b/app/src/main/java/b/i/b/b/j0.java new file mode 100644 index 0000000000..520a05a165 --- /dev/null +++ b/app/src/main/java/b/i/b/b/j0.java @@ -0,0 +1,88 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: RegularImmutableSet */ +public final class j0 extends r { + public static final j0 m = new j0<>(new Object[0], 0, null, 0, 0); + public final transient Object[] n; + public final transient Object[] o; + public final transient int p; + public final transient int q; + public final transient int r; + + public j0(Object[] objArr, int i, Object[] objArr2, int i2, int i3) { + this.n = objArr; + this.o = objArr2; + this.p = i2; + this.q = i; + this.r = i3; + } + + @Override // b.i.b.b.n, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(@NullableDecl Object obj) { + Object[] objArr = this.o; + if (obj == null || objArr == null) { + return false; + } + int Y0 = f.Y0(obj.hashCode()); + while (true) { + int i = Y0 & this.p; + Object obj2 = objArr[i]; + if (obj2 == null) { + return false; + } + if (obj2.equals(obj)) { + return true; + } + Y0 = i + 1; + } + } + + @Override // b.i.b.b.n + public int d(Object[] objArr, int i) { + System.arraycopy(this.n, 0, objArr, i, this.r); + return i + this.r; + } + + @Override // b.i.b.b.n + public Object[] e() { + return this.n; + } + + @Override // b.i.b.b.n + public int g() { + return this.r; + } + + @Override // b.i.b.b.n + public int h() { + return 0; + } + + @Override // b.i.b.b.r, java.util.Collection, java.lang.Object, java.util.Set + public int hashCode() { + return this.q; + } + + @Override // b.i.b.b.n + public boolean i() { + return false; + } + + @Override // b.i.b.b.n + /* renamed from: j */ + public s0 iterator() { + return c().listIterator(); + } + + @Override // b.i.b.b.r + public p o() { + return p.l(this.n, this.r); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return this.r; + } +} diff --git a/app/src/main/java/b/i/b/b/k.java b/app/src/main/java/b/i/b/b/k.java new file mode 100644 index 0000000000..ad086e04e4 --- /dev/null +++ b/app/src/main/java/b/i/b/b/k.java @@ -0,0 +1,31 @@ +package b.i.b.b; + +import b.i.b.b.v; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.util.concurrent.ConcurrentMap; +/* compiled from: ForwardingConcurrentMap */ +public abstract class k extends l implements ConcurrentMap { + @Override // java.util.Map, java.util.concurrent.ConcurrentMap + @CanIgnoreReturnValue + public V putIfAbsent(K k, V v) { + return ((v.b) this).j.putIfAbsent(k, v); + } + + @Override // java.util.Map, java.util.concurrent.ConcurrentMap + @CanIgnoreReturnValue + public boolean remove(Object obj, Object obj2) { + return ((v.b) this).j.remove(obj, obj2); + } + + @Override // java.util.Map, java.util.concurrent.ConcurrentMap + @CanIgnoreReturnValue + public V replace(K k, V v) { + return ((v.b) this).j.replace(k, v); + } + + @Override // java.util.Map, java.util.concurrent.ConcurrentMap + @CanIgnoreReturnValue + public boolean replace(K k, V v, V v2) { + return ((v.b) this).j.replace(k, v, v2); + } +} diff --git a/app/src/main/java/b/i/b/b/k0.java b/app/src/main/java/b/i/b/b/k0.java new file mode 100644 index 0000000000..2e0e7ba396 --- /dev/null +++ b/app/src/main/java/b/i/b/b/k0.java @@ -0,0 +1,34 @@ +package b.i.b.b; + +import java.io.Serializable; +import java.util.Objects; +/* compiled from: ReverseNaturalOrdering */ +public final class k0 extends g0 implements Serializable { + public static final k0 j = new k0(); + private static final long serialVersionUID = 0; + + private Object readResolve() { + return j; + } + + @Override // b.i.b.b.g0 + public g0 b() { + return f0.j; + } + + @Override // b.i.b.b.g0, java.util.Comparator + public int compare(Object obj, Object obj2) { + Comparable comparable = (Comparable) obj; + Comparable comparable2 = (Comparable) obj2; + Objects.requireNonNull(comparable); + if (comparable == comparable2) { + return 0; + } + return comparable2.compareTo(comparable); + } + + @Override // java.lang.Object + public String toString() { + return "Ordering.natural().reverse()"; + } +} diff --git a/app/src/main/java/b/i/b/b/l.java b/app/src/main/java/b/i/b/b/l.java new file mode 100644 index 0000000000..17279507c0 --- /dev/null +++ b/app/src/main/java/b/i/b/b/l.java @@ -0,0 +1,82 @@ +package b.i.b.b; + +import b.i.b.b.v; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.util.Collection; +import java.util.Map; +import java.util.Set; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ForwardingMap */ +public abstract class l extends m implements Map { + @Override // java.util.Map + public void clear() { + ((v.b) this).j.clear(); + } + + @Override // java.util.Map + public boolean containsKey(@NullableDecl Object obj) { + return ((v.b) this).j.containsKey(obj); + } + + @Override // java.util.Map + public boolean containsValue(@NullableDecl Object obj) { + return ((v.b) this).j.containsValue(obj); + } + + @Override // java.util.Map + public Set> entrySet() { + return ((v.b) this).j.entrySet(); + } + + @Override // java.util.Map, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + return obj == this || ((v.b) this).j.equals(obj); + } + + @Override // java.util.Map + public V get(@NullableDecl Object obj) { + return ((v.b) this).j.get(obj); + } + + @Override // java.util.Map, java.lang.Object + public int hashCode() { + return ((v.b) this).j.hashCode(); + } + + @Override // java.util.Map + public boolean isEmpty() { + return ((v.b) this).j.isEmpty(); + } + + @Override // java.util.Map + public Set keySet() { + return ((v.b) this).j.keySet(); + } + + @Override // java.util.Map + @CanIgnoreReturnValue + public V put(K k, V v) { + return ((v.b) this).j.put(k, v); + } + + @Override // java.util.Map + public void putAll(Map map) { + ((v.b) this).j.putAll(map); + } + + @Override // java.util.Map + @CanIgnoreReturnValue + public V remove(Object obj) { + return ((v.b) this).j.remove(obj); + } + + @Override // java.util.Map + public int size() { + return ((v.b) this).j.size(); + } + + @Override // java.util.Map + public Collection values() { + return ((v.b) this).j.values(); + } +} diff --git a/app/src/main/java/b/i/b/b/l0.java b/app/src/main/java/b/i/b/b/l0.java new file mode 100644 index 0000000000..30bc1babcc --- /dev/null +++ b/app/src/main/java/b/i/b/b/l0.java @@ -0,0 +1,45 @@ +package b.i.b.b; + +import java.io.Serializable; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ReverseOrdering */ +public final class l0 extends g0 implements Serializable { + private static final long serialVersionUID = 0; + public final g0 forwardOrder; + + public l0(g0 g0Var) { + this.forwardOrder = g0Var; + } + + /* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: b.i.b.b.g0, b.i.b.b.g0 */ + @Override // b.i.b.b.g0 + public g0 b() { + return (g0) this.forwardOrder; + } + + @Override // b.i.b.b.g0, java.util.Comparator + public int compare(T t, T t2) { + return this.forwardOrder.compare(t2, t); + } + + @Override // java.util.Comparator, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof l0) { + return this.forwardOrder.equals(((l0) obj).forwardOrder); + } + return false; + } + + @Override // java.lang.Object + public int hashCode() { + return -this.forwardOrder.hashCode(); + } + + @Override // java.lang.Object + public String toString() { + return this.forwardOrder + ".reverse()"; + } +} diff --git a/app/src/main/java/b/i/b/b/m.java b/app/src/main/java/b/i/b/b/m.java new file mode 100644 index 0000000000..d5150bedd0 --- /dev/null +++ b/app/src/main/java/b/i/b/b/m.java @@ -0,0 +1,9 @@ +package b.i.b.b; + +import b.i.b.b.v; +/* compiled from: ForwardingObject */ +public abstract class m { + public String toString() { + return ((v.b) this).j.toString(); + } +} diff --git a/app/src/main/java/b/i/b/b/m0.java b/app/src/main/java/b/i/b/b/m0.java new file mode 100644 index 0000000000..e9aa075bca --- /dev/null +++ b/app/src/main/java/b/i/b/b/m0.java @@ -0,0 +1,4 @@ +package b.i.b.b; +/* compiled from: Sets */ +public final class m0 extends p0 { +} diff --git a/app/src/main/java/b/i/b/b/n.java b/app/src/main/java/b/i/b/b/n.java new file mode 100644 index 0000000000..2988bf6d02 --- /dev/null +++ b/app/src/main/java/b/i/b/b/n.java @@ -0,0 +1,153 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import b.i.b.b.p; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.io.Serializable; +import java.lang.reflect.Array; +import java.util.AbstractCollection; +import java.util.Arrays; +import java.util.Collection; +import java.util.Objects; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ImmutableCollection */ +public abstract class n extends AbstractCollection implements Serializable { + public static final Object[] j = new Object[0]; + + /* compiled from: ImmutableCollection */ + public static abstract class a extends b { + public Object[] a; + + /* renamed from: b reason: collision with root package name */ + public int f1632b = 0; + public boolean c; + + public a(int i) { + f.z(i, "initialCapacity"); + this.a = new Object[i]; + } + } + + /* compiled from: ImmutableCollection */ + public static abstract class b { + public static int a(int i, int i2) { + if (i2 >= 0) { + int i3 = i + (i >> 1) + 1; + if (i3 < i2) { + i3 = Integer.highestOneBit(i2 - 1) << 1; + } + if (i3 < 0) { + return Integer.MAX_VALUE; + } + return i3; + } + throw new AssertionError("cannot store more than MAX_VALUE elements"); + } + } + + @Override // java.util.AbstractCollection, java.util.Collection + @CanIgnoreReturnValue + @Deprecated + public final boolean add(E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @CanIgnoreReturnValue + @Deprecated + public final boolean addAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + public p c() { + if (!isEmpty()) { + return p.k(toArray()); + } + a aVar = p.k; + return (p) h0.l; + } + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final void clear() { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public abstract boolean contains(@NullableDecl Object obj); + + @CanIgnoreReturnValue + public int d(Object[] objArr, int i) { + s0 j2 = iterator(); + while (j2.hasNext()) { + objArr[i] = j2.next(); + i++; + } + return i; + } + + public Object[] e() { + return null; + } + + public int g() { + throw new UnsupportedOperationException(); + } + + public int h() { + throw new UnsupportedOperationException(); + } + + public abstract boolean i(); + + /* renamed from: j */ + public abstract s0 iterator(); + + @Override // java.util.AbstractCollection, java.util.Collection + @CanIgnoreReturnValue + @Deprecated + public final boolean remove(Object obj) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @CanIgnoreReturnValue + @Deprecated + public final boolean removeAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @CanIgnoreReturnValue + @Deprecated + public final boolean retainAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public final Object[] toArray() { + return toArray(j); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @CanIgnoreReturnValue + public final T[] toArray(T[] tArr) { + Objects.requireNonNull(tArr); + int size = size(); + if (tArr.length < size) { + Object[] e = e(); + if (e != null) { + return (T[]) Arrays.copyOfRange(e, h(), g(), tArr.getClass()); + } + tArr = (T[]) ((Object[]) Array.newInstance(tArr.getClass().getComponentType(), size)); + } else if (tArr.length > size) { + tArr[size] = null; + } + d(tArr, 0); + return tArr; + } + + public Object writeReplace() { + return new p.c(toArray()); + } +} diff --git a/app/src/main/java/b/i/b/b/n0.java b/app/src/main/java/b/i/b/b/n0.java new file mode 100644 index 0000000000..64b3620cdc --- /dev/null +++ b/app/src/main/java/b/i/b/b/n0.java @@ -0,0 +1,14 @@ +package b.i.b.b; + +import b.i.b.b.h; +import java.util.Iterator; +/* compiled from: Sets */ +public class n0 extends b { + public final Iterator l; + public final /* synthetic */ h.a m; + + public n0(h.a aVar) { + this.m = aVar; + this.l = aVar.j.iterator(); + } +} diff --git a/app/src/main/java/b/i/b/b/o.java b/app/src/main/java/b/i/b/b/o.java new file mode 100644 index 0000000000..e615e85b77 --- /dev/null +++ b/app/src/main/java/b/i/b/b/o.java @@ -0,0 +1,34 @@ +package b.i.b.b; + +import java.io.Serializable; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ImmutableEntry */ +public class o extends f implements Serializable { + private static final long serialVersionUID = 0; + @NullableDecl + public final K key; + @NullableDecl + public final V value; + + public o(@NullableDecl K k, @NullableDecl V v) { + this.key = k; + this.value = v; + } + + @Override // b.i.b.b.f, java.util.Map.Entry + @NullableDecl + public final K getKey() { + return this.key; + } + + @Override // b.i.b.b.f, java.util.Map.Entry + @NullableDecl + public final V getValue() { + return this.value; + } + + @Override // java.util.Map.Entry + public final V setValue(V v) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/b/b/o0.java b/app/src/main/java/b/i/b/b/o0.java new file mode 100644 index 0000000000..d2ca9e15d3 --- /dev/null +++ b/app/src/main/java/b/i/b/b/o0.java @@ -0,0 +1,35 @@ +package b.i.b.b; + +import java.util.AbstractSet; +import java.util.Collection; +import java.util.Iterator; +import java.util.Objects; +import java.util.Set; +/* compiled from: Sets */ +public abstract class o0 extends AbstractSet { + @Override // java.util.AbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean removeAll(Collection collection) { + Objects.requireNonNull(collection); + if (collection instanceof e0) { + collection = ((e0) collection).q(); + } + if (!(collection instanceof Set) || collection.size() <= size()) { + return h.d(this, collection.iterator()); + } + Iterator it = iterator(); + boolean z2 = false; + while (it.hasNext()) { + if (collection.contains(it.next())) { + it.remove(); + z2 = true; + } + } + return z2; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean retainAll(Collection collection) { + Objects.requireNonNull(collection); + return super.retainAll(collection); + } +} diff --git a/app/src/main/java/b/i/b/b/p.java b/app/src/main/java/b/i/b/b/p.java new file mode 100644 index 0000000000..3953b8d6a7 --- /dev/null +++ b/app/src/main/java/b/i/b/b/p.java @@ -0,0 +1,330 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import b.i.b.b.n; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.io.InvalidObjectException; +import java.io.ObjectInputStream; +import java.io.Serializable; +import java.util.Arrays; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.ListIterator; +import java.util.Objects; +import java.util.RandomAccess; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ImmutableList */ +public abstract class p extends n implements List, RandomAccess { + public static final a k = new b(h0.l, 0); + + /* compiled from: ImmutableList */ + public static final class a extends n.a { + public a() { + super(4); + } + + @CanIgnoreReturnValue + public a b(E e) { + Objects.requireNonNull(e); + int i = this.f1632b + 1; + Object[] objArr = this.a; + if (objArr.length < i) { + this.a = Arrays.copyOf(objArr, n.b.a(objArr.length, i)); + this.c = false; + } else if (this.c) { + this.a = (Object[]) objArr.clone(); + this.c = false; + } + Object[] objArr2 = this.a; + int i2 = this.f1632b; + this.f1632b = i2 + 1; + objArr2[i2] = e; + return this; + } + + public p c() { + this.c = true; + return p.l(this.a, this.f1632b); + } + } + + /* compiled from: ImmutableList */ + public static class b extends a { + public final p l; + + public b(p pVar, int i) { + super(pVar.size(), i); + this.l = pVar; + } + } + + /* compiled from: ImmutableList */ + public static class c implements Serializable { + private static final long serialVersionUID = 0; + public final Object[] elements; + + public c(Object[] objArr) { + this.elements = objArr; + } + + public Object readResolve() { + return p.o(this.elements); + } + } + + /* compiled from: ImmutableList */ + public class d extends p { + public final transient int l; + public final transient int m; + + public d(int i, int i2) { + this.l = i; + this.m = i2; + } + + @Override // b.i.b.b.n + public Object[] e() { + return p.this.e(); + } + + @Override // b.i.b.b.n + public int g() { + return p.this.h() + this.l + this.m; + } + + @Override // java.util.List + public E get(int i) { + f.w(i, this.m); + return p.this.get(i + this.l); + } + + @Override // b.i.b.b.n + public int h() { + return p.this.h() + this.l; + } + + @Override // b.i.b.b.n + public boolean i() { + return true; + } + + @Override // b.i.b.b.p, b.i.b.b.n, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set + public Iterator iterator() { + return listIterator(); + } + + @Override // b.i.b.b.p, java.util.List + public /* bridge */ /* synthetic */ ListIterator listIterator() { + return listIterator(); + } + + @Override // b.i.b.b.p, java.util.List + public /* bridge */ /* synthetic */ ListIterator listIterator(int i) { + return listIterator(i); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public int size() { + return this.m; + } + + @Override // b.i.b.b.p + /* renamed from: w */ + public p subList(int i, int i2) { + f.C(i, i2, this.m); + p pVar = p.this; + int i3 = this.l; + return pVar.subList(i + i3, i2 + i3); + } + } + + public static p k(Object[] objArr) { + return l(objArr, objArr.length); + } + + public static p l(Object[] objArr, int i) { + return i == 0 ? (p) h0.l : new h0(objArr, i); + } + + public static p m(Object... objArr) { + int length = objArr.length; + for (int i = 0; i < length; i++) { + f.x(objArr[i], i); + } + return l(objArr, objArr.length); + } + + public static p n(Collection collection) { + if (!(collection instanceof n)) { + return m(collection.toArray()); + } + p c2 = ((n) collection).c(); + return c2.i() ? k(c2.toArray()) : c2; + } + + public static p o(E[] eArr) { + return eArr.length == 0 ? (p) h0.l : m((Object[]) eArr.clone()); + } + + private void readObject(ObjectInputStream objectInputStream) throws InvalidObjectException { + throw new InvalidObjectException("Use SerializedForm"); + } + + public static p u(E e) { + return m(e); + } + + public static p v(E e, E e2, E e3, E e4, E e5) { + return m(e, e2, e3, e4, e5); + } + + @Override // java.util.List + @Deprecated + public final void add(int i, E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.List + @CanIgnoreReturnValue + @Deprecated + public final boolean addAll(int i, Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // b.i.b.b.n + public final p c() { + return this; + } + + @Override // b.i.b.b.n, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(@NullableDecl Object obj) { + return indexOf(obj) >= 0; + } + + @Override // b.i.b.b.n + public int d(Object[] objArr, int i) { + int size = size(); + for (int i2 = 0; i2 < size; i2++) { + objArr[i + i2] = get(i2); + } + return i + size; + } + + /* JADX WARNING: Removed duplicated region for block: B:17:0x003f */ + @Override // java.util.Collection, java.lang.Object, java.util.List + public boolean equals(@NullableDecl Object obj) { + if (obj != this) { + if (!(obj instanceof List)) { + return false; + } + List list = (List) obj; + int size = size(); + if (size != list.size()) { + return false; + } + if (list instanceof RandomAccess) { + for (int i = 0; i < size; i++) { + if (!f.U(get(i), list.get(i))) { + return false; + } + } + } else { + Iterator it = list.iterator(); + for (E e : this) { + if (!it.hasNext() || !f.U(e, it.next())) { + return false; + } + while (r2.hasNext()) { + } + } + return !it.hasNext(); + } + } + return true; + } + + @Override // java.util.Collection, java.lang.Object, java.util.List + public int hashCode() { + int size = size(); + int i = 1; + for (int i2 = 0; i2 < size; i2++) { + i = ~(~(get(i2).hashCode() + (i * 31))); + } + return i; + } + + @Override // java.util.List + public int indexOf(@NullableDecl Object obj) { + if (obj == null) { + return -1; + } + int size = size(); + for (int i = 0; i < size; i++) { + if (obj.equals(get(i))) { + return i; + } + } + return -1; + } + + @Override // b.i.b.b.n, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set + public Iterator iterator() { + return listIterator(); + } + + @Override // b.i.b.b.n + public s0 j() { + return listIterator(); + } + + @Override // java.util.List + public int lastIndexOf(@NullableDecl Object obj) { + if (obj == null) { + return -1; + } + for (int size = size() - 1; size >= 0; size--) { + if (obj.equals(get(size))) { + return size; + } + } + return -1; + } + + /* renamed from: p */ + public a listIterator() { + return listIterator(0); + } + + /* renamed from: r */ + public a listIterator(int i) { + f.B(i, size()); + return isEmpty() ? (a) k : new b(this, i); + } + + @Override // java.util.List + @CanIgnoreReturnValue + @Deprecated + public final E remove(int i) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.List + @CanIgnoreReturnValue + @Deprecated + public final E set(int i, E e) { + throw new UnsupportedOperationException(); + } + + /* renamed from: w */ + public p subList(int i, int i2) { + f.C(i, i2, size()); + int i3 = i2 - i; + return i3 == size() ? this : i3 == 0 ? (p) h0.l : new d(i, i3); + } + + @Override // b.i.b.b.n + public Object writeReplace() { + return new c(toArray()); + } +} diff --git a/app/src/main/java/b/i/b/b/p0.java b/app/src/main/java/b/i/b/b/p0.java new file mode 100644 index 0000000000..7e15457488 --- /dev/null +++ b/app/src/main/java/b/i/b/b/p0.java @@ -0,0 +1,51 @@ +package b.i.b.b; + +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import java.util.AbstractSet; +import java.util.Collection; +/* compiled from: Sets */ +public abstract class p0 extends AbstractSet { + public p0(m0 m0Var) { + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + @CanIgnoreReturnValue + @Deprecated + public final boolean add(E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + @CanIgnoreReturnValue + @Deprecated + public final boolean addAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + @Deprecated + public final void clear() { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + @CanIgnoreReturnValue + @Deprecated + public final boolean remove(Object obj) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set + @CanIgnoreReturnValue + @Deprecated + public final boolean removeAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + @CanIgnoreReturnValue + @Deprecated + public final boolean retainAll(Collection collection) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/b/b/q.java b/app/src/main/java/b/i/b/b/q.java new file mode 100644 index 0000000000..0eb23c2791 --- /dev/null +++ b/app/src/main/java/b/i/b/b/q.java @@ -0,0 +1,304 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import b.i.b.b.n; +import com.discord.api.permission.Permission; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import com.google.errorprone.annotations.concurrent.LazyInit; +import com.google.j2objc.annotations.RetainedWith; +import java.io.Serializable; +import java.util.Arrays; +import java.util.Collection; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; +import java.util.SortedMap; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ImmutableMap */ +public abstract class q implements Map, Serializable { + @LazyInit + public transient r> j; + @RetainedWith + @LazyInit + public transient r k; + @RetainedWith + @LazyInit + public transient n l; + + /* compiled from: ImmutableMap */ + public static class a { + public Object[] a; + + /* renamed from: b reason: collision with root package name */ + public int f1633b = 0; + public boolean c = false; + + public a(int i) { + this.a = new Object[(i * 2)]; + } + + /* JADX WARNING: Code restructure failed: missing block: B:14:0x0058, code lost: + r5[r10] = r8; + r4 = r4 + 1; + */ + public q a() { + this.c = true; + int i = this.f1633b; + Object[] objArr = this.a; + if (i == 0) { + return (i0) i0.m; + } + int[] iArr = null; + int i2 = 0; + if (i == 1) { + f.y(objArr[0], objArr[1]); + return new i0(null, objArr, 1); + } + f.B(i, objArr.length >> 1); + int k = r.k(i); + if (i == 1) { + f.y(objArr[0], objArr[1]); + } else { + int i3 = k - 1; + int[] iArr2 = new int[k]; + Arrays.fill(iArr2, -1); + while (i2 < i) { + int i4 = i2 * 2; + int i5 = i4 + 0; + Object obj = objArr[i5]; + Object obj2 = objArr[i4 + 1]; + f.y(obj, obj2); + int Y0 = f.Y0(obj.hashCode()); + while (true) { + int i6 = Y0 & i3; + int i7 = iArr2[i6]; + if (i7 == -1) { + break; + } else if (!objArr[i7].equals(obj)) { + Y0 = i6 + 1; + } else { + throw new IllegalArgumentException("Multiple entries with same key: " + obj + "=" + obj2 + " and " + objArr[i7] + "=" + objArr[1 ^ i7]); + } + } + } + iArr = iArr2; + } + return new i0(iArr, objArr, i); + } + + public final void b(int i) { + int i2 = i * 2; + Object[] objArr = this.a; + if (i2 > objArr.length) { + this.a = Arrays.copyOf(objArr, n.b.a(objArr.length, i2)); + this.c = false; + } + } + + @CanIgnoreReturnValue + public a c(K k, V v) { + b(this.f1633b + 1); + f.y(k, v); + Object[] objArr = this.a; + int i = this.f1633b; + objArr[i * 2] = k; + objArr[(i * 2) + 1] = v; + this.f1633b = i + 1; + return this; + } + } + + /* compiled from: ImmutableMap */ + public static class b implements Serializable { + private static final long serialVersionUID = 0; + private final Object[] keys; + private final Object[] values; + + public b(q qVar) { + this.keys = new Object[qVar.size()]; + this.values = new Object[qVar.size()]; + s0> j = qVar.entrySet().iterator(); + int i = 0; + while (j.hasNext()) { + Map.Entry next = j.next(); + this.keys[i] = next.getKey(); + this.values[i] = next.getValue(); + i++; + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: b.i.b.b.q$a */ + /* JADX WARN: Multi-variable type inference failed */ + public Object readResolve() { + a aVar = new a(this.keys.length); + int i = 0; + while (true) { + Object[] objArr = this.keys; + if (i >= objArr.length) { + return aVar.a(); + } + aVar.c(objArr[i], this.values[i]); + i++; + } + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: b.i.b.b.q$a */ + /* JADX WARN: Multi-variable type inference failed */ + public static q a(Map map) { + if ((map instanceof q) && !(map instanceof SortedMap)) { + q qVar = (q) map; + if (!qVar.f()) { + return qVar; + } + } + Set> entrySet = map.entrySet(); + boolean z2 = entrySet instanceof Collection; + a aVar = new a(z2 ? entrySet.size() : 4); + if (z2) { + aVar.b(entrySet.size() + aVar.f1633b); + } + Iterator it = entrySet.iterator(); + while (it.hasNext()) { + Map.Entry entry = (Map.Entry) it.next(); + aVar.c(entry.getKey(), entry.getValue()); + } + return aVar.a(); + } + + public abstract r> b(); + + public abstract r c(); + + @Override // java.util.Map + @Deprecated + public final void clear() { + throw new UnsupportedOperationException(); + } + + @Override // java.util.Map + public boolean containsKey(@NullableDecl Object obj) { + return get(obj) != null; + } + + @Override // java.util.Map + public boolean containsValue(@NullableDecl Object obj) { + n nVar = this.l; + if (nVar == null) { + nVar = d(); + this.l = nVar; + } + return nVar.contains(obj); + } + + public abstract n d(); + + /* renamed from: e */ + public r> entrySet() { + r> rVar = this.j; + if (rVar != null) { + return rVar; + } + r> b2 = b(); + this.j = b2; + return b2; + } + + @Override // java.util.Map, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + if (this == obj) { + return true; + } + if (obj instanceof Map) { + return entrySet().equals(((Map) obj).entrySet()); + } + return false; + } + + public abstract boolean f(); + + @Override // java.util.Map + public abstract V get(@NullableDecl Object obj); + + @Override // java.util.Map + public final V getOrDefault(@NullableDecl Object obj, @NullableDecl V v) { + V v2 = get(obj); + return v2 != null ? v2 : v; + } + + @Override // java.util.Map, java.lang.Object + public int hashCode() { + return h.a(entrySet()); + } + + @Override // java.util.Map + public boolean isEmpty() { + return size() == 0; + } + + @Override // java.util.Map + public Set keySet() { + r rVar = this.k; + if (rVar != null) { + return rVar; + } + r c = c(); + this.k = c; + return c; + } + + @Override // java.util.Map + @CanIgnoreReturnValue + @Deprecated + public final V put(K k, V v) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.Map + @Deprecated + public final void putAll(Map map) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.Map + @CanIgnoreReturnValue + @Deprecated + public final V remove(Object obj) { + throw new UnsupportedOperationException(); + } + + @Override // java.lang.Object + public String toString() { + int size = size(); + f.z(size, "size"); + StringBuilder sb = new StringBuilder((int) Math.min(((long) size) * 8, (long) Permission.MANAGE_EMOJIS_AND_STICKERS)); + sb.append('{'); + boolean z2 = true; + for (Map.Entry entry : entrySet()) { + if (!z2) { + sb.append(", "); + } + z2 = false; + sb.append(entry.getKey()); + sb.append('='); + sb.append(entry.getValue()); + } + sb.append('}'); + return sb.toString(); + } + + @Override // java.util.Map + public Collection values() { + n nVar = this.l; + if (nVar != null) { + return nVar; + } + n d = d(); + this.l = d; + return d; + } + + public Object writeReplace() { + return new b(this); + } +} diff --git a/app/src/main/java/b/i/b/b/q0.java b/app/src/main/java/b/i/b/b/q0.java new file mode 100644 index 0000000000..349201906e --- /dev/null +++ b/app/src/main/java/b/i/b/b/q0.java @@ -0,0 +1,77 @@ +package b.i.b.b; + +import b.d.b.a.a; +import com.google.errorprone.annotations.concurrent.LazyInit; +import java.util.Objects; +/* compiled from: SingletonImmutableSet */ +public final class q0 extends r { + public final transient E m; + @LazyInit + public transient int n; + + public q0(E e) { + Objects.requireNonNull(e); + this.m = e; + } + + public q0(E e, int i) { + this.m = e; + this.n = i; + } + + @Override // b.i.b.b.n, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(Object obj) { + return this.m.equals(obj); + } + + @Override // b.i.b.b.n + public int d(Object[] objArr, int i) { + objArr[i] = this.m; + return i + 1; + } + + @Override // b.i.b.b.r, java.util.Collection, java.lang.Object, java.util.Set + public final int hashCode() { + int i = this.n; + if (i != 0) { + return i; + } + int hashCode = this.m.hashCode(); + this.n = hashCode; + return hashCode; + } + + @Override // b.i.b.b.n + public boolean i() { + return false; + } + + @Override // b.i.b.b.n + /* renamed from: j */ + public s0 iterator() { + return new s(this.m); + } + + @Override // b.i.b.b.r + public p o() { + return p.u(this.m); + } + + @Override // b.i.b.b.r + public boolean p() { + return this.n != 0; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return 1; + } + + @Override // java.util.AbstractCollection, java.lang.Object + public String toString() { + StringBuilder N = a.N('['); + N.append(this.m.toString()); + N.append(']'); + return N.toString(); + } +} diff --git a/app/src/main/java/b/i/b/b/r.java b/app/src/main/java/b/i/b/b/r.java new file mode 100644 index 0000000000..510dd8df0b --- /dev/null +++ b/app/src/main/java/b/i/b/b/r.java @@ -0,0 +1,182 @@ +package b.i.b.b; + +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import b.i.a.f.e.o.f; +import com.google.errorprone.annotations.concurrent.LazyInit; +import com.google.j2objc.annotations.RetainedWith; +import java.io.Serializable; +import java.util.Arrays; +import java.util.Collection; +import java.util.Iterator; +import java.util.Set; +import java.util.SortedSet; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: ImmutableSet */ +public abstract class r extends n implements Set { + public static final /* synthetic */ int k = 0; + @NullableDecl + @RetainedWith + @LazyInit + public transient p l; + + /* compiled from: ImmutableSet */ + public static class a implements Serializable { + private static final long serialVersionUID = 0; + public final Object[] elements; + + public a(Object[] objArr) { + this.elements = objArr; + } + + public Object readResolve() { + return r.n(this.elements); + } + } + + public static int k(int i) { + int max = Math.max(i, 2); + boolean z2 = true; + if (max < 751619276) { + int highestOneBit = Integer.highestOneBit(max - 1) << 1; + while (((double) highestOneBit) * 0.7d < ((double) max)) { + highestOneBit <<= 1; + } + return highestOneBit; + } + if (max >= 1073741824) { + z2 = false; + } + if (z2) { + return BasicMeasure.EXACTLY; + } + throw new IllegalArgumentException("collection too large"); + } + + public static r l(int i, Object... objArr) { + if (i == 0) { + return j0.m; + } + boolean z2 = false; + if (i == 1) { + return new q0(objArr[0]); + } + int k2 = k(i); + Object[] objArr2 = new Object[k2]; + int i2 = k2 - 1; + int i3 = 0; + int i4 = 0; + for (int i5 = 0; i5 < i; i5++) { + Object obj = objArr[i5]; + f.x(obj, i5); + int hashCode = obj.hashCode(); + int Y0 = f.Y0(hashCode); + while (true) { + int i6 = Y0 & i2; + Object obj2 = objArr2[i6]; + if (obj2 == null) { + objArr[i4] = obj; + objArr2[i6] = obj; + i3 += hashCode; + i4++; + break; + } else if (obj2.equals(obj)) { + break; + } else { + Y0++; + } + } + } + Arrays.fill(objArr, i4, i, (Object) null); + if (i4 == 1) { + return new q0(objArr[0], i3); + } + if (k(i4) < k2 / 2) { + return l(i4, objArr); + } + int length = objArr.length; + if (i4 < (length >> 1) + (length >> 2)) { + z2 = true; + } + if (z2) { + objArr = Arrays.copyOf(objArr, i4); + } + return new j0(objArr, i3, objArr2, i2, i4); + } + + public static r m(Collection collection) { + if ((collection instanceof r) && !(collection instanceof SortedSet)) { + r rVar = (r) collection; + if (!rVar.i()) { + return rVar; + } + } + Object[] array = collection.toArray(); + return l(array.length, array); + } + + public static r n(E[] eArr) { + int length = eArr.length; + return length != 0 ? length != 1 ? l(eArr.length, (Object[]) eArr.clone()) : new q0(eArr[0]) : j0.m; + } + + public static r r(E e, E e2, E e3) { + return l(3, e, e2, e3); + } + + @Override // b.i.b.b.n + public p c() { + p pVar = this.l; + if (pVar != null) { + return pVar; + } + p o = o(); + this.l = o; + return o; + } + + @Override // java.util.Collection, java.lang.Object, java.util.Set + public boolean equals(@NullableDecl Object obj) { + if (obj == this) { + return true; + } + if ((obj instanceof r) && p() && ((r) obj).p() && hashCode() != obj.hashCode()) { + return false; + } + if (this == obj) { + return true; + } + if (obj instanceof Set) { + Set set = (Set) obj; + try { + if (size() == set.size() && containsAll(set)) { + return true; + } + } catch (ClassCastException | NullPointerException unused) { + } + } + return false; + } + + @Override // java.util.Collection, java.lang.Object, java.util.Set + public int hashCode() { + return h.a(this); + } + + @Override // b.i.b.b.n, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set + public /* bridge */ /* synthetic */ Iterator iterator() { + return iterator(); + } + + public p o() { + return p.k(toArray()); + } + + public boolean p() { + return this instanceof j0; + } + + @Override // b.i.b.b.n + public Object writeReplace() { + return new a(toArray()); + } +} diff --git a/app/src/main/java/b/i/b/b/r0.java b/app/src/main/java/b/i/b/b/r0.java new file mode 100644 index 0000000000..b3bdc39564 --- /dev/null +++ b/app/src/main/java/b/i/b/b/r0.java @@ -0,0 +1,29 @@ +package b.i.b.b; + +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +/* compiled from: TransformedIterator */ +public abstract class r0 implements Iterator { + public final Iterator j; + + public r0(Iterator it) { + Objects.requireNonNull(it); + this.j = it; + } + + @Override // java.util.Iterator + public final boolean hasNext() { + return this.j.hasNext(); + } + + @Override // java.util.Iterator + public final T next() { + return (T) ((Map.Entry) this.j.next()).getValue(); + } + + @Override // java.util.Iterator + public final void remove() { + this.j.remove(); + } +} diff --git a/app/src/main/java/b/i/b/b/s.java b/app/src/main/java/b/i/b/b/s.java new file mode 100644 index 0000000000..0f588d4801 --- /dev/null +++ b/app/src/main/java/b/i/b/b/s.java @@ -0,0 +1,27 @@ +package b.i.b.b; + +import java.util.NoSuchElementException; +/* compiled from: Iterators */ +public final class s extends s0 { + public boolean j; + public final /* synthetic */ Object k; + + public s(Object obj) { + this.k = obj; + } + + @Override // java.util.Iterator + public boolean hasNext() { + return !this.j; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // java.util.Iterator + public T next() { + if (!this.j) { + this.j = true; + return this.k; + } + throw new NoSuchElementException(); + } +} diff --git a/app/src/main/java/b/i/b/b/s0.java b/app/src/main/java/b/i/b/b/s0.java new file mode 100644 index 0000000000..bd9694e123 --- /dev/null +++ b/app/src/main/java/b/i/b/b/s0.java @@ -0,0 +1,11 @@ +package b.i.b.b; + +import java.util.Iterator; +/* compiled from: UnmodifiableIterator */ +public abstract class s0 implements Iterator { + @Override // java.util.Iterator + @Deprecated + public final void remove() { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/b/i/b/b/t.java b/app/src/main/java/b/i/b/b/t.java new file mode 100644 index 0000000000..9dc9794598 --- /dev/null +++ b/app/src/main/java/b/i/b/b/t.java @@ -0,0 +1,24 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import java.util.Iterator; +import java.util.NoSuchElementException; +/* compiled from: Iterators */ +public enum t implements Iterator { + INSTANCE; + + @Override // java.util.Iterator + public boolean hasNext() { + return false; + } + + @Override // java.util.Iterator + public Object next() { + throw new NoSuchElementException(); + } + + @Override // java.util.Iterator + public void remove() { + f.D(false); + } +} diff --git a/app/src/main/java/b/i/b/b/u.java b/app/src/main/java/b/i/b/b/u.java new file mode 100644 index 0000000000..c01545a1b2 --- /dev/null +++ b/app/src/main/java/b/i/b/b/u.java @@ -0,0 +1,111 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import b.i.b.a.d; +import b.i.b.a.g; +import b.i.b.b.v; +import java.util.Objects; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import org.checkerframework.checker.nullness.compatqual.MonotonicNonNullDecl; +/* compiled from: MapMaker */ +public final class u { + public boolean a; + + /* renamed from: b reason: collision with root package name */ + public int f1634b = -1; + public int c = -1; + @MonotonicNonNullDecl + public v.p d; + @MonotonicNonNullDecl + public v.p e; + @MonotonicNonNullDecl + public d f; + + public v.p a() { + return (v.p) f.V(this.d, v.p.STRONG); + } + + public v.p b() { + return (v.p) f.V(this.e, v.p.STRONG); + } + + public ConcurrentMap c() { + if (!this.a) { + int i = this.f1634b; + if (i == -1) { + i = 16; + } + int i2 = this.c; + if (i2 == -1) { + i2 = 4; + } + return new ConcurrentHashMap(i, 0.75f, i2); + } + v.b0 b0Var = v.j; + v.p pVar = v.p.WEAK; + v.p a = a(); + v.p pVar2 = v.p.STRONG; + if (a == pVar2 && b() == pVar2) { + return new v(this, v.q.a.a); + } + if (a() == pVar2 && b() == pVar) { + return new v(this, v.s.a.a); + } + if (a() == pVar && b() == pVar2) { + return new v(this, v.w.a.a); + } + if (a() == pVar && b() == pVar) { + return new v(this, v.y.a.a); + } + throw new AssertionError(); + } + + public u d(v.p pVar) { + v.p pVar2 = this.d; + f.F(pVar2 == null, "Key strength was already set to %s", pVar2); + Objects.requireNonNull(pVar); + this.d = pVar; + if (pVar != v.p.STRONG) { + this.a = true; + } + return this; + } + + public String toString() { + g gVar = new g(u.class.getSimpleName(), null); + int i = this.f1634b; + if (i != -1) { + gVar.a("initialCapacity", i); + } + int i2 = this.c; + if (i2 != -1) { + gVar.a("concurrencyLevel", i2); + } + v.p pVar = this.d; + if (pVar != null) { + String m1 = f.m1(pVar.toString()); + g.a aVar = new g.a(null); + gVar.c.c = aVar; + gVar.c = aVar; + aVar.f1629b = m1; + aVar.a = "keyStrength"; + } + v.p pVar2 = this.e; + if (pVar2 != null) { + String m12 = f.m1(pVar2.toString()); + g.a aVar2 = new g.a(null); + gVar.c.c = aVar2; + gVar.c = aVar2; + aVar2.f1629b = m12; + aVar2.a = "valueStrength"; + } + if (this.f != null) { + g.a aVar3 = new g.a(null); + gVar.c.c = aVar3; + gVar.c = aVar3; + aVar3.f1629b = "keyEquivalence"; + } + return gVar.toString(); + } +} diff --git a/app/src/main/java/b/i/b/b/v.java b/app/src/main/java/b/i/b/b/v.java new file mode 100644 index 0000000000..d5f3752bfe --- /dev/null +++ b/app/src/main/java/b/i/b/b/v.java @@ -0,0 +1,1779 @@ +package b.i.b.b; + +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import b.i.b.a.d; +import b.i.b.b.v.i; +import b.i.b.b.v.n; +import com.google.errorprone.annotations.CanIgnoreReturnValue; +import com.google.errorprone.annotations.concurrent.GuardedBy; +import com.google.j2objc.annotations.Weak; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.io.Serializable; +import java.lang.ref.Reference; +import java.lang.ref.ReferenceQueue; +import java.lang.ref.WeakReference; +import java.util.AbstractCollection; +import java.util.AbstractMap; +import java.util.AbstractSet; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicReferenceArray; +import java.util.concurrent.locks.ReentrantLock; +import org.checkerframework.checker.nullness.compatqual.MonotonicNonNullDecl; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: MapMakerInternalMap */ +public class v, S extends n> extends AbstractMap implements ConcurrentMap, Serializable { + public static final b0 j = new a(); + private static final long serialVersionUID = 5; + public final int concurrencyLevel; + public final transient int k; + public final b.i.b.a.d keyEquivalence; + public final transient int l; + public final transient n[] m; + public final transient j n; + @MonotonicNonNullDecl + public transient Set o; + @MonotonicNonNullDecl + public transient Collection p; + @MonotonicNonNullDecl + public transient Set> q; + + /* compiled from: MapMakerInternalMap */ + public static class a implements b0 { + /* Return type fixed from 'b.i.b.b.v$i' to match base method */ + @Override // b.i.b.b.v.b0 + public /* bridge */ /* synthetic */ e a() { + return null; + } + + /* Return type fixed from 'b.i.b.b.v$b0' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.ref.ReferenceQueue, b.i.b.b.v$i] */ + @Override // b.i.b.b.v.b0 + public b0 b(ReferenceQueue referenceQueue, e eVar) { + return this; + } + + @Override // b.i.b.b.v.b0 + public void clear() { + } + + @Override // b.i.b.b.v.b0 + public Object get() { + return null; + } + } + + /* compiled from: MapMakerInternalMap */ + public interface a0> extends i { + b0 b(); + } + + /* compiled from: MapMakerInternalMap */ + public static abstract class b extends k implements Serializable { + private static final long serialVersionUID = 3; + public final int concurrencyLevel; + public transient ConcurrentMap j; + public final b.i.b.a.d keyEquivalence; + public final p keyStrength; + public final b.i.b.a.d valueEquivalence; + public final p valueStrength; + + public b(p pVar, p pVar2, b.i.b.a.d dVar, b.i.b.a.d dVar2, int i, ConcurrentMap concurrentMap) { + this.keyStrength = pVar; + this.valueStrength = pVar2; + this.keyEquivalence = dVar; + this.valueEquivalence = dVar2; + this.concurrencyLevel = i; + this.j = concurrentMap; + } + } + + /* compiled from: MapMakerInternalMap */ + public interface b0> { + E a(); + + b0 b(ReferenceQueue referenceQueue, E e); + + void clear(); + + @NullableDecl + V get(); + } + + /* compiled from: MapMakerInternalMap */ + public static abstract class c> implements i { + public final K a; + + /* renamed from: b reason: collision with root package name */ + public final int f1635b; + @NullableDecl + public final E c; + + public c(K k, int i, @NullableDecl E e) { + this.a = k; + this.f1635b = i; + this.c = e; + } + + @Override // b.i.b.b.v.i + public E a() { + return this.c; + } + + @Override // b.i.b.b.v.i + public int c() { + return this.f1635b; + } + + @Override // b.i.b.b.v.i + public K getKey() { + return this.a; + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class c0> extends WeakReference implements b0 { + @Weak + public final E a; + + public c0(ReferenceQueue referenceQueue, V v, E e) { + super(v, referenceQueue); + this.a = e; + } + + @Override // b.i.b.b.v.b0 + public E a() { + return this.a; + } + + @Override // b.i.b.b.v.b0 + public b0 b(ReferenceQueue referenceQueue, E e) { + return new c0(referenceQueue, get(), e); + } + } + + /* compiled from: MapMakerInternalMap */ + public static abstract class d> extends WeakReference implements i { + public final int a; + @NullableDecl + + /* renamed from: b reason: collision with root package name */ + public final E f1636b; + + public d(ReferenceQueue referenceQueue, K k, int i, @NullableDecl E e) { + super(k, referenceQueue); + this.a = i; + this.f1636b = e; + } + + @Override // b.i.b.b.v.i + public E a() { + return this.f1636b; + } + + @Override // b.i.b.b.v.i + public int c() { + return this.a; + } + + @Override // b.i.b.b.v.i + public K getKey() { + return get(); + } + } + + /* compiled from: MapMakerInternalMap */ + public final class d0 extends f { + public final K j; + public V k; + + public d0(K k, V v) { + this.j = k; + this.k = v; + } + + @Override // b.i.b.b.f, java.util.Map.Entry, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + if (!(obj instanceof Map.Entry)) { + return false; + } + Map.Entry entry = (Map.Entry) obj; + return this.j.equals(entry.getKey()) && this.k.equals(entry.getValue()); + } + + @Override // b.i.b.b.f, java.util.Map.Entry + public K getKey() { + return this.j; + } + + @Override // b.i.b.b.f, java.util.Map.Entry + public V getValue() { + return this.k; + } + + @Override // b.i.b.b.f, java.util.Map.Entry, java.lang.Object + public int hashCode() { + return this.j.hashCode() ^ this.k.hashCode(); + } + + @Override // java.util.Map.Entry + public V setValue(V v) { + V v2 = (V) v.this.put(this.j, v); + this.k = v; + return v2; + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class e implements i { + public e() { + throw new AssertionError(); + } + + /* Return type fixed from 'b.i.b.b.v$i' to match base method */ + @Override // b.i.b.b.v.i + public e a() { + throw new AssertionError(); + } + + @Override // b.i.b.b.v.i + public int c() { + throw new AssertionError(); + } + + @Override // b.i.b.b.v.i + public Object getKey() { + throw new AssertionError(); + } + + @Override // b.i.b.b.v.i + public Object getValue() { + throw new AssertionError(); + } + } + + /* compiled from: MapMakerInternalMap */ + public final class f extends v.h { + public f(v vVar) { + super(); + } + + @Override // java.util.Iterator + public Object next() { + return c(); + } + } + + /* compiled from: MapMakerInternalMap */ + public final class g extends m> { + public g() { + super(null); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public void clear() { + v.this.clear(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(Object obj) { + Map.Entry entry; + Object key; + Object obj2; + return (obj instanceof Map.Entry) && (key = (entry = (Map.Entry) obj).getKey()) != null && (obj2 = v.this.get(key)) != null && v.this.d().c(entry.getValue(), obj2); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean isEmpty() { + return v.this.isEmpty(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set, java.lang.Iterable + public Iterator> iterator() { + return new f(v.this); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean remove(Object obj) { + Map.Entry entry; + Object key; + return (obj instanceof Map.Entry) && (key = (entry = (Map.Entry) obj).getKey()) != null && v.this.remove(key, entry.getValue()); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return v.this.size(); + } + } + + /* compiled from: MapMakerInternalMap */ + public abstract class h implements Iterator { + public int j; + public int k = -1; + @MonotonicNonNullDecl + public n l; + @MonotonicNonNullDecl + public AtomicReferenceArray m; + @NullableDecl + public E n; + @NullableDecl + public v.d0 o; + @NullableDecl + public v.d0 p; + + public h() { + this.j = v.this.m.length - 1; + a(); + } + + public final void a() { + this.o = null; + if (!d() && !e()) { + while (true) { + int i = this.j; + if (i >= 0) { + n[] nVarArr = v.this.m; + this.j = i - 1; + n nVar = nVarArr[i]; + this.l = nVar; + if (nVar.count != 0) { + AtomicReferenceArray atomicReferenceArray = this.l.table; + this.m = atomicReferenceArray; + this.k = atomicReferenceArray.length() - 1; + if (e()) { + return; + } + } + } else { + return; + } + } + } + } + + public boolean b(E e) { + boolean z2; + try { + Object key = e.getKey(); + Objects.requireNonNull(v.this); + Object obj = null; + if (e.getKey() != null) { + Object value = e.getValue(); + if (value != null) { + obj = value; + } + } + if (obj != null) { + this.o = new d0(key, obj); + z2 = true; + } else { + z2 = false; + } + return z2; + } finally { + this.l.h(); + } + } + + public v.d0 c() { + v.d0 d0Var = this.o; + if (d0Var != null) { + this.p = d0Var; + a(); + return this.p; + } + throw new NoSuchElementException(); + } + + /* JADX WARNING: Unknown variable types count: 1 */ + public boolean d() { + i iVar = this.n; + if (iVar == null) { + return false; + } + while (true) { + this.n = iVar.a(); + E e = this.n; + if (e == 0) { + return false; + } + if (b(e)) { + return true; + } + iVar = this.n; + } + } + + /* JADX WARNING: Unknown variable types count: 1 */ + public boolean e() { + while (true) { + int i = this.k; + if (i < 0) { + return false; + } + AtomicReferenceArray atomicReferenceArray = this.m; + this.k = i - 1; + ?? r0 = (i) atomicReferenceArray.get(i); + this.n = r0; + if (r0 != 0 && (b(r0) || d())) { + return true; + } + } + } + + @Override // java.util.Iterator + public boolean hasNext() { + return this.o != null; + } + + @Override // java.util.Iterator + public void remove() { + b.i.a.f.e.o.f.D(this.p != null); + v.this.remove(this.p.j); + this.p = null; + } + } + + /* compiled from: MapMakerInternalMap */ + public interface i> { + E a(); + + int c(); + + K getKey(); + + V getValue(); + } + + /* compiled from: MapMakerInternalMap */ + public interface j, S extends n> { + E a(S s2, E e, @NullableDecl E e2); + + p b(); + + p c(); + + void d(S s2, E e, V v); + + S e(v vVar, int i, int i2); + + E f(S s2, K k, int i, @NullableDecl E e); + } + + /* compiled from: MapMakerInternalMap */ + public final class k extends v.h { + public k(v vVar) { + super(); + } + + @Override // java.util.Iterator + public K next() { + return c().j; + } + } + + /* compiled from: MapMakerInternalMap */ + public final class l extends m { + public l() { + super(null); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public void clear() { + v.this.clear(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(Object obj) { + return v.this.containsKey(obj); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean isEmpty() { + return v.this.isEmpty(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set, java.lang.Iterable + public Iterator iterator() { + return new k(v.this); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean remove(Object obj) { + return v.this.remove(obj) != null; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return v.this.size(); + } + } + + /* compiled from: MapMakerInternalMap */ + public static abstract class m extends AbstractSet { + public m(a aVar) { + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public Object[] toArray() { + return v.a(this).toArray(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public T[] toArray(T[] tArr) { + return (T[]) v.a(this).toArray(tArr); + } + } + + /* compiled from: MapMakerInternalMap */ + public static abstract class n, S extends n> extends ReentrantLock { + public static final /* synthetic */ int j = 0; + public volatile int count; + @Weak + public final v map; + public final int maxSegmentSize; + public int modCount; + public final AtomicInteger readCount = new AtomicInteger(); + @MonotonicNonNullDecl + public volatile AtomicReferenceArray table; + public int threshold; + + public n(v vVar, int i, int i2) { + this.map = vVar; + this.maxSegmentSize = i2; + AtomicReferenceArray atomicReferenceArray = new AtomicReferenceArray<>(i); + int length = (atomicReferenceArray.length() * 3) / 4; + this.threshold = length; + if (length == i2) { + this.threshold = length + 1; + } + this.table = atomicReferenceArray; + } + + public void a(ReferenceQueue referenceQueue) { + do { + } while (referenceQueue.poll() != null); + } + + /* JADX INFO: finally extract failed */ + @GuardedBy("this") + public void b(ReferenceQueue referenceQueue) { + int i = 0; + do { + Reference poll = referenceQueue.poll(); + if (poll != null) { + i iVar = (i) poll; + v vVar = this.map; + Objects.requireNonNull(vVar); + int c = iVar.c(); + n c2 = vVar.c(c); + c2.lock(); + try { + AtomicReferenceArray atomicReferenceArray = c2.table; + int length = c & (atomicReferenceArray.length() - 1); + E e = atomicReferenceArray.get(length); + i iVar2 = e; + while (true) { + if (iVar2 == null) { + break; + } else if (iVar2 == iVar) { + c2.modCount++; + atomicReferenceArray.set(length, c2.j(e, iVar2)); + c2.count--; + break; + } else { + iVar2 = iVar2.a(); + } + } + c2.unlock(); + i++; + } catch (Throwable th) { + c2.unlock(); + throw th; + } + } else { + return; + } + } while (i != 16); + } + + /* JADX INFO: finally extract failed */ + @GuardedBy("this") + public void c(ReferenceQueue referenceQueue) { + int i = 0; + do { + Reference poll = referenceQueue.poll(); + if (poll != null) { + b0 b0Var = (b0) poll; + v vVar = this.map; + Objects.requireNonNull(vVar); + E a = b0Var.a(); + int c = a.c(); + n c2 = vVar.c(c); + Object key = a.getKey(); + c2.lock(); + try { + AtomicReferenceArray atomicReferenceArray = c2.table; + int length = (atomicReferenceArray.length() - 1) & c; + E e = atomicReferenceArray.get(length); + E e2 = e; + while (true) { + if (e2 == null) { + break; + } + Object key2 = e2.getKey(); + if (e2.c() != c || key2 == null || !c2.map.keyEquivalence.c(key, key2)) { + e2 = (E) e2.a(); + } else if (((a0) e2).b() == b0Var) { + c2.modCount++; + atomicReferenceArray.set(length, c2.j(e, e2)); + c2.count--; + } + } + c2.unlock(); + i++; + } catch (Throwable th) { + c2.unlock(); + throw th; + } + } else { + return; + } + } while (i != 16); + } + + /* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: java.util.concurrent.atomic.AtomicReferenceArray> */ + /* JADX DEBUG: Multi-variable search result rejected for r10v1, resolved type: b.i.b.b.v$j, S extends b.i.b.b.v$n> */ + /* JADX WARN: Multi-variable type inference failed */ + @GuardedBy("this") + public void d() { + AtomicReferenceArray atomicReferenceArray = this.table; + int length = atomicReferenceArray.length(); + if (length < 1073741824) { + int i = this.count; + AtomicReferenceArray atomicReferenceArray2 = (AtomicReferenceArray) new AtomicReferenceArray(length << 1); + this.threshold = (atomicReferenceArray2.length() * 3) / 4; + int length2 = atomicReferenceArray2.length() - 1; + for (int i2 = 0; i2 < length; i2++) { + E e = atomicReferenceArray.get(i2); + if (e != null) { + i a = e.a(); + int c = e.c() & length2; + if (a == null) { + atomicReferenceArray2.set(c, e); + } else { + i iVar = e; + while (a != null) { + int c2 = a.c() & length2; + if (c2 != c) { + iVar = a; + c = c2; + } + a = a.a(); + } + atomicReferenceArray2.set(c, iVar); + while (e != iVar) { + int c3 = e.c() & length2; + i a2 = this.map.n.a(l(), e, (i) atomicReferenceArray2.get(c3)); + if (a2 != null) { + atomicReferenceArray2.set(c3, a2); + } else { + i--; + } + e = e.a(); + } + } + } + } + this.table = atomicReferenceArray2; + this.count = i; + } + } + + public E e(Object obj, int i) { + if (this.count != 0) { + AtomicReferenceArray atomicReferenceArray = this.table; + for (E e = atomicReferenceArray.get((atomicReferenceArray.length() - 1) & i); e != null; e = (E) e.a()) { + if (e.c() == i) { + Object key = e.getKey(); + if (key == null) { + n(); + } else if (this.map.keyEquivalence.c(obj, key)) { + return e; + } + } + } + } + return null; + } + + public void f() { + } + + @GuardedBy("this") + public void g() { + } + + public void h() { + if ((this.readCount.incrementAndGet() & 63) == 0) { + k(); + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r10v4, resolved type: b.i.b.b.v$j, S extends b.i.b.b.v$n> */ + /* JADX DEBUG: Multi-variable search result rejected for r9v7, resolved type: b.i.b.b.v$j, S extends b.i.b.b.v$n> */ + /* JADX WARN: Multi-variable type inference failed */ + public V i(K k, int i, V v, boolean z2) { + lock(); + try { + k(); + int i2 = this.count + 1; + if (i2 > this.threshold) { + d(); + i2 = this.count + 1; + } + AtomicReferenceArray atomicReferenceArray = this.table; + int length = (atomicReferenceArray.length() - 1) & i; + E e = atomicReferenceArray.get(length); + for (i iVar = e; iVar != null; iVar = iVar.a()) { + Object key = iVar.getKey(); + if (iVar.c() == i && key != null && this.map.keyEquivalence.c(k, key)) { + V v2 = (V) iVar.getValue(); + if (v2 == null) { + this.modCount++; + this.map.n.d(l(), iVar, v); + this.count = this.count; + return null; + } else if (z2) { + unlock(); + return v2; + } else { + this.modCount++; + this.map.n.d(l(), iVar, v); + unlock(); + return v2; + } + } + } + this.modCount++; + E f = this.map.n.f(l(), k, i, e); + m(f, v); + atomicReferenceArray.set(length, f); + this.count = i2; + unlock(); + return null; + } finally { + unlock(); + } + } + + @GuardedBy("this") + public E j(E e, E e2) { + int i = this.count; + E e3 = (E) e2.a(); + while (e != e2) { + E a = this.map.n.a(l(), e, e3); + if (a != null) { + e3 = a; + } else { + i--; + } + e = (E) e.a(); + } + this.count = i; + return e3; + } + + public void k() { + if (tryLock()) { + try { + g(); + this.readCount.set(0); + } finally { + unlock(); + } + } + } + + public abstract S l(); + + public void m(E e, V v) { + this.map.n.d(l(), e, v); + } + + public void n() { + if (tryLock()) { + try { + g(); + } finally { + unlock(); + } + } + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class o extends b { + private static final long serialVersionUID = 3; + + public o(p pVar, p pVar2, b.i.b.a.d dVar, b.i.b.a.d dVar2, int i, ConcurrentMap concurrentMap) { + super(pVar, pVar2, dVar, dVar2, i, concurrentMap); + } + + /* JADX DEBUG: Multi-variable search result rejected for r2v6, resolved type: java.util.concurrent.ConcurrentMap */ + /* JADX WARN: Multi-variable type inference failed */ + private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException { + objectInputStream.defaultReadObject(); + int readInt = objectInputStream.readInt(); + u uVar = new u(); + int i = uVar.f1634b; + boolean z2 = false; + b.i.a.f.e.o.f.E(i == -1, "initial capacity was already set to %s", i); + b.i.a.f.e.o.f.u(readInt >= 0); + uVar.f1634b = readInt; + uVar.d(this.keyStrength); + p pVar = this.valueStrength; + p pVar2 = uVar.e; + b.i.a.f.e.o.f.F(pVar2 == null, "Value strength was already set to %s", pVar2); + Objects.requireNonNull(pVar); + uVar.e = pVar; + if (pVar != p.STRONG) { + uVar.a = true; + } + b.i.b.a.d dVar = this.keyEquivalence; + b.i.b.a.d dVar2 = uVar.f; + b.i.a.f.e.o.f.F(dVar2 == null, "key equivalence was already set to %s", dVar2); + Objects.requireNonNull(dVar); + uVar.f = dVar; + uVar.a = true; + int i2 = this.concurrencyLevel; + int i3 = uVar.c; + b.i.a.f.e.o.f.E(i3 == -1, "concurrency level was already set to %s", i3); + if (i2 > 0) { + z2 = true; + } + b.i.a.f.e.o.f.u(z2); + uVar.c = i2; + this.j = uVar.c(); + while (true) { + Object readObject = objectInputStream.readObject(); + if (readObject != null) { + this.j.put(readObject, objectInputStream.readObject()); + } else { + return; + } + } + } + + private Object readResolve() { + return this.j; + } + + private void writeObject(ObjectOutputStream objectOutputStream) throws IOException { + objectOutputStream.defaultWriteObject(); + objectOutputStream.writeInt(this.j.size()); + for (Map.Entry entry : this.j.entrySet()) { + objectOutputStream.writeObject(entry.getKey()); + objectOutputStream.writeObject(entry.getValue()); + } + objectOutputStream.writeObject(null); + } + } + + /* compiled from: MapMakerInternalMap */ + public enum p { + STRONG { + @Override // b.i.b.b.v.p + public b.i.b.a.d f() { + return d.a.j; + } + }, + WEAK { + @Override // b.i.b.b.v.p + public b.i.b.a.d f() { + return d.b.j; + } + }; + + public p(a aVar) { + } + + public abstract b.i.b.a.d f(); + } + + /* compiled from: MapMakerInternalMap */ + public static final class q extends c> implements i { + @NullableDecl + public volatile V d = null; + + /* compiled from: MapMakerInternalMap */ + public static final class a implements j, r> { + public static final a a = new a<>(); + + @Override // b.i.b.b.v.j + public i a(n nVar, i iVar, @NullableDecl i iVar2) { + r rVar = (r) nVar; + q qVar = (q) iVar; + q qVar2 = new q(qVar.a, qVar.f1635b, (q) iVar2); + qVar2.d = qVar.d; + return qVar2; + } + + @Override // b.i.b.b.v.j + public p b() { + return p.STRONG; + } + + @Override // b.i.b.b.v.j + public p c() { + return p.STRONG; + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: java.lang.Object */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.i.b.b.v.j + public void d(n nVar, i iVar, Object obj) { + r rVar = (r) nVar; + ((q) iVar).d = obj; + } + + @Override // b.i.b.b.v.j + public n e(v vVar, int i, int i2) { + return new r(vVar, i, i2); + } + + @Override // b.i.b.b.v.j + public i f(n nVar, Object obj, int i, @NullableDecl i iVar) { + r rVar = (r) nVar; + return new q(obj, i, (q) iVar); + } + } + + public q(K k, int i, @NullableDecl q qVar) { + super(k, i, qVar); + } + + @Override // b.i.b.b.v.i + @NullableDecl + public V getValue() { + return this.d; + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class r extends n, r> { + public r(v, r> vVar, int i, int i2) { + super(vVar, i, i2); + } + + @Override // b.i.b.b.v.n + public n l() { + return this; + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class s extends c> implements a0> { + public volatile b0> d = ((b0>) v.j); + + /* compiled from: MapMakerInternalMap */ + public static final class a implements j, t> { + public static final a a = new a<>(); + + @Override // b.i.b.b.v.j + public i a(n nVar, i iVar, @NullableDecl i iVar2) { + t tVar = (t) nVar; + s sVar = (s) iVar; + s sVar2 = (s) iVar2; + int i = n.j; + if (sVar.getValue() == null) { + return null; + } + ReferenceQueue o = t.o(tVar); + s sVar3 = new s<>(sVar.a, sVar.f1635b, sVar2); + sVar3.d = sVar.d.b(o, sVar3); + return sVar3; + } + + @Override // b.i.b.b.v.j + public p b() { + return p.STRONG; + } + + @Override // b.i.b.b.v.j + public p c() { + return p.WEAK; + } + + @Override // b.i.b.b.v.j + public void d(n nVar, i iVar, Object obj) { + s sVar = (s) iVar; + ReferenceQueue o = t.o((t) nVar); + b0> b0Var = sVar.d; + sVar.d = new c0(o, obj, sVar); + b0Var.clear(); + } + + @Override // b.i.b.b.v.j + public n e(v vVar, int i, int i2) { + return new t(vVar, i, i2); + } + + @Override // b.i.b.b.v.j + public i f(n nVar, Object obj, int i, @NullableDecl i iVar) { + t tVar = (t) nVar; + return new s(obj, i, (s) iVar); + } + } + + public s(K k, int i, @NullableDecl s sVar) { + super(k, i, sVar); + b0 b0Var = v.j; + } + + @Override // b.i.b.b.v.a0 + public b0> b() { + return this.d; + } + + @Override // b.i.b.b.v.i + public V getValue() { + return this.d.get(); + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class t extends n, t> { + private final ReferenceQueue queueForValues = new ReferenceQueue<>(); + + public t(v, t> vVar, int i, int i2) { + super(vVar, i, i2); + } + + public static /* synthetic */ ReferenceQueue o(t tVar) { + return tVar.queueForValues; + } + + /* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: java.lang.ref.ReferenceQueue, java.lang.ref.ReferenceQueue */ + @Override // b.i.b.b.v.n + public void f() { + a((ReferenceQueue) this.queueForValues); + } + + @Override // b.i.b.b.v.n + public void g() { + c(this.queueForValues); + } + + @Override // b.i.b.b.v.n + public n l() { + return this; + } + } + + /* compiled from: MapMakerInternalMap */ + public final class u extends v.h { + public u(v vVar) { + super(); + } + + @Override // java.util.Iterator + public V next() { + return c().k; + } + } + + /* compiled from: MapMakerInternalMap */ + /* renamed from: b.i.b.b.v$v reason: collision with other inner class name */ + public final class C0127v extends AbstractCollection { + public C0127v() { + } + + @Override // java.util.AbstractCollection, java.util.Collection + public void clear() { + v.this.clear(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean contains(Object obj) { + return v.this.containsValue(obj); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean isEmpty() { + return v.this.isEmpty(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable + public Iterator iterator() { + return new u(v.this); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public int size() { + return v.this.size(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public Object[] toArray() { + return v.a(this).toArray(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public T[] toArray(T[] tArr) { + return (T[]) v.a(this).toArray(tArr); + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class w extends d> implements i { + @NullableDecl + public volatile V c = null; + + /* compiled from: MapMakerInternalMap */ + public static final class a implements j, x> { + public static final a a = new a<>(); + + @Override // b.i.b.b.v.j + public i a(n nVar, i iVar, @NullableDecl i iVar2) { + x xVar = (x) nVar; + w wVar = (w) iVar; + w wVar2 = (w) iVar2; + if (wVar.get() == null) { + return null; + } + w wVar3 = new w(x.o(xVar), wVar.get(), wVar.a, wVar2); + wVar3.c = wVar.c; + return wVar3; + } + + @Override // b.i.b.b.v.j + public p b() { + return p.WEAK; + } + + @Override // b.i.b.b.v.j + public p c() { + return p.STRONG; + } + + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: java.lang.Object */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // b.i.b.b.v.j + public void d(n nVar, i iVar, Object obj) { + x xVar = (x) nVar; + ((w) iVar).c = obj; + } + + @Override // b.i.b.b.v.j + public n e(v vVar, int i, int i2) { + return new x(vVar, i, i2); + } + + @Override // b.i.b.b.v.j + public i f(n nVar, Object obj, int i, @NullableDecl i iVar) { + return new w(x.o((x) nVar), obj, i, (w) iVar); + } + } + + public w(ReferenceQueue referenceQueue, K k, int i, @NullableDecl w wVar) { + super(referenceQueue, k, i, wVar); + } + + @Override // b.i.b.b.v.i + @NullableDecl + public V getValue() { + return this.c; + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class x extends n, x> { + private final ReferenceQueue queueForKeys = new ReferenceQueue<>(); + + public x(v, x> vVar, int i, int i2) { + super(vVar, i, i2); + } + + public static /* synthetic */ ReferenceQueue o(x xVar) { + return xVar.queueForKeys; + } + + /* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: java.lang.ref.ReferenceQueue, java.lang.ref.ReferenceQueue */ + @Override // b.i.b.b.v.n + public void f() { + a((ReferenceQueue) this.queueForKeys); + } + + @Override // b.i.b.b.v.n + public void g() { + b(this.queueForKeys); + } + + @Override // b.i.b.b.v.n + public n l() { + return this; + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class y extends d> implements a0> { + public volatile b0> c = ((b0>) v.j); + + /* compiled from: MapMakerInternalMap */ + public static final class a implements j, z> { + public static final a a = new a<>(); + + @Override // b.i.b.b.v.j + public i a(n nVar, i iVar, @NullableDecl i iVar2) { + z zVar = (z) nVar; + y yVar = (y) iVar; + y yVar2 = (y) iVar2; + if (yVar.get() == null) { + return null; + } + int i = n.j; + if (yVar.getValue() == null) { + return null; + } + ReferenceQueue o = z.o(zVar); + ReferenceQueue p = z.p(zVar); + y yVar3 = new y<>(o, yVar.get(), yVar.a, yVar2); + yVar3.c = yVar.c.b(p, yVar3); + return yVar3; + } + + @Override // b.i.b.b.v.j + public p b() { + return p.WEAK; + } + + @Override // b.i.b.b.v.j + public p c() { + return p.WEAK; + } + + @Override // b.i.b.b.v.j + public void d(n nVar, i iVar, Object obj) { + y yVar = (y) iVar; + ReferenceQueue p = z.p((z) nVar); + b0> b0Var = yVar.c; + yVar.c = new c0(p, obj, yVar); + b0Var.clear(); + } + + @Override // b.i.b.b.v.j + public n e(v vVar, int i, int i2) { + return new z(vVar, i, i2); + } + + @Override // b.i.b.b.v.j + public i f(n nVar, Object obj, int i, @NullableDecl i iVar) { + return new y(z.o((z) nVar), obj, i, (y) iVar); + } + } + + public y(ReferenceQueue referenceQueue, K k, int i, @NullableDecl y yVar) { + super(referenceQueue, k, i, yVar); + b0 b0Var = v.j; + } + + @Override // b.i.b.b.v.a0 + public b0> b() { + return this.c; + } + + @Override // b.i.b.b.v.i + public V getValue() { + return this.c.get(); + } + } + + /* compiled from: MapMakerInternalMap */ + public static final class z extends n, z> { + private final ReferenceQueue queueForKeys = new ReferenceQueue<>(); + private final ReferenceQueue queueForValues = new ReferenceQueue<>(); + + public z(v, z> vVar, int i, int i2) { + super(vVar, i, i2); + } + + public static /* synthetic */ ReferenceQueue o(z zVar) { + return zVar.queueForKeys; + } + + public static /* synthetic */ ReferenceQueue p(z zVar) { + return zVar.queueForValues; + } + + /* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: java.lang.ref.ReferenceQueue, java.lang.ref.ReferenceQueue */ + @Override // b.i.b.b.v.n + public void f() { + a((ReferenceQueue) this.queueForKeys); + } + + @Override // b.i.b.b.v.n + public void g() { + b(this.queueForKeys); + c(this.queueForValues); + } + + @Override // b.i.b.b.v.n + public n l() { + return this; + } + } + + public v(u uVar, j jVar) { + int i2 = uVar.c; + this.concurrencyLevel = Math.min(i2 == -1 ? 4 : i2, 65536); + this.keyEquivalence = (b.i.b.a.d) b.i.a.f.e.o.f.V(uVar.f, uVar.a().f()); + this.n = jVar; + int i3 = uVar.f1634b; + int min = Math.min(i3 == -1 ? 16 : i3, (int) BasicMeasure.EXACTLY); + int i4 = 0; + int i5 = 1; + int i6 = 1; + int i7 = 0; + while (i6 < this.concurrencyLevel) { + i7++; + i6 <<= 1; + } + this.l = 32 - i7; + this.k = i6 - 1; + this.m = new n[i6]; + int i8 = min / i6; + while (i5 < (i6 * i8 < min ? i8 + 1 : i8)) { + i5 <<= 1; + } + while (true) { + n[] nVarArr = this.m; + if (i4 < nVarArr.length) { + nVarArr[i4] = this.n.e(this, i5, -1); + i4++; + } else { + return; + } + } + } + + public static ArrayList a(Collection collection) { + ArrayList arrayList = new ArrayList(collection.size()); + Iterator it = collection.iterator(); + Objects.requireNonNull(it); + while (it.hasNext()) { + arrayList.add(it.next()); + } + return arrayList; + } + + public int b(Object obj) { + b.i.b.a.d dVar = this.keyEquivalence; + Objects.requireNonNull(dVar); + int b2 = dVar.b(obj); + int i2 = b2 + ((b2 << 15) ^ -12931); + int i3 = i2 ^ (i2 >>> 10); + int i4 = i3 + (i3 << 3); + int i5 = i4 ^ (i4 >>> 6); + int i6 = (i5 << 2) + (i5 << 14) + i5; + return (i6 >>> 16) ^ i6; + } + + public n c(int i2) { + return this.m[(i2 >>> this.l) & this.k]; + } + + @Override // java.util.AbstractMap, java.util.Map + public void clear() { + n[] nVarArr = this.m; + int length = nVarArr.length; + for (int i2 = 0; i2 < length; i2++) { + n nVar = nVarArr[i2]; + if (nVar.count != 0) { + nVar.lock(); + try { + AtomicReferenceArray atomicReferenceArray = nVar.table; + for (int i3 = 0; i3 < atomicReferenceArray.length(); i3++) { + atomicReferenceArray.set(i3, null); + } + nVar.f(); + nVar.readCount.set(0); + nVar.modCount++; + nVar.count = 0; + } finally { + nVar.unlock(); + } + } + } + } + + @Override // java.util.AbstractMap, java.util.Map + public boolean containsKey(@NullableDecl Object obj) { + E e2; + boolean z2 = false; + if (obj == null) { + return false; + } + int b2 = b(obj); + n c2 = c(b2); + Objects.requireNonNull(c2); + try { + if (!(c2.count == 0 || (e2 = c2.e(obj, b2)) == null || e2.getValue() == null)) { + z2 = true; + } + return z2; + } finally { + c2.h(); + } + } + + @Override // java.util.AbstractMap, java.util.Map + public boolean containsValue(@NullableDecl Object obj) { + Object obj2; + if (obj == null) { + return false; + } + n[] nVarArr = this.m; + long j2 = -1; + int i2 = 0; + while (i2 < 3) { + long j3 = 0; + for (n nVar : nVarArr) { + int i3 = nVar.count; + AtomicReferenceArray atomicReferenceArray = nVar.table; + for (int i4 = 0; i4 < atomicReferenceArray.length(); i4++) { + for (E e2 = atomicReferenceArray.get(i4); e2 != null; e2 = e2.a()) { + if (e2.getKey() == null) { + nVar.n(); + } else { + obj2 = e2.getValue(); + if (obj2 == null) { + nVar.n(); + } + if (obj2 == null && d().c(obj, obj2)) { + return true; + } + } + obj2 = null; + if (obj2 == null) { + } + } + } + j3 += (long) nVar.modCount; + } + if (j3 == j2) { + return false; + } + i2++; + j2 = j3; + } + return false; + } + + public b.i.b.a.d d() { + return this.n.c().f(); + } + + @Override // java.util.AbstractMap, java.util.Map + public Set> entrySet() { + Set> set = this.q; + if (set != null) { + return set; + } + g gVar = new g(); + this.q = gVar; + return gVar; + } + + @Override // java.util.AbstractMap, java.util.Map + public V get(@NullableDecl Object obj) { + V v = null; + if (obj == null) { + return null; + } + int b2 = b(obj); + n c2 = c(b2); + Objects.requireNonNull(c2); + try { + E e2 = c2.e(obj, b2); + if (e2 != null && (v = (V) e2.getValue()) == null) { + c2.n(); + } + return v; + } finally { + c2.h(); + } + } + + @Override // java.util.AbstractMap, java.util.Map + public boolean isEmpty() { + n[] nVarArr = this.m; + long j2 = 0; + for (int i2 = 0; i2 < nVarArr.length; i2++) { + if (nVarArr[i2].count != 0) { + return false; + } + j2 += (long) nVarArr[i2].modCount; + } + if (j2 == 0) { + return true; + } + for (int i3 = 0; i3 < nVarArr.length; i3++) { + if (nVarArr[i3].count != 0) { + return false; + } + j2 -= (long) nVarArr[i3].modCount; + } + return j2 == 0; + } + + @Override // java.util.AbstractMap, java.util.Map + public Set keySet() { + Set set = this.o; + if (set != null) { + return set; + } + l lVar = new l(); + this.o = lVar; + return lVar; + } + + @Override // java.util.AbstractMap, java.util.Map + @CanIgnoreReturnValue + public V put(K k2, V v) { + Objects.requireNonNull(k2); + Objects.requireNonNull(v); + int b2 = b(k2); + return c(b2).i(k2, b2, v, false); + } + + /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: b.i.b.b.v, S extends b.i.b.b.v$n> */ + /* JADX WARN: Multi-variable type inference failed */ + @Override // java.util.AbstractMap, java.util.Map + public void putAll(Map map) { + for (Map.Entry entry : map.entrySet()) { + put(entry.getKey(), entry.getValue()); + } + } + + @Override // java.util.Map, java.util.concurrent.ConcurrentMap + @CanIgnoreReturnValue + public V putIfAbsent(K k2, V v) { + Objects.requireNonNull(k2); + Objects.requireNonNull(v); + int b2 = b(k2); + return c(b2).i(k2, b2, v, true); + } + + /* JADX WARNING: Code restructure failed: missing block: B:19:0x004a, code lost: + if ((r7.getValue() == null) != false) goto L_0x004c; + */ + @Override // java.util.AbstractMap, java.util.Map + @CanIgnoreReturnValue + public V remove(@NullableDecl Object obj) { + if (obj == null) { + return null; + } + int b2 = b(obj); + n c2 = c(b2); + c2.lock(); + try { + c2.k(); + AtomicReferenceArray atomicReferenceArray = c2.table; + int length = (atomicReferenceArray.length() - 1) & b2; + E e2 = atomicReferenceArray.get(length); + E e3 = e2; + while (true) { + if (e3 == null) { + break; + } + Object key = e3.getKey(); + if (e3.c() != b2 || key == null || !c2.map.keyEquivalence.c(obj, key)) { + e3 = (E) e3.a(); + } else { + V v = (V) e3.getValue(); + if (v != null) { + } + c2.modCount++; + atomicReferenceArray.set(length, c2.j(e2, e3)); + c2.count--; + return v; + } + } + c2.unlock(); + return null; + } finally { + c2.unlock(); + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:19:0x0058, code lost: + if ((r7.getValue() == null) != false) goto L_0x005a; + */ + @Override // java.util.Map, java.util.concurrent.ConcurrentMap + @CanIgnoreReturnValue + public boolean remove(@NullableDecl Object obj, @NullableDecl Object obj2) { + boolean z2 = false; + if (obj == null || obj2 == null) { + return false; + } + int b2 = b(obj); + n c2 = c(b2); + c2.lock(); + try { + c2.k(); + AtomicReferenceArray atomicReferenceArray = c2.table; + int length = (atomicReferenceArray.length() - 1) & b2; + E e2 = atomicReferenceArray.get(length); + E e3 = e2; + while (true) { + if (e3 == null) { + break; + } + Object key = e3.getKey(); + if (e3.c() != b2 || key == null || !c2.map.keyEquivalence.c(obj, key)) { + e3 = (E) e3.a(); + } else { + if (c2.map.d().c(obj2, e3.getValue())) { + z2 = true; + } + c2.modCount++; + atomicReferenceArray.set(length, c2.j(e2, e3)); + c2.count--; + } + } + return z2; + } finally { + c2.unlock(); + } + } + + @Override // java.util.Map, java.util.concurrent.ConcurrentMap + @CanIgnoreReturnValue + public V replace(K k2, V v) { + Objects.requireNonNull(k2); + Objects.requireNonNull(v); + int b2 = b(k2); + n c2 = c(b2); + c2.lock(); + try { + c2.k(); + AtomicReferenceArray atomicReferenceArray = c2.table; + int length = (atomicReferenceArray.length() - 1) & b2; + E e2 = atomicReferenceArray.get(length); + E e3 = e2; + while (true) { + if (e3 == null) { + break; + } + Object key = e3.getKey(); + if (e3.c() != b2 || key == null || !c2.map.keyEquivalence.c(k2, key)) { + e3 = (E) e3.a(); + } else { + V v2 = (V) e3.getValue(); + if (v2 == null) { + if (e3.getValue() == null) { + c2.modCount++; + atomicReferenceArray.set(length, c2.j(e2, e3)); + c2.count--; + } + } else { + c2.modCount++; + c2.map.n.d(c2.l(), e3, v); + c2.unlock(); + return v2; + } + } + } + return null; + } finally { + c2.unlock(); + } + } + + @Override // java.util.Map, java.util.concurrent.ConcurrentMap + @CanIgnoreReturnValue + public boolean replace(K k2, @NullableDecl V v, V v2) { + Objects.requireNonNull(k2); + Objects.requireNonNull(v2); + if (v == null) { + return false; + } + int b2 = b(k2); + n c2 = c(b2); + c2.lock(); + try { + c2.k(); + AtomicReferenceArray atomicReferenceArray = c2.table; + int length = (atomicReferenceArray.length() - 1) & b2; + E e2 = atomicReferenceArray.get(length); + E e3 = e2; + while (true) { + if (e3 == null) { + break; + } + Object key = e3.getKey(); + if (e3.c() != b2 || key == null || !c2.map.keyEquivalence.c(k2, key)) { + e3 = (E) e3.a(); + } else { + Object value = e3.getValue(); + if (value == null) { + if (e3.getValue() == null) { + c2.modCount++; + atomicReferenceArray.set(length, c2.j(e2, e3)); + c2.count--; + } + } else if (c2.map.d().c(v, value)) { + c2.modCount++; + c2.map.n.d(c2.l(), e3, v2); + c2.unlock(); + return true; + } + } + } + return false; + } finally { + c2.unlock(); + } + } + + @Override // java.util.AbstractMap, java.util.Map + public int size() { + n[] nVarArr; + long j2 = 0; + for (n nVar : this.m) { + j2 += (long) nVar.count; + } + if (j2 > 2147483647L) { + return Integer.MAX_VALUE; + } + if (j2 < -2147483648L) { + return Integer.MIN_VALUE; + } + return (int) j2; + } + + @Override // java.util.AbstractMap, java.util.Map + public Collection values() { + Collection collection = this.p; + if (collection != null) { + return collection; + } + C0127v vVar = new C0127v(); + this.p = vVar; + return vVar; + } + + public Object writeReplace() { + return new o(this.n.b(), this.n.c(), this.keyEquivalence, this.n.c().f(), this.concurrencyLevel, this); + } +} diff --git a/app/src/main/java/b/i/b/b/w.java b/app/src/main/java/b/i/b/b/w.java new file mode 100644 index 0000000000..63cce878ce --- /dev/null +++ b/app/src/main/java/b/i/b/b/w.java @@ -0,0 +1,10 @@ +package b.i.b.b; + +import java.util.Iterator; +import java.util.Map; +/* compiled from: Maps */ +public final class w extends r0, V> { + public w(Iterator it) { + super(it); + } +} diff --git a/app/src/main/java/b/i/b/b/x.java b/app/src/main/java/b/i/b/b/x.java new file mode 100644 index 0000000000..fa57e7936c --- /dev/null +++ b/app/src/main/java/b/i/b/b/x.java @@ -0,0 +1,62 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import b.i.b.b.e; +import java.util.Collection; +import java.util.HashSet; +import java.util.Map; +import java.util.Objects; +/* compiled from: Maps */ +public abstract class x extends o0> { + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public void clear() { + e.a.this.clear(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public abstract boolean contains(Object obj); + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean isEmpty() { + return e.a.this.isEmpty(); + } + + @Override // b.i.b.b.o0, java.util.AbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean removeAll(Collection collection) { + try { + Objects.requireNonNull(collection); + return super.removeAll(collection); + } catch (UnsupportedOperationException unused) { + return h.d(this, collection.iterator()); + } + } + + @Override // b.i.b.b.o0, java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean retainAll(Collection collection) { + int i; + try { + Objects.requireNonNull(collection); + return super.retainAll(collection); + } catch (UnsupportedOperationException unused) { + int size = collection.size(); + if (size < 3) { + f.z(size, "expectedSize"); + i = size + 1; + } else { + i = size < 1073741824 ? (int) ((((float) size) / 0.75f) + 1.0f) : Integer.MAX_VALUE; + } + HashSet hashSet = new HashSet(i); + for (Object obj : collection) { + if (contains(obj)) { + hashSet.add(((Map.Entry) obj).getKey()); + } + } + return e.a.this.keySet().retainAll(hashSet); + } + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return e.a.this.size(); + } +} diff --git a/app/src/main/java/b/i/b/b/y.java b/app/src/main/java/b/i/b/b/y.java new file mode 100644 index 0000000000..3c8dd6e437 --- /dev/null +++ b/app/src/main/java/b/i/b/b/y.java @@ -0,0 +1,30 @@ +package b.i.b.b; + +import com.google.j2objc.annotations.Weak; +import java.util.Map; +import java.util.Objects; +/* compiled from: Maps */ +public class y extends o0 { + @Weak + public final Map j; + + public y(Map map) { + Objects.requireNonNull(map); + this.j = map; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean contains(Object obj) { + return this.j.containsKey(obj); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public boolean isEmpty() { + return this.j.isEmpty(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set + public int size() { + return this.j.size(); + } +} diff --git a/app/src/main/java/b/i/b/b/z.java b/app/src/main/java/b/i/b/b/z.java new file mode 100644 index 0000000000..30cd67185f --- /dev/null +++ b/app/src/main/java/b/i/b/b/z.java @@ -0,0 +1,92 @@ +package b.i.b.b; + +import b.i.a.f.e.o.f; +import com.google.j2objc.annotations.Weak; +import java.util.AbstractCollection; +import java.util.Collection; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: Maps */ +public class z extends AbstractCollection { + @Weak + public final Map j; + + public z(Map map) { + this.j = map; + } + + @Override // java.util.AbstractCollection, java.util.Collection + public void clear() { + this.j.clear(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean contains(@NullableDecl Object obj) { + return this.j.containsValue(obj); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean isEmpty() { + return this.j.isEmpty(); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable + public Iterator iterator() { + return new w(this.j.entrySet().iterator()); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean remove(Object obj) { + try { + return super.remove(obj); + } catch (UnsupportedOperationException unused) { + for (Map.Entry entry : this.j.entrySet()) { + if (f.U(obj, entry.getValue())) { + this.j.remove(entry.getKey()); + return true; + } + } + return false; + } + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean removeAll(Collection collection) { + try { + Objects.requireNonNull(collection); + return super.removeAll(collection); + } catch (UnsupportedOperationException unused) { + HashSet hashSet = new HashSet(); + for (Map.Entry entry : this.j.entrySet()) { + if (collection.contains(entry.getValue())) { + hashSet.add(entry.getKey()); + } + } + return this.j.keySet().removeAll(hashSet); + } + } + + @Override // java.util.AbstractCollection, java.util.Collection + public boolean retainAll(Collection collection) { + try { + Objects.requireNonNull(collection); + return super.retainAll(collection); + } catch (UnsupportedOperationException unused) { + HashSet hashSet = new HashSet(); + for (Map.Entry entry : this.j.entrySet()) { + if (collection.contains(entry.getValue())) { + hashSet.add(entry.getKey()); + } + } + return this.j.keySet().retainAll(hashSet); + } + } + + @Override // java.util.AbstractCollection, java.util.Collection + public int size() { + return this.j.size(); + } +} diff --git a/app/src/main/java/b/i/b/c/a.java b/app/src/main/java/b/i/b/c/a.java new file mode 100644 index 0000000000..5c434d5698 --- /dev/null +++ b/app/src/main/java/b/i/b/c/a.java @@ -0,0 +1,189 @@ +package b.i.b.c; + +import b.i.a.f.e.o.f; +import java.io.Serializable; +import java.util.AbstractList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.RandomAccess; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: Ints */ +public class a extends AbstractList implements RandomAccess, Serializable { + private static final long serialVersionUID = 0; + public final int[] array; + public final int end; + public final int start; + + public a(int[] iArr) { + int length = iArr.length; + this.array = iArr; + this.start = 0; + this.end = length; + } + + public a(int[] iArr, int i, int i2) { + this.array = iArr; + this.start = i; + this.end = i2; + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public boolean contains(Object obj) { + if (obj instanceof Integer) { + int[] iArr = this.array; + int intValue = ((Integer) obj).intValue(); + int i = this.start; + int i2 = this.end; + while (true) { + if (i >= i2) { + i = -1; + break; + } else if (iArr[i] == intValue) { + break; + } else { + i++; + } + } + if (i != -1) { + return true; + } + } + return false; + } + + @Override // java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public boolean equals(@NullableDecl Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof a)) { + return super.equals(obj); + } + a aVar = (a) obj; + int size = size(); + if (aVar.size() != size) { + return false; + } + for (int i = 0; i < size; i++) { + if (this.array[this.start + i] != aVar.array[aVar.start + i]) { + return false; + } + } + return true; + } + + @Override // java.util.AbstractList, java.util.List + public Object get(int i) { + f.w(i, size()); + return Integer.valueOf(this.array[this.start + i]); + } + + @Override // java.util.AbstractList, java.util.List, java.util.Collection, java.lang.Object + public int hashCode() { + int i = 1; + for (int i2 = this.start; i2 < this.end; i2++) { + i = (i * 31) + this.array[i2]; + } + return i; + } + + @Override // java.util.AbstractList, java.util.List + public int indexOf(Object obj) { + if (obj instanceof Integer) { + int[] iArr = this.array; + int intValue = ((Integer) obj).intValue(); + int i = this.start; + int i2 = this.end; + while (true) { + if (i >= i2) { + i = -1; + break; + } else if (iArr[i] == intValue) { + break; + } else { + i++; + } + } + if (i >= 0) { + return i - this.start; + } + } + return -1; + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public boolean isEmpty() { + return false; + } + + @Override // java.util.AbstractList, java.util.List + public int lastIndexOf(Object obj) { + if (obj instanceof Integer) { + int[] iArr = this.array; + int intValue = ((Integer) obj).intValue(); + int i = this.start; + int i2 = this.end - 1; + while (true) { + if (i2 < i) { + i2 = -1; + break; + } else if (iArr[i2] == intValue) { + break; + } else { + i2--; + } + } + if (i2 >= 0) { + return i2 - this.start; + } + } + return -1; + } + + @Override // java.util.AbstractList, java.util.List + public Object set(int i, Object obj) { + Integer num = (Integer) obj; + f.w(i, size()); + int[] iArr = this.array; + int i2 = this.start + i; + int i3 = iArr[i2]; + Objects.requireNonNull(num); + iArr[i2] = num.intValue(); + return Integer.valueOf(i3); + } + + @Override // java.util.AbstractCollection, java.util.List, java.util.Collection + public int size() { + return this.end - this.start; + } + + @Override // java.util.AbstractList, java.util.List + public List subList(int i, int i2) { + f.C(i, i2, size()); + if (i == i2) { + return Collections.emptyList(); + } + int[] iArr = this.array; + int i3 = this.start; + return new a(iArr, i + i3, i3 + i2); + } + + @Override // java.util.AbstractCollection, java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder(size() * 5); + sb.append('['); + sb.append(this.array[this.start]); + int i = this.start; + while (true) { + i++; + if (i < this.end) { + sb.append(", "); + sb.append(this.array[i]); + } else { + sb.append(']'); + return sb.toString(); + } + } + } +} diff --git a/app/src/main/java/b/i/b/d/a/a.java b/app/src/main/java/b/i/b/d/a/a.java new file mode 100644 index 0000000000..f6171c9e05 --- /dev/null +++ b/app/src/main/java/b/i/b/d/a/a.java @@ -0,0 +1,8 @@ +package b.i.b.d.a; + +import java.util.concurrent.Executor; +import java.util.concurrent.Future; +/* compiled from: ListenableFuture */ +public interface a extends Future { + void addListener(Runnable runnable, Executor executor); +} diff --git a/app/src/main/java/b/i/c/a.java b/app/src/main/java/b/i/c/a.java new file mode 100644 index 0000000000..8c14ccafbe --- /dev/null +++ b/app/src/main/java/b/i/c/a.java @@ -0,0 +1,4 @@ +package b.i.c; +/* compiled from: DataCollectionDefaultChange */ +public final class a { +} diff --git a/app/src/main/java/b/i/c/b.java b/app/src/main/java/b/i/c/b.java new file mode 100644 index 0000000000..20b733b82b --- /dev/null +++ b/app/src/main/java/b/i/c/b.java @@ -0,0 +1,25 @@ +package b.i.c; + +import android.content.Context; +import b.i.c.q.c; +import b.i.c.t.a; +/* compiled from: FirebaseApp */ +public final /* synthetic */ class b implements a { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1637b; + + public b(c cVar, Context context) { + this.a = cVar; + this.f1637b = context; + } + + @Override // b.i.c.t.a + public Object get() { + c cVar = this.a; + Context context = this.f1637b; + Object obj = c.a; + return new b.i.c.v.a(context, cVar.c(), (c) cVar.g.a(c.class)); + } +} diff --git a/app/src/main/java/b/i/c/c.java b/app/src/main/java/b/i/c/c.java new file mode 100644 index 0000000000..1539191d6d --- /dev/null +++ b/app/src/main/java/b/i/c/c.java @@ -0,0 +1,388 @@ +package b.i.c; + +import android.annotation.TargetApi; +import android.app.Application; +import android.content.BroadcastReceiver; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.content.pm.PackageManager; +import android.content.pm.ServiceInfo; +import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; +import android.util.Base64; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import androidx.collection.ArrayMap; +import androidx.core.os.UserManagerCompat; +import b.i.a.f.e.h.j.c; +import b.i.c.l.g; +import b.i.c.l.k; +import b.i.c.l.p; +import b.i.c.l.q; +import b.i.c.l.r; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.material.badge.BadgeDrawable; +import com.google.firebase.FirebaseCommonRegistrar; +import com.google.firebase.components.ComponentDiscoveryService; +import java.lang.reflect.InvocationTargetException; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Queue; +import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.Executor; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: FirebaseApp */ +public class c { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static final Executor f1638b = new d(null); + public static final Map c = new ArrayMap(); + public final Context d; + public final String e; + public final i f; + public final k g; + public final AtomicBoolean h = new AtomicBoolean(false); + public final AtomicBoolean i = new AtomicBoolean(); + public final r j; + public final List k = new CopyOnWriteArrayList(); + + /* compiled from: FirebaseApp */ + public interface b { + void a(boolean z2); + } + + /* compiled from: FirebaseApp */ + @TargetApi(14) + /* renamed from: b.i.c.c$c reason: collision with other inner class name */ + public static class C0128c implements c.a { + public static AtomicReference a = new AtomicReference<>(); + + @Override // b.i.a.f.e.h.j.c.a + public void a(boolean z2) { + Object obj = c.a; + synchronized (c.a) { + Iterator it = new ArrayList(c.c.values()).iterator(); + while (it.hasNext()) { + c cVar = (c) it.next(); + if (cVar.h.get()) { + Log.d("FirebaseApp", "Notifying background state change listeners."); + for (b bVar : cVar.k) { + bVar.a(z2); + } + } + } + } + } + } + + /* compiled from: FirebaseApp */ + public static class d implements Executor { + public static final Handler j = new Handler(Looper.getMainLooper()); + + public d(a aVar) { + } + + @Override // java.util.concurrent.Executor + public void execute(@NonNull Runnable runnable) { + j.post(runnable); + } + } + + /* compiled from: FirebaseApp */ + @TargetApi(24) + public static class e extends BroadcastReceiver { + public static AtomicReference a = new AtomicReference<>(); + + /* renamed from: b reason: collision with root package name */ + public final Context f1639b; + + public e(Context context) { + this.f1639b = context; + } + + @Override // android.content.BroadcastReceiver + public void onReceive(Context context, Intent intent) { + Object obj = c.a; + synchronized (c.a) { + for (c cVar : c.c.values()) { + cVar.d(); + } + } + this.f1639b.unregisterReceiver(this); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:14:0x006b */ + /* JADX WARNING: Removed duplicated region for block: B:15:0x0075 */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x00c0 */ + public c(Context context, String str, i iVar) { + Bundle bundle; + List list; + new CopyOnWriteArrayList(); + this.d = context; + b.c.a.a0.d.w(str); + this.e = str; + Objects.requireNonNull(iVar, "null reference"); + this.f = iVar; + try { + PackageManager packageManager = context.getPackageManager(); + if (packageManager == null) { + Log.w("ComponentDiscovery", "Context has no PackageManager."); + } else { + ServiceInfo serviceInfo = packageManager.getServiceInfo(new ComponentName(context, ComponentDiscoveryService.class), 128); + if (serviceInfo == null) { + Log.w("ComponentDiscovery", ComponentDiscoveryService.class + " has no service info."); + } else { + bundle = serviceInfo.metaData; + if (bundle != null) { + Log.w("ComponentDiscovery", "Could not retrieve metadata, returning empty list of registrars."); + list = Collections.emptyList(); + } else { + ArrayList arrayList = new ArrayList(); + for (String str2 : bundle.keySet()) { + if ("com.google.firebase.components.ComponentRegistrar".equals(bundle.get(str2)) && str2.startsWith("com.google.firebase.components:")) { + arrayList.add(str2.substring(31)); + } + } + list = arrayList; + } + ArrayList arrayList2 = new ArrayList(); + for (String str3 : list) { + try { + Class cls = Class.forName(str3); + if (!g.class.isAssignableFrom(cls)) { + Log.w("ComponentDiscovery", String.format("Class %s is not an instance of %s", str3, "com.google.firebase.components.ComponentRegistrar")); + } else { + arrayList2.add((g) cls.getDeclaredConstructor(new Class[0]).newInstance(new Object[0])); + } + } catch (ClassNotFoundException e2) { + Log.w("ComponentDiscovery", String.format("Class %s is not an found.", str3), e2); + } catch (IllegalAccessException e3) { + Log.w("ComponentDiscovery", String.format("Could not instantiate %s.", str3), e3); + } catch (InstantiationException e4) { + Log.w("ComponentDiscovery", String.format("Could not instantiate %s.", str3), e4); + } catch (NoSuchMethodException e5) { + Log.w("ComponentDiscovery", String.format("Could not instantiate %s", str3), e5); + } catch (InvocationTargetException e6) { + Log.w("ComponentDiscovery", String.format("Could not instantiate %s", str3), e6); + } + } + arrayList2.add(new FirebaseCommonRegistrar()); + this.g = new k(f1638b, arrayList2, b.i.c.l.d.c(context, Context.class, new Class[0]), b.i.c.l.d.c(this, c.class, new Class[0]), b.i.c.l.d.c(iVar, i.class, new Class[0])); + this.j = new r<>(new b(this, context)); + } + } + } catch (PackageManager.NameNotFoundException unused) { + Log.w("ComponentDiscovery", "Application info not found."); + } + bundle = null; + if (bundle != null) { + } + ArrayList arrayList2 = new ArrayList(); + while (r13.hasNext()) { + } + arrayList2.add(new FirebaseCommonRegistrar()); + this.g = new k(f1638b, arrayList2, b.i.c.l.d.c(context, Context.class, new Class[0]), b.i.c.l.d.c(this, c.class, new Class[0]), b.i.c.l.d.c(iVar, i.class, new Class[0])); + this.j = new r<>(new b(this, context)); + } + + @NonNull + public static c b() { + c cVar; + synchronized (a) { + cVar = c.get("[DEFAULT]"); + if (cVar == null) { + throw new IllegalStateException("Default FirebaseApp is not initialized in this process " + b.i.a.f.e.o.g.a() + ". Make sure to call FirebaseApp.initializeApp(Context) first."); + } + } + return cVar; + } + + @Nullable + public static c e(@NonNull Context context) { + synchronized (a) { + if (c.containsKey("[DEFAULT]")) { + return b(); + } + i a2 = i.a(context); + if (a2 == null) { + Log.w("FirebaseApp", "Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project."); + return null; + } + return f(context, a2); + } + } + + @NonNull + public static c f(@NonNull Context context, @NonNull i iVar) { + c cVar; + AtomicReference atomicReference = C0128c.a; + if (context.getApplicationContext() instanceof Application) { + Application application = (Application) context.getApplicationContext(); + if (C0128c.a.get() == null) { + C0128c cVar2 = new C0128c(); + if (C0128c.a.compareAndSet(null, cVar2)) { + b.i.a.f.e.h.j.c.a(application); + b.i.a.f.e.h.j.c cVar3 = b.i.a.f.e.h.j.c.j; + Objects.requireNonNull(cVar3); + synchronized (cVar3) { + cVar3.m.add(cVar2); + } + } + } + } + if (context.getApplicationContext() != null) { + context = context.getApplicationContext(); + } + synchronized (a) { + Map map = c; + b.c.a.a0.d.G(!map.containsKey("[DEFAULT]"), "FirebaseApp name [DEFAULT] already exists!"); + b.c.a.a0.d.z(context, "Application context cannot be null."); + cVar = new c(context, "[DEFAULT]", iVar); + map.put("[DEFAULT]", cVar); + } + cVar.d(); + return cVar; + } + + public final void a() { + b.c.a.a0.d.G(!this.i.get(), "FirebaseApp was deleted"); + } + + public String c() { + StringBuilder sb = new StringBuilder(); + a(); + byte[] bytes = this.e.getBytes(Charset.defaultCharset()); + String str = null; + sb.append(bytes == null ? null : Base64.encodeToString(bytes, 11)); + sb.append(BadgeDrawable.DEFAULT_EXCEED_MAX_BADGE_NUMBER_SUFFIX); + a(); + byte[] bytes2 = this.f.f1640b.getBytes(Charset.defaultCharset()); + if (bytes2 != null) { + str = Base64.encodeToString(bytes2, 11); + } + sb.append(str); + return sb.toString(); + } + + public final void d() { + Queue> queue; + Set, Executor>> emptySet; + if (!UserManagerCompat.isUserUnlocked(this.d)) { + StringBuilder sb = new StringBuilder(); + sb.append("Device in Direct Boot Mode: postponing initialization of Firebase APIs for app "); + a(); + sb.append(this.e); + Log.i("FirebaseApp", sb.toString()); + Context context = this.d; + if (e.a.get() == null) { + e eVar = new e(context); + if (e.a.compareAndSet(null, eVar)) { + context.registerReceiver(eVar, new IntentFilter("android.intent.action.USER_UNLOCKED")); + return; + } + return; + } + return; + } + StringBuilder sb2 = new StringBuilder(); + sb2.append("Device unlocked: initializing all Firebase APIs for app "); + a(); + sb2.append(this.e); + Log.i("FirebaseApp", sb2.toString()); + k kVar = this.g; + boolean h = h(); + for (Map.Entry, r> entry : kVar.f1650b.entrySet()) { + r value = entry.getValue(); + int i = entry.getKey().c; + boolean z2 = false; + if (!(i == 1)) { + if (i == 2) { + z2 = true; + } + if (z2 && h) { + } + } + value.get(); + } + q qVar = kVar.e; + synchronized (qVar) { + queue = qVar.f1654b; + if (queue != null) { + qVar.f1654b = null; + } else { + queue = null; + } + } + if (queue != null) { + for (b.i.c.q.a aVar : queue) { + Objects.requireNonNull(aVar); + synchronized (qVar) { + Queue> queue2 = qVar.f1654b; + if (queue2 != null) { + queue2.add(aVar); + } else { + synchronized (qVar) { + ConcurrentHashMap, Executor> concurrentHashMap = qVar.a.get(null); + emptySet = concurrentHashMap == null ? Collections.emptySet() : concurrentHashMap.entrySet(); + } + for (Map.Entry, Executor> entry2 : emptySet) { + entry2.getValue().execute(new p(entry2, aVar)); + } + } + } + } + } + } + + public boolean equals(Object obj) { + if (!(obj instanceof c)) { + return false; + } + String str = this.e; + c cVar = (c) obj; + cVar.a(); + return str.equals(cVar.e); + } + + public boolean g() { + boolean z2; + a(); + b.i.c.v.a aVar = this.j.get(); + synchronized (aVar) { + z2 = aVar.d; + } + return z2; + } + + @VisibleForTesting + public boolean h() { + a(); + return "[DEFAULT]".equals(this.e); + } + + public int hashCode() { + return this.e.hashCode(); + } + + public String toString() { + b.i.a.f.e.k.k kVar = new b.i.a.f.e.k.k(this, null); + kVar.a(ModelAuditLogEntry.CHANGE_KEY_NAME, this.e); + kVar.a("options", this.f); + return kVar.toString(); + } +} diff --git a/app/src/main/java/b/i/c/d.java b/app/src/main/java/b/i/c/d.java new file mode 100644 index 0000000000..52149259a4 --- /dev/null +++ b/app/src/main/java/b/i/c/d.java @@ -0,0 +1,15 @@ +package b.i.c; + +import android.content.Context; +import android.content.pm.ApplicationInfo; +import b.i.c.x.g; +/* compiled from: FirebaseCommonRegistrar */ +public final /* synthetic */ class d implements g { + public static final d a = new d(); + + @Override // b.i.c.x.g + public String a(Object obj) { + ApplicationInfo applicationInfo = ((Context) obj).getApplicationInfo(); + return applicationInfo != null ? String.valueOf(applicationInfo.targetSdkVersion) : ""; + } +} diff --git a/app/src/main/java/b/i/c/e.java b/app/src/main/java/b/i/c/e.java new file mode 100644 index 0000000000..451ab9a76d --- /dev/null +++ b/app/src/main/java/b/i/c/e.java @@ -0,0 +1,16 @@ +package b.i.c; + +import android.content.Context; +import android.content.pm.ApplicationInfo; +import android.os.Build; +import b.i.c.x.g; +/* compiled from: FirebaseCommonRegistrar */ +public final /* synthetic */ class e implements g { + public static final e a = new e(); + + @Override // b.i.c.x.g + public String a(Object obj) { + ApplicationInfo applicationInfo = ((Context) obj).getApplicationInfo(); + return (applicationInfo == null || Build.VERSION.SDK_INT < 24) ? "" : String.valueOf(applicationInfo.minSdkVersion); + } +} diff --git a/app/src/main/java/b/i/c/f.java b/app/src/main/java/b/i/c/f.java new file mode 100644 index 0000000000..01d322b445 --- /dev/null +++ b/app/src/main/java/b/i/c/f.java @@ -0,0 +1,16 @@ +package b.i.c; + +import android.content.Context; +import android.os.Build; +import b.i.c.x.g; +/* compiled from: FirebaseCommonRegistrar */ +public final /* synthetic */ class f implements g { + public static final f a = new f(); + + @Override // b.i.c.x.g + public String a(Object obj) { + Context context = (Context) obj; + int i = Build.VERSION.SDK_INT; + return context.getPackageManager().hasSystemFeature("android.hardware.type.television") ? "tv" : context.getPackageManager().hasSystemFeature("android.hardware.type.watch") ? "watch" : (i < 23 || !context.getPackageManager().hasSystemFeature("android.hardware.type.automotive")) ? (i < 26 || !context.getPackageManager().hasSystemFeature("android.hardware.type.embedded")) ? "" : "embedded" : "auto"; + } +} diff --git a/app/src/main/java/b/i/c/g.java b/app/src/main/java/b/i/c/g.java new file mode 100644 index 0000000000..7616c27a33 --- /dev/null +++ b/app/src/main/java/b/i/c/g.java @@ -0,0 +1,15 @@ +package b.i.c; + +import android.content.Context; +import com.google.firebase.FirebaseCommonRegistrar; +/* compiled from: FirebaseCommonRegistrar */ +public final /* synthetic */ class g implements b.i.c.x.g { + public static final g a = new g(); + + @Override // b.i.c.x.g + public String a(Object obj) { + Context context = (Context) obj; + String installerPackageName = context.getPackageManager().getInstallerPackageName(context.getPackageName()); + return installerPackageName != null ? FirebaseCommonRegistrar.a(installerPackageName) : ""; + } +} diff --git a/app/src/main/java/b/i/c/h.java b/app/src/main/java/b/i/c/h.java new file mode 100644 index 0000000000..0ef2ebcfc7 --- /dev/null +++ b/app/src/main/java/b/i/c/h.java @@ -0,0 +1,15 @@ +package b.i.c; + +import androidx.annotation.RecentlyNonNull; +import b.i.a.f.e.h.j.n; +import com.google.android.gms.common.api.Status; +import com.google.firebase.FirebaseApiNotAvailableException; +import com.google.firebase.FirebaseException; +/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */ +public class h implements n { + @Override // b.i.a.f.e.h.j.n + @RecentlyNonNull + public Exception a(@RecentlyNonNull Status status) { + return status.p == 8 ? new FirebaseException(status.x0()) : new FirebaseApiNotAvailableException(status.x0()); + } +} diff --git a/app/src/main/java/b/i/c/i.java b/app/src/main/java/b/i/c/i.java new file mode 100644 index 0000000000..86a2521664 --- /dev/null +++ b/app/src/main/java/b/i/c/i.java @@ -0,0 +1,87 @@ +package b.i.c; + +import android.content.Context; +import android.content.res.Resources; +import android.text.TextUtils; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.c.a.a0.d; +import b.i.a.f.e.k.k; +import b.i.a.f.e.o.h; +import com.google.android.gms.common.R; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: FirebaseOptions */ +public final class i { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1640b; + public final String c; + public final String d; + public final String e; + public final String f; + public final String g; + + public i(@NonNull String str, @NonNull String str2, @Nullable String str3, @Nullable String str4, @Nullable String str5, @Nullable String str6, @Nullable String str7) { + d.G(!h.a(str), "ApplicationId must be set."); + this.f1640b = str; + this.a = str2; + this.c = str3; + this.d = str4; + this.e = str5; + this.f = str6; + this.g = str7; + } + + @Nullable + public static i a(@NonNull Context context) { + Objects.requireNonNull(context, "null reference"); + Resources resources = context.getResources(); + String resourcePackageName = resources.getResourcePackageName(R.a.common_google_play_services_unknown_issue); + int identifier = resources.getIdentifier("google_app_id", "string", resourcePackageName); + String str = null; + String string = identifier == 0 ? null : resources.getString(identifier); + if (TextUtils.isEmpty(string)) { + return null; + } + int identifier2 = resources.getIdentifier("google_api_key", "string", resourcePackageName); + String string2 = identifier2 == 0 ? null : resources.getString(identifier2); + int identifier3 = resources.getIdentifier("firebase_database_url", "string", resourcePackageName); + String string3 = identifier3 == 0 ? null : resources.getString(identifier3); + int identifier4 = resources.getIdentifier("ga_trackingId", "string", resourcePackageName); + String string4 = identifier4 == 0 ? null : resources.getString(identifier4); + int identifier5 = resources.getIdentifier("gcm_defaultSenderId", "string", resourcePackageName); + String string5 = identifier5 == 0 ? null : resources.getString(identifier5); + int identifier6 = resources.getIdentifier("google_storage_bucket", "string", resourcePackageName); + String string6 = identifier6 == 0 ? null : resources.getString(identifier6); + int identifier7 = resources.getIdentifier("project_id", "string", resourcePackageName); + if (identifier7 != 0) { + str = resources.getString(identifier7); + } + return new i(string, string2, string3, string4, string5, string6, str); + } + + public boolean equals(Object obj) { + if (!(obj instanceof i)) { + return false; + } + i iVar = (i) obj; + return d.g0(this.f1640b, iVar.f1640b) && d.g0(this.a, iVar.a) && d.g0(this.c, iVar.c) && d.g0(this.d, iVar.d) && d.g0(this.e, iVar.e) && d.g0(this.f, iVar.f) && d.g0(this.g, iVar.g); + } + + public int hashCode() { + return Arrays.hashCode(new Object[]{this.f1640b, this.a, this.c, this.d, this.e, this.f, this.g}); + } + + public String toString() { + k kVar = new k(this, null); + kVar.a("applicationId", this.f1640b); + kVar.a("apiKey", this.a); + kVar.a("databaseUrl", this.c); + kVar.a("gcmSenderId", this.e); + kVar.a("storageBucket", this.f); + kVar.a("projectId", this.g); + return kVar.toString(); + } +} diff --git a/app/src/main/java/b/i/c/j/a/a.java b/app/src/main/java/b/i/c/j/a/a.java new file mode 100644 index 0000000000..99d4bf15d3 --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/a.java @@ -0,0 +1,19 @@ +package b.i.c.j.a; + +import android.os.Bundle; +import androidx.annotation.NonNull; +public interface a { + + /* renamed from: b.i.c.j.a.a$a reason: collision with other inner class name */ + public interface AbstractC0129a { + } + + public interface b { + } + + void a(@NonNull String str, @NonNull String str2, Bundle bundle); + + void b(@NonNull String str, @NonNull String str2, Object obj); + + AbstractC0129a c(String str, b bVar); +} diff --git a/app/src/main/java/b/i/c/j/a/b.java b/app/src/main/java/b/i/c/j/a/b.java new file mode 100644 index 0000000000..f29a747e29 --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/b.java @@ -0,0 +1,173 @@ +package b.i.c.j.a; + +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.WorkerThread; +import b.i.a.f.h.l.b0; +import b.i.a.f.h.l.g; +import b.i.c.j.a.a; +import b.i.c.j.a.c.c; +import b.i.c.j.a.c.d; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public class b implements a { + public static volatile a a; + + /* renamed from: b reason: collision with root package name */ + public final b.i.a.f.i.a.a f1641b; + public final Map c = new ConcurrentHashMap(); + + /* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ + public class a implements a.AbstractC0129a { + public a(b bVar, String str) { + } + } + + public b(b.i.a.f.i.a.a aVar) { + Objects.requireNonNull(aVar, "null reference"); + this.f1641b = aVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:49:0x00b6 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:50:0x00b7 */ + @Override // b.i.c.j.a.a + public void a(@NonNull String str, @NonNull String str2, Bundle bundle) { + boolean z2; + if (bundle == null) { + bundle = new Bundle(); + } + if (c.a(str)) { + boolean z3 = false; + if (!c.f1643b.contains(str2)) { + Iterator it = c.d.iterator(); + while (true) { + if (it.hasNext()) { + if (bundle.containsKey(it.next())) { + break; + } + } else { + z2 = true; + break; + } + } + } else { + z2 = false; + } + if (z2) { + if ("_cmp".equals(str2)) { + if (c.a(str)) { + Iterator it2 = c.d.iterator(); + while (true) { + if (it2.hasNext()) { + if (bundle.containsKey(it2.next())) { + break; + } + } else { + char c = 65535; + int hashCode = str.hashCode(); + if (hashCode != 101200) { + if (hashCode != 101230) { + if (hashCode == 3142703 && str.equals("fiam")) { + c = 2; + } + } else if (str.equals("fdl")) { + c = 1; + } + } else if (str.equals("fcm")) { + c = 0; + } + if (c == 0) { + bundle.putString("_cis", "fcm_integration"); + } else if (c == 1) { + bundle.putString("_cis", "fdl_integration"); + } else if (c == 2) { + bundle.putString("_cis", "fiam_integration"); + } + } + } + } + if (!z3) { + if ("clx".equals(str) && "_ae".equals(str2)) { + bundle.putLong("_r", 1); + } + this.f1641b.a.c(str, str2, bundle, true, true, null); + return; + } + return; + } + z3 = true; + if (!z3) { + } + } + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:12:0x002f, code lost: + if (r9.equals("fiam") == false) goto L_0x0063; + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x0060, code lost: + if (r9.equals("frc") == false) goto L_0x0063; + */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x0066 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x0067 */ + @Override // b.i.c.j.a.a + public void b(@NonNull String str, @NonNull String str2, Object obj) { + if (c.a(str)) { + boolean z2 = true; + if ("_ce1".equals(str2) || "_ce2".equals(str2)) { + if (!str.equals("fcm")) { + } + if (!z2) { + g gVar = this.f1641b.a; + Objects.requireNonNull(gVar); + gVar.e.execute(new b0(gVar, str, str2, obj, true)); + return; + } + return; + } else if ("_ln".equals(str2)) { + if (!str.equals("fcm")) { + } + if (!z2) { + } + } else if (!c.e.contains(str2)) { + Iterator it = c.f.iterator(); + while (true) { + if (it.hasNext()) { + if (str2.matches(it.next())) { + break; + } + } else { + break; + } + } + if (!z2) { + } + } + z2 = false; + if (!z2) { + } + } + } + + @Override // b.i.c.j.a.a + @WorkerThread + public a.AbstractC0129a c(@NonNull String str, a.b bVar) { + Objects.requireNonNull(bVar, "null reference"); + if (!c.a(str)) { + return null; + } + if (!str.isEmpty() && this.c.containsKey(str) && this.c.get(str) != null) { + return null; + } + b.i.a.f.i.a.a aVar = this.f1641b; + Object bVar2 = "fiam".equals(str) ? new b.i.c.j.a.c.b(aVar, bVar) : ("crash".equals(str) || "clx".equals(str)) ? new d(aVar, bVar) : null; + if (bVar2 == null) { + return null; + } + this.c.put(str, bVar2); + return new a(this, str); + } +} diff --git a/app/src/main/java/b/i/c/j/a/c/a.java b/app/src/main/java/b/i/c/j/a/c/a.java new file mode 100644 index 0000000000..710df444b6 --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/c/a.java @@ -0,0 +1,39 @@ +package b.i.c.j.a.c; + +import android.content.Context; +import android.os.Bundle; +import b.i.a.f.h.l.g; +import b.i.c.c; +import b.i.c.j.a.b; +import b.i.c.l.e; +import b.i.c.l.f; +import b.i.c.q.d; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final /* synthetic */ class a implements f { + public static final f a = new a(); + + @Override // b.i.c.l.f + public final Object a(e eVar) { + c cVar = (c) eVar.a(c.class); + Context context = (Context) eVar.a(Context.class); + d dVar = (d) eVar.a(d.class); + Objects.requireNonNull(cVar, "null reference"); + Objects.requireNonNull(context, "null reference"); + Objects.requireNonNull(dVar, "null reference"); + Objects.requireNonNull(context.getApplicationContext(), "null reference"); + if (b.a == null) { + synchronized (b.class) { + if (b.a == null) { + Bundle bundle = new Bundle(1); + if (cVar.h()) { + dVar.b(b.i.c.a.class, b.i.c.j.a.e.j, b.i.c.j.a.d.a); + bundle.putBoolean("dataCollectionDefaultEnabled", cVar.g()); + } + b.a = new b(g.a(context, null, null, null, bundle).f); + } + } + } + return b.a; + } +} diff --git a/app/src/main/java/b/i/c/j/a/c/b.java b/app/src/main/java/b/i/c/j/a/c/b.java new file mode 100644 index 0000000000..abf3830e62 --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/c/b.java @@ -0,0 +1,22 @@ +package b.i.c.j.a.c; + +import b.i.c.j.a.a; +import java.util.HashSet; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final class b { + public Set a = new HashSet(); + + /* renamed from: b reason: collision with root package name */ + public a.b f1642b; + public b.i.a.f.i.a.a c; + public e d; + + public b(b.i.a.f.i.a.a aVar, a.b bVar) { + this.f1642b = bVar; + this.c = aVar; + e eVar = new e(this); + this.d = eVar; + aVar.a(eVar); + } +} diff --git a/app/src/main/java/b/i/c/j/a/c/c.java b/app/src/main/java/b/i/c/j/a/c/c.java new file mode 100644 index 0000000000..b5cacb16fe --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/c/c.java @@ -0,0 +1,39 @@ +package b.i.c.j.a.c; + +import androidx.annotation.NonNull; +import b.i.a.f.i.b.x5; +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final class c { + public static final Set a = new HashSet(Arrays.asList("_in", "_xa", "_xu", "_aq", "_aa", "_ai", "_ac", "campaign_details", "_ug", "_iapx", "_exp_set", "_exp_clear", "_exp_activate", "_exp_timeout", "_exp_expire")); + + /* renamed from: b reason: collision with root package name */ + public static final List f1643b = Arrays.asList("_e", "_f", "_iap", "_s", "_au", "_ui", "_cd"); + public static final List c = Arrays.asList("auto", "app", "am"); + public static final List d = Arrays.asList("_r", "_dbg"); + public static final List e; + public static final List f = Arrays.asList("^_ltv_[A-Z]{3}$", "^_cc[1-5]{1}$"); + + static { + String[][] strArr = {x5.a, x5.f1563b}; + int i = 0; + for (int i2 = 0; i2 < 2; i2++) { + i += strArr[i2].length; + } + Object[] copyOf = Arrays.copyOf(strArr[0], i); + int length = strArr[0].length; + for (int i3 = 1; i3 < 2; i3++) { + String[] strArr2 = strArr[i3]; + System.arraycopy(strArr2, 0, copyOf, length, strArr2.length); + length += strArr2.length; + } + e = Arrays.asList((String[]) copyOf); + } + + public static boolean a(@NonNull String str) { + return !c.contains(str); + } +} diff --git a/app/src/main/java/b/i/c/j/a/c/d.java b/app/src/main/java/b/i/c/j/a/c/d.java new file mode 100644 index 0000000000..3bac53c84f --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/c/d.java @@ -0,0 +1,19 @@ +package b.i.c.j.a.c; + +import b.i.c.j.a.a; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final class d { + public a.b a; + + /* renamed from: b reason: collision with root package name */ + public b.i.a.f.i.a.a f1644b; + public f c; + + public d(b.i.a.f.i.a.a aVar, a.b bVar) { + this.a = bVar; + this.f1644b = aVar; + f fVar = new f(this); + this.c = fVar; + aVar.a(fVar); + } +} diff --git a/app/src/main/java/b/i/c/j/a/c/e.java b/app/src/main/java/b/i/c/j/a/c/e.java new file mode 100644 index 0000000000..8b7d74a7f4 --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/c/e.java @@ -0,0 +1,29 @@ +package b.i.c.j.a.c; + +import android.os.Bundle; +import b.i.a.f.e.o.f; +import b.i.a.f.i.a.a; +import b.i.a.f.i.b.v5; +import java.util.Set; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final class e implements a.AbstractC0111a { + public final /* synthetic */ b a; + + public e(b bVar) { + this.a = bVar; + } + + @Override // b.i.a.f.i.b.z5 + public final void a(String str, String str2, Bundle bundle, long j) { + if (this.a.a.contains(str2)) { + Bundle bundle2 = new Bundle(); + Set set = c.a; + String P1 = f.P1(str2, v5.c, v5.a); + if (P1 != null) { + str2 = P1; + } + bundle2.putString("events", str2); + ((b.i.c.m.a) this.a.f1642b).a(2, bundle2); + } + } +} diff --git a/app/src/main/java/b/i/c/j/a/c/f.java b/app/src/main/java/b/i/c/j/a/c/f.java new file mode 100644 index 0000000000..a971d8a140 --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/c/f.java @@ -0,0 +1,24 @@ +package b.i.c.j.a.c; + +import android.os.Bundle; +import b.i.a.f.i.a.a; +import com.discord.models.domain.ModelAuditLogEntry; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final class f implements a.AbstractC0111a { + public final /* synthetic */ d a; + + public f(d dVar) { + this.a = dVar; + } + + @Override // b.i.a.f.i.b.z5 + public final void a(String str, String str2, Bundle bundle, long j) { + if (str != null && !str.equals("crash") && (!c.a.contains(str2))) { + Bundle bundle2 = new Bundle(); + bundle2.putString(ModelAuditLogEntry.CHANGE_KEY_NAME, str2); + bundle2.putLong("timestampInMillis", j); + bundle2.putBundle("params", bundle); + ((b.i.c.m.a) this.a.a).a(3, bundle2); + } + } +} diff --git a/app/src/main/java/b/i/c/j/a/d.java b/app/src/main/java/b/i/c/j/a/d.java new file mode 100644 index 0000000000..bcf11d1307 --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/d.java @@ -0,0 +1,16 @@ +package b.i.c.j.a; + +import b.i.c.q.a; +import b.i.c.q.b; +import java.util.Objects; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final /* synthetic */ class d implements b { + public static final b a = new d(); + + @Override // b.i.c.q.b + public final void a(a aVar) { + Objects.requireNonNull(aVar); + Objects.requireNonNull(null); + throw null; + } +} diff --git a/app/src/main/java/b/i/c/j/a/e.java b/app/src/main/java/b/i/c/j/a/e.java new file mode 100644 index 0000000000..7bde2bb62e --- /dev/null +++ b/app/src/main/java/b/i/c/j/a/e.java @@ -0,0 +1,12 @@ +package b.i.c.j.a; + +import java.util.concurrent.Executor; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final /* synthetic */ class e implements Executor { + public static final Executor j = new e(); + + @Override // java.util.concurrent.Executor + public final void execute(Runnable runnable) { + runnable.run(); + } +} diff --git a/app/src/main/java/b/i/c/j/b.java b/app/src/main/java/b/i/c/j/b.java new file mode 100644 index 0000000000..3d4299aaf3 --- /dev/null +++ b/app/src/main/java/b/i/c/j/b.java @@ -0,0 +1,163 @@ +package b.i.c.j; + +import android.os.Bundle; +import b.i.a.f.e.o.c; +import b.i.a.f.h.l.cc; +import b.i.a.f.h.l.g; +import b.i.a.f.h.l.i; +import b.i.a.f.h.l.k; +import b.i.a.f.h.l.l; +import b.i.a.f.h.l.p; +import b.i.a.f.h.l.q; +import b.i.a.f.h.l.r; +import b.i.a.f.h.l.s; +import b.i.a.f.h.l.t; +import b.i.a.f.h.l.u; +import b.i.a.f.h.l.w; +import b.i.a.f.h.l.x; +import b.i.a.f.h.l.z; +import b.i.a.f.i.b.b7; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Random; +/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */ +public final class b implements b7 { + public final /* synthetic */ g a; + + public b(g gVar) { + this.a = gVar; + } + + @Override // b.i.a.f.i.b.b7 + public final String a() { + g gVar = this.a; + Objects.requireNonNull(gVar); + cc ccVar = new cc(); + gVar.e.execute(new t(gVar, ccVar)); + return ccVar.h(500); + } + + @Override // b.i.a.f.i.b.b7 + public final String b() { + g gVar = this.a; + Objects.requireNonNull(gVar); + cc ccVar = new cc(); + gVar.e.execute(new x(gVar, ccVar)); + return ccVar.h(500); + } + + @Override // b.i.a.f.i.b.b7 + public final String c() { + g gVar = this.a; + Objects.requireNonNull(gVar); + cc ccVar = new cc(); + gVar.e.execute(new r(gVar, ccVar)); + return ccVar.h(50); + } + + @Override // b.i.a.f.i.b.b7 + public final String d() { + g gVar = this.a; + Objects.requireNonNull(gVar); + cc ccVar = new cc(); + gVar.e.execute(new s(gVar, ccVar)); + return ccVar.h(500); + } + + @Override // b.i.a.f.i.b.b7 + public final long e() { + g gVar = this.a; + Objects.requireNonNull(gVar); + cc ccVar = new cc(); + gVar.e.execute(new u(gVar, ccVar)); + Long l = (Long) cc.g(ccVar.x0(500), Long.class); + if (l != null) { + return l.longValue(); + } + long nanoTime = System.nanoTime(); + Objects.requireNonNull((c) gVar.d); + long nextLong = new Random(nanoTime ^ System.currentTimeMillis()).nextLong(); + int i = gVar.h + 1; + gVar.h = i; + return nextLong + ((long) i); + } + + @Override // b.i.a.f.i.b.b7 + public final void f(Bundle bundle) { + g gVar = this.a; + Objects.requireNonNull(gVar); + gVar.e.execute(new i(gVar, bundle)); + } + + @Override // b.i.a.f.i.b.b7 + public final void g(String str) { + g gVar = this.a; + Objects.requireNonNull(gVar); + gVar.e.execute(new q(gVar, str)); + } + + @Override // b.i.a.f.i.b.b7 + public final int h(String str) { + g gVar = this.a; + Objects.requireNonNull(gVar); + cc ccVar = new cc(); + gVar.e.execute(new z(gVar, str, ccVar)); + Integer num = (Integer) cc.g(ccVar.x0(10000), Integer.class); + if (num == null) { + return 25; + } + return num.intValue(); + } + + @Override // b.i.a.f.i.b.b7 + public final List i(String str, String str2) { + g gVar = this.a; + Objects.requireNonNull(gVar); + cc ccVar = new cc(); + gVar.e.execute(new k(gVar, str, str2, ccVar)); + List list = (List) cc.g(ccVar.x0(5000), List.class); + return list == null ? Collections.emptyList() : list; + } + + @Override // b.i.a.f.i.b.b7 + public final void j(String str) { + g gVar = this.a; + Objects.requireNonNull(gVar); + gVar.e.execute(new p(gVar, str)); + } + + @Override // b.i.a.f.i.b.b7 + public final Map k(String str, String str2, boolean z2) { + g gVar = this.a; + Objects.requireNonNull(gVar); + cc ccVar = new cc(); + gVar.e.execute(new w(gVar, str, str2, z2, ccVar)); + Bundle x0 = ccVar.x0(5000); + if (x0 == null || x0.size() == 0) { + return Collections.emptyMap(); + } + HashMap hashMap = new HashMap(x0.size()); + for (String str3 : x0.keySet()) { + Object obj = x0.get(str3); + if ((obj instanceof Double) || (obj instanceof Long) || (obj instanceof String)) { + hashMap.put(str3, obj); + } + } + return hashMap; + } + + @Override // b.i.a.f.i.b.b7 + public final void l(String str, String str2, Bundle bundle) { + g gVar = this.a; + Objects.requireNonNull(gVar); + gVar.e.execute(new l(gVar, str, str2, bundle)); + } + + @Override // b.i.a.f.i.b.b7 + public final void m(String str, String str2, Bundle bundle) { + this.a.c(str, str2, bundle, true, true, null); + } +} diff --git a/app/src/main/java/b/i/c/k/a.java b/app/src/main/java/b/i/c/k/a.java new file mode 100644 index 0000000000..7c3c6c6df3 --- /dev/null +++ b/app/src/main/java/b/i/c/k/a.java @@ -0,0 +1,72 @@ +package b.i.c.k; + +import android.os.Bundle; +import androidx.annotation.NonNull; +import b.i.a.f.e.o.f; +import java.util.Arrays; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public interface a { + + /* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ + /* renamed from: b.i.c.k.a$a reason: collision with other inner class name */ + public static class C0130a { + public final Bundle a = new Bundle(); + + /* renamed from: b reason: collision with root package name */ + public final String f1645b; + public String c; + public String d; + public String e; + + public C0130a(@NonNull String str) { + this.f1645b = str; + } + + public C0130a a(@NonNull String str, @NonNull String... strArr) { + Bundle bundle = this.a; + String[] strArr2 = (String[]) Arrays.copyOf(strArr, strArr.length); + if (strArr2.length > 0) { + int i = 0; + for (int i2 = 0; i2 < Math.min(strArr2.length, 100); i2++) { + strArr2[i] = strArr2[i2]; + if (strArr2[i2] == null) { + StringBuilder sb = new StringBuilder(59); + sb.append("String at "); + sb.append(i2); + sb.append(" is null and is ignored by put method."); + f.n2(sb.toString()); + } else { + int i3 = 20000; + if (strArr2[i].length() > 20000) { + StringBuilder sb2 = new StringBuilder(53); + sb2.append("String at "); + sb2.append(i2); + sb2.append(" is too long, truncating string."); + f.n2(sb2.toString()); + String str2 = strArr2[i]; + if (str2.length() > 20000) { + if (Character.isHighSurrogate(str2.charAt(19999)) && Character.isLowSurrogate(str2.charAt(20000))) { + i3 = 19999; + } + str2 = str2.substring(0, i3); + } + strArr2[i] = str2; + } + i++; + } + } + if (i > 0) { + Object[] objArr = (String[]) Arrays.copyOfRange(strArr2, 0, i); + if (objArr.length >= 100) { + f.n2("Input Array of elements is too big, cutting off."); + objArr = Arrays.copyOf(objArr, 100); + } + bundle.putStringArray(str, (String[]) objArr); + } + } else { + f.n2("String array is empty and is ignored by put method."); + } + return this; + } + } +} diff --git a/app/src/main/java/b/i/c/k/b.java b/app/src/main/java/b/i/c/k/b.java new file mode 100644 index 0000000000..569fcd5fae --- /dev/null +++ b/app/src/main/java/b/i/c/k/b.java @@ -0,0 +1,10 @@ +package b.i.c.k; + +import com.google.android.gms.tasks.Task; +import java.lang.ref.WeakReference; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public abstract class b { + public static WeakReference a; + + public abstract Task a(a aVar); +} diff --git a/app/src/main/java/b/i/c/k/c/a.java b/app/src/main/java/b/i/c/k/c/a.java new file mode 100644 index 0000000000..5dd5d3af21 --- /dev/null +++ b/app/src/main/java/b/i/c/k/c/a.java @@ -0,0 +1,11 @@ +package b.i.c.k.c; + +import b.i.c.k.a; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class a extends a.C0130a { + public String f; + + public a() { + super("AssistAction"); + } +} diff --git a/app/src/main/java/b/i/c/k/d/a.java b/app/src/main/java/b/i/c/k/d/a.java new file mode 100644 index 0000000000..e77848ac4c --- /dev/null +++ b/app/src/main/java/b/i/c/k/d/a.java @@ -0,0 +1,60 @@ +package b.i.c.k.d; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.firebase.appindexing.internal.zza; +import com.google.firebase.appindexing.internal.zzc; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class a implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zza createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + String str3 = null; + String str4 = null; + zzc zzc = null; + String str5 = null; + Bundle bundle = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + str = d.Q(parcel, readInt); + break; + case 2: + str2 = d.Q(parcel, readInt); + break; + case 3: + str3 = d.Q(parcel, readInt); + break; + case 4: + str4 = d.Q(parcel, readInt); + break; + case 5: + zzc = (zzc) d.P(parcel, readInt, zzc.CREATOR); + break; + case 6: + str5 = d.Q(parcel, readInt); + break; + case 7: + bundle = d.M(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zza(str, str2, str3, str4, zzc, str5, bundle); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zza[] newArray(int i) { + return new zza[i]; + } +} diff --git a/app/src/main/java/b/i/c/k/d/b.java b/app/src/main/java/b/i/c/k/d/b.java new file mode 100644 index 0000000000..1e9680f576 --- /dev/null +++ b/app/src/main/java/b/i/c/k/d/b.java @@ -0,0 +1,23 @@ +package b.i.c.k.d; + +import android.content.Context; +import b.i.c.k.a; +import com.google.android.gms.tasks.Task; +import com.google.firebase.appindexing.internal.zza; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class b extends b.i.c.k.b { + + /* renamed from: b reason: collision with root package name */ + public c f1646b; + + public b(Context context) { + this.f1646b = new c(context); + } + + @Override // b.i.c.k.b + public final Task a(a aVar) { + zza[] zzaArr = {(zza) aVar}; + zzaArr[0].n.j = 2; + return this.f1646b.c(new d(zzaArr)); + } +} diff --git a/app/src/main/java/b/i/c/k/d/c.java b/app/src/main/java/b/i/c/k/d/c.java new file mode 100644 index 0000000000..f8635e67b3 --- /dev/null +++ b/app/src/main/java/b/i/c/k/d/c.java @@ -0,0 +1,13 @@ +package b.i.c.k.d; + +import android.content.Context; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.b; +import b.i.a.f.h.k.k; +import b.i.c.h; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class c extends b { + public c(Context context) { + super(context, k.c, (a.d) null, new h()); + } +} diff --git a/app/src/main/java/b/i/c/k/d/d.java b/app/src/main/java/b/i/c/k/d/d.java new file mode 100644 index 0000000000..9faff3756f --- /dev/null +++ b/app/src/main/java/b/i/c/k/d/d.java @@ -0,0 +1,13 @@ +package b.i.c.k.d; + +import com.google.firebase.appindexing.internal.zza; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class d extends e { + public final /* synthetic */ zza[] d; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(zza[] zzaArr) { + super(null); + this.d = zzaArr; + } +} diff --git a/app/src/main/java/b/i/c/k/d/e.java b/app/src/main/java/b/i/c/k/d/e.java new file mode 100644 index 0000000000..845416c0c7 --- /dev/null +++ b/app/src/main/java/b/i/c/k/d/e.java @@ -0,0 +1,44 @@ +package b.i.c.k.d; + +import android.os.RemoteException; +import b.c.a.a0.d; +import b.i.a.f.e.h.j.p; +import b.i.a.f.e.o.f; +import b.i.a.f.h.k.g; +import b.i.a.f.h.k.h; +import com.google.android.gms.common.api.Status; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public abstract class e extends p implements b.i.a.f.e.h.j.e { + public TaskCompletionSource c; + + public e(d dVar) { + } + + @Override // b.i.a.f.e.h.j.e + public void a(Status status) { + d.o(!status.w0(), "Failed result must not be success."); + TaskCompletionSource taskCompletionSource = this.c; + taskCompletionSource.a.s(f.I1(status, status.q)); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.e.h.j.e + public void b(Status status) { + Status status2 = status; + if (status2.w0()) { + this.c.a.t(null); + return; + } + TaskCompletionSource taskCompletionSource = this.c; + taskCompletionSource.a.s(f.I1(status2, "User Action indexing error, please try again.")); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.f.e.h.a$b, com.google.android.gms.tasks.TaskCompletionSource] */ + @Override // b.i.a.f.e.h.j.p + public void c(g gVar, TaskCompletionSource taskCompletionSource) throws RemoteException { + this.c = taskCompletionSource; + d dVar = (d) this; + gVar.w().T(new h(dVar), dVar.d); + } +} diff --git a/app/src/main/java/b/i/c/k/d/f.java b/app/src/main/java/b/i/c/k/d/f.java new file mode 100644 index 0000000000..2738e93775 --- /dev/null +++ b/app/src/main/java/b/i/c/k/d/f.java @@ -0,0 +1,54 @@ +package b.i.c.k.d; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.firebase.appindexing.internal.zzc; +/* compiled from: com.google.firebase:firebase-appindexing@@19.1.0 */ +public final class f implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzc createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + byte[] bArr = null; + int i = 0; + boolean z2 = false; + boolean z3 = false; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + i = d.E1(parcel, readInt); + break; + case 2: + z2 = d.C1(parcel, readInt); + break; + case 3: + str = d.Q(parcel, readInt); + break; + case 4: + str2 = d.Q(parcel, readInt); + break; + case 5: + bArr = d.N(parcel, readInt); + break; + case 6: + z3 = d.C1(parcel, readInt); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new zzc(i, z2, str, str2, bArr, z3); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzc[] newArray(int i) { + return new zzc[i]; + } +} diff --git a/app/src/main/java/b/i/c/l/a.java b/app/src/main/java/b/i/c/l/a.java new file mode 100644 index 0000000000..0b5d90894e --- /dev/null +++ b/app/src/main/java/b/i/c/l/a.java @@ -0,0 +1,19 @@ +package b.i.c.l; + +import java.util.Set; +/* compiled from: AbstractComponentContainer */ +public abstract class a implements e { + @Override // b.i.c.l.e + public T a(Class cls) { + b.i.c.t.a b2 = b(cls); + if (b2 == null) { + return null; + } + return b2.get(); + } + + @Override // b.i.c.l.e + public Set d(Class cls) { + return c(cls).get(); + } +} diff --git a/app/src/main/java/b/i/c/l/b.java b/app/src/main/java/b/i/c/l/b.java new file mode 100644 index 0000000000..af25c534ea --- /dev/null +++ b/app/src/main/java/b/i/c/l/b.java @@ -0,0 +1,14 @@ +package b.i.c.l; +/* compiled from: Component */ +public final /* synthetic */ class b implements f { + public final Object a; + + public b(Object obj) { + this.a = obj; + } + + @Override // b.i.c.l.f + public Object a(e eVar) { + return this.a; + } +} diff --git a/app/src/main/java/b/i/c/l/c.java b/app/src/main/java/b/i/c/l/c.java new file mode 100644 index 0000000000..948199405e --- /dev/null +++ b/app/src/main/java/b/i/c/l/c.java @@ -0,0 +1,14 @@ +package b.i.c.l; +/* compiled from: Component */ +public final /* synthetic */ class c implements f { + public final Object a; + + public c(Object obj) { + this.a = obj; + } + + @Override // b.i.c.l.f + public Object a(e eVar) { + return this.a; + } +} diff --git a/app/src/main/java/b/i/c/l/d.java b/app/src/main/java/b/i/c/l/d.java new file mode 100644 index 0000000000..2fd268af56 --- /dev/null +++ b/app/src/main/java/b/i/c/l/d.java @@ -0,0 +1,100 @@ +package b.i.c.l; + +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Objects; +import java.util.Set; +/* compiled from: Component */ +public final class d { + public final Set> a; + + /* renamed from: b reason: collision with root package name */ + public final Set f1647b; + public final int c; + public final int d; + public final f e; + public final Set> f; + + /* compiled from: Component */ + public static class b { + public final Set> a; + + /* renamed from: b reason: collision with root package name */ + public final Set f1648b = new HashSet(); + public int c; + public int d; + public f e; + public Set> f; + + public b(Class cls, Class[] clsArr, a aVar) { + HashSet hashSet = new HashSet(); + this.a = hashSet; + this.c = 0; + this.d = 0; + this.f = new HashSet(); + Objects.requireNonNull(cls, "Null interface"); + hashSet.add(cls); + for (Class cls2 : clsArr) { + Objects.requireNonNull(cls2, "Null interface"); + } + Collections.addAll(this.a, clsArr); + } + + public b a(o oVar) { + if (!this.a.contains(oVar.a)) { + this.f1648b.add(oVar); + return this; + } + throw new IllegalArgumentException("Components are not allowed to depend on interfaces they themselves provide."); + } + + public d b() { + if (this.e != null) { + return new d<>(new HashSet(this.a), new HashSet(this.f1648b), this.c, this.d, this.e, this.f, null); + } + throw new IllegalStateException("Missing required property: factory."); + } + + public b c(f fVar) { + this.e = fVar; + return this; + } + + public final b d(int i) { + if (this.c == 0) { + this.c = i; + return this; + } + throw new IllegalStateException("Instantiation type has already been set."); + } + } + + public d(Set set, Set set2, int i, int i2, f fVar, Set set3, a aVar) { + this.a = Collections.unmodifiableSet(set); + this.f1647b = Collections.unmodifiableSet(set2); + this.c = i; + this.d = i2; + this.e = fVar; + this.f = Collections.unmodifiableSet(set3); + } + + public static b a(Class cls) { + return new b<>(cls, new Class[0], null); + } + + @SafeVarargs + public static d c(T t, Class cls, Class... clsArr) { + b bVar = new b(cls, clsArr, null); + bVar.c(new b(t)); + return bVar.b(); + } + + public boolean b() { + return this.d == 0; + } + + public String toString() { + return "Component<" + Arrays.toString(this.a.toArray()) + ">{" + this.c + ", type=" + this.d + ", deps=" + Arrays.toString(this.f1647b.toArray()) + "}"; + } +} diff --git a/app/src/main/java/b/i/c/l/e.java b/app/src/main/java/b/i/c/l/e.java new file mode 100644 index 0000000000..1fd80f8f0f --- /dev/null +++ b/app/src/main/java/b/i/c/l/e.java @@ -0,0 +1,14 @@ +package b.i.c.l; + +import b.i.c.t.a; +import java.util.Set; +/* compiled from: ComponentContainer */ +public interface e { + T a(Class cls); + + a b(Class cls); + + a> c(Class cls); + + Set d(Class cls); +} diff --git a/app/src/main/java/b/i/c/l/f.java b/app/src/main/java/b/i/c/l/f.java new file mode 100644 index 0000000000..88d309cf93 --- /dev/null +++ b/app/src/main/java/b/i/c/l/f.java @@ -0,0 +1,5 @@ +package b.i.c.l; +/* compiled from: ComponentFactory */ +public interface f { + T a(e eVar); +} diff --git a/app/src/main/java/b/i/c/l/g.java b/app/src/main/java/b/i/c/l/g.java new file mode 100644 index 0000000000..f01bef9584 --- /dev/null +++ b/app/src/main/java/b/i/c/l/g.java @@ -0,0 +1,7 @@ +package b.i.c.l; + +import java.util.List; +/* compiled from: ComponentRegistrar */ +public interface g { + List> getComponents(); +} diff --git a/app/src/main/java/b/i/c/l/h.java b/app/src/main/java/b/i/c/l/h.java new file mode 100644 index 0000000000..756fd04fc3 --- /dev/null +++ b/app/src/main/java/b/i/c/l/h.java @@ -0,0 +1,23 @@ +package b.i.c.l; + +import b.i.c.t.a; +/* compiled from: ComponentRuntime */ +public final /* synthetic */ class h implements a { + public final k a; + + /* renamed from: b reason: collision with root package name */ + public final d f1649b; + + public h(k kVar, d dVar) { + this.a = kVar; + this.f1649b = dVar; + } + + @Override // b.i.c.t.a + public Object get() { + k kVar = this.a; + d dVar = this.f1649b; + int i = k.a; + return dVar.e.a(new s(dVar, kVar)); + } +} diff --git a/app/src/main/java/b/i/c/l/i.java b/app/src/main/java/b/i/c/l/i.java new file mode 100644 index 0000000000..f935f6dccb --- /dev/null +++ b/app/src/main/java/b/i/c/l/i.java @@ -0,0 +1,25 @@ +package b.i.c.l; + +import b.i.c.t.a; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +/* compiled from: ComponentRuntime */ +public final /* synthetic */ class i implements a { + public final Set a; + + public i(Set set) { + this.a = set; + } + + @Override // b.i.c.t.a + public Object get() { + Set set = this.a; + int i = k.a; + HashSet hashSet = new HashSet(); + for (r rVar : set) { + hashSet.add(rVar.get()); + } + return Collections.unmodifiableSet(hashSet); + } +} diff --git a/app/src/main/java/b/i/c/l/j.java b/app/src/main/java/b/i/c/l/j.java new file mode 100644 index 0000000000..720c6ed4d1 --- /dev/null +++ b/app/src/main/java/b/i/c/l/j.java @@ -0,0 +1,13 @@ +package b.i.c.l; + +import b.i.c.t.a; +import java.util.Collections; +/* compiled from: ComponentRuntime */ +public final /* synthetic */ class j implements a { + public static final j a = new j(); + + @Override // b.i.c.t.a + public Object get() { + return Collections.emptySet(); + } +} diff --git a/app/src/main/java/b/i/c/l/k.java b/app/src/main/java/b/i/c/l/k.java new file mode 100644 index 0000000000..8e849a4de3 --- /dev/null +++ b/app/src/main/java/b/i/c/l/k.java @@ -0,0 +1,165 @@ +package b.i.c.l; + +import b.i.c.q.c; +import b.i.c.q.d; +import b.i.c.t.a; +import com.google.firebase.components.DependencyCycleException; +import com.google.firebase.components.MissingDependencyException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.Executor; +/* compiled from: ComponentRuntime */ +public class k extends a { + public static final /* synthetic */ int a = 0; + + /* renamed from: b reason: collision with root package name */ + public final Map, r> f1650b = new HashMap(); + public final Map, r> c = new HashMap(); + public final Map, r>> d = new HashMap(); + public final q e; + + public k(Executor executor, Iterable iterable, d... dVarArr) { + Set set; + q qVar = new q(executor); + this.e = qVar; + ArrayList arrayList = new ArrayList(); + arrayList.add(d.c(qVar, q.class, d.class, c.class)); + for (g gVar : iterable) { + arrayList.addAll(gVar.getComponents()); + } + for (d dVar : dVarArr) { + if (dVar != null) { + arrayList.add(dVar); + } + } + HashMap hashMap = new HashMap(arrayList.size()); + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + d dVar2 = (d) it.next(); + m mVar = new m(dVar2); + Iterator it2 = dVar2.a.iterator(); + while (true) { + if (it2.hasNext()) { + Class cls = (Class) it2.next(); + boolean z2 = !dVar2.b(); + n nVar = new n(cls, z2, null); + if (!hashMap.containsKey(nVar)) { + hashMap.put(nVar, new HashSet()); + } + Set set2 = (Set) hashMap.get(nVar); + if (set2.isEmpty() || z2) { + set2.add(mVar); + } else { + throw new IllegalArgumentException(String.format("Multiple components provide %s.", cls)); + } + } + } + } + for (Set set3 : hashMap.values()) { + for (m mVar2 : set3) { + for (o oVar : mVar2.a.f1647b) { + if ((oVar.c == 0) && (set = (Set) hashMap.get(new n(oVar.a, oVar.a(), null))) != null) { + for (m mVar3 : set) { + mVar2.f1651b.add(mVar3); + mVar3.c.add(mVar2); + } + } + } + } + } + HashSet hashSet = new HashSet(); + for (Set set4 : hashMap.values()) { + hashSet.addAll(set4); + } + HashSet hashSet2 = new HashSet(); + Iterator it3 = hashSet.iterator(); + while (it3.hasNext()) { + m mVar4 = (m) it3.next(); + if (mVar4.a()) { + hashSet2.add(mVar4); + } + } + int i = 0; + while (!hashSet2.isEmpty()) { + m mVar5 = (m) hashSet2.iterator().next(); + hashSet2.remove(mVar5); + i++; + for (m mVar6 : mVar5.f1651b) { + mVar6.c.remove(mVar5); + if (mVar6.a()) { + hashSet2.add(mVar6); + } + } + } + if (i == arrayList.size()) { + Iterator it4 = arrayList.iterator(); + while (it4.hasNext()) { + d dVar3 = (d) it4.next(); + this.f1650b.put(dVar3, new r<>(new h(this, dVar3))); + } + for (Map.Entry, r> entry : this.f1650b.entrySet()) { + d key = entry.getKey(); + if (key.b()) { + r value = entry.getValue(); + for (Class cls2 : key.a) { + this.c.put(cls2, value); + } + } + } + for (d dVar4 : this.f1650b.keySet()) { + Iterator it5 = dVar4.f1647b.iterator(); + while (true) { + if (it5.hasNext()) { + o next = it5.next(); + if ((next.f1653b == 1) && !this.c.containsKey(next.a)) { + throw new MissingDependencyException(String.format("Unsatisfied dependency for component %s: %s", dVar4, next.a)); + } + } + } + } + HashMap hashMap2 = new HashMap(); + for (Map.Entry, r> entry2 : this.f1650b.entrySet()) { + d key2 = entry2.getKey(); + if (!key2.b()) { + r value2 = entry2.getValue(); + for (Class cls3 : key2.a) { + if (!hashMap2.containsKey(cls3)) { + hashMap2.put(cls3, new HashSet()); + } + ((Set) hashMap2.get(cls3)).add(value2); + } + } + } + for (Map.Entry entry3 : hashMap2.entrySet()) { + this.d.put((Class) entry3.getKey(), new r<>(new i((Set) entry3.getValue()))); + } + return; + } + ArrayList arrayList2 = new ArrayList(); + Iterator it6 = hashSet.iterator(); + while (it6.hasNext()) { + m mVar7 = (m) it6.next(); + if (!mVar7.a() && !mVar7.f1651b.isEmpty()) { + arrayList2.add(mVar7.a); + } + } + throw new DependencyCycleException(arrayList2); + } + + @Override // b.i.c.l.e + public a b(Class cls) { + Objects.requireNonNull(cls, "Null interface requested."); + return this.c.get(cls); + } + + @Override // b.i.c.l.e + public a> c(Class cls) { + r> rVar = this.d.get(cls); + return rVar != null ? rVar : j.a; + } +} diff --git a/app/src/main/java/b/i/c/l/m.java b/app/src/main/java/b/i/c/l/m.java new file mode 100644 index 0000000000..1eebcb0cdb --- /dev/null +++ b/app/src/main/java/b/i/c/l/m.java @@ -0,0 +1,20 @@ +package b.i.c.l; + +import java.util.HashSet; +import java.util.Set; +/* compiled from: CycleDetector */ +public class m { + public final d a; + + /* renamed from: b reason: collision with root package name */ + public final Set f1651b = new HashSet(); + public final Set c = new HashSet(); + + public m(d dVar) { + this.a = dVar; + } + + public boolean a() { + return this.c.isEmpty(); + } +} diff --git a/app/src/main/java/b/i/c/l/n.java b/app/src/main/java/b/i/c/l/n.java new file mode 100644 index 0000000000..2661ba7a7c --- /dev/null +++ b/app/src/main/java/b/i/c/l/n.java @@ -0,0 +1,25 @@ +package b.i.c.l; +/* compiled from: CycleDetector */ +public class n { + public final Class a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1652b; + + public n(Class cls, boolean z2, l lVar) { + this.a = cls; + this.f1652b = z2; + } + + public boolean equals(Object obj) { + if (!(obj instanceof n)) { + return false; + } + n nVar = (n) obj; + return nVar.a.equals(this.a) && nVar.f1652b == this.f1652b; + } + + public int hashCode() { + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ Boolean.valueOf(this.f1652b).hashCode(); + } +} diff --git a/app/src/main/java/b/i/c/l/o.java b/app/src/main/java/b/i/c/l/o.java new file mode 100644 index 0000000000..1b22e18c89 --- /dev/null +++ b/app/src/main/java/b/i/c/l/o.java @@ -0,0 +1,49 @@ +package b.i.c.l; + +import b.d.b.a.a; +import java.util.Objects; +/* compiled from: Dependency */ +public final class o { + public final Class a; + + /* renamed from: b reason: collision with root package name */ + public final int f1653b; + public final int c; + + public o(Class cls, int i, int i2) { + Objects.requireNonNull(cls, "Null dependency anInterface."); + this.a = cls; + this.f1653b = i; + this.c = i2; + } + + public boolean a() { + return this.f1653b == 2; + } + + public boolean equals(Object obj) { + if (!(obj instanceof o)) { + return false; + } + o oVar = (o) obj; + return this.a == oVar.a && this.f1653b == oVar.f1653b && this.c == oVar.c; + } + + public int hashCode() { + return ((((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1653b) * 1000003) ^ this.c; + } + + public String toString() { + StringBuilder sb = new StringBuilder("Dependency{anInterface="); + sb.append(this.a); + sb.append(", type="); + int i = this.f1653b; + boolean z2 = true; + sb.append(i == 1 ? "required" : i == 0 ? "optional" : "set"); + sb.append(", direct="); + if (this.c != 0) { + z2 = false; + } + return a.L(sb, z2, "}"); + } +} diff --git a/app/src/main/java/b/i/c/l/p.java b/app/src/main/java/b/i/c/l/p.java new file mode 100644 index 0000000000..33eee0d998 --- /dev/null +++ b/app/src/main/java/b/i/c/l/p.java @@ -0,0 +1,21 @@ +package b.i.c.l; + +import b.i.c.q.a; +import b.i.c.q.b; +import java.util.Map; +/* compiled from: EventBus */ +public final /* synthetic */ class p implements Runnable { + public final Map.Entry j; + public final a k; + + public p(Map.Entry entry, a aVar) { + this.j = entry; + this.k = aVar; + } + + @Override // java.lang.Runnable + public void run() { + Map.Entry entry = this.j; + ((b) entry.getKey()).a(this.k); + } +} diff --git a/app/src/main/java/b/i/c/l/q.java b/app/src/main/java/b/i/c/l/q.java new file mode 100644 index 0000000000..61a05da716 --- /dev/null +++ b/app/src/main/java/b/i/c/l/q.java @@ -0,0 +1,44 @@ +package b.i.c.l; + +import androidx.annotation.GuardedBy; +import b.i.c.q.a; +import b.i.c.q.b; +import b.i.c.q.c; +import b.i.c.q.d; +import java.util.ArrayDeque; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Queue; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.Executor; +/* compiled from: EventBus */ +public class q implements d, c { + @GuardedBy("this") + public final Map, ConcurrentHashMap, Executor>> a = new HashMap(); + @GuardedBy("this") + + /* renamed from: b reason: collision with root package name */ + public Queue> f1654b = new ArrayDeque(); + public final Executor c; + + public q(Executor executor) { + this.c = executor; + } + + @Override // b.i.c.q.d + public void a(Class cls, b bVar) { + b(cls, this.c, bVar); + } + + @Override // b.i.c.q.d + public synchronized void b(Class cls, Executor executor, b bVar) { + Objects.requireNonNull(cls); + Objects.requireNonNull(bVar); + Objects.requireNonNull(executor); + if (!this.a.containsKey(cls)) { + this.a.put(cls, new ConcurrentHashMap<>()); + } + this.a.get(cls).put(bVar, executor); + } +} diff --git a/app/src/main/java/b/i/c/l/r.java b/app/src/main/java/b/i/c/l/r.java new file mode 100644 index 0000000000..512575b1bd --- /dev/null +++ b/app/src/main/java/b/i/c/l/r.java @@ -0,0 +1,32 @@ +package b.i.c.l; + +import b.i.c.t.a; +/* compiled from: Lazy */ +public class r implements a { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public volatile Object f1655b = a; + public volatile a c; + + public r(a aVar) { + this.c = aVar; + } + + @Override // b.i.c.t.a + public T get() { + T t = (T) this.f1655b; + Object obj = a; + if (t == obj) { + synchronized (this) { + t = this.f1655b; + if (t == obj) { + t = this.c.get(); + this.f1655b = t; + this.c = null; + } + } + } + return t; + } +} diff --git a/app/src/main/java/b/i/c/l/s.java b/app/src/main/java/b/i/c/l/s.java new file mode 100644 index 0000000000..8f4ff0dfb7 --- /dev/null +++ b/app/src/main/java/b/i/c/l/s.java @@ -0,0 +1,88 @@ +package b.i.c.l; + +import b.i.c.q.c; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +/* compiled from: RestrictedComponentContainer */ +public final class s extends a { + public final Set> a; + + /* renamed from: b reason: collision with root package name */ + public final Set> f1656b; + public final Set> c; + public final Set> d; + public final Set> e; + public final e f; + + /* compiled from: RestrictedComponentContainer */ + public static class a implements c { + public final c a; + + public a(Set> set, c cVar) { + this.a = cVar; + } + } + + public s(d dVar, e eVar) { + HashSet hashSet = new HashSet(); + HashSet hashSet2 = new HashSet(); + HashSet hashSet3 = new HashSet(); + HashSet hashSet4 = new HashSet(); + for (o oVar : dVar.f1647b) { + if (oVar.c == 0) { + if (oVar.a()) { + hashSet3.add(oVar.a); + } else { + hashSet.add(oVar.a); + } + } else if (oVar.a()) { + hashSet4.add(oVar.a); + } else { + hashSet2.add(oVar.a); + } + } + if (!dVar.f.isEmpty()) { + hashSet.add(c.class); + } + this.a = Collections.unmodifiableSet(hashSet); + this.f1656b = Collections.unmodifiableSet(hashSet2); + this.c = Collections.unmodifiableSet(hashSet3); + this.d = Collections.unmodifiableSet(hashSet4); + this.e = dVar.f; + this.f = eVar; + } + + @Override // b.i.c.l.a, b.i.c.l.e + public T a(Class cls) { + if (this.a.contains(cls)) { + T t = (T) this.f.a(cls); + return !cls.equals(c.class) ? t : (T) new a(this.e, t); + } + throw new IllegalArgumentException(String.format("Attempting to request an undeclared dependency %s.", cls)); + } + + @Override // b.i.c.l.e + public b.i.c.t.a b(Class cls) { + if (this.f1656b.contains(cls)) { + return this.f.b(cls); + } + throw new IllegalArgumentException(String.format("Attempting to request an undeclared dependency Provider<%s>.", cls)); + } + + @Override // b.i.c.l.e + public b.i.c.t.a> c(Class cls) { + if (this.d.contains(cls)) { + return this.f.c(cls); + } + throw new IllegalArgumentException(String.format("Attempting to request an undeclared dependency Provider>.", cls)); + } + + @Override // b.i.c.l.a, b.i.c.l.e + public Set d(Class cls) { + if (this.c.contains(cls)) { + return this.f.d(cls); + } + throw new IllegalArgumentException(String.format("Attempting to request an undeclared dependency Set<%s>.", cls)); + } +} diff --git a/app/src/main/java/b/i/c/m/a.java b/app/src/main/java/b/i/c/m/a.java new file mode 100644 index 0000000000..ea7931b8fc --- /dev/null +++ b/app/src/main/java/b/i/c/m/a.java @@ -0,0 +1,30 @@ +package b.i.c.m; + +import android.os.Bundle; +import androidx.annotation.Nullable; +import b.i.c.j.a.a; +import b.i.c.m.d.i.b; +import com.discord.models.domain.ModelAuditLogEntry; +/* compiled from: CrashlyticsAnalyticsListener */ +public class a implements a.b { + public b a; + + /* renamed from: b reason: collision with root package name */ + public b f1657b; + + public void a(int i, @Nullable Bundle bundle) { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + bVar.b("Received Analytics message: " + i + " " + bundle); + String string = bundle.getString(ModelAuditLogEntry.CHANGE_KEY_NAME); + if (string != null) { + Bundle bundle2 = bundle.getBundle("params"); + if (bundle2 == null) { + bundle2 = new Bundle(); + } + b bVar2 = "clx".equals(bundle2.getString("_o")) ? this.a : this.f1657b; + if (bVar2 != null) { + bVar2.b(string, bundle2); + } + } + } +} diff --git a/app/src/main/java/b/i/c/m/b.java b/app/src/main/java/b/i/c/m/b.java new file mode 100644 index 0000000000..25825adf48 --- /dev/null +++ b/app/src/main/java/b/i/c/m/b.java @@ -0,0 +1,251 @@ +package b.i.c.m; + +import android.content.Context; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.os.Build; +import android.util.Log; +import b.i.c.c; +import b.i.c.j.a.a; +import b.i.c.l.e; +import b.i.c.l.f; +import b.i.c.m.d.a; +import b.i.c.m.d.h; +import b.i.c.m.d.i.d; +import b.i.c.m.d.k.b0; +import b.i.c.m.d.k.e1; +import b.i.c.m.d.k.h1; +import b.i.c.m.d.k.k0; +import b.i.c.m.d.k.l0; +import b.i.c.m.d.k.m0; +import b.i.c.m.d.k.p0; +import b.i.c.m.d.k.q0; +import b.i.c.m.d.k.r; +import b.i.c.m.d.k.r0; +import b.i.c.m.d.k.v0; +import b.i.c.m.d.k.x; +import b.i.c.u.g; +import com.google.firebase.crashlytics.CrashlyticsRegistrar; +import com.google.firebase.crashlytics.FirebaseCrashlytics; +import java.lang.Thread; +import java.util.Locale; +import java.util.Objects; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.TimeUnit; +/* compiled from: CrashlyticsRegistrar */ +public final /* synthetic */ class b implements f { + public final CrashlyticsRegistrar a; + + public b(CrashlyticsRegistrar crashlyticsRegistrar) { + this.a = crashlyticsRegistrar; + } + + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:38:0x026b */ + /* JADX WARNING: Removed duplicated region for block: B:63:0x037c */ + /* JADX WARNING: Removed duplicated region for block: B:67:0x03a0 */ + /* JADX WARNING: Unknown variable types count: 2 */ + @Override // b.i.c.l.f + public Object a(e eVar) { + b.i.c.m.d.i.f fVar; + b.i.c.m.d.j.b bVar; + boolean z2; + String str; + boolean z3; + ExecutorService executorService; + boolean z4; + Exception e; + b.i.c.m.d.i.f fVar2; + d dVar; + Objects.requireNonNull(this.a); + c cVar = (c) eVar.a(c.class); + a aVar = (a) eVar.a(a.class); + b.i.c.j.a.a aVar2 = (b.i.c.j.a.a) eVar.a(b.i.c.j.a.a.class); + cVar.a(); + Context context = cVar.d; + v0 v0Var = new v0(context, context.getPackageName(), (g) eVar.a(g.class)); + q0 q0Var = new q0(cVar); + a cVar2 = aVar == null ? new b.i.c.m.d.c() : aVar; + h hVar = new h(cVar, context, v0Var, q0Var); + if (aVar2 != null) { + b.i.c.m.d.b bVar2 = b.i.c.m.d.b.a; + bVar2.b("Firebase Analytics is available."); + ?? eVar2 = new b.i.c.m.d.i.e(aVar2); + a aVar3 = new a(); + a.AbstractC0129a c = aVar2.c("clx", aVar3); + if (c == null) { + bVar2.b("Could not register AnalyticsConnectorListener with Crashlytics origin."); + c = aVar2.c("crash", aVar3); + if (c != null) { + bVar2.g("A new version of the Google Analytics for Firebase SDK is now available. For improved performance and compatibility with Crashlytics, please update to the latest version."); + } + } + if (c != null) { + bVar2.b("Firebase Analytics listener registered successfully."); + d dVar2 = new d(); + ?? cVar3 = new b.i.c.m.d.i.c(eVar2, 500, TimeUnit.MILLISECONDS); + aVar3.f1657b = dVar2; + aVar3.a = cVar3; + fVar2 = cVar3; + dVar = dVar2; + } else { + bVar2.b("Firebase Analytics listener registration failed."); + dVar = new b.i.c.m.d.j.b(); + fVar2 = eVar2; + } + bVar = dVar; + fVar = fVar2; + } else { + b.i.c.m.d.b.a.b("Firebase Analytics is unavailable."); + bVar = new b.i.c.m.d.j.b(); + fVar = new b.i.c.m.d.i.f(); + } + k0 k0Var = new k0(cVar, v0Var, cVar2, q0Var, bVar, fVar, b.i.a.f.e.o.f.m("Crashlytics Exception Handler")); + try { + hVar.i = hVar.l.c(); + hVar.d = context.getPackageManager(); + String packageName = context.getPackageName(); + hVar.e = packageName; + PackageInfo packageInfo = hVar.d.getPackageInfo(packageName, 0); + hVar.f = packageInfo; + hVar.g = Integer.toString(packageInfo.versionCode); + String str2 = hVar.f.versionName; + if (str2 == null) { + str2 = "0.0"; + } + hVar.h = str2; + hVar.j = hVar.d.getApplicationLabel(context.getApplicationInfo()).toString(); + hVar.k = Integer.toString(context.getApplicationInfo().targetSdkVersion); + z2 = true; + } catch (PackageManager.NameNotFoundException e2) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Failed init", e2); + } + z2 = false; + } + if (!z2) { + b.i.c.m.d.b.a.d("Unable to start Crashlytics."); + return null; + } + ExecutorService m = b.i.a.f.e.o.f.m("com.google.firebase.crashlytics.startup"); + cVar.a(); + String str3 = cVar.f.f1640b; + v0 v0Var2 = hVar.l; + b.i.c.m.d.n.b bVar3 = hVar.a; + String str4 = hVar.g; + String str5 = hVar.h; + String c2 = hVar.c(); + q0 q0Var2 = hVar.m; + String c3 = v0Var2.c(); + e1 e1Var = new e1(); + b.i.c.m.d.s.e eVar3 = new b.i.c.m.d.s.e(e1Var); + b.i.c.m.d.s.a aVar4 = new b.i.c.m.d.s.a(context); + Locale locale = Locale.US; + b.i.c.m.d.s.c cVar4 = new b.i.c.m.d.s.c(context, new b.i.c.m.d.s.h.g(str3, String.format(locale, "%s/%s", v0Var2.e(Build.MANUFACTURER), v0Var2.e(Build.MODEL)), v0Var2.e(Build.VERSION.INCREMENTAL), v0Var2.e(Build.VERSION.RELEASE), v0Var2, b.i.c.m.d.k.h.f(b.i.c.m.d.k.h.l(context), str3, str5, str4), str5, str4, r0.f(c3).g()), e1Var, eVar3, aVar4, new b.i.c.m.d.s.i.c(c2, String.format(locale, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str3), bVar3), q0Var2); + cVar4.d(1, m).i(m, new b.i.c.m.d.g(hVar)); + String l = b.i.c.m.d.k.h.l(k0Var.a); + b.i.c.m.d.b bVar4 = b.i.c.m.d.b.a; + b.d.b.a.a.m0("Mapping file ID is: ", l, bVar4); + if (!b.i.c.m.d.k.h.j(k0Var.a, "com.crashlytics.RequireBuildId", true)) { + bVar4.b("Configured not to require a build ID."); + } else if (b.i.c.m.d.k.h.s(l)) { + str = "FirebaseCrashlytics"; + Log.e(str, "."); + Log.e(str, ". | | "); + Log.e(str, ". | |"); + Log.e(str, ". | |"); + Log.e(str, ". \\ | | /"); + Log.e(str, ". \\ /"); + Log.e(str, ". \\ /"); + Log.e(str, ". \\/"); + Log.e(str, "."); + Log.e(str, "The Crashlytics build ID is missing. This occurs when Crashlytics tooling is absent from your app's build configuration. Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account."); + Log.e(str, "."); + Log.e(str, ". /\\"); + Log.e(str, ". / \\"); + Log.e(str, ". / \\"); + Log.e(str, ". / | | \\"); + Log.e(str, ". | |"); + Log.e(str, ". | |"); + Log.e(str, ". | |"); + Log.e(str, "."); + z3 = false; + if (!z3) { + c cVar5 = k0Var.f1674b; + cVar5.a(); + String str6 = cVar5.f.f1640b; + try { + bVar4.f("Initializing Crashlytics 17.3.0"); + Context context2 = k0Var.a; + b.i.c.m.d.o.h hVar2 = new b.i.c.m.d.o.h(context2); + k0Var.f = new m0("crash_marker", hVar2); + k0Var.e = new m0("initialization_marker", hVar2); + b.i.c.m.d.n.b bVar5 = new b.i.c.m.d.n.b(); + b.i.c.m.d.u.a aVar5 = new b.i.c.m.d.u.a(context2); + v0 v0Var3 = k0Var.i; + String packageName2 = context2.getPackageName(); + String c4 = v0Var3.c(); + PackageInfo packageInfo2 = context2.getPackageManager().getPackageInfo(packageName2, 0); + String num = Integer.toString(packageInfo2.versionCode); + String str7 = packageInfo2.versionName; + if (str7 == null) { + str7 = "0.0"; + } + executorService = m; + try { + b.i.c.m.d.k.b bVar6 = new b.i.c.m.d.k.b(str6, l, c4, packageName2, num, str7, aVar5); + bVar4.b("Installer package name is: " + c4); + k0Var.h = new x(k0Var.a, k0Var.m, bVar5, k0Var.i, k0Var.c, hVar2, k0Var.f, bVar6, null, null, k0Var.n, k0Var.k, cVar4); + boolean exists = k0Var.e.b().exists(); + try { + k0Var.g = Boolean.TRUE.equals((Boolean) h1.a(k0Var.m.b(new l0(k0Var)))); + } catch (Exception unused) { + k0Var.g = false; + } + x xVar = k0Var.h; + Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler(); + xVar.m.b(new r(xVar)); + p0 p0Var = new p0(new b0(xVar), cVar4, defaultUncaughtExceptionHandler); + xVar.B = p0Var; + Thread.setDefaultUncaughtExceptionHandler(p0Var); + if (!exists || !b.i.c.m.d.k.h.b(k0Var.a)) { + b.i.c.m.d.b.a.b("Exception handling initialization successful"); + z4 = true; + b.i.a.f.e.o.f.n(executorService, new c(hVar, executorService, cVar4, z4, k0Var)); + return new FirebaseCrashlytics(k0Var); + } + b.i.c.m.d.b.a.b("Crashlytics did not finish previous background initialization. Initializing synchronously."); + k0Var.b(cVar4); + z4 = false; + b.i.a.f.e.o.f.n(executorService, new c(hVar, executorService, cVar4, z4, k0Var)); + return new FirebaseCrashlytics(k0Var); + } catch (Exception e3) { + e = e3; + if (b.i.c.m.d.b.a.a(6)) { + } + k0Var.h = null; + z4 = false; + b.i.a.f.e.o.f.n(executorService, new c(hVar, executorService, cVar4, z4, k0Var)); + return new FirebaseCrashlytics(k0Var); + } + } catch (Exception e4) { + e = e4; + executorService = m; + if (b.i.c.m.d.b.a.a(6)) { + Log.e(str, "Crashlytics was not started due to an exception during initialization", e); + } + k0Var.h = null; + z4 = false; + b.i.a.f.e.o.f.n(executorService, new c(hVar, executorService, cVar4, z4, k0Var)); + return new FirebaseCrashlytics(k0Var); + } + } else { + throw new IllegalStateException("The Crashlytics build ID is missing. This occurs when Crashlytics tooling is absent from your app's build configuration. Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account."); + } + } + z3 = true; + str = "FirebaseCrashlytics"; + if (!z3) { + } + } +} diff --git a/app/src/main/java/b/i/c/m/c.java b/app/src/main/java/b/i/c/m/c.java new file mode 100644 index 0000000000..492a99f70d --- /dev/null +++ b/app/src/main/java/b/i/c/m/c.java @@ -0,0 +1,50 @@ +package b.i.c.m; + +import b.i.c.m.d.e; +import b.i.c.m.d.f; +import b.i.c.m.d.h; +import b.i.c.m.d.k.h1; +import b.i.c.m.d.k.j0; +import b.i.c.m.d.k.j1; +import b.i.c.m.d.k.k0; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.io.FilenameFilter; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +/* compiled from: FirebaseCrashlytics */ +public class c implements Callable { + public final /* synthetic */ h j; + public final /* synthetic */ ExecutorService k; + public final /* synthetic */ b.i.c.m.d.s.c l; + public final /* synthetic */ boolean m; + public final /* synthetic */ k0 n; + + public c(h hVar, ExecutorService executorService, b.i.c.m.d.s.c cVar, boolean z2, k0 k0Var) { + this.j = hVar; + this.k = executorService; + this.l = cVar; + this.m = z2; + this.n = k0Var; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + h hVar = this.j; + ExecutorService executorService = this.k; + b.i.c.m.d.s.c cVar = this.l; + b.i.c.c cVar2 = hVar.f1659b; + cVar2.a(); + hVar.m.c().r(executorService, new f(hVar, cVar)).r(executorService, new e(hVar, cVar2.f.f1640b, cVar, executorService)); + if (!this.m) { + return null; + } + k0 k0Var = this.n; + b.i.c.m.d.s.c cVar3 = this.l; + ExecutorService executorService2 = k0Var.l; + j0 j0Var = new j0(k0Var, cVar3); + FilenameFilter filenameFilter = h1.a; + executorService2.execute(new j1(j0Var, new TaskCompletionSource())); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/a.java b/app/src/main/java/b/i/c/m/d/a.java new file mode 100644 index 0000000000..812cc94d2f --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/a.java @@ -0,0 +1,22 @@ +package b.i.c.m.d; + +import androidx.annotation.NonNull; +/* compiled from: CrashlyticsNativeComponent */ +public interface a { + boolean a(@NonNull String str); + + @NonNull + d b(@NonNull String str); + + void c(@NonNull String str, int i, @NonNull String str2, int i2, long j, long j2, boolean z2, int i3, @NonNull String str3, @NonNull String str4); + + void d(@NonNull String str, @NonNull String str2, long j); + + boolean e(@NonNull String str); + + void f(@NonNull String str, @NonNull String str2, @NonNull String str3, @NonNull String str4, @NonNull String str5, int i, @NonNull String str6); + + void g(@NonNull String str, @NonNull String str2, @NonNull String str3, boolean z2); + + boolean h(@NonNull String str); +} diff --git a/app/src/main/java/b/i/c/m/d/b.java b/app/src/main/java/b/i/c/m/d/b.java new file mode 100644 index 0000000000..11c879b424 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/b.java @@ -0,0 +1,50 @@ +package b.i.c.m.d; + +import android.util.Log; +/* compiled from: Logger */ +public class b { + public static final b a = new b("FirebaseCrashlytics"); + + public b(String str) { + } + + public final boolean a(int i) { + return 4 <= i || Log.isLoggable("FirebaseCrashlytics", i); + } + + public void b(String str) { + if (a(3)) { + Log.d("FirebaseCrashlytics", str, null); + } + } + + public void c(String str, Throwable th) { + if (a(3)) { + Log.d("FirebaseCrashlytics", str, th); + } + } + + public void d(String str) { + if (a(6)) { + Log.e("FirebaseCrashlytics", str, null); + } + } + + public void e(String str, Throwable th) { + if (a(6)) { + Log.e("FirebaseCrashlytics", str, th); + } + } + + public void f(String str) { + if (a(4)) { + Log.i("FirebaseCrashlytics", str, null); + } + } + + public void g(String str) { + if (a(5)) { + Log.w("FirebaseCrashlytics", str, null); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/c.java b/app/src/main/java/b/i/c/m/d/c.java new file mode 100644 index 0000000000..659cde9244 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/c.java @@ -0,0 +1,81 @@ +package b.i.c.m.d; + +import androidx.annotation.NonNull; +import java.io.File; +/* compiled from: MissingNativeComponent */ +public final class c implements a { + public static final d a = new b(null); + + /* compiled from: MissingNativeComponent */ + public static final class b implements d { + public b(a aVar) { + } + + @Override // b.i.c.m.d.d + public File a() { + return null; + } + + @Override // b.i.c.m.d.d + public File b() { + return null; + } + + @Override // b.i.c.m.d.d + public File c() { + return null; + } + + @Override // b.i.c.m.d.d + public File d() { + return null; + } + + @Override // b.i.c.m.d.d + public File e() { + return null; + } + + @Override // b.i.c.m.d.d + public File f() { + return null; + } + } + + @Override // b.i.c.m.d.a + public boolean a(@NonNull String str) { + return true; + } + + @Override // b.i.c.m.d.a + @NonNull + public d b(@NonNull String str) { + return a; + } + + @Override // b.i.c.m.d.a + public void c(@NonNull String str, int i, @NonNull String str2, int i2, long j, long j2, boolean z2, int i3, @NonNull String str3, @NonNull String str4) { + } + + @Override // b.i.c.m.d.a + public void d(@NonNull String str, @NonNull String str2, long j) { + } + + @Override // b.i.c.m.d.a + public boolean e(@NonNull String str) { + return false; + } + + @Override // b.i.c.m.d.a + public void f(@NonNull String str, @NonNull String str2, @NonNull String str3, @NonNull String str4, @NonNull String str5, int i, @NonNull String str6) { + } + + @Override // b.i.c.m.d.a + public void g(@NonNull String str, @NonNull String str2, @NonNull String str3, boolean z2) { + } + + @Override // b.i.c.m.d.a + public boolean h(@NonNull String str) { + return true; + } +} diff --git a/app/src/main/java/b/i/c/m/d/d.java b/app/src/main/java/b/i/c/m/d/d.java new file mode 100644 index 0000000000..a7de4a3b4e --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/d.java @@ -0,0 +1,24 @@ +package b.i.c.m.d; + +import androidx.annotation.Nullable; +import java.io.File; +/* compiled from: NativeSessionFileProvider */ +public interface d { + @Nullable + File a(); + + @Nullable + File b(); + + @Nullable + File c(); + + @Nullable + File d(); + + @Nullable + File e(); + + @Nullable + File f(); +} diff --git a/app/src/main/java/b/i/c/m/d/e.java b/app/src/main/java/b/i/c/m/d/e.java new file mode 100644 index 0000000000..40bfb89484 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/e.java @@ -0,0 +1,42 @@ +package b.i.c.m.d; + +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.n.f; +import b.i.c.m.d.s.c; +import b.i.c.m.d.s.h.b; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +/* compiled from: Onboarding */ +public class e implements f { + public final /* synthetic */ String a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ c f1658b; + public final /* synthetic */ Executor c; + public final /* synthetic */ h d; + + public e(h hVar, String str, c cVar, Executor executor) { + this.d = hVar; + this.a = str; + this.f1658b = cVar; + this.c = executor; + } + + /* Return type fixed from 'com.google.android.gms.tasks.Task' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.f + @NonNull + public Task a(@Nullable b bVar) throws Exception { + try { + h.a(this.d, bVar, this.a, this.f1658b, this.c, true); + return null; + } catch (Exception e) { + if (b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Error performing auto configuration.", e); + } + throw e; + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/f.java b/app/src/main/java/b/i/c/m/d/f.java new file mode 100644 index 0000000000..9a3f6b9e8f --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/f.java @@ -0,0 +1,23 @@ +package b.i.c.m.d; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.s.c; +import b.i.c.m.d.s.h.b; +import com.google.android.gms.tasks.Task; +/* compiled from: Onboarding */ +public class f implements b.i.a.f.n.f { + public final /* synthetic */ c a; + + public f(h hVar, c cVar) { + this.a = cVar; + } + + /* Return type fixed from 'com.google.android.gms.tasks.Task' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.f + @NonNull + public Task a(@Nullable Void r1) throws Exception { + return this.a.a(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/g.java b/app/src/main/java/b/i/c/m/d/g.java new file mode 100644 index 0000000000..f2735dfd0d --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/g.java @@ -0,0 +1,25 @@ +package b.i.c.m.d; + +import android.util.Log; +import androidx.annotation.NonNull; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +/* compiled from: Onboarding */ +public class g implements a { + public g(h hVar) { + } + + @Override // b.i.a.f.n.a + public Object a(@NonNull Task task) throws Exception { + if (task.p()) { + return null; + } + b bVar = b.a; + Exception k = task.k(); + if (!bVar.a(6)) { + return null; + } + Log.e("FirebaseCrashlytics", "Error fetching settings.", k); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/h.java b/app/src/main/java/b/i/c/m/d/h.java new file mode 100644 index 0000000000..e01c838111 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/h.java @@ -0,0 +1,66 @@ +package b.i.c.m.d; + +import android.content.Context; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.util.Log; +import b.i.c.c; +import b.i.c.m.d.k.q0; +import b.i.c.m.d.k.r0; +import b.i.c.m.d.k.v0; +import b.i.c.m.d.n.b; +import b.i.c.m.d.s.h.a; +import b.i.c.m.d.s.i.e; +import java.util.Objects; +import java.util.concurrent.Executor; +/* compiled from: Onboarding */ +public class h { + public final b a = new b(); + + /* renamed from: b reason: collision with root package name */ + public final c f1659b; + public final Context c; + public PackageManager d; + public String e; + public PackageInfo f; + public String g; + public String h; + public String i; + public String j; + public String k; + public v0 l; + public q0 m; + + public h(c cVar, Context context, v0 v0Var, q0 q0Var) { + this.f1659b = cVar; + this.c = context; + this.l = v0Var; + this.m = q0Var; + } + + public static void a(h hVar, b.i.c.m.d.s.h.b bVar, String str, b.i.c.m.d.s.c cVar, Executor executor, boolean z2) { + Objects.requireNonNull(hVar); + if ("new".equals(bVar.a)) { + if (new b.i.c.m.d.s.i.b(hVar.c(), bVar.f1734b, hVar.a, "17.3.0").d(hVar.b(bVar.e, str), z2)) { + cVar.d(2, executor); + } else if (b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Failed to create app with Crashlytics service.", null); + } + } else if ("configured".equals(bVar.a)) { + cVar.d(2, executor); + } else if (bVar.f) { + b.a.b("Server says an update is required - forcing a full App update."); + new e(hVar.c(), bVar.f1734b, hVar.a, "17.3.0").d(hVar.b(bVar.e, str), z2); + } + } + + public final a b(String str, String str2) { + return new a(str, str2, this.l.e, this.h, this.g, b.i.c.m.d.k.h.f(b.i.c.m.d.k.h.l(this.c), str2, this.h, this.g), this.j, r0.f(this.i).g(), this.k, "0"); + } + + public String c() { + Context context = this.c; + int n = b.i.c.m.d.k.h.n(context, "com.crashlytics.ApiEndpoint", "string"); + return n > 0 ? context.getString(n) : ""; + } +} diff --git a/app/src/main/java/b/i/c/m/d/i/a.java b/app/src/main/java/b/i/c/m/d/i/a.java new file mode 100644 index 0000000000..bdd5555faf --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/i/a.java @@ -0,0 +1,9 @@ +package b.i.c.m.d.i; + +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +/* compiled from: AnalyticsEventLogger */ +public interface a { + void a(@NonNull String str, @Nullable Bundle bundle); +} diff --git a/app/src/main/java/b/i/c/m/d/i/b.java b/app/src/main/java/b/i/c/m/d/i/b.java new file mode 100644 index 0000000000..3ea56949ae --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/i/b.java @@ -0,0 +1,8 @@ +package b.i.c.m.d.i; + +import android.os.Bundle; +import androidx.annotation.NonNull; +/* compiled from: AnalyticsEventReceiver */ +public interface b { + void b(@NonNull String str, @NonNull Bundle bundle); +} diff --git a/app/src/main/java/b/i/c/m/d/i/c.java b/app/src/main/java/b/i/c/m/d/i/c.java new file mode 100644 index 0000000000..1d1e846c30 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/i/c.java @@ -0,0 +1,49 @@ +package b.i.c.m.d.i; + +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.b; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +/* compiled from: BlockingAnalyticsEventLogger */ +public class c implements b, a { + public final e a; + + /* renamed from: b reason: collision with root package name */ + public final Object f1660b = new Object(); + public CountDownLatch c; + + public c(@NonNull e eVar, int i, TimeUnit timeUnit) { + this.a = eVar; + } + + @Override // b.i.c.m.d.i.a + public void a(@NonNull String str, @Nullable Bundle bundle) { + synchronized (this.f1660b) { + b bVar = b.a; + bVar.b("Logging Crashlytics event to Firebase"); + this.c = new CountDownLatch(1); + this.a.a.a("clx", str, bundle); + bVar.b("Awaiting app exception callback from FA..."); + try { + if (this.c.await((long) 500, TimeUnit.MILLISECONDS)) { + bVar.b("App exception callback received from FA listener."); + } else { + bVar.b("Timeout exceeded while awaiting app exception callback from FA listener."); + } + } catch (InterruptedException unused) { + b.a.b("Interrupted while awaiting app exception callback from FA listener."); + } + this.c = null; + } + } + + @Override // b.i.c.m.d.i.b + public void b(@NonNull String str, @NonNull Bundle bundle) { + CountDownLatch countDownLatch = this.c; + if (countDownLatch != null && "_ae".equals(str)) { + countDownLatch.countDown(); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/i/d.java b/app/src/main/java/b/i/c/m/d/i/d.java new file mode 100644 index 0000000000..0440f16f84 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/i/d.java @@ -0,0 +1,55 @@ +package b.i.c.m.d.i; + +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.b; +import b.i.c.m.d.j.a; +import b.i.c.m.d.k.i0; +import b.i.c.m.d.k.k0; +import b.i.c.m.d.k.n; +import b.i.c.m.d.k.x; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.Objects; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: BreadcrumbAnalyticsEventReceiver */ +public class d implements b, a { + @Nullable + public i0 a; + + @NonNull + public static String c(@NonNull String str, @NonNull Bundle bundle) throws JSONException { + JSONObject jSONObject = new JSONObject(); + JSONObject jSONObject2 = new JSONObject(); + for (String str2 : bundle.keySet()) { + jSONObject2.put(str2, bundle.get(str2)); + } + jSONObject.put(ModelAuditLogEntry.CHANGE_KEY_NAME, str); + jSONObject.put("parameters", jSONObject2); + return jSONObject.toString(); + } + + @Override // b.i.c.m.d.j.a + public void a(@Nullable i0 i0Var) { + this.a = i0Var; + b.a.b("Registered Firebase Analytics event receiver for breadcrumbs"); + } + + @Override // b.i.c.m.d.i.b + public void b(@NonNull String str, @NonNull Bundle bundle) { + i0 i0Var = this.a; + if (i0Var != null) { + try { + String str2 = "$A$:" + c(str, bundle); + k0 k0Var = i0Var.a; + Objects.requireNonNull(k0Var); + long currentTimeMillis = System.currentTimeMillis() - k0Var.d; + x xVar = k0Var.h; + xVar.m.b(new n(xVar, currentTimeMillis, str2)); + } catch (JSONException unused) { + b.a.g("Unable to serialize Firebase Analytics event to breadcrumb."); + } + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/i/e.java b/app/src/main/java/b/i/c/m/d/i/e.java new file mode 100644 index 0000000000..4ef33f8de8 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/i/e.java @@ -0,0 +1,20 @@ +package b.i.c.m.d.i; + +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.j.a.a; +/* compiled from: CrashlyticsOriginAnalyticsEventLogger */ +public class e implements a { + @NonNull + public final a a; + + public e(@NonNull a aVar) { + this.a = aVar; + } + + @Override // b.i.c.m.d.i.a + public void a(@NonNull String str, @Nullable Bundle bundle) { + this.a.a("clx", str, bundle); + } +} diff --git a/app/src/main/java/b/i/c/m/d/i/f.java b/app/src/main/java/b/i/c/m/d/i/f.java new file mode 100644 index 0000000000..05876f544b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/i/f.java @@ -0,0 +1,13 @@ +package b.i.c.m.d.i; + +import android.os.Bundle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.b; +/* compiled from: UnavailableAnalyticsEventLogger */ +public class f implements a { + @Override // b.i.c.m.d.i.a + public void a(@NonNull String str, @Nullable Bundle bundle) { + b.a.b("Skipping logging Crashlytics event to Firebase, no Firebase Analytics"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/j/a.java b/app/src/main/java/b/i/c/m/d/j/a.java new file mode 100644 index 0000000000..cc12285459 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/j/a.java @@ -0,0 +1,8 @@ +package b.i.c.m.d.j; + +import androidx.annotation.Nullable; +import b.i.c.m.d.k.i0; +/* compiled from: BreadcrumbSource */ +public interface a { + void a(@Nullable i0 i0Var); +} diff --git a/app/src/main/java/b/i/c/m/d/j/b.java b/app/src/main/java/b/i/c/m/d/j/b.java new file mode 100644 index 0000000000..d71a194a55 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/j/b.java @@ -0,0 +1,11 @@ +package b.i.c.m.d.j; + +import androidx.annotation.Nullable; +import b.i.c.m.d.k.i0; +/* compiled from: DisabledBreadcrumbSource */ +public class b implements a { + @Override // b.i.c.m.d.j.a + public void a(@Nullable i0 i0Var) { + b.i.c.m.d.b.a.b("Could not register handler for breadcrumbs events."); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/a.java b/app/src/main/java/b/i/c/m/d/k/a.java new file mode 100644 index 0000000000..b677259b8f --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/a.java @@ -0,0 +1,45 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.n.b; +import java.util.Collections; +import java.util.Map; +import java.util.Objects; +import java.util.regex.Pattern; +/* compiled from: AbstractSpiCall */ +public abstract class a { + public static final Pattern a = Pattern.compile("http(s?)://[^\\/]+", 2); + + /* renamed from: b reason: collision with root package name */ + public final String f1661b; + public final b c; + public final int d; + public final String e; + + public a(String str, String str2, b bVar, int i) { + if (str2 == null) { + throw new IllegalArgumentException("url must not be null."); + } else if (bVar != null) { + this.e = str; + this.f1661b = !h.s(str) ? a.matcher(str2).replaceFirst(str) : str2; + this.c = bVar; + this.d = i; + } else { + throw new IllegalArgumentException("requestFactory must not be null."); + } + } + + public b.i.c.m.d.n.a b() { + return c(Collections.emptyMap()); + } + + public b.i.c.m.d.n.a c(Map map) { + b bVar = this.c; + int i = this.d; + String str = this.f1661b; + Objects.requireNonNull(bVar); + b.i.c.m.d.n.a aVar = new b.i.c.m.d.n.a(i, str, map); + aVar.e.put("User-Agent", "Crashlytics Android SDK/17.3.0"); + aVar.e.put("X-CRASHLYTICS-DEVELOPER-TOKEN", "470fa2b4ae81cd56ecbcda9735803434cec591fa"); + return aVar; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/a0.java b/app/src/main/java/b/i/c/m/d/k/a0.java new file mode 100644 index 0000000000..1c3b8fce75 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/a0.java @@ -0,0 +1,24 @@ +package b.i.c.m.d.k; + +import android.os.Bundle; +import java.util.concurrent.Callable; +/* compiled from: CrashlyticsController */ +public class a0 implements Callable { + public final /* synthetic */ long j; + public final /* synthetic */ x k; + + public a0(x xVar, long j) { + this.k = xVar; + this.j = j; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + Bundle bundle = new Bundle(); + bundle.putInt("fatal", 1); + bundle.putLong("timestamp", this.j); + this.k.f1688z.a("_ae", bundle); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/a1.java b/app/src/main/java/b/i/c/m/d/k/a1.java new file mode 100644 index 0000000000..c74c43d7d9 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/a1.java @@ -0,0 +1,17 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +import java.io.InputStream; +/* compiled from: NativeSessionFile */ +public interface a1 { + @NonNull + String a(); + + @Nullable + v.c.a b(); + + @Nullable + InputStream h(); +} diff --git a/app/src/main/java/b/i/c/m/d/k/b.java b/app/src/main/java/b/i/c/m/d/k/b.java new file mode 100644 index 0000000000..7a9b66b32e --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/b.java @@ -0,0 +1,25 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.u.a; +/* compiled from: AppData */ +public class b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1662b; + public final String c; + public final String d; + public final String e; + public final String f; + public final a g; + + public b(String str, String str2, String str3, String str4, String str5, String str6, a aVar) { + this.a = str; + this.f1662b = str2; + this.c = str3; + this.d = str4; + this.e = str5; + this.f = str6; + this.g = aVar; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/b0.java b/app/src/main/java/b/i/c/m/d/k/b0.java new file mode 100644 index 0000000000..c695de4e4e --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/b0.java @@ -0,0 +1,27 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import b.i.c.m.d.b; +import b.i.c.m.d.k.p0; +import b.i.c.m.d.s.d; +import java.util.Date; +/* compiled from: CrashlyticsController */ +public class b0 implements p0.a { + public final /* synthetic */ x a; + + public b0(x xVar) { + this.a = xVar; + } + + public void a(@NonNull d dVar, @NonNull Thread thread, @NonNull Throwable th) { + x xVar = this.a; + synchronized (xVar) { + b bVar = b.a; + bVar.b("Crashlytics is handling uncaught exception \"" + th + "\" from thread " + thread.getName()); + try { + h1.a(xVar.m.c(new d0(xVar, new Date(), th, thread, dVar))); + } catch (Exception unused) { + } + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/b1.java b/app/src/main/java/b/i/c/m/d/k/b1.java new file mode 100644 index 0000000000..b7d54eb84b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/b1.java @@ -0,0 +1,39 @@ +package b.i.c.m.d.k; + +import android.util.Log; +import b.i.a.f.n.a; +import b.i.c.m.d.b; +import com.google.android.gms.tasks.Task; +import java.util.Objects; +/* compiled from: SessionReportingCoordinator */ +public final /* synthetic */ class b1 implements a { + public final d1 a; + + public b1(d1 d1Var) { + this.a = d1Var; + } + + @Override // b.i.a.f.n.a + public Object a(Task task) { + boolean z2; + d1 d1Var = this.a; + Objects.requireNonNull(d1Var); + if (task.p()) { + o0 o0Var = (o0) task.l(); + b bVar = b.a; + StringBuilder R = b.d.b.a.a.R("Crashlytics report successfully enqueued to DataTransport: "); + R.append(o0Var.b()); + bVar.b(R.toString()); + d1Var.f1665b.c(o0Var.b()); + z2 = true; + } else { + b bVar2 = b.a; + Exception k = task.k(); + if (bVar2.a(3)) { + Log.d("FirebaseCrashlytics", "Crashlytics report could not be enqueued to DataTransport", k); + } + z2 = false; + } + return Boolean.valueOf(z2); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/c.java b/app/src/main/java/b/i/c/m/d/k/c.java new file mode 100644 index 0000000000..6e96205f50 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/c.java @@ -0,0 +1,51 @@ +package b.i.c.m.d.k; + +import b.d.b.a.a; +import b.i.c.m.d.m.v; +import java.util.Objects; +/* compiled from: AutoValue_CrashlyticsReportWithSessionId */ +public final class c extends o0 { + public final v a; + + /* renamed from: b reason: collision with root package name */ + public final String f1663b; + + public c(v vVar, String str) { + Objects.requireNonNull(vVar, "Null report"); + this.a = vVar; + Objects.requireNonNull(str, "Null sessionId"); + this.f1663b = str; + } + + @Override // b.i.c.m.d.k.o0 + public v a() { + return this.a; + } + + @Override // b.i.c.m.d.k.o0 + public String b() { + return this.f1663b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof o0)) { + return false; + } + o0 o0Var = (o0) obj; + return this.a.equals(o0Var.a()) && this.f1663b.equals(o0Var.b()); + } + + public int hashCode() { + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1663b.hashCode(); + } + + public String toString() { + StringBuilder R = a.R("CrashlyticsReportWithSessionId{report="); + R.append(this.a); + R.append(", sessionId="); + return a.H(R, this.f1663b, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/c0.java b/app/src/main/java/b/i/c/m/d/k/c0.java new file mode 100644 index 0000000000..8e6c30a3cc --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/c0.java @@ -0,0 +1,48 @@ +package b.i.c.m.d.k; + +import android.content.Context; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.n.f; +import b.i.c.m.d.k.x; +import b.i.c.m.d.q.c.d; +import b.i.c.m.d.s.h.b; +import com.google.android.gms.tasks.Task; +import java.io.File; +import java.util.Arrays; +import java.util.concurrent.Executor; +/* compiled from: CrashlyticsController */ +public class c0 implements f { + public final /* synthetic */ Executor a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ d0 f1664b; + + public c0(d0 d0Var, Executor executor) { + this.f1664b = d0Var; + this.a = executor; + } + + /* Return type fixed from 'com.google.android.gms.tasks.Task' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.f + @NonNull + public Task a(@Nullable b bVar) throws Exception { + b bVar2 = bVar; + if (bVar2 == null) { + b.i.c.m.d.b.a.g("Received null app settings, cannot send reports at crash time."); + return b.i.a.f.e.o.f.Y(null); + } + x xVar = this.f1664b.n; + Context context = xVar.i; + b.i.c.m.d.q.b a = ((h0) xVar.r).a(bVar2); + File[] q = xVar.q(); + for (File file : q) { + x.c(bVar2.e, file); + d dVar = new d(file, x.f); + i iVar = xVar.m; + iVar.b(new j(iVar, new x.m(context, dVar, a, true))); + } + return b.i.a.f.e.o.f.s1(Arrays.asList(x.b(this.f1664b.n), this.f1664b.n.A.b(this.a, b.c.a.y.b.m(bVar2)))); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/c1.java b/app/src/main/java/b/i/c/m/d/k/c1.java new file mode 100644 index 0000000000..5448b503d9 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/c1.java @@ -0,0 +1,13 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.m.v; +import java.util.Comparator; +/* compiled from: SessionReportingCoordinator */ +public final /* synthetic */ class c1 implements Comparator { + public static final c1 j = new c1(); + + @Override // java.util.Comparator + public int compare(Object obj, Object obj2) { + return ((v.b) obj).a().compareTo(((v.b) obj2).a()); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/d.java b/app/src/main/java/b/i/c/m/d/k/d.java new file mode 100644 index 0000000000..f433d77d9e --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/d.java @@ -0,0 +1,13 @@ +package b.i.c.m.d.k; + +import android.os.Process; +/* compiled from: BackgroundPriorityRunnable */ +public abstract class d implements Runnable { + public abstract void a(); + + @Override // java.lang.Runnable + public final void run() { + Process.setThreadPriority(10); + a(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/d0.java b/app/src/main/java/b/i/c/m/d/k/d0.java new file mode 100644 index 0000000000..b52f03e455 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/d0.java @@ -0,0 +1,198 @@ +package b.i.c.m.d.k; + +import android.util.Log; +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import b.i.c.m.d.p.b; +import b.i.c.m.d.p.c; +import b.i.c.m.d.s.d; +import b.i.c.m.d.s.h.e; +import com.google.android.gms.tasks.Task; +import java.io.File; +import java.io.FilenameFilter; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Comparator; +import java.util.Date; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.concurrent.Executor; +/* compiled from: CrashlyticsController */ +public class d0 implements Callable> { + public final /* synthetic */ Date j; + public final /* synthetic */ Throwable k; + public final /* synthetic */ Thread l; + public final /* synthetic */ d m; + public final /* synthetic */ x n; + + public d0(x xVar, Date date, Throwable th, Thread thread, d dVar) { + this.n = xVar; + this.j = date; + this.k = th; + this.l = thread; + this.m = dVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX WARNING: Removed duplicated region for block: B:22:0x0095 A[Catch:{ all -> 0x013f }] */ + /* JADX WARNING: Removed duplicated region for block: B:25:0x00ec */ + /* JADX WARNING: Removed duplicated region for block: B:27:0x00f1 */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x0122 */ + /* JADX WARNING: Removed duplicated region for block: B:31:0x0127 */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + b bVar; + Throwable th; + c cVar; + File[] listFiles; + File[] listFiles2; + Exception e; + long time = this.j.getTime() / 1000; + String i = this.n.i(); + c cVar2 = null; + if (i == null) { + b.i.c.m.d.b.a.d("Tried to write a fatal exception while no session was open."); + return f.Y(null); + } + this.n.k.a(); + d1 d1Var = this.n.A; + Throwable th2 = this.k; + Thread thread = this.l; + String replaceAll = i.replaceAll("-", ""); + Objects.requireNonNull(d1Var); + a.m0("Persisting fatal event for session ", replaceAll, b.i.c.m.d.b.a); + d1Var.a(th2, thread, replaceAll, "crash", time, true); + x xVar = this.n; + Thread thread2 = this.l; + Throwable th3 = this.k; + Objects.requireNonNull(xVar); + try { + bVar = new b(xVar.l(), i + "SessionCrash"); + try { + cVar = c.i(bVar); + try { + xVar.y(cVar, thread2, th3, time, "crash", true); + } catch (Exception e2) { + e = e2; + } + } catch (Exception e3) { + e = e3; + cVar = null; + try { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "An error occurred in the fatal exception logger", e); + } + h.h(cVar, "Failed to flush to session begin file."); + h.c(bVar, "Failed to close fatal exception file output stream."); + this.n.g(this.j.getTime()); + e c = ((b.i.c.m.d.s.c) this.m).c(); + int i2 = c.b().a; + Objects.requireNonNull(c.b()); + this.n.f(i2, false); + x.a(this.n); + x xVar2 = this.n; + File m = xVar2.m(); + File k = xVar2.k(); + Comparator comparator = x.d; + FilenameFilter filenameFilter = h1.a; + ArrayList arrayList = new ArrayList(); + listFiles = m.listFiles(); + FilenameFilter filenameFilter2 = h1.a; + listFiles2 = k.listFiles(filenameFilter2); + if (listFiles == null) { + } + if (listFiles2 == null) { + } + arrayList.addAll(Arrays.asList(listFiles)); + arrayList.addAll(Arrays.asList(listFiles2)); + int c2 = 4 - h1.c(arrayList, 4, comparator); + h1.b(xVar2.l(), x.f1684b, c2 - h1.b(xVar2.n(), filenameFilter2, c2, comparator), comparator); + if (!this.n.j.b()) { + } + } catch (Throwable th4) { + th = th4; + cVar2 = cVar; + h.h(cVar2, "Failed to flush to session begin file."); + h.c(bVar, "Failed to close fatal exception file output stream."); + throw th; + } + } catch (Throwable th5) { + th = th5; + h.h(cVar2, "Failed to flush to session begin file."); + h.c(bVar, "Failed to close fatal exception file output stream."); + throw th; + } + } catch (Exception e4) { + e = e4; + cVar = null; + bVar = null; + if (b.i.c.m.d.b.a.a(6)) { + } + h.h(cVar, "Failed to flush to session begin file."); + h.c(bVar, "Failed to close fatal exception file output stream."); + this.n.g(this.j.getTime()); + e c = ((b.i.c.m.d.s.c) this.m).c(); + int i2 = c.b().a; + Objects.requireNonNull(c.b()); + this.n.f(i2, false); + x.a(this.n); + x xVar2 = this.n; + File m = xVar2.m(); + File k = xVar2.k(); + Comparator comparator = x.d; + FilenameFilter filenameFilter = h1.a; + ArrayList arrayList = new ArrayList(); + listFiles = m.listFiles(); + FilenameFilter filenameFilter2 = h1.a; + listFiles2 = k.listFiles(filenameFilter2); + if (listFiles == null) { + } + if (listFiles2 == null) { + } + arrayList.addAll(Arrays.asList(listFiles)); + arrayList.addAll(Arrays.asList(listFiles2)); + int c2 = 4 - h1.c(arrayList, 4, comparator); + h1.b(xVar2.l(), x.f1684b, c2 - h1.b(xVar2.n(), filenameFilter2, c2, comparator), comparator); + if (!this.n.j.b()) { + } + } catch (Throwable th6) { + th = th6; + bVar = null; + h.h(cVar2, "Failed to flush to session begin file."); + h.c(bVar, "Failed to close fatal exception file output stream."); + throw th; + } + h.h(cVar, "Failed to flush to session begin file."); + h.c(bVar, "Failed to close fatal exception file output stream."); + this.n.g(this.j.getTime()); + e c = ((b.i.c.m.d.s.c) this.m).c(); + int i2 = c.b().a; + Objects.requireNonNull(c.b()); + this.n.f(i2, false); + x.a(this.n); + x xVar2 = this.n; + File m = xVar2.m(); + File k = xVar2.k(); + Comparator comparator = x.d; + FilenameFilter filenameFilter = h1.a; + ArrayList arrayList = new ArrayList(); + listFiles = m.listFiles(); + FilenameFilter filenameFilter2 = h1.a; + listFiles2 = k.listFiles(filenameFilter2); + if (listFiles == null) { + listFiles = new File[0]; + } + if (listFiles2 == null) { + listFiles2 = new File[0]; + } + arrayList.addAll(Arrays.asList(listFiles)); + arrayList.addAll(Arrays.asList(listFiles2)); + int c2 = 4 - h1.c(arrayList, 4, comparator); + h1.b(xVar2.l(), x.f1684b, c2 - h1.b(xVar2.n(), filenameFilter2, c2, comparator), comparator); + if (!this.n.j.b()) { + return f.Y(null); + } + Executor executor = this.n.m.a; + return ((b.i.c.m.d.s.c) this.m).a().r(executor, new c0(this, executor)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/d1.java b/app/src/main/java/b/i/c/m/d/k/d1.java new file mode 100644 index 0000000000..05388401da --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/d1.java @@ -0,0 +1,241 @@ +package b.i.c.m.d.k; + +import android.app.ActivityManager; +import android.content.Context; +import android.os.Environment; +import androidx.annotation.NonNull; +import androidx.appcompat.widget.ActivityChooserModel; +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import b.i.c.m.d.l.b; +import b.i.c.m.d.m.j; +import b.i.c.m.d.m.k; +import b.i.c.m.d.m.l; +import b.i.c.m.d.m.m; +import b.i.c.m.d.m.o; +import b.i.c.m.d.m.r; +import b.i.c.m.d.m.s; +import b.i.c.m.d.m.v; +import b.i.c.m.d.m.w; +import b.i.c.m.d.m.x.h; +import b.i.c.m.d.o.g; +import b.i.c.m.d.r.c; +import b.i.c.m.d.t.e; +import b.i.c.p.h.d; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.Executor; +/* compiled from: SessionReportingCoordinator */ +public class d1 { + public final n0 a; + + /* renamed from: b reason: collision with root package name */ + public final g f1665b; + public final c c; + public final b d; + public final f1 e; + + public d1(n0 n0Var, g gVar, c cVar, b bVar, f1 f1Var) { + this.a = n0Var; + this.f1665b = gVar; + this.c = cVar; + this.d = bVar; + this.e = f1Var; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x010f: APUT + (r6v4 b.i.c.m.d.m.v$d$d$a$b$a[]) + (0 ??[int, short, byte, char]) + (wrap: b.i.c.m.d.m.m : 0x010b: CONSTRUCTOR (r7v3 b.i.c.m.d.m.m) = + (wrap: long : 0x00fb: INVOKE (r23v1 long) = (r12v3 java.lang.Long) type: VIRTUAL call: java.lang.Long.longValue():long) + (wrap: long : 0x00ff: INVOKE (r25v1 long) = (r10v3 java.lang.Long) type: VIRTUAL call: java.lang.Long.longValue():long) + (r11v3 java.lang.String) + (r13v5 java.lang.String) + (null b.i.c.m.d.m.m$a) + call: b.i.c.m.d.m.m.(long, long, java.lang.String, java.lang.String, b.i.c.m.d.m.m$a):void type: CONSTRUCTOR) + */ + public final void a(@NonNull Throwable th, @NonNull Thread thread, @NonNull String str, @NonNull String str2, long j, boolean z2) { + s sVar; + boolean equals = str2.equals("crash"); + n0 n0Var = this.a; + int i = n0Var.c.getResources().getConfiguration().orientation; + e eVar = new e(th, n0Var.f); + Long valueOf = Long.valueOf(j); + ActivityManager.RunningAppProcessInfo i2 = h.i(n0Var.e.d, n0Var.c); + Boolean valueOf2 = i2 != null ? Boolean.valueOf(i2.importance != 100) : null; + Integer valueOf3 = Integer.valueOf(i); + ArrayList arrayList = new ArrayList(); + arrayList.add(n0Var.c(thread, eVar.c, 4)); + if (z2) { + for (Map.Entry entry : Thread.getAllStackTraces().entrySet()) { + Thread key = entry.getKey(); + if (!key.equals(thread)) { + arrayList.add(n0Var.c(key, n0Var.f.a(entry.getValue()), 0)); + } + } + } + w wVar = new w(arrayList); + v.d.AbstractC0136d.a.b.AbstractC0139b a = n0Var.a(eVar, 4, 8, 0); + Long l = 0L; + String str3 = ""; + String str4 = l == null ? " address" : str3; + if (str4.isEmpty()) { + o oVar = new o("0", "0", l.longValue(), null); + v.d.AbstractC0136d.a.b.AbstractC0138a[] aVarArr = new v.d.AbstractC0136d.a.b.AbstractC0138a[1]; + Long l2 = 0L; + Long l3 = 0L; + String str5 = n0Var.e.d; + Objects.requireNonNull(str5, "Null name"); + String str6 = n0Var.e.f1662b; + String str7 = l2 == null ? " baseAddress" : str3; + if (l3 == null) { + str7 = a.v(str7, " size"); + } + if (str7.isEmpty()) { + aVarArr[0] = new m(l2.longValue(), l3.longValue(), str5, str6, null); + l lVar = new l(wVar, a, oVar, new w(Arrays.asList(aVarArr)), null); + String str8 = valueOf3 == null ? " uiOrientation" : str3; + if (str8.isEmpty()) { + k kVar = new k(lVar, null, valueOf2, valueOf3.intValue(), null); + e a2 = e.a(n0Var.c); + Float f = a2.a; + Double valueOf4 = f != null ? Double.valueOf(f.doubleValue()) : null; + int b2 = a2.b(); + boolean m = h.m(n0Var.c); + long p = h.p(); + Context context = n0Var.c; + ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); + ((ActivityManager) context.getSystemService(ActivityChooserModel.ATTRIBUTE_ACTIVITY)).getMemoryInfo(memoryInfo); + long j2 = p - memoryInfo.availMem; + long a3 = h.a(Environment.getDataDirectory().getPath()); + r.b bVar = new r.b(); + bVar.a = valueOf4; + bVar.f1719b = Integer.valueOf(b2); + bVar.c = Boolean.valueOf(m); + bVar.d = Integer.valueOf(i); + bVar.e = Long.valueOf(j2); + bVar.f = Long.valueOf(a3); + v.d.AbstractC0136d.b a4 = bVar.a(); + String str9 = " timestamp"; + String str10 = valueOf == null ? str9 : str3; + if (str10.isEmpty()) { + Long valueOf5 = Long.valueOf(valueOf.longValue()); + String b3 = this.d.d.b(); + if (b3 != null) { + sVar = new s(b3, null); + } else { + b.i.c.m.d.b.a.b("No log data to include with this event."); + sVar = null; + } + Map a5 = this.e.a(); + ArrayList arrayList2 = new ArrayList(); + arrayList2.ensureCapacity(a5.size()); + for (Map.Entry entry2 : a5.entrySet()) { + String key2 = entry2.getKey(); + Objects.requireNonNull(key2, "Null key"); + String value = entry2.getValue(); + Objects.requireNonNull(value, "Null value"); + arrayList2.add(new b.i.c.m.d.m.c(key2, value, null)); + } + Collections.sort(arrayList2, c1.j); + k kVar2 = kVar; + if (!arrayList2.isEmpty()) { + k.b bVar2 = (k.b) kVar.e(); + bVar2.f1710b = new w<>(arrayList2); + kVar2 = bVar2.a(); + } + g gVar = this.f1665b; + if (valueOf5 != null) { + str9 = str3; + } + if (str9.isEmpty()) { + j jVar = new j(valueOf5.longValue(), str2, kVar2, a4, sVar, null); + int i3 = ((b.i.c.m.d.s.c) gVar.k).c().b().a; + File h = gVar.h(str); + Objects.requireNonNull(g.c); + String a6 = ((d) h.a).a(jVar); + String format = String.format(Locale.US, "%010d", Integer.valueOf(gVar.f.getAndIncrement())); + if (equals) { + str3 = "_"; + } + try { + g.l(new File(h, a.w("event", format, str3)), a6); + } catch (IOException e) { + b.i.c.m.d.b.a.c("Could not persist event for session " + str, e); + } + List g = g.g(h, b.i.c.m.d.o.c.a); + Collections.sort(g, b.i.c.m.d.o.d.j); + int size = g.size(); + for (File file : g) { + if (size > i3) { + g.k(file); + size--; + } else { + return; + } + } + return; + } + throw new IllegalStateException(a.v("Missing required properties:", str9)); + } + throw new IllegalStateException(a.v("Missing required properties:", str10)); + } + throw new IllegalStateException(a.v("Missing required properties:", str8)); + } + throw new IllegalStateException(a.v("Missing required properties:", str7)); + } + throw new IllegalStateException(a.v("Missing required properties:", str4)); + } + + /* JADX WARN: Incorrect types in method signature: (Ljava/util/concurrent/Executor;Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task; */ + public Task b(@NonNull Executor executor, @NonNull int i) { + if (i == 1) { + b.i.c.m.d.b.a.b("Send via DataTransport disabled. Removing DataTransport reports."); + this.f1665b.b(); + return f.Y(null); + } + g gVar = this.f1665b; + List e = gVar.e(); + ArrayList arrayList = new ArrayList(); + arrayList.ensureCapacity(((ArrayList) e).size()); + Iterator it = ((ArrayList) gVar.e()).iterator(); + while (it.hasNext()) { + File file = (File) it.next(); + try { + arrayList.add(new c(g.c.f(g.j(file)), file.getName())); + } catch (IOException e2) { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + bVar.c("Could not load report file " + file + "; deleting", e2); + file.delete(); + } + } + ArrayList arrayList2 = new ArrayList(); + Iterator it2 = arrayList.iterator(); + while (it2.hasNext()) { + o0 o0Var = (o0) it2.next(); + v a = o0Var.a(); + if ((a.h() != null ? 2 : a.e() != null ? (char) 3 : 1) != 3 || i == 3) { + c cVar = this.c; + Objects.requireNonNull(cVar); + v a2 = o0Var.a(); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + cVar.e.b(new b.i.a.b.a(null, a2, b.i.a.b.d.HIGHEST), new b.i.c.m.d.r.a(taskCompletionSource, o0Var)); + arrayList2.add(taskCompletionSource.a.i(executor, new b1(this))); + } else { + b.i.c.m.d.b.a.b("Send native reports via DataTransport disabled. Removing DataTransport reports."); + this.f1665b.c(o0Var.b()); + } + } + return f.s1(arrayList2); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/e.java b/app/src/main/java/b/i/c/m/d/k/e.java new file mode 100644 index 0000000000..285e8a3a8a --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/e.java @@ -0,0 +1,43 @@ +package b.i.c.m.d.k; + +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +/* compiled from: BatteryState */ +public class e { + public final Float a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1666b; + + public e(Float f, boolean z2) { + this.f1666b = z2; + this.a = f; + } + + public static e a(Context context) { + Float f = null; + Intent registerReceiver = context.registerReceiver(null, new IntentFilter("android.intent.action.BATTERY_CHANGED")); + boolean z2 = false; + if (registerReceiver != null) { + int intExtra = registerReceiver.getIntExtra("status", -1); + if (intExtra != -1 && (intExtra == 2 || intExtra == 5)) { + z2 = true; + } + int intExtra2 = registerReceiver.getIntExtra("level", -1); + int intExtra3 = registerReceiver.getIntExtra("scale", -1); + if (!(intExtra2 == -1 || intExtra3 == -1)) { + f = Float.valueOf(((float) intExtra2) / ((float) intExtra3)); + } + } + return new e(f, z2); + } + + public int b() { + Float f; + if (!this.f1666b || (f = this.a) == null) { + return 1; + } + return ((double) f.floatValue()) < 0.99d ? 2 : 3; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/e0.java b/app/src/main/java/b/i/c/m/d/k/e0.java new file mode 100644 index 0000000000..40dde626f2 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/e0.java @@ -0,0 +1,19 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.n.f; +import com.google.android.gms.tasks.Task; +/* compiled from: CrashlyticsController */ +public class e0 implements f { + public e0(x xVar) { + } + + /* Return type fixed from 'com.google.android.gms.tasks.Task' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.f + @NonNull + public Task a(@Nullable Void r1) throws Exception { + return b.i.a.f.e.o.f.Y(Boolean.TRUE); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/e1.java b/app/src/main/java/b/i/c/m/d/k/e1.java new file mode 100644 index 0000000000..4d5eda6116 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/e1.java @@ -0,0 +1,4 @@ +package b.i.c.m.d.k; +/* compiled from: SystemCurrentTimeProvider */ +public class e1 { +} diff --git a/app/src/main/java/b/i/c/m/d/k/f.java b/app/src/main/java/b/i/c/m/d/k/f.java new file mode 100644 index 0000000000..7f619b604f --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/f.java @@ -0,0 +1,72 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.e; +import b.i.c.m.d.m.v; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.zip.GZIPOutputStream; +/* compiled from: BytesBackedNativeSessionFile */ +public class f implements a1 { + @Nullable + public final byte[] a; + + public f(@NonNull String str, @NonNull String str2, @Nullable byte[] bArr) { + this.a = bArr; + } + + @Override // b.i.c.m.d.k.a1 + @NonNull + public String a() { + return "logs"; + } + + /* JADX WARNING: Removed duplicated region for block: B:28:0x003a */ + /* JADX WARNING: Removed duplicated region for block: B:30:? A[RETURN, SYNTHETIC] */ + @Override // b.i.c.m.d.k.a1 + @Nullable + public v.c.a b() { + byte[] bArr; + byte[] bArr2 = this.a; + if (!(bArr2 == null || bArr2.length == 0)) { + try { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + try { + GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(byteArrayOutputStream); + try { + gZIPOutputStream.write(this.a); + gZIPOutputStream.finish(); + bArr = byteArrayOutputStream.toByteArray(); + gZIPOutputStream.close(); + byteArrayOutputStream.close(); + if (bArr != null) { + return null; + } + return new e("logs_file", bArr, null); + } catch (Throwable unused) { + } + } catch (Throwable unused2) { + } + } catch (IOException unused3) { + } + } + bArr = null; + if (bArr != null) { + } + throw th; + throw th; + } + + @Override // b.i.c.m.d.k.a1 + @Nullable + public InputStream h() { + byte[] bArr = this.a; + if (bArr == null || bArr.length == 0) { + return null; + } + return new ByteArrayInputStream(this.a); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/f0.java b/app/src/main/java/b/i/c/m/d/k/f0.java new file mode 100644 index 0000000000..bde9ea22d7 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/f0.java @@ -0,0 +1,61 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.n.f; +import b.i.c.m.d.q.b; +import b.i.c.m.d.q.c.c; +import b.i.c.m.d.s.h.b; +import com.google.android.gms.tasks.Task; +import java.util.List; +import java.util.concurrent.Executor; +/* compiled from: CrashlyticsController */ +public class f0 implements f { + public final /* synthetic */ List a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ boolean f1667b; + public final /* synthetic */ Executor c; + public final /* synthetic */ g0 d; + + public f0(g0 g0Var, List list, boolean z2, Executor executor) { + this.d = g0Var; + this.a = list; + this.f1667b = z2; + this.c = executor; + } + + /* Return type fixed from 'com.google.android.gms.tasks.Task' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.f + @NonNull + public Task a(@Nullable b bVar) throws Exception { + b bVar2 = bVar; + if (bVar2 == null) { + b.i.c.m.d.b.a.g("Received null app settings, cannot send reports during app startup."); + return b.i.a.f.e.o.f.Y(null); + } + for (c cVar : this.a) { + if (cVar.d() == 1) { + x.c(bVar2.e, cVar.c()); + } + } + x.b(x.this); + b.i.c.m.d.q.b a = ((h0) x.this.r).a(bVar2); + List list = this.a; + boolean z2 = this.f1667b; + float f = this.d.k.f1689b; + synchronized (a) { + if (a.h != null) { + b.i.c.m.d.b.a.b("Report upload has already been started."); + } else { + Thread thread = new Thread(new b.d(list, z2, f), "Crashlytics Report Uploader"); + a.h = thread; + thread.start(); + } + } + x.this.A.b(this.c, b.c.a.y.b.m(bVar2)); + x.this.E.b(null); + return b.i.a.f.e.o.f.Y(null); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/f1.java b/app/src/main/java/b/i/c/m/d/k/f1.java new file mode 100644 index 0000000000..eaee9c04c0 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/f1.java @@ -0,0 +1,40 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import b.i.c.m.d.b; +import java.util.Collections; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: UserMetadata */ +public class f1 { + public String a = null; + + /* renamed from: b reason: collision with root package name */ + public final ConcurrentHashMap f1668b = new ConcurrentHashMap<>(); + + public static String b(String str) { + if (str == null) { + return str; + } + String trim = str.trim(); + return trim.length() > 1024 ? trim.substring(0, 1024) : trim; + } + + @NonNull + public Map a() { + return Collections.unmodifiableMap(this.f1668b); + } + + public void c(String str, String str2) { + if (str != null) { + String b2 = b(str); + if (this.f1668b.size() < 64 || this.f1668b.containsKey(b2)) { + this.f1668b.put(b2, str2 == null ? "" : b(str2)); + } else { + b.a.b("Exceeded maximum number of custom attributes (64)"); + } + } else { + throw new IllegalArgumentException("Custom attribute key must not be null."); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/g.java b/app/src/main/java/b/i/c/m/d/k/g.java new file mode 100644 index 0000000000..6f18d33cc7 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/g.java @@ -0,0 +1,44 @@ +package b.i.c.m.d.k; + +import android.os.Process; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.util.Date; +import java.util.Locale; +import java.util.concurrent.atomic.AtomicLong; +/* compiled from: CLSUUID */ +public class g { + public static final AtomicLong a = new AtomicLong(0); + + /* renamed from: b reason: collision with root package name */ + public static String f1669b; + + public g(v0 v0Var) { + long time = new Date().getTime(); + ByteBuffer allocate = ByteBuffer.allocate(4); + allocate.putInt((int) (time / 1000)); + allocate.order(ByteOrder.BIG_ENDIAN); + allocate.position(0); + byte[] array = allocate.array(); + byte[] a2 = a(time % 1000); + byte[] a3 = a(a.incrementAndGet()); + byte[] a4 = a((long) Integer.valueOf(Process.myPid()).shortValue()); + byte[] bArr = {array[0], array[1], array[2], array[3], a2[0], a2[1], a3[0], a3[1], a4[0], a4[1]}; + String v = h.v(v0Var.b()); + String q = h.q(bArr); + Locale locale = Locale.US; + f1669b = String.format(locale, "%s-%s-%s-%s", q.substring(0, 12), q.substring(12, 16), q.subSequence(16, 20), v.substring(0, 12)).toUpperCase(locale); + } + + public static byte[] a(long j) { + ByteBuffer allocate = ByteBuffer.allocate(2); + allocate.putShort((short) ((int) j)); + allocate.order(ByteOrder.BIG_ENDIAN); + allocate.position(0); + return allocate.array(); + } + + public String toString() { + return f1669b; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/g0.java b/app/src/main/java/b/i/c/m/d/k/g0.java new file mode 100644 index 0000000000..a3a4ca9c19 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/g0.java @@ -0,0 +1,78 @@ +package b.i.c.m.d.k; + +import b.i.a.f.e.o.f; +import b.i.c.m.d.b; +import b.i.c.m.d.k.x; +import b.i.c.m.d.q.a; +import b.i.c.m.d.q.c.c; +import b.i.c.m.d.q.c.d; +import com.google.android.gms.tasks.Task; +import java.io.File; +import java.util.Collections; +import java.util.LinkedList; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.concurrent.Executor; +/* compiled from: CrashlyticsController */ +public class g0 implements Callable> { + public final /* synthetic */ Boolean j; + public final /* synthetic */ x.e k; + + public g0(x.e eVar, Boolean bool) { + this.k = eVar; + this.j = bool; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + a aVar = x.this.u; + Objects.requireNonNull(aVar); + b.a.b("Checking for crash reports..."); + File[] q = x.this.q(); + File[] listFiles = x.this.m().listFiles(); + if (listFiles == null) { + listFiles = new File[0]; + } + LinkedList linkedList = new LinkedList(); + if (q != null) { + for (File file : q) { + b bVar = b.a; + StringBuilder R = b.d.b.a.a.R("Found crash report "); + R.append(file.getPath()); + bVar.b(R.toString()); + linkedList.add(new d(file, Collections.emptyMap())); + } + } + for (File file2 : listFiles) { + linkedList.add(new b.i.c.m.d.q.c.b(file2)); + } + if (linkedList.isEmpty()) { + b.a.b("No reports found."); + } + if (!this.j.booleanValue()) { + b.a.b("Reports are being deleted."); + for (File file3 : x.r(x.this.l(), m.a)) { + file3.delete(); + } + Objects.requireNonNull(x.this.u); + for (c cVar : linkedList) { + cVar.remove(); + } + x.this.A.f1665b.b(); + x.this.E.b(null); + return f.Y(null); + } + b.a.b("Reports are being sent."); + boolean booleanValue = this.j.booleanValue(); + q0 q0Var = x.this.j; + Objects.requireNonNull(q0Var); + if (booleanValue) { + q0Var.h.b(null); + x.e eVar = this.k; + Executor executor = x.this.m.a; + return eVar.a.r(executor, new f0(this, linkedList, booleanValue, executor)); + } + throw new IllegalStateException("An invalid data collection token was used."); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/g1.java b/app/src/main/java/b/i/c/m/d/k/g1.java new file mode 100644 index 0000000000..ed77ea2758 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/g1.java @@ -0,0 +1,22 @@ +package b.i.c.m.d.k; + +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +import java.io.FilenameFilter; +import java.util.concurrent.CountDownLatch; +/* compiled from: Utils */ +public final /* synthetic */ class g1 implements a { + public final CountDownLatch a; + + public g1(CountDownLatch countDownLatch) { + this.a = countDownLatch; + } + + @Override // b.i.a.f.n.a + public Object a(Task task) { + CountDownLatch countDownLatch = this.a; + FilenameFilter filenameFilter = h1.a; + countDownLatch.countDown(); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/h.java b/app/src/main/java/b/i/c/m/d/k/h.java new file mode 100644 index 0000000000..eef066eeb6 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/h.java @@ -0,0 +1,377 @@ +package b.i.c.m.d.k; + +import android.annotation.SuppressLint; +import android.app.ActivityManager; +import android.content.Context; +import android.content.SharedPreferences; +import android.content.res.Resources; +import android.hardware.SensorManager; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.os.Build; +import android.os.Debug; +import android.os.StatFs; +import android.provider.Settings; +import android.text.TextUtils; +import android.util.Log; +import androidx.appcompat.widget.ActivityChooserModel; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import b.i.c.m.d.p.c; +import com.adjust.sdk.Constants; +import java.io.BufferedReader; +import java.io.Closeable; +import java.io.File; +import java.io.FileReader; +import java.io.Flushable; +import java.io.IOException; +import java.io.InputStream; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Scanner; +import java.util.regex.Pattern; +/* compiled from: CommonUtils */ +public class h { + public static final char[] a = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; + + /* renamed from: b reason: collision with root package name */ + public static long f1670b = -1; + public static final Comparator c = new a(); + + /* compiled from: CommonUtils */ + public class a implements Comparator { + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(File file, File file2) { + return (int) (file.lastModified() - file2.lastModified()); + } + } + + /* compiled from: CommonUtils */ + public enum b { + X86_32, + X86_64, + ARM_UNKNOWN, + PPC, + PPC64, + ARMV6, + ARMV7, + UNKNOWN, + ARMV7S, + ARM64; + + public static final Map t; + + static { + b bVar = X86_32; + b bVar2 = ARMV6; + b bVar3 = ARMV7; + b bVar4 = ARM64; + HashMap hashMap = new HashMap(4); + t = hashMap; + hashMap.put("armeabi-v7a", bVar3); + hashMap.put("armeabi", bVar2); + hashMap.put("arm64-v8a", bVar4); + hashMap.put("x86", bVar); + } + } + + public static long a(String str) { + StatFs statFs = new StatFs(str); + long blockSize = (long) statFs.getBlockSize(); + return (((long) statFs.getBlockCount()) * blockSize) - (blockSize * ((long) statFs.getAvailableBlocks())); + } + + @SuppressLint({"MissingPermission"}) + public static boolean b(Context context) { + if (!(context.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE") == 0)) { + return true; + } + NetworkInfo activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo(); + return activeNetworkInfo != null && activeNetworkInfo.isConnectedOrConnecting(); + } + + public static void c(Closeable closeable, String str) { + if (closeable != null) { + try { + closeable.close(); + } catch (IOException e) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", str, e); + } + } + } + } + + public static void d(Closeable closeable) { + if (closeable != null) { + try { + closeable.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception unused) { + } + } + } + + public static long e(String str, String str2, int i) { + return Long.parseLong(str.split(str2)[0].trim()) * ((long) i); + } + + public static String f(String... strArr) { + if (strArr.length != 0) { + ArrayList arrayList = new ArrayList(); + for (String str : strArr) { + if (str != null) { + arrayList.add(str.replace("-", "").toLowerCase(Locale.US)); + } + } + Collections.sort(arrayList); + StringBuilder sb = new StringBuilder(); + Iterator it = arrayList.iterator(); + while (it.hasNext()) { + sb.append((String) it.next()); + } + String sb2 = sb.toString(); + if (sb2.length() > 0) { + return v(sb2); + } + } + return null; + } + + public static String g(File file, String str) { + Throwable th; + BufferedReader bufferedReader; + Exception e; + String str2 = null; + str2 = null; + BufferedReader bufferedReader2 = null; + str2 = null; + if (file.exists()) { + try { + bufferedReader = new BufferedReader(new FileReader(file), 1024); + while (true) { + try { + String readLine = bufferedReader.readLine(); + if (readLine == null) { + break; + } + String[] split = Pattern.compile("\\s*:\\s*").split(readLine, 2); + if (split.length > 1 && split[0].equals(str)) { + str2 = split[1]; + break; + } + } catch (Exception e2) { + e = e2; + try { + b.i.c.m.d.b.a.e("Error parsing " + file, e); + c(bufferedReader, "Failed to close system file reader."); + return str2; + } catch (Throwable th2) { + th = th2; + bufferedReader2 = bufferedReader; + c(bufferedReader2, "Failed to close system file reader."); + throw th; + } + } + } + } catch (Exception e3) { + e = e3; + bufferedReader = null; + b.i.c.m.d.b.a.e("Error parsing " + file, e); + c(bufferedReader, "Failed to close system file reader."); + return str2; + } catch (Throwable th3) { + th = th3; + c(bufferedReader2, "Failed to close system file reader."); + throw th; + } + c(bufferedReader, "Failed to close system file reader."); + } + return str2; + } + + public static void h(Flushable flushable, String str) { + if (flushable != null) { + try { + ((c) flushable).flush(); + } catch (IOException e) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", str, e); + } + } + } + } + + public static ActivityManager.RunningAppProcessInfo i(String str, Context context) { + List runningAppProcesses = ((ActivityManager) context.getSystemService(ActivityChooserModel.ATTRIBUTE_ACTIVITY)).getRunningAppProcesses(); + if (runningAppProcesses != null) { + for (ActivityManager.RunningAppProcessInfo runningAppProcessInfo : runningAppProcesses) { + if (runningAppProcessInfo.processName.equals(str)) { + return runningAppProcessInfo; + } + } + } + return null; + } + + public static boolean j(Context context, String str, boolean z2) { + Resources resources; + if (!(context == null || (resources = context.getResources()) == null)) { + int n = n(context, str, "bool"); + if (n > 0) { + return resources.getBoolean(n); + } + int n2 = n(context, str, "string"); + if (n2 > 0) { + return Boolean.parseBoolean(context.getString(n2)); + } + } + return z2; + } + + public static int k(Context context) { + boolean z2 = true; + int i = r(context) ? 1 : 0; + if (t(context)) { + i |= 2; + } + if (!Debug.isDebuggerConnected() && !Debug.waitingForDebugger()) { + z2 = false; + } + return z2 ? i | 4 : i; + } + + public static String l(Context context) { + int n = n(context, "com.google.firebase.crashlytics.mapping_file_id", "string"); + if (n == 0) { + n = n(context, "com.crashlytics.android.build_id", "string"); + } + if (n != 0) { + return context.getResources().getString(n); + } + return null; + } + + public static boolean m(Context context) { + return !r(context) && ((SensorManager) context.getSystemService("sensor")).getDefaultSensor(8) != null; + } + + public static int n(Context context, String str, String str2) { + String str3; + Resources resources = context.getResources(); + int i = context.getApplicationContext().getApplicationInfo().icon; + if (i > 0) { + try { + str3 = context.getResources().getResourcePackageName(i); + if ("android".equals(str3)) { + str3 = context.getPackageName(); + } + } catch (Resources.NotFoundException unused) { + str3 = context.getPackageName(); + } + } else { + str3 = context.getPackageName(); + } + return resources.getIdentifier(str, str2, str3); + } + + public static SharedPreferences o(Context context) { + return context.getSharedPreferences("com.google.firebase.crashlytics", 0); + } + + public static synchronized long p() { + long j; + synchronized (h.class) { + if (f1670b == -1) { + long j2 = 0; + String g = g(new File("/proc/meminfo"), "MemTotal"); + if (!TextUtils.isEmpty(g)) { + String upperCase = g.toUpperCase(Locale.US); + try { + if (upperCase.endsWith("KB")) { + j2 = e(upperCase, "KB", 1024); + } else if (upperCase.endsWith("MB")) { + j2 = e(upperCase, "MB", 1048576); + } else if (upperCase.endsWith("GB")) { + j2 = e(upperCase, "GB", BasicMeasure.EXACTLY); + } else { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + bVar.b("Unexpected meminfo format while computing RAM: " + upperCase); + } + } catch (NumberFormatException e) { + b.i.c.m.d.b bVar2 = b.i.c.m.d.b.a; + bVar2.e("Unexpected meminfo format while computing RAM: " + upperCase, e); + } + } + f1670b = j2; + } + j = f1670b; + } + return j; + } + + public static String q(byte[] bArr) { + char[] cArr = new char[(bArr.length * 2)]; + for (int i = 0; i < bArr.length; i++) { + int i2 = bArr[i] & 255; + int i3 = i * 2; + char[] cArr2 = a; + cArr[i3] = cArr2[i2 >>> 4]; + cArr[i3 + 1] = cArr2[i2 & 15]; + } + return new String(cArr); + } + + public static boolean r(Context context) { + String string = Settings.Secure.getString(context.getContentResolver(), "android_id"); + String str = Build.PRODUCT; + return "sdk".equals(str) || "google_sdk".equals(str) || string == null; + } + + public static boolean s(String str) { + return str == null || str.length() == 0; + } + + public static boolean t(Context context) { + boolean r = r(context); + String str = Build.TAGS; + if ((!r && str != null && str.contains("test-keys")) || new File("/system/app/Superuser.apk").exists()) { + return true; + } + return !r && new File("/system/xbin/su").exists(); + } + + public static String u(int i) { + if (i >= 0) { + return String.format(Locale.US, "%1$10s", Integer.valueOf(i)).replace(' ', '0'); + } + throw new IllegalArgumentException("value must be zero or greater"); + } + + public static String v(String str) { + byte[] bytes = str.getBytes(); + try { + MessageDigest instance = MessageDigest.getInstance(Constants.SHA1); + instance.update(bytes); + return q(instance.digest()); + } catch (NoSuchAlgorithmException e) { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + bVar.e("Could not create hashing algorithm: " + Constants.SHA1 + ", returning empty string.", e); + return ""; + } + } + + public static String w(InputStream inputStream) throws IOException { + Scanner useDelimiter = new Scanner(inputStream).useDelimiter("\\A"); + return useDelimiter.hasNext() ? useDelimiter.next() : ""; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/h0.java b/app/src/main/java/b/i/c/m/d/k/h0.java new file mode 100644 index 0000000000..3e4e2fe08c --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/h0.java @@ -0,0 +1,31 @@ +package b.i.c.m.d.k; + +import android.content.Context; +import androidx.annotation.NonNull; +import b.i.c.m.d.q.b; +import b.i.c.m.d.q.d.a; +import b.i.c.m.d.q.d.c; +import b.i.c.m.d.q.d.d; +/* compiled from: CrashlyticsController */ +public class h0 implements b.AbstractC0143b { + public final /* synthetic */ x a; + + public h0(x xVar) { + this.a = xVar; + } + + public b a(@NonNull b.i.c.m.d.s.h.b bVar) { + String str = bVar.c; + String str2 = bVar.d; + String str3 = bVar.e; + x xVar = this.a; + Context context = xVar.i; + int n = h.n(context, "com.crashlytics.ApiEndpoint", "string"); + String string = n > 0 ? context.getString(n) : ""; + a aVar = new a(new c(string, str, xVar.n, "17.3.0"), new d(string, str2, xVar.n, "17.3.0")); + String str4 = this.a.q.a; + int m = b.c.a.y.b.m(bVar); + x xVar2 = this.a; + return new b(str3, str4, m, xVar2.u, aVar, xVar2.v); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/h1.java b/app/src/main/java/b/i/c/m/d/k/h1.java new file mode 100644 index 0000000000..023d108241 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/h1.java @@ -0,0 +1,81 @@ +package b.i.c.m.d.k; + +import android.os.Looper; +import b.i.a.f.e.o.f; +import com.google.android.gms.tasks.Task; +import java.io.File; +import java.io.FilenameFilter; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; +import java.util.concurrent.CancellationException; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +/* compiled from: Utils */ +public final class h1 { + public static final FilenameFilter a = new a(); + + /* renamed from: b reason: collision with root package name */ + public static final ExecutorService f1672b = f.m("awaitEvenIfOnMainThread task continuation executor"); + + /* compiled from: Utils */ + public class a implements FilenameFilter { + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + return true; + } + } + + public static T a(Task task) throws InterruptedException, TimeoutException { + CountDownLatch countDownLatch = new CountDownLatch(1); + task.i(f1672b, new g1(countDownLatch)); + if (Looper.getMainLooper() == Looper.myLooper()) { + countDownLatch.await(4, TimeUnit.SECONDS); + } else { + countDownLatch.await(); + } + if (task.p()) { + return task.l(); + } + if (task.n()) { + throw new CancellationException("Task is already canceled"); + } else if (task.o()) { + throw new IllegalStateException(task.k()); + } else { + throw new TimeoutException(); + } + } + + public static int b(File file, FilenameFilter filenameFilter, int i, Comparator comparator) { + File[] listFiles = file.listFiles(filenameFilter); + if (listFiles == null) { + return 0; + } + return c(Arrays.asList(listFiles), i, comparator); + } + + public static int c(List list, int i, Comparator comparator) { + int size = list.size(); + Collections.sort(list, comparator); + for (File file : list) { + if (size <= i) { + return size; + } + d(file); + size--; + } + return size; + } + + public static void d(File file) { + if (file.isDirectory()) { + for (File file2 : file.listFiles()) { + d(file2); + } + } + file.delete(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/i.java b/app/src/main/java/b/i/c/m/d/k/i.java new file mode 100644 index 0000000000..4c822ffcd3 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/i.java @@ -0,0 +1,55 @@ +package b.i.c.m.d.k; + +import b.i.a.f.e.o.f; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Callable; +import java.util.concurrent.Executor; +/* compiled from: CrashlyticsBackgroundWorker */ +public class i { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public Task f1673b = f.Y(null); + public final Object c = new Object(); + public ThreadLocal d = new ThreadLocal<>(); + + /* compiled from: CrashlyticsBackgroundWorker */ + public class a implements Runnable { + public a() { + } + + @Override // java.lang.Runnable + public void run() { + i.this.d.set(Boolean.TRUE); + } + } + + public i(Executor executor) { + this.a = executor; + executor.execute(new a()); + } + + public void a() { + if (!Boolean.TRUE.equals(this.d.get())) { + throw new IllegalStateException("Not running on background worker thread as intended."); + } + } + + public Task b(Callable callable) { + Task task; + synchronized (this.c) { + task = (Task) this.f1673b.i(this.a, new k(this, callable)); + this.f1673b = task.i(this.a, new l(this)); + } + return task; + } + + public Task c(Callable> callable) { + Task task; + synchronized (this.c) { + task = (Task) this.f1673b.j(this.a, new k(this, callable)); + this.f1673b = task.i(this.a, new l(this)); + } + return task; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/i0.java b/app/src/main/java/b/i/c/m/d/k/i0.java new file mode 100644 index 0000000000..2444fb5a33 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/i0.java @@ -0,0 +1,9 @@ +package b.i.c.m.d.k; +/* compiled from: CrashlyticsCore */ +public final /* synthetic */ class i0 { + public final k0 a; + + public i0(k0 k0Var) { + this.a = k0Var; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/i1.java b/app/src/main/java/b/i/c/m/d/k/i1.java new file mode 100644 index 0000000000..b931e0798c --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/i1.java @@ -0,0 +1,25 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: Utils */ +public class i1 implements a { + public final /* synthetic */ TaskCompletionSource a; + + public i1(TaskCompletionSource taskCompletionSource) { + this.a = taskCompletionSource; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.n.a + public Void a(@NonNull Task task) throws Exception { + if (task.p()) { + this.a.b(task.l()); + return null; + } + this.a.a(task.k()); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/j.java b/app/src/main/java/b/i/c/m/d/k/j.java new file mode 100644 index 0000000000..7e47a54884 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/j.java @@ -0,0 +1,18 @@ +package b.i.c.m.d.k; + +import java.util.concurrent.Callable; +/* compiled from: CrashlyticsBackgroundWorker */ +public class j implements Callable { + public final /* synthetic */ Runnable j; + + public j(i iVar, Runnable runnable) { + this.j = runnable; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + this.j.run(); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/j0.java b/app/src/main/java/b/i/c/m/d/k/j0.java new file mode 100644 index 0000000000..007c6b1fe6 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/j0.java @@ -0,0 +1,21 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.s.d; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Callable; +/* compiled from: CrashlyticsCore */ +public class j0 implements Callable> { + public final /* synthetic */ d j; + public final /* synthetic */ k0 k; + + public j0(k0 k0Var, d dVar) { + this.k = k0Var; + this.j = dVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + return k0.a(this.k, this.j); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/j1.java b/app/src/main/java/b/i/c/m/d/k/j1.java new file mode 100644 index 0000000000..2a735c6d50 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/j1.java @@ -0,0 +1,44 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.concurrent.Callable; +/* compiled from: Utils */ +public class j1 implements Runnable { + public final /* synthetic */ Callable j; + public final /* synthetic */ TaskCompletionSource k; + + /* compiled from: Utils */ + public class a implements b.i.a.f.n.a { + public a() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.n.a + public Void a(@NonNull Task task) throws Exception { + if (task.p()) { + TaskCompletionSource taskCompletionSource = j1.this.k; + taskCompletionSource.a.t(task.l()); + return null; + } + TaskCompletionSource taskCompletionSource2 = j1.this.k; + taskCompletionSource2.a.s(task.k()); + return null; + } + } + + public j1(Callable callable, TaskCompletionSource taskCompletionSource) { + this.j = callable; + this.k = taskCompletionSource; + } + + @Override // java.lang.Runnable + public void run() { + try { + ((Task) this.j.call()).h(new a()); + } catch (Exception e) { + this.k.a.s(e); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/k.java b/app/src/main/java/b/i/c/m/d/k/k.java new file mode 100644 index 0000000000..6f5bee63cf --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/k.java @@ -0,0 +1,20 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Callable; +/* compiled from: CrashlyticsBackgroundWorker */ +public class k implements a { + public final /* synthetic */ Callable a; + + public k(i iVar, Callable callable) { + this.a = callable; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.a.f.n.a + public T a(@NonNull Task task) throws Exception { + return this.a.call(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/k0.java b/app/src/main/java/b/i/c/m/d/k/k0.java new file mode 100644 index 0000000000..f18a0e0e6a --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/k0.java @@ -0,0 +1,203 @@ +package b.i.c.m.d.k; + +import android.content.Context; +import android.content.SharedPreferences; +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.f.e.o.f; +import b.i.c.c; +import b.i.c.m.d.s.d; +import b.i.c.m.d.s.h.e; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +/* compiled from: CrashlyticsCore */ +public class k0 { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final c f1674b; + public final q0 c; + public final long d = System.currentTimeMillis(); + public m0 e; + public m0 f; + public boolean g; + public x h; + public final v0 i; + public final b.i.c.m.d.j.a j; + public final b.i.c.m.d.i.a k; + public ExecutorService l; + public i m; + public b.i.c.m.d.a n; + + /* compiled from: CrashlyticsCore */ + public class a implements Runnable { + public final /* synthetic */ d j; + + public a(d dVar) { + this.j = dVar; + } + + @Override // java.lang.Runnable + public void run() { + k0.a(k0.this, this.j); + } + } + + /* compiled from: CrashlyticsCore */ + public class b implements Callable { + public b() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Boolean call() throws Exception { + try { + boolean delete = k0.this.e.b().delete(); + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + bVar.b("Initialization marker file removed: " + delete); + return Boolean.valueOf(delete); + } catch (Exception e) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Problem encountered deleting Crashlytics initialization marker.", e); + } + return Boolean.FALSE; + } + } + } + + public k0(c cVar, v0 v0Var, b.i.c.m.d.a aVar, q0 q0Var, b.i.c.m.d.j.a aVar2, b.i.c.m.d.i.a aVar3, ExecutorService executorService) { + this.f1674b = cVar; + this.c = q0Var; + cVar.a(); + this.a = cVar.d; + this.i = v0Var; + this.n = aVar; + this.j = aVar2; + this.k = aVar3; + this.l = executorService; + this.m = new i(executorService); + } + + public static Task a(k0 k0Var, d dVar) { + Task task; + k0Var.m.a(); + k0Var.e.a(); + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + bVar.b("Initialization marker file created."); + x xVar = k0Var.h; + i iVar = xVar.m; + iVar.b(new j(iVar, new s(xVar))); + try { + k0Var.j.a(new i0(k0Var)); + b.i.c.m.d.s.c cVar = (b.i.c.m.d.s.c) dVar; + e c = cVar.c(); + if (!c.a().a) { + bVar.b("Collection of crash reports disabled in Crashlytics settings."); + task = f.X(new RuntimeException("Collection of crash reports disabled in Crashlytics settings.")); + } else { + if (!k0Var.h.h(c.b().a)) { + bVar.b("Could not finalize previous sessions."); + } + task = k0Var.h.u(1.0f, cVar.a()); + } + } catch (Exception e) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Crashlytics encountered a problem during asynchronous initialization.", e); + } + task = f.X(e); + } catch (Throwable th) { + k0Var.c(); + throw th; + } + k0Var.c(); + return task; + } + + public final void b(d dVar) { + Future submit = this.l.submit(new a(dVar)); + b.i.c.m.d.b.a.b("Crashlytics detected incomplete initialization on previous app launch. Will initialize synchronously."); + try { + submit.get(4, TimeUnit.SECONDS); + } catch (InterruptedException e) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Crashlytics was interrupted during initialization.", e); + } + } catch (ExecutionException e2) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Problem encountered during Crashlytics initialization.", e2); + } + } catch (TimeoutException e3) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Crashlytics timed out during initialization.", e3); + } + } + } + + public void c() { + this.m.b(new b()); + } + + public void d(@Nullable Boolean bool) { + Boolean bool2; + q0 q0Var = this.c; + synchronized (q0Var) { + if (bool != null) { + try { + q0Var.f = false; + } catch (Throwable th) { + throw th; + } + } + if (bool != null) { + bool2 = bool; + } else { + c cVar = q0Var.f1678b; + cVar.a(); + bool2 = q0Var.a(cVar.d); + } + q0Var.g = bool2; + SharedPreferences.Editor edit = q0Var.a.edit(); + if (bool != null) { + edit.putBoolean("firebase_crashlytics_collection_enabled", bool.booleanValue()); + } else { + edit.remove("firebase_crashlytics_collection_enabled"); + } + edit.commit(); + synchronized (q0Var.c) { + if (q0Var.b()) { + if (!q0Var.e) { + q0Var.d.b(null); + q0Var.e = true; + } + } else if (q0Var.e) { + q0Var.d = new TaskCompletionSource<>(); + q0Var.e = false; + } + } + } + } + + public void e(String str, String str2) { + x xVar = this.h; + Objects.requireNonNull(xVar); + try { + xVar.l.c(str, str2); + xVar.m.b(new q(xVar, xVar.l.a())); + } catch (IllegalArgumentException e) { + Context context = xVar.i; + if (context != null) { + if ((context.getApplicationInfo().flags & 2) != 0) { + throw e; + } + } + b.i.c.m.d.b.a.d("Attempting to set custom attribute with null key, ignoring."); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/l.java b/app/src/main/java/b/i/c/m/d/k/l.java new file mode 100644 index 0000000000..0e0e0c0133 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/l.java @@ -0,0 +1,16 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +/* compiled from: CrashlyticsBackgroundWorker */ +public class l implements a { + public l(i iVar) { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.i.a.f.n.a + public /* bridge */ /* synthetic */ Void a(@NonNull Task task) throws Exception { + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/l0.java b/app/src/main/java/b/i/c/m/d/k/l0.java new file mode 100644 index 0000000000..2590d339af --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/l0.java @@ -0,0 +1,29 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.b; +import java.util.concurrent.Callable; +/* compiled from: CrashlyticsCore */ +public class l0 implements Callable { + public final /* synthetic */ k0 j; + + public l0(k0 k0Var) { + this.j = k0Var; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Boolean call() throws Exception { + x xVar = this.j.h; + boolean z2 = true; + if (!xVar.k.b().exists()) { + String i = xVar.i(); + if (i == null || !xVar.w.e(i)) { + z2 = false; + } + } else { + b.a.b("Found previous crash marker."); + xVar.k.b().delete(); + } + return Boolean.valueOf(z2); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/m.java b/app/src/main/java/b/i/c/m/d/k/m.java new file mode 100644 index 0000000000..31eabb8dd4 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/m.java @@ -0,0 +1,14 @@ +package b.i.c.m.d.k; + +import java.io.File; +import java.io.FilenameFilter; +/* compiled from: CrashlyticsController */ +public final /* synthetic */ class m implements FilenameFilter { + public static final m a = new m(); + + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + FilenameFilter filenameFilter = x.a; + return str.startsWith(".ae"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/m0.java b/app/src/main/java/b/i/c/m/d/k/m0.java new file mode 100644 index 0000000000..7fe24d6d11 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/m0.java @@ -0,0 +1,35 @@ +package b.i.c.m.d.k; + +import b.d.b.a.a; +import b.i.c.m.d.b; +import b.i.c.m.d.o.h; +import java.io.File; +import java.io.IOException; +/* compiled from: CrashlyticsFileMarker */ +public class m0 { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final h f1675b; + + public m0(String str, h hVar) { + this.a = str; + this.f1675b = hVar; + } + + public boolean a() { + try { + return b().createNewFile(); + } catch (IOException e) { + b bVar = b.a; + StringBuilder R = a.R("Error creating marker: "); + R.append(this.a); + bVar.e(R.toString(), e); + return false; + } + } + + public final File b() { + return new File(this.f1675b.a(), this.a); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/n.java b/app/src/main/java/b/i/c/m/d/k/n.java new file mode 100644 index 0000000000..58bc9b1ba5 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/n.java @@ -0,0 +1,27 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.l.b; +import java.util.concurrent.Callable; +/* compiled from: CrashlyticsController */ +public class n implements Callable { + public final /* synthetic */ long j; + public final /* synthetic */ String k; + public final /* synthetic */ x l; + + public n(x xVar, long j, String str) { + this.l = xVar; + this.j = j; + this.k = str; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + if (this.l.p()) { + return null; + } + b bVar = this.l.t; + bVar.d.e(this.j, this.k); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/n0.java b/app/src/main/java/b/i/c/m/d/k/n0.java new file mode 100644 index 0000000000..3427461200 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/n0.java @@ -0,0 +1,105 @@ +package b.i.c.m.d.k; + +import android.content.Context; +import b.d.b.a.a; +import b.i.c.m.d.m.n; +import b.i.c.m.d.m.p; +import b.i.c.m.d.m.q; +import b.i.c.m.d.m.v; +import b.i.c.m.d.m.w; +import b.i.c.m.d.t.d; +import b.i.c.m.d.t.e; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +/* compiled from: CrashlyticsReportDataCapture */ +public class n0 { + public static final String a = String.format(Locale.US, "Crashlytics Android SDK/%s", "17.3.0"); + + /* renamed from: b reason: collision with root package name */ + public static final Map f1676b; + public final Context c; + public final v0 d; + public final b e; + public final d f; + + static { + HashMap hashMap = new HashMap(); + f1676b = hashMap; + a.h0(5, hashMap, "armeabi", 6, "armeabi-v7a", 9, "arm64-v8a", 0, "x86"); + hashMap.put("x86_64", 1); + } + + public n0(Context context, v0 v0Var, b bVar, d dVar) { + this.c = context; + this.d = v0Var; + this.e = bVar; + this.f = dVar; + } + + public final v.d.AbstractC0136d.a.b.AbstractC0139b a(e eVar, int i, int i2, int i3) { + String str = eVar.f1738b; + String str2 = eVar.a; + StackTraceElement[] stackTraceElementArr = eVar.c; + int i4 = 0; + if (stackTraceElementArr == null) { + stackTraceElementArr = new StackTraceElement[0]; + } + e eVar2 = eVar.d; + if (i3 >= i2) { + e eVar3 = eVar2; + while (eVar3 != null) { + eVar3 = eVar3.d; + i4++; + } + } + v.d.AbstractC0136d.a.b.AbstractC0139b bVar = null; + Objects.requireNonNull(str, "Null type"); + w wVar = new w(b(stackTraceElementArr, i)); + Integer valueOf = Integer.valueOf(i4); + if (eVar2 != null && i4 == 0) { + bVar = a(eVar2, i, i2, i3 + 1); + } + String str3 = valueOf == null ? " overflowCount" : ""; + if (str3.isEmpty()) { + return new n(str, str2, wVar, bVar, valueOf.intValue(), null); + } + throw new IllegalStateException(a.v("Missing required properties:", str3)); + } + + public final w b(StackTraceElement[] stackTraceElementArr, int i) { + ArrayList arrayList = new ArrayList(); + for (StackTraceElement stackTraceElement : stackTraceElementArr) { + q.b bVar = new q.b(); + bVar.e = Integer.valueOf(i); + long j = 0; + long max = stackTraceElement.isNativeMethod() ? Math.max((long) stackTraceElement.getLineNumber(), 0L) : 0; + String str = stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName(); + String fileName = stackTraceElement.getFileName(); + if (!stackTraceElement.isNativeMethod() && stackTraceElement.getLineNumber() > 0) { + j = (long) stackTraceElement.getLineNumber(); + } + bVar.a = Long.valueOf(max); + Objects.requireNonNull(str, "Null symbol"); + bVar.f1717b = str; + bVar.c = fileName; + bVar.d = Long.valueOf(j); + arrayList.add(bVar.a()); + } + return new w<>(arrayList); + } + + public final v.d.AbstractC0136d.a.b.AbstractC0140d c(Thread thread, StackTraceElement[] stackTraceElementArr, int i) { + String name = thread.getName(); + Objects.requireNonNull(name, "Null name"); + Integer valueOf = Integer.valueOf(i); + w wVar = new w(b(stackTraceElementArr, i)); + String str = valueOf == null ? " importance" : ""; + if (str.isEmpty()) { + return new p(name, valueOf.intValue(), wVar, null); + } + throw new IllegalStateException(a.v("Missing required properties:", str)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/o.java b/app/src/main/java/b/i/c/m/d/k/o.java new file mode 100644 index 0000000000..de061c97a5 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/o.java @@ -0,0 +1,150 @@ +package b.i.c.m.d.k; + +import android.util.Log; +import b.d.b.a.a; +import b.i.c.m.d.p.b; +import b.i.c.m.d.p.c; +import java.util.Date; +import java.util.Objects; +/* compiled from: CrashlyticsController */ +public class o implements Runnable { + public final /* synthetic */ Date j; + public final /* synthetic */ Throwable k; + public final /* synthetic */ Thread l; + public final /* synthetic */ x m; + + public o(x xVar, Date date, Throwable th, Thread thread) { + this.m = xVar; + this.j = date; + this.k = th; + this.l = thread; + } + + /* JADX WARNING: Removed duplicated region for block: B:31:0x00ea A[Catch:{ all -> 0x010a }] */ + @Override // java.lang.Runnable + public void run() { + String str; + b bVar; + Throwable th; + c cVar; + b bVar2; + b bVar3; + int i; + Exception e; + int i2; + if (!this.m.p()) { + long time = this.j.getTime() / 1000; + String i3 = this.m.i(); + if (i3 == null) { + b.i.c.m.d.b.a.b("Tried to write a non-fatal exception while no session was open."); + return; + } + d1 d1Var = this.m.A; + Throwable th2 = this.k; + Thread thread = this.l; + String replaceAll = i3.replaceAll("-", ""); + Objects.requireNonNull(d1Var); + b.i.c.m.d.b bVar4 = b.i.c.m.d.b.a; + a.m0("Persisting non-fatal event for session ", replaceAll, bVar4); + d1Var.a(th2, thread, replaceAll, "error", time, false); + x xVar = this.m; + Thread thread2 = this.l; + Throwable th3 = this.k; + Objects.requireNonNull(xVar); + c cVar2 = null; + try { + bVar4.b("Crashlytics is logging non-fatal exception \"" + th3 + "\" from thread " + thread2.getName()); + b bVar5 = new b(xVar.l(), i3 + "SessionEvent" + h.u(xVar.h.getAndIncrement())); + try { + cVar = c.i(bVar5); + i2 = 6; + bVar2 = bVar5; + str = "Failed to flush to non-fatal file."; + try { + xVar.y(cVar, thread2, th3, time, "error", false); + bVar3 = bVar2; + cVar2 = cVar; + i = 6; + } catch (Exception e2) { + e = e2; + cVar2 = cVar; + i = i2; + try { + if (b.i.c.m.d.b.a.a(i)) { + Log.e("FirebaseCrashlytics", "An error occurred in the non-fatal exception logger", e); + } + bVar3 = bVar2; + h.h(cVar2, str); + h.c(bVar3, "Failed to close non-fatal file output stream."); + xVar.v(i3, 64); + } catch (Throwable th4) { + th = th4; + cVar = cVar2; + bVar = bVar2; + cVar2 = cVar; + h.h(cVar2, str); + h.c(bVar, "Failed to close non-fatal file output stream."); + throw th; + } + } catch (Throwable th5) { + th = th5; + bVar = bVar2; + cVar2 = cVar; + h.h(cVar2, str); + h.c(bVar, "Failed to close non-fatal file output stream."); + throw th; + } + } catch (Exception e3) { + e = e3; + bVar2 = bVar5; + str = "Failed to flush to non-fatal file."; + i2 = 6; + i = i2; + if (b.i.c.m.d.b.a.a(i)) { + } + bVar3 = bVar2; + h.h(cVar2, str); + h.c(bVar3, "Failed to close non-fatal file output stream."); + xVar.v(i3, 64); + } catch (Throwable th6) { + th = th6; + bVar2 = bVar5; + str = "Failed to flush to non-fatal file."; + cVar = cVar2; + bVar = bVar2; + cVar2 = cVar; + h.h(cVar2, str); + h.c(bVar, "Failed to close non-fatal file output stream."); + throw th; + } + } catch (Exception e4) { + e = e4; + str = "Failed to flush to non-fatal file."; + bVar2 = null; + i = 6; + if (b.i.c.m.d.b.a.a(i)) { + } + bVar3 = bVar2; + h.h(cVar2, str); + h.c(bVar3, "Failed to close non-fatal file output stream."); + xVar.v(i3, 64); + } catch (Throwable th7) { + th = th7; + str = "Failed to flush to non-fatal file."; + bVar = null; + h.h(cVar2, str); + h.c(bVar, "Failed to close non-fatal file output stream."); + throw th; + } + h.h(cVar2, str); + h.c(bVar3, "Failed to close non-fatal file output stream."); + try { + xVar.v(i3, 64); + } catch (Exception e5) { + if (b.i.c.m.d.b.a.a(i)) { + Log.e("FirebaseCrashlytics", "An error occurred when trimming non-fatal files.", e5); + } + } + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/o0.java b/app/src/main/java/b/i/c/m/d/k/o0.java new file mode 100644 index 0000000000..62e1ffeb95 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/o0.java @@ -0,0 +1,11 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.m.v; +import com.google.auto.value.AutoValue; +/* compiled from: CrashlyticsReportWithSessionId */ +@AutoValue +public abstract class o0 { + public abstract v a(); + + public abstract String b(); +} diff --git a/app/src/main/java/b/i/c/m/d/k/p.java b/app/src/main/java/b/i/c/m/d/k/p.java new file mode 100644 index 0000000000..13aa0961d5 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/p.java @@ -0,0 +1,87 @@ +package b.i.c.m.d.k; + +import android.util.Log; +import b.i.c.m.d.b; +import b.i.c.m.d.o.g; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.util.concurrent.Callable; +/* compiled from: CrashlyticsController */ +public class p implements Callable { + public final /* synthetic */ f1 j; + public final /* synthetic */ x k; + + public p(x xVar, f1 f1Var) { + this.k = xVar; + this.j = f1Var; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + BufferedWriter bufferedWriter; + Throwable th; + Exception e; + String i = this.k.i(); + BufferedWriter bufferedWriter2 = null; + if (i == null) { + b.a.b("Tried to cache user data while no session was open."); + } else { + d1 d1Var = this.k.A; + String replaceAll = i.replaceAll("-", ""); + String str = d1Var.e.a; + if (str == null) { + b.a.b("Could not persist user ID; no user ID available"); + } else { + try { + g.l(new File(d1Var.f1665b.h(replaceAll), "user"), str); + } catch (IOException e2) { + b.a.c("Could not persist user ID for session " + replaceAll, e2); + } + } + z0 z0Var = new z0(this.k.l()); + f1 f1Var = this.j; + File b2 = z0Var.b(i); + try { + String jSONObject = new y0(f1Var).toString(); + bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(b2), z0.a)); + try { + bufferedWriter.write(jSONObject); + bufferedWriter.flush(); + } catch (Exception e3) { + e = e3; + } catch (Throwable th2) { + th = th2; + h.c(bufferedWriter, "Failed to close user metadata file."); + throw th; + } + } catch (Exception e4) { + e = e4; + bufferedWriter = null; + try { + if (b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Error serializing user metadata.", e); + } + h.c(bufferedWriter, "Failed to close user metadata file."); + return null; + } catch (Throwable th3) { + th = th3; + bufferedWriter2 = bufferedWriter; + bufferedWriter = bufferedWriter2; + h.c(bufferedWriter, "Failed to close user metadata file."); + throw th; + } + } catch (Throwable th4) { + th = th4; + bufferedWriter = bufferedWriter2; + h.c(bufferedWriter, "Failed to close user metadata file."); + throw th; + } + h.c(bufferedWriter, "Failed to close user metadata file."); + } + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/p0.java b/app/src/main/java/b/i/c/m/d/k/p0.java new file mode 100644 index 0000000000..a4b008436f --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/p0.java @@ -0,0 +1,54 @@ +package b.i.c.m.d.k; + +import android.util.Log; +import b.i.c.m.d.b; +import b.i.c.m.d.s.d; +import java.lang.Thread; +import java.util.concurrent.atomic.AtomicBoolean; +/* compiled from: CrashlyticsUncaughtExceptionHandler */ +public class p0 implements Thread.UncaughtExceptionHandler { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final d f1677b; + public final Thread.UncaughtExceptionHandler c; + public final AtomicBoolean d = new AtomicBoolean(false); + + /* compiled from: CrashlyticsUncaughtExceptionHandler */ + public interface a { + } + + public p0(a aVar, d dVar, Thread.UncaughtExceptionHandler uncaughtExceptionHandler) { + this.a = aVar; + this.f1677b = dVar; + this.c = uncaughtExceptionHandler; + } + + @Override // java.lang.Thread.UncaughtExceptionHandler + public void uncaughtException(Thread thread, Throwable th) { + this.d.set(true); + if (thread == null) { + try { + b.a.d("Could not handle uncaught exception; null thread"); + } catch (Exception e) { + b bVar = b.a; + if (bVar.a(6)) { + Log.e("FirebaseCrashlytics", "An error occurred in the uncaught exception handler", e); + } + bVar.b("Crashlytics completed exception processing. Invoking default exception handler."); + } catch (Throwable th2) { + b.a.b("Crashlytics completed exception processing. Invoking default exception handler."); + this.c.uncaughtException(thread, th); + this.d.set(false); + throw th2; + } + } else if (th == null) { + b.a.d("Could not handle uncaught exception; null throwable"); + } else { + ((b0) this.a).a(this.f1677b, thread, th); + } + b.a.b("Crashlytics completed exception processing. Invoking default exception handler."); + this.c.uncaughtException(thread, th); + this.d.set(false); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/q.java b/app/src/main/java/b/i/c/m/d/k/q.java new file mode 100644 index 0000000000..f459d50828 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/q.java @@ -0,0 +1,71 @@ +package b.i.c.m.d.k; + +import android.util.Log; +import b.i.c.m.d.b; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileOutputStream; +import java.io.OutputStreamWriter; +import java.util.Map; +import java.util.concurrent.Callable; +import org.json.JSONObject; +/* compiled from: CrashlyticsController */ +public class q implements Callable { + public final /* synthetic */ Map j; + public final /* synthetic */ x k; + + public q(x xVar, Map map) { + this.k = xVar; + this.j = map; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + BufferedWriter bufferedWriter; + Throwable th; + Exception e; + String i = this.k.i(); + z0 z0Var = new z0(this.k.l()); + Map map = this.j; + File a = z0Var.a(i); + BufferedWriter bufferedWriter2 = null; + try { + String jSONObject = new JSONObject(map).toString(); + bufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(a), z0.a)); + try { + bufferedWriter.write(jSONObject); + bufferedWriter.flush(); + } catch (Exception e2) { + e = e2; + } catch (Throwable th2) { + th = th2; + h.c(bufferedWriter, "Failed to close key/value metadata file."); + throw th; + } + } catch (Exception e3) { + e = e3; + bufferedWriter = null; + try { + if (b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Error serializing key/value metadata.", e); + } + h.c(bufferedWriter, "Failed to close key/value metadata file."); + return null; + } catch (Throwable th3) { + th = th3; + bufferedWriter2 = bufferedWriter; + bufferedWriter = bufferedWriter2; + h.c(bufferedWriter, "Failed to close key/value metadata file."); + throw th; + } + } catch (Throwable th4) { + th = th4; + bufferedWriter = bufferedWriter2; + h.c(bufferedWriter, "Failed to close key/value metadata file."); + throw th; + } + h.c(bufferedWriter, "Failed to close key/value metadata file."); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/q0.java b/app/src/main/java/b/i/c/m/d/k/q0.java new file mode 100644 index 0000000000..cd4b05d330 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/q0.java @@ -0,0 +1,103 @@ +package b.i.c.m.d.k; + +import android.content.Context; +import android.content.SharedPreferences; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageManager; +import android.os.Bundle; +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.f.n.b0; +import b.i.c.c; +import b.i.c.m.d.b; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.io.FilenameFilter; +/* compiled from: DataCollectionArbiter */ +public class q0 { + public final SharedPreferences a; + + /* renamed from: b reason: collision with root package name */ + public final c f1678b; + public final Object c; + public TaskCompletionSource d = new TaskCompletionSource<>(); + public boolean e = false; + public boolean f = false; + @Nullable + public Boolean g; + public TaskCompletionSource h = new TaskCompletionSource<>(); + + public q0(c cVar) { + Boolean bool; + Object obj = new Object(); + this.c = obj; + cVar.a(); + Context context = cVar.d; + this.f1678b = cVar; + SharedPreferences o = h.o(context); + this.a = o; + if (o.contains("firebase_crashlytics_collection_enabled")) { + this.f = false; + bool = Boolean.valueOf(o.getBoolean("firebase_crashlytics_collection_enabled", true)); + } else { + bool = null; + } + this.g = bool == null ? a(context) : bool; + synchronized (obj) { + if (b()) { + this.d.b(null); + this.e = true; + } + } + } + + /* JADX WARNING: Removed duplicated region for block: B:17:0x003e */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x0042 */ + @Nullable + public final Boolean a(Context context) { + Boolean bool; + ApplicationInfo applicationInfo; + Bundle bundle; + try { + PackageManager packageManager = context.getPackageManager(); + if (!(packageManager == null || (applicationInfo = packageManager.getApplicationInfo(context.getPackageName(), 128)) == null || (bundle = applicationInfo.metaData) == null || !bundle.containsKey("firebase_crashlytics_collection_enabled"))) { + bool = Boolean.valueOf(applicationInfo.metaData.getBoolean("firebase_crashlytics_collection_enabled")); + if (bool != null) { + this.f = false; + return null; + } + this.f = true; + return Boolean.valueOf(Boolean.TRUE.equals(bool)); + } + } catch (PackageManager.NameNotFoundException e) { + if (b.a.a(3)) { + Log.d("FirebaseCrashlytics", "Unable to get PackageManager. Falling through", e); + } + } + bool = null; + if (bool != null) { + } + } + + public synchronized boolean b() { + boolean booleanValue; + Boolean bool = this.g; + booleanValue = bool != null ? bool.booleanValue() : this.f1678b.g(); + b.a.b(String.format("Crashlytics automatic data collection %s by %s.", booleanValue ? "ENABLED" : "DISABLED", this.g == null ? "global Firebase setting" : this.f ? "firebase_crashlytics_collection_enabled manifest flag" : "API")); + return booleanValue; + } + + public Task c() { + b0 b0Var; + b0 b0Var2 = this.h.a; + synchronized (this.c) { + b0Var = this.d.a; + } + FilenameFilter filenameFilter = h1.a; + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + i1 i1Var = new i1(taskCompletionSource); + b0Var2.h(i1Var); + b0Var.h(i1Var); + return taskCompletionSource.a; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/r.java b/app/src/main/java/b/i/c/m/d/k/r.java new file mode 100644 index 0000000000..edb8fd498d --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/r.java @@ -0,0 +1,18 @@ +package b.i.c.m.d.k; + +import java.util.concurrent.Callable; +/* compiled from: CrashlyticsController */ +public class r implements Callable { + public final /* synthetic */ x j; + + public r(x xVar) { + this.j = xVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + x.a(this.j); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/r0.java b/app/src/main/java/b/i/c/m/d/k/r0.java new file mode 100644 index 0000000000..f900c8f16c --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/r0.java @@ -0,0 +1,29 @@ +package b.i.c.m.d.k; +/* compiled from: DeliveryMechanism */ +public enum r0 { + DEVELOPER(1), + USER_SIDELOAD(2), + TEST_DISTRIBUTION(3), + APP_STORE(4); + + + /* renamed from: id reason: collision with root package name */ + private final int f1679id; + + public r0(int i) { + this.f1679id = i; + } + + public static r0 f(String str) { + return str != null ? APP_STORE : DEVELOPER; + } + + public int g() { + return this.f1679id; + } + + @Override // java.lang.Enum, java.lang.Object + public String toString() { + return Integer.toString(this.f1679id); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/s.java b/app/src/main/java/b/i/c/m/d/k/s.java new file mode 100644 index 0000000000..a09f2b01c7 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/s.java @@ -0,0 +1,34 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.b; +import b.i.c.m.d.k.x; +import java.io.File; +import java.util.HashSet; +import java.util.Objects; +/* compiled from: CrashlyticsController */ +public class s implements Runnable { + public final /* synthetic */ x j; + + public s(x xVar) { + this.j = xVar; + } + + @Override // java.lang.Runnable + public void run() { + x xVar = this.j; + File[] r = x.r(xVar.l(), new x.i()); + Objects.requireNonNull(xVar); + HashSet hashSet = new HashSet(); + for (File file : r) { + b.a.b("Found invalid session part file: " + file); + hashSet.add(x.o(file)); + } + if (!hashSet.isEmpty()) { + File[] r2 = x.r(xVar.l(), new t(xVar, hashSet)); + for (File file2 : r2) { + b.a.b("Deleting invalid session file: " + file2); + file2.delete(); + } + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/s0.java b/app/src/main/java/b/i/c/m/d/k/s0.java new file mode 100644 index 0000000000..94a319ab6b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/s0.java @@ -0,0 +1,36 @@ +package b.i.c.m.d.k; + +import java.util.concurrent.Executors; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.atomic.AtomicLong; +/* compiled from: ExecutorUtils */ +public class s0 implements ThreadFactory { + public final /* synthetic */ String j; + public final /* synthetic */ AtomicLong k; + + /* compiled from: ExecutorUtils */ + public class a extends d { + public final /* synthetic */ Runnable j; + + public a(s0 s0Var, Runnable runnable) { + this.j = runnable; + } + + @Override // b.i.c.m.d.k.d + public void a() { + this.j.run(); + } + } + + public s0(String str, AtomicLong atomicLong) { + this.j = str; + this.k = atomicLong; + } + + @Override // java.util.concurrent.ThreadFactory + public Thread newThread(Runnable runnable) { + Thread newThread = Executors.defaultThreadFactory().newThread(new a(this, runnable)); + newThread.setName(this.j + this.k.getAndIncrement()); + return newThread; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/t.java b/app/src/main/java/b/i/c/m/d/k/t.java new file mode 100644 index 0000000000..cbf8626fee --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/t.java @@ -0,0 +1,21 @@ +package b.i.c.m.d.k; + +import java.io.File; +import java.io.FilenameFilter; +import java.util.Set; +/* compiled from: CrashlyticsController */ +public class t implements FilenameFilter { + public final /* synthetic */ Set a; + + public t(x xVar, Set set) { + this.a = set; + } + + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + if (str.length() < 35) { + return false; + } + return this.a.contains(str.substring(0, 35)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/t0.java b/app/src/main/java/b/i/c/m/d/k/t0.java new file mode 100644 index 0000000000..645484c6d7 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/t0.java @@ -0,0 +1,36 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.b; +import java.util.Locale; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.TimeUnit; +/* compiled from: ExecutorUtils */ +public class t0 extends d { + public final /* synthetic */ String j; + public final /* synthetic */ ExecutorService k; + public final /* synthetic */ long l; + public final /* synthetic */ TimeUnit m; + + public t0(String str, ExecutorService executorService, long j, TimeUnit timeUnit) { + this.j = str; + this.k = executorService; + this.l = j; + this.m = timeUnit; + } + + @Override // b.i.c.m.d.k.d + public void a() { + try { + b bVar = b.a; + bVar.b("Executing shutdown hook for " + this.j); + this.k.shutdown(); + if (!this.k.awaitTermination(this.l, this.m)) { + bVar.b(this.j + " did not shut down in the allocated time. Requesting immediate shutdown."); + this.k.shutdownNow(); + } + } catch (InterruptedException unused) { + b.a.b(String.format(Locale.US, "Interrupted while waiting for %s to shut down. Requesting immediate shutdown.", this.j)); + this.k.shutdownNow(); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/u.java b/app/src/main/java/b/i/c/m/d/k/u.java new file mode 100644 index 0000000000..518d6579c8 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/u.java @@ -0,0 +1,31 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.k.x; +import b.i.c.m.d.p.a; +import b.i.c.m.d.p.c; +import b.i.c.m.d.p.d; +/* compiled from: CrashlyticsController */ +public class u implements x.g { + public final /* synthetic */ String a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ String f1680b; + public final /* synthetic */ long c; + + public u(x xVar, String str, String str2, long j) { + this.a = str; + this.f1680b = str2; + this.c = j; + } + + @Override // b.i.c.m.d.k.x.g + public void a(c cVar) throws Exception { + String str = this.a; + String str2 = this.f1680b; + long j = this.c; + a aVar = d.a; + cVar.l(1, a.a(str2)); + cVar.l(2, a.a(str)); + cVar.t(3, j); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/u0.java b/app/src/main/java/b/i/c/m/d/k/u0.java new file mode 100644 index 0000000000..7a8ac456c6 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/u0.java @@ -0,0 +1,109 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.d.b.a.a; +import b.i.c.m.d.m.e; +import b.i.c.m.d.m.v; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; +import java.util.zip.GZIPOutputStream; +/* compiled from: FileBackedNativeSessionFile */ +public class u0 implements a1 { + @NonNull + public final File a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final String f1681b; + @NonNull + public final String c; + + public u0(@NonNull String str, @NonNull String str2, @NonNull File file) { + this.f1681b = str; + this.c = str2; + this.a = file; + } + + @Override // b.i.c.m.d.k.a1 + @NonNull + public String a() { + return this.c; + } + + /* JADX WARNING: Removed duplicated region for block: B:37:0x0051 */ + /* JADX WARNING: Removed duplicated region for block: B:43:? A[ORIG_RETURN, RETURN, SYNTHETIC] */ + @Override // b.i.c.m.d.k.a1 + @Nullable + public v.c.a b() { + byte[] bArr; + byte[] bArr2 = new byte[8192]; + try { + InputStream h = h(); + try { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + try { + GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(byteArrayOutputStream); + if (h == null) { + gZIPOutputStream.close(); + byteArrayOutputStream.close(); + if (h != null) { + h.close(); + } + bArr = null; + if (bArr != null) { + return null; + } + Objects.requireNonNull(bArr, "Null contents"); + String str = this.f1681b; + Objects.requireNonNull(str, "Null filename"); + if (1 != 0) { + return new e(str, bArr, null); + } + throw new IllegalStateException(a.v("Missing required properties:", "")); + } + while (true) { + try { + int read = h.read(bArr2); + if (read <= 0) { + break; + } + gZIPOutputStream.write(bArr2, 0, read); + } catch (Throwable unused) { + } + } + gZIPOutputStream.finish(); + bArr = byteArrayOutputStream.toByteArray(); + gZIPOutputStream.close(); + byteArrayOutputStream.close(); + h.close(); + if (bArr != null) { + } + } catch (Throwable unused2) { + } + throw th; + throw th; + throw th; + } catch (Throwable unused3) { + } + } catch (IOException unused4) { + } + } + + @Override // b.i.c.m.d.k.a1 + @Nullable + public InputStream h() { + if (this.a.exists() && this.a.isFile()) { + try { + return new FileInputStream(this.a); + } catch (FileNotFoundException unused) { + } + } + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/v.java b/app/src/main/java/b/i/c/m/d/k/v.java new file mode 100644 index 0000000000..a0e27d31ee --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/v.java @@ -0,0 +1,58 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.k.x; +import b.i.c.m.d.p.a; +import b.i.c.m.d.p.c; +import b.i.c.m.d.p.d; +/* compiled from: CrashlyticsController */ +public class v implements x.g { + public final /* synthetic */ String a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ String f1682b; + public final /* synthetic */ String c; + public final /* synthetic */ String d; + public final /* synthetic */ int e; + public final /* synthetic */ x f; + + public v(x xVar, String str, String str2, String str3, String str4, int i) { + this.f = xVar; + this.a = str; + this.f1682b = str2; + this.c = str3; + this.d = str4; + this.e = i; + } + + @Override // b.i.c.m.d.k.x.g + public void a(c cVar) throws Exception { + String str = this.a; + String str2 = this.f1682b; + String str3 = this.c; + String str4 = this.d; + int i = this.e; + String str5 = this.f.f1687y; + a aVar = d.a; + a a = a.a(str); + a a2 = a.a(str2); + a a3 = a.a(str3); + a a4 = a.a(str4); + a a5 = str5 != null ? a.a(str5) : null; + cVar.r(7, 2); + int b2 = c.b(2, a2); + int b3 = c.b(6, a4) + c.b(3, a3) + b2 + c.b(1, a) + 0; + if (a5 != null) { + b3 = c.b(9, a5) + c.b(8, d.f1725b) + b3; + } + cVar.o(c.c(10, i) + b3); + cVar.l(1, a); + cVar.l(2, a2); + cVar.l(3, a3); + cVar.l(6, a4); + if (a5 != null) { + cVar.l(8, d.f1725b); + cVar.l(9, a5); + } + cVar.m(10, i); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/v0.java b/app/src/main/java/b/i/c/m/d/k/v0.java new file mode 100644 index 0000000000..b9efcfaced --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/v0.java @@ -0,0 +1,118 @@ +package b.i.c.m.d.k; + +import android.content.Context; +import android.content.SharedPreferences; +import android.util.Log; +import androidx.annotation.NonNull; +import b.i.c.m.d.b; +import b.i.c.u.g; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import com.google.android.gms.tasks.Task; +import java.util.Locale; +import java.util.UUID; +import java.util.regex.Pattern; +/* compiled from: IdManager */ +public class v0 implements w0 { + public static final Pattern a = Pattern.compile("[^\\p{Alnum}]"); + + /* renamed from: b reason: collision with root package name */ + public static final String f1683b = Pattern.quote(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN); + public final x0 c; + public final Context d; + public final String e; + public final g f; + public String g; + + public v0(Context context, String str, g gVar) { + if (str != null) { + this.d = context; + this.e = str; + this.f = gVar; + this.c = new x0(); + return; + } + throw new IllegalArgumentException("appIdentifier must not be null"); + } + + public final synchronized String a(String str, SharedPreferences sharedPreferences) { + String lowerCase; + String uuid = UUID.randomUUID().toString(); + lowerCase = uuid == null ? null : a.matcher(uuid).replaceAll("").toLowerCase(Locale.US); + b bVar = b.a; + bVar.b("Created new Crashlytics IID: " + lowerCase); + sharedPreferences.edit().putString("crashlytics.installation.id", lowerCase).putString("firebase.installation.id", str).apply(); + return lowerCase; + } + + @NonNull + public synchronized String b() { + String str; + String str2 = this.g; + if (str2 != null) { + return str2; + } + SharedPreferences o = h.o(this.d); + Task id2 = this.f.getId(); + String string = o.getString("firebase.installation.id", null); + try { + str = (String) h1.a(id2); + } catch (Exception e) { + if (b.a.a(3)) { + Log.d("FirebaseCrashlytics", "Failed to retrieve installation id", e); + } + str = string != 0 ? string : null; + } + if (string == null) { + SharedPreferences sharedPreferences = this.d.getSharedPreferences("com.crashlytics.prefs", 0); + String string2 = sharedPreferences.getString("crashlytics.installation.id", null); + b bVar = b.a; + bVar.b("No cached FID; legacy id is " + string2); + if (string2 == null) { + this.g = a(str, o); + } else { + this.g = string2; + d(string2, str, o, sharedPreferences); + } + return this.g; + } + if (string.equals(str)) { + this.g = o.getString("crashlytics.installation.id", null); + b bVar2 = b.a; + bVar2.b("Found matching FID, using Crashlytics IID: " + this.g); + if (this.g == null) { + this.g = a(str, o); + } + } else { + this.g = a(str, o); + } + return this.g; + } + + public String c() { + String str; + x0 x0Var = this.c; + Context context = this.d; + synchronized (x0Var) { + if (x0Var.a == null) { + String installerPackageName = context.getPackageManager().getInstallerPackageName(context.getPackageName()); + if (installerPackageName == null) { + installerPackageName = ""; + } + x0Var.a = installerPackageName; + } + str = "".equals(x0Var.a) ? null : x0Var.a; + } + return str; + } + + public final synchronized void d(String str, String str2, SharedPreferences sharedPreferences, SharedPreferences sharedPreferences2) { + b bVar = b.a; + bVar.b("Migrating legacy Crashlytics IID: " + str); + sharedPreferences.edit().putString("crashlytics.installation.id", str).putString("firebase.installation.id", str2).apply(); + sharedPreferences2.edit().remove("crashlytics.installation.id").remove("crashlytics.advertising.id").apply(); + } + + public final String e(String str) { + return str.replaceAll(f1683b, ""); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/w.java b/app/src/main/java/b/i/c/m/d/k/w.java new file mode 100644 index 0000000000..2ce2b3b307 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/w.java @@ -0,0 +1,32 @@ +package b.i.c.m.d.k; + +import android.os.Build; +import b.i.c.m.d.k.x; +import b.i.c.m.d.p.a; +import b.i.c.m.d.p.c; +import b.i.c.m.d.p.d; +/* compiled from: CrashlyticsController */ +public class w implements x.g { + public final /* synthetic */ boolean a; + + public w(x xVar, String str, String str2, boolean z2) { + this.a = z2; + } + + @Override // b.i.c.m.d.k.x.g + public void a(c cVar) throws Exception { + String str = Build.VERSION.RELEASE; + String str2 = Build.VERSION.CODENAME; + boolean z2 = this.a; + a aVar = d.a; + a a = a.a(str); + a a2 = a.a(str2); + cVar.r(8, 2); + int b2 = c.b(2, a) + c.c(1, 3) + 0; + cVar.o(c.a(4, z2) + c.b(3, a2) + b2); + cVar.m(1, 3); + cVar.l(2, a); + cVar.l(3, a2); + cVar.k(4, z2); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/w0.java b/app/src/main/java/b/i/c/m/d/k/w0.java new file mode 100644 index 0000000000..ec0d1f2abe --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/w0.java @@ -0,0 +1,4 @@ +package b.i.c.m.d.k; +/* compiled from: InstallIdProvider */ +public interface w0 { +} diff --git a/app/src/main/java/b/i/c/m/d/k/x.java b/app/src/main/java/b/i/c/m/d/k/x.java new file mode 100644 index 0000000000..f920740639 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/x.java @@ -0,0 +1,1565 @@ +package b.i.c.m.d.k; + +import android.app.ActivityManager; +import android.content.Context; +import android.os.Build; +import android.os.Environment; +import android.os.StatFs; +import android.text.TextUtils; +import android.util.JsonReader; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.appcompat.widget.ActivityChooserModel; +import b.i.a.f.n.b0; +import b.i.c.m.d.k.h; +import b.i.c.m.d.l.b; +import b.i.c.m.d.m.b; +import b.i.c.m.d.m.f; +import b.i.c.m.d.m.i; +import b.i.c.m.d.m.t; +import b.i.c.m.d.m.v; +import b.i.c.m.d.m.w; +import b.i.c.m.d.p.b; +import b.i.c.m.d.q.b; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.FilenameFilter; +import java.io.IOException; +import java.io.InputStream; +import java.io.StringReader; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.Date; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.TreeMap; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +/* compiled from: CrashlyticsController */ +public class x { + public static final FilenameFilter a = new a("BeginSession"); + + /* renamed from: b reason: collision with root package name */ + public static final FilenameFilter f1684b = new b(); + public static final Comparator c = new c(); + public static final Comparator d = new d(); + public static final Pattern e = Pattern.compile("([\\d|A-Z|a-z]{12}\\-[\\d|A-Z|a-z]{4}\\-[\\d|A-Z|a-z]{4}\\-[\\d|A-Z|a-z]{12}).+"); + public static final Map f = Collections.singletonMap("X-CRASHLYTICS-SEND-FLAGS", "1"); + public static final String[] g = {"SessionUser", "SessionApp", "SessionOS", "SessionDevice"}; + public final d1 A; + public p0 B; + public TaskCompletionSource C = new TaskCompletionSource<>(); + public TaskCompletionSource D = new TaskCompletionSource<>(); + public TaskCompletionSource E = new TaskCompletionSource<>(); + public AtomicBoolean F = new AtomicBoolean(false); + public final AtomicInteger h = new AtomicInteger(0); + public final Context i; + public final q0 j; + public final m0 k; + public final f1 l; + public final i m; + public final b.i.c.m.d.n.b n; + public final v0 o; + public final b.i.c.m.d.o.h p; + public final b q; + public final b.AbstractC0143b r; + + /* renamed from: s reason: collision with root package name */ + public final j f1685s; + public final b.i.c.m.d.l.b t; + public final b.i.c.m.d.q.a u; + public final b.a v; + public final b.i.c.m.d.a w; + + /* renamed from: x reason: collision with root package name */ + public final b.i.c.m.d.t.d f1686x; + + /* renamed from: y reason: collision with root package name */ + public final String f1687y; + + /* renamed from: z reason: collision with root package name */ + public final b.i.c.m.d.i.a f1688z; + + /* compiled from: CrashlyticsController */ + public class a extends h { + public a(String str) { + super(str); + } + + @Override // b.i.c.m.d.k.x.h, java.io.FilenameFilter + public boolean accept(File file, String str) { + return super.accept(file, str) && str.endsWith(".cls"); + } + } + + /* compiled from: CrashlyticsController */ + public class b implements FilenameFilter { + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + return str.length() == 39 && str.endsWith(".cls"); + } + } + + /* compiled from: CrashlyticsController */ + public class c implements Comparator { + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(File file, File file2) { + return file2.getName().compareTo(file.getName()); + } + } + + /* compiled from: CrashlyticsController */ + public class d implements Comparator { + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(File file, File file2) { + return file.getName().compareTo(file2.getName()); + } + } + + /* compiled from: CrashlyticsController */ + public class e implements b.i.a.f.n.f { + public final /* synthetic */ Task a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ float f1689b; + + public e(Task task, float f) { + this.a = task; + this.f1689b = f; + } + + /* Return type fixed from 'com.google.android.gms.tasks.Task' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.f + @NonNull + public Task a(@Nullable Boolean bool) throws Exception { + return x.this.m.c(new g0(this, bool)); + } + } + + /* compiled from: CrashlyticsController */ + public static class f implements FilenameFilter { + public f(a aVar) { + } + + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + return !((b) x.f1684b).accept(file, str) && x.e.matcher(str).matches(); + } + } + + /* compiled from: CrashlyticsController */ + public interface g { + void a(b.i.c.m.d.p.c cVar) throws Exception; + } + + /* compiled from: CrashlyticsController */ + public static class h implements FilenameFilter { + public final String a; + + public h(String str) { + this.a = str; + } + + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + return str.contains(this.a) && !str.endsWith(".cls_temp"); + } + } + + /* compiled from: CrashlyticsController */ + public static class i implements FilenameFilter { + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + return ((b.a) b.i.c.m.d.p.b.j).accept(file, str) || str.contains("SessionMissingBinaryImages"); + } + } + + /* compiled from: CrashlyticsController */ + public static final class j implements b.AbstractC0131b { + public final b.i.c.m.d.o.h a; + + public j(b.i.c.m.d.o.h hVar) { + this.a = hVar; + } + + public File a() { + File file = new File(this.a.a(), "log-files"); + if (!file.exists()) { + file.mkdirs(); + } + return file; + } + } + + /* compiled from: CrashlyticsController */ + public final class k implements b.c { + public k(a aVar) { + } + } + + /* compiled from: CrashlyticsController */ + public final class l implements b.a { + public l(a aVar) { + } + } + + /* compiled from: CrashlyticsController */ + public static final class m implements Runnable { + public final Context j; + public final b.i.c.m.d.q.c.c k; + public final b.i.c.m.d.q.b l; + public final boolean m; + + public m(Context context, b.i.c.m.d.q.c.c cVar, b.i.c.m.d.q.b bVar, boolean z2) { + this.j = context; + this.k = cVar; + this.l = bVar; + this.m = z2; + } + + @Override // java.lang.Runnable + public void run() { + if (h.b(this.j)) { + b.i.c.m.d.b.a.b("Attempting to send crash report at time of crash..."); + this.l.a(this.k, this.m); + } + } + } + + /* compiled from: CrashlyticsController */ + public static class n implements FilenameFilter { + public final String a; + + public n(String str) { + this.a = str; + } + + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + StringBuilder sb = new StringBuilder(); + sb.append(this.a); + sb.append(".cls"); + return !str.equals(sb.toString()) && str.contains(this.a) && !str.endsWith(".cls_temp"); + } + } + + public x(Context context, i iVar, b.i.c.m.d.n.b bVar, v0 v0Var, q0 q0Var, b.i.c.m.d.o.h hVar, m0 m0Var, b bVar2, b.i.c.m.d.q.a aVar, b.AbstractC0143b bVar3, b.i.c.m.d.a aVar2, b.i.c.m.d.i.a aVar3, b.i.c.m.d.s.d dVar) { + this.i = context; + this.m = iVar; + this.n = bVar; + this.o = v0Var; + this.j = q0Var; + this.p = hVar; + this.k = m0Var; + this.q = bVar2; + this.r = new h0(this); + this.w = aVar2; + this.f1687y = bVar2.g.a(); + this.f1688z = aVar3; + f1 f1Var = new f1(); + this.l = f1Var; + j jVar = new j(hVar); + this.f1685s = jVar; + b.i.c.m.d.l.b bVar4 = new b.i.c.m.d.l.b(context, jVar); + this.t = bVar4; + this.u = new b.i.c.m.d.q.a(new k(null)); + this.v = new l(null); + b.i.c.m.d.t.a aVar4 = new b.i.c.m.d.t.a(1024, new b.i.c.m.d.t.c(10)); + this.f1686x = aVar4; + File file = new File(new File(hVar.a.getFilesDir(), ".com.google.firebase.crashlytics").getPath()); + n0 n0Var = new n0(context, v0Var, bVar2, aVar4); + b.i.c.m.d.o.g gVar = new b.i.c.m.d.o.g(file, dVar); + b.i.c.m.d.m.x.h hVar2 = b.i.c.m.d.r.c.a; + b.i.a.b.j.n.b(context); + b.i.a.b.g c2 = b.i.a.b.j.n.a().c(new b.i.a.b.i.a(b.i.c.m.d.r.c.f1731b, b.i.c.m.d.r.c.c)); + b.i.a.b.b bVar5 = new b.i.a.b.b("json"); + b.i.a.b.e eVar = b.i.c.m.d.r.c.d; + this.A = new d1(n0Var, gVar, new b.i.c.m.d.r.c(((b.i.a.b.j.j) c2).a("FIREBASE_CRASHLYTICS_REPORT", v.class, bVar5, eVar), eVar), bVar4, f1Var); + } + + public static void A(b.i.c.m.d.p.c cVar, File file) throws IOException { + Throwable th; + if (!file.exists()) { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder R = b.d.b.a.a.R("Tried to include a file that doesn't exist: "); + R.append(file.getName()); + bVar.d(R.toString()); + return; + } + FileInputStream fileInputStream = null; + try { + FileInputStream fileInputStream2 = new FileInputStream(file); + try { + e(fileInputStream2, cVar, (int) file.length()); + h.c(fileInputStream2, "Failed to close file input stream."); + } catch (Throwable th2) { + th = th2; + fileInputStream = fileInputStream2; + h.c(fileInputStream, "Failed to close file input stream."); + throw th; + } + } catch (Throwable th3) { + th = th3; + h.c(fileInputStream, "Failed to close file input stream."); + throw th; + } + } + + public static void a(x xVar) throws Exception { + String str; + String str2; + Integer num; + Objects.requireNonNull(xVar); + long j2 = j(); + new g(xVar.o); + String str3 = g.f1669b; + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + b.d.b.a.a.m0("Opening a new session with ID ", str3, bVar); + xVar.w.h(str3); + Locale locale = Locale.US; + String format = String.format(locale, "Crashlytics Android SDK/%s", "17.3.0"); + xVar.z(str3, "BeginSession", new u(xVar, str3, format, j2)); + xVar.w.d(str3, format, j2); + v0 v0Var = xVar.o; + String str4 = v0Var.e; + b bVar2 = xVar.q; + String str5 = bVar2.e; + String str6 = bVar2.f; + String b2 = v0Var.b(); + int g2 = r0.f(xVar.q.c).g(); + xVar.z(str3, "SessionApp", new v(xVar, str4, str5, str6, b2, g2)); + xVar.w.f(str3, str4, str5, str6, b2, g2, xVar.f1687y); + String str7 = Build.VERSION.RELEASE; + String str8 = Build.VERSION.CODENAME; + boolean t = h.t(xVar.i); + xVar.z(str3, "SessionOS", new w(xVar, str7, str8, t)); + xVar.w.g(str3, str7, str8, t); + Context context = xVar.i; + StatFs statFs = new StatFs(Environment.getDataDirectory().getPath()); + h.b bVar3 = h.b.UNKNOWN; + String str9 = Build.CPU_ABI; + if (TextUtils.isEmpty(str9)) { + bVar.b("Architecture#getValue()::Build.CPU_ABI returned null or empty"); + } else { + h.b bVar4 = h.b.t.get(str9.toLowerCase(locale)); + if (bVar4 != null) { + bVar3 = bVar4; + } + } + int ordinal = bVar3.ordinal(); + String str10 = Build.MODEL; + int availableProcessors = Runtime.getRuntime().availableProcessors(); + long p = h.p(); + long blockCount = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize()); + boolean r = h.r(context); + int k2 = h.k(context); + String str11 = Build.MANUFACTURER; + String str12 = Build.PRODUCT; + xVar.z(str3, "SessionDevice", new y(xVar, ordinal, str10, availableProcessors, p, blockCount, r, k2, str11, str12)); + xVar.w.c(str3, ordinal, str10, availableProcessors, p, blockCount, r, k2, str11, str12); + xVar.t.a(str3); + d1 d1Var = xVar.A; + String t2 = t(str3); + n0 n0Var = d1Var.a; + Objects.requireNonNull(n0Var); + Charset charset = v.a; + b.C0134b bVar5 = new b.C0134b(); + bVar5.a = "17.3.0"; + String str13 = n0Var.e.a; + Objects.requireNonNull(str13, "Null gmpAppId"); + bVar5.f1699b = str13; + String b3 = n0Var.d.b(); + Objects.requireNonNull(b3, "Null installationUuid"); + bVar5.d = b3; + String str14 = n0Var.e.e; + Objects.requireNonNull(str14, "Null buildVersion"); + bVar5.e = str14; + String str15 = n0Var.e.f; + Objects.requireNonNull(str15, "Null displayVersion"); + bVar5.f = str15; + bVar5.c = 4; + f.b bVar6 = new f.b(); + bVar6.b(false); + bVar6.c = Long.valueOf(j2); + Objects.requireNonNull(t2, "Null identifier"); + bVar6.f1704b = t2; + String str16 = n0.a; + Objects.requireNonNull(str16, "Null generator"); + bVar6.a = str16; + String str17 = n0Var.d.e; + Objects.requireNonNull(str17, "Null identifier"); + String str18 = n0Var.e.e; + Objects.requireNonNull(str18, "Null version"); + String str19 = n0Var.e.f; + String b4 = n0Var.d.b(); + String a2 = n0Var.e.g.a(); + if (a2 != null) { + str = a2; + str2 = "Unity"; + } else { + str2 = null; + str = null; + } + bVar6.f = new b.i.c.m.d.m.g(str17, str18, str19, null, b4, str2, str, null); + Integer num2 = 3; + Objects.requireNonNull(str7, "Null version"); + Objects.requireNonNull(str8, "Null buildVersion"); + Boolean valueOf = Boolean.valueOf(h.t(n0Var.c)); + String str20 = num2 == null ? " platform" : ""; + if (valueOf == null) { + str20 = b.d.b.a.a.v(str20, " jailbroken"); + } + if (str20.isEmpty()) { + bVar6.h = new t(num2.intValue(), str7, str8, valueOf.booleanValue(), null); + StatFs statFs2 = new StatFs(Environment.getDataDirectory().getPath()); + int i2 = 7; + if (!TextUtils.isEmpty(str9) && (num = n0.f1676b.get(str9.toLowerCase(locale))) != null) { + i2 = num.intValue(); + } + int availableProcessors2 = Runtime.getRuntime().availableProcessors(); + long p2 = h.p(); + long blockCount2 = ((long) statFs2.getBlockCount()) * ((long) statFs2.getBlockSize()); + boolean r2 = h.r(n0Var.c); + int k3 = h.k(n0Var.c); + i.b bVar7 = new i.b(); + bVar7.a = Integer.valueOf(i2); + Objects.requireNonNull(str10, "Null model"); + bVar7.f1707b = str10; + bVar7.c = Integer.valueOf(availableProcessors2); + bVar7.d = Long.valueOf(p2); + bVar7.e = Long.valueOf(blockCount2); + bVar7.f = Boolean.valueOf(r2); + bVar7.g = Integer.valueOf(k3); + Objects.requireNonNull(str11, "Null manufacturer"); + bVar7.h = str11; + Objects.requireNonNull(str12, "Null modelClass"); + bVar7.i = str12; + bVar6.i = bVar7.a(); + bVar6.k = 3; + bVar5.g = bVar6.a(); + v a3 = bVar5.a(); + b.i.c.m.d.o.g gVar = d1Var.f1665b; + Objects.requireNonNull(gVar); + v.d h2 = a3.h(); + if (h2 == null) { + bVar.b("Could not get session for report"); + return; + } + String g3 = h2.g(); + try { + File h3 = gVar.h(g3); + b.i.c.m.d.o.g.i(h3); + b.i.c.m.d.o.g.l(new File(h3, "report"), b.i.c.m.d.o.g.c.g(a3)); + } catch (IOException e2) { + b.i.c.m.d.b.a.c("Could not persist report for session " + g3, e2); + } + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str20)); + } + } + + public static Task b(x xVar) { + boolean z2; + Task task; + Objects.requireNonNull(xVar); + ArrayList arrayList = new ArrayList(); + File[] r = r(xVar.l(), m.a); + for (File file : r) { + try { + long parseLong = Long.parseLong(file.getName().substring(3)); + try { + Class.forName("com.google.firebase.crash.FirebaseCrash"); + z2 = true; + } catch (ClassNotFoundException unused) { + z2 = false; + } + if (z2) { + b.i.c.m.d.b.a.b("Skipping logging Crashlytics event to Firebase, FirebaseCrash exists"); + task = b.i.a.f.e.o.f.Y(null); + } else { + task = b.i.a.f.e.o.f.n(new ScheduledThreadPoolExecutor(1), new a0(xVar, parseLong)); + } + arrayList.add(task); + } catch (NumberFormatException unused2) { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder R = b.d.b.a.a.R("Could not parse timestamp from file "); + R.append(file.getName()); + bVar.b(R.toString()); + } + file.delete(); + } + return b.i.a.f.e.o.f.s1(arrayList); + } + + public static void c(@Nullable String str, @NonNull File file) throws Exception { + Throwable th; + FileOutputStream fileOutputStream; + if (str != null) { + b.i.c.m.d.p.c cVar = null; + try { + fileOutputStream = new FileOutputStream(file, true); + try { + cVar = b.i.c.m.d.p.c.i(fileOutputStream); + b.i.c.m.d.p.a aVar = b.i.c.m.d.p.d.a; + b.i.c.m.d.p.a a2 = b.i.c.m.d.p.a.a(str); + cVar.r(7, 2); + int b2 = b.i.c.m.d.p.c.b(2, a2); + cVar.o(b.i.c.m.d.p.c.d(b2) + b.i.c.m.d.p.c.e(5) + b2); + cVar.r(5, 2); + cVar.o(b2); + cVar.l(2, a2); + StringBuilder R = b.d.b.a.a.R("Failed to flush to append to "); + R.append(file.getPath()); + h.h(cVar, R.toString()); + h.c(fileOutputStream, "Failed to close " + file.getPath()); + } catch (Throwable th2) { + th = th2; + StringBuilder R2 = b.d.b.a.a.R("Failed to flush to append to "); + R2.append(file.getPath()); + h.h(cVar, R2.toString()); + h.c(fileOutputStream, "Failed to close " + file.getPath()); + throw th; + } + } catch (Throwable th3) { + th = th3; + fileOutputStream = null; + StringBuilder R2 = b.d.b.a.a.R("Failed to flush to append to "); + R2.append(file.getPath()); + h.h(cVar, R2.toString()); + h.c(fileOutputStream, "Failed to close " + file.getPath()); + throw th; + } + } + } + + public static void e(InputStream inputStream, b.i.c.m.d.p.c cVar, int i2) throws IOException { + byte[] bArr = new byte[i2]; + int i3 = 0; + while (i3 < i2) { + int read = inputStream.read(bArr, i3, i2 - i3); + if (read < 0) { + break; + } + i3 += read; + } + Objects.requireNonNull(cVar); + int i4 = cVar.k; + int i5 = cVar.l; + int i6 = i4 - i5; + if (i6 >= i2) { + System.arraycopy(bArr, 0, cVar.j, i5, i2); + cVar.l += i2; + return; + } + System.arraycopy(bArr, 0, cVar.j, i5, i6); + int i7 = i6 + 0; + int i8 = i2 - i6; + cVar.l = cVar.k; + cVar.j(); + if (i8 <= cVar.k) { + System.arraycopy(bArr, i7, cVar.j, 0, i8); + cVar.l = i8; + return; + } + cVar.m.write(bArr, i7, i8); + } + + public static long j() { + return new Date().getTime() / 1000; + } + + public static String o(File file) { + return file.getName().substring(0, 35); + } + + public static File[] r(File file, FilenameFilter filenameFilter) { + File[] listFiles = file.listFiles(filenameFilter); + return listFiles == null ? new File[0] : listFiles; + } + + @NonNull + public static String t(@NonNull String str) { + return str.replaceAll("-", ""); + } + + public static void x(b.i.c.m.d.p.c cVar, File[] fileArr, String str) { + Arrays.sort(fileArr, h.c); + for (File file : fileArr) { + try { + b.i.c.m.d.b.a.b(String.format(Locale.US, "Found Non Fatal for session ID %s in %s ", str, file.getName())); + A(cVar, file); + } catch (Exception e2) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Error writting non-fatal to session.", e2); + } + } + } + } + + public final void d(b.i.c.m.d.p.b bVar) { + if (bVar != null) { + try { + bVar.a(); + } catch (IOException e2) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Error closing session file stream in the presence of an exception", e2); + } + } + } + } + + /* JADX DEBUG: Multi-variable search result rejected for r20v0, resolved type: boolean */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX WARNING: Removed duplicated region for block: B:152:0x04a2 A[LOOP:6: B:151:0x04a0->B:152:0x04a2, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:158:0x04bf */ + /* JADX WARNING: Removed duplicated region for block: B:159:0x04cb */ + /* JADX WARNING: Removed duplicated region for block: B:162:0x04ed */ + /* JADX WARNING: Removed duplicated region for block: B:170:0x0518 */ + /* JADX WARNING: Removed duplicated region for block: B:218:0x0628 */ + /* JADX WARNING: Removed duplicated region for block: B:219:0x062b */ + /* JADX WARNING: Removed duplicated region for block: B:223:0x0646 A[Catch:{ IOException -> 0x0685 }] */ + /* JADX WARNING: Removed duplicated region for block: B:234:0x06c0 */ + /* JADX WARNING: Removed duplicated region for block: B:262:0x067d A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:275:? A[ORIG_RETURN, RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:47:0x011f A[Catch:{ all -> 0x0110 }] */ + /* JADX WARNING: Removed duplicated region for block: B:51:0x0142 */ + /* JADX WARNING: Removed duplicated region for block: B:95:0x030e */ + public final void f(int i2, boolean z2) throws Exception { + f1 f1Var; + int i3; + List f2; + int size; + String str; + boolean z3; + String str2; + File file; + v j2; + String str3; + b.i.c.m.d.p.b bVar; + b.i.c.m.d.p.c cVar; + Throwable th; + Exception e2; + InputStream inputStream; + Throwable th2; + Throwable th3; + Exception e3; + int i4 = i2; + HashSet hashSet = new HashSet(); + File[] s2 = s(); + int min = Math.min((z2 ? 1 : 0) + 8, s2.length); + for (int i5 = 0; i5 < min; i5++) { + hashSet.add(o(s2[i5])); + } + File[] listFiles = ((j) this.t.c).a().listFiles(); + if (listFiles != null) { + for (File file2 : listFiles) { + String name = file2.getName(); + int lastIndexOf = name.lastIndexOf(".temp"); + if (lastIndexOf != -1) { + name = name.substring(20, lastIndexOf); + } + if (!hashSet.contains(name)) { + file2.delete(); + } + } + } + FileInputStream fileInputStream = null; + File[] r = r(l(), new f(null)); + for (File file3 : r) { + String name2 = file3.getName(); + Matcher matcher = e.matcher(name2); + if (!matcher.matches()) { + b.i.c.m.d.b.a.b("Deleting unknown file: " + name2); + file3.delete(); + } else if (!hashSet.contains(matcher.group(1))) { + b.i.c.m.d.b.a.b("Trimming session file: " + name2); + file3.delete(); + } + } + File[] s3 = s(); + if (s3.length <= z2) { + b.i.c.m.d.b.a.b("No open sessions to be closed."); + return; + } + String o = o(s3[z2 ? 1 : 0]); + if (p()) { + f1Var = this.l; + } else { + File b2 = new z0(l()).b(o); + if (!b2.exists()) { + f1Var = new f1(); + } else { + try { + FileInputStream fileInputStream2 = new FileInputStream(b2); + try { + f1Var = z0.c(h.w(fileInputStream2)); + h.c(fileInputStream2, "Failed to close user metadata file."); + } catch (Exception e4) { + e3 = e4; + fileInputStream = fileInputStream2; + try { + if (b.i.c.m.d.b.a.a(6)) { + } + h.c(fileInputStream, "Failed to close user metadata file."); + f1Var = new f1(); + z(o, "SessionUser", new z(this, f1Var)); + String str4 = "report"; + String str5 = "user"; + if (this.w.e(o)) { + } + b.i.c.m.d.b.a.b("Closing open sessions."); + i3 = z2 ? 1 : 0; + while (i3 < s3.length) { + } + String str6 = str4; + if (z2 != 0) { + } + d1 d1Var = this.A; + long j3 = j(); + b.i.c.m.d.o.g gVar = d1Var.f1665b; + f2 = b.i.c.m.d.o.g.f(gVar.g, new b.i.c.m.d.o.b(r0)); + Collections.sort(f2, b.i.c.m.d.o.g.d); + if (f2.size() > 8) { + } + while (r6.hasNext()) { + } + Objects.requireNonNull(((b.i.c.m.d.s.c) gVar.k).c().b()); + ArrayList arrayList = (ArrayList) gVar.e(); + size = arrayList.size(); + if (size > 4) { + } + } catch (Throwable th4) { + th3 = th4; + fileInputStream2 = fileInputStream; + h.c(fileInputStream2, "Failed to close user metadata file."); + throw th3; + } + } catch (Throwable th5) { + th3 = th5; + h.c(fileInputStream2, "Failed to close user metadata file."); + throw th3; + } + } catch (Exception e5) { + e3 = e5; + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Error deserializing user metadata.", e3); + } + h.c(fileInputStream, "Failed to close user metadata file."); + f1Var = new f1(); + z(o, "SessionUser", new z(this, f1Var)); + String str4 = "report"; + String str5 = "user"; + if (this.w.e(o)) { + } + b.i.c.m.d.b.a.b("Closing open sessions."); + i3 = z2 ? 1 : 0; + while (i3 < s3.length) { + } + String str6 = str4; + if (z2 != 0) { + } + d1 d1Var = this.A; + long j3 = j(); + b.i.c.m.d.o.g gVar = d1Var.f1665b; + f2 = b.i.c.m.d.o.g.f(gVar.g, new b.i.c.m.d.o.b(r0)); + Collections.sort(f2, b.i.c.m.d.o.g.d); + if (f2.size() > 8) { + } + while (r6.hasNext()) { + } + Objects.requireNonNull(((b.i.c.m.d.s.c) gVar.k).c().b()); + ArrayList arrayList = (ArrayList) gVar.e(); + size = arrayList.size(); + if (size > 4) { + } + } + } + } + z(o, "SessionUser", new z(this, f1Var)); + String str4 = "report"; + String str5 = "user"; + if (this.w.e(o)) { + b.i.c.m.d.b bVar2 = b.i.c.m.d.b.a; + b.d.b.a.a.m0("Finalizing native report for session ", o, bVar2); + b.i.c.m.d.d b3 = this.w.b(o); + File d2 = b3.d(); + if (d2 == null || !d2.exists()) { + bVar2.g("No minidump data found for session " + o); + } else { + long lastModified = d2.lastModified(); + b.i.c.m.d.l.b bVar3 = new b.i.c.m.d.l.b(this.i, this.f1685s, o); + File file4 = new File(m(), o); + if (!file4.mkdirs()) { + bVar2.b("Couldn't create native sessions directory"); + } else { + g(lastModified); + File l2 = l(); + byte[] c2 = bVar3.d.c(); + z0 z0Var = new z0(l2); + File b4 = z0Var.b(o); + File a2 = z0Var.a(o); + ArrayList arrayList2 = new ArrayList(); + arrayList2.add(new f("logs_file", "logs", c2)); + arrayList2.add(new u0("crash_meta_file", "metadata", b3.f())); + arrayList2.add(new u0("session_meta_file", "session", b3.e())); + arrayList2.add(new u0("app_meta_file", "app", b3.a())); + arrayList2.add(new u0("device_meta_file", "device", b3.c())); + arrayList2.add(new u0("os_meta_file", "os", b3.b())); + arrayList2.add(new u0("minidump_file", "minidump", b3.d())); + arrayList2.add(new u0("user_meta_file", str5, b4)); + arrayList2.add(new u0("keys_file", "keys", a2)); + Iterator it = arrayList2.iterator(); + while (it.hasNext()) { + a1 a1Var = (a1) it.next(); + try { + inputStream = a1Var.h(); + if (inputStream != null) { + try { + b.i.a.f.e.o.f.r0(inputStream, new File(file4, a1Var.a())); + } catch (IOException unused) { + } catch (Throwable th6) { + th2 = th6; + h.d(inputStream); + throw th2; + } + } + } catch (IOException unused2) { + inputStream = null; + } catch (Throwable th7) { + th2 = th7; + inputStream = null; + h.d(inputStream); + throw th2; + } + h.d(inputStream); + } + d1 d1Var2 = this.A; + String replaceAll = o.replaceAll("-", ""); + Objects.requireNonNull(d1Var2); + ArrayList arrayList3 = new ArrayList(); + Iterator it2 = arrayList2.iterator(); + while (it2.hasNext()) { + v.c.a b5 = ((a1) it2.next()).b(); + if (b5 != null) { + arrayList3.add(b5); + } + } + b.i.c.m.d.o.g gVar2 = d1Var2.f1665b; + b.i.c.m.d.m.d dVar = new b.i.c.m.d.m.d(new w(arrayList3), null, null); + Objects.requireNonNull(gVar2); + File file5 = new File(gVar2.h(replaceAll), str4); + File file6 = gVar2.j; + try { + b.i.c.m.d.m.x.h hVar = b.i.c.m.d.o.g.c; + b.C0134b bVar4 = (b.C0134b) hVar.f(b.i.c.m.d.o.g.j(file5)).i(); + bVar4.g = null; + bVar4.h = dVar; + v a3 = bVar4.a(); + b.i.c.m.d.o.g.i(file6); + b.i.c.m.d.o.g.l(new File(file6, replaceAll), hVar.g(a3)); + } catch (IOException e6) { + b.i.c.m.d.b.a.c("Could not synthesize final native report file for " + file5, e6); + } + bVar3.d.d(); + } + } + if (!this.w.a(o)) { + b.d.b.a.a.m0("Could not finalize native session: ", o, b.i.c.m.d.b.a); + } + } + b.i.c.m.d.b.a.b("Closing open sessions."); + i3 = z2 ? 1 : 0; + while (i3 < s3.length) { + File file7 = s3[i3]; + String o2 = o(file7); + b.i.c.m.d.b bVar5 = b.i.c.m.d.b.a; + bVar5.b("Closing session: " + o2); + bVar5.b("Collecting session parts for ID " + o2); + File[] r2 = r(l(), new h(b.d.b.a.a.v(o2, "SessionCrash"))); + boolean z4 = r2.length > 0; + Locale locale = Locale.US; + bVar5.b(String.format(locale, "Session %s has fatal exception: %s", o2, Boolean.valueOf(z4))); + File[] r3 = r(l(), new h(b.d.b.a.a.v(o2, "SessionEvent"))); + boolean z5 = r3.length > 0; + bVar5.b(String.format(locale, "Session %s has non-fatal exceptions: %s", o2, Boolean.valueOf(z5))); + if (z4 || z5) { + if (r3.length > i4) { + bVar5.b(String.format(locale, "Trimming down to %d logged exceptions.", Integer.valueOf(i2))); + v(o2, i4); + r3 = r(l(), new h(b.d.b.a.a.v(o2, "SessionEvent"))); + } + File file8 = z4 ? r2[0] : null; + boolean z6 = file8 != null; + File k2 = z6 ? k() : n(); + if (!k2.exists()) { + k2.mkdirs(); + } + try { + bVar = new b.i.c.m.d.p.b(k2, o2); + try { + cVar = b.i.c.m.d.p.c.i(bVar); + try { + bVar5.b("Collecting SessionStart data for session ID " + o2); + A(cVar, file7); + str3 = str5; + try { + cVar.t(4, j()); + cVar.k(5, z6); + cVar.s(11, 1); + cVar.m(12, 3); + w(cVar, o2); + x(cVar, r3, o2); + if (z6) { + A(cVar, file8); + } + h.h(cVar, "Error flushing session file stream"); + h.c(bVar, "Failed to close CLS file"); + } catch (Exception e7) { + e2 = e7; + try { + b.i.c.m.d.b.a.e("Failed to write session file for session ID: " + o2, e2); + h.h(cVar, "Error flushing session file stream"); + d(bVar); + b.i.c.m.d.b.a.b("Removing session part files for ID " + o2); + File[] r4 = r(l(), new n(o2)); + while (r6 < r5) { + } + i3++; + str5 = str3; + str4 = str4; + i4 = i2; + } catch (Throwable th8) { + th = th8; + h.h(cVar, "Error flushing session file stream"); + h.c(bVar, "Failed to close CLS file"); + throw th; + } + } + } catch (Exception e8) { + e2 = e8; + str3 = str5; + b.i.c.m.d.b.a.e("Failed to write session file for session ID: " + o2, e2); + h.h(cVar, "Error flushing session file stream"); + d(bVar); + b.i.c.m.d.b.a.b("Removing session part files for ID " + o2); + File[] r4 = r(l(), new n(o2)); + while (r6 < r5) { + } + i3++; + str5 = str3; + str4 = str4; + i4 = i2; + } + } catch (Exception e9) { + e2 = e9; + str3 = str5; + cVar = null; + b.i.c.m.d.b.a.e("Failed to write session file for session ID: " + o2, e2); + h.h(cVar, "Error flushing session file stream"); + d(bVar); + b.i.c.m.d.b.a.b("Removing session part files for ID " + o2); + File[] r4 = r(l(), new n(o2)); + while (r6 < r5) { + } + i3++; + str5 = str3; + str4 = str4; + i4 = i2; + } catch (Throwable th9) { + th = th9; + cVar = null; + h.h(cVar, "Error flushing session file stream"); + h.c(bVar, "Failed to close CLS file"); + throw th; + } + } catch (Exception e10) { + e2 = e10; + str3 = str5; + cVar = null; + bVar = null; + b.i.c.m.d.b.a.e("Failed to write session file for session ID: " + o2, e2); + h.h(cVar, "Error flushing session file stream"); + d(bVar); + b.i.c.m.d.b.a.b("Removing session part files for ID " + o2); + File[] r4 = r(l(), new n(o2)); + while (r6 < r5) { + } + i3++; + str5 = str3; + str4 = str4; + i4 = i2; + } catch (Throwable th10) { + th = th10; + cVar = null; + bVar = null; + h.h(cVar, "Error flushing session file stream"); + h.c(bVar, "Failed to close CLS file"); + throw th; + } + } else { + b.d.b.a.a.m0("No events present for session ID ", o2, bVar5); + str3 = str5; + } + b.i.c.m.d.b.a.b("Removing session part files for ID " + o2); + File[] r4 = r(l(), new n(o2)); + for (File file9 : r4) { + file9.delete(); + } + i3++; + str5 = str3; + str4 = str4; + i4 = i2; + } + String str6 = str4; + String t = z2 != 0 ? t(o(s3[0])) : null; + d1 d1Var = this.A; + long j3 = j(); + b.i.c.m.d.o.g gVar = d1Var.f1665b; + f2 = b.i.c.m.d.o.g.f(gVar.g, new b.i.c.m.d.o.b(t)); + Collections.sort(f2, b.i.c.m.d.o.g.d); + if (f2.size() > 8) { + for (File file10 : f2.subList(8, f2.size())) { + b.i.c.m.d.o.g.k(file10); + } + f2 = f2.subList(0, 8); + } + for (File file11 : f2) { + b.i.c.m.d.b bVar6 = b.i.c.m.d.b.a; + StringBuilder R = b.d.b.a.a.R("Finalizing report for session "); + R.append(file11.getName()); + bVar6.b(R.toString()); + List g2 = b.i.c.m.d.o.g.g(file11, b.i.c.m.d.o.g.e); + if (g2.isEmpty()) { + StringBuilder R2 = b.d.b.a.a.R("Session "); + R2.append(file11.getName()); + R2.append(" has no events."); + bVar6.b(R2.toString()); + } else { + Collections.sort(g2); + ArrayList arrayList4 = new ArrayList(); + Iterator it3 = g2.iterator(); + while (true) { + z3 = false; + while (true) { + if (!it3.hasNext()) { + break; + } + File next = it3.next(); + try { + b.i.c.m.d.m.x.h hVar2 = b.i.c.m.d.o.g.c; + String j4 = b.i.c.m.d.o.g.j(next); + Objects.requireNonNull(hVar2); + try { + JsonReader jsonReader = new JsonReader(new StringReader(j4)); + try { + v.d.AbstractC0136d b6 = b.i.c.m.d.m.x.h.b(jsonReader); + jsonReader.close(); + arrayList4.add(b6); + if (!z3) { + String name3 = next.getName(); + if (!(name3.startsWith("event") && name3.endsWith("_"))) { + } + } + z3 = true; + } catch (Throwable unused3) { + } + } catch (IllegalStateException e11) { + throw new IOException(e11); + } + } catch (IOException e12) { + b.i.c.m.d.b.a.c("Could not add event to report for " + next, e12); + } + } + b.i.c.m.d.o.g.k(file11); + str6 = str; + } + if (arrayList4.isEmpty()) { + b.i.c.m.d.b bVar7 = b.i.c.m.d.b.a; + StringBuilder R3 = b.d.b.a.a.R("Could not parse event files for session "); + R3.append(file11.getName()); + bVar7.b(R3.toString()); + } else { + File file12 = new File(file11, str5); + if (file12.isFile()) { + try { + str2 = b.i.c.m.d.o.g.j(file12); + } catch (IOException e13) { + b.i.c.m.d.b bVar8 = b.i.c.m.d.b.a; + StringBuilder R4 = b.d.b.a.a.R("Could not read user ID file in "); + R4.append(file11.getName()); + bVar8.c(R4.toString(), e13); + } + str = str6; + file = new File(file11, str); + File file13 = !z3 ? gVar.h : gVar.i; + b.i.c.m.d.m.x.h hVar3 = b.i.c.m.d.o.g.c; + j2 = hVar3.f(b.i.c.m.d.o.g.j(file)).j(j3, z3, str2); + w wVar = new w<>(arrayList4); + if (j2.h() == null) { + v.a i6 = j2.i(); + f.b bVar9 = (f.b) j2.h().l(); + bVar9.j = wVar; + b.C0134b bVar10 = (b.C0134b) i6; + bVar10.g = bVar9.a(); + v a4 = bVar10.a(); + v.d h2 = a4.h(); + if (h2 != null) { + b.i.c.m.d.o.g.i(file13); + b.i.c.m.d.o.g.l(new File(file13, h2.g()), hVar3.g(a4)); + } + b.i.c.m.d.o.g.k(file11); + str6 = str; + } else { + throw new IllegalStateException("Reports without sessions cannot have events added to them."); + } + } + str2 = null; + str = str6; + file = new File(file11, str); + if (!z3) { + } + try { + b.i.c.m.d.m.x.h hVar3 = b.i.c.m.d.o.g.c; + j2 = hVar3.f(b.i.c.m.d.o.g.j(file)).j(j3, z3, str2); + w wVar = new w<>(arrayList4); + if (j2.h() == null) { + } + } catch (IOException e14) { + b.i.c.m.d.b.a.c("Could not synthesize final report file for " + file, e14); + } + } + } + str = str6; + b.i.c.m.d.o.g.k(file11); + str6 = str; + } + Objects.requireNonNull(((b.i.c.m.d.s.c) gVar.k).c().b()); + ArrayList arrayList = (ArrayList) gVar.e(); + size = arrayList.size(); + if (size > 4) { + for (File file14 : arrayList.subList(4, size)) { + file14.delete(); + } + return; + } + return; + throw th; + } + + public final void g(long j2) { + try { + File l2 = l(); + new File(l2, ".ae" + j2).createNewFile(); + } catch (IOException unused) { + b.i.c.m.d.b.a.b("Could not write app exception marker."); + } + } + + public boolean h(int i2) { + this.m.a(); + if (p()) { + b.i.c.m.d.b.a.b("Skipping session finalization because a crash has already occurred."); + return false; + } + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + bVar.b("Finalizing previously open sessions."); + try { + f(i2, true); + bVar.b("Closed all previously open sessions"); + return true; + } catch (Exception e2) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Unable to finalize previously open sessions.", e2); + } + return false; + } + } + + @Nullable + public final String i() { + File[] s2 = s(); + if (s2.length > 0) { + return o(s2[0]); + } + return null; + } + + public File k() { + return new File(l(), "fatal-sessions"); + } + + public File l() { + return this.p.a(); + } + + public File m() { + return new File(l(), "native-sessions"); + } + + public File n() { + return new File(l(), "nonfatal-sessions"); + } + + public boolean p() { + p0 p0Var = this.B; + return p0Var != null && p0Var.d.get(); + } + + public File[] q() { + LinkedList linkedList = new LinkedList(); + File k2 = k(); + FilenameFilter filenameFilter = f1684b; + File[] listFiles = k2.listFiles(filenameFilter); + if (listFiles == null) { + listFiles = new File[0]; + } + Collections.addAll(linkedList, listFiles); + File[] listFiles2 = n().listFiles(filenameFilter); + if (listFiles2 == null) { + listFiles2 = new File[0]; + } + Collections.addAll(linkedList, listFiles2); + Collections.addAll(linkedList, r(l(), filenameFilter)); + return (File[]) linkedList.toArray(new File[linkedList.size()]); + } + + public final File[] s() { + File[] r = r(l(), a); + Arrays.sort(r, c); + return r; + } + + public Task u(float f2, Task task) { + Task task2; + b0 b0Var; + b.i.c.m.d.q.a aVar = this.u; + File[] q = x.this.q(); + File[] listFiles = x.this.m().listFiles(); + boolean z2 = false; + if (listFiles == null) { + listFiles = new File[0]; + } + if ((q != null && q.length > 0) || listFiles.length > 0) { + z2 = true; + } + if (!z2) { + b.i.c.m.d.b.a.b("No reports are available."); + this.C.b(Boolean.FALSE); + return b.i.a.f.e.o.f.Y(null); + } + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + bVar.b("Unsent reports are available."); + if (this.j.b()) { + bVar.b("Automatic data collection is enabled. Allowing upload."); + this.C.b(Boolean.FALSE); + task2 = b.i.a.f.e.o.f.Y(Boolean.TRUE); + } else { + bVar.b("Automatic data collection is disabled."); + bVar.b("Notifying that unsent reports are available."); + this.C.b(Boolean.TRUE); + q0 q0Var = this.j; + synchronized (q0Var.c) { + b0Var = q0Var.d.a; + } + Task q2 = b0Var.q(new e0(this)); + bVar.b("Waiting for send/deleteUnsentReports to be called."); + b0 b0Var2 = this.D.a; + FilenameFilter filenameFilter = h1.a; + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + i1 i1Var = new i1(taskCompletionSource); + q2.h(i1Var); + b0Var2.h(i1Var); + task2 = taskCompletionSource.a; + } + return task2.q(new e(task, f2)); + } + + public final void v(String str, int i2) { + h1.b(l(), new h(b.d.b.a.a.v(str, "SessionEvent")), i2, d); + } + + public final void w(b.i.c.m.d.p.c cVar, String str) throws IOException { + String[] strArr = g; + for (String str2 : strArr) { + File[] r = r(l(), new h(b.d.b.a.a.w(str, str2, ".cls"))); + if (r.length == 0) { + b.i.c.m.d.b.a.b("Can't find " + str2 + " data for session ID " + str); + } else { + b.i.c.m.d.b.a.b("Collecting " + str2 + " data for session ID " + str); + A(cVar, r[0]); + } + } + } + + /* JADX WARNING: Removed duplicated region for block: B:19:0x00f1 */ + /* JADX WARNING: Removed duplicated region for block: B:20:0x00f3 */ + /* JADX WARNING: Removed duplicated region for block: B:22:0x0100 */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x0112 */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x0198 */ + /* JADX WARNING: Removed duplicated region for block: B:29:0x01f0 A[LOOP:1: B:28:0x01ee->B:29:0x01f0, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:32:0x023a */ + /* JADX WARNING: Removed duplicated region for block: B:39:0x0253 */ + /* JADX WARNING: Removed duplicated region for block: B:45:0x0295 */ + /* JADX WARNING: Removed duplicated region for block: B:51:0x02bd */ + /* JADX WARNING: Removed duplicated region for block: B:54:0x0306 */ + public final void y(b.i.c.m.d.p.c cVar, Thread thread, Throwable th, long j2, String str, boolean z2) throws Exception { + Thread[] threadArr; + TreeMap treeMap; + byte[] c2; + String str2; + b.i.c.m.d.p.a aVar; + b.i.c.m.d.p.a aVar2; + int length; + int i2; + Map map; + b.i.c.m.d.t.e eVar = new b.i.c.m.d.t.e(th, this.f1686x); + Context context = this.i; + e a2 = e.a(context); + Float f2 = a2.a; + int b2 = a2.b(); + boolean m2 = h.m(context); + int i3 = context.getResources().getConfiguration().orientation; + long p = h.p(); + ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); + ((ActivityManager) context.getSystemService(ActivityChooserModel.ATTRIBUTE_ACTIVITY)).getMemoryInfo(memoryInfo); + long j3 = p - memoryInfo.availMem; + long a3 = h.a(Environment.getDataDirectory().getPath()); + ActivityManager.RunningAppProcessInfo i4 = h.i(context.getPackageName(), context); + LinkedList linkedList = new LinkedList(); + StackTraceElement[] stackTraceElementArr = eVar.c; + String str3 = this.q.f1662b; + String str4 = this.o.e; + if (z2) { + Map allStackTraces = Thread.getAllStackTraces(); + Thread[] threadArr2 = new Thread[allStackTraces.size()]; + int i5 = 0; + for (Map.Entry entry : allStackTraces.entrySet()) { + threadArr2[i5] = entry.getKey(); + linkedList.add(this.f1686x.a(entry.getValue())); + i5++; + threadArr2 = threadArr2; + } + threadArr = threadArr2; + } else { + threadArr = new Thread[0]; + } + if (!h.j(context, "com.crashlytics.CollectCustomKeys", true)) { + map = new TreeMap<>(); + } else { + map = this.l.a(); + if (map != null && map.size() > 1) { + treeMap = new TreeMap(map); + c2 = this.t.d.c(); + b.i.c.m.d.p.a aVar3 = b.i.c.m.d.p.d.a; + b.i.c.m.d.p.a a4 = b.i.c.m.d.p.a.a(str4); + b.i.c.m.d.p.a a5 = str3 != null ? null : b.i.c.m.d.p.a.a(str3.replace("-", "")); + if (c2 == null) { + int length2 = c2.length; + aVar = a5; + byte[] bArr = new byte[length2]; + str2 = ""; + System.arraycopy(c2, 0, bArr, 0, length2); + aVar2 = new b.i.c.m.d.p.a(bArr); + } else { + aVar = a5; + str2 = ""; + b.i.c.m.d.b.a.b("No log data to include with this event."); + aVar2 = null; + } + cVar.r(10, 2); + int b3 = b.i.c.m.d.p.c.b(2, b.i.c.m.d.p.a.a(str)) + b.i.c.m.d.p.c.h(1, j2) + 0; + int f3 = b.i.c.m.d.p.d.f(eVar, thread, stackTraceElementArr, threadArr, linkedList, 8, a4, aVar, treeMap, i4, i3); + int d2 = b.i.c.m.d.p.c.d(f3) + b.i.c.m.d.p.c.e(3) + f3 + b3; + int g2 = b.i.c.m.d.p.d.g(f2, b2, m2, i3, j3, a3); + int d3 = b.i.c.m.d.p.c.d(g2) + b.i.c.m.d.p.c.e(5) + g2 + d2; + if (aVar2 != null) { + int b4 = b.i.c.m.d.p.c.b(1, aVar2); + d3 += b.i.c.m.d.p.c.d(b4) + b.i.c.m.d.p.c.e(6) + b4; + } + cVar.o(d3); + cVar.t(1, j2); + cVar.l(2, b.i.c.m.d.p.a.a(str)); + cVar.r(3, 2); + cVar.o(b.i.c.m.d.p.d.f(eVar, thread, stackTraceElementArr, threadArr, linkedList, 8, a4, aVar, treeMap, i4, i3)); + cVar.r(1, 2); + cVar.o(b.i.c.m.d.p.d.e(eVar, thread, stackTraceElementArr, threadArr, linkedList, 8, a4, aVar)); + b.i.c.m.d.p.d.m(cVar, thread, stackTraceElementArr, 4, true); + length = threadArr.length; + for (i2 = 0; i2 < length; i2++) { + b.i.c.m.d.p.d.m(cVar, threadArr[i2], (StackTraceElement[]) linkedList.get(i2), 0, false); + } + boolean z3 = false; + b.i.c.m.d.p.d.l(cVar, eVar, 1, 8, 2); + cVar.r(3, 2); + cVar.o(b.i.c.m.d.p.d.d()); + b.i.c.m.d.p.a aVar4 = b.i.c.m.d.p.d.a; + cVar.l(1, aVar4); + cVar.l(2, aVar4); + cVar.t(3, 0); + cVar.r(4, 2); + cVar.o(b.i.c.m.d.p.d.a(a4, aVar)); + cVar.t(1, 0); + cVar.t(2, 0); + cVar.l(3, a4); + if (aVar != null) { + cVar.l(4, aVar); + } + if (treeMap != null && !treeMap.isEmpty()) { + for (Map.Entry entry2 : treeMap.entrySet()) { + cVar.r(2, 2); + cVar.o(b.i.c.m.d.p.d.b(entry2.getKey(), entry2.getValue())); + cVar.l(1, b.i.c.m.d.p.a.a(entry2.getKey())); + String value = entry2.getValue(); + if (value == null) { + value = str2; + } + cVar.l(2, b.i.c.m.d.p.a.a(value)); + } + } + if (i4 != null) { + if (i4.importance != 100) { + z3 = true; + } + cVar.k(3, z3); + } + cVar.s(4, i3); + cVar.r(5, 2); + cVar.o(b.i.c.m.d.p.d.g(f2, b2, m2, i3, j3, a3)); + if (f2 != null) { + float floatValue = f2.floatValue(); + cVar.o(13); + int floatToRawIntBits = Float.floatToRawIntBits(floatValue); + cVar.n(floatToRawIntBits & 255); + cVar.n((floatToRawIntBits >> 8) & 255); + cVar.n((floatToRawIntBits >> 16) & 255); + cVar.n((floatToRawIntBits >> 24) & 255); + } + cVar.o(16); + cVar.o((b2 << 1) ^ (b2 >> 31)); + cVar.k(3, m2); + cVar.s(4, i3); + cVar.t(5, j3); + cVar.t(6, a3); + if (aVar2 != null) { + cVar.r(6, 2); + cVar.o(b.i.c.m.d.p.c.b(1, aVar2)); + cVar.l(1, aVar2); + } + this.t.d.d(); + } + } + treeMap = map; + c2 = this.t.d.c(); + b.i.c.m.d.p.a aVar3 = b.i.c.m.d.p.d.a; + b.i.c.m.d.p.a a4 = b.i.c.m.d.p.a.a(str4); + if (str3 != null) { + } + if (c2 == null) { + } + cVar.r(10, 2); + int b3 = b.i.c.m.d.p.c.b(2, b.i.c.m.d.p.a.a(str)) + b.i.c.m.d.p.c.h(1, j2) + 0; + int f3 = b.i.c.m.d.p.d.f(eVar, thread, stackTraceElementArr, threadArr, linkedList, 8, a4, aVar, treeMap, i4, i3); + int d2 = b.i.c.m.d.p.c.d(f3) + b.i.c.m.d.p.c.e(3) + f3 + b3; + int g2 = b.i.c.m.d.p.d.g(f2, b2, m2, i3, j3, a3); + int d3 = b.i.c.m.d.p.c.d(g2) + b.i.c.m.d.p.c.e(5) + g2 + d2; + if (aVar2 != null) { + } + cVar.o(d3); + cVar.t(1, j2); + cVar.l(2, b.i.c.m.d.p.a.a(str)); + cVar.r(3, 2); + cVar.o(b.i.c.m.d.p.d.f(eVar, thread, stackTraceElementArr, threadArr, linkedList, 8, a4, aVar, treeMap, i4, i3)); + cVar.r(1, 2); + cVar.o(b.i.c.m.d.p.d.e(eVar, thread, stackTraceElementArr, threadArr, linkedList, 8, a4, aVar)); + b.i.c.m.d.p.d.m(cVar, thread, stackTraceElementArr, 4, true); + length = threadArr.length; + while (i2 < length) { + } + boolean z3 = false; + b.i.c.m.d.p.d.l(cVar, eVar, 1, 8, 2); + cVar.r(3, 2); + cVar.o(b.i.c.m.d.p.d.d()); + b.i.c.m.d.p.a aVar4 = b.i.c.m.d.p.d.a; + cVar.l(1, aVar4); + cVar.l(2, aVar4); + cVar.t(3, 0); + cVar.r(4, 2); + cVar.o(b.i.c.m.d.p.d.a(a4, aVar)); + cVar.t(1, 0); + cVar.t(2, 0); + cVar.l(3, a4); + if (aVar != null) { + } + while (r3.hasNext()) { + } + if (i4 != null) { + } + cVar.s(4, i3); + cVar.r(5, 2); + cVar.o(b.i.c.m.d.p.d.g(f2, b2, m2, i3, j3, a3)); + if (f2 != null) { + } + cVar.o(16); + cVar.o((b2 << 1) ^ (b2 >> 31)); + cVar.k(3, m2); + cVar.s(4, i3); + cVar.t(5, j3); + cVar.t(6, a3); + if (aVar2 != null) { + } + this.t.d.d(); + } + + public final void z(String str, String str2, g gVar) throws Exception { + Throwable th; + b.i.c.m.d.p.b bVar; + b.i.c.m.d.p.c i2; + b.i.c.m.d.p.c cVar = null; + try { + bVar = new b.i.c.m.d.p.b(l(), str + str2); + try { + i2 = b.i.c.m.d.p.c.i(bVar); + } catch (Throwable th2) { + th = th2; + h.h(cVar, "Failed to flush to session " + str2 + " file."); + h.c(bVar, "Failed to close session " + str2 + " file."); + throw th; + } + try { + gVar.a(i2); + h.h(i2, "Failed to flush to session " + str2 + " file."); + h.c(bVar, "Failed to close session " + str2 + " file."); + } catch (Throwable th3) { + th = th3; + cVar = i2; + h.h(cVar, "Failed to flush to session " + str2 + " file."); + h.c(bVar, "Failed to close session " + str2 + " file."); + throw th; + } + } catch (Throwable th4) { + th = th4; + bVar = null; + h.h(cVar, "Failed to flush to session " + str2 + " file."); + h.c(bVar, "Failed to close session " + str2 + " file."); + throw th; + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/x0.java b/app/src/main/java/b/i/c/m/d/k/x0.java new file mode 100644 index 0000000000..39a636527c --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/x0.java @@ -0,0 +1,5 @@ +package b.i.c.m.d.k; +/* compiled from: InstallerPackageNameProvider */ +public class x0 { + public String a; +} diff --git a/app/src/main/java/b/i/c/m/d/k/y.java b/app/src/main/java/b/i/c/m/d/k/y.java new file mode 100644 index 0000000000..bcf59938b7 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/y.java @@ -0,0 +1,61 @@ +package b.i.c.m.d.k; + +import android.os.Build; +import b.i.c.m.d.k.x; +import b.i.c.m.d.p.a; +import b.i.c.m.d.p.c; +import b.i.c.m.d.p.d; +/* compiled from: CrashlyticsController */ +public class y implements x.g { + public final /* synthetic */ int a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1690b; + public final /* synthetic */ long c; + public final /* synthetic */ long d; + public final /* synthetic */ boolean e; + public final /* synthetic */ int f; + + public y(x xVar, int i, String str, int i2, long j, long j2, boolean z2, int i3, String str2, String str3) { + this.a = i; + this.f1690b = i2; + this.c = j; + this.d = j2; + this.e = z2; + this.f = i3; + } + + @Override // b.i.c.m.d.k.x.g + public void a(c cVar) throws Exception { + int i = this.a; + String str = Build.MODEL; + int i2 = this.f1690b; + long j = this.c; + long j2 = this.d; + boolean z2 = this.e; + int i3 = this.f; + String str2 = Build.MANUFACTURER; + String str3 = Build.PRODUCT; + a j3 = d.j(str); + a j4 = d.j(str3); + a j5 = d.j(str2); + cVar.r(9, 2); + int c = c.c(3, i) + 0; + int b2 = j3 == null ? 0 : c.b(4, j3); + int f = c.f(5, i2); + cVar.o(c.f(12, i3) + c.a(10, z2) + c.h(7, j2) + c.h(6, j) + f + c + b2 + (j5 == null ? 0 : c.b(13, j5)) + (j4 == null ? 0 : c.b(14, j4))); + cVar.m(3, i); + cVar.l(4, j3); + cVar.s(5, i2); + cVar.t(6, j); + cVar.t(7, j2); + cVar.k(10, z2); + cVar.s(12, i3); + if (j5 != null) { + cVar.l(13, j5); + } + if (j4 != null) { + cVar.l(14, j4); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/y0.java b/app/src/main/java/b/i/c/m/d/k/y0.java new file mode 100644 index 0000000000..c62c1c1340 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/y0.java @@ -0,0 +1,13 @@ +package b.i.c.m.d.k; + +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: MetaDataStore */ +public class y0 extends JSONObject { + public final /* synthetic */ f1 a; + + public y0(f1 f1Var) throws JSONException { + this.a = f1Var; + put("userId", f1Var.a); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/z.java b/app/src/main/java/b/i/c/m/d/k/z.java new file mode 100644 index 0000000000..1ccde8bf9b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/z.java @@ -0,0 +1,29 @@ +package b.i.c.m.d.k; + +import b.i.c.m.d.k.x; +import b.i.c.m.d.p.a; +import b.i.c.m.d.p.c; +import b.i.c.m.d.p.d; +/* compiled from: CrashlyticsController */ +public class z implements x.g { + public final /* synthetic */ f1 a; + + public z(x xVar, f1 f1Var) { + this.a = f1Var; + } + + @Override // b.i.c.m.d.k.x.g + public void a(c cVar) throws Exception { + String str = this.a.a; + a aVar = d.a; + if (str == null) { + str = ""; + } + a a = a.a(str); + d.j(null); + d.j(null); + cVar.r(6, 2); + cVar.o(c.b(1, a) + 0); + cVar.l(1, a); + } +} diff --git a/app/src/main/java/b/i/c/m/d/k/z0.java b/app/src/main/java/b/i/c/m/d/k/z0.java new file mode 100644 index 0000000000..b75796fb78 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/k/z0.java @@ -0,0 +1,41 @@ +package b.i.c.m.d.k; + +import androidx.annotation.NonNull; +import b.d.b.a.a; +import com.adjust.sdk.Constants; +import java.io.File; +import java.nio.charset.Charset; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: MetaDataStore */ +public class z0 { + public static final Charset a = Charset.forName(Constants.ENCODING); + + /* renamed from: b reason: collision with root package name */ + public final File f1691b; + + public z0(File file) { + this.f1691b = file; + } + + public static f1 c(String str) throws JSONException { + JSONObject jSONObject = new JSONObject(str); + f1 f1Var = new f1(); + String str2 = null; + if (!jSONObject.isNull("userId")) { + str2 = jSONObject.optString("userId", null); + } + f1Var.a = f1.b(str2); + return f1Var; + } + + @NonNull + public File a(String str) { + return new File(this.f1691b, a.w(str, "keys", ".meta")); + } + + @NonNull + public File b(String str) { + return new File(this.f1691b, a.w(str, "user", ".meta")); + } +} diff --git a/app/src/main/java/b/i/c/m/d/l/a.java b/app/src/main/java/b/i/c/m/d/l/a.java new file mode 100644 index 0000000000..44de63e987 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/l/a.java @@ -0,0 +1,17 @@ +package b.i.c.m.d.l; + +import androidx.annotation.Nullable; +/* compiled from: FileLogStore */ +public interface a { + void a(); + + @Nullable + String b(); + + @Nullable + byte[] c(); + + void d(); + + void e(long j, String str); +} diff --git a/app/src/main/java/b/i/c/m/d/l/b.java b/app/src/main/java/b/i/c/m/d/l/b.java new file mode 100644 index 0000000000..ede632ea41 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/l/b.java @@ -0,0 +1,72 @@ +package b.i.c.m.d.l; + +import android.content.Context; +import b.i.c.m.d.k.h; +import b.i.c.m.d.k.x; +import java.io.File; +/* compiled from: LogFileManager */ +public class b { + public static final c a = new c(null); + + /* renamed from: b reason: collision with root package name */ + public final Context f1692b; + public final AbstractC0131b c; + public a d = a; + + /* compiled from: LogFileManager */ + /* renamed from: b.i.c.m.d.l.b$b reason: collision with other inner class name */ + public interface AbstractC0131b { + } + + /* compiled from: LogFileManager */ + public static final class c implements a { + public c(a aVar) { + } + + @Override // b.i.c.m.d.l.a + public void a() { + } + + @Override // b.i.c.m.d.l.a + public String b() { + return null; + } + + @Override // b.i.c.m.d.l.a + public byte[] c() { + return null; + } + + @Override // b.i.c.m.d.l.a + public void d() { + } + + @Override // b.i.c.m.d.l.a + public void e(long j, String str) { + } + } + + public b(Context context, AbstractC0131b bVar) { + this.f1692b = context; + this.c = bVar; + a(null); + } + + public b(Context context, AbstractC0131b bVar, String str) { + this.f1692b = context; + this.c = bVar; + a(str); + } + + public final void a(String str) { + this.d.a(); + this.d = a; + if (str != null) { + if (!h.j(this.f1692b, "com.crashlytics.CollectCustomLogs", true)) { + b.i.c.m.d.b.a.b("Preferences requested no custom logs. Aborting log file creation."); + return; + } + this.d = new e(new File(((x.j) this.c).a(), b.d.b.a.a.w("crashlytics-userlog-", str, ".temp")), 65536); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/l/c.java b/app/src/main/java/b/i/c/m/d/l/c.java new file mode 100644 index 0000000000..e20ecf68ac --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/l/c.java @@ -0,0 +1,383 @@ +package b.i.c.m.d.l; + +import com.discord.api.permission.Permission; +import java.io.Closeable; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.RandomAccessFile; +import java.nio.channels.FileChannel; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.logging.Level; +import java.util.logging.Logger; +/* compiled from: QueueFile */ +public class c implements Closeable { + public static final Logger j = Logger.getLogger(c.class.getName()); + public final RandomAccessFile k; + public int l; + public int m; + public b n; + public b o; + public final byte[] p = new byte[16]; + + /* compiled from: QueueFile */ + public class a implements d { + public boolean a = true; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ StringBuilder f1693b; + + public a(c cVar, StringBuilder sb) { + this.f1693b = sb; + } + + @Override // b.i.c.m.d.l.c.d + public void a(InputStream inputStream, int i) throws IOException { + if (this.a) { + this.a = false; + } else { + this.f1693b.append(", "); + } + this.f1693b.append(i); + } + } + + /* compiled from: QueueFile */ + public static class b { + public static final b a = new b(0, 0); + + /* renamed from: b reason: collision with root package name */ + public final int f1694b; + public final int c; + + public b(int i, int i2) { + this.f1694b = i; + this.c = i2; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(b.class.getSimpleName()); + sb.append("[position = "); + sb.append(this.f1694b); + sb.append(", length = "); + return b.d.b.a.a.A(sb, this.c, "]"); + } + } + + /* compiled from: QueueFile */ + /* renamed from: b.i.c.m.d.l.c$c reason: collision with other inner class name */ + public final class C0132c extends InputStream { + public int j; + public int k; + + public C0132c(b bVar, a aVar) { + int i = bVar.f1694b + 4; + int i2 = c.this.l; + this.j = i >= i2 ? (i + 16) - i2 : i; + this.k = bVar.c; + } + + @Override // java.io.InputStream + public int read() throws IOException { + if (this.k == 0) { + return -1; + } + c.this.k.seek((long) this.j); + int read = c.this.k.read(); + this.j = c.a(c.this, this.j + 1); + this.k--; + return read; + } + + @Override // java.io.InputStream + public int read(byte[] bArr, int i, int i2) throws IOException { + Objects.requireNonNull(bArr, "buffer"); + if ((i | i2) < 0 || i2 > bArr.length - i) { + throw new ArrayIndexOutOfBoundsException(); + } + int i3 = this.k; + if (i3 <= 0) { + return -1; + } + if (i2 > i3) { + i2 = i3; + } + c.this.t(this.j, bArr, i, i2); + this.j = c.a(c.this, this.j + i2); + this.k -= i2; + return i2; + } + } + + /* compiled from: QueueFile */ + public interface d { + void a(InputStream inputStream, int i) throws IOException; + } + + /* JADX INFO: finally extract failed */ + public c(File file) throws IOException { + if (!file.exists()) { + File file2 = new File(file.getPath() + ".tmp"); + RandomAccessFile randomAccessFile = new RandomAccessFile(file2, "rwd"); + try { + randomAccessFile.setLength(Permission.SEND_TTS_MESSAGES); + randomAccessFile.seek(0); + byte[] bArr = new byte[16]; + int[] iArr = {4096, 0, 0, 0}; + int i = 0; + for (int i2 = 0; i2 < 4; i2++) { + C(bArr, i, iArr[i2]); + i += 4; + } + randomAccessFile.write(bArr); + randomAccessFile.close(); + if (!file2.renameTo(file)) { + throw new IOException("Rename failed!"); + } + } catch (Throwable th) { + randomAccessFile.close(); + throw th; + } + } + RandomAccessFile randomAccessFile2 = new RandomAccessFile(file, "rwd"); + this.k = randomAccessFile2; + randomAccessFile2.seek(0); + randomAccessFile2.readFully(this.p); + int q = q(this.p, 0); + this.l = q; + if (((long) q) <= randomAccessFile2.length()) { + this.m = q(this.p, 4); + int q2 = q(this.p, 8); + int q3 = q(this.p, 12); + this.n = n(q2); + this.o = n(q3); + return; + } + StringBuilder R = b.d.b.a.a.R("File is truncated. Expected length: "); + R.append(this.l); + R.append(", Actual length: "); + R.append(randomAccessFile2.length()); + throw new IOException(R.toString()); + } + + public static void C(byte[] bArr, int i, int i2) { + bArr[i] = (byte) (i2 >> 24); + bArr[i + 1] = (byte) (i2 >> 16); + bArr[i + 2] = (byte) (i2 >> 8); + bArr[i + 3] = (byte) i2; + } + + public static int a(c cVar, int i) { + int i2 = cVar.l; + return i < i2 ? i : (i + 16) - i2; + } + + public static int q(byte[] bArr, int i) { + return ((bArr[i] & 255) << 24) + ((bArr[i + 1] & 255) << 16) + ((bArr[i + 2] & 255) << 8) + (bArr[i + 3] & 255); + } + + public final void A(int i, int i2, int i3, int i4) throws IOException { + byte[] bArr = this.p; + int[] iArr = {i, i2, i3, i4}; + int i5 = 0; + for (int i6 = 0; i6 < 4; i6++) { + C(bArr, i5, iArr[i6]); + i5 += 4; + } + this.k.seek(0); + this.k.write(this.p); + } + + public void b(byte[] bArr) throws IOException { + int i; + int length = bArr.length; + synchronized (this) { + if ((0 | length) >= 0) { + if (length <= bArr.length - 0) { + d(length); + boolean f = f(); + if (f) { + i = 16; + } else { + b bVar = this.o; + i = y(bVar.f1694b + 4 + bVar.c); + } + b bVar2 = new b(i, length); + C(this.p, 0, length); + u(i, this.p, 0, 4); + u(i + 4, bArr, 0, length); + A(this.l, this.m + 1, f ? i : this.n.f1694b, i); + this.o = bVar2; + this.m++; + if (f) { + this.n = bVar2; + } + } + } + throw new IndexOutOfBoundsException(); + } + } + + public synchronized void c() throws IOException { + A(4096, 0, 0, 0); + this.m = 0; + b bVar = b.a; + this.n = bVar; + this.o = bVar; + if (this.l > 4096) { + this.k.setLength((long) 4096); + this.k.getChannel().force(true); + } + this.l = 4096; + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public synchronized void close() throws IOException { + this.k.close(); + } + + public final void d(int i) throws IOException { + int i2 = i + 4; + int x2 = this.l - x(); + if (x2 < i2) { + int i3 = this.l; + do { + x2 += i3; + i3 <<= 1; + } while (x2 < i2); + this.k.setLength((long) i3); + this.k.getChannel().force(true); + b bVar = this.o; + int y2 = y(bVar.f1694b + 4 + bVar.c); + if (y2 < this.n.f1694b) { + FileChannel channel = this.k.getChannel(); + channel.position((long) this.l); + long j2 = (long) (y2 - 4); + if (channel.transferTo(16, j2, channel) != j2) { + throw new AssertionError("Copied insufficient number of bytes!"); + } + } + int i4 = this.o.f1694b; + int i5 = this.n.f1694b; + if (i4 < i5) { + int i6 = (this.l + i4) - 16; + A(i3, this.m, i5, i6); + this.o = new b(i6, this.o.c); + } else { + A(i3, this.m, i5, i4); + } + this.l = i3; + } + } + + public synchronized void e(d dVar) throws IOException { + int i = this.n.f1694b; + for (int i2 = 0; i2 < this.m; i2++) { + b n = n(i); + dVar.a(new C0132c(n, null), n.c); + i = y(n.f1694b + 4 + n.c); + } + } + + public synchronized boolean f() { + return this.m == 0; + } + + public final b n(int i) throws IOException { + if (i == 0) { + return b.a; + } + this.k.seek((long) i); + return new b(i, this.k.readInt()); + } + + public synchronized void s() throws IOException { + if (f()) { + throw new NoSuchElementException(); + } else if (this.m == 1) { + c(); + } else { + b bVar = this.n; + int y2 = y(bVar.f1694b + 4 + bVar.c); + t(y2, this.p, 0, 4); + int q = q(this.p, 0); + A(this.l, this.m - 1, y2, this.o.f1694b); + this.m--; + this.n = new b(y2, q); + } + } + + public final void t(int i, byte[] bArr, int i2, int i3) throws IOException { + int i4 = this.l; + if (i >= i4) { + i = (i + 16) - i4; + } + if (i + i3 <= i4) { + this.k.seek((long) i); + this.k.readFully(bArr, i2, i3); + return; + } + int i5 = i4 - i; + this.k.seek((long) i); + this.k.readFully(bArr, i2, i5); + this.k.seek(16); + this.k.readFully(bArr, i2 + i5, i3 - i5); + } + + @Override // java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(c.class.getSimpleName()); + sb.append('['); + sb.append("fileLength="); + sb.append(this.l); + sb.append(", size="); + sb.append(this.m); + sb.append(", first="); + sb.append(this.n); + sb.append(", last="); + sb.append(this.o); + sb.append(", element lengths=["); + try { + e(new a(this, sb)); + } catch (IOException e) { + j.log(Level.WARNING, "read error", (Throwable) e); + } + sb.append("]]"); + return sb.toString(); + } + + public final void u(int i, byte[] bArr, int i2, int i3) throws IOException { + int i4 = this.l; + if (i >= i4) { + i = (i + 16) - i4; + } + if (i + i3 <= i4) { + this.k.seek((long) i); + this.k.write(bArr, i2, i3); + return; + } + int i5 = i4 - i; + this.k.seek((long) i); + this.k.write(bArr, i2, i5); + this.k.seek(16); + this.k.write(bArr, i2 + i5, i3 - i5); + } + + public int x() { + if (this.m == 0) { + return 16; + } + b bVar = this.o; + int i = bVar.f1694b; + int i2 = this.n.f1694b; + return i >= i2 ? (i - i2) + 4 + bVar.c + 16 : (((i + 4) + bVar.c) + this.l) - i2; + } + + public final int y(int i) { + int i2 = this.l; + return i < i2 ? i : (i + 16) - i2; + } +} diff --git a/app/src/main/java/b/i/c/m/d/l/d.java b/app/src/main/java/b/i/c/m/d/l/d.java new file mode 100644 index 0000000000..db7fd367e2 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/l/d.java @@ -0,0 +1,28 @@ +package b.i.c.m.d.l; + +import b.i.c.m.d.l.c; +import java.io.IOException; +import java.io.InputStream; +/* compiled from: QueueFileLogStore */ +public class d implements c.d { + public final /* synthetic */ byte[] a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int[] f1695b; + + public d(e eVar, byte[] bArr, int[] iArr) { + this.a = bArr; + this.f1695b = iArr; + } + + @Override // b.i.c.m.d.l.c.d + public void a(InputStream inputStream, int i) throws IOException { + try { + inputStream.read(this.a, this.f1695b[0], i); + int[] iArr = this.f1695b; + iArr[0] = iArr[0] + i; + } finally { + inputStream.close(); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/l/e.java b/app/src/main/java/b/i/c/m/d/l/e.java new file mode 100644 index 0000000000..ada56d78e8 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/l/e.java @@ -0,0 +1,129 @@ +package b.i.c.m.d.l; + +import android.util.Log; +import b.i.c.m.d.b; +import b.i.c.m.d.k.h; +import com.adjust.sdk.Constants; +import java.io.File; +import java.io.IOException; +import java.nio.charset.Charset; +import java.util.Locale; +/* compiled from: QueueFileLogStore */ +public class e implements a { + public static final Charset a = Charset.forName(Constants.ENCODING); + + /* renamed from: b reason: collision with root package name */ + public final File f1696b; + public final int c; + public c d; + + /* compiled from: QueueFileLogStore */ + public class a { + public final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public final int f1697b; + + public a(e eVar, byte[] bArr, int i) { + this.a = bArr; + this.f1697b = i; + } + } + + public e(File file, int i) { + this.f1696b = file; + this.c = i; + } + + @Override // b.i.c.m.d.l.a + public void a() { + h.c(this.d, "There was a problem closing the Crashlytics log file."); + this.d = null; + } + + @Override // b.i.c.m.d.l.a + public String b() { + byte[] c = c(); + if (c != null) { + return new String(c, a); + } + return null; + } + + /* JADX WARNING: Removed duplicated region for block: B:14:0x0044 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:15:0x0045 */ + @Override // b.i.c.m.d.l.a + public byte[] c() { + a aVar; + if (this.f1696b.exists()) { + f(); + c cVar = this.d; + if (cVar != null) { + int[] iArr = {0}; + byte[] bArr = new byte[cVar.x()]; + try { + this.d.e(new d(this, bArr, iArr)); + } catch (IOException e) { + if (b.a.a(6)) { + Log.e("FirebaseCrashlytics", "A problem occurred while reading the Crashlytics log file.", e); + } + } + aVar = new a(this, bArr, iArr[0]); + if (aVar != null) { + return null; + } + int i = aVar.f1697b; + byte[] bArr2 = new byte[i]; + System.arraycopy(aVar.a, 0, bArr2, 0, i); + return bArr2; + } + } + aVar = null; + if (aVar != null) { + } + } + + @Override // b.i.c.m.d.l.a + public void d() { + h.c(this.d, "There was a problem closing the Crashlytics log file."); + this.d = null; + this.f1696b.delete(); + } + + @Override // b.i.c.m.d.l.a + public void e(long j, String str) { + f(); + if (this.d != null) { + if (str == null) { + str = "null"; + } + try { + int i = this.c / 4; + if (str.length() > i) { + str = "..." + str.substring(str.length() - i); + } + this.d.b(String.format(Locale.US, "%d %s%n", Long.valueOf(j), str.replaceAll("\r", " ").replaceAll("\n", " ")).getBytes(a)); + while (!this.d.f() && this.d.x() > this.c) { + this.d.s(); + } + } catch (IOException e) { + if (b.a.a(6)) { + Log.e("FirebaseCrashlytics", "There was a problem writing to the Crashlytics log.", e); + } + } + } + } + + public final void f() { + if (this.d == null) { + try { + this.d = new c(this.f1696b); + } catch (IOException e) { + b bVar = b.a; + StringBuilder R = b.d.b.a.a.R("Could not open log file: "); + R.append(this.f1696b); + bVar.e(R.toString(), e); + } + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/a.java b/app/src/main/java/b/i/c/m/d/m/a.java new file mode 100644 index 0000000000..eaaec00950 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/a.java @@ -0,0 +1,437 @@ +package b.i.c.m.d.m; + +import b.i.c.m.d.m.v; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.utilities.analytics.ChatInputComponentTypes; +import java.io.IOException; +/* compiled from: AutoCrashlyticsReportEncoder */ +public final class a implements b.i.c.p.g.a { + public static final b.i.c.p.g.a a = new a(); + + /* compiled from: AutoCrashlyticsReportEncoder */ + /* renamed from: b.i.c.m.d.m.a$a reason: collision with other inner class name */ + public static final class C0133a implements b.i.c.p.c { + public static final C0133a a = new C0133a(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.b bVar = (v.b) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("key", bVar.a()); + dVar2.f("value", bVar.b()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class b implements b.i.c.p.c { + public static final b a = new b(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v vVar = (v) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("sdkVersion", vVar.g()); + dVar2.f("gmpAppId", vVar.c()); + dVar2.c("platform", vVar.f()); + dVar2.f("installationUuid", vVar.d()); + dVar2.f("buildVersion", vVar.a()); + dVar2.f("displayVersion", vVar.b()); + dVar2.f("session", vVar.h()); + dVar2.f("ndkPayload", vVar.e()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class c implements b.i.c.p.c { + public static final c a = new c(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.c cVar = (v.c) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f(ChatInputComponentTypes.FILES, cVar.a()); + dVar2.f("orgId", cVar.b()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class d implements b.i.c.p.c { + public static final d a = new d(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.c.a aVar = (v.c.a) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("filename", aVar.b()); + dVar2.f("contents", aVar.a()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class e implements b.i.c.p.c { + public static final e a = new e(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.a aVar = (v.d.a) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("identifier", aVar.d()); + dVar2.f("version", aVar.g()); + dVar2.f("displayVersion", aVar.c()); + dVar2.f("organization", aVar.f()); + dVar2.f("installationUuid", aVar.e()); + dVar2.f("developmentPlatform", aVar.a()); + dVar2.f("developmentPlatformVersion", aVar.b()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class f implements b.i.c.p.c { + public static final f a = new f(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + dVar.f("clsId", ((v.d.a.AbstractC0135a) obj).a()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class g implements b.i.c.p.c { + public static final g a = new g(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.c cVar = (v.d.c) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.c("arch", cVar.a()); + dVar2.f("model", cVar.e()); + dVar2.c("cores", cVar.b()); + dVar2.b("ram", cVar.g()); + dVar2.b("diskSpace", cVar.c()); + dVar2.a("simulator", cVar.i()); + dVar2.c("state", cVar.h()); + dVar2.f("manufacturer", cVar.d()); + dVar2.f("modelClass", cVar.f()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class h implements b.i.c.p.c { + public static final h a = new h(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d dVar2 = (v.d) obj; + b.i.c.p.d dVar3 = dVar; + dVar3.f("generator", dVar2.e()); + dVar3.f("identifier", dVar2.g().getBytes(v.a)); + dVar3.b("startedAt", dVar2.i()); + dVar3.f("endedAt", dVar2.c()); + dVar3.a("crashed", dVar2.k()); + dVar3.f("app", dVar2.a()); + dVar3.f("user", dVar2.j()); + dVar3.f("os", dVar2.h()); + dVar3.f("device", dVar2.b()); + dVar3.f("events", dVar2.d()); + dVar3.c("generatorType", dVar2.f()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class i implements b.i.c.p.c { + public static final i a = new i(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d.a aVar = (v.d.AbstractC0136d.a) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("execution", aVar.c()); + dVar2.f("customAttributes", aVar.b()); + dVar2.f("background", aVar.a()); + dVar2.c("uiOrientation", aVar.d()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class j implements b.i.c.p.c { + public static final j a = new j(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d.a.b.AbstractC0138a aVar = (v.d.AbstractC0136d.a.b.AbstractC0138a) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.b("baseAddress", aVar.a()); + dVar2.b("size", aVar.c()); + dVar2.f(ModelAuditLogEntry.CHANGE_KEY_NAME, aVar.b()); + String d = aVar.d(); + dVar2.f("uuid", d != null ? d.getBytes(v.a) : null); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class k implements b.i.c.p.c { + public static final k a = new k(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d.a.b bVar = (v.d.AbstractC0136d.a.b) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("threads", bVar.d()); + dVar2.f("exception", bVar.b()); + dVar2.f("signal", bVar.c()); + dVar2.f("binaries", bVar.a()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class l implements b.i.c.p.c { + public static final l a = new l(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d.a.b.AbstractC0139b bVar = (v.d.AbstractC0136d.a.b.AbstractC0139b) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("type", bVar.e()); + dVar2.f(ModelAuditLogEntry.CHANGE_KEY_REASON, bVar.d()); + dVar2.f("frames", bVar.b()); + dVar2.f("causedBy", bVar.a()); + dVar2.c("overflowCount", bVar.c()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class m implements b.i.c.p.c { + public static final m a = new m(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d.a.b.c cVar = (v.d.AbstractC0136d.a.b.c) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f(ModelAuditLogEntry.CHANGE_KEY_NAME, cVar.c()); + dVar2.f(ModelAuditLogEntry.CHANGE_KEY_CODE, cVar.b()); + dVar2.b("address", cVar.a()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class n implements b.i.c.p.c { + public static final n a = new n(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d.a.b.AbstractC0140d dVar2 = (v.d.AbstractC0136d.a.b.AbstractC0140d) obj; + b.i.c.p.d dVar3 = dVar; + dVar3.f(ModelAuditLogEntry.CHANGE_KEY_NAME, dVar2.c()); + dVar3.c("importance", dVar2.b()); + dVar3.f("frames", dVar2.a()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class o implements b.i.c.p.c { + public static final o a = new o(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a aVar = (v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.b("pc", aVar.d()); + dVar2.f("symbol", aVar.e()); + dVar2.f("file", aVar.a()); + dVar2.b("offset", aVar.c()); + dVar2.c("importance", aVar.b()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class p implements b.i.c.p.c { + public static final p a = new p(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d.b bVar = (v.d.AbstractC0136d.b) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.f("batteryLevel", bVar.a()); + dVar2.c("batteryVelocity", bVar.b()); + dVar2.a("proximityOn", bVar.f()); + dVar2.c("orientation", bVar.d()); + dVar2.b("ramUsed", bVar.e()); + dVar2.b("diskUsed", bVar.c()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class q implements b.i.c.p.c { + public static final q a = new q(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.AbstractC0136d dVar2 = (v.d.AbstractC0136d) obj; + b.i.c.p.d dVar3 = dVar; + dVar3.b("timestamp", dVar2.d()); + dVar3.f("type", dVar2.e()); + dVar3.f("app", dVar2.a()); + dVar3.f("device", dVar2.b()); + dVar3.f("log", dVar2.c()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class r implements b.i.c.p.c { + public static final r a = new r(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + dVar.f("content", ((v.d.AbstractC0136d.c) obj).a()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class s implements b.i.c.p.c { + public static final s a = new s(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + v.d.e eVar = (v.d.e) obj; + b.i.c.p.d dVar2 = dVar; + dVar2.c("platform", eVar.b()); + dVar2.f("version", eVar.c()); + dVar2.f("buildVersion", eVar.a()); + dVar2.a("jailbroken", eVar.d()); + } + } + + /* compiled from: AutoCrashlyticsReportEncoder */ + public static final class t implements b.i.c.p.c { + public static final t a = new t(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, b.i.c.p.d dVar) throws IOException { + dVar.f("identifier", ((v.d.f) obj).a()); + } + } + + public void a(b.i.c.p.g.b bVar) { + b bVar2 = b.a; + b.i.c.p.h.e eVar = (b.i.c.p.h.e) bVar; + eVar.f1746b.put(v.class, bVar2); + eVar.c.remove(v.class); + eVar.f1746b.put(b.class, bVar2); + eVar.c.remove(b.class); + h hVar = h.a; + eVar.f1746b.put(v.d.class, hVar); + eVar.c.remove(v.d.class); + eVar.f1746b.put(f.class, hVar); + eVar.c.remove(f.class); + e eVar2 = e.a; + eVar.f1746b.put(v.d.a.class, eVar2); + eVar.c.remove(v.d.a.class); + eVar.f1746b.put(g.class, eVar2); + eVar.c.remove(g.class); + f fVar = f.a; + eVar.f1746b.put(v.d.a.AbstractC0135a.class, fVar); + eVar.c.remove(v.d.a.AbstractC0135a.class); + eVar.f1746b.put(h.class, fVar); + eVar.c.remove(h.class); + t tVar = t.a; + eVar.f1746b.put(v.d.f.class, tVar); + eVar.c.remove(v.d.f.class); + eVar.f1746b.put(u.class, tVar); + eVar.c.remove(u.class); + s sVar = s.a; + eVar.f1746b.put(v.d.e.class, sVar); + eVar.c.remove(v.d.e.class); + eVar.f1746b.put(t.class, sVar); + eVar.c.remove(t.class); + g gVar = g.a; + eVar.f1746b.put(v.d.c.class, gVar); + eVar.c.remove(v.d.c.class); + eVar.f1746b.put(i.class, gVar); + eVar.c.remove(i.class); + q qVar = q.a; + eVar.f1746b.put(v.d.AbstractC0136d.class, qVar); + eVar.c.remove(v.d.AbstractC0136d.class); + eVar.f1746b.put(j.class, qVar); + eVar.c.remove(j.class); + i iVar = i.a; + eVar.f1746b.put(v.d.AbstractC0136d.a.class, iVar); + eVar.c.remove(v.d.AbstractC0136d.a.class); + eVar.f1746b.put(k.class, iVar); + eVar.c.remove(k.class); + k kVar = k.a; + eVar.f1746b.put(v.d.AbstractC0136d.a.b.class, kVar); + eVar.c.remove(v.d.AbstractC0136d.a.b.class); + eVar.f1746b.put(l.class, kVar); + eVar.c.remove(l.class); + n nVar = n.a; + eVar.f1746b.put(v.d.AbstractC0136d.a.b.AbstractC0140d.class, nVar); + eVar.c.remove(v.d.AbstractC0136d.a.b.AbstractC0140d.class); + eVar.f1746b.put(p.class, nVar); + eVar.c.remove(p.class); + o oVar = o.a; + eVar.f1746b.put(v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a.class, oVar); + eVar.c.remove(v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a.class); + eVar.f1746b.put(q.class, oVar); + eVar.c.remove(q.class); + l lVar = l.a; + eVar.f1746b.put(v.d.AbstractC0136d.a.b.AbstractC0139b.class, lVar); + eVar.c.remove(v.d.AbstractC0136d.a.b.AbstractC0139b.class); + eVar.f1746b.put(n.class, lVar); + eVar.c.remove(n.class); + m mVar = m.a; + eVar.f1746b.put(v.d.AbstractC0136d.a.b.c.class, mVar); + eVar.c.remove(v.d.AbstractC0136d.a.b.c.class); + eVar.f1746b.put(o.class, mVar); + eVar.c.remove(o.class); + j jVar = j.a; + eVar.f1746b.put(v.d.AbstractC0136d.a.b.AbstractC0138a.class, jVar); + eVar.c.remove(v.d.AbstractC0136d.a.b.AbstractC0138a.class); + eVar.f1746b.put(m.class, jVar); + eVar.c.remove(m.class); + C0133a aVar = C0133a.a; + eVar.f1746b.put(v.b.class, aVar); + eVar.c.remove(v.b.class); + eVar.f1746b.put(c.class, aVar); + eVar.c.remove(c.class); + p pVar = p.a; + eVar.f1746b.put(v.d.AbstractC0136d.b.class, pVar); + eVar.c.remove(v.d.AbstractC0136d.b.class); + eVar.f1746b.put(r.class, pVar); + eVar.c.remove(r.class); + r rVar = r.a; + eVar.f1746b.put(v.d.AbstractC0136d.c.class, rVar); + eVar.c.remove(v.d.AbstractC0136d.c.class); + eVar.f1746b.put(s.class, rVar); + eVar.c.remove(s.class); + c cVar = c.a; + eVar.f1746b.put(v.c.class, cVar); + eVar.c.remove(v.c.class); + eVar.f1746b.put(d.class, cVar); + eVar.c.remove(d.class); + d dVar = d.a; + eVar.f1746b.put(v.c.a.class, dVar); + eVar.c.remove(v.c.a.class); + eVar.f1746b.put(e.class, dVar); + eVar.c.remove(e.class); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/b.java b/app/src/main/java/b/i/c/m/d/m/b.java new file mode 100644 index 0000000000..293b30db74 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/b.java @@ -0,0 +1,190 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport */ +public final class b extends v { + + /* renamed from: b reason: collision with root package name */ + public final String f1698b; + public final String c; + public final int d; + public final String e; + public final String f; + public final String g; + public final v.d h; + public final v.c i; + + /* compiled from: AutoValue_CrashlyticsReport */ + /* renamed from: b.i.c.m.d.m.b$b reason: collision with other inner class name */ + public static final class C0134b extends v.a { + public String a; + + /* renamed from: b reason: collision with root package name */ + public String f1699b; + public Integer c; + public String d; + public String e; + public String f; + public v.d g; + public v.c h; + + public C0134b() { + } + + public C0134b(v vVar, a aVar) { + b bVar = (b) vVar; + this.a = bVar.f1698b; + this.f1699b = bVar.c; + this.c = Integer.valueOf(bVar.d); + this.d = bVar.e; + this.e = bVar.f; + this.f = bVar.g; + this.g = bVar.h; + this.h = bVar.i; + } + + @Override // b.i.c.m.d.m.v.a + public v a() { + String str = this.a == null ? " sdkVersion" : ""; + if (this.f1699b == null) { + str = b.d.b.a.a.v(str, " gmpAppId"); + } + if (this.c == null) { + str = b.d.b.a.a.v(str, " platform"); + } + if (this.d == null) { + str = b.d.b.a.a.v(str, " installationUuid"); + } + if (this.e == null) { + str = b.d.b.a.a.v(str, " buildVersion"); + } + if (this.f == null) { + str = b.d.b.a.a.v(str, " displayVersion"); + } + if (str.isEmpty()) { + return new b(this.a, this.f1699b, this.c.intValue(), this.d, this.e, this.f, this.g, this.h, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + } + + public b(String str, String str2, int i, String str3, String str4, String str5, v.d dVar, v.c cVar, a aVar) { + this.f1698b = str; + this.c = str2; + this.d = i; + this.e = str3; + this.f = str4; + this.g = str5; + this.h = dVar; + this.i = cVar; + } + + @Override // b.i.c.m.d.m.v + @NonNull + public String a() { + return this.f; + } + + @Override // b.i.c.m.d.m.v + @NonNull + public String b() { + return this.g; + } + + @Override // b.i.c.m.d.m.v + @NonNull + public String c() { + return this.c; + } + + @Override // b.i.c.m.d.m.v + @NonNull + public String d() { + return this.e; + } + + @Override // b.i.c.m.d.m.v + @Nullable + public v.c e() { + return this.i; + } + + public boolean equals(Object obj) { + v.d dVar; + if (obj == this) { + return true; + } + if (!(obj instanceof v)) { + return false; + } + v vVar = (v) obj; + if (this.f1698b.equals(vVar.g()) && this.c.equals(vVar.c()) && this.d == vVar.f() && this.e.equals(vVar.d()) && this.f.equals(vVar.a()) && this.g.equals(vVar.b()) && ((dVar = this.h) != null ? dVar.equals(vVar.h()) : vVar.h() == null)) { + v.c cVar = this.i; + if (cVar == null) { + if (vVar.e() == null) { + return true; + } + } else if (cVar.equals(vVar.e())) { + return true; + } + } + return false; + } + + @Override // b.i.c.m.d.m.v + public int f() { + return this.d; + } + + @Override // b.i.c.m.d.m.v + @NonNull + public String g() { + return this.f1698b; + } + + @Override // b.i.c.m.d.m.v + @Nullable + public v.d h() { + return this.h; + } + + public int hashCode() { + int hashCode = (((((((((((this.f1698b.hashCode() ^ 1000003) * 1000003) ^ this.c.hashCode()) * 1000003) ^ this.d) * 1000003) ^ this.e.hashCode()) * 1000003) ^ this.f.hashCode()) * 1000003) ^ this.g.hashCode()) * 1000003; + v.d dVar = this.h; + int i = 0; + int hashCode2 = (hashCode ^ (dVar == null ? 0 : dVar.hashCode())) * 1000003; + v.c cVar = this.i; + if (cVar != null) { + i = cVar.hashCode(); + } + return hashCode2 ^ i; + } + + @Override // b.i.c.m.d.m.v + public v.a i() { + return new C0134b(this, null); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("CrashlyticsReport{sdkVersion="); + R.append(this.f1698b); + R.append(", gmpAppId="); + R.append(this.c); + R.append(", platform="); + R.append(this.d); + R.append(", installationUuid="); + R.append(this.e); + R.append(", buildVersion="); + R.append(this.f); + R.append(", displayVersion="); + R.append(this.g); + R.append(", session="); + R.append(this.h); + R.append(", ndkPayload="); + R.append(this.i); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/c.java b/app/src/main/java/b/i/c/m/d/m/c.java new file mode 100644 index 0000000000..353b12ddd4 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/c.java @@ -0,0 +1,50 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_CustomAttribute */ +public final class c extends v.b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1700b; + + public c(String str, String str2, a aVar) { + this.a = str; + this.f1700b = str2; + } + + @Override // b.i.c.m.d.m.v.b + @NonNull + public String a() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.b + @NonNull + public String b() { + return this.f1700b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.b)) { + return false; + } + v.b bVar = (v.b) obj; + return this.a.equals(bVar.a()) && this.f1700b.equals(bVar.b()); + } + + public int hashCode() { + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1700b.hashCode(); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("CustomAttribute{key="); + R.append(this.a); + R.append(", value="); + return b.d.b.a.a.H(R, this.f1700b, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/d.java b/app/src/main/java/b/i/c/m/d/m/d.java new file mode 100644 index 0000000000..17fe7e2e7e --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/d.java @@ -0,0 +1,63 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_FilesPayload */ +public final class d extends v.c { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final String f1701b; + + public d(w wVar, String str, a aVar) { + this.a = wVar; + this.f1701b = str; + } + + @Override // b.i.c.m.d.m.v.c + @NonNull + public w a() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.c + @Nullable + public String b() { + return this.f1701b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.c)) { + return false; + } + v.c cVar = (v.c) obj; + if (this.a.equals(cVar.a())) { + String str = this.f1701b; + if (str == null) { + if (cVar.b() == null) { + return true; + } + } else if (str.equals(cVar.b())) { + return true; + } + } + return false; + } + + public int hashCode() { + int hashCode = (this.a.hashCode() ^ 1000003) * 1000003; + String str = this.f1701b; + return hashCode ^ (str == null ? 0 : str.hashCode()); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("FilesPayload{files="); + R.append(this.a); + R.append(", orgId="); + return b.d.b.a.a.H(R, this.f1701b, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/e.java b/app/src/main/java/b/i/c/m/d/m/e.java new file mode 100644 index 0000000000..0c1a5a2f44 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/e.java @@ -0,0 +1,58 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +import java.util.Arrays; +/* compiled from: AutoValue_CrashlyticsReport_FilesPayload_File */ +public final class e extends v.c.a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f1702b; + + public e(String str, byte[] bArr, a aVar) { + this.a = str; + this.f1702b = bArr; + } + + @Override // b.i.c.m.d.m.v.c.a + @NonNull + public byte[] a() { + return this.f1702b; + } + + @Override // b.i.c.m.d.m.v.c.a + @NonNull + public String b() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.c.a)) { + return false; + } + v.c.a aVar = (v.c.a) obj; + if (this.a.equals(aVar.b())) { + if (Arrays.equals(this.f1702b, aVar instanceof e ? ((e) aVar).f1702b : aVar.a())) { + return true; + } + } + return false; + } + + public int hashCode() { + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ Arrays.hashCode(this.f1702b); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("File{filename="); + R.append(this.a); + R.append(", contents="); + R.append(Arrays.toString(this.f1702b)); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/f.java b/app/src/main/java/b/i/c/m/d/m/f.java new file mode 100644 index 0000000000..560cb2c9f1 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/f.java @@ -0,0 +1,227 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session */ +public final class f extends v.d { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1703b; + public final long c; + public final Long d; + public final boolean e; + public final v.d.a f; + public final v.d.f g; + public final v.d.e h; + public final v.d.c i; + public final w j; + public final int k; + + /* compiled from: AutoValue_CrashlyticsReport_Session */ + public static final class b extends v.d.b { + public String a; + + /* renamed from: b reason: collision with root package name */ + public String f1704b; + public Long c; + public Long d; + public Boolean e; + public v.d.a f; + public v.d.f g; + public v.d.e h; + public v.d.c i; + public w j; + public Integer k; + + public b() { + } + + public b(v.d dVar, a aVar) { + f fVar = (f) dVar; + this.a = fVar.a; + this.f1704b = fVar.f1703b; + this.c = Long.valueOf(fVar.c); + this.d = fVar.d; + this.e = Boolean.valueOf(fVar.e); + this.f = fVar.f; + this.g = fVar.g; + this.h = fVar.h; + this.i = fVar.i; + this.j = fVar.j; + this.k = Integer.valueOf(fVar.k); + } + + @Override // b.i.c.m.d.m.v.d.b + public v.d a() { + String str = this.a == null ? " generator" : ""; + if (this.f1704b == null) { + str = b.d.b.a.a.v(str, " identifier"); + } + if (this.c == null) { + str = b.d.b.a.a.v(str, " startedAt"); + } + if (this.e == null) { + str = b.d.b.a.a.v(str, " crashed"); + } + if (this.f == null) { + str = b.d.b.a.a.v(str, " app"); + } + if (this.k == null) { + str = b.d.b.a.a.v(str, " generatorType"); + } + if (str.isEmpty()) { + return new f(this.a, this.f1704b, this.c.longValue(), this.d, this.e.booleanValue(), this.f, this.g, this.h, this.i, this.j, this.k.intValue(), null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + + public v.d.b b(boolean z2) { + this.e = Boolean.valueOf(z2); + return this; + } + } + + public f(String str, String str2, long j, Long l, boolean z2, v.d.a aVar, v.d.f fVar, v.d.e eVar, v.d.c cVar, w wVar, int i, a aVar2) { + this.a = str; + this.f1703b = str2; + this.c = j; + this.d = l; + this.e = z2; + this.f = aVar; + this.g = fVar; + this.h = eVar; + this.i = cVar; + this.j = wVar; + this.k = i; + } + + @Override // b.i.c.m.d.m.v.d + @NonNull + public v.d.a a() { + return this.f; + } + + @Override // b.i.c.m.d.m.v.d + @Nullable + public v.d.c b() { + return this.i; + } + + @Override // b.i.c.m.d.m.v.d + @Nullable + public Long c() { + return this.d; + } + + @Override // b.i.c.m.d.m.v.d + @Nullable + public w d() { + return this.j; + } + + @Override // b.i.c.m.d.m.v.d + @NonNull + public String e() { + return this.a; + } + + public boolean equals(Object obj) { + Long l; + v.d.f fVar; + v.d.e eVar; + v.d.c cVar; + w wVar; + if (obj == this) { + return true; + } + if (!(obj instanceof v.d)) { + return false; + } + v.d dVar = (v.d) obj; + return this.a.equals(dVar.e()) && this.f1703b.equals(dVar.g()) && this.c == dVar.i() && ((l = this.d) != null ? l.equals(dVar.c()) : dVar.c() == null) && this.e == dVar.k() && this.f.equals(dVar.a()) && ((fVar = this.g) != null ? fVar.equals(dVar.j()) : dVar.j() == null) && ((eVar = this.h) != null ? eVar.equals(dVar.h()) : dVar.h() == null) && ((cVar = this.i) != null ? cVar.equals(dVar.b()) : dVar.b() == null) && ((wVar = this.j) != null ? wVar.equals(dVar.d()) : dVar.d() == null) && this.k == dVar.f(); + } + + @Override // b.i.c.m.d.m.v.d + public int f() { + return this.k; + } + + @Override // b.i.c.m.d.m.v.d + @NonNull + public String g() { + return this.f1703b; + } + + @Override // b.i.c.m.d.m.v.d + @Nullable + public v.d.e h() { + return this.h; + } + + public int hashCode() { + long j = this.c; + int hashCode = (((((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1703b.hashCode()) * 1000003) ^ ((int) (j ^ (j >>> 32)))) * 1000003; + Long l = this.d; + int i = 0; + int hashCode2 = (((((hashCode ^ (l == null ? 0 : l.hashCode())) * 1000003) ^ (this.e ? 1231 : 1237)) * 1000003) ^ this.f.hashCode()) * 1000003; + v.d.f fVar = this.g; + int hashCode3 = (hashCode2 ^ (fVar == null ? 0 : fVar.hashCode())) * 1000003; + v.d.e eVar = this.h; + int hashCode4 = (hashCode3 ^ (eVar == null ? 0 : eVar.hashCode())) * 1000003; + v.d.c cVar = this.i; + int hashCode5 = (hashCode4 ^ (cVar == null ? 0 : cVar.hashCode())) * 1000003; + w wVar = this.j; + if (wVar != null) { + i = wVar.hashCode(); + } + return ((hashCode5 ^ i) * 1000003) ^ this.k; + } + + @Override // b.i.c.m.d.m.v.d + public long i() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d + @Nullable + public v.d.f j() { + return this.g; + } + + @Override // b.i.c.m.d.m.v.d + public boolean k() { + return this.e; + } + + @Override // b.i.c.m.d.m.v.d + public v.d.b l() { + return new b(this, null); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Session{generator="); + R.append(this.a); + R.append(", identifier="); + R.append(this.f1703b); + R.append(", startedAt="); + R.append(this.c); + R.append(", endedAt="); + R.append(this.d); + R.append(", crashed="); + R.append(this.e); + R.append(", app="); + R.append(this.f); + R.append(", user="); + R.append(this.g); + R.append(", os="); + R.append(this.h); + R.append(", device="); + R.append(this.i); + R.append(", events="); + R.append(this.j); + R.append(", generatorType="); + return b.d.b.a.a.A(R, this.k, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/g.java b/app/src/main/java/b/i/c/m/d/m/g.java new file mode 100644 index 0000000000..4df61106c1 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/g.java @@ -0,0 +1,128 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Application */ +public final class g extends v.d.a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1705b; + public final String c; + public final v.d.a.AbstractC0135a d = null; + public final String e; + public final String f; + public final String g; + + public g(String str, String str2, String str3, v.d.a.AbstractC0135a aVar, String str4, String str5, String str6, a aVar2) { + this.a = str; + this.f1705b = str2; + this.c = str3; + this.e = str4; + this.f = str5; + this.g = str6; + } + + @Override // b.i.c.m.d.m.v.d.a + @Nullable + public String a() { + return this.f; + } + + @Override // b.i.c.m.d.m.v.d.a + @Nullable + public String b() { + return this.g; + } + + @Override // b.i.c.m.d.m.v.d.a + @Nullable + public String c() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.a + @NonNull + public String d() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.d.a + @Nullable + public String e() { + return this.e; + } + + public boolean equals(Object obj) { + String str; + v.d.a.AbstractC0135a aVar; + String str2; + String str3; + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.a)) { + return false; + } + v.d.a aVar2 = (v.d.a) obj; + if (this.a.equals(aVar2.d()) && this.f1705b.equals(aVar2.g()) && ((str = this.c) != null ? str.equals(aVar2.c()) : aVar2.c() == null) && ((aVar = this.d) != null ? aVar.equals(aVar2.f()) : aVar2.f() == null) && ((str2 = this.e) != null ? str2.equals(aVar2.e()) : aVar2.e() == null) && ((str3 = this.f) != null ? str3.equals(aVar2.a()) : aVar2.a() == null)) { + String str4 = this.g; + if (str4 == null) { + if (aVar2.b() == null) { + return true; + } + } else if (str4.equals(aVar2.b())) { + return true; + } + } + return false; + } + + @Override // b.i.c.m.d.m.v.d.a + @Nullable + public v.d.a.AbstractC0135a f() { + return this.d; + } + + @Override // b.i.c.m.d.m.v.d.a + @NonNull + public String g() { + return this.f1705b; + } + + public int hashCode() { + int hashCode = (((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1705b.hashCode()) * 1000003; + String str = this.c; + int i = 0; + int hashCode2 = (hashCode ^ (str == null ? 0 : str.hashCode())) * 1000003; + v.d.a.AbstractC0135a aVar = this.d; + int hashCode3 = (hashCode2 ^ (aVar == null ? 0 : aVar.hashCode())) * 1000003; + String str2 = this.e; + int hashCode4 = (hashCode3 ^ (str2 == null ? 0 : str2.hashCode())) * 1000003; + String str3 = this.f; + int hashCode5 = (hashCode4 ^ (str3 == null ? 0 : str3.hashCode())) * 1000003; + String str4 = this.g; + if (str4 != null) { + i = str4.hashCode(); + } + return hashCode5 ^ i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Application{identifier="); + R.append(this.a); + R.append(", version="); + R.append(this.f1705b); + R.append(", displayVersion="); + R.append(this.c); + R.append(", organization="); + R.append(this.d); + R.append(", installationUuid="); + R.append(this.e); + R.append(", developmentPlatform="); + R.append(this.f); + R.append(", developmentPlatformVersion="); + return b.d.b.a.a.H(R, this.g, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/h.java b/app/src/main/java/b/i/c/m/d/m/h.java new file mode 100644 index 0000000000..d2e51f997a --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/h.java @@ -0,0 +1,31 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Application_Organization */ +public final class h extends v.d.a.AbstractC0135a { + @Override // b.i.c.m.d.m.v.d.a.AbstractC0135a + @NonNull + public String a() { + return null; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.a.AbstractC0135a)) { + return false; + } + ((v.d.a.AbstractC0135a) obj).a(); + throw null; + } + + public int hashCode() { + throw null; + } + + public String toString() { + return "Organization{clsId=null}"; + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/i.java b/app/src/main/java/b/i/c/m/d/m/i.java new file mode 100644 index 0000000000..6903bff3bd --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/i.java @@ -0,0 +1,164 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Device */ +public final class i extends v.d.c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final String f1706b; + public final int c; + public final long d; + public final long e; + public final boolean f; + public final int g; + public final String h; + public final String i; + + /* compiled from: AutoValue_CrashlyticsReport_Session_Device */ + public static final class b extends v.d.c.a { + public Integer a; + + /* renamed from: b reason: collision with root package name */ + public String f1707b; + public Integer c; + public Long d; + public Long e; + public Boolean f; + public Integer g; + public String h; + public String i; + + public v.d.c a() { + String str = this.a == null ? " arch" : ""; + if (this.f1707b == null) { + str = b.d.b.a.a.v(str, " model"); + } + if (this.c == null) { + str = b.d.b.a.a.v(str, " cores"); + } + if (this.d == null) { + str = b.d.b.a.a.v(str, " ram"); + } + if (this.e == null) { + str = b.d.b.a.a.v(str, " diskSpace"); + } + if (this.f == null) { + str = b.d.b.a.a.v(str, " simulator"); + } + if (this.g == null) { + str = b.d.b.a.a.v(str, " state"); + } + if (this.h == null) { + str = b.d.b.a.a.v(str, " manufacturer"); + } + if (this.i == null) { + str = b.d.b.a.a.v(str, " modelClass"); + } + if (str.isEmpty()) { + return new i(this.a.intValue(), this.f1707b, this.c.intValue(), this.d.longValue(), this.e.longValue(), this.f.booleanValue(), this.g.intValue(), this.h, this.i, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + } + + public i(int i, String str, int i2, long j, long j2, boolean z2, int i3, String str2, String str3, a aVar) { + this.a = i; + this.f1706b = str; + this.c = i2; + this.d = j; + this.e = j2; + this.f = z2; + this.g = i3; + this.h = str2; + this.i = str3; + } + + @Override // b.i.c.m.d.m.v.d.c + @NonNull + public int a() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.d.c + public int b() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.c + public long c() { + return this.e; + } + + @Override // b.i.c.m.d.m.v.d.c + @NonNull + public String d() { + return this.h; + } + + @Override // b.i.c.m.d.m.v.d.c + @NonNull + public String e() { + return this.f1706b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.c)) { + return false; + } + v.d.c cVar = (v.d.c) obj; + return this.a == cVar.a() && this.f1706b.equals(cVar.e()) && this.c == cVar.b() && this.d == cVar.g() && this.e == cVar.c() && this.f == cVar.i() && this.g == cVar.h() && this.h.equals(cVar.d()) && this.i.equals(cVar.f()); + } + + @Override // b.i.c.m.d.m.v.d.c + @NonNull + public String f() { + return this.i; + } + + @Override // b.i.c.m.d.m.v.d.c + public long g() { + return this.d; + } + + @Override // b.i.c.m.d.m.v.d.c + public int h() { + return this.g; + } + + public int hashCode() { + long j = this.d; + long j2 = this.e; + return ((((((((((((((((this.a ^ 1000003) * 1000003) ^ this.f1706b.hashCode()) * 1000003) ^ this.c) * 1000003) ^ ((int) (j ^ (j >>> 32)))) * 1000003) ^ ((int) (j2 ^ (j2 >>> 32)))) * 1000003) ^ (this.f ? 1231 : 1237)) * 1000003) ^ this.g) * 1000003) ^ this.h.hashCode()) * 1000003) ^ this.i.hashCode(); + } + + @Override // b.i.c.m.d.m.v.d.c + public boolean i() { + return this.f; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Device{arch="); + R.append(this.a); + R.append(", model="); + R.append(this.f1706b); + R.append(", cores="); + R.append(this.c); + R.append(", ram="); + R.append(this.d); + R.append(", diskSpace="); + R.append(this.e); + R.append(", simulator="); + R.append(this.f); + R.append(", state="); + R.append(this.g); + R.append(", manufacturer="); + R.append(this.h); + R.append(", modelClass="); + return b.d.b.a.a.H(R, this.i, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/j.java b/app/src/main/java/b/i/c/m/d/m/j.java new file mode 100644 index 0000000000..46b396dff8 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/j.java @@ -0,0 +1,95 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event */ +public final class j extends v.d.AbstractC0136d { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final String f1708b; + public final v.d.AbstractC0136d.a c; + public final v.d.AbstractC0136d.b d; + public final v.d.AbstractC0136d.c e; + + public j(long j, String str, v.d.AbstractC0136d.a aVar, v.d.AbstractC0136d.b bVar, v.d.AbstractC0136d.c cVar, a aVar2) { + this.a = j; + this.f1708b = str; + this.c = aVar; + this.d = bVar; + this.e = cVar; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d + @NonNull + public v.d.AbstractC0136d.a a() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d + @NonNull + public v.d.AbstractC0136d.b b() { + return this.d; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d + @Nullable + public v.d.AbstractC0136d.c c() { + return this.e; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d + public long d() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d + @NonNull + public String e() { + return this.f1708b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d)) { + return false; + } + v.d.AbstractC0136d dVar = (v.d.AbstractC0136d) obj; + if (this.a == dVar.d() && this.f1708b.equals(dVar.e()) && this.c.equals(dVar.a()) && this.d.equals(dVar.b())) { + v.d.AbstractC0136d.c cVar = this.e; + if (cVar == null) { + if (dVar.c() == null) { + return true; + } + } else if (cVar.equals(dVar.c())) { + return true; + } + } + return false; + } + + public int hashCode() { + long j = this.a; + int hashCode = (((((((((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003) ^ this.f1708b.hashCode()) * 1000003) ^ this.c.hashCode()) * 1000003) ^ this.d.hashCode()) * 1000003; + v.d.AbstractC0136d.c cVar = this.e; + return (cVar == null ? 0 : cVar.hashCode()) ^ hashCode; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Event{timestamp="); + R.append(this.a); + R.append(", type="); + R.append(this.f1708b); + R.append(", app="); + R.append(this.c); + R.append(", device="); + R.append(this.d); + R.append(", log="); + R.append(this.e); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/k.java b/app/src/main/java/b/i/c/m/d/m/k.java new file mode 100644 index 0000000000..f9751fe830 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/k.java @@ -0,0 +1,116 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application */ +public final class k extends v.d.AbstractC0136d.a { + public final v.d.AbstractC0136d.a.b a; + + /* renamed from: b reason: collision with root package name */ + public final w f1709b; + public final Boolean c; + public final int d; + + /* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application */ + public static final class b extends v.d.AbstractC0136d.a.AbstractC0137a { + public v.d.AbstractC0136d.a.b a; + + /* renamed from: b reason: collision with root package name */ + public w f1710b; + public Boolean c; + public Integer d; + + public b() { + } + + public b(v.d.AbstractC0136d.a aVar, a aVar2) { + k kVar = (k) aVar; + this.a = kVar.a; + this.f1710b = kVar.f1709b; + this.c = kVar.c; + this.d = Integer.valueOf(kVar.d); + } + + public v.d.AbstractC0136d.a a() { + String str = this.a == null ? " execution" : ""; + if (this.d == null) { + str = b.d.b.a.a.v(str, " uiOrientation"); + } + if (str.isEmpty()) { + return new k(this.a, this.f1710b, this.c, this.d.intValue(), null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + } + + public k(v.d.AbstractC0136d.a.b bVar, w wVar, Boolean bool, int i, a aVar) { + this.a = bVar; + this.f1709b = wVar; + this.c = bool; + this.d = i; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a + @Nullable + public Boolean a() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a + @Nullable + public w b() { + return this.f1709b; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a + @NonNull + public v.d.AbstractC0136d.a.b c() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a + public int d() { + return this.d; + } + + public v.d.AbstractC0136d.a.AbstractC0137a e() { + return new b(this, null); + } + + public boolean equals(Object obj) { + w wVar; + Boolean bool; + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d.a)) { + return false; + } + v.d.AbstractC0136d.a aVar = (v.d.AbstractC0136d.a) obj; + return this.a.equals(aVar.c()) && ((wVar = this.f1709b) != null ? wVar.equals(aVar.b()) : aVar.b() == null) && ((bool = this.c) != null ? bool.equals(aVar.a()) : aVar.a() == null) && this.d == aVar.d(); + } + + public int hashCode() { + int hashCode = (this.a.hashCode() ^ 1000003) * 1000003; + w wVar = this.f1709b; + int i = 0; + int hashCode2 = (hashCode ^ (wVar == null ? 0 : wVar.hashCode())) * 1000003; + Boolean bool = this.c; + if (bool != null) { + i = bool.hashCode(); + } + return ((hashCode2 ^ i) * 1000003) ^ this.d; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Application{execution="); + R.append(this.a); + R.append(", customAttributes="); + R.append(this.f1709b); + R.append(", background="); + R.append(this.c); + R.append(", uiOrientation="); + return b.d.b.a.a.A(R, this.d, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/l.java b/app/src/main/java/b/i/c/m/d/m/l.java new file mode 100644 index 0000000000..bdb0485fbb --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/l.java @@ -0,0 +1,72 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application_Execution */ +public final class l extends v.d.AbstractC0136d.a.b { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final v.d.AbstractC0136d.a.b.AbstractC0139b f1711b; + public final v.d.AbstractC0136d.a.b.c c; + public final w d; + + public l(w wVar, v.d.AbstractC0136d.a.b.AbstractC0139b bVar, v.d.AbstractC0136d.a.b.c cVar, w wVar2, a aVar) { + this.a = wVar; + this.f1711b = bVar; + this.c = cVar; + this.d = wVar2; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b + @NonNull + public w a() { + return this.d; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b + @NonNull + public v.d.AbstractC0136d.a.b.AbstractC0139b b() { + return this.f1711b; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b + @NonNull + public v.d.AbstractC0136d.a.b.c c() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b + @NonNull + public w d() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d.a.b)) { + return false; + } + v.d.AbstractC0136d.a.b bVar = (v.d.AbstractC0136d.a.b) obj; + return this.a.equals(bVar.d()) && this.f1711b.equals(bVar.b()) && this.c.equals(bVar.c()) && this.d.equals(bVar.a()); + } + + public int hashCode() { + return ((((((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1711b.hashCode()) * 1000003) ^ this.c.hashCode()) * 1000003) ^ this.d.hashCode(); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Execution{threads="); + R.append(this.a); + R.append(", exception="); + R.append(this.f1711b); + R.append(", signal="); + R.append(this.c); + R.append(", binaries="); + R.append(this.d); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/m.java b/app/src/main/java/b/i/c/m/d/m/m.java new file mode 100644 index 0000000000..29c49b8227 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/m.java @@ -0,0 +1,84 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application_Execution_BinaryImage */ +public final class m extends v.d.AbstractC0136d.a.b.AbstractC0138a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f1712b; + public final String c; + public final String d; + + public m(long j, long j2, String str, String str2, a aVar) { + this.a = j; + this.f1712b = j2; + this.c = str; + this.d = str2; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0138a + @NonNull + public long a() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0138a + @NonNull + public String b() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0138a + public long c() { + return this.f1712b; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0138a + @Nullable + public String d() { + return this.d; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d.a.b.AbstractC0138a)) { + return false; + } + v.d.AbstractC0136d.a.b.AbstractC0138a aVar = (v.d.AbstractC0136d.a.b.AbstractC0138a) obj; + if (this.a == aVar.a() && this.f1712b == aVar.c() && this.c.equals(aVar.b())) { + String str = this.d; + if (str == null) { + if (aVar.d() == null) { + return true; + } + } else if (str.equals(aVar.d())) { + return true; + } + } + return false; + } + + public int hashCode() { + long j = this.a; + long j2 = this.f1712b; + int hashCode = (((((((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003) ^ ((int) ((j2 >>> 32) ^ j2))) * 1000003) ^ this.c.hashCode()) * 1000003; + String str = this.d; + return (str == null ? 0 : str.hashCode()) ^ hashCode; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("BinaryImage{baseAddress="); + R.append(this.a); + R.append(", size="); + R.append(this.f1712b); + R.append(", name="); + R.append(this.c); + R.append(", uuid="); + return b.d.b.a.a.H(R, this.d, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/n.java b/app/src/main/java/b/i/c/m/d/m/n.java new file mode 100644 index 0000000000..dbff91c49d --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/n.java @@ -0,0 +1,90 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Exception */ +public final class n extends v.d.AbstractC0136d.a.b.AbstractC0139b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1713b; + public final w c; + public final v.d.AbstractC0136d.a.b.AbstractC0139b d; + public final int e; + + public n(String str, String str2, w wVar, v.d.AbstractC0136d.a.b.AbstractC0139b bVar, int i, a aVar) { + this.a = str; + this.f1713b = str2; + this.c = wVar; + this.d = bVar; + this.e = i; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0139b + @Nullable + public v.d.AbstractC0136d.a.b.AbstractC0139b a() { + return this.d; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0139b + @NonNull + public w b() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0139b + public int c() { + return this.e; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0139b + @Nullable + public String d() { + return this.f1713b; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0139b + @NonNull + public String e() { + return this.a; + } + + public boolean equals(Object obj) { + String str; + v.d.AbstractC0136d.a.b.AbstractC0139b bVar; + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d.a.b.AbstractC0139b)) { + return false; + } + v.d.AbstractC0136d.a.b.AbstractC0139b bVar2 = (v.d.AbstractC0136d.a.b.AbstractC0139b) obj; + return this.a.equals(bVar2.e()) && ((str = this.f1713b) != null ? str.equals(bVar2.d()) : bVar2.d() == null) && this.c.equals(bVar2.b()) && ((bVar = this.d) != null ? bVar.equals(bVar2.a()) : bVar2.a() == null) && this.e == bVar2.c(); + } + + public int hashCode() { + int hashCode = (this.a.hashCode() ^ 1000003) * 1000003; + String str = this.f1713b; + int i = 0; + int hashCode2 = (((hashCode ^ (str == null ? 0 : str.hashCode())) * 1000003) ^ this.c.hashCode()) * 1000003; + v.d.AbstractC0136d.a.b.AbstractC0139b bVar = this.d; + if (bVar != null) { + i = bVar.hashCode(); + } + return ((hashCode2 ^ i) * 1000003) ^ this.e; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Exception{type="); + R.append(this.a); + R.append(", reason="); + R.append(this.f1713b); + R.append(", frames="); + R.append(this.c); + R.append(", causedBy="); + R.append(this.d); + R.append(", overflowCount="); + return b.d.b.a.a.A(R, this.e, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/o.java b/app/src/main/java/b/i/c/m/d/m/o.java new file mode 100644 index 0000000000..49ef8e8cbe --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/o.java @@ -0,0 +1,61 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Signal */ +public final class o extends v.d.AbstractC0136d.a.b.c { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1714b; + public final long c; + + public o(String str, String str2, long j, a aVar) { + this.a = str; + this.f1714b = str2; + this.c = j; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.c + @NonNull + public long a() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.c + @NonNull + public String b() { + return this.f1714b; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.c + @NonNull + public String c() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d.a.b.c)) { + return false; + } + v.d.AbstractC0136d.a.b.c cVar = (v.d.AbstractC0136d.a.b.c) obj; + return this.a.equals(cVar.c()) && this.f1714b.equals(cVar.b()) && this.c == cVar.a(); + } + + public int hashCode() { + long j = this.c; + return ((((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1714b.hashCode()) * 1000003) ^ ((int) (j ^ (j >>> 32))); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Signal{name="); + R.append(this.a); + R.append(", code="); + R.append(this.f1714b); + R.append(", address="); + return b.d.b.a.a.B(R, this.c, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/p.java b/app/src/main/java/b/i/c/m/d/m/p.java new file mode 100644 index 0000000000..fabd4532e7 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/p.java @@ -0,0 +1,61 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Thread */ +public final class p extends v.d.AbstractC0136d.a.b.AbstractC0140d { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final int f1715b; + public final w c; + + public p(String str, int i, w wVar, a aVar) { + this.a = str; + this.f1715b = i; + this.c = wVar; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0140d + @NonNull + public w a() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0140d + public int b() { + return this.f1715b; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0140d + @NonNull + public String c() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d.a.b.AbstractC0140d)) { + return false; + } + v.d.AbstractC0136d.a.b.AbstractC0140d dVar = (v.d.AbstractC0136d.a.b.AbstractC0140d) obj; + return this.a.equals(dVar.c()) && this.f1715b == dVar.b() && this.c.equals(dVar.a()); + } + + public int hashCode() { + return ((((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1715b) * 1000003) ^ this.c.hashCode(); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Thread{name="); + R.append(this.a); + R.append(", importance="); + R.append(this.f1715b); + R.append(", frames="); + R.append(this.c); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/q.java b/app/src/main/java/b/i/c/m/d/m/q.java new file mode 100644 index 0000000000..c60f8a5d24 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/q.java @@ -0,0 +1,112 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Thread_Frame */ +public final class q extends v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final String f1716b; + public final String c; + public final long d; + public final int e; + + /* compiled from: AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Thread_Frame */ + public static final class b extends v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a.AbstractC0142a { + public Long a; + + /* renamed from: b reason: collision with root package name */ + public String f1717b; + public String c; + public Long d; + public Integer e; + + public v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a a() { + String str = this.a == null ? " pc" : ""; + if (this.f1717b == null) { + str = b.d.b.a.a.v(str, " symbol"); + } + if (this.d == null) { + str = b.d.b.a.a.v(str, " offset"); + } + if (this.e == null) { + str = b.d.b.a.a.v(str, " importance"); + } + if (str.isEmpty()) { + return new q(this.a.longValue(), this.f1717b, this.c, this.d.longValue(), this.e.intValue(), null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + } + + public q(long j, String str, String str2, long j2, int i, a aVar) { + this.a = j; + this.f1716b = str; + this.c = str2; + this.d = j2; + this.e = i; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a + @Nullable + public String a() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a + public int b() { + return this.e; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a + public long c() { + return this.d; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a + public long d() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a + @NonNull + public String e() { + return this.f1716b; + } + + public boolean equals(Object obj) { + String str; + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a)) { + return false; + } + v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a aVar = (v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a) obj; + return this.a == aVar.d() && this.f1716b.equals(aVar.e()) && ((str = this.c) != null ? str.equals(aVar.a()) : aVar.a() == null) && this.d == aVar.c() && this.e == aVar.b(); + } + + public int hashCode() { + long j = this.a; + int hashCode = (((((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003) ^ this.f1716b.hashCode()) * 1000003; + String str = this.c; + int hashCode2 = str == null ? 0 : str.hashCode(); + long j2 = this.d; + return this.e ^ ((((hashCode ^ hashCode2) * 1000003) ^ ((int) ((j2 >>> 32) ^ j2))) * 1000003); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Frame{pc="); + R.append(this.a); + R.append(", symbol="); + R.append(this.f1716b); + R.append(", file="); + R.append(this.c); + R.append(", offset="); + R.append(this.d); + R.append(", importance="); + return b.d.b.a.a.A(R, this.e, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/r.java b/app/src/main/java/b/i/c/m/d/m/r.java new file mode 100644 index 0000000000..35a0b6d0e1 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/r.java @@ -0,0 +1,128 @@ +package b.i.c.m.d.m; + +import androidx.annotation.Nullable; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Device */ +public final class r extends v.d.AbstractC0136d.b { + public final Double a; + + /* renamed from: b reason: collision with root package name */ + public final int f1718b; + public final boolean c; + public final int d; + public final long e; + public final long f; + + /* compiled from: AutoValue_CrashlyticsReport_Session_Event_Device */ + public static final class b extends v.d.AbstractC0136d.b.a { + public Double a; + + /* renamed from: b reason: collision with root package name */ + public Integer f1719b; + public Boolean c; + public Integer d; + public Long e; + public Long f; + + public v.d.AbstractC0136d.b a() { + String str = this.f1719b == null ? " batteryVelocity" : ""; + if (this.c == null) { + str = b.d.b.a.a.v(str, " proximityOn"); + } + if (this.d == null) { + str = b.d.b.a.a.v(str, " orientation"); + } + if (this.e == null) { + str = b.d.b.a.a.v(str, " ramUsed"); + } + if (this.f == null) { + str = b.d.b.a.a.v(str, " diskUsed"); + } + if (str.isEmpty()) { + return new r(this.a, this.f1719b.intValue(), this.c.booleanValue(), this.d.intValue(), this.e.longValue(), this.f.longValue(), null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + } + + public r(Double d, int i, boolean z2, int i2, long j, long j2, a aVar) { + this.a = d; + this.f1718b = i; + this.c = z2; + this.d = i2; + this.e = j; + this.f = j2; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.b + @Nullable + public Double a() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.b + public int b() { + return this.f1718b; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.b + public long c() { + return this.f; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.b + public int d() { + return this.d; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.b + public long e() { + return this.e; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.AbstractC0136d.b)) { + return false; + } + v.d.AbstractC0136d.b bVar = (v.d.AbstractC0136d.b) obj; + Double d = this.a; + if (d != null ? d.equals(bVar.a()) : bVar.a() == null) { + if (this.f1718b == bVar.b() && this.c == bVar.f() && this.d == bVar.d() && this.e == bVar.e() && this.f == bVar.c()) { + return true; + } + } + return false; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.b + public boolean f() { + return this.c; + } + + public int hashCode() { + Double d = this.a; + int hashCode = ((((d == null ? 0 : d.hashCode()) ^ 1000003) * 1000003) ^ this.f1718b) * 1000003; + int i = this.c ? 1231 : 1237; + long j = this.e; + long j2 = this.f; + return ((((((hashCode ^ i) * 1000003) ^ this.d) * 1000003) ^ ((int) (j ^ (j >>> 32)))) * 1000003) ^ ((int) (j2 ^ (j2 >>> 32))); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("Device{batteryLevel="); + R.append(this.a); + R.append(", batteryVelocity="); + R.append(this.f1718b); + R.append(", proximityOn="); + R.append(this.c); + R.append(", orientation="); + R.append(this.d); + R.append(", ramUsed="); + R.append(this.e); + R.append(", diskUsed="); + return b.d.b.a.a.B(R, this.f, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/s.java b/app/src/main/java/b/i/c/m/d/m/s.java new file mode 100644 index 0000000000..323d63743c --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/s.java @@ -0,0 +1,36 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_Event_Log */ +public final class s extends v.d.AbstractC0136d.c { + public final String a; + + public s(String str, a aVar) { + this.a = str; + } + + @Override // b.i.c.m.d.m.v.d.AbstractC0136d.c + @NonNull + public String a() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof v.d.AbstractC0136d.c) { + return this.a.equals(((v.d.AbstractC0136d.c) obj).a()); + } + return false; + } + + public int hashCode() { + return this.a.hashCode() ^ 1000003; + } + + public String toString() { + return b.d.b.a.a.H(b.d.b.a.a.R("Log{content="), this.a, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/t.java b/app/src/main/java/b/i/c/m/d/m/t.java new file mode 100644 index 0000000000..f6c3826064 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/t.java @@ -0,0 +1,68 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_OperatingSystem */ +public final class t extends v.d.e { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final String f1720b; + public final String c; + public final boolean d; + + public t(int i, String str, String str2, boolean z2, a aVar) { + this.a = i; + this.f1720b = str; + this.c = str2; + this.d = z2; + } + + @Override // b.i.c.m.d.m.v.d.e + @NonNull + public String a() { + return this.c; + } + + @Override // b.i.c.m.d.m.v.d.e + public int b() { + return this.a; + } + + @Override // b.i.c.m.d.m.v.d.e + @NonNull + public String c() { + return this.f1720b; + } + + @Override // b.i.c.m.d.m.v.d.e + public boolean d() { + return this.d; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof v.d.e)) { + return false; + } + v.d.e eVar = (v.d.e) obj; + return this.a == eVar.b() && this.f1720b.equals(eVar.c()) && this.c.equals(eVar.a()) && this.d == eVar.d(); + } + + public int hashCode() { + return ((((((this.a ^ 1000003) * 1000003) ^ this.f1720b.hashCode()) * 1000003) ^ this.c.hashCode()) * 1000003) ^ (this.d ? 1231 : 1237); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("OperatingSystem{platform="); + R.append(this.a); + R.append(", version="); + R.append(this.f1720b); + R.append(", buildVersion="); + R.append(this.c); + R.append(", jailbroken="); + return b.d.b.a.a.L(R, this.d, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/u.java b/app/src/main/java/b/i/c/m/d/m/u.java new file mode 100644 index 0000000000..07fb4ed3c3 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/u.java @@ -0,0 +1,36 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import b.i.c.m.d.m.v; +/* compiled from: AutoValue_CrashlyticsReport_Session_User */ +public final class u extends v.d.f { + public final String a; + + public u(String str, a aVar) { + this.a = str; + } + + @Override // b.i.c.m.d.m.v.d.f + @NonNull + public String a() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof v.d.f) { + return this.a.equals(((v.d.f) obj).a()); + } + return false; + } + + public int hashCode() { + return this.a.hashCode() ^ 1000003; + } + + public String toString() { + return b.d.b.a.a.H(b.d.b.a.a.R("User{identifier="), this.a, "}"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/v.java b/app/src/main/java/b/i/c/m/d/m/v.java new file mode 100644 index 0000000000..bc2fb6f68c --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/v.java @@ -0,0 +1,409 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.b; +import b.i.c.m.d.m.f; +import com.adjust.sdk.Constants; +import com.google.auto.value.AutoValue; +import java.nio.charset.Charset; +/* compiled from: CrashlyticsReport */ +@AutoValue +public abstract class v { + public static final Charset a = Charset.forName(Constants.ENCODING); + + /* compiled from: CrashlyticsReport */ + @AutoValue.Builder + public static abstract class a { + @NonNull + public abstract v a(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + public static abstract class b { + @NonNull + public abstract String a(); + + @NonNull + public abstract String b(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + public static abstract class c { + + /* compiled from: CrashlyticsReport */ + @AutoValue + public static abstract class a { + @NonNull + public abstract byte[] a(); + + @NonNull + public abstract String b(); + } + + @NonNull + public abstract w a(); + + @Nullable + public abstract String b(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + public static abstract class d { + + /* compiled from: CrashlyticsReport */ + @AutoValue + public static abstract class a { + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$a$a reason: collision with other inner class name */ + public static abstract class AbstractC0135a { + @NonNull + public abstract String a(); + } + + @Nullable + public abstract String a(); + + @Nullable + public abstract String b(); + + @Nullable + public abstract String c(); + + @NonNull + public abstract String d(); + + @Nullable + public abstract String e(); + + @Nullable + public abstract AbstractC0135a f(); + + @NonNull + public abstract String g(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue.Builder + public static abstract class b { + @NonNull + public abstract d a(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + public static abstract class c { + + /* compiled from: CrashlyticsReport */ + @AutoValue.Builder + public static abstract class a { + } + + @NonNull + public abstract int a(); + + public abstract int b(); + + public abstract long c(); + + @NonNull + public abstract String d(); + + @NonNull + public abstract String e(); + + @NonNull + public abstract String f(); + + public abstract long g(); + + public abstract int h(); + + public abstract boolean i(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d reason: collision with other inner class name */ + public static abstract class AbstractC0136d { + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$a */ + public static abstract class a { + + /* compiled from: CrashlyticsReport */ + @AutoValue.Builder + /* renamed from: b.i.c.m.d.m.v$d$d$a$a reason: collision with other inner class name */ + public static abstract class AbstractC0137a { + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$a$b */ + public static abstract class b { + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$a$b$a reason: collision with other inner class name */ + public static abstract class AbstractC0138a { + @NonNull + public abstract long a(); + + @NonNull + public abstract String b(); + + public abstract long c(); + + @Nullable + public abstract String d(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$a$b$b reason: collision with other inner class name */ + public static abstract class AbstractC0139b { + @Nullable + public abstract AbstractC0139b a(); + + @NonNull + public abstract w b(); + + public abstract int c(); + + @Nullable + public abstract String d(); + + @NonNull + public abstract String e(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$a$b$c */ + public static abstract class c { + @NonNull + public abstract long a(); + + @NonNull + public abstract String b(); + + @NonNull + public abstract String c(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$a$b$d reason: collision with other inner class name */ + public static abstract class AbstractC0140d { + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$a$b$d$a reason: collision with other inner class name */ + public static abstract class AbstractC0141a { + + /* compiled from: CrashlyticsReport */ + @AutoValue.Builder + /* renamed from: b.i.c.m.d.m.v$d$d$a$b$d$a$a reason: collision with other inner class name */ + public static abstract class AbstractC0142a { + } + + @Nullable + public abstract String a(); + + public abstract int b(); + + public abstract long c(); + + public abstract long d(); + + @NonNull + public abstract String e(); + } + + @NonNull + public abstract w a(); + + public abstract int b(); + + @NonNull + public abstract String c(); + } + + @NonNull + public abstract w a(); + + @NonNull + public abstract AbstractC0139b b(); + + @NonNull + public abstract c c(); + + @NonNull + public abstract w d(); + } + + @Nullable + public abstract Boolean a(); + + @Nullable + public abstract w b(); + + @NonNull + public abstract b c(); + + public abstract int d(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$b */ + public static abstract class b { + + /* compiled from: CrashlyticsReport */ + @AutoValue.Builder + /* renamed from: b.i.c.m.d.m.v$d$d$b$a */ + public static abstract class a { + } + + @Nullable + public abstract Double a(); + + public abstract int b(); + + public abstract long c(); + + public abstract int d(); + + public abstract long e(); + + public abstract boolean f(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + /* renamed from: b.i.c.m.d.m.v$d$d$c */ + public static abstract class c { + @NonNull + public abstract String a(); + } + + @NonNull + public abstract a a(); + + @NonNull + public abstract b b(); + + @Nullable + public abstract c c(); + + public abstract long d(); + + @NonNull + public abstract String e(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + public static abstract class e { + @NonNull + public abstract String a(); + + public abstract int b(); + + @NonNull + public abstract String c(); + + public abstract boolean d(); + } + + /* compiled from: CrashlyticsReport */ + @AutoValue + public static abstract class f { + @NonNull + public abstract String a(); + } + + @NonNull + public abstract a a(); + + @Nullable + public abstract c b(); + + @Nullable + public abstract Long c(); + + @Nullable + public abstract w d(); + + @NonNull + public abstract String e(); + + public abstract int f(); + + @NonNull + public abstract String g(); + + @Nullable + public abstract e h(); + + public abstract long i(); + + @Nullable + public abstract f j(); + + public abstract boolean k(); + + @NonNull + public abstract b l(); + } + + @NonNull + public abstract String a(); + + @NonNull + public abstract String b(); + + @NonNull + public abstract String c(); + + @NonNull + public abstract String d(); + + @Nullable + public abstract c e(); + + public abstract int f(); + + @NonNull + public abstract String g(); + + @Nullable + public abstract d h(); + + @NonNull + public abstract a i(); + + @NonNull + public v j(long j, boolean z2, @Nullable String str) { + a i = i(); + d dVar = ((b) this).h; + if (dVar != null) { + d.b l = dVar.l(); + f.b bVar = (f.b) l; + bVar.d = Long.valueOf(j); + bVar.e = Boolean.valueOf(z2); + if (str != null) { + bVar.g = new u(str, null); + bVar.a(); + } + ((b.C0134b) i).g = l.a(); + } + return i.a(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/w.java b/app/src/main/java/b/i/c/m/d/m/w.java new file mode 100644 index 0000000000..56d573b6c0 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/w.java @@ -0,0 +1,150 @@ +package b.i.c.m.d.m; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import java.util.Collection; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.ListIterator; +import java.util.RandomAccess; +/* compiled from: ImmutableList */ +public final class w implements List, RandomAccess { + public final List j; + + public w(List list) { + this.j = Collections.unmodifiableList(list); + } + + @Override // java.util.List + public void add(int i, @NonNull E e) { + this.j.add(i, e); + } + + @Override // java.util.List, java.util.Collection + public boolean add(@NonNull E e) { + return this.j.add(e); + } + + @Override // java.util.List + public boolean addAll(int i, @NonNull Collection collection) { + return this.j.addAll(i, collection); + } + + @Override // java.util.List, java.util.Collection + public boolean addAll(@NonNull Collection collection) { + return this.j.addAll(collection); + } + + @Override // java.util.List, java.util.Collection + public void clear() { + this.j.clear(); + } + + @Override // java.util.List, java.util.Collection + public boolean contains(@Nullable Object obj) { + return this.j.contains(obj); + } + + @Override // java.util.List, java.util.Collection + public boolean containsAll(@NonNull Collection collection) { + return this.j.containsAll(collection); + } + + @Override // java.util.List, java.util.Collection, java.lang.Object + public boolean equals(@Nullable Object obj) { + return this.j.equals(obj); + } + + @Override // java.util.List + @NonNull + public E get(int i) { + return this.j.get(i); + } + + @Override // java.util.List, java.util.Collection, java.lang.Object + public int hashCode() { + return this.j.hashCode(); + } + + @Override // java.util.List + public int indexOf(@Nullable Object obj) { + return this.j.indexOf(obj); + } + + @Override // java.util.List, java.util.Collection + public boolean isEmpty() { + return this.j.isEmpty(); + } + + @Override // java.util.List, java.util.Collection, java.lang.Iterable + @NonNull + public Iterator iterator() { + return this.j.iterator(); + } + + @Override // java.util.List + public int lastIndexOf(@Nullable Object obj) { + return this.j.lastIndexOf(obj); + } + + @Override // java.util.List + @NonNull + public ListIterator listIterator() { + return this.j.listIterator(); + } + + @Override // java.util.List + @NonNull + public ListIterator listIterator(int i) { + return this.j.listIterator(i); + } + + @Override // java.util.List + public E remove(int i) { + return this.j.remove(i); + } + + @Override // java.util.List, java.util.Collection + public boolean remove(@Nullable Object obj) { + return this.j.remove(obj); + } + + @Override // java.util.List, java.util.Collection + public boolean removeAll(@NonNull Collection collection) { + return this.j.removeAll(collection); + } + + @Override // java.util.List, java.util.Collection + public boolean retainAll(@NonNull Collection collection) { + return this.j.retainAll(collection); + } + + @Override // java.util.List + @NonNull + public E set(int i, @NonNull E e) { + return this.j.set(i, e); + } + + @Override // java.util.List, java.util.Collection + public int size() { + return this.j.size(); + } + + @Override // java.util.List + @NonNull + public List subList(int i, int i2) { + return this.j.subList(i, i2); + } + + @Override // java.util.List, java.util.Collection + @Nullable + public Object[] toArray() { + return this.j.toArray(); + } + + @Override // java.util.List, java.util.Collection + public T[] toArray(@Nullable T[] tArr) { + return (T[]) this.j.toArray(tArr); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/x/a.java b/app/src/main/java/b/i/c/m/d/m/x/a.java new file mode 100644 index 0000000000..ac105afc7a --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/x/a.java @@ -0,0 +1,13 @@ +package b.i.c.m.d.m.x; + +import android.util.JsonReader; +import b.i.c.m.d.m.x.h; +/* compiled from: CrashlyticsReportJsonTransform */ +public final /* synthetic */ class a implements h.a { + public static final a a = new a(); + + @Override // b.i.c.m.d.m.x.h.a + public Object a(JsonReader jsonReader) { + return h.b(jsonReader); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/x/b.java b/app/src/main/java/b/i/c/m/d/m/x/b.java new file mode 100644 index 0000000000..69e60d004e --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/x/b.java @@ -0,0 +1,42 @@ +package b.i.c.m.d.m.x; + +import android.util.Base64; +import android.util.JsonReader; +import b.i.c.m.d.m.e; +import b.i.c.m.d.m.x.h; +import b.i.c.p.a; +import java.util.Objects; +/* compiled from: CrashlyticsReportJsonTransform */ +public final /* synthetic */ class b implements h.a { + public static final b a = new b(); + + @Override // b.i.c.m.d.m.x.h.a + public Object a(JsonReader jsonReader) { + a aVar = h.a; + jsonReader.beginObject(); + String str = null; + byte[] bArr = null; + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + nextName.hashCode(); + if (nextName.equals("filename")) { + str = jsonReader.nextString(); + Objects.requireNonNull(str, "Null filename"); + } else if (!nextName.equals("contents")) { + jsonReader.skipValue(); + } else { + bArr = Base64.decode(jsonReader.nextString(), 2); + Objects.requireNonNull(bArr, "Null contents"); + } + } + jsonReader.endObject(); + String str2 = str == null ? " filename" : ""; + if (bArr == null) { + str2 = b.d.b.a.a.v(str2, " contents"); + } + if (str2.isEmpty()) { + return new e(str, bArr, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str2)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/x/c.java b/app/src/main/java/b/i/c/m/d/m/x/c.java new file mode 100644 index 0000000000..d55a68802c --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/x/c.java @@ -0,0 +1,40 @@ +package b.i.c.m.d.m.x; + +import android.util.JsonReader; +import b.i.c.m.d.m.x.h; +import b.i.c.p.a; +import java.util.Objects; +/* compiled from: CrashlyticsReportJsonTransform */ +public final /* synthetic */ class c implements h.a { + public static final c a = new c(); + + @Override // b.i.c.m.d.m.x.h.a + public Object a(JsonReader jsonReader) { + a aVar = h.a; + jsonReader.beginObject(); + String str = null; + String str2 = null; + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + nextName.hashCode(); + if (nextName.equals("key")) { + str = jsonReader.nextString(); + Objects.requireNonNull(str, "Null key"); + } else if (!nextName.equals("value")) { + jsonReader.skipValue(); + } else { + str2 = jsonReader.nextString(); + Objects.requireNonNull(str2, "Null value"); + } + } + jsonReader.endObject(); + String str3 = str == null ? " key" : ""; + if (str2 == null) { + str3 = b.d.b.a.a.v(str3, " value"); + } + if (str3.isEmpty()) { + return new b.i.c.m.d.m.c(str, str2, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str3)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/x/d.java b/app/src/main/java/b/i/c/m/d/m/x/d.java new file mode 100644 index 0000000000..633c6aeb95 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/x/d.java @@ -0,0 +1,75 @@ +package b.i.c.m.d.m.x; + +import android.util.JsonReader; +import b.i.c.m.d.m.p; +import b.i.c.m.d.m.w; +import b.i.c.m.d.m.x.h; +import b.i.c.p.a; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.Objects; +/* compiled from: CrashlyticsReportJsonTransform */ +public final /* synthetic */ class d implements h.a { + public static final d a = new d(); + + @Override // b.i.c.m.d.m.x.h.a + public Object a(JsonReader jsonReader) { + a aVar = h.a; + jsonReader.beginObject(); + String str = null; + Integer num = null; + w wVar = null; + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + nextName.hashCode(); + nextName.hashCode(); + char c = 65535; + switch (nextName.hashCode()) { + case -1266514778: + if (nextName.equals("frames")) { + c = 0; + break; + } + break; + case 3373707: + if (nextName.equals(ModelAuditLogEntry.CHANGE_KEY_NAME)) { + c = 1; + break; + } + break; + case 2125650548: + if (nextName.equals("importance")) { + c = 2; + break; + } + break; + } + switch (c) { + case 0: + wVar = h.a(jsonReader, g.a); + break; + case 1: + str = jsonReader.nextString(); + Objects.requireNonNull(str, "Null name"); + break; + case 2: + num = Integer.valueOf(jsonReader.nextInt()); + break; + default: + jsonReader.skipValue(); + break; + } + } + jsonReader.endObject(); + String str2 = str == null ? " name" : ""; + if (num == null) { + str2 = b.d.b.a.a.v(str2, " importance"); + } + if (wVar == null) { + str2 = b.d.b.a.a.v(str2, " frames"); + } + if (str2.isEmpty()) { + return new p(str, num.intValue(), wVar, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str2)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/x/e.java b/app/src/main/java/b/i/c/m/d/m/x/e.java new file mode 100644 index 0000000000..343cd1f641 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/x/e.java @@ -0,0 +1,86 @@ +package b.i.c.m.d.m.x; + +import android.util.Base64; +import android.util.JsonReader; +import b.i.c.m.d.m.m; +import b.i.c.m.d.m.v; +import b.i.c.m.d.m.x.h; +import b.i.c.p.a; +import com.discord.models.domain.ModelAuditLogEntry; +import java.util.Objects; +/* compiled from: CrashlyticsReportJsonTransform */ +public final /* synthetic */ class e implements h.a { + public static final e a = new e(); + + @Override // b.i.c.m.d.m.x.h.a + public Object a(JsonReader jsonReader) { + a aVar = h.a; + jsonReader.beginObject(); + Long l = null; + Long l2 = null; + String str = null; + String str2 = null; + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + nextName.hashCode(); + nextName.hashCode(); + char c = 65535; + switch (nextName.hashCode()) { + case 3373707: + if (nextName.equals(ModelAuditLogEntry.CHANGE_KEY_NAME)) { + c = 0; + break; + } + break; + case 3530753: + if (nextName.equals("size")) { + c = 1; + break; + } + break; + case 3601339: + if (nextName.equals("uuid")) { + c = 2; + break; + } + break; + case 1153765347: + if (nextName.equals("baseAddress")) { + c = 3; + break; + } + break; + } + switch (c) { + case 0: + str = jsonReader.nextString(); + Objects.requireNonNull(str, "Null name"); + break; + case 1: + l2 = Long.valueOf(jsonReader.nextLong()); + break; + case 2: + str2 = new String(Base64.decode(jsonReader.nextString(), 2), v.a); + break; + case 3: + l = Long.valueOf(jsonReader.nextLong()); + break; + default: + jsonReader.skipValue(); + break; + } + } + jsonReader.endObject(); + String str3 = l == null ? " baseAddress" : ""; + if (l2 == null) { + str3 = b.d.b.a.a.v(str3, " size"); + } + if (str == null) { + str3 = b.d.b.a.a.v(str3, " name"); + } + if (str3.isEmpty()) { + return new m(l.longValue(), l2.longValue(), str, str2, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str3)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/x/f.java b/app/src/main/java/b/i/c/m/d/m/x/f.java new file mode 100644 index 0000000000..67ac83fa19 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/x/f.java @@ -0,0 +1,13 @@ +package b.i.c.m.d.m.x; + +import android.util.JsonReader; +import b.i.c.m.d.m.x.h; +/* compiled from: CrashlyticsReportJsonTransform */ +public final /* synthetic */ class f implements h.a { + public static final f a = new f(); + + @Override // b.i.c.m.d.m.x.h.a + public Object a(JsonReader jsonReader) { + return h.d(jsonReader); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/x/g.java b/app/src/main/java/b/i/c/m/d/m/x/g.java new file mode 100644 index 0000000000..ad706b196b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/x/g.java @@ -0,0 +1,13 @@ +package b.i.c.m.d.m.x; + +import android.util.JsonReader; +import b.i.c.m.d.m.x.h; +/* compiled from: CrashlyticsReportJsonTransform */ +public final /* synthetic */ class g implements h.a { + public static final g a = new g(); + + @Override // b.i.c.m.d.m.x.h.a + public Object a(JsonReader jsonReader) { + return h.d(jsonReader); + } +} diff --git a/app/src/main/java/b/i/c/m/d/m/x/h.java b/app/src/main/java/b/i/c/m/d/m/x/h.java new file mode 100644 index 0000000000..c665d21f56 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/m/x/h.java @@ -0,0 +1,1196 @@ +package b.i.c.m.d.m.x; + +import android.util.Base64; +import android.util.JsonReader; +import androidx.annotation.NonNull; +import b.i.c.m.d.m.b; +import b.i.c.m.d.m.f; +import b.i.c.m.d.m.g; +import b.i.c.m.d.m.i; +import b.i.c.m.d.m.j; +import b.i.c.m.d.m.k; +import b.i.c.m.d.m.l; +import b.i.c.m.d.m.n; +import b.i.c.m.d.m.o; +import b.i.c.m.d.m.q; +import b.i.c.m.d.m.r; +import b.i.c.m.d.m.s; +import b.i.c.m.d.m.t; +import b.i.c.m.d.m.u; +import b.i.c.m.d.m.v; +import b.i.c.m.d.m.w; +import b.i.c.p.h.d; +import b.i.c.p.h.e; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.utilities.analytics.ChatInputComponentTypes; +import java.io.IOException; +import java.io.StringReader; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Objects; +/* compiled from: CrashlyticsReportJsonTransform */ +public class h { + public static final b.i.c.p.a a; + + /* compiled from: CrashlyticsReportJsonTransform */ + public interface a { + T a(@NonNull JsonReader jsonReader) throws IOException; + } + + static { + e eVar = new e(); + ((b.i.c.m.d.m.a) b.i.c.m.d.m.a.a).a(eVar); + eVar.e = true; + a = new d(eVar); + } + + @NonNull + public static w a(@NonNull JsonReader jsonReader, @NonNull a aVar) throws IOException { + ArrayList arrayList = new ArrayList(); + jsonReader.beginArray(); + while (jsonReader.hasNext()) { + arrayList.add(aVar.a(jsonReader)); + } + jsonReader.endArray(); + return new w<>(arrayList); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:242:0x00d1 */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:243:0x00d1 */ + /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: b.i.c.m.d.m.s$a */ + /* JADX DEBUG: Multi-variable search result rejected for r11v1, resolved type: b.i.c.m.d.m.w */ + /* JADX DEBUG: Multi-variable search result rejected for r11v2, resolved type: b.i.c.m.d.m.w */ + /* JADX DEBUG: Multi-variable search result rejected for r2v6, resolved type: java.lang.Integer */ + /* JADX DEBUG: Multi-variable search result rejected for r11v3, resolved type: b.i.c.m.d.m.w */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Removed duplicated region for block: B:261:0x0209 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:267:0x01e9 A[SYNTHETIC] */ + @NonNull + public static v.d.AbstractC0136d b(@NonNull JsonReader jsonReader) throws IOException { + char c; + char c2; + char c3; + char c4; + char c5; + jsonReader.beginObject(); + Long l = null; + Integer num = 0; + String str = null; + k kVar = null; + v.d.AbstractC0136d.b bVar = null; + s sVar = null; + while (true) { + String str2 = ""; + if (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + nextName.hashCode(); + switch (nextName.hashCode()) { + case -1335157162: + if (nextName.equals("device")) { + c = 0; + break; + } + c = 65535; + break; + case 96801: + if (nextName.equals("app")) { + c = 1; + break; + } + c = 65535; + break; + case 107332: + if (nextName.equals("log")) { + c = 2; + break; + } + c = 65535; + break; + case 3575610: + if (nextName.equals("type")) { + c = 3; + break; + } + c = 65535; + break; + case 55126294: + if (nextName.equals("timestamp")) { + c = 4; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + if (c == 0) { + r.b bVar2 = new r.b(); + jsonReader.beginObject(); + while (jsonReader.hasNext()) { + String nextName2 = jsonReader.nextName(); + nextName2.hashCode(); + switch (nextName2.hashCode()) { + case -1708606089: + if (nextName2.equals("batteryLevel")) { + c2 = 0; + break; + } + c2 = 65535; + break; + case -1455558134: + if (nextName2.equals("batteryVelocity")) { + c2 = 1; + break; + } + c2 = 65535; + break; + case -1439500848: + if (nextName2.equals("orientation")) { + c2 = 2; + break; + } + c2 = 65535; + break; + case 279795450: + if (nextName2.equals("diskUsed")) { + c2 = 3; + break; + } + c2 = 65535; + break; + case 976541947: + if (nextName2.equals("ramUsed")) { + c2 = 4; + break; + } + c2 = 65535; + break; + case 1516795582: + if (nextName2.equals("proximityOn")) { + c2 = 5; + break; + } + c2 = 65535; + break; + default: + c2 = 65535; + break; + } + if (c2 == 0) { + bVar2.a = Double.valueOf(jsonReader.nextDouble()); + } else if (c2 == 1) { + bVar2.f1719b = Integer.valueOf(jsonReader.nextInt()); + } else if (c2 == 2) { + bVar2.d = Integer.valueOf(jsonReader.nextInt()); + } else if (c2 == 3) { + bVar2.f = Long.valueOf(jsonReader.nextLong()); + } else if (c2 == 4) { + bVar2.e = Long.valueOf(jsonReader.nextLong()); + } else if (c2 != 5) { + jsonReader.skipValue(); + } else { + bVar2.c = Boolean.valueOf(jsonReader.nextBoolean()); + } + } + jsonReader.endObject(); + bVar = bVar2.a(); + } else if (c == 1) { + jsonReader.beginObject(); + l lVar = num; + w wVar = lVar; + Boolean bool = wVar; + while (true) { + char c6 = 3; + if (jsonReader.hasNext()) { + String nextName3 = jsonReader.nextName(); + nextName3.hashCode(); + switch (nextName3.hashCode()) { + case -1332194002: + if (nextName3.equals("background")) { + c3 = 0; + break; + } + c3 = 65535; + break; + case -1090974952: + if (nextName3.equals("execution")) { + c3 = 1; + break; + } + c3 = 65535; + break; + case 555169704: + if (nextName3.equals("customAttributes")) { + c3 = 2; + break; + } + c3 = 65535; + break; + case 928737948: + if (nextName3.equals("uiOrientation")) { + c3 = 3; + break; + } + c3 = 65535; + break; + default: + c3 = 65535; + break; + } + if (c3 == 0) { + bool = Boolean.valueOf(jsonReader.nextBoolean()); + } else if (c3 == 1) { + jsonReader.beginObject(); + v.d.AbstractC0136d.a.b.AbstractC0139b bVar3 = null; + o oVar = null; + w wVar2 = null; + w wVar3 = null; + while (jsonReader.hasNext()) { + String nextName4 = jsonReader.nextName(); + nextName4.hashCode(); + switch (nextName4.hashCode()) { + case -1337936983: + if (nextName4.equals("threads")) { + c4 = 0; + break; + } + c4 = 65535; + break; + case -902467928: + if (nextName4.equals("signal")) { + c4 = 1; + break; + } + c4 = 65535; + break; + case 937615455: + if (nextName4.equals("binaries")) { + c4 = 2; + break; + } + c4 = 65535; + break; + case 1481625679: + if (nextName4.equals("exception")) { + c4 = 3; + break; + } + c4 = 65535; + break; + default: + c4 = 65535; + break; + } + if (c4 == 0) { + wVar3 = a(jsonReader, d.a); + } else if (c4 == 1) { + jsonReader.beginObject(); + Long l2 = null; + String str3 = null; + String str4 = null; + while (jsonReader.hasNext()) { + String nextName5 = jsonReader.nextName(); + nextName5.hashCode(); + int hashCode = nextName5.hashCode(); + if (hashCode != -1147692044) { + if (hashCode != 3059181) { + if (hashCode == 3373707 && nextName5.equals(ModelAuditLogEntry.CHANGE_KEY_NAME)) { + c5 = 2; + if (c5 != 0) { + l2 = Long.valueOf(jsonReader.nextLong()); + } else if (c5 == 1) { + String nextString = jsonReader.nextString(); + Objects.requireNonNull(nextString, "Null code"); + str4 = nextString; + } else if (c5 != 2) { + jsonReader.skipValue(); + } else { + String nextString2 = jsonReader.nextString(); + Objects.requireNonNull(nextString2, "Null name"); + str3 = nextString2; + } + } + } else if (nextName5.equals(ModelAuditLogEntry.CHANGE_KEY_CODE)) { + c5 = 1; + if (c5 != 0) { + } + } + } else if (nextName5.equals("address")) { + c5 = 0; + if (c5 != 0) { + } + } + c5 = 65535; + if (c5 != 0) { + } + } + jsonReader.endObject(); + String str5 = str3 == null ? " name" : str2; + if (str4 == null) { + str5 = b.d.b.a.a.v(str5, " code"); + } + if (l2 == null) { + str5 = b.d.b.a.a.v(str5, " address"); + } + if (str5.isEmpty()) { + oVar = new o(str3, str4, l2.longValue(), null); + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str5)); + } + } else if (c4 == 2) { + wVar2 = a(jsonReader, e.a); + } else if (c4 != c6) { + jsonReader.skipValue(); + } else { + bVar3 = c(jsonReader); + } + c6 = 3; + } + jsonReader.endObject(); + String str6 = wVar3 == null ? " threads" : str2; + if (bVar3 == null) { + str6 = b.d.b.a.a.v(str6, " exception"); + } + if (oVar == null) { + str6 = b.d.b.a.a.v(str6, " signal"); + } + if (wVar2 == null) { + str6 = b.d.b.a.a.v(str6, " binaries"); + } + if (str6.isEmpty()) { + lVar = new l(wVar3, bVar3, oVar, wVar2, null); + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str6)); + } + } else if (c3 == 2) { + wVar = a(jsonReader, c.a); + } else if (c3 != 3) { + jsonReader.skipValue(); + } else { + num = Integer.valueOf(jsonReader.nextInt()); + } + } else { + jsonReader.endObject(); + if (lVar == null) { + str2 = " execution"; + } + if (num == 0) { + str2 = b.d.b.a.a.v(str2, " uiOrientation"); + } + if (str2.isEmpty()) { + kVar = new k(lVar, wVar, bool, num.intValue(), null); + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str2)); + } + } + } + } else if (c == 2) { + jsonReader.beginObject(); + String str7 = num; + while (jsonReader.hasNext()) { + String nextName6 = jsonReader.nextName(); + nextName6.hashCode(); + if (!nextName6.equals("content")) { + jsonReader.skipValue(); + } else { + str7 = jsonReader.nextString(); + Objects.requireNonNull(str7, "Null content"); + } + } + jsonReader.endObject(); + if (str7 == null) { + str2 = " content"; + } + if (str2.isEmpty()) { + sVar = new s(str7, num); + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str2)); + } + } else if (c == 3) { + String nextString3 = jsonReader.nextString(); + Objects.requireNonNull(nextString3, "Null type"); + str = nextString3; + } else if (c != 4) { + jsonReader.skipValue(); + } else { + l = Long.valueOf(jsonReader.nextLong()); + } + num = 0; + } else { + jsonReader.endObject(); + if (l == null) { + str2 = " timestamp"; + } + if (str == null) { + str2 = b.d.b.a.a.v(str2, " type"); + } + if (kVar == null) { + str2 = b.d.b.a.a.v(str2, " app"); + } + if (bVar == null) { + str2 = b.d.b.a.a.v(str2, " device"); + } + if (str2.isEmpty()) { + return new j(l.longValue(), str, kVar, bVar, sVar, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str2)); + } + } + } + + @NonNull + public static v.d.AbstractC0136d.a.b.AbstractC0139b c(@NonNull JsonReader jsonReader) throws IOException { + jsonReader.beginObject(); + Integer num = null; + String str = null; + String str2 = null; + w wVar = null; + v.d.AbstractC0136d.a.b.AbstractC0139b bVar = null; + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + nextName.hashCode(); + nextName.hashCode(); + char c = 65535; + switch (nextName.hashCode()) { + case -1266514778: + if (nextName.equals("frames")) { + c = 0; + break; + } + break; + case -934964668: + if (nextName.equals(ModelAuditLogEntry.CHANGE_KEY_REASON)) { + c = 1; + break; + } + break; + case 3575610: + if (nextName.equals("type")) { + c = 2; + break; + } + break; + case 91997906: + if (nextName.equals("causedBy")) { + c = 3; + break; + } + break; + case 581754413: + if (nextName.equals("overflowCount")) { + c = 4; + break; + } + break; + } + switch (c) { + case 0: + wVar = a(jsonReader, f.a); + break; + case 1: + str2 = jsonReader.nextString(); + break; + case 2: + str = jsonReader.nextString(); + Objects.requireNonNull(str, "Null type"); + break; + case 3: + bVar = c(jsonReader); + break; + case 4: + num = Integer.valueOf(jsonReader.nextInt()); + break; + default: + jsonReader.skipValue(); + break; + } + } + jsonReader.endObject(); + String str3 = str == null ? " type" : ""; + if (wVar == null) { + str3 = b.d.b.a.a.v(str3, " frames"); + } + if (num == null) { + str3 = b.d.b.a.a.v(str3, " overflowCount"); + } + if (str3.isEmpty()) { + return new n(str, str2, wVar, bVar, num.intValue(), null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str3)); + } + + @NonNull + public static v.d.AbstractC0136d.a.b.AbstractC0140d.AbstractC0141a d(@NonNull JsonReader jsonReader) throws IOException { + q.b bVar = new q.b(); + jsonReader.beginObject(); + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + nextName.hashCode(); + char c = 65535; + switch (nextName.hashCode()) { + case -1019779949: + if (nextName.equals("offset")) { + c = 0; + break; + } + break; + case -887523944: + if (nextName.equals("symbol")) { + c = 1; + break; + } + break; + case 3571: + if (nextName.equals("pc")) { + c = 2; + break; + } + break; + case 3143036: + if (nextName.equals("file")) { + c = 3; + break; + } + break; + case 2125650548: + if (nextName.equals("importance")) { + c = 4; + break; + } + break; + } + switch (c) { + case 0: + bVar.d = Long.valueOf(jsonReader.nextLong()); + break; + case 1: + String nextString = jsonReader.nextString(); + Objects.requireNonNull(nextString, "Null symbol"); + bVar.f1717b = nextString; + break; + case 2: + bVar.a = Long.valueOf(jsonReader.nextLong()); + break; + case 3: + bVar.c = jsonReader.nextString(); + break; + case 4: + bVar.e = Integer.valueOf(jsonReader.nextInt()); + break; + default: + jsonReader.skipValue(); + break; + } + } + jsonReader.endObject(); + return bVar.a(); + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + @NonNull + public static v e(@NonNull JsonReader jsonReader) throws IOException { + char c; + char c2; + String str; + char c3; + char c4; + String str2; + char c5; + Charset charset = v.a; + b.C0134b bVar = new b.C0134b(); + jsonReader.beginObject(); + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + nextName.hashCode(); + switch (nextName.hashCode()) { + case -2118372775: + if (nextName.equals("ndkPayload")) { + c = 0; + break; + } + c = 65535; + break; + case -1962630338: + if (nextName.equals("sdkVersion")) { + c = 1; + break; + } + c = 65535; + break; + case -911706486: + if (nextName.equals("buildVersion")) { + c = 2; + break; + } + c = 65535; + break; + case 344431858: + if (nextName.equals("gmpAppId")) { + c = 3; + break; + } + c = 65535; + break; + case 719853845: + if (nextName.equals("installationUuid")) { + c = 4; + break; + } + c = 65535; + break; + case 1874684019: + if (nextName.equals("platform")) { + c = 5; + break; + } + c = 65535; + break; + case 1975623094: + if (nextName.equals("displayVersion")) { + c = 6; + break; + } + c = 65535; + break; + case 1984987798: + if (nextName.equals("session")) { + c = 7; + break; + } + c = 65535; + break; + default: + c = 65535; + break; + } + String str3 = ""; + switch (c) { + case 0: + jsonReader.beginObject(); + String str4 = null; + w wVar = null; + while (jsonReader.hasNext()) { + String nextName2 = jsonReader.nextName(); + nextName2.hashCode(); + if (nextName2.equals(ChatInputComponentTypes.FILES)) { + wVar = a(jsonReader, b.a); + } else if (!nextName2.equals("orgId")) { + jsonReader.skipValue(); + } else { + str4 = jsonReader.nextString(); + } + } + jsonReader.endObject(); + String str5 = wVar == null ? " files" : str3; + if (str5.isEmpty()) { + bVar.h = new b.i.c.m.d.m.d(wVar, str4, null); + break; + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str5)); + } + case 1: + String nextString = jsonReader.nextString(); + Objects.requireNonNull(nextString, "Null sdkVersion"); + bVar.a = nextString; + break; + case 2: + String nextString2 = jsonReader.nextString(); + Objects.requireNonNull(nextString2, "Null buildVersion"); + bVar.e = nextString2; + break; + case 3: + String nextString3 = jsonReader.nextString(); + Objects.requireNonNull(nextString3, "Null gmpAppId"); + bVar.f1699b = nextString3; + break; + case 4: + String nextString4 = jsonReader.nextString(); + Objects.requireNonNull(nextString4, "Null installationUuid"); + bVar.d = nextString4; + break; + case 5: + bVar.c = Integer.valueOf(jsonReader.nextInt()); + break; + case 6: + String nextString5 = jsonReader.nextString(); + Objects.requireNonNull(nextString5, "Null displayVersion"); + bVar.f = nextString5; + break; + case 7: + f.b bVar2 = new f.b(); + bVar2.b(false); + jsonReader.beginObject(); + while (jsonReader.hasNext()) { + String nextName3 = jsonReader.nextName(); + nextName3.hashCode(); + switch (nextName3.hashCode()) { + case -2128794476: + if (nextName3.equals("startedAt")) { + c2 = 0; + break; + } + c2 = 65535; + break; + case -1618432855: + if (nextName3.equals("identifier")) { + c2 = 1; + break; + } + c2 = 65535; + break; + case -1606742899: + if (nextName3.equals("endedAt")) { + c2 = 2; + break; + } + c2 = 65535; + break; + case -1335157162: + if (nextName3.equals("device")) { + c2 = 3; + break; + } + c2 = 65535; + break; + case -1291329255: + if (nextName3.equals("events")) { + c2 = 4; + break; + } + c2 = 65535; + break; + case 3556: + if (nextName3.equals("os")) { + c2 = 5; + break; + } + c2 = 65535; + break; + case 96801: + if (nextName3.equals("app")) { + c2 = 6; + break; + } + c2 = 65535; + break; + case 3599307: + if (nextName3.equals("user")) { + c2 = 7; + break; + } + c2 = 65535; + break; + case 286956243: + if (nextName3.equals("generator")) { + c2 = '\b'; + break; + } + c2 = 65535; + break; + case 1025385094: + if (nextName3.equals("crashed")) { + c2 = '\t'; + break; + } + c2 = 65535; + break; + case 2047016109: + if (nextName3.equals("generatorType")) { + c2 = '\n'; + break; + } + c2 = 65535; + break; + default: + c2 = 65535; + break; + } + switch (c2) { + case 0: + str = str3; + bVar2.c = Long.valueOf(jsonReader.nextLong()); + break; + case 1: + str = str3; + bVar2.f1704b = new String(Base64.decode(jsonReader.nextString(), 2), v.a); + break; + case 2: + str = str3; + bVar2.d = Long.valueOf(jsonReader.nextLong()); + break; + case 3: + str = str3; + i.b bVar3 = new i.b(); + jsonReader.beginObject(); + while (jsonReader.hasNext()) { + String nextName4 = jsonReader.nextName(); + nextName4.hashCode(); + switch (nextName4.hashCode()) { + case -1981332476: + if (nextName4.equals("simulator")) { + c3 = 0; + break; + } + c3 = 65535; + break; + case -1969347631: + if (nextName4.equals("manufacturer")) { + c3 = 1; + break; + } + c3 = 65535; + break; + case 112670: + if (nextName4.equals("ram")) { + c3 = 2; + break; + } + c3 = 65535; + break; + case 3002454: + if (nextName4.equals("arch")) { + c3 = 3; + break; + } + c3 = 65535; + break; + case 81784169: + if (nextName4.equals("diskSpace")) { + c3 = 4; + break; + } + c3 = 65535; + break; + case 94848180: + if (nextName4.equals("cores")) { + c3 = 5; + break; + } + c3 = 65535; + break; + case 104069929: + if (nextName4.equals("model")) { + c3 = 6; + break; + } + c3 = 65535; + break; + case 109757585: + if (nextName4.equals("state")) { + c3 = 7; + break; + } + c3 = 65535; + break; + case 2078953423: + if (nextName4.equals("modelClass")) { + c3 = '\b'; + break; + } + c3 = 65535; + break; + default: + c3 = 65535; + break; + } + switch (c3) { + case 0: + bVar3.f = Boolean.valueOf(jsonReader.nextBoolean()); + break; + case 1: + String nextString6 = jsonReader.nextString(); + Objects.requireNonNull(nextString6, "Null manufacturer"); + bVar3.h = nextString6; + break; + case 2: + bVar3.d = Long.valueOf(jsonReader.nextLong()); + break; + case 3: + bVar3.a = Integer.valueOf(jsonReader.nextInt()); + break; + case 4: + bVar3.e = Long.valueOf(jsonReader.nextLong()); + break; + case 5: + bVar3.c = Integer.valueOf(jsonReader.nextInt()); + break; + case 6: + String nextString7 = jsonReader.nextString(); + Objects.requireNonNull(nextString7, "Null model"); + bVar3.f1707b = nextString7; + break; + case 7: + bVar3.g = Integer.valueOf(jsonReader.nextInt()); + break; + case '\b': + String nextString8 = jsonReader.nextString(); + Objects.requireNonNull(nextString8, "Null modelClass"); + bVar3.i = nextString8; + break; + default: + jsonReader.skipValue(); + break; + } + } + jsonReader.endObject(); + bVar2.i = bVar3.a(); + break; + case 4: + str = str3; + bVar2.j = a(jsonReader, a.a); + break; + case 5: + str = str3; + jsonReader.beginObject(); + Boolean bool = null; + Integer num = null; + String str6 = null; + String str7 = null; + while (jsonReader.hasNext()) { + String nextName5 = jsonReader.nextName(); + nextName5.hashCode(); + switch (nextName5.hashCode()) { + case -911706486: + if (nextName5.equals("buildVersion")) { + c4 = 0; + break; + } + c4 = 65535; + break; + case -293026577: + if (nextName5.equals("jailbroken")) { + c4 = 1; + break; + } + c4 = 65535; + break; + case 351608024: + if (nextName5.equals("version")) { + c4 = 2; + break; + } + c4 = 65535; + break; + case 1874684019: + if (nextName5.equals("platform")) { + c4 = 3; + break; + } + c4 = 65535; + break; + default: + c4 = 65535; + break; + } + if (c4 == 0) { + String nextString9 = jsonReader.nextString(); + Objects.requireNonNull(nextString9, "Null buildVersion"); + str7 = nextString9; + } else if (c4 == 1) { + bool = Boolean.valueOf(jsonReader.nextBoolean()); + } else if (c4 == 2) { + String nextString10 = jsonReader.nextString(); + Objects.requireNonNull(nextString10, "Null version"); + str6 = nextString10; + } else if (c4 != 3) { + jsonReader.skipValue(); + } else { + num = Integer.valueOf(jsonReader.nextInt()); + } + } + jsonReader.endObject(); + String str8 = num == null ? " platform" : str; + if (str6 == null) { + str8 = b.d.b.a.a.v(str8, " version"); + } + if (str7 == null) { + str8 = b.d.b.a.a.v(str8, " buildVersion"); + } + if (bool == null) { + str8 = b.d.b.a.a.v(str8, " jailbroken"); + } + if (str8.isEmpty()) { + bVar2.h = new t(num.intValue(), str6, str7, bool.booleanValue(), null); + break; + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str8)); + } + case 6: + jsonReader.beginObject(); + String str9 = null; + String str10 = null; + String str11 = null; + String str12 = null; + String str13 = null; + String str14 = null; + while (jsonReader.hasNext()) { + String nextName6 = jsonReader.nextName(); + nextName6.hashCode(); + switch (nextName6.hashCode()) { + case -1618432855: + str2 = str3; + if (nextName6.equals("identifier")) { + c5 = 0; + break; + } + c5 = 65535; + break; + case -519438642: + str2 = str3; + if (nextName6.equals("developmentPlatform")) { + c5 = 1; + break; + } + c5 = 65535; + break; + case 213652010: + str2 = str3; + if (nextName6.equals("developmentPlatformVersion")) { + c5 = 2; + break; + } + c5 = 65535; + break; + case 351608024: + if (nextName6.equals("version")) { + c5 = 3; + str2 = str3; + break; + } + str2 = str3; + c5 = 65535; + break; + case 719853845: + if (nextName6.equals("installationUuid")) { + c5 = 4; + str2 = str3; + break; + } + str2 = str3; + c5 = 65535; + break; + case 1975623094: + if (nextName6.equals("displayVersion")) { + c5 = 5; + str2 = str3; + break; + } + str2 = str3; + c5 = 65535; + break; + default: + str2 = str3; + c5 = 65535; + break; + } + if (c5 == 0) { + String nextString11 = jsonReader.nextString(); + Objects.requireNonNull(nextString11, "Null identifier"); + str9 = nextString11; + } else if (c5 == 1) { + str13 = jsonReader.nextString(); + } else if (c5 == 2) { + str14 = jsonReader.nextString(); + } else if (c5 == 3) { + String nextString12 = jsonReader.nextString(); + Objects.requireNonNull(nextString12, "Null version"); + str10 = nextString12; + } else if (c5 == 4) { + str12 = jsonReader.nextString(); + } else if (c5 != 5) { + jsonReader.skipValue(); + } else { + str11 = jsonReader.nextString(); + } + str3 = str2; + } + str = str3; + jsonReader.endObject(); + String str15 = str9 == null ? " identifier" : str; + if (str10 == null) { + str15 = b.d.b.a.a.v(str15, " version"); + } + if (str15.isEmpty()) { + bVar2.f = new g(str9, str10, str11, null, str12, str13, str14, null); + break; + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str15)); + } + case 7: + jsonReader.beginObject(); + String str16 = null; + while (jsonReader.hasNext()) { + String nextName7 = jsonReader.nextName(); + nextName7.hashCode(); + if (!nextName7.equals("identifier")) { + jsonReader.skipValue(); + } else { + str16 = jsonReader.nextString(); + Objects.requireNonNull(str16, "Null identifier"); + } + } + jsonReader.endObject(); + String str17 = str16 == null ? " identifier" : str3; + if (str17.isEmpty()) { + bVar2.g = new u(str16, null); + str = str3; + break; + } else { + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str17)); + } + case '\b': + String nextString13 = jsonReader.nextString(); + Objects.requireNonNull(nextString13, "Null generator"); + bVar2.a = nextString13; + str = str3; + break; + case '\t': + bVar2.b(jsonReader.nextBoolean()); + str = str3; + break; + case '\n': + bVar2.k = Integer.valueOf(jsonReader.nextInt()); + str = str3; + break; + default: + str = str3; + jsonReader.skipValue(); + break; + } + str3 = str; + } + jsonReader.endObject(); + bVar.g = bVar2.a(); + break; + default: + jsonReader.skipValue(); + break; + } + } + jsonReader.endObject(); + return bVar.a(); + } + + @NonNull + public v f(@NonNull String str) throws IOException { + try { + JsonReader jsonReader = new JsonReader(new StringReader(str)); + try { + v e = e(jsonReader); + jsonReader.close(); + return e; + } catch (Throwable unused) { + } + throw th; + } catch (IllegalStateException e2) { + throw new IOException(e2); + } + } + + @NonNull + public String g(@NonNull v vVar) { + return ((d) a).a(vVar); + } +} diff --git a/app/src/main/java/b/i/c/m/d/n/a.java b/app/src/main/java/b/i/c/m/d/n/a.java new file mode 100644 index 0000000000..285a7457cd --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/n/a.java @@ -0,0 +1,123 @@ +package b.i.c.m.d.n; + +import b.c.a.y.b; +import com.discord.models.domain.ModelAuditLogEntry; +import d0.z.d.m; +import f0.d; +import f0.e0.c; +import f0.e0.g.e; +import f0.w; +import f0.x; +import java.io.File; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +import okhttp3.MediaType; +import okhttp3.MultipartBody; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import okhttp3.ResponseBody; +/* compiled from: HttpRequest */ +public class a { + public static final x a; + + /* renamed from: b reason: collision with root package name */ + public final int f1721b; + public final String c; + public final Map d; + public final Map e; + public MultipartBody.a f = null; + + static { + x.a f = new x().f(); + TimeUnit timeUnit = TimeUnit.MILLISECONDS; + m.checkParameterIsNotNull(timeUnit, "unit"); + f.w = c.b("timeout", 10000, timeUnit); + a = new x(f); + } + + /* JADX WARN: Incorrect types in method signature: (Ljava/lang/Object;Ljava/lang/String;Ljava/util/Map;)V */ + public a(int i, String str, Map map) { + this.f1721b = i; + this.c = str; + this.d = map; + this.e = new HashMap(); + } + + public c a() throws IOException { + w wVar; + Request.a aVar = new Request.a(); + d dVar = new d(true, false, -1, -1, false, false, false, -1, -1, false, false, false, null, null); + m.checkParameterIsNotNull(dVar, "cacheControl"); + String dVar2 = dVar.toString(); + if (dVar2.length() == 0) { + aVar.d("Cache-Control"); + } else { + aVar.b("Cache-Control", dVar2); + } + String str = this.c; + m.checkParameterIsNotNull(str, "$this$toHttpUrlOrNull"); + String str2 = null; + try { + m.checkParameterIsNotNull(str, "$this$toHttpUrl"); + w.a aVar2 = new w.a(); + aVar2.e(null, str); + wVar = aVar2.b(); + } catch (IllegalArgumentException unused) { + wVar = null; + } + w.a f = wVar.f(); + for (Map.Entry entry : this.d.entrySet()) { + f.a(entry.getKey(), entry.getValue()); + } + aVar.g(f.b()); + for (Map.Entry entry2 : this.e.entrySet()) { + aVar.b(entry2.getKey(), entry2.getValue()); + } + MultipartBody.a aVar3 = this.f; + aVar.c(b.n(this.f1721b), aVar3 == null ? null : aVar3.b()); + Response execute = ((e) a.b(aVar.a())).execute(); + ResponseBody responseBody = execute.p; + if (responseBody != null) { + str2 = responseBody.d(); + } + return new c(execute.m, str2, execute.o); + } + + public a b(String str, String str2) { + if (this.f == null) { + MultipartBody.a aVar = new MultipartBody.a(); + aVar.c(MultipartBody.f3767b); + this.f = aVar; + } + MultipartBody.a aVar2 = this.f; + Objects.requireNonNull(aVar2); + m.checkParameterIsNotNull(str, ModelAuditLogEntry.CHANGE_KEY_NAME); + m.checkParameterIsNotNull(str2, "value"); + m.checkParameterIsNotNull(str, ModelAuditLogEntry.CHANGE_KEY_NAME); + m.checkParameterIsNotNull(str2, "value"); + aVar2.a(MultipartBody.Part.b(str, null, RequestBody.Companion.a(str2, null))); + this.f = aVar2; + return this; + } + + public a c(String str, String str2, String str3, File file) { + MediaType.a aVar = MediaType.c; + RequestBody create = RequestBody.create(MediaType.a.b(str3), file); + if (this.f == null) { + MultipartBody.a aVar2 = new MultipartBody.a(); + aVar2.c(MultipartBody.f3767b); + this.f = aVar2; + } + MultipartBody.a aVar3 = this.f; + Objects.requireNonNull(aVar3); + m.checkParameterIsNotNull(str, ModelAuditLogEntry.CHANGE_KEY_NAME); + m.checkParameterIsNotNull(create, "body"); + aVar3.a(MultipartBody.Part.b(str, str2, create)); + this.f = aVar3; + return this; + } +} diff --git a/app/src/main/java/b/i/c/m/d/n/b.java b/app/src/main/java/b/i/c/m/d/n/b.java new file mode 100644 index 0000000000..eb9057f52c --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/n/b.java @@ -0,0 +1,4 @@ +package b.i.c.m.d.n; +/* compiled from: HttpRequestFactory */ +public class b { +} diff --git a/app/src/main/java/b/i/c/m/d/n/c.java b/app/src/main/java/b/i/c/m/d/n/c.java new file mode 100644 index 0000000000..fab72d1d96 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/n/c.java @@ -0,0 +1,17 @@ +package b.i.c.m.d.n; + +import okhttp3.Headers; +/* compiled from: HttpResponse */ +public class c { + public int a; + + /* renamed from: b reason: collision with root package name */ + public String f1722b; + public Headers c; + + public c(int i, String str, Headers headers) { + this.a = i; + this.f1722b = str; + this.c = headers; + } +} diff --git a/app/src/main/java/b/i/c/m/d/o/a.java b/app/src/main/java/b/i/c/m/d/o/a.java new file mode 100644 index 0000000000..e10406046f --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/o/a.java @@ -0,0 +1,20 @@ +package b.i.c.m.d.o; + +import java.io.File; +import java.io.FilenameFilter; +import java.nio.charset.Charset; +/* compiled from: CrashlyticsReportPersistence */ +public final /* synthetic */ class a implements FilenameFilter { + public final String a; + + public a(String str) { + this.a = str; + } + + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + String str2 = this.a; + Charset charset = g.a; + return str.startsWith(str2); + } +} diff --git a/app/src/main/java/b/i/c/m/d/o/b.java b/app/src/main/java/b/i/c/m/d/o/b.java new file mode 100644 index 0000000000..227b65c10b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/o/b.java @@ -0,0 +1,20 @@ +package b.i.c.m.d.o; + +import java.io.File; +import java.io.FileFilter; +import java.nio.charset.Charset; +/* compiled from: CrashlyticsReportPersistence */ +public final /* synthetic */ class b implements FileFilter { + public final String a; + + public b(String str) { + this.a = str; + } + + @Override // java.io.FileFilter + public boolean accept(File file) { + String str = this.a; + Charset charset = g.a; + return file.isDirectory() && !file.getName().equals(str); + } +} diff --git a/app/src/main/java/b/i/c/m/d/o/c.java b/app/src/main/java/b/i/c/m/d/o/c.java new file mode 100644 index 0000000000..60104420fc --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/o/c.java @@ -0,0 +1,15 @@ +package b.i.c.m.d.o; + +import java.io.File; +import java.io.FilenameFilter; +import java.nio.charset.Charset; +/* compiled from: CrashlyticsReportPersistence */ +public final /* synthetic */ class c implements FilenameFilter { + public static final c a = new c(); + + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + Charset charset = g.a; + return str.startsWith("event") && !str.endsWith("_"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/o/d.java b/app/src/main/java/b/i/c/m/d/o/d.java new file mode 100644 index 0000000000..cf5ce7092e --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/o/d.java @@ -0,0 +1,17 @@ +package b.i.c.m.d.o; + +import java.io.File; +import java.nio.charset.Charset; +import java.util.Comparator; +/* compiled from: CrashlyticsReportPersistence */ +public final /* synthetic */ class d implements Comparator { + public static final d j = new d(); + + @Override // java.util.Comparator + public int compare(Object obj, Object obj2) { + Charset charset = g.a; + String name = ((File) obj).getName(); + int i = g.f1723b; + return name.substring(0, i).compareTo(((File) obj2).getName().substring(0, i)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/o/e.java b/app/src/main/java/b/i/c/m/d/o/e.java new file mode 100644 index 0000000000..0d0876b932 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/o/e.java @@ -0,0 +1,15 @@ +package b.i.c.m.d.o; + +import java.io.File; +import java.nio.charset.Charset; +import java.util.Comparator; +/* compiled from: CrashlyticsReportPersistence */ +public final /* synthetic */ class e implements Comparator { + public static final e j = new e(); + + @Override // java.util.Comparator + public int compare(Object obj, Object obj2) { + Charset charset = g.a; + return ((File) obj2).getName().compareTo(((File) obj).getName()); + } +} diff --git a/app/src/main/java/b/i/c/m/d/o/f.java b/app/src/main/java/b/i/c/m/d/o/f.java new file mode 100644 index 0000000000..b9104641e6 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/o/f.java @@ -0,0 +1,15 @@ +package b.i.c.m.d.o; + +import java.io.File; +import java.io.FilenameFilter; +import java.nio.charset.Charset; +/* compiled from: CrashlyticsReportPersistence */ +public final /* synthetic */ class f implements FilenameFilter { + public static final f a = new f(); + + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + Charset charset = g.a; + return str.startsWith("event"); + } +} diff --git a/app/src/main/java/b/i/c/m/d/o/g.java b/app/src/main/java/b/i/c/m/d/o/g.java new file mode 100644 index 0000000000..662c98d789 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/o/g.java @@ -0,0 +1,171 @@ +package b.i.c.m.d.o; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.m.x.h; +import b.i.c.m.d.s.d; +import com.adjust.sdk.Constants; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileFilter; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.FilenameFilter; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.Iterator; +import java.util.List; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: CrashlyticsReportPersistence */ +public class g { + public static final Charset a = Charset.forName(Constants.ENCODING); + + /* renamed from: b reason: collision with root package name */ + public static final int f1723b = 15; + public static final h c = new h(); + public static final Comparator d = e.j; + public static final FilenameFilter e = f.a; + @NonNull + public final AtomicInteger f = new AtomicInteger(0); + @NonNull + public final File g; + @NonNull + public final File h; + @NonNull + public final File i; + @NonNull + public final File j; + @NonNull + public final d k; + + public g(@NonNull File file, @NonNull d dVar) { + File file2 = new File(file, "report-persistence"); + this.g = new File(file2, "sessions"); + this.h = new File(file2, "priority-reports"); + this.i = new File(file2, "reports"); + this.j = new File(file2, "native-reports"); + this.k = dVar; + } + + @NonNull + public static List a(@NonNull List... listArr) { + ArrayList arrayList = new ArrayList(); + int i = 0; + for (List list : listArr) { + i += list.size(); + } + arrayList.ensureCapacity(i); + for (List list2 : listArr) { + arrayList.addAll(list2); + } + return arrayList; + } + + @NonNull + public static List d(@NonNull File file) { + return f(file, null); + } + + @NonNull + public static List f(@NonNull File file, @Nullable FileFilter fileFilter) { + if (!file.isDirectory()) { + return Collections.emptyList(); + } + File[] listFiles = fileFilter == null ? file.listFiles() : file.listFiles(fileFilter); + return listFiles != null ? Arrays.asList(listFiles) : Collections.emptyList(); + } + + @NonNull + public static List g(@NonNull File file, @Nullable FilenameFilter filenameFilter) { + if (!file.isDirectory()) { + return Collections.emptyList(); + } + File[] listFiles = filenameFilter == null ? file.listFiles() : file.listFiles(filenameFilter); + return listFiles != null ? Arrays.asList(listFiles) : Collections.emptyList(); + } + + @NonNull + public static File i(@NonNull File file) throws IOException { + if (file.exists() || file.mkdirs()) { + return file; + } + throw new IOException("Could not create directory " + file); + } + + @NonNull + public static String j(@NonNull File file) throws IOException { + byte[] bArr = new byte[8192]; + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + FileInputStream fileInputStream = new FileInputStream(file); + while (true) { + try { + int read = fileInputStream.read(bArr); + if (read > 0) { + byteArrayOutputStream.write(bArr, 0, read); + } else { + String str = new String(byteArrayOutputStream.toByteArray(), a); + fileInputStream.close(); + return str; + } + } catch (Throwable unused) { + } + } + throw th; + } + + public static void k(@Nullable File file) { + if (file != null) { + if (file.isDirectory()) { + for (File file2 : file.listFiles()) { + k(file2); + } + } + file.delete(); + } + } + + public static void l(File file, String str) throws IOException { + OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(file), a); + try { + outputStreamWriter.write(str); + outputStreamWriter.close(); + return; + } catch (Throwable unused) { + } + throw th; + } + + public void b() { + Iterator it = ((ArrayList) e()).iterator(); + while (it.hasNext()) { + ((File) it.next()).delete(); + } + } + + public void c(String str) { + a aVar = new a(str); + Iterator it = ((ArrayList) a(g(this.h, aVar), g(this.j, aVar), g(this.i, aVar))).iterator(); + while (it.hasNext()) { + ((File) it.next()).delete(); + } + } + + @NonNull + public final List e() { + List[] listArr = {a(d(this.h), d(this.j)), d(this.i)}; + for (int i = 0; i < 2; i++) { + Collections.sort(listArr[i], d); + } + return a(listArr); + } + + @NonNull + public final File h(@NonNull String str) { + return new File(this.g, str); + } +} diff --git a/app/src/main/java/b/i/c/m/d/o/h.java b/app/src/main/java/b/i/c/m/d/o/h.java new file mode 100644 index 0000000000..0195669de4 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/o/h.java @@ -0,0 +1,22 @@ +package b.i.c.m.d.o; + +import android.content.Context; +import b.i.c.m.d.b; +import java.io.File; +/* compiled from: FileStoreImpl */ +public class h { + public final Context a; + + public h(Context context) { + this.a = context; + } + + public File a() { + File file = new File(this.a.getFilesDir(), ".com.google.firebase.crashlytics"); + if (file.exists() || file.mkdirs()) { + return file; + } + b.a.g("Couldn't create file"); + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/p/a.java b/app/src/main/java/b/i/c/m/d/p/a.java new file mode 100644 index 0000000000..519dde17d8 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/p/a.java @@ -0,0 +1,59 @@ +package b.i.c.m.d.p; + +import com.adjust.sdk.Constants; +import java.io.UnsupportedEncodingException; +/* compiled from: ByteString */ +public final class a { + public final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public volatile int f1724b = 0; + + public a(byte[] bArr) { + this.a = bArr; + } + + public static a a(String str) { + try { + return new a(str.getBytes(Constants.ENCODING)); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException("UTF-8 not supported.", e); + } + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof a)) { + return false; + } + byte[] bArr = this.a; + int length = bArr.length; + byte[] bArr2 = ((a) obj).a; + if (length != bArr2.length) { + return false; + } + for (int i = 0; i < length; i++) { + if (bArr[i] != bArr2[i]) { + return false; + } + } + return true; + } + + public int hashCode() { + int i = this.f1724b; + if (i == 0) { + byte[] bArr = this.a; + int length = bArr.length; + int i2 = length; + for (byte b2 : bArr) { + i2 = (i2 * 31) + b2; + } + i = i2 == 0 ? 1 : i2; + this.f1724b = i; + } + return i; + } +} diff --git a/app/src/main/java/b/i/c/m/d/p/b.java b/app/src/main/java/b/i/c/m/d/p/b.java new file mode 100644 index 0000000000..6044c1ad40 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/p/b.java @@ -0,0 +1,60 @@ +package b.i.c.m.d.p; + +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.FilenameFilter; +import java.io.IOException; +/* compiled from: ClsFileOutputStream */ +public class b extends FileOutputStream { + public static final FilenameFilter j = new a(); + public final String k; + public File l; + public boolean m = false; + + /* compiled from: ClsFileOutputStream */ + public class a implements FilenameFilter { + @Override // java.io.FilenameFilter + public boolean accept(File file, String str) { + return str.endsWith(".cls_temp"); + } + } + + public b(File file, String str) throws FileNotFoundException { + super(new File(file, b.d.b.a.a.v(str, ".cls_temp"))); + StringBuilder sb = new StringBuilder(); + sb.append(file); + String H = b.d.b.a.a.H(sb, File.separator, str); + this.k = H; + this.l = new File(b.d.b.a.a.v(H, ".cls_temp")); + } + + public void a() throws IOException { + if (!this.m) { + this.m = true; + flush(); + super.close(); + } + } + + @Override // java.io.FileOutputStream, java.io.OutputStream, java.io.Closeable, java.lang.AutoCloseable + public synchronized void close() throws IOException { + if (!this.m) { + this.m = true; + flush(); + super.close(); + File file = new File(this.k + ".cls"); + if (this.l.renameTo(file)) { + this.l = null; + return; + } + String str = ""; + if (file.exists()) { + str = " (target already exists)"; + } else if (!this.l.exists()) { + str = " (source does not exist)"; + } + throw new IOException("Could not rename temp file: " + this.l + " -> " + file + str); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/p/c.java b/app/src/main/java/b/i/c/m/d/p/c.java new file mode 100644 index 0000000000..70ba808d1f --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/p/c.java @@ -0,0 +1,182 @@ +package b.i.c.m.d.p; + +import java.io.ByteArrayInputStream; +import java.io.Flushable; +import java.io.IOException; +import java.io.OutputStream; +/* compiled from: CodedOutputStream */ +public final class c implements Flushable { + public final byte[] j; + public final int k; + public int l = 0; + public final OutputStream m; + + /* compiled from: CodedOutputStream */ + public static class a extends IOException { + private static final long serialVersionUID = -6947486886997889499L; + + public a() { + super("CodedOutputStream was writing to a flat byte array and ran out of space."); + } + } + + public c(OutputStream outputStream, byte[] bArr) { + this.m = outputStream; + this.j = bArr; + this.k = bArr.length; + } + + public static int a(int i, boolean z2) { + return e(i) + 1; + } + + public static int b(int i, a aVar) { + return e(i) + d(aVar.a.length) + aVar.a.length; + } + + public static int c(int i, int i2) { + return e(i) + (i2 >= 0 ? d(i2) : 10); + } + + public static int d(int i) { + if ((i & -128) == 0) { + return 1; + } + if ((i & -16384) == 0) { + return 2; + } + if ((-2097152 & i) == 0) { + return 3; + } + return (i & -268435456) == 0 ? 4 : 5; + } + + public static int e(int i) { + return d((i << 3) | 0); + } + + public static int f(int i, int i2) { + return e(i) + d(i2); + } + + public static int h(int i, long j) { + return e(i) + ((-128 & j) == 0 ? 1 : (-16384 & j) == 0 ? 2 : (-2097152 & j) == 0 ? 3 : (-268435456 & j) == 0 ? 4 : (-34359738368L & j) == 0 ? 5 : (-4398046511104L & j) == 0 ? 6 : (-562949953421312L & j) == 0 ? 7 : (-72057594037927936L & j) == 0 ? 8 : (j & Long.MIN_VALUE) == 0 ? 9 : 10); + } + + public static c i(OutputStream outputStream) { + return new c(outputStream, new byte[4096]); + } + + @Override // java.io.Flushable + public void flush() throws IOException { + if (this.m != null) { + j(); + } + } + + public final void j() throws IOException { + OutputStream outputStream = this.m; + if (outputStream != null) { + outputStream.write(this.j, 0, this.l); + this.l = 0; + return; + } + throw new a(); + } + + public void k(int i, boolean z2) throws IOException { + o((i << 3) | 0); + n(z2 ? 1 : 0); + } + + public void l(int i, a aVar) throws IOException { + o((i << 3) | 2); + o(aVar.a.length); + byte[] bArr = aVar.a; + int length = bArr.length; + int i2 = this.k; + int i3 = this.l; + int i4 = i2 - i3; + if (i4 >= length) { + System.arraycopy(bArr, 0, this.j, i3, length); + this.l += length; + return; + } + System.arraycopy(bArr, 0, this.j, i3, i4); + int i5 = i4 + 0; + int i6 = length - i4; + this.l = this.k; + j(); + if (i6 <= this.k) { + System.arraycopy(aVar.a, i5, this.j, 0, i6); + this.l = i6; + return; + } + ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(aVar.a); + long j = (long) i5; + if (j == byteArrayInputStream.skip(j)) { + while (i6 > 0) { + int min = Math.min(i6, this.k); + int read = byteArrayInputStream.read(this.j, 0, min); + if (read == min) { + this.m.write(this.j, 0, read); + i6 -= read; + } else { + throw new IllegalStateException("Read failed."); + } + } + return; + } + throw new IllegalStateException("Skip failed."); + } + + public void m(int i, int i2) throws IOException { + o((i << 3) | 0); + if (i2 >= 0) { + o(i2); + } else { + q((long) i2); + } + } + + public void n(int i) throws IOException { + byte b2 = (byte) i; + if (this.l == this.k) { + j(); + } + byte[] bArr = this.j; + int i2 = this.l; + this.l = i2 + 1; + bArr[i2] = b2; + } + + public void o(int i) throws IOException { + while ((i & -128) != 0) { + n((i & 127) | 128); + i >>>= 7; + } + n(i); + } + + public void q(long j) throws IOException { + while ((-128 & j) != 0) { + n((((int) j) & 127) | 128); + j >>>= 7; + } + n((int) j); + } + + public void r(int i, int i2) throws IOException { + o((i << 3) | i2); + } + + public void s(int i, int i2) throws IOException { + o((i << 3) | 0); + o(i2); + } + + public void t(int i, long j) throws IOException { + o((i << 3) | 0); + q(j); + } +} diff --git a/app/src/main/java/b/i/c/m/d/p/d.java b/app/src/main/java/b/i/c/m/d/p/d.java new file mode 100644 index 0000000000..220753ca7b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/p/d.java @@ -0,0 +1,196 @@ +package b.i.c.m.d.p; + +import android.app.ActivityManager; +import b.i.c.m.d.t.e; +import java.util.List; +import java.util.Map; +/* compiled from: SessionProtobufHelper */ +public class d { + public static final a a = a.a("0"); + + /* renamed from: b reason: collision with root package name */ + public static final a f1725b = a.a("Unity"); + + public static int a(a aVar, a aVar2) { + int b2 = c.b(3, aVar) + c.h(2, 0) + c.h(1, 0) + 0; + return aVar2 != null ? b2 + c.b(4, aVar2) : b2; + } + + public static int b(String str, String str2) { + int b2 = c.b(1, a.a(str)); + if (str2 == null) { + str2 = ""; + } + return c.b(2, a.a(str2)) + b2; + } + + public static int c(e eVar, int i, int i2) { + int i3 = 0; + int b2 = c.b(1, a.a(eVar.f1738b)) + 0; + String str = eVar.a; + if (str != null) { + b2 += c.b(3, a.a(str)); + } + for (StackTraceElement stackTraceElement : eVar.c) { + int h = h(stackTraceElement, true); + b2 += c.d(h) + c.e(4) + h; + } + e eVar2 = eVar.d; + if (eVar2 == null) { + return b2; + } + if (i < i2) { + int c = c(eVar2, i + 1, i2); + return b2 + c.d(c) + c.e(6) + c; + } + while (eVar2 != null) { + eVar2 = eVar2.d; + i3++; + } + return b2 + c.f(7, i3); + } + + public static int d() { + a aVar = a; + return c.h(3, 0) + c.b(2, aVar) + c.b(1, aVar) + 0; + } + + public static int e(e eVar, Thread thread, StackTraceElement[] stackTraceElementArr, Thread[] threadArr, List list, int i, a aVar, a aVar2) { + int e = c.e(1); + int i2 = i(thread, stackTraceElementArr, 4, true); + int d = c.d(i2) + e + i2 + 0; + int length = threadArr.length; + for (int i3 = 0; i3 < length; i3++) { + int i4 = i(threadArr[i3], list.get(i3), 0, false); + d += c.d(i4) + e + i4; + } + int c = c(eVar, 1, i); + int d2 = c.d(c) + c.e(2) + c + d; + int d3 = d(); + int e2 = c.e(3); + int a2 = a(aVar, aVar2); + return c.d(a2) + c.e(3) + a2 + c.d(d3) + e2 + d3 + d2; + } + + public static int f(e eVar, Thread thread, StackTraceElement[] stackTraceElementArr, Thread[] threadArr, List list, int i, a aVar, a aVar2, Map map, ActivityManager.RunningAppProcessInfo runningAppProcessInfo, int i2) { + int e = e(eVar, thread, stackTraceElementArr, threadArr, list, i, aVar, aVar2); + boolean z2 = true; + int d = c.d(e) + c.e(1) + e + 0; + if (map != null) { + for (Map.Entry entry : map.entrySet()) { + int b2 = b(entry.getKey(), entry.getValue()); + d += c.d(b2) + c.e(2) + b2; + } + } + if (runningAppProcessInfo != null) { + if (runningAppProcessInfo.importance == 100) { + z2 = false; + } + d += c.a(3, z2); + } + return c.f(4, i2) + d; + } + + public static int g(Float f, int i, boolean z2, int i2, long j, long j2) { + int i3 = 0; + if (f != null) { + f.floatValue(); + i3 = 0 + c.e(1) + 4; + } + int e = c.e(2); + int i4 = i << 1; + int a2 = c.a(3, z2); + return c.h(6, j2) + c.h(5, j) + c.f(4, i2) + a2 + i3 + c.d((i >> 31) ^ i4) + e; + } + + public static int h(StackTraceElement stackTraceElement, boolean z2) { + int i = 0; + int h = stackTraceElement.isNativeMethod() ? c.h(1, (long) Math.max(stackTraceElement.getLineNumber(), 0)) : c.h(1, 0); + int b2 = c.b(2, a.a(stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName())) + h + 0; + if (stackTraceElement.getFileName() != null) { + b2 += c.b(3, a.a(stackTraceElement.getFileName())); + } + if (!stackTraceElement.isNativeMethod() && stackTraceElement.getLineNumber() > 0) { + b2 += c.h(4, (long) stackTraceElement.getLineNumber()); + } + if (z2) { + i = 2; + } + return c.f(5, i) + b2; + } + + public static int i(Thread thread, StackTraceElement[] stackTraceElementArr, int i, boolean z2) { + int f = c.f(2, i) + c.b(1, a.a(thread.getName())); + for (StackTraceElement stackTraceElement : stackTraceElementArr) { + int h = h(stackTraceElement, z2); + f += c.d(h) + c.e(3) + h; + } + return f; + } + + public static a j(String str) { + if (str == null) { + return null; + } + return a.a(str); + } + + public static void k(c cVar, int i, StackTraceElement stackTraceElement, boolean z2) throws Exception { + cVar.o((i << 3) | 2); + cVar.o(h(stackTraceElement, z2)); + int i2 = 0; + if (stackTraceElement.isNativeMethod()) { + cVar.t(1, (long) Math.max(stackTraceElement.getLineNumber(), 0)); + } else { + cVar.t(1, 0); + } + cVar.l(2, a.a(stackTraceElement.getClassName() + "." + stackTraceElement.getMethodName())); + if (stackTraceElement.getFileName() != null) { + cVar.l(3, a.a(stackTraceElement.getFileName())); + } + if (!stackTraceElement.isNativeMethod() && stackTraceElement.getLineNumber() > 0) { + cVar.t(4, (long) stackTraceElement.getLineNumber()); + } + if (z2) { + i2 = 4; + } + cVar.s(5, i2); + } + + public static void l(c cVar, e eVar, int i, int i2, int i3) throws Exception { + cVar.o((i3 << 3) | 2); + cVar.o(c(eVar, 1, i2)); + cVar.l(1, a.a(eVar.f1738b)); + String str = eVar.a; + if (str != null) { + cVar.l(3, a.a(str)); + } + int i4 = 0; + for (StackTraceElement stackTraceElement : eVar.c) { + k(cVar, 4, stackTraceElement, true); + } + e eVar2 = eVar.d; + if (eVar2 == null) { + return; + } + if (i < i2) { + l(cVar, eVar2, i + 1, i2, 6); + return; + } + while (eVar2 != null) { + eVar2 = eVar2.d; + i4++; + } + cVar.s(7, i4); + } + + public static void m(c cVar, Thread thread, StackTraceElement[] stackTraceElementArr, int i, boolean z2) throws Exception { + cVar.r(1, 2); + cVar.o(i(thread, stackTraceElementArr, i, z2)); + cVar.l(1, a.a(thread.getName())); + cVar.s(2, i); + for (StackTraceElement stackTraceElement : stackTraceElementArr) { + k(cVar, 3, stackTraceElement, z2); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/q/a.java b/app/src/main/java/b/i/c/m/d/q/a.java new file mode 100644 index 0000000000..0b8f3be236 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/a.java @@ -0,0 +1,11 @@ +package b.i.c.m.d.q; + +import b.i.c.m.d.q.b; +/* compiled from: ReportManager */ +public class a { + public final b.c a; + + public a(b.c cVar) { + this.a = cVar; + } +} diff --git a/app/src/main/java/b/i/c/m/d/q/b.java b/app/src/main/java/b/i/c/m/d/q/b.java new file mode 100644 index 0000000000..630c18f66b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/b.java @@ -0,0 +1,156 @@ +package b.i.c.m.d.q; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.c.m.d.k.x; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +/* compiled from: ReportUploader */ +public class b { + public static final short[] a = {10, 20, 30, 60, 120, 300}; + + /* renamed from: b reason: collision with root package name */ + public final b.i.c.m.d.q.d.b f1726b; + @Nullable + public final String c; + public final String d; + public final int e; + public final a f; + public final a g; + public Thread h; + + /* compiled from: ReportUploader */ + public interface a { + } + + /* compiled from: ReportUploader */ + /* renamed from: b.i.c.m.d.q.b$b reason: collision with other inner class name */ + public interface AbstractC0143b { + } + + /* compiled from: ReportUploader */ + public interface c { + } + + /* compiled from: ReportUploader */ + public class d extends b.i.c.m.d.k.d { + public final List j; + public final boolean k; + public final float l; + + public d(List list, boolean z2, float f) { + this.j = list; + this.k = z2; + this.l = f; + } + + @Override // b.i.c.m.d.k.d + public void a() { + try { + b(this.j, this.k); + } catch (Exception e) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "An unexpected error occurred while attempting to upload crash reports.", e); + } + } + b.this.h = null; + } + + public final void b(List list, boolean z2) { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder R = b.d.b.a.a.R("Starting report processing in "); + R.append(this.l); + R.append(" second(s)..."); + bVar.b(R.toString()); + float f = this.l; + if (f > 0.0f) { + try { + Thread.sleep((long) (f * 1000.0f)); + } catch (InterruptedException unused) { + Thread.currentThread().interrupt(); + return; + } + } + if (!x.this.p()) { + int i = 0; + while (list.size() > 0 && !x.this.p()) { + b.i.c.m.d.b bVar2 = b.i.c.m.d.b.a; + StringBuilder R2 = b.d.b.a.a.R("Attempting to send "); + R2.append(list.size()); + R2.append(" report(s)"); + bVar2.b(R2.toString()); + ArrayList arrayList = new ArrayList(); + for (b.i.c.m.d.q.c.c cVar : list) { + if (!b.this.a(cVar, z2)) { + arrayList.add(cVar); + } + } + if (arrayList.size() > 0) { + short[] sArr = b.a; + int i2 = i + 1; + long j = (long) sArr[Math.min(i, sArr.length - 1)]; + b.i.c.m.d.b bVar3 = b.i.c.m.d.b.a; + bVar3.b("Report submission: scheduling delayed retry in " + j + " seconds"); + try { + Thread.sleep(j * 1000); + i = i2; + } catch (InterruptedException unused2) { + Thread.currentThread().interrupt(); + return; + } + } + list = arrayList; + } + } + } + } + + public b(@Nullable String str, String str2, int i, a aVar, b.i.c.m.d.q.d.b bVar, a aVar2) { + if (bVar != null) { + this.f1726b = bVar; + this.c = str; + this.d = str2; + this.e = i; + this.f = aVar; + this.g = aVar2; + return; + } + throw new IllegalArgumentException("createReportCall must not be null."); + } + + /* JADX WARNING: Removed duplicated region for block: B:18:0x0053 */ + public boolean a(b.i.c.m.d.q.c.c cVar, boolean z2) { + boolean z3; + try { + b.i.c.m.d.q.c.a aVar = new b.i.c.m.d.q.c.a(this.c, this.d, cVar); + int i = this.e; + if (i == 3) { + b.i.c.m.d.b.a.b("Report configured to be sent via DataTransport."); + } else if (i == 2 && cVar.d() == 1) { + b.i.c.m.d.b.a.b("Report configured to be sent via DataTransport."); + } else { + z3 = this.f1726b.a(aVar, z2); + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder sb = new StringBuilder(); + sb.append("Crashlytics Reports Endpoint upload "); + sb.append(z3 ? "complete: " : "FAILED: "); + sb.append(cVar.a()); + bVar.f(sb.toString()); + if (z3) { + Objects.requireNonNull(this.f); + cVar.remove(); + return true; + } + return false; + } + z3 = true; + if (z3) { + } + } catch (Exception e) { + b.i.c.m.d.b bVar2 = b.i.c.m.d.b.a; + bVar2.e("Error occurred sending report " + cVar, e); + } + return false; + } +} diff --git a/app/src/main/java/b/i/c/m/d/q/c/a.java b/app/src/main/java/b/i/c/m/d/q/c/a.java new file mode 100644 index 0000000000..44b79edb9a --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/c/a.java @@ -0,0 +1,18 @@ +package b.i.c.m.d.q.c; + +import androidx.annotation.Nullable; +/* compiled from: CreateReportRequest */ +public class a { + @Nullable + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1727b; + public final c c; + + public a(@Nullable String str, String str2, c cVar) { + this.a = str; + this.f1727b = str2; + this.c = cVar; + } +} diff --git a/app/src/main/java/b/i/c/m/d/q/c/b.java b/app/src/main/java/b/i/c/m/d/q/c/b.java new file mode 100644 index 0000000000..f4084fa7df --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/c/b.java @@ -0,0 +1,60 @@ +package b.i.c.m.d.q.c; + +import b.d.b.a.a; +import java.io.File; +import java.util.Map; +/* compiled from: NativeSessionReport */ +public class b implements c { + public final File a; + + public b(File file) { + this.a = file; + } + + @Override // b.i.c.m.d.q.c.c + public String a() { + return this.a.getName(); + } + + @Override // b.i.c.m.d.q.c.c + public Map b() { + return null; + } + + @Override // b.i.c.m.d.q.c.c + public File c() { + return null; + } + + @Override // b.i.c.m.d.q.c.c + public int d() { + return 2; + } + + @Override // b.i.c.m.d.q.c.c + public File[] e() { + return this.a.listFiles(); + } + + @Override // b.i.c.m.d.q.c.c + public String f() { + return null; + } + + @Override // b.i.c.m.d.q.c.c + public void remove() { + File[] e = e(); + for (File file : e) { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder R = a.R("Removing native report file at "); + R.append(file.getPath()); + bVar.b(R.toString()); + file.delete(); + } + b.i.c.m.d.b bVar2 = b.i.c.m.d.b.a; + StringBuilder R2 = a.R("Removing native report directory at "); + R2.append(this.a); + bVar2.b(R2.toString()); + this.a.delete(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/q/c/c.java b/app/src/main/java/b/i/c/m/d/q/c/c.java new file mode 100644 index 0000000000..3fcab5ea87 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/c/c.java @@ -0,0 +1,20 @@ +package b.i.c.m.d.q.c; + +import java.io.File; +import java.util.Map; +/* compiled from: Report */ +public interface c { + String a(); + + Map b(); + + File c(); + + int d(); + + File[] e(); + + String f(); + + void remove(); +} diff --git a/app/src/main/java/b/i/c/m/d/q/c/d.java b/app/src/main/java/b/i/c/m/d/q/c/d.java new file mode 100644 index 0000000000..a9c46e9b6b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/c/d.java @@ -0,0 +1,62 @@ +package b.i.c.m.d.q.c; + +import b.d.b.a.a; +import b.i.c.m.d.b; +import java.io.File; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +/* compiled from: SessionReport */ +public class d implements c { + public final File a; + + /* renamed from: b reason: collision with root package name */ + public final File[] f1728b; + public final Map c; + + public d(File file, Map map) { + this.a = file; + this.f1728b = new File[]{file}; + this.c = new HashMap(map); + } + + @Override // b.i.c.m.d.q.c.c + public String a() { + String f = f(); + return f.substring(0, f.lastIndexOf(46)); + } + + @Override // b.i.c.m.d.q.c.c + public Map b() { + return Collections.unmodifiableMap(this.c); + } + + @Override // b.i.c.m.d.q.c.c + public File c() { + return this.a; + } + + @Override // b.i.c.m.d.q.c.c + public int d() { + return 1; + } + + @Override // b.i.c.m.d.q.c.c + public File[] e() { + return this.f1728b; + } + + @Override // b.i.c.m.d.q.c.c + public String f() { + return this.a.getName(); + } + + @Override // b.i.c.m.d.q.c.c + public void remove() { + b bVar = b.a; + StringBuilder R = a.R("Removing report at "); + R.append(this.a.getPath()); + bVar.b(R.toString()); + this.a.delete(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/q/d/a.java b/app/src/main/java/b/i/c/m/d/q/d/a.java new file mode 100644 index 0000000000..365ade3673 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/d/a.java @@ -0,0 +1,29 @@ +package b.i.c.m.d.q.d; + +import b.c.a.y.b; +/* compiled from: CompositeCreateReportSpiCall */ +public class a implements b { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final d f1729b; + + public a(c cVar, d dVar) { + this.a = cVar; + this.f1729b = dVar; + } + + @Override // b.i.c.m.d.q.d.b + public boolean a(b.i.c.m.d.q.c.a aVar, boolean z2) { + int h = b.h(aVar.c.d()); + if (h == 0) { + this.a.a(aVar, z2); + return true; + } else if (h != 1) { + return false; + } else { + this.f1729b.a(aVar, z2); + return true; + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/q/d/b.java b/app/src/main/java/b/i/c/m/d/q/d/b.java new file mode 100644 index 0000000000..62357ddece --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/d/b.java @@ -0,0 +1,7 @@ +package b.i.c.m.d.q.d; + +import b.i.c.m.d.q.c.a; +/* compiled from: CreateReportSpiCall */ +public interface b { + boolean a(a aVar, boolean z2); +} diff --git a/app/src/main/java/b/i/c/m/d/q/d/c.java b/app/src/main/java/b/i/c/m/d/q/d/c.java new file mode 100644 index 0000000000..a4cb4d4516 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/d/c.java @@ -0,0 +1,73 @@ +package b.i.c.m.d.q.d; + +import android.util.Log; +import b.i.a.f.e.o.f; +import b.i.c.m.d.k.a; +import b.i.c.m.d.n.b; +import java.io.File; +import java.io.IOException; +import java.util.Map; +/* compiled from: DefaultCreateReportSpiCall */ +public class c extends a implements b { + public final String f; + + public c(String str, String str2, b bVar, String str3) { + super(str, str2, bVar, 2); + this.f = str3; + } + + @Override // b.i.c.m.d.q.d.b + public boolean a(b.i.c.m.d.q.c.a aVar, boolean z2) { + if (z2) { + b.i.c.m.d.n.a b2 = b(); + b2.e.put("X-CRASHLYTICS-GOOGLE-APP-ID", aVar.f1727b); + b2.e.put("X-CRASHLYTICS-API-CLIENT-TYPE", "android"); + b2.e.put("X-CRASHLYTICS-API-CLIENT-VERSION", this.f); + for (Map.Entry entry : aVar.c.b().entrySet()) { + b2.e.put(entry.getKey(), entry.getValue()); + } + b.i.c.m.d.q.c.c cVar = aVar.c; + b2.b("report[identifier]", cVar.a()); + if (cVar.e().length == 1) { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder R = b.d.b.a.a.R("Adding single file "); + R.append(cVar.f()); + R.append(" to report "); + R.append(cVar.a()); + bVar.b(R.toString()); + b2.c("report[file]", cVar.f(), "application/octet-stream", cVar.c()); + } else { + File[] e = cVar.e(); + int i = 0; + for (File file : e) { + b.i.c.m.d.b bVar2 = b.i.c.m.d.b.a; + StringBuilder R2 = b.d.b.a.a.R("Adding file "); + R2.append(file.getName()); + R2.append(" to report "); + R2.append(cVar.a()); + bVar2.b(R2.toString()); + b2.c("report[file" + i + "]", file.getName(), "application/octet-stream", file); + i++; + } + } + b.i.c.m.d.b bVar3 = b.i.c.m.d.b.a; + StringBuilder R3 = b.d.b.a.a.R("Sending report to: "); + R3.append(this.f1661b); + bVar3.b(R3.toString()); + try { + b.i.c.m.d.n.c a = b2.a(); + int i2 = a.a; + bVar3.b("Create report request ID: " + a.c.c("X-REQUEST-ID")); + bVar3.b("Result was: " + i2); + return f.P0(i2) == 0; + } catch (IOException e2) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Create report HTTP request failed.", e2); + } + throw new RuntimeException(e2); + } + } else { + throw new RuntimeException("An invalid data collection token was used."); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/q/d/d.java b/app/src/main/java/b/i/c/m/d/q/d/d.java new file mode 100644 index 0000000000..f973ee0946 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/q/d/d.java @@ -0,0 +1,72 @@ +package b.i.c.m.d.q.d; + +import b.i.a.f.e.o.f; +import b.i.c.m.d.k.a; +import b.i.c.m.d.n.b; +import b.i.c.m.d.q.c.c; +import java.io.File; +import java.io.IOException; +/* compiled from: NativeCreateReportSpiCall */ +public class d extends a implements b { + public final String f; + + public d(String str, String str2, b bVar, String str3) { + super(str, str2, bVar, 2); + this.f = str3; + } + + @Override // b.i.c.m.d.q.d.b + public boolean a(b.i.c.m.d.q.c.a aVar, boolean z2) { + if (z2) { + b.i.c.m.d.n.a b2 = b(); + String str = aVar.f1727b; + b2.e.put("User-Agent", "Crashlytics Android SDK/17.3.0"); + b2.e.put("X-CRASHLYTICS-API-CLIENT-TYPE", "android"); + b2.e.put("X-CRASHLYTICS-API-CLIENT-VERSION", this.f); + b2.e.put("X-CRASHLYTICS-GOOGLE-APP-ID", str); + String str2 = aVar.a; + c cVar = aVar.c; + if (str2 != null) { + b2.b("org_id", str2); + } + b2.b("report_id", cVar.a()); + File[] e = cVar.e(); + for (File file : e) { + if (file.getName().equals("minidump")) { + b2.c("minidump_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("metadata")) { + b2.c("crash_meta_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("binaryImages")) { + b2.c("binary_images_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("session")) { + b2.c("session_meta_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("app")) { + b2.c("app_meta_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("device")) { + b2.c("device_meta_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("os")) { + b2.c("os_meta_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("user")) { + b2.c("user_meta_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("logs")) { + b2.c("logs_file", file.getName(), "application/octet-stream", file); + } else if (file.getName().equals("keys")) { + b2.c("keys_file", file.getName(), "application/octet-stream", file); + } + } + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder R = b.d.b.a.a.R("Sending report to: "); + R.append(this.f1661b); + bVar.b(R.toString()); + try { + int i = b2.a().a; + bVar.b("Result was: " + i); + return f.P0(i) == 0; + } catch (IOException e2) { + throw new RuntimeException(e2); + } + } else { + throw new RuntimeException("An invalid data collection token was used."); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/r/a.java b/app/src/main/java/b/i/c/m/d/r/a.java new file mode 100644 index 0000000000..4cca96dc26 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/r/a.java @@ -0,0 +1,29 @@ +package b.i.c.m.d.r; + +import b.i.a.b.h; +import b.i.c.m.d.k.o0; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: DataTransportCrashlyticsReportSender */ +public final /* synthetic */ class a implements h { + public final TaskCompletionSource a; + + /* renamed from: b reason: collision with root package name */ + public final o0 f1730b; + + public a(TaskCompletionSource taskCompletionSource, o0 o0Var) { + this.a = taskCompletionSource; + this.f1730b = o0Var; + } + + @Override // b.i.a.b.h + public void a(Exception exc) { + TaskCompletionSource taskCompletionSource = this.a; + o0 o0Var = this.f1730b; + b.i.c.m.d.m.x.h hVar = c.a; + if (exc != null) { + taskCompletionSource.a(exc); + } else { + taskCompletionSource.b(o0Var); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/r/b.java b/app/src/main/java/b/i/c/m/d/r/b.java new file mode 100644 index 0000000000..29b9ab7368 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/r/b.java @@ -0,0 +1,15 @@ +package b.i.c.m.d.r; + +import b.i.a.b.e; +import b.i.c.m.d.m.v; +import com.adjust.sdk.Constants; +import java.nio.charset.Charset; +/* compiled from: DataTransportCrashlyticsReportSender */ +public final /* synthetic */ class b implements e { + public static final b a = new b(); + + @Override // b.i.a.b.e + public Object apply(Object obj) { + return c.a.g((v) obj).getBytes(Charset.forName(Constants.ENCODING)); + } +} diff --git a/app/src/main/java/b/i/c/m/d/r/c.java b/app/src/main/java/b/i/c/m/d/r/c.java new file mode 100644 index 0000000000..42cc83def2 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/r/c.java @@ -0,0 +1,35 @@ +package b.i.c.m.d.r; + +import b.i.a.b.e; +import b.i.a.b.f; +import b.i.c.m.d.m.v; +import b.i.c.m.d.m.x.h; +/* compiled from: DataTransportCrashlyticsReportSender */ +public class c { + public static final h a = new h(); + + /* renamed from: b reason: collision with root package name */ + public static final String f1731b = a("hts/cahyiseot-agolai.o/1frlglgc/aclg", "tp:/rsltcrprsp.ogepscmv/ieo/eaybtho"); + public static final String c = a("AzSBpY4F0rHiHFdinTvM", "IayrSTFL9eJ69YeSUO2"); + public static final e d = b.a; + public final f e; + + public c(f fVar, e eVar) { + this.e = fVar; + } + + public static String a(String str, String str2) { + int length = str.length() - str2.length(); + if (length < 0 || length > 1) { + throw new IllegalArgumentException("Invalid input received"); + } + StringBuilder sb = new StringBuilder(str2.length() + str.length()); + for (int i = 0; i < str.length(); i++) { + sb.append(str.charAt(i)); + if (str2.length() > i) { + sb.append(str2.charAt(i)); + } + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/a.java b/app/src/main/java/b/i/c/m/d/s/a.java new file mode 100644 index 0000000000..0a432aacac --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/a.java @@ -0,0 +1,68 @@ +package b.i.c.m.d.s; + +import android.content.Context; +import android.util.Log; +import b.i.c.m.d.b; +import b.i.c.m.d.o.h; +import java.io.File; +import java.io.FileInputStream; +import org.json.JSONObject; +/* compiled from: CachedSettingsIo */ +public class a { + public final Context a; + + public a(Context context) { + this.a = context; + } + + /* JADX WARNING: Removed duplicated region for block: B:17:0x004f A[Catch:{ all -> 0x0058 }] */ + public JSONObject a() { + Throwable th; + Exception e; + FileInputStream fileInputStream; + JSONObject jSONObject; + b bVar = b.a; + bVar.b("Reading cached settings..."); + FileInputStream fileInputStream2 = null; + try { + File file = new File(new h(this.a).a(), "com.crashlytics.settings.json"); + if (file.exists()) { + fileInputStream = new FileInputStream(file); + try { + jSONObject = new JSONObject(b.i.c.m.d.k.h.w(fileInputStream)); + fileInputStream2 = fileInputStream; + } catch (Exception e2) { + e = e2; + try { + if (b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Failed to fetch cached settings", e); + } + b.i.c.m.d.k.h.c(fileInputStream, "Error while closing settings cache file."); + return null; + } catch (Throwable th2) { + fileInputStream2 = fileInputStream; + th = th2; + b.i.c.m.d.k.h.c(fileInputStream2, "Error while closing settings cache file."); + throw th; + } + } + } else { + bVar.b("No cached settings found."); + jSONObject = null; + } + b.i.c.m.d.k.h.c(fileInputStream2, "Error while closing settings cache file."); + return jSONObject; + } catch (Exception e3) { + e = e3; + fileInputStream = null; + if (b.a.a(6)) { + } + b.i.c.m.d.k.h.c(fileInputStream, "Error while closing settings cache file."); + return null; + } catch (Throwable th3) { + th = th3; + b.i.c.m.d.k.h.c(fileInputStream2, "Error while closing settings cache file."); + throw th; + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/b.java b/app/src/main/java/b/i/c/m/d/s/b.java new file mode 100644 index 0000000000..fa853d32fa --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/b.java @@ -0,0 +1,27 @@ +package b.i.c.m.d.s; + +import b.i.c.m.d.k.e1; +import b.i.c.m.d.s.h.c; +import b.i.c.m.d.s.h.d; +import b.i.c.m.d.s.h.f; +import java.util.Objects; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: DefaultSettingsJsonTransform */ +public class b implements f { + public static long b(e1 e1Var, long j, JSONObject jSONObject) { + if (jSONObject.has("expires_at")) { + return jSONObject.optLong("expires_at"); + } + Objects.requireNonNull(e1Var); + return (j * 1000) + System.currentTimeMillis(); + } + + @Override // b.i.c.m.d.s.f + public f a(e1 e1Var, JSONObject jSONObject) throws JSONException { + int optInt = jSONObject.optInt("settings_version", 0); + int optInt2 = jSONObject.optInt("cache_duration", 3600); + JSONObject jSONObject2 = jSONObject.getJSONObject("app"); + return new f(b(e1Var, (long) optInt2, jSONObject), new b.i.c.m.d.s.h.b(jSONObject2.getString("status"), jSONObject2.getString("url"), jSONObject2.getString("reports_url"), jSONObject2.getString("ndk_reports_url"), jSONObject2.optBoolean("update_required", false)), new d(jSONObject.getJSONObject("session").optInt("max_custom_exception_events", 8), 4), new c(jSONObject.getJSONObject("features").optBoolean("collect_reports", true)), optInt, optInt2); + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/c.java b/app/src/main/java/b/i/c/m/d/s/c.java new file mode 100644 index 0000000000..d998840018 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/c.java @@ -0,0 +1,240 @@ +package b.i.c.m.d.s; + +import android.content.Context; +import android.content.SharedPreferences; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.n.f; +import b.i.c.m.d.k.e1; +import b.i.c.m.d.k.q0; +import b.i.c.m.d.o.h; +import b.i.c.m.d.s.h.b; +import b.i.c.m.d.s.h.e; +import b.i.c.m.d.s.h.g; +import b.i.c.m.d.s.i.d; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.Executor; +import java.util.concurrent.atomic.AtomicReference; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: SettingsController */ +public class c implements d { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final g f1732b; + public final e c; + public final e1 d; + public final a e; + public final d f; + public final q0 g; + public final AtomicReference h; + public final AtomicReference> i = new AtomicReference<>(new TaskCompletionSource()); + + /* compiled from: SettingsController */ + public class a implements f { + public a() { + } + + /* Return type fixed from 'com.google.android.gms.tasks.Task' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.f + @NonNull + public Task a(@Nullable Void r11) throws Exception { + JSONObject jSONObject; + Throwable th; + FileWriter fileWriter; + Exception e; + c cVar = c.this; + d dVar = cVar.f; + g gVar = cVar.f1732b; + b.i.c.m.d.s.i.c cVar2 = (b.i.c.m.d.s.i.c) dVar; + Objects.requireNonNull(cVar2); + FileWriter fileWriter2 = null; + try { + Map f = cVar2.f(gVar); + b.i.c.m.d.n.a c = cVar2.c(f); + cVar2.d(c, gVar); + cVar2.f.b("Requesting settings from " + cVar2.f1661b); + cVar2.f.b("Settings query params were: " + f); + b.i.c.m.d.n.c a = c.a(); + cVar2.f.b("Settings request ID: " + a.c.c("X-REQUEST-ID")); + jSONObject = cVar2.g(a); + } catch (IOException e2) { + if (cVar2.f.a(6)) { + Log.e("FirebaseCrashlytics", "Settings request failed.", e2); + } + jSONObject = null; + } + if (jSONObject != null) { + b.i.c.m.d.s.h.f a2 = c.this.c.a(jSONObject); + a aVar = c.this.e; + long j = a2.d; + Objects.requireNonNull(aVar); + b.i.c.m.d.b.a.b("Writing settings to cache file..."); + try { + jSONObject.put("expires_at", j); + fileWriter = new FileWriter(new File(new h(aVar.a).a(), "com.crashlytics.settings.json")); + try { + fileWriter.write(jSONObject.toString()); + fileWriter.flush(); + } catch (Exception e3) { + e = e3; + } catch (Throwable th2) { + th = th2; + b.i.c.m.d.k.h.c(fileWriter, "Failed to close settings writer."); + throw th; + } + } catch (Exception e4) { + e = e4; + fileWriter = null; + try { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Failed to cache settings", e); + } + b.i.c.m.d.k.h.c(fileWriter, "Failed to close settings writer."); + c.this.e(jSONObject, "Loaded settings: "); + c cVar3 = c.this; + String str = cVar3.f1732b.f; + SharedPreferences.Editor edit = b.i.c.m.d.k.h.o(cVar3.a).edit(); + edit.putString("existing_instance_identifier", str); + edit.apply(); + c.this.h.set(a2); + c.this.i.get().b(a2.a); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource<>(); + taskCompletionSource.b(a2.a); + c.this.i.set(taskCompletionSource); + return b.i.a.f.e.o.f.Y(null); + } catch (Throwable th3) { + th = th3; + fileWriter2 = fileWriter; + fileWriter = fileWriter2; + b.i.c.m.d.k.h.c(fileWriter, "Failed to close settings writer."); + throw th; + } + } catch (Throwable th4) { + th = th4; + fileWriter = fileWriter2; + b.i.c.m.d.k.h.c(fileWriter, "Failed to close settings writer."); + throw th; + } + b.i.c.m.d.k.h.c(fileWriter, "Failed to close settings writer."); + c.this.e(jSONObject, "Loaded settings: "); + c cVar3 = c.this; + String str = cVar3.f1732b.f; + SharedPreferences.Editor edit = b.i.c.m.d.k.h.o(cVar3.a).edit(); + edit.putString("existing_instance_identifier", str); + edit.apply(); + c.this.h.set(a2); + c.this.i.get().b(a2.a); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource<>(); + taskCompletionSource.b(a2.a); + c.this.i.set(taskCompletionSource); + } + return b.i.a.f.e.o.f.Y(null); + } + } + + public c(Context context, g gVar, e1 e1Var, e eVar, a aVar, d dVar, q0 q0Var) { + AtomicReference atomicReference = new AtomicReference<>(); + this.h = atomicReference; + this.a = context; + this.f1732b = gVar; + this.d = e1Var; + this.c = eVar; + this.e = aVar; + this.f = dVar; + this.g = q0Var; + JSONObject jSONObject = new JSONObject(); + atomicReference.set(new b.i.c.m.d.s.h.f(b.b(e1Var, 3600, jSONObject), null, new b.i.c.m.d.s.h.d(jSONObject.optInt("max_custom_exception_events", 8), 4), new b.i.c.m.d.s.h.c(jSONObject.optBoolean("collect_reports", true)), 0, 3600)); + } + + public Task a() { + return this.i.get().a; + } + + /* JADX WARNING: Removed duplicated region for block: B:29:0x006f */ + /* JADX WARNING: Removed duplicated region for block: B:36:? A[RETURN, SYNTHETIC] */ + public final b.i.c.m.d.s.h.f b(int i) { + Exception e; + b.i.c.m.d.s.h.f fVar = null; + try { + if (b.c.a.y.b.g(2, i)) { + return null; + } + JSONObject a2 = this.e.a(); + if (a2 != null) { + b.i.c.m.d.s.h.f a3 = this.c.a(a2); + if (a3 != null) { + e(a2, "Loaded cached settings: "); + Objects.requireNonNull(this.d); + long currentTimeMillis = System.currentTimeMillis(); + if (!b.c.a.y.b.g(3, i)) { + if (a3.d < currentTimeMillis) { + b.i.c.m.d.b.a.b("Cached settings have expired."); + return null; + } + } + try { + b.i.c.m.d.b.a.b("Returning cached settings."); + return a3; + } catch (Exception e2) { + e = e2; + fVar = a3; + if (b.i.c.m.d.b.a.a(6)) { + return fVar; + } + Log.e("FirebaseCrashlytics", "Failed to get cached settings", e); + return fVar; + } + } else if (!b.i.c.m.d.b.a.a(6)) { + return null; + } else { + Log.e("FirebaseCrashlytics", "Failed to parse cached settings data.", null); + return null; + } + } else { + b.i.c.m.d.b.a.b("No cached settings data found."); + return null; + } + } catch (Exception e3) { + e = e3; + if (b.i.c.m.d.b.a.a(6)) { + } + } + } + + public e c() { + return this.h.get(); + } + + /* JADX WARN: Incorrect types in method signature: (Ljava/lang/Object;Ljava/util/concurrent/Executor;)Lcom/google/android/gms/tasks/Task; */ + public Task d(int i, Executor executor) { + b.i.c.m.d.s.h.f b2; + if ((!b.i.c.m.d.k.h.o(this.a).getString("existing_instance_identifier", "").equals(this.f1732b.f)) || (b2 = b(i)) == null) { + b.i.c.m.d.s.h.f b3 = b(3); + if (b3 != null) { + this.h.set(b3); + this.i.get().b(b3.a); + } + return this.g.c().r(executor, new a()); + } + this.h.set(b2); + this.i.get().b(b2.a); + return b.i.a.f.e.o.f.Y(null); + } + + public final void e(JSONObject jSONObject, String str) throws JSONException { + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder R = b.d.b.a.a.R(str); + R.append(jSONObject.toString()); + bVar.b(R.toString()); + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/d.java b/app/src/main/java/b/i/c/m/d/s/d.java new file mode 100644 index 0000000000..497c1bd45d --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/d.java @@ -0,0 +1,4 @@ +package b.i.c.m.d.s; +/* compiled from: SettingsDataProvider */ +public interface d { +} diff --git a/app/src/main/java/b/i/c/m/d/s/e.java b/app/src/main/java/b/i/c/m/d/s/e.java new file mode 100644 index 0000000000..b0c25b7225 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/e.java @@ -0,0 +1,18 @@ +package b.i.c.m.d.s; + +import b.i.c.m.d.k.e1; +import b.i.c.m.d.s.h.f; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: SettingsJsonParser */ +public class e { + public final e1 a; + + public e(e1 e1Var) { + this.a = e1Var; + } + + public f a(JSONObject jSONObject) throws JSONException { + return (jSONObject.getInt("settings_version") != 3 ? new b() : new g()).a(this.a, jSONObject); + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/f.java b/app/src/main/java/b/i/c/m/d/s/f.java new file mode 100644 index 0000000000..ab0d854788 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/f.java @@ -0,0 +1,9 @@ +package b.i.c.m.d.s; + +import b.i.c.m.d.k.e1; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: SettingsJsonTransform */ +public interface f { + b.i.c.m.d.s.h.f a(e1 e1Var, JSONObject jSONObject) throws JSONException; +} diff --git a/app/src/main/java/b/i/c/m/d/s/g.java b/app/src/main/java/b/i/c/m/d/s/g.java new file mode 100644 index 0000000000..8aca6ec2a3 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/g.java @@ -0,0 +1,39 @@ +package b.i.c.m.d.s; + +import b.i.c.m.d.k.e1; +import b.i.c.m.d.s.h.b; +import b.i.c.m.d.s.h.c; +import b.i.c.m.d.s.h.d; +import b.i.c.m.d.s.h.f; +import java.util.Locale; +import java.util.Objects; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: SettingsV3JsonTransform */ +public class g implements f { + @Override // b.i.c.m.d.s.f + public f a(e1 e1Var, JSONObject jSONObject) throws JSONException { + long j; + int optInt = jSONObject.optInt("settings_version", 0); + int optInt2 = jSONObject.optInt("cache_duration", 3600); + JSONObject jSONObject2 = jSONObject.getJSONObject("fabric"); + JSONObject jSONObject3 = jSONObject.getJSONObject("app"); + String string = jSONObject3.getString("status"); + boolean equals = "new".equals(string); + String string2 = jSONObject2.getString("bundle_id"); + String string3 = jSONObject2.getString("org_id"); + String format = equals ? "https://update.crashlytics.com/spi/v1/platforms/android/apps" : String.format(Locale.US, "https://update.crashlytics.com/spi/v1/platforms/android/apps/%s", string2); + Locale locale = Locale.US; + b bVar = new b(string, format, String.format(locale, "https://reports.crashlytics.com/spi/v1/platforms/android/apps/%s/reports", string2), String.format(locale, "https://reports.crashlytics.com/sdk-api/v1/platforms/android/apps/%s/minidumps", string2), string2, string3, jSONObject3.optBoolean("update_required", false), jSONObject3.optInt("report_upload_variant", 0), jSONObject3.optInt("native_report_upload_variant", 0)); + d dVar = new d(8, 4); + c cVar = new c(jSONObject.getJSONObject("features").optBoolean("collect_reports", true)); + long j2 = (long) optInt2; + if (jSONObject.has("expires_at")) { + j = jSONObject.optLong("expires_at"); + } else { + Objects.requireNonNull(e1Var); + j = (j2 * 1000) + System.currentTimeMillis(); + } + return new f(j, bVar, dVar, cVar, optInt, optInt2); + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/h/a.java b/app/src/main/java/b/i/c/m/d/s/h/a.java new file mode 100644 index 0000000000..12cb49cc67 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/h/a.java @@ -0,0 +1,27 @@ +package b.i.c.m.d.s.h; +/* compiled from: AppRequestData */ +public class a { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1733b; + public final String c; + public final String d; + public final String e; + public final String f; + public final String g; + public final int h; + public final String i; + + public a(String str, String str2, String str3, String str4, String str5, String str6, String str7, int i, String str8, String str9) { + this.a = str; + this.f1733b = str2; + this.c = str3; + this.d = str4; + this.e = str5; + this.f = str6; + this.g = str7; + this.h = i; + this.i = str8; + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/h/b.java b/app/src/main/java/b/i/c/m/d/s/h/b.java new file mode 100644 index 0000000000..3d2213a44b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/h/b.java @@ -0,0 +1,36 @@ +package b.i.c.m.d.s.h; +/* compiled from: AppSettingsData */ +public class b { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1734b; + public final String c; + public final String d; + public final String e; + public final boolean f; + public final int g; + public final int h; + + public b(String str, String str2, String str3, String str4, String str5, String str6, boolean z2, int i, int i2) { + this.a = str; + this.f1734b = str2; + this.c = str3; + this.d = str4; + this.e = str6; + this.f = z2; + this.g = i; + this.h = i2; + } + + public b(String str, String str2, String str3, String str4, boolean z2) { + this.a = str; + this.f1734b = str2; + this.c = str3; + this.d = str4; + this.e = null; + this.f = z2; + this.g = 0; + this.h = 0; + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/h/c.java b/app/src/main/java/b/i/c/m/d/s/h/c.java new file mode 100644 index 0000000000..66b63512c7 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/h/c.java @@ -0,0 +1,9 @@ +package b.i.c.m.d.s.h; +/* compiled from: FeaturesSettingsData */ +public class c { + public final boolean a; + + public c(boolean z2) { + this.a = z2; + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/h/d.java b/app/src/main/java/b/i/c/m/d/s/h/d.java new file mode 100644 index 0000000000..ab27f10af9 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/h/d.java @@ -0,0 +1,9 @@ +package b.i.c.m.d.s.h; +/* compiled from: SessionSettingsData */ +public class d { + public final int a; + + public d(int i, int i2) { + this.a = i; + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/h/e.java b/app/src/main/java/b/i/c/m/d/s/h/e.java new file mode 100644 index 0000000000..db36d9343b --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/h/e.java @@ -0,0 +1,7 @@ +package b.i.c.m.d.s.h; +/* compiled from: Settings */ +public interface e { + c a(); + + d b(); +} diff --git a/app/src/main/java/b/i/c/m/d/s/h/f.java b/app/src/main/java/b/i/c/m/d/s/h/f.java new file mode 100644 index 0000000000..76310dea3d --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/h/f.java @@ -0,0 +1,27 @@ +package b.i.c.m.d.s.h; +/* compiled from: SettingsData */ +public class f implements e { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final d f1735b; + public final c c; + public final long d; + + public f(long j, b bVar, d dVar, c cVar, int i, int i2) { + this.d = j; + this.a = bVar; + this.f1735b = dVar; + this.c = cVar; + } + + @Override // b.i.c.m.d.s.h.e + public c a() { + return this.c; + } + + @Override // b.i.c.m.d.s.h.e + public d b() { + return this.f1735b; + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/h/g.java b/app/src/main/java/b/i/c/m/d/s/h/g.java new file mode 100644 index 0000000000..c44db84c72 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/h/g.java @@ -0,0 +1,29 @@ +package b.i.c.m.d.s.h; + +import b.i.c.m.d.k.w0; +/* compiled from: SettingsRequest */ +public class g { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1736b; + public final String c; + public final String d; + public final w0 e; + public final String f; + public final String g; + public final String h; + public final int i; + + public g(String str, String str2, String str3, String str4, w0 w0Var, String str5, String str6, String str7, int i) { + this.a = str; + this.f1736b = str2; + this.c = str3; + this.d = str4; + this.e = w0Var; + this.f = str5; + this.g = str6; + this.h = str7; + this.i = i; + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/i/a.java b/app/src/main/java/b/i/c/m/d/s/i/a.java new file mode 100644 index 0000000000..90951a6c66 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/i/a.java @@ -0,0 +1,61 @@ +package b.i.c.m.d.s.i; + +import android.util.Log; +import androidx.browser.trusted.sharing.ShareTarget; +import b.i.a.f.e.o.f; +import b.i.c.m.d.k.h; +import b.i.c.m.d.n.b; +import b.i.c.m.d.n.c; +import java.io.IOException; +/* compiled from: AbstractAppSpiCall */ +public abstract class a extends b.i.c.m.d.k.a { + public final String f; + + public a(String str, String str2, b bVar, int i, String str3) { + super(str, str2, bVar, i); + this.f = str3; + } + + public boolean d(b.i.c.m.d.s.h.a aVar, boolean z2) { + if (z2) { + b.i.c.m.d.n.a b2 = b(); + b2.e.put("X-CRASHLYTICS-ORG-ID", aVar.a); + b2.e.put("X-CRASHLYTICS-GOOGLE-APP-ID", aVar.f1733b); + b2.e.put("X-CRASHLYTICS-API-CLIENT-TYPE", "android"); + b2.e.put("X-CRASHLYTICS-API-CLIENT-VERSION", this.f); + b2.b("org_id", aVar.a); + b2.b("app[identifier]", aVar.c); + b2.b("app[name]", aVar.g); + b2.b("app[display_version]", aVar.d); + b2.b("app[build_version]", aVar.e); + b2.b("app[source]", Integer.toString(aVar.h)); + b2.b("app[minimum_sdk_version]", aVar.i); + b2.b("app[built_sdk_version]", "0"); + if (!h.s(aVar.f)) { + b2.b("app[instance_identifier]", aVar.f); + } + b.i.c.m.d.b bVar = b.i.c.m.d.b.a; + StringBuilder R = b.d.b.a.a.R("Sending app info to "); + R.append(this.f1661b); + bVar.b(R.toString()); + try { + c a = b2.a(); + int i = a.a; + String str = ShareTarget.METHOD_POST.equalsIgnoreCase(b.c.a.y.b.n(b2.f1721b)) ? "Create" : "Update"; + bVar.b(str + " app request ID: " + a.c.c("X-REQUEST-ID")); + StringBuilder sb = new StringBuilder(); + sb.append("Result was "); + sb.append(i); + bVar.b(sb.toString()); + return f.P0(i) == 0; + } catch (IOException e) { + if (b.i.c.m.d.b.a.a(6)) { + Log.e("FirebaseCrashlytics", "HTTP request failed.", e); + } + throw new RuntimeException(e); + } + } else { + throw new RuntimeException("An invalid data collection token was used."); + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/i/b.java b/app/src/main/java/b/i/c/m/d/s/i/b.java new file mode 100644 index 0000000000..e48b365232 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/i/b.java @@ -0,0 +1,7 @@ +package b.i.c.m.d.s.i; +/* compiled from: CreateAppSpiCall */ +public class b extends a { + public b(String str, String str2, b.i.c.m.d.n.b bVar, String str3) { + super(str, str2, bVar, 2, str3); + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/i/c.java b/app/src/main/java/b/i/c/m/d/s/i/c.java new file mode 100644 index 0000000000..a3e239a017 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/i/c.java @@ -0,0 +1,77 @@ +package b.i.c.m.d.s.i; + +import b.i.c.m.d.b; +import b.i.c.m.d.k.a; +import b.i.c.m.d.k.h; +import b.i.c.m.d.k.v0; +import b.i.c.m.d.s.h.g; +import com.discord.restapi.RestAPIBuilder; +import java.util.HashMap; +import java.util.Map; +import org.json.JSONObject; +/* compiled from: DefaultSettingsSpiCall */ +public class c extends a implements d { + public b f; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(String str, String str2, b.i.c.m.d.n.b bVar) { + super(str, str2, bVar, 1); + b bVar2 = b.a; + this.f = bVar2; + } + + public final b.i.c.m.d.n.a d(b.i.c.m.d.n.a aVar, g gVar) { + e(aVar, "X-CRASHLYTICS-GOOGLE-APP-ID", gVar.a); + e(aVar, "X-CRASHLYTICS-API-CLIENT-TYPE", "android"); + e(aVar, "X-CRASHLYTICS-API-CLIENT-VERSION", "17.3.0"); + e(aVar, "Accept", RestAPIBuilder.CONTENT_TYPE_JSON); + e(aVar, "X-CRASHLYTICS-DEVICE-MODEL", gVar.f1736b); + e(aVar, "X-CRASHLYTICS-OS-BUILD-VERSION", gVar.c); + e(aVar, "X-CRASHLYTICS-OS-DISPLAY-VERSION", gVar.d); + e(aVar, "X-CRASHLYTICS-INSTALLATION-ID", ((v0) gVar.e).b()); + return aVar; + } + + public final void e(b.i.c.m.d.n.a aVar, String str, String str2) { + if (str2 != null) { + aVar.e.put(str, str2); + } + } + + public final Map f(g gVar) { + HashMap hashMap = new HashMap(); + hashMap.put("build_version", gVar.h); + hashMap.put("display_version", gVar.g); + hashMap.put("source", Integer.toString(gVar.i)); + String str = gVar.f; + if (!h.s(str)) { + hashMap.put("instance", str); + } + return hashMap; + } + + public JSONObject g(b.i.c.m.d.n.c cVar) { + int i = cVar.a; + b bVar = this.f; + bVar.b("Settings result was: " + i); + if (i == 200 || i == 201 || i == 202 || i == 203) { + String str = cVar.f1722b; + try { + return new JSONObject(str); + } catch (Exception e) { + b bVar2 = this.f; + StringBuilder R = b.d.b.a.a.R("Failed to parse settings JSON from "); + R.append(this.f1661b); + bVar2.c(R.toString(), e); + b.d.b.a.a.m0("Settings response ", str, this.f); + return null; + } + } else { + b bVar3 = this.f; + StringBuilder R2 = b.d.b.a.a.R("Failed to retrieve settings from "); + R2.append(this.f1661b); + bVar3.d(R2.toString()); + return null; + } + } +} diff --git a/app/src/main/java/b/i/c/m/d/s/i/d.java b/app/src/main/java/b/i/c/m/d/s/i/d.java new file mode 100644 index 0000000000..fe87f12c07 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/i/d.java @@ -0,0 +1,4 @@ +package b.i.c.m.d.s.i; +/* compiled from: SettingsSpiCall */ +public interface d { +} diff --git a/app/src/main/java/b/i/c/m/d/s/i/e.java b/app/src/main/java/b/i/c/m/d/s/i/e.java new file mode 100644 index 0000000000..5444068bc8 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/s/i/e.java @@ -0,0 +1,9 @@ +package b.i.c.m.d.s.i; + +import b.i.c.m.d.n.b; +/* compiled from: UpdateAppSpiCall */ +public class e extends a { + public e(String str, String str2, b bVar, String str3) { + super(str, str2, bVar, 3, str3); + } +} diff --git a/app/src/main/java/b/i/c/m/d/t/a.java b/app/src/main/java/b/i/c/m/d/t/a.java new file mode 100644 index 0000000000..6b53aaca22 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/t/a.java @@ -0,0 +1,29 @@ +package b.i.c.m.d.t; +/* compiled from: MiddleOutFallbackStrategy */ +public class a implements d { + public final d[] a; + + /* renamed from: b reason: collision with root package name */ + public final b f1737b; + + public a(int i, d... dVarArr) { + this.a = dVarArr; + this.f1737b = new b(i); + } + + @Override // b.i.c.m.d.t.d + public StackTraceElement[] a(StackTraceElement[] stackTraceElementArr) { + if (stackTraceElementArr.length <= 1024) { + return stackTraceElementArr; + } + d[] dVarArr = this.a; + StackTraceElement[] stackTraceElementArr2 = stackTraceElementArr; + for (d dVar : dVarArr) { + if (stackTraceElementArr2.length <= 1024) { + break; + } + stackTraceElementArr2 = dVar.a(stackTraceElementArr); + } + return stackTraceElementArr2.length > 1024 ? this.f1737b.a(stackTraceElementArr2) : stackTraceElementArr2; + } +} diff --git a/app/src/main/java/b/i/c/m/d/t/b.java b/app/src/main/java/b/i/c/m/d/t/b.java new file mode 100644 index 0000000000..53f5601e3e --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/t/b.java @@ -0,0 +1,24 @@ +package b.i.c.m.d.t; +/* compiled from: MiddleOutStrategy */ +public class b implements d { + public final int a; + + public b(int i) { + this.a = i; + } + + @Override // b.i.c.m.d.t.d + public StackTraceElement[] a(StackTraceElement[] stackTraceElementArr) { + int length = stackTraceElementArr.length; + int i = this.a; + if (length <= i) { + return stackTraceElementArr; + } + int i2 = i / 2; + int i3 = i - i2; + StackTraceElement[] stackTraceElementArr2 = new StackTraceElement[i]; + System.arraycopy(stackTraceElementArr, 0, stackTraceElementArr2, 0, i3); + System.arraycopy(stackTraceElementArr, stackTraceElementArr.length - i2, stackTraceElementArr2, i3, i2); + return stackTraceElementArr2; + } +} diff --git a/app/src/main/java/b/i/c/m/d/t/c.java b/app/src/main/java/b/i/c/m/d/t/c.java new file mode 100644 index 0000000000..931dd32161 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/t/c.java @@ -0,0 +1,64 @@ +package b.i.c.m.d.t; + +import java.util.HashMap; +/* compiled from: RemoveRepeatsStrategy */ +public class c implements d { + public c(int i) { + } + + /* JADX WARNING: Removed duplicated region for block: B:15:0x0040 */ + @Override // b.i.c.m.d.t.d + public StackTraceElement[] a(StackTraceElement[] stackTraceElementArr) { + int i; + boolean z2; + HashMap hashMap = new HashMap(); + StackTraceElement[] stackTraceElementArr2 = new StackTraceElement[stackTraceElementArr.length]; + int i2 = 0; + int i3 = 0; + int i4 = 1; + while (i2 < stackTraceElementArr.length) { + StackTraceElement stackTraceElement = stackTraceElementArr[i2]; + Integer num = (Integer) hashMap.get(stackTraceElement); + if (num != null) { + int intValue = num.intValue(); + int i5 = i2 - intValue; + if (i2 + i5 <= stackTraceElementArr.length) { + int i6 = 0; + while (true) { + if (i6 >= i5) { + z2 = true; + break; + } else if (!stackTraceElementArr[intValue + i6].equals(stackTraceElementArr[i2 + i6])) { + break; + } else { + i6++; + } + } + if (z2) { + int intValue2 = i2 - num.intValue(); + if (i4 < 10) { + System.arraycopy(stackTraceElementArr, i2, stackTraceElementArr2, i3, intValue2); + i3 += intValue2; + i4++; + } + i = (intValue2 - 1) + i2; + hashMap.put(stackTraceElement, Integer.valueOf(i2)); + i2 = i + 1; + } + } + z2 = false; + if (z2) { + } + } + stackTraceElementArr2[i3] = stackTraceElementArr[i2]; + i3++; + i = i2; + i4 = 1; + hashMap.put(stackTraceElement, Integer.valueOf(i2)); + i2 = i + 1; + } + StackTraceElement[] stackTraceElementArr3 = new StackTraceElement[i3]; + System.arraycopy(stackTraceElementArr2, 0, stackTraceElementArr3, 0, i3); + return i3 < stackTraceElementArr.length ? stackTraceElementArr3 : stackTraceElementArr; + } +} diff --git a/app/src/main/java/b/i/c/m/d/t/d.java b/app/src/main/java/b/i/c/m/d/t/d.java new file mode 100644 index 0000000000..0db56dafe8 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/t/d.java @@ -0,0 +1,5 @@ +package b.i.c.m.d.t; +/* compiled from: StackTraceTrimmingStrategy */ +public interface d { + StackTraceElement[] a(StackTraceElement[] stackTraceElementArr); +} diff --git a/app/src/main/java/b/i/c/m/d/t/e.java b/app/src/main/java/b/i/c/m/d/t/e.java new file mode 100644 index 0000000000..57ae99e5c9 --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/t/e.java @@ -0,0 +1,18 @@ +package b.i.c.m.d.t; +/* compiled from: TrimmedThrowableData */ +public class e { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1738b; + public final StackTraceElement[] c; + public final e d; + + public e(Throwable th, d dVar) { + this.a = th.getLocalizedMessage(); + this.f1738b = th.getClass().getName(); + this.c = dVar.a(th.getStackTrace()); + Throwable cause = th.getCause(); + this.d = cause != null ? new e(cause, dVar) : null; + } +} diff --git a/app/src/main/java/b/i/c/m/d/u/a.java b/app/src/main/java/b/i/c/m/d/u/a.java new file mode 100644 index 0000000000..ce7492d93f --- /dev/null +++ b/app/src/main/java/b/i/c/m/d/u/a.java @@ -0,0 +1,38 @@ +package b.i.c.m.d.u; + +import android.content.Context; +import b.i.c.m.d.b; +import b.i.c.m.d.k.h; +/* compiled from: ResourceUnityVersionProvider */ +public class a { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public boolean f1739b = false; + public String c; + + public a(Context context) { + this.a = context; + } + + public String a() { + String str; + if (!this.f1739b) { + Context context = this.a; + int n = h.n(context, "com.google.firebase.crashlytics.unity_version", "string"); + if (n != 0) { + str = context.getResources().getString(n); + b.d.b.a.a.m0("Unity Editor version is: ", str, b.a); + } else { + str = null; + } + this.c = str; + this.f1739b = true; + } + String str2 = this.c; + if (str2 != null) { + return str2; + } + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/e/a.java b/app/src/main/java/b/i/c/m/e/a.java new file mode 100644 index 0000000000..a46d7fcafc --- /dev/null +++ b/app/src/main/java/b/i/c/m/e/a.java @@ -0,0 +1,95 @@ +package b.i.c.m.e; + +import android.content.Context; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.m.d.b; +import b.i.c.m.d.k.h; +import b.i.c.m.e.g; +import com.adjust.sdk.Constants; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.nio.charset.Charset; +/* compiled from: BreakpadController */ +public class a implements e { + public static final Charset a = Charset.forName(Constants.ENCODING); + + /* renamed from: b reason: collision with root package name */ + public final Context f1740b; + public final d c; + public final f d; + + public a(Context context, d dVar, f fVar) { + this.f1740b = context; + this.c = dVar; + this.d = fVar; + } + + @Nullable + public static File b(File file, String str) { + File[] listFiles = file.listFiles(); + if (listFiles == null) { + return null; + } + for (File file2 : listFiles) { + if (file2.getName().endsWith(str)) { + return file2; + } + } + return null; + } + + @NonNull + public g a(String str) { + File a2 = this.d.a(str); + File file = new File(a2, "pending"); + b bVar = b.a; + StringBuilder R = b.d.b.a.a.R("Minidump directory: "); + R.append(file.getAbsolutePath()); + bVar.b(R.toString()); + File b2 = b(file, ".dmp"); + StringBuilder R2 = b.d.b.a.a.R("Minidump "); + R2.append((b2 == null || !b2.exists()) ? "does not exist" : "exists"); + bVar.b(R2.toString()); + g.b bVar2 = new g.b(); + if (a2 != null && a2.exists() && file.exists()) { + bVar2.a = b(file, ".dmp"); + bVar2.f1742b = b(a2, ".device_info"); + bVar2.c = new File(a2, "session.json"); + bVar2.d = new File(a2, "app.json"); + bVar2.e = new File(a2, "device.json"); + bVar2.f = new File(a2, "os.json"); + } + return new g(bVar2, null); + } + + public final void c(String str, String str2, String str3) { + Throwable th; + File file = new File(this.d.a(str), str3); + BufferedWriter bufferedWriter = null; + try { + BufferedWriter bufferedWriter2 = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), a)); + try { + bufferedWriter2.write(str2); + h.c(bufferedWriter2, "Failed to close " + file); + } catch (IOException unused) { + bufferedWriter = bufferedWriter2; + h.c(bufferedWriter, "Failed to close " + file); + } catch (Throwable th2) { + th = th2; + bufferedWriter = bufferedWriter2; + h.c(bufferedWriter, "Failed to close " + file); + throw th; + } + } catch (IOException unused2) { + h.c(bufferedWriter, "Failed to close " + file); + } catch (Throwable th3) { + th = th3; + h.c(bufferedWriter, "Failed to close " + file); + throw th; + } + } +} diff --git a/app/src/main/java/b/i/c/m/e/b.java b/app/src/main/java/b/i/c/m/e/b.java new file mode 100644 index 0000000000..c4d20abbf7 --- /dev/null +++ b/app/src/main/java/b/i/c/m/e/b.java @@ -0,0 +1,24 @@ +package b.i.c.m.e; + +import android.content.Context; +import b.i.c.l.e; +import b.i.c.l.f; +import com.google.firebase.crashlytics.ndk.CrashlyticsNdkRegistrar; +import com.google.firebase.crashlytics.ndk.JniNativeApi; +import java.io.File; +import java.util.Objects; +/* compiled from: CrashlyticsNdkRegistrar */ +public final /* synthetic */ class b implements f { + public final CrashlyticsNdkRegistrar a; + + public b(CrashlyticsNdkRegistrar crashlyticsNdkRegistrar) { + this.a = crashlyticsNdkRegistrar; + } + + @Override // b.i.c.l.f + public Object a(e eVar) { + Objects.requireNonNull(this.a); + Context context = (Context) eVar.a(Context.class); + return new c(new a(context, new JniNativeApi(context), new f(new File(context.getFilesDir(), ".com.google.firebase.crashlytics-ndk")))); + } +} diff --git a/app/src/main/java/b/i/c/m/e/c.java b/app/src/main/java/b/i/c/m/e/c.java new file mode 100644 index 0000000000..a9d4e98124 --- /dev/null +++ b/app/src/main/java/b/i/c/m/e/c.java @@ -0,0 +1,122 @@ +package b.i.c.m.e; + +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.NonNull; +import b.i.c.m.d.a; +import b.i.c.m.d.b; +import b.i.c.m.d.d; +import com.google.firebase.crashlytics.ndk.JniNativeApi; +import java.io.File; +import java.io.IOException; +import java.util.HashMap; +import java.util.Objects; +import org.json.JSONObject; +/* compiled from: FirebaseCrashlyticsNdk */ +public class c implements a { + public final e a; + + public c(@NonNull e eVar) { + this.a = eVar; + } + + @Override // b.i.c.m.d.a + public boolean a(@NonNull String str) { + f fVar = ((a) this.a).d; + Objects.requireNonNull(fVar); + f.b(new File(fVar.a, str)); + return true; + } + + @Override // b.i.c.m.d.a + @NonNull + public d b(@NonNull String str) { + return new h(((a) this.a).a(str)); + } + + @Override // b.i.c.m.d.a + public void c(@NonNull String str, int i, @NonNull String str2, int i2, long j, long j2, boolean z2, int i3, @NonNull String str3, @NonNull String str4) { + a aVar = (a) this.a; + Objects.requireNonNull(aVar); + HashMap hashMap = new HashMap(); + hashMap.put("arch", Integer.valueOf(i)); + hashMap.put("build_model", str2); + hashMap.put("available_processors", Integer.valueOf(i2)); + hashMap.put("total_ram", Long.valueOf(j)); + hashMap.put("disk_space", Long.valueOf(j2)); + hashMap.put("is_emulator", Boolean.valueOf(z2)); + hashMap.put("state", Integer.valueOf(i3)); + hashMap.put("build_manufacturer", str3); + hashMap.put("build_product", str4); + aVar.c(str, new JSONObject(hashMap).toString(), "device.json"); + } + + @Override // b.i.c.m.d.a + public void d(@NonNull String str, @NonNull String str2, long j) { + a aVar = (a) this.a; + Objects.requireNonNull(aVar); + HashMap hashMap = new HashMap(); + hashMap.put("session_id", str); + hashMap.put("generator", str2); + hashMap.put("started_at_seconds", Long.valueOf(j)); + aVar.c(str, new JSONObject(hashMap).toString(), "session.json"); + } + + @Override // b.i.c.m.d.a + public boolean e(@NonNull String str) { + File file; + a aVar = (a) this.a; + f fVar = aVar.d; + Objects.requireNonNull(fVar); + return new File(fVar.a, str).exists() && (file = aVar.a(str).a) != null && file.exists(); + } + + @Override // b.i.c.m.d.a + public void f(@NonNull String str, @NonNull String str2, @NonNull String str3, @NonNull String str4, @NonNull String str5, int i, @NonNull String str6) { + a aVar = (a) this.a; + Objects.requireNonNull(aVar); + if (TextUtils.isEmpty(str6)) { + str6 = ""; + } + HashMap hashMap = new HashMap(); + hashMap.put("app_identifier", str2); + hashMap.put("version_code", str3); + hashMap.put("version_name", str4); + hashMap.put("install_uuid", str5); + hashMap.put("delivery_mechanism", Integer.valueOf(i)); + hashMap.put("unity_version", str6); + aVar.c(str, new JSONObject(hashMap).toString(), "app.json"); + } + + @Override // b.i.c.m.d.a + public void g(@NonNull String str, @NonNull String str2, @NonNull String str3, boolean z2) { + a aVar = (a) this.a; + Objects.requireNonNull(aVar); + HashMap hashMap = new HashMap(); + hashMap.put("version", str2); + hashMap.put("build_version", str3); + hashMap.put("is_rooted", Boolean.valueOf(z2)); + aVar.c(str, new JSONObject(hashMap).toString(), "os.json"); + } + + @Override // b.i.c.m.d.a + public boolean h(String str) { + a aVar = (a) this.a; + File a = aVar.d.a(str); + boolean z2 = false; + if (a != null) { + try { + z2 = ((JniNativeApi) aVar.c).a(a.getCanonicalPath(), aVar.f1740b.getAssets()); + } catch (IOException e) { + if (b.a.a(6)) { + Log.e("FirebaseCrashlytics", "Error initializing CrashlyticsNdk", e); + } + } + } + b bVar = b.a; + StringBuilder R = b.d.b.a.a.R("Crashlytics NDK initialization "); + R.append(z2 ? "successful" : "FAILED"); + bVar.f(R.toString()); + return z2; + } +} diff --git a/app/src/main/java/b/i/c/m/e/d.java b/app/src/main/java/b/i/c/m/e/d.java new file mode 100644 index 0000000000..cbe7d2bd0c --- /dev/null +++ b/app/src/main/java/b/i/c/m/e/d.java @@ -0,0 +1,4 @@ +package b.i.c.m.e; +/* compiled from: NativeApi */ +public interface d { +} diff --git a/app/src/main/java/b/i/c/m/e/e.java b/app/src/main/java/b/i/c/m/e/e.java new file mode 100644 index 0000000000..b2ea404b40 --- /dev/null +++ b/app/src/main/java/b/i/c/m/e/e.java @@ -0,0 +1,4 @@ +package b.i.c.m.e; +/* compiled from: NativeComponentController */ +public interface e { +} diff --git a/app/src/main/java/b/i/c/m/e/f.java b/app/src/main/java/b/i/c/m/e/f.java new file mode 100644 index 0000000000..df831b8a75 --- /dev/null +++ b/app/src/main/java/b/i/c/m/e/f.java @@ -0,0 +1,29 @@ +package b.i.c.m.e; + +import androidx.annotation.NonNull; +import java.io.File; +/* compiled from: NdkCrashFilesManager */ +public class f { + public final File a; + + public f(File file) { + this.a = file; + } + + public static void b(@NonNull File file) { + if (file.isDirectory()) { + for (File file2 : file.listFiles()) { + b(file2); + } + } + file.delete(); + } + + public File a(String str) { + File file = new File(this.a, str); + if (file.exists() || file.mkdirs()) { + return file; + } + return null; + } +} diff --git a/app/src/main/java/b/i/c/m/e/g.java b/app/src/main/java/b/i/c/m/e/g.java new file mode 100644 index 0000000000..f5ba86d6eb --- /dev/null +++ b/app/src/main/java/b/i/c/m/e/g.java @@ -0,0 +1,35 @@ +package b.i.c.m.e; + +import java.io.File; +/* compiled from: SessionFiles */ +public final class g { + public final File a; + + /* renamed from: b reason: collision with root package name */ + public final File f1741b; + public final File c; + public final File d; + public final File e; + public final File f; + + /* compiled from: SessionFiles */ + public static final class b { + public File a; + + /* renamed from: b reason: collision with root package name */ + public File f1742b; + public File c; + public File d; + public File e; + public File f; + } + + public g(b bVar, a aVar) { + this.a = bVar.a; + this.f1741b = bVar.f1742b; + this.c = bVar.c; + this.d = bVar.d; + this.e = bVar.e; + this.f = bVar.f; + } +} diff --git a/app/src/main/java/b/i/c/m/e/h.java b/app/src/main/java/b/i/c/m/e/h.java new file mode 100644 index 0000000000..0f598b1b8c --- /dev/null +++ b/app/src/main/java/b/i/c/m/e/h.java @@ -0,0 +1,42 @@ +package b.i.c.m.e; + +import b.i.c.m.d.d; +import java.io.File; +/* compiled from: SessionFilesProvider */ +public class h implements d { + public final g a; + + public h(g gVar) { + this.a = gVar; + } + + @Override // b.i.c.m.d.d + public File a() { + return this.a.d; + } + + @Override // b.i.c.m.d.d + public File b() { + return this.a.f; + } + + @Override // b.i.c.m.d.d + public File c() { + return this.a.e; + } + + @Override // b.i.c.m.d.d + public File d() { + return this.a.a; + } + + @Override // b.i.c.m.d.d + public File e() { + return this.a.c; + } + + @Override // b.i.c.m.d.d + public File f() { + return this.a.f1741b; + } +} diff --git a/app/src/main/java/b/i/c/n/a.java b/app/src/main/java/b/i/c/n/a.java new file mode 100644 index 0000000000..8f3997a9ba --- /dev/null +++ b/app/src/main/java/b/i/c/n/a.java @@ -0,0 +1,14 @@ +package b.i.c.n; + +import b.i.c.l.e; +import b.i.c.l.f; +import com.google.firebase.datatransport.TransportRegistrar; +/* compiled from: com.google.firebase:firebase-datatransport@@17.0.3 */ +public final /* synthetic */ class a implements f { + public static final a a = new a(); + + @Override // b.i.c.l.f + public Object a(e eVar) { + return TransportRegistrar.lambda$getComponents$0(eVar); + } +} diff --git a/app/src/main/java/b/i/c/o/a.java b/app/src/main/java/b/i/c/o/a.java new file mode 100644 index 0000000000..3f208d3a3f --- /dev/null +++ b/app/src/main/java/b/i/c/o/a.java @@ -0,0 +1,11 @@ +package b.i.c.o; + +import android.content.Intent; +import androidx.annotation.NonNull; +import com.google.android.gms.tasks.Task; +import com.google.firebase.dynamiclinks.PendingDynamicLinkData; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public abstract class a { + @NonNull + public abstract Task a(@NonNull Intent intent); +} diff --git a/app/src/main/java/b/i/c/o/b/a.java b/app/src/main/java/b/i/c/o/b/a.java new file mode 100644 index 0000000000..f12cb74a0d --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/a.java @@ -0,0 +1,56 @@ +package b.i.c.o.b; + +import android.net.Uri; +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.firebase.dynamiclinks.internal.DynamicLinkData; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class a implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final DynamicLinkData createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + String str2 = null; + Bundle bundle = null; + Uri uri = null; + long j = 0; + int i = 0; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + switch (65535 & readInt) { + case 1: + str = d.Q(parcel, readInt); + break; + case 2: + str2 = d.Q(parcel, readInt); + break; + case 3: + i = d.E1(parcel, readInt); + break; + case 4: + j = d.F1(parcel, readInt); + break; + case 5: + bundle = d.M(parcel, readInt); + break; + case 6: + uri = (Uri) d.P(parcel, readInt, Uri.CREATOR); + break; + default: + d.b2(parcel, readInt); + break; + } + } + d.e0(parcel, k2); + return new DynamicLinkData(str, str2, i, j, bundle, uri); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ DynamicLinkData[] newArray(int i) { + return new DynamicLinkData[i]; + } +} diff --git a/app/src/main/java/b/i/c/o/b/b.java b/app/src/main/java/b/i/c/o/b/b.java new file mode 100644 index 0000000000..84c53b00af --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/b.java @@ -0,0 +1,16 @@ +package b.i.c.o.b; + +import android.content.Context; +import android.os.Looper; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class b extends a.AbstractC0103a { + /* Return type fixed from 'b.i.a.f.e.h.a$f' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [android.content.Context, android.os.Looper, b.i.a.f.e.k.c, java.lang.Object, b.i.a.f.e.h.c$a, b.i.a.f.e.h.c$b] */ + @Override // b.i.a.f.e.h.a.AbstractC0103a + public final /* synthetic */ d a(Context context, Looper looper, c cVar, a.d.c cVar2, c.a aVar, c.b bVar) { + return new d(context, looper, cVar, aVar, bVar); + } +} diff --git a/app/src/main/java/b/i/c/o/b/c.java b/app/src/main/java/b/i/c/o/b/c.java new file mode 100644 index 0000000000..7d7599ebbb --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/c.java @@ -0,0 +1,24 @@ +package b.i.c.o.b; + +import android.content.Context; +import androidx.annotation.NonNull; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.b; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class c extends b { + public static final a.g j; + public static final a.AbstractC0103a k; + public static final a l; + + static { + a.g gVar = new a.g<>(); + j = gVar; + b bVar = new b(); + k = bVar; + l = new a<>("DynamicLinks.API", bVar, gVar); + } + + public c(@NonNull Context context) { + super(context, l, (a.d) null, b.a.a); + } +} diff --git a/app/src/main/java/b/i/c/o/b/d.java b/app/src/main/java/b/i/c/o/b/d.java new file mode 100644 index 0000000000..28db1dad8d --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/d.java @@ -0,0 +1,43 @@ +package b.i.c.o.b; + +import android.content.Context; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Looper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.c; +import b.i.a.f.e.k.c; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class d extends b.i.a.f.e.k.d { + public d(Context context, Looper looper, c cVar, c.a aVar, c.b bVar) { + super(context, looper, 131, cVar, aVar, bVar); + } + + @Override // b.i.a.f.e.k.b, b.i.a.f.e.h.a.f + public final int l() { + return 12451000; + } + + @Override // b.i.a.f.e.k.b + @Nullable + public final /* synthetic */ IInterface r(IBinder iBinder) { + if (iBinder == null) { + return null; + } + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.firebase.dynamiclinks.internal.IDynamicLinksService"); + return queryLocalInterface instanceof j ? (j) queryLocalInterface : new l(iBinder); + } + + @Override // b.i.a.f.e.k.b + @NonNull + public final String x() { + return "com.google.firebase.dynamiclinks.internal.IDynamicLinksService"; + } + + @Override // b.i.a.f.e.k.b + @NonNull + public final String y() { + return "com.google.firebase.dynamiclinks.service.START"; + } +} diff --git a/app/src/main/java/b/i/c/o/b/e.java b/app/src/main/java/b/i/c/o/b/e.java new file mode 100644 index 0000000000..77f0f3d48e --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/e.java @@ -0,0 +1,58 @@ +package b.i.c.o.b; + +import android.content.Intent; +import android.os.Parcel; +import android.os.Parcelable; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.a; +import b.i.a.f.e.h.b; +import b.i.a.f.e.o.f; +import b.i.c.c; +import b.i.c.o.a; +import com.google.android.gms.tasks.Task; +import com.google.firebase.dynamiclinks.PendingDynamicLinkData; +import com.google.firebase.dynamiclinks.internal.DynamicLinkData; +import java.util.Objects; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class e extends a { + public final b a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final b.i.c.j.a.a f1743b; + + public e(c cVar, @Nullable b.i.c.j.a.a aVar) { + cVar.a(); + this.a = new c(cVar.d); + this.f1743b = aVar; + if (aVar == null) { + Log.w("FDL", "FDL logging failed. Add a dependency for Firebase Analytics to your app to enable logging of Dynamic Link events."); + } + } + + @Override // b.i.c.o.a + public final Task a(@NonNull Intent intent) { + DynamicLinkData dynamicLinkData; + Task c = this.a.c(new i(this.f1743b, intent.getDataString())); + Parcelable.Creator creator = DynamicLinkData.CREATOR; + byte[] byteArrayExtra = intent.getByteArrayExtra("com.google.firebase.dynamiclinks.DYNAMIC_LINK_DATA"); + PendingDynamicLinkData pendingDynamicLinkData = null; + if (byteArrayExtra == null) { + dynamicLinkData = null; + } else { + Objects.requireNonNull(creator, "null reference"); + Parcel obtain = Parcel.obtain(); + obtain.unmarshall(byteArrayExtra, 0, byteArrayExtra.length); + obtain.setDataPosition(0); + dynamicLinkData = creator.createFromParcel(obtain); + obtain.recycle(); + } + DynamicLinkData dynamicLinkData2 = dynamicLinkData; + if (dynamicLinkData2 != null) { + pendingDynamicLinkData = new PendingDynamicLinkData(dynamicLinkData2); + } + return pendingDynamicLinkData != null ? f.Y(pendingDynamicLinkData) : c; + } +} diff --git a/app/src/main/java/b/i/c/o/b/f.java b/app/src/main/java/b/i/c/o/b/f.java new file mode 100644 index 0000000000..7680cca9f6 --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/f.java @@ -0,0 +1,14 @@ +package b.i.c.o.b; + +import b.i.c.c; +import b.i.c.j.a.a; +import b.i.c.l.e; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final /* synthetic */ class f implements b.i.c.l.f { + public static final b.i.c.l.f a = new f(); + + @Override // b.i.c.l.f + public final Object a(e eVar) { + return new e((c) eVar.a(c.class), (a) eVar.a(a.class)); + } +} diff --git a/app/src/main/java/b/i/c/o/b/g.java b/app/src/main/java/b/i/c/o/b/g.java new file mode 100644 index 0000000000..9e1efff6d3 --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/g.java @@ -0,0 +1,19 @@ +package b.i.c.o.b; + +import androidx.annotation.Nullable; +import b.i.c.j.a.a; +import com.google.android.gms.tasks.TaskCompletionSource; +import com.google.firebase.dynamiclinks.PendingDynamicLinkData; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class g extends k { + public final TaskCompletionSource a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public final a f1744b; + + public g(a aVar, TaskCompletionSource taskCompletionSource) { + this.f1744b = aVar; + this.a = taskCompletionSource; + } +} diff --git a/app/src/main/java/b/i/c/o/b/h.java b/app/src/main/java/b/i/c/o/b/h.java new file mode 100644 index 0000000000..de39cb42ec --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/h.java @@ -0,0 +1,6 @@ +package b.i.c.o.b; + +import android.os.IInterface; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public interface h extends IInterface { +} diff --git a/app/src/main/java/b/i/c/o/b/i.java b/app/src/main/java/b/i/c/o/b/i.java new file mode 100644 index 0000000000..d902fc098a --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/i.java @@ -0,0 +1,29 @@ +package b.i.c.o.b; + +import android.os.RemoteException; +import androidx.annotation.Nullable; +import b.i.a.f.e.h.j.p; +import b.i.c.j.a.a; +import com.google.android.gms.tasks.TaskCompletionSource; +import com.google.firebase.dynamiclinks.PendingDynamicLinkData; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class i extends p { + public final String c; + @Nullable + public final a d; + + public i(a aVar, String str) { + this.c = str; + this.d = aVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [b.i.a.f.e.h.a$b, com.google.android.gms.tasks.TaskCompletionSource] */ + @Override // b.i.a.f.e.h.j.p + public final /* synthetic */ void c(d dVar, TaskCompletionSource taskCompletionSource) throws RemoteException { + d dVar2 = dVar; + try { + dVar2.w().b0(new g(this.d, taskCompletionSource), this.c); + } catch (RemoteException unused) { + } + } +} diff --git a/app/src/main/java/b/i/c/o/b/j.java b/app/src/main/java/b/i/c/o/b/j.java new file mode 100644 index 0000000000..9923deba5f --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/j.java @@ -0,0 +1,8 @@ +package b.i.c.o.b; + +import android.os.IInterface; +import android.os.RemoteException; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public interface j extends IInterface { + void b0(h hVar, String str) throws RemoteException; +} diff --git a/app/src/main/java/b/i/c/o/b/k.java b/app/src/main/java/b/i/c/o/b/k.java new file mode 100644 index 0000000000..352b9d9b13 --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/k.java @@ -0,0 +1,9 @@ +package b.i.c.o.b; + +import b.i.a.f.h.h.a; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public abstract class k extends a implements h { + public k() { + super("com.google.firebase.dynamiclinks.internal.IDynamicLinksCallbacks"); + } +} diff --git a/app/src/main/java/b/i/c/o/b/l.java b/app/src/main/java/b/i/c/o/b/l.java new file mode 100644 index 0000000000..35b56705f5 --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/l.java @@ -0,0 +1,41 @@ +package b.i.c.o.b; + +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import b.i.a.f.h.h.a; +import b.i.a.f.h.h.b; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class l implements j, IInterface { + public final IBinder a; + + /* renamed from: b reason: collision with root package name */ + public final String f1745b = "com.google.firebase.dynamiclinks.internal.IDynamicLinksService"; + + public l(IBinder iBinder) { + this.a = iBinder; + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + @Override // b.i.c.o.b.j + public final void b0(h hVar, String str) throws RemoteException { + Parcel obtain = Parcel.obtain(); + obtain.writeInterfaceToken(this.f1745b); + int i = b.a; + obtain.writeStrongBinder((a) hVar); + obtain.writeString(str); + Parcel obtain2 = Parcel.obtain(); + try { + this.a.transact(1, obtain, obtain2, 0); + obtain2.readException(); + } finally { + obtain.recycle(); + obtain2.recycle(); + } + } +} diff --git a/app/src/main/java/b/i/c/o/b/m.java b/app/src/main/java/b/i/c/o/b/m.java new file mode 100644 index 0000000000..844df824c6 --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/m.java @@ -0,0 +1,41 @@ +package b.i.c.o.b; + +import android.net.Uri; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.firebase.dynamiclinks.internal.zzo; +import com.google.firebase.dynamiclinks.internal.zzr; +import java.util.ArrayList; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class m implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzo createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Uri uri = null; + Uri uri2 = null; + ArrayList arrayList = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + int i = 65535 & readInt; + if (i == 1) { + uri = (Uri) d.P(parcel, readInt, Uri.CREATOR); + } else if (i == 2) { + uri2 = (Uri) d.P(parcel, readInt, Uri.CREATOR); + } else if (i != 3) { + d.b2(parcel, readInt); + } else { + arrayList = d.U(parcel, readInt, zzr.CREATOR); + } + } + d.e0(parcel, k2); + return new zzo(uri, uri2, arrayList); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzo[] newArray(int i) { + return new zzo[i]; + } +} diff --git a/app/src/main/java/b/i/c/o/b/n.java b/app/src/main/java/b/i/c/o/b/n.java new file mode 100644 index 0000000000..95450a879e --- /dev/null +++ b/app/src/main/java/b/i/c/o/b/n.java @@ -0,0 +1,31 @@ +package b.i.c.o.b; + +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.firebase.dynamiclinks.internal.zzr; +/* compiled from: com.google.firebase:firebase-dynamic-links@@19.1.1 */ +public final class n implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public final zzr createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + String str = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 2) { + d.b2(parcel, readInt); + } else { + str = d.Q(parcel, readInt); + } + } + d.e0(parcel, k2); + return new zzr(str); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public final /* synthetic */ zzr[] newArray(int i) { + return new zzr[i]; + } +} diff --git a/app/src/main/java/b/i/c/p/a.java b/app/src/main/java/b/i/c/p/a.java new file mode 100644 index 0000000000..70884ac223 --- /dev/null +++ b/app/src/main/java/b/i/c/p/a.java @@ -0,0 +1,4 @@ +package b.i.c.p; +/* compiled from: DataEncoder */ +public interface a { +} diff --git a/app/src/main/java/b/i/c/p/b.java b/app/src/main/java/b/i/c/p/b.java new file mode 100644 index 0000000000..db3751d136 --- /dev/null +++ b/app/src/main/java/b/i/c/p/b.java @@ -0,0 +1,8 @@ +package b.i.c.p; + +import androidx.annotation.NonNull; +import java.io.IOException; +/* compiled from: Encoder */ +public interface b { + void a(@NonNull TValue tvalue, @NonNull TContext tcontext) throws IOException; +} diff --git a/app/src/main/java/b/i/c/p/c.java b/app/src/main/java/b/i/c/p/c.java new file mode 100644 index 0000000000..e656035bb1 --- /dev/null +++ b/app/src/main/java/b/i/c/p/c.java @@ -0,0 +1,4 @@ +package b.i.c.p; +/* compiled from: ObjectEncoder */ +public interface c extends b { +} diff --git a/app/src/main/java/b/i/c/p/d.java b/app/src/main/java/b/i/c/p/d.java new file mode 100644 index 0000000000..a52d5f28d8 --- /dev/null +++ b/app/src/main/java/b/i/c/p/d.java @@ -0,0 +1,19 @@ +package b.i.c.p; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import java.io.IOException; +/* compiled from: ObjectEncoderContext */ +public interface d { + @NonNull + d a(@NonNull String str, boolean z2) throws IOException; + + @NonNull + d b(@NonNull String str, long j) throws IOException; + + @NonNull + d c(@NonNull String str, int i) throws IOException; + + @NonNull + d f(@NonNull String str, @Nullable Object obj) throws IOException; +} diff --git a/app/src/main/java/b/i/c/p/e.java b/app/src/main/java/b/i/c/p/e.java new file mode 100644 index 0000000000..87283c709d --- /dev/null +++ b/app/src/main/java/b/i/c/p/e.java @@ -0,0 +1,4 @@ +package b.i.c.p; +/* compiled from: ValueEncoder */ +public interface e extends b { +} diff --git a/app/src/main/java/b/i/c/p/f.java b/app/src/main/java/b/i/c/p/f.java new file mode 100644 index 0000000000..8a12c0d090 --- /dev/null +++ b/app/src/main/java/b/i/c/p/f.java @@ -0,0 +1,13 @@ +package b.i.c.p; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import java.io.IOException; +/* compiled from: ValueEncoderContext */ +public interface f { + @NonNull + f d(@Nullable String str) throws IOException; + + @NonNull + f e(boolean z2) throws IOException; +} diff --git a/app/src/main/java/b/i/c/p/g/a.java b/app/src/main/java/b/i/c/p/g/a.java new file mode 100644 index 0000000000..efd4d08406 --- /dev/null +++ b/app/src/main/java/b/i/c/p/g/a.java @@ -0,0 +1,4 @@ +package b.i.c.p.g; +/* compiled from: Configurator */ +public interface a { +} diff --git a/app/src/main/java/b/i/c/p/g/b.java b/app/src/main/java/b/i/c/p/g/b.java new file mode 100644 index 0000000000..fa2a6c8082 --- /dev/null +++ b/app/src/main/java/b/i/c/p/g/b.java @@ -0,0 +1,6 @@ +package b.i.c.p.g; + +import b.i.c.p.g.b; +/* compiled from: EncoderConfig */ +public interface b> { +} diff --git a/app/src/main/java/b/i/c/p/h/a.java b/app/src/main/java/b/i/c/p/h/a.java new file mode 100644 index 0000000000..fb37ff52f7 --- /dev/null +++ b/app/src/main/java/b/i/c/p/h/a.java @@ -0,0 +1,19 @@ +package b.i.c.p.h; + +import b.i.c.p.c; +import b.i.c.p.d; +import b.i.c.p.h.e; +import com.google.firebase.encoders.EncodingException; +/* compiled from: JsonDataEncoderBuilder */ +public final /* synthetic */ class a implements c { + public static final a a = new a(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, d dVar) { + e.a aVar = e.a; + StringBuilder R = b.d.b.a.a.R("Couldn't find encoder for type "); + R.append(obj.getClass().getCanonicalName()); + throw new EncodingException(R.toString()); + } +} diff --git a/app/src/main/java/b/i/c/p/h/b.java b/app/src/main/java/b/i/c/p/h/b.java new file mode 100644 index 0000000000..1c783397c8 --- /dev/null +++ b/app/src/main/java/b/i/c/p/h/b.java @@ -0,0 +1,16 @@ +package b.i.c.p.h; + +import b.i.c.p.e; +import b.i.c.p.f; +import b.i.c.p.h.e; +/* compiled from: JsonDataEncoderBuilder */ +public final /* synthetic */ class b implements e { + public static final b a = new b(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, f fVar) { + e.a aVar = e.a; + fVar.d((String) obj); + } +} diff --git a/app/src/main/java/b/i/c/p/h/c.java b/app/src/main/java/b/i/c/p/h/c.java new file mode 100644 index 0000000000..3e0fec74e2 --- /dev/null +++ b/app/src/main/java/b/i/c/p/h/c.java @@ -0,0 +1,16 @@ +package b.i.c.p.h; + +import b.i.c.p.e; +import b.i.c.p.f; +import b.i.c.p.h.e; +/* compiled from: JsonDataEncoderBuilder */ +public final /* synthetic */ class c implements e { + public static final c a = new c(); + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(Object obj, f fVar) { + e.a aVar = e.a; + fVar.e(((Boolean) obj).booleanValue()); + } +} diff --git a/app/src/main/java/b/i/c/p/h/d.java b/app/src/main/java/b/i/c/p/h/d.java new file mode 100644 index 0000000000..d910ce58e6 --- /dev/null +++ b/app/src/main/java/b/i/c/p/h/d.java @@ -0,0 +1,32 @@ +package b.i.c.p.h; + +import androidx.annotation.NonNull; +import b.i.c.p.a; +import java.io.IOException; +import java.io.StringWriter; +import java.io.Writer; +/* compiled from: JsonDataEncoderBuilder */ +public class d implements a { + public final /* synthetic */ e a; + + public d(e eVar) { + this.a = eVar; + } + + public String a(@NonNull Object obj) { + StringWriter stringWriter = new StringWriter(); + try { + b(obj, stringWriter); + } catch (IOException unused) { + } + return stringWriter.toString(); + } + + public void b(@NonNull Object obj, @NonNull Writer writer) throws IOException { + e eVar = this.a; + f fVar = new f(writer, eVar.f1746b, eVar.c, eVar.d, eVar.e); + fVar.g(obj, false); + fVar.i(); + fVar.f1747b.flush(); + } +} diff --git a/app/src/main/java/b/i/c/p/h/e.java b/app/src/main/java/b/i/c/p/h/e.java new file mode 100644 index 0000000000..4420cc61bc --- /dev/null +++ b/app/src/main/java/b/i/c/p/h/e.java @@ -0,0 +1,57 @@ +package b.i.c.p.h; + +import androidx.annotation.NonNull; +import b.i.c.p.c; +import b.i.c.p.f; +import b.i.c.p.g.b; +import java.io.IOException; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +import java.util.TimeZone; +/* compiled from: JsonDataEncoderBuilder */ +public final class e implements b { + public static final a a = new a(null); + + /* renamed from: b reason: collision with root package name */ + public final Map, c> f1746b; + public final Map, b.i.c.p.e> c; + public c d = a.a; + public boolean e = false; + + /* compiled from: JsonDataEncoderBuilder */ + public static final class a implements b.i.c.p.e { + public static final DateFormat a; + + static { + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US); + a = simpleDateFormat; + simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); + } + + public a(d dVar) { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public void a(@NonNull Object obj, @NonNull f fVar) throws IOException { + fVar.d(a.format((Date) obj)); + } + } + + public e() { + HashMap hashMap = new HashMap(); + this.f1746b = hashMap; + HashMap hashMap2 = new HashMap(); + this.c = hashMap2; + hashMap2.put(String.class, b.a); + hashMap.remove(String.class); + hashMap2.put(Boolean.class, c.a); + hashMap.remove(Boolean.class); + hashMap2.put(Date.class, a); + hashMap.remove(Date.class); + } +} diff --git a/app/src/main/java/b/i/c/p/h/f.java b/app/src/main/java/b/i/c/p/h/f.java new file mode 100644 index 0000000000..b7199eeb12 --- /dev/null +++ b/app/src/main/java/b/i/c/p/h/f.java @@ -0,0 +1,225 @@ +package b.i.c.p.h; + +import android.util.Base64; +import android.util.JsonWriter; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.p.c; +import b.i.c.p.d; +import b.i.c.p.e; +import com.google.firebase.encoders.EncodingException; +import java.io.IOException; +import java.io.Writer; +import java.util.Collection; +import java.util.Date; +import java.util.Map; +/* compiled from: JsonValueObjectEncoderContext */ +public final class f implements d, b.i.c.p.f { + public boolean a = true; + + /* renamed from: b reason: collision with root package name */ + public final JsonWriter f1747b; + public final Map, c> c; + public final Map, e> d; + public final c e; + public final boolean f; + + public f(@NonNull Writer writer, @NonNull Map, c> map, @NonNull Map, e> map2, c cVar, boolean z2) { + this.f1747b = new JsonWriter(writer); + this.c = map; + this.d = map2; + this.e = cVar; + this.f = z2; + } + + @Override // b.i.c.p.d + @NonNull + public d a(@NonNull String str, boolean z2) throws IOException { + i(); + this.f1747b.name(str); + i(); + this.f1747b.value(z2); + return this; + } + + @Override // b.i.c.p.d + @NonNull + public d b(@NonNull String str, long j) throws IOException { + i(); + this.f1747b.name(str); + i(); + this.f1747b.value(j); + return this; + } + + @Override // b.i.c.p.d + @NonNull + public d c(@NonNull String str, int i) throws IOException { + i(); + this.f1747b.name(str); + i(); + this.f1747b.value((long) i); + return this; + } + + @Override // b.i.c.p.f + @NonNull + public b.i.c.p.f d(@Nullable String str) throws IOException { + i(); + this.f1747b.value(str); + return this; + } + + @Override // b.i.c.p.f + @NonNull + public b.i.c.p.f e(boolean z2) throws IOException { + i(); + this.f1747b.value(z2); + return this; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0032: APUT (r1v15 java.lang.Object[]), (0 ??[int, short, byte, char]), (r6v24 java.lang.Class) */ + @NonNull + public f g(@Nullable Object obj, boolean z2) throws IOException { + int i = 0; + if (z2) { + if (obj == null || obj.getClass().isArray() || (obj instanceof Collection) || (obj instanceof Date) || (obj instanceof Enum) || (obj instanceof Number)) { + Object[] objArr = new Object[1]; + objArr[0] = obj == null ? null : obj.getClass(); + throw new EncodingException(String.format("%s cannot be encoded inline", objArr)); + } + } + if (obj == null) { + this.f1747b.nullValue(); + return this; + } else if (obj instanceof Number) { + this.f1747b.value((Number) obj); + return this; + } else if (obj.getClass().isArray()) { + if (obj instanceof byte[]) { + i(); + this.f1747b.value(Base64.encodeToString((byte[]) obj, 2)); + return this; + } + this.f1747b.beginArray(); + if (obj instanceof int[]) { + int[] iArr = (int[]) obj; + int length = iArr.length; + while (i < length) { + this.f1747b.value((long) iArr[i]); + i++; + } + } else if (obj instanceof long[]) { + long[] jArr = (long[]) obj; + int length2 = jArr.length; + while (i < length2) { + long j = jArr[i]; + i(); + this.f1747b.value(j); + i++; + } + } else if (obj instanceof double[]) { + double[] dArr = (double[]) obj; + int length3 = dArr.length; + while (i < length3) { + this.f1747b.value(dArr[i]); + i++; + } + } else if (obj instanceof boolean[]) { + boolean[] zArr = (boolean[]) obj; + int length4 = zArr.length; + while (i < length4) { + this.f1747b.value(zArr[i]); + i++; + } + } else if (obj instanceof Number[]) { + for (Number number : (Number[]) obj) { + g(number, false); + } + } else { + for (Object obj2 : (Object[]) obj) { + g(obj2, false); + } + } + this.f1747b.endArray(); + return this; + } else if (obj instanceof Collection) { + this.f1747b.beginArray(); + for (Object obj3 : (Collection) obj) { + g(obj3, false); + } + this.f1747b.endArray(); + return this; + } else if (obj instanceof Map) { + this.f1747b.beginObject(); + for (Map.Entry entry : ((Map) obj).entrySet()) { + Object key = entry.getKey(); + try { + f((String) key, entry.getValue()); + } catch (ClassCastException e) { + throw new EncodingException(String.format("Only String keys are currently supported in maps, got %s of type %s instead.", key, key.getClass()), e); + } + } + this.f1747b.endObject(); + return this; + } else { + c cVar = this.c.get(obj.getClass()); + if (cVar != null) { + if (!z2) { + this.f1747b.beginObject(); + } + cVar.a(obj, this); + if (!z2) { + this.f1747b.endObject(); + } + return this; + } + e eVar = this.d.get(obj.getClass()); + if (eVar != null) { + eVar.a(obj, this); + return this; + } else if (obj instanceof Enum) { + String name = ((Enum) obj).name(); + i(); + this.f1747b.value(name); + return this; + } else { + c cVar2 = this.e; + if (!z2) { + this.f1747b.beginObject(); + } + cVar2.a(obj, this); + if (!z2) { + this.f1747b.endObject(); + } + return this; + } + } + } + + @NonNull + /* renamed from: h */ + public f f(@NonNull String str, @Nullable Object obj) throws IOException { + if (!this.f) { + i(); + this.f1747b.name(str); + if (obj != null) { + return g(obj, false); + } + this.f1747b.nullValue(); + return this; + } else if (obj == null) { + return this; + } else { + i(); + this.f1747b.name(str); + return g(obj, false); + } + } + + public final void i() throws IOException { + if (!this.a) { + throw new IllegalStateException("Parent context used since this context was created. Cannot use this context anymore."); + } + } +} diff --git a/app/src/main/java/b/i/c/q/a.java b/app/src/main/java/b/i/c/q/a.java new file mode 100644 index 0000000000..28a4649c31 --- /dev/null +++ b/app/src/main/java/b/i/c/q/a.java @@ -0,0 +1,7 @@ +package b.i.c.q; +/* compiled from: Event */ +public class a { + public String toString() { + return String.format("Event{type: %s, payload: %s}", null, null); + } +} diff --git a/app/src/main/java/b/i/c/q/b.java b/app/src/main/java/b/i/c/q/b.java new file mode 100644 index 0000000000..7acf569ba8 --- /dev/null +++ b/app/src/main/java/b/i/c/q/b.java @@ -0,0 +1,5 @@ +package b.i.c.q; +/* compiled from: EventHandler */ +public interface b { + void a(a aVar); +} diff --git a/app/src/main/java/b/i/c/q/c.java b/app/src/main/java/b/i/c/q/c.java new file mode 100644 index 0000000000..67a9db5da3 --- /dev/null +++ b/app/src/main/java/b/i/c/q/c.java @@ -0,0 +1,4 @@ +package b.i.c.q; +/* compiled from: Publisher */ +public interface c { +} diff --git a/app/src/main/java/b/i/c/q/d.java b/app/src/main/java/b/i/c/q/d.java new file mode 100644 index 0000000000..e782475f90 --- /dev/null +++ b/app/src/main/java/b/i/c/q/d.java @@ -0,0 +1,9 @@ +package b.i.c.q; + +import java.util.concurrent.Executor; +/* compiled from: Subscriber */ +public interface d { + void a(Class cls, b bVar); + + void b(Class cls, Executor executor, b bVar); +} diff --git a/app/src/main/java/b/i/c/r/a.java b/app/src/main/java/b/i/c/r/a.java new file mode 100644 index 0000000000..7adab1b108 --- /dev/null +++ b/app/src/main/java/b/i/c/r/a.java @@ -0,0 +1,24 @@ +package b.i.c.r; + +import android.content.Context; +/* compiled from: DefaultHeartBeatInfo */ +public final /* synthetic */ class a implements b.i.c.t.a { + public final Context a; + + public a(Context context) { + this.a = context; + } + + @Override // b.i.c.t.a + public Object get() { + e eVar; + Context context = this.a; + synchronized (e.class) { + if (e.a == null) { + e.a = new e(context); + } + eVar = e.a; + } + return eVar; + } +} diff --git a/app/src/main/java/b/i/c/r/b.java b/app/src/main/java/b/i/c/r/b.java new file mode 100644 index 0000000000..4cf62c704d --- /dev/null +++ b/app/src/main/java/b/i/c/r/b.java @@ -0,0 +1,14 @@ +package b.i.c.r; + +import android.content.Context; +import b.i.c.l.e; +import b.i.c.l.f; +/* compiled from: DefaultHeartBeatInfo */ +public final /* synthetic */ class b implements f { + public static final b a = new b(); + + @Override // b.i.c.l.f + public Object a(e eVar) { + return new c((Context) eVar.a(Context.class)); + } +} diff --git a/app/src/main/java/b/i/c/r/c.java b/app/src/main/java/b/i/c/r/c.java new file mode 100644 index 0000000000..7e74f0e7b8 --- /dev/null +++ b/app/src/main/java/b/i/c/r/c.java @@ -0,0 +1,28 @@ +package b.i.c.r; + +import android.content.Context; +import androidx.annotation.NonNull; +import b.i.c.l.r; +import b.i.c.r.d; +import b.i.c.t.a; +/* compiled from: DefaultHeartBeatInfo */ +public class c implements d { + public a a; + + public c(Context context) { + this.a = new r(new a(context)); + } + + @Override // b.i.c.r.d + @NonNull + public d.a a(@NonNull String str) { + boolean a; + long currentTimeMillis = System.currentTimeMillis(); + boolean a2 = this.a.get().a(str, currentTimeMillis); + e eVar = this.a.get(); + synchronized (eVar) { + a = eVar.a("fire-global", currentTimeMillis); + } + return (!a2 || !a) ? a ? d.a.GLOBAL : a2 ? d.a.SDK : d.a.NONE : d.a.COMBINED; + } +} diff --git a/app/src/main/java/b/i/c/r/d.java b/app/src/main/java/b/i/c/r/d.java new file mode 100644 index 0000000000..884d21a73b --- /dev/null +++ b/app/src/main/java/b/i/c/r/d.java @@ -0,0 +1,27 @@ +package b.i.c.r; + +import androidx.annotation.NonNull; +/* compiled from: HeartBeatInfo */ +public interface d { + + /* compiled from: HeartBeatInfo */ + public enum a { + NONE(0), + SDK(1), + GLOBAL(2), + COMBINED(3); + + private final int code; + + public a(int i) { + this.code = i; + } + + public int f() { + return this.code; + } + } + + @NonNull + a a(@NonNull String str); +} diff --git a/app/src/main/java/b/i/c/r/e.java b/app/src/main/java/b/i/c/r/e.java new file mode 100644 index 0000000000..c41f4aea5c --- /dev/null +++ b/app/src/main/java/b/i/c/r/e.java @@ -0,0 +1,27 @@ +package b.i.c.r; + +import android.content.Context; +import android.content.SharedPreferences; +/* compiled from: HeartBeatInfoStorage */ +public class e { + public static e a; + + /* renamed from: b reason: collision with root package name */ + public final SharedPreferences f1748b; + + public e(Context context) { + this.f1748b = context.getSharedPreferences("FirebaseAppHeartBeat", 0); + } + + public synchronized boolean a(String str, long j) { + if (!this.f1748b.contains(str)) { + this.f1748b.edit().putLong(str, j).apply(); + return true; + } else if (j - this.f1748b.getLong(str, -1) < 86400000) { + return false; + } else { + this.f1748b.edit().putLong(str, j).apply(); + return true; + } + } +} diff --git a/app/src/main/java/b/i/c/s/a.java b/app/src/main/java/b/i/c/s/a.java new file mode 100644 index 0000000000..478e67ccd9 --- /dev/null +++ b/app/src/main/java/b/i/c/s/a.java @@ -0,0 +1,12 @@ +package b.i.c.s; + +import java.util.concurrent.Executor; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class a implements Executor { + public static final Executor j = new a(); + + @Override // java.util.concurrent.Executor + public final void execute(Runnable runnable) { + runnable.run(); + } +} diff --git a/app/src/main/java/b/i/c/s/a0.java b/app/src/main/java/b/i/c/s/a0.java new file mode 100644 index 0000000000..c3d86ad841 --- /dev/null +++ b/app/src/main/java/b/i/c/s/a0.java @@ -0,0 +1,34 @@ +package b.i.c.s; + +import android.os.Binder; +import android.os.Process; +import android.util.Log; +import b.i.c.s.d0; +import com.google.android.gms.tasks.Task; +import com.google.firebase.messaging.EnhancedIntentService; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class a0 extends Binder { + public final a a; + + /* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ + public interface a { + } + + public a0(a aVar) { + this.a = aVar; + } + + public void a(d0.a aVar) { + if (Binder.getCallingUid() == Process.myUid()) { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "service received new intent via bind strategy"); + } + a aVar2 = this.a; + Task access$000 = EnhancedIntentService.access$000(EnhancedIntentService.this, aVar.a); + int i = h.a; + access$000.c(g.j, new z(aVar)); + return; + } + throw new SecurityException("Binding only allowed within app"); + } +} diff --git a/app/src/main/java/b/i/c/s/b.java b/app/src/main/java/b/i/c/s/b.java new file mode 100644 index 0000000000..bdaa325b8d --- /dev/null +++ b/app/src/main/java/b/i/c/s/b.java @@ -0,0 +1,99 @@ +package b.i.c.s; + +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.pm.ResolveInfo; +import android.content.pm.ServiceInfo; +import android.util.Log; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import java.util.Objects; +import java.util.concurrent.Callable; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class b implements Callable { + public final Context j; + public final Intent k; + + public b(Context context, Intent intent) { + this.j = context; + this.k = intent; + } + + @Override // java.util.concurrent.Callable + public final Object call() { + String str; + int i; + ComponentName componentName; + ServiceInfo serviceInfo; + String str2; + Context context = this.j; + Intent intent = this.k; + v a = v.a(); + Objects.requireNonNull(a); + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "Starting service"); + } + a.e.offer(intent); + Intent intent2 = new Intent("com.google.firebase.MESSAGING_EVENT"); + intent2.setPackage(context.getPackageName()); + synchronized (a) { + str = a.f1759b; + if (str == null) { + ResolveInfo resolveService = context.getPackageManager().resolveService(intent2, 0); + if (resolveService == null || (serviceInfo = resolveService.serviceInfo) == null) { + Log.e("FirebaseInstanceId", "Failed to resolve target intent service, skipping classname enforcement"); + } else if (!context.getPackageName().equals(serviceInfo.packageName) || (str2 = serviceInfo.name) == null) { + String str3 = serviceInfo.packageName; + String str4 = serviceInfo.name; + StringBuilder sb = new StringBuilder(String.valueOf(str3).length() + 94 + String.valueOf(str4).length()); + sb.append("Error resolving target intent service, skipping classname enforcement. Resolved service was: "); + sb.append(str3); + sb.append(AutocompleteViewModel.COMMAND_DISCOVER_TOKEN); + sb.append(str4); + Log.e("FirebaseInstanceId", sb.toString()); + } else { + if (str2.startsWith(".")) { + String valueOf = String.valueOf(context.getPackageName()); + String valueOf2 = String.valueOf(serviceInfo.name); + a.f1759b = valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf); + } else { + a.f1759b = serviceInfo.name; + } + str = a.f1759b; + } + str = null; + } + } + if (str != null) { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", str.length() != 0 ? "Restricting intent to a specific service: ".concat(str) : new String("Restricting intent to a specific service: ")); + } + intent2.setClassName(context.getPackageName(), str); + } + try { + if (a.c(context)) { + componentName = y.a(context, intent2); + } else { + componentName = context.startService(intent2); + Log.d("FirebaseInstanceId", "Missing wake lock permission, service start may be delayed"); + } + if (componentName == null) { + Log.e("FirebaseInstanceId", "Error while delivering the message: ServiceIntent not found."); + i = 404; + } else { + i = -1; + } + } catch (SecurityException e) { + Log.e("FirebaseInstanceId", "Error while delivering the message to the serviceIntent", e); + i = 401; + } catch (IllegalStateException e2) { + String valueOf3 = String.valueOf(e2); + StringBuilder sb2 = new StringBuilder(valueOf3.length() + 45); + sb2.append("Failed to start service while in background: "); + sb2.append(valueOf3); + Log.e("FirebaseInstanceId", sb2.toString()); + i = 402; + } + return Integer.valueOf(i); + } +} diff --git a/app/src/main/java/b/i/c/s/b0.java b/app/src/main/java/b/i/c/s/b0.java new file mode 100644 index 0000000000..822dfb4c1b --- /dev/null +++ b/app/src/main/java/b/i/c/s/b0.java @@ -0,0 +1,24 @@ +package b.i.c.s; + +import android.util.Log; +import b.i.c.s.d0; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class b0 implements Runnable { + public final d0.a j; + + public b0(d0.a aVar) { + this.j = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + d0.a aVar = this.j; + String action = aVar.a.getAction(); + StringBuilder sb = new StringBuilder(String.valueOf(action).length() + 61); + sb.append("Service took too long to process intent: "); + sb.append(action); + sb.append(" App may get closed."); + Log.w("FirebaseInstanceId", sb.toString()); + aVar.a(); + } +} diff --git a/app/src/main/java/b/i/c/s/c.java b/app/src/main/java/b/i/c/s/c.java new file mode 100644 index 0000000000..49e93daca8 --- /dev/null +++ b/app/src/main/java/b/i/c/s/c.java @@ -0,0 +1,31 @@ +package b.i.c.s; + +import android.content.Context; +import android.content.Intent; +import b.i.a.f.e.o.f; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class c implements a { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final Intent f1749b; + + public c(Context context, Intent intent) { + this.a = context; + this.f1749b = intent; + } + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + Context context = this.a; + Intent intent = this.f1749b; + if (!f.y0() || ((Integer) task.l()).intValue() != 402) { + return task; + } + Task a = f.a(context, intent); + int i = h.a; + return a.i(g.j, e.a); + } +} diff --git a/app/src/main/java/b/i/c/s/c0.java b/app/src/main/java/b/i/c/s/c0.java new file mode 100644 index 0000000000..5c6169f59a --- /dev/null +++ b/app/src/main/java/b/i/c/s/c0.java @@ -0,0 +1,18 @@ +package b.i.c.s; + +import b.i.a.f.n.c; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.ScheduledFuture; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class c0 implements c { + public final ScheduledFuture a; + + public c0(ScheduledFuture scheduledFuture) { + this.a = scheduledFuture; + } + + @Override // b.i.a.f.n.c + public final void onComplete(Task task) { + this.a.cancel(false); + } +} diff --git a/app/src/main/java/b/i/c/s/d.java b/app/src/main/java/b/i/c/s/d.java new file mode 100644 index 0000000000..dc4df02f9b --- /dev/null +++ b/app/src/main/java/b/i/c/s/d.java @@ -0,0 +1,14 @@ +package b.i.c.s; + +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class d implements a { + public static final a a = new d(); + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + Object obj = f.a; + return -1; + } +} diff --git a/app/src/main/java/b/i/c/s/d0.java b/app/src/main/java/b/i/c/s/d0.java new file mode 100644 index 0000000000..5100ba4963 --- /dev/null +++ b/app/src/main/java/b/i/c/s/d0.java @@ -0,0 +1,134 @@ +package b.i.c.s; + +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.ServiceConnection; +import android.os.IBinder; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.ArrayDeque; +import java.util.Queue; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledThreadPoolExecutor; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class d0 implements ServiceConnection { + public final Context j; + public final Intent k; + public final ScheduledExecutorService l; + public final Queue m = new ArrayDeque(); + @Nullable + public a0 n; + @GuardedBy("this") + public boolean o = false; + + /* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ + public static class a { + public final Intent a; + + /* renamed from: b reason: collision with root package name */ + public final TaskCompletionSource f1750b = new TaskCompletionSource<>(); + + public a(Intent intent) { + this.a = intent; + } + + public void a() { + this.f1750b.b(null); + } + } + + public d0(Context context, String str) { + ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(0, new b.i.a.f.e.o.j.a("Firebase-FirebaseInstanceIdServiceConnection")); + Context applicationContext = context.getApplicationContext(); + this.j = applicationContext; + this.k = new Intent(str).setPackage(applicationContext.getPackageName()); + this.l = scheduledThreadPoolExecutor; + } + + @GuardedBy("this") + public final void a() { + while (!this.m.isEmpty()) { + this.m.poll().a(); + } + } + + public final synchronized void b() { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "flush queue called"); + } + while (!this.m.isEmpty()) { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "found intent to be delivered"); + } + a0 a0Var = this.n; + if (a0Var == null || !a0Var.isBinderAlive()) { + c(); + return; + } + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "binder is alive, sending the intent."); + } + this.n.a(this.m.poll()); + } + } + + @GuardedBy("this") + public final void c() { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + StringBuilder sb = new StringBuilder(39); + sb.append("binder is dead. start connection? "); + sb.append(!this.o); + Log.d("FirebaseInstanceId", sb.toString()); + } + if (!this.o) { + this.o = true; + try { + if (!b.i.a.f.e.n.a.b().a(this.j, this.k, this, 65)) { + Log.e("FirebaseInstanceId", "binding to the service failed"); + this.o = false; + a(); + } + } catch (SecurityException e) { + Log.e("FirebaseInstanceId", "Exception while binding the service", e); + } + } + } + + @Override // android.content.ServiceConnection + public synchronized void onServiceConnected(ComponentName componentName, IBinder iBinder) { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + String valueOf = String.valueOf(componentName); + StringBuilder sb = new StringBuilder(valueOf.length() + 20); + sb.append("onServiceConnected: "); + sb.append(valueOf); + Log.d("FirebaseInstanceId", sb.toString()); + } + this.o = false; + if (!(iBinder instanceof a0)) { + String valueOf2 = String.valueOf(iBinder); + StringBuilder sb2 = new StringBuilder(valueOf2.length() + 28); + sb2.append("Invalid service connection: "); + sb2.append(valueOf2); + Log.e("FirebaseInstanceId", sb2.toString()); + a(); + return; + } + this.n = (a0) iBinder; + b(); + } + + @Override // android.content.ServiceConnection + public void onServiceDisconnected(ComponentName componentName) { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + String valueOf = String.valueOf(componentName); + StringBuilder sb = new StringBuilder(valueOf.length() + 23); + sb.append("onServiceDisconnected: "); + sb.append(valueOf); + Log.d("FirebaseInstanceId", sb.toString()); + } + b(); + } +} diff --git a/app/src/main/java/b/i/c/s/e.java b/app/src/main/java/b/i/c/s/e.java new file mode 100644 index 0000000000..ead4b2f41c --- /dev/null +++ b/app/src/main/java/b/i/c/s/e.java @@ -0,0 +1,14 @@ +package b.i.c.s; + +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class e implements a { + public static final a a = new e(); + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + Object obj = f.a; + return 403; + } +} diff --git a/app/src/main/java/b/i/c/s/e0/a.java b/app/src/main/java/b/i/c/s/e0/a.java new file mode 100644 index 0000000000..fbbc6f8317 --- /dev/null +++ b/app/src/main/java/b/i/c/s/e0/a.java @@ -0,0 +1,3 @@ +package b.i.c.s.e0; +public interface a { +} diff --git a/app/src/main/java/b/i/c/s/f.java b/app/src/main/java/b/i/c/s/f.java new file mode 100644 index 0000000000..8c6c825fd4 --- /dev/null +++ b/app/src/main/java/b/i/c/s/f.java @@ -0,0 +1,84 @@ +package b.i.c.s; + +import android.content.Context; +import android.content.Intent; +import android.util.Base64; +import android.util.Log; +import b.i.a.f.n.b0; +import b.i.a.f.n.c0; +import b.i.a.f.n.q; +import b.i.a.f.n.y; +import b.i.c.s.d0; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Executor; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class f { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static d0 f1751b; + public final Context c; + public final Executor d; + + public f(Context context) { + this.c = context; + this.d = a.j; + } + + public f(Context context, ExecutorService executorService) { + this.c = context; + this.d = executorService; + } + + public static Task a(Context context, Intent intent) { + d0 d0Var; + b0 b0Var; + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "Binding to service"); + } + synchronized (a) { + if (f1751b == null) { + f1751b = new d0(context, "com.google.firebase.MESSAGING_EVENT"); + } + d0Var = f1751b; + } + synchronized (d0Var) { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "new intent queued in the bind-strategy delivery"); + } + d0.a aVar = new d0.a(intent); + ScheduledExecutorService scheduledExecutorService = d0Var.l; + ScheduledFuture schedule = scheduledExecutorService.schedule(new b0(aVar), 9000, TimeUnit.MILLISECONDS); + b0 b0Var2 = aVar.f1750b.a; + c0 c0Var = new c0(schedule); + y yVar = b0Var2.f1577b; + int i = c0.a; + yVar.b(new q(scheduledExecutorService, c0Var)); + b0Var2.w(); + d0Var.m.add(aVar); + d0Var.b(); + b0Var = aVar.f1750b.a; + } + int i2 = h.a; + return b0Var.i(g.j, d.a); + } + + public Task b(Intent intent) { + String stringExtra = intent.getStringExtra("gcm.rawData64"); + boolean z2 = false; + if (stringExtra != null) { + intent.putExtra("rawData", Base64.decode(stringExtra, 0)); + intent.removeExtra("gcm.rawData64"); + } + Context context = this.c; + boolean z3 = b.i.a.f.e.o.f.y0() && context.getApplicationInfo().targetSdkVersion >= 26; + if ((intent.getFlags() & 268435456) != 0) { + z2 = true; + } + return (!z3 || z2) ? b.i.a.f.e.o.f.n(this.d, new b(context, intent)).j(this.d, new c(context, intent)) : a(context, intent); + } +} diff --git a/app/src/main/java/b/i/c/s/g.java b/app/src/main/java/b/i/c/s/g.java new file mode 100644 index 0000000000..abcb970aec --- /dev/null +++ b/app/src/main/java/b/i/c/s/g.java @@ -0,0 +1,12 @@ +package b.i.c.s; + +import java.util.concurrent.Executor; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class g implements Executor { + public static final Executor j = new g(); + + @Override // java.util.concurrent.Executor + public final void execute(Runnable runnable) { + runnable.run(); + } +} diff --git a/app/src/main/java/b/i/c/s/h.java b/app/src/main/java/b/i/c/s/h.java new file mode 100644 index 0000000000..4b25689976 --- /dev/null +++ b/app/src/main/java/b/i/c/s/h.java @@ -0,0 +1,15 @@ +package b.i.c.s; + +import b.i.a.f.e.o.j.a; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class h { + public static final /* synthetic */ int a = 0; + + public static ExecutorService a() { + return new ThreadPoolExecutor(0, 1, 30, TimeUnit.SECONDS, new LinkedBlockingQueue(), new a("firebase-iid-executor")); + } +} diff --git a/app/src/main/java/b/i/c/s/i.java b/app/src/main/java/b/i/c/s/i.java new file mode 100644 index 0000000000..be704d820f --- /dev/null +++ b/app/src/main/java/b/i/c/s/i.java @@ -0,0 +1,24 @@ +package b.i.c.s; + +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +import com.google.firebase.iid.FirebaseInstanceId; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class i implements a { + public final FirebaseInstanceId a; + + /* renamed from: b reason: collision with root package name */ + public final String f1752b; + public final String c; + + public i(FirebaseInstanceId firebaseInstanceId, String str, String str2) { + this.a = firebaseInstanceId; + this.f1752b = str; + this.c = str2; + } + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + return this.a.m(this.f1752b, this.c); + } +} diff --git a/app/src/main/java/b/i/c/s/j.java b/app/src/main/java/b/i/c/s/j.java new file mode 100644 index 0000000000..9c9600b8df --- /dev/null +++ b/app/src/main/java/b/i/c/s/j.java @@ -0,0 +1,12 @@ +package b.i.c.s; + +import java.util.concurrent.Executor; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class j implements Executor { + public static final Executor j = new j(); + + @Override // java.util.concurrent.Executor + public final void execute(Runnable runnable) { + runnable.run(); + } +} diff --git a/app/src/main/java/b/i/c/s/k.java b/app/src/main/java/b/i/c/s/k.java new file mode 100644 index 0000000000..655d044ec2 --- /dev/null +++ b/app/src/main/java/b/i/c/s/k.java @@ -0,0 +1,21 @@ +package b.i.c.s; + +import b.i.a.f.n.c; +import com.google.android.gms.tasks.Task; +import com.google.firebase.iid.FirebaseInstanceId; +import java.util.concurrent.CountDownLatch; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class k implements c { + public final CountDownLatch a; + + public k(CountDownLatch countDownLatch) { + this.a = countDownLatch; + } + + @Override // b.i.a.f.n.c + public final void onComplete(Task task) { + CountDownLatch countDownLatch = this.a; + w wVar = FirebaseInstanceId.f3070b; + countDownLatch.countDown(); + } +} diff --git a/app/src/main/java/b/i/c/s/l.java b/app/src/main/java/b/i/c/s/l.java new file mode 100644 index 0000000000..7d625befc3 --- /dev/null +++ b/app/src/main/java/b/i/c/s/l.java @@ -0,0 +1,44 @@ +package b.i.c.s; + +import android.content.SharedPreferences; +import b.i.a.f.n.f; +import b.i.c.s.w; +import com.google.android.gms.tasks.Task; +import com.google.firebase.iid.FirebaseInstanceId; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class l implements f { + public final FirebaseInstanceId a; + + /* renamed from: b reason: collision with root package name */ + public final String f1753b; + public final String c; + public final String d; + + public l(FirebaseInstanceId firebaseInstanceId, String str, String str2, String str3) { + this.a = firebaseInstanceId; + this.f1753b = str; + this.c = str2; + this.d = str3; + } + + @Override // b.i.a.f.n.f + public final Task a(Object obj) { + FirebaseInstanceId firebaseInstanceId = this.a; + String str = this.f1753b; + String str2 = this.c; + String str3 = this.d; + String str4 = (String) obj; + w wVar = FirebaseInstanceId.f3070b; + String h = firebaseInstanceId.h(); + String a = firebaseInstanceId.g.a(); + synchronized (wVar) { + String a2 = w.a.a(str4, a, System.currentTimeMillis()); + if (a2 != null) { + SharedPreferences.Editor edit = wVar.a.edit(); + edit.putString(wVar.b(h, str, str2), a2); + edit.commit(); + } + } + return b.i.a.f.e.o.f.Y(new p(str3, str4)); + } +} diff --git a/app/src/main/java/b/i/c/s/m.java b/app/src/main/java/b/i/c/s/m.java new file mode 100644 index 0000000000..f60a87a6ec --- /dev/null +++ b/app/src/main/java/b/i/c/s/m.java @@ -0,0 +1,40 @@ +package b.i.c.s; + +import android.os.Bundle; +import android.util.Log; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +import java.io.IOException; +import java.util.Objects; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class m implements a { + public final n a; + + public m(n nVar) { + this.a = nVar; + } + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + Objects.requireNonNull(this.a); + Bundle bundle = (Bundle) task.m(IOException.class); + if (bundle != null) { + String string = bundle.getString("registration_id"); + if (string != null || (string = bundle.getString("unregistered")) != null) { + return string; + } + String string2 = bundle.getString("error"); + if ("RST".equals(string2)) { + throw new IOException("INSTANCE_ID_RESET"); + } else if (string2 != null) { + throw new IOException(string2); + } else { + String valueOf = String.valueOf(bundle); + Log.w("FirebaseInstanceId", b.d.b.a.a.i(valueOf.length() + 21, "Unexpected response: ", valueOf), new Throwable()); + throw new IOException("SERVICE_NOT_AVAILABLE"); + } + } else { + throw new IOException("SERVICE_NOT_AVAILABLE"); + } + } +} diff --git a/app/src/main/java/b/i/c/s/n.java b/app/src/main/java/b/i/c/s/n.java new file mode 100644 index 0000000000..d1164083ae --- /dev/null +++ b/app/src/main/java/b/i/c/s/n.java @@ -0,0 +1,137 @@ +package b.i.c.s; + +import android.content.pm.PackageInfo; +import android.os.Build; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Base64; +import android.util.Log; +import androidx.core.app.NotificationCompat; +import b.i.a.f.d.b; +import b.i.a.f.d.r; +import b.i.a.f.d.s; +import b.i.a.f.d.t; +import b.i.a.f.d.v; +import b.i.a.f.d.z; +import b.i.a.f.e.o.f; +import b.i.c.c; +import b.i.c.r.d; +import b.i.c.t.a; +import b.i.c.u.g; +import b.i.c.u.k; +import b.i.c.x.h; +import com.adjust.sdk.Constants; +import com.google.android.gms.tasks.Task; +import java.io.IOException; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.concurrent.ExecutionException; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class n { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final q f1754b; + public final b c; + public final a d; + public final a e; + public final g f; + + public n(c cVar, q qVar, a aVar, a aVar2, g gVar) { + cVar.a(); + b bVar = new b(cVar.d); + this.a = cVar; + this.f1754b = qVar; + this.c = bVar; + this.d = aVar; + this.e = aVar2; + this.f = gVar; + } + + public final Task a(Task task) { + int i = h.a; + return task.i(g.j, new m(this)); + } + + public final Task b(String str, String str2, String str3, Bundle bundle) { + int i; + String str4; + String str5; + int i2; + int i3; + PackageInfo b2; + d.a a; + PackageInfo c; + bundle.putString("scope", str3); + bundle.putString(NotificationCompat.MessagingStyle.Message.KEY_SENDER, str2); + bundle.putString("subtype", str2); + bundle.putString("appid", str); + c cVar = this.a; + cVar.a(); + bundle.putString("gmp_app_id", cVar.f.f1640b); + q qVar = this.f1754b; + synchronized (qVar) { + if (qVar.d == 0 && (c = qVar.c("com.google.android.gms")) != null) { + qVar.d = c.versionCode; + } + i = qVar.d; + } + bundle.putString("gmsv", Integer.toString(i)); + bundle.putString("osv", Integer.toString(Build.VERSION.SDK_INT)); + bundle.putString("app_ver", this.f1754b.a()); + q qVar2 = this.f1754b; + synchronized (qVar2) { + if (qVar2.c == null) { + qVar2.e(); + } + str4 = qVar2.c; + } + bundle.putString("app_ver_name", str4); + c cVar2 = this.a; + cVar2.a(); + try { + str5 = Base64.encodeToString(MessageDigest.getInstance(Constants.SHA1).digest(cVar2.e.getBytes()), 11); + } catch (NoSuchAlgorithmException unused) { + str5 = "[HASH-ERROR]"; + } + bundle.putString("firebase-app-name-hash", str5); + boolean z2 = false; + try { + String a2 = ((k) f.i(this.f.a(false))).a(); + if (!TextUtils.isEmpty(a2)) { + bundle.putString("Goog-Firebase-Installations-Auth", a2); + } else { + Log.w("FirebaseInstanceId", "FIS auth token is empty"); + } + } catch (InterruptedException | ExecutionException e) { + Log.e("FirebaseInstanceId", "Failed to get FIS auth token", e); + } + bundle.putString("cliv", "fiid-".concat("21.0.0")); + d dVar = this.e.get(); + h hVar = this.d.get(); + if (!(dVar == null || hVar == null || (a = dVar.a("fire-iid")) == d.a.NONE)) { + bundle.putString("Firebase-Client-Log-Type", Integer.toString(a.f())); + bundle.putString("Firebase-Client", hVar.getUserAgent()); + } + b bVar = this.c; + r rVar = bVar.e; + synchronized (rVar) { + if (rVar.f1328b == 0 && (b2 = rVar.b("com.google.android.gms")) != null) { + rVar.f1328b = b2.versionCode; + } + i2 = rVar.f1328b; + } + if (i2 >= 12000000) { + b.i.a.f.d.f a3 = b.i.a.f.d.f.a(bVar.d); + synchronized (a3) { + i3 = a3.e; + a3.e = i3 + 1; + } + return a3.b(new s(i3, bundle)).i(z.j, t.a); + } + if (bVar.e.a() != 0) { + z2 = true; + } + return !z2 ? f.X(new IOException("MISSING_INSTANCEID_SERVICE")) : bVar.b(bundle).j(z.j, new v(bVar, bundle)); + } +} diff --git a/app/src/main/java/b/i/c/s/o.java b/app/src/main/java/b/i/c/s/o.java new file mode 100644 index 0000000000..fbfd4178e5 --- /dev/null +++ b/app/src/main/java/b/i/c/s/o.java @@ -0,0 +1,11 @@ +package b.i.c.s; + +import androidx.annotation.NonNull; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public interface o { + @NonNull + String a(); + + @NonNull + String getId(); +} diff --git a/app/src/main/java/b/i/c/s/p.java b/app/src/main/java/b/i/c/s/p.java new file mode 100644 index 0000000000..3899e0808a --- /dev/null +++ b/app/src/main/java/b/i/c/s/p.java @@ -0,0 +1,23 @@ +package b.i.c.s; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final class p implements o { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1755b; + + public p(String str, String str2) { + this.a = str; + this.f1755b = str2; + } + + @Override // b.i.c.s.o + public final String a() { + return this.f1755b; + } + + @Override // b.i.c.s.o + public final String getId() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/c/s/q.java b/app/src/main/java/b/i/c/s/q.java new file mode 100644 index 0000000000..7f37345b5a --- /dev/null +++ b/app/src/main/java/b/i/c/s/q.java @@ -0,0 +1,113 @@ +package b.i.c.s; + +import android.content.Context; +import android.content.Intent; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; +import android.util.Log; +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import b.i.c.c; +import java.util.List; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class q { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public String f1756b; + public String c; + public int d; + public int e = 0; + + public q(Context context) { + this.a = context; + } + + public static String b(c cVar) { + cVar.a(); + String str = cVar.f.e; + if (str != null) { + return str; + } + cVar.a(); + String str2 = cVar.f.f1640b; + if (!str2.startsWith("1:")) { + return str2; + } + String[] split = str2.split(":"); + if (split.length < 2) { + return null; + } + String str3 = split[1]; + if (str3.isEmpty()) { + return null; + } + return str3; + } + + public synchronized String a() { + if (this.f1756b == null) { + e(); + } + return this.f1756b; + } + + public final PackageInfo c(String str) { + try { + return this.a.getPackageManager().getPackageInfo(str, 0); + } catch (PackageManager.NameNotFoundException e) { + String valueOf = String.valueOf(e); + a.f0(valueOf.length() + 23, "Failed to find package ", valueOf, "FirebaseInstanceId"); + return null; + } + } + + public boolean d() { + int i; + synchronized (this) { + i = this.e; + if (i == 0) { + PackageManager packageManager = this.a.getPackageManager(); + if (packageManager.checkPermission("com.google.android.c2dm.permission.SEND", "com.google.android.gms") == -1) { + Log.e("FirebaseInstanceId", "Google Play services missing or without correct permission."); + i = 0; + } else { + if (!f.y0()) { + Intent intent = new Intent("com.google.android.c2dm.intent.REGISTER"); + intent.setPackage("com.google.android.gms"); + List queryIntentServices = packageManager.queryIntentServices(intent, 0); + if (queryIntentServices != null && queryIntentServices.size() > 0) { + this.e = 1; + i = 1; + } + } + Intent intent2 = new Intent("com.google.iid.TOKEN_REQUEST"); + intent2.setPackage("com.google.android.gms"); + List queryBroadcastReceivers = packageManager.queryBroadcastReceivers(intent2, 0); + if (queryBroadcastReceivers == null || queryBroadcastReceivers.size() <= 0) { + Log.w("FirebaseInstanceId", "Failed to resolve IID implementation package, falling back"); + if (f.y0()) { + this.e = 2; + } else { + this.e = 1; + } + i = this.e; + } else { + this.e = 2; + i = 2; + } + } + } + } + return i != 0; + } + + public final synchronized void e() { + PackageInfo c = c(this.a.getPackageName()); + if (c != null) { + this.f1756b = Integer.toString(c.versionCode); + this.c = c.versionName; + } + } +} diff --git a/app/src/main/java/b/i/c/s/r.java b/app/src/main/java/b/i/c/s/r.java new file mode 100644 index 0000000000..8920bcac91 --- /dev/null +++ b/app/src/main/java/b/i/c/s/r.java @@ -0,0 +1,14 @@ +package b.i.c.s; + +import b.i.c.l.e; +import b.i.c.l.f; +import com.google.firebase.iid.Registrar; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class r implements f { + public static final f a = new r(); + + @Override // b.i.c.l.f + public final Object a(e eVar) { + return Registrar.lambda$getComponents$0$Registrar(eVar); + } +} diff --git a/app/src/main/java/b/i/c/s/s.java b/app/src/main/java/b/i/c/s/s.java new file mode 100644 index 0000000000..3d3b05fbb5 --- /dev/null +++ b/app/src/main/java/b/i/c/s/s.java @@ -0,0 +1,14 @@ +package b.i.c.s; + +import b.i.c.l.e; +import b.i.c.l.f; +import com.google.firebase.iid.Registrar; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class s implements f { + public static final f a = new s(); + + @Override // b.i.c.l.f + public final Object a(e eVar) { + return Registrar.lambda$getComponents$1$Registrar(eVar); + } +} diff --git a/app/src/main/java/b/i/c/s/t.java b/app/src/main/java/b/i/c/s/t.java new file mode 100644 index 0000000000..9ecfd57df6 --- /dev/null +++ b/app/src/main/java/b/i/c/s/t.java @@ -0,0 +1,27 @@ +package b.i.c.s; + +import android.util.Pair; +import b.i.a.f.n.a; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class t implements a { + public final u a; + + /* renamed from: b reason: collision with root package name */ + public final Pair f1757b; + + public t(u uVar, Pair pair) { + this.a = uVar; + this.f1757b = pair; + } + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + u uVar = this.a; + Pair pair = this.f1757b; + synchronized (uVar) { + uVar.f1758b.remove(pair); + } + return task; + } +} diff --git a/app/src/main/java/b/i/c/s/u.java b/app/src/main/java/b/i/c/s/u.java new file mode 100644 index 0000000000..9d4244e30d --- /dev/null +++ b/app/src/main/java/b/i/c/s/u.java @@ -0,0 +1,18 @@ +package b.i.c.s; + +import android.util.Pair; +import androidx.collection.ArrayMap; +import com.google.android.gms.tasks.Task; +import java.util.Map; +import java.util.concurrent.Executor; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class u { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final Map, Task> f1758b = new ArrayMap(); + + public u(Executor executor) { + this.a = executor; + } +} diff --git a/app/src/main/java/b/i/c/s/v.java b/app/src/main/java/b/i/c/s/v.java new file mode 100644 index 0000000000..94347e1c54 --- /dev/null +++ b/app/src/main/java/b/i/c/s/v.java @@ -0,0 +1,50 @@ +package b.i.c.s; + +import android.content.Context; +import android.content.Intent; +import android.util.Log; +import androidx.annotation.Nullable; +import java.util.ArrayDeque; +import java.util.Queue; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class v { + public static v a; + @Nullable + + /* renamed from: b reason: collision with root package name */ + public String f1759b = null; + public Boolean c = null; + public Boolean d = null; + public final Queue e = new ArrayDeque(); + + public static synchronized v a() { + v vVar; + synchronized (v.class) { + if (a == null) { + a = new v(); + } + vVar = a; + } + return vVar; + } + + public boolean b(Context context) { + if (this.d == null) { + this.d = Boolean.valueOf(context.checkCallingOrSelfPermission("android.permission.ACCESS_NETWORK_STATE") == 0); + } + if (!this.c.booleanValue() && Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "Missing Permission: android.permission.ACCESS_NETWORK_STATE this should normally be included by the manifest merger, but may needed to be manually added to your manifest"); + } + return this.d.booleanValue(); + } + + public boolean c(Context context) { + if (this.c == null) { + this.c = Boolean.valueOf(context.checkCallingOrSelfPermission("android.permission.WAKE_LOCK") == 0); + } + if (!this.c.booleanValue() && Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "Missing Permission: android.permission.WAKE_LOCK this should normally be included by the manifest merger, but may needed to be manually added to your manifest"); + } + return this.c.booleanValue(); + } +} diff --git a/app/src/main/java/b/i/c/s/w.java b/app/src/main/java/b/i/c/s/w.java new file mode 100644 index 0000000000..8d86970526 --- /dev/null +++ b/app/src/main/java/b/i/c/s/w.java @@ -0,0 +1,137 @@ +package b.i.c.s; + +import android.content.Context; +import android.content.SharedPreferences; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.collection.ArrayMap; +import androidx.core.content.ContextCompat; +import b.i.c.c; +import com.google.firebase.iid.FirebaseInstanceId; +import java.io.File; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class w { + public final SharedPreferences a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1760b; + @GuardedBy("this") + public final Map c = new ArrayMap(); + + /* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ + public static class a { + public static final long a = TimeUnit.DAYS.toMillis(7); + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ int f1761b = 0; + public final String c; + public final String d; + public final long e; + + public a(String str, String str2, long j) { + this.c = str; + this.d = str2; + this.e = j; + } + + public static String a(String str, String str2, long j) { + try { + JSONObject jSONObject = new JSONObject(); + jSONObject.put("token", str); + jSONObject.put("appVersion", str2); + jSONObject.put("timestamp", j); + return jSONObject.toString(); + } catch (JSONException e) { + String valueOf = String.valueOf(e); + b.d.b.a.a.f0(valueOf.length() + 24, "Failed to encode token: ", valueOf, "FirebaseInstanceId"); + return null; + } + } + + public static a b(String str) { + if (TextUtils.isEmpty(str)) { + return null; + } + if (!str.startsWith("{")) { + return new a(str, null, 0); + } + try { + JSONObject jSONObject = new JSONObject(str); + return new a(jSONObject.getString("token"), jSONObject.getString("appVersion"), jSONObject.getLong("timestamp")); + } catch (JSONException e) { + String valueOf = String.valueOf(e); + b.d.b.a.a.f0(valueOf.length() + 23, "Failed to parse token: ", valueOf, "FirebaseInstanceId"); + return null; + } + } + } + + public w(Context context) { + boolean isEmpty; + this.f1760b = context; + SharedPreferences sharedPreferences = context.getSharedPreferences("com.google.android.gms.appid", 0); + this.a = sharedPreferences; + File file = new File(ContextCompat.getNoBackupFilesDir(context), "com.google.android.gms.appid-no-backup"); + if (!file.exists()) { + try { + if (file.createNewFile()) { + synchronized (this) { + isEmpty = sharedPreferences.getAll().isEmpty(); + } + if (!isEmpty) { + Log.i("FirebaseInstanceId", "App restored, clearing state"); + c(); + w wVar = FirebaseInstanceId.f3070b; + synchronized (FirebaseInstanceId.getInstance(c.b())) { + FirebaseInstanceId.f3070b.c(); + } + } + } + } catch (IOException e) { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + String valueOf = String.valueOf(e.getMessage()); + Log.d("FirebaseInstanceId", valueOf.length() != 0 ? "Error creating file in no backup dir: ".concat(valueOf) : new String("Error creating file in no backup dir: ")); + } + } + } + } + + public static String a(String str, String str2) { + return b.d.b.a.a.j(str2.length() + b.d.b.a.a.b(str, 3), str, "|S|", str2); + } + + public final String b(String str, String str2, String str3) { + StringBuilder Q = b.d.b.a.a.Q(b.d.b.a.a.b(str3, b.d.b.a.a.b(str2, b.d.b.a.a.b(str, 4))), str, "|T|", str2, "|"); + Q.append(str3); + return Q.toString(); + } + + public synchronized void c() { + this.c.clear(); + this.a.edit().clear().commit(); + } + + public final long d(String str) { + long currentTimeMillis = System.currentTimeMillis(); + if (!this.a.contains(a(str, "cre"))) { + SharedPreferences.Editor edit = this.a.edit(); + edit.putString(a(str, "cre"), String.valueOf(currentTimeMillis)); + edit.commit(); + return currentTimeMillis; + } + String string = this.a.getString(a(str, "cre"), null); + if (string != null) { + try { + return Long.parseLong(string); + } catch (NumberFormatException unused) { + } + } + return 0; + } +} diff --git a/app/src/main/java/b/i/c/s/x.java b/app/src/main/java/b/i/c/s/x.java new file mode 100644 index 0000000000..5692a0ad28 --- /dev/null +++ b/app/src/main/java/b/i/c/s/x.java @@ -0,0 +1,176 @@ +package b.i.c.s; + +import android.annotation.SuppressLint; +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.os.PowerManager; +import android.util.Log; +import b.i.c.c; +import b.i.c.s.w; +import com.google.firebase.iid.FirebaseInstanceId; +import java.io.IOException; +import java.util.concurrent.ExecutorService; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public class x implements Runnable { + public final long j; + public final PowerManager.WakeLock k; + public final FirebaseInstanceId l; + public ExecutorService m = h.a(); + + /* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ + public static class a extends BroadcastReceiver { + public x a; + + public a(x xVar) { + this.a = xVar; + } + + public void a() { + if (FirebaseInstanceId.l()) { + Log.d("FirebaseInstanceId", "Connectivity change received registered"); + } + this.a.a().registerReceiver(this, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE")); + } + + @Override // android.content.BroadcastReceiver + public void onReceive(Context context, Intent intent) { + x xVar = this.a; + if (xVar != null && xVar.c()) { + if (FirebaseInstanceId.l()) { + Log.d("FirebaseInstanceId", "Connectivity changed. Starting background sync."); + } + x xVar2 = this.a; + xVar2.l.d(xVar2, 0); + this.a.a().unregisterReceiver(this); + this.a = null; + } + } + } + + public x(FirebaseInstanceId firebaseInstanceId, long j) { + this.l = firebaseInstanceId; + this.j = j; + PowerManager.WakeLock newWakeLock = ((PowerManager) a().getSystemService("power")).newWakeLock(1, "fiid-sync"); + this.k = newWakeLock; + newWakeLock.setReferenceCounted(false); + } + + public Context a() { + c cVar = this.l.f; + cVar.a(); + return cVar.d; + } + + public final void b(String str) { + c cVar = this.l.f; + cVar.a(); + if ("[DEFAULT]".equals(cVar.e)) { + if (Log.isLoggable("FirebaseInstanceId", 3)) { + c cVar2 = this.l.f; + cVar2.a(); + String valueOf = String.valueOf(cVar2.e); + Log.d("FirebaseInstanceId", valueOf.length() != 0 ? "Invoking onNewToken for app: ".concat(valueOf) : new String("Invoking onNewToken for app: ")); + } + Intent intent = new Intent("com.google.firebase.messaging.NEW_TOKEN"); + intent.putExtra("token", str); + new f(a(), this.m).b(intent); + } + } + + public boolean c() { + ConnectivityManager connectivityManager = (ConnectivityManager) a().getSystemService("connectivity"); + NetworkInfo activeNetworkInfo = connectivityManager != null ? connectivityManager.getActiveNetworkInfo() : null; + return activeNetworkInfo != null && activeNetworkInfo.isConnected(); + } + + public boolean d() throws IOException { + w.a j = this.l.j(); + boolean z2 = true; + if (!this.l.p(j)) { + return true; + } + try { + String b2 = this.l.b(); + if (b2 == null) { + Log.e("FirebaseInstanceId", "Token retrieval failed: null"); + return false; + } + if (Log.isLoggable("FirebaseInstanceId", 3)) { + Log.d("FirebaseInstanceId", "Token successfully retrieved"); + } + if (j == null || !b2.equals(j.c)) { + b(b2); + } + return true; + } catch (IOException e) { + String message = e.getMessage(); + if (!"SERVICE_NOT_AVAILABLE".equals(message) && !"INTERNAL_SERVER_ERROR".equals(message) && !"InternalServerError".equals(message)) { + z2 = false; + } + if (z2) { + String message2 = e.getMessage(); + b.d.b.a.a.g0(b.d.b.a.a.b(message2, 52), "Token retrieval failed: ", message2, ". Will retry token retrieval", "FirebaseInstanceId"); + return false; + } else if (e.getMessage() == null) { + Log.w("FirebaseInstanceId", "Token retrieval failed without exception message. Will retry token retrieval"); + return false; + } else { + throw e; + } + } catch (SecurityException unused) { + Log.w("FirebaseInstanceId", "Token retrieval failed with SecurityException. Will retry token retrieval"); + return false; + } + } + + @Override // java.lang.Runnable + @SuppressLint({"Wakelock"}) + public void run() { + if (v.a().c(a())) { + this.k.acquire(); + } + try { + this.l.n(true); + if (!this.l.g.d()) { + this.l.n(false); + if (v.a().c(a())) { + this.k.release(); + } + } else if (!v.a().b(a()) || c()) { + if (d()) { + this.l.n(false); + } else { + this.l.o(this.j); + } + if (v.a().c(a())) { + this.k.release(); + } + } else { + new a(this).a(); + if (v.a().c(a())) { + this.k.release(); + } + } + } catch (IOException e) { + String message = e.getMessage(); + StringBuilder sb = new StringBuilder(String.valueOf(message).length() + 93); + sb.append("Topic sync or token retrieval failed on hard failure exceptions: "); + sb.append(message); + sb.append(". Won't retry the operation."); + Log.e("FirebaseInstanceId", sb.toString()); + this.l.n(false); + if (v.a().c(a())) { + this.k.release(); + } + } catch (Throwable th) { + if (v.a().c(a())) { + this.k.release(); + } + throw th; + } + } +} diff --git a/app/src/main/java/b/i/c/s/y.java b/app/src/main/java/b/i/c/s/y.java new file mode 100644 index 0000000000..50b77f20fd --- /dev/null +++ b/app/src/main/java/b/i/c/s/y.java @@ -0,0 +1,37 @@ +package b.i.c.s; + +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import androidx.annotation.NonNull; +import b.i.a.f.m.a; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final class y { + public static final long a = TimeUnit.MINUTES.toMillis(1); + + /* renamed from: b reason: collision with root package name */ + public static final Object f1762b = new Object(); + public static a c; + + public static ComponentName a(@NonNull Context context, @NonNull Intent intent) { + synchronized (f1762b) { + if (c == null) { + a aVar = new a(context, 1, "wake:com.google.firebase.iid.WakeLockHolder"); + c = aVar; + aVar.c.setReferenceCounted(true); + aVar.h = true; + } + boolean booleanExtra = intent.getBooleanExtra("com.google.firebase.iid.WakeLockHolder.wakefulintent", false); + intent.putExtra("com.google.firebase.iid.WakeLockHolder.wakefulintent", true); + ComponentName startService = context.startService(intent); + if (startService == null) { + return null; + } + if (!booleanExtra) { + c.a(a); + } + return startService; + } + } +} diff --git a/app/src/main/java/b/i/c/s/z.java b/app/src/main/java/b/i/c/s/z.java new file mode 100644 index 0000000000..d853026910 --- /dev/null +++ b/app/src/main/java/b/i/c/s/z.java @@ -0,0 +1,18 @@ +package b.i.c.s; + +import b.i.a.f.n.c; +import b.i.c.s.d0; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.firebase:firebase-iid@@21.0.0 */ +public final /* synthetic */ class z implements c { + public final d0.a a; + + public z(d0.a aVar) { + this.a = aVar; + } + + @Override // b.i.a.f.n.c + public final void onComplete(Task task) { + this.a.a(); + } +} diff --git a/app/src/main/java/b/i/c/t/a.java b/app/src/main/java/b/i/c/t/a.java new file mode 100644 index 0000000000..0958ba115d --- /dev/null +++ b/app/src/main/java/b/i/c/t/a.java @@ -0,0 +1,5 @@ +package b.i.c.t; +/* compiled from: Provider */ +public interface a { + T get(); +} diff --git a/app/src/main/java/b/i/c/u/a.java b/app/src/main/java/b/i/c/u/a.java new file mode 100644 index 0000000000..c00823665b --- /dev/null +++ b/app/src/main/java/b/i/c/u/a.java @@ -0,0 +1,61 @@ +package b.i.c.u; + +import androidx.annotation.NonNull; +/* compiled from: com.google.firebase:firebase-installations-interop@@16.0.0 */ +public final class a extends k { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final long f1763b; + public final long c; + + public a(String str, long j, long j2, C0144a aVar) { + this.a = str; + this.f1763b = j; + this.c = j2; + } + + @Override // b.i.c.u.k + @NonNull + public String a() { + return this.a; + } + + @Override // b.i.c.u.k + @NonNull + public long b() { + return this.c; + } + + @Override // b.i.c.u.k + @NonNull + public long c() { + return this.f1763b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof k)) { + return false; + } + k kVar = (k) obj; + return this.a.equals(kVar.a()) && this.f1763b == kVar.c() && this.c == kVar.b(); + } + + public int hashCode() { + long j = this.f1763b; + long j2 = this.c; + return ((((this.a.hashCode() ^ 1000003) * 1000003) ^ ((int) (j ^ (j >>> 32)))) * 1000003) ^ ((int) (j2 ^ (j2 >>> 32))); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("InstallationTokenResult{token="); + R.append(this.a); + R.append(", tokenExpirationTimestamp="); + R.append(this.f1763b); + R.append(", tokenCreationTimestamp="); + return b.d.b.a.a.B(R, this.c, "}"); + } +} diff --git a/app/src/main/java/b/i/c/u/b.java b/app/src/main/java/b/i/c/u/b.java new file mode 100644 index 0000000000..9b860a01f0 --- /dev/null +++ b/app/src/main/java/b/i/c/u/b.java @@ -0,0 +1,83 @@ +package b.i.c.u; + +import android.content.Context; +import android.util.Log; +import java.io.File; +import java.io.IOException; +import java.io.RandomAccessFile; +import java.nio.channels.FileChannel; +import java.nio.channels.FileLock; +import java.nio.channels.OverlappingFileLockException; +/* compiled from: CrossProcessLock */ +public class b { + public final FileChannel a; + + /* renamed from: b reason: collision with root package name */ + public final FileLock f1764b; + + public b(FileChannel fileChannel, FileLock fileLock) { + this.a = fileChannel; + this.f1764b = fileLock; + } + + /* JADX WARNING: Removed duplicated region for block: B:15:0x003e A[SYNTHETIC, Splitter:B:15:0x003e] */ + /* JADX WARNING: Removed duplicated region for block: B:19:0x0045 A[SYNTHETIC, Splitter:B:19:0x0045] */ + public static b a(Context context, String str) { + FileLock fileLock; + FileChannel fileChannel; + Throwable e; + try { + fileChannel = new RandomAccessFile(new File(context.getFilesDir(), str), "rw").getChannel(); + try { + fileLock = fileChannel.lock(); + } catch (IOException | Error | OverlappingFileLockException e2) { + e = e2; + fileLock = null; + Log.e("CrossProcessLock", "encountered error while creating and acquiring the lock, ignoring", e); + if (fileLock != null) { + try { + fileLock.release(); + } catch (IOException unused) { + } + } + if (fileChannel != null) { + try { + fileChannel.close(); + } catch (IOException unused2) { + } + } + return null; + } + try { + return new b(fileChannel, fileLock); + } catch (IOException | Error | OverlappingFileLockException e3) { + e = e3; + Log.e("CrossProcessLock", "encountered error while creating and acquiring the lock, ignoring", e); + if (fileLock != null) { + } + if (fileChannel != null) { + } + return null; + } + } catch (IOException | Error | OverlappingFileLockException e4) { + e = e4; + fileChannel = null; + fileLock = null; + Log.e("CrossProcessLock", "encountered error while creating and acquiring the lock, ignoring", e); + if (fileLock != null) { + } + if (fileChannel != null) { + } + return null; + } + } + + public void b() { + try { + this.f1764b.release(); + this.a.close(); + } catch (IOException e) { + Log.e("CrossProcessLock", "encountered error while releasing, ignoring", e); + } + } +} diff --git a/app/src/main/java/b/i/c/u/c.java b/app/src/main/java/b/i/c/u/c.java new file mode 100644 index 0000000000..1d71b487e2 --- /dev/null +++ b/app/src/main/java/b/i/c/u/c.java @@ -0,0 +1,16 @@ +package b.i.c.u; +/* compiled from: FirebaseInstallations */ +public final /* synthetic */ class c implements Runnable { + public final f j; + + public c(f fVar) { + this.j = fVar; + } + + @Override // java.lang.Runnable + public void run() { + f fVar = this.j; + Object obj = f.a; + fVar.b(false); + } +} diff --git a/app/src/main/java/b/i/c/u/d.java b/app/src/main/java/b/i/c/u/d.java new file mode 100644 index 0000000000..926faaff90 --- /dev/null +++ b/app/src/main/java/b/i/c/u/d.java @@ -0,0 +1,19 @@ +package b.i.c.u; +/* compiled from: FirebaseInstallations */ +public final /* synthetic */ class d implements Runnable { + public final f j; + public final boolean k; + + public d(f fVar, boolean z2) { + this.j = fVar; + this.k = z2; + } + + @Override // java.lang.Runnable + public void run() { + f fVar = this.j; + boolean z2 = this.k; + Object obj = f.a; + fVar.b(z2); + } +} diff --git a/app/src/main/java/b/i/c/u/e.java b/app/src/main/java/b/i/c/u/e.java new file mode 100644 index 0000000000..347c6eeb5f --- /dev/null +++ b/app/src/main/java/b/i/c/u/e.java @@ -0,0 +1,87 @@ +package b.i.c.u; + +import b.i.c.c; +import b.i.c.u.o.a; +import b.i.c.u.o.c; +import b.i.c.u.o.d; +import com.google.firebase.installations.FirebaseInstallationsException; +import java.io.IOException; +import java.util.Objects; +/* compiled from: FirebaseInstallations */ +public final /* synthetic */ class e implements Runnable { + public final f j; + public final boolean k; + + public e(f fVar, boolean z2) { + this.j = fVar; + this.k = z2; + } + + /* JADX WARNING: Removed duplicated region for block: B:24:0x004d A[SYNTHETIC] */ + @Override // java.lang.Runnable + public void run() { + d b2; + d dVar; + f fVar = this.j; + boolean z2 = this.k; + Object obj = f.a; + Objects.requireNonNull(fVar); + Object obj2 = f.a; + synchronized (obj2) { + c cVar = fVar.c; + cVar.a(); + b a = b.a(cVar.d, "generatefid.lock"); + try { + b2 = fVar.e.b(); + } finally { + if (a != null) { + a.b(); + } + } + } + try { + if (!b2.h()) { + if (!(b2.f() == c.a.UNREGISTERED)) { + if (z2 || fVar.f.d(b2)) { + dVar = fVar.c(b2); + synchronized (obj2) { + b.i.c.c cVar2 = fVar.c; + cVar2.a(); + b a2 = b.a(cVar2.d, "generatefid.lock"); + try { + fVar.e.a(dVar); + } finally { + if (a2 != null) { + a2.b(); + } + } + } + if (dVar.j()) { + String str = ((a) dVar).f1769b; + synchronized (fVar) { + fVar.l = str; + } + } + if (dVar.h()) { + fVar.k(new FirebaseInstallationsException(FirebaseInstallationsException.a.BAD_CONFIG)); + return; + } else if (dVar.i()) { + fVar.k(new IOException("Installation ID could not be validated with the Firebase servers (maybe it was deleted). Firebase Installations will need to create a new Installation ID and auth token. Please retry your last request.")); + return; + } else { + fVar.l(dVar); + return; + } + } else { + return; + } + } + } + dVar = fVar.j(b2); + synchronized (obj2) { + } + } catch (FirebaseInstallationsException e) { + fVar.k(e); + } + } +} diff --git a/app/src/main/java/b/i/c/u/f.java b/app/src/main/java/b/i/c/u/f.java new file mode 100644 index 0000000000..86d798d656 --- /dev/null +++ b/app/src/main/java/b/i/c/u/f.java @@ -0,0 +1,421 @@ +package b.i.c.u; + +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import androidx.browser.trusted.sharing.ShareTarget; +import b.i.c.c; +import b.i.c.r.d; +import b.i.c.u.o.a; +import b.i.c.u.o.b; +import b.i.c.u.o.c; +import b.i.c.u.o.d; +import b.i.c.u.p.b; +import b.i.c.u.p.d; +import b.i.c.u.p.f; +import b.i.c.x.h; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import com.google.firebase.installations.FirebaseInstallationsException; +import java.io.IOException; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.regex.Pattern; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: FirebaseInstallations */ +public class f implements g { + public static final Object a = new Object(); + + /* renamed from: b reason: collision with root package name */ + public static final ThreadFactory f1765b = new a(); + public final c c; + public final b.i.c.u.p.c d; + public final b.i.c.u.o.c e; + public final n f; + public final b g; + public final l h; + public final Object i = new Object(); + public final ExecutorService j; + public final ExecutorService k; + @GuardedBy("this") + public String l; + @GuardedBy("lock") + public final List m = new ArrayList(); + + /* compiled from: FirebaseInstallations */ + public class a implements ThreadFactory { + public final AtomicInteger j = new AtomicInteger(1); + + @Override // java.util.concurrent.ThreadFactory + public Thread newThread(Runnable runnable) { + return new Thread(runnable, String.format("firebase-installations-executor-%d", Integer.valueOf(this.j.getAndIncrement()))); + } + } + + public f(c cVar, @NonNull b.i.c.t.a aVar, @NonNull b.i.c.t.a aVar2) { + TimeUnit timeUnit = TimeUnit.SECONDS; + LinkedBlockingQueue linkedBlockingQueue = new LinkedBlockingQueue(); + ThreadFactory threadFactory = f1765b; + ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(0, 1, 30, timeUnit, linkedBlockingQueue, threadFactory); + cVar.a(); + b.i.c.u.p.c cVar2 = new b.i.c.u.p.c(cVar.d, aVar, aVar2); + b.i.c.u.o.c cVar3 = new b.i.c.u.o.c(cVar); + n c = n.c(); + b bVar = new b(cVar); + l lVar = new l(); + this.c = cVar; + this.d = cVar2; + this.e = cVar3; + this.f = c; + this.g = bVar; + this.h = lVar; + this.j = threadPoolExecutor; + this.k = new ThreadPoolExecutor(0, 1, 30, timeUnit, new LinkedBlockingQueue(), threadFactory); + } + + @NonNull + public static f f() { + c b2 = c.b(); + b.c.a.a0.d.o(true, "Null is not a valid value of FirebaseApp."); + b2.a(); + return (f) b2.g.a(g.class); + } + + @Override // b.i.c.u.g + @NonNull + public Task a(boolean z2) { + h(); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + i iVar = new i(this.f, taskCompletionSource); + synchronized (this.i) { + this.m.add(iVar); + } + Task task = taskCompletionSource.a; + this.j.execute(new d(this, z2)); + return task; + } + + public final void b(boolean z2) { + b.i.c.u.o.d b2; + synchronized (a) { + c cVar = this.c; + cVar.a(); + b a2 = b.a(cVar.d, "generatefid.lock"); + try { + b2 = this.e.b(); + if (b2.i()) { + String i = i(b2); + b.i.c.u.o.c cVar2 = this.e; + a.b bVar = (a.b) b2.k(); + bVar.a = i; + bVar.b(c.a.UNREGISTERED); + b2 = bVar.a(); + cVar2.a(b2); + } + } finally { + if (a2 != null) { + a2.b(); + } + } + } + if (z2) { + a.b bVar2 = (a.b) b2.k(); + bVar2.c = null; + b2 = bVar2.a(); + } + l(b2); + this.k.execute(new e(this, z2)); + } + + public final b.i.c.u.o.d c(@NonNull b.i.c.u.o.d dVar) throws FirebaseInstallationsException { + b.i.c.u.p.f f; + FirebaseInstallationsException.a aVar = FirebaseInstallationsException.a.UNAVAILABLE; + b.i.c.u.p.c cVar = this.d; + String d = d(); + b.i.c.u.o.a aVar2 = (b.i.c.u.o.a) dVar; + String str = aVar2.f1769b; + String g = g(); + String str2 = aVar2.e; + if (cVar.f.a()) { + URL a2 = cVar.a(String.format("projects/%s/installations/%s/authTokens:generate", g, str)); + for (int i = 0; i <= 1; i++) { + HttpURLConnection c = cVar.c(a2, d); + try { + c.setRequestMethod(ShareTarget.METHOD_POST); + c.addRequestProperty("Authorization", "FIS_v2 " + str2); + c.setDoOutput(true); + cVar.h(c); + int responseCode = c.getResponseCode(); + cVar.f.b(responseCode); + if (responseCode >= 200 && responseCode < 300) { + f = cVar.f(c); + } else { + b.i.c.u.p.c.b(c, null, d, g); + if (responseCode != 401) { + if (responseCode != 404) { + if (responseCode == 429) { + throw new FirebaseInstallationsException("Firebase servers have received too many requests from this client in a short period of time. Please try again later.", FirebaseInstallationsException.a.TOO_MANY_REQUESTS); + } else if (responseCode < 500 || responseCode >= 600) { + Log.e("Firebase-Installations", "Firebase Installations can not communicate with Firebase server APIs due to invalid configuration. Please update your Firebase initialization process and set valid Firebase options (API key, Project ID, Application ID) when initializing Firebase."); + b.C0147b bVar = (b.C0147b) b.i.c.u.p.f.a(); + bVar.c = f.b.BAD_CONFIG; + f = bVar.a(); + } else { + c.disconnect(); + } + } + } + b.C0147b bVar2 = (b.C0147b) b.i.c.u.p.f.a(); + bVar2.c = f.b.AUTH_ERROR; + f = bVar2.a(); + } + c.disconnect(); + b.i.c.u.p.b bVar3 = (b.i.c.u.p.b) f; + int ordinal = bVar3.c.ordinal(); + if (ordinal == 0) { + String str3 = bVar3.a; + long j = bVar3.f1774b; + long b2 = this.f.b(); + a.b bVar4 = (a.b) dVar.k(); + bVar4.c = str3; + bVar4.e = Long.valueOf(j); + bVar4.f = Long.valueOf(b2); + return bVar4.a(); + } else if (ordinal == 1) { + a.b bVar5 = (a.b) dVar.k(); + bVar5.g = "BAD CONFIG"; + bVar5.b(c.a.REGISTER_ERROR); + return bVar5.a(); + } else if (ordinal == 2) { + synchronized (this) { + this.l = null; + } + d.a k = dVar.k(); + k.b(c.a.NOT_GENERATED); + return k.a(); + } else { + throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.", aVar); + } + } catch (IOException | AssertionError unused) { + } catch (Throwable th) { + c.disconnect(); + throw th; + } + } + throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.", aVar); + } + throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.", aVar); + } + + @Nullable + public String d() { + b.i.c.c cVar = this.c; + cVar.a(); + return cVar.f.a; + } + + @VisibleForTesting + public String e() { + b.i.c.c cVar = this.c; + cVar.a(); + return cVar.f.f1640b; + } + + @Nullable + public String g() { + b.i.c.c cVar = this.c; + cVar.a(); + return cVar.f.g; + } + + @Override // b.i.c.u.g + @NonNull + public Task getId() { + String str; + h(); + synchronized (this) { + str = this.l; + } + if (str != null) { + return b.i.a.f.e.o.f.Y(str); + } + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + j jVar = new j(taskCompletionSource); + synchronized (this.i) { + this.m.add(jVar); + } + Task task = taskCompletionSource.a; + this.j.execute(new c(this)); + return task; + } + + public final void h() { + b.c.a.a0.d.v(e(), "Please set your Application ID. A valid Firebase App ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options."); + b.c.a.a0.d.v(g(), "Please set your Project ID. A valid Firebase Project ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options."); + b.c.a.a0.d.v(d(), "Please set a valid API key. A Firebase API key is required to communicate with Firebase server APIs: It authenticates your project with Google.Please refer to https://firebase.google.com/support/privacy/init-options."); + String e = e(); + Pattern pattern = n.f1768b; + b.c.a.a0.d.o(e.contains(":"), "Please set your Application ID. A valid Firebase App ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options."); + b.c.a.a0.d.o(n.f1768b.matcher(d()).matches(), "Please set a valid API key. A Firebase API key is required to communicate with Firebase server APIs: It authenticates your project with Google.Please refer to https://firebase.google.com/support/privacy/init-options."); + } + + public final String i(b.i.c.u.o.d dVar) { + String string; + b.i.c.c cVar = this.c; + cVar.a(); + if (cVar.e.equals("CHIME_ANDROID_SDK") || this.c.h()) { + if (((b.i.c.u.o.a) dVar).c == c.a.ATTEMPT_MIGRATION) { + b.i.c.u.o.b bVar = this.g; + synchronized (bVar.f1771b) { + synchronized (bVar.f1771b) { + string = bVar.f1771b.getString("|S|id", null); + } + if (string == null) { + string = bVar.a(); + } + } + return TextUtils.isEmpty(string) ? this.h.a() : string; + } + } + return this.h.a(); + } + + /* JADX INFO: finally extract failed */ + public final b.i.c.u.o.d j(b.i.c.u.o.d dVar) throws FirebaseInstallationsException { + b.i.c.u.p.d e; + FirebaseInstallationsException.a aVar = FirebaseInstallationsException.a.UNAVAILABLE; + b.i.c.u.o.a aVar2 = (b.i.c.u.o.a) dVar; + String str = aVar2.f1769b; + String str2 = null; + if (str != null && str.length() == 11) { + b.i.c.u.o.b bVar = this.g; + synchronized (bVar.f1771b) { + String[] strArr = b.i.c.u.o.b.a; + int length = strArr.length; + int i = 0; + while (true) { + if (i >= length) { + break; + } + String str3 = strArr[i]; + String str4 = bVar.c; + String string = bVar.f1771b.getString("|T|" + str4 + "|" + str3, null); + if (string == null || string.isEmpty()) { + i++; + } else if (string.startsWith("{")) { + try { + str2 = new JSONObject(string).getString("token"); + } catch (JSONException unused) { + } + } else { + str2 = string; + } + } + } + } + b.i.c.u.p.c cVar = this.d; + String d = d(); + String str5 = aVar2.f1769b; + String g = g(); + String e2 = e(); + if (cVar.f.a()) { + URL a2 = cVar.a(String.format("projects/%s/installations", g)); + for (int i2 = 0; i2 <= 1; i2++) { + HttpURLConnection c = cVar.c(a2, d); + try { + c.setRequestMethod(ShareTarget.METHOD_POST); + c.setDoOutput(true); + if (str2 != null) { + c.addRequestProperty("x-goog-fis-android-iid-migration-auth", str2); + } + cVar.g(c, str5, e2); + int responseCode = c.getResponseCode(); + cVar.f.b(responseCode); + if (responseCode >= 200 && responseCode < 300) { + e = cVar.e(c); + c.disconnect(); + } else { + try { + b.i.c.u.p.c.b(c, e2, d, g); + if (responseCode == 429) { + throw new FirebaseInstallationsException("Firebase servers have received too many requests from this client in a short period of time. Please try again later.", FirebaseInstallationsException.a.TOO_MANY_REQUESTS); + } else if (responseCode < 500 || responseCode >= 600) { + Log.e("Firebase-Installations", "Firebase Installations can not communicate with Firebase server APIs due to invalid configuration. Please update your Firebase initialization process and set valid Firebase options (API key, Project ID, Application ID) when initializing Firebase."); + b.i.c.u.p.a aVar3 = new b.i.c.u.p.a(null, null, null, null, d.a.BAD_CONFIG, null); + c.disconnect(); + e = aVar3; + } else { + c.disconnect(); + } + } catch (IOException | AssertionError unused2) { + } + } + b.i.c.u.p.a aVar4 = (b.i.c.u.p.a) e; + int ordinal = aVar4.e.ordinal(); + if (ordinal == 0) { + String str6 = aVar4.f1773b; + String str7 = aVar4.c; + long b2 = this.f.b(); + String c2 = aVar4.d.c(); + long d2 = aVar4.d.d(); + a.b bVar2 = (a.b) dVar.k(); + bVar2.a = str6; + bVar2.b(c.a.REGISTERED); + bVar2.c = c2; + bVar2.d = str7; + bVar2.e = Long.valueOf(d2); + bVar2.f = Long.valueOf(b2); + return bVar2.a(); + } else if (ordinal == 1) { + a.b bVar3 = (a.b) dVar.k(); + bVar3.g = "BAD CONFIG"; + bVar3.b(c.a.REGISTER_ERROR); + return bVar3.a(); + } else { + throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.", aVar); + } + } catch (Throwable th) { + c.disconnect(); + throw th; + } + } + throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.", aVar); + } + throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.", aVar); + } + + public final void k(Exception exc) { + synchronized (this.i) { + Iterator it = this.m.iterator(); + while (it.hasNext()) { + if (it.next().a(exc)) { + it.remove(); + } + } + } + } + + public final void l(b.i.c.u.o.d dVar) { + synchronized (this.i) { + Iterator it = this.m.iterator(); + while (it.hasNext()) { + if (it.next().b(dVar)) { + it.remove(); + } + } + } + } +} diff --git a/app/src/main/java/b/i/c/u/g.java b/app/src/main/java/b/i/c/u/g.java new file mode 100644 index 0000000000..46218a8b32 --- /dev/null +++ b/app/src/main/java/b/i/c/u/g.java @@ -0,0 +1,9 @@ +package b.i.c.u; + +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.firebase:firebase-installations-interop@@16.0.0 */ +public interface g { + Task a(boolean z2); + + Task getId(); +} diff --git a/app/src/main/java/b/i/c/u/h.java b/app/src/main/java/b/i/c/u/h.java new file mode 100644 index 0000000000..6393124f13 --- /dev/null +++ b/app/src/main/java/b/i/c/u/h.java @@ -0,0 +1,14 @@ +package b.i.c.u; + +import b.i.c.l.e; +import b.i.c.l.f; +import com.google.firebase.installations.FirebaseInstallationsRegistrar; +/* compiled from: FirebaseInstallationsRegistrar */ +public final /* synthetic */ class h implements f { + public static final h a = new h(); + + @Override // b.i.c.l.f + public Object a(e eVar) { + return FirebaseInstallationsRegistrar.lambda$getComponents$0(eVar); + } +} diff --git a/app/src/main/java/b/i/c/u/i.java b/app/src/main/java/b/i/c/u/i.java new file mode 100644 index 0000000000..0f056e8c2b --- /dev/null +++ b/app/src/main/java/b/i/c/u/i.java @@ -0,0 +1,48 @@ +package b.i.c.u; + +import b.d.b.a.a; +import b.i.c.u.o.d; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +/* compiled from: GetAuthTokenListener */ +public class i implements m { + public final n a; + + /* renamed from: b reason: collision with root package name */ + public final TaskCompletionSource f1766b; + + public i(n nVar, TaskCompletionSource taskCompletionSource) { + this.a = nVar; + this.f1766b = taskCompletionSource; + } + + @Override // b.i.c.u.m + public boolean a(Exception exc) { + this.f1766b.a(exc); + return true; + } + + @Override // b.i.c.u.m + public boolean b(d dVar) { + if (!dVar.j() || this.a.d(dVar)) { + return false; + } + TaskCompletionSource taskCompletionSource = this.f1766b; + String a = dVar.a(); + Objects.requireNonNull(a, "Null token"); + Long valueOf = Long.valueOf(dVar.b()); + Long valueOf2 = Long.valueOf(dVar.g()); + String str = ""; + if (valueOf == null) { + str = a.v(str, " tokenExpirationTimestamp"); + } + if (valueOf2 == null) { + str = a.v(str, " tokenCreationTimestamp"); + } + if (str.isEmpty()) { + taskCompletionSource.a.t(new a(a, valueOf.longValue(), valueOf2.longValue(), null)); + return true; + } + throw new IllegalStateException(a.v("Missing required properties:", str)); + } +} diff --git a/app/src/main/java/b/i/c/u/j.java b/app/src/main/java/b/i/c/u/j.java new file mode 100644 index 0000000000..daa90ada99 --- /dev/null +++ b/app/src/main/java/b/i/c/u/j.java @@ -0,0 +1,27 @@ +package b.i.c.u; + +import b.i.c.u.o.c; +import b.i.c.u.o.d; +import com.google.android.gms.tasks.TaskCompletionSource; +/* compiled from: GetIdListener */ +public class j implements m { + public final TaskCompletionSource a; + + public j(TaskCompletionSource taskCompletionSource) { + this.a = taskCompletionSource; + } + + @Override // b.i.c.u.m + public boolean a(Exception exc) { + return false; + } + + @Override // b.i.c.u.m + public boolean b(d dVar) { + if (!(dVar.f() == c.a.UNREGISTERED) && !dVar.j() && !dVar.h()) { + return false; + } + this.a.b(dVar.c()); + return true; + } +} diff --git a/app/src/main/java/b/i/c/u/k.java b/app/src/main/java/b/i/c/u/k.java new file mode 100644 index 0000000000..8e4d047d01 --- /dev/null +++ b/app/src/main/java/b/i/c/u/k.java @@ -0,0 +1,16 @@ +package b.i.c.u; + +import androidx.annotation.NonNull; +import com.google.auto.value.AutoValue; +/* compiled from: com.google.firebase:firebase-installations-interop@@16.0.0 */ +@AutoValue +public abstract class k { + @NonNull + public abstract String a(); + + @NonNull + public abstract long b(); + + @NonNull + public abstract long c(); +} diff --git a/app/src/main/java/b/i/c/u/l.java b/app/src/main/java/b/i/c/u/l.java new file mode 100644 index 0000000000..01202415dd --- /dev/null +++ b/app/src/main/java/b/i/c/u/l.java @@ -0,0 +1,26 @@ +package b.i.c.u; + +import android.util.Base64; +import androidx.annotation.NonNull; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.util.UUID; +/* compiled from: RandomFidGenerator */ +public class l { + public static final byte a = Byte.parseByte("01110000", 2); + + /* renamed from: b reason: collision with root package name */ + public static final byte f1767b = Byte.parseByte("00001111", 2); + + @NonNull + public String a() { + UUID randomUUID = UUID.randomUUID(); + ByteBuffer wrap = ByteBuffer.wrap(new byte[17]); + wrap.putLong(randomUUID.getMostSignificantBits()); + wrap.putLong(randomUUID.getLeastSignificantBits()); + byte[] array = wrap.array(); + array[16] = array[0]; + array[0] = (byte) ((f1767b & array[0]) | a); + return new String(Base64.encode(array, 11), Charset.defaultCharset()).substring(0, 22); + } +} diff --git a/app/src/main/java/b/i/c/u/m.java b/app/src/main/java/b/i/c/u/m.java new file mode 100644 index 0000000000..bcf4010c3e --- /dev/null +++ b/app/src/main/java/b/i/c/u/m.java @@ -0,0 +1,9 @@ +package b.i.c.u; + +import b.i.c.u.o.d; +/* compiled from: StateListener */ +public interface m { + boolean a(Exception exc); + + boolean b(d dVar); +} diff --git a/app/src/main/java/b/i/c/u/n.java b/app/src/main/java/b/i/c/u/n.java new file mode 100644 index 0000000000..f51b4acfa4 --- /dev/null +++ b/app/src/main/java/b/i/c/u/n.java @@ -0,0 +1,49 @@ +package b.i.c.u; + +import android.text.TextUtils; +import androidx.annotation.NonNull; +import b.i.c.u.o.d; +import b.i.c.u.q.a; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +import java.util.regex.Pattern; +/* compiled from: Utils */ +public final class n { + public static final long a = TimeUnit.HOURS.toSeconds(1); + + /* renamed from: b reason: collision with root package name */ + public static final Pattern f1768b = Pattern.compile("\\AA[\\w-]{38}\\z"); + public static n c; + public final a d; + + public n(a aVar) { + this.d = aVar; + } + + public static n c() { + if (a.a == null) { + a.a = new a(); + } + a aVar = a.a; + if (c == null) { + c = new n(aVar); + } + return c; + } + + public long a() { + Objects.requireNonNull(this.d); + return System.currentTimeMillis(); + } + + public long b() { + return TimeUnit.MILLISECONDS.toSeconds(a()); + } + + public boolean d(@NonNull d dVar) { + if (TextUtils.isEmpty(dVar.a())) { + return true; + } + return dVar.b() + dVar.g() < b() + a; + } +} diff --git a/app/src/main/java/b/i/c/u/o/a.java b/app/src/main/java/b/i/c/u/o/a.java new file mode 100644 index 0000000000..dd7b8a5139 --- /dev/null +++ b/app/src/main/java/b/i/c/u/o/a.java @@ -0,0 +1,194 @@ +package b.i.c.u.o; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.u.o.c; +import b.i.c.u.o.d; +import java.util.Objects; +/* compiled from: AutoValue_PersistedInstallationEntry */ +public final class a extends d { + + /* renamed from: b reason: collision with root package name */ + public final String f1769b; + public final c.a c; + public final String d; + public final String e; + public final long f; + public final long g; + public final String h; + + /* compiled from: AutoValue_PersistedInstallationEntry */ + public static final class b extends d.a { + public String a; + + /* renamed from: b reason: collision with root package name */ + public c.a f1770b; + public String c; + public String d; + public Long e; + public Long f; + public String g; + + public b() { + } + + public b(d dVar, C0145a aVar) { + a aVar2 = (a) dVar; + this.a = aVar2.f1769b; + this.f1770b = aVar2.c; + this.c = aVar2.d; + this.d = aVar2.e; + this.e = Long.valueOf(aVar2.f); + this.f = Long.valueOf(aVar2.g); + this.g = aVar2.h; + } + + @Override // b.i.c.u.o.d.a + public d a() { + String str = this.f1770b == null ? " registrationStatus" : ""; + if (this.e == null) { + str = b.d.b.a.a.v(str, " expiresInSecs"); + } + if (this.f == null) { + str = b.d.b.a.a.v(str, " tokenCreationEpochInSecs"); + } + if (str.isEmpty()) { + return new a(this.a, this.f1770b, this.c, this.d, this.e.longValue(), this.f.longValue(), this.g, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + + @Override // b.i.c.u.o.d.a + public d.a b(c.a aVar) { + Objects.requireNonNull(aVar, "Null registrationStatus"); + this.f1770b = aVar; + return this; + } + + public d.a c(long j) { + this.e = Long.valueOf(j); + return this; + } + + public d.a d(long j) { + this.f = Long.valueOf(j); + return this; + } + } + + public a(String str, c.a aVar, String str2, String str3, long j, long j2, String str4, C0145a aVar2) { + this.f1769b = str; + this.c = aVar; + this.d = str2; + this.e = str3; + this.f = j; + this.g = j2; + this.h = str4; + } + + @Override // b.i.c.u.o.d + @Nullable + public String a() { + return this.d; + } + + @Override // b.i.c.u.o.d + public long b() { + return this.f; + } + + @Override // b.i.c.u.o.d + @Nullable + public String c() { + return this.f1769b; + } + + @Override // b.i.c.u.o.d + @Nullable + public String d() { + return this.h; + } + + @Override // b.i.c.u.o.d + @Nullable + public String e() { + return this.e; + } + + public boolean equals(Object obj) { + String str; + String str2; + if (obj == this) { + return true; + } + if (!(obj instanceof d)) { + return false; + } + d dVar = (d) obj; + String str3 = this.f1769b; + if (str3 != null ? str3.equals(dVar.c()) : dVar.c() == null) { + if (this.c.equals(dVar.f()) && ((str = this.d) != null ? str.equals(dVar.a()) : dVar.a() == null) && ((str2 = this.e) != null ? str2.equals(dVar.e()) : dVar.e() == null) && this.f == dVar.b() && this.g == dVar.g()) { + String str4 = this.h; + if (str4 == null) { + if (dVar.d() == null) { + return true; + } + } else if (str4.equals(dVar.d())) { + return true; + } + } + } + return false; + } + + @Override // b.i.c.u.o.d + @NonNull + public c.a f() { + return this.c; + } + + @Override // b.i.c.u.o.d + public long g() { + return this.g; + } + + public int hashCode() { + String str = this.f1769b; + int i = 0; + int hashCode = ((((str == null ? 0 : str.hashCode()) ^ 1000003) * 1000003) ^ this.c.hashCode()) * 1000003; + String str2 = this.d; + int hashCode2 = (hashCode ^ (str2 == null ? 0 : str2.hashCode())) * 1000003; + String str3 = this.e; + int hashCode3 = str3 == null ? 0 : str3.hashCode(); + long j = this.f; + long j2 = this.g; + int i2 = (((((hashCode2 ^ hashCode3) * 1000003) ^ ((int) (j ^ (j >>> 32)))) * 1000003) ^ ((int) (j2 ^ (j2 >>> 32)))) * 1000003; + String str4 = this.h; + if (str4 != null) { + i = str4.hashCode(); + } + return i2 ^ i; + } + + @Override // b.i.c.u.o.d + public d.a k() { + return new b(this, null); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("PersistedInstallationEntry{firebaseInstallationId="); + R.append(this.f1769b); + R.append(", registrationStatus="); + R.append(this.c); + R.append(", authToken="); + R.append(this.d); + R.append(", refreshToken="); + R.append(this.e); + R.append(", expiresInSecs="); + R.append(this.f); + R.append(", tokenCreationEpochInSecs="); + R.append(this.g); + R.append(", fisError="); + return b.d.b.a.a.H(R, this.h, "}"); + } +} diff --git a/app/src/main/java/b/i/c/u/o/b.java b/app/src/main/java/b/i/c/u/o/b.java new file mode 100644 index 0000000000..b90929fe14 --- /dev/null +++ b/app/src/main/java/b/i/c/u/o/b.java @@ -0,0 +1,75 @@ +package b.i.c.u.o; + +import android.content.SharedPreferences; +import android.util.Base64; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.c; +import java.security.KeyFactory; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.security.PublicKey; +import java.security.spec.InvalidKeySpecException; +import java.security.spec.X509EncodedKeySpec; +/* compiled from: IidStore */ +public class b { + public static final String[] a = {"*", "FCM", "GCM", ""}; + @GuardedBy("iidPrefs") + + /* renamed from: b reason: collision with root package name */ + public final SharedPreferences f1771b; + public final String c; + + /* JADX WARNING: Code restructure failed: missing block: B:9:0x0046, code lost: + if (r0.isEmpty() != false) goto L_0x0048; + */ + public b(@NonNull c cVar) { + cVar.a(); + this.f1771b = cVar.d.getSharedPreferences("com.google.android.gms.appid", 0); + cVar.a(); + String str = cVar.f.e; + if (str == null) { + cVar.a(); + str = cVar.f.f1640b; + if (str.startsWith("1:") || str.startsWith("2:")) { + String[] split = str.split(":"); + if (split.length == 4) { + str = split[1]; + } + str = null; + } + } + this.c = str; + } + + @Nullable + public final String a() { + PublicKey publicKey; + synchronized (this.f1771b) { + String str = null; + String string = this.f1771b.getString("|S||P|", null); + if (string == null) { + return null; + } + try { + publicKey = KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(Base64.decode(string, 8))); + } catch (IllegalArgumentException | NoSuchAlgorithmException | InvalidKeySpecException e) { + Log.w("ContentValues", "Invalid key stored " + e); + publicKey = null; + } + if (publicKey == null) { + return null; + } + try { + byte[] digest = MessageDigest.getInstance("SHA1").digest(publicKey.getEncoded()); + digest[0] = (byte) (((digest[0] & 15) + 112) & 255); + str = Base64.encodeToString(digest, 0, 8, 11); + } catch (NoSuchAlgorithmException unused) { + Log.w("ContentValues", "Unexpected error, device missing required algorithms"); + } + return str; + } + } +} diff --git a/app/src/main/java/b/i/c/u/o/c.java b/app/src/main/java/b/i/c/u/o/c.java new file mode 100644 index 0000000000..155ec6f9f1 --- /dev/null +++ b/app/src/main/java/b/i/c/u/o/c.java @@ -0,0 +1,109 @@ +package b.i.c.u.o; + +import androidx.annotation.NonNull; +import b.i.c.u.o.a; +import com.adjust.sdk.Constants; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: PersistedInstallation */ +public class c { + public final File a; + @NonNull + + /* renamed from: b reason: collision with root package name */ + public final b.i.c.c f1772b; + + /* compiled from: PersistedInstallation */ + public enum a { + ATTEMPT_MIGRATION, + NOT_GENERATED, + UNREGISTERED, + REGISTERED, + REGISTER_ERROR + } + + public c(@NonNull b.i.c.c cVar) { + cVar.a(); + File filesDir = cVar.d.getFilesDir(); + StringBuilder R = b.d.b.a.a.R("PersistedInstallation."); + R.append(cVar.c()); + R.append(".json"); + this.a = new File(filesDir, R.toString()); + this.f1772b = cVar; + } + + @NonNull + public d a(@NonNull d dVar) { + try { + JSONObject jSONObject = new JSONObject(); + jSONObject.put("Fid", dVar.c()); + jSONObject.put("Status", dVar.f().ordinal()); + jSONObject.put("AuthToken", dVar.a()); + jSONObject.put("RefreshToken", dVar.e()); + jSONObject.put("TokenCreationEpochInSecs", dVar.g()); + jSONObject.put("ExpiresInSecs", dVar.b()); + jSONObject.put("FisError", dVar.d()); + b.i.c.c cVar = this.f1772b; + cVar.a(); + File createTempFile = File.createTempFile("PersistedInstallation", "tmp", cVar.d.getFilesDir()); + FileOutputStream fileOutputStream = new FileOutputStream(createTempFile); + fileOutputStream.write(jSONObject.toString().getBytes(Constants.ENCODING)); + fileOutputStream.close(); + if (createTempFile.renameTo(this.a)) { + return dVar; + } + throw new IOException("unable to rename the tmpfile to PersistedInstallation"); + } catch (IOException | JSONException unused) { + } + } + + @NonNull + public d b() { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + byte[] bArr = new byte[16384]; + FileInputStream fileInputStream = new FileInputStream(this.a); + while (true) { + try { + int read = fileInputStream.read(bArr, 0, 16384); + if (read < 0) { + break; + } + byteArrayOutputStream.write(bArr, 0, read); + } catch (Throwable unused) { + } + } + JSONObject jSONObject = new JSONObject(byteArrayOutputStream.toString()); + try { + fileInputStream.close(); + } catch (IOException | JSONException unused2) { + jSONObject = new JSONObject(); + } + String optString = jSONObject.optString("Fid", null); + a aVar = a.ATTEMPT_MIGRATION; + int optInt = jSONObject.optInt("Status", 0); + String optString2 = jSONObject.optString("AuthToken", null); + String optString3 = jSONObject.optString("RefreshToken", null); + long optLong = jSONObject.optLong("TokenCreationEpochInSecs", 0); + long optLong2 = jSONObject.optLong("ExpiresInSecs", 0); + String optString4 = jSONObject.optString("FisError", null); + int i = d.a; + a.b bVar = new a.b(); + bVar.d(0); + bVar.b(aVar); + bVar.c(0); + bVar.a = optString; + bVar.b(a.values()[optInt]); + bVar.c = optString2; + bVar.d = optString3; + bVar.d(optLong); + bVar.c(optLong2); + bVar.g = optString4; + return bVar.a(); + throw th; + } +} diff --git a/app/src/main/java/b/i/c/u/o/d.java b/app/src/main/java/b/i/c/u/o/d.java new file mode 100644 index 0000000000..6064cef9a4 --- /dev/null +++ b/app/src/main/java/b/i/c/u/o/d.java @@ -0,0 +1,70 @@ +package b.i.c.u.o; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.u.o.c; +import com.google.auto.value.AutoValue; +/* compiled from: PersistedInstallationEntry */ +@AutoValue +public abstract class d { + public static final /* synthetic */ int a = 0; + + /* compiled from: PersistedInstallationEntry */ + @AutoValue.Builder + public static abstract class a { + @NonNull + public abstract d a(); + + @NonNull + public abstract a b(@NonNull c.a aVar); + } + + static { + Long l = 0L; + String str = l == null ? " expiresInSecs" : ""; + if (l == null) { + str = b.d.b.a.a.v(str, " tokenCreationEpochInSecs"); + } + if (str.isEmpty()) { + l.longValue(); + l.longValue(); + return; + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + + @Nullable + public abstract String a(); + + public abstract long b(); + + @Nullable + public abstract String c(); + + @Nullable + public abstract String d(); + + @Nullable + public abstract String e(); + + @NonNull + public abstract c.a f(); + + public abstract long g(); + + public boolean h() { + return f() == c.a.REGISTER_ERROR; + } + + public boolean i() { + c.a aVar = ((a) this).c; + return aVar == c.a.NOT_GENERATED || aVar == c.a.ATTEMPT_MIGRATION; + } + + public boolean j() { + return f() == c.a.REGISTERED; + } + + @NonNull + public abstract a k(); +} diff --git a/app/src/main/java/b/i/c/u/p/a.java b/app/src/main/java/b/i/c/u/p/a.java new file mode 100644 index 0000000000..baf3d58eb6 --- /dev/null +++ b/app/src/main/java/b/i/c/u/p/a.java @@ -0,0 +1,115 @@ +package b.i.c.u.p; + +import androidx.annotation.Nullable; +import b.i.c.u.p.d; +/* compiled from: AutoValue_InstallationResponse */ +public final class a extends d { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1773b; + public final String c; + public final f d; + public final d.a e; + + public a(String str, String str2, String str3, f fVar, d.a aVar, C0146a aVar2) { + this.a = str; + this.f1773b = str2; + this.c = str3; + this.d = fVar; + this.e = aVar; + } + + @Override // b.i.c.u.p.d + @Nullable + public f a() { + return this.d; + } + + @Override // b.i.c.u.p.d + @Nullable + public String b() { + return this.f1773b; + } + + @Override // b.i.c.u.p.d + @Nullable + public String c() { + return this.c; + } + + @Override // b.i.c.u.p.d + @Nullable + public d.a d() { + return this.e; + } + + @Override // b.i.c.u.p.d + @Nullable + public String e() { + return this.a; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof d)) { + return false; + } + d dVar = (d) obj; + String str = this.a; + if (str != null ? str.equals(dVar.e()) : dVar.e() == null) { + String str2 = this.f1773b; + if (str2 != null ? str2.equals(dVar.b()) : dVar.b() == null) { + String str3 = this.c; + if (str3 != null ? str3.equals(dVar.c()) : dVar.c() == null) { + f fVar = this.d; + if (fVar != null ? fVar.equals(dVar.a()) : dVar.a() == null) { + d.a aVar = this.e; + if (aVar == null) { + if (dVar.d() == null) { + return true; + } + } else if (aVar.equals(dVar.d())) { + return true; + } + } + } + } + } + return false; + } + + public int hashCode() { + String str = this.a; + int i = 0; + int hashCode = ((str == null ? 0 : str.hashCode()) ^ 1000003) * 1000003; + String str2 = this.f1773b; + int hashCode2 = (hashCode ^ (str2 == null ? 0 : str2.hashCode())) * 1000003; + String str3 = this.c; + int hashCode3 = (hashCode2 ^ (str3 == null ? 0 : str3.hashCode())) * 1000003; + f fVar = this.d; + int hashCode4 = (hashCode3 ^ (fVar == null ? 0 : fVar.hashCode())) * 1000003; + d.a aVar = this.e; + if (aVar != null) { + i = aVar.hashCode(); + } + return hashCode4 ^ i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("InstallationResponse{uri="); + R.append(this.a); + R.append(", fid="); + R.append(this.f1773b); + R.append(", refreshToken="); + R.append(this.c); + R.append(", authToken="); + R.append(this.d); + R.append(", responseCode="); + R.append(this.e); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/c/u/p/b.java b/app/src/main/java/b/i/c/u/p/b.java new file mode 100644 index 0000000000..999e54f5b2 --- /dev/null +++ b/app/src/main/java/b/i/c/u/p/b.java @@ -0,0 +1,110 @@ +package b.i.c.u.p; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.u.p.f; +/* compiled from: AutoValue_TokenResult */ +public final class b extends f { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final long f1774b; + public final f.b c; + + /* compiled from: AutoValue_TokenResult */ + /* renamed from: b.i.c.u.p.b$b reason: collision with other inner class name */ + public static final class C0147b extends f.a { + public String a; + + /* renamed from: b reason: collision with root package name */ + public Long f1775b; + public f.b c; + + @Override // b.i.c.u.p.f.a + public f a() { + String str = this.f1775b == null ? " tokenExpirationTimestamp" : ""; + if (str.isEmpty()) { + return new b(this.a, this.f1775b.longValue(), this.c, null); + } + throw new IllegalStateException(b.d.b.a.a.v("Missing required properties:", str)); + } + + @Override // b.i.c.u.p.f.a + public f.a b(long j) { + this.f1775b = Long.valueOf(j); + return this; + } + } + + public b(String str, long j, f.b bVar, a aVar) { + this.a = str; + this.f1774b = j; + this.c = bVar; + } + + @Override // b.i.c.u.p.f + @Nullable + public f.b b() { + return this.c; + } + + @Override // b.i.c.u.p.f + @Nullable + public String c() { + return this.a; + } + + @Override // b.i.c.u.p.f + @NonNull + public long d() { + return this.f1774b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof f)) { + return false; + } + f fVar = (f) obj; + String str = this.a; + if (str != null ? str.equals(fVar.c()) : fVar.c() == null) { + if (this.f1774b == fVar.d()) { + f.b bVar = this.c; + if (bVar == null) { + if (fVar.b() == null) { + return true; + } + } else if (bVar.equals(fVar.b())) { + return true; + } + } + } + return false; + } + + public int hashCode() { + String str = this.a; + int i = 0; + int hashCode = str == null ? 0 : str.hashCode(); + long j = this.f1774b; + int i2 = (((hashCode ^ 1000003) * 1000003) ^ ((int) (j ^ (j >>> 32)))) * 1000003; + f.b bVar = this.c; + if (bVar != null) { + i = bVar.hashCode(); + } + return i2 ^ i; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("TokenResult{token="); + R.append(this.a); + R.append(", tokenExpirationTimestamp="); + R.append(this.f1774b); + R.append(", responseCode="); + R.append(this.c); + R.append("}"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/i/c/u/p/c.java b/app/src/main/java/b/i/c/u/p/c.java new file mode 100644 index 0000000000..f25bd548a1 --- /dev/null +++ b/app/src/main/java/b/i/c/u/p/c.java @@ -0,0 +1,258 @@ +package b.i.c.u.p; + +import android.content.Context; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.pm.Signature; +import android.text.TextUtils; +import android.util.JsonReader; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.p.b; +import b.i.c.r.d; +import b.i.c.t.a; +import b.i.c.u.p.b; +import b.i.c.u.p.d; +import b.i.c.u.p.f; +import b.i.c.x.h; +import com.adjust.sdk.Constants; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.restapi.RestAPIBuilder; +import com.google.firebase.installations.FirebaseInstallationsException; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.net.URLConnection; +import java.nio.charset.Charset; +import java.security.MessageDigest; +import java.util.regex.Pattern; +import java.util.zip.GZIPOutputStream; +import org.json.JSONException; +import org.json.JSONObject; +/* compiled from: FirebaseInstallationServiceClient */ +public class c { + public static final Pattern a = Pattern.compile("[0-9]+s"); + + /* renamed from: b reason: collision with root package name */ + public static final Charset f1776b = Charset.forName(Constants.ENCODING); + public final Context c; + public final a d; + public final a e; + public final e f = new e(); + + public c(@NonNull Context context, @NonNull a aVar, @NonNull a aVar2) { + this.c = context; + this.d = aVar; + this.e = aVar2; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0072: APUT (r0v1 java.lang.Object[]), (2 ??[int, float, short, byte, char]), (r11v1 java.lang.String) */ + public static void b(HttpURLConnection httpURLConnection, @Nullable String str, @NonNull String str2, @NonNull String str3) { + InputStream errorStream = httpURLConnection.getErrorStream(); + String str4 = null; + if (errorStream != null) { + BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(errorStream, f1776b)); + try { + StringBuilder sb = new StringBuilder(); + while (true) { + String readLine = bufferedReader.readLine(); + if (readLine == null) { + break; + } + sb.append(readLine); + sb.append('\n'); + } + str4 = String.format("Error when communicating with the Firebase Installations server API. HTTP response: [%d %s: %s]", Integer.valueOf(httpURLConnection.getResponseCode()), httpURLConnection.getResponseMessage(), sb); + } catch (IOException unused) { + } catch (Throwable th) { + try { + bufferedReader.close(); + } catch (IOException unused2) { + } + throw th; + } + try { + bufferedReader.close(); + } catch (IOException unused3) { + } + } + if (!TextUtils.isEmpty(str4)) { + Log.w("Firebase-Installations", str4); + Object[] objArr = new Object[3]; + objArr[0] = str2; + objArr[1] = str3; + objArr[2] = TextUtils.isEmpty(str) ? "" : b.d.b.a.a.v(", ", str); + Log.w("Firebase-Installations", String.format("Firebase options used while communicating with Firebase server APIs: %s, %s%s", objArr)); + } + } + + public static long d(String str) { + b.c.a.a0.d.o(a.matcher(str).matches(), "Invalid Expiration Timestamp."); + if (str == null || str.length() == 0) { + return 0; + } + return Long.parseLong(str.substring(0, str.length() - 1)); + } + + public static void i(URLConnection uRLConnection, byte[] bArr) throws IOException { + OutputStream outputStream = uRLConnection.getOutputStream(); + if (outputStream != null) { + GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream); + try { + gZIPOutputStream.write(bArr); + } finally { + try { + gZIPOutputStream.close(); + outputStream.close(); + } catch (IOException unused) { + } + } + } else { + throw new IOException("Cannot send request to FIS servers. No OutputStream available."); + } + } + + public final URL a(String str) throws FirebaseInstallationsException { + try { + return new URL(String.format("https://%s/%s/%s", "firebaseinstallations.googleapis.com", "v1", str)); + } catch (MalformedURLException e) { + throw new FirebaseInstallationsException(e.getMessage(), FirebaseInstallationsException.a.UNAVAILABLE); + } + } + + public final HttpURLConnection c(URL url, String str) throws FirebaseInstallationsException { + MessageDigest a2; + d.a a3; + try { + HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection(); + httpURLConnection.setConnectTimeout(10000); + httpURLConnection.setUseCaches(false); + httpURLConnection.setReadTimeout(10000); + httpURLConnection.addRequestProperty("Content-Type", RestAPIBuilder.CONTENT_TYPE_JSON); + httpURLConnection.addRequestProperty("Accept", RestAPIBuilder.CONTENT_TYPE_JSON); + httpURLConnection.addRequestProperty("Content-Encoding", "gzip"); + httpURLConnection.addRequestProperty("Cache-Control", "no-cache"); + httpURLConnection.addRequestProperty("X-Android-Package", this.c.getPackageName()); + if (!(this.e.get() == null || this.d.get() == null || (a3 = this.e.get().a("fire-installations-id")) == d.a.NONE)) { + httpURLConnection.addRequestProperty("x-firebase-client", this.d.get().getUserAgent()); + httpURLConnection.addRequestProperty("x-firebase-client-log-type", Integer.toString(a3.f())); + } + String str2 = null; + try { + Context context = this.c; + PackageInfo packageInfo = b.a(context).a.getPackageManager().getPackageInfo(context.getPackageName(), 64); + Signature[] signatureArr = packageInfo.signatures; + byte[] digest = (signatureArr == null || signatureArr.length != 1 || (a2 = b.i.a.f.e.o.a.a("SHA1")) == null) ? null : a2.digest(packageInfo.signatures[0].toByteArray()); + if (digest == null) { + Log.e("ContentValues", "Could not get fingerprint hash for package: " + this.c.getPackageName()); + } else { + str2 = b.i.a.f.e.o.d.a(digest, false); + } + } catch (PackageManager.NameNotFoundException e) { + StringBuilder R = b.d.b.a.a.R("No such package: "); + R.append(this.c.getPackageName()); + Log.e("ContentValues", R.toString(), e); + } + httpURLConnection.addRequestProperty("X-Android-Cert", str2); + httpURLConnection.addRequestProperty("x-goog-api-key", str); + return httpURLConnection; + } catch (IOException unused) { + throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.", FirebaseInstallationsException.a.UNAVAILABLE); + } + } + + public final d e(HttpURLConnection httpURLConnection) throws AssertionError, IOException { + InputStream inputStream = httpURLConnection.getInputStream(); + JsonReader jsonReader = new JsonReader(new InputStreamReader(inputStream, f1776b)); + f.a a2 = f.a(); + jsonReader.beginObject(); + String str = null; + String str2 = null; + String str3 = null; + f fVar = null; + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + if (nextName.equals(ModelAuditLogEntry.CHANGE_KEY_NAME)) { + str = jsonReader.nextString(); + } else if (nextName.equals("fid")) { + str2 = jsonReader.nextString(); + } else if (nextName.equals("refreshToken")) { + str3 = jsonReader.nextString(); + } else if (nextName.equals("authToken")) { + jsonReader.beginObject(); + while (jsonReader.hasNext()) { + String nextName2 = jsonReader.nextName(); + if (nextName2.equals("token")) { + ((b.C0147b) a2).a = jsonReader.nextString(); + } else if (nextName2.equals("expiresIn")) { + a2.b(d(jsonReader.nextString())); + } else { + jsonReader.skipValue(); + } + } + fVar = a2.a(); + jsonReader.endObject(); + } else { + jsonReader.skipValue(); + } + } + jsonReader.endObject(); + jsonReader.close(); + inputStream.close(); + return new a(str, str2, str3, fVar, d.a.OK, null); + } + + public final f f(HttpURLConnection httpURLConnection) throws AssertionError, IOException { + InputStream inputStream = httpURLConnection.getInputStream(); + JsonReader jsonReader = new JsonReader(new InputStreamReader(inputStream, f1776b)); + f.a a2 = f.a(); + jsonReader.beginObject(); + while (jsonReader.hasNext()) { + String nextName = jsonReader.nextName(); + if (nextName.equals("token")) { + ((b.C0147b) a2).a = jsonReader.nextString(); + } else if (nextName.equals("expiresIn")) { + a2.b(d(jsonReader.nextString())); + } else { + jsonReader.skipValue(); + } + } + jsonReader.endObject(); + jsonReader.close(); + inputStream.close(); + b.C0147b bVar = (b.C0147b) a2; + bVar.c = f.b.OK; + return bVar.a(); + } + + public final void g(HttpURLConnection httpURLConnection, @Nullable String str, @NonNull String str2) throws IOException { + try { + JSONObject jSONObject = new JSONObject(); + jSONObject.put("fid", str); + jSONObject.put("appId", str2); + jSONObject.put("authVersion", "FIS_v2"); + jSONObject.put("sdkVersion", "a:16.3.4"); + i(httpURLConnection, jSONObject.toString().getBytes(Constants.ENCODING)); + } catch (JSONException e) { + throw new IllegalStateException(e); + } + } + + public final void h(HttpURLConnection httpURLConnection) throws IOException { + try { + JSONObject jSONObject = new JSONObject(); + jSONObject.put("sdkVersion", "a:16.3.4"); + JSONObject jSONObject2 = new JSONObject(); + jSONObject2.put("installation", jSONObject); + i(httpURLConnection, jSONObject2.toString().getBytes(Constants.ENCODING)); + } catch (JSONException e) { + throw new IllegalStateException(e); + } + } +} diff --git a/app/src/main/java/b/i/c/u/p/d.java b/app/src/main/java/b/i/c/u/p/d.java new file mode 100644 index 0000000000..b9a50e9fa4 --- /dev/null +++ b/app/src/main/java/b/i/c/u/p/d.java @@ -0,0 +1,29 @@ +package b.i.c.u.p; + +import androidx.annotation.Nullable; +import com.google.auto.value.AutoValue; +/* compiled from: InstallationResponse */ +@AutoValue +public abstract class d { + + /* compiled from: InstallationResponse */ + public enum a { + OK, + BAD_CONFIG + } + + @Nullable + public abstract f a(); + + @Nullable + public abstract String b(); + + @Nullable + public abstract String c(); + + @Nullable + public abstract a d(); + + @Nullable + public abstract String e(); +} diff --git a/app/src/main/java/b/i/c/u/p/e.java b/app/src/main/java/b/i/c/u/p/e.java new file mode 100644 index 0000000000..60ea2f5da4 --- /dev/null +++ b/app/src/main/java/b/i/c/u/p/e.java @@ -0,0 +1,48 @@ +package b.i.c.u.p; + +import androidx.annotation.GuardedBy; +import b.i.c.u.n; +import java.util.Objects; +import java.util.concurrent.TimeUnit; +/* compiled from: RequestLimiter */ +public class e { + public static final long a = TimeUnit.HOURS.toMillis(24); + + /* renamed from: b reason: collision with root package name */ + public static final long f1777b = TimeUnit.MINUTES.toMillis(30); + public final n c = n.c(); + @GuardedBy("this") + public long d; + @GuardedBy("this") + public int e; + + public synchronized boolean a() { + return this.e == 0 || this.c.a() > this.d; + } + + public synchronized void b(int i) { + long j; + boolean z2 = false; + if ((i >= 200 && i < 300) || i == 401 || i == 404) { + synchronized (this) { + this.e = 0; + } + return; + } + this.e++; + synchronized (this) { + if (i == 429 || (i >= 500 && i < 600)) { + z2 = true; + } + if (!z2) { + j = a; + } else { + double pow = Math.pow(2.0d, (double) this.e); + Objects.requireNonNull(this.c); + j = (long) Math.min(pow + ((double) ((long) (Math.random() * 1000.0d))), (double) f1777b); + } + this.d = this.c.a() + j; + } + this.d = this.c.a() + j; + } +} diff --git a/app/src/main/java/b/i/c/u/p/f.java b/app/src/main/java/b/i/c/u/p/f.java new file mode 100644 index 0000000000..49e4a8397d --- /dev/null +++ b/app/src/main/java/b/i/c/u/p/f.java @@ -0,0 +1,43 @@ +package b.i.c.u.p; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.c.u.p.b; +import com.google.auto.value.AutoValue; +/* compiled from: TokenResult */ +@AutoValue +public abstract class f { + + /* compiled from: TokenResult */ + @AutoValue.Builder + public static abstract class a { + @NonNull + public abstract f a(); + + @NonNull + public abstract a b(long j); + } + + /* compiled from: TokenResult */ + public enum b { + OK, + BAD_CONFIG, + AUTH_ERROR + } + + @NonNull + public static a a() { + b.C0147b bVar = new b.C0147b(); + bVar.b(0); + return bVar; + } + + @Nullable + public abstract b b(); + + @Nullable + public abstract String c(); + + @NonNull + public abstract long d(); +} diff --git a/app/src/main/java/b/i/c/u/q/a.java b/app/src/main/java/b/i/c/u/q/a.java new file mode 100644 index 0000000000..6cc82f67c4 --- /dev/null +++ b/app/src/main/java/b/i/c/u/q/a.java @@ -0,0 +1,5 @@ +package b.i.c.u.q; +/* compiled from: SystemClock */ +public class a { + public static a a; +} diff --git a/app/src/main/java/b/i/c/v/a.java b/app/src/main/java/b/i/c/v/a.java new file mode 100644 index 0000000000..ddea31a615 --- /dev/null +++ b/app/src/main/java/b/i/c/v/a.java @@ -0,0 +1,44 @@ +package b.i.c.v; + +import android.content.Context; +import android.content.SharedPreferences; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageManager; +import android.os.Build; +import android.os.Bundle; +import androidx.core.content.ContextCompat; +import b.i.c.q.c; +/* compiled from: DataCollectionConfigStorage */ +public class a { + public final Context a; + + /* renamed from: b reason: collision with root package name */ + public final SharedPreferences f1778b; + public final c c; + public boolean d; + + public a(Context context, String str, c cVar) { + boolean z2; + ApplicationInfo applicationInfo; + Bundle bundle; + context = Build.VERSION.SDK_INT >= 24 ? ContextCompat.createDeviceProtectedStorageContext(context) : context; + this.a = context; + SharedPreferences sharedPreferences = context.getSharedPreferences("com.google.firebase.common.prefs:" + str, 0); + this.f1778b = sharedPreferences; + this.c = cVar; + boolean z3 = true; + if (sharedPreferences.contains("firebase_data_collection_default_enabled")) { + z2 = sharedPreferences.getBoolean("firebase_data_collection_default_enabled", true); + } else { + try { + PackageManager packageManager = context.getPackageManager(); + if (!(packageManager == null || (applicationInfo = packageManager.getApplicationInfo(context.getPackageName(), 128)) == null || (bundle = applicationInfo.metaData) == null || !bundle.containsKey("firebase_data_collection_default_enabled"))) { + z3 = applicationInfo.metaData.getBoolean("firebase_data_collection_default_enabled"); + } + } catch (PackageManager.NameNotFoundException unused) { + } + z2 = z3; + } + this.d = z2; + } +} diff --git a/app/src/main/java/b/i/c/w/a.java b/app/src/main/java/b/i/c/w/a.java new file mode 100644 index 0000000000..15a0e2d171 --- /dev/null +++ b/app/src/main/java/b/i/c/w/a.java @@ -0,0 +1,46 @@ +package b.i.c.w; + +import android.annotation.TargetApi; +import android.app.PendingIntent; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.content.res.Resources; +import android.graphics.drawable.AdaptiveIconDrawable; +import android.os.Build; +import android.os.SystemClock; +import android.util.Log; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import java.util.concurrent.atomic.AtomicInteger; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class a { + public static final AtomicInteger a = new AtomicInteger((int) SystemClock.elapsedRealtime()); + + public static PendingIntent a(Context context, Intent intent) { + return PendingIntent.getBroadcast(context, a.incrementAndGet(), new Intent("com.google.firebase.MESSAGING_EVENT").setComponent(new ComponentName(context, "com.google.firebase.iid.FirebaseInstanceIdReceiver")).putExtra("wrapped_intent", intent), BasicMeasure.EXACTLY); + } + + @TargetApi(26) + public static boolean b(Resources resources, int i) { + if (Build.VERSION.SDK_INT != 26) { + return true; + } + try { + if (!(resources.getDrawable(i, null) instanceof AdaptiveIconDrawable)) { + return true; + } + StringBuilder sb = new StringBuilder(77); + sb.append("Adaptive icons cannot be used in notifications. Ignoring icon id: "); + sb.append(i); + Log.e("FirebaseMessaging", sb.toString()); + return false; + } catch (Resources.NotFoundException unused) { + StringBuilder sb2 = new StringBuilder(66); + sb2.append("Couldn't find resource "); + sb2.append(i); + sb2.append(", treating it as an invalid icon"); + Log.e("FirebaseMessaging", sb2.toString()); + return false; + } + } +} diff --git a/app/src/main/java/b/i/c/w/b.java b/app/src/main/java/b/i/c/w/b.java new file mode 100644 index 0000000000..fea66c3ec8 --- /dev/null +++ b/app/src/main/java/b/i/c/w/b.java @@ -0,0 +1,7 @@ +package b.i.c.w; + +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class b { + public static final long a = TimeUnit.MINUTES.toMillis(3); +} diff --git a/app/src/main/java/b/i/c/w/c.java b/app/src/main/java/b/i/c/w/c.java new file mode 100644 index 0000000000..d4b788da86 --- /dev/null +++ b/app/src/main/java/b/i/c/w/c.java @@ -0,0 +1,1408 @@ +package b.i.c.w; + +import android.app.ActivityManager; +import android.app.KeyguardManager; +import android.app.NotificationChannel; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageManager; +import android.content.res.Resources; +import android.graphics.Bitmap; +import android.graphics.Color; +import android.media.RingtoneManager; +import android.net.Uri; +import android.os.Build; +import android.os.Bundle; +import android.os.Process; +import android.os.SystemClock; +import android.text.TextUtils; +import android.util.Log; +import androidx.appcompat.widget.ActivityChooserModel; +import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure; +import androidx.core.app.NotificationCompat; +import androidx.core.content.ContextCompat; +import b.d.b.a.a; +import b.i.a.f.e.o.f; +import com.google.android.gms.tasks.Task; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Executor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import java.util.concurrent.atomic.AtomicInteger; +import org.json.JSONArray; +import org.json.JSONException; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public class c { + public final Executor a; + + /* renamed from: b reason: collision with root package name */ + public final Context f1779b; + public final r c; + + public c(Context context, r rVar, Executor executor) { + this.a = executor; + this.f1779b = context; + this.c = rVar; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x04cc: APUT (r9v4 int[]), (0 ??[int, short, byte, char]), (r8v21 int) */ + /* JADX WARNING: Code restructure failed: missing block: B:36:0x00b2, code lost: + if (r6 != null) goto L_0x00c5; + */ + /* JADX WARNING: Removed duplicated region for block: B:105:0x0249 */ + /* JADX WARNING: Removed duplicated region for block: B:108:0x0258 */ + /* JADX WARNING: Removed duplicated region for block: B:109:0x0266 */ + /* JADX WARNING: Removed duplicated region for block: B:123:0x02a3 */ + /* JADX WARNING: Removed duplicated region for block: B:124:0x02a6 */ + /* JADX WARNING: Removed duplicated region for block: B:142:0x0321 */ + /* JADX WARNING: Removed duplicated region for block: B:143:0x0323 */ + /* JADX WARNING: Removed duplicated region for block: B:145:0x0338 */ + /* JADX WARNING: Removed duplicated region for block: B:148:0x0347 A[SYNTHETIC, Splitter:B:148:0x0347] */ + /* JADX WARNING: Removed duplicated region for block: B:154:0x0365 A[SYNTHETIC, Splitter:B:154:0x0365] */ + /* JADX WARNING: Removed duplicated region for block: B:160:0x0376 */ + /* JADX WARNING: Removed duplicated region for block: B:163:0x0399 */ + /* JADX WARNING: Removed duplicated region for block: B:166:0x03a5 */ + /* JADX WARNING: Removed duplicated region for block: B:173:0x03c6 */ + /* JADX WARNING: Removed duplicated region for block: B:176:0x03d8 */ + /* JADX WARNING: Removed duplicated region for block: B:183:0x03fa */ + /* JADX WARNING: Removed duplicated region for block: B:186:0x040a */ + /* JADX WARNING: Removed duplicated region for block: B:191:0x0424 */ + /* JADX WARNING: Removed duplicated region for block: B:194:0x0437 A[SYNTHETIC, Splitter:B:194:0x0437] */ + /* JADX WARNING: Removed duplicated region for block: B:200:0x045e */ + /* JADX WARNING: Removed duplicated region for block: B:203:0x0472 A[SYNTHETIC, Splitter:B:203:0x0472] */ + /* JADX WARNING: Removed duplicated region for block: B:215:0x04a7 */ + /* JADX WARNING: Removed duplicated region for block: B:218:0x04b7 */ + /* JADX WARNING: Removed duplicated region for block: B:235:0x0519 */ + /* JADX WARNING: Removed duplicated region for block: B:238:0x0531 */ + /* JADX WARNING: Removed duplicated region for block: B:241:0x053b */ + /* JADX WARNING: Removed duplicated region for block: B:244:0x054d */ + /* JADX WARNING: Removed duplicated region for block: B:246:0x0567 A[SYNTHETIC, Splitter:B:246:0x0567] */ + /* JADX WARNING: Removed duplicated region for block: B:256:0x05c1 */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x008b */ + /* JADX WARNING: Removed duplicated region for block: B:35:0x00b0 A[Catch:{ NameNotFoundException -> 0x00b5 }] */ + /* JADX WARNING: Removed duplicated region for block: B:42:0x00d8 A[SYNTHETIC, Splitter:B:42:0x00d8] */ + /* JADX WARNING: Removed duplicated region for block: B:63:0x0168 */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x0177 */ + /* JADX WARNING: Removed duplicated region for block: B:69:0x0192 */ + /* JADX WARNING: Removed duplicated region for block: B:94:0x01fc */ + /* JADX WARNING: Removed duplicated region for block: B:97:0x0209 */ + /* JADX WARNING: Removed duplicated region for block: B:98:0x020b */ + public boolean a() { + boolean z2; + o oVar; + Context context; + r rVar; + Bundle bundle; + PackageManager packageManager; + String d; + String d2; + String e; + int i; + String e2; + Uri uri; + String e3; + Intent intent; + PendingIntent pendingIntent; + PendingIntent a; + String e4; + Integer num; + String e5; + Integer b2; + Integer b3; + Integer b4; + String e6; + Long l; + JSONArray c; + long[] jArr; + JSONArray c2; + int[] iArr; + String e7; + int i2; + ApplicationInfo applicationInfo; + if (this.c.a("gcm.n.noui")) { + return true; + } + if (!((KeyguardManager) this.f1779b.getSystemService("keyguard")).inKeyguardRestrictedInputMode()) { + int myPid = Process.myPid(); + List runningAppProcesses = ((ActivityManager) this.f1779b.getSystemService(ActivityChooserModel.ATTRIBUTE_ACTIVITY)).getRunningAppProcesses(); + if (runningAppProcesses != null) { + Iterator it = runningAppProcesses.iterator(); + while (true) { + if (!it.hasNext()) { + break; + } + ActivityManager.RunningAppProcessInfo next = it.next(); + if (next.pid == myPid) { + if (next.importance == 100) { + z2 = true; + } + } + } + } + } + z2 = false; + if (z2) { + return false; + } + String e8 = this.c.e("gcm.n.image"); + if (!TextUtils.isEmpty(e8)) { + try { + oVar = new o(new URL(e8)); + } catch (MalformedURLException unused) { + String valueOf = String.valueOf(e8); + Log.w("FirebaseMessaging", valueOf.length() != 0 ? "Not downloading image, bad URL: ".concat(valueOf) : new String("Not downloading image, bad URL: ")); + } + if (oVar != null) { + oVar.k = f.n(this.a, new n(oVar)); + } + context = this.f1779b; + rVar = this.c; + AtomicInteger atomicInteger = a.a; + applicationInfo = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128); + if (applicationInfo != null) { + bundle = applicationInfo.metaData; + } + bundle = Bundle.EMPTY; + String packageName = context.getPackageName(); + String e9 = rVar.e("gcm.n.android_channel_id"); + if (Build.VERSION.SDK_INT >= 26) { + try { + if (context.getPackageManager().getApplicationInfo(context.getPackageName(), 0).targetSdkVersion >= 26) { + NotificationManager notificationManager = (NotificationManager) context.getSystemService(NotificationManager.class); + if (!TextUtils.isEmpty(e9)) { + if (notificationManager.getNotificationChannel(e9) == null) { + a.g0(a.b(e9, 122), "Notification Channel requested (", e9, ") has not been created by the app. Manifest configuration, or default, value will be used.", "FirebaseMessaging"); + } + Resources resources = context.getResources(); + packageManager = context.getPackageManager(); + NotificationCompat.Builder builder = new NotificationCompat.Builder(context, e9); + d = rVar.d(resources, packageName, "gcm.n.title"); + if (!TextUtils.isEmpty(d)) { + builder.setContentTitle(d); + } + d2 = rVar.d(resources, packageName, "gcm.n.body"); + if (!TextUtils.isEmpty(d2)) { + builder.setContentText(d2); + builder.setStyle(new NotificationCompat.BigTextStyle().bigText(d2)); + } + e = rVar.e("gcm.n.icon"); + if (!TextUtils.isEmpty(e)) { + i = resources.getIdentifier(e, "drawable", packageName); + if ((i == 0 || !a.b(resources, i)) && ((i = resources.getIdentifier(e, "mipmap", packageName)) == 0 || !a.b(resources, i))) { + a.g0(a.b(e, 61), "Icon resource ", e, " not found. Notification will use default icon.", "FirebaseMessaging"); + } + builder.setSmallIcon(i); + e2 = rVar.e("gcm.n.sound2"); + if (TextUtils.isEmpty(e2)) { + e2 = rVar.e("gcm.n.sound"); + } + if (TextUtils.isEmpty(e2)) { + uri = null; + } else if ("default".equals(e2) || resources.getIdentifier(e2, "raw", packageName) == 0) { + uri = RingtoneManager.getDefaultUri(2); + } else { + StringBuilder sb = new StringBuilder(a.b(e2, a.b(packageName, 24))); + sb.append("android.resource://"); + sb.append(packageName); + sb.append("/raw/"); + sb.append(e2); + uri = Uri.parse(sb.toString()); + } + if (uri != null) { + builder.setSound(uri); + } + e3 = rVar.e("gcm.n.click_action"); + if (!TextUtils.isEmpty(e3)) { + intent = new Intent(e3); + intent.setPackage(packageName); + intent.setFlags(268435456); + } else { + String e10 = rVar.e("gcm.n.link_android"); + if (TextUtils.isEmpty(e10)) { + e10 = rVar.e("gcm.n.link"); + } + Uri parse = !TextUtils.isEmpty(e10) ? Uri.parse(e10) : null; + if (parse != null) { + intent = new Intent("android.intent.action.VIEW"); + intent.setPackage(packageName); + intent.setData(parse); + } else { + intent = packageManager.getLaunchIntentForPackage(packageName); + if (intent == null) { + Log.w("FirebaseMessaging", "No activity found to launch app"); + } + } + } + if (intent == null) { + pendingIntent = null; + } else { + intent.addFlags(67108864); + Bundle bundle2 = new Bundle(rVar.a); + for (String str : rVar.a.keySet()) { + if (str.startsWith("google.c.") || str.startsWith("gcm.n.") || str.startsWith("gcm.notification.")) { + bundle2.remove(str); + } + } + intent.putExtras(bundle2); + pendingIntent = PendingIntent.getActivity(context, a.a.incrementAndGet(), intent, BasicMeasure.EXACTLY); + if (rVar.a("google.c.a.e")) { + pendingIntent = a.a(context, new Intent("com.google.firebase.messaging.NOTIFICATION_OPEN").putExtras(rVar.g()).putExtra("pending_intent", pendingIntent)); + } + } + builder.setContentIntent(pendingIntent); + a = !rVar.a("google.c.a.e") ? null : a.a(context, new Intent("com.google.firebase.messaging.NOTIFICATION_DISMISS").putExtras(rVar.g())); + if (a != null) { + builder.setDeleteIntent(a); + } + e4 = rVar.e("gcm.n.color"); + if (!TextUtils.isEmpty(e4)) { + try { + num = Integer.valueOf(Color.parseColor(e4)); + } catch (IllegalArgumentException unused2) { + a.g0(a.b(e4, 56), "Color is invalid: ", e4, ". Notification will use default color.", "FirebaseMessaging"); + } + if (num != null) { + builder.setColor(num.intValue()); + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + builder.setTicker(e5); + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + if (b2.intValue() < -2 || b2.intValue() > 2) { + String valueOf2 = String.valueOf(b2); + a.g0(valueOf2.length() + 72, "notificationPriority is invalid ", valueOf2, ". Skipping setting notificationPriority.", "FirebaseMessaging"); + } + if (b2 != null) { + builder.setPriority(b2.intValue()); + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + if (b3.intValue() < -1 || b3.intValue() > 1) { + String valueOf3 = String.valueOf(b3); + a.g0(valueOf3.length() + 53, "visibility is invalid: ", valueOf3, ". Skipping setting visibility.", "NotificationParams"); + } + if (b3 != null) { + builder.setVisibility(b3.intValue()); + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + if (b4.intValue() < 0) { + String valueOf4 = String.valueOf(b4); + a.g0(valueOf4.length() + 67, "notificationCount is invalid: ", valueOf4, ". Skipping setting notificationCount.", "FirebaseMessaging"); + } + if (b4 != null) { + builder.setNumber(b4.intValue()); + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + try { + l = Long.valueOf(Long.parseLong(e6)); + } catch (NumberFormatException unused3) { + String h = r.h("gcm.n.event_time"); + a.o0(a.Q(a.b(e6, a.b(h, 38)), "Couldn't parse value of ", h, "(", e6), ") into a long", "NotificationParams"); + } + if (l != null) { + builder.setShowWhen(true); + builder.setWhen(l.longValue()); + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + try { + if (c.length() > 1) { + int length = c.length(); + jArr = new long[length]; + for (int i3 = 0; i3 < length; i3++) { + jArr[i3] = c.optLong(i3); + } + if (jArr != null) { + builder.setVibrate(jArr); + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + iArr = new int[3]; + try { + if (c2.length() == 3) { + int parseColor = Color.parseColor(c2.optString(0)); + if (parseColor != -16777216) { + iArr[0] = parseColor; + iArr[1] = c2.optInt(1); + iArr[2] = c2.optInt(2); + if (iArr != null) { + builder.setLights(iArr[0], iArr[1], iArr[2]); + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + a2 |= true; + } + if (rVar.a("gcm.n.default_light_settings")) { + boolean z3 = a2 ? 1 : 0; + char c3 = a2 ? 1 : 0; + char c4 = a2 ? 1 : 0; + a2 = z3 | true; + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + long uptimeMillis = SystemClock.uptimeMillis(); + StringBuilder sb2 = new StringBuilder(37); + sb2.append("FCM-Notification:"); + sb2.append(uptimeMillis); + e7 = sb2.toString(); + } + if (oVar != null) { + try { + Task task = oVar.k; + Objects.requireNonNull(task, "null reference"); + Bitmap bitmap = (Bitmap) f.j(task, 5, TimeUnit.SECONDS); + builder.setLargeIcon(bitmap); + builder.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(bitmap).bigLargeIcon(null)); + } catch (ExecutionException e11) { + String valueOf5 = String.valueOf(e11.getCause()); + a.f0(valueOf5.length() + 26, "Failed to download image: ", valueOf5, "FirebaseMessaging"); + } catch (InterruptedException unused4) { + Log.w("FirebaseMessaging", "Interrupted while downloading image, showing notification without it"); + oVar.close(); + Thread.currentThread().interrupt(); + } catch (TimeoutException unused5) { + Log.w("FirebaseMessaging", "Failed to download image in time, showing notification without it"); + oVar.close(); + } + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + Log.d("FirebaseMessaging", "Showing notification"); + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + throw new IllegalArgumentException("Transparent color is invalid"); + } + throw new JSONException("lightSettings don't have all three fields"); + } catch (JSONException unused6) { + String valueOf6 = String.valueOf(c2); + a.g0(valueOf6.length() + 58, "LightSettings is invalid: ", valueOf6, ". Skipping setting LightSettings", "NotificationParams"); + } catch (IllegalArgumentException e12) { + String valueOf7 = String.valueOf(c2); + String message = e12.getMessage(); + a.o0(a.Q(a.b(message, valueOf7.length() + 60), "LightSettings is invalid: ", valueOf7, ". ", message), ". Skipping setting LightSettings", "NotificationParams"); + } + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + throw new JSONException("vibrateTimings have invalid length"); + } catch (NumberFormatException | JSONException unused7) { + String valueOf8 = String.valueOf(c); + a.g0(valueOf8.length() + 74, "User defined vibrateTimings is invalid: ", valueOf8, ". Skipping setting vibrateTimings.", "NotificationParams"); + } + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + i2 = bundle.getInt("com.google.firebase.messaging.default_notification_color", 0); + if (i2 != 0) { + try { + num = Integer.valueOf(ContextCompat.getColor(context, i2)); + } catch (Resources.NotFoundException unused8) { + Log.w("FirebaseMessaging", "Cannot find the color resource referenced in AndroidManifest."); + } + if (num != null) { + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + num = null; + if (num != null) { + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + int i8 = bundle.getInt("com.google.firebase.messaging.default_notification_icon", 0); + if (i8 == 0 || !a.b(resources, i8)) { + i = packageManager.getApplicationInfo(packageName, 0).icon; + if (i == 0 || !a.b(resources, i)) { + i = 17301651; + } + builder.setSmallIcon(i); + e2 = rVar.e("gcm.n.sound2"); + if (TextUtils.isEmpty(e2)) { + } + if (TextUtils.isEmpty(e2)) { + } + if (uri != null) { + } + e3 = rVar.e("gcm.n.click_action"); + if (!TextUtils.isEmpty(e3)) { + } + if (intent == null) { + } + builder.setContentIntent(pendingIntent); + if (!rVar.a("google.c.a.e")) { + } + if (a != null) { + } + e4 = rVar.e("gcm.n.color"); + if (!TextUtils.isEmpty(e4)) { + } + i2 = bundle.getInt("com.google.firebase.messaging.default_notification_color", 0); + if (i2 != 0) { + } + num = null; + if (num != null) { + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + i = i8; + i = 17301651; + builder.setSmallIcon(i); + e2 = rVar.e("gcm.n.sound2"); + if (TextUtils.isEmpty(e2)) { + } + if (TextUtils.isEmpty(e2)) { + } + if (uri != null) { + } + e3 = rVar.e("gcm.n.click_action"); + if (!TextUtils.isEmpty(e3)) { + } + if (intent == null) { + } + builder.setContentIntent(pendingIntent); + if (!rVar.a("google.c.a.e")) { + } + if (a != null) { + } + e4 = rVar.e("gcm.n.color"); + if (!TextUtils.isEmpty(e4)) { + } + i2 = bundle.getInt("com.google.firebase.messaging.default_notification_color", 0); + if (i2 != 0) { + } + num = null; + if (num != null) { + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + e9 = bundle.getString("com.google.firebase.messaging.default_notification_channel_id"); + if (!TextUtils.isEmpty(e9)) { + if (notificationManager.getNotificationChannel(e9) == null) { + Log.w("FirebaseMessaging", "Notification Channel set in AndroidManifest.xml has not been created by the app. Default value will be used."); + } + Resources resources = context.getResources(); + packageManager = context.getPackageManager(); + NotificationCompat.Builder builder = new NotificationCompat.Builder(context, e9); + d = rVar.d(resources, packageName, "gcm.n.title"); + if (!TextUtils.isEmpty(d)) { + } + d2 = rVar.d(resources, packageName, "gcm.n.body"); + if (!TextUtils.isEmpty(d2)) { + } + e = rVar.e("gcm.n.icon"); + if (!TextUtils.isEmpty(e)) { + } + int i8 = bundle.getInt("com.google.firebase.messaging.default_notification_icon", 0); + i = packageManager.getApplicationInfo(packageName, 0).icon; + i = 17301651; + builder.setSmallIcon(i); + e2 = rVar.e("gcm.n.sound2"); + if (TextUtils.isEmpty(e2)) { + } + if (TextUtils.isEmpty(e2)) { + } + if (uri != null) { + } + e3 = rVar.e("gcm.n.click_action"); + if (!TextUtils.isEmpty(e3)) { + } + if (intent == null) { + } + builder.setContentIntent(pendingIntent); + if (!rVar.a("google.c.a.e")) { + } + if (a != null) { + } + e4 = rVar.e("gcm.n.color"); + if (!TextUtils.isEmpty(e4)) { + } + i2 = bundle.getInt("com.google.firebase.messaging.default_notification_color", 0); + if (i2 != 0) { + } + num = null; + if (num != null) { + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + Log.w("FirebaseMessaging", "Missing Default Notification Channel metadata in AndroidManifest. Default value will be used."); + e9 = "fcm_fallback_notification_channel"; + if (notificationManager.getNotificationChannel(e9) == null) { + notificationManager.createNotificationChannel(new NotificationChannel(e9, context.getString(context.getResources().getIdentifier("fcm_fallback_notification_channel_label", "string", context.getPackageName())), 3)); + } + Resources resources = context.getResources(); + packageManager = context.getPackageManager(); + NotificationCompat.Builder builder = new NotificationCompat.Builder(context, e9); + d = rVar.d(resources, packageName, "gcm.n.title"); + if (!TextUtils.isEmpty(d)) { + } + d2 = rVar.d(resources, packageName, "gcm.n.body"); + if (!TextUtils.isEmpty(d2)) { + } + e = rVar.e("gcm.n.icon"); + if (!TextUtils.isEmpty(e)) { + } + int i8 = bundle.getInt("com.google.firebase.messaging.default_notification_icon", 0); + i = packageManager.getApplicationInfo(packageName, 0).icon; + i = 17301651; + builder.setSmallIcon(i); + e2 = rVar.e("gcm.n.sound2"); + if (TextUtils.isEmpty(e2)) { + } + if (TextUtils.isEmpty(e2)) { + } + if (uri != null) { + } + e3 = rVar.e("gcm.n.click_action"); + if (!TextUtils.isEmpty(e3)) { + } + if (intent == null) { + } + builder.setContentIntent(pendingIntent); + if (!rVar.a("google.c.a.e")) { + } + if (a != null) { + } + e4 = rVar.e("gcm.n.color"); + if (!TextUtils.isEmpty(e4)) { + } + i2 = bundle.getInt("com.google.firebase.messaging.default_notification_color", 0); + if (i2 != 0) { + } + num = null; + if (num != null) { + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + } catch (PackageManager.NameNotFoundException unused9) { + } + } + e9 = null; + Resources resources = context.getResources(); + packageManager = context.getPackageManager(); + NotificationCompat.Builder builder = new NotificationCompat.Builder(context, e9); + d = rVar.d(resources, packageName, "gcm.n.title"); + if (!TextUtils.isEmpty(d)) { + } + d2 = rVar.d(resources, packageName, "gcm.n.body"); + if (!TextUtils.isEmpty(d2)) { + } + e = rVar.e("gcm.n.icon"); + if (!TextUtils.isEmpty(e)) { + } + int i8 = bundle.getInt("com.google.firebase.messaging.default_notification_icon", 0); + i = packageManager.getApplicationInfo(packageName, 0).icon; + i = 17301651; + builder.setSmallIcon(i); + e2 = rVar.e("gcm.n.sound2"); + if (TextUtils.isEmpty(e2)) { + } + if (TextUtils.isEmpty(e2)) { + } + if (uri != null) { + } + e3 = rVar.e("gcm.n.click_action"); + if (!TextUtils.isEmpty(e3)) { + } + if (intent == null) { + } + builder.setContentIntent(pendingIntent); + if (!rVar.a("google.c.a.e")) { + } + if (a != null) { + } + e4 = rVar.e("gcm.n.color"); + if (!TextUtils.isEmpty(e4)) { + } + i2 = bundle.getInt("com.google.firebase.messaging.default_notification_color", 0); + if (i2 != 0) { + } + num = null; + if (num != null) { + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } + oVar = null; + if (oVar != null) { + } + context = this.f1779b; + rVar = this.c; + AtomicInteger atomicInteger = a.a; + try { + applicationInfo = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128); + if (applicationInfo != null) { + } + } catch (PackageManager.NameNotFoundException e13) { + String valueOf9 = String.valueOf(e13); + a.f0(valueOf9.length() + 35, "Couldn't get own application info: ", valueOf9, "FirebaseMessaging"); + } + bundle = Bundle.EMPTY; + String packageName = context.getPackageName(); + String e9 = rVar.e("gcm.n.android_channel_id"); + if (Build.VERSION.SDK_INT >= 26) { + } + e9 = null; + Resources resources = context.getResources(); + packageManager = context.getPackageManager(); + NotificationCompat.Builder builder = new NotificationCompat.Builder(context, e9); + d = rVar.d(resources, packageName, "gcm.n.title"); + if (!TextUtils.isEmpty(d)) { + } + d2 = rVar.d(resources, packageName, "gcm.n.body"); + if (!TextUtils.isEmpty(d2)) { + } + e = rVar.e("gcm.n.icon"); + if (!TextUtils.isEmpty(e)) { + } + int i8 = bundle.getInt("com.google.firebase.messaging.default_notification_icon", 0); + try { + i = packageManager.getApplicationInfo(packageName, 0).icon; + } catch (PackageManager.NameNotFoundException e14) { + String valueOf10 = String.valueOf(e14); + a.f0(valueOf10.length() + 35, "Couldn't get own application info: ", valueOf10, "FirebaseMessaging"); + } + i = 17301651; + builder.setSmallIcon(i); + e2 = rVar.e("gcm.n.sound2"); + if (TextUtils.isEmpty(e2)) { + } + if (TextUtils.isEmpty(e2)) { + } + if (uri != null) { + } + e3 = rVar.e("gcm.n.click_action"); + if (!TextUtils.isEmpty(e3)) { + } + if (intent == null) { + } + builder.setContentIntent(pendingIntent); + if (!rVar.a("google.c.a.e")) { + } + if (a != null) { + } + e4 = rVar.e("gcm.n.color"); + if (!TextUtils.isEmpty(e4)) { + } + i2 = bundle.getInt("com.google.firebase.messaging.default_notification_color", 0); + if (i2 != 0) { + } + num = null; + if (num != null) { + } + builder.setAutoCancel(!rVar.a("gcm.n.sticky")); + builder.setLocalOnly(rVar.a("gcm.n.local_only")); + e5 = rVar.e("gcm.n.ticker"); + if (e5 != null) { + } + b2 = rVar.b("gcm.n.notification_priority"); + if (b2 != null) { + } + b2 = null; + if (b2 != null) { + } + b3 = rVar.b("gcm.n.visibility"); + if (b3 != null) { + } + b3 = null; + if (b3 != null) { + } + b4 = rVar.b("gcm.n.notification_count"); + if (b4 != null) { + } + b4 = null; + if (b4 != null) { + } + e6 = rVar.e("gcm.n.event_time"); + if (!TextUtils.isEmpty(e6)) { + } + l = null; + if (l != null) { + } + c = rVar.c("gcm.n.vibrate_timings"); + if (c != null) { + } + jArr = null; + if (jArr != null) { + } + c2 = rVar.c("gcm.n.light_settings"); + if (c2 != null) { + } + iArr = null; + if (iArr != null) { + } + boolean a2 = rVar.a("gcm.n.default_sound"); + if (rVar.a("gcm.n.default_vibrate_timings")) { + } + if (rVar.a("gcm.n.default_light_settings")) { + } + int i4 = a2 ? 1 : 0; + int i5 = a2 ? 1 : 0; + int i6 = a2 ? 1 : 0; + int i7 = a2 ? 1 : 0; + builder.setDefaults(i4); + e7 = rVar.e("gcm.n.tag"); + if (TextUtils.isEmpty(e7)) { + } + if (oVar != null) { + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + } + ((NotificationManager) this.f1779b.getSystemService("notification")).notify(e7, 0, builder.build()); + return true; + } +} diff --git a/app/src/main/java/b/i/c/w/d.java b/app/src/main/java/b/i/c/w/d.java new file mode 100644 index 0000000000..241df5eee3 --- /dev/null +++ b/app/src/main/java/b/i/c/w/d.java @@ -0,0 +1,22 @@ +package b.i.c.w; + +import android.content.Intent; +import com.google.android.gms.tasks.TaskCompletionSource; +import com.google.firebase.messaging.EnhancedIntentService; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class d implements Runnable { + public final EnhancedIntentService j; + public final Intent k; + public final TaskCompletionSource l; + + public d(EnhancedIntentService enhancedIntentService, Intent intent, TaskCompletionSource taskCompletionSource) { + this.j = enhancedIntentService; + this.k = intent; + this.l = taskCompletionSource; + } + + @Override // java.lang.Runnable + public final void run() { + this.j.lambda$processIntent$0$EnhancedIntentService(this.k, this.l); + } +} diff --git a/app/src/main/java/b/i/c/w/e.java b/app/src/main/java/b/i/c/w/e.java new file mode 100644 index 0000000000..04a53dc822 --- /dev/null +++ b/app/src/main/java/b/i/c/w/e.java @@ -0,0 +1,12 @@ +package b.i.c.w; + +import java.util.concurrent.Executor; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class e implements Executor { + public static final Executor j = new e(); + + @Override // java.util.concurrent.Executor + public final void execute(Runnable runnable) { + runnable.run(); + } +} diff --git a/app/src/main/java/b/i/c/w/f.java b/app/src/main/java/b/i/c/w/f.java new file mode 100644 index 0000000000..148c668e99 --- /dev/null +++ b/app/src/main/java/b/i/c/w/f.java @@ -0,0 +1,23 @@ +package b.i.c.w; + +import android.content.Intent; +import b.i.a.f.n.c; +import com.google.android.gms.tasks.Task; +import com.google.firebase.messaging.EnhancedIntentService; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class f implements c { + public final EnhancedIntentService a; + + /* renamed from: b reason: collision with root package name */ + public final Intent f1780b; + + public f(EnhancedIntentService enhancedIntentService, Intent intent) { + this.a = enhancedIntentService; + this.f1780b = intent; + } + + @Override // b.i.a.f.n.c + public final void onComplete(Task task) { + this.a.lambda$onStartCommand$1$EnhancedIntentService(this.f1780b, task); + } +} diff --git a/app/src/main/java/b/i/c/w/g.java b/app/src/main/java/b/i/c/w/g.java new file mode 100644 index 0000000000..6f0b008da6 --- /dev/null +++ b/app/src/main/java/b/i/c/w/g.java @@ -0,0 +1,23 @@ +package b.i.c.w; + +import com.google.firebase.iid.FirebaseInstanceId; +import com.google.firebase.messaging.FirebaseMessaging; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class g implements Runnable { + public final FirebaseMessaging j; + public final FirebaseInstanceId k; + + public g(FirebaseMessaging firebaseMessaging, FirebaseInstanceId firebaseInstanceId) { + this.j = firebaseMessaging; + this.k = firebaseInstanceId; + } + + @Override // java.lang.Runnable + public final void run() { + FirebaseMessaging firebaseMessaging = this.j; + FirebaseInstanceId firebaseInstanceId = this.k; + if (firebaseMessaging.e.b()) { + firebaseInstanceId.i(); + } + } +} diff --git a/app/src/main/java/b/i/c/w/h.java b/app/src/main/java/b/i/c/w/h.java new file mode 100644 index 0000000000..a77f44fa22 --- /dev/null +++ b/app/src/main/java/b/i/c/w/h.java @@ -0,0 +1,28 @@ +package b.i.c.w; + +import b.i.a.f.n.e; +import com.google.firebase.messaging.FirebaseMessaging; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class h implements e { + public final FirebaseMessaging a; + + public h(FirebaseMessaging firebaseMessaging) { + this.a = firebaseMessaging; + } + + @Override // b.i.a.f.n.e + public final void onSuccess(Object obj) { + boolean z2; + y yVar = (y) obj; + if (this.a.e.b()) { + if (yVar.j.a() != null) { + synchronized (yVar) { + z2 = yVar.i; + } + if (!z2) { + yVar.g(0); + } + } + } + } +} diff --git a/app/src/main/java/b/i/c/w/i.java b/app/src/main/java/b/i/c/w/i.java new file mode 100644 index 0000000000..4eddb407a6 --- /dev/null +++ b/app/src/main/java/b/i/c/w/i.java @@ -0,0 +1,14 @@ +package b.i.c.w; + +import b.i.a.f.n.a; +import b.i.c.s.o; +import com.google.android.gms.tasks.Task; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class i implements a { + public static final a a = new i(); + + @Override // b.i.a.f.n.a + public final Object a(Task task) { + return ((o) task.l()).a(); + } +} diff --git a/app/src/main/java/b/i/c/w/j.java b/app/src/main/java/b/i/c/w/j.java new file mode 100644 index 0000000000..89e925af1b --- /dev/null +++ b/app/src/main/java/b/i/c/w/j.java @@ -0,0 +1,21 @@ +package b.i.c.w; + +import b.i.c.q.a; +import b.i.c.q.b; +import com.google.firebase.messaging.FirebaseMessaging; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class j implements b { + public final FirebaseMessaging.a a; + + public j(FirebaseMessaging.a aVar) { + this.a = aVar; + } + + @Override // b.i.c.q.b + public final void a(a aVar) { + FirebaseMessaging.a aVar2 = this.a; + if (aVar2.b()) { + FirebaseMessaging.this.f.execute(new k(aVar2)); + } + } +} diff --git a/app/src/main/java/b/i/c/w/k.java b/app/src/main/java/b/i/c/w/k.java new file mode 100644 index 0000000000..515ef5950e --- /dev/null +++ b/app/src/main/java/b/i/c/w/k.java @@ -0,0 +1,16 @@ +package b.i.c.w; + +import com.google.firebase.messaging.FirebaseMessaging; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class k implements Runnable { + public final FirebaseMessaging.a j; + + public k(FirebaseMessaging.a aVar) { + this.j = aVar; + } + + @Override // java.lang.Runnable + public final void run() { + FirebaseMessaging.this.d.i(); + } +} diff --git a/app/src/main/java/b/i/c/w/l.java b/app/src/main/java/b/i/c/w/l.java new file mode 100644 index 0000000000..097ba37362 --- /dev/null +++ b/app/src/main/java/b/i/c/w/l.java @@ -0,0 +1,14 @@ +package b.i.c.w; + +import b.i.c.l.e; +import b.i.c.l.f; +import com.google.firebase.messaging.FirebaseMessagingRegistrar; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class l implements f { + public static final f a = new l(); + + @Override // b.i.c.l.f + public final Object a(e eVar) { + return FirebaseMessagingRegistrar.lambda$getComponents$0$FirebaseMessagingRegistrar(eVar); + } +} diff --git a/app/src/main/java/b/i/c/w/m.java b/app/src/main/java/b/i/c/w/m.java new file mode 100644 index 0000000000..9b35303b4e --- /dev/null +++ b/app/src/main/java/b/i/c/w/m.java @@ -0,0 +1,183 @@ +package b.i.c.w; + +import android.content.Intent; +import androidx.annotation.NonNull; +import b.i.c.p.d; +import com.adjust.sdk.Constants; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.firebase.iid.FirebaseInstanceId; +import java.io.IOException; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class m { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final Intent f1781b; + + /* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ + public static class a implements b.i.c.p.c { + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + /* JADX WARNING: Code restructure failed: missing block: B:31:0x00a6, code lost: + if (com.adjust.sdk.Constants.NORMAL.equals(r1) != false) goto L_0x00a8; + */ + /* JADX WARNING: Code restructure failed: missing block: B:63:0x0161, code lost: + if (r0.isEmpty() != false) goto L_0x0163; + */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x00e7 */ + /* JADX WARNING: Removed duplicated region for block: B:43:0x00ef */ + /* JADX WARNING: Removed duplicated region for block: B:46:0x00fa */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x0107 */ + /* JADX WARNING: Removed duplicated region for block: B:52:0x0114 */ + /* JADX WARNING: Removed duplicated region for block: B:55:0x0127 */ + /* JADX WARNING: Removed duplicated region for block: B:58:0x0140 */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x0166 */ + /* JADX WARNING: Removed duplicated region for block: B:68:? A[RETURN, SYNTHETIC] */ + @Override // b.i.c.p.b + public void a(Object obj, d dVar) throws IOException { + int i; + String stringExtra; + String a; + String stringExtra2; + String str; + m mVar = (m) obj; + d dVar2 = dVar; + Intent intent = mVar.f1781b; + Object obj2 = intent.getExtras().get("google.ttl"); + int i2 = 0; + if (obj2 instanceof Integer) { + i = ((Integer) obj2).intValue(); + } else { + if (obj2 instanceof String) { + try { + i = Integer.parseInt((String) obj2); + } catch (NumberFormatException unused) { + String valueOf = String.valueOf(obj2); + b.d.b.a.a.f0(valueOf.length() + 13, "Invalid TTL: ", valueOf, "FirebaseMessaging"); + } + } + i = 0; + } + dVar2.c("ttl", i); + dVar2.f("event", mVar.a); + FirebaseInstanceId instance = FirebaseInstanceId.getInstance(b.i.c.c.b()); + FirebaseInstanceId.c(instance.f); + if (instance.p(instance.j())) { + synchronized (instance) { + if (!instance.k) { + instance.o(0); + } + } + } + dVar2.f("instanceId", instance.e()); + String stringExtra3 = intent.getStringExtra("google.delivered_priority"); + if (stringExtra3 == null) { + if (!"1".equals(intent.getStringExtra("google.priority_reduced"))) { + stringExtra3 = intent.getStringExtra("google.priority"); + } + i2 = 2; + dVar2.c("priority", i2); + b.i.c.c b2 = b.i.c.c.b(); + b2.a(); + dVar2.f("packageName", b2.d.getPackageName()); + dVar2.f("sdkPlatform", "ANDROID"); + dVar2.f("messageType", (intent.getExtras() != null || !r.f(intent.getExtras())) ? "DATA_MESSAGE" : "DISPLAY_NOTIFICATION"); + stringExtra = intent.getStringExtra("google.message_id"); + if (stringExtra == null) { + stringExtra = intent.getStringExtra("message_id"); + } + if (stringExtra != null) { + dVar2.f("messageId", stringExtra); + } + a = q.a(intent); + if (a != null) { + dVar2.f(ModelAuditLogEntry.CHANGE_KEY_TOPIC, a); + } + stringExtra2 = intent.getStringExtra("collapse_key"); + if (stringExtra2 != null) { + dVar2.f("collapseKey", stringExtra2); + } + if (intent.getStringExtra("google.c.a.m_l") != null) { + dVar2.f("analyticsLabel", intent.getStringExtra("google.c.a.m_l")); + } + if (intent.getStringExtra("google.c.a.c_l") != null) { + dVar2.f("composerLabel", intent.getStringExtra("google.c.a.c_l")); + } + b.i.c.c b3 = b.i.c.c.b(); + b3.a(); + str = b3.f.e; + if (str == null) { + b3.a(); + str = b3.f.f1640b; + if (str.startsWith("1:")) { + String[] split = str.split(":"); + if (split.length >= 2) { + str = split[1]; + } + str = null; + } + } + if (str == null) { + dVar2.f("projectNumber", str); + return; + } + return; + } + if (Constants.HIGH.equals(stringExtra3)) { + i2 = 1; + } + dVar2.c("priority", i2); + b.i.c.c b2 = b.i.c.c.b(); + b2.a(); + dVar2.f("packageName", b2.d.getPackageName()); + dVar2.f("sdkPlatform", "ANDROID"); + dVar2.f("messageType", (intent.getExtras() != null || !r.f(intent.getExtras())) ? "DATA_MESSAGE" : "DISPLAY_NOTIFICATION"); + stringExtra = intent.getStringExtra("google.message_id"); + if (stringExtra == null) { + } + if (stringExtra != null) { + } + a = q.a(intent); + if (a != null) { + } + stringExtra2 = intent.getStringExtra("collapse_key"); + if (stringExtra2 != null) { + } + if (intent.getStringExtra("google.c.a.m_l") != null) { + } + if (intent.getStringExtra("google.c.a.c_l") != null) { + } + b.i.c.c b3 = b.i.c.c.b(); + b3.a(); + str = b3.f.e; + if (str == null) { + } + if (str == null) { + } + } + } + + /* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ + public static final class b { + public final m a; + + public b(@NonNull m mVar) { + this.a = mVar; + } + } + + /* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ + public static final class c implements b.i.c.p.c { + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // b.i.c.p.b + public final void a(Object obj, d dVar) throws IOException { + dVar.f("messaging_client_event", ((b) obj).a); + } + } + + public m(@NonNull String str, @NonNull Intent intent) { + b.c.a.a0.d.v(str, "evenType must be non-null"); + this.a = str; + b.c.a.a0.d.z(intent, "intent must be non-null"); + this.f1781b = intent; + } +} diff --git a/app/src/main/java/b/i/c/w/n.java b/app/src/main/java/b/i/c/w/n.java new file mode 100644 index 0000000000..ac892d2cb4 --- /dev/null +++ b/app/src/main/java/b/i/c/w/n.java @@ -0,0 +1,104 @@ +package b.i.c.w; + +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.util.Log; +import b.d.b.a.a; +import b.i.a.f.h.i.b; +import b.i.a.f.h.i.d; +import b.i.a.f.h.i.e; +import com.esotericsoftware.kryo.io.Util; +import java.io.IOException; +import java.io.InputStream; +import java.net.URLConnection; +import java.util.ArrayDeque; +import java.util.concurrent.Callable; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class n implements Callable { + public final o j; + + public n(o oVar) { + this.j = oVar; + } + + @Override // java.util.concurrent.Callable + public final Object call() { + byte[] a; + o oVar = this.j; + String valueOf = String.valueOf(oVar.j); + StringBuilder sb = new StringBuilder(valueOf.length() + 22); + sb.append("Starting download of: "); + sb.append(valueOf); + Log.i("FirebaseMessaging", sb.toString()); + URLConnection openConnection = oVar.j.openConnection(); + if (openConnection.getContentLength() <= 1048576) { + InputStream inputStream = openConnection.getInputStream(); + try { + oVar.l = inputStream; + int i = b.a; + d dVar = new d(inputStream); + ArrayDeque arrayDeque = new ArrayDeque(20); + int i2 = 8192; + int i3 = 0; + loop0: + while (true) { + if (i3 < 2147483639) { + int min = Math.min(i2, Util.MAX_SAFE_ARRAY_SIZE - i3); + byte[] bArr = new byte[min]; + arrayDeque.add(bArr); + int i4 = 0; + while (i4 < min) { + int read = dVar.read(bArr, i4, min - i4); + if (read == -1) { + a = b.a(arrayDeque, i3); + break loop0; + } + i4 += read; + i3 += read; + } + long j = ((long) i2) << 1; + i2 = j > 2147483647L ? Integer.MAX_VALUE : j < -2147483648L ? Integer.MIN_VALUE : (int) j; + } else if (dVar.read() == -1) { + a = b.a(arrayDeque, Util.MAX_SAFE_ARRAY_SIZE); + } else { + throw new OutOfMemoryError("input is too large to fit in a byte array"); + } + } + if (inputStream != null) { + inputStream.close(); + } + if (Log.isLoggable("FirebaseMessaging", 2)) { + int length = a.length; + String valueOf2 = String.valueOf(oVar.j); + StringBuilder sb2 = new StringBuilder(valueOf2.length() + 34); + sb2.append("Downloaded "); + sb2.append(length); + sb2.append(" bytes from "); + sb2.append(valueOf2); + Log.v("FirebaseMessaging", sb2.toString()); + } + if (a.length <= 1048576) { + Bitmap decodeByteArray = BitmapFactory.decodeByteArray(a, 0, a.length); + if (decodeByteArray != null) { + if (Log.isLoggable("FirebaseMessaging", 3)) { + String valueOf3 = String.valueOf(oVar.j); + StringBuilder sb3 = new StringBuilder(valueOf3.length() + 31); + sb3.append("Successfully downloaded image: "); + sb3.append(valueOf3); + Log.d("FirebaseMessaging", sb3.toString()); + } + return decodeByteArray; + } + String valueOf4 = String.valueOf(oVar.j); + throw new IOException(a.i(valueOf4.length() + 24, "Failed to decode image: ", valueOf4)); + } + throw new IOException("Image exceeds max size of 1048576"); + } catch (Throwable th) { + e.a.a(th, th); + } + } else { + throw new IOException("Content-Length exceeds max size of 1048576"); + } + throw th; + } +} diff --git a/app/src/main/java/b/i/c/w/o.java b/app/src/main/java/b/i/c/w/o.java new file mode 100644 index 0000000000..c69de44dd2 --- /dev/null +++ b/app/src/main/java/b/i/c/w/o.java @@ -0,0 +1,46 @@ +package b.i.c.w; + +import android.graphics.Bitmap; +import android.util.Log; +import androidx.annotation.Nullable; +import b.i.a.f.h.i.c; +import com.google.android.gms.tasks.Task; +import java.io.Closeable; +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; +import java.util.logging.Level; +import java.util.logging.Logger; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public class o implements Closeable { + public final URL j; + @Nullable + public Task k; + @Nullable + public volatile InputStream l; + + public o(URL url) { + this.j = url; + } + + @Override // java.io.Closeable, java.lang.AutoCloseable + public void close() { + try { + InputStream inputStream = this.l; + Logger logger = c.a; + if (inputStream != null) { + try { + inputStream.close(); + } catch (IOException e) { + try { + c.a.logp(Level.WARNING, "com.google.common.io.Closeables", "close", "IOException thrown while closing Closeable.", (Throwable) e); + } catch (IOException e2) { + throw new AssertionError(e2); + } + } + } + } catch (NullPointerException e3) { + Log.e("FirebaseMessaging", "Failed to close the image download stream.", e3); + } + } +} diff --git a/app/src/main/java/b/i/c/w/p.java b/app/src/main/java/b/i/c/w/p.java new file mode 100644 index 0000000000..443e7e961e --- /dev/null +++ b/app/src/main/java/b/i/c/w/p.java @@ -0,0 +1,12 @@ +package b.i.c.w; + +import b.i.a.b.e; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class p implements e { + public static final e a = new p(); + + @Override // b.i.a.b.e + public final Object apply(Object obj) { + return ((String) obj).getBytes(); + } +} diff --git a/app/src/main/java/b/i/c/w/q.java b/app/src/main/java/b/i/c/w/q.java new file mode 100644 index 0000000000..4cf18ec639 --- /dev/null +++ b/app/src/main/java/b/i/c/w/q.java @@ -0,0 +1,100 @@ +package b.i.c.w; + +import android.content.Intent; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.i.c.c; +import b.i.c.p.a; +import b.i.c.p.h.d; +import b.i.c.p.h.e; +import b.i.c.w.m; +import com.google.firebase.messaging.FirebaseMessagingService; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public class q { + public static final a a; + + static { + e eVar = new e(); + eVar.f1746b.put(m.b.class, new m.c()); + eVar.c.remove(m.b.class); + eVar.f1746b.put(m.class, new m.a()); + eVar.c.remove(m.class); + a = new d(eVar); + } + + @Nullable + public static String a(Intent intent) { + String stringExtra = intent.getStringExtra("from"); + if (stringExtra == null || !stringExtra.startsWith("/topics/")) { + return null; + } + return stringExtra; + } + + @VisibleForTesting + public static void b(String str, Intent intent) { + Bundle bundle = new Bundle(); + String stringExtra = intent.getStringExtra("google.c.a.c_id"); + if (stringExtra != null) { + bundle.putString("_nmid", stringExtra); + } + String stringExtra2 = intent.getStringExtra("google.c.a.c_l"); + if (stringExtra2 != null) { + bundle.putString("_nmn", stringExtra2); + } + String stringExtra3 = intent.getStringExtra("google.c.a.m_l"); + if (!TextUtils.isEmpty(stringExtra3)) { + bundle.putString("label", stringExtra3); + } + String stringExtra4 = intent.getStringExtra("google.c.a.m_c"); + if (!TextUtils.isEmpty(stringExtra4)) { + bundle.putString("message_channel", stringExtra4); + } + String a2 = a(intent); + if (a2 != null) { + bundle.putString("_nt", a2); + } + String stringExtra5 = intent.getStringExtra("google.c.a.ts"); + if (stringExtra5 != null) { + try { + bundle.putInt("_nmt", Integer.parseInt(stringExtra5)); + } catch (NumberFormatException e) { + Log.w("FirebaseMessaging", "Error while parsing timestamp in GCM event", e); + } + } + String stringExtra6 = intent.hasExtra("google.c.a.udt") ? intent.getStringExtra("google.c.a.udt") : null; + if (stringExtra6 != null) { + try { + bundle.putInt("_ndt", Integer.parseInt(stringExtra6)); + } catch (NumberFormatException e2) { + Log.w("FirebaseMessaging", "Error while parsing use_device_time in GCM event", e2); + } + } + String str2 = (intent.getExtras() == null || !r.f(intent.getExtras())) ? "data" : "display"; + if ("_nr".equals(str) || "_nf".equals(str)) { + bundle.putString("_nmc", str2); + } + if (Log.isLoggable("FirebaseMessaging", 3)) { + String valueOf = String.valueOf(bundle); + Log.d("FirebaseMessaging", b.d.b.a.a.k(valueOf.length() + str.length() + 37, "Logging to scion event=", str, " scionPayload=", valueOf)); + } + c b2 = c.b(); + b2.a(); + b.i.c.j.a.a aVar = (b.i.c.j.a.a) b2.g.a(b.i.c.j.a.a.class); + if (aVar != null) { + aVar.a("fcm", str, bundle); + } else { + Log.w("FirebaseMessaging", "Unable to log event: analytics library is missing"); + } + } + + public static boolean c(Intent intent) { + if (intent == null || FirebaseMessagingService.ACTION_DIRECT_BOOT_REMOTE_INTENT.equals(intent.getAction())) { + return false; + } + return "1".equals(intent.getStringExtra("google.c.a.e")); + } +} diff --git a/app/src/main/java/b/i/c/w/r.java b/app/src/main/java/b/i/c/w/r.java new file mode 100644 index 0000000000..4fb6223443 --- /dev/null +++ b/app/src/main/java/b/i/c/w/r.java @@ -0,0 +1,126 @@ +package b.i.c.w; + +import android.content.res.Resources; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.d.b.a.a; +import java.util.Arrays; +import java.util.MissingFormatArgumentException; +import org.json.JSONArray; +import org.json.JSONException; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public class r { + @NonNull + public final Bundle a; + + public r(@NonNull Bundle bundle) { + this.a = new Bundle(bundle); + } + + public static boolean f(Bundle bundle) { + return "1".equals(bundle.getString("gcm.n.e")) || "1".equals(bundle.getString("gcm.n.e".replace("gcm.n.", "gcm.notification."))); + } + + public static String h(String str) { + return str.startsWith("gcm.n.") ? str.substring(6) : str; + } + + public boolean a(String str) { + String e = e(str); + return "1".equals(e) || Boolean.parseBoolean(e); + } + + public Integer b(String str) { + String e = e(str); + if (TextUtils.isEmpty(e)) { + return null; + } + try { + return Integer.valueOf(Integer.parseInt(e)); + } catch (NumberFormatException unused) { + String h = h(str); + a.o0(a.Q(a.b(e, a.b(h, 38)), "Couldn't parse value of ", h, "(", e), ") into an int", "NotificationParams"); + return null; + } + } + + @Nullable + public JSONArray c(String str) { + String e = e(str); + if (TextUtils.isEmpty(e)) { + return null; + } + try { + return new JSONArray(e); + } catch (JSONException unused) { + String h = h(str); + a.o0(a.Q(a.b(e, a.b(h, 50)), "Malformed JSON for key ", h, ": ", e), ", falling back to default", "NotificationParams"); + return null; + } + } + + public String d(Resources resources, String str, String str2) { + String[] strArr; + String e = e(str2); + if (!TextUtils.isEmpty(e)) { + return e; + } + String e2 = e(str2.concat("_loc_key")); + if (TextUtils.isEmpty(e2)) { + return null; + } + int identifier = resources.getIdentifier(e2, "string", str); + if (identifier == 0) { + String h = h(str2.concat("_loc_key")); + Log.w("NotificationParams", a.k(str2.length() + a.b(h, 49), h, " resource not found: ", str2, " Default value will be used.")); + return null; + } + JSONArray c = c(str2.concat("_loc_args")); + if (c == null) { + strArr = null; + } else { + int length = c.length(); + strArr = new String[length]; + for (int i = 0; i < length; i++) { + strArr[i] = c.optString(i); + } + } + if (strArr == null) { + return resources.getString(identifier); + } + try { + return resources.getString(identifier, strArr); + } catch (MissingFormatArgumentException e3) { + String h2 = h(str2); + String arrays = Arrays.toString(strArr); + StringBuilder Q = a.Q(a.b(arrays, a.b(h2, 58)), "Missing format argument for ", h2, ": ", arrays); + Q.append(" Default value will be used."); + Log.w("NotificationParams", Q.toString(), e3); + return null; + } + } + + public String e(String str) { + Bundle bundle = this.a; + if (!bundle.containsKey(str) && str.startsWith("gcm.n.")) { + String replace = !str.startsWith("gcm.n.") ? str : str.replace("gcm.n.", "gcm.notification."); + if (this.a.containsKey(replace)) { + str = replace; + } + } + return bundle.getString(str); + } + + public Bundle g() { + Bundle bundle = new Bundle(this.a); + for (String str : this.a.keySet()) { + if (!(str.startsWith("google.c.a.") || str.equals("from"))) { + bundle.remove(str); + } + } + return bundle; + } +} diff --git a/app/src/main/java/b/i/c/w/s.java b/app/src/main/java/b/i/c/w/s.java new file mode 100644 index 0000000000..870aae5d97 --- /dev/null +++ b/app/src/main/java/b/i/c/w/s.java @@ -0,0 +1,32 @@ +package b.i.c.w; + +import android.os.Bundle; +import android.os.Parcel; +import android.os.Parcelable; +import b.c.a.a0.d; +import com.google.firebase.messaging.RemoteMessage; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public class s implements Parcelable.Creator { + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // android.os.Parcelable.Creator + public RemoteMessage createFromParcel(Parcel parcel) { + int k2 = d.k2(parcel); + Bundle bundle = null; + while (parcel.dataPosition() < k2) { + int readInt = parcel.readInt(); + if ((65535 & readInt) != 2) { + d.b2(parcel, readInt); + } else { + bundle = d.M(parcel, readInt); + } + } + d.e0(parcel, k2); + return new RemoteMessage(bundle); + } + + /* Return type fixed from 'java.lang.Object[]' to match base method */ + @Override // android.os.Parcelable.Creator + public RemoteMessage[] newArray(int i) { + return new RemoteMessage[i]; + } +} diff --git a/app/src/main/java/b/i/c/w/t.java b/app/src/main/java/b/i/c/w/t.java new file mode 100644 index 0000000000..0fe625b8c2 --- /dev/null +++ b/app/src/main/java/b/i/c/w/t.java @@ -0,0 +1,28 @@ +package b.i.c.w; + +import android.content.SharedPreferences; +import java.util.Iterator; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class t implements Runnable { + public final u j; + + public t(u uVar) { + this.j = uVar; + } + + @Override // java.lang.Runnable + public final void run() { + u uVar = this.j; + synchronized (uVar.d) { + SharedPreferences.Editor edit = uVar.a.edit(); + String str = uVar.f1782b; + StringBuilder sb = new StringBuilder(); + Iterator it = uVar.d.iterator(); + while (it.hasNext()) { + sb.append(it.next()); + sb.append(uVar.c); + } + edit.putString(str, sb.toString()).commit(); + } + } +} diff --git a/app/src/main/java/b/i/c/w/u.java b/app/src/main/java/b/i/c/w/u.java new file mode 100644 index 0000000000..2b219d1f4a --- /dev/null +++ b/app/src/main/java/b/i/c/w/u.java @@ -0,0 +1,50 @@ +package b.i.c.w; + +import android.content.SharedPreferences; +import android.text.TextUtils; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.annotation.WorkerThread; +import java.util.ArrayDeque; +import java.util.concurrent.Executor; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class u { + public final SharedPreferences a; + + /* renamed from: b reason: collision with root package name */ + public final String f1782b; + public final String c; + @GuardedBy("internalQueue") + public final ArrayDeque d = new ArrayDeque<>(); + public final Executor e; + + public u(SharedPreferences sharedPreferences, String str, String str2, Executor executor) { + this.a = sharedPreferences; + this.f1782b = str; + this.c = str2; + this.e = executor; + } + + @WorkerThread + public static u a(SharedPreferences sharedPreferences, String str, String str2, Executor executor) { + u uVar = new u(sharedPreferences, str, str2, executor); + synchronized (uVar.d) { + uVar.d.clear(); + String string = uVar.a.getString(uVar.f1782b, ""); + if (!TextUtils.isEmpty(string)) { + if (string.contains(uVar.c)) { + String[] split = string.split(uVar.c, -1); + if (split.length == 0) { + Log.e("FirebaseMessaging", "Corrupted queue. Please check the queue contents and item separator provided"); + } + for (String str3 : split) { + if (!TextUtils.isEmpty(str3)) { + uVar.d.add(str3); + } + } + } + } + } + return uVar; + } +} diff --git a/app/src/main/java/b/i/c/w/v.java b/app/src/main/java/b/i/c/w/v.java new file mode 100644 index 0000000000..7dc35d28d9 --- /dev/null +++ b/app/src/main/java/b/i/c/w/v.java @@ -0,0 +1,44 @@ +package b.i.c.w; + +import android.util.Log; +import androidx.annotation.Nullable; +import b.d.b.a.a; +import java.util.Arrays; +import java.util.regex.Pattern; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class v { + public static final Pattern a = Pattern.compile("[a-zA-Z0-9-_.~%]{1,900}"); + + /* renamed from: b reason: collision with root package name */ + public final String f1783b; + public final String c; + public final String d; + + public v(String str, String str2) { + String str3; + if (str2 == null || !str2.startsWith("/topics/")) { + str3 = str2; + } else { + Log.w("FirebaseMessaging", String.format("Format /topics/topic-name is deprecated. Only 'topic-name' should be used in %s.", str)); + str3 = str2.substring(8); + } + if (str3 == null || !a.matcher(str3).matches()) { + throw new IllegalArgumentException(String.format("Invalid topic name: %s does not match the allowed format %s.", str3, "[a-zA-Z0-9-_.~%]{1,900}")); + } + this.f1783b = str3; + this.c = str; + this.d = a.j(a.b(str2, a.b(str, 1)), str, "!", str2); + } + + public final boolean equals(@Nullable Object obj) { + if (!(obj instanceof v)) { + return false; + } + v vVar = (v) obj; + return this.f1783b.equals(vVar.f1783b) && this.c.equals(vVar.c); + } + + public final int hashCode() { + return Arrays.hashCode(new Object[]{this.c, this.f1783b}); + } +} diff --git a/app/src/main/java/b/i/c/w/w.java b/app/src/main/java/b/i/c/w/w.java new file mode 100644 index 0000000000..602c98d0d1 --- /dev/null +++ b/app/src/main/java/b/i/c/w/w.java @@ -0,0 +1,43 @@ +package b.i.c.w; + +import android.content.SharedPreferences; +import android.text.TextUtils; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import java.lang.ref.WeakReference; +import java.util.concurrent.Executor; +import java.util.regex.Pattern; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final class w { + @GuardedBy("TopicsStore.class") + public static WeakReference a; + + /* renamed from: b reason: collision with root package name */ + public final SharedPreferences f1784b; + public u c; + public final Executor d; + + public w(SharedPreferences sharedPreferences, Executor executor) { + this.d = executor; + this.f1784b = sharedPreferences; + } + + @Nullable + public final synchronized v a() { + String peek; + v vVar; + u uVar = this.c; + synchronized (uVar.d) { + peek = uVar.d.peek(); + } + Pattern pattern = v.a; + vVar = null; + if (!TextUtils.isEmpty(peek)) { + String[] split = peek.split("!", -1); + if (split.length == 2) { + vVar = new v(split[0], split[1]); + } + } + return vVar; + } +} diff --git a/app/src/main/java/b/i/c/w/x.java b/app/src/main/java/b/i/c/w/x.java new file mode 100644 index 0000000000..65f092a00a --- /dev/null +++ b/app/src/main/java/b/i/c/w/x.java @@ -0,0 +1,53 @@ +package b.i.c.w; + +import android.content.Context; +import android.content.SharedPreferences; +import b.i.c.s.n; +import b.i.c.s.q; +import com.google.firebase.iid.FirebaseInstanceId; +import java.lang.ref.WeakReference; +import java.util.concurrent.Callable; +import java.util.concurrent.ScheduledExecutorService; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public final /* synthetic */ class x implements Callable { + public final Context j; + public final ScheduledExecutorService k; + public final FirebaseInstanceId l; + public final q m; + public final n n; + + public x(Context context, ScheduledExecutorService scheduledExecutorService, FirebaseInstanceId firebaseInstanceId, q qVar, n nVar) { + this.j = context; + this.k = scheduledExecutorService; + this.l = firebaseInstanceId; + this.m = qVar; + this.n = nVar; + } + + @Override // java.util.concurrent.Callable + public final Object call() { + w wVar; + Context context = this.j; + ScheduledExecutorService scheduledExecutorService = this.k; + FirebaseInstanceId firebaseInstanceId = this.l; + q qVar = this.m; + n nVar = this.n; + synchronized (w.class) { + wVar = null; + WeakReference weakReference = w.a; + if (weakReference != null) { + wVar = weakReference.get(); + } + if (wVar == null) { + SharedPreferences sharedPreferences = context.getSharedPreferences("com.google.android.gms.appid", 0); + w wVar2 = new w(sharedPreferences, scheduledExecutorService); + synchronized (wVar2) { + wVar2.c = u.a(sharedPreferences, "topic_operation_queue", ",", scheduledExecutorService); + } + w.a = new WeakReference<>(wVar2); + wVar = wVar2; + } + } + return new y(firebaseInstanceId, qVar, wVar, nVar, context, scheduledExecutorService); + } +} diff --git a/app/src/main/java/b/i/c/w/y.java b/app/src/main/java/b/i/c/w/y.java new file mode 100644 index 0000000000..66a3088076 --- /dev/null +++ b/app/src/main/java/b/i/c/w/y.java @@ -0,0 +1,215 @@ +package b.i.c.w; + +import android.content.Context; +import android.os.Build; +import android.os.Bundle; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.annotation.NonNull; +import androidx.annotation.WorkerThread; +import androidx.collection.ArrayMap; +import androidx.exifinterface.media.ExifInterface; +import b.i.a.f.e.o.f; +import b.i.c.s.n; +import b.i.c.s.o; +import b.i.c.s.q; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import com.google.firebase.iid.FirebaseInstanceId; +import java.io.IOException; +import java.util.ArrayDeque; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public class y { + public static final long a = TimeUnit.HOURS.toSeconds(8); + + /* renamed from: b reason: collision with root package name */ + public static final /* synthetic */ int f1785b = 0; + public final FirebaseInstanceId c; + public final Context d; + public final q e; + public final n f; + @GuardedBy("pendingOperations") + public final Map>> g = new ArrayMap(); + public final ScheduledExecutorService h; + @GuardedBy("this") + public boolean i = false; + public final w j; + + public y(FirebaseInstanceId firebaseInstanceId, q qVar, w wVar, n nVar, Context context, @NonNull ScheduledExecutorService scheduledExecutorService) { + this.c = firebaseInstanceId; + this.e = qVar; + this.j = wVar; + this.f = nVar; + this.d = context; + this.h = scheduledExecutorService; + } + + @WorkerThread + public static T a(Task task) throws IOException { + try { + return (T) f.j(task, 30, TimeUnit.SECONDS); + } catch (ExecutionException e) { + Throwable cause = e.getCause(); + if (cause instanceof IOException) { + throw ((IOException) cause); + } else if (cause instanceof RuntimeException) { + throw ((RuntimeException) cause); + } else { + throw new IOException(e); + } + } catch (InterruptedException | TimeoutException e2) { + throw new IOException("SERVICE_NOT_AVAILABLE", e2); + } + } + + public static boolean d() { + if (!Log.isLoggable("FirebaseMessaging", 3)) { + return Build.VERSION.SDK_INT == 23 && Log.isLoggable("FirebaseMessaging", 3); + } + return true; + } + + @WorkerThread + public final void b(String str) throws IOException { + o oVar = (o) a(this.c.f()); + n nVar = this.f; + String id2 = oVar.getId(); + String a2 = oVar.a(); + Objects.requireNonNull(nVar); + Bundle bundle = new Bundle(); + String valueOf = String.valueOf(str); + bundle.putString("gcm.topic", valueOf.length() != 0 ? "/topics/".concat(valueOf) : new String("/topics/")); + String valueOf2 = String.valueOf(str); + a(nVar.a(nVar.b(id2, a2, valueOf2.length() != 0 ? "/topics/".concat(valueOf2) : new String("/topics/"), bundle))); + } + + @WorkerThread + public final void c(String str) throws IOException { + o oVar = (o) a(this.c.f()); + n nVar = this.f; + String id2 = oVar.getId(); + String a2 = oVar.a(); + Objects.requireNonNull(nVar); + Bundle bundle = new Bundle(); + String valueOf = String.valueOf(str); + bundle.putString("gcm.topic", valueOf.length() != 0 ? "/topics/".concat(valueOf) : new String("/topics/")); + bundle.putString("delete", "1"); + String valueOf2 = String.valueOf(str); + a(nVar.a(nVar.b(id2, a2, valueOf2.length() != 0 ? "/topics/".concat(valueOf2) : new String("/topics/"), bundle))); + } + + public synchronized void e(boolean z2) { + this.i = z2; + } + + @WorkerThread + public boolean f() throws IOException { + v a2; + boolean z2; + while (true) { + synchronized (this) { + a2 = this.j.a(); + z2 = true; + if (a2 == null) { + if (d()) { + Log.d("FirebaseMessaging", "topic sync succeeded"); + } + return true; + } + } + try { + String str = a2.c; + char c = 65535; + int hashCode = str.hashCode(); + if (hashCode != 83) { + if (hashCode == 85) { + if (str.equals("U")) { + c = 1; + } + } + } else if (str.equals(ExifInterface.LATITUDE_SOUTH)) { + c = 0; + } + if (c == 0) { + b(a2.f1783b); + if (d()) { + String str2 = a2.f1783b; + StringBuilder sb = new StringBuilder(String.valueOf(str2).length() + 31); + sb.append("Subscribe to topic: "); + sb.append(str2); + sb.append(" succeeded."); + Log.d("FirebaseMessaging", sb.toString()); + } + } else if (c == 1) { + c(a2.f1783b); + if (d()) { + String str3 = a2.f1783b; + StringBuilder sb2 = new StringBuilder(String.valueOf(str3).length() + 35); + sb2.append("Unsubscribe from topic: "); + sb2.append(str3); + sb2.append(" succeeded."); + Log.d("FirebaseMessaging", sb2.toString()); + } + } else if (d()) { + String valueOf = String.valueOf(a2); + StringBuilder sb3 = new StringBuilder(valueOf.length() + 24); + sb3.append("Unknown topic operation"); + sb3.append(valueOf); + sb3.append("."); + Log.d("FirebaseMessaging", sb3.toString()); + } + } catch (IOException e) { + if ("SERVICE_NOT_AVAILABLE".equals(e.getMessage()) || "INTERNAL_SERVER_ERROR".equals(e.getMessage())) { + String message = e.getMessage(); + StringBuilder sb4 = new StringBuilder(String.valueOf(message).length() + 53); + sb4.append("Topic operation failed: "); + sb4.append(message); + sb4.append(". Will retry Topic operation."); + Log.e("FirebaseMessaging", sb4.toString()); + } else if (e.getMessage() == null) { + Log.e("FirebaseMessaging", "Topic operation failed without exception message. Will retry Topic operation."); + } else { + throw e; + } + z2 = false; + } + if (!z2) { + return false; + } + w wVar = this.j; + synchronized (wVar) { + u uVar = wVar.c; + String str4 = a2.d; + synchronized (uVar.d) { + if (uVar.d.remove(str4)) { + uVar.e.execute(new t(uVar)); + } + } + } + synchronized (this.g) { + String str5 = a2.d; + if (this.g.containsKey(str5)) { + ArrayDeque> arrayDeque = this.g.get(str5); + TaskCompletionSource poll = arrayDeque.poll(); + if (poll != null) { + poll.a.t(null); + } + if (arrayDeque.isEmpty()) { + this.g.remove(str5); + } + } + } + } + } + + public void g(long j) { + this.h.schedule(new z(this, this.d, this.e, Math.min(Math.max(30L, j << 1), a)), j, TimeUnit.SECONDS); + e(true); + } +} diff --git a/app/src/main/java/b/i/c/w/z.java b/app/src/main/java/b/i/c/w/z.java new file mode 100644 index 0000000000..d3e22a1d0c --- /dev/null +++ b/app/src/main/java/b/i/c/w/z.java @@ -0,0 +1,185 @@ +package b.i.c.w; + +import android.annotation.SuppressLint; +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.os.Build; +import android.os.PowerManager; +import android.util.Log; +import androidx.annotation.GuardedBy; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.i.c.s.q; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +/* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ +public class z implements Runnable { + public static final Object j = new Object(); + @GuardedBy("TOPIC_SYNC_TASK_LOCK") + public static Boolean k; + @GuardedBy("TOPIC_SYNC_TASK_LOCK") + public static Boolean l; + public final Context m; + public final q n; + public final PowerManager.WakeLock o; + public final y p; + public final long q; + + /* compiled from: com.google.firebase:firebase-messaging@@21.0.0 */ + @VisibleForTesting + public class a extends BroadcastReceiver { + @Nullable + @GuardedBy("this") + public z a; + + public a(z zVar) { + this.a = zVar; + } + + public void a() { + if (z.a()) { + Log.d("FirebaseMessaging", "Connectivity change received registered"); + } + z.this.m.registerReceiver(this, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE")); + } + + @Override // android.content.BroadcastReceiver + public synchronized void onReceive(Context context, Intent intent) { + z zVar = this.a; + if (zVar != null) { + if (zVar.e()) { + if (z.a()) { + Log.d("FirebaseMessaging", "Connectivity changed. Starting background sync."); + } + z zVar2 = this.a; + zVar2.p.h.schedule(zVar2, 0, TimeUnit.SECONDS); + context.unregisterReceiver(this); + this.a = null; + } + } + } + } + + public z(y yVar, Context context, q qVar, long j2) { + this.p = yVar; + this.m = context; + this.q = j2; + this.n = qVar; + this.o = ((PowerManager) context.getSystemService("power")).newWakeLock(1, "wake:com.google.firebase.messaging"); + } + + public static boolean a() { + return Log.isLoggable("FirebaseMessaging", 3) || (Build.VERSION.SDK_INT == 23 && Log.isLoggable("FirebaseMessaging", 3)); + } + + public static boolean b(Context context) { + boolean booleanValue; + synchronized (j) { + Boolean bool = l; + Boolean valueOf = Boolean.valueOf(bool == null ? c(context, "android.permission.ACCESS_NETWORK_STATE", bool) : bool.booleanValue()); + l = valueOf; + booleanValue = valueOf.booleanValue(); + } + return booleanValue; + } + + public static boolean c(Context context, String str, Boolean bool) { + if (bool != null) { + return bool.booleanValue(); + } + boolean z2 = context.checkCallingOrSelfPermission(str) == 0; + if (!z2 && Log.isLoggable("FirebaseMessaging", 3)) { + StringBuilder sb = new StringBuilder(str.length() + 142); + sb.append("Missing Permission: "); + sb.append(str); + sb.append(". This permission should normally be included by the manifest merger, but may needed to be manually added to your manifest"); + Log.d("FirebaseMessaging", sb.toString()); + } + return z2; + } + + public static boolean d(Context context) { + boolean booleanValue; + synchronized (j) { + Boolean bool = k; + Boolean valueOf = Boolean.valueOf(bool == null ? c(context, "android.permission.WAKE_LOCK", bool) : bool.booleanValue()); + k = valueOf; + booleanValue = valueOf.booleanValue(); + } + return booleanValue; + } + + public final synchronized boolean e() { + NetworkInfo activeNetworkInfo; + ConnectivityManager connectivityManager = (ConnectivityManager) this.m.getSystemService("connectivity"); + activeNetworkInfo = connectivityManager != null ? connectivityManager.getActiveNetworkInfo() : null; + return activeNetworkInfo != null && activeNetworkInfo.isConnected(); + } + + @Override // java.lang.Runnable + @SuppressLint({"Wakelock"}) + public void run() { + if (d(this.m)) { + this.o.acquire(b.a); + } + try { + this.p.e(true); + if (!this.n.d()) { + this.p.e(false); + if (d(this.m)) { + try { + this.o.release(); + } catch (RuntimeException unused) { + Log.i("FirebaseMessaging", "TopicsSyncTask's wakelock was already released due to timeout."); + } + } + } else if (!b(this.m) || e()) { + if (this.p.f()) { + this.p.e(false); + } else { + this.p.g(this.q); + } + if (d(this.m)) { + try { + this.o.release(); + } catch (RuntimeException unused2) { + Log.i("FirebaseMessaging", "TopicsSyncTask's wakelock was already released due to timeout."); + } + } + } else { + new a(this).a(); + if (d(this.m)) { + try { + this.o.release(); + } catch (RuntimeException unused3) { + Log.i("FirebaseMessaging", "TopicsSyncTask's wakelock was already released due to timeout."); + } + } + } + } catch (IOException e) { + String valueOf = String.valueOf(e.getMessage()); + Log.e("FirebaseMessaging", valueOf.length() != 0 ? "Failed to sync topics. Won't retry sync. ".concat(valueOf) : new String("Failed to sync topics. Won't retry sync. ")); + this.p.e(false); + if (d(this.m)) { + try { + this.o.release(); + } catch (RuntimeException unused4) { + Log.i("FirebaseMessaging", "TopicsSyncTask's wakelock was already released due to timeout."); + } + } + } catch (Throwable th) { + if (d(this.m)) { + try { + this.o.release(); + } catch (RuntimeException unused5) { + Log.i("FirebaseMessaging", "TopicsSyncTask's wakelock was already released due to timeout."); + } + } + throw th; + } + } +} diff --git a/app/src/main/java/b/i/c/x/a.java b/app/src/main/java/b/i/c/x/a.java new file mode 100644 index 0000000000..0ac5883b29 --- /dev/null +++ b/app/src/main/java/b/i/c/x/a.java @@ -0,0 +1,49 @@ +package b.i.c.x; + +import java.util.Objects; +/* compiled from: AutoValue_LibraryVersion */ +public final class a extends e { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final String f1787b; + + public a(String str, String str2) { + Objects.requireNonNull(str, "Null libraryName"); + this.a = str; + Objects.requireNonNull(str2, "Null version"); + this.f1787b = str2; + } + + @Override // b.i.c.x.e + public String a() { + return this.a; + } + + @Override // b.i.c.x.e + public String b() { + return this.f1787b; + } + + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof e)) { + return false; + } + e eVar = (e) obj; + return this.a.equals(eVar.a()) && this.f1787b.equals(eVar.b()); + } + + public int hashCode() { + return ((this.a.hashCode() ^ 1000003) * 1000003) ^ this.f1787b.hashCode(); + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("LibraryVersion{libraryName="); + R.append(this.a); + R.append(", version="); + return b.d.b.a.a.H(R, this.f1787b, "}"); + } +} diff --git a/app/src/main/java/b/i/c/x/b.java b/app/src/main/java/b/i/c/x/b.java new file mode 100644 index 0000000000..789214c89f --- /dev/null +++ b/app/src/main/java/b/i/c/x/b.java @@ -0,0 +1,25 @@ +package b.i.c.x; + +import b.i.c.l.e; +import b.i.c.l.f; +import java.util.Set; +/* compiled from: DefaultUserAgentPublisher */ +public final /* synthetic */ class b implements f { + public static final b a = new b(); + + @Override // b.i.c.l.f + public Object a(e eVar) { + Set d = eVar.d(e.class); + d dVar = d.a; + if (dVar == null) { + synchronized (d.class) { + dVar = d.a; + if (dVar == null) { + dVar = new d(); + d.a = dVar; + } + } + } + return new c(d, dVar); + } +} diff --git a/app/src/main/java/b/i/c/x/c.java b/app/src/main/java/b/i/c/x/c.java new file mode 100644 index 0000000000..7b5041e1d6 --- /dev/null +++ b/app/src/main/java/b/i/c/x/c.java @@ -0,0 +1,55 @@ +package b.i.c.x; + +import com.discord.widgets.chat.input.MentionUtilsKt; +import java.util.Collections; +import java.util.Iterator; +import java.util.Set; +/* compiled from: DefaultUserAgentPublisher */ +public class c implements h { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final d f1788b; + + public c(Set set, d dVar) { + this.a = a(set); + this.f1788b = dVar; + } + + public static String a(Set set) { + StringBuilder sb = new StringBuilder(); + Iterator it = set.iterator(); + while (it.hasNext()) { + e next = it.next(); + sb.append(next.a()); + sb.append(MentionUtilsKt.SLASH_CHAR); + sb.append(next.b()); + if (it.hasNext()) { + sb.append(' '); + } + } + return sb.toString(); + } + + @Override // b.i.c.x.h + public String getUserAgent() { + Set unmodifiableSet; + Set unmodifiableSet2; + d dVar = this.f1788b; + synchronized (dVar.f1789b) { + unmodifiableSet = Collections.unmodifiableSet(dVar.f1789b); + } + if (unmodifiableSet.isEmpty()) { + return this.a; + } + StringBuilder sb = new StringBuilder(); + sb.append(this.a); + sb.append(' '); + d dVar2 = this.f1788b; + synchronized (dVar2.f1789b) { + unmodifiableSet2 = Collections.unmodifiableSet(dVar2.f1789b); + } + sb.append(a(unmodifiableSet2)); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/c/x/d.java b/app/src/main/java/b/i/c/x/d.java new file mode 100644 index 0000000000..ad76cd003f --- /dev/null +++ b/app/src/main/java/b/i/c/x/d.java @@ -0,0 +1,11 @@ +package b.i.c.x; + +import java.util.HashSet; +import java.util.Set; +/* compiled from: GlobalLibraryVersionRegistrar */ +public class d { + public static volatile d a; + + /* renamed from: b reason: collision with root package name */ + public final Set f1789b = new HashSet(); +} diff --git a/app/src/main/java/b/i/c/x/e.java b/app/src/main/java/b/i/c/x/e.java new file mode 100644 index 0000000000..35bdd50917 --- /dev/null +++ b/app/src/main/java/b/i/c/x/e.java @@ -0,0 +1,10 @@ +package b.i.c.x; + +import com.google.auto.value.AutoValue; +/* compiled from: LibraryVersion */ +@AutoValue +public abstract class e { + public abstract String a(); + + public abstract String b(); +} diff --git a/app/src/main/java/b/i/c/x/f.java b/app/src/main/java/b/i/c/x/f.java new file mode 100644 index 0000000000..181f3b393c --- /dev/null +++ b/app/src/main/java/b/i/c/x/f.java @@ -0,0 +1,21 @@ +package b.i.c.x; + +import android.content.Context; +import b.i.c.l.e; +/* compiled from: LibraryVersionComponent */ +public final /* synthetic */ class f implements b.i.c.l.f { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final g f1790b; + + public f(String str, g gVar) { + this.a = str; + this.f1790b = gVar; + } + + @Override // b.i.c.l.f + public Object a(e eVar) { + return new a(this.a, this.f1790b.a((Context) eVar.a(Context.class))); + } +} diff --git a/app/src/main/java/b/i/c/x/g.java b/app/src/main/java/b/i/c/x/g.java new file mode 100644 index 0000000000..79e10b2694 --- /dev/null +++ b/app/src/main/java/b/i/c/x/g.java @@ -0,0 +1,5 @@ +package b.i.c.x; +/* compiled from: LibraryVersionComponent */ +public interface g { + String a(T t); +} diff --git a/app/src/main/java/b/i/c/x/h.java b/app/src/main/java/b/i/c/x/h.java new file mode 100644 index 0000000000..84c8170513 --- /dev/null +++ b/app/src/main/java/b/i/c/x/h.java @@ -0,0 +1,5 @@ +package b.i.c.x; +/* compiled from: UserAgentPublisher */ +public interface h { + String getUserAgent(); +} diff --git a/app/src/main/java/b/i/d/a.java b/app/src/main/java/b/i/d/a.java new file mode 100644 index 0000000000..87c029261d --- /dev/null +++ b/app/src/main/java/b/i/d/a.java @@ -0,0 +1,7 @@ +package b.i.d; +/* compiled from: ExclusionStrategy */ +public interface a { + boolean a(b bVar); + + boolean b(Class cls); +} diff --git a/app/src/main/java/b/i/d/b.java b/app/src/main/java/b/i/d/b.java new file mode 100644 index 0000000000..aebddf0827 --- /dev/null +++ b/app/src/main/java/b/i/d/b.java @@ -0,0 +1,8 @@ +package b.i.d; + +import java.lang.reflect.Field; +/* compiled from: FieldAttributes */ +public final class b { + public b(Field field) { + } +} diff --git a/app/src/main/java/b/i/d/c.java b/app/src/main/java/b/i/d/c.java new file mode 100644 index 0000000000..b211566604 --- /dev/null +++ b/app/src/main/java/b/i/d/c.java @@ -0,0 +1,78 @@ +package b.i.d; + +import java.lang.reflect.Field; +import java.util.Locale; +/* compiled from: FieldNamingPolicy */ +public enum c implements d { + IDENTITY { + @Override // b.i.d.d + public String f(Field field) { + return field.getName(); + } + }, + UPPER_CAMEL_CASE { + @Override // b.i.d.d + public String f(Field field) { + return c.h(field.getName()); + } + }, + UPPER_CAMEL_CASE_WITH_SPACES { + @Override // b.i.d.d + public String f(Field field) { + return c.h(c.g(field.getName(), " ")); + } + }, + LOWER_CASE_WITH_UNDERSCORES { + @Override // b.i.d.d + public String f(Field field) { + return c.g(field.getName(), "_").toLowerCase(Locale.ENGLISH); + } + }, + LOWER_CASE_WITH_DASHES { + @Override // b.i.d.d + public String f(Field field) { + return c.g(field.getName(), "-").toLowerCase(Locale.ENGLISH); + } + }, + LOWER_CASE_WITH_DOTS { + @Override // b.i.d.d + public String f(Field field) { + return c.g(field.getName(), ".").toLowerCase(Locale.ENGLISH); + } + }; + + public c(a aVar) { + } + + public static String g(String str, String str2) { + StringBuilder sb = new StringBuilder(); + int length = str.length(); + for (int i = 0; i < length; i++) { + char charAt = str.charAt(i); + if (Character.isUpperCase(charAt) && sb.length() != 0) { + sb.append(str2); + } + sb.append(charAt); + } + return sb.toString(); + } + + public static String h(String str) { + int length = str.length() - 1; + int i = 0; + while (!Character.isLetter(str.charAt(i)) && i < length) { + i++; + } + char charAt = str.charAt(i); + if (Character.isUpperCase(charAt)) { + return str; + } + char upperCase = Character.toUpperCase(charAt); + if (i == 0) { + StringBuilder N = b.d.b.a.a.N(upperCase); + N.append(str.substring(1)); + return N.toString(); + } + return str.substring(0, i) + upperCase + str.substring(i + 1); + } +} diff --git a/app/src/main/java/b/i/d/d.java b/app/src/main/java/b/i/d/d.java new file mode 100644 index 0000000000..fcdd7d1a43 --- /dev/null +++ b/app/src/main/java/b/i/d/d.java @@ -0,0 +1,7 @@ +package b.i.d; + +import java.lang.reflect.Field; +/* compiled from: FieldNamingStrategy */ +public interface d { + String f(Field field); +} diff --git a/app/src/main/java/b/i/d/e.java b/app/src/main/java/b/i/d/e.java new file mode 100644 index 0000000000..539da16ba7 --- /dev/null +++ b/app/src/main/java/b/i/d/e.java @@ -0,0 +1,77 @@ +package b.i.d; + +import b.i.a.f.e.o.f; +import com.google.gson.DefaultDateTypeAdapter; +import com.google.gson.Gson; +import com.google.gson.TypeAdapter; +import com.google.gson.internal.Excluder; +import com.google.gson.internal.bind.TreeTypeAdapter; +import com.google.gson.internal.bind.TypeAdapters; +import com.google.gson.reflect.TypeToken; +import java.lang.reflect.Type; +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +/* compiled from: GsonBuilder */ +public final class e { + public Excluder a = Excluder.j; + + /* renamed from: b reason: collision with root package name */ + public n f1791b = n.DEFAULT; + public d c = c.IDENTITY; + public final Map> d = new HashMap(); + public final List e = new ArrayList(); + public final List f = new ArrayList(); + public boolean g = false; + public int h = 2; + public int i = 2; + public boolean j = true; + + public Gson a() { + ArrayList arrayList = new ArrayList(this.f.size() + this.e.size() + 3); + arrayList.addAll(this.e); + Collections.reverse(arrayList); + ArrayList arrayList2 = new ArrayList(this.f); + Collections.reverse(arrayList2); + arrayList.addAll(arrayList2); + int i = this.h; + int i2 = this.i; + if (!(i == 2 || i2 == 2)) { + DefaultDateTypeAdapter defaultDateTypeAdapter = new DefaultDateTypeAdapter(Date.class, i, i2); + DefaultDateTypeAdapter defaultDateTypeAdapter2 = new DefaultDateTypeAdapter(Timestamp.class, i, i2); + DefaultDateTypeAdapter defaultDateTypeAdapter3 = new DefaultDateTypeAdapter(java.sql.Date.class, i, i2); + TypeAdapter typeAdapter = TypeAdapters.a; + arrayList.add(new TypeAdapters.AnonymousClass32(Date.class, defaultDateTypeAdapter)); + arrayList.add(new TypeAdapters.AnonymousClass32(Timestamp.class, defaultDateTypeAdapter2)); + arrayList.add(new TypeAdapters.AnonymousClass32(java.sql.Date.class, defaultDateTypeAdapter3)); + } + return new Gson(this.a, this.c, this.d, this.g, false, false, this.j, false, false, false, this.f1791b, null, this.h, this.i, this.e, this.f, arrayList); + } + + public e b(Type type, Object obj) { + boolean z2 = obj instanceof m; + boolean z3 = true; + f.v(z2 || (obj instanceof i) || (obj instanceof f) || (obj instanceof TypeAdapter)); + if (obj instanceof f) { + this.d.put(type, (f) obj); + } + if (z2 || (obj instanceof i)) { + TypeToken typeToken = TypeToken.get(type); + List list = this.e; + if (typeToken.getType() != typeToken.getRawType()) { + z3 = false; + } + list.add(new TreeTypeAdapter.SingleTypeFactory(obj, typeToken, z3, null)); + } + if (obj instanceof TypeAdapter) { + List list2 = this.e; + TypeAdapter typeAdapter = TypeAdapters.a; + list2.add(new TypeAdapters.AnonymousClass31(TypeToken.get(type), (TypeAdapter) obj)); + } + return this; + } +} diff --git a/app/src/main/java/b/i/d/f.java b/app/src/main/java/b/i/d/f.java new file mode 100644 index 0000000000..acefe6e507 --- /dev/null +++ b/app/src/main/java/b/i/d/f.java @@ -0,0 +1,7 @@ +package b.i.d; + +import java.lang.reflect.Type; +/* compiled from: InstanceCreator */ +public interface f { + T a(Type type); +} diff --git a/app/src/main/java/b/i/d/g.java b/app/src/main/java/b/i/d/g.java new file mode 100644 index 0000000000..8b4d97a1da --- /dev/null +++ b/app/src/main/java/b/i/d/g.java @@ -0,0 +1,41 @@ +package b.i.d; + +import com.google.gson.JsonElement; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +/* compiled from: JsonArray */ +public final class g extends JsonElement implements Iterable { + public final List j = new ArrayList(); + + @Override // com.google.gson.JsonElement + public int c() { + if (this.j.size() == 1) { + return this.j.get(0).c(); + } + throw new IllegalStateException(); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + return obj == this || ((obj instanceof g) && ((g) obj).j.equals(this.j)); + } + + @Override // com.google.gson.JsonElement + public String g() { + if (this.j.size() == 1) { + return this.j.get(0).g(); + } + throw new IllegalStateException(); + } + + @Override // java.lang.Object + public int hashCode() { + return this.j.hashCode(); + } + + @Override // java.lang.Iterable + public Iterator iterator() { + return this.j.iterator(); + } +} diff --git a/app/src/main/java/b/i/d/h.java b/app/src/main/java/b/i/d/h.java new file mode 100644 index 0000000000..71702c230e --- /dev/null +++ b/app/src/main/java/b/i/d/h.java @@ -0,0 +1,4 @@ +package b.i.d; +/* compiled from: JsonDeserializationContext */ +public interface h { +} diff --git a/app/src/main/java/b/i/d/i.java b/app/src/main/java/b/i/d/i.java new file mode 100644 index 0000000000..c79114615e --- /dev/null +++ b/app/src/main/java/b/i/d/i.java @@ -0,0 +1,9 @@ +package b.i.d; + +import com.google.gson.JsonElement; +import com.google.gson.JsonParseException; +import java.lang.reflect.Type; +/* compiled from: JsonDeserializer */ +public interface i { + T a(JsonElement jsonElement, Type type, h hVar) throws JsonParseException; +} diff --git a/app/src/main/java/b/i/d/j.java b/app/src/main/java/b/i/d/j.java new file mode 100644 index 0000000000..c3b516cac9 --- /dev/null +++ b/app/src/main/java/b/i/d/j.java @@ -0,0 +1,15 @@ +package b.i.d; + +import com.google.gson.JsonElement; +/* compiled from: JsonNull */ +public final class j extends JsonElement { + public static final j a = new j(); + + public boolean equals(Object obj) { + return this == obj || (obj instanceof j); + } + + public int hashCode() { + return j.class.hashCode(); + } +} diff --git a/app/src/main/java/b/i/d/k.java b/app/src/main/java/b/i/d/k.java new file mode 100644 index 0000000000..28957195fe --- /dev/null +++ b/app/src/main/java/b/i/d/k.java @@ -0,0 +1,100 @@ +package b.i.d; + +import b.i.d.q.q; +import com.google.gson.JsonElement; +import java.math.BigInteger; +import java.util.Objects; +/* compiled from: JsonPrimitive */ +public final class k extends JsonElement { + public final Object a; + + public k(Boolean bool) { + Objects.requireNonNull(bool); + this.a = bool; + } + + public k(Number number) { + Objects.requireNonNull(number); + this.a = number; + } + + public k(String str) { + Objects.requireNonNull(str); + this.a = str; + } + + public static boolean j(k kVar) { + Object obj = kVar.a; + if (obj instanceof Number) { + Number number = (Number) obj; + if ((number instanceof BigInteger) || (number instanceof Long) || (number instanceof Integer) || (number instanceof Short) || (number instanceof Byte)) { + return true; + } + } + return false; + } + + @Override // com.google.gson.JsonElement + public int c() { + return this.a instanceof Number ? i().intValue() : Integer.parseInt(g()); + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null || k.class != obj.getClass()) { + return false; + } + k kVar = (k) obj; + if (this.a == null) { + return kVar.a == null; + } + if (j(this) && j(kVar)) { + return i().longValue() == kVar.i().longValue(); + } + Object obj2 = this.a; + if (!(obj2 instanceof Number) || !(kVar.a instanceof Number)) { + return obj2.equals(kVar.a); + } + double doubleValue = i().doubleValue(); + double doubleValue2 = kVar.i().doubleValue(); + if (doubleValue != doubleValue2) { + return Double.isNaN(doubleValue) && Double.isNaN(doubleValue2); + } + return true; + } + + @Override // com.google.gson.JsonElement + public String g() { + Object obj = this.a; + return obj instanceof Number ? i().toString() : obj instanceof Boolean ? ((Boolean) obj).toString() : (String) obj; + } + + public boolean h() { + Object obj = this.a; + return obj instanceof Boolean ? ((Boolean) obj).booleanValue() : Boolean.parseBoolean(g()); + } + + public int hashCode() { + long doubleToLongBits; + if (this.a == null) { + return 31; + } + if (j(this)) { + doubleToLongBits = i().longValue(); + } else { + Object obj = this.a; + if (!(obj instanceof Number)) { + return obj.hashCode(); + } + doubleToLongBits = Double.doubleToLongBits(i().doubleValue()); + } + return (int) ((doubleToLongBits >>> 32) ^ doubleToLongBits); + } + + public Number i() { + Object obj = this.a; + return obj instanceof String ? new q((String) this.a) : (Number) obj; + } +} diff --git a/app/src/main/java/b/i/d/l.java b/app/src/main/java/b/i/d/l.java new file mode 100644 index 0000000000..0def175d51 --- /dev/null +++ b/app/src/main/java/b/i/d/l.java @@ -0,0 +1,4 @@ +package b.i.d; +/* compiled from: JsonSerializationContext */ +public interface l { +} diff --git a/app/src/main/java/b/i/d/m.java b/app/src/main/java/b/i/d/m.java new file mode 100644 index 0000000000..9f6a695b74 --- /dev/null +++ b/app/src/main/java/b/i/d/m.java @@ -0,0 +1,8 @@ +package b.i.d; + +import com.google.gson.JsonElement; +import java.lang.reflect.Type; +/* compiled from: JsonSerializer */ +public interface m { + JsonElement serialize(T t, Type type, l lVar); +} diff --git a/app/src/main/java/b/i/d/n.java b/app/src/main/java/b/i/d/n.java new file mode 100644 index 0000000000..0e97c58603 --- /dev/null +++ b/app/src/main/java/b/i/d/n.java @@ -0,0 +1,11 @@ +package b.i.d; +/* compiled from: LongSerializationPolicy */ +public enum n { + DEFAULT { + }, + STRING { + }; + + public n(a aVar) { + } +} diff --git a/app/src/main/java/b/i/d/o.java b/app/src/main/java/b/i/d/o.java new file mode 100644 index 0000000000..7d7f8a24d3 --- /dev/null +++ b/app/src/main/java/b/i/d/o.java @@ -0,0 +1,9 @@ +package b.i.d; + +import com.google.gson.Gson; +import com.google.gson.TypeAdapter; +import com.google.gson.reflect.TypeToken; +/* compiled from: TypeAdapterFactory */ +public interface o { + TypeAdapter create(Gson gson, TypeToken typeToken); +} diff --git a/app/src/main/java/b/i/d/p/a.java b/app/src/main/java/b/i/d/p/a.java new file mode 100644 index 0000000000..120a0162fc --- /dev/null +++ b/app/src/main/java/b/i/d/p/a.java @@ -0,0 +1,14 @@ +package b.i.d.p; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: JsonAdapter */ +@Target({ElementType.TYPE, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) +public @interface a { + boolean nullSafe() default true; + + Class value(); +} diff --git a/app/src/main/java/b/i/d/p/b.java b/app/src/main/java/b/i/d/p/b.java new file mode 100644 index 0000000000..9dd6981035 --- /dev/null +++ b/app/src/main/java/b/i/d/p/b.java @@ -0,0 +1,16 @@ +package b.i.d.p; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: SerializedName */ +@Target({ElementType.FIELD, ElementType.METHOD}) +@Documented +@Retention(RetentionPolicy.RUNTIME) +public @interface b { + String[] alternate() default {}; + + String value(); +} diff --git a/app/src/main/java/b/i/d/p/c.java b/app/src/main/java/b/i/d/p/c.java new file mode 100644 index 0000000000..fe2a4ffd58 --- /dev/null +++ b/app/src/main/java/b/i/d/p/c.java @@ -0,0 +1,14 @@ +package b.i.d.p; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: Since */ +@Target({ElementType.FIELD, ElementType.TYPE}) +@Documented +@Retention(RetentionPolicy.RUNTIME) +public @interface c { + double value(); +} diff --git a/app/src/main/java/b/i/d/p/d.java b/app/src/main/java/b/i/d/p/d.java new file mode 100644 index 0000000000..84505f06f8 --- /dev/null +++ b/app/src/main/java/b/i/d/p/d.java @@ -0,0 +1,14 @@ +package b.i.d.p; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +/* compiled from: Until */ +@Target({ElementType.FIELD, ElementType.TYPE}) +@Documented +@Retention(RetentionPolicy.RUNTIME) +public @interface d { + double value(); +} diff --git a/app/src/main/java/b/i/d/q/a.java b/app/src/main/java/b/i/d/q/a.java new file mode 100644 index 0000000000..038613f2b2 --- /dev/null +++ b/app/src/main/java/b/i/d/q/a.java @@ -0,0 +1,414 @@ +package b.i.d.q; + +import b.i.a.f.e.o.f; +import java.io.Serializable; +import java.lang.reflect.Array; +import java.lang.reflect.GenericArrayType; +import java.lang.reflect.GenericDeclaration; +import java.lang.reflect.Modifier; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.lang.reflect.TypeVariable; +import java.lang.reflect.WildcardType; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashSet; +import java.util.NoSuchElementException; +import java.util.Objects; +/* compiled from: $Gson$Types */ +public final class a { + public static final Type[] a = new Type[0]; + + /* compiled from: $Gson$Types */ + /* renamed from: b.i.d.q.a$a reason: collision with other inner class name */ + public static final class C0149a implements GenericArrayType, Serializable { + private static final long serialVersionUID = 0; + private final Type componentType; + + public C0149a(Type type) { + this.componentType = a.a(type); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + return (obj instanceof GenericArrayType) && a.c(this, (GenericArrayType) obj); + } + + @Override // java.lang.reflect.GenericArrayType + public Type getGenericComponentType() { + return this.componentType; + } + + @Override // java.lang.Object + public int hashCode() { + return this.componentType.hashCode(); + } + + @Override // java.lang.Object + public String toString() { + return a.i(this.componentType) + "[]"; + } + } + + /* compiled from: $Gson$Types */ + public static final class b implements ParameterizedType, Serializable { + private static final long serialVersionUID = 0; + private final Type ownerType; + private final Type rawType; + private final Type[] typeArguments; + + public b(Type type, Type type2, Type... typeArr) { + if (type2 instanceof Class) { + Class cls = (Class) type2; + boolean z2 = true; + boolean z3 = Modifier.isStatic(cls.getModifiers()) || cls.getEnclosingClass() == null; + if (type == null && !z3) { + z2 = false; + } + f.v(z2); + } + this.ownerType = type == null ? null : a.a(type); + this.rawType = a.a(type2); + Type[] typeArr2 = (Type[]) typeArr.clone(); + this.typeArguments = typeArr2; + int length = typeArr2.length; + for (int i = 0; i < length; i++) { + Objects.requireNonNull(this.typeArguments[i]); + a.b(this.typeArguments[i]); + Type[] typeArr3 = this.typeArguments; + typeArr3[i] = a.a(typeArr3[i]); + } + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + return (obj instanceof ParameterizedType) && a.c(this, (ParameterizedType) obj); + } + + @Override // java.lang.reflect.ParameterizedType + public Type[] getActualTypeArguments() { + return (Type[]) this.typeArguments.clone(); + } + + @Override // java.lang.reflect.ParameterizedType + public Type getOwnerType() { + return this.ownerType; + } + + @Override // java.lang.reflect.ParameterizedType + public Type getRawType() { + return this.rawType; + } + + @Override // java.lang.Object + public int hashCode() { + int hashCode = Arrays.hashCode(this.typeArguments) ^ this.rawType.hashCode(); + Type type = this.ownerType; + return hashCode ^ (type != null ? type.hashCode() : 0); + } + + @Override // java.lang.Object + public String toString() { + int length = this.typeArguments.length; + if (length == 0) { + return a.i(this.rawType); + } + StringBuilder sb = new StringBuilder((length + 1) * 30); + sb.append(a.i(this.rawType)); + sb.append("<"); + sb.append(a.i(this.typeArguments[0])); + for (int i = 1; i < length; i++) { + sb.append(", "); + sb.append(a.i(this.typeArguments[i])); + } + sb.append(">"); + return sb.toString(); + } + } + + /* compiled from: $Gson$Types */ + public static final class c implements WildcardType, Serializable { + private static final long serialVersionUID = 0; + private final Type lowerBound; + private final Type upperBound; + + public c(Type[] typeArr, Type[] typeArr2) { + boolean z2 = true; + f.v(typeArr2.length <= 1); + f.v(typeArr.length == 1); + if (typeArr2.length == 1) { + Objects.requireNonNull(typeArr2[0]); + a.b(typeArr2[0]); + f.v(typeArr[0] != Object.class ? false : z2); + this.lowerBound = a.a(typeArr2[0]); + this.upperBound = Object.class; + return; + } + Objects.requireNonNull(typeArr[0]); + a.b(typeArr[0]); + this.lowerBound = null; + this.upperBound = a.a(typeArr[0]); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + return (obj instanceof WildcardType) && a.c(this, (WildcardType) obj); + } + + @Override // java.lang.reflect.WildcardType + public Type[] getLowerBounds() { + Type type = this.lowerBound; + return type != null ? new Type[]{type} : a.a; + } + + @Override // java.lang.reflect.WildcardType + public Type[] getUpperBounds() { + return new Type[]{this.upperBound}; + } + + @Override // java.lang.Object + public int hashCode() { + Type type = this.lowerBound; + return (type != null ? type.hashCode() + 31 : 1) ^ (this.upperBound.hashCode() + 31); + } + + @Override // java.lang.Object + public String toString() { + if (this.lowerBound != null) { + StringBuilder R = b.d.b.a.a.R("? super "); + R.append(a.i(this.lowerBound)); + return R.toString(); + } else if (this.upperBound == Object.class) { + return "?"; + } else { + StringBuilder R2 = b.d.b.a.a.R("? extends "); + R2.append(a.i(this.upperBound)); + return R2.toString(); + } + } + } + + public static Type a(Type type) { + if (type instanceof Class) { + Class cls = (Class) type; + return cls.isArray() ? new C0149a(a(cls.getComponentType())) : cls; + } else if (type instanceof ParameterizedType) { + ParameterizedType parameterizedType = (ParameterizedType) type; + return new b(parameterizedType.getOwnerType(), parameterizedType.getRawType(), parameterizedType.getActualTypeArguments()); + } else if (type instanceof GenericArrayType) { + return new C0149a(((GenericArrayType) type).getGenericComponentType()); + } else { + if (!(type instanceof WildcardType)) { + return type; + } + WildcardType wildcardType = (WildcardType) type; + return new c(wildcardType.getUpperBounds(), wildcardType.getLowerBounds()); + } + } + + public static void b(Type type) { + f.v(!(type instanceof Class) || !((Class) type).isPrimitive()); + } + + public static boolean c(Type type, Type type2) { + if (type == type2) { + return true; + } + if (type instanceof Class) { + return type.equals(type2); + } + if (type instanceof ParameterizedType) { + if (!(type2 instanceof ParameterizedType)) { + return false; + } + ParameterizedType parameterizedType = (ParameterizedType) type; + ParameterizedType parameterizedType2 = (ParameterizedType) type2; + Type ownerType = parameterizedType.getOwnerType(); + Type ownerType2 = parameterizedType2.getOwnerType(); + return (ownerType == ownerType2 || (ownerType != null && ownerType.equals(ownerType2))) && parameterizedType.getRawType().equals(parameterizedType2.getRawType()) && Arrays.equals(parameterizedType.getActualTypeArguments(), parameterizedType2.getActualTypeArguments()); + } else if (type instanceof GenericArrayType) { + if (!(type2 instanceof GenericArrayType)) { + return false; + } + return c(((GenericArrayType) type).getGenericComponentType(), ((GenericArrayType) type2).getGenericComponentType()); + } else if (type instanceof WildcardType) { + if (!(type2 instanceof WildcardType)) { + return false; + } + WildcardType wildcardType = (WildcardType) type; + WildcardType wildcardType2 = (WildcardType) type2; + return Arrays.equals(wildcardType.getUpperBounds(), wildcardType2.getUpperBounds()) && Arrays.equals(wildcardType.getLowerBounds(), wildcardType2.getLowerBounds()); + } else if (!(type instanceof TypeVariable) || !(type2 instanceof TypeVariable)) { + return false; + } else { + TypeVariable typeVariable = (TypeVariable) type; + TypeVariable typeVariable2 = (TypeVariable) type2; + return typeVariable.getGenericDeclaration() == typeVariable2.getGenericDeclaration() && typeVariable.getName().equals(typeVariable2.getName()); + } + } + + public static Type d(Type type, Class cls, Class cls2) { + if (cls2 == cls) { + return type; + } + if (cls2.isInterface()) { + Class[] interfaces = cls.getInterfaces(); + int length = interfaces.length; + for (int i = 0; i < length; i++) { + if (interfaces[i] == cls2) { + return cls.getGenericInterfaces()[i]; + } + if (cls2.isAssignableFrom(interfaces[i])) { + return d(cls.getGenericInterfaces()[i], interfaces[i], cls2); + } + } + } + if (!cls.isInterface()) { + while (cls != Object.class) { + Class superclass = cls.getSuperclass(); + if (superclass == cls2) { + return cls.getGenericSuperclass(); + } + if (cls2.isAssignableFrom(superclass)) { + return d(cls.getGenericSuperclass(), superclass, cls2); + } + cls = superclass; + } + } + return cls2; + } + + public static Class e(Type type) { + if (type instanceof Class) { + return (Class) type; + } + if (type instanceof ParameterizedType) { + Type rawType = ((ParameterizedType) type).getRawType(); + f.v(rawType instanceof Class); + return (Class) rawType; + } else if (type instanceof GenericArrayType) { + return Array.newInstance(e(((GenericArrayType) type).getGenericComponentType()), 0).getClass(); + } else { + if (type instanceof TypeVariable) { + return Object.class; + } + if (type instanceof WildcardType) { + return e(((WildcardType) type).getUpperBounds()[0]); + } + String name = type == null ? "null" : type.getClass().getName(); + throw new IllegalArgumentException("Expected a Class, ParameterizedType, or GenericArrayType, but <" + type + "> is of type " + name); + } + } + + public static Type f(Type type, Class cls, Class cls2) { + if (type instanceof WildcardType) { + type = ((WildcardType) type).getUpperBounds()[0]; + } + f.v(cls2.isAssignableFrom(cls)); + return g(type, cls, d(type, cls, cls2)); + } + + public static Type g(Type type, Class cls, Type type2) { + return h(type, cls, type2, new HashSet()); + } + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:85:? */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:83:0x004b */ + public static Type h(Type type, Class cls, Type type2, Collection collection) { + TypeVariable typeVariable; + do { + int i = 0; + if (type2 instanceof TypeVariable) { + typeVariable = (TypeVariable) type2; + if (collection.contains(typeVariable)) { + return type2; + } + collection.add(typeVariable); + GenericDeclaration genericDeclaration = typeVariable.getGenericDeclaration(); + Class cls2 = genericDeclaration instanceof Class ? (Class) genericDeclaration : null; + if (cls2 != null) { + Type d = d(type, cls, cls2); + if (d instanceof ParameterizedType) { + TypeVariable[] typeParameters = cls2.getTypeParameters(); + int length = typeParameters.length; + while (i < length) { + if (typeVariable.equals(typeParameters[i])) { + type2 = ((ParameterizedType) d).getActualTypeArguments()[i]; + continue; + } else { + i++; + } + } + throw new NoSuchElementException(); + } + } + type2 = typeVariable; + continue; + } else { + if (type2 instanceof Class) { + Class cls3 = (Class) type2; + if (cls3.isArray()) { + Class componentType = cls3.getComponentType(); + Type h = h(type, cls, componentType, collection); + return componentType == h ? cls3 : new C0149a(h); + } + } + if (type2 instanceof GenericArrayType) { + GenericArrayType genericArrayType = (GenericArrayType) type2; + Type genericComponentType = genericArrayType.getGenericComponentType(); + Type h2 = h(type, cls, genericComponentType, collection); + return genericComponentType == h2 ? genericArrayType : new C0149a(h2); + } else if (type2 instanceof ParameterizedType) { + ParameterizedType parameterizedType = (ParameterizedType) type2; + Type ownerType = parameterizedType.getOwnerType(); + Type h3 = h(type, cls, ownerType, collection); + boolean z2 = h3 != ownerType; + Type[] actualTypeArguments = parameterizedType.getActualTypeArguments(); + int length2 = actualTypeArguments.length; + while (i < length2) { + Type h4 = h(type, cls, actualTypeArguments[i], collection); + if (h4 != actualTypeArguments[i]) { + if (!z2) { + actualTypeArguments = (Type[]) actualTypeArguments.clone(); + z2 = true; + } + actualTypeArguments[i] = h4; + } + i++; + } + return z2 ? new b(h3, parameterizedType.getRawType(), actualTypeArguments) : parameterizedType; + } else { + boolean z3 = type2 instanceof WildcardType; + WildcardType wildcardType = type2; + if (z3) { + WildcardType wildcardType2 = (WildcardType) type2; + Type[] lowerBounds = wildcardType2.getLowerBounds(); + Type[] upperBounds = wildcardType2.getUpperBounds(); + if (lowerBounds.length == 1) { + Type h5 = h(type, cls, lowerBounds[0], collection); + wildcardType = wildcardType2; + if (h5 != lowerBounds[0]) { + return new c(new Type[]{Object.class}, h5 instanceof WildcardType ? ((WildcardType) h5).getLowerBounds() : new Type[]{h5}); + } + } else { + wildcardType = wildcardType2; + if (upperBounds.length == 1) { + Type h6 = h(type, cls, upperBounds[0], collection); + wildcardType = wildcardType2; + if (h6 != upperBounds[0]) { + return new c(h6 instanceof WildcardType ? ((WildcardType) h6).getUpperBounds() : new Type[]{h6}, a); + } + } + } + } + return wildcardType; + } + } + } while (type2 != typeVariable); + return type2; + } + + public static String i(Type type) { + return type instanceof Class ? ((Class) type).getName() : type.toString(); + } +} diff --git a/app/src/main/java/b/i/d/q/b.java b/app/src/main/java/b/i/d/q/b.java new file mode 100644 index 0000000000..6c6de24689 --- /dev/null +++ b/app/src/main/java/b/i/d/q/b.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import java.util.concurrent.ConcurrentHashMap; +/* compiled from: ConstructorConstructor */ +public class b implements r { + public b(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new ConcurrentHashMap(); + } +} diff --git a/app/src/main/java/b/i/d/q/c.java b/app/src/main/java/b/i/d/q/c.java new file mode 100644 index 0000000000..533fe91c5a --- /dev/null +++ b/app/src/main/java/b/i/d/q/c.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import java.util.TreeMap; +/* compiled from: ConstructorConstructor */ +public class c implements r { + public c(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new TreeMap(); + } +} diff --git a/app/src/main/java/b/i/d/q/d.java b/app/src/main/java/b/i/d/q/d.java new file mode 100644 index 0000000000..2d7d020456 --- /dev/null +++ b/app/src/main/java/b/i/d/q/d.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import java.util.LinkedHashMap; +/* compiled from: ConstructorConstructor */ +public class d implements r { + public d(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new LinkedHashMap(); + } +} diff --git a/app/src/main/java/b/i/d/q/e.java b/app/src/main/java/b/i/d/q/e.java new file mode 100644 index 0000000000..03a37654fd --- /dev/null +++ b/app/src/main/java/b/i/d/q/e.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import com.google.gson.internal.LinkedTreeMap; +/* compiled from: ConstructorConstructor */ +public class e implements r { + public e(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new LinkedTreeMap(); + } +} diff --git a/app/src/main/java/b/i/d/q/f.java b/app/src/main/java/b/i/d/q/f.java new file mode 100644 index 0000000000..6c34835bba --- /dev/null +++ b/app/src/main/java/b/i/d/q/f.java @@ -0,0 +1,59 @@ +package b.i.d.q; + +import b.d.b.a.a; +import java.io.ObjectInputStream; +import java.io.ObjectStreamClass; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.lang.reflect.Type; +/* compiled from: ConstructorConstructor */ +public class f implements r { + public final w a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Class f1792b; + public final /* synthetic */ Type c; + + public f(g gVar, Class cls, Type type) { + w wVar; + this.f1792b = cls; + this.c = type; + try { + Class cls2 = Class.forName("sun.misc.Unsafe"); + Field declaredField = cls2.getDeclaredField("theUnsafe"); + declaredField.setAccessible(true); + wVar = new s(cls2.getMethod("allocateInstance", Class.class), declaredField.get(null)); + } catch (Exception unused) { + try { + Method declaredMethod = ObjectStreamClass.class.getDeclaredMethod("getConstructorId", Class.class); + declaredMethod.setAccessible(true); + int intValue = ((Integer) declaredMethod.invoke(null, Object.class)).intValue(); + Method declaredMethod2 = ObjectStreamClass.class.getDeclaredMethod("newInstance", Class.class, Integer.TYPE); + declaredMethod2.setAccessible(true); + wVar = new t(declaredMethod2, intValue); + } catch (Exception unused2) { + try { + Method declaredMethod3 = ObjectInputStream.class.getDeclaredMethod("newInstance", Class.class, Class.class); + declaredMethod3.setAccessible(true); + wVar = new u(declaredMethod3); + } catch (Exception unused3) { + wVar = new v(); + } + } + } + this.a = wVar; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + try { + return this.a.b(this.f1792b); + } catch (Exception e) { + StringBuilder R = a.R("Unable to invoke no-args constructor for "); + R.append(this.c); + R.append(". Registering an InstanceCreator with Gson for this type may fix this problem."); + throw new RuntimeException(R.toString(), e); + } + } +} diff --git a/app/src/main/java/b/i/d/q/g.java b/app/src/main/java/b/i/d/q/g.java new file mode 100644 index 0000000000..72aea73663 --- /dev/null +++ b/app/src/main/java/b/i/d/q/g.java @@ -0,0 +1,102 @@ +package b.i.d.q; + +import b.i.d.f; +import com.google.gson.reflect.TypeToken; +import java.lang.reflect.Constructor; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.util.Collection; +import java.util.EnumSet; +import java.util.Map; +import java.util.Queue; +import java.util.Set; +import java.util.SortedMap; +import java.util.SortedSet; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.ConcurrentNavigableMap; +/* compiled from: ConstructorConstructor */ +public final class g { + public final Map> a; + + /* renamed from: b reason: collision with root package name */ + public final b.i.d.q.y.b f1793b = b.i.d.q.y.b.a; + + /* compiled from: ConstructorConstructor */ + public class a implements r { + public final /* synthetic */ f a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Type f1794b; + + public a(g gVar, f fVar, Type type) { + this.a = fVar; + this.f1794b = type; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return this.a.a(this.f1794b); + } + } + + /* compiled from: ConstructorConstructor */ + public class b implements r { + public final /* synthetic */ f a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Type f1795b; + + public b(g gVar, f fVar, Type type) { + this.a = fVar; + this.f1795b = type; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return this.a.a(this.f1795b); + } + } + + public g(Map> map) { + this.a = map; + } + + public r a(TypeToken typeToken) { + h hVar; + Type type = typeToken.getType(); + Class rawType = typeToken.getRawType(); + f fVar = this.a.get(type); + if (fVar != null) { + return new a(this, fVar, type); + } + f fVar2 = this.a.get(rawType); + if (fVar2 != null) { + return new b(this, fVar2, type); + } + r rVar = null; + try { + Constructor declaredConstructor = rawType.getDeclaredConstructor(new Class[0]); + if (!declaredConstructor.isAccessible()) { + this.f1793b.a(declaredConstructor); + } + hVar = new h(this, declaredConstructor); + } catch (NoSuchMethodException unused) { + hVar = null; + } + if (hVar != null) { + return hVar; + } + if (Collection.class.isAssignableFrom(rawType)) { + rVar = SortedSet.class.isAssignableFrom(rawType) ? new i(this) : EnumSet.class.isAssignableFrom(rawType) ? new j(this, type) : Set.class.isAssignableFrom(rawType) ? new k(this) : Queue.class.isAssignableFrom(rawType) ? new l(this) : new m(this); + } else if (Map.class.isAssignableFrom(rawType)) { + rVar = ConcurrentNavigableMap.class.isAssignableFrom(rawType) ? new n(this) : ConcurrentMap.class.isAssignableFrom(rawType) ? new b(this) : SortedMap.class.isAssignableFrom(rawType) ? new c(this) : (!(type instanceof ParameterizedType) || String.class.isAssignableFrom(TypeToken.get(((ParameterizedType) type).getActualTypeArguments()[0]).getRawType())) ? new e(this) : new d(this); + } + return rVar != null ? rVar : new f(this, rawType, type); + } + + public String toString() { + return this.a.toString(); + } +} diff --git a/app/src/main/java/b/i/d/q/h.java b/app/src/main/java/b/i/d/q/h.java new file mode 100644 index 0000000000..28fe5f1857 --- /dev/null +++ b/app/src/main/java/b/i/d/q/h.java @@ -0,0 +1,33 @@ +package b.i.d.q; + +import b.d.b.a.a; +import java.lang.reflect.Constructor; +import java.lang.reflect.InvocationTargetException; +/* compiled from: ConstructorConstructor */ +public class h implements r { + public final /* synthetic */ Constructor a; + + public h(g gVar, Constructor constructor) { + this.a = constructor; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + try { + return this.a.newInstance(null); + } catch (InstantiationException e) { + StringBuilder R = a.R("Failed to invoke "); + R.append(this.a); + R.append(" with no args"); + throw new RuntimeException(R.toString(), e); + } catch (InvocationTargetException e2) { + StringBuilder R2 = a.R("Failed to invoke "); + R2.append(this.a); + R2.append(" with no args"); + throw new RuntimeException(R2.toString(), e2.getTargetException()); + } catch (IllegalAccessException e3) { + throw new AssertionError(e3); + } + } +} diff --git a/app/src/main/java/b/i/d/q/i.java b/app/src/main/java/b/i/d/q/i.java new file mode 100644 index 0000000000..f35204865a --- /dev/null +++ b/app/src/main/java/b/i/d/q/i.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import java.util.TreeSet; +/* compiled from: ConstructorConstructor */ +public class i implements r { + public i(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new TreeSet(); + } +} diff --git a/app/src/main/java/b/i/d/q/j.java b/app/src/main/java/b/i/d/q/j.java new file mode 100644 index 0000000000..bbfb6b6dcc --- /dev/null +++ b/app/src/main/java/b/i/d/q/j.java @@ -0,0 +1,33 @@ +package b.i.d.q; + +import b.d.b.a.a; +import com.google.gson.JsonIOException; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.util.EnumSet; +/* compiled from: ConstructorConstructor */ +public class j implements r { + public final /* synthetic */ Type a; + + public j(g gVar, Type type) { + this.a = type; + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + Type type = this.a; + if (type instanceof ParameterizedType) { + Type type2 = ((ParameterizedType) type).getActualTypeArguments()[0]; + if (type2 instanceof Class) { + return EnumSet.noneOf((Class) type2); + } + StringBuilder R = a.R("Invalid EnumSet type: "); + R.append(this.a.toString()); + throw new JsonIOException(R.toString()); + } + StringBuilder R2 = a.R("Invalid EnumSet type: "); + R2.append(this.a.toString()); + throw new JsonIOException(R2.toString()); + } +} diff --git a/app/src/main/java/b/i/d/q/k.java b/app/src/main/java/b/i/d/q/k.java new file mode 100644 index 0000000000..23165e24fe --- /dev/null +++ b/app/src/main/java/b/i/d/q/k.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import java.util.LinkedHashSet; +/* compiled from: ConstructorConstructor */ +public class k implements r { + public k(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new LinkedHashSet(); + } +} diff --git a/app/src/main/java/b/i/d/q/l.java b/app/src/main/java/b/i/d/q/l.java new file mode 100644 index 0000000000..7bade5cc8f --- /dev/null +++ b/app/src/main/java/b/i/d/q/l.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import java.util.ArrayDeque; +/* compiled from: ConstructorConstructor */ +public class l implements r { + public l(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new ArrayDeque(); + } +} diff --git a/app/src/main/java/b/i/d/q/m.java b/app/src/main/java/b/i/d/q/m.java new file mode 100644 index 0000000000..8e23020e3c --- /dev/null +++ b/app/src/main/java/b/i/d/q/m.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import java.util.ArrayList; +/* compiled from: ConstructorConstructor */ +public class m implements r { + public m(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new ArrayList(); + } +} diff --git a/app/src/main/java/b/i/d/q/n.java b/app/src/main/java/b/i/d/q/n.java new file mode 100644 index 0000000000..cd728942d7 --- /dev/null +++ b/app/src/main/java/b/i/d/q/n.java @@ -0,0 +1,14 @@ +package b.i.d.q; + +import java.util.concurrent.ConcurrentSkipListMap; +/* compiled from: ConstructorConstructor */ +public class n implements r { + public n(g gVar) { + } + + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.d.q.r + public T a() { + return new ConcurrentSkipListMap(); + } +} diff --git a/app/src/main/java/b/i/d/q/o.java b/app/src/main/java/b/i/d/q/o.java new file mode 100644 index 0000000000..66e5622de5 --- /dev/null +++ b/app/src/main/java/b/i/d/q/o.java @@ -0,0 +1,38 @@ +package b.i.d.q; +/* compiled from: JavaVersion */ +public final class o { + public static final int a; + + static { + int i; + String property = System.getProperty("java.version"); + try { + String[] split = property.split("[._]"); + i = Integer.parseInt(split[0]); + if (i == 1 && split.length > 1) { + i = Integer.parseInt(split[1]); + } + } catch (NumberFormatException unused) { + i = -1; + } + if (i == -1) { + try { + StringBuilder sb = new StringBuilder(); + for (int i2 = 0; i2 < property.length(); i2++) { + char charAt = property.charAt(i2); + if (!Character.isDigit(charAt)) { + break; + } + sb.append(charAt); + } + i = Integer.parseInt(sb.toString()); + } catch (NumberFormatException unused2) { + i = -1; + } + } + if (i == -1) { + i = 6; + } + a = i; + } +} diff --git a/app/src/main/java/b/i/d/q/p.java b/app/src/main/java/b/i/d/q/p.java new file mode 100644 index 0000000000..53f3682563 --- /dev/null +++ b/app/src/main/java/b/i/d/q/p.java @@ -0,0 +1,5 @@ +package b.i.d.q; +/* compiled from: JsonReaderInternalAccess */ +public abstract class p { + public static p a; +} diff --git a/app/src/main/java/b/i/d/q/q.java b/app/src/main/java/b/i/d/q/q.java new file mode 100644 index 0000000000..2d462382c9 --- /dev/null +++ b/app/src/main/java/b/i/d/q/q.java @@ -0,0 +1,71 @@ +package b.i.d.q; + +import java.io.ObjectStreamException; +import java.math.BigDecimal; +/* compiled from: LazilyParsedNumber */ +public final class q extends Number { + private final String value; + + public q(String str) { + this.value = str; + } + + private Object writeReplace() throws ObjectStreamException { + return new BigDecimal(this.value); + } + + @Override // java.lang.Number + public double doubleValue() { + return Double.parseDouble(this.value); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof q)) { + return false; + } + String str = this.value; + String str2 = ((q) obj).value; + return str == str2 || str.equals(str2); + } + + @Override // java.lang.Number + public float floatValue() { + return Float.parseFloat(this.value); + } + + @Override // java.lang.Object + public int hashCode() { + return this.value.hashCode(); + } + + @Override // java.lang.Number + public int intValue() { + try { + return Integer.parseInt(this.value); + } catch (NumberFormatException unused) { + try { + return (int) Long.parseLong(this.value); + } catch (NumberFormatException unused2) { + return new BigDecimal(this.value).intValue(); + } + } + } + + @Override // java.lang.Number + public long longValue() { + try { + return Long.parseLong(this.value); + } catch (NumberFormatException unused) { + return new BigDecimal(this.value).longValue(); + } + } + + @Override // java.lang.Object + public String toString() { + return this.value; + } +} diff --git a/app/src/main/java/b/i/d/q/r.java b/app/src/main/java/b/i/d/q/r.java new file mode 100644 index 0000000000..0aa55fcbc9 --- /dev/null +++ b/app/src/main/java/b/i/d/q/r.java @@ -0,0 +1,5 @@ +package b.i.d.q; +/* compiled from: ObjectConstructor */ +public interface r { + T a(); +} diff --git a/app/src/main/java/b/i/d/q/s.java b/app/src/main/java/b/i/d/q/s.java new file mode 100644 index 0000000000..8cb399c91f --- /dev/null +++ b/app/src/main/java/b/i/d/q/s.java @@ -0,0 +1,21 @@ +package b.i.d.q; + +import java.lang.reflect.Method; +/* compiled from: UnsafeAllocator */ +public class s extends w { + public final /* synthetic */ Method a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ Object f1796b; + + public s(Method method, Object obj) { + this.a = method; + this.f1796b = obj; + } + + @Override // b.i.d.q.w + public T b(Class cls) throws Exception { + w.a(cls); + return (T) this.a.invoke(this.f1796b, cls); + } +} diff --git a/app/src/main/java/b/i/d/q/t.java b/app/src/main/java/b/i/d/q/t.java new file mode 100644 index 0000000000..bf2a899990 --- /dev/null +++ b/app/src/main/java/b/i/d/q/t.java @@ -0,0 +1,21 @@ +package b.i.d.q; + +import java.lang.reflect.Method; +/* compiled from: UnsafeAllocator */ +public class t extends w { + public final /* synthetic */ Method a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ int f1797b; + + public t(Method method, int i) { + this.a = method; + this.f1797b = i; + } + + @Override // b.i.d.q.w + public T b(Class cls) throws Exception { + w.a(cls); + return (T) this.a.invoke(null, cls, Integer.valueOf(this.f1797b)); + } +} diff --git a/app/src/main/java/b/i/d/q/u.java b/app/src/main/java/b/i/d/q/u.java new file mode 100644 index 0000000000..ecdd8e3879 --- /dev/null +++ b/app/src/main/java/b/i/d/q/u.java @@ -0,0 +1,17 @@ +package b.i.d.q; + +import java.lang.reflect.Method; +/* compiled from: UnsafeAllocator */ +public class u extends w { + public final /* synthetic */ Method a; + + public u(Method method) { + this.a = method; + } + + @Override // b.i.d.q.w + public T b(Class cls) throws Exception { + w.a(cls); + return (T) this.a.invoke(null, cls, Object.class); + } +} diff --git a/app/src/main/java/b/i/d/q/v.java b/app/src/main/java/b/i/d/q/v.java new file mode 100644 index 0000000000..df1501770d --- /dev/null +++ b/app/src/main/java/b/i/d/q/v.java @@ -0,0 +1,8 @@ +package b.i.d.q; +/* compiled from: UnsafeAllocator */ +public class v extends w { + @Override // b.i.d.q.w + public T b(Class cls) { + throw new UnsupportedOperationException("Cannot allocate " + cls); + } +} diff --git a/app/src/main/java/b/i/d/q/w.java b/app/src/main/java/b/i/d/q/w.java new file mode 100644 index 0000000000..745505afd0 --- /dev/null +++ b/app/src/main/java/b/i/d/q/w.java @@ -0,0 +1,21 @@ +package b.i.d.q; + +import b.d.b.a.a; +import java.lang.reflect.Modifier; +/* compiled from: UnsafeAllocator */ +public abstract class w { + public static void a(Class cls) { + int modifiers = cls.getModifiers(); + if (Modifier.isInterface(modifiers)) { + StringBuilder R = a.R("Interface can't be instantiated! Interface name: "); + R.append(cls.getName()); + throw new UnsupportedOperationException(R.toString()); + } else if (Modifier.isAbstract(modifiers)) { + StringBuilder R2 = a.R("Abstract class can't be instantiated! Class name: "); + R2.append(cls.getName()); + throw new UnsupportedOperationException(R2.toString()); + } + } + + public abstract T b(Class cls) throws Exception; +} diff --git a/app/src/main/java/b/i/d/q/x/a.java b/app/src/main/java/b/i/d/q/x/a.java new file mode 100644 index 0000000000..b76b9962ab --- /dev/null +++ b/app/src/main/java/b/i/d/q/x/a.java @@ -0,0 +1,346 @@ +package b.i.d.q.x; + +import b.i.d.g; +import b.i.d.j; +import b.i.d.k; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.internal.LinkedTreeMap; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonToken; +import java.io.IOException; +import java.io.Reader; +import java.util.Arrays; +import java.util.Iterator; +import java.util.Map; +/* compiled from: JsonTreeReader */ +public final class a extends JsonReader { + public static final Object A = new Object(); + + /* renamed from: z reason: collision with root package name */ + public static final Reader f1798z = new C0150a(); + public Object[] B = new Object[32]; + public int C = 0; + public String[] D = new String[32]; + public int[] E = new int[32]; + + /* compiled from: JsonTreeReader */ + /* renamed from: b.i.d.q.x.a$a reason: collision with other inner class name */ + public class C0150a extends Reader { + @Override // java.io.Reader, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + throw new AssertionError(); + } + + @Override // java.io.Reader + public int read(char[] cArr, int i, int i2) throws IOException { + throw new AssertionError(); + } + } + + public a(JsonElement jsonElement) { + super(f1798z); + c0(jsonElement); + } + + private String t() { + StringBuilder R = b.d.b.a.a.R(" at path "); + R.append(getPath()); + return R.toString(); + } + + @Override // com.google.gson.stream.JsonReader + public long A() throws IOException { + JsonToken N = N(); + JsonToken jsonToken = JsonToken.NUMBER; + if (N == jsonToken || N == JsonToken.STRING) { + k kVar = (k) X(); + long longValue = kVar.a instanceof Number ? kVar.i().longValue() : Long.parseLong(kVar.g()); + b0(); + int i = this.C; + if (i > 0) { + int[] iArr = this.E; + int i2 = i - 1; + iArr[i2] = iArr[i2] + 1; + } + return longValue; + } + throw new IllegalStateException("Expected " + jsonToken + " but was " + N + t()); + } + + @Override // com.google.gson.stream.JsonReader + public String C() throws IOException { + W(JsonToken.NAME); + Map.Entry entry = (Map.Entry) ((Iterator) X()).next(); + String str = (String) entry.getKey(); + this.D[this.C - 1] = str; + c0(entry.getValue()); + return str; + } + + @Override // com.google.gson.stream.JsonReader + public void H() throws IOException { + W(JsonToken.NULL); + b0(); + int i = this.C; + if (i > 0) { + int[] iArr = this.E; + int i2 = i - 1; + iArr[i2] = iArr[i2] + 1; + } + } + + @Override // com.google.gson.stream.JsonReader + public String J() throws IOException { + JsonToken N = N(); + JsonToken jsonToken = JsonToken.STRING; + if (N == jsonToken || N == JsonToken.NUMBER) { + String g = ((k) b0()).g(); + int i = this.C; + if (i > 0) { + int[] iArr = this.E; + int i2 = i - 1; + iArr[i2] = iArr[i2] + 1; + } + return g; + } + throw new IllegalStateException("Expected " + jsonToken + " but was " + N + t()); + } + + @Override // com.google.gson.stream.JsonReader + public JsonToken N() throws IOException { + if (this.C == 0) { + return JsonToken.END_DOCUMENT; + } + Object X = X(); + if (X instanceof Iterator) { + boolean z2 = this.B[this.C - 2] instanceof JsonObject; + Iterator it = (Iterator) X; + if (!it.hasNext()) { + return z2 ? JsonToken.END_OBJECT : JsonToken.END_ARRAY; + } + if (z2) { + return JsonToken.NAME; + } + c0(it.next()); + return N(); + } else if (X instanceof JsonObject) { + return JsonToken.BEGIN_OBJECT; + } else { + if (X instanceof g) { + return JsonToken.BEGIN_ARRAY; + } + if (X instanceof k) { + Object obj = ((k) X).a; + if (obj instanceof String) { + return JsonToken.STRING; + } + if (obj instanceof Boolean) { + return JsonToken.BOOLEAN; + } + if (obj instanceof Number) { + return JsonToken.NUMBER; + } + throw new AssertionError(); + } else if (X instanceof j) { + return JsonToken.NULL; + } else { + if (X == A) { + throw new IllegalStateException("JsonReader is closed"); + } + throw new AssertionError(); + } + } + } + + @Override // com.google.gson.stream.JsonReader + public void U() throws IOException { + if (N() == JsonToken.NAME) { + C(); + this.D[this.C - 2] = "null"; + } else { + b0(); + int i = this.C; + if (i > 0) { + this.D[i - 1] = "null"; + } + } + int i2 = this.C; + if (i2 > 0) { + int[] iArr = this.E; + int i3 = i2 - 1; + iArr[i3] = iArr[i3] + 1; + } + } + + public final void W(JsonToken jsonToken) throws IOException { + if (N() != jsonToken) { + throw new IllegalStateException("Expected " + jsonToken + " but was " + N() + t()); + } + } + + public final Object X() { + return this.B[this.C - 1]; + } + + @Override // com.google.gson.stream.JsonReader + public void a() throws IOException { + W(JsonToken.BEGIN_ARRAY); + c0(((g) X()).iterator()); + this.E[this.C - 1] = 0; + } + + @Override // com.google.gson.stream.JsonReader + public void b() throws IOException { + W(JsonToken.BEGIN_OBJECT); + c0(new LinkedTreeMap.b.a((LinkedTreeMap.b) ((JsonObject) X()).j())); + } + + public final Object b0() { + Object[] objArr = this.B; + int i = this.C - 1; + this.C = i; + Object obj = objArr[i]; + objArr[i] = null; + return obj; + } + + public final void c0(Object obj) { + int i = this.C; + Object[] objArr = this.B; + if (i == objArr.length) { + int i2 = i * 2; + this.B = Arrays.copyOf(objArr, i2); + this.E = Arrays.copyOf(this.E, i2); + this.D = (String[]) Arrays.copyOf(this.D, i2); + } + Object[] objArr2 = this.B; + int i3 = this.C; + this.C = i3 + 1; + objArr2[i3] = obj; + } + + @Override // com.google.gson.stream.JsonReader, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + this.B = new Object[]{A}; + this.C = 1; + } + + @Override // com.google.gson.stream.JsonReader + public void e() throws IOException { + W(JsonToken.END_ARRAY); + b0(); + b0(); + int i = this.C; + if (i > 0) { + int[] iArr = this.E; + int i2 = i - 1; + iArr[i2] = iArr[i2] + 1; + } + } + + @Override // com.google.gson.stream.JsonReader + public void f() throws IOException { + W(JsonToken.END_OBJECT); + b0(); + b0(); + int i = this.C; + if (i > 0) { + int[] iArr = this.E; + int i2 = i - 1; + iArr[i2] = iArr[i2] + 1; + } + } + + @Override // com.google.gson.stream.JsonReader + public String getPath() { + StringBuilder N = b.d.b.a.a.N('$'); + int i = 0; + while (i < this.C) { + Object[] objArr = this.B; + if (objArr[i] instanceof g) { + i++; + if (objArr[i] instanceof Iterator) { + N.append('['); + N.append(this.E[i]); + N.append(']'); + } + } else if (objArr[i] instanceof JsonObject) { + i++; + if (objArr[i] instanceof Iterator) { + N.append('.'); + String[] strArr = this.D; + if (strArr[i] != null) { + N.append(strArr[i]); + } + } + } + i++; + } + return N.toString(); + } + + @Override // com.google.gson.stream.JsonReader + public boolean q() throws IOException { + JsonToken N = N(); + return (N == JsonToken.END_OBJECT || N == JsonToken.END_ARRAY) ? false : true; + } + + @Override // com.google.gson.stream.JsonReader, java.lang.Object + public String toString() { + return a.class.getSimpleName(); + } + + @Override // com.google.gson.stream.JsonReader + public boolean u() throws IOException { + W(JsonToken.BOOLEAN); + boolean h = ((k) b0()).h(); + int i = this.C; + if (i > 0) { + int[] iArr = this.E; + int i2 = i - 1; + iArr[i2] = iArr[i2] + 1; + } + return h; + } + + @Override // com.google.gson.stream.JsonReader + public double x() throws IOException { + JsonToken N = N(); + JsonToken jsonToken = JsonToken.NUMBER; + if (N == jsonToken || N == JsonToken.STRING) { + k kVar = (k) X(); + double doubleValue = kVar.a instanceof Number ? kVar.i().doubleValue() : Double.parseDouble(kVar.g()); + if (this.l || (!Double.isNaN(doubleValue) && !Double.isInfinite(doubleValue))) { + b0(); + int i = this.C; + if (i > 0) { + int[] iArr = this.E; + int i2 = i - 1; + iArr[i2] = iArr[i2] + 1; + } + return doubleValue; + } + throw new NumberFormatException("JSON forbids NaN and infinities: " + doubleValue); + } + throw new IllegalStateException("Expected " + jsonToken + " but was " + N + t()); + } + + @Override // com.google.gson.stream.JsonReader + public int y() throws IOException { + JsonToken N = N(); + JsonToken jsonToken = JsonToken.NUMBER; + if (N == jsonToken || N == JsonToken.STRING) { + int c = ((k) X()).c(); + b0(); + int i = this.C; + if (i > 0) { + int[] iArr = this.E; + int i2 = i - 1; + iArr[i2] = iArr[i2] + 1; + } + return c; + } + throw new IllegalStateException("Expected " + jsonToken + " but was " + N + t()); + } +} diff --git a/app/src/main/java/b/i/d/q/x/b.java b/app/src/main/java/b/i/d/q/x/b.java new file mode 100644 index 0000000000..89f35f8b51 --- /dev/null +++ b/app/src/main/java/b/i/d/q/x/b.java @@ -0,0 +1,199 @@ +package b.i.d.q.x; + +import b.i.d.g; +import b.i.d.j; +import b.i.d.k; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.io.Writer; +import java.util.ArrayList; +import java.util.List; +/* compiled from: JsonTreeWriter */ +public final class b extends JsonWriter { + public static final Writer u = new a(); + public static final k v = new k("closed"); + public final List w = new ArrayList(); + + /* renamed from: x reason: collision with root package name */ + public String f1799x; + + /* renamed from: y reason: collision with root package name */ + public JsonElement f1800y = j.a; + + /* compiled from: JsonTreeWriter */ + public class a extends Writer { + @Override // java.io.Writer, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + throw new AssertionError(); + } + + @Override // java.io.Writer, java.io.Flushable + public void flush() throws IOException { + throw new AssertionError(); + } + + @Override // java.io.Writer + public void write(char[] cArr, int i, int i2) { + throw new AssertionError(); + } + } + + public b() { + super(u); + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter A(long j) throws IOException { + O(new k(Long.valueOf(j))); + return this; + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter C(Boolean bool) throws IOException { + if (bool == null) { + O(j.a); + return this; + } + O(new k(bool)); + return this; + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter D(Number number) throws IOException { + if (number == null) { + O(j.a); + return this; + } + if (!this.q) { + double doubleValue = number.doubleValue(); + if (Double.isNaN(doubleValue) || Double.isInfinite(doubleValue)) { + throw new IllegalArgumentException("JSON forbids NaN and infinities: " + number); + } + } + O(new k(number)); + return this; + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter H(String str) throws IOException { + if (str == null) { + O(j.a); + return this; + } + O(new k(str)); + return this; + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter I(boolean z2) throws IOException { + O(new k(Boolean.valueOf(z2))); + return this; + } + + public JsonElement L() { + if (this.w.isEmpty()) { + return this.f1800y; + } + StringBuilder R = b.d.b.a.a.R("Expected one JSON element but was "); + R.append(this.w); + throw new IllegalStateException(R.toString()); + } + + public final JsonElement N() { + List list = this.w; + return list.get(list.size() - 1); + } + + public final void O(JsonElement jsonElement) { + if (this.f1799x != null) { + if (!(jsonElement instanceof j) || this.t) { + ((JsonObject) N()).a.put(this.f1799x, jsonElement); + } + this.f1799x = null; + } else if (this.w.isEmpty()) { + this.f1800y = jsonElement; + } else { + JsonElement N = N(); + if (N instanceof g) { + ((g) N).j.add(jsonElement); + return; + } + throw new IllegalStateException(); + } + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter b() throws IOException { + g gVar = new g(); + O(gVar); + this.w.add(gVar); + return this; + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter c() throws IOException { + JsonObject jsonObject = new JsonObject(); + O(jsonObject); + this.w.add(jsonObject); + return this; + } + + @Override // com.google.gson.stream.JsonWriter, java.io.Closeable, java.lang.AutoCloseable + public void close() throws IOException { + if (this.w.isEmpty()) { + this.w.add(v); + return; + } + throw new IOException("Incomplete document"); + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter e() throws IOException { + if (this.w.isEmpty() || this.f1799x != null) { + throw new IllegalStateException(); + } else if (N() instanceof g) { + List list = this.w; + list.remove(list.size() - 1); + return this; + } else { + throw new IllegalStateException(); + } + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter f() throws IOException { + if (this.w.isEmpty() || this.f1799x != null) { + throw new IllegalStateException(); + } else if (N() instanceof JsonObject) { + List list = this.w; + list.remove(list.size() - 1); + return this; + } else { + throw new IllegalStateException(); + } + } + + @Override // com.google.gson.stream.JsonWriter, java.io.Flushable + public void flush() throws IOException { + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter n(String str) throws IOException { + if (this.w.isEmpty() || this.f1799x != null) { + throw new IllegalStateException(); + } else if (N() instanceof JsonObject) { + this.f1799x = str; + return this; + } else { + throw new IllegalStateException(); + } + } + + @Override // com.google.gson.stream.JsonWriter + public JsonWriter s() throws IOException { + O(j.a); + return this; + } +} diff --git a/app/src/main/java/b/i/d/q/x/c.java b/app/src/main/java/b/i/d/q/x/c.java new file mode 100644 index 0000000000..5babd11cb0 --- /dev/null +++ b/app/src/main/java/b/i/d/q/x/c.java @@ -0,0 +1,49 @@ +package b.i.d.q.x; + +import com.google.gson.Gson; +import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.ReflectiveTypeAdapterFactory; +import com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Field; +/* compiled from: ReflectiveTypeAdapterFactory */ +public class c extends ReflectiveTypeAdapterFactory.a { + public final /* synthetic */ Field d; + public final /* synthetic */ boolean e; + public final /* synthetic */ TypeAdapter f; + public final /* synthetic */ Gson g; + public final /* synthetic */ TypeToken h; + public final /* synthetic */ boolean i; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public c(ReflectiveTypeAdapterFactory reflectiveTypeAdapterFactory, String str, boolean z2, boolean z3, Field field, boolean z4, TypeAdapter typeAdapter, Gson gson, TypeToken typeToken, boolean z5) { + super(str, z2, z3); + this.d = field; + this.e = z4; + this.f = typeAdapter; + this.g = gson; + this.h = typeToken; + this.i = z5; + } + + @Override // com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a + public void a(JsonReader jsonReader, Object obj) throws IOException, IllegalAccessException { + Object read = this.f.read(jsonReader); + if (read != null || !this.i) { + this.d.set(obj, read); + } + } + + @Override // com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a + public void b(JsonWriter jsonWriter, Object obj) throws IOException, IllegalAccessException { + (this.e ? this.f : new TypeAdapterRuntimeTypeWrapper(this.g, this.f, this.h.getType())).write(jsonWriter, this.d.get(obj)); + } + + @Override // com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a + public boolean c(Object obj) throws IOException, IllegalAccessException { + return this.f3082b && this.d.get(obj) != obj; + } +} diff --git a/app/src/main/java/b/i/d/q/x/d/a.java b/app/src/main/java/b/i/d/q/x/d/a.java new file mode 100644 index 0000000000..cdd11e7ca7 --- /dev/null +++ b/app/src/main/java/b/i/d/q/x/d/a.java @@ -0,0 +1,209 @@ +package b.i.d.q.x.d; + +import com.discord.widgets.chat.input.MentionUtilsKt; +import java.text.ParseException; +import java.text.ParsePosition; +import java.util.Date; +import java.util.GregorianCalendar; +import java.util.TimeZone; +/* compiled from: ISO8601Utils */ +public class a { + public static final TimeZone a = TimeZone.getTimeZone("UTC"); + + public static boolean a(String str, int i, char c) { + return i < str.length() && str.charAt(i) == c; + } + + /* JADX WARNING: Removed duplicated region for block: B:58:0x00e1 A[Catch:{ IllegalArgumentException | IndexOutOfBoundsException | NumberFormatException -> 0x01d0 }] */ + /* JADX WARNING: Removed duplicated region for block: B:87:0x01c8 A[Catch:{ IllegalArgumentException | IndexOutOfBoundsException | NumberFormatException -> 0x01d0 }] */ + public static Date b(String str, ParsePosition parsePosition) throws ParseException { + String str2; + int i; + int i2; + int i3; + int i4; + int i5; + TimeZone timeZone; + int i6; + int i7; + char charAt; + try { + int index = parsePosition.getIndex(); + int i8 = index + 4; + int c = c(str, index, i8); + if (a(str, i8, '-')) { + i8++; + } + int i9 = i8 + 2; + int c2 = c(str, i8, i9); + if (a(str, i9, '-')) { + i9++; + } + int i10 = i9 + 2; + int c3 = c(str, i9, i10); + boolean a2 = a(str, i10, 'T'); + if (a2 || str.length() > i10) { + if (a2) { + int i11 = i10 + 1; + int i12 = i11 + 2; + i4 = c(str, i11, i12); + if (a(str, i12, MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR)) { + i12++; + } + int i13 = i12 + 2; + i3 = c(str, i12, i13); + if (a(str, i13, MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR)) { + i13++; + } + if (str.length() <= i13 || (charAt = str.charAt(i13)) == 'Z' || charAt == '+' || charAt == '-') { + i7 = i4; + i10 = i13; + } else { + i5 = i13 + 2; + i2 = c(str, i13, i5); + if (i2 > 59 && i2 < 63) { + i2 = 59; + } + if (a(str, i5, '.')) { + int i14 = i5 + 1; + int i15 = i14 + 1; + while (true) { + if (i15 >= str.length()) { + i15 = str.length(); + break; + } + char charAt2 = str.charAt(i15); + if (charAt2 < '0') { + break; + } else if (charAt2 > '9') { + break; + } else { + i15++; + } + } + int min = Math.min(i15, i14 + 3); + i = c(str, i14, min); + int i16 = min - i14; + if (i16 == 1) { + i *= 100; + } else if (i16 == 2) { + i *= 10; + } + i5 = i15; + } else { + i = 0; + } + if (str.length() <= i5) { + char charAt3 = str.charAt(i5); + if (charAt3 == 'Z') { + timeZone = a; + i6 = i5 + 1; + } else { + if (charAt3 != '+') { + if (charAt3 != '-') { + throw new IndexOutOfBoundsException("Invalid time zone indicator '" + charAt3 + "'"); + } + } + String substring = str.substring(i5); + if (substring.length() < 5) { + substring = substring + "00"; + } + i6 = i5 + substring.length(); + if (!"+0000".equals(substring)) { + if (!"+00:00".equals(substring)) { + String str3 = "GMT" + substring; + TimeZone timeZone2 = TimeZone.getTimeZone(str3); + String id2 = timeZone2.getID(); + if (!id2.equals(str3)) { + if (!id2.replace(":", "").equals(str3)) { + throw new IndexOutOfBoundsException("Mismatching time zone indicator: " + str3 + " given, resolves to " + timeZone2.getID()); + } + } + timeZone = timeZone2; + } + } + timeZone = a; + } + GregorianCalendar gregorianCalendar = new GregorianCalendar(timeZone); + gregorianCalendar.setLenient(false); + gregorianCalendar.set(1, c); + gregorianCalendar.set(2, c2 - 1); + gregorianCalendar.set(5, c3); + gregorianCalendar.set(11, i4); + gregorianCalendar.set(12, i3); + gregorianCalendar.set(13, i2); + gregorianCalendar.set(14, i); + parsePosition.setIndex(i6); + return gregorianCalendar.getTime(); + } + throw new IllegalArgumentException("No time zone indicator"); + } + } else { + i7 = 0; + i3 = 0; + } + i = 0; + i2 = 0; + i4 = i7; + i5 = i10; + if (str.length() <= i5) { + } + } else { + GregorianCalendar gregorianCalendar2 = new GregorianCalendar(c, c2 - 1, c3); + parsePosition.setIndex(i10); + return gregorianCalendar2.getTime(); + } + } catch (IllegalArgumentException | IndexOutOfBoundsException | NumberFormatException e) { + if (str == null) { + str2 = null; + } else { + str2 = '\"' + str + '\"'; + } + String message = e.getMessage(); + if (message == null || message.isEmpty()) { + StringBuilder R = b.d.b.a.a.R("("); + R.append(e.getClass().getName()); + R.append(")"); + message = R.toString(); + } + ParseException parseException = new ParseException("Failed to parse date [" + str2 + "]: " + message, parsePosition.getIndex()); + parseException.initCause(e); + throw parseException; + } + } + + public static int c(String str, int i, int i2) throws NumberFormatException { + int i3; + int i4; + if (i < 0 || i2 > str.length() || i > i2) { + throw new NumberFormatException(str); + } + if (i < i2) { + i4 = i + 1; + int digit = Character.digit(str.charAt(i), 10); + if (digit >= 0) { + i3 = -digit; + } else { + StringBuilder R = b.d.b.a.a.R("Invalid number: "); + R.append(str.substring(i, i2)); + throw new NumberFormatException(R.toString()); + } + } else { + i3 = 0; + i4 = i; + } + while (i4 < i2) { + int i5 = i4 + 1; + int digit2 = Character.digit(str.charAt(i4), 10); + if (digit2 >= 0) { + i3 = (i3 * 10) - digit2; + i4 = i5; + } else { + StringBuilder R2 = b.d.b.a.a.R("Invalid number: "); + R2.append(str.substring(i, i2)); + throw new NumberFormatException(R2.toString()); + } + } + return -i3; + } +} diff --git a/app/src/main/java/b/i/d/q/y/a.java b/app/src/main/java/b/i/d/q/y/a.java new file mode 100644 index 0000000000..98734619df --- /dev/null +++ b/app/src/main/java/b/i/d/q/y/a.java @@ -0,0 +1,10 @@ +package b.i.d.q.y; + +import java.lang.reflect.AccessibleObject; +/* compiled from: PreJava9ReflectionAccessor */ +public final class a extends b { + @Override // b.i.d.q.y.b + public void a(AccessibleObject accessibleObject) { + accessibleObject.setAccessible(true); + } +} diff --git a/app/src/main/java/b/i/d/q/y/b.java b/app/src/main/java/b/i/d/q/y/b.java new file mode 100644 index 0000000000..aff7616697 --- /dev/null +++ b/app/src/main/java/b/i/d/q/y/b.java @@ -0,0 +1,10 @@ +package b.i.d.q.y; + +import b.i.d.q.o; +import java.lang.reflect.AccessibleObject; +/* compiled from: ReflectionAccessor */ +public abstract class b { + public static final b a = (o.a < 9 ? new a() : new c()); + + public abstract void a(AccessibleObject accessibleObject); +} diff --git a/app/src/main/java/b/i/d/q/y/c.java b/app/src/main/java/b/i/d/q/y/c.java new file mode 100644 index 0000000000..5a495fd754 --- /dev/null +++ b/app/src/main/java/b/i/d/q/y/c.java @@ -0,0 +1,52 @@ +package b.i.d.q.y; + +import com.google.gson.JsonIOException; +import java.lang.reflect.AccessibleObject; +import java.lang.reflect.Field; +/* compiled from: UnsafeReflectionAccessor */ +public final class c extends b { + + /* renamed from: b reason: collision with root package name */ + public static Class f1801b; + public final Object c; + public final Field d; + + public c() { + Object obj; + Field field = null; + try { + Class cls = Class.forName("sun.misc.Unsafe"); + f1801b = cls; + Field declaredField = cls.getDeclaredField("theUnsafe"); + declaredField.setAccessible(true); + obj = declaredField.get(null); + } catch (Exception unused) { + obj = null; + } + this.c = obj; + try { + field = AccessibleObject.class.getDeclaredField("override"); + } catch (NoSuchFieldException unused2) { + } + this.d = field; + } + + @Override // b.i.d.q.y.b + public void a(AccessibleObject accessibleObject) { + boolean z2 = false; + if (!(this.c == null || this.d == null)) { + try { + f1801b.getMethod("putBoolean", Object.class, Long.TYPE, Boolean.TYPE).invoke(this.c, accessibleObject, Long.valueOf(((Long) f1801b.getMethod("objectFieldOffset", Field.class).invoke(this.c, this.d)).longValue()), Boolean.TRUE); + z2 = true; + } catch (Exception unused) { + } + } + if (!z2) { + try { + accessibleObject.setAccessible(true); + } catch (SecurityException e) { + throw new JsonIOException("Gson couldn't modify fields for " + accessibleObject + "\nand sun.misc.Unsafe not found.\nEither write a custom type adapter, or make fields accessible, or include sun.misc.Unsafe.", e); + } + } + } +} diff --git a/app/src/main/java/b/i/e/a.java b/app/src/main/java/b/i/e/a.java new file mode 100644 index 0000000000..4dec5b66c7 --- /dev/null +++ b/app/src/main/java/b/i/e/a.java @@ -0,0 +1,21 @@ +package b.i.e; +/* compiled from: BarcodeFormat */ +public enum a { + AZTEC, + CODABAR, + CODE_39, + CODE_93, + CODE_128, + DATA_MATRIX, + EAN_8, + EAN_13, + ITF, + MAXICODE, + PDF_417, + QR_CODE, + RSS_14, + RSS_EXPANDED, + UPC_A, + UPC_E, + UPC_EAN_EXTENSION +} diff --git a/app/src/main/java/b/i/e/b.java b/app/src/main/java/b/i/e/b.java new file mode 100644 index 0000000000..822de9a9a3 --- /dev/null +++ b/app/src/main/java/b/i/e/b.java @@ -0,0 +1,9 @@ +package b.i.e; +/* compiled from: Binarizer */ +public abstract class b { + public final f a; + + public b(f fVar) { + this.a = fVar; + } +} diff --git a/app/src/main/java/b/i/e/c.java b/app/src/main/java/b/i/e/c.java new file mode 100644 index 0000000000..543aa87bff --- /dev/null +++ b/app/src/main/java/b/i/e/c.java @@ -0,0 +1,273 @@ +package b.i.e; + +import b.i.e.n.a; +import b.i.e.n.b; +import b.i.e.n.h; +import com.google.zxing.NotFoundException; +import java.lang.reflect.Array; +/* compiled from: BinaryBitmap */ +public final class c { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public b f1806b; + + public c(b bVar) { + this.a = bVar; + } + + public b a() throws NotFoundException { + int i; + c cVar = this; + if (cVar.f1806b == null) { + h hVar = (h) cVar.a; + b bVar = hVar.e; + if (bVar == null) { + f fVar = hVar.a; + int i2 = fVar.a; + int i3 = fVar.f1808b; + if (i2 < 40 || i3 < 40) { + b bVar2 = new b(i2, i3); + hVar.b(i2); + int[] iArr = hVar.d; + for (int i4 = 1; i4 < 5; i4++) { + byte[] b2 = fVar.b((i3 * i4) / 5, hVar.c); + int i5 = (i2 << 2) / 5; + for (int i6 = i2 / 5; i6 < i5; i6++) { + int i7 = (b2[i6] & 255) >> 3; + iArr[i7] = iArr[i7] + 1; + } + } + int a = h.a(iArr); + byte[] a2 = fVar.a(); + for (int i8 = 0; i8 < i3; i8++) { + int i9 = i8 * i2; + for (int i10 = 0; i10 < i2; i10++) { + if ((a2[i9 + i10] & 255) < a) { + bVar2.j(i10, i8); + } + } + } + hVar.e = bVar2; + } else { + byte[] a3 = fVar.a(); + int i11 = i2 >> 3; + if ((i2 & 7) != 0) { + i11++; + } + int i12 = i3 >> 3; + if ((i3 & 7) != 0) { + i12++; + } + int i13 = i3 - 8; + int i14 = i2 - 8; + int[] iArr2 = new int[2]; + iArr2[1] = i11; + iArr2[0] = i12; + int[][] iArr3 = (int[][]) Array.newInstance(int.class, iArr2); + int i15 = 0; + while (true) { + int i16 = 8; + if (i15 >= i12) { + break; + } + int i17 = i15 << 3; + if (i17 > i13) { + i17 = i13; + } + int i18 = 0; + while (i18 < i11) { + int i19 = i18 << 3; + if (i19 > i14) { + i19 = i14; + } + int i20 = (i17 * i2) + i19; + int i21 = 0; + int i22 = 0; + int i23 = 255; + int i24 = 0; + while (i21 < i16) { + int i25 = i23; + int i26 = i24; + int i27 = 0; + while (i27 < i16) { + int i28 = a3[i20 + i27] & 255; + i22 += i28; + if (i28 < i25) { + i25 = i28; + } + if (i28 > i26) { + i26 = i28; + } + i27++; + i16 = 8; + } + if (i26 - i25 > 24) { + i = i21; + while (true) { + i++; + i20 += i2; + if (i >= 8) { + break; + } + int i29 = 0; + for (int i30 = 8; i29 < i30; i30 = 8) { + i22 += a3[i20 + i29] & 255; + i29++; + i25 = i25; + } + } + i23 = i25; + } else { + i23 = i25; + i = i21; + } + i21 = i + 1; + i20 += i2; + i16 = 8; + i24 = i26; + i17 = i17; + } + int i31 = i22 >> 6; + if (i24 - i23 <= 24) { + i31 = i23 / 2; + if (i15 > 0 && i18 > 0) { + int i32 = i15 - 1; + int i33 = i18 - 1; + int i34 = (((iArr3[i15][i33] * 2) + iArr3[i32][i18]) + iArr3[i32][i33]) / 4; + if (i23 < i34) { + i31 = i34; + } + } + } + iArr3[i15][i18] = i31; + i18++; + i17 = i17; + i16 = 8; + } + i15++; + } + b bVar3 = new b(i2, i3); + for (int i35 = 0; i35 < i12; i35++) { + int i36 = i35 << 3; + if (i36 > i13) { + i36 = i13; + } + int i37 = i12 - 3; + if (i35 < 2) { + i37 = 2; + } else if (i35 <= i37) { + i37 = i35; + } + int i38 = 0; + while (i38 < i11) { + int i39 = i38 << 3; + if (i39 > i14) { + i39 = i14; + } + int i40 = i11 - 3; + if (i38 < 2) { + i40 = 2; + } else if (i38 <= i40) { + i40 = i38; + } + int i41 = -2; + int i42 = 0; + for (int i43 = 2; i41 <= i43; i43 = 2) { + int[] iArr4 = iArr3[i37 + i41]; + i42 = iArr4[i40 - 2] + iArr4[i40 - 1] + iArr4[i40] + iArr4[i40 + 1] + iArr4[i40 + 2] + i42; + i41++; + } + int i44 = i42 / 25; + int i45 = (i36 * i2) + i39; + int i46 = 8; + int i47 = 0; + while (i47 < i46) { + int i48 = 0; + while (i48 < i46) { + if ((a3[i45 + i48] & 255) <= i44) { + bVar3.j(i39 + i48, i36 + i47); + } + i48++; + a3 = a3; + i46 = 8; + } + i47++; + i45 += i2; + i12 = i12; + i46 = 8; + } + i38++; + i37 = i37; + i11 = i11; + } + } + hVar.e = bVar3; + } + bVar = hVar.e; + } + cVar = this; + cVar.f1806b = bVar; + } + return cVar.f1806b; + } + + public a b(int i, a aVar) throws NotFoundException { + int i2; + h hVar = (h) this.a; + f fVar = hVar.a; + int i3 = fVar.a; + if (aVar.k < i3) { + aVar = new a(i3); + } else { + int length = aVar.j.length; + for (int i4 = 0; i4 < length; i4++) { + aVar.j[i4] = 0; + } + } + hVar.b(i3); + byte[] b2 = fVar.b(i, hVar.c); + int[] iArr = hVar.d; + int i5 = 0; + while (true) { + i2 = 1; + if (i5 >= i3) { + break; + } + int i6 = (b2[i5] & 255) >> 3; + iArr[i6] = iArr[i6] + 1; + i5++; + } + int a = h.a(iArr); + if (i3 < 3) { + for (int i7 = 0; i7 < i3; i7++) { + if ((b2[i7] & 255) < a) { + aVar.j(i7); + } + } + } else { + int i8 = b2[1] & 255; + int i9 = b2[0] & 255; + int i10 = i8; + while (i2 < i3 - 1) { + int i11 = i2 + 1; + int i12 = b2[i11] & 255; + if ((((i10 << 2) - i9) - i12) / 2 < a) { + aVar.j(i2); + } + i9 = i10; + i2 = i11; + i10 = i12; + } + } + return aVar; + } + + public String toString() { + try { + return a().toString(); + } catch (NotFoundException unused) { + return ""; + } + } +} diff --git a/app/src/main/java/b/i/e/d.java b/app/src/main/java/b/i/e/d.java new file mode 100644 index 0000000000..1f7e866f63 --- /dev/null +++ b/app/src/main/java/b/i/e/d.java @@ -0,0 +1,23 @@ +package b.i.e; + +import java.util.List; +/* compiled from: DecodeHintType */ +public enum d { + OTHER(Object.class), + PURE_BARCODE(Void.class), + POSSIBLE_FORMATS(List.class), + TRY_HARDER(Void.class), + CHARACTER_SET(String.class), + ALLOWED_LENGTHS(int[].class), + ASSUME_CODE_39_CHECK_DIGIT(Void.class), + ASSUME_GS1(Void.class), + RETURN_CODABAR_START_END(Void.class), + NEED_RESULT_POINT_CALLBACK(l.class), + ALLOWED_EAN_EXTENSIONS(int[].class); + + private final Class valueType; + + public d(Class cls) { + this.valueType = cls; + } +} diff --git a/app/src/main/java/b/i/e/e.java b/app/src/main/java/b/i/e/e.java new file mode 100644 index 0000000000..fecccfde54 --- /dev/null +++ b/app/src/main/java/b/i/e/e.java @@ -0,0 +1,41 @@ +package b.i.e; +/* compiled from: InvertedLuminanceSource */ +public final class e extends f { + public final f c; + + public e(f fVar) { + super(fVar.a, fVar.f1808b); + this.c = fVar; + } + + @Override // b.i.e.f + public byte[] a() { + byte[] a = this.c.a(); + int i = this.a * this.f1808b; + byte[] bArr = new byte[i]; + for (int i2 = 0; i2 < i; i2++) { + bArr[i2] = (byte) (255 - (a[i2] & 255)); + } + return bArr; + } + + @Override // b.i.e.f + public byte[] b(int i, byte[] bArr) { + byte[] b2 = this.c.b(i, bArr); + int i2 = this.a; + for (int i3 = 0; i3 < i2; i3++) { + b2[i3] = (byte) (255 - (b2[i3] & 255)); + } + return b2; + } + + @Override // b.i.e.f + public boolean c() { + return this.c.c(); + } + + @Override // b.i.e.f + public f d() { + return new e(this.c.d()); + } +} diff --git a/app/src/main/java/b/i/e/f.java b/app/src/main/java/b/i/e/f.java new file mode 100644 index 0000000000..1ea9fd0742 --- /dev/null +++ b/app/src/main/java/b/i/e/f.java @@ -0,0 +1,42 @@ +package b.i.e; + +import com.discord.widgets.chat.input.MentionUtilsKt; +/* compiled from: LuminanceSource */ +public abstract class f { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1808b; + + public f(int i, int i2) { + this.a = i; + this.f1808b = i2; + } + + public abstract byte[] a(); + + public abstract byte[] b(int i, byte[] bArr); + + public boolean c() { + return false; + } + + public f d() { + throw new UnsupportedOperationException("This luminance source does not support rotation by 90 degrees."); + } + + public final String toString() { + int i = this.a; + byte[] bArr = new byte[i]; + StringBuilder sb = new StringBuilder((i + 1) * this.f1808b); + for (int i2 = 0; i2 < this.f1808b; i2++) { + bArr = b(i2, bArr); + for (int i3 = 0; i3 < this.a; i3++) { + int i4 = bArr[i3] & 255; + sb.append(i4 < 64 ? MentionUtilsKt.CHANNELS_CHAR : i4 < 128 ? '+' : i4 < 192 ? '.' : ' '); + } + sb.append('\n'); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/e/g.java b/app/src/main/java/b/i/e/g.java new file mode 100644 index 0000000000..a88ccae026 --- /dev/null +++ b/app/src/main/java/b/i/e/g.java @@ -0,0 +1,95 @@ +package b.i.e; + +import b.i.e.m.b; +import b.i.e.q.i; +import b.i.e.s.a; +import com.google.zxing.NotFoundException; +import com.google.zxing.ReaderException; +import com.google.zxing.Result; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Map; +/* compiled from: MultiFormatReader */ +public final class g implements i { + public Map a; + + /* renamed from: b reason: collision with root package name */ + public i[] f1809b; + + @Override // b.i.e.i + public Result a(c cVar, Map map) throws NotFoundException { + c(map); + return b(cVar); + } + + public final Result b(c cVar) throws NotFoundException { + i[] iVarArr = this.f1809b; + if (iVarArr != null) { + for (i iVar : iVarArr) { + try { + return iVar.a(cVar, this.a); + } catch (ReaderException unused) { + } + } + } + throw NotFoundException.l; + } + + public void c(Map map) { + this.a = map; + boolean z2 = false; + boolean z3 = map != null && map.containsKey(d.TRY_HARDER); + Collection collection = map == null ? null : (Collection) map.get(d.POSSIBLE_FORMATS); + ArrayList arrayList = new ArrayList(); + if (collection != null) { + if (collection.contains(a.UPC_A) || collection.contains(a.UPC_E) || collection.contains(a.EAN_13) || collection.contains(a.EAN_8) || collection.contains(a.CODABAR) || collection.contains(a.CODE_39) || collection.contains(a.CODE_93) || collection.contains(a.CODE_128) || collection.contains(a.ITF) || collection.contains(a.RSS_14) || collection.contains(a.RSS_EXPANDED)) { + z2 = true; + } + if (z2 && !z3) { + arrayList.add(new i(map)); + } + if (collection.contains(a.QR_CODE)) { + arrayList.add(new a()); + } + if (collection.contains(a.DATA_MATRIX)) { + arrayList.add(new b.i.e.o.a()); + } + if (collection.contains(a.AZTEC)) { + arrayList.add(new b()); + } + if (collection.contains(a.PDF_417)) { + arrayList.add(new b.i.e.r.b()); + } + if (collection.contains(a.MAXICODE)) { + arrayList.add(new b.i.e.p.a()); + } + if (z2 && z3) { + arrayList.add(new i(map)); + } + } + if (arrayList.isEmpty()) { + if (!z3) { + arrayList.add(new i(map)); + } + arrayList.add(new a()); + arrayList.add(new b.i.e.o.a()); + arrayList.add(new b()); + arrayList.add(new b.i.e.r.b()); + arrayList.add(new b.i.e.p.a()); + if (z3) { + arrayList.add(new i(map)); + } + } + this.f1809b = (i[]) arrayList.toArray(new i[arrayList.size()]); + } + + @Override // b.i.e.i + public void reset() { + i[] iVarArr = this.f1809b; + if (iVarArr != null) { + for (i iVar : iVarArr) { + iVar.reset(); + } + } + } +} diff --git a/app/src/main/java/b/i/e/h.java b/app/src/main/java/b/i/e/h.java new file mode 100644 index 0000000000..2b07754cf6 --- /dev/null +++ b/app/src/main/java/b/i/e/h.java @@ -0,0 +1,74 @@ +package b.i.e; +/* compiled from: PlanarYUVLuminanceSource */ +public final class h extends f { + public final byte[] c; + public final int d; + public final int e; + public final int f; + public final int g; + + public h(byte[] bArr, int i, int i2, int i3, int i4, int i5, int i6, boolean z2) { + super(i5, i6); + if (i3 + i5 > i || i4 + i6 > i2) { + throw new IllegalArgumentException("Crop rectangle does not fit within image data."); + } + this.c = bArr; + this.d = i; + this.e = i2; + this.f = i3; + this.g = i4; + if (z2) { + int i7 = (i4 * i) + i3; + int i8 = 0; + while (i8 < i6) { + int i9 = (i5 / 2) + i7; + int i10 = (i7 + i5) - 1; + int i11 = i7; + while (i11 < i9) { + byte b2 = bArr[i11]; + bArr[i11] = bArr[i10]; + bArr[i10] = b2; + i11++; + i10--; + } + i8++; + i7 += this.d; + } + } + } + + @Override // b.i.e.f + public byte[] a() { + int i = this.a; + int i2 = this.f1808b; + int i3 = this.d; + if (i == i3 && i2 == this.e) { + return this.c; + } + int i4 = i * i2; + byte[] bArr = new byte[i4]; + int i5 = (this.g * i3) + this.f; + if (i == i3) { + System.arraycopy(this.c, i5, bArr, 0, i4); + return bArr; + } + for (int i6 = 0; i6 < i2; i6++) { + System.arraycopy(this.c, i5, bArr, i6 * i, i); + i5 += this.d; + } + return bArr; + } + + @Override // b.i.e.f + public byte[] b(int i, byte[] bArr) { + if (i < 0 || i >= this.f1808b) { + throw new IllegalArgumentException("Requested row is outside the image: ".concat(String.valueOf(i))); + } + int i2 = this.a; + if (bArr == null || bArr.length < i2) { + bArr = new byte[i2]; + } + System.arraycopy(this.c, ((i + this.g) * this.d) + this.f, bArr, 0, i2); + return bArr; + } +} diff --git a/app/src/main/java/b/i/e/i.java b/app/src/main/java/b/i/e/i.java new file mode 100644 index 0000000000..57b2c3433a --- /dev/null +++ b/app/src/main/java/b/i/e/i.java @@ -0,0 +1,13 @@ +package b.i.e; + +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.Map; +/* compiled from: Reader */ +public interface i { + Result a(c cVar, Map map) throws NotFoundException, ChecksumException, FormatException; + + void reset(); +} diff --git a/app/src/main/java/b/i/e/j.java b/app/src/main/java/b/i/e/j.java new file mode 100644 index 0000000000..b98b84f5fa --- /dev/null +++ b/app/src/main/java/b/i/e/j.java @@ -0,0 +1,15 @@ +package b.i.e; +/* compiled from: ResultMetadataType */ +public enum j { + OTHER, + ORIENTATION, + BYTE_SEGMENTS, + ERROR_CORRECTION_LEVEL, + ISSUE_NUMBER, + SUGGESTED_PRICE, + POSSIBLE_COUNTRY, + UPC_EAN_EXTENSION, + PDF417_EXTRA_METADATA, + STRUCTURED_APPEND_SEQUENCE, + STRUCTURED_APPEND_PARITY +} diff --git a/app/src/main/java/b/i/e/k.java b/app/src/main/java/b/i/e/k.java new file mode 100644 index 0000000000..ad7cac492d --- /dev/null +++ b/app/src/main/java/b/i/e/k.java @@ -0,0 +1,68 @@ +package b.i.e; + +import b.i.a.f.e.o.f; +/* compiled from: ResultPoint */ +public class k { + public final float a; + + /* renamed from: b reason: collision with root package name */ + public final float f1811b; + + public k(float f, float f2) { + this.a = f; + this.f1811b = f2; + } + + public static float a(k kVar, k kVar2) { + return f.P(kVar.a, kVar.f1811b, kVar2.a, kVar2.f1811b); + } + + public static void b(k[] kVarArr) { + k kVar; + k kVar2; + k kVar3; + float a = a(kVarArr[0], kVarArr[1]); + float a2 = a(kVarArr[1], kVarArr[2]); + float a3 = a(kVarArr[0], kVarArr[2]); + if (a2 >= a && a2 >= a3) { + kVar3 = kVarArr[0]; + kVar2 = kVarArr[1]; + kVar = kVarArr[2]; + } else if (a3 < a2 || a3 < a) { + kVar3 = kVarArr[2]; + kVar2 = kVarArr[0]; + kVar = kVarArr[1]; + } else { + kVar3 = kVarArr[1]; + kVar2 = kVarArr[0]; + kVar = kVarArr[2]; + } + float f = kVar3.a; + float f2 = kVar3.f1811b; + if (((kVar2.f1811b - f2) * (kVar.a - f)) - ((kVar2.a - f) * (kVar.f1811b - f2)) < 0.0f) { + kVar = kVar2; + kVar2 = kVar; + } + kVarArr[0] = kVar2; + kVarArr[1] = kVar3; + kVarArr[2] = kVar; + } + + public final boolean equals(Object obj) { + if (obj instanceof k) { + k kVar = (k) obj; + if (this.a == kVar.a && this.f1811b == kVar.f1811b) { + return true; + } + } + return false; + } + + public final int hashCode() { + return Float.floatToIntBits(this.f1811b) + (Float.floatToIntBits(this.a) * 31); + } + + public final String toString() { + return "(" + this.a + ',' + this.f1811b + ')'; + } +} diff --git a/app/src/main/java/b/i/e/l.java b/app/src/main/java/b/i/e/l.java new file mode 100644 index 0000000000..0a39dbe4bd --- /dev/null +++ b/app/src/main/java/b/i/e/l.java @@ -0,0 +1,5 @@ +package b.i.e; +/* compiled from: ResultPointCallback */ +public interface l { + void a(k kVar); +} diff --git a/app/src/main/java/b/i/e/m/a.java b/app/src/main/java/b/i/e/m/a.java new file mode 100644 index 0000000000..607e877922 --- /dev/null +++ b/app/src/main/java/b/i/e/m/a.java @@ -0,0 +1,18 @@ +package b.i.e.m; + +import b.i.e.k; +import b.i.e.n.b; +import b.i.e.n.g; +/* compiled from: AztecDetectorResult */ +public final class a extends g { + public final boolean c; + public final int d; + public final int e; + + public a(b bVar, k[] kVarArr, boolean z2, int i, int i2) { + super(bVar, kVarArr); + this.c = z2; + this.d = i; + this.e = i2; + } +} diff --git a/app/src/main/java/b/i/e/m/b.java b/app/src/main/java/b/i/e/m/b.java new file mode 100644 index 0000000000..4df7160937 --- /dev/null +++ b/app/src/main/java/b/i/e/m/b.java @@ -0,0 +1,147 @@ +package b.i.e.m; + +import b.i.e.c; +import b.i.e.d; +import b.i.e.i; +import b.i.e.j; +import b.i.e.k; +import b.i.e.l; +import b.i.e.m.d.a; +import b.i.e.n.e; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.List; +import java.util.Map; +/* compiled from: AztecReader */ +public final class b implements i { + /* JADX WARNING: Removed duplicated region for block: B:15:0x002f */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x005a A[LOOP:0: B:29:0x0058->B:30:0x005a, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:33:0x0078 */ + /* JADX WARNING: Removed duplicated region for block: B:36:0x0081 */ + @Override // b.i.e.i + public Result a(c cVar, Map map) throws NotFoundException, FormatException { + k[] kVarArr; + FormatException formatException; + NotFoundException e; + List list; + String str; + l lVar; + k[] kVarArr2; + FormatException e2; + a aVar = new a(cVar.a()); + e eVar = null; + try { + a a = aVar.a(false); + kVarArr2 = a.f1821b; + try { + kVarArr = kVarArr2; + formatException = null; + eVar = new b.i.e.m.c.a().a(a); + e = null; + } catch (NotFoundException e3) { + e = e3; + kVarArr = kVarArr2; + formatException = null; + if (eVar == null) { + } + while (r11 < r0) { + } + Result result = new Result(eVar.c, eVar.a, eVar.f1820b, kVarArr, b.i.e.a.AZTEC, System.currentTimeMillis()); + list = eVar.d; + if (list != null) { + } + str = eVar.e; + if (str != null) { + } + return result; + } catch (FormatException e4) { + e2 = e4; + kVarArr = kVarArr2; + formatException = e2; + e = null; + if (eVar == null) { + } + while (r11 < r0) { + } + Result result = new Result(eVar.c, eVar.a, eVar.f1820b, kVarArr, b.i.e.a.AZTEC, System.currentTimeMillis()); + list = eVar.d; + if (list != null) { + } + str = eVar.e; + if (str != null) { + } + return result; + } + } catch (NotFoundException e5) { + e = e5; + kVarArr2 = null; + kVarArr = kVarArr2; + formatException = null; + if (eVar == null) { + } + while (r11 < r0) { + } + Result result = new Result(eVar.c, eVar.a, eVar.f1820b, kVarArr, b.i.e.a.AZTEC, System.currentTimeMillis()); + list = eVar.d; + if (list != null) { + } + str = eVar.e; + if (str != null) { + } + return result; + } catch (FormatException e6) { + e2 = e6; + kVarArr2 = null; + kVarArr = kVarArr2; + formatException = e2; + e = null; + if (eVar == null) { + } + while (r11 < r0) { + } + Result result = new Result(eVar.c, eVar.a, eVar.f1820b, kVarArr, b.i.e.a.AZTEC, System.currentTimeMillis()); + list = eVar.d; + if (list != null) { + } + str = eVar.e; + if (str != null) { + } + return result; + } + if (eVar == null) { + try { + a a2 = aVar.a(true); + kVarArr = a2.f1821b; + eVar = new b.i.e.m.c.a().a(a2); + } catch (FormatException | NotFoundException e7) { + if (e != null) { + throw e; + } else if (formatException != null) { + throw formatException; + } else { + throw e7; + } + } + } + if (!(map == null || (lVar = (l) map.get(d.NEED_RESULT_POINT_CALLBACK)) == null)) { + for (k kVar : kVarArr) { + lVar.a(kVar); + } + } + Result result = new Result(eVar.c, eVar.a, eVar.f1820b, kVarArr, b.i.e.a.AZTEC, System.currentTimeMillis()); + list = eVar.d; + if (list != null) { + result.b(j.BYTE_SEGMENTS, list); + } + str = eVar.e; + if (str != null) { + result.b(j.ERROR_CORRECTION_LEVEL, str); + } + return result; + } + + @Override // b.i.e.i + public void reset() { + } +} diff --git a/app/src/main/java/b/i/e/m/c/a.java b/app/src/main/java/b/i/e/m/c/a.java new file mode 100644 index 0000000000..f5cf274957 --- /dev/null +++ b/app/src/main/java/b/i/e/m/c/a.java @@ -0,0 +1,264 @@ +package b.i.e.m.c; + +import androidx.exifinterface.media.ExifInterface; +import b.i.e.n.b; +import b.i.e.n.e; +import b.i.e.n.l.c; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import com.google.android.material.badge.BadgeDrawable; +import com.google.zxing.FormatException; +import com.google.zxing.ReaderException; +import com.google.zxing.common.reedsolomon.ReedSolomonException; +import java.util.Arrays; +/* compiled from: Decoder */ +public final class a { + public static final String[] a = {"CTRL_PS", " ", ExifInterface.GPS_MEASUREMENT_IN_PROGRESS, "B", "C", "D", ExifInterface.LONGITUDE_EAST, "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", ExifInterface.LATITUDE_SOUTH, ExifInterface.GPS_DIRECTION_TRUE, "U", ExifInterface.GPS_MEASUREMENT_INTERRUPTED, ExifInterface.LONGITUDE_WEST, "X", "Y", "Z", "CTRL_LL", "CTRL_ML", "CTRL_DL", "CTRL_BS"}; + + /* renamed from: b reason: collision with root package name */ + public static final String[] f1812b = {"CTRL_PS", " ", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "CTRL_US", "CTRL_ML", "CTRL_DL", "CTRL_BS"}; + public static final String[] c = {"CTRL_PS", " ", "\u0001", "\u0002", "\u0003", "\u0004", "\u0005", "\u0006", "\u0007", "\b", "\t", "\n", "\u000b", "\f", "\r", "\u001b", "\u001c", "\u001d", "\u001e", "\u001f", "@", "\\", "^", "_", "`", "|", "~", "", "CTRL_LL", "CTRL_UL", "CTRL_PL", "CTRL_BS"}; + public static final String[] d = {"", "\r", "\r\n", ". ", ", ", ": ", "!", "\"", "#", "$", "%", "&", "'", "(", ")", "*", BadgeDrawable.DEFAULT_EXCEED_MAX_BADGE_NUMBER_SUFFIX, ",", "-", ".", AutocompleteViewModel.COMMAND_DISCOVER_TOKEN, ":", ";", "<", "=", ">", "?", "[", "]", "{", "}", "CTRL_UL"}; + public static final String[] e = {"CTRL_PS", " ", "0", "1", ExifInterface.GPS_MEASUREMENT_2D, ExifInterface.GPS_MEASUREMENT_3D, "4", "5", "6", "7", "8", "9", ",", ".", "CTRL_UL", "CTRL_US"}; + public b.i.e.m.a f; + + public static int b(boolean[] zArr, int i, int i2) { + int i3 = 0; + for (int i4 = i; i4 < i + i2; i4++) { + i3 <<= 1; + if (zArr[i4]) { + i3 |= 1; + } + } + return i3; + } + + public e a(b.i.e.m.a aVar) throws FormatException { + int i; + b.i.e.n.l.a aVar2; + String str; + this.f = aVar; + b bVar = aVar.a; + boolean z2 = aVar.c; + int i2 = aVar.e; + int i3 = (z2 ? 11 : 14) + (i2 << 2); + int[] iArr = new int[i3]; + int i4 = ((z2 ? 88 : 112) + (i2 << 4)) * i2; + boolean[] zArr = new boolean[i4]; + int i5 = 2; + if (z2) { + for (int i6 = 0; i6 < i3; i6++) { + iArr[i6] = i6; + } + } else { + int i7 = i3 / 2; + int i8 = ((((i7 - 1) / 15) * 2) + (i3 + 1)) / 2; + for (int i9 = 0; i9 < i7; i9++) { + int i10 = (i9 / 15) + i9; + iArr[(i7 - i9) - 1] = (i8 - i10) - 1; + iArr[i7 + i9] = i10 + i8 + 1; + } + } + int i11 = 0; + int i12 = 0; + while (true) { + i = 12; + if (i11 >= i2) { + break; + } + int i13 = (i2 - i11) << i5; + if (z2) { + i = 9; + } + int i14 = i13 + i; + int i15 = i11 << 1; + int i16 = (i3 - 1) - i15; + int i17 = 0; + while (i17 < i14) { + int i18 = i17 << 1; + int i19 = 0; + while (i19 < i5) { + int i20 = i15 + i19; + int i21 = i15 + i17; + zArr[i12 + i18 + i19] = bVar.f(iArr[i20], iArr[i21]); + int i22 = i16 - i19; + zArr[(i14 * 2) + i12 + i18 + i19] = bVar.f(iArr[i21], iArr[i22]); + int i23 = i16 - i17; + zArr[(i14 * 4) + i12 + i18 + i19] = bVar.f(iArr[i22], iArr[i23]); + zArr[(i14 * 6) + i12 + i18 + i19] = bVar.f(iArr[i23], iArr[i20]); + i19++; + z2 = z2; + i2 = i2; + i5 = 2; + } + i17++; + i5 = 2; + } + i12 += i14 << 3; + i11++; + i2 = i2; + i5 = 2; + } + b.i.e.m.a aVar3 = this.f; + int i24 = aVar3.e; + int i25 = 8; + if (i24 <= 2) { + aVar2 = b.i.e.n.l.a.c; + i = 6; + } else if (i24 <= 8) { + aVar2 = b.i.e.n.l.a.g; + i = 8; + } else if (i24 <= 22) { + i = 10; + aVar2 = b.i.e.n.l.a.f1826b; + } else { + aVar2 = b.i.e.n.l.a.a; + } + int i26 = aVar3.d; + int i27 = i4 / i; + if (i27 >= i26) { + int i28 = i4 % i; + int[] iArr2 = new int[i27]; + int i29 = 0; + while (i29 < i27) { + iArr2[i29] = b(zArr, i28, i); + i29++; + i28 += i; + } + try { + new c(aVar2).a(iArr2, i27 - i26); + int i30 = 1; + int i31 = (1 << i) - 1; + int i32 = 0; + int i33 = 0; + while (i32 < i26) { + int i34 = iArr2[i32]; + if (i34 == 0 || i34 == i31) { + throw FormatException.a(); + } + if (i34 == i30 || i34 == i31 - 1) { + i33++; + } + i32++; + i30 = 1; + } + int i35 = (i26 * i) - i33; + boolean[] zArr2 = new boolean[i35]; + int i36 = 0; + for (int i37 = 0; i37 < i26; i37++) { + int i38 = iArr2[i37]; + int i39 = 1; + if (i38 == 1 || i38 == i31 - 1) { + Arrays.fill(zArr2, i36, (i36 + i) - 1, i38 > 1); + i36 = (i - 1) + i36; + } else { + int i40 = i - 1; + while (i40 >= 0) { + int i41 = i36 + 1; + zArr2[i36] = ((i39 << i40) & i38) != 0; + i40--; + i36 = i41; + i39 = 1; + } + } + } + int i42 = (i35 + 7) / 8; + byte[] bArr = new byte[i42]; + for (int i43 = 0; i43 < i42; i43++) { + int i44 = i43 << 3; + int i45 = i35 - i44; + bArr[i43] = (byte) (i45 >= 8 ? b(zArr2, i44, 8) : b(zArr2, i44, i45) << (8 - i45)); + } + StringBuilder sb = new StringBuilder(20); + int i46 = 1; + int i47 = 1; + int i48 = 0; + while (i48 < i35) { + if (i46 == 6) { + if (i35 - i48 < 5) { + break; + } + int b2 = b(zArr2, i48, 5); + i48 += 5; + if (b2 == 0) { + if (i35 - i48 < 11) { + break; + } + b2 = b(zArr2, i48, 11) + 31; + i48 += 11; + } + int i49 = 0; + while (true) { + if (i49 >= b2) { + break; + } else if (i35 - i48 < i25) { + i48 = i35; + break; + } else { + sb.append((char) b(zArr2, i48, i25)); + i48 += 8; + i49++; + } + } + } else { + int i50 = i46 == 4 ? 4 : 5; + if (i35 - i48 < i50) { + break; + } + int b3 = b(zArr2, i48, i50); + i48 += i50; + int h = b.c.a.y.b.h(i46); + int i51 = 3; + if (h == 0) { + str = a[b3]; + } else if (h == 1) { + str = f1812b[b3]; + } else if (h == 2) { + str = c[b3]; + } else if (h == 3) { + str = e[b3]; + } else if (h == 4) { + str = d[b3]; + } else { + throw new IllegalStateException("Bad table"); + } + if (str.startsWith("CTRL_")) { + char charAt = str.charAt(5); + if (charAt == 'B') { + i51 = 6; + } else if (charAt == 'D') { + i51 = 4; + } else if (charAt == 'P') { + i51 = 5; + } else if (charAt == 'L') { + i51 = 2; + } else if (charAt != 'M') { + i51 = 1; + } + if (str.charAt(6) == 'L') { + i47 = i51; + } else { + i47 = i46; + i46 = i51; + i25 = 8; + } + } else { + sb.append(str); + } + } + i46 = i47; + i25 = 8; + } + e eVar = new e(bArr, sb.toString(), null, null); + eVar.f1820b = i35; + return eVar; + } catch (ReedSolomonException e2) { + if (ReaderException.j) { + throw new FormatException(e2); + } + throw FormatException.l; + } + } else { + throw FormatException.a(); + } + } +} diff --git a/app/src/main/java/b/i/e/m/d/a.java b/app/src/main/java/b/i/e/m/d/a.java new file mode 100644 index 0000000000..d8c70911f1 --- /dev/null +++ b/app/src/main/java/b/i/e/m/d/a.java @@ -0,0 +1,482 @@ +package b.i.e.m.d; + +import b.i.a.f.e.o.f; +import b.i.e.k; +import b.i.e.n.b; +import b.i.e.n.i; +import b.i.e.n.l.c; +import com.google.zxing.NotFoundException; +import com.google.zxing.common.reedsolomon.ReedSolomonException; +/* compiled from: Detector */ +public final class a { + public static final int[] a = {3808, 476, 2107, 1799}; + + /* renamed from: b reason: collision with root package name */ + public final b f1813b; + public boolean c; + public int d; + public int e; + public int f; + public int g; + + /* compiled from: Detector */ + /* renamed from: b.i.e.m.d.a$a reason: collision with other inner class name */ + public static final class C0151a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1814b; + + public C0151a(int i, int i2) { + this.a = i; + this.f1814b = i2; + } + + public String toString() { + StringBuilder sb = new StringBuilder("<"); + sb.append(this.a); + sb.append(' '); + return b.d.b.a.a.z(sb, this.f1814b, '>'); + } + } + + public a(b bVar) { + this.f1813b = bVar; + } + + public static k[] b(k[] kVarArr, int i, int i2) { + float f = ((float) i2) / (((float) i) * 2.0f); + float f2 = kVarArr[0].a - kVarArr[2].a; + float f3 = kVarArr[0].f1811b - kVarArr[2].f1811b; + float f4 = (kVarArr[0].a + kVarArr[2].a) / 2.0f; + float f5 = (kVarArr[0].f1811b + kVarArr[2].f1811b) / 2.0f; + float f6 = f2 * f; + float f7 = f3 * f; + k kVar = new k(f4 + f6, f5 + f7); + k kVar2 = new k(f4 - f6, f5 - f7); + float f8 = kVarArr[1].a - kVarArr[3].a; + float f9 = kVarArr[1].f1811b - kVarArr[3].f1811b; + float f10 = (kVarArr[1].a + kVarArr[3].a) / 2.0f; + float f11 = (kVarArr[1].f1811b + kVarArr[3].f1811b) / 2.0f; + float f12 = f8 * f; + float f13 = f * f9; + return new k[]{kVar, new k(f10 + f12, f11 + f13), kVar2, new k(f10 - f12, f11 - f13)}; + } + + public b.i.e.m.a a(boolean z2) throws NotFoundException { + k kVar; + k kVar2; + k kVar3; + k kVar4; + k kVar5; + k kVar6; + k kVar7; + k kVar8; + int i; + int i2; + long j; + C0151a aVar; + int i3 = 2; + int i4 = -1; + int i5 = 1; + try { + b bVar = this.f1813b; + k[] b2 = new b.i.e.n.k.a(bVar, 10, bVar.j / 2, bVar.k / 2).b(); + kVar3 = b2[0]; + kVar2 = b2[1]; + kVar = b2[2]; + kVar4 = b2[3]; + } catch (NotFoundException unused) { + b bVar2 = this.f1813b; + int i6 = bVar2.j / 2; + int i7 = bVar2.k / 2; + int i8 = i7 - 7; + int i9 = i6 + 7 + 1; + int i10 = i9; + int i11 = i8; + while (true) { + i11--; + if (!f(i10, i11) || this.f1813b.f(i10, i11)) { + break; + } + i10++; + } + int i12 = i10 - 1; + int i13 = i11 + 1; + while (f(i12, i13) && !this.f1813b.f(i12, i13)) { + i12++; + } + int i14 = i12 - 1; + while (f(i14, i13) && !this.f1813b.f(i14, i13)) { + i13--; + } + k kVar9 = new k((float) i14, (float) (i13 + 1)); + int i15 = i7 + 7; + int i16 = i15; + while (true) { + i16++; + if (!f(i9, i16) || this.f1813b.f(i9, i16)) { + break; + } + i9++; + } + int i17 = i9 - 1; + int i18 = i16 - 1; + while (f(i17, i18) && !this.f1813b.f(i17, i18)) { + i17++; + } + int i19 = i17 - 1; + while (f(i19, i18) && !this.f1813b.f(i19, i18)) { + i18++; + } + k kVar10 = new k((float) i19, (float) (i18 - 1)); + int i20 = i6 - 7; + int i21 = i20 - 1; + while (true) { + i15++; + if (!f(i21, i15) || this.f1813b.f(i21, i15)) { + break; + } + i21--; + } + int i22 = i21 + 1; + int i23 = i15 - 1; + while (f(i22, i23) && !this.f1813b.f(i22, i23)) { + i22--; + } + int i24 = i22 + 1; + while (f(i24, i23) && !this.f1813b.f(i24, i23)) { + i23++; + } + k kVar11 = new k((float) i24, (float) (i23 - 1)); + do { + i20--; + i8--; + if (!f(i20, i8)) { + break; + } + } while (!this.f1813b.f(i20, i8)); + int i25 = i20 + 1; + int i26 = i8 + 1; + while (f(i25, i26) && !this.f1813b.f(i25, i26)) { + i25--; + } + int i27 = i25 + 1; + while (f(i27, i26) && !this.f1813b.f(i27, i26)) { + i26--; + } + kVar4 = new k((float) i27, (float) (i26 + 1)); + kVar = kVar11; + kVar2 = kVar10; + kVar3 = kVar9; + } + int V0 = f.V0((((kVar3.a + kVar4.a) + kVar2.a) + kVar.a) / 4.0f); + int V02 = f.V0((((kVar3.f1811b + kVar4.f1811b) + kVar2.f1811b) + kVar.f1811b) / 4.0f); + try { + k[] b3 = new b.i.e.n.k.a(this.f1813b, 15, V0, V02).b(); + kVar7 = b3[0]; + kVar6 = b3[1]; + kVar5 = b3[2]; + kVar8 = b3[3]; + } catch (NotFoundException unused2) { + int i28 = V02 - 7; + int i29 = V0 + 7 + 1; + int i30 = i29; + int i31 = i28; + while (true) { + i31--; + if (!f(i30, i31) || this.f1813b.f(i30, i31)) { + break; + } + i30++; + } + int i32 = i30 - 1; + int i33 = i31 + 1; + while (f(i32, i33) && !this.f1813b.f(i32, i33)) { + i32++; + } + int i34 = i32 - 1; + while (f(i34, i33) && !this.f1813b.f(i34, i33)) { + i33--; + } + k kVar12 = new k((float) i34, (float) (i33 + 1)); + int i35 = V02 + 7; + int i36 = i35; + while (true) { + i36++; + if (!f(i29, i36) || this.f1813b.f(i29, i36)) { + break; + } + i29++; + } + int i37 = i29 - 1; + int i38 = i36 - 1; + while (f(i37, i38) && !this.f1813b.f(i37, i38)) { + i37++; + } + int i39 = i37 - 1; + while (f(i39, i38) && !this.f1813b.f(i39, i38)) { + i38++; + } + k kVar13 = new k((float) i39, (float) (i38 - 1)); + int i40 = V0 - 7; + int i41 = i40 - 1; + while (true) { + i35++; + if (!f(i41, i35) || this.f1813b.f(i41, i35)) { + break; + } + i41--; + } + int i42 = i41 + 1; + int i43 = i35 - 1; + while (f(i42, i43) && !this.f1813b.f(i42, i43)) { + i42--; + } + int i44 = i42 + 1; + while (f(i44, i43) && !this.f1813b.f(i44, i43)) { + i43++; + } + k kVar14 = new k((float) i44, (float) (i43 - 1)); + do { + i40--; + i28--; + if (!f(i40, i28)) { + break; + } + } while (!this.f1813b.f(i40, i28)); + int i45 = i40 + 1; + int i46 = i28 + 1; + while (f(i45, i46) && !this.f1813b.f(i45, i46)) { + i45--; + } + int i47 = i45 + 1; + while (f(i47, i46) && !this.f1813b.f(i47, i46)) { + i46--; + } + kVar8 = new k((float) i47, (float) (i46 + 1)); + kVar7 = kVar12; + kVar5 = kVar14; + kVar6 = kVar13; + } + C0151a aVar2 = new C0151a(f.V0((((kVar7.a + kVar8.a) + kVar6.a) + kVar5.a) / 4.0f), f.V0((((kVar7.f1811b + kVar8.f1811b) + kVar6.f1811b) + kVar5.f1811b) / 4.0f)); + this.f = 1; + C0151a aVar3 = aVar2; + C0151a aVar4 = aVar3; + C0151a aVar5 = aVar4; + boolean z3 = true; + while (this.f < 9) { + C0151a e = e(aVar2, z3, i5, i4); + C0151a e2 = e(aVar3, z3, i5, i5); + C0151a e3 = e(aVar4, z3, i4, i5); + C0151a e4 = e(aVar5, z3, i4, i4); + if (this.f > i3) { + double Q = (double) ((f.Q(e4.a, e4.f1814b, e.a, e.f1814b) * ((float) this.f)) / (f.Q(aVar5.a, aVar5.f1814b, aVar2.a, aVar2.f1814b) * ((float) (this.f + i3)))); + if (Q < 0.75d || Q > 1.25d) { + break; + } + C0151a aVar6 = new C0151a(e.a - 3, e.f1814b + 3); + C0151a aVar7 = new C0151a(e2.a - 3, e2.f1814b - 3); + C0151a aVar8 = new C0151a(e3.a + 3, e3.f1814b - 3); + aVar = e; + C0151a aVar9 = new C0151a(e4.a + 3, e4.f1814b + 3); + int c = c(aVar9, aVar6); + if (!(c != 0 && c(aVar6, aVar7) == c && c(aVar7, aVar8) == c && c(aVar8, aVar9) == c)) { + break; + } + } else { + aVar = e; + } + z3 = !z3; + this.f++; + aVar5 = e4; + aVar3 = e2; + aVar4 = e3; + aVar2 = aVar; + i3 = 2; + i4 = -1; + i5 = 1; + } + int i48 = this.f; + if (i48 == 5 || i48 == 7) { + this.c = i48 == 5; + int i49 = i48 * 2; + k[] b4 = b(new k[]{new k(((float) aVar2.a) + 0.5f, ((float) aVar2.f1814b) - 0.5f), new k(((float) aVar3.a) + 0.5f, ((float) aVar3.f1814b) + 0.5f), new k(((float) aVar4.a) - 0.5f, ((float) aVar4.f1814b) + 0.5f), new k(((float) aVar5.a) - 0.5f, ((float) aVar5.f1814b) - 0.5f)}, i49 - 3, i49); + if (z2) { + k kVar15 = b4[0]; + b4[0] = b4[2]; + b4[2] = kVar15; + } + if (!g(b4[0]) || !g(b4[1]) || !g(b4[2]) || !g(b4[3])) { + throw NotFoundException.l; + } + int i50 = this.f * 2; + int[] iArr = {h(b4[0], b4[1], i50), h(b4[1], b4[2], i50), h(b4[2], b4[3], i50), h(b4[3], b4[0], i50)}; + int i51 = 0; + for (int i52 = 0; i52 < 4; i52++) { + int i53 = iArr[i52]; + i51 = (i51 << 3) + ((i53 >> (i50 - 2)) << 1) + (i53 & 1); + } + int i54 = ((i51 & 1) << 11) + (i51 >> 1); + for (int i55 = 0; i55 < 4; i55++) { + if (Integer.bitCount(a[i55] ^ i54) <= 2) { + this.g = i55; + long j2 = 0; + for (int i56 = 0; i56 < 4; i56++) { + int i57 = iArr[(this.g + i56) % 4]; + if (this.c) { + j = j2 << 7; + i2 = (i57 >> 1) & 127; + } else { + j = j2 << 10; + i2 = ((i57 >> 1) & 31) + ((i57 >> 2) & 992); + } + j2 = j + ((long) i2); + } + int i58 = 7; + if (this.c) { + i = 2; + } else { + i = 4; + i58 = 10; + } + int i59 = i58 - i; + int[] iArr2 = new int[i58]; + while (true) { + i58--; + if (i58 >= 0) { + iArr2[i58] = ((int) j2) & 15; + j2 >>= 4; + } else { + try { + break; + } catch (ReedSolomonException unused3) { + throw NotFoundException.l; + } + } + } + new c(b.i.e.n.l.a.d).a(iArr2, i59); + int i60 = 0; + for (int i61 = 0; i61 < i; i61++) { + i60 = (i60 << 4) + iArr2[i61]; + } + if (this.c) { + this.d = (i60 >> 6) + 1; + this.e = (i60 & 63) + 1; + } else { + this.d = (i60 >> 11) + 1; + this.e = (i60 & 2047) + 1; + } + b bVar3 = this.f1813b; + int i62 = this.g; + k kVar16 = b4[i62 % 4]; + k kVar17 = b4[(i62 + 1) % 4]; + k kVar18 = b4[(i62 + 2) % 4]; + k kVar19 = b4[(i62 + 3) % 4]; + b.i.e.n.f fVar = b.i.e.n.f.a; + int d = d(); + float f = ((float) d) / 2.0f; + float f2 = (float) this.f; + float f3 = f - f2; + float f4 = f + f2; + return new b.i.e.m.a(fVar.a(bVar3, d, d, i.a(f3, f3, f4, f3, f4, f4, f3, f4, kVar16.a, kVar16.f1811b, kVar17.a, kVar17.f1811b, kVar18.a, kVar18.f1811b, kVar19.a, kVar19.f1811b)), b(b4, this.f * 2, d()), this.c, this.e, this.d); + } + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + + public final int c(C0151a aVar, C0151a aVar2) { + float Q = f.Q(aVar.a, aVar.f1814b, aVar2.a, aVar2.f1814b); + int i = aVar2.a; + int i2 = aVar.a; + float f = ((float) (i - i2)) / Q; + int i3 = aVar2.f1814b; + int i4 = aVar.f1814b; + float f2 = ((float) (i3 - i4)) / Q; + float f3 = (float) i2; + float f4 = (float) i4; + boolean f5 = this.f1813b.f(i2, i4); + int ceil = (int) Math.ceil((double) Q); + boolean z2 = false; + int i5 = 0; + for (int i6 = 0; i6 < ceil; i6++) { + f3 += f; + f4 += f2; + if (this.f1813b.f(f.V0(f3), f.V0(f4)) != f5) { + i5++; + } + } + float f6 = ((float) i5) / Q; + if (f6 > 0.1f && f6 < 0.9f) { + return 0; + } + if (f6 <= 0.1f) { + z2 = true; + } + return z2 == f5 ? 1 : -1; + } + + public final int d() { + if (this.c) { + return (this.d * 4) + 11; + } + int i = this.d; + if (i <= 4) { + return (i * 4) + 15; + } + return ((((i - 4) / 8) + 1) * 2) + (i * 4) + 15; + } + + public final C0151a e(C0151a aVar, boolean z2, int i, int i2) { + int i3 = aVar.a + i; + int i4 = aVar.f1814b; + while (true) { + i4 += i2; + if (!f(i3, i4) || this.f1813b.f(i3, i4) != z2) { + break; + } + i3 += i; + } + int i5 = i3 - i; + int i6 = i4 - i2; + while (f(i5, i6) && this.f1813b.f(i5, i6) == z2) { + i5 += i; + } + int i7 = i5 - i; + while (f(i7, i6) && this.f1813b.f(i7, i6) == z2) { + i6 += i2; + } + return new C0151a(i7, i6 - i2); + } + + public final boolean f(int i, int i2) { + if (i < 0) { + return false; + } + b bVar = this.f1813b; + return i < bVar.j && i2 > 0 && i2 < bVar.k; + } + + public final boolean g(k kVar) { + return f(f.V0(kVar.a), f.V0(kVar.f1811b)); + } + + public final int h(k kVar, k kVar2, int i) { + float P = f.P(kVar.a, kVar.f1811b, kVar2.a, kVar2.f1811b); + float f = P / ((float) i); + float f2 = kVar.a; + float f3 = kVar.f1811b; + float f4 = ((kVar2.a - f2) * f) / P; + float f5 = ((kVar2.f1811b - f3) * f) / P; + int i2 = 0; + for (int i3 = 0; i3 < i; i3++) { + float f6 = (float) i3; + if (this.f1813b.f(f.V0((f6 * f4) + f2), f.V0((f6 * f5) + f3))) { + i2 |= 1 << ((i - i3) - 1); + } + } + return i2; + } +} diff --git a/app/src/main/java/b/i/e/n/a.java b/app/src/main/java/b/i/e/n/a.java new file mode 100644 index 0000000000..e3f59bcc27 --- /dev/null +++ b/app/src/main/java/b/i/e/n/a.java @@ -0,0 +1,162 @@ +package b.i.e.n; + +import java.util.Arrays; +/* compiled from: BitArray */ +public final class a implements Cloneable { + public int[] j; + public int k; + + public a() { + this.k = 0; + this.j = new int[1]; + } + + public a(int i) { + this.k = i; + this.j = new int[((i + 31) / 32)]; + } + + public a(int[] iArr, int i) { + this.j = iArr; + this.k = i; + } + + public boolean b(int i) { + return ((1 << (i & 31)) & this.j[i / 32]) != 0; + } + + @Override // java.lang.Object + public Object clone() throws CloneNotSupportedException { + return new a((int[]) this.j.clone(), this.k); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return this.k == aVar.k && Arrays.equals(this.j, aVar.j); + } + + public int f(int i) { + int i2 = this.k; + if (i >= i2) { + return i2; + } + int i3 = i / 32; + int i4 = (~((1 << (i & 31)) - 1)) & this.j[i3]; + while (i4 == 0) { + i3++; + int[] iArr = this.j; + if (i3 == iArr.length) { + return this.k; + } + i4 = iArr[i3]; + } + int numberOfTrailingZeros = Integer.numberOfTrailingZeros(i4) + (i3 << 5); + int i5 = this.k; + return numberOfTrailingZeros > i5 ? i5 : numberOfTrailingZeros; + } + + public int g(int i) { + int i2 = this.k; + if (i >= i2) { + return i2; + } + int i3 = i / 32; + int i4 = (~((1 << (i & 31)) - 1)) & (~this.j[i3]); + while (i4 == 0) { + i3++; + int[] iArr = this.j; + if (i3 == iArr.length) { + return this.k; + } + i4 = ~iArr[i3]; + } + int numberOfTrailingZeros = Integer.numberOfTrailingZeros(i4) + (i3 << 5); + int i5 = this.k; + return numberOfTrailingZeros > i5 ? i5 : numberOfTrailingZeros; + } + + public boolean h(int i, int i2, boolean z2) { + if (i2 < i || i < 0 || i2 > this.k) { + throw new IllegalArgumentException(); + } else if (i2 == i) { + return true; + } else { + int i3 = i2 - 1; + int i4 = i / 32; + int i5 = i3 / 32; + int i6 = i4; + while (i6 <= i5) { + int i7 = 31; + int i8 = i6 > i4 ? 0 : i & 31; + if (i6 >= i5) { + i7 = 31 & i3; + } + int i9 = (2 << i7) - (1 << i8); + int i10 = this.j[i6] & i9; + if (!z2) { + i9 = 0; + } + if (i10 != i9) { + return false; + } + i6++; + } + return true; + } + } + + @Override // java.lang.Object + public int hashCode() { + return Arrays.hashCode(this.j) + (this.k * 31); + } + + public void i() { + int[] iArr = new int[this.j.length]; + int i = (this.k - 1) / 32; + int i2 = i + 1; + for (int i3 = 0; i3 < i2; i3++) { + long j = (long) this.j[i3]; + long j2 = ((j & 1431655765) << 1) | ((j >> 1) & 1431655765); + long j3 = ((j2 & 858993459) << 2) | ((j2 >> 2) & 858993459); + long j4 = ((j3 & 252645135) << 4) | ((j3 >> 4) & 252645135); + long j5 = ((j4 & 16711935) << 8) | ((j4 >> 8) & 16711935); + iArr[i - i3] = (int) (((j5 & 65535) << 16) | ((j5 >> 16) & 65535)); + } + int i4 = this.k; + int i5 = i2 << 5; + if (i4 != i5) { + int i6 = i5 - i4; + int i7 = iArr[0] >>> i6; + for (int i8 = 1; i8 < i2; i8++) { + int i9 = iArr[i8]; + iArr[i8 - 1] = i7 | (i9 << (32 - i6)); + i7 = i9 >>> i6; + } + iArr[i2 - 1] = i7; + } + this.j = iArr; + } + + public void j(int i) { + int[] iArr = this.j; + int i2 = i / 32; + iArr[i2] = (1 << (i & 31)) | iArr[i2]; + } + + @Override // java.lang.Object + public String toString() { + int i = this.k; + StringBuilder sb = new StringBuilder((i / 8) + i + 1); + for (int i2 = 0; i2 < this.k; i2++) { + if ((i2 & 7) == 0) { + sb.append(' '); + } + sb.append(b(i2) ? 'X' : '.'); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/e/n/b.java b/app/src/main/java/b/i/e/n/b.java new file mode 100644 index 0000000000..dc7b9a99fb --- /dev/null +++ b/app/src/main/java/b/i/e/n/b.java @@ -0,0 +1,159 @@ +package b.i.e.n; + +import java.util.Arrays; +/* compiled from: BitMatrix */ +public final class b implements Cloneable { + public final int j; + public final int k; + public final int l; + public final int[] m; + + public b(int i, int i2) { + if (i <= 0 || i2 <= 0) { + throw new IllegalArgumentException("Both dimensions must be greater than 0"); + } + this.j = i; + this.k = i2; + int i3 = (i + 31) / 32; + this.l = i3; + this.m = new int[(i3 * i2)]; + } + + public b(int i, int i2, int i3, int[] iArr) { + this.j = i; + this.k = i2; + this.l = i3; + this.m = iArr; + } + + public void b(int i, int i2) { + int i3 = (i / 32) + (i2 * this.l); + int[] iArr = this.m; + iArr[i3] = (1 << (i & 31)) ^ iArr[i3]; + } + + @Override // java.lang.Object + public Object clone() throws CloneNotSupportedException { + return new b(this.j, this.k, this.l, (int[]) this.m.clone()); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.j == bVar.j && this.k == bVar.k && this.l == bVar.l && Arrays.equals(this.m, bVar.m); + } + + public boolean f(int i, int i2) { + return ((this.m[(i / 32) + (i2 * this.l)] >>> (i & 31)) & 1) != 0; + } + + public int[] g() { + int length = this.m.length - 1; + while (length >= 0 && this.m[length] == 0) { + length--; + } + if (length < 0) { + return null; + } + int i = this.l; + int i2 = length / i; + int i3 = (length % i) << 5; + int i4 = 31; + while ((this.m[length] >>> i4) == 0) { + i4--; + } + return new int[]{i3 + i4, i2}; + } + + public a h(int i, a aVar) { + int i2 = aVar.k; + int i3 = this.j; + if (i2 < i3) { + aVar = new a(i3); + } else { + int length = aVar.j.length; + for (int i4 = 0; i4 < length; i4++) { + aVar.j[i4] = 0; + } + } + int i5 = i * this.l; + for (int i6 = 0; i6 < this.l; i6++) { + aVar.j[(i6 << 5) / 32] = this.m[i5 + i6]; + } + return aVar; + } + + @Override // java.lang.Object + public int hashCode() { + int i = this.j; + return Arrays.hashCode(this.m) + (((((((i * 31) + i) * 31) + this.k) * 31) + this.l) * 31); + } + + public int[] i() { + int[] iArr; + int i = 0; + while (true) { + iArr = this.m; + if (i >= iArr.length || iArr[i] != 0) { + break; + } + i++; + } + if (i == iArr.length) { + return null; + } + int i2 = this.l; + int i3 = i / i2; + int i4 = (i % i2) << 5; + int i5 = iArr[i]; + int i6 = 0; + while ((i5 << (31 - i6)) == 0) { + i6++; + } + return new int[]{i4 + i6, i3}; + } + + public void j(int i, int i2) { + int i3 = (i / 32) + (i2 * this.l); + int[] iArr = this.m; + iArr[i3] = (1 << (i & 31)) | iArr[i3]; + } + + public void k(int i, int i2, int i3, int i4) { + if (i2 < 0 || i < 0) { + throw new IllegalArgumentException("Left and top must be nonnegative"); + } else if (i4 <= 0 || i3 <= 0) { + throw new IllegalArgumentException("Height and width must be at least 1"); + } else { + int i5 = i3 + i; + int i6 = i4 + i2; + if (i6 > this.k || i5 > this.j) { + throw new IllegalArgumentException("The region must fit inside the matrix"); + } + while (i2 < i6) { + int i7 = this.l * i2; + for (int i8 = i; i8 < i5; i8++) { + int[] iArr = this.m; + int i9 = (i8 / 32) + i7; + iArr[i9] = iArr[i9] | (1 << (i8 & 31)); + } + i2++; + } + } + } + + @Override // java.lang.Object + public String toString() { + StringBuilder sb = new StringBuilder((this.j + 1) * this.k); + for (int i = 0; i < this.k; i++) { + for (int i2 = 0; i2 < this.j; i2++) { + sb.append(f(i2, i) ? "X " : " "); + } + sb.append("\n"); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/e/n/c.java b/app/src/main/java/b/i/e/n/c.java new file mode 100644 index 0000000000..07e43e9589 --- /dev/null +++ b/app/src/main/java/b/i/e/n/c.java @@ -0,0 +1,59 @@ +package b.i.e.n; +/* compiled from: BitSource */ +public final class c { + public final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public int f1815b; + public int c; + + public c(byte[] bArr) { + this.a = bArr; + } + + public int a() { + return ((this.a.length - this.f1815b) * 8) - this.c; + } + + public int b(int i) { + if (i <= 0 || i > 32 || i > a()) { + throw new IllegalArgumentException(String.valueOf(i)); + } + int i2 = this.c; + int i3 = 0; + if (i2 > 0) { + int i4 = 8 - i2; + int i5 = i < i4 ? i : i4; + int i6 = i4 - i5; + byte[] bArr = this.a; + int i7 = this.f1815b; + int i8 = (((255 >> (8 - i5)) << i6) & bArr[i7]) >> i6; + i -= i5; + int i9 = i2 + i5; + this.c = i9; + if (i9 == 8) { + this.c = 0; + this.f1815b = i7 + 1; + } + i3 = i8; + } + if (i <= 0) { + return i3; + } + while (i >= 8) { + int i10 = i3 << 8; + byte[] bArr2 = this.a; + int i11 = this.f1815b; + i3 = (bArr2[i11] & 255) | i10; + this.f1815b = i11 + 1; + i -= 8; + } + if (i <= 0) { + return i3; + } + int i12 = 8 - i; + int i13 = (i3 << i) | ((((255 >> i12) << i12) & this.a[this.f1815b]) >> i12); + this.c += i; + return i13; + } +} diff --git a/app/src/main/java/b/i/e/n/d.java b/app/src/main/java/b/i/e/n/d.java new file mode 100644 index 0000000000..1dc6859b12 --- /dev/null +++ b/app/src/main/java/b/i/e/n/d.java @@ -0,0 +1,77 @@ +package b.i.e.n; + +import com.adjust.sdk.Constants; +import com.google.zxing.FormatException; +import java.util.HashMap; +import java.util.Map; +/* compiled from: CharacterSetECI */ +public enum d { + Cp437(new int[]{0, 2}, new String[0]), + ISO8859_1(new int[]{1, 3}, "ISO-8859-1"), + ISO8859_2(4, "ISO-8859-2"), + ISO8859_3(5, "ISO-8859-3"), + ISO8859_4(6, "ISO-8859-4"), + ISO8859_5(7, "ISO-8859-5"), + ISO8859_6(8, "ISO-8859-6"), + ISO8859_7(9, "ISO-8859-7"), + ISO8859_8(10, "ISO-8859-8"), + ISO8859_9(11, "ISO-8859-9"), + ISO8859_10(12, "ISO-8859-10"), + ISO8859_11(13, "ISO-8859-11"), + ISO8859_13(15, "ISO-8859-13"), + ISO8859_14(16, "ISO-8859-14"), + ISO8859_15(17, "ISO-8859-15"), + ISO8859_16(18, "ISO-8859-16"), + SJIS(20, "Shift_JIS"), + Cp1250(21, "windows-1250"), + Cp1251(22, "windows-1251"), + Cp1252(23, "windows-1252"), + Cp1256(24, "windows-1256"), + UnicodeBigUnmarked(25, "UTF-16BE", "UnicodeBig"), + UTF8(26, Constants.ENCODING), + ASCII(new int[]{27, 170}, "US-ASCII"), + Big5(28), + GB18030(29, "GB2312", "EUC_CN", "GBK"), + EUC_KR(30, "EUC-KR"); + + public static final Map K = new HashMap(); + public static final Map L = new HashMap(); + private final String[] otherEncodingNames; + private final int[] values; + + static { + d[] values = values(); + for (int i = 0; i < 27; i++) { + d dVar = values[i]; + for (int i2 : dVar.values) { + K.put(Integer.valueOf(i2), dVar); + } + L.put(dVar.name(), dVar); + for (String str : dVar.otherEncodingNames) { + L.put(str, dVar); + } + } + } + + public d(int i) { + this.values = new int[]{i}; + this.otherEncodingNames = new String[0]; + } + + public d(int i, String... strArr) { + this.values = new int[]{i}; + this.otherEncodingNames = strArr; + } + + public d(int[] iArr, String... strArr) { + this.values = iArr; + this.otherEncodingNames = strArr; + } + + public static d f(int i) throws FormatException { + if (i >= 0 && i < 900) { + return K.get(Integer.valueOf(i)); + } + throw FormatException.a(); + } +} diff --git a/app/src/main/java/b/i/e/n/e.java b/app/src/main/java/b/i/e/n/e.java new file mode 100644 index 0000000000..4a3c9f3bfd --- /dev/null +++ b/app/src/main/java/b/i/e/n/e.java @@ -0,0 +1,30 @@ +package b.i.e.n; + +import java.util.List; +/* compiled from: DecoderResult */ +public final class e { + public final byte[] a; + + /* renamed from: b reason: collision with root package name */ + public int f1820b; + public final String c; + public final List d; + public final String e; + public Object f; + public final int g; + public final int h; + + public e(byte[] bArr, String str, List list, String str2) { + this(bArr, str, list, str2, -1, -1); + } + + public e(byte[] bArr, String str, List list, String str2, int i, int i2) { + this.a = bArr; + this.f1820b = bArr == null ? 0 : bArr.length * 8; + this.c = str; + this.d = list; + this.e = str2; + this.g = i2; + this.h = i; + } +} diff --git a/app/src/main/java/b/i/e/n/f.java b/app/src/main/java/b/i/e/n/f.java new file mode 100644 index 0000000000..2df158541c --- /dev/null +++ b/app/src/main/java/b/i/e/n/f.java @@ -0,0 +1,114 @@ +package b.i.e.n; + +import com.google.zxing.NotFoundException; +import java.util.Objects; +/* compiled from: DefaultGridSampler */ +public final class f { + public static f a = new f(); + + /* JADX WARNING: Removed duplicated region for block: B:27:0x009b */ + /* JADX WARNING: Removed duplicated region for block: B:28:0x009e */ + /* JADX WARNING: Removed duplicated region for block: B:49:0x00d4 */ + /* JADX WARNING: Removed duplicated region for block: B:50:0x00d7 */ + public b a(b bVar, int i, int i2, i iVar) throws NotFoundException { + int i3 = i2; + if (i <= 0 || i3 <= 0) { + throw NotFoundException.l; + } + b bVar2 = new b(i, i3); + int i4 = i * 2; + float[] fArr = new float[i4]; + int i5 = 0; + while (i5 < i3) { + float f = ((float) i5) + 0.5f; + for (int i6 = 0; i6 < i4; i6 += 2) { + fArr[i6] = ((float) (i6 / 2)) + 0.5f; + fArr[i6 + 1] = f; + } + Objects.requireNonNull(iVar); + float f2 = iVar.a; + float f3 = iVar.f1823b; + float f4 = iVar.c; + float f5 = iVar.d; + float f6 = iVar.e; + float f7 = iVar.f; + float f8 = iVar.g; + float f9 = iVar.h; + float f10 = iVar.i; + for (int i7 = 0; i7 < i4; i7 += 2) { + float f11 = fArr[i7]; + int i8 = i7 + 1; + float f12 = fArr[i8]; + float f13 = (f7 * f12) + (f4 * f11) + f10; + fArr[i7] = (((f5 * f12) + (f2 * f11)) + f8) / f13; + fArr[i8] = (((f12 * f6) + (f11 * f3)) + f9) / f13; + } + int i9 = bVar.j; + int i10 = bVar.k; + boolean z2 = true; + for (int i11 = 0; i11 < i4 && z2; i11 += 2) { + int i12 = (int) fArr[i11]; + int i13 = i11 + 1; + int i14 = (int) fArr[i13]; + if (i12 < -1 || i12 > i9 || i14 < -1 || i14 > i10) { + throw NotFoundException.l; + } + if (i12 == -1) { + fArr[i11] = 0.0f; + } else if (i12 == i9) { + fArr[i11] = (float) (i9 - 1); + } else { + z2 = false; + if (i14 != -1) { + fArr[i13] = 0.0f; + } else if (i14 == i10) { + fArr[i13] = (float) (i10 - 1); + } + z2 = true; + } + z2 = true; + if (i14 != -1) { + } + z2 = true; + } + boolean z3 = true; + for (int i15 = i4 - 2; i15 >= 0 && z3; i15 -= 2) { + int i16 = (int) fArr[i15]; + int i17 = i15 + 1; + int i18 = (int) fArr[i17]; + if (i16 < -1 || i16 > i9 || i18 < -1 || i18 > i10) { + throw NotFoundException.l; + } + if (i16 == -1) { + fArr[i15] = 0.0f; + } else if (i16 == i9) { + fArr[i15] = (float) (i9 - 1); + } else { + z3 = false; + if (i18 != -1) { + fArr[i17] = 0.0f; + } else if (i18 == i10) { + fArr[i17] = (float) (i10 - 1); + } + z3 = true; + } + z3 = true; + if (i18 != -1) { + } + z3 = true; + } + for (int i19 = 0; i19 < i4; i19 += 2) { + try { + if (bVar.f((int) fArr[i19], (int) fArr[i19 + 1])) { + bVar2.j(i19 / 2, i5); + } + } catch (ArrayIndexOutOfBoundsException unused) { + throw NotFoundException.l; + } + } + i5++; + i3 = i2; + } + return bVar2; + } +} diff --git a/app/src/main/java/b/i/e/n/g.java b/app/src/main/java/b/i/e/n/g.java new file mode 100644 index 0000000000..d8ebd92f49 --- /dev/null +++ b/app/src/main/java/b/i/e/n/g.java @@ -0,0 +1,15 @@ +package b.i.e.n; + +import b.i.e.k; +/* compiled from: DetectorResult */ +public class g { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final k[] f1821b; + + public g(b bVar, k[] kVarArr) { + this.a = bVar; + this.f1821b = kVarArr; + } +} diff --git a/app/src/main/java/b/i/e/n/h.java b/app/src/main/java/b/i/e/n/h.java new file mode 100644 index 0000000000..97868d3fad --- /dev/null +++ b/app/src/main/java/b/i/e/n/h.java @@ -0,0 +1,73 @@ +package b.i.e.n; + +import b.i.e.b; +import b.i.e.f; +import com.google.zxing.NotFoundException; +/* compiled from: HybridBinarizer */ +public final class h extends b { + + /* renamed from: b reason: collision with root package name */ + public static final byte[] f1822b = new byte[0]; + public byte[] c = f1822b; + public final int[] d = new int[32]; + public b e; + + public h(f fVar) { + super(fVar); + } + + public static int a(int[] iArr) throws NotFoundException { + int length = iArr.length; + int i = 0; + int i2 = 0; + int i3 = 0; + for (int i4 = 0; i4 < length; i4++) { + if (iArr[i4] > i) { + i = iArr[i4]; + i3 = i4; + } + if (iArr[i4] > i2) { + i2 = iArr[i4]; + } + } + int i5 = 0; + int i6 = 0; + for (int i7 = 0; i7 < length; i7++) { + int i8 = i7 - i3; + int i9 = iArr[i7] * i8 * i8; + if (i9 > i6) { + i5 = i7; + i6 = i9; + } + } + if (i3 <= i5) { + i3 = i5; + i5 = i3; + } + if (i3 - i5 > length / 16) { + int i10 = i3 - 1; + int i11 = i10; + int i12 = -1; + while (i10 > i5) { + int i13 = i10 - i5; + int i14 = (i2 - iArr[i10]) * (i3 - i10) * i13 * i13; + if (i14 > i12) { + i11 = i10; + i12 = i14; + } + i10--; + } + return i11 << 3; + } + throw NotFoundException.l; + } + + public final void b(int i) { + if (this.c.length < i) { + this.c = new byte[i]; + } + for (int i2 = 0; i2 < 32; i2++) { + this.d[i2] = 0; + } + } +} diff --git a/app/src/main/java/b/i/e/n/i.java b/app/src/main/java/b/i/e/n/i.java new file mode 100644 index 0000000000..2be4742f4c --- /dev/null +++ b/app/src/main/java/b/i/e/n/i.java @@ -0,0 +1,84 @@ +package b.i.e.n; +/* compiled from: PerspectiveTransform */ +public final class i { + public final float a; + + /* renamed from: b reason: collision with root package name */ + public final float f1823b; + public final float c; + public final float d; + public final float e; + public final float f; + public final float g; + public final float h; + public final float i; + + public i(float f, float f2, float f3, float f4, float f5, float f6, float f7, float f8, float f9) { + this.a = f; + this.f1823b = f4; + this.c = f7; + this.d = f2; + this.e = f5; + this.f = f8; + this.g = f3; + this.h = f6; + this.i = f9; + } + + public static i a(float f, float f2, float f3, float f4, float f5, float f6, float f7, float f8, float f9, float f10, float f11, float f12, float f13, float f14, float f15, float f16) { + i b2 = b(f, f2, f3, f4, f5, f6, f7, f8); + float f17 = b2.e; + float f18 = b2.i; + float f19 = b2.f; + float f20 = b2.h; + float f21 = (f17 * f18) - (f19 * f20); + float f22 = b2.g; + float f23 = b2.d; + float f24 = (f19 * f22) - (f23 * f18); + float f25 = (f23 * f20) - (f17 * f22); + float f26 = b2.c; + float f27 = b2.f1823b; + float f28 = (f26 * f20) - (f27 * f18); + float f29 = b2.a; + float f30 = (f18 * f29) - (f26 * f22); + float f31 = (f22 * f27) - (f20 * f29); + float f32 = (f27 * f19) - (f26 * f17); + float f33 = (f26 * f23) - (f19 * f29); + float f34 = (f29 * f17) - (f27 * f23); + i b3 = b(f9, f10, f11, f12, f13, f14, f15, f16); + float f35 = b3.a; + float f36 = b3.d; + float f37 = b3.g; + float f38 = (f36 * f28) + (f35 * f21) + (f37 * f32); + float f39 = (f37 * f33) + (f36 * f30) + (f35 * f24); + float f40 = f37 * f34; + float f41 = f40 + (f36 * f31) + (f35 * f25); + float f42 = b3.f1823b; + float f43 = b3.e; + float f44 = b3.h; + float f45 = (f44 * f32) + (f43 * f28) + (f42 * f21); + float f46 = (f43 * f30) + (f42 * f24); + float f47 = (f43 * f31) + (f42 * f25) + (f44 * f34); + float f48 = b3.c; + float f49 = b3.f; + float f50 = f28 * f49; + float f51 = b3.i; + return new i(f38, f39, f41, f45, (f44 * f33) + f46, f47, (f32 * f51) + f50 + (f21 * f48), (f30 * f49) + (f24 * f48) + (f33 * f51), (f51 * f34) + (f49 * f31) + (f48 * f25)); + } + + public static i b(float f, float f2, float f3, float f4, float f5, float f6, float f7, float f8) { + float f9 = ((f - f3) + f5) - f7; + float f10 = ((f2 - f4) + f6) - f8; + if (f9 == 0.0f && f10 == 0.0f) { + return new i(f3 - f, f5 - f3, f, f4 - f2, f6 - f4, f2, 0.0f, 0.0f, 1.0f); + } + float f11 = f3 - f5; + float f12 = f7 - f5; + float f13 = f4 - f6; + float f14 = f8 - f6; + float f15 = (f11 * f14) - (f12 * f13); + float f16 = ((f14 * f9) - (f12 * f10)) / f15; + float f17 = ((f11 * f10) - (f9 * f13)) / f15; + return new i((f16 * f3) + (f3 - f), (f17 * f7) + (f7 - f), f, (f16 * f4) + (f4 - f2), (f17 * f8) + (f8 - f2), f2, f16, f17, 1.0f); + } +} diff --git a/app/src/main/java/b/i/e/n/j.java b/app/src/main/java/b/i/e/n/j.java new file mode 100644 index 0000000000..ad4a728beb --- /dev/null +++ b/app/src/main/java/b/i/e/n/j.java @@ -0,0 +1,16 @@ +package b.i.e.n; + +import java.nio.charset.Charset; +/* compiled from: StringUtils */ +public final class j { + public static final String a; + + /* renamed from: b reason: collision with root package name */ + public static final boolean f1824b; + + static { + String name = Charset.defaultCharset().name(); + a = name; + f1824b = "SJIS".equalsIgnoreCase(name) || "EUC_JP".equalsIgnoreCase(name); + } +} diff --git a/app/src/main/java/b/i/e/n/k/a.java b/app/src/main/java/b/i/e/n/k/a.java new file mode 100644 index 0000000000..89d303524c --- /dev/null +++ b/app/src/main/java/b/i/e/n/k/a.java @@ -0,0 +1,211 @@ +package b.i.e.n.k; + +import b.i.a.f.e.o.f; +import b.i.e.k; +import b.i.e.n.b; +import com.google.zxing.NotFoundException; +/* compiled from: WhiteRectangleDetector */ +public final class a { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final int f1825b; + public final int c; + public final int d; + public final int e; + public final int f; + public final int g; + + public a(b bVar, int i, int i2, int i3) throws NotFoundException { + this.a = bVar; + int i4 = bVar.k; + this.f1825b = i4; + int i5 = bVar.j; + this.c = i5; + int i6 = i / 2; + int i7 = i2 - i6; + this.d = i7; + int i8 = i2 + i6; + this.e = i8; + int i9 = i3 - i6; + this.g = i9; + int i10 = i3 + i6; + this.f = i10; + if (i9 < 0 || i7 < 0 || i10 >= i4 || i8 >= i5) { + throw NotFoundException.l; + } + } + + public final boolean a(int i, int i2, int i3, boolean z2) { + if (z2) { + while (i <= i2) { + if (this.a.f(i, i3)) { + return true; + } + i++; + } + return false; + } + while (i <= i2) { + if (this.a.f(i3, i)) { + return true; + } + i++; + } + return false; + } + + public k[] b() throws NotFoundException { + boolean z2; + int i = this.d; + int i2 = this.e; + int i3 = this.g; + int i4 = this.f; + boolean z3 = true; + boolean z4 = false; + boolean z5 = false; + boolean z6 = false; + boolean z7 = false; + boolean z8 = false; + while (true) { + if (!z3) { + z2 = false; + break; + } + boolean z9 = true; + boolean z10 = false; + while (true) { + if ((z9 || !z4) && i2 < this.c) { + z9 = a(i3, i4, i2, false); + if (z9) { + i2++; + z4 = true; + z10 = true; + } else if (!z4) { + i2++; + } + } + } + if (i2 >= this.c) { + break; + } + boolean z11 = true; + while (true) { + if ((z11 || !z5) && i4 < this.f1825b) { + z11 = a(i, i2, i4, true); + if (z11) { + i4++; + z5 = true; + z10 = true; + } else if (!z5) { + i4++; + } + } + } + if (i4 >= this.f1825b) { + break; + } + boolean z12 = true; + while (true) { + if ((z12 || !z6) && i >= 0) { + z12 = a(i3, i4, i, false); + if (z12) { + i--; + z6 = true; + z10 = true; + } else if (!z6) { + i--; + } + } + } + if (i < 0) { + break; + } + z3 = z10; + boolean z13 = true; + while (true) { + if ((z13 || !z8) && i3 >= 0) { + z13 = a(i, i2, i3, true); + if (z13) { + i3--; + z3 = true; + z8 = true; + } else if (!z8) { + i3--; + } + } + } + if (i3 < 0) { + break; + } else if (z3) { + z7 = true; + } + } + z2 = true; + if (z2 || !z7) { + throw NotFoundException.l; + } + int i5 = i2 - i; + k kVar = null; + k kVar2 = null; + int i6 = 1; + while (kVar2 == null && i6 < i5) { + kVar2 = c((float) i, (float) (i4 - i6), (float) (i + i6), (float) i4); + i6++; + } + if (kVar2 != null) { + k kVar3 = null; + int i7 = 1; + while (kVar3 == null && i7 < i5) { + kVar3 = c((float) i, (float) (i3 + i7), (float) (i + i7), (float) i3); + i7++; + } + if (kVar3 != null) { + k kVar4 = null; + int i8 = 1; + while (kVar4 == null && i8 < i5) { + kVar4 = c((float) i2, (float) (i3 + i8), (float) (i2 - i8), (float) i3); + i8++; + } + if (kVar4 != null) { + int i9 = 1; + while (kVar == null && i9 < i5) { + kVar = c((float) i2, (float) (i4 - i9), (float) (i2 - i9), (float) i4); + i9++; + } + if (kVar != null) { + float f = kVar.a; + float f2 = kVar.f1811b; + float f3 = kVar2.a; + float f4 = kVar2.f1811b; + float f5 = kVar4.a; + float f6 = kVar4.f1811b; + float f7 = kVar3.a; + float f8 = kVar3.f1811b; + return f < ((float) this.c) / 2.0f ? new k[]{new k(f7 - 1.0f, f8 + 1.0f), new k(f3 + 1.0f, f4 + 1.0f), new k(f5 - 1.0f, f6 - 1.0f), new k(f + 1.0f, f2 - 1.0f)} : new k[]{new k(f7 + 1.0f, f8 + 1.0f), new k(f3 + 1.0f, f4 - 1.0f), new k(f5 - 1.0f, f6 + 1.0f), new k(f - 1.0f, f2 - 1.0f)}; + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + + public final k c(float f, float f2, float f3, float f4) { + int V0 = f.V0(f.P(f, f2, f3, f4)); + float f5 = (float) V0; + float f6 = (f3 - f) / f5; + float f7 = (f4 - f2) / f5; + for (int i = 0; i < V0; i++) { + float f8 = (float) i; + int V02 = f.V0((f8 * f6) + f); + int V03 = f.V0((f8 * f7) + f2); + if (this.a.f(V02, V03)) { + return new k((float) V02, (float) V03); + } + } + return null; + } +} diff --git a/app/src/main/java/b/i/e/n/l/a.java b/app/src/main/java/b/i/e/n/l/a.java new file mode 100644 index 0000000000..6f9fe82e3b --- /dev/null +++ b/app/src/main/java/b/i/e/n/l/a.java @@ -0,0 +1,86 @@ +package b.i.e.n.l; +/* compiled from: GenericGF */ +public final class a { + public static final a a = new a(4201, 4096, 1); + + /* renamed from: b reason: collision with root package name */ + public static final a f1826b = new a(1033, 1024, 1); + public static final a c; + public static final a d = new a(19, 16, 1); + public static final a e = new a(285, 256, 0); + public static final a f; + public static final a g; + public static final a h; + public final int[] i; + public final int[] j; + public final b k; + public final b l; + public final int m; + public final int n; + public final int o; + + static { + a aVar = new a(67, 64, 1); + c = aVar; + a aVar2 = new a(301, 256, 1); + f = aVar2; + g = aVar2; + h = aVar; + } + + public a(int i, int i2, int i3) { + this.n = i; + this.m = i2; + this.o = i3; + this.i = new int[i2]; + this.j = new int[i2]; + int i4 = 1; + for (int i5 = 0; i5 < i2; i5++) { + this.i[i5] = i4; + i4 <<= 1; + if (i4 >= i2) { + i4 = (i4 ^ i) & (i2 - 1); + } + } + for (int i6 = 0; i6 < i2 - 1; i6++) { + this.j[this.i[i6]] = i6; + } + this.k = new b(this, new int[]{0}); + this.l = new b(this, new int[]{1}); + } + + public b a(int i, int i2) { + if (i < 0) { + throw new IllegalArgumentException(); + } else if (i2 == 0) { + return this.k; + } else { + int[] iArr = new int[(i + 1)]; + iArr[0] = i2; + return new b(this, iArr); + } + } + + public int b(int i) { + if (i != 0) { + return this.i[(this.m - this.j[i]) - 1]; + } + throw new ArithmeticException(); + } + + public int c(int i, int i2) { + if (i == 0 || i2 == 0) { + return 0; + } + int[] iArr = this.i; + int[] iArr2 = this.j; + return iArr[(iArr2[i] + iArr2[i2]) % (this.m - 1)]; + } + + public String toString() { + StringBuilder sb = new StringBuilder("GF(0x"); + sb.append(Integer.toHexString(this.n)); + sb.append(','); + return b.d.b.a.a.z(sb, this.m, ')'); + } +} diff --git a/app/src/main/java/b/i/e/n/l/b.java b/app/src/main/java/b/i/e/n/l/b.java new file mode 100644 index 0000000000..14d5089a6e --- /dev/null +++ b/app/src/main/java/b/i/e/n/l/b.java @@ -0,0 +1,150 @@ +package b.i.e.n.l; + +import java.util.Objects; +/* compiled from: GenericGFPoly */ +public final class b { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f1827b; + + public b(a aVar, int[] iArr) { + if (iArr.length != 0) { + this.a = aVar; + int length = iArr.length; + if (length <= 1 || iArr[0] != 0) { + this.f1827b = iArr; + return; + } + int i = 1; + while (i < length && iArr[i] == 0) { + i++; + } + if (i == length) { + this.f1827b = new int[]{0}; + return; + } + int[] iArr2 = new int[(length - i)]; + this.f1827b = iArr2; + System.arraycopy(iArr, i, iArr2, 0, iArr2.length); + return; + } + throw new IllegalArgumentException(); + } + + public b a(b bVar) { + if (!this.a.equals(bVar.a)) { + throw new IllegalArgumentException("GenericGFPolys do not have same GenericGF field"); + } else if (e()) { + return bVar; + } else { + if (bVar.e()) { + return this; + } + int[] iArr = this.f1827b; + int[] iArr2 = bVar.f1827b; + if (iArr.length <= iArr2.length) { + iArr = iArr2; + iArr2 = iArr; + } + int[] iArr3 = new int[iArr.length]; + int length = iArr.length - iArr2.length; + System.arraycopy(iArr, 0, iArr3, 0, length); + for (int i = length; i < iArr.length; i++) { + iArr3[i] = iArr2[i - length] ^ iArr[i]; + } + return new b(this.a, iArr3); + } + } + + public int b(int i) { + if (i == 0) { + return c(0); + } + if (i == 1) { + int[] iArr = this.f1827b; + int i2 = 0; + for (int i3 : iArr) { + a aVar = a.a; + i2 ^= i3; + } + return i2; + } + int[] iArr2 = this.f1827b; + int i4 = iArr2[0]; + int length = iArr2.length; + for (int i5 = 1; i5 < length; i5++) { + i4 = this.a.c(i, i4) ^ this.f1827b[i5]; + } + return i4; + } + + public int c(int i) { + int[] iArr = this.f1827b; + return iArr[(iArr.length - 1) - i]; + } + + public int d() { + return this.f1827b.length - 1; + } + + public boolean e() { + return this.f1827b[0] == 0; + } + + public b f(int i) { + if (i == 0) { + return this.a.k; + } + if (i == 1) { + return this; + } + int length = this.f1827b.length; + int[] iArr = new int[length]; + for (int i2 = 0; i2 < length; i2++) { + iArr[i2] = this.a.c(this.f1827b[i2], i); + } + return new b(this.a, iArr); + } + + public String toString() { + StringBuilder sb = new StringBuilder(d() * 8); + for (int d = d(); d >= 0; d--) { + int c = c(d); + if (c != 0) { + if (c < 0) { + sb.append(" - "); + c = -c; + } else if (sb.length() > 0) { + sb.append(" + "); + } + if (d == 0 || c != 1) { + a aVar = this.a; + Objects.requireNonNull(aVar); + if (c != 0) { + int i = aVar.j[c]; + if (i == 0) { + sb.append('1'); + } else if (i == 1) { + sb.append('a'); + } else { + sb.append("a^"); + sb.append(i); + } + } else { + throw new IllegalArgumentException(); + } + } + if (d != 0) { + if (d == 1) { + sb.append('x'); + } else { + sb.append("x^"); + sb.append(d); + } + } + } + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/e/n/l/c.java b/app/src/main/java/b/i/e/n/l/c.java new file mode 100644 index 0000000000..ff462dd733 --- /dev/null +++ b/app/src/main/java/b/i/e/n/l/c.java @@ -0,0 +1,166 @@ +package b.i.e.n.l; + +import com.google.zxing.common.reedsolomon.ReedSolomonException; +import java.util.Objects; +/* compiled from: ReedSolomonDecoder */ +public final class c { + public final a a; + + public c(a aVar) { + this.a = aVar; + } + + public void a(int[] iArr, int i) throws ReedSolomonException { + int[] iArr2; + b bVar; + b bVar2; + int i2 = i; + b bVar3 = new b(this.a, iArr); + int[] iArr3 = new int[i2]; + boolean z2 = true; + for (int i3 = 0; i3 < i2; i3++) { + a aVar = this.a; + int b2 = bVar3.b(aVar.i[aVar.o + i3]); + iArr3[(i2 - 1) - i3] = b2; + if (b2 != 0) { + z2 = false; + } + } + if (!z2) { + b bVar4 = new b(this.a, iArr3); + b a = this.a.a(i2, 1); + if (a.d() >= bVar4.d()) { + a = bVar4; + bVar4 = a; + } + a aVar2 = this.a; + b bVar5 = aVar2.k; + b bVar6 = bVar4; + b bVar7 = a; + b bVar8 = aVar2.l; + b bVar9 = bVar5; + while (bVar7.d() >= i2 / 2) { + if (!bVar7.e()) { + b bVar10 = this.a.k; + int b3 = this.a.b(bVar7.c(bVar7.d())); + while (bVar6.d() >= bVar7.d() && !bVar6.e()) { + int d = bVar6.d() - bVar7.d(); + int c = this.a.c(bVar6.c(bVar6.d()), b3); + bVar10 = bVar10.a(this.a.a(d, c)); + if (d >= 0) { + if (c == 0) { + bVar2 = bVar7.a.k; + } else { + int length = bVar7.f1827b.length; + int[] iArr4 = new int[(d + length)]; + for (int i4 = 0; i4 < length; i4++) { + iArr4[i4] = bVar7.a.c(bVar7.f1827b[i4], c); + } + bVar2 = new b(bVar7.a, iArr4); + } + bVar6 = bVar6.a(bVar2); + } else { + throw new IllegalArgumentException(); + } + } + if (bVar10.a.equals(bVar8.a)) { + if (bVar10.e() || bVar8.e()) { + bVar = bVar10.a.k; + } else { + int[] iArr5 = bVar10.f1827b; + int length2 = iArr5.length; + int[] iArr6 = bVar8.f1827b; + int length3 = iArr6.length; + int[] iArr7 = new int[((length2 + length3) - 1)]; + for (int i5 = 0; i5 < length2; i5++) { + int i6 = iArr5[i5]; + int i7 = 0; + while (i7 < length3) { + int i8 = i5 + i7; + iArr7[i8] = iArr7[i8] ^ bVar10.a.c(i6, iArr6[i7]); + i7++; + iArr5 = iArr5; + } + } + bVar = new b(bVar10.a, iArr7); + } + b a2 = bVar.a(bVar9); + if (bVar6.d() < bVar7.d()) { + bVar9 = bVar8; + bVar8 = a2; + i2 = i; + bVar6 = bVar7; + bVar7 = bVar6; + } else { + throw new IllegalStateException("Division algorithm failed to reduce polynomial?"); + } + } else { + throw new IllegalArgumentException("GenericGFPolys do not have same GenericGF field"); + } + } else { + throw new ReedSolomonException("r_{i-1} was zero"); + } + } + int c2 = bVar8.c(0); + if (c2 != 0) { + int b4 = this.a.b(c2); + b[] bVarArr = {bVar8.f(b4), bVar7.f(b4)}; + b bVar11 = bVarArr[0]; + b bVar12 = bVarArr[1]; + int d2 = bVar11.d(); + if (d2 == 1) { + iArr2 = new int[]{bVar11.c(1)}; + } else { + int[] iArr8 = new int[d2]; + int i9 = 0; + for (int i10 = 1; i10 < this.a.m && i9 < d2; i10++) { + if (bVar11.b(i10) == 0) { + iArr8[i9] = this.a.b(i10); + i9++; + } + } + if (i9 == d2) { + iArr2 = iArr8; + } else { + throw new ReedSolomonException("Error locator degree does not match number of roots"); + } + } + int length4 = iArr2.length; + int[] iArr9 = new int[length4]; + for (int i11 = 0; i11 < length4; i11++) { + int b5 = this.a.b(iArr2[i11]); + int i12 = 1; + for (int i13 = 0; i13 < length4; i13++) { + if (i11 != i13) { + int c3 = this.a.c(iArr2[i13], b5); + i12 = this.a.c(i12, (c3 & 1) == 0 ? c3 | 1 : c3 & -2); + } + } + iArr9[i11] = this.a.c(bVar12.b(b5), this.a.b(i12)); + a aVar3 = this.a; + if (aVar3.o != 0) { + iArr9[i11] = aVar3.c(iArr9[i11], b5); + } + } + for (int i14 = 0; i14 < iArr2.length; i14++) { + int length5 = iArr.length - 1; + a aVar4 = this.a; + int i15 = iArr2[i14]; + Objects.requireNonNull(aVar4); + if (i15 != 0) { + int i16 = length5 - aVar4.j[i15]; + if (i16 >= 0) { + iArr[i16] = iArr[i16] ^ iArr9[i14]; + } else { + throw new ReedSolomonException("Bad error location"); + } + } else { + throw new IllegalArgumentException(); + } + } + return; + } + throw new ReedSolomonException("sigmaTilde(0) was zero"); + } + } +} diff --git a/app/src/main/java/b/i/e/o/a.java b/app/src/main/java/b/i/e/o/a.java new file mode 100644 index 0000000000..921c166909 --- /dev/null +++ b/app/src/main/java/b/i/e/o/a.java @@ -0,0 +1,210 @@ +package b.i.e.o; + +import b.i.e.c; +import b.i.e.i; +import b.i.e.j; +import b.i.e.k; +import b.i.e.n.b; +import b.i.e.n.e; +import b.i.e.o.b.d; +import b.i.e.o.c.a; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +/* compiled from: DataMatrixReader */ +public final class a implements i { + public static final k[] a = new k[0]; + + /* renamed from: b reason: collision with root package name */ + public final d f1828b = new d(); + + @Override // b.i.e.i + public Result a(c cVar, Map map) throws NotFoundException, ChecksumException, FormatException { + k[] kVarArr; + e eVar; + b bVar; + if (map == null || !map.containsKey(b.i.e.d.PURE_BARCODE)) { + b.i.e.o.c.a aVar = new b.i.e.o.c.a(cVar.a()); + k[] b2 = aVar.f1835b.b(); + k kVar = b2[0]; + k kVar2 = b2[1]; + k kVar3 = b2[2]; + k kVar4 = b2[3]; + ArrayList arrayList = new ArrayList(4); + arrayList.add(aVar.e(kVar, kVar2)); + arrayList.add(aVar.e(kVar, kVar3)); + arrayList.add(aVar.e(kVar2, kVar4)); + arrayList.add(aVar.e(kVar3, kVar4)); + Collections.sort(arrayList, new a.c(null)); + a.b bVar2 = (a.b) arrayList.get(0); + a.b bVar3 = (a.b) arrayList.get(1); + HashMap hashMap = new HashMap(); + b.i.e.o.c.a.b(hashMap, bVar2.a); + b.i.e.o.c.a.b(hashMap, bVar2.f1836b); + b.i.e.o.c.a.b(hashMap, bVar3.a); + b.i.e.o.c.a.b(hashMap, bVar3.f1836b); + k kVar5 = null; + k kVar6 = null; + k kVar7 = null; + for (Map.Entry entry : hashMap.entrySet()) { + k kVar8 = (k) entry.getKey(); + if (((Integer) entry.getValue()).intValue() == 2) { + kVar6 = kVar8; + } else if (kVar5 == null) { + kVar5 = kVar8; + } else { + kVar7 = kVar8; + } + } + if (kVar5 == null || kVar6 == null || kVar7 == null) { + throw NotFoundException.l; + } + k[] kVarArr2 = {kVar5, kVar6, kVar7}; + k.b(kVarArr2); + k kVar9 = kVarArr2[0]; + k kVar10 = kVarArr2[1]; + k kVar11 = kVarArr2[2]; + if (hashMap.containsKey(kVar)) { + kVar = !hashMap.containsKey(kVar2) ? kVar2 : !hashMap.containsKey(kVar3) ? kVar3 : kVar4; + } + int i = aVar.e(kVar11, kVar).c; + int i2 = aVar.e(kVar9, kVar).c; + if ((i & 1) == 1) { + i++; + } + int i3 = i + 2; + if ((i2 & 1) == 1) { + i2++; + } + int i4 = i2 + 2; + if (i3 * 4 >= i4 * 7 || i4 * 4 >= i3 * 7) { + float a2 = ((float) b.i.e.o.c.a.a(kVar10, kVar9)) / ((float) i3); + int a3 = b.i.e.o.c.a.a(kVar11, kVar); + float f = kVar.a; + float f2 = (float) a3; + float f3 = kVar.f1811b; + k kVar12 = new k((((f - kVar11.a) / f2) * a2) + f, (a2 * ((f3 - kVar11.f1811b) / f2)) + f3); + float a4 = ((float) b.i.e.o.c.a.a(kVar10, kVar11)) / ((float) i4); + int a5 = b.i.e.o.c.a.a(kVar9, kVar); + float f4 = kVar.a; + float f5 = (float) a5; + float f6 = kVar.f1811b; + k kVar13 = new k((((f4 - kVar9.a) / f5) * a4) + f4, (a4 * ((f6 - kVar9.f1811b) / f5)) + f6); + if (!aVar.c(kVar12)) { + if (!aVar.c(kVar13)) { + kVar13 = null; + } + } else if (!aVar.c(kVar13) || Math.abs(i4 - aVar.e(kVar9, kVar12).c) + Math.abs(i3 - aVar.e(kVar11, kVar12).c) <= Math.abs(i4 - aVar.e(kVar9, kVar13).c) + Math.abs(i3 - aVar.e(kVar11, kVar13).c)) { + kVar13 = kVar12; + } + if (kVar13 != null) { + kVar = kVar13; + } + int i5 = aVar.e(kVar11, kVar).c; + int i6 = aVar.e(kVar9, kVar).c; + if ((i5 & 1) == 1) { + i5++; + } + if ((i6 & 1) == 1) { + i6++; + } + bVar = b.i.e.o.c.a.d(aVar.a, kVar11, kVar10, kVar9, kVar, i5, i6); + } else { + float min = (float) Math.min(i4, i3); + float a6 = ((float) b.i.e.o.c.a.a(kVar10, kVar9)) / min; + int a7 = b.i.e.o.c.a.a(kVar11, kVar); + float f7 = kVar.a; + float f8 = (float) a7; + float f9 = kVar.f1811b; + k kVar14 = new k((((f7 - kVar11.a) / f8) * a6) + f7, (a6 * ((f9 - kVar11.f1811b) / f8)) + f9); + float a8 = ((float) b.i.e.o.c.a.a(kVar10, kVar11)) / min; + int a9 = b.i.e.o.c.a.a(kVar9, kVar); + float f10 = kVar.a; + float f11 = (float) a9; + float f12 = kVar.f1811b; + k kVar15 = new k((((f10 - kVar9.a) / f11) * a8) + f10, (a8 * ((f12 - kVar9.f1811b) / f11)) + f12); + if (!aVar.c(kVar14)) { + if (!aVar.c(kVar15)) { + kVar15 = null; + } + } else if (!aVar.c(kVar15) || Math.abs(aVar.e(kVar11, kVar14).c - aVar.e(kVar9, kVar14).c) <= Math.abs(aVar.e(kVar11, kVar15).c - aVar.e(kVar9, kVar15).c)) { + kVar15 = kVar14; + } + if (kVar15 != null) { + kVar = kVar15; + } + int max = Math.max(aVar.e(kVar11, kVar).c, aVar.e(kVar9, kVar).c) + 1; + if ((max & 1) == 1) { + max++; + } + bVar = b.i.e.o.c.a.d(aVar.a, kVar11, kVar10, kVar9, kVar, max, max); + } + kVarArr = new k[]{kVar11, kVar10, kVar9, kVar}; + eVar = this.f1828b.a(bVar); + } else { + b a10 = cVar.a(); + int[] i7 = a10.i(); + int[] g = a10.g(); + if (i7 == null || g == null) { + throw NotFoundException.l; + } + int i8 = a10.j; + int i9 = i7[0]; + int i10 = i7[1]; + while (i9 < i8 && a10.f(i9, i10)) { + i9++; + } + if (i9 != i8) { + int i11 = i9 - i7[0]; + if (i11 != 0) { + int i12 = i7[1]; + int i13 = g[1]; + int i14 = i7[0]; + int i15 = ((g[0] - i14) + 1) / i11; + int i16 = ((i13 - i12) + 1) / i11; + if (i15 <= 0 || i16 <= 0) { + throw NotFoundException.l; + } + int i17 = i11 / 2; + int i18 = i12 + i17; + int i19 = i14 + i17; + b bVar4 = new b(i15, i16); + for (int i20 = 0; i20 < i16; i20++) { + int i21 = (i20 * i11) + i18; + for (int i22 = 0; i22 < i15; i22++) { + if (a10.f((i22 * i11) + i19, i21)) { + bVar4.j(i22, i20); + } + } + } + eVar = this.f1828b.a(bVar4); + kVarArr = a; + } else { + throw NotFoundException.l; + } + } else { + throw NotFoundException.l; + } + } + Result result = new Result(eVar.c, eVar.a, kVarArr, b.i.e.a.DATA_MATRIX); + List list = eVar.d; + if (list != null) { + result.b(j.BYTE_SEGMENTS, list); + } + String str = eVar.e; + if (str != null) { + result.b(j.ERROR_CORRECTION_LEVEL, str); + } + return result; + } + + @Override // b.i.e.i + public void reset() { + } +} diff --git a/app/src/main/java/b/i/e/o/b/a.java b/app/src/main/java/b/i/e/o/b/a.java new file mode 100644 index 0000000000..07954711e2 --- /dev/null +++ b/app/src/main/java/b/i/e/o/b/a.java @@ -0,0 +1,105 @@ +package b.i.e.o.b; + +import b.i.e.n.b; +import com.google.zxing.FormatException; +/* compiled from: BitMatrixParser */ +public final class a { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final b f1829b; + public final e c; + + public a(b bVar) throws FormatException { + int i; + int i2 = bVar.k; + if (i2 < 8 || i2 > 144 || (i2 & 1) != 0) { + throw FormatException.a(); + } + int i3 = bVar.j; + e[] eVarArr = e.a; + if ((i2 & 1) == 0 && (i3 & 1) == 0) { + e[] eVarArr2 = e.a; + for (e eVar : eVarArr2) { + int i4 = eVar.c; + if (i4 == i2 && (i = eVar.d) == i3) { + this.c = eVar; + if (bVar.k == i4) { + int i5 = eVar.e; + int i6 = eVar.f; + int i7 = i4 / i5; + int i8 = i / i6; + b bVar2 = new b(i8 * i6, i7 * i5); + for (int i9 = 0; i9 < i7; i9++) { + int i10 = i9 * i5; + for (int i11 = 0; i11 < i8; i11++) { + int i12 = i11 * i6; + for (int i13 = 0; i13 < i5; i13++) { + int i14 = ((i5 + 2) * i9) + 1 + i13; + int i15 = i10 + i13; + for (int i16 = 0; i16 < i6; i16++) { + if (bVar.f(((i6 + 2) * i11) + 1 + i16, i14)) { + bVar2.j(i12 + i16, i15); + } + } + } + } + } + this.a = bVar2; + this.f1829b = new b(bVar2.j, bVar2.k); + return; + } + throw new IllegalArgumentException("Dimension of bitMatrix must match the version size"); + } + } + throw FormatException.a(); + } + throw FormatException.a(); + } + + public final boolean a(int i, int i2, int i3, int i4) { + if (i < 0) { + i += i3; + i2 += 4 - ((i3 + 4) & 7); + } + if (i2 < 0) { + i2 += i4; + i += 4 - ((i4 + 4) & 7); + } + this.f1829b.j(i2, i); + return this.a.f(i2, i); + } + + public final int b(int i, int i2, int i3, int i4) { + int i5 = i - 2; + int i6 = i2 - 2; + int i7 = (a(i5, i6, i3, i4) ? 1 : 0) << 1; + int i8 = i2 - 1; + if (a(i5, i8, i3, i4)) { + i7 |= 1; + } + int i9 = i7 << 1; + int i10 = i - 1; + if (a(i10, i6, i3, i4)) { + i9 |= 1; + } + int i11 = i9 << 1; + if (a(i10, i8, i3, i4)) { + i11 |= 1; + } + int i12 = i11 << 1; + if (a(i10, i2, i3, i4)) { + i12 |= 1; + } + int i13 = i12 << 1; + if (a(i, i6, i3, i4)) { + i13 |= 1; + } + int i14 = i13 << 1; + if (a(i, i8, i3, i4)) { + i14 |= 1; + } + int i15 = i14 << 1; + return a(i, i2, i3, i4) ? i15 | 1 : i15; + } +} diff --git a/app/src/main/java/b/i/e/o/b/b.java b/app/src/main/java/b/i/e/o/b/b.java new file mode 100644 index 0000000000..729347e4b8 --- /dev/null +++ b/app/src/main/java/b/i/e/o/b/b.java @@ -0,0 +1,13 @@ +package b.i.e.o.b; +/* compiled from: DataBlock */ +public final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f1830b; + + public b(int i, byte[] bArr) { + this.a = i; + this.f1830b = bArr; + } +} diff --git a/app/src/main/java/b/i/e/o/b/c.java b/app/src/main/java/b/i/e/o/b/c.java new file mode 100644 index 0000000000..9e91cedb3c --- /dev/null +++ b/app/src/main/java/b/i/e/o/b/c.java @@ -0,0 +1,34 @@ +package b.i.e.o.b; + +import com.discord.widgets.chat.input.MentionUtilsKt; +/* compiled from: DecodedBitStreamParser */ +public final class c { + public static final char[] a = {'*', '*', '*', ' ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'}; + + /* renamed from: b reason: collision with root package name */ + public static final char[] f1831b; + public static final char[] c = {'*', '*', '*', ' ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}; + public static final char[] d; + public static final char[] e = {'`', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '{', '|', '}', '~', 127}; + + static { + char[] cArr = {'!', '\"', MentionUtilsKt.CHANNELS_CHAR, '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', MentionUtilsKt.SLASH_CHAR, MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR, ';', '<', '=', '>', '?', MentionUtilsKt.MENTIONS_CHAR, '[', '\\', ']', '^', '_'}; + f1831b = cArr; + d = cArr; + } + + public static void a(int i, int i2, int[] iArr) { + int i3 = ((i << 8) + i2) - 1; + int i4 = i3 / 1600; + iArr[0] = i4; + int i5 = i3 - (i4 * 1600); + int i6 = i5 / 40; + iArr[1] = i6; + iArr[2] = i5 - (i6 * 40); + } + + public static int b(int i, int i2) { + int i3 = i - (((i2 * 149) % 255) + 1); + return i3 >= 0 ? i3 : i3 + 256; + } +} diff --git a/app/src/main/java/b/i/e/o/b/d.java b/app/src/main/java/b/i/e/o/b/d.java new file mode 100644 index 0000000000..519ead35f8 --- /dev/null +++ b/app/src/main/java/b/i/e/o/b/d.java @@ -0,0 +1,677 @@ +package b.i.e.o.b; + +import b.i.e.n.b; +import b.i.e.n.e; +import b.i.e.n.l.a; +import b.i.e.n.l.c; +import b.i.e.o.b.e; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.common.reedsolomon.ReedSolomonException; +import java.io.UnsupportedEncodingException; +import java.util.ArrayList; +/* compiled from: Decoder */ +public final class d { + public final c a = new c(a.f); + + /* JADX WARNING: Code restructure failed: missing block: B:233:0x03ae, code lost: + r5 = r7; + r8 = 1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:433:0x066a, code lost: + if (r3.length() <= 0) goto L_0x066f; + */ + /* JADX WARNING: Code restructure failed: missing block: B:434:0x066c, code lost: + r2.append((java.lang.CharSequence) r3); + */ + /* JADX WARNING: Code restructure failed: missing block: B:435:0x066f, code lost: + r2 = r2.toString(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:436:0x067a, code lost: + if (r4.isEmpty() == false) goto L_0x067d; + */ + /* JADX WARNING: Code restructure failed: missing block: B:437:0x067c, code lost: + r4 = null; + */ + /* JADX WARNING: Code restructure failed: missing block: B:439:0x0680, code lost: + return new b.i.e.n.e(r0, r2, r4, null); + */ + /* JADX WARNING: Removed duplicated region for block: B:487:0x04fe A[SYNTHETIC] */ + public e a(b bVar) throws FormatException, ChecksumException { + int i; + int b2; + boolean z2; + int b3; + int b4; + a aVar = new a(bVar); + e eVar = aVar.c; + int i2 = eVar.h; + byte[] bArr = new byte[i2]; + b bVar2 = aVar.a; + int i3 = bVar2.k; + int i4 = bVar2.j; + int i5 = 0; + int i6 = 4; + int i7 = 0; + boolean z3 = false; + int i8 = 0; + boolean z4 = false; + boolean z5 = false; + boolean z6 = false; + while (true) { + if (i6 == i3 && i7 == 0 && !z3) { + int i9 = i8 + 1; + int i10 = i3 - 1; + int i11 = (aVar.a(i10, i5, i3, i4) ? 1 : 0) << 1; + if (aVar.a(i10, 1, i3, i4)) { + i11 |= 1; + } + int i12 = i11 << 1; + if (aVar.a(i10, 2, i3, i4)) { + i12 |= 1; + } + int i13 = i12 << 1; + if (aVar.a(0, i4 - 2, i3, i4)) { + i13 |= 1; + } + int i14 = i13 << 1; + int i15 = i4 - 1; + if (aVar.a(0, i15, i3, i4)) { + i14 |= 1; + } + int i16 = i14 << 1; + if (aVar.a(1, i15, i3, i4)) { + i16 |= 1; + } + int i17 = i16 << 1; + if (aVar.a(2, i15, i3, i4)) { + i17 |= 1; + } + int i18 = i17 << 1; + if (aVar.a(3, i15, i3, i4)) { + i18 |= 1; + } + bArr[i8] = (byte) i18; + i6 -= 2; + i7 += 2; + i8 = i9; + z3 = true; + } else { + int i19 = i3 - 2; + if (i6 == i19 && i7 == 0 && (i4 & 3) != 0 && !z4) { + int i20 = i8 + 1; + int i21 = (aVar.a(i3 + -3, 0, i3, i4) ? 1 : 0) << 1; + if (aVar.a(i19, 0, i3, i4)) { + i21 |= 1; + } + int i22 = i21 << 1; + if (aVar.a(i3 - 1, 0, i3, i4)) { + i22 |= 1; + } + int i23 = i22 << 1; + if (aVar.a(0, i4 - 4, i3, i4)) { + i23 |= 1; + } + int i24 = i23 << 1; + if (aVar.a(0, i4 - 3, i3, i4)) { + i24 |= 1; + } + int i25 = i24 << 1; + if (aVar.a(0, i4 - 2, i3, i4)) { + i25 |= 1; + } + int i26 = i25 << 1; + int i27 = i4 - 1; + if (aVar.a(0, i27, i3, i4)) { + i26 |= 1; + } + int i28 = i26 << 1; + if (aVar.a(1, i27, i3, i4)) { + i28 |= 1; + } + bArr[i8] = (byte) i28; + i6 -= 2; + i7 += 2; + i8 = i20; + z4 = true; + } else if (i6 == i3 + 4 && i7 == 2 && (i4 & 7) == 0 && !z5) { + int i29 = i8 + 1; + int i30 = i3 - 1; + int i31 = (aVar.a(i30, 0, i3, i4) ? 1 : 0) << 1; + int i32 = i4 - 1; + if (aVar.a(i30, i32, i3, i4)) { + i31 |= 1; + } + int i33 = i31 << 1; + int i34 = i4 - 3; + if (aVar.a(0, i34, i3, i4)) { + i33 |= 1; + } + int i35 = i33 << 1; + int i36 = i4 - 2; + if (aVar.a(0, i36, i3, i4)) { + i35 |= 1; + } + int i37 = i35 << 1; + if (aVar.a(0, i32, i3, i4)) { + i37 |= 1; + } + int i38 = i37 << 1; + if (aVar.a(1, i34, i3, i4)) { + i38 |= 1; + } + int i39 = i38 << 1; + if (aVar.a(1, i36, i3, i4)) { + i39 |= 1; + } + int i40 = i39 << 1; + if (aVar.a(1, i32, i3, i4)) { + i40 |= 1; + } + bArr[i8] = (byte) i40; + i6 -= 2; + i7 += 2; + i8 = i29; + z3 = z3; + z4 = z4; + z5 = true; + } else if (i6 == i19 && i7 == 0 && (i4 & 7) == 4 && !z6) { + int i41 = i8 + 1; + int i42 = (aVar.a(i3 + -3, 0, i3, i4) ? 1 : 0) << 1; + if (aVar.a(i19, 0, i3, i4)) { + i42 |= 1; + } + int i43 = i42 << 1; + if (aVar.a(i3 - 1, 0, i3, i4)) { + i43 |= 1; + } + int i44 = i43 << 1; + if (aVar.a(0, i4 - 2, i3, i4)) { + i44 |= 1; + } + int i45 = i44 << 1; + int i46 = i4 - 1; + if (aVar.a(0, i46, i3, i4)) { + i45 |= 1; + } + int i47 = i45 << 1; + if (aVar.a(1, i46, i3, i4)) { + i47 |= 1; + } + int i48 = i47 << 1; + if (aVar.a(2, i46, i3, i4)) { + i48 |= 1; + } + int i49 = i48 << 1; + if (aVar.a(3, i46, i3, i4)) { + i49 |= 1; + } + bArr[i8] = (byte) i49; + i6 -= 2; + i7 += 2; + i8 = i41; + z3 = z3; + z4 = z4; + z6 = true; + } else { + do { + if (i6 < i3 && i7 >= 0 && !aVar.f1829b.f(i7, i6)) { + bArr[i8] = (byte) aVar.b(i6, i7, i3, i4); + i8++; + } + i6 -= 2; + i7 += 2; + if (i6 < 0) { + break; + } + } while (i7 < i4); + int i50 = i6 + 1; + int i51 = i7 + 3; + do { + if (i50 >= 0 && i51 < i4 && !aVar.f1829b.f(i51, i50)) { + bArr[i8] = (byte) aVar.b(i50, i51, i3, i4); + i8++; + } + i50 += 2; + i51 -= 2; + if (i50 >= i3) { + break; + } + } while (i51 >= 0); + i6 = i50 + 3; + i7 = i51 + 1; + z3 = z3; + z4 = z4; + } + } + if (i6 >= i3 && i7 >= i4) { + break; + } + i5 = 0; + } + if (i8 == aVar.c.h) { + e.c cVar = eVar.g; + e.b[] bVarArr = cVar.f1834b; + int i52 = 0; + for (e.b bVar3 : bVarArr) { + i52 += bVar3.a; + } + b[] bVarArr2 = new b[i52]; + int i53 = 0; + for (e.b bVar4 : bVarArr) { + int i54 = 0; + while (i54 < bVar4.a) { + int i55 = bVar4.f1833b; + bVarArr2[i53] = new b(i55, new byte[(cVar.a + i55)]); + i54++; + i53++; + } + } + int length = bVarArr2[0].f1830b.length - cVar.a; + int i56 = length - 1; + int i57 = 0; + for (int i58 = 0; i58 < i56; i58++) { + int i59 = 0; + while (i59 < i53) { + bVarArr2[i59].f1830b[i58] = bArr[i57]; + i59++; + i57++; + } + } + boolean z7 = eVar.f1832b == 24; + int i60 = 8; + int i61 = z7 ? 8 : i53; + int i62 = 0; + while (i62 < i61) { + bVarArr2[i62].f1830b[i56] = bArr[i57]; + i62++; + i57++; + } + int length2 = bVarArr2[0].f1830b.length; + while (length < length2) { + int i63 = 0; + while (i63 < i53) { + int i64 = z7 ? (i63 + 8) % i53 : i63; + bVarArr2[i64].f1830b[(!z7 || i64 <= 7) ? length : length - 1] = bArr[i57]; + i63++; + i57++; + } + length++; + } + if (i57 == i2) { + int i65 = 0; + for (int i66 = 0; i66 < i52; i66++) { + i65 += bVarArr2[i66].a; + } + byte[] bArr2 = new byte[i65]; + for (int i67 = 0; i67 < i52; i67++) { + b bVar5 = bVarArr2[i67]; + byte[] bArr3 = bVar5.f1830b; + int i68 = bVar5.a; + int length3 = bArr3.length; + int[] iArr = new int[length3]; + for (int i69 = 0; i69 < length3; i69++) { + iArr[i69] = bArr3[i69] & 255; + } + try { + this.a.a(iArr, bArr3.length - i68); + for (int i70 = 0; i70 < i68; i70++) { + bArr3[i70] = (byte) iArr[i70]; + } + for (int i71 = 0; i71 < i68; i71++) { + bArr2[(i71 * i52) + i67] = bArr3[i71]; + } + } catch (ReedSolomonException unused) { + throw ChecksumException.a(); + } + } + b.i.e.n.c cVar2 = new b.i.e.n.c(bArr2); + StringBuilder sb = new StringBuilder(100); + StringBuilder sb2 = new StringBuilder(0); + ArrayList arrayList = new ArrayList(1); + int i72 = 2; + while (true) { + int i73 = 6; + char c = 29; + int i74 = 254; + if (i72 == 2) { + boolean z8 = false; + while (true) { + int b5 = cVar2.b(i60); + if (b5 == 0) { + throw FormatException.a(); + } else if (b5 <= 128) { + if (z8) { + b5 += 128; + } + sb.append((char) (b5 - 1)); + } else if (b5 == 129) { + i73 = 1; + } else { + if (b5 > 229) { + switch (b5) { + case 230: + i73 = 3; + break; + case 231: + i73 = 7; + break; + case 232: + sb.append((char) 29); + if (cVar2.a() <= 0) { + break; + } + case 233: + case 234: + case 241: + break; + case 235: + z8 = true; + if (cVar2.a() <= 0) { + } + break; + case 236: + sb.append("[)>\u001e05\u001d"); + sb2.insert(0, "\u001e\u0004"); + if (cVar2.a() <= 0) { + } + break; + case 237: + sb.append("[)>\u001e06\u001d"); + sb2.insert(0, "\u001e\u0004"); + if (cVar2.a() <= 0) { + } + break; + case 238: + i73 = 5; + break; + case 239: + i73 = 4; + break; + case 240: + break; + default: + if (!(b5 == 254 && cVar2.a() == 0)) { + } + if (cVar2.a() <= 0) { + } + break; + } + } else { + int i75 = b5 - 130; + if (i75 < 10) { + sb.append('0'); + } + sb.append(i75); + } + if (cVar2.a() <= 0) { + } + } + } + } else { + int h = b.c.a.y.b.h(i72); + if (h == 2) { + int[] iArr2 = new int[3]; + boolean z9 = false; + int i76 = 0; + while (true) { + if (!(cVar2.a() == 8 || (b2 = cVar2.b(8)) == 254)) { + c.a(b2, cVar2.b(8), iArr2); + int i77 = 0; + int i78 = 3; + while (i77 < i78) { + int i79 = iArr2[i77]; + if (i76 != 0) { + if (i76 != 1) { + if (i76 == 2) { + char[] cArr = c.f1831b; + if (i79 < cArr.length) { + char c2 = cArr[i79]; + if (z9) { + sb.append((char) (c2 + 128)); + } else { + sb.append(c2); + } + } else if (i79 == 27) { + sb.append(c); + i76 = 0; + i78 = 3; + } else if (i79 == 30) { + z2 = true; + z9 = z2; + i76 = 0; + i78 = 3; + } else { + throw FormatException.a(); + } + } else if (i76 != i78) { + throw FormatException.a(); + } else if (z9) { + sb.append((char) (i79 + 224)); + } else { + sb.append((char) (i79 + 96)); + } + z2 = z9; + z9 = z2; + i76 = 0; + i78 = 3; + } else if (z9) { + sb.append((char) (i79 + 128)); + } else { + sb.append((char) i79); + i76 = 0; + i78 = 3; + } + z9 = false; + i76 = 0; + i78 = 3; + } else if (i79 < i78) { + i76 = i79 + 1; + } else { + char[] cArr2 = c.a; + if (i79 < cArr2.length) { + char c3 = cArr2[i79]; + if (z9) { + sb.append((char) (c3 + 128)); + z9 = false; + } else { + sb.append(c3); + } + } else { + throw FormatException.a(); + } + } + i77++; + c = 29; + } + if (cVar2.a() > 0) { + c = 29; + } + } + } + i72 = 2; + i = 1; + if (i72 == i && cVar2.a() > 0) { + i60 = 8; + } + } else if (h == 3) { + int i80 = 3; + int[] iArr3 = new int[3]; + int i81 = 0; + boolean z10 = false; + while (cVar2.a() != i60 && (b3 = cVar2.b(i60)) != i74) { + c.a(b3, cVar2.b(i60), iArr3); + boolean z11 = z10; + int i82 = 0; + while (i82 < i80) { + int i83 = iArr3[i82]; + if (i81 != 0) { + if (i81 != 1) { + if (i81 == 2) { + char[] cArr3 = c.d; + if (i83 < cArr3.length) { + char c4 = cArr3[i83]; + if (z11) { + sb.append((char) (c4 + 128)); + } else { + sb.append(c4); + } + } else if (i83 == 27) { + sb.append((char) 29); + } else if (i83 == 30) { + z11 = true; + } else { + throw FormatException.a(); + } + i81 = 0; + } else if (i81 == i80) { + char[] cArr4 = c.e; + if (i83 < cArr4.length) { + char c5 = cArr4[i83]; + if (z11) { + sb.append((char) (c5 + 128)); + } else { + sb.append(c5); + i81 = 0; + } + } else { + throw FormatException.a(); + } + } else { + throw FormatException.a(); + } + } else if (z11) { + sb.append((char) (i83 + 128)); + } else { + sb.append((char) i83); + i81 = 0; + } + z11 = false; + i81 = 0; + } else if (i83 < i80) { + i81 = i83 + 1; + } else { + char[] cArr5 = c.c; + if (i83 < cArr5.length) { + char c6 = cArr5[i83]; + if (z11) { + sb.append((char) (c6 + 128)); + z11 = false; + } else { + sb.append(c6); + } + } else { + throw FormatException.a(); + } + } + i82++; + i80 = 3; + } + if (cVar2.a() > 0) { + z10 = z11; + i80 = 3; + i60 = 8; + i74 = 254; + } + } + } else if (h == 4) { + int i84 = 3; + int[] iArr4 = new int[3]; + while (cVar2.a() != i60 && (b4 = cVar2.b(i60)) != 254) { + c.a(b4, cVar2.b(i60), iArr4); + int i85 = 0; + while (i85 < i84) { + int i86 = iArr4[i85]; + if (i86 == 0) { + sb.append('\r'); + } else if (i86 == 1) { + sb.append('*'); + } else if (i86 == 2) { + sb.append('>'); + } else if (i86 == i84) { + sb.append(' '); + } else if (i86 < 14) { + sb.append((char) (i86 + 44)); + } else if (i86 < 40) { + sb.append((char) (i86 + 51)); + } else { + throw FormatException.a(); + } + i85++; + i84 = 3; + } + if (cVar2.a() > 0) { + i84 = 3; + } + } + } else if (h == 5) { + while (true) { + if (cVar2.a() > 16) { + int i87 = 0; + while (true) { + if (i87 < 4) { + int b6 = cVar2.b(6); + if (b6 == 31) { + int i88 = 8 - cVar2.c; + if (i88 != i60) { + cVar2.b(i88); + } + } else { + if ((b6 & 32) == 0) { + b6 |= 64; + } + sb.append((char) b6); + i87++; + } + } else if (cVar2.a() <= 0) { + } + } + } + } + } else if (h == 6) { + int i89 = cVar2.f1815b + 1; + int i90 = i89 + 1; + int b7 = c.b(cVar2.b(i60), i89); + if (b7 == 0) { + b7 = cVar2.a() / i60; + } else if (b7 >= 250) { + b7 = ((b7 - 249) * 250) + c.b(cVar2.b(i60), i90); + i90++; + } + if (b7 >= 0) { + byte[] bArr4 = new byte[b7]; + int i91 = 0; + while (i91 < b7) { + if (cVar2.a() >= i60) { + bArr4[i91] = (byte) c.b(cVar2.b(i60), i90); + i91++; + i90++; + } else { + throw FormatException.a(); + } + } + arrayList.add(bArr4); + try { + sb.append(new String(bArr4, "ISO8859_1")); + } catch (UnsupportedEncodingException e) { + throw new IllegalStateException("Platform does not support required encoding: ".concat(String.valueOf(e))); + } + } else { + throw FormatException.a(); + } + } else { + throw FormatException.a(); + } + } + i72 = 2; + i = 1; + if (i72 == i) { + } + } + throw FormatException.a(); + } + throw new IllegalArgumentException(); + } + throw FormatException.a(); + } +} diff --git a/app/src/main/java/b/i/e/o/b/e.java b/app/src/main/java/b/i/e/o/b/e.java new file mode 100644 index 0000000000..3fc4b18ec0 --- /dev/null +++ b/app/src/main/java/b/i/e/o/b/e.java @@ -0,0 +1,67 @@ +package b.i.e.o.b; + +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +/* compiled from: Version */ +public final class e { + public static final e[] a = {new e(1, 10, 10, 8, 8, new c(5, new b(1, 3, null), null)), new e(2, 12, 12, 10, 10, new c(7, new b(1, 5, null), null)), new e(3, 14, 14, 12, 12, new c(10, new b(1, 8, null), null)), new e(4, 16, 16, 14, 14, new c(12, new b(1, 12, null), null)), new e(5, 18, 18, 16, 16, new c(14, new b(1, 18, null), null)), new e(6, 20, 20, 18, 18, new c(18, new b(1, 22, null), null)), new e(7, 22, 22, 20, 20, new c(20, new b(1, 30, null), null)), new e(8, 24, 24, 22, 22, new c(24, new b(1, 36, null), null)), new e(9, 26, 26, 24, 24, new c(28, new b(1, 44, null), null)), new e(10, 32, 32, 14, 14, new c(36, new b(1, 62, null), null)), new e(11, 36, 36, 16, 16, new c(42, new b(1, 86, null), null)), new e(12, 40, 40, 18, 18, new c(48, new b(1, 114, null), null)), new e(13, 44, 44, 20, 20, new c(56, new b(1, 144, null), null)), new e(14, 48, 48, 22, 22, new c(68, new b(1, 174, null), null)), new e(15, 52, 52, 24, 24, new c(42, new b(2, 102, null), null)), new e(16, 64, 64, 14, 14, new c(56, new b(2, 140, null), null)), new e(17, 72, 72, 16, 16, new c(36, new b(4, 92, null), null)), new e(18, 80, 80, 18, 18, new c(48, new b(4, 114, null), null)), new e(19, 88, 88, 20, 20, new c(56, new b(4, 144, null), null)), new e(20, 96, 96, 22, 22, new c(68, new b(4, 174, null), null)), new e(21, 104, 104, 24, 24, new c(56, new b(6, 136, null), null)), new e(22, 120, 120, 18, 18, new c(68, new b(6, HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION, null), null)), new e(23, 132, 132, 20, 20, new c(62, new b(8, 163, null), null)), new e(24, 144, 144, 22, 22, new c(62, new b(8, 156, null), new b(2, 155, null), null)), new e(25, 8, 18, 6, 16, new c(7, new b(1, 5, null), null)), new e(26, 8, 32, 6, 14, new c(11, new b(1, 10, null), null)), new e(27, 12, 26, 10, 24, new c(14, new b(1, 16, null), null)), new e(28, 12, 36, 10, 16, new c(18, new b(1, 22, null), null)), new e(29, 16, 36, 14, 16, new c(24, new b(1, 32, null), null)), new e(30, 16, 48, 14, 22, new c(28, new b(1, 49, null), null))}; + + /* renamed from: b reason: collision with root package name */ + public final int f1832b; + public final int c; + public final int d; + public final int e; + public final int f; + public final c g; + public final int h; + + /* compiled from: Version */ + public static final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1833b; + + public b(int i, int i2, a aVar) { + this.a = i; + this.f1833b = i2; + } + } + + /* compiled from: Version */ + public static final class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final b[] f1834b; + + public c(int i, b bVar, a aVar) { + this.a = i; + this.f1834b = new b[]{bVar}; + } + + public c(int i, b bVar, b bVar2, a aVar) { + this.a = i; + this.f1834b = new b[]{bVar, bVar2}; + } + } + + public e(int i, int i2, int i3, int i4, int i5, c cVar) { + this.f1832b = i; + this.c = i2; + this.d = i3; + this.e = i4; + this.f = i5; + this.g = cVar; + int i6 = cVar.a; + b[] bVarArr = cVar.f1834b; + int i7 = 0; + for (b bVar : bVarArr) { + i7 += (bVar.f1833b + i6) * bVar.a; + } + this.h = i7; + } + + public String toString() { + return String.valueOf(this.f1832b); + } +} diff --git a/app/src/main/java/b/i/e/o/c/a.java b/app/src/main/java/b/i/e/o/c/a.java new file mode 100644 index 0000000000..0a54208727 --- /dev/null +++ b/app/src/main/java/b/i/e/o/c/a.java @@ -0,0 +1,129 @@ +package b.i.e.o.c; + +import b.i.a.f.e.o.f; +import b.i.e.k; +import b.i.e.n.i; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel; +import com.google.zxing.NotFoundException; +import java.io.Serializable; +import java.util.Comparator; +import java.util.Map; +/* compiled from: Detector */ +public final class a { + public final b.i.e.n.b a; + + /* renamed from: b reason: collision with root package name */ + public final b.i.e.n.k.a f1835b; + + /* compiled from: Detector */ + public static final class b { + public final k a; + + /* renamed from: b reason: collision with root package name */ + public final k f1836b; + public final int c; + + public b(k kVar, k kVar2, int i, C0152a aVar) { + this.a = kVar; + this.f1836b = kVar2; + this.c = i; + } + + public String toString() { + return this.a + AutocompleteViewModel.COMMAND_DISCOVER_TOKEN + this.f1836b + MentionUtilsKt.SLASH_CHAR + this.c; + } + } + + /* compiled from: Detector */ + public static final class c implements Serializable, Comparator { + public c(C0152a aVar) { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(b bVar, b bVar2) { + return bVar.c - bVar2.c; + } + } + + public a(b.i.e.n.b bVar) throws NotFoundException { + this.a = bVar; + this.f1835b = new b.i.e.n.k.a(bVar, 10, bVar.j / 2, bVar.k / 2); + } + + public static int a(k kVar, k kVar2) { + return f.V0(f.P(kVar.a, kVar.f1811b, kVar2.a, kVar2.f1811b)); + } + + public static void b(Map map, k kVar) { + Integer num = map.get(kVar); + int i = 1; + if (num != null) { + i = 1 + num.intValue(); + } + map.put(kVar, Integer.valueOf(i)); + } + + public static b.i.e.n.b d(b.i.e.n.b bVar, k kVar, k kVar2, k kVar3, k kVar4, int i, int i2) throws NotFoundException { + float f = ((float) i) - 0.5f; + float f2 = ((float) i2) - 0.5f; + return b.i.e.n.f.a.a(bVar, i, i2, i.a(0.5f, 0.5f, f, 0.5f, f, f2, 0.5f, f2, kVar.a, kVar.f1811b, kVar4.a, kVar4.f1811b, kVar3.a, kVar3.f1811b, kVar2.a, kVar2.f1811b)); + } + + public final boolean c(k kVar) { + float f = kVar.a; + if (f < 0.0f) { + return false; + } + b.i.e.n.b bVar = this.a; + if (f >= ((float) bVar.j)) { + return false; + } + float f2 = kVar.f1811b; + return f2 > 0.0f && f2 < ((float) bVar.k); + } + + public final b e(k kVar, k kVar2) { + a aVar = this; + int i = (int) kVar.a; + int i2 = (int) kVar.f1811b; + int i3 = (int) kVar2.a; + int i4 = (int) kVar2.f1811b; + int i5 = 1; + boolean z2 = Math.abs(i4 - i2) > Math.abs(i3 - i); + if (z2) { + i2 = i; + i = i2; + i4 = i3; + i3 = i4; + } + int abs = Math.abs(i3 - i); + int abs2 = Math.abs(i4 - i2); + int i6 = (-abs) / 2; + int i7 = i2 < i4 ? 1 : -1; + if (i >= i3) { + i5 = -1; + } + boolean f = aVar.a.f(z2 ? i2 : i, z2 ? i : i2); + int i8 = 0; + while (i != i3) { + boolean f2 = aVar.a.f(z2 ? i2 : i, z2 ? i : i2); + if (f2 != f) { + i8++; + f = f2; + } + i6 += abs2; + if (i6 > 0) { + if (i2 == i4) { + break; + } + i2 += i7; + i6 -= abs; + } + i += i5; + aVar = this; + } + return new b(kVar, kVar2, i8, null); + } +} diff --git a/app/src/main/java/b/i/e/p/a.java b/app/src/main/java/b/i/e/p/a.java new file mode 100644 index 0000000000..ae820f38b2 --- /dev/null +++ b/app/src/main/java/b/i/e/p/a.java @@ -0,0 +1,159 @@ +package b.i.e.p; + +import androidx.exifinterface.media.ExifInterface; +import b.i.e.d; +import b.i.e.i; +import b.i.e.j; +import b.i.e.k; +import b.i.e.n.b; +import b.i.e.p.b.c; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.text.DecimalFormat; +import java.util.Map; +import java.util.Objects; +/* compiled from: MaxiCodeReader */ +public final class a implements i { + public static final k[] a = new k[0]; + + /* renamed from: b reason: collision with root package name */ + public final c f1837b = new c(); + + @Override // b.i.e.i + public Result a(b.i.e.c cVar, Map map) throws NotFoundException, ChecksumException, FormatException { + byte[] bArr; + String str; + if (map == null || !map.containsKey(d.PURE_BARCODE)) { + throw NotFoundException.l; + } + b a2 = cVar.a(); + int i = a2.j; + int i2 = a2.k; + int i3 = -1; + int i4 = -1; + for (int i5 = 0; i5 < a2.k; i5++) { + int i6 = 0; + while (true) { + int i7 = a2.l; + if (i6 >= i7) { + break; + } + int i8 = a2.m[(i7 * i5) + i6]; + if (i8 != 0) { + if (i5 < i2) { + i2 = i5; + } + if (i5 > i4) { + i4 = i5; + } + int i9 = i6 << 5; + if (i9 < i) { + int i10 = 0; + while ((i8 << (31 - i10)) == 0) { + i10++; + } + int i11 = i10 + i9; + if (i11 < i) { + i = i11; + } + } + if (i9 + 31 > i3) { + int i12 = 31; + while ((i8 >>> i12) == 0) { + i12--; + } + int i13 = i9 + i12; + if (i13 > i3) { + i3 = i13; + } + } + } + i6++; + } + } + int[] iArr = (i3 < i || i4 < i2) ? null : new int[]{i, i2, (i3 - i) + 1, (i4 - i2) + 1}; + if (iArr != null) { + int i14 = iArr[0]; + int i15 = iArr[1]; + int i16 = iArr[2]; + int i17 = iArr[3]; + int i18 = (30 + 31) / 32; + int[] iArr2 = new int[(i18 * 33)]; + for (int i19 = 0; i19 < 33; i19++) { + int i20 = (((i17 / 2) + (i19 * i17)) / 33) + i15; + for (int i21 = 0; i21 < 30; i21++) { + if (a2.f((((((i19 & 1) * i16) / 2) + ((i16 / 2) + (i21 * i16))) / 30) + i14, i20)) { + int i22 = (i21 / 32) + (i19 * i18); + iArr2[i22] = (1 << (i21 & 31)) | iArr2[i22]; + } + } + } + c cVar2 = this.f1837b; + Objects.requireNonNull(cVar2); + byte[] bArr2 = new byte[144]; + for (int i23 = 0; i23 < 33; i23++) { + int[] iArr3 = b.i.e.p.b.a.a[i23]; + for (int i24 = 0; i24 < 30; i24++) { + int i25 = iArr3[i24]; + if (i25 >= 0) { + if (((iArr2[(i24 / 32) + (i23 * i18)] >>> (i24 & 31)) & 1) != 0) { + int i26 = i25 / 6; + bArr2[i26] = (byte) (((byte) (1 << (5 - (i25 % 6)))) | bArr2[i26]); + } + } + } + } + cVar2.a(bArr2, 0, 10, 10, 0); + int i27 = bArr2[0] & 15; + if (i27 == 2 || i27 == 3 || i27 == 4) { + cVar2.a(bArr2, 20, 84, 40, 1); + cVar2.a(bArr2, 20, 84, 40, 2); + bArr = new byte[94]; + } else if (i27 == 5) { + cVar2.a(bArr2, 20, 68, 56, 1); + cVar2.a(bArr2, 20, 68, 56, 2); + bArr = new byte[78]; + } else { + throw FormatException.a(); + } + System.arraycopy(bArr2, 0, bArr, 0, 10); + System.arraycopy(bArr2, 20, bArr, 10, bArr.length - 10); + StringBuilder sb = new StringBuilder(144); + if (i27 == 2 || i27 == 3) { + if (i27 == 2) { + str = new DecimalFormat("0000000000".substring(0, b.i.e.p.b.b.a(bArr, new byte[]{39, 40, 41, ExifInterface.START_CODE, 31, 32}))).format((long) b.i.e.p.b.b.a(bArr, new byte[]{33, 34, 35, 36, 25, 26, 27, 28, 29, 30, 19, 20, 21, 22, 23, 24, 13, 14, 15, 16, 17, 18, 7, 8, 9, 10, 11, 12, 1, 2})); + } else { + String[] strArr = b.i.e.p.b.b.a; + str = String.valueOf(new char[]{strArr[0].charAt(b.i.e.p.b.b.a(bArr, new byte[]{39, 40, 41, ExifInterface.START_CODE, 31, 32})), strArr[0].charAt(b.i.e.p.b.b.a(bArr, new byte[]{33, 34, 35, 36, 25, 26})), strArr[0].charAt(b.i.e.p.b.b.a(bArr, new byte[]{27, 28, 29, 30, 19, 20})), strArr[0].charAt(b.i.e.p.b.b.a(bArr, new byte[]{21, 22, 23, 24, 13, 14})), strArr[0].charAt(b.i.e.p.b.b.a(bArr, new byte[]{15, 16, 17, 18, 7, 8})), strArr[0].charAt(b.i.e.p.b.b.a(bArr, new byte[]{9, 10, 11, 12, 1, 2}))}); + } + DecimalFormat decimalFormat = new DecimalFormat("000"); + String format = decimalFormat.format((long) b.i.e.p.b.b.a(bArr, new byte[]{53, 54, 43, 44, 45, 46, 47, 48, 37, 38})); + String format2 = decimalFormat.format((long) b.i.e.p.b.b.a(bArr, new byte[]{55, 56, 57, 58, 59, 60, 49, 50, 51, 52})); + sb.append(b.i.e.p.b.b.b(bArr, 10, 84)); + if (sb.toString().startsWith("[)>\u001e01\u001d")) { + sb.insert(9, str + (char) 29 + format + (char) 29 + format2 + (char) 29); + } else { + sb.insert(0, str + (char) 29 + format + (char) 29 + format2 + (char) 29); + } + } else if (i27 == 4) { + sb.append(b.i.e.p.b.b.b(bArr, 1, 93)); + } else if (i27 == 5) { + sb.append(b.i.e.p.b.b.b(bArr, 1, 77)); + } + String sb2 = sb.toString(); + String valueOf = String.valueOf(i27); + Result result = new Result(sb2, bArr, a, b.i.e.a.MAXICODE); + if (valueOf != null) { + result.b(j.ERROR_CORRECTION_LEVEL, valueOf); + } + return result; + } + throw NotFoundException.l; + } + + @Override // b.i.e.i + public void reset() { + } +} diff --git a/app/src/main/java/b/i/e/p/b/a.java b/app/src/main/java/b/i/e/p/b/a.java new file mode 100644 index 0000000000..802c8b65e7 --- /dev/null +++ b/app/src/main/java/b/i/e/p/b/a.java @@ -0,0 +1,13 @@ +package b.i.e.p.b; + +import androidx.core.app.FrameMetricsAggregator; +import androidx.core.view.InputDeviceCompat; +import androidx.media.AudioAttributesCompat; +import com.discord.utilities.font.FontUtils; +import com.discord.utilities.voice.ScreenShareManager; +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +import com.google.android.material.snackbar.BaseTransientBottomBar; +/* compiled from: BitMatrixParser */ +public final class a { + public static final int[][] a = {new int[]{121, 120, 127, 126, 133, 132, 139, 138, 145, 144, 151, FontUtils.MAX_FONT_SCALING, 157, 156, 163, 162, 169, 168, HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION, 174, 181, BaseTransientBottomBar.ANIMATION_FADE_DURATION, 187, 186, 193, 192, 199, 198, -2, -2}, new int[]{123, 122, 129, 128, 135, 134, 141, 140, 147, 146, 153, 152, 159, 158, 165, 164, 171, 170, 177, 176, 183, 182, 189, 188, 195, 194, 201, 200, 816, -3}, new int[]{125, 124, 131, 130, 137, 136, 143, 142, 149, 148, 155, 154, 161, 160, 167, 166, 173, 172, 179, 178, 185, 184, 191, 190, 197, 196, 203, 202, 818, 817}, new int[]{283, 282, 277, 276, 271, 270, 265, 264, 259, 258, 253, 252, 247, 246, 241, 240, 235, 234, 229, 228, 223, 222, 217, 216, 211, 210, 205, 204, 819, -3}, new int[]{285, 284, 279, 278, AudioAttributesCompat.FLAG_ALL_PUBLIC, 272, 267, 266, 261, 260, 255, 254, 249, 248, 243, 242, 237, 236, 231, 230, HideBottomViewOnScrollBehavior.ENTER_ANIMATION_DURATION, 224, 219, 218, 213, 212, 207, 206, 821, 820}, new int[]{287, 286, 281, 280, 275, 274, 269, 268, 263, 262, 257, 256, 251, 250, 245, 244, 239, 238, 233, 232, 227, 226, 221, 220, 215, 214, 209, 208, 822, -3}, new int[]{289, ScreenShareManager.THUMBNAIL_HEIGHT_PX, 295, 294, 301, 300, 307, 306, 313, 312, 319, 318, 325, 324, 331, 330, 337, 336, 343, 342, 349, 348, 355, 354, 361, 360, 367, 366, 824, 823}, new int[]{291, 290, 297, 296, 303, 302, 309, 308, 315, 314, 321, 320, 327, 326, 333, 332, 339, 338, 345, 344, 351, 350, 357, 356, 363, 362, 369, 368, 825, -3}, new int[]{293, 292, 299, 298, 305, 304, 311, 310, 317, 316, 323, 322, 329, 328, 335, 334, 341, 340, 347, 346, 353, 352, 359, 358, 365, 364, 371, 370, 827, 826}, new int[]{409, 408, 403, 402, 397, 396, 391, 390, 79, 78, -2, -2, 13, 12, 37, 36, 2, -1, 44, 43, 109, 108, 385, 384, 379, 378, 373, 372, 828, -3}, new int[]{411, 410, 405, 404, 399, 398, 393, 392, 81, 80, 40, -2, 15, 14, 39, 38, 3, -1, -1, 45, 111, 110, 387, 386, 381, 380, 375, 374, 830, 829}, new int[]{413, 412, 407, 406, 401, 400, 395, 394, 83, 82, 41, -3, -3, -3, -3, -3, 5, 4, 47, 46, 113, 112, 389, 388, 383, 382, 377, 376, 831, -3}, new int[]{415, 414, 421, 420, 427, 426, 103, 102, 55, 54, 16, -3, -3, -3, -3, -3, -3, -3, 20, 19, 85, 84, 433, 432, 439, 438, 445, 444, 833, 832}, new int[]{417, 416, 423, 422, 429, 428, 105, 104, 57, 56, -3, -3, -3, -3, -3, -3, -3, -3, 22, 21, 87, 86, 435, 434, 441, 440, 447, 446, 834, -3}, new int[]{419, 418, 425, 424, 431, 430, 107, 106, 59, 58, -3, -3, -3, -3, -3, -3, -3, -3, -3, 23, 89, 88, 437, 436, 443, 442, 449, 448, 836, 835}, new int[]{481, 480, 475, 474, 469, 468, 48, -2, 30, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, 0, 53, 52, 463, 462, 457, 456, 451, 450, 837, -3}, new int[]{483, 482, 477, 476, 471, 470, 49, -1, -2, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -2, -1, 465, 464, 459, 458, 453, 452, 839, 838}, new int[]{485, 484, 479, 478, 473, 472, 51, 50, 31, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, 1, -2, 42, 467, 466, 461, 460, 455, 454, 840, -3}, new int[]{487, 486, 493, 492, 499, 498, 97, 96, 61, 60, -3, -3, -3, -3, -3, -3, -3, -3, -3, 26, 91, 90, 505, 504, FrameMetricsAggregator.EVERY_DURATION, 510, 517, 516, 842, 841}, new int[]{489, 488, 495, 494, 501, 500, 99, 98, 63, 62, -3, -3, -3, -3, -3, -3, -3, -3, 28, 27, 93, 92, 507, 506, InputDeviceCompat.SOURCE_DPAD, 512, 519, 518, 843, -3}, new int[]{491, 490, 497, 496, 503, 502, 101, 100, 65, 64, 17, -3, -3, -3, -3, -3, -3, -3, 18, 29, 95, 94, 509, 508, 515, 514, 521, 520, 845, 844}, new int[]{559, 558, 553, 552, 547, 546, 541, 540, 73, 72, 32, -3, -3, -3, -3, -3, -3, 10, 67, 66, 115, 114, 535, 534, 529, 528, 523, 522, 846, -3}, new int[]{561, 560, 555, 554, 549, 548, 543, 542, 75, 74, -2, -1, 7, 6, 35, 34, 11, -2, 69, 68, 117, 116, 537, 536, 531, 530, 525, 524, 848, 847}, new int[]{563, 562, 557, 556, 551, 550, 545, 544, 77, 76, -2, 33, 9, 8, 25, 24, -1, -2, 71, 70, 119, 118, 539, 538, 533, 532, 527, 526, 849, -3}, new int[]{565, 564, 571, 570, 577, 576, 583, 582, 589, 588, 595, 594, 601, 600, 607, 606, 613, 612, 619, 618, 625, 624, 631, 630, 637, 636, 643, 642, 851, 850}, new int[]{567, 566, 573, 572, 579, 578, 585, 584, 591, 590, 597, 596, 603, 602, 609, 608, 615, 614, 621, 620, 627, 626, 633, 632, 639, 638, 645, 644, 852, -3}, new int[]{569, 568, 575, 574, 581, 580, 587, 586, 593, 592, 599, 598, 605, 604, 611, 610, 617, 616, 623, 622, 629, 628, 635, 634, 641, 640, 647, 646, 854, 853}, new int[]{727, 726, 721, 720, 715, 714, 709, 708, 703, 702, 697, 696, 691, 690, 685, 684, 679, 678, 673, 672, 667, 666, 661, 660, 655, 654, 649, 648, 855, -3}, new int[]{729, 728, 723, 722, 717, 716, 711, 710, 705, 704, 699, 698, 693, 692, 687, 686, 681, 680, 675, 674, 669, 668, 663, 662, 657, 656, 651, 650, 857, 856}, new int[]{731, 730, 725, 724, 719, 718, 713, 712, 707, 706, 701, 700, 695, 694, 689, 688, 683, 682, 677, 676, 671, 670, 665, 664, 659, 658, 653, 652, 858, -3}, new int[]{733, 732, 739, 738, 745, 744, 751, 750, 757, 756, 763, 762, 769, 768, 775, 774, 781, 780, 787, 786, 793, 792, 799, 798, 805, 804, 811, 810, 860, 859}, new int[]{735, 734, 741, 740, 747, 746, 753, 752, 759, 758, 765, 764, 771, 770, 777, 776, 783, 782, 789, 788, 795, 794, 801, 800, 807, 806, 813, 812, 861, -3}, new int[]{737, 736, 743, 742, 749, 748, 755, 754, 761, 760, 767, 766, 773, 772, 779, 778, 785, 784, 791, 790, 797, 796, 803, 802, 809, 808, 815, 814, 863, 862}}; +} diff --git a/app/src/main/java/b/i/e/p/b/b.java b/app/src/main/java/b/i/e/p/b/b.java new file mode 100644 index 0000000000..ff9a8b9bd1 --- /dev/null +++ b/app/src/main/java/b/i/e/p/b/b.java @@ -0,0 +1,85 @@ +package b.i.e.p.b; + +import java.text.DecimalFormat; +/* compiled from: DecodedBitStreamParser */ +public final class b { + public static final String[] a = {"\nABCDEFGHIJKLMNOPQRSTUVWXYZ\u001c\u001d\u001e \"#$%&'()*+,-./0123456789:￱￲￳￴￸", "`abcdefghijklmnopqrstuvwxyz\u001c\u001d\u001e{}~;<=>?[\\]^_ ,./:@!|￵￶￰￲￳￴￷", "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚ\u001c\u001d\u001eÛÜÝÞߪ¬±²³µ¹º¼½¾€‚ƒ„…†‡ˆ‰￷ ￳￴￸", "àáâãäåæçèéêëìíîïðñòóôõö÷øùú\u001c\u001d\u001eûüýþÿ¡¨«¯°´·¸»¿Š‹ŒŽ‘’“”￷ ￲￴￸", "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001fŸ ¢£¤¥¦§©­®¶•–—˜™š›œž￷ ￲￳￸", "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?"}; + + public static int a(byte[] bArr, byte[] bArr2) { + if (bArr2.length != 0) { + int i = 0; + for (int i2 = 0; i2 < bArr2.length; i2++) { + int i3 = bArr2[i2] - 1; + i += (((1 << (5 - (i3 % 6))) & bArr[i3 / 6]) == 0 ? 0 : 1) << ((bArr2.length - i2) - 1); + } + return i; + } + throw new IllegalArgumentException(); + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + public static String b(byte[] bArr, int i, int i2) { + StringBuilder sb = new StringBuilder(); + int i3 = i; + int i4 = 0; + int i5 = -1; + int i6 = 0; + while (i3 < i + i2) { + char charAt = a[i4].charAt(bArr[i3]); + switch (charAt) { + case 65520: + case 65521: + case 65522: + case 65523: + case 65524: + i6 = i4; + i4 = charAt - 65520; + i5 = 1; + break; + case 65525: + i5 = 2; + i6 = i4; + i4 = 0; + break; + case 65526: + i5 = 3; + i6 = i4; + i4 = 0; + break; + case 65527: + i4 = 0; + i5 = -1; + break; + case 65528: + i4 = 1; + i5 = -1; + break; + case 65529: + i5 = -1; + break; + case 65530: + default: + sb.append(charAt); + break; + case 65531: + int i7 = i3 + 1; + int i8 = i7 + 1; + int i9 = i8 + 1; + int i10 = i9 + 1; + i3 = i10 + 1; + sb.append(new DecimalFormat("000000000").format((long) ((bArr[i7] << 24) + (bArr[i8] << 18) + (bArr[i9] << 12) + (bArr[i10] << 6) + bArr[i3]))); + break; + } + int i11 = i5 - 1; + if (i5 == 0) { + i4 = i6; + } + i3++; + i5 = i11; + } + while (sb.length() > 0 && sb.charAt(sb.length() - 1) == 65532) { + sb.setLength(sb.length() - 1); + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/e/p/b/c.java b/app/src/main/java/b/i/e/p/b/c.java new file mode 100644 index 0000000000..35383a73b9 --- /dev/null +++ b/app/src/main/java/b/i/e/p/b/c.java @@ -0,0 +1,30 @@ +package b.i.e.p.b; + +import b.i.e.n.l.a; +import com.google.zxing.ChecksumException; +import com.google.zxing.common.reedsolomon.ReedSolomonException; +/* compiled from: Decoder */ +public final class c { + public final b.i.e.n.l.c a = new b.i.e.n.l.c(a.h); + + public final void a(byte[] bArr, int i, int i2, int i3, int i4) throws ChecksumException { + int i5 = i2 + i3; + int i6 = i4 == 0 ? 1 : 2; + int[] iArr = new int[(i5 / i6)]; + for (int i7 = 0; i7 < i5; i7++) { + if (i4 == 0 || i7 % 2 == i4 - 1) { + iArr[i7 / i6] = bArr[i7 + i] & 255; + } + } + try { + this.a.a(iArr, i3 / i6); + for (int i8 = 0; i8 < i2; i8++) { + if (i4 == 0 || i8 % 2 == i4 - 1) { + bArr[i8 + i] = (byte) iArr[i8 / i6]; + } + } + } catch (ReedSolomonException unused) { + throw ChecksumException.a(); + } + } +} diff --git a/app/src/main/java/b/i/e/q/a.java b/app/src/main/java/b/i/e/q/a.java new file mode 100644 index 0000000000..5992433cf2 --- /dev/null +++ b/app/src/main/java/b/i/e/q/a.java @@ -0,0 +1,237 @@ +package b.i.e.q; + +import b.i.e.d; +import b.i.e.k; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.Arrays; +import java.util.Map; +/* compiled from: CodaBarReader */ +public final class a extends k { + public static final char[] a = "0123456789-$:/.+ABCD".toCharArray(); + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1838b = {3, 6, 9, 96, 18, 66, 33, 36, 48, 72, 12, 24, 69, 81, 84, 21, 26, 41, 11, 14}; + public static final char[] c = {'A', 'B', 'C', 'D'}; + public final StringBuilder d = new StringBuilder(20); + public int[] e = new int[80]; + public int f = 0; + + public static boolean g(char[] cArr, char c2) { + if (cArr != null) { + for (char c3 : cArr) { + if (c3 == c2) { + return true; + } + } + } + return false; + } + + @Override // b.i.e.q.k + public Result b(int i, b.i.e.n.a aVar, Map map) throws NotFoundException { + Arrays.fill(this.e, 0); + this.f = 0; + int g = aVar.g(0); + int i2 = aVar.k; + if (g < i2) { + int i3 = 0; + boolean z2 = true; + while (g < i2) { + if (aVar.b(g) != z2) { + i3++; + } else { + h(i3); + z2 = !z2; + i3 = 1; + } + g++; + } + h(i3); + int i4 = 1; + while (i4 < this.f) { + int i5 = i(i4); + if (i5 != -1 && g(c, a[i5])) { + int i6 = 0; + for (int i7 = i4; i7 < i4 + 7; i7++) { + i6 += this.e[i7]; + } + if (i4 == 1 || this.e[i4 - 1] >= i6 / 2) { + this.d.setLength(0); + int i8 = i4; + while (true) { + int i9 = i(i8); + if (i9 != -1) { + this.d.append((char) i9); + i8 += 8; + if ((this.d.length() <= 1 || !g(c, a[i9])) && i8 < this.f) { + } + } else { + throw NotFoundException.l; + } + } + int i10 = i8 - 1; + int i11 = this.e[i10]; + int i12 = 0; + for (int i13 = -8; i13 < -1; i13++) { + i12 += this.e[i8 + i13]; + } + if (i8 >= this.f || i11 >= i12 / 2) { + int[] iArr = {0, 0, 0, 0}; + int[] iArr2 = {0, 0, 0, 0}; + int length = this.d.length() - 1; + int i14 = i4; + int i15 = 0; + while (true) { + int i16 = f1838b[this.d.charAt(i15)]; + for (int i17 = 6; i17 >= 0; i17--) { + int i18 = (i17 & 1) + ((i16 & 1) << 1); + iArr[i18] = iArr[i18] + this.e[i14 + i17]; + iArr2[i18] = iArr2[i18] + 1; + i16 >>= 1; + } + if (i15 >= length) { + break; + } + i14 += 8; + i15++; + } + float[] fArr = new float[4]; + float[] fArr2 = new float[4]; + int i19 = 0; + for (int i20 = 2; i19 < i20; i20 = 2) { + fArr2[i19] = 0.0f; + int i21 = i19 + 2; + fArr2[i21] = ((((float) iArr[i21]) / ((float) iArr2[i21])) + (((float) iArr[i19]) / ((float) iArr2[i19]))) / 2.0f; + fArr[i19] = fArr2[i21]; + fArr[i21] = ((((float) iArr[i21]) * 2.0f) + 1.5f) / ((float) iArr2[i21]); + i19++; + } + int i22 = i4; + int i23 = 0; + loop8: + while (true) { + int i24 = f1838b[this.d.charAt(i23)]; + for (int i25 = 6; i25 >= 0; i25--) { + int i26 = (i25 & 1) + ((i24 & 1) << 1); + float f = (float) this.e[i22 + i25]; + if (f < fArr2[i26] || f > fArr[i26]) { + break loop8; + } + i24 >>= 1; + } + if (i23 < length) { + i22 += 8; + i23++; + } else { + for (int i27 = 0; i27 < this.d.length(); i27++) { + StringBuilder sb = this.d; + sb.setCharAt(i27, a[sb.charAt(i27)]); + } + char charAt = this.d.charAt(0); + char[] cArr = c; + if (g(cArr, charAt)) { + StringBuilder sb2 = this.d; + if (!g(cArr, sb2.charAt(sb2.length() - 1))) { + throw NotFoundException.l; + } else if (this.d.length() > 3) { + if (map == null || !map.containsKey(d.RETURN_CODABAR_START_END)) { + StringBuilder sb3 = this.d; + sb3.deleteCharAt(sb3.length() - 1); + this.d.deleteCharAt(0); + } + int i28 = 0; + for (int i29 = 0; i29 < i4; i29++) { + i28 += this.e[i29]; + } + float f2 = (float) i28; + while (i4 < i10) { + i28 += this.e[i4]; + i4++; + } + float f3 = (float) i; + return new Result(this.d.toString(), null, new k[]{new k(f2, f3), new k((float) i28, f3)}, b.i.e.a.CODABAR); + } else { + throw NotFoundException.l; + } + } else { + throw NotFoundException.l; + } + } + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + } + i4 += 2; + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + + public final void h(int i) { + int[] iArr = this.e; + int i2 = this.f; + iArr[i2] = i; + int i3 = i2 + 1; + this.f = i3; + if (i3 >= iArr.length) { + int[] iArr2 = new int[(i3 << 1)]; + System.arraycopy(iArr, 0, iArr2, 0, i3); + this.e = iArr2; + } + } + + public final int i(int i) { + int i2 = i + 7; + if (i2 >= this.f) { + return -1; + } + int[] iArr = this.e; + int i3 = Integer.MAX_VALUE; + int i4 = 0; + int i5 = Integer.MAX_VALUE; + int i6 = 0; + for (int i7 = i; i7 < i2; i7 += 2) { + int i8 = iArr[i7]; + if (i8 < i5) { + i5 = i8; + } + if (i8 > i6) { + i6 = i8; + } + } + int i9 = (i5 + i6) / 2; + int i10 = 0; + for (int i11 = i + 1; i11 < i2; i11 += 2) { + int i12 = iArr[i11]; + if (i12 < i3) { + i3 = i12; + } + if (i12 > i10) { + i10 = i12; + } + } + int i13 = (i3 + i10) / 2; + int i14 = 128; + int i15 = 0; + for (int i16 = 0; i16 < 7; i16++) { + i14 >>= 1; + if (iArr[i + i16] > ((i16 & 1) == 0 ? i9 : i13)) { + i15 |= i14; + } + } + while (true) { + int[] iArr2 = f1838b; + if (i4 >= iArr2.length) { + return -1; + } + if (iArr2[i4] == i15) { + return i4; + } + i4++; + } + } +} diff --git a/app/src/main/java/b/i/e/q/b.java b/app/src/main/java/b/i/e/q/b.java new file mode 100644 index 0000000000..19c858cca9 --- /dev/null +++ b/app/src/main/java/b/i/e/q/b.java @@ -0,0 +1,407 @@ +package b.i.e.q; + +import b.i.e.d; +import b.i.e.k; +import b.i.e.n.a; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.ArrayList; +import java.util.Map; +/* compiled from: Code128Reader */ +public final class b extends k { + public static final int[][] a = {new int[]{2, 1, 2, 2, 2, 2}, new int[]{2, 2, 2, 1, 2, 2}, new int[]{2, 2, 2, 2, 2, 1}, new int[]{1, 2, 1, 2, 2, 3}, new int[]{1, 2, 1, 3, 2, 2}, new int[]{1, 3, 1, 2, 2, 2}, new int[]{1, 2, 2, 2, 1, 3}, new int[]{1, 2, 2, 3, 1, 2}, new int[]{1, 3, 2, 2, 1, 2}, new int[]{2, 2, 1, 2, 1, 3}, new int[]{2, 2, 1, 3, 1, 2}, new int[]{2, 3, 1, 2, 1, 2}, new int[]{1, 1, 2, 2, 3, 2}, new int[]{1, 2, 2, 1, 3, 2}, new int[]{1, 2, 2, 2, 3, 1}, new int[]{1, 1, 3, 2, 2, 2}, new int[]{1, 2, 3, 1, 2, 2}, new int[]{1, 2, 3, 2, 2, 1}, new int[]{2, 2, 3, 2, 1, 1}, new int[]{2, 2, 1, 1, 3, 2}, new int[]{2, 2, 1, 2, 3, 1}, new int[]{2, 1, 3, 2, 1, 2}, new int[]{2, 2, 3, 1, 1, 2}, new int[]{3, 1, 2, 1, 3, 1}, new int[]{3, 1, 1, 2, 2, 2}, new int[]{3, 2, 1, 1, 2, 2}, new int[]{3, 2, 1, 2, 2, 1}, new int[]{3, 1, 2, 2, 1, 2}, new int[]{3, 2, 2, 1, 1, 2}, new int[]{3, 2, 2, 2, 1, 1}, new int[]{2, 1, 2, 1, 2, 3}, new int[]{2, 1, 2, 3, 2, 1}, new int[]{2, 3, 2, 1, 2, 1}, new int[]{1, 1, 1, 3, 2, 3}, new int[]{1, 3, 1, 1, 2, 3}, new int[]{1, 3, 1, 3, 2, 1}, new int[]{1, 1, 2, 3, 1, 3}, new int[]{1, 3, 2, 1, 1, 3}, new int[]{1, 3, 2, 3, 1, 1}, new int[]{2, 1, 1, 3, 1, 3}, new int[]{2, 3, 1, 1, 1, 3}, new int[]{2, 3, 1, 3, 1, 1}, new int[]{1, 1, 2, 1, 3, 3}, new int[]{1, 1, 2, 3, 3, 1}, new int[]{1, 3, 2, 1, 3, 1}, new int[]{1, 1, 3, 1, 2, 3}, new int[]{1, 1, 3, 3, 2, 1}, new int[]{1, 3, 3, 1, 2, 1}, new int[]{3, 1, 3, 1, 2, 1}, new int[]{2, 1, 1, 3, 3, 1}, new int[]{2, 3, 1, 1, 3, 1}, new int[]{2, 1, 3, 1, 1, 3}, new int[]{2, 1, 3, 3, 1, 1}, new int[]{2, 1, 3, 1, 3, 1}, new int[]{3, 1, 1, 1, 2, 3}, new int[]{3, 1, 1, 3, 2, 1}, new int[]{3, 3, 1, 1, 2, 1}, new int[]{3, 1, 2, 1, 1, 3}, new int[]{3, 1, 2, 3, 1, 1}, new int[]{3, 3, 2, 1, 1, 1}, new int[]{3, 1, 4, 1, 1, 1}, new int[]{2, 2, 1, 4, 1, 1}, new int[]{4, 3, 1, 1, 1, 1}, new int[]{1, 1, 1, 2, 2, 4}, new int[]{1, 1, 1, 4, 2, 2}, new int[]{1, 2, 1, 1, 2, 4}, new int[]{1, 2, 1, 4, 2, 1}, new int[]{1, 4, 1, 1, 2, 2}, new int[]{1, 4, 1, 2, 2, 1}, new int[]{1, 1, 2, 2, 1, 4}, new int[]{1, 1, 2, 4, 1, 2}, new int[]{1, 2, 2, 1, 1, 4}, new int[]{1, 2, 2, 4, 1, 1}, new int[]{1, 4, 2, 1, 1, 2}, new int[]{1, 4, 2, 2, 1, 1}, new int[]{2, 4, 1, 2, 1, 1}, new int[]{2, 2, 1, 1, 1, 4}, new int[]{4, 1, 3, 1, 1, 1}, new int[]{2, 4, 1, 1, 1, 2}, new int[]{1, 3, 4, 1, 1, 1}, new int[]{1, 1, 1, 2, 4, 2}, new int[]{1, 2, 1, 1, 4, 2}, new int[]{1, 2, 1, 2, 4, 1}, new int[]{1, 1, 4, 2, 1, 2}, new int[]{1, 2, 4, 1, 1, 2}, new int[]{1, 2, 4, 2, 1, 1}, new int[]{4, 1, 1, 2, 1, 2}, new int[]{4, 2, 1, 1, 1, 2}, new int[]{4, 2, 1, 2, 1, 1}, new int[]{2, 1, 2, 1, 4, 1}, new int[]{2, 1, 4, 1, 2, 1}, new int[]{4, 1, 2, 1, 2, 1}, new int[]{1, 1, 1, 1, 4, 3}, new int[]{1, 1, 1, 3, 4, 1}, new int[]{1, 3, 1, 1, 4, 1}, new int[]{1, 1, 4, 1, 1, 3}, new int[]{1, 1, 4, 3, 1, 1}, new int[]{4, 1, 1, 1, 1, 3}, new int[]{4, 1, 1, 3, 1, 1}, new int[]{1, 1, 3, 1, 4, 1}, new int[]{1, 1, 4, 1, 3, 1}, new int[]{3, 1, 1, 1, 4, 1}, new int[]{4, 1, 1, 1, 3, 1}, new int[]{2, 1, 1, 4, 1, 2}, new int[]{2, 1, 1, 2, 1, 4}, new int[]{2, 1, 1, 2, 3, 2}, new int[]{2, 3, 3, 1, 1, 1, 2}}; + + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:89:0x017c */ + /* JADX DEBUG: Failed to insert an additional move for type inference into block B:116:0x01d1 */ + /* JADX DEBUG: Multi-variable search result rejected for r27v0, resolved type: b.i.e.n.a */ + /* JADX WARN: Multi-variable type inference failed */ + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:100:0x01a1, code lost: + if (r3 != false) goto L_0x01a3; + */ + /* JADX WARNING: Code restructure failed: missing block: B:101:0x01a3, code lost: + r3 = false; + r10 = false; + r12 = false; + */ + /* JADX WARNING: Code restructure failed: missing block: B:76:0x0150, code lost: + if (r3 != false) goto L_0x01a3; + */ + /* JADX WARNING: Removed duplicated region for block: B:103:0x01ab A[PHI: r19 + PHI: (r19v12 boolean) = (r19v16 boolean), (r19v19 boolean) binds: [B:89:0x017c, B:67:0x0130] A[DONT_GENERATE, DONT_INLINE]] */ + /* JADX WARNING: Removed duplicated region for block: B:105:0x01b5 A[PHI: r3 r18 r19 + PHI: (r3v16 boolean) = (r3v7 boolean), (r3v17 boolean), (r3v20 boolean), (r3v7 boolean), (r3v7 boolean), (r3v7 boolean), (r3v7 boolean), (r3v7 boolean), (r3v7 boolean), (r3v7 boolean), (r3v7 boolean), (r3v7 boolean) binds: [B:51:0x00f5, B:102:0x01a9, B:84:0x0172, B:89:0x017c, B:90:0x0180, B:94:0x018c, B:93:0x0188, B:79:0x015c, B:67:0x0130, B:68:0x0135, B:72:0x0142, B:71:0x013d] A[DONT_GENERATE, DONT_INLINE] + PHI: (r18v5 boolean) = (r18v1 boolean), (r18v1 boolean), (r18v1 boolean), (r18v1 boolean), (r18v1 boolean), (r18v1 boolean), (r18v1 boolean), (r18v6 boolean), (r18v1 boolean), (r18v1 boolean), (r18v1 boolean), (r18v1 boolean) binds: [B:51:0x00f5, B:102:0x01a9, B:84:0x0172, B:89:0x017c, B:90:0x0180, B:94:0x018c, B:93:0x0188, B:79:0x015c, B:67:0x0130, B:68:0x0135, B:72:0x0142, B:71:0x013d] A[DONT_GENERATE, DONT_INLINE] + PHI: (r19v11 boolean) = (r19v2 boolean), (r19v13 boolean), (r19v2 boolean), (r19v16 boolean), (r19v16 boolean), (r19v16 boolean), (r19v16 boolean), (r19v18 boolean), (r19v19 boolean), (r19v19 boolean), (r19v19 boolean), (r19v19 boolean) binds: [B:51:0x00f5, B:102:0x01a9, B:84:0x0172, B:89:0x017c, B:90:0x0180, B:94:0x018c, B:93:0x0188, B:79:0x015c, B:67:0x0130, B:68:0x0135, B:72:0x0142, B:71:0x013d] A[DONT_GENERATE, DONT_INLINE]] */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // b.i.e.q.k + public Result b(int i, a aVar, Map map) throws NotFoundException, FormatException, ChecksumException { + float f; + char c; + boolean z2; + boolean z3; + int i2 = 1; + ?? r3 = 0; + boolean z4 = map != null && map.containsKey(d.ASSUME_GS1); + int i3 = aVar.k; + int f2 = aVar.f(0); + int i4 = 6; + int[] iArr = new int[6]; + int i5 = f2; + boolean z5 = false; + int i6 = 0; + while (f2 < i3) { + if (aVar.b(f2) != z5) { + iArr[i6] = iArr[i6] + i2; + } else { + if (i6 == 5) { + int i7 = 103; + int i8 = -1; + float f3 = 0.25f; + while (true) { + f = 0.7f; + if (i7 > 105) { + break; + } + float d = k.d(iArr, a[i7], 0.7f); + if (d < f3) { + f3 = d; + i8 = i7; + } + i7++; + } + if (i8 >= 0) { + int i9 = r3 == true ? 1 : 0; + int i10 = r3 == true ? 1 : 0; + int i11 = r3 == true ? 1 : 0; + int i12 = r3 == true ? 1 : 0; + int i13 = r3 == true ? 1 : 0; + int i14 = r3 == true ? 1 : 0; + int i15 = r3 == true ? 1 : 0; + int i16 = r3 == true ? 1 : 0; + int i17 = r3 == true ? 1 : 0; + int i18 = r3 == true ? 1 : 0; + if (aVar.h(Math.max(i9, i5 - ((f2 - i5) / 2)), i5, r3)) { + int[] iArr2 = new int[3]; + char c2 = r3 == true ? 1 : 0; + char c3 = r3 == true ? 1 : 0; + char c4 = r3 == true ? 1 : 0; + char c5 = r3 == true ? 1 : 0; + char c6 = r3 == true ? 1 : 0; + char c7 = r3 == true ? 1 : 0; + char c8 = r3 == true ? 1 : 0; + char c9 = r3 == true ? 1 : 0; + char c10 = r3 == true ? 1 : 0; + char c11 = r3 == true ? 1 : 0; + iArr2[c2] = i5; + iArr2[i2] = f2; + iArr2[2] = i8; + int i19 = iArr2[2]; + ArrayList arrayList = new ArrayList(20); + arrayList.add(Byte.valueOf((byte) i19)); + switch (i19) { + case 103: + c = 'e'; + break; + case 104: + c = 'd'; + break; + case 105: + c = 'c'; + break; + default: + throw FormatException.a(); + } + StringBuilder sb = new StringBuilder(20); + int i20 = iArr2[r3]; + int i21 = iArr2[i2]; + int[] iArr3 = new int[i4]; + char c12 = c; + boolean z6 = false; + boolean z7 = false; + boolean z8 = true; + boolean z9 = false; + int i22 = 0; + int i23 = 0; + int i24 = 0; + int i25 = i20; + int i26 = i21; + boolean z10 = r3; + while (!z7) { + k.e(aVar, i26, iArr3); + int i27 = -1; + int i28 = 0; + float f4 = 0.25f; + while (true) { + int[][] iArr4 = a; + if (i28 < iArr4.length) { + float d2 = k.d(iArr3, iArr4[i28], f); + if (d2 < f4) { + f4 = d2; + i27 = i28; + } + i28++; + } else if (i27 >= 0) { + arrayList.add(Byte.valueOf((byte) i27)); + if (i27 != 106) { + z8 = true; + } + if (i27 != 106) { + i23++; + i19 = (i23 * i27) + i19; + } + int i29 = i26; + for (int i30 = 0; i30 < 6; i30++) { + i29 += iArr3[i30]; + } + switch (i27) { + case 103: + case 104: + case 105: + throw FormatException.a(); + default: + switch (c12) { + case 'c': + if (i27 >= 100) { + if (i27 != 106) { + z8 = false; + } + if (i27 != 106) { + switch (i27) { + case 100: + z2 = false; + c12 = 'd'; + z3 = z10; + break; + case 101: + z2 = false; + c12 = 'e'; + z3 = z10; + break; + case 102: + if (z4) { + if (sb.length() == 0) { + sb.append("]C1"); + } else { + sb.append((char) 29); + } + } + default: + z2 = false; + z3 = z10; + break; + } + } else { + z2 = false; + z7 = true; + z3 = z10; + break; + } + } else { + if (i27 < 10) { + sb.append('0'); + } + sb.append(i27); + } + z2 = false; + z3 = z10; + case 'd': + if (i27 < 96) { + if (z10 == z6) { + sb.append((char) (i27 + 32)); + } else { + sb.append((char) (i27 + 32 + 128)); + } + z10 = false; + z2 = false; + z3 = z10; + break; + } else { + if (i27 != 106) { + z8 = false; + } + if (i27 != 106) { + switch (i27) { + case 96: + case 97: + default: + z2 = false; + z3 = z10; + break; + case 98: + z2 = true; + c12 = 'e'; + z3 = z10; + break; + case 99: + z2 = false; + c12 = 'c'; + z3 = z10; + break; + case 100: + if (z6 || !z10) { + if (z6) { + } + z10 = true; + z2 = false; + z3 = z10; + break; + } + z3 = false; + z2 = false; + z6 = true; + break; + case 101: + z2 = false; + c12 = 'e'; + z3 = z10; + break; + case 102: + if (z4) { + if (sb.length() == 0) { + sb.append("]C1"); + } else { + sb.append((char) 29); + } + } + z2 = false; + z3 = z10; + break; + } + } + z7 = true; + z2 = false; + z3 = z10; + } + break; + case 'e': + if (i27 < 64) { + if (z10 == z6) { + sb.append((char) (i27 + 32)); + } else { + sb.append((char) (i27 + 32 + 128)); + } + } else if (i27 >= 96) { + if (i27 != 106) { + z8 = false; + } + if (i27 != 106) { + switch (i27) { + case 98: + z2 = true; + c12 = 'd'; + z3 = z10; + break; + case 100: + z2 = false; + c12 = 'd'; + z3 = z10; + break; + case 101: + if (z6 || !z10) { + if (z6) { + } + z10 = true; + z2 = false; + z3 = z10; + break; + } + z3 = false; + z2 = false; + z6 = true; + break; + case 102: + if (z4) { + if (sb.length() == 0) { + sb.append("]C1"); + } else { + sb.append((char) 29); + } + } + z2 = false; + z3 = z10; + break; + } + } + z7 = true; + z2 = false; + z3 = z10; + } else if (z10 == z6) { + sb.append((char) (i27 - 64)); + } else { + sb.append((char) (i27 + 64)); + } + z10 = false; + z2 = false; + z3 = z10; + break; + } + if (z9) { + c12 = c12 == 'e' ? 'd' : 'e'; + } + z9 = z2; + i24 = i22; + f = 0.7f; + i22 = i27; + i25 = i26; + i26 = i29; + z10 = z3; + break; + } + } else { + throw NotFoundException.l; + } + } + } + int i31 = i26 - i25; + int g = aVar.g(i26); + if (!aVar.h(g, Math.min(aVar.k, ((g - i25) / 2) + g), false)) { + throw NotFoundException.l; + } else if ((i19 - (i23 * i24)) % 103 == i24) { + int length = sb.length(); + if (length != 0) { + if (length > 0 && z8) { + if (c12 == 'c') { + sb.delete(length - 2, length); + } else { + sb.delete(length - 1, length); + } + } + float f5 = ((float) (iArr2[1] + iArr2[0])) / 2.0f; + float f6 = (((float) i31) / 2.0f) + ((float) i25); + int size = arrayList.size(); + byte[] bArr = new byte[size]; + for (int i32 = 0; i32 < size; i32++) { + bArr[i32] = ((Byte) arrayList.get(i32)).byteValue(); + } + float f7 = (float) i; + return new Result(sb.toString(), bArr, new k[]{new k(f5, f7), new k(f6, f7)}, b.i.e.a.CODE_128); + } + throw NotFoundException.l; + } else { + throw ChecksumException.a(); + } + } + } + i5 += iArr[0] + iArr[1]; + int i33 = i6 - 1; + System.arraycopy(iArr, 2, iArr, 0, i33); + iArr[i33] = 0; + iArr[i6] = 0; + i6 = i33; + } else { + i6++; + } + iArr[i6] = 1; + z5 = !z5; + } + f2++; + i2 = 1; + r3 = 0; + i4 = 6; + } + throw NotFoundException.l; + } +} diff --git a/app/src/main/java/b/i/e/q/c.java b/app/src/main/java/b/i/e/q/c.java new file mode 100644 index 0000000000..a0d51a328c --- /dev/null +++ b/app/src/main/java/b/i/e/q/c.java @@ -0,0 +1,161 @@ +package b.i.e.q; + +import b.i.e.d; +import b.i.e.k; +import b.i.e.n.a; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.Arrays; +import java.util.Map; +/* compiled from: Code39Reader */ +public final class c extends k { + public static final int[] a = {52, 289, 97, 352, 49, 304, 112, 37, 292, 100, 265, 73, 328, 25, 280, 88, 13, 268, 76, 28, 259, 67, 322, 19, 274, 82, 7, 262, 70, 22, 385, 193, 448, 145, 400, 208, 133, 388, 196, 168, 162, 138, 42}; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1839b; + public final StringBuilder c = new StringBuilder(20); + public final int[] d = new int[9]; + + public c(boolean z2) { + this.f1839b = z2; + } + + public static int g(int[] iArr) { + int length = iArr.length; + int i = 0; + while (true) { + int i2 = Integer.MAX_VALUE; + for (int i3 : iArr) { + if (i3 < i2 && i3 > i) { + i2 = i3; + } + } + int i4 = 0; + int i5 = 0; + int i6 = 0; + for (int i7 = 0; i7 < length; i7++) { + int i8 = iArr[i7]; + if (i8 > i2) { + i5 |= 1 << ((length - 1) - i7); + i4++; + i6 += i8; + } + } + if (i4 == 3) { + for (int i9 = 0; i9 < length && i4 > 0; i9++) { + int i10 = iArr[i9]; + if (i10 > i2) { + i4--; + if ((i10 << 1) >= i6) { + return -1; + } + } + } + return i5; + } else if (i4 <= 3) { + return -1; + } else { + i = i2; + } + } + } + + @Override // b.i.e.q.k + public Result b(int i, a aVar, Map map) throws NotFoundException, ChecksumException, FormatException { + char c; + int[] iArr = this.d; + Arrays.fill(iArr, 0); + StringBuilder sb = this.c; + sb.setLength(0); + int i2 = aVar.k; + int f = aVar.f(0); + int length = iArr.length; + int i3 = f; + boolean z2 = false; + int i4 = 0; + while (f < i2) { + if (aVar.b(f) != z2) { + iArr[i4] = iArr[i4] + 1; + } else { + if (i4 != length - 1) { + i4++; + } else if (g(iArr) != 148 || !aVar.h(Math.max(0, i3 - ((f - i3) / 2)), i3, false)) { + i3 += iArr[0] + iArr[1]; + int i5 = i4 - 1; + System.arraycopy(iArr, 2, iArr, 0, i5); + iArr[i5] = 0; + iArr[i4] = 0; + i4 = i5; + } else { + int[] iArr2 = {i3, f}; + int f2 = aVar.f(iArr2[1]); + int i6 = aVar.k; + while (true) { + k.e(aVar, f2, iArr); + int g = g(iArr); + if (g >= 0) { + int i7 = 0; + while (true) { + int[] iArr3 = a; + if (i7 < iArr3.length) { + if (iArr3[i7] == g) { + c = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%".charAt(i7); + break; + } + i7++; + } else if (g == 148) { + c = '*'; + } else { + throw NotFoundException.l; + } + } + sb.append(c); + int i8 = f2; + for (int i9 : iArr) { + i8 += i9; + } + int f3 = aVar.f(i8); + if (c == '*') { + sb.setLength(sb.length() - 1); + int i10 = 0; + for (int i11 : iArr) { + i10 += i11; + } + int i12 = (f3 - f2) - i10; + if (f3 == i6 || (i12 << 1) >= i10) { + if (this.f1839b) { + int length2 = sb.length() - 1; + int i13 = 0; + for (int i14 = 0; i14 < length2; i14++) { + i13 += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%".indexOf(this.c.charAt(i14)); + } + if (sb.charAt(length2) == "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%".charAt(i13 % 43)) { + sb.setLength(length2); + } else { + throw ChecksumException.a(); + } + } + if (sb.length() != 0) { + float f4 = (float) i; + return new Result(sb.toString(), null, new k[]{new k(((float) (iArr2[1] + iArr2[0])) / 2.0f, f4), new k((((float) i10) / 2.0f) + ((float) f2), f4)}, b.i.e.a.CODE_39); + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + f2 = f3; + } else { + throw NotFoundException.l; + } + } + } + iArr[i4] = 1; + z2 = !z2; + } + f++; + } + throw NotFoundException.l; + } +} diff --git a/app/src/main/java/b/i/e/q/d.java b/app/src/main/java/b/i/e/q/d.java new file mode 100644 index 0000000000..30a204d716 --- /dev/null +++ b/app/src/main/java/b/i/e/q/d.java @@ -0,0 +1,323 @@ +package b.i.e.q; + +import b.i.e.n.a; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.Arrays; +import java.util.Map; +/* compiled from: Code93Reader */ +public final class d extends k { + public static final char[] a = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*".toCharArray(); + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1840b; + public static final int c; + public final StringBuilder d = new StringBuilder(20); + public final int[] e = new int[6]; + + static { + int[] iArr = {276, 328, 324, 322, 296, 292, 290, 336, 274, 266, 424, 420, 418, 404, 402, 394, 360, 356, 354, 308, 282, 344, 332, 326, 300, 278, 436, 434, 428, 422, 406, 410, 364, 358, 310, 314, 302, 468, 466, 458, 366, 374, 430, 294, 474, 470, 306, 350}; + f1840b = iArr; + c = iArr[47]; + } + + public static void g(CharSequence charSequence, int i, int i2) throws ChecksumException { + int i3 = 0; + int i4 = 1; + for (int i5 = i - 1; i5 >= 0; i5--) { + i3 += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*".indexOf(charSequence.charAt(i5)) * i4; + i4++; + if (i4 > i2) { + i4 = 1; + } + } + if (charSequence.charAt(i) != a[i3 % 47]) { + throw ChecksumException.a(); + } + } + + public static int h(int[] iArr) { + int i = 0; + for (int i2 : iArr) { + i += i2; + } + int length = iArr.length; + int i3 = 0; + for (int i4 = 0; i4 < length; i4++) { + int round = Math.round((((float) iArr[i4]) * 9.0f) / ((float) i)); + if (round <= 0 || round > 4) { + return -1; + } + if ((i4 & 1) == 0) { + for (int i5 = 0; i5 < round; i5++) { + i3 = (i3 << 1) | 1; + } + } else { + i3 <<= round; + } + } + return i3; + } + + /* JADX WARNING: Code restructure failed: missing block: B:17:0x0060, code lost: + r8 = b.i.e.q.d.a[r9]; + r7.append(r8); + r9 = r6.length; + r12 = r4; + r10 = 0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:18:0x006a, code lost: + if (r10 >= r9) goto L_0x0072; + */ + /* JADX WARNING: Code restructure failed: missing block: B:19:0x006c, code lost: + r12 = r12 + r6[r10]; + r10 = r10 + 1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:20:0x0072, code lost: + r9 = r18.f(r12); + */ + /* JADX WARNING: Code restructure failed: missing block: B:21:0x0078, code lost: + if (r8 != '*') goto L_0x0185; + */ + /* JADX WARNING: Code restructure failed: missing block: B:22:0x007a, code lost: + r7.deleteCharAt(r7.length() - 1); + r8 = r6.length; + r10 = 0; + r12 = 0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x0085, code lost: + if (r10 >= r8) goto L_0x008d; + */ + /* JADX WARNING: Code restructure failed: missing block: B:24:0x0087, code lost: + r12 = r12 + r6[r10]; + r10 = r10 + 1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:25:0x008d, code lost: + if (r9 == r5) goto L_0x0182; + */ + /* JADX WARNING: Code restructure failed: missing block: B:27:0x0093, code lost: + if (r18.b(r9) == false) goto L_0x0182; + */ + /* JADX WARNING: Code restructure failed: missing block: B:29:0x0099, code lost: + if (r7.length() < 2) goto L_0x017f; + */ + /* JADX WARNING: Code restructure failed: missing block: B:30:0x009b, code lost: + r1 = r7.length(); + g(r7, r1 - 2, 20); + g(r7, r1 - 1, 15); + r7.setLength(r7.length() - 2); + r1 = r7.length(); + r5 = new java.lang.StringBuilder(r1); + r6 = 0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:31:0x00bf, code lost: + if (r6 >= r1) goto L_0x0152; + */ + /* JADX WARNING: Code restructure failed: missing block: B:32:0x00c1, code lost: + r8 = r7.charAt(r6); + */ + /* JADX WARNING: Code restructure failed: missing block: B:33:0x00c7, code lost: + if (r8 < 'a') goto L_0x014c; + */ + /* JADX WARNING: Code restructure failed: missing block: B:35:0x00cb, code lost: + if (r8 > 'd') goto L_0x014c; + */ + /* JADX WARNING: Code restructure failed: missing block: B:37:0x00cf, code lost: + if (r6 >= (r1 - 1)) goto L_0x0147; + */ + /* JADX WARNING: Code restructure failed: missing block: B:38:0x00d1, code lost: + r6 = r6 + 1; + r9 = r7.charAt(r6); + */ + /* JADX WARNING: Code restructure failed: missing block: B:39:0x00dd, code lost: + switch(r8) { + case 97: goto L_0x0136; + case 98: goto L_0x0100; + case 99: goto L_0x00ef; + case 100: goto L_0x00e3; + default: goto L_0x00e0; + }; + */ + /* JADX WARNING: Code restructure failed: missing block: B:40:0x00e0, code lost: + r8 = 0; + */ + /* JADX WARNING: Code restructure failed: missing block: B:41:0x00e3, code lost: + if (r9 < 'A') goto L_0x00ea; + */ + /* JADX WARNING: Code restructure failed: missing block: B:42:0x00e5, code lost: + if (r9 > 'Z') goto L_0x00ea; + */ + /* JADX WARNING: Code restructure failed: missing block: B:43:0x00e7, code lost: + r9 = r9 + ' '; + */ + /* JADX WARNING: Code restructure failed: missing block: B:45:0x00ee, code lost: + throw com.google.zxing.FormatException.a(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:46:0x00ef, code lost: + if (r9 < 'A') goto L_0x00f6; + */ + /* JADX WARNING: Code restructure failed: missing block: B:47:0x00f1, code lost: + if (r9 > 'O') goto L_0x00f6; + */ + /* JADX WARNING: Code restructure failed: missing block: B:48:0x00f3, code lost: + r9 = r9 - ' '; + */ + /* JADX WARNING: Code restructure failed: missing block: B:49:0x00f6, code lost: + if (r9 != 'Z') goto L_0x00fb; + */ + /* JADX WARNING: Code restructure failed: missing block: B:50:0x00f8, code lost: + r8 = com.discord.widgets.chat.input.MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR; + */ + /* JADX WARNING: Code restructure failed: missing block: B:52:0x00ff, code lost: + throw com.google.zxing.FormatException.a(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:53:0x0100, code lost: + if (r9 < 'A') goto L_0x0109; + */ + /* JADX WARNING: Code restructure failed: missing block: B:55:0x0104, code lost: + if (r9 > 'E') goto L_0x0109; + */ + /* JADX WARNING: Code restructure failed: missing block: B:56:0x0106, code lost: + r9 = r9 - '&'; + */ + /* JADX WARNING: Code restructure failed: missing block: B:58:0x010b, code lost: + if (r9 < 'F') goto L_0x0114; + */ + /* JADX WARNING: Code restructure failed: missing block: B:60:0x010f, code lost: + if (r9 > 'J') goto L_0x0114; + */ + /* JADX WARNING: Code restructure failed: missing block: B:61:0x0111, code lost: + r9 = r9 - 11; + */ + /* JADX WARNING: Code restructure failed: missing block: B:63:0x0116, code lost: + if (r9 < 'K') goto L_0x011d; + */ + /* JADX WARNING: Code restructure failed: missing block: B:64:0x0118, code lost: + if (r9 > 'O') goto L_0x011d; + */ + /* JADX WARNING: Code restructure failed: missing block: B:65:0x011a, code lost: + r9 = r9 + 16; + */ + /* JADX WARNING: Code restructure failed: missing block: B:67:0x011f, code lost: + if (r9 < 'P') goto L_0x0128; + */ + /* JADX WARNING: Code restructure failed: missing block: B:69:0x0123, code lost: + if (r9 > 'S') goto L_0x0128; + */ + /* JADX WARNING: Code restructure failed: missing block: B:70:0x0125, code lost: + r9 = r9 + '+'; + */ + /* JADX WARNING: Code restructure failed: missing block: B:72:0x012a, code lost: + if (r9 < 'T') goto L_0x0131; + */ + /* JADX WARNING: Code restructure failed: missing block: B:73:0x012c, code lost: + if (r9 > 'Z') goto L_0x0131; + */ + /* JADX WARNING: Code restructure failed: missing block: B:74:0x012e, code lost: + r8 = 127; + */ + /* JADX WARNING: Code restructure failed: missing block: B:76:0x0135, code lost: + throw com.google.zxing.FormatException.a(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:77:0x0136, code lost: + if (r9 < 'A') goto L_0x013e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:78:0x0138, code lost: + if (r9 > 'Z') goto L_0x013e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:79:0x013a, code lost: + r9 = r9 - '@'; + */ + /* JADX WARNING: Code restructure failed: missing block: B:80:0x013c, code lost: + r8 = (char) r9; + */ + /* JADX WARNING: Code restructure failed: missing block: B:82:0x0142, code lost: + throw com.google.zxing.FormatException.a(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:83:0x0143, code lost: + r5.append(r8); + */ + /* JADX WARNING: Code restructure failed: missing block: B:85:0x014b, code lost: + throw com.google.zxing.FormatException.a(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:86:0x014c, code lost: + r5.append(r8); + */ + /* JADX WARNING: Code restructure failed: missing block: B:87:0x014f, code lost: + r6 = r6 + 1; + */ + /* JADX WARNING: Code restructure failed: missing block: B:88:0x0152, code lost: + r9 = (float) r17; + */ + /* JADX WARNING: Code restructure failed: missing block: B:89:0x017e, code lost: + return new com.google.zxing.Result(r5.toString(), null, new b.i.e.k[]{new b.i.e.k(((float) (r2[1] + r2[0])) / 2.0f, r9), new b.i.e.k((((float) r12) / 2.0f) + ((float) r4), r9)}, b.i.e.a.CODE_93); + */ + /* JADX WARNING: Code restructure failed: missing block: B:91:0x0181, code lost: + throw com.google.zxing.NotFoundException.l; + */ + /* JADX WARNING: Code restructure failed: missing block: B:93:0x0184, code lost: + throw com.google.zxing.NotFoundException.l; + */ + @Override // b.i.e.q.k + public Result b(int i, a aVar, Map map) throws NotFoundException, ChecksumException, FormatException { + int f; + int i2 = aVar.k; + int f2 = aVar.f(0); + Arrays.fill(this.e, 0); + int[] iArr = this.e; + int length = iArr.length; + int i3 = f2; + boolean z2 = false; + int i4 = 0; + while (f2 < i2) { + if (aVar.b(f2) != z2) { + iArr[i4] = iArr[i4] + 1; + } else { + if (i4 != length - 1) { + i4++; + } else if (h(iArr) == c) { + int[] iArr2 = {i3, f2}; + int f3 = aVar.f(iArr2[1]); + int i5 = aVar.k; + int[] iArr3 = this.e; + Arrays.fill(iArr3, 0); + StringBuilder sb = this.d; + sb.setLength(0); + while (true) { + k.e(aVar, f3, iArr3); + int h = h(iArr3); + if (h >= 0) { + int i6 = 0; + while (true) { + int[] iArr4 = f1840b; + if (i6 >= iArr4.length) { + throw NotFoundException.l; + } else if (iArr4[i6] == h) { + break; + } else { + i6++; + } + } + } else { + throw NotFoundException.l; + } + f3 = f; + } + } else { + i3 += iArr[0] + iArr[1]; + int i7 = i4 - 1; + System.arraycopy(iArr, 2, iArr, 0, i7); + iArr[i7] = 0; + iArr[i4] = 0; + i4 = i7; + } + iArr[i4] = 1; + z2 = !z2; + } + f2++; + } + throw NotFoundException.l; + } +} diff --git a/app/src/main/java/b/i/e/q/e.java b/app/src/main/java/b/i/e/q/e.java new file mode 100644 index 0000000000..c8ba1a0661 --- /dev/null +++ b/app/src/main/java/b/i/e/q/e.java @@ -0,0 +1,51 @@ +package b.i.e.q; + +import b.i.e.n.a; +import com.google.zxing.NotFoundException; +/* compiled from: EAN13Reader */ +public final class e extends p { + public static final int[] h = {0, 11, 13, 14, 19, 25, 28, 21, 22, 26}; + public final int[] i = new int[4]; + + @Override // b.i.e.q.p + public int j(a aVar, int[] iArr, StringBuilder sb) throws NotFoundException { + int[] iArr2 = this.i; + iArr2[0] = 0; + iArr2[1] = 0; + iArr2[2] = 0; + iArr2[3] = 0; + int i = aVar.k; + int i2 = iArr[1]; + int i3 = 0; + for (int i4 = 0; i4 < 6 && i2 < i; i4++) { + int h2 = p.h(aVar, iArr2, i2, p.d); + sb.append((char) ((h2 % 10) + 48)); + for (int i5 : iArr2) { + i2 += i5; + } + if (h2 >= 10) { + i3 |= 1 << (5 - i4); + } + } + for (int i6 = 0; i6 < 10; i6++) { + if (i3 == h[i6]) { + sb.insert(0, (char) (i6 + 48)); + int[] iArr3 = p.f1846b; + int i7 = p.l(aVar, i2, true, iArr3, new int[iArr3.length])[1]; + for (int i8 = 0; i8 < 6 && i7 < i; i8++) { + sb.append((char) (p.h(aVar, iArr2, i7, p.c) + 48)); + for (int i9 : iArr2) { + i7 += i9; + } + } + return i7; + } + } + throw NotFoundException.l; + } + + @Override // b.i.e.q.p + public b.i.e.a n() { + return b.i.e.a.EAN_13; + } +} diff --git a/app/src/main/java/b/i/e/q/f.java b/app/src/main/java/b/i/e/q/f.java new file mode 100644 index 0000000000..59fa804f4f --- /dev/null +++ b/app/src/main/java/b/i/e/q/f.java @@ -0,0 +1,39 @@ +package b.i.e.q; + +import b.i.e.n.a; +import com.google.zxing.NotFoundException; +/* compiled from: EAN8Reader */ +public final class f extends p { + public final int[] h = new int[4]; + + @Override // b.i.e.q.p + public int j(a aVar, int[] iArr, StringBuilder sb) throws NotFoundException { + int[] iArr2 = this.h; + iArr2[0] = 0; + iArr2[1] = 0; + iArr2[2] = 0; + iArr2[3] = 0; + int i = aVar.k; + int i2 = iArr[1]; + for (int i3 = 0; i3 < 4 && i2 < i; i3++) { + sb.append((char) (p.h(aVar, iArr2, i2, p.c) + 48)); + for (int i4 : iArr2) { + i2 += i4; + } + } + int[] iArr3 = p.f1846b; + int i5 = p.l(aVar, i2, true, iArr3, new int[iArr3.length])[1]; + for (int i6 = 0; i6 < 4 && i5 < i; i6++) { + sb.append((char) (p.h(aVar, iArr2, i5, p.c) + 48)); + for (int i7 : iArr2) { + i5 += i7; + } + } + return i5; + } + + @Override // b.i.e.q.p + public b.i.e.a n() { + return b.i.e.a.EAN_8; + } +} diff --git a/app/src/main/java/b/i/e/q/g.java b/app/src/main/java/b/i/e/q/g.java new file mode 100644 index 0000000000..871edd2d40 --- /dev/null +++ b/app/src/main/java/b/i/e/q/g.java @@ -0,0 +1,127 @@ +package b.i.e.q; + +import java.util.ArrayList; +import java.util.List; +/* compiled from: EANManufacturerOrgSupport */ +public final class g { + public final List a = new ArrayList(); + + /* renamed from: b reason: collision with root package name */ + public final List f1841b = new ArrayList(); + + public final void a(int[] iArr, String str) { + this.a.add(iArr); + this.f1841b.add(str); + } + + public final synchronized void b() { + if (this.a.isEmpty()) { + a(new int[]{0, 19}, "US/CA"); + a(new int[]{30, 39}, "US"); + a(new int[]{60, 139}, "US/CA"); + a(new int[]{300, 379}, "FR"); + a(new int[]{380}, "BG"); + a(new int[]{383}, "SI"); + a(new int[]{385}, "HR"); + a(new int[]{387}, "BA"); + a(new int[]{400, 440}, "DE"); + a(new int[]{450, 459}, "JP"); + a(new int[]{460, 469}, "RU"); + a(new int[]{471}, "TW"); + a(new int[]{474}, "EE"); + a(new int[]{475}, "LV"); + a(new int[]{476}, "AZ"); + a(new int[]{477}, "LT"); + a(new int[]{478}, "UZ"); + a(new int[]{479}, "LK"); + a(new int[]{480}, "PH"); + a(new int[]{481}, "BY"); + a(new int[]{482}, "UA"); + a(new int[]{484}, "MD"); + a(new int[]{485}, "AM"); + a(new int[]{486}, "GE"); + a(new int[]{487}, "KZ"); + a(new int[]{489}, "HK"); + a(new int[]{490, 499}, "JP"); + a(new int[]{500, 509}, "GB"); + a(new int[]{520}, "GR"); + a(new int[]{528}, "LB"); + a(new int[]{529}, "CY"); + a(new int[]{531}, "MK"); + a(new int[]{535}, "MT"); + a(new int[]{539}, "IE"); + a(new int[]{540, 549}, "BE/LU"); + a(new int[]{560}, "PT"); + a(new int[]{569}, "IS"); + a(new int[]{570, 579}, "DK"); + a(new int[]{590}, "PL"); + a(new int[]{594}, "RO"); + a(new int[]{599}, "HU"); + a(new int[]{600, 601}, "ZA"); + a(new int[]{603}, "GH"); + a(new int[]{608}, "BH"); + a(new int[]{609}, "MU"); + a(new int[]{611}, "MA"); + a(new int[]{613}, "DZ"); + a(new int[]{616}, "KE"); + a(new int[]{618}, "CI"); + a(new int[]{619}, "TN"); + a(new int[]{621}, "SY"); + a(new int[]{622}, "EG"); + a(new int[]{624}, "LY"); + a(new int[]{625}, "JO"); + a(new int[]{626}, "IR"); + a(new int[]{627}, "KW"); + a(new int[]{628}, "SA"); + a(new int[]{629}, "AE"); + a(new int[]{640, 649}, "FI"); + a(new int[]{690, 695}, "CN"); + a(new int[]{700, 709}, "NO"); + a(new int[]{729}, "IL"); + a(new int[]{730, 739}, "SE"); + a(new int[]{740}, "GT"); + a(new int[]{741}, "SV"); + a(new int[]{742}, "HN"); + a(new int[]{743}, "NI"); + a(new int[]{744}, "CR"); + a(new int[]{745}, "PA"); + a(new int[]{746}, "DO"); + a(new int[]{750}, "MX"); + a(new int[]{754, 755}, "CA"); + a(new int[]{759}, "VE"); + a(new int[]{760, 769}, "CH"); + a(new int[]{770}, "CO"); + a(new int[]{773}, "UY"); + a(new int[]{775}, "PE"); + a(new int[]{777}, "BO"); + a(new int[]{779}, "AR"); + a(new int[]{780}, "CL"); + a(new int[]{784}, "PY"); + a(new int[]{785}, "PE"); + a(new int[]{786}, "EC"); + a(new int[]{789, 790}, "BR"); + a(new int[]{800, 839}, "IT"); + a(new int[]{840, 849}, "ES"); + a(new int[]{850}, "CU"); + a(new int[]{858}, "SK"); + a(new int[]{859}, "CZ"); + a(new int[]{860}, "YU"); + a(new int[]{865}, "MN"); + a(new int[]{867}, "KP"); + a(new int[]{868, 869}, "TR"); + a(new int[]{870, 879}, "NL"); + a(new int[]{880}, "KR"); + a(new int[]{885}, "TH"); + a(new int[]{888}, "SG"); + a(new int[]{890}, "IN"); + a(new int[]{893}, "VN"); + a(new int[]{896}, "PK"); + a(new int[]{899}, "ID"); + a(new int[]{900, 919}, "AT"); + a(new int[]{930, 939}, "AU"); + a(new int[]{940, 949}, "AZ"); + a(new int[]{955}, "MY"); + a(new int[]{958}, "MO"); + } + } +} diff --git a/app/src/main/java/b/i/e/q/h.java b/app/src/main/java/b/i/e/q/h.java new file mode 100644 index 0000000000..2e34f877ce --- /dev/null +++ b/app/src/main/java/b/i/e/q/h.java @@ -0,0 +1,175 @@ +package b.i.e.q; + +import b.i.e.d; +import b.i.e.k; +import b.i.e.n.a; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.Map; +/* compiled from: ITFReader */ +public final class h extends k { + public static final int[] a = {6, 8, 10, 12, 14}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1842b = {1, 1, 1, 1}; + public static final int[][] c = {new int[]{1, 1, 2}, new int[]{1, 1, 3}}; + public static final int[][] d = {new int[]{1, 1, 2, 2, 1}, new int[]{2, 1, 1, 1, 2}, new int[]{1, 2, 1, 1, 2}, new int[]{2, 2, 1, 1, 1}, new int[]{1, 1, 2, 1, 2}, new int[]{2, 1, 2, 1, 1}, new int[]{1, 2, 2, 1, 1}, new int[]{1, 1, 1, 2, 2}, new int[]{2, 1, 1, 2, 1}, new int[]{1, 2, 1, 2, 1}, new int[]{1, 1, 3, 3, 1}, new int[]{3, 1, 1, 1, 3}, new int[]{1, 3, 1, 1, 3}, new int[]{3, 3, 1, 1, 1}, new int[]{1, 1, 3, 1, 3}, new int[]{3, 1, 3, 1, 1}, new int[]{1, 3, 3, 1, 1}, new int[]{1, 1, 1, 3, 3}, new int[]{3, 1, 1, 3, 1}, new int[]{1, 3, 1, 3, 1}}; + public int e = -1; + + public static int g(int[] iArr) throws NotFoundException { + int length = d.length; + float f = 0.38f; + int i = -1; + for (int i2 = 0; i2 < length; i2++) { + float d2 = k.d(iArr, d[i2], 0.5f); + if (d2 < f) { + i = i2; + f = d2; + } else if (d2 == f) { + i = -1; + } + } + if (i >= 0) { + return i % 10; + } + throw NotFoundException.l; + } + + public static int[] h(a aVar, int i, int[] iArr) throws NotFoundException { + int length = iArr.length; + int[] iArr2 = new int[length]; + int i2 = aVar.k; + int i3 = i; + boolean z2 = false; + int i4 = 0; + while (i < i2) { + if (aVar.b(i) != z2) { + iArr2[i4] = iArr2[i4] + 1; + } else { + if (i4 != length - 1) { + i4++; + } else if (k.d(iArr2, iArr, 0.5f) < 0.38f) { + return new int[]{i3, i}; + } else { + i3 += iArr2[0] + iArr2[1]; + int i5 = i4 - 1; + System.arraycopy(iArr2, 2, iArr2, 0, i5); + iArr2[i5] = 0; + iArr2[i4] = 0; + i4 = i5; + } + iArr2[i4] = 1; + z2 = !z2; + } + i++; + } + throw NotFoundException.l; + } + + /* JADX INFO: finally extract failed */ + @Override // b.i.e.q.k + public Result b(int i, a aVar, Map map) throws FormatException, NotFoundException { + int[] iArr; + boolean z2; + int i2 = aVar.k; + int f = aVar.f(0); + if (f != i2) { + int[] h = h(aVar, f, f1842b); + this.e = (h[1] - h[0]) / 4; + i(aVar, h[0]); + aVar.i(); + try { + int i3 = aVar.k; + int f2 = aVar.f(0); + if (f2 != i3) { + try { + iArr = h(aVar, f2, c[0]); + } catch (NotFoundException unused) { + iArr = h(aVar, f2, c[1]); + } + i(aVar, iArr[0]); + int i4 = iArr[0]; + int i5 = aVar.k; + iArr[0] = i5 - iArr[1]; + iArr[1] = i5 - i4; + aVar.i(); + StringBuilder sb = new StringBuilder(20); + int i6 = h[1]; + int i7 = iArr[0]; + int[] iArr2 = new int[10]; + int[] iArr3 = new int[5]; + int[] iArr4 = new int[5]; + while (i6 < i7) { + k.e(aVar, i6, iArr2); + for (int i8 = 0; i8 < 5; i8++) { + int i9 = i8 * 2; + iArr3[i8] = iArr2[i9]; + iArr4[i8] = iArr2[i9 + 1]; + } + sb.append((char) (g(iArr3) + 48)); + sb.append((char) (g(iArr4) + 48)); + for (int i10 = 0; i10 < 10; i10++) { + i6 += iArr2[i10]; + } + } + String sb2 = sb.toString(); + int[] iArr5 = map != null ? (int[]) map.get(d.ALLOWED_LENGTHS) : null; + if (iArr5 == null) { + iArr5 = a; + } + int length = sb2.length(); + int length2 = iArr5.length; + int i11 = 0; + int i12 = 0; + while (true) { + if (i11 >= length2) { + z2 = false; + break; + } + int i13 = iArr5[i11]; + if (length == i13) { + z2 = true; + break; + } + if (i13 > i12) { + i12 = i13; + } + i11++; + } + if (!z2 && length > i12) { + z2 = true; + } + if (z2) { + float f3 = (float) i; + return new Result(sb2, null, new k[]{new k((float) h[1], f3), new k((float) iArr[0], f3)}, b.i.e.a.ITF); + } + throw FormatException.a(); + } + throw NotFoundException.l; + } catch (Throwable th) { + aVar.i(); + throw th; + } + } else { + throw NotFoundException.l; + } + } + + public final void i(a aVar, int i) throws NotFoundException { + int i2 = this.e * 10; + if (i2 >= i) { + i2 = i; + } + while (true) { + i--; + if (i2 <= 0 || i < 0 || aVar.b(i)) { + break; + } + i2--; + } + if (i2 != 0) { + throw NotFoundException.l; + } + } +} diff --git a/app/src/main/java/b/i/e/q/i.java b/app/src/main/java/b/i/e/q/i.java new file mode 100644 index 0000000000..8d9909b09c --- /dev/null +++ b/app/src/main/java/b/i/e/q/i.java @@ -0,0 +1,78 @@ +package b.i.e.q; + +import b.i.e.a; +import b.i.e.d; +import b.i.e.q.r.e; +import b.i.e.q.r.f.c; +import com.google.zxing.NotFoundException; +import com.google.zxing.ReaderException; +import com.google.zxing.Result; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Map; +/* compiled from: MultiFormatOneDReader */ +public final class i extends k { + public final k[] a; + + public i(Map map) { + Collection collection = map == null ? null : (Collection) map.get(d.POSSIBLE_FORMATS); + boolean z2 = (map == null || map.get(d.ASSUME_CODE_39_CHECK_DIGIT) == null) ? false : true; + ArrayList arrayList = new ArrayList(); + if (collection != null) { + if (collection.contains(a.EAN_13) || collection.contains(a.UPC_A) || collection.contains(a.EAN_8) || collection.contains(a.UPC_E)) { + arrayList.add(new j(map)); + } + if (collection.contains(a.CODE_39)) { + arrayList.add(new c(z2)); + } + if (collection.contains(a.CODE_93)) { + arrayList.add(new d()); + } + if (collection.contains(a.CODE_128)) { + arrayList.add(new b()); + } + if (collection.contains(a.ITF)) { + arrayList.add(new h()); + } + if (collection.contains(a.CODABAR)) { + arrayList.add(new a()); + } + if (collection.contains(a.RSS_14)) { + arrayList.add(new e()); + } + if (collection.contains(a.RSS_EXPANDED)) { + arrayList.add(new c()); + } + } + if (arrayList.isEmpty()) { + arrayList.add(new j(map)); + arrayList.add(new c(false)); + arrayList.add(new a()); + arrayList.add(new d()); + arrayList.add(new b()); + arrayList.add(new h()); + arrayList.add(new e()); + arrayList.add(new c()); + } + this.a = (k[]) arrayList.toArray(new k[arrayList.size()]); + } + + @Override // b.i.e.q.k + public Result b(int i, b.i.e.n.a aVar, Map map) throws NotFoundException { + k[] kVarArr; + for (k kVar : this.a) { + try { + return kVar.b(i, aVar, map); + } catch (ReaderException unused) { + } + } + throw NotFoundException.l; + } + + @Override // b.i.e.q.k, b.i.e.i + public void reset() { + for (k kVar : this.a) { + kVar.reset(); + } + } +} diff --git a/app/src/main/java/b/i/e/q/j.java b/app/src/main/java/b/i/e/q/j.java new file mode 100644 index 0000000000..4395111c2c --- /dev/null +++ b/app/src/main/java/b/i/e/q/j.java @@ -0,0 +1,78 @@ +package b.i.e.q; + +import b.i.e.a; +import b.i.e.d; +import com.google.zxing.NotFoundException; +import com.google.zxing.ReaderException; +import com.google.zxing.Result; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Map; +import java.util.Objects; +/* compiled from: MultiFormatUPCEANReader */ +public final class j extends k { + public final p[] a; + + public j(Map map) { + Collection collection = map == null ? null : (Collection) map.get(d.POSSIBLE_FORMATS); + ArrayList arrayList = new ArrayList(); + if (collection != null) { + if (collection.contains(a.EAN_13)) { + arrayList.add(new e()); + } else if (collection.contains(a.UPC_A)) { + arrayList.add(new l()); + } + if (collection.contains(a.EAN_8)) { + arrayList.add(new f()); + } + if (collection.contains(a.UPC_E)) { + arrayList.add(new q()); + } + } + if (arrayList.isEmpty()) { + arrayList.add(new e()); + arrayList.add(new f()); + arrayList.add(new q()); + } + this.a = (p[]) arrayList.toArray(new p[arrayList.size()]); + } + + @Override // b.i.e.q.k + public Result b(int i, b.i.e.n.a aVar, Map map) throws NotFoundException { + p[] pVarArr; + boolean z2; + a aVar2 = a.UPC_A; + int[] m = p.m(aVar); + for (p pVar : this.a) { + try { + Result k = pVar.k(i, aVar, m, map); + boolean z3 = k.d == a.EAN_13 && k.a.charAt(0) == '0'; + Collection collection = map == null ? null : (Collection) map.get(d.POSSIBLE_FORMATS); + if (collection != null) { + if (!collection.contains(aVar2)) { + z2 = false; + if (z3 || !z2) { + return k; + } + Result result = new Result(k.a.substring(1), k.f3099b, k.c, aVar2); + result.a(k.e); + return result; + } + } + z2 = true; + if (z3) { + } + return k; + } catch (ReaderException unused) { + } + } + throw NotFoundException.l; + } + + @Override // b.i.e.q.k, b.i.e.i + public void reset() { + for (p pVar : this.a) { + Objects.requireNonNull(pVar); + } + } +} diff --git a/app/src/main/java/b/i/e/q/k.java b/app/src/main/java/b/i/e/q/k.java new file mode 100644 index 0000000000..aa7254811d --- /dev/null +++ b/app/src/main/java/b/i/e/q/k.java @@ -0,0 +1,235 @@ +package b.i.e.q; + +import b.i.e.c; +import b.i.e.d; +import b.i.e.f; +import b.i.e.i; +import b.i.e.j; +import b.i.e.n.a; +import b.i.e.n.h; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.ReaderException; +import com.google.zxing.Result; +import java.util.Arrays; +import java.util.EnumMap; +import java.util.Map; +import java.util.Objects; +/* compiled from: OneDReader */ +public abstract class k implements i { + public static float d(int[] iArr, int[] iArr2, float f) { + int length = iArr.length; + int i = 0; + int i2 = 0; + for (int i3 = 0; i3 < length; i3++) { + i += iArr[i3]; + i2 += iArr2[i3]; + } + if (i < i2) { + return Float.POSITIVE_INFINITY; + } + float f2 = (float) i; + float f3 = f2 / ((float) i2); + float f4 = f * f3; + float f5 = 0.0f; + for (int i4 = 0; i4 < length; i4++) { + int i5 = iArr[i4]; + float f6 = ((float) iArr2[i4]) * f3; + float f7 = (float) i5; + float f8 = f7 > f6 ? f7 - f6 : f6 - f7; + if (f8 > f4) { + return Float.POSITIVE_INFINITY; + } + f5 += f8; + } + return f5 / f2; + } + + public static void e(a aVar, int i, int[] iArr) throws NotFoundException { + int length = iArr.length; + int i2 = 0; + Arrays.fill(iArr, 0, length, 0); + int i3 = aVar.k; + if (i < i3) { + boolean z2 = !aVar.b(i); + while (i < i3) { + if (aVar.b(i) == z2) { + i2++; + if (i2 == length) { + break; + } + iArr[i2] = 1; + z2 = !z2; + } else { + iArr[i2] = iArr[i2] + 1; + } + i++; + } + if (i2 == length) { + return; + } + if (i2 != length - 1 || i != i3) { + throw NotFoundException.l; + } + return; + } + throw NotFoundException.l; + } + + public static void f(a aVar, int i, int[] iArr) throws NotFoundException { + int length = iArr.length; + boolean b2 = aVar.b(i); + while (i > 0 && length >= 0) { + i--; + if (aVar.b(i) != b2) { + length--; + b2 = !b2; + } + } + if (length < 0) { + e(aVar, i + 1, iArr); + return; + } + throw NotFoundException.l; + } + + @Override // b.i.e.i + public Result a(c cVar, Map map) throws NotFoundException, FormatException { + j jVar = j.ORIENTATION; + try { + return c(cVar, map); + } catch (NotFoundException e) { + if (!(map != null && map.containsKey(d.TRY_HARDER)) || !cVar.a.a.c()) { + throw e; + } + f d = cVar.a.a.d(); + Objects.requireNonNull((h) cVar.a); + Result c = c(new c(new h(d)), map); + Map map2 = c.e; + int i = 270; + if (map2 != null && map2.containsKey(jVar)) { + i = (((Integer) map2.get(jVar)).intValue() + 270) % 360; + } + c.b(jVar, Integer.valueOf(i)); + b.i.e.k[] kVarArr = c.c; + if (kVarArr != null) { + int i2 = d.f1808b; + for (int i3 = 0; i3 < kVarArr.length; i3++) { + kVarArr[i3] = new b.i.e.k((((float) i2) - kVarArr[i3].f1811b) - 1.0f, kVarArr[i3].a); + } + } + return c; + } + } + + public abstract Result b(int i, a aVar, Map map) throws NotFoundException, ChecksumException, FormatException; + + /* JADX WARNING: Removed duplicated region for block: B:39:0x007d A[Catch:{ ReaderException -> 0x00ba }] */ + /* JADX WARNING: Removed duplicated region for block: B:69:0x00b9 A[SYNTHETIC] */ + public final Result c(c cVar, Map map) throws NotFoundException { + k kVar; + int i; + Map map2; + c cVar2 = cVar; + EnumMap enumMap = map; + f fVar = cVar2.a.a; + int i2 = fVar.a; + int i3 = fVar.f1808b; + a aVar = new a(i2); + int i4 = 1; + boolean z2 = enumMap != null && enumMap.containsKey(d.TRY_HARDER); + int max = Math.max(1, i3 >> (z2 ? 8 : 5)); + int i5 = z2 ? i3 : 15; + int i6 = i3 / 2; + int i7 = 0; + while (i7 < i5) { + int i8 = i7 + 1; + int i9 = i8 / 2; + if (!((i7 & 1) == 0)) { + i9 = -i9; + } + int i10 = (i9 * max) + i6; + if (i10 < 0 || i10 >= i3) { + break; + } + try { + aVar = cVar2.b(i10, aVar); + int i11 = 0; + while (i11 < 2) { + if (i11 == i4) { + aVar.i(); + if (enumMap != null) { + d dVar = d.NEED_RESULT_POINT_CALLBACK; + if (enumMap.containsKey(dVar)) { + EnumMap enumMap2 = new EnumMap(d.class); + enumMap2.putAll(enumMap); + enumMap2.remove(dVar); + kVar = this; + enumMap = enumMap2; + Result b2 = kVar.b(i10, aVar, enumMap); + if (i11 != i4) { + b2.b(j.ORIENTATION, Integer.valueOf((int) BaseTransientBottomBar.ANIMATION_FADE_DURATION)); + b.i.e.k[] kVarArr = b2.c; + if (kVarArr != null) { + float f = (float) i2; + map2 = enumMap; + try { + i = i3; + try { + kVarArr[0] = new b.i.e.k((f - kVarArr[0].a) - 1.0f, kVarArr[0].f1811b); + try { + kVarArr[1] = new b.i.e.k((f - kVarArr[1].a) - 1.0f, kVarArr[1].f1811b); + } catch (ReaderException unused) { + continue; + } + } catch (ReaderException unused2) { + i11++; + enumMap = map2; + i3 = i; + i4 = 1; + } + } catch (ReaderException unused3) { + i = i3; + i11++; + enumMap = map2; + i3 = i; + i4 = 1; + } + } + } + return b2; + } + } + } + kVar = this; + try { + Result b2 = kVar.b(i10, aVar, enumMap); + if (i11 != i4) { + } + return b2; + } catch (ReaderException unused4) { + map2 = enumMap; + i = i3; + i11++; + enumMap = map2; + i3 = i; + i4 = 1; + } + } + continue; + } catch (NotFoundException unused5) { + } + cVar2 = cVar; + i7 = i8; + i3 = i3; + i4 = 1; + } + throw NotFoundException.l; + } + + @Override // b.i.e.i + public void reset() { + } +} diff --git a/app/src/main/java/b/i/e/q/l.java b/app/src/main/java/b/i/e/q/l.java new file mode 100644 index 0000000000..254023fb7e --- /dev/null +++ b/app/src/main/java/b/i/e/q/l.java @@ -0,0 +1,53 @@ +package b.i.e.q; + +import b.i.e.a; +import b.i.e.c; +import b.i.e.d; +import b.i.e.j; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.Map; +/* compiled from: UPCAReader */ +public final class l extends p { + public final p h = new e(); + + public static Result o(Result result) throws FormatException { + String str = result.a; + if (str.charAt(0) == '0') { + Result result2 = new Result(str.substring(1), null, result.c, a.UPC_A); + Map map = result.e; + if (map != null) { + result2.a(map); + } + return result2; + } + throw FormatException.a(); + } + + @Override // b.i.e.q.k, b.i.e.i + public Result a(c cVar, Map map) throws NotFoundException, FormatException { + return o(this.h.a(cVar, map)); + } + + @Override // b.i.e.q.p, b.i.e.q.k + public Result b(int i, b.i.e.n.a aVar, Map map) throws NotFoundException, FormatException, ChecksumException { + return o(this.h.b(i, aVar, map)); + } + + @Override // b.i.e.q.p + public int j(b.i.e.n.a aVar, int[] iArr, StringBuilder sb) throws NotFoundException { + return this.h.j(aVar, iArr, sb); + } + + @Override // b.i.e.q.p + public Result k(int i, b.i.e.n.a aVar, int[] iArr, Map map) throws NotFoundException, FormatException, ChecksumException { + return o(this.h.k(i, aVar, iArr, map)); + } + + @Override // b.i.e.q.p + public a n() { + return a.UPC_A; + } +} diff --git a/app/src/main/java/b/i/e/q/m.java b/app/src/main/java/b/i/e/q/m.java new file mode 100644 index 0000000000..c989ad7cf7 --- /dev/null +++ b/app/src/main/java/b/i/e/q/m.java @@ -0,0 +1,8 @@ +package b.i.e.q; +/* compiled from: UPCEANExtension2Support */ +public final class m { + public final int[] a = new int[4]; + + /* renamed from: b reason: collision with root package name */ + public final StringBuilder f1843b = new StringBuilder(); +} diff --git a/app/src/main/java/b/i/e/q/n.java b/app/src/main/java/b/i/e/q/n.java new file mode 100644 index 0000000000..d62beb94c3 --- /dev/null +++ b/app/src/main/java/b/i/e/q/n.java @@ -0,0 +1,135 @@ +package b.i.e.q; + +import b.i.e.j; +import b.i.e.k; +import b.i.e.n.a; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.EnumMap; +/* compiled from: UPCEANExtension5Support */ +public final class n { + public static final int[] a = {24, 20, 18, 17, 12, 6, 3, 10, 9, 5}; + + /* renamed from: b reason: collision with root package name */ + public final int[] f1844b = new int[4]; + public final StringBuilder c = new StringBuilder(); + + /* JADX WARNING: Removed duplicated region for block: B:60:0x0121 */ + /* JADX WARNING: Removed duplicated region for block: B:63:0x0153 */ + public Result a(int i, a aVar, int[] iArr) throws NotFoundException { + EnumMap enumMap; + String str; + String str2; + StringBuilder sb = this.c; + sb.setLength(0); + int[] iArr2 = this.f1844b; + iArr2[0] = 0; + iArr2[1] = 0; + iArr2[2] = 0; + iArr2[3] = 0; + int i2 = aVar.k; + int i3 = iArr[1]; + int i4 = 0; + for (int i5 = 0; i5 < 5 && i3 < i2; i5++) { + int h = p.h(aVar, iArr2, i3, p.d); + sb.append((char) ((h % 10) + 48)); + for (int i6 : iArr2) { + i3 += i6; + } + if (h >= 10) { + i4 |= 1 << (4 - i5); + } + if (i5 != 4) { + i3 = aVar.g(aVar.f(i3)); + } + } + if (sb.length() == 5) { + for (int i7 = 0; i7 < 10; i7++) { + if (i4 == a[i7]) { + String sb2 = sb.toString(); + int length = sb2.length(); + int i8 = 0; + for (int i9 = length - 2; i9 >= 0; i9 -= 2) { + i8 += sb2.charAt(i9) - '0'; + } + int i10 = i8 * 3; + char c = 65535; + for (int i11 = length - 1; i11 >= 0; i11 -= 2) { + i10 += sb2.charAt(i11) - '0'; + } + if ((i10 * 3) % 10 == i7) { + String sb3 = sb.toString(); + if (sb3.length() == 5) { + char charAt = sb3.charAt(0); + if (charAt == '0') { + str2 = "£"; + } else if (charAt != '5') { + if (charAt == '9') { + switch (sb3.hashCode()) { + case 54118329: + if (sb3.equals("90000")) { + c = 0; + break; + } + break; + case 54395376: + if (sb3.equals("99990")) { + c = 1; + break; + } + break; + case 54395377: + if (sb3.equals("99991")) { + c = 2; + break; + } + break; + } + switch (c) { + case 0: + str = null; + break; + case 1: + str = "Used"; + break; + case 2: + str = "0.00"; + break; + } + if (str != null) { + enumMap = new EnumMap(j.class); + enumMap.put((EnumMap) j.SUGGESTED_PRICE, (j) str); + float f = (float) i; + Result result = new Result(sb3, null, new k[]{new k(((float) (iArr[0] + iArr[1])) / 2.0f, f), new k((float) i3, f)}, b.i.e.a.UPC_EAN_EXTENSION); + if (enumMap != null) { + result.a(enumMap); + } + return result; + } + } + str2 = ""; + } else { + str2 = "$"; + } + int parseInt = Integer.parseInt(sb3.substring(1)); + String valueOf = String.valueOf(parseInt / 100); + int i12 = parseInt % 100; + str = str2 + valueOf + '.' + (i12 < 10 ? "0".concat(String.valueOf(i12)) : String.valueOf(i12)); + if (str != null) { + } + } + enumMap = null; + float f = (float) i; + Result result = new Result(sb3, null, new k[]{new k(((float) (iArr[0] + iArr[1])) / 2.0f, f), new k((float) i3, f)}, b.i.e.a.UPC_EAN_EXTENSION); + if (enumMap != null) { + } + return result; + } + throw NotFoundException.l; + } + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } +} diff --git a/app/src/main/java/b/i/e/q/o.java b/app/src/main/java/b/i/e/q/o.java new file mode 100644 index 0000000000..45c3979242 --- /dev/null +++ b/app/src/main/java/b/i/e/q/o.java @@ -0,0 +1,70 @@ +package b.i.e.q; + +import b.i.e.j; +import b.i.e.k; +import b.i.e.n.a; +import com.google.zxing.NotFoundException; +import com.google.zxing.ReaderException; +import com.google.zxing.Result; +import java.util.EnumMap; +/* compiled from: UPCEANExtensionSupport */ +public final class o { + public static final int[] a = {1, 1, 2}; + + /* renamed from: b reason: collision with root package name */ + public final m f1845b = new m(); + public final n c = new n(); + + public Result a(int i, a aVar, int i2) throws NotFoundException { + EnumMap enumMap; + int[] iArr = a; + int[] l = p.l(aVar, i2, false, iArr, new int[iArr.length]); + try { + return this.c.a(i, aVar, l); + } catch (ReaderException unused) { + m mVar = this.f1845b; + StringBuilder sb = mVar.f1843b; + sb.setLength(0); + int[] iArr2 = mVar.a; + iArr2[0] = 0; + iArr2[1] = 0; + iArr2[2] = 0; + iArr2[3] = 0; + int i3 = aVar.k; + int i4 = l[1]; + int i5 = 0; + for (int i6 = 0; i6 < 2 && i4 < i3; i6++) { + int h = p.h(aVar, iArr2, i4, p.d); + sb.append((char) ((h % 10) + 48)); + for (int i7 : iArr2) { + i4 += i7; + } + if (h >= 10) { + i5 |= 1 << (1 - i6); + } + if (i6 != 1) { + i4 = aVar.g(aVar.f(i4)); + } + } + if (sb.length() != 2) { + throw NotFoundException.l; + } else if (Integer.parseInt(sb.toString()) % 4 == i5) { + String sb2 = sb.toString(); + if (sb2.length() != 2) { + enumMap = null; + } else { + enumMap = new EnumMap(j.class); + enumMap.put((EnumMap) j.ISSUE_NUMBER, (j) Integer.valueOf(sb2)); + } + float f = (float) i; + Result result = new Result(sb2, null, new k[]{new k(((float) (l[0] + l[1])) / 2.0f, f), new k((float) i4, f)}, b.i.e.a.UPC_EAN_EXTENSION); + if (enumMap != null) { + result.a(enumMap); + } + return result; + } else { + throw NotFoundException.l; + } + } + } +} diff --git a/app/src/main/java/b/i/e/q/p.java b/app/src/main/java/b/i/e/q/p.java new file mode 100644 index 0000000000..a1e1dbeeb0 --- /dev/null +++ b/app/src/main/java/b/i/e/q/p.java @@ -0,0 +1,259 @@ +package b.i.e.q; + +import b.i.e.d; +import b.i.e.j; +import b.i.e.k; +import b.i.e.l; +import b.i.e.n.a; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.ReaderException; +import com.google.zxing.Result; +import java.util.Arrays; +import java.util.Map; +/* compiled from: UPCEANReader */ +public abstract class p extends k { + public static final int[] a = {1, 1, 1}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1846b = {1, 1, 1, 1, 1}; + public static final int[][] c; + public static final int[][] d; + public final StringBuilder e = new StringBuilder(20); + public final o f = new o(); + public final g g = new g(); + + static { + int[][] iArr = {new int[]{3, 2, 1, 1}, new int[]{2, 2, 2, 1}, new int[]{2, 1, 2, 2}, new int[]{1, 4, 1, 1}, new int[]{1, 1, 3, 2}, new int[]{1, 2, 3, 1}, new int[]{1, 1, 1, 4}, new int[]{1, 3, 1, 2}, new int[]{1, 2, 1, 3}, new int[]{3, 1, 1, 2}}; + c = iArr; + int[][] iArr2 = new int[20][]; + d = iArr2; + System.arraycopy(iArr, 0, iArr2, 0, 10); + for (int i = 10; i < 20; i++) { + int[] iArr3 = c[i - 10]; + int[] iArr4 = new int[iArr3.length]; + for (int i2 = 0; i2 < iArr3.length; i2++) { + iArr4[i2] = iArr3[(iArr3.length - i2) - 1]; + } + d[i] = iArr4; + } + } + + public static int h(a aVar, int[] iArr, int i, int[][] iArr2) throws NotFoundException { + k.e(aVar, i, iArr); + int length = iArr2.length; + float f = 0.48f; + int i2 = -1; + for (int i3 = 0; i3 < length; i3++) { + float d2 = k.d(iArr, iArr2[i3], 0.7f); + if (d2 < f) { + i2 = i3; + f = d2; + } + } + if (i2 >= 0) { + return i2; + } + throw NotFoundException.l; + } + + public static int[] l(a aVar, int i, boolean z2, int[] iArr, int[] iArr2) throws NotFoundException { + int i2 = aVar.k; + int g = z2 ? aVar.g(i) : aVar.f(i); + int length = iArr.length; + boolean z3 = z2; + int i3 = 0; + int i4 = g; + while (g < i2) { + if (aVar.b(g) != z3) { + iArr2[i3] = iArr2[i3] + 1; + } else { + if (i3 != length - 1) { + i3++; + } else if (k.d(iArr2, iArr, 0.7f) < 0.48f) { + return new int[]{i4, g}; + } else { + i4 += iArr2[0] + iArr2[1]; + int i5 = i3 - 1; + System.arraycopy(iArr2, 2, iArr2, 0, i5); + iArr2[i5] = 0; + iArr2[i3] = 0; + i3 = i5; + } + iArr2[i3] = 1; + z3 = !z3; + } + g++; + } + throw NotFoundException.l; + } + + public static int[] m(a aVar) throws NotFoundException { + int[] iArr = new int[a.length]; + int[] iArr2 = null; + boolean z2 = false; + int i = 0; + while (!z2) { + int[] iArr3 = a; + Arrays.fill(iArr, 0, iArr3.length, 0); + iArr2 = l(aVar, i, false, iArr3, iArr); + int i2 = iArr2[0]; + int i3 = iArr2[1]; + int i4 = i2 - (i3 - i2); + if (i4 >= 0) { + z2 = aVar.h(i4, i2, false); + } + i = i3; + } + return iArr2; + } + + @Override // b.i.e.q.k + public Result b(int i, a aVar, Map map) throws NotFoundException, ChecksumException, FormatException { + return k(i, aVar, m(aVar), map); + } + + public boolean g(String str) throws FormatException { + int length = str.length(); + if (length == 0) { + return false; + } + int i = length - 1; + int digit = Character.digit(str.charAt(i), 10); + CharSequence subSequence = str.subSequence(0, i); + int length2 = subSequence.length(); + int i2 = 0; + for (int i3 = length2 - 1; i3 >= 0; i3 -= 2) { + int charAt = subSequence.charAt(i3) - '0'; + if (charAt < 0 || charAt > 9) { + throw FormatException.a(); + } + i2 += charAt; + } + int i4 = i2 * 3; + while (true) { + length2 -= 2; + if (length2 < 0) { + return (1000 - i4) % 10 == digit; + } + int charAt2 = subSequence.charAt(length2) - '0'; + if (charAt2 < 0 || charAt2 > 9) { + break; + } + i4 += charAt2; + } + throw FormatException.a(); + } + + public int[] i(a aVar, int i) throws NotFoundException { + int[] iArr = a; + return l(aVar, i, false, iArr, new int[iArr.length]); + } + + public abstract int j(a aVar, int[] iArr, StringBuilder sb) throws NotFoundException; + + public Result k(int i, a aVar, int[] iArr, Map map) throws NotFoundException, ChecksumException, FormatException { + int i2; + boolean z2; + String str = null; + l lVar = map == null ? null : (l) map.get(d.NEED_RESULT_POINT_CALLBACK); + if (lVar != null) { + lVar.a(new k(((float) (iArr[0] + iArr[1])) / 2.0f, (float) i)); + } + StringBuilder sb = this.e; + sb.setLength(0); + int j = j(aVar, iArr, sb); + if (lVar != null) { + lVar.a(new k((float) j, (float) i)); + } + int[] i3 = i(aVar, j); + if (lVar != null) { + lVar.a(new k(((float) (i3[0] + i3[1])) / 2.0f, (float) i)); + } + int i4 = i3[1]; + int i5 = (i4 - i3[0]) + i4; + if (i5 >= aVar.k || !aVar.h(i4, i5, false)) { + throw NotFoundException.l; + } + String sb2 = sb.toString(); + if (sb2.length() < 8) { + throw FormatException.a(); + } else if (g(sb2)) { + b.i.e.a n = n(); + float f = (float) i; + Result result = new Result(sb2, null, new k[]{new k(((float) (iArr[1] + iArr[0])) / 2.0f, f), new k(((float) (i3[1] + i3[0])) / 2.0f, f)}, n); + try { + Result a2 = this.f.a(i, aVar, i3[1]); + result.b(j.UPC_EAN_EXTENSION, a2.a); + result.a(a2.e); + k[] kVarArr = a2.c; + k[] kVarArr2 = result.c; + if (kVarArr2 == null) { + result.c = kVarArr; + } else if (kVarArr != null && kVarArr.length > 0) { + k[] kVarArr3 = new k[(kVarArr2.length + kVarArr.length)]; + System.arraycopy(kVarArr2, 0, kVarArr3, 0, kVarArr2.length); + System.arraycopy(kVarArr, 0, kVarArr3, kVarArr2.length, kVarArr.length); + result.c = kVarArr3; + } + i2 = a2.a.length(); + } catch (ReaderException unused) { + i2 = 0; + } + int[] iArr2 = map == null ? null : (int[]) map.get(d.ALLOWED_EAN_EXTENSIONS); + if (iArr2 != null) { + int length = iArr2.length; + int i6 = 0; + while (true) { + if (i6 >= length) { + z2 = false; + break; + } else if (i2 == iArr2[i6]) { + z2 = true; + break; + } else { + i6++; + } + } + if (!z2) { + throw NotFoundException.l; + } + } + if (n == b.i.e.a.EAN_13 || n == b.i.e.a.UPC_A) { + g gVar = this.g; + gVar.b(); + int parseInt = Integer.parseInt(sb2.substring(0, 3)); + int size = gVar.a.size(); + int i7 = 0; + while (true) { + if (i7 < size) { + int[] iArr3 = gVar.a.get(i7); + int i8 = iArr3[0]; + if (parseInt < i8) { + break; + } + if (iArr3.length != 1) { + i8 = iArr3[1]; + } + if (parseInt <= i8) { + str = gVar.f1841b.get(i7); + break; + } + i7++; + } else { + break; + } + } + if (str != null) { + result.b(j.POSSIBLE_COUNTRY, str); + } + } + return result; + } else { + throw ChecksumException.a(); + } + } + + public abstract b.i.e.a n(); +} diff --git a/app/src/main/java/b/i/e/q/q.java b/app/src/main/java/b/i/e/q/q.java new file mode 100644 index 0000000000..83c381de38 --- /dev/null +++ b/app/src/main/java/b/i/e/q/q.java @@ -0,0 +1,92 @@ +package b.i.e.q; + +import b.i.e.n.a; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +/* compiled from: UPCEReader */ +public final class q extends p { + public static final int[] h = {1, 1, 1, 1, 1, 1}; + public static final int[][] i = {new int[]{56, 52, 50, 49, 44, 38, 35, 42, 41, 37}, new int[]{7, 11, 13, 14, 19, 25, 28, 21, 22, 26}}; + public final int[] j = new int[4]; + + @Override // b.i.e.q.p + public boolean g(String str) throws FormatException { + char[] cArr = new char[6]; + str.getChars(1, 7, cArr, 0); + StringBuilder sb = new StringBuilder(12); + sb.append(str.charAt(0)); + char c = cArr[5]; + switch (c) { + case '0': + case '1': + case '2': + sb.append(cArr, 0, 2); + sb.append(c); + sb.append("0000"); + sb.append(cArr, 2, 3); + break; + case '3': + sb.append(cArr, 0, 3); + sb.append("00000"); + sb.append(cArr, 3, 2); + break; + case '4': + sb.append(cArr, 0, 4); + sb.append("00000"); + sb.append(cArr[4]); + break; + default: + sb.append(cArr, 0, 5); + sb.append("0000"); + sb.append(c); + break; + } + if (str.length() >= 8) { + sb.append(str.charAt(7)); + } + return super.g(sb.toString()); + } + + @Override // b.i.e.q.p + public int[] i(a aVar, int i2) throws NotFoundException { + int[] iArr = h; + return p.l(aVar, i2, true, iArr, new int[iArr.length]); + } + + @Override // b.i.e.q.p + public int j(a aVar, int[] iArr, StringBuilder sb) throws NotFoundException { + int[] iArr2 = this.j; + iArr2[0] = 0; + iArr2[1] = 0; + iArr2[2] = 0; + iArr2[3] = 0; + int i2 = aVar.k; + int i3 = iArr[1]; + int i4 = 0; + for (int i5 = 0; i5 < 6 && i3 < i2; i5++) { + int h2 = p.h(aVar, iArr2, i3, p.d); + sb.append((char) ((h2 % 10) + 48)); + for (int i6 : iArr2) { + i3 += i6; + } + if (h2 >= 10) { + i4 |= 1 << (5 - i5); + } + } + for (int i7 = 0; i7 <= 1; i7++) { + for (int i8 = 0; i8 < 10; i8++) { + if (i4 == i[i7][i8]) { + sb.insert(0, (char) (i7 + 48)); + sb.append((char) (i8 + 48)); + return i3; + } + } + } + throw NotFoundException.l; + } + + @Override // b.i.e.q.p + public b.i.e.a n() { + return b.i.e.a.UPC_E; + } +} diff --git a/app/src/main/java/b/i/e/q/r/a.java b/app/src/main/java/b/i/e/q/r/a.java new file mode 100644 index 0000000000..e2fd0257a7 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/a.java @@ -0,0 +1,78 @@ +package b.i.e.q.r; + +import b.i.e.q.k; +import com.google.zxing.NotFoundException; +/* compiled from: AbstractRSSReader */ +public abstract class a extends k { + public final int[] a = new int[4]; + + /* renamed from: b reason: collision with root package name */ + public final int[] f1847b; + public final float[] c; + public final float[] d; + public final int[] e; + public final int[] f; + + public a() { + int[] iArr = new int[8]; + this.f1847b = iArr; + this.c = new float[4]; + this.d = new float[4]; + this.e = new int[(iArr.length / 2)]; + this.f = new int[(iArr.length / 2)]; + } + + public static void g(int[] iArr, float[] fArr) { + int i = 0; + float f = fArr[0]; + for (int i2 = 1; i2 < iArr.length; i2++) { + if (fArr[i2] < f) { + f = fArr[i2]; + i = i2; + } + } + iArr[i] = iArr[i] - 1; + } + + public static void h(int[] iArr, float[] fArr) { + int i = 0; + float f = fArr[0]; + for (int i2 = 1; i2 < iArr.length; i2++) { + if (fArr[i2] > f) { + f = fArr[i2]; + i = i2; + } + } + iArr[i] = iArr[i] + 1; + } + + public static boolean i(int[] iArr) { + int i = iArr[0] + iArr[1]; + float f = ((float) i) / ((float) ((iArr[2] + i) + iArr[3])); + if (f >= 0.7916667f && f <= 0.89285713f) { + int i2 = Integer.MAX_VALUE; + int i3 = Integer.MIN_VALUE; + for (int i4 : iArr) { + if (i4 > i3) { + i3 = i4; + } + if (i4 < i2) { + i2 = i4; + } + } + if (i3 < i2 * 10) { + return true; + } + } + return false; + } + + public static int j(int[] iArr, int[][] iArr2) throws NotFoundException { + for (int i = 0; i < iArr2.length; i++) { + if (k.d(iArr, iArr2[i], 0.45f) < 0.2f) { + return i; + } + } + throw NotFoundException.l; + } +} diff --git a/app/src/main/java/b/i/e/q/r/b.java b/app/src/main/java/b/i/e/q/r/b.java new file mode 100644 index 0000000000..436e947c0b --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/b.java @@ -0,0 +1,34 @@ +package b.i.e.q.r; + +import b.d.b.a.a; +/* compiled from: DataCharacter */ +public class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1848b; + + public b(int i, int i2) { + this.a = i; + this.f1848b = i2; + } + + public final boolean equals(Object obj) { + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.a == bVar.a && this.f1848b == bVar.f1848b; + } + + public final int hashCode() { + return this.a ^ this.f1848b; + } + + public final String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(this.a); + sb.append("("); + return a.z(sb, this.f1848b, ')'); + } +} diff --git a/app/src/main/java/b/i/e/q/r/c.java b/app/src/main/java/b/i/e/q/r/c.java new file mode 100644 index 0000000000..cd2583822a --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/c.java @@ -0,0 +1,26 @@ +package b.i.e.q.r; + +import b.i.e.k; +/* compiled from: FinderPattern */ +public final class c { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f1849b; + public final k[] c; + + public c(int i, int[] iArr, int i2, int i3, int i4) { + this.a = i; + this.f1849b = iArr; + float f = (float) i4; + this.c = new k[]{new k((float) i2, f), new k((float) i3, f)}; + } + + public boolean equals(Object obj) { + return (obj instanceof c) && this.a == ((c) obj).a; + } + + public int hashCode() { + return this.a; + } +} diff --git a/app/src/main/java/b/i/e/q/r/d.java b/app/src/main/java/b/i/e/q/r/d.java new file mode 100644 index 0000000000..8c55e6dfe2 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/d.java @@ -0,0 +1,11 @@ +package b.i.e.q.r; +/* compiled from: Pair */ +public final class d extends b { + public final c c; + public int d; + + public d(int i, int i2, c cVar) { + super(i, i2); + this.c = cVar; + } +} diff --git a/app/src/main/java/b/i/e/q/r/e.java b/app/src/main/java/b/i/e/q/r/e.java new file mode 100644 index 0000000000..32db99957a --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/e.java @@ -0,0 +1,408 @@ +package b.i.e.q.r; + +import b.i.a.f.e.o.f; +import b.i.e.d; +import b.i.e.k; +import b.i.e.l; +import b.i.e.n.a; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +/* compiled from: RSS14Reader */ +public final class e extends a { + public static final int[] g = {1, 10, 34, 70, 126}; + public static final int[] h = {4, 20, 48, 81}; + public static final int[] i = {0, 161, 961, 2015, 2715}; + public static final int[] j = {0, 336, 1036, 1516}; + public static final int[] k = {8, 6, 4, 3, 1}; + public static final int[] l = {2, 4, 6, 8}; + public static final int[][] m = {new int[]{3, 8, 2, 1}, new int[]{3, 5, 5, 1}, new int[]{3, 3, 7, 1}, new int[]{3, 1, 9, 1}, new int[]{2, 7, 4, 1}, new int[]{2, 5, 6, 1}, new int[]{2, 3, 8, 1}, new int[]{1, 5, 7, 1}, new int[]{1, 3, 9, 1}}; + public final List n = new ArrayList(); + public final List o = new ArrayList(); + + public static void k(Collection collection, d dVar) { + if (dVar != null) { + boolean z2 = false; + Iterator it = collection.iterator(); + while (true) { + if (!it.hasNext()) { + break; + } + d next = it.next(); + if (next.a == dVar.a) { + next.d++; + z2 = true; + break; + } + } + if (!z2) { + collection.add(dVar); + } + } + } + + @Override // b.i.e.q.k + public Result b(int i2, a aVar, Map map) throws NotFoundException { + k(this.n, m(aVar, false, i2, map)); + aVar.i(); + k(this.o, m(aVar, true, i2, map)); + aVar.i(); + for (d dVar : this.n) { + if (dVar.d > 1) { + for (d dVar2 : this.o) { + if (dVar2.d > 1) { + int i3 = ((dVar2.f1848b * 16) + dVar.f1848b) % 79; + int i4 = (dVar.c.a * 9) + dVar2.c.a; + if (i4 > 72) { + i4--; + } + if (i4 > 8) { + i4--; + } + if (i3 == i4) { + String valueOf = String.valueOf((((long) dVar.a) * 4537077) + ((long) dVar2.a)); + StringBuilder sb = new StringBuilder(14); + for (int length = 13 - valueOf.length(); length > 0; length--) { + sb.append('0'); + } + sb.append(valueOf); + int i5 = 0; + for (int i6 = 0; i6 < 13; i6++) { + int charAt = sb.charAt(i6) - '0'; + if ((i6 & 1) == 0) { + charAt *= 3; + } + i5 += charAt; + } + int i7 = 10 - (i5 % 10); + if (i7 == 10) { + i7 = 0; + } + sb.append(i7); + k[] kVarArr = dVar.c.c; + k[] kVarArr2 = dVar2.c.c; + return new Result(sb.toString(), null, new k[]{kVarArr[0], kVarArr[1], kVarArr2[0], kVarArr2[1]}, b.i.e.a.RSS_14); + } + } + } + continue; + } + } + throw NotFoundException.l; + } + + /* JADX WARNING: Code restructure failed: missing block: B:35:0x009c, code lost: + if (r4 < 4) goto L_0x00b4; + */ + /* JADX WARNING: Code restructure failed: missing block: B:46:0x00b2, code lost: + if (r4 < 4) goto L_0x00b4; + */ + /* JADX WARNING: Code restructure failed: missing block: B:47:0x00b4, code lost: + r14 = true; + */ + /* JADX WARNING: Code restructure failed: missing block: B:48:0x00b6, code lost: + r14 = false; + */ + /* JADX WARNING: Code restructure failed: missing block: B:49:0x00b7, code lost: + r15 = false; + */ + /* JADX WARNING: Removed duplicated region for block: B:101:0x0129 */ + /* JADX WARNING: Removed duplicated region for block: B:104:0x0136 A[LOOP:3: B:103:0x0134->B:104:0x0136, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:107:0x0147 A[LOOP:4: B:106:0x0145->B:107:0x0147, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:110:0x0157 */ + /* JADX WARNING: Removed duplicated region for block: B:119:0x0187 */ + /* JADX WARNING: Removed duplicated region for block: B:89:0x0102 */ + /* JADX WARNING: Removed duplicated region for block: B:94:0x0111 */ + /* JADX WARNING: Removed duplicated region for block: B:96:0x011a */ + public final b l(a aVar, c cVar, boolean z2) throws NotFoundException { + boolean z3; + boolean z4; + int length; + int length2; + int[] iArr = this.f1847b; + for (int i2 = 0; i2 < iArr.length; i2++) { + iArr[i2] = 0; + } + if (z2) { + b.i.e.q.k.f(aVar, cVar.f1849b[0], iArr); + } else { + b.i.e.q.k.e(aVar, cVar.f1849b[1] + 1, iArr); + int i3 = 0; + for (int length3 = iArr.length - 1; i3 < length3; length3--) { + int i4 = iArr[i3]; + iArr[i3] = iArr[length3]; + iArr[length3] = i4; + i3++; + } + } + int i5 = z2 ? 16 : 15; + float d1 = ((float) f.d1(iArr)) / ((float) i5); + int[] iArr2 = this.e; + int[] iArr3 = this.f; + float[] fArr = this.c; + float[] fArr2 = this.d; + for (int i6 = 0; i6 < iArr.length; i6++) { + float f = ((float) iArr[i6]) / d1; + int i7 = (int) (0.5f + f); + if (i7 <= 0) { + i7 = 1; + } else if (i7 > 8) { + i7 = 8; + } + int i8 = i6 / 2; + if ((i6 & 1) == 0) { + iArr2[i8] = i7; + fArr[i8] = f - ((float) i7); + } else { + iArr3[i8] = i7; + fArr2[i8] = f - ((float) i7); + } + } + int d12 = f.d1(this.e); + int d13 = f.d1(this.f); + if (z2) { + if (d12 > 12) { + z4 = false; + z3 = true; + } else { + z4 = d12 < 4; + z3 = false; + } + if (d13 <= 12) { + } + } else { + if (d12 > 11) { + z4 = false; + z3 = true; + } else { + z4 = d12 < 5; + z3 = false; + } + if (d13 <= 10) { + } + } + boolean z5 = false; + boolean z6 = true; + int i9 = (d12 + d13) - i5; + boolean z7 = (d12 & 1) == z2; + boolean z8 = (d13 & 1) == 1; + if (i9 != 1) { + if (i9 == -1) { + if (z7) { + if (!z8) { + z4 = true; + } else { + throw NotFoundException.l; + } + } else if (z8) { + z5 = true; + } else { + throw NotFoundException.l; + } + } else if (i9 != 0) { + throw NotFoundException.l; + } else if (z7) { + if (!z8) { + throw NotFoundException.l; + } else if (d12 < d13) { + z4 = true; + } else { + z5 = true; + z3 = true; + } + } else if (z8) { + throw NotFoundException.l; + } + if (z4) { + } + if (z3) { + } + if (z5) { + } + if (z6) { + } + int i10 = 0; + int i11 = 0; + while (length >= 0) { + } + int i12 = 0; + int i13 = 0; + while (length2 >= 0) { + } + int i14 = (i12 * 3) + i10; + if (z2) { + } + } else if (z7) { + if (z8) { + throw NotFoundException.l; + } + z3 = true; + if (z4) { + if (!z3) { + a.h(this.e, this.c); + } else { + throw NotFoundException.l; + } + } + if (z3) { + a.g(this.e, this.c); + } + if (z5) { + if (!z6) { + a.h(this.f, this.c); + } else { + throw NotFoundException.l; + } + } + if (z6) { + a.g(this.f, this.d); + } + int i10 = 0; + int i11 = 0; + for (length = iArr2.length - 1; length >= 0; length--) { + i10 = (i10 * 9) + iArr2[length]; + i11 += iArr2[length]; + } + int i12 = 0; + int i13 = 0; + for (length2 = iArr3.length - 1; length2 >= 0; length2--) { + i12 = (i12 * 9) + iArr3[length2]; + i13 += iArr3[length2]; + } + int i14 = (i12 * 3) + i10; + if (z2) { + if ((i11 & 1) != 0 || i11 > 12 || i11 < 4) { + throw NotFoundException.l; + } + int i15 = (12 - i11) / 2; + int i16 = k[i15]; + return new b((f.n0(iArr2, i16, false) * g[i15]) + f.n0(iArr3, 9 - i16, true) + i[i15], i14); + } else if ((i13 & 1) != 0 || i13 > 10 || i13 < 4) { + throw NotFoundException.l; + } else { + int i17 = (10 - i13) / 2; + int i18 = l[i17]; + return new b((f.n0(iArr3, 9 - i18, false) * h[i17]) + f.n0(iArr2, i18, true) + j[i17], i14); + } + } else if (!z8) { + throw NotFoundException.l; + } + z6 = true; + if (z4) { + } + if (z3) { + } + if (z5) { + } + if (z6) { + } + int i10 = 0; + int i11 = 0; + while (length >= 0) { + } + int i12 = 0; + int i13 = 0; + while (length2 >= 0) { + } + int i14 = (i12 * 3) + i10; + if (z2) { + } + } + + public final d m(a aVar, boolean z2, int i2, Map map) { + try { + int[] n = n(aVar, z2); + c o = o(aVar, i2, z2, n); + l lVar = map == null ? null : (l) map.get(d.NEED_RESULT_POINT_CALLBACK); + if (lVar != null) { + float f = ((float) (n[0] + n[1])) / 2.0f; + if (z2) { + f = ((float) (aVar.k - 1)) - f; + } + lVar.a(new k(f, (float) i2)); + } + b l2 = l(aVar, o, true); + b l3 = l(aVar, o, false); + return new d((l2.a * 1597) + l3.a, (l3.f1848b * 4) + l2.f1848b, o); + } catch (NotFoundException unused) { + return null; + } + } + + public final int[] n(a aVar, boolean z2) throws NotFoundException { + int[] iArr = this.a; + iArr[0] = 0; + iArr[1] = 0; + iArr[2] = 0; + iArr[3] = 0; + int i2 = aVar.k; + int i3 = 0; + boolean z3 = false; + while (i3 < i2) { + z3 = !aVar.b(i3); + if (z2 == z3) { + break; + } + i3++; + } + int i4 = i3; + int i5 = 0; + while (i3 < i2) { + if (aVar.b(i3) != z3) { + iArr[i5] = iArr[i5] + 1; + } else { + if (i5 != 3) { + i5++; + } else if (a.i(iArr)) { + return new int[]{i4, i3}; + } else { + i4 += iArr[0] + iArr[1]; + iArr[0] = iArr[2]; + iArr[1] = iArr[3]; + iArr[2] = 0; + iArr[3] = 0; + i5--; + } + iArr[i5] = 1; + z3 = !z3; + } + i3++; + } + throw NotFoundException.l; + } + + public final c o(a aVar, int i2, boolean z2, int[] iArr) throws NotFoundException { + int i3; + int i4; + boolean b2 = aVar.b(iArr[0]); + int i5 = iArr[0] - 1; + while (i5 >= 0 && b2 != aVar.b(i5)) { + i5--; + } + int i6 = i5 + 1; + int[] iArr2 = this.a; + System.arraycopy(iArr2, 0, iArr2, 1, iArr2.length - 1); + iArr2[0] = iArr[0] - i6; + int j2 = a.j(iArr2, m); + int i7 = iArr[1]; + if (z2) { + int i8 = aVar.k; + i3 = (i8 - 1) - i7; + i4 = (i8 - 1) - i6; + } else { + i3 = i7; + i4 = i6; + } + return new c(j2, new int[]{i6, iArr[1]}, i4, i3, i2); + } + + @Override // b.i.e.q.k, b.i.e.i + public void reset() { + this.n.clear(); + this.o.clear(); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/a.java b/app/src/main/java/b/i/e/q/r/f/a.java new file mode 100644 index 0000000000..5dc5a473ab --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/a.java @@ -0,0 +1,53 @@ +package b.i.e.q.r.f; + +import b.i.e.q.r.b; +import b.i.e.q.r.c; +/* compiled from: ExpandedPair */ +public final class a { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final b f1850b; + public final c c; + + public a(b bVar, b bVar2, c cVar, boolean z2) { + this.a = bVar; + this.f1850b = bVar2; + this.c = cVar; + } + + public static boolean a(Object obj, Object obj2) { + return obj == null ? obj2 == null : obj.equals(obj2); + } + + public static int b(Object obj) { + if (obj == null) { + return 0; + } + return obj.hashCode(); + } + + public boolean equals(Object obj) { + if (!(obj instanceof a)) { + return false; + } + a aVar = (a) obj; + return a(this.a, aVar.a) && a(this.f1850b, aVar.f1850b) && a(this.c, aVar.c); + } + + public int hashCode() { + return (b(this.a) ^ b(this.f1850b)) ^ b(this.c); + } + + public String toString() { + StringBuilder sb = new StringBuilder("[ "); + sb.append(this.a); + sb.append(" , "); + sb.append(this.f1850b); + sb.append(" : "); + c cVar = this.c; + sb.append(cVar == null ? "null" : Integer.valueOf(cVar.a)); + sb.append(" ]"); + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/b.java b/app/src/main/java/b/i/e/q/r/f/b.java new file mode 100644 index 0000000000..4fee947702 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/b.java @@ -0,0 +1,35 @@ +package b.i.e.q.r.f; + +import b.d.b.a.a; +import java.util.ArrayList; +import java.util.List; +/* compiled from: ExpandedRow */ +public final class b { + public final List a; + + /* renamed from: b reason: collision with root package name */ + public final int f1851b; + public final boolean c; + + public b(List list, int i, boolean z2) { + this.a = new ArrayList(list); + this.f1851b = i; + this.c = z2; + } + + public boolean equals(Object obj) { + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.a.equals(bVar.a) && this.c == bVar.c; + } + + public int hashCode() { + return this.a.hashCode() ^ Boolean.valueOf(this.c).hashCode(); + } + + public String toString() { + return a.J(new StringBuilder("{ "), this.a, " }"); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/c.java b/app/src/main/java/b/i/e/q/r/f/c.java new file mode 100644 index 0000000000..6540579638 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/c.java @@ -0,0 +1,717 @@ +package b.i.e.q.r.f; + +import b.i.a.f.e.o.f; +import b.i.e.q.r.a; +import b.i.e.q.r.b; +import b.i.e.q.r.f.d.d; +import b.i.e.q.r.f.d.e; +import b.i.e.q.r.f.d.g; +import b.i.e.q.r.f.d.j; +import b.i.e.q.r.f.d.k; +import b.i.e.q.r.f.d.s; +import com.discord.utilities.font.FontUtils; +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +/* compiled from: RSSExpandedReader */ +public final class c extends a { + public static final int[] g = {7, 5, 4, 3, 1}; + public static final int[] h = {4, 20, 52, 104, 204}; + public static final int[] i = {0, 348, 1388, 2948, 3988}; + public static final int[][] j = {new int[]{1, 8, 4, 1}, new int[]{3, 6, 4, 1}, new int[]{3, 4, 6, 1}, new int[]{3, 2, 8, 1}, new int[]{2, 6, 5, 1}, new int[]{2, 2, 9, 1}}; + public static final int[][] k = {new int[]{1, 3, 9, 27, 81, 32, 96, 77}, new int[]{20, 60, BaseTransientBottomBar.ANIMATION_FADE_DURATION, 118, 143, 7, 21, 63}, new int[]{189, 145, 13, 39, 117, 140, 209, 205}, new int[]{193, 157, 49, 147, 19, 57, 171, 91}, new int[]{62, 186, 136, 197, 169, 85, 44, 132}, new int[]{185, 133, 188, 142, 4, 12, 36, 108}, new int[]{113, 128, 173, 97, 80, 29, 87, 50}, new int[]{FontUtils.MAX_FONT_SCALING, 28, 84, 41, 123, 158, 52, 156}, new int[]{46, 138, 203, 187, 139, 206, 196, 166}, new int[]{76, 17, 51, 153, 37, 111, 122, 155}, new int[]{43, 129, 176, 106, 107, 110, 119, 146}, new int[]{16, 48, 144, 10, 30, 90, 59, 177}, new int[]{109, 116, 137, 200, 178, 112, 125, 164}, new int[]{70, 210, 208, 202, 184, 130, 179, 115}, new int[]{134, 191, 151, 31, 93, 68, 204, 190}, new int[]{148, 22, 66, 198, 172, 94, 71, 2}, new int[]{6, 18, 54, 162, 64, 192, 154, 40}, new int[]{120, 149, 25, 75, 14, 42, 126, 167}, new int[]{79, 26, 78, 23, 69, 207, 199, HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION}, new int[]{103, 98, 83, 38, 114, 131, 182, 124}, new int[]{161, 61, 183, 127, 170, 88, 53, 159}, new int[]{55, 165, 73, 8, 24, 72, 5, 15}, new int[]{45, 135, 194, 160, 58, 174, 100, 89}}; + public static final int[][] l = {new int[]{0, 0}, new int[]{0, 1, 1}, new int[]{0, 2, 1, 3}, new int[]{0, 4, 1, 3, 2}, new int[]{0, 4, 1, 3, 3, 5}, new int[]{0, 4, 1, 3, 4, 5, 5}, new int[]{0, 0, 1, 1, 2, 2, 3, 3}, new int[]{0, 0, 1, 1, 2, 2, 3, 4, 4}, new int[]{0, 0, 1, 1, 2, 2, 3, 4, 5, 5}, new int[]{0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 5}}; + public final List m = new ArrayList(11); + public final List n = new ArrayList(); + public final int[] o = new int[2]; + public boolean p; + + public static Result n(List list) throws NotFoundException, FormatException { + j jVar; + int size = (list.size() << 1) - 1; + if (list.get(list.size() - 1).f1850b == null) { + size--; + } + b.i.e.n.a aVar = new b.i.e.n.a(size * 12); + int i2 = list.get(0).f1850b.a; + int i3 = 0; + for (int i4 = 11; i4 >= 0; i4--) { + if (((1 << i4) & i2) != 0) { + aVar.j(i3); + } + i3++; + } + for (int i5 = 1; i5 < list.size(); i5++) { + a aVar2 = list.get(i5); + int i6 = aVar2.a.a; + for (int i7 = 11; i7 >= 0; i7--) { + if (((1 << i7) & i6) != 0) { + aVar.j(i3); + } + i3++; + } + b bVar = aVar2.f1850b; + if (bVar != null) { + int i8 = bVar.a; + for (int i9 = 11; i9 >= 0; i9--) { + if (((1 << i9) & i8) != 0) { + aVar.j(i3); + } + i3++; + } + } + } + if (aVar.b(1)) { + jVar = new g(aVar); + } else if (!aVar.b(2)) { + jVar = new k(aVar); + } else { + int d = s.d(aVar, 1, 4); + if (d == 4) { + jVar = new b.i.e.q.r.f.d.a(aVar); + } else if (d != 5) { + int d2 = s.d(aVar, 1, 5); + if (d2 == 12) { + jVar = new b.i.e.q.r.f.d.c(aVar); + } else if (d2 != 13) { + switch (s.d(aVar, 1, 7)) { + case 56: + jVar = new e(aVar, "310", "11"); + break; + case 57: + jVar = new e(aVar, "320", "11"); + break; + case 58: + jVar = new e(aVar, "310", "13"); + break; + case 59: + jVar = new e(aVar, "320", "13"); + break; + case 60: + jVar = new e(aVar, "310", "15"); + break; + case 61: + jVar = new e(aVar, "320", "15"); + break; + case 62: + jVar = new e(aVar, "310", "17"); + break; + case 63: + jVar = new e(aVar, "320", "17"); + break; + default: + throw new IllegalStateException("unknown decoder: ".concat(String.valueOf(aVar))); + } + } else { + jVar = new d(aVar); + } + } else { + jVar = new b.i.e.q.r.f.d.b(aVar); + } + } + String a = jVar.a(); + b.i.e.k[] kVarArr = list.get(0).c.c; + b.i.e.k[] kVarArr2 = list.get(list.size() - 1).c.c; + return new Result(a, null, new b.i.e.k[]{kVarArr[0], kVarArr[1], kVarArr2[0], kVarArr2[1]}, b.i.e.a.RSS_EXPANDED); + } + + public static void r(int[] iArr) { + int length = iArr.length; + for (int i2 = 0; i2 < length / 2; i2++) { + int i3 = iArr[i2]; + int i4 = (length - i2) - 1; + iArr[i2] = iArr[i4]; + iArr[i4] = i3; + } + } + + @Override // b.i.e.q.k + public Result b(int i2, b.i.e.n.a aVar, Map map) throws NotFoundException, FormatException { + this.m.clear(); + this.p = false; + try { + return n(p(i2, aVar)); + } catch (NotFoundException unused) { + this.m.clear(); + this.p = true; + return n(p(i2, aVar)); + } + } + + public final boolean k() { + a aVar = this.m.get(0); + b bVar = aVar.a; + b bVar2 = aVar.f1850b; + if (bVar2 == null) { + return false; + } + int i2 = bVar2.f1848b; + int i3 = 2; + for (int i4 = 1; i4 < this.m.size(); i4++) { + a aVar2 = this.m.get(i4); + i2 += aVar2.a.f1848b; + i3++; + b bVar3 = aVar2.f1850b; + if (bVar3 != null) { + i2 += bVar3.f1848b; + i3++; + } + } + return ((i3 + -4) * 211) + (i2 % 211) == bVar.a; + } + + public final List l(List list, int i2) throws NotFoundException { + boolean z2; + while (i2 < this.n.size()) { + b bVar = this.n.get(i2); + this.m.clear(); + for (b bVar2 : list) { + this.m.addAll(bVar2.a); + } + this.m.addAll(bVar.a); + List list2 = this.m; + int[][] iArr = l; + int length = iArr.length; + boolean z3 = false; + int i3 = 0; + while (true) { + if (i3 >= length) { + break; + } + int[] iArr2 = iArr[i3]; + if (list2.size() <= iArr2.length) { + int i4 = 0; + while (true) { + if (i4 >= list2.size()) { + z2 = true; + break; + } else if (list2.get(i4).c.a != iArr2[i4]) { + z2 = false; + break; + } else { + i4++; + } + } + if (z2) { + z3 = true; + break; + } + } + i3++; + } + if (!z3) { + i2++; + } else if (k()) { + return this.m; + } else { + ArrayList arrayList = new ArrayList(list); + arrayList.add(bVar); + try { + return l(arrayList, i2 + 1); + } catch (NotFoundException unused) { + continue; + } + } + } + throw NotFoundException.l; + } + + public final List m(boolean z2) { + List list = null; + if (this.n.size() > 25) { + this.n.clear(); + return null; + } + this.m.clear(); + if (z2) { + Collections.reverse(this.n); + } + try { + list = l(new ArrayList(), 0); + } catch (NotFoundException unused) { + } + if (z2) { + Collections.reverse(this.n); + } + return list; + } + + /* JADX WARNING: Removed duplicated region for block: B:100:0x0147 */ + /* JADX WARNING: Removed duplicated region for block: B:101:0x0149 */ + /* JADX WARNING: Removed duplicated region for block: B:104:0x0155 */ + /* JADX WARNING: Removed duplicated region for block: B:115:0x017b */ + /* JADX WARNING: Removed duplicated region for block: B:126:0x019f A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:85:0x0112 */ + /* JADX WARNING: Removed duplicated region for block: B:90:0x0121 */ + /* JADX WARNING: Removed duplicated region for block: B:92:0x012a */ + /* JADX WARNING: Removed duplicated region for block: B:97:0x0139 */ + public b o(b.i.e.n.a aVar, b.i.e.q.r.c cVar, boolean z2, boolean z3) throws NotFoundException { + boolean z4; + boolean z5; + boolean z6; + boolean z7; + int length; + int i2; + int length2; + int[] iArr = this.f1847b; + for (int i3 = 0; i3 < iArr.length; i3++) { + iArr[i3] = 0; + } + if (z3) { + b.i.e.q.k.f(aVar, cVar.f1849b[0], iArr); + } else { + b.i.e.q.k.e(aVar, cVar.f1849b[1], iArr); + int i4 = 0; + for (int length3 = iArr.length - 1; i4 < length3; length3--) { + int i5 = iArr[i4]; + iArr[i4] = iArr[length3]; + iArr[length3] = i5; + i4++; + } + } + float d1 = ((float) f.d1(iArr)) / 17.0f; + int[] iArr2 = cVar.f1849b; + float f = ((float) (iArr2[1] - iArr2[0])) / 15.0f; + if (Math.abs(d1 - f) / f <= 0.3f) { + int[] iArr3 = this.e; + int[] iArr4 = this.f; + float[] fArr = this.c; + float[] fArr2 = this.d; + for (int i6 = 0; i6 < iArr.length; i6++) { + float f2 = (((float) iArr[i6]) * 1.0f) / d1; + int i7 = (int) (0.5f + f2); + if (i7 <= 0) { + if (f2 >= 0.3f) { + i7 = 1; + } else { + throw NotFoundException.l; + } + } else if (i7 > 8) { + if (f2 <= 8.7f) { + i7 = 8; + } else { + throw NotFoundException.l; + } + } + int i8 = i6 / 2; + if ((i6 & 1) == 0) { + iArr3[i8] = i7; + fArr[i8] = f2 - ((float) i7); + } else { + iArr4[i8] = i7; + fArr2[i8] = f2 - ((float) i7); + } + } + int d12 = f.d1(this.e); + int d13 = f.d1(this.f); + if (d12 > 13) { + z5 = false; + z4 = true; + } else { + z5 = d12 < 4; + z4 = false; + } + if (d13 > 13) { + z7 = false; + z6 = true; + } else { + z7 = d13 < 4; + z6 = false; + } + int i9 = (d12 + d13) - 17; + boolean z8 = (d12 & 1) == 1; + boolean z9 = (d13 & 1) == 0; + if (i9 != 1) { + if (i9 == -1) { + if (z8) { + if (!z9) { + z5 = true; + } else { + throw NotFoundException.l; + } + } else if (z9) { + z7 = true; + } else { + throw NotFoundException.l; + } + } else if (i9 != 0) { + throw NotFoundException.l; + } else if (z8) { + if (!z9) { + throw NotFoundException.l; + } else if (d12 < d13) { + z5 = true; + } else { + z7 = true; + z4 = true; + } + } else if (z9) { + throw NotFoundException.l; + } + if (z5) { + } + if (z4) { + } + if (z7) { + } + if (z6) { + } + int i10 = (((cVar.a * 4) + (z2 ? 0 : 2)) + (!z3 ? 1 : 0)) - 1; + int i11 = 0; + i2 = 0; + while (length >= 0) { + } + int i12 = 0; + while (length2 >= 0) { + } + int i13 = i11 + i12; + if ((i2 & 1) == 0) { + } + throw NotFoundException.l; + } else if (z8) { + if (z9) { + throw NotFoundException.l; + } + z4 = true; + if (z5) { + if (!z4) { + a.h(this.e, this.c); + } else { + throw NotFoundException.l; + } + } + if (z4) { + a.g(this.e, this.c); + } + if (z7) { + if (!z6) { + a.h(this.f, this.c); + } else { + throw NotFoundException.l; + } + } + if (z6) { + a.g(this.f, this.d); + } + int i10 = (((cVar.a * 4) + (z2 ? 0 : 2)) + (!z3 ? 1 : 0)) - 1; + int i11 = 0; + i2 = 0; + for (length = iArr3.length - 1; length >= 0; length--) { + if (cVar.a != 0 || !z2 || !z3) { + i11 += iArr3[length] * k[i10][length * 2]; + } + i2 += iArr3[length]; + } + int i12 = 0; + for (length2 = iArr4.length - 1; length2 >= 0; length2--) { + if (cVar.a != 0 || !z2 || !z3) { + i12 += iArr4[length2] * k[i10][(length2 * 2) + 1]; + } + } + int i13 = i11 + i12; + if ((i2 & 1) == 0 || i2 > 13 || i2 < 4) { + throw NotFoundException.l; + } + int i14 = (13 - i2) / 2; + int i15 = g[i14]; + return new b((f.n0(iArr3, i15, true) * h[i14]) + f.n0(iArr4, 9 - i15, false) + i[i14], i13); + } else if (!z9) { + throw NotFoundException.l; + } + z6 = true; + if (z5) { + } + if (z4) { + } + if (z7) { + } + if (z6) { + } + int i10 = (((cVar.a * 4) + (z2 ? 0 : 2)) + (!z3 ? 1 : 0)) - 1; + int i11 = 0; + i2 = 0; + while (length >= 0) { + } + int i12 = 0; + while (length2 >= 0) { + } + int i13 = i11 + i12; + if ((i2 & 1) == 0) { + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + + public List p(int i2, b.i.e.n.a aVar) throws NotFoundException { + boolean z2; + boolean z3; + boolean z4; + boolean z5; + boolean z6; + boolean z7; + boolean z8 = false; + while (!z8) { + try { + List list = this.m; + list.add(q(aVar, list, i2)); + } catch (NotFoundException e) { + if (!this.m.isEmpty()) { + z8 = true; + } else { + throw e; + } + } + } + if (k()) { + return this.m; + } + boolean z9 = !this.n.isEmpty(); + int i3 = 0; + boolean z10 = false; + while (true) { + if (i3 >= this.n.size()) { + z2 = false; + break; + } + b bVar = this.n.get(i3); + if (bVar.f1851b > i2) { + z2 = bVar.a.equals(this.m); + break; + } + z10 = bVar.a.equals(this.m); + i3++; + } + if (!z2 && !z10) { + List list2 = this.m; + Iterator it = this.n.iterator(); + while (true) { + if (!it.hasNext()) { + z3 = false; + break; + } + b bVar2 = (b) it.next(); + Iterator it2 = list2.iterator(); + while (true) { + if (!it2.hasNext()) { + z6 = true; + continue; + break; + } + a aVar2 = (a) it2.next(); + Iterator it3 = bVar2.a.iterator(); + while (true) { + if (it3.hasNext()) { + if (aVar2.equals(it3.next())) { + z7 = true; + continue; + break; + } + } else { + z7 = false; + continue; + break; + } + } + if (!z7) { + z6 = false; + continue; + break; + } + } + if (z6) { + z3 = true; + break; + } + } + if (!z3) { + this.n.add(i3, new b(this.m, i2, false)); + List list3 = this.m; + Iterator it4 = this.n.iterator(); + while (it4.hasNext()) { + b next = it4.next(); + if (next.a.size() != list3.size()) { + Iterator it5 = next.a.iterator(); + while (true) { + if (!it5.hasNext()) { + z4 = true; + break; + } + a next2 = it5.next(); + Iterator it6 = list3.iterator(); + while (true) { + if (it6.hasNext()) { + if (next2.equals(it6.next())) { + z5 = true; + continue; + break; + } + } else { + z5 = false; + continue; + break; + } + } + if (!z5) { + z4 = false; + break; + } + } + if (z4) { + it4.remove(); + } + } + } + } + } + if (z9) { + List m = m(false); + if (m != null) { + return m; + } + List m2 = m(true); + if (m2 != null) { + return m2; + } + } + throw NotFoundException.l; + } + + public a q(b.i.e.n.a aVar, List list, int i2) throws NotFoundException { + int i3; + int i4; + int i5; + int i6; + b.i.e.q.r.c cVar; + int i7 = 2; + int i8 = 0; + boolean z2 = list.size() % 2 == 0; + if (this.p) { + z2 = !z2; + } + int i9 = -1; + boolean z3 = true; + while (true) { + int[] iArr = this.a; + iArr[i8] = i8; + iArr[1] = i8; + iArr[i7] = i8; + iArr[3] = i8; + int i10 = aVar.k; + int i11 = i9 >= 0 ? i9 : list.isEmpty() ? 0 : list.get(list.size() - 1).c.f1849b[1]; + boolean z4 = list.size() % i7 != 0; + if (this.p) { + z4 = !z4; + } + boolean z5 = false; + while (i11 < i10) { + z5 = !aVar.b(i11); + if (!z5) { + break; + } + i11++; + } + boolean z6 = z5; + int i12 = 0; + int i13 = i11; + while (i11 < i10) { + if (aVar.b(i11) != z6) { + iArr[i12] = iArr[i12] + 1; + } else { + if (i12 == 3) { + if (z4) { + r(iArr); + } + if (a.i(iArr)) { + int[] iArr2 = this.o; + iArr2[0] = i13; + iArr2[1] = i11; + if (z2) { + int i14 = iArr2[0] - 1; + while (i14 >= 0 && !aVar.b(i14)) { + i14--; + } + int i15 = i14 + 1; + int[] iArr3 = this.o; + i6 = 0; + i5 = iArr3[0] - i15; + i4 = i15; + i3 = iArr3[1]; + } else { + i6 = 0; + int i16 = iArr2[0]; + int g2 = aVar.g(iArr2[1] + 1); + i5 = g2 - this.o[1]; + i3 = g2; + i4 = i16; + } + int[] iArr4 = this.a; + System.arraycopy(iArr4, i6, iArr4, 1, iArr4.length - 1); + iArr4[i6] = i5; + b bVar = null; + try { + int j2 = a.j(iArr4, j); + int[] iArr5 = new int[2]; + iArr5[i6] = i4; + iArr5[1] = i3; + cVar = new b.i.e.q.r.c(j2, iArr5, i4, i3, i2); + } catch (NotFoundException unused) { + cVar = null; + } + if (cVar == null) { + int i17 = this.o[0]; + i9 = aVar.b(i17) ? aVar.f(aVar.g(i17)) : aVar.g(aVar.f(i17)); + } else { + z3 = false; + } + if (!z3) { + b o = o(aVar, cVar, z2, true); + if (!list.isEmpty()) { + if (list.get(list.size() - 1).f1850b == null) { + throw NotFoundException.l; + } + } + try { + bVar = o(aVar, cVar, z2, false); + } catch (NotFoundException unused2) { + } + return new a(o, bVar, cVar, true); + } + i7 = 2; + i8 = 0; + } else { + if (z4) { + r(iArr); + } + i13 = iArr[0] + iArr[1] + i13; + iArr[0] = iArr[2]; + iArr[1] = iArr[3]; + iArr[2] = 0; + iArr[3] = 0; + i12--; + } + } else { + i12++; + } + iArr[i12] = 1; + z6 = !z6; + } + i11++; + } + throw NotFoundException.l; + } + } + + @Override // b.i.e.q.k, b.i.e.i + public void reset() { + this.m.clear(); + this.n.clear(); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/a.java b/app/src/main/java/b/i/e/q/r/f/d/a.java new file mode 100644 index 0000000000..ff6b2ad7a2 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/a.java @@ -0,0 +1,17 @@ +package b.i.e.q.r.f.d; +/* compiled from: AI013103decoder */ +public final class a extends f { + public a(b.i.e.n.a aVar) { + super(aVar); + } + + @Override // b.i.e.q.r.f.d.i + public void d(StringBuilder sb, int i) { + sb.append("(3103)"); + } + + @Override // b.i.e.q.r.f.d.i + public int e(int i) { + return i; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/b.java b/app/src/main/java/b/i/e/q/r/f/d/b.java new file mode 100644 index 0000000000..ff38182be7 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/b.java @@ -0,0 +1,23 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +/* compiled from: AI01320xDecoder */ +public final class b extends f { + public b(a aVar) { + super(aVar); + } + + @Override // b.i.e.q.r.f.d.i + public void d(StringBuilder sb, int i) { + if (i < 10000) { + sb.append("(3202)"); + } else { + sb.append("(3203)"); + } + } + + @Override // b.i.e.q.r.f.d.i + public int e(int i) { + return i < 10000 ? i : i - 10000; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/c.java b/app/src/main/java/b/i/e/q/r/f/d/c.java new file mode 100644 index 0000000000..abda24b7cb --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/c.java @@ -0,0 +1,26 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +/* compiled from: AI01392xDecoder */ +public final class c extends h { + public c(a aVar) { + super(aVar); + } + + @Override // b.i.e.q.r.f.d.j + public String a() throws NotFoundException, FormatException { + if (this.a.k >= 48) { + StringBuilder sb = new StringBuilder(); + b(sb, 8); + int c = this.f1852b.c(48, 2); + sb.append("(392"); + sb.append(c); + sb.append(')'); + sb.append(this.f1852b.b(50, null).f1856b); + return sb.toString(); + } + throw NotFoundException.l; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/d.java b/app/src/main/java/b/i/e/q/r/f/d/d.java new file mode 100644 index 0000000000..45a187331c --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/d.java @@ -0,0 +1,34 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +/* compiled from: AI01393xDecoder */ +public final class d extends h { + public d(a aVar) { + super(aVar); + } + + @Override // b.i.e.q.r.f.d.j + public String a() throws NotFoundException, FormatException { + if (this.a.k >= 48) { + StringBuilder sb = new StringBuilder(); + b(sb, 8); + int c = this.f1852b.c(48, 2); + sb.append("(393"); + sb.append(c); + sb.append(')'); + int c2 = this.f1852b.c(50, 10); + if (c2 / 100 == 0) { + sb.append('0'); + } + if (c2 / 10 == 0) { + sb.append('0'); + } + sb.append(c2); + sb.append(this.f1852b.b(60, null).f1856b); + return sb.toString(); + } + throw NotFoundException.l; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/e.java b/app/src/main/java/b/i/e/q/r/f/d/e.java new file mode 100644 index 0000000000..45cd3a3c14 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/e.java @@ -0,0 +1,61 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +import com.google.zxing.NotFoundException; +/* compiled from: AI013x0x1xDecoder */ +public final class e extends i { + public final String c; + public final String d; + + public e(a aVar, String str, String str2) { + super(aVar); + this.c = str2; + this.d = str; + } + + @Override // b.i.e.q.r.f.d.j + public String a() throws NotFoundException { + if (this.a.k == 84) { + StringBuilder sb = new StringBuilder(); + b(sb, 8); + f(sb, 48, 20); + int d = s.d(this.f1852b.a, 68, 16); + if (d != 38400) { + sb.append('('); + sb.append(this.c); + sb.append(')'); + int i = d % 32; + int i2 = d / 32; + int i3 = (i2 % 12) + 1; + int i4 = i2 / 12; + if (i4 / 10 == 0) { + sb.append('0'); + } + sb.append(i4); + if (i3 / 10 == 0) { + sb.append('0'); + } + sb.append(i3); + if (i / 10 == 0) { + sb.append('0'); + } + sb.append(i); + } + return sb.toString(); + } + throw NotFoundException.l; + } + + @Override // b.i.e.q.r.f.d.i + public void d(StringBuilder sb, int i) { + sb.append('('); + sb.append(this.d); + sb.append(i / 100000); + sb.append(')'); + } + + @Override // b.i.e.q.r.f.d.i + public int e(int i) { + return i % 100000; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/f.java b/app/src/main/java/b/i/e/q/r/f/d/f.java new file mode 100644 index 0000000000..04eeef39c2 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/f.java @@ -0,0 +1,21 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +import com.google.zxing.NotFoundException; +/* compiled from: AI013x0xDecoder */ +public abstract class f extends i { + public f(a aVar) { + super(aVar); + } + + @Override // b.i.e.q.r.f.d.j + public String a() throws NotFoundException { + if (this.a.k == 60) { + StringBuilder sb = new StringBuilder(); + b(sb, 5); + f(sb, 45, 15); + return sb.toString(); + } + throw NotFoundException.l; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/g.java b/app/src/main/java/b/i/e/q/r/f/d/g.java new file mode 100644 index 0000000000..2d8e92ae34 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/g.java @@ -0,0 +1,20 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +/* compiled from: AI01AndOtherAIs */ +public final class g extends h { + public g(a aVar) { + super(aVar); + } + + @Override // b.i.e.q.r.f.d.j + public String a() throws NotFoundException, FormatException { + StringBuilder R = b.d.b.a.a.R("(01)"); + int length = R.length(); + R.append(this.f1852b.c(4, 4)); + c(R, 8, length); + return this.f1852b.a(R, 48); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/h.java b/app/src/main/java/b/i/e/q/r/f/d/h.java new file mode 100644 index 0000000000..c91804f36d --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/h.java @@ -0,0 +1,43 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +/* compiled from: AI01decoder */ +public abstract class h extends j { + public h(a aVar) { + super(aVar); + } + + public final void b(StringBuilder sb, int i) { + sb.append("(01)"); + int length = sb.length(); + sb.append('9'); + c(sb, i, length); + } + + public final void c(StringBuilder sb, int i, int i2) { + int i3 = 0; + for (int i4 = 0; i4 < 4; i4++) { + int c = this.f1852b.c((i4 * 10) + i, 10); + if (c / 100 == 0) { + sb.append('0'); + } + if (c / 10 == 0) { + sb.append('0'); + } + sb.append(c); + } + int i5 = 0; + for (int i6 = 0; i6 < 13; i6++) { + int charAt = sb.charAt(i6 + i2) - '0'; + if ((i6 & 1) == 0) { + charAt *= 3; + } + i5 += charAt; + } + int i7 = 10 - (i5 % 10); + if (i7 != 10) { + i3 = i7; + } + sb.append(i3); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/i.java b/app/src/main/java/b/i/e/q/r/f/d/i.java new file mode 100644 index 0000000000..d00c935f93 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/i.java @@ -0,0 +1,27 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +/* compiled from: AI01weightDecoder */ +public abstract class i extends h { + public i(a aVar) { + super(aVar); + } + + public abstract void d(StringBuilder sb, int i); + + public abstract int e(int i); + + public final void f(StringBuilder sb, int i, int i2) { + int d = s.d(this.f1852b.a, i, i2); + d(sb, d); + int e = e(d); + int i3 = 100000; + for (int i4 = 0; i4 < 5; i4++) { + if (e / i3 == 0) { + sb.append('0'); + } + i3 /= 10; + } + sb.append(e); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/j.java b/app/src/main/java/b/i/e/q/r/f/d/j.java new file mode 100644 index 0000000000..862bc623c0 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/j.java @@ -0,0 +1,19 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +/* compiled from: AbstractExpandedDecoder */ +public abstract class j { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final s f1852b; + + public j(a aVar) { + this.a = aVar; + this.f1852b = new s(aVar); + } + + public abstract String a() throws NotFoundException, FormatException; +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/k.java b/app/src/main/java/b/i/e/q/r/f/d/k.java new file mode 100644 index 0000000000..cb4125af06 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/k.java @@ -0,0 +1,16 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +/* compiled from: AnyAIDecoder */ +public final class k extends j { + public k(a aVar) { + super(aVar); + } + + @Override // b.i.e.q.r.f.d.j + public String a() throws NotFoundException, FormatException { + return this.f1852b.a(new StringBuilder(), 5); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/l.java b/app/src/main/java/b/i/e/q/r/f/d/l.java new file mode 100644 index 0000000000..39bdfc2f47 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/l.java @@ -0,0 +1,13 @@ +package b.i.e.q.r.f.d; +/* compiled from: BlockParsedResult */ +public final class l { + public final o a; + + /* renamed from: b reason: collision with root package name */ + public final boolean f1853b; + + public l(o oVar, boolean z2) { + this.f1853b = z2; + this.a = oVar; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/m.java b/app/src/main/java/b/i/e/q/r/f/d/m.java new file mode 100644 index 0000000000..3672f20cb6 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/m.java @@ -0,0 +1,12 @@ +package b.i.e.q.r.f.d; +/* compiled from: CurrentParsingState */ +public final class m { + public int a = 0; + + /* renamed from: b reason: collision with root package name */ + public int f1854b = 1; + + public void a(int i) { + this.a += i; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/n.java b/app/src/main/java/b/i/e/q/r/f/d/n.java new file mode 100644 index 0000000000..3a53a2269a --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/n.java @@ -0,0 +1,12 @@ +package b.i.e.q.r.f.d; +/* compiled from: DecodedChar */ +public final class n extends q { + + /* renamed from: b reason: collision with root package name */ + public final char f1855b; + + public n(int i, char c) { + super(i); + this.f1855b = c; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/o.java b/app/src/main/java/b/i/e/q/r/f/d/o.java new file mode 100644 index 0000000000..5c98d852c0 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/o.java @@ -0,0 +1,23 @@ +package b.i.e.q.r.f.d; +/* compiled from: DecodedInformation */ +public final class o extends q { + + /* renamed from: b reason: collision with root package name */ + public final String f1856b; + public final int c; + public final boolean d; + + public o(int i, String str) { + super(i); + this.f1856b = str; + this.d = false; + this.c = 0; + } + + public o(int i, String str, int i2) { + super(i); + this.d = true; + this.c = i2; + this.f1856b = str; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/p.java b/app/src/main/java/b/i/e/q/r/f/d/p.java new file mode 100644 index 0000000000..e614329ecd --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/p.java @@ -0,0 +1,19 @@ +package b.i.e.q.r.f.d; + +import com.google.zxing.FormatException; +/* compiled from: DecodedNumeric */ +public final class p extends q { + + /* renamed from: b reason: collision with root package name */ + public final int f1857b; + public final int c; + + public p(int i, int i2, int i3) throws FormatException { + super(i); + if (i2 < 0 || i2 > 10 || i3 < 0 || i3 > 10) { + throw FormatException.a(); + } + this.f1857b = i2; + this.c = i3; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/q.java b/app/src/main/java/b/i/e/q/r/f/d/q.java new file mode 100644 index 0000000000..8094d2ccf2 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/q.java @@ -0,0 +1,9 @@ +package b.i.e.q.r.f.d; +/* compiled from: DecodedObject */ +public abstract class q { + public final int a; + + public q(int i) { + this.a = i; + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/r.java b/app/src/main/java/b/i/e/q/r/f/d/r.java new file mode 100644 index 0000000000..dd49647563 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/r.java @@ -0,0 +1,93 @@ +package b.i.e.q.r.f.d; + +import b.d.b.a.a; +import com.google.zxing.NotFoundException; +/* compiled from: FieldParser */ +public final class r { + public static final Object a; + + /* renamed from: b reason: collision with root package name */ + public static final Object[][] f1858b; + public static final Object[][] c; + public static final Object[][] d; + public static final Object[][] e; + + static { + Object obj = new Object(); + a = obj; + f1858b = new Object[][]{new Object[]{"00", 18}, new Object[]{"01", 14}, new Object[]{"02", 14}, new Object[]{"10", obj, 20}, new Object[]{"11", 6}, new Object[]{"12", 6}, new Object[]{"13", 6}, new Object[]{"15", 6}, new Object[]{"17", 6}, new Object[]{"20", 2}, new Object[]{"21", obj, 20}, new Object[]{"22", obj, 29}, new Object[]{"30", obj, 8}, new Object[]{"37", obj, 8}, new Object[]{"90", obj, 30}, new Object[]{"91", obj, 30}, new Object[]{"92", obj, 30}, new Object[]{"93", obj, 30}, new Object[]{"94", obj, 30}, new Object[]{"95", obj, 30}, new Object[]{"96", obj, 30}, new Object[]{"97", obj, 30}, new Object[]{"98", obj, 30}, new Object[]{"99", obj, 30}}; + c = new Object[][]{new Object[]{"240", obj, 30}, new Object[]{"241", obj, 30}, new Object[]{"242", obj, 6}, new Object[]{"250", obj, 30}, new Object[]{"251", obj, 30}, new Object[]{"253", obj, 17}, new Object[]{"254", obj, 20}, new Object[]{"400", obj, 30}, new Object[]{"401", obj, 30}, new Object[]{"402", 17}, new Object[]{"403", obj, 30}, new Object[]{"410", 13}, new Object[]{"411", 13}, new Object[]{"412", 13}, new Object[]{"413", 13}, new Object[]{"414", 13}, new Object[]{"420", obj, 20}, new Object[]{"421", obj, 15}, new Object[]{"422", 3}, new Object[]{"423", obj, 15}, new Object[]{"424", 3}, new Object[]{"425", 3}, new Object[]{"426", 3}}; + d = new Object[][]{new Object[]{"310", 6}, new Object[]{"311", 6}, new Object[]{"312", 6}, new Object[]{"313", 6}, new Object[]{"314", 6}, new Object[]{"315", 6}, new Object[]{"316", 6}, new Object[]{"320", 6}, new Object[]{"321", 6}, new Object[]{"322", 6}, new Object[]{"323", 6}, new Object[]{"324", 6}, new Object[]{"325", 6}, new Object[]{"326", 6}, new Object[]{"327", 6}, new Object[]{"328", 6}, new Object[]{"329", 6}, new Object[]{"330", 6}, new Object[]{"331", 6}, new Object[]{"332", 6}, new Object[]{"333", 6}, new Object[]{"334", 6}, new Object[]{"335", 6}, new Object[]{"336", 6}, new Object[]{"340", 6}, new Object[]{"341", 6}, new Object[]{"342", 6}, new Object[]{"343", 6}, new Object[]{"344", 6}, new Object[]{"345", 6}, new Object[]{"346", 6}, new Object[]{"347", 6}, new Object[]{"348", 6}, new Object[]{"349", 6}, new Object[]{"350", 6}, new Object[]{"351", 6}, new Object[]{"352", 6}, new Object[]{"353", 6}, new Object[]{"354", 6}, new Object[]{"355", 6}, new Object[]{"356", 6}, new Object[]{"357", 6}, new Object[]{"360", 6}, new Object[]{"361", 6}, new Object[]{"362", 6}, new Object[]{"363", 6}, new Object[]{"364", 6}, new Object[]{"365", 6}, new Object[]{"366", 6}, new Object[]{"367", 6}, new Object[]{"368", 6}, new Object[]{"369", 6}, new Object[]{"390", obj, 15}, new Object[]{"391", obj, 18}, new Object[]{"392", obj, 15}, new Object[]{"393", obj, 18}, new Object[]{"703", obj, 30}}; + e = new Object[][]{new Object[]{"7001", 13}, new Object[]{"7002", obj, 30}, new Object[]{"7003", 10}, new Object[]{"8001", 14}, new Object[]{"8002", obj, 20}, new Object[]{"8003", obj, 30}, new Object[]{"8004", obj, 30}, new Object[]{"8005", 6}, new Object[]{"8006", 18}, new Object[]{"8007", obj, 30}, new Object[]{"8008", obj, 12}, new Object[]{"8018", 18}, new Object[]{"8020", obj, 25}, new Object[]{"8100", 6}, new Object[]{"8101", 10}, new Object[]{"8102", 2}, new Object[]{"8110", obj, 70}, new Object[]{"8200", obj, 70}}; + } + + public static String a(String str) throws NotFoundException { + if (str.isEmpty()) { + return null; + } + if (str.length() >= 2) { + String substring = str.substring(0, 2); + Object[][] objArr = f1858b; + for (Object[] objArr2 : objArr) { + if (objArr2[0].equals(substring)) { + return objArr2[1] == a ? c(2, ((Integer) objArr2[2]).intValue(), str) : b(2, ((Integer) objArr2[1]).intValue(), str); + } + } + if (str.length() >= 3) { + String substring2 = str.substring(0, 3); + Object[][] objArr3 = c; + for (Object[] objArr4 : objArr3) { + if (objArr4[0].equals(substring2)) { + return objArr4[1] == a ? c(3, ((Integer) objArr4[2]).intValue(), str) : b(3, ((Integer) objArr4[1]).intValue(), str); + } + } + Object[][] objArr5 = d; + for (Object[] objArr6 : objArr5) { + if (objArr6[0].equals(substring2)) { + return objArr6[1] == a ? c(4, ((Integer) objArr6[2]).intValue(), str) : b(4, ((Integer) objArr6[1]).intValue(), str); + } + } + if (str.length() >= 4) { + String substring3 = str.substring(0, 4); + Object[][] objArr7 = e; + for (Object[] objArr8 : objArr7) { + if (objArr8[0].equals(substring3)) { + return objArr8[1] == a ? c(4, ((Integer) objArr8[2]).intValue(), str) : b(4, ((Integer) objArr8[1]).intValue(), str); + } + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + + public static String b(int i, int i2, String str) throws NotFoundException { + if (str.length() >= i) { + String substring = str.substring(0, i); + int i3 = i2 + i; + if (str.length() >= i3) { + String substring2 = str.substring(i, i3); + String str2 = "(" + substring + ')' + substring2; + String a2 = a(str.substring(i3)); + return a2 == null ? str2 : a.v(str2, a2); + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + + public static String c(int i, int i2, String str) throws NotFoundException { + String substring = str.substring(0, i); + int i3 = i2 + i; + if (str.length() < i3) { + i3 = str.length(); + } + String substring2 = str.substring(i, i3); + String str2 = "(" + substring + ')' + substring2; + String a2 = a(str.substring(i3)); + return a2 == null ? str2 : a.v(str2, a2); + } +} diff --git a/app/src/main/java/b/i/e/q/r/f/d/s.java b/app/src/main/java/b/i/e/q/r/f/d/s.java new file mode 100644 index 0000000000..50e32ee097 --- /dev/null +++ b/app/src/main/java/b/i/e/q/r/f/d/s.java @@ -0,0 +1,453 @@ +package b.i.e.q.r.f.d; + +import b.i.e.n.a; +import com.discord.widgets.chat.input.MentionUtilsKt; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +/* compiled from: GeneralAppIdDecoder */ +public final class s { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final m f1859b = new m(); + public final StringBuilder c = new StringBuilder(); + + public s(a aVar) { + this.a = aVar; + } + + public static int d(a aVar, int i, int i2) { + int i3 = 0; + for (int i4 = 0; i4 < i2; i4++) { + if (aVar.b(i + i4)) { + i3 |= 1 << ((i2 - i4) - 1); + } + } + return i3; + } + + public String a(StringBuilder sb, int i) throws NotFoundException, FormatException { + String str = null; + while (true) { + o b2 = b(i, str); + String a = r.a(b2.f1856b); + if (a != null) { + sb.append(a); + } + String valueOf = b2.d ? String.valueOf(b2.c) : null; + int i2 = b2.a; + if (i == i2) { + return sb.toString(); + } + i = i2; + str = valueOf; + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:19:0x005a, code lost: + if (r1 >= 63) goto L_0x005e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:82:0x0174, code lost: + if (r1 >= 253) goto L_0x0178; + */ + /* JADX WARNING: Removed duplicated region for block: B:161:0x02b9 */ + /* JADX WARNING: Removed duplicated region for block: B:201:0x037e */ + /* JADX WARNING: Removed duplicated region for block: B:202:0x0387 */ + /* JADX WARNING: Removed duplicated region for block: B:207:0x0399 */ + /* JADX WARNING: Removed duplicated region for block: B:225:0x00ed A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:227:0x0249 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:229:0x0358 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:23:0x0061 */ + /* JADX WARNING: Removed duplicated region for block: B:86:0x017b */ + public o b(int i, String str) throws FormatException { + l lVar; + boolean z2; + int i2; + boolean z3; + boolean z4; + p pVar; + boolean z5; + n nVar; + char c; + n nVar2; + boolean z6; + n nVar3; + char c2; + n nVar4; + this.c.setLength(0); + if (str != null) { + this.c.append(str); + } + this.f1859b.a = i; + int i3 = 2; + while (true) { + m mVar = this.f1859b; + int i4 = mVar.a; + int i5 = mVar.f1854b; + boolean z7 = true; + if (i5 == i3) { + while (true) { + int i6 = this.f1859b.a; + int i7 = i6 + 5; + a aVar = this.a; + if (i7 <= aVar.k) { + int d = d(aVar, i6, 5); + if (d < 5 || d >= 16) { + int i8 = i6 + 6; + a aVar2 = this.a; + if (i8 <= aVar2.k) { + int d2 = d(aVar2, i6, 6); + if (d2 >= 16) { + } + } + } + z6 = true; + if (!z6) { + int i9 = this.f1859b.a; + int d3 = d(this.a, i9, 5); + if (d3 == 15) { + nVar3 = new n(i9 + 5, '$'); + } else { + if (d3 < 5 || d3 >= 15) { + int d4 = d(this.a, i9, 6); + if (d4 < 32 || d4 >= 58) { + switch (d4) { + case 58: + c2 = '*'; + break; + case 59: + c2 = ','; + break; + case 60: + c2 = '-'; + break; + case 61: + c2 = '.'; + break; + case 62: + c2 = MentionUtilsKt.SLASH_CHAR; + break; + default: + throw new IllegalStateException("Decoding invalid alphanumeric value: ".concat(String.valueOf(d4))); + } + nVar4 = new n(i9 + 6, c2); + } else { + nVar4 = new n(i9 + 6, (char) (d4 + 33)); + } + } else { + nVar4 = new n(i9 + 5, (char) ((d3 + 48) - 5)); + } + nVar3 = nVar4; + } + m mVar2 = this.f1859b; + int i10 = nVar3.a; + mVar2.a = i10; + char c3 = nVar3.f1855b; + if (c3 == '$') { + lVar = new l(new o(i10, this.c.toString()), true); + } else { + this.c.append(c3); + } + } else { + if (e(this.f1859b.a)) { + this.f1859b.a(3); + this.f1859b.f1854b = 1; + } else if (f(this.f1859b.a)) { + m mVar3 = this.f1859b; + int i11 = mVar3.a + 5; + int i12 = this.a.k; + if (i11 < i12) { + mVar3.a(5); + } else { + mVar3.a = i12; + } + this.f1859b.f1854b = 3; + } + lVar = new l(null, false); + } + } + z6 = false; + if (!z6) { + } + } + z2 = lVar.f1853b; + } else { + if (i5 == 3) { + while (true) { + int i13 = this.f1859b.a; + int i14 = i13 + 5; + a aVar3 = this.a; + if (i14 <= aVar3.k) { + int d5 = d(aVar3, i13, 5); + if (d5 < 5 || d5 >= 16) { + int i15 = i13 + 7; + a aVar4 = this.a; + if (i15 <= aVar4.k) { + int d6 = d(aVar4, i13, 7); + if (d6 < 64 || d6 >= 116) { + int i16 = i13 + 8; + a aVar5 = this.a; + if (i16 <= aVar5.k) { + int d7 = d(aVar5, i13, 8); + if (d7 >= 232) { + } + } + } + } + } + z5 = true; + if (!z5) { + int i17 = this.f1859b.a; + int d8 = d(this.a, i17, 5); + if (d8 == 15) { + nVar = new n(i17 + 5, '$'); + } else { + if (d8 < 5 || d8 >= 15) { + int d9 = d(this.a, i17, 7); + if (d9 >= 64 && d9 < 90) { + nVar2 = new n(i17 + 7, (char) (d9 + 1)); + } else if (d9 < 90 || d9 >= 116) { + switch (d(this.a, i17, 8)) { + case 232: + c = '!'; + break; + case 233: + c = '\"'; + break; + case 234: + c = '%'; + break; + case 235: + c = '&'; + break; + case 236: + c = '\''; + break; + case 237: + c = '('; + break; + case 238: + c = ')'; + break; + case 239: + c = '*'; + break; + case 240: + c = '+'; + break; + case 241: + c = ','; + break; + case 242: + c = '-'; + break; + case 243: + c = '.'; + break; + case 244: + c = MentionUtilsKt.SLASH_CHAR; + break; + case 245: + c = MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR; + break; + case 246: + c = ';'; + break; + case 247: + c = '<'; + break; + case 248: + c = '='; + break; + case 249: + c = '>'; + break; + case 250: + c = '?'; + break; + case 251: + c = '_'; + break; + case 252: + c = ' '; + break; + default: + throw FormatException.a(); + } + nVar2 = new n(i17 + 8, c); + } else { + nVar2 = new n(i17 + 7, (char) (d9 + 7)); + } + } else { + nVar2 = new n(i17 + 5, (char) ((d8 + 48) - 5)); + } + nVar = nVar2; + } + m mVar4 = this.f1859b; + int i18 = nVar.a; + mVar4.a = i18; + char c4 = nVar.f1855b; + if (c4 == '$') { + lVar = new l(new o(i18, this.c.toString()), true); + } else { + this.c.append(c4); + } + } else { + if (e(this.f1859b.a)) { + this.f1859b.a(3); + this.f1859b.f1854b = 1; + } else if (f(this.f1859b.a)) { + m mVar5 = this.f1859b; + int i19 = mVar5.a + 5; + int i20 = this.a.k; + if (i19 < i20) { + mVar5.a(5); + } else { + mVar5.a = i20; + } + this.f1859b.f1854b = 2; + } + lVar = new l(null, false); + } + } + z5 = false; + if (!z5) { + } + } + z2 = lVar.f1853b; + } else { + while (true) { + int i21 = this.f1859b.a; + int i22 = i21 + 7; + int i23 = this.a.k; + if (i22 <= i23) { + int i24 = i21; + while (true) { + int i25 = i21 + 3; + if (i24 >= i25) { + z3 = this.a.b(i25); + } else if (!this.a.b(i24)) { + i24++; + } + } + } else if (i21 + 4 > i23) { + z3 = false; + if (!z3) { + int i26 = this.f1859b.a; + int i27 = i26 + 7; + a aVar6 = this.a; + if (i27 > aVar6.k) { + int d10 = d(aVar6, i26, 4); + pVar = d10 == 0 ? new p(this.a.k, 10, 10) : new p(this.a.k, d10 - 1, 10); + } else { + int d11 = d(aVar6, i26, 7) - 8; + pVar = new p(i27, d11 / 11, d11 % 11); + } + m mVar6 = this.f1859b; + int i28 = pVar.a; + mVar6.a = i28; + int i29 = pVar.f1857b; + if (i29 == 10) { + lVar = new l(pVar.c == 10 ? new o(i28, this.c.toString()) : new o(i28, this.c.toString(), pVar.c), true); + } else { + this.c.append(i29); + int i30 = pVar.c; + if (i30 == 10) { + lVar = new l(new o(this.f1859b.a, this.c.toString()), true); + } else { + this.c.append(i30); + } + } + } else { + int i31 = this.f1859b.a; + if (i31 + 1 <= this.a.k) { + int i32 = 0; + while (true) { + if (i32 < 4) { + int i33 = i32 + i31; + a aVar7 = this.a; + if (i33 < aVar7.k) { + if (!aVar7.b(i33)) { + i32++; + } + } + } + } + z4 = true; + if (!z4) { + m mVar7 = this.f1859b; + mVar7.f1854b = 2; + mVar7.a(4); + } + lVar = new l(null, false); + } + z4 = false; + if (!z4) { + } + lVar = new l(null, false); + } + } + z3 = true; + if (!z3) { + } + } + z2 = lVar.f1853b; + i2 = this.f1859b.a; + if (i4 == i2) { + z7 = false; + } + if ((!z7 || z2) && !z2) { + i3 = 2; + } + } + } + i2 = this.f1859b.a; + if (i4 == i2) { + } + if (!z7) { + } + i3 = 2; + } + o oVar = lVar.a; + return (oVar == null || !oVar.d) ? new o(i2, this.c.toString()) : new o(i2, this.c.toString(), oVar.c); + } + + public int c(int i, int i2) { + return d(this.a, i, i2); + } + + public final boolean e(int i) { + int i2 = i + 3; + if (i2 > this.a.k) { + return false; + } + while (i < i2) { + if (this.a.b(i)) { + return false; + } + i++; + } + return true; + } + + public final boolean f(int i) { + if (i + 1 > this.a.k) { + return false; + } + for (int i2 = 0; i2 < 5; i2++) { + int i3 = i2 + i; + a aVar = this.a; + if (i3 >= aVar.k) { + return true; + } + if (i2 == 2) { + if (!aVar.b(i + 2)) { + return false; + } + } else if (aVar.b(i3)) { + return false; + } + } + return true; + } +} diff --git a/app/src/main/java/b/i/e/r/a.java b/app/src/main/java/b/i/e/r/a.java new file mode 100644 index 0000000000..4c7c8c35e1 --- /dev/null +++ b/app/src/main/java/b/i/e/r/a.java @@ -0,0 +1,46 @@ +package b.i.e.r; + +import androidx.core.app.FrameMetricsAggregator; +import androidx.core.view.InputDeviceCompat; +import androidx.core.view.PointerIconCompat; +import androidx.media.AudioAttributesCompat; +import androidx.room.RoomDatabase; +import com.discord.models.domain.ModelInvite; +import com.discord.restapi.RestAPIAbortCodes; +import com.discord.utilities.font.FontUtils; +import com.discord.utilities.guilds.GuildConstantsKt; +import com.discord.utilities.voice.ScreenShareManager; +import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile; +import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.util.Arrays; +import java.util.Collection; +/* compiled from: PDF417Common */ +public final class a { + public static final int[] a = new int[0]; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1860b = {66142, 66170, 66206, 66236, 66290, 66292, 66350, 66382, 66396, 66454, 66470, 66476, 66594, 66600, 66614, 66626, 66628, 66632, 66640, 66654, 66662, 66668, 66682, 66690, 66718, 66720, 66748, 66758, 66776, 66798, 66802, 66804, 66820, 66824, 66832, 66846, 66848, 66876, 66880, 66936, 66950, 66956, 66968, 66992, 67006, 67022, 67036, 67042, 67044, 67048, 67062, 67118, 67150, 67164, 67214, 67228, 67256, 67294, 67322, 67350, 67366, 67372, 67398, 67404, 67416, 67438, 67474, 67476, 67490, 67492, 67496, 67510, 67618, 67624, 67650, 67656, 67664, 67678, 67686, 67692, 67706, 67714, 67716, 67728, 67742, 67744, 67772, 67782, 67788, 67800, 67822, 67826, 67828, 67842, 67848, 67870, 67872, 67900, 67904, 67960, 67974, 67992, 68016, 68030, 68046, 68060, 68066, 68068, 68072, 68086, 68104, 68112, 68126, 68128, 68156, 68160, 68216, 68336, 68358, 68364, 68376, 68400, 68414, 68448, 68476, 68494, 68508, 68536, 68546, 68548, 68552, 68560, 68574, 68582, 68588, 68654, 68686, 68700, 68706, 68708, 68712, 68726, 68750, 68764, 68792, 68802, 68804, 68808, 68816, 68830, 68838, 68844, 68858, 68878, 68892, 68920, 68976, 68990, 68994, 68996, 69000, 69008, 69022, 69024, 69052, 69062, 69068, 69080, 69102, 69106, 69108, 69142, 69158, 69164, 69190, 69208, 69230, 69254, 69260, 69272, 69296, 69310, 69326, 69340, 69386, 69394, 69396, 69410, 69416, 69430, 69442, 69444, 69448, 69456, 69470, 69478, 69484, 69554, 69556, 69666, 69672, 69698, 69704, 69712, 69726, 69754, 69762, 69764, 69776, 69790, 69792, 69820, 69830, 69836, 69848, 69870, 69874, 69876, 69890, 69918, 69920, 69948, 69952, 70008, 70022, 70040, 70064, 70078, 70094, 70108, 70114, 70116, 70120, 70134, 70152, 70174, 70176, 70264, 70384, 70412, 70448, 70462, 70496, 70524, 70542, 70556, 70584, 70594, 70600, 70608, 70622, 70630, 70636, 70664, 70672, 70686, 70688, 70716, 70720, 70776, 70896, 71136, 71180, 71192, 71216, 71230, 71264, 71292, 71360, 71416, 71452, 71480, 71536, 71550, 71554, 71556, 71560, 71568, 71582, 71584, 71612, 71622, 71628, 71640, 71662, 71726, 71732, 71758, 71772, 71778, 71780, 71784, 71798, 71822, 71836, 71864, 71874, 71880, 71888, 71902, 71910, 71916, 71930, 71950, 71964, 71992, 72048, 72062, 72066, 72068, 72080, 72094, 72096, 72124, 72134, 72140, 72152, 72174, 72178, 72180, 72206, 72220, 72248, 72304, 72318, 72416, 72444, 72456, 72464, 72478, 72480, 72508, 72512, 72568, 72588, 72600, 72624, 72638, 72654, 72668, 72674, 72676, 72680, 72694, 72726, 72742, 72748, 72774, 72780, 72792, 72814, 72838, 72856, 72880, 72894, 72910, 72924, 72930, 72932, 72936, 72950, 72966, 72972, 72984, 73008, 73022, 73056, 73084, 73102, 73116, 73144, 73156, 73160, 73168, 73182, 73190, 73196, 73210, 73226, 73234, 73236, 73250, 73252, 73256, 73270, 73282, 73284, 73296, 73310, 73318, 73324, 73346, 73348, 73352, 73360, 73374, 73376, 73404, 73414, 73420, 73432, 73454, 73498, 73518, 73522, 73524, 73550, 73564, 73570, 73572, 73576, 73590, 73800, 73822, 73858, 73860, 73872, 73886, 73888, 73916, 73944, 73970, 73972, 73992, 74014, 74016, 74044, 74048, 74104, 74118, 74136, 74160, 74174, 74210, 74212, 74216, 74230, 74244, 74256, 74270, 74272, 74360, 74480, 74502, 74508, 74544, 74558, 74592, 74620, 74638, 74652, 74680, 74690, 74696, 74704, 74726, 74732, 74782, 74784, 74812, 74992, 75232, 75288, 75326, 75360, 75388, 75456, 75512, 75576, 75632, 75646, 75650, 75652, 75664, 75678, 75680, 75708, 75718, 75724, 75736, 75758, 75808, 75836, 75840, 75896, 76016, 76256, 76736, 76824, 76848, 76862, 76896, 76924, 76992, 77048, 77296, 77340, 77368, 77424, 77438, 77536, 77564, 77572, 77576, 77584, 77600, 77628, 77632, 77688, 77702, 77708, 77720, 77744, 77758, 77774, 77788, 77870, 77902, 77916, 77922, 77928, 77966, 77980, 78008, 78018, 78024, 78032, 78046, 78060, 78074, 78094, 78136, 78192, 78206, 78210, 78212, 78224, 78238, 78240, 78268, 78278, 78284, 78296, 78322, 78324, 78350, 78364, 78448, 78462, 78560, 78588, 78600, 78622, 78624, 78652, 78656, 78712, 78726, 78744, 78768, 78782, 78798, 78812, 78818, 78820, 78824, 78838, 78862, 78876, 78904, 78960, 78974, 79072, 79100, 79296, 79352, 79368, 79376, 79390, 79392, 79420, 79424, 79480, 79600, 79628, 79640, 79664, 79678, 79712, 79740, 79772, 79800, 79810, 79812, 79816, 79824, 79838, 79846, 79852, 79894, 79910, 79916, 79942, 79948, 79960, 79982, 79988, 80006, 80024, 80048, 80062, 80078, 80092, 80098, 80100, 80104, 80134, 80140, 80176, 80190, 80224, 80252, 80270, 80284, 80312, 80328, 80336, 80350, 80358, 80364, 80378, 80390, 80396, 80408, 80432, 80446, 80480, 80508, 80576, 80632, 80654, 80668, 80696, 80752, 80766, 80776, 80784, 80798, 80800, 80828, 80844, 80856, 80878, 80882, 80884, 80914, 80916, 80930, 80932, 80936, 80950, 80962, 80968, 80976, 80990, 80998, 81004, 81026, 81028, 81040, 81054, 81056, 81084, 81094, 81100, 81112, 81134, 81154, 81156, 81160, 81168, 81182, 81184, 81212, 81216, 81272, 81286, 81292, 81304, 81328, 81342, 81358, 81372, 81380, 81384, 81398, 81434, 81454, 81458, 81460, 81486, 81500, 81506, 81508, 81512, 81526, 81550, 81564, 81592, 81602, 81604, 81608, 81616, 81630, 81638, 81644, 81702, 81708, 81722, 81734, 81740, 81752, 81774, 81778, 81780, 82050, 82078, 82080, 82108, 82180, 82184, 82192, 82206, 82208, 82236, 82240, 82296, 82316, 82328, 82352, 82366, 82402, 82404, 82408, 82440, 82448, 82462, 82464, 82492, 82496, 82552, 82672, 82694, 82700, 82712, 82736, 82750, 82784, 82812, 82830, 82882, 82884, 82888, 82896, 82918, 82924, 82952, 82960, 82974, 82976, 83004, 83008, 83064, 83184, 83424, 83468, 83480, 83504, 83518, 83552, 83580, 83648, 83704, 83740, 83768, 83824, 83838, 83842, 83844, 83848, 83856, 83872, 83900, 83910, 83916, 83928, 83950, 83984, 84000, 84028, 84032, 84088, 84208, 84448, 84928, 85040, 85054, 85088, 85116, 85184, 85240, 85488, 85560, 85616, 85630, 85728, 85756, 85764, 85768, 85776, 85790, 85792, 85820, 85824, 85880, 85894, 85900, 85912, 85936, 85966, 85980, 86048, 86080, 86136, 86256, 86496, 86976, 88160, 88188, 88256, 88312, 88560, 89056, 89200, 89214, 89312, 89340, 89536, 89592, 89608, 89616, 89632, 89664, 89720, 89840, 89868, 89880, 89904, 89952, 89980, 89998, 90012, 90040, 90190, 90204, 90254, 90268, 90296, 90306, 90308, 90312, 90334, 90382, 90396, 90424, 90480, 90494, 90500, 90504, 90512, 90526, 90528, 90556, 90566, 90572, 90584, 90610, 90612, 90638, 90652, 90680, 90736, 90750, 90848, 90876, 90884, 90888, 90896, 90910, 90912, 90940, 90944, 91000, 91014, 91020, 91032, 91056, 91070, 91086, 91100, 91106, 91108, 91112, 91126, 91150, 91164, 91192, 91248, 91262, 91360, 91388, 91584, 91640, 91664, 91678, 91680, 91708, 91712, 91768, 91888, 91928, 91952, 91966, 92000, 92028, 92046, 92060, 92088, 92098, 92100, 92104, 92112, 92126, 92134, 92140, 92188, 92216, 92272, 92384, 92412, 92608, 92664, 93168, 93200, 93214, 93216, 93244, 93248, 93304, 93424, 93664, 93720, 93744, 93758, 93792, 93820, 93888, 93944, 93980, 94008, 94064, 94078, 94084, 94088, 94096, 94110, 94112, 94140, 94150, 94156, 94168, 94246, 94252, 94278, 94284, 94296, 94318, 94342, 94348, 94360, 94384, 94398, 94414, 94428, 94440, 94470, 94476, 94488, 94512, 94526, 94560, 94588, 94606, 94620, 94648, 94658, 94660, 94664, 94672, 94686, 94694, 94700, 94714, 94726, 94732, 94744, 94768, 94782, 94816, 94844, 94912, 94968, 94990, 95004, 95032, 95088, 95102, 95112, 95120, 95134, 95136, 95164, 95180, 95192, 95214, 95218, 95220, 95244, 95256, 95280, 95294, 95328, 95356, 95424, 95480, 95728, 95758, 95772, 95800, 95856, 95870, 95968, 95996, 96008, 96016, 96030, 96032, 96060, 96064, 96120, 96152, 96176, 96190, 96220, 96226, 96228, 96232, 96290, 96292, 96296, 96310, 96322, 96324, 96328, 96336, 96350, 96358, 96364, 96386, 96388, 96392, 96400, 96414, 96416, 96444, 96454, 96460, 96472, 96494, 96498, 96500, 96514, 96516, 96520, 96528, 96542, 96544, 96572, 96576, 96632, 96646, 96652, 96664, 96688, 96702, 96718, 96732, 96738, 96740, 96744, 96758, 96772, 96776, 96784, 96798, 96800, 96828, 96832, 96888, 97008, 97030, 97036, 97048, 97072, 97086, 97120, 97148, 97166, 97180, 97208, 97220, 97224, 97232, 97246, 97254, 97260, 97326, 97330, 97332, 97358, 97372, 97378, 97380, 97384, 97398, 97422, 97436, 97464, 97474, 97476, 97480, 97488, 97502, 97510, 97516, 97550, 97564, 97592, 97648, 97666, 97668, 97672, 97680, 97694, 97696, 97724, 97734, 97740, 97752, 97774, 97830, 97836, 97850, 97862, 97868, 97880, 97902, 97906, 97908, 97926, 97932, 97944, 97968, 97998, 98012, 98018, 98020, 98024, 98038, 98618, 98674, 98676, 98838, 98854, 98874, 98892, 98904, 98926, 98930, 98932, 98968, 99006, 99042, 99044, 99048, 99062, 99166, 99194, 99246, 99286, 99350, 99366, 99372, 99386, 99398, 99416, 99438, 99442, 99444, 99462, 99504, 99518, 99534, 99548, 99554, 99556, 99560, 99574, 99590, 99596, 99608, 99632, 99646, 99680, 99708, 99726, 99740, 99768, 99778, 99780, 99784, 99792, 99806, 99814, 99820, 99834, 99858, 99860, 99874, 99880, 99894, 99906, 99920, 99934, 99962, 99970, 99972, 99976, 99984, 99998, 100000, 100028, 100038, 100044, 100056, 100078, 100082, 100084, 100142, 100174, 100188, 100246, 100262, 100268, 100306, 100308, 100390, 100396, 100410, 100422, 100428, 100440, 100462, 100466, 100468, 100486, 100504, 100528, 100542, 100558, 100572, 100578, 100580, 100584, 100598, 100620, 100656, 100670, 100704, 100732, 100750, 100792, 100802, 100808, 100816, 100830, 100838, 100844, 100858, 100888, 100912, 100926, 100960, 100988, 101056, 101112, 101148, 101176, 101232, 101246, 101250, 101252, 101256, 101264, 101278, 101280, 101308, 101318, 101324, 101336, 101358, 101362, 101364, 101410, 101412, 101416, 101430, 101442, 101448, 101456, 101470, 101478, 101498, 101506, 101508, 101520, 101534, 101536, 101564, 101580, 101618, 101620, 101636, 101640, 101648, 101662, 101664, 101692, 101696, 101752, 101766, 101784, 101838, 101858, 101860, 101864, 101934, 101938, 101940, 101966, 101980, 101986, 101988, 101992, 102030, 102044, 102072, 102082, 102084, 102088, 102096, 102138, 102166, 102182, 102188, 102214, 102220, 102232, 102254, 102282, 102290, 102292, 102306, 102308, 102312, 102326, 102444, 102458, 102470, 102476, 102488, 102514, 102516, 102534, 102552, 102576, 102590, 102606, 102620, 102626, 102632, 102646, 102662, 102668, 102704, 102718, 102752, 102780, 102798, 102812, 102840, 102850, 102856, 102864, 102878, 102886, 102892, 102906, 102936, 102974, 103008, 103036, 103104, 103160, 103224, 103280, 103294, 103298, 103300, 103312, 103326, 103328, 103356, 103366, 103372, 103384, 103406, 103410, 103412, 103472, 103486, 103520, 103548, 103616, 103672, 103920, 103992, 104048, 104062, 104160, 104188, 104194, 104196, 104200, 104208, 104224, 104252, 104256, 104312, 104326, 104332, 104344, 104368, 104382, 104398, 104412, 104418, 104420, 104424, 104482, 104484, 104514, 104520, 104528, 104542, 104550, 104570, 104578, 104580, 104592, 104606, 104608, 104636, 104652, 104690, 104692, 104706, 104712, 104734, 104736, 104764, 104768, 104824, 104838, 104856, 104910, 104930, 104932, 104936, 104968, 104976, 104990, 104992, 105020, 105024, 105080, 105200, 105240, 105278, 105312, 105372, 105410, 105412, 105416, 105424, 105446, 105518, 105524, 105550, 105564, 105570, 105572, 105576, 105614, 105628, 105656, 105666, 105672, 105680, 105702, 105722, 105742, 105756, 105784, 105840, 105854, 105858, 105860, 105864, 105872, 105888, 105932, 105970, 105972, 106006, 106022, 106028, 106054, 106060, 106072, 106100, 106118, 106124, 106136, 106160, 106174, 106190, 106210, 106212, 106216, 106250, 106258, 106260, 106274, 106276, 106280, 106306, 106308, 106312, 106320, 106334, 106348, 106394, 106414, 106418, 106420, 106566, 106572, 106610, 106612, 106630, 106636, 106648, 106672, 106686, 106722, 106724, 106728, 106742, 106758, 106764, 106776, 106800, 106814, 106848, 106876, 106894, 106908, 106936, 106946, 106948, 106952, 106960, 106974, 106982, 106988, 107032, 107056, 107070, 107104, 107132, 107200, 107256, 107292, 107320, 107376, 107390, 107394, 107396, 107400, 107408, 107422, 107424, 107452, 107462, 107468, 107480, 107502, 107506, 107508, 107544, 107568, 107582, 107616, 107644, 107712, 107768, 108016, 108060, 108088, 108144, 108158, 108256, 108284, 108290, 108292, 108296, 108304, 108318, 108320, 108348, 108352, 108408, 108422, 108428, 108440, 108464, 108478, 108494, 108508, 108514, 108516, 108520, 108592, 108640, 108668, 108736, 108792, 109040, 109536, 109680, 109694, 109792, 109820, 110016, 110072, 110084, 110088, 110096, 110112, 110140, 110144, 110200, 110320, 110342, 110348, 110360, 110384, 110398, 110432, 110460, 110478, 110492, 110520, 110532, 110536, 110544, 110558, 110658, 110686, 110714, 110722, 110724, 110728, 110736, 110750, 110752, 110780, 110796, 110834, 110836, 110850, 110852, 110856, 110864, 110878, 110880, 110908, 110912, 110968, 110982, RestAPIAbortCodes.SEARCH_INDEXING, 111054, 111074, 111076, 111080, 111108, 111112, 111120, 111134, 111136, 111164, 111168, 111224, 111344, 111372, 111422, 111456, 111516, 111554, 111556, 111560, 111568, 111590, 111632, 111646, 111648, 111676, 111680, 111736, 111856, 112096, 112152, 112224, 112252, 112320, 112440, 112514, 112516, 112520, 112528, 112542, 112544, 112588, 112686, 112718, 112732, 112782, 112796, 112824, 112834, 112836, 112840, 112848, 112870, 112890, 112910, 112924, 112952, 113008, 113022, 113026, 113028, 113032, 113040, 113054, 113056, 113100, 113138, 113140, 113166, 113180, 113208, 113264, 113278, 113376, 113404, 113416, 113424, 113440, 113468, 113472, 113560, 113614, 113634, 113636, 113640, 113686, 113702, 113708, 113734, 113740, 113752, 113778, 113780, 113798, 113804, 113816, 113840, 113854, 113870, 113890, 113892, 113896, 113926, 113932, 113944, 113968, 113982, 114016, 114044, 114076, 114114, 114116, 114120, 114128, 114150, 114170, 114194, 114196, 114210, 114212, 114216, 114242, 114244, 114248, 114256, 114270, 114278, 114306, 114308, 114312, 114320, 114334, 114336, 114364, 114380, 114420, 114458, 114478, 114482, 114484, 114510, 114524, 114530, 114532, 114536, 114842, 114866, 114868, 114970, 114994, 114996, 115042, 115044, 115048, 115062, 115130, 115226, 115250, 115252, 115278, 115292, 115298, 115300, 115304, 115318, 115342, 115394, 115396, 115400, 115408, 115422, 115430, 115436, 115450, 115478, 115494, 115514, 115526, 115532, 115570, 115572, 115738, 115758, 115762, 115764, 115790, 115804, 115810, 115812, 115816, 115830, 115854, 115868, 115896, 115906, 115912, 115920, 115934, 115942, 115948, 115962, 115996, 116024, 116080, 116094, 116098, 116100, 116104, 116112, 116126, 116128, 116156, 116166, 116172, 116184, 116206, 116210, 116212, 116246, 116262, 116268, 116282, 116294, 116300, 116312, 116334, 116338, 116340, 116358, 116364, 116376, 116400, 116414, 116430, 116444, 116450, 116452, 116456, 116498, 116500, 116514, 116520, 116534, 116546, 116548, 116552, 116560, 116574, 116582, 116588, 116602, 116654, 116694, 116714, 116762, 116782, 116786, 116788, 116814, 116828, 116834, 116836, 116840, 116854, 116878, 116892, 116920, 116930, 116936, 116944, 116958, 116966, 116972, 116986, 117006, 117048, 117104, 117118, 117122, 117124, 117136, 117150, 117152, 117180, 117190, 117196, 117208, 117230, 117234, 117236, 117304, 117360, 117374, 117472, 117500, 117506, 117508, 117512, 117520, 117536, 117564, 117568, 117624, 117638, 117644, 117656, 117680, 117694, 117710, 117724, 117730, 117732, 117736, 117750, 117782, 117798, 117804, 117818, 117830, 117848, 117874, 117876, 117894, 117936, 117950, 117966, 117986, 117988, 117992, 118022, 118028, 118040, 118064, 118078, 118112, 118140, 118172, 118210, 118212, 118216, 118224, 118238, 118246, 118266, 118306, 118312, 118338, 118352, 118366, 118374, 118394, 118402, 118404, 118408, 118416, 118430, 118432, 118460, 118476, 118514, 118516, 118574, 118578, 118580, 118606, 118620, 118626, 118628, 118632, 118678, 118694, 118700, 118730, 118738, 118740, 118830, 118834, 118836, 118862, 118876, 118882, 118884, 118888, 118902, 118926, 118940, 118968, 118978, 118980, 118984, 118992, 119006, 119014, 119020, 119034, 119068, 119096, 119152, 119166, 119170, 119172, 119176, 119184, 119198, 119200, 119228, 119238, 119244, 119256, 119278, 119282, 119284, 119324, 119352, 119408, 119422, 119520, 119548, 119554, 119556, 119560, 119568, 119582, 119584, 119612, 119616, 119672, 119686, 119692, 119704, 119728, 119742, 119758, 119772, 119778, 119780, 119784, 119798, 119920, 119934, 120032, 120060, 120256, 120312, 120324, 120328, 120336, 120352, 120384, 120440, 120560, 120582, 120588, 120600, 120624, 120638, 120672, 120700, 120718, 120732, 120760, 120770, 120772, 120776, 120784, 120798, 120806, 120812, 120870, 120876, 120890, 120902, 120908, 120920, 120946, 120948, 120966, 120972, 120984, 121008, 121022, 121038, 121058, 121060, 121064, 121078, 121100, 121112, 121136, 121150, 121184, 121212, 121244, 121282, 121284, 121288, 121296, 121318, 121338, 121356, 121368, 121392, 121406, 121440, 121468, 121536, 121592, 121656, 121730, 121732, 121736, 121744, 121758, 121760, 121804, 121842, 121844, 121890, 121922, 121924, 121928, 121936, 121950, 121958, 121978, 121986, 121988, 121992, 122000, 122014, 122016, 122044, 122060, 122098, 122100, 122116, 122120, 122128, 122142, 122144, 122172, 122176, 122232, 122246, 122264, 122318, 122338, 122340, 122344, 122414, 122418, 122420, 122446, 122460, 122466, 122468, 122472, 122510, 122524, 122552, 122562, 122564, 122568, 122576, 122598, 122618, 122646, 122662, 122668, 122694, 122700, 122712, 122738, 122740, 122762, 122770, 122772, 122786, 122788, 122792, 123018, 123026, 123028, 123042, 123044, 123048, 123062, 123098, 123146, 123154, 123156, 123170, 123172, 123176, 123190, 123202, 123204, 123208, 123216, 123238, 123244, 123258, 123290, 123314, 123316, 123402, 123410, 123412, 123426, 123428, 123432, 123446, 123458, 123464, 123472, 123486, 123494, 123500, 123514, 123522, 123524, 123528, 123536, 123552, 123580, 123590, 123596, 123608, 123630, 123634, 123636, 123674, 123698, 123700, 123740, 123746, 123748, 123752, 123834, 123914, 123922, 123924, 123938, 123944, 123958, 123970, 123976, 123984, 123998, 124006, 124012, 124026, 124034, 124036, 124048, 124062, 124064, 124092, 124102, 124108, 124120, 124142, 124146, 124148, 124162, 124164, 124168, 124176, 124190, 124192, 124220, 124224, 124280, 124294, 124300, 124312, 124336, 124350, 124366, 124380, 124386, 124388, 124392, 124406, 124442, 124462, 124466, 124468, 124494, 124508, 124514, 124520, 124558, 124572, 124600, 124610, 124612, 124616, 124624, 124646, 124666, 124694, 124710, 124716, 124730, 124742, 124748, 124760, 124786, 124788, 124818, 124820, 124834, 124836, 124840, 124854, 124946, 124948, 124962, 124964, 124968, 124982, 124994, 124996, 125000, 125008, 125022, 125030, 125036, 125050, 125058, 125060, 125064, 125072, 125086, 125088, 125116, 125126, 125132, 125144, 125166, 125170, 125172, 125186, 125188, 125192, 125200, 125216, 125244, 125248, 125304, 125318, 125324, 125336, 125360, 125374, 125390, 125404, 125410, 125412, 125416, 125430, 125444, 125448, 125456, 125472, 125504, 125560, 125680, 125702, 125708, 125720, 125744, 125758, 125792, 125820, 125838, 125852, 125880, 125890, 125892, 125896, 125904, 125918, 125926, 125932, 125978, 125998, 126002, 126004, 126030, 126044, 126050, 126052, 126056, 126094, 126108, 126136, 126146, 126148, 126152, 126160, 126182, 126202, 126222, 126236, 126264, 126320, 126334, 126338, 126340, 126344, 126352, 126366, 126368, 126412, 126450, 126452, 126486, 126502, 126508, 126522, 126534, 126540, 126552, 126574, 126578, 126580, 126598, 126604, 126616, 126640, 126654, 126670, 126684, 126690, 126692, 126696, 126738, 126754, 126756, 126760, 126774, 126786, 126788, 126792, 126800, 126814, 126822, 126828, 126842, 126894, 126898, 126900, 126934, 127126, 127142, 127148, 127162, 127178, 127186, 127188, 127254, 127270, 127276, 127290, 127302, 127308, 127320, 127342, 127346, 127348, 127370, 127378, 127380, 127394, 127396, 127400, 127450, 127510, 127526, 127532, 127546, 127558, 127576, 127598, 127602, 127604, 127622, 127628, 127640, 127664, 127678, 127694, 127708, 127714, 127716, 127720, 127734, 127754, 127762, 127764, 127778, 127784, 127810, 127812, 127816, 127824, 127838, 127846, 127866, 127898, 127918, 127922, 127924, 128022, 128038, 128044, 128058, 128070, 128076, 128088, 128110, 128114, 128116, 128134, 128140, 128152, 128176, 128190, 128206, 128220, 128226, 128228, 128232, 128246, 128262, 128268, 128280, 128304, 128318, 128352, 128380, 128398, 128412, 128440, 128450, 128452, 128456, 128464, 128478, 128486, 128492, 128506, 128522, 128530, 128532, 128546, 128548, 128552, 128566, 128578, 128580, 128584, 128592, 128606, 128614, 128634, 128642, 128644, 128648, 128656, 128670, 128672, 128700, 128716, 128754, 128756, 128794, 128814, 128818, 128820, 128846, 128860, 128866, 128868, 128872, 128886, 128918, 128934, 128940, 128954, 128978, 128980, 129178, 129198, 129202, 129204, 129238, 129258, 129306, 129326, 129330, 129332, 129358, 129372, 129378, 129380, 129384, 129398, 129430, 129446, 129452, 129466, 129482, 129490, 129492, 129562, 129582, 129586, 129588, 129614, 129628, 129634, 129636, 129640, 129654, 129678, 129692, 129720, 129730, 129732, 129736, 129744, 129758, 129766, 129772, 129814, 129830, 129836, 129850, 129862, 129868, 129880, 129902, 129906, 129908, 129930, 129938, 129940, 129954, 129956, 129960, 129974, 130010}; + public static final int[] c = {2627, 1819, 2622, 2621, 1813, 1812, 2729, 2724, 2723, 2779, 2774, 2773, 902, 896, 908, 868, 865, 861, 859, 2511, 873, 871, 1780, 835, 2493, 825, 2491, 842, 837, 844, 1764, 1762, 811, 810, 809, 2483, 807, 2482, 806, 2480, 815, 814, 813, 812, 2484, 817, 816, 1745, 1744, 1742, 1746, 2655, 2637, 2635, 2626, 2625, 2623, 2628, 1820, 2752, 2739, 2737, 2728, 2727, 2725, 2730, 2785, 2783, 2778, 2777, 2775, 2780, 787, 781, 747, 739, 736, 2413, 754, 752, 1719, 692, 689, 681, 2371, 678, 2369, 700, 697, 694, 703, 1688, 1686, 642, 638, 2343, 631, 2341, 627, 2338, 651, 646, 643, 2345, 654, 652, 1652, 1650, 1647, 1654, 601, 599, 2322, 596, 2321, 594, 2319, 2317, 611, 610, 608, 606, 2324, 603, 2323, 615, 614, 612, 1617, 1616, 1614, 1612, 616, 1619, 1618, 2575, 2538, 2536, 905, 901, 898, 909, 2509, 2507, 2504, 870, 867, 864, 860, 2512, 875, 872, 1781, 2490, 2489, 2487, 2485, 1748, 836, 834, 832, 830, 2494, 827, 2492, 843, 841, 839, 845, 1765, 1763, 2701, 2676, 2674, 2653, 2648, 2656, 2634, 2633, 2631, 2629, 1821, 2638, 2636, 2770, 2763, 2761, 2750, 2745, 2753, 2736, 2735, 2733, 2731, 1848, 2740, 2738, 2786, 2784, 591, 588, 576, 569, 566, 2296, 1590, 537, 534, 526, 2276, 522, 2274, 545, 542, 539, 548, 1572, 1570, 481, 2245, 466, 2242, 462, 2239, 492, 485, 482, 2249, 496, 494, 1534, 1531, 1528, 1538, 413, 2196, 406, 2191, 2188, 425, 419, 2202, 415, 2199, 432, 430, 427, 1472, 1467, 1464, 433, 1476, 1474, 368, 367, 2160, 365, 2159, 362, 2157, 2155, 2152, 378, 377, 375, 2166, 372, 2165, 369, 2162, 383, 381, 379, 2168, 1419, 1418, 1416, 1414, 385, 1411, 384, 1423, 1422, 1420, 1424, 2461, 802, 2441, 2439, 790, 786, 783, 794, 2409, 2406, 2403, 750, 742, 738, 2414, 756, 753, 1720, 2367, 2365, 2362, 2359, 1663, 693, 691, 684, 2373, 680, 2370, 702, 699, 696, 704, 1690, 1687, 2337, 2336, 2334, 2332, 1624, 2329, 1622, 640, 637, 2344, 634, 2342, 630, 2340, 650, 648, 645, 2346, 655, 653, 1653, 1651, 1649, 1655, 2612, 2597, 2595, 2571, 2568, 2565, 2576, 2534, 2529, 2526, 1787, 2540, 2537, 907, 904, 900, 910, 2503, 2502, GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES, 2498, 1768, 2495, 1767, 2510, 2508, 2506, 869, 866, 863, 2513, 876, 874, 1782, 2720, 2713, 2711, 2697, 2694, 2691, 2702, 2672, 2670, 2664, 1828, 2678, 2675, 2647, 2646, 2644, 2642, 1823, 2639, 1822, 2654, 2652, 2650, 2657, 2771, 1855, 2765, 2762, 1850, 1849, 2751, 2749, 2747, 2754, 353, 2148, 344, 342, 336, 2142, 332, 2140, 345, 1375, 1373, 306, 2130, 299, 2128, 295, 2125, 319, 314, 311, 2132, 1354, 1352, 1349, 1356, 262, 257, 2101, 253, 2096, 2093, 274, AudioAttributesCompat.FLAG_ALL_PUBLIC, 267, 2107, 263, 2104, 280, 278, 275, 1316, 1311, 1308, 1320, 1318, 2052, 202, 2050, 2044, 2040, 219, 2063, 212, 2060, 208, 2055, 224, 221, 2066, 1260, 1258, 1252, 231, 1248, 229, 1266, 1264, 1261, 1268, 155, 1998, 153, 1996, 1994, 1991, 1988, 165, 164, 2007, 162, 2006, 159, 2003, 2000, 172, 171, 169, 2012, 166, 2010, 1186, 1184, 1182, 1179, HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION, 1176, 173, 1192, 1191, 1189, 1187, 176, 1194, 1193, 2313, 2307, 2305, 592, 589, 2294, 2292, 2289, 578, 572, 568, 2297, 580, 1591, 2272, 2267, 2264, 1547, 538, 536, 529, 2278, 525, 2275, 547, 544, 541, 1574, 1571, 2237, 2235, 2229, 1493, 2225, 1489, 478, 2247, 470, 2244, 465, 2241, 493, 488, 484, 2250, 498, 495, 1536, 1533, 1530, 1539, 2187, 2186, 2184, 2182, 1432, 2179, 1430, 2176, 1427, 414, 412, 2197, 409, 2195, 405, 2193, 2190, 426, 424, 421, 2203, 418, 2201, 431, 429, 1473, 1471, 1469, 1466, 434, 1477, 1475, 2478, 2472, 2470, 2459, 2457, 2454, 2462, 803, 2437, 2432, 2429, 1726, 2443, 2440, 792, 789, 785, 2401, 2399, 2393, 1702, 2389, 1699, 2411, 2408, 2405, 745, 741, 2415, 758, 755, 1721, 2358, 2357, 2355, 2353, 1661, 2350, 1660, 2347, 1657, 2368, 2366, 2364, 2361, 1666, 690, 687, 2374, 683, 2372, 701, 698, 705, 1691, 1689, 2619, 2617, 2610, 2608, 2605, 2613, 2593, 2588, 2585, 1803, 2599, 2596, 2563, 2561, 2555, 1797, 2551, 1795, 2573, 2570, 2567, 2577, 2525, 2524, 2522, 2520, 1786, 2517, 1785, 2514, 1783, 2535, 2533, 2531, 2528, 1788, 2541, 2539, 906, 903, 911, 2721, 1844, 2715, 2712, 1838, 1836, 2699, 2696, 2693, 2703, 1827, 1826, 1824, 2673, 2671, 2669, 2666, 1829, 2679, 2677, 1858, 1857, 2772, 1854, 1853, 1851, 1856, 2766, 2764, 143, 1987, 139, 1986, 135, 133, 131, 1984, 128, 1983, 125, 1981, 138, 137, 136, 1985, 1133, 1132, 1130, 112, 110, 1974, 107, 1973, 104, 1971, 1969, 122, 121, 119, 117, 1977, 114, 1976, 124, 1115, 1114, 1112, 1110, 1117, 1116, 84, 83, 1953, 81, 1952, 78, 1950, 1948, 1945, 94, 93, 91, 1959, 88, 1958, 85, 1955, 99, 97, 95, 1961, 1086, 1085, 1083, 1081, 1078, 100, 1090, 1089, 1087, 1091, 49, 47, 1917, 44, 1915, 1913, 1910, 1907, 59, 1926, 56, 1925, 53, 1922, 1919, 66, 64, 1931, 61, 1929, 1042, 1040, 1038, 71, 1035, 70, 1032, 68, 1048, 1047, 1045, 1043, 1050, 1049, 12, 10, 1869, 1867, 1864, 1861, 21, 1880, 19, 1877, 1874, 1871, 28, 1888, 25, 1886, 22, 1883, 982, 980, 977, 974, 32, 30, 991, 989, 987, 984, 34, 995, 994, 992, 2151, 2150, 2147, 2146, 2144, 356, 355, 354, 2149, 2139, 2138, 2136, 2134, 1359, 343, 341, 338, 2143, 335, 2141, 348, 347, 346, 1376, 1374, 2124, 2123, 2121, 2119, 1326, 2116, 1324, 310, 308, 305, 2131, 302, 2129, 298, 2127, 320, 318, 316, 313, 2133, 322, 321, 1355, 1353, 1351, 1357, 2092, 2091, 2089, 2087, 1276, 2084, 1274, 2081, 1271, 259, 2102, 256, 2100, 252, 2098, 2095, 272, 269, 2108, 266, 2106, 281, 279, 277, 1317, 1315, 1313, 1310, 282, 1321, 1319, 2039, 2037, 2035, 2032, 1203, 2029, 1200, 1197, 207, 2053, 205, 2051, 201, 2049, 2046, 2043, 220, 218, 2064, 215, 2062, 211, 2059, 228, 226, 223, 2069, 1259, 1257, 1254, 232, 1251, 230, 1267, 1265, 1263, 2316, 2315, 2312, 2311, 2309, 2314, 2304, 2303, 2301, 2299, 1593, 2308, 2306, 590, 2288, 2287, 2285, 2283, 1578, 2280, 1577, 2295, 2293, 2291, 579, 577, 574, 571, 2298, 582, 581, 1592, 2263, 2262, 2260, 2258, 1545, 2255, 1544, 2252, 1541, 2273, 2271, 2269, 2266, 1550, 535, 532, 2279, 528, 2277, 546, 543, 549, 1575, 1573, 2224, 2222, 2220, 1486, 2217, 1485, 2214, 1482, 1479, 2238, 2236, 2234, 2231, 1496, 2228, 1492, 480, 477, 2248, 473, 2246, 469, 2243, 490, 487, 2251, 497, 1537, 1535, 1532, 2477, 2476, 2474, 2479, 2469, 2468, 2466, 2464, 1730, 2473, 2471, 2453, 2452, 2450, 2448, 1729, 2445, 1728, 2460, 2458, 2456, 2463, 805, 804, 2428, 2427, 2425, 2423, 1725, 2420, 1724, 2417, 1722, 2438, 2436, 2434, 2431, 1727, 2444, 2442, 793, 791, 788, 795, 2388, 2386, 2384, 1697, 2381, 1696, 2378, 1694, 1692, 2402, 2400, 2398, 2395, 1703, 2392, 1701, 2412, 2410, 2407, 751, 748, 744, 2416, 759, 757, 1807, 2620, 2618, 1806, 1805, 2611, 2609, 2607, 2614, 1802, 1801, 1799, 2594, 2592, 2590, 2587, 1804, 2600, 2598, 1794, 1793, 1791, 1789, 2564, 2562, 2560, 2557, 1798, 2554, 1796, 2574, 2572, 2569, 2578, 1847, 1846, 2722, 1843, 1842, 1840, 1845, 2716, 2714, 1835, 1834, 1832, 1830, 1839, 1837, 2700, 2698, 2695, 2704, 1817, 1811, 1810, 897, 862, 1777, 829, 826, 838, 1760, 1758, 808, 2481, 1741, 1740, 1738, 1743, 2624, 1818, 2726, 2776, 782, 740, 737, 1715, 686, 679, 695, 1682, 1680, 639, 628, 2339, 647, 644, 1645, 1643, 1640, 1648, 602, 600, 597, 595, 2320, 593, 2318, 609, 607, 604, 1611, 1610, 1608, 1606, 613, 1615, 1613, 2328, 926, 924, 892, 886, 899, 857, 850, 2505, 1778, 824, 823, 821, 819, 2488, 818, 2486, 833, 831, 828, 840, 1761, 1759, 2649, 2632, 2630, 2746, 2734, 2732, 2782, 2781, 570, 567, 1587, 531, 527, 523, 540, 1566, 1564, 476, 467, 463, 2240, 486, 483, 1524, 1521, 1518, 1529, 411, 403, 2192, 399, 2189, 423, 416, 1462, 1457, 1454, 428, 1468, 1465, 2210, 366, 363, 2158, 360, 2156, 357, 2153, 376, 373, 370, 2163, 1410, 1409, 1407, 1405, 382, 1402, 380, 1417, 1415, 1412, 1421, 2175, 2174, 777, 774, 771, 784, 732, 725, 722, 2404, 743, 1716, 676, 674, 668, 2363, 665, 2360, 685, 1684, 1681, 626, 624, 622, 2335, 620, 2333, 617, 2330, 641, 635, 649, 1646, 1644, 1642, 2566, 928, 925, 2530, 2527, 894, 891, 888, 2501, 2499, 2496, 858, 856, 854, 851, 1779, 2692, 2668, 2665, 2645, 2643, 2640, 2651, 2768, 2759, 2757, 2744, 2743, 2741, 2748, 352, 1382, 340, 337, 333, 1371, 1369, 307, 300, 296, 2126, 315, 312, 1347, 1342, 1350, 261, 258, 250, 2097, 246, 2094, 271, 268, 264, 1306, 1301, 1298, 276, 1312, 1309, 2115, 203, 2048, 195, 2045, 191, 2041, 213, 209, 2056, 1246, 1244, 1238, HideBottomViewOnScrollBehavior.ENTER_ANIMATION_DURATION, 1234, 222, 1256, 1253, 1249, 1262, 2080, 2079, 154, 1997, FontUtils.MAX_FONT_SCALING, 1995, 147, 1992, 1989, 163, 160, 2004, 156, 2001, 1175, 1174, 1172, 1170, 1167, 170, 1164, 167, 1185, 1183, 1180, 1177, 174, 1190, 1188, 2025, 2024, 2022, 587, 586, 564, 559, 556, 2290, 573, 1588, 520, 518, 512, 2268, 508, 2265, 530, 1568, 1565, 461, 457, 2233, 450, 2230, 446, 2226, 479, 471, 489, 1526, 1523, 1520, 397, 395, 2185, 392, 2183, 389, 2180, 2177, 410, 2194, 402, 422, 1463, 1461, 1459, 1456, 1470, 2455, 799, 2433, 2430, 779, 776, 773, 2397, 2394, 2390, 734, 728, 724, 746, 1717, 2356, 2354, 2351, 2348, 1658, 677, 675, 673, 670, 667, 688, 1685, 1683, 2606, 2589, 2586, 2559, 2556, 2552, 927, 2523, 2521, 2518, 2515, 1784, 2532, 895, 893, 890, 2718, 2709, 2707, 2689, 2687, 2684, 2663, 2662, 2660, 2658, 1825, 2667, 2769, 1852, 2760, 2758, 142, 141, 1139, 1138, 134, 132, 129, 126, 1982, 1129, 1128, 1126, 1131, 113, 111, 108, 105, 1972, 101, 1970, 120, 118, 115, 1109, 1108, 1106, 1104, 123, 1113, 1111, 82, 79, 1951, 75, 1949, 72, 1946, 92, 89, 86, 1956, 1077, 1076, 1074, 1072, 98, 1069, 96, 1084, 1082, 1079, 1088, 1968, 1967, 48, 45, 1916, 42, 1914, 39, 1911, 1908, 60, 57, 54, 1923, 50, 1920, 1031, 1030, 1028, 1026, 67, AudioAttributesCompat.FLAG_ALL, 65, PointerIconCompat.TYPE_GRAB, 62, 1041, 1039, 1036, 1033, 69, 1046, 1044, 1944, 1943, 1941, 11, 9, 1868, 7, 1865, 1862, 1859, 20, 1878, 16, 1875, 13, 1872, 970, 968, 966, 963, 29, 960, 26, 23, 983, 981, 978, 975, 33, 971, 31, 990, 988, 985, 1906, 1904, 1902, 993, 351, 2145, 1383, 331, 330, 328, 326, 2137, 323, 2135, 339, 1372, 1370, 294, 293, 291, 289, 2122, 286, 2120, 283, 2117, 309, 303, 317, 1348, 1346, 1344, 245, 244, 242, 2090, 239, 2088, 236, 2085, 2082, 260, 2099, 249, 270, 1307, 1305, 1303, 1300, 1314, 189, 2038, 186, 2036, 183, 2033, 2030, 2026, 206, 198, 2047, 194, 216, 1247, 1245, 1243, 1240, 227, 1237, 1255, 2310, 2302, 2300, 2286, 2284, 2281, 565, 563, 561, 558, 575, 1589, 2261, 2259, 2256, 2253, 1542, 521, 519, 517, 514, 2270, FrameMetricsAggregator.EVERY_DURATION, 533, 1569, 1567, 2223, 2221, 2218, 2215, 1483, 2211, 1480, 459, 456, 453, 2232, 449, 474, 491, 1527, 1525, 1522, 2475, 2467, 2465, 2451, 2449, 2446, 801, 800, 2426, 2424, 2421, 2418, 1723, 2435, 780, 778, 775, 2387, 2385, 2382, 2379, 1695, 2375, 1693, 2396, 735, 733, 730, 727, 749, 1718, 2616, 2615, 2604, 2603, 2601, 2584, 2583, 2581, 2579, ModelInvite.Settings.HALF_HOUR, 2591, 2550, 2549, 2547, 2545, 1792, 2542, 1790, 2558, 929, 2719, 1841, 2710, 2708, 1833, 1831, 2690, 2688, 2686, 1815, 1809, 1808, 1774, 1756, 1754, 1737, 1736, 1734, 1739, 1816, 1711, 1676, 1674, 633, 629, 1638, 1636, 1633, 1641, 598, 1605, 1604, 1602, 1600, 605, 1609, 1607, 2327, 887, 853, 1775, 822, 820, 1757, 1755, 1584, 524, 1560, 1558, 468, 464, 1514, 1511, 1508, 1519, 408, 404, 400, 1452, 1447, 1444, 417, 1458, 1455, 2208, 364, 361, 358, 2154, 1401, 1400, 1398, 1396, 374, 1393, 371, 1408, 1406, 1403, 1413, 2173, 2172, 772, 726, 723, 1712, 672, 669, 666, 682, 1678, 1675, 625, 623, 621, 618, 2331, 636, 632, 1639, 1637, 1635, 920, 918, 884, 880, 889, 849, 848, 847, 846, 2497, 855, 852, 1776, 2641, 2742, 2787, 1380, 334, 1367, 1365, 301, 297, 1340, 1338, 1335, 1343, 255, 251, 247, 1296, 1291, 1288, 265, 1302, 1299, 2113, 204, 196, 192, 2042, 1232, 1230, 1224, 214, 1220, 210, 1242, 1239, 1235, 1250, 2077, 2075, 151, 148, 1993, 144, 1990, 1163, 1162, 1160, 1158, 1155, 161, 1152, 157, 1173, 1171, 1168, 1165, 168, 1181, 1178, 2021, 2020, 2018, 2023, 585, 560, 557, 1585, 516, 509, 1562, 1559, 458, 447, 2227, 472, 1516, 1513, 1510, 398, 396, 393, 390, 2181, 386, 2178, 407, 1453, 1451, 1449, 1446, 420, 1460, 2209, 769, 764, 720, 712, 2391, 729, 1713, 664, 663, 661, 659, 2352, 656, 2349, 671, 1679, 1677, 2553, 922, 919, 2519, 2516, 885, 883, 881, 2685, 2661, 2659, 2767, 2756, 2755, 140, 1137, 1136, 130, 127, 1125, 1124, 1122, 1127, 109, 106, 102, 1103, 1102, 1100, 1098, 116, 1107, 1105, 1980, 80, 76, 73, 1947, 1068, 1067, 1065, 1063, 90, 1060, 87, 1075, 1073, 1070, WidgetEditUserOrGuildMemberProfile.MAX_BANNER_IMAGE_SIZE, 1966, 1965, 46, 43, 40, 1912, 36, 1909, PointerIconCompat.TYPE_ZOOM_OUT, PointerIconCompat.TYPE_ZOOM_IN, PointerIconCompat.TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW, PointerIconCompat.TYPE_HORIZONTAL_DOUBLE_ARROW, 58, PointerIconCompat.TYPE_COPY, 55, PointerIconCompat.TYPE_TEXT, 51, 1029, 1027, 1024, PointerIconCompat.TYPE_GRABBING, 63, 1037, 1034, 1940, 1939, 1937, 1942, 8, 1866, 4, 1863, 1, 1860, 956, 954, 952, 949, 946, 17, 14, 969, 967, 964, 961, 27, 957, 24, 979, 976, 972, 1901, 1900, 1898, 1896, 986, 1905, 1903, 350, 349, 1381, 329, 327, 324, 1368, 1366, 292, 290, 287, 284, 2118, 304, 1341, 1339, 1337, 1345, 243, 240, 237, 2086, 233, 2083, 254, 1297, 1295, 1293, 1290, 1304, 2114, 190, 187, 184, 2034, BaseTransientBottomBar.ANIMATION_FADE_DURATION, 2031, 177, 2027, 199, 1233, 1231, 1229, 1226, 217, 1223, 1241, 2078, 2076, 584, 555, 554, 552, 550, 2282, 562, 1586, 507, 506, 504, 502, 2257, 499, 2254, 515, 1563, 1561, 445, 443, 441, 2219, 438, 2216, 435, 2212, 460, 454, 475, 1517, 1515, 1512, 2447, 798, 797, 2422, 2419, 770, 768, 766, 2383, 2380, 2376, 721, 719, 717, 714, 731, 1714, 2602, 2582, 2580, 2548, 2546, 2543, 923, 921, 2717, 2706, 2705, 2683, 2682, 2680, 1771, 1752, 1750, 1733, 1732, 1731, 1735, 1814, 1707, 1670, 1668, 1631, 1629, 1626, 1634, 1599, 1598, 1596, 1594, 1603, 1601, 2326, 1772, 1753, 1751, 1581, 1554, 1552, 1504, 1501, 1498, 1509, 1442, 1437, 1434, 401, 1448, 1445, 2206, 1392, 1391, 1389, 1387, 1384, 359, 1399, 1397, 1394, 1404, 2171, 2170, 1708, 1672, 1669, 619, 1632, 1630, 1628, 1773, 1378, 1363, 1361, 1333, 1328, 1336, 1286, 1281, 1278, 248, 1292, 1289, 2111, 1218, 1216, 1210, 197, 1206, 193, 1228, 1225, 1221, 1236, 2073, 2071, 1151, 1150, 1148, 1146, 152, 1143, 149, 1140, 145, 1161, 1159, 1156, 1153, 158, 1169, 1166, 2017, 2016, 2014, 2019, 1582, 510, 1556, 1553, 452, 448, 1506, 1500, 394, 391, 387, 1443, 1441, 1439, 1436, 1450, 2207, 765, 716, 713, 1709, 662, 660, 657, 1673, 1671, 916, 914, 879, 878, 877, 882, 1135, 1134, 1121, 1120, 1118, 1123, 1097, 1096, 1094, 1092, 103, 1101, 1099, 1979, 1059, 1058, 1056, 1054, 77, 1051, 74, 1066, 1064, 1061, 1071, 1964, 1963, PointerIconCompat.TYPE_CROSSHAIR, PointerIconCompat.TYPE_CELL, PointerIconCompat.TYPE_WAIT, PointerIconCompat.TYPE_HAND, RoomDatabase.MAX_BIND_PARAMETER_CNT, 41, 996, 37, PointerIconCompat.TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW, PointerIconCompat.TYPE_VERTICAL_DOUBLE_ARROW, PointerIconCompat.TYPE_NO_DROP, PointerIconCompat.TYPE_VERTICAL_TEXT, 52, InputDeviceCompat.SOURCE_GAMEPAD, 1022, 1936, 1935, 1933, 1938, 942, 940, 938, 935, 932, 5, 2, 955, 953, 950, 947, 18, 943, 15, 965, 962, 958, 1895, 1894, 1892, 1890, 973, 1899, 1897, 1379, 325, 1364, 1362, ScreenShareManager.THUMBNAIL_HEIGHT_PX, 285, 1334, 1332, 1330, 241, 238, 234, 1287, 1285, 1283, 1280, 1294, 2112, 188, 185, 181, 178, 2028, 1219, 1217, 1215, 1212, 200, 1209, 1227, 2074, 2072, 583, 553, 551, 1583, 505, 503, 500, InputDeviceCompat.SOURCE_DPAD, 1557, 1555, 444, 442, 439, 436, 2213, 455, 451, 1507, 1505, 1502, 796, 763, 762, 760, 767, 711, 710, 708, 706, 2377, 718, 715, 1710, 2544, 917, 915, 2681, 1627, 1597, 1595, 2325, 1769, 1749, 1747, 1499, 1438, 1435, 2204, 1390, 1388, 1385, 1395, 2169, 2167, 1704, 1665, 1662, 1625, 1623, 1620, 1770, 1329, 1282, 1279, 2109, 1214, 1207, 1222, 2068, 2065, 1149, 1147, 1144, 1141, 146, 1157, 1154, 2013, 2011, 2008, 2015, 1579, 1549, 1546, 1495, 1487, 1433, 1431, 1428, 1425, 388, 1440, 2205, 1705, 658, 1667, 1664, 1119, 1095, 1093, 1978, 1057, 1055, 1052, 1062, 1962, 1960, 1005, PointerIconCompat.TYPE_HELP, 1000, 997, 38, PointerIconCompat.TYPE_ALL_SCROLL, PointerIconCompat.TYPE_ALIAS, 1932, 1930, 1927, 1934, 941, 939, 936, 933, 6, 930, 3, 951, 948, 944, 1889, 1887, 1884, 1881, 959, 1893, 1891, 35, 1377, 1360, 1358, 1327, 1325, 1322, 1331, 1277, 1275, 1272, 1269, 235, 1284, 2110, 1205, 1204, 1201, 1198, 182, 1195, 179, 1213, 2070, 2067, 1580, 501, 1551, 1548, 440, 437, 1497, 1494, 1490, 1503, 761, 709, 707, 1706, 913, 912, 2198, 1386, 2164, 2161, 1621, 1766, 2103, 1208, 2058, 2054, 1145, 1142, 2005, 2002, 1999, 2009, 1488, 1429, 1426, 2200, 1698, 1659, 1656, 1975, 1053, 1957, 1954, PointerIconCompat.TYPE_CONTEXT_MENU, 998, 1924, 1921, 1918, 1928, 937, 934, 931, 1879, 1876, 1873, 1870, 945, 1885, 1882, 1323, 1273, 1270, 2105, 1202, 1199, 1196, 1211, 2061, 2057, 1576, 1543, 1540, 1484, 1481, 1478, 1491, 1700}; + + public static int a(int i) { + int binarySearch = Arrays.binarySearch(f1860b, i & 262143); + if (binarySearch < 0) { + return -1; + } + return (c[binarySearch] - 1) % 929; + } + + public static int[] b(Collection collection) { + if (collection.isEmpty()) { + return a; + } + int[] iArr = new int[collection.size()]; + int i = 0; + for (Integer num : collection) { + iArr[i] = num.intValue(); + i++; + } + return iArr; + } +} diff --git a/app/src/main/java/b/i/e/r/b.java b/app/src/main/java/b/i/e/r/b.java new file mode 100644 index 0000000000..a7a8e34edb --- /dev/null +++ b/app/src/main/java/b/i/e/r/b.java @@ -0,0 +1,598 @@ +package b.i.e.r; + +import b.i.e.c; +import b.i.e.d; +import b.i.e.i; +import b.i.e.k; +import b.i.e.n.e; +import b.i.e.r.d.a; +import b.i.e.r.d.f; +import b.i.e.r.d.g; +import b.i.e.r.d.h; +import b.i.e.r.d.j; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.lang.reflect.Array; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +/* compiled from: PDF417Reader */ +public final class b implements i { + public static int b(k kVar, k kVar2) { + if (kVar == null || kVar2 == null) { + return 0; + } + return (int) Math.abs(kVar.a - kVar2.a); + } + + public static int c(k kVar, k kVar2) { + if (kVar == null || kVar2 == null) { + return Integer.MAX_VALUE; + } + return (int) Math.abs(kVar.a - kVar2.a); + } + + /* JADX WARNING: Code restructure failed: missing block: B:312:0x064c, code lost: + r3 = new com.google.zxing.Result(r2.c, r2.a, r4, b.i.e.a.PDF_417); + r3.b(b.i.e.j.ERROR_CORRECTION_LEVEL, r2.e); + r2 = (b.i.e.r.c) r2.f; + */ + /* JADX WARNING: Code restructure failed: missing block: B:313:0x0662, code lost: + if (r2 == null) goto L_0x0669; + */ + /* JADX WARNING: Code restructure failed: missing block: B:314:0x0664, code lost: + r3.b(b.i.e.j.PDF417_EXTRA_METADATA, r2); + */ + /* JADX WARNING: Code restructure failed: missing block: B:315:0x0669, code lost: + r0.add(r3); + r3 = r3; + r2 = 0; + r5 = 2; + */ + /* JADX WARNING: Code restructure failed: missing block: B:31:0x015e, code lost: + if (r6.e != r7.e) goto L_0x0163; + */ + /* JADX WARNING: Code restructure failed: missing block: B:52:0x01bd, code lost: + r10 = r34; + */ + /* JADX WARNING: Removed duplicated region for block: B:127:0x02c2 */ + /* JADX WARNING: Removed duplicated region for block: B:132:0x0310 */ + /* JADX WARNING: Removed duplicated region for block: B:349:0x01c5 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x016f */ + /* JADX WARNING: Removed duplicated region for block: B:44:0x01a2 */ + @Override // b.i.e.i + public Result a(c cVar, Map map) throws NotFoundException, FormatException, ChecksumException { + b.i.e.r.d.c cVar2; + f fVar; + int i; + boolean z2; + int i2; + int i3; + b.i.e.r.d.c cVar3; + Iterator it; + Iterator it2; + int i4; + b.i.e.r.d.d dVar; + int i5; + int i6; + int i7; + int i8; + b.i.e.r.d.c cVar4; + int i9; + g gVar; + int i10; + int i11; + b.i.e.r.d.c cVar5; + int i12; + a aVar; + ArrayList arrayList = new ArrayList(); + b.i.e.n.b a = cVar.a(); + char c = 0; + List a2 = b.i.e.r.e.a.a(false, a); + int i13 = 2; + if (((ArrayList) a2).isEmpty()) { + int i14 = a.j; + int i15 = a.k; + b.i.e.n.b bVar = new b.i.e.n.b(i14, i15, a.l, (int[]) a.m.clone()); + b.i.e.n.a aVar2 = new b.i.e.n.a(i14); + b.i.e.n.a aVar3 = new b.i.e.n.a(i14); + for (int i16 = 0; i16 < (i15 + 1) / 2; i16++) { + aVar2 = bVar.h(i16, aVar2); + int i17 = (i15 - 1) - i16; + aVar3 = bVar.h(i17, aVar3); + aVar2.i(); + aVar3.i(); + int[] iArr = aVar3.j; + int[] iArr2 = bVar.m; + int i18 = bVar.l; + System.arraycopy(iArr, 0, iArr2, i16 * i18, i18); + int[] iArr3 = aVar2.j; + int[] iArr4 = bVar.m; + int i19 = bVar.l; + System.arraycopy(iArr3, 0, iArr4, i17 * i19, i19); + } + a2 = b.i.e.r.e.a.a(false, bVar); + a = bVar; + } + Iterator it3 = a2.iterator(); + while (it3.hasNext()) { + k[] next = it3.next(); + k kVar = next[4]; + k kVar2 = next[5]; + k kVar3 = next[6]; + k kVar4 = next[7]; + int min = Math.min(Math.min(c(next[c], next[4]), (c(next[6], next[i13]) * 17) / 18), Math.min(c(next[1], next[5]), (c(next[7], next[3]) * 17) / 18)); + int max = Math.max(Math.max(b(next[c], next[4]), (b(next[6], next[i13]) * 17) / 18), Math.max(b(next[1], next[5]), (b(next[7], next[3]) * 17) / 18)); + b.i.e.r.d.k.a aVar4 = j.a; + b.i.e.r.d.c cVar6 = new b.i.e.r.d.c(a, kVar, kVar2, kVar3, kVar4); + f fVar2 = null; + h hVar = null; + h hVar2 = null; + int i20 = 0; + while (true) { + if (i20 >= i13) { + cVar2 = cVar6; + fVar = fVar2; + break; + } + if (kVar != null) { + i12 = i20; + cVar5 = cVar6; + hVar = j.d(a, cVar6, kVar, true, min, max); + } else { + i12 = i20; + cVar5 = cVar6; + } + if (kVar3 != null) { + hVar2 = j.d(a, cVar5, kVar3, false, min, max); + } + if (!(hVar == null && hVar2 == null)) { + if (hVar != null && (aVar = hVar.c()) != null) { + if (hVar2 != null) { + a c2 = hVar2.c(); + if (c2 != null) { + if (aVar.a != c2.a) { + if (aVar.f1861b != c2.f1861b) { + } + } + } + } + if (aVar != null) { + } + } else if (hVar2 != null) { + aVar = hVar2.c(); + if (aVar != null) { + b.i.e.r.d.c a3 = j.a(hVar); + b.i.e.r.d.c a4 = j.a(hVar2); + if (a3 == null) { + a3 = a4; + } else if (a4 != null) { + a3 = new b.i.e.r.d.c(a3.a, a3.f1862b, a3.c, a4.d, a4.e); + } + fVar2 = new f(aVar, a3); + if (fVar2 == null) { + if (i12 != 0 || (cVar6 = fVar2.c) == null) { + break; + } + cVar2 = cVar5; + if (cVar6.h >= cVar2.h && cVar6.i <= cVar2.i) { + break; + } + i20 = i12 + 1; + hVar = hVar; + i13 = 2; + } else { + throw NotFoundException.l; + } + } + } + aVar = null; + if (aVar != null) { + } + } + fVar2 = null; + if (fVar2 == null) { + } + } + fVar2.c = cVar2; + fVar = fVar2; + hVar = hVar; + int i21 = fVar.d + 1; + g[] gVarArr = fVar.f1865b; + gVarArr[c] = hVar; + gVarArr[i21] = hVar2; + boolean z3 = hVar != null; + int i22 = min; + int i23 = 1; + while (i23 <= i21) { + int i24 = z3 ? i23 : i21 - i23; + if (fVar.f1865b[i24] == null) { + g hVar3 = (i24 == 0 || i24 == i21) ? new h(cVar2, i24 == 0) : new g(cVar2); + fVar.f1865b[i24] = hVar3; + int i25 = cVar2.h; + int i26 = i22; + int i27 = max; + int i28 = -1; + while (i25 <= cVar2.i) { + int i29 = z3 ? 1 : -1; + int i30 = i24 - i29; + if (j.e(fVar, i30)) { + it2 = it3; + g gVar2 = fVar.f1865b[i30]; + i4 = i27; + dVar = gVar2.f1866b[i25 - gVar2.a.h]; + } else { + it2 = it3; + i4 = i27; + dVar = null; + } + if (dVar != null) { + i6 = z3 ? dVar.f1863b : dVar.a; + } else { + b.i.e.r.d.d a5 = fVar.f1865b[i24].a(i25); + if (a5 != null) { + i6 = z3 ? a5.a : a5.f1863b; + } else { + if (j.e(fVar, i30)) { + a5 = fVar.f1865b[i30].a(i25); + } + if (a5 != null) { + i6 = z3 ? a5.f1863b : a5.a; + } else { + int i31 = i24; + int i32 = 0; + while (true) { + int i33 = i31 - i29; + if (j.e(fVar, i33)) { + b.i.e.r.d.d[] dVarArr = fVar.f1865b[i33].f1866b; + i5 = i25; + int i34 = 0; + for (int length = dVarArr.length; i34 < length; length = length) { + b.i.e.r.d.d dVar2 = dVarArr[i34]; + if (dVar2 != null) { + i6 = ((dVar2.f1863b - dVar2.a) * i29 * i32) + (z3 ? dVar2.f1863b : dVar2.a); + } else { + i34++; + } + } + i32++; + i31 = i33; + i25 = i5; + } else { + i5 = i25; + i6 = z3 ? fVar.c.f : fVar.c.g; + } + } + if (i6 < 0 && i6 <= cVar2.g) { + i11 = i6; + } else if (i28 == -1) { + i11 = i28; + } else { + i10 = i26; + gVar = hVar3; + i8 = i24; + i7 = i21; + i27 = i4; + i9 = i5; + cVar4 = cVar2; + i26 = i10; + i25 = i9 + 1; + hVar3 = gVar; + it3 = it2; + cVar2 = cVar4; + i24 = i8; + i21 = i7; + } + i9 = i5; + cVar4 = cVar2; + i8 = i24; + gVar = hVar3; + i7 = i21; + b.i.e.r.d.d c3 = j.c(a, cVar2.f, cVar2.g, z3, i11, i9, i26, i4); + if (c3 != null) { + gVar.f1866b[i9 - gVar.a.h] = c3; + int min2 = Math.min(i26, c3.f1863b - c3.a); + i27 = Math.max(i4, c3.f1863b - c3.a); + i26 = min2; + i28 = i11; + i25 = i9 + 1; + hVar3 = gVar; + it3 = it2; + cVar2 = cVar4; + i24 = i8; + i21 = i7; + } else { + i27 = i4; + i10 = i26; + i26 = i10; + i25 = i9 + 1; + hVar3 = gVar; + it3 = it2; + cVar2 = cVar4; + i24 = i8; + i21 = i7; + } + } + } + } + i5 = i25; + if (i6 < 0) { + } + if (i28 == -1) { + } + } + it = it3; + cVar3 = cVar2; + i3 = i21; + max = i27; + i22 = i26; + } else { + it = it3; + cVar3 = cVar2; + i3 = i21; + } + i23++; + it3 = it; + cVar2 = cVar3; + i21 = i3; + } + int i35 = fVar.a.e; + int[] iArr5 = new int[2]; + iArr5[1] = fVar.d + 2; + iArr5[0] = i35; + b.i.e.r.d.b[][] bVarArr = (b.i.e.r.d.b[][]) Array.newInstance(b.i.e.r.d.b.class, iArr5); + for (int i36 = 0; i36 < bVarArr.length; i36++) { + for (int i37 = 0; i37 < bVarArr[i36].length; i37++) { + bVarArr[i36][i37] = new b.i.e.r.d.b(); + } + } + char c4 = 0; + fVar.a(fVar.f1865b[0]); + int i38 = 1; + fVar.a(fVar.f1865b[fVar.d + 1]); + int i39 = 928; + while (true) { + g[] gVarArr2 = fVar.f1865b; + if (gVarArr2[c4] != null) { + int i40 = fVar.d + i38; + if (gVarArr2[i40] != null) { + b.i.e.r.d.d[] dVarArr2 = gVarArr2[c4].f1866b; + b.i.e.r.d.d[] dVarArr3 = gVarArr2[i40].f1866b; + for (int i41 = 0; i41 < dVarArr2.length; i41++) { + if (!(dVarArr2[i41] == null || dVarArr3[i41] == null || dVarArr2[i41].e != dVarArr3[i41].e)) { + for (int i42 = 1; i42 <= fVar.d; i42++) { + b.i.e.r.d.d dVar3 = fVar.f1865b[i42].f1866b[i41]; + if (dVar3 != null) { + dVar3.e = dVarArr2[i41].e; + if (!dVar3.a()) { + fVar.f1865b[i42].f1866b[i41] = null; + } + } + } + } + } + } + } + g[] gVarArr3 = fVar.f1865b; + int i43 = 0; + if (gVarArr3[0] != null) { + b.i.e.r.d.d[] dVarArr4 = gVarArr3[0].f1866b; + int i44 = 0; + for (int i45 = 0; i45 < dVarArr4.length; i45++) { + if (dVarArr4[i45] != null) { + int i46 = dVarArr4[i45].e; + int i47 = i44; + int i48 = 0; + for (int i49 = 1; i49 < fVar.d + 1 && i48 < 2; i49++) { + b.i.e.r.d.d dVar4 = fVar.f1865b[i49].f1866b[i45]; + if (dVar4 != null) { + i48 = f.b(i46, i48, dVar4); + if (!dVar4.a()) { + i47++; + } + } + } + i44 = i47; + } + } + i43 = i44; + } + g[] gVarArr4 = fVar.f1865b; + int i50 = fVar.d + 1; + if (gVarArr4[i50] == null) { + i = 0; + } else { + b.i.e.r.d.d[] dVarArr5 = gVarArr4[i50].f1866b; + i = 0; + for (int i51 = 0; i51 < dVarArr5.length; i51++) { + if (dVarArr5[i51] != null) { + int i52 = dVarArr5[i51].e; + int i53 = i; + int i54 = 0; + for (int i55 = fVar.d + 1; i55 > 0 && i54 < 2; i55--) { + b.i.e.r.d.d dVar5 = fVar.f1865b[i55].f1866b[i51]; + if (dVar5 != null) { + i54 = f.b(i52, i54, dVar5); + if (!dVar5.a()) { + i53++; + } + } + } + i = i53; + } + } + } + int i56 = i43 + i; + if (i56 == 0) { + i56 = 0; + } else { + for (int i57 = 1; i57 < fVar.d + 1; i57++) { + b.i.e.r.d.d[] dVarArr6 = fVar.f1865b[i57].f1866b; + for (int i58 = 0; i58 < dVarArr6.length; i58++) { + if (dVarArr6[i58] != null && !dVarArr6[i58].a()) { + b.i.e.r.d.d dVar6 = dVarArr6[i58]; + g[] gVarArr5 = fVar.f1865b; + b.i.e.r.d.d[] dVarArr7 = gVarArr5[i57 - 1].f1866b; + int i59 = i57 + 1; + b.i.e.r.d.d[] dVarArr8 = gVarArr5[i59] != null ? gVarArr5[i59].f1866b : dVarArr7; + b.i.e.r.d.d[] dVarArr9 = new b.i.e.r.d.d[14]; + dVarArr9[2] = dVarArr7[i58]; + dVarArr9[3] = dVarArr8[i58]; + if (i58 > 0) { + int i60 = i58 - 1; + dVarArr9[0] = dVarArr6[i60]; + dVarArr9[4] = dVarArr7[i60]; + dVarArr9[5] = dVarArr8[i60]; + } + if (i58 > 1) { + int i61 = i58 - 2; + dVarArr9[8] = dVarArr6[i61]; + dVarArr9[10] = dVarArr7[i61]; + dVarArr9[11] = dVarArr8[i61]; + } + if (i58 < dVarArr6.length - 1) { + int i62 = i58 + 1; + dVarArr9[1] = dVarArr6[i62]; + dVarArr9[6] = dVarArr7[i62]; + dVarArr9[7] = dVarArr8[i62]; + } + if (i58 < dVarArr6.length - 2) { + int i63 = i58 + 2; + dVarArr9[9] = dVarArr6[i63]; + dVarArr9[12] = dVarArr7[i63]; + dVarArr9[13] = dVarArr8[i63]; + } + int i64 = 0; + for (int i65 = 14; i64 < i65; i65 = 14) { + b.i.e.r.d.d dVar7 = dVarArr9[i64]; + if (dVar7 != null && dVar7.a() && dVar7.c == dVar6.c) { + dVar6.e = dVar7.e; + z2 = true; + } else { + z2 = false; + } + if (z2) { + break; + } + i64++; + } + } + } + } + } + if (i56 <= 0 || i56 >= i39) { + break; + } + i39 = i56; + c4 = 0; + i38 = 1; + } + g[] gVarArr6 = fVar.f1865b; + int i66 = 0; + for (g gVar3 : gVarArr6) { + if (gVar3 != null) { + b.i.e.r.d.d[] dVarArr10 = gVar3.f1866b; + for (b.i.e.r.d.d dVar8 : dVarArr10) { + if (dVar8 != null && (i2 = dVar8.e) >= 0 && i2 < bVarArr.length) { + bVarArr[i2][i66].b(dVar8.d); + } + } + } + i66++; + } + b.i.e.r.d.b bVar2 = bVarArr[0][1]; + int[] a6 = bVar2.a(); + int i67 = fVar.d; + a aVar5 = fVar.a; + int i68 = (i67 * aVar5.e) - (2 << aVar5.f1861b); + if (a6.length == 0) { + if (i68 <= 0 || i68 > 928) { + throw NotFoundException.l; + } + bVar2.b(i68); + } else if (a6[0] != i68) { + bVar2.b(i68); + } + ArrayList arrayList2 = new ArrayList(); + int[] iArr6 = new int[(fVar.a.e * fVar.d)]; + ArrayList arrayList3 = new ArrayList(); + ArrayList arrayList4 = new ArrayList(); + for (int i69 = 0; i69 < fVar.a.e; i69++) { + int i70 = 0; + while (i70 < fVar.d) { + int i71 = i70 + 1; + int[] a7 = bVarArr[i69][i71].a(); + int i72 = (fVar.d * i69) + i70; + if (a7.length == 0) { + arrayList2.add(Integer.valueOf(i72)); + } else if (a7.length == 1) { + iArr6[i72] = a7[0]; + } else { + arrayList4.add(Integer.valueOf(i72)); + arrayList3.add(a7); + } + i70 = i71; + } + } + int size = arrayList3.size(); + int[][] iArr7 = new int[size][]; + for (int i73 = 0; i73 < size; i73++) { + iArr7[i73] = (int[]) arrayList3.get(i73); + } + int i74 = fVar.a.f1861b; + int[] b2 = a.b(arrayList2); + int[] b3 = a.b(arrayList4); + int length2 = b3.length; + int[] iArr8 = new int[length2]; + int i75 = 100; + while (true) { + int i76 = i75 - 1; + if (i75 > 0) { + for (int i77 = 0; i77 < length2; i77++) { + iArr6[b3[i77]] = iArr7[i77][iArr8[i77]]; + } + try { + e b4 = j.b(iArr6, i74, b2); + break; + } catch (ChecksumException unused) { + if (length2 != 0) { + int i78 = 0; + while (true) { + if (i78 >= length2) { + break; + } else if (iArr8[i78] < iArr7[i78].length - 1) { + iArr8[i78] = iArr8[i78] + 1; + break; + } else { + iArr8[i78] = 0; + if (i78 != length2 - 1) { + i78++; + } else { + throw ChecksumException.a(); + } + } + } + i75 = i76; + } else { + throw ChecksumException.a(); + } + } + } else { + throw ChecksumException.a(); + } + } + } + Result[] resultArr = (Result[]) arrayList.toArray(new Result[arrayList.size()]); + if (!(resultArr == null || resultArr.length == 0 || resultArr[0] == null)) { + return resultArr[0]; + } + throw NotFoundException.l; + } + + @Override // b.i.e.i + public void reset() { + } +} diff --git a/app/src/main/java/b/i/e/r/c.java b/app/src/main/java/b/i/e/r/c.java new file mode 100644 index 0000000000..e8acb87c0f --- /dev/null +++ b/app/src/main/java/b/i/e/r/c.java @@ -0,0 +1,5 @@ +package b.i.e.r; +/* compiled from: PDF417ResultMetadata */ +public final class c { + public boolean a; +} diff --git a/app/src/main/java/b/i/e/r/d/a.java b/app/src/main/java/b/i/e/r/d/a.java new file mode 100644 index 0000000000..093509ce16 --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/a.java @@ -0,0 +1,19 @@ +package b.i.e.r.d; +/* compiled from: BarcodeMetadata */ +public final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1861b; + public final int c; + public final int d; + public final int e; + + public a(int i, int i2, int i3, int i4) { + this.a = i; + this.f1861b = i4; + this.c = i2; + this.d = i3; + this.e = i2 + i3; + } +} diff --git a/app/src/main/java/b/i/e/r/d/b.java b/app/src/main/java/b/i/e/r/d/b.java new file mode 100644 index 0000000000..253640aa0c --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/b.java @@ -0,0 +1,33 @@ +package b.i.e.r.d; + +import b.i.e.r.a; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; +/* compiled from: BarcodeValue */ +public final class b { + public final Map a = new HashMap(); + + public int[] a() { + ArrayList arrayList = new ArrayList(); + int i = -1; + for (Map.Entry entry : this.a.entrySet()) { + if (entry.getValue().intValue() > i) { + i = entry.getValue().intValue(); + arrayList.clear(); + arrayList.add(entry.getKey()); + } else if (entry.getValue().intValue() == i) { + arrayList.add(entry.getKey()); + } + } + return a.b(arrayList); + } + + public void b(int i) { + Integer num = this.a.get(Integer.valueOf(i)); + if (num == null) { + num = 0; + } + this.a.put(Integer.valueOf(i), Integer.valueOf(num.intValue() + 1)); + } +} diff --git a/app/src/main/java/b/i/e/r/d/c.java b/app/src/main/java/b/i/e/r/d/c.java new file mode 100644 index 0000000000..36d81bdba8 --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/c.java @@ -0,0 +1,58 @@ +package b.i.e.r.d; + +import b.i.e.k; +import b.i.e.n.b; +import com.google.zxing.NotFoundException; +/* compiled from: BoundingBox */ +public final class c { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final k f1862b; + public final k c; + public final k d; + public final k e; + public final int f; + public final int g; + public final int h; + public final int i; + + public c(b bVar, k kVar, k kVar2, k kVar3, k kVar4) throws NotFoundException { + boolean z2 = false; + boolean z3 = kVar == null || kVar2 == null; + z2 = (kVar3 == null || kVar4 == null) ? true : z2; + if (!z3 || !z2) { + if (z3) { + kVar = new k(0.0f, kVar3.f1811b); + kVar2 = new k(0.0f, kVar4.f1811b); + } else if (z2) { + int i = bVar.j; + kVar3 = new k((float) (i - 1), kVar.f1811b); + kVar4 = new k((float) (i - 1), kVar2.f1811b); + } + this.a = bVar; + this.f1862b = kVar; + this.c = kVar2; + this.d = kVar3; + this.e = kVar4; + this.f = (int) Math.min(kVar.a, kVar2.a); + this.g = (int) Math.max(kVar3.a, kVar4.a); + this.h = (int) Math.min(kVar.f1811b, kVar3.f1811b); + this.i = (int) Math.max(kVar2.f1811b, kVar4.f1811b); + return; + } + throw NotFoundException.l; + } + + public c(c cVar) { + this.a = cVar.a; + this.f1862b = cVar.f1862b; + this.c = cVar.c; + this.d = cVar.d; + this.e = cVar.e; + this.f = cVar.f; + this.g = cVar.g; + this.h = cVar.h; + this.i = cVar.i; + } +} diff --git a/app/src/main/java/b/i/e/r/d/d.java b/app/src/main/java/b/i/e/r/d/d.java new file mode 100644 index 0000000000..1be077722e --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/d.java @@ -0,0 +1,31 @@ +package b.i.e.r.d; +/* compiled from: Codeword */ +public final class d { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1863b; + public final int c; + public final int d; + public int e = -1; + + public d(int i, int i2, int i3, int i4) { + this.a = i; + this.f1863b = i2; + this.c = i3; + this.d = i4; + } + + public boolean a() { + int i = this.e; + return i != -1 && this.c == (i % 3) * 3; + } + + public void b() { + this.e = (this.c / 3) + ((this.d / 30) * 3); + } + + public String toString() { + return this.e + "|" + this.d; + } +} diff --git a/app/src/main/java/b/i/e/r/d/e.java b/app/src/main/java/b/i/e/r/d/e.java new file mode 100644 index 0000000000..74d80c0b3f --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/e.java @@ -0,0 +1,294 @@ +package b.i.e.r.d; + +import b.c.a.y.b; +import com.google.zxing.FormatException; +import java.math.BigInteger; +/* compiled from: DecodedBitStreamParser */ +public final class e { + public static final char[] a = ";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'".toCharArray(); + + /* renamed from: b reason: collision with root package name */ + public static final char[] f1864b = "0123456789&\r\t,:#-.$/+%*=^".toCharArray(); + public static final BigInteger[] c; + + static { + BigInteger[] bigIntegerArr = new BigInteger[16]; + c = bigIntegerArr; + bigIntegerArr[0] = BigInteger.ONE; + BigInteger valueOf = BigInteger.valueOf(900); + bigIntegerArr[1] = valueOf; + int i = 2; + while (true) { + BigInteger[] bigIntegerArr2 = c; + if (i < bigIntegerArr2.length) { + bigIntegerArr2[i] = bigIntegerArr2[i - 1].multiply(valueOf); + i++; + } else { + return; + } + } + } + + public static String a(int[] iArr, int i) throws FormatException { + BigInteger bigInteger = BigInteger.ZERO; + for (int i2 = 0; i2 < i; i2++) { + bigInteger = bigInteger.add(c[(i - i2) - 1].multiply(BigInteger.valueOf((long) iArr[i2]))); + } + String bigInteger2 = bigInteger.toString(); + if (bigInteger2.charAt(0) == '1') { + return bigInteger2.substring(1); + } + throw FormatException.a(); + } + + public static int b(int[] iArr, int i, StringBuilder sb) throws FormatException { + int[] iArr2 = new int[15]; + boolean z2 = false; + int i2 = 0; + while (i < iArr[0] && !z2) { + int i3 = i + 1; + int i4 = iArr[i]; + if (i3 == iArr[0]) { + z2 = true; + } + if (i4 < 900) { + iArr2[i2] = i4; + i2++; + } else { + if (!(i4 == 900 || i4 == 901 || i4 == 928)) { + switch (i4) { + } + } + i3--; + z2 = true; + } + if ((i2 % 15 == 0 || i4 == 902 || z2) && i2 > 0) { + sb.append(a(iArr2, i2)); + i2 = 0; + } + i = i3; + } + return i; + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Code restructure failed: missing block: B:39:0x0098, code lost: + if (r13 != 900) goto L_0x009a; + */ + /* JADX WARNING: Removed duplicated region for block: B:108:0x012d A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:69:0x00f2 A[PHI: r11 + PHI: (r11v11 int) = (r11v1 int), (r11v1 int), (r11v16 int) binds: [B:65:0x00e3, B:55:0x00c6, B:41:0x009d] A[DONT_GENERATE, DONT_INLINE]] */ + /* JADX WARNING: Removed duplicated region for block: B:89:0x012a */ + public static int c(int[] iArr, int i, StringBuilder sb) { + char c2; + int i2; + int[] iArr2 = new int[((iArr[0] - i) << 1)]; + int[] iArr3 = new int[((iArr[0] - i) << 1)]; + int i3 = i; + boolean z2 = false; + int i4 = 0; + while (i3 < iArr[0] && !z2) { + int i5 = i3 + 1; + int i6 = iArr[i3]; + if (i6 < 900) { + iArr2[i4] = i6 / 30; + iArr2[i4 + 1] = i6 % 30; + i4 += 2; + } else if (i6 != 913) { + if (i6 != 928) { + switch (i6) { + case 900: + iArr2[i4] = 900; + i4++; + break; + case 901: + case 902: + break; + default: + switch (i6) { + } + } + } + i3 = i5 - 1; + z2 = true; + } else { + iArr2[i4] = 913; + i3 = i5 + 1; + iArr3[i4] = iArr[i5]; + i4++; + } + i3 = i5; + } + int i7 = 1; + int i8 = 1; + for (int i9 = 0; i9 < i4; i9++) { + int i10 = iArr2[i9]; + int h = b.h(i7); + if (h != 0) { + if (h != 1) { + if (h != 2) { + if (h != 3) { + if (h != 4) { + if (h == 5) { + if (i10 < 29) { + c2 = a[i10]; + } else { + if (!(i10 == 29 || i10 == 900)) { + if (i10 == 913) { + sb.append((char) iArr3[i9]); + } + i7 = i8; + } + i7 = 1; + c2 = 0; + if (c2 != 0) { + sb.append(c2); + } + } + } + c2 = 0; + if (c2 != 0) { + } + } else if (i10 < 26) { + c2 = (char) (i10 + 65); + } else if (i10 == 26) { + i7 = i8; + c2 = ' '; + if (c2 != 0) { + } + } + i7 = i8; + if (c2 != 0) { + } + } else if (i10 < 29) { + c2 = a[i10]; + if (c2 != 0) { + } + } else { + if (!(i10 == 29 || i10 == 900)) { + if (i10 == 913) { + sb.append((char) iArr3[i9]); + } + c2 = 0; + if (c2 != 0) { + } + } + i7 = 1; + c2 = 0; + if (c2 != 0) { + } + } + } else if (i10 < 25) { + c2 = f1864b[i10]; + if (c2 != 0) { + } + } else { + if (i10 != 900) { + if (i10 != 913) { + switch (i10) { + case 25: + i7 = 4; + break; + case 26: + c2 = ' '; + if (c2 != 0) { + } + break; + case 27: + i7 = 2; + c2 = 0; + if (c2 != 0) { + } + break; + } + } else { + sb.append((char) iArr3[i9]); + } + c2 = 0; + if (c2 != 0) { + } + } + i7 = 1; + c2 = 0; + if (c2 != 0) { + } + } + } else if (i10 < 26) { + i2 = i10 + 97; + } else { + if (i10 != 900) { + if (i10 != 913) { + switch (i10) { + case 27: + i8 = i7; + i7 = 5; + c2 = 0; + if (c2 != 0) { + } + break; + case 28: + i7 = 3; + c2 = 0; + if (c2 != 0) { + } + break; + } + } else { + sb.append((char) iArr3[i9]); + } + c2 = 0; + if (c2 != 0) { + } + } + i7 = 1; + c2 = 0; + if (c2 != 0) { + } + } + i8 = i7; + c2 = 0; + i7 = 6; + if (c2 != 0) { + } + } else if (i10 < 26) { + i2 = i10 + 65; + } else { + if (i10 != 900) { + if (i10 != 913) { + switch (i10) { + case 26: + c2 = ' '; + break; + case 27: + i7 = 2; + break; + case 28: + i7 = 3; + break; + case 29: + i8 = i7; + c2 = 0; + i7 = 6; + break; + } + if (c2 != 0) { + } + } else { + sb.append((char) iArr3[i9]); + } + c2 = 0; + if (c2 != 0) { + } + } + i7 = 1; + c2 = 0; + if (c2 != 0) { + } + } + c2 = (char) i2; + if (c2 != 0) { + } + } + return i3; + } +} diff --git a/app/src/main/java/b/i/e/r/d/f.java b/app/src/main/java/b/i/e/r/d/f.java new file mode 100644 index 0000000000..42c057a835 --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/f.java @@ -0,0 +1,134 @@ +package b.i.e.r.d; + +import b.i.e.k; +import java.util.Formatter; +/* compiled from: DetectionResult */ +public final class f { + public final a a; + + /* renamed from: b reason: collision with root package name */ + public final g[] f1865b; + public c c; + public final int d; + + public f(a aVar, c cVar) { + this.a = aVar; + int i = aVar.a; + this.d = i; + this.c = cVar; + this.f1865b = new g[(i + 2)]; + } + + public static int b(int i, int i2, d dVar) { + if (dVar.a()) { + return i2; + } + if (!(i != -1 && dVar.c == (i % 3) * 3)) { + return i2 + 1; + } + dVar.e = i; + return 0; + } + + public final void a(g gVar) { + int i; + if (gVar != null) { + h hVar = (h) gVar; + a aVar = this.a; + d[] dVarArr = hVar.f1866b; + for (d dVar : dVarArr) { + if (dVar != null) { + dVar.b(); + } + } + hVar.d(dVarArr, aVar); + c cVar = hVar.a; + boolean z2 = hVar.c; + k kVar = z2 ? cVar.f1862b : cVar.d; + k kVar2 = z2 ? cVar.c : cVar.e; + int b2 = hVar.b((int) kVar.f1811b); + int b3 = hVar.b((int) kVar2.f1811b); + int i2 = -1; + int i3 = 0; + int i4 = 1; + while (b2 < b3) { + if (dVarArr[b2] != null) { + d dVar2 = dVarArr[b2]; + int i5 = dVar2.e; + int i6 = i5 - i2; + if (i6 == 0) { + i3++; + } else { + if (i6 == 1) { + int max = Math.max(i4, i3); + i = dVar2.e; + i4 = max; + } else if (i6 < 0 || i5 >= aVar.e || i6 > b2) { + dVarArr[b2] = null; + } else { + if (i4 > 2) { + i6 *= i4 - 2; + } + boolean z3 = i6 >= b2; + for (int i7 = 1; i7 <= i6 && !z3; i7++) { + z3 = dVarArr[b2 - i7] != null; + } + if (z3) { + dVarArr[b2] = null; + } else { + i = dVar2.e; + } + } + i2 = i; + i3 = 1; + } + } + b2++; + } + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:25:0x0076, code lost: + r2 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:27:?, code lost: + r0.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:28:0x007b, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:29:0x007c, code lost: + r1.addSuppressed(r0); + */ + /* JADX WARNING: Code restructure failed: missing block: B:30:0x007f, code lost: + throw r2; + */ + public String toString() { + g[] gVarArr = this.f1865b; + g gVar = gVarArr[0]; + if (gVar == null) { + gVar = gVarArr[this.d + 1]; + } + Formatter formatter = new Formatter(); + for (int i = 0; i < gVar.f1866b.length; i++) { + formatter.format("CW %3d:", Integer.valueOf(i)); + for (int i2 = 0; i2 < this.d + 2; i2++) { + g[] gVarArr2 = this.f1865b; + if (gVarArr2[i2] == null) { + formatter.format(" | ", new Object[0]); + } else { + d dVar = gVarArr2[i2].f1866b[i]; + if (dVar == null) { + formatter.format(" | ", new Object[0]); + } else { + formatter.format(" %3d|%3d", Integer.valueOf(dVar.e), Integer.valueOf(dVar.d)); + } + } + } + formatter.format("%n", new Object[0]); + } + String formatter2 = formatter.toString(); + formatter.close(); + return formatter2; + } +} diff --git a/app/src/main/java/b/i/e/r/d/g.java b/app/src/main/java/b/i/e/r/d/g.java new file mode 100644 index 0000000000..f664dd0e49 --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/g.java @@ -0,0 +1,74 @@ +package b.i.e.r.d; + +import java.util.Formatter; +/* compiled from: DetectionResultColumn */ +public class g { + public final c a; + + /* renamed from: b reason: collision with root package name */ + public final d[] f1866b; + + public g(c cVar) { + this.a = new c(cVar); + this.f1866b = new d[((cVar.i - cVar.h) + 1)]; + } + + public final d a(int i) { + d dVar; + d dVar2; + d dVar3 = this.f1866b[i - this.a.h]; + if (dVar3 != null) { + return dVar3; + } + for (int i2 = 1; i2 < 5; i2++) { + int i3 = i - this.a.h; + int i4 = i3 - i2; + if (i4 >= 0 && (dVar2 = this.f1866b[i4]) != null) { + return dVar2; + } + int i5 = i3 + i2; + d[] dVarArr = this.f1866b; + if (i5 < dVarArr.length && (dVar = dVarArr[i5]) != null) { + return dVar; + } + } + return null; + } + + public final int b(int i) { + return i - this.a.h; + } + + /* JADX WARNING: Code restructure failed: missing block: B:15:0x0052, code lost: + r2 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:17:?, code lost: + r0.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:18:0x0057, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:19:0x0058, code lost: + r1.addSuppressed(r0); + */ + /* JADX WARNING: Code restructure failed: missing block: B:20:0x005b, code lost: + throw r2; + */ + public String toString() { + Formatter formatter = new Formatter(); + d[] dVarArr = this.f1866b; + int i = 0; + for (d dVar : dVarArr) { + if (dVar == null) { + formatter.format("%3d: | %n", Integer.valueOf(i)); + i++; + } else { + formatter.format("%3d: %3d|%3d%n", Integer.valueOf(i), Integer.valueOf(dVar.e), Integer.valueOf(dVar.d)); + i++; + } + } + String formatter2 = formatter.toString(); + formatter.close(); + return formatter2; + } +} diff --git a/app/src/main/java/b/i/e/r/d/h.java b/app/src/main/java/b/i/e/r/d/h.java new file mode 100644 index 0000000000..b70b94b884 --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/h.java @@ -0,0 +1,77 @@ +package b.i.e.r.d; +/* compiled from: DetectionResultRowIndicatorColumn */ +public final class h extends g { + public final boolean c; + + public h(c cVar, boolean z2) { + super(cVar); + this.c = z2; + } + + public a c() { + d[] dVarArr = this.f1866b; + b bVar = new b(); + b bVar2 = new b(); + b bVar3 = new b(); + b bVar4 = new b(); + for (d dVar : dVarArr) { + if (dVar != null) { + dVar.b(); + int i = dVar.d % 30; + int i2 = dVar.e; + if (!this.c) { + i2 += 2; + } + int i3 = i2 % 3; + if (i3 == 0) { + bVar2.b((i * 3) + 1); + } else if (i3 == 1) { + bVar4.b(i / 3); + bVar3.b(i % 3); + } else if (i3 == 2) { + bVar.b(i + 1); + } + } + } + if (bVar.a().length == 0 || bVar2.a().length == 0 || bVar3.a().length == 0 || bVar4.a().length == 0 || bVar.a()[0] <= 0 || bVar2.a()[0] + bVar3.a()[0] < 3 || bVar2.a()[0] + bVar3.a()[0] > 90) { + return null; + } + a aVar = new a(bVar.a()[0], bVar2.a()[0], bVar3.a()[0], bVar4.a()[0]); + d(dVarArr, aVar); + return aVar; + } + + public final void d(d[] dVarArr, a aVar) { + for (int i = 0; i < dVarArr.length; i++) { + d dVar = dVarArr[i]; + if (dVarArr[i] != null) { + int i2 = dVar.d % 30; + int i3 = dVar.e; + if (i3 > aVar.e) { + dVarArr[i] = null; + } else { + if (!this.c) { + i3 += 2; + } + int i4 = i3 % 3; + if (i4 != 0) { + if (i4 != 1) { + if (i4 == 2 && i2 + 1 != aVar.a) { + dVarArr[i] = null; + } + } else if (i2 / 3 != aVar.f1861b || i2 % 3 != aVar.d) { + dVarArr[i] = null; + } + } else if ((i2 * 3) + 1 != aVar.c) { + dVarArr[i] = null; + } + } + } + } + } + + @Override // b.i.e.r.d.g + public String toString() { + return "IsLeft: " + this.c + '\n' + super.toString(); + } +} diff --git a/app/src/main/java/b/i/e/r/d/i.java b/app/src/main/java/b/i/e/r/d/i.java new file mode 100644 index 0000000000..4b8d6aac70 --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/i.java @@ -0,0 +1,43 @@ +package b.i.e.r.d; + +import b.i.e.r.a; +import java.lang.reflect.Array; +/* compiled from: PDF417CodewordDecoder */ +public final class i { + public static final float[][] a; + + static { + int i; + int length = a.f1860b.length; + int[] iArr = new int[2]; + iArr[1] = 8; + iArr[0] = length; + a = (float[][]) Array.newInstance(float.class, iArr); + int i2 = 0; + while (true) { + int[] iArr2 = a.f1860b; + if (i2 < iArr2.length) { + int i3 = iArr2[i2]; + int i4 = i3 & 1; + int i5 = 0; + while (i5 < 8) { + float f = 0.0f; + while (true) { + i = i3 & 1; + if (i != i4) { + break; + } + f += 1.0f; + i3 >>= 1; + } + a[i2][(8 - i5) - 1] = f / 17.0f; + i5++; + i4 = i; + } + i2++; + } else { + return; + } + } + } +} diff --git a/app/src/main/java/b/i/e/r/d/j.java b/app/src/main/java/b/i/e/r/d/j.java new file mode 100644 index 0000000000..e7be8ffdd2 --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/j.java @@ -0,0 +1,771 @@ +package b.i.e.r.d; + +import b.i.a.f.e.o.f; +import b.i.e.k; +import b.i.e.n.d; +import b.i.e.n.e; +import b.i.e.r.d.k.a; +import b.i.e.r.d.k.b; +import b.i.e.r.d.k.c; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import java.io.ByteArrayOutputStream; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.Objects; +/* compiled from: PDF417ScanningDecoder */ +public final class j { + public static final a a = new a(); + + /* JADX WARNING: Removed duplicated region for block: B:75:0x00f2 */ + public static c a(h hVar) throws NotFoundException { + int[] iArr; + k kVar; + k kVar2; + k kVar3; + k kVar4; + int i; + if (hVar == null) { + return null; + } + a c = hVar.c(); + int i2 = 0; + if (c == null) { + iArr = null; + } else { + c cVar = hVar.a; + boolean z2 = hVar.c; + k kVar5 = z2 ? cVar.f1862b : cVar.d; + k kVar6 = z2 ? cVar.c : cVar.e; + int b2 = hVar.b((int) kVar6.f1811b); + d[] dVarArr = hVar.f1866b; + int i3 = -1; + int i4 = 0; + int i5 = 1; + for (int b3 = hVar.b((int) kVar5.f1811b); b3 < b2; b3++) { + if (dVarArr[b3] != null) { + d dVar = dVarArr[b3]; + dVar.b(); + int i6 = dVar.e; + int i7 = i6 - i3; + if (i7 == 0) { + i4++; + } else { + if (i7 == 1) { + i5 = Math.max(i5, i4); + i3 = dVar.e; + } else if (i6 >= c.e) { + dVarArr[b3] = null; + } else { + i3 = i6; + } + i4 = 1; + } + } + } + int i8 = c.e; + iArr = new int[i8]; + d[] dVarArr2 = hVar.f1866b; + for (d dVar2 : dVarArr2) { + if (dVar2 != null && (i = dVar2.e) < i8) { + iArr[i] = iArr[i] + 1; + } + } + } + if (iArr == null) { + return null; + } + int i9 = -1; + for (int i10 : iArr) { + i9 = Math.max(i9, i10); + } + int i11 = 0; + for (int i12 : iArr) { + i11 += i9 - i12; + if (i12 > 0) { + break; + } + } + d[] dVarArr3 = hVar.f1866b; + int i13 = 0; + while (i11 > 0 && dVarArr3[i13] == null) { + i11--; + i13++; + } + int i14 = 0; + for (int length = iArr.length - 1; length >= 0; length--) { + i14 += i9 - iArr[length]; + if (iArr[length] > 0) { + break; + } + } + int length2 = dVarArr3.length - 1; + while (i14 > 0 && dVarArr3[length2] == null) { + i14--; + length2--; + } + c cVar2 = hVar.a; + boolean z3 = hVar.c; + k kVar7 = cVar2.f1862b; + k kVar8 = cVar2.c; + k kVar9 = cVar2.d; + k kVar10 = cVar2.e; + if (i11 > 0) { + k kVar11 = z3 ? kVar7 : kVar9; + int i15 = ((int) kVar11.f1811b) - i11; + if (i15 >= 0) { + i2 = i15; + } + k kVar12 = new k(kVar11.a, (float) i2); + if (z3) { + kVar7 = kVar12; + } else { + kVar2 = kVar7; + kVar = kVar12; + if (i14 > 0) { + k kVar13 = z3 ? kVar8 : kVar10; + int i16 = ((int) kVar13.f1811b) + i14; + int i17 = cVar2.a.k; + if (i16 >= i17) { + i16 = i17 - 1; + } + k kVar14 = new k(kVar13.a, (float) i16); + if (z3) { + kVar8 = kVar14; + } else { + kVar3 = kVar14; + kVar4 = kVar8; + return new c(cVar2.a, kVar2, kVar4, kVar, kVar3); + } + } + kVar4 = kVar8; + kVar3 = kVar10; + return new c(cVar2.a, kVar2, kVar4, kVar, kVar3); + } + } + kVar2 = kVar7; + kVar = kVar9; + if (i14 > 0) { + } + kVar4 = kVar8; + kVar3 = kVar10; + return new c(cVar2.a, kVar2, kVar4, kVar, kVar3); + } + + /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARNING: Removed duplicated region for block: B:111:0x0299 */ + /* JADX WARNING: Removed duplicated region for block: B:130:0x0337 */ + /* JADX WARNING: Removed duplicated region for block: B:158:0x03ad A[ADDED_TO_REGION] */ + /* JADX WARNING: Removed duplicated region for block: B:251:0x03c4 A[ADDED_TO_REGION, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:96:0x024e */ + public static e b(int[] iArr, int i, int[] iArr2) throws FormatException, ChecksumException { + int i2; + int i3; + int i4; + int i5; + int i6; + char c; + int i7; + c cVar; + if (iArr.length != 0) { + int i8 = 1 << (i + 1); + if ((iArr2 == null || iArr2.length <= (i8 / 2) + 3) && i8 >= 0 && i8 <= 512) { + a aVar = a; + c cVar2 = new c(aVar.a, iArr); + int[] iArr3 = new int[i8]; + boolean z2 = false; + for (int i9 = i8; i9 > 0; i9--) { + int b2 = cVar2.b(aVar.a.f1867b[i9]); + iArr3[i8 - i9] = b2; + if (b2 != 0) { + z2 = true; + } + } + if (z2) { + c cVar3 = aVar.a.e; + if (iArr2 != null) { + for (int i10 : iArr2) { + b bVar = aVar.a; + cVar3 = cVar3.g(new c(bVar, new int[]{bVar.e(0, bVar.f1867b[(iArr.length - 1) - i10]), 1})); + } + } + c cVar4 = new c(aVar.a, iArr3); + c b3 = aVar.a.b(i8, 1); + if (b3.d() >= cVar4.d()) { + cVar4 = b3; + b3 = cVar4; + } + b bVar2 = aVar.a; + c cVar5 = bVar2.d; + c cVar6 = bVar2.e; + while (true) { + cVar4 = b3; + b3 = cVar4; + if (cVar4.d() < i8 / 2) { + int c2 = cVar6.c(0); + if (c2 != 0) { + int c3 = aVar.a.c(c2); + c[] cVarArr = {cVar6.f(c3), cVar4.f(c3)}; + c cVar7 = cVarArr[0]; + c cVar8 = cVarArr[1]; + int d = cVar7.d(); + int[] iArr4 = new int[d]; + int i11 = 1; + int i12 = 0; + while (true) { + Objects.requireNonNull(aVar.a); + if (i11 >= 929 || i12 >= d) { + break; + } + if (cVar7.b(i11) == 0) { + iArr4[i12] = aVar.a.c(i11); + i12++; + } + i11++; + } + if (i12 == d) { + int d2 = cVar7.d(); + int[] iArr5 = new int[d2]; + for (int i13 = 1; i13 <= d2; i13++) { + iArr5[d2 - i13] = aVar.a.d(i13, cVar7.c(i13)); + } + c cVar9 = new c(aVar.a, iArr5); + int[] iArr6 = new int[d]; + for (int i14 = 0; i14 < d; i14++) { + int c4 = aVar.a.c(iArr4[i14]); + iArr6[i14] = aVar.a.d(aVar.a.e(0, cVar8.b(c4)), aVar.a.c(cVar9.b(c4))); + } + for (int i15 = 0; i15 < d; i15++) { + int length = iArr.length - 1; + b bVar3 = aVar.a; + int i16 = iArr4[i15]; + Objects.requireNonNull(bVar3); + if (i16 != 0) { + int i17 = length - bVar3.c[i16]; + if (i17 >= 0) { + iArr[i17] = aVar.a.e(iArr[i17], iArr6[i15]); + } else { + throw ChecksumException.a(); + } + } else { + throw new IllegalArgumentException(); + } + } + } else { + throw ChecksumException.a(); + } + } else { + throw ChecksumException.a(); + } + } else if (!cVar4.e()) { + c cVar10 = aVar.a.d; + int c5 = aVar.a.c(cVar4.c(cVar4.d())); + while (b3.d() >= cVar4.d() && !b3.e()) { + int d3 = b3.d() - cVar4.d(); + int d4 = aVar.a.d(b3.c(b3.d()), c5); + cVar10 = cVar10.a(aVar.a.b(d3, d4)); + if (d3 >= 0) { + if (d4 == 0) { + cVar = cVar4.a.d; + } else { + int length2 = cVar4.f1868b.length; + int[] iArr7 = new int[(d3 + length2)]; + for (int i18 = 0; i18 < length2; i18++) { + iArr7[i18] = cVar4.a.d(cVar4.f1868b[i18], d4); + } + cVar = new c(cVar4.a, iArr7); + } + b3 = b3.i(cVar); + } else { + throw new IllegalArgumentException(); + } + } + cVar5 = cVar6; + cVar6 = cVar10.g(cVar6).i(cVar5).h(); + } else { + throw ChecksumException.a(); + } + } + } + if (iArr.length >= 4) { + int i19 = iArr[0]; + if (i19 <= iArr.length) { + if (i19 == 0) { + if (i8 < iArr.length) { + iArr[0] = iArr.length - i8; + } else { + throw FormatException.a(); + } + } + String valueOf = String.valueOf(i); + char[] cArr = e.a; + StringBuilder sb = new StringBuilder(iArr.length << 1); + Charset charset = StandardCharsets.ISO_8859_1; + int i20 = iArr[1]; + b.i.e.r.c cVar11 = new b.i.e.r.c(); + int i21 = 2; + char c6 = 0; + while (i21 < iArr[c6]) { + if (i20 != 913) { + switch (i20) { + case 900: + i2 = e.c(iArr, i21, sb); + c6 = 0; + break; + case 901: + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + long j = 900; + if (i20 != 901) { + if (i20 == 924) { + boolean z3 = false; + while (true) { + long j2 = 0; + int i22 = 0; + while (i21 < iArr[0] && !z3) { + int i23 = i21 + 1; + int i24 = iArr[i21]; + if (i24 < 900) { + i22++; + j2 = (j2 * j) + ((long) i24); + } else { + if (i24 != 928) { + switch (i24) { + default: + switch (i24) { + } + case 900: + case 901: + case 902: + i21 = i23 - 1; + z3 = true; + break; + } + if (i22 % 5 != 0 || i22 <= 0) { + j = 900; + } else { + for (int i25 = 0; i25 < 6; i25++) { + byteArrayOutputStream.write((byte) ((int) (j2 >> ((5 - i25) * 8)))); + } + j = 900; + } + } + i21 = i23 - 1; + z3 = true; + if (i22 % 5 != 0) { + } + j = 900; + } + i21 = i23; + if (i22 % 5 != 0) { + } + j = 900; + } + } + } + i2 = i21; + c6 = 0; + } else { + int[] iArr8 = new int[6]; + int i26 = i21 + 1; + int i27 = iArr[i21]; + boolean z4 = false; + while (true) { + boolean z5 = z4; + long j3 = 0; + char c7 = 0; + i3 = i26; + i4 = i27; + i5 = 0; + while (i3 < iArr[c7] && !z5) { + int i28 = i5 + 1; + iArr8[i5] = i4; + j3 = (j3 * 900) + ((long) i4); + i26 = i3 + 1; + i27 = iArr[i3]; + if (i27 != 928) { + switch (i27) { + case 900: + case 901: + case 902: + break; + default: + switch (i27) { + case 922: + case 923: + case 924: + break; + default: + if (i28 % 5 != 0 || i28 <= 0) { + i3 = i26; + z5 = z5; + c7 = 0; + i4 = i27; + i5 = i28; + } else { + for (int i29 = 0; i29 < 6; i29++) { + byteArrayOutputStream.write((byte) ((int) (j3 >> ((5 - i29) * 8)))); + } + z4 = z5; + } + } + } + } + i3 = i26 - 1; + i4 = i27; + i5 = i28; + z5 = true; + c7 = 0; + } + } + c6 = 0; + if (i3 != iArr[0] || i4 >= 900) { + i6 = i5; + } else { + i6 = i5 + 1; + iArr8[i5] = i4; + } + for (int i30 = 0; i30 < i6; i30++) { + byteArrayOutputStream.write((byte) iArr8[i30]); + } + i2 = i3; + } + sb.append(new String(byteArrayOutputStream.toByteArray(), charset)); + break; + case 902: + i2 = e.b(iArr, i21, sb); + c6 = 0; + break; + default: + switch (i20) { + case 922: + case 923: + throw FormatException.a(); + case 924: + break; + case 925: + i2 = i21 + 1; + c6 = 0; + break; + case 926: + i2 = i21 + 2; + c6 = 0; + break; + case 927: + i2 = i21 + 1; + charset = Charset.forName(d.f(iArr[i21]).name()); + c6 = 0; + break; + case 928: + if (i21 + 2 <= iArr[0]) { + int[] iArr9 = new int[2]; + int i31 = 0; + while (i31 < 2) { + iArr9[i31] = iArr[i21]; + i31++; + i21++; + } + Integer.parseInt(e.a(iArr9, 2)); + StringBuilder sb2 = new StringBuilder(); + int c8 = e.c(iArr, i21, sb2); + sb2.toString(); + if (iArr[c8] == 923) { + c = 0; + i7 = c8 + 1; + i2 = c8; + if (i2 < iArr[c]) { + int i32 = iArr[i2]; + if (i32 == 922) { + i2++; + cVar11.a = true; + } else { + if (i32 == 923) { + int i33 = i2 + 1; + switch (iArr[i33]) { + case 0: + StringBuilder sb3 = new StringBuilder(); + i2 = e.c(iArr, i33 + 1, sb3); + sb3.toString(); + break; + case 1: + StringBuilder sb4 = new StringBuilder(); + i2 = e.b(iArr, i33 + 1, sb4); + Integer.parseInt(sb4.toString()); + break; + case 2: + StringBuilder sb5 = new StringBuilder(); + i2 = e.b(iArr, i33 + 1, sb5); + Long.parseLong(sb5.toString()); + break; + case 3: + StringBuilder sb6 = new StringBuilder(); + i2 = e.c(iArr, i33 + 1, sb6); + sb6.toString(); + break; + case 4: + StringBuilder sb7 = new StringBuilder(); + i2 = e.c(iArr, i33 + 1, sb7); + sb7.toString(); + break; + case 5: + StringBuilder sb8 = new StringBuilder(); + i2 = e.b(iArr, i33 + 1, sb8); + Long.parseLong(sb8.toString()); + break; + case 6: + StringBuilder sb9 = new StringBuilder(); + i2 = e.b(iArr, i33 + 1, sb9); + Integer.parseInt(sb9.toString()); + break; + default: + throw FormatException.a(); + } + } + throw FormatException.a(); + } + } + if (i7 != -1) { + int i34 = i2 - i7; + if (cVar11.a) { + i34--; + } + Arrays.copyOfRange(iArr, i7, i34 + i7); + } + c6 = 0; + break; + } else { + i2 = c8; + i7 = -1; + } + c = 0; + if (i2 < iArr[c]) { + } + if (i7 != -1) { + } + c6 = 0; + } else { + throw FormatException.a(); + } + default: + c6 = 0; + i2 = e.c(iArr, i21 - 1, sb); + break; + } + break; + } + } else { + c6 = 0; + i2 = i21 + 1; + sb.append((char) iArr[i21]); + } + if (i2 < iArr.length) { + i21 = i2 + 1; + i20 = iArr[i2]; + } else { + throw FormatException.a(); + } + } + if (sb.length() != 0) { + e eVar = new e(null, sb.toString(), null, valueOf); + eVar.f = cVar11; + int length3 = iArr2.length; + return eVar; + } + throw FormatException.a(); + } + throw FormatException.a(); + } + throw FormatException.a(); + } + throw ChecksumException.a(); + } + throw FormatException.a(); + } + + public static d c(b.i.e.n.b bVar, int i, int i2, boolean z2, int i3, int i4, int i5, int i6) { + int i7; + int i8 = i; + int i9 = z2 ? -1 : 1; + boolean z3 = z2; + int i10 = i3; + int i11 = 0; + loop0: + while (true) { + if (i11 >= 2) { + break; + } + while (true) { + if (z3) { + if (i10 < i8) { + continue; + break; + } + } else if (i10 >= i2) { + continue; + break; + } + if (z3 != bVar.f(i10, i4)) { + continue; + break; + } else if (Math.abs(i3 - i10) > 2) { + i10 = i3; + break loop0; + } else { + i10 += i9; + } + } + i9 = -i9; + z3 = !z3; + i11++; + } + int[] iArr = new int[8]; + int i12 = z2 ? 1 : -1; + boolean z4 = z2; + int i13 = i10; + int i14 = 0; + while (true) { + if (z2) { + if (i13 >= i2) { + break; + } + } else if (i13 < i8) { + break; + } + if (i14 >= 8) { + break; + } else if (bVar.f(i13, i4) == z4) { + iArr[i14] = iArr[i14] + 1; + i13 += i12; + } else { + i14++; + z4 = !z4; + } + } + if (i14 != 8) { + if (z2) { + i8 = i2; + } + if (!(i13 == i8 && i14 == 7)) { + iArr = null; + } + } + if (iArr == null) { + return null; + } + int d1 = f.d1(iArr); + if (z2) { + i7 = i10 + d1; + } else { + for (int i15 = 0; i15 < iArr.length / 2; i15++) { + int i16 = iArr[i15]; + iArr[i15] = iArr[(iArr.length - 1) - i15]; + iArr[(iArr.length - 1) - i15] = i16; + } + i10 -= d1; + i7 = i10; + } + if (!(i5 + -2 <= d1 && d1 <= i6 + 2)) { + return null; + } + float[][] fArr = i.a; + float d12 = (float) f.d1(iArr); + int[] iArr2 = new int[8]; + int i17 = 0; + int i18 = 0; + for (int i19 = 0; i19 < 17; i19++) { + if (((float) (iArr[i17] + i18)) <= ((((float) i19) * d12) / 17.0f) + (d12 / 34.0f)) { + i18 += iArr[i17]; + i17++; + } + iArr2[i17] = iArr2[i17] + 1; + } + long j = 0; + for (int i20 = 0; i20 < 8; i20++) { + for (int i21 = 0; i21 < iArr2[i20]; i21++) { + j = (j << 1) | ((long) (i20 % 2 == 0 ? 1 : 0)); + } + } + int i22 = (int) j; + if (b.i.e.r.a.a(i22) == -1) { + i22 = -1; + } + if (i22 == -1) { + int d13 = f.d1(iArr); + float[] fArr2 = new float[8]; + if (d13 > 1) { + for (int i23 = 0; i23 < 8; i23++) { + fArr2[i23] = ((float) iArr[i23]) / ((float) d13); + } + } + float f = Float.MAX_VALUE; + int i24 = -1; + int i25 = 0; + while (true) { + float[][] fArr3 = i.a; + if (i25 >= fArr3.length) { + break; + } + float f2 = 0.0f; + float[] fArr4 = fArr3[i25]; + for (int i26 = 0; i26 < 8; i26++) { + float f3 = fArr4[i26] - fArr2[i26]; + f2 += f3 * f3; + if (f2 >= f) { + break; + } + } + if (f2 < f) { + i24 = b.i.e.r.a.f1860b[i25]; + f = f2; + } + i25++; + } + i22 = i24; + } + int a2 = b.i.e.r.a.a(i22); + if (a2 == -1) { + return null; + } + int[] iArr3 = new int[8]; + int i27 = i22; + int i28 = 7; + int i29 = 0; + while (true) { + int i30 = i27 & 1; + if (i30 != i29) { + i28--; + if (i28 < 0) { + return new d(i10, i7, ((((iArr3[0] - iArr3[2]) + iArr3[4]) - iArr3[6]) + 9) % 9, a2); + } + i29 = i30; + } + iArr3[i28] = iArr3[i28] + 1; + i27 >>= 1; + } + } + + public static h d(b.i.e.n.b bVar, c cVar, k kVar, boolean z2, int i, int i2) { + h hVar = new h(cVar, z2); + int i3 = 0; + while (i3 < 2) { + int i4 = i3 == 0 ? 1 : -1; + int i5 = (int) kVar.a; + int i6 = (int) kVar.f1811b; + while (i6 <= cVar.i && i6 >= cVar.h) { + d c = c(bVar, 0, bVar.j, z2, i5, i6, i, i2); + if (c != null) { + hVar.f1866b[i6 - hVar.a.h] = c; + i5 = z2 ? c.a : c.f1863b; + } + i6 += i4; + } + i3++; + } + return hVar; + } + + public static boolean e(f fVar, int i) { + return i >= 0 && i <= fVar.d + 1; + } +} diff --git a/app/src/main/java/b/i/e/r/d/k/a.java b/app/src/main/java/b/i/e/r/d/k/a.java new file mode 100644 index 0000000000..09775303bd --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/k/a.java @@ -0,0 +1,5 @@ +package b.i.e.r.d.k; +/* compiled from: ErrorCorrection */ +public final class a { + public final b a = b.a; +} diff --git a/app/src/main/java/b/i/e/r/d/k/b.java b/app/src/main/java/b/i/e/r/d/k/b.java new file mode 100644 index 0000000000..0441d490c2 --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/k/b.java @@ -0,0 +1,62 @@ +package b.i.e.r.d.k; +/* compiled from: ModulusGF */ +public final class b { + public static final b a = new b(929, 3); + + /* renamed from: b reason: collision with root package name */ + public final int[] f1867b; + public final int[] c; + public final c d; + public final c e; + + public b(int i, int i2) { + this.f1867b = new int[i]; + this.c = new int[i]; + int i3 = 1; + for (int i4 = 0; i4 < i; i4++) { + this.f1867b[i4] = i3; + i3 = (i3 * i2) % i; + } + for (int i5 = 0; i5 < i - 1; i5++) { + this.c[this.f1867b[i5]] = i5; + } + this.d = new c(this, new int[]{0}); + this.e = new c(this, new int[]{1}); + } + + public int a(int i, int i2) { + return (i + i2) % 929; + } + + public c b(int i, int i2) { + if (i < 0) { + throw new IllegalArgumentException(); + } else if (i2 == 0) { + return this.d; + } else { + int[] iArr = new int[(i + 1)]; + iArr[0] = i2; + return new c(this, iArr); + } + } + + public int c(int i) { + if (i != 0) { + return this.f1867b[(929 - this.c[i]) - 1]; + } + throw new ArithmeticException(); + } + + public int d(int i, int i2) { + if (i == 0 || i2 == 0) { + return 0; + } + int[] iArr = this.f1867b; + int[] iArr2 = this.c; + return iArr[(iArr2[i] + iArr2[i2]) % 928]; + } + + public int e(int i, int i2) { + return ((i + 929) - i2) % 929; + } +} diff --git a/app/src/main/java/b/i/e/r/d/k/c.java b/app/src/main/java/b/i/e/r/d/k/c.java new file mode 100644 index 0000000000..03a328279f --- /dev/null +++ b/app/src/main/java/b/i/e/r/d/k/c.java @@ -0,0 +1,172 @@ +package b.i.e.r.d.k; +/* compiled from: ModulusPoly */ +public final class c { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public final int[] f1868b; + + public c(b bVar, int[] iArr) { + if (iArr.length != 0) { + this.a = bVar; + int length = iArr.length; + if (length <= 1 || iArr[0] != 0) { + this.f1868b = iArr; + return; + } + int i = 1; + while (i < length && iArr[i] == 0) { + i++; + } + if (i == length) { + this.f1868b = new int[]{0}; + return; + } + int[] iArr2 = new int[(length - i)]; + this.f1868b = iArr2; + System.arraycopy(iArr, i, iArr2, 0, iArr2.length); + return; + } + throw new IllegalArgumentException(); + } + + public c a(c cVar) { + if (!this.a.equals(cVar.a)) { + throw new IllegalArgumentException("ModulusPolys do not have same ModulusGF field"); + } else if (e()) { + return cVar; + } else { + if (cVar.e()) { + return this; + } + int[] iArr = this.f1868b; + int[] iArr2 = cVar.f1868b; + if (iArr.length <= iArr2.length) { + iArr = iArr2; + iArr2 = iArr; + } + int[] iArr3 = new int[iArr.length]; + int length = iArr.length - iArr2.length; + System.arraycopy(iArr, 0, iArr3, 0, length); + for (int i = length; i < iArr.length; i++) { + iArr3[i] = this.a.a(iArr2[i - length], iArr[i]); + } + return new c(this.a, iArr3); + } + } + + public int b(int i) { + if (i == 0) { + return c(0); + } + if (i == 1) { + int i2 = 0; + for (int i3 : this.f1868b) { + i2 = this.a.a(i2, i3); + } + return i2; + } + int[] iArr = this.f1868b; + int i4 = iArr[0]; + int length = iArr.length; + for (int i5 = 1; i5 < length; i5++) { + b bVar = this.a; + i4 = bVar.a(bVar.d(i, i4), this.f1868b[i5]); + } + return i4; + } + + public int c(int i) { + int[] iArr = this.f1868b; + return iArr[(iArr.length - 1) - i]; + } + + public int d() { + return this.f1868b.length - 1; + } + + public boolean e() { + return this.f1868b[0] == 0; + } + + public c f(int i) { + if (i == 0) { + return this.a.d; + } + if (i == 1) { + return this; + } + int length = this.f1868b.length; + int[] iArr = new int[length]; + for (int i2 = 0; i2 < length; i2++) { + iArr[i2] = this.a.d(this.f1868b[i2], i); + } + return new c(this.a, iArr); + } + + public c g(c cVar) { + if (!this.a.equals(cVar.a)) { + throw new IllegalArgumentException("ModulusPolys do not have same ModulusGF field"); + } else if (e() || cVar.e()) { + return this.a.d; + } else { + int[] iArr = this.f1868b; + int length = iArr.length; + int[] iArr2 = cVar.f1868b; + int length2 = iArr2.length; + int[] iArr3 = new int[((length + length2) - 1)]; + for (int i = 0; i < length; i++) { + int i2 = iArr[i]; + for (int i3 = 0; i3 < length2; i3++) { + int i4 = i + i3; + b bVar = this.a; + iArr3[i4] = bVar.a(iArr3[i4], bVar.d(i2, iArr2[i3])); + } + } + return new c(this.a, iArr3); + } + } + + public c h() { + int length = this.f1868b.length; + int[] iArr = new int[length]; + for (int i = 0; i < length; i++) { + iArr[i] = this.a.e(0, this.f1868b[i]); + } + return new c(this.a, iArr); + } + + public c i(c cVar) { + if (this.a.equals(cVar.a)) { + return cVar.e() ? this : a(cVar.h()); + } + throw new IllegalArgumentException("ModulusPolys do not have same ModulusGF field"); + } + + public String toString() { + StringBuilder sb = new StringBuilder(d() * 8); + for (int d = d(); d >= 0; d--) { + int c = c(d); + if (c != 0) { + if (c < 0) { + sb.append(" - "); + c = -c; + } else if (sb.length() > 0) { + sb.append(" + "); + } + if (d == 0 || c != 1) { + sb.append(c); + } + if (d != 0) { + if (d == 1) { + sb.append('x'); + } else { + sb.append("x^"); + sb.append(d); + } + } + } + } + return sb.toString(); + } +} diff --git a/app/src/main/java/b/i/e/r/e/a.java b/app/src/main/java/b/i/e/r/e/a.java new file mode 100644 index 0000000000..ec7afe8988 --- /dev/null +++ b/app/src/main/java/b/i/e/r/e/a.java @@ -0,0 +1,242 @@ +package b.i.e.r.e; + +import b.i.e.k; +import b.i.e.n.b; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +/* compiled from: Detector */ +public final class a { + public static final int[] a = {0, 4, 1, 5}; + + /* renamed from: b reason: collision with root package name */ + public static final int[] f1869b = {6, 2, 7, 3}; + public static final int[] c = {8, 1, 1, 1, 1, 1, 1, 3}; + public static final int[] d = {7, 1, 1, 3, 1, 1, 1, 2, 1}; + + /* JADX WARNING: Code restructure failed: missing block: B:20:0x0068, code lost: + if (r12 == false) goto L_0x00bc; + */ + /* JADX WARNING: Code restructure failed: missing block: B:21:0x006a, code lost: + r1 = r7.iterator(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:23:0x0072, code lost: + if (r1.hasNext() == false) goto L_0x0097; + */ + /* JADX WARNING: Code restructure failed: missing block: B:24:0x0074, code lost: + r2 = (b.i.e.k[]) r1.next(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:25:0x007c, code lost: + if (r2[1] == null) goto L_0x0088; + */ + /* JADX WARNING: Code restructure failed: missing block: B:26:0x007e, code lost: + r10 = (int) java.lang.Math.max((float) r10, r2[1].f1811b); + */ + /* JADX WARNING: Code restructure failed: missing block: B:28:0x008a, code lost: + if (r2[3] == null) goto L_0x006e; + */ + /* JADX WARNING: Code restructure failed: missing block: B:29:0x008c, code lost: + r10 = java.lang.Math.max(r10, (int) r2[3].f1811b); + */ + public static List a(boolean z2, b bVar) { + int i; + int i2; + float f; + ArrayList arrayList = new ArrayList(); + int i3 = 0; + loop0: + while (true) { + int i4 = 0; + boolean z3 = false; + while (true) { + int i5 = bVar.k; + if (i3 >= i5) { + break loop0; + } + int i6 = bVar.j; + k[] kVarArr = new k[8]; + k[] c2 = c(bVar, i5, i6, i3, i4, c); + int[] iArr = a; + for (int i7 = 0; i7 < iArr.length; i7++) { + kVarArr[iArr[i7]] = c2[i7]; + } + if (kVarArr[4] != null) { + i = (int) kVarArr[4].a; + i2 = (int) kVarArr[4].f1811b; + } else { + i2 = i3; + i = i4; + } + k[] c3 = c(bVar, i5, i6, i2, i, d); + int[] iArr2 = f1869b; + for (int i8 = 0; i8 < iArr2.length; i8++) { + kVarArr[iArr2[i8]] = c3[i8]; + } + if (kVarArr[0] == null && kVarArr[3] == null) { + break; + } + arrayList.add(kVarArr); + if (!z2) { + break loop0; + } + if (kVarArr[2] != null) { + i4 = (int) kVarArr[2].a; + f = kVarArr[2].f1811b; + } else { + i4 = (int) kVarArr[4].a; + f = kVarArr[4].f1811b; + } + i3 = (int) f; + z3 = true; + } + i3 += 5; + } + return arrayList; + } + + public static int[] b(b bVar, int i, int i2, int i3, boolean z2, int[] iArr, int[] iArr2) { + Arrays.fill(iArr2, 0, iArr2.length, 0); + int i4 = 0; + while (bVar.f(i, i2) && i > 0) { + int i5 = i4 + 1; + if (i4 >= 3) { + break; + } + i--; + i4 = i5; + } + int length = iArr.length; + boolean z3 = z2; + int i6 = 0; + int i7 = i; + while (i < i3) { + if (bVar.f(i, i2) != z3) { + iArr2[i6] = iArr2[i6] + 1; + } else { + if (i6 != length - 1) { + i6++; + } else if (d(iArr2, iArr, 0.8f) < 0.42f) { + return new int[]{i7, i}; + } else { + i7 += iArr2[0] + iArr2[1]; + int i8 = i6 - 1; + System.arraycopy(iArr2, 2, iArr2, 0, i8); + iArr2[i8] = 0; + iArr2[i6] = 0; + i6 = i8; + } + iArr2[i6] = 1; + z3 = !z3; + } + i++; + } + if (i6 != length - 1 || d(iArr2, iArr, 0.8f) >= 0.42f) { + return null; + } + return new int[]{i7, i - 1}; + } + + public static k[] c(b bVar, int i, int i2, int i3, int i4, int[] iArr) { + boolean z2; + int i5; + int i6; + int i7; + k[] kVarArr = new k[4]; + int[] iArr2 = new int[iArr.length]; + int i8 = i3; + while (true) { + if (i8 >= i) { + z2 = false; + break; + } + int[] b2 = b(bVar, i4, i8, i2, false, iArr, iArr2); + if (b2 != null) { + int[] iArr3 = b2; + int i9 = i8; + while (true) { + if (i9 <= 0) { + i7 = i9; + break; + } + int i10 = i9 - 1; + int[] b3 = b(bVar, i4, i10, i2, false, iArr, iArr2); + if (b3 == null) { + i7 = i10 + 1; + break; + } + iArr3 = b3; + i9 = i10; + } + float f = (float) i7; + kVarArr[0] = new k((float) iArr3[0], f); + kVarArr[1] = new k((float) iArr3[1], f); + i8 = i7; + z2 = true; + } else { + i8 += 5; + } + } + int i11 = i8 + 1; + if (z2) { + int[] iArr4 = {(int) kVarArr[0].a, (int) kVarArr[1].a}; + int i12 = i11; + int i13 = 0; + while (true) { + if (i12 >= i) { + i5 = i13; + i6 = i12; + break; + } + i5 = i13; + i6 = i12; + int[] b4 = b(bVar, iArr4[0], i12, i2, false, iArr, iArr2); + if (b4 == null || Math.abs(iArr4[0] - b4[0]) >= 5 || Math.abs(iArr4[1] - b4[1]) >= 5) { + if (i5 > 25) { + break; + } + i13 = i5 + 1; + } else { + iArr4 = b4; + i13 = 0; + } + i12 = i6 + 1; + } + i11 = i6 - (i5 + 1); + float f2 = (float) i11; + kVarArr[2] = new k((float) iArr4[0], f2); + kVarArr[3] = new k((float) iArr4[1], f2); + } + if (i11 - i8 < 10) { + Arrays.fill(kVarArr, (Object) null); + } + return kVarArr; + } + + public static float d(int[] iArr, int[] iArr2, float f) { + int length = iArr.length; + int i = 0; + int i2 = 0; + for (int i3 = 0; i3 < length; i3++) { + i += iArr[i3]; + i2 += iArr2[i3]; + } + if (i < i2) { + return Float.POSITIVE_INFINITY; + } + float f2 = (float) i; + float f3 = f2 / ((float) i2); + float f4 = f * f3; + float f5 = 0.0f; + for (int i4 = 0; i4 < length; i4++) { + int i5 = iArr[i4]; + float f6 = ((float) iArr2[i4]) * f3; + float f7 = (float) i5; + float f8 = f7 > f6 ? f7 - f6 : f6 - f7; + if (f8 > f4) { + return Float.POSITIVE_INFINITY; + } + f5 += f8; + } + return f5 / f2; + } +} diff --git a/app/src/main/java/b/i/e/s/a.java b/app/src/main/java/b/i/e/s/a.java new file mode 100644 index 0000000000..8f5c1bfc90 --- /dev/null +++ b/app/src/main/java/b/i/e/s/a.java @@ -0,0 +1,339 @@ +package b.i.e.s; + +import b.i.e.c; +import b.i.e.d; +import b.i.e.i; +import b.i.e.k; +import b.i.e.l; +import b.i.e.n.b; +import b.i.e.s.b.e; +import b.i.e.s.b.j; +import b.i.e.s.c.e; +import b.i.e.s.c.f; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.NotFoundException; +import com.google.zxing.Result; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +/* compiled from: QRCodeReader */ +public class a implements i { + public static final k[] a = new k[0]; + + /* renamed from: b reason: collision with root package name */ + public final e f1870b = new e(); + + @Override // b.i.e.i + public final Result a(c cVar, Map map) throws NotFoundException, ChecksumException, FormatException { + k[] kVarArr; + b.i.e.n.e eVar; + int i; + b.i.e.s.c.a aVar; + float f; + float f2; + float f3; + int i2; + int i3; + if (map == null || !map.containsKey(d.PURE_BARCODE)) { + b a2 = cVar.a(); + b.i.e.s.c.c cVar2 = new b.i.e.s.c.c(a2); + l lVar = map == null ? null : (l) map.get(d.NEED_RESULT_POINT_CALLBACK); + cVar2.f1879b = lVar; + b.i.e.s.c.e eVar2 = new b.i.e.s.c.e(a2, lVar); + boolean z2 = map != null && map.containsKey(d.TRY_HARDER); + int i4 = a2.k; + int i5 = a2.j; + int i6 = (i4 * 3) / 388; + if (i6 < 3 || z2) { + i6 = 3; + } + int[] iArr = new int[5]; + int i7 = i6 - 1; + boolean z3 = false; + while (true) { + int i8 = 4; + if (i7 >= i4 || z3) { + break; + } + eVar2.b(iArr); + int i9 = 0; + int i10 = 0; + while (i9 < i5) { + if (eVar2.a.f(i9, i7)) { + if ((i10 & 1) == 1) { + i10++; + } + iArr[i10] = iArr[i10] + 1; + } else if ((i10 & 1) != 0) { + iArr[i10] = iArr[i10] + 1; + } else if (i10 == i8) { + if (!b.i.e.s.c.e.c(iArr)) { + eVar2.g(iArr); + } else if (eVar2.e(iArr, i7, i9)) { + if (eVar2.c) { + z3 = eVar2.f(); + } else { + if (eVar2.f1880b.size() > 1) { + Iterator it = eVar2.f1880b.iterator(); + b.i.e.s.c.d dVar = null; + while (true) { + if (!it.hasNext()) { + break; + } + b.i.e.s.c.d next = it.next(); + if (next.d >= 2) { + if (dVar != null) { + eVar2.c = true; + i2 = 2; + i3 = ((int) (Math.abs(dVar.a - next.a) - Math.abs(dVar.f1811b - next.f1811b))) / 2; + break; + } + dVar = next; + } + } + } + i2 = 2; + i3 = 0; + if (i3 > iArr[i2]) { + i7 += (i3 - iArr[i2]) - i2; + i9 = i5 - 1; + } + } + eVar2.b(iArr); + i6 = 2; + i10 = 0; + } else { + eVar2.g(iArr); + } + i10 = 3; + } else { + i10++; + iArr[i10] = iArr[i10] + 1; + } + i9++; + i8 = 4; + } + if (b.i.e.s.c.e.c(iArr) && eVar2.e(iArr, i7, i5)) { + i6 = iArr[0]; + if (eVar2.c) { + z3 = eVar2.f(); + } + } + i7 += i6; + } + int size = eVar2.f1880b.size(); + if (size >= 3) { + float f4 = 0.0f; + if (size > 3) { + float f5 = 0.0f; + float f6 = 0.0f; + for (b.i.e.s.c.d dVar2 : eVar2.f1880b) { + float f7 = dVar2.c; + f5 += f7; + f6 += f7 * f7; + } + float f8 = (float) size; + float f9 = f5 / f8; + Collections.sort(eVar2.f1880b, new e.c(f9, null)); + float max = Math.max(0.2f * f9, (float) Math.sqrt((double) ((f6 / f8) - (f9 * f9)))); + int i11 = 0; + while (i11 < eVar2.f1880b.size() && eVar2.f1880b.size() > 3) { + if (Math.abs(eVar2.f1880b.get(i11).c - f9) > max) { + eVar2.f1880b.remove(i11); + i11--; + } + i11++; + } + } + if (eVar2.f1880b.size() > 3) { + for (b.i.e.s.c.d dVar3 : eVar2.f1880b) { + f4 += dVar3.c; + } + Collections.sort(eVar2.f1880b, new e.b(f4 / ((float) eVar2.f1880b.size()), null)); + List list = eVar2.f1880b; + i = 3; + list.subList(3, list.size()).clear(); + } else { + i = 3; + } + b.i.e.s.c.d[] dVarArr = new b.i.e.s.c.d[i]; + dVarArr[0] = eVar2.f1880b.get(0); + dVarArr[1] = eVar2.f1880b.get(1); + dVarArr[2] = eVar2.f1880b.get(2); + k.b(dVarArr); + f fVar = new f(dVarArr); + b.i.e.s.c.d dVar4 = fVar.f1881b; + b.i.e.s.c.d dVar5 = fVar.c; + b.i.e.s.c.d dVar6 = fVar.a; + float a3 = (cVar2.a(dVar4, dVar6) + cVar2.a(dVar4, dVar5)) / 2.0f; + if (a3 >= 1.0f) { + int V0 = ((b.i.a.f.e.o.f.V0(b.i.a.f.e.o.f.P(dVar4.a, dVar4.f1811b, dVar6.a, dVar6.f1811b) / a3) + b.i.a.f.e.o.f.V0(b.i.a.f.e.o.f.P(dVar4.a, dVar4.f1811b, dVar5.a, dVar5.f1811b) / a3)) / 2) + 7; + int i12 = V0 & 3; + if (i12 == 0) { + V0++; + } else if (i12 == 2) { + V0--; + } else if (i12 == 3) { + throw NotFoundException.l; + } + int[] iArr2 = j.a; + if (V0 % 4 == 1) { + try { + j d = j.d((V0 - 17) / 4); + int c = d.c() - 7; + if (d.d.length > 0) { + float f10 = dVar5.a; + float f11 = dVar4.a; + float f12 = (f10 - f11) + dVar6.a; + float f13 = dVar5.f1811b; + float f14 = dVar4.f1811b; + float f15 = 1.0f - (3.0f / ((float) c)); + int a4 = (int) b.d.b.a.a.a(f12, f11, f15, f11); + int a5 = (int) b.d.b.a.a.a((f13 - f14) + dVar6.f1811b, f14, f15, f14); + int i13 = 4; + while (true) { + if (i13 > 16) { + break; + } + try { + aVar = cVar2.b(a3, a4, a5, (float) i13); + break; + } catch (NotFoundException unused) { + i13 <<= 1; + } + } + } + aVar = null; + float f16 = ((float) V0) - 3.5f; + if (aVar != null) { + f2 = aVar.a; + f = aVar.f1811b; + f3 = f16 - 3.0f; + } else { + f2 = (dVar5.a - dVar4.a) + dVar6.a; + f = (dVar5.f1811b - dVar4.f1811b) + dVar6.f1811b; + f3 = f16; + } + b a6 = b.i.e.n.f.a.a(cVar2.a, V0, V0, b.i.e.n.i.a(3.5f, 3.5f, f16, 3.5f, f3, f3, 3.5f, f16, dVar4.a, dVar4.f1811b, dVar5.a, dVar5.f1811b, f2, f, dVar6.a, dVar6.f1811b)); + k[] kVarArr2 = aVar == null ? new k[]{dVar6, dVar4, dVar5} : new k[]{dVar6, dVar4, dVar5, aVar}; + eVar = this.f1870b.a(a6, map); + kVarArr = kVarArr2; + } catch (IllegalArgumentException unused2) { + throw FormatException.a(); + } + } else { + throw FormatException.a(); + } + } else { + throw NotFoundException.l; + } + } else { + throw NotFoundException.l; + } + } else { + b a7 = cVar.a(); + int[] i14 = a7.i(); + int[] g = a7.g(); + if (i14 == null || g == null) { + throw NotFoundException.l; + } + int i15 = a7.k; + int i16 = a7.j; + int i17 = i14[0]; + int i18 = i14[1]; + boolean z4 = true; + int i19 = 0; + while (i17 < i16 && i18 < i15) { + if (z4 != a7.f(i17, i18)) { + i19++; + if (i19 == 5) { + break; + } + z4 = !z4; + } + i17++; + i18++; + } + if (i17 == i16 || i18 == i15) { + throw NotFoundException.l; + } + float f17 = ((float) (i17 - i14[0])) / 7.0f; + int i20 = i14[1]; + int i21 = g[1]; + int i22 = i14[0]; + int i23 = g[0]; + if (i22 >= i23 || i20 >= i21) { + throw NotFoundException.l; + } + int i24 = i21 - i20; + if (i24 == i23 - i22 || (i23 = i22 + i24) < a7.j) { + int round = Math.round(((float) ((i23 - i22) + 1)) / f17); + int round2 = Math.round(((float) (i24 + 1)) / f17); + if (round <= 0 || round2 <= 0) { + throw NotFoundException.l; + } else if (round2 == round) { + int i25 = (int) (f17 / 2.0f); + int i26 = i20 + i25; + int i27 = i22 + i25; + int i28 = (((int) (((float) (round - 1)) * f17)) + i27) - i23; + if (i28 > 0) { + if (i28 <= i25) { + i27 -= i28; + } else { + throw NotFoundException.l; + } + } + int i29 = (((int) (((float) (round2 - 1)) * f17)) + i26) - i21; + if (i29 > 0) { + if (i29 <= i25) { + i26 -= i29; + } else { + throw NotFoundException.l; + } + } + b bVar = new b(round, round2); + for (int i30 = 0; i30 < round2; i30++) { + int i31 = ((int) (((float) i30) * f17)) + i26; + for (int i32 = 0; i32 < round; i32++) { + if (a7.f(((int) (((float) i32) * f17)) + i27, i31)) { + bVar.j(i32, i30); + } + } + } + eVar = this.f1870b.a(bVar, map); + kVarArr = a; + } else { + throw NotFoundException.l; + } + } else { + throw NotFoundException.l; + } + } + Object obj = eVar.f; + if ((obj instanceof b.i.e.s.b.i) && ((b.i.e.s.b.i) obj).a && kVarArr.length >= 3) { + k kVar = kVarArr[0]; + kVarArr[0] = kVarArr[2]; + kVarArr[2] = kVar; + } + Result result = new Result(eVar.c, eVar.a, kVarArr, b.i.e.a.QR_CODE); + List list2 = eVar.d; + if (list2 != null) { + result.b(b.i.e.j.BYTE_SEGMENTS, list2); + } + String str = eVar.e; + if (str != null) { + result.b(b.i.e.j.ERROR_CORRECTION_LEVEL, str); + } + if (eVar.g >= 0 && eVar.h >= 0) { + result.b(b.i.e.j.STRUCTURED_APPEND_SEQUENCE, Integer.valueOf(eVar.h)); + result.b(b.i.e.j.STRUCTURED_APPEND_PARITY, Integer.valueOf(eVar.g)); + } + return result; + } + + @Override // b.i.e.i + public void reset() { + } +} diff --git a/app/src/main/java/b/i/e/s/b/a.java b/app/src/main/java/b/i/e/s/b/a.java new file mode 100644 index 0000000000..81c32be51d --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/a.java @@ -0,0 +1,122 @@ +package b.i.e.s.b; + +import b.i.e.n.b; +import com.google.zxing.FormatException; +/* compiled from: BitMatrixParser */ +public final class a { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public j f1871b; + public g c; + public boolean d; + + public a(b bVar) throws FormatException { + int i = bVar.k; + if (i < 21 || (i & 3) != 1) { + throw FormatException.a(); + } + this.a = bVar; + } + + public final int a(int i, int i2, int i3) { + return this.d ? this.a.f(i2, i) : this.a.f(i, i2) ? (i3 << 1) | 1 : i3 << 1; + } + + public void b() { + int i = 0; + while (i < this.a.j) { + int i2 = i + 1; + int i3 = i2; + while (true) { + b bVar = this.a; + if (i3 >= bVar.k) { + break; + } + if (bVar.f(i, i3) != this.a.f(i3, i)) { + this.a.b(i3, i); + this.a.b(i, i3); + } + i3++; + } + i = i2; + } + } + + public g c() throws FormatException { + g gVar = this.c; + if (gVar != null) { + return gVar; + } + int i = 0; + int i2 = 0; + for (int i3 = 0; i3 < 6; i3++) { + i2 = a(i3, 8, i2); + } + int a = a(8, 7, a(8, 8, a(7, 8, i2))); + for (int i4 = 5; i4 >= 0; i4--) { + a = a(8, i4, a); + } + int i5 = this.a.k; + int i6 = i5 - 7; + for (int i7 = i5 - 1; i7 >= i6; i7--) { + i = a(8, i7, i); + } + for (int i8 = i5 - 8; i8 < i5; i8++) { + i = a(i8, 8, i); + } + g a2 = g.a(a, i); + if (a2 == null) { + a2 = g.a(a ^ 21522, i ^ 21522); + } + this.c = a2; + if (a2 != null) { + return a2; + } + throw FormatException.a(); + } + + public j d() throws FormatException { + j jVar = this.f1871b; + if (jVar != null) { + return jVar; + } + int i = this.a.k; + int i2 = (i - 17) / 4; + if (i2 <= 6) { + return j.d(i2); + } + int i3 = i - 11; + int i4 = 0; + int i5 = 0; + for (int i6 = 5; i6 >= 0; i6--) { + for (int i7 = i - 9; i7 >= i3; i7--) { + i5 = a(i7, i6, i5); + } + } + j b2 = j.b(i5); + if (b2 == null || b2.c() != i) { + for (int i8 = 5; i8 >= 0; i8--) { + for (int i9 = i - 9; i9 >= i3; i9--) { + i4 = a(i8, i9, i4); + } + } + j b3 = j.b(i4); + if (b3 == null || b3.c() != i) { + throw FormatException.a(); + } + this.f1871b = b3; + return b3; + } + this.f1871b = b2; + return b2; + } + + public void e() { + if (this.c != null) { + c cVar = c.values()[this.c.c]; + b bVar = this.a; + cVar.g(bVar, bVar.k); + } + } +} diff --git a/app/src/main/java/b/i/e/s/b/b.java b/app/src/main/java/b/i/e/s/b/b.java new file mode 100644 index 0000000000..aae33d3c52 --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/b.java @@ -0,0 +1,13 @@ +package b.i.e.s.b; +/* compiled from: DataBlock */ +public final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final byte[] f1872b; + + public b(int i, byte[] bArr) { + this.a = i; + this.f1872b = bArr; + } +} diff --git a/app/src/main/java/b/i/e/s/b/c.java b/app/src/main/java/b/i/e/s/b/c.java new file mode 100644 index 0000000000..7fce0e33fd --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/c.java @@ -0,0 +1,67 @@ +package b.i.e.s.b; +/* compiled from: DataMask */ +public enum c { + DATA_MASK_000 { + @Override // b.i.e.s.b.c + public boolean f(int i, int i2) { + return ((i + i2) & 1) == 0; + } + }, + DATA_MASK_001 { + @Override // b.i.e.s.b.c + public boolean f(int i, int i2) { + return (i & 1) == 0; + } + }, + DATA_MASK_010 { + @Override // b.i.e.s.b.c + public boolean f(int i, int i2) { + return i2 % 3 == 0; + } + }, + DATA_MASK_011 { + @Override // b.i.e.s.b.c + public boolean f(int i, int i2) { + return (i + i2) % 3 == 0; + } + }, + DATA_MASK_100 { + @Override // b.i.e.s.b.c + public boolean f(int i, int i2) { + return (((i2 / 3) + (i / 2)) & 1) == 0; + } + }, + DATA_MASK_101 { + @Override // b.i.e.s.b.c + public boolean f(int i, int i2) { + return (i * i2) % 6 == 0; + } + }, + DATA_MASK_110 { + @Override // b.i.e.s.b.c + public boolean f(int i, int i2) { + return (i * i2) % 6 < 3; + } + }, + DATA_MASK_111 { + @Override // b.i.e.s.b.c + public boolean f(int i, int i2) { + return ((((i * i2) % 3) + (i + i2)) & 1) == 0; + } + }; + + public c(a aVar) { + } + + public abstract boolean f(int i, int i2); + + public final void g(b.i.e.n.b bVar, int i) { + for (int i2 = 0; i2 < i; i2++) { + for (int i3 = 0; i3 < i; i3++) { + if (f(i2, i3)) { + bVar.b(i3, i2); + } + } + } + } +} diff --git a/app/src/main/java/b/i/e/s/b/d.java b/app/src/main/java/b/i/e/s/b/d.java new file mode 100644 index 0000000000..0d661b21f1 --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/d.java @@ -0,0 +1,292 @@ +package b.i.e.s.b; + +import b.i.e.n.c; +import b.i.e.n.j; +import com.google.zxing.FormatException; +import java.io.UnsupportedEncodingException; +import java.util.Collection; +import java.util.Map; +/* compiled from: DecodedBitStreamParser */ +public final class d { + public static final char[] a = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".toCharArray(); + + public static void a(c cVar, StringBuilder sb, int i, boolean z2) throws FormatException { + while (i > 1) { + if (cVar.a() >= 11) { + int b2 = cVar.b(11); + sb.append(f(b2 / 45)); + sb.append(f(b2 % 45)); + i -= 2; + } else { + throw FormatException.a(); + } + } + if (i == 1) { + if (cVar.a() >= 6) { + sb.append(f(cVar.b(6))); + } else { + throw FormatException.a(); + } + } + if (z2) { + for (int length = sb.length(); length < sb.length(); length++) { + if (sb.charAt(length) == '%') { + if (length < sb.length() - 1) { + int i2 = length + 1; + if (sb.charAt(i2) == '%') { + sb.deleteCharAt(i2); + } + } + sb.setCharAt(length, 29); + } + } + } + } + + /* JADX WARNING: Code restructure failed: missing block: B:117:0x0143, code lost: + if (r1 == 2) goto L_0x0151; + */ + /* JADX WARNING: Code restructure failed: missing block: B:119:0x0147, code lost: + if ((r17 * 10) >= r23) goto L_0x0151; + */ + public static void b(c cVar, StringBuilder sb, int i, b.i.e.n.d dVar, Collection collection, Map map) throws FormatException { + byte[] bArr; + String str; + byte[] bArr2; + if ((i << 3) <= cVar.a()) { + byte[] bArr3 = new byte[i]; + int i2 = 0; + for (int i3 = 0; i3 < i; i3++) { + bArr3[i3] = (byte) cVar.b(8); + } + if (dVar == null) { + String str2 = j.a; + if (map != null) { + b.i.e.d dVar2 = b.i.e.d.CHARACTER_SET; + if (map.containsKey(dVar2)) { + str = map.get(dVar2).toString(); + bArr = bArr3; + } + } + boolean z2 = true; + boolean z3 = i > 3 && bArr3[0] == -17 && bArr3[1] == -69 && bArr3[2] == -65; + int i4 = 0; + boolean z4 = true; + boolean z5 = true; + int i5 = 0; + int i6 = 0; + int i7 = 0; + int i8 = 0; + int i9 = 0; + int i10 = 0; + int i11 = 0; + int i12 = 0; + int i13 = 0; + int i14 = 0; + while (i5 < i && (z2 || z4 || z5)) { + int i15 = bArr3[i5] & 255; + if (z5) { + if (i6 > 0) { + bArr2 = bArr3; + if ((i15 & 128) != 0) { + i6--; + } + } else { + bArr2 = bArr3; + if ((i15 & 128) != 0) { + if ((i15 & 64) != 0) { + i6++; + if ((i15 & 32) == 0) { + i8++; + } else { + i6++; + if ((i15 & 16) == 0) { + i9++; + } else { + i6++; + if ((i15 & 8) == 0) { + i10++; + } + } + } + } + } + } + z5 = false; + } else { + bArr2 = bArr3; + } + if (z2) { + if (i15 > 127 && i15 < 160) { + z2 = false; + } else if (i15 > 159 && (i15 < 192 || i15 == 215 || i15 == 247)) { + i12++; + } + } + if (z4) { + if (i7 > 0) { + if (i15 >= 64 && i15 != 127 && i15 <= 252) { + i7--; + } + } else if (!(i15 == 128 || i15 == 160 || i15 > 239)) { + if (i15 <= 160 || i15 >= 224) { + if (i15 > 127) { + i7++; + int i16 = i13 + 1; + if (i16 > i2) { + i2 = i16; + i13 = i2; + } else { + i13 = i16; + } + } else { + i13 = 0; + } + i14 = 0; + } else { + i4++; + int i17 = i14 + 1; + if (i17 > i11) { + i11 = i17; + } + i14 = i17; + i13 = 0; + } + } + z4 = false; + } + i5++; + bArr3 = bArr2; + } + bArr = bArr3; + if (z5 && i6 > 0) { + z5 = false; + } + boolean z6 = (!z4 || i7 <= 0) ? z4 : false; + if (!z5 || (!z3 && i8 + i9 + i10 <= 0)) { + if (!z6 || (!j.f1824b && i11 < 3 && i2 < 3)) { + if (!z2 || !z6) { + if (!z2) { + if (!z6) { + if (!z5) { + str = j.a; + } + } + } + } else if (i11 == 2) { + } + str = "ISO8859_1"; + } + str = "SJIS"; + } + str = "UTF8"; + } else { + bArr = bArr3; + str = dVar.name(); + } + try { + sb.append(new String(bArr, str)); + collection.add(bArr); + } catch (UnsupportedEncodingException unused) { + throw FormatException.a(); + } + } else { + throw FormatException.a(); + } + } + + public static void c(c cVar, StringBuilder sb, int i) throws FormatException { + if (i * 13 <= cVar.a()) { + byte[] bArr = new byte[(i * 2)]; + int i2 = 0; + while (i > 0) { + int b2 = cVar.b(13); + int i3 = (b2 % 96) | ((b2 / 96) << 8); + int i4 = i3 + (i3 < 959 ? 41377 : 42657); + bArr[i2] = (byte) (i4 >> 8); + bArr[i2 + 1] = (byte) i4; + i2 += 2; + i--; + } + try { + sb.append(new String(bArr, "GB2312")); + } catch (UnsupportedEncodingException unused) { + throw FormatException.a(); + } + } else { + throw FormatException.a(); + } + } + + public static void d(c cVar, StringBuilder sb, int i) throws FormatException { + if (i * 13 <= cVar.a()) { + byte[] bArr = new byte[(i * 2)]; + int i2 = 0; + while (i > 0) { + int b2 = cVar.b(13); + int i3 = (b2 % 192) | ((b2 / 192) << 8); + int i4 = i3 + (i3 < 7936 ? 33088 : 49472); + bArr[i2] = (byte) (i4 >> 8); + bArr[i2 + 1] = (byte) i4; + i2 += 2; + i--; + } + try { + sb.append(new String(bArr, "SJIS")); + } catch (UnsupportedEncodingException unused) { + throw FormatException.a(); + } + } else { + throw FormatException.a(); + } + } + + public static void e(c cVar, StringBuilder sb, int i) throws FormatException { + while (i >= 3) { + if (cVar.a() >= 10) { + int b2 = cVar.b(10); + if (b2 < 1000) { + sb.append(f(b2 / 100)); + sb.append(f((b2 / 10) % 10)); + sb.append(f(b2 % 10)); + i -= 3; + } else { + throw FormatException.a(); + } + } else { + throw FormatException.a(); + } + } + if (i == 2) { + if (cVar.a() >= 7) { + int b3 = cVar.b(7); + if (b3 < 100) { + sb.append(f(b3 / 10)); + sb.append(f(b3 % 10)); + return; + } + throw FormatException.a(); + } + throw FormatException.a(); + } else if (i != 1) { + } else { + if (cVar.a() >= 4) { + int b4 = cVar.b(4); + if (b4 < 10) { + sb.append(f(b4)); + return; + } + throw FormatException.a(); + } + throw FormatException.a(); + } + } + + public static char f(int i) throws FormatException { + char[] cArr = a; + if (i < cArr.length) { + return cArr[i]; + } + throw FormatException.a(); + } +} diff --git a/app/src/main/java/b/i/e/s/b/e.java b/app/src/main/java/b/i/e/s/b/e.java new file mode 100644 index 0000000000..bdc4d176fb --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/e.java @@ -0,0 +1,351 @@ +package b.i.e.s.b; + +import b.i.e.d; +import b.i.e.n.b; +import b.i.e.n.l.a; +import b.i.e.n.l.c; +import b.i.e.s.b.j; +import com.google.zxing.ChecksumException; +import com.google.zxing.FormatException; +import com.google.zxing.common.reedsolomon.ReedSolomonException; +import java.util.ArrayList; +import java.util.Map; +/* compiled from: Decoder */ +public final class e { + public final c a = new c(a.e); + + public b.i.e.n.e a(b bVar, Map map) throws FormatException, ChecksumException { + ChecksumException checksumException; + FormatException e; + a aVar = new a(bVar); + try { + return b(aVar, map); + } catch (FormatException e2) { + e = e2; + checksumException = null; + try { + aVar.e(); + aVar.f1871b = null; + aVar.c = null; + aVar.d = true; + aVar.d(); + aVar.c(); + aVar.b(); + b.i.e.n.e b2 = b(aVar, map); + b2.f = new i(true); + return b2; + } catch (ChecksumException | FormatException unused) { + if (e != null) { + throw e; + } + throw checksumException; + } + } catch (ChecksumException e3) { + checksumException = e3; + e = null; + aVar.e(); + aVar.f1871b = null; + aVar.c = null; + aVar.d = true; + aVar.d(); + aVar.c(); + aVar.b(); + b.i.e.n.e b2 = b(aVar, map); + b2.f = new i(true); + return b2; + } + } + + /* JADX WARNING: Removed duplicated region for block: B:138:0x0257 A[Catch:{ IllegalArgumentException -> 0x0348 }] */ + /* JADX WARNING: Removed duplicated region for block: B:196:0x0343 A[LOOP:19: B:102:0x0204->B:196:0x0343, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:235:0x0329 A[SYNTHETIC] */ + public final b.i.e.n.e b(a aVar, Map map) throws FormatException, ChecksumException { + h hVar; + int ordinal; + int i; + int i2; + int i3; + b bVar; + j d = aVar.d(); + f fVar = aVar.c().f1873b; + g c = aVar.c(); + j d2 = aVar.d(); + c cVar = c.values()[c.c]; + b bVar2 = aVar.a; + int i4 = bVar2.k; + cVar.g(bVar2, i4); + int c2 = d2.c(); + b bVar3 = new b(c2, c2); + int i5 = 0; + bVar3.k(0, 0, 9, 9); + int i6 = c2 - 8; + bVar3.k(i6, 0, 8, 9); + bVar3.k(0, i6, 9, 8); + int length = d2.d.length; + for (int i7 = 0; i7 < length; i7++) { + int i8 = d2.d[i7] - 2; + for (int i9 = 0; i9 < length; i9++) { + if (!((i7 == 0 && (i9 == 0 || i9 == length - 1)) || (i7 == length - 1 && i9 == 0))) { + bVar3.k(d2.d[i9] - 2, i8, 5, 5); + } + } + } + int i10 = c2 - 17; + int i11 = 6; + bVar3.k(6, 9, 1, i10); + bVar3.k(9, 6, i10, 1); + if (d2.c > 6) { + int i12 = c2 - 11; + bVar3.k(i12, 0, 3, 6); + bVar3.k(0, i12, 6, 3); + } + int i13 = d2.f; + byte[] bArr = new byte[i13]; + int i14 = i4 - 1; + int i15 = i14; + int i16 = 0; + boolean z2 = true; + int i17 = 0; + int i18 = 0; + while (true) { + int i19 = 2; + if (i15 <= 0) { + break; + } + if (i15 == i11) { + i15--; + } + int i20 = 0; + while (i20 < i4) { + int i21 = z2 ? i14 - i20 : i20; + while (i5 < i19) { + int i22 = i15 - i5; + if (!bVar3.f(i22, i21)) { + int i23 = i17 + 1; + int i24 = i18 << 1; + bVar = bVar3; + int i25 = aVar.a.f(i22, i21) ? i24 | 1 : i24; + if (i23 == 8) { + bArr[i16] = (byte) i25; + i16++; + i17 = 0; + i18 = 0; + } else { + i18 = i25; + i17 = i23; + } + } else { + bVar = bVar3; + } + i5++; + bVar3 = bVar; + i19 = 2; + } + i20++; + i5 = 0; + i19 = 2; + } + z2 = !z2; + i15 -= 2; + i5 = 0; + i11 = 6; + } + if (i16 != d2.f) { + throw FormatException.a(); + } else if (i13 == d.f) { + j.b bVar4 = d.e[fVar.ordinal()]; + j.a[] aVarArr = bVar4.f1877b; + int i26 = 0; + for (j.a aVar2 : aVarArr) { + i26 += aVar2.a; + } + b[] bVarArr = new b[i26]; + int i27 = 0; + for (j.a aVar3 : aVarArr) { + int i28 = 0; + while (i28 < aVar3.a) { + int i29 = aVar3.f1876b; + bVarArr[i27] = new b(i29, new byte[(bVar4.a + i29)]); + i28++; + i27++; + } + } + int length2 = bVarArr[0].f1872b.length; + int i30 = i26 - 1; + while (i30 >= 0 && bVarArr[i30].f1872b.length != length2) { + i30--; + } + int i31 = i30 + 1; + int i32 = length2 - bVar4.a; + int i33 = 0; + for (int i34 = 0; i34 < i32; i34++) { + int i35 = 0; + while (i35 < i27) { + bVarArr[i35].f1872b[i34] = bArr[i33]; + i35++; + i33++; + } + } + int i36 = i31; + while (i36 < i27) { + bVarArr[i36].f1872b[i32] = bArr[i33]; + i36++; + i33++; + } + boolean z3 = false; + int length3 = bVarArr[0].f1872b.length; + while (i32 < length3) { + int i37 = 0; + while (i37 < i27) { + bVarArr[i37].f1872b[i37 < i31 ? i32 : i32 + 1] = bArr[i33]; + i37++; + i33++; + } + i32++; + } + int i38 = 0; + for (int i39 = 0; i39 < i26; i39++) { + i38 += bVarArr[i39].a; + } + byte[] bArr2 = new byte[i38]; + int i40 = 0; + for (int i41 = 0; i41 < i26; i41++) { + b bVar5 = bVarArr[i41]; + byte[] bArr3 = bVar5.f1872b; + int i42 = bVar5.a; + int length4 = bArr3.length; + int[] iArr = new int[length4]; + for (int i43 = 0; i43 < length4; i43++) { + iArr[i43] = bArr3[i43] & 255; + } + try { + this.a.a(iArr, bArr3.length - i42); + for (int i44 = 0; i44 < i42; i44++) { + bArr3[i44] = (byte) iArr[i44]; + } + int i45 = 0; + while (i45 < i42) { + bArr2[i40] = bArr3[i45]; + i45++; + i40++; + } + } catch (ReedSolomonException unused) { + throw ChecksumException.a(); + } + } + char[] cArr = d.a; + h hVar2 = h.TERMINATOR; + b.i.e.n.c cVar2 = new b.i.e.n.c(bArr2); + StringBuilder sb = new StringBuilder(50); + ArrayList arrayList = new ArrayList(1); + int i46 = -1; + int i47 = -1; + b.i.e.n.d dVar = null; + while (true) { + try { + if (cVar2.a() >= 4) { + int b2 = cVar2.b(4); + if (b2 != 0) { + if (b2 == 1) { + hVar = h.NUMERIC; + } else if (b2 == 2) { + hVar = h.ALPHANUMERIC; + } else if (b2 == 3) { + hVar = h.STRUCTURED_APPEND; + } else if (b2 == 4) { + hVar = h.BYTE; + } else if (b2 == 5) { + hVar = h.FNC1_FIRST_POSITION; + } else if (b2 == 7) { + hVar = h.ECI; + } else if (b2 == 8) { + hVar = h.KANJI; + } else if (b2 == 9) { + hVar = h.FNC1_SECOND_POSITION; + } else if (b2 == 13) { + hVar = h.HANZI; + } else { + throw new IllegalArgumentException(); + } + ordinal = hVar.ordinal(); + if (ordinal != 0) { + if (ordinal != 3) { + if (ordinal == 5) { + int b3 = cVar2.b(8); + if ((b3 & 128) == 0) { + i3 = b3 & 127; + } else if ((b3 & 192) == 128) { + i3 = ((b3 & 63) << 8) | cVar2.b(8); + } else if ((b3 & 224) == 192) { + i3 = ((b3 & 31) << 16) | cVar2.b(16); + } else { + throw FormatException.a(); + } + dVar = b.i.e.n.d.f(i3); + if (dVar == null) { + throw FormatException.a(); + } + } else if (ordinal == 7 || ordinal == 8) { + z3 = true; + } else if (ordinal != 9) { + int b4 = cVar2.b(hVar.f(d)); + int ordinal2 = hVar.ordinal(); + if (ordinal2 == 1) { + d.e(cVar2, sb, b4); + } else if (ordinal2 == 2) { + d.a(cVar2, sb, b4, z3); + } else if (ordinal2 == 4) { + d.b(cVar2, sb, b4, dVar, arrayList, map); + } else if (ordinal2 == 6) { + d.d(cVar2, sb, b4); + } else { + throw FormatException.a(); + } + } else { + int b5 = cVar2.b(4); + int b6 = cVar2.b(hVar.f(d)); + if (b5 == 1) { + d.c(cVar2, sb, b6); + } + } + i2 = i46; + i = i47; + if (hVar != hVar2) { + return new b.i.e.n.e(bArr2, sb.toString(), arrayList.isEmpty() ? null : arrayList, fVar.toString(), i2, i); + } + i46 = i2; + i47 = i; + } else if (cVar2.a() >= 16) { + i46 = cVar2.b(8); + i47 = cVar2.b(8); + } else { + throw FormatException.a(); + } + i2 = i46; + i = i47; + if (hVar != hVar2) { + } + } + i2 = i46; + i = i47; + if (hVar != hVar2) { + } + } + } + hVar = hVar2; + ordinal = hVar.ordinal(); + if (ordinal != 0) { + } + i2 = i46; + i = i47; + if (hVar != hVar2) { + } + } catch (IllegalArgumentException unused2) { + throw FormatException.a(); + } + } + } else { + throw new IllegalArgumentException(); + } + } +} diff --git a/app/src/main/java/b/i/e/s/b/f.java b/app/src/main/java/b/i/e/s/b/f.java new file mode 100644 index 0000000000..e4b81e794f --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/f.java @@ -0,0 +1,22 @@ +package b.i.e.s.b; +/* compiled from: ErrorCorrectionLevel */ +public enum f { + L(1), + M(0), + Q(3), + H(2); + + public static final f[] n; + private final int bits; + + static { + f fVar = L; + f fVar2 = M; + f fVar3 = Q; + n = new f[]{fVar2, fVar, H, fVar3}; + } + + public f(int i) { + this.bits = i; + } +} diff --git a/app/src/main/java/b/i/e/s/b/g.java b/app/src/main/java/b/i/e/s/b/g.java new file mode 100644 index 0000000000..70c0e21963 --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/g.java @@ -0,0 +1,64 @@ +package b.i.e.s.b; +/* compiled from: FormatInformation */ +public final class g { + public static final int[][] a = {new int[]{21522, 0}, new int[]{20773, 1}, new int[]{24188, 2}, new int[]{23371, 3}, new int[]{17913, 4}, new int[]{16590, 5}, new int[]{20375, 6}, new int[]{19104, 7}, new int[]{30660, 8}, new int[]{29427, 9}, new int[]{32170, 10}, new int[]{30877, 11}, new int[]{26159, 12}, new int[]{25368, 13}, new int[]{27713, 14}, new int[]{26998, 15}, new int[]{5769, 16}, new int[]{5054, 17}, new int[]{7399, 18}, new int[]{6608, 19}, new int[]{1890, 20}, new int[]{597, 21}, new int[]{3340, 22}, new int[]{2107, 23}, new int[]{13663, 24}, new int[]{12392, 25}, new int[]{16177, 26}, new int[]{14854, 27}, new int[]{9396, 28}, new int[]{8579, 29}, new int[]{11994, 30}, new int[]{11245, 31}}; + + /* renamed from: b reason: collision with root package name */ + public final f f1873b; + public final byte c; + + public g(int i) { + int i2 = (i >> 3) & 3; + if (i2 >= 0) { + f[] fVarArr = f.n; + if (i2 < fVarArr.length) { + this.f1873b = fVarArr[i2]; + this.c = (byte) (i & 7); + return; + } + } + throw new IllegalArgumentException(); + } + + public static g a(int i, int i2) { + int b2; + int[][] iArr = a; + int i3 = Integer.MAX_VALUE; + int i4 = 0; + for (int[] iArr2 : iArr) { + int i5 = iArr2[0]; + if (i5 == i || i5 == i2) { + return new g(iArr2[1]); + } + int b3 = b(i, i5); + if (b3 < i3) { + i4 = iArr2[1]; + i3 = b3; + } + if (i != i2 && (b2 = b(i2, i5)) < i3) { + i4 = iArr2[1]; + i3 = b2; + } + } + if (i3 <= 3) { + return new g(i4); + } + return null; + } + + public static int b(int i, int i2) { + return Integer.bitCount(i ^ i2); + } + + public boolean equals(Object obj) { + if (!(obj instanceof g)) { + return false; + } + g gVar = (g) obj; + return this.f1873b == gVar.f1873b && this.c == gVar.c; + } + + public int hashCode() { + return (this.f1873b.ordinal() << 3) | this.c; + } +} diff --git a/app/src/main/java/b/i/e/s/b/h.java b/app/src/main/java/b/i/e/s/b/h.java new file mode 100644 index 0000000000..2ed34b7f8f --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/h.java @@ -0,0 +1,27 @@ +package b.i.e.s.b; +/* compiled from: Mode */ +public enum h { + TERMINATOR(new int[]{0, 0, 0}, 0), + NUMERIC(new int[]{10, 12, 14}, 1), + ALPHANUMERIC(new int[]{9, 11, 13}, 2), + STRUCTURED_APPEND(new int[]{0, 0, 0}, 3), + BYTE(new int[]{8, 16, 16}, 4), + ECI(new int[]{0, 0, 0}, 7), + KANJI(new int[]{8, 10, 12}, 8), + FNC1_FIRST_POSITION(new int[]{0, 0, 0}, 5), + FNC1_SECOND_POSITION(new int[]{0, 0, 0}, 9), + HANZI(new int[]{8, 10, 12}, 13); + + private final int bits; + private final int[] characterCountBitsForVersions; + + public h(int[] iArr, int i) { + this.characterCountBitsForVersions = iArr; + this.bits = i; + } + + public int f(j jVar) { + int i = jVar.c; + return this.characterCountBitsForVersions[i <= 9 ? 0 : i <= 26 ? (char) 1 : 2]; + } +} diff --git a/app/src/main/java/b/i/e/s/b/i.java b/app/src/main/java/b/i/e/s/b/i.java new file mode 100644 index 0000000000..0fd8fc6df4 --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/i.java @@ -0,0 +1,9 @@ +package b.i.e.s.b; +/* compiled from: QRCodeDecoderMetaData */ +public final class i { + public final boolean a; + + public i(boolean z2) { + this.a = z2; + } +} diff --git a/app/src/main/java/b/i/e/s/b/j.java b/app/src/main/java/b/i/e/s/b/j.java new file mode 100644 index 0000000000..90cdd9f197 --- /dev/null +++ b/app/src/main/java/b/i/e/s/b/j.java @@ -0,0 +1,97 @@ +package b.i.e.s.b; + +import com.discord.utilities.font.FontUtils; +/* compiled from: Version */ +public final class j { + public static final int[] a = {31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017}; + + /* renamed from: b reason: collision with root package name */ + public static final j[] f1875b = a(); + public final int c; + public final int[] d; + public final b[] e; + public final int f; + + /* compiled from: Version */ + public static final class a { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1876b; + + public a(int i, int i2) { + this.a = i; + this.f1876b = i2; + } + } + + /* compiled from: Version */ + public static final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final a[] f1877b; + + public b(int i, a... aVarArr) { + this.a = i; + this.f1877b = aVarArr; + } + } + + public j(int i, int[] iArr, b... bVarArr) { + this.c = i; + this.d = iArr; + this.e = bVarArr; + int i2 = bVarArr[0].a; + a[] aVarArr = bVarArr[0].f1877b; + int i3 = 0; + for (a aVar : aVarArr) { + i3 += (aVar.f1876b + i2) * aVar.a; + } + this.f = i3; + } + + public static j[] a() { + return new j[]{new j(1, new int[0], new b(7, new a(1, 19)), new b(10, new a(1, 16)), new b(13, new a(1, 13)), new b(17, new a(1, 9))), new j(2, new int[]{6, 18}, new b(10, new a(1, 34)), new b(16, new a(1, 28)), new b(22, new a(1, 22)), new b(28, new a(1, 16))), new j(3, new int[]{6, 22}, new b(15, new a(1, 55)), new b(26, new a(1, 44)), new b(18, new a(2, 17)), new b(22, new a(2, 13))), new j(4, new int[]{6, 26}, new b(20, new a(1, 80)), new b(18, new a(2, 32)), new b(26, new a(2, 24)), new b(16, new a(4, 9))), new j(5, new int[]{6, 30}, new b(26, new a(1, 108)), new b(24, new a(2, 43)), new b(18, new a(2, 15), new a(2, 16)), new b(22, new a(2, 11), new a(2, 12))), new j(6, new int[]{6, 34}, new b(18, new a(2, 68)), new b(16, new a(4, 27)), new b(24, new a(4, 19)), new b(28, new a(4, 15))), new j(7, new int[]{6, 22, 38}, new b(20, new a(2, 78)), new b(18, new a(4, 31)), new b(18, new a(2, 14), new a(4, 15)), new b(26, new a(4, 13), new a(1, 14))), new j(8, new int[]{6, 24, 42}, new b(24, new a(2, 97)), new b(22, new a(2, 38), new a(2, 39)), new b(22, new a(4, 18), new a(2, 19)), new b(26, new a(4, 14), new a(2, 15))), new j(9, new int[]{6, 26, 46}, new b(30, new a(2, 116)), new b(22, new a(3, 36), new a(2, 37)), new b(20, new a(4, 16), new a(4, 17)), new b(24, new a(4, 12), new a(4, 13))), new j(10, new int[]{6, 28, 50}, new b(18, new a(2, 68), new a(2, 69)), new b(26, new a(4, 43), new a(1, 44)), new b(24, new a(6, 19), new a(2, 20)), new b(28, new a(6, 15), new a(2, 16))), new j(11, new int[]{6, 30, 54}, new b(20, new a(4, 81)), new b(30, new a(1, 50), new a(4, 51)), new b(28, new a(4, 22), new a(4, 23)), new b(24, new a(3, 12), new a(8, 13))), new j(12, new int[]{6, 32, 58}, new b(24, new a(2, 92), new a(2, 93)), new b(22, new a(6, 36), new a(2, 37)), new b(26, new a(4, 20), new a(6, 21)), new b(28, new a(7, 14), new a(4, 15))), new j(13, new int[]{6, 34, 62}, new b(26, new a(4, 107)), new b(22, new a(8, 37), new a(1, 38)), new b(24, new a(8, 20), new a(4, 21)), new b(22, new a(12, 11), new a(4, 12))), new j(14, new int[]{6, 26, 46, 66}, new b(30, new a(3, 115), new a(1, 116)), new b(24, new a(4, 40), new a(5, 41)), new b(20, new a(11, 16), new a(5, 17)), new b(24, new a(11, 12), new a(5, 13))), new j(15, new int[]{6, 26, 48, 70}, new b(22, new a(5, 87), new a(1, 88)), new b(24, new a(5, 41), new a(5, 42)), new b(30, new a(5, 24), new a(7, 25)), new b(24, new a(11, 12), new a(7, 13))), new j(16, new int[]{6, 26, 50, 74}, new b(24, new a(5, 98), new a(1, 99)), new b(28, new a(7, 45), new a(3, 46)), new b(24, new a(15, 19), new a(2, 20)), new b(30, new a(3, 15), new a(13, 16))), new j(17, new int[]{6, 30, 54, 78}, new b(28, new a(1, 107), new a(5, 108)), new b(28, new a(10, 46), new a(1, 47)), new b(28, new a(1, 22), new a(15, 23)), new b(28, new a(2, 14), new a(17, 15))), new j(18, new int[]{6, 30, 56, 82}, new b(30, new a(5, 120), new a(1, 121)), new b(26, new a(9, 43), new a(4, 44)), new b(28, new a(17, 22), new a(1, 23)), new b(28, new a(2, 14), new a(19, 15))), new j(19, new int[]{6, 30, 58, 86}, new b(28, new a(3, 113), new a(4, 114)), new b(26, new a(3, 44), new a(11, 45)), new b(26, new a(17, 21), new a(4, 22)), new b(26, new a(9, 13), new a(16, 14))), new j(20, new int[]{6, 34, 62, 90}, new b(28, new a(3, 107), new a(5, 108)), new b(26, new a(3, 41), new a(13, 42)), new b(30, new a(15, 24), new a(5, 25)), new b(28, new a(15, 15), new a(10, 16))), new j(21, new int[]{6, 28, 50, 72, 94}, new b(28, new a(4, 116), new a(4, 117)), new b(26, new a(17, 42)), new b(28, new a(17, 22), new a(6, 23)), new b(30, new a(19, 16), new a(6, 17))), new j(22, new int[]{6, 26, 50, 74, 98}, new b(28, new a(2, 111), new a(7, 112)), new b(28, new a(17, 46)), new b(30, new a(7, 24), new a(16, 25)), new b(24, new a(34, 13))), new j(23, new int[]{6, 30, 54, 78, 102}, new b(30, new a(4, 121), new a(5, 122)), new b(28, new a(4, 47), new a(14, 48)), new b(30, new a(11, 24), new a(14, 25)), new b(30, new a(16, 15), new a(14, 16))), new j(24, new int[]{6, 28, 54, 80, 106}, new b(30, new a(6, 117), new a(4, 118)), new b(28, new a(6, 45), new a(14, 46)), new b(30, new a(11, 24), new a(16, 25)), new b(30, new a(30, 16), new a(2, 17))), new j(25, new int[]{6, 32, 58, 84, 110}, new b(26, new a(8, 106), new a(4, 107)), new b(28, new a(8, 47), new a(13, 48)), new b(30, new a(7, 24), new a(22, 25)), new b(30, new a(22, 15), new a(13, 16))), new j(26, new int[]{6, 30, 58, 86, 114}, new b(28, new a(10, 114), new a(2, 115)), new b(28, new a(19, 46), new a(4, 47)), new b(28, new a(28, 22), new a(6, 23)), new b(30, new a(33, 16), new a(4, 17))), new j(27, new int[]{6, 34, 62, 90, 118}, new b(30, new a(8, 122), new a(4, 123)), new b(28, new a(22, 45), new a(3, 46)), new b(30, new a(8, 23), new a(26, 24)), new b(30, new a(12, 15), new a(28, 16))), new j(28, new int[]{6, 26, 50, 74, 98, 122}, new b(30, new a(3, 117), new a(10, 118)), new b(28, new a(3, 45), new a(23, 46)), new b(30, new a(4, 24), new a(31, 25)), new b(30, new a(11, 15), new a(31, 16))), new j(29, new int[]{6, 30, 54, 78, 102, 126}, new b(30, new a(7, 116), new a(7, 117)), new b(28, new a(21, 45), new a(7, 46)), new b(30, new a(1, 23), new a(37, 24)), new b(30, new a(19, 15), new a(26, 16))), new j(30, new int[]{6, 26, 52, 78, 104, 130}, new b(30, new a(5, 115), new a(10, 116)), new b(28, new a(19, 47), new a(10, 48)), new b(30, new a(15, 24), new a(25, 25)), new b(30, new a(23, 15), new a(25, 16))), new j(31, new int[]{6, 30, 56, 82, 108, 134}, new b(30, new a(13, 115), new a(3, 116)), new b(28, new a(2, 46), new a(29, 47)), new b(30, new a(42, 24), new a(1, 25)), new b(30, new a(23, 15), new a(28, 16))), new j(32, new int[]{6, 34, 60, 86, 112, 138}, new b(30, new a(17, 115)), new b(28, new a(10, 46), new a(23, 47)), new b(30, new a(10, 24), new a(35, 25)), new b(30, new a(19, 15), new a(35, 16))), new j(33, new int[]{6, 30, 58, 86, 114, 142}, new b(30, new a(17, 115), new a(1, 116)), new b(28, new a(14, 46), new a(21, 47)), new b(30, new a(29, 24), new a(19, 25)), new b(30, new a(11, 15), new a(46, 16))), new j(34, new int[]{6, 34, 62, 90, 118, 146}, new b(30, new a(13, 115), new a(6, 116)), new b(28, new a(14, 46), new a(23, 47)), new b(30, new a(44, 24), new a(7, 25)), new b(30, new a(59, 16), new a(1, 17))), new j(35, new int[]{6, 30, 54, 78, 102, 126, FontUtils.MAX_FONT_SCALING}, new b(30, new a(12, 121), new a(7, 122)), new b(28, new a(12, 47), new a(26, 48)), new b(30, new a(39, 24), new a(14, 25)), new b(30, new a(22, 15), new a(41, 16))), new j(36, new int[]{6, 24, 50, 76, 102, 128, 154}, new b(30, new a(6, 121), new a(14, 122)), new b(28, new a(6, 47), new a(34, 48)), new b(30, new a(46, 24), new a(10, 25)), new b(30, new a(2, 15), new a(64, 16))), new j(37, new int[]{6, 28, 54, 80, 106, 132, 158}, new b(30, new a(17, 122), new a(4, 123)), new b(28, new a(29, 46), new a(14, 47)), new b(30, new a(49, 24), new a(10, 25)), new b(30, new a(24, 15), new a(46, 16))), new j(38, new int[]{6, 32, 58, 84, 110, 136, 162}, new b(30, new a(4, 122), new a(18, 123)), new b(28, new a(13, 46), new a(32, 47)), new b(30, new a(48, 24), new a(14, 25)), new b(30, new a(42, 15), new a(32, 16))), new j(39, new int[]{6, 26, 54, 82, 110, 138, 166}, new b(30, new a(20, 117), new a(4, 118)), new b(28, new a(40, 47), new a(7, 48)), new b(30, new a(43, 24), new a(22, 25)), new b(30, new a(10, 15), new a(67, 16))), new j(40, new int[]{6, 30, 58, 86, 114, 142, 170}, new b(30, new a(19, 118), new a(6, 119)), new b(28, new a(18, 47), new a(31, 48)), new b(30, new a(34, 24), new a(34, 25)), new b(30, new a(20, 15), new a(61, 16)))}; + } + + public static j b(int i) { + int i2 = 0; + int i3 = 0; + int i4 = Integer.MAX_VALUE; + while (true) { + int[] iArr = a; + if (i2 < iArr.length) { + int i5 = iArr[i2]; + if (i5 == i) { + return d(i2 + 7); + } + int b2 = g.b(i, i5); + if (b2 < i4) { + i3 = i2 + 7; + i4 = b2; + } + i2++; + } else if (i4 <= 3) { + return d(i3); + } else { + return null; + } + } + } + + public static j d(int i) { + if (i > 0 && i <= 40) { + return f1875b[i - 1]; + } + throw new IllegalArgumentException(); + } + + public int c() { + return (this.c * 4) + 17; + } + + public String toString() { + return String.valueOf(this.c); + } +} diff --git a/app/src/main/java/b/i/e/s/c/a.java b/app/src/main/java/b/i/e/s/c/a.java new file mode 100644 index 0000000000..1ff666db19 --- /dev/null +++ b/app/src/main/java/b/i/e/s/c/a.java @@ -0,0 +1,12 @@ +package b.i.e.s.c; + +import b.i.e.k; +/* compiled from: AlignmentPattern */ +public final class a extends k { + public final float c; + + public a(float f, float f2, float f3) { + super(f, f2); + this.c = f3; + } +} diff --git a/app/src/main/java/b/i/e/s/c/b.java b/app/src/main/java/b/i/e/s/c/b.java new file mode 100644 index 0000000000..aeccef3dbd --- /dev/null +++ b/app/src/main/java/b/i/e/s/c/b.java @@ -0,0 +1,116 @@ +package b.i.e.s.c; + +import b.i.e.l; +import java.util.ArrayList; +import java.util.List; +/* compiled from: AlignmentPatternFinder */ +public final class b { + public final b.i.e.n.b a; + + /* renamed from: b reason: collision with root package name */ + public final List f1878b = new ArrayList(5); + public final int c; + public final int d; + public final int e; + public final int f; + public final float g; + public final int[] h; + public final l i; + + public b(b.i.e.n.b bVar, int i, int i2, int i3, int i4, float f, l lVar) { + this.a = bVar; + this.c = i; + this.d = i2; + this.e = i3; + this.f = i4; + this.g = f; + this.h = new int[3]; + this.i = lVar; + } + + public static float a(int[] iArr, int i) { + return ((float) (i - iArr[2])) - (((float) iArr[1]) / 2.0f); + } + + public final boolean b(int[] iArr) { + float f = this.g; + float f2 = f / 2.0f; + for (int i = 0; i < 3; i++) { + if (Math.abs(f - ((float) iArr[i])) >= f2) { + return false; + } + } + return true; + } + + /* JADX WARNING: Removed duplicated region for block: B:76:0x0100 A[SYNTHETIC] */ + public final a c(int[] iArr, int i, int i2) { + boolean z2; + int i3 = iArr[0] + iArr[1] + iArr[2]; + float a = a(iArr, i2); + int i4 = (int) a; + int i5 = iArr[1] * 2; + b.i.e.n.b bVar = this.a; + int i6 = bVar.k; + int[] iArr2 = this.h; + iArr2[0] = 0; + iArr2[1] = 0; + iArr2[2] = 0; + int i7 = i; + while (i7 >= 0 && bVar.f(i4, i7) && iArr2[1] <= i5) { + iArr2[1] = iArr2[1] + 1; + i7--; + } + float f = Float.NaN; + if (i7 >= 0 && iArr2[1] <= i5) { + while (i7 >= 0 && !bVar.f(i4, i7) && iArr2[0] <= i5) { + iArr2[0] = iArr2[0] + 1; + i7--; + } + if (iArr2[0] <= i5) { + int i8 = i + 1; + while (i8 < i6 && bVar.f(i4, i8) && iArr2[1] <= i5) { + iArr2[1] = iArr2[1] + 1; + i8++; + } + if (i8 != i6 && iArr2[1] <= i5) { + while (i8 < i6 && !bVar.f(i4, i8) && iArr2[2] <= i5) { + iArr2[2] = iArr2[2] + 1; + i8++; + } + if (iArr2[2] <= i5 && Math.abs(((iArr2[0] + iArr2[1]) + iArr2[2]) - i3) * 5 < i3 * 2 && b(iArr2)) { + f = a(iArr2, i8); + } + } + } + } + if (Float.isNaN(f)) { + return null; + } + float f2 = ((float) ((iArr[0] + iArr[1]) + iArr[2])) / 3.0f; + for (a aVar : this.f1878b) { + if (Math.abs(f - aVar.f1811b) <= f2 && Math.abs(a - aVar.a) <= f2) { + float abs = Math.abs(f2 - aVar.c); + if (abs <= 1.0f || abs <= aVar.c) { + z2 = true; + continue; + if (z2) { + return new a((aVar.a + a) / 2.0f, (aVar.f1811b + f) / 2.0f, (aVar.c + f2) / 2.0f); + } + } + } + z2 = false; + continue; + if (z2) { + } + } + a aVar2 = new a(a, f, f2); + this.f1878b.add(aVar2); + l lVar = this.i; + if (lVar == null) { + return null; + } + lVar.a(aVar2); + return null; + } +} diff --git a/app/src/main/java/b/i/e/s/c/c.java b/app/src/main/java/b/i/e/s/c/c.java new file mode 100644 index 0000000000..847afbcae4 --- /dev/null +++ b/app/src/main/java/b/i/e/s/c/c.java @@ -0,0 +1,200 @@ +package b.i.e.s.c; + +import b.i.a.f.e.o.f; +import b.i.e.k; +import b.i.e.l; +import b.i.e.n.b; +import com.google.zxing.NotFoundException; +/* compiled from: Detector */ +public class c { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public l f1879b; + + public c(b bVar) { + this.a = bVar; + } + + public final float a(k kVar, k kVar2) { + float d = d((int) kVar.a, (int) kVar.f1811b, (int) kVar2.a, (int) kVar2.f1811b); + float d2 = d((int) kVar2.a, (int) kVar2.f1811b, (int) kVar.a, (int) kVar.f1811b); + return Float.isNaN(d) ? d2 / 7.0f : Float.isNaN(d2) ? d / 7.0f : (d + d2) / 14.0f; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0062: APUT (r0v8 int[]), (0 ??[int, short, byte, char]), (0 int) */ + public final a b(float f, int i, int i2, float f2) throws NotFoundException { + a c; + a c2; + int i3 = (int) (f2 * f); + int max = Math.max(0, i - i3); + int min = Math.min(this.a.j - 1, i + i3) - max; + float f3 = 3.0f * f; + if (((float) min) >= f3) { + int max2 = Math.max(0, i2 - i3); + int min2 = Math.min(this.a.k - 1, i2 + i3) - max2; + if (((float) min2) >= f3) { + b bVar = new b(this.a, max, max2, min, min2, f, this.f1879b); + int i4 = bVar.c; + int i5 = bVar.f; + int i6 = bVar.e + i4; + int i7 = (i5 / 2) + bVar.d; + int[] iArr = new int[3]; + for (int i8 = 0; i8 < i5; i8++) { + int i9 = ((i8 & 1) == 0 ? (i8 + 1) / 2 : -((i8 + 1) / 2)) + i7; + iArr[0] = 0; + iArr[1] = 0; + iArr[2] = 0; + int i10 = i4; + while (i10 < i6 && !bVar.a.f(i10, i9)) { + i10++; + } + int i11 = 0; + while (i10 < i6) { + if (!bVar.a.f(i10, i9)) { + if (i11 == 1) { + i11++; + } + iArr[i11] = iArr[i11] + 1; + } else if (i11 == 1) { + iArr[1] = iArr[1] + 1; + } else if (i11 != 2) { + i11++; + iArr[i11] = iArr[i11] + 1; + } else if (bVar.b(iArr) && (c2 = bVar.c(iArr, i9, i10)) != null) { + return c2; + } else { + iArr[0] = iArr[2]; + iArr[1] = 1; + iArr[2] = 0; + i11 = 1; + } + i10++; + } + if (bVar.b(iArr) && (c = bVar.c(iArr, i9, i6)) != null) { + return c; + } + } + if (!bVar.f1878b.isEmpty()) { + return bVar.f1878b.get(0); + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + throw NotFoundException.l; + } + + public final float c(int i, int i2, int i3, int i4) { + int i5; + int i6; + int i7; + int i8; + int i9; + boolean z2; + c cVar; + boolean z3; + int i10 = 1; + boolean z4 = Math.abs(i4 - i2) > Math.abs(i3 - i); + if (z4) { + i7 = i; + i8 = i2; + i5 = i3; + i6 = i4; + } else { + i8 = i; + i7 = i2; + i6 = i3; + i5 = i4; + } + int abs = Math.abs(i6 - i8); + int abs2 = Math.abs(i5 - i7); + int i11 = (-abs) / 2; + int i12 = -1; + int i13 = i8 < i6 ? 1 : -1; + if (i7 < i5) { + i12 = 1; + } + int i14 = i6 + i13; + int i15 = i8; + int i16 = i7; + int i17 = 0; + while (true) { + if (i15 == i14) { + i9 = i14; + break; + } + int i18 = z4 ? i16 : i15; + int i19 = z4 ? i15 : i16; + if (i17 == i10) { + cVar = this; + z2 = z4; + i9 = i14; + z3 = true; + } else { + cVar = this; + z2 = z4; + i9 = i14; + z3 = false; + } + if (z3 == cVar.a.f(i18, i19)) { + if (i17 == 2) { + return f.Q(i15, i16, i8, i7); + } + i17++; + } + i11 += abs2; + if (i11 > 0) { + if (i16 == i5) { + break; + } + i16 += i12; + i11 -= abs; + } + i15 += i13; + i14 = i9; + z4 = z2; + i10 = 1; + } + if (i17 == 2) { + return f.Q(i9, i5, i8, i7); + } + return Float.NaN; + } + + public final float d(int i, int i2, int i3, int i4) { + float f; + float f2; + float c = c(i, i2, i3, i4); + int i5 = i - (i3 - i); + int i6 = 0; + if (i5 < 0) { + f = ((float) i) / ((float) (i - i5)); + i5 = 0; + } else { + int i7 = this.a.j; + if (i5 >= i7) { + int i8 = i7 - 1; + f = ((float) ((i7 - 1) - i)) / ((float) (i5 - i)); + i5 = i8; + } else { + f = 1.0f; + } + } + float f3 = (float) i2; + int i9 = (int) (f3 - (((float) (i4 - i2)) * f)); + if (i9 < 0) { + f2 = f3 / ((float) (i2 - i9)); + } else { + int i10 = this.a.k; + if (i9 >= i10) { + f2 = ((float) ((i10 - 1) - i2)) / ((float) (i9 - i2)); + i6 = i10 - 1; + } else { + i6 = i9; + f2 = 1.0f; + } + } + return (c(i, i2, (int) ((((float) (i5 - i)) * f2) + ((float) i)), i6) + c) - 1.0f; + } +} diff --git a/app/src/main/java/b/i/e/s/c/d.java b/app/src/main/java/b/i/e/s/c/d.java new file mode 100644 index 0000000000..2752da1526 --- /dev/null +++ b/app/src/main/java/b/i/e/s/c/d.java @@ -0,0 +1,20 @@ +package b.i.e.s.c; + +import b.i.e.k; +/* compiled from: FinderPattern */ +public final class d extends k { + public final float c; + public final int d; + + public d(float f, float f2, float f3) { + super(f, f2); + this.c = f3; + this.d = 1; + } + + public d(float f, float f2, float f3, int i) { + super(f, f2); + this.c = f3; + this.d = i; + } +} diff --git a/app/src/main/java/b/i/e/s/c/e.java b/app/src/main/java/b/i/e/s/c/e.java new file mode 100644 index 0000000000..045ad13e37 --- /dev/null +++ b/app/src/main/java/b/i/e/s/c/e.java @@ -0,0 +1,347 @@ +package b.i.e.s.c; + +import b.i.e.l; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Comparator; +import java.util.List; +/* compiled from: FinderPatternFinder */ +public class e { + public final b.i.e.n.b a; + + /* renamed from: b reason: collision with root package name */ + public final List f1880b = new ArrayList(); + public boolean c; + public final int[] d = new int[5]; + public final l e; + + /* compiled from: FinderPatternFinder */ + public static final class b implements Serializable, Comparator { + private final float average; + + public b(float f, a aVar) { + this.average = f; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(d dVar, d dVar2) { + d dVar3 = dVar; + d dVar4 = dVar2; + int compare = Integer.compare(dVar4.d, dVar3.d); + return compare == 0 ? Float.compare(Math.abs(dVar3.c - this.average), Math.abs(dVar4.c - this.average)) : compare; + } + } + + /* compiled from: FinderPatternFinder */ + public static final class c implements Serializable, Comparator { + private final float average; + + public c(float f, a aVar) { + this.average = f; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(d dVar, d dVar2) { + return Float.compare(Math.abs(dVar2.c - this.average), Math.abs(dVar.c - this.average)); + } + } + + public e(b.i.e.n.b bVar, l lVar) { + this.a = bVar; + this.e = lVar; + } + + public static float a(int[] iArr, int i) { + return ((float) ((i - iArr[4]) - iArr[3])) - (((float) iArr[2]) / 2.0f); + } + + public static boolean c(int[] iArr) { + int i = 0; + for (int i2 = 0; i2 < 5; i2++) { + int i3 = iArr[i2]; + if (i3 == 0) { + return false; + } + i += i3; + } + if (i < 7) { + return false; + } + float f = ((float) i) / 7.0f; + float f2 = f / 2.0f; + return Math.abs(f - ((float) iArr[0])) < f2 && Math.abs(f - ((float) iArr[1])) < f2 && Math.abs((f * 3.0f) - ((float) iArr[2])) < 3.0f * f2 && Math.abs(f - ((float) iArr[3])) < f2 && Math.abs(f - ((float) iArr[4])) < f2; + } + + public final void b(int[] iArr) { + for (int i = 0; i < iArr.length; i++) { + iArr[i] = 0; + } + } + + public final int[] d() { + b(this.d); + return this.d; + } + + /* JADX WARNING: Removed duplicated region for block: B:109:0x01b7 */ + /* JADX WARNING: Removed duplicated region for block: B:192:0x0346 A[LOOP:19: B:178:0x02e1->B:192:0x0346, LOOP_END] */ + /* JADX WARNING: Removed duplicated region for block: B:252:0x0322 A[SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:254:? A[ORIG_RETURN, RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:255:? A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:55:0x00eb */ + public final boolean e(int[] iArr, int i, int i2) { + float f; + float f2; + boolean z2; + boolean z3; + boolean z4; + int i3; + int i4; + int i5; + int i6 = iArr[0] + iArr[1] + iArr[2] + iArr[3] + iArr[4]; + int a2 = (int) a(iArr, i2); + int i7 = iArr[2]; + b.i.e.n.b bVar = this.a; + int i8 = bVar.k; + int[] d = d(); + int i9 = i; + while (i9 >= 0 && bVar.f(a2, i9)) { + d[2] = d[2] + 1; + i9--; + } + if (i9 >= 0) { + while (i9 >= 0 && !bVar.f(a2, i9) && d[1] <= i7) { + d[1] = d[1] + 1; + i9--; + } + if (i9 >= 0 && d[1] <= i7) { + while (i9 >= 0 && bVar.f(a2, i9) && d[0] <= i7) { + d[0] = d[0] + 1; + i9--; + } + if (d[0] <= i7) { + int i10 = i + 1; + while (i10 < i8 && bVar.f(a2, i10)) { + d[2] = d[2] + 1; + i10++; + } + if (i10 != i8) { + while (i10 < i8 && !bVar.f(a2, i10) && d[3] < i7) { + d[3] = d[3] + 1; + i10++; + } + if (i10 != i8 && d[3] < i7) { + while (i10 < i8 && bVar.f(a2, i10) && d[4] < i7) { + d[4] = d[4] + 1; + i10++; + } + if (d[4] < i7 && Math.abs(((((d[0] + d[1]) + d[2]) + d[3]) + d[4]) - i6) * 5 < i6 * 2 && c(d)) { + f = a(d, i10); + if (!Float.isNaN(f)) { + return false; + } + int i11 = (int) f; + int i12 = iArr[2]; + b.i.e.n.b bVar2 = this.a; + int i13 = bVar2.j; + int[] d2 = d(); + int i14 = a2; + while (i14 >= 0 && bVar2.f(i14, i11)) { + d2[2] = d2[2] + 1; + i14--; + } + if (i14 >= 0) { + while (i14 >= 0 && !bVar2.f(i14, i11) && d2[1] <= i12) { + d2[1] = d2[1] + 1; + i14--; + } + if (i14 >= 0 && d2[1] <= i12) { + while (i14 >= 0 && bVar2.f(i14, i11) && d2[0] <= i12) { + d2[0] = d2[0] + 1; + i14--; + } + if (d2[0] <= i12) { + int i15 = a2 + 1; + while (i15 < i13 && bVar2.f(i15, i11)) { + d2[2] = d2[2] + 1; + i15++; + } + if (i15 != i13) { + while (i15 < i13 && !bVar2.f(i15, i11) && d2[3] < i12) { + d2[3] = d2[3] + 1; + i15++; + } + if (i15 != i13 && d2[3] < i12) { + while (i15 < i13 && bVar2.f(i15, i11) && d2[4] < i12) { + d2[4] = d2[4] + 1; + i15++; + } + if (d2[4] < i12 && Math.abs(((((d2[0] + d2[1]) + d2[2]) + d2[3]) + d2[4]) - i6) * 5 < i6 && c(d2)) { + f2 = a(d2, i15); + if (!Float.isNaN(f2)) { + return false; + } + int i16 = (int) f2; + int[] d3 = d(); + int i17 = 0; + while (i11 >= i17 && i16 >= i17 && this.a.f(i16 - i17, i11 - i17)) { + d3[2] = d3[2] + 1; + i17++; + } + if (d3[2] != 0) { + while (i11 >= i17 && i16 >= i17 && !this.a.f(i16 - i17, i11 - i17)) { + d3[1] = d3[1] + 1; + i17++; + } + if (d3[1] != 0) { + while (i11 >= i17 && i16 >= i17 && this.a.f(i16 - i17, i11 - i17)) { + d3[0] = d3[0] + 1; + i17++; + } + if (d3[0] != 0) { + b.i.e.n.b bVar3 = this.a; + int i18 = bVar3.k; + int i19 = bVar3.j; + int i20 = 1; + while (true) { + int i21 = i11 + i20; + if (i21 >= i18 || (i5 = i16 + i20) >= i19 || !this.a.f(i5, i21)) { + break; + } + d3[2] = d3[2] + 1; + i20++; + } + while (true) { + int i22 = i11 + i20; + if (i22 >= i18 || (i4 = i16 + i20) >= i19 || this.a.f(i4, i22)) { + break; + } + d3[3] = d3[3] + 1; + i20++; + } + if (d3[3] != 0) { + while (true) { + int i23 = i11 + i20; + if (i23 >= i18 || (i3 = i16 + i20) >= i19 || !this.a.f(i3, i23)) { + break; + } + d3[4] = d3[4] + 1; + i20++; + } + if (d3[4] != 0) { + int i24 = 0; + int i25 = 0; + while (true) { + if (i24 < 5) { + int i26 = d3[i24]; + if (i26 == 0) { + break; + } + i25 += i26; + i24++; + } else if (i25 >= 7) { + float f3 = ((float) i25) / 7.0f; + float f4 = f3 / 1.333f; + if (Math.abs(f3 - ((float) d3[0])) < f4 && Math.abs(f3 - ((float) d3[1])) < f4 && Math.abs((f3 * 3.0f) - ((float) d3[2])) < 3.0f * f4 && Math.abs(f3 - ((float) d3[3])) < f4 && Math.abs(f3 - ((float) d3[4])) < f4) { + z2 = true; + } + } + } + } + } + } + } + } + z2 = false; + if (!z2) { + return false; + } + float f5 = ((float) i6) / 7.0f; + int i27 = 0; + while (true) { + if (i27 >= this.f1880b.size()) { + z3 = false; + break; + } + d dVar = this.f1880b.get(i27); + if (Math.abs(f - dVar.f1811b) <= f5 && Math.abs(f2 - dVar.a) <= f5) { + float abs = Math.abs(f5 - dVar.c); + if (abs <= 1.0f || abs <= dVar.c) { + z4 = true; + if (!z4) { + List list = this.f1880b; + int i28 = dVar.d; + int i29 = i28 + 1; + float f6 = (float) i28; + float f7 = (float) i29; + list.set(i27, new d(((dVar.a * f6) + f2) / f7, ((dVar.f1811b * f6) + f) / f7, ((f6 * dVar.c) + f5) / f7, i29)); + z3 = true; + break; + } + i27++; + } + } + z4 = false; + if (!z4) { + } + } + if (!z3) { + d dVar2 = new d(f2, f, f5); + this.f1880b.add(dVar2); + l lVar = this.e; + if (lVar != null) { + lVar.a(dVar2); + } + } + return true; + } + } + } + } + } + } + f2 = Float.NaN; + if (!Float.isNaN(f2)) { + } + } + } + } + } + } + } + f = Float.NaN; + if (!Float.isNaN(f)) { + } + } + + public final boolean f() { + int size = this.f1880b.size(); + float f = 0.0f; + int i = 0; + float f2 = 0.0f; + for (d dVar : this.f1880b) { + if (dVar.d >= 2) { + i++; + f2 += dVar.c; + } + } + if (i < 3) { + return false; + } + float f3 = f2 / ((float) size); + for (d dVar2 : this.f1880b) { + f += Math.abs(dVar2.c - f3); + } + return f <= f2 * 0.05f; + } + + public final void g(int[] iArr) { + iArr[0] = iArr[2]; + iArr[1] = iArr[3]; + iArr[2] = iArr[4]; + iArr[3] = 1; + iArr[4] = 0; + } +} diff --git a/app/src/main/java/b/i/e/s/c/f.java b/app/src/main/java/b/i/e/s/c/f.java new file mode 100644 index 0000000000..1b98d56897 --- /dev/null +++ b/app/src/main/java/b/i/e/s/c/f.java @@ -0,0 +1,15 @@ +package b.i.e.s.c; +/* compiled from: FinderPatternInfo */ +public final class f { + public final d a; + + /* renamed from: b reason: collision with root package name */ + public final d f1881b; + public final d c; + + public f(d[] dVarArr) { + this.a = dVarArr[0]; + this.f1881b = dVarArr[1]; + this.c = dVarArr[2]; + } +} diff --git a/app/src/main/java/b/j/a/a.java b/app/src/main/java/b/j/a/a.java new file mode 100644 index 0000000000..c33899cd6c --- /dev/null +++ b/app/src/main/java/b/j/a/a.java @@ -0,0 +1,15 @@ +package b.j.a; + +import android.app.Activity; +import androidx.annotation.NonNull; +import androidx.fragment.app.FragmentActivity; +import androidx.fragment.app.FragmentManager; +import b.j.a.f.d; +import com.hcaptcha.sdk.HCaptchaTokenResponse; +public class a extends d { + public final FragmentManager e; + + public a(@NonNull Activity activity) { + this.e = ((FragmentActivity) activity).getSupportFragmentManager(); + } +} diff --git a/app/src/main/java/b/j/a/b.java b/app/src/main/java/b/j/a/b.java new file mode 100644 index 0000000000..04729508d2 --- /dev/null +++ b/app/src/main/java/b/j/a/b.java @@ -0,0 +1,13 @@ +package b.j.a; +public class b implements Runnable { + public final /* synthetic */ c j; + + public b(c cVar) { + this.j = cVar; + } + + @Override // java.lang.Runnable + public void run() { + this.j.p.animate().alpha(0.0f).setDuration(200); + } +} diff --git a/app/src/main/java/b/j/a/c.java b/app/src/main/java/b/j/a/c.java new file mode 100644 index 0000000000..bbe2e30029 --- /dev/null +++ b/app/src/main/java/b/j/a/c.java @@ -0,0 +1,118 @@ +package b.j.a; + +import android.content.DialogInterface; +import android.graphics.drawable.ColorDrawable; +import android.os.BadParcelableException; +import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.webkit.WebSettings; +import android.webkit.WebView; +import android.widget.LinearLayout; +import androidx.annotation.NonNull; +import androidx.fragment.app.DialogFragment; +import b.j.a.f.b; +import com.hcaptcha.sdk.HCaptchaConfig; +import com.hcaptcha.sdk.HCaptchaDialogListener; +import com.hcaptcha.sdk.HCaptchaError; +import com.hcaptcha.sdk.HCaptchaException; +import com.hcaptcha.sdk.HCaptchaTokenResponse; +import com.hcaptcha.sdk.R; +public class c extends DialogFragment implements b, b.j.a.f.c, b.j.a.f.a { + public static final String j = c.class.getSimpleName(); + public final Handler k = new Handler(Looper.getMainLooper()); + public e l; + public HCaptchaDialogListener m; + public View n; + public WebView o; + public LinearLayout p; + + public class a implements Runnable { + public final /* synthetic */ HCaptchaException j; + + public a(HCaptchaException hCaptchaException) { + this.j = hCaptchaException; + } + + @Override // java.lang.Runnable + public void run() { + c.this.m.a(this.j); + } + } + + @Override // androidx.fragment.app.DialogFragment, android.content.DialogInterface.OnCancelListener + public void onCancel(@NonNull DialogInterface dialogInterface) { + super.onCancel(dialogInterface); + onFailure(new HCaptchaException(HCaptchaError.CHALLENGE_CLOSED)); + } + + @Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment + public void onCreate(Bundle bundle) { + super.onCreate(bundle); + try { + this.m = (HCaptchaDialogListener) getArguments().getParcelable("hCaptchaDialogListener"); + this.l = new e((HCaptchaConfig) getArguments().getSerializable("hCaptchaConfig"), this, this, this); + setStyle(2, R.c.HCaptchaDialogTheme); + } catch (BadParcelableException unused) { + dismiss(); + } + } + + @Override // androidx.fragment.app.Fragment + public View onCreateView(@NonNull LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { + View inflate = layoutInflater.inflate(R.b.hcaptcha_fragment, viewGroup, false); + this.n = inflate; + this.p = (LinearLayout) inflate.findViewById(R.a.loadingContainer); + WebView webView = (WebView) this.n.findViewById(R.a.webView); + this.o = webView; + WebSettings settings = webView.getSettings(); + settings.setJavaScriptEnabled(true); + settings.setLoadWithOverviewMode(true); + webView.setBackgroundColor(0); + webView.setLayerType(1, null); + webView.addJavascriptInterface(this.l, "JSInterface"); + webView.loadUrl("file:///android_asset/hcaptcha-form.html"); + return this.n; + } + + @Override // androidx.fragment.app.Fragment + public void onDestroy() { + super.onDestroy(); + WebView webView = this.o; + if (webView != null) { + webView.removeJavascriptInterface("JSInterface"); + ((ViewGroup) this.n).removeAllViews(); + this.o.destroy(); + this.o = null; + } + } + + @Override // b.j.a.f.a + public void onFailure(@NonNull HCaptchaException hCaptchaException) { + if (isAdded()) { + dismiss(); + } + this.k.post(new a(hCaptchaException)); + } + + @Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment + public void onStart() { + super.onStart(); + if (getDialog() != null) { + getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(0)); + } + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.j.a.f.c + public void onSuccess(HCaptchaTokenResponse hCaptchaTokenResponse) { + HCaptchaTokenResponse hCaptchaTokenResponse2 = hCaptchaTokenResponse; + if (isAdded()) { + dismiss(); + } + this.k.post(new d(this, hCaptchaTokenResponse2)); + } +} diff --git a/app/src/main/java/b/j/a/d.java b/app/src/main/java/b/j/a/d.java new file mode 100644 index 0000000000..22df36fbcd --- /dev/null +++ b/app/src/main/java/b/j/a/d.java @@ -0,0 +1,17 @@ +package b.j.a; + +import com.hcaptcha.sdk.HCaptchaTokenResponse; +public class d implements Runnable { + public final /* synthetic */ HCaptchaTokenResponse j; + public final /* synthetic */ c k; + + public d(c cVar, HCaptchaTokenResponse hCaptchaTokenResponse) { + this.k = cVar; + this.j = hCaptchaTokenResponse; + } + + @Override // java.lang.Runnable + public void run() { + this.k.m.b(this.j); + } +} diff --git a/app/src/main/java/b/j/a/e.java b/app/src/main/java/b/j/a/e.java new file mode 100644 index 0000000000..805d032670 --- /dev/null +++ b/app/src/main/java/b/j/a/e.java @@ -0,0 +1,141 @@ +package b.j.a; + +import android.webkit.JavascriptInterface; +import b.g.a.b.p.i; +import b.g.a.b.t.k; +import b.g.a.c.i0.d; +import b.g.a.c.r; +import b.j.a.f.a; +import b.j.a.f.b; +import b.j.a.f.c; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.hcaptcha.sdk.HCaptchaConfig; +import com.hcaptcha.sdk.HCaptchaError; +import com.hcaptcha.sdk.HCaptchaException; +import com.hcaptcha.sdk.HCaptchaTokenResponse; +import java.io.IOException; +import java.io.Serializable; +import java.util.Objects; +public class e implements Serializable { + public final HCaptchaConfig hCaptchaConfig; + public final a onFailureListener; + public final b onLoadedListener; + public final c onSuccessListener; + + public e(HCaptchaConfig hCaptchaConfig, b bVar, c cVar, a aVar) { + this.hCaptchaConfig = hCaptchaConfig; + this.onLoadedListener = bVar; + this.onSuccessListener = cVar; + this.onFailureListener = aVar; + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof e)) { + return false; + } + e eVar = (e) obj; + Objects.requireNonNull(eVar); + HCaptchaConfig hCaptchaConfig = this.hCaptchaConfig; + HCaptchaConfig hCaptchaConfig2 = eVar.hCaptchaConfig; + if (hCaptchaConfig != null ? !hCaptchaConfig.equals(hCaptchaConfig2) : hCaptchaConfig2 != null) { + return false; + } + b bVar = this.onLoadedListener; + b bVar2 = eVar.onLoadedListener; + if (bVar != null ? !bVar.equals(bVar2) : bVar2 != null) { + return false; + } + c cVar = this.onSuccessListener; + c cVar2 = eVar.onSuccessListener; + if (cVar != null ? !cVar.equals(cVar2) : cVar2 != null) { + return false; + } + a aVar = this.onFailureListener; + a aVar2 = eVar.onFailureListener; + return aVar != null ? aVar.equals(aVar2) : aVar2 == null; + } + + @JavascriptInterface + public String getConfig() { + char[] cArr; + r rVar = new r(null, null, null); + HCaptchaConfig hCaptchaConfig = this.hCaptchaConfig; + i iVar = new i(rVar._jsonFactory.a()); + try { + rVar.b(rVar.c(iVar), hCaptchaConfig); + String c = iVar.j.c(); + k kVar = iVar.j; + kVar.c = -1; + kVar.h = 0; + kVar.j = null; + if (kVar.e) { + kVar.e = false; + kVar.d.clear(); + kVar.f = 0; + kVar.h = 0; + } + b.g.a.b.t.a aVar = kVar.f664b; + if (!(aVar == null || (cArr = kVar.g) == null)) { + kVar.g = null; + aVar.d.set(2, cArr); + } + return c; + } catch (JsonProcessingException e) { + throw e; + } catch (IOException e2) { + throw new JsonMappingException(null, String.format("Unexpected IOException (of type %s): %s", e2.getClass().getName(), d.h(e2))); + } + } + + @Override // java.lang.Object + public int hashCode() { + HCaptchaConfig hCaptchaConfig = this.hCaptchaConfig; + int i = 43; + int hashCode = hCaptchaConfig == null ? 43 : hCaptchaConfig.hashCode(); + b bVar = this.onLoadedListener; + int hashCode2 = ((hashCode + 59) * 59) + (bVar == null ? 43 : bVar.hashCode()); + c cVar = this.onSuccessListener; + int hashCode3 = (hashCode2 * 59) + (cVar == null ? 43 : cVar.hashCode()); + a aVar = this.onFailureListener; + int i2 = hashCode3 * 59; + if (aVar != null) { + i = aVar.hashCode(); + } + return i2 + i; + } + + @JavascriptInterface + public void onError(int i) { + this.onFailureListener.onFailure(new HCaptchaException(HCaptchaError.fromId(i))); + } + + @JavascriptInterface + public void onLoaded() { + c cVar = (c) this.onLoadedListener; + cVar.k.post(new b(cVar)); + } + + @JavascriptInterface + public void onPass(String str) { + this.onSuccessListener.onSuccess(new HCaptchaTokenResponse(str)); + } + + @Override // java.lang.Object + public String toString() { + StringBuilder R = b.d.b.a.a.R("HCaptchaJSInterface(hCaptchaConfig="); + R.append(this.hCaptchaConfig); + R.append(", onLoadedListener="); + R.append(this.onLoadedListener); + R.append(", onSuccessListener="); + R.append(this.onSuccessListener); + R.append(", onFailureListener="); + R.append(this.onFailureListener); + R.append(")"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/j/a/f/a.java b/app/src/main/java/b/j/a/f/a.java new file mode 100644 index 0000000000..1d2093c015 --- /dev/null +++ b/app/src/main/java/b/j/a/f/a.java @@ -0,0 +1,6 @@ +package b.j.a.f; + +import com.hcaptcha.sdk.HCaptchaException; +public interface a { + void onFailure(HCaptchaException hCaptchaException); +} diff --git a/app/src/main/java/b/j/a/f/b.java b/app/src/main/java/b/j/a/f/b.java new file mode 100644 index 0000000000..a36c9cc041 --- /dev/null +++ b/app/src/main/java/b/j/a/f/b.java @@ -0,0 +1,3 @@ +package b.j.a.f; +public interface b { +} diff --git a/app/src/main/java/b/j/a/f/c.java b/app/src/main/java/b/j/a/f/c.java new file mode 100644 index 0000000000..14f691185b --- /dev/null +++ b/app/src/main/java/b/j/a/f/c.java @@ -0,0 +1,4 @@ +package b.j.a.f; +public interface c { + void onSuccess(TResult tresult); +} diff --git a/app/src/main/java/b/j/a/f/d.java b/app/src/main/java/b/j/a/f/d.java new file mode 100644 index 0000000000..ce9553abc6 --- /dev/null +++ b/app/src/main/java/b/j/a/f/d.java @@ -0,0 +1,31 @@ +package b.j.a.f; + +import com.hcaptcha.sdk.HCaptchaException; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +public abstract class d { + public TResult a; + + /* renamed from: b reason: collision with root package name */ + public HCaptchaException f1882b; + public final List> c = new ArrayList(); + public final List d = new ArrayList(); + + public final void a() { + if (this.a != null) { + Iterator> it = this.c.iterator(); + while (it.hasNext()) { + it.next().onSuccess(this.a); + it.remove(); + } + } + if (this.f1882b != null) { + Iterator it2 = this.d.iterator(); + while (it2.hasNext()) { + it2.next().onFailure(this.f1882b); + it2.remove(); + } + } + } +} diff --git a/app/src/main/java/b/k/a/a/a.java b/app/src/main/java/b/k/a/a/a.java new file mode 100644 index 0000000000..061586ec26 --- /dev/null +++ b/app/src/main/java/b/k/a/a/a.java @@ -0,0 +1,78 @@ +package b.k.a.a; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +/* compiled from: AlphaPatternDrawable */ +public class a extends Drawable { + public int a = 10; + + /* renamed from: b reason: collision with root package name */ + public Paint f1883b = new Paint(); + public Paint c = new Paint(); + public Paint d = new Paint(); + public int e; + public int f; + public Bitmap g; + + public a(int i) { + this.a = i; + this.c.setColor(-1); + this.d.setColor(-3421237); + } + + @Override // android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + Bitmap bitmap = this.g; + if (bitmap != null && !bitmap.isRecycled()) { + canvas.drawBitmap(this.g, (Rect) null, getBounds(), this.f1883b); + } + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + return 0; + } + + @Override // android.graphics.drawable.Drawable + public void onBoundsChange(Rect rect) { + super.onBoundsChange(rect); + int height = rect.height(); + this.e = (int) Math.ceil((double) (rect.width() / this.a)); + this.f = (int) Math.ceil((double) (height / this.a)); + if (getBounds().width() > 0 && getBounds().height() > 0) { + this.g = Bitmap.createBitmap(getBounds().width(), getBounds().height(), Bitmap.Config.ARGB_8888); + Canvas canvas = new Canvas(this.g); + Rect rect2 = new Rect(); + boolean z2 = true; + for (int i = 0; i <= this.f; i++) { + boolean z3 = z2; + for (int i2 = 0; i2 <= this.e; i2++) { + int i3 = this.a; + int i4 = i * i3; + rect2.top = i4; + int i5 = i2 * i3; + rect2.left = i5; + rect2.bottom = i4 + i3; + rect2.right = i5 + i3; + canvas.drawRect(rect2, z3 ? this.c : this.d); + z3 = !z3; + } + z2 = !z2; + } + } + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + throw new UnsupportedOperationException("Alpha is not supported by this drawable."); + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(ColorFilter colorFilter) { + throw new UnsupportedOperationException("ColorFilter is not supported by this drawable."); + } +} diff --git a/app/src/main/java/b/k/a/a/b.java b/app/src/main/java/b/k/a/a/b.java new file mode 100644 index 0000000000..3a712601e7 --- /dev/null +++ b/app/src/main/java/b/k/a/a/b.java @@ -0,0 +1,101 @@ +package b.k.a.a; + +import android.content.Context; +import android.graphics.Color; +import android.graphics.ColorFilter; +import android.graphics.PorterDuff; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.ImageView; +import androidx.core.graphics.ColorUtils; +import androidx.core.view.ViewCompat; +import com.jaredrummler.android.colorpicker.ColorPanelView; +import com.jaredrummler.android.colorpicker.R; +/* compiled from: ColorPaletteAdapter */ +public class b extends BaseAdapter { + public final a j; + public final int[] k; + public int l; + public int m; + + /* compiled from: ColorPaletteAdapter */ + public interface a { + } + + /* compiled from: ColorPaletteAdapter */ + /* renamed from: b.k.a.a.b$b reason: collision with other inner class name */ + public final class C0154b { + public View a; + + /* renamed from: b reason: collision with root package name */ + public ColorPanelView f1884b; + public ImageView c; + public int d; + + public C0154b(Context context) { + View inflate = View.inflate(context, b.this.m == 0 ? R.d.cpv_color_item_square : R.d.cpv_color_item_circle, null); + this.a = inflate; + this.f1884b = (ColorPanelView) inflate.findViewById(R.c.cpv_color_panel_view); + this.c = (ImageView) this.a.findViewById(R.c.cpv_color_image_view); + this.d = this.f1884b.getBorderColor(); + this.a.setTag(this); + } + } + + public b(a aVar, int[] iArr, int i, int i2) { + this.j = aVar; + this.k = iArr; + this.l = i; + this.m = i2; + } + + @Override // android.widget.Adapter + public int getCount() { + return this.k.length; + } + + @Override // android.widget.Adapter + public Object getItem(int i) { + return Integer.valueOf(this.k[i]); + } + + @Override // android.widget.Adapter + public long getItemId(int i) { + return (long) i; + } + + @Override // android.widget.Adapter + public View getView(int i, View view, ViewGroup viewGroup) { + View view2; + C0154b bVar; + if (view == null) { + bVar = new C0154b(viewGroup.getContext()); + view2 = bVar.a; + } else { + view2 = view; + bVar = (C0154b) view.getTag(); + } + int i2 = b.this.k[i]; + int alpha = Color.alpha(i2); + bVar.f1884b.setColor(i2); + bVar.c.setImageResource(b.this.l == i ? R.b.cpv_preset_checked : 0); + if (alpha == 255) { + b bVar2 = b.this; + if (i != bVar2.l || ColorUtils.calculateLuminance(bVar2.k[i]) < 0.65d) { + bVar.c.setColorFilter((ColorFilter) null); + } else { + bVar.c.setColorFilter(ViewCompat.MEASURED_STATE_MASK, PorterDuff.Mode.SRC_IN); + } + } else if (alpha <= 165) { + bVar.f1884b.setBorderColor(i2 | ViewCompat.MEASURED_STATE_MASK); + bVar.c.setColorFilter(ViewCompat.MEASURED_STATE_MASK, PorterDuff.Mode.SRC_IN); + } else { + bVar.f1884b.setBorderColor(bVar.d); + bVar.c.setColorFilter(-1, PorterDuff.Mode.SRC_IN); + } + bVar.f1884b.setOnClickListener(new c(bVar, i)); + bVar.f1884b.setOnLongClickListener(new d(bVar)); + return view2; + } +} diff --git a/app/src/main/java/b/k/a/a/c.java b/app/src/main/java/b/k/a/a/c.java new file mode 100644 index 0000000000..6522928a7c --- /dev/null +++ b/app/src/main/java/b/k/a/a/c.java @@ -0,0 +1,41 @@ +package b.k.a.a; + +import android.view.View; +import b.k.a.a.b; +import com.jaredrummler.android.colorpicker.ColorPickerDialog; +/* compiled from: ColorPaletteAdapter */ +public class c implements View.OnClickListener { + public final /* synthetic */ int j; + public final /* synthetic */ b.C0154b k; + + public c(b.C0154b bVar, int i) { + this.k = bVar; + this.j = i; + } + + @Override // android.view.View.OnClickListener + public void onClick(View view) { + b bVar = b.this; + int i = bVar.l; + int i2 = this.j; + if (i != i2) { + bVar.l = i2; + bVar.notifyDataSetChanged(); + } + b bVar2 = b.this; + b.a aVar = bVar2.j; + int i3 = bVar2.k[this.j]; + ColorPickerDialog.h hVar = (ColorPickerDialog.h) aVar; + ColorPickerDialog colorPickerDialog = ColorPickerDialog.this; + int i4 = colorPickerDialog.o; + if (i4 == i3) { + ColorPickerDialog.g(colorPickerDialog, i4); + ColorPickerDialog.this.dismiss(); + return; + } + colorPickerDialog.o = i3; + if (colorPickerDialog.r) { + colorPickerDialog.h(i3); + } + } +} diff --git a/app/src/main/java/b/k/a/a/d.java b/app/src/main/java/b/k/a/a/d.java new file mode 100644 index 0000000000..23cea040a5 --- /dev/null +++ b/app/src/main/java/b/k/a/a/d.java @@ -0,0 +1,18 @@ +package b.k.a.a; + +import android.view.View; +import b.k.a.a.b; +/* compiled from: ColorPaletteAdapter */ +public class d implements View.OnLongClickListener { + public final /* synthetic */ b.C0154b j; + + public d(b.C0154b bVar) { + this.j = bVar; + } + + @Override // android.view.View.OnLongClickListener + public boolean onLongClick(View view) { + this.j.f1884b.a(); + return true; + } +} diff --git a/app/src/main/java/b/k/a/a/e.java b/app/src/main/java/b/k/a/a/e.java new file mode 100644 index 0000000000..d6bb256f95 --- /dev/null +++ b/app/src/main/java/b/k/a/a/e.java @@ -0,0 +1,74 @@ +package b.k.a.a; + +import android.graphics.Color; +import android.graphics.PorterDuff; +import android.widget.FrameLayout; +import android.widget.ImageView; +import android.widget.SeekBar; +import androidx.core.graphics.ColorUtils; +import androidx.core.view.ViewCompat; +import com.jaredrummler.android.colorpicker.ColorPanelView; +import com.jaredrummler.android.colorpicker.ColorPickerDialog; +import com.jaredrummler.android.colorpicker.R; +import java.util.Locale; +/* compiled from: ColorPickerDialog */ +public class e implements SeekBar.OnSeekBarChangeListener { + public final /* synthetic */ ColorPickerDialog a; + + public e(ColorPickerDialog colorPickerDialog) { + this.a = colorPickerDialog; + } + + @Override // android.widget.SeekBar.OnSeekBarChangeListener + public void onProgressChanged(SeekBar seekBar, int i, boolean z2) { + b bVar; + this.a.w.setText(String.format(Locale.ENGLISH, "%d%%", Integer.valueOf((int) ((((double) i) * 100.0d) / 255.0d)))); + int i2 = 255 - i; + int i3 = 0; + while (true) { + bVar = this.a.t; + int[] iArr = bVar.k; + if (i3 >= iArr.length) { + break; + } + int i4 = iArr[i3]; + this.a.t.k[i3] = Color.argb(i2, Color.red(i4), Color.green(i4), Color.blue(i4)); + i3++; + } + bVar.notifyDataSetChanged(); + for (int i5 = 0; i5 < this.a.u.getChildCount(); i5++) { + FrameLayout frameLayout = (FrameLayout) this.a.u.getChildAt(i5); + ColorPanelView colorPanelView = (ColorPanelView) frameLayout.findViewById(R.c.cpv_color_panel_view); + ImageView imageView = (ImageView) frameLayout.findViewById(R.c.cpv_color_image_view); + if (frameLayout.getTag() == null) { + frameLayout.setTag(Integer.valueOf(colorPanelView.getBorderColor())); + } + int color = colorPanelView.getColor(); + int argb = Color.argb(i2, Color.red(color), Color.green(color), Color.blue(color)); + if (i2 <= 165) { + colorPanelView.setBorderColor(argb | ViewCompat.MEASURED_STATE_MASK); + } else { + colorPanelView.setBorderColor(((Integer) frameLayout.getTag()).intValue()); + } + if (colorPanelView.getTag() != null && ((Boolean) colorPanelView.getTag()).booleanValue()) { + if (i2 <= 165) { + imageView.setColorFilter(ViewCompat.MEASURED_STATE_MASK, PorterDuff.Mode.SRC_IN); + } else if (ColorUtils.calculateLuminance(argb) >= 0.65d) { + imageView.setColorFilter(ViewCompat.MEASURED_STATE_MASK, PorterDuff.Mode.SRC_IN); + } else { + imageView.setColorFilter(-1, PorterDuff.Mode.SRC_IN); + } + } + colorPanelView.setColor(argb); + } + this.a.o = Color.argb(i2, Color.red(this.a.o), Color.green(this.a.o), Color.blue(this.a.o)); + } + + @Override // android.widget.SeekBar.OnSeekBarChangeListener + public void onStartTrackingTouch(SeekBar seekBar) { + } + + @Override // android.widget.SeekBar.OnSeekBarChangeListener + public void onStopTrackingTouch(SeekBar seekBar) { + } +} diff --git a/app/src/main/java/b/k/a/a/f.java b/app/src/main/java/b/k/a/a/f.java new file mode 100644 index 0000000000..27b5453918 --- /dev/null +++ b/app/src/main/java/b/k/a/a/f.java @@ -0,0 +1,11 @@ +package b.k.a.a; + +import androidx.annotation.ColorInt; +/* compiled from: ColorPickerDialogListener */ +public interface f { + void onColorReset(int i); + + void onColorSelected(int i, @ColorInt int i2); + + void onDialogDismissed(int i); +} diff --git a/app/src/main/java/b/l/a/a.java b/app/src/main/java/b/l/a/a.java new file mode 100644 index 0000000000..7e3451f39a --- /dev/null +++ b/app/src/main/java/b/l/a/a.java @@ -0,0 +1,293 @@ +package b.l.a; + +import android.graphics.Canvas; +import android.graphics.ColorFilter; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.drawable.Drawable; +import android.view.animation.AnimationUtils; +import androidx.annotation.IntRange; +import androidx.annotation.VisibleForTesting; +import androidx.annotation.WorkerThread; +import androidx.vectordrawable.graphics.drawable.Animatable2Compat; +import com.linecorp.apng.decoder.Apng; +import com.linecorp.apng.decoder.ApngException; +import d0.t.k; +import d0.z.d.m; +import d0.z.d.o; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import kotlin.jvm.functions.Function0; +/* compiled from: ApngDrawable.kt */ +public final class a extends Drawable implements Animatable2Compat { + @IntRange(from = 0, to = 2147483647L) + public final int j; + @IntRange(from = 1, to = 2147483647L) + public final int k; + public final List l = k.toList(this.f1886x.a.getFrameDurations()); + @IntRange(from = 0, to = 2147483647L) + public final int m = this.f1886x.a.getByteCount(); + @IntRange(from = -1, to = 2147483647L) + public int n; + public final Paint o; + public final List p; + public final List q; + public final int[] r; + + /* renamed from: s reason: collision with root package name */ + public int f1885s; + public int t; + public boolean u; + public long v; + public Long w; + + /* renamed from: x reason: collision with root package name */ + public C0155a f1886x; + + /* compiled from: ApngDrawable.kt */ + /* renamed from: b.l.a.a$a reason: collision with other inner class name */ + public static final class C0155a extends Drawable.ConstantState { + public final Apng a; + + /* renamed from: b reason: collision with root package name */ + public final int f1887b; + public final int c; + public final int d; + public final Function0 e; + + /* compiled from: ApngDrawable.kt */ + /* renamed from: b.l.a.a$a$a reason: collision with other inner class name */ + public static final class C0156a extends o implements Function0 { + public static final C0156a j = new C0156a(); + + public C0156a() { + super(0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Long mo1invoke() { + return Long.valueOf(AnimationUtils.currentAnimationTimeMillis()); + } + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public C0155a(C0155a aVar) { + this(aVar.a.copy(), aVar.f1887b, aVar.c, aVar.d, aVar.e); + m.checkNotNullParameter(aVar, "apngState"); + } + + public C0155a(Apng apng, @IntRange(from = 1, to = 2147483647L) int i, @IntRange(from = 1, to = 2147483647L) int i2, int i3, Function0 function0) { + m.checkNotNullParameter(apng, "apng"); + m.checkNotNullParameter(function0, "currentTimeProvider"); + this.a = apng; + this.f1887b = i; + this.c = i2; + this.d = i3; + this.e = function0; + } + + @Override // android.graphics.drawable.Drawable.ConstantState + public int getChangingConfigurations() { + return 0; + } + + @Override // android.graphics.drawable.Drawable.ConstantState + public Drawable newDrawable() { + return new a(new C0155a(this)); + } + } + + @VisibleForTesting + public a(C0155a aVar) { + m.checkNotNullParameter(aVar, "apngState"); + this.f1886x = aVar; + this.j = aVar.a.getDuration(); + int frameCount = this.f1886x.a.getFrameCount(); + this.k = frameCount; + this.f1886x.a.getAllFrameByteCount(); + this.n = this.f1886x.a.getLoopCount(); + this.f1886x.a.isRecycled(); + this.o = new Paint(6); + this.p = new ArrayList(); + this.q = new ArrayList(); + this.r = new int[frameCount]; + C0155a aVar2 = this.f1886x; + this.f1885s = aVar2.f1887b; + this.t = aVar2.c; + for (int i = 1; i < frameCount; i++) { + int[] iArr = this.r; + int i2 = i - 1; + iArr[i] = iArr[i2] + this.f1886x.a.getFrameDurations()[i2]; + } + Rect bounds = getBounds(); + C0155a aVar3 = this.f1886x; + bounds.set(0, 0, aVar3.f1887b, aVar3.c); + } + + @WorkerThread + public static final a a(InputStream inputStream, @IntRange(from = 1, to = 2147483647L) Integer num, @IntRange(from = 1, to = 2147483647L) Integer num2) throws ApngException { + m.checkNotNullParameter(inputStream, "stream"); + boolean z2 = true; + if (!((num == null) ^ (num2 == null))) { + if (num == null || num.intValue() > 0) { + if (num2 != null && num2.intValue() <= 0) { + z2 = false; + } + if (z2) { + int i = (num == null && num2 == null) ? 160 : 0; + Apng decode = Apng.Companion.decode(inputStream); + return new a(new C0155a(decode, num != null ? num.intValue() : decode.getWidth(), num2 != null ? num2.intValue() : decode.getHeight(), i, C0155a.C0156a.j)); + } + throw new IllegalArgumentException(("Can not specify 0 or negative as height value. height = " + num2).toString()); + } + throw new IllegalArgumentException(("Can not specify 0 or negative as width value. width = " + num).toString()); + } + throw new IllegalArgumentException(("Can not specify only one side of size. width = " + num + ", height = " + num2).toString()); + } + + public final boolean b() { + return this.n != 0 && d() > this.n - 1; + } + + public final int c() { + int i; + int i2 = 0; + long j = (this.v % ((long) this.j)) + ((long) (b() ? this.j : 0)); + int i3 = this.k - 1; + while (true) { + i = (i2 + i3) / 2; + int[] iArr = this.r; + int i4 = i + 1; + if (iArr.length > i4 && j >= ((long) iArr[i4])) { + i2 = i4; + } else if (i2 == i3 || j >= ((long) iArr[i])) { + break; + } else { + i3 = i; + } + } + return i; + } + + @Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat + public void clearAnimationCallbacks() { + this.p.clear(); + } + + public final int d() { + return (int) (this.v / ((long) this.j)); + } + + @Override // android.graphics.drawable.Drawable + public void draw(Canvas canvas) { + m.checkNotNullParameter(canvas, "canvas"); + if (this.u) { + int c = c(); + long longValue = this.f1886x.e.mo1invoke().longValue(); + Long l = this.w; + this.v = l == null ? this.v : (this.v + longValue) - l.longValue(); + this.w = Long.valueOf(longValue); + boolean z2 = c() != c; + if (this.u) { + if (c() == 0) { + if ((d() == 0) && l == null) { + for (Animatable2Compat.AnimationCallback animationCallback : this.p) { + animationCallback.onAnimationStart(this); + } + } + } + if (c() == this.k - 1) { + if ((this.n == 0 || d() < this.n - 1) && z2) { + for (b bVar : this.q) { + bVar.b(this, d() + 2); + bVar.a(this, d() + 1); + } + } + } + } + if (b()) { + this.u = false; + for (Animatable2Compat.AnimationCallback animationCallback2 : this.p) { + animationCallback2.onAnimationEnd(this); + } + } + } + Apng apng = this.f1886x.a; + int c2 = c(); + Rect bounds = getBounds(); + m.checkNotNullExpressionValue(bounds, "bounds"); + apng.drawWithIndex(c2, canvas, null, bounds, this.o); + if (this.u) { + invalidateSelf(); + } + } + + @Override // android.graphics.drawable.Drawable + public Drawable.ConstantState getConstantState() { + return this.f1886x; + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicHeight() { + return this.t; + } + + @Override // android.graphics.drawable.Drawable + public int getIntrinsicWidth() { + return this.f1885s; + } + + @Override // android.graphics.drawable.Drawable + public int getOpacity() { + return -2; + } + + @Override // android.graphics.drawable.Animatable + public boolean isRunning() { + return this.u; + } + + @Override // android.graphics.drawable.Drawable + public Drawable mutate() { + this.f1886x = new C0155a(this.f1886x); + return this; + } + + @Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat + public void registerAnimationCallback(Animatable2Compat.AnimationCallback animationCallback) { + m.checkNotNullParameter(animationCallback, "callback"); + this.p.add(animationCallback); + } + + @Override // android.graphics.drawable.Drawable + public void setAlpha(int i) { + this.o.setAlpha(i); + } + + @Override // android.graphics.drawable.Drawable + public void setColorFilter(ColorFilter colorFilter) { + this.o.setColorFilter(colorFilter); + } + + @Override // android.graphics.drawable.Animatable + public void start() { + this.u = true; + this.w = null; + invalidateSelf(); + } + + @Override // android.graphics.drawable.Animatable + public void stop() { + this.u = false; + invalidateSelf(); + } + + @Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat + public boolean unregisterAnimationCallback(Animatable2Compat.AnimationCallback animationCallback) { + m.checkNotNullParameter(animationCallback, "callback"); + return this.p.remove(animationCallback); + } +} diff --git a/app/src/main/java/b/l/a/b.java b/app/src/main/java/b/l/a/b.java new file mode 100644 index 0000000000..a12f20b7d5 --- /dev/null +++ b/app/src/main/java/b/l/a/b.java @@ -0,0 +1,7 @@ +package b.l.a; +/* compiled from: RepeatAnimationCallback.kt */ +public interface b { + void a(a aVar, int i); + + void b(a aVar, int i); +} diff --git a/app/src/main/java/b/m/a/a.java b/app/src/main/java/b/m/a/a.java new file mode 100644 index 0000000000..f73dce254c --- /dev/null +++ b/app/src/main/java/b/m/a/a.java @@ -0,0 +1,60 @@ +package b.m.a; + +import android.content.Context; +import android.content.SharedPreferences; +import b.m.a.g.b; +import b.m.a.g.c; +import b.m.a.g.d.d; +import b.m.a.g.d.e; +import b.m.a.g.d.g; +import b.m.a.g.d.i; +import com.lyft.kronos.KronosClock; +import d0.z.d.m; +import java.util.List; +/* compiled from: AndroidClockFactory.kt */ +public final class a { + public static KronosClock a(Context context, e eVar, List list, long j, long j2, long j3, int i) { + List list2; + long j4; + long j5; + long j6; + int i2 = i & 2; + if ((i & 4) != 0) { + c cVar = c.e; + list2 = c.a; + } else { + list2 = null; + } + if ((i & 8) != 0) { + c cVar2 = c.e; + j4 = c.d; + } else { + j4 = j; + } + if ((i & 16) != 0) { + c cVar3 = c.e; + j5 = c.c; + } else { + j5 = j2; + } + if ((i & 32) != 0) { + c cVar4 = c.e; + j6 = c.f1888b; + } else { + j6 = j3; + } + m.checkParameterIsNotNull(context, "context"); + m.checkParameterIsNotNull(list2, "ntpHosts"); + b.m.a.g.a aVar = new b.m.a.g.a(); + SharedPreferences sharedPreferences = context.getSharedPreferences("com.lyft.kronos.shared_preferences", 0); + m.checkExpressionValueIsNotNull(sharedPreferences, "context.getSharedPrefere…ME, Context.MODE_PRIVATE)"); + c cVar5 = new c(sharedPreferences); + m.checkParameterIsNotNull(aVar, "localClock"); + m.checkParameterIsNotNull(cVar5, "syncResponseCache"); + m.checkParameterIsNotNull(list2, "ntpHosts"); + if (!(aVar instanceof KronosClock)) { + return new b(new i(new e(aVar, new d(), new b.m.a.g.d.b()), aVar, new g(cVar5, aVar), null, list2, j4, j5, j6), aVar); + } + throw new IllegalArgumentException("Local clock should implement Clock instead of KronosClock"); + } +} diff --git a/app/src/main/java/b/m/a/b.java b/app/src/main/java/b/m/a/b.java new file mode 100644 index 0000000000..5445719ecf --- /dev/null +++ b/app/src/main/java/b/m/a/b.java @@ -0,0 +1,7 @@ +package b.m.a; +/* compiled from: Clock.kt */ +public interface b { + long a(); + + long b(); +} diff --git a/app/src/main/java/b/m/a/c.java b/app/src/main/java/b/m/a/c.java new file mode 100644 index 0000000000..b27c4b1fab --- /dev/null +++ b/app/src/main/java/b/m/a/c.java @@ -0,0 +1,21 @@ +package b.m.a; + +import d0.t.n; +import java.util.List; +import java.util.concurrent.TimeUnit; +/* compiled from: DefaultParam.kt */ +public final class c { + public static final List a = n.listOf((Object[]) new String[]{"2.us.pool.ntp.org", "1.us.pool.ntp.org", "0.us.pool.ntp.org"}); + + /* renamed from: b reason: collision with root package name */ + public static final long f1888b; + public static final long c; + public static final long d = TimeUnit.SECONDS.toMillis(6); + public static final c e = new c(); + + static { + TimeUnit timeUnit = TimeUnit.MINUTES; + f1888b = timeUnit.toMillis(1); + c = timeUnit.toMillis(1); + } +} diff --git a/app/src/main/java/b/m/a/d.java b/app/src/main/java/b/m/a/d.java new file mode 100644 index 0000000000..5a348afeb1 --- /dev/null +++ b/app/src/main/java/b/m/a/d.java @@ -0,0 +1,42 @@ +package b.m.a; + +import b.d.b.a.a; +import d0.z.d.m; +/* compiled from: Clock.kt */ +public final class d { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final Long f1889b; + + public d(long j, Long l) { + this.a = j; + this.f1889b = l; + } + + public boolean equals(Object obj) { + if (this != obj) { + if (obj instanceof d) { + d dVar = (d) obj; + if (!(this.a == dVar.a) || !m.areEqual(this.f1889b, dVar.f1889b)) { + } + } + return false; + } + return true; + } + + public int hashCode() { + long j = this.a; + int i = ((int) (j ^ (j >>> 32))) * 31; + Long l = this.f1889b; + return i + (l != null ? l.hashCode() : 0); + } + + public String toString() { + StringBuilder R = a.R("KronosTime(posixTimeMs="); + R.append(this.a); + R.append(", timeSinceLastNtpSyncMs="); + return a.F(R, this.f1889b, ")"); + } +} diff --git a/app/src/main/java/b/m/a/e.java b/app/src/main/java/b/m/a/e.java new file mode 100644 index 0000000000..3dcabe6098 --- /dev/null +++ b/app/src/main/java/b/m/a/e.java @@ -0,0 +1,9 @@ +package b.m.a; +/* compiled from: SyncListener.kt */ +public interface e { + void a(String str); + + void b(long j, long j2); + + void c(String str, Throwable th); +} diff --git a/app/src/main/java/b/m/a/f.java b/app/src/main/java/b/m/a/f.java new file mode 100644 index 0000000000..8e326e3a65 --- /dev/null +++ b/app/src/main/java/b/m/a/f.java @@ -0,0 +1,17 @@ +package b.m.a; +/* compiled from: SyncResponseCache.kt */ +public interface f { + void a(long j); + + void b(long j); + + long c(); + + void clear(); + + long d(); + + long e(); + + void f(long j); +} diff --git a/app/src/main/java/b/m/a/g/a.java b/app/src/main/java/b/m/a/g/a.java new file mode 100644 index 0000000000..9f38d8368d --- /dev/null +++ b/app/src/main/java/b/m/a/g/a.java @@ -0,0 +1,16 @@ +package b.m.a.g; + +import android.os.SystemClock; +import b.m.a.b; +/* compiled from: AndroidSystemClock.kt */ +public final class a implements b { + @Override // b.m.a.b + public long a() { + return System.currentTimeMillis(); + } + + @Override // b.m.a.b + public long b() { + return SystemClock.elapsedRealtime(); + } +} diff --git a/app/src/main/java/b/m/a/g/b.java b/app/src/main/java/b/m/a/g/b.java new file mode 100644 index 0000000000..017023ed7a --- /dev/null +++ b/app/src/main/java/b/m/a/g/b.java @@ -0,0 +1,35 @@ +package b.m.a.g; + +import b.m.a.d; +import b.m.a.g.d.h; +import com.lyft.kronos.KronosClock; +import d0.z.d.m; +/* compiled from: KronosClockImpl.kt */ +public final class b implements KronosClock { + public final h a; + + /* renamed from: b reason: collision with root package name */ + public final b.m.a.b f1890b; + + public b(h hVar, b.m.a.b bVar) { + m.checkParameterIsNotNull(hVar, "ntpService"); + m.checkParameterIsNotNull(bVar, "fallbackClock"); + this.a = hVar; + this.f1890b = bVar; + } + + @Override // com.lyft.kronos.KronosClock, b.m.a.b + public long a() { + return c().a; + } + + @Override // b.m.a.b + public long b() { + return this.f1890b.b(); + } + + public d c() { + d a = this.a.a(); + return a != null ? a : new d(this.f1890b.a(), null); + } +} diff --git a/app/src/main/java/b/m/a/g/c.java b/app/src/main/java/b/m/a/g/c.java new file mode 100644 index 0000000000..6dc1e7f04d --- /dev/null +++ b/app/src/main/java/b/m/a/g/c.java @@ -0,0 +1,49 @@ +package b.m.a.g; + +import android.content.SharedPreferences; +import b.m.a.f; +import d0.z.d.m; +/* compiled from: SharedPreferenceSyncResponseCache.kt */ +public final class c implements f { + public final SharedPreferences a; + + public c(SharedPreferences sharedPreferences) { + m.checkParameterIsNotNull(sharedPreferences, "sharedPreferences"); + this.a = sharedPreferences; + } + + @Override // b.m.a.f + public void a(long j) { + this.a.edit().putLong("com.lyft.kronos.cached_elapsed_time", j).apply(); + } + + @Override // b.m.a.f + public void b(long j) { + this.a.edit().putLong("com.lyft.kronos.cached_offset", j).apply(); + } + + @Override // b.m.a.f + public long c() { + return this.a.getLong("com.lyft.kronos.cached_elapsed_time", 0); + } + + @Override // b.m.a.f + public void clear() { + this.a.edit().clear().apply(); + } + + @Override // b.m.a.f + public long d() { + return this.a.getLong("com.lyft.kronos.cached_offset", 0); + } + + @Override // b.m.a.f + public long e() { + return this.a.getLong("com.lyft.kronos.cached_current_time", 0); + } + + @Override // b.m.a.f + public void f(long j) { + this.a.edit().putLong("com.lyft.kronos.cached_current_time", j).apply(); + } +} diff --git a/app/src/main/java/b/m/a/g/d/a.java b/app/src/main/java/b/m/a/g/d/a.java new file mode 100644 index 0000000000..8ca89d5615 --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/a.java @@ -0,0 +1,14 @@ +package b.m.a.g.d; + +import java.net.DatagramPacket; +import java.net.DatagramSocket; +import java.net.InetAddress; +import java.net.SocketException; +/* compiled from: DatagramFactory.kt */ +public interface a { + DatagramPacket a(byte[] bArr); + + DatagramPacket b(byte[] bArr, InetAddress inetAddress, int i); + + DatagramSocket c() throws SocketException; +} diff --git a/app/src/main/java/b/m/a/g/d/b.java b/app/src/main/java/b/m/a/g/d/b.java new file mode 100644 index 0000000000..0e466b0afe --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/b.java @@ -0,0 +1,27 @@ +package b.m.a.g.d; + +import d0.z.d.m; +import java.net.DatagramPacket; +import java.net.DatagramSocket; +import java.net.InetAddress; +import java.net.SocketException; +/* compiled from: DatagramFactory.kt */ +public final class b implements a { + @Override // b.m.a.g.d.a + public DatagramPacket a(byte[] bArr) { + m.checkParameterIsNotNull(bArr, "buffer"); + return new DatagramPacket(bArr, bArr.length); + } + + @Override // b.m.a.g.d.a + public DatagramPacket b(byte[] bArr, InetAddress inetAddress, int i) { + m.checkParameterIsNotNull(bArr, "buffer"); + m.checkParameterIsNotNull(inetAddress, "address"); + return new DatagramPacket(bArr, bArr.length, inetAddress, i); + } + + @Override // b.m.a.g.d.a + public DatagramSocket c() throws SocketException { + return new DatagramSocket(); + } +} diff --git a/app/src/main/java/b/m/a/g/d/c.java b/app/src/main/java/b/m/a/g/d/c.java new file mode 100644 index 0000000000..2d84bf4978 --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/c.java @@ -0,0 +1,8 @@ +package b.m.a.g.d; + +import java.net.InetAddress; +import java.net.UnknownHostException; +/* compiled from: DnsResolver.kt */ +public interface c { + InetAddress a(String str) throws UnknownHostException; +} diff --git a/app/src/main/java/b/m/a/g/d/d.java b/app/src/main/java/b/m/a/g/d/d.java new file mode 100644 index 0000000000..11bb58d371 --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/d.java @@ -0,0 +1,15 @@ +package b.m.a.g.d; + +import d0.z.d.m; +import java.net.InetAddress; +import java.net.UnknownHostException; +/* compiled from: DnsResolver.kt */ +public final class d implements c { + @Override // b.m.a.g.d.c + public InetAddress a(String str) throws UnknownHostException { + m.checkParameterIsNotNull(str, "host"); + InetAddress byName = InetAddress.getByName(str); + m.checkExpressionValueIsNotNull(byName, "InetAddress.getByName(host)"); + return byName; + } +} diff --git a/app/src/main/java/b/m/a/g/d/e.java b/app/src/main/java/b/m/a/g/d/e.java new file mode 100644 index 0000000000..b01fbeadc3 --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/e.java @@ -0,0 +1,139 @@ +package b.m.a.g.d; + +import com.discord.api.permission.Permission; +import java.io.IOException; +import java.net.DatagramPacket; +import java.net.DatagramSocket; +import java.net.InetAddress; +import java.util.Arrays; +/* compiled from: SntpClient */ +public class e { + public final b.m.a.b a; + + /* renamed from: b reason: collision with root package name */ + public final c f1891b; + public final a c; + + /* compiled from: SntpClient */ + public static class a extends IOException { + public a(String str) { + super(str); + } + } + + /* compiled from: SntpClient */ + public static final class b { + public final long a; + + /* renamed from: b reason: collision with root package name */ + public final long f1892b; + public final long c; + public final b.m.a.b d; + + public b(long j, long j2, long j3, b.m.a.b bVar) { + this.a = j; + this.f1892b = j2; + this.c = j3; + this.d = bVar; + } + + public long a() { + return this.a + this.c + (this.d.b() - this.f1892b); + } + } + + public e(b.m.a.b bVar, c cVar, a aVar) { + this.a = bVar; + this.f1891b = cVar; + this.c = aVar; + } + + public static void a(byte b2, byte b3, int i, long j) throws a { + if (b2 == 3) { + throw new a("unsynchronized server"); + } else if (b3 != 4 && b3 != 5) { + throw new a(b.d.b.a.a.p("untrusted mode: ", b3)); + } else if (i == 0 || i > 15) { + throw new a(b.d.b.a.a.p("untrusted stratum: ", i)); + } else if (j == 0) { + throw new a("zero transmitTime"); + } + } + + public static long b(byte[] bArr, int i) { + byte b2 = bArr[i]; + byte b3 = bArr[i + 1]; + byte b4 = bArr[i + 2]; + byte b5 = bArr[i + 3]; + int i2 = b2 & 128; + byte b6 = b2; + if (i2 == 128) { + b6 = (b2 & Byte.MAX_VALUE) + 128; + } + int i3 = b3 & 128; + byte b7 = b3; + if (i3 == 128) { + b7 = (b3 & Byte.MAX_VALUE) + 128; + } + int i4 = b4 & 128; + byte b8 = b4; + if (i4 == 128) { + b8 = (b4 & Byte.MAX_VALUE) + 128; + } + int i5 = b5 & 128; + byte b9 = b5; + if (i5 == 128) { + b9 = (b5 & Byte.MAX_VALUE) + 128; + } + return ((b6 == 1 ? 1 : 0) << 24) + ((b7 == 1 ? 1 : 0) << 16) + ((b8 == 1 ? 1 : 0) << 8) + (b9 == 1 ? 1 : 0); + } + + public static long c(byte[] bArr, int i) { + long b2 = b(bArr, i); + return ((b(bArr, i + 4) * 1000) / Permission.REQUEST_TO_SPEAK) + ((b2 - 2208988800L) * 1000); + } + + public b d(String str, Long l) throws IOException { + DatagramSocket datagramSocket = null; + try { + InetAddress a2 = this.f1891b.a(str); + datagramSocket = this.c.c(); + datagramSocket.setSoTimeout(l.intValue()); + byte[] bArr = new byte[48]; + DatagramPacket b2 = this.c.b(bArr, a2, 123); + bArr[0] = 27; + long a3 = this.a.a(); + long b3 = this.a.b(); + long j = a3 / 1000; + Long.signum(j); + long j2 = a3 - (j * 1000); + long j3 = j + 2208988800L; + bArr[40] = (byte) ((int) (j3 >> 24)); + bArr[41] = (byte) ((int) (j3 >> 16)); + bArr[42] = (byte) ((int) (j3 >> 8)); + bArr[43] = (byte) ((int) (j3 >> 0)); + long j4 = (j2 * Permission.REQUEST_TO_SPEAK) / 1000; + bArr[44] = (byte) ((int) (j4 >> 24)); + bArr[45] = (byte) ((int) (j4 >> 16)); + bArr[46] = (byte) ((int) (j4 >> 8)); + bArr[47] = (byte) ((int) (Math.random() * 255.0d)); + datagramSocket.send(b2); + byte[] copyOf = Arrays.copyOf(bArr, 48); + datagramSocket.receive(this.c.a(copyOf)); + long b4 = this.a.b(); + long j5 = (b4 - b3) + a3; + long c = c(copyOf, 24); + long c2 = c(copyOf, 32); + long c3 = c(copyOf, 40); + a((byte) ((copyOf[0] >> 6) & 3), (byte) (copyOf[0] & 7), copyOf[1] & 255, c3); + b bVar = new b(j5, b4, ((c3 - j5) + (c2 - c)) / 2, this.a); + datagramSocket.close(); + return bVar; + } catch (Throwable th) { + if (datagramSocket != null) { + datagramSocket.close(); + } + throw th; + } + } +} diff --git a/app/src/main/java/b/m/a/g/d/f.java b/app/src/main/java/b/m/a/g/d/f.java new file mode 100644 index 0000000000..bf25459ac4 --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/f.java @@ -0,0 +1,11 @@ +package b.m.a.g.d; + +import b.m.a.g.d.e; +/* compiled from: SntpResponseCache.kt */ +public interface f { + void a(e.b bVar); + + void clear(); + + e.b get(); +} diff --git a/app/src/main/java/b/m/a/g/d/g.java b/app/src/main/java/b/m/a/g/d/g.java new file mode 100644 index 0000000000..8510b91120 --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/g.java @@ -0,0 +1,44 @@ +package b.m.a.g.d; + +import b.m.a.b; +import b.m.a.f; +import b.m.a.g.d.e; +import d0.z.d.m; +/* compiled from: SntpResponseCache.kt */ +public final class g implements f { + public final f a; + + /* renamed from: b reason: collision with root package name */ + public final b f1893b; + + public g(f fVar, b bVar) { + m.checkParameterIsNotNull(fVar, "syncResponseCache"); + m.checkParameterIsNotNull(bVar, "deviceClock"); + this.a = fVar; + this.f1893b = bVar; + } + + @Override // b.m.a.g.d.f + public void a(e.b bVar) { + m.checkParameterIsNotNull(bVar, "response"); + this.a.f(bVar.a); + this.a.a(bVar.f1892b); + this.a.b(bVar.c); + } + + @Override // b.m.a.g.d.f + public void clear() { + this.a.clear(); + } + + @Override // b.m.a.g.d.f + public e.b get() { + long e = this.a.e(); + long c = this.a.c(); + long d = this.a.d(); + if (c == 0) { + return null; + } + return new e.b(e, c, d, this.f1893b); + } +} diff --git a/app/src/main/java/b/m/a/g/d/h.java b/app/src/main/java/b/m/a/g/d/h.java new file mode 100644 index 0000000000..16b6534f3c --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/h.java @@ -0,0 +1,9 @@ +package b.m.a.g.d; + +import b.m.a.d; +/* compiled from: SntpService.kt */ +public interface h { + d a(); + + void b(); +} diff --git a/app/src/main/java/b/m/a/g/d/i.java b/app/src/main/java/b/m/a/g/d/i.java new file mode 100644 index 0000000000..4649dffa6d --- /dev/null +++ b/app/src/main/java/b/m/a/g/d/i.java @@ -0,0 +1,163 @@ +package b.m.a.g.d; + +import b.m.a.d; +import b.m.a.e; +import b.m.a.g.d.e; +import com.lyft.kronos.internal.ntp.NTPSyncException; +import d0.z.d.m; +import java.util.Iterator; +import java.util.List; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.atomic.AtomicLong; +import java.util.concurrent.atomic.AtomicReference; +/* compiled from: SntpService.kt */ +public final class i implements h { + public final AtomicReference a = new AtomicReference<>(a.INIT); + + /* renamed from: b reason: collision with root package name */ + public final AtomicLong f1894b = new AtomicLong(0); + public final ExecutorService c = Executors.newSingleThreadExecutor(b.j); + public final e d; + public final b.m.a.b e; + public final f f; + public final e g; + public final List h; + public final long i; + public final long j; + public final long k; + + /* compiled from: SntpService.kt */ + public enum a { + INIT, + IDLE, + SYNCING, + STOPPED + } + + /* compiled from: SntpService.kt */ + public static final class b implements ThreadFactory { + public static final b j = new b(); + + @Override // java.util.concurrent.ThreadFactory + public final Thread newThread(Runnable runnable) { + return new Thread(runnable, "kronos-android"); + } + } + + /* compiled from: SntpService.kt */ + public static final class c implements Runnable { + public final /* synthetic */ i j; + + public c(i iVar) { + this.j = iVar; + } + + @Override // java.lang.Runnable + public final void run() { + boolean z2; + i iVar = this.j; + iVar.c(); + Iterator it = iVar.h.iterator(); + do { + z2 = false; + if (it.hasNext()) { + String next = it.next(); + a aVar = a.IDLE; + AtomicReference atomicReference = iVar.a; + a aVar2 = a.SYNCING; + if (atomicReference.getAndSet(aVar2) != aVar2) { + long b2 = iVar.e.b(); + e eVar = iVar.g; + if (eVar != null) { + eVar.a(next); + } + try { + e.b d = iVar.d.d(next, Long.valueOf(iVar.i)); + m.checkExpressionValueIsNotNull(d, "response"); + if (d.a() >= 0) { + iVar.f.a(d); + long j = d.c; + long b3 = iVar.e.b() - b2; + b.m.a.e eVar2 = iVar.g; + if (eVar2 != null) { + eVar2.b(j, b3); + } + iVar.a.set(aVar); + iVar.f1894b.set(iVar.e.b()); + z2 = true; + continue; + } else { + throw new NTPSyncException("Invalid time " + d.a() + " received from " + next); + } + } catch (Throwable th) { + iVar.a.set(aVar); + iVar.f1894b.set(iVar.e.b()); + throw th; + } + } + } else { + return; + } + } while (!z2); + } + } + + public i(e eVar, b.m.a.b bVar, f fVar, b.m.a.e eVar2, List list, long j, long j2, long j3) { + m.checkParameterIsNotNull(eVar, "sntpClient"); + m.checkParameterIsNotNull(bVar, "deviceClock"); + m.checkParameterIsNotNull(fVar, "responseCache"); + m.checkParameterIsNotNull(list, "ntpHosts"); + this.d = eVar; + this.e = bVar; + this.f = fVar; + this.g = eVar2; + this.h = list; + this.i = j; + this.j = j2; + this.k = j3; + } + + /* JADX WARNING: Code restructure failed: missing block: B:7:0x0039, code lost: + if ((java.lang.Math.abs((r0.a - r0.f1892b) - (r0.d.a() - r0.d.b())) < 1000) == false) goto L_0x003d; + */ + @Override // b.m.a.g.d.h + public d a() { + c(); + e.b bVar = this.f.get(); + boolean z2 = true; + if (this.a.compareAndSet(a.INIT, a.IDLE) && bVar != null) { + } + z2 = false; + if (z2) { + this.f.clear(); + bVar = null; + } + if (bVar == null) { + if (this.e.b() - this.f1894b.get() >= this.j) { + b(); + } + return null; + } + long b2 = bVar.d.b() - bVar.f1892b; + if (b2 >= this.k && this.e.b() - this.f1894b.get() >= this.j) { + b(); + } + return new d(bVar.a(), Long.valueOf(b2)); + } + + @Override // b.m.a.g.d.h + public void b() { + c(); + if (this.a.get() != a.SYNCING) { + this.c.submit(new c(this)); + } + } + + public final void c() { + if (this.a.get() == a.STOPPED) { + throw new IllegalStateException("Service already shutdown"); + } + } +} diff --git a/app/src/main/java/b/n/a/a/a.java b/app/src/main/java/b/n/a/a/a.java new file mode 100644 index 0000000000..a7c9d49505 --- /dev/null +++ b/app/src/main/java/b/n/a/a/a.java @@ -0,0 +1,140 @@ +package b.n.a.a; + +import android.os.Binder; +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +import android.util.Log; +import b.a.r.d; +import com.discord.samsung.SamsungConnectActivity; +import com.discord.widgets.chat.input.MentionUtilsKt; +import d0.g0.t; +import d0.g0.y; +import d0.z.d.m; +/* compiled from: ISACallback */ +public interface a extends IInterface { + + /* compiled from: ISACallback */ + /* renamed from: b.n.a.a.a$a reason: collision with other inner class name */ + public static abstract class AbstractBinderC0157a extends Binder implements a { + public AbstractBinderC0157a() { + attachInterface(this, "com.msc.sa.aidl.ISACallback"); + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this; + } + + /* JADX WARNING: Code restructure failed: missing block: B:47:0x00e7, code lost: + if (r12 != false) goto L_0x00e9; + */ + @Override // android.os.Binder + public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { + if (i != 1598968902) { + switch (i) { + case 1: + parcel.enforceInterface("com.msc.sa.aidl.ISACallback"); + parcel.readInt(); + parcel.readInt(); + if (parcel.readInt() != 0) { + Bundle bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel); + } + throw new IllegalStateException("Unexpected call to onReceiveAccessToken"); + case 2: + parcel.enforceInterface("com.msc.sa.aidl.ISACallback"); + parcel.readInt(); + parcel.readInt(); + if (parcel.readInt() != 0) { + Bundle bundle2 = (Bundle) Bundle.CREATOR.createFromParcel(parcel); + } + throw new IllegalStateException("Unexpected call to onReceiveAccessToken"); + case 3: + parcel.enforceInterface("com.msc.sa.aidl.ISACallback"); + parcel.readInt(); + parcel.readInt(); + if (parcel.readInt() != 0) { + Bundle bundle3 = (Bundle) Bundle.CREATOR.createFromParcel(parcel); + } + throw new IllegalStateException("Unexpected call to onReceiveDisclaimerAgreement"); + case 4: + parcel.enforceInterface("com.msc.sa.aidl.ISACallback"); + parcel.readInt(); + boolean z2 = false; + boolean z3 = parcel.readInt() != 0; + String str = null; + Bundle bundle4 = parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null; + d dVar = (d) this; + String string = bundle4 != null ? bundle4.getString("authcode") : null; + String string2 = bundle4 != null ? bundle4.getString("auth_server_url") : null; + Log.i("Discord", "Samsung onReceiveAuthCode=" + z3); + if (z3) { + if (string == null || t.isBlank(string)) { + z2 = true; + break; + } + } + String string3 = bundle4 != null ? bundle4.getString("error_code") : null; + String string4 = bundle4 != null ? bundle4.getString("error_message") : null; + StringBuilder R = b.d.b.a.a.R("Samsung Account link failure "); + StringBuilder sb = new StringBuilder(); + sb.append('['); + sb.append(string3); + sb.append(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR); + if (string != null) { + str = y.takeLast(string, 4); + } + sb.append(str); + sb.append("]: "); + sb.append(string4); + R.append(sb.toString()); + String sb2 = R.toString(); + m.checkNotNullExpressionValue(sb2, "StringBuilder()\n … .toString()"); + Log.w("Discord", sb2); + SamsungConnectActivity.a(dVar.a, string, string2); + parcel2.writeNoException(); + return true; + case 5: + parcel.enforceInterface("com.msc.sa.aidl.ISACallback"); + parcel.readInt(); + parcel.readInt(); + if (parcel.readInt() != 0) { + Bundle bundle5 = (Bundle) Bundle.CREATOR.createFromParcel(parcel); + } + throw new IllegalStateException("Unexpected call to onReceiveSCloudAccessToken"); + case 6: + parcel.enforceInterface("com.msc.sa.aidl.ISACallback"); + parcel.readInt(); + parcel.readInt(); + if (parcel.readInt() != 0) { + Bundle bundle6 = (Bundle) Bundle.CREATOR.createFromParcel(parcel); + } + throw new IllegalStateException("Unexpected call to onReceivePasswordConfirmation"); + case 7: + parcel.enforceInterface("com.msc.sa.aidl.ISACallback"); + parcel.readInt(); + parcel.readInt(); + if (parcel.readInt() != 0) { + Bundle bundle7 = (Bundle) Bundle.CREATOR.createFromParcel(parcel); + } + throw new IllegalStateException("Unexpected call to onReceiveRLControlFMM"); + case 8: + parcel.enforceInterface("com.msc.sa.aidl.ISACallback"); + parcel.readInt(); + parcel.readInt(); + if (parcel.readInt() != 0) { + Bundle bundle8 = (Bundle) Bundle.CREATOR.createFromParcel(parcel); + } + throw new IllegalStateException("Unexpected call to onReceiveRubinRequest"); + default: + return super.onTransact(i, parcel, parcel2, i2); + } + } else { + parcel2.writeString("com.msc.sa.aidl.ISACallback"); + return true; + } + } + } +} diff --git a/app/src/main/java/b/n/a/a/b.java b/app/src/main/java/b/n/a/a/b.java new file mode 100644 index 0000000000..04501b31e8 --- /dev/null +++ b/app/src/main/java/b/n/a/a/b.java @@ -0,0 +1,81 @@ +package b.n.a.a; + +import android.os.Binder; +import android.os.Bundle; +import android.os.IBinder; +import android.os.IInterface; +import android.os.Parcel; +import android.os.RemoteException; +/* compiled from: ISAService */ +public interface b extends IInterface { + + /* compiled from: ISAService */ + public static abstract class a extends Binder implements b { + public static final /* synthetic */ int a = 0; + + /* compiled from: ISAService */ + /* renamed from: b.n.a.a.b$a$a reason: collision with other inner class name */ + public static class C0158a implements b { + public IBinder a; + + public C0158a(IBinder iBinder) { + this.a = iBinder; + } + + @Override // b.n.a.a.b + public String Q(String str, String str2, String str3, a aVar) throws RemoteException { + Parcel obtain = Parcel.obtain(); + Parcel obtain2 = Parcel.obtain(); + try { + obtain.writeInterfaceToken("com.msc.sa.aidl.ISAService"); + obtain.writeString(str); + obtain.writeString(str2); + obtain.writeString(str3); + obtain.writeStrongBinder(aVar != null ? aVar.asBinder() : null); + if (!this.a.transact(1, obtain, obtain2, 0)) { + int i = a.a; + } + obtain2.readException(); + return obtain2.readString(); + } finally { + obtain2.recycle(); + obtain.recycle(); + } + } + + @Override // android.os.IInterface + public IBinder asBinder() { + return this.a; + } + + @Override // b.n.a.a.b + public boolean k0(int i, String str, Bundle bundle) throws RemoteException { + Parcel obtain = Parcel.obtain(); + Parcel obtain2 = Parcel.obtain(); + try { + obtain.writeInterfaceToken("com.msc.sa.aidl.ISAService"); + obtain.writeInt(i); + obtain.writeString(str); + boolean z2 = true; + obtain.writeInt(1); + bundle.writeToParcel(obtain, 0); + if (!this.a.transact(6, obtain, obtain2, 0)) { + int i2 = a.a; + } + obtain2.readException(); + if (obtain2.readInt() == 0) { + z2 = false; + } + return z2; + } finally { + obtain2.recycle(); + obtain.recycle(); + } + } + } + } + + String Q(String str, String str2, String str3, a aVar) throws RemoteException; + + boolean k0(int i, String str, Bundle bundle) throws RemoteException; +} diff --git a/app/src/main/java/b/o/a/a.java b/app/src/main/java/b/o/a/a.java new file mode 100644 index 0000000000..593215cf84 --- /dev/null +++ b/app/src/main/java/b/o/a/a.java @@ -0,0 +1,23 @@ +package b.o.a; + +import androidx.annotation.NonNull; +import androidx.annotation.UiThread; +import com.otaliastudios.cameraview.CameraException; +/* compiled from: CameraListener */ +public abstract class a { + @UiThread + public void a() { + } + + @UiThread + public void b(@NonNull CameraException cameraException) { + } + + @UiThread + public void c(@NonNull c cVar) { + } + + @UiThread + public void d(@NonNull l lVar) { + } +} diff --git a/app/src/main/java/b/o/a/b.java b/app/src/main/java/b/o/a/b.java new file mode 100644 index 0000000000..c5263d7b13 --- /dev/null +++ b/app/src/main/java/b/o/a/b.java @@ -0,0 +1,74 @@ +package b.o.a; + +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import java.util.Set; +import java.util.concurrent.CopyOnWriteArraySet; +/* compiled from: CameraLogger */ +public final class b { + public static int a = 3; + + /* renamed from: b reason: collision with root package name */ + public static Set f1895b; + @VisibleForTesting + public static AbstractC0159b c; + @NonNull + public String d; + + /* compiled from: CameraLogger */ + public static class a implements AbstractC0159b { + @Override // b.o.a.b.AbstractC0159b + public void a(int i, @NonNull String str, @NonNull String str2, @Nullable Throwable th) { + if (i == 0) { + Log.v(str, str2, th); + } else if (i == 1) { + Log.i(str, str2, th); + } else if (i == 2) { + Log.w(str, str2, th); + } else if (i == 3) { + Log.e(str, str2, th); + } + } + } + + /* compiled from: CameraLogger */ + /* renamed from: b.o.a.b$b reason: collision with other inner class name */ + public interface AbstractC0159b { + void a(int i, @NonNull String str, @NonNull String str2, @Nullable Throwable th); + } + + static { + CopyOnWriteArraySet copyOnWriteArraySet = new CopyOnWriteArraySet(); + f1895b = copyOnWriteArraySet; + a aVar = new a(); + c = aVar; + copyOnWriteArraySet.add(aVar); + } + + public b(@NonNull String str) { + this.d = str; + } + + @Nullable + public final String a(int i, @NonNull Object... objArr) { + Throwable th = null; + if (!(a <= i && f1895b.size() > 0)) { + return null; + } + StringBuilder sb = new StringBuilder(); + for (Object obj : objArr) { + if (obj instanceof Throwable) { + th = (Throwable) obj; + } + sb.append(String.valueOf(obj)); + sb.append(" "); + } + String trim = sb.toString().trim(); + for (AbstractC0159b bVar : f1895b) { + bVar.a(i, this.d, trim, th); + } + return trim; + } +} diff --git a/app/src/main/java/b/o/a/c.java b/app/src/main/java/b/o/a/c.java new file mode 100644 index 0000000000..5058772ec3 --- /dev/null +++ b/app/src/main/java/b/o/a/c.java @@ -0,0 +1,57 @@ +package b.o.a; + +import androidx.annotation.NonNull; +import b.o.a.m.d; +import b.o.a.m.e; +import b.o.a.m.f; +import b.o.a.m.g; +import b.o.a.m.h; +import b.o.a.m.i; +import b.o.a.m.j; +import b.o.a.m.k; +import b.o.a.m.l; +import b.o.a.m.m; +import b.o.a.x.a; +import b.o.a.x.b; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; +/* compiled from: CameraOptions */ +public abstract class c { + public Set a = new HashSet(5); + + /* renamed from: b reason: collision with root package name */ + public Set f1896b = new HashSet(2); + public Set c = new HashSet(4); + public Set d = new HashSet(2); + public Set e = new HashSet(15); + public Set f = new HashSet(5); + public Set g = new HashSet(4); + public Set h = new HashSet(3); + public Set i = new HashSet(2); + public Set j = new HashSet(2); + public boolean k; + public boolean l; + public float m; + public float n; + public boolean o; + public float p; + public float q; + + @NonNull + public final Collection a() { + return Collections.unmodifiableSet(this.f1896b); + } + + @NonNull + public final Collection b() { + return Collections.unmodifiableSet(this.c); + } + + public final boolean c(@NonNull b.o.a.m.c cVar) { + Class cls = cVar.getClass(); + return (cls.equals(b.o.a.m.a.class) ? Arrays.asList(b.o.a.m.a.values()) : cls.equals(e.class) ? a() : cls.equals(f.class) ? b() : cls.equals(g.class) ? Arrays.asList(g.values()) : cls.equals(h.class) ? Collections.unmodifiableSet(this.d) : cls.equals(i.class) ? Arrays.asList(i.values()) : cls.equals(l.class) ? Arrays.asList(l.values()) : cls.equals(b.o.a.m.b.class) ? Arrays.asList(b.o.a.m.b.values()) : cls.equals(m.class) ? Collections.unmodifiableSet(this.a) : cls.equals(d.class) ? Arrays.asList(d.values()) : cls.equals(k.class) ? Arrays.asList(k.values()) : cls.equals(j.class) ? Collections.unmodifiableSet(this.i) : Collections.emptyList()).contains(cVar); + } +} diff --git a/app/src/main/java/b/o/a/d.java b/app/src/main/java/b/o/a/d.java new file mode 100644 index 0000000000..51bf5e1cc9 --- /dev/null +++ b/app/src/main/java/b/o/a/d.java @@ -0,0 +1,69 @@ +package b.o.a; + +import android.os.Handler; +import java.io.BufferedOutputStream; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +/* compiled from: CameraUtils */ +public final class d implements Runnable { + public final /* synthetic */ byte[] j; + public final /* synthetic */ File k; + public final /* synthetic */ Handler l; + public final /* synthetic */ k m; + + /* compiled from: CameraUtils */ + public class a implements Runnable { + public final /* synthetic */ File j; + + public a(File file) { + this.j = file; + } + + @Override // java.lang.Runnable + public void run() { + d.this.m.a(this.j); + } + } + + public d(byte[] bArr, File file, Handler handler, k kVar) { + this.j = bArr; + this.k = file; + this.l = handler; + this.m = kVar; + } + + /* JADX WARNING: Code restructure failed: missing block: B:13:0x0029, code lost: + r1 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:15:?, code lost: + r2.close(); + */ + /* JADX WARNING: Code restructure failed: missing block: B:16:0x002e, code lost: + r2 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:17:0x002f, code lost: + r0.addSuppressed(r2); + */ + /* JADX WARNING: Code restructure failed: missing block: B:18:0x0032, code lost: + throw r1; + */ + @Override // java.lang.Runnable + public void run() { + byte[] bArr = this.j; + File file = this.k; + if (!file.exists() || file.delete()) { + try { + BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(file)); + bufferedOutputStream.write(bArr); + bufferedOutputStream.flush(); + bufferedOutputStream.close(); + } catch (IOException e) { + e.a.a(3, "writeToFile:", "could not write file.", e); + } + this.l.post(new a(file)); + } + file = null; + this.l.post(new a(file)); + } +} diff --git a/app/src/main/java/b/o/a/e.java b/app/src/main/java/b/o/a/e.java new file mode 100644 index 0000000000..4c8612863d --- /dev/null +++ b/app/src/main/java/b/o/a/e.java @@ -0,0 +1,24 @@ +package b.o.a; + +import android.hardware.Camera; +import androidx.annotation.NonNull; +import b.o.a.n.q.a; +import java.util.Objects; +/* compiled from: CameraUtils */ +public class e { + public static final b a = new b(e.class.getSimpleName()); + + public static boolean a(@NonNull b.o.a.m.e eVar) { + Objects.requireNonNull(a.a()); + int intValue = a.d.get(eVar).intValue(); + Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); + int numberOfCameras = Camera.getNumberOfCameras(); + for (int i = 0; i < numberOfCameras; i++) { + Camera.getCameraInfo(i, cameraInfo); + if (cameraInfo.facing == intValue) { + return true; + } + } + return false; + } +} diff --git a/app/src/main/java/b/o/a/f.java b/app/src/main/java/b/o/a/f.java new file mode 100644 index 0000000000..dbd433ba30 --- /dev/null +++ b/app/src/main/java/b/o/a/f.java @@ -0,0 +1,20 @@ +package b.o.a; + +import com.otaliastudios.cameraview.CameraView; +/* compiled from: CameraView */ +public class f implements Runnable { + public final /* synthetic */ c j; + public final /* synthetic */ CameraView.b k; + + public f(CameraView.b bVar, c cVar) { + this.k = bVar; + this.j = cVar; + } + + @Override // java.lang.Runnable + public void run() { + for (a aVar : CameraView.this.C) { + aVar.c(this.j); + } + } +} diff --git a/app/src/main/java/b/o/a/g.java b/app/src/main/java/b/o/a/g.java new file mode 100644 index 0000000000..74fbbf3960 --- /dev/null +++ b/app/src/main/java/b/o/a/g.java @@ -0,0 +1,18 @@ +package b.o.a; + +import com.otaliastudios.cameraview.CameraView; +/* compiled from: CameraView */ +public class g implements Runnable { + public final /* synthetic */ CameraView.b j; + + public g(CameraView.b bVar) { + this.j = bVar; + } + + @Override // java.lang.Runnable + public void run() { + for (a aVar : CameraView.this.C) { + aVar.a(); + } + } +} diff --git a/app/src/main/java/b/o/a/h.java b/app/src/main/java/b/o/a/h.java new file mode 100644 index 0000000000..91439938a0 --- /dev/null +++ b/app/src/main/java/b/o/a/h.java @@ -0,0 +1,19 @@ +package b.o.a; + +import com.otaliastudios.cameraview.CameraView; +import java.util.Objects; +/* compiled from: CameraView */ +public class h implements Runnable { + public final /* synthetic */ CameraView.b j; + + public h(CameraView.b bVar) { + this.j = bVar; + } + + @Override // java.lang.Runnable + public void run() { + for (a aVar : CameraView.this.C) { + Objects.requireNonNull(aVar); + } + } +} diff --git a/app/src/main/java/b/o/a/i.java b/app/src/main/java/b/o/a/i.java new file mode 100644 index 0000000000..cf45648905 --- /dev/null +++ b/app/src/main/java/b/o/a/i.java @@ -0,0 +1,22 @@ +package b.o.a; + +import b.o.a.l; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: CameraView */ +public class i implements Runnable { + public final /* synthetic */ l.a j; + public final /* synthetic */ CameraView.b k; + + public i(CameraView.b bVar, l.a aVar) { + this.k = bVar; + this.j = aVar; + } + + @Override // java.lang.Runnable + public void run() { + l lVar = new l(this.j); + for (a aVar : CameraView.this.C) { + aVar.d(lVar); + } + } +} diff --git a/app/src/main/java/b/o/a/j.java b/app/src/main/java/b/o/a/j.java new file mode 100644 index 0000000000..0942664d79 --- /dev/null +++ b/app/src/main/java/b/o/a/j.java @@ -0,0 +1,21 @@ +package b.o.a; + +import com.otaliastudios.cameraview.CameraView; +import java.util.Objects; +/* compiled from: CameraView */ +public class j implements Runnable { + public final /* synthetic */ int j; + public final /* synthetic */ CameraView.b k; + + public j(CameraView.b bVar, int i) { + this.k = bVar; + this.j = i; + } + + @Override // java.lang.Runnable + public void run() { + for (a aVar : CameraView.this.C) { + Objects.requireNonNull(aVar); + } + } +} diff --git a/app/src/main/java/b/o/a/k.java b/app/src/main/java/b/o/a/k.java new file mode 100644 index 0000000000..3d20246c3e --- /dev/null +++ b/app/src/main/java/b/o/a/k.java @@ -0,0 +1,10 @@ +package b.o.a; + +import androidx.annotation.Nullable; +import androidx.annotation.UiThread; +import java.io.File; +/* compiled from: FileCallback */ +public interface k { + @UiThread + void a(@Nullable File file); +} diff --git a/app/src/main/java/b/o/a/l.java b/app/src/main/java/b/o/a/l.java new file mode 100644 index 0000000000..b3452b2749 --- /dev/null +++ b/app/src/main/java/b/o/a/l.java @@ -0,0 +1,29 @@ +package b.o.a; + +import android.location.Location; +import androidx.annotation.NonNull; +import b.o.a.m.e; +import b.o.a.m.j; +import b.o.a.x.b; +/* compiled from: PictureResult */ +public class l { + public final byte[] a; + + /* compiled from: PictureResult */ + public static class a { + public boolean a; + + /* renamed from: b reason: collision with root package name */ + public Location f1897b; + public int c; + public b d; + public e e; + public byte[] f; + public j g; + } + + public l(@NonNull a aVar) { + boolean z2 = aVar.a; + this.a = aVar.f; + } +} diff --git a/app/src/main/java/b/o/a/m/a.java b/app/src/main/java/b/o/a/m/a.java new file mode 100644 index 0000000000..14e62862c9 --- /dev/null +++ b/app/src/main/java/b/o/a/m/a.java @@ -0,0 +1,32 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: Audio */ +public enum a implements c { + OFF(0), + ON(1), + MONO(2), + STEREO(3); + + private int value; + + public a(int i) { + this.value = i; + } + + @NonNull + public static a f(int i) { + a[] values = values(); + for (int i2 = 0; i2 < 4; i2++) { + a aVar = values[i2]; + if (aVar.value == i) { + return aVar; + } + } + return ON; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/b.java b/app/src/main/java/b/o/a/m/b.java new file mode 100644 index 0000000000..9de88dca4f --- /dev/null +++ b/app/src/main/java/b/o/a/m/b.java @@ -0,0 +1,32 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: AudioCodec */ +public enum b implements c { + DEVICE_DEFAULT(0), + AAC(1), + HE_AAC(2), + AAC_ELD(3); + + private int value; + + public b(int i) { + this.value = i; + } + + @NonNull + public static b f(int i) { + b[] values = values(); + for (int i2 = 0; i2 < 4; i2++) { + b bVar = values[i2]; + if (bVar.value == i) { + return bVar; + } + } + return DEVICE_DEFAULT; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/c.java b/app/src/main/java/b/o/a/m/c.java new file mode 100644 index 0000000000..4ad1474c67 --- /dev/null +++ b/app/src/main/java/b/o/a/m/c.java @@ -0,0 +1,4 @@ +package b.o.a.m; +/* compiled from: Control */ +public interface c { +} diff --git a/app/src/main/java/b/o/a/m/d.java b/app/src/main/java/b/o/a/m/d.java new file mode 100644 index 0000000000..fd1aac62d9 --- /dev/null +++ b/app/src/main/java/b/o/a/m/d.java @@ -0,0 +1,30 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: Engine */ +public enum d implements c { + CAMERA1(0), + CAMERA2(1); + + private int value; + + public d(int i) { + this.value = i; + } + + @NonNull + public static d f(int i) { + d[] values = values(); + for (int i2 = 0; i2 < 2; i2++) { + d dVar = values[i2]; + if (dVar.value == i) { + return dVar; + } + } + return CAMERA1; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/e.java b/app/src/main/java/b/o/a/m/e.java new file mode 100644 index 0000000000..ade3afde36 --- /dev/null +++ b/app/src/main/java/b/o/a/m/e.java @@ -0,0 +1,30 @@ +package b.o.a.m; + +import androidx.annotation.Nullable; +/* compiled from: Facing */ +public enum e implements c { + BACK(0), + FRONT(1); + + private int value; + + public e(int i) { + this.value = i; + } + + @Nullable + public static e f(int i) { + e[] values = values(); + for (int i2 = 0; i2 < 2; i2++) { + e eVar = values[i2]; + if (eVar.value == i) { + return eVar; + } + } + return null; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/f.java b/app/src/main/java/b/o/a/m/f.java new file mode 100644 index 0000000000..689d256645 --- /dev/null +++ b/app/src/main/java/b/o/a/m/f.java @@ -0,0 +1,32 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: Flash */ +public enum f implements c { + OFF(0), + ON(1), + AUTO(2), + TORCH(3); + + private int value; + + public f(int i) { + this.value = i; + } + + @NonNull + public static f f(int i) { + f[] values = values(); + for (int i2 = 0; i2 < 4; i2++) { + f fVar = values[i2]; + if (fVar.value == i) { + return fVar; + } + } + return OFF; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/g.java b/app/src/main/java/b/o/a/m/g.java new file mode 100644 index 0000000000..8c74e157d1 --- /dev/null +++ b/app/src/main/java/b/o/a/m/g.java @@ -0,0 +1,32 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: Grid */ +public enum g implements c { + OFF(0), + DRAW_3X3(1), + DRAW_4X4(2), + DRAW_PHI(3); + + private int value; + + public g(int i) { + this.value = i; + } + + @NonNull + public static g f(int i) { + g[] values = values(); + for (int i2 = 0; i2 < 4; i2++) { + g gVar = values[i2]; + if (gVar.value == i) { + return gVar; + } + } + return OFF; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/h.java b/app/src/main/java/b/o/a/m/h.java new file mode 100644 index 0000000000..9f853da4db --- /dev/null +++ b/app/src/main/java/b/o/a/m/h.java @@ -0,0 +1,30 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: Hdr */ +public enum h implements c { + OFF(0), + ON(1); + + private int value; + + public h(int i) { + this.value = i; + } + + @NonNull + public static h f(int i) { + h[] values = values(); + for (int i2 = 0; i2 < 2; i2++) { + h hVar = values[i2]; + if (hVar.value == i) { + return hVar; + } + } + return OFF; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/i.java b/app/src/main/java/b/o/a/m/i.java new file mode 100644 index 0000000000..d78c73ee4d --- /dev/null +++ b/app/src/main/java/b/o/a/m/i.java @@ -0,0 +1,30 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: Mode */ +public enum i implements c { + PICTURE(0), + VIDEO(1); + + private int value; + + public i(int i) { + this.value = i; + } + + @NonNull + public static i f(int i) { + i[] values = values(); + for (int i2 = 0; i2 < 2; i2++) { + i iVar = values[i2]; + if (iVar.value == i) { + return iVar; + } + } + return PICTURE; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/j.java b/app/src/main/java/b/o/a/m/j.java new file mode 100644 index 0000000000..42d84ae40f --- /dev/null +++ b/app/src/main/java/b/o/a/m/j.java @@ -0,0 +1,30 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: PictureFormat */ +public enum j implements c { + JPEG(0), + DNG(1); + + private int value; + + public j(int i) { + this.value = i; + } + + @NonNull + public static j f(int i) { + j[] values = values(); + for (int i2 = 0; i2 < 2; i2++) { + j jVar = values[i2]; + if (jVar.value == i) { + return jVar; + } + } + return JPEG; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/k.java b/app/src/main/java/b/o/a/m/k.java new file mode 100644 index 0000000000..d5fe84d126 --- /dev/null +++ b/app/src/main/java/b/o/a/m/k.java @@ -0,0 +1,31 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: Preview */ +public enum k implements c { + SURFACE(0), + TEXTURE(1), + GL_SURFACE(2); + + private int value; + + public k(int i) { + this.value = i; + } + + @NonNull + public static k f(int i) { + k[] values = values(); + for (int i2 = 0; i2 < 3; i2++) { + k kVar = values[i2]; + if (kVar.value == i) { + return kVar; + } + } + return GL_SURFACE; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/l.java b/app/src/main/java/b/o/a/m/l.java new file mode 100644 index 0000000000..70e060d314 --- /dev/null +++ b/app/src/main/java/b/o/a/m/l.java @@ -0,0 +1,31 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: VideoCodec */ +public enum l implements c { + DEVICE_DEFAULT(0), + H_263(1), + H_264(2); + + private int value; + + public l(int i) { + this.value = i; + } + + @NonNull + public static l f(int i) { + l[] values = values(); + for (int i2 = 0; i2 < 3; i2++) { + l lVar = values[i2]; + if (lVar.value == i) { + return lVar; + } + } + return DEVICE_DEFAULT; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/m/m.java b/app/src/main/java/b/o/a/m/m.java new file mode 100644 index 0000000000..ddc6ba747f --- /dev/null +++ b/app/src/main/java/b/o/a/m/m.java @@ -0,0 +1,33 @@ +package b.o.a.m; + +import androidx.annotation.NonNull; +/* compiled from: WhiteBalance */ +public enum m implements c { + AUTO(0), + INCANDESCENT(1), + FLUORESCENT(2), + DAYLIGHT(3), + CLOUDY(4); + + private int value; + + public m(int i) { + this.value = i; + } + + @NonNull + public static m f(int i) { + m[] values = values(); + for (int i2 = 0; i2 < 5; i2++) { + m mVar = values[i2]; + if (mVar.value == i) { + return mVar; + } + } + return AUTO; + } + + public int g() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/n/a.java b/app/src/main/java/b/o/a/n/a.java new file mode 100644 index 0000000000..7190c9cc2d --- /dev/null +++ b/app/src/main/java/b/o/a/n/a.java @@ -0,0 +1,16 @@ +package b.o.a.n; + +import java.util.Comparator; +/* compiled from: Camera1Engine */ +public class a implements Comparator { + public a(b bVar) { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(int[] iArr, int[] iArr2) { + int[] iArr3 = iArr; + int[] iArr4 = iArr2; + return (iArr4[1] - iArr4[0]) - (iArr3[1] - iArr3[0]); + } +} diff --git a/app/src/main/java/b/o/a/n/b.java b/app/src/main/java/b/o/a/n/b.java new file mode 100644 index 0000000000..cbafeb84b1 --- /dev/null +++ b/app/src/main/java/b/o/a/n/b.java @@ -0,0 +1,829 @@ +package b.o.a.n; + +import android.annotation.TargetApi; +import android.graphics.PointF; +import android.graphics.SurfaceTexture; +import android.hardware.Camera; +import android.location.Location; +import android.view.SurfaceHolder; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.o.a.l; +import b.o.a.m.j; +import b.o.a.m.m; +import b.o.a.n.i; +import b.o.a.p.a; +import com.discord.models.domain.ModelAuditLogEntry; +import com.google.android.gms.tasks.Task; +import com.otaliastudios.cameraview.CameraException; +import com.otaliastudios.cameraview.CameraView; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: Camera1Engine */ +public class b extends g implements Camera.PreviewCallback, Camera.ErrorCallback, a.AbstractC0168a { + + /* renamed from: d0 reason: collision with root package name */ + public final b.o.a.n.q.a f1898d0 = b.o.a.n.q.a.a(); + + /* renamed from: e0 reason: collision with root package name */ + public Camera f1899e0; + @VisibleForTesting + + /* renamed from: f0 reason: collision with root package name */ + public int f1900f0; + + /* compiled from: Camera1Engine */ + public class a implements Runnable { + public final /* synthetic */ b.o.a.t.b j; + public final /* synthetic */ b.o.a.q.a k; + public final /* synthetic */ PointF l; + + /* compiled from: Camera1Engine */ + /* renamed from: b.o.a.n.b$a$a reason: collision with other inner class name */ + public class RunnableC0160a implements Runnable { + public RunnableC0160a() { + } + + @Override // java.lang.Runnable + public void run() { + a aVar = a.this; + ((CameraView.b) b.this.m).d(aVar.k, false, aVar.l); + } + } + + /* compiled from: Camera1Engine */ + /* renamed from: b.o.a.n.b$a$b reason: collision with other inner class name */ + public class C0161b implements Camera.AutoFocusCallback { + + /* compiled from: Camera1Engine */ + /* renamed from: b.o.a.n.b$a$b$a reason: collision with other inner class name */ + public class RunnableC0162a implements Runnable { + public RunnableC0162a() { + } + + @Override // java.lang.Runnable + public void run() { + b.this.f1899e0.cancelAutoFocus(); + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + int maxNumFocusAreas = parameters.getMaxNumFocusAreas(); + int maxNumMeteringAreas = parameters.getMaxNumMeteringAreas(); + if (maxNumFocusAreas > 0) { + parameters.setFocusAreas(null); + } + if (maxNumMeteringAreas > 0) { + parameters.setMeteringAreas(null); + } + b.this.c1(parameters); + b.this.f1899e0.setParameters(parameters); + } + } + + public C0161b() { + } + + @Override // android.hardware.Camera.AutoFocusCallback + public void onAutoFocus(boolean z2, Camera camera) { + b.this.n.e("focus end", 0); + b.this.n.e("focus reset", 0); + a aVar = a.this; + ((CameraView.b) b.this.m).d(aVar.k, z2, aVar.l); + if (b.this.a1()) { + b bVar = b.this; + b.o.a.n.v.f fVar = bVar.n; + fVar.c("focus reset", true, bVar.W, new b.o.a.n.v.i(fVar, b.o.a.n.v.e.ENGINE, new RunnableC0162a())); + } + } + } + + public a(b.o.a.t.b bVar, b.o.a.q.a aVar, PointF pointF) { + this.j = bVar; + this.k = aVar; + this.l = pointF; + } + + @Override // java.lang.Runnable + public void run() { + if (b.this.p.o) { + b bVar = b.this; + b.o.a.n.s.a aVar = new b.o.a.n.s.a(bVar.L, bVar.o.l()); + b.o.a.t.b c = this.j.c(aVar); + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + int maxNumFocusAreas = parameters.getMaxNumFocusAreas(); + int maxNumMeteringAreas = parameters.getMaxNumMeteringAreas(); + if (maxNumFocusAreas > 0) { + parameters.setFocusAreas(c.b(maxNumFocusAreas, aVar)); + } + if (maxNumMeteringAreas > 0) { + parameters.setMeteringAreas(c.b(maxNumMeteringAreas, aVar)); + } + parameters.setFocusMode("auto"); + b.this.f1899e0.setParameters(parameters); + ((CameraView.b) b.this.m).e(this.k, this.l); + b.this.n.e("focus end", 0); + b.this.n.c("focus end", true, 2500, new RunnableC0160a()); + try { + b.this.f1899e0.autoFocus(new C0161b()); + } catch (RuntimeException e) { + i.j.a(3, "startAutoFocus:", "Error calling autoFocus", e); + } + } + } + } + + /* compiled from: Camera1Engine */ + /* renamed from: b.o.a.n.b$b reason: collision with other inner class name */ + public class RunnableC0163b implements Runnable { + public final /* synthetic */ b.o.a.m.f j; + + public RunnableC0163b(b.o.a.m.f fVar) { + this.j = fVar; + } + + @Override // java.lang.Runnable + public void run() { + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + if (b.this.e1(parameters, this.j)) { + b.this.f1899e0.setParameters(parameters); + } + } + } + + /* compiled from: Camera1Engine */ + public class c implements Runnable { + public final /* synthetic */ Location j; + + public c(Location location) { + this.j = location; + } + + @Override // java.lang.Runnable + public void run() { + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + b.this.g1(parameters); + b.this.f1899e0.setParameters(parameters); + } + } + + /* compiled from: Camera1Engine */ + public class d implements Runnable { + public final /* synthetic */ m j; + + public d(m mVar) { + this.j = mVar; + } + + @Override // java.lang.Runnable + public void run() { + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + if (b.this.j1(parameters, this.j)) { + b.this.f1899e0.setParameters(parameters); + } + } + } + + /* compiled from: Camera1Engine */ + public class e implements Runnable { + public final /* synthetic */ b.o.a.m.h j; + + public e(b.o.a.m.h hVar) { + this.j = hVar; + } + + @Override // java.lang.Runnable + public void run() { + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + if (b.this.f1(parameters, this.j)) { + b.this.f1899e0.setParameters(parameters); + } + } + } + + /* compiled from: Camera1Engine */ + public class f implements Runnable { + public final /* synthetic */ float j; + public final /* synthetic */ boolean k; + public final /* synthetic */ PointF[] l; + + public f(float f, boolean z2, PointF[] pointFArr) { + this.j = f; + this.k = z2; + this.l = pointFArr; + } + + @Override // java.lang.Runnable + public void run() { + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + if (b.this.k1(parameters, this.j)) { + b.this.f1899e0.setParameters(parameters); + if (this.k) { + b bVar = b.this; + ((CameraView.b) bVar.m).f(bVar.D, this.l); + } + } + } + } + + /* compiled from: Camera1Engine */ + public class g implements Runnable { + public final /* synthetic */ float j; + public final /* synthetic */ boolean k; + public final /* synthetic */ float[] l; + public final /* synthetic */ PointF[] m; + + public g(float f, boolean z2, float[] fArr, PointF[] pointFArr) { + this.j = f; + this.k = z2; + this.l = fArr; + this.m = pointFArr; + } + + @Override // java.lang.Runnable + public void run() { + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + if (b.this.d1(parameters, this.j)) { + b.this.f1899e0.setParameters(parameters); + if (this.k) { + b bVar = b.this; + ((CameraView.b) bVar.m).c(bVar.E, this.l, this.m); + } + } + } + } + + /* compiled from: Camera1Engine */ + public class h implements Runnable { + public final /* synthetic */ boolean j; + + public h(boolean z2) { + this.j = z2; + } + + @Override // java.lang.Runnable + public void run() { + b.this.h1(this.j); + } + } + + /* compiled from: Camera1Engine */ + public class i implements Runnable { + public final /* synthetic */ float j; + + public i(float f) { + this.j = f; + } + + @Override // java.lang.Runnable + public void run() { + Camera.Parameters parameters = b.this.f1899e0.getParameters(); + if (b.this.i1(parameters, this.j)) { + b.this.f1899e0.setParameters(parameters); + } + } + } + + public b(@NonNull i.g gVar) { + super(gVar); + } + + @Override // b.o.a.n.i + public void F0(@NonNull m mVar) { + m mVar2 = this.f1917x; + this.f1917x = mVar; + b.o.a.n.v.f fVar = this.n; + fVar.b("white balance (" + mVar + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new d(mVar2))); + } + + @Override // b.o.a.n.i + public void G0(float f2, @Nullable PointF[] pointFArr, boolean z2) { + float f3 = this.D; + this.D = f2; + this.n.e("zoom", 20); + b.o.a.n.v.f fVar = this.n; + fVar.b("zoom", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new f(f3, z2, pointFArr))); + } + + @Override // b.o.a.n.i + public void I0(@Nullable b.o.a.q.a aVar, @NonNull b.o.a.t.b bVar, @NonNull PointF pointF) { + b.o.a.n.v.f fVar = this.n; + fVar.b("auto focus", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.BIND, new a(bVar, aVar, pointF))); + } + + @Override // b.o.a.n.i + @NonNull + public Task P() { + b.o.a.b bVar = i.j; + bVar.a(1, "onStartBind:", "Started"); + try { + if (this.o.j() == SurfaceHolder.class) { + this.f1899e0.setPreviewDisplay((SurfaceHolder) this.o.i()); + } else if (this.o.j() == SurfaceTexture.class) { + this.f1899e0.setPreviewTexture((SurfaceTexture) this.o.i()); + } else { + throw new RuntimeException("Unknown CameraPreview output class."); + } + this.r = Q0(this.Q); + this.f1916s = R0(); + bVar.a(1, "onStartBind:", "Returning"); + return b.i.a.f.e.o.f.Y(null); + } catch (IOException e2) { + i.j.a(3, "onStartBind:", "Failed to bind.", e2); + throw new CameraException(e2, 2); + } + } + + @Override // b.o.a.n.i + @NonNull + public Task Q() { + try { + Camera open = Camera.open(this.f1900f0); + this.f1899e0 = open; + if (open != null) { + open.setErrorCallback(this); + b.o.a.b bVar = i.j; + bVar.a(1, "onStartEngine:", "Applying default parameters."); + try { + Camera.Parameters parameters = this.f1899e0.getParameters(); + int i2 = this.f1900f0; + b.o.a.n.t.a aVar = this.L; + b.o.a.n.t.b bVar2 = b.o.a.n.t.b.SENSOR; + b.o.a.n.t.b bVar3 = b.o.a.n.t.b.VIEW; + this.p = new b.o.a.n.u.a(parameters, i2, aVar.b(bVar2, bVar3)); + b1(parameters); + this.f1899e0.setParameters(parameters); + try { + this.f1899e0.setDisplayOrientation(this.L.c(bVar2, bVar3, 1)); + bVar.a(1, "onStartEngine:", "Ended"); + return b.i.a.f.e.o.f.Y(this.p); + } catch (Exception unused) { + i.j.a(3, "onStartEngine:", "Failed to connect. Can't set display orientation, maybe preview already exists?"); + throw new CameraException(1); + } + } catch (Exception e2) { + i.j.a(3, "onStartEngine:", "Failed to connect. Problem with camera params"); + throw new CameraException(e2, 1); + } + } else { + i.j.a(3, "onStartEngine:", "Failed to connect. Camera is null, maybe in use by another app or already released?"); + throw new CameraException(1); + } + } catch (Exception e3) { + i.j.a(3, "onStartEngine:", "Failed to connect. Maybe in use by another app?"); + throw new CameraException(e3, 1); + } + } + + @Override // b.o.a.n.i + @NonNull + public Task R() { + b.o.a.b bVar = i.j; + bVar.a(1, "onStartPreview", "Dispatching onCameraPreviewStreamSizeChanged."); + ((CameraView.b) this.m).h(); + b.o.a.x.b C = C(b.o.a.n.t.b.VIEW); + if (C != null) { + this.o.s(C.j, C.k); + this.o.r(0); + try { + Camera.Parameters parameters = this.f1899e0.getParameters(); + parameters.setPreviewFormat(17); + b.o.a.x.b bVar2 = this.f1916s; + parameters.setPreviewSize(bVar2.j, bVar2.k); + b.o.a.m.i iVar = this.Q; + b.o.a.m.i iVar2 = b.o.a.m.i.PICTURE; + if (iVar == iVar2) { + b.o.a.x.b bVar3 = this.r; + parameters.setPictureSize(bVar3.j, bVar3.k); + } else { + b.o.a.x.b Q0 = Q0(iVar2); + parameters.setPictureSize(Q0.j, Q0.k); + } + try { + this.f1899e0.setParameters(parameters); + this.f1899e0.setPreviewCallbackWithBuffer(null); + this.f1899e0.setPreviewCallbackWithBuffer(this); + l1().e(17, this.f1916s, this.L); + bVar.a(1, "onStartPreview", "Starting preview with startPreview()."); + try { + this.f1899e0.startPreview(); + bVar.a(1, "onStartPreview", "Started preview."); + return b.i.a.f.e.o.f.Y(null); + } catch (Exception e2) { + i.j.a(3, "onStartPreview", "Failed to start preview.", e2); + throw new CameraException(e2, 2); + } + } catch (Exception e3) { + i.j.a(3, "onStartPreview:", "Failed to set params for camera. Maybe incorrect parameter put in params?"); + throw new CameraException(e3, 2); + } + } catch (Exception e4) { + i.j.a(3, "onStartPreview:", "Failed to get params from camera. Maybe low level problem with camera or camera has already released?"); + throw new CameraException(e4, 2); + } + } else { + throw new IllegalStateException("previewStreamSize should not be null at this point."); + } + } + + @Override // b.o.a.n.i + @NonNull + public Task S() { + this.f1916s = null; + this.r = null; + try { + if (this.o.j() == SurfaceHolder.class) { + this.f1899e0.setPreviewDisplay(null); + } else if (this.o.j() == SurfaceTexture.class) { + this.f1899e0.setPreviewTexture(null); + } else { + throw new RuntimeException("Unknown CameraPreview output class."); + } + } catch (IOException e2) { + i.j.a(3, "onStopBind", "Could not release surface", e2); + } + return b.i.a.f.e.o.f.Y(null); + } + + @Override // b.o.a.n.i + @NonNull + public Task T() { + b.o.a.b bVar = i.j; + bVar.a(1, "onStopEngine:", "About to clean up."); + this.n.e("focus reset", 0); + this.n.e("focus end", 0); + if (this.f1899e0 != null) { + try { + bVar.a(1, "onStopEngine:", "Clean up.", "Releasing camera."); + this.f1899e0.release(); + bVar.a(1, "onStopEngine:", "Clean up.", "Released camera."); + } catch (Exception e2) { + i.j.a(2, "onStopEngine:", "Clean up.", "Exception while releasing camera.", e2); + } + this.f1899e0 = null; + this.p = null; + } + this.p = null; + this.f1899e0 = null; + i.j.a(2, "onStopEngine:", "Clean up.", "Returning."); + return b.i.a.f.e.o.f.Y(null); + } + + @Override // b.o.a.n.g + @NonNull + public List T0() { + try { + List supportedPreviewSizes = this.f1899e0.getParameters().getSupportedPreviewSizes(); + ArrayList arrayList = new ArrayList(supportedPreviewSizes.size()); + for (Camera.Size size : supportedPreviewSizes) { + b.o.a.x.b bVar = new b.o.a.x.b(size.width, size.height); + if (!arrayList.contains(bVar)) { + arrayList.add(bVar); + } + } + i.j.a(1, "getPreviewStreamAvailableSizes:", arrayList); + return arrayList; + } catch (Exception e2) { + i.j.a(3, "getPreviewStreamAvailableSizes:", "Failed to compute preview size. Camera params is empty"); + throw new CameraException(e2, 2); + } + } + + @Override // b.o.a.n.i + @NonNull + public Task U() { + b.o.a.b bVar = i.j; + bVar.a(1, "onStopPreview:", "Started."); + this.q = null; + l1().d(); + bVar.a(1, "onStopPreview:", "Releasing preview buffers."); + this.f1899e0.setPreviewCallbackWithBuffer(null); + try { + bVar.a(1, "onStopPreview:", "Stopping preview."); + this.f1899e0.stopPreview(); + bVar.a(1, "onStopPreview:", "Stopped preview."); + } catch (Exception e2) { + i.j.a(3, "stopPreview", "Could not stop preview", e2); + } + return b.i.a.f.e.o.f.Y(null); + } + + @Override // b.o.a.n.g + @NonNull + public b.o.a.p.c V0(int i2) { + return new b.o.a.p.a(i2, this); + } + + @Override // b.o.a.n.g + public void X0() { + i.j.a(1, "RESTART PREVIEW:", "scheduled. State:", this.n.f); + N0(false); + K0(); + } + + @Override // b.o.a.n.g + public void Y0(@NonNull l.a aVar, boolean z2) { + b.o.a.b bVar = i.j; + bVar.a(1, "onTakePicture:", "executing."); + b.o.a.n.t.a aVar2 = this.L; + b.o.a.n.t.b bVar2 = b.o.a.n.t.b.SENSOR; + b.o.a.n.t.b bVar3 = b.o.a.n.t.b.OUTPUT; + aVar.c = aVar2.c(bVar2, bVar3, 2); + aVar.d = w(bVar3); + b.o.a.v.a aVar3 = new b.o.a.v.a(aVar, this, this.f1899e0); + this.q = aVar3; + aVar3.c(); + bVar.a(1, "onTakePicture:", "executed."); + } + + @Override // b.o.a.n.g + public void Z0(@NonNull l.a aVar, @NonNull b.o.a.x.a aVar2, boolean z2) { + b.o.a.b bVar = i.j; + bVar.a(1, "onTakePictureSnapshot:", "executing."); + b.o.a.n.t.b bVar2 = b.o.a.n.t.b.OUTPUT; + aVar.d = F(bVar2); + if (this.o instanceof b.o.a.w.e) { + aVar.c = this.L.c(b.o.a.n.t.b.VIEW, bVar2, 1); + this.q = new b.o.a.v.g(aVar, this, (b.o.a.w.e) this.o, aVar2, this.f1915c0); + } else { + aVar.c = this.L.c(b.o.a.n.t.b.SENSOR, bVar2, 2); + this.q = new b.o.a.v.e(aVar, this, this.f1899e0, aVar2); + } + this.q.c(); + bVar.a(1, "onTakePictureSnapshot:", "executed."); + } + + public final void b1(@NonNull Camera.Parameters parameters) { + parameters.setRecordingHint(this.Q == b.o.a.m.i.VIDEO); + c1(parameters); + e1(parameters, b.o.a.m.f.OFF); + g1(parameters); + j1(parameters, m.AUTO); + f1(parameters, b.o.a.m.h.OFF); + k1(parameters, 0.0f); + d1(parameters, 0.0f); + h1(this.F); + i1(parameters, 0.0f); + } + + @Override // b.o.a.n.i + public boolean c(@NonNull b.o.a.m.e eVar) { + Objects.requireNonNull(this.f1898d0); + int intValue = b.o.a.n.q.a.d.get(eVar).intValue(); + i.j.a(1, "collectCameraInfo", "Facing:", eVar, "Internal:", Integer.valueOf(intValue), "Cameras:", Integer.valueOf(Camera.getNumberOfCameras())); + Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); + int numberOfCameras = Camera.getNumberOfCameras(); + for (int i2 = 0; i2 < numberOfCameras; i2++) { + Camera.getCameraInfo(i2, cameraInfo); + if (cameraInfo.facing == intValue) { + this.L.f(eVar, cameraInfo.orientation); + this.f1900f0 = i2; + return true; + } + } + return false; + } + + public final void c1(@NonNull Camera.Parameters parameters) { + List supportedFocusModes = parameters.getSupportedFocusModes(); + if (this.Q == b.o.a.m.i.VIDEO && supportedFocusModes.contains("continuous-video")) { + parameters.setFocusMode("continuous-video"); + } else if (supportedFocusModes.contains("continuous-picture")) { + parameters.setFocusMode("continuous-picture"); + } else if (supportedFocusModes.contains("infinity")) { + parameters.setFocusMode("infinity"); + } else if (supportedFocusModes.contains("fixed")) { + parameters.setFocusMode("fixed"); + } + } + + @Override // b.o.a.n.i + public void d0(float f2, @NonNull float[] fArr, @Nullable PointF[] pointFArr, boolean z2) { + float f3 = this.E; + this.E = f2; + this.n.e("exposure correction", 20); + b.o.a.n.v.f fVar = this.n; + fVar.b("exposure correction", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new g(f3, z2, fArr, pointFArr))); + } + + public final boolean d1(@NonNull Camera.Parameters parameters, float f2) { + b.o.a.c cVar = this.p; + if (cVar.l) { + float f3 = cVar.n; + float f4 = cVar.m; + float f5 = this.E; + if (f5 < f4) { + f3 = f4; + } else if (f5 <= f3) { + f3 = f5; + } + this.E = f3; + parameters.setExposureCompensation((int) (f3 / parameters.getExposureCompensationStep())); + return true; + } + this.E = f2; + return false; + } + + public final boolean e1(@NonNull Camera.Parameters parameters, @NonNull b.o.a.m.f fVar) { + if (this.p.c(this.w)) { + b.o.a.n.q.a aVar = this.f1898d0; + b.o.a.m.f fVar2 = this.w; + Objects.requireNonNull(aVar); + parameters.setFlashMode(b.o.a.n.q.a.f1921b.get(fVar2)); + return true; + } + this.w = fVar; + return false; + } + + @Override // b.o.a.n.i + public void f0(@NonNull b.o.a.m.f fVar) { + b.o.a.m.f fVar2 = this.w; + this.w = fVar; + b.o.a.n.v.f fVar3 = this.n; + fVar3.b("flash (" + fVar + ")", true, new b.o.a.n.v.h(fVar3, b.o.a.n.v.e.ENGINE, new RunnableC0163b(fVar2))); + } + + public final boolean f1(@NonNull Camera.Parameters parameters, @NonNull b.o.a.m.h hVar) { + if (this.p.c(this.A)) { + b.o.a.n.q.a aVar = this.f1898d0; + b.o.a.m.h hVar2 = this.A; + Objects.requireNonNull(aVar); + parameters.setSceneMode(b.o.a.n.q.a.e.get(hVar2)); + return true; + } + this.A = hVar; + return false; + } + + @Override // b.o.a.n.i + public void g0(int i2) { + this.u = 17; + } + + public final boolean g1(@NonNull Camera.Parameters parameters) { + Location location = this.C; + if (location == null) { + return true; + } + parameters.setGpsLatitude(location.getLatitude()); + parameters.setGpsLongitude(this.C.getLongitude()); + parameters.setGpsAltitude(this.C.getAltitude()); + parameters.setGpsTimestamp(this.C.getTime()); + parameters.setGpsProcessingMethod(this.C.getProvider()); + return true; + } + + @TargetApi(17) + public final boolean h1(boolean z2) { + Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); + Camera.getCameraInfo(this.f1900f0, cameraInfo); + if (cameraInfo.canDisableShutterSound) { + try { + return this.f1899e0.enableShutterSound(this.F); + } catch (RuntimeException unused) { + return false; + } + } else if (this.F) { + return true; + } else { + this.F = z2; + return false; + } + } + + public final boolean i1(@NonNull Camera.Parameters parameters, float f2) { + List supportedPreviewFpsRange = parameters.getSupportedPreviewFpsRange(); + if (!this.J || this.I == 0.0f) { + Collections.sort(supportedPreviewFpsRange, new a(this)); + } else { + Collections.sort(supportedPreviewFpsRange, new c(this)); + } + float f3 = this.I; + if (f3 == 0.0f) { + for (int[] iArr : supportedPreviewFpsRange) { + float f4 = ((float) iArr[0]) / 1000.0f; + float f5 = ((float) iArr[1]) / 1000.0f; + if ((f4 <= 30.0f && 30.0f <= f5) || (f4 <= 24.0f && 24.0f <= f5)) { + parameters.setPreviewFpsRange(iArr[0], iArr[1]); + return true; + } + } + } else { + float min = Math.min(f3, this.p.q); + this.I = min; + this.I = Math.max(min, this.p.p); + for (int[] iArr2 : supportedPreviewFpsRange) { + float f6 = ((float) iArr2[1]) / 1000.0f; + float round = (float) Math.round(this.I); + if (((float) iArr2[0]) / 1000.0f <= round && round <= f6) { + parameters.setPreviewFpsRange(iArr2[0], iArr2[1]); + return true; + } + } + } + this.I = f2; + return false; + } + + public final boolean j1(@NonNull Camera.Parameters parameters, @NonNull m mVar) { + if (this.p.c(this.f1917x)) { + b.o.a.n.q.a aVar = this.f1898d0; + m mVar2 = this.f1917x; + Objects.requireNonNull(aVar); + parameters.setWhiteBalance(b.o.a.n.q.a.c.get(mVar2)); + parameters.remove("auto-whitebalance-lock"); + return true; + } + this.f1917x = mVar; + return false; + } + + @Override // b.o.a.n.i + public void k0(boolean z2) { + this.v = z2; + } + + public final boolean k1(@NonNull Camera.Parameters parameters, float f2) { + if (this.p.k) { + parameters.setZoom((int) (this.D * ((float) parameters.getMaxZoom()))); + this.f1899e0.setParameters(parameters); + return true; + } + this.D = f2; + return false; + } + + @Override // b.o.a.n.i + public void l0(@NonNull b.o.a.m.h hVar) { + b.o.a.m.h hVar2 = this.A; + this.A = hVar; + b.o.a.n.v.f fVar = this.n; + fVar.b("hdr (" + hVar + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new e(hVar2))); + } + + @NonNull + public b.o.a.p.a l1() { + return (b.o.a.p.a) S0(); + } + + @Override // b.o.a.n.i + public void m0(@Nullable Location location) { + Location location2 = this.C; + this.C = location; + b.o.a.n.v.f fVar = this.n; + fVar.b(ModelAuditLogEntry.CHANGE_KEY_LOCATION, true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new c(location2))); + } + + public void m1(@NonNull byte[] bArr) { + b.o.a.n.v.e eVar = this.n.f; + b.o.a.n.v.e eVar2 = b.o.a.n.v.e.ENGINE; + if (eVar.f(eVar2) && this.n.g.f(eVar2)) { + this.f1899e0.addCallbackBuffer(bArr); + } + } + + @Override // android.hardware.Camera.ErrorCallback + public void onError(int i2, Camera camera) { + int i3 = 0; + RuntimeException runtimeException = new RuntimeException(i.j.a(3, "Internal Camera1 error.", Integer.valueOf(i2))); + if (i2 == 1 || i2 == 2 || i2 == 100) { + i3 = 3; + } + throw new CameraException(runtimeException, i3); + } + + @Override // android.hardware.Camera.PreviewCallback + public void onPreviewFrame(byte[] bArr, Camera camera) { + b.o.a.p.b a2; + if (bArr != null && (a2 = l1().a(bArr, System.currentTimeMillis())) != null) { + ((CameraView.b) this.m).b(a2); + } + } + + @Override // b.o.a.n.i + public void p0(@NonNull j jVar) { + if (jVar == j.JPEG) { + this.B = jVar; + return; + } + throw new UnsupportedOperationException("Unsupported picture format: " + jVar); + } + + @Override // b.o.a.n.i + public void t0(boolean z2) { + boolean z3 = this.F; + this.F = z2; + b.o.a.n.v.f fVar = this.n; + fVar.b("play sounds (" + z2 + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new h(z3))); + } + + @Override // b.o.a.n.i + public void v0(float f2) { + this.I = f2; + b.o.a.n.v.f fVar = this.n; + fVar.b("preview fps (" + f2 + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new i(f2))); + } +} diff --git a/app/src/main/java/b/o/a/n/c.java b/app/src/main/java/b/o/a/n/c.java new file mode 100644 index 0000000000..9beec70264 --- /dev/null +++ b/app/src/main/java/b/o/a/n/c.java @@ -0,0 +1,16 @@ +package b.o.a.n; + +import java.util.Comparator; +/* compiled from: Camera1Engine */ +public class c implements Comparator { + public c(b bVar) { + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(int[] iArr, int[] iArr2) { + int[] iArr3 = iArr; + int[] iArr4 = iArr2; + return (iArr3[1] - iArr3[0]) - (iArr4[1] - iArr4[0]); + } +} diff --git a/app/src/main/java/b/o/a/n/d.java b/app/src/main/java/b/o/a/n/d.java new file mode 100644 index 0000000000..81259a7fe2 --- /dev/null +++ b/app/src/main/java/b/o/a/n/d.java @@ -0,0 +1,1362 @@ +package b.o.a.n; + +import android.annotation.SuppressLint; +import android.graphics.PointF; +import android.graphics.Rect; +import android.graphics.SurfaceTexture; +import android.hardware.camera2.CameraAccessException; +import android.hardware.camera2.CameraCaptureSession; +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CameraDevice; +import android.hardware.camera2.CameraManager; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import android.hardware.camera2.params.StreamConfigurationMap; +import android.location.Location; +import android.media.Image; +import android.media.ImageReader; +import android.os.Build; +import android.os.Handler; +import android.util.Pair; +import android.util.Range; +import android.util.Rational; +import android.util.Size; +import android.view.Surface; +import android.view.SurfaceHolder; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import androidx.annotation.VisibleForTesting; +import b.o.a.l; +import b.o.a.n.i; +import com.discord.models.domain.ModelAuditLogEntry; +import com.discord.utilities.analytics.ChatInputComponentTypes; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import com.otaliastudios.cameraview.CameraException; +import com.otaliastudios.cameraview.CameraView; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.ExecutionException; +/* compiled from: Camera2Engine */ +@RequiresApi(21) +public class d extends g implements ImageReader.OnImageAvailableListener, b.o.a.n.o.c { + + /* renamed from: d0 reason: collision with root package name */ + public final CameraManager f1901d0; + + /* renamed from: e0 reason: collision with root package name */ + public String f1902e0; + + /* renamed from: f0 reason: collision with root package name */ + public CameraDevice f1903f0; + + /* renamed from: g0 reason: collision with root package name */ + public CameraCharacteristics f1904g0; + + /* renamed from: h0 reason: collision with root package name */ + public CameraCaptureSession f1905h0; + + /* renamed from: i0 reason: collision with root package name */ + public CaptureRequest.Builder f1906i0; + + /* renamed from: j0 reason: collision with root package name */ + public TotalCaptureResult f1907j0; + public final b.o.a.n.q.b k0; + public ImageReader l0; + public Surface m0; + public Surface n0; + public ImageReader o0; + public final List p0; + public b.o.a.n.r.g q0; + public final CameraCaptureSession.CaptureCallback r0; + + /* compiled from: Camera2Engine */ + public class a implements Runnable { + public final /* synthetic */ b.o.a.m.f j; + public final /* synthetic */ b.o.a.m.f k; + + public a(b.o.a.m.f fVar, b.o.a.m.f fVar2) { + this.j = fVar; + this.k = fVar2; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + boolean h1 = dVar.h1(dVar.f1906i0, this.j); + d dVar2 = d.this; + if (dVar2.n.f == b.o.a.n.v.e.PREVIEW) { + dVar2.w = b.o.a.m.f.OFF; + dVar2.h1(dVar2.f1906i0, this.j); + try { + d dVar3 = d.this; + dVar3.f1905h0.capture(dVar3.f1906i0.build(), null, null); + d dVar4 = d.this; + dVar4.w = this.k; + dVar4.h1(dVar4.f1906i0, this.j); + d.this.k1(); + } catch (CameraAccessException e) { + throw d.this.o1(e); + } + } else if (h1) { + dVar2.k1(); + } + } + } + + /* compiled from: Camera2Engine */ + public class b implements Runnable { + public final /* synthetic */ Location j; + + public b(Location location) { + this.j = location; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + CaptureRequest.Builder builder = dVar.f1906i0; + Location location = dVar.C; + if (location != null) { + builder.set(CaptureRequest.JPEG_GPS_LOCATION, location); + } + d.this.k1(); + } + } + + /* compiled from: Camera2Engine */ + public class c implements Runnable { + public final /* synthetic */ b.o.a.m.m j; + + public c(b.o.a.m.m mVar) { + this.j = mVar; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + if (dVar.m1(dVar.f1906i0, this.j)) { + d.this.k1(); + } + } + } + + /* compiled from: Camera2Engine */ + /* renamed from: b.o.a.n.d$d reason: collision with other inner class name */ + public class RunnableC0164d implements Runnable { + public final /* synthetic */ b.o.a.m.h j; + + public RunnableC0164d(b.o.a.m.h hVar) { + this.j = hVar; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + if (dVar.i1(dVar.f1906i0, this.j)) { + d.this.k1(); + } + } + } + + /* compiled from: Camera2Engine */ + public class e implements Runnable { + public final /* synthetic */ float j; + public final /* synthetic */ boolean k; + public final /* synthetic */ float l; + public final /* synthetic */ PointF[] m; + + public e(float f, boolean z2, float f2, PointF[] pointFArr) { + this.j = f; + this.k = z2; + this.l = f2; + this.m = pointFArr; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + if (dVar.n1(dVar.f1906i0, this.j)) { + d.this.k1(); + if (this.k) { + ((CameraView.b) d.this.m).f(this.l, this.m); + } + } + } + } + + /* compiled from: Camera2Engine */ + public class f implements Runnable { + public final /* synthetic */ float j; + public final /* synthetic */ boolean k; + public final /* synthetic */ float l; + public final /* synthetic */ float[] m; + public final /* synthetic */ PointF[] n; + + public f(float f, boolean z2, float f2, float[] fArr, PointF[] pointFArr) { + this.j = f; + this.k = z2; + this.l = f2; + this.m = fArr; + this.n = pointFArr; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + if (dVar.g1(dVar.f1906i0, this.j)) { + d.this.k1(); + if (this.k) { + ((CameraView.b) d.this.m).c(this.l, this.m, this.n); + } + } + } + } + + /* compiled from: Camera2Engine */ + public class g implements Runnable { + public final /* synthetic */ float j; + + public g(float f) { + this.j = f; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + if (dVar.j1(dVar.f1906i0, this.j)) { + d.this.k1(); + } + } + } + + /* compiled from: Camera2Engine */ + public class h implements Runnable { + public h() { + } + + @Override // java.lang.Runnable + public void run() { + d.this.X(); + } + } + + /* compiled from: Camera2Engine */ + public class i extends CameraCaptureSession.CaptureCallback { + public i() { + } + + @Override // android.hardware.camera2.CameraCaptureSession.CaptureCallback + public void onCaptureCompleted(@NonNull CameraCaptureSession cameraCaptureSession, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + d dVar = d.this; + dVar.f1907j0 = totalCaptureResult; + for (b.o.a.n.o.a aVar : dVar.p0) { + aVar.b(d.this, captureRequest, totalCaptureResult); + } + } + + @Override // android.hardware.camera2.CameraCaptureSession.CaptureCallback + public void onCaptureProgressed(@NonNull CameraCaptureSession cameraCaptureSession, @NonNull CaptureRequest captureRequest, @NonNull CaptureResult captureResult) { + for (b.o.a.n.o.a aVar : d.this.p0) { + aVar.d(d.this, captureRequest, captureResult); + } + } + + @Override // android.hardware.camera2.CameraCaptureSession.CaptureCallback + public void onCaptureStarted(@NonNull CameraCaptureSession cameraCaptureSession, @NonNull CaptureRequest captureRequest, long j, long j2) { + for (b.o.a.n.o.a aVar : d.this.p0) { + aVar.c(d.this, captureRequest); + } + } + } + + /* compiled from: Camera2Engine */ + public class j implements Runnable { + public final /* synthetic */ boolean j; + + public j(boolean z2) { + this.j = z2; + } + + @Override // java.lang.Runnable + public void run() { + b.o.a.n.v.e eVar = d.this.n.f; + b.o.a.n.v.e eVar2 = b.o.a.n.v.e.BIND; + if (!eVar.f(eVar2) || !d.this.O()) { + d dVar = d.this; + dVar.v = this.j; + if (dVar.n.f.f(eVar2)) { + d.this.Y(); + return; + } + return; + } + d.this.k0(this.j); + } + } + + /* compiled from: Camera2Engine */ + public class k implements Runnable { + public final /* synthetic */ int j; + + public k(int i) { + this.j = i; + } + + @Override // java.lang.Runnable + public void run() { + b.o.a.n.v.e eVar = d.this.n.f; + b.o.a.n.v.e eVar2 = b.o.a.n.v.e.BIND; + if (!eVar.f(eVar2) || !d.this.O()) { + d dVar = d.this; + int i = this.j; + if (i <= 0) { + i = 35; + } + dVar.u = i; + if (dVar.n.f.f(eVar2)) { + d.this.Y(); + return; + } + return; + } + d.this.g0(this.j); + } + } + + /* compiled from: Camera2Engine */ + public class l implements Runnable { + public final /* synthetic */ b.o.a.q.a j; + public final /* synthetic */ PointF k; + public final /* synthetic */ b.o.a.t.b l; + + /* compiled from: Camera2Engine */ + public class a extends b.o.a.n.o.f { + public final /* synthetic */ b.o.a.n.r.g a; + + /* compiled from: Camera2Engine */ + /* renamed from: b.o.a.n.d$l$a$a reason: collision with other inner class name */ + public class RunnableC0165a implements Runnable { + public RunnableC0165a() { + } + + @Override // java.lang.Runnable + public void run() { + d.b1(d.this); + } + } + + public a(b.o.a.n.r.g gVar) { + this.a = gVar; + } + + @Override // b.o.a.n.o.f + public void b(@NonNull b.o.a.n.o.a aVar) { + boolean z2; + l lVar = l.this; + i.g gVar = d.this.m; + b.o.a.q.a aVar2 = lVar.j; + Iterator it = this.a.f.iterator(); + while (true) { + z2 = true; + if (it.hasNext()) { + if (!it.next().g) { + b.o.a.n.r.g.e.a(1, "isSuccessful:", "returning false."); + z2 = false; + break; + } + } else { + b.o.a.n.r.g.e.a(1, "isSuccessful:", "returning true."); + break; + } + } + ((CameraView.b) gVar).d(aVar2, z2, l.this.k); + d.this.n.e("reset metering", 0); + if (d.this.a1()) { + d dVar = d.this; + b.o.a.n.v.f fVar = dVar.n; + fVar.c("reset metering", true, dVar.W, new b.o.a.n.v.i(fVar, b.o.a.n.v.e.PREVIEW, new RunnableC0165a())); + } + } + } + + public l(b.o.a.q.a aVar, PointF pointF, b.o.a.t.b bVar) { + this.j = aVar; + this.k = pointF; + this.l = bVar; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + if (dVar.p.o) { + ((CameraView.b) dVar.m).e(this.j, this.k); + b.o.a.n.r.g p1 = d.this.p1(this.l); + b.o.a.n.o.i iVar = new b.o.a.n.o.i(5000, p1); + iVar.e(d.this); + iVar.f(new a(p1)); + } + } + } + + /* compiled from: Camera2Engine */ + public class m extends CameraDevice.StateCallback { + public final /* synthetic */ TaskCompletionSource a; + + public m(TaskCompletionSource taskCompletionSource) { + this.a = taskCompletionSource; + } + + @Override // android.hardware.camera2.CameraDevice.StateCallback + public void onDisconnected(@NonNull CameraDevice cameraDevice) { + CameraException cameraException = new CameraException(3); + if (!this.a.a.o()) { + this.a.a(cameraException); + } else { + i.j.a(1, "CameraDevice.StateCallback reported disconnection."); + throw cameraException; + } + } + + @Override // android.hardware.camera2.CameraDevice.StateCallback + public void onError(@NonNull CameraDevice cameraDevice, int i) { + int i2 = 1; + if (!this.a.a.o()) { + TaskCompletionSource taskCompletionSource = this.a; + Objects.requireNonNull(d.this); + if (!(i == 1 || i == 2 || i == 3 || i == 4 || i == 5)) { + i2 = 0; + } + taskCompletionSource.a(new CameraException(i2)); + return; + } + i.j.a(3, "CameraDevice.StateCallback reported an error:", Integer.valueOf(i)); + throw new CameraException(3); + } + + @Override // android.hardware.camera2.CameraDevice.StateCallback + public void onOpened(@NonNull CameraDevice cameraDevice) { + int i; + d.this.f1903f0 = cameraDevice; + try { + i.j.a(1, "onStartEngine:", "Opened camera device."); + d dVar = d.this; + dVar.f1904g0 = dVar.f1901d0.getCameraCharacteristics(dVar.f1902e0); + boolean b2 = d.this.L.b(b.o.a.n.t.b.SENSOR, b.o.a.n.t.b.VIEW); + int ordinal = d.this.B.ordinal(); + if (ordinal == 0) { + i = 256; + } else if (ordinal == 1) { + i = 32; + } else { + throw new IllegalArgumentException("Unknown format:" + d.this.B); + } + d dVar2 = d.this; + dVar2.p = new b.o.a.n.u.b(dVar2.f1901d0, dVar2.f1902e0, b2, i); + d dVar3 = d.this; + Objects.requireNonNull(dVar3); + dVar3.q1(1); + this.a.b(d.this.p); + } catch (CameraAccessException e) { + this.a.a(d.this.o1(e)); + } + } + } + + /* compiled from: Camera2Engine */ + public class n implements Callable { + public final /* synthetic */ Object j; + + public n(Object obj) { + this.j = obj; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Void call() throws Exception { + b.o.a.x.b bVar = d.this.f1916s; + ((SurfaceHolder) this.j).setFixedSize(bVar.j, bVar.k); + return null; + } + } + + /* compiled from: Camera2Engine */ + public class o extends CameraCaptureSession.StateCallback { + public final /* synthetic */ TaskCompletionSource a; + + public o(TaskCompletionSource taskCompletionSource) { + this.a = taskCompletionSource; + } + + @Override // android.hardware.camera2.CameraCaptureSession.StateCallback + public void onConfigureFailed(@NonNull CameraCaptureSession cameraCaptureSession) { + throw new RuntimeException(i.j.a(3, "onConfigureFailed! Session", cameraCaptureSession)); + } + + @Override // android.hardware.camera2.CameraCaptureSession.StateCallback + public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) { + d.this.f1905h0 = cameraCaptureSession; + i.j.a(1, "onStartBind:", "Completed"); + this.a.b(null); + } + + @Override // android.hardware.camera2.CameraCaptureSession.StateCallback + public void onReady(@NonNull CameraCaptureSession cameraCaptureSession) { + super.onReady(cameraCaptureSession); + i.j.a(1, "CameraCaptureSession.StateCallback reported onReady."); + } + } + + /* compiled from: Camera2Engine */ + public class p extends b.o.a.n.o.e { + public final /* synthetic */ TaskCompletionSource e; + + public p(d dVar, TaskCompletionSource taskCompletionSource) { + this.e = taskCompletionSource; + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull b.o.a.n.o.c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + l(Integer.MAX_VALUE); + this.e.b(null); + } + } + + /* compiled from: Camera2Engine */ + public class q extends b.o.a.n.o.f { + public final /* synthetic */ l.a a; + + public q(l.a aVar) { + this.a = aVar; + } + + @Override // b.o.a.n.o.f + public void b(@NonNull b.o.a.n.o.a aVar) { + d dVar = d.this; + dVar.H = false; + dVar.P0(this.a); + d.this.H = true; + } + } + + /* compiled from: Camera2Engine */ + public class r extends b.o.a.n.o.f { + public final /* synthetic */ l.a a; + + public r(l.a aVar) { + this.a = aVar; + } + + @Override // b.o.a.n.o.f + public void b(@NonNull b.o.a.n.o.a aVar) { + d dVar = d.this; + dVar.G = false; + dVar.O0(this.a); + d.this.G = true; + } + } + + /* compiled from: Camera2Engine */ + public class s implements Runnable { + public s() { + } + + @Override // java.lang.Runnable + public void run() { + d.b1(d.this); + } + } + + public d(i.g gVar) { + super(gVar); + if (b.o.a.n.q.b.a == null) { + b.o.a.n.q.b.a = new b.o.a.n.q.b(); + } + this.k0 = b.o.a.n.q.b.a; + this.p0 = new CopyOnWriteArrayList(); + this.r0 = new i(); + this.f1901d0 = (CameraManager) ((CameraView.b) this.m).g().getSystemService(ChatInputComponentTypes.CAMERA); + new b.o.a.n.o.g().e(this); + } + + public static void b1(d dVar) { + Objects.requireNonNull(dVar); + new b.o.a.n.o.h(Arrays.asList(new f(dVar), new b.o.a.n.r.h())).e(dVar); + } + + @Override // b.o.a.n.i + public void F0(@NonNull b.o.a.m.m mVar) { + b.o.a.m.m mVar2 = this.f1917x; + this.f1917x = mVar; + b.o.a.n.v.f fVar = this.n; + fVar.b("white balance (" + mVar + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new c(mVar2))); + } + + @Override // b.o.a.n.i + public void G0(float f2, @Nullable PointF[] pointFArr, boolean z2) { + float f3 = this.D; + this.D = f2; + this.n.e("zoom", 20); + b.o.a.n.v.f fVar = this.n; + fVar.b("zoom", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new e(f3, z2, f2, pointFArr))); + } + + @Override // b.o.a.n.i + public void I0(@Nullable b.o.a.q.a aVar, @NonNull b.o.a.t.b bVar, @NonNull PointF pointF) { + b.o.a.n.v.f fVar = this.n; + fVar.b("autofocus (" + aVar + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.PREVIEW, new l(aVar, pointF, bVar))); + } + + @Override // b.o.a.n.i + @NonNull + public Task P() { + Handler handler; + int i2; + b.o.a.b bVar = i.j; + bVar.a(1, "onStartBind:", "Started"); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + this.r = Q0(this.Q); + this.f1916s = R0(); + ArrayList arrayList = new ArrayList(); + Class j2 = this.o.j(); + Object i3 = this.o.i(); + if (j2 == SurfaceHolder.class) { + try { + bVar.a(1, "onStartBind:", "Waiting on UI thread..."); + b.i.a.f.e.o.f.i(b.i.a.f.e.o.f.n(b.i.a.f.n.g.a, new n(i3))); + this.n0 = ((SurfaceHolder) i3).getSurface(); + } catch (InterruptedException | ExecutionException e2) { + throw new CameraException(e2, 1); + } + } else if (j2 == SurfaceTexture.class) { + SurfaceTexture surfaceTexture = (SurfaceTexture) i3; + b.o.a.x.b bVar2 = this.f1916s; + surfaceTexture.setDefaultBufferSize(bVar2.j, bVar2.k); + this.n0 = new Surface(surfaceTexture); + } else { + throw new RuntimeException("Unknown CameraPreview output class."); + } + arrayList.add(this.n0); + if (this.Q == b.o.a.m.i.PICTURE) { + int ordinal = this.B.ordinal(); + if (ordinal == 0) { + i2 = 256; + } else if (ordinal == 1) { + i2 = 32; + } else { + StringBuilder R = b.d.b.a.a.R("Unknown format:"); + R.append(this.B); + throw new IllegalArgumentException(R.toString()); + } + b.o.a.x.b bVar3 = this.r; + ImageReader newInstance = ImageReader.newInstance(bVar3.j, bVar3.k, i2, 2); + this.o0 = newInstance; + arrayList.add(newInstance.getSurface()); + } + if (this.v) { + List s1 = s1(); + boolean b2 = this.L.b(b.o.a.n.t.b.SENSOR, b.o.a.n.t.b.VIEW); + ArrayList arrayList2 = (ArrayList) s1; + ArrayList arrayList3 = new ArrayList(arrayList2.size()); + Iterator it = arrayList2.iterator(); + while (it.hasNext()) { + b.o.a.x.b bVar4 = (b.o.a.x.b) it.next(); + if (b2) { + bVar4 = bVar4.f(); + } + arrayList3.add(bVar4); + } + b.o.a.x.b bVar5 = this.f1916s; + b.o.a.x.a f2 = b.o.a.x.a.f(bVar5.j, bVar5.k); + if (b2) { + f2 = b.o.a.x.a.f(f2.l, f2.k); + } + int i4 = this.Z; + int i5 = this.f1913a0; + if (i4 <= 0 || i4 == Integer.MAX_VALUE) { + i4 = 640; + } + if (i5 <= 0 || i5 == Integer.MAX_VALUE) { + i5 = 640; + } + b.o.a.x.b bVar6 = new b.o.a.x.b(i4, i5); + b.o.a.b bVar7 = i.j; + bVar7.a(1, "computeFrameProcessingSize:", "targetRatio:", f2, "targetMaxSize:", bVar6); + b.o.a.x.c u1 = b.i.a.f.e.o.f.u1(new b.o.a.x.d(f2.i(), 0.0f)); + b.o.a.x.c f3 = b.i.a.f.e.o.f.f(b.i.a.f.e.o.f.I0(i5), b.i.a.f.e.o.f.J0(i4), new b.o.a.x.e()); + b.o.a.x.b bVar8 = ((b.o.a.x.l) b.i.a.f.e.o.f.O0(b.i.a.f.e.o.f.f(u1, f3), f3, new b.o.a.x.f())).a(arrayList3).get(0); + if (arrayList3.contains(bVar8)) { + if (b2) { + bVar8 = bVar8.f(); + } + bVar7.a(1, "computeFrameProcessingSize:", "result:", bVar8, "flip:", Boolean.valueOf(b2)); + this.t = bVar8; + ImageReader newInstance2 = ImageReader.newInstance(bVar8.j, bVar8.k, this.u, this.f1914b0 + 1); + this.l0 = newInstance2; + handler = null; + newInstance2.setOnImageAvailableListener(this, null); + Surface surface = this.l0.getSurface(); + this.m0 = surface; + arrayList.add(surface); + } else { + throw new RuntimeException("SizeSelectors must not return Sizes other than those in the input list."); + } + } else { + handler = null; + this.l0 = null; + this.t = null; + this.m0 = null; + } + try { + this.f1903f0.createCaptureSession(arrayList, new o(taskCompletionSource), handler); + return taskCompletionSource.a; + } catch (CameraAccessException e3) { + throw o1(e3); + } + } + + @Override // b.o.a.n.i + @NonNull + @SuppressLint({"MissingPermission"}) + public Task Q() { + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + try { + this.f1901d0.openCamera(this.f1902e0, new m(taskCompletionSource), (Handler) null); + return taskCompletionSource.a; + } catch (CameraAccessException e2) { + throw o1(e2); + } + } + + @Override // b.o.a.n.i + @NonNull + public Task R() { + b.o.a.b bVar = i.j; + bVar.a(1, "onStartPreview:", "Dispatching onCameraPreviewStreamSizeChanged."); + ((CameraView.b) this.m).h(); + b.o.a.n.t.b bVar2 = b.o.a.n.t.b.VIEW; + b.o.a.x.b C = C(bVar2); + if (C != null) { + this.o.s(C.j, C.k); + this.o.r(this.L.c(b.o.a.n.t.b.BASE, bVar2, 1)); + if (this.v) { + S0().e(this.u, this.t, this.L); + } + bVar.a(1, "onStartPreview:", "Starting preview."); + c1(new Surface[0]); + l1(false, 2); + bVar.a(1, "onStartPreview:", "Started preview."); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + new p(this, taskCompletionSource).e(this); + return taskCompletionSource.a; + } + throw new IllegalStateException("previewStreamSize should not be null at this point."); + } + + @Override // b.o.a.n.i + @NonNull + public Task S() { + b.o.a.b bVar = i.j; + bVar.a(1, "onStopBind:", "About to clean up."); + this.m0 = null; + this.n0 = null; + this.f1916s = null; + this.r = null; + this.t = null; + ImageReader imageReader = this.l0; + if (imageReader != null) { + imageReader.close(); + this.l0 = null; + } + ImageReader imageReader2 = this.o0; + if (imageReader2 != null) { + imageReader2.close(); + this.o0 = null; + } + this.f1905h0.close(); + this.f1905h0 = null; + bVar.a(1, "onStopBind:", "Returning."); + return b.i.a.f.e.o.f.Y(null); + } + + @Override // b.o.a.n.i + @NonNull + public Task T() { + try { + b.o.a.b bVar = i.j; + bVar.a(1, "onStopEngine:", "Clean up.", "Releasing camera."); + this.f1903f0.close(); + bVar.a(1, "onStopEngine:", "Clean up.", "Released camera."); + } catch (Exception e2) { + i.j.a(2, "onStopEngine:", "Clean up.", "Exception while releasing camera.", e2); + } + this.f1903f0 = null; + i.j.a(1, "onStopEngine:", "Aborting actions."); + for (b.o.a.n.o.a aVar : this.p0) { + aVar.a(this); + } + this.f1904g0 = null; + this.p = null; + this.f1906i0 = null; + i.j.a(2, "onStopEngine:", "Returning."); + return b.i.a.f.e.o.f.Y(null); + } + + @Override // b.o.a.n.g + @NonNull + public List T0() { + try { + StreamConfigurationMap streamConfigurationMap = (StreamConfigurationMap) this.f1901d0.getCameraCharacteristics(this.f1902e0).get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); + if (streamConfigurationMap != null) { + Size[] outputSizes = streamConfigurationMap.getOutputSizes(this.o.j()); + ArrayList arrayList = new ArrayList(outputSizes.length); + for (Size size : outputSizes) { + b.o.a.x.b bVar = new b.o.a.x.b(size.getWidth(), size.getHeight()); + if (!arrayList.contains(bVar)) { + arrayList.add(bVar); + } + } + return arrayList; + } + throw new RuntimeException("StreamConfigurationMap is null. Should not happen."); + } catch (CameraAccessException e2) { + throw o1(e2); + } + } + + @Override // b.o.a.n.i + @NonNull + public Task U() { + b.o.a.b bVar = i.j; + bVar.a(1, "onStopPreview:", "Started."); + this.q = null; + if (this.v) { + S0().d(); + } + this.f1906i0.removeTarget(this.n0); + Surface surface = this.m0; + if (surface != null) { + this.f1906i0.removeTarget(surface); + } + this.f1907j0 = null; + bVar.a(1, "onStopPreview:", "Returning."); + return b.i.a.f.e.o.f.Y(null); + } + + @Override // b.o.a.n.g + @NonNull + public b.o.a.p.c V0(int i2) { + return new b.o.a.p.e(i2); + } + + @Override // b.o.a.n.g + public void X0() { + i.j.a(1, "onPreviewStreamSizeChanged:", "Calling restartBind()."); + Y(); + } + + @Override // b.o.a.n.g + public void Y0(@NonNull l.a aVar, boolean z2) { + if (z2) { + i.j.a(1, "onTakePicture:", "doMetering is true. Delaying."); + b.o.a.n.o.i iVar = new b.o.a.n.o.i(2500, p1(null)); + iVar.f(new r(aVar)); + iVar.e(this); + return; + } + i.j.a(1, "onTakePicture:", "doMetering is false. Performing."); + b.o.a.n.t.a aVar2 = this.L; + b.o.a.n.t.b bVar = b.o.a.n.t.b.SENSOR; + b.o.a.n.t.b bVar2 = b.o.a.n.t.b.OUTPUT; + aVar.c = aVar2.c(bVar, bVar2, 2); + aVar.d = w(bVar2); + try { + CaptureRequest.Builder createCaptureRequest = this.f1903f0.createCaptureRequest(2); + d1(createCaptureRequest, this.f1906i0); + b.o.a.v.b bVar3 = new b.o.a.v.b(aVar, this, createCaptureRequest, this.o0); + this.q = bVar3; + bVar3.c(); + } catch (CameraAccessException e2) { + throw o1(e2); + } + } + + @Override // b.o.a.n.g + public void Z0(@NonNull l.a aVar, @NonNull b.o.a.x.a aVar2, boolean z2) { + if (z2) { + i.j.a(1, "onTakePictureSnapshot:", "doMetering is true. Delaying."); + b.o.a.n.o.i iVar = new b.o.a.n.o.i(2500, p1(null)); + iVar.f(new q(aVar)); + iVar.e(this); + return; + } + i.j.a(1, "onTakePictureSnapshot:", "doMetering is false. Performing."); + if (this.o instanceof b.o.a.w.e) { + b.o.a.n.t.b bVar = b.o.a.n.t.b.OUTPUT; + aVar.d = F(bVar); + aVar.c = this.L.c(b.o.a.n.t.b.VIEW, bVar, 1); + b.o.a.v.f fVar = new b.o.a.v.f(aVar, this, (b.o.a.w.e) this.o, aVar2); + this.q = fVar; + fVar.c(); + return; + } + throw new RuntimeException("takePictureSnapshot with Camera2 is only supported with Preview.GL_SURFACE"); + } + + @Override // b.o.a.n.g, b.o.a.v.d.a + public void a(@Nullable l.a aVar, @Nullable Exception exc) { + boolean z2 = this.q instanceof b.o.a.v.b; + super.a(aVar, exc); + if ((z2 && this.G) || (!z2 && this.H)) { + b.o.a.n.v.f fVar = this.n; + fVar.b("reset metering after picture", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.PREVIEW, new s())); + } + } + + @Override // b.o.a.n.i + public final boolean c(@NonNull b.o.a.m.e eVar) { + Objects.requireNonNull(this.k0); + int intValue = b.o.a.n.q.b.f1922b.get(eVar).intValue(); + try { + String[] cameraIdList = this.f1901d0.getCameraIdList(); + i.j.a(1, "collectCameraInfo", "Facing:", eVar, "Internal:", Integer.valueOf(intValue), "Cameras:", Integer.valueOf(cameraIdList.length)); + for (String str : cameraIdList) { + try { + CameraCharacteristics cameraCharacteristics = this.f1901d0.getCameraCharacteristics(str); + if (intValue == ((Integer) u1(cameraCharacteristics, CameraCharacteristics.LENS_FACING, -99)).intValue()) { + this.f1902e0 = str; + this.L.f(eVar, ((Integer) u1(cameraCharacteristics, CameraCharacteristics.SENSOR_ORIENTATION, 0)).intValue()); + return true; + } + } catch (CameraAccessException unused) { + } + } + return false; + } catch (CameraAccessException e2) { + throw o1(e2); + } + } + + public final void c1(@NonNull Surface... surfaceArr) { + this.f1906i0.addTarget(this.n0); + Surface surface = this.m0; + if (surface != null) { + this.f1906i0.addTarget(surface); + } + for (Surface surface2 : surfaceArr) { + if (surface2 != null) { + this.f1906i0.addTarget(surface2); + } else { + throw new IllegalArgumentException("Should not add a null surface."); + } + } + } + + @Override // b.o.a.n.i + public void d0(float f2, @NonNull float[] fArr, @Nullable PointF[] pointFArr, boolean z2) { + float f3 = this.E; + this.E = f2; + this.n.e("exposure correction", 20); + b.o.a.n.v.f fVar = this.n; + fVar.b("exposure correction", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new f(f3, z2, f2, fArr, pointFArr))); + } + + public final void d1(@NonNull CaptureRequest.Builder builder, @Nullable CaptureRequest.Builder builder2) { + i.j.a(1, "applyAllParameters:", "called for tag", builder.build().getTag()); + builder.set(CaptureRequest.CONTROL_MODE, 1); + f1(builder); + h1(builder, b.o.a.m.f.OFF); + Location location = this.C; + if (location != null) { + builder.set(CaptureRequest.JPEG_GPS_LOCATION, location); + } + m1(builder, b.o.a.m.m.AUTO); + i1(builder, b.o.a.m.h.OFF); + n1(builder, 0.0f); + g1(builder, 0.0f); + j1(builder, 0.0f); + if (builder2 != null) { + CaptureRequest.Key key = CaptureRequest.CONTROL_AF_REGIONS; + builder.set(key, builder2.get(key)); + CaptureRequest.Key key2 = CaptureRequest.CONTROL_AE_REGIONS; + builder.set(key2, builder2.get(key2)); + CaptureRequest.Key key3 = CaptureRequest.CONTROL_AWB_REGIONS; + builder.set(key3, builder2.get(key3)); + CaptureRequest.Key key4 = CaptureRequest.CONTROL_AF_MODE; + builder.set(key4, builder2.get(key4)); + } + } + + public void e1(@NonNull b.o.a.n.o.a aVar, @NonNull CaptureRequest.Builder builder) throws CameraAccessException { + if (this.n.f == b.o.a.n.v.e.PREVIEW && !O()) { + this.f1905h0.capture(builder.build(), this.r0, null); + } + } + + @Override // b.o.a.n.i + public void f0(@NonNull b.o.a.m.f fVar) { + b.o.a.m.f fVar2 = this.w; + this.w = fVar; + b.o.a.n.v.f fVar3 = this.n; + fVar3.b("flash (" + fVar + ")", true, new b.o.a.n.v.h(fVar3, b.o.a.n.v.e.ENGINE, new a(fVar2, fVar))); + } + + public void f1(@NonNull CaptureRequest.Builder builder) { + int[] iArr = (int[]) t1(CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES, new int[0]); + ArrayList arrayList = new ArrayList(); + for (int i2 : iArr) { + arrayList.add(Integer.valueOf(i2)); + } + if (this.Q == b.o.a.m.i.VIDEO && arrayList.contains(3)) { + builder.set(CaptureRequest.CONTROL_AF_MODE, 3); + } else if (arrayList.contains(4)) { + builder.set(CaptureRequest.CONTROL_AF_MODE, 4); + } else if (arrayList.contains(1)) { + builder.set(CaptureRequest.CONTROL_AF_MODE, 1); + } else if (arrayList.contains(0)) { + builder.set(CaptureRequest.CONTROL_AF_MODE, 0); + builder.set(CaptureRequest.LENS_FOCUS_DISTANCE, Float.valueOf(0.0f)); + } + } + + @Override // b.o.a.n.i + public void g0(int i2) { + if (this.u == 0) { + this.u = 35; + } + this.n.b(b.d.b.a.a.q("frame processing format (", i2, ")"), true, new k(i2)); + } + + public boolean g1(@NonNull CaptureRequest.Builder builder, float f2) { + if (this.p.l) { + builder.set(CaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION, Integer.valueOf(Math.round(((Rational) t1(CameraCharacteristics.CONTROL_AE_COMPENSATION_STEP, new Rational(1, 1))).floatValue() * this.E))); + return true; + } + this.E = f2; + return false; + } + + public boolean h1(@NonNull CaptureRequest.Builder builder, @NonNull b.o.a.m.f fVar) { + if (this.p.c(this.w)) { + int[] iArr = (int[]) t1(CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES, new int[0]); + ArrayList arrayList = new ArrayList(); + for (int i2 : iArr) { + arrayList.add(Integer.valueOf(i2)); + } + b.o.a.n.q.b bVar = this.k0; + b.o.a.m.f fVar2 = this.w; + Objects.requireNonNull(bVar); + ArrayList arrayList2 = new ArrayList(); + int ordinal = fVar2.ordinal(); + if (ordinal == 0) { + arrayList2.add(new Pair(1, 0)); + arrayList2.add(new Pair(0, 0)); + } else if (ordinal == 1) { + arrayList2.add(new Pair(3, 0)); + } else if (ordinal == 2) { + arrayList2.add(new Pair(2, 0)); + arrayList2.add(new Pair(4, 0)); + } else if (ordinal == 3) { + arrayList2.add(new Pair(1, 2)); + arrayList2.add(new Pair(0, 2)); + } + Iterator it = arrayList2.iterator(); + while (it.hasNext()) { + Pair pair = (Pair) it.next(); + if (arrayList.contains(pair.first)) { + b.o.a.b bVar2 = i.j; + bVar2.a(1, "applyFlash: setting CONTROL_AE_MODE to", pair.first); + bVar2.a(1, "applyFlash: setting FLASH_MODE to", pair.second); + builder.set(CaptureRequest.CONTROL_AE_MODE, pair.first); + builder.set(CaptureRequest.FLASH_MODE, pair.second); + return true; + } + } + } + this.w = fVar; + return false; + } + + public boolean i1(@NonNull CaptureRequest.Builder builder, @NonNull b.o.a.m.h hVar) { + if (this.p.c(this.A)) { + b.o.a.n.q.b bVar = this.k0; + b.o.a.m.h hVar2 = this.A; + Objects.requireNonNull(bVar); + builder.set(CaptureRequest.CONTROL_SCENE_MODE, Integer.valueOf(b.o.a.n.q.b.d.get(hVar2).intValue())); + return true; + } + this.A = hVar; + return false; + } + + /* JADX WARNING: Removed duplicated region for block: B:11:0x0038 */ + public boolean j1(@NonNull CaptureRequest.Builder builder, float f2) { + Range[] rangeArr = (Range[]) t1(CameraCharacteristics.CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES, new Range[0]); + Arrays.sort(rangeArr, new e(this, this.J && this.I != 0.0f)); + float f3 = this.I; + if (f3 == 0.0f) { + Iterator it = ((ArrayList) r1(rangeArr)).iterator(); + while (it.hasNext()) { + Range range = (Range) it.next(); + if (range.contains((Range) 30) || range.contains((Range) 24)) { + builder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, range); + return true; + } + while (it.hasNext()) { + } + } + } else { + float min = Math.min(f3, this.p.q); + this.I = min; + this.I = Math.max(min, this.p.p); + Iterator it2 = ((ArrayList) r1(rangeArr)).iterator(); + while (it2.hasNext()) { + Range range2 = (Range) it2.next(); + if (range2.contains((Range) Integer.valueOf(Math.round(this.I)))) { + builder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, range2); + return true; + } + } + } + this.I = f2; + return false; + } + + @Override // b.o.a.n.i + public void k0(boolean z2) { + b.o.a.n.v.f fVar = this.n; + fVar.b("has frame processors (" + z2 + ")", true, new j(z2)); + } + + public void k1() { + l1(true, 3); + } + + @Override // b.o.a.n.i + public void l0(@NonNull b.o.a.m.h hVar) { + b.o.a.m.h hVar2 = this.A; + this.A = hVar; + b.o.a.n.v.f fVar = this.n; + fVar.b("hdr (" + hVar + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new RunnableC0164d(hVar2))); + } + + public final void l1(boolean z2, int i2) { + if ((this.n.f == b.o.a.n.v.e.PREVIEW && !O()) || !z2) { + try { + this.f1905h0.setRepeatingRequest(this.f1906i0.build(), this.r0, null); + } catch (CameraAccessException e2) { + throw new CameraException(e2, i2); + } catch (IllegalStateException e3) { + b.o.a.b bVar = i.j; + b.o.a.n.v.f fVar = this.n; + bVar.a(3, "applyRepeatingRequestBuilder: session is invalid!", e3, "checkStarted:", Boolean.valueOf(z2), "currentThread:", Thread.currentThread().getName(), "state:", fVar.f, "targetState:", fVar.g); + throw new CameraException(3); + } + } + } + + @Override // b.o.a.n.i + public void m0(@Nullable Location location) { + Location location2 = this.C; + this.C = location; + b.o.a.n.v.f fVar = this.n; + fVar.b(ModelAuditLogEntry.CHANGE_KEY_LOCATION, true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new b(location2))); + } + + public boolean m1(@NonNull CaptureRequest.Builder builder, @NonNull b.o.a.m.m mVar) { + if (this.p.c(this.f1917x)) { + b.o.a.n.q.b bVar = this.k0; + b.o.a.m.m mVar2 = this.f1917x; + Objects.requireNonNull(bVar); + builder.set(CaptureRequest.CONTROL_AWB_MODE, Integer.valueOf(b.o.a.n.q.b.c.get(mVar2).intValue())); + return true; + } + this.f1917x = mVar; + return false; + } + + public boolean n1(@NonNull CaptureRequest.Builder builder, float f2) { + if (this.p.k) { + float floatValue = ((Float) t1(CameraCharacteristics.SCALER_AVAILABLE_MAX_DIGITAL_ZOOM, Float.valueOf(1.0f))).floatValue(); + float f3 = floatValue - 1.0f; + Rect rect = (Rect) t1(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE, new Rect()); + int height = (int) (((float) rect.height()) / floatValue); + int width = rect.width() - ((int) (((float) rect.width()) / floatValue)); + int height2 = rect.height() - height; + float f4 = ((this.D * f3) + 1.0f) - 1.0f; + int i2 = (int) (((((float) width) * f4) / f3) / 2.0f); + int i3 = (int) (((((float) height2) * f4) / f3) / 2.0f); + builder.set(CaptureRequest.SCALER_CROP_REGION, new Rect(i2, i3, rect.width() - i2, rect.height() - i3)); + return true; + } + this.D = f2; + return false; + } + + @NonNull + public final CameraException o1(@NonNull CameraAccessException cameraAccessException) { + int reason = cameraAccessException.getReason(); + int i2 = 3; + if (reason != 1) { + if (!(reason == 2 || reason == 3)) { + if (!(reason == 4 || reason == 5)) { + i2 = 0; + } + } + return new CameraException(cameraAccessException, i2); + } + i2 = 1; + return new CameraException(cameraAccessException, i2); + } + + @Override // android.media.ImageReader.OnImageAvailableListener + public void onImageAvailable(ImageReader imageReader) { + i.j.a(0, "onImageAvailable:", "trying to acquire Image."); + Image image = null; + try { + image = imageReader.acquireLatestImage(); + } catch (Exception unused) { + } + if (image == null) { + i.j.a(2, "onImageAvailable:", "failed to acquire Image!"); + } else if (this.n.f != b.o.a.n.v.e.PREVIEW || O()) { + i.j.a(1, "onImageAvailable:", "Image acquired in wrong state. Closing it now."); + image.close(); + } else { + b.o.a.p.b a2 = S0().a(image, System.currentTimeMillis()); + if (a2 != null) { + i.j.a(0, "onImageAvailable:", "Image acquired, dispatching."); + ((CameraView.b) this.m).b(a2); + return; + } + i.j.a(1, "onImageAvailable:", "Image acquired, but no free frames. DROPPING."); + } + } + + @Override // b.o.a.n.i + public void p0(@NonNull b.o.a.m.j jVar) { + if (jVar != this.B) { + this.B = jVar; + b.o.a.n.v.f fVar = this.n; + fVar.b("picture format (" + jVar + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new h())); + } + } + + @NonNull + public final b.o.a.n.r.g p1(@Nullable b.o.a.t.b bVar) { + b.o.a.n.r.g gVar = this.q0; + if (gVar != null) { + gVar.a(this); + } + CaptureRequest.Builder builder = this.f1906i0; + boolean z2 = false; + int[] iArr = (int[]) t1(CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES, new int[0]); + ArrayList arrayList = new ArrayList(); + for (int i2 : iArr) { + arrayList.add(Integer.valueOf(i2)); + } + if (arrayList.contains(1)) { + builder.set(CaptureRequest.CONTROL_AF_MODE, 1); + } else if (this.Q == b.o.a.m.i.VIDEO && arrayList.contains(3)) { + builder.set(CaptureRequest.CONTROL_AF_MODE, 3); + } else if (arrayList.contains(4)) { + builder.set(CaptureRequest.CONTROL_AF_MODE, 4); + } + if (bVar == null) { + z2 = true; + } + b.o.a.n.r.g gVar2 = new b.o.a.n.r.g(this, bVar, z2); + this.q0 = gVar2; + return gVar2; + } + + @NonNull + public final CaptureRequest.Builder q1(int i2) throws CameraAccessException { + CaptureRequest.Builder builder = this.f1906i0; + CaptureRequest.Builder createCaptureRequest = this.f1903f0.createCaptureRequest(i2); + this.f1906i0 = createCaptureRequest; + createCaptureRequest.setTag(Integer.valueOf(i2)); + d1(this.f1906i0, builder); + return this.f1906i0; + } + + @NonNull + public List> r1(@NonNull Range[] rangeArr) { + ArrayList arrayList = new ArrayList(); + int round = Math.round(this.p.p); + int round2 = Math.round(this.p.q); + for (Range range : rangeArr) { + if (range.contains((Range) Integer.valueOf(round)) && range.contains((Range) Integer.valueOf(round2))) { + b.o.a.b bVar = b.o.a.r.b.a; + String str = Build.MODEL; + boolean z2 = true; + String str2 = Build.MANUFACTURER; + bVar.a(1, "Build.MODEL:", str, "Build.BRAND:", Build.BRAND, "Build.MANUFACTURER:", str2); + List> list = b.o.a.r.b.f1934b.get(str2 + " " + str); + if (list != null && list.contains(range)) { + bVar.a(1, "Dropping range:", range); + z2 = false; + } + if (z2) { + arrayList.add(range); + } + } + } + return arrayList; + } + + @NonNull + public List s1() { + try { + StreamConfigurationMap streamConfigurationMap = (StreamConfigurationMap) this.f1901d0.getCameraCharacteristics(this.f1902e0).get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); + if (streamConfigurationMap != null) { + Size[] outputSizes = streamConfigurationMap.getOutputSizes(this.u); + ArrayList arrayList = new ArrayList(outputSizes.length); + for (Size size : outputSizes) { + b.o.a.x.b bVar = new b.o.a.x.b(size.getWidth(), size.getHeight()); + if (!arrayList.contains(bVar)) { + arrayList.add(bVar); + } + } + return arrayList; + } + throw new RuntimeException("StreamConfigurationMap is null. Should not happen."); + } catch (CameraAccessException e2) { + throw o1(e2); + } + } + + @Override // b.o.a.n.i + public void t0(boolean z2) { + this.F = z2; + b.i.a.f.e.o.f.Y(null); + } + + @NonNull + @VisibleForTesting + public T t1(@NonNull CameraCharacteristics.Key key, @NonNull T t) { + T t2 = (T) this.f1904g0.get(key); + return t2 == null ? t : t2; + } + + @NonNull + public final T u1(@NonNull CameraCharacteristics cameraCharacteristics, @NonNull CameraCharacteristics.Key key, @NonNull T t) { + T t2 = (T) cameraCharacteristics.get(key); + return t2 == null ? t : t2; + } + + @Override // b.o.a.n.i + public void v0(float f2) { + float f3 = this.I; + this.I = f2; + b.o.a.n.v.f fVar = this.n; + fVar.b("preview fps (" + f2 + ")", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new g(f3))); + } +} diff --git a/app/src/main/java/b/o/a/n/e.java b/app/src/main/java/b/o/a/n/e.java new file mode 100644 index 0000000000..2e72227ce7 --- /dev/null +++ b/app/src/main/java/b/o/a/n/e.java @@ -0,0 +1,20 @@ +package b.o.a.n; + +import android.util.Range; +import java.util.Comparator; +/* compiled from: Camera2Engine */ +public class e implements Comparator> { + public final /* synthetic */ boolean j; + + public e(d dVar, boolean z2) { + this.j = z2; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(Range range, Range range2) { + Range range3 = range; + Range range4 = range2; + return this.j ? (range3.getUpper().intValue() - range3.getLower().intValue()) - (range4.getUpper().intValue() - range4.getLower().intValue()) : (range4.getUpper().intValue() - range4.getLower().intValue()) - (range3.getUpper().intValue() - range3.getLower().intValue()); + } +} diff --git a/app/src/main/java/b/o/a/n/f.java b/app/src/main/java/b/o/a/n/f.java new file mode 100644 index 0000000000..1f6a0e7b3c --- /dev/null +++ b/app/src/main/java/b/o/a/n/f.java @@ -0,0 +1,28 @@ +package b.o.a.n; + +import android.hardware.camera2.CaptureRequest; +import androidx.annotation.NonNull; +import b.o.a.n.o.c; +import b.o.a.n.o.e; +/* compiled from: Camera2Engine */ +public class f extends e { + public final /* synthetic */ d e; + + public f(d dVar) { + this.e = dVar; + } + + @Override // b.o.a.n.o.e + public void j(@NonNull c cVar) { + this.c = cVar; + this.e.f1(((d) cVar).f1906i0); + d dVar = (d) cVar; + CaptureRequest.Builder builder = dVar.f1906i0; + CaptureRequest.Key key = CaptureRequest.CONTROL_AE_LOCK; + Boolean bool = Boolean.FALSE; + builder.set(key, bool); + dVar.f1906i0.set(CaptureRequest.CONTROL_AWB_LOCK, bool); + dVar.k1(); + l(Integer.MAX_VALUE); + } +} diff --git a/app/src/main/java/b/o/a/n/g.java b/app/src/main/java/b/o/a/n/g.java new file mode 100644 index 0000000000..92fe199934 --- /dev/null +++ b/app/src/main/java/b/o/a/n/g.java @@ -0,0 +1,668 @@ +package b.o.a.n; + +import android.location.Location; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; +import b.o.a.l; +import b.o.a.m.e; +import b.o.a.m.f; +import b.o.a.m.h; +import b.o.a.m.i; +import b.o.a.m.j; +import b.o.a.m.l; +import b.o.a.m.m; +import b.o.a.n.i; +import com.otaliastudios.cameraview.CameraException; +import com.otaliastudios.cameraview.CameraView; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Set; +/* compiled from: CameraBaseEngine */ +public abstract class g extends i { + public h A; + public j B; + public Location C; + public float D; + public float E; + public boolean F; + public boolean G; + public boolean H; + public float I; + public boolean J; + public b.o.a.p.c K; + public final b.o.a.n.t.a L = new b.o.a.n.t.a(); + @Nullable + public b.o.a.x.c M; + public b.o.a.x.c N; + public b.o.a.x.c O; + public e P; + public i Q; + public b.o.a.m.a R; + public long S; + public int T; + public int U; + public int V; + public long W; + public int X; + public int Y; + public int Z; + + /* renamed from: a0 reason: collision with root package name */ + public int f1913a0; + + /* renamed from: b0 reason: collision with root package name */ + public int f1914b0; + + /* renamed from: c0 reason: collision with root package name */ + public b.o.a.u.a f1915c0; + public b.o.a.w.a o; + public b.o.a.c p; + public b.o.a.v.d q; + public b.o.a.x.b r; + + /* renamed from: s reason: collision with root package name */ + public b.o.a.x.b f1916s; + public b.o.a.x.b t; + public int u; + public boolean v; + public f w; + + /* renamed from: x reason: collision with root package name */ + public m f1917x; + + /* renamed from: y reason: collision with root package name */ + public l f1918y; + + /* renamed from: z reason: collision with root package name */ + public b.o.a.m.b f1919z; + + /* compiled from: CameraBaseEngine */ + public class a implements Runnable { + public final /* synthetic */ e j; + public final /* synthetic */ e k; + + public a(e eVar, e eVar2) { + this.j = eVar; + this.k = eVar2; + } + + @Override // java.lang.Runnable + public void run() { + if (g.this.c(this.j)) { + g.this.X(); + return; + } + g.this.P = this.k; + } + } + + /* compiled from: CameraBaseEngine */ + public class b implements Runnable { + public b() { + } + + @Override // java.lang.Runnable + public void run() { + g.this.X(); + } + } + + /* compiled from: CameraBaseEngine */ + public class c implements Runnable { + public final /* synthetic */ l.a j; + public final /* synthetic */ boolean k; + + public c(l.a aVar, boolean z2) { + this.j = aVar; + this.k = z2; + } + + @Override // java.lang.Runnable + public void run() { + i.j.a(1, "takePicture:", "running. isTakingPicture:", Boolean.valueOf(g.this.W0())); + if (!g.this.W0()) { + g gVar = g.this; + if (gVar.Q != i.VIDEO) { + l.a aVar = this.j; + aVar.a = false; + aVar.f1897b = gVar.C; + aVar.e = gVar.P; + aVar.g = gVar.B; + gVar.Y0(aVar, this.k); + return; + } + throw new IllegalStateException("Can't take hq pictures while in VIDEO mode"); + } + } + } + + /* compiled from: CameraBaseEngine */ + public class d implements Runnable { + public final /* synthetic */ l.a j; + public final /* synthetic */ boolean k; + + public d(l.a aVar, boolean z2) { + this.j = aVar; + this.k = z2; + } + + @Override // java.lang.Runnable + public void run() { + i.j.a(1, "takePictureSnapshot:", "running. isTakingPicture:", Boolean.valueOf(g.this.W0())); + if (!g.this.W0()) { + l.a aVar = this.j; + g gVar = g.this; + aVar.f1897b = gVar.C; + aVar.a = true; + aVar.e = gVar.P; + aVar.g = j.JPEG; + g.this.Z0(this.j, b.o.a.x.a.g(gVar.U0(b.o.a.n.t.b.OUTPUT)), this.k); + } + } + } + + public g(@NonNull i.g gVar) { + super(gVar); + b.i.a.f.e.o.f.Y(null); + b.i.a.f.e.o.f.Y(null); + b.i.a.f.e.o.f.Y(null); + b.i.a.f.e.o.f.Y(null); + b.i.a.f.e.o.f.Y(null); + b.i.a.f.e.o.f.Y(null); + b.i.a.f.e.o.f.Y(null); + b.i.a.f.e.o.f.Y(null); + } + + @Override // b.o.a.n.i + public final float A() { + return this.I; + } + + @Override // b.o.a.n.i + public final void A0(int i) { + this.U = i; + } + + @Override // b.o.a.n.i + public final boolean B() { + return this.J; + } + + @Override // b.o.a.n.i + public final void B0(@NonNull b.o.a.m.l lVar) { + this.f1918y = lVar; + } + + @Override // b.o.a.n.i + @Nullable + public final b.o.a.x.b C(@NonNull b.o.a.n.t.b bVar) { + b.o.a.x.b bVar2 = this.f1916s; + if (bVar2 == null) { + return null; + } + return this.L.b(b.o.a.n.t.b.SENSOR, bVar) ? bVar2.f() : bVar2; + } + + @Override // b.o.a.n.i + public final void C0(int i) { + this.T = i; + } + + @Override // b.o.a.n.i + public final int D() { + return this.Y; + } + + @Override // b.o.a.n.i + public final void D0(long j) { + this.S = j; + } + + @Override // b.o.a.n.i + public final int E() { + return this.X; + } + + @Override // b.o.a.n.i + public final void E0(@NonNull b.o.a.x.c cVar) { + this.O = cVar; + } + + @Override // b.o.a.n.i + @Nullable + public final b.o.a.x.b F(@NonNull b.o.a.n.t.b bVar) { + b.o.a.x.b C = C(bVar); + if (C == null) { + return null; + } + boolean b2 = this.L.b(bVar, b.o.a.n.t.b.VIEW); + int i = b2 ? this.Y : this.X; + int i2 = b2 ? this.X : this.Y; + if (i <= 0) { + i = Integer.MAX_VALUE; + } + if (i2 <= 0) { + i2 = Integer.MAX_VALUE; + } + HashMap hashMap = b.o.a.x.a.j; + float i3 = b.o.a.x.a.f(C.j, C.k).i(); + if (b.o.a.x.a.f(i, i2).i() >= i3) { + int min = Math.min(C.k, i2); + return new b.o.a.x.b((int) Math.floor((double) (((float) min) * i3)), min); + } + int min2 = Math.min(C.j, i); + return new b.o.a.x.b(min2, (int) Math.floor((double) (((float) min2) / i3))); + } + + @Override // b.o.a.n.i + public final int G() { + return this.U; + } + + @Override // b.o.a.n.i + @NonNull + public final b.o.a.m.l H() { + return this.f1918y; + } + + @Override // b.o.a.n.i + public final int I() { + return this.T; + } + + @Override // b.o.a.n.i + public final long J() { + return this.S; + } + + @Override // b.o.a.n.i + @Nullable + public final b.o.a.x.b K(@NonNull b.o.a.n.t.b bVar) { + b.o.a.x.b bVar2 = this.r; + if (bVar2 == null || this.Q == b.o.a.m.i.PICTURE) { + return null; + } + return this.L.b(b.o.a.n.t.b.SENSOR, bVar) ? bVar2.f() : bVar2; + } + + @Override // b.o.a.n.i + @NonNull + public final b.o.a.x.c L() { + return this.O; + } + + @Override // b.o.a.n.i + @NonNull + public final m M() { + return this.f1917x; + } + + @Override // b.o.a.n.i + public final float N() { + return this.D; + } + + @Override // b.o.a.n.i + public void O0(@NonNull l.a aVar) { + boolean z2 = this.G; + b.o.a.n.v.f fVar = this.n; + fVar.b("take picture", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.BIND, new c(aVar, z2))); + } + + @Override // b.o.a.n.i + public void P0(@NonNull l.a aVar) { + boolean z2 = this.H; + b.o.a.n.v.f fVar = this.n; + fVar.b("take picture snapshot", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.BIND, new d(aVar, z2))); + } + + @NonNull + public final b.o.a.x.b Q0(@NonNull b.o.a.m.i iVar) { + Set set; + b.o.a.x.c cVar; + boolean b2 = this.L.b(b.o.a.n.t.b.SENSOR, b.o.a.n.t.b.VIEW); + if (iVar == b.o.a.m.i.PICTURE) { + cVar = this.N; + set = Collections.unmodifiableSet(this.p.e); + } else { + cVar = this.O; + set = Collections.unmodifiableSet(this.p.f); + } + b.o.a.x.c O0 = b.i.a.f.e.o.f.O0(cVar, new b.o.a.x.e()); + ArrayList arrayList = new ArrayList(set); + b.o.a.x.b bVar = ((b.o.a.x.l) O0).a(arrayList).get(0); + if (arrayList.contains(bVar)) { + i.j.a(1, "computeCaptureSize:", "result:", bVar, "flip:", Boolean.valueOf(b2), "mode:", iVar); + return b2 ? bVar.f() : bVar; + } + throw new RuntimeException("SizeSelectors must not return Sizes other than those in the input list."); + } + + @NonNull + public final b.o.a.x.b R0() { + b.o.a.n.t.b bVar = b.o.a.n.t.b.VIEW; + List T0 = T0(); + boolean b2 = this.L.b(b.o.a.n.t.b.SENSOR, bVar); + ArrayList arrayList = new ArrayList(T0.size()); + for (b.o.a.x.b bVar2 : T0) { + if (b2) { + bVar2 = bVar2.f(); + } + arrayList.add(bVar2); + } + b.o.a.x.b U0 = U0(bVar); + if (U0 != null) { + b.o.a.x.b bVar3 = this.r; + b.o.a.x.a f = b.o.a.x.a.f(bVar3.j, bVar3.k); + if (b2) { + f = b.o.a.x.a.f(f.l, f.k); + } + b.o.a.b bVar4 = i.j; + bVar4.a(1, "computePreviewStreamSize:", "targetRatio:", f, "targetMinSize:", U0); + b.o.a.x.c f2 = b.i.a.f.e.o.f.f(b.i.a.f.e.o.f.u1(new b.o.a.x.d(f.i(), 0.0f)), new b.o.a.x.e()); + b.o.a.x.c f3 = b.i.a.f.e.o.f.f(b.i.a.f.e.o.f.K0(U0.k), b.i.a.f.e.o.f.L0(U0.j), new b.o.a.x.f()); + b.o.a.x.c O0 = b.i.a.f.e.o.f.O0(b.i.a.f.e.o.f.f(f2, f3), f3, f2, new b.o.a.x.e()); + b.o.a.x.c cVar = this.M; + if (cVar != null) { + O0 = b.i.a.f.e.o.f.O0(cVar, O0); + } + b.o.a.x.b bVar5 = ((b.o.a.x.l) O0).a(arrayList).get(0); + if (arrayList.contains(bVar5)) { + if (b2) { + bVar5 = bVar5.f(); + } + bVar4.a(1, "computePreviewStreamSize:", "result:", bVar5, "flip:", Boolean.valueOf(b2)); + return bVar5; + } + throw new RuntimeException("SizeSelectors must not return Sizes other than those in the input list."); + } + throw new IllegalStateException("targetMinSize should not be null here."); + } + + @NonNull + public b.o.a.p.c S0() { + if (this.K == null) { + this.K = V0(this.f1914b0); + } + return this.K; + } + + @NonNull + public abstract List T0(); + + @Nullable + public final b.o.a.x.b U0(@NonNull b.o.a.n.t.b bVar) { + b.o.a.w.a aVar = this.o; + if (aVar == null) { + return null; + } + return this.L.b(b.o.a.n.t.b.VIEW, bVar) ? aVar.l().f() : aVar.l(); + } + + @NonNull + public abstract b.o.a.p.c V0(int i); + + public final boolean W0() { + return this.q != null; + } + + public abstract void X0(); + + public abstract void Y0(@NonNull l.a aVar, boolean z2); + + @Override // b.o.a.n.i + public final void Z(@NonNull b.o.a.m.a aVar) { + if (this.R != aVar) { + this.R = aVar; + } + } + + public abstract void Z0(@NonNull l.a aVar, @NonNull b.o.a.x.a aVar2, boolean z2); + + @Override // b.o.a.v.d.a + public void a(@Nullable l.a aVar, @Nullable Exception exc) { + this.q = null; + if (aVar != null) { + CameraView.b bVar = (CameraView.b) this.m; + bVar.f3136b.a(1, "dispatchOnPictureTaken", aVar); + CameraView.this.t.post(new b.o.a.i(bVar, aVar)); + return; + } + i.j.a(3, "onPictureResult", "result is null: something went wrong.", exc); + ((CameraView.b) this.m).a(new CameraException(exc, 4)); + } + + @Override // b.o.a.n.i + public final void a0(int i) { + this.V = i; + } + + public final boolean a1() { + long j = this.W; + return j > 0 && j != RecyclerView.FOREVER_NS; + } + + @Override // b.o.a.n.i + public final void b0(@NonNull b.o.a.m.b bVar) { + this.f1919z = bVar; + } + + @Override // b.o.a.n.i + public final void c0(long j) { + this.W = j; + } + + @Override // b.o.a.n.i + @NonNull + public final b.o.a.n.t.a e() { + return this.L; + } + + @Override // b.o.a.n.i + public final void e0(@NonNull e eVar) { + e eVar2 = this.P; + if (eVar != eVar2) { + this.P = eVar; + b.o.a.n.v.f fVar = this.n; + fVar.b("facing", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new a(eVar, eVar2))); + } + } + + @Override // b.o.a.n.i + @NonNull + public final b.o.a.m.a f() { + return this.R; + } + + @Override // b.o.a.n.i + public final int g() { + return this.V; + } + + @Override // b.o.a.n.i + @NonNull + public final b.o.a.m.b h() { + return this.f1919z; + } + + @Override // b.o.a.n.i + public final void h0(int i) { + this.f1913a0 = i; + } + + @Override // b.o.a.n.i + public final long i() { + return this.W; + } + + @Override // b.o.a.n.i + public final void i0(int i) { + this.Z = i; + } + + @Override // b.o.a.n.i + @Nullable + public final b.o.a.c j() { + return this.p; + } + + @Override // b.o.a.n.i + public final void j0(int i) { + this.f1914b0 = i; + } + + @Override // b.o.a.n.i + public final float k() { + return this.E; + } + + @Override // b.o.a.n.i + @NonNull + public final e l() { + return this.P; + } + + @Override // b.o.a.n.i + @NonNull + public final f m() { + return this.w; + } + + @Override // b.o.a.n.i + public final int n() { + return this.u; + } + + @Override // b.o.a.n.i + public final void n0(@NonNull b.o.a.m.i iVar) { + if (iVar != this.Q) { + this.Q = iVar; + b.o.a.n.v.f fVar = this.n; + fVar.b("mode", true, new b.o.a.n.v.h(fVar, b.o.a.n.v.e.ENGINE, new b())); + } + } + + @Override // b.o.a.n.i + public final int o() { + return this.f1913a0; + } + + @Override // b.o.a.n.i + public final void o0(@Nullable b.o.a.u.a aVar) { + this.f1915c0 = aVar; + } + + @Override // b.o.a.n.i + public final int p() { + return this.Z; + } + + @Override // b.o.a.n.i + public final int q() { + return this.f1914b0; + } + + @Override // b.o.a.n.i + public final void q0(boolean z2) { + this.G = z2; + } + + @Override // b.o.a.n.i + @NonNull + public final h r() { + return this.A; + } + + @Override // b.o.a.n.i + public final void r0(@NonNull b.o.a.x.c cVar) { + this.N = cVar; + } + + @Override // b.o.a.n.i + @Nullable + public final Location s() { + return this.C; + } + + @Override // b.o.a.n.i + public final void s0(boolean z2) { + this.H = z2; + } + + @Override // b.o.a.n.i + @NonNull + public final b.o.a.m.i t() { + return this.Q; + } + + @Override // b.o.a.n.i + @NonNull + public final j u() { + return this.B; + } + + @Override // b.o.a.n.i + public final void u0(@NonNull b.o.a.w.a aVar) { + b.o.a.w.a aVar2 = this.o; + if (aVar2 != null) { + aVar2.t(null); + } + this.o = aVar; + aVar.t(this); + } + + @Override // b.o.a.n.i + public final boolean v() { + return this.G; + } + + @Override // b.o.a.n.i + @Nullable + public final b.o.a.x.b w(@NonNull b.o.a.n.t.b bVar) { + b.o.a.x.b bVar2 = this.r; + if (bVar2 == null || this.Q == b.o.a.m.i.VIDEO) { + return null; + } + return this.L.b(b.o.a.n.t.b.SENSOR, bVar) ? bVar2.f() : bVar2; + } + + @Override // b.o.a.n.i + public final void w0(boolean z2) { + this.J = z2; + } + + @Override // b.o.a.n.i + @NonNull + public final b.o.a.x.c x() { + return this.N; + } + + @Override // b.o.a.n.i + public final void x0(@Nullable b.o.a.x.c cVar) { + this.M = cVar; + } + + @Override // b.o.a.n.i + public final boolean y() { + return this.H; + } + + @Override // b.o.a.n.i + public final void y0(int i) { + this.Y = i; + } + + @Override // b.o.a.n.i + @NonNull + public final b.o.a.w.a z() { + return this.o; + } + + @Override // b.o.a.n.i + public final void z0(int i) { + this.X = i; + } +} diff --git a/app/src/main/java/b/o/a/n/h.java b/app/src/main/java/b/o/a/n/h.java new file mode 100644 index 0000000000..70a8ae8aeb --- /dev/null +++ b/app/src/main/java/b/o/a/n/h.java @@ -0,0 +1,24 @@ +package b.o.a.n; + +import b.o.a.x.b; +/* compiled from: CameraBaseEngine */ +public class h implements Runnable { + public final /* synthetic */ g j; + + public h(g gVar) { + this.j = gVar; + } + + @Override // java.lang.Runnable + public void run() { + b R0 = this.j.R0(); + if (R0.equals(this.j.f1916s)) { + i.j.a(1, "onSurfaceChanged:", "The computed preview size is identical. No op."); + return; + } + i.j.a(1, "onSurfaceChanged:", "Computed a new preview size. Calling onPreviewStreamSizeChanged()."); + g gVar = this.j; + gVar.f1916s = R0; + gVar.X0(); + } +} diff --git a/app/src/main/java/b/o/a/n/i.java b/app/src/main/java/b/o/a/n/i.java new file mode 100644 index 0000000000..6e31a48db0 --- /dev/null +++ b/app/src/main/java/b/o/a/n/i.java @@ -0,0 +1,471 @@ +package b.o.a.n; + +import android.graphics.PointF; +import android.location.Location; +import android.os.Handler; +import android.os.HandlerThread; +import android.os.Looper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.i.a.f.n.b0; +import b.o.a.l; +import b.o.a.m.j; +import b.o.a.m.l; +import b.o.a.m.m; +import b.o.a.n.v.a; +import b.o.a.v.d; +import b.o.a.w.a; +import com.google.android.gms.tasks.Task; +import java.lang.Thread; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Objects; +import java.util.concurrent.Callable; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +/* compiled from: CameraEngine */ +public abstract class i implements a.c, d.a { + public static final b.o.a.b j = new b.o.a.b(i.class.getSimpleName()); + public b.o.a.r.g k; + @VisibleForTesting + public Handler l; + public final g m; + public final b.o.a.n.v.f n = new b.o.a.n.v.f(new c()); + + /* compiled from: CameraEngine */ + public class a implements Callable> { + public a() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + return i.this.R(); + } + } + + /* compiled from: CameraEngine */ + public class b implements Callable> { + public b() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + return i.this.U(); + } + } + + /* compiled from: CameraEngine */ + public class c implements a.b { + public c() { + } + } + + /* compiled from: CameraEngine */ + public class d implements b.i.a.f.n.c { + public final /* synthetic */ CountDownLatch a; + + public d(i iVar, CountDownLatch countDownLatch) { + this.a = countDownLatch; + } + + @Override // b.i.a.f.n.c + public void onComplete(@NonNull Task task) { + this.a.countDown(); + } + } + + /* compiled from: CameraEngine */ + public class e implements Callable> { + public e() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + if (i.this.z() != null && i.this.z().m()) { + return i.this.P(); + } + b0 b0Var = new b0(); + b0Var.u(); + return b0Var; + } + } + + /* compiled from: CameraEngine */ + public class f implements Callable> { + public f() { + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + return i.this.S(); + } + } + + /* compiled from: CameraEngine */ + public interface g { + } + + /* compiled from: CameraEngine */ + public class h implements Thread.UncaughtExceptionHandler { + public h(c cVar) { + } + + @Override // java.lang.Thread.UncaughtExceptionHandler + public void uncaughtException(@NonNull Thread thread, @NonNull Throwable th) { + i.b(i.this, th, true); + } + } + + /* compiled from: CameraEngine */ + /* renamed from: b.o.a.n.i$i reason: collision with other inner class name */ + public static class C0166i implements Thread.UncaughtExceptionHandler { + public C0166i(c cVar) { + } + + @Override // java.lang.Thread.UncaughtExceptionHandler + public void uncaughtException(@NonNull Thread thread, @NonNull Throwable th) { + i.j.a(2, "EXCEPTION:", "In the NoOpExceptionHandler, probably while destroying.", "Thread:", thread, "Error:", th); + } + } + + public i(@NonNull g gVar) { + this.m = gVar; + this.l = new Handler(Looper.getMainLooper()); + W(false); + } + + public static void b(i iVar, Throwable th, boolean z2) { + Objects.requireNonNull(iVar); + if (z2) { + j.a(3, "EXCEPTION:", "Handler thread is gone. Replacing."); + iVar.W(false); + } + j.a(3, "EXCEPTION:", "Scheduling on the crash handler..."); + iVar.l.post(new j(iVar, th)); + } + + public abstract float A(); + + public abstract void A0(int i); + + public abstract boolean B(); + + public abstract void B0(@NonNull l lVar); + + @Nullable + public abstract b.o.a.x.b C(@NonNull b.o.a.n.t.b bVar); + + public abstract void C0(int i); + + public abstract int D(); + + public abstract void D0(long j2); + + public abstract int E(); + + public abstract void E0(@NonNull b.o.a.x.c cVar); + + @Nullable + public abstract b.o.a.x.b F(@NonNull b.o.a.n.t.b bVar); + + public abstract void F0(@NonNull m mVar); + + public abstract int G(); + + public abstract void G0(float f2, @Nullable PointF[] pointFArr, boolean z2); + + @NonNull + public abstract l H(); + + @NonNull + public Task H0() { + j.a(1, "START:", "scheduled. State:", this.n.f); + Task q = this.n.f(b.o.a.n.v.e.OFF, b.o.a.n.v.e.ENGINE, true, new l(this)).q(new k(this)); + J0(); + K0(); + return q; + } + + public abstract int I(); + + public abstract void I0(@Nullable b.o.a.q.a aVar, @NonNull b.o.a.t.b bVar, @NonNull PointF pointF); + + public abstract long J(); + + @NonNull + public final Task J0() { + return this.n.f(b.o.a.n.v.e.ENGINE, b.o.a.n.v.e.BIND, true, new e()); + } + + @Nullable + public abstract b.o.a.x.b K(@NonNull b.o.a.n.t.b bVar); + + @NonNull + public final Task K0() { + return this.n.f(b.o.a.n.v.e.BIND, b.o.a.n.v.e.PREVIEW, true, new a()); + } + + @NonNull + public abstract b.o.a.x.c L(); + + @NonNull + public Task L0(boolean z2) { + j.a(1, "STOP:", "scheduled. State:", this.n.f); + N0(z2); + M0(z2); + b0 b0Var = (b0) this.n.f(b.o.a.n.v.e.ENGINE, b.o.a.n.v.e.OFF, !z2, new n(this)); + b0Var.g(b.i.a.f.n.g.a, new m(this)); + return b0Var; + } + + @NonNull + public abstract m M(); + + @NonNull + public final Task M0(boolean z2) { + return this.n.f(b.o.a.n.v.e.BIND, b.o.a.n.v.e.ENGINE, !z2, new f()); + } + + public abstract float N(); + + @NonNull + public final Task N0(boolean z2) { + return this.n.f(b.o.a.n.v.e.PREVIEW, b.o.a.n.v.e.BIND, !z2, new b()); + } + + public final boolean O() { + boolean z2; + b.o.a.n.v.f fVar = this.n; + synchronized (fVar.e) { + Iterator> it = fVar.c.iterator(); + while (true) { + if (!it.hasNext()) { + z2 = false; + break; + } + a.c next = it.next(); + if (next.a.contains(" >> ") || next.a.contains(" << ")) { + if (!next.f1927b.a.o()) { + z2 = true; + break; + } + } + } + } + return z2; + } + + public abstract void O0(@NonNull l.a aVar); + + @NonNull + public abstract Task P(); + + public abstract void P0(@NonNull l.a aVar); + + @NonNull + public abstract Task Q(); + + @NonNull + public abstract Task R(); + + @NonNull + public abstract Task S(); + + @NonNull + public abstract Task T(); + + @NonNull + public abstract Task U(); + + public final void V() { + j.a(1, "onSurfaceAvailable:", "Size is", z().l()); + J0(); + K0(); + } + + public final void W(boolean z2) { + b.o.a.r.g gVar = this.k; + if (gVar != null) { + HandlerThread handlerThread = gVar.e; + if (handlerThread.isAlive()) { + handlerThread.interrupt(); + handlerThread.quit(); + } + b.o.a.r.g.f1937b.remove(gVar.d); + } + b.o.a.r.g b2 = b.o.a.r.g.b("CameraViewEngine"); + this.k = b2; + b2.e.setUncaughtExceptionHandler(new h(null)); + if (z2) { + b.o.a.n.v.f fVar = this.n; + synchronized (fVar.e) { + HashSet hashSet = new HashSet(); + Iterator> it = fVar.c.iterator(); + while (it.hasNext()) { + hashSet.add(it.next().a); + } + Iterator it2 = hashSet.iterator(); + while (it2.hasNext()) { + fVar.e((String) it2.next(), 0); + } + } + } + } + + public void X() { + j.a(1, "RESTART:", "scheduled. State:", this.n.f); + L0(false); + H0(); + } + + @NonNull + public Task Y() { + j.a(1, "RESTART BIND:", "scheduled. State:", this.n.f); + N0(false); + M0(false); + J0(); + return K0(); + } + + public abstract void Z(@NonNull b.o.a.m.a aVar); + + public abstract void a0(int i); + + public abstract void b0(@NonNull b.o.a.m.b bVar); + + public abstract boolean c(@NonNull b.o.a.m.e eVar); + + public abstract void c0(long j2); + + public final void d(boolean z2, int i) { + b.o.a.b bVar = j; + bVar.a(1, "DESTROY:", "state:", this.n.f, "thread:", Thread.currentThread(), "depth:", Integer.valueOf(i), "unrecoverably:", Boolean.valueOf(z2)); + if (z2) { + this.k.e.setUncaughtExceptionHandler(new C0166i(null)); + } + CountDownLatch countDownLatch = new CountDownLatch(1); + L0(true).c(this.k.g, new d(this, countDownLatch)); + try { + if (!countDownLatch.await(6, TimeUnit.SECONDS)) { + bVar.a(3, "DESTROY: Could not destroy synchronously after 6 seconds.", "Current thread:", Thread.currentThread(), "Handler thread:", this.k.e); + int i2 = i + 1; + if (i2 < 2) { + W(true); + bVar.a(3, "DESTROY: Trying again on thread:", this.k.e); + d(z2, i2); + return; + } + bVar.a(2, "DESTROY: Giving up because DESTROY_RETRIES was reached."); + } + } catch (InterruptedException unused) { + } + } + + public abstract void d0(float f2, @NonNull float[] fArr, @Nullable PointF[] pointFArr, boolean z2); + + @NonNull + public abstract b.o.a.n.t.a e(); + + public abstract void e0(@NonNull b.o.a.m.e eVar); + + @NonNull + public abstract b.o.a.m.a f(); + + public abstract void f0(@NonNull b.o.a.m.f fVar); + + public abstract int g(); + + public abstract void g0(int i); + + @NonNull + public abstract b.o.a.m.b h(); + + public abstract void h0(int i); + + public abstract long i(); + + public abstract void i0(int i); + + @Nullable + public abstract b.o.a.c j(); + + public abstract void j0(int i); + + public abstract float k(); + + public abstract void k0(boolean z2); + + @NonNull + public abstract b.o.a.m.e l(); + + public abstract void l0(@NonNull b.o.a.m.h hVar); + + @NonNull + public abstract b.o.a.m.f m(); + + public abstract void m0(@Nullable Location location); + + public abstract int n(); + + public abstract void n0(@NonNull b.o.a.m.i iVar); + + public abstract int o(); + + public abstract void o0(@Nullable b.o.a.u.a aVar); + + public abstract int p(); + + public abstract void p0(@NonNull j jVar); + + public abstract int q(); + + public abstract void q0(boolean z2); + + @NonNull + public abstract b.o.a.m.h r(); + + public abstract void r0(@NonNull b.o.a.x.c cVar); + + @Nullable + public abstract Location s(); + + public abstract void s0(boolean z2); + + @NonNull + public abstract b.o.a.m.i t(); + + public abstract void t0(boolean z2); + + @NonNull + public abstract j u(); + + public abstract void u0(@NonNull b.o.a.w.a aVar); + + public abstract boolean v(); + + public abstract void v0(float f2); + + @Nullable + public abstract b.o.a.x.b w(@NonNull b.o.a.n.t.b bVar); + + public abstract void w0(boolean z2); + + @NonNull + public abstract b.o.a.x.c x(); + + public abstract void x0(@Nullable b.o.a.x.c cVar); + + public abstract boolean y(); + + public abstract void y0(int i); + + @Nullable + public abstract b.o.a.w.a z(); + + public abstract void z0(int i); +} diff --git a/app/src/main/java/b/o/a/n/j.java b/app/src/main/java/b/o/a/n/j.java new file mode 100644 index 0000000000..4a6c9ba8e7 --- /dev/null +++ b/app/src/main/java/b/o/a/n/j.java @@ -0,0 +1,39 @@ +package b.o.a.n; + +import b.o.a.b; +import com.otaliastudios.cameraview.CameraException; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: CameraEngine */ +public class j implements Runnable { + public final /* synthetic */ Throwable j; + public final /* synthetic */ i k; + + public j(i iVar, Throwable th) { + this.k = iVar; + this.j = th; + } + + @Override // java.lang.Runnable + public void run() { + Throwable th = this.j; + if (th instanceof CameraException) { + CameraException cameraException = (CameraException) th; + if (cameraException.a()) { + i.j.a(3, "EXCEPTION:", "Got CameraException. Since it is unrecoverable, executing destroy(false)."); + this.k.d(false, 0); + } + i.j.a(3, "EXCEPTION:", "Got CameraException. Dispatching to callback."); + ((CameraView.b) this.k.m).a(cameraException); + return; + } + b bVar = i.j; + bVar.a(3, "EXCEPTION:", "Unexpected error! Executing destroy(true)."); + this.k.d(true, 0); + bVar.a(3, "EXCEPTION:", "Unexpected error! Throwing."); + Throwable th2 = this.j; + if (th2 instanceof RuntimeException) { + throw ((RuntimeException) th2); + } + throw new RuntimeException(this.j); + } +} diff --git a/app/src/main/java/b/o/a/n/k.java b/app/src/main/java/b/o/a/n/k.java new file mode 100644 index 0000000000..7b6e80073c --- /dev/null +++ b/app/src/main/java/b/o/a/n/k.java @@ -0,0 +1,31 @@ +package b.o.a.n; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.n.f; +import b.o.a.c; +import com.google.android.gms.tasks.Task; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: CameraEngine */ +public class k implements f { + public final /* synthetic */ i a; + + public k(i iVar) { + this.a = iVar; + } + + /* Return type fixed from 'com.google.android.gms.tasks.Task' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.f + @NonNull + public Task a(@Nullable c cVar) throws Exception { + c cVar2 = cVar; + if (cVar2 != null) { + CameraView.b bVar = (CameraView.b) this.a.m; + bVar.f3136b.a(1, "dispatchOnCameraOpened", cVar2); + CameraView.this.t.post(new b.o.a.f(bVar, cVar2)); + return b.i.a.f.e.o.f.Y(null); + } + throw new RuntimeException("Null options!"); + } +} diff --git a/app/src/main/java/b/o/a/n/l.java b/app/src/main/java/b/o/a/n/l.java new file mode 100644 index 0000000000..a78bd53249 --- /dev/null +++ b/app/src/main/java/b/o/a/n/l.java @@ -0,0 +1,25 @@ +package b.o.a.n; + +import b.o.a.c; +import com.google.android.gms.tasks.Task; +import com.otaliastudios.cameraview.CameraException; +import java.util.concurrent.Callable; +/* compiled from: CameraEngine */ +public class l implements Callable> { + public final /* synthetic */ i j; + + public l(i iVar) { + this.j = iVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + i iVar = this.j; + if (iVar.c(iVar.l())) { + return this.j.Q(); + } + i.j.a(3, "onStartEngine:", "No camera available for facing", this.j.l()); + throw new CameraException(6); + } +} diff --git a/app/src/main/java/b/o/a/n/m.java b/app/src/main/java/b/o/a/n/m.java new file mode 100644 index 0000000000..9e585a588a --- /dev/null +++ b/app/src/main/java/b/o/a/n/m.java @@ -0,0 +1,21 @@ +package b.o.a.n; + +import b.i.a.f.n.e; +import b.o.a.g; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: CameraEngine */ +public class m implements e { + public final /* synthetic */ i a; + + public m(i iVar) { + this.a = iVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // b.i.a.f.n.e + public void onSuccess(Void r6) { + CameraView.b bVar = (CameraView.b) this.a.m; + bVar.f3136b.a(1, "dispatchOnCameraClosed"); + CameraView.this.t.post(new g(bVar)); + } +} diff --git a/app/src/main/java/b/o/a/n/n.java b/app/src/main/java/b/o/a/n/n.java new file mode 100644 index 0000000000..a508e1c8d4 --- /dev/null +++ b/app/src/main/java/b/o/a/n/n.java @@ -0,0 +1,18 @@ +package b.o.a.n; + +import com.google.android.gms.tasks.Task; +import java.util.concurrent.Callable; +/* compiled from: CameraEngine */ +public class n implements Callable> { + public final /* synthetic */ i j; + + public n(i iVar) { + this.j = iVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + return this.j.T(); + } +} diff --git a/app/src/main/java/b/o/a/n/o/a.java b/app/src/main/java/b/o/a/n/o/a.java new file mode 100644 index 0000000000..bc5d86264f --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/a.java @@ -0,0 +1,20 @@ +package b.o.a.n.o; + +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +/* compiled from: Action */ +@RequiresApi(21) +public interface a { + void a(@NonNull c cVar); + + void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult); + + void c(@NonNull c cVar, @NonNull CaptureRequest captureRequest); + + void d(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull CaptureResult captureResult); + + void e(@NonNull c cVar); +} diff --git a/app/src/main/java/b/o/a/n/o/b.java b/app/src/main/java/b/o/a/n/o/b.java new file mode 100644 index 0000000000..b6f40f7fbc --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/b.java @@ -0,0 +1,9 @@ +package b.o.a.n.o; + +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +/* compiled from: ActionCallback */ +@RequiresApi(21) +public interface b { + void a(@NonNull a aVar, int i); +} diff --git a/app/src/main/java/b/o/a/n/o/c.java b/app/src/main/java/b/o/a/n/o/c.java new file mode 100644 index 0000000000..537d727599 --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/c.java @@ -0,0 +1,7 @@ +package b.o.a.n.o; + +import androidx.annotation.RequiresApi; +/* compiled from: ActionHolder */ +@RequiresApi(21) +public interface c { +} diff --git a/app/src/main/java/b/o/a/n/o/d.java b/app/src/main/java/b/o/a/n/o/d.java new file mode 100644 index 0000000000..97559bbfac --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/d.java @@ -0,0 +1,59 @@ +package b.o.a.n.o; + +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +/* compiled from: ActionWrapper */ +@RequiresApi(21) +public abstract class d extends e { + + /* compiled from: ActionWrapper */ + public class a implements b { + public a() { + } + + @Override // b.o.a.n.o.b + public void a(@NonNull a aVar, int i) { + d.this.l(i); + if (i == Integer.MAX_VALUE) { + ((e) aVar).a.remove(this); + } + } + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + m().b(cVar, captureRequest, totalCaptureResult); + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void c(@NonNull c cVar, @NonNull CaptureRequest captureRequest) { + if (this.d) { + j(cVar); + this.d = false; + } + m().c(cVar, captureRequest); + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void d(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull CaptureResult captureResult) { + m().d(cVar, captureRequest, captureResult); + } + + @Override // b.o.a.n.o.e + public void h(@NonNull c cVar) { + m().h(cVar); + } + + @Override // b.o.a.n.o.e + public void j(@NonNull c cVar) { + this.c = cVar; + m().f(new a()); + m().j(cVar); + } + + @NonNull + public abstract e m(); +} diff --git a/app/src/main/java/b/o/a/n/o/e.java b/app/src/main/java/b/o/a/n/o/e.java new file mode 100644 index 0000000000..705d7faa71 --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/e.java @@ -0,0 +1,104 @@ +package b.o.a.n.o; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.CallSuper; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.n.d; +import java.util.ArrayList; +import java.util.List; +/* compiled from: BaseAction */ +@RequiresApi(21) +public abstract class e implements a { + public final List a = new ArrayList(); + + /* renamed from: b reason: collision with root package name */ + public int f1920b; + public c c; + public boolean d; + + @Override // b.o.a.n.o.a + public final void a(@NonNull c cVar) { + ((d) cVar).p0.remove(this); + if (!g()) { + h(cVar); + l(Integer.MAX_VALUE); + } + this.d = false; + } + + @Override // b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + } + + @Override // b.o.a.n.o.a + @CallSuper + public void c(@NonNull c cVar, @NonNull CaptureRequest captureRequest) { + if (this.d) { + j(cVar); + this.d = false; + } + } + + @Override // b.o.a.n.o.a + public void d(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull CaptureResult captureResult) { + } + + @Override // b.o.a.n.o.a + public final void e(@NonNull c cVar) { + this.c = cVar; + d dVar = (d) cVar; + if (!dVar.p0.contains(this)) { + dVar.p0.add(this); + } + if (((d) cVar).f1907j0 != null) { + j(cVar); + } else { + this.d = true; + } + } + + public void f(@NonNull b bVar) { + if (!this.a.contains(bVar)) { + this.a.add(bVar); + bVar.a(this, this.f1920b); + } + } + + public boolean g() { + return this.f1920b == Integer.MAX_VALUE; + } + + public void h(@NonNull c cVar) { + } + + public void i(@NonNull c cVar) { + } + + @CallSuper + public void j(@NonNull c cVar) { + this.c = cVar; + } + + @NonNull + public T k(@NonNull CameraCharacteristics.Key key, @NonNull T t) { + T t2 = (T) ((d) this.c).f1904g0.get(key); + return t2 == null ? t : t2; + } + + public final void l(int i) { + if (i != this.f1920b) { + this.f1920b = i; + for (b bVar : this.a) { + bVar.a(this, this.f1920b); + } + if (this.f1920b == Integer.MAX_VALUE) { + ((d) this.c).p0.remove(this); + i(this.c); + } + } + } +} diff --git a/app/src/main/java/b/o/a/n/o/f.java b/app/src/main/java/b/o/a/n/o/f.java new file mode 100644 index 0000000000..98620df177 --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/f.java @@ -0,0 +1,16 @@ +package b.o.a.n.o; + +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +/* compiled from: CompletionCallback */ +@RequiresApi(21) +public abstract class f implements b { + @Override // b.o.a.n.o.b + public final void a(@NonNull a aVar, int i) { + if (i == Integer.MAX_VALUE) { + b(aVar); + } + } + + public abstract void b(@NonNull a aVar); +} diff --git a/app/src/main/java/b/o/a/n/o/g.java b/app/src/main/java/b/o/a/n/o/g.java new file mode 100644 index 0000000000..3710a33e94 --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/g.java @@ -0,0 +1,30 @@ +package b.o.a.n.o; + +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.i; +/* compiled from: LogAction */ +@RequiresApi(21) +public class g extends e { + public static final b e = new b(i.class.getSimpleName()); + public String f; + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + String str = "aeMode: " + ((Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_MODE)) + " aeLock: " + ((Boolean) totalCaptureResult.get(CaptureResult.CONTROL_AE_LOCK)) + " aeState: " + ((Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_STATE)) + " aeTriggerState: " + ((Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER)) + " afState: " + ((Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE)) + " afTriggerState: " + ((Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_TRIGGER)); + if (!str.equals(this.f)) { + this.f = str; + e.a(1, str); + } + } + + @Override // b.o.a.n.o.e + public void i(@NonNull c cVar) { + l(0); + e(cVar); + } +} diff --git a/app/src/main/java/b/o/a/n/o/h.java b/app/src/main/java/b/o/a/n/o/h.java new file mode 100644 index 0000000000..866e330e12 --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/h.java @@ -0,0 +1,97 @@ +package b.o.a.n.o; + +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import java.util.List; +/* compiled from: SequenceAction */ +@RequiresApi(21) +public class h extends e { + public final List e; + public int f = -1; + + /* compiled from: SequenceAction */ + public class a implements b { + public a() { + } + + @Override // b.o.a.n.o.b + public void a(@NonNull a aVar, int i) { + if (i == Integer.MAX_VALUE) { + ((e) aVar).a.remove(this); + h.this.m(); + } + } + } + + public h(@NonNull List list) { + this.e = list; + m(); + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + int i = this.f; + if (i >= 0) { + this.e.get(i).b(cVar, captureRequest, totalCaptureResult); + } + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void c(@NonNull c cVar, @NonNull CaptureRequest captureRequest) { + if (this.d) { + j(cVar); + this.d = false; + } + int i = this.f; + if (i >= 0) { + this.e.get(i).c(cVar, captureRequest); + } + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void d(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull CaptureResult captureResult) { + int i = this.f; + if (i >= 0) { + this.e.get(i).d(cVar, captureRequest, captureResult); + } + } + + @Override // b.o.a.n.o.e + public void h(@NonNull c cVar) { + int i = this.f; + if (i >= 0) { + this.e.get(i).h(cVar); + } + } + + @Override // b.o.a.n.o.e + public void j(@NonNull c cVar) { + this.c = cVar; + int i = this.f; + if (i >= 0) { + this.e.get(i).j(cVar); + } + } + + public final void m() { + int i = this.f; + boolean z2 = false; + boolean z3 = i == -1; + if (i == this.e.size() - 1) { + z2 = true; + } + if (z2) { + l(Integer.MAX_VALUE); + return; + } + int i2 = this.f + 1; + this.f = i2; + this.e.get(i2).f(new a()); + if (!z3) { + this.e.get(this.f).j(this.c); + } + } +} diff --git a/app/src/main/java/b/o/a/n/o/i.java b/app/src/main/java/b/o/a/n/o/i.java new file mode 100644 index 0000000000..d2bd5d12e7 --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/i.java @@ -0,0 +1,38 @@ +package b.o.a.n.o; + +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +/* compiled from: TimeoutAction */ +@RequiresApi(21) +public class i extends d { + public long e; + public long f; + public e g; + + public i(long j, @NonNull e eVar) { + this.f = j; + this.g = eVar; + } + + @Override // b.o.a.n.o.d, b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + super.b(cVar, captureRequest, totalCaptureResult); + if (!g() && System.currentTimeMillis() > this.e + this.f) { + this.g.a(cVar); + } + } + + @Override // b.o.a.n.o.d, b.o.a.n.o.e + public void j(@NonNull c cVar) { + this.e = System.currentTimeMillis(); + super.j(cVar); + } + + @Override // b.o.a.n.o.d + @NonNull + public e m() { + return this.g; + } +} diff --git a/app/src/main/java/b/o/a/n/o/j.java b/app/src/main/java/b/o/a/n/o/j.java new file mode 100644 index 0000000000..b6a7f26682 --- /dev/null +++ b/app/src/main/java/b/o/a/n/o/j.java @@ -0,0 +1,89 @@ +package b.o.a.n.o; + +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import java.util.ArrayList; +import java.util.List; +/* compiled from: TogetherAction */ +@RequiresApi(21) +public class j extends e { + public final List e; + public final List f; + + /* compiled from: TogetherAction */ + public class a implements b { + public a() { + } + + @Override // b.o.a.n.o.b + public void a(@NonNull a aVar, int i) { + if (i == Integer.MAX_VALUE) { + j.this.f.remove(aVar); + } + if (j.this.f.isEmpty()) { + j.this.l(Integer.MAX_VALUE); + } + } + } + + public j(@NonNull List list) { + this.e = new ArrayList(list); + this.f = new ArrayList(list); + for (e eVar : list) { + eVar.f(new a()); + } + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + for (e eVar : this.e) { + if (!eVar.g()) { + eVar.b(cVar, captureRequest, totalCaptureResult); + } + } + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void c(@NonNull c cVar, @NonNull CaptureRequest captureRequest) { + if (this.d) { + j(cVar); + this.d = false; + } + for (e eVar : this.e) { + if (!eVar.g()) { + eVar.c(cVar, captureRequest); + } + } + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void d(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull CaptureResult captureResult) { + for (e eVar : this.e) { + if (!eVar.g()) { + eVar.d(cVar, captureRequest, captureResult); + } + } + } + + @Override // b.o.a.n.o.e + public void h(@NonNull c cVar) { + for (e eVar : this.e) { + if (!eVar.g()) { + eVar.h(cVar); + } + } + } + + @Override // b.o.a.n.o.e + public void j(@NonNull c cVar) { + this.c = cVar; + for (e eVar : this.e) { + if (!eVar.g()) { + eVar.j(cVar); + } + } + } +} diff --git a/app/src/main/java/b/o/a/n/p/a.java b/app/src/main/java/b/o/a/n/p/a.java new file mode 100644 index 0000000000..3c81ef7571 --- /dev/null +++ b/app/src/main/java/b/o/a/n/p/a.java @@ -0,0 +1,26 @@ +package b.o.a.n.p; + +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.n.o.c; +import b.o.a.n.o.e; +/* compiled from: BaseLock */ +@RequiresApi(21) +public abstract class a extends e { + @Override // b.o.a.n.o.e + public final void j(@NonNull c cVar) { + this.c = cVar; + boolean n = n(cVar); + if (!m(cVar) || n) { + l(Integer.MAX_VALUE); + } else { + o(cVar); + } + } + + public abstract boolean m(@NonNull c cVar); + + public abstract boolean n(@NonNull c cVar); + + public abstract void o(@NonNull c cVar); +} diff --git a/app/src/main/java/b/o/a/n/p/b.java b/app/src/main/java/b/o/a/n/p/b.java new file mode 100644 index 0000000000..6389356bfc --- /dev/null +++ b/app/src/main/java/b/o/a/n/p/b.java @@ -0,0 +1,55 @@ +package b.o.a.n.p; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import android.os.Build; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.n.d; +import b.o.a.n.o.c; +/* compiled from: ExposureLock */ +@RequiresApi(21) +public class b extends a { + public static final b.o.a.b e = new b.o.a.b(b.class.getSimpleName()); + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_STATE); + e.a(1, "processCapture:", "aeState:", num); + if (num != null && num.intValue() == 3) { + l(Integer.MAX_VALUE); + } + } + + @Override // b.o.a.n.p.a + public boolean m(@NonNull c cVar) { + boolean z2 = ((Integer) k(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL, -1)).intValue() != 2; + Integer num = (Integer) ((d) cVar).f1906i0.get(CaptureRequest.CONTROL_AE_MODE); + boolean z3 = z2 && (num != null && (num.intValue() == 1 || num.intValue() == 3 || num.intValue() == 2 || num.intValue() == 4 || num.intValue() == 5)); + e.a(1, "checkIsSupported:", Boolean.valueOf(z3)); + return z3; + } + + @Override // b.o.a.n.p.a + public boolean n(@NonNull c cVar) { + TotalCaptureResult totalCaptureResult = ((d) cVar).f1907j0; + if (totalCaptureResult != null) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_STATE); + boolean z2 = num != null && num.intValue() == 3; + e.a(1, "checkShouldSkip:", Boolean.valueOf(z2)); + return z2; + } + e.a(1, "checkShouldSkip: false - lastResult is null."); + return false; + } + + @Override // b.o.a.n.p.a + public void o(@NonNull c cVar) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER, Integer.valueOf(Build.VERSION.SDK_INT >= 23 ? 2 : 0)); + d dVar = (d) cVar; + dVar.f1906i0.set(CaptureRequest.CONTROL_AE_LOCK, Boolean.TRUE); + dVar.k1(); + } +} diff --git a/app/src/main/java/b/o/a/n/p/c.java b/app/src/main/java/b/o/a/n/p/c.java new file mode 100644 index 0000000000..29dc61201d --- /dev/null +++ b/app/src/main/java/b/o/a/n/p/c.java @@ -0,0 +1,61 @@ +package b.o.a.n.p; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.d; +/* compiled from: FocusLock */ +@RequiresApi(21) +public class c extends a { + public static final b e = new b(c.class.getSimpleName()); + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull b.o.a.n.o.c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE); + Integer num2 = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_MODE); + e.a(1, "onCapture:", "afState:", num, "afMode:", num2); + if (num != null && num2 != null && num2.intValue() == 1) { + int intValue = num.intValue(); + if (intValue == 0 || intValue == 2 || intValue == 4 || intValue == 5 || intValue == 6) { + l(Integer.MAX_VALUE); + } + } + } + + @Override // b.o.a.n.p.a + public boolean m(@NonNull b.o.a.n.o.c cVar) { + for (int i : (int[]) k(CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES, new int[0])) { + if (i == 1) { + return true; + } + } + return false; + } + + @Override // b.o.a.n.p.a + public boolean n(@NonNull b.o.a.n.o.c cVar) { + TotalCaptureResult totalCaptureResult = ((d) cVar).f1907j0; + if (totalCaptureResult != null) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE); + boolean z2 = num != null && (num.intValue() == 4 || num.intValue() == 5 || num.intValue() == 0 || num.intValue() == 2 || num.intValue() == 6); + Integer num2 = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_MODE); + boolean z3 = z2 && (num2 != null && num2.intValue() == 1); + e.a(1, "checkShouldSkip:", Boolean.valueOf(z3)); + return z3; + } + e.a(1, "checkShouldSkip: false - lastResult is null."); + return false; + } + + @Override // b.o.a.n.p.a + public void o(@NonNull b.o.a.n.o.c cVar) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AF_MODE, 1); + d dVar = (d) cVar; + dVar.f1906i0.set(CaptureRequest.CONTROL_AF_TRIGGER, 2); + dVar.k1(); + } +} diff --git a/app/src/main/java/b/o/a/n/p/d.java b/app/src/main/java/b/o/a/n/p/d.java new file mode 100644 index 0000000000..d881008e85 --- /dev/null +++ b/app/src/main/java/b/o/a/n/p/d.java @@ -0,0 +1,17 @@ +package b.o.a.n.p; + +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.i.a.f.e.o.f; +import b.o.a.n.o.e; +/* compiled from: LockAction */ +@RequiresApi(21) +public class d extends b.o.a.n.o.d { + public final e e = f.p1(new b(), new c(), new e()); + + @Override // b.o.a.n.o.d + @NonNull + public e m() { + return this.e; + } +} diff --git a/app/src/main/java/b/o/a/n/p/e.java b/app/src/main/java/b/o/a/n/p/e.java new file mode 100644 index 0000000000..8e2686d1e9 --- /dev/null +++ b/app/src/main/java/b/o/a/n/p/e.java @@ -0,0 +1,53 @@ +package b.o.a.n.p; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.d; +import b.o.a.n.o.c; +/* compiled from: WhiteBalanceLock */ +@RequiresApi(21) +public class e extends a { + public static final b e = new b(e.class.getSimpleName()); + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AWB_STATE); + e.a(1, "processCapture:", "awbState:", num); + if (num != null && num.intValue() == 3) { + l(Integer.MAX_VALUE); + } + } + + @Override // b.o.a.n.p.a + public boolean m(@NonNull c cVar) { + boolean z2 = ((Integer) k(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL, -1)).intValue() != 2; + Integer num = (Integer) ((d) cVar).f1906i0.get(CaptureRequest.CONTROL_AWB_MODE); + boolean z3 = z2 && num != null && num.intValue() == 1; + e.a(1, "checkIsSupported:", Boolean.valueOf(z3)); + return z3; + } + + @Override // b.o.a.n.p.a + public boolean n(@NonNull c cVar) { + TotalCaptureResult totalCaptureResult = ((d) cVar).f1907j0; + if (totalCaptureResult != null) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AWB_STATE); + boolean z2 = num != null && num.intValue() == 3; + e.a(1, "checkShouldSkip:", Boolean.valueOf(z2)); + return z2; + } + e.a(1, "checkShouldSkip: false - lastResult is null."); + return false; + } + + @Override // b.o.a.n.p.a + public void o(@NonNull c cVar) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AWB_LOCK, Boolean.TRUE); + ((d) cVar).k1(); + } +} diff --git a/app/src/main/java/b/o/a/n/q/a.java b/app/src/main/java/b/o/a/n/q/a.java new file mode 100644 index 0000000000..495ab95bb1 --- /dev/null +++ b/app/src/main/java/b/o/a/n/q/a.java @@ -0,0 +1,63 @@ +package b.o.a.n.q; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.o.a.m.c; +import b.o.a.m.e; +import b.o.a.m.f; +import b.o.a.m.h; +import b.o.a.m.m; +import java.util.HashMap; +import java.util.Map; +/* compiled from: Camera1Mapper */ +public class a { + public static a a; + + /* renamed from: b reason: collision with root package name */ + public static final Map f1921b; + public static final Map c; + public static final Map d; + public static final Map e; + + static { + HashMap hashMap = new HashMap(); + f1921b = hashMap; + HashMap hashMap2 = new HashMap(); + c = hashMap2; + HashMap hashMap3 = new HashMap(); + d = hashMap3; + HashMap hashMap4 = new HashMap(); + e = hashMap4; + hashMap.put(f.OFF, "off"); + hashMap.put(f.ON, "on"); + hashMap.put(f.AUTO, "auto"); + hashMap.put(f.TORCH, "torch"); + hashMap3.put(e.BACK, 0); + hashMap3.put(e.FRONT, 1); + hashMap2.put(m.AUTO, "auto"); + hashMap2.put(m.INCANDESCENT, "incandescent"); + hashMap2.put(m.FLUORESCENT, "fluorescent"); + hashMap2.put(m.DAYLIGHT, "daylight"); + hashMap2.put(m.CLOUDY, "cloudy-daylight"); + hashMap4.put(h.OFF, "auto"); + hashMap4.put(h.ON, "hdr"); + } + + @NonNull + public static a a() { + if (a == null) { + a = new a(); + } + return a; + } + + @Nullable + public final C b(@NonNull Map map, @NonNull T t) { + for (C c2 : map.keySet()) { + if (t.equals(map.get(c2))) { + return c2; + } + } + return null; + } +} diff --git a/app/src/main/java/b/o/a/n/q/b.java b/app/src/main/java/b/o/a/n/q/b.java new file mode 100644 index 0000000000..ddcac808f9 --- /dev/null +++ b/app/src/main/java/b/o/a/n/q/b.java @@ -0,0 +1,49 @@ +package b.o.a.n.q; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.o.a.m.c; +import b.o.a.m.e; +import b.o.a.m.h; +import b.o.a.m.m; +import java.util.HashMap; +import java.util.Map; +/* compiled from: Camera2Mapper */ +@RequiresApi(21) +public class b { + public static b a; + + /* renamed from: b reason: collision with root package name */ + public static final Map f1922b; + public static final Map c; + public static final Map d; + + static { + HashMap hashMap = new HashMap(); + f1922b = hashMap; + HashMap hashMap2 = new HashMap(); + c = hashMap2; + HashMap hashMap3 = new HashMap(); + d = hashMap3; + hashMap.put(e.BACK, 1); + hashMap.put(e.FRONT, 0); + hashMap2.put(m.AUTO, 1); + hashMap2.put(m.CLOUDY, 6); + hashMap2.put(m.DAYLIGHT, 5); + hashMap2.put(m.FLUORESCENT, 3); + hashMap2.put(m.INCANDESCENT, 2); + hashMap3.put(h.OFF, 0); + hashMap3.put(h.ON, 18); + } + + @Nullable + public final C a(@NonNull Map map, @NonNull T t) { + for (C c2 : map.keySet()) { + if (t.equals(map.get(c2))) { + return c2; + } + } + return null; + } +} diff --git a/app/src/main/java/b/o/a/n/r/a.java b/app/src/main/java/b/o/a/n/r/a.java new file mode 100644 index 0000000000..546bfc3159 --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/a.java @@ -0,0 +1,42 @@ +package b.o.a.n.r; + +import android.hardware.camera2.params.MeteringRectangle; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.o.c; +import b.o.a.n.o.e; +import java.util.List; +/* compiled from: BaseMeter */ +@RequiresApi(21) +public abstract class a extends e { + public static final b e = new b(a.class.getSimpleName()); + public final List f; + public boolean g; + public boolean h; + + public a(@NonNull List list, boolean z2) { + this.f = list; + this.h = z2; + } + + @Override // b.o.a.n.o.e + public final void j(@NonNull c cVar) { + this.c = cVar; + boolean z2 = this.h && n(cVar); + if (!m(cVar) || z2) { + e.a(1, "onStart:", "not supported or skipped. Dispatching COMPLETED state."); + this.g = true; + l(Integer.MAX_VALUE); + return; + } + e.a(1, "onStart:", "supported and not skipped. Dispatching onStarted."); + o(cVar, this.f); + } + + public abstract boolean m(@NonNull c cVar); + + public abstract boolean n(@NonNull c cVar); + + public abstract void o(@NonNull c cVar, @NonNull List list); +} diff --git a/app/src/main/java/b/o/a/n/r/b.java b/app/src/main/java/b/o/a/n/r/b.java new file mode 100644 index 0000000000..c5b1845d20 --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/b.java @@ -0,0 +1,31 @@ +package b.o.a.n.r; + +import android.graphics.Rect; +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.params.MeteringRectangle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.o.a.n.o.c; +import b.o.a.n.o.e; +/* compiled from: BaseReset */ +@RequiresApi(21) +public abstract class b extends e { + public boolean e; + + public b(boolean z2) { + this.e = z2; + } + + @Override // b.o.a.n.o.e + public final void j(@NonNull c cVar) { + this.c = cVar; + MeteringRectangle meteringRectangle = null; + if (this.e) { + meteringRectangle = new MeteringRectangle((Rect) k(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE, new Rect()), 0); + } + m(cVar, meteringRectangle); + } + + public abstract void m(@NonNull c cVar, @Nullable MeteringRectangle meteringRectangle); +} diff --git a/app/src/main/java/b/o/a/n/r/c.java b/app/src/main/java/b/o/a/n/r/c.java new file mode 100644 index 0000000000..6fbf53332d --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/c.java @@ -0,0 +1,111 @@ +package b.o.a.n.r; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import android.hardware.camera2.params.MeteringRectangle; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.d; +import java.util.List; +/* compiled from: ExposureMeter */ +@RequiresApi(21) +public class c extends a { + public static final b i = new b(c.class.getSimpleName()); + public boolean j = false; + public boolean k = false; + + public c(@NonNull List list, boolean z2) { + super(list, z2); + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull b.o.a.n.o.c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_STATE); + Integer num2 = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER); + i.a(1, "onCaptureCompleted:", "aeState:", num, "aeTriggerState:", num2); + if (num != null) { + if (this.f1920b == 0) { + int intValue = num.intValue(); + if (intValue != 2) { + if (intValue == 3) { + this.g = false; + l(Integer.MAX_VALUE); + } else if (intValue != 4) { + if (intValue == 5) { + l(1); + } + } + } + if (num2 != null && num2.intValue() == 1) { + this.g = true; + l(Integer.MAX_VALUE); + } + } + if (this.f1920b == 1) { + int intValue2 = num.intValue(); + if (intValue2 != 2) { + if (intValue2 == 3) { + this.g = false; + l(Integer.MAX_VALUE); + return; + } else if (intValue2 != 4) { + return; + } + } + this.g = true; + l(Integer.MAX_VALUE); + } + } + } + + @Override // b.o.a.n.o.e + public void i(@NonNull b.o.a.n.o.c cVar) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER, null); + } + + @Override // b.o.a.n.r.a + public boolean m(@NonNull b.o.a.n.o.c cVar) { + boolean z2 = ((Integer) k(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL, -1)).intValue() == 2; + Integer num = (Integer) ((d) cVar).f1906i0.get(CaptureRequest.CONTROL_AE_MODE); + boolean z3 = num != null && (num.intValue() == 1 || num.intValue() == 3 || num.intValue() == 2 || num.intValue() == 4 || num.intValue() == 5); + this.k = !z2; + boolean z4 = ((Integer) k(CameraCharacteristics.CONTROL_MAX_REGIONS_AE, 0)).intValue() > 0; + this.j = z4; + boolean z5 = z3 && (this.k || z4); + i.a(1, "checkIsSupported:", Boolean.valueOf(z5), "trigger:", Boolean.valueOf(this.k), "areas:", Boolean.valueOf(this.j)); + return z5; + } + + @Override // b.o.a.n.r.a + public boolean n(@NonNull b.o.a.n.o.c cVar) { + TotalCaptureResult totalCaptureResult = ((d) cVar).f1907j0; + if (totalCaptureResult != null) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_STATE); + boolean z2 = num != null && num.intValue() == 2; + i.a(1, "checkShouldSkip:", Boolean.valueOf(z2)); + return z2; + } + i.a(1, "checkShouldSkip: false - lastResult is null."); + return false; + } + + @Override // b.o.a.n.r.a + public void o(@NonNull b.o.a.n.o.c cVar, @NonNull List list) { + i.a(1, "onStarted:", "with areas:", list); + if (this.j && !list.isEmpty()) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AE_REGIONS, list.subList(0, Math.min(((Integer) k(CameraCharacteristics.CONTROL_MAX_REGIONS_AE, 0)).intValue(), list.size())).toArray(new MeteringRectangle[0])); + } + if (this.k) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER, 1); + } + ((d) cVar).k1(); + if (this.k) { + l(0); + } else { + l(1); + } + } +} diff --git a/app/src/main/java/b/o/a/n/r/d.java b/app/src/main/java/b/o/a/n/r/d.java new file mode 100644 index 0000000000..2f281cfb88 --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/d.java @@ -0,0 +1,55 @@ +package b.o.a.n.r; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import android.hardware.camera2.params.MeteringRectangle; +import android.os.Build; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.o.c; +/* compiled from: ExposureReset */ +@RequiresApi(21) +public class d extends b { + public static final b f = new b(d.class.getSimpleName()); + + public d() { + super(true); + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + if (this.f1920b == 0) { + ((b.o.a.n.d) cVar).f1906i0.set(CaptureRequest.CONTROL_AE_LOCK, Boolean.FALSE); + ((b.o.a.n.d) cVar).k1(); + l(Integer.MAX_VALUE); + } + } + + @Override // b.o.a.n.r.b + public void m(@NonNull c cVar, @Nullable MeteringRectangle meteringRectangle) { + int intValue = ((Integer) k(CameraCharacteristics.CONTROL_MAX_REGIONS_AE, 0)).intValue(); + if (meteringRectangle != null && intValue > 0) { + ((b.o.a.n.d) cVar).f1906i0.set(CaptureRequest.CONTROL_AE_REGIONS, new MeteringRectangle[]{meteringRectangle}); + } + TotalCaptureResult totalCaptureResult = ((b.o.a.n.d) cVar).f1907j0; + Integer num = totalCaptureResult == null ? null : (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_PRECAPTURE_TRIGGER); + b bVar = f; + int i = 2; + bVar.a(1, "onStarted:", "last precapture trigger is", num); + if (num != null && num.intValue() == 1) { + bVar.a(1, "onStarted:", "canceling precapture."); + if (Build.VERSION.SDK_INT < 23) { + i = 0; + } + ((b.o.a.n.d) cVar).f1906i0.set(CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER, Integer.valueOf(i)); + } + b.o.a.n.d dVar = (b.o.a.n.d) cVar; + dVar.f1906i0.set(CaptureRequest.CONTROL_AE_LOCK, Boolean.TRUE); + dVar.k1(); + l(0); + } +} diff --git a/app/src/main/java/b/o/a/n/r/e.java b/app/src/main/java/b/o/a/n/r/e.java new file mode 100644 index 0000000000..91b7569101 --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/e.java @@ -0,0 +1,75 @@ +package b.o.a.n.r; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import android.hardware.camera2.params.MeteringRectangle; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.d; +import b.o.a.n.o.c; +import java.util.List; +/* compiled from: FocusMeter */ +@RequiresApi(21) +public class e extends a { + public static final b i = new b(e.class.getSimpleName()); + + public e(@NonNull List list, boolean z2) { + super(list, z2); + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE); + i.a(1, "onCaptureCompleted:", "afState:", num); + if (num != null) { + int intValue = num.intValue(); + if (intValue == 4) { + this.g = true; + l(Integer.MAX_VALUE); + } else if (intValue == 5) { + this.g = false; + l(Integer.MAX_VALUE); + } + } + } + + @Override // b.o.a.n.o.e + public void i(@NonNull c cVar) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AF_TRIGGER, null); + } + + @Override // b.o.a.n.r.a + public boolean m(@NonNull c cVar) { + Integer num = (Integer) ((d) cVar).f1906i0.get(CaptureRequest.CONTROL_AF_MODE); + boolean z2 = num != null && (num.intValue() == 1 || num.intValue() == 4 || num.intValue() == 3 || num.intValue() == 2); + i.a(1, "checkIsSupported:", Boolean.valueOf(z2)); + return z2; + } + + @Override // b.o.a.n.r.a + public boolean n(@NonNull c cVar) { + TotalCaptureResult totalCaptureResult = ((d) cVar).f1907j0; + if (totalCaptureResult != null) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_STATE); + boolean z2 = num != null && (num.intValue() == 4 || num.intValue() == 2); + i.a(1, "checkShouldSkip:", Boolean.valueOf(z2)); + return z2; + } + i.a(1, "checkShouldSkip: false - lastResult is null."); + return false; + } + + @Override // b.o.a.n.r.a + public void o(@NonNull c cVar, @NonNull List list) { + i.a(1, "onStarted:", "with areas:", list); + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AF_TRIGGER, 1); + int intValue = ((Integer) k(CameraCharacteristics.CONTROL_MAX_REGIONS_AF, 0)).intValue(); + if (!list.isEmpty() && intValue > 0) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AF_REGIONS, list.subList(0, Math.min(intValue, list.size())).toArray(new MeteringRectangle[0])); + } + ((d) cVar).k1(); + } +} diff --git a/app/src/main/java/b/o/a/n/r/f.java b/app/src/main/java/b/o/a/n/r/f.java new file mode 100644 index 0000000000..1b5c596e97 --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/f.java @@ -0,0 +1,47 @@ +package b.o.a.n.r; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import android.hardware.camera2.params.MeteringRectangle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.d; +import b.o.a.n.o.c; +/* compiled from: FocusReset */ +@RequiresApi(21) +public class f extends b { + public static final b f = new b(f.class.getSimpleName()); + + public f() { + super(true); + } + + @Override // b.o.a.n.r.b + public void m(@NonNull c cVar, @Nullable MeteringRectangle meteringRectangle) { + boolean z2; + int intValue = ((Integer) k(CameraCharacteristics.CONTROL_MAX_REGIONS_AF, 0)).intValue(); + boolean z3 = true; + if (meteringRectangle == null || intValue <= 0) { + z2 = false; + } else { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AF_REGIONS, new MeteringRectangle[]{meteringRectangle}); + z2 = true; + } + TotalCaptureResult totalCaptureResult = ((d) cVar).f1907j0; + Integer num = totalCaptureResult == null ? null : (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AF_TRIGGER); + f.a(2, "onStarted:", "last focus trigger is", num); + if (num == null || num.intValue() != 1) { + z3 = z2; + } else { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AF_TRIGGER, 2); + } + if (z3) { + ((d) cVar).k1(); + } + l(Integer.MAX_VALUE); + } +} diff --git a/app/src/main/java/b/o/a/n/r/g.java b/app/src/main/java/b/o/a/n/r/g.java new file mode 100644 index 0000000000..2cfb1a33c6 --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/g.java @@ -0,0 +1,59 @@ +package b.o.a.n.r; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.i.a.f.e.o.f; +import b.o.a.b; +import b.o.a.n.i; +import b.o.a.n.o.c; +import b.o.a.n.o.d; +import b.o.a.n.o.e; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +/* compiled from: MeterAction */ +@RequiresApi(21) +public class g extends d { + public static final b e = new b(g.class.getSimpleName()); + public List f; + public e g; + public final b.o.a.t.b h; + public final i i; + public final boolean j; + + public g(@NonNull i iVar, @Nullable b.o.a.t.b bVar, boolean z2) { + this.h = bVar; + this.i = iVar; + this.j = z2; + } + + @Override // b.o.a.n.o.d, b.o.a.n.o.e + public void j(@NonNull c cVar) { + b bVar = e; + bVar.a(2, "onStart:", "initializing."); + n(cVar); + bVar.a(2, "onStart:", "initialized."); + super.j(cVar); + } + + @Override // b.o.a.n.o.d + @NonNull + public e m() { + return this.g; + } + + public final void n(@NonNull c cVar) { + List arrayList = new ArrayList(); + if (this.h != null) { + b.o.a.n.d dVar = (b.o.a.n.d) cVar; + b.o.a.n.s.b bVar = new b.o.a.n.s.b(this.i.e(), this.i.z().l(), this.i.C(b.o.a.n.t.b.VIEW), this.i.z().d, dVar.f1904g0, dVar.f1906i0); + arrayList = this.h.c(bVar).b(Integer.MAX_VALUE, bVar); + } + c cVar2 = new c(arrayList, this.j); + e eVar = new e(arrayList, this.j); + i iVar = new i(arrayList, this.j); + this.f = Arrays.asList(cVar2, eVar, iVar); + this.g = f.p1(cVar2, eVar, iVar); + } +} diff --git a/app/src/main/java/b/o/a/n/r/h.java b/app/src/main/java/b/o/a/n/r/h.java new file mode 100644 index 0000000000..75dc6aa769 --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/h.java @@ -0,0 +1,18 @@ +package b.o.a.n.r; + +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.i.a.f.e.o.f; +import b.o.a.n.o.d; +import b.o.a.n.o.e; +/* compiled from: MeterResetAction */ +@RequiresApi(21) +public class h extends d { + public final e e = f.p1(new d(), new f(), new j()); + + @Override // b.o.a.n.o.d + @NonNull + public e m() { + return this.e; + } +} diff --git a/app/src/main/java/b/o/a/n/r/i.java b/app/src/main/java/b/o/a/n/r/i.java new file mode 100644 index 0000000000..52c0bdfd81 --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/i.java @@ -0,0 +1,70 @@ +package b.o.a.n.r; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import android.hardware.camera2.params.MeteringRectangle; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.d; +import b.o.a.n.o.c; +import java.util.List; +/* compiled from: WhiteBalanceMeter */ +@RequiresApi(21) +public class i extends a { + public static final b i = new b(i.class.getSimpleName()); + + public i(@NonNull List list, boolean z2) { + super(list, z2); + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AWB_STATE); + i.a(1, "onCaptureCompleted:", "awbState:", num); + if (num != null) { + int intValue = num.intValue(); + if (intValue == 2) { + this.g = true; + l(Integer.MAX_VALUE); + } else if (intValue == 3) { + this.g = false; + l(Integer.MAX_VALUE); + } + } + } + + @Override // b.o.a.n.r.a + public boolean m(@NonNull c cVar) { + boolean z2 = ((Integer) k(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL, -1)).intValue() != 2; + Integer num = (Integer) ((d) cVar).f1906i0.get(CaptureRequest.CONTROL_AWB_MODE); + boolean z3 = z2 && num != null && num.intValue() == 1; + i.a(1, "checkIsSupported:", Boolean.valueOf(z3)); + return z3; + } + + @Override // b.o.a.n.r.a + public boolean n(@NonNull c cVar) { + TotalCaptureResult totalCaptureResult = ((d) cVar).f1907j0; + if (totalCaptureResult != null) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AWB_STATE); + boolean z2 = num != null && num.intValue() == 2; + i.a(1, "checkShouldSkip:", Boolean.valueOf(z2)); + return z2; + } + i.a(1, "checkShouldSkip: false - lastResult is null."); + return false; + } + + @Override // b.o.a.n.r.a + public void o(@NonNull c cVar, @NonNull List list) { + i.a(1, "onStarted:", "with areas:", list); + int intValue = ((Integer) k(CameraCharacteristics.CONTROL_MAX_REGIONS_AWB, 0)).intValue(); + if (!list.isEmpty() && intValue > 0) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AWB_REGIONS, list.subList(0, Math.min(intValue, list.size())).toArray(new MeteringRectangle[0])); + ((d) cVar).k1(); + } + } +} diff --git a/app/src/main/java/b/o/a/n/r/j.java b/app/src/main/java/b/o/a/n/r/j.java new file mode 100644 index 0000000000..feac0845fe --- /dev/null +++ b/app/src/main/java/b/o/a/n/r/j.java @@ -0,0 +1,31 @@ +package b.o.a.n.r; + +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.params.MeteringRectangle; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.RequiresApi; +import b.o.a.b; +import b.o.a.n.d; +import b.o.a.n.o.c; +/* compiled from: WhiteBalanceReset */ +@RequiresApi(21) +public class j extends b { + public static final b f = new b(j.class.getSimpleName()); + + public j() { + super(true); + } + + @Override // b.o.a.n.r.b + public void m(@NonNull c cVar, @Nullable MeteringRectangle meteringRectangle) { + f.a(2, "onStarted:", "with area:", meteringRectangle); + int intValue = ((Integer) k(CameraCharacteristics.CONTROL_MAX_REGIONS_AWB, 0)).intValue(); + if (meteringRectangle != null && intValue > 0) { + ((d) cVar).f1906i0.set(CaptureRequest.CONTROL_AWB_REGIONS, new MeteringRectangle[]{meteringRectangle}); + ((d) cVar).k1(); + } + l(Integer.MAX_VALUE); + } +} diff --git a/app/src/main/java/b/o/a/n/s/a.java b/app/src/main/java/b/o/a/n/s/a.java new file mode 100644 index 0000000000..10eb9c2649 --- /dev/null +++ b/app/src/main/java/b/o/a/n/s/a.java @@ -0,0 +1,47 @@ +package b.o.a.n.s; + +import android.graphics.PointF; +import android.graphics.Rect; +import android.graphics.RectF; +import android.hardware.Camera; +import androidx.annotation.NonNull; +import b.o.a.b; +import b.o.a.t.c; +/* compiled from: Camera1MeteringTransform */ +public class a implements c { + public static final b a = new b(a.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public final int f1923b; + public final b.o.a.x.b c; + + public a(@NonNull b.o.a.n.t.a aVar, @NonNull b.o.a.x.b bVar) { + this.f1923b = -aVar.c(b.o.a.n.t.b.SENSOR, b.o.a.n.t.b.VIEW, 1); + this.c = bVar; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.o.a.t.c + @NonNull + public Camera.Area a(@NonNull RectF rectF, int i) { + Rect rect = new Rect(); + rectF.round(rect); + return new Camera.Area(rect, i); + } + + @Override // b.o.a.t.c + @NonNull + public PointF b(@NonNull PointF pointF) { + PointF pointF2 = new PointF(); + float f = pointF.x; + b.o.a.x.b bVar = this.c; + pointF2.x = ((f / ((float) bVar.j)) * 2000.0f) - 0.0040893555f; + pointF2.y = ((pointF.y / ((float) bVar.k)) * 2000.0f) - 0.0040893555f; + PointF pointF3 = new PointF(); + double d = (((double) this.f1923b) * 3.141592653589793d) / 180.0d; + pointF3.x = (float) ((Math.cos(d) * ((double) pointF2.x)) - (Math.sin(d) * ((double) pointF2.y))); + pointF3.y = (float) ((Math.cos(d) * ((double) pointF2.y)) + (Math.sin(d) * ((double) pointF2.x))); + a.a(1, "scaled:", pointF2, "rotated:", pointF3); + return pointF3; + } +} diff --git a/app/src/main/java/b/o/a/n/s/b.java b/app/src/main/java/b/o/a/n/s/b.java new file mode 100644 index 0000000000..8e99b6f092 --- /dev/null +++ b/app/src/main/java/b/o/a/n/s/b.java @@ -0,0 +1,128 @@ +package b.o.a.n.s; + +import android.graphics.PointF; +import android.graphics.Rect; +import android.graphics.RectF; +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.params.MeteringRectangle; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.n.t.a; +import b.o.a.t.c; +import com.google.android.material.snackbar.BaseTransientBottomBar; +/* compiled from: Camera2MeteringTransform */ +@RequiresApi(21) +public class b implements c { + public static final b.o.a.b a = new b.o.a.b(b.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public final a f1924b; + public final b.o.a.x.b c; + public final b.o.a.x.b d; + public final boolean e; + public final CameraCharacteristics f; + public final CaptureRequest.Builder g; + + public b(@NonNull a aVar, @NonNull b.o.a.x.b bVar, @NonNull b.o.a.x.b bVar2, boolean z2, @NonNull CameraCharacteristics cameraCharacteristics, @NonNull CaptureRequest.Builder builder) { + this.f1924b = aVar; + this.c = bVar; + this.d = bVar2; + this.e = z2; + this.f = cameraCharacteristics; + this.g = builder; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.o.a.t.c + @NonNull + public MeteringRectangle a(@NonNull RectF rectF, int i) { + Rect rect = new Rect(); + rectF.round(rect); + return new MeteringRectangle(rect, i); + } + + @Override // b.o.a.t.c + @NonNull + public PointF b(@NonNull PointF pointF) { + PointF pointF2 = new PointF(pointF.x, pointF.y); + b.o.a.x.b bVar = this.c; + b.o.a.x.b bVar2 = this.d; + int i = bVar.j; + int i2 = bVar.k; + b.o.a.x.a g = b.o.a.x.a.g(bVar2); + b.o.a.x.a f = b.o.a.x.a.f(bVar.j, bVar.k); + if (this.e) { + if (g.i() > f.i()) { + float i3 = g.i() / f.i(); + float f2 = pointF2.x; + float f3 = (float) bVar.j; + pointF2.x = (((i3 - 1.0f) * f3) / 2.0f) + f2; + i = Math.round(f3 * i3); + } else { + float i4 = f.i() / g.i(); + float f4 = pointF2.y; + float f5 = (float) bVar.k; + pointF2.y = (((i4 - 1.0f) * f5) / 2.0f) + f4; + i2 = Math.round(f5 * i4); + } + } + b.o.a.x.b bVar3 = this.d; + pointF2.x = (((float) bVar3.j) / ((float) i)) * pointF2.x; + pointF2.y = (((float) bVar3.k) / ((float) i2)) * pointF2.y; + int c = this.f1924b.c(b.o.a.n.t.b.SENSOR, b.o.a.n.t.b.VIEW, 1); + boolean z2 = c % BaseTransientBottomBar.ANIMATION_FADE_DURATION != 0; + float f6 = pointF2.x; + float f7 = pointF2.y; + if (c == 0) { + pointF2.x = f6; + pointF2.y = f7; + } else if (c == 90) { + pointF2.x = f7; + pointF2.y = ((float) bVar3.j) - f6; + } else if (c == 180) { + pointF2.x = ((float) bVar3.j) - f6; + pointF2.y = ((float) bVar3.k) - f7; + } else if (c == 270) { + pointF2.x = ((float) bVar3.k) - f7; + pointF2.y = f6; + } else { + throw new IllegalStateException(b.d.b.a.a.p("Unexpected angle ", c)); + } + if (z2) { + bVar3 = bVar3.f(); + } + Rect rect = (Rect) this.g.get(CaptureRequest.SCALER_CROP_REGION); + int width = rect == null ? bVar3.j : rect.width(); + int height = rect == null ? bVar3.k : rect.height(); + pointF2.x = (((float) (width - bVar3.j)) / 2.0f) + pointF2.x; + pointF2.y = (((float) (height - bVar3.k)) / 2.0f) + pointF2.y; + Rect rect2 = (Rect) this.g.get(CaptureRequest.SCALER_CROP_REGION); + pointF2.x += rect2 == null ? 0.0f : (float) rect2.left; + pointF2.y += rect2 == null ? 0.0f : (float) rect2.top; + Rect rect3 = (Rect) this.f.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); + if (rect3 == null) { + rect3 = new Rect(0, 0, width, height); + } + int width2 = rect3.width(); + int height2 = rect3.height(); + b.o.a.b bVar4 = a; + bVar4.a(1, "input:", pointF, "output (before clipping):", pointF2); + if (pointF2.x < 0.0f) { + pointF2.x = 0.0f; + } + if (pointF2.y < 0.0f) { + pointF2.y = 0.0f; + } + float f8 = (float) width2; + if (pointF2.x > f8) { + pointF2.x = f8; + } + float f9 = (float) height2; + if (pointF2.y > f9) { + pointF2.y = f9; + } + bVar4.a(1, "input:", pointF, "output (after clipping):", pointF2); + return pointF2; + } +} diff --git a/app/src/main/java/b/o/a/n/t/a.java b/app/src/main/java/b/o/a/n/t/a.java new file mode 100644 index 0000000000..b00a30d372 --- /dev/null +++ b/app/src/main/java/b/o/a/n/t/a.java @@ -0,0 +1,73 @@ +package b.o.a.n.t; + +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import b.o.a.b; +import b.o.a.m.e; +import com.google.android.material.snackbar.BaseTransientBottomBar; +/* compiled from: Angles */ +public class a { + public static final b a = new b(a.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public e f1925b; + @VisibleForTesting + public int c = 0; + @VisibleForTesting + public int d = 0; + @VisibleForTesting + public int e = 0; + + public final int a(@NonNull b bVar, @NonNull b bVar2) { + if (bVar == bVar2) { + return 0; + } + b bVar3 = b.BASE; + if (bVar2 == bVar3) { + return ((360 - a(bVar2, bVar)) + 360) % 360; + } + if (bVar != bVar3) { + return ((a(bVar3, bVar2) - a(bVar3, bVar)) + 360) % 360; + } + int ordinal = bVar2.ordinal(); + if (ordinal == 1) { + return ((360 - this.c) + 360) % 360; + } + if (ordinal == 2) { + return ((360 - this.d) + 360) % 360; + } + if (ordinal == 3) { + return (this.e + 360) % 360; + } + throw new RuntimeException("Unknown reference: " + bVar2); + } + + public boolean b(@NonNull b bVar, @NonNull b bVar2) { + return c(bVar, bVar2, 1) % BaseTransientBottomBar.ANIMATION_FADE_DURATION != 0; + } + + public int c(@NonNull b bVar, @NonNull b bVar2, @NonNull int i) { + int a2 = a(bVar, bVar2); + return (i == 2 && this.f1925b == e.FRONT) ? ((360 - a2) + 360) % 360 : a2; + } + + public final void d() { + a.a(1, "Angles changed:", "sensorOffset:", Integer.valueOf(this.c), "displayOffset:", Integer.valueOf(this.d), "deviceOrientation:", Integer.valueOf(this.e)); + } + + public final void e(int i) { + if (i != 0 && i != 90 && i != 180 && i != 270) { + throw new IllegalStateException(b.d.b.a.a.p("This value is not sanitized: ", i)); + } + } + + public void f(@NonNull e eVar, int i) { + e(i); + this.f1925b = eVar; + this.c = i; + if (eVar == e.FRONT) { + this.c = ((360 - i) + 360) % 360; + } + d(); + } +} diff --git a/app/src/main/java/b/o/a/n/t/b.java b/app/src/main/java/b/o/a/n/t/b.java new file mode 100644 index 0000000000..0f27d41674 --- /dev/null +++ b/app/src/main/java/b/o/a/n/t/b.java @@ -0,0 +1,8 @@ +package b.o.a.n.t; +/* compiled from: Reference */ +public enum b { + BASE, + SENSOR, + VIEW, + OUTPUT +} diff --git a/app/src/main/java/b/o/a/n/u/a.java b/app/src/main/java/b/o/a/n/u/a.java new file mode 100644 index 0000000000..7dae3af02b --- /dev/null +++ b/app/src/main/java/b/o/a/n/u/a.java @@ -0,0 +1,120 @@ +package b.o.a.n.u; + +import android.hardware.Camera; +import android.media.CamcorderProfile; +import androidx.annotation.NonNull; +import b.o.a.c; +import b.o.a.m.e; +import b.o.a.m.f; +import b.o.a.m.h; +import b.o.a.m.j; +import b.o.a.m.m; +import b.o.a.r.a; +import b.o.a.x.b; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +/* compiled from: Camera1Options */ +public class a extends c { + public a(@NonNull Camera.Parameters parameters, int i, boolean z2) { + CamcorderProfile camcorderProfile; + int i2; + int i3; + b.o.a.n.q.a a = b.o.a.n.q.a.a(); + Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); + int numberOfCameras = Camera.getNumberOfCameras(); + for (int i4 = 0; i4 < numberOfCameras; i4++) { + Camera.getCameraInfo(i4, cameraInfo); + e eVar = (e) a.b(b.o.a.n.q.a.d, Integer.valueOf(cameraInfo.facing)); + if (eVar != null) { + this.f1896b.add(eVar); + } + } + List supportedWhiteBalance = parameters.getSupportedWhiteBalance(); + if (supportedWhiteBalance != null) { + for (String str : supportedWhiteBalance) { + m mVar = (m) a.b(b.o.a.n.q.a.c, str); + if (mVar != null) { + this.a.add(mVar); + } + } + } + this.c.add(f.OFF); + List supportedFlashModes = parameters.getSupportedFlashModes(); + if (supportedFlashModes != null) { + for (String str2 : supportedFlashModes) { + f fVar = (f) a.b(b.o.a.n.q.a.f1921b, str2); + if (fVar != null) { + this.c.add(fVar); + } + } + } + this.d.add(h.OFF); + List supportedSceneModes = parameters.getSupportedSceneModes(); + if (supportedSceneModes != null) { + for (String str3 : supportedSceneModes) { + h hVar = (h) a.b(b.o.a.n.q.a.e, str3); + if (hVar != null) { + this.d.add(hVar); + } + } + } + this.k = parameters.isZoomSupported(); + this.o = parameters.getSupportedFocusModes().contains("auto"); + float exposureCompensationStep = parameters.getExposureCompensationStep(); + this.m = ((float) parameters.getMinExposureCompensation()) * exposureCompensationStep; + this.n = ((float) parameters.getMaxExposureCompensation()) * exposureCompensationStep; + this.l = (parameters.getMinExposureCompensation() == 0 && parameters.getMaxExposureCompensation() == 0) ? false : true; + for (Camera.Size size : parameters.getSupportedPictureSizes()) { + int i5 = z2 ? size.height : size.width; + int i6 = z2 ? size.width : size.height; + this.e.add(new b(i5, i6)); + this.g.add(b.o.a.x.a.f(i5, i6)); + } + ArrayList arrayList = new ArrayList(b.o.a.r.a.f1933b.keySet()); + Collections.sort(arrayList, new a.C0169a(((long) Integer.MAX_VALUE) * ((long) Integer.MAX_VALUE))); + while (true) { + if (arrayList.size() <= 0) { + camcorderProfile = CamcorderProfile.get(i, 0); + break; + } + int intValue = b.o.a.r.a.f1933b.get((b) arrayList.remove(0)).intValue(); + if (CamcorderProfile.hasProfile(i, intValue)) { + camcorderProfile = CamcorderProfile.get(i, intValue); + break; + } + } + int i7 = camcorderProfile.videoFrameWidth; + int i8 = camcorderProfile.videoFrameHeight; + List supportedVideoSizes = parameters.getSupportedVideoSizes(); + if (supportedVideoSizes != null) { + for (Camera.Size size2 : supportedVideoSizes) { + int i9 = size2.width; + if (i9 <= i7 && (i3 = size2.height) <= i8) { + int i10 = z2 ? i3 : i9; + i9 = !z2 ? i3 : i9; + this.f.add(new b(i10, i9)); + this.h.add(b.o.a.x.a.f(i10, i9)); + } + } + } else { + for (Camera.Size size3 : parameters.getSupportedPreviewSizes()) { + int i11 = size3.width; + if (i11 <= i7 && (i2 = size3.height) <= i8) { + int i12 = z2 ? i2 : i11; + i11 = !z2 ? i2 : i11; + this.f.add(new b(i12, i11)); + this.h.add(b.o.a.x.a.f(i12, i11)); + } + } + } + this.p = Float.MAX_VALUE; + this.q = -3.4028235E38f; + for (int[] iArr : parameters.getSupportedPreviewFpsRange()) { + this.p = Math.min(this.p, ((float) iArr[0]) / 1000.0f); + this.q = Math.max(this.q, ((float) iArr[1]) / 1000.0f); + } + this.i.add(j.JPEG); + this.j.add(17); + } +} diff --git a/app/src/main/java/b/o/a/n/u/b.java b/app/src/main/java/b/o/a/n/u/b.java new file mode 100644 index 0000000000..53457529f6 --- /dev/null +++ b/app/src/main/java/b/o/a/n/u/b.java @@ -0,0 +1,163 @@ +package b.o.a.n.u; + +import android.graphics.ImageFormat; +import android.hardware.camera2.CameraAccessException; +import android.hardware.camera2.CameraCharacteristics; +import android.hardware.camera2.CameraManager; +import android.hardware.camera2.params.StreamConfigurationMap; +import android.media.CamcorderProfile; +import android.media.MediaRecorder; +import android.util.Range; +import android.util.Rational; +import android.util.Size; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.c; +import b.o.a.m.e; +import b.o.a.m.f; +import b.o.a.m.h; +import b.o.a.m.j; +import b.o.a.m.m; +import b.o.a.x.a; +import java.util.HashSet; +import java.util.Objects; +/* compiled from: Camera2Options */ +@RequiresApi(21) +public class b extends c { + public b(@NonNull CameraManager cameraManager, @NonNull String str, boolean z2, int i) throws CameraAccessException { + f fVar = f.OFF; + if (b.o.a.n.q.b.a == null) { + b.o.a.n.q.b.a = new b.o.a.n.q.b(); + } + b.o.a.n.q.b bVar = b.o.a.n.q.b.a; + CameraCharacteristics cameraCharacteristics = cameraManager.getCameraCharacteristics(str); + for (String str2 : cameraManager.getCameraIdList()) { + Integer num = (Integer) cameraManager.getCameraCharacteristics(str2).get(CameraCharacteristics.LENS_FACING); + if (num != null) { + e eVar = (e) bVar.a(b.o.a.n.q.b.f1922b, Integer.valueOf(num.intValue())); + if (eVar != null) { + this.f1896b.add(eVar); + } + } + } + for (int i2 : (int[]) cameraCharacteristics.get(CameraCharacteristics.CONTROL_AWB_AVAILABLE_MODES)) { + m mVar = (m) bVar.a(b.o.a.n.q.b.c, Integer.valueOf(i2)); + if (mVar != null) { + this.a.add(mVar); + } + } + this.c.add(fVar); + Boolean bool = (Boolean) cameraCharacteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); + boolean z3 = true; + if (bool != null && bool.booleanValue()) { + int[] iArr = (int[]) cameraCharacteristics.get(CameraCharacteristics.CONTROL_AE_AVAILABLE_MODES); + for (int i3 : iArr) { + Objects.requireNonNull(bVar); + HashSet hashSet = new HashSet(); + if (i3 == 0 || i3 == 1) { + hashSet.add(fVar); + hashSet.add(f.TORCH); + } else { + if (i3 != 2) { + if (i3 == 3) { + hashSet.add(f.ON); + } else if (i3 != 4) { + } + } + hashSet.add(f.AUTO); + } + this.c.addAll(hashSet); + } + } + this.d.add(h.OFF); + for (int i4 : (int[]) cameraCharacteristics.get(CameraCharacteristics.CONTROL_AVAILABLE_SCENE_MODES)) { + h hVar = (h) bVar.a(b.o.a.n.q.b.d, Integer.valueOf(i4)); + if (hVar != null) { + this.d.add(hVar); + } + } + Float f = (Float) cameraCharacteristics.get(CameraCharacteristics.SCALER_AVAILABLE_MAX_DIGITAL_ZOOM); + if (f != null) { + this.k = f.floatValue() > 1.0f; + } + Integer num2 = (Integer) cameraCharacteristics.get(CameraCharacteristics.CONTROL_MAX_REGIONS_AF); + Integer num3 = (Integer) cameraCharacteristics.get(CameraCharacteristics.CONTROL_MAX_REGIONS_AE); + Integer num4 = (Integer) cameraCharacteristics.get(CameraCharacteristics.CONTROL_MAX_REGIONS_AWB); + this.o = (num2 != null && num2.intValue() > 0) || (num3 != null && num3.intValue() > 0) || (num4 != null && num4.intValue() > 0); + Range range = (Range) cameraCharacteristics.get(CameraCharacteristics.CONTROL_AE_COMPENSATION_RANGE); + Rational rational = (Rational) cameraCharacteristics.get(CameraCharacteristics.CONTROL_AE_COMPENSATION_STEP); + if (!(range == null || rational == null || rational.floatValue() == 0.0f)) { + this.m = ((float) ((Integer) range.getLower()).intValue()) / rational.floatValue(); + this.n = ((float) ((Integer) range.getUpper()).intValue()) / rational.floatValue(); + } + this.l = (this.m == 0.0f || this.n == 0.0f) ? false : true; + StreamConfigurationMap streamConfigurationMap = (StreamConfigurationMap) cameraCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); + if (streamConfigurationMap != null) { + int[] outputFormats = streamConfigurationMap.getOutputFormats(); + int length = outputFormats.length; + int i5 = 0; + while (true) { + if (i5 >= length) { + z3 = false; + break; + } else if (outputFormats[i5] == i) { + break; + } else { + i5++; + } + } + if (z3) { + Size[] outputSizes = streamConfigurationMap.getOutputSizes(i); + for (Size size : outputSizes) { + int height = z2 ? size.getHeight() : size.getWidth(); + int width = z2 ? size.getWidth() : size.getHeight(); + this.e.add(new b.o.a.x.b(height, width)); + this.g.add(a.f(height, width)); + } + CamcorderProfile b2 = b.o.a.r.a.b(str, new b.o.a.x.b(Integer.MAX_VALUE, Integer.MAX_VALUE)); + int i6 = b2.videoFrameWidth; + int i7 = b2.videoFrameHeight; + Size[] outputSizes2 = streamConfigurationMap.getOutputSizes(MediaRecorder.class); + for (Size size2 : outputSizes2) { + if (size2.getWidth() <= i6 && size2.getHeight() <= i7) { + int height2 = z2 ? size2.getHeight() : size2.getWidth(); + int width2 = z2 ? size2.getWidth() : size2.getHeight(); + this.f.add(new b.o.a.x.b(height2, width2)); + this.h.add(a.f(height2, width2)); + } + } + Range[] rangeArr = (Range[]) cameraCharacteristics.get(CameraCharacteristics.CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES); + if (rangeArr != null) { + this.p = Float.MAX_VALUE; + this.q = -3.4028235E38f; + for (Range range2 : rangeArr) { + this.p = Math.min(this.p, (float) ((Integer) range2.getLower()).intValue()); + this.q = Math.max(this.q, (float) ((Integer) range2.getUpper()).intValue()); + } + } else { + this.p = 0.0f; + this.q = 0.0f; + } + this.i.add(j.JPEG); + int[] iArr2 = (int[]) cameraCharacteristics.get(CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES); + if (iArr2 != null) { + for (int i8 : iArr2) { + if (i8 == 3) { + this.i.add(j.DNG); + } + } + } + this.j.add(35); + int[] outputFormats2 = streamConfigurationMap.getOutputFormats(); + for (int i9 : outputFormats2) { + if (ImageFormat.getBitsPerPixel(i9) > 0) { + this.j.add(Integer.valueOf(i9)); + } + } + return; + } + throw new IllegalStateException(b.d.b.a.a.p("Picture format not supported: ", i)); + } + throw new RuntimeException("StreamConfigurationMap is null. Should not happen."); + } +} diff --git a/app/src/main/java/b/o/a/n/v/a.java b/app/src/main/java/b/o/a/n/v/a.java new file mode 100644 index 0000000000..59b6778c4a --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/a.java @@ -0,0 +1,121 @@ +package b.o.a.n.v; + +import androidx.annotation.NonNull; +import b.i.a.f.e.o.f; +import b.o.a.n.i; +import b.o.a.r.g; +import com.google.android.gms.tasks.Task; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Iterator; +import java.util.concurrent.Callable; +/* compiled from: CameraOrchestrator */ +public class a { + public static final b.o.a.b a = new b.o.a.b(a.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public final b f1926b; + public final ArrayDeque> c = new ArrayDeque<>(); + public boolean d = false; + public final Object e = new Object(); + + /* compiled from: CameraOrchestrator */ + /* renamed from: b.o.a.n.v.a$a reason: collision with other inner class name */ + public class CallableC0167a implements Callable> { + public final /* synthetic */ Runnable j; + + public CallableC0167a(a aVar, Runnable runnable) { + this.j = runnable; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public Task call() throws Exception { + this.j.run(); + return f.Y(null); + } + } + + /* compiled from: CameraOrchestrator */ + public interface b { + } + + /* compiled from: CameraOrchestrator */ + public static class c { + public final String a; + + /* renamed from: b reason: collision with root package name */ + public final TaskCompletionSource f1927b = new TaskCompletionSource<>(); + public final Callable> c; + public final boolean d; + public final long e; + + public c(String str, Callable callable, boolean z2, long j, CallableC0167a aVar) { + this.a = str; + this.c = callable; + this.d = z2; + this.e = j; + } + } + + public a(@NonNull b bVar) { + this.f1926b = bVar; + } + + public static void a(a aVar, c cVar) { + if (aVar.d) { + aVar.d = false; + aVar.c.remove(cVar); + g gVar = i.this.k; + gVar.f.postDelayed(new b(aVar), 0); + return; + } + StringBuilder R = b.d.b.a.a.R("mJobRunning was not true after completing job="); + R.append(cVar.a); + throw new IllegalStateException(R.toString()); + } + + @NonNull + public Task b(@NonNull String str, boolean z2, @NonNull Runnable runnable) { + return d(str, z2, 0, new CallableC0167a(this, runnable)); + } + + @NonNull + public Task c(@NonNull String str, boolean z2, long j, @NonNull Runnable runnable) { + return d(str, z2, j, new CallableC0167a(this, runnable)); + } + + @NonNull + public final Task d(@NonNull String str, boolean z2, long j, @NonNull Callable> callable) { + a.a(1, str.toUpperCase(), "- Scheduling."); + c cVar = new c<>(str, callable, z2, System.currentTimeMillis() + j, null); + synchronized (this.e) { + this.c.addLast(cVar); + i.this.k.f.postDelayed(new b(this), j); + } + return cVar.f1927b.a; + } + + public void e(@NonNull String str, int i) { + synchronized (this.e) { + ArrayList arrayList = new ArrayList(); + Iterator> it = this.c.iterator(); + while (it.hasNext()) { + c next = it.next(); + if (next.a.equals(str)) { + arrayList.add(next); + } + } + a.a(0, "trim: name=", str, "scheduled=", Integer.valueOf(arrayList.size()), "allowed=", Integer.valueOf(i)); + int max = Math.max(arrayList.size() - i, 0); + if (max > 0) { + Collections.reverse(arrayList); + for (c cVar : arrayList.subList(0, max)) { + this.c.remove(cVar); + } + } + } + } +} diff --git a/app/src/main/java/b/o/a/n/v/b.java b/app/src/main/java/b/o/a/n/v/b.java new file mode 100644 index 0000000000..f9e4ddf1e1 --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/b.java @@ -0,0 +1,44 @@ +package b.o.a.n.v; + +import b.o.a.n.i; +import b.o.a.n.v.a; +import b.o.a.r.g; +import java.util.Iterator; +/* compiled from: CameraOrchestrator */ +public class b implements Runnable { + public final /* synthetic */ a j; + + public b(a aVar) { + this.j = aVar; + } + + @Override // java.lang.Runnable + public void run() { + a.c cVar; + synchronized (this.j.e) { + cVar = null; + if (!this.j.d) { + long currentTimeMillis = System.currentTimeMillis(); + Iterator> it = this.j.c.iterator(); + while (true) { + if (!it.hasNext()) { + break; + } + a.c next = it.next(); + if (next.e <= currentTimeMillis) { + cVar = next; + break; + } + } + if (cVar != null) { + this.j.d = true; + } + } + } + if (cVar != null) { + a aVar = this.j; + g gVar = i.this.k; + gVar.c(new c(aVar, cVar, gVar)); + } + } +} diff --git a/app/src/main/java/b/o/a/n/v/c.java b/app/src/main/java/b/o/a/n/v/c.java new file mode 100644 index 0000000000..060f554223 --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/c.java @@ -0,0 +1,73 @@ +package b.o.a.n.v; + +import androidx.annotation.NonNull; +import b.o.a.n.i; +import b.o.a.n.v.a; +import b.o.a.r.g; +import com.google.android.gms.tasks.Task; +import java.util.concurrent.CancellationException; +/* compiled from: CameraOrchestrator */ +public class c implements Runnable { + public final /* synthetic */ a.c j; + public final /* synthetic */ g k; + public final /* synthetic */ a l; + + /* compiled from: CameraOrchestrator */ + public class a implements b.i.a.f.n.c { + public a() { + } + + @Override // b.i.a.f.n.c + public void onComplete(@NonNull Task task) { + Exception k = task.k(); + if (k != null) { + a.a.a(2, c.this.j.a.toUpperCase(), "- Finished with ERROR.", k); + c cVar = c.this; + if (cVar.j.d) { + i.b(i.this, k, false); + } + c.this.j.f1927b.a(k); + } else if (task.n()) { + a.a.a(1, c.this.j.a.toUpperCase(), "- Finished because ABORTED."); + c.this.j.f1927b.a(new CancellationException()); + } else { + a.a.a(1, c.this.j.a.toUpperCase(), "- Finished."); + c.this.j.f1927b.b(task.l()); + } + synchronized (c.this.l.e) { + c cVar2 = c.this; + a.a(cVar2.l, cVar2.j); + } + } + } + + public c(a aVar, a.c cVar, g gVar) { + this.l = aVar; + this.j = cVar; + this.k = gVar; + } + + @Override // java.lang.Runnable + public void run() { + try { + a.a.a(1, this.j.a.toUpperCase(), "- Executing."); + Task task = (Task) this.j.c.call(); + g gVar = this.k; + a aVar = new a(); + if (task.o()) { + gVar.c(new d(aVar, task)); + } else { + task.c(gVar.g, aVar); + } + } catch (Exception e) { + a.a.a(1, this.j.a.toUpperCase(), "- Finished with ERROR.", e); + if (this.j.d) { + i.b(i.this, e, false); + } + this.j.f1927b.a(e); + synchronized (this.l.e) { + a.a(this.l, this.j); + } + } + } +} diff --git a/app/src/main/java/b/o/a/n/v/d.java b/app/src/main/java/b/o/a/n/v/d.java new file mode 100644 index 0000000000..ef09d9ff30 --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/d.java @@ -0,0 +1,19 @@ +package b.o.a.n.v; + +import b.i.a.f.n.c; +import com.google.android.gms.tasks.Task; +/* compiled from: CameraOrchestrator */ +public final class d implements Runnable { + public final /* synthetic */ c j; + public final /* synthetic */ Task k; + + public d(c cVar, Task task) { + this.j = cVar; + this.k = task; + } + + @Override // java.lang.Runnable + public void run() { + this.j.onComplete(this.k); + } +} diff --git a/app/src/main/java/b/o/a/n/v/e.java b/app/src/main/java/b/o/a/n/v/e.java new file mode 100644 index 0000000000..3dac0c121d --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/e.java @@ -0,0 +1,20 @@ +package b.o.a.n.v; + +import androidx.annotation.NonNull; +/* compiled from: CameraState */ +public enum e { + OFF(0), + ENGINE(1), + BIND(2), + PREVIEW(3); + + private int mState; + + public e(int i) { + this.mState = i; + } + + public boolean f(@NonNull e eVar) { + return this.mState >= eVar.mState; + } +} diff --git a/app/src/main/java/b/o/a/n/v/f.java b/app/src/main/java/b/o/a/n/v/f.java new file mode 100644 index 0000000000..f2fa7f1917 --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/f.java @@ -0,0 +1,98 @@ +package b.o.a.n.v; + +import androidx.annotation.NonNull; +import b.i.a.f.n.b0; +import b.i.a.f.n.c; +import b.i.a.f.n.g; +import b.o.a.n.i; +import b.o.a.n.v.a; +import com.google.android.gms.tasks.Task; +import java.util.Objects; +import java.util.concurrent.Callable; +/* compiled from: CameraStateOrchestrator */ +public class f extends a { + public e f; + public e g; + public int h = 0; + + /* compiled from: CameraStateOrchestrator */ + public class a implements c { + public final /* synthetic */ int a; + + public a(int i) { + this.a = i; + } + + @Override // b.i.a.f.n.c + public void onComplete(@NonNull Task task) { + int i = this.a; + f fVar = f.this; + if (i == fVar.h) { + fVar.g = fVar.f; + } + } + } + + /* compiled from: CameraStateOrchestrator */ + public class b implements Callable> { + public final /* synthetic */ e j; + public final /* synthetic */ String k; + public final /* synthetic */ e l; + public final /* synthetic */ Callable m; + public final /* synthetic */ boolean n; + + public b(e eVar, String str, e eVar2, Callable callable, boolean z2) { + this.j = eVar; + this.k = str; + this.l = eVar2; + this.m = callable; + this.n = z2; + } + + @Override // java.util.concurrent.Callable + public Object call() throws Exception { + f fVar = f.this; + if (fVar.f == this.j) { + return ((Task) this.m.call()).j(i.this.k.g, new g(this)); + } + a.a.a(2, this.k.toUpperCase(), "- State mismatch, aborting. current:", f.this.f, "from:", this.j, "to:", this.l); + b0 b0Var = new b0(); + b0Var.u(); + return b0Var; + } + } + + public f(@NonNull a.b bVar) { + super(bVar); + e eVar = e.OFF; + this.f = eVar; + this.g = eVar; + } + + @NonNull + public Task f(@NonNull e eVar, @NonNull e eVar2, boolean z2, @NonNull Callable> callable) { + String str; + int i = this.h + 1; + this.h = i; + this.g = eVar2; + boolean z3 = !eVar2.f(eVar); + StringBuilder sb = new StringBuilder(); + if (z3) { + sb.append(eVar.name()); + sb.append(" << "); + sb.append(eVar2.name()); + str = sb.toString(); + } else { + sb.append(eVar.name()); + sb.append(" >> "); + sb.append(eVar2.name()); + str = sb.toString(); + } + Task d = d(str, z2, 0, new b(eVar, str, eVar2, callable, z3)); + a aVar = new a(i); + b0 b0Var = (b0) d; + Objects.requireNonNull(b0Var); + b0Var.c(g.a, aVar); + return b0Var; + } +} diff --git a/app/src/main/java/b/o/a/n/v/g.java b/app/src/main/java/b/o/a/n/v/g.java new file mode 100644 index 0000000000..fa5edab801 --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/g.java @@ -0,0 +1,23 @@ +package b.o.a.n.v; + +import androidx.annotation.NonNull; +import b.i.a.f.n.a; +import b.o.a.n.v.f; +import com.google.android.gms.tasks.Task; +/* compiled from: CameraStateOrchestrator */ +public class g implements a> { + public final /* synthetic */ f.b a; + + public g(f.b bVar) { + this.a = bVar; + } + + @Override // b.i.a.f.n.a + public Object a(@NonNull Task task) throws Exception { + if (task.p() || this.a.n) { + f.b bVar = this.a; + f.this.f = bVar.l; + } + return task; + } +} diff --git a/app/src/main/java/b/o/a/n/v/h.java b/app/src/main/java/b/o/a/n/v/h.java new file mode 100644 index 0000000000..6f87f8875a --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/h.java @@ -0,0 +1,20 @@ +package b.o.a.n.v; +/* compiled from: CameraStateOrchestrator */ +public class h implements Runnable { + public final /* synthetic */ e j; + public final /* synthetic */ Runnable k; + public final /* synthetic */ f l; + + public h(f fVar, e eVar, Runnable runnable) { + this.l = fVar; + this.j = eVar; + this.k = runnable; + } + + @Override // java.lang.Runnable + public void run() { + if (this.l.f.f(this.j)) { + this.k.run(); + } + } +} diff --git a/app/src/main/java/b/o/a/n/v/i.java b/app/src/main/java/b/o/a/n/v/i.java new file mode 100644 index 0000000000..274df3685f --- /dev/null +++ b/app/src/main/java/b/o/a/n/v/i.java @@ -0,0 +1,20 @@ +package b.o.a.n.v; +/* compiled from: CameraStateOrchestrator */ +public class i implements Runnable { + public final /* synthetic */ e j; + public final /* synthetic */ Runnable k; + public final /* synthetic */ f l; + + public i(f fVar, e eVar, Runnable runnable) { + this.l = fVar; + this.j = eVar; + this.k = runnable; + } + + @Override // java.lang.Runnable + public void run() { + if (this.l.f.f(this.j)) { + this.k.run(); + } + } +} diff --git a/app/src/main/java/b/o/a/o/a.java b/app/src/main/java/b/o/a/o/a.java new file mode 100644 index 0000000000..0f18bd63f5 --- /dev/null +++ b/app/src/main/java/b/o/a/o/a.java @@ -0,0 +1,206 @@ +package b.o.a.o; + +import android.graphics.RectF; +import android.opengl.GLES20; +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import b.o.a.b; +import b.o.b.c.f; +import b.o.b.d.c; +import b.o.b.d.d; +import d0.p; +import d0.z.d.m; +import java.nio.Buffer; +import java.nio.FloatBuffer; +import java.util.Objects; +/* compiled from: BaseFilter */ +public abstract class a implements b { + public static final b a = new b(a.class.getSimpleName()); + @VisibleForTesting + + /* renamed from: b reason: collision with root package name */ + public d f1929b = null; + public b.o.b.b.b c = null; + @VisibleForTesting + public b.o.a.x.b d; + + @Override // b.o.a.o.b + @NonNull + public b a() { + try { + a aVar = (a) getClass().newInstance(); + b.o.a.x.b bVar = this.d; + if (bVar != null) { + aVar.k(bVar.j, bVar.k); + } + if (this instanceof d) { + ((d) aVar).d(((d) this).i()); + } + if (this instanceof e) { + ((e) aVar).b(((e) this).g()); + } + return aVar; + } catch (IllegalAccessException e) { + throw new RuntimeException("Filters should have a public no-arguments constructor.", e); + } catch (InstantiationException e2) { + throw new RuntimeException("Filters should have a public no-arguments constructor.", e2); + } + } + + @Override // b.o.a.o.b + @NonNull + public String c() { + StringBuilder sb = new StringBuilder(); + sb.append("uniform mat4 "); + sb.append("uMVPMatrix"); + sb.append(";\nuniform mat4 "); + sb.append("uTexMatrix"); + sb.append(";\nattribute vec4 "); + b.d.b.a.a.q0(sb, "aPosition", ";\nattribute vec4 ", "aTextureCoord", ";\nvarying vec2 "); + b.d.b.a.a.q0(sb, "vTextureCoord", ";\nvoid main() {\n gl_Position = ", "uMVPMatrix", " * "); + b.d.b.a.a.q0(sb, "aPosition", ";\n ", "vTextureCoord", " = ("); + sb.append("uTexMatrix"); + sb.append(" * "); + sb.append("aTextureCoord"); + sb.append(").xy;\n}\n"); + return sb.toString(); + } + + @Override // b.o.a.o.b + public void e(long j, @NonNull float[] fArr) { + d dVar = this.f1929b; + if (dVar == null) { + a.a(2, "Filter.draw() called after destroying the filter. This can happen rarely because of threading."); + return; + } + Objects.requireNonNull(dVar); + m.checkNotNullParameter(fArr, ""); + dVar.e = fArr; + d dVar2 = this.f1929b; + b.o.b.b.b bVar = this.c; + float[] fArr2 = bVar.a; + Objects.requireNonNull(dVar2); + m.checkNotNullParameter(bVar, "drawable"); + m.checkNotNullParameter(fArr2, "modelViewProjectionMatrix"); + m.checkNotNullParameter(bVar, "drawable"); + m.checkNotNullParameter(fArr2, "modelViewProjectionMatrix"); + if (bVar instanceof b.o.b.b.a) { + GLES20.glUniformMatrix4fv(dVar2.j.a, 1, false, fArr2, 0); + b.o.b.a.d.b("glUniformMatrix4fv"); + b.o.b.d.b bVar2 = dVar2.f; + if (bVar2 != null) { + GLES20.glUniformMatrix4fv(bVar2.a, 1, false, dVar2.e, 0); + b.o.b.a.d.b("glUniformMatrix4fv"); + } + b.o.b.d.b bVar3 = dVar2.i; + GLES20.glEnableVertexAttribArray(bVar3.f1950b); + b.o.b.a.d.b("glEnableVertexAttribArray"); + b.o.b.b.a aVar = (b.o.b.b.a) bVar; + GLES20.glVertexAttribPointer(bVar3.f1950b, 2, f.a, false, aVar.f1945b * 4, (Buffer) bVar.b()); + b.o.b.a.d.b("glVertexAttribPointer"); + b.o.b.d.b bVar4 = dVar2.h; + if (bVar4 != null) { + if ((!m.areEqual(bVar, dVar2.m)) || dVar2.l != 0) { + dVar2.m = aVar; + dVar2.l = 0; + RectF rectF = dVar2.k; + m.checkNotNullParameter(rectF, "rect"); + float f = -3.4028235E38f; + float f2 = -3.4028235E38f; + float f3 = Float.MAX_VALUE; + float f4 = Float.MAX_VALUE; + int i = 0; + while (aVar.b().hasRemaining()) { + float f5 = aVar.b().get(); + if (i % 2 == 0) { + f3 = Math.min(f3, f5); + f2 = Math.max(f2, f5); + } else { + f = Math.max(f, f5); + f4 = Math.min(f4, f5); + } + i++; + } + aVar.b().rewind(); + rectF.set(f3, f, f2, f4); + int limit = (bVar.b().limit() / aVar.f1945b) * 2; + if (dVar2.g.capacity() < limit) { + FloatBuffer floatBuffer = dVar2.g; + m.checkNotNullParameter(floatBuffer, "$this$dispose"); + if (floatBuffer instanceof b.o.b.g.a) { + ((b.o.b.g.a) floatBuffer).dispose(); + } + dVar2.g = b.i.a.f.e.o.f.W(limit); + } + dVar2.g.clear(); + dVar2.g.limit(limit); + for (int i2 = 0; i2 < limit; i2++) { + boolean z2 = i2 % 2 == 0; + float f6 = bVar.b().get(i2); + RectF rectF2 = dVar2.k; + float f7 = z2 ? rectF2.left : rectF2.bottom; + float f8 = z2 ? rectF2.right : rectF2.top; + int i3 = i2 / 2; + m.checkNotNullParameter(aVar, "drawable"); + dVar2.g.put((((f6 - f7) / (f8 - f7)) * 1.0f) + 0.0f); + } + } + dVar2.g.rewind(); + GLES20.glEnableVertexAttribArray(bVar4.f1950b); + b.o.b.a.d.b("glEnableVertexAttribArray"); + GLES20.glVertexAttribPointer(bVar4.f1950b, 2, f.a, false, aVar.f1945b * 4, (Buffer) dVar2.g); + b.o.b.a.d.b("glVertexAttribPointer"); + } + d dVar3 = this.f1929b; + b.o.b.b.b bVar5 = this.c; + Objects.requireNonNull(dVar3); + m.checkNotNullParameter(bVar5, "drawable"); + bVar5.a(); + d dVar4 = this.f1929b; + b.o.b.b.b bVar6 = this.c; + Objects.requireNonNull(dVar4); + m.checkNotNullParameter(bVar6, "drawable"); + m.checkNotNullParameter(bVar6, "drawable"); + GLES20.glDisableVertexAttribArray(dVar4.i.f1950b); + b.o.b.d.b bVar7 = dVar4.h; + if (bVar7 != null) { + GLES20.glDisableVertexAttribArray(bVar7.f1950b); + } + b.o.b.a.d.b("onPostDraw end"); + return; + } + throw new RuntimeException("GlTextureProgram only supports 2D drawables."); + } + + @Override // b.o.a.o.b + public void f() { + d dVar = this.f1929b; + if (!dVar.a) { + if (dVar.c) { + GLES20.glDeleteProgram(p.m80constructorimpl(dVar.f1949b)); + } + for (c cVar : dVar.d) { + GLES20.glDeleteShader(p.m80constructorimpl(cVar.f1951b)); + } + dVar.a = true; + } + FloatBuffer floatBuffer = dVar.g; + m.checkNotNullParameter(floatBuffer, "$this$dispose"); + if (floatBuffer instanceof b.o.b.g.a) { + ((b.o.b.g.a) floatBuffer).dispose(); + } + this.f1929b = null; + this.c = null; + } + + @Override // b.o.a.o.b + public void j(int i) { + this.f1929b = new d(i, "aPosition", "uMVPMatrix", "aTextureCoord", "uTexMatrix"); + this.c = new b.o.b.b.c(); + } + + @Override // b.o.a.o.b + public void k(int i, int i2) { + this.d = new b.o.a.x.b(i, i2); + } +} diff --git a/app/src/main/java/b/o/a/o/b.java b/app/src/main/java/b/o/a/o/b.java new file mode 100644 index 0000000000..788bd4f719 --- /dev/null +++ b/app/src/main/java/b/o/a/o/b.java @@ -0,0 +1,22 @@ +package b.o.a.o; + +import androidx.annotation.NonNull; +/* compiled from: Filter */ +public interface b { + @NonNull + b a(); + + @NonNull + String c(); + + void e(long j, @NonNull float[] fArr); + + void f(); + + @NonNull + String h(); + + void j(int i); + + void k(int i, int i2); +} diff --git a/app/src/main/java/b/o/a/o/c.java b/app/src/main/java/b/o/a/o/c.java new file mode 100644 index 0000000000..a8624f90d9 --- /dev/null +++ b/app/src/main/java/b/o/a/o/c.java @@ -0,0 +1,11 @@ +package b.o.a.o; + +import androidx.annotation.NonNull; +/* compiled from: NoFilter */ +public final class c extends a { + @Override // b.o.a.o.b + @NonNull + public String h() { + return "#extension GL_OES_EGL_image_external : require\nprecision mediump float;\nvarying vec2 vTextureCoord;\nuniform samplerExternalOES sTexture;\nvoid main() {\n gl_FragColor = texture2D(sTexture, vTextureCoord);\n}\n"; + } +} diff --git a/app/src/main/java/b/o/a/o/d.java b/app/src/main/java/b/o/a/o/d.java new file mode 100644 index 0000000000..f4ae9ea376 --- /dev/null +++ b/app/src/main/java/b/o/a/o/d.java @@ -0,0 +1,7 @@ +package b.o.a.o; +/* compiled from: OneParameterFilter */ +public interface d extends b { + void d(float f); + + float i(); +} diff --git a/app/src/main/java/b/o/a/o/e.java b/app/src/main/java/b/o/a/o/e.java new file mode 100644 index 0000000000..1c73f4bac6 --- /dev/null +++ b/app/src/main/java/b/o/a/o/e.java @@ -0,0 +1,7 @@ +package b.o.a.o; +/* compiled from: TwoParameterFilter */ +public interface e extends d { + void b(float f); + + float g(); +} diff --git a/app/src/main/java/b/o/a/p/a.java b/app/src/main/java/b/o/a/p/a.java new file mode 100644 index 0000000000..5993b2b0f2 --- /dev/null +++ b/app/src/main/java/b/o/a/p/a.java @@ -0,0 +1,56 @@ +package b.o.a.p; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.o.a.n.b; +import java.util.concurrent.LinkedBlockingQueue; +/* compiled from: ByteBufferFrameManager */ +public class a extends c { + public LinkedBlockingQueue i; + public AbstractC0168a j; + public final int k = 0; + + /* compiled from: ByteBufferFrameManager */ + /* renamed from: b.o.a.p.a$a reason: collision with other inner class name */ + public interface AbstractC0168a { + } + + public a(int i, @Nullable AbstractC0168a aVar) { + super(i, byte[].class); + this.j = aVar; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, boolean] */ + @Override // b.o.a.p.c + public void c(@NonNull byte[] bArr, boolean z2) { + byte[] bArr2 = bArr; + if (z2 && bArr2.length == this.c) { + if (this.k == 0) { + ((b) this.j).m1(bArr2); + } else { + this.i.offer(bArr2); + } + } + } + + @Override // b.o.a.p.c + public void d() { + super.d(); + if (this.k == 1) { + this.i.clear(); + } + } + + @Override // b.o.a.p.c + public void e(int i, @NonNull b.o.a.x.b bVar, @NonNull b.o.a.n.t.a aVar) { + super.e(i, bVar, aVar); + int i2 = this.c; + for (int i3 = 0; i3 < this.f1931b; i3++) { + if (this.k == 0) { + ((b) this.j).m1(new byte[i2]); + } else { + this.i.offer(new byte[i2]); + } + } + } +} diff --git a/app/src/main/java/b/o/a/p/b.java b/app/src/main/java/b/o/a/p/b.java new file mode 100644 index 0000000000..825d71d71a --- /dev/null +++ b/app/src/main/java/b/o/a/p/b.java @@ -0,0 +1,42 @@ +package b.o.a.p; + +import androidx.annotation.NonNull; +/* compiled from: Frame */ +public class b { + public static final b.o.a.b a = new b.o.a.b(b.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public final c f1930b; + public Object c = null; + public long d = -1; + public long e = -1; + + public b(@NonNull c cVar) { + this.f1930b = cVar; + } + + public long a() { + if (this.c != null) { + return this.d; + } + a.a(3, "Frame is dead! time:", Long.valueOf(this.d), "lastTime:", Long.valueOf(this.e)); + throw new RuntimeException("You should not access a released frame. If this frame was passed to a FrameProcessor, you can only use its contents synchronously, for the duration of the process() method."); + } + + public void b() { + if (this.c != null) { + a.a(0, "Frame with time", Long.valueOf(this.d), "is being released."); + Object obj = this.c; + this.c = null; + this.d = -1; + c cVar = this.f1930b; + if (cVar.b()) { + cVar.c(obj, cVar.g.offer(this)); + } + } + } + + public boolean equals(Object obj) { + return (obj instanceof b) && ((b) obj).d == this.d; + } +} diff --git a/app/src/main/java/b/o/a/p/c.java b/app/src/main/java/b/o/a/p/c.java new file mode 100644 index 0000000000..b4ec9ff2b9 --- /dev/null +++ b/app/src/main/java/b/o/a/p/c.java @@ -0,0 +1,78 @@ +package b.o.a.p; + +import android.graphics.ImageFormat; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.o.a.b; +import b.o.a.n.t.a; +import java.util.concurrent.LinkedBlockingQueue; +/* compiled from: FrameManager */ +public abstract class c { + public static final b a = new b(c.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public final int f1931b; + public int c = -1; + public b.o.a.x.b d = null; + public int e = -1; + public final Class f; + public LinkedBlockingQueue g; + public a h; + + public c(int i, @NonNull Class cls) { + this.f1931b = i; + this.f = cls; + this.g = new LinkedBlockingQueue<>(i); + } + + @Nullable + public b a(@NonNull T t, long j) { + if (b()) { + b poll = this.g.poll(); + if (poll != null) { + a.a(0, "getFrame for time:", Long.valueOf(j), "RECYCLING."); + a aVar = this.h; + b.o.a.n.t.b bVar = b.o.a.n.t.b.SENSOR; + aVar.c(bVar, b.o.a.n.t.b.OUTPUT, 2); + this.h.c(bVar, b.o.a.n.t.b.VIEW, 2); + poll.c = t; + poll.d = j; + poll.e = j; + return poll; + } + a.a(1, "getFrame for time:", Long.valueOf(j), "NOT AVAILABLE."); + c(t, false); + return null; + } + throw new IllegalStateException("Can't call getFrame() after releasing or before setUp."); + } + + public boolean b() { + return this.d != null; + } + + public abstract void c(@NonNull T t, boolean z2); + + public void d() { + if (!b()) { + a.a(2, "release called twice. Ignoring."); + return; + } + a.a(1, "release: Clearing the frame and buffer queue."); + this.g.clear(); + this.c = -1; + this.d = null; + this.e = -1; + this.h = null; + } + + public void e(int i, @NonNull b.o.a.x.b bVar, @NonNull a aVar) { + this.d = bVar; + this.e = i; + this.c = (int) Math.ceil(((double) ((long) ((bVar.k * bVar.j) * ImageFormat.getBitsPerPixel(i)))) / 8.0d); + for (int i2 = 0; i2 < this.f1931b; i2++) { + this.g.offer(new b(this)); + } + this.h = aVar; + } +} diff --git a/app/src/main/java/b/o/a/p/d.java b/app/src/main/java/b/o/a/p/d.java new file mode 100644 index 0000000000..abfc9c692d --- /dev/null +++ b/app/src/main/java/b/o/a/p/d.java @@ -0,0 +1,9 @@ +package b.o.a.p; + +import androidx.annotation.NonNull; +import androidx.annotation.WorkerThread; +/* compiled from: FrameProcessor */ +public interface d { + @WorkerThread + void a(@NonNull b bVar); +} diff --git a/app/src/main/java/b/o/a/p/e.java b/app/src/main/java/b/o/a/p/e.java new file mode 100644 index 0000000000..15978bda6c --- /dev/null +++ b/app/src/main/java/b/o/a/p/e.java @@ -0,0 +1,21 @@ +package b.o.a.p; + +import android.media.Image; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +/* compiled from: ImageFrameManager */ +@RequiresApi(19) +public class e extends c { + public e(int i) { + super(i, Image.class); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, boolean] */ + @Override // b.o.a.p.c + public void c(@NonNull Image image, boolean z2) { + try { + image.close(); + } catch (Exception unused) { + } + } +} diff --git a/app/src/main/java/b/o/a/q/a.java b/app/src/main/java/b/o/a/q/a.java new file mode 100644 index 0000000000..bea3850317 --- /dev/null +++ b/app/src/main/java/b/o/a/q/a.java @@ -0,0 +1,31 @@ +package b.o.a.q; + +import androidx.annotation.NonNull; +/* compiled from: Gesture */ +/* JADX WARN: Init of enum j can be incorrect */ +/* JADX WARN: Init of enum k can be incorrect */ +/* JADX WARN: Init of enum l can be incorrect */ +/* JADX WARN: Init of enum m can be incorrect */ +/* JADX WARN: Init of enum n can be incorrect */ +public enum a { + PINCH(r1), + TAP(r4), + LONG_TAP(r4), + SCROLL_HORIZONTAL(r1), + SCROLL_VERTICAL(r1); + + private d type; + + static { + d dVar = d.CONTINUOUS; + d dVar2 = d.ONE_SHOT; + } + + public a(@NonNull d dVar) { + this.type = dVar; + } + + public boolean f(@NonNull b bVar) { + return bVar == b.NONE || bVar.g() == this.type; + } +} diff --git a/app/src/main/java/b/o/a/q/b.java b/app/src/main/java/b/o/a/q/b.java new file mode 100644 index 0000000000..871e51c7bf --- /dev/null +++ b/app/src/main/java/b/o/a/q/b.java @@ -0,0 +1,57 @@ +package b.o.a.q; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +/* compiled from: GestureAction */ +/* JADX WARN: Init of enum j can be incorrect */ +/* JADX WARN: Init of enum k can be incorrect */ +/* JADX WARN: Init of enum l can be incorrect */ +/* JADX WARN: Init of enum m can be incorrect */ +/* JADX WARN: Init of enum n can be incorrect */ +/* JADX WARN: Init of enum o can be incorrect */ +/* JADX WARN: Init of enum p can be incorrect */ +/* JADX WARN: Init of enum q can be incorrect */ +public enum b { + NONE(0, r1), + AUTO_FOCUS(1, r1), + TAKE_PICTURE(2, r1), + TAKE_PICTURE_SNAPSHOT(3, r1), + ZOOM(4, r8), + EXPOSURE_CORRECTION(5, r8), + FILTER_CONTROL_1(6, r8), + FILTER_CONTROL_2(7, r8); + + private d type; + private int value; + + static { + d dVar = d.ONE_SHOT; + d dVar2 = d.CONTINUOUS; + } + + public b(int i, @NonNull d dVar) { + this.value = i; + this.type = dVar; + } + + @Nullable + public static b f(int i) { + b[] values = values(); + for (int i2 = 0; i2 < 8; i2++) { + b bVar = values[i2]; + if (bVar.value == i) { + return bVar; + } + } + return null; + } + + @NonNull + public d g() { + return this.type; + } + + public int h() { + return this.value; + } +} diff --git a/app/src/main/java/b/o/a/q/c.java b/app/src/main/java/b/o/a/q/c.java new file mode 100644 index 0000000000..6377abf328 --- /dev/null +++ b/app/src/main/java/b/o/a/q/c.java @@ -0,0 +1,39 @@ +package b.o.a.q; + +import android.graphics.PointF; +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +/* compiled from: GestureFinder */ +public abstract class c { + public boolean a; + @VisibleForTesting + + /* renamed from: b reason: collision with root package name */ + public a f1932b; + public PointF[] c; + + /* compiled from: GestureFinder */ + public interface a { + } + + public c(@NonNull a aVar, int i) { + this.c = new PointF[i]; + for (int i2 = 0; i2 < i; i2++) { + this.c[i2] = new PointF(0.0f, 0.0f); + } + } + + public final float a(float f, float f2, float f3) { + float b2 = b(f, f2, f3); + if (b2 < f2) { + b2 = f2; + } + if (b2 > f3) { + b2 = f3; + } + float f4 = ((f3 - f2) / 50.0f) / 2.0f; + return (b2 < f - f4 || b2 > f4 + f) ? b2 : f; + } + + public abstract float b(float f, float f2, float f3); +} diff --git a/app/src/main/java/b/o/a/q/d.java b/app/src/main/java/b/o/a/q/d.java new file mode 100644 index 0000000000..57d43b28fb --- /dev/null +++ b/app/src/main/java/b/o/a/q/d.java @@ -0,0 +1,6 @@ +package b.o.a.q; +/* compiled from: GestureType */ +public enum d { + ONE_SHOT, + CONTINUOUS +} diff --git a/app/src/main/java/b/o/a/q/e.java b/app/src/main/java/b/o/a/q/e.java new file mode 100644 index 0000000000..061e66b1a1 --- /dev/null +++ b/app/src/main/java/b/o/a/q/e.java @@ -0,0 +1,58 @@ +package b.o.a.q; + +import android.view.MotionEvent; +import android.view.ScaleGestureDetector; +import androidx.annotation.NonNull; +import b.o.a.q.c; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: PinchGestureFinder */ +public class e extends c { + public ScaleGestureDetector d; + public boolean e; + public float f = 0.0f; + + /* compiled from: PinchGestureFinder */ + public class a extends ScaleGestureDetector.SimpleOnScaleGestureListener { + public a() { + } + + @Override // android.view.ScaleGestureDetector.SimpleOnScaleGestureListener, android.view.ScaleGestureDetector.OnScaleGestureListener + public boolean onScale(ScaleGestureDetector scaleGestureDetector) { + e eVar = e.this; + eVar.e = true; + eVar.f = (scaleGestureDetector.getScaleFactor() - 1.0f) * 2.0f; + return true; + } + } + + public e(@NonNull c.a aVar) { + super(aVar, 2); + this.f1932b = a.PINCH; + ScaleGestureDetector scaleGestureDetector = new ScaleGestureDetector(((CameraView.b) aVar).g(), new a()); + this.d = scaleGestureDetector; + scaleGestureDetector.setQuickScaleEnabled(false); + } + + @Override // b.o.a.q.c + public float b(float f, float f2, float f3) { + return b.d.b.a.a.a(f3, f2, this.f, f); + } + + public boolean c(@NonNull MotionEvent motionEvent) { + boolean z2 = false; + if (motionEvent.getAction() == 0) { + this.e = false; + } + this.d.onTouchEvent(motionEvent); + if (this.e) { + this.c[0].x = motionEvent.getX(0); + this.c[0].y = motionEvent.getY(0); + z2 = true; + if (motionEvent.getPointerCount() > 1) { + this.c[1].x = motionEvent.getX(1); + this.c[1].y = motionEvent.getY(1); + } + } + return z2; + } +} diff --git a/app/src/main/java/b/o/a/q/f.java b/app/src/main/java/b/o/a/q/f.java new file mode 100644 index 0000000000..0f47553d6a --- /dev/null +++ b/app/src/main/java/b/o/a/q/f.java @@ -0,0 +1,96 @@ +package b.o.a.q; + +import android.view.GestureDetector; +import android.view.MotionEvent; +import androidx.annotation.NonNull; +import b.o.a.b; +import b.o.a.q.c; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: ScrollGestureFinder */ +public class f extends c { + public static final b d = new b(f.class.getSimpleName()); + public GestureDetector e; + public boolean f; + public float g; + + /* compiled from: ScrollGestureFinder */ + public class a extends GestureDetector.SimpleOnGestureListener { + public final /* synthetic */ c.a j; + + public a(c.a aVar) { + this.j = aVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:20:0x00a3 */ + /* JADX WARNING: Removed duplicated region for block: B:21:0x00ae */ + /* JADX WARNING: Removed duplicated region for block: B:24:0x00bf */ + /* JADX WARNING: Removed duplicated region for block: B:25:0x00c3 */ + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) { + a aVar = a.SCROLL_HORIZONTAL; + b bVar = f.d; + boolean z2 = false; + bVar.a(1, "onScroll:", "distanceX=" + f, "distanceY=" + f2); + if (motionEvent == null || motionEvent2 == null) { + return false; + } + if (motionEvent.getX() == f.this.c[0].x) { + float y2 = motionEvent.getY(); + f fVar = f.this; + if (y2 == fVar.c[0].y) { + if (fVar.f1932b == aVar) { + z2 = true; + } + f.this.c[1].set(motionEvent2.getX(), motionEvent2.getY()); + f fVar2 = f.this; + c.a aVar2 = this.j; + fVar2.g = !z2 ? f / ((float) CameraView.this.getWidth()) : f2 / ((float) CameraView.this.getHeight()); + f fVar3 = f.this; + fVar3.g = !z2 ? -fVar3.g : fVar3.g; + fVar3.f = true; + return true; + } + } + boolean z3 = Math.abs(f) >= Math.abs(f2); + f fVar4 = f.this; + if (!z3) { + aVar = a.SCROLL_VERTICAL; + } + fVar4.f1932b = aVar; + fVar4.c[0].set(motionEvent.getX(), motionEvent.getY()); + z2 = z3; + f.this.c[1].set(motionEvent2.getX(), motionEvent2.getY()); + f fVar2 = f.this; + c.a aVar2 = this.j; + fVar2.g = !z2 ? f / ((float) CameraView.this.getWidth()) : f2 / ((float) CameraView.this.getHeight()); + f fVar3 = f.this; + fVar3.g = !z2 ? -fVar3.g : fVar3.g; + fVar3.f = true; + return true; + } + } + + public f(@NonNull c.a aVar) { + super(aVar, 2); + CameraView.b bVar = (CameraView.b) aVar; + GestureDetector gestureDetector = new GestureDetector(bVar.g(), new a(bVar)); + this.e = gestureDetector; + gestureDetector.setIsLongpressEnabled(false); + } + + @Override // b.o.a.q.c + public float b(float f, float f2, float f3) { + return ((f3 - f2) * this.g * 2.0f) + f; + } + + public boolean c(@NonNull MotionEvent motionEvent) { + if (motionEvent.getAction() == 0) { + this.f = false; + } + this.e.onTouchEvent(motionEvent); + if (this.f) { + d.a(1, "Notifying a gesture of type", this.f1932b.name()); + } + return this.f; + } +} diff --git a/app/src/main/java/b/o/a/q/g.java b/app/src/main/java/b/o/a/q/g.java new file mode 100644 index 0000000000..0e49cb0ebf --- /dev/null +++ b/app/src/main/java/b/o/a/q/g.java @@ -0,0 +1,58 @@ +package b.o.a.q; + +import android.view.GestureDetector; +import android.view.MotionEvent; +import androidx.annotation.NonNull; +import b.o.a.q.c; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: TapGestureFinder */ +public class g extends c { + public GestureDetector d; + public boolean e; + + /* compiled from: TapGestureFinder */ + public class a extends GestureDetector.SimpleOnGestureListener { + public a() { + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public void onLongPress(MotionEvent motionEvent) { + g gVar = g.this; + gVar.e = true; + gVar.f1932b = a.LONG_TAP; + } + + @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener + public boolean onSingleTapUp(MotionEvent motionEvent) { + g gVar = g.this; + gVar.e = true; + gVar.f1932b = a.TAP; + return true; + } + } + + public g(@NonNull c.a aVar) { + super(aVar, 1); + GestureDetector gestureDetector = new GestureDetector(((CameraView.b) aVar).g(), new a()); + this.d = gestureDetector; + gestureDetector.setIsLongpressEnabled(true); + } + + @Override // b.o.a.q.c + public float b(float f, float f2, float f3) { + return 0.0f; + } + + public boolean c(@NonNull MotionEvent motionEvent) { + if (motionEvent.getAction() == 0) { + this.e = false; + } + this.d.onTouchEvent(motionEvent); + if (!this.e) { + return false; + } + this.c[0].x = motionEvent.getX(); + this.c[0].y = motionEvent.getY(); + return true; + } +} diff --git a/app/src/main/java/b/o/a/r/a.java b/app/src/main/java/b/o/a/r/a.java new file mode 100644 index 0000000000..b34096f67f --- /dev/null +++ b/app/src/main/java/b/o/a/r/a.java @@ -0,0 +1,79 @@ +package b.o.a.r; + +import android.annotation.SuppressLint; +import android.media.CamcorderProfile; +import androidx.annotation.NonNull; +import b.o.a.b; +import com.discord.utilities.voice.ScreenShareManager; +import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.Map; +/* compiled from: CamcorderProfiles */ +public class a { + public static final b a = new b(a.class.getSimpleName()); + @SuppressLint({"UseSparseArrays"}) + + /* renamed from: b reason: collision with root package name */ + public static Map f1933b; + + /* compiled from: CamcorderProfiles */ + /* renamed from: b.o.a.r.a$a reason: collision with other inner class name */ + public static class C0169a implements Comparator { + public final /* synthetic */ long j; + + public C0169a(long j) { + this.j = j; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ + @Override // java.util.Comparator + public int compare(b.o.a.x.b bVar, b.o.a.x.b bVar2) { + b.o.a.x.b bVar3 = bVar; + b.o.a.x.b bVar4 = bVar2; + int i = (Math.abs(((long) (bVar3.j * bVar3.k)) - this.j) > Math.abs(((long) (bVar4.j * bVar4.k)) - this.j) ? 1 : (Math.abs(((long) (bVar3.j * bVar3.k)) - this.j) == Math.abs(((long) (bVar4.j * bVar4.k)) - this.j) ? 0 : -1)); + if (i < 0) { + return -1; + } + return i == 0 ? 0 : 1; + } + } + + static { + HashMap hashMap = new HashMap(); + f1933b = hashMap; + hashMap.put(new b.o.a.x.b(176, 144), 2); + f1933b.put(new b.o.a.x.b(320, 240), 7); + f1933b.put(new b.o.a.x.b(352, ScreenShareManager.THUMBNAIL_HEIGHT_PX), 3); + f1933b.put(new b.o.a.x.b(720, 480), 4); + f1933b.put(new b.o.a.x.b(1280, 720), 5); + f1933b.put(new b.o.a.x.b(1920, WidgetEditUserOrGuildMemberProfile.MAX_BANNER_IMAGE_SIZE), 6); + f1933b.put(new b.o.a.x.b(3840, 2160), 8); + } + + @NonNull + public static CamcorderProfile a(int i, @NonNull b.o.a.x.b bVar) { + long j = ((long) bVar.j) * ((long) bVar.k); + ArrayList arrayList = new ArrayList(f1933b.keySet()); + Collections.sort(arrayList, new C0169a(j)); + while (arrayList.size() > 0) { + int intValue = f1933b.get((b.o.a.x.b) arrayList.remove(0)).intValue(); + if (CamcorderProfile.hasProfile(i, intValue)) { + return CamcorderProfile.get(i, intValue); + } + } + return CamcorderProfile.get(i, 0); + } + + @NonNull + public static CamcorderProfile b(@NonNull String str, @NonNull b.o.a.x.b bVar) { + try { + return a(Integer.parseInt(str), bVar); + } catch (NumberFormatException unused) { + a.a(2, "NumberFormatException for Camera2 id:", str); + return CamcorderProfile.get(0); + } + } +} diff --git a/app/src/main/java/b/o/a/r/b.java b/app/src/main/java/b/o/a/r/b.java new file mode 100644 index 0000000000..d6d7200f4a --- /dev/null +++ b/app/src/main/java/b/o/a/r/b.java @@ -0,0 +1,22 @@ +package b.o.a.r; + +import android.util.Range; +import androidx.annotation.RequiresApi; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +/* compiled from: FpsRangeValidator */ +@RequiresApi(21) +public class b { + public static final b.o.a.b a = new b.o.a.b("FpsRangeValidator"); + + /* renamed from: b reason: collision with root package name */ + public static final Map>> f1934b; + + static { + HashMap hashMap = new HashMap(); + f1934b = hashMap; + hashMap.put("Google Pixel 4", Arrays.asList(new Range(15, 60))); + } +} diff --git a/app/src/main/java/b/o/a/r/c.java b/app/src/main/java/b/o/a/r/c.java new file mode 100644 index 0000000000..36e3431687 --- /dev/null +++ b/app/src/main/java/b/o/a/r/c.java @@ -0,0 +1,82 @@ +package b.o.a.r; + +import android.opengl.GLES20; +import androidx.annotation.NonNull; +import b.d.b.a.a; +import b.o.b.a.d; +import b.o.b.c.f; +import b.o.b.f.b; +import d0.p; +import d0.z.d.m; +/* compiled from: GlTextureDrawer */ +public class c { + public final b a; + + /* renamed from: b reason: collision with root package name */ + public float[] f1935b = ((float[]) d.a.clone()); + @NonNull + public b.o.a.o.b c = new b.o.a.o.c(); + public b.o.a.o.b d = null; + public int e = -1; + + public c(@NonNull b bVar) { + this.a = bVar; + } + + public void a(long j) { + if (this.d != null) { + b(); + this.c = this.d; + this.d = null; + } + if (this.e == -1) { + String c = this.c.c(); + String h = this.c.h(); + m.checkNotNullParameter(c, "vertexShaderSource"); + m.checkNotNullParameter(h, "fragmentShaderSource"); + b.o.b.d.c[] cVarArr = {new b.o.b.d.c(f.n, c), new b.o.b.d.c(f.o, h)}; + m.checkNotNullParameter(cVarArr, "shaders"); + int r0 = p.m80constructorimpl(GLES20.glCreateProgram()); + d.b("glCreateProgram"); + if (r0 != 0) { + for (int i = 0; i < 2; i++) { + GLES20.glAttachShader(r0, p.m80constructorimpl(cVarArr[i].f1951b)); + d.b("glAttachShader"); + } + GLES20.glLinkProgram(r0); + int[] iArr = new int[1]; + GLES20.glGetProgramiv(r0, f.m, iArr, 0); + int i2 = iArr[0]; + int i3 = f.a; + if (i2 == 1) { + this.e = r0; + this.c.j(r0); + d.b("program creation"); + } else { + StringBuilder R = a.R("Could not link program: "); + R.append(GLES20.glGetProgramInfoLog(r0)); + String sb = R.toString(); + GLES20.glDeleteProgram(r0); + throw new RuntimeException(sb); + } + } else { + throw new RuntimeException("Could not create program"); + } + } + GLES20.glUseProgram(this.e); + d.b("glUseProgram(handle)"); + this.a.a(); + this.c.e(j, this.f1935b); + this.a.b(); + GLES20.glUseProgram(0); + d.b("glUseProgram(0)"); + } + + public void b() { + if (this.e != -1) { + this.c.f(); + GLES20.glDeleteProgram(this.e); + this.e = -1; + } + } +} diff --git a/app/src/main/java/b/o/a/r/d.java b/app/src/main/java/b/o/a/r/d.java new file mode 100644 index 0000000000..29904e8cb8 --- /dev/null +++ b/app/src/main/java/b/o/a/r/d.java @@ -0,0 +1,89 @@ +package b.o.a.r; + +import android.content.Context; +import android.graphics.Canvas; +import android.graphics.Color; +import android.graphics.drawable.ColorDrawable; +import android.util.TypedValue; +import android.view.View; +import androidx.annotation.ColorInt; +import androidx.annotation.NonNull; +import b.o.a.m.g; +/* compiled from: GridLinesLayout */ +public class d extends View { + public static final int j = Color.argb(160, 255, 255, 255); + public g k; + public int l = j; + public ColorDrawable m = new ColorDrawable(this.l); + public ColorDrawable n = new ColorDrawable(this.l); + public final float o; + + public d(@NonNull Context context) { + super(context, null); + this.o = TypedValue.applyDimension(1, 0.9f, context.getResources().getDisplayMetrics()); + } + + private int getLineCount() { + int ordinal = this.k.ordinal(); + if (ordinal == 1) { + return 2; + } + if (ordinal != 2) { + return ordinal != 3 ? 0 : 2; + } + return 3; + } + + public int getGridColor() { + return this.l; + } + + @NonNull + public g getGridMode() { + return this.k; + } + + @Override // android.view.View + public void onDraw(@NonNull Canvas canvas) { + float f; + super.onDraw(canvas); + int lineCount = getLineCount(); + for (int i = 0; i < lineCount; i++) { + int lineCount2 = getLineCount(); + if (this.k == g.DRAW_PHI) { + f = 0.38196602f; + if (i != 1) { + f = 0.618034f; + } + } else { + f = (1.0f / ((float) (lineCount2 + 1))) * (((float) i) + 1.0f); + } + canvas.translate(0.0f, ((float) getHeight()) * f); + this.m.draw(canvas); + float f2 = -f; + canvas.translate(0.0f, ((float) getHeight()) * f2); + canvas.translate(f * ((float) getWidth()), 0.0f); + this.n.draw(canvas); + canvas.translate(f2 * ((float) getWidth()), 0.0f); + } + } + + @Override // android.view.View + public void onLayout(boolean z2, int i, int i2, int i3, int i4) { + super.onLayout(z2, i, i2, i3, i4); + this.m.setBounds(i, 0, i3, (int) this.o); + this.n.setBounds(0, i2, (int) this.o, i4); + } + + public void setGridColor(@ColorInt int i) { + this.l = i; + this.m.setColor(i); + this.n.setColor(i); + postInvalidate(); + } + + public void setGridMode(@NonNull g gVar) { + this.k = gVar; + postInvalidate(); + } +} diff --git a/app/src/main/java/b/o/a/r/e.java b/app/src/main/java/b/o/a/r/e.java new file mode 100644 index 0000000000..0296c4410b --- /dev/null +++ b/app/src/main/java/b/o/a/r/e.java @@ -0,0 +1,9 @@ +package b.o.a.r; +/* compiled from: Issue514Workaround */ +public class e { + public final int a; + + public e(int i) { + this.a = i; + } +} diff --git a/app/src/main/java/b/o/a/r/f.java b/app/src/main/java/b/o/a/r/f.java new file mode 100644 index 0000000000..bfe3e28ad5 --- /dev/null +++ b/app/src/main/java/b/o/a/r/f.java @@ -0,0 +1,141 @@ +package b.o.a.r; + +import android.content.Context; +import android.hardware.display.DisplayManager; +import android.os.Handler; +import android.os.Looper; +import android.view.OrientationEventListener; +import android.view.WindowManager; +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import b.o.a.j; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: OrientationHelper */ +public class f { + public final Handler a = new Handler(Looper.getMainLooper()); + + /* renamed from: b reason: collision with root package name */ + public final Context f1936b; + public final c c; + @VisibleForTesting + public final OrientationEventListener d; + public int e = -1; + @VisibleForTesting + public final DisplayManager.DisplayListener f; + public int g = -1; + public boolean h; + + /* compiled from: OrientationHelper */ + public class a extends OrientationEventListener { + public a(Context context, int i) { + super(context, i); + } + + /* JADX WARNING: Code restructure failed: missing block: B:3:0x0008, code lost: + if (r6 != -1) goto L_0x002e; + */ + /* JADX WARNING: Removed duplicated region for block: B:22:0x0034 */ + /* JADX WARNING: Removed duplicated region for block: B:28:? A[RETURN, SYNTHETIC] */ + @Override // android.view.OrientationEventListener + public void onOrientationChanged(int i) { + int i2; + f fVar; + if (i == -1) { + i2 = f.this.e; + } else if (i < 315 && i >= 45) { + if (i >= 45 && i < 135) { + i2 = 90; + fVar = f.this; + if (i2 == fVar.e) { + } + } else if (i >= 135 && i < 225) { + i2 = BaseTransientBottomBar.ANIMATION_FADE_DURATION; + fVar = f.this; + if (i2 == fVar.e) { + } + } else if (i >= 225 && i < 315) { + i2 = 270; + fVar = f.this; + if (i2 == fVar.e) { + fVar.e = i2; + CameraView.b bVar = (CameraView.b) fVar.c; + bVar.f3136b.a(1, "onDeviceOrientationChanged", Integer.valueOf(i2)); + CameraView cameraView = CameraView.this; + int i3 = cameraView.f3133x.g; + if (!cameraView.m) { + int i4 = (360 - i3) % 360; + b.o.a.n.t.a e = cameraView.f3134y.e(); + e.e(i4); + e.e = i4; + e.d(); + } else { + b.o.a.n.t.a e2 = cameraView.f3134y.e(); + e2.e(i2); + e2.e = i2; + e2.d(); + } + CameraView.this.t.post(new j(bVar, (i2 + i3) % 360)); + return; + } + return; + } + } + i2 = 0; + fVar = f.this; + if (i2 == fVar.e) { + } + } + } + + /* compiled from: OrientationHelper */ + public class b implements DisplayManager.DisplayListener { + public b() { + } + + @Override // android.hardware.display.DisplayManager.DisplayListener + public void onDisplayAdded(int i) { + } + + @Override // android.hardware.display.DisplayManager.DisplayListener + public void onDisplayChanged(int i) { + f fVar = f.this; + int i2 = fVar.g; + int a = fVar.a(); + if (a != i2) { + f.this.g = a; + boolean z2 = Math.abs(a - i2) != 180; + CameraView.b bVar = (CameraView.b) f.this.c; + bVar.f3136b.a(1, "onDisplayOffsetChanged", Integer.valueOf(a), "recreate:", Boolean.valueOf(z2)); + if (CameraView.this.d() && !z2) { + bVar.f3136b.a(2, "onDisplayOffsetChanged", "restarting the camera."); + CameraView.this.close(); + CameraView.this.open(); + } + } + } + + @Override // android.hardware.display.DisplayManager.DisplayListener + public void onDisplayRemoved(int i) { + } + } + + /* compiled from: OrientationHelper */ + public interface c { + } + + public f(@NonNull Context context, @NonNull c cVar) { + this.f1936b = context; + this.c = cVar; + this.d = new a(context.getApplicationContext(), 3); + this.f = new b(); + } + + public final int a() { + int rotation = ((WindowManager) this.f1936b.getSystemService("window")).getDefaultDisplay().getRotation(); + if (rotation != 1) { + return rotation != 2 ? rotation != 3 ? 0 : 270 : BaseTransientBottomBar.ANIMATION_FADE_DURATION; + } + return 90; + } +} diff --git a/app/src/main/java/b/o/a/r/g.java b/app/src/main/java/b/o/a/r/g.java new file mode 100644 index 0000000000..eb7cf62838 --- /dev/null +++ b/app/src/main/java/b/o/a/r/g.java @@ -0,0 +1,115 @@ +package b.o.a.r; + +import android.os.Handler; +import android.os.HandlerThread; +import androidx.annotation.NonNull; +import java.lang.ref.WeakReference; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.Executor; +/* compiled from: WorkerHandler */ +public class g { + public static final b.o.a.b a = new b.o.a.b(g.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public static final ConcurrentHashMap> f1937b = new ConcurrentHashMap<>(4); + public static g c; + public String d; + public HandlerThread e; + public Handler f = new Handler(this.e.getLooper()); + public Executor g = new b(); + + /* compiled from: WorkerHandler */ + public class a extends HandlerThread { + public a(g gVar, String str) { + super(str); + } + + @Override // java.lang.Thread, java.lang.Object + @NonNull + public String toString() { + return super.toString() + "[" + getThreadId() + "]"; + } + } + + /* compiled from: WorkerHandler */ + public class b implements Executor { + public b() { + } + + @Override // java.util.concurrent.Executor + public void execute(@NonNull Runnable runnable) { + g.this.c(runnable); + } + } + + /* compiled from: WorkerHandler */ + public class c implements Runnable { + public final /* synthetic */ CountDownLatch j; + + public c(g gVar, CountDownLatch countDownLatch) { + this.j = countDownLatch; + } + + @Override // java.lang.Runnable + public void run() { + this.j.countDown(); + } + } + + public g(@NonNull String str) { + this.d = str; + a aVar = new a(this, str); + this.e = aVar; + aVar.setDaemon(true); + this.e.start(); + CountDownLatch countDownLatch = new CountDownLatch(1); + this.f.post(new c(this, countDownLatch)); + try { + countDownLatch.await(); + } catch (InterruptedException unused) { + } + } + + public static void a(@NonNull Runnable runnable) { + g b2 = b("FallbackCameraThread"); + c = b2; + b2.f.post(runnable); + } + + @NonNull + public static g b(@NonNull String str) { + ConcurrentHashMap> concurrentHashMap = f1937b; + if (concurrentHashMap.containsKey(str)) { + g gVar = concurrentHashMap.get(str).get(); + if (gVar == null) { + a.a(2, "get:", "Thread reference died. Removing.", str); + concurrentHashMap.remove(str); + } else if (!gVar.e.isAlive() || gVar.e.isInterrupted()) { + HandlerThread handlerThread = gVar.e; + if (handlerThread.isAlive()) { + handlerThread.interrupt(); + handlerThread.quit(); + } + concurrentHashMap.remove(gVar.d); + a.a(2, "get:", "Thread reference found, but not alive or interrupted.", "Removing.", str); + concurrentHashMap.remove(str); + } else { + a.a(2, "get:", "Reusing cached worker handler.", str); + return gVar; + } + } + a.a(1, "get:", "Creating new handler.", str); + g gVar2 = new g(str); + concurrentHashMap.put(str, new WeakReference<>(gVar2)); + return gVar2; + } + + public void c(@NonNull Runnable runnable) { + if (Thread.currentThread() == this.e) { + runnable.run(); + } else { + this.f.post(runnable); + } + } +} diff --git a/app/src/main/java/b/o/a/s/a.java b/app/src/main/java/b/o/a/s/a.java new file mode 100644 index 0000000000..f77850be95 --- /dev/null +++ b/app/src/main/java/b/o/a/s/a.java @@ -0,0 +1,17 @@ +package b.o.a.s; + +import android.content.Context; +import android.graphics.PointF; +import android.view.View; +import android.view.ViewGroup; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +/* compiled from: AutoFocusMarker */ +public interface a { + void a(@NonNull b bVar, @NonNull PointF pointF); + + @Nullable + View b(@NonNull Context context, @NonNull ViewGroup viewGroup); + + void c(@NonNull b bVar, boolean z2, @NonNull PointF pointF); +} diff --git a/app/src/main/java/b/o/a/s/b.java b/app/src/main/java/b/o/a/s/b.java new file mode 100644 index 0000000000..3b23be2c8b --- /dev/null +++ b/app/src/main/java/b/o/a/s/b.java @@ -0,0 +1,6 @@ +package b.o.a.s; +/* compiled from: AutoFocusTrigger */ +public enum b { + GESTURE, + METHOD +} diff --git a/app/src/main/java/b/o/a/s/c.java b/app/src/main/java/b/o/a/s/c.java new file mode 100644 index 0000000000..20554cb0bc --- /dev/null +++ b/app/src/main/java/b/o/a/s/c.java @@ -0,0 +1,17 @@ +package b.o.a.s; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.view.View; +import android.widget.FrameLayout; +import androidx.annotation.NonNull; +import java.util.HashMap; +/* compiled from: MarkerLayout */ +public class c extends FrameLayout { + @SuppressLint({"UseSparseArrays"}) + public final HashMap j = new HashMap<>(); + + public c(@NonNull Context context) { + super(context); + } +} diff --git a/app/src/main/java/b/o/a/t/a.java b/app/src/main/java/b/o/a/t/a.java new file mode 100644 index 0000000000..0217224412 --- /dev/null +++ b/app/src/main/java/b/o/a/t/a.java @@ -0,0 +1,28 @@ +package b.o.a.t; + +import android.graphics.PointF; +import android.graphics.RectF; +import androidx.annotation.NonNull; +/* compiled from: MeteringRegion */ +public class a implements Comparable { + public final RectF j; + public final int k; + + public a(@NonNull RectF rectF, int i) { + this.j = rectF; + this.k = i; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public int compareTo(@NonNull a aVar) { + return -Integer.valueOf(this.k).compareTo(Integer.valueOf(aVar.k)); + } + + public final void f(@NonNull RectF rectF, @NonNull PointF pointF) { + rectF.left = Math.min(rectF.left, pointF.x); + rectF.top = Math.min(rectF.top, pointF.y); + rectF.right = Math.max(rectF.right, pointF.x); + rectF.bottom = Math.max(rectF.bottom, pointF.y); + } +} diff --git a/app/src/main/java/b/o/a/t/b.java b/app/src/main/java/b/o/a/t/b.java new file mode 100644 index 0000000000..b086dd3569 --- /dev/null +++ b/app/src/main/java/b/o/a/t/b.java @@ -0,0 +1,65 @@ +package b.o.a.t; + +import android.graphics.PointF; +import android.graphics.RectF; +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +/* compiled from: MeteringRegions */ +public class b { + @VisibleForTesting + public final List a; + + public b(@NonNull List list) { + this.a = list; + } + + @NonNull + public static RectF a(@NonNull PointF pointF, float f, float f2) { + float f3 = pointF.x; + float f4 = f / 2.0f; + float f5 = pointF.y; + float f6 = f2 / 2.0f; + return new RectF(f3 - f4, f5 - f6, f3 + f4, f5 + f6); + } + + @NonNull + public List b(int i, @NonNull c cVar) { + ArrayList arrayList = new ArrayList(); + Collections.sort(this.a); + for (a aVar : this.a) { + arrayList.add(cVar.a(aVar.j, aVar.k)); + } + return arrayList.subList(0, Math.min(i, arrayList.size())); + } + + @NonNull + public b c(@NonNull c cVar) { + ArrayList arrayList = new ArrayList(); + for (a aVar : this.a) { + Objects.requireNonNull(aVar); + RectF rectF = new RectF(Float.MAX_VALUE, Float.MAX_VALUE, -3.4028235E38f, -3.4028235E38f); + PointF pointF = new PointF(); + RectF rectF2 = aVar.j; + pointF.set(rectF2.left, rectF2.top); + PointF b2 = cVar.b(pointF); + aVar.f(rectF, b2); + RectF rectF3 = aVar.j; + b2.set(rectF3.right, rectF3.top); + PointF b3 = cVar.b(b2); + aVar.f(rectF, b3); + RectF rectF4 = aVar.j; + b3.set(rectF4.right, rectF4.bottom); + PointF b4 = cVar.b(b3); + aVar.f(rectF, b4); + RectF rectF5 = aVar.j; + b4.set(rectF5.left, rectF5.bottom); + aVar.f(rectF, cVar.b(b4)); + arrayList.add(new a(rectF, aVar.k)); + } + return new b(arrayList); + } +} diff --git a/app/src/main/java/b/o/a/t/c.java b/app/src/main/java/b/o/a/t/c.java new file mode 100644 index 0000000000..0425ff451a --- /dev/null +++ b/app/src/main/java/b/o/a/t/c.java @@ -0,0 +1,13 @@ +package b.o.a.t; + +import android.graphics.PointF; +import android.graphics.RectF; +import androidx.annotation.NonNull; +/* compiled from: MeteringTransform */ +public interface c { + @NonNull + T a(@NonNull RectF rectF, int i); + + @NonNull + PointF b(@NonNull PointF pointF); +} diff --git a/app/src/main/java/b/o/a/u/a.java b/app/src/main/java/b/o/a/u/a.java new file mode 100644 index 0000000000..022001fb09 --- /dev/null +++ b/app/src/main/java/b/o/a/u/a.java @@ -0,0 +1,12 @@ +package b.o.a.u; +/* compiled from: Overlay */ +public interface a { + + /* compiled from: Overlay */ + /* renamed from: b.o.a.u.a$a reason: collision with other inner class name */ + public enum EnumC0170a { + PREVIEW, + PICTURE_SNAPSHOT, + VIDEO_SNAPSHOT + } +} diff --git a/app/src/main/java/b/o/a/u/b.java b/app/src/main/java/b/o/a/u/b.java new file mode 100644 index 0000000000..97380a6aa1 --- /dev/null +++ b/app/src/main/java/b/o/a/u/b.java @@ -0,0 +1,31 @@ +package b.o.a.u; + +import android.graphics.SurfaceTexture; +import android.view.Surface; +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import b.o.a.r.c; +import b.o.a.r.e; +/* compiled from: OverlayDrawer */ +public class b { + public static final b.o.a.b a = new b.o.a.b(b.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public a f1938b; + public SurfaceTexture c; + public Surface d; + @VisibleForTesting + public c e; + public e f; + public final Object g = new Object(); + + public b(@NonNull a aVar, @NonNull b.o.a.x.b bVar) { + this.f1938b = aVar; + this.e = new c(new b.o.b.f.b(33984, 36197, null, 4)); + SurfaceTexture surfaceTexture = new SurfaceTexture(this.e.a.a); + this.c = surfaceTexture; + surfaceTexture.setDefaultBufferSize(bVar.j, bVar.k); + this.d = new Surface(this.c); + this.f = new e(this.e.a.a); + } +} diff --git a/app/src/main/java/b/o/a/u/c.java b/app/src/main/java/b/o/a/u/c.java new file mode 100644 index 0000000000..c7adce9b98 --- /dev/null +++ b/app/src/main/java/b/o/a/u/c.java @@ -0,0 +1,125 @@ +package b.o.a.u; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.content.res.TypedArray; +import android.graphics.Canvas; +import android.util.AttributeSet; +import android.view.View; +import android.widget.FrameLayout; +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import b.o.a.b; +import b.o.a.u.a; +import com.otaliastudios.cameraview.R; +/* compiled from: OverlayLayout */ +@SuppressLint({"CustomViewStyleable"}) +public class c extends FrameLayout implements a { + public static final String j; + public static final b k; + @VisibleForTesting + public a.EnumC0170a l = a.EnumC0170a.PREVIEW; + + /* compiled from: OverlayLayout */ + public static class a extends FrameLayout.LayoutParams { + public boolean a = false; + + /* renamed from: b reason: collision with root package name */ + public boolean f1939b = false; + public boolean c = false; + + public a(@NonNull Context context, @NonNull AttributeSet attributeSet) { + super(context, attributeSet); + TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, R.c.CameraView_Layout); + try { + this.a = obtainStyledAttributes.getBoolean(R.c.CameraView_Layout_layout_drawOnPreview, false); + this.f1939b = obtainStyledAttributes.getBoolean(R.c.CameraView_Layout_layout_drawOnPictureSnapshot, false); + this.c = obtainStyledAttributes.getBoolean(R.c.CameraView_Layout_layout_drawOnVideoSnapshot, false); + } finally { + obtainStyledAttributes.recycle(); + } + } + + @VisibleForTesting + public boolean a(@NonNull a.EnumC0170a aVar) { + return (aVar == a.EnumC0170a.PREVIEW && this.a) || (aVar == a.EnumC0170a.VIDEO_SNAPSHOT && this.c) || (aVar == a.EnumC0170a.PICTURE_SNAPSHOT && this.f1939b); + } + + @Override // java.lang.Object + @NonNull + public String toString() { + StringBuilder sb = new StringBuilder(); + b.d.b.a.a.i0(a.class, sb, "[drawOnPreview:"); + sb.append(this.a); + sb.append(",drawOnPictureSnapshot:"); + sb.append(this.f1939b); + sb.append(",drawOnVideoSnapshot:"); + return b.d.b.a.a.L(sb, this.c, "]"); + } + } + + static { + String simpleName = c.class.getSimpleName(); + j = simpleName; + k = new b(simpleName); + } + + public c(@NonNull Context context) { + super(context); + setWillNotDraw(false); + } + + public void a(@NonNull a.EnumC0170a aVar, @NonNull Canvas canvas) { + synchronized (this) { + this.l = aVar; + int ordinal = aVar.ordinal(); + if (ordinal == 0) { + super.draw(canvas); + } else if (ordinal == 1 || ordinal == 2) { + canvas.save(); + float width = ((float) canvas.getWidth()) / ((float) getWidth()); + float height = ((float) canvas.getHeight()) / ((float) getHeight()); + b bVar = k; + bVar.a(0, "draw", "target:", aVar, "canvas:", canvas.getWidth() + "x" + canvas.getHeight(), "view:", getWidth() + "x" + getHeight(), "widthScale:", Float.valueOf(width), "heightScale:", Float.valueOf(height)); + canvas.scale(width, height); + dispatchDraw(canvas); + canvas.restore(); + } + } + } + + public boolean b(@NonNull a.EnumC0170a aVar) { + for (int i = 0; i < getChildCount(); i++) { + if (((a) getChildAt(i).getLayoutParams()).a(aVar)) { + return true; + } + } + return false; + } + + /* renamed from: c */ + public a generateLayoutParams(AttributeSet attributeSet) { + return new a(getContext(), attributeSet); + } + + @Override // android.view.View + @SuppressLint({"MissingSuperCall"}) + public void draw(Canvas canvas) { + k.a(1, "normal draw called."); + a.EnumC0170a aVar = a.EnumC0170a.PREVIEW; + if (b(aVar)) { + a(aVar, canvas); + } + } + + @Override // android.view.ViewGroup + public boolean drawChild(Canvas canvas, View view, long j2) { + a aVar = (a) view.getLayoutParams(); + if (aVar.a(this.l)) { + k.a(0, "Performing drawing for view:", view.getClass().getSimpleName(), "target:", this.l, "params:", aVar); + return super.drawChild(canvas, view, j2); + } + k.a(0, "Skipping drawing for view:", view.getClass().getSimpleName(), "target:", this.l, "params:", aVar); + return false; + } +} diff --git a/app/src/main/java/b/o/a/v/a.java b/app/src/main/java/b/o/a/v/a.java new file mode 100644 index 0000000000..5cb24bd9ba --- /dev/null +++ b/app/src/main/java/b/o/a/v/a.java @@ -0,0 +1,107 @@ +package b.o.a.v; + +import android.hardware.Camera; +import androidx.annotation.NonNull; +import androidx.exifinterface.media.ExifInterface; +import b.o.a.l; +import b.o.a.n.v.e; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.io.ByteArrayInputStream; +import java.io.IOException; +/* compiled from: Full1PictureRecorder */ +public class a extends c { + public final Camera n; + public final b.o.a.n.b o; + + /* compiled from: Full1PictureRecorder */ + /* renamed from: b.o.a.v.a$a reason: collision with other inner class name */ + public class C0171a implements Camera.ShutterCallback { + public C0171a() { + } + + @Override // android.hardware.Camera.ShutterCallback + public void onShutter() { + c.m.a(1, "take(): got onShutter callback."); + a.this.a(true); + } + } + + /* compiled from: Full1PictureRecorder */ + public class b implements Camera.PictureCallback { + public b() { + } + + @Override // android.hardware.Camera.PictureCallback + public void onPictureTaken(byte[] bArr, Camera camera) { + int i; + c.m.a(1, "take(): got picture callback."); + try { + switch (new ExifInterface(new ByteArrayInputStream(bArr)).getAttributeInt(ExifInterface.TAG_ORIENTATION, 1)) { + case 3: + case 4: + i = BaseTransientBottomBar.ANIMATION_FADE_DURATION; + break; + case 5: + case 6: + i = 90; + break; + case 7: + case 8: + i = 270; + break; + default: + i = 0; + break; + } + } catch (IOException unused) { + } + l.a aVar = a.this.j; + aVar.f = bArr; + aVar.c = i; + c.m.a(1, "take(): starting preview again. ", Thread.currentThread()); + if (a.this.o.n.f.f(e.PREVIEW)) { + camera.setPreviewCallbackWithBuffer(a.this.o); + b.o.a.x.b C = a.this.o.C(b.o.a.n.t.b.SENSOR); + if (C != null) { + b.o.a.p.a l1 = a.this.o.l1(); + b.o.a.n.b bVar = a.this.o; + l1.e(bVar.u, C, bVar.L); + camera.startPreview(); + } else { + throw new IllegalStateException("Preview stream size should never be null here."); + } + } + a.this.b(); + } + } + + public a(@NonNull l.a aVar, @NonNull b.o.a.n.b bVar, @NonNull Camera camera) { + super(aVar, bVar); + this.o = bVar; + this.n = camera; + Camera.Parameters parameters = camera.getParameters(); + parameters.setRotation(this.j.c); + camera.setParameters(parameters); + } + + @Override // b.o.a.v.d + public void b() { + c.m.a(1, "dispatching result. Thread:", Thread.currentThread()); + super.b(); + } + + @Override // b.o.a.v.d + public void c() { + b.o.a.b bVar = c.m; + bVar.a(1, "take() called."); + this.n.setPreviewCallbackWithBuffer(null); + this.o.l1().d(); + try { + this.n.takePicture(new C0171a(), null, null, new b()); + bVar.a(1, "take() returned."); + } catch (Exception e) { + this.l = e; + b(); + } + } +} diff --git a/app/src/main/java/b/o/a/v/b.java b/app/src/main/java/b/o/a/v/b.java new file mode 100644 index 0000000000..89e117b21d --- /dev/null +++ b/app/src/main/java/b/o/a/v/b.java @@ -0,0 +1,227 @@ +package b.o.a.v; + +import android.hardware.camera2.CameraAccessException; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.DngCreator; +import android.hardware.camera2.TotalCaptureResult; +import android.location.Location; +import android.media.Image; +import android.media.ImageReader; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import androidx.exifinterface.media.ExifInterface; +import b.o.a.l; +import b.o.a.m.j; +import b.o.a.n.d; +import b.o.a.n.o.c; +import b.o.a.n.o.e; +import b.o.a.r.g; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.io.BufferedOutputStream; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.nio.ByteBuffer; +/* compiled from: Full2PictureRecorder */ +@RequiresApi(21) +public class b extends c implements ImageReader.OnImageAvailableListener { + public final c n; + public final b.o.a.n.o.a o = new a(); + public final ImageReader p; + public final CaptureRequest.Builder q; + public DngCreator r; + + /* compiled from: Full2PictureRecorder */ + public class a extends e { + public a() { + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + int i; + b bVar = b.this; + if (bVar.j.g == j.DNG) { + bVar.r = new DngCreator(((d) cVar).f1904g0, totalCaptureResult); + b bVar2 = b.this; + DngCreator dngCreator = bVar2.r; + int i2 = bVar2.j.c; + int i3 = (i2 + 360) % 360; + if (i3 == 0) { + i = 1; + } else if (i3 == 90) { + i = 6; + } else if (i3 == 180) { + i = 3; + } else if (i3 == 270) { + i = 8; + } else { + throw new IllegalArgumentException(b.d.b.a.a.p("Invalid orientation: ", i2)); + } + dngCreator.setOrientation(i); + b bVar3 = b.this; + Location location = bVar3.j.f1897b; + if (location != null) { + bVar3.r.setLocation(location); + } + } + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void c(@NonNull c cVar, @NonNull CaptureRequest captureRequest) { + if (this.d) { + j(cVar); + this.d = false; + } + if (captureRequest.getTag() == 2) { + c.m.a(1, "onCaptureStarted:", "Dispatching picture shutter."); + b.this.a(false); + l(Integer.MAX_VALUE); + } + } + + @Override // b.o.a.n.o.e + public void j(@NonNull c cVar) { + this.c = cVar; + b bVar = b.this; + bVar.q.addTarget(bVar.p.getSurface()); + b bVar2 = b.this; + l.a aVar = bVar2.j; + if (aVar.g == j.JPEG) { + bVar2.q.set(CaptureRequest.JPEG_ORIENTATION, Integer.valueOf(aVar.c)); + } + b.this.q.setTag(2); + try { + ((d) cVar).e1(this, b.this.q); + } catch (CameraAccessException e) { + b bVar3 = b.this; + bVar3.j = null; + bVar3.l = e; + bVar3.b(); + l(Integer.MAX_VALUE); + } + } + } + + public b(@NonNull l.a aVar, @NonNull d dVar, @NonNull CaptureRequest.Builder builder, @NonNull ImageReader imageReader) { + super(aVar, dVar); + this.n = dVar; + this.q = builder; + this.p = imageReader; + g b2 = g.b("FallbackCameraThread"); + g.c = b2; + imageReader.setOnImageAvailableListener(this, b2.f); + } + + @Override // b.o.a.v.d + public void c() { + this.o.e(this.n); + } + + public final void d(@NonNull Image image) { + int i = 0; + ByteBuffer buffer = image.getPlanes()[0].getBuffer(); + byte[] bArr = new byte[buffer.remaining()]; + buffer.get(bArr); + l.a aVar = this.j; + aVar.f = bArr; + aVar.c = 0; + try { + int attributeInt = new ExifInterface(new ByteArrayInputStream(this.j.f)).getAttributeInt(ExifInterface.TAG_ORIENTATION, 1); + l.a aVar2 = this.j; + switch (attributeInt) { + case 3: + case 4: + i = BaseTransientBottomBar.ANIMATION_FADE_DURATION; + break; + case 5: + case 6: + i = 90; + break; + case 7: + case 8: + i = 270; + break; + } + aVar2.c = i; + } catch (IOException unused) { + } + } + + public final void e(@NonNull Image image) { + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(byteArrayOutputStream); + try { + this.r.writeImage(bufferedOutputStream, image); + bufferedOutputStream.flush(); + this.j.f = byteArrayOutputStream.toByteArray(); + } catch (IOException e) { + this.r.close(); + try { + bufferedOutputStream.close(); + } catch (IOException unused) { + } + throw new RuntimeException(e); + } + } + + /* JADX WARNING: Removed duplicated region for block: B:22:0x0061 */ + /* JADX WARNING: Removed duplicated region for block: B:26:0x0069 */ + /* JADX WARNING: Removed duplicated region for block: B:29:? A[RETURN, SYNTHETIC] */ + @Override // android.media.ImageReader.OnImageAvailableListener + public void onImageAvailable(ImageReader imageReader) { + Throwable th; + Image image; + Exception e; + b.o.a.b bVar = c.m; + bVar.a(1, "onImageAvailable started."); + Image image2 = null; + try { + image = imageReader.acquireNextImage(); + try { + int ordinal = this.j.g.ordinal(); + if (ordinal == 0) { + d(image); + } else if (ordinal == 1) { + e(image); + } else { + throw new IllegalStateException("Unknown format: " + this.j.g); + } + if (image != null) { + image.close(); + } + bVar.a(1, "onImageAvailable ended."); + b(); + } catch (Exception e2) { + e = e2; + try { + this.j = null; + this.l = e; + b(); + if (image == null) { + image.close(); + } + } catch (Throwable th2) { + th = th2; + image2 = image; + if (image2 != null) { + image2.close(); + } + throw th; + } + } + } catch (Exception e3) { + e = e3; + image = null; + this.j = null; + this.l = e; + b(); + if (image == null) { + } + } catch (Throwable th3) { + th = th3; + if (image2 != null) { + } + throw th; + } + } +} diff --git a/app/src/main/java/b/o/a/v/c.java b/app/src/main/java/b/o/a/v/c.java new file mode 100644 index 0000000000..a1494e2453 --- /dev/null +++ b/app/src/main/java/b/o/a/v/c.java @@ -0,0 +1,15 @@ +package b.o.a.v; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.o.a.b; +import b.o.a.l; +import b.o.a.v.d; +/* compiled from: FullPictureRecorder */ +public abstract class c extends d { + public static final b m = new b(c.class.getSimpleName()); + + public c(@NonNull l.a aVar, @Nullable d.a aVar2) { + super(aVar, aVar2); + } +} diff --git a/app/src/main/java/b/o/a/v/d.java b/app/src/main/java/b/o/a/v/d.java new file mode 100644 index 0000000000..cf974e2a39 --- /dev/null +++ b/app/src/main/java/b/o/a/v/d.java @@ -0,0 +1,56 @@ +package b.o.a.v; + +import android.media.MediaActionSound; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.o.a.h; +import b.o.a.l; +import b.o.a.n.g; +import com.otaliastudios.cameraview.CameraView; +/* compiled from: PictureRecorder */ +public abstract class d { + @VisibleForTesting(otherwise = 4) + public l.a j; + @VisibleForTesting + public a k; + public Exception l; + + /* compiled from: PictureRecorder */ + public interface a { + void a(@Nullable l.a aVar, @Nullable Exception exc); + } + + public d(@NonNull l.a aVar, @Nullable a aVar2) { + this.j = aVar; + this.k = aVar2; + } + + public void a(boolean z2) { + CameraView cameraView; + boolean z3; + a aVar = this.k; + if (aVar != null) { + boolean z4 = !z2; + CameraView.b bVar = (CameraView.b) ((g) aVar).m; + if (z4 && (z3 = (cameraView = CameraView.this).l) && z3) { + if (cameraView.A == null) { + cameraView.A = new MediaActionSound(); + } + cameraView.A.play(0); + } + CameraView.this.t.post(new h(bVar)); + } + } + + public void b() { + a aVar = this.k; + if (aVar != null) { + aVar.a(this.j, this.l); + this.k = null; + this.j = null; + } + } + + public abstract void c(); +} diff --git a/app/src/main/java/b/o/a/v/e.java b/app/src/main/java/b/o/a/v/e.java new file mode 100644 index 0000000000..063718f10b --- /dev/null +++ b/app/src/main/java/b/o/a/v/e.java @@ -0,0 +1,140 @@ +package b.o.a.v; + +import android.graphics.Rect; +import android.graphics.YuvImage; +import android.hardware.Camera; +import androidx.annotation.NonNull; +import b.i.a.f.e.o.f; +import b.o.a.l; +import b.o.a.n.b; +import b.o.a.r.g; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import java.io.ByteArrayOutputStream; +/* compiled from: Snapshot1PictureRecorder */ +public class e extends i { + public b n; + public Camera o; + public b.o.a.x.a p; + public int q; + + /* compiled from: Snapshot1PictureRecorder */ + public class a implements Camera.PreviewCallback { + + /* compiled from: Snapshot1PictureRecorder */ + /* renamed from: b.o.a.v.e$a$a reason: collision with other inner class name */ + public class RunnableC0172a implements Runnable { + public final /* synthetic */ byte[] j; + public final /* synthetic */ b.o.a.x.b k; + public final /* synthetic */ int l; + public final /* synthetic */ b.o.a.x.b m; + + public RunnableC0172a(byte[] bArr, b.o.a.x.b bVar, int i, b.o.a.x.b bVar2) { + this.j = bArr; + this.k = bVar; + this.l = i; + this.m = bVar2; + } + + @Override // java.lang.Runnable + public void run() { + byte[] bArr; + byte[] bArr2 = this.j; + b.o.a.x.b bVar = this.k; + int i = this.l; + if (i == 0) { + bArr = bArr2; + } else if (i % 90 != 0 || i < 0 || i > 270) { + throw new IllegalArgumentException("0 <= rotation < 360, rotation % 90 == 0"); + } else { + int i2 = bVar.j; + int i3 = bVar.k; + byte[] bArr3 = new byte[bArr2.length]; + int i4 = i2 * i3; + boolean z2 = i % BaseTransientBottomBar.ANIMATION_FADE_DURATION != 0; + boolean z3 = i % 270 != 0; + boolean z4 = i >= 180; + for (int i5 = 0; i5 < i3; i5++) { + for (int i6 = 0; i6 < i2; i6++) { + int i7 = (i5 * i2) + i6; + int i8 = ((i5 >> 1) * i2) + i4 + (i6 & -2); + int i9 = i8 + 1; + int i10 = z2 ? i3 : i2; + int i11 = z2 ? i2 : i3; + int i12 = z2 ? i5 : i6; + int i13 = z2 ? i6 : i5; + if (z3) { + i12 = (i10 - i12) - 1; + } + if (z4) { + i13 = (i11 - i13) - 1; + } + int i14 = ((i13 >> 1) * i10) + i4 + (i12 & -2); + bArr3[(i13 * i10) + i12] = (byte) (bArr2[i7] & 255); + bArr3[i14] = (byte) (bArr2[i8] & 255); + bArr3[i14 + 1] = (byte) (bArr2[i9] & 255); + } + } + bArr = bArr3; + } + int i15 = e.this.q; + b.o.a.x.b bVar2 = this.m; + YuvImage yuvImage = new YuvImage(bArr, i15, bVar2.j, bVar2.k, null); + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + Rect K = f.K(this.m, e.this.p); + yuvImage.compressToJpeg(K, 90, byteArrayOutputStream); + byte[] byteArray = byteArrayOutputStream.toByteArray(); + l.a aVar = e.this.j; + aVar.f = byteArray; + aVar.d = new b.o.a.x.b(K.width(), K.height()); + e eVar = e.this; + eVar.j.c = 0; + eVar.b(); + } + } + + public a() { + } + + @Override // android.hardware.Camera.PreviewCallback + public void onPreviewFrame(@NonNull byte[] bArr, Camera camera) { + e.this.a(false); + e eVar = e.this; + l.a aVar = eVar.j; + int i = aVar.c; + b.o.a.x.b bVar = aVar.d; + b.o.a.x.b C = eVar.n.C(b.o.a.n.t.b.SENSOR); + if (C != null) { + g.a(new RunnableC0172a(bArr, C, i, bVar)); + camera.setPreviewCallbackWithBuffer(null); + camera.setPreviewCallbackWithBuffer(e.this.n); + b.o.a.p.a l1 = e.this.n.l1(); + e eVar2 = e.this; + l1.e(eVar2.q, C, eVar2.n.L); + return; + } + throw new IllegalStateException("Preview stream size should never be null here."); + } + } + + public e(@NonNull l.a aVar, @NonNull b bVar, @NonNull Camera camera, @NonNull b.o.a.x.a aVar2) { + super(aVar, bVar); + this.n = bVar; + this.o = camera; + this.p = aVar2; + this.q = camera.getParameters().getPreviewFormat(); + } + + @Override // b.o.a.v.d + public void b() { + this.n = null; + this.o = null; + this.p = null; + this.q = 0; + super.b(); + } + + @Override // b.o.a.v.d + public void c() { + this.o.setOneShotPreviewCallback(new a()); + } +} diff --git a/app/src/main/java/b/o/a/v/f.java b/app/src/main/java/b/o/a/v/f.java new file mode 100644 index 0000000000..502f2c6bf2 --- /dev/null +++ b/app/src/main/java/b/o/a/v/f.java @@ -0,0 +1,131 @@ +package b.o.a.v; + +import android.hardware.camera2.CameraAccessException; +import android.hardware.camera2.CaptureRequest; +import android.hardware.camera2.CaptureResult; +import android.hardware.camera2.TotalCaptureResult; +import androidx.annotation.NonNull; +import androidx.annotation.RequiresApi; +import b.o.a.l; +import b.o.a.n.d; +import b.o.a.n.o.e; +import b.o.a.n.o.h; +import b.o.a.n.o.i; +import java.util.Arrays; +/* compiled from: Snapshot2PictureRecorder */ +@RequiresApi(21) +public class f extends g { + public final b.o.a.n.o.a t; + public final b.o.a.n.o.c u; + public final boolean v; + public Integer w; + + /* renamed from: x reason: collision with root package name */ + public Integer f1940x; + + /* compiled from: Snapshot2PictureRecorder */ + public class a extends b.o.a.n.o.f { + public a() { + } + + @Override // b.o.a.n.o.f + public void b(@NonNull b.o.a.n.o.a aVar) { + i.m.a(1, "Taking picture with super.take()."); + f.d(f.this); + } + } + + /* compiled from: Snapshot2PictureRecorder */ + public class b extends e { + public b(f fVar, a aVar) { + } + + @Override // b.o.a.n.o.e, b.o.a.n.o.a + public void b(@NonNull b.o.a.n.o.c cVar, @NonNull CaptureRequest captureRequest, @NonNull TotalCaptureResult totalCaptureResult) { + Integer num = (Integer) totalCaptureResult.get(CaptureResult.FLASH_STATE); + if (num == null) { + i.m.a(2, "FlashAction:", "Waiting flash, but flashState is null!", "Taking snapshot."); + l(Integer.MAX_VALUE); + } else if (num.intValue() == 3) { + i.m.a(1, "FlashAction:", "Waiting flash and we have FIRED state!", "Taking snapshot."); + l(Integer.MAX_VALUE); + } else { + i.m.a(1, "FlashAction:", "Waiting flash but flashState is", num, ". Waiting..."); + } + } + + @Override // b.o.a.n.o.e + public void j(@NonNull b.o.a.n.o.c cVar) { + this.c = cVar; + i.m.a(1, "FlashAction:", "Parameters locked, opening torch."); + ((d) cVar).f1906i0.set(CaptureRequest.FLASH_MODE, 2); + d dVar = (d) cVar; + dVar.f1906i0.set(CaptureRequest.CONTROL_AE_MODE, 1); + dVar.k1(); + } + } + + /* compiled from: Snapshot2PictureRecorder */ + public class c extends e { + public c(a aVar) { + } + + @Override // b.o.a.n.o.e + public void j(@NonNull b.o.a.n.o.c cVar) { + this.c = cVar; + try { + i.m.a(1, "ResetFlashAction:", "Reverting the flash changes."); + CaptureRequest.Builder builder = ((d) cVar).f1906i0; + builder.set(CaptureRequest.CONTROL_AE_MODE, 1); + builder.set(CaptureRequest.FLASH_MODE, 0); + ((d) cVar).e1(this, builder); + builder.set(CaptureRequest.CONTROL_AE_MODE, f.this.w); + builder.set(CaptureRequest.FLASH_MODE, f.this.f1940x); + ((d) cVar).k1(); + } catch (CameraAccessException unused) { + } + } + } + + public f(@NonNull l.a aVar, @NonNull d dVar, @NonNull b.o.a.w.e eVar, @NonNull b.o.a.x.a aVar2) { + super(aVar, dVar, eVar, aVar2, dVar.f1915c0); + this.u = dVar; + boolean z2 = false; + Integer num = null; + h hVar = new h(Arrays.asList(new i(2500, new b.o.a.n.p.d()), new b(this, null))); + this.t = hVar; + hVar.f(new a()); + TotalCaptureResult totalCaptureResult = dVar.f1907j0; + if (totalCaptureResult == null) { + i.m.a(2, "Picture snapshot requested very early, before the first preview frame.", "Metering might not work as intended."); + } + num = totalCaptureResult != null ? (Integer) totalCaptureResult.get(CaptureResult.CONTROL_AE_STATE) : num; + if (dVar.H && num != null && num.intValue() == 4) { + z2 = true; + } + this.v = z2; + this.w = (Integer) dVar.f1906i0.get(CaptureRequest.CONTROL_AE_MODE); + this.f1940x = (Integer) dVar.f1906i0.get(CaptureRequest.FLASH_MODE); + } + + public static /* synthetic */ void d(f fVar) { + super.c(); + } + + @Override // b.o.a.v.g, b.o.a.v.d + public void b() { + new c(null).e(this.u); + super.b(); + } + + @Override // b.o.a.v.g, b.o.a.v.d + public void c() { + if (!this.v) { + i.m.a(1, "take:", "Engine does no metering or needs no flash.", "Taking fast snapshot."); + super.c(); + return; + } + i.m.a(1, "take:", "Engine needs flash. Starting action"); + this.t.e(this.u); + } +} diff --git a/app/src/main/java/b/o/a/v/g.java b/app/src/main/java/b/o/a/v/g.java new file mode 100644 index 0000000000..cc69fb6825 --- /dev/null +++ b/app/src/main/java/b/o/a/v/g.java @@ -0,0 +1,86 @@ +package b.o.a.v; + +import android.annotation.TargetApi; +import android.graphics.Rect; +import android.graphics.SurfaceTexture; +import android.opengl.EGL14; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.o.a.l; +import b.o.a.r.c; +import b.o.a.u.a; +import b.o.a.u.b; +import b.o.a.v.d; +import b.o.a.w.e; +import b.o.a.w.f; +import java.util.Objects; +/* compiled from: SnapshotGlPictureRecorder */ +public class g extends i { + public e n; + public b.o.a.x.a o; + public b.o.a.u.a p; + public boolean q; + public b r; + + /* renamed from: s reason: collision with root package name */ + public c f1941s; + + /* compiled from: SnapshotGlPictureRecorder */ + public class a implements f { + public a() { + } + + @Override // b.o.a.w.f + public void a(@NonNull SurfaceTexture surfaceTexture, int i, float f, float f2) { + g.this.n.d(this); + g gVar = g.this; + Objects.requireNonNull(gVar); + b.o.a.r.g.a(new h(gVar, surfaceTexture, i, f, f2, EGL14.eglGetCurrentContext())); + } + + @Override // b.o.a.w.f + public void b(int i) { + g gVar = g.this; + Objects.requireNonNull(gVar); + gVar.f1941s = new c(new b.o.b.f.b(33984, 36197, Integer.valueOf(i))); + Rect K = b.i.a.f.e.o.f.K(gVar.j.d, gVar.o); + gVar.j.d = new b.o.a.x.b(K.width(), K.height()); + if (gVar.q) { + gVar.r = new b(gVar.p, gVar.j.d); + } + } + + @Override // b.o.a.w.f + public void c(@NonNull b.o.a.o.b bVar) { + g.this.f1941s.d = bVar.a(); + } + } + + public g(@NonNull l.a aVar, @Nullable d.a aVar2, @NonNull e eVar, @NonNull b.o.a.x.a aVar3, @Nullable b.o.a.u.a aVar4) { + super(aVar, aVar2); + boolean z2; + this.n = eVar; + this.o = aVar3; + this.p = aVar4; + if (aVar4 != null) { + if (((b.o.a.u.c) aVar4).b(a.EnumC0170a.PICTURE_SNAPSHOT)) { + z2 = true; + this.q = z2; + } + } + z2 = false; + this.q = z2; + } + + @Override // b.o.a.v.d + public void b() { + this.o = null; + super.b(); + } + + @Override // b.o.a.v.d + @TargetApi(19) + public void c() { + this.n.b(new a()); + } +} diff --git a/app/src/main/java/b/o/a/v/h.java b/app/src/main/java/b/o/a/v/h.java new file mode 100644 index 0000000000..fb38dbd725 --- /dev/null +++ b/app/src/main/java/b/o/a/v/h.java @@ -0,0 +1,175 @@ +package b.o.a.v; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.PorterDuff; +import android.graphics.SurfaceTexture; +import android.opengl.EGL14; +import android.opengl.EGLContext; +import android.opengl.EGLDisplay; +import android.opengl.EGLSurface; +import android.opengl.GLES20; +import android.opengl.Matrix; +import android.util.Log; +import android.view.Surface; +import b.o.a.l; +import b.o.a.u.a; +import b.o.a.x.b; +import b.o.b.a.a; +import b.o.b.c.c; +import b.o.b.c.d; +import b.o.b.c.e; +import d0.z.d.m; +import java.io.ByteArrayOutputStream; +import java.util.Objects; +/* compiled from: SnapshotGlPictureRecorder */ +public class h implements Runnable { + public final /* synthetic */ SurfaceTexture j; + public final /* synthetic */ int k; + public final /* synthetic */ float l; + public final /* synthetic */ float m; + public final /* synthetic */ EGLContext n; + public final /* synthetic */ g o; + + public h(g gVar, SurfaceTexture surfaceTexture, int i, float f, float f2, EGLContext eGLContext) { + this.o = gVar; + this.j = surfaceTexture; + this.k = i; + this.l = f; + this.m = f2; + this.n = eGLContext; + } + + /* JADX WARNING: Code restructure failed: missing block: B:56:0x01f7, code lost: + r0 = move-exception; + */ + /* JADX WARNING: Code restructure failed: missing block: B:57:0x01f8, code lost: + d0.y.b.closeFinally(r4, r0); + */ + /* JADX WARNING: Code restructure failed: missing block: B:58:0x01fc, code lost: + throw r0; + */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // java.lang.Runnable + public void run() { + ?? r3; + g gVar = this.o; + SurfaceTexture surfaceTexture = this.j; + int i = this.k; + float f = this.l; + float f2 = this.m; + EGLContext eGLContext = this.n; + Objects.requireNonNull(gVar); + SurfaceTexture surfaceTexture2 = new SurfaceTexture(9999); + b bVar = gVar.j.d; + surfaceTexture2.setDefaultBufferSize(bVar.j, bVar.k); + a aVar = new a(eGLContext, 1); + b.o.b.e.b bVar2 = new b.o.b.e.b(aVar, surfaceTexture2); + a aVar2 = bVar2.c; + e eVar = bVar2.d; + Objects.requireNonNull(aVar2); + m.checkNotNullParameter(eVar, "eglSurface"); + if (aVar2.a == d.f1946b) { + Log.v("EglCore", "NOTE: makeSurfaceCurrent w/o display"); + } + c cVar = aVar2.a; + b.o.b.c.b bVar3 = aVar2.f1944b; + EGLDisplay eGLDisplay = cVar.a; + EGLSurface eGLSurface = eVar.a; + if (EGL14.eglMakeCurrent(eGLDisplay, eGLSurface, eGLSurface, bVar3.a)) { + float[] fArr = gVar.f1941s.f1935b; + surfaceTexture.getTransformMatrix(fArr); + Matrix.translateM(fArr, 0, (1.0f - f) / 2.0f, (1.0f - f2) / 2.0f, 0.0f); + Matrix.scaleM(fArr, 0, f, f2, 1.0f); + Matrix.translateM(fArr, 0, 0.5f, 0.5f, 0.0f); + Matrix.rotateM(fArr, 0, (float) (i + gVar.j.c), 0.0f, 0.0f, 1.0f); + Matrix.scaleM(fArr, 0, 1.0f, -1.0f, 1.0f); + Matrix.translateM(fArr, 0, -0.5f, -0.5f, 0.0f); + if (gVar.q) { + b.o.a.u.b bVar4 = gVar.r; + a.EnumC0170a aVar3 = a.EnumC0170a.PICTURE_SNAPSHOT; + Objects.requireNonNull(bVar4); + try { + Canvas lockCanvas = bVar4.d.lockCanvas(null); + lockCanvas.drawColor(0, PorterDuff.Mode.CLEAR); + ((b.o.a.u.c) bVar4.f1938b).a(aVar3, lockCanvas); + bVar4.d.unlockCanvasAndPost(lockCanvas); + } catch (Surface.OutOfResourcesException e) { + b.o.a.u.b.a.a(2, "Got Surface.OutOfResourcesException while drawing video overlays", e); + } + synchronized (bVar4.g) { + GLES20.glBindTexture(36197, bVar4.f.a); + bVar4.c.updateTexImage(); + } + bVar4.c.getTransformMatrix(bVar4.e.f1935b); + Matrix.translateM(gVar.r.e.f1935b, 0, 0.5f, 0.5f, 0.0f); + Matrix.rotateM(gVar.r.e.f1935b, 0, (float) gVar.j.c, 0.0f, 0.0f, 1.0f); + Matrix.scaleM(gVar.r.e.f1935b, 0, 1.0f, -1.0f, 1.0f); + Matrix.translateM(gVar.r.e.f1935b, 0, -0.5f, -0.5f, 0.0f); + } + gVar.j.c = 0; + long timestamp = surfaceTexture.getTimestamp() / 1000; + i.m.a(1, "takeFrame:", "timestampUs:", Long.valueOf(timestamp)); + gVar.f1941s.a(timestamp); + if (gVar.q) { + b.o.a.u.b bVar5 = gVar.r; + Objects.requireNonNull(bVar5); + GLES20.glDisable(2884); + GLES20.glDisable(2929); + GLES20.glEnable(3042); + GLES20.glBlendFunc(770, 771); + synchronized (bVar5.g) { + bVar5.e.a(timestamp); + } + } + l.a aVar4 = gVar.j; + Bitmap.CompressFormat compressFormat = Bitmap.CompressFormat.JPEG; + m.checkNotNullParameter(compressFormat, "format"); + ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); + bVar2.a(byteArrayOutputStream, compressFormat); + byte[] byteArray = byteArrayOutputStream.toByteArray(); + m.checkNotNullExpressionValue(byteArray, "it.toByteArray()"); + d0.y.b.closeFinally(byteArrayOutputStream, null); + aVar4.f = byteArray; + b.o.b.a.a aVar5 = bVar2.c; + e eVar2 = bVar2.d; + Objects.requireNonNull(aVar5); + m.checkNotNullParameter(eVar2, "eglSurface"); + EGL14.eglDestroySurface(aVar5.a.a, eVar2.a); + bVar2.d = d.c; + bVar2.f1952b = -1; + bVar2.a = -1; + gVar.f1941s.b(); + surfaceTexture2.release(); + if (gVar.q) { + b.o.a.u.b bVar6 = gVar.r; + if (bVar6.f != null) { + GLES20.glBindTexture(36197, 0); + r3 = 0; + bVar6.f = null; + } else { + r3 = 0; + } + SurfaceTexture surfaceTexture3 = bVar6.c; + if (surfaceTexture3 != null) { + surfaceTexture3.release(); + bVar6.c = r3; + } + Surface surface = bVar6.d; + if (surface != null) { + surface.release(); + bVar6.d = r3; + } + b.o.a.r.c cVar2 = bVar6.e; + if (cVar2 != null) { + cVar2.b(); + bVar6.e = r3; + } + } + aVar.b(); + gVar.b(); + return; + } + throw new RuntimeException("eglMakeCurrent failed"); + } +} diff --git a/app/src/main/java/b/o/a/v/i.java b/app/src/main/java/b/o/a/v/i.java new file mode 100644 index 0000000000..fcbae40eab --- /dev/null +++ b/app/src/main/java/b/o/a/v/i.java @@ -0,0 +1,15 @@ +package b.o.a.v; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.o.a.b; +import b.o.a.l; +import b.o.a.v.d; +/* compiled from: SnapshotPictureRecorder */ +public abstract class i extends d { + public static final b m = new b(i.class.getSimpleName()); + + public i(@NonNull l.a aVar, @Nullable d.a aVar2) { + super(aVar, aVar2); + } +} diff --git a/app/src/main/java/b/o/a/w/a.java b/app/src/main/java/b/o/a/w/a.java new file mode 100644 index 0000000000..fcaf09694c --- /dev/null +++ b/app/src/main/java/b/o/a/w/a.java @@ -0,0 +1,191 @@ +package b.o.a.w; + +import android.content.Context; +import android.os.Handler; +import android.os.Looper; +import android.view.View; +import android.view.ViewGroup; +import android.view.ViewParent; +import androidx.annotation.CallSuper; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.o.a.n.g; +import b.o.a.n.i; +import b.o.a.n.v.e; +import b.o.a.n.v.f; +import b.o.a.n.v.h; +import com.google.android.gms.tasks.TaskCompletionSource; +import java.util.Objects; +/* compiled from: CameraPreview */ +public abstract class a { + public static final b.o.a.b a = new b.o.a.b(a.class.getSimpleName()); + + /* renamed from: b reason: collision with root package name */ + public c f1942b; + public T c; + public boolean d; + public int e; + public int f; + public int g; + public int h; + public int i; + + /* compiled from: CameraPreview */ + /* renamed from: b.o.a.w.a$a reason: collision with other inner class name */ + public class RunnableC0173a implements Runnable { + public final /* synthetic */ TaskCompletionSource j; + + public RunnableC0173a(TaskCompletionSource taskCompletionSource) { + this.j = taskCompletionSource; + } + + @Override // java.lang.Runnable + public void run() { + View k = a.this.k(); + ViewParent parent = k.getParent(); + if (parent instanceof ViewGroup) { + ((ViewGroup) parent).removeView(k); + } + this.j.a.t(null); + } + } + + /* compiled from: CameraPreview */ + public interface b { + void a(); + } + + /* compiled from: CameraPreview */ + public interface c { + } + + public a(@NonNull Context context, @NonNull ViewGroup viewGroup) { + this.c = n(context, viewGroup); + } + + public void e(@Nullable b bVar) { + } + + public final void f(int i, int i2) { + a.a(1, "dispatchOnSurfaceAvailable:", "w=", Integer.valueOf(i), "h=", Integer.valueOf(i2)); + this.e = i; + this.f = i2; + if (i > 0 && i2 > 0) { + e(null); + } + c cVar = this.f1942b; + if (cVar != null) { + ((i) cVar).V(); + } + } + + public final void g() { + this.e = 0; + this.f = 0; + c cVar = this.f1942b; + if (cVar != null) { + i iVar = (i) cVar; + i.j.a(1, "onSurfaceDestroyed"); + iVar.N0(false); + iVar.M0(false); + } + } + + public final void h(int i, int i2) { + a.a(1, "dispatchOnSurfaceSizeChanged:", "w=", Integer.valueOf(i), "h=", Integer.valueOf(i2)); + if (i != this.e || i2 != this.f) { + this.e = i; + this.f = i2; + if (i > 0 && i2 > 0) { + e(null); + } + c cVar = this.f1942b; + if (cVar != null) { + g gVar = (g) cVar; + Objects.requireNonNull(gVar); + i.j.a(1, "onSurfaceChanged:", "Size is", gVar.U0(b.o.a.n.t.b.VIEW)); + f fVar = gVar.n; + fVar.b("surface changed", true, new h(fVar, e.BIND, new b.o.a.n.h(gVar))); + } + } + } + + @NonNull + public abstract Output i(); + + @NonNull + public abstract Class j(); + + @NonNull + public abstract View k(); + + @NonNull + public final b.o.a.x.b l() { + return new b.o.a.x.b(this.e, this.f); + } + + public final boolean m() { + return this.e > 0 && this.f > 0; + } + + @NonNull + public abstract T n(@NonNull Context context, @NonNull ViewGroup viewGroup); + + @CallSuper + public void o() { + if (Thread.currentThread() == Looper.getMainLooper().getThread()) { + View k = k(); + ViewParent parent = k.getParent(); + if (parent instanceof ViewGroup) { + ((ViewGroup) parent).removeView(k); + return; + } + return; + } + Handler handler = new Handler(Looper.getMainLooper()); + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + handler.post(new RunnableC0173a(taskCompletionSource)); + try { + b.i.a.f.e.o.f.i(taskCompletionSource.a); + } catch (Exception unused) { + } + } + + public void p() { + } + + public void q() { + } + + public void r(int i) { + this.i = i; + } + + public void s(int i, int i2) { + a.a(1, "setStreamSize:", "desiredW=", Integer.valueOf(i), "desiredH=", Integer.valueOf(i2)); + this.g = i; + this.h = i2; + if (i > 0 && i2 > 0) { + e(null); + } + } + + public void t(@Nullable c cVar) { + c cVar2; + c cVar3; + if (m() && (cVar3 = this.f1942b) != null) { + i iVar = (i) cVar3; + i.j.a(1, "onSurfaceDestroyed"); + iVar.N0(false); + iVar.M0(false); + } + this.f1942b = cVar; + if (m() && (cVar2 = this.f1942b) != null) { + ((i) cVar2).V(); + } + } + + public boolean u() { + return this instanceof d; + } +} diff --git a/app/src/main/java/b/o/a/w/b.java b/app/src/main/java/b/o/a/w/b.java new file mode 100644 index 0000000000..46300a792b --- /dev/null +++ b/app/src/main/java/b/o/a/w/b.java @@ -0,0 +1,10 @@ +package b.o.a.w; + +import androidx.annotation.NonNull; +/* compiled from: FilterCameraPreview */ +public interface b { + void a(@NonNull b.o.a.o.b bVar); + + @NonNull + b.o.a.o.b c(); +} diff --git a/app/src/main/java/b/o/a/w/c.java b/app/src/main/java/b/o/a/w/c.java new file mode 100644 index 0000000000..a74e8934a8 --- /dev/null +++ b/app/src/main/java/b/o/a/w/c.java @@ -0,0 +1,55 @@ +package b.o.a.w; + +import android.graphics.SurfaceTexture; +import android.opengl.GLSurfaceView; +import android.view.SurfaceHolder; +import b.o.a.w.d; +/* compiled from: GlCameraPreview */ +public class c implements SurfaceHolder.Callback { + public final /* synthetic */ GLSurfaceView j; + public final /* synthetic */ d.c k; + public final /* synthetic */ d l; + + /* compiled from: GlCameraPreview */ + public class a implements Runnable { + public a() { + } + + @Override // java.lang.Runnable + public void run() { + d.c cVar = c.this.k; + SurfaceTexture surfaceTexture = d.this.k; + if (surfaceTexture != null) { + surfaceTexture.setOnFrameAvailableListener(null); + d.this.k.release(); + d.this.k = null; + } + b.o.a.r.c cVar2 = d.this.l; + if (cVar2 != null) { + cVar2.b(); + d.this.l = null; + } + } + } + + public c(d dVar, GLSurfaceView gLSurfaceView, d.c cVar) { + this.l = dVar; + this.j = gLSurfaceView; + this.k = cVar; + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceChanged(SurfaceHolder surfaceHolder, int i, int i2, int i3) { + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceCreated(SurfaceHolder surfaceHolder) { + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceDestroyed(SurfaceHolder surfaceHolder) { + this.l.g(); + this.j.queueEvent(new a()); + this.l.j = false; + } +} diff --git a/app/src/main/java/b/o/a/w/d.java b/app/src/main/java/b/o/a/w/d.java new file mode 100644 index 0000000000..05d627854e --- /dev/null +++ b/app/src/main/java/b/o/a/w/d.java @@ -0,0 +1,265 @@ +package b.o.a.w; + +import android.content.Context; +import android.graphics.SurfaceTexture; +import android.opengl.GLSurfaceView; +import android.opengl.Matrix; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.annotation.VisibleForTesting; +import b.o.a.w.a; +import com.otaliastudios.cameraview.R; +import java.util.Set; +import java.util.concurrent.CopyOnWriteArraySet; +import javax.microedition.khronos.egl.EGLConfig; +import javax.microedition.khronos.opengles.GL10; +/* compiled from: GlCameraPreview */ +public class d extends a implements b, e { + public boolean j; + public SurfaceTexture k; + public b.o.a.r.c l; + public final Set m = new CopyOnWriteArraySet(); + @VisibleForTesting + public float n = 1.0f; + @VisibleForTesting + public float o = 1.0f; + public View p; + public b.o.a.o.b q; + + /* compiled from: GlCameraPreview */ + public class a implements Runnable { + public final /* synthetic */ f j; + + public a(f fVar) { + this.j = fVar; + } + + @Override // java.lang.Runnable + public void run() { + d.this.m.add(this.j); + b.o.a.r.c cVar = d.this.l; + if (cVar != null) { + this.j.b(cVar.a.a); + } + this.j.c(d.this.q); + } + } + + /* compiled from: GlCameraPreview */ + public class b implements Runnable { + public final /* synthetic */ b.o.a.o.b j; + + public b(b.o.a.o.b bVar) { + this.j = bVar; + } + + @Override // java.lang.Runnable + public void run() { + d dVar = d.this; + b.o.a.r.c cVar = dVar.l; + if (cVar != null) { + cVar.d = this.j; + } + for (f fVar : dVar.m) { + fVar.c(this.j); + } + } + } + + /* compiled from: GlCameraPreview */ + public class c implements GLSurfaceView.Renderer { + + /* compiled from: GlCameraPreview */ + public class a implements Runnable { + public final /* synthetic */ int j; + + public a(int i) { + this.j = i; + } + + @Override // java.lang.Runnable + public void run() { + for (f fVar : d.this.m) { + fVar.b(this.j); + } + } + } + + /* compiled from: GlCameraPreview */ + public class b implements SurfaceTexture.OnFrameAvailableListener { + public b() { + } + + @Override // android.graphics.SurfaceTexture.OnFrameAvailableListener + public void onFrameAvailable(SurfaceTexture surfaceTexture) { + ((GLSurfaceView) d.this.c).requestRender(); + } + } + + public c() { + } + + @Override // android.opengl.GLSurfaceView.Renderer + public void onDrawFrame(GL10 gl10) { + d dVar = d.this; + SurfaceTexture surfaceTexture = dVar.k; + if (surfaceTexture != null && dVar.g > 0 && dVar.h > 0) { + float[] fArr = dVar.l.f1935b; + surfaceTexture.updateTexImage(); + d.this.k.getTransformMatrix(fArr); + if (d.this.i != 0) { + Matrix.translateM(fArr, 0, 0.5f, 0.5f, 0.0f); + Matrix.rotateM(fArr, 0, (float) d.this.i, 0.0f, 0.0f, 1.0f); + Matrix.translateM(fArr, 0, -0.5f, -0.5f, 0.0f); + } + d dVar2 = d.this; + if (dVar2.d) { + Matrix.translateM(fArr, 0, (1.0f - dVar2.n) / 2.0f, (1.0f - dVar2.o) / 2.0f, 0.0f); + d dVar3 = d.this; + Matrix.scaleM(fArr, 0, dVar3.n, dVar3.o, 1.0f); + } + d dVar4 = d.this; + dVar4.l.a(dVar4.k.getTimestamp() / 1000); + for (f fVar : d.this.m) { + d dVar5 = d.this; + fVar.a(dVar5.k, dVar5.i, dVar5.n, dVar5.o); + } + } + } + + @Override // android.opengl.GLSurfaceView.Renderer + public void onSurfaceChanged(GL10 gl10, int i, int i2) { + gl10.glViewport(0, 0, i, i2); + d.this.q.k(i, i2); + d dVar = d.this; + if (!dVar.j) { + dVar.f(i, i2); + d.this.j = true; + } else if (i != dVar.e || i2 != dVar.f) { + dVar.h(i, i2); + } + } + + @Override // android.opengl.GLSurfaceView.Renderer + public void onSurfaceCreated(GL10 gl10, EGLConfig eGLConfig) { + d dVar = d.this; + if (dVar.q == null) { + dVar.q = new b.o.a.o.c(); + } + d.this.l = new b.o.a.r.c(new b.o.b.f.b(33984, 36197, null, 4)); + d dVar2 = d.this; + b.o.a.r.c cVar = dVar2.l; + cVar.d = dVar2.q; + int i = cVar.a.a; + dVar2.k = new SurfaceTexture(i); + ((GLSurfaceView) d.this.c).queueEvent(new a(i)); + d.this.k.setOnFrameAvailableListener(new b()); + } + } + + public d(@NonNull Context context, @NonNull ViewGroup viewGroup) { + super(context, viewGroup); + } + + @Override // b.o.a.w.b + public void a(@NonNull b.o.a.o.b bVar) { + this.q = bVar; + if (m()) { + bVar.k(this.e, this.f); + } + ((GLSurfaceView) this.c).queueEvent(new b(bVar)); + } + + @Override // b.o.a.w.e + public void b(@NonNull f fVar) { + ((GLSurfaceView) this.c).queueEvent(new a(fVar)); + } + + @Override // b.o.a.w.b + @NonNull + public b.o.a.o.b c() { + return this.q; + } + + @Override // b.o.a.w.e + public void d(@NonNull f fVar) { + this.m.remove(fVar); + } + + @Override // b.o.a.w.a + public void e(@Nullable a.b bVar) { + int i; + int i2; + float f; + float f2; + if (this.g > 0 && this.h > 0 && (i = this.e) > 0 && (i2 = this.f) > 0) { + b.o.a.x.a f3 = b.o.a.x.a.f(i, i2); + b.o.a.x.a f4 = b.o.a.x.a.f(this.g, this.h); + if (f3.i() >= f4.i()) { + f = f3.i() / f4.i(); + f2 = 1.0f; + } else { + f2 = f4.i() / f3.i(); + f = 1.0f; + } + this.d = f2 > 1.02f || f > 1.02f; + this.n = 1.0f / f2; + this.o = 1.0f / f; + ((GLSurfaceView) this.c).requestRender(); + } + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.o.a.w.a + @NonNull + public SurfaceTexture i() { + return this.k; + } + + @Override // b.o.a.w.a + @NonNull + public Class j() { + return SurfaceTexture.class; + } + + @Override // b.o.a.w.a + @NonNull + public View k() { + return this.p; + } + + /* Return type fixed from 'android.view.View' to match base method */ + @Override // b.o.a.w.a + @NonNull + public GLSurfaceView n(@NonNull Context context, @NonNull ViewGroup viewGroup) { + ViewGroup viewGroup2 = (ViewGroup) LayoutInflater.from(context).inflate(R.b.cameraview_gl_view, viewGroup, false); + GLSurfaceView gLSurfaceView = (GLSurfaceView) viewGroup2.findViewById(R.a.gl_surface_view); + c cVar = new c(); + gLSurfaceView.setEGLContextClientVersion(2); + gLSurfaceView.setRenderer(cVar); + gLSurfaceView.setRenderMode(0); + gLSurfaceView.getHolder().addCallback(new c(this, gLSurfaceView, cVar)); + viewGroup.addView(viewGroup2, 0); + this.p = viewGroup2; + return gLSurfaceView; + } + + @Override // b.o.a.w.a + public void o() { + super.o(); + this.m.clear(); + } + + @Override // b.o.a.w.a + public void p() { + ((GLSurfaceView) this.c).onPause(); + } + + @Override // b.o.a.w.a + public void q() { + ((GLSurfaceView) this.c).onResume(); + } +} diff --git a/app/src/main/java/b/o/a/w/e.java b/app/src/main/java/b/o/a/w/e.java new file mode 100644 index 0000000000..3a9f8fa392 --- /dev/null +++ b/app/src/main/java/b/o/a/w/e.java @@ -0,0 +1,9 @@ +package b.o.a.w; + +import androidx.annotation.NonNull; +/* compiled from: RendererCameraPreview */ +public interface e { + void b(@NonNull f fVar); + + void d(@NonNull f fVar); +} diff --git a/app/src/main/java/b/o/a/w/f.java b/app/src/main/java/b/o/a/w/f.java new file mode 100644 index 0000000000..989c72a4e5 --- /dev/null +++ b/app/src/main/java/b/o/a/w/f.java @@ -0,0 +1,13 @@ +package b.o.a.w; + +import android.graphics.SurfaceTexture; +import androidx.annotation.NonNull; +import b.o.a.o.b; +/* compiled from: RendererFrameCallback */ +public interface f { + void a(@NonNull SurfaceTexture surfaceTexture, int i, float f, float f2); + + void b(int i); + + void c(@NonNull b bVar); +} diff --git a/app/src/main/java/b/o/a/w/g.java b/app/src/main/java/b/o/a/w/g.java new file mode 100644 index 0000000000..7cdfc6a9e9 --- /dev/null +++ b/app/src/main/java/b/o/a/w/g.java @@ -0,0 +1,34 @@ +package b.o.a.w; + +import android.view.SurfaceHolder; +/* compiled from: SurfaceCameraPreview */ +public class g implements SurfaceHolder.Callback { + public final /* synthetic */ h j; + + public g(h hVar) { + this.j = hVar; + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceChanged(SurfaceHolder surfaceHolder, int i, int i2, int i3) { + h.j.a(1, "callback:", "surfaceChanged", "w:", Integer.valueOf(i2), "h:", Integer.valueOf(i3), "dispatched:", Boolean.valueOf(this.j.k)); + h hVar = this.j; + if (!hVar.k) { + hVar.f(i2, i3); + this.j.k = true; + return; + } + hVar.h(i2, i3); + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceCreated(SurfaceHolder surfaceHolder) { + } + + @Override // android.view.SurfaceHolder.Callback + public void surfaceDestroyed(SurfaceHolder surfaceHolder) { + h.j.a(1, "callback:", "surfaceDestroyed"); + this.j.g(); + this.j.k = false; + } +} diff --git a/app/src/main/java/b/o/a/w/h.java b/app/src/main/java/b/o/a/w/h.java new file mode 100644 index 0000000000..76aabe20ce --- /dev/null +++ b/app/src/main/java/b/o/a/w/h.java @@ -0,0 +1,54 @@ +package b.o.a.w; + +import android.content.Context; +import android.view.LayoutInflater; +import android.view.SurfaceHolder; +import android.view.SurfaceView; +import android.view.View; +import android.view.ViewGroup; +import androidx.annotation.NonNull; +import b.o.a.b; +import com.otaliastudios.cameraview.R; +/* compiled from: SurfaceCameraPreview */ +public class h extends a { + public static final b j = new b(h.class.getSimpleName()); + public boolean k; + public View l; + + public h(@NonNull Context context, @NonNull ViewGroup viewGroup) { + super(context, viewGroup); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.o.a.w.a + @NonNull + public SurfaceHolder i() { + return ((SurfaceView) this.c).getHolder(); + } + + @Override // b.o.a.w.a + @NonNull + public Class j() { + return SurfaceHolder.class; + } + + @Override // b.o.a.w.a + @NonNull + public View k() { + return this.l; + } + + /* Return type fixed from 'android.view.View' to match base method */ + @Override // b.o.a.w.a + @NonNull + public SurfaceView n(@NonNull Context context, @NonNull ViewGroup viewGroup) { + View inflate = LayoutInflater.from(context).inflate(R.b.cameraview_surface_view, viewGroup, false); + viewGroup.addView(inflate, 0); + SurfaceView surfaceView = (SurfaceView) inflate.findViewById(R.a.surface_view); + SurfaceHolder holder = surfaceView.getHolder(); + holder.setType(3); + holder.addCallback(new g(this)); + this.l = inflate; + return surfaceView; + } +} diff --git a/app/src/main/java/b/o/a/w/i.java b/app/src/main/java/b/o/a/w/i.java new file mode 100644 index 0000000000..2c55833c05 --- /dev/null +++ b/app/src/main/java/b/o/a/w/i.java @@ -0,0 +1,32 @@ +package b.o.a.w; + +import android.graphics.SurfaceTexture; +import android.view.TextureView; +/* compiled from: TextureCameraPreview */ +public class i implements TextureView.SurfaceTextureListener { + public final /* synthetic */ j j; + + public i(j jVar) { + this.j = jVar; + } + + @Override // android.view.TextureView.SurfaceTextureListener + public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i2) { + this.j.f(i, i2); + } + + @Override // android.view.TextureView.SurfaceTextureListener + public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) { + this.j.g(); + return true; + } + + @Override // android.view.TextureView.SurfaceTextureListener + public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i, int i2) { + this.j.h(i, i2); + } + + @Override // android.view.TextureView.SurfaceTextureListener + public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) { + } +} diff --git a/app/src/main/java/b/o/a/w/j.java b/app/src/main/java/b/o/a/w/j.java new file mode 100644 index 0000000000..c6620c6d21 --- /dev/null +++ b/app/src/main/java/b/o/a/w/j.java @@ -0,0 +1,150 @@ +package b.o.a.w; + +import android.content.Context; +import android.graphics.Matrix; +import android.graphics.SurfaceTexture; +import android.view.LayoutInflater; +import android.view.TextureView; +import android.view.View; +import android.view.ViewGroup; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import b.i.a.f.e.o.f; +import b.o.a.w.a; +import com.google.android.gms.tasks.TaskCompletionSource; +import com.google.android.material.snackbar.BaseTransientBottomBar; +import com.otaliastudios.cameraview.R; +import java.util.concurrent.ExecutionException; +/* compiled from: TextureCameraPreview */ +public class j extends a { + public View j; + + /* compiled from: TextureCameraPreview */ + public class a implements Runnable { + public final /* synthetic */ a.b j; + + public a(a.b bVar) { + this.j = bVar; + } + + @Override // java.lang.Runnable + public void run() { + int i; + int i2; + float f; + j jVar = j.this; + if (jVar.h == 0 || jVar.g == 0 || (i = jVar.f) == 0 || (i2 = jVar.e) == 0) { + a.b bVar = this.j; + if (bVar != null) { + bVar.a(); + return; + } + return; + } + b.o.a.x.a f2 = b.o.a.x.a.f(i2, i); + j jVar2 = j.this; + b.o.a.x.a f3 = b.o.a.x.a.f(jVar2.g, jVar2.h); + float f4 = 1.0f; + if (f2.i() >= f3.i()) { + f = f2.i() / f3.i(); + } else { + f4 = f3.i() / f2.i(); + f = 1.0f; + } + ((TextureView) j.this.c).setScaleX(f4); + ((TextureView) j.this.c).setScaleY(f); + j.this.d = f4 > 1.02f || f > 1.02f; + b.o.a.b bVar2 = a.a; + bVar2.a(1, "crop:", "applied scaleX=", Float.valueOf(f4)); + bVar2.a(1, "crop:", "applied scaleY=", Float.valueOf(f)); + a.b bVar3 = this.j; + if (bVar3 != null) { + bVar3.a(); + } + } + } + + /* compiled from: TextureCameraPreview */ + public class b implements Runnable { + public final /* synthetic */ int j; + public final /* synthetic */ TaskCompletionSource k; + + public b(int i, TaskCompletionSource taskCompletionSource) { + this.j = i; + this.k = taskCompletionSource; + } + + @Override // java.lang.Runnable + public void run() { + Matrix matrix = new Matrix(); + j jVar = j.this; + int i = jVar.e; + float f = ((float) i) / 2.0f; + int i2 = jVar.f; + float f2 = ((float) i2) / 2.0f; + if (this.j % BaseTransientBottomBar.ANIMATION_FADE_DURATION != 0) { + float f3 = ((float) i2) / ((float) i); + matrix.postScale(f3, 1.0f / f3, f, f2); + } + matrix.postRotate((float) this.j, f, f2); + ((TextureView) j.this.c).setTransform(matrix); + this.k.a.t(null); + } + } + + public j(@NonNull Context context, @NonNull ViewGroup viewGroup) { + super(context, viewGroup); + } + + @Override // b.o.a.w.a + public void e(@Nullable a.b bVar) { + ((TextureView) this.c).post(new a(null)); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // b.o.a.w.a + @NonNull + public SurfaceTexture i() { + return ((TextureView) this.c).getSurfaceTexture(); + } + + @Override // b.o.a.w.a + @NonNull + public Class j() { + return SurfaceTexture.class; + } + + @Override // b.o.a.w.a + @NonNull + public View k() { + return this.j; + } + + /* Return type fixed from 'android.view.View' to match base method */ + @Override // b.o.a.w.a + @NonNull + public TextureView n(@NonNull Context context, @NonNull ViewGroup viewGroup) { + View inflate = LayoutInflater.from(context).inflate(R.b.cameraview_texture_view, viewGroup, false); + viewGroup.addView(inflate, 0); + TextureView textureView = (TextureView) inflate.findViewById(R.a.texture_view); + textureView.setSurfaceTextureListener(new i(this)); + this.j = inflate; + return textureView; + } + + @Override // b.o.a.w.a + public void r(int i) { + this.i = i; + TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + ((TextureView) this.c).post(new b(i, taskCompletionSource)); + try { + f.i(taskCompletionSource.a); + } catch (InterruptedException | ExecutionException unused) { + } + } + + @Override // b.o.a.w.a + public boolean u() { + return true; + } +} diff --git a/app/src/main/java/b/o/a/x/a.java b/app/src/main/java/b/o/a/x/a.java new file mode 100644 index 0000000000..58110f546b --- /dev/null +++ b/app/src/main/java/b/o/a/x/a.java @@ -0,0 +1,89 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +import androidx.annotation.VisibleForTesting; +import java.util.HashMap; +/* compiled from: AspectRatio */ +public class a implements Comparable { + @VisibleForTesting + public static final HashMap j = new HashMap<>(16); + public final int k; + public final int l; + + public a(int i, int i2) { + this.k = i; + this.l = i2; + } + + @NonNull + public static a f(int i, int i2) { + int i3 = i; + int i4 = i2; + while (i4 != 0) { + int i5 = i3 % i4; + i3 = i4; + i4 = i5; + } + if (i3 > 0) { + i /= i3; + } + if (i3 > 0) { + i2 /= i3; + } + String str = i + ":" + i2; + HashMap hashMap = j; + a aVar = hashMap.get(str); + if (aVar != null) { + return aVar; + } + a aVar2 = new a(i, i2); + hashMap.put(str, aVar2); + return aVar2; + } + + @NonNull + public static a g(@NonNull b bVar) { + return f(bVar.j, bVar.k); + } + + @NonNull + public static a h(@NonNull String str) { + String[] split = str.split(":"); + if (split.length == 2) { + return f(Integer.parseInt(split[0]), Integer.parseInt(split[1])); + } + throw new NumberFormatException("Illegal AspectRatio string. Must be x:y"); + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public int compareTo(@NonNull a aVar) { + return Float.compare(i(), aVar.i()); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == null) { + return false; + } + if (this == obj) { + return true; + } + return (obj instanceof a) && i() == ((a) obj).i(); + } + + @Override // java.lang.Object + public int hashCode() { + return Float.floatToIntBits(i()); + } + + public float i() { + return ((float) this.k) / ((float) this.l); + } + + @Override // java.lang.Object + @NonNull + public String toString() { + return this.k + ":" + this.l; + } +} diff --git a/app/src/main/java/b/o/a/x/b.java b/app/src/main/java/b/o/a/x/b.java new file mode 100644 index 0000000000..7c9159de3c --- /dev/null +++ b/app/src/main/java/b/o/a/x/b.java @@ -0,0 +1,52 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +/* compiled from: Size */ +public class b implements Comparable { + public final int j; + public final int k; + + public b(int i, int i2) { + this.j = i; + this.k = i2; + } + + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // java.lang.Comparable + public int compareTo(@NonNull b bVar) { + b bVar2 = bVar; + return (this.j * this.k) - (bVar2.j * bVar2.k); + } + + @Override // java.lang.Object + public boolean equals(Object obj) { + if (obj == null) { + return false; + } + if (this == obj) { + return true; + } + if (!(obj instanceof b)) { + return false; + } + b bVar = (b) obj; + return this.j == bVar.j && this.k == bVar.k; + } + + public b f() { + return new b(this.k, this.j); + } + + @Override // java.lang.Object + public int hashCode() { + int i = this.k; + int i2 = this.j; + return i ^ ((i2 >>> 16) | (i2 << 16)); + } + + @Override // java.lang.Object + @NonNull + public String toString() { + return this.j + "x" + this.k; + } +} diff --git a/app/src/main/java/b/o/a/x/c.java b/app/src/main/java/b/o/a/x/c.java new file mode 100644 index 0000000000..a569ae89d9 --- /dev/null +++ b/app/src/main/java/b/o/a/x/c.java @@ -0,0 +1,9 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +import java.util.List; +/* compiled from: SizeSelector */ +public interface c { + @NonNull + List a(@NonNull List list); +} diff --git a/app/src/main/java/b/o/a/x/d.java b/app/src/main/java/b/o/a/x/d.java new file mode 100644 index 0000000000..b2f0b5a076 --- /dev/null +++ b/app/src/main/java/b/o/a/x/d.java @@ -0,0 +1,23 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +/* compiled from: SizeSelectors */ +public final class d implements j { + public final /* synthetic */ float a; + + /* renamed from: b reason: collision with root package name */ + public final /* synthetic */ float f1943b; + + public d(float f, float f2) { + this.a = f; + this.f1943b = f2; + } + + @Override // b.o.a.x.j + public boolean a(@NonNull b bVar) { + float i = a.f(bVar.j, bVar.k).i(); + float f = this.a; + float f2 = this.f1943b; + return i >= f - f2 && i <= f + f2; + } +} diff --git a/app/src/main/java/b/o/a/x/e.java b/app/src/main/java/b/o/a/x/e.java new file mode 100644 index 0000000000..c2049bbd17 --- /dev/null +++ b/app/src/main/java/b/o/a/x/e.java @@ -0,0 +1,15 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +import java.util.Collections; +import java.util.List; +/* compiled from: SizeSelectors */ +public final class e implements c { + @Override // b.o.a.x.c + @NonNull + public List a(@NonNull List list) { + Collections.sort(list); + Collections.reverse(list); + return list; + } +} diff --git a/app/src/main/java/b/o/a/x/f.java b/app/src/main/java/b/o/a/x/f.java new file mode 100644 index 0000000000..bd82126bb8 --- /dev/null +++ b/app/src/main/java/b/o/a/x/f.java @@ -0,0 +1,14 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +import java.util.Collections; +import java.util.List; +/* compiled from: SizeSelectors */ +public final class f implements c { + @Override // b.o.a.x.c + @NonNull + public List a(@NonNull List list) { + Collections.sort(list); + return list; + } +} diff --git a/app/src/main/java/b/o/a/x/g.java b/app/src/main/java/b/o/a/x/g.java new file mode 100644 index 0000000000..86ae79530f --- /dev/null +++ b/app/src/main/java/b/o/a/x/g.java @@ -0,0 +1,16 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +/* compiled from: SizeSelectors */ +public final class g implements j { + public final /* synthetic */ int a; + + public g(int i) { + this.a = i; + } + + @Override // b.o.a.x.j + public boolean a(@NonNull b bVar) { + return bVar.k * bVar.j <= this.a; + } +} diff --git a/app/src/main/java/b/o/a/x/h.java b/app/src/main/java/b/o/a/x/h.java new file mode 100644 index 0000000000..e75be5b4fc --- /dev/null +++ b/app/src/main/java/b/o/a/x/h.java @@ -0,0 +1,16 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +/* compiled from: SizeSelectors */ +public final class h implements j { + public final /* synthetic */ int a; + + public h(int i) { + this.a = i; + } + + @Override // b.o.a.x.j + public boolean a(@NonNull b bVar) { + return bVar.k * bVar.j >= this.a; + } +} diff --git a/app/src/main/java/b/o/a/x/i.java b/app/src/main/java/b/o/a/x/i.java new file mode 100644 index 0000000000..b94b4711bc --- /dev/null +++ b/app/src/main/java/b/o/a/x/i.java @@ -0,0 +1,22 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +import b.i.a.f.e.o.f; +import java.util.List; +/* compiled from: SizeSelectors */ +public class i implements c { + public c[] a; + + public i(c[] cVarArr, f.a aVar) { + this.a = cVarArr; + } + + @Override // b.o.a.x.c + @NonNull + public List a(@NonNull List list) { + for (c cVar : this.a) { + list = cVar.a(list); + } + return list; + } +} diff --git a/app/src/main/java/b/o/a/x/j.java b/app/src/main/java/b/o/a/x/j.java new file mode 100644 index 0000000000..692b7841bd --- /dev/null +++ b/app/src/main/java/b/o/a/x/j.java @@ -0,0 +1,7 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +/* compiled from: SizeSelectors */ +public interface j { + boolean a(@NonNull b bVar); +} diff --git a/app/src/main/java/b/o/a/x/k.java b/app/src/main/java/b/o/a/x/k.java new file mode 100644 index 0000000000..51aa97fd7f --- /dev/null +++ b/app/src/main/java/b/o/a/x/k.java @@ -0,0 +1,26 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +import b.i.a.f.e.o.f; +import java.util.ArrayList; +import java.util.List; +/* compiled from: SizeSelectors */ +public class k implements c { + public j a; + + public k(j jVar, f.a aVar) { + this.a = jVar; + } + + @Override // b.o.a.x.c + @NonNull + public List a(@NonNull List list) { + ArrayList arrayList = new ArrayList(); + for (b bVar : list) { + if (this.a.a(bVar)) { + arrayList.add(bVar); + } + } + return arrayList; + } +} diff --git a/app/src/main/java/b/o/a/x/l.java b/app/src/main/java/b/o/a/x/l.java new file mode 100644 index 0000000000..731a0656e7 --- /dev/null +++ b/app/src/main/java/b/o/a/x/l.java @@ -0,0 +1,27 @@ +package b.o.a.x; + +import androidx.annotation.NonNull; +import b.i.a.f.e.o.f; +import java.util.ArrayList; +import java.util.List; +/* compiled from: SizeSelectors */ +public class l implements c { + public c[] a; + + public l(c[] cVarArr, f.a aVar) { + this.a = cVarArr; + } + + @Override // b.o.a.x.c + @NonNull + public List a(@NonNull List list) { + List list2 = null; + for (c cVar : this.a) { + list2 = cVar.a(list); + if (!list2.isEmpty()) { + break; + } + } + return list2 == null ? new ArrayList() : list2; + } +} diff --git a/app/src/main/java/b/o/a/y/a.java b/app/src/main/java/b/o/a/y/a.java new file mode 100644 index 0000000000..d6a59aee7c --- /dev/null +++ b/app/src/main/java/b/o/a/y/a.java @@ -0,0 +1,4 @@ +package b.o.a.y; +/* compiled from: FullVideoRecorder */ +public abstract class a extends b { +} diff --git a/app/src/main/java/b/o/a/y/b.java b/app/src/main/java/b/o/a/y/b.java new file mode 100644 index 0000000000..d0d8ee6b00 --- /dev/null +++ b/app/src/main/java/b/o/a/y/b.java @@ -0,0 +1,4 @@ +package b.o.a.y; +/* compiled from: VideoRecorder */ +public abstract class b { +} diff --git a/app/src/main/java/b/o/b/a/a.java b/app/src/main/java/b/o/b/a/a.java new file mode 100644 index 0000000000..c65e9f62ea --- /dev/null +++ b/app/src/main/java/b/o/b/a/a.java @@ -0,0 +1,38 @@ +package b.o.b.a; + +import android.opengl.EGL14; +import android.opengl.EGLContext; +import android.opengl.EGLDisplay; +import android.opengl.EGLSurface; +import b.o.b.c.b; +import b.o.b.c.c; +import b.o.b.c.d; +import b.o.b.c.e; +/* compiled from: EglCore.kt */ +public final class a extends c { + public a(EGLContext eGLContext, int i) { + super(new b(eGLContext), i); + } + + public void b() { + c cVar = this.a; + c cVar2 = d.f1946b; + if (cVar != cVar2) { + e eVar = d.c; + b bVar = d.a; + EGLDisplay eGLDisplay = cVar.a; + EGLSurface eGLSurface = eVar.a; + EGL14.eglMakeCurrent(eGLDisplay, eGLSurface, eGLSurface, bVar.a); + EGL14.eglDestroyContext(this.a.a, this.f1944b.a); + EGL14.eglReleaseThread(); + EGL14.eglTerminate(this.a.a); + } + this.a = cVar2; + this.f1944b = d.a; + this.c = null; + } + + public final void finalize() { + b(); + } +} diff --git a/app/src/main/java/b/o/b/a/b.java b/app/src/main/java/b/o/b/a/b.java new file mode 100644 index 0000000000..777ca1423f --- /dev/null +++ b/app/src/main/java/b/o/b/a/b.java @@ -0,0 +1,53 @@ +package b.o.b.a; + +import android.opengl.EGL14; +import android.opengl.EGLConfig; +import android.util.Log; +import b.o.b.c.a; +import b.o.b.c.c; +import b.o.b.c.d; +import d0.t.c0; +import d0.t.k; +import d0.z.d.m; +import java.util.Iterator; +import org.webrtc.EglBase; +/* compiled from: EglNativeConfigChooser.kt */ +public class b { + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0055: APUT (r4v0 int[]), (12 ??[int, float, short, byte, char]), (r1v1 int) */ + public final a a(c cVar, int i, boolean z2) { + m.checkNotNullParameter(cVar, "display"); + int i2 = i >= 3 ? d.j | d.k : d.j; + int[] iArr = new int[15]; + iArr[0] = d.l; + iArr[1] = 8; + iArr[2] = d.m; + iArr[3] = 8; + iArr[4] = d.n; + iArr[5] = 8; + iArr[6] = d.o; + iArr[7] = 8; + iArr[8] = d.p; + iArr[9] = d.q | d.r; + iArr[10] = d.f1947s; + iArr[11] = i2; + iArr[12] = z2 ? EglBase.EGL_RECORDABLE_ANDROID : d.e; + iArr[13] = z2 ? 1 : 0; + iArr[14] = d.e; + a[] aVarArr = new a[1]; + EGLConfig[] eGLConfigArr = new EGLConfig[1]; + boolean eglChooseConfig = EGL14.eglChooseConfig(cVar.a, iArr, 0, eGLConfigArr, 0, 1, new int[1], 0); + if (eglChooseConfig) { + Iterator it = k.getIndices(aVarArr).iterator(); + while (it.hasNext()) { + int nextInt = ((c0) it).nextInt(); + EGLConfig eGLConfig = eGLConfigArr[nextInt]; + aVarArr[nextInt] = eGLConfig != null ? new a(eGLConfig) : null; + } + } + if (eglChooseConfig) { + return aVarArr[0]; + } + Log.w("EglConfigChooser", "Unable to find RGB8888 / " + i + " EGLConfig"); + return null; + } +} diff --git a/app/src/main/java/b/o/b/a/c.java b/app/src/main/java/b/o/b/a/c.java new file mode 100644 index 0000000000..78f196a2c3 --- /dev/null +++ b/app/src/main/java/b/o/b/a/c.java @@ -0,0 +1,62 @@ +package b.o.b.a; + +import android.opengl.EGL14; +import android.opengl.EGLDisplay; +import b.o.b.c.a; +import b.o.b.c.b; +import b.o.b.c.d; +import b.o.b.c.e; +import d0.z.d.m; +/* compiled from: EglNativeCore.kt */ +public class c { + public b.o.b.c.c a; + + /* renamed from: b reason: collision with root package name */ + public b f1944b = d.a; + public a c; + + public c(b bVar, int i) { + a a; + m.checkNotNullParameter(bVar, "sharedContext"); + b.o.b.c.c cVar = d.f1946b; + this.a = cVar; + EGLDisplay eglGetDisplay = EGL14.eglGetDisplay(0); + b.o.b.c.c cVar2 = new b.o.b.c.c(eglGetDisplay); + this.a = cVar2; + if (cVar2 == cVar) { + throw new RuntimeException("unable to get EGL14 display"); + } else if (EGL14.eglInitialize(eglGetDisplay, new int[1], 0, new int[1], 0)) { + b bVar2 = new b(); + boolean z2 = (i & 1) != 0; + if (((i & 2) != 0) && (a = bVar2.a(this.a, 3, z2)) != null) { + b bVar3 = new b(EGL14.eglCreateContext(this.a.a, a.a, bVar.a, new int[]{d.i, 3, d.e}, 0)); + try { + d.a("eglCreateContext (3)"); + this.c = a; + this.f1944b = bVar3; + } catch (Exception unused) { + } + } + if (this.f1944b == d.a) { + a a2 = bVar2.a(this.a, 2, z2); + if (a2 != null) { + b bVar4 = new b(EGL14.eglCreateContext(this.a.a, a2.a, bVar.a, new int[]{d.i, 2, d.e}, 0)); + d.a("eglCreateContext (2)"); + this.c = a2; + this.f1944b = bVar4; + return; + } + throw new RuntimeException("Unable to find a suitable EGLConfig"); + } + } else { + throw new RuntimeException("unable to initialize EGL14"); + } + } + + public final int a(e eVar, int i) { + m.checkNotNullParameter(eVar, "eglSurface"); + int[] iArr = new int[1]; + EGL14.eglQuerySurface(this.a.a, eVar.a, i, iArr, 0); + return iArr[0]; + } +} diff --git a/app/src/main/java/b/o/b/a/d.java b/app/src/main/java/b/o/b/a/d.java new file mode 100644 index 0000000000..bcb64e8fa9 --- /dev/null +++ b/app/src/main/java/b/o/b/a/d.java @@ -0,0 +1,56 @@ +package b.o.b.a; + +import android.opengl.EGL14; +import android.opengl.GLES20; +import android.opengl.GLU; +import android.opengl.Matrix; +import android.util.Log; +import b.d.b.a.a; +import b.o.b.c.f; +import d0.p; +import d0.z.d.m; +/* compiled from: Egloo.kt */ +public final class d { + public static final float[] a; + + static { + float[] fArr = new float[16]; + m.checkNotNullParameter(fArr, "$this$makeIdentity"); + m.checkNotNullParameter(fArr, "matrix"); + Matrix.setIdentityM(fArr, 0); + a = fArr; + } + + public static final void a(String str) { + m.checkNotNullParameter(str, "opName"); + int eglGetError = EGL14.eglGetError(); + if (eglGetError != b.o.b.c.d.d) { + StringBuilder W = a.W("Error during ", str, ": EGL error 0x"); + String hexString = Integer.toHexString(eglGetError); + m.checkNotNullExpressionValue(hexString, "Integer.toHexString(value)"); + W.append(hexString); + String sb = W.toString(); + Log.e("Egloo", sb); + throw new RuntimeException(sb); + } + } + + public static final void b(String str) { + m.checkNotNullParameter(str, "opName"); + int r0 = p.m80constructorimpl(GLES20.glGetError()); + int i = f.a; + if (r0 != 0) { + StringBuilder W = a.W("Error during ", str, ": glError 0x"); + String hexString = Integer.toHexString(r0); + m.checkNotNullExpressionValue(hexString, "Integer.toHexString(value)"); + W.append(hexString); + W.append(": "); + String gluErrorString = GLU.gluErrorString(r0); + m.checkNotNullExpressionValue(gluErrorString, "GLU.gluErrorString(value)"); + W.append(gluErrorString); + String sb = W.toString(); + Log.e("Egloo", sb); + throw new RuntimeException(sb); + } + } +} diff --git a/app/src/main/java/b/o/b/b/a.java b/app/src/main/java/b/o/b/b/a.java new file mode 100644 index 0000000000..179a9003c3 --- /dev/null +++ b/app/src/main/java/b/o/b/b/a.java @@ -0,0 +1,7 @@ +package b.o.b.b; +/* compiled from: Gl2dDrawable.kt */ +public abstract class a extends b { + + /* renamed from: b reason: collision with root package name */ + public final int f1945b = 2; +} diff --git a/app/src/main/java/b/o/b/b/b.java b/app/src/main/java/b/o/b/b/b.java new file mode 100644 index 0000000000..68e722d465 --- /dev/null +++ b/app/src/main/java/b/o/b/b/b.java @@ -0,0 +1,13 @@ +package b.o.b.b; + +import b.i.a.f.e.o.f; +import b.o.b.a.d; +import java.nio.FloatBuffer; +/* compiled from: GlDrawable.kt */ +public abstract class b { + public final float[] a = f.H0(d.a); + + public abstract void a(); + + public abstract FloatBuffer b(); +} diff --git a/app/src/main/java/b/o/b/b/c.java b/app/src/main/java/b/o/b/b/c.java new file mode 100644 index 0000000000..f55569362b --- /dev/null +++ b/app/src/main/java/b/o/b/b/c.java @@ -0,0 +1,31 @@ +package b.o.b.b; + +import android.opengl.GLES20; +import b.i.a.f.e.o.f; +import b.o.b.a.d; +import java.nio.FloatBuffer; +/* compiled from: GlRect.kt */ +public class c extends a { + public static final float[] c = {-1.0f, -1.0f, 1.0f, -1.0f, -1.0f, 1.0f, 1.0f, 1.0f}; + public FloatBuffer d; + + public c() { + float[] fArr = c; + FloatBuffer W = f.W(fArr.length); + W.put(fArr); + W.clear(); + this.d = W; + } + + @Override // b.o.b.b.b + public void a() { + d.b("glDrawArrays start"); + GLES20.glDrawArrays(b.o.b.c.f.f1948b, 0, this.d.limit() / this.f1945b); + d.b("glDrawArrays end"); + } + + @Override // b.o.b.b.b + public FloatBuffer b() { + return this.d; + } +} diff --git a/app/src/main/java/b/o/b/c/a.java b/app/src/main/java/b/o/b/c/a.java new file mode 100644 index 0000000000..d3743e916b --- /dev/null +++ b/app/src/main/java/b/o/b/c/a.java @@ -0,0 +1,35 @@ +package b.o.b.c; + +import android.opengl.EGLConfig; +import d0.z.d.m; +/* compiled from: egl.kt */ +public final class a { + public final EGLConfig a; + + public a(EGLConfig eGLConfig) { + m.checkNotNullParameter(eGLConfig, "native"); + this.a = eGLConfig; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof a) && m.areEqual(this.a, ((a) obj).a); + } + return true; + } + + public int hashCode() { + EGLConfig eGLConfig = this.a; + if (eGLConfig != null) { + return eGLConfig.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = b.d.b.a.a.R("EglConfig(native="); + R.append(this.a); + R.append(")"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/o/b/c/b.java b/app/src/main/java/b/o/b/c/b.java new file mode 100644 index 0000000000..ce1976d21f --- /dev/null +++ b/app/src/main/java/b/o/b/c/b.java @@ -0,0 +1,35 @@ +package b.o.b.c; + +import android.opengl.EGLContext; +import b.d.b.a.a; +import d0.z.d.m; +/* compiled from: egl.kt */ +public final class b { + public final EGLContext a; + + public b(EGLContext eGLContext) { + this.a = eGLContext; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof b) && m.areEqual(this.a, ((b) obj).a); + } + return true; + } + + public int hashCode() { + EGLContext eGLContext = this.a; + if (eGLContext != null) { + return eGLContext.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = a.R("EglContext(native="); + R.append(this.a); + R.append(")"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/o/b/c/c.java b/app/src/main/java/b/o/b/c/c.java new file mode 100644 index 0000000000..9aca236216 --- /dev/null +++ b/app/src/main/java/b/o/b/c/c.java @@ -0,0 +1,35 @@ +package b.o.b.c; + +import android.opengl.EGLDisplay; +import b.d.b.a.a; +import d0.z.d.m; +/* compiled from: egl.kt */ +public final class c { + public final EGLDisplay a; + + public c(EGLDisplay eGLDisplay) { + this.a = eGLDisplay; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof c) && m.areEqual(this.a, ((c) obj).a); + } + return true; + } + + public int hashCode() { + EGLDisplay eGLDisplay = this.a; + if (eGLDisplay != null) { + return eGLDisplay.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = a.R("EglDisplay(native="); + R.append(this.a); + R.append(")"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/o/b/c/d.java b/app/src/main/java/b/o/b/c/d.java new file mode 100644 index 0000000000..636b989b14 --- /dev/null +++ b/app/src/main/java/b/o/b/c/d.java @@ -0,0 +1,29 @@ +package b.o.b.c; + +import android.opengl.EGL14; +/* compiled from: egl.kt */ +public final class d { + public static final b a = new b(EGL14.EGL_NO_CONTEXT); + + /* renamed from: b reason: collision with root package name */ + public static final c f1946b = new c(EGL14.EGL_NO_DISPLAY); + public static final e c = new e(EGL14.EGL_NO_SURFACE); + public static final int d = 12288; + public static final int e = 12344; + public static final int f = 12375; + public static final int g = 12374; + public static final int h = 12377; + public static final int i = 12440; + public static final int j = 4; + public static final int k = 64; + public static final int l = 12324; + public static final int m = 12323; + public static final int n = 12322; + public static final int o = 12321; + public static final int p = 12339; + public static final int q = 4; + public static final int r = 1; + + /* renamed from: s reason: collision with root package name */ + public static final int f1947s = 12352; +} diff --git a/app/src/main/java/b/o/b/c/e.java b/app/src/main/java/b/o/b/c/e.java new file mode 100644 index 0000000000..14e6c25df0 --- /dev/null +++ b/app/src/main/java/b/o/b/c/e.java @@ -0,0 +1,35 @@ +package b.o.b.c; + +import android.opengl.EGLSurface; +import b.d.b.a.a; +import d0.z.d.m; +/* compiled from: egl.kt */ +public final class e { + public final EGLSurface a; + + public e(EGLSurface eGLSurface) { + this.a = eGLSurface; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof e) && m.areEqual(this.a, ((e) obj).a); + } + return true; + } + + public int hashCode() { + EGLSurface eGLSurface = this.a; + if (eGLSurface != null) { + return eGLSurface.hashCode(); + } + return 0; + } + + public String toString() { + StringBuilder R = a.R("EglSurface(native="); + R.append(this.a); + R.append(")"); + return R.toString(); + } +} diff --git a/app/src/main/java/b/o/b/c/f.java b/app/src/main/java/b/o/b/c/f.java new file mode 100644 index 0000000000..6859abd55c --- /dev/null +++ b/app/src/main/java/b/o/b/c/f.java @@ -0,0 +1,35 @@ +package b.o.b.c; + +import androidx.work.Data; +import d0.p; +/* compiled from: gl.kt */ +public final class f { + public static final int a = p.m80constructorimpl(5126); + + /* renamed from: b reason: collision with root package name */ + public static final int f1948b = p.m80constructorimpl(5); + public static final int c = p.m80constructorimpl(33984); + public static final int d = p.m80constructorimpl(36197); + public static final int e = p.m80constructorimpl(10241); + public static final int f = p.m80constructorimpl(Data.MAX_DATA_BYTES); + public static final int g = p.m80constructorimpl(10242); + public static final int h = p.m80constructorimpl(10243); + public static final int i = 33071; + public static final float j = ((float) 9728); + public static final float k = ((float) 9729); + public static final int l = p.m80constructorimpl(35713); + public static final int m = p.m80constructorimpl(35714); + public static final int n = p.m80constructorimpl(35633); + public static final int o = p.m80constructorimpl(35632); + + static { + p.m80constructorimpl(37074); + p.m80constructorimpl(5121); + p.m80constructorimpl(6408); + p.m80constructorimpl(4); + p.m80constructorimpl(6); + p.m80constructorimpl(36160); + p.m80constructorimpl(36053); + p.m80constructorimpl(36064); + } +} diff --git a/app/src/main/java/b/o/b/d/a.java b/app/src/main/java/b/o/b/d/a.java new file mode 100644 index 0000000000..1181969be8 --- /dev/null +++ b/app/src/main/java/b/o/b/d/a.java @@ -0,0 +1,19 @@ +package b.o.b.d; + +import d0.z.d.m; +/* compiled from: GlProgram.kt */ +public class a { + public boolean a; + + /* renamed from: b reason: collision with root package name */ + public final int f1949b; + public final boolean c; + public final c[] d; + + public a(int i, boolean z2, c... cVarArr) { + m.checkNotNullParameter(cVarArr, "shaders"); + this.f1949b = i; + this.c = z2; + this.d = cVarArr; + } +} diff --git a/app/src/main/java/b/o/b/d/b.java b/app/src/main/java/b/o/b/d/b.java new file mode 100644 index 0000000000..e8aa559f2f --- /dev/null +++ b/app/src/main/java/b/o/b/d/b.java @@ -0,0 +1,40 @@ +package b.o.b.d; + +import android.opengl.GLES20; +import android.util.Log; +import b.o.b.a.d; +import d0.p; +import d0.z.d.m; +import kotlin.NoWhenBranchMatchedException; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: GlProgramLocation.kt */ +public final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1950b; + public final String c; + + public b(int i, int i2, String str, DefaultConstructorMarker defaultConstructorMarker) { + int i3; + this.c = str; + int h = b.c.a.y.b.h(i2); + if (h == 0) { + i3 = GLES20.glGetAttribLocation(p.m80constructorimpl(i), str); + } else if (h == 1) { + i3 = GLES20.glGetUniformLocation(p.m80constructorimpl(i), str); + } else { + throw new NoWhenBranchMatchedException(); + } + this.a = i3; + float[] fArr = d.a; + m.checkNotNullParameter(str, "label"); + if (i3 >= 0) { + this.f1950b = p.m80constructorimpl(i3); + return; + } + String str2 = "Unable to locate " + str + " in program"; + Log.e("Egloo", str2); + throw new RuntimeException(str2); + } +} diff --git a/app/src/main/java/b/o/b/d/c.java b/app/src/main/java/b/o/b/d/c.java new file mode 100644 index 0000000000..2d4c8e754e --- /dev/null +++ b/app/src/main/java/b/o/b/d/c.java @@ -0,0 +1,42 @@ +package b.o.b.d; + +import android.opengl.GLES20; +import b.o.b.a.d; +import b.o.b.c.f; +import d0.p; +import d0.z.d.m; +import kotlin.jvm.internal.DefaultConstructorMarker; +/* compiled from: GlShader.kt */ +public final class c { + public static final a a = new a(null); + + /* renamed from: b reason: collision with root package name */ + public final int f1951b; + + /* compiled from: GlShader.kt */ + public static final class a { + public a(DefaultConstructorMarker defaultConstructorMarker) { + } + } + + public c(int i, String str) { + m.checkNotNullParameter(str, "source"); + int r0 = p.m80constructorimpl(GLES20.glCreateShader(p.m80constructorimpl(i))); + d.b("glCreateShader type=" + i); + GLES20.glShaderSource(r0, str); + GLES20.glCompileShader(r0); + int[] iArr = new int[1]; + GLES20.glGetShaderiv(r0, f.l, iArr, 0); + if (iArr[0] != 0) { + this.f1951b = r0; + return; + } + StringBuilder S = b.d.b.a.a.S("Could not compile shader ", i, ": '"); + S.append(GLES20.glGetShaderInfoLog(r0)); + S.append("' source: "); + S.append(str); + String sb = S.toString(); + GLES20.glDeleteShader(r0); + throw new RuntimeException(sb); + } +} diff --git a/app/src/main/java/b/o/b/d/d.java b/app/src/main/java/b/o/b/d/d.java new file mode 100644 index 0000000000..fb23e2c4ce --- /dev/null +++ b/app/src/main/java/b/o/b/d/d.java @@ -0,0 +1,48 @@ +package b.o.b.d; + +import android.graphics.RectF; +import b.i.a.f.e.o.f; +import b.o.b.b.a; +import com.discord.models.domain.ModelAuditLogEntry; +import d0.z.d.m; +import java.nio.FloatBuffer; +/* compiled from: GlTextureProgram.kt */ +public class d extends a { + public float[] e = f.H0(b.o.b.a.d.a); + public final b f; + public FloatBuffer g; + public final b h; + public final b i; + public final b j; + public final RectF k; + public int l; + public a m; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public d(int i, String str, String str2, String str3, String str4) { + super(i, false, new c[0]); + m.checkNotNullParameter(str, "vertexPositionName"); + m.checkNotNullParameter(str2, "vertexMvpMatrixName"); + m.checkNotNullParameter(str, "vertexPositionName"); + m.checkNotNullParameter(str2, "vertexMvpMatrixName"); + m.checkNotNullParameter(str4, ModelAuditLogEntry.CHANGE_KEY_NAME); + int i2 = this.f1949b; + m.checkNotNullParameter(str4, ModelAuditLogEntry.CHANGE_KEY_NAME); + this.f = new b(i2, 2, str4, null); + this.g = f.W(8); + m.checkNotNullParameter(str3, ModelAuditLogEntry.CHANGE_KEY_NAME); + int i3 = this.f1949b; + m.checkNotNullParameter(str3, ModelAuditLogEntry.CHANGE_KEY_NAME); + this.h = new b(i3, 1, str3, null); + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME); + int i4 = this.f1949b; + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME); + this.i = new b(i4, 1, str, null); + m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_NAME); + int i5 = this.f1949b; + m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_NAME); + this.j = new b(i5, 2, str2, null); + this.k = new RectF(); + this.l = -1; + } +} diff --git a/app/src/main/java/b/o/b/e/a.java b/app/src/main/java/b/o/b/e/a.java new file mode 100644 index 0000000000..f6655c1084 --- /dev/null +++ b/app/src/main/java/b/o/b/e/a.java @@ -0,0 +1,61 @@ +package b.o.b.e; + +import android.graphics.Bitmap; +import android.opengl.EGL14; +import android.opengl.GLES20; +import b.o.b.c.b; +import b.o.b.c.d; +import b.o.b.c.e; +import d0.z.d.m; +import java.io.OutputStream; +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.util.Objects; +/* compiled from: EglSurface.kt */ +public abstract class a { + public int a = -1; + + /* renamed from: b reason: collision with root package name */ + public int f1952b = -1; + public b.o.b.a.a c; + public e d; + + public a(b.o.b.a.a aVar, e eVar) { + m.checkNotNullParameter(aVar, "eglCore"); + m.checkNotNullParameter(eVar, "eglSurface"); + m.checkNotNullParameter(aVar, "eglCore"); + m.checkNotNullParameter(eVar, "eglSurface"); + this.c = aVar; + this.d = eVar; + } + + public final void a(OutputStream outputStream, Bitmap.CompressFormat compressFormat) { + m.checkNotNullParameter(outputStream, "stream"); + m.checkNotNullParameter(compressFormat, "format"); + b.o.b.a.a aVar = this.c; + e eVar = this.d; + Objects.requireNonNull(aVar); + m.checkNotNullParameter(eVar, "eglSurface"); + if (m.areEqual(aVar.f1944b, new b(EGL14.eglGetCurrentContext())) && m.areEqual(eVar, new e(EGL14.eglGetCurrentSurface(d.h)))) { + int i = this.a; + if (i < 0) { + i = this.c.a(this.d, d.f); + } + int i2 = this.f1952b; + if (i2 < 0) { + i2 = this.c.a(this.d, d.g); + } + ByteBuffer allocateDirect = ByteBuffer.allocateDirect(i * i2 * 4); + allocateDirect.order(ByteOrder.LITTLE_ENDIAN); + GLES20.glReadPixels(0, 0, i, i2, 6408, 5121, allocateDirect); + b.o.b.a.d.b("glReadPixels"); + allocateDirect.rewind(); + Bitmap createBitmap = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888); + createBitmap.copyPixelsFromBuffer(allocateDirect); + createBitmap.compress(compressFormat, 90, outputStream); + createBitmap.recycle(); + return; + } + throw new RuntimeException("Expected EGL context/surface is not current"); + } +} diff --git a/app/src/main/java/b/o/b/e/b.java b/app/src/main/java/b/o/b/e/b.java new file mode 100644 index 0000000000..14aefb28d7 --- /dev/null +++ b/app/src/main/java/b/o/b/e/b.java @@ -0,0 +1,31 @@ +package b.o.b.e; + +import android.graphics.SurfaceTexture; +import android.opengl.EGL14; +import b.o.b.a.a; +import b.o.b.c.c; +import b.o.b.c.d; +import b.o.b.c.e; +import d0.z.d.m; +/* compiled from: EglWindowSurface.kt */ +public class b extends a { + /* JADX WARNING: Illegal instructions before constructor call */ + public b(a aVar, SurfaceTexture surfaceTexture) { + super(aVar, r5); + m.checkNotNullParameter(aVar, "eglCore"); + m.checkNotNullParameter(surfaceTexture, "surfaceTexture"); + m.checkNotNullParameter(surfaceTexture, "surface"); + int[] iArr = {d.e}; + c cVar = aVar.a; + b.o.b.c.a aVar2 = aVar.c; + m.checkNotNull(aVar2); + e eVar = new e(EGL14.eglCreateWindowSurface(cVar.a, aVar2.a, surfaceTexture, iArr, 0)); + b.o.b.a.d.a("eglCreateWindowSurface"); + if (eVar != d.c) { + m.checkNotNullParameter(aVar, "eglCore"); + m.checkNotNullParameter(eVar, "eglSurface"); + return; + } + throw new RuntimeException("surface was null"); + } +} diff --git a/app/src/main/java/b/o/b/f/a.java b/app/src/main/java/b/o/b/f/a.java new file mode 100644 index 0000000000..b7d373a044 --- /dev/null +++ b/app/src/main/java/b/o/b/f/a.java @@ -0,0 +1,40 @@ +package b.o.b.f; + +import android.opengl.GLES20; +import b.o.b.a.d; +import b.o.b.c.f; +import d0.p; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: GlTexture.kt */ +public final class a extends o implements Function0 { + public final /* synthetic */ Integer $internalFormat; + public final /* synthetic */ b this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public a(b bVar, Integer num) { + super(0); + this.this$0 = bVar; + this.$internalFormat = num; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public Unit mo1invoke() { + b bVar = this.this$0; + if (!(bVar.d == null || bVar.e == null || bVar.f == null || this.$internalFormat == null || bVar.g == null)) { + GLES20.glTexImage2D(p.m80constructorimpl(bVar.c), 0, this.$internalFormat.intValue(), this.this$0.d.intValue(), this.this$0.e.intValue(), 0, p.m80constructorimpl(this.this$0.f.intValue()), p.m80constructorimpl(this.this$0.g.intValue()), null); + } + GLES20.glTexParameterf(p.m80constructorimpl(this.this$0.c), f.e, f.j); + GLES20.glTexParameterf(p.m80constructorimpl(this.this$0.c), f.f, f.k); + int r0 = p.m80constructorimpl(this.this$0.c); + int i = f.g; + int i2 = f.i; + GLES20.glTexParameteri(r0, i, i2); + GLES20.glTexParameteri(p.m80constructorimpl(this.this$0.c), f.h, i2); + d.b("glTexParameter"); + return Unit.a; + } +} diff --git a/app/src/main/java/b/o/b/f/b.java b/app/src/main/java/b/o/b/f/b.java new file mode 100644 index 0000000000..56cb760d03 --- /dev/null +++ b/app/src/main/java/b/o/b/f/b.java @@ -0,0 +1,73 @@ +package b.o.b.f; + +import android.opengl.GLES20; +import b.o.b.a.d; +import b.o.b.c.f; +import d0.p; +import d0.q; +import d0.z.d.m; +/* compiled from: GlTexture.kt */ +public final class b { + public final int a; + + /* renamed from: b reason: collision with root package name */ + public final int f1953b; + public final int c; + public final Integer d; + public final Integer e; + public final Integer f; + public final Integer g; + + public b(int i, int i2, Integer num) { + int i3; + this.f1953b = i; + this.c = i2; + this.d = null; + this.e = null; + this.f = null; + this.g = null; + if (num != null) { + i3 = num.intValue(); + } else { + int[] r0 = q.m81constructorimpl(1); + int r1 = q.m84getSizeimpl(r0); + int[] iArr = new int[r1]; + for (int i4 = 0; i4 < r1; i4++) { + iArr[i4] = q.m83getpVg5ArA(r0, i4); + } + GLES20.glGenTextures(1, iArr, 0); + for (int i5 = 0; i5 < 1; i5++) { + q.m85setVXSXFK8(r0, i5, p.m80constructorimpl(iArr[i5])); + } + d.b("glGenTextures"); + i3 = q.m83getpVg5ArA(r0, 0); + } + this.a = i3; + if (num == null) { + a aVar = new a(this, null); + m.checkNotNullParameter(this, "$this$use"); + m.checkNotNullParameter(aVar, "block"); + a(); + aVar.mo1invoke(); + b(); + } + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public b(int i, int i2, Integer num, int i3) { + this((i3 & 1) != 0 ? f.c : i, (i3 & 2) != 0 ? f.d : i2, null); + int i4 = i3 & 4; + } + + public void a() { + GLES20.glActiveTexture(p.m80constructorimpl(this.f1953b)); + GLES20.glBindTexture(p.m80constructorimpl(this.c), p.m80constructorimpl(this.a)); + d.b("bind"); + } + + public void b() { + GLES20.glBindTexture(p.m80constructorimpl(this.c), p.m80constructorimpl(0)); + GLES20.glActiveTexture(f.c); + d.b("unbind"); + } +} diff --git a/app/src/main/java/b/o/b/g/a.java b/app/src/main/java/b/o/b/g/a.java new file mode 100644 index 0000000000..1f3fb9c706 --- /dev/null +++ b/app/src/main/java/b/o/b/g/a.java @@ -0,0 +1,5 @@ +package b.o.b.g; +/* compiled from: buffers.kt */ +public interface a { + void dispose(); +} diff --git a/app/src/main/java/b/p/a/a.java b/app/src/main/java/b/p/a/a.java new file mode 100644 index 0000000000..880fe67912 --- /dev/null +++ b/app/src/main/java/b/p/a/a.java @@ -0,0 +1,32 @@ +package b.p.a; + +import android.view.View; +import b.p.a.l; +import d0.z.d.m; +/* compiled from: Alert.kt */ +public final class a implements l.a { + public final /* synthetic */ b j; + + public a(b bVar) { + this.j = bVar; + } + + @Override // b.p.a.l.a + public void a(View view, boolean z2) { + m.checkNotNullParameter(view, "view"); + } + + @Override // b.p.a.l.a + public boolean b() { + return true; + } + + @Override // b.p.a.l.a + public void onDismiss(View view) { + m.checkNotNullParameter(view, "view"); + b bVar = this.j; + bVar.clearAnimation(); + bVar.setVisibility(8); + bVar.postDelayed(new e(bVar), (long) 100); + } +} diff --git a/app/src/main/java/b/p/a/b.java b/app/src/main/java/b/p/a/b.java new file mode 100644 index 0000000000..a74903af21 --- /dev/null +++ b/app/src/main/java/b/p/a/b.java @@ -0,0 +1,761 @@ +package b.p.a; + +import android.annotation.SuppressLint; +import android.app.Activity; +import android.content.Context; +import android.graphics.Bitmap; +import android.graphics.ColorFilter; +import android.graphics.LightingColorFilter; +import android.graphics.Typeface; +import android.graphics.drawable.Drawable; +import android.media.RingtoneManager; +import android.net.Uri; +import android.os.Build; +import android.text.TextUtils; +import android.util.AttributeSet; +import android.util.Log; +import android.util.TypedValue; +import android.view.DisplayCutout; +import android.view.MotionEvent; +import android.view.View; +import android.view.ViewGroup; +import android.view.ViewStub; +import android.view.Window; +import android.view.WindowInsets; +import android.view.animation.Animation; +import android.view.animation.AnimationUtils; +import android.widget.Button; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.ProgressBar; +import android.widget.TextView; +import androidx.annotation.ColorInt; +import androidx.annotation.ColorRes; +import androidx.annotation.DimenRes; +import androidx.annotation.DrawableRes; +import androidx.annotation.Px; +import androidx.annotation.StringRes; +import androidx.annotation.StyleRes; +import androidx.appcompat.content.res.AppCompatResources; +import androidx.appcompat.widget.AppCompatImageView; +import androidx.appcompat.widget.AppCompatTextView; +import androidx.core.app.NotificationCompat; +import androidx.core.content.ContextCompat; +import androidx.core.view.ViewCompat; +import androidx.core.widget.TextViewCompat; +import b.i.a.f.e.o.f; +import b.p.a.l; +import com.tapadoo.alerter.R; +import d0.g; +import d0.z.d.m; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Objects; +import kotlin.Lazy; +/* compiled from: Alert.kt */ +@SuppressLint({"ViewConstructor"}) +public final class b extends FrameLayout implements View.OnClickListener, Animation.AnimationListener, l.a { + public Uri A; + public int B; + public final Lazy C; + public final Lazy D; + public HashMap E; + public k j; + public j k; + public Animation l; + public Animation m; + public long n; + public boolean o; + public boolean p; + public boolean q; + public boolean r; + + /* renamed from: s reason: collision with root package name */ + public boolean f1954s; + public boolean t; + public Runnable u; + public boolean v; + public ArrayList